@animaapp/anima-sdk 0.10.0 → 0.11.0

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
@@ -292,6 +292,10 @@ declare type FigmaRestApiConstructor = {
292
292
  defaultOptions?: Omit<Options, "abortSignal">;
293
293
  };
294
294
 
295
+ export declare class FileNotExportable extends Error {
296
+ constructor();
297
+ }
298
+
295
299
  export declare const findChildrenNode: (node: FigmaNode, targetNodeId: string) => FigmaNode | null;
296
300
 
297
301
  export declare const formatToFigmaLink: ({ fileKey, nodeId, duplicate, }: {
@@ -591,7 +595,7 @@ export declare class NotFound extends Error {
591
595
  export declare type Options = {
592
596
  token?: string;
593
597
  abortSignal?: AbortSignal;
594
- onForbidden?: (error: NeedsReauthFigmaToken | ExpiredFigmaToken | UnknownForbiddenFigmaError) => Promise<{
598
+ onForbidden?: (error: NeedsReauthFigmaToken | ExpiredFigmaToken | FileNotExportable | UnknownForbiddenFigmaError) => Promise<{
595
599
  retry: {
596
600
  newToken: string;
597
601
  };