@supernova-studio/model 0.26.0 → 0.27.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.mts CHANGED
@@ -5170,7 +5170,49 @@ declare const PageBlockDefinition: z.ZodObject<{
5170
5170
  name: z.ZodString;
5171
5171
  description: z.ZodString;
5172
5172
  category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
5173
- icon: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
5173
+ icon: z.ZodOptional<z.ZodObject<{
5174
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
5175
+ resource: z.ZodOptional<z.ZodObject<{
5176
+ url: z.ZodString;
5177
+ resourceId: z.ZodString;
5178
+ }, "strip", z.ZodTypeAny, {
5179
+ url: string;
5180
+ resourceId: string;
5181
+ }, {
5182
+ url: string;
5183
+ resourceId: string;
5184
+ }>>;
5185
+ figmaFile: z.ZodOptional<z.ZodObject<{
5186
+ sourceId: z.ZodString;
5187
+ frameReferenceId: z.ZodString;
5188
+ }, "strip", z.ZodTypeAny, {
5189
+ sourceId: string;
5190
+ frameReferenceId: string;
5191
+ }, {
5192
+ sourceId: string;
5193
+ frameReferenceId: string;
5194
+ }>>;
5195
+ }, "strip", z.ZodTypeAny, {
5196
+ type: "Resource" | "FigmaNode";
5197
+ resource?: {
5198
+ url: string;
5199
+ resourceId: string;
5200
+ } | undefined;
5201
+ figmaFile?: {
5202
+ sourceId: string;
5203
+ frameReferenceId: string;
5204
+ } | undefined;
5205
+ }, {
5206
+ type: "Resource" | "FigmaNode";
5207
+ resource?: {
5208
+ url: string;
5209
+ resourceId: string;
5210
+ } | undefined;
5211
+ figmaFile?: {
5212
+ sourceId: string;
5213
+ frameReferenceId: string;
5214
+ } | undefined;
5215
+ }>>;
5174
5216
  documentationLink: z.ZodOptional<z.ZodString>;
5175
5217
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5176
5218
  item: z.ZodObject<{
@@ -5488,7 +5530,17 @@ declare const PageBlockDefinition: z.ZodObject<{
5488
5530
  documentationLink?: string | undefined;
5489
5531
  } | undefined;
5490
5532
  };
5491
- icon?: {} | undefined;
5533
+ icon?: {
5534
+ type: "Resource" | "FigmaNode";
5535
+ resource?: {
5536
+ url: string;
5537
+ resourceId: string;
5538
+ } | undefined;
5539
+ figmaFile?: {
5540
+ sourceId: string;
5541
+ frameReferenceId: string;
5542
+ } | undefined;
5543
+ } | undefined;
5492
5544
  documentationLink?: string | undefined;
5493
5545
  searchKeywords?: string[] | undefined;
5494
5546
  appearance?: {
@@ -5556,7 +5608,17 @@ declare const PageBlockDefinition: z.ZodObject<{
5556
5608
  documentationLink?: string | undefined;
5557
5609
  } | undefined;
5558
5610
  };
5559
- icon?: {} | undefined;
5611
+ icon?: {
5612
+ type: "Resource" | "FigmaNode";
5613
+ resource?: {
5614
+ url: string;
5615
+ resourceId: string;
5616
+ } | undefined;
5617
+ figmaFile?: {
5618
+ sourceId: string;
5619
+ frameReferenceId: string;
5620
+ } | undefined;
5621
+ } | undefined;
5560
5622
  documentationLink?: string | undefined;
5561
5623
  searchKeywords?: string[] | undefined;
5562
5624
  appearance?: {
@@ -106675,7 +106737,49 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
106675
106737
  name: z.ZodString;
106676
106738
  description: z.ZodString;
106677
106739
  category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
106678
- icon: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
106740
+ icon: z.ZodOptional<z.ZodObject<{
106741
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
106742
+ resource: z.ZodOptional<z.ZodObject<{
106743
+ url: z.ZodString;
106744
+ resourceId: z.ZodString;
106745
+ }, "strip", z.ZodTypeAny, {
106746
+ url: string;
106747
+ resourceId: string;
106748
+ }, {
106749
+ url: string;
106750
+ resourceId: string;
106751
+ }>>;
106752
+ figmaFile: z.ZodOptional<z.ZodObject<{
106753
+ sourceId: z.ZodString;
106754
+ frameReferenceId: z.ZodString;
106755
+ }, "strip", z.ZodTypeAny, {
106756
+ sourceId: string;
106757
+ frameReferenceId: string;
106758
+ }, {
106759
+ sourceId: string;
106760
+ frameReferenceId: string;
106761
+ }>>;
106762
+ }, "strip", z.ZodTypeAny, {
106763
+ type: "Resource" | "FigmaNode";
106764
+ resource?: {
106765
+ url: string;
106766
+ resourceId: string;
106767
+ } | undefined;
106768
+ figmaFile?: {
106769
+ sourceId: string;
106770
+ frameReferenceId: string;
106771
+ } | undefined;
106772
+ }, {
106773
+ type: "Resource" | "FigmaNode";
106774
+ resource?: {
106775
+ url: string;
106776
+ resourceId: string;
106777
+ } | undefined;
106778
+ figmaFile?: {
106779
+ sourceId: string;
106780
+ frameReferenceId: string;
106781
+ } | undefined;
106782
+ }>>;
106679
106783
  documentationLink: z.ZodOptional<z.ZodString>;
106680
106784
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106681
106785
  item: z.ZodObject<{
@@ -106993,7 +107097,17 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
106993
107097
  documentationLink?: string | undefined;
106994
107098
  } | undefined;
106995
107099
  };
106996
- icon?: {} | undefined;
107100
+ icon?: {
107101
+ type: "Resource" | "FigmaNode";
107102
+ resource?: {
107103
+ url: string;
107104
+ resourceId: string;
107105
+ } | undefined;
107106
+ figmaFile?: {
107107
+ sourceId: string;
107108
+ frameReferenceId: string;
107109
+ } | undefined;
107110
+ } | undefined;
106997
107111
  documentationLink?: string | undefined;
106998
107112
  searchKeywords?: string[] | undefined;
106999
107113
  appearance?: {
@@ -107061,7 +107175,17 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107061
107175
  documentationLink?: string | undefined;
107062
107176
  } | undefined;
107063
107177
  };
