@keystrokehq/scale_ai 0.1.0 → 0.1.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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-studio-assignments.cjs +1 -1
- package/dist/actions/add-studio-assignments.cjs.map +1 -1
- package/dist/actions/add-studio-assignments.d.cts +11 -3
- package/dist/actions/add-studio-assignments.d.cts.map +1 -1
- package/dist/actions/add-studio-assignments.d.mts +11 -3
- package/dist/actions/add-studio-assignments.d.mts.map +1 -1
- package/dist/actions/add-studio-assignments.mjs +1 -1
- package/dist/actions/add-studio-assignments.mjs.map +1 -1
- package/dist/actions/add-task-tags.cjs +2 -2
- package/dist/actions/add-task-tags.cjs.map +1 -1
- package/dist/actions/add-task-tags.d.cts +19 -3
- package/dist/actions/add-task-tags.d.cts.map +1 -1
- package/dist/actions/add-task-tags.d.mts +19 -3
- package/dist/actions/add-task-tags.d.mts.map +1 -1
- package/dist/actions/add-task-tags.mjs +2 -2
- package/dist/actions/add-task-tags.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +1 -1
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +22 -3
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +22 -3
- package/dist/actions/create-batch.d.mts.map +1 -1
- package/dist/actions/create-batch.mjs +1 -1
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-document-transcription-task.cjs +16 -16
- package/dist/actions/create-document-transcription-task.cjs.map +1 -1
- package/dist/actions/create-document-transcription-task.d.cts +121 -3
- package/dist/actions/create-document-transcription-task.d.cts.map +1 -1
- package/dist/actions/create-document-transcription-task.d.mts +121 -3
- package/dist/actions/create-document-transcription-task.d.mts.map +1 -1
- package/dist/actions/create-document-transcription-task.mjs +16 -16
- package/dist/actions/create-document-transcription-task.mjs.map +1 -1
- package/dist/actions/create-image-annotation-task.cjs +24 -24
- package/dist/actions/create-image-annotation-task.cjs.map +1 -1
- package/dist/actions/create-image-annotation-task.d.cts +278 -3
- package/dist/actions/create-image-annotation-task.d.cts.map +1 -1
- package/dist/actions/create-image-annotation-task.d.mts +278 -3
- package/dist/actions/create-image-annotation-task.d.mts.map +1 -1
- package/dist/actions/create-image-annotation-task.mjs +24 -24
- package/dist/actions/create-image-annotation-task.mjs.map +1 -1
- package/dist/actions/create-lidar-annotation-task.cjs +2 -2
- package/dist/actions/create-lidar-annotation-task.cjs.map +1 -1
- package/dist/actions/create-lidar-annotation-task.d.cts +57 -3
- package/dist/actions/create-lidar-annotation-task.d.cts.map +1 -1
- package/dist/actions/create-lidar-annotation-task.d.mts +57 -3
- package/dist/actions/create-lidar-annotation-task.d.mts.map +1 -1
- package/dist/actions/create-lidar-annotation-task.mjs +2 -2
- package/dist/actions/create-lidar-annotation-task.mjs.map +1 -1
- package/dist/actions/create-lidar-segmentation-task.cjs +11 -11
- package/dist/actions/create-lidar-segmentation-task.cjs.map +1 -1
- package/dist/actions/create-lidar-segmentation-task.d.cts +51 -3
- package/dist/actions/create-lidar-segmentation-task.d.cts.map +1 -1
- package/dist/actions/create-lidar-segmentation-task.d.mts +51 -3
- package/dist/actions/create-lidar-segmentation-task.d.mts.map +1 -1
- package/dist/actions/create-lidar-segmentation-task.mjs +11 -11
- package/dist/actions/create-lidar-segmentation-task.mjs.map +1 -1
- package/dist/actions/create-named-entity-recognition-task.cjs +5 -5
- package/dist/actions/create-named-entity-recognition-task.cjs.map +1 -1
- package/dist/actions/create-named-entity-recognition-task.d.cts +75 -3
- package/dist/actions/create-named-entity-recognition-task.d.cts.map +1 -1
- package/dist/actions/create-named-entity-recognition-task.d.mts +75 -3
- package/dist/actions/create-named-entity-recognition-task.d.mts.map +1 -1
- package/dist/actions/create-named-entity-recognition-task.mjs +5 -5
- package/dist/actions/create-named-entity-recognition-task.mjs.map +1 -1
- package/dist/actions/create-segmentation-annotation-task.cjs +19 -19
- package/dist/actions/create-segmentation-annotation-task.cjs.map +1 -1
- package/dist/actions/create-segmentation-annotation-task.d.cts +80 -3
- package/dist/actions/create-segmentation-annotation-task.d.cts.map +1 -1
- package/dist/actions/create-segmentation-annotation-task.d.mts +80 -3
- package/dist/actions/create-segmentation-annotation-task.d.mts.map +1 -1
- package/dist/actions/create-segmentation-annotation-task.mjs +19 -19
- package/dist/actions/create-segmentation-annotation-task.mjs.map +1 -1
- package/dist/actions/create-text-collection-task.cjs +14 -14
- package/dist/actions/create-text-collection-task.cjs.map +1 -1
- package/dist/actions/create-text-collection-task.d.cts +88 -3
- package/dist/actions/create-text-collection-task.d.cts.map +1 -1
- package/dist/actions/create-text-collection-task.d.mts +88 -3
- package/dist/actions/create-text-collection-task.d.mts.map +1 -1
- package/dist/actions/create-text-collection-task.mjs +14 -14
- package/dist/actions/create-text-collection-task.mjs.map +1 -1
- package/dist/actions/create-video-annotation-task.cjs +15 -15
- package/dist/actions/create-video-annotation-task.cjs.map +1 -1
- package/dist/actions/create-video-annotation-task.d.cts +172 -3
- package/dist/actions/create-video-annotation-task.d.cts.map +1 -1
- package/dist/actions/create-video-annotation-task.d.mts +172 -3
- package/dist/actions/create-video-annotation-task.d.mts.map +1 -1
- package/dist/actions/create-video-annotation-task.mjs +15 -15
- package/dist/actions/create-video-annotation-task.mjs.map +1 -1
- package/dist/actions/create-video-playback-annotation-task.cjs +18 -18
- package/dist/actions/create-video-playback-annotation-task.cjs.map +1 -1
- package/dist/actions/create-video-playback-annotation-task.d.cts +204 -3
- package/dist/actions/create-video-playback-annotation-task.d.cts.map +1 -1
- package/dist/actions/create-video-playback-annotation-task.d.mts +204 -3
- package/dist/actions/create-video-playback-annotation-task.d.mts.map +1 -1
- package/dist/actions/create-video-playback-annotation-task.mjs +18 -18
- package/dist/actions/create-video-playback-annotation-task.mjs.map +1 -1
- package/dist/actions/delete-task-tags.cjs +2 -2
- package/dist/actions/delete-task-tags.cjs.map +1 -1
- package/dist/actions/delete-task-tags.d.cts +18 -3
- package/dist/actions/delete-task-tags.d.cts.map +1 -1
- package/dist/actions/delete-task-tags.d.mts +18 -3
- package/dist/actions/delete-task-tags.d.mts.map +1 -1
- package/dist/actions/delete-task-tags.mjs +2 -2
- package/dist/actions/delete-task-tags.mjs.map +1 -1
- package/dist/actions/delete-task-unique-id.cjs +3 -3
- package/dist/actions/delete-task-unique-id.cjs.map +1 -1
- package/dist/actions/delete-task-unique-id.d.cts +16 -3
- package/dist/actions/delete-task-unique-id.d.cts.map +1 -1
- package/dist/actions/delete-task-unique-id.d.mts +16 -3
- package/dist/actions/delete-task-unique-id.d.mts.map +1 -1
- package/dist/actions/delete-task-unique-id.mjs +3 -3
- package/dist/actions/delete-task-unique-id.mjs.map +1 -1
- package/dist/actions/finalize-batch.cjs +1 -1
- package/dist/actions/finalize-batch.cjs.map +1 -1
- package/dist/actions/finalize-batch.d.cts +14 -3
- package/dist/actions/finalize-batch.d.cts.map +1 -1
- package/dist/actions/finalize-batch.d.mts +14 -3
- package/dist/actions/finalize-batch.d.mts.map +1 -1
- package/dist/actions/finalize-batch.mjs +1 -1
- package/dist/actions/finalize-batch.mjs.map +1 -1
- package/dist/actions/get-assets.cjs +2 -2
- package/dist/actions/get-assets.cjs.map +1 -1
- package/dist/actions/get-assets.d.cts +23 -3
- package/dist/actions/get-assets.d.cts.map +1 -1
- package/dist/actions/get-assets.d.mts +23 -3
- package/dist/actions/get-assets.d.mts.map +1 -1
- package/dist/actions/get-assets.mjs +2 -2
- package/dist/actions/get-assets.mjs.map +1 -1
- package/dist/actions/get-batch-status.cjs +6 -6
- package/dist/actions/get-batch-status.cjs.map +1 -1
- package/dist/actions/get-batch-status.d.cts +13 -3
- package/dist/actions/get-batch-status.d.cts.map +1 -1
- package/dist/actions/get-batch-status.d.mts +13 -3
- package/dist/actions/get-batch-status.d.mts.map +1 -1
- package/dist/actions/get-batch-status.mjs +6 -6
- package/dist/actions/get-batch-status.mjs.map +1 -1
- package/dist/actions/get-batch.cjs +2 -2
- package/dist/actions/get-batch.cjs.map +1 -1
- package/dist/actions/get-batch.d.cts +14 -3
- package/dist/actions/get-batch.d.cts.map +1 -1
- package/dist/actions/get-batch.d.mts +14 -3
- package/dist/actions/get-batch.d.mts.map +1 -1
- package/dist/actions/get-batch.mjs +2 -2
- package/dist/actions/get-batch.mjs.map +1 -1
- package/dist/actions/get-fixless-audits.cjs +7 -7
- package/dist/actions/get-fixless-audits.cjs.map +1 -1
- package/dist/actions/get-fixless-audits.d.cts +36 -3
- package/dist/actions/get-fixless-audits.d.cts.map +1 -1
- package/dist/actions/get-fixless-audits.d.mts +36 -3
- package/dist/actions/get-fixless-audits.d.mts.map +1 -1
- package/dist/actions/get-fixless-audits.mjs +7 -7
- package/dist/actions/get-fixless-audits.mjs.map +1 -1
- package/dist/actions/get-project.cjs +8 -8
- package/dist/actions/get-project.cjs.map +1 -1
- package/dist/actions/get-project.d.cts +16 -3
- package/dist/actions/get-project.d.cts.map +1 -1
- package/dist/actions/get-project.d.mts +16 -3
- package/dist/actions/get-project.d.mts.map +1 -1
- package/dist/actions/get-project.mjs +8 -8
- package/dist/actions/get-project.mjs.map +1 -1
- package/dist/actions/get-quality-labelers.cjs +3 -3
- package/dist/actions/get-quality-labelers.cjs.map +1 -1
- package/dist/actions/get-quality-labelers.d.cts +25 -3
- package/dist/actions/get-quality-labelers.d.cts.map +1 -1
- package/dist/actions/get-quality-labelers.d.mts +25 -3
- package/dist/actions/get-quality-labelers.d.mts.map +1 -1
- package/dist/actions/get-quality-labelers.mjs +3 -3
- package/dist/actions/get-quality-labelers.mjs.map +1 -1
- package/dist/actions/get-studio-assignments.cjs +2 -2
- package/dist/actions/get-studio-assignments.cjs.map +1 -1
- package/dist/actions/get-studio-assignments.d.cts +11 -3
- package/dist/actions/get-studio-assignments.d.cts.map +1 -1
- package/dist/actions/get-studio-assignments.d.mts +11 -3
- package/dist/actions/get-studio-assignments.d.mts.map +1 -1
- package/dist/actions/get-studio-assignments.mjs +2 -2
- package/dist/actions/get-studio-assignments.mjs.map +1 -1
- package/dist/actions/get-studio-batches.cjs +9 -9
- package/dist/actions/get-studio-batches.cjs.map +1 -1
- package/dist/actions/get-studio-batches.d.cts +13 -3
- package/dist/actions/get-studio-batches.d.cts.map +1 -1
- package/dist/actions/get-studio-batches.d.mts +13 -3
- package/dist/actions/get-studio-batches.d.mts.map +1 -1
- package/dist/actions/get-studio-batches.mjs +9 -9
- package/dist/actions/get-studio-batches.mjs.map +1 -1
- package/dist/actions/get-teams.cjs +3 -3
- package/dist/actions/get-teams.cjs.map +1 -1
- package/dist/actions/get-teams.d.cts +14 -3
- package/dist/actions/get-teams.d.cts.map +1 -1
- package/dist/actions/get-teams.d.mts +14 -3
- package/dist/actions/get-teams.d.mts.map +1 -1
- package/dist/actions/get-teams.mjs +3 -3
- package/dist/actions/get-teams.mjs.map +1 -1
- package/dist/actions/get-v1-task-response-url.cjs +3 -3
- package/dist/actions/get-v1-task-response-url.cjs.map +1 -1
- package/dist/actions/get-v1-task-response-url.d.cts +14 -3
- package/dist/actions/get-v1-task-response-url.d.cts.map +1 -1
- package/dist/actions/get-v1-task-response-url.d.mts +14 -3
- package/dist/actions/get-v1-task-response-url.d.mts.map +1 -1
- package/dist/actions/get-v1-task-response-url.mjs +3 -3
- package/dist/actions/get-v1-task-response-url.mjs.map +1 -1
- package/dist/actions/get-v1-task.cjs +1 -1
- package/dist/actions/get-v1-task.cjs.map +1 -1
- package/dist/actions/get-v1-task.d.cts +19 -3
- package/dist/actions/get-v1-task.d.cts.map +1 -1
- package/dist/actions/get-v1-task.d.mts +19 -3
- package/dist/actions/get-v1-task.d.mts.map +1 -1
- package/dist/actions/get-v1-task.mjs +1 -1
- package/dist/actions/get-v1-task.mjs.map +1 -1
- package/dist/actions/import-file.cjs +1 -1
- package/dist/actions/import-file.cjs.map +1 -1
- package/dist/actions/import-file.d.cts +17 -3
- package/dist/actions/import-file.d.cts.map +1 -1
- package/dist/actions/import-file.d.mts +17 -3
- package/dist/actions/import-file.d.mts.map +1 -1
- package/dist/actions/import-file.mjs +1 -1
- package/dist/actions/import-file.mjs.map +1 -1
- package/dist/actions/invite-team-member.cjs +3 -3
- package/dist/actions/invite-team-member.cjs.map +1 -1
- package/dist/actions/invite-team-member.d.cts +20 -3
- package/dist/actions/invite-team-member.d.cts.map +1 -1
- package/dist/actions/invite-team-member.d.mts +20 -3
- package/dist/actions/invite-team-member.d.mts.map +1 -1
- package/dist/actions/invite-team-member.mjs +3 -3
- package/dist/actions/invite-team-member.mjs.map +1 -1
- package/dist/actions/list-batches.cjs +7 -7
- package/dist/actions/list-batches.cjs.map +1 -1
- package/dist/actions/list-batches.d.cts +33 -3
- package/dist/actions/list-batches.d.cts.map +1 -1
- package/dist/actions/list-batches.d.mts +33 -3
- package/dist/actions/list-batches.d.mts.map +1 -1
- package/dist/actions/list-batches.mjs +7 -7
- package/dist/actions/list-batches.mjs.map +1 -1
- package/dist/actions/list-projects.cjs +8 -8
- package/dist/actions/list-projects.cjs.map +1 -1
- package/dist/actions/list-projects.d.cts +26 -3
- package/dist/actions/list-projects.d.cts.map +1 -1
- package/dist/actions/list-projects.d.mts +26 -3
- package/dist/actions/list-projects.d.mts.map +1 -1
- package/dist/actions/list-projects.mjs +8 -8
- package/dist/actions/list-projects.mjs.map +1 -1
- package/dist/actions/list-tasks.cjs +2 -2
- package/dist/actions/list-tasks.cjs.map +1 -1
- package/dist/actions/list-tasks.d.cts +56 -3
- package/dist/actions/list-tasks.d.cts.map +1 -1
- package/dist/actions/list-tasks.d.mts +56 -3
- package/dist/actions/list-tasks.d.mts.map +1 -1
- package/dist/actions/list-tasks.mjs +2 -2
- package/dist/actions/list-tasks.mjs.map +1 -1
- package/dist/actions/post-v1-task-send-callback.cjs +1 -1
- package/dist/actions/post-v1-task-send-callback.cjs.map +1 -1
- package/dist/actions/post-v1-task-send-callback.d.cts +13 -3
- package/dist/actions/post-v1-task-send-callback.d.cts.map +1 -1
- package/dist/actions/post-v1-task-send-callback.d.mts +13 -3
- package/dist/actions/post-v1-task-send-callback.d.mts.map +1 -1
- package/dist/actions/post-v1-task-send-callback.mjs +1 -1
- package/dist/actions/post-v1-task-send-callback.mjs.map +1 -1
- package/dist/actions/remove-studio-assignments.cjs +3 -3
- package/dist/actions/remove-studio-assignments.cjs.map +1 -1
- package/dist/actions/remove-studio-assignments.d.cts +21 -3
- package/dist/actions/remove-studio-assignments.d.cts.map +1 -1
- package/dist/actions/remove-studio-assignments.d.mts +21 -3
- package/dist/actions/remove-studio-assignments.d.mts.map +1 -1
- package/dist/actions/remove-studio-assignments.mjs +3 -3
- package/dist/actions/remove-studio-assignments.mjs.map +1 -1
- package/dist/actions/reset-batch-priorities.cjs +9 -9
- package/dist/actions/reset-batch-priorities.cjs.map +1 -1
- package/dist/actions/reset-batch-priorities.d.cts +17 -3
- package/dist/actions/reset-batch-priorities.d.cts.map +1 -1
- package/dist/actions/reset-batch-priorities.d.mts +17 -3
- package/dist/actions/reset-batch-priorities.d.mts.map +1 -1
- package/dist/actions/reset-batch-priorities.mjs +9 -9
- package/dist/actions/reset-batch-priorities.mjs.map +1 -1
- package/dist/actions/set-batch-priorities.cjs +10 -10
- package/dist/actions/set-batch-priorities.cjs.map +1 -1
- package/dist/actions/set-batch-priorities.d.cts +24 -3
- package/dist/actions/set-batch-priorities.d.cts.map +1 -1
- package/dist/actions/set-batch-priorities.d.mts +24 -3
- package/dist/actions/set-batch-priorities.d.mts.map +1 -1
- package/dist/actions/set-batch-priorities.mjs +10 -10
- package/dist/actions/set-batch-priorities.mjs.map +1 -1
- package/dist/actions/set-project-ontology.cjs +3 -3
- package/dist/actions/set-project-ontology.cjs.map +1 -1
- package/dist/actions/set-project-ontology.d.cts +33 -3
- package/dist/actions/set-project-ontology.d.cts.map +1 -1
- package/dist/actions/set-project-ontology.d.mts +33 -3
- package/dist/actions/set-project-ontology.d.mts.map +1 -1
- package/dist/actions/set-project-ontology.mjs +3 -3
- package/dist/actions/set-project-ontology.mjs.map +1 -1
- package/dist/actions/set-project-params.cjs +2 -2
- package/dist/actions/set-project-params.cjs.map +1 -1
- package/dist/actions/set-project-params.d.cts +24 -3
- package/dist/actions/set-project-params.d.cts.map +1 -1
- package/dist/actions/set-project-params.d.mts +24 -3
- package/dist/actions/set-project-params.d.mts.map +1 -1
- package/dist/actions/set-project-params.mjs +2 -2
- package/dist/actions/set-project-params.mjs.map +1 -1
- package/dist/actions/set-task-metadata.cjs +1 -1
- package/dist/actions/set-task-metadata.cjs.map +1 -1
- package/dist/actions/set-task-metadata.d.cts +24 -3
- package/dist/actions/set-task-metadata.d.cts.map +1 -1
- package/dist/actions/set-task-metadata.d.mts +24 -3
- package/dist/actions/set-task-metadata.d.mts.map +1 -1
- package/dist/actions/set-task-metadata.mjs +1 -1
- package/dist/actions/set-task-metadata.mjs.map +1 -1
- package/dist/actions/update-task-unique-id.cjs +1 -1
- package/dist/actions/update-task-unique-id.cjs.map +1 -1
- package/dist/actions/update-task-unique-id.d.cts +19 -3
- package/dist/actions/update-task-unique-id.d.cts.map +1 -1
- package/dist/actions/update-task-unique-id.d.mts +19 -3
- package/dist/actions/update-task-unique-id.d.mts.map +1 -1
- package/dist/actions/update-task-unique-id.mjs +1 -1
- package/dist/actions/update-task-unique-id.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +2 -2
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +31 -3
- package/dist/actions/upload-file.d.cts.map +1 -1
- package/dist/actions/upload-file.d.mts +31 -3
- package/dist/actions/upload-file.d.mts.map +1 -1
- package/dist/actions/upload-file.mjs +2 -2
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,127 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-document-transcription-task.d.ts
|
|
4
|
-
declare const ScaleAiCreateDocumentTranscriptionTaskInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScaleAiCreateDocumentTranscriptionTaskInput: z.ZodObject<{
|
|
5
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
6
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
batch: z.ZodOptional<z.ZodString>;
|
|
8
|
+
title: z.ZodOptional<z.ZodString>;
|
|
9
|
+
project: z.ZodOptional<z.ZodString>;
|
|
10
|
+
features: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
label: z.ZodString;
|
|
15
|
+
value: z.ZodString;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
field_id: z.ZodString;
|
|
18
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>;
|
|
21
|
+
field_id: z.ZodString;
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
|
+
subchoices: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
|
+
max_choices: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
min_choices: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
transcription_choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
geometry: z.ZodOptional<z.ZodString>;
|
|
30
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
unique_id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
attachment: z.ZodOptional<z.ZodString>;
|
|
34
|
+
hypothesis: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37
|
+
instruction: z.ZodString;
|
|
38
|
+
callback_url: z.ZodOptional<z.ZodString>;
|
|
39
|
+
responses_required: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
clear_unique_id_on_error: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
declare const ScaleAiCreateDocumentTranscriptionTaskOutput: z.ZodObject<{
|
|
43
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
44
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
audits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
46
|
+
params: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
49
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
attachment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
52
|
+
instruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
is_test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
56
|
+
project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
59
|
+
response: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
60
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
61
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
65
|
+
field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
|
+
top: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
left: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
|
+
vertices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
72
|
+
}, z.core.$loose>>>;
|
|
73
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
74
|
+
}, z.core.$loose>>>>;
|
|
75
|
+
}, z.core.$loose>>>;
|
|
76
|
+
unique_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
instruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
callback_completed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
83
|
+
}, z.core.$loose>;
|
|
84
|
+
declare const scaleAiCreateDocumentTranscriptionTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
85
|
+
instruction: string;
|
|
86
|
+
lang?: string | undefined;
|
|
87
|
+
tags?: string[] | undefined;
|
|
88
|
+
batch?: string | undefined;
|
|
89
|
+
title?: string | undefined;
|
|
90
|
+
project?: string | undefined;
|
|
91
|
+
features?: {
|
|
92
|
+
[x: string]: unknown;
|
|
93
|
+
type: string;
|
|
94
|
+
title: string;
|
|
95
|
+
field_id: string;
|
|
96
|
+
choices?: {
|
|
97
|
+
[x: string]: unknown;
|
|
98
|
+
label: string;
|
|
99
|
+
value: string;
|
|
100
|
+
}[] | undefined;
|
|
101
|
+
required?: boolean | undefined;
|
|
102
|
+
conditions?: {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
value: string | number | boolean;
|
|
105
|
+
field_id: string;
|
|
106
|
+
}[] | undefined;
|
|
107
|
+
subchoices?: Record<string, unknown>[] | undefined;
|
|
108
|
+
description?: string | undefined;
|
|
109
|
+
max_choices?: number | undefined;
|
|
110
|
+
min_choices?: number | undefined;
|
|
111
|
+
transcription_choices?: string[] | undefined;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
geometry?: string | undefined;
|
|
114
|
+
metadata?: Record<string, unknown> | undefined;
|
|
115
|
+
priority?: number | undefined;
|
|
116
|
+
unique_id?: string | undefined;
|
|
117
|
+
attachment?: string | undefined;
|
|
118
|
+
hypothesis?: Record<string, unknown> | undefined;
|
|
119
|
+
attachments?: string[] | undefined;
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
callback_url?: string | undefined;
|
|
122
|
+
responses_required?: number | undefined;
|
|
123
|
+
clear_unique_id_on_error?: boolean | undefined;
|
|
124
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
125
|
//#endregion
|
|
8
126
|
export { scaleAiCreateDocumentTranscriptionTask };
|
|
9
127
|
//# sourceMappingURL=create-document-transcription-task.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document-transcription-task.d.cts","names":[],"sources":["../../src/actions/create-document-transcription-task.ts"],"mappings":";;;cAIa,2CAAA,
|
|
1
|
+
{"version":3,"file":"create-document-transcription-task.d.cts","names":[],"sources":["../../src/actions/create-document-transcription-task.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiE3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB5C,sCAAA,gCAAsC,wBAAA"}
|
|
@@ -1,9 +1,127 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-document-transcription-task.d.ts
|
|
4
|
-
declare const ScaleAiCreateDocumentTranscriptionTaskInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ScaleAiCreateDocumentTranscriptionTaskInput: z.ZodObject<{
|
|
5
|
+
lang: z.ZodOptional<z.ZodString>;
|
|
6
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
batch: z.ZodOptional<z.ZodString>;
|
|
8
|
+
title: z.ZodOptional<z.ZodString>;
|
|
9
|
+
project: z.ZodOptional<z.ZodString>;
|
|
10
|
+
features: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
+
type: z.ZodString;
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
label: z.ZodString;
|
|
15
|
+
value: z.ZodString;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
field_id: z.ZodString;
|
|
18
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
conditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>;
|
|
21
|
+
field_id: z.ZodString;
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
|
+
subchoices: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
24
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
|
+
max_choices: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
min_choices: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
transcription_choices: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
geometry: z.ZodOptional<z.ZodString>;
|
|
30
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
31
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
unique_id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
attachment: z.ZodOptional<z.ZodString>;
|
|
34
|
+
hypothesis: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
35
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
description: z.ZodOptional<z.ZodString>;
|
|
37
|
+
instruction: z.ZodString;
|
|
38
|
+
callback_url: z.ZodOptional<z.ZodString>;
|
|
39
|
+
responses_required: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
clear_unique_id_on_error: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
declare const ScaleAiCreateDocumentTranscriptionTaskOutput: z.ZodObject<{
|
|
43
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
44
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
audits: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
46
|
+
params: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
49
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
attachment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
52
|
+
instruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
is_test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
56
|
+
project: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
59
|
+
response: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
60
|
+
annotations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
61
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
uuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean]>>]>>>;
|
|
65
|
+
field_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
67
|
+
top: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
left: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
69
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
|
+
vertices: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
72
|
+
}, z.core.$loose>>>;
|
|
73
|
+
attributes: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
74
|
+
}, z.core.$loose>>>>;
|
|
75
|
+
}, z.core.$loose>>>;
|
|
76
|
+
unique_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
instruction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
callback_completed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
83
|
+
}, z.core.$loose>;
|
|
84
|
+
declare const scaleAiCreateDocumentTranscriptionTask: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
85
|
+
instruction: string;
|
|
86
|
+
lang?: string | undefined;
|
|
87
|
+
tags?: string[] | undefined;
|
|
88
|
+
batch?: string | undefined;
|
|
89
|
+
title?: string | undefined;
|
|
90
|
+
project?: string | undefined;
|
|
91
|
+
features?: {
|
|
92
|
+
[x: string]: unknown;
|
|
93
|
+
type: string;
|
|
94
|
+
title: string;
|
|
95
|
+
field_id: string;
|
|
96
|
+
choices?: {
|
|
97
|
+
[x: string]: unknown;
|
|
98
|
+
label: string;
|
|
99
|
+
value: string;
|
|
100
|
+
}[] | undefined;
|
|
101
|
+
required?: boolean | undefined;
|
|
102
|
+
conditions?: {
|
|
103
|
+
[x: string]: unknown;
|
|
104
|
+
value: string | number | boolean;
|
|
105
|
+
field_id: string;
|
|
106
|
+
}[] | undefined;
|
|
107
|
+
subchoices?: Record<string, unknown>[] | undefined;
|
|
108
|
+
description?: string | undefined;
|
|
109
|
+
max_choices?: number | undefined;
|
|
110
|
+
min_choices?: number | undefined;
|
|
111
|
+
transcription_choices?: string[] | undefined;
|
|
112
|
+
}[] | undefined;
|
|
113
|
+
geometry?: string | undefined;
|
|
114
|
+
metadata?: Record<string, unknown> | undefined;
|
|
115
|
+
priority?: number | undefined;
|
|
116
|
+
unique_id?: string | undefined;
|
|
117
|
+
attachment?: string | undefined;
|
|
118
|
+
hypothesis?: Record<string, unknown> | undefined;
|
|
119
|
+
attachments?: string[] | undefined;
|
|
120
|
+
description?: string | undefined;
|
|
121
|
+
callback_url?: string | undefined;
|
|
122
|
+
responses_required?: number | undefined;
|
|
123
|
+
clear_unique_id_on_error?: boolean | undefined;
|
|
124
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
125
|
//#endregion
|
|
8
126
|
export { scaleAiCreateDocumentTranscriptionTask };
|
|
9
127
|
//# sourceMappingURL=create-document-transcription-task.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document-transcription-task.d.mts","names":[],"sources":["../../src/actions/create-document-transcription-task.ts"],"mappings":";;;cAIa,2CAAA,
|
|
1
|
+
{"version":3,"file":"create-document-transcription-task.d.mts","names":[],"sources":["../../src/actions/create-document-transcription-task.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiE3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB5C,sCAAA,gCAAsC,wBAAA"}
|
|
@@ -13,7 +13,7 @@ const ScaleAiCreateDocumentTranscriptionTaskInput = z.object({
|
|
|
13
13
|
choices: z.array(z.object({
|
|
14
14
|
label: z.string().describe("Display label for the choice"),
|
|
15
15
|
value: z.string().describe("Value to be stored for this choice")
|
|
16
|
-
}).describe("Choice option for category or select type fields.")).describe("Array of choice objects for category or select fields").optional(),
|
|
16
|
+
}).passthrough().describe("Choice option for category or select type fields.")).describe("Array of choice objects for category or select fields").optional(),
|
|
17
17
|
field_id: z.string().describe("Unique identifier for the field"),
|
|
18
18
|
required: z.boolean().describe("Whether this field is required").optional(),
|
|
19
19
|
conditions: z.array(z.object({
|
|
@@ -23,19 +23,19 @@ const ScaleAiCreateDocumentTranscriptionTaskInput = z.object({
|
|
|
23
23
|
z.number().int()
|
|
24
24
|
]),
|
|
25
25
|
field_id: z.string().describe("The field_id that this condition depends on")
|
|
26
|
-
}).describe("Conditional logic for when a field should be shown.")).describe("Conditional logic for when field should be shown").optional(),
|
|
27
|
-
subchoices: z.array(z.
|
|
26
|
+
}).passthrough().describe("Conditional logic for when a field should be shown.")).describe("Conditional logic for when field should be shown").optional(),
|
|
27
|
+
subchoices: z.array(z.record(z.string(), z.unknown())).describe("Nested sub-choices for hierarchical selection").optional(),
|
|
28
28
|
description: z.string().describe("Brief description about what the response should be").optional(),
|
|
29
29
|
max_choices: z.number().int().describe("Maximum number of choices for category fields").optional(),
|
|
30
30
|
min_choices: z.number().int().describe("Minimum number of choices for category fields").optional(),
|
|
31
31
|
transcription_choices: z.array(z.string()).describe("Specific choices for transcription select fields").optional()
|
|
32
|
-
}).describe("Field definition describing what data to transcribe from the document.")).describe("Array of field definitions describing what data to transcribe").optional(),
|
|
32
|
+
}).passthrough().describe("Field definition describing what data to transcribe from the document.")).describe("Array of field definitions describing what data to transcribe").optional(),
|
|
33
33
|
geometry: z.string().describe("Geometry type for annotations: 'box' (axis-aligned rectangles) or 'polygon' (rotated rectangles). Default: 'box'").optional(),
|
|
34
|
-
metadata: z.
|
|
34
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom metadata as key-value pairs for storing additional structured information").optional(),
|
|
35
35
|
priority: z.number().int().describe("Task priority level (Range: 0-100, Default: 30)").optional(),
|
|
36
36
|
unique_id: z.string().describe("Arbitrary unique identifier for task deduplication and later querying").optional(),
|
|
37
37
|
attachment: z.string().describe("URL of a single document to be transcribed. Either attachment or attachments is required").optional(),
|
|
38
|
-
hypothesis: z.
|
|
38
|
+
hypothesis: z.record(z.string(), z.unknown()).describe("Pre-labels to accelerate annotation, matching the task's response schema").optional(),
|
|
39
39
|
attachments: z.array(z.string()).describe("Array of URLs for multi-page documents. Either attachment or attachments is required").optional(),
|
|
40
40
|
description: z.string().describe("Task description").optional(),
|
|
41
41
|
instruction: z.string().describe("Markdown-enabled instructions explaining the task to taskers"),
|
|
@@ -45,19 +45,19 @@ const ScaleAiCreateDocumentTranscriptionTaskInput = z.object({
|
|
|
45
45
|
}).describe("Request model for creating a document transcription task.");
|
|
46
46
|
const ScaleAiCreateDocumentTranscriptionTask_TaskParamsSchema = z.object({
|
|
47
47
|
lang: z.string().describe("Language code for the attachment").nullable().optional(),
|
|
48
|
-
features: z.array(z.
|
|
48
|
+
features: z.array(z.record(z.string(), z.unknown())).describe("Array of field definitions").nullable().optional(),
|
|
49
49
|
geometry: z.string().describe("Geometry type for annotations").nullable().optional(),
|
|
50
50
|
attachment: z.string().describe("URL to the document being transcribed").nullable().optional(),
|
|
51
51
|
attachments: z.array(z.string()).describe("Array of URLs for multi-page documents").nullable().optional(),
|
|
52
52
|
instruction: z.string().describe("Task instructions").nullable().optional()
|
|
53
|
-
}).describe("Task parameters containing the submitted request parameters.");
|
|
53
|
+
}).passthrough().describe("Task parameters containing the submitted request parameters.");
|
|
54
54
|
const ScaleAiCreateDocumentTranscriptionTask_AnnotationGeometrySchema = z.object({
|
|
55
55
|
top: z.number().int().describe("Top position in pixels (for box)").nullable().optional(),
|
|
56
56
|
left: z.number().int().describe("Left position in pixels (for box)").nullable().optional(),
|
|
57
57
|
width: z.number().int().describe("Width in pixels (for box)").nullable().optional(),
|
|
58
58
|
height: z.number().int().describe("Height in pixels (for box)").nullable().optional(),
|
|
59
|
-
vertices: z.array(z.
|
|
60
|
-
}).describe("Geometric coordinates for annotation.");
|
|
59
|
+
vertices: z.array(z.record(z.string(), z.unknown())).describe("Array of coordinate objects with x and y (for polygon)").nullable().optional()
|
|
60
|
+
}).passthrough().describe("Geometric coordinates for annotation.");
|
|
61
61
|
const ScaleAiCreateDocumentTranscriptionTask_AnnotationSchema = z.object({
|
|
62
62
|
type: z.string().describe("The annotation/field type").nullable().optional(),
|
|
63
63
|
uuid: z.string().describe("Unique identifier for the annotation").nullable().optional(),
|
|
@@ -76,9 +76,9 @@ const ScaleAiCreateDocumentTranscriptionTask_AnnotationSchema = z.object({
|
|
|
76
76
|
]).nullable().optional(),
|
|
77
77
|
field_id: z.string().describe("The field_id from features array").nullable().optional(),
|
|
78
78
|
geometry: ScaleAiCreateDocumentTranscriptionTask_AnnotationGeometrySchema.nullable().optional(),
|
|
79
|
-
attributes: z.
|
|
80
|
-
}).describe("Individual annotation object in the response.");
|
|
81
|
-
const ScaleAiCreateDocumentTranscriptionTask_TaskResponseSchema = z.object({ annotations: z.array(ScaleAiCreateDocumentTranscriptionTask_AnnotationSchema).describe("Array of annotation objects created by taskers").nullable().optional() }).describe("Task response containing annotations when completed.");
|
|
79
|
+
attributes: z.record(z.string(), z.unknown()).describe("Additional annotation attributes").nullable().optional()
|
|
80
|
+
}).passthrough().describe("Individual annotation object in the response.");
|
|
81
|
+
const ScaleAiCreateDocumentTranscriptionTask_TaskResponseSchema = z.object({ annotations: z.array(ScaleAiCreateDocumentTranscriptionTask_AnnotationSchema).describe("Array of annotation objects created by taskers").nullable().optional() }).passthrough().describe("Task response containing annotations when completed.");
|
|
82
82
|
const scaleAiCreateDocumentTranscriptionTask = action("SCALE_AI_CREATE_DOCUMENT_TRANSCRIPTION_TASK", {
|
|
83
83
|
slug: "scale_ai-create-document-transcription-task",
|
|
84
84
|
name: "Create Document Transcription Task",
|
|
@@ -87,13 +87,13 @@ const scaleAiCreateDocumentTranscriptionTask = action("SCALE_AI_CREATE_DOCUMENT_
|
|
|
87
87
|
output: z.object({
|
|
88
88
|
tags: z.array(z.string()).describe("Task tags if provided").nullable().optional(),
|
|
89
89
|
type: z.string().describe("Task type: 'documenttranscription'").nullable().optional(),
|
|
90
|
-
audits: z.array(z.
|
|
90
|
+
audits: z.array(z.record(z.string(), z.unknown())).describe("Array of audit records showing quality reviews and modifications").nullable().optional(),
|
|
91
91
|
params: ScaleAiCreateDocumentTranscriptionTask_TaskParamsSchema.nullable().optional(),
|
|
92
92
|
status: z.string().describe("Current task status: 'pending', 'completed', 'canceled', or 'error'").nullable().optional(),
|
|
93
93
|
is_test: z.boolean().describe("Indicates if this is a test task").nullable().optional(),
|
|
94
94
|
project: z.string().describe("Associated project name").nullable().optional(),
|
|
95
95
|
task_id: z.string().describe("Unique permanent task identifier").nullable().optional(),
|
|
96
|
-
metadata: z.
|
|
96
|
+
metadata: z.record(z.string(), z.unknown()).describe("Associated metadata object with custom key-value pairs").nullable().optional(),
|
|
97
97
|
response: ScaleAiCreateDocumentTranscriptionTask_TaskResponseSchema.nullable().optional(),
|
|
98
98
|
unique_id: z.string().describe("Custom identifier if provided").nullable().optional(),
|
|
99
99
|
created_at: z.string().describe("ISO 8601 timestamp when the task was created").nullable().optional(),
|
|
@@ -102,7 +102,7 @@ const scaleAiCreateDocumentTranscriptionTask = action("SCALE_AI_CREATE_DOCUMENT_
|
|
|
102
102
|
callback_url: z.string().describe("Callback endpoint if provided").nullable().optional(),
|
|
103
103
|
completed_at: z.string().describe("ISO 8601 timestamp when task was finished (present only when completed)").nullable().optional(),
|
|
104
104
|
callback_completed: z.boolean().describe("Whether callback was successfully sent").nullable().optional()
|
|
105
|
-
}).describe("Response model for created document transcription task.")
|
|
105
|
+
}).passthrough().describe("Response model for created document transcription task.")
|
|
106
106
|
});
|
|
107
107
|
//#endregion
|
|
108
108
|
export { scaleAiCreateDocumentTranscriptionTask };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-document-transcription-task.mjs","names":[],"sources":["../../src/actions/create-document-transcription-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiCreateDocumentTranscriptionTaskInput: z.ZodTypeAny = z.object({\n lang: z.string().describe(\"Language code for the attachment (Default: 'en-US')\").optional(),\n tags: z.array(z.string()).describe(\"Arbitrary labels for task organization (maximum 5 tags allowed)\").optional(),\n batch: z.string().describe(\"Batch name; automatically associates task with the batch's project\").optional(),\n title: z.string().describe(\"Task title\").optional(),\n project: z.string().describe(\"Name of the project to associate this task with\").optional(),\n features: z.array(z.object({\n type: z.string().describe(\"Field type: 'text', 'category', 'select', 'boolean', 'number', 'datetime', 'time_range', 'block', or 'group'\"),\n title: z.string().describe(\"Field title displayed to taskers\"),\n choices: z.array(z.object({\n label: z.string().describe(\"Display label for the choice\"),\n value: z.string().describe(\"Value to be stored for this choice\"),\n}).describe(\"Choice option for category or select type fields.\")).describe(\"Array of choice objects for category or select fields\").optional(),\n field_id: z.string().describe(\"Unique identifier for the field\"),\n required: z.boolean().describe(\"Whether this field is required\").optional(),\n conditions: z.array(z.object({\n value: z.union([z.string(), z.boolean(), z.number().int()]),\n field_id: z.string().describe(\"The field_id that this condition depends on\"),\n}).describe(\"Conditional logic for when a field should be shown.\")).describe(\"Conditional logic for when field should be shown\").optional(),\n subchoices: z.array(z.object({})).describe(\"Nested sub-choices for hierarchical selection\").optional(),\n description: z.string().describe(\"Brief description about what the response should be\").optional(),\n max_choices: z.number().int().describe(\"Maximum number of choices for category fields\").optional(),\n min_choices: z.number().int().describe(\"Minimum number of choices for category fields\").optional(),\n transcription_choices: z.array(z.string()).describe(\"Specific choices for transcription select fields\").optional(),\n}).describe(\"Field definition describing what data to transcribe from the document.\")).describe(\"Array of field definitions describing what data to transcribe\").optional(),\n geometry: z.string().describe(\"Geometry type for annotations: 'box' (axis-aligned rectangles) or 'polygon' (rotated rectangles). Default: 'box'\").optional(),\n metadata: z.object({}).describe(\"Custom metadata as key-value pairs for storing additional structured information\").optional(),\n priority: z.number().int().describe(\"Task priority level (Range: 0-100, Default: 30)\").optional(),\n unique_id: z.string().describe(\"Arbitrary unique identifier for task deduplication and later querying\").optional(),\n attachment: z.string().describe(\"URL of a single document to be transcribed. Either attachment or attachments is required\").optional(),\n hypothesis: z.object({}).describe(\"Pre-labels to accelerate annotation, matching the task's response schema\").optional(),\n attachments: z.array(z.string()).describe(\"Array of URLs for multi-page documents. Either attachment or attachments is required\").optional(),\n description: z.string().describe(\"Task description\").optional(),\n instruction: z.string().describe(\"Markdown-enabled instructions explaining the task to taskers\"),\n callback_url: z.string().describe(\"Full URL (including scheme) or email address for completion notification\").optional(),\n responses_required: z.number().int().describe(\"Number of responses needed (Default: 1)\").optional(),\n clear_unique_id_on_error: z.boolean().describe(\"If true, unsets unique_id if task errors after submission\").optional(),\n}).describe(\"Request model for creating a document transcription task.\");\nconst ScaleAiCreateDocumentTranscriptionTask_TaskParamsSchema: z.ZodTypeAny = z.object({\n lang: z.string().describe(\"Language code for the attachment\").nullable().optional(),\n features: z.array(z.object({})).describe(\"Array of field definitions\").nullable().optional(),\n geometry: z.string().describe(\"Geometry type for annotations\").nullable().optional(),\n attachment: z.string().describe(\"URL to the document being transcribed\").nullable().optional(),\n attachments: z.array(z.string()).describe(\"Array of URLs for multi-page documents\").nullable().optional(),\n instruction: z.string().describe(\"Task instructions\").nullable().optional(),\n}).describe(\"Task parameters containing the submitted request parameters.\");\nconst ScaleAiCreateDocumentTranscriptionTask_AnnotationGeometrySchema: z.ZodTypeAny = z.object({\n top: z.number().int().describe(\"Top position in pixels (for box)\").nullable().optional(),\n left: z.number().int().describe(\"Left position in pixels (for box)\").nullable().optional(),\n width: z.number().int().describe(\"Width in pixels (for box)\").nullable().optional(),\n height: z.number().int().describe(\"Height in pixels (for box)\").nullable().optional(),\n vertices: z.array(z.object({})).describe(\"Array of coordinate objects with x and y (for polygon)\").nullable().optional(),\n}).describe(\"Geometric coordinates for annotation.\");\nconst ScaleAiCreateDocumentTranscriptionTask_AnnotationSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"The annotation/field type\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for the annotation\").nullable().optional(),\n label: z.string().describe(\"Classification label for the annotation\").nullable().optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))]).nullable().optional(),\n field_id: z.string().describe(\"The field_id from features array\").nullable().optional(),\n geometry: ScaleAiCreateDocumentTranscriptionTask_AnnotationGeometrySchema.nullable().optional(),\n attributes: z.object({}).describe(\"Additional annotation attributes\").nullable().optional(),\n}).describe(\"Individual annotation object in the response.\");\nconst ScaleAiCreateDocumentTranscriptionTask_TaskResponseSchema: z.ZodTypeAny = z.object({\n annotations: z.array(ScaleAiCreateDocumentTranscriptionTask_AnnotationSchema).describe(\"Array of annotation objects created by taskers\").nullable().optional(),\n}).describe(\"Task response containing annotations when completed.\");\nexport const ScaleAiCreateDocumentTranscriptionTaskOutput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"Task tags if provided\").nullable().optional(),\n type: z.string().describe(\"Task type: 'documenttranscription'\").nullable().optional(),\n audits: z.array(z.object({})).describe(\"Array of audit records showing quality reviews and modifications\").nullable().optional(),\n params: ScaleAiCreateDocumentTranscriptionTask_TaskParamsSchema.nullable().optional(),\n status: z.string().describe(\"Current task status: 'pending', 'completed', 'canceled', or 'error'\").nullable().optional(),\n is_test: z.boolean().describe(\"Indicates if this is a test task\").nullable().optional(),\n project: z.string().describe(\"Associated project name\").nullable().optional(),\n task_id: z.string().describe(\"Unique permanent task identifier\").nullable().optional(),\n metadata: z.object({}).describe(\"Associated metadata object with custom key-value pairs\").nullable().optional(),\n response: ScaleAiCreateDocumentTranscriptionTask_TaskResponseSchema.nullable().optional(),\n unique_id: z.string().describe(\"Custom identifier if provided\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the task was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of most recent update\").nullable().optional(),\n instruction: z.string().describe(\"Task instructions as provided\").nullable().optional(),\n callback_url: z.string().describe(\"Callback endpoint if provided\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when task was finished (present only when completed)\").nullable().optional(),\n callback_completed: z.boolean().describe(\"Whether callback was successfully sent\").nullable().optional(),\n}).describe(\"Response model for created document transcription task.\");\n\nexport const scaleAiCreateDocumentTranscriptionTask = action(\"SCALE_AI_CREATE_DOCUMENT_TRANSCRIPTION_TASK\", {\n slug: \"scale_ai-create-document-transcription-task\",\n name: \"Create Document Transcription Task\",\n description: \"Tool to create a document transcription task where workers transcribe and annotate information from single or multi-page documents. Use when you need to extract structured data from documents like invoices, forms, or screenshots.\",\n input: ScaleAiCreateDocumentTranscriptionTaskInput,\n output: ScaleAiCreateDocumentTranscriptionTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4D,EAAE,OAAO;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CA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,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-document-transcription-task.mjs","names":[],"sources":["../../src/actions/create-document-transcription-task.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScaleAiCreateDocumentTranscriptionTaskInput = z.object({\n lang: z.string().describe(\"Language code for the attachment (Default: 'en-US')\").optional(),\n tags: z.array(z.string()).describe(\"Arbitrary labels for task organization (maximum 5 tags allowed)\").optional(),\n batch: z.string().describe(\"Batch name; automatically associates task with the batch's project\").optional(),\n title: z.string().describe(\"Task title\").optional(),\n project: z.string().describe(\"Name of the project to associate this task with\").optional(),\n features: z.array(z.object({\n type: z.string().describe(\"Field type: 'text', 'category', 'select', 'boolean', 'number', 'datetime', 'time_range', 'block', or 'group'\"),\n title: z.string().describe(\"Field title displayed to taskers\"),\n choices: z.array(z.object({\n label: z.string().describe(\"Display label for the choice\"),\n value: z.string().describe(\"Value to be stored for this choice\"),\n}).passthrough().describe(\"Choice option for category or select type fields.\")).describe(\"Array of choice objects for category or select fields\").optional(),\n field_id: z.string().describe(\"Unique identifier for the field\"),\n required: z.boolean().describe(\"Whether this field is required\").optional(),\n conditions: z.array(z.object({\n value: z.union([z.string(), z.boolean(), z.number().int()]),\n field_id: z.string().describe(\"The field_id that this condition depends on\"),\n}).passthrough().describe(\"Conditional logic for when a field should be shown.\")).describe(\"Conditional logic for when field should be shown\").optional(),\n subchoices: z.array(z.record(z.string(), z.unknown())).describe(\"Nested sub-choices for hierarchical selection\").optional(),\n description: z.string().describe(\"Brief description about what the response should be\").optional(),\n max_choices: z.number().int().describe(\"Maximum number of choices for category fields\").optional(),\n min_choices: z.number().int().describe(\"Minimum number of choices for category fields\").optional(),\n transcription_choices: z.array(z.string()).describe(\"Specific choices for transcription select fields\").optional(),\n}).passthrough().describe(\"Field definition describing what data to transcribe from the document.\")).describe(\"Array of field definitions describing what data to transcribe\").optional(),\n geometry: z.string().describe(\"Geometry type for annotations: 'box' (axis-aligned rectangles) or 'polygon' (rotated rectangles). Default: 'box'\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata as key-value pairs for storing additional structured information\").optional(),\n priority: z.number().int().describe(\"Task priority level (Range: 0-100, Default: 30)\").optional(),\n unique_id: z.string().describe(\"Arbitrary unique identifier for task deduplication and later querying\").optional(),\n attachment: z.string().describe(\"URL of a single document to be transcribed. Either attachment or attachments is required\").optional(),\n hypothesis: z.record(z.string(), z.unknown()).describe(\"Pre-labels to accelerate annotation, matching the task's response schema\").optional(),\n attachments: z.array(z.string()).describe(\"Array of URLs for multi-page documents. Either attachment or attachments is required\").optional(),\n description: z.string().describe(\"Task description\").optional(),\n instruction: z.string().describe(\"Markdown-enabled instructions explaining the task to taskers\"),\n callback_url: z.string().describe(\"Full URL (including scheme) or email address for completion notification\").optional(),\n responses_required: z.number().int().describe(\"Number of responses needed (Default: 1)\").optional(),\n clear_unique_id_on_error: z.boolean().describe(\"If true, unsets unique_id if task errors after submission\").optional(),\n}).describe(\"Request model for creating a document transcription task.\");\nconst ScaleAiCreateDocumentTranscriptionTask_TaskParamsSchema = z.object({\n lang: z.string().describe(\"Language code for the attachment\").nullable().optional(),\n features: z.array(z.record(z.string(), z.unknown())).describe(\"Array of field definitions\").nullable().optional(),\n geometry: z.string().describe(\"Geometry type for annotations\").nullable().optional(),\n attachment: z.string().describe(\"URL to the document being transcribed\").nullable().optional(),\n attachments: z.array(z.string()).describe(\"Array of URLs for multi-page documents\").nullable().optional(),\n instruction: z.string().describe(\"Task instructions\").nullable().optional(),\n}).passthrough().describe(\"Task parameters containing the submitted request parameters.\");\nconst ScaleAiCreateDocumentTranscriptionTask_AnnotationGeometrySchema = z.object({\n top: z.number().int().describe(\"Top position in pixels (for box)\").nullable().optional(),\n left: z.number().int().describe(\"Left position in pixels (for box)\").nullable().optional(),\n width: z.number().int().describe(\"Width in pixels (for box)\").nullable().optional(),\n height: z.number().int().describe(\"Height in pixels (for box)\").nullable().optional(),\n vertices: z.array(z.record(z.string(), z.unknown())).describe(\"Array of coordinate objects with x and y (for polygon)\").nullable().optional(),\n}).passthrough().describe(\"Geometric coordinates for annotation.\");\nconst ScaleAiCreateDocumentTranscriptionTask_AnnotationSchema = z.object({\n type: z.string().describe(\"The annotation/field type\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier for the annotation\").nullable().optional(),\n label: z.string().describe(\"Classification label for the annotation\").nullable().optional(),\n value: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.union([z.string(), z.number().int(), z.number(), z.boolean()]))]).nullable().optional(),\n field_id: z.string().describe(\"The field_id from features array\").nullable().optional(),\n geometry: ScaleAiCreateDocumentTranscriptionTask_AnnotationGeometrySchema.nullable().optional(),\n attributes: z.record(z.string(), z.unknown()).describe(\"Additional annotation attributes\").nullable().optional(),\n}).passthrough().describe(\"Individual annotation object in the response.\");\nconst ScaleAiCreateDocumentTranscriptionTask_TaskResponseSchema = z.object({\n annotations: z.array(ScaleAiCreateDocumentTranscriptionTask_AnnotationSchema).describe(\"Array of annotation objects created by taskers\").nullable().optional(),\n}).passthrough().describe(\"Task response containing annotations when completed.\");\nexport const ScaleAiCreateDocumentTranscriptionTaskOutput = z.object({\n tags: z.array(z.string()).describe(\"Task tags if provided\").nullable().optional(),\n type: z.string().describe(\"Task type: 'documenttranscription'\").nullable().optional(),\n audits: z.array(z.record(z.string(), z.unknown())).describe(\"Array of audit records showing quality reviews and modifications\").nullable().optional(),\n params: ScaleAiCreateDocumentTranscriptionTask_TaskParamsSchema.nullable().optional(),\n status: z.string().describe(\"Current task status: 'pending', 'completed', 'canceled', or 'error'\").nullable().optional(),\n is_test: z.boolean().describe(\"Indicates if this is a test task\").nullable().optional(),\n project: z.string().describe(\"Associated project name\").nullable().optional(),\n task_id: z.string().describe(\"Unique permanent task identifier\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata object with custom key-value pairs\").nullable().optional(),\n response: ScaleAiCreateDocumentTranscriptionTask_TaskResponseSchema.nullable().optional(),\n unique_id: z.string().describe(\"Custom identifier if provided\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the task was created\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of most recent update\").nullable().optional(),\n instruction: z.string().describe(\"Task instructions as provided\").nullable().optional(),\n callback_url: z.string().describe(\"Callback endpoint if provided\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when task was finished (present only when completed)\").nullable().optional(),\n callback_completed: z.boolean().describe(\"Whether callback was successfully sent\").nullable().optional(),\n}).passthrough().describe(\"Response model for created document transcription task.\");\n\nexport const scaleAiCreateDocumentTranscriptionTask = action(\"SCALE_AI_CREATE_DOCUMENT_TRANSCRIPTION_TASK\", {\n slug: \"scale_ai-create-document-transcription-task\",\n name: \"Create Document Transcription Task\",\n description: \"Tool to create a document transcription task where workers transcribe and annotate information from single or multi-page documents. Use when you need to extract structured data from documents like invoices, forms, or screenshots.\",\n input: ScaleAiCreateDocumentTranscriptionTaskInput,\n output: ScaleAiCreateDocumentTranscriptionTaskOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA8C,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC1F,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS;CAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACzF,UAAU,EAAE,MAAM,EAAE,OAAO;EAC3B,MAAM,EAAE,OAAO,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,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const ScaleAiCreateImageAnnotationTaskInput = zod.z.object({
|
|
|
8
8
|
links: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Defines connections between annotations").optional(),
|
|
9
9
|
padding: zod.z.number().int().describe("Image padding in pixels applied to all sides").optional(),
|
|
10
10
|
project: zod.z.string().describe("Name of the project to associate this task with").optional(),
|
|
11
|
-
metadata: zod.z.
|
|
11
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs for arbitrary data (max 10KB)").optional(),
|
|
12
12
|
paddingX: zod.z.number().int().describe("Horizontal image padding in pixels. Overrides padding parameter").optional(),
|
|
13
13
|
paddingY: zod.z.number().int().describe("Vertical image padding in pixels. Overrides padding parameter").optional(),
|
|
14
14
|
priority: zod.z.union([
|
|
@@ -27,9 +27,9 @@ const ScaleAiCreateImageAnnotationTaskInput = zod.z.object({
|
|
|
27
27
|
min_vertices: zod.z.number().int().describe("Minimum number of vertices (applicable to polygon, line)").optional(),
|
|
28
28
|
camera_height: zod.z.number().describe("Height of camera from ground (applicable to cuboid)").optional(),
|
|
29
29
|
integer_pixels: zod.z.boolean().describe("Whether coordinates must be integers (applicable to box)").optional(),
|
|
30
|
-
camera_intrinsics: zod.z.
|
|
30
|
+
camera_intrinsics: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera intrinsic parameters with fx, fy, cx, cy, skew, scalefactor (applicable to cuboid)").optional(),
|
|
31
31
|
objects_to_annotate: zod.z.array(zod.z.string()).describe("List of object labels that annotators can select for this geometry type").optional(),
|
|
32
|
-
camera_rotation_quaternion: zod.z.
|
|
32
|
+
camera_rotation_quaternion: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera rotation as quaternion with w, x, y, z (applicable to cuboid)").optional()
|
|
33
33
|
}).describe("Options for a specific geometry type.").optional(),
|
|
34
34
|
line: zod.z.object({
|
|
35
35
|
min_width: zod.z.number().int().describe("Minimum width in pixels for the geometry (applicable to box, cuboid)").optional(),
|
|
@@ -39,9 +39,9 @@ const ScaleAiCreateImageAnnotationTaskInput = zod.z.object({
|
|
|
39
39
|
min_vertices: zod.z.number().int().describe("Minimum number of vertices (applicable to polygon, line)").optional(),
|
|
40
40
|
camera_height: zod.z.number().describe("Height of camera from ground (applicable to cuboid)").optional(),
|
|
41
41
|
integer_pixels: zod.z.boolean().describe("Whether coordinates must be integers (applicable to box)").optional(),
|
|
42
|
-
camera_intrinsics: zod.z.
|
|
42
|
+
camera_intrinsics: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera intrinsic parameters with fx, fy, cx, cy, skew, scalefactor (applicable to cuboid)").optional(),
|
|
43
43
|
objects_to_annotate: zod.z.array(zod.z.string()).describe("List of object labels that annotators can select for this geometry type").optional(),
|
|
44
|
-
camera_rotation_quaternion: zod.z.
|
|
44
|
+
camera_rotation_quaternion: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera rotation as quaternion with w, x, y, z (applicable to cuboid)").optional()
|
|
45
45
|
}).describe("Options for a specific geometry type.").optional(),
|
|
46
46
|
point: zod.z.object({
|
|
47
47
|
min_width: zod.z.number().int().describe("Minimum width in pixels for the geometry (applicable to box, cuboid)").optional(),
|
|
@@ -51,9 +51,9 @@ const ScaleAiCreateImageAnnotationTaskInput = zod.z.object({
|
|
|
51
51
|
min_vertices: zod.z.number().int().describe("Minimum number of vertices (applicable to polygon, line)").optional(),
|
|
52
52
|
camera_height: zod.z.number().describe("Height of camera from ground (applicable to cuboid)").optional(),
|
|
53
53
|
integer_pixels: zod.z.boolean().describe("Whether coordinates must be integers (applicable to box)").optional(),
|
|
54
|
-
camera_intrinsics: zod.z.
|
|
54
|
+
camera_intrinsics: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera intrinsic parameters with fx, fy, cx, cy, skew, scalefactor (applicable to cuboid)").optional(),
|
|
55
55
|
objects_to_annotate: zod.z.array(zod.z.string()).describe("List of object labels that annotators can select for this geometry type").optional(),
|
|
56
|
-
camera_rotation_quaternion: zod.z.
|
|
56
|
+
camera_rotation_quaternion: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera rotation as quaternion with w, x, y, z (applicable to cuboid)").optional()
|
|
57
57
|
}).describe("Options for a specific geometry type.").optional(),
|
|
58
58
|
cuboid: zod.z.object({
|
|
59
59
|
min_width: zod.z.number().int().describe("Minimum width in pixels for the geometry (applicable to box, cuboid)").optional(),
|
|
@@ -63,9 +63,9 @@ const ScaleAiCreateImageAnnotationTaskInput = zod.z.object({
|
|
|
63
63
|
min_vertices: zod.z.number().int().describe("Minimum number of vertices (applicable to polygon, line)").optional(),
|
|
64
64
|
camera_height: zod.z.number().describe("Height of camera from ground (applicable to cuboid)").optional(),
|
|
65
65
|
integer_pixels: zod.z.boolean().describe("Whether coordinates must be integers (applicable to box)").optional(),
|
|
66
|
-
camera_intrinsics: zod.z.
|
|
66
|
+
camera_intrinsics: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera intrinsic parameters with fx, fy, cx, cy, skew, scalefactor (applicable to cuboid)").optional(),
|
|
67
67
|
objects_to_annotate: zod.z.array(zod.z.string()).describe("List of object labels that annotators can select for this geometry type").optional(),
|
|
68
|
-
camera_rotation_quaternion: zod.z.
|
|
68
|
+
camera_rotation_quaternion: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera rotation as quaternion with w, x, y, z (applicable to cuboid)").optional()
|
|
69
69
|
}).describe("Options for a specific geometry type.").optional(),
|
|
70
70
|
ellipse: zod.z.object({
|
|
71
71
|
min_width: zod.z.number().int().describe("Minimum width in pixels for the geometry (applicable to box, cuboid)").optional(),
|
|
@@ -75,9 +75,9 @@ const ScaleAiCreateImageAnnotationTaskInput = zod.z.object({
|
|
|
75
75
|
min_vertices: zod.z.number().int().describe("Minimum number of vertices (applicable to polygon, line)").optional(),
|
|
76
76
|
camera_height: zod.z.number().describe("Height of camera from ground (applicable to cuboid)").optional(),
|
|
77
77
|
integer_pixels: zod.z.boolean().describe("Whether coordinates must be integers (applicable to box)").optional(),
|
|
78
|
-
camera_intrinsics: zod.z.
|
|
78
|
+
camera_intrinsics: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera intrinsic parameters with fx, fy, cx, cy, skew, scalefactor (applicable to cuboid)").optional(),
|
|
79
79
|
objects_to_annotate: zod.z.array(zod.z.string()).describe("List of object labels that annotators can select for this geometry type").optional(),
|
|
80
|
-
camera_rotation_quaternion: zod.z.
|
|
80
|
+
camera_rotation_quaternion: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera rotation as quaternion with w, x, y, z (applicable to cuboid)").optional()
|
|
81
81
|
}).describe("Options for a specific geometry type.").optional(),
|
|
82
82
|
polygon: zod.z.object({
|
|
83
83
|
min_width: zod.z.number().int().describe("Minimum width in pixels for the geometry (applicable to box, cuboid)").optional(),
|
|
@@ -87,9 +87,9 @@ const ScaleAiCreateImageAnnotationTaskInput = zod.z.object({
|
|
|
87
87
|
min_vertices: zod.z.number().int().describe("Minimum number of vertices (applicable to polygon, line)").optional(),
|
|
88
88
|
camera_height: zod.z.number().describe("Height of camera from ground (applicable to cuboid)").optional(),
|
|
89
89
|
integer_pixels: zod.z.boolean().describe("Whether coordinates must be integers (applicable to box)").optional(),
|
|
90
|
-
camera_intrinsics: zod.z.
|
|
90
|
+
camera_intrinsics: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera intrinsic parameters with fx, fy, cx, cy, skew, scalefactor (applicable to cuboid)").optional(),
|
|
91
91
|
objects_to_annotate: zod.z.array(zod.z.string()).describe("List of object labels that annotators can select for this geometry type").optional(),
|
|
92
|
-
camera_rotation_quaternion: zod.z.
|
|
92
|
+
camera_rotation_quaternion: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Camera rotation as quaternion with w, x, y, z (applicable to cuboid)").optional()
|
|
93
93
|
}).describe("Options for a specific geometry type.").optional()
|
|
94
94
|
}).describe("Specifies annotation shapes and their configurations. At least one geometry type must be provided (box, polygon, line, point, cuboid, or ellipse)"),
|
|
95
95
|
hypothesis: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Pre-labels from model predictions for refinement. Contains annotations array matching response schema").optional(),
|
|
@@ -111,7 +111,7 @@ const ScaleAiCreateImageAnnotationTaskInput = zod.z.object({
|
|
|
111
111
|
zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
112
112
|
zod.z.boolean()
|
|
113
113
|
]).optional(),
|
|
114
|
-
context_attachments: zod.z.array(zod.z.object({ attachment: zod.z.string().describe("URL to the context attachment image to show as reference") }).describe("Reference attachment displayed to annotators but not labeled.")).describe("Reference images displayed to annotators but not labeled. Cannot include the task's primary attachment").optional(),
|
|
114
|
+
context_attachments: zod.z.array(zod.z.object({ attachment: zod.z.string().describe("URL to the context attachment image to show as reference") }).passthrough().describe("Reference attachment displayed to annotators but not labeled.")).describe("Reference images displayed to annotators but not labeled. Cannot include the task's primary attachment").optional(),
|
|
115
115
|
annotation_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Captures additional metadata per annotation").optional(),
|
|
116
116
|
can_add_base_annotations: zod.z.boolean().describe("Permits adding new annotations beyond base_annotations").optional(),
|
|
117
117
|
clear_unique_id_on_error: zod.z.boolean().describe("Unsets unique_id if task errors after submission").optional(),
|
|
@@ -126,20 +126,20 @@ const ScaleAiCreateImageAnnotationTask_TaskParamsGeometriesSchema = zod.z.object
|
|
|
126
126
|
cuboid: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Cuboid geometry configuration").nullable().optional(),
|
|
127
127
|
ellipse: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Ellipse geometry configuration").nullable().optional(),
|
|
128
128
|
polygon: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Polygon geometry configuration").nullable().optional()
|
|
129
|
-
}).describe("Task parameters for geometries configuration.");
|
|
129
|
+
}).passthrough().describe("Task parameters for geometries configuration.");
|
|
130
130
|
const ScaleAiCreateImageAnnotationTask_TaskParamsSchema = zod.z.object({
|
|
131
131
|
tags: zod.z.array(zod.z.string()).describe("Task tags").nullable().optional(),
|
|
132
|
-
metadata: zod.z.
|
|
132
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Task metadata").nullable().optional(),
|
|
133
133
|
attachment: zod.z.string().describe("URL to the image being annotated").nullable().optional(),
|
|
134
134
|
geometries: ScaleAiCreateImageAnnotationTask_TaskParamsGeometriesSchema.nullable().optional(),
|
|
135
135
|
instruction: zod.z.string().describe("Task instructions").nullable().optional(),
|
|
136
136
|
attachment_type: zod.z.string().describe("Type of attachment").nullable().optional(),
|
|
137
137
|
annotation_attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional annotation attributes").nullable().optional()
|
|
138
|
-
}).describe("Task parameters containing the submitted request parameters.");
|
|
138
|
+
}).passthrough().describe("Task parameters containing the submitted request parameters.");
|
|
139
139
|
const ScaleAiCreateImageAnnotationTask_AnnotationCoordinateSchema = zod.z.object({
|
|
140
|
-
x: zod.z.number().describe("X coordinate in pixels"),
|
|
141
|
-
y: zod.z.number().describe("Y coordinate in pixels")
|
|
142
|
-
}).describe("Coordinate for annotation vertices.");
|
|
140
|
+
x: zod.z.number().describe("X coordinate in pixels").nullable(),
|
|
141
|
+
y: zod.z.number().describe("Y coordinate in pixels").nullable()
|
|
142
|
+
}).passthrough().describe("Coordinate for annotation vertices.");
|
|
143
143
|
const ScaleAiCreateImageAnnotationTask_AnnotationSchema = zod.z.object({
|
|
144
144
|
x: zod.z.number().describe("X coordinate in pixels (for point)").nullable().optional(),
|
|
145
145
|
y: zod.z.number().describe("Y coordinate in pixels (for point)").nullable().optional(),
|
|
@@ -157,8 +157,8 @@ const ScaleAiCreateImageAnnotationTask_AnnotationSchema = zod.z.object({
|
|
|
157
157
|
radius_y: zod.z.number().describe("Y radius (for ellipse)").nullable().optional(),
|
|
158
158
|
vertices: zod.z.array(ScaleAiCreateImageAnnotationTask_AnnotationCoordinateSchema).describe("Array of coordinate objects (for polygon, line)").nullable().optional(),
|
|
159
159
|
attributes: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata matching annotation_attributes schema").nullable().optional()
|
|
160
|
-
}).describe("Individual annotation object in the response.");
|
|
161
|
-
const ScaleAiCreateImageAnnotationTask_TaskResponseSchema = zod.z.object({ annotations: zod.z.array(ScaleAiCreateImageAnnotationTask_AnnotationSchema).describe("Array of annotation objects created by annotators").nullable().optional() }).describe("Task response containing the actual annotations when completed.");
|
|
160
|
+
}).passthrough().describe("Individual annotation object in the response.");
|
|
161
|
+
const ScaleAiCreateImageAnnotationTask_TaskResponseSchema = zod.z.object({ annotations: zod.z.array(ScaleAiCreateImageAnnotationTask_AnnotationSchema).describe("Array of annotation objects created by annotators").nullable().optional() }).passthrough().describe("Task response containing the actual annotations when completed.");
|
|
162
162
|
const ScaleAiCreateImageAnnotationTaskOutput = zod.z.object({
|
|
163
163
|
type: zod.z.string().describe("Task type, will be 'imageannotation'").nullable().optional(),
|
|
164
164
|
params: ScaleAiCreateImageAnnotationTask_TaskParamsSchema.nullable().optional(),
|
|
@@ -167,14 +167,14 @@ const ScaleAiCreateImageAnnotationTaskOutput = zod.z.object({
|
|
|
167
167
|
project: zod.z.string().describe("Associated project name").nullable().optional(),
|
|
168
168
|
task_id: zod.z.string().describe("Unique task identifier").nullable().optional(),
|
|
169
169
|
urgency: zod.z.string().describe("Task urgency level, default is 'standard'").nullable().optional(),
|
|
170
|
-
metadata: zod.z.
|
|
170
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Echo of provided metadata parameter").nullable().optional(),
|
|
171
171
|
response: ScaleAiCreateImageAnnotationTask_TaskResponseSchema.nullable().optional(),
|
|
172
172
|
created_at: zod.z.string().describe("Task creation timestamp in ISO 8601 format").nullable().optional(),
|
|
173
173
|
updated_at: zod.z.string().describe("Last update timestamp in ISO 8601 format").nullable().optional(),
|
|
174
174
|
instruction: zod.z.string().describe("Task instruction text").nullable().optional(),
|
|
175
175
|
callback_url: zod.z.string().describe("Callback URL for task completion notification").nullable().optional(),
|
|
176
176
|
work_started: zod.z.boolean().describe("Whether annotation work has commenced").nullable().optional()
|
|
177
|
-
}).describe("Response model for a created image annotation task.");
|
|
177
|
+
}).passthrough().describe("Response model for a created image annotation task.");
|
|
178
178
|
const scaleAiCreateImageAnnotationTask = require_action.action("SCALE_AI_CREATE_IMAGE_ANNOTATION_TASK", {
|
|
179
179
|
slug: "scale_ai-create-image-annotation-task",
|
|
180
180
|
name: "Create Image Annotation Task",
|