@animaapp/anima-sdk 0.2.1 → 0.2.2

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.d.ts CHANGED
@@ -50,6 +50,7 @@ export declare type BaseResult = {
50
50
  sessionId: string;
51
51
  figmaFileName: string;
52
52
  figmaSelectedFrameName: string;
53
+ tokenUsage: number;
53
54
  };
54
55
 
55
56
  export declare class CodegenError extends Error {
@@ -78,6 +79,7 @@ export declare type CodegenSettings = {
78
79
  uiLibrary?: "mui" | "antd" | "radix" | "shadcn";
79
80
  enableTranslation?: boolean;
80
81
  enableUILibraryTheming?: boolean;
82
+ enableCompactStructure?: boolean;
81
83
  };
82
84
 
83
85
  /**
@@ -223,6 +225,11 @@ export declare type GetFileParams = {
223
225
  figmaRestApi?: FigmaRestApi;
224
226
  };
225
227
 
228
+ export declare const getRelatedScreenFiles: ({ files, screenPath, }: {
229
+ files: AnimaFiles;
230
+ screenPath?: string;
231
+ }) => AnimaFiles;
232
+
226
233
  export declare const handleFigmaApiError: (error: FigmaApiError, fileKey: string) => never;
227
234
 
228
235
  export declare const isFigmaTokenIssue: (error: Error) => boolean;
@@ -286,6 +293,10 @@ export declare type SSECodgenMessage = {
286
293
  payload: SSECodgenMessageErrorPayload;
287
294
  } | {
288
295
  type: "done";
296
+ payload: {
297
+ sessionId: string;
298
+ tokenUsage: number;
299
+ };
289
300
  };
290
301
 
291
302
  export declare type SSECodgenMessageErrorPayload = {