replicate-api
Advanced tools
+11
-4
@@ -12,3 +12,12 @@ import { ReplicateRequestOptions } from "./helpers/makeApiRequest"; | ||
| }; | ||
| export declare type WebhookEventTypes = "start" | "complete" | "logs" | "completed"; | ||
| /** Select which events trigger webhook request | ||
| * | ||
| * - `"start"`: immediately on prediction start | ||
| * - `"output"`: each time a prediction generates an output (note that predictions can generate multiple outputs) | ||
| * - `"logs"`: each time log output is generated by a prediction | ||
| * - `"completed"`: when the prediction reaches a terminal state (succeeded/canceled/failed) | ||
| * | ||
| * See https://replicate.com/docs/reference/http#create-prediction--webhook_events_filter for more information. | ||
| */ | ||
| export declare type WebhookEventType = "start" | "output" | "logs" | "completed"; | ||
| /** Options for creating a new prediction */ | ||
@@ -24,7 +33,5 @@ export declare type PredictOptions = { | ||
| * | ||
| * See https://replicate.com/docs/reference/http#create-prediction--webhook_events_filter for more information. | ||
| * | ||
| * @default ["completed"] | ||
| */ | ||
| webhookEvents?: ("start" | "complete" | "logs" | "completed")[]; | ||
| webhookEvents?: WebhookEventType[]; | ||
| } & (ModelVersionOptions | ModelNameOptions) & ReplicateRequestOptions; | ||
@@ -31,0 +38,0 @@ /** Create a new prediction |
+1
-1
| { | ||
| "name": "replicate-api", | ||
| "version": "0.4.0", | ||
| "version": "0.4.1", | ||
| "description": "A typed client library for the replicate.com API", | ||
@@ -5,0 +5,0 @@ "author": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
36648
0.92%687
1.03%