@keystrokehq/scale_ai 0.1.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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-studio-assignments.cjs +19 -0
- package/dist/actions/add-studio-assignments.cjs.map +1 -0
- package/dist/actions/add-studio-assignments.d.cts +9 -0
- package/dist/actions/add-studio-assignments.d.cts.map +1 -0
- package/dist/actions/add-studio-assignments.d.mts +9 -0
- package/dist/actions/add-studio-assignments.d.mts.map +1 -0
- package/dist/actions/add-studio-assignments.mjs +16 -0
- package/dist/actions/add-studio-assignments.mjs.map +1 -0
- package/dist/actions/add-task-tags.cjs +29 -0
- package/dist/actions/add-task-tags.cjs.map +1 -0
- package/dist/actions/add-task-tags.d.cts +9 -0
- package/dist/actions/add-task-tags.d.cts.map +1 -0
- package/dist/actions/add-task-tags.d.mts +9 -0
- package/dist/actions/add-task-tags.d.mts.map +1 -0
- package/dist/actions/add-task-tags.mjs +26 -0
- package/dist/actions/add-task-tags.mjs.map +1 -0
- package/dist/actions/create-batch.cjs +29 -0
- package/dist/actions/create-batch.cjs.map +1 -0
- package/dist/actions/create-batch.d.cts +9 -0
- package/dist/actions/create-batch.d.cts.map +1 -0
- package/dist/actions/create-batch.d.mts +9 -0
- package/dist/actions/create-batch.d.mts.map +1 -0
- package/dist/actions/create-batch.mjs +26 -0
- package/dist/actions/create-batch.mjs.map +1 -0
- package/dist/actions/create-document-transcription-task.cjs +111 -0
- package/dist/actions/create-document-transcription-task.cjs.map +1 -0
- package/dist/actions/create-document-transcription-task.d.cts +9 -0
- package/dist/actions/create-document-transcription-task.d.cts.map +1 -0
- package/dist/actions/create-document-transcription-task.d.mts +9 -0
- package/dist/actions/create-document-transcription-task.d.mts.map +1 -0
- package/dist/actions/create-document-transcription-task.mjs +110 -0
- package/dist/actions/create-document-transcription-task.mjs.map +1 -0
- package/dist/actions/create-image-annotation-task.cjs +188 -0
- package/dist/actions/create-image-annotation-task.cjs.map +1 -0
- package/dist/actions/create-image-annotation-task.d.cts +9 -0
- package/dist/actions/create-image-annotation-task.d.cts.map +1 -0
- package/dist/actions/create-image-annotation-task.d.mts +9 -0
- package/dist/actions/create-image-annotation-task.d.mts.map +1 -0
- package/dist/actions/create-image-annotation-task.mjs +187 -0
- package/dist/actions/create-image-annotation-task.mjs.map +1 -0
- package/dist/actions/create-lidar-annotation-task.cjs +52 -0
- package/dist/actions/create-lidar-annotation-task.cjs.map +1 -0
- package/dist/actions/create-lidar-annotation-task.d.cts +9 -0
- package/dist/actions/create-lidar-annotation-task.d.cts.map +1 -0
- package/dist/actions/create-lidar-annotation-task.d.mts +9 -0
- package/dist/actions/create-lidar-annotation-task.d.mts.map +1 -0
- package/dist/actions/create-lidar-annotation-task.mjs +51 -0
- package/dist/actions/create-lidar-annotation-task.mjs.map +1 -0
- package/dist/actions/create-lidar-segmentation-task.cjs +52 -0
- package/dist/actions/create-lidar-segmentation-task.cjs.map +1 -0
- package/dist/actions/create-lidar-segmentation-task.d.cts +9 -0
- package/dist/actions/create-lidar-segmentation-task.d.cts.map +1 -0
- package/dist/actions/create-lidar-segmentation-task.d.mts +9 -0
- package/dist/actions/create-lidar-segmentation-task.d.mts.map +1 -0
- package/dist/actions/create-lidar-segmentation-task.mjs +51 -0
- package/dist/actions/create-lidar-segmentation-task.mjs.map +1 -0
- package/dist/actions/create-named-entity-recognition-task.cjs +59 -0
- package/dist/actions/create-named-entity-recognition-task.cjs.map +1 -0
- package/dist/actions/create-named-entity-recognition-task.d.cts +9 -0
- package/dist/actions/create-named-entity-recognition-task.d.cts.map +1 -0
- package/dist/actions/create-named-entity-recognition-task.d.mts +9 -0
- package/dist/actions/create-named-entity-recognition-task.d.mts.map +1 -0
- package/dist/actions/create-named-entity-recognition-task.mjs +58 -0
- package/dist/actions/create-named-entity-recognition-task.mjs.map +1 -0
- package/dist/actions/create-segmentation-annotation-task.cjs +72 -0
- package/dist/actions/create-segmentation-annotation-task.cjs.map +1 -0
- package/dist/actions/create-segmentation-annotation-task.d.cts +9 -0
- package/dist/actions/create-segmentation-annotation-task.d.cts.map +1 -0
- package/dist/actions/create-segmentation-annotation-task.d.mts +9 -0
- package/dist/actions/create-segmentation-annotation-task.d.mts.map +1 -0
- package/dist/actions/create-segmentation-annotation-task.mjs +71 -0
- package/dist/actions/create-segmentation-annotation-task.mjs.map +1 -0
- package/dist/actions/create-text-collection-task.cjs +69 -0
- package/dist/actions/create-text-collection-task.cjs.map +1 -0
- package/dist/actions/create-text-collection-task.d.cts +9 -0
- package/dist/actions/create-text-collection-task.d.cts.map +1 -0
- package/dist/actions/create-text-collection-task.d.mts +9 -0
- package/dist/actions/create-text-collection-task.d.mts.map +1 -0
- package/dist/actions/create-text-collection-task.mjs +68 -0
- package/dist/actions/create-text-collection-task.mjs.map +1 -0
- package/dist/actions/create-video-annotation-task.cjs +120 -0
- package/dist/actions/create-video-annotation-task.cjs.map +1 -0
- package/dist/actions/create-video-annotation-task.d.cts +9 -0
- package/dist/actions/create-video-annotation-task.d.cts.map +1 -0
- package/dist/actions/create-video-annotation-task.d.mts +9 -0
- package/dist/actions/create-video-annotation-task.d.mts.map +1 -0
- package/dist/actions/create-video-annotation-task.mjs +119 -0
- package/dist/actions/create-video-annotation-task.mjs.map +1 -0
- package/dist/actions/create-video-playback-annotation-task.cjs +152 -0
- package/dist/actions/create-video-playback-annotation-task.cjs.map +1 -0
- package/dist/actions/create-video-playback-annotation-task.d.cts +9 -0
- package/dist/actions/create-video-playback-annotation-task.d.cts.map +1 -0
- package/dist/actions/create-video-playback-annotation-task.d.mts +9 -0
- package/dist/actions/create-video-playback-annotation-task.d.mts.map +1 -0
- package/dist/actions/create-video-playback-annotation-task.mjs +151 -0
- package/dist/actions/create-video-playback-annotation-task.mjs.map +1 -0
- package/dist/actions/delete-task-tags.cjs +28 -0
- package/dist/actions/delete-task-tags.cjs.map +1 -0
- package/dist/actions/delete-task-tags.d.cts +9 -0
- package/dist/actions/delete-task-tags.d.cts.map +1 -0
- package/dist/actions/delete-task-tags.d.mts +9 -0
- package/dist/actions/delete-task-tags.d.mts.map +1 -0
- package/dist/actions/delete-task-tags.mjs +25 -0
- package/dist/actions/delete-task-tags.mjs.map +1 -0
- package/dist/actions/delete-task-unique-id.cjs +26 -0
- package/dist/actions/delete-task-unique-id.cjs.map +1 -0
- package/dist/actions/delete-task-unique-id.d.cts +9 -0
- package/dist/actions/delete-task-unique-id.d.cts.map +1 -0
- package/dist/actions/delete-task-unique-id.d.mts +9 -0
- package/dist/actions/delete-task-unique-id.d.mts.map +1 -0
- package/dist/actions/delete-task-unique-id.mjs +25 -0
- package/dist/actions/delete-task-unique-id.mjs.map +1 -0
- package/dist/actions/finalize-batch.cjs +23 -0
- package/dist/actions/finalize-batch.cjs.map +1 -0
- package/dist/actions/finalize-batch.d.cts +9 -0
- package/dist/actions/finalize-batch.d.cts.map +1 -0
- package/dist/actions/finalize-batch.d.mts +9 -0
- package/dist/actions/finalize-batch.d.mts.map +1 -0
- package/dist/actions/finalize-batch.mjs +20 -0
- package/dist/actions/finalize-batch.mjs.map +1 -0
- package/dist/actions/get-assets.cjs +33 -0
- package/dist/actions/get-assets.cjs.map +1 -0
- package/dist/actions/get-assets.d.cts +9 -0
- package/dist/actions/get-assets.d.cts.map +1 -0
- package/dist/actions/get-assets.d.mts +9 -0
- package/dist/actions/get-assets.d.mts.map +1 -0
- package/dist/actions/get-assets.mjs +32 -0
- package/dist/actions/get-assets.mjs.map +1 -0
- package/dist/actions/get-batch-status.cjs +22 -0
- package/dist/actions/get-batch-status.cjs.map +1 -0
- package/dist/actions/get-batch-status.d.cts +9 -0
- package/dist/actions/get-batch-status.d.cts.map +1 -0
- package/dist/actions/get-batch-status.d.mts +9 -0
- package/dist/actions/get-batch-status.d.mts.map +1 -0
- package/dist/actions/get-batch-status.mjs +19 -0
- package/dist/actions/get-batch-status.mjs.map +1 -0
- package/dist/actions/get-batch.cjs +23 -0
- package/dist/actions/get-batch.cjs.map +1 -0
- package/dist/actions/get-batch.d.cts +9 -0
- package/dist/actions/get-batch.d.cts.map +1 -0
- package/dist/actions/get-batch.d.mts +9 -0
- package/dist/actions/get-batch.d.mts.map +1 -0
- package/dist/actions/get-batch.mjs +20 -0
- package/dist/actions/get-batch.mjs.map +1 -0
- package/dist/actions/get-fixless-audits.cjs +45 -0
- package/dist/actions/get-fixless-audits.cjs.map +1 -0
- package/dist/actions/get-fixless-audits.d.cts +9 -0
- package/dist/actions/get-fixless-audits.d.cts.map +1 -0
- package/dist/actions/get-fixless-audits.d.mts +9 -0
- package/dist/actions/get-fixless-audits.d.mts.map +1 -0
- package/dist/actions/get-fixless-audits.mjs +44 -0
- package/dist/actions/get-fixless-audits.mjs.map +1 -0
- package/dist/actions/get-project.cjs +26 -0
- package/dist/actions/get-project.cjs.map +1 -0
- package/dist/actions/get-project.d.cts +9 -0
- package/dist/actions/get-project.d.cts.map +1 -0
- package/dist/actions/get-project.d.mts +9 -0
- package/dist/actions/get-project.d.mts.map +1 -0
- package/dist/actions/get-project.mjs +25 -0
- package/dist/actions/get-project.mjs.map +1 -0
- package/dist/actions/get-quality-labelers.cjs +34 -0
- package/dist/actions/get-quality-labelers.cjs.map +1 -0
- package/dist/actions/get-quality-labelers.d.cts +9 -0
- package/dist/actions/get-quality-labelers.d.cts.map +1 -0
- package/dist/actions/get-quality-labelers.d.mts +9 -0
- package/dist/actions/get-quality-labelers.d.mts.map +1 -0
- package/dist/actions/get-quality-labelers.mjs +33 -0
- package/dist/actions/get-quality-labelers.mjs.map +1 -0
- package/dist/actions/get-studio-assignments.cjs +23 -0
- package/dist/actions/get-studio-assignments.cjs.map +1 -0
- package/dist/actions/get-studio-assignments.d.cts +9 -0
- package/dist/actions/get-studio-assignments.d.cts.map +1 -0
- package/dist/actions/get-studio-assignments.d.mts +9 -0
- package/dist/actions/get-studio-assignments.d.mts.map +1 -0
- package/dist/actions/get-studio-assignments.mjs +22 -0
- package/dist/actions/get-studio-assignments.mjs.map +1 -0
- package/dist/actions/get-studio-batches.cjs +25 -0
- package/dist/actions/get-studio-batches.cjs.map +1 -0
- package/dist/actions/get-studio-batches.d.cts +9 -0
- package/dist/actions/get-studio-batches.d.cts.map +1 -0
- package/dist/actions/get-studio-batches.d.mts +9 -0
- package/dist/actions/get-studio-batches.d.mts.map +1 -0
- package/dist/actions/get-studio-batches.mjs +24 -0
- package/dist/actions/get-studio-batches.mjs.map +1 -0
- package/dist/actions/get-teams.cjs +26 -0
- package/dist/actions/get-teams.cjs.map +1 -0
- package/dist/actions/get-teams.d.cts +9 -0
- package/dist/actions/get-teams.d.cts.map +1 -0
- package/dist/actions/get-teams.d.mts +9 -0
- package/dist/actions/get-teams.d.mts.map +1 -0
- package/dist/actions/get-teams.mjs +25 -0
- package/dist/actions/get-teams.mjs.map +1 -0
- package/dist/actions/get-v1-task-response-url.cjs +24 -0
- package/dist/actions/get-v1-task-response-url.cjs.map +1 -0
- package/dist/actions/get-v1-task-response-url.d.cts +9 -0
- package/dist/actions/get-v1-task-response-url.d.cts.map +1 -0
- package/dist/actions/get-v1-task-response-url.d.mts +9 -0
- package/dist/actions/get-v1-task-response-url.d.mts.map +1 -0
- package/dist/actions/get-v1-task-response-url.mjs +21 -0
- package/dist/actions/get-v1-task-response-url.mjs.map +1 -0
- package/dist/actions/get-v1-task.cjs +28 -0
- package/dist/actions/get-v1-task.cjs.map +1 -0
- package/dist/actions/get-v1-task.d.cts +9 -0
- package/dist/actions/get-v1-task.d.cts.map +1 -0
- package/dist/actions/get-v1-task.d.mts +9 -0
- package/dist/actions/get-v1-task.d.mts.map +1 -0
- package/dist/actions/get-v1-task.mjs +25 -0
- package/dist/actions/get-v1-task.mjs.map +1 -0
- package/dist/actions/import-file.cjs +27 -0
- package/dist/actions/import-file.cjs.map +1 -0
- package/dist/actions/import-file.d.cts +9 -0
- package/dist/actions/import-file.d.cts.map +1 -0
- package/dist/actions/import-file.d.mts +9 -0
- package/dist/actions/import-file.d.mts.map +1 -0
- package/dist/actions/import-file.mjs +24 -0
- package/dist/actions/import-file.mjs.map +1 -0
- package/dist/actions/index.cjs +81 -0
- package/dist/actions/index.d.cts +41 -0
- package/dist/actions/index.d.mts +41 -0
- package/dist/actions/index.mjs +41 -0
- package/dist/actions/invite-team-member.cjs +29 -0
- package/dist/actions/invite-team-member.cjs.map +1 -0
- package/dist/actions/invite-team-member.d.cts +9 -0
- package/dist/actions/invite-team-member.d.cts.map +1 -0
- package/dist/actions/invite-team-member.d.mts +9 -0
- package/dist/actions/invite-team-member.d.mts.map +1 -0
- package/dist/actions/invite-team-member.mjs +28 -0
- package/dist/actions/invite-team-member.mjs.map +1 -0
- package/dist/actions/list-batches.cjs +37 -0
- package/dist/actions/list-batches.cjs.map +1 -0
- package/dist/actions/list-batches.d.cts +9 -0
- package/dist/actions/list-batches.d.cts.map +1 -0
- package/dist/actions/list-batches.d.mts +9 -0
- package/dist/actions/list-batches.d.mts.map +1 -0
- package/dist/actions/list-batches.mjs +36 -0
- package/dist/actions/list-batches.mjs.map +1 -0
- package/dist/actions/list-projects.cjs +37 -0
- package/dist/actions/list-projects.cjs.map +1 -0
- package/dist/actions/list-projects.d.cts +9 -0
- package/dist/actions/list-projects.d.cts.map +1 -0
- package/dist/actions/list-projects.d.mts +9 -0
- package/dist/actions/list-projects.d.mts.map +1 -0
- package/dist/actions/list-projects.mjs +36 -0
- package/dist/actions/list-projects.mjs.map +1 -0
- package/dist/actions/list-tasks.cjs +53 -0
- package/dist/actions/list-tasks.cjs.map +1 -0
- package/dist/actions/list-tasks.d.cts +9 -0
- package/dist/actions/list-tasks.d.cts.map +1 -0
- package/dist/actions/list-tasks.d.mts +9 -0
- package/dist/actions/list-tasks.d.mts.map +1 -0
- package/dist/actions/list-tasks.mjs +52 -0
- package/dist/actions/list-tasks.mjs.map +1 -0
- package/dist/actions/post-v1-task-send-callback.cjs +22 -0
- package/dist/actions/post-v1-task-send-callback.cjs.map +1 -0
- package/dist/actions/post-v1-task-send-callback.d.cts +9 -0
- package/dist/actions/post-v1-task-send-callback.d.cts.map +1 -0
- package/dist/actions/post-v1-task-send-callback.d.mts +9 -0
- package/dist/actions/post-v1-task-send-callback.d.mts.map +1 -0
- package/dist/actions/post-v1-task-send-callback.mjs +19 -0
- package/dist/actions/post-v1-task-send-callback.mjs.map +1 -0
- package/dist/actions/remove-studio-assignments.cjs +33 -0
- package/dist/actions/remove-studio-assignments.cjs.map +1 -0
- package/dist/actions/remove-studio-assignments.d.cts +9 -0
- package/dist/actions/remove-studio-assignments.d.cts.map +1 -0
- package/dist/actions/remove-studio-assignments.d.mts +9 -0
- package/dist/actions/remove-studio-assignments.d.mts.map +1 -0
- package/dist/actions/remove-studio-assignments.mjs +32 -0
- package/dist/actions/remove-studio-assignments.mjs.map +1 -0
- package/dist/actions/reset-batch-priorities.cjs +25 -0
- package/dist/actions/reset-batch-priorities.cjs.map +1 -0
- package/dist/actions/reset-batch-priorities.d.cts +9 -0
- package/dist/actions/reset-batch-priorities.d.cts.map +1 -0
- package/dist/actions/reset-batch-priorities.d.mts +9 -0
- package/dist/actions/reset-batch-priorities.d.mts.map +1 -0
- package/dist/actions/reset-batch-priorities.mjs +24 -0
- package/dist/actions/reset-batch-priorities.mjs.map +1 -0
- package/dist/actions/set-batch-priorities.cjs +27 -0
- package/dist/actions/set-batch-priorities.cjs.map +1 -0
- package/dist/actions/set-batch-priorities.d.cts +9 -0
- package/dist/actions/set-batch-priorities.d.cts.map +1 -0
- package/dist/actions/set-batch-priorities.d.mts +9 -0
- package/dist/actions/set-batch-priorities.d.mts.map +1 -0
- package/dist/actions/set-batch-priorities.mjs +26 -0
- package/dist/actions/set-batch-priorities.mjs.map +1 -0
- package/dist/actions/set-project-ontology.cjs +44 -0
- package/dist/actions/set-project-ontology.cjs.map +1 -0
- package/dist/actions/set-project-ontology.d.cts +9 -0
- package/dist/actions/set-project-ontology.d.cts.map +1 -0
- package/dist/actions/set-project-ontology.d.mts +9 -0
- package/dist/actions/set-project-ontology.d.mts.map +1 -0
- package/dist/actions/set-project-ontology.mjs +43 -0
- package/dist/actions/set-project-ontology.mjs.map +1 -0
- package/dist/actions/set-project-params.cjs +32 -0
- package/dist/actions/set-project-params.cjs.map +1 -0
- package/dist/actions/set-project-params.d.cts +9 -0
- package/dist/actions/set-project-params.d.cts.map +1 -0
- package/dist/actions/set-project-params.d.mts +9 -0
- package/dist/actions/set-project-params.d.mts.map +1 -0
- package/dist/actions/set-project-params.mjs +31 -0
- package/dist/actions/set-project-params.mjs.map +1 -0
- package/dist/actions/set-task-metadata.cjs +34 -0
- package/dist/actions/set-task-metadata.cjs.map +1 -0
- package/dist/actions/set-task-metadata.d.cts +9 -0
- package/dist/actions/set-task-metadata.d.cts.map +1 -0
- package/dist/actions/set-task-metadata.d.mts +9 -0
- package/dist/actions/set-task-metadata.d.mts.map +1 -0
- package/dist/actions/set-task-metadata.mjs +31 -0
- package/dist/actions/set-task-metadata.mjs.map +1 -0
- package/dist/actions/update-task-unique-id.cjs +30 -0
- package/dist/actions/update-task-unique-id.cjs.map +1 -0
- package/dist/actions/update-task-unique-id.d.cts +9 -0
- package/dist/actions/update-task-unique-id.d.cts.map +1 -0
- package/dist/actions/update-task-unique-id.d.mts +9 -0
- package/dist/actions/update-task-unique-id.d.mts.map +1 -0
- package/dist/actions/update-task-unique-id.mjs +29 -0
- package/dist/actions/update-task-unique-id.mjs.map +1 -0
- package/dist/actions/upload-file.cjs +34 -0
- package/dist/actions/upload-file.cjs.map +1 -0
- package/dist/actions/upload-file.d.cts +9 -0
- package/dist/actions/upload-file.d.cts.map +1 -0
- package/dist/actions/upload-file.d.mts +9 -0
- package/dist/actions/upload-file.d.mts.map +1 -0
- package/dist/actions/upload-file.mjs +31 -0
- package/dist/actions/upload-file.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +86 -0
- package/dist/index.d.cts +43 -0
- package/dist/index.d.mts +43 -0
- package/dist/index.mjs +44 -0
- package/package.json +49 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/invite-team-member.ts
|
|
4
|
+
const ScaleAiInviteTeamMemberInput = z.object({
|
|
5
|
+
emails: z.array(z.string()).describe("Array of email addresses of teammates you want to invite."),
|
|
6
|
+
team_role: z.string().describe("Role of invited teammate. Must be one of: 'labeler' (Studio only), 'member', or 'manager'.")
|
|
7
|
+
}).describe("Request parameters for inviting team members.");
|
|
8
|
+
const ScaleAiInviteTeamMember_TeamMemberSchema = z.object({
|
|
9
|
+
role: z.string().describe("User's role (admin, member, labeler, or invited)").nullable().optional(),
|
|
10
|
+
email: z.string().describe("Team member's email address"),
|
|
11
|
+
expiry: z.string().describe("Invitation expiration timestamp (for invited status)").nullable().optional(),
|
|
12
|
+
company: z.string().describe("User's company affiliation").nullable().optional(),
|
|
13
|
+
lastName: z.string().describe("User's last name").nullable().optional(),
|
|
14
|
+
firstName: z.string().describe("User's first name").nullable().optional(),
|
|
15
|
+
isStudioLabeler: z.boolean().describe("Indicates if user has labeler role in Studio").nullable().optional(),
|
|
16
|
+
disableRapidEmails: z.boolean().describe("Email notification preference setting").nullable().optional()
|
|
17
|
+
}).describe("Details of a team member.");
|
|
18
|
+
const scaleAiInviteTeamMember = action("SCALE_AI_INVITE_TEAM_MEMBER", {
|
|
19
|
+
slug: "scale_ai-invite-team-member",
|
|
20
|
+
name: "Invite Team Member",
|
|
21
|
+
description: "Tool to invite users by email to team with specified role. Use when you need to add new team members with roles like labeler, member, or manager.",
|
|
22
|
+
input: ScaleAiInviteTeamMemberInput,
|
|
23
|
+
output: z.object({ team_members: z.array(ScaleAiInviteTeamMember_TeamMemberSchema).describe("Array of team member objects") }).describe("Response containing invited team member information.")
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { scaleAiInviteTeamMember };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=invite-team-member.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invite-team-member.mjs","names":[],"sources":["../../src/actions/invite-team-member.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiInviteTeamMemberInput: z.ZodTypeAny = z.object({\n emails: z.array(z.string()).describe(\"Array of email addresses of teammates you want to invite.\"),\n team_role: z.string().describe(\"Role of invited teammate. Must be one of: 'labeler' (Studio only), 'member', or 'manager'.\"),\n}).describe(\"Request parameters for inviting team members.\");\nconst ScaleAiInviteTeamMember_TeamMemberSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"User's role (admin, member, labeler, or invited)\").nullable().optional(),\n email: z.string().describe(\"Team member's email address\"),\n expiry: z.string().describe(\"Invitation expiration timestamp (for invited status)\").nullable().optional(),\n company: z.string().describe(\"User's company affiliation\").nullable().optional(),\n lastName: z.string().describe(\"User's last name\").nullable().optional(),\n firstName: z.string().describe(\"User's first name\").nullable().optional(),\n isStudioLabeler: z.boolean().describe(\"Indicates if user has labeler role in Studio\").nullable().optional(),\n disableRapidEmails: z.boolean().describe(\"Email notification preference setting\").nullable().optional(),\n}).describe(\"Details of a team member.\");\nexport const ScaleAiInviteTeamMemberOutput: z.ZodTypeAny = z.object({\n team_members: z.array(ScaleAiInviteTeamMember_TeamMemberSchema).describe(\"Array of team member objects\"),\n}).describe(\"Response containing invited team member information.\");\n\nexport const scaleAiInviteTeamMember = action(\"SCALE_AI_INVITE_TEAM_MEMBER\", {\n slug: \"scale_ai-invite-team-member\",\n name: \"Invite Team Member\",\n description: \"Tool to invite users by email to team with specified role. Use when you need to add new team members with roles like labeler, member, or manager.\",\n input: ScaleAiInviteTeamMemberInput,\n output: ScaleAiInviteTeamMemberOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2DAA2D;CAChG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;AAC7H,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,2CAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,2BAA2B;AAKvC,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyD,EAAE,OAAO,EAClE,cAAc,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,8BAA8B,EACzG,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-batches.ts
|
|
4
|
+
const ScaleAiListBatchesInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Page size determining number of results per request.").optional(),
|
|
6
|
+
offset: zod.z.number().int().describe("Number of results to skip for pagination.").optional(),
|
|
7
|
+
status: zod.z.enum([
|
|
8
|
+
"staging",
|
|
9
|
+
"in_progress",
|
|
10
|
+
"completed"
|
|
11
|
+
]).describe("Filters by batch status. Valid values: 'staging', 'in_progress', or 'completed'.").optional(),
|
|
12
|
+
project: zod.z.string().describe("Filters batches by project name.").optional(),
|
|
13
|
+
detailed: zod.z.boolean().describe("Returns additional progress information about batches when set to true.").optional(),
|
|
14
|
+
end_time: zod.z.string().describe("Maximum value of created_at for returned batches in ISO 8601 format.").optional(),
|
|
15
|
+
start_time: zod.z.string().describe("Minimum value of created_at for returned batches in ISO 8601 format.").optional()
|
|
16
|
+
}).describe("Request model for listing batches with optional filters and pagination.");
|
|
17
|
+
const ScaleAiListBatches_BatchItemSchema = zod.z.object({
|
|
18
|
+
name: zod.z.string().describe("Unique batch identifier."),
|
|
19
|
+
status: zod.z.string().describe("Current batch status."),
|
|
20
|
+
project: zod.z.string().describe("Project name associated with the batch."),
|
|
21
|
+
callback: zod.z.string().describe("Callback URL or email address for task completion notifications.").nullable().optional(),
|
|
22
|
+
metadata: zod.z.object({}).describe("Custom metadata associated with batch.").nullable().optional(),
|
|
23
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp of batch creation."),
|
|
24
|
+
completed_at: zod.z.string().describe("ISO 8601 timestamp when batch completed (null if not completed).").nullable().optional()
|
|
25
|
+
}).describe("Model representing a single batch object.");
|
|
26
|
+
const ScaleAiListBatchesOutput = zod.z.object({ batches: zod.z.array(ScaleAiListBatches_BatchItemSchema).describe("List of batch objects in descending order by created_at timestamp.") }).describe("Response model for listing batches.");
|
|
27
|
+
const scaleAiListBatches = require_action.action("SCALE_AI_LIST_BATCHES", {
|
|
28
|
+
slug: "scale_ai-list-batches",
|
|
29
|
+
name: "List Batches",
|
|
30
|
+
description: "Tool to retrieve all batches in descending order by creation date. Use when you need to list batches with optional filtering by project, status, or time range. Supports pagination via limit and offset parameters.",
|
|
31
|
+
input: ScaleAiListBatchesInput,
|
|
32
|
+
output: ScaleAiListBatchesOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.scaleAiListBatches = scaleAiListBatches;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=list-batches.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-batches.cjs","names":["z","action"],"sources":["../../src/actions/list-batches.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiListBatchesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Page size determining number of results per request.\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination.\").optional(),\n status: z.enum([\"staging\", \"in_progress\", \"completed\"]).describe(\"Filters by batch status. Valid values: 'staging', 'in_progress', or 'completed'.\").optional(),\n project: z.string().describe(\"Filters batches by project name.\").optional(),\n detailed: z.boolean().describe(\"Returns additional progress information about batches when set to true.\").optional(),\n end_time: z.string().describe(\"Maximum value of created_at for returned batches in ISO 8601 format.\").optional(),\n start_time: z.string().describe(\"Minimum value of created_at for returned batches in ISO 8601 format.\").optional(),\n}).describe(\"Request model for listing batches with optional filters and pagination.\");\nconst ScaleAiListBatches_BatchItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique batch identifier.\"),\n status: z.string().describe(\"Current batch status.\"),\n project: z.string().describe(\"Project name associated with the batch.\"),\n callback: z.string().describe(\"Callback URL or email address for task completion notifications.\").nullable().optional(),\n metadata: z.object({}).describe(\"Custom metadata associated with batch.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of batch creation.\"),\n completed_at: z.string().describe(\"ISO 8601 timestamp when batch completed (null if not completed).\").nullable().optional(),\n}).describe(\"Model representing a single batch object.\");\nexport const ScaleAiListBatchesOutput: z.ZodTypeAny = z.object({\n batches: z.array(ScaleAiListBatches_BatchItemSchema).describe(\"List of batch objects in descending order by created_at timestamp.\"),\n}).describe(\"Response model for listing batches.\");\n\nexport const scaleAiListBatches = action(\"SCALE_AI_LIST_BATCHES\", {\n slug: \"scale_ai-list-batches\",\n name: \"List Batches\",\n description: \"Tool to retrieve all batches in descending order by creation date. Use when you need to list batches with optional filtering by project, status, or time range. Supports pagination via limit and offset parameters.\",\n input: ScaleAiListBatchesInput,\n output: ScaleAiListBatchesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAe;CAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC9J,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA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TypeAny;
|
|
6
|
+
declare const scaleAiListBatches: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scaleAiListBatches };
|
|
9
|
+
//# sourceMappingURL=list-batches.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-batches.d.cts","names":[],"sources":["../../src/actions/list-batches.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQ8C;AAAA,cAUzE,wBAAA,EAA0B,CAAA,CAAE,UAES;AAAA,cAErC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-batches.d.ts
|
|
4
|
+
declare const ScaleAiListBatchesInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScaleAiListBatchesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scaleAiListBatches: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scaleAiListBatches };
|
|
9
|
+
//# sourceMappingURL=list-batches.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-batches.d.mts","names":[],"sources":["../../src/actions/list-batches.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQ8C;AAAA,cAUzE,wBAAA,EAA0B,CAAA,CAAE,UAES;AAAA,cAErC,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-batches.ts
|
|
4
|
+
const ScaleAiListBatchesInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Page size determining number of results per request.").optional(),
|
|
6
|
+
offset: z.number().int().describe("Number of results to skip for pagination.").optional(),
|
|
7
|
+
status: z.enum([
|
|
8
|
+
"staging",
|
|
9
|
+
"in_progress",
|
|
10
|
+
"completed"
|
|
11
|
+
]).describe("Filters by batch status. Valid values: 'staging', 'in_progress', or 'completed'.").optional(),
|
|
12
|
+
project: z.string().describe("Filters batches by project name.").optional(),
|
|
13
|
+
detailed: z.boolean().describe("Returns additional progress information about batches when set to true.").optional(),
|
|
14
|
+
end_time: z.string().describe("Maximum value of created_at for returned batches in ISO 8601 format.").optional(),
|
|
15
|
+
start_time: z.string().describe("Minimum value of created_at for returned batches in ISO 8601 format.").optional()
|
|
16
|
+
}).describe("Request model for listing batches with optional filters and pagination.");
|
|
17
|
+
const ScaleAiListBatches_BatchItemSchema = z.object({
|
|
18
|
+
name: z.string().describe("Unique batch identifier."),
|
|
19
|
+
status: z.string().describe("Current batch status."),
|
|
20
|
+
project: z.string().describe("Project name associated with the batch."),
|
|
21
|
+
callback: z.string().describe("Callback URL or email address for task completion notifications.").nullable().optional(),
|
|
22
|
+
metadata: z.object({}).describe("Custom metadata associated with batch.").nullable().optional(),
|
|
23
|
+
created_at: z.string().describe("ISO 8601 timestamp of batch creation."),
|
|
24
|
+
completed_at: z.string().describe("ISO 8601 timestamp when batch completed (null if not completed).").nullable().optional()
|
|
25
|
+
}).describe("Model representing a single batch object.");
|
|
26
|
+
const scaleAiListBatches = action("SCALE_AI_LIST_BATCHES", {
|
|
27
|
+
slug: "scale_ai-list-batches",
|
|
28
|
+
name: "List Batches",
|
|
29
|
+
description: "Tool to retrieve all batches in descending order by creation date. Use when you need to list batches with optional filtering by project, status, or time range. Supports pagination via limit and offset parameters.",
|
|
30
|
+
input: ScaleAiListBatchesInput,
|
|
31
|
+
output: z.object({ batches: z.array(ScaleAiListBatches_BatchItemSchema).describe("List of batch objects in descending order by created_at timestamp.") }).describe("Response model for listing batches.")
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { scaleAiListBatches };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=list-batches.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-batches.mjs","names":[],"sources":["../../src/actions/list-batches.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiListBatchesInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Page size determining number of results per request.\").optional(),\n offset: z.number().int().describe(\"Number of results to skip for pagination.\").optional(),\n status: z.enum([\"staging\", \"in_progress\", \"completed\"]).describe(\"Filters by batch status. Valid values: 'staging', 'in_progress', or 'completed'.\").optional(),\n project: z.string().describe(\"Filters batches by project name.\").optional(),\n detailed: z.boolean().describe(\"Returns additional progress information about batches when set to true.\").optional(),\n end_time: z.string().describe(\"Maximum value of created_at for returned batches in ISO 8601 format.\").optional(),\n start_time: z.string().describe(\"Minimum value of created_at for returned batches in ISO 8601 format.\").optional(),\n}).describe(\"Request model for listing batches with optional filters and pagination.\");\nconst ScaleAiListBatches_BatchItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique batch identifier.\"),\n status: z.string().describe(\"Current batch status.\"),\n project: z.string().describe(\"Project name associated with the batch.\"),\n callback: z.string().describe(\"Callback URL or email address for task completion notifications.\").nullable().optional(),\n metadata: z.object({}).describe(\"Custom metadata associated with batch.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of batch creation.\"),\n completed_at: z.string().describe(\"ISO 8601 timestamp when batch completed (null if not completed).\").nullable().optional(),\n}).describe(\"Model representing a single batch object.\");\nexport const ScaleAiListBatchesOutput: z.ZodTypeAny = z.object({\n batches: z.array(ScaleAiListBatches_BatchItemSchema).describe(\"List of batch objects in descending order by created_at timestamp.\"),\n}).describe(\"Response model for listing batches.\");\n\nexport const scaleAiListBatches = action(\"SCALE_AI_LIST_BATCHES\", {\n slug: \"scale_ai-list-batches\",\n name: \"List Batches\",\n description: \"Tool to retrieve all batches in descending order by creation date. Use when you need to list batches with optional filtering by project, status, or time range. Supports pagination via limit and offset parameters.\",\n input: ScaleAiListBatchesInput,\n output: ScaleAiListBatchesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,KAAK;EAAC;EAAW;EAAe;CAAW,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC9J,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC/G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACnD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACvE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAKvD,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,SAAS,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,oEAAoE,EACpI,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-projects.ts
|
|
4
|
+
const ScaleAiListProjectsInput = zod.z.object({
|
|
5
|
+
limit: zod.z.number().int().describe("Maximum number of projects to return per page.").optional(),
|
|
6
|
+
offset: zod.z.number().int().describe("Number of projects to skip for pagination.").optional(),
|
|
7
|
+
archived: zod.z.boolean().describe("Filter to display only archived or unarchived projects. If not provided, all projects are returned.").optional()
|
|
8
|
+
}).describe("Request model for listing projects with optional archived filtering and pagination.");
|
|
9
|
+
const ScaleAiListProjects_ParamHistoryItemSchema = zod.z.object({
|
|
10
|
+
version: zod.z.number().int().describe("Version number identifier for this parameter set."),
|
|
11
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when this parameter version was created."),
|
|
12
|
+
instruction: zod.z.string().describe("Task instructions for this parameter version.").nullable().optional()
|
|
13
|
+
}).describe("Schema for a single parameter history version entry.");
|
|
14
|
+
const ScaleAiListProjects_ProjectItemSchema = zod.z.object({
|
|
15
|
+
name: zod.z.string().describe("Unique project identifier name."),
|
|
16
|
+
type: zod.z.string().describe("Task type classification (e.g., 'imageannotation', 'textcollection')."),
|
|
17
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the project was created."),
|
|
18
|
+
param_history: zod.z.array(ScaleAiListProjects_ParamHistoryItemSchema).describe("Historical record of project parameter versions.")
|
|
19
|
+
}).describe("Schema for a single project object.");
|
|
20
|
+
const ScaleAiListProjectsOutput = zod.z.object({
|
|
21
|
+
limit: zod.z.number().int().describe("Number of results per page.").nullable().optional(),
|
|
22
|
+
total: zod.z.number().int().describe("Total number of projects matching the query.").nullable().optional(),
|
|
23
|
+
offset: zod.z.number().int().describe("Number of results skipped.").nullable().optional(),
|
|
24
|
+
has_more: zod.z.boolean().describe("Whether more results are available.").nullable().optional(),
|
|
25
|
+
projects: zod.z.array(ScaleAiListProjects_ProjectItemSchema).describe("List of projects in the Scale AI account.")
|
|
26
|
+
}).describe("Response model for listing projects. Returns an array of project objects.");
|
|
27
|
+
const scaleAiListProjects = require_action.action("SCALE_AI_LIST_PROJECTS", {
|
|
28
|
+
slug: "scale_ai-list-projects",
|
|
29
|
+
name: "List Projects",
|
|
30
|
+
description: "Tool to retrieve information for all projects in the Scale AI account with optional archived filtering. Use when you need to browse or manage project metadata. Returns project details including type, name, parameter history, and creation timestamps.",
|
|
31
|
+
input: ScaleAiListProjectsInput,
|
|
32
|
+
output: ScaleAiListProjectsOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.scaleAiListProjects = scaleAiListProjects;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=list-projects.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-projects.cjs","names":["z","action"],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiListProjectsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of projects to return per page.\").optional(),\n offset: z.number().int().describe(\"Number of projects to skip for pagination.\").optional(),\n archived: z.boolean().describe(\"Filter to display only archived or unarchived projects. If not provided, all projects are returned.\").optional(),\n}).describe(\"Request model for listing projects with optional archived filtering and pagination.\");\nconst ScaleAiListProjects_ParamHistoryItemSchema: z.ZodTypeAny = z.object({\n version: z.number().int().describe(\"Version number identifier for this parameter set.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when this parameter version was created.\"),\n instruction: z.string().describe(\"Task instructions for this parameter version.\").nullable().optional(),\n}).describe(\"Schema for a single parameter history version entry.\");\nconst ScaleAiListProjects_ProjectItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique project identifier name.\"),\n type: z.string().describe(\"Task type classification (e.g., 'imageannotation', 'textcollection').\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the project was created.\"),\n param_history: z.array(ScaleAiListProjects_ParamHistoryItemSchema).describe(\"Historical record of project parameter versions.\"),\n}).describe(\"Schema for a single project object.\");\nexport const ScaleAiListProjectsOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of results per page.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of projects matching the query.\").nullable().optional(),\n offset: z.number().int().describe(\"Number of results skipped.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether more results are available.\").nullable().optional(),\n projects: z.array(ScaleAiListProjects_ProjectItemSchema).describe(\"List of projects in the Scale AI account.\"),\n}).describe(\"Response model for listing projects. Returns an array of project objects.\");\n\nexport const scaleAiListProjects = action(\"SCALE_AI_LIST_PROJECTS\", {\n slug: \"scale_ai-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve information for all projects in the Scale AI account with optional archived filtering. Use when you need to browse or manage project metadata. Returns project details including type, name, parameter history, and creation timestamps.\",\n input: ScaleAiListProjectsInput,\n output: ScaleAiListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAA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,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,UAAUA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C;AAC/G,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAEvF,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-projects.d.ts
|
|
4
|
+
declare const ScaleAiListProjectsInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScaleAiListProjectsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scaleAiListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scaleAiListProjects };
|
|
9
|
+
//# sourceMappingURL=list-projects.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-projects.d.cts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAIyD;AAAA,cAYrF,yBAAA,EAA2B,CAAA,CAAE,UAM8C;AAAA,cAE3E,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-projects.d.ts
|
|
4
|
+
declare const ScaleAiListProjectsInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScaleAiListProjectsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scaleAiListProjects: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scaleAiListProjects };
|
|
9
|
+
//# sourceMappingURL=list-projects.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-projects.d.mts","names":[],"sources":["../../src/actions/list-projects.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAIyD;AAAA,cAYrF,yBAAA,EAA2B,CAAA,CAAE,UAM8C;AAAA,cAE3E,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-projects.ts
|
|
4
|
+
const ScaleAiListProjectsInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of projects to return per page.").optional(),
|
|
6
|
+
offset: z.number().int().describe("Number of projects to skip for pagination.").optional(),
|
|
7
|
+
archived: z.boolean().describe("Filter to display only archived or unarchived projects. If not provided, all projects are returned.").optional()
|
|
8
|
+
}).describe("Request model for listing projects with optional archived filtering and pagination.");
|
|
9
|
+
const ScaleAiListProjects_ParamHistoryItemSchema = z.object({
|
|
10
|
+
version: z.number().int().describe("Version number identifier for this parameter set."),
|
|
11
|
+
created_at: z.string().describe("ISO 8601 timestamp when this parameter version was created."),
|
|
12
|
+
instruction: z.string().describe("Task instructions for this parameter version.").nullable().optional()
|
|
13
|
+
}).describe("Schema for a single parameter history version entry.");
|
|
14
|
+
const ScaleAiListProjects_ProjectItemSchema = z.object({
|
|
15
|
+
name: z.string().describe("Unique project identifier name."),
|
|
16
|
+
type: z.string().describe("Task type classification (e.g., 'imageannotation', 'textcollection')."),
|
|
17
|
+
created_at: z.string().describe("ISO 8601 timestamp when the project was created."),
|
|
18
|
+
param_history: z.array(ScaleAiListProjects_ParamHistoryItemSchema).describe("Historical record of project parameter versions.")
|
|
19
|
+
}).describe("Schema for a single project object.");
|
|
20
|
+
const scaleAiListProjects = action("SCALE_AI_LIST_PROJECTS", {
|
|
21
|
+
slug: "scale_ai-list-projects",
|
|
22
|
+
name: "List Projects",
|
|
23
|
+
description: "Tool to retrieve information for all projects in the Scale AI account with optional archived filtering. Use when you need to browse or manage project metadata. Returns project details including type, name, parameter history, and creation timestamps.",
|
|
24
|
+
input: ScaleAiListProjectsInput,
|
|
25
|
+
output: z.object({
|
|
26
|
+
limit: z.number().int().describe("Number of results per page.").nullable().optional(),
|
|
27
|
+
total: z.number().int().describe("Total number of projects matching the query.").nullable().optional(),
|
|
28
|
+
offset: z.number().int().describe("Number of results skipped.").nullable().optional(),
|
|
29
|
+
has_more: z.boolean().describe("Whether more results are available.").nullable().optional(),
|
|
30
|
+
projects: z.array(ScaleAiListProjects_ProjectItemSchema).describe("List of projects in the Scale AI account.")
|
|
31
|
+
}).describe("Response model for listing projects. Returns an array of project objects.")
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { scaleAiListProjects };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=list-projects.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-projects.mjs","names":[],"sources":["../../src/actions/list-projects.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiListProjectsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of projects to return per page.\").optional(),\n offset: z.number().int().describe(\"Number of projects to skip for pagination.\").optional(),\n archived: z.boolean().describe(\"Filter to display only archived or unarchived projects. If not provided, all projects are returned.\").optional(),\n}).describe(\"Request model for listing projects with optional archived filtering and pagination.\");\nconst ScaleAiListProjects_ParamHistoryItemSchema: z.ZodTypeAny = z.object({\n version: z.number().int().describe(\"Version number identifier for this parameter set.\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when this parameter version was created.\"),\n instruction: z.string().describe(\"Task instructions for this parameter version.\").nullable().optional(),\n}).describe(\"Schema for a single parameter history version entry.\");\nconst ScaleAiListProjects_ProjectItemSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Unique project identifier name.\"),\n type: z.string().describe(\"Task type classification (e.g., 'imageannotation', 'textcollection').\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the project was created.\"),\n param_history: z.array(ScaleAiListProjects_ParamHistoryItemSchema).describe(\"Historical record of project parameter versions.\"),\n}).describe(\"Schema for a single project object.\");\nexport const ScaleAiListProjectsOutput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Number of results per page.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of projects matching the query.\").nullable().optional(),\n offset: z.number().int().describe(\"Number of results skipped.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether more results are available.\").nullable().optional(),\n projects: z.array(ScaleAiListProjects_ProjectItemSchema).describe(\"List of projects in the Scale AI account.\"),\n}).describe(\"Response model for listing projects. Returns an array of project objects.\");\n\nexport const scaleAiListProjects = action(\"SCALE_AI_LIST_PROJECTS\", {\n slug: \"scale_ai-list-projects\",\n name: \"List Projects\",\n description: \"Tool to retrieve information for all projects in the Scale AI account with optional archived filtering. Use when you need to browse or manage project metadata. Returns project details including type, name, parameter history, and creation timestamps.\",\n input: ScaleAiListProjectsInput,\n output: ScaleAiListProjectsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,qFAAqF;AACjG,MAAM,6CAA2D,EA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("zod");
|
|
3
|
+
//#region src/actions/list-tasks.ts
|
|
4
|
+
const ScaleAiListTasksInput = zod.z.object({
|
|
5
|
+
tags: zod.z.array(zod.z.string()).describe("Filter by task tags. Only tasks with these tags will be returned.").optional(),
|
|
6
|
+
type: zod.z.string().describe("Filter by task type (e.g., 'imageannotation', 'textcollection').").optional(),
|
|
7
|
+
batch: zod.z.string().describe("Filter by batch name. Only tasks belonging to this batch will be returned.").optional(),
|
|
8
|
+
limit: zod.z.string().describe("Results per page (1-100, default: 100). Controls how many tasks are returned in a single request.").optional(),
|
|
9
|
+
status: zod.z.array(zod.z.string()).describe("Filter by task status. Can include multiple values from: 'completed', 'pending', 'canceled'.").optional(),
|
|
10
|
+
project: zod.z.string().describe("Filter by project name. Only tasks belonging to this project will be returned.").optional(),
|
|
11
|
+
end_time: zod.z.string().describe("Maximum created_at timestamp in ISO 8601 format (e.g., '2024-12-31T23:59:59Z'). Only tasks created on or before this time will be returned.").optional(),
|
|
12
|
+
unique_id: zod.z.array(zod.z.string()).describe("Filter by task unique identifiers. Can include multiple unique IDs to retrieve specific tasks.").optional(),
|
|
13
|
+
next_token: zod.z.string().describe("Pagination token for retrieving subsequent pages. Use the next_token value from a previous response to get the next page of results.").optional(),
|
|
14
|
+
start_time: zod.z.string().describe("Minimum created_at timestamp in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Only tasks created on or after this time will be returned.").optional(),
|
|
15
|
+
updated_after: zod.z.string().describe("Minimum updated_at timestamp in ISO 8601 format. Only tasks updated on or after this time will be returned.").optional(),
|
|
16
|
+
updated_before: zod.z.string().describe("Maximum updated_at timestamp in ISO 8601 format. Only tasks updated on or before this time will be returned.").optional(),
|
|
17
|
+
completed_after: zod.z.string().describe("Minimum completed_at timestamp in ISO 8601 format. Only tasks completed on or after this time will be returned.").optional(),
|
|
18
|
+
completed_before: zod.z.string().describe("Maximum completed_at timestamp in ISO 8601 format. Only tasks completed on or before this time will be returned.").optional(),
|
|
19
|
+
customer_review_status: zod.z.array(zod.z.string()).describe("Filter by audit result status. Can include multiple values from: 'accepted', 'fixed', 'commented', 'rejected'.").optional(),
|
|
20
|
+
include_attachment_url: zod.z.boolean().describe("Include presigned attachment URLs in the response. Set to true if you need to access task attachments directly.").optional()
|
|
21
|
+
}).describe("Request model for listing tasks with filtering and pagination options.");
|
|
22
|
+
const ScaleAiListTasks_TaskObjectSchema = zod.z.object({
|
|
23
|
+
tags: zod.z.array(zod.z.string()).describe("Array of string tags.").nullable().optional(),
|
|
24
|
+
type: zod.z.string().describe("Task type.").nullable().optional(),
|
|
25
|
+
params: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Task parameters.").nullable().optional(),
|
|
26
|
+
status: zod.z.string().describe("Current task status.").nullable().optional(),
|
|
27
|
+
task_id: zod.z.string().describe("Unique task identifier.").nullable().optional(),
|
|
28
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Task metadata.").nullable().optional(),
|
|
29
|
+
unique_id: zod.z.string().describe("User-provided unique identifier.").nullable().optional(),
|
|
30
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when task was created.").nullable().optional(),
|
|
31
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when task was last updated.").nullable().optional(),
|
|
32
|
+
instruction: zod.z.string().describe("Task instructions.").nullable().optional(),
|
|
33
|
+
callback_url: zod.z.string().describe("URL for task callbacks.").nullable().optional(),
|
|
34
|
+
completed_at: zod.z.string().describe("ISO 8601 timestamp when task was completed.").nullable().optional()
|
|
35
|
+
}).describe("Represents a single task object.");
|
|
36
|
+
const ScaleAiListTasksOutput = zod.z.object({
|
|
37
|
+
docs: zod.z.array(ScaleAiListTasks_TaskObjectSchema).describe("Array of task objects."),
|
|
38
|
+
limit: zod.z.number().int().describe("Number of results per page.").nullable().optional(),
|
|
39
|
+
total: zod.z.number().int().describe("Total number of tasks matching the query.").nullable().optional(),
|
|
40
|
+
has_more: zod.z.boolean().describe("Whether more results are available.").nullable().optional(),
|
|
41
|
+
next_token: zod.z.string().describe("Token for retrieving the next page of results.").nullable().optional()
|
|
42
|
+
}).describe("Response model for listing tasks.");
|
|
43
|
+
const scaleAiListTasks = require_action.action("SCALE_AI_LIST_TASKS", {
|
|
44
|
+
slug: "scale_ai-list-tasks",
|
|
45
|
+
name: "List Tasks",
|
|
46
|
+
description: "Tool to retrieve a paginated list of tasks in descending order by creation time. Use when you need to browse tasks with optional filtering by status, type, project, batch, tags, timestamps, or unique identifiers. Supports pagination via limit and next_token.",
|
|
47
|
+
input: ScaleAiListTasksInput,
|
|
48
|
+
output: ScaleAiListTasksOutput
|
|
49
|
+
});
|
|
50
|
+
//#endregion
|
|
51
|
+
exports.scaleAiListTasks = scaleAiListTasks;
|
|
52
|
+
|
|
53
|
+
//# sourceMappingURL=list-tasks.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-tasks.cjs","names":["z","action"],"sources":["../../src/actions/list-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiListTasksInput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Filter by task tags. Only tasks with these tags will be returned.\").optional(),\n type: z.string().describe(\"Filter by task type (e.g., 'imageannotation', 'textcollection').\").optional(),\n batch: z.string().describe(\"Filter by batch name. Only tasks belonging to this batch will be returned.\").optional(),\n limit: z.string().describe(\"Results per page (1-100, default: 100). Controls how many tasks are returned in a single request.\").optional(),\n status: z.array(z.string()).describe(\"Filter by task status. Can include multiple values from: 'completed', 'pending', 'canceled'.\").optional(),\n project: z.string().describe(\"Filter by project name. Only tasks belonging to this project will be returned.\").optional(),\n end_time: z.string().describe(\"Maximum created_at timestamp in ISO 8601 format (e.g., '2024-12-31T23:59:59Z'). Only tasks created on or before this time will be returned.\").optional(),\n unique_id: z.array(z.string()).describe(\"Filter by task unique identifiers. Can include multiple unique IDs to retrieve specific tasks.\").optional(),\n next_token: z.string().describe(\"Pagination token for retrieving subsequent pages. Use the next_token value from a previous response to get the next page of results.\").optional(),\n start_time: z.string().describe(\"Minimum created_at timestamp in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Only tasks created on or after this time will be returned.\").optional(),\n updated_after: z.string().describe(\"Minimum updated_at timestamp in ISO 8601 format. Only tasks updated on or after this time will be returned.\").optional(),\n updated_before: z.string().describe(\"Maximum updated_at timestamp in ISO 8601 format. Only tasks updated on or before this time will be returned.\").optional(),\n completed_after: z.string().describe(\"Minimum completed_at timestamp in ISO 8601 format. Only tasks completed on or after this time will be returned.\").optional(),\n completed_before: z.string().describe(\"Maximum completed_at timestamp in ISO 8601 format. Only tasks completed on or before this time will be returned.\").optional(),\n customer_review_status: z.array(z.string()).describe(\"Filter by audit result status. Can include multiple values from: 'accepted', 'fixed', 'commented', 'rejected'.\").optional(),\n include_attachment_url: z.boolean().describe(\"Include presigned attachment URLs in the response. Set to true if you need to access task attachments directly.\").optional(),\n}).describe(\"Request model for listing tasks with filtering and pagination options.\");\nconst ScaleAiListTasks_TaskObjectSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Array of string tags.\").nullable().optional(),\n type: z.string().describe(\"Task type.\").nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Task parameters.\").nullable().optional(),\n status: z.string().describe(\"Current task status.\").nullable().optional(),\n task_id: z.string().describe(\"Unique task identifier.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Task metadata.\").nullable().optional(),\n unique_id: z.string().describe(\"User-provided unique identifier.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when task was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when task was last updated.\").nullable().optional(),\n instruction: z.string().describe(\"Task instructions.\").nullable().optional(),\n callback_url: z.string().describe(\"URL for task callbacks.\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when task was completed.\").nullable().optional(),\n}).describe(\"Represents a single task object.\");\nexport const ScaleAiListTasksOutput: z.ZodTypeAny = z.object({\n docs: z.array(ScaleAiListTasks_TaskObjectSchema).describe(\"Array of task objects.\"),\n limit: z.number().int().describe(\"Number of results per page.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of tasks matching the query.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether more results are available.\").nullable().optional(),\n next_token: z.string().describe(\"Token for retrieving the next page of results.\").nullable().optional(),\n}).describe(\"Response model for listing tasks.\");\n\nexport const scaleAiListTasks = action(\"SCALE_AI_LIST_TASKS\", {\n slug: \"scale_ai-list-tasks\",\n name: \"List Tasks\",\n description: \"Tool to retrieve a paginated list of tasks in descending order by creation time. Use when you need to browse tasks with optional filtering by status, type, project, batch, tags, timestamps, or unique identifiers. Supports pagination via limit and next_token.\",\n input: ScaleAiListTasksInput,\n output: ScaleAiListTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAClH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACzI,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC9I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I,CAAC,CAAC,SAAS;CACtL,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGA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AAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAE/C,MAAa,mBAAmBC,eAAAA,OAAO,uBAAuB;CAC5D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-tasks.d.ts
|
|
4
|
+
declare const ScaleAiListTasksInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScaleAiListTasksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scaleAiListTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scaleAiListTasks };
|
|
9
|
+
//# sourceMappingURL=list-tasks.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-tasks.d.cts","names":[],"sources":["../../src/actions/list-tasks.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAiB+C;AAAA,cAexE,sBAAA,EAAwB,CAAA,CAAE,UAMS;AAAA,cAEnC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-tasks.d.ts
|
|
4
|
+
declare const ScaleAiListTasksInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScaleAiListTasksOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scaleAiListTasks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scaleAiListTasks };
|
|
9
|
+
//# sourceMappingURL=list-tasks.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-tasks.d.mts","names":[],"sources":["../../src/actions/list-tasks.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAiB+C;AAAA,cAexE,sBAAA,EAAwB,CAAA,CAAE,UAMS;AAAA,cAEnC,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-tasks.ts
|
|
4
|
+
const ScaleAiListTasksInput = z.object({
|
|
5
|
+
tags: z.array(z.string()).describe("Filter by task tags. Only tasks with these tags will be returned.").optional(),
|
|
6
|
+
type: z.string().describe("Filter by task type (e.g., 'imageannotation', 'textcollection').").optional(),
|
|
7
|
+
batch: z.string().describe("Filter by batch name. Only tasks belonging to this batch will be returned.").optional(),
|
|
8
|
+
limit: z.string().describe("Results per page (1-100, default: 100). Controls how many tasks are returned in a single request.").optional(),
|
|
9
|
+
status: z.array(z.string()).describe("Filter by task status. Can include multiple values from: 'completed', 'pending', 'canceled'.").optional(),
|
|
10
|
+
project: z.string().describe("Filter by project name. Only tasks belonging to this project will be returned.").optional(),
|
|
11
|
+
end_time: z.string().describe("Maximum created_at timestamp in ISO 8601 format (e.g., '2024-12-31T23:59:59Z'). Only tasks created on or before this time will be returned.").optional(),
|
|
12
|
+
unique_id: z.array(z.string()).describe("Filter by task unique identifiers. Can include multiple unique IDs to retrieve specific tasks.").optional(),
|
|
13
|
+
next_token: z.string().describe("Pagination token for retrieving subsequent pages. Use the next_token value from a previous response to get the next page of results.").optional(),
|
|
14
|
+
start_time: z.string().describe("Minimum created_at timestamp in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Only tasks created on or after this time will be returned.").optional(),
|
|
15
|
+
updated_after: z.string().describe("Minimum updated_at timestamp in ISO 8601 format. Only tasks updated on or after this time will be returned.").optional(),
|
|
16
|
+
updated_before: z.string().describe("Maximum updated_at timestamp in ISO 8601 format. Only tasks updated on or before this time will be returned.").optional(),
|
|
17
|
+
completed_after: z.string().describe("Minimum completed_at timestamp in ISO 8601 format. Only tasks completed on or after this time will be returned.").optional(),
|
|
18
|
+
completed_before: z.string().describe("Maximum completed_at timestamp in ISO 8601 format. Only tasks completed on or before this time will be returned.").optional(),
|
|
19
|
+
customer_review_status: z.array(z.string()).describe("Filter by audit result status. Can include multiple values from: 'accepted', 'fixed', 'commented', 'rejected'.").optional(),
|
|
20
|
+
include_attachment_url: z.boolean().describe("Include presigned attachment URLs in the response. Set to true if you need to access task attachments directly.").optional()
|
|
21
|
+
}).describe("Request model for listing tasks with filtering and pagination options.");
|
|
22
|
+
const ScaleAiListTasks_TaskObjectSchema = z.object({
|
|
23
|
+
tags: z.array(z.string()).describe("Array of string tags.").nullable().optional(),
|
|
24
|
+
type: z.string().describe("Task type.").nullable().optional(),
|
|
25
|
+
params: z.record(z.string(), z.unknown()).describe("Task parameters.").nullable().optional(),
|
|
26
|
+
status: z.string().describe("Current task status.").nullable().optional(),
|
|
27
|
+
task_id: z.string().describe("Unique task identifier.").nullable().optional(),
|
|
28
|
+
metadata: z.record(z.string(), z.unknown()).describe("Task metadata.").nullable().optional(),
|
|
29
|
+
unique_id: z.string().describe("User-provided unique identifier.").nullable().optional(),
|
|
30
|
+
created_at: z.string().describe("ISO 8601 timestamp when task was created.").nullable().optional(),
|
|
31
|
+
updated_at: z.string().describe("ISO 8601 timestamp when task was last updated.").nullable().optional(),
|
|
32
|
+
instruction: z.string().describe("Task instructions.").nullable().optional(),
|
|
33
|
+
callback_url: z.string().describe("URL for task callbacks.").nullable().optional(),
|
|
34
|
+
completed_at: z.string().describe("ISO 8601 timestamp when task was completed.").nullable().optional()
|
|
35
|
+
}).describe("Represents a single task object.");
|
|
36
|
+
const scaleAiListTasks = action("SCALE_AI_LIST_TASKS", {
|
|
37
|
+
slug: "scale_ai-list-tasks",
|
|
38
|
+
name: "List Tasks",
|
|
39
|
+
description: "Tool to retrieve a paginated list of tasks in descending order by creation time. Use when you need to browse tasks with optional filtering by status, type, project, batch, tags, timestamps, or unique identifiers. Supports pagination via limit and next_token.",
|
|
40
|
+
input: ScaleAiListTasksInput,
|
|
41
|
+
output: z.object({
|
|
42
|
+
docs: z.array(ScaleAiListTasks_TaskObjectSchema).describe("Array of task objects."),
|
|
43
|
+
limit: z.number().int().describe("Number of results per page.").nullable().optional(),
|
|
44
|
+
total: z.number().int().describe("Total number of tasks matching the query.").nullable().optional(),
|
|
45
|
+
has_more: z.boolean().describe("Whether more results are available.").nullable().optional(),
|
|
46
|
+
next_token: z.string().describe("Token for retrieving the next page of results.").nullable().optional()
|
|
47
|
+
}).describe("Response model for listing tasks.")
|
|
48
|
+
});
|
|
49
|
+
//#endregion
|
|
50
|
+
export { scaleAiListTasks };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=list-tasks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-tasks.mjs","names":[],"sources":["../../src/actions/list-tasks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiListTasksInput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Filter by task tags. Only tasks with these tags will be returned.\").optional(),\n type: z.string().describe(\"Filter by task type (e.g., 'imageannotation', 'textcollection').\").optional(),\n batch: z.string().describe(\"Filter by batch name. Only tasks belonging to this batch will be returned.\").optional(),\n limit: z.string().describe(\"Results per page (1-100, default: 100). Controls how many tasks are returned in a single request.\").optional(),\n status: z.array(z.string()).describe(\"Filter by task status. Can include multiple values from: 'completed', 'pending', 'canceled'.\").optional(),\n project: z.string().describe(\"Filter by project name. Only tasks belonging to this project will be returned.\").optional(),\n end_time: z.string().describe(\"Maximum created_at timestamp in ISO 8601 format (e.g., '2024-12-31T23:59:59Z'). Only tasks created on or before this time will be returned.\").optional(),\n unique_id: z.array(z.string()).describe(\"Filter by task unique identifiers. Can include multiple unique IDs to retrieve specific tasks.\").optional(),\n next_token: z.string().describe(\"Pagination token for retrieving subsequent pages. Use the next_token value from a previous response to get the next page of results.\").optional(),\n start_time: z.string().describe(\"Minimum created_at timestamp in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Only tasks created on or after this time will be returned.\").optional(),\n updated_after: z.string().describe(\"Minimum updated_at timestamp in ISO 8601 format. Only tasks updated on or after this time will be returned.\").optional(),\n updated_before: z.string().describe(\"Maximum updated_at timestamp in ISO 8601 format. Only tasks updated on or before this time will be returned.\").optional(),\n completed_after: z.string().describe(\"Minimum completed_at timestamp in ISO 8601 format. Only tasks completed on or after this time will be returned.\").optional(),\n completed_before: z.string().describe(\"Maximum completed_at timestamp in ISO 8601 format. Only tasks completed on or before this time will be returned.\").optional(),\n customer_review_status: z.array(z.string()).describe(\"Filter by audit result status. Can include multiple values from: 'accepted', 'fixed', 'commented', 'rejected'.\").optional(),\n include_attachment_url: z.boolean().describe(\"Include presigned attachment URLs in the response. Set to true if you need to access task attachments directly.\").optional(),\n}).describe(\"Request model for listing tasks with filtering and pagination options.\");\nconst ScaleAiListTasks_TaskObjectSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Array of string tags.\").nullable().optional(),\n type: z.string().describe(\"Task type.\").nullable().optional(),\n params: z.record(z.string(), z.unknown()).describe(\"Task parameters.\").nullable().optional(),\n status: z.string().describe(\"Current task status.\").nullable().optional(),\n task_id: z.string().describe(\"Unique task identifier.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Task metadata.\").nullable().optional(),\n unique_id: z.string().describe(\"User-provided unique identifier.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when task was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when task was last updated.\").nullable().optional(),\n instruction: z.string().describe(\"Task instructions.\").nullable().optional(),\n callback_url: z.string().describe(\"URL for task callbacks.\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when task was completed.\").nullable().optional(),\n}).describe(\"Represents a single task object.\");\nexport const ScaleAiListTasksOutput: z.ZodTypeAny = z.object({\n docs: z.array(ScaleAiListTasks_TaskObjectSchema).describe(\"Array of task objects.\"),\n limit: z.number().int().describe(\"Number of results per page.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of tasks matching the query.\").nullable().optional(),\n has_more: z.boolean().describe(\"Whether more results are available.\").nullable().optional(),\n next_token: z.string().describe(\"Token for retrieving the next page of results.\").nullable().optional(),\n}).describe(\"Response model for listing tasks.\");\n\nexport const scaleAiListTasks = action(\"SCALE_AI_LIST_TASKS\", {\n slug: \"scale_ai-list-tasks\",\n name: \"List Tasks\",\n description: \"Tool to retrieve a paginated list of tasks in descending order by creation time. Use when you need to browse tasks with optional filtering by status, type, project, batch, tags, timestamps, or unique identifiers. Supports pagination via limit and next_token.\",\n input: ScaleAiListTasksInput,\n output: ScaleAiListTasksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACjH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAClH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACzI,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;C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CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,mCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/post-v1-task-send-callback.ts
|
|
4
|
+
const ScaleAiPostV1TaskSendCallbackInput = zod.z.object({ task_id: zod.z.string().describe("The unique identifier for the task whose callback should be resent") }).describe("Request model for re-sending a callback for a completed or errored task.");
|
|
5
|
+
const ScaleAiPostV1TaskSendCallbackOutput = zod.z.object({
|
|
6
|
+
task: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Full task object for reference").nullable().optional(),
|
|
7
|
+
status: zod.z.string().describe("Task status (typically 'completed' or 'error')").nullable().optional(),
|
|
8
|
+
message: zod.z.string().describe("Success message from the API (e.g., 'OK')").nullable().optional(),
|
|
9
|
+
task_id: zod.z.string().describe("Unique task identifier").nullable().optional(),
|
|
10
|
+
response: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The task's result data").nullable().optional()
|
|
11
|
+
}).describe("Response model containing the callback payload that was sent to the callback_url.");
|
|
12
|
+
const scaleAiPostV1TaskSendCallback = require_action.action("SCALE_AI_POST_V1_TASK_SEND_CALLBACK", {
|
|
13
|
+
slug: "scale_ai-post-v1-task-send-callback",
|
|
14
|
+
name: "Re-send Task Callback",
|
|
15
|
+
description: "Tool to re-send a callback for a completed or errored task to the callback_url. Use when you need to manually trigger a callback resend for a task that has already been processed.",
|
|
16
|
+
input: ScaleAiPostV1TaskSendCallbackInput,
|
|
17
|
+
output: ScaleAiPostV1TaskSendCallbackOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.scaleAiPostV1TaskSendCallback = scaleAiPostV1TaskSendCallback;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=post-v1-task-send-callback.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-v1-task-send-callback.cjs","names":["z","action"],"sources":["../../src/actions/post-v1-task-send-callback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiPostV1TaskSendCallbackInput: z.ZodTypeAny = z.object({\n task_id: z.string().describe(\"The unique identifier for the task whose callback should be resent\"),\n}).describe(\"Request model for re-sending a callback for a completed or errored task.\");\nexport const ScaleAiPostV1TaskSendCallbackOutput: z.ZodTypeAny = z.object({\n task: z.record(z.string(), z.unknown()).describe(\"Full task object for reference\").nullable().optional(),\n status: z.string().describe(\"Task status (typically 'completed' or 'error')\").nullable().optional(),\n message: z.string().describe(\"Success message from the API (e.g., 'OK')\").nullable().optional(),\n task_id: z.string().describe(\"Unique task identifier\").nullable().optional(),\n response: z.record(z.string(), z.unknown()).describe(\"The task's result data\").nullable().optional(),\n}).describe(\"Response model containing the callback payload that was sent to the callback_url.\");\n\nexport const scaleAiPostV1TaskSendCallback = action(\"SCALE_AI_POST_V1_TASK_SEND_CALLBACK\", {\n slug: \"scale_ai-post-v1-task-send-callback\",\n name: \"Re-send Task Callback\",\n description: \"Tool to re-send a callback for a completed or errored task to the callback_url. Use when you need to manually trigger a callback resend for a task that has already been processed.\",\n input: ScaleAiPostV1TaskSendCallbackInput,\n output: ScaleAiPostV1TaskSendCallbackOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,EACnG,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAE/F,MAAa,gCAAgCC,eAAAA,OAAO,uCAAuC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/post-v1-task-send-callback.d.ts
|
|
4
|
+
declare const ScaleAiPostV1TaskSendCallbackInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScaleAiPostV1TaskSendCallbackOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scaleAiPostV1TaskSendCallback: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scaleAiPostV1TaskSendCallback };
|
|
9
|
+
//# sourceMappingURL=post-v1-task-send-callback.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-v1-task-send-callback.d.cts","names":[],"sources":["../../src/actions/post-v1-task-send-callback.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEoC;AAAA,cAC1E,mCAAA,EAAqC,CAAA,CAAE,UAM4C;AAAA,cAEnF,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/post-v1-task-send-callback.d.ts
|
|
4
|
+
declare const ScaleAiPostV1TaskSendCallbackInput: z.ZodTypeAny;
|
|
5
|
+
declare const ScaleAiPostV1TaskSendCallbackOutput: z.ZodTypeAny;
|
|
6
|
+
declare const scaleAiPostV1TaskSendCallback: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scaleAiPostV1TaskSendCallback };
|
|
9
|
+
//# sourceMappingURL=post-v1-task-send-callback.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-v1-task-send-callback.d.mts","names":[],"sources":["../../src/actions/post-v1-task-send-callback.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEoC;AAAA,cAC1E,mCAAA,EAAqC,CAAA,CAAE,UAM4C;AAAA,cAEnF,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const scaleAiPostV1TaskSendCallback = action("SCALE_AI_POST_V1_TASK_SEND_CALLBACK", {
|
|
4
|
+
slug: "scale_ai-post-v1-task-send-callback",
|
|
5
|
+
name: "Re-send Task Callback",
|
|
6
|
+
description: "Tool to re-send a callback for a completed or errored task to the callback_url. Use when you need to manually trigger a callback resend for a task that has already been processed.",
|
|
7
|
+
input: z.object({ task_id: z.string().describe("The unique identifier for the task whose callback should be resent") }).describe("Request model for re-sending a callback for a completed or errored task."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
task: z.record(z.string(), z.unknown()).describe("Full task object for reference").nullable().optional(),
|
|
10
|
+
status: z.string().describe("Task status (typically 'completed' or 'error')").nullable().optional(),
|
|
11
|
+
message: z.string().describe("Success message from the API (e.g., 'OK')").nullable().optional(),
|
|
12
|
+
task_id: z.string().describe("Unique task identifier").nullable().optional(),
|
|
13
|
+
response: z.record(z.string(), z.unknown()).describe("The task's result data").nullable().optional()
|
|
14
|
+
}).describe("Response model containing the callback payload that was sent to the callback_url.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { scaleAiPostV1TaskSendCallback };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=post-v1-task-send-callback.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-v1-task-send-callback.mjs","names":[],"sources":["../../src/actions/post-v1-task-send-callback.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiPostV1TaskSendCallbackInput: z.ZodTypeAny = z.object({\n task_id: z.string().describe(\"The unique identifier for the task whose callback should be resent\"),\n}).describe(\"Request model for re-sending a callback for a completed or errored task.\");\nexport const ScaleAiPostV1TaskSendCallbackOutput: z.ZodTypeAny = z.object({\n task: z.record(z.string(), z.unknown()).describe(\"Full task object for reference\").nullable().optional(),\n status: z.string().describe(\"Task status (typically 'completed' or 'error')\").nullable().optional(),\n message: z.string().describe(\"Success message from the API (e.g., 'OK')\").nullable().optional(),\n task_id: z.string().describe(\"Unique task identifier\").nullable().optional(),\n response: z.record(z.string(), z.unknown()).describe(\"The task's result data\").nullable().optional(),\n}).describe(\"Response model containing the callback payload that was sent to the callback_url.\");\n\nexport const scaleAiPostV1TaskSendCallback = action(\"SCALE_AI_POST_V1_TASK_SEND_CALLBACK\", {\n slug: \"scale_ai-post-v1-task-send-callback\",\n name: \"Re-send Task Callback\",\n description: \"Tool to re-send a callback for a completed or errored task to the callback_url. Use when you need to manually trigger a callback resend for a task that has already been processed.\",\n input: ScaleAiPostV1TaskSendCallbackInput,\n output: ScaleAiPostV1TaskSendCallbackOutput,\n});\n"],"mappings":";;AAeA,MAAa,gCAAgC,OAAO,uCAAuC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf8D,EAAE,OAAO,EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,EACnG,CAAC,CAAC,CAAC,SAAS,0EAaH;CACP,QAb+D,EAAE,OAAO;EACxE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,mFAOF;AACV,CAAC"}
|