@supernova-studio/client 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
@@ -11666,49 +11666,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
11666
11666
  name: z.ZodString;
11667
11667
  description: z.ZodString;
11668
11668
  category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
11669
- icon: z.ZodOptional<z.ZodObject<{
11670
- type: z.ZodEnum<["Resource", "FigmaNode"]>;
11671
- resource: z.ZodOptional<z.ZodObject<{
11672
- url: z.ZodString;
11673
- resourceId: z.ZodString;
11674
- }, "strip", z.ZodTypeAny, {
11675
- url: string;
11676
- resourceId: string;
11677
- }, {
11678
- url: string;
11679
- resourceId: string;
11680
- }>>;
11681
- figmaFile: z.ZodOptional<z.ZodObject<{
11682
- sourceId: z.ZodString;
11683
- frameReferenceId: z.ZodString;
11684
- }, "strip", z.ZodTypeAny, {
11685
- sourceId: string;
11686
- frameReferenceId: string;
11687
- }, {
11688
- sourceId: string;
11689
- frameReferenceId: string;
11690
- }>>;
11691
- }, "strip", z.ZodTypeAny, {
11692
- type: "FigmaNode" | "Resource";
11693
- resource?: {
11694
- url: string;
11695
- resourceId: string;
11696
- } | undefined;
11697
- figmaFile?: {
11698
- sourceId: string;
11699
- frameReferenceId: string;
11700
- } | undefined;
11701
- }, {
11702
- type: "FigmaNode" | "Resource";
11703
- resource?: {
11704
- url: string;
11705
- resourceId: string;
11706
- } | undefined;
11707
- figmaFile?: {
11708
- sourceId: string;
11709
- frameReferenceId: string;
11710
- } | undefined;
11711
- }>>;
11669
+ icon: z.ZodOptional<z.ZodString>;
11712
11670
  documentationLink: z.ZodOptional<z.ZodString>;
11713
11671
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11714
11672
  item: z.ZodObject<{
@@ -12026,17 +11984,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
12026
11984
  documentationLink?: string | undefined;
12027
11985
  } | undefined;
12028
11986
  };
12029
- icon?: {
12030
- type: "FigmaNode" | "Resource";
12031
- resource?: {
12032
- url: string;
12033
- resourceId: string;
12034
- } | undefined;
12035
- figmaFile?: {
12036
- sourceId: string;
12037
- frameReferenceId: string;
12038
- } | undefined;
12039
- } | undefined;
11987
+ icon?: string | undefined;
12040
11988
  documentationLink?: string | undefined;
12041
11989
  searchKeywords?: string[] | undefined;
12042
11990
  appearance?: {
@@ -12104,17 +12052,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
12104
12052
  documentationLink?: string | undefined;
12105
12053
  } | undefined;
12106
12054
  };
12107
- icon?: {
12108
- type: "FigmaNode" | "Resource";
12109
- resource?: {
12110
- url: string;
12111
- resourceId: string;
12112
- } | undefined;
12113
- figmaFile?: {
12114
- sourceId: string;
12115
- frameReferenceId: string;
12116
- } | undefined;
12117
- } | undefined;
12055
+ icon?: string | undefined;
12118
12056
  documentationLink?: string | undefined;
12119
12057
  searchKeywords?: string[] | undefined;
12120
12058
  appearance?: {
@@ -12184,17 +12122,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
12184
12122
  documentationLink?: string | undefined;
12185
12123
  } | undefined;
12186
12124
  };
12187
- icon?: {
12188
- type: "FigmaNode" | "Resource";
12189
- resource?: {
12190
- url: string;
12191
- resourceId: string;
12192
- } | undefined;
12193
- figmaFile?: {
12194
- sourceId: string;
12195
- frameReferenceId: string;
12196
- } | undefined;
12197
- } | undefined;
12125
+ icon?: string | undefined;
12198
12126
  documentationLink?: string | undefined;
12199
12127
  searchKeywords?: string[] | undefined;
12200
12128
  appearance?: {
@@ -12264,17 +12192,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
12264
12192
  documentationLink?: string | undefined;
12265
12193
  } | undefined;
12266
12194
  };
12267
- icon?: {
12268
- type: "FigmaNode" | "Resource";
12269
- resource?: {
12270
- url: string;
12271
- resourceId: string;
12272
- } | undefined;
12273
- figmaFile?: {
12274
- sourceId: string;
12275
- frameReferenceId: string;
12276
- } | undefined;
12277
- } | undefined;
12195
+ icon?: string | undefined;
12278
12196
  documentationLink?: string | undefined;
12279
12197
  searchKeywords?: string[] | undefined;
12280
12198
  appearance?: {
@@ -14513,17 +14431,7 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
14513
14431
  documentationLink?: string | undefined;
14514
14432
  } | undefined;
14515
14433
  };
14516
- icon?: {
14517
- type: "FigmaNode" | "Resource";
14518
- resource?: {
14519
- url: string;
14520
- resourceId: string;
14521
- } | undefined;
14522
- figmaFile?: {
14523
- sourceId: string;
14524
- frameReferenceId: string;
14525
- } | undefined;
14526
- } | undefined;
14434
+ icon?: string | undefined;
14527
14435
  documentationLink?: string | undefined;
14528
14436
  searchKeywords?: string[] | undefined;
