@supernova-studio/client 0.54.3 → 0.54.4

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.ts CHANGED
@@ -8962,108 +8962,219 @@ declare const DTOPublishDocumentationResponse: z.ZodObject<{
8962
8962
  }>;
8963
8963
  type DTOPublishDocumentationResponse = z.infer<typeof DTOPublishDocumentationResponse>;
8964
8964
 
8965
- declare const DTOFigmaComponentBooleanProperty: z.ZodObject<{
8965
+ declare const DTOFigmaComponentBooleanProperty: z.ZodObject<z.objectUtil.extendShape<{
8966
+ id: z.ZodString;
8967
+ name: z.ZodString;
8968
+ }, {
8966
8969
  type: z.ZodLiteral<"Boolean">;
8967
8970
  defaultValue: z.ZodBoolean;
8968
- }, "strip", z.ZodTypeAny, {
8971
+ }>, "strip", z.ZodTypeAny, {
8972
+ id: string;
8969
8973
  type: "Boolean";
8974
+ name: string;
8970
8975
  defaultValue: boolean;
8971
8976
  }, {
8977
+ id: string;
8972
8978
  type: "Boolean";
8979
+ name: string;
8973
8980
  defaultValue: boolean;
8974
8981
  }>;
8975
8982
  type DTOFigmaComponentBooleanProperty = z.infer<typeof DTOFigmaComponentBooleanProperty>;
8976
- declare const DTOFigmaComponentInstanceSwapProperty: z.ZodObject<{
8983
+ declare const DTOFigmaComponentInstanceSwapProperty: z.ZodObject<z.objectUtil.extendShape<{
8984
+ id: z.ZodString;
8985
+ name: z.ZodString;
8986
+ }, {
8977
8987
  type: z.ZodLiteral<"InstanceSwap">;
8978
8988
  defaultValue: z.ZodString;
8979
- }, "strip", z.ZodTypeAny, {
8989
+ }>, "strip", z.ZodTypeAny, {
8990
+ id: string;
8980
8991
  type: "InstanceSwap";
8992
+ name: string;
8981
8993
  defaultValue: string;
8982
8994
  }, {
8995
+ id: string;
8983
8996
  type: "InstanceSwap";
8997
+ name: string;
8984
8998
  defaultValue: string;
8985
8999
  }>;
8986
9000
  type DTOFigmaComponentInstanceSwapProperty = z.infer<typeof DTOFigmaComponentInstanceSwapProperty>;
8987
- declare const DTOFigmaComponentTextProperty: z.ZodObject<{
9001
+ declare const DTOFigmaComponentTextProperty: z.ZodObject<z.objectUtil.extendShape<{
9002
+ id: z.ZodString;
9003
+ name: z.ZodString;
9004
+ }, {
8988
9005
  type: z.ZodLiteral<"Text">;
9006
+ id: z.ZodString;
8989
9007
  defaultValue: z.ZodString;
8990
- }, "strip", z.ZodTypeAny, {
9008
+ }>, "strip", z.ZodTypeAny, {
9009
+ id: string;
8991
9010
  type: "Text";
9011
+ name: string;
8992
9012
  defaultValue: string;
8993
9013
  }, {
9014
+ id: string;
8994
9015
  type: "Text";
9016
+ name: string;
8995
9017
  defaultValue: string;
8996
9018
  }>;
8997
9019
  type DTOFigmaComponentTextProperty = z.infer<typeof DTOFigmaComponentTextProperty>;
8998
- declare const DTOFigmaComponentVariantProperty: z.ZodObject<{
9020
+ declare const DTOFigmaComponentVariantProperty: z.ZodObject<z.objectUtil.extendShape<{
9021
+ id: z.ZodString;
9022
+ name: z.ZodString;
9023
+ }, {
8999
9024
  type: z.ZodLiteral<"Variant">;
9000
9025
  defaultValue: z.ZodString;
9001
9026
  options: z.ZodArray<z.ZodString, "many">;
9002
- }, "strip", z.ZodTypeAny, {
9027
+ }>, "strip", z.ZodTypeAny, {
9028
+ id: string;
9003
9029
  options: string[];
9004
9030
  type: "Variant";
9031
+ name: string;
9005
9032
  defaultValue: string;
9006
9033
  }, {
9034
+ id: string;
9007
9035
  options: string[];
9008
9036
  type: "Variant";
9037
+ name: string;
9009
9038
  defaultValue: string;
9010
9039
  }>;
9011
9040
  type DTOFigmaComponentVariantProperty = z.infer<typeof DTOFigmaComponentVariantProperty>;
9012
- declare const DTOFigmaComponentProperty: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9041
+ declare const DTOFigmaComponentProperty: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9042
+ id: z.ZodString;
9043
+ name: z.ZodString;
9044
+ }, {
9013
9045
  type: z.ZodLiteral<"Boolean">;
9014
9046
  defaultValue: z.ZodBoolean;
9015
- }, "strip", z.ZodTypeAny, {
9047
+ }>, "strip", z.ZodTypeAny, {
9048
+ id: string;
9016
9049
  type: "Boolean";
9050
+ name: string;
9017
9051
  defaultValue: boolean;
9018
9052
  }, {
9053
+ id: string;
9019
9054
  type: "Boolean";
9055
+ name: string;
9020
9056
  defaultValue: boolean;
9021
- }>, z.ZodObject<{
9057
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9058
+ id: z.ZodString;
9059
+ name: z.ZodString;
9060
+ }, {
9022
9061
  type: z.ZodLiteral<"InstanceSwap">;
9023
9062
  defaultValue: z.ZodString;
9024
- }, "strip", z.ZodTypeAny, {
9063
+ }>, "strip", z.ZodTypeAny, {
9064
+ id: string;
9025
9065
  type: "InstanceSwap";
9066
+ name: string;
9026
9067
  defaultValue: string;
9027
9068
  }, {
9069
+ id: string;
9028
9070
  type: "InstanceSwap";
9071
+ name: string;
9029
9072
  defaultValue: string;
9030
- }>, z.ZodObject<{
9073
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9074
+ id: z.ZodString;
9075
+ name: z.ZodString;
9076
+ }, {
9031
9077
  type: z.ZodLiteral<"Text">;
9078
+ id: z.ZodString;
9032
9079
  defaultValue: z.ZodString;
9033
- }, "strip", z.ZodTypeAny, {
9080
+ }>, "strip", z.ZodTypeAny, {
9081
+ id: string;
9034
9082
  type: "Text";
9083
+ name: string;
9035
9084
  defaultValue: string;
9036
9085
  }, {
9086
+ id: string;
9037
9087
  type: "Text";
9088
+ name: string;
9089
+ defaultValue: string;
9090
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9091
+ id: z.ZodString;
9092
+ name: z.ZodString;
9093
+ }, {
9094
+ type: z.ZodLiteral<"Variant">;
9095
+ defaultValue: z.ZodString;
9096
+ options: z.ZodArray<z.ZodString, "many">;
9097
+ }>, "strip", z.ZodTypeAny, {
9098
+ id: string;
9099
+ options: string[];
9100
+ type: "Variant";
9101
+ name: string;
9102
+ defaultValue: string;
9103
+ }, {
9104
+ id: string;
9105
+ options: string[];
9106
+ type: "Variant";
9107
+ name: string;
9038
9108
  defaultValue: string;
9039
9109
  }>]>;
9040
9110
  type DTOFigmaComponentProperty = z.infer<typeof DTOFigmaComponentProperty>;
9041
- declare const DTOFigmaComponentPropertyMap: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9111
+ declare const DTOFigmaComponentPropertyMap: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9112
+ id: z.ZodString;
9113
+ name: z.ZodString;
9114
+ }, {
9042
9115
  type: z.ZodLiteral<"Boolean">;
9043
9116
  defaultValue: z.ZodBoolean;
9044
- }, "strip", z.ZodTypeAny, {
9117
+ }>, "strip", z.ZodTypeAny, {
9118
+ id: string;
9045
9119
  type: "Boolean";
9120
+ name: string;
9046
9121
  defaultValue: boolean;
9047
9122
  }, {
9123
+ id: string;
9048
9124
  type: "Boolean";
9125
+ name: string;
9049
9126
  defaultValue: boolean;
9050
- }>, z.ZodObject<{
9127
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9128
+ id: z.ZodString;
9129
+ name: z.ZodString;
9130
+ }, {
9051
9131
  type: z.ZodLiteral<"InstanceSwap">;
9052
9132
  defaultValue: z.ZodString;
9053
- }, "strip", z.ZodTypeAny, {
9133
+ }>, "strip", z.ZodTypeAny, {
9134
+ id: string;
9054
9135
  type: "InstanceSwap";
9136
+ name: string;
9055
9137
  defaultValue: string;
9056
9138
  }, {
9139
+ id: string;
9057
9140
  type: "InstanceSwap";
9141
+ name: string;
9058
9142
  defaultValue: string;
9059
- }>, z.ZodObject<{
9143
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9144
+ id: z.ZodString;
9145
+ name: z.ZodString;
9146
+ }, {
9060
9147
  type: z.ZodLiteral<"Text">;
9148
+ id: z.ZodString;
9061
9149
  defaultValue: z.ZodString;
9062
- }, "strip", z.ZodTypeAny, {
9150
+ }>, "strip", z.ZodTypeAny, {
9151
+ id: string;
9063
9152
  type: "Text";
9153
+ name: string;
9064
9154
  defaultValue: string;
9065
9155
  }, {
9156
+ id: string;
9066
9157
  type: "Text";
9158
+ name: string;
9159
+ defaultValue: string;
9160
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9161
+ id: z.ZodString;
9162
+ name: z.ZodString;
9163
+ }, {
9164
+ type: z.ZodLiteral<"Variant">;
9165
+ defaultValue: z.ZodString;
9166
+ options: z.ZodArray<z.ZodString, "many">;
9167
+ }>, "strip", z.ZodTypeAny, {
9168
+ id: string;
9169
+ options: string[];
9170
+ type: "Variant";
9171
+ name: string;
9172
+ defaultValue: string;
9173
+ }, {
9174
+ id: string;
9175
+ options: string[];
9176
+ type: "Variant";
9177
+ name: string;
9067
9178
  defaultValue: string;
9068
9179
  }>]>>;
