@rnsk/toolkits 0.0.1 → 0.0.3
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/README.md +104 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +2 -0
- package/dist/core/schema-helpers.d.ts +20 -0
- package/dist/core/schema-helpers.js +157 -0
- package/dist/core/scope.d.ts +4 -0
- package/dist/core/scope.js +12 -0
- package/dist/index.d.ts +5 -2
- package/dist/index.js +15 -3
- package/dist/runtime/meta-tools.js +2 -0
- package/dist/toolkits/github/icon.d.ts +5 -0
- package/dist/toolkits/github/icon.js +15 -0
- package/dist/toolkits/github/manifest.d.ts +3 -0
- package/dist/toolkits/github/manifest.js +36 -0
- package/dist/toolkits/github/tools/Actions/delete-artifact.d.ts +13 -0
- package/dist/toolkits/github/tools/Actions/delete-artifact.js +31 -0
- package/dist/toolkits/github/tools/Actions/get-artifact.d.ts +31 -0
- package/dist/toolkits/github/tools/Actions/get-artifact.js +39 -0
- package/dist/toolkits/github/tools/Actions/get-workflow-job.d.ts +36 -0
- package/dist/toolkits/github/tools/Actions/get-workflow-job.js +48 -0
- package/dist/toolkits/github/tools/Actions/list-artifacts.d.ts +23 -0
- package/dist/toolkits/github/tools/Actions/list-artifacts.js +43 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-jobs.d.ts +27 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-jobs.js +49 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.d.ts +24 -0
- package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.js +45 -0
- package/dist/toolkits/github/tools/Activity/list-notifications.d.ts +24 -0
- package/dist/toolkits/github/tools/Activity/list-notifications.js +45 -0
- package/dist/toolkits/github/tools/Activity/list-public-events.d.ts +18 -0
- package/dist/toolkits/github/tools/Activity/list-public-events.js +37 -0
- package/dist/toolkits/github/tools/Activity/list-repo-events.d.ts +19 -0
- package/dist/toolkits/github/tools/Activity/list-repo-events.js +40 -0
- package/dist/toolkits/github/tools/Activity/list-user-events.d.ts +17 -0
- package/dist/toolkits/github/tools/Activity/list-user-events.js +37 -0
- package/dist/toolkits/github/tools/Activity/mark-notifications-read.d.ts +11 -0
- package/dist/toolkits/github/tools/Activity/mark-notifications-read.js +27 -0
- package/dist/toolkits/github/tools/Apps/get-authenticated-app.d.ts +24 -0
- package/dist/toolkits/github/tools/Apps/get-authenticated-app.js +36 -0
- package/dist/toolkits/github/tools/Apps/get-installation.d.ts +76 -0
- package/dist/toolkits/github/tools/Apps/get-installation.js +36 -0
- package/dist/toolkits/github/tools/Apps/list-installations.d.ts +19 -0
- package/dist/toolkits/github/tools/Apps/list-installations.js +38 -0
- package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +24 -0
- package/dist/toolkits/github/tools/Checks/create-check-run.js +43 -0
- package/dist/toolkits/github/tools/Checks/create-check-suite.d.ts +21 -0
- package/dist/toolkits/github/tools/Checks/create-check-suite.js +37 -0
- package/dist/toolkits/github/tools/Checks/get-check-run.d.ts +25 -0
- package/dist/toolkits/github/tools/Checks/get-check-run.js +39 -0
- package/dist/toolkits/github/tools/Checks/get-check-suite.d.ts +25 -0
- package/dist/toolkits/github/tools/Checks/get-check-suite.js +39 -0
- package/dist/toolkits/github/tools/Checks/list-check-runs.d.ts +27 -0
- package/dist/toolkits/github/tools/Checks/list-check-runs.js +50 -0
- package/dist/toolkits/github/tools/Checks/update-check-run.d.ts +23 -0
- package/dist/toolkits/github/tools/Checks/update-check-run.js +41 -0
- package/dist/toolkits/github/tools/CodeScanning/get-alert.d.ts +25 -0
- package/dist/toolkits/github/tools/CodeScanning/get-alert.js +41 -0
- package/dist/toolkits/github/tools/CodeScanning/list-alerts.d.ts +23 -0
- package/dist/toolkits/github/tools/CodeScanning/list-alerts.js +50 -0
- package/dist/toolkits/github/tools/CodeScanning/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/CodeScanning/update-alert.js +39 -0
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +14 -0
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.js +33 -0
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +13 -0
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.js +34 -0
- package/dist/toolkits/github/tools/Collaborators/list-collaborators.d.ts +25 -0
- package/dist/toolkits/github/tools/Collaborators/list-collaborators.js +41 -0
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +13 -0
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.js +31 -0
- package/dist/toolkits/github/tools/Commits/compare-commits.d.ts +30 -0
- package/dist/toolkits/github/tools/Commits/compare-commits.js +37 -0
- package/dist/toolkits/github/tools/Commits/get-commit.d.ts +46 -0
- package/dist/toolkits/github/tools/Commits/get-commit.js +35 -0
- package/dist/toolkits/github/tools/Commits/list-branches-for-head-commit.d.ts +20 -0
- package/dist/toolkits/github/tools/Commits/list-branches-for-head-commit.js +31 -0
- package/dist/toolkits/github/tools/Commits/list-commits.d.ts +21 -0
- package/dist/toolkits/github/tools/Commits/list-commits.js +43 -0
- package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.d.ts +81 -0
- package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.js +35 -0
- package/dist/toolkits/github/tools/Dependabot/get-alert.d.ts +53 -0
- package/dist/toolkits/github/tools/Dependabot/get-alert.js +37 -0
- package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +23 -0
- package/dist/toolkits/github/tools/Dependabot/list-alerts.js +46 -0
- package/dist/toolkits/github/tools/Dependabot/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/Dependabot/update-alert.js +39 -0
- package/dist/toolkits/github/tools/DeployKeys/create-deploy-key.d.ts +23 -0
- package/dist/toolkits/github/tools/DeployKeys/create-deploy-key.js +43 -0
- package/dist/toolkits/github/tools/DeployKeys/delete-deploy-key.d.ts +13 -0
- package/dist/toolkits/github/tools/DeployKeys/delete-deploy-key.js +31 -0
- package/dist/toolkits/github/tools/DeployKeys/get-deploy-key.d.ts +21 -0
- package/dist/toolkits/github/tools/DeployKeys/get-deploy-key.js +39 -0
- package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.d.ts +21 -0
- package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.js +44 -0
- package/dist/toolkits/github/tools/Deployments/create-deployment.d.ts +33 -0
- package/dist/toolkits/github/tools/Deployments/create-deployment.js +51 -0
- package/dist/toolkits/github/tools/Deployments/delete-deployment.d.ts +13 -0
- package/dist/toolkits/github/tools/Deployments/delete-deployment.js +31 -0
- package/dist/toolkits/github/tools/Deployments/get-deployment.d.ts +27 -0
- package/dist/toolkits/github/tools/Deployments/get-deployment.js +42 -0
- package/dist/toolkits/github/tools/Deployments/list-deployments.d.ts +27 -0
- package/dist/toolkits/github/tools/Deployments/list-deployments.js +52 -0
- package/dist/toolkits/github/tools/Environments/create-or-update-environment.d.ts +32 -0
- package/dist/toolkits/github/tools/Environments/create-or-update-environment.js +50 -0
- package/dist/toolkits/github/tools/Environments/delete-environment.d.ts +13 -0
- package/dist/toolkits/github/tools/Environments/delete-environment.js +31 -0
- package/dist/toolkits/github/tools/Environments/get-environment.d.ts +48 -0
- package/dist/toolkits/github/tools/Environments/get-environment.js +42 -0
- package/dist/toolkits/github/tools/Environments/list-environments.d.ts +23 -0
- package/dist/toolkits/github/tools/Environments/list-environments.js +45 -0
- package/dist/toolkits/github/tools/Files/create-or-update-file.d.ts +21 -0
- package/dist/toolkits/github/tools/Files/create-or-update-file.js +44 -0
- package/dist/toolkits/github/tools/Files/delete-file.d.ts +18 -0
- package/dist/toolkits/github/tools/Files/delete-file.js +40 -0
- package/dist/toolkits/github/tools/Files/get-file-content.d.ts +32 -0
- package/dist/toolkits/github/tools/Files/get-file-content.js +51 -0
- package/dist/toolkits/github/tools/Gists/create-gist.d.ts +19 -0
- package/dist/toolkits/github/tools/Gists/create-gist.js +37 -0
- package/dist/toolkits/github/tools/Gists/get-gist.d.ts +23 -0
- package/dist/toolkits/github/tools/Gists/get-gist.js +43 -0
- package/dist/toolkits/github/tools/Gists/list-gists.d.ts +19 -0
- package/dist/toolkits/github/tools/Gists/list-gists.js +38 -0
- package/dist/toolkits/github/tools/Git/create-blob.d.ts +16 -0
- package/dist/toolkits/github/tools/Git/create-blob.js +38 -0
- package/dist/toolkits/github/tools/Git/create-git-commit.d.ts +47 -0
- package/dist/toolkits/github/tools/Git/create-git-commit.js +51 -0
- package/dist/toolkits/github/tools/Git/create-ref.d.ts +24 -0
- package/dist/toolkits/github/tools/Git/create-ref.js +40 -0
- package/dist/toolkits/github/tools/Git/create-tree.d.ts +31 -0
- package/dist/toolkits/github/tools/Git/create-tree.js +52 -0
- package/dist/toolkits/github/tools/Git/delete-ref.d.ts +13 -0
- package/dist/toolkits/github/tools/Git/delete-ref.js +31 -0
- package/dist/toolkits/github/tools/Git/get-blob.d.ts +21 -0
- package/dist/toolkits/github/tools/Git/get-blob.js +39 -0
- package/dist/toolkits/github/tools/Git/get-git-commit.d.ts +40 -0
- package/dist/toolkits/github/tools/Git/get-git-commit.js +41 -0
- package/dist/toolkits/github/tools/Git/get-ref.d.ts +18 -0
- package/dist/toolkits/github/tools/Git/get-ref.js +42 -0
- package/dist/toolkits/github/tools/Git/get-tree.d.ts +27 -0
- package/dist/toolkits/github/tools/Git/get-tree.js +47 -0
- package/dist/toolkits/github/tools/Git/update-ref.d.ts +25 -0
- package/dist/toolkits/github/tools/Git/update-ref.js +42 -0
- package/dist/toolkits/github/tools/Issues/add-issue-assignees.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/add-issue-assignees.js +35 -0
- package/dist/toolkits/github/tools/Issues/add-issue-comment.d.ts +20 -0
- package/dist/toolkits/github/tools/Issues/add-issue-comment.js +38 -0
- package/dist/toolkits/github/tools/Issues/add-issue-labels.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/add-issue-labels.js +35 -0
- package/dist/toolkits/github/tools/Issues/create-issue.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/create-issue.js +34 -0
- package/dist/toolkits/github/tools/Issues/get-issue.d.ts +29 -0
- package/dist/toolkits/github/tools/Issues/get-issue.js +36 -0
- package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.d.ts +21 -0
- package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.js +34 -0
- package/dist/toolkits/github/tools/Issues/list-issue-comments.d.ts +19 -0
- package/dist/toolkits/github/tools/Issues/list-issue-comments.js +40 -0
- package/dist/toolkits/github/tools/Issues/list-org-issues.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/list-org-issues.js +38 -0
- package/dist/toolkits/github/tools/Issues/list-repo-issues.d.ts +28 -0
- package/dist/toolkits/github/tools/Issues/list-repo-issues.js +42 -0
- package/dist/toolkits/github/tools/Issues/list-user-account-issues.d.ts +21 -0
- package/dist/toolkits/github/tools/Issues/list-user-account-issues.js +36 -0
- package/dist/toolkits/github/tools/Issues/lock-issue.d.ts +15 -0
- package/dist/toolkits/github/tools/Issues/lock-issue.js +44 -0
- package/dist/toolkits/github/tools/Issues/remove-issue-label.d.ts +14 -0
- package/dist/toolkits/github/tools/Issues/remove-issue-label.js +33 -0
- package/dist/toolkits/github/tools/Issues/unlock-issue.d.ts +13 -0
- package/dist/toolkits/github/tools/Issues/unlock-issue.js +31 -0
- package/dist/toolkits/github/tools/Issues/update-issue.d.ts +22 -0
- package/dist/toolkits/github/tools/Issues/update-issue.js +42 -0
- package/dist/toolkits/github/tools/Licenses/get-license.d.ts +33 -0
- package/dist/toolkits/github/tools/Licenses/get-license.js +42 -0
- package/dist/toolkits/github/tools/Licenses/get-repo-license.d.ts +47 -0
- package/dist/toolkits/github/tools/Licenses/get-repo-license.js +45 -0
- package/dist/toolkits/github/tools/Licenses/list-licenses.d.ts +12 -0
- package/dist/toolkits/github/tools/Licenses/list-licenses.js +32 -0
- package/dist/toolkits/github/tools/Markdown/render-markdown.d.ts +13 -0
- package/dist/toolkits/github/tools/Markdown/render-markdown.js +31 -0
- package/dist/toolkits/github/tools/Organizations/get-org-membership.d.ts +58 -0
- package/dist/toolkits/github/tools/Organizations/get-org-membership.js +38 -0
- package/dist/toolkits/github/tools/Organizations/get-organization.d.ts +65 -0
- package/dist/toolkits/github/tools/Organizations/get-organization.js +58 -0
- package/dist/toolkits/github/tools/Organizations/list-org-members.d.ts +18 -0
- package/dist/toolkits/github/tools/Organizations/list-org-members.js +44 -0
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +50 -0
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.js +69 -0
- package/dist/toolkits/github/tools/Organizations/list-organizations.d.ts +13 -0
- package/dist/toolkits/github/tools/Organizations/list-organizations.js +36 -0
- package/dist/toolkits/github/tools/Organizations/list-user-organizations.d.ts +20 -0
- package/dist/toolkits/github/tools/Organizations/list-user-organizations.js +43 -0
- package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +33 -0
- package/dist/toolkits/github/tools/Organizations/update-organization.js +50 -0
- package/dist/toolkits/github/tools/PRs/check-pull-request-merged.d.ts +13 -0
- package/dist/toolkits/github/tools/PRs/check-pull-request-merged.js +34 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request-review.d.ts +19 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request-review.js +39 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request.d.ts +23 -0
- package/dist/toolkits/github/tools/PRs/create-pull-request.js +44 -0
- package/dist/toolkits/github/tools/PRs/get-pull-request.d.ts +41 -0
- package/dist/toolkits/github/tools/PRs/get-pull-request.js +47 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-commits.d.ts +15 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-commits.js +37 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-files.d.ts +22 -0
- package/dist/toolkits/github/tools/PRs/list-pull-request-files.js +42 -0
- package/dist/toolkits/github/tools/PRs/list-pull-requests.d.ts +24 -0
- package/dist/toolkits/github/tools/PRs/list-pull-requests.js +44 -0
- package/dist/toolkits/github/tools/PRs/merge-pull-request.d.ts +20 -0
- package/dist/toolkits/github/tools/PRs/merge-pull-request.js +41 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request-branch.d.ts +16 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request-branch.js +36 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request.d.ts +26 -0
- package/dist/toolkits/github/tools/PRs/update-pull-request.js +47 -0
- package/dist/toolkits/github/tools/Projects/create-org-project.d.ts +27 -0
- package/dist/toolkits/github/tools/Projects/create-org-project.js +43 -0
- package/dist/toolkits/github/tools/Projects/delete-project.d.ts +11 -0
- package/dist/toolkits/github/tools/Projects/delete-project.js +27 -0
- package/dist/toolkits/github/tools/Projects/get-project.d.ts +31 -0
- package/dist/toolkits/github/tools/Projects/get-project.js +42 -0
- package/dist/toolkits/github/tools/Projects/list-org-projects.d.ts +20 -0
- package/dist/toolkits/github/tools/Projects/list-org-projects.js +45 -0
- package/dist/toolkits/github/tools/Projects/list-project-columns.d.ts +16 -0
- package/dist/toolkits/github/tools/Projects/list-project-columns.js +40 -0
- package/dist/toolkits/github/tools/Projects/list-repo-projects.d.ts +21 -0
- package/dist/toolkits/github/tools/Projects/list-repo-projects.js +47 -0
- package/dist/toolkits/github/tools/Projects/update-project.d.ts +22 -0
- package/dist/toolkits/github/tools/Projects/update-project.js +41 -0
- package/dist/toolkits/github/tools/RateLimit/get-rate-limit.d.ts +19 -0
- package/dist/toolkits/github/tools/RateLimit/get-rate-limit.js +26 -0
- package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.d.ts +20 -0
- package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.js +40 -0
- package/dist/toolkits/github/tools/Reactions/create-issue-reaction.d.ts +20 -0
- package/dist/toolkits/github/tools/Reactions/create-issue-reaction.js +40 -0
- package/dist/toolkits/github/tools/Reactions/delete-reaction.d.ts +11 -0
- package/dist/toolkits/github/tools/Reactions/delete-reaction.js +27 -0
- package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.js +44 -0
- package/dist/toolkits/github/tools/Reactions/list-issue-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-issue-reactions.js +44 -0
- package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.d.ts +17 -0
- package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.js +44 -0
- package/dist/toolkits/github/tools/Releases/create-release.d.ts +27 -0
- package/dist/toolkits/github/tools/Releases/create-release.js +45 -0
- package/dist/toolkits/github/tools/Releases/delete-release.d.ts +13 -0
- package/dist/toolkits/github/tools/Releases/delete-release.js +31 -0
- package/dist/toolkits/github/tools/Releases/generate-release-notes.d.ts +18 -0
- package/dist/toolkits/github/tools/Releases/generate-release-notes.js +39 -0
- package/dist/toolkits/github/tools/Releases/get-latest-release.d.ts +22 -0
- package/dist/toolkits/github/tools/Releases/get-latest-release.js +38 -0
- package/dist/toolkits/github/tools/Releases/get-release.d.ts +37 -0
- package/dist/toolkits/github/tools/Releases/get-release.js +50 -0
- package/dist/toolkits/github/tools/Releases/list-releases.d.ts +22 -0
- package/dist/toolkits/github/tools/Releases/list-releases.js +47 -0
- package/dist/toolkits/github/tools/Releases/update-release.d.ts +27 -0
- package/dist/toolkits/github/tools/Releases/update-release.js +46 -0
- package/dist/toolkits/github/tools/Repos/create-repo.d.ts +32 -0
- package/dist/toolkits/github/tools/Repos/create-repo.js +57 -0
- package/dist/toolkits/github/tools/Repos/fork-repo.d.ts +17 -0
- package/dist/toolkits/github/tools/Repos/fork-repo.js +35 -0
- package/dist/toolkits/github/tools/Repos/get-repo-contributors.d.ts +20 -0
- package/dist/toolkits/github/tools/Repos/get-repo-contributors.js +39 -0
- package/dist/toolkits/github/tools/Repos/get-repo-languages.d.ts +14 -0
- package/dist/toolkits/github/tools/Repos/get-repo-languages.js +29 -0
- package/dist/toolkits/github/tools/Repos/get-repo.d.ts +36 -0
- package/dist/toolkits/github/tools/Repos/get-repo.js +43 -0
- package/dist/toolkits/github/tools/Repos/list-branches.d.ts +17 -0
- package/dist/toolkits/github/tools/Repos/list-branches.js +37 -0
- package/dist/toolkits/github/tools/Repos/list-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Repos/list-repos.js +36 -0
- package/dist/toolkits/github/tools/Repos/star-repo.d.ts +13 -0
- package/dist/toolkits/github/tools/Repos/star-repo.js +39 -0
- package/dist/toolkits/github/tools/Repos/watch-repo.d.ts +18 -0
- package/dist/toolkits/github/tools/Repos/watch-repo.js +37 -0
- package/dist/toolkits/github/tools/Search/search-code.d.ts +14 -0
- package/dist/toolkits/github/tools/Search/search-code.js +33 -0
- package/dist/toolkits/github/tools/Search/search-commits.d.ts +14 -0
- package/dist/toolkits/github/tools/Search/search-commits.js +33 -0
- package/dist/toolkits/github/tools/Search/search-issues.d.ts +23 -0
- package/dist/toolkits/github/tools/Search/search-issues.js +43 -0
- package/dist/toolkits/github/tools/Search/search-labels.d.ts +15 -0
- package/dist/toolkits/github/tools/Search/search-labels.js +35 -0
- package/dist/toolkits/github/tools/Search/search-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Search/search-repos.js +47 -0
- package/dist/toolkits/github/tools/Search/search-topics.d.ts +12 -0
- package/dist/toolkits/github/tools/Search/search-topics.js +29 -0
- package/dist/toolkits/github/tools/Search/search-users.d.ts +21 -0
- package/dist/toolkits/github/tools/Search/search-users.js +41 -0
- package/dist/toolkits/github/tools/SecretScanning/get-alert.d.ts +33 -0
- package/dist/toolkits/github/tools/SecretScanning/get-alert.js +45 -0
- package/dist/toolkits/github/tools/SecretScanning/list-alerts.d.ts +25 -0
- package/dist/toolkits/github/tools/SecretScanning/list-alerts.js +53 -0
- package/dist/toolkits/github/tools/SecretScanning/update-alert.d.ts +19 -0
- package/dist/toolkits/github/tools/SecretScanning/update-alert.js +41 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +34 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.js +52 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +27 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.js +42 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +14 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.js +37 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +22 -0
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.js +47 -0
- package/dist/toolkits/github/tools/Stars/check-repo-starred.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/check-repo-starred.js +32 -0
- package/dist/toolkits/github/tools/Stars/list-stargazers.d.ts +15 -0
- package/dist/toolkits/github/tools/Stars/list-stargazers.js +40 -0
- package/dist/toolkits/github/tools/Stars/list-starred-repos.d.ts +15 -0
- package/dist/toolkits/github/tools/Stars/list-starred-repos.js +38 -0
- package/dist/toolkits/github/tools/Stars/star-repo.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/star-repo.js +29 -0
- package/dist/toolkits/github/tools/Stars/unstar-repo.d.ts +12 -0
- package/dist/toolkits/github/tools/Stars/unstar-repo.js +29 -0
- package/dist/toolkits/github/tools/Statuses/create-commit-status.d.ts +25 -0
- package/dist/toolkits/github/tools/Statuses/create-commit-status.js +44 -0
- package/dist/toolkits/github/tools/Statuses/get-combined-status.d.ts +26 -0
- package/dist/toolkits/github/tools/Statuses/get-combined-status.js +44 -0
- package/dist/toolkits/github/tools/Statuses/list-commit-statuses.d.ts +18 -0
- package/dist/toolkits/github/tools/Statuses/list-commit-statuses.js +44 -0
- package/dist/toolkits/github/tools/Teams/add-team-repo.d.ts +15 -0
- package/dist/toolkits/github/tools/Teams/add-team-repo.js +35 -0
- package/dist/toolkits/github/tools/Teams/create-team.d.ts +32 -0
- package/dist/toolkits/github/tools/Teams/create-team.js +46 -0
- package/dist/toolkits/github/tools/Teams/delete-team.d.ts +12 -0
- package/dist/toolkits/github/tools/Teams/delete-team.js +29 -0
- package/dist/toolkits/github/tools/Teams/get-team.d.ts +28 -0
- package/dist/toolkits/github/tools/Teams/get-team.js +41 -0
- package/dist/toolkits/github/tools/Teams/list-team-members.d.ts +16 -0
- package/dist/toolkits/github/tools/Teams/list-team-members.js +42 -0
- package/dist/toolkits/github/tools/Teams/list-team-repos.d.ts +22 -0
- package/dist/toolkits/github/tools/Teams/list-team-repos.js +41 -0
- package/dist/toolkits/github/tools/Teams/list-teams.d.ts +18 -0
- package/dist/toolkits/github/tools/Teams/list-teams.js +42 -0
- package/dist/toolkits/github/tools/Teams/remove-team-repo.d.ts +14 -0
- package/dist/toolkits/github/tools/Teams/remove-team-repo.js +33 -0
- package/dist/toolkits/github/tools/Teams/update-team.d.ts +27 -0
- package/dist/toolkits/github/tools/Teams/update-team.js +44 -0
- package/dist/toolkits/github/tools/Users/follow-user.d.ts +12 -0
- package/dist/toolkits/github/tools/Users/follow-user.js +36 -0
- package/dist/toolkits/github/tools/Users/get-github-user.d.ts +64 -0
- package/dist/toolkits/github/tools/Users/get-github-user.js +48 -0
- package/dist/toolkits/github/tools/Users/get-user-by-id.d.ts +53 -0
- package/dist/toolkits/github/tools/Users/get-user-by-id.js +27 -0
- package/dist/toolkits/github/tools/Users/get-user-context.d.ts +14 -0
- package/dist/toolkits/github/tools/Users/get-user-context.js +32 -0
- package/dist/toolkits/github/tools/Users/get-user.d.ts +53 -0
- package/dist/toolkits/github/tools/Users/get-user.js +27 -0
- package/dist/toolkits/github/tools/Users/list-users.d.ts +31 -0
- package/dist/toolkits/github/tools/Users/list-users.js +29 -0
- package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +62 -0
- package/dist/toolkits/github/tools/Users/update-authenticated-user.js +39 -0
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +34 -0
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.js +47 -0
- package/dist/toolkits/github/tools/Webhooks/delete-repo-webhook.d.ts +13 -0
- package/dist/toolkits/github/tools/Webhooks/delete-repo-webhook.js +31 -0
- package/dist/toolkits/github/tools/Webhooks/get-repo-webhook.d.ts +30 -0
- package/dist/toolkits/github/tools/Webhooks/get-repo-webhook.js +41 -0
- package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.d.ts +31 -0
- package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.js +47 -0
- package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.d.ts +36 -0
- package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.js +50 -0
- package/dist/toolkits/github/tools/Workflows/get-workflow-run.d.ts +31 -0
- package/dist/toolkits/github/tools/Workflows/get-workflow-run.js +42 -0
- package/dist/toolkits/github/tools/Workflows/list-workflow-runs.d.ts +25 -0
- package/dist/toolkits/github/tools/Workflows/list-workflow-runs.js +59 -0
- package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +21 -0
- package/dist/toolkits/github/tools/Workflows/list-workflows.js +40 -0
- package/dist/toolkits/github/tools/Workflows/trigger-workflow.d.ts +15 -0
- package/dist/toolkits/github/tools/Workflows/trigger-workflow.js +35 -0
- package/dist/toolkits/github/tools/index.d.ts +176 -0
- package/dist/toolkits/github/tools/index.js +646 -0
- package/dist/toolkits/gmail/icon.js +25 -1
- package/dist/toolkits/gmail/manifest.js +78 -5
- package/dist/toolkits/gmail/tools/create-draft.d.ts +34 -0
- package/dist/toolkits/gmail/tools/create-draft.js +60 -0
- package/dist/toolkits/gmail/tools/delete-draft.d.ts +23 -0
- package/dist/toolkits/gmail/tools/delete-draft.js +34 -0
- package/dist/toolkits/gmail/tools/get-draft.d.ts +32 -0
- package/dist/toolkits/gmail/tools/get-draft.js +36 -0
- package/dist/toolkits/gmail/tools/get-message.d.ts +12 -12
- package/dist/toolkits/gmail/tools/get-message.js +3 -24
- package/dist/toolkits/gmail/tools/get-thread.d.ts +29 -0
- package/dist/toolkits/gmail/tools/get-thread.js +39 -0
- package/dist/toolkits/gmail/tools/index.d.ts +17 -0
- package/dist/toolkits/gmail/tools/index.js +17 -0
- package/dist/toolkits/gmail/tools/list-drafts.d.ts +28 -0
- package/dist/toolkits/gmail/tools/list-drafts.js +43 -0
- package/dist/toolkits/gmail/tools/list-labels.d.ts +20 -0
- package/dist/toolkits/gmail/tools/list-labels.js +46 -0
- package/dist/toolkits/gmail/tools/list-threads.d.ts +28 -0
- package/dist/toolkits/gmail/tools/list-threads.js +43 -0
- package/dist/toolkits/gmail/tools/modify-message-labels.d.ts +31 -0
- package/dist/toolkits/gmail/tools/modify-message-labels.js +44 -0
- package/dist/toolkits/gmail/tools/reply-to-thread.d.ts +33 -0
- package/dist/toolkits/gmail/tools/reply-to-thread.js +58 -0
- package/dist/toolkits/gmail/tools/send-draft.d.ts +29 -0
- package/dist/toolkits/gmail/tools/send-draft.js +41 -0
- package/dist/toolkits/gmail/tools/send-message.d.ts +4 -1
- package/dist/toolkits/gmail/tools/send-message.js +18 -16
- package/dist/toolkits/gmail/tools/trash-message.d.ts +29 -0
- package/dist/toolkits/gmail/tools/trash-message.js +37 -0
- package/dist/toolkits/gmail/tools/untrash-message.d.ts +29 -0
- package/dist/toolkits/gmail/tools/untrash-message.js +37 -0
- package/dist/toolkits/gmail/tools/utils.d.ts +41 -0
- package/dist/toolkits/gmail/tools/utils.js +97 -0
- package/dist/toolkits/google-calendar/icon.d.ts +5 -0
- package/dist/toolkits/google-calendar/icon.js +6 -0
- package/dist/toolkits/google-calendar/manifest.d.ts +3 -0
- package/dist/toolkits/google-calendar/manifest.js +45 -0
- package/dist/toolkits/google-calendar/tools/create-event.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/create-event.js +54 -0
- package/dist/toolkits/google-calendar/tools/delete-event.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/delete-event.js +38 -0
- package/dist/toolkits/google-calendar/tools/get-event.d.ts +24 -0
- package/dist/toolkits/google-calendar/tools/get-event.js +37 -0
- package/dist/toolkits/google-calendar/tools/index.d.ts +185 -0
- package/dist/toolkits/google-calendar/tools/index.js +47 -0
- package/dist/toolkits/google-calendar/tools/list-events.d.ts +24 -0
- package/dist/toolkits/google-calendar/tools/list-events.js +46 -0
- package/dist/toolkits/google-calendar/tools/search-events.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/search-events.js +49 -0
- package/dist/toolkits/google-calendar/tools/update-event.d.ts +29 -0
- package/dist/toolkits/google-calendar/tools/update-event.js +56 -0
- package/dist/toolkits/google-sheets/icon.d.ts +5 -0
- package/dist/toolkits/google-sheets/icon.js +13 -0
- package/dist/toolkits/google-sheets/manifest.d.ts +3 -0
- package/dist/toolkits/google-sheets/manifest.js +45 -0
- package/dist/toolkits/google-sheets/tools/append-values.d.ts +41 -0
- package/dist/toolkits/google-sheets/tools/append-values.js +51 -0
- package/dist/toolkits/google-sheets/tools/clear-values.d.ts +27 -0
- package/dist/toolkits/google-sheets/tools/clear-values.js +41 -0
- package/dist/toolkits/google-sheets/tools/create-spreadsheet.d.ts +33 -0
- package/dist/toolkits/google-sheets/tools/create-spreadsheet.js +59 -0
- package/dist/toolkits/google-sheets/tools/get-spreadsheet.d.ts +5 -0
- package/dist/toolkits/google-sheets/tools/get-spreadsheet.js +33 -0
- package/dist/toolkits/google-sheets/tools/get-values.d.ts +6 -0
- package/dist/toolkits/google-sheets/tools/get-values.js +34 -0
- package/dist/toolkits/google-sheets/tools/index.d.ts +209 -0
- package/dist/toolkits/google-sheets/tools/index.js +61 -0
- package/dist/toolkits/google-sheets/tools/list-spreadsheets.d.ts +21 -0
- package/dist/toolkits/google-sheets/tools/list-spreadsheets.js +43 -0
- package/dist/toolkits/google-sheets/tools/update-values.d.ts +38 -0
- package/dist/toolkits/google-sheets/tools/update-values.js +50 -0
- package/dist/toolkits/linear/icon.js +24 -1
- package/dist/toolkits/mathematics/icon.js +1 -1
- package/dist/toolkits/notion/icon.d.ts +5 -0
- package/dist/toolkits/notion/icon.js +10 -0
- package/dist/toolkits/notion/manifest.d.ts +3 -0
- package/dist/toolkits/notion/manifest.js +37 -0
- package/dist/toolkits/notion/tools/append-block-children.d.ts +6 -0
- package/dist/toolkits/notion/tools/append-block-children.js +30 -0
- package/dist/toolkits/notion/tools/create-page.d.ts +12 -0
- package/dist/toolkits/notion/tools/create-page.js +40 -0
- package/dist/toolkits/notion/tools/get-database.d.ts +5 -0
- package/dist/toolkits/notion/tools/get-database.js +25 -0
- package/dist/toolkits/notion/tools/get-page.d.ts +15 -0
- package/dist/toolkits/notion/tools/get-page.js +42 -0
- package/dist/toolkits/notion/tools/index.d.ts +16 -0
- package/dist/toolkits/notion/tools/index.js +61 -0
- package/dist/toolkits/notion/tools/list-databases.d.ts +5 -0
- package/dist/toolkits/notion/tools/list-databases.js +33 -0
- package/dist/toolkits/notion/tools/query-database.d.ts +8 -0
- package/dist/toolkits/notion/tools/query-database.js +34 -0
- package/dist/toolkits/notion/tools/search.d.ts +14 -0
- package/dist/toolkits/notion/tools/search.js +41 -0
- package/dist/toolkits/notion/tools/update-page.d.ts +9 -0
- package/dist/toolkits/notion/tools/update-page.js +36 -0
- package/dist/toolkits/web-search/icon.js +3 -1
- package/package.json +5 -6
- package/dist/core/categories.d.ts.map +0 -1
- package/dist/core/categories.js.map +0 -1
- package/dist/core/define.d.ts.map +0 -1
- package/dist/core/define.js.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/core/types.d.ts.map +0 -1
- package/dist/core/types.js.map +0 -1
- package/dist/core/validate.d.ts.map +0 -1
- package/dist/core/validate.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/runtime/credentials.d.ts.map +0 -1
- package/dist/runtime/credentials.js.map +0 -1
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/meta-tools.d.ts.map +0 -1
- package/dist/runtime/meta-tools.js.map +0 -1
- package/dist/runtime/registry.d.ts.map +0 -1
- package/dist/runtime/registry.js.map +0 -1
- package/dist/runtime/schema-helpers.d.ts.map +0 -1
- package/dist/runtime/schema-helpers.js.map +0 -1
- package/dist/toolkits/gmail/icon.d.ts.map +0 -1
- package/dist/toolkits/gmail/icon.js.map +0 -1
- package/dist/toolkits/gmail/manifest.d.ts.map +0 -1
- package/dist/toolkits/gmail/manifest.js.map +0 -1
- package/dist/toolkits/gmail/tools/get-message.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/get-message.js.map +0 -1
- package/dist/toolkits/gmail/tools/list-messages.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/list-messages.js.map +0 -1
- package/dist/toolkits/gmail/tools/send-message.d.ts.map +0 -1
- package/dist/toolkits/gmail/tools/send-message.js.map +0 -1
- package/dist/toolkits/linear/icon.d.ts.map +0 -1
- package/dist/toolkits/linear/icon.js.map +0 -1
- package/dist/toolkits/linear/manifest.d.ts.map +0 -1
- package/dist/toolkits/linear/manifest.js.map +0 -1
- package/dist/toolkits/linear/tools/create-issue.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/create-issue.js.map +0 -1
- package/dist/toolkits/linear/tools/list-teams.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/list-teams.js.map +0 -1
- package/dist/toolkits/linear/tools/search-issues.d.ts.map +0 -1
- package/dist/toolkits/linear/tools/search-issues.js.map +0 -1
- package/dist/toolkits/mathematics/icon.d.ts.map +0 -1
- package/dist/toolkits/mathematics/icon.js.map +0 -1
- package/dist/toolkits/mathematics/manifest.d.ts.map +0 -1
- package/dist/toolkits/mathematics/manifest.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-combinatorics.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-combinatorics.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-matrix-determinant.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-matrix-determinant.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-percentage.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-percentage.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-product.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-product.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-quadratic-roots.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-quadratic-roots.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-statistics.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-statistics.js.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-sum.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/calculate-sum.js.map +0 -1
- package/dist/toolkits/mathematics/tools/get-random-number.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/get-random-number.js.map +0 -1
- package/dist/toolkits/mathematics/tools/solve-linear-equations.d.ts.map +0 -1
- package/dist/toolkits/mathematics/tools/solve-linear-equations.js.map +0 -1
- package/dist/toolkits/web-search/icon.d.ts.map +0 -1
- package/dist/toolkits/web-search/icon.js.map +0 -1
- package/dist/toolkits/web-search/manifest.d.ts.map +0 -1
- package/dist/toolkits/web-search/manifest.js.map +0 -1
- package/dist/toolkits/web-search/tools/firecrawl-client.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/firecrawl-client.js.map +0 -1
- package/dist/toolkits/web-search/tools/web-scrape.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/web-scrape.js.map +0 -1
- package/dist/toolkits/web-search/tools/web-search.d.ts.map +0 -1
- package/dist/toolkits/web-search/tools/web-search.js.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { tool } from 'ai';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const listLabels = tool({
|
|
4
|
+
description: 'List all labels in the Gmail mailbox (e.g., INBOX, UNREAD, STARRED, IMPORTANT, and user custom labels).',
|
|
5
|
+
inputSchema: z.object({
|
|
6
|
+
gmailToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
7
|
+
type: z.enum(['all', 'system', 'user']).optional().default('all').describe('Filter labels by type: system, user, or all'),
|
|
8
|
+
}),
|
|
9
|
+
execute: async ({ gmailToken, type }) => {
|
|
10
|
+
try {
|
|
11
|
+
const response = await fetch('https://gmail.googleapis.com/gmail/v1/users/me/labels', {
|
|
12
|
+
headers: {
|
|
13
|
+
Authorization: `Bearer ${gmailToken}`,
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
if (!response.ok) {
|
|
17
|
+
const error = await response.json();
|
|
18
|
+
return { error: 'Failed to list labels', details: error };
|
|
19
|
+
}
|
|
20
|
+
const data = await response.json();
|
|
21
|
+
let labels = data.labels || [];
|
|
22
|
+
if (type === 'system') {
|
|
23
|
+
labels = labels.filter((l) => l.type === 'system');
|
|
24
|
+
}
|
|
25
|
+
else if (type === 'user') {
|
|
26
|
+
labels = labels.filter((l) => l.type === 'user');
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
labels: labels.map((l) => ({
|
|
30
|
+
id: l.id,
|
|
31
|
+
name: l.name,
|
|
32
|
+
type: l.type,
|
|
33
|
+
messageListVisibility: l.messageListVisibility,
|
|
34
|
+
labelListVisibility: l.labelListVisibility,
|
|
35
|
+
})),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
return {
|
|
40
|
+
error: 'Error listing labels',
|
|
41
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=list-labels.js.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const listThreads: import("ai").Tool<{
|
|
2
|
+
maxResults: number;
|
|
3
|
+
gmailToken?: string | undefined;
|
|
4
|
+
q?: string | undefined;
|
|
5
|
+
pageToken?: string | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
details: any;
|
|
9
|
+
threads?: undefined;
|
|
10
|
+
resultSizeEstimate?: undefined;
|
|
11
|
+
nextPageToken?: undefined;
|
|
12
|
+
message?: undefined;
|
|
13
|
+
} | {
|
|
14
|
+
threads: any;
|
|
15
|
+
resultSizeEstimate: any;
|
|
16
|
+
nextPageToken: any;
|
|
17
|
+
error?: undefined;
|
|
18
|
+
details?: undefined;
|
|
19
|
+
message?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
error: string;
|
|
22
|
+
message: string;
|
|
23
|
+
details?: undefined;
|
|
24
|
+
threads?: undefined;
|
|
25
|
+
resultSizeEstimate?: undefined;
|
|
26
|
+
nextPageToken?: undefined;
|
|
27
|
+
}>;
|
|
28
|
+
//# sourceMappingURL=list-threads.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { tool } from 'ai';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const listThreads = tool({
|
|
4
|
+
description: 'List or search email conversation threads in Gmail. Filter by search query (e.g., from:someone@example.com, is:unread).',
|
|
5
|
+
inputSchema: z.object({
|
|
6
|
+
gmailToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
7
|
+
q: z.string().optional().describe('Search query (same format as Gmail search box)'),
|
|
8
|
+
maxResults: z.number().optional().default(10).describe('Maximum number of threads to return'),
|
|
9
|
+
pageToken: z.string().optional().describe('Token for retrieving the next page of threads'),
|
|
10
|
+
}),
|
|
11
|
+
execute: async ({ gmailToken, q, maxResults, pageToken }) => {
|
|
12
|
+
try {
|
|
13
|
+
const url = new URL('https://gmail.googleapis.com/gmail/v1/users/me/threads');
|
|
14
|
+
if (q)
|
|
15
|
+
url.searchParams.append('q', q);
|
|
16
|
+
url.searchParams.append('maxResults', maxResults.toString());
|
|
17
|
+
if (pageToken)
|
|
18
|
+
url.searchParams.append('pageToken', pageToken);
|
|
19
|
+
const response = await fetch(url.toString(), {
|
|
20
|
+
headers: {
|
|
21
|
+
Authorization: `Bearer ${gmailToken}`,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
if (!response.ok) {
|
|
25
|
+
const error = await response.json();
|
|
26
|
+
return { error: 'Failed to list threads', details: error };
|
|
27
|
+
}
|
|
28
|
+
const data = await response.json();
|
|
29
|
+
return {
|
|
30
|
+
threads: data.threads || [],
|
|
31
|
+
resultSizeEstimate: data.resultSizeEstimate,
|
|
32
|
+
nextPageToken: data.nextPageToken,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
return {
|
|
37
|
+
error: 'Error listing threads',
|
|
38
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=list-threads.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const modifyMessageLabels: import("ai").Tool<{
|
|
2
|
+
messageId: string;
|
|
3
|
+
gmailToken?: string | undefined;
|
|
4
|
+
addLabelIds?: string[] | undefined;
|
|
5
|
+
removeLabelIds?: string[] | undefined;
|
|
6
|
+
}, {
|
|
7
|
+
error: string;
|
|
8
|
+
details: any;
|
|
9
|
+
success?: undefined;
|
|
10
|
+
messageId?: undefined;
|
|
11
|
+
threadId?: undefined;
|
|
12
|
+
labelIds?: undefined;
|
|
13
|
+
message?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
success: boolean;
|
|
16
|
+
messageId: any;
|
|
17
|
+
threadId: any;
|
|
18
|
+
labelIds: any;
|
|
19
|
+
error?: undefined;
|
|
20
|
+
details?: undefined;
|
|
21
|
+
message?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
error: string;
|
|
24
|
+
message: string;
|
|
25
|
+
details?: undefined;
|
|
26
|
+
success?: undefined;
|
|
27
|
+
messageId?: undefined;
|
|
28
|
+
threadId?: undefined;
|
|
29
|
+
labelIds?: undefined;
|
|
30
|
+
}>;
|
|
31
|
+
//# sourceMappingURL=modify-message-labels.d.ts.map
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { tool } from 'ai';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const modifyMessageLabels = tool({
|
|
4
|
+
description: 'Add or remove labels from a Gmail message. Used to mark emails as read/unread, star/unstar, archive (remove INBOX), or assign folders/labels.',
|
|
5
|
+
inputSchema: z.object({
|
|
6
|
+
gmailToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
7
|
+
messageId: z.string().describe('The ID of the message to modify'),
|
|
8
|
+
addLabelIds: z.array(z.string()).optional().describe('Array of label IDs to add (e.g., ["STARRED", "IMPORTANT"])'),
|
|
9
|
+
removeLabelIds: z.array(z.string()).optional().describe('Array of label IDs to remove (e.g., ["UNREAD"] to mark as read, or ["INBOX"] to archive)'),
|
|
10
|
+
}),
|
|
11
|
+
execute: async ({ gmailToken, messageId, addLabelIds = [], removeLabelIds = [] }) => {
|
|
12
|
+
try {
|
|
13
|
+
const response = await fetch(`https://gmail.googleapis.com/gmail/v1/users/me/messages/${messageId}/modify`, {
|
|
14
|
+
method: 'POST',
|
|
15
|
+
headers: {
|
|
16
|
+
Authorization: `Bearer ${gmailToken}`,
|
|
17
|
+
'Content-Type': 'application/json',
|
|
18
|
+
},
|
|
19
|
+
body: JSON.stringify({
|
|
20
|
+
addLabelIds,
|
|
21
|
+
removeLabelIds,
|
|
22
|
+
}),
|
|
23
|
+
});
|
|
24
|
+
if (!response.ok) {
|
|
25
|
+
const error = await response.json();
|
|
26
|
+
return { error: 'Failed to modify message labels', details: error };
|
|
27
|
+
}
|
|
28
|
+
const data = await response.json();
|
|
29
|
+
return {
|
|
30
|
+
success: true,
|
|
31
|
+
messageId: data.id,
|
|
32
|
+
threadId: data.threadId,
|
|
33
|
+
labelIds: data.labelIds || [],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
return {
|
|
38
|
+
error: 'Error modifying message labels',
|
|
39
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=modify-message-labels.js.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const replyToThread: import("ai").Tool<{
|
|
2
|
+
threadId: string;
|
|
3
|
+
subject: string;
|
|
4
|
+
to: string;
|
|
5
|
+
body: string;
|
|
6
|
+
gmailToken?: string | undefined;
|
|
7
|
+
cc?: string | undefined;
|
|
8
|
+
bcc?: string | undefined;
|
|
9
|
+
inReplyTo?: string | undefined;
|
|
10
|
+
references?: string | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
error: string;
|
|
13
|
+
details: any;
|
|
14
|
+
success?: undefined;
|
|
15
|
+
messageId?: undefined;
|
|
16
|
+
threadId?: undefined;
|
|
17
|
+
message?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
success: boolean;
|
|
20
|
+
messageId: any;
|
|
21
|
+
threadId: any;
|
|
22
|
+
error?: undefined;
|
|
23
|
+
details?: undefined;
|
|
24
|
+
message?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
error: string;
|
|
27
|
+
message: string;
|
|
28
|
+
details?: undefined;
|
|
29
|
+
success?: undefined;
|
|
30
|
+
messageId?: undefined;
|
|
31
|
+
threadId?: undefined;
|
|
32
|
+
}>;
|
|
33
|
+
//# sourceMappingURL=reply-to-thread.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { tool } from 'ai';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { encodeRFC822Message } from './utils.js';
|
|
4
|
+
export const replyToThread = tool({
|
|
5
|
+
description: 'Reply to an existing Gmail conversation thread, ensuring the message stays grouped in the same thread.',
|
|
6
|
+
inputSchema: z.object({
|
|
7
|
+
gmailToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
8
|
+
threadId: z.string().describe('The ID of the thread to reply to'),
|
|
9
|
+
to: z.string().describe('Recipient email address'),
|
|
10
|
+
subject: z.string().describe('Email subject (typically prefixed with "Re: ")'),
|
|
11
|
+
body: z.string().describe('Reply body (plain text)'),
|
|
12
|
+
cc: z.string().optional().describe('Optional CC recipient email address(es), comma-separated'),
|
|
13
|
+
bcc: z.string().optional().describe('Optional BCC recipient email address(es), comma-separated'),
|
|
14
|
+
inReplyTo: z.string().optional().describe('Optional Message-ID header of the email being replied to'),
|
|
15
|
+
references: z.string().optional().describe('Optional References header string for email threading continuity'),
|
|
16
|
+
}),
|
|
17
|
+
execute: async ({ gmailToken, threadId, to, subject, body, cc, bcc, inReplyTo, references }) => {
|
|
18
|
+
try {
|
|
19
|
+
const encodedMessage = encodeRFC822Message({
|
|
20
|
+
to,
|
|
21
|
+
subject,
|
|
22
|
+
body,
|
|
23
|
+
cc,
|
|
24
|
+
bcc,
|
|
25
|
+
inReplyTo,
|
|
26
|
+
references: references || inReplyTo,
|
|
27
|
+
});
|
|
28
|
+
const response = await fetch('https://gmail.googleapis.com/gmail/v1/users/me/messages/send', {
|
|
29
|
+
method: 'POST',
|
|
30
|
+
headers: {
|
|
31
|
+
Authorization: `Bearer ${gmailToken}`,
|
|
32
|
+
'Content-Type': 'application/json',
|
|
33
|
+
},
|
|
34
|
+
body: JSON.stringify({
|
|
35
|
+
raw: encodedMessage,
|
|
36
|
+
threadId,
|
|
37
|
+
}),
|
|
38
|
+
});
|
|
39
|
+
if (!response.ok) {
|
|
40
|
+
const error = await response.json();
|
|
41
|
+
return { error: 'Failed to reply to thread', details: error };
|
|
42
|
+
}
|
|
43
|
+
const data = await response.json();
|
|
44
|
+
return {
|
|
45
|
+
success: true,
|
|
46
|
+
messageId: data.id,
|
|
47
|
+
threadId: data.threadId,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
return {
|
|
52
|
+
error: 'Error replying to thread',
|
|
53
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=reply-to-thread.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const sendDraft: import("ai").Tool<{
|
|
2
|
+
id: string;
|
|
3
|
+
gmailToken?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
error: string;
|
|
6
|
+
details: any;
|
|
7
|
+
success?: undefined;
|
|
8
|
+
messageId?: undefined;
|
|
9
|
+
threadId?: undefined;
|
|
10
|
+
labelIds?: undefined;
|
|
11
|
+
message?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
success: boolean;
|
|
14
|
+
messageId: any;
|
|
15
|
+
threadId: any;
|
|
16
|
+
labelIds: any;
|
|
17
|
+
error?: undefined;
|
|
18
|
+
details?: undefined;
|
|
19
|
+
message?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
error: string;
|
|
22
|
+
message: string;
|
|
23
|
+
details?: undefined;
|
|
24
|
+
success?: undefined;
|
|
25
|
+
messageId?: undefined;
|
|
26
|
+
threadId?: undefined;
|
|
27
|
+
labelIds?: undefined;
|
|
28
|
+
}>;
|
|
29
|
+
//# sourceMappingURL=send-draft.d.ts.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { tool } from 'ai';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const sendDraft = tool({
|
|
4
|
+
description: 'Send an existing Gmail draft by its draft ID.',
|
|
5
|
+
inputSchema: z.object({
|
|
6
|
+
gmailToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
7
|
+
id: z.string().describe('The ID of the draft to send'),
|
|
8
|
+
}),
|
|
9
|
+
execute: async ({ gmailToken, id }) => {
|
|
10
|
+
try {
|
|
11
|
+
const response = await fetch('https://gmail.googleapis.com/gmail/v1/users/me/drafts/send', {
|
|
12
|
+
method: 'POST',
|
|
13
|
+
headers: {
|
|
14
|
+
Authorization: `Bearer ${gmailToken}`,
|
|
15
|
+
'Content-Type': 'application/json',
|
|
16
|
+
},
|
|
17
|
+
body: JSON.stringify({
|
|
18
|
+
id,
|
|
19
|
+
}),
|
|
20
|
+
});
|
|
21
|
+
if (!response.ok) {
|
|
22
|
+
const error = await response.json();
|
|
23
|
+
return { error: 'Failed to send draft', details: error };
|
|
24
|
+
}
|
|
25
|
+
const data = await response.json();
|
|
26
|
+
return {
|
|
27
|
+
success: true,
|
|
28
|
+
messageId: data.id,
|
|
29
|
+
threadId: data.threadId,
|
|
30
|
+
labelIds: data.labelIds || [],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
return {
|
|
35
|
+
error: 'Error sending draft',
|
|
36
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=send-draft.js.map
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export declare const sendMessage: import("ai").Tool<{
|
|
2
2
|
subject: string;
|
|
3
|
-
body: string;
|
|
4
3
|
to: string;
|
|
4
|
+
body: string;
|
|
5
5
|
gmailToken?: string | undefined;
|
|
6
|
+
threadId?: string | undefined;
|
|
7
|
+
cc?: string | undefined;
|
|
8
|
+
bcc?: string | undefined;
|
|
6
9
|
}, {
|
|
7
10
|
error: string;
|
|
8
11
|
details: any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { tool } from 'ai';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import { encodeRFC822Message } from './utils.js';
|
|
3
4
|
export const sendMessage = tool({
|
|
4
5
|
description: 'Send an email via Gmail.',
|
|
5
6
|
inputSchema: z.object({
|
|
@@ -7,31 +8,32 @@ export const sendMessage = tool({
|
|
|
7
8
|
to: z.string().describe('Recipient email address'),
|
|
8
9
|
subject: z.string().describe('Email subject'),
|
|
9
10
|
body: z.string().describe('Email body (plain text)'),
|
|
11
|
+
cc: z.string().optional().describe('Optional CC recipient email address(es), comma-separated'),
|
|
12
|
+
bcc: z.string().optional().describe('Optional BCC recipient email address(es), comma-separated'),
|
|
13
|
+
threadId: z.string().optional().describe('Optional thread ID to reply or append this message to an existing conversation thread'),
|
|
10
14
|
}),
|
|
11
|
-
execute: async ({ gmailToken, to, subject, body }) => {
|
|
15
|
+
execute: async ({ gmailToken, to, subject, body, cc, bcc, threadId }) => {
|
|
12
16
|
try {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'Content-Type: text/plain; charset="UTF-8"',
|
|
17
|
-
'MIME-Version: 1.0',
|
|
18
|
-
'',
|
|
17
|
+
const encodedMessage = encodeRFC822Message({
|
|
18
|
+
to,
|
|
19
|
+
subject,
|
|
19
20
|
body,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
cc,
|
|
22
|
+
bcc,
|
|
23
|
+
});
|
|
24
|
+
const payload = {
|
|
25
|
+
raw: encodedMessage,
|
|
26
|
+
};
|
|
27
|
+
if (threadId) {
|
|
28
|
+
payload.threadId = threadId;
|
|
29
|
+
}
|
|
26
30
|
const response = await fetch('https://gmail.googleapis.com/gmail/v1/users/me/messages/send', {
|
|
27
31
|
method: 'POST',
|
|
28
32
|
headers: {
|
|
29
33
|
Authorization: `Bearer ${gmailToken}`,
|
|
30
34
|
'Content-Type': 'application/json',
|
|
31
35
|
},
|
|
32
|
-
body: JSON.stringify(
|
|
33
|
-
raw: encodedMessage,
|
|
34
|
-
}),
|
|
36
|
+
body: JSON.stringify(payload),
|
|
35
37
|
});
|
|
36
38
|
if (!response.ok) {
|
|
37
39
|
const error = await response.json();
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const trashMessage: import("ai").Tool<{
|
|
2
|
+
id: string;
|
|
3
|
+
gmailToken?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
error: string;
|
|
6
|
+
details: any;
|
|
7
|
+
success?: undefined;
|
|
8
|
+
messageId?: undefined;
|
|
9
|
+
threadId?: undefined;
|
|
10
|
+
labelIds?: undefined;
|
|
11
|
+
message?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
success: boolean;
|
|
14
|
+
messageId: any;
|
|
15
|
+
threadId: any;
|
|
16
|
+
labelIds: any;
|
|
17
|
+
error?: undefined;
|
|
18
|
+
details?: undefined;
|
|
19
|
+
message?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
error: string;
|
|
22
|
+
message: string;
|
|
23
|
+
details?: undefined;
|
|
24
|
+
success?: undefined;
|
|
25
|
+
messageId?: undefined;
|
|
26
|
+
threadId?: undefined;
|
|
27
|
+
labelIds?: undefined;
|
|
28
|
+
}>;
|
|
29
|
+
//# sourceMappingURL=trash-message.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { tool } from 'ai';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const trashMessage = tool({
|
|
4
|
+
description: 'Move a Gmail message to the Trash folder (safe recoverable deletion).',
|
|
5
|
+
inputSchema: z.object({
|
|
6
|
+
gmailToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
7
|
+
id: z.string().describe('The ID of the message to move to Trash'),
|
|
8
|
+
}),
|
|
9
|
+
execute: async ({ gmailToken, id }) => {
|
|
10
|
+
try {
|
|
11
|
+
const response = await fetch(`https://gmail.googleapis.com/gmail/v1/users/me/messages/${id}/trash`, {
|
|
12
|
+
method: 'POST',
|
|
13
|
+
headers: {
|
|
14
|
+
Authorization: `Bearer ${gmailToken}`,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
if (!response.ok) {
|
|
18
|
+
const error = await response.json();
|
|
19
|
+
return { error: 'Failed to trash message', details: error };
|
|
20
|
+
}
|
|
21
|
+
const data = await response.json();
|
|
22
|
+
return {
|
|
23
|
+
success: true,
|
|
24
|
+
messageId: data.id,
|
|
25
|
+
threadId: data.threadId,
|
|
26
|
+
labelIds: data.labelIds || [],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
return {
|
|
31
|
+
error: 'Error moving message to trash',
|
|
32
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=trash-message.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const untrashMessage: import("ai").Tool<{
|
|
2
|
+
id: string;
|
|
3
|
+
gmailToken?: string | undefined;
|
|
4
|
+
}, {
|
|
5
|
+
error: string;
|
|
6
|
+
details: any;
|
|
7
|
+
success?: undefined;
|
|
8
|
+
messageId?: undefined;
|
|
9
|
+
threadId?: undefined;
|
|
10
|
+
labelIds?: undefined;
|
|
11
|
+
message?: undefined;
|
|
12
|
+
} | {
|
|
13
|
+
success: boolean;
|
|
14
|
+
messageId: any;
|
|
15
|
+
threadId: any;
|
|
16
|
+
labelIds: any;
|
|
17
|
+
error?: undefined;
|
|
18
|
+
details?: undefined;
|
|
19
|
+
message?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
error: string;
|
|
22
|
+
message: string;
|
|
23
|
+
details?: undefined;
|
|
24
|
+
success?: undefined;
|
|
25
|
+
messageId?: undefined;
|
|
26
|
+
threadId?: undefined;
|
|
27
|
+
labelIds?: undefined;
|
|
28
|
+
}>;
|
|
29
|
+
//# sourceMappingURL=untrash-message.d.ts.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { tool } from 'ai';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const untrashMessage = tool({
|
|
4
|
+
description: 'Restore a Gmail message from the Trash folder back to the mailbox.',
|
|
5
|
+
inputSchema: z.object({
|
|
6
|
+
gmailToken: z.string().optional().describe('Injected by system; do not provide'),
|
|
7
|
+
id: z.string().describe('The ID of the message to restore from Trash'),
|
|
8
|
+
}),
|
|
9
|
+
execute: async ({ gmailToken, id }) => {
|
|
10
|
+
try {
|
|
11
|
+
const response = await fetch(`https://gmail.googleapis.com/gmail/v1/users/me/messages/${id}/untrash`, {
|
|
12
|
+
method: 'POST',
|
|
13
|
+
headers: {
|
|
14
|
+
Authorization: `Bearer ${gmailToken}`,
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
if (!response.ok) {
|
|
18
|
+
const error = await response.json();
|
|
19
|
+
return { error: 'Failed to untrash message', details: error };
|
|
20
|
+
}
|
|
21
|
+
const data = await response.json();
|
|
22
|
+
return {
|
|
23
|
+
success: true,
|
|
24
|
+
messageId: data.id,
|
|
25
|
+
threadId: data.threadId,
|
|
26
|
+
labelIds: data.labelIds || [],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
catch (error) {
|
|
30
|
+
return {
|
|
31
|
+
error: 'Error restoring message from trash',
|
|
32
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=untrash-message.js.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base64URL encodes a string in accordance with RFC 4648 §5.
|
|
3
|
+
*/
|
|
4
|
+
export declare function encodeBase64Url(str: string): string;
|
|
5
|
+
/**
|
|
6
|
+
* Base64URL decodes a string back to UTF-8.
|
|
7
|
+
*/
|
|
8
|
+
export declare function decodeBase64Url(data: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Encodes an email with standard RFC 2822 headers into Base64URL format.
|
|
11
|
+
*/
|
|
12
|
+
export declare function encodeRFC822Message(params: {
|
|
13
|
+
to: string;
|
|
14
|
+
subject: string;
|
|
15
|
+
body: string;
|
|
16
|
+
cc?: string;
|
|
17
|
+
bcc?: string;
|
|
18
|
+
inReplyTo?: string;
|
|
19
|
+
references?: string;
|
|
20
|
+
}): string;
|
|
21
|
+
/**
|
|
22
|
+
* Recursively extracts plain text (or HTML fallback) body from a Gmail message payload.
|
|
23
|
+
*/
|
|
24
|
+
export declare function extractBodyFromPayload(payload: any): string;
|
|
25
|
+
/**
|
|
26
|
+
* Extracts structured message details and headers from a Gmail message API response.
|
|
27
|
+
*/
|
|
28
|
+
export declare function extractMessageDetails(data: any, maxBodyLength?: number): {
|
|
29
|
+
id: any;
|
|
30
|
+
threadId: any;
|
|
31
|
+
labelIds: any;
|
|
32
|
+
snippet: any;
|
|
33
|
+
subject: any;
|
|
34
|
+
from: any;
|
|
35
|
+
to: any;
|
|
36
|
+
cc: any;
|
|
37
|
+
date: any;
|
|
38
|
+
messageIdHeader: any;
|
|
39
|
+
body: string;
|
|
40
|
+
} | null;
|
|
41
|
+
//# sourceMappingURL=utils.d.ts.map
|