@supernova-studio/model 0.27.0 → 0.28.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,49 +5170,7 @@ 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<{
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
- }>>;
5173
+ icon: z.ZodOptional<z.ZodString>;
5216
5174
  documentationLink: z.ZodOptional<z.ZodString>;
5217
5175
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5218
5176
  item: z.ZodObject<{
@@ -5530,17 +5488,7 @@ declare const PageBlockDefinition: z.ZodObject<{
5530
5488
  documentationLink?: string | undefined;
5531
5489
  } | undefined;
5532
5490
  };
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;
5491
+ icon?: string | undefined;
5544
5492
  documentationLink?: string | undefined;
5545
5493
  searchKeywords?: string[] | undefined;
5546
5494
  appearance?: {
@@ -5608,17 +5556,7 @@ declare const PageBlockDefinition: z.ZodObject<{
5608
5556
  documentationLink?: string | undefined;
5609
5557
  } | undefined;
5610
5558
  };
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;
5559
+ icon?: string | undefined;
5622
5560
  documentationLink?: string | undefined;
5623
5561
  searchKeywords?: string[] | undefined;
5624
5562
  appearance?: {
@@ -106737,49 +106675,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
106737
106675
  name: z.ZodString;
106738
106676
  description: z.ZodString;
106739
106677
  category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
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
- }>>;
106678
+ icon: z.ZodOptional<z.ZodString>;
106783
106679
  documentationLink: z.ZodOptional<z.ZodString>;
106784
106680
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106785
106681
  item: z.ZodObject<{
@@ -107097,17 +106993,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107097
106993
  documentationLink?: string | undefined;
107098
106994
  } | undefined;
107099
106995
  };
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;
106996
+ icon?: string | undefined;
107111
106997
  documentationLink?: string | undefined;
107112
106998
  searchKeywords?: string[] | undefined;
107113
106999
  appearance?: {
@@ -107175,17 +107061,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107175
107061
  documentationLink?: string | undefined;
107176
107062
  } | undefined;
107177
107063
  };
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;
107064
+ icon?: string | undefined;
107189
107065
  documentationLink?: string | undefined;
107190
107066
  searchKeywords?: string[] | undefined;
107191
107067
  appearance?: {
@@ -107443,17 +107319,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107443
107319
  documentationLink?: string | undefined;
107444
107320
  } | undefined;
107445
107321
  };
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;
107322
+ icon?: string | undefined;
107457
107323
  documentationLink?: string | undefined;
107458
107324
  searchKeywords?: string[] | undefined;
107459
107325
  appearance?: {
@@ -108069,17 +107935,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
108069
107935
  documentationLink?: string | undefined;
108070
107936
  } | undefined;
108071
107937
  };
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;
107938
+ icon?: string | undefined;
108083
107939
  documentationLink?: string | undefined;
108084
107940
  searchKeywords?: string[] | undefined;
108085
107941
  appearance?: {
package/dist/index.d.ts CHANGED
@@ -5170,49 +5170,7 @@ 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<{
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
- }>>;
5173
+ icon: z.ZodOptional<z.ZodString>;
5216
5174
  documentationLink: z.ZodOptional<z.ZodString>;
5217
5175
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5218
5176
  item: z.ZodObject<{
@@ -5530,17 +5488,7 @@ declare const PageBlockDefinition: z.ZodObject<{
5530
5488
  documentationLink?: string | undefined;
5531
5489
  } | undefined;
5532
5490
  };
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;
5491
+ icon?: string | undefined;
5544
5492
  documentationLink?: string | undefined;
5545
5493
  searchKeywords?: string[] | undefined;
5546
5494
  appearance?: {
@@ -5608,17 +5556,7 @@ declare const PageBlockDefinition: z.ZodObject<{
5608
5556
  documentationLink?: string | undefined;
5609
5557
  } | undefined;
5610
5558
  };
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;
5559
+ icon?: string | undefined;
5622
5560
  documentationLink?: string | undefined;
5623
5561
  searchKeywords?: string[] | undefined;
5624
5562
  appearance?: {
@@ -106737,49 +106675,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
106737
106675
  name: z.ZodString;
106738
106676
  description: z.ZodString;
106739
106677
  category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
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
- }>>;
106678
+ icon: z.ZodOptional<z.ZodString>;
106783
106679
  documentationLink: z.ZodOptional<z.ZodString>;
106784
106680
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
106785
106681
  item: z.ZodObject<{
@@ -107097,17 +106993,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107097
106993
  documentationLink?: string | undefined;
107098
106994
  } | undefined;
107099
106995
  };
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;
106996
+ icon?: string | undefined;
107111
106997
  documentationLink?: string | undefined;
107112
106998
  searchKeywords?: string[] | undefined;
107113
106999
  appearance?: {
@@ -107175,17 +107061,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107175
107061
  documentationLink?: string | undefined;
107176
107062
  } | undefined;
107177
107063
  };
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;
107064
+ icon?: string | undefined;
107189
107065
  documentationLink?: string | undefined;
107190
107066
  searchKeywords?: string[] | undefined;
107191
107067
  appearance?: {
@@ -107443,17 +107319,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
107443
107319
  documentationLink?: string | undefined;
107444
107320
  } | undefined;
107445
107321
  };
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;
107322
+ icon?: string | undefined;
107457
107323
  documentationLink?: string | undefined;
107458
107324
  searchKeywords?: string[] | undefined;
107459
107325
  appearance?: {
@@ -108069,17 +107935,7 @@ declare const DocumentationPageRoomInitialState: z.ZodObject<{
108069
107935
  documentationLink?: string | undefined;
108070
107936
  } | undefined;
108071
107937
  };
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;
107938
+ icon?: string | undefined;
108083
107939
  documentationLink?: string | undefined;
108084
107940
  searchKeywords?: string[] | undefined;
108085
107941
  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: PageBlockImageReference.optional(),
2384
+ icon: _zod.z.string().optional(),
2385
2385
  documentationLink: _zod.z.string().optional(),
2386
2386
  searchKeywords: _zod.z.array(_zod.z.string()).optional(),
2387
2387
  item: PageBlockDefinitionItem,