@supernova-studio/model 0.46.11 → 0.46.12
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.mts +228 -17
- package/dist/index.d.ts +228 -17
- package/dist/index.js +36 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +123 -114
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/data-sources/data-source.ts +2 -1
- package/src/dsm/import/support/import-context.ts +7 -0
- package/src/dsm/import/warning.ts +7 -0
package/dist/index.d.mts
CHANGED
|
@@ -2905,35 +2905,35 @@ declare const SourceImportSummary: z.ZodObject<{
|
|
|
2905
2905
|
error: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<any, z.ZodTypeDef, any>>>, any, any>;
|
|
2906
2906
|
isFailed: z.ZodBoolean;
|
|
2907
2907
|
warnings: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
2908
|
-
warningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath"]>;
|
|
2908
|
+
warningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath", "NoUnpublishedStyles"]>;
|
|
2909
2909
|
componentId: z.ZodOptional<z.ZodString>;
|
|
2910
2910
|
componentName: z.ZodOptional<z.ZodString>;
|
|
2911
2911
|
styleId: z.ZodOptional<z.ZodString>;
|
|
2912
2912
|
styleName: z.ZodOptional<z.ZodString>;
|
|
2913
2913
|
unsupportedStyleValueType: z.ZodOptional<z.ZodString>;
|
|
2914
2914
|
}, "strip", z.ZodTypeAny, {
|
|
2915
|
-
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath";
|
|
2915
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
2916
2916
|
componentId?: string | undefined;
|
|
2917
2917
|
componentName?: string | undefined;
|
|
2918
2918
|
styleId?: string | undefined;
|
|
2919
2919
|
styleName?: string | undefined;
|
|
2920
2920
|
unsupportedStyleValueType?: string | undefined;
|
|
2921
2921
|
}, {
|
|
2922
|
-
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath";
|
|
2922
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
2923
2923
|
componentId?: string | undefined;
|
|
2924
2924
|
componentName?: string | undefined;
|
|
2925
2925
|
styleId?: string | undefined;
|
|
2926
2926
|
styleName?: string | undefined;
|
|
2927
2927
|
unsupportedStyleValueType?: string | undefined;
|
|
2928
2928
|
}>, "many">>>, {
|
|
2929
|
-
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath";
|
|
2929
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
2930
2930
|
componentId?: string | undefined;
|
|
2931
2931
|
componentName?: string | undefined;
|
|
2932
2932
|
styleId?: string | undefined;
|
|
2933
2933
|
styleName?: string | undefined;
|
|
2934
2934
|
unsupportedStyleValueType?: string | undefined;
|
|
2935
2935
|
}[], {
|
|
2936
|
-
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath";
|
|
2936
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
2937
2937
|
componentId?: string | undefined;
|
|
2938
2938
|
componentName?: string | undefined;
|
|
2939
2939
|
styleId?: string | undefined;
|
|
@@ -2958,7 +2958,7 @@ declare const SourceImportSummary: z.ZodObject<{
|
|
|
2958
2958
|
componentAssetsDeleted: number;
|
|
2959
2959
|
isFailed: boolean;
|
|
2960
2960
|
warnings: {
|
|
2961
|
-
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath";
|
|
2961
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
2962
2962
|
componentId?: string | undefined;
|
|
2963
2963
|
componentName?: string | undefined;
|
|
2964
2964
|
styleId?: string | undefined;
|
|
@@ -2991,7 +2991,7 @@ declare const SourceImportSummary: z.ZodObject<{
|
|
|
2991
2991
|
versionId?: string | null | undefined;
|
|
2992
2992
|
error?: any;
|
|
2993
2993
|
warnings?: {
|
|
2994
|
-
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath";
|
|
2994
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
2995
2995
|
componentId?: string | undefined;
|
|
2996
2996
|
componentName?: string | undefined;
|
|
2997
2997
|
styleId?: string | undefined;
|
|
@@ -3057,17 +3057,20 @@ declare const DataSourceFigmaScope: z.ZodObject<{
|
|
|
3057
3057
|
documentationFrames: z.ZodBoolean;
|
|
3058
3058
|
tokens: z.ZodBoolean;
|
|
3059
3059
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
3060
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
3060
3061
|
}, "strip", z.ZodTypeAny, {
|
|
3061
3062
|
assets: boolean;
|
|
3062
3063
|
components: boolean;
|
|
3063
3064
|
documentationFrames: boolean;
|
|
3064
3065
|
tokens: boolean;
|
|
3066
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3065
3067
|
themePersistentId?: string | undefined;
|
|
3066
3068
|
}, {
|
|
3067
3069
|
assets: boolean;
|
|
3068
3070
|
components: boolean;
|
|
3069
3071
|
documentationFrames: boolean;
|
|
3070
3072
|
tokens: boolean;
|
|
3073
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3071
3074
|
themePersistentId?: string | undefined;
|
|
3072
3075
|
}>;
|
|
3073
3076
|
type DataSourceFigmaScope = z.infer<typeof DataSourceFigmaScope>;
|
|
@@ -3128,17 +3131,20 @@ declare const DataSourceFigmaRemote: z.ZodObject<{
|
|
|
3128
3131
|
documentationFrames: z.ZodBoolean;
|
|
3129
3132
|
tokens: z.ZodBoolean;
|
|
3130
3133
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
3134
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
3131
3135
|
}, "strip", z.ZodTypeAny, {
|
|
3132
3136
|
assets: boolean;
|
|
3133
3137
|
components: boolean;
|
|
3134
3138
|
documentationFrames: boolean;
|
|
3135
3139
|
tokens: boolean;
|
|
3140
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3136
3141
|
themePersistentId?: string | undefined;
|
|
3137
3142
|
}, {
|
|
3138
3143
|
assets: boolean;
|
|
3139
3144
|
components: boolean;
|
|
3140
3145
|
documentationFrames: boolean;
|
|
3141
3146
|
tokens: boolean;
|
|
3147
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3142
3148
|
themePersistentId?: string | undefined;
|
|
3143
3149
|
}>;
|
|
3144
3150
|
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>;
|
|
@@ -3199,6 +3205,7 @@ declare const DataSourceFigmaRemote: z.ZodObject<{
|
|
|
3199
3205
|
components: boolean;
|
|
3200
3206
|
documentationFrames: boolean;
|
|
3201
3207
|
tokens: boolean;
|
|
3208
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3202
3209
|
themePersistentId?: string | undefined;
|
|
3203
3210
|
};
|
|
3204
3211
|
fileId: string;
|
|
@@ -3227,6 +3234,7 @@ declare const DataSourceFigmaRemote: z.ZodObject<{
|
|
|
3227
3234
|
components: boolean;
|
|
3228
3235
|
documentationFrames: boolean;
|
|
3229
3236
|
tokens: boolean;
|
|
3237
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3230
3238
|
themePersistentId?: string | undefined;
|
|
3231
3239
|
};
|
|
3232
3240
|
fileId: string;
|
|
@@ -3318,17 +3326,20 @@ declare const DataSourceRemote: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3318
3326
|
documentationFrames: z.ZodBoolean;
|
|
3319
3327
|
tokens: z.ZodBoolean;
|
|
3320
3328
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
3329
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
3321
3330
|
}, "strip", z.ZodTypeAny, {
|
|
3322
3331
|
assets: boolean;
|
|
3323
3332
|
components: boolean;
|
|
3324
3333
|
documentationFrames: boolean;
|
|
3325
3334
|
tokens: boolean;
|
|
3335
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3326
3336
|
themePersistentId?: string | undefined;
|
|
3327
3337
|
}, {
|
|
3328
3338
|
assets: boolean;
|
|
3329
3339
|
components: boolean;
|
|
3330
3340
|
documentationFrames: boolean;
|
|
3331
3341
|
tokens: boolean;
|
|
3342
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3332
3343
|
themePersistentId?: string | undefined;
|
|
3333
3344
|
}>;
|
|
3334
3345
|
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>;
|
|
@@ -3389,6 +3400,7 @@ declare const DataSourceRemote: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3389
3400
|
components: boolean;
|
|
3390
3401
|
documentationFrames: boolean;
|
|
3391
3402
|
tokens: boolean;
|
|
3403
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3392
3404
|
themePersistentId?: string | undefined;
|
|
3393
3405
|
};
|
|
3394
3406
|
fileId: string;
|
|
@@ -3417,6 +3429,7 @@ declare const DataSourceRemote: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
3417
3429
|
components: boolean;
|
|
3418
3430
|
documentationFrames: boolean;
|
|
3419
3431
|
tokens: boolean;
|
|
3432
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
3420
3433
|
themePersistentId?: string | undefined;
|
|
3421
3434
|
};
|
|
3422
3435
|
fileId: string;
|
|
@@ -42614,20 +42627,28 @@ declare const ImportedFigmaSourceData: z.ZodObject<{
|
|
|
42614
42627
|
documentationFrames: z.ZodBoolean;
|
|
42615
42628
|
tokens: z.ZodBoolean;
|
|
42616
42629
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
42630
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
42617
42631
|
}, "strip", z.ZodTypeAny, {
|
|
42618
42632
|
assets: boolean;
|
|
42619
42633
|
components: boolean;
|
|
42620
42634
|
documentationFrames: boolean;
|
|
42621
42635
|
tokens: boolean;
|
|
42636
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42622
42637
|
themePersistentId?: string | undefined;
|
|
42623
42638
|
}, {
|
|
42624
42639
|
assets: boolean;
|
|
42625
42640
|
components: boolean;
|
|
42626
42641
|
documentationFrames: boolean;
|
|
42627
42642
|
tokens: boolean;
|
|
42643
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42628
42644
|
themePersistentId?: string | undefined;
|
|
42629
42645
|
}>;
|
|
42630
|
-
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>;
|
|
42646
|
+
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>; /**
|
|
42647
|
+
* Describes what to download from each file, this should contain all file id mentioned in
|
|
42648
|
+
* importMetadataBySourceId.
|
|
42649
|
+
*
|
|
42650
|
+
* File id -> file download scope
|
|
42651
|
+
*/
|
|
42631
42652
|
requiresSync: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
42632
42653
|
lastImportMetadata: z.ZodOptional<z.ZodObject<{
|
|
42633
42654
|
fileData: z.ZodOptional<z.ZodObject<{
|
|
@@ -42685,6 +42706,7 @@ declare const ImportedFigmaSourceData: z.ZodObject<{
|
|
|
42685
42706
|
components: boolean;
|
|
42686
42707
|
documentationFrames: boolean;
|
|
42687
42708
|
tokens: boolean;
|
|
42709
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42688
42710
|
themePersistentId?: string | undefined;
|
|
42689
42711
|
};
|
|
42690
42712
|
fileId: string;
|
|
@@ -42713,6 +42735,7 @@ declare const ImportedFigmaSourceData: z.ZodObject<{
|
|
|
42713
42735
|
components: boolean;
|
|
42714
42736
|
documentationFrames: boolean;
|
|
42715
42737
|
tokens: boolean;
|
|
42738
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42716
42739
|
themePersistentId?: string | undefined;
|
|
42717
42740
|
};
|
|
42718
42741
|
fileId: string;
|
|
@@ -42744,6 +42767,7 @@ declare const ImportedFigmaSourceData: z.ZodObject<{
|
|
|
42744
42767
|
components: boolean;
|
|
42745
42768
|
documentationFrames: boolean;
|
|
42746
42769
|
tokens: boolean;
|
|
42770
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42747
42771
|
themePersistentId?: string | undefined;
|
|
42748
42772
|
};
|
|
42749
42773
|
fileId: string;
|
|
@@ -42775,6 +42799,7 @@ declare const ImportedFigmaSourceData: z.ZodObject<{
|
|
|
42775
42799
|
components: boolean;
|
|
42776
42800
|
documentationFrames: boolean;
|
|
42777
42801
|
tokens: boolean;
|
|
42802
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42778
42803
|
themePersistentId?: string | undefined;
|
|
42779
42804
|
};
|
|
42780
42805
|
fileId: string;
|
|
@@ -42831,20 +42856,28 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
42831
42856
|
documentationFrames: z.ZodBoolean;
|
|
42832
42857
|
tokens: z.ZodBoolean;
|
|
42833
42858
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
42859
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
42834
42860
|
}, "strip", z.ZodTypeAny, {
|
|
42835
42861
|
assets: boolean;
|
|
42836
42862
|
components: boolean;
|
|
42837
42863
|
documentationFrames: boolean;
|
|
42838
42864
|
tokens: boolean;
|
|
42865
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42839
42866
|
themePersistentId?: string | undefined;
|
|
42840
42867
|
}, {
|
|
42841
42868
|
assets: boolean;
|
|
42842
42869
|
components: boolean;
|
|
42843
42870
|
documentationFrames: boolean;
|
|
42844
42871
|
tokens: boolean;
|
|
42872
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42845
42873
|
themePersistentId?: string | undefined;
|
|
42846
42874
|
}>;
|
|
42847
|
-
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>;
|
|
42875
|
+
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>; /**
|
|
42876
|
+
* Describes what to download from each file, this should contain all file id mentioned in
|
|
42877
|
+
* importMetadataBySourceId.
|
|
42878
|
+
*
|
|
42879
|
+
* File id -> file download scope
|
|
42880
|
+
*/
|
|
42848
42881
|
requiresSync: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
42849
42882
|
lastImportMetadata: z.ZodOptional<z.ZodObject<{
|
|
42850
42883
|
fileData: z.ZodOptional<z.ZodObject<{
|
|
@@ -42902,6 +42935,7 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
42902
42935
|
components: boolean;
|
|
42903
42936
|
documentationFrames: boolean;
|
|
42904
42937
|
tokens: boolean;
|
|
42938
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42905
42939
|
themePersistentId?: string | undefined;
|
|
42906
42940
|
};
|
|
42907
42941
|
fileId: string;
|
|
@@ -42930,6 +42964,7 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
42930
42964
|
components: boolean;
|
|
42931
42965
|
documentationFrames: boolean;
|
|
42932
42966
|
tokens: boolean;
|
|
42967
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42933
42968
|
themePersistentId?: string | undefined;
|
|
42934
42969
|
};
|
|
42935
42970
|
fileId: string;
|
|
@@ -42961,6 +42996,7 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
42961
42996
|
components: boolean;
|
|
42962
42997
|
documentationFrames: boolean;
|
|
42963
42998
|
tokens: boolean;
|
|
42999
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42964
43000
|
themePersistentId?: string | undefined;
|
|
42965
43001
|
};
|
|
42966
43002
|
fileId: string;
|
|
@@ -42992,6 +43028,7 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
42992
43028
|
components: boolean;
|
|
42993
43029
|
documentationFrames: boolean;
|
|
42994
43030
|
tokens: boolean;
|
|
43031
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
42995
43032
|
themePersistentId?: string | undefined;
|
|
42996
43033
|
};
|
|
42997
43034
|
fileId: string;
|
|
@@ -43014,6 +43051,32 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
43014
43051
|
maxFileDepth?: number | undefined;
|
|
43015
43052
|
};
|
|
43016
43053
|
}>>;
|
|
43054
|
+
/**
|
|
43055
|
+
* Array of warnings that will be written into the import result summary at the end
|
|
43056
|
+
* of import job execution and displayed by the client.
|
|
43057
|
+
*/
|
|
43058
|
+
importWarnings: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
43059
|
+
warningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath", "NoUnpublishedStyles"]>;
|
|
43060
|
+
componentId: z.ZodOptional<z.ZodString>;
|
|
43061
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
43062
|
+
styleId: z.ZodOptional<z.ZodString>;
|
|
43063
|
+
styleName: z.ZodOptional<z.ZodString>;
|
|
43064
|
+
unsupportedStyleValueType: z.ZodOptional<z.ZodString>;
|
|
43065
|
+
}, "strip", z.ZodTypeAny, {
|
|
43066
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
43067
|
+
componentId?: string | undefined;
|
|
43068
|
+
componentName?: string | undefined;
|
|
43069
|
+
styleId?: string | undefined;
|
|
43070
|
+
styleName?: string | undefined;
|
|
43071
|
+
unsupportedStyleValueType?: string | undefined;
|
|
43072
|
+
}, {
|
|
43073
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
43074
|
+
componentId?: string | undefined;
|
|
43075
|
+
componentName?: string | undefined;
|
|
43076
|
+
styleId?: string | undefined;
|
|
43077
|
+
styleName?: string | undefined;
|
|
43078
|
+
unsupportedStyleValueType?: string | undefined;
|
|
43079
|
+
}>, "many">>>;
|
|
43017
43080
|
}, "strip", z.ZodTypeAny, {
|
|
43018
43081
|
designSystemId: string;
|
|
43019
43082
|
fileAccessByFileId: Record<string, {
|
|
@@ -43029,6 +43092,7 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
43029
43092
|
components: boolean;
|
|
43030
43093
|
documentationFrames: boolean;
|
|
43031
43094
|
tokens: boolean;
|
|
43095
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43032
43096
|
themePersistentId?: string | undefined;
|
|
43033
43097
|
};
|
|
43034
43098
|
fileId: string;
|
|
@@ -43051,6 +43115,14 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
43051
43115
|
maxFileDepth?: number | undefined;
|
|
43052
43116
|
};
|
|
43053
43117
|
}>;
|
|
43118
|
+
importWarnings: Record<string, {
|
|
43119
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
43120
|
+
componentId?: string | undefined;
|
|
43121
|
+
componentName?: string | undefined;
|
|
43122
|
+
styleId?: string | undefined;
|
|
43123
|
+
styleName?: string | undefined;
|
|
43124
|
+
unsupportedStyleValueType?: string | undefined;
|
|
43125
|
+
}[]>;
|
|
43054
43126
|
}, {
|
|
43055
43127
|
designSystemId: string;
|
|
43056
43128
|
fileAccessByFileId: Record<string, {
|
|
@@ -43066,6 +43138,7 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
43066
43138
|
components: boolean;
|
|
43067
43139
|
documentationFrames: boolean;
|
|
43068
43140
|
tokens: boolean;
|
|
43141
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43069
43142
|
themePersistentId?: string | undefined;
|
|
43070
43143
|
};
|
|
43071
43144
|
fileId: string;
|
|
@@ -43088,6 +43161,14 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
43088
43161
|
maxFileDepth?: number | undefined;
|
|
43089
43162
|
};
|
|
43090
43163
|
}>;
|
|
43164
|
+
importWarnings?: Record<string, {
|
|
43165
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
43166
|
+
componentId?: string | undefined;
|
|
43167
|
+
componentName?: string | undefined;
|
|
43168
|
+
styleId?: string | undefined;
|
|
43169
|
+
styleName?: string | undefined;
|
|
43170
|
+
unsupportedStyleValueType?: string | undefined;
|
|
43171
|
+
}[]> | undefined;
|
|
43091
43172
|
}>;
|
|
43092
43173
|
type FigmaImportBaseContext = z.infer<typeof FigmaImportBaseContext>;
|
|
43093
43174
|
declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
@@ -43112,20 +43193,28 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43112
43193
|
documentationFrames: z.ZodBoolean;
|
|
43113
43194
|
tokens: z.ZodBoolean;
|
|
43114
43195
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
43196
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
43115
43197
|
}, "strip", z.ZodTypeAny, {
|
|
43116
43198
|
assets: boolean;
|
|
43117
43199
|
components: boolean;
|
|
43118
43200
|
documentationFrames: boolean;
|
|
43119
43201
|
tokens: boolean;
|
|
43202
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43120
43203
|
themePersistentId?: string | undefined;
|
|
43121
43204
|
}, {
|
|
43122
43205
|
assets: boolean;
|
|
43123
43206
|
components: boolean;
|
|
43124
43207
|
documentationFrames: boolean;
|
|
43125
43208
|
tokens: boolean;
|
|
43209
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43126
43210
|
themePersistentId?: string | undefined;
|
|
43127
43211
|
}>;
|
|
43128
|
-
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>;
|
|
43212
|
+
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>; /**
|
|
43213
|
+
* Describes what to download from each file, this should contain all file id mentioned in
|
|
43214
|
+
* importMetadataBySourceId.
|
|
43215
|
+
*
|
|
43216
|
+
* File id -> file download scope
|
|
43217
|
+
*/
|
|
43129
43218
|
requiresSync: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
43130
43219
|
lastImportMetadata: z.ZodOptional<z.ZodObject<{
|
|
43131
43220
|
fileData: z.ZodOptional<z.ZodObject<{
|
|
@@ -43183,6 +43272,7 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43183
43272
|
components: boolean;
|
|
43184
43273
|
documentationFrames: boolean;
|
|
43185
43274
|
tokens: boolean;
|
|
43275
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43186
43276
|
themePersistentId?: string | undefined;
|
|
43187
43277
|
};
|
|
43188
43278
|
fileId: string;
|
|
@@ -43211,6 +43301,7 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43211
43301
|
components: boolean;
|
|
43212
43302
|
documentationFrames: boolean;
|
|
43213
43303
|
tokens: boolean;
|
|
43304
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43214
43305
|
themePersistentId?: string | undefined;
|
|
43215
43306
|
};
|
|
43216
43307
|
fileId: string;
|
|
@@ -43242,6 +43333,7 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43242
43333
|
components: boolean;
|
|
43243
43334
|
documentationFrames: boolean;
|
|
43244
43335
|
tokens: boolean;
|
|
43336
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43245
43337
|
themePersistentId?: string | undefined;
|
|
43246
43338
|
};
|
|
43247
43339
|
fileId: string;
|
|
@@ -43273,6 +43365,7 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43273
43365
|
components: boolean;
|
|
43274
43366
|
documentationFrames: boolean;
|
|
43275
43367
|
tokens: boolean;
|
|
43368
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43276
43369
|
themePersistentId?: string | undefined;
|
|
43277
43370
|
};
|
|
43278
43371
|
fileId: string;
|
|
@@ -43295,6 +43388,28 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43295
43388
|
maxFileDepth?: number | undefined;
|
|
43296
43389
|
};
|
|
43297
43390
|
}>>;
|
|
43391
|
+
importWarnings: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
43392
|
+
warningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath", "NoUnpublishedStyles"]>;
|
|
43393
|
+
componentId: z.ZodOptional<z.ZodString>;
|
|
43394
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
43395
|
+
styleId: z.ZodOptional<z.ZodString>;
|
|
43396
|
+
styleName: z.ZodOptional<z.ZodString>;
|
|
43397
|
+
unsupportedStyleValueType: z.ZodOptional<z.ZodString>;
|
|
43398
|
+
}, "strip", z.ZodTypeAny, {
|
|
43399
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
43400
|
+
componentId?: string | undefined;
|
|
43401
|
+
componentName?: string | undefined;
|
|
43402
|
+
styleId?: string | undefined;
|
|
43403
|
+
styleName?: string | undefined;
|
|
43404
|
+
unsupportedStyleValueType?: string | undefined;
|
|
43405
|
+
}, {
|
|
43406
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
43407
|
+
componentId?: string | undefined;
|
|
43408
|
+
componentName?: string | undefined;
|
|
43409
|
+
styleId?: string | undefined;
|
|
43410
|
+
styleName?: string | undefined;
|
|
43411
|
+
unsupportedStyleValueType?: string | undefined;
|
|
43412
|
+
}>, "many">>>;
|
|
43298
43413
|
sourcesWithMissingAccess: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
43299
43414
|
shadowOpacityOptional: z.ZodDefault<z.ZodBoolean>;
|
|
43300
43415
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -43312,6 +43427,7 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43312
43427
|
components: boolean;
|
|
43313
43428
|
documentationFrames: boolean;
|
|
43314
43429
|
tokens: boolean;
|
|
43430
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43315
43431
|
themePersistentId?: string | undefined;
|
|
43316
43432
|
};
|
|
43317
43433
|
fileId: string;
|
|
@@ -43334,6 +43450,14 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43334
43450
|
maxFileDepth?: number | undefined;
|
|
43335
43451
|
};
|
|
43336
43452
|
}>;
|
|
43453
|
+
importWarnings: Record<string, {
|
|
43454
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
43455
|
+
componentId?: string | undefined;
|
|
43456
|
+
componentName?: string | undefined;
|
|
43457
|
+
styleId?: string | undefined;
|
|
43458
|
+
styleName?: string | undefined;
|
|
43459
|
+
unsupportedStyleValueType?: string | undefined;
|
|
43460
|
+
}[]>;
|
|
43337
43461
|
sourcesWithMissingAccess: string[];
|
|
43338
43462
|
shadowOpacityOptional: boolean;
|
|
43339
43463
|
}, {
|
|
@@ -43351,6 +43475,7 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43351
43475
|
components: boolean;
|
|
43352
43476
|
documentationFrames: boolean;
|
|
43353
43477
|
tokens: boolean;
|
|
43478
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43354
43479
|
themePersistentId?: string | undefined;
|
|
43355
43480
|
};
|
|
43356
43481
|
fileId: string;
|
|
@@ -43373,6 +43498,14 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<{
|
|
|
43373
43498
|
maxFileDepth?: number | undefined;
|
|
43374
43499
|
};
|
|
43375
43500
|
}>;
|
|
43501
|
+
importWarnings?: Record<string, {
|
|
43502
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
43503
|
+
componentId?: string | undefined;
|
|
43504
|
+
componentName?: string | undefined;
|
|
43505
|
+
styleId?: string | undefined;
|
|
43506
|
+
styleName?: string | undefined;
|
|
43507
|
+
unsupportedStyleValueType?: string | undefined;
|
|
43508
|
+
}[]> | undefined;
|
|
43376
43509
|
sourcesWithMissingAccess?: string[] | undefined;
|
|
43377
43510
|
shadowOpacityOptional?: boolean | undefined;
|
|
43378
43511
|
}>;
|
|
@@ -43390,20 +43523,28 @@ declare const ChangedImportedFigmaSourceData: z.ZodObject<{
|
|
|
43390
43523
|
documentationFrames: z.ZodBoolean;
|
|
43391
43524
|
tokens: z.ZodBoolean;
|
|
43392
43525
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
43526
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
43393
43527
|
}, "strip", z.ZodTypeAny, {
|
|
43394
43528
|
assets: boolean;
|
|
43395
43529
|
components: boolean;
|
|
43396
43530
|
documentationFrames: boolean;
|
|
43397
43531
|
tokens: boolean;
|
|
43532
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43398
43533
|
themePersistentId?: string | undefined;
|
|
43399
43534
|
}, {
|
|
43400
43535
|
assets: boolean;
|
|
43401
43536
|
components: boolean;
|
|
43402
43537
|
documentationFrames: boolean;
|
|
43403
43538
|
tokens: boolean;
|
|
43539
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43404
43540
|
themePersistentId?: string | undefined;
|
|
43405
43541
|
}>;
|
|
43406
|
-
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>;
|
|
43542
|
+
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>; /**
|
|
43543
|
+
* Describes what to download from each file, this should contain all file id mentioned in
|
|
43544
|
+
* importMetadataBySourceId.
|
|
43545
|
+
*
|
|
43546
|
+
* File id -> file download scope
|
|
43547
|
+
*/
|
|
43407
43548
|
requiresSync: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
43408
43549
|
lastImportMetadata: z.ZodOptional<z.ZodObject<{
|
|
43409
43550
|
fileData: z.ZodOptional<z.ZodObject<{
|
|
@@ -43461,6 +43602,7 @@ declare const ChangedImportedFigmaSourceData: z.ZodObject<{
|
|
|
43461
43602
|
components: boolean;
|
|
43462
43603
|
documentationFrames: boolean;
|
|
43463
43604
|
tokens: boolean;
|
|
43605
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43464
43606
|
themePersistentId?: string | undefined;
|
|
43465
43607
|
};
|
|
43466
43608
|
fileId: string;
|
|
@@ -43489,6 +43631,7 @@ declare const ChangedImportedFigmaSourceData: z.ZodObject<{
|
|
|
43489
43631
|
components: boolean;
|
|
43490
43632
|
documentationFrames: boolean;
|
|
43491
43633
|
tokens: boolean;
|
|
43634
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43492
43635
|
themePersistentId?: string | undefined;
|
|
43493
43636
|
};
|
|
43494
43637
|
fileId: string;
|
|
@@ -43565,6 +43708,7 @@ declare const ChangedImportedFigmaSourceData: z.ZodObject<{
|
|
|
43565
43708
|
components: boolean;
|
|
43566
43709
|
documentationFrames: boolean;
|
|
43567
43710
|
tokens: boolean;
|
|
43711
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43568
43712
|
themePersistentId?: string | undefined;
|
|
43569
43713
|
};
|
|
43570
43714
|
fileId: string;
|
|
@@ -43607,6 +43751,7 @@ declare const ChangedImportedFigmaSourceData: z.ZodObject<{
|
|
|
43607
43751
|
components: boolean;
|
|
43608
43752
|
documentationFrames: boolean;
|
|
43609
43753
|
tokens: boolean;
|
|
43754
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43610
43755
|
themePersistentId?: string | undefined;
|
|
43611
43756
|
};
|
|
43612
43757
|
fileId: string;
|
|
@@ -43663,20 +43808,28 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43663
43808
|
documentationFrames: z.ZodBoolean;
|
|
43664
43809
|
tokens: z.ZodBoolean;
|
|
43665
43810
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
43811
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
43666
43812
|
}, "strip", z.ZodTypeAny, {
|
|
43667
43813
|
assets: boolean;
|
|
43668
43814
|
components: boolean;
|
|
43669
43815
|
documentationFrames: boolean;
|
|
43670
43816
|
tokens: boolean;
|
|
43817
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43671
43818
|
themePersistentId?: string | undefined;
|
|
43672
43819
|
}, {
|
|
43673
43820
|
assets: boolean;
|
|
43674
43821
|
components: boolean;
|
|
43675
43822
|
documentationFrames: boolean;
|
|
43676
43823
|
tokens: boolean;
|
|
43824
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43677
43825
|
themePersistentId?: string | undefined;
|
|
43678
43826
|
}>;
|
|
43679
|
-
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>;
|
|
43827
|
+
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>; /**
|
|
43828
|
+
* Describes what to download from each file, this should contain all file id mentioned in
|
|
43829
|
+
* importMetadataBySourceId.
|
|
43830
|
+
*
|
|
43831
|
+
* File id -> file download scope
|
|
43832
|
+
*/
|
|
43680
43833
|
requiresSync: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
43681
43834
|
lastImportMetadata: z.ZodOptional<z.ZodObject<{
|
|
43682
43835
|
fileData: z.ZodOptional<z.ZodObject<{
|
|
@@ -43734,6 +43887,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43734
43887
|
components: boolean;
|
|
43735
43888
|
documentationFrames: boolean;
|
|
43736
43889
|
tokens: boolean;
|
|
43890
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43737
43891
|
themePersistentId?: string | undefined;
|
|
43738
43892
|
};
|
|
43739
43893
|
fileId: string;
|
|
@@ -43762,6 +43916,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43762
43916
|
components: boolean;
|
|
43763
43917
|
documentationFrames: boolean;
|
|
43764
43918
|
tokens: boolean;
|
|
43919
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43765
43920
|
themePersistentId?: string | undefined;
|
|
43766
43921
|
};
|
|
43767
43922
|
fileId: string;
|
|
@@ -43793,6 +43948,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43793
43948
|
components: boolean;
|
|
43794
43949
|
documentationFrames: boolean;
|
|
43795
43950
|
tokens: boolean;
|
|
43951
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43796
43952
|
themePersistentId?: string | undefined;
|
|
43797
43953
|
};
|
|
43798
43954
|
fileId: string;
|
|
@@ -43824,6 +43980,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43824
43980
|
components: boolean;
|
|
43825
43981
|
documentationFrames: boolean;
|
|
43826
43982
|
tokens: boolean;
|
|
43983
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43827
43984
|
themePersistentId?: string | undefined;
|
|
43828
43985
|
};
|
|
43829
43986
|
fileId: string;
|
|
@@ -43846,6 +44003,28 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43846
44003
|
maxFileDepth?: number | undefined;
|
|
43847
44004
|
};
|
|
43848
44005
|
}>>;
|
|
44006
|
+
importWarnings: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
44007
|
+
warningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath", "NoUnpublishedStyles"]>;
|
|
44008
|
+
componentId: z.ZodOptional<z.ZodString>;
|
|
44009
|
+
componentName: z.ZodOptional<z.ZodString>;
|
|
44010
|
+
styleId: z.ZodOptional<z.ZodString>;
|
|
44011
|
+
styleName: z.ZodOptional<z.ZodString>;
|
|
44012
|
+
unsupportedStyleValueType: z.ZodOptional<z.ZodString>;
|
|
44013
|
+
}, "strip", z.ZodTypeAny, {
|
|
44014
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
44015
|
+
componentId?: string | undefined;
|
|
44016
|
+
componentName?: string | undefined;
|
|
44017
|
+
styleId?: string | undefined;
|
|
44018
|
+
styleName?: string | undefined;
|
|
44019
|
+
unsupportedStyleValueType?: string | undefined;
|
|
44020
|
+
}, {
|
|
44021
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
44022
|
+
componentId?: string | undefined;
|
|
44023
|
+
componentName?: string | undefined;
|
|
44024
|
+
styleId?: string | undefined;
|
|
44025
|
+
styleName?: string | undefined;
|
|
44026
|
+
unsupportedStyleValueType?: string | undefined;
|
|
44027
|
+
}>, "many">>>;
|
|
43849
44028
|
sourcesWithMissingAccess: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
43850
44029
|
shadowOpacityOptional: z.ZodDefault<z.ZodBoolean>;
|
|
43851
44030
|
fileDownloadScopesByFileId: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -43883,20 +44062,28 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43883
44062
|
documentationFrames: z.ZodBoolean;
|
|
43884
44063
|
tokens: z.ZodBoolean;
|
|
43885
44064
|
themePersistentId: z.ZodOptional<z.ZodString>;
|
|
44065
|
+
isUnpublishedImportFallbackEnabled: z.ZodBoolean;
|
|
43886
44066
|
}, "strip", z.ZodTypeAny, {
|
|
43887
44067
|
assets: boolean;
|
|
43888
44068
|
components: boolean;
|
|
43889
44069
|
documentationFrames: boolean;
|
|
43890
44070
|
tokens: boolean;
|
|
44071
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43891
44072
|
themePersistentId?: string | undefined;
|
|
43892
44073
|
}, {
|
|
43893
44074
|
assets: boolean;
|
|
43894
44075
|
components: boolean;
|
|
43895
44076
|
documentationFrames: boolean;
|
|
43896
44077
|
tokens: boolean;
|
|
44078
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43897
44079
|
themePersistentId?: string | undefined;
|
|
43898
44080
|
}>;
|
|
43899
|
-
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>;
|
|
44081
|
+
state: z.ZodEnum<["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]>; /**
|
|
44082
|
+
* Describes what to download from each file, this should contain all file id mentioned in
|
|
44083
|
+
* importMetadataBySourceId.
|
|
44084
|
+
*
|
|
44085
|
+
* File id -> file download scope
|
|
44086
|
+
*/
|
|
43900
44087
|
requiresSync: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean, boolean | undefined>;
|
|
43901
44088
|
lastImportMetadata: z.ZodOptional<z.ZodObject<{
|
|
43902
44089
|
fileData: z.ZodOptional<z.ZodObject<{
|
|
@@ -43954,6 +44141,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43954
44141
|
components: boolean;
|
|
43955
44142
|
documentationFrames: boolean;
|
|
43956
44143
|
tokens: boolean;
|
|
44144
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43957
44145
|
themePersistentId?: string | undefined;
|
|
43958
44146
|
};
|
|
43959
44147
|
fileId: string;
|
|
@@ -43982,6 +44170,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
43982
44170
|
components: boolean;
|
|
43983
44171
|
documentationFrames: boolean;
|
|
43984
44172
|
tokens: boolean;
|
|
44173
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
43985
44174
|
themePersistentId?: string | undefined;
|
|
43986
44175
|
};
|
|
43987
44176
|
fileId: string;
|
|
@@ -44058,6 +44247,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
44058
44247
|
components: boolean;
|
|
44059
44248
|
documentationFrames: boolean;
|
|
44060
44249
|
tokens: boolean;
|
|
44250
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
44061
44251
|
themePersistentId?: string | undefined;
|
|
44062
44252
|
};
|
|
44063
44253
|
fileId: string;
|
|
@@ -44100,6 +44290,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
44100
44290
|
components: boolean;
|
|
44101
44291
|
documentationFrames: boolean;
|
|
44102
44292
|
tokens: boolean;
|
|
44293
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
44103
44294
|
themePersistentId?: string | undefined;
|
|
44104
44295
|
};
|
|
44105
44296
|
fileId: string;
|
|
@@ -44148,6 +44339,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
44148
44339
|
components: boolean;
|
|
44149
44340
|
documentationFrames: boolean;
|
|
44150
44341
|
tokens: boolean;
|
|
44342
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
44151
44343
|
themePersistentId?: string | undefined;
|
|
44152
44344
|
};
|
|
44153
44345
|
fileId: string;
|
|
@@ -44170,6 +44362,14 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
44170
44362
|
maxFileDepth?: number | undefined;
|
|
44171
44363
|
};
|
|
44172
44364
|
}>;
|
|
44365
|
+
importWarnings: Record<string, {
|
|
44366
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
44367
|
+
componentId?: string | undefined;
|
|
44368
|
+
componentName?: string | undefined;
|
|
44369
|
+
styleId?: string | undefined;
|
|
44370
|
+
styleName?: string | undefined;
|
|
44371
|
+
unsupportedStyleValueType?: string | undefined;
|
|
44372
|
+
}[]>;
|
|
44173
44373
|
sourcesWithMissingAccess: string[];
|
|
44174
44374
|
shadowOpacityOptional: boolean;
|
|
44175
44375
|
fileDownloadScopesByFileId: Record<string, {
|
|
@@ -44190,6 +44390,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
44190
44390
|
components: boolean;
|
|
44191
44391
|
documentationFrames: boolean;
|
|
44192
44392
|
tokens: boolean;
|
|
44393
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
44193
44394
|
themePersistentId?: string | undefined;
|
|
44194
44395
|
};
|
|
44195
44396
|
fileId: string;
|
|
@@ -44238,6 +44439,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
44238
44439
|
components: boolean;
|
|
44239
44440
|
documentationFrames: boolean;
|
|
44240
44441
|
tokens: boolean;
|
|
44442
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
44241
44443
|
themePersistentId?: string | undefined;
|
|
44242
44444
|
};
|
|
44243
44445
|
fileId: string;
|
|
@@ -44278,6 +44480,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
44278
44480
|
components: boolean;
|
|
44279
44481
|
documentationFrames: boolean;
|
|
44280
44482
|
tokens: boolean;
|
|
44483
|
+
isUnpublishedImportFallbackEnabled: boolean;
|
|
44281
44484
|
themePersistentId?: string | undefined;
|
|
44282
44485
|
};
|
|
44283
44486
|
fileId: string;
|
|
@@ -44311,6 +44514,14 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<{
|
|
|
44311
44514
|
} | undefined;
|
|
44312
44515
|
};
|
|
44313
44516
|
}>;
|
|
44517
|
+
importWarnings?: Record<string, {
|
|
44518
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
44519
|
+
componentId?: string | undefined;
|
|
44520
|
+
componentName?: string | undefined;
|
|
44521
|
+
styleId?: string | undefined;
|
|
44522
|
+
styleName?: string | undefined;
|
|
44523
|
+
unsupportedStyleValueType?: string | undefined;
|
|
44524
|
+
}[]> | undefined;
|
|
44314
44525
|
sourcesWithMissingAccess?: string[] | undefined;
|
|
44315
44526
|
shadowOpacityOptional?: boolean | undefined;
|
|
44316
44527
|
}>;
|
|
@@ -92614,24 +92825,24 @@ type DesignTokenImportModelInputOfType<T extends DesignTokenType> = Extract<Desi
|
|
|
92614
92825
|
declare function isDesignTokenImportModelOfType<T extends DesignTokenType>(designToken: DesignTokenImportModel, type: T): designToken is DesignTokenImportModelOfType<T>;
|
|
92615
92826
|
declare function designTokenImportModelTypeFilter<T extends DesignTokenType>(type: T): (designToken: DesignTokenImportModel) => designToken is DesignTokenImportModelOfType<T>;
|
|
92616
92827
|
|
|
92617
|
-
declare const ImportWarningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath"]>;
|
|
92828
|
+
declare const ImportWarningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath", "NoUnpublishedStyles"]>;
|
|
92618
92829
|
type ImportWarningType = z.infer<typeof ImportWarningType>;
|
|
92619
92830
|
declare const ImportWarning: z.ZodObject<{
|
|
92620
|
-
warningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath"]>;
|
|
92831
|
+
warningType: z.ZodEnum<["NoVersionFound", "UnsupportedFill", "UnsupportedStroke", "UnsupportedEffect", "NoPublishedElements", "NoPublishedStyles", "NoPublishedComponents", "NoPublishedAssets", "StyleNotApplied", "ComponentHasNoThumbnail", "DuplicateImportedStyleId", "DuplicateImportedStylePath", "NoUnpublishedStyles"]>;
|
|
92621
92832
|
componentId: z.ZodOptional<z.ZodString>;
|
|
92622
92833
|
componentName: z.ZodOptional<z.ZodString>;
|
|
92623
92834
|
styleId: z.ZodOptional<z.ZodString>;
|
|
92624
92835
|
styleName: z.ZodOptional<z.ZodString>;
|
|
92625
92836
|
unsupportedStyleValueType: z.ZodOptional<z.ZodString>;
|
|
92626
92837
|
}, "strip", z.ZodTypeAny, {
|
|
92627
|
-
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath";
|
|
92838
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
92628
92839
|
componentId?: string | undefined;
|
|
92629
92840
|
componentName?: string | undefined;
|
|
92630
92841
|
styleId?: string | undefined;
|
|
92631
92842
|
styleName?: string | undefined;
|
|
92632
92843
|
unsupportedStyleValueType?: string | undefined;
|
|
92633
92844
|
}, {
|
|
92634
|
-
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath";
|
|
92845
|
+
warningType: "NoVersionFound" | "UnsupportedFill" | "UnsupportedStroke" | "UnsupportedEffect" | "NoPublishedElements" | "NoPublishedStyles" | "NoPublishedComponents" | "NoPublishedAssets" | "StyleNotApplied" | "ComponentHasNoThumbnail" | "DuplicateImportedStyleId" | "DuplicateImportedStylePath" | "NoUnpublishedStyles";
|
|
92635
92846
|
componentId?: string | undefined;
|
|
92636
92847
|
componentName?: string | undefined;
|
|
92637
92848
|
styleId?: string | undefined;
|