9069
9180
  type DTOFigmaComponentPropertyMap = z.infer<typeof DTOFigmaComponentPropertyMap>;
@@ -9117,32 +9228,73 @@ declare const DTOFigmaComponent: z.ZodObject<{
9117
9228
  nodeId?: string | undefined;
9118
9229
  }>>;
9119
9230
  parentComponentPersistentId: z.ZodOptional<z.ZodString>;
9120
- componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9231
+ componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9232
+ id: z.ZodString;
9233
+ name: z.ZodString;
9234
+ }, {
9121
9235
  type: z.ZodLiteral<"Boolean">;
9122
9236
  defaultValue: z.ZodBoolean;
9123
- }, "strip", z.ZodTypeAny, {
9237
+ }>, "strip", z.ZodTypeAny, {
9238
+ id: string;
9124
9239
  type: "Boolean";
9240
+ name: string;
9125
9241
  defaultValue: boolean;
9126
9242
  }, {
9243
+ id: string;
9127
9244
  type: "Boolean";
9245
+ name: string;
9128
9246
  defaultValue: boolean;
9129
- }>, z.ZodObject<{
9247
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9248
+ id: z.ZodString;
9249
+ name: z.ZodString;
9250
+ }, {
9130
9251
  type: z.ZodLiteral<"InstanceSwap">;
9131
9252
  defaultValue: z.ZodString;
9132
- }, "strip", z.ZodTypeAny, {
9253
+ }>, "strip", z.ZodTypeAny, {
9254
+ id: string;
9133
9255
  type: "InstanceSwap";
9256
+ name: string;
9134
9257
  defaultValue: string;
9135
9258
  }, {
9259
+ id: string;
9136
9260
  type: "InstanceSwap";
9261
+ name: string;
9137
9262
  defaultValue: string;
9138
- }>, z.ZodObject<{
9263
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9264
+ id: z.ZodString;
9265
+ name: z.ZodString;
9266
+ }, {
9139
9267
  type: z.ZodLiteral<"Text">;
9268
+ id: z.ZodString;
9140
9269
  defaultValue: z.ZodString;
9141
- }, "strip", z.ZodTypeAny, {
9270
+ }>, "strip", z.ZodTypeAny, {
9271
+ id: string;
9142
9272
  type: "Text";
9273
+ name: string;
9143
9274
  defaultValue: string;
9144
9275
  }, {
9276
+ id: string;
9145
9277
  type: "Text";
9278
+ name: string;
9279
+ defaultValue: string;
9280
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9281
+ id: z.ZodString;
9282
+ name: z.ZodString;
9283
+ }, {
9284
+ type: z.ZodLiteral<"Variant">;
9285
+ defaultValue: z.ZodString;
9286
+ options: z.ZodArray<z.ZodString, "many">;
9287
+ }>, "strip", z.ZodTypeAny, {
9288
+ id: string;
9289
+ options: string[];
9290
+ type: "Variant";
9291
+ name: string;
9292
+ defaultValue: string;
9293
+ }, {
9294
+ id: string;
9295
+ options: string[];
9296
+ type: "Variant";
9297
+ name: string;
9146
9298
  defaultValue: string;
9147
9299
  }>]>>>;
