@marcoappio/marco-config 2.0.598 → 3.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/appwrite/appwrite.d.ts +18 -6
- package/dist/appwrite/appwrite.d.ts.map +1 -1
- package/dist/appwrite/appwrite.js +34 -2
- package/dist/appwrite/appwrite.test.js +20 -4
- package/dist/appwrite/index.d.ts +1 -1
- package/dist/appwrite/index.d.ts.map +1 -1
- package/dist/constants/index.d.ts +0 -8
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +0 -2
- package/dist/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +26 -0
- package/dist/schemas/index.d.ts +1 -429
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -10
- package/dist/schemas/models/index.d.ts +1 -1
- package/dist/schemas/models/index.d.ts.map +1 -1
- package/dist/schemas/models/index.js +1 -1
- package/dist/schemas/models/user.d.ts +0 -68
- package/dist/schemas/models/user.d.ts.map +1 -1
- package/dist/schemas/models/user.js +0 -19
- package/dist/types/index.d.ts +0 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -6
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/validation/flattenRequirements/flattenRequirements.d.ts +8 -0
- package/dist/utils/validation/flattenRequirements/flattenRequirements.d.ts.map +1 -0
- package/dist/utils/validation/flattenRequirements/flattenRequirements.js +37 -0
- package/dist/utils/validation/flattenRequirements/flattenRequirements.test.d.ts +2 -0
- package/dist/utils/validation/flattenRequirements/flattenRequirements.test.d.ts.map +1 -0
- package/dist/utils/validation/flattenRequirements/flattenRequirements.test.js +25 -0
- package/dist/utils/validation/flattenRequirements/index.d.ts +2 -0
- package/dist/utils/validation/flattenRequirements/index.d.ts.map +1 -0
- package/dist/utils/validation/index.d.ts +2 -0
- package/dist/utils/validation/index.d.ts.map +1 -0
- package/dist/{sdk/validation/utils/flattenRequirements/index.d.ts → utils/validation/index.js} +0 -1
- package/package.json +4 -4
- package/dist/constants/api.d.ts +0 -9
- package/dist/constants/api.d.ts.map +0 -1
- package/dist/constants/api.js +0 -8
- package/dist/marcoPublicConfig.d.ts +0 -52
- package/dist/marcoPublicConfig.d.ts.map +0 -1
- package/dist/marcoPublicConfig.js +0 -144
- package/dist/marcoPublicConfig.test.d.ts +0 -2
- package/dist/marcoPublicConfig.test.d.ts.map +0 -1
- package/dist/marcoPublicConfig.test.js +0 -7
- package/dist/schemas/mutators/index.d.ts +0 -2
- package/dist/schemas/mutators/index.d.ts.map +0 -1
- package/dist/schemas/mutators/index.js +0 -1
- package/dist/schemas/mutators/mutatorSchemas.d.ts +0 -314
- package/dist/schemas/mutators/mutatorSchemas.d.ts.map +0 -1
- package/dist/schemas/mutators/mutatorSchemas.js +0 -229
- package/dist/schemas/mutators/mutatorSchemas.test.d.ts +0 -2
- package/dist/schemas/mutators/mutatorSchemas.test.d.ts.map +0 -1
- package/dist/schemas/mutators/mutatorSchemas.test.js +0 -39
- package/dist/schemas/stripe.d.ts +0 -43
- package/dist/schemas/stripe.d.ts.map +0 -1
- package/dist/schemas/stripe.js +0 -48
- package/dist/schemas/websocket.d.ts +0 -14
- package/dist/schemas/websocket.d.ts.map +0 -1
- package/dist/schemas/websocket.js +0 -10
- package/dist/sdk/endpoints/createEndpointConfig.d.ts +0 -12
- package/dist/sdk/endpoints/createEndpointConfig.d.ts.map +0 -1
- package/dist/sdk/endpoints/createEndpointConfig.js +0 -21
- package/dist/sdk/endpoints/index.d.ts +0 -308
- package/dist/sdk/endpoints/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/index.js +0 -6
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts +0 -31
- package/dist/sdk/endpoints/private/draftAttachment/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/draftAttachment/index.js +0 -4
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts +0 -30
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/draftAttachment/uploadDraftAttachment.js +0 -18
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +0 -21
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +0 -16
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +0 -22
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/emailMessage/index.js +0 -4
- package/dist/sdk/endpoints/private/index.d.ts +0 -156
- package/dist/sdk/endpoints/private/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/index.js +0 -12
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts +0 -70
- package/dist/sdk/endpoints/private/models/account/getAccounts.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/account/getAccounts.js +0 -26
- package/dist/sdk/endpoints/private/models/account/index.d.ts +0 -2
- package/dist/sdk/endpoints/private/models/account/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/account/index.js +0 -1
- package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts +0 -41
- package/dist/sdk/endpoints/private/models/contact/getContacts.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/contact/getContacts.js +0 -26
- package/dist/sdk/endpoints/private/models/contact/index.d.ts +0 -2
- package/dist/sdk/endpoints/private/models/contact/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/contact/index.js +0 -1
- package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts +0 -62
- package/dist/sdk/endpoints/private/models/draft/getDrafts.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/draft/getDrafts.js +0 -25
- package/dist/sdk/endpoints/private/models/draft/index.d.ts +0 -2
- package/dist/sdk/endpoints/private/models/draft/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/draft/index.js +0 -1
- package/dist/sdk/endpoints/private/models/index.d.ts +0 -13
- package/dist/sdk/endpoints/private/models/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/index.js +0 -12
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts +0 -63
- package/dist/sdk/endpoints/private/models/thread/getThread.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/thread/getThread.js +0 -17
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts +0 -63
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/thread/getThreadByMessageId.js +0 -17
- package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts +0 -79
- package/dist/sdk/endpoints/private/models/thread/getThreadList.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/thread/getThreadList.js +0 -47
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts +0 -83
- package/dist/sdk/endpoints/private/models/thread/getThreads.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/thread/getThreads.js +0 -36
- package/dist/sdk/endpoints/private/models/thread/index.d.ts +0 -5
- package/dist/sdk/endpoints/private/models/thread/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/thread/index.js +0 -4
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts +0 -75
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/user/getUser.js +0 -16
- package/dist/sdk/endpoints/private/models/user/index.d.ts +0 -2
- package/dist/sdk/endpoints/private/models/user/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/models/user/index.js +0 -1
- package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts +0 -35
- package/dist/sdk/endpoints/private/mutations/account/createAccount.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/createAccount.js +0 -18
- package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts +0 -42
- package/dist/sdk/endpoints/private/mutations/account/createAlias.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/createAlias.js +0 -19
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts +0 -44
- package/dist/sdk/endpoints/private/mutations/account/createLabel.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/createLabel.js +0 -20
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts +0 -27
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/deleteAccount.js +0 -18
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts +0 -33
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/deleteAlias.js +0 -19
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts +0 -43
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/deleteLabel.js +0 -20
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts +0 -14
- package/dist/sdk/endpoints/private/mutations/account/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/index.js +0 -13
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts +0 -49
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/renameLabel.js +0 -21
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts +0 -44
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/setAliasName.js +0 -20
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts +0 -33
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/setAliasPrimary.js +0 -19
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts +0 -44
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/setAliasSignature.js +0 -20
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts +0 -49
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigImap.js +0 -19
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts +0 -42
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/setConnectionConfigOauth.js +0 -19
- package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts +0 -39
- package/dist/sdk/endpoints/private/mutations/account/setSettings.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/account/setSettings.js +0 -19
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts +0 -28
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/cancelSend.js +0 -18
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts +0 -45
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/createAttachment.js +0 -19
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts +0 -60
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/createDraft.js +0 -19
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts +0 -34
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/deleteAttachment.js +0 -19
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts +0 -27
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/deleteDraft.js +0 -18
- package/dist/sdk/endpoints/private/mutations/draft/index.d.ts +0 -10
- package/dist/sdk/endpoints/private/mutations/draft/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/index.js +0 -9
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts +0 -39
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/replaceContent.js +0 -19
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts +0 -45
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/scheduleSend.js +0 -19
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts +0 -85
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/setEnvelope.js +0 -19
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts +0 -47
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/draft/setFrom.js +0 -20
- package/dist/sdk/endpoints/private/mutations/index.d.ts +0 -11
- package/dist/sdk/endpoints/private/mutations/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/index.js +0 -10
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts +0 -40
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/addLabel.js +0 -19
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts +0 -34
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/deleteThreads.js +0 -18
- package/dist/sdk/endpoints/private/mutations/thread/index.d.ts +0 -11
- package/dist/sdk/endpoints/private/mutations/thread/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/index.js +0 -10
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts +0 -40
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/removeLabel.js +0 -19
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts +0 -34
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/setArchive.js +0 -18
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts +0 -35
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/setFlagged.js +0 -18
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts +0 -34
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/setInbox.js +0 -18
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts +0 -35
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/setSeen.js +0 -18
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts +0 -35
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/setSnooze.js +0 -18
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts +0 -34
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/setSpam.js +0 -18
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts +0 -34
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/thread/setTrash.js +0 -18
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts +0 -34
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/createFeedback.js +0 -18
- package/dist/sdk/endpoints/private/mutations/user/createView.d.ts +0 -38
- package/dist/sdk/endpoints/private/mutations/user/createView.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/createView.js +0 -18
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts +0 -23
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/deletePushToken.js +0 -17
- package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts +0 -28
- package/dist/sdk/endpoints/private/mutations/user/deleteView.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/deleteView.js +0 -18
- package/dist/sdk/endpoints/private/mutations/user/index.d.ts +0 -9
- package/dist/sdk/endpoints/private/mutations/user/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/index.js +0 -8
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts +0 -32
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/setFeedbackModalShown.js +0 -18
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts +0 -37
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/setPushToken.js +0 -18
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts +0 -33
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/setSettingsName.js +0 -18
- package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts +0 -43
- package/dist/sdk/endpoints/private/mutations/user/updateView.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/mutations/user/updateView.js +0 -19
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts +0 -30
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.js +0 -19
- package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts +0 -27
- package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/createCheckoutSession.js +0 -20
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +0 -10
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/deleteUser.js +0 -13
- package/dist/sdk/endpoints/private/user/index.d.ts +0 -90
- package/dist/sdk/endpoints/private/user/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/index.js +0 -10
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts +0 -28
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/uploadProfilePicture.js +0 -19
- package/dist/sdk/endpoints/public/auth/index.d.ts +0 -133
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/auth/index.js +0 -8
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +0 -41
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +0 -33
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +0 -27
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +0 -19
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +0 -68
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +0 -36
- package/dist/sdk/endpoints/public/config/index.d.ts +0 -10
- package/dist/sdk/endpoints/public/config/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/config/index.js +0 -15
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts +0 -8
- package/dist/sdk/endpoints/public/healthcheck/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/healthcheck/index.js +0 -10
- package/dist/sdk/endpoints/public/index.d.ts +0 -149
- package/dist/sdk/endpoints/public/index.d.ts.map +0 -1
- package/dist/sdk/endpoints/public/index.js +0 -8
- package/dist/sdk/index.d.ts +0 -485
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/index.js +0 -6
- package/dist/sdk/validation/errors.d.ts +0 -338
- package/dist/sdk/validation/errors.d.ts.map +0 -1
- package/dist/sdk/validation/errors.js +0 -145
- package/dist/sdk/validation/index.d.ts +0 -178
- package/dist/sdk/validation/index.d.ts.map +0 -1
- package/dist/sdk/validation/index.js +0 -3
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts +0 -11
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.d.ts.map +0 -1
- package/dist/sdk/validation/utils/flattenRequirements/flattenRequirements.js +0 -22
- package/dist/sdk/validation/utils/flattenRequirements/index.d.ts.map +0 -1
- package/dist/sdk/validation/utils/index.d.ts +0 -7
- package/dist/sdk/validation/utils/index.d.ts.map +0 -1
- package/dist/sdk/validation/utils/index.js +0 -4
- package/dist/types/AuthData.d.ts +0 -4
- package/dist/types/AuthData.d.ts.map +0 -1
- package/dist/types/AuthData.js +0 -1
- package/dist/types/Endpoint.d.ts +0 -25
- package/dist/types/Endpoint.d.ts.map +0 -1
- package/dist/types/Endpoint.js +0 -1
- package/dist/types/PokeEvent.d.ts +0 -6
- package/dist/types/PokeEvent.d.ts.map +0 -1
- package/dist/types/PokeEvent.js +0 -1
- package/dist/types/SDKError.d.ts +0 -4
- package/dist/types/SDKError.d.ts.map +0 -1
- package/dist/types/SDKError.js +0 -1
- package/dist/types/StripeSubscriptionStatus.d.ts +0 -3
- package/dist/types/StripeSubscriptionStatus.d.ts.map +0 -1
- package/dist/types/StripeSubscriptionStatus.js +0 -10
- package/dist/types/SubscriptionTier.d.ts +0 -3
- package/dist/types/SubscriptionTier.d.ts.map +0 -1
- package/dist/types/SubscriptionTier.js +0 -1
- /package/dist/{sdk/validation/utils → utils/validation}/flattenRequirements/index.js +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { cancelSend } from './cancelSend';
|
|
2
|
-
export { createAttachment } from './createAttachment';
|
|
3
|
-
export { createDraft } from './createDraft';
|
|
4
|
-
export { deleteAttachment } from './deleteAttachment';
|
|
5
|
-
export { deleteDraft } from './deleteDraft';
|
|
6
|
-
export { replaceContent } from './replaceContent';
|
|
7
|
-
export { scheduleSend } from './scheduleSend';
|
|
8
|
-
export { setEnvelope } from './setEnvelope';
|
|
9
|
-
export { setFrom } from './setFrom';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const replaceContent: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/replace-content", v.ObjectSchema<{
|
|
3
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
4
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
5
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
6
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
7
|
-
readonly data: v.ObjectSchema<{
|
|
8
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
-
}, undefined>;
|
|
10
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
-
}, undefined>, v.ObjectSchema<{
|
|
12
|
-
readonly data: v.ObjectSchema<{
|
|
13
|
-
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
14
|
-
}, undefined>;
|
|
15
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
16
|
-
}, undefined>, v.ObjectSchema<{
|
|
17
|
-
readonly data: v.ObjectSchema<{
|
|
18
|
-
readonly code: v.LiteralSchema<"DRAFT_NOT_FOUND", undefined>;
|
|
19
|
-
}, undefined>;
|
|
20
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
21
|
-
}, undefined>, v.ObjectSchema<{
|
|
22
|
-
readonly data: v.ObjectSchema<{
|
|
23
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
26
|
-
}, undefined>, v.ObjectSchema<{
|
|
27
|
-
readonly data: v.ObjectSchema<{
|
|
28
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
29
|
-
readonly issues: v.ObjectSchema<{
|
|
30
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
31
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
32
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
33
|
-
}, undefined>;
|
|
34
|
-
}, undefined>;
|
|
35
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
36
|
-
}, undefined>, v.ObjectSchema<{
|
|
37
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
38
|
-
}, undefined>], undefined>>;
|
|
39
|
-
//# sourceMappingURL=replaceContent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replaceContent.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/draft/replaceContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAczB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const replaceContent = createEndpoint({
|
|
6
|
-
body: mutatorSchemas.draft.replaceContent,
|
|
7
|
-
method: 'PUT',
|
|
8
|
-
path: '/v1/pv/models/draft/:draftId/replace-content',
|
|
9
|
-
response: v.union([
|
|
10
|
-
authFailedErrorSchema,
|
|
11
|
-
userNotFoundErrorSchema,
|
|
12
|
-
draftNotFoundErrorSchema,
|
|
13
|
-
mutationRejectedErrorSchema,
|
|
14
|
-
validationFailedErrorSchema,
|
|
15
|
-
v.object({
|
|
16
|
-
status: v.literal(200),
|
|
17
|
-
}),
|
|
18
|
-
]),
|
|
19
|
-
});
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const scheduleSend: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/schedule-send", v.UnionSchema<[v.ObjectSchema<{
|
|
3
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
4
|
-
readonly kind: v.LiteralSchema<"IMMEDIATE", undefined>;
|
|
5
|
-
readonly undoMs: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
6
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
7
|
-
}, undefined>, v.ObjectSchema<{
|
|
8
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
9
|
-
readonly kind: v.LiteralSchema<"SCHEDULED", undefined>;
|
|
10
|
-
readonly scheduledFor: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
11
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
12
|
-
}, undefined>], undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
13
|
-
readonly data: v.ObjectSchema<{
|
|
14
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
15
|
-
}, undefined>;
|
|
16
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
17
|
-
}, undefined>, v.ObjectSchema<{
|
|
18
|
-
readonly data: v.ObjectSchema<{
|
|
19
|
-
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
20
|
-
}, undefined>;
|
|
21
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
22
|
-
}, undefined>, v.ObjectSchema<{
|
|
23
|
-
readonly data: v.ObjectSchema<{
|
|
24
|
-
readonly code: v.LiteralSchema<"DRAFT_NOT_FOUND", undefined>;
|
|
25
|
-
}, undefined>;
|
|
26
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
27
|
-
}, undefined>, v.ObjectSchema<{
|
|
28
|
-
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
30
|
-
}, undefined>;
|
|
31
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
32
|
-
}, undefined>, v.ObjectSchema<{
|
|
33
|
-
readonly data: v.ObjectSchema<{
|
|
34
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
35
|
-
readonly issues: v.ObjectSchema<{
|
|
36
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
37
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
38
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
39
|
-
}, undefined>;
|
|
40
|
-
}, undefined>;
|
|
41
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
42
|
-
}, undefined>, v.ObjectSchema<{
|
|
43
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
44
|
-
}, undefined>], undefined>>;
|
|
45
|
-
//# sourceMappingURL=scheduleSend.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scheduleSend.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/draft/scheduleSend.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcvB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const scheduleSend = createEndpoint({
|
|
6
|
-
body: mutatorSchemas.draft.scheduleSend,
|
|
7
|
-
method: 'POST',
|
|
8
|
-
path: '/v1/pv/models/draft/:draftId/schedule-send',
|
|
9
|
-
response: v.union([
|
|
10
|
-
authFailedErrorSchema,
|
|
11
|
-
userNotFoundErrorSchema,
|
|
12
|
-
draftNotFoundErrorSchema,
|
|
13
|
-
mutationRejectedErrorSchema,
|
|
14
|
-
validationFailedErrorSchema,
|
|
15
|
-
v.object({
|
|
16
|
-
status: v.literal(200),
|
|
17
|
-
}),
|
|
18
|
-
]),
|
|
19
|
-
});
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const setEnvelope: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/set-envelope", v.ObjectSchema<{
|
|
3
|
-
readonly envelope: Omit<v.ObjectSchema<{
|
|
4
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
5
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
6
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
7
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
9
|
-
}, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
|
|
10
|
-
readonly entries: Omit<{
|
|
11
|
-
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
12
|
-
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
13
|
-
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
14
|
-
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
|
-
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
16
|
-
}, "content">;
|
|
17
|
-
readonly '~standard': v.StandardProps<{
|
|
18
|
-
bcc: string[];
|
|
19
|
-
cc: string[];
|
|
20
|
-
to: string[];
|
|
21
|
-
subject: string | null;
|
|
22
|
-
}, {
|
|
23
|
-
bcc: string[];
|
|
24
|
-
cc: string[];
|
|
25
|
-
to: string[];
|
|
26
|
-
subject: string | null;
|
|
27
|
-
}>;
|
|
28
|
-
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
29
|
-
bcc: string[];
|
|
30
|
-
cc: string[];
|
|
31
|
-
to: string[];
|
|
32
|
-
subject: string | null;
|
|
33
|
-
}, v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>>;
|
|
34
|
-
readonly '~types'?: {
|
|
35
|
-
readonly input: {
|
|
36
|
-
bcc: string[];
|
|
37
|
-
cc: string[];
|
|
38
|
-
to: string[];
|
|
39
|
-
subject: string | null;
|
|
40
|
-
};
|
|
41
|
-
readonly output: {
|
|
42
|
-
bcc: string[];
|
|
43
|
-
cc: string[];
|
|
44
|
-
to: string[];
|
|
45
|
-
subject: string | null;
|
|
46
|
-
};
|
|
47
|
-
readonly issue: v.ObjectIssue | v.StringIssue | v.ArrayIssue | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.NonOptionalIssue | v.RfcEmailIssue<string>;
|
|
48
|
-
} | undefined;
|
|
49
|
-
};
|
|
50
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
51
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
52
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
53
|
-
readonly data: v.ObjectSchema<{
|
|
54
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
55
|
-
}, undefined>;
|
|
56
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
57
|
-
}, undefined>, v.ObjectSchema<{
|
|
58
|
-
readonly data: v.ObjectSchema<{
|
|
59
|
-
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
60
|
-
}, undefined>;
|
|
61
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
62
|
-
}, undefined>, v.ObjectSchema<{
|
|
63
|
-
readonly data: v.ObjectSchema<{
|
|
64
|
-
readonly code: v.LiteralSchema<"DRAFT_NOT_FOUND", undefined>;
|
|
65
|
-
}, undefined>;
|
|
66
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
67
|
-
}, undefined>, v.ObjectSchema<{
|
|
68
|
-
readonly data: v.ObjectSchema<{
|
|
69
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
70
|
-
}, undefined>;
|
|
71
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
72
|
-
}, undefined>, v.ObjectSchema<{
|
|
73
|
-
readonly data: v.ObjectSchema<{
|
|
74
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
75
|
-
readonly issues: v.ObjectSchema<{
|
|
76
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
77
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
78
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
79
|
-
}, undefined>;
|
|
80
|
-
}, undefined>;
|
|
81
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
82
|
-
}, undefined>, v.ObjectSchema<{
|
|
83
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
84
|
-
}, undefined>], undefined>>;
|
|
85
|
-
//# sourceMappingURL=setEnvelope.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setEnvelope.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/draft/setEnvelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const setEnvelope = createEndpoint({
|
|
6
|
-
body: mutatorSchemas.draft.setEnvelope,
|
|
7
|
-
method: 'PATCH',
|
|
8
|
-
path: '/v1/pv/models/draft/:draftId/set-envelope',
|
|
9
|
-
response: v.union([
|
|
10
|
-
authFailedErrorSchema,
|
|
11
|
-
userNotFoundErrorSchema,
|
|
12
|
-
draftNotFoundErrorSchema,
|
|
13
|
-
mutationRejectedErrorSchema,
|
|
14
|
-
validationFailedErrorSchema,
|
|
15
|
-
v.object({
|
|
16
|
-
status: v.literal(200),
|
|
17
|
-
}),
|
|
18
|
-
]),
|
|
19
|
-
});
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const setFrom: import("../../../../..").EndpointConfig<"/v1/pv/models/draft/:draftId/set-from", 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 aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>;
|
|
5
|
-
readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
6
|
-
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
-
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "DraftId">]>, undefined>;
|
|
8
|
-
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, 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<"DRAFT_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<"ALIAS_NOT_FOUND", undefined>;
|
|
27
|
-
}, undefined>;
|
|
28
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
29
|
-
}, undefined>, v.ObjectSchema<{
|
|
30
|
-
readonly data: v.ObjectSchema<{
|
|
31
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
32
|
-
}, undefined>;
|
|
33
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
34
|
-
}, undefined>, v.ObjectSchema<{
|
|
35
|
-
readonly data: v.ObjectSchema<{
|
|
36
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
37
|
-
readonly issues: v.ObjectSchema<{
|
|
38
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
39
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
40
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
41
|
-
}, undefined>;
|
|
42
|
-
}, undefined>;
|
|
43
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
44
|
-
}, undefined>, v.ObjectSchema<{
|
|
45
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
46
|
-
}, undefined>], undefined>>;
|
|
47
|
-
//# sourceMappingURL=setFrom.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setFrom.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/draft/setFrom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAelB,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { aliasNotFoundErrorSchema, authFailedErrorSchema, draftNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const setFrom = createEndpoint({
|
|
6
|
-
body: mutatorSchemas.draft.setFrom,
|
|
7
|
-
method: 'PATCH',
|
|
8
|
-
path: '/v1/pv/models/draft/:draftId/set-from',
|
|
9
|
-
response: v.union([
|
|
10
|
-
authFailedErrorSchema,
|
|
11
|
-
userNotFoundErrorSchema,
|
|
12
|
-
draftNotFoundErrorSchema,
|
|
13
|
-
aliasNotFoundErrorSchema,
|
|
14
|
-
mutationRejectedErrorSchema,
|
|
15
|
-
validationFailedErrorSchema,
|
|
16
|
-
v.object({
|
|
17
|
-
status: v.literal(200),
|
|
18
|
-
}),
|
|
19
|
-
]),
|
|
20
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as account from './account';
|
|
2
|
-
import * as draft from './draft';
|
|
3
|
-
import * as thread from './thread';
|
|
4
|
-
import * as user from './user';
|
|
5
|
-
export declare const mutations: {
|
|
6
|
-
account: typeof account;
|
|
7
|
-
draft: typeof draft;
|
|
8
|
-
thread: typeof thread;
|
|
9
|
-
user: typeof user;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/mutations/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAA;AAClC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAA;AAE9B,eAAO,MAAM,SAAS;;;;;CAKrB,CAAA"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const addLabel: import("../../../../..").EndpointConfig<"/v1/pv/models/threads/labels/add", v.ObjectSchema<{
|
|
3
|
-
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
4
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
|
|
5
|
-
}, undefined>, undefined>;
|
|
6
|
-
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, 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<"LABEL_NOT_FOUND", undefined>;
|
|
20
|
-
}, undefined>;
|
|
21
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
22
|
-
}, undefined>, v.ObjectSchema<{
|
|
23
|
-
readonly data: v.ObjectSchema<{
|
|
24
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
25
|
-
}, undefined>;
|
|
26
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
27
|
-
}, undefined>, v.ObjectSchema<{
|
|
28
|
-
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
30
|
-
readonly issues: v.ObjectSchema<{
|
|
31
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
32
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
33
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
34
|
-
}, undefined>;
|
|
35
|
-
}, undefined>;
|
|
36
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
37
|
-
}, undefined>, v.ObjectSchema<{
|
|
38
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
39
|
-
}, undefined>], undefined>>;
|
|
40
|
-
//# sourceMappingURL=addLabel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/addLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcnB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { authFailedErrorSchema, labelNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const addLabel = createEndpoint({
|
|
6
|
-
body: mutatorSchemas.thread.addLabel,
|
|
7
|
-
method: 'POST',
|
|
8
|
-
path: '/v1/pv/models/threads/labels/add',
|
|
9
|
-
response: v.union([
|
|
10
|
-
authFailedErrorSchema,
|
|
11
|
-
userNotFoundErrorSchema,
|
|
12
|
-
labelNotFoundErrorSchema,
|
|
13
|
-
mutationRejectedErrorSchema,
|
|
14
|
-
validationFailedErrorSchema,
|
|
15
|
-
v.object({
|
|
16
|
-
status: v.literal(200),
|
|
17
|
-
}),
|
|
18
|
-
]),
|
|
19
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const deleteThreads: import("../../../../..").EndpointConfig<"/v1/pv/models/threads/delete", v.ObjectSchema<{
|
|
3
|
-
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
4
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
|
|
5
|
-
}, undefined>, undefined>;
|
|
6
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
7
|
-
readonly data: v.ObjectSchema<{
|
|
8
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
-
}, undefined>;
|
|
10
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
-
}, undefined>, v.ObjectSchema<{
|
|
12
|
-
readonly data: v.ObjectSchema<{
|
|
13
|
-
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
14
|
-
}, undefined>;
|
|
15
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
16
|
-
}, undefined>, v.ObjectSchema<{
|
|
17
|
-
readonly data: v.ObjectSchema<{
|
|
18
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
19
|
-
}, undefined>;
|
|
20
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
21
|
-
}, undefined>, v.ObjectSchema<{
|
|
22
|
-
readonly data: v.ObjectSchema<{
|
|
23
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
24
|
-
readonly issues: v.ObjectSchema<{
|
|
25
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
26
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
28
|
-
}, undefined>;
|
|
29
|
-
}, undefined>;
|
|
30
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
31
|
-
}, undefined>, v.ObjectSchema<{
|
|
32
|
-
readonly status: v.LiteralSchema<204, undefined>;
|
|
33
|
-
}, undefined>], undefined>>;
|
|
34
|
-
//# sourceMappingURL=deleteThreads.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteThreads.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/deleteThreads.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAaxB,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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 deleteThreads = createEndpoint({
|
|
6
|
-
body: mutatorSchemas.thread.delete,
|
|
7
|
-
method: 'DELETE',
|
|
8
|
-
path: '/v1/pv/models/threads/delete',
|
|
9
|
-
response: v.union([
|
|
10
|
-
authFailedErrorSchema,
|
|
11
|
-
userNotFoundErrorSchema,
|
|
12
|
-
mutationRejectedErrorSchema,
|
|
13
|
-
validationFailedErrorSchema,
|
|
14
|
-
v.object({
|
|
15
|
-
status: v.literal(204),
|
|
16
|
-
}),
|
|
17
|
-
]),
|
|
18
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { addLabel } from './addLabel';
|
|
2
|
-
export { deleteThreads } from './deleteThreads';
|
|
3
|
-
export { removeLabel } from './removeLabel';
|
|
4
|
-
export { setArchive } from './setArchive';
|
|
5
|
-
export { setFlagged } from './setFlagged';
|
|
6
|
-
export { setInbox } from './setInbox';
|
|
7
|
-
export { setSeen } from './setSeen';
|
|
8
|
-
export { setSnooze } from './setSnooze';
|
|
9
|
-
export { setSpam } from './setSpam';
|
|
10
|
-
export { setTrash } from './setTrash';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { addLabel } from './addLabel';
|
|
2
|
-
export { deleteThreads } from './deleteThreads';
|
|
3
|
-
export { removeLabel } from './removeLabel';
|
|
4
|
-
export { setArchive } from './setArchive';
|
|
5
|
-
export { setFlagged } from './setFlagged';
|
|
6
|
-
export { setInbox } from './setInbox';
|
|
7
|
-
export { setSeen } from './setSeen';
|
|
8
|
-
export { setSnooze } from './setSnooze';
|
|
9
|
-
export { setSpam } from './setSpam';
|
|
10
|
-
export { setTrash } from './setTrash';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const removeLabel: import("../../../../..").EndpointConfig<"/v1/pv/models/threads/labels/remove", v.ObjectSchema<{
|
|
3
|
-
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
4
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
|
|
5
|
-
}, undefined>, undefined>;
|
|
6
|
-
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, 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<"LABEL_NOT_FOUND", undefined>;
|
|
20
|
-
}, undefined>;
|
|
21
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
22
|
-
}, undefined>, v.ObjectSchema<{
|
|
23
|
-
readonly data: v.ObjectSchema<{
|
|
24
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
25
|
-
}, undefined>;
|
|
26
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
27
|
-
}, undefined>, v.ObjectSchema<{
|
|
28
|
-
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
30
|
-
readonly issues: v.ObjectSchema<{
|
|
31
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
32
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
33
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
34
|
-
}, undefined>;
|
|
35
|
-
}, undefined>;
|
|
36
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
37
|
-
}, undefined>, v.ObjectSchema<{
|
|
38
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
39
|
-
}, undefined>], undefined>>;
|
|
40
|
-
//# sourceMappingURL=removeLabel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"removeLabel.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/removeLabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BActB,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { mutatorSchemas } from '../../../../../schemas';
|
|
3
|
-
import { createEndpoint } from '../../../../../sdk/endpoints/createEndpointConfig';
|
|
4
|
-
import { authFailedErrorSchema, labelNotFoundErrorSchema, mutationRejectedErrorSchema, userNotFoundErrorSchema, validationFailedErrorSchema, } from '../../../../../sdk/validation/errors';
|
|
5
|
-
export const removeLabel = createEndpoint({
|
|
6
|
-
body: mutatorSchemas.thread.removeLabel,
|
|
7
|
-
method: 'DELETE',
|
|
8
|
-
path: '/v1/pv/models/threads/labels/remove',
|
|
9
|
-
response: v.union([
|
|
10
|
-
authFailedErrorSchema,
|
|
11
|
-
userNotFoundErrorSchema,
|
|
12
|
-
labelNotFoundErrorSchema,
|
|
13
|
-
mutationRejectedErrorSchema,
|
|
14
|
-
validationFailedErrorSchema,
|
|
15
|
-
v.object({
|
|
16
|
-
status: v.literal(200),
|
|
17
|
-
}),
|
|
18
|
-
]),
|
|
19
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
export declare const setArchive: import("../../../../..").EndpointConfig<"/v1/pv/models/threads/set-archive", v.ObjectSchema<{
|
|
3
|
-
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
4
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>, undefined>;
|
|
5
|
-
}, undefined>, undefined>;
|
|
6
|
-
}, undefined>, v.GenericSchema | undefined, v.UnionSchema<[v.ObjectSchema<{
|
|
7
|
-
readonly data: v.ObjectSchema<{
|
|
8
|
-
readonly code: v.LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
9
|
-
}, undefined>;
|
|
10
|
-
readonly status: v.LiteralSchema<401, undefined>;
|
|
11
|
-
}, undefined>, v.ObjectSchema<{
|
|
12
|
-
readonly data: v.ObjectSchema<{
|
|
13
|
-
readonly code: v.LiteralSchema<"USER_NOT_FOUND", undefined>;
|
|
14
|
-
}, undefined>;
|
|
15
|
-
readonly status: v.LiteralSchema<404, undefined>;
|
|
16
|
-
}, undefined>, v.ObjectSchema<{
|
|
17
|
-
readonly data: v.ObjectSchema<{
|
|
18
|
-
readonly code: v.LiteralSchema<"MUTATION_REJECTED", undefined>;
|
|
19
|
-
}, undefined>;
|
|
20
|
-
readonly status: v.LiteralSchema<409, undefined>;
|
|
21
|
-
}, undefined>, v.ObjectSchema<{
|
|
22
|
-
readonly data: v.ObjectSchema<{
|
|
23
|
-
readonly code: v.LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
24
|
-
readonly issues: v.ObjectSchema<{
|
|
25
|
-
readonly nested: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
26
|
-
readonly other: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
27
|
-
readonly root: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
28
|
-
}, undefined>;
|
|
29
|
-
}, undefined>;
|
|
30
|
-
readonly status: v.LiteralSchema<400, undefined>;
|
|
31
|
-
}, undefined>, v.ObjectSchema<{
|
|
32
|
-
readonly status: v.LiteralSchema<200, undefined>;
|
|
33
|
-
}, undefined>], undefined>>;
|
|
34
|
-
//# sourceMappingURL=setArchive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setArchive.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/mutations/thread/setArchive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAarB,CAAA"}
|