14529
14437
  appearance?: {
package/dist/index.d.ts CHANGED
@@ -11666,49 +11666,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
11666
11666
  name: z.ZodString;
11667
11667
  description: z.ZodString;
11668
11668
  category: z.ZodEnum<["Text", "Layout", "Media", "Embed", "Figma", "Code", "Guidelines", "Tokens", "Components", "Assets", "Data", "Other"]>;
11669
- icon: z.ZodOptional<z.ZodObject<{
11670
- type: z.ZodEnum<["Resource", "FigmaNode"]>;
11671
- resource: z.ZodOptional<z.ZodObject<{
11672
- url: z.ZodString;
11673
- resourceId: z.ZodString;
11674
- }, "strip", z.ZodTypeAny, {
11675
- url: string;
11676
- resourceId: string;
11677
- }, {
11678
- url: string;
11679
- resourceId: string;
11680
- }>>;
11681
- figmaFile: z.ZodOptional<z.ZodObject<{
11682
- sourceId: z.ZodString;
11683
- frameReferenceId: z.ZodString;
11684
- }, "strip", z.ZodTypeAny, {
11685
- sourceId: string;
11686
- frameReferenceId: string;
11687
- }, {
11688
- sourceId: string;
11689
- frameReferenceId: string;
11690
- }>>;
11691
- }, "strip", z.ZodTypeAny, {
11692
- type: "FigmaNode" | "Resource";
11693
- resource?: {
11694
- url: string;
11695
- resourceId: string;
11696
- } | undefined;
11697
- figmaFile?: {
11698
- sourceId: string;
11699
- frameReferenceId: string;
11700
- } | undefined;
11701
- }, {
11702
- type: "FigmaNode" | "Resource";
11703
- resource?: {
11704
- url: string;
11705
- resourceId: string;
11706
- } | undefined;
11707
- figmaFile?: {
11708
- sourceId: string;
11709
- frameReferenceId: string;
11710
- } | undefined;
11711
- }>>;
11669
+ icon: z.ZodOptional<z.ZodString>;
11712
11670
  documentationLink: z.ZodOptional<z.ZodString>;
11713
11671
  searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11714
11672
  item: z.ZodObject<{
@@ -12026,17 +11984,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
12026
11984
  documentationLink?: string | undefined;
12027
11985
  } | undefined;
12028
11986
  };
12029
- icon?: {
12030
- type: "FigmaNode" | "Resource";
12031
- resource?: {
12032
- url: string;
12033
- resourceId: string;
12034
- } | undefined;
12035
- figmaFile?: {
12036
- sourceId: string;
12037
- frameReferenceId: string;
12038
- } | undefined;
12039
- } | undefined;
11987
+ icon?: string | undefined;
12040
11988
  documentationLink?: string | undefined;
12041
11989
  searchKeywords?: string[] | undefined;
12042
11990
  appearance?: {
@@ -12104,17 +12052,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
12104
12052
  documentationLink?: string | undefined;
12105
12053
  } | undefined;
12106
12054
  };
12107
- icon?: {
12108
- type: "FigmaNode" | "Resource";
12109
- resource?: {
12110
- url: string;
12111
- resourceId: string;
12112
- } | undefined;
12113
- figmaFile?: {
12114
- sourceId: string;
12115
- frameReferenceId: string;
12116
- } | undefined;
12117
- } | undefined;
12055
+ icon?: string | undefined;
12118
12056
  documentationLink?: string | undefined;
12119
12057
  searchKeywords?: string[] | undefined;
12120
12058
  appearance?: {
@@ -12184,17 +12122,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
12184
12122
  documentationLink?: string | undefined;
12185
12123
  } | undefined;
12186
12124
  };
12187
- icon?: {
12188
- type: "FigmaNode" | "Resource";
12189
- resource?: {
12190
- url: string;
12191
- resourceId: string;
12192
- } | undefined;
12193
- figmaFile?: {
12194
- sourceId: string;
12195
- frameReferenceId: string;
12196
- } | undefined;
12197
- } | undefined;
12125
+ icon?: string | undefined;
12198
12126
  documentationLink?: string | undefined;
12199
12127
  searchKeywords?: string[] | undefined;
12200
12128
  appearance?: {
@@ -12264,17 +12192,7 @@ declare const DTOGetBlockDefinitionsOutput: z.ZodObject<{
12264
12192
  documentationLink?: string | undefined;
12265
12193
  } | undefined;
12266
12194
  };
12267
- icon?: {
12268
- type: "FigmaNode" | "Resource";
12269
- resource?: {
12270
- url: string;
12271
- resourceId: string;
12272
- } | undefined;
12273
- figmaFile?: {
12274
- sourceId: string;
12275
- frameReferenceId: string;
12276
- } | undefined;
12277
- } | undefined;
12195
+ icon?: string | undefined;
12278
12196
  documentationLink?: string | undefined;
12279
12197
  searchKeywords?: string[] | undefined;
12280
12198
  appearance?: {
@@ -14513,17 +14431,7 @@ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definition
14513
14431
  documentationLink?: string | undefined;
14514
14432
  } | undefined;
14515
14433
  };
14516
- icon?: {
14517
- type: "FigmaNode" | "Resource";
14518
- resource?: {
14519
- url: string;
14520
- resourceId: string;
14521
- } | undefined;
14522
- figmaFile?: {
14523
- sourceId: string;
14524
- frameReferenceId: string;
14525
- } | undefined;
14526
- } | undefined;
14434
+ icon?: string | undefined;
14527
14435
  documentationLink?: string | undefined;
14528
14436
  searchKeywords?: string[] | undefined;
14529
14437
  appearance?: {
package/dist/index.js CHANGED
@@ -2116,7 +2116,7 @@ var PageBlockDefinition = _zod.z.object({
2116
2116
  name: _zod.z.string(),
2117
2117
  description: _zod.z.string(),
2118
2118
  category: PageBlockCategory,
2119
- icon: PageBlockImageReference.optional(),
2119
+ icon: _zod.z.string().optional(),
2120
2120
  documentationLink: _zod.z.string().optional(),
2121
2121
  searchKeywords: _zod.z.array(_zod.z.string()).optional(),
2122
2122
  item: PageBlockDefinitionItem,