9148
9300
  childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -9172,13 +9324,25 @@ declare const DTOFigmaComponent: z.ZodObject<{
9172
9324
  } | undefined;
9173
9325
  parentComponentPersistentId?: string | undefined;
9174
9326
  componentPropertyDefinitions?: Record<string, {
9327
+ id: string;
9175
9328
  type: "Boolean";
9329
+ name: string;
9176
9330
  defaultValue: boolean;
9177
9331
  } | {
9332
+ id: string;
9178
9333
  type: "InstanceSwap";
9334
+ name: string;
9179
9335
  defaultValue: string;
9180
9336
  } | {
9337
+ id: string;
9181
9338
  type: "Text";
9339
+ name: string;
9340
+ defaultValue: string;
9341
+ } | {
9342
+ id: string;
9343
+ options: string[];
9344
+ type: "Variant";
9345
+ name: string;
9182
9346
  defaultValue: string;
9183
9347
  }> | undefined;
9184
9348
  childrenPersistentIds?: string[] | undefined;
@@ -9208,13 +9372,25 @@ declare const DTOFigmaComponent: z.ZodObject<{
9208
9372
  } | undefined;
9209
9373
  parentComponentPersistentId?: string | undefined;
9210
9374
  componentPropertyDefinitions?: Record<string, {
9375
+ id: string;
9211
9376
  type: "Boolean";
9377
+ name: string;
9212
9378
  defaultValue: boolean;
9213
9379
  } | {
9380
+ id: string;
9214
9381
  type: "InstanceSwap";
9382
+ name: string;
9215
9383
  defaultValue: string;
9216
9384
  } | {
9385
+ id: string;
9217
9386
  type: "Text";
9387
+ name: string;
9388
+ defaultValue: string;
9389
+ } | {
9390
+ id: string;
9391
+ options: string[];
9392
+ type: "Variant";
9393
+ name: string;
9218
9394
  defaultValue: string;
9219
9395
  }> | undefined;
