@doczilla/node
Version:
Doczilla API wrapper
46 lines (44 loc) • 1.31 kB
text/typescript
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type WebhookEvent = {
/**
* Id of the queued job.
*/
id: string;
/**
* Status of the job.
*/
status: WebhookEvent.status;
/**
* URL to the generated file (will be `null` if `storage.signedUrl` is used). This url is valid for 1 hour, after that the file will be deleted from our storage.
*/
fileUrl?: string | null;
/**
* Status of the signed url request if provided.
* - `NOT_PROVIDED`, no `storage.preSignedUrl` was provided.
* - `UPLOADED`, `storage.preSignedUrl` was provided and file is uploaded.
* - `FAILED`, `storage.preSignedUrl` was provided but the upload failed.
*/
signedUrlStatus?: string | null;
/**
* The generated file base64 encoded (will be `null` if `storage.signedUrl` is used).
*/
fileBase64?: string | null;
/**
* The provided metadata when creating the job.
*/
metadata?: Record<string, any> | null;
};
export namespace WebhookEvent {
/**
* Status of the job.
*/
export enum status {
PENDING = 'PENDING',
RUNNING = 'RUNNING',
FAILED = 'FAILED',
COMPLETED = 'COMPLETED',
}
}