107064
- icon?: {} | undefined;
107178
+ icon?: {
107179
+ type: "Resource" | "FigmaNode";
107180
+ resource?: {
107181
+ url: string;
107182
+ resourceId: string;
107183
+ } | undefined;
107184
+ figmaFile?: {
107185
+ sourceId: string;
107186
+ frameReferenceId: string;
107187
+ } | undefined;
107188
+ } | undefined;
107065
107189
  documentationLink?: string | undefined;
107066
107190
  searchKeywords?: string[] | undefined;
107067
107191
  appearance?: {
@@ -107319,7 +107443,17 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107319
107443
  documentationLink?: string | undefined;
107320
107444
  } | undefined;
107321
107445
  };
107322
- icon?: {} | undefined;
107446
+ icon?: {
107447
+ type: "Resource" | "FigmaNode";
107448
+ resource?: {
107449
+ url: string;
107450
+ resourceId: string;
107451
+ } | undefined;
107452
+ figmaFile?: {
107453
+ sourceId: string;
107454
+ frameReferenceId: string;
107455
+ } | undefined;
107456
+ } | undefined;
107323
107457
  documentationLink?: string | undefined;
107324
107458
  searchKeywords?: string[] | undefined;
107325
107459
  appearance?: {
@@ -107935,7 +108069,17 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107935
108069
  documentationLink?: string | undefined;
107936
108070
  } | undefined;
107937
108071
  };
107938
- icon?: {} | undefined;
108072
+ icon?: {
108073
+ type: "Resource" | "FigmaNode";
108074
+ resource?: {
108075
+ url: string;
108076
+ resourceId: string;
108077
+ } | undefined;
108078
+ figmaFile?: {
108079
+ sourceId: string;
108080
+ frameReferenceId: string;
108081
+ } | undefined;
108082
+ } | undefined;
107939
108083
  documentationLink?: string | undefined;
107940
108084
  searchKeywords?: string[] | undefined;
