@supernova-studio/model 0.58.9 → 0.58.10
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 +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/import/support/figma-files.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -77739,13 +77739,13 @@ declare const FigmaFileDownloadScope: z.ZodObject<{
|
|
|
77739
77739
|
type FigmaFileDownloadScope = z.infer<typeof FigmaFileDownloadScope>;
|
|
77740
77740
|
declare const FigmaFileAccessData: z.ZodObject<{
|
|
77741
77741
|
accessToken: z.ZodString;
|
|
77742
|
-
accessTokenType: z.ZodEnum<["OAuth2", "PAT"]
|
|
77742
|
+
accessTokenType: z.ZodDefault<z.ZodEnum<["OAuth2", "PAT"]>>;
|
|
77743
77743
|
}, "strip", z.ZodTypeAny, {
|
|
77744
77744
|
accessToken: string;
|
|
77745
77745
|
accessTokenType: "OAuth2" | "PAT";
|
|
77746
77746
|
}, {
|
|
77747
77747
|
accessToken: string;
|
|
77748
|
-
accessTokenType
|
|
77748
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
77749
77749
|
}>;
|
|
77750
77750
|
type FigmaFileAccessData = z.infer<typeof FigmaFileAccessData>;
|
|
77751
77751
|
|
|
@@ -77982,13 +77982,13 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
77982
77982
|
*/
|
|
77983
77983
|
fileAccessByFileId: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
77984
77984
|
accessToken: z.ZodString;
|
|
77985
|
-
accessTokenType: z.ZodEnum<["OAuth2", "PAT"]
|
|
77985
|
+
accessTokenType: z.ZodDefault<z.ZodEnum<["OAuth2", "PAT"]>>;
|
|
77986
77986
|
}, "strip", z.ZodTypeAny, {
|
|
77987
77987
|
accessToken: string;
|
|
77988
77988
|
accessTokenType: "OAuth2" | "PAT";
|
|
77989
77989
|
}, {
|
|
77990
77990
|
accessToken: string;
|
|
77991
|
-
accessTokenType
|
|
77991
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
77992
77992
|
}>>;
|
|
77993
77993
|
/**
|
|
77994
77994
|
* Figma source data for which import was requested
|
|
@@ -78291,7 +78291,7 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
78291
78291
|
designSystemId: string;
|
|
78292
78292
|
fileAccessByFileId: Record<string, {
|
|
78293
78293
|
accessToken: string;
|
|
78294
|
-
accessTokenType
|
|
78294
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
78295
78295
|
}>;
|
|
78296
78296
|
importedSourceDataBySourceId: Record<string, {
|
|
78297
78297
|
sourceId: string;
|
|
@@ -78348,13 +78348,13 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<z.objectUtil.exten
|
|
|
78348
78348
|
*/
|
|
78349
78349
|
fileAccessByFileId: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
78350
78350
|
accessToken: z.ZodString;
|
|
78351
|
-
accessTokenType: z.ZodEnum<["OAuth2", "PAT"]
|
|
78351
|
+
accessTokenType: z.ZodDefault<z.ZodEnum<["OAuth2", "PAT"]>>;
|
|
78352
78352
|
}, "strip", z.ZodTypeAny, {
|
|
78353
78353
|
accessToken: string;
|
|
78354
78354
|
accessTokenType: "OAuth2" | "PAT";
|
|
78355
78355
|
}, {
|
|
78356
78356
|
accessToken: string;
|
|
78357
|
-
accessTokenType
|
|
78357
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
78358
78358
|
}>>;
|
|
78359
78359
|
/**
|
|
78360
78360
|
* Figma source data for which import was requested
|
|
@@ -78664,7 +78664,7 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<z.objectUtil.exten
|
|
|
78664
78664
|
designSystemId: string;
|
|
78665
78665
|
fileAccessByFileId: Record<string, {
|
|
78666
78666
|
accessToken: string;
|
|
78667
|
-
accessTokenType
|
|
78667
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
78668
78668
|
}>;
|
|
78669
78669
|
importedSourceDataBySourceId: Record<string, {
|
|
78670
78670
|
sourceId: string;
|
|
@@ -79001,13 +79001,13 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<z.objectUtil.ext
|
|
|
79001
79001
|
*/
|
|
79002
79002
|
fileAccessByFileId: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
79003
79003
|
accessToken: z.ZodString;
|
|
79004
|
-
accessTokenType: z.ZodEnum<["OAuth2", "PAT"]
|
|
79004
|
+
accessTokenType: z.ZodDefault<z.ZodEnum<["OAuth2", "PAT"]>>;
|
|
79005
79005
|
}, "strip", z.ZodTypeAny, {
|
|
79006
79006
|
accessToken: string;
|
|
79007
79007
|
accessTokenType: "OAuth2" | "PAT";
|
|
79008
79008
|
}, {
|
|
79009
79009
|
accessToken: string;
|
|
79010
|
-
accessTokenType
|
|
79010
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
79011
79011
|
}>>;
|
|
79012
79012
|
/**
|
|
79013
79013
|
* Figma source data for which import was requested
|
|
@@ -79685,7 +79685,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<z.objectUtil.ext
|
|
|
79685
79685
|
designSystemId: string;
|
|
79686
79686
|
fileAccessByFileId: Record<string, {
|
|
79687
79687
|
accessToken: string;
|
|
79688
|
-
accessTokenType
|
|
79688
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
79689
79689
|
}>;
|
|
79690
79690
|
importedSourceDataBySourceId: Record<string, {
|
|
79691
79691
|
sourceId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -77739,13 +77739,13 @@ declare const FigmaFileDownloadScope: z.ZodObject<{
|
|
|
77739
77739
|
type FigmaFileDownloadScope = z.infer<typeof FigmaFileDownloadScope>;
|
|
77740
77740
|
declare const FigmaFileAccessData: z.ZodObject<{
|
|
77741
77741
|
accessToken: z.ZodString;
|
|
77742
|
-
accessTokenType: z.ZodEnum<["OAuth2", "PAT"]
|
|
77742
|
+
accessTokenType: z.ZodDefault<z.ZodEnum<["OAuth2", "PAT"]>>;
|
|
77743
77743
|
}, "strip", z.ZodTypeAny, {
|
|
77744
77744
|
accessToken: string;
|
|
77745
77745
|
accessTokenType: "OAuth2" | "PAT";
|
|
77746
77746
|
}, {
|
|
77747
77747
|
accessToken: string;
|
|
77748
|
-
accessTokenType
|
|
77748
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
77749
77749
|
}>;
|
|
77750
77750
|
type FigmaFileAccessData = z.infer<typeof FigmaFileAccessData>;
|
|
77751
77751
|
|
|
@@ -77982,13 +77982,13 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
77982
77982
|
*/
|
|
77983
77983
|
fileAccessByFileId: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
77984
77984
|
accessToken: z.ZodString;
|
|
77985
|
-
accessTokenType: z.ZodEnum<["OAuth2", "PAT"]
|
|
77985
|
+
accessTokenType: z.ZodDefault<z.ZodEnum<["OAuth2", "PAT"]>>;
|
|
77986
77986
|
}, "strip", z.ZodTypeAny, {
|
|
77987
77987
|
accessToken: string;
|
|
77988
77988
|
accessTokenType: "OAuth2" | "PAT";
|
|
77989
77989
|
}, {
|
|
77990
77990
|
accessToken: string;
|
|
77991
|
-
accessTokenType
|
|
77991
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
77992
77992
|
}>>;
|
|
77993
77993
|
/**
|
|
77994
77994
|
* Figma source data for which import was requested
|
|
@@ -78291,7 +78291,7 @@ declare const FigmaImportBaseContext: z.ZodObject<{
|
|
|
78291
78291
|
designSystemId: string;
|
|
78292
78292
|
fileAccessByFileId: Record<string, {
|
|
78293
78293
|
accessToken: string;
|
|
78294
|
-
accessTokenType
|
|
78294
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
78295
78295
|
}>;
|
|
78296
78296
|
importedSourceDataBySourceId: Record<string, {
|
|
78297
78297
|
sourceId: string;
|
|
@@ -78348,13 +78348,13 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<z.objectUtil.exten
|
|
|
78348
78348
|
*/
|
|
78349
78349
|
fileAccessByFileId: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
78350
78350
|
accessToken: z.ZodString;
|
|
78351
|
-
accessTokenType: z.ZodEnum<["OAuth2", "PAT"]
|
|
78351
|
+
accessTokenType: z.ZodDefault<z.ZodEnum<["OAuth2", "PAT"]>>;
|
|
78352
78352
|
}, "strip", z.ZodTypeAny, {
|
|
78353
78353
|
accessToken: string;
|
|
78354
78354
|
accessTokenType: "OAuth2" | "PAT";
|
|
78355
78355
|
}, {
|
|
78356
78356
|
accessToken: string;
|
|
78357
|
-
accessTokenType
|
|
78357
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
78358
78358
|
}>>;
|
|
78359
78359
|
/**
|
|
78360
78360
|
* Figma source data for which import was requested
|
|
@@ -78664,7 +78664,7 @@ declare const FigmaImportContextWithSourcesState: z.ZodObject<z.objectUtil.exten
|
|
|
78664
78664
|
designSystemId: string;
|
|
78665
78665
|
fileAccessByFileId: Record<string, {
|
|
78666
78666
|
accessToken: string;
|
|
78667
|
-
accessTokenType
|
|
78667
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
78668
78668
|
}>;
|
|
78669
78669
|
importedSourceDataBySourceId: Record<string, {
|
|
78670
78670
|
sourceId: string;
|
|
@@ -79001,13 +79001,13 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<z.objectUtil.ext
|
|
|
79001
79001
|
*/
|
|
79002
79002
|
fileAccessByFileId: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
79003
79003
|
accessToken: z.ZodString;
|
|
79004
|
-
accessTokenType: z.ZodEnum<["OAuth2", "PAT"]
|
|
79004
|
+
accessTokenType: z.ZodDefault<z.ZodEnum<["OAuth2", "PAT"]>>;
|
|
79005
79005
|
}, "strip", z.ZodTypeAny, {
|
|
79006
79006
|
accessToken: string;
|
|
79007
79007
|
accessTokenType: "OAuth2" | "PAT";
|
|
79008
79008
|
}, {
|
|
79009
79009
|
accessToken: string;
|
|
79010
|
-
accessTokenType
|
|
79010
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
79011
79011
|
}>>;
|
|
79012
79012
|
/**
|
|
79013
79013
|
* Figma source data for which import was requested
|
|
@@ -79685,7 +79685,7 @@ declare const FigmaImportContextWithDownloadScopes: z.ZodObject<z.objectUtil.ext
|
|
|
79685
79685
|
designSystemId: string;
|
|
79686
79686
|
fileAccessByFileId: Record<string, {
|
|
79687
79687
|
accessToken: string;
|
|
79688
|
-
accessTokenType
|
|
79688
|
+
accessTokenType?: "OAuth2" | "PAT" | undefined;
|
|
79689
79689
|
}>;
|
|
79690
79690
|
importedSourceDataBySourceId: Record<string, {
|
|
79691
79691
|
sourceId: string;
|
package/dist/index.js
CHANGED
|
@@ -475,7 +475,7 @@ var FigmaFileDownloadScope = _zod.z.object({
|
|
|
475
475
|
});
|
|
476
476
|
var FigmaFileAccessData = _zod.z.object({
|
|
477
477
|
accessToken: _zod.z.string(),
|
|
478
|
-
accessTokenType: _zod.z.enum(["OAuth2", "PAT"])
|
|
478
|
+
accessTokenType: _zod.z.enum(["OAuth2", "PAT"]).default("OAuth2")
|
|
479
479
|
});
|
|
480
480
|
|
|
481
481
|
// src/dsm/import/support/import-context.ts
|