@supernova-studio/client 0.58.24 → 0.58.26

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
@@ -41073,11 +41073,17 @@ declare const DTOFigmaNodeRenderUrlInput: z.ZodObject<z.objectUtil.extendShape<{
41073
41073
  * Id of a design system's data source representing a linked Figma file
41074
41074
  */
41075
41075
  figmaNodeUrl: z.ZodString;
41076
+ /**
41077
+ * Brand persistent id to use in case a source has to be created for this render
41078
+ */
41079
+ brandPersistentId: z.ZodString;
41076
41080
  }>, "strip", z.ZodTypeAny, {
41081
+ brandPersistentId: string;
41077
41082
  inputType: "URL";
41078
41083
  format: "Png" | "Svg";
41079
41084
  figmaNodeUrl: string;
41080
41085
  }, {
41086
+ brandPersistentId: string;
41081
41087
  inputType: "URL";
41082
41088
  figmaNodeUrl: string;
41083
41089
  format?: "Png" | "Svg" | undefined;
@@ -41119,11 +41125,17 @@ declare const DTOFigmaNodeRenderInput: z.ZodDiscriminatedUnion<"inputType", [z.Z
41119
41125
  * Id of a design system's data source representing a linked Figma file
41120
41126
  */
41121
41127
  figmaNodeUrl: z.ZodString;
41128
+ /**
41129
+ * Brand persistent id to use in case a source has to be created for this render
41130
+ */
41131
+ brandPersistentId: z.ZodString;
41122
41132
  }>, "strip", z.ZodTypeAny, {
41133
+ brandPersistentId: string;
41123
41134
  inputType: "URL";
41124
41135
  format: "Png" | "Svg";
41125
41136
  figmaNodeUrl: string;
41126
41137
  }, {
41138
+ brandPersistentId: string;
41127
41139
  inputType: "URL";
41128
41140
  figmaNodeUrl: string;
41129
41141
  format?: "Png" | "Svg" | undefined;
@@ -41370,11 +41382,14 @@ declare const DTOFigmaNodeRenderActionInput: z.ZodObject<{
41370
41382
  }, {
41371
41383
  inputType: z.ZodLiteral<"URL">;
41372
41384
  figmaNodeUrl: z.ZodString;
41385
+ brandPersistentId: z.ZodString;
41373
41386
  }>, "strip", z.ZodTypeAny, {
41387
+ brandPersistentId: string;
41374
41388
  inputType: "URL";
41375
41389
  format: "Png" | "Svg";
41376
41390
  figmaNodeUrl: string;
41377
41391
  }, {
41392
+ brandPersistentId: string;
41378
41393
  inputType: "URL";
41379
41394
  figmaNodeUrl: string;
41380
41395
  format?: "Png" | "Svg" | undefined;
@@ -41387,6 +41402,7 @@ declare const DTOFigmaNodeRenderActionInput: z.ZodObject<{
41387
41402
  format: "Png" | "Svg";
41388
41403
  figmaFileNodeId: string;
41389
41404
  } | {
41405
+ brandPersistentId: string;
41390
41406
  inputType: "URL";
41391
41407
  format: "Png" | "Svg";
41392
41408
  figmaNodeUrl: string;
@@ -41399,6 +41415,7 @@ declare const DTOFigmaNodeRenderActionInput: z.ZodObject<{
41399
41415
  inputType?: "NodeId" | undefined;
41400
41416
  format?: "Png" | "Svg" | undefined;
41401
41417
  } | {
41418
+ brandPersistentId: string;
41402
41419
  inputType: "URL";
41403
41420
  figmaNodeUrl: string;
41404
41421
  format?: "Png" | "Svg" | undefined;
@@ -44334,11 +44351,14 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
44334
44351
  }, {
44335
44352
  inputType: z.ZodLiteral<"URL">;
44336
44353
  figmaNodeUrl: z.ZodString;
44354
+ brandPersistentId: z.ZodString;
44337
44355
  }>, "strip", z.ZodTypeAny, {
44356
+ brandPersistentId: string;
44338
44357
  inputType: "URL";
44339
44358
  format: "Png" | "Svg";
44340
44359
  figmaNodeUrl: string;
44341
44360
  }, {
44361
+ brandPersistentId: string;
44342
44362
  inputType: "URL";
44343
44363
  figmaNodeUrl: string;
44344
44364
  format?: "Png" | "Svg" | undefined;
@@ -44351,6 +44371,7 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
44351
44371
  format: "Png" | "Svg";
44352
44372
  figmaFileNodeId: string;
44353
44373
  } | {
44374
+ brandPersistentId: string;
44354
44375
  inputType: "URL";
44355
44376
  format: "Png" | "Svg";
44356
44377
  figmaNodeUrl: string;
@@ -44363,6 +44384,7 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
44363
44384
  inputType?: "NodeId" | undefined;
44364
44385
  format?: "Png" | "Svg" | undefined;
44365
44386
  } | {
44387
+ brandPersistentId: string;
44366
44388
  inputType: "URL";
44367
44389
  figmaNodeUrl: string;
44368
44390
  format?: "Png" | "Svg" | undefined;
package/dist/index.d.ts CHANGED
@@ -41073,11 +41073,17 @@ declare const DTOFigmaNodeRenderUrlInput: z.ZodObject<z.objectUtil.extendShape<{
41073
41073
  * Id of a design system's data source representing a linked Figma file
41074
41074
  */
41075
41075
  figmaNodeUrl: z.ZodString;
41076
+ /**
41077
+ * Brand persistent id to use in case a source has to be created for this render
41078
+ */
41079
+ brandPersistentId: z.ZodString;
41076
41080
  }>, "strip", z.ZodTypeAny, {
41081
+ brandPersistentId: string;
41077
41082
  inputType: "URL";
41078
41083
  format: "Png" | "Svg";
41079
41084
  figmaNodeUrl: string;
41080
41085
  }, {
41086
+ brandPersistentId: string;
41081
41087
  inputType: "URL";
41082
41088
  figmaNodeUrl: string;
41083
41089
  format?: "Png" | "Svg" | undefined;
@@ -41119,11 +41125,17 @@ declare const DTOFigmaNodeRenderInput: z.ZodDiscriminatedUnion<"inputType", [z.Z
41119
41125
  * Id of a design system's data source representing a linked Figma file
41120
41126
  */
41121
41127
  figmaNodeUrl: z.ZodString;
41128
+ /**
41129
+ * Brand persistent id to use in case a source has to be created for this render
41130
+ */
41131
+ brandPersistentId: z.ZodString;
41122
41132
  }>, "strip", z.ZodTypeAny, {
41133
+ brandPersistentId: string;
41123
41134
  inputType: "URL";
41124
41135
  format: "Png" | "Svg";
41125
41136
  figmaNodeUrl: string;
41126
41137
  }, {
41138
+ brandPersistentId: string;
41127
41139
  inputType: "URL";
41128
41140
  figmaNodeUrl: string;
41129
41141
  format?: "Png" | "Svg" | undefined;
@@ -41370,11 +41382,14 @@ declare const DTOFigmaNodeRenderActionInput: z.ZodObject<{
41370
41382
  }, {
41371
41383
  inputType: z.ZodLiteral<"URL">;
41372
41384
  figmaNodeUrl: z.ZodString;
41385
+ brandPersistentId: z.ZodString;
41373
41386
  }>, "strip", z.ZodTypeAny, {
41387
+ brandPersistentId: string;
41374
41388
  inputType: "URL";
41375
41389
  format: "Png" | "Svg";
41376
41390
  figmaNodeUrl: string;
41377
41391
  }, {
41392
+ brandPersistentId: string;
41378
41393
  inputType: "URL";
41379
41394
  figmaNodeUrl: string;
41380
41395
  format?: "Png" | "Svg" | undefined;
@@ -41387,6 +41402,7 @@ declare const DTOFigmaNodeRenderActionInput: z.ZodObject<{
41387
41402
  format: "Png" | "Svg";
41388
41403
  figmaFileNodeId: string;
41389
41404
  } | {
41405
+ brandPersistentId: string;
41390
41406
  inputType: "URL";
41391
41407
  format: "Png" | "Svg";
41392
41408
  figmaNodeUrl: string;
@@ -41399,6 +41415,7 @@ declare const DTOFigmaNodeRenderActionInput: z.ZodObject<{
41399
41415
  inputType?: "NodeId" | undefined;
41400
41416
  format?: "Png" | "Svg" | undefined;
41401
41417
  } | {
41418
+ brandPersistentId: string;
41402
41419
  inputType: "URL";
41403
41420
  figmaNodeUrl: string;
41404
41421
  format?: "Png" | "Svg" | undefined;
@@ -44334,11 +44351,14 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
44334
44351
  }, {
44335
44352
  inputType: z.ZodLiteral<"URL">;
44336
44353
  figmaNodeUrl: z.ZodString;
44354
+ brandPersistentId: z.ZodString;
44337
44355
  }>, "strip", z.ZodTypeAny, {
44356
+ brandPersistentId: string;
44338
44357
  inputType: "URL";
44339
44358
  format: "Png" | "Svg";
44340
44359
  figmaNodeUrl: string;
44341
44360
  }, {
44361
+ brandPersistentId: string;
44342
44362
  inputType: "URL";
44343
44363
  figmaNodeUrl: string;
44344
44364
  format?: "Png" | "Svg" | undefined;
@@ -44351,6 +44371,7 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
44351
44371
  format: "Png" | "Svg";
44352
44372
  figmaFileNodeId: string;
44353
44373
  } | {
44374
+ brandPersistentId: string;
44354
44375
  inputType: "URL";
44355
44376
  format: "Png" | "Svg";
44356
44377
  figmaNodeUrl: string;
@@ -44363,6 +44384,7 @@ declare const DTOElementActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
44363
44384
  inputType?: "NodeId" | undefined;
44364
44385
  format?: "Png" | "Svg" | undefined;
44365
44386
  } | {
44387
+ brandPersistentId: string;
44366
44388
  inputType: "URL";
44367
44389
  figmaNodeUrl: string;
44368
44390
  format?: "Png" | "Svg" | undefined;
package/dist/index.js CHANGED
@@ -6937,7 +6937,11 @@ var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
6937
6937
  /**
6938
6938
  * Id of a design system's data source representing a linked Figma file
6939
6939
  */
6940
- figmaNodeUrl: _zod.z.string()
6940
+ figmaNodeUrl: _zod.z.string(),
6941
+ /**
6942
+ * Brand persistent id to use in case a source has to be created for this render
6943
+ */
6944
+ brandPersistentId: _zod.z.string()
6941
6945
  });
6942
6946
  var DTOFigmaNodeRenderInput = _zod.z.discriminatedUnion("inputType", [
6943
6947
  DTOFigmaNodeRenderIdInput,
@@ -7162,7 +7166,7 @@ var DTOThemeCreatePayload = _zod.z.object({
7162
7166
 
7163
7167
  // src/utils/figma.ts
7164
7168
  var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
7165
- var nodeIdRegex = /^d+-d+$/;
7169
+ var nodeIdRegex = /^\d+-\d+$/;
7166
7170
  var nodeTypeRegex = /^[0-9a-zA-Z]^/;
7167
7171
  var FigmaUtils = {
7168
7172
  tryParseFigmaFileURL(urlString) {