@supernova-studio/client 0.58.9 → 0.58.11

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.
Files changed (39) hide show
  1. package/dist/index.d.mts +2478 -228
  2. package/dist/index.d.ts +2478 -228
  3. package/dist/index.js +312 -146
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +910 -744
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/api/dto/design-systems/brand.ts +23 -1
  9. package/src/api/dto/design-systems/component.ts +32 -2
  10. package/src/api/dto/design-systems/index.ts +0 -1
  11. package/src/api/dto/elements/components/figma-component-group.ts +19 -0
  12. package/src/api/dto/elements/components/index.ts +1 -0
  13. package/src/api/dto/elements/frame-node-structures/frame-node-structure.ts +17 -0
  14. package/src/api/dto/elements/frame-node-structures/index.ts +1 -0
  15. package/src/api/dto/elements/index.ts +1 -0
  16. package/src/api/dto/export/exporter-property.ts +95 -0
  17. package/src/api/dto/export/exporter.ts +2 -0
  18. package/src/api/dto/export/index.ts +1 -0
  19. package/src/api/dto/export/job.ts +3 -0
  20. package/src/api/dto/export/pipeline.ts +3 -0
  21. package/src/api/endpoints/codegen/exporters.ts +2 -7
  22. package/src/api/endpoints/design-system/versions/brands.ts +16 -3
  23. package/src/api/endpoints/design-system/versions/ds-components.ts +28 -0
  24. package/src/api/endpoints/design-system/versions/elements-action.ts +16 -59
  25. package/src/api/endpoints/design-system/versions/elements.ts +13 -0
  26. package/src/api/endpoints/design-system/versions/figma-component-groups.ts +13 -0
  27. package/src/api/endpoints/design-system/versions/figma-components.ts +13 -0
  28. package/src/api/endpoints/design-system/versions/figma-frame-structures.ts +13 -0
  29. package/src/api/endpoints/design-system/versions/index.ts +5 -1
  30. package/src/api/endpoints/design-system/versions/versions.ts +13 -1
  31. package/src/api/payloads/design-systems/index.ts +0 -1
  32. package/src/api/payloads/export/pipeline.ts +3 -0
  33. package/src/api/transport/request-executor-error.ts +1 -1
  34. package/src/api/transport/request-executor.ts +2 -0
  35. package/src/utils/index.ts +1 -0
  36. package/src/utils/query.ts +18 -0
  37. package/src/api/dto/design-systems/exporter-property.ts +0 -8
  38. package/src/api/endpoints/design-system/versions/components.ts +0 -15
  39. package/src/api/payloads/design-systems/brand.ts +0 -12
package/dist/index.mjs CHANGED
@@ -572,7 +572,7 @@ var FigmaFileDownloadScope = z22.object({
572
572
  });
573
573
  var FigmaFileAccessData = z22.object({
574
574
  accessToken: z22.string(),
575
- accessTokenType: z22.enum(["OAuth2", "PAT"])
575
+ accessTokenType: z22.enum(["OAuth2", "PAT"]).default("OAuth2")
576
576
  });