9220
9396
  childrenPersistentIds?: string[] | undefined;
@@ -9271,32 +9447,73 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9271
9447
  nodeId?: string | undefined;
9272
9448
  }>>;
9273
9449
  parentComponentPersistentId: z.ZodOptional<z.ZodString>;
9274
- componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9450
+ componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<z.objectUtil.extendShape<{
9451
+ id: z.ZodString;
9452
+ name: z.ZodString;
9453
+ }, {
9275
9454
  type: z.ZodLiteral<"Boolean">;
9276
9455
  defaultValue: z.ZodBoolean;
9277
- }, "strip", z.ZodTypeAny, {
9456
+ }>, "strip", z.ZodTypeAny, {
9457
+ id: string;
9278
9458
  type: "Boolean";
9459
+ name: string;
9279
9460
  defaultValue: boolean;
9280
9461
  }, {
9462
+ id: string;
9281
9463
  type: "Boolean";
9464
+ name: string;
9282
9465
  defaultValue: boolean;
9283
- }>, z.ZodObject<{
9466
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9467
+ id: z.ZodString;
9468
+ name: z.ZodString;
9469
+ }, {
9284
9470
  type: z.ZodLiteral<"InstanceSwap">;
9285
9471
  defaultValue: z.ZodString;
9286
- }, "strip", z.ZodTypeAny, {
9472
+ }>, "strip", z.ZodTypeAny, {
9473
+ id: string;
9287
9474
  type: "InstanceSwap";
9475
+ name: string;
9288
9476
  defaultValue: string;
9289
9477
  }, {
9478
+ id: string;
9290
9479
  type: "InstanceSwap";
9480
+ name: string;
9291
9481
  defaultValue: string;
9292
- }>, z.ZodObject<{
9482
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9483
+ id: z.ZodString;
9484
+ name: z.ZodString;
9485
+ }, {
9293
9486
  type: z.ZodLiteral<"Text">;
9487
+ id: z.ZodString;
9294
9488
  defaultValue: z.ZodString;
9295
- }, "strip", z.ZodTypeAny, {
9489
+ }>, "strip", z.ZodTypeAny, {
9490
+ id: string;
9296
9491
  type: "Text";
9492
+ name: string;
9297
9493
  defaultValue: string;
9298
9494
  }, {
9495
+ id: string;
9299
9496
  type: "Text";
9497
+ name: string;
9498
+ defaultValue: string;
9499
+ }>, z.ZodObject<z.objectUtil.extendShape<{
9500
+ id: z.ZodString;
9501
+ name: z.ZodString;
9502
+ }, {
9503
+ type: z.ZodLiteral<"Variant">;
9504
+ defaultValue: z.ZodString;
9505
+ options: z.ZodArray<z.ZodString, "many">;
9506
+ }>, "strip", z.ZodTypeAny, {
9507
+ id: string;
9508
+ options: string[];
9509
+ type: "Variant";
9510
+ name: string;
9511
+ defaultValue: string;
9512
+ }, {
9513
+ id: string;
9514
+ options: string[];
9515
+ type: "Variant";
9516
+ name: string;
9300
9517
  defaultValue: string;
9301
9518
  }>]>>>;
