New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

replicate-api

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

replicate-api - npm Package Compare versions

Comparing version
0.4.0
to
0.4.1
+11
-4
dist/predict.d.ts

@@ -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

{
"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": {