@animaapp/anima-sdk 0.2.3 → 0.2.4
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/.turbo/turbo-build.log +5 -5
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +388 -384
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/anima.ts +6 -0
- package/src/types.ts +36 -34
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ export declare type GeneratingCodePayload = {
|
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
export declare type GetCodeHandler = ((message: SSECodgenMessage) => void) | {
|
|
152
|
+
onQueueing?: () => void;
|
|
152
153
|
onStart?: ({ sessionId }: {
|
|
153
154
|
sessionId: string;
|
|
154
155
|
}) => void;
|
|
@@ -264,6 +265,8 @@ export declare class ResponseError extends Error {
|
|
|
264
265
|
}
|
|
265
266
|
|
|
266
267
|
export declare type SSECodgenMessage = {
|
|
268
|
+
type: "queueing";
|
|
269
|
+
} | {
|
|
267
270
|
type: "start";
|
|
268
271
|
sessionId: string;
|
|
269
272
|
} | {
|