9302
9519
  childrenPersistentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -9326,13 +9543,25 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9326
9543
  } | undefined;
9327
9544
  parentComponentPersistentId?: string | undefined;
9328
9545
  componentPropertyDefinitions?: Record<string, {
9546
+ id: string;
9329
9547
  type: "Boolean";
9548
+ name: string;
9330
9549
  defaultValue: boolean;
9331
9550
  } | {
9551
+ id: string;
9332
9552
  type: "InstanceSwap";
9553
+ name: string;
9333
9554
  defaultValue: string;
9334
9555
  } | {
9556
+ id: string;
9335
9557
  type: "Text";
9558
+ name: string;
9559
+ defaultValue: string;
9560
+ } | {
9561
+ id: string;
9562
+ options: string[];
9563
+ type: "Variant";
9564
+ name: string;
9336
9565
  defaultValue: string;
9337
9566
  }> | undefined;
9338
9567
  childrenPersistentIds?: string[] | undefined;
@@ -9362,13 +9591,25 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9362
9591
  } | undefined;
9363
9592
  parentComponentPersistentId?: string | undefined;
9364
9593
  componentPropertyDefinitions?: Record<string, {
9594
+ id: string;
9365
9595
  type: "Boolean";
9596
+ name: string;
9366
9597
  defaultValue: boolean;
9367
9598
  } | {
9599
+ id: string;
9368
9600
  type: "InstanceSwap";
9601
+ name: string;
9369
9602
  defaultValue: string;
9370
9603
  } | {
9604
+ id: string;
9371
9605
  type: "Text";
9606
+ name: string;
9607
+ defaultValue: string;
9608
+ } | {
9609
+ id: string;
9610
+ options: string[];
9611
+ type: "Variant";
9612
+ name: string;
9372
9613
  defaultValue: string;
9373
9614
  }> | undefined;
9374
9615
  childrenPersistentIds?: string[] | undefined;
@@ -9400,13 +9641,25 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9400
9641
  } | undefined;
9401
9642
  parentComponentPersistentId?: string | undefined;
