@keystrokehq/replicate 0.1.3 → 0.1.5
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/account-get.cjs +1 -0
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +3 -1
- package/dist/actions/account-get.d.cts.map +1 -1
- package/dist/actions/account-get.d.mts +3 -1
- package/dist/actions/account-get.d.mts.map +1 -1
- package/dist/actions/account-get.mjs +1 -0
- package/dist/actions/account-get.mjs.map +1 -1
- package/dist/actions/cancel-prediction.cjs +1 -0
- package/dist/actions/cancel-prediction.cjs.map +1 -1
- package/dist/actions/cancel-prediction.d.cts +3 -3
- package/dist/actions/cancel-prediction.d.cts.map +1 -1
- package/dist/actions/cancel-prediction.d.mts +3 -3
- package/dist/actions/cancel-prediction.d.mts.map +1 -1
- package/dist/actions/cancel-prediction.mjs +1 -0
- package/dist/actions/cancel-prediction.mjs.map +1 -1
- package/dist/actions/collections-get.cjs +1 -0
- package/dist/actions/collections-get.cjs.map +1 -1
- package/dist/actions/collections-get.d.cts +3 -3
- package/dist/actions/collections-get.d.cts.map +1 -1
- package/dist/actions/collections-get.d.mts +3 -3
- package/dist/actions/collections-get.d.mts.map +1 -1
- package/dist/actions/collections-get.mjs +1 -0
- package/dist/actions/collections-get.mjs.map +1 -1
- package/dist/actions/collections-list.cjs +1 -0
- package/dist/actions/collections-list.cjs.map +1 -1
- package/dist/actions/collections-list.d.cts +3 -3
- package/dist/actions/collections-list.d.cts.map +1 -1
- package/dist/actions/collections-list.d.mts +3 -3
- package/dist/actions/collections-list.d.mts.map +1 -1
- package/dist/actions/collections-list.mjs +1 -0
- package/dist/actions/collections-list.mjs.map +1 -1
- package/dist/actions/create-model.cjs +1 -0
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +3 -11
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +3 -11
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +1 -0
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/create-prediction.cjs +1 -0
- package/dist/actions/create-prediction.cjs.map +1 -1
- package/dist/actions/create-prediction.d.cts +4 -9
- package/dist/actions/create-prediction.d.cts.map +1 -1
- package/dist/actions/create-prediction.d.mts +4 -9
- package/dist/actions/create-prediction.d.mts.map +1 -1
- package/dist/actions/create-prediction.mjs +1 -0
- package/dist/actions/create-prediction.mjs.map +1 -1
- package/dist/actions/deployments-create.cjs +1 -0
- package/dist/actions/deployments-create.cjs.map +1 -1
- package/dist/actions/deployments-create.d.cts +3 -8
- package/dist/actions/deployments-create.d.cts.map +1 -1
- package/dist/actions/deployments-create.d.mts +3 -8
- package/dist/actions/deployments-create.d.mts.map +1 -1
- package/dist/actions/deployments-create.mjs +1 -0
- package/dist/actions/deployments-create.mjs.map +1 -1
- package/dist/actions/deployments-delete.cjs +1 -0
- package/dist/actions/deployments-delete.cjs.map +1 -1
- package/dist/actions/deployments-delete.d.cts +3 -4
- package/dist/actions/deployments-delete.d.cts.map +1 -1
- package/dist/actions/deployments-delete.d.mts +3 -4
- package/dist/actions/deployments-delete.d.mts.map +1 -1
- package/dist/actions/deployments-delete.mjs +1 -0
- package/dist/actions/deployments-delete.mjs.map +1 -1
- package/dist/actions/deployments-get.cjs +1 -0
- package/dist/actions/deployments-get.cjs.map +1 -1
- package/dist/actions/deployments-get.d.cts +3 -4
- package/dist/actions/deployments-get.d.cts.map +1 -1
- package/dist/actions/deployments-get.d.mts +3 -4
- package/dist/actions/deployments-get.d.mts.map +1 -1
- package/dist/actions/deployments-get.mjs +1 -0
- package/dist/actions/deployments-get.mjs.map +1 -1
- package/dist/actions/deployments-list.cjs +1 -0
- package/dist/actions/deployments-list.cjs.map +1 -1
- package/dist/actions/deployments-list.d.cts +3 -3
- package/dist/actions/deployments-list.d.cts.map +1 -1
- package/dist/actions/deployments-list.d.mts +3 -3
- package/dist/actions/deployments-list.d.mts.map +1 -1
- package/dist/actions/deployments-list.mjs +1 -0
- package/dist/actions/deployments-list.mjs.map +1 -1
- package/dist/actions/files-create.cjs +1 -0
- package/dist/actions/files-create.cjs.map +1 -1
- package/dist/actions/files-create.d.cts +3 -9
- package/dist/actions/files-create.d.cts.map +1 -1
- package/dist/actions/files-create.d.mts +3 -9
- package/dist/actions/files-create.d.mts.map +1 -1
- package/dist/actions/files-create.mjs +1 -0
- package/dist/actions/files-create.mjs.map +1 -1
- package/dist/actions/files-delete.cjs +1 -0
- package/dist/actions/files-delete.cjs.map +1 -1
- package/dist/actions/files-delete.d.cts +3 -3
- package/dist/actions/files-delete.d.cts.map +1 -1
- package/dist/actions/files-delete.d.mts +3 -3
- package/dist/actions/files-delete.d.mts.map +1 -1
- package/dist/actions/files-delete.mjs +1 -0
- package/dist/actions/files-delete.mjs.map +1 -1
- package/dist/actions/files-get.cjs +1 -0
- package/dist/actions/files-get.cjs.map +1 -1
- package/dist/actions/files-get.d.cts +3 -3
- package/dist/actions/files-get.d.cts.map +1 -1
- package/dist/actions/files-get.d.mts +3 -3
- package/dist/actions/files-get.d.mts.map +1 -1
- package/dist/actions/files-get.mjs +1 -0
- package/dist/actions/files-get.mjs.map +1 -1
- package/dist/actions/files-list.cjs +1 -0
- package/dist/actions/files-list.cjs.map +1 -1
- package/dist/actions/files-list.d.cts +3 -3
- package/dist/actions/files-list.d.cts.map +1 -1
- package/dist/actions/files-list.d.mts +3 -3
- package/dist/actions/files-list.d.mts.map +1 -1
- package/dist/actions/files-list.mjs +1 -0
- package/dist/actions/files-list.mjs.map +1 -1
- package/dist/actions/get-prediction.cjs +1 -0
- package/dist/actions/get-prediction.cjs.map +1 -1
- package/dist/actions/get-prediction.d.cts +3 -3
- package/dist/actions/get-prediction.d.cts.map +1 -1
- package/dist/actions/get-prediction.d.mts +3 -3
- package/dist/actions/get-prediction.d.mts.map +1 -1
- package/dist/actions/get-prediction.mjs +1 -0
- package/dist/actions/get-prediction.mjs.map +1 -1
- package/dist/actions/hardware-list.cjs +1 -0
- package/dist/actions/hardware-list.cjs.map +1 -1
- package/dist/actions/hardware-list.d.cts +3 -1
- package/dist/actions/hardware-list.d.cts.map +1 -1
- package/dist/actions/hardware-list.d.mts +3 -1
- package/dist/actions/hardware-list.d.mts.map +1 -1
- package/dist/actions/hardware-list.mjs +1 -0
- package/dist/actions/hardware-list.mjs.map +1 -1
- package/dist/actions/models-examples-list.cjs +1 -0
- package/dist/actions/models-examples-list.cjs.map +1 -1
- package/dist/actions/models-examples-list.d.cts +3 -5
- package/dist/actions/models-examples-list.d.cts.map +1 -1
- package/dist/actions/models-examples-list.d.mts +3 -5
- package/dist/actions/models-examples-list.d.mts.map +1 -1
- package/dist/actions/models-examples-list.mjs +1 -0
- package/dist/actions/models-examples-list.mjs.map +1 -1
- package/dist/actions/models-get.cjs +1 -0
- package/dist/actions/models-get.cjs.map +1 -1
- package/dist/actions/models-get.d.cts +3 -4
- package/dist/actions/models-get.d.cts.map +1 -1
- package/dist/actions/models-get.d.mts +3 -4
- package/dist/actions/models-get.d.mts.map +1 -1
- package/dist/actions/models-get.mjs +1 -0
- package/dist/actions/models-get.mjs.map +1 -1
- package/dist/actions/models-list.cjs +1 -0
- package/dist/actions/models-list.cjs.map +1 -1
- package/dist/actions/models-list.d.cts +3 -5
- package/dist/actions/models-list.d.cts.map +1 -1
- package/dist/actions/models-list.d.mts +3 -5
- package/dist/actions/models-list.d.mts.map +1 -1
- package/dist/actions/models-list.mjs +1 -0
- package/dist/actions/models-list.mjs.map +1 -1
- package/dist/actions/models-predictions-create.cjs +1 -0
- package/dist/actions/models-predictions-create.cjs.map +1 -1
- package/dist/actions/models-predictions-create.d.cts +4 -10
- package/dist/actions/models-predictions-create.d.cts.map +1 -1
- package/dist/actions/models-predictions-create.d.mts +4 -10
- package/dist/actions/models-predictions-create.d.mts.map +1 -1
- package/dist/actions/models-predictions-create.mjs +1 -0
- package/dist/actions/models-predictions-create.mjs.map +1 -1
- package/dist/actions/models-readme-get.cjs +1 -0
- package/dist/actions/models-readme-get.cjs.map +1 -1
- package/dist/actions/models-readme-get.d.cts +3 -4
- package/dist/actions/models-readme-get.d.cts.map +1 -1
- package/dist/actions/models-readme-get.d.mts +3 -4
- package/dist/actions/models-readme-get.d.mts.map +1 -1
- package/dist/actions/models-readme-get.mjs +1 -0
- package/dist/actions/models-readme-get.mjs.map +1 -1
- package/dist/actions/models-versions-get.cjs +1 -0
- package/dist/actions/models-versions-get.cjs.map +1 -1
- package/dist/actions/models-versions-get.d.cts +3 -5
- package/dist/actions/models-versions-get.d.cts.map +1 -1
- package/dist/actions/models-versions-get.d.mts +3 -5
- package/dist/actions/models-versions-get.d.mts.map +1 -1
- package/dist/actions/models-versions-get.mjs +1 -0
- package/dist/actions/models-versions-get.mjs.map +1 -1
- package/dist/actions/models-versions-list.cjs +1 -0
- package/dist/actions/models-versions-list.cjs.map +1 -1
- package/dist/actions/models-versions-list.d.cts +3 -5
- package/dist/actions/models-versions-list.d.cts.map +1 -1
- package/dist/actions/models-versions-list.d.mts +3 -5
- package/dist/actions/models-versions-list.d.mts.map +1 -1
- package/dist/actions/models-versions-list.mjs +1 -0
- package/dist/actions/models-versions-list.mjs.map +1 -1
- package/dist/actions/predictions-create.cjs +1 -0
- package/dist/actions/predictions-create.cjs.map +1 -1
- package/dist/actions/predictions-create.d.cts +4 -10
- package/dist/actions/predictions-create.d.cts.map +1 -1
- package/dist/actions/predictions-create.d.mts +4 -10
- package/dist/actions/predictions-create.d.mts.map +1 -1
- package/dist/actions/predictions-create.mjs +1 -0
- package/dist/actions/predictions-create.mjs.map +1 -1
- package/dist/actions/predictions-list.cjs +1 -0
- package/dist/actions/predictions-list.cjs.map +1 -1
- package/dist/actions/predictions-list.d.cts +3 -5
- package/dist/actions/predictions-list.d.cts.map +1 -1
- package/dist/actions/predictions-list.d.mts +3 -5
- package/dist/actions/predictions-list.d.mts.map +1 -1
- package/dist/actions/predictions-list.mjs +1 -0
- package/dist/actions/predictions-list.mjs.map +1 -1
- package/dist/actions/search.cjs +1 -0
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +3 -4
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +3 -4
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +1 -0
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/trainings-cancel.cjs +1 -0
- package/dist/actions/trainings-cancel.cjs.map +1 -1
- package/dist/actions/trainings-cancel.d.cts +3 -3
- package/dist/actions/trainings-cancel.d.cts.map +1 -1
- package/dist/actions/trainings-cancel.d.mts +3 -3
- package/dist/actions/trainings-cancel.d.mts.map +1 -1
- package/dist/actions/trainings-cancel.mjs +1 -0
- package/dist/actions/trainings-cancel.mjs.map +1 -1
- package/dist/actions/trainings-create.cjs +1 -0
- package/dist/actions/trainings-create.cjs.map +1 -1
- package/dist/actions/trainings-create.d.cts +4 -10
- package/dist/actions/trainings-create.d.cts.map +1 -1
- package/dist/actions/trainings-create.d.mts +4 -10
- package/dist/actions/trainings-create.d.mts.map +1 -1
- package/dist/actions/trainings-create.mjs +1 -0
- package/dist/actions/trainings-create.mjs.map +1 -1
- package/dist/actions/trainings-list.cjs +1 -0
- package/dist/actions/trainings-list.cjs.map +1 -1
- package/dist/actions/trainings-list.d.cts +3 -3
- package/dist/actions/trainings-list.d.cts.map +1 -1
- package/dist/actions/trainings-list.d.mts +3 -3
- package/dist/actions/trainings-list.d.mts.map +1 -1
- package/dist/actions/trainings-list.mjs +1 -0
- package/dist/actions/trainings-list.mjs.map +1 -1
- package/dist/actions/update-models.cjs +1 -0
- package/dist/actions/update-models.cjs.map +1 -1
- package/dist/actions/update-models.d.cts +3 -10
- package/dist/actions/update-models.d.cts.map +1 -1
- package/dist/actions/update-models.d.mts +3 -10
- package/dist/actions/update-models.d.mts.map +1 -1
- package/dist/actions/update-models.mjs +1 -0
- package/dist/actions/update-models.mjs.map +1 -1
- package/dist/actions/webhooks-secret-get.cjs +1 -0
- package/dist/actions/webhooks-secret-get.cjs.map +1 -1
- package/dist/actions/webhooks-secret-get.d.cts +3 -1
- package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +3 -1
- package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -0
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments-list.mjs","names":[],"sources":["../../src/actions/deployments-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing deployments with optional pagination.\");\nconst ReplicateDeploymentsList_CreatedBySchema = z.object({\n name: z.string().describe(\"Display name of the creator\").nullable(),\n type: z.string().describe(\"Type of creator (e.g., 'organization', 'user')\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL to the creator's avatar image\").nullable().optional(),\n github_url: z.string().describe(\"URL to the creator's GitHub profile\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a deployment release.\");\nconst ReplicateDeploymentsList_ReleaseConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU used for the deployment\").nullable(),\n max_instances: z.number().int().describe(\"Maximum number of instances allowed\").nullable(),\n min_instances: z.number().int().describe(\"Minimum number of instances to maintain\").nullable(),\n}).passthrough().describe(\"Configuration details for a deployment release.\");\nconst ReplicateDeploymentsList_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Model identifier\").nullable(),\n number: z.number().int().describe(\"Release number\").nullable(),\n version: z.string().describe(\"64-character version ID of the model\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the release was created\").nullable(),\n created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable(),\n}).passthrough().describe(\"Latest release configuration for a deployment.\");\nconst ReplicateDeploymentsList_DeploymentSchema = z.object({\n name: z.string().describe(\"Name of the deployment\").nullable(),\n owner: z.string().describe(\"Owner of the deployment\").nullable(),\n current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable(),\n}).passthrough().describe(\"Representation of a deployment.\");\nexport const ReplicateDeploymentsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateDeploymentsList_DeploymentSchema).describe(\"List of deployments returned in this page, sorted with most recent deployment first\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of deployments.\");\n\nexport const replicateDeploymentsList = action(\"REPLICATE_DEPLOYMENTS_LIST\", {\n slug: \"replicate-deployments-list\",\n name: \"List deployments\",\n description: \"Tool to list all deployments associated with the account. Use when you need to retrieve deployment configurations and their latest releases.\",\n input: ReplicateDeploymentsListInput,\n output: ReplicateDeploymentsListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployments-list.mjs","names":[],"sources":["../../src/actions/deployments-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateDeploymentsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing deployments with optional pagination.\");\nconst ReplicateDeploymentsList_CreatedBySchema = z.object({\n name: z.string().describe(\"Display name of the creator\").nullable(),\n type: z.string().describe(\"Type of creator (e.g., 'organization', 'user')\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL to the creator's avatar image\").nullable().optional(),\n github_url: z.string().describe(\"URL to the creator's GitHub profile\").nullable().optional(),\n}).passthrough().describe(\"Creator information for a deployment release.\");\nconst ReplicateDeploymentsList_ReleaseConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU used for the deployment\").nullable(),\n max_instances: z.number().int().describe(\"Maximum number of instances allowed\").nullable(),\n min_instances: z.number().int().describe(\"Minimum number of instances to maintain\").nullable(),\n}).passthrough().describe(\"Configuration details for a deployment release.\");\nconst ReplicateDeploymentsList_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Model identifier\").nullable(),\n number: z.number().int().describe(\"Release number\").nullable(),\n version: z.string().describe(\"64-character version ID of the model\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the release was created\").nullable(),\n created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable(),\n}).passthrough().describe(\"Latest release configuration for a deployment.\");\nconst ReplicateDeploymentsList_DeploymentSchema = z.object({\n name: z.string().describe(\"Name of the deployment\").nullable(),\n owner: z.string().describe(\"Owner of the deployment\").nullable(),\n current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable(),\n}).passthrough().describe(\"Representation of a deployment.\");\nexport const ReplicateDeploymentsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateDeploymentsList_DeploymentSchema).describe(\"List of deployments returned in this page, sorted with most recent deployment first\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of deployments.\");\n\nexport const replicateDeploymentsList: AppAction<\n typeof ReplicateDeploymentsListInput,\n typeof ReplicateDeploymentsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_DEPLOYMENTS_LIST\", {\n slug: \"replicate-deployments-list\",\n name: \"List deployments\",\n description: \"Tool to list all deployments associated with the account. Use when you need to retrieve deployment configurations and their latest releases.\",\n input: ReplicateDeploymentsListInput,\n output: ReplicateDeploymentsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,2CAA2C,EAAE,OAAO;CACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAM,sDAAsD,EAAE,OAAO;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACzF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAM,gDAAgD,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAY,yCAAyC,SAAS;CAC9D,eAAe,oDAAoD,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,iBAAiB,8CAA8C,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iCAAiC;AAO3D,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,qFAAqF;EAC1J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-create.cjs","names":["z","action"],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesCreateInput = z.object({\n content: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).passthrough().describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-create.cjs","names":["z","action"],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateFilesCreateInput = z.object({\n content: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).passthrough().describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate: AppAction<\n typeof ReplicateFilesCreateInput,\n typeof ReplicateFilesCreateOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB;CAC3B,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qDAAqDA,IAAAA,EAAE,OAAO,EAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,C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
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/files-create.d.ts
|
|
@@ -27,15 +29,7 @@ declare const ReplicateFilesCreateOutput: z.ZodObject<{
|
|
|
27
29
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
30
|
content_type: z.ZodNullable<z.ZodString>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const replicateFilesCreate:
|
|
31
|
-
content: {
|
|
32
|
-
name: string;
|
|
33
|
-
s3key: string;
|
|
34
|
-
mimetype: string;
|
|
35
|
-
};
|
|
36
|
-
metadata?: Record<string, unknown> | undefined;
|
|
37
|
-
content_type?: string | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
declare const replicateFilesCreate: AppAction<typeof ReplicateFilesCreateInput, typeof ReplicateFilesCreateOutput, typeof replicate.credential>;
|
|
39
33
|
//#endregion
|
|
40
34
|
export { replicateFilesCreate };
|
|
41
35
|
//# sourceMappingURL=files-create.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-create.d.cts","names":[],"sources":["../../src/actions/files-create.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-create.d.cts","names":[],"sources":["../../src/actions/files-create.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cAgBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAa1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/files-create.d.ts
|
|
@@ -27,15 +29,7 @@ declare const ReplicateFilesCreateOutput: z.ZodObject<{
|
|
|
27
29
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
30
|
content_type: z.ZodNullable<z.ZodString>;
|
|
29
31
|
}, z.core.$loose>;
|
|
30
|
-
declare const replicateFilesCreate:
|
|
31
|
-
content: {
|
|
32
|
-
name: string;
|
|
33
|
-
s3key: string;
|
|
34
|
-
mimetype: string;
|
|
35
|
-
};
|
|
36
|
-
metadata?: Record<string, unknown> | undefined;
|
|
37
|
-
content_type?: string | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
|
+
declare const replicateFilesCreate: AppAction<typeof ReplicateFilesCreateInput, typeof ReplicateFilesCreateOutput, typeof replicate.credential>;
|
|
39
33
|
//#endregion
|
|
40
34
|
export { replicateFilesCreate };
|
|
41
35
|
//# sourceMappingURL=files-create.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-create.d.mts","names":[],"sources":["../../src/actions/files-create.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-create.d.mts","names":[],"sources":["../../src/actions/files-create.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;cAgBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAa1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-create.mjs","names":[],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesCreateInput = z.object({\n content: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).passthrough().describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-create.mjs","names":[],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateFilesCreateInput = z.object({\n content: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).passthrough().describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate: AppAction<\n typeof ReplicateFilesCreateInput,\n typeof ReplicateFilesCreateOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB;CAC3B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qDAAqD,EAAE,OAAO,EAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,0DAA0D,EAAE,OAAO;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AAcnD,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAtBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,MAAM,mDAAmD,SAAS;EAClE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;EACtG,WAAW,wDAAwD,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-delete.cjs","names":["z","action"],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesDeleteInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-delete.cjs","names":["z","action"],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateFilesDeleteInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete: AppAction<\n typeof ReplicateFilesDeleteInput,\n typeof ReplicateFilesDeleteOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAC5E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/files-delete.d.ts
|
|
@@ -8,9 +10,7 @@ declare const ReplicateFilesDeleteOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const replicateFilesDelete:
|
|
12
|
-
file_id: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const replicateFilesDelete: AppAction<typeof ReplicateFilesDeleteInput, typeof ReplicateFilesDeleteOutput, typeof replicate.credential>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { replicateFilesDelete };
|
|
16
16
|
//# sourceMappingURL=files-delete.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-delete.d.cts","names":[],"sources":["../../src/actions/files-delete.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-delete.d.cts","names":[],"sources":["../../src/actions/files-delete.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/files-delete.d.ts
|
|
@@ -8,9 +10,7 @@ declare const ReplicateFilesDeleteOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const replicateFilesDelete:
|
|
12
|
-
file_id: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const replicateFilesDelete: AppAction<typeof ReplicateFilesDeleteInput, typeof ReplicateFilesDeleteOutput, typeof replicate.credential>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { replicateFilesDelete };
|
|
16
16
|
//# sourceMappingURL=files-delete.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-delete.d.mts","names":[],"sources":["../../src/actions/files-delete.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-delete.d.mts","names":[],"sources":["../../src/actions/files-delete.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-delete.mjs","names":[],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesDeleteInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-delete.mjs","names":[],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateFilesDeleteInput = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete: AppAction<\n typeof ReplicateFilesDeleteInput,\n typeof ReplicateFilesDeleteOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":";;;AAcA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBuC,EAAE,OAAO,EAChD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAC5E,CAAC,CAAC,CAAC,SAAS,+CAcH;CACP,QAdwC,EAAE,OAAO;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-get.cjs","names":["z","action"],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-get.cjs","names":["z","action"],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet: AppAction<\n typeof ReplicateFilesGetInput,\n typeof ReplicateFilesGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,EACpM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO,EAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC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|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/files-get.d.ts
|
|
@@ -21,9 +23,7 @@ declare const ReplicateFilesGetOutput: z.ZodObject<{
|
|
|
21
23
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
content_type: z.ZodNullable<z.ZodString>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const replicateFilesGet:
|
|
25
|
-
file_id: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const replicateFilesGet: AppAction<typeof ReplicateFilesGetInput, typeof ReplicateFilesGetOutput, typeof replicate.credential>;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { replicateFilesGet };
|
|
29
29
|
//# sourceMappingURL=files-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-get.d.cts","names":[],"sources":["../../src/actions/files-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-get.d.cts","names":[],"sources":["../../src/actions/files-get.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAUtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAavB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/files-get.d.ts
|
|
@@ -21,9 +23,7 @@ declare const ReplicateFilesGetOutput: z.ZodObject<{
|
|
|
21
23
|
expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
content_type: z.ZodNullable<z.ZodString>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const replicateFilesGet:
|
|
25
|
-
file_id: string;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const replicateFilesGet: AppAction<typeof ReplicateFilesGetInput, typeof ReplicateFilesGetOutput, typeof replicate.credential>;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { replicateFilesGet };
|
|
29
29
|
//# sourceMappingURL=files-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-get.d.mts","names":[],"sources":["../../src/actions/files-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-get.d.mts","names":[],"sources":["../../src/actions/files-get.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAUtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAavB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-get.mjs","names":[],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-get.mjs","names":[],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).passthrough().describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet: AppAction<\n typeof ReplicateFilesGetInput,\n typeof ReplicateFilesGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,EACpM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mCAAmC,EAAE,OAAO,EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,wCAAwC,EAAE,OAAO;CACrD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AActE,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAtBqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,MAAM,iCAAiC,SAAS;EAChD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,WAAW,sCAAsC,SAAS;EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-list.cjs","names":["z","action"],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing files with optional pagination.\");\nconst ReplicateFilesList_FileUrlsSchema = z.object({\n get: z.string().describe(\"URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesList_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nconst ReplicateFilesList_FileSchema = z.object({\n id: z.string().describe(\"Unique random identifier for the file\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"File length in bytes, must be non-negative\").nullable(),\n urls: ReplicateFilesList_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata (can be empty object)\"),\n checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 date-time format\").nullable(),\n expires_at: z.string().describe(\"Expiration timestamp in ISO 8601 date-time format\").nullable(),\n content_type: z.string().describe(\"MIME type of the file\").nullable(),\n}).passthrough().describe(\"Representation of a file object.\");\nexport const ReplicateFilesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateFilesList_FileSchema).describe(\"List of files returned in this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of files.\");\n\nexport const replicateFilesList = action(\"REPLICATE_FILES_LIST\", {\n slug: \"replicate-files-list\",\n name: \"List Files\",\n description: \"Tool to retrieve a paginated list of uploaded files. Use to view all files created by the authenticated user or organization. Files are sorted with most recent first. Pagination is cursor-based: follow the next cursor until empty to retrieve all files. Limit requests to 1–2/second to avoid 429 Too Many Requests errors. Use to validate current file_ids before passing to prediction tools, as stale file_ids cause runtime errors.\",\n input: ReplicateFilesListInput,\n output: ReplicateFilesListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-list.cjs","names":["z","action"],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateFilesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing files with optional pagination.\");\nconst ReplicateFilesList_FileUrlsSchema = z.object({\n get: z.string().describe(\"URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesList_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nconst ReplicateFilesList_FileSchema = z.object({\n id: z.string().describe(\"Unique random identifier for the file\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"File length in bytes, must be non-negative\").nullable(),\n urls: ReplicateFilesList_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata (can be empty object)\"),\n checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 date-time format\").nullable(),\n expires_at: z.string().describe(\"Expiration timestamp in ISO 8601 date-time format\").nullable(),\n content_type: z.string().describe(\"MIME type of the file\").nullable(),\n}).passthrough().describe(\"Representation of a file object.\");\nexport const ReplicateFilesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateFilesList_FileSchema).describe(\"List of files returned in this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of files.\");\n\nexport const replicateFilesList: AppAction<\n typeof ReplicateFilesListInput,\n typeof ReplicateFilesListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_FILES_LIST\", {\n slug: \"replicate-files-list\",\n name: \"List Files\",\n description: \"Tool to retrieve a paginated list of uploaded files. Use to view all files created by the authenticated user or organization. Files are sorted with most recent first. Pagination is cursor-based: follow the next cursor until empty to retrieve all files. Limit requests to 1–2/second to avoid 429 Too Many Requests errors. Use to validate current file_ids before passing to prediction tools, as stale file_ids cause runtime errors.\",\n input: ReplicateFilesListInput,\n output: ReplicateFilesListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,C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"@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/files-list.d.ts
|
|
@@ -25,9 +27,7 @@ declare const ReplicateFilesListOutput: z.ZodObject<{
|
|
|
25
27
|
}, z.core.$loose>>;
|
|
26
28
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
}, z.core.$loose>;
|
|
28
|
-
declare const replicateFilesList:
|
|
29
|
-
cursor?: string | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
|
+
declare const replicateFilesList: AppAction<typeof ReplicateFilesListInput, typeof ReplicateFilesListOutput, typeof replicate.credential>;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { replicateFilesList };
|
|
33
33
|
//# sourceMappingURL=files-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-list.d.cts","names":[],"sources":["../../src/actions/files-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-list.d.cts","names":[],"sources":["../../src/actions/files-list.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/files-list.d.ts
|
|
@@ -25,9 +27,7 @@ declare const ReplicateFilesListOutput: z.ZodObject<{
|
|
|
25
27
|
}, z.core.$loose>>;
|
|
26
28
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
}, z.core.$loose>;
|
|
28
|
-
declare const replicateFilesList:
|
|
29
|
-
cursor?: string | undefined;
|
|
30
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
|
+
declare const replicateFilesList: AppAction<typeof ReplicateFilesListInput, typeof ReplicateFilesListOutput, typeof replicate.credential>;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { replicateFilesList };
|
|
33
33
|
//# sourceMappingURL=files-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-list.d.mts","names":[],"sources":["../../src/actions/files-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-list.d.mts","names":[],"sources":["../../src/actions/files-list.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-list.mjs","names":[],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing files with optional pagination.\");\nconst ReplicateFilesList_FileUrlsSchema = z.object({\n get: z.string().describe(\"URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesList_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nconst ReplicateFilesList_FileSchema = z.object({\n id: z.string().describe(\"Unique random identifier for the file\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"File length in bytes, must be non-negative\").nullable(),\n urls: ReplicateFilesList_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata (can be empty object)\"),\n checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 date-time format\").nullable(),\n expires_at: z.string().describe(\"Expiration timestamp in ISO 8601 date-time format\").nullable(),\n content_type: z.string().describe(\"MIME type of the file\").nullable(),\n}).passthrough().describe(\"Representation of a file object.\");\nexport const ReplicateFilesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateFilesList_FileSchema).describe(\"List of files returned in this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of files.\");\n\nexport const replicateFilesList = action(\"REPLICATE_FILES_LIST\", {\n slug: \"replicate-files-list\",\n name: \"List Files\",\n description: \"Tool to retrieve a paginated list of uploaded files. Use to view all files created by the authenticated user or organization. Files are sorted with most recent first. Pagination is cursor-based: follow the next cursor until empty to retrieve all files. Limit requests to 1–2/second to avoid 429 Too Many Requests errors. Use to validate current file_ids before passing to prediction tools, as stale file_ids cause runtime errors.\",\n input: ReplicateFilesListInput,\n output: ReplicateFilesListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"files-list.mjs","names":[],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateFilesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing files with optional pagination.\");\nconst ReplicateFilesList_FileUrlsSchema = z.object({\n get: z.string().describe(\"URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesList_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nconst ReplicateFilesList_FileSchema = z.object({\n id: z.string().describe(\"Unique random identifier for the file\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"File length in bytes, must be non-negative\").nullable(),\n urls: ReplicateFilesList_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata (can be empty object)\"),\n checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 date-time format\").nullable(),\n expires_at: z.string().describe(\"Expiration timestamp in ISO 8601 date-time format\").nullable(),\n content_type: z.string().describe(\"MIME type of the file\").nullable(),\n}).passthrough().describe(\"Representation of a file object.\");\nexport const ReplicateFilesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateFilesList_FileSchema).describe(\"List of files returned in this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of files.\");\n\nexport const replicateFilesList: AppAction<\n typeof ReplicateFilesListInput,\n typeof ReplicateFilesListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_FILES_LIST\", {\n slug: \"replicate-files-list\",\n name: \"List Files\",\n description: \"Tool to retrieve a paginated list of uploaded files. Use to view all files created by the authenticated user or organization. Files are sorted with most recent first. Pagination is cursor-based: follow the next cursor until empty to retrieve all files. Limit requests to 1–2/second to avoid 429 Too Many Requests errors. Use to validate current file_ids before passing to prediction tools, as stale file_ids cause runtime errors.\",\n input: Re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C,SAAS;CAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAO5D,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,qCAAqC;EAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.cjs","names":["z","action"],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).passthrough().describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).passthrough().describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The model version that created the prediction\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for getting a prediction.\");\n\nexport const replicateGetPrediction = action(\"REPLICATE_GET_PREDICTION\", {\n slug: \"replicate-get-prediction\",\n name: \"Get Prediction\",\n description: \"Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.\",\n input: ReplicateGetPredictionInput,\n output: ReplicateGetPredictionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-prediction.cjs","names":["z","action"],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).passthrough().describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).passthrough().describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The model version that created the prediction\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for getting a prediction.\");\n\nexport const replicateGetPrediction: AppAction<\n typeof ReplicateGetPredictionInput,\n typeof ReplicateGetPredictionOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_GET_PREDICTION\", {\n slug: \"replicate-get-prediction\",\n name: \"Get Prediction\",\n description: \"Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.\",\n input: ReplicateGetPredictionInput,\n output: ReplicateGetPredictionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,EACtE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,gDAAgDA,IAAAA,EAAE,KA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;CACtJ,QAAQ,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAC1E,QAAQ,8CAA8C,SAAS;CAC/D,SAAS,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-prediction.d.ts
|
|
@@ -40,9 +42,7 @@ declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
|
40
42
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
43
|
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const replicateGetPrediction:
|
|
44
|
-
prediction_id: string;
|
|
45
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
|
+
declare const replicateGetPrediction: AppAction<typeof ReplicateGetPredictionInput, typeof ReplicateGetPredictionOutput, typeof replicate.credential>;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { replicateGetPrediction };
|
|
48
48
|
//# sourceMappingURL=get-prediction.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.d.cts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-prediction.d.cts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-prediction.d.ts
|
|
@@ -40,9 +42,7 @@ declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
|
40
42
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
43
|
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
42
44
|
}, z.core.$loose>;
|
|
43
|
-
declare const replicateGetPrediction:
|
|
44
|
-
prediction_id: string;
|
|
45
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
45
|
+
declare const replicateGetPrediction: AppAction<typeof ReplicateGetPredictionInput, typeof ReplicateGetPredictionOutput, typeof replicate.credential>;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { replicateGetPrediction };
|
|
48
48
|
//# sourceMappingURL=get-prediction.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.d.mts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-prediction.d.mts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.mjs","names":[],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).passthrough().describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).passthrough().describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The model version that created the prediction\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for getting a prediction.\");\n\nexport const replicateGetPrediction = action(\"REPLICATE_GET_PREDICTION\", {\n slug: \"replicate-get-prediction\",\n name: \"Get Prediction\",\n description: \"Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.\",\n input: ReplicateGetPredictionInput,\n output: ReplicateGetPredictionOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-prediction.mjs","names":[],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).passthrough().describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).passthrough().describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The model version that created the prediction\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for getting a prediction.\");\n\nexport const replicateGetPrediction: AppAction<\n typeof ReplicateGetPredictionInput,\n typeof ReplicateGetPredictionOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_GET_PREDICTION\", {\n slug: \"replicate-get-prediction\",\n name: \"Get Prediction\",\n description: \"Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.\",\n input: ReplicateGetPredictionInput,\n output: ReplicateGetPredictionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO,EAClD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,EACtE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,gDAAgD,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,S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