@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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, threadNotFoundErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const getThread = createEndpoint({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
path: '/v1/pv/models/thread/:threadId',
|
|
8
|
+
response: v.union([
|
|
9
|
+
authFailedErrorSchema,
|
|
10
|
+
userNotFoundErrorSchema,
|
|
11
|
+
threadNotFoundErrorSchema,
|
|
12
|
+
v.object({
|
|
13
|
+
data: marcoSchemas.models.threadFullSchema,
|
|
14
|
+
status: v.literal(200),
|
|
15
|
+
}),
|
|
16
|
+
]),
|
|
17
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const getThreadByMessageId: import("../../../../..").EndpointConfig<"/v1/pv/models/threads/by-message/:messageId", 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<"USER_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<"MESSAGE_NOT_FOUND", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly data: v.ObjectSchema<{
|
|
19
|
+
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
20
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
21
|
+
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
22
|
+
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
24
|
+
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
|
+
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
26
|
+
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
27
|
+
}, undefined>, undefined>;
|
|
28
|
+
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
29
|
+
readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
31
|
+
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
33
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
35
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
+
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
37
|
+
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
38
|
+
}, undefined>, undefined>;
|
|
39
|
+
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
42
|
+
readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
|
+
}, undefined>, undefined>;
|
|
44
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
45
|
+
readonly flagged: v.BooleanSchema<undefined>;
|
|
46
|
+
readonly hasAttachments: v.BooleanSchema<undefined>;
|
|
47
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
48
|
+
readonly labelIdList: v.StringSchema<undefined>;
|
|
49
|
+
readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
50
|
+
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
51
|
+
readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
52
|
+
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
+
readonly seen: v.BooleanSchema<undefined>;
|
|
54
|
+
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
55
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
56
|
+
readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
57
|
+
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
59
|
+
readonly words: v.StringSchema<undefined>;
|
|
60
|
+
}, undefined>;
|
|
61
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
62
|
+
}, undefined>], undefined>>;
|
|
63
|
+
//# sourceMappingURL=getThreadByMessageId.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThreadByMessageId.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadByMessageId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAY/B,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, messageNotFoundErrorSchema, userNotFoundErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const getThreadByMessageId = createEndpoint({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
path: '/v1/pv/models/threads/by-message/:messageId',
|
|
8
|
+
response: v.union([
|
|
9
|
+
authFailedErrorSchema,
|
|
10
|
+
userNotFoundErrorSchema,
|
|
11
|
+
messageNotFoundErrorSchema,
|
|
12
|
+
v.object({
|
|
13
|
+
data: marcoSchemas.models.threadFullSchema,
|
|
14
|
+
status: v.literal(200),
|
|
15
|
+
}),
|
|
16
|
+
]),
|
|
17
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const getThreadList: import("../../../../..").EndpointConfig<"/v1/pv/models/threads/list", v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
+
readonly ids: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
4
|
+
readonly labelIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5
|
+
readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly flagged: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
|
|
7
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
8
|
+
readonly messageIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
9
|
+
readonly participants: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
10
|
+
readonly search: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly seen: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
|
|
12
|
+
readonly snoozed: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
|
|
13
|
+
}, undefined>, v.ObjectSchema<{
|
|
14
|
+
readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
15
|
+
readonly labelIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
16
|
+
readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly flagged: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
|
|
18
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
19
|
+
readonly messageIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
20
|
+
readonly participants: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
21
|
+
readonly search: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
22
|
+
readonly seen: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
|
|
23
|
+
readonly snoozed: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
|
|
24
|
+
}, undefined>, v.ObjectSchema<{
|
|
25
|
+
readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
26
|
+
readonly labelIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
+
readonly snoozed: v.SchemaWithPipe<readonly [v.LiteralSchema<"true", undefined>, v.TransformAction<"true", true>]>;
|
|
28
|
+
readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly flagged: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
|
|
30
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
31
|
+
readonly messageIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
32
|
+
readonly participants: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
33
|
+
readonly search: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly seen: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"true" | "false", boolean>, v.BooleanSchema<undefined>]>, undefined>;
|
|
35
|
+
}, undefined>], undefined>, v.UnionSchema<[v.ObjectSchema<{
|
|
36
|
+
readonly data: v.ObjectSchema<{
|
|
37
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
40
|
+
}, undefined>, v.ObjectSchema<{
|
|
41
|
+
readonly data: v.ObjectSchema<{
|
|
42
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
43
|
+
}, undefined>;
|
|
44
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
45
|
+
}, undefined>, v.ObjectSchema<{
|
|
46
|
+
readonly data: v.ObjectSchema<{
|
|
47
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
48
|
+
readonly issues: v.ObjectSchema<{
|
|
49
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
50
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
51
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
52
|
+
}, undefined>;
|
|
53
|
+
}, undefined>;
|
|
54
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
55
|
+
}, undefined>, v.ObjectSchema<{
|
|
56
|
+
readonly data: v.ObjectSchema<{
|
|
57
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
58
|
+
accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
59
|
+
flagged: v.BooleanSchema<undefined>;
|
|
60
|
+
hasAttachments: v.BooleanSchema<undefined>;
|
|
61
|
+
id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
62
|
+
labelIdList: v.StringSchema<undefined>;
|
|
63
|
+
latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
64
|
+
latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
65
|
+
messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
66
|
+
previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
67
|
+
seen: v.BooleanSchema<undefined>;
|
|
68
|
+
senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
69
|
+
senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
70
|
+
snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
71
|
+
subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
72
|
+
userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
73
|
+
words: v.StringSchema<undefined>;
|
|
74
|
+
}, undefined>, undefined>;
|
|
75
|
+
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
76
|
+
}, undefined>;
|
|
77
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
78
|
+
}, undefined>], undefined>>;
|
|
79
|
+
//# sourceMappingURL=getThreadList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThreadList.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreadList.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA4C5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
|
+
import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
|
|
4
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
5
|
+
import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
6
|
+
const baseQuerySchema = {
|
|
7
|
+
cursor: v.optional(v.string()),
|
|
8
|
+
flagged: v.optional(marcoSchemas.boolean.fromString()),
|
|
9
|
+
limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
|
|
10
|
+
messageIds: v.optional(v.array(v.string())),
|
|
11
|
+
participants: v.optional(v.array(v.string())),
|
|
12
|
+
search: v.optional(v.string()),
|
|
13
|
+
seen: v.optional(marcoSchemas.boolean.fromString()),
|
|
14
|
+
snoozed: v.optional(marcoSchemas.boolean.fromString()),
|
|
15
|
+
};
|
|
16
|
+
const getThreadListQuerySchema = v.union([
|
|
17
|
+
v.object({
|
|
18
|
+
...baseQuerySchema,
|
|
19
|
+
ids: v.pipe(v.array(v.string()), v.minLength(1)),
|
|
20
|
+
labelIds: v.optional(v.array(v.string())),
|
|
21
|
+
}),
|
|
22
|
+
v.object({
|
|
23
|
+
...baseQuerySchema,
|
|
24
|
+
ids: v.optional(v.array(v.string())),
|
|
25
|
+
labelIds: v.pipe(v.array(v.string()), v.minLength(1)),
|
|
26
|
+
}),
|
|
27
|
+
v.object({
|
|
28
|
+
...baseQuerySchema,
|
|
29
|
+
ids: v.optional(v.array(v.string())),
|
|
30
|
+
labelIds: v.optional(v.array(v.string())),
|
|
31
|
+
snoozed: v.pipe(v.literal('true'), v.transform(() => true)),
|
|
32
|
+
}),
|
|
33
|
+
]);
|
|
34
|
+
export const getThreadList = createEndpoint({
|
|
35
|
+
method: 'GET',
|
|
36
|
+
path: '/v1/pv/models/threads/list',
|
|
37
|
+
query: getThreadListQuerySchema,
|
|
38
|
+
response: v.union([
|
|
39
|
+
authFailedErrorSchema,
|
|
40
|
+
userNotFoundErrorSchema,
|
|
41
|
+
validationFailedErrorSchema,
|
|
42
|
+
v.object({
|
|
43
|
+
data: paginatedResponseSchema(marcoSchemas.models.threadListSchema),
|
|
44
|
+
status: v.literal(200),
|
|
45
|
+
}),
|
|
46
|
+
]),
|
|
47
|
+
});
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const getThreads: import("../../../../..").EndpointConfig<"/v1/pv/models/threads/full", v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
+
readonly ids: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
4
|
+
readonly labelIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5
|
+
readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
6
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7
|
+
readonly participants: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
8
|
+
}, undefined>, v.ObjectSchema<{
|
|
9
|
+
readonly ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
10
|
+
readonly labelIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>;
|
|
11
|
+
readonly cursor: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.TransformAction<string, number>, v.NumberSchema<undefined>, v.FiniteAction<number, undefined>]>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
13
|
+
readonly participants: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
14
|
+
}, undefined>], undefined>, v.UnionSchema<[v.ObjectSchema<{
|
|
15
|
+
readonly data: v.ObjectSchema<{
|
|
16
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
19
|
+
}, undefined>, v.ObjectSchema<{
|
|
20
|
+
readonly data: v.ObjectSchema<{
|
|
21
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
24
|
+
}, undefined>, v.ObjectSchema<{
|
|
25
|
+
readonly data: v.ObjectSchema<{
|
|
26
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
27
|
+
readonly issues: v.ObjectSchema<{
|
|
28
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
29
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
30
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
34
|
+
}, undefined>, v.ObjectSchema<{
|
|
35
|
+
readonly data: v.ObjectSchema<{
|
|
36
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
37
|
+
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
38
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
39
|
+
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
40
|
+
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AttachmentId">]>, undefined>;
|
|
42
|
+
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
|
+
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
44
|
+
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
45
|
+
}, undefined>, undefined>;
|
|
46
|
+
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
47
|
+
readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
49
|
+
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
+
readonly recipients: v.ArraySchema<v.ObjectSchema<{
|
|
51
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "RecipientId">]>, undefined>;
|
|
53
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
+
readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
55
|
+
readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
|
|
56
|
+
}, undefined>, undefined>;
|
|
57
|
+
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
59
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
60
|
+
readonly unsubscribeUrl: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
61
|
+
}, undefined>, undefined>;
|
|
62
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
63
|
+
readonly flagged: v.BooleanSchema<undefined>;
|
|
64
|
+
readonly hasAttachments: v.BooleanSchema<undefined>;
|
|
65
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
|
|
66
|
+
readonly labelIdList: v.StringSchema<undefined>;
|
|
67
|
+
readonly latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
68
|
+
readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
|
|
69
|
+
readonly messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
70
|
+
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
71
|
+
readonly seen: v.BooleanSchema<undefined>;
|
|
72
|
+
readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
73
|
+
readonly senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
74
|
+
readonly snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
75
|
+
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
76
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
77
|
+
readonly words: v.StringSchema<undefined>;
|
|
78
|
+
}, undefined>, undefined>;
|
|
79
|
+
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
}, undefined>;
|
|
81
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
82
|
+
}, undefined>], undefined>>;
|
|
83
|
+
//# sourceMappingURL=getThreads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/getThreads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA8B5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAarB,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
|
+
import { paginatedResponseSchema } from '../../../../../schemas/paginatedResponse';
|
|
4
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
5
|
+
import { authFailedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
6
|
+
const baseQuerySchema = {
|
|
7
|
+
cursor: v.optional(v.string()),
|
|
8
|
+
limit: v.optional(marcoSchemas.number.positiveIntegerFromString()),
|
|
9
|
+
participants: v.optional(v.array(v.string())),
|
|
10
|
+
};
|
|
11
|
+
const getThreadsQuerySchema = v.union([
|
|
12
|
+
v.object({
|
|
13
|
+
...baseQuerySchema,
|
|
14
|
+
ids: v.pipe(v.array(v.string()), v.minLength(1)),
|
|
15
|
+
labelIds: v.optional(v.array(v.string())),
|
|
16
|
+
}),
|
|
17
|
+
v.object({
|
|
18
|
+
...baseQuerySchema,
|
|
19
|
+
ids: v.optional(v.array(v.string())),
|
|
20
|
+
labelIds: v.pipe(v.array(v.string()), v.minLength(1)),
|
|
21
|
+
}),
|
|
22
|
+
]);
|
|
23
|
+
export const getThreads = createEndpoint({
|
|
24
|
+
method: 'GET',
|
|
25
|
+
path: '/v1/pv/models/threads/full',
|
|
26
|
+
query: getThreadsQuerySchema,
|
|
27
|
+
response: v.union([
|
|
28
|
+
authFailedErrorSchema,
|
|
29
|
+
userNotFoundErrorSchema,
|
|
30
|
+
validationFailedErrorSchema,
|
|
31
|
+
v.object({
|
|
32
|
+
data: paginatedResponseSchema(marcoSchemas.models.threadFullSchema),
|
|
33
|
+
status: v.literal(200),
|
|
34
|
+
}),
|
|
35
|
+
]),
|
|
36
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const getUser: import("../../../../..").EndpointConfig<"/v1/pv/models/user", 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<"USER_NOT_FOUND", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
|
13
|
+
readonly data: v.ObjectSchema<{
|
|
14
|
+
readonly feedbackModalShown: v.BooleanSchema<undefined>;
|
|
15
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
16
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
+
readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
+
readonly pushNotificationTokens: v.ArraySchema<v.ObjectSchema<{
|
|
19
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
20
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "PushNotificationTokenId">]>, undefined>;
|
|
21
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
22
|
+
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
23
|
+
}, undefined>, undefined>;
|
|
24
|
+
readonly undoSendEnabled: v.BooleanSchema<undefined>;
|
|
25
|
+
readonly views: v.ArraySchema<v.ObjectSchema<{
|
|
26
|
+
readonly aliasEmails: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
27
|
+
readonly icon: v.PicklistSchema<readonly [import("../../../../..").CustomViewIcon.AIRPLANE, import("../../../../..").CustomViewIcon.BELL, import("../../../../..").CustomViewIcon.BRIEFCASE, import("../../../../..").CustomViewIcon.CLOCK, import("../../../../..").CustomViewIcon.CREDIT_CARD, import("../../../../..").CustomViewIcon.HEART, import("../../../../..").CustomViewIcon.HOME, import("../../../../..").CustomViewIcon.KEY, import("../../../../..").CustomViewIcon.MOON, import("../../../../..").CustomViewIcon.PERSON, import("../../../../..").CustomViewIcon.SHOPPING_CART, import("../../../../..").CustomViewIcon.STAR], undefined>;
|
|
28
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ViewId">]>, undefined>;
|
|
29
|
+
readonly name: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
+
}, undefined>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
readonly status: v.LiteralSchema<200, undefined>;
|
|
33
|
+
}, undefined>], undefined>>;
|
|
34
|
+
//# sourceMappingURL=getUser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAWlB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, userNotFoundErrorSchema } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const getUser = createEndpoint({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
path: '/v1/pv/models/user',
|
|
8
|
+
response: v.union([
|
|
9
|
+
authFailedErrorSchema,
|
|
10
|
+
userNotFoundErrorSchema,
|
|
11
|
+
v.object({
|
|
12
|
+
data: marcoSchemas.models.userSchema,
|
|
13
|
+
status: v.literal(200),
|
|
14
|
+
}),
|
|
15
|
+
]),
|
|
16
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getUser } from './getUser';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const createAccount: import("../../../../..").EndpointConfig<"/v1/pv/models/accounts/create", v.ObjectSchema<{
|
|
3
|
+
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
4
|
+
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
6
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
7
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
8
|
+
readonly data: v.ObjectSchema<{
|
|
9
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
12
|
+
}, undefined>, v.ObjectSchema<{
|
|
13
|
+
readonly data: v.ObjectSchema<{
|
|
14
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
17
|
+
}, undefined>, v.ObjectSchema<{
|
|
18
|
+
readonly data: v.ObjectSchema<{
|
|
19
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
22
|
+
}, undefined>, v.ObjectSchema<{
|
|
23
|
+
readonly data: v.ObjectSchema<{
|
|
24
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
25
|
+
readonly issues: v.ObjectSchema<{
|
|
26
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
27
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
28
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
32
|
+
}, undefined>, v.ObjectSchema<{
|
|
33
|
+
readonly status: v.LiteralSchema<201, undefined>;
|
|
34
|
+
}, undefined>], undefined>>;
|
|
35
|
+
//# sourceMappingURL=createAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAccount.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/createAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const createAccount = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.account.createAccount,
|
|
7
|
+
method: 'POST',
|
|
8
|
+
path: '/v1/pv/models/accounts/create',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
mutationRejectedErrorSchema,
|
|
13
|
+
validationFailedErrorSchema,
|
|
14
|
+
v.object({
|
|
15
|
+
status: v.literal(201),
|
|
16
|
+
}),
|
|
17
|
+
]),
|
|
18
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const createAlias: import("../../../../..").EndpointConfig<"/v1/pv/models/account/:accountId/aliases/create", v.ObjectSchema<{
|
|
3
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
|
|
4
|
+
readonly alias: v.ObjectSchema<{
|
|
5
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
6
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
7
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
10
|
+
readonly data: v.ObjectSchema<{
|
|
11
|
+
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
readonly status: v.LiteralSchema<401, undefined>;
|
|
14
|
+
}, undefined>, v.ObjectSchema<{
|
|
15
|
+
readonly data: v.ObjectSchema<{
|
|
16
|
+
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
19
|
+
}, undefined>, v.ObjectSchema<{
|
|
20
|
+
readonly data: v.ObjectSchema<{
|
|
21
|
+
readonly code: v.LiteralSchema<"ACCOUNT_NOT_FOUND", undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
readonly status: v.LiteralSchema<404, undefined>;
|
|
24
|
+
}, undefined>, v.ObjectSchema<{
|
|
25
|
+
readonly data: v.ObjectSchema<{
|
|
26
|
+
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
readonly status: v.LiteralSchema<409, undefined>;
|
|
29
|
+
}, undefined>, v.ObjectSchema<{
|
|
30
|
+
readonly data: v.ObjectSchema<{
|
|
31
|
+
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
32
|
+
readonly issues: v.ObjectSchema<{
|
|
33
|
+
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
34
|
+
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
35
|
+
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
readonly status: v.LiteralSchema<400, undefined>;
|
|
39
|
+
}, undefined>, v.ObjectSchema<{
|
|
40
|
+
readonly status: v.LiteralSchema<201, undefined>;
|
|
41
|
+
}, undefined>], undefined>>;
|
|
42
|
+
//# sourceMappingURL=createAlias.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createAlias.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/account/createAlias.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
+
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
+
import { accountNotFoundErrorSchema, authFailedErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
+
export const createAlias = createEndpoint({
|
|
6
|
+
body: mutatorSchemas.account.createAlias,
|
|
7
|
+
method: 'POST',
|
|
8
|
+
path: '/v1/pv/models/account/:accountId/aliases/create',
|
|
9
|
+
response: v.union([
|
|
10
|
+
authFailedErrorSchema,
|
|
11
|
+
userNotFoundErrorSchema,
|
|
12
|
+
accountNotFoundErrorSchema,
|
|
13
|
+
mutationRejectedErrorSchema,
|
|
14
|
+
validationFailedErrorSchema,
|
|
15
|
+
v.object({
|
|
16
|
+
status: v.literal(201),
|
|
17
|
+
}),
|
|
18
|
+
]),
|
|
19
|
+
});
|