9402
9643
  componentPropertyDefinitions?: Record<string, {
9644
+ id: string;
9403
9645
  type: "Boolean";
9646
+ name: string;
9404
9647
  defaultValue: boolean;
9405
9648
  } | {
9649
+ id: string;
9406
9650
  type: "InstanceSwap";
9651
+ name: string;
9407
9652
  defaultValue: string;
9408
9653
  } | {
9654
+ id: string;
9409
9655
  type: "Text";
9656
+ name: string;
9657
+ defaultValue: string;
9658
+ } | {
9659
+ id: string;
9660
+ options: string[];
9661
+ type: "Variant";
9662
+ name: string;
9410
9663
  defaultValue: string;
9411
9664
  }> | undefined;
9412
9665
  childrenPersistentIds?: string[] | undefined;
@@ -9438,13 +9691,25 @@ declare const DTOFigmaComponentListResponse: z.ZodObject<{
9438
9691
  } | undefined;
9439
9692
  parentComponentPersistentId?: string | undefined;
9440
9693
  componentPropertyDefinitions?: Record<string, {
9694
+ id: string;
9441
9695
  type: "Boolean";
9696
+ name: string;
9442
9697
  defaultValue: boolean;
9443
9698
  } | {
9699
+ id: string;
9444
9700
  type: "InstanceSwap";
9701
+ name: string;
9445
9702
  defaultValue: string;
9446
9703
  } | {
9704
+ id: string;
9447
9705
  type: "Text";
9706
+ name: string;
9707
+ defaultValue: string;
9708
+ } | {
9709
+ id: string;
9710
+ options: string[];
9711
+ type: "Variant";
9712
+ name: string;
9448
9713
  defaultValue: string;
9449
9714
  }> | undefined;
9450
9715
  childrenPersistentIds?: string[] | undefined;
package/dist/index.js CHANGED
@@ -643,27 +643,36 @@ var BorderValue = _zod.z.object({
643
643
  });
644
644
  var BorderTokenData = tokenAliasOrValue(BorderValue);
645
645
  var FigmaComponentPropertyType = _zod.z.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
646
- var FigmaComponentBooleanProperty = _zod.z.object({
646
+ var FigmaComponentPropertyOrigin = _zod.z.object({
647
+ id: _zod.z.string()
648
+ });
649
+ var FigmaComponentPropertyBase = _zod.z.object({
650
+ id: _zod.z.string(),
651
+ name: _zod.z.string()
652
+ });
653
+ var FigmaComponentBooleanProperty = FigmaComponentPropertyBase.extend({
647
654
  type: _zod.z.literal(FigmaComponentPropertyType.enum.Boolean),
648
655
  defaultValue: _zod.z.boolean()
649
656
  });
650
- var FigmaComponentInstanceSwapProperty = _zod.z.object({
657
+ var FigmaComponentInstanceSwapProperty = FigmaComponentPropertyBase.extend({
651
658
  type: _zod.z.literal(FigmaComponentPropertyType.enum.InstanceSwap),
652
659
  defaultValue: _zod.z.string()
653
660
  });
654
- var FigmaComponentVariantProperty = _zod.z.object({
661
+ var FigmaComponentVariantProperty = FigmaComponentPropertyBase.extend({
655
662
  type: _zod.z.literal(FigmaComponentPropertyType.enum.Variant),
656
663
  defaultValue: _zod.z.string(),
657
664
  options: _zod.z.array(_zod.z.string())
658
665
  });
659
- var FigmaComponentTextProperty = _zod.z.object({
666
+ var FigmaComponentTextProperty = FigmaComponentPropertyBase.extend({
660
667
  type: _zod.z.literal(FigmaComponentPropertyType.enum.Text),
668
+ id: _zod.z.string(),
661
669
  defaultValue: _zod.z.string()
662
670
  });
663
671
  var FigmaComponentProperty = _zod.z.discriminatedUnion("type", [
664
672
  FigmaComponentBooleanProperty,
665
673
  FigmaComponentInstanceSwapProperty,
666
- FigmaComponentTextProperty
674
+ FigmaComponentTextProperty,
675
+ FigmaComponentVariantProperty
667
676
  ]);
668
677
  var FigmaComponentPropertyMap = _zod.z.record(_zod.z.string(), FigmaComponentProperty);
669
678
  var ComponentElementData = _zod.z.object({