commit 1fb7936be92b62951933899f0e8f283659bd399c Author: chatenium Date: Mon Oct 26 11:22:16 2026 +0100 Initial commit. Started laying down the foundations. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..93d31d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.idea +node_modules +dist +src/generated \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2b8e660 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Chatenium SDK (For API v3) +**WIP, not much to see here yet** \ No newline at end of file diff --git a/openapi.yaml b/openapi.yaml new file mode 100644 index 0000000..970c3dc --- /dev/null +++ b/openapi.yaml @@ -0,0 +1,3865 @@ +openapi: 3.0.0 +info: + title: Chatenium API + version: 3.0.0 + description: OpenAPI specifications for Chatenium API +servers: + - url: http://localhost:3000/v3 + - url: https://api.chatenium.hu/v3 +paths: + /ws: + get: + path: /websocket + tags: + - WebSocket + summary: WebSocket upgrade + operationId: websocket + parameters: + - $ref: '#/components/parameters/WsAccessTokenQuery' + responses: + '101': + description: Upgrade successful + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/rotate: + patch: + tags: + - Auth + summary: Rotate token pair + description: Called when the access token expires. Generates a new pair of tokens and returns them to the user. + operationId: rotateTokenPair + parameters: + - $ref: '#/components/parameters/RefreshTokenHeader' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessfulAuthResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/oauth/apple: + post: + tags: + - Auth + description: Authenticate using Apple. + summary: Apple OAuth + operationId: oauthApple + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AppleOAuthReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessfulAuthResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/oauth/google: + post: + tags: + - Auth + description: Authenticate using Google. + summary: Google OAuth + operationId: oauthGoogle + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/GoogleOAuthReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessfulAuthResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/usage/username: + get: + tags: + - Auth + description: Fetches whether the specified username is available or not. + summary: Username Availability + operationId: usernameUsage + parameters: + - $ref: '#/components/parameters/UsernameQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/DataAvailabilityResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/usage/email: + get: + tags: + - Auth + description: Fetches whether the specified e-mail address is available or not. + summary: Email Availability + operationId: emailUsage + parameters: + - $ref: '#/components/parameters/EmailQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/DataAvailabilityResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/signIn: + post: + tags: + - Auth + description: Signs in the user and returns an access/refresh token pair + the user's ID. + summary: Sign In + operationId: signIn + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SignInReq' + parameters: + - $ref: '#/components/parameters/AuthIdentityToken' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessfulAuthResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/ple: + post: + tags: + - Auth + description: 'Passwordless Registration: Registers a new user without a password. The user will need to provide a temporary code on every authentication.' + summary: Passwordless Registration + operationId: passwordlessRegistration + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/PasswordlessRegisterReq' + parameters: + - $ref: '#/components/parameters/AuthIdentityToken' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessfulAuthResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/register: + post: + tags: + - Auth + description: Validates the provided user data, registers them in the database and signs the user in. + summary: Register + operationId: register + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/RegisterReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SuccessfulAuthResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/passReset: + post: + tags: + - Auth + description: Verifies the provided token and updates the user's password. The user does not get signed in automatically. + summary: Password Reset + operationId: passwordReset + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/PasswordResetReq' + parameters: + - $ref: '#/components/parameters/AuthIdentityToken' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/challenge: + post: + tags: + - Auth + description: Registers a new challenge challenge attempt. + summary: Register Challenge + operationId: registerChallenge + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/RegisterAuthAttemptReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Challenge' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + patch: + tags: + - Auth + description: With the submitted credential, an attempt will be made to verify one factor. + summary: Credential Verification + operationId: verifyFactor + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/VerifyFactorReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Challenge' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/challenge/requestCredential: + post: + tags: + - Auth + description: Requests a credential for specific factors (SMS, E-Mail). + summary: Request credential + operationId: requestCredential + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/RequestFactorCredentialReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Challenge' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /auth/userIdFromIdentity: + get: + tags: + - Auth + description: Fetches the user's ID from the provided identity. + summary: Fetch User ID + operationId: getIdFromIdentity + parameters: + - $ref: '#/components/parameters/IdentityQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetIdFromIdentityResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/personalUserData: + get: + tags: + - Account + summary: Get user data (including extra data) + operationId: getPersonalUserData + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PersonalUserData' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/push/registerFirebase: + post: + tags: + - Account + summary: Register FCM Token + operationId: registerFcmToken + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RegisterFcmTokenReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/push/registerApple: + post: + tags: + - Account + summary: Register APNS Token + operationId: registerApnsToken + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RegisterApnsTokenReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/profile/username: + patch: + tags: + - Account + summary: Change Username + operationId: changeUsername + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ChangeUsernameReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/profile/displayName: + patch: + tags: + - Account + summary: Change Display Name + operationId: changeDisplayName + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ChangeDisplayNameReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account: + delete: + tags: + - Account + summary: Delete Account + operationId: deleteAccount + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeleteAccountReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/security/email: + patch: + tags: + - Account + summary: Change Email + operationId: changeEmail + parameters: + - $ref: '#/components/parameters/AuthIdentityToken' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/sessions: + get: + tags: + - Account + summary: Get Sessions + operationId: getSessions + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SessionV3' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/session/{sessionId}: + delete: + tags: + - Account + summary: Logout Session + operationId: logoutSession + parameters: + - $ref: '#/components/parameters/SessionIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/gifs: + patch: + tags: + - Account + summary: Toggle GIF Save + operationId: toggleGifSave + parameters: + - name: url + in: query + description: URL of the GIF (Can be inside/outside of Chatenium) + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ToggleGifReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/security/phone: + patch: + tags: + - Account + summary: Change Phone Number + operationId: changePhoneNumber + parameters: + - $ref: '#/components/parameters/AuthIdentityToken' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/pfp/upload/register: + post: + tags: + - Account + summary: Register PFP Upload + operationId: registerPfpUpload + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/S3PresignedFileReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/S3PresignedFileResponse' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /account/pfp: + patch: + tags: + - Account + summary: Complete PFP Upload + operationId: completePfpUpload + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CompletePfpUploadReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /calls/{roomId}: + get: + tags: + - Call + summary: Get access + description: Gathers TURN and STUN servers and a LiveKit token for a successful WebRTC connection + operationId: getRtcAccess + parameters: + - $ref: '#/components/parameters/RoomIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetAccessResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /calls/{roomId}/{userId}: + post: + tags: + - Call + summary: Invite partner + description: '**You cannot invite network members, only chat partners!** Invites your chat partner to join the call. The user will be notified about the call by various PUSH notification systems.' + operationId: invitePartner + parameters: + - $ref: '#/components/parameters/InvitePartnerQuery' + - $ref: '#/components/parameters/RoomIdParam' + - $ref: '#/components/parameters/InvitePartnerIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /contacts: + get: + tags: + - Contacts + summary: Get contacts + description: Fetches each contact that is associated with the user ordered by the last time a message was sent. + operationId: getContacts + responses: + '200': + description: Success + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Contact' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + post: + tags: + - Contacts + summary: Create new contact + description: Sends a request to the specified partner who can either accept the request by sending you a message or ignore it. + operationId: newContact + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AddContactReq' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /contacts/{contactId}: + patch: + tags: + - Contacts + summary: Mute contact + description: When muted, you will not receive notifications from the contact. + operationId: setContactMute + parameters: + - $ref: '#/components/parameters/ContactIdParam' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/SetMuteReq' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + delete: + tags: + - Contacts + summary: Delete contact + operationId: deleteContact + description: Deletes the contact from your contacts list and removes all DMs with the contact. + parameters: + - $ref: '#/components/parameters/ContactIdParam' + responses: + '200': + description: Success + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /dms/{contactId}: + delete: + tags: + - Direct messaging + summary: Delete message(s) + description: Deletes the specified message(s) + operationId: deleteMessage + parameters: + - $ref: '#/components/parameters/ContactIdParam' + - $ref: '#/components/parameters/MessageIdsQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Direct messaging + summary: Get + description: Fetches all messages inside the chat + operationId: getMessages + parameters: + - $ref: '#/components/parameters/ContactIdParam' + - $ref: '#/components/parameters/SkipQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Message' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + post: + tags: + - Direct messaging + summary: Send message + description: Sends a new message into the chat + operationId: sendMessage + parameters: + - $ref: '#/components/parameters/ContactIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SendMessageReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Message' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /dms/{contactId}/pin: + get: + tags: + - Direct messaging + summary: Pinned messages + description: Gets all pinned messages inside the chat + operationId: getPinnedMessages + parameters: + - $ref: '#/components/parameters/ContactIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PinnedMessage' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + post: + tags: + - Direct messaging + summary: Pin message + description: Pins the specified message + operationId: pinMessage + parameters: + - $ref: '#/components/parameters/ContactIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PinMessageReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /dms/{contactId}/pin/{messageId}: + delete: + tags: + - Direct messaging + summary: Unpin message + description: Unpins the specified message + operationId: unpinMessage + parameters: + - $ref: '#/components/parameters/ContactIdParam' + - $ref: '#/components/parameters/MessageIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /dms/{contactId}/{messageId}: + patch: + tags: + - Direct messaging + summary: Edit message + description: Edits the content of the specified message + operationId: editMessage + parameters: + - $ref: '#/components/parameters/ContactIdParam' + - $ref: '#/components/parameters/MessageIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EditMessageReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Direct messaging + summary: Get position + description: Gets the position of a message which can be passed as query param in get to load that section of messages + operationId: getMessagePosition + parameters: + - $ref: '#/components/parameters/ContactIdParam' + - $ref: '#/components/parameters/MessageIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GetPositionResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /dms/{contactId}/upload/register: + post: + tags: + - Direct messaging + summary: Register attachment(s) upload + description: Registers the upload(s) and returns necessary data to complete the actual upload + operationId: registerAttachmentUploads + parameters: + - $ref: '#/components/parameters/ContactIdParam' + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/S3PresignedFileReq' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/S3PresignedMultiResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /dms/{contactId}/upload/complete: + post: + tags: + - Direct messaging + summary: Complete attachment upload + description: Marks the upload as completed. After that the fileId can be provided when sending a message. + operationId: completeAttachmentUpload + parameters: + - $ref: '#/components/parameters/ContactIdParam' + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/S3FinishMultiReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /fileTrans: + post: + tags: + - File transfer + summary: Start new + description: Starts a new file transfer with the specified user. The 2 users must have each other in their contacts + operationId: startNewFileTransfer + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StartNewReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/StartNewResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /fileTrans/{transferId}: + patch: + tags: + - File transfer + summary: Accept + description: Accepts the file transfer and allows to establish a WebRTC connection + operationId: acceptFileTransfer + parameters: + - $ref: '#/components/parameters/TransferIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/RTCConfiguration' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + delete: + tags: + - File transfer + summary: Decline + description: Declines the file transfer + operationId: declineFileTransfer + parameters: + - $ref: '#/components/parameters/TransferIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /fileTrans/{transferId}/rtc/offer: + post: + tags: + - File transfer + summary: WebRTC Offer SDP + description: Sends the WebRTC Offer SDP **(Sender Only)** + operationId: fileTransferSendRtcOffer + parameters: + - $ref: '#/components/parameters/TransferIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RTCSendOfferReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /fileTrans/{transferId}/rtc/answer: + post: + tags: + - File transfer + summary: WebRTC Answer SDP + description: Sends the WebRTC Answer SDP **(Receiver Only)** + operationId: fileTransferSendRtcAnswer + parameters: + - $ref: '#/components/parameters/TransferIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RTCSendAnswerReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /fileTrans/{transferId}/rtc/candidate: + post: + tags: + - File transfer + summary: WebRTC ICE Candidate + description: Sends the WebRTC ICE Candidate **(Receiver and Sender)** + operationId: fileTransferSendRtcCandidate + parameters: + - $ref: '#/components/parameters/TransferIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RTCSendCandidateReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/picture/register: + post: + tags: + - Cascade + summary: Register new picture upload + description: Returns credentials to upload a new cascade picture. + operationId: registerCascadePictureUpload + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + requestBody: + content: + application/schema: + schema: + $ref: '#/components/schemas/S3PresignedFileReq' + responses: + '200': + description: Successful response + content: + application/json: + schema: + $ref: '#/components/schemas/S3PresignedFileResponse' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /network/{cascadeId}/picture: + patch: + tags: + - Cascade + summary: Complete Cascade Picture Upload + operationId: completeCascadePictureUpload + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CompletePicUploadReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /networks: + post: + tags: + - Cascade + summary: Create new + description: Creates a new cascade with the provided data + operationId: createCascade + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateCascadeReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Cascade' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Cascade + summary: Get + description: Gets all cascades that the user owns or a member of + operationId: getCascades + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Cascade' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}: + delete: + tags: + - Cascade + summary: Leave/Delete + description: Deletes or leaves the cascade based on whether the users owns the cascade or not + operationId: leaveOrDeleteCascade + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/members: + delete: + tags: + - Cascade + summary: Get members + description: Fetches all members in the cascade + operationId: getMembers + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/DetailedMemberList' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/members/{memberId}: + delete: + tags: + - Cascade + summary: Kick/Ban member + description: Kicks or bans a member based on what the client chose + operationId: kickOrBanMember + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/MemberIdParam' + - $ref: '#/components/parameters/KickBanQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/bans: + get: + tags: + - Cascade + summary: Get bans + description: Fetches all banned members + operationId: getBannedMembers + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Ban' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/bans/{memberId}: + delete: + tags: + - Cascade + summary: Unban member + description: Unbans the specified member + operationId: unbanMember + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/MemberIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/discovery: + get: + tags: + - Cascade + summary: Discovery + description: Fetches all public cascades with small insights + operationId: cascadeDiscovery + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DiscoveryCascade' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/fromInvite/{inviteId}: + get: + tags: + - Cascade + summary: Get from invite + description: Fetches the cascade's data that the invite is valid for + operationId: getCascadeFromInvite + parameters: + - $ref: '#/components/parameters/InviteIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Cascade' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/join/fromInvite: + post: + tags: + - Cascade + summary: Join from invite + description: Joins the cascade with a valid invite + operationId: joinCascadeFromInvite + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/JoinFromInviteReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Cascade' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/join/public: + post: + tags: + - Cascade + summary: Join public + description: Joins the public cascade + operationId: joinPublicCascade + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/JoinPublicReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Cascade' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/name: + patch: + tags: + - Cascade + summary: Edit name + description: Sets a new name for the cascade + operationId: editCascadeName + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EditNameReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/visibility: + patch: + tags: + - Cascade + summary: Change visibility + description: Changes the visibility of the cascade + operationId: changeCascadeVisibility + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ChangeVisibility' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /networks/{cascadeId}/invites: + post: + tags: + - Cascade Invite + summary: Create new + description: Creates a new invite to the cascade + operationId: createInvite + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateInviteReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CascadeInvite' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Cascade Invite + summary: Get invites + description: Fetches all invites to the cascade + operationId: getInvites + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CascadeInvite' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /networks/{cascadeId}/invites/{inviteId}: + delete: + tags: + - Cascade Invite + summary: Revoke invite + description: Revokes the new invite from the cascade + operationId: revokeInvite + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/InviteIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + patch: + tags: + - Cascade Invite + summary: (un)Pause invite + description: (un)Pauses the specified invite + operationId: toggleInvitePause + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/InviteIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PauseInviteReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/threads: + post: + tags: + - Thread + summary: Start a new thread + description: Starts a new thread inside the cascade + operationId: startThread + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StartNewThreadReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Cascade + summary: Get threads + description: Fetches all threads from a specific parent (For root threads use null as parentId) + operationId: getThreads + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ParentIdQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Thread' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/threads/{threadId}: + delete: + tags: + - Thread + summary: Close thread + description: Deletes the specified thread and all subthreads + operationId: closeThread + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + patch: + tags: + - Thread + summary: Update thread + description: Updates the thread + operationId: updateThread + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/StartNewThreadReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/threads/{threadId}/messages/: + delete: + tags: + - Thread Messages + summary: Delete message(s) + description: Deletes the specified message(s) + operationId: TMDeleteMessage + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + - $ref: '#/components/parameters/MessageIdsQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Thread Messages + summary: Get + description: Fetches all messages inside the chat + operationId: TMGetMessages + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + - $ref: '#/components/parameters/SkipQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ThreadMessage' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + post: + tags: + - Thread Messages + summary: Send message + description: Sends a new message into the thread + operationId: TMSendMessage + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TMSendMessageReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ThreadMessage' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/threads/{threadId}/messages/pin: + get: + tags: + - Thread Messages + summary: Pinned messages + description: Gets all pinned messages inside the thread + operationId: TMGetPinnedMessages + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + post: + tags: + - Thread Messages + summary: Pin message + description: Pins the specified message + operationId: TMPinMessage + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TMPinMessageReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/threads/{threadId}/messages/pin/{messageId}: + delete: + tags: + - Thread Messages + summary: Unpin message + description: Unpins the specified message + operationId: TMUnpinMessage + parameters: + - $ref: '#/components/parameters/ThreadIdParam' + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/MessageIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/threads/{threadId}/messages/{messageId}: + patch: + tags: + - Thread Messages + summary: Edit message + description: Edits the content of the specified message + operationId: TMEditMessage + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + - $ref: '#/components/parameters/MessageIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TMEditMessageReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Thread Messages + summary: Get position + description: Gets the position of a message which can be passed as query param in get to load that section of messages + operationId: TMGetMessagePosition + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + - $ref: '#/components/parameters/MessageIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TMGetPositionResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/threads/{threadId}/messages/upload/register: + post: + tags: + - Direct messaging + summary: Register attachment(s) upload + description: Registers the upload(s) and returns necessary data to complete the actual upload + operationId: TMRegisterAttachmentUploads + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/S3PresignedFileReq' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/S3PresignedMultiResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/threads/{threadId}/messages/upload/complete: + post: + tags: + - Direct messaging + summary: Complete attachment upload + description: Marks the upload as completed. After that the fileId can be provided when sending a message. + operationId: TMCompleteAttachmentUpload + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/ThreadIdParam' + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/S3FinishMultiReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/ranks: + post: + tags: + - Ranks + summary: Create rank + description: Creates a new cascade rank + operationId: createRank + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RankCreateOrUpdateReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Rank' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/ranks/{rankId}: + patch: + tags: + - Ranks + summary: Update rank + description: Updates the specified rank + operationId: updateRank + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/RankIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/RankCreateOrUpdateReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + delete: + tags: + - Ranks + summary: Delete rank + description: Deletes the specified rank + operationId: deleteRank + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/RankIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/ranks/{rankId}/permissions: + patch: + tags: + - Ranks + summary: Update rank permissions + description: Updates the specified rank's permissions + operationId: updateRankPermissions + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/RankIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateRankPermissionReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /cascades/{cascadeId}/ranks/{rankId}/assignment: + patch: + tags: + - Ranks + summary: Update member rank assignment + description: Assigns a rank to the member or revokes the rank from the member + operationId: manageRankAssignment + parameters: + - $ref: '#/components/parameters/CascadeIdParam' + - $ref: '#/components/parameters/RankIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManageRankAssignmentReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/follow: + patch: + tags: + - Pictures creator + summary: Follow + description: (un)follows the creator + operationId: unorfollowCreator + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UnOrFollowCreatorReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/details: + get: + tags: + - Pictures creator + summary: Details + description: Fetches user data and albums/pictures count + operationId: creatorDetails + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Creator' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/discoveryParticipation: + patch: + tags: + - Pictures creator + summary: Discovery participation + description: Toggles whether the user's uploads should be included in discovery + operationId: creatorDiscoveryParticipation + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + requestBody: + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ToggleDiscoveryParticipationReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}: + get: + tags: + - Pictures + summary: Get pictures + description: Fetches pictures uploaded to a specific album. If albumId is not provided then pictures uploaded without an album will be fetched. + operationId: getPictures + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/AlbumIdQuery' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Picture' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + post: + tags: + - Pictures + summary: Upload pictures + description: Registers are uploaded pictures in the database. + operationId: uploadPictures + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + requestBody: + content: + application/schema: + schema: + $ref: '#/components/schemas/UploadPicturesReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/register: + post: + tags: + - Pictures + summary: Register picture uploads + description: Returns credentials to upload a set amount of pictures. + operationId: registerPictureUploads + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + requestBody: + content: + application/schema: + schema: + type: array + items: + $ref: '#/components/schemas/S3PresignedFileReq' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/S3PresignedFileResponse' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/{pictureId}: + delete: + tags: + - Pictures + summary: Delete picture + description: Deletes the specified picture. + operationId: deletePicture + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/PictureIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + patch: + tags: + - Pictures + summary: Edit picture + description: Modifies the specified picture. + operationId: editPicture + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/PictureIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EditPictureReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/{pictureId}/like: + patch: + tags: + - Pictures + summary: Like picture + description: (dis)Likes the specified picture. + operationId: likePicture + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/PictureIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/LikePictureReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/discovery: + get: + tags: + - Pictures + summary: Discovery + description: Fetches all recent and most liked public pictures. + operationId: pictureDiscovery + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/DiscoveryResp' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/{pictureId}/comments: + post: + tags: + - Picture comments + summary: Post comment + description: Posts a new comment under the specified picture. + operationId: postPictureComment + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/PictureIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PostCommentReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Comment' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Picture comments + summary: Get comments + description: Fetches all comments under the specified picture. + operationId: getPictureComments + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/PictureIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Comment' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/{pictureId}/comments/{commentId}: + patch: + tags: + - Picture comments + summary: Edit comment + description: Updates the content of the specified comment. + operationId: editPictureComment + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/PictureIdParam' + - $ref: '#/components/parameters/CommentIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EditCommentReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + delete: + tags: + - Picture comments + summary: Delete comment + description: Deletes the specified comment. + operationId: deletePictureComments + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/PictureIdParam' + - $ref: '#/components/parameters/CommentIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/albums: + post: + tags: + - Picture album + summary: Create new + description: Creates a new album + operationId: createAlbum + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAlbumReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Album' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + get: + tags: + - Picture album + summary: Get + description: Gets all albums + operationId: getAlbums + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Album' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + /pictures/{creatorId}/albums/{albumId}: + delete: + tags: + - Picture album + summary: Delete + description: Deletes the specified album + operationId: deleteAlbum + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/AlbumIdParam' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' + patch: + tags: + - Picture album + summary: Edit + description: Modifies the specified album's data + operationId: editAlbum + parameters: + - $ref: '#/components/parameters/CreatorIdParam' + - $ref: '#/components/parameters/AlbumIdParam' + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/EditAlbumReq' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/GenericSuccessBody' + '400': + $ref: '#/components/responses/ErrorBody' + '500': + $ref: '#/components/responses/ErrorBody' +components: + parameters: + WsAccessTokenQuery: + name: wsAccessToken + in: query + required: true + description: A JWT token used to authorize the websocket connection + schema: + type: string + RefreshTokenHeader: + name: X-Refresh-Token + in: header + description: A JWT token used for refreshing the access token + required: true + schema: + type: string + UsernameQuery: + name: username + in: query + required: true + description: Username + schema: + type: string + EmailQuery: + name: email + in: query + required: true + description: Email address + schema: + type: string + AuthIdentityToken: + name: Chtn-Auth-Identity-Token + in: header + description: A JWT token used for authentication + required: true + schema: + type: string + IdentityQuery: + name: identity + in: query + required: true + description: Username, e-mail address or phone number + schema: + type: string + SessionIdParam: + name: sessionId + in: path + required: true + schema: + type: string + RoomIdParam: + name: roomId + in: path + required: true + schema: + type: string + InvitePartnerQuery: + name: channelType + in: query + required: false + schema: + type: string + InvitePartnerIdParam: + name: userId + in: path + required: true + schema: + type: string + ContactIdParam: + name: contactId + in: path + required: true + schema: + type: string + SkipQuery: + name: skip + in: query + required: true + schema: + type: integer + MessageIdsQuery: + name: messageIds + description: Comma-separated list of messageIds + in: query + required: true + schema: + type: string + MessageIdParam: + name: messageId + in: path + required: true + schema: + type: string + TransferIdParam: + name: transferId + in: path + required: true + schema: + type: string + CascadeIdParam: + name: cascadeId + in: path + required: true + schema: + type: string + MemberIdParam: + name: memberId + in: path + required: true + schema: + type: string + KickBanQuery: + name: ban + in: query + required: false + schema: + type: boolean + InviteIdParam: + name: inviteId + in: path + required: true + schema: + type: string + ParentIdQuery: + name: parentId + in: query + required: false + schema: + type: string + ThreadIdParam: + name: threadId + in: path + required: true + schema: + type: string + RankIdParam: + name: rankId + in: path + required: true + schema: + type: string + CreatorIdParam: + name: creatorId + in: path + required: true + schema: + type: string + AlbumIdQuery: + name: albumId + in: query + required: true + schema: + type: string + PictureIdParam: + name: pictureId + in: path + required: true + schema: + type: string + CommentIdParam: + name: commentId + in: path + required: true + schema: + type: string + AlbumIdParam: + name: albumId + in: path + required: true + schema: + type: string + schemas: + SuccessfulAuthResp: + type: object + properties: + accessToken: + type: string + refreshToken: + type: string + userId: + type: string + required: + - accessToken + - refreshToken + - userId + AppleOAuthReq: + type: object + properties: + code: + type: string + description: The authorization code that is returned from Apple's authentication flow + os: + type: string + description: The Operating System of the device that is accessing Chatenium + frontend: + type: string + description: The application's name that is accessing Chatenium + isApple: + type: boolean + description: Whether the app is using Apple's native authentication flow (The app is Apple native) or the web flow (Web app or other non-native app) + required: + - code + - os + - frontend + - isApple + GoogleOAuthReq: + type: object + properties: + code: + type: string + description: The authorization code that is returned from Apple's authentication flow + os: + type: string + description: The Operating System of the device that is accessing Chatenium + frontend: + type: string + description: The application's name that is accessing Chatenium + required: + - code + - os + - frontend + DataAvailabilityResp: + description: Used in e-mail/username availability checks + type: object + properties: + used: + type: boolean + required: + - used + SignInReq: + type: object + properties: + os: + type: string + description: The Operating System of the device that is accessing Chatenium + frontend: + type: string + description: The application's name that is accessing Chatenium + required: + - os + - frontend + PasswordlessRegisterReq: + type: object + properties: + username: + type: string + description: A username picked by the user + x-oapi-codegen-extra-tags: + validate: required,min=3,max=16,alphanum + displayName: + type: string + description: A Display Name picked by the user + x-oapi-codegen-extra-tags: + validate: max=20 + os: + type: string + description: The Operating System of the device that is accessing Chatenium + frontend: + type: string + description: The application's name that is accessing Chatenium + required: + - username + - displayName + - os + - frontend + RegisterReq: + description: Used to register a new user + type: object + properties: + username: + type: string + description: A username picked by the user + x-oapi-codegen-extra-tags: + validate: required,min=3,max=16,alphanum + displayName: + type: string + description: A Display Name picked by the user + x-oapi-codegen-extra-tags: + validate: max=20 + password: + type: string + description: A password picked by the user + x-oapi-codegen-extra-tags: + validate: required,min=6 + os: + type: string + description: The Operating System of the device that is accessing Chatenium + frontend: + type: string + description: The application's name that is accessing Chatenium + required: + - username + - displayName + - password + - os + - frontend + PasswordResetReq: + type: object + properties: + newPassword: + type: string + description: A new password that will be used for signing in + x-oapi-codegen-extra-tags: + validate: required,min=6 + required: + - unameMailPhone + - code + - newPassword + GenericSuccessBody: + type: object + properties: + success: + type: boolean + required: + - success + ChallengeDataOverride: + type: object + properties: + email: + type: string + phone: + type: string + RegisterAuthAttemptReq: + type: object + properties: + userId: + type: string + actionName: + type: string + override: + $ref: '#/components/schemas/ChallengeDataOverride' + required: + - actionName + Factor: + type: object + required: + - status + properties: + status: + type: string + description: The status of the specific challenge method + example: pending + enum: + - PENDING + - SUCCESS + - TIMEOUT + Challenge: + type: object + required: + - challengeId + - minimumSteps + - factorsTracker + properties: + challengeId: + type: string + format: uuid + example: 4a289b70-1653-488f-9a1b-3652c71aef42 + minimumSteps: + type: integer + description: Total number of challenge methods required to complete the challenge + example: 2 + factorsTracker: + type: object + description: A map matching available authentication methods + additionalProperties: + $ref: '#/components/schemas/Factor' + example: + password: + status: PENDING + google: + status: SUCCESS + sms: + status: TIMEOUT + VerifyFactorReq: + type: object + properties: + factorName: + type: string + credential: + type: string + challengeId: + type: string + required: + - factorName + - challengeKey + - challengeId + RequestFactorCredentialReq: + type: object + properties: + factorName: + type: string + challengeId: + type: string + required: + - factorName + - challengeId + GetIdFromIdentityResp: + type: object + properties: + userId: + type: string + required: + - userId + PublicUserData: + type: object + properties: + userId: + type: string + username: + type: string + displayName: + type: string + pfp: + type: string + required: + - userId + - username + GIF: + type: object + properties: + gifId: + type: string + url: + type: string + path: + type: string + required: + - gifId + - url + - path + PersonalUserData: + allOf: + - $ref: '#/components/schemas/PublicUserData' + - type: object + properties: + savedGifs: + type: array + items: + $ref: '#/components/schemas/GIF' + userId: + type: string + username: + type: string + displayName: + type: string + pfp: + type: string + pictureDiscovery: + type: boolean + passwordSet: + type: boolean + emailSet: + type: boolean + phoneSet: + type: boolean + required: + - savedGifs + - userId + - username + - displayName + - pfp + - pictureDiscovery + - passwordSet + - emailSet + - phoneSet + RegisterFcmTokenReq: + type: object + properties: + fcmToken: + type: string + required: + - fcmToken + RegisterApnsTokenReq: + type: object + properties: + apnsToken: + type: string + required: + - apnsToken + ChangeUsernameReq: + type: object + properties: + newUsername: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=3,max=16,alphanum + required: + - newUsername + ChangeDisplayNameReq: + type: object + properties: + newDisplayName: + type: string + x-oapi-codegen-extra-tags: + validate: min=3,max=20 + required: + - newDisplayName + DeleteAccountReq: + type: object + properties: + password: + type: string + required: + - password + SessionV3: + type: object + properties: + frontend: + type: string + os: + type: string + signInAt: + type: string + format: date-time + sessionId: + type: string + required: + - frontend + - os + - sessionId + - signInAt + ToggleGifReq: + type: object + properties: + url: + type: string + saved: + type: boolean + required: + - url + - saved + S3PresignedFileReq: + type: object + properties: + fileSize: + type: integer + contentType: + type: string + fileName: + type: string + description: Optional, only used when sending messages. Other endpoints will ignore this field and use a generated file name. + required: + - fileSize + - contentType + S3PresignedFileResponse: + type: object + properties: + fileId: + type: string + url: + type: string + format: uri + example: https://cdn.chatenium.hu/chatenium + fields: + type: object + description: All these has to be appended to the form data + additionalProperties: + type: string + example: + fileId: 397271d5-1215-4dbd-b9da-2d8584c6adb1 + bucket: chatenium + key: subdirectory/name.extension + Content-Type: image/png + x-amz-date: 20260602T140753Z + x-amz-algorithm: AWS4-HMAC-SHA256 + x-amz-credential: chatenium/20260602/us-east-1/s3/aws4_request + policy: Base64 encoded policy + x-amz-signature: Signature + required: + - url + - fields + - fileId + CompletePfpUploadReq: + type: object + properties: + fileId: + type: string + required: + - fileId + GetAccessResp: + type: object + properties: + rtcConfig: + type: string + description: RTC configuration as a JSON string + liveKitToken: + type: string + required: + - rtcConfig + - liveKitToken + LatestMessage: + type: object + properties: + messageId: + type: string + message: + type: string + isAuthor: + type: boolean + required: + - messageId + - message + - isAuthor + Contact: + type: object + properties: + userid: + type: string + contactId: + type: string + displayName: + type: string + username: + type: string + pfp: + type: string + status: + type: integer + notification: + type: integer + muted: + type: boolean + latestMessage: + $ref: '#/components/schemas/LatestMessage' + required: + - userid + - contactId + - username + - status + - notification + - muted + AddContactReq: + type: object + properties: + partnerUsername: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=3 + required: + - partnerUsername + SetMuteReq: + type: object + properties: + muted: + type: boolean + required: + - muted + Attachment: + type: object + properties: + fileId: + type: string + name: + type: string + path: + type: string + height: + type: integer + format: int64 + width: + type: integer + format: int64 + mimeType: + type: string + required: + - fileId + - name + - path + - mimeType + Message: + type: object + properties: + messageId: + type: string + replyTo: + type: string + replyToContent: + type: string + content: + type: string + author: + $ref: '#/components/schemas/PublicUserData' + sentAt: + type: string + format: date-time + isEdited: + type: boolean + attachments: + type: array + items: + $ref: '#/components/schemas/Attachment' + seen: + type: boolean + forwardedFrom: + type: string + required: + - messageId + - author + - sentAt + - isEdited + - seen + SendMessageReq: + type: object + properties: + attachments: + type: array + items: + type: string + content: + type: string + x-oapi-codegen-extra-tags: + validate: max=2000 + replyingTo: + type: string + PinnedMessage: + type: object + properties: + messageId: + type: string + attachmentCount: + type: integer + content: + type: string + required: + - messageId + - attachmentCount + PinMessageReq: + type: object + properties: + messageId: + type: string + required: + - messageId + GetPositionResp: + type: object + properties: + position: + type: integer + required: + - position + EditMessageReq: + type: object + properties: + newContent: + type: string + x-oapi-codegen-extra-tags: + validate: max=2000 + required: + - newContent + S3PresignedMultiResp: + type: object + properties: + fileId: + type: string + uploadId: + type: string + urls: + type: array + items: + type: string + required: + - uploadId + - urls + - fileId + S3FinishMultiReq: + type: object + properties: + fileId: + type: string + parts: + type: array + items: + type: object + properties: + partNumber: + type: integer + eTag: + type: string + required: + - partNumber + - eTag + required: + - fileId + - parts + FileMetadata: + type: object + properties: + name: + type: string + fileId: + type: string + size: + type: integer + required: + - name + - fileId + - size + StartNewReq: + type: object + properties: + partnerId: + type: string + metadata: + type: array + items: + $ref: '#/components/schemas/FileMetadata' + required: + - partnerId + - metadata + StartNewResp: + type: object + properties: + transferId: + type: string + required: + - transferId + RTCConfiguration: + type: object + properties: + configuration: + type: string + description: WebRTC Configuration encoded via JSON + required: + - configuration + RTCSendOfferReq: + type: object + properties: + offer: + type: string + partnerId: + type: string + transferId: + type: string + required: + - offer + - partnerId + - transferId + RTCSendAnswerReq: + type: object + properties: + answer: + type: string + partnerId: + type: string + transferId: + type: string + required: + - answer + - partnerId + - transferId + RTCSendCandidateReq: + type: object + properties: + candidate: + type: string + partnerId: + type: string + transferId: + type: string + required: + - candidate + - partnerId + - transferId + CompletePicUploadReq: + type: object + properties: + fileId: + type: string + required: + - fileId + Cascade: + type: object + properties: + cascadeId: + type: string + name: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=3,max=16 + visibility: + type: string + x-oapi-codegen-extra-tags: + validate: required,oneof=private public + createdBy: + type: string + createdAt: + type: string + format: date-time + picture: + type: string + required: + - cascadeId + - name + - description + - visibility + - createdBy + - createdAt + - picture + CreateCascadeReq: + type: object + properties: + name: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=3,max=16 + visibility: + type: string + x-oapi-codegen-extra-tags: + validate: required,oneof=private public + required: + - name + - description + - visibility + DetailedMemberList: + type: array + items: + type: object + properties: + rankId: + type: string + name: + type: string + color: + type: string + icon: + type: string + nullable: true + members: + type: array + items: + $ref: '#/components/schemas/PublicUserData' + required: + - rankId + - name + - color + - members + Ban: + type: object + allOf: + - $ref: '#/components/schemas/PublicUserData' + - type: object + properties: + since: + type: string + DiscoveryCascade: + type: object + properties: + name: + type: string + picture: + type: string + memberCount: + type: integer + description: + type: string + createdBy: + type: string + cascadeId: + type: string + threadCount: + type: integer + required: + - name + - memberCount + - description + - createdBy + - cascadeId + - threadCount + JoinFromInviteReq: + type: object + properties: + invite: + type: string + required: + - invite + JoinPublicReq: + type: object + properties: + cascadeId: + type: string + required: + - cascadeId + EditNameReq: + type: object + properties: + newName: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=3,max=16 + required: + - newName + ChangeVisibility: + type: object + properties: + newVisibility: + type: string + x-oapi-codegen-extra-tags: + validate: required,oneof=private public + required: + - newVisibility + CascadeInvite: + type: object + properties: + inviteId: + type: string + createdBy: + type: string + createdAt: + type: string + format: date-time + times: + type: integer + usedTimes: + type: integer + paused: + type: boolean + required: + - inviteId + - createdBy + - createdAt + - times + - usedTimes + - paused + CreateInviteReq: + type: object + properties: + times: + type: integer + minimum: 1 + required: + - times + PauseInviteReq: + type: object + properties: + paused: + type: boolean + required: + - paused + Thread: + type: object + properties: + threadId: + type: string + parentId: + type: string + path: + type: string + createdAt: + type: string + format: date-time + createdBy: + type: string + name: + type: string + desc: + type: string + hasChildren: + type: boolean + required: + - threadId + - path + - createdAt + - createdBy + - name + - desc + - hasChildren + StartNewThreadReq: + type: object + properties: + name: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=3,max=16 + desc: + type: string + x-oapi-codegen-extra-tags: + validate: max=70 + parentId: + type: string + required: + - name + - desc + ThreadMessageAttachment: + type: object + properties: + fileId: + type: string + name: + type: string + path: + type: string + height: + type: integer + format: int64 + width: + type: integer + format: int64 + mimeType: + type: string + required: + - fileId + - name + - path + - mimeType + ThreadMessage: + type: object + properties: + messageId: + type: string + replyTo: + type: string + replyToContent: + type: string + content: + type: string + author: + $ref: '#/components/schemas/PublicUserData' + sentAt: + type: string + format: date-time + isEdited: + type: boolean + attachments: + type: array + items: + $ref: '#/components/schemas/ThreadMessageAttachment' + seen: + type: boolean + forwardedFrom: + type: string + required: + - messageId + - author + - sentAt + - isEdited + - seen + TMSendMessageReq: + type: object + properties: + attachments: + type: array + items: + type: string + content: + type: string + x-oapi-codegen-extra-tags: + validate: max=2000 + replyingTo: + type: string + TMPinMessageReq: + type: object + properties: + messageId: + type: string + required: + - messageId + TMGetPositionResp: + type: object + properties: + position: + type: integer + required: + - position + TMEditMessageReq: + type: object + properties: + newContent: + type: string + required: + - newContent + RankCreateOrUpdateReq: + type: object + properties: + name: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=3,max=16 + color: + type: string + format: hexcolor + x-oapi-codegen-extra-tags: + validate: required,hexcolor + required: + - name + - color + Rank: + type: object + properties: + rankId: + type: string + color: + type: string + format: hexcolor + name: + type: string + permissions: + type: integer + required: + - rankId + - color + - name + - permissions + UpdateRankPermissionReq: + type: object + properties: + permissions: + type: integer + required: + - permissions + ManageRankAssignmentReq: + type: object + properties: + memberId: + type: string + assigned: + type: boolean + required: + - memberId + - assigned + UnOrFollowCreatorReq: + type: object + properties: + followed: + type: boolean + required: + - followed + Creator: + type: object + allOf: + - $ref: '#/components/schemas/PublicUserData' + - type: object + properties: + albumsCount: + type: integer + picturesCount: + type: integer + required: + - albumsCount + - picturesCount + ToggleDiscoveryParticipationReq: + type: object + properties: + participate: + type: boolean + required: + - participate + Picture: + type: object + properties: + pictureId: + type: string + path: + type: string + title: + type: string + uploadedAt: + type: string + blurHash: + type: string + liked: + type: boolean + description: Whether the user has liked the picture + likesCount: + type: integer + userData: + description: Only included when fetching pictures via discovery + $ref: '#/components/schemas/PublicUserData' + required: + - pictureId + - path + - title + - uploadedAt + - blurHash + - likesCount + - liked + UploadPicturesReq: + type: array + items: + type: object + properties: + title: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=1,max=25 + fileId: + type: string + visibility: + type: integer + albumId: + type: string + required: + - title + - fileId + - visibility + EditPictureReq: + type: object + properties: + title: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=1,max=25 + visibility: + type: integer + required: + - title + - visibility + LikePictureReq: + type: object + properties: + liked: + type: boolean + required: + - liked + DiscoveryResp: + type: object + properties: + mostLiked: + type: array + items: + $ref: '#/components/schemas/Picture' + recent: + type: array + items: + $ref: '#/components/schemas/Picture' + required: + - mostLiked + - recent + Comment: + type: object + properties: + commentId: + type: string + author: + type: string + username: + type: string + displayName: + type: string + pfp: + type: string + content: + type: string + commentedAt: + type: string + format: date-time + required: + - commentId + - author + - username + - content + - commentedAt + PostCommentReq: + type: object + properties: + content: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=1,max=100 + required: + - content + EditCommentReq: + type: object + properties: + content: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=1,max=100 + required: + - content + Preview: + type: object + properties: + path: + type: string + blurHash: + type: string + required: + - path + - blurHash + Album: + type: object + properties: + albumId: + type: string + visibility: + type: integer + enum: + - 0 + - 1 + createdAt: + type: string + format: date-time + name: + type: string + preview: + type: array + items: + $ref: '#/components/schemas/Preview' + required: + - albumId + - visibility + - createdAt + - name + - preview + CreateAlbumReq: + type: object + properties: + name: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=1,max=20 + visibility: + type: integer + enum: + - 0 + - 1 + required: + - name + - visibility + EditAlbumReq: + type: object + properties: + name: + type: string + x-oapi-codegen-extra-tags: + validate: required,min=1,max=20 + visibility: + type: integer + enum: + - 0 + - 1 + required: + - name + - visibility + responses: + ErrorBody: + type: object + required: + - code + - message + properties: + code: + type: integer + example: 400 + message: + type: string + example: Validation failed + validation_errors: + type: object + additionalProperties: + type: string diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 0000000..e91f325 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.26.0" + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..b9d1584 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2263 @@ +{ + "name": "chatenium-sdk-typescript", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "chatenium-sdk-typescript", + "version": "1.0.0", + "license": "GPL-3.0-or-later", + "dependencies": { + "@openapitools/openapi-generator-cli": "^2.42.0" + }, + "devDependencies": { + "@types/node": "^26.6.5", + "typescript": "^7.0.2" + } + }, + "node_modules/@borewit/text-codec": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@borewit/text-codec/-/text-codec-0.2.2.tgz", + "integrity": "sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/@inquirer/core": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-6.0.0.tgz", + "integrity": "sha512-fKi63Khkisgda3ohnskNf5uZJj+zXOaBvOllHsOkdsXRA/ubQLJQrZchFFi57NKbZzkTunXiBMdvWOv71alonw==", + "license": "MIT", + "dependencies": { + "@inquirer/type": "^1.1.6", + "@types/mute-stream": "^0.0.4", + "@types/node": "^20.10.7", + "@types/wrap-ansi": "^3.0.0", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "cli-spinners": "^2.9.2", + "cli-width": "^4.1.0", + "figures": "^3.2.0", + "mute-stream": "^1.0.0", + "run-async": "^3.0.0", + "signal-exit": "^4.1.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^6.2.0" + }, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/@inquirer/core/node_modules/@types/node": { + "version": "20.19.43", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.43.tgz", + "integrity": "sha512-6oYBAi5ikg4Pl+kGsoYtawUMBT2zZMCvPNF7pVLnHZfd1zf38DRiWn/gT01RYCdUqkv7Fhr+C9ot4/tb+2sVvA==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@inquirer/core/node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/@inquirer/select": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-1.3.3.tgz", + "integrity": "sha512-RzlRISXWqIKEf83FDC9ZtJ3JvuK1l7aGpretf41BCWYrvla2wU8W8MTRNMiPrPJ+1SIqrRC1nZdZ60hD9hRXLg==", + "license": "MIT", + "dependencies": { + "@inquirer/core": "^6.0.0", + "@inquirer/type": "^1.1.6", + "ansi-escapes": "^4.3.2", + "chalk": "^4.1.2", + "figures": "^3.2.0" + }, + "engines": { + "node": ">=14.18.0" + } + }, + "node_modules/@inquirer/type": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@inquirer/type/-/type-1.5.5.tgz", + "integrity": "sha512-MzICLu4yS7V8AA61sANROZ9vT1H3ooca5dSmI1FjZkzq7o/koMsRfQSzRtFo+F3Ao4Sf1C0bpLKejpKB/+j6MA==", + "license": "MIT", + "dependencies": { + "mute-stream": "^1.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@lukeed/csprng": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@lukeed/csprng/-/csprng-1.1.0.tgz", + "integrity": "sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@nestjs/axios": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@nestjs/axios/-/axios-4.0.1.tgz", + "integrity": "sha512-68pFJgu+/AZbWkGu65Z3r55bTsCPlgyKaV4BSG8yUAD72q1PPuyVRgUwFv6BxdnibTUHlyxm06FmYWNC+bjN7A==", + "license": "MIT", + "peerDependencies": { + "@nestjs/common": "^10.0.0 || ^11.0.0", + "axios": "^1.3.1", + "rxjs": "^7.0.0" + } + }, + "node_modules/@nestjs/common": { + "version": "11.2.3", + "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-11.2.3.tgz", + "integrity": "sha512-obdauJXHfthhepbV+LpGe88OeBlR/Kw9lwjLo0Utzc//agoLXYb9DUGhPQWtm81IpBWMv+19eiwcve9MsBZwXA==", + "license": "MIT", + "dependencies": { + "file-type": "21.3.4", + "iterare": "1.2.1", + "load-esm": "1.0.3", + "tslib": "2.8.1", + "uid": "2.0.2" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "class-transformer": ">=0.4.1", + "class-validator": ">=0.13.2", + "reflect-metadata": "^0.1.12 || ^0.2.0", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "class-transformer": { + "optional": true + }, + "class-validator": { + "optional": true + } + } + }, + "node_modules/@nestjs/core": { + "version": "11.2.3", + "resolved": "https://registry.npmjs.org/@nestjs/core/-/core-11.2.3.tgz", + "integrity": "sha512-vkA9/Ja0Z3hvqXErSa+HaxrfF+cNXthNFi8VPNEKVli4rMd009yExAl0gLmko/Kf8peDXr72u1RN+j9Da2ukHg==", + "license": "MIT", + "dependencies": { + "fast-safe-stringify": "2.1.1", + "iterare": "1.2.1", + "path-to-regexp": "8.4.2", + "tslib": "2.8.1", + "uid": "2.0.2" + }, + "engines": { + "node": ">= 20" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nest" + }, + "peerDependencies": { + "@nestjs/common": "^11.0.0", + "@nestjs/microservices": "^11.0.0", + "@nestjs/platform-express": "^11.0.0", + "@nestjs/websockets": "^11.0.0", + "reflect-metadata": "^0.1.12 || ^0.2.0", + "rxjs": "^7.1.0" + }, + "peerDependenciesMeta": { + "@nestjs/microservices": { + "optional": true + }, + "@nestjs/platform-express": { + "optional": true + }, + "@nestjs/websockets": { + "optional": true + } + } + }, + "node_modules/@nuxtjs/opencollective": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@nuxtjs/opencollective/-/opencollective-0.3.2.tgz", + "integrity": "sha512-um0xL3fO7Mf4fDxcqx9KryrB7zgRM5JSlvGN5AGkP6JLM5XEKyjeAiPbNxdXVXQ16isuAhYpvP88NgL2BGd6aA==", + "license": "MIT", + "dependencies": { + "chalk": "^4.1.0", + "consola": "^2.15.0", + "node-fetch": "^2.6.1" + }, + "bin": { + "opencollective": "bin/opencollective.js" + }, + "engines": { + "node": ">=8.0.0", + "npm": ">=5.0.0" + } + }, + "node_modules/@openapitools/openapi-generator-cli": { + "version": "2.42.0", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.42.0.tgz", + "integrity": "sha512-xdWTmTxL/lEqxYTOPZ4Cj5/TgY8uZPz6PtQO2+4Jm17G0gGaRUyAGpOi+ToSV4z7TUWzF9Rp2yYcJhaOHvRQ+A==", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@inquirer/select": "1.3.3", + "@nestjs/axios": "4.0.1", + "@nestjs/common": "11.2.3", + "@nestjs/core": "11.2.3", + "@nuxtjs/opencollective": "0.3.2", + "axios": "^1.20.0", + "chalk": "4.1.2", + "commander": "8.3.0", + "compare-versions": "6.1.1", + "concurrently": "^10.0.5", + "console.table": "0.10.0", + "fs-extra": "11.4.0", + "glob": "13.0.6", + "proxy-agent": "8.0.2", + "reflect-metadata": "0.2.2", + "rxjs": "7.8.2", + "tslib": "2.8.1" + }, + "bin": { + "openapi-generator-cli": "main.js" + }, + "engines": { + "node": ">=22.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/openapi_generator" + } + }, + "node_modules/@tokenizer/inflate": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@tokenizer/inflate/-/inflate-0.4.1.tgz", + "integrity": "sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "token-types": "^6.1.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/@tokenizer/token": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@tokenizer/token/-/token-0.3.0.tgz", + "integrity": "sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==", + "license": "MIT" + }, + "node_modules/@types/mute-stream": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@types/mute-stream/-/mute-stream-0.0.4.tgz", + "integrity": "sha512-CPM9nzrCPPJHQNA9keH9CVkVI+WR5kMa+7XEs5jcGQ0VoAGnLv242w8lIVgwAEfmE4oufJRaTc9PNLQl0ioAow==", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/node": { + "version": "26.6.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.5.tgz", + "integrity": "sha512-uMzsv9stDdofIZBx4UGh4Z9ZgXnGC9seRDscilBcTHAeOFk67MZg/k9bWVfO+bk4qZmG+l52hRnLwUiH2LnJTg==", + "license": "MIT", + "dependencies": { + "undici-types": "~8.9.0" + } + }, + "node_modules/@types/wrap-ansi": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/wrap-ansi/-/wrap-ansi-3.0.0.tgz", + "integrity": "sha512-ltIpx+kM7g/MLRZfkbL7EsCEjfzCcScLpkg37eXEtx5kmrAKBkTJwd1GIAjDSL8wTpM6Hzn5YO4pSb91BEwu1g==", + "license": "MIT" + }, + "node_modules/@typescript/typescript-aix-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-aix-ppc64/-/typescript-aix-ppc64-7.0.2.tgz", + "integrity": "sha512-MTKKkWB7p/0E9xi1d1tHtZ5PiLkGEMIq88pK2CubZjOsLtYTLqhgIgi6zepFa+9GHZ6h05NMCkQxGKiPXMxXtQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-arm64/-/typescript-darwin-arm64-7.0.2.tgz", + "integrity": "sha512-gowzar9MwS/aRWp6f3a4KUqzRjAZjOsmGNCM6LcTgXum+dBfgsBVMN+AgvOCCbguXyick6LJhpBszxMebJ8syA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-darwin-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-darwin-x64/-/typescript-darwin-x64-7.0.2.tgz", + "integrity": "sha512-SZ9xZInqApNlNGc9s0W1VSsktYSOe9cFqNOIqmN1Gs8SmkjKZYFt017G4VwPxASInODuAdbTW7sXiFUf893RgA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-arm64/-/typescript-freebsd-arm64-7.0.2.tgz", + "integrity": "sha512-W5NH4y/J0plIIS5b2xvTEkU7JFxyqdMAOgf+Ilhl0vHQXKO5dZoxd+C/jEtq56c4F3wk71RB4BMRQ2XdI+bwYQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-freebsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-freebsd-x64/-/typescript-freebsd-x64-7.0.2.tgz", + "integrity": "sha512-UMGDx5sTpzNw3WiPebH7l90IWfJggEd+egHt/q6p7/Cm3zqoV7VxkGXt+3DxPIw8CcmvAB0j3sVVfbhX+M4Tpw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm/-/typescript-linux-arm-7.0.2.tgz", + "integrity": "sha512-gffT3xPz9sR7j/YJExkyPntrI0P2EP9XbOyWzth2/Gs0RstK+90RBcO0ncXoXy/beYll1SXw846Nf2zdnEz0QQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-arm64/-/typescript-linux-arm64-7.0.2.tgz", + "integrity": "sha512-Qh4eU4/y3yDjnfjjyPYihMj5/ODIlmt+Bzu17OI+fiSRDW57QmU5SiN63exPRNJPKUzcc1INa1NXdrJ+MqHjUQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-loong64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-loong64/-/typescript-linux-loong64-7.0.2.tgz", + "integrity": "sha512-uEHck9i8hoAzXPiYRib1O7miOnz23SxIeVl6F4LXox+qov1K35jHcEW6VHKvZI+pyvl7fZEP4MCU5LYvIq1GuQ==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-mips64el": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-mips64el/-/typescript-linux-mips64el-7.0.2.tgz", + "integrity": "sha512-R4KvAMnE43W5Qeqb0Ly56O3mWMWIAgsMyz36DCaycd5nbg/9kzm0liw3JocfRqyJY0KPmzFjbswozXyW0DnIYA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-ppc64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-ppc64/-/typescript-linux-ppc64-7.0.2.tgz", + "integrity": "sha512-DORx5b3sd/4S7eayxm4FQv+A7CrkUIGRaHiwI8oiHTAI1fAPWhF4J0vAlkC8biAlHSVVwxMQ3tjZ2/DVbnQiiA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-riscv64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-riscv64/-/typescript-linux-riscv64-7.0.2.tgz", + "integrity": "sha512-wf0jqEDOjrPRnKwYRyyJDRo11KMbvMFrU+q4zqKyChODBzvlkbhNQfKvLxQCcwTpdDaXSHZTVuh0JoCrKCUMHQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-s390x": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-s390x/-/typescript-linux-s390x-7.0.2.tgz", + "integrity": "sha512-IkwJc3L7yhytWd/ewjyxNDfOmswCm9GWMJT/ue/dU4aZNbwZeYAetq42VyLmsmSjvoX7z74X6ZaYCtzAr0EuGw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-linux-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-linux-x64/-/typescript-linux-x64-7.0.2.tgz", + "integrity": "sha512-EYdf2cNg7rgCWJnxCdJ+F3V39O8ihb37eHAu1LK8oAFizgTQbPOK7zHHXbPt8rX24COqODXeI3sIf0fCXG7H/A==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-arm64/-/typescript-netbsd-arm64-7.0.2.tgz", + "integrity": "sha512-+polYF4MF04aPpO5FTkHran9yUQDSXqy5GiSDKpsll5jy3l3+g9QLhpf39T+ePtefhXLOGrLl0QIjkQP6VnelA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-netbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-netbsd-x64/-/typescript-netbsd-x64-7.0.2.tgz", + "integrity": "sha512-8YIT0EHM/3dq10ZOVF/A7pc/YSMtbcecct4rWtexrnSCHOPcpC2KTLXfTCR6vDpnSiY12heNb1GiN/wu+T/FyA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-arm64/-/typescript-openbsd-arm64-7.0.2.tgz", + "integrity": "sha512-APT8+ClYnuYm1u9+kgGXoMj2VzWzcymwh2gNSQVySHfkRDGOTVkoWLjCmOQSaO+PoqQ57B0flRp9SA+7GnnkzQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-openbsd-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-openbsd-x64/-/typescript-openbsd-x64-7.0.2.tgz", + "integrity": "sha512-yX7s+Q0Dln0Dt9tEzZsAjXXR/+ytBM7AlglaqyeMPxQszJ1JhlJdZ6jLA+IzldHtflX81em7lDao1xXu+aRRkg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-sunos-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-sunos-x64/-/typescript-sunos-x64-7.0.2.tgz", + "integrity": "sha512-dLJDGaLZ1D4HPQn62u1n8mBDkJREwMsAkCdkwd4Ieqw+x3TUyTsqY0YiBCtE6H6OzzgGk3iuZ3vFWRS+E8/d1g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-arm64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-arm64/-/typescript-win32-arm64-7.0.2.tgz", + "integrity": "sha512-Gyl1Vy6OsWesLzmq+EP0Fb7b4Nid5232AvcA2SFcdYreldpNtYFFofPjnt62y9hQy7VTaZp65ICJjuAQRaVcIQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/@typescript/typescript-win32-x64": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/@typescript/typescript-win32-x64/-/typescript-win32-x64-7.0.2.tgz", + "integrity": "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "Apache-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/ast-types": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.13.4.tgz", + "integrity": "sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.20.0.tgz", + "integrity": "sha512-r8aOh8j9cGKpgQAqpzrUHnSIc6a59Y3Xf/cv8sy1DrHCkZHzQGEuoq1tARk6qSyDdtQGSDgpb9kFlruzPvrgwg==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.16.0", + "form-data": "^4.0.6", + "https-proxy-agent": "^5.0.1", + "proxy-from-env": "^2.1.0" + } + }, + "node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/basic-ftp": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/basic-ftp/-/basic-ftp-5.3.1.tgz", + "integrity": "sha512-bopVNp6ugyA150DDuZfPFdt1KZ5a94ZDiwX4hMgZDzF+GttD80lEy8kj98kbyhLXnPvhtIo93mdnLIjpCAeeOw==", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/cli-spinners": { + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", + "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cli-width": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-4.1.0.tgz", + "integrity": "sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==", + "license": "ISC", + "engines": { + "node": ">= 12" + } + }, + "node_modules/cliui": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz", + "integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==", + "license": "ISC", + "dependencies": { + "string-width": "^7.2.0", + "strip-ansi": "^7.1.0", + "wrap-ansi": "^9.0.0" + }, + "engines": { + "node": ">=20" + } + }, + "node_modules/cliui/node_modules/ansi-regex": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz", + "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/cliui/node_modules/ansi-styles": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz", + "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/cliui/node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "license": "MIT" + }, + "node_modules/cliui/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cliui/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/cliui/node_modules/wrap-ansi": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", + "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/clone": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", + "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", + "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/compare-versions": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-6.1.1.tgz", + "integrity": "sha512-4hm4VPpIecmlg59CHXnRDnqGplJFrbLG4aFEl5vl6cK1u76ws3LLvX7ikFnTDl5vo39sjWD6AaDPYodJp/NNHg==", + "license": "MIT" + }, + "node_modules/concurrently": { + "version": "10.0.6", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-10.0.6.tgz", + "integrity": "sha512-qgICXXFp2/3nAebRLmxcINKEXM1mLK3ij/y31P02VTs/KIkddIeC05n73DxOXsXMB9LFSqNU1/na3lDlOhcbIw==", + "license": "MIT", + "dependencies": { + "chalk": "5.6.2", + "rxjs": "7.8.2", + "shell-quote": "1.12.0", + "supports-color": "10.2.2", + "tree-kill": "1.2.2", + "yargs": "18.0.0" + }, + "bin": { + "conc": "dist/bin/index.js", + "concurrently": "dist/bin/index.js" + }, + "engines": { + "node": ">=22" + }, + "funding": { + "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/chalk": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", + "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/concurrently/node_modules/supports-color": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-10.2.2.tgz", + "integrity": "sha512-SS+jx45GF1QjgEXQx4NJZV9ImqmO2NPz5FNsIHrsDjh2YsHnawpan7SNQ1o8NuhrbHZy9AZhIoCUiCeaW/C80g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/consola": { + "version": "2.15.3", + "resolved": "https://registry.npmjs.org/consola/-/consola-2.15.3.tgz", + "integrity": "sha512-9vAdYbHj6x2fLKC4+oPH0kFzY/orMZyG2Aj+kNylHxKGJ/Ed4dpNyAQYwJOdqO4zdM7XpVHmyejQDcQHrnuXbw==", + "license": "MIT" + }, + "node_modules/console.table": { + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/console.table/-/console.table-0.10.0.tgz", + "integrity": "sha512-dPyZofqggxuvSf7WXvNjuRfnsOk1YazkVP8FdxH4tcH2c37wc79/Yl6Bhr7Lsu00KMgy2ql/qCMuNu8xctZM8g==", + "license": "MIT", + "dependencies": { + "easy-table": "1.1.0" + }, + "engines": { + "node": "> 0.10" + } + }, + "node_modules/data-uri-to-buffer": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-8.0.0.tgz", + "integrity": "sha512-6UHfyCux51b8PTGDgveqtz1tvphBku5DrMKKJbFAZAJOI2zsjDpDoYE1+QGj7FOMS4BdTFNJsJiR3zEB0xH0yQ==", + "license": "MIT", + "engines": { + "node": ">= 20" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/defaults": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", + "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", + "license": "MIT", + "optional": true, + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/degenerator": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/degenerator/-/degenerator-7.0.1.tgz", + "integrity": "sha512-ABErK0IefDSyHjlPH7WUEenIAX2rPPnrDcDM+TS3z3+zu9TfyKKi07BQM+8rmxpdE2y1v5fjjdoAS/x4D2U60w==", + "license": "MIT", + "dependencies": { + "ast-types": "^0.13.4", + "escodegen": "^2.1.0", + "esprima": "^4.0.1" + }, + "engines": { + "node": ">= 20" + }, + "peerDependencies": { + "quickjs-wasi": "^2.2.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/easy-table": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/easy-table/-/easy-table-1.1.0.tgz", + "integrity": "sha512-oq33hWOSSnl2Hoh00tZWaIPi1ievrD9aFG82/IgjlycAnW9hHx5PkJiXpxPsgEE+H7BsbVQXFVFST8TEXS6/pA==", + "license": "MIT", + "optionalDependencies": { + "wcwidth": ">=1.0.1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz", + "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "license": "MIT" + }, + "node_modules/figures": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", + "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/file-type": { + "version": "21.3.4", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-21.3.4.tgz", + "integrity": "sha512-Ievi/yy8DS3ygGvT47PjSfdFoX+2isQueoYP1cntFW1JLYAuS4GD7NUPGg4zv2iZfV52uDyk5w5Z0TdpRS6Q1g==", + "license": "MIT", + "dependencies": { + "@tokenizer/inflate": "^0.4.1", + "strtok3": "^10.3.4", + "token-types": "^6.1.1", + "uint8array-extras": "^1.4.0" + }, + "engines": { + "node": ">=20" + }, + "funding": { + "url": "https://github.com/sindresorhus/file-type?sponsor=1" + } + }, + "node_modules/follow-redirects": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.2.tgz", + "integrity": "sha512-/kVP2U8z596Ia0gwFrwyIeo74ta5aVmSeU1FfAUMAmcEP5EP7zydmag3SLiN64NaRKef3lxsq7i/g7ltJQDGow==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.4", + "mime-types": "^2.1.35" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "11.4.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.4.0.tgz", + "integrity": "sha512-EQsFzMUJkCKGr1ePqlYADkIUmHW1s3ZXr5Yqy6wbGrfUCphpl2maM/kyOIRA2HpP3AaFQTZXD4ldjek+nccddA==", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=14.14" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-east-asian-width": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz", + "integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-uri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-8.0.1.tgz", + "integrity": "sha512-/5N/P4Lrh0p/mDwlDRi7Y1+P2o/OyzZI3l6Iz1Ov6XXwwm1y3RlZLuo3gVgML99djrEDtV980bBxSuOeHLk8ww==", + "license": "MIT", + "dependencies": { + "basic-ftp": "^5.3.1", + "data-uri-to-buffer": "8.0.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/glob": { + "version": "13.0.6", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.6.tgz", + "integrity": "sha512-Wjlyrolmm8uDpm/ogGyXZXb1Z+Ca2B8NbJwqBVg0axK9GbBeoS7yGV6vjXnYdGm6X53iehEuxxbyiKp8QmN4Vw==", + "license": "BlueOak-1.0.0", + "dependencies": { + "minimatch": "^10.2.2", + "minipass": "^7.1.3", + "path-scurry": "^2.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/http-proxy-agent": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-9.1.0.tgz", + "integrity": "sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==", + "license": "MIT", + "dependencies": { + "agent-base": "9.0.0", + "debug": "^4.3.4", + "proxy-agent-negotiate": "1.1.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/http-proxy-agent/node_modules/agent-base": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", + "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", + "license": "MIT", + "engines": { + "node": ">= 20" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ip-address": { + "version": "10.7.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.5.tgz", + "integrity": "sha512-t2v0rkILYv9WXmSL7TpAaU3HXgaFYOPUcH3QHgwQ++gpJuH3bqyMy4Fvt/DJCTKwzH3Cf+bAp5W/mFL39KPLzA==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/iterare": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/iterare/-/iterare-1.2.1.tgz", + "integrity": "sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==", + "license": "ISC", + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.2.1.tgz", + "integrity": "sha512-zwOTdL3rFQ/lRdBnntKVOX6k5cKJwEc1HdilT71BWEu7J41gXIB2MRp+vxduPSwZJPWBxEzv4yH1wYLJGUHX4Q==", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/load-esm": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/load-esm/-/load-esm-1.0.3.tgz", + "integrity": "sha512-v5xlu8eHD1+6r8EHTg6hfmO97LN8ugKtiXcy5e6oN72iD2r6u0RPfLl6fxM+7Wnh2ZRq15o0russMst44WauPA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + }, + { + "type": "buymeacoffee", + "url": "https://buymeacoffee.com/borewit" + } + ], + "license": "MIT", + "engines": { + "node": ">=13.2.0" + } + }, + "node_modules/lru-cache": { + "version": "11.5.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.5.3.tgz", + "integrity": "sha512-U4N8FgzmWxc8k1VH8Kr6lQg18U7Fjvby6wXHVRX/ZZ7IwWbRMgrRbP0Wrb5q5NVinryp4SQampHKdvtecItxUg==", + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.8" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minipass": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz", + "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==", + "license": "BlueOak-1.0.0", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/mute-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", + "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/netmask": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/netmask/-/netmask-2.1.1.tgz", + "integrity": "sha512-eonl3sLUha+S1GzTPxychyhnUzKyeQkZ7jLjKrBagJgPla13F+uQ71HgpFefyHgqrjEbCPkDArxYsjY8/+gLKA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/pac-proxy-agent": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/pac-proxy-agent/-/pac-proxy-agent-9.1.0.tgz", + "integrity": "sha512-1aU+1mpj3DrQPfo3gh+3Gap3G5x+axnMx1P/y0ZF2ch7kb2meyOCAH8K2k9d27ROsTE7TnAerzxqF9aon2jqnA==", + "license": "MIT", + "dependencies": { + "agent-base": "9.0.0", + "debug": "^4.3.4", + "get-uri": "8.0.1", + "http-proxy-agent": "9.1.0", + "https-proxy-agent": "9.1.0", + "pac-resolver": "9.0.1", + "quickjs-wasi": "^2.2.0", + "socks-proxy-agent": "10.1.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/pac-proxy-agent/node_modules/agent-base": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", + "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", + "license": "MIT", + "engines": { + "node": ">= 20" + } + }, + "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-9.1.0.tgz", + "integrity": "sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==", + "license": "MIT", + "dependencies": { + "agent-base": "9.0.0", + "debug": "^4.3.4", + "proxy-agent-negotiate": "1.1.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/pac-resolver": { + "version": "9.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-9.0.1.tgz", + "integrity": "sha512-lJbS008tmkj08VhoM8Hzuv/VE5tK9MS0OIQ/7+s0lIF+BYhiQWFYzkSpML7lXs9iBu2jfmzBTLzhe9n6BX+dYw==", + "license": "MIT", + "dependencies": { + "degenerator": "7.0.1", + "netmask": "^2.0.2" + }, + "engines": { + "node": ">= 20" + }, + "peerDependencies": { + "quickjs-wasi": "^2.2.0" + } + }, + "node_modules/path-scurry": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.2.tgz", + "integrity": "sha512-3O/iVVsJAPsOnpwWIeD+d6z/7PmqApyQePUtCndjatj/9I5LylHvt5qluFaBT3I5h3r1ejfR056c+FCv+NnNXg==", + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^11.0.0", + "minipass": "^7.1.2" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-to-regexp": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/proxy-agent": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/proxy-agent/-/proxy-agent-8.0.2.tgz", + "integrity": "sha512-idLLRewuemWd7GH/BDJzGiB0dWGfT2SQs3jy6NtZtGWU9uPTTSdeC1/cdbqLwgzhfv027daGFuXX426e2Eg20A==", + "license": "MIT", + "dependencies": { + "agent-base": "9.0.0", + "debug": "^4.3.4", + "http-proxy-agent": "9.1.0", + "https-proxy-agent": "9.1.0", + "lru-cache": "^7.14.1", + "pac-proxy-agent": "9.1.0", + "proxy-from-env": "^2.0.0", + "socks-proxy-agent": "10.1.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/proxy-agent-negotiate": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-agent-negotiate/-/proxy-agent-negotiate-1.1.0.tgz", + "integrity": "sha512-N8IBcM3UgCVzz2L2Lqv8DVntDnnC8/hiV4nEDUPkqq72TPUgYWjQc+bdZlBPZK9LzPAvOY//gAt0S0DApoOXWQ==", + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "peerDependencies": { + "kerberos": "^2.0.0" + }, + "peerDependenciesMeta": { + "kerberos": { + "optional": true + } + } + }, + "node_modules/proxy-agent/node_modules/agent-base": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", + "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", + "license": "MIT", + "engines": { + "node": ">= 20" + } + }, + "node_modules/proxy-agent/node_modules/https-proxy-agent": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-9.1.0.tgz", + "integrity": "sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==", + "license": "MIT", + "dependencies": { + "agent-base": "9.0.0", + "debug": "^4.3.4", + "proxy-agent-negotiate": "1.1.0" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/proxy-agent/node_modules/lru-cache": { + "version": "7.18.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", + "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/proxy-from-env": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/quickjs-wasi": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/quickjs-wasi/-/quickjs-wasi-2.2.0.tgz", + "integrity": "sha512-zQxXmQMrEoD3S+jQdYsloq4qAuaxKFHZj6hHqOYGwB2iQZH+q9e/lf5zQPXCKOk0WJuAjzRFbO4KwHIp2D05Iw==", + "license": "MIT" + }, + "node_modules/reflect-metadata": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz", + "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==", + "license": "Apache-2.0" + }, + "node_modules/run-async": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-3.0.0.tgz", + "integrity": "sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q==", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/shell-quote": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.12.0.tgz", + "integrity": "sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.8.10", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.10.tgz", + "integrity": "sha512-e0VyvkVTwVYViNovRkZ9aodhxVlyoMn7eJhVUPxZ+eK9P/7CBkxvvsBOHqFPEH416726W8tLXXXjKwqgTErrCQ==", + "license": "MIT", + "dependencies": { + "ip-address": "^10.1.1", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-10.1.0.tgz", + "integrity": "sha512-WlMj/67cEJ6MDI1OcsnjuYKDNDoyPCCYZ249kuuXPiMDw9F8PXkVaQ7YWu3siTydfQ/4BEZcvGzu+aYvz7dDCQ==", + "license": "MIT", + "dependencies": { + "agent-base": "9.0.0", + "debug": "^4.3.4", + "socks": "^2.8.3" + }, + "engines": { + "node": ">= 20" + } + }, + "node_modules/socks-proxy-agent/node_modules/agent-base": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz", + "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==", + "license": "MIT", + "engines": { + "node": ">= 20" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strtok3": { + "version": "10.6.2", + "resolved": "https://registry.npmjs.org/strtok3/-/strtok3-10.6.2.tgz", + "integrity": "sha512-BkdixFFUt7r7LsX6aGNPVyYMLjW+M1USLlKPNbZsrZEmLFh5tGqhdfckKo6xgsZIJqdDD0CZGkeCJJwNWQIKQA==", + "license": "MIT", + "dependencies": { + "@tokenizer/token": "^0.3.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/token-types": { + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/token-types/-/token-types-6.1.2.tgz", + "integrity": "sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==", + "license": "MIT", + "dependencies": { + "@borewit/text-codec": "^0.2.1", + "@tokenizer/token": "^0.3.0", + "ieee754": "^1.2.1" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Borewit" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-7.0.2.tgz", + "integrity": "sha512-8FYau96o3NKOhbjKi/qNvG/W5jhzxkbdm5sj9AbZ/5T5sWqn3hJgLfGx27sRKZWTvyzCP8dLRBTf5tBTSRVUNA==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc" + }, + "engines": { + "node": ">=16.20.0" + }, + "optionalDependencies": { + "@typescript/typescript-aix-ppc64": "7.0.2", + "@typescript/typescript-darwin-arm64": "7.0.2", + "@typescript/typescript-darwin-x64": "7.0.2", + "@typescript/typescript-freebsd-arm64": "7.0.2", + "@typescript/typescript-freebsd-x64": "7.0.2", + "@typescript/typescript-linux-arm": "7.0.2", + "@typescript/typescript-linux-arm64": "7.0.2", + "@typescript/typescript-linux-loong64": "7.0.2", + "@typescript/typescript-linux-mips64el": "7.0.2", + "@typescript/typescript-linux-ppc64": "7.0.2", + "@typescript/typescript-linux-riscv64": "7.0.2", + "@typescript/typescript-linux-s390x": "7.0.2", + "@typescript/typescript-linux-x64": "7.0.2", + "@typescript/typescript-netbsd-arm64": "7.0.2", + "@typescript/typescript-netbsd-x64": "7.0.2", + "@typescript/typescript-openbsd-arm64": "7.0.2", + "@typescript/typescript-openbsd-x64": "7.0.2", + "@typescript/typescript-sunos-x64": "7.0.2", + "@typescript/typescript-win32-arm64": "7.0.2", + "@typescript/typescript-win32-x64": "7.0.2" + } + }, + "node_modules/uid": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz", + "integrity": "sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==", + "license": "MIT", + "dependencies": { + "@lukeed/csprng": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/uint8array-extras": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/uint8array-extras/-/uint8array-extras-1.6.0.tgz", + "integrity": "sha512-8iAasVS4wUx0gPLjH8Xtz2PeDzTSiy8QiLGu2DT3X5GU+egFEQhpnbtkehbAwjvDcxIERmCYcysiODFmE3Ud0Q==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/undici-types": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", + "license": "MIT" + }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/wcwidth": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", + "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", + "license": "MIT", + "optional": true, + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/wrap-ansi": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", + "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "18.0.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-18.0.0.tgz", + "integrity": "sha512-4UEqdc2RYGHZc7Doyqkrqiln3p9X2DZVxaGbwhn2pi7MrRagKaOcIKe8L3OxYcbhXLgLFUS3zAYuQjKBQgmuNg==", + "license": "MIT", + "dependencies": { + "cliui": "^9.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "string-width": "^7.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^22.0.0" + }, + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/yargs-parser": { + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz", + "integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==", + "license": "ISC", + "engines": { + "node": "^20.19.0 || ^22.12.0 || >=23" + } + }, + "node_modules/yargs/node_modules/ansi-regex": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz", + "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/yargs/node_modules/emoji-regex": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", + "license": "MIT" + }, + "node_modules/yargs/node_modules/string-width": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/yargs/node_modules/strip-ansi": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz", + "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.2.2" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..24a9369 --- /dev/null +++ b/package.json @@ -0,0 +1,33 @@ +{ + "name": "chatenium-sdk-typescript", + "version": "1.0.0", + "description": "A TypeScript SDK for interacting with Chatenium API", + "main": "index.js", + "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.js" + } + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "generate": "npx @openapitools/openapi-generator-cli generate -i openapi.yaml -g typescript-axios -o ./src/generated --skip-validate-spec --global-property apiDocs=false,modelDocs=false", + "build": "tsc", + "prepare": "npm run build" + }, + "repository": { + "type": "git", + "url": "https://git.chatenium.hu/chatenium/SDK-TypeScript" + }, + "author": "Noel", + "license": "GPL-3.0-or-later", + "dependencies": { + "@openapitools/openapi-generator-cli": "^2.42.0" + }, + "devDependencies": { + "@types/node": "^26.6.5", + "typescript": "^7.0.2" + } +} diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..f444ac1 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,17 @@ +import {AuthApi, Configuration} from "./generated"; +import {DatabaseAPI} from "./storage/database"; +import {KeyringAPI} from "./storage/keyring"; +import {KeyValueAPI} from "./storage/keyvalue"; +import {AuthApiExtended} from "./services/auth"; + +export class ChateniumClient { + public auth: AuthApiExtended; + + constructor(config: { baseUrl: string, storage: {database: DatabaseAPI, keyring: KeyringAPI, keyValue: KeyValueAPI} }) { + const apiConfig = new Configuration({ + basePath: config.baseUrl+"/v3" + }) + + this.auth = new AuthApiExtended(apiConfig); + } +} \ No newline at end of file diff --git a/src/services/auth.ts b/src/services/auth.ts new file mode 100644 index 0000000..f68a7ec --- /dev/null +++ b/src/services/auth.ts @@ -0,0 +1,24 @@ +import {AuthApi, Challenge, ChallengeDataOverride} from "../generated"; + +export class AuthChallenge { + private challenge?: Challenge; + + constructor(private authApi: AuthApi) {} + + /** + * Starts a new challenge for the provided endpoint + * @param action Each authenticated endpoint in v3/auth or v3/account has its own action name (Example: passwordless registration: AUTH:PLE) + * @param userId If the provided action points to an endpoint that modifies an existing user, provide it. For registration, don't. + * @param override For registration or account info changes, this provides the (new) user data + */ + async start(action: string, userId?: string, override?: ChallengeDataOverride): Promise { + const resp = await this.authApi.registerChallenge({ + actionName: action, + override: override, + userId: userId, + }) + + this.challenge = resp.data; + return resp.data; + } +} \ No newline at end of file diff --git a/src/storage/database.ts b/src/storage/database.ts new file mode 100644 index 0000000..6cdac0e --- /dev/null +++ b/src/storage/database.ts @@ -0,0 +1,6 @@ +export interface DatabaseAPI { + set(collection: string, key: string, value: any): void; + get(collection: string, key: string): Promise; + delete(collection: string, key: string): void; + flush(): void; +} \ No newline at end of file diff --git a/src/storage/keyring.ts b/src/storage/keyring.ts new file mode 100644 index 0000000..566bbfa --- /dev/null +++ b/src/storage/keyring.ts @@ -0,0 +1,6 @@ +export interface KeyringAPI { + set(key: string, value: any): void; + get(key: string): Promise; + getAll(): Promise; + delete(key: string): void; +} \ No newline at end of file diff --git a/src/storage/keyvalue.ts b/src/storage/keyvalue.ts new file mode 100644 index 0000000..d635d91 --- /dev/null +++ b/src/storage/keyvalue.ts @@ -0,0 +1,6 @@ +export interface KeyValueAPI { + set(key: string, value: any): void; + get(key: string): Promise; + delete(key: string): void; + flush(): void; +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..08294f8 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["src/**/*"] +} \ No newline at end of file