@supernova-studio/model 0.29.1 → 0.30.1

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
@@ -6025,15 +6025,77 @@ type DocumentationPageGroup = z.infer<typeof DocumentationPageGroup>;
6025
6025
  declare const DocumentationLinkPreview: z.ZodObject<{
6026
6026
  title: z.ZodOptional<z.ZodString>;
6027
6027
  description: z.ZodOptional<z.ZodString>;
6028
- thumbnailUrl: z.ZodOptional<z.ZodString>;
6028
+ thumbnail: z.ZodOptional<z.ZodObject<{
6029
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
6030
+ resource: z.ZodOptional<z.ZodObject<{
6031
+ url: z.ZodString;
6032
+ resourceId: z.ZodString;
6033
+ }, "strip", z.ZodTypeAny, {
6034
+ url: string;
6035
+ resourceId: string;
6036
+ }, {
6037
+ url: string;
6038
+ resourceId: string;
6039
+ }>>;
6040
+ figmaFile: z.ZodOptional<z.ZodObject<{
6041
+ sourceId: z.ZodString;
6042
+ frameReferenceId: z.ZodString;
6043
+ }, "strip", z.ZodTypeAny, {
6044
+ sourceId: string;
6045
+ frameReferenceId: string;
6046
+ }, {
6047
+ sourceId: string;
6048
+ frameReferenceId: string;
6049
+ }>>;
6050
+ }, "strip", z.ZodTypeAny, {
6051
+ type: "Resource" | "FigmaNode";
6052
+ resource?: {
6053
+ url: string;
6054
+ resourceId: string;
6055
+ } | undefined;
6056
+ figmaFile?: {
6057
+ sourceId: string;
6058
+ frameReferenceId: string;
6059
+ } | undefined;
6060
+ }, {
6061
+ type: "Resource" | "FigmaNode";
6062
+ resource?: {
6063
+ url: string;
6064
+ resourceId: string;
6065
+ } | undefined;
6066
+ figmaFile?: {
6067
+ sourceId: string;
6068
+ frameReferenceId: string;
6069
+ } | undefined;
6070
+ }>>;
6029
6071
  }, "strip", z.ZodTypeAny, {
6030
6072
  title?: string | undefined;
6031
6073
  description?: string | undefined;
6032
- thumbnailUrl?: string | undefined;
6074
+ thumbnail?: {
6075
+ type: "Resource" | "FigmaNode";
6076
+ resource?: {
6077
+ url: string;
6078
+ resourceId: string;
6079
+ } | undefined;
6080
+ figmaFile?: {
6081
+ sourceId: string;
6082
+ frameReferenceId: string;
6083
+ } | undefined;
6084
+ } | undefined;
6033
6085
  }, {
6034
6086
  title?: string | undefined;
6035
6087
  description?: string | undefined;
6036
- thumbnailUrl?: string | undefined;
6088
+ thumbnail?: {
6089
+ type: "Resource" | "FigmaNode";
6090
+ resource?: {
6091
+ url: string;
6092
+ resourceId: string;
6093
+ } | undefined;
6094
+ figmaFile?: {
6095
+ sourceId: string;
6096
+ frameReferenceId: string;
6097
+ } | undefined;
6098
+ } | undefined;
6037
6099
  }>;
6038
6100
  type DocumentationLinkPreview = z.infer<typeof DocumentationLinkPreview>;
6039
6101
 
package/dist/index.d.ts CHANGED
@@ -6025,15 +6025,77 @@ type DocumentationPageGroup = z.infer<typeof DocumentationPageGroup>;
6025
6025
  declare const DocumentationLinkPreview: z.ZodObject<{
6026
6026
  title: z.ZodOptional<z.ZodString>;
6027
6027
  description: z.ZodOptional<z.ZodString>;
6028
- thumbnailUrl: z.ZodOptional<z.ZodString>;
6028
+ thumbnail: z.ZodOptional<z.ZodObject<{
6029
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
6030
+ resource: z.ZodOptional<z.ZodObject<{
6031
+ url: z.ZodString;
6032
+ resourceId: z.ZodString;
6033
+ }, "strip", z.ZodTypeAny, {
6034
+ url: string;
6035
+ resourceId: string;
6036
+ }, {
6037
+ url: string;
6038
+ resourceId: string;
6039
+ }>>;
6040
+ figmaFile: z.ZodOptional<z.ZodObject<{
6041
+ sourceId: z.ZodString;
6042
+ frameReferenceId: z.ZodString;
6043
+ }, "strip", z.ZodTypeAny, {
6044
+ sourceId: string;
6045
+ frameReferenceId: string;
6046
+ }, {
6047
+ sourceId: string;
6048
+ frameReferenceId: string;
6049
+ }>>;
6050
+ }, "strip", z.ZodTypeAny, {
6051
+ type: "Resource" | "FigmaNode";
6052
+ resource?: {
6053
+ url: string;
6054
+ resourceId: string;
6055
+ } | undefined;
6056
+ figmaFile?: {
6057
+ sourceId: string;
6058
+ frameReferenceId: string;
6059
+ } | undefined;
6060
+ }, {
6061
+ type: "Resource" | "FigmaNode";
6062
+ resource?: {
6063
+ url: string;
6064
+ resourceId: string;
6065
+ } | undefined;
6066
+ figmaFile?: {
6067
+ sourceId: string;
6068
+ frameReferenceId: string;
6069
+ } | undefined;
6070
+ }>>;
6029
6071
  }, "strip", z.ZodTypeAny, {
6030
6072
  title?: string | undefined;
6031
6073
  description?: string | undefined;
6032
- thumbnailUrl?: string | undefined;
6074
+ thumbnail?: {
6075
+ type: "Resource" | "FigmaNode";
6076
+ resource?: {
6077
+ url: string;
6078
+ resourceId: string;
6079
+ } | undefined;
6080
+ figmaFile?: {
6081
+ sourceId: string;
6082
+ frameReferenceId: string;
6083
+ } | undefined;
6084
+ } | undefined;
6033
6085
  }, {
6034
6086
  title?: string | undefined;
6035
6087
  description?: string | undefined;
6036
- thumbnailUrl?: string | undefined;
6088
+ thumbnail?: {
6089
+ type: "Resource" | "FigmaNode";
6090
+ resource?: {
6091
+ url: string;
6092
+ resourceId: string;
6093
+ } | undefined;
6094
+ figmaFile?: {
6095
+ sourceId: string;
6096
+ frameReferenceId: string;
6097
+ } | undefined;
6098
+ } | undefined;
6037
6099
  }>;
6038
6100
  type DocumentationLinkPreview = z.infer<typeof DocumentationLinkPreview>;
6039
6101
 
package/dist/index.js CHANGED
@@ -2412,7 +2412,7 @@ var DocumentationPageGroup = _zod.z.object({
2412
2412
  var DocumentationLinkPreview = _zod.z.object({
2413
2413
  title: _zod.z.string().optional(),
2414
2414
  description: _zod.z.string().optional(),
2415
- thumbnailUrl: _zod.z.string().optional()
2415
+ thumbnail: PageBlockImageReference.optional()
2416
2416
  });
2417
2417
 
2418
2418
  // src/dsm/documentation/page-content-backup.ts