@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":"trainings-list.cjs","names":["z","action"],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).passthrough().describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"trainings-list.cjs","names":["z","action"],"sources":["../../src/actions/trainings-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 ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).passthrough().describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList: AppAction<\n typeof ReplicateTrainingsListInput,\n typeof ReplicateTrainingsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,C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;CACtI,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uEAAuE;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,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/trainings-list.d.ts
|
|
@@ -33,9 +35,7 @@ declare const ReplicateTrainingsListOutput: z.ZodObject<{
|
|
|
33
35
|
}, z.core.$loose>>;
|
|
34
36
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const replicateTrainingsList:
|
|
37
|
-
cursor?: string | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
38
|
+
declare const replicateTrainingsList: AppAction<typeof ReplicateTrainingsListInput, typeof ReplicateTrainingsListOutput, typeof replicate.credential>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { replicateTrainingsList };
|
|
41
41
|
//# sourceMappingURL=trainings-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-list.d.cts","names":[],"sources":["../../src/actions/trainings-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"trainings-list.d.cts","names":[],"sources":["../../src/actions/trainings-list.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,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/trainings-list.d.ts
|
|
@@ -33,9 +35,7 @@ declare const ReplicateTrainingsListOutput: z.ZodObject<{
|
|
|
33
35
|
}, z.core.$loose>>;
|
|
34
36
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
37
|
}, z.core.$loose>;
|
|
36
|
-
declare const replicateTrainingsList:
|
|
37
|
-
cursor?: string | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
38
|
+
declare const replicateTrainingsList: AppAction<typeof ReplicateTrainingsListInput, typeof ReplicateTrainingsListOutput, typeof replicate.credential>;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { replicateTrainingsList };
|
|
41
41
|
//# sourceMappingURL=trainings-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-list.d.mts","names":[],"sources":["../../src/actions/trainings-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"trainings-list.d.mts","names":[],"sources":["../../src/actions/trainings-list.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-list.mjs","names":[],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).passthrough().describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"trainings-list.mjs","names":[],"sources":["../../src/actions/trainings-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 ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).passthrough().describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList: AppAction<\n typeof ReplicateTrainingsListInput,\n typeof ReplicateTrainingsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,CAAC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CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAOpE,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uEAAuE;EACxI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-models.cjs","names":["z","action"],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n model_name: z.string().describe(\"The name of the model to update\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-models.cjs","names":["z","action"],"sources":["../../src/actions/update-models.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 ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n model_name: z.string().describe(\"The name of the model to update\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a model's metadata.\");\n\nexport const replicateUpdateModels: AppAction<\n typeof ReplicateUpdateModelsInput,\n typeof ReplicateUpdateModelsOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,C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,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/update-models.d.ts
|
|
@@ -26,16 +28,7 @@ declare const ReplicateUpdateModelsOutput: z.ZodObject<{
|
|
|
26
28
|
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const replicateUpdateModels:
|
|
30
|
-
model_name: string;
|
|
31
|
-
model_owner: string;
|
|
32
|
-
readme?: string | undefined;
|
|
33
|
-
paper_url?: string | undefined;
|
|
34
|
-
github_url?: string | undefined;
|
|
35
|
-
description?: string | undefined;
|
|
36
|
-
license_url?: string | undefined;
|
|
37
|
-
weights_url?: string | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
declare const replicateUpdateModels: AppAction<typeof ReplicateUpdateModelsInput, typeof ReplicateUpdateModelsOutput, typeof replicate.credential>;
|
|
39
32
|
//#endregion
|
|
40
33
|
export { replicateUpdateModels };
|
|
41
34
|
//# sourceMappingURL=update-models.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-models.d.cts","names":[],"sources":["../../src/actions/update-models.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-models.d.cts","names":[],"sources":["../../src/actions/update-models.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAU1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/update-models.d.ts
|
|
@@ -26,16 +28,7 @@ declare const ReplicateUpdateModelsOutput: z.ZodObject<{
|
|
|
26
28
|
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
29
|
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const replicateUpdateModels:
|
|
30
|
-
model_name: string;
|
|
31
|
-
model_owner: string;
|
|
32
|
-
readme?: string | undefined;
|
|
33
|
-
paper_url?: string | undefined;
|
|
34
|
-
github_url?: string | undefined;
|
|
35
|
-
description?: string | undefined;
|
|
36
|
-
license_url?: string | undefined;
|
|
37
|
-
weights_url?: string | undefined;
|
|
38
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
31
|
+
declare const replicateUpdateModels: AppAction<typeof ReplicateUpdateModelsInput, typeof ReplicateUpdateModelsOutput, typeof replicate.credential>;
|
|
39
32
|
//#endregion
|
|
40
33
|
export { replicateUpdateModels };
|
|
41
34
|
//# sourceMappingURL=update-models.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-models.d.mts","names":[],"sources":["../../src/actions/update-models.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-models.d.mts","names":[],"sources":["../../src/actions/update-models.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAU1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-models.mjs","names":[],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n model_name: z.string().describe(\"The name of the model to update\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-models.mjs","names":[],"sources":["../../src/actions/update-models.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 ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n model_name: z.string().describe(\"The name of the model to update\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a model's metadata.\");\n\nexport const replicateUpdateModels: AppAction<\n typeof ReplicateUpdateModelsInput,\n typeof ReplicateUpdateModelsOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;;AAgCA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,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S;EACtF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-secret-get.cjs","names":["z","action"],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).passthrough().describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks-secret-get.cjs","names":["z","action"],"sources":["../../src/actions/webhooks-secret-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 ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).passthrough().describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet: AppAction<\n typeof ReplicateWebhooksSecretGetInput,\n typeof ReplicateWebhooksSecretGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACzI,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,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/webhooks-secret-get.d.ts
|
|
@@ -5,7 +7,7 @@ declare const ReplicateWebhooksSecretGetInput: z.ZodObject<{}, z.core.$strip>;
|
|
|
5
7
|
declare const ReplicateWebhooksSecretGetOutput: z.ZodObject<{
|
|
6
8
|
key: z.ZodNullable<z.ZodString>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const replicateWebhooksSecretGet:
|
|
10
|
+
declare const replicateWebhooksSecretGet: AppAction<typeof ReplicateWebhooksSecretGetInput, typeof ReplicateWebhooksSecretGetOutput, typeof replicate.credential>;
|
|
9
11
|
//#endregion
|
|
10
12
|
export { replicateWebhooksSecretGet };
|
|
11
13
|
//# sourceMappingURL=webhooks-secret-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-secret-get.d.cts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks-secret-get.d.cts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,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/webhooks-secret-get.d.ts
|
|
@@ -5,7 +7,7 @@ declare const ReplicateWebhooksSecretGetInput: z.ZodObject<{}, z.core.$strip>;
|
|
|
5
7
|
declare const ReplicateWebhooksSecretGetOutput: z.ZodObject<{
|
|
6
8
|
key: z.ZodNullable<z.ZodString>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const replicateWebhooksSecretGet:
|
|
10
|
+
declare const replicateWebhooksSecretGet: AppAction<typeof ReplicateWebhooksSecretGetInput, typeof ReplicateWebhooksSecretGetOutput, typeof replicate.credential>;
|
|
9
11
|
//#endregion
|
|
10
12
|
export { replicateWebhooksSecretGet };
|
|
11
13
|
//# sourceMappingURL=webhooks-secret-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-secret-get.d.mts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks-secret-get.d.mts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-secret-get.mjs","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).passthrough().describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"webhooks-secret-get.mjs","names":[],"sources":["../../src/actions/webhooks-secret-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 ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).passthrough().describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet: AppAction<\n typeof ReplicateWebhooksSecretGetInput,\n typeof ReplicateWebhooksSecretGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;;AAWA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAa5D;CACP,QAb8C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { bearer_token: require("zod").z.string() };
|
|
4
|
+
const replicate = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "replicate",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.replicate = replicate;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const replicate = defineApp({\n slug: \"replicate\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n bearer_token: z.string(),\n};\n\nexport const replicate: KeystrokeApp<\"replicate\", typeof credential> = defineApp({\n slug: \"replicate\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,2BAAcA,CAAAA,CAAAA,EAAE,OAAO,EACzB;AAEA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAoE;CAC/E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
bearer_token: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const replicate: KeystrokeApp<"replicate", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { replicate };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;gBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,qBAAqB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
bearer_token: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const replicate: KeystrokeApp<"replicate", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { replicate };
|
|
5
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;gBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,SAAA,EAAW,YAAY,qBAAqB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const replicate = defineApp({
|
|
4
4
|
slug: "replicate",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: { bearer_token: z.string() }
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { replicate };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const replicate = defineApp({\n slug: \"replicate\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n bearer_token: z.string(),\n};\n\nexport const replicate: KeystrokeApp<\"replicate\", typeof credential> = defineApp({\n slug: \"replicate\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,YAA0D,UAAU;CAC/E,MAAM;CACN,MAAM;CACN,cANA,cAAc,EAAE,OAAO,EAMvB;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { replicate } from "./app.cjs";
|
|
1
2
|
import { replicateAccountGet } from "./actions/account-get.cjs";
|
|
2
3
|
import { replicateCancelPrediction } from "./actions/cancel-prediction.cjs";
|
|
3
4
|
import { replicateCollectionsGet } from "./actions/collections-get.cjs";
|
|
@@ -29,6 +30,5 @@ import { replicateTrainingsCreate } from "./actions/trainings-create.cjs";
|
|
|
29
30
|
import { replicateTrainingsList } from "./actions/trainings-list.cjs";
|
|
30
31
|
import { replicateUpdateModels } from "./actions/update-models.cjs";
|
|
31
32
|
import { replicateWebhooksSecretGet } from "./actions/webhooks-secret-get.cjs";
|
|
32
|
-
import { replicate } from "./app.cjs";
|
|
33
33
|
import { replicateCatalog } from "./catalog.cjs";
|
|
34
34
|
export { replicate, replicateAccountGet, replicateCancelPrediction, replicateCatalog, replicateCollectionsGet, replicateCollectionsList, replicateCreateModel, replicateCreatePrediction, replicateDeploymentsCreate, replicateDeploymentsDelete, replicateDeploymentsGet, replicateDeploymentsList, replicateFilesCreate, replicateFilesDelete, replicateFilesGet, replicateFilesList, replicateGetPrediction, replicateHardwareList, replicateModelsExamplesList, replicateModelsGet, replicateModelsList, replicateModelsPredictionsCreate, replicateModelsReadmeGet, replicateModelsVersionsGet, replicateModelsVersionsList, replicatePredictionsCreate, replicatePredictionsList, replicateSearch, replicateTrainingsCancel, replicateTrainingsCreate, replicateTrainingsList, replicateUpdateModels, replicateWebhooksSecretGet };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { replicate } from "./app.mjs";
|
|
1
2
|
import { replicateAccountGet } from "./actions/account-get.mjs";
|
|
2
3
|
import { replicateCancelPrediction } from "./actions/cancel-prediction.mjs";
|
|
3
4
|
import { replicateCollectionsGet } from "./actions/collections-get.mjs";
|
|
@@ -29,6 +30,5 @@ import { replicateTrainingsCreate } from "./actions/trainings-create.mjs";
|
|
|
29
30
|
import { replicateTrainingsList } from "./actions/trainings-list.mjs";
|
|
30
31
|
import { replicateUpdateModels } from "./actions/update-models.mjs";
|
|
31
32
|
import { replicateWebhooksSecretGet } from "./actions/webhooks-secret-get.mjs";
|
|
32
|
-
import { replicate } from "./app.mjs";
|
|
33
33
|
import { replicateCatalog } from "./catalog.mjs";
|
|
34
34
|
export { replicate, replicateAccountGet, replicateCancelPrediction, replicateCatalog, replicateCollectionsGet, replicateCollectionsList, replicateCreateModel, replicateCreatePrediction, replicateDeploymentsCreate, replicateDeploymentsDelete, replicateDeploymentsGet, replicateDeploymentsList, replicateFilesCreate, replicateFilesDelete, replicateFilesGet, replicateFilesList, replicateGetPrediction, replicateHardwareList, replicateModelsExamplesList, replicateModelsGet, replicateModelsList, replicateModelsPredictionsCreate, replicateModelsReadmeGet, replicateModelsVersionsGet, replicateModelsVersionsList, replicatePredictionsCreate, replicatePredictionsList, replicateSearch, replicateTrainingsCancel, replicateTrainingsCreate, replicateTrainingsList, replicateUpdateModels, replicateWebhooksSecretGet };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/replicate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|