577
577
  var ImportWarningType = z23.enum([
578
578
  "NoVersionFound",
@@ -5153,7 +5153,7 @@ var DTOPagination = z179.object({
5153
5153
  });
5154
5154
 
5155
5155
  // src/api/dto/bff/app-bootstrap-data.ts
5156
- import { z as z214 } from "zod";
5156
+ import { z as z213 } from "zod";
5157
5157
 
5158
5158
  // src/api/dto/design-systems/brand.ts
5159
5159
  import { z as z180 } from "zod";
@@ -5168,14 +5168,37 @@ var DTOBrandCreateResponse = z180.object({
5168
5168
  brand: DTOBrand
5169
5169
  });
5170
5170
  var DTOBrandsListResponse = z180.object({ brands: z180.array(DTOBrand) });
5171
+ var DTOBrandCreatePayload = z180.object({
5172
+ persistentId: z180.string().uuid(),
5173
+ meta: DTOObjectMeta
5174
+ });
5175
+ var DTOBrandUpdatePayload = z180.object({
5176
+ meta: DTOObjectMeta.optional(),
5177
+ persistentId: z180.string()
5178
+ });
5171
5179
 
5172
5180
  // src/api/dto/design-systems/component.ts
5173
5181
  import { z as z181 } from "zod";
5182
+ var DTODesignSystemComponent = z181.object({
5183
+ id: z181.string(),
5184
+ persistentId: z181.string(),
5185
+ designSystemVersionId: z181.string(),
5186
+ brandId: z181.string(),
5187
+ meta: DTOObjectMeta,
5188
+ createdAt: z181.coerce.date(),
5189
+ updatedAt: z181.coerce.date()
5190
+ });
5191
+ var DTODesignSystemComponentResponse = z181.object({
5192
+ designSystemComponent: DTODesignSystemComponent
5193
+ });
5194
+ var DTODesignSystemComponentListResponse = z181.object({
5195
+ designSystemComponents: DTODesignSystemComponent.array()
5196
+ });
5174
5197
  var DTODesignSystemComponentCreateInput = z181.object({
5175
5198
  brandId: z181.string(),
5176
5199
  // Persistent ID,
5177
5200
  persistentId: z181.string(),
5178
- meta: ObjectMeta
5201
+ meta: DTOObjectMeta
5179
5202
  });
5180
5203
 
5181
5204
  // src/api/dto/design-systems/contact.ts
@@ -5444,14 +5467,9 @@ var DTODesignElementsDataDiffResponse = z190.object({
5444
5467
  assets: DTODiffCountBase
5445
5468
  });
5446
5469
 
5447
- // src/api/dto/design-systems/exporter-property.ts
5448
- import { z as z191 } from "zod";
5449
- var DTOExporterProperty = z191.any({});
5450
- var DTOExporterPropertyListResponse = z191.object({ items: z191.array(DTOExporterProperty) });
5451
-
5452
5470
  // src/api/dto/design-systems/figma-variables.ts
5453
- import { z as z192 } from "zod";
5454
- var DimensionsVariableScopeSchema = z192.enum([
5471
+ import { z as z191 } from "zod";
5472
+ var DimensionsVariableScopeSchema = z191.enum([
5455
5473
  "CORNER_RADIUS",
5456
5474
  "WIDTH_HEIGHT",
5457
5475
  "GAP",
@@ -5465,130 +5483,120 @@ var DimensionsVariableScopeSchema = z192.enum([
5465
5483
  "PARAGRAPH_INDENT",
5466
5484
  "FONT_WEIGHT"
5467
5485
  ]);
5468
- var StringVariableScopeSchema = z192.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5486
+ var StringVariableScopeSchema = z191.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
5469
5487
  var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
5470
5488
  var StringVariableScopeType = StringVariableScopeSchema.enum;
5471
- var VariableScope = z192.string();
5472
- var ReferencedVariableOrigin = z192.object({
5473
- name: z192.string(),
5474
- remote: z192.boolean()
5489
+ var VariableScope = z191.string();
5490
+ var ReferencedVariableOrigin = z191.object({
5491
+ name: z191.string(),
5492
+ remote: z191.boolean()
5475
5493
  });
5476
- var RGB = z192.object({
5477
- r: z192.number(),
5478
- g: z192.number(),
5479
- b: z192.number()
5494
+ var RGB = z191.object({
5495
+ r: z191.number(),
5496
+ g: z191.number(),
5497
+ b: z191.number()
5480
5498
  });
5481
5499
  var RGBA = RGB.extend({
5482
- a: z192.number()
5483
- });
5484
- var VariableAlias = z192.object({
5485
- type: z192.literal("VARIABLE_ALIAS"),
5486
- id: z192.string(),
5487
- resolvedValue: z192.boolean().or(z192.number()).or(z192.string()).or(RGBA).or(RGB).optional(),
5488
- referenceOrigin: ReferencedVariableOrigin.optional().or(z192.null())
5489
- });
5490
- var VariableValue = z192.boolean().or(z192.number()).or(z192.string()).or(RGBA).or(RGB).or(VariableAlias);
5491
- var ResolvedVariableType = z192.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5492
- var Variable = z192.object({
5493
- id: z192.string(),
5494
- name: z192.string(),
5495
- key: z192.string(),
5496
- variableCollectionId: z192.string(),
5500
+ a: z191.number()
5501
+ });
5502
+ var VariableAlias = z191.object({
5503
+ type: z191.literal("VARIABLE_ALIAS"),
5504
+ id: z191.string(),
5505
+ resolvedValue: z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).optional(),
5506
+ referenceOrigin: ReferencedVariableOrigin.optional().or(z191.null())
5507
+ });
5508
+ var VariableValue = z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).or(VariableAlias);
5509
+ var ResolvedVariableType = z191.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
5510
+ var Variable = z191.object({
5511
+ id: z191.string(),
5512
+ name: z191.string(),
5513
+ key: z191.string(),
5514
+ variableCollectionId: z191.string(),
5497
5515
  resolvedType: ResolvedVariableType,
5498
- valuesByMode: z192.record(VariableValue),
5499
- remote: z192.boolean(),
5500
- description: z192.string(),
5501
- hiddenFromPublishing: z192.boolean(),
5502
- scopes: z192.array(VariableScope),
5503
- codeSyntax: z192.record(z192.any()).optional()
5504
- });
5505
- var VariableMode = z192.object({
5506
- modeId: z192.string(),
5507
- name: z192.string()
5508
- });
5509
- var Collection2 = z192.object({
5510
- id: z192.string(),
5511
- name: z192.string(),
5512
- modes: z192.array(VariableMode),
5513
- defaultModeId: z192.string(),
5514
- remote: z192.boolean(),
5515
- hiddenFromPublishing: z192.boolean()
5516
- });
5517
- var VariablesMapping = z192.object({
5518
- variableCollections: z192.array(z192.string()).min(1),
5519
- variableMode: z192.string().min(1),
5520
- supernovaBrand: z192.string().min(1),
5521
- supernovaTheme: z192.string().min(1).optional().or(z192.null())
5522
- });
5523
- var FormattedCollections = z192.object({
5524
- variables: z192.record(z192.string(), Variable),
5525
- variableCollections: z192.record(z192.string(), Collection2),
5526
- mappings: z192.array(VariablesMapping).optional(),
5527
- variablesOrder: z192.string().array().optional()
5516
+ valuesByMode: z191.record(VariableValue),
5517
+ remote: z191.boolean(),
5518
+ description: z191.string(),
5519
+ hiddenFromPublishing: z191.boolean(),
5520
+ scopes: z191.array(VariableScope),
5521
+ codeSyntax: z191.record(z191.any()).optional()
5522
+ });
5523
+ var VariableMode = z191.object({
5524
+ modeId: z191.string(),
5525
+ name: z191.string()
5526
+ });
5527
+ var Collection2 = z191.object({
5528
+ id: z191.string(),
5529
+ name: z191.string(),
5530
+ modes: z191.array(VariableMode),
5531
+ defaultModeId: z191.string(),
5532
+ remote: z191.boolean(),
5533
+ hiddenFromPublishing: z191.boolean()
5534
+ });
5535
+ var VariablesMapping = z191.object({
5536
+ variableCollections: z191.array(z191.string()).min(1),
5537
+ variableMode: z191.string().min(1),
5538
+ supernovaBrand: z191.string().min(1),
5539
+ supernovaTheme: z191.string().min(1).optional().or(z191.null())
5540
+ });
5541
+ var FormattedCollections = z191.object({
5542
+ variables: z191.record(z191.string(), Variable),
5543
+ variableCollections: z191.record(z191.string(), Collection2),
5544
+ mappings: z191.array(VariablesMapping).optional(),
5545
+ variablesOrder: z191.string().array().optional()
5528
5546
  });
5529
5547
 
5530
5548
  // src/api/dto/design-systems/import-job.ts
5531
- import { z as z193 } from "zod";
5532
- var DTOImportJob = z193.object({
5533
- id: z193.string(),
5534
- designSystemId: z193.string(),
5535
- designSystemVersionId: z193.string(),
5536
- operation: z193.literal("Import"),
5537
- createdAt: z193.coerce.date(),
5538
- stateChangedAt: z193.coerce.date(),
5549
+ import { z as z192 } from "zod";
5550
+ var DTOImportJob = z192.object({
5551
+ id: z192.string(),
5552
+ designSystemId: z192.string(),
5553
+ designSystemVersionId: z192.string(),
5554
+ operation: z192.literal("Import"),
5555
+ createdAt: z192.coerce.date(),
5556
+ stateChangedAt: z192.coerce.date(),
5539
5557
  state: ImportJobState,
5540
- sourceIds: z193.string().array()
5558
+ sourceIds: z192.string().array()
5541
5559
  });
5542
- var DTOImportJobResponse = z193.object({
5560
+ var DTOImportJobResponse = z192.object({
5543
5561
  job: DTOImportJob
5544
5562
  });
5545
- var DTOBffFigmaImportRequestBody = z193.object({
5546
- type: z193.literal(DataSourceRemoteType.Enum.Figma),
5547
- brandPersistentId: z193.string().optional(),
5548
- fileId: z193.string(),
5563
+ var DTOBffFigmaImportRequestBody = z192.object({
5564
+ type: z192.literal(DataSourceRemoteType.Enum.Figma),
5565
+ brandPersistentId: z192.string().optional(),
5566
+ fileId: z192.string(),
5549
5567
  scope: DataSourceFigmaScope,
5550
5568
  autoImportMode: DataSourceAutoImportMode
5551
5569
  });
5552
- var DTOBffUploadImportRequestBody = z193.object({
5553
- type: z193.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5554
- brandPersistentId: z193.string().optional(),
5555
- sourceName: z193.string().optional(),
5556
- remoteId: z193.string(),
5557
- isTokenTypeSplitEnabled: z193.boolean().optional(),
5558
- payload: z193.any()
5570
+ var DTOBffUploadImportRequestBody = z192.object({
5571
+ type: z192.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5572
+ brandPersistentId: z192.string().optional(),
5573
+ sourceName: z192.string().optional(),
5574
+ remoteId: z192.string(),
5575
+ isTokenTypeSplitEnabled: z192.boolean().optional(),
5576
+ payload: z192.any()
5559
5577
  });
5560
- var DTOBffImportRequestBody = z193.discriminatedUnion("type", [
5578
+ var DTOBffImportRequestBody = z192.discriminatedUnion("type", [
5561
5579
  DTOBffFigmaImportRequestBody,
5562
5580
  DTOBffUploadImportRequestBody
5563
5581
  ]);
5564
5582
 
5565
5583
  // src/api/dto/design-systems/stats.ts
5566
- import { z as z194 } from "zod";
5567
- var DTODesignSystemVersionStats = z194.object({
5568
- tokens: z194.number(),
5569
- designSystemComponents: z194.number(),
5570
- assets: z194.number(),
5571
- documentationPages: z194.number()
5584
+ import { z as z193 } from "zod";
5585
+ var DTODesignSystemVersionStats = z193.object({
5586
+ tokens: z193.number(),
5587
+ designSystemComponents: z193.number(),
5588
+ assets: z193.number(),
5589
+ documentationPages: z193.number()
5572
5590
  });
5573
- var DTODesignSystemVersionStatsQuery = z194.object({
5574
- brandId: z194.string().optional()
5591
+ var DTODesignSystemVersionStatsQuery = z193.object({
5592
+ brandId: z193.string().optional()
5575
5593
  });
5576
5594
 
5577
5595
  // src/api/dto/design-systems/version.ts
5578
- import { z as z206 } from "zod";
5579
-
5580
- // src/api/payloads/design-systems/brand.ts
5581
- import { z as z195 } from "zod";
5582
- var DTOCreateBrandInput = z195.object({
5583
- persistentId: z195.string().uuid(),
5584
- meta: z195.object({
5585
- name: z195.string(),
5586
- description: z195.string()
5587
- })
5588
- });
5596
+ import { z as z205 } from "zod";
5589
5597
 
5590
5598
  // src/api/payloads/design-systems/update-design-system.ts
5591
- import { z as z196 } from "zod";
5599
+ import { z as z194 } from "zod";
5592
5600
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5593
5601
  id: true,
5594
5602
  workspaceId: true,
@@ -5600,40 +5608,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
5600
5608
  }).extend({
5601
5609
  meta: ObjectMeta.partial().optional()
5602
5610
  });
5603
- var DTODesignSystemUpdateAccessModeInput = z196.object({
5611
+ var DTODesignSystemUpdateAccessModeInput = z194.object({
5604
5612
  accessMode: DesignSystemAccessMode,
5605
- retain: z196.object({
5606
- userIds: z196.string().array(),
5607
- inviteIds: z196.string().array()
5613
+ retain: z194.object({
5614
+ userIds: z194.string().array(),
5615
+ inviteIds: z194.string().array()
5608
5616
  }).optional()
5609
5617
  });
5610
5618
 
5611
5619
  // src/api/payloads/design-systems/version.ts
5612
- import { z as z197 } from "zod";
5613
- var ObjectMeta2 = z197.object({
5614
- name: z197.string().max(150).optional(),
5615
- description: z197.string().max(2e3).optional()
5620
+ import { z as z195 } from "zod";
5621
+ var ObjectMeta2 = z195.object({
5622
+ name: z195.string().max(150).optional(),
5623
+ description: z195.string().max(2e3).optional()
5616
5624
  });
5617
5625
  function validateDesignSystemVersion(version) {
5618
5626
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
5619
5627
  return urlCompliantRegex.test(version);
5620
5628
  }
5621
- var DTOCreateVersionInput = z197.object({
5629
+ var DTOCreateVersionInput = z195.object({
5622
5630
  meta: ObjectMeta2,
5623
- version: z197.string().refine(validateDesignSystemVersion, {
5631
+ version: z195.string().refine(validateDesignSystemVersion, {
5624
5632
  message: "Invalid semantic versioning format"
5625
5633
  }),
5626
- changeLog: z197.string().optional()
5634
+ changeLog: z195.string().optional()
5627
5635
  });
5628
- var DTOUpdateVersionInput = z197.object({
5636
+ var DTOUpdateVersionInput = z195.object({
5629
5637
  meta: ObjectMeta2,
5630
- version: z197.string(),
5638
+ version: z195.string(),
5631
5639
  // required for PUT, but not editable
5632
- changeLog: z197.string()
5640
+ changeLog: z195.string()
5633
5641
  });
5634
5642
 
5635
5643
  // src/api/payloads/documentation/block-definitions.ts
5636
- import { z as z198 } from "zod";
5644
+ import { z as z196 } from "zod";
5637
5645
 
5638
5646
  // src/api/dto/documentation/block-definition.ts
5639
5647
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -5645,60 +5653,119 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
5645
5653
  var DTOPageBlockDefinition = PageBlockDefinition;
5646
5654
 
5647
5655
  // src/api/payloads/documentation/block-definitions.ts
5648
- var DTOGetBlockDefinitionsOutput = z198.object({
5649
- definitions: z198.array(DTOPageBlockDefinition)
5656
+ var DTOGetBlockDefinitionsOutput = z196.object({
5657
+ definitions: z196.array(DTOPageBlockDefinition)
5650
5658
  });
5651
5659
 
5652
5660
  // src/api/payloads/documentation/design-data-doc-diff.ts
5661
+ import { z as z197 } from "zod";
5662
+ var DTODocumentationPublishTypeQueryParams = z197.object({
5663
+ environment: z197.enum(["Live", "Preview"])
5664
+ });
5665
+
5666
+ // src/api/payloads/export/pipeline.ts
5653
5667
  import { z as z199 } from "zod";
5654
- var DTODocumentationPublishTypeQueryParams = z199.object({
5655
- environment: z199.enum(["Live", "Preview"])
5668
+
5669
+ // src/api/dto/export/exporter-property.ts
5670
+ import { z as z198 } from "zod";
5671
+ var PrimitiveValue = z198.number().or(z198.boolean()).or(z198.string());
5672
+ var ArrayValue = z198.array(z198.string());
5673
+ var ObjectValue = z198.record(z198.string());
5674
+ var DTOExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
5675
+ var DTOExporterPropertyType = z198.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
5676
+ var PropertyDefinitionBase = z198.object({
5677
+ key: z198.string(),
5678
+ title: z198.string(),
5679
+ description: z198.string()
5680
+ });
5681
+ var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
5682
+ type: z198.literal(DTOExporterPropertyType.Enum.Enum),
5683
+ options: z198.string().array(),
5684
+ default: z198.string()
5685
+ });
5686
+ var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
5687
+ type: z198.literal(DTOExporterPropertyType.Enum.Boolean),
5688
+ default: z198.boolean()
5689
+ });
5690
+ var DTOExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
5691
+ type: z198.literal(DTOExporterPropertyType.Enum.String),
5692
+ default: z198.string()
5693
+ });
5694
+ var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
5695
+ type: z198.literal(DTOExporterPropertyType.Enum.Number),
5696
+ default: z198.number()
5697
+ });
5698
+ var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
5699
+ type: z198.literal(DTOExporterPropertyType.Enum.Array),
5700
+ default: ArrayValue
5701
+ });
5702
+ var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
5703
+ type: z198.literal(DTOExporterPropertyType.Enum.Object),
5704
+ default: ObjectValue,
5705
+ allowedKeys: z198.object({
5706
+ options: z198.string().array()
5707
+ }).optional(),
5708
+ allowedValues: z198.object({
5709
+ options: z198.string().array()
5710
+ }).optional()
5656
5711
  });
5712
+ var DTOExporterPropertyDefinition = z198.discriminatedUnion("type", [
5713
+ DTOExporterPropertyDefinitionEnum,
5714
+ DTOExporterPropertyDefinitionBoolean,
5715
+ DTOExporterPropertyDefinitionString,
5716
+ DTOExporterPropertyDefinitionNumber,
5717
+ DTOExporterPropertyDefinitionArray,
5718
+ DTOExporterPropertyDefinitionObject
5719
+ ]);
5720
+ var DTOExporterPropertyDefinitionsResponse = z198.object({
5721
+ properties: DTOExporterPropertyDefinition.array()
5722
+ });
5723
+ var DTOExporterPropertyDefinitionValueMap = z198.record(DTOExporterPropertyDefinitionValue);
5657
5724
 
5658
5725
  // src/api/payloads/export/pipeline.ts
5659
- import { z as z200 } from "zod";
5660
- var DTOPipelineCreateBody = z200.object({
5661
- name: z200.string(),
5662
- exporterId: z200.string(),
5663
- designSystemId: z200.string(),
5664
- isEnabled: z200.boolean(),
5726
+ var DTOPipelineCreateBody = z199.object({
5727
+ name: z199.string(),
5728
+ exporterId: z199.string(),
5729
+ designSystemId: z199.string(),
5730
+ isEnabled: z199.boolean(),
5665
5731
  eventType: PipelineEventType,
5666
- brandPersistentId: z200.string().optional(),
5667
- themePersistentId: z200.string().optional(),
5668
- themePersistentIds: z200.string().array().optional(),
5732
+ brandPersistentId: z199.string().optional(),
5733
+ themePersistentId: z199.string().optional(),
5734
+ themePersistentIds: z199.string().array().optional(),
5735
+ exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
5669
5736
  destination: PipelineDestinationType.optional(),
5670
5737
  gitQuery: GitObjectsQuery,
5671
- destinations: z200.object({
5738
+ destinations: z199.object({
5672
5739
  s3: ExporterDestinationS3.nullish(),
5673
5740
  azure: ExporterDestinationAzure.nullish(),
5674
5741
  bitbucket: ExporterDestinationBitbucket.nullish(),
5675
5742
  github: ExporterDestinationGithub.nullish(),
5676
5743
  gitlab: ExporterDestinationGitlab.nullish(),
5677
5744
  documentation: ExporterDestinationDocs.nullish(),
5678
- webhookUrl: z200.string().nullish()
5745
+ webhookUrl: z199.string().nullish()
5679
5746
  })
5680
5747
  });
5681
5748
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
5682
- id: z200.string()
5749
+ id: z199.string()
5683
5750
  });
5684
- var DTOPipelineTriggerBody = z200.object({
5685
- designSystemVersionId: z200.string()
5751
+ var DTOPipelineTriggerBody = z199.object({
5752
+ designSystemVersionId: z199.string()
5686
5753
  });
5687
5754
 
5688
5755
  // src/api/payloads/liveblocks/auth.ts
5689
- import { z as z201 } from "zod";
5690
- var DTOLiveblocksAuthRequest = z201.object({
5691
- room: z201.string().optional()
5756
+ import { z as z200 } from "zod";
5757
+ var DTOLiveblocksAuthRequest = z200.object({
5758
+ room: z200.string().optional()
5692
5759
  });
5693
5760
 
5694
5761
  // src/api/payloads/users/notifications/notification-settings.ts
5695
- import { z as z202 } from "zod";
5696
- var DTOUpdateUserNotificationSettingsPayload = z202.object({
5762
+ import { z as z201 } from "zod";
5763
+ var DTOUpdateUserNotificationSettingsPayload = z201.object({
5697
5764
  notificationSettings: UserNotificationSettings
5698
5765
  });
5699
- var DTOUserNotificationSettingsResponse = z202.object({
5700
- userId: z202.string(),
5701
- workspaceId: z202.string(),
5766
+ var DTOUserNotificationSettingsResponse = z201.object({
5767
+ userId: z201.string(),
5768
+ workspaceId: z201.string(),
5702
5769
  notificationSettings: UserNotificationSettings
5703
5770
  });
5704
5771
 
@@ -5706,13 +5773,13 @@ var DTOUserNotificationSettingsResponse = z202.object({
5706
5773
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5707
5774
 
5708
5775
  // src/api/payloads/workspaces/transfer-ownership.ts
5709
- import { z as z203 } from "zod";
5710
- var DTOTransferOwnershipPayload = z203.object({
5711
- newOwnerId: z203.string()
5776
+ import { z as z202 } from "zod";
5777
+ var DTOTransferOwnershipPayload = z202.object({
5778
+ newOwnerId: z202.string()
5712
5779
  });
5713
5780
 
5714
5781
  // src/api/payloads/workspaces/workspace-configuration.ts
5715
- import { z as z204 } from "zod";
5782
+ import { z as z203 } from "zod";
5716
5783
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5717
5784
  function validateSsoPayload(ssoPayload) {
5718
5785
  const keys = [];
@@ -5735,21 +5802,21 @@ function validateSsoPayload(ssoPayload) {
5735
5802
  keys
5736
5803
  };
5737
5804
  }
5738
- var NpmRegistryInput = z204.object({
5739
- enabledScopes: z204.array(z204.string()),
5740
- customRegistryUrl: z204.string().optional(),
5741
- bypassProxy: z204.boolean().optional(),
5742
- npmProxyRegistryConfigId: z204.string().optional(),
5743
- npmProxyVersion: z204.number().optional(),
5744
- registryType: z204.string(),
5745
- authType: z204.string(),
5746
- authHeaderName: z204.string(),
5747
- authHeaderValue: z204.string(),
5748
- accessToken: z204.string(),
5749
- username: z204.string(),
5750
- password: z204.string()
5751
- });
5752
- var WorkspaceConfigurationPayload = z204.object({
5805
+ var NpmRegistryInput = z203.object({
5806
+ enabledScopes: z203.array(z203.string()),
5807
+ customRegistryUrl: z203.string().optional(),
5808
+ bypassProxy: z203.boolean().optional(),
5809
+ npmProxyRegistryConfigId: z203.string().optional(),
5810
+ npmProxyVersion: z203.number().optional(),
5811
+ registryType: z203.string(),
5812
+ authType: z203.string(),
5813
+ authHeaderName: z203.string(),
5814
+ authHeaderValue: z203.string(),
5815
+ accessToken: z203.string(),
5816
+ username: z203.string(),
5817
+ password: z203.string()
5818
+ });
5819
+ var WorkspaceConfigurationPayload = z203.object({
5753
5820
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5754
5821
  sso: SsoProvider.partial().optional(),
5755
5822
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5757,218 +5824,218 @@ var WorkspaceConfigurationPayload = z204.object({
5757
5824
  });
5758
5825
 
5759
5826
  // src/api/payloads/workspaces/workspace-integrations.ts
5760
- import { z as z205 } from "zod";
5761
- var DTOWorkspaceIntegrationOauthInput = z205.object({
5827
+ import { z as z204 } from "zod";
5828
+ var DTOWorkspaceIntegrationOauthInput = z204.object({
5762
5829
  type: IntegrationType
5763
5830
  });
5764
- var DTOWorkspaceIntegrationPATInput = z205.object({
5765
- userId: z205.string(),
5831
+ var DTOWorkspaceIntegrationPATInput = z204.object({
5832
+ userId: z204.string(),
5766
5833
  type: IntegrationType,
5767
5834
  token: IntegrationToken
5768
5835
  });
5769
- var DTOWorkspaceIntegrationGetGitObjectsInput = z205.object({
5770
- organization: z205.string().optional(),
5836
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z204.object({
5837
+ organization: z204.string().optional(),
5771
5838
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5772
- project: z205.string().optional(),
5839
+ project: z204.string().optional(),
5773
5840
  // Only for Bitbucket and Azure
5774
- repository: z205.string().optional(),
5841
+ repository: z204.string().optional(),
5775
5842
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5776
- branch: z205.string().optional(),
5843
+ branch: z204.string().optional(),
5777
5844
  // For all providers, useful for PR creations.
5778
- user: z205.string().optional()
5845
+ user: z204.string().optional()
5779
5846
  // Only for Gitlab User Repositories
5780
5847
  });
5781
5848
 
5782
5849
  // src/api/dto/design-systems/version.ts
5783
- var DTODesignSystemVersion = z206.object({
5784
- id: z206.string(),
5785
- createdAt: z206.coerce.date(),
5850
+ var DTODesignSystemVersion = z205.object({
5851
+ id: z205.string(),
5852
+ createdAt: z205.coerce.date(),
5786
5853
  meta: ObjectMeta,
5787
- version: z206.string(),
5788
- isReadonly: z206.boolean(),
5789
- changeLog: z206.string(),
5790
- designSystemId: z206.string()
5854
+ version: z205.string(),
5855
+ isReadonly: z205.boolean(),
5856
+ changeLog: z205.string(),
5857
+ designSystemId: z205.string()
5791
5858
  });
5792
- var DTODesignSystemVersionsListResponse = z206.object({
5793
- designSystemVersions: z206.array(DTODesignSystemVersion)
5859
+ var DTODesignSystemVersionsListResponse = z205.object({
5860
+ designSystemVersions: z205.array(DTODesignSystemVersion)
5794
5861
  });
5795
- var DTODesignSystemVersionGetResponse = z206.object({
5862
+ var DTODesignSystemVersionGetResponse = z205.object({
5796
5863
  designSystemVersion: DTODesignSystemVersion
5797
5864
  });
5798
- var DTODesignSystemVersionCreationResponse = z206.object({
5865
+ var DTODesignSystemVersionCreationResponse = z205.object({
5799
5866
  meta: ObjectMeta,
5800
- version: z206.string(),
5801
- changeLog: z206.string(),
5802
- isReadOnly: z206.boolean(),
5803
- designSystemId: z206.string(),
5804
- jobId: z206.string()
5805
- });
5806
- var VersionSQSPayload = z206.object({
5807
- jobId: z206.string(),
5808
- designSystemId: z206.string(),
5867
+ version: z205.string(),
5868
+ changeLog: z205.string(),
5869
+ isReadOnly: z205.boolean(),
5870
+ designSystemId: z205.string(),
5871
+ jobId: z205.string()
5872
+ });
5873
+ var VersionSQSPayload = z205.object({
5874
+ jobId: z205.string(),
5875
+ designSystemId: z205.string(),
5809
5876
  input: DTOCreateVersionInput
5810
5877
  });
5811
- var DTODesignSystemVersionJobsResponse = z206.object({
5812
- jobs: z206.array(VersionCreationJob)
5878
+ var DTODesignSystemVersionJobsResponse = z205.object({
5879
+ jobs: z205.array(VersionCreationJob)
5813
5880
  });
5814
- var DTODesignSystemVersionJobStatusResponse = z206.object({
5881
+ var DTODesignSystemVersionJobStatusResponse = z205.object({
5815
5882
  job: VersionCreationJob
5816
5883
  });
5817
5884
 
5818
5885
  // src/api/dto/design-systems/view.ts
5819
- import { z as z207 } from "zod";
5820
- var DTOElementViewColumnSharedAttributes = z207.object({
5821
- id: z207.string(),
5822
- persistentId: z207.string(),
5823
- width: z207.number()
5886
+ import { z as z206 } from "zod";
5887
+ var DTOElementViewColumnSharedAttributes = z206.object({
5888
+ id: z206.string(),
5889
+ persistentId: z206.string(),
5890
+ width: z206.number()
5824
5891
  });
5825
5892
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5826
- type: z207.literal("BaseProperty"),
5893
+ type: z206.literal("BaseProperty"),
5827
5894
  basePropertyType: ElementViewBaseColumnType
5828
5895
  });
5829
5896
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5830
- type: z207.literal("PropertyDefinition"),
5831
- propertyDefinitionId: z207.string()
5897
+ type: z206.literal("PropertyDefinition"),
5898
+ propertyDefinitionId: z206.string()
5832
5899
  });
5833
5900
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5834
- type: z207.literal("Theme"),
5835
- themeId: z207.string()
5901
+ type: z206.literal("Theme"),
5902
+ themeId: z206.string()
5836
5903
  });
5837
- var DTOElementViewColumn = z207.discriminatedUnion("type", [
5904
+ var DTOElementViewColumn = z206.discriminatedUnion("type", [
5838
5905
  DTOElementViewBasePropertyColumn,
5839
5906
  DTOElementViewPropertyDefinitionColumn,
5840
5907
  DTOElementViewThemeColumn
5841
5908
  ]);
5842
- var DTOElementView = z207.object({
5909
+ var DTOElementView = z206.object({
5843
5910
  meta: ObjectMeta,
5844
- persistentId: z207.string(),
5911
+ persistentId: z206.string(),
5845
5912
  targetElementType: ElementPropertyTargetType,
5846
- id: z207.string(),
5847
- isDefault: z207.boolean(),
5848
- columns: z207.array(DTOElementViewColumn)
5913
+ id: z206.string(),
5914
+ isDefault: z206.boolean(),
5915
+ columns: z206.array(DTOElementViewColumn)
5849
5916
  });
5850
- var DTOElementViewsListResponse = z207.object({
5851
- elementDataViews: z207.array(DTOElementView)
5917
+ var DTOElementViewsListResponse = z206.object({
5918
+ elementDataViews: z206.array(DTOElementView)
5852
5919
  });
5853
5920
 
5854
5921
  // src/api/dto/workspaces/git.ts
5855
- import { z as z208 } from "zod";
5856
- var DTOGitOrganization = z208.object({
5857
- id: z208.string(),
5858
- name: z208.string(),
5859
- url: z208.string(),
5860
- slug: z208.string()
5922
+ import { z as z207 } from "zod";
5923
+ var DTOGitOrganization = z207.object({
5924
+ id: z207.string(),
5925
+ name: z207.string(),
5926
+ url: z207.string(),
5927
+ slug: z207.string()
5861
5928
  });
5862
- var DTOGitProject = z208.object({
5863
- id: z208.string(),
5864
- name: z208.string(),
5865
- url: z208.string(),
5866
- slug: z208.string()
5929
+ var DTOGitProject = z207.object({
5930
+ id: z207.string(),
5931
+ name: z207.string(),
5932
+ url: z207.string(),
5933
+ slug: z207.string()
5867
5934
  });
5868
- var DTOGitRepository = z208.object({
5869
- id: z208.string(),
5870
- name: z208.string(),
5871
- url: z208.string(),
5872
- slug: z208.string(),
5873
- defaultBranch: z208.string().optional()
5935
+ var DTOGitRepository = z207.object({
5936
+ id: z207.string(),
5937
+ name: z207.string(),
5938
+ url: z207.string(),
5939
+ slug: z207.string(),
5940
+ defaultBranch: z207.string().optional()
5874
5941
  });
5875
- var DTOGitBranch = z208.object({
5876
- name: z208.string(),
5877
- lastCommitId: z208.string()
5942
+ var DTOGitBranch = z207.object({
5943
+ name: z207.string(),
5944
+ lastCommitId: z207.string()
5878
5945
  });
5879
5946
 
5880
5947
  // src/api/dto/workspaces/integrations.ts
5881
- import { z as z209 } from "zod";
5948
+ import { z as z208 } from "zod";
5882
5949
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5883
5950
  accessToken: true,
5884
5951
  refreshToken: true
5885
5952
  });
5886
- var DTOIntegration = z209.object({
5887
- id: z209.string(),
5888
- workspaceId: z209.string(),
5953
+ var DTOIntegration = z208.object({
5954
+ id: z208.string(),
5955
+ workspaceId: z208.string(),
5889
5956
  type: ExtendedIntegrationType,
5890
- createdAt: z209.coerce.date(),
5891
- integrationCredentials: z209.array(DTOIntegrationCredentials).optional(),
5892
- integrationDesignSystems: z209.array(IntegrationDesignSystem).optional()
5957
+ createdAt: z208.coerce.date(),
5958
+ integrationCredentials: z208.array(DTOIntegrationCredentials).optional(),
5959
+ integrationDesignSystems: z208.array(IntegrationDesignSystem).optional()
5893
5960
  });
5894
- var DTOIntegrationOAuthGetResponse = z209.object({
5895
- url: z209.string()
5961
+ var DTOIntegrationOAuthGetResponse = z208.object({
5962
+ url: z208.string()
5896
5963
  });
5897
- var DTOIntegrationPostResponse = z209.object({
5964
+ var DTOIntegrationPostResponse = z208.object({
5898
5965
  integration: DTOIntegration
5899
5966
  });
5900
- var DTOIntegrationsGetListResponse = z209.object({
5967
+ var DTOIntegrationsGetListResponse = z208.object({
5901
5968
  integrations: DTOIntegration.array()
5902
5969
  });
5903
5970
 
5904
5971
  // src/api/dto/workspaces/invitations.ts
5905
- import { z as z210 } from "zod";
5906
- var DTOWorkspaceInvitationInput = z210.object({
5907
- email: z210.string().email(),
5972
+ import { z as z209 } from "zod";
5973
+ var DTOWorkspaceInvitationInput = z209.object({
5974
+ email: z209.string().email(),
5908
5975
  role: WorkspaceRoleSchema
5909
5976
  });
5910
- var DTOWorkspaceInvitationsListInput = z210.object({
5977
+ var DTOWorkspaceInvitationsListInput = z209.object({
5911
5978
  invites: DTOWorkspaceInvitationInput.array().max(100),
5912
- designSystemId: z210.string().optional()
5979
+ designSystemId: z209.string().optional()
5913
5980
  });
5914
- var DTOWorkspaceInvitationsResponse = z210.object({
5981
+ var DTOWorkspaceInvitationsResponse = z209.object({
5915
5982
  invitations: WorkspaceInvitation.array()
5916
5983
  });
5917
- var DTOWorkspaceInviteUpdate = z210.object({
5984
+ var DTOWorkspaceInviteUpdate = z209.object({
5918
5985
  role: WorkspaceRoleSchema
5919
5986
  });
5920
- var DTOWorkspaceInvitationUpdateResponse = z210.object({
5987
+ var DTOWorkspaceInvitationUpdateResponse = z209.object({
5921
5988
  invitation: WorkspaceInvitation
5922
5989
  });
5923
5990
 
5924
5991
  // src/api/dto/workspaces/membership.ts
5925
- import { z as z213 } from "zod";
5992
+ import { z as z212 } from "zod";
5926
5993
 
5927
5994
  // src/api/dto/workspaces/workspace.ts
5928
- import { z as z212 } from "zod";
5995
+ import { z as z211 } from "zod";
5929
5996
 
5930
5997
  // src/api/dto/workspaces/npm-registry.ts
5931
- import { z as z211 } from "zod";
5998
+ import { z as z210 } from "zod";
5932
5999
  var DTONpmRegistryConfigConstants = {
5933
6000
  passwordPlaceholder: "redacted"
5934
6001
  };
5935
- var DTONpmRegistryConfig = z211.object({
6002
+ var DTONpmRegistryConfig = z210.object({
5936
6003
  // Registry basic configuration
5937
6004
  registryType: NpmRegistryType,
5938
- registryUrl: z211.string(),
5939
- customRegistryUrl: z211.string().optional(),
6005
+ registryUrl: z210.string(),
6006
+ customRegistryUrl: z210.string().optional(),
5940
6007
  // URL of Supernova NPM packages proxy
5941
- proxyUrl: z211.string(),
6008
+ proxyUrl: z210.string(),
5942
6009
  // Auth configuration
5943
6010
  authType: NpmRegistryAuthType,
5944
- accessToken: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5945
- username: z211.string().optional(),
5946
- password: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6011
+ accessToken: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6012
+ username: z210.string().optional(),
6013
+ password: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5947
6014
  // NPM package scopes for whih the proxy should be enabled
5948
- enabledScopes: z211.array(z211.string()),
6015
+ enabledScopes: z210.array(z210.string()),
5949
6016
  // True if client should bypass Supernova proxy and connect directly to the registry
5950
6017
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5951
- bypassProxy: z211.boolean()
6018
+ bypassProxy: z210.boolean()
5952
6019
  });
5953
6020
 
5954
6021
  // src/api/dto/workspaces/workspace.ts
5955
6022
  var DTOWorkspaceProfile = WorkspaceProfile;
5956
- var DTOWorkspace = z212.object({
5957
- id: z212.string(),
6023
+ var DTOWorkspace = z211.object({
6024
+ id: z211.string(),
5958
6025
  profile: DTOWorkspaceProfile,
5959
6026
  subscription: Subscription,
5960
6027
  npmRegistry: DTONpmRegistryConfig.optional()
5961
6028
  });
5962
- var DTOWorkspaceCreateInput = z212.object({
5963
- name: z212.string()
6029
+ var DTOWorkspaceCreateInput = z211.object({
6030
+ name: z211.string()
5964
6031
  });
5965
- var DTOWorkspaceResponse = z212.object({
6032
+ var DTOWorkspaceResponse = z211.object({
5966
6033
  workspace: DTOWorkspace
5967
6034
  });
5968
6035
 
5969
6036
  // src/api/dto/workspaces/membership.ts
5970
- var DTOWorkspaceRole = z213.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5971
- var DTOUserWorkspaceMembership = z213.object({
6037
+ var DTOWorkspaceRole = z212.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6038
+ var DTOUserWorkspaceMembership = z212.object({
5972
6039
  // Workspace the user is a member of
5973
6040
  workspace: DTOWorkspace,
5974
6041
  // Assigned role the user has in the workspace
@@ -5978,26 +6045,26 @@ var DTOUserWorkspaceMembership = z213.object({
5978
6045
  // when a workspace's subscription is downgraded to free tier
5979
6046
  effectiveRole: DTOWorkspaceRole
5980
6047
  });
5981
- var DTOWorkspaceMember = z213.object({
6048
+ var DTOWorkspaceMember = z212.object({
5982
6049
  user: User,
5983
6050
  role: WorkspaceRoleSchema,
5984
6051
  effectiveRole: WorkspaceRoleSchema
5985
6052
  });
5986
- var DTOUserWorkspaceMembershipsResponse = z213.object({
5987
- membership: z213.array(DTOUserWorkspaceMembership)
6053
+ var DTOUserWorkspaceMembershipsResponse = z212.object({
6054
+ membership: z212.array(DTOUserWorkspaceMembership)
5988
6055
  });
5989
- var DTOWorkspaceMembersListResponse = z213.object({
5990
- members: z213.array(DTOWorkspaceMember)
6056
+ var DTOWorkspaceMembersListResponse = z212.object({
6057
+ members: z212.array(DTOWorkspaceMember)
5991
6058
  });
5992
6059
 
5993
6060
  // src/api/dto/bff/app-bootstrap-data.ts
5994
- var DTOAppBootstrapDataQuery = z214.object({
5995
- preferredWorkspaceId: z214.string().optional(),
5996
- preferredDesignSystemId: z214.string().optional(),
5997
- preferredVersionId: z214.string().optional(),
5998
- preferredBrandId: z214.string().optional()
6061
+ var DTOAppBootstrapDataQuery = z213.object({
6062
+ preferredWorkspaceId: z213.string().optional(),
6063
+ preferredDesignSystemId: z213.string().optional(),
6064
+ preferredVersionId: z213.string().optional(),
6065
+ preferredBrandId: z213.string().optional()
5999
6066
  });
6000
- var DTOAppBootstrapDataResponse = z214.object({
6067
+ var DTOAppBootstrapDataResponse = z213.object({
6001
6068
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
6002
6069
  designSystem: DTODesignSystem.optional(),
6003
6070
  version: DTODesignSystemVersion.optional(),
@@ -6005,88 +6072,88 @@ var DTOAppBootstrapDataResponse = z214.object({
6005
6072
  });
6006
6073
 
6007
6074
  // src/api/dto/collections/token-collection.ts
6008
- import { z as z215 } from "zod";
6009
- var DTOTokenCollection = z215.object({
6010
- id: z215.string(),
6011
- persistentId: z215.string(),
6012
- designSystemVersionId: z215.string(),
6075
+ import { z as z214 } from "zod";
6076
+ var DTOTokenCollection = z214.object({
6077
+ id: z214.string(),
6078
+ persistentId: z214.string(),
6079
+ designSystemVersionId: z214.string(),
6013
6080
  meta: ObjectMeta,
6014
6081
  backgroundColor: ColorTokenInlineData.optional(),
6015
- elementPropertyOptionId: z215.string(),
6016
- createdAt: z215.coerce.date(),
6017
- updatedAt: z215.coerce.date(),
6082
+ elementPropertyOptionId: z214.string(),
6083
+ createdAt: z214.coerce.date(),
6084
+ updatedAt: z214.coerce.date(),
6018
6085
  origin: CollectionOrigin.optional()
6019
6086
  });
6020
- var DTOTokenCollectionsListReponse = z215.object({
6087
+ var DTOTokenCollectionsListReponse = z214.object({
6021
6088
  collections: DTOTokenCollection.array()
6022
6089
  });
6023
6090
 
6024
6091
  // src/api/dto/design-tokens/design-token.ts
6025
- import { z as z216 } from "zod";
6092
+ import { z as z215 } from "zod";
6026
6093
  var DTODesignToken = DesignTokenTypedData.and(
6027
- z216.object({
6028
- id: z216.string(),
6029
- persistentId: z216.string(),
6030
- designSystemVersionId: z216.string(),
6094
+ z215.object({
6095
+ id: z215.string(),
6096
+ persistentId: z215.string(),
6097
+ designSystemVersionId: z215.string(),
6031
6098
  meta: ObjectMeta,
6032
6099
  originStyle: DesignTokenOrigin.optional(),
6033
- brandId: z216.string(),
6034
- collectionId: z216.string().optional(),
6035
- updatedAt: z216.coerce.date()
6100
+ brandId: z215.string(),
6101
+ collectionId: z215.string().optional(),
6102
+ updatedAt: z215.coerce.date()
6036
6103
  })
6037
6104
  );
6038
- var DTODesignTokenListResponse = z216.object({
6105
+ var DTODesignTokenListResponse = z215.object({
6039
6106
  tokens: DTODesignToken.array()
6040
6107
  });
6041
- var DTODesignTokenResponse = z216.object({
6108
+ var DTODesignTokenResponse = z215.object({
6042
6109
  token: DTODesignToken
6043
6110
  });
6044
- var DTODesignTokenGroup = z216.object({
6045
- id: z216.string(),
6111
+ var DTODesignTokenGroup = z215.object({
6112
+ id: z215.string(),
6046
6113
  tokenType: DesignTokenType,
6047
- persistentId: z216.string(),
6048
- isRoot: z216.boolean(),
6049
- brandId: z216.string(),
6114
+ persistentId: z215.string(),
6115
+ isRoot: z215.boolean(),
6116
+ brandId: z215.string(),
6050
6117
  meta: ObjectMeta,
6051
- childrenIds: z216.string().array()
6118
+ childrenIds: z215.string().array()
6052
6119
  });
6053
- var DTODesignTokenGroupListResponse = z216.object({
6120
+ var DTODesignTokenGroupListResponse = z215.object({
6054
6121
  groups: DTODesignTokenGroup.array()
6055
6122
  });
6056
- var DTODesignTokenGroupResponse = z216.object({
6123
+ var DTODesignTokenGroupResponse = z215.object({
6057
6124
  group: DTODesignTokenGroup
6058
6125
  });
6059
6126
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6060
- z216.object({
6061
- persistentId: z216.string(),
6127
+ z215.object({
6128
+ persistentId: z215.string(),
6062
6129
  meta: ObjectMeta,
6063
- brandId: z216.string(),
6064
- groupPersistentId: z216.string().optional()
6130
+ brandId: z215.string(),
6131
+ groupPersistentId: z215.string().optional()
6065
6132
  })
6066
6133
  );
6067
- var DTODesignTokenGroupCreatePayload = z216.object({
6068
- persistentId: z216.string(),
6134
+ var DTODesignTokenGroupCreatePayload = z215.object({
6135
+ persistentId: z215.string(),
6069
6136
  meta: ObjectMeta,
6070
- brandId: z216.string(),
6071
- parentId: z216.string().optional(),
6137
+ brandId: z215.string(),
6138
+ parentId: z215.string().optional(),
6072
6139
  tokenType: DesignTokenType,
6073
- childrenIds: z216.string().array()
6140
+ childrenIds: z215.string().array()
6074
6141
  });
6075
6142
 
6076
6143
  // src/api/dto/documentation/anchor.ts
6077
- import { z as z217 } from "zod";
6144
+ import { z as z216 } from "zod";
6078
6145
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6079
- var DTOGetDocumentationPageAnchorsResponse = z217.object({
6080
- anchors: z217.array(DTODocumentationPageAnchor)
6146
+ var DTOGetDocumentationPageAnchorsResponse = z216.object({
6147
+ anchors: z216.array(DTODocumentationPageAnchor)
6081
6148
  });
6082
6149
 
6083
6150
  // src/api/dto/documentation/approvals.ts
6084
- import { z as z218 } from "zod";
6151
+ import { z as z217 } from "zod";
6085
6152
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
6086
- var DTODocumentationGroupApprovalState = z218.object({
6087
- persistentId: z218.string(),
6088
- groupId: z218.string(),
6089
- designSystemVersionId: z218.string(),
6153
+ var DTODocumentationGroupApprovalState = z217.object({
6154
+ persistentId: z217.string(),
6155
+ groupId: z217.string(),
6156
+ designSystemVersionId: z217.string(),
6090
6157
  approvalState: DocumentationPageApprovalState
6091
6158
  });
6092
6159
 
@@ -6094,68 +6161,68 @@ var DTODocumentationGroupApprovalState = z218.object({
6094
6161
  var DTOPageBlockItemV2 = PageBlockItemV2;
6095
6162
 
6096
6163
  // src/api/dto/documentation/documentation-page-snapshot.ts
6097
- import { z as z223 } from "zod";
6164
+ import { z as z222 } from "zod";
6098
6165
 
6099
6166
  // src/api/dto/elements/documentation/page-v2.ts
6100
- import { z as z222 } from "zod";
6167
+ import { z as z221 } from "zod";
6101
6168
 
6102
6169
  // src/api/dto/elements/documentation/draft-state.ts
6103
- import { z as z220 } from "zod";
6170
+ import { z as z219 } from "zod";
6104
6171
 
6105
6172
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6106
- import { z as z219 } from "zod";
6173
+ import { z as z218 } from "zod";
6107
6174
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6108
- var DTODocumentationItemConfigurationV2 = z219.object({
6109
- showSidebar: z219.boolean(),
6110
- isPrivate: z219.boolean(),
6111
- isHidden: z219.boolean(),
6175
+ var DTODocumentationItemConfigurationV2 = z218.object({
6176
+ showSidebar: z218.boolean(),
6177
+ isPrivate: z218.boolean(),
6178
+ isHidden: z218.boolean(),
6112
6179
  header: DTODocumentationItemHeaderV2
6113
6180
  });
6114
6181
 
6115
6182
  // src/api/dto/elements/documentation/draft-state.ts
6116
- var DTODocumentationDraftChangeType = z220.enum(["Created", "Updated", "Deleted"]);
6117
- var DTODocumentationDraftStateCreated = z220.object({
6118
- changeType: z220.literal(DTODocumentationDraftChangeType.enum.Created)
6119
- });
6120
- var DTODocumentationDraftStateUpdated = z220.object({
6121
- changeType: z220.literal(DTODocumentationDraftChangeType.enum.Updated),
6122
- changes: z220.object({
6123
- previousTitle: z220.string().optional(),
6183
+ var DTODocumentationDraftChangeType = z219.enum(["Created", "Updated", "Deleted"]);
6184
+ var DTODocumentationDraftStateCreated = z219.object({
6185
+ changeType: z219.literal(DTODocumentationDraftChangeType.enum.Created)
6186
+ });
6187
+ var DTODocumentationDraftStateUpdated = z219.object({
6188
+ changeType: z219.literal(DTODocumentationDraftChangeType.enum.Updated),
6189
+ changes: z219.object({
6190
+ previousTitle: z219.string().optional(),
6124
6191
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6125
- previousContentHash: z220.string().optional()
6192
+ previousContentHash: z219.string().optional()
6126
6193
  })
6127
6194
  });
6128
- var DTODocumentationDraftStateDeleted = z220.object({
6129
- changeType: z220.literal(DTODocumentationDraftChangeType.enum.Deleted),
6130
- deletedAt: z220.coerce.date(),
6131
- deletedByUserId: z220.string()
6195
+ var DTODocumentationDraftStateDeleted = z219.object({
6196
+ changeType: z219.literal(DTODocumentationDraftChangeType.enum.Deleted),
6197
+ deletedAt: z219.coerce.date(),
6198
+ deletedByUserId: z219.string()
6132
6199
  });
6133
- var DTODocumentationDraftState = z220.discriminatedUnion("changeType", [
6200
+ var DTODocumentationDraftState = z219.discriminatedUnion("changeType", [
6134
6201
  DTODocumentationDraftStateCreated,
6135
6202
  DTODocumentationDraftStateUpdated,
6136
6203
  DTODocumentationDraftStateDeleted
6137
6204
  ]);
6138
6205
 
6139
6206
  // src/api/dto/elements/documentation/metadata.ts
6140
- import { z as z221 } from "zod";
6141
- var DTODocumentationPublishMetadata = z221.object({
6142
- lastPublishedByUserId: z221.string(),
6143
- lastPublishedAt: z221.coerce.date()
6207
+ import { z as z220 } from "zod";
6208
+ var DTODocumentationPublishMetadata = z220.object({
6209
+ lastPublishedByUserId: z220.string(),
6210
+ lastPublishedAt: z220.coerce.date()
6144
6211
  });
6145
6212
 
6146
6213
  // src/api/dto/elements/documentation/page-v2.ts
6147
- var DTODocumentationPageV2 = z222.object({
6148
- id: z222.string(),
6149
- persistentId: z222.string(),
6150
- designSystemVersionId: z222.string(),
6151
- title: z222.string(),
6214
+ var DTODocumentationPageV2 = z221.object({
6215
+ id: z221.string(),
6216
+ persistentId: z221.string(),
6217
+ designSystemVersionId: z221.string(),
6218
+ title: z221.string(),
6152
6219
  configuration: DTODocumentationItemConfigurationV2,
6153
- shortPersistentId: z222.string(),
6154
- slug: z222.string().optional(),
6155
- userSlug: z222.string().optional(),
6156
- createdAt: z222.coerce.date(),
6157
- updatedAt: z222.coerce.date(),
6158
- path: z222.string(),
6220
+ shortPersistentId: z221.string(),
6221
+ slug: z221.string().optional(),
6222
+ userSlug: z221.string().optional(),
6223
+ createdAt: z221.coerce.date(),
6224
+ updatedAt: z221.coerce.date(),
6225
+ path: z221.string(),
6159
6226
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6160
6227
  draftState: DTODocumentationDraftState.optional(),
6161
6228
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -6163,215 +6230,218 @@ var DTODocumentationPageV2 = z222.object({
6163
6230
  /** Defines the approval state of the documentation page */
6164
6231
  approvalState: DTODocumentationPageApprovalState.optional(),
6165
6232
  // Backward compatibility
6166
- type: z222.literal("Page")
6233
+ type: z221.literal("Page")
6167
6234
  });
6168
- var DTOCreateDocumentationPageInputV2 = z222.object({
6235
+ var DTOCreateDocumentationPageInputV2 = z221.object({
6169
6236
  // Identifier
6170
- persistentId: z222.string(),
6237
+ persistentId: z221.string(),
6171
6238
  // Page properties
6172
- title: z222.string(),
6239
+ title: z221.string(),
6173
6240
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6174
6241
  // Page placement properties
6175
- parentPersistentId: z222.string(),
6176
- afterPersistentId: z222.string().nullish()
6242
+ parentPersistentId: z221.string(),
6243
+ afterPersistentId: z221.string().nullish()
6177
6244
  });
6178
- var DTOUpdateDocumentationPageInputV2 = z222.object({
6245
+ var DTOUpdateDocumentationPageInputV2 = z221.object({
6179
6246
  // Identifier of the group to update
6180
- id: z222.string(),
6247
+ id: z221.string(),
6181
6248
  // Page properties
6182
- title: z222.string().optional(),
6249
+ title: z221.string().optional(),
6183
6250
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6184
6251
  });
6185
- var DTOMoveDocumentationPageInputV2 = z222.object({
6252
+ var DTOMoveDocumentationPageInputV2 = z221.object({
6186
6253
  // Identifier of the group to update
6187
- id: z222.string(),
6254
+ id: z221.string(),
6188
6255
  // Page placement properties
6189
- parentPersistentId: z222.string(),
6190
- afterPersistentId: z222.string().nullish()
6256
+ parentPersistentId: z221.string(),
6257
+ afterPersistentId: z221.string().nullish()
6191
6258
  });
6192
- var DTODuplicateDocumentationPageInputV2 = z222.object({
6259
+ var DTODuplicateDocumentationPageInputV2 = z221.object({
6193
6260
  // Identifier of the page to duplicate from
6194
- id: z222.string(),
6261
+ id: z221.string(),
6195
6262
  // New page persistent id
6196
- persistentId: z222.string(),
6263
+ persistentId: z221.string(),
6197
6264
  // Page placement properties
6198
- parentPersistentId: z222.string(),
6199
- afterPersistentId: z222.string().nullish()
6265
+ parentPersistentId: z221.string(),
6266
+ afterPersistentId: z221.string().nullish()
6200
6267
  });
6201
- var DTODeleteDocumentationPageInputV2 = z222.object({
6268
+ var DTODeleteDocumentationPageInputV2 = z221.object({
6202
6269
  // Identifier
6203
- id: z222.string()
6270
+ id: z221.string()
6204
6271
  });
6205
- var DTORestoreDocumentationPageInput = z222.object({
6206
- persistentId: z222.string(),
6207
- snapshotId: z222.string().optional()
6272
+ var DTORestoreDocumentationPageInput = z221.object({
6273
+ persistentId: z221.string(),
6274
+ snapshotId: z221.string().optional()
6208
6275
  });
6209
- var DTORestoreDocumentationGroupInput = z222.object({
6210
- persistentId: z222.string(),
6211
- snapshotId: z222.string().optional()
6276
+ var DTORestoreDocumentationGroupInput = z221.object({
6277
+ persistentId: z221.string(),
6278
+ snapshotId: z221.string().optional()
6212
6279
  });
6213
- var DTODocumentationPageApprovalStateChangeInput = z222.object({
6214
- persistentId: z222.string(),
6280
+ var DTODocumentationPageApprovalStateChangeInput = z221.object({
6281
+ persistentId: z221.string(),
6215
6282
  approvalState: DocumentationPageApprovalState.optional()
6216
6283
  });
6217
6284
 
6218
6285
  // src/api/dto/documentation/documentation-page-snapshot.ts
6219
- var DTODocumentationPageSnapshot = z223.object({
6220
- id: z223.string(),
6221
- designSystemVersionId: z223.string(),
6222
- createdAt: z223.string(),
6223
- updatedAt: z223.string(),
6286
+ var DTODocumentationPageSnapshot = z222.object({
6287
+ id: z222.string(),
6288
+ designSystemVersionId: z222.string(),
6289
+ createdAt: z222.string(),
6290
+ updatedAt: z222.string(),
6224
6291
  documentationPage: DTODocumentationPageV2,
6225
- pageContentHash: z223.string(),
6292
+ pageContentHash: z222.string(),
6226
6293
  reason: DesignElementSnapshotReason
6227
6294
  });
6228
6295
 
6229
6296
  // src/api/dto/documentation/link-preview.ts
6230
- import { z as z224 } from "zod";
6231
- var DTODocumentationLinkPreviewResponse = z224.object({
6297
+ import { z as z223 } from "zod";
6298
+ var DTODocumentationLinkPreviewResponse = z223.object({
6232
6299
  linkPreview: DocumentationLinkPreview
6233
6300
  });
6234
- var DTODocumentationLinkPreviewRequest = z224.object({
6235
- url: z224.string().optional(),
6236
- documentationItemPersistentId: z224.string().optional()
6301
+ var DTODocumentationLinkPreviewRequest = z223.object({
6302
+ url: z223.string().optional(),
6303
+ documentationItemPersistentId: z223.string().optional()
6237
6304
  });
6238
6305
 
6239
6306
  // src/api/dto/documentation/publish.ts
6240
- import { z as z228 } from "zod";
6307
+ import { z as z227 } from "zod";
6241
6308
 
6242
6309
  // src/api/dto/export/exporter.ts
6243
- import { z as z225 } from "zod";
6244
- var DTOExporterType = z225.enum(["documentation", "code"]);
6245
- var DTOExporterSource = z225.enum(["git", "upload"]);
6246
- var DTOExporterMembershipRole = z225.enum(["Owner", "OwnerArchived", "User"]);
6247
- var DTOExporterListQuery = z225.object({
6248
- limit: z225.coerce.number().optional()
6249
- });
6250
- var DTOExporter = z225.object({
6251
- id: z225.string(),
6252
- name: z225.string(),
6253
- isPrivate: z225.boolean(),
6310
+ import { z as z224 } from "zod";
6311
+ var DTOExporterType = z224.enum(["documentation", "code"]);
6312
+ var DTOExporterSource = z224.enum(["git", "upload"]);
6313
+ var DTOExporterMembershipRole = z224.enum(["Owner", "OwnerArchived", "User"]);
6314
+ var DTOExporterListQuery = z224.object({
6315
+ limit: z224.coerce.number().optional()
6316
+ });
6317
+ var DTOExporter = z224.object({
6318
+ id: z224.string(),
6319
+ name: z224.string(),
6320
+ isPrivate: z224.boolean(),
6254
6321
  exporterType: DTOExporterType,
6255
- isDefaultDocumentationExporter: z225.boolean(),
6256
- iconURL: z225.string().optional(),
6322
+ isDefaultDocumentationExporter: z224.boolean(),
6323
+ iconURL: z224.string().optional(),
6257
6324
  configurationProperties: PulsarContributionConfigurationProperty.array(),
6325
+ properties: DTOExporterPropertyDefinition.array().optional(),
6258
6326
  customBlocks: PulsarCustomBlock.array(),
6259
- blockVariants: z225.record(z225.string(), PulsarContributionVariant.array()),
6260
- usesBrands: z225.boolean(),
6261
- usesThemes: z225.boolean(),
6327
+ blockVariants: z224.record(z224.string(), PulsarContributionVariant.array()),
6328
+ usesBrands: z224.boolean(),
6329
+ usesThemes: z224.boolean(),
6262
6330
  source: DTOExporterSource,
6263
- gitUrl: nullishToOptional(z225.string()),
6264
- gitBranch: nullishToOptional(z225.string()),
6265
- gitDirectory: nullishToOptional(z225.string())
6331
+ gitUrl: nullishToOptional(z224.string()),
6332
+ gitBranch: nullishToOptional(z224.string()),
6333
+ gitDirectory: nullishToOptional(z224.string())
6266
6334
  });
6267
- var DTOExporterMembership = z225.object({
6268
- workspaceId: z225.string(),
6269
- exporterId: z225.string(),
6335
+ var DTOExporterMembership = z224.object({
6336
+ workspaceId: z224.string(),
6337
+ exporterId: z224.string(),
6270
6338
  role: DTOExporterMembershipRole
6271
6339
  });
6272
- var DTOExporterCreateOutput = z225.object({
6340
+ var DTOExporterCreateOutput = z224.object({
6273
6341
  exporter: DTOExporter,
6274
6342
  membership: DTOExporterMembership
6275
6343
  });
6276
- var DTOExporterListResponse = z225.object({
6344
+ var DTOExporterListResponse = z224.object({
6277
6345
  exporters: DTOExporter.array(),
6278
6346
  membership: DTOExporterMembership.array()
6279
6347
  });
6280
- var DTOExporterGitProviderEnum = z225.enum(["github", "gitlab", "bitbucket", "azure"]);
6281
- var DTOExporterCreateInput = z225.object({
6282
- url: z225.string(),
6348
+ var DTOExporterGitProviderEnum = z224.enum(["github", "gitlab", "bitbucket", "azure"]);
6349
+ var DTOExporterCreateInput = z224.object({
6350
+ url: z224.string(),
6283
6351
  provider: DTOExporterGitProviderEnum
6284
6352
  });
6285
- var DTOExporterUpdateInput = z225.object({
6286
- url: z225.string().optional()
6353
+ var DTOExporterUpdateInput = z224.object({
6354
+ url: z224.string().optional()
6287
6355
  });
6288
6356
 
6289
6357
  // src/api/dto/export/filter.ts
6290
6358
  var DTOExportJobsListFilter = ExportJobFindByFilter;
6291
6359
 
6292
6360
  // src/api/dto/export/job.ts
6293
- import { z as z226 } from "zod";
6294
- var DTOExportJobCreatedBy = z226.object({
6295
- userId: z226.string(),
6296
- userName: z226.string()
6361
+ import { z as z225 } from "zod";
6362
+ var DTOExportJobCreatedBy = z225.object({
6363
+ userId: z225.string(),
6364
+ userName: z225.string()
6297
6365
  });
6298
- var DTOExportJobDesignSystemPreview = z226.object({
6299
- id: z226.string(),
6366
+ var DTOExportJobDesignSystemPreview = z225.object({
6367
+ id: z225.string(),
6300
6368
  meta: ObjectMeta
6301
6369
  });
6302
- var DTOExportJobDesignSystemVersionPreview = z226.object({
6303
- id: z226.string(),
6370
+ var DTOExportJobDesignSystemVersionPreview = z225.object({
6371
+ id: z225.string(),
6304
6372
  meta: ObjectMeta,
6305
- version: z226.string(),
6306
- isReadonly: z226.boolean()
6373
+ version: z225.string(),
6374
+ isReadonly: z225.boolean()
6307
6375
  });
6308
- var DTOExportJobDestinations = z226.object({
6376
+ var DTOExportJobDestinations = z225.object({
6309
6377
  s3: ExporterDestinationS3.optional(),
6310
6378
  azure: ExporterDestinationAzure.optional(),
6311
6379
  bitbucket: ExporterDestinationBitbucket.optional(),
6312
6380
  github: ExporterDestinationGithub.optional(),
6313
6381
  gitlab: ExporterDestinationGitlab.optional(),
6314
6382
  documentation: ExporterDestinationDocs.optional(),
6315
- webhookUrl: z226.string().optional()
6383
+ webhookUrl: z225.string().optional()
6316
6384
  });
6317
6385
  var DTOExportJobResult = ExportJobResult.omit({
6318
6386
  sndocs: true
6319
6387
  }).extend({
6320
6388
  documentation: ExportJobDocsDestinationResult.optional()
6321
6389
  });
6322
- var DTOExportJob = z226.object({
6323
- id: z226.string(),
6324
- createdAt: z226.coerce.date(),
6325
- finishedAt: z226.coerce.date().optional(),
6326
- index: z226.number().optional(),
6390
+ var DTOExportJob = z225.object({
6391
+ id: z225.string(),
6392
+ createdAt: z225.coerce.date(),
6393
+ finishedAt: z225.coerce.date().optional(),
6394
+ index: z225.number().optional(),
6327
6395
  status: ExportJobStatus,
6328
- estimatedExecutionTime: z226.number().optional(),
6396
+ estimatedExecutionTime: z225.number().optional(),
6329
6397
  createdBy: DTOExportJobCreatedBy.optional(),
6330
6398
  designSystem: DTOExportJobDesignSystemPreview,
6331
6399
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
6332
6400
  destinations: DTOExportJobDestinations,
6333
- exporterId: z226.string(),
6334
- scheduleId: z226.string().optional(),
6401
+ exporterId: z225.string(),
6402
+ scheduleId: z225.string().optional(),
6335
6403
  result: DTOExportJobResult.optional(),
6336
- brandPersistentId: z226.string().optional(),
6337
- themePersistentId: z226.string().optional(),
6338
- themePersistentIds: z226.string().array().optional()
6404
+ brandPersistentId: z225.string().optional(),
6405
+ themePersistentId: z225.string().optional(),
6406
+ themePersistentIds: z225.string().array().optional(),
6407
+ exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional()
6339
6408
  });
6340
- var DTOExportJobResponse = z226.object({
6409
+ var DTOExportJobResponse = z225.object({
6341
6410
  job: DTOExportJob
6342
6411
  });
6343
6412
 
6344
6413
  // src/api/dto/export/pipeline.ts
6345
- import { z as z227 } from "zod";
6346
- var DTOPipelineListQuery = z227.object({
6347
- designSystemId: z227.string().optional(),
6348
- exporterId: z227.string().optional(),
6349
- latestJobsLimit: z227.coerce.number().optional()
6350
- });
6351
- var DTOPipeline = z227.object({
6352
- id: z227.string(),
6353
- name: z227.string(),
6414
+ import { z as z226 } from "zod";
6415
+ var DTOPipelineListQuery = z226.object({
6416
+ designSystemId: z226.string().optional(),
6417
+ exporterId: z226.string().optional(),
6418
+ latestJobsLimit: z226.coerce.number().optional()
6419
+ });
6420
+ var DTOPipeline = z226.object({
6421
+ id: z226.string(),
6422
+ name: z226.string(),
6354
6423
  eventType: PipelineEventType,
6355
- isEnabled: z227.boolean(),
6356
- workspaceId: z227.string(),
6357
- designSystemId: z227.string(),
6358
- exporterId: z227.string(),
6359
- brandPersistentId: z227.string().optional(),
6360
- themePersistentId: z227.string().optional(),
6361
- themePersistentIds: z227.string().array().optional(),
6424
+ isEnabled: z226.boolean(),
6425
+ workspaceId: z226.string(),
6426
+ designSystemId: z226.string(),
6427
+ exporterId: z226.string(),
6428
+ brandPersistentId: z226.string().optional(),
6429
+ themePersistentId: z226.string().optional(),
6430
+ themePersistentIds: z226.string().array().optional(),
6431
+ exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
6362
6432
  ...ExportDestinationsMap.shape,
6363
6433
  latestJobs: DTOExportJob.array()
6364
6434
  });
6365
- var DTOPipelineListResponse = z227.object({
6435
+ var DTOPipelineListResponse = z226.object({
6366
6436
  pipelines: DTOPipeline.array()
6367
6437
  });
6368
- var DTOPipelineResponse = z227.object({
6438
+ var DTOPipelineResponse = z226.object({
6369
6439
  pipeline: DTOPipeline
6370
6440
  });
6371
6441
 
6372
6442
  // src/api/dto/documentation/publish.ts
6373
6443
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6374
- var DTOPublishDocumentationRequest = z228.object({
6444
+ var DTOPublishDocumentationRequest = z227.object({
6375
6445
  environment: PublishedDocEnvironment,
6376
6446
  /**
6377
6447
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6379,10 +6449,25 @@ var DTOPublishDocumentationRequest = z228.object({
6379
6449
  */
6380
6450
  changes: DTOPublishDocumentationChanges.optional()
6381
6451
  });
6382
- var DTOPublishDocumentationResponse = z228.object({
6452
+ var DTOPublishDocumentationResponse = z227.object({
6383
6453
  job: DTOExportJob
6384
6454
  });
6385
6455
 
6456
+ // src/api/dto/elements/components/figma-component-group.ts
6457
+ import z228 from "zod";
6458
+ var DTOFigmaComponentGroup = z228.object({
6459
+ id: z228.string(),
6460
+ designSystemVersionId: z228.string(),
6461
+ persistentId: z228.string(),
6462
+ isRoot: z228.boolean(),
6463
+ brandId: z228.string(),
6464
+ meta: DTOObjectMeta,
6465
+ childrenIds: z228.string().array()
6466
+ });
6467
+ var DTOFigmaComponentGroupListResponse = z228.object({
6468
+ groups: DTOFigmaComponentGroup.array()
6469
+ });
6470
+
6386
6471
  // src/api/dto/elements/components/figma-component.ts
6387
6472
  import { z as z229 } from "zod";
6388
6473
  var DTOFigmaComponentProperty = FigmaComponentProperty;
@@ -6789,74 +6874,87 @@ var DTOFigmaNodeRenderActionInput = z240.object({
6789
6874
  input: DTOFigmaNodeRenderInput.array()
6790
6875
  });
6791
6876
 
6792
- // src/api/dto/elements/properties/property-definitions.ts
6877
+ // src/api/dto/elements/frame-node-structures/frame-node-structure.ts
6793
6878
  import { z as z241 } from "zod";
6794
- var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6795
- var DTOElementPropertyDefinitionOption = z241.object({
6879
+ var DTOFrameNodeStructure = z241.object({
6796
6880
  id: z241.string(),
6797
- name: z241.string(),
6881
+ persistentId: z241.string(),
6882
+ designSystemVersionId: z241.string(),
6883
+ origin: FigmaFileStructureOrigin,
6884
+ assetsInFile: FigmaFileStructureStatistics
6885
+ });
6886
+ var DTOFrameNodeStructureListResponse = z241.object({
6887
+ structures: DTOFrameNodeStructure.array()
6888
+ });
6889
+
6890
+ // src/api/dto/elements/properties/property-definitions.ts
6891
+ import { z as z242 } from "zod";
6892
+ var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6893
+ var DTOElementPropertyDefinitionOption = z242.object({
6894
+ id: z242.string(),
6895
+ name: z242.string(),
6798
6896
  backgroundColor: DTOColorTokenInlineData.optional()
6799
6897
  });
6800
- var DTOElementPropertyDefinition = z241.object({
6801
- id: z241.string(),
6802
- designSystemVersionId: z241.string(),
6898
+ var DTOElementPropertyDefinition = z242.object({
6899
+ id: z242.string(),
6900
+ designSystemVersionId: z242.string(),
6803
6901
  meta: DTOObjectMeta,
6804
- persistentId: z241.string(),
6902
+ persistentId: z242.string(),
6805
6903
  type: ElementPropertyTypeSchema,
6806
6904
  targetElementType: ElementPropertyTargetType,
6807
- codeName: z241.string().regex(CODE_NAME_REGEX2),
6808
- options: nullishToOptional(z241.array(DTOElementPropertyDefinitionOption)),
6905
+ codeName: z242.string().regex(CODE_NAME_REGEX2),
6906
+ options: nullishToOptional(z242.array(DTOElementPropertyDefinitionOption)),
6809
6907
  linkElementType: nullishToOptional(ElementPropertyLinkType),
6810
- isImmutable: z241.boolean(),
6908
+ isImmutable: z242.boolean(),
6811
6909
  immutablePropertyType: ElementPropertyImmutableType.optional()
6812
6910
  });
6813
- var DTOElementPropertyDefinitionListResponse = z241.object({
6814
- definitions: z241.array(DTOElementPropertyDefinition)
6911
+ var DTOElementPropertyDefinitionListResponse = z242.object({
6912
+ definitions: z242.array(DTOElementPropertyDefinition)
6815
6913
  });
6816
- var DTOElementPropertyDefinitionResponse = z241.object({
6914
+ var DTOElementPropertyDefinitionResponse = z242.object({
6817
6915
  definition: DTOElementPropertyDefinition
6818
6916
  });
6819
- var DTOElementPropertyDefinitionCreatePayload = z241.object({
6917
+ var DTOElementPropertyDefinitionCreatePayload = z242.object({
6820
6918
  meta: DTOObjectMeta,
6821
- persistentId: z241.string(),
6919
+ persistentId: z242.string(),
6822
6920
  type: ElementPropertyTypeSchema,
6823
6921
  targetElementType: ElementPropertyTargetType,
6824
- codeName: z241.string().regex(CODE_NAME_REGEX2),
6825
- options: nullishToOptional(z241.array(DTOElementPropertyDefinitionOption)),
6922
+ codeName: z242.string().regex(CODE_NAME_REGEX2),
6923
+ options: nullishToOptional(z242.array(DTOElementPropertyDefinitionOption)),
6826
6924
  linkElementType: nullishToOptional(ElementPropertyLinkType),
6827
- columnWidth: z241.number().max(1024).optional()
6925
+ columnWidth: z242.number().max(1024).optional()
6828
6926
  });
6829
- var DTOElementPropertyDefinitionUpdatePayload = z241.object({
6927
+ var DTOElementPropertyDefinitionUpdatePayload = z242.object({
6830
6928
  meta: DTOObjectMeta.optional(),
6831
- codeName: z241.string().regex(CODE_NAME_REGEX2).optional(),
6832
- options: z241.array(DTOElementPropertyDefinitionOption).optional()
6929
+ codeName: z242.string().regex(CODE_NAME_REGEX2).optional(),
6930
+ options: z242.array(DTOElementPropertyDefinitionOption).optional()
6833
6931
  });
6834
6932
 
6835
6933
  // src/api/dto/elements/properties/property-values.ts
6836
- import { z as z242 } from "zod";
6837
- var DTOElementPropertyValue = z242.object({
6838
- id: z242.string(),
6839
- designSystemVersionId: z242.string(),
6840
- definitionId: z242.string(),
6841
- targetElementId: z242.string(),
6842
- value: z242.union([z242.string(), z242.number(), z242.boolean()]).optional(),
6843
- valuePreview: z242.string().optional()
6844
- });
6845
- var DTOElementPropertyValueListResponse = z242.object({
6846
- values: z242.array(DTOElementPropertyValue)
6847
- });
6848
- var DTOElementPropertyValueResponse = z242.object({
6934
+ import { z as z243 } from "zod";
6935
+ var DTOElementPropertyValue = z243.object({
6936
+ id: z243.string(),
6937
+ designSystemVersionId: z243.string(),
6938
+ definitionId: z243.string(),
6939
+ targetElementId: z243.string(),
6940
+ value: z243.union([z243.string(), z243.number(), z243.boolean()]).optional(),
6941
+ valuePreview: z243.string().optional()
6942
+ });
6943
+ var DTOElementPropertyValueListResponse = z243.object({
6944
+ values: z243.array(DTOElementPropertyValue)
6945
+ });
6946
+ var DTOElementPropertyValueResponse = z243.object({
6849
6947
  value: DTOElementPropertyValue
6850
6948
  });
6851
- var DTOElementPropertyValueUpsertPaylod = z242.object({
6852
- definitionId: z242.string(),
6853
- targetElementId: z242.string(),
6854
- value: z242.string().or(z242.number()).or(z242.boolean())
6949
+ var DTOElementPropertyValueUpsertPaylod = z243.object({
6950
+ definitionId: z243.string(),
6951
+ targetElementId: z243.string(),
6952
+ value: z243.string().or(z243.number()).or(z243.boolean())
6855
6953
  });
6856
6954
 
6857
6955
  // src/api/dto/elements/elements-action-v2.ts
6858
- import { z as z243 } from "zod";
6859
- var DTOElementActionOutput = z243.discriminatedUnion("type", [
6956
+ import { z as z244 } from "zod";
6957
+ var DTOElementActionOutput = z244.discriminatedUnion("type", [
6860
6958
  // Documentation pages
6861
6959
  DTODocumentationPageCreateActionOutputV2,
6862
6960
  DTODocumentationPageUpdateActionOutputV2,
@@ -6879,7 +6977,7 @@ var DTOElementActionOutput = z243.discriminatedUnion("type", [
6879
6977
  // Approvals
6880
6978
  DTODocumentationPageApprovalStateChangeActionOutput
6881
6979
  ]);
6882
- var DTOElementActionInput = z243.discriminatedUnion("type", [
6980
+ var DTOElementActionInput = z244.discriminatedUnion("type", [
6883
6981
  // Documentation pages
6884
6982
  DTODocumentationPageCreateActionInputV2,
6885
6983
  DTODocumentationPageUpdateActionInputV2,
@@ -6904,94 +7002,163 @@ var DTOElementActionInput = z243.discriminatedUnion("type", [
6904
7002
  ]);
6905
7003
 
6906
7004
  // src/api/dto/elements/get-elements-v2.ts
6907
- import { z as z244 } from "zod";
6908
- var DTOElementsGetTypeFilter = z244.enum(["FigmaNode"]);
6909
- var DTOElementsGetQuerySchema = z244.object({
6910
- types: z244.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
7005
+ import { z as z245 } from "zod";
7006
+ var DTOElementsGetTypeFilter = z245.enum(["FigmaNode"]);
7007
+ var DTOElementsGetQuerySchema = z245.object({
7008
+ types: z245.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6911
7009
  });
6912
- var DTOElementsGetOutput = z244.object({
6913
- figmaNodes: z244.array(DTOFigmaNode).optional()
7010
+ var DTOElementsGetOutput = z245.object({
7011
+ figmaNodes: z245.array(DTOFigmaNode).optional()
6914
7012
  });
6915
7013
 
6916
7014
  // src/api/dto/figma-components/assets/download.ts
6917
- import { z as z245 } from "zod";
6918
- var DTOAssetRenderConfiguration = z245.object({
6919
- prefix: z245.string().optional(),
6920
- suffix: z245.string().optional(),
6921
- scale: z245.enum(["x1", "x2", "x3", "x4"]),
6922
- format: z245.enum(["png", "pdf", "svg"])
6923
- });
6924
- var DTORenderedAssetFile = z245.object({
6925
- assetId: z245.string(),
6926
- fileName: z245.string(),
6927
- sourceUrl: z245.string(),
7015
+ import { z as z246 } from "zod";
7016
+ var DTOAssetRenderConfiguration = z246.object({
7017
+ prefix: z246.string().optional(),
7018
+ suffix: z246.string().optional(),
7019
+ scale: z246.enum(["x1", "x2", "x3", "x4"]),
7020
+ format: z246.enum(["png", "pdf", "svg"])
7021
+ });
7022
+ var DTORenderedAssetFile = z246.object({
7023
+ assetId: z246.string(),
7024
+ fileName: z246.string(),
7025
+ sourceUrl: z246.string(),
6928
7026
  settings: DTOAssetRenderConfiguration,
6929
- originalName: z245.string()
7027
+ originalName: z246.string()
6930
7028
  });
6931
- var DTODownloadAssetsRequest = z245.object({
6932
- persistentIds: z245.array(z245.string().uuid()).optional(),
7029
+ var DTODownloadAssetsRequest = z246.object({
7030
+ persistentIds: z246.array(z246.string().uuid()).optional(),
6933
7031
  settings: DTOAssetRenderConfiguration.array()
6934
7032
  });
6935
- var DTODownloadAssetsResponse = z245.object({
7033
+ var DTODownloadAssetsResponse = z246.object({
6936
7034
  items: DTORenderedAssetFile.array()
6937
7035
  });
6938
7036
 
6939
7037
  // src/api/dto/liveblocks/auth-response.ts
6940
- import { z as z246 } from "zod";
6941
- var DTOLiveblocksAuthResponse = z246.object({
6942
- token: z246.string()
7038
+ import { z as z247 } from "zod";
7039
+ var DTOLiveblocksAuthResponse = z247.object({
7040
+ token: z247.string()
6943
7041
  });
6944
7042
 
6945
7043
  // src/api/dto/themes/override.ts
6946
- import { z as z247 } from "zod";
7044
+ import { z as z248 } from "zod";
6947
7045
  var DTOThemeOverride = DesignTokenTypedData.and(
6948
- z247.object({
6949
- tokenPersistentId: z247.string(),
7046
+ z248.object({
7047
+ tokenPersistentId: z248.string(),
6950
7048
  origin: ThemeOverrideOrigin.optional()
6951
7049
  })
6952
7050
  );
6953
7051
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
6954
- z247.object({
6955
- tokenPersistentId: z247.string()
7052
+ z248.object({
7053
+ tokenPersistentId: z248.string()
6956
7054
  })
6957
7055
  );
6958
7056
 
6959
7057
  // src/api/dto/themes/theme.ts
6960
- import { z as z248 } from "zod";
6961
- var DTOTheme = z248.object({
6962
- id: z248.string(),
6963
- persistentId: z248.string(),
6964
- designSystemVersionId: z248.string(),
6965
- brandId: z248.string(),
7058
+ import { z as z249 } from "zod";
7059
+ var DTOTheme = z249.object({
7060
+ id: z249.string(),
7061
+ persistentId: z249.string(),
7062
+ designSystemVersionId: z249.string(),
7063
+ brandId: z249.string(),
6966
7064
  meta: ObjectMeta,
6967
- codeName: z248.string(),
7065
+ codeName: z249.string(),
6968
7066
  overrides: DTOThemeOverride.array()
6969
7067
  });
6970
- var DTOThemeResponse = z248.object({
7068
+ var DTOThemeResponse = z249.object({
6971
7069
  theme: DTOTheme
6972
7070
  });
6973
- var DTOThemeListResponse = z248.object({
7071
+ var DTOThemeListResponse = z249.object({
6974
7072
  themes: DTOTheme.array()
6975
7073
  });
6976
- var DTOThemeCreatePayload = z248.object({
7074
+ var DTOThemeCreatePayload = z249.object({
6977
7075
  meta: ObjectMeta,
6978
- persistentId: z248.string(),
6979
- brandId: z248.string(),
6980
- codeName: z248.string(),
7076
+ persistentId: z249.string(),
7077
+ brandId: z249.string(),
7078
+ codeName: z249.string(),
6981
7079
  overrides: DTOThemeOverride.array()
6982
7080
  });
6983
7081
 
7082
+ // src/utils/hash.ts
7083
+ function hash(input) {
7084
+ return farmhash(input).toString(16);
7085
+ }
7086
+ function farmhash(input) {
7087
+ const seed = 2654435769;
7088
+ let hash2 = seed;
7089
+ for (let i = 0; i < input.length; i++) {
7090
+ const charCode = input.charCodeAt(i);
7091
+ hash2 ^= charCode;
7092
+ hash2 = Math.imul(hash2, 1540483477);
7093
+ hash2 ^= hash2 >>> 15;
7094
+ }
7095
+ hash2 = Math.imul(hash2, 1540483477);
7096
+ hash2 ^= hash2 >>> 13;
7097
+ hash2 = Math.imul(hash2, 1540483477);
7098
+ hash2 ^= hash2 >>> 15;
7099
+ return hash2 >>> 0;
7100
+ }
7101
+ function prepareObject(obj) {
7102
+ if (obj === null || typeof obj !== "object") {
7103
+ return obj;
7104
+ }
7105
+ if (Array.isArray(obj)) {
7106
+ return obj.map(prepareObject);
7107
+ }
7108
+ const sortedObj = {};
7109
+ for (const key of Object.keys(obj).sort()) {
7110
+ if (obj[key] === null || obj[key] === void 0) {
7111
+ continue;
7112
+ }
7113
+ sortedObj[key] = prepareObject(obj[key]);
7114
+ }
7115
+ return sortedObj;
7116
+ }
7117
+ function generateHash(input, debug = false) {
7118
+ if (typeof input === "object") {
7119
+ const sanitized = JSON.stringify(prepareObject(input));
7120
+ if (debug) {
7121
+ console.log("Hashing sanitized string:");
7122
+ console.log(sanitized);
7123
+ }
7124
+ return hash(sanitized);
7125
+ } else {
7126
+ try {
7127
+ const obj = JSON.parse(input);
7128
+ const sanitized = JSON.stringify(prepareObject(obj));
7129
+ if (debug) {
7130
+ console.log("Hashing sanitized string:");
7131
+ console.log(sanitized);
7132
+ }
7133
+ return hash(sanitized);
7134
+ } catch {
7135
+ return hash(input);
7136
+ }
7137
+ }
7138
+ }
7139
+
7140
+ // src/utils/query.ts
7141
+ function serializeQuery(query) {
7142
+ const queryWithStrings = Object.fromEntries(
7143
+ Object.entries(query).filter((e) => !!e[1]).map(([k, v]) => {
7144
+ if (Array.isArray(v)) {
7145
+ return [k, v.join(", ")];
7146
+ } else {
7147
+ return [k, v.toString()];
7148
+ }
7149
+ })
7150
+ );
7151
+ return new URLSearchParams(queryWithStrings);
7152
+ }
7153
+
6984
7154
  // src/api/endpoints/codegen/exporters.ts
6985
7155
  var ExportersEndpoint = class {
6986
7156
  constructor(requestExecutor) {
6987
7157
  this.requestExecutor = requestExecutor;
6988
7158
  }
6989
7159
  list(workspaceId, query) {
6990
- const queryWithStrings = Object.fromEntries(
6991
- Object.entries(query).filter((e) => !!e[1]).map(([k, v]) => [k, v.toString()])
6992
- );
6993
7160
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterListResponse, {
6994
- query: new URLSearchParams(queryWithStrings)
7161
+ query: serializeQuery(query)
6995
7162
  });
6996
7163
  }
6997
7164
  };
@@ -7039,6 +7206,7 @@ var CodegenEndpoint = class {
7039
7206
  };
7040
7207
 
7041
7208
  // src/api/endpoints/design-system/versions/brands.ts
7209
+ import { z as z250 } from "zod";
7042
7210
  var BrandsEndpoint = class {
7043
7211
  constructor(requestExecutor) {
7044
7212
  this.requestExecutor = requestExecutor;
@@ -7065,18 +7233,15 @@ var BrandsEndpoint = class {
7065
7233
  }
7066
7234
  );
7067
7235
  }
7068
- };
7069
-
7070
- // src/api/endpoints/design-system/versions/components.ts
7071
- import { z as z249 } from "zod";
7072
- var DesignSystemComponentEndpoint = class {
7073
- constructor(requestExecutor) {
7074
- this.requestExecutor = requestExecutor;
7236
+ update(dsId, vId, brandId, body) {
7237
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, DTOBrandGetResponse, {
7238
+ method: "PUT",
7239
+ body
7240
+ });
7075
7241
  }
7076
- async create(dsId, vId, body) {
7077
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z249.any(), {
7078
- body,
7079
- method: "POST"
7242
+ delete(dsId, vId, brandId) {
7243
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z250.any(), {
7244
+ method: "DELETE"
7080
7245
  });
7081
7246
  }
7082
7247
  };
@@ -7103,87 +7268,114 @@ var DocumentationEndpoint = class {
7103
7268
  }
7104
7269
  };
7105
7270
 
7106
- // src/api/endpoints/design-system/versions/elements-action.ts
7107
- var ElementsActionEndpoint = class {
7271
+ // src/api/endpoints/design-system/versions/ds-components.ts
7272
+ var DesignSystemComponentEndpoint = class {
7108
7273
  constructor(requestExecutor) {
7109
7274
  this.requestExecutor = requestExecutor;
7110
7275
  }
7111
- async createDocPage(dsId, vId, input) {
7276
+ async list(dsId, vId) {
7112
7277
  return this.requestExecutor.json(
7113
- `/design-systems/${dsId}/versions/${vId}/elements-action`,
7114
- DTOElementActionOutput,
7115
- {
7116
- body: {
7117
- type: "DocumentationPageCreate",
7118
- input
7119
- },
7120
- method: "POST"
7121
- }
7278
+ `/design-systems/${dsId}/versions/${vId}/design-system-components`,
7279
+ DTODesignSystemComponentListResponse
7122
7280
  );
7123
7281
  }
7124
- async createDocGroup(dsId, vId, input) {
7282
+ async create(dsId, vId, body) {
7125
7283
  return this.requestExecutor.json(
7126
- `/design-systems/${dsId}/versions/${vId}/elements-action`,
7127
- DTOElementActionOutput,
7284
+ `/design-systems/${dsId}/versions/${vId}/design-system-components`,
7285
+ DTODesignSystemComponentResponse,
7128
7286
  {
7129
- body: {
7130
- type: "DocumentationGroupCreate",
7131
- input
7132
- },
7287
+ body,
7133
7288
  method: "POST"
7134
7289
  }
7135
7290
  );
7136
7291
  }
7292
+ };
7293
+
7294
+ // src/api/endpoints/design-system/versions/elements-action.ts
7295
+ var ElementsActionEndpoint = class {
7296
+ constructor(requestExecutor) {
7297
+ this.requestExecutor = requestExecutor;
7298
+ }
7299
+ async createDocPage(dsId, vId, input) {
7300
+ return this.action(dsId, vId, { type: "DocumentationPageCreate", input });
7301
+ }
7302
+ async createDocGroup(dsId, vId, input) {
7303
+ return this.action(dsId, vId, { type: "DocumentationGroupCreate", input });
7304
+ }
7137
7305
  async moveDocGroup(dsId, vId, input) {
7306
+ return this.action(dsId, vId, { type: "DocumentationGroupMove", input });
7307
+ }
7308
+ async updateDocPage(dsId, vId, input) {
7309
+ return this.action(dsId, vId, { type: "DocumentationPageUpdate", input });
7310
+ }
7311
+ async updateDocGroup(dsId, vId, input) {
7312
+ return this.action(dsId, vId, { type: "DocumentationGroupUpdate", input });
7313
+ }
7314
+ async createDocTab(dsId, vId, input) {
7315
+ return this.action(dsId, vId, { type: "DocumentationTabCreate", input });
7316
+ }
7317
+ async renderNodes(dsId, vId, input) {
7318
+ return this.action(dsId, vId, { type: "FigmaNodeRender", input });
7319
+ }
7320
+ async action(dsId, vId, input) {
7138
7321
  return this.requestExecutor.json(
7139
7322
  `/design-systems/${dsId}/versions/${vId}/elements-action`,
7140
7323
  DTOElementActionOutput,
7141
7324
  {
7142
- body: {
7143
- type: "DocumentationGroupMove",
7144
- input
7145
- },
7325
+ body: input,
7146
7326
  method: "POST"
7147
7327
  }
7148
7328
  );
7149
7329
  }
7150
- async updateDocPage(dsId, vId, input) {
7330
+ };
7331
+
7332
+ // src/api/endpoints/design-system/versions/elements.ts
7333
+ var ElementsEndpoint = class {
7334
+ constructor(requestExecutor) {
7335
+ this.requestExecutor = requestExecutor;
7336
+ }
7337
+ getElements(dsId, vId, query) {
7338
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
7339
+ query: serializeQuery(query)
7340
+ });
7341
+ }
7342
+ };
7343
+
7344
+ // src/api/endpoints/design-system/versions/figma-component-groups.ts
7345
+ var FigmaComponentGroupsEndpoint = class {
7346
+ constructor(requestExecutor) {
7347
+ this.requestExecutor = requestExecutor;
7348
+ }
7349
+ async list(dsId, vId) {
7151
7350
  return this.requestExecutor.json(
7152
- `/design-systems/${dsId}/versions/${vId}/elements-action`,
7153
- DTOElementActionOutput,
7154
- {
7155
- body: {
7156
- type: "DocumentationPageUpdate",
7157
- input
7158
- },
7159
- method: "POST"
7160
- }
7351
+ `/design-systems/${dsId}/versions/${vId}/component-groups`,
7352
+ DTOFigmaComponentGroupListResponse
7161
7353
  );
7162
7354
  }
7163
- async updateDocGroup(dsId, vId, input) {
7355
+ };
7356
+
7357
+ // src/api/endpoints/design-system/versions/figma-components.ts
7358
+ var FigmaComponentsEndpoint = class {
7359
+ constructor(requestExecutor) {
7360
+ this.requestExecutor = requestExecutor;
7361
+ }
7362
+ async list(dsId, vId) {
7164
7363
  return this.requestExecutor.json(
7165
- `/design-systems/${dsId}/versions/${vId}/elements-action`,
7166
- DTOElementActionOutput,
7167
- {
7168
- body: {
7169
- type: "DocumentationGroupUpdate",
7170
- input
7171
- },
7172
- method: "POST"
7173
- }
7364
+ `/design-systems/${dsId}/versions/${vId}/components`,
7365
+ DTOFigmaComponentListResponse
7174
7366
  );
7175
7367
  }
7176
- async createDocTab(dsId, vId, input) {
7368
+ };
7369
+
7370
+ // src/api/endpoints/design-system/versions/figma-frame-structures.ts
7371
+ var FigmaFrameStructuresEndpoint = class {
7372
+ constructor(requestExecutor) {
7373
+ this.requestExecutor = requestExecutor;
7374
+ }
7375
+ list(dsId, vId) {
7177
7376
  return this.requestExecutor.json(
7178
- `/design-systems/${dsId}/versions/${vId}/elements-action`,
7179
- DTOElementActionOutput,
7180
- {
7181
- body: {
7182
- type: "DocumentationTabCreate",
7183
- input
7184
- },
7185
- method: "POST"
7186
- }
7377
+ `/design-systems/${dsId}/versions/${vId}/figma-frames/node-structures`,
7378
+ DTOFrameNodeStructureListResponse
7187
7379
  );
7188
7380
  }
7189
7381
  };
@@ -7202,7 +7394,7 @@ var ImportJobsEndpoint = class {
7202
7394
  };
7203
7395
 
7204
7396
  // src/api/endpoints/design-system/versions/overrides.ts
7205
- import { z as z250 } from "zod";
7397
+ import { z as z251 } from "zod";
7206
7398
  var OverridesEndpoint = class {
7207
7399
  constructor(requestExecutor) {
7208
7400
  this.requestExecutor = requestExecutor;
@@ -7210,7 +7402,7 @@ var OverridesEndpoint = class {
7210
7402
  create(dsId, versionId, themeId, body) {
7211
7403
  return this.requestExecutor.json(
7212
7404
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
7213
- z250.any(),
7405
+ z251.any(),
7214
7406
  {
7215
7407
  method: "POST",
7216
7408
  body
@@ -7220,7 +7412,7 @@ var OverridesEndpoint = class {
7220
7412
  };
7221
7413
 
7222
7414
  // src/api/endpoints/design-system/versions/property-definitions.ts
7223
- import { z as z251 } from "zod";
7415
+ import { z as z252 } from "zod";
7224
7416
  var ElementPropertyDefinitionsEndpoint = class {
7225
7417
  constructor(requestExecutor) {
7226
7418
  this.requestExecutor = requestExecutor;
@@ -7248,7 +7440,7 @@ var ElementPropertyDefinitionsEndpoint = class {
7248
7440
  delete(designSystemId, versionId, defId) {
7249
7441
  return this.requestExecutor.json(
7250
7442
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
7251
- z251.any(),
7443
+ z252.any(),
7252
7444
  { method: "DELETE" }
7253
7445
  );
7254
7446
  }
@@ -7287,7 +7479,7 @@ var VersionStatsEndpoint = class {
7287
7479
  };
7288
7480
 
7289
7481
  // src/api/endpoints/design-system/versions/themes.ts
7290
- import { z as z252 } from "zod";
7482
+ import { z as z253 } from "zod";
7291
7483
  var ThemesEndpoint = class {
7292
7484
  constructor(requestExecutor) {
7293
7485
  this.requestExecutor = requestExecutor;
@@ -7310,7 +7502,7 @@ var ThemesEndpoint = class {
7310
7502
  });
7311
7503
  }
7312
7504
  delete(dsId, versionId, themeId) {
7313
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z252.any(), {
7505
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z253.any(), {
7314
7506
  method: "DELETE"
7315
7507
  });
7316
7508
  }
@@ -7387,10 +7579,14 @@ var DesignSystemVersionsEndpoint = class {
7387
7579
  __publicField(this, "importJobs");
7388
7580
  __publicField(this, "tokens");
7389
7581
  __publicField(this, "tokenGroups");
7582
+ __publicField(this, "figmaComponents");
7583
+ __publicField(this, "figmaComponentGroups");
7584
+ __publicField(this, "figmaFrameStructures");
7390
7585
  __publicField(this, "stats");
7391
7586
  __publicField(this, "elementPropertyDefinitions");
7392
7587
  __publicField(this, "elementPropertyValues");
7393
7588
  __publicField(this, "elementsAction");
7589
+ __publicField(this, "elements");
7394
7590
  __publicField(this, "designSystemComponents");
7395
7591
  __publicField(this, "documentation");
7396
7592
  this.themes = new ThemesEndpoint(requestExecutor);
@@ -7399,10 +7595,14 @@ var DesignSystemVersionsEndpoint = class {
7399
7595
  this.importJobs = new ImportJobsEndpoint(requestExecutor);
7400
7596
  this.tokens = new TokensEndpoint(requestExecutor);
7401
7597
  this.tokenGroups = new TokenGroupsEndpoint(requestExecutor);
7598
+ this.figmaComponents = new FigmaComponentsEndpoint(requestExecutor);
7599
+ this.figmaComponentGroups = new FigmaComponentGroupsEndpoint(requestExecutor);
7600
+ this.figmaFrameStructures = new FigmaFrameStructuresEndpoint(requestExecutor);
7402
7601
  this.stats = new VersionStatsEndpoint(requestExecutor);
7403
7602
  this.elementPropertyDefinitions = new ElementPropertyDefinitionsEndpoint(requestExecutor);
7404
7603
  this.elementPropertyValues = new ElementPropertyValuesEndpoint(requestExecutor);
7405
7604
  this.elementsAction = new ElementsActionEndpoint(requestExecutor);
7605
+ this.elements = new ElementsEndpoint(requestExecutor);
7406
7606
  this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
7407
7607
  this.documentation = new DocumentationEndpoint(requestExecutor);
7408
7608
  }
@@ -7449,7 +7649,7 @@ var DesignSystemContactsEndpoint = class {
7449
7649
  };
7450
7650
 
7451
7651
  // src/api/endpoints/design-system/design-systems.ts
7452
- import { z as z254 } from "zod";
7652
+ import { z as z255 } from "zod";
7453
7653
 
7454
7654
  // src/api/endpoints/design-system/members.ts
7455
7655
  var DesignSystemMembersEndpoint = class {
@@ -7470,7 +7670,7 @@ var DesignSystemMembersEndpoint = class {
7470
7670
  };
7471
7671
 
7472
7672
  // src/api/endpoints/design-system/sources.ts
7473
- import { z as z253 } from "zod";
7673
+ import { z as z254 } from "zod";
7474
7674
  var DesignSystemSourcesEndpoint = class {
7475
7675
  constructor(requestExecutor) {
7476
7676
  this.requestExecutor = requestExecutor;
@@ -7485,7 +7685,7 @@ var DesignSystemSourcesEndpoint = class {
7485
7685
  return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
7486
7686
  }
7487
7687
  delete(dsId, sourceId) {
7488
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z253.any(), { method: "DELETE" });
7688
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z254.any(), { method: "DELETE" });
7489
7689
  }
7490
7690
  figmaImport(dsId, payload) {
7491
7691
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
@@ -7520,7 +7720,7 @@ var DesignSystemsEndpoint = class {
7520
7720
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
7521
7721
  }
7522
7722
  delete(dsId) {
7523
- return this.requestExecutor.json(`/design-systems/${dsId}`, z254.any(), { method: "DELETE" });
7723
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z255.any(), { method: "DELETE" });
7524
7724
  }
7525
7725
  update(dsId, body) {
7526
7726
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -7564,7 +7764,7 @@ var WorkspaceInvitationsEndpoint = class {
7564
7764
  };
7565
7765
 
7566
7766
  // src/api/endpoints/workspaces/workspace-members.ts
7567
- import { z as z255 } from "zod";
7767
+ import { z as z256 } from "zod";
7568
7768
  var WorkspaceMembersEndpoint = class {
7569
7769
  constructor(requestExecutor) {
7570
7770
  this.requestExecutor = requestExecutor;
@@ -7581,7 +7781,7 @@ var WorkspaceMembersEndpoint = class {
7581
7781
  });
7582
7782
  }
7583
7783
  invite(workspaceId, body) {
7584
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z255.any(), { method: "POST", body });
7784
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z256.any(), { method: "POST", body });
7585
7785
  }
7586
7786
  delete(workspaceId, userId) {
7587
7787
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -7591,7 +7791,7 @@ var WorkspaceMembersEndpoint = class {
7591
7791
  };
7592
7792
 
7593
7793
  // src/api/endpoints/workspaces/workspaces.ts
7594
- import { z as z256 } from "zod";
7794
+ import { z as z257 } from "zod";
7595
7795
  var WorkspacesEndpoint = class {
7596
7796
  constructor(requestExecutor) {
7597
7797
  this.requestExecutor = requestExecutor;
@@ -7614,10 +7814,10 @@ var WorkspacesEndpoint = class {
7614
7814
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
7615
7815
  }
7616
7816
  delete(workspaceId) {
7617
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z256.any(), { method: "DELETE" });
7817
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z257.any(), { method: "DELETE" });
7618
7818
  }
7619
7819
  subscription(workspaceId) {
7620
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z256.any(), { method: "GET" });
7820
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z257.any(), { method: "GET" });
7621
7821
  }
7622
7822
  transferOwnership(workspaceId, body) {
7623
7823
  return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
@@ -7704,9 +7904,9 @@ ${bodyText}`,
7704
7904
 
7705
7905
  // src/api/transport/request-executor.ts
7706
7906
  import fetch from "node-fetch";
7707
- import { z as z257 } from "zod";
7708
- var ResponseWrapper = z257.object({
7709
- result: z257.record(z257.any())
7907
+ import { z as z258 } from "zod";
7908
+ var ResponseWrapper = z258.object({
7909
+ result: z258.record(z258.any())
7710
7910
  });
7711
7911
  var RequestExecutor = class {
7712
7912
  constructor(testServerConfig) {
@@ -7747,6 +7947,8 @@ var RequestExecutor = class {
7747
7947
  }
7748
7948
  const responseParseResult = schema.safeParse(wrapperParseResult.data.result);
7749
7949
  if (!responseParseResult.success) {
7950
+ console.error(`Response was:`);
7951
+ console.error(wrapperParseResult.data.result);
7750
7952
  throw RequestExecutorError.responseParsingError(endpoint, responseParseResult.error);
7751
7953
  }
7752
7954
  return responseParseResult.data;
@@ -7778,66 +7980,8 @@ var SupernovaApiClient = class {
7778
7980
  }
7779
7981
  };
7780
7982
 
7781
- // src/utils/hash.ts
7782
- function hash(input) {
7783
- return farmhash(input).toString(16);
7784
- }
7785
- function farmhash(input) {
7786
- const seed = 2654435769;
7787
- let hash2 = seed;
7788
- for (let i = 0; i < input.length; i++) {
7789
- const charCode = input.charCodeAt(i);
7790
- hash2 ^= charCode;
7791
- hash2 = Math.imul(hash2, 1540483477);
7792
- hash2 ^= hash2 >>> 15;
7793
- }
7794
- hash2 = Math.imul(hash2, 1540483477);
7795
- hash2 ^= hash2 >>> 13;
7796
- hash2 = Math.imul(hash2, 1540483477);
7797
- hash2 ^= hash2 >>> 15;
7798
- return hash2 >>> 0;
7799
- }
7800
- function prepareObject(obj) {
7801
- if (obj === null || typeof obj !== "object") {
7802
- return obj;
7803
- }
7804
- if (Array.isArray(obj)) {
7805
- return obj.map(prepareObject);
7806
- }
7807
- const sortedObj = {};
7808
- for (const key of Object.keys(obj).sort()) {
7809
- if (obj[key] === null || obj[key] === void 0) {
7810
- continue;
7811
- }
7812
- sortedObj[key] = prepareObject(obj[key]);
7813
- }
7814
- return sortedObj;
7815
- }
7816
- function generateHash(input, debug = false) {
7817
- if (typeof input === "object") {
7818
- const sanitized = JSON.stringify(prepareObject(input));
7819
- if (debug) {
7820
- console.log("Hashing sanitized string:");
7821
- console.log(sanitized);
7822
- }
7823
- return hash(sanitized);
7824
- } else {
7825
- try {
7826
- const obj = JSON.parse(input);
7827
- const sanitized = JSON.stringify(prepareObject(obj));
7828
- if (debug) {
7829
- console.log("Hashing sanitized string:");
7830
- console.log(sanitized);
7831
- }
7832
- return hash(sanitized);
7833
- } catch {
7834
- return hash(input);
7835
- }
7836
- }
7837
- }
7838
-
7839
7983
  // src/yjs/design-system-content/documentation-hierarchy.ts
7840
- import { z as z258 } from "zod";
7984
+ import { z as z259 } from "zod";
7841
7985
 
7842
7986
  // src/yjs/version-room/base.ts
7843
7987
  var VersionRoomBaseYDoc = class {
@@ -8367,24 +8511,24 @@ var FrontendVersionRoomYDoc = class {
8367
8511
  };
8368
8512
 
8369
8513
  // src/yjs/design-system-content/documentation-hierarchy.ts
8370
- var DocumentationHierarchySettings = z258.object({
8371
- routingVersion: z258.string(),
8372
- isDraftFeatureAdopted: z258.boolean(),
8373
- isApprovalFeatureEnabled: z258.boolean(),
8374
- approvalRequiredForPublishing: z258.boolean()
8514
+ var DocumentationHierarchySettings = z259.object({
8515
+ routingVersion: z259.string(),
8516
+ isDraftFeatureAdopted: z259.boolean(),
8517
+ isApprovalFeatureEnabled: z259.boolean(),
8518
+ approvalRequiredForPublishing: z259.boolean()
8375
8519
  });
8376
8520
  function yjsToDocumentationHierarchy(doc) {
8377
8521
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
8378
8522
  }
8379
8523
 
8380
8524
  // src/yjs/design-system-content/item-configuration.ts
8381
- import { z as z259 } from "zod";
8382
- var DTODocumentationPageRoomHeaderData = z259.object({
8383
- title: z259.string(),
8525
+ import { z as z260 } from "zod";
8526
+ var DTODocumentationPageRoomHeaderData = z260.object({
8527
+ title: z260.string(),
8384
8528
  configuration: DTODocumentationItemConfigurationV2
8385
8529
  });
8386
- var DTODocumentationPageRoomHeaderDataUpdate = z259.object({
8387
- title: z259.string().optional(),
8530
+ var DTODocumentationPageRoomHeaderDataUpdate = z260.object({
8531
+ title: z260.string().optional(),
8388
8532
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
8389
8533
  });
8390
8534
  function itemConfigurationToYjs(yDoc, item) {
@@ -8435,7 +8579,7 @@ function yjsToItemConfiguration(yDoc) {
8435
8579
  header: rawHeader
8436
8580
  };
8437
8581
  return {
8438
- title: z259.string().parse(title),
8582
+ title: z260.string().parse(title),
8439
8583
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
8440
8584
  };
8441
8585
  }
@@ -8445,9 +8589,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
8445
8589
  var PageSectionEditorModel = PageSectionEditorModelV2;
8446
8590
 
8447
8591
  // src/yjs/docs-editor/model/page.ts
8448
- import { z as z260 } from "zod";
8449
- var DocumentationPageEditorModel = z260.object({
8450
- blocks: z260.array(DocumentationPageContentItem)
8592
+ import { z as z261 } from "zod";
8593
+ var DocumentationPageEditorModel = z261.object({
8594
+ blocks: z261.array(DocumentationPageContentItem)
8451
8595
  });
8452
8596
 
8453
8597
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -11968,7 +12112,7 @@ var blocks = [
11968
12112
 
11969
12113
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
11970
12114
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
11971
- import { z as z261 } from "zod";
12115
+ import { z as z262 } from "zod";
11972
12116
  function yDocToPage(yDoc, definitions) {
11973
12117
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
11974
12118
  }
@@ -12048,7 +12192,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
12048
12192
  return null;
12049
12193
  return {
12050
12194
  id,
12051
- title: getProsemirrorAttribute(prosemirrorNode, "title", z261.string()) ?? "",
12195
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z262.string()) ?? "",
12052
12196
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
12053
12197
  };
12054
12198
  }
@@ -12083,7 +12227,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
12083
12227
  });
12084
12228
  }
12085
12229
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
12086
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z261.string());
12230
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z262.string());
12087
12231
  if (!definitionId) {
12088
12232
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
12089
12233
  return [];
@@ -12125,7 +12269,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
12125
12269
  if (!id)
12126
12270
  return null;
12127
12271
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
12128
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z261.string().optional()));
12272
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z262.string().optional()));
12129
12273
  return {
12130
12274
  id,
12131
12275
  type: "Block",
@@ -12253,10 +12397,10 @@ function parseRichTextAttribute(mark) {
12253
12397
  return null;
12254
12398
  }
12255
12399
  function parseProsemirrorLink(mark) {
12256
- const href = getProsemirrorAttribute(mark, "href", z261.string().optional());
12400
+ const href = getProsemirrorAttribute(mark, "href", z262.string().optional());
12257
12401
  if (!href)
12258
12402
  return null;
12259
- const target = getProsemirrorAttribute(mark, "target", z261.string().optional());
12403
+ const target = getProsemirrorAttribute(mark, "target", z262.string().optional());
12260
12404
  const openInNewTab = target === "_blank";
12261
12405
  if (href.startsWith("@")) {
12262
12406
  return {
@@ -12275,10 +12419,10 @@ function parseProsemirrorLink(mark) {
12275
12419
  }
12276
12420
  }
12277
12421
  function parseProsemirrorCommentHighlight(mark) {
12278
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z261.string().optional());
12422
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z262.string().optional());
12279
12423
  if (!highlightId)
12280
12424
  return null;
12281
- const isResolved = getProsemirrorAttribute(mark, "resolved", z261.boolean().optional()) ?? false;
12425
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z262.boolean().optional()) ?? false;
12282
12426
  return {
12283
12427
  type: "Comment",
12284
12428
  commentHighlightId: highlightId,
@@ -12290,7 +12434,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
12290
12434
  if (!id)
12291
12435
  return null;
12292
12436
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
12293
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z261.boolean().optional()) !== false;
12437
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z262.boolean().optional()) !== false;
12294
12438
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
12295
12439
  if (!tableChild) {
12296
12440
  return emptyTable(id, variantId, 0);
@@ -12337,9 +12481,9 @@ function parseAsTableCell(prosemirrorNode) {
12337
12481
  const id = getProsemirrorBlockId(prosemirrorNode);
12338
12482
  if (!id)
12339
12483
  return null;
12340
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z261.string().optional());
12484
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z262.string().optional());
12341
12485
  let columnWidth;
12342
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z261.array(z261.number()).nullish());
12486
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z262.array(z262.number()).nullish());
12343
12487
  if (columnWidthArray) {
12344
12488
  columnWidth = roundDimension(columnWidthArray[0]);
12345
12489
  }
@@ -12377,7 +12521,7 @@ function parseAsTableNode(prosemirrorNode) {
12377
12521
  value: parseRichText(prosemirrorNode.content ?? [])
12378
12522
  };
12379
12523
  case "image":
12380
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z261.string());
12524
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z262.string());
12381
12525
  if (!items)
12382
12526
  return null;
12383
12527
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -12497,7 +12641,7 @@ function definitionExpectsPlaceholderItem(definition) {
12497
12641
  );
12498
12642
  }
12499
12643
  function parseBlockItems(prosemirrorNode, definition) {
12500
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z261.string());
12644
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z262.string());
12501
12645
  if (!itemsString)
12502
12646
  return null;
12503
12647
  const itemsJson = JSON.parse(itemsString);
@@ -12509,18 +12653,18 @@ function parseBlockItems(prosemirrorNode, definition) {
12509
12653
  }
12510
12654
  function parseAppearance(prosemirrorNode) {
12511
12655
  let appearance = {};
12512
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z261.string().optional());
12656
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z262.string().optional());
12513
12657
  if (rawAppearanceString) {
12514
12658
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
12515
12659
  if (parsedAppearance.success) {
12516
12660
  appearance = parsedAppearance.data;
12517
12661
  }
12518
12662
  }
12519
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z261.number().optional());
12663
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z262.number().optional());
12520
12664
  if (columns) {
12521
12665
  appearance.numberOfColumns = columns;
12522
12666
  }
12523
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z261.string().optional());
12667
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z262.string().optional());
12524
12668
  if (backgroundColor) {
12525
12669
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
12526
12670
  if (parsedColor.success) {
@@ -12615,13 +12759,13 @@ function valueSchemaForPropertyType(type) {
12615
12759
  }
12616
12760
  }
12617
12761
  function getProsemirrorBlockId(prosemirrorNode) {
12618
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z261.string());
12762
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z262.string());
12619
12763
  if (!id)
12620
12764
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
12621
12765
  return id;
12622
12766
  }
12623
12767
  function getProsemirrorBlockVariantId(prosemirrorNode) {
12624
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z261.string()));
12768
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z262.string()));
12625
12769
  }
12626
12770
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
12627
12771
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -12695,11 +12839,12 @@ export {
12695
12839
  DTOBffImportRequestBody,
12696
12840
  DTOBffUploadImportRequestBody,
12697
12841
  DTOBrand,
12842
+ DTOBrandCreatePayload,
12698
12843
  DTOBrandCreateResponse,
12699
12844
  DTOBrandGetResponse,
12845
+ DTOBrandUpdatePayload,
12700
12846
  DTOBrandsListResponse,
12701
12847
  DTOColorTokenInlineData,
12702
- DTOCreateBrandInput,
12703
12848
  DTOCreateDocumentationGroupInput,
12704
12849
  DTOCreateDocumentationPageInputV2,
12705
12850
  DTOCreateDocumentationTabInput,
@@ -12719,7 +12864,10 @@ export {
12719
12864
  DTODeleteDocumentationTabGroupInput,
12720
12865
  DTODesignElementsDataDiffResponse,
12721
12866
  DTODesignSystem,
12867
+ DTODesignSystemComponent,
12722
12868
  DTODesignSystemComponentCreateInput,
12869
+ DTODesignSystemComponentListResponse,
12870
+ DTODesignSystemComponentResponse,
12723
12871
  DTODesignSystemContactsResponse,
12724
12872
  DTODesignSystemCreateInput,
12725
12873
  DTODesignSystemInvitation,
@@ -12851,12 +12999,23 @@ export {
12851
12999
  DTOExporterListResponse,
12852
13000
  DTOExporterMembership,
12853
13001
  DTOExporterMembershipRole,
12854
- DTOExporterProperty,
12855
- DTOExporterPropertyListResponse,
13002
+ DTOExporterPropertyDefinition,
13003
+ DTOExporterPropertyDefinitionArray,
13004
+ DTOExporterPropertyDefinitionBoolean,
13005
+ DTOExporterPropertyDefinitionEnum,
13006
+ DTOExporterPropertyDefinitionNumber,
13007
+ DTOExporterPropertyDefinitionObject,
13008
+ DTOExporterPropertyDefinitionString,
13009
+ DTOExporterPropertyDefinitionValue,
13010
+ DTOExporterPropertyDefinitionValueMap,
13011
+ DTOExporterPropertyDefinitionsResponse,
13012
+ DTOExporterPropertyType,
12856
13013
  DTOExporterSource,
12857
13014
  DTOExporterType,
12858
13015
  DTOExporterUpdateInput,
12859
13016
  DTOFigmaComponent,
13017
+ DTOFigmaComponentGroup,
13018
+ DTOFigmaComponentGroupListResponse,
12860
13019
  DTOFigmaComponentListResponse,
12861
13020
  DTOFigmaNode,
12862
13021
  DTOFigmaNodeData,
@@ -12865,6 +13024,8 @@ export {
12865
13024
  DTOFigmaNodeRenderActionOutput,
12866
13025
  DTOFigmaNodeRenderFormat,
12867
13026
  DTOFigmaNodeRenderInput,
13027
+ DTOFrameNodeStructure,
13028
+ DTOFrameNodeStructureListResponse,
12868
13029
  DTOGetBlockDefinitionsOutput,
12869
13030
  DTOGetDocumentationPageAnchorsResponse,
12870
13031
  DTOGitBranch,
@@ -12963,7 +13124,11 @@ export {
12963
13124
  ElementPropertyDefinitionsEndpoint,
12964
13125
  ElementPropertyValuesEndpoint,
12965
13126
  ElementsActionEndpoint,
13127
+ ElementsEndpoint,
12966
13128
  ExportersEndpoint,
13129
+ FigmaComponentGroupsEndpoint,
13130
+ FigmaComponentsEndpoint,
13131
+ FigmaFrameStructuresEndpoint,
12967
13132
  FormattedCollections,
12968
13133
  FrontendVersionRoomYDoc,
12969
13134
  ImportJobsEndpoint,
@@ -13038,6 +13203,7 @@ export {
13038
13203
  prosemirrorNodesToBlocks,
13039
13204
  richTextPropertyValueToProsemirror,
13040
13205
  serializeAsCustomBlock,
13206
+ serializeQuery,
13041
13207
  shallowProsemirrorNodeToBlock,
13042
13208
  validateDesignSystemVersion,
13043
13209
  validateSsoPayload,