@marcoappio/marco-config 4.0.26 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/api.d.ts +9 -0
- package/dist/constants/api.d.ts.map +1 -0
- package/dist/constants/api.js +8 -0
- package/dist/constants/emailAccounts.d.ts.map +1 -1
- package/dist/constants/emailAccounts.js +14 -1
- package/dist/constants/emailProvider.js +1 -1
- package/dist/constants/index.d.ts +11 -3
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +7 -5
- package/dist/constants/messages.d.ts.map +1 -1
- package/dist/constants/oauth.d.ts +2 -2
- package/dist/constants/oauth.d.ts.map +1 -1
- package/dist/constants/oauth.js +5 -1
- package/dist/constants/user.d.ts +1 -1
- package/dist/constants/user.d.ts.map +1 -1
- package/dist/constants/user.js +1 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -5
- package/dist/marcoPublicConfig.d.ts +36 -0
- package/dist/marcoPublicConfig.d.ts.map +1 -0
- package/dist/marcoPublicConfig.js +99 -0
- package/dist/schemas/app.d.ts +2 -2
- package/dist/schemas/app.d.ts.map +1 -1
- package/dist/schemas/app.js +3 -3
- package/dist/schemas/auth.d.ts +1 -1
- package/dist/schemas/auth.d.ts.map +1 -1
- package/dist/schemas/auth.js +2 -2
- package/dist/schemas/boolean.d.ts +5 -0
- package/dist/schemas/boolean.d.ts.map +1 -0
- package/dist/schemas/boolean.js +4 -0
- package/dist/schemas/emailAccount.d.ts +10 -10
- package/dist/schemas/emailAccount.d.ts.map +1 -1
- package/dist/schemas/emailAccount.js +13 -13
- package/dist/schemas/id.d.ts +1 -6
- package/dist/schemas/id.d.ts.map +1 -1
- package/dist/schemas/id.js +1 -2
- package/dist/schemas/index.d.ts +429 -60
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +21 -9
- package/dist/schemas/labels.d.ts +5 -0
- package/dist/schemas/labels.d.ts.map +1 -0
- package/dist/schemas/labels.js +5 -0
- package/dist/schemas/models/account.d.ts +3 -3
- package/dist/schemas/models/account.d.ts.map +1 -1
- package/dist/schemas/models/account.js +8 -8
- package/dist/schemas/models/contact.d.ts +2 -2
- package/dist/schemas/models/contact.d.ts.map +1 -1
- package/dist/schemas/models/contact.js +4 -4
- package/dist/schemas/models/draft.d.ts +9 -9
- package/dist/schemas/models/draft.d.ts.map +1 -1
- package/dist/schemas/models/draft.js +9 -9
- package/dist/schemas/models/index.d.ts +5 -5
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +5 -5
- package/dist/schemas/models/thread.d.ts +46 -28
- package/dist/schemas/models/thread.d.ts.map +1 -1
- package/dist/schemas/models/thread.js +12 -11
- package/dist/schemas/models/user.d.ts +30 -3
- package/dist/schemas/models/user.d.ts.map +1 -1
- package/dist/schemas/models/user.js +21 -5
- package/dist/schemas/mutators/index.d.ts +2 -0
- package/dist/schemas/mutators/index.d.ts.map +1 -0
- package/dist/schemas/mutators/index.js +1 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts +314 -0
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +1 -0
- package/dist/schemas/mutators/mutatorSchemas.js +229 -0
- package/dist/schemas/number.d.ts +5 -3
- package/dist/schemas/number.d.ts.map +1 -1
- package/dist/schemas/number.js +5 -4
- package/dist/schemas/oauth.d.ts +2 -2
- package/dist/schemas/oauth.d.ts.map +1 -1
- package/dist/schemas/oauth.js +3 -3
- package/dist/schemas/paginatedResponse.d.ts +10 -0
- package/dist/schemas/paginatedResponse.d.ts.map +1 -0
- package/dist/schemas/paginatedResponse.js +5 -0
- package/dist/schemas/pushNotifications.d.ts +3 -3
- package/dist/schemas/pushNotifications.d.ts.map +1 -1
- package/dist/schemas/pushNotifications.js +4 -3
- package/dist/schemas/string.d.ts +4 -2
- package/dist/schemas/string.d.ts.map +1 -1
- package/dist/schemas/string.js +5 -4
- package/dist/schemas/websocket.d.ts +14 -0
- package/dist/schemas/websocket.d.ts.map +1 -0
- package/dist/schemas/websocket.js +10 -0
- package/dist/sdk/endpoints/createEndpointConfig.d.ts +12 -0
- package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +1 -0
- package/dist/sdk/endpoints/createEndpointConfig.js +21 -0
- package/dist/sdk/endpoints/index.d.ts +255 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/index.js +6 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +31 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/draftAttachment/index.js +4 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +30 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +18 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +22 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/index.js +4 -0
- package/dist/sdk/endpoints/private/index.d.ts +103 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/index.js +12 -0
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +70 -0
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/account/getAccounts.js +26 -0
- package/dist/sdk/endpoints/private/models/account/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/account/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/account/index.js +1 -0
- package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +41 -0
- package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/contact/getContacts.js +26 -0
- package/dist/sdk/endpoints/private/models/contact/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/contact/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/contact/index.js +1 -0
- package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +62 -0
- package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/draft/getDrafts.js +25 -0
- package/dist/sdk/endpoints/private/models/draft/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/draft/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/draft/index.js +1 -0
- package/dist/sdk/endpoints/private/models/index.d.ts +13 -0
- package/dist/sdk/endpoints/private/models/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/index.js +12 -0
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +63 -0
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThread.js +17 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +63 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +17 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +79 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreadList.js +47 -0
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +83 -0
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/getThreads.js +36 -0
- package/dist/sdk/endpoints/private/models/thread/index.d.ts +5 -0
- package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/thread/index.js +4 -0
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts +34 -0
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/user/getUser.js +16 -0
- package/dist/sdk/endpoints/private/models/user/index.d.ts +2 -0
- package/dist/sdk/endpoints/private/models/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/models/user/index.js +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +35 -0
- package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createAccount.js +18 -0
- package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +42 -0
- package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createAlias.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +44 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/createLabel.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +27 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +18 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +33 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +43 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts +14 -0
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/index.js +13 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +49 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +21 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +44 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +33 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +44 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.js +20 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +49 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +42 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +19 -0
- package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/account/setSettings.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +28 -0
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +18 -0
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +45 -0
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +60 -0
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +27 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +18 -0
- package/dist/sdk/endpoints/private/mutations/draft/index.d.ts +10 -0
- package/dist/sdk/endpoints/private/mutations/draft/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/index.js +9 -0
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +39 -0
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +45 -0
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +85 -0
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +19 -0
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +47 -0
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +20 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/mutations/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/index.js +10 -0
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +40 -0
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +19 -0
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/index.js +10 -0
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +40 -0
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +19 -0
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +35 -0
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +35 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +35 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +18 -0
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +34 -0
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +38 -0
- package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/createView.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +23 -0
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +17 -0
- package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +28 -0
- package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/deleteView.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/index.d.ts +9 -0
- package/dist/sdk/endpoints/private/mutations/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/index.js +8 -0
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +32 -0
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +37 -0
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +33 -0
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +18 -0
- package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +43 -0
- package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/mutations/user/updateView.js +19 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
- package/dist/sdk/endpoints/private/user/index.d.ts +37 -0
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/index.js +6 -0
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +28 -0
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.js +19 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +133 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +68 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +36 -0
- package/dist/sdk/endpoints/public/config/index.d.ts +10 -0
- package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/config/index.js +15 -0
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts +8 -0
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/healthcheck/index.js +10 -0
- package/dist/sdk/endpoints/public/index.d.ts +149 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/index.js +8 -0
- package/dist/sdk/index.d.ts +426 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +6 -0
- package/dist/sdk/validation/errors.d.ts +326 -0
- package/dist/sdk/validation/errors.d.ts.map +1 -0
- package/dist/sdk/validation/errors.js +140 -0
- package/dist/sdk/validation/index.d.ts +172 -0
- package/dist/sdk/validation/index.d.ts.map +1 -0
- package/dist/sdk/validation/index.js +3 -0
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +11 -0
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +1 -0
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.js +22 -0
- package/dist/sdk/validation/utils/flattenRequirements/index.d.ts +2 -0
- package/dist/sdk/validation/utils/flattenRequirements/index.d.ts.map +1 -0
- package/dist/sdk/validation/utils/flattenRequirements/index.js +1 -0
- package/dist/sdk/validation/utils/index.d.ts +7 -0
- package/dist/sdk/validation/utils/index.d.ts.map +1 -0
- package/dist/sdk/validation/utils/index.js +4 -0
- package/dist/types/AuthData.d.ts +4 -0
- package/dist/types/AuthData.d.ts.map +1 -0
- package/dist/types/AuthData.js +1 -0
- package/dist/types/DraftAttachmentUploadStatus.d.ts +1 -1
- package/dist/types/DraftAttachmentUploadStatus.d.ts.map +1 -1
- package/dist/types/DraftStatus.d.ts +1 -1
- package/dist/types/DraftStatus.d.ts.map +1 -1
- package/dist/types/DraftType.d.ts +1 -1
- package/dist/types/DraftType.d.ts.map +1 -1
- package/dist/types/Endpoint.d.ts +25 -0
- package/dist/types/Endpoint.d.ts.map +1 -0
- package/dist/types/Endpoint.js +1 -0
- package/dist/types/IMAPConnectionStatus.d.ts +1 -1
- package/dist/types/IMAPConnectionStatus.d.ts.map +1 -1
- package/dist/types/IMAPSourceLocation.d.ts +1 -1
- package/dist/types/LabelSpecialUse.d.ts +1 -1
- package/dist/types/LabelSpecialUse.d.ts.map +1 -1
- package/dist/types/MarcoPlatform.d.ts +1 -1
- package/dist/types/MarcoPlatform.d.ts.map +1 -1
- package/dist/types/MessageRecipientType.d.ts +1 -1
- package/dist/types/MessageRecipientType.d.ts.map +1 -1
- package/dist/types/OAuthProvider.d.ts +1 -1
- package/dist/types/OAuthProvider.d.ts.map +1 -1
- package/dist/types/PokeEvent.d.ts +6 -0
- package/dist/types/PokeEvent.d.ts.map +1 -0
- package/dist/types/PokeEvent.js +1 -0
- package/dist/types/SDKError.d.ts +4 -0
- package/dist/types/SDKError.d.ts.map +1 -0
- package/dist/types/SDKError.js +1 -0
- package/dist/types/UserSettings.d.ts +15 -16
- package/dist/types/UserSettings.d.ts.map +1 -1
- package/dist/types/UserSettings.js +29 -15
- package/dist/types/index.d.ts +15 -11
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +15 -11
- package/dist/utils/accounts/generateAccountColor.d.ts.map +1 -1
- package/dist/utils/accounts/generateAccountColor.js +15 -10
- package/dist/utils/accounts/index.d.ts +3 -1
- package/dist/utils/accounts/index.d.ts.map +1 -1
- package/dist/utils/accounts/index.js +4 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/labels/index.d.ts +3 -2
- package/dist/utils/labels/index.d.ts.map +1 -1
- package/dist/utils/labels/index.js +4 -1
- package/dist/utils/threads/index.d.ts +4 -2
- package/dist/utils/threads/index.d.ts.map +1 -1
- package/dist/utils/threads/index.js +6 -2
- package/dist/utils/threads/parseLabelIdList/index.d.ts +2 -0
- package/dist/utils/threads/parseLabelIdList/index.d.ts.map +1 -0
- package/dist/utils/threads/parseLabelIdList/index.js +1 -0
- package/dist/utils/threads/processSearchTerm/index.d.ts +2 -0
- package/dist/utils/threads/processSearchTerm/index.d.ts.map +1 -0
- package/dist/utils/threads/processSearchTerm/index.js +1 -0
- package/package.json +13 -28
- package/dist/appwrite/appwrite.d.ts +0 -77
- package/dist/appwrite/appwrite.d.ts.map +0 -1
- package/dist/appwrite/appwrite.js +0 -61
- package/dist/appwrite/appwrite.test.d.ts +0 -2
- package/dist/appwrite/appwrite.test.d.ts.map +0 -1
- package/dist/appwrite/appwrite.test.js +0 -901
- package/dist/appwrite/commands.d.ts +0 -5093
- package/dist/appwrite/commands.d.ts.map +0 -1
- package/dist/appwrite/commands.js +0 -208
- package/dist/appwrite/commands.test.d.ts +0 -2
- package/dist/appwrite/commands.test.d.ts.map +0 -1
- package/dist/appwrite/commands.test.js +0 -425
- package/dist/appwrite/decodedSchemas.d.ts +0 -35
- package/dist/appwrite/decodedSchemas.d.ts.map +0 -1
- package/dist/appwrite/decodedSchemas.js +0 -18
- package/dist/appwrite/functions.d.ts +0 -2806
- package/dist/appwrite/functions.d.ts.map +0 -1
- package/dist/appwrite/functions.js +0 -192
- package/dist/appwrite/functions.test.d.ts +0 -2
- package/dist/appwrite/functions.test.d.ts.map +0 -1
- package/dist/appwrite/functions.test.js +0 -370
- package/dist/appwrite/index.d.ts +0 -8
- package/dist/appwrite/index.d.ts.map +0 -1
- package/dist/appwrite/index.js +0 -5
- package/dist/appwrite/queryContracts/queryContracts.d.ts +0 -392
- package/dist/appwrite/queryContracts/queryContracts.d.ts.map +0 -1
- package/dist/appwrite/queryContracts/queryContracts.js +0 -299
- package/dist/appwrite/queryContracts/queryContracts.test.d.ts +0 -2
- package/dist/appwrite/queryContracts/queryContracts.test.d.ts.map +0 -1
- package/dist/appwrite/queryContracts/queryContracts.test.js +0 -39
- package/dist/appwrite/tableContract/identity.d.ts +0 -207
- package/dist/appwrite/tableContract/identity.d.ts.map +0 -1
- package/dist/appwrite/tableContract/identity.js +0 -169
- package/dist/appwrite/tableContract/index.d.ts +0 -3125
- package/dist/appwrite/tableContract/index.d.ts.map +0 -1
- package/dist/appwrite/tableContract/index.js +0 -94
- package/dist/appwrite/tableContract/index.test.d.ts +0 -2
- package/dist/appwrite/tableContract/index.test.d.ts.map +0 -1
- package/dist/appwrite/tableContract/index.test.js +0 -150
- package/dist/appwrite/tableContract/mailbox.d.ts +0 -276
- package/dist/appwrite/tableContract/mailbox.d.ts.map +0 -1
- package/dist/appwrite/tableContract/mailbox.js +0 -261
- package/dist/appwrite/tableContract/operational.d.ts +0 -247
- package/dist/appwrite/tableContract/operational.d.ts.map +0 -1
- package/dist/appwrite/tableContract/operational.js +0 -167
- package/dist/appwrite/tableContract/shared.d.ts +0 -145
- package/dist/appwrite/tableContract/shared.d.ts.map +0 -1
- package/dist/appwrite/tableContract/shared.js +0 -83
- package/dist/index.test.d.ts +0 -2
- package/dist/index.test.d.ts.map +0 -1
- package/dist/index.test.js +0 -106
- package/dist/schemas/models/mailboxAddress.test.d.ts +0 -2
- package/dist/schemas/models/mailboxAddress.test.d.ts.map +0 -1
- package/dist/schemas/models/mailboxAddress.test.js +0 -31
- package/dist/schemas/models/numericSemantics.test.d.ts +0 -2
- package/dist/schemas/models/numericSemantics.test.d.ts.map +0 -1
- package/dist/schemas/models/numericSemantics.test.js +0 -24
- package/dist/schemas/models/user.test.d.ts +0 -2
- package/dist/schemas/models/user.test.d.ts.map +0 -1
- package/dist/schemas/models/user.test.js +0 -18
- package/dist/schemas/scalars.d.ts +0 -13
- package/dist/schemas/scalars.d.ts.map +0 -1
- package/dist/schemas/scalars.js +0 -15
- package/dist/schemas/scalars.test.d.ts +0 -2
- package/dist/schemas/scalars.test.d.ts.map +0 -1
- package/dist/schemas/scalars.test.js +0 -44
- package/dist/schemas/schemaValues.test.d.ts +0 -2
- package/dist/schemas/schemaValues.test.d.ts.map +0 -1
- package/dist/schemas/schemaValues.test.js +0 -21
- package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.d.ts +0 -2
- package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.d.ts.map +0 -1
- package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +0 -18
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts +0 -2
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts.map +0 -1
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +0 -38
- package/dist/utils/valibot/index.d.ts +0 -3
- package/dist/utils/valibot/index.d.ts.map +0 -1
- package/dist/utils/valibot/index.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/schemas/number.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"number.d.ts","sourceRoot":"","sources":["../../src/schemas/number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,MAAM;;kBASH,MAAM,OAAO,MAAM;;;;CAIlC,CAAA"}
|
package/dist/schemas/number.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { nonNegativeIntegerSchema, positiveIntegerSchema } from './scalars.js';
|
|
1
|
+
import * as v from 'valibot';
|
|
3
2
|
export const number = {
|
|
3
|
+
fromString: () => v.pipe(v.string(), v.nonEmpty(), v.transform(value => Number(value)), v.number(), v.finite()),
|
|
4
4
|
minMax: (min, max) => v.nonOptional(v.pipe(v.number(), v.minValue(min), v.maxValue(max))),
|
|
5
|
-
|
|
6
|
-
positiveInteger: () => v.nonOptional(
|
|
5
|
+
nullable: () => v.nullable(v.number()),
|
|
6
|
+
positiveInteger: () => v.nonOptional(v.pipe(v.number(), v.integer(), v.minValue(0))),
|
|
7
|
+
positiveIntegerFromString: () => v.pipe(number.fromString(), v.integer(), v.minValue(0)),
|
|
7
8
|
};
|
package/dist/schemas/oauth.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as v from 'valibot';
|
|
2
2
|
export declare const oauth: {
|
|
3
|
-
provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
3
|
+
provider: () => v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=oauth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/schemas/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/schemas/oauth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,KAAK;;CAEjB,CAAA"}
|
package/dist/schemas/oauth.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { OAUTH_PROVIDERS } from '../types
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { OAUTH_PROVIDERS } from '../types';
|
|
3
3
|
export const oauth = {
|
|
4
|
-
provider: v.picklist(OAUTH_PROVIDERS),
|
|
4
|
+
provider: () => v.picklist(OAUTH_PROVIDERS),
|
|
5
5
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const paginatedResponseSchema: <T extends v.GenericSchema>(itemSchema: T) => v.ObjectSchema<{
|
|
3
|
+
readonly items: v.ArraySchema<T, undefined>;
|
|
4
|
+
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
export type PaginatedResponse<T> = {
|
|
7
|
+
items: T[];
|
|
8
|
+
nextCursor: string | null;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=paginatedResponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paginatedResponse.d.ts","sourceRoot":"","sources":["../../src/schemas/paginatedResponse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,uBAAuB,GAAI,CAAC,SAAS,CAAC,CAAC,aAAa,cAAc,CAAC;;;aAI5E,CAAA;AAEJ,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IACjC,KAAK,EAAE,CAAC,EAAE,CAAA;IACV,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as v from 'valibot';
|
|
2
2
|
export declare const pushNotifications: {
|
|
3
|
-
payload: v.ObjectSchema<{
|
|
3
|
+
payload: v.UnionSchema<[v.ObjectSchema<{
|
|
4
4
|
readonly data: v.ObjectSchema<{
|
|
5
5
|
readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
6
6
|
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
7
7
|
}, undefined>;
|
|
8
8
|
readonly event: v.LiteralSchema<"EMAIL_RECEIVED", undefined>;
|
|
9
|
-
}, undefined>;
|
|
9
|
+
}, undefined>], undefined>;
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=pushNotifications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,iBAAiB;;;;;;;;CAE7B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { id } from './id
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { id } from './id';
|
|
3
3
|
const pushNotificationEmailReceivedPayload = v.object({
|
|
4
4
|
data: v.object({
|
|
5
5
|
messageId: id.messageId.required(),
|
|
@@ -7,6 +7,7 @@ const pushNotificationEmailReceivedPayload = v.object({
|
|
|
7
7
|
}),
|
|
8
8
|
event: v.literal('EMAIL_RECEIVED'),
|
|
9
9
|
});
|
|
10
|
+
const pushNotificationPayload = v.union([pushNotificationEmailReceivedPayload]);
|
|
10
11
|
export const pushNotifications = {
|
|
11
|
-
payload:
|
|
12
|
+
payload: pushNotificationPayload,
|
|
12
13
|
};
|
package/dist/schemas/string.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as v from 'valibot';
|
|
2
2
|
export declare const string: {
|
|
3
3
|
email: () => v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
4
|
-
|
|
4
|
+
enum: (values: Record<string, string>) => v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EnumSchema<Record<string, string>, undefined>]>, undefined>;
|
|
5
|
+
matches: (regex: RegExp) => v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
5
6
|
nullable: (maxLength?: number) => v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
+
optional: (maxLength?: number) => v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
8
|
required: (maxLength?: number) => v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
9
|
};
|
|
8
10
|
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/schemas/string.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/schemas/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,eAAO,MAAM,MAAM;;mBAEF,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;qBACpB,MAAM;;;;CAIxB,CAAA"}
|
package/dist/schemas/string.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mailboxAddressSchema, rfcEmailSchema } from './scalars.js';
|
|
1
|
+
import * as v from 'valibot';
|
|
3
2
|
export const string = {
|
|
4
|
-
email: () => v.nonOptional(
|
|
5
|
-
|
|
3
|
+
email: () => v.nonOptional(v.pipe(v.string(), v.rfcEmail())),
|
|
4
|
+
enum: (values) => v.nonOptional(v.pipe(v.string(), v.enum(values))),
|
|
5
|
+
matches: (regex) => v.nonOptional(v.pipe(v.string(), v.regex(regex))),
|
|
6
6
|
nullable: (maxLength = 255) => v.nullable(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength))),
|
|
7
|
+
optional: (maxLength = 255) => v.undefinedable(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength))),
|
|
7
8
|
required: (maxLength = 255) => v.nonOptional(v.pipe(v.string(), v.nonEmpty(), v.maxLength(maxLength))),
|
|
8
9
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const pokeEventSchema: v.LooseObjectSchema<{
|
|
3
|
+
readonly event: v.LiteralSchema<"poke", undefined>;
|
|
4
|
+
readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5
|
+
readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
|
|
6
|
+
}, undefined>;
|
|
7
|
+
export declare const websocket: {
|
|
8
|
+
pokeEvent: v.LooseObjectSchema<{
|
|
9
|
+
readonly event: v.LiteralSchema<"poke", undefined>;
|
|
10
|
+
readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
11
|
+
readonly model: v.PicklistSchema<readonly ["user", "account", "contact", "draft", "thread"], undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=websocket.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/schemas/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,eAAO,MAAM,eAAe;;;;aAI1B,CAAA;AAEF,eAAO,MAAM,SAAS;;;;;;CAErB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { POKE_MODELS } from '../types';
|
|
3
|
+
export const pokeEventSchema = v.looseObject({
|
|
4
|
+
event: v.literal('poke'),
|
|
5
|
+
ids: v.optional(v.array(v.string())),
|
|
6
|
+
model: v.picklist(POKE_MODELS),
|
|
7
|
+
});
|
|
8
|
+
export const websocket = {
|
|
9
|
+
pokeEvent: pokeEventSchema,
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GenericSchema } from 'valibot';
|
|
2
|
+
import type { BodyType, EndpointConfig, HTTPMethod, SDKResponse, URLPattern } from '../../types/Endpoint';
|
|
3
|
+
export declare const createURLPattern: <T extends string>(pattern: T) => (params: URLPattern<T>) => string;
|
|
4
|
+
export declare const createEndpoint: <TPath extends string, TRequestBody extends GenericSchema | undefined, TRequestQuery extends GenericSchema | undefined, TResponse extends GenericSchema<SDKResponse>>(params: {
|
|
5
|
+
body?: TRequestBody;
|
|
6
|
+
bodyType?: BodyType;
|
|
7
|
+
method: HTTPMethod;
|
|
8
|
+
path: TPath;
|
|
9
|
+
query?: TRequestQuery;
|
|
10
|
+
response: TResponse;
|
|
11
|
+
}) => EndpointConfig<TPath, TRequestBody, TRequestQuery, TResponse>;
|
|
12
|
+
//# sourceMappingURL=createEndpointConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEndpointConfig.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/createEndpointConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAEjH,eAAO,MAAM,gBAAgB,GAC1B,CAAC,SAAS,MAAM,WAAW,CAAC,cACpB,UAAU,CAAC,CAAC,CAAC,KAAG,MAWxB,CAAA;AAEH,eAAO,MAAM,cAAc,GACzB,KAAK,SAAS,MAAM,EACpB,YAAY,SAAS,aAAa,GAAG,SAAS,EAC9C,aAAa,SAAS,aAAa,GAAG,SAAS,EAC/C,SAAS,SAAS,aAAa,CAAC,WAAW,CAAC,UACpC;IACR,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,KAAK,CAAA;IACX,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,EAAE,SAAS,CAAA;CACpB,KAAG,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,CAQ9D,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const createURLPattern = (pattern) => (params) => {
|
|
2
|
+
const segments = pattern.split('/');
|
|
3
|
+
return segments
|
|
4
|
+
.map(segment => {
|
|
5
|
+
if (segment.startsWith(':')) {
|
|
6
|
+
const paramName = segment.slice(1);
|
|
7
|
+
return params[paramName];
|
|
8
|
+
}
|
|
9
|
+
return segment;
|
|
10
|
+
})
|
|
11
|
+
.join('/');
|
|
12
|
+
};
|
|
13
|
+
export const createEndpoint = (params) => ({
|
|
14
|
+
body: params.body,
|
|
15
|
+
bodyType: params.bodyType ?? 'json',
|
|
16
|
+
buildPath: createURLPattern(params.path),
|
|
17
|
+
method: params.method,
|
|
18
|
+
path: params.path,
|
|
19
|
+
query: params.query,
|
|
20
|
+
response: params.response,
|
|
21
|
+
});
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import type { GenericSchema } from 'valibot';
|
|
2
|
+
import type { EndpointConfig } from '../../types';
|
|
3
|
+
export declare const endpoints: {
|
|
4
|
+
private: {
|
|
5
|
+
draftAttachment: {
|
|
6
|
+
upload: EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
7
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
8
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
11
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
12
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
13
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
14
|
+
}, undefined>;
|
|
15
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
16
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
17
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
18
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
21
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
22
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
23
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
24
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
25
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
26
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
31
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
32
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
33
|
+
}, undefined>], undefined>>;
|
|
34
|
+
};
|
|
35
|
+
emailMessage: {
|
|
36
|
+
getAttachment: EndpointConfig<"/v1/pv/attachment/:attachmentId", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
37
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
38
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
39
|
+
}, undefined>;
|
|
40
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
41
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
42
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
43
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
44
|
+
}, undefined>;
|
|
45
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
46
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
47
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
48
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
49
|
+
}, undefined>;
|
|
50
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
51
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
52
|
+
readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
|
|
53
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
54
|
+
}, undefined>], undefined>>;
|
|
55
|
+
};
|
|
56
|
+
models: {
|
|
57
|
+
account: typeof import("./private/models/account");
|
|
58
|
+
contact: typeof import("./private/models/contact");
|
|
59
|
+
draft: typeof import("./private/models/draft");
|
|
60
|
+
thread: typeof import("./private/models/thread");
|
|
61
|
+
user: typeof import("./private/models/user");
|
|
62
|
+
};
|
|
63
|
+
mutations: {
|
|
64
|
+
account: typeof import("./private/mutations/account");
|
|
65
|
+
draft: typeof import("./private/mutations/draft");
|
|
66
|
+
thread: typeof import("./private/mutations/thread");
|
|
67
|
+
user: typeof import("./private/mutations/user");
|
|
68
|
+
};
|
|
69
|
+
user: {
|
|
70
|
+
deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
71
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
72
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
75
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
76
|
+
readonly status: import("valibot").LiteralSchema<204, undefined>;
|
|
77
|
+
}, undefined>], undefined>>;
|
|
78
|
+
uploadProfilePicture: EndpointConfig<"/v1/pv/user/profile-picture", import("valibot").BlobSchema<undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
79
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
80
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
81
|
+
}, undefined>;
|
|
82
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
83
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
84
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
85
|
+
readonly code: import("valibot").LiteralSchema<"FILE_TOO_LARGE", undefined>;
|
|
86
|
+
}, undefined>;
|
|
87
|
+
readonly status: import("valibot").LiteralSchema<413, undefined>;
|
|
88
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
89
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
90
|
+
readonly code: import("valibot").LiteralSchema<"INVALID_FILE_TYPE", undefined>;
|
|
91
|
+
}, undefined>;
|
|
92
|
+
readonly status: import("valibot").LiteralSchema<415, undefined>;
|
|
93
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
94
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
95
|
+
readonly code: import("valibot").LiteralSchema<"INVALID_IMAGE_DIMENSIONS", undefined>;
|
|
96
|
+
}, undefined>;
|
|
97
|
+
readonly status: import("valibot").LiteralSchema<415, undefined>;
|
|
98
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
99
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
100
|
+
readonly profilePicture: import("valibot").StringSchema<undefined>;
|
|
101
|
+
}, undefined>;
|
|
102
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
103
|
+
}, undefined>], undefined>>;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
public: {
|
|
107
|
+
auth: {
|
|
108
|
+
refreshAuth: EndpointConfig<"/v1/pb/auth/refresh", import("valibot").ObjectSchema<{
|
|
109
|
+
readonly refreshToken: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
110
|
+
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
111
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
112
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
113
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
114
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
115
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
116
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
117
|
+
}, undefined>;
|
|
118
|
+
}, undefined>;
|
|
119
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
120
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
121
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
122
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_REFRESH_TOKEN_INVALID", undefined>;
|
|
123
|
+
}, undefined>;
|
|
124
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
125
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
126
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
127
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
128
|
+
}, undefined>;
|
|
129
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
130
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
131
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
132
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
133
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
134
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
135
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
136
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
137
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
138
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
139
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
140
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
141
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
142
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
143
|
+
}, undefined>;
|
|
144
|
+
}, undefined>;
|
|
145
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
146
|
+
}, undefined>], undefined>>;
|
|
147
|
+
sendAuthCode: EndpointConfig<"/v1/pb/auth/send-code", import("valibot").ObjectSchema<{
|
|
148
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
149
|
+
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
150
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
151
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
152
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
153
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
154
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
155
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
156
|
+
}, undefined>;
|
|
157
|
+
}, undefined>;
|
|
158
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
159
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
160
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
161
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
162
|
+
}, undefined>;
|
|
163
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
164
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
165
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
166
|
+
readonly code: import("valibot").LiteralSchema<"INVITE_NOT_FOUND", undefined>;
|
|
167
|
+
}, undefined>;
|
|
168
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
169
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
170
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
171
|
+
}, undefined>], undefined>>;
|
|
172
|
+
verifyAuthCode: EndpointConfig<"/v1/pb/auth/verify-code", import("valibot").ObjectSchema<{
|
|
173
|
+
readonly authType: import("valibot").LiteralSchema<"CODE", undefined>;
|
|
174
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
175
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
176
|
+
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
177
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
178
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
179
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
180
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
181
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
182
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
183
|
+
}, undefined>;
|
|
184
|
+
}, undefined>;
|
|
185
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
186
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
187
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
188
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_EXPIRED", undefined>;
|
|
189
|
+
}, undefined>;
|
|
190
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
191
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
192
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
193
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_INVALID", undefined>;
|
|
194
|
+
}, undefined>;
|
|
195
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
196
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
197
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
198
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_CODE_PREVIOUSLY_USED", undefined>;
|
|
199
|
+
}, undefined>;
|
|
200
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
201
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
202
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
203
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_TOO_MANY_ATTEMPTS", undefined>;
|
|
204
|
+
}, undefined>;
|
|
205
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
206
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
207
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
208
|
+
readonly code: import("valibot").LiteralSchema<"AUTH_SERVER_RESPONSE_UNEXPECTED", undefined>;
|
|
209
|
+
}, undefined>;
|
|
210
|
+
readonly status: import("valibot").LiteralSchema<502, undefined>;
|
|
211
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
212
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
213
|
+
readonly code: import("valibot").LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
214
|
+
}, undefined>;
|
|
215
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
216
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
217
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
218
|
+
readonly code: import("valibot").LiteralSchema<"USER_MARKED_FOR_DELETION", undefined>;
|
|
219
|
+
}, undefined>;
|
|
220
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
221
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
222
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
223
|
+
readonly accessToken: import("valibot").StringSchema<undefined>;
|
|
224
|
+
readonly refreshToken: import("valibot").StringSchema<undefined>;
|
|
225
|
+
readonly user: import("valibot").ObjectSchema<{
|
|
226
|
+
readonly createdAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
227
|
+
readonly email: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
|
|
228
|
+
readonly emailVerified: import("valibot").BooleanSchema<undefined>;
|
|
229
|
+
readonly firstName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
230
|
+
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
231
|
+
readonly lastName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
232
|
+
readonly profilePictureUrl: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
233
|
+
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
234
|
+
}, undefined>;
|
|
235
|
+
}, undefined>;
|
|
236
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
237
|
+
}, undefined>], undefined>>;
|
|
238
|
+
};
|
|
239
|
+
config: EndpointConfig<"/v1/pb/config", GenericSchema | undefined, GenericSchema | undefined, import("valibot").ObjectSchema<{
|
|
240
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
241
|
+
readonly app: import("valibot").ObjectSchema<{
|
|
242
|
+
readonly minimumVersion: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
243
|
+
}, undefined>;
|
|
244
|
+
}, undefined>;
|
|
245
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
246
|
+
}, undefined>>;
|
|
247
|
+
healthcheck: EndpointConfig<"/v1/pb/healthcheck", GenericSchema | undefined, GenericSchema | undefined, import("valibot").ObjectSchema<{
|
|
248
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
249
|
+
readonly status: import("valibot").LiteralSchema<"ok", undefined>;
|
|
250
|
+
}, undefined>;
|
|
251
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
252
|
+
}, undefined>>;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const draftAttachment: {
|
|
2
|
+
upload: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", import("valibot").BlobSchema<undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
3
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
4
|
+
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
7
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
8
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
9
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
13
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
14
|
+
readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: import("valibot").LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
18
|
+
readonly data: import("valibot").ObjectSchema<{
|
|
19
|
+
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
20
|
+
readonly issues: import("valibot").ObjectSchema<{
|
|
21
|
+
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
22
|
+
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
23
|
+
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
27
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
28
|
+
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
29
|
+
}, undefined>], undefined>>;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAE3B,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const uploadDraftAttachment: import("../../../..").EndpointConfig<"/v1/pv/drafts/:attachmentId/upload", v.BlobSchema<undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
+
readonly data: v.ObjectSchema<{
|
|
4
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
7
|
+
}, undefined>, v.ObjectSchema<{
|
|
8
|
+
readonly data: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
|
13
|
+
readonly data: v.ObjectSchema<{
|
|
14
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly data: v.ObjectSchema<{
|
|
19
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
20
|
+
readonly issues: v.ObjectSchema<{
|
|
21
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
22
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
23
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
}, undefined>;
|
|
26
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
27
|
+
}, undefined>, v.ObjectSchema<{
|
|
28
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
29
|
+
}, undefined>], undefined>>;
|
|
30
|
+
//# sourceMappingURL=uploadDraftAttachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uploadDraftAttachment.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAchC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
|
|
3
|
+
import { attachmentNotFoundErrorSchema, attachmentStateInvalidErrorSchema, authFailedErrorSchema, validationFailedErrorSchema, } from '../../../../sdk/validation/errors';
|
|
4
|
+
export const uploadDraftAttachment = createEndpoint({
|
|
5
|
+
body: v.blob(),
|
|
6
|
+
bodyType: 'blob',
|
|
7
|
+
method: 'POST',
|
|
8
|
+
path: '/v1/pv/drafts/:attachmentId/upload',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
attachmentNotFoundErrorSchema,
|
|
12
|
+
attachmentStateInvalidErrorSchema,
|
|
13
|
+
validationFailedErrorSchema,
|
|
14
|
+
v.object({
|
|
15
|
+
status: v.literal(200),
|
|
16
|
+
}),
|
|
17
|
+
]),
|
|
18
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const getEmailMessageAttachment: import("../../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", v.GenericSchema | undefined, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
+
readonly data: v.ObjectSchema<{
|
|
4
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
5
|
+
}, undefined>;
|
|
6
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
7
|
+
}, undefined>, v.ObjectSchema<{
|
|
8
|
+
readonly data: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
|
13
|
+
readonly data: v.ObjectSchema<{
|
|
14
|
+
readonly code: v.LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly file: v.NonOptionalSchema<v.FileSchema<undefined>, undefined>;
|
|
19
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
20
|
+
}, undefined>], undefined>>;
|
|
21
|
+
//# sourceMappingURL=getEmailMessageAttachment.d.ts.map
|