107941
108085
  appearance?: {
package/dist/index.d.ts CHANGED
@@ -5170,7 +5170,49 @@ declare const PageBlockDefinition: z.ZodObject<{
5170
5170
  name: z.ZodString;
5171
5171
  description: z.ZodString;
5172
5172
  category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
5173
- icon: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
5173
+ icon: z.ZodOptional<z.ZodObject<{
5174
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
5175
+ resource: z.ZodOptional<z.ZodObject<{
5176
+ url: z.ZodString;
5177
+ resourceId: z.ZodString;
5178
+ }, "strip", z.ZodTypeAny, {
5179
+ url: string;
5180
+ resourceId: string;
5181
+ }, {
5182
+ url: string;
5183
+ resourceId: string;
5184
+ }>>;
5185
+ figmaFile: z.ZodOptional<z.ZodObject<{
5186
+ sourceId: z.ZodString;
5187
+ frameReferenceId: z.ZodString;
5188
+ }, "strip", z.ZodTypeAny, {
5189
+ sourceId: string;
5190
+ frameReferenceId: string;
5191
+ }, {
5192
+ sourceId: string;
5193
+ frameReferenceId: string;
5194
+ }>>;
5195
+ }, "strip", z.ZodTypeAny, {
5196
+ type: "Resource" | "FigmaNode";
5197
+ resource?: {
5198
+ url: string;
5199
+ resourceId: string;
5200
+ } | undefined;
5201
+ figmaFile?: {
5202
+ sourceId: string;
5203
+ frameReferenceId: string;
5204
+ } | undefined;
5205
+ }, {
5206
+ type: "Resource" | "FigmaNode";
5207
+ resource?: {
5208
+ url: string;
5209
+ resourceId: string;
5210
+ } | undefined;
5211
+ figmaFile?: {
5212
+ sourceId: string;
5213
+ frameReferenceId: string;
5214
+ } | undefined;
5215
+ }>>;
5174
5216
  documentationLink: z.ZodOptional<z.ZodString>;
5175
5217
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5176
5218
  item: z.ZodObject<{
@@ -5488,7 +5530,17 @@ declare const PageBlockDefinition: z.ZodObject<{
5488
5530
  documentationLink?: string | undefined;
5489
5531
  } | undefined;
5490
5532
  };
5491
- icon?: {} | undefined;
5533
+ icon?: {
5534
+ type: "Resource" | "FigmaNode";
5535
+ resource?: {
5536
+ url: string;
5537
+ resourceId: string;
5538
+ } | undefined;
5539
+ figmaFile?: {
5540
+ sourceId: string;
5541
+ frameReferenceId: string;
5542
+ } | undefined;
5543
+ } | undefined;
5492
5544
  documentationLink?: string | undefined;
5493
5545
  searchKeywords?: string[] | undefined;
5494
5546
  appearance?: {
@@ -5556,7 +5608,17 @@ declare const PageBlockDefinition: z.ZodObject<{
5556
5608
  documentationLink?: string | undefined;
5557
5609
  } | undefined;
5558
5610
  };
5559
- icon?: {} | undefined;
5611
+ icon?: {
5612
+ type: "Resource" | "FigmaNode";
5613
+ resource?: {
5614
+ url: string;
5615
+ resourceId: string;
5616
+ } | undefined;
5617
+ figmaFile?: {
5618
+ sourceId: string;
5619
+ frameReferenceId: string;
5620
+ } | undefined;
5621
+ } | undefined;
5560
5622
  documentationLink?: string | undefined;
5561
5623
  searchKeywords?: string[] | undefined;
5562
5624
  appearance?: {
@@ -106675,7 +106737,49 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
106675
106737
  name: z.ZodString;
106676
106738
  description: z.ZodString;
106677
106739
  category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
106678
- icon: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
106740
+ icon: z.ZodOptional<z.ZodObject<{
106741
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
106742
+ resource: z.ZodOptional<z.ZodObject<{
106743
+ url: z.ZodString;
106744
+ resourceId: z.ZodString;
106745
+ }, "strip", z.ZodTypeAny, {
106746
+ url: string;
106747
+ resourceId: string;
106748
+ }, {
106749
+ url: string;
106750
+ resourceId: string;
106751
+ }>>;
106752
+ figmaFile: z.ZodOptional<z.ZodObject<{
106753
+ sourceId: z.ZodString;
106754
+ frameReferenceId: z.ZodString;
106755
+ }, "strip", z.ZodTypeAny, {
106756
+ sourceId: string;
106757
+ frameReferenceId: string;
106758
+ }, {
106759
+ sourceId: string;
106760
+ frameReferenceId: string;
106761
+ }>>;
106762
+ }, "strip", z.ZodTypeAny, {
106763
+ type: "Resource" | "FigmaNode";
106764
+ resource?: {
106765
+ url: string;
106766
+ resourceId: string;
106767
+ } | undefined;
106768
+ figmaFile?: {
106769
+ sourceId: string;
106770
+ frameReferenceId: string;
106771
+ } | undefined;
106772
+ }, {
106773
+ type: "Resource" | "FigmaNode";
106774
+ resource?: {
106775
+ url: string;
106776
+ resourceId: string;
106777
+ } | undefined;
106778
+ figmaFile?: {
106779
+ sourceId: string;
106780
+ frameReferenceId: string;
106781
+ } | undefined;
106782
+ }>>;
106679
106783
  documentationLink: z.ZodOptional<z.ZodString>;
106680
106784
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106681
106785
  item: z.ZodObject<{
@@ -106993,7 +107097,17 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
106993
107097
  documentationLink?: string | undefined;
106994
107098
  } | undefined;
106995
107099
  };
106996
- icon?: {} | undefined;
107100
+ icon?: {
107101
+ type: "Resource" | "FigmaNode";
107102
+ resource?: {
107103
+ url: string;
107104
+ resourceId: string;
107105
+ } | undefined;
107106
+ figmaFile?: {
107107
+ sourceId: string;
107108
+ frameReferenceId: string;
107109
+ } | undefined;
107110
+ } | undefined;
106997
107111
  documentationLink?: string | undefined;
106998
107112
  searchKeywords?: string[] | undefined;
106999
107113
  appearance?: {
@@ -107061,7 +107175,17 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107061
107175
  documentationLink?: string | undefined;
107062
107176
  } | undefined;
107063
107177
  };
107064
- icon?: {} | undefined;
107178
+ icon?: {
107179
+ type: "Resource" | "FigmaNode";
107180
+ resource?: {
107181
+ url: string;
107182
+ resourceId: string;
107183
+ } | undefined;
107184
+ figmaFile?: {
107185
+ sourceId: string;
107186
+ frameReferenceId: string;
107187
+ } | undefined;
107188
+ } | undefined;
107065
107189
  documentationLink?: string | undefined;
107066
107190
  searchKeywords?: string[] | undefined;
107067
107191
  appearance?: {
@@ -107319,7 +107443,17 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107319
107443
  documentationLink?: string | undefined;
107320
107444
  } | undefined;
107321
107445
  };
