@animaapp/anima-sdk 0.22.0 → 0.23.1
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/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -182,7 +182,7 @@ export declare type CodegenSettings = BaseSettings & {
|
|
|
182
182
|
/**
|
|
183
183
|
* Errors from Anima API, common across multiple routes.
|
|
184
184
|
*/
|
|
185
|
-
export declare type CommonApiError = "Missing Authorization header" | "Invalid Authorization header" | "Missing teamId" | "Internal server error" | "Forbidden, no team access" | "Requested Usage Exceeds Limit" | "Too many concurrent jobs" | "Invalid Anima token" | "Job not found";
|
|
185
|
+
export declare type CommonApiError = "Missing Authorization header" | "Invalid Authorization header" | "Missing teamId" | "Internal server error" | "Forbidden, no team access" | "Requested Usage Exceeds Limit" | "Too many concurrent jobs" | "Invalid Anima token" | "Job not found" | "Code generation failed";
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Creates a Server-Sent Events (SSE) `Response` that forwards all messages from the code generation from prompt stream.
|
|
@@ -420,6 +420,7 @@ export declare type GetCodeFromWebsiteHandler = ((message: SSEGetCodeFromWebsite
|
|
|
420
420
|
|
|
421
421
|
export declare type GetCodeFromWebsiteParams = {
|
|
422
422
|
url?: string;
|
|
423
|
+
/** @deprecated Use `mhtmlUrl` instead. */
|
|
423
424
|
mhtml?: string;
|
|
424
425
|
mhtmlUrl?: string;
|
|
425
426
|
assetsStorage?: AssetsStorage;
|
|
@@ -647,7 +648,7 @@ export declare type ProgressMessage = {
|
|
|
647
648
|
title: string;
|
|
648
649
|
subtitle?: string;
|
|
649
650
|
body?: string;
|
|
650
|
-
status: "success" | "running";
|
|
651
|
+
status: "success" | "running" | "failure";
|
|
651
652
|
};
|
|
652
653
|
|
|
653
654
|
export declare class RateLimitExceeded extends Error {
|