# @types/node-replicate

> TypeScript definitions for node-replicate

Latest version **2.0.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/node-replicate
pnpm add @types/node-replicate
yarn add @types/node-replicate
bun add @types/node-replicate
```

## Health

**Score 50/100 (C)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2023-11-07 |
| First published | 2023-03-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/node-replicate
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-replicate
- npm.io page: https://npm.io/package/@types/node-replicate

## Recent versions

- 2.0.4 (latest) — 2023-11-07
- 2.0.0 (ts4.3) — 2023-07-22
- 2.0.3 — 2023-10-18
- 2.0.2 — 2023-10-10
- 2.0.1 — 2023-09-23
- 1.1.1 — 2023-03-28
- 1.1.0 — 2023-03-25

## README

# Installation
> `npm install --save @types/node-replicate`

# Summary
This package contains type definitions for node-replicate (https://github.com/oelin/node-replicate#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-replicate.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-replicate/index.d.ts)
````ts
export interface Prediction {
    uuid: string;
    version_id: string;
    created_at: string;
    updated_at: string;
    complete_at: string | null;
    status: "starting" | "processing" | "canceled" | "succeeded" | "failed";
    inputs: any;
    output: unknown;
    output_files?: string[];
    error: string | null;
    run_logs: string | null;
    version: {
        config: {
            build: Record<string, string>;
            predict: string;
        };
        docker_image_id: string;
        docker_image_name: string;
        openapi_schema: {
            info: Record<string, string>;
            paths: Record<string, string>;
            openapi: string;
            components: Record<string, string>;
        };
        model: {
            absolute_url: string;
            username: string;
            name: string;
            description: string;
            visibility: string;
            is_run_only: boolean;
            github_url: string;
            paper_url: string;
            arxiv_paper_id: string;
            cover_image: Record<string, string>;
            latest_version_created_at: string | null;
            default_example_uuid: string;
            display_output_as_json: boolean;
        };
    };
    user: string | null;
}

export interface Replicate {
    run(model: string, inputs: any): Promise<unknown>;
    get(prediction: Prediction): Promise<Prediction>;
    create(model: string, inputs: any): Promise<Prediction>;
}

export const replicate: Replicate;

export default replicate;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: none

# Credits
These definitions were written by [Ankan Bhattacharya](https://github.com/Ankan002).

---
_Source: https://npm.io/package/@types/node-replicate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