107322
- icon?: {} | undefined;
107446
+ icon?: {
107447
+ type: "Resource" | "FigmaNode";
107448
+ resource?: {
107449
+ url: string;
107450
+ resourceId: string;
107451
+ } | undefined;
107452
+ figmaFile?: {
107453
+ sourceId: string;
107454
+ frameReferenceId: string;
107455
+ } | undefined;
107456
+ } | undefined;
107323
107457
  documentationLink?: string | undefined;
107324
107458
  searchKeywords?: string[] | undefined;
107325
107459
  appearance?: {
@@ -107935,7 +108069,17 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107935
108069
  documentationLink?: string | undefined;
107936
108070
  } | undefined;
107937
108071
  };
107938
- icon?: {} | undefined;
108072
+ icon?: {
108073
+ type: "Resource" | "FigmaNode";
108074
+ resource?: {
108075
+ url: string;
108076
+ resourceId: string;
108077
+ } | undefined;
108078
+ figmaFile?: {
108079
+ sourceId: string;
108080
+ frameReferenceId: string;
108081
+ } | undefined;
108082
+ } | undefined;
107939
108083
  documentationLink?: string | undefined;
107940
108084
  searchKeywords?: string[] | undefined;
107941
108085
  appearance?: {
package/dist/index.js CHANGED
@@ -2381,7 +2381,7 @@ var PageBlockDefinition = _zod.z.object({
2381
2381
  name: _zod.z.string(),
2382
2382
  description: _zod.z.string(),
2383
2383
  category: PageBlockCategory,
2384
- icon: AssetValue.optional(),
2384
+ icon: PageBlockImageReference.optional(),
2385
2385
  documentationLink: _zod.z.string().optional(),
2386
2386
  searchKeywords: _zod.z.array(_zod.z.string()).optional(),
2387
2387
  item: PageBlockDefinitionItem,