@supernova-studio/supernova-sdk-beta 0.7.17

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 (417) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +135 -0
  3. package/build/sdk-typescript/.eslintrc.d.cts +41 -0
  4. package/build/sdk-typescript/src/browser-bundle.d.ts +1 -0
  5. package/build/sdk-typescript/src/core/SDKSupernova.d.ts +77 -0
  6. package/build/sdk-typescript/src/core/areas/SDKAreaAssets.d.ts +46 -0
  7. package/build/sdk-typescript/src/core/areas/SDKAreaAutomation.d.ts +233 -0
  8. package/build/sdk-typescript/src/core/areas/SDKAreaBrands.d.ts +35 -0
  9. package/build/sdk-typescript/src/core/areas/SDKAreaBulkOperations.d.ts +68 -0
  10. package/build/sdk-typescript/src/core/areas/SDKAreaComponents.d.ts +162 -0
  11. package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +54 -0
  12. package/build/sdk-typescript/src/core/areas/SDKAreaDesignSystems.d.ts +104 -0
  13. package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +179 -0
  14. package/build/sdk-typescript/src/core/areas/SDKAreaIntegrations.d.ts +91 -0
  15. package/build/sdk-typescript/src/core/areas/SDKAreaMe.d.ts +22 -0
  16. package/build/sdk-typescript/src/core/areas/SDKAreaMultiplayer.d.ts +10 -0
  17. package/build/sdk-typescript/src/core/areas/SDKAreaNetwork.d.ts +9 -0
  18. package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +46 -0
  19. package/build/sdk-typescript/src/core/areas/SDKAreaStorage.d.ts +23 -0
  20. package/build/sdk-typescript/src/core/areas/SDKAreaTokenValues.d.ts +136 -0
  21. package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +225 -0
  22. package/build/sdk-typescript/src/core/areas/SDKAreaUsers.d.ts +6 -0
  23. package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +35 -0
  24. package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +230 -0
  25. package/build/sdk-typescript/src/core/areas/SDKRemoteIdentifiers.d.ts +25 -0
  26. package/build/sdk-typescript/src/core/data/SDKConfiguration.d.ts +6 -0
  27. package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +55 -0
  28. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +508 -0
  29. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +232 -0
  30. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreRenderRequests.d.ts +18 -0
  31. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +237 -0
  32. package/build/sdk-typescript/src/core/errors/SDKSupernovaError.d.ts +47 -0
  33. package/build/sdk-typescript/src/core/resolvers/SDKAssetGroupResolver.d.ts +18 -0
  34. package/build/sdk-typescript/src/core/resolvers/SDKComponentGroupResolver.d.ts +13 -0
  35. package/build/sdk-typescript/src/core/resolvers/SDKComponentResolver.d.ts +7 -0
  36. package/build/sdk-typescript/src/core/resolvers/SDKDesignComponentGroupResolver.d.ts +10 -0
  37. package/build/sdk-typescript/src/core/resolvers/SDKDocsEntityMultiplayerItemResolver.d.ts +7 -0
  38. package/build/sdk-typescript/src/core/resolvers/SDKDocumentationItemResolver.d.ts +31 -0
  39. package/build/sdk-typescript/src/core/resolvers/SDKTokenGroupResolver.d.ts +10 -0
  40. package/build/sdk-typescript/src/core/resolvers/SDKTokenResolver.d.ts +105 -0
  41. package/build/sdk-typescript/src/exports-pulsar.d.ts +228 -0
  42. package/build/sdk-typescript/src/exports.d.ts +291 -0
  43. package/build/sdk-typescript/src/index.d.ts +5 -0
  44. package/build/sdk-typescript/src/model/acl/SDKAcl.d.ts +51 -0
  45. package/build/sdk-typescript/src/model/assets/SDKAsset.d.ts +17 -0
  46. package/build/sdk-typescript/src/model/assets/SDKRenderedAsset.d.ts +28 -0
  47. package/build/sdk-typescript/src/model/base/SDKBrand.d.ts +34 -0
  48. package/build/sdk-typescript/src/model/base/SDKDesignSystem.d.ts +54 -0
  49. package/build/sdk-typescript/src/model/base/SDKDesignSystemVersion.d.ts +45 -0
  50. package/build/sdk-typescript/src/model/base/SDKDocumentationLegacy.d.ts +10 -0
  51. package/build/sdk-typescript/src/model/components/SDKComponent.d.ts +32 -0
  52. package/build/sdk-typescript/src/model/components/SDKDesignComponent.d.ts +34 -0
  53. package/build/sdk-typescript/src/model/docs/SDKDocsConfiguration.d.ts +13 -0
  54. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +36 -0
  55. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockDefinition.d.ts +47 -0
  56. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockItemDefinition.d.ts +20 -0
  57. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockLayout.d.ts +19 -0
  58. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockOnboarding.d.ts +11 -0
  59. package/build/sdk-typescript/src/model/docs/blocks/definition/SDKDocsBlockVariant.d.ts +35 -0
  60. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/assets/SDKDocsBlockActualAssets.d.ts +6 -0
  61. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/blockquote/SDKDocsBlockActualBlockquote.d.ts +6 -0
  62. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/callout/SDKDocsBlockActualCallout.d.ts +6 -0
  63. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/code/SDKDocsBlockActualCode.d.ts +6 -0
  64. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/code-react/SDKDocsBlockActualCodeReact.d.ts +6 -0
  65. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/color-accessibility-grid/SDKDocsBlockActualAccessibilityGrid.d.ts +6 -0
  66. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/color-ramps/SDKDocsBlockActualColorRamps.d.ts +6 -0
  67. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-checklist/SDKDocsBlockActualComponentChecklist.d.ts +6 -0
  68. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-checklist-all/SDKDocsBlockActualComponentChecklistAll.d.ts +6 -0
  69. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/component-health/SDKDocsBlockActualComponentHealth.d.ts +6 -0
  70. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/design-tokens/SDKDocsBlockActualDesignTokens.d.ts +6 -0
  71. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/divider/SDKDocsBlockActualDivider.d.ts +6 -0
  72. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed/SDKDocsBlockActualEmbed.d.ts +6 -0
  73. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-figma/SDKDocsBlockActualEmbedFigma.d.ts +6 -0
  74. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-lottie/SDKDocsBlockActualEmbedLottie.d.ts +6 -0
  75. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-youtube/SDKDocsBlockActualEmbedYoutube.d.ts +6 -0
  76. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/figma-frames/SDKDocsBlockActualFigmaFrames.d.ts +6 -0
  77. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/image/SDKDocsBlockActualImage.d.ts +6 -0
  78. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/link/SDKDocsBlockActualLink.d.ts +8 -0
  79. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/markdown/SDKDocsBlockActualMarkdown.d.ts +6 -0
  80. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/omni-multi-item/SDKDocsBlockActualOmniMultiItem.d.ts +6 -0
  81. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/omni-single-item/SDKDocsBlockActualOmniSingleItem.d.ts +6 -0
  82. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/ordered-list/SDKDocsBlockActualOrderedList.d.ts +6 -0
  83. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/release-notes/SDKDocsBlockActualReleaseNotes.d.ts +6 -0
  84. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/rich-text/SDKDocsBlockActualRichText.d.ts +6 -0
  85. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/shortcut-links/SDKDocsBlockActualShortcutLinks.d.ts +8 -0
  86. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/storybook/SDKDocsBlockActualStorybook.d.ts +6 -0
  87. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/table/SDKDocsBlockActualTable.d.ts +6 -0
  88. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title1/SDKDocsBlockActualTitle1.d.ts +6 -0
  89. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title2/SDKDocsBlockActualTitle2.d.ts +6 -0
  90. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title3/SDKDocsBlockActualTitle3.d.ts +6 -0
  91. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title4/SDKDocsBlockActualTitle4.d.ts +6 -0
  92. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/title5/SDKDocsBlockActualTitle5.d.ts +6 -0
  93. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-detail/SDKDocsBlockActualTokenDetail.d.ts +6 -0
  94. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/token-list/SDKDocsBlockActualTokenList.d.ts +6 -0
  95. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/unordered-list/SDKDocsBlockActualUnorderedList.d.ts +6 -0
  96. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +29 -0
  97. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +12 -0
  98. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +18 -0
  99. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +16 -0
  100. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +21 -0
  101. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +13 -0
  102. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +23 -0
  103. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +12 -0
  104. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +12 -0
  105. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +25 -0
  106. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +30 -0
  107. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +25 -0
  108. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +15 -0
  109. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +19 -0
  110. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +21 -0
  111. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +23 -0
  112. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +30 -0
  113. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +23 -0
  114. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +27 -0
  115. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +24 -0
  116. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +38 -0
  117. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +23 -0
  118. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +36 -0
  119. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +12 -0
  120. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +15 -0
  121. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +14 -0
  122. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsColorRef.d.ts +3 -0
  123. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsImageRef.d.ts +26 -0
  124. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsLinkRef.d.ts +24 -0
  125. package/build/sdk-typescript/src/model/docs/blocks/support/SDKDocsSizeRef.d.ts +8 -0
  126. package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlock.d.ts +47 -0
  127. package/build/sdk-typescript/src/model/docs/blocks/usage/SDKDocsBlockItem.d.ts +16 -0
  128. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntity.d.ts +30 -0
  129. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityConfiguration.d.ts +15 -0
  130. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityGroup.d.ts +51 -0
  131. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityHeader.d.ts +29 -0
  132. package/build/sdk-typescript/src/model/docs/entities/SDKDocsEntityPage.d.ts +39 -0
  133. package/build/sdk-typescript/src/model/docs/sections/SDKDocsSection.d.ts +47 -0
  134. package/build/sdk-typescript/src/model/docs/sections/SDKDocsSectionColumn.d.ts +15 -0
  135. package/build/sdk-typescript/src/model/docs/sections/SDKDocsSectionItem.d.ts +15 -0
  136. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyConfiguration.d.ts +22 -0
  137. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyGroup.d.ts +40 -0
  138. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyItem.d.ts +26 -0
  139. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPage.d.ts +34 -0
  140. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageAsset.d.ts +21 -0
  141. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyPageBlock.d.ts +30 -0
  142. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyRichText.d.ts +10 -0
  143. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyRichTextSpan.d.ts +10 -0
  144. package/build/sdk-typescript/src/model/documentation/SDKDocumentationLegacyRichTextSpanAttribute.d.ts +14 -0
  145. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockAsset.d.ts +15 -0
  146. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockAssets.d.ts +22 -0
  147. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockCallout.d.ts +10 -0
  148. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockCode.d.ts +11 -0
  149. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockColumn.d.ts +4 -0
  150. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockColumnItem.d.ts +9 -0
  151. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockCustom.d.ts +15 -0
  152. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockDivider.d.ts +4 -0
  153. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedFigma.d.ts +4 -0
  154. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedGeneric.d.ts +13 -0
  155. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedLink.d.ts +15 -0
  156. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedStorybook.d.ts +4 -0
  157. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedYoutube.d.ts +4 -0
  158. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFrame.d.ts +21 -0
  159. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFrames.d.ts +24 -0
  160. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockHeading.d.ts +10 -0
  161. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockImage.d.ts +16 -0
  162. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockOrderedList.d.ts +4 -0
  163. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockQuote.d.ts +4 -0
  164. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockRenderCode.d.ts +33 -0
  165. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockShortcut.d.ts +35 -0
  166. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockShortcuts.d.ts +9 -0
  167. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTab.d.ts +4 -0
  168. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTabItem.d.ts +8 -0
  169. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTable.d.ts +21 -0
  170. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTableCell.d.ts +11 -0
  171. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTableColumn.d.ts +10 -0
  172. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTableRow.d.ts +4 -0
  173. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockText.d.ts +11 -0
  174. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockToken.d.ts +8 -0
  175. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTokenGroup.d.ts +10 -0
  176. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockTokenList.d.ts +8 -0
  177. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockUnorderedList.d.ts +4 -0
  178. package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationLegacyBlockBuilder.d.ts +6 -0
  179. package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemConfiguration.d.ts +11 -0
  180. package/build/sdk-typescript/src/model/documentation/configuration/SDKDocumentationLegacyItemHeader.d.ts +36 -0
  181. package/build/sdk-typescript/src/model/elements/SDKElementDataView.d.ts +30 -0
  182. package/build/sdk-typescript/src/model/elements/SDKElementDataViewColumn.d.ts +37 -0
  183. package/build/sdk-typescript/src/model/elements/SDKElementProperty.d.ts +73 -0
  184. package/build/sdk-typescript/src/model/elements/SDKElementPropertyOption.d.ts +45 -0
  185. package/build/sdk-typescript/src/model/elements/values/SDKElementPropertyValue.d.ts +15 -0
  186. package/build/sdk-typescript/src/model/enums/SDKAlignment.d.ts +10 -0
  187. package/build/sdk-typescript/src/model/enums/SDKAssetFormat.d.ts +5 -0
  188. package/build/sdk-typescript/src/model/enums/SDKAssetScale.d.ts +6 -0
  189. package/build/sdk-typescript/src/model/enums/SDKAssetScaleType.d.ts +4 -0
  190. package/build/sdk-typescript/src/model/enums/SDKBlurType.d.ts +4 -0
  191. package/build/sdk-typescript/src/model/enums/SDKBorderPosition.d.ts +6 -0
  192. package/build/sdk-typescript/src/model/enums/SDKBorderStyle.d.ts +7 -0
  193. package/build/sdk-typescript/src/model/enums/SDKCloudWarningType.d.ts +14 -0
  194. package/build/sdk-typescript/src/model/enums/SDKCodeLanguage.d.ts +34 -0
  195. package/build/sdk-typescript/src/model/enums/SDKConnectionProviders.d.ts +6 -0
  196. package/build/sdk-typescript/src/model/enums/SDKCustomDomainErrorCode.d.ts +5 -0
  197. package/build/sdk-typescript/src/model/enums/SDKCustomDomainState.d.ts +9 -0
  198. package/build/sdk-typescript/src/model/enums/SDKDocBlockMode.d.ts +8 -0
  199. package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorDataType.d.ts +12 -0
  200. package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorSelectionType.d.ts +8 -0
  201. package/build/sdk-typescript/src/model/enums/SDKDocsBlockCategory.d.ts +26 -0
  202. package/build/sdk-typescript/src/model/enums/SDKDocsBlockContainerSize.d.ts +6 -0
  203. package/build/sdk-typescript/src/model/enums/SDKDocsBlockImagePropertyAspectRatio.d.ts +12 -0
  204. package/build/sdk-typescript/src/model/enums/SDKDocsBlockImagePropertyWidth.d.ts +14 -0
  205. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemEntityType.d.ts +14 -0
  206. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyOptionRenderingStyle.d.ts +10 -0
  207. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyRichTextStyle.d.ts +20 -0
  208. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyTextStyle.d.ts +8 -0
  209. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +55 -0
  210. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutAlign.d.ts +8 -0
  211. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutColumnResizing.d.ts +6 -0
  212. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutGap.d.ts +10 -0
  213. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutType.d.ts +6 -0
  214. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemVariantLayoutWidth.d.ts +26 -0
  215. package/build/sdk-typescript/src/model/enums/SDKDocsBlockMultiRichTextPropertyStyle.d.ts +8 -0
  216. package/build/sdk-typescript/src/model/enums/SDKDocsBlockOptionRenderStyle.d.ts +10 -0
  217. package/build/sdk-typescript/src/model/enums/SDKDocsBlockRichTextPropertyStyle.d.ts +18 -0
  218. package/build/sdk-typescript/src/model/enums/SDKDocsBlockTextPropertyColor.d.ts +6 -0
  219. package/build/sdk-typescript/src/model/enums/SDKDocsBlockTextPropertyStyle.d.ts +26 -0
  220. package/build/sdk-typescript/src/model/enums/SDKDocsEntityGroupBehavior.d.ts +4 -0
  221. package/build/sdk-typescript/src/model/enums/SDKDocsEntityType.d.ts +4 -0
  222. package/build/sdk-typescript/src/model/enums/SDKDocsPublishStatus.d.ts +4 -0
  223. package/build/sdk-typescript/src/model/enums/SDKDocsSectionType.d.ts +6 -0
  224. package/build/sdk-typescript/src/model/enums/SDKDocumentationEnvironment.d.ts +4 -0
  225. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyCalloutType.d.ts +6 -0
  226. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyGroupBehavior.d.ts +4 -0
  227. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyHeadingType.d.ts +5 -0
  228. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyItemType.d.ts +4 -0
  229. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageAssetType.d.ts +4 -0
  230. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageBlockThemeType.d.ts +4 -0
  231. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +31 -0
  232. package/build/sdk-typescript/src/model/enums/SDKFrameAlignment.d.ts +4 -0
  233. package/build/sdk-typescript/src/model/enums/SDKFrameLayout.d.ts +11 -0
  234. package/build/sdk-typescript/src/model/enums/SDKGradientType.d.ts +5 -0
  235. package/build/sdk-typescript/src/model/enums/SDKImportJobOperation.d.ts +4 -0
  236. package/build/sdk-typescript/src/model/enums/SDKImportJobState.d.ts +6 -0
  237. package/build/sdk-typescript/src/model/enums/SDKIntegrationService.d.ts +7 -0
  238. package/build/sdk-typescript/src/model/enums/SDKRichTextSpanAttributeType.d.ts +7 -0
  239. package/build/sdk-typescript/src/model/enums/SDKShadowType.d.ts +4 -0
  240. package/build/sdk-typescript/src/model/enums/SDKSourceType.d.ts +5 -0
  241. package/build/sdk-typescript/src/model/enums/SDKTextCase.d.ts +7 -0
  242. package/build/sdk-typescript/src/model/enums/SDKTextDecoration.d.ts +5 -0
  243. package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +49 -0
  244. package/build/sdk-typescript/src/model/enums/SDKUnit.d.ts +17 -0
  245. package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +8 -0
  246. package/build/sdk-typescript/src/model/enums/SDKVisibilityType.d.ts +4 -0
  247. package/build/sdk-typescript/src/model/enums/SDKWorkspaceNPMRegistryAuthType.d.ts +6 -0
  248. package/build/sdk-typescript/src/model/enums/SDKWorkspaceNPMRegistryType.d.ts +12 -0
  249. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionPlanInterval.d.ts +6 -0
  250. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +12 -0
  251. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +10 -0
  252. package/build/sdk-typescript/src/model/exporters/CodegenAccount.d.ts +9 -0
  253. package/build/sdk-typescript/src/model/exporters/CodegenAzureBranch.d.ts +7 -0
  254. package/build/sdk-typescript/src/model/exporters/CodegenAzureOrganization.d.ts +7 -0
  255. package/build/sdk-typescript/src/model/exporters/CodegenAzureProject.d.ts +7 -0
  256. package/build/sdk-typescript/src/model/exporters/CodegenAzureRepository.d.ts +11 -0
  257. package/build/sdk-typescript/src/model/exporters/CodegenBitbucketBranch.d.ts +7 -0
  258. package/build/sdk-typescript/src/model/exporters/CodegenBitbucketProject.d.ts +6 -0
  259. package/build/sdk-typescript/src/model/exporters/CodegenBitbucketRepository.d.ts +8 -0
  260. package/build/sdk-typescript/src/model/exporters/CodegenBitbucketWorkspace.d.ts +6 -0
  261. package/build/sdk-typescript/src/model/exporters/CodegenBranch.d.ts +8 -0
  262. package/build/sdk-typescript/src/model/exporters/CodegenConnection.d.ts +10 -0
  263. package/build/sdk-typescript/src/model/exporters/CodegenGitlabBranch.d.ts +7 -0
  264. package/build/sdk-typescript/src/model/exporters/CodegenGitlabGroup.d.ts +6 -0
  265. package/build/sdk-typescript/src/model/exporters/CodegenGitlabRepository.d.ts +9 -0
  266. package/build/sdk-typescript/src/model/exporters/CodegenRepository.d.ts +15 -0
  267. package/build/sdk-typescript/src/model/exporters/SDKConnections.d.ts +17 -0
  268. package/build/sdk-typescript/src/model/exporters/SDKExporter.d.ts +83 -0
  269. package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +113 -0
  270. package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlock.d.ts +23 -0
  271. package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockProperty.d.ts +32 -0
  272. package/build/sdk-typescript/src/model/exporters/custom_blocks/SDKExporterCustomBlockVariant.d.ts +12 -0
  273. package/build/sdk-typescript/src/model/exporters/custom_properties/SDKExporterConfigurationProperty.d.ts +38 -0
  274. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuild.d.ts +115 -0
  275. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportBuildResults.d.ts +84 -0
  276. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +126 -0
  277. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenBranchModel.d.ts +5 -0
  278. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenOrganizationModel.d.ts +5 -0
  279. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenProjectModel.d.ts +5 -0
  280. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteAzureCodegenRepositoryModel.d.ts +9 -0
  281. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenBranchModel.d.ts +5 -0
  282. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenProjectModel.d.ts +4 -0
  283. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenRepositoryModel.d.ts +6 -0
  284. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteBitbucketCodegenWorkspaceModel.d.ts +4 -0
  285. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenAccountModel.d.ts +7 -0
  286. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenBranchModel.d.ts +6 -0
  287. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenConnectionModel.d.ts +8 -0
  288. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteCodegenRepositoryModel.d.ts +17 -0
  289. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteConnectionsModel.d.ts +9 -0
  290. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenBranchModel.d.ts +5 -0
  291. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenGroupModel.d.ts +4 -0
  292. package/build/sdk-typescript/src/model/exporters/remote/SDKRemoteGitlabCodegenRepositoryModel.d.ts +7 -0
  293. package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +57 -0
  294. package/build/sdk-typescript/src/model/groups/SDKAssetGroup.d.ts +24 -0
  295. package/build/sdk-typescript/src/model/groups/SDKComponentGroup.d.ts +40 -0
  296. package/build/sdk-typescript/src/model/groups/SDKDesignComponentGroup.d.ts +33 -0
  297. package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +43 -0
  298. package/build/sdk-typescript/src/model/jobs/SDKImportJob.d.ts +34 -0
  299. package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +16 -0
  300. package/build/sdk-typescript/src/model/resources/SDKResource.d.ts +26 -0
  301. package/build/sdk-typescript/src/model/resources/SDKResourceAsset.d.ts +6 -0
  302. package/build/sdk-typescript/src/model/resources/SDKResourceFont.d.ts +25 -0
  303. package/build/sdk-typescript/src/model/support/SDKCustomDomain.d.ts +21 -0
  304. package/build/sdk-typescript/src/model/support/SDKDesignComponentOrigin.d.ts +23 -0
  305. package/build/sdk-typescript/src/model/support/SDKFigmaFrame.d.ts +22 -0
  306. package/build/sdk-typescript/src/model/support/SDKFigmaStructure.d.ts +27 -0
  307. package/build/sdk-typescript/src/model/support/SDKFigmaStructureDetail.d.ts +30 -0
  308. package/build/sdk-typescript/src/model/support/SDKFrameOrigin.d.ts +25 -0
  309. package/build/sdk-typescript/src/model/support/SDKLogger.d.ts +4 -0
  310. package/build/sdk-typescript/src/model/support/SDKSize.d.ts +9 -0
  311. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +150 -0
  312. package/build/sdk-typescript/src/model/support/SDKTokenOrigin.d.ts +18 -0
  313. package/build/sdk-typescript/src/model/themes/SDKThemeUtilities.d.ts +11 -0
  314. package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +55 -0
  315. package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +46 -0
  316. package/build/sdk-typescript/src/model/tokens/SDKBlurToken.d.ts +22 -0
  317. package/build/sdk-typescript/src/model/tokens/SDKBorderToken.d.ts +24 -0
  318. package/build/sdk-typescript/src/model/tokens/SDKColorToken.d.ts +34 -0
  319. package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +104 -0
  320. package/build/sdk-typescript/src/model/tokens/SDKGradientToken.d.ts +26 -0
  321. package/build/sdk-typescript/src/model/tokens/SDKShadowToken.d.ts +26 -0
  322. package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +61 -0
  323. package/build/sdk-typescript/src/model/tokens/SDKTextCaseToken.d.ts +23 -0
  324. package/build/sdk-typescript/src/model/tokens/SDKTextDecorationToken.d.ts +26 -0
  325. package/build/sdk-typescript/src/model/tokens/SDKToken.d.ts +33 -0
  326. package/build/sdk-typescript/src/model/tokens/SDKTokenCompator.d.ts +20 -0
  327. package/build/sdk-typescript/src/model/tokens/SDKTokenValue.d.ts +201 -0
  328. package/build/sdk-typescript/src/model/tokens/SDKTypographyToken.d.ts +20 -0
  329. package/build/sdk-typescript/src/model/tokens/SDKVisibilityToken.d.ts +18 -0
  330. package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenData.d.ts +105 -0
  331. package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenModel.d.ts +64 -0
  332. package/build/sdk-typescript/src/model/tokens/remote/SDKRemoteTokenValue.d.ts +111 -0
  333. package/build/sdk-typescript/src/model/users/SDKUser.d.ts +53 -0
  334. package/build/sdk-typescript/src/model/users/SDKUserMembership.d.ts +18 -0
  335. package/build/sdk-typescript/src/model/users/SDKUserProfile.d.ts +55 -0
  336. package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +22 -0
  337. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIPWhitelistSettings.d.ts +26 -0
  338. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +35 -0
  339. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvoice.d.ts +38 -0
  340. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceNPMRegistryAccessToken.d.ts +15 -0
  341. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceNPMRegistrySettings.d.ts +34 -0
  342. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceOnboarding.d.ts +30 -0
  343. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProduct.d.ts +21 -0
  344. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +32 -0
  345. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +40 -0
  346. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProfile.d.ts +68 -0
  347. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSSOSettings.d.ts +19 -0
  348. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +85 -0
  349. package/build/sdk-typescript/src/pulsar-interfaces.d.ts +40 -0
  350. package/build/sdk-typescript/src/tests/Areas/AreaAssets.spec.d.ts +1 -0
  351. package/build/sdk-typescript/src/tests/Areas/AreaBatchUpdates.spec.d.ts +1 -0
  352. package/build/sdk-typescript/src/tests/Areas/AreaBrands.spec.d.ts +1 -0
  353. package/build/sdk-typescript/src/tests/Areas/AreaDesignSystems.spec.d.ts +1 -0
  354. package/build/sdk-typescript/src/tests/Areas/AreaDocumentation.spec.d.ts +1 -0
  355. package/build/sdk-typescript/src/tests/Areas/AreaMe.spec.d.ts +1 -0
  356. package/build/sdk-typescript/src/tests/Areas/AreaStorage.spec.d.ts +1 -0
  357. package/build/sdk-typescript/src/tests/Areas/AreaTokens.spec.d.ts +1 -0
  358. package/build/sdk-typescript/src/tests/Areas/AreaWorkspace.spec.d.ts +1 -0
  359. package/build/sdk-typescript/src/tests/FigmaTokensDataLoader.d.ts +33 -0
  360. package/build/sdk-typescript/src/tests/Serialization/User.spec.d.ts +1 -0
  361. package/build/sdk-typescript/src/tests/Serialization/Workspace.spec.d.ts +1 -0
  362. package/build/sdk-typescript/src/tests/Serialization/WorkspaceIPWhitelistSettings.spec.d.ts +1 -0
  363. package/build/sdk-typescript/src/tests/Serialization/WorkspaceNPMRegistrySettings.spec.d.ts +1 -0
  364. package/build/sdk-typescript/src/tests/Serialization/WorkspaceOnboarding.spec.d.ts +1 -0
  365. package/build/sdk-typescript/src/tests/Serialization/WorkspaceSSOSettings.spec.d.ts +1 -0
  366. package/build/sdk-typescript/src/tests/Tooling/PluginFigmaTokens.spec.d.ts +1 -0
  367. package/build/sdk-typescript/src/tests/Tooling/PluginJSONBuilder.spec.d.ts +1 -0
  368. package/build/sdk-typescript/src/tests/Tooling/ReadTokens.spec.d.ts +1 -0
  369. package/build/sdk-typescript/src/tests/Tooling/TokensModel.spec.d.ts +1 -0
  370. package/build/sdk-typescript/src/tests/Tooling/ToolDocSearch.spec.d.ts +1 -0
  371. package/build/sdk-typescript/src/tests/Tooling/ToolMarkdownTransform.spec.d.ts +1 -0
  372. package/build/sdk-typescript/src/tests/helpers.d.ts +7 -0
  373. package/build/sdk-typescript/src/tests/validators.d.ts +86 -0
  374. package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +56 -0
  375. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +39 -0
  376. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONGroupBuilder.d.ts +23 -0
  377. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +28 -0
  378. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTJSONParser.d.ts +44 -0
  379. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +39 -0
  380. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapResolver.d.ts +7 -0
  381. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +15 -0
  382. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenGroupTreeMerger.d.ts +23 -0
  383. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenMerger.d.ts +16 -0
  384. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +48 -0
  385. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTTokenSetResolver.d.ts +11 -0
  386. package/build/sdk-typescript/src/tools/design-tokens/utilities/collection/SDKDTTokenCollection.d.ts +13 -0
  387. package/build/sdk-typescript/src/tools/design-tokens/utilities/expression/SDKDTExpressionParser.d.ts +5 -0
  388. package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTree.d.ts +12 -0
  389. package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTGroupTreeNode.d.ts +17 -0
  390. package/build/sdk-typescript/src/tools/design-tokens/utilities/tree/SDKDTParentChildMapping.d.ts +5 -0
  391. package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +409 -0
  392. package/build/sdk-typescript/src/tools/json-builder/SDKToolsJSONBuilder.d.ts +58 -0
  393. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementFigmaTokensTransformer.d.ts +37 -0
  394. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementStyleDictionaryTransformer.d.ts +26 -0
  395. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +68 -0
  396. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +22 -0
  397. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +75 -0
  398. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +22 -0
  399. package/build/sdk-typescript/src/tools/search-index/SDKToolsDocSearch.d.ts +47 -0
  400. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewGenerator.d.ts +20 -0
  401. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewMetadataGenerator.d.ts +8 -0
  402. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewReferenceInfoGenerator.d.ts +9 -0
  403. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewSegmentGenerator.d.ts +7 -0
  404. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewStyleGenerator.d.ts +8 -0
  405. package/build/sdk-typescript/src/tools/token-preview/TokenUtilPreviewTypes.d.ts +68 -0
  406. package/build/sdk-typescript/src/tools/token-transform/SDKToolsTokenTransform.d.ts +42 -0
  407. package/build/sdk-typescript/src/utils/CommonUtils.d.ts +5 -0
  408. package/build/sdk-typescript/src/utils/ComponentUtils.d.ts +12 -0
  409. package/build/sdk-typescript/src/utils/FlowUtils.d.ts +5 -0
  410. package/build/sdk-typescript/src/utils/StringUtils.d.ts +72 -0
  411. package/build/sdk-typescript/src/utils/TokenUtils.d.ts +294 -0
  412. package/build/sdk-typescript/src/utils/UnreachableCaseError.d.ts +3 -0
  413. package/build/sdk-typescript/src/utils/deepPartial.d.ts +3 -0
  414. package/build/supernova-sdk-typescript.js +3 -0
  415. package/build/supernova-sdk-typescript.js.LICENSE.txt +8 -0
  416. package/build/supernova-sdk-typescript.js.map +1 -0
  417. package/package.json +127 -0
@@ -0,0 +1,72 @@
1
+ export declare class StringUtils {
2
+ /** Returns string without whitespaces and newlines, trimmed left and right */
3
+ static trimmed(str: string): string;
4
+ /** Returns string without double quotes, trimmed left and right */
5
+ static withoutDoubleQuotes(str: string): string;
6
+ /** Returns string without single and double quotes, trimmed left and right */
7
+ static withoutQuotes(str: string): string;
8
+ /** Returns opening string until the first occurance of the character. If delimiter is not found, returns null */
9
+ static substringUntilDelimiter(str: string, delimiter: string): string | null;
10
+ /** Returns whether string is prefixed and suffixed with double quotes */
11
+ static isSurroundedWithDoubleQuotes(str: string): boolean;
12
+ /** Returns substring between two round brackets. Returns null if it doesn't fit the format */
13
+ static argumentStringBetweenBrackets(str: string, keyword: string): string | null;
14
+ /** Returns substring between two round brackets using syntax-sensitive parsing (ignoring quoted content and properly balancing number of ( ) */
15
+ static argumentStringBetweenBracketsFirstOccurance(str: string, keyword: string): string | null;
16
+ /** Returns string without single and double quotes but removes only 1 character at most */
17
+ static withoutQuotesSingleOccurance(str: string): string;
18
+ /** Returns string without single and double quotes but removes only 1 character at most */
19
+ static withoutDoubleQuotesSingleOccurance(str: string): string;
20
+ /** Returns string without round brackets, trimmed left and right */
21
+ static withoutRoundBrackets(str: string): string;
22
+ /** Creates a full range of a string, returning range of (0, length) */
23
+ static fullRange(str: string): {
24
+ location: number;
25
+ length: number;
26
+ };
27
+ /** Creates string made of N spaces */
28
+ static spaces(count: number): string;
29
+ /** Splits string using separator while properly handling quotes.
30
+ Content inside single or double quote will be ignored. Only content within closed quote pair will be ignored,
31
+ Last single, not closed quote will be ignored. Quote types can't be combined, if the quote pair
32
+ started with one type, it needs to be closed with the same one. There can be multiple types of quote pairs in single string though.
33
+ Returns original string without splitting if separator is single or double quote as this behavior is undefined */
34
+ static splitIgnoringQuotedContent(str: string, separator: string): Array<string>;
35
+ /** Removes spaces when they are inside of brackets, but properly handling spaces inside quoted content which should remain intact */
36
+ static withoutSpacesInsideRoundBrackets(str: string): string;
37
+ /** Splits string using separator while properly handling quotes and ignoring all content that comes in ().
38
+ Content inside single or double quote will be ignored. Only content within closed quote pair will be ignored,
39
+ Last single, not closed quote will be ignored. Quote types can't be combined, if the quote pair
40
+ started with one type, it needs to be closed with the same one. There can be multiple types
41
+ of quote pairs in single string though.
42
+ Returns original string without splitting if separator is single, double quote or left/right bracket as this behavior is undefined */
43
+ static splitIgnoringQuotedBracketedContent(str: string, separator: string): Array<string>;
44
+ /** Tests whether all characters of the string are lowercased and are only letters a-z */
45
+ static isLowercaseLetters(str: string): boolean;
46
+ /** Tests whether all characters of the string are lowercased and are only letters a-z, including separator dot */
47
+ static isLowercaseLettersCanIncludeDot(str: string): boolean;
48
+ /** Tests whether all characters of the string are letters */
49
+ static isLetters(str: string): boolean;
50
+ /** Tests whether all characters of the string are letters, including separator dot */
51
+ static isLettersCanIncludeDot(str: string): boolean;
52
+ /** Tests whether the first character of the string is lowercase */
53
+ static isFirstCharacterLetterLowercase(str: string): boolean;
54
+ /** Tests whether all characters of the string are spaces */
55
+ static isOnlySpaces(str: string): boolean;
56
+ /** Tests whether all characters of the string are spaces or newlines */
57
+ static isOnlySpacesOrLineBreaks(str: string): boolean;
58
+ /** Tests whether string represents array definition - starts with [, ends with ]
59
+ * and doesn't contain : unless in double quotes
60
+ */
61
+ static isStructuralArrayDefinition(str: string): boolean;
62
+ /** Parses array if it is structuraly viable and retrieves array components */
63
+ static parsedArrayFromDefinition(str: string): Array<string> | null;
64
+ /** Tests whether string represents dictionary definition - starts with [, ends with ]
65
+ * and contains at least once :
66
+ */
67
+ static isStructuralDictionaryDefinition(str: string): boolean;
68
+ /** Parses array if it is structuraly viable and retrieves array components */
69
+ static parsedDictionaryFromDefinition(str: string): Map<string, string> | null;
70
+ static replaceAll(str: string, find: string, replace: string): string;
71
+ static escapeRegExp(string: string): string;
72
+ }
@@ -0,0 +1,294 @@
1
+ import { AnyToken, BlurType, BorderPosition, BorderStyle, DTProcessedTokenNode, GradientType, ShadowType, TextCase, TokenGroup, TokenTheme } from "../exports";
2
+ import { ElementProperty } from "../model/elements/SDKElementProperty";
3
+ import { TokenType } from "../model/enums/SDKTokenType";
4
+ import { BlurToken } from "../model/tokens/SDKBlurToken";
5
+ import { BorderToken } from "../model/tokens/SDKBorderToken";
6
+ import { ColorToken } from "../model/tokens/SDKColorToken";
7
+ import { BorderWidthToken, DimensionToken, DurationToken, FontSizeToken, LetterSpacingToken, LineHeightToken, OpacityToken, ParagraphSpacingToken, RadiusToken, SizeToken, SpaceToken, ZIndexToken } from "../model/tokens/SDKDimensionToken";
8
+ import { GradientToken } from "../model/tokens/SDKGradientToken";
9
+ import { ShadowToken } from "../model/tokens/SDKShadowToken";
10
+ import { FontFamilyToken, FontWeightToken, ProductCopyToken, StringToken } from "../model/tokens/SDKStringToken";
11
+ import { TextCaseToken } from "../model/tokens/SDKTextCaseToken";
12
+ import { TextDecorationToken } from "../model/tokens/SDKTextDecorationToken";
13
+ import { Token } from "../model/tokens/SDKToken";
14
+ import { AnyTokenValue, AnyMultiLayerToken, AnySingleLayerToken, BorderWidthTokenValue, ColorTokenValue, ColorValue, DimensionTokenValue, DurationTokenValue, FontFamilyTokenValue, FontSizeTokenValue, FontWeightTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, ProductCopyTokenValue, RadiusTokenValue, RawValue, SizeTokenValue, SpaceTokenValue, StringTokenValue, TextCaseTokenValue, TextDecorationTokenValue, VisibilityTokenValue, ZIndexTokenValue } from "../model/tokens/SDKTokenValue";
15
+ import { TypographyToken } from "../model/tokens/SDKTypographyToken";
16
+ import { VisibilityToken } from "../model/tokens/SDKVisibilityToken";
17
+ type TokenMapCompletenessTypeCheck<T extends {
18
+ [key in TokenType]: AnyToken;
19
+ }> = T;
20
+ type ActualTypeToTokenMap = {
21
+ [TokenType.color]: ColorToken;
22
+ [TokenType.typography]: TypographyToken;
23
+ [TokenType.blur]: BlurToken;
24
+ [TokenType.border]: BorderToken;
25
+ [TokenType.shadow]: ShadowToken;
26
+ [TokenType.gradient]: GradientToken;
27
+ [TokenType.string]: StringToken;
28
+ [TokenType.productCopy]: ProductCopyToken;
29
+ [TokenType.fontFamily]: FontFamilyToken;
30
+ [TokenType.fontWeight]: FontWeightToken;
31
+ [TokenType.textCase]: TextCaseToken;
32
+ [TokenType.textDecoration]: TextDecorationToken;
33
+ [TokenType.visibility]: VisibilityToken;
34
+ [TokenType.borderWidth]: BorderWidthToken;
35
+ [TokenType.dimension]: DimensionToken;
36
+ [TokenType.size]: SizeToken;
37
+ [TokenType.space]: SpaceToken;
38
+ [TokenType.opacity]: OpacityToken;
39
+ [TokenType.fontSize]: FontSizeToken;
40
+ [TokenType.lineHeight]: LineHeightToken;
41
+ [TokenType.letterSpacing]: LetterSpacingToken;
42
+ [TokenType.paragraphSpacing]: ParagraphSpacingToken;
43
+ [TokenType.radius]: RadiusToken;
44
+ [TokenType.duration]: DurationToken;
45
+ [TokenType.zIndex]: ZIndexToken;
46
+ };
47
+ type ActualTypeToTokenClassMap = {
48
+ [TokenType.color]: typeof ColorToken;
49
+ [TokenType.typography]: typeof TypographyToken;
50
+ [TokenType.blur]: typeof BlurToken;
51
+ [TokenType.border]: typeof BorderToken;
52
+ [TokenType.shadow]: typeof ShadowToken;
53
+ [TokenType.gradient]: typeof GradientToken;
54
+ [TokenType.string]: typeof StringToken;
55
+ [TokenType.productCopy]: typeof ProductCopyToken;
56
+ [TokenType.fontFamily]: typeof FontFamilyToken;
57
+ [TokenType.fontWeight]: typeof FontWeightToken;
58
+ [TokenType.textCase]: typeof TextCaseToken;
59
+ [TokenType.textDecoration]: typeof TextDecorationToken;
60
+ [TokenType.visibility]: typeof VisibilityToken;
61
+ [TokenType.borderWidth]: typeof BorderWidthToken;
62
+ [TokenType.dimension]: typeof DimensionToken;
63
+ [TokenType.size]: typeof SizeToken;
64
+ [TokenType.space]: typeof SpaceToken;
65
+ [TokenType.opacity]: typeof OpacityToken;
66
+ [TokenType.fontSize]: typeof FontSizeToken;
67
+ [TokenType.lineHeight]: typeof LineHeightToken;
68
+ [TokenType.letterSpacing]: typeof LetterSpacingToken;
69
+ [TokenType.paragraphSpacing]: typeof ParagraphSpacingToken;
70
+ [TokenType.radius]: typeof RadiusToken;
71
+ [TokenType.duration]: typeof DurationToken;
72
+ [TokenType.zIndex]: typeof ZIndexToken;
73
+ };
74
+ export type TokenTypeMapToken = TokenMapCompletenessTypeCheck<ActualTypeToTokenMap>;
75
+ type TokenClassMapCompletenessTypeCheck<T extends {
76
+ [key in TokenType]: new (...args: any[]) => TokenTypeMapToken[key];
77
+ }> = T;
78
+ export type TokenClassTypeMapToken = TokenClassMapCompletenessTypeCheck<ActualTypeToTokenClassMap>;
79
+ export declare class TokenUtils {
80
+ /** Map tokens for lookup */
81
+ static tokensToReferenceMap(tokens: Array<Token>): Map<string, Token>;
82
+ /** Map token groups for lookup */
83
+ static tokenGroupsToReferenceMap(groups: Array<TokenGroup>): Map<string, TokenGroup>;
84
+ static lookupReference<T extends Token>(id: string | undefined | null, tokens: Map<string, Token>): T | undefined;
85
+ /** Creates a new token group for a given token type. Default values will be used for all properties */
86
+ static createDefaultTokenGroup(type: TokenType, versionId: string, brandId: string, name?: string): TokenGroup;
87
+ /** Creates a new token theme. Default values will be used for all properties */
88
+ static createDefaultTokenTheme(versionId: string, brandId: string): TokenTheme;
89
+ /** Creates a new token for a given token type. Default values will be used for all properties */
90
+ static createDefaultToken<T extends TokenType>(type: T, versionId: string, brandId: string, properties: Array<ElementProperty>): TokenTypeMapToken[T];
91
+ /** Creates a new default color token */
92
+ private static createDefaultColorToken;
93
+ /** Creates a new default typography token */
94
+ private static createDefaultTypographyToken;
95
+ /** Creates a new default typography token */
96
+ private static createDefaultGradientToken;
97
+ /** Creates a new default dimension token */
98
+ private static createDefaultDimensionToken;
99
+ /** Creates a new default size token */
100
+ private static createDefaultSizeToken;
101
+ /** Creates a new default space token */
102
+ private static createDefaultSpaceToken;
103
+ /** Creates a new default opacity token */
104
+ private static createDefaultOpacityToken;
105
+ /** Creates a new default line height token */
106
+ private static createDefaultLineHeightToken;
107
+ /** Creates a new default letter spacing token */
108
+ private static createDefaultLetterSpacingToken;
109
+ /** Creates a new default paragraph spacing token */
110
+ private static createDefaultParagraphSpacingToken;
111
+ /** Creates a new default border token */
112
+ private static createDefaultBorderWidthToken;
113
+ /** Creates a new default border radius token */
114
+ private static createDefaultRadiusToken;
115
+ /** Creates a new default font size token */
116
+ private static createDefaultFontSizeToken;
117
+ /** Creates a new default font family token */
118
+ private static createDefaultFontFamilyToken;
119
+ /** Creates a new default font weight token */
120
+ private static createDefaultFontWeightToken;
121
+ /** Creates a new default duration token */
122
+ private static createDefaultDurationToken;
123
+ /** Creates a new default z-index token */
124
+ private static createDefaultZIndexToken;
125
+ /** Creates a new default text case token */
126
+ private static createDefaultTextCaseToken;
127
+ /** Creates a new default text case token */
128
+ private static createDefaultTextDecorationToken;
129
+ /** Creates a new default visibility token */
130
+ private static createDefaultVisibilityToken;
131
+ /** Creates a new default generic token */
132
+ private static createDefaultBlurToken;
133
+ /** Creates a new default generic token */
134
+ private static createDefaultStringToken;
135
+ /** Creates a new default generic token */
136
+ private static createDefaultProductCopyToken;
137
+ /** Creates a new default generic token */
138
+ private static createDefaultShadowToken;
139
+ /** Creates a new default generic token */
140
+ private static createDefaultBorderToken;
141
+ static replaceIdAcrossAllPossibleReferences(override: DTProcessedTokenNode, newId: string, allTokens: Array<DTProcessedTokenNode>): void;
142
+ static replaceIdAcrossAllPossibleReferencesWithTokens(currentId: string, newId: string, allTokens: Array<Token>): void;
143
+ static replaceIdForComplexTokens(token: AnyToken, currentId: string, newId: string): void;
144
+ /** Creates a new theme with updated overrides */
145
+ static tokenThemeByUpdatingOverride(theme: TokenTheme, override: AnyToken): TokenTheme;
146
+ /** Creates a new theme with removed override */
147
+ static tokenThemeByRemovingOverride(theme: TokenTheme, tokenId: string): TokenTheme;
148
+ /** Creates a new color token with updated .color value */
149
+ static colorTokenByUpdatingColor(token: ColorToken, newValue: ColorValue | ColorToken): ColorToken;
150
+ /** Creates a new color token with updated .opacity value */
151
+ static colorTokenByUpdatingOpacity(token: ColorToken, newValue: number | OpacityToken): ColorToken;
152
+ /** Creates a new blur token with updated .type value */
153
+ static blurTokenByUpdatingType(token: BlurToken, newValue: BlurType): BlurToken;
154
+ /** Creates a new blur token with updated .radius value */
155
+ static blurTokenByUpdatingRadius(token: BlurToken, newValue: RawValue<DimensionTokenValue> | RadiusToken): BlurToken;
156
+ /** Creates a new typography token with updated .fontFamily value */
157
+ static typographyTokenByUpdatingFontFamily(token: TypographyToken, newValue: RawValue<FontFamilyTokenValue> | FontFamilyToken): TypographyToken;
158
+ /** Creates a new typography token with updated .fontWeight value */
159
+ static typographyTokenByUpdatingFontWeight(token: TypographyToken, newValue: RawValue<FontWeightTokenValue> | FontWeightToken): TypographyToken;
160
+ /** Creates a new typography token with updated .fontSize value */
161
+ static typographyTokenByUpdatingFontSize(token: TypographyToken, newValue: RawValue<FontSizeTokenValue> | FontSizeToken): TypographyToken;
162
+ /** Creates a new typography token with updated .letterSpacing value */
163
+ static typographyTokenByUpdatingLetterSpacing(token: TypographyToken, newValue: RawValue<LetterSpacingTokenValue> | LetterSpacingToken): TypographyToken;
164
+ /** Creates a new typography token with updated .lineHeight value */
165
+ static typographyTokenByUpdatingLineHeight(token: TypographyToken, newValue: RawValue<LineHeightTokenValue> | LineHeightToken): TypographyToken;
166
+ /** Creates a new typography token with updated .paragraphSpacing value */
167
+ static typographyTokenByUpdatingParagraphSpacing(token: TypographyToken, newValue: RawValue<ParagraphSpacingTokenValue> | ParagraphSpacingToken): TypographyToken;
168
+ /** Creates a new typography token with updated .paragraphSpacing value */
169
+ static typographyTokenByUpdatingParagraphIndent(token: TypographyToken, newValue: RawValue<ParagraphSpacingTokenValue> | ParagraphSpacingToken): TypographyToken;
170
+ /** Creates a new typography token with updated .textCase value */
171
+ static typographyTokenByUpdatingTextCase(token: TypographyToken, newValue: RawValue<TextCaseTokenValue> | TextCaseToken): TypographyToken;
172
+ /** Creates a new border token with updated .position value */
173
+ static typographyTokenByUpdatingTextDecoration(token: TypographyToken, newValue: RawValue<TextDecorationTokenValue> | TextDecorationToken): TypographyToken;
174
+ /** Creates a new border token with updated .color value. Do note, opacity is ignored */
175
+ static borderTokenByUpdatingColor(token: BorderToken, newValue: ColorValue | ColorToken): BorderToken;
176
+ /** Creates a new border token with updated color.opacity value */
177
+ static borderTokenByUpdatingOpacity(token: BorderToken, newValue: number | OpacityToken): BorderToken;
178
+ /** Creates a new border token with updated .width value */
179
+ static borderTokenByUpdatingWidth(token: BorderToken, newValue: RawValue<BorderWidthTokenValue> | BorderWidthToken): BorderToken;
180
+ /** Creates a new border token with updated .position value */
181
+ static borderTokenByUpdatingPosition(token: BorderToken, newValue: BorderPosition): BorderToken;
182
+ /** Creates a new border token with updated .style value */
183
+ static borderTokenByUpdatingStyle(token: BorderToken, newValue: BorderStyle): BorderToken;
184
+ /** Creates a new dimension token with updated value */
185
+ static dimensionTokenByUpdatingValue(token: DimensionToken, newValue: RawValue<DimensionTokenValue>): DimensionToken;
186
+ /** Creates a new size token with updated value */
187
+ static sizeTokenByUpdatingValue(token: SizeToken, newValue: RawValue<SizeTokenValue>): SizeToken;
188
+ /** Creates a new space token with updated value */
189
+ static spaceTokenByUpdatingValue(token: SpaceToken, newValue: RawValue<SpaceTokenValue>): SpaceToken;
190
+ /** Creates a new opacity token with updated value */
191
+ static opacityTokenByUpdatingValue(token: OpacityToken, newValue: RawValue<OpacityTokenValue>): OpacityToken;
192
+ /** Creates a new font size token with updated value */
193
+ static fontSizeTokenByUpdatingValue(token: FontSizeToken, newValue: RawValue<FontSizeTokenValue>): FontSizeToken;
194
+ /** Creates a new font size token with updated value */
195
+ static lineHeightTokenByUpdatingValue(token: LineHeightToken, newValue: RawValue<LineHeightTokenValue>): LineHeightToken;
196
+ /** Creates a new letter spacing token with updated value */
197
+ static letterSpacingTokenByUpdatingValue(token: LetterSpacingToken, newValue: RawValue<LetterSpacingTokenValue>): LetterSpacingToken;
198
+ /** Creates a new paragraph spacing token with updated value */
199
+ static paragraphSpacingTokenByUpdatingValue(token: ParagraphSpacingToken, newValue: RawValue<ParagraphSpacingTokenValue>): ParagraphSpacingToken;
200
+ /** Creates a new border width token with updated value */
201
+ static borderWidthTokenByUpdatingValue(token: BorderWidthToken, newValue: RawValue<BorderWidthTokenValue>): BorderWidthToken;
202
+ /** Creates a new radius token with updated value */
203
+ static radiusTokenByUpdatingValue(token: RadiusToken, newValue: RawValue<RadiusTokenValue>): RadiusToken;
204
+ /** Creates a new duration token with updated value */
205
+ static durationTokenByUpdatingValue(token: DurationToken, newValue: RawValue<DurationTokenValue>): DurationToken;
206
+ /** Creates a new z-index token with updated value */
207
+ static zIndexTokenByUpdatingValue(token: ZIndexToken, newValue: RawValue<ZIndexTokenValue>): ZIndexToken;
208
+ /** Creates a new string token with updated value */
209
+ static stringTokenByUpdatingValue(token: StringToken, newValue: RawValue<StringTokenValue>): StringToken;
210
+ /** Creates a new product copy token with updated value */
211
+ static productCopyTokenByUpdatingValue(token: ProductCopyToken, newValue: RawValue<ProductCopyTokenValue>): ProductCopyToken;
212
+ /** Creates a new font family token with updated value */
213
+ static fontFamilyTokenByUpdatingValue(token: FontFamilyToken, newValue: RawValue<FontFamilyTokenValue>): FontFamilyToken;
214
+ /** Creates a new font weight token with updated value */
215
+ static fontWeightTokenByUpdatingValue(token: FontWeightToken, newValue: RawValue<FontWeightTokenValue>): FontWeightToken;
216
+ /** Creates a new text case token with updated value */
217
+ static textCaseTokenByUpdatingValue(token: TextCaseToken, newValue: RawValue<TextCaseTokenValue>): TextCaseToken;
218
+ /** Creates a new text case token with updated value */
219
+ static textDecorationTokenByUpdatingValue(token: TextDecorationToken, newValue: RawValue<TextDecorationTokenValue>): TextDecorationToken;
220
+ /** Creates a new visibility token with updated value */
221
+ static visibilityTokenByUpdatingValue(token: VisibilityToken, newValue: RawValue<VisibilityTokenValue>): VisibilityToken;
222
+ /** Creates a new shadow token with one new extra layer added at the end of all layers */
223
+ static shadowTokenByAddingLayer(token: ShadowToken): ShadowToken;
224
+ /** Creates a new shadow token by removing one of the layers */
225
+ static shadowTokenByRemovingLayer(token: ShadowToken, layerIndex: number): ShadowToken;
226
+ /** Creates a new shadow token with updated .color value. Do note, opacity is ignored */
227
+ static shadowTokenByUpdatingColor(token: ShadowToken, layerIndex: number, newValue: ColorValue | ColorToken): ShadowToken;
228
+ /** Creates a new shadow token with updated .color value */
229
+ static shadowTokenByUpdatingOpacity(token: ShadowToken, layerIndex: number, newValue: number | OpacityToken): ShadowToken;
230
+ /** Creates a new shadow token with updated .x value */
231
+ static shadowTokenByUpdatingX(token: ShadowToken, layerIndex: number, newValue: number): ShadowToken;
232
+ /** Creates a new shadow token with updated .y value */
233
+ static shadowTokenByUpdatingY(token: ShadowToken, layerIndex: number, newValue: number): ShadowToken;
234
+ /** Creates a new shadow token with updated .radius value */
235
+ static shadowTokenByUpdatingRadius(token: ShadowToken, layerIndex: number, newValue: number): ShadowToken;
236
+ /** Creates a new shadow token with updated .spread value */
237
+ static shadowTokenByUpdatingSpread(token: ShadowToken, layerIndex: number, newValue: number): ShadowToken;
238
+ /** Creates a new shadow token with updated .type value */
239
+ static shadowTokenByUpdatingType(token: ShadowToken, layerIndex: number, newValue: ShadowType): ShadowToken;
240
+ /** Creates a new gradient token with updated .to value */
241
+ static gradientTokenByUpdatingTo(token: GradientToken, layerIndex: number, newValue: {
242
+ x: number;
243
+ y: number;
244
+ }): GradientToken;
245
+ /** Creates a new gradient token with updated .from value */
246
+ static gradientTokenByUpdatingFrom(token: GradientToken, layerIndex: number, newValue: {
247
+ x: number;
248
+ y: number;
249
+ }): GradientToken;
250
+ /** Creates a new gradient token with updated .to value */
251
+ static gradientTokenByUpdatingType(token: GradientToken, layerIndex: number, newValue: GradientType): GradientToken;
252
+ /** Creates a new gradient token with updated .aspectRatio value */
253
+ static gradientTokenByUpdatingAspectRatio(token: GradientToken, layerIndex: number, newValue: number): GradientToken;
254
+ /** Creates a new gradient token with updated .to value */
255
+ static gradientTokenByUpdatingStops(token: GradientToken, layerIndex: number, newValue: Array<{
256
+ position: number;
257
+ color: ColorTokenValue | ColorToken;
258
+ }>): GradientToken;
259
+ /** Creates a new token where value is reference to the provided token. Token and reference must be of the same type */
260
+ static tokenByReferencing<T extends AnyToken>(token: T, reference: T): T;
261
+ /** Creates a new multilayer token where one of the layers is reference to the provided token. Token and reference must be of the same type */
262
+ static multilayerTokenByReferencing<T extends AnyMultiLayerToken>(token: T, layerIndex: number, reference: T): T;
263
+ /** Creates a new token where value is raw, but taken from the previously referenced token. Token must have had reference before */
264
+ static tokenByDisconnectingReference<T extends AnySingleLayerToken>(token: T, options?: {
265
+ supressErrorOnNoReference?: boolean;
266
+ }): T;
267
+ /** Creates a new multilayer token where one of the layers value is raw, but taken from the previously referenced token. That layer must have had reference before */
268
+ static multilayerTokenByDisconnectingReference<T extends AnySingleLayerToken>(token: T, layerIndex: number): T;
269
+ /** Checks if token as a whole is a reference to another token */
270
+ static isReferencedToken(token: AnySingleLayerToken): boolean;
271
+ /** Checks if a token layer of multilayer token is a reference to another token */
272
+ static isReferencedMultilayerTokenLayer(token: AnyMultiLayerToken, layerIndex: number): boolean;
273
+ /** Checks if a token was imported from some foreign source. Not imported tokens were always created in Supernova */
274
+ static isTokenImported(token: AnyToken): boolean;
275
+ private static checkNotReference;
276
+ private static rawOrReferencedDimensionValue;
277
+ private static rawOrReferencedStringValue;
278
+ static validateLayerAccess(token: AnyMultiLayerToken, index: number): void;
279
+ static inlineValueIntoComplexTokens(token: AnyToken, candidateId: string, candidateValueToInline: AnyTokenValue): void;
280
+ static getRefIdsFromComplexTokens(token: AnyToken): (string | null | undefined)[];
281
+ static buildKey(path: Array<string>, name: string): string;
282
+ static buildPath(token: Token, groups: Array<TokenGroup>): Array<string>;
283
+ static mapTypeToPrefix: (type: TokenType) => string;
284
+ static mapTypeToPrefixBack: (type: TokenType) => string;
285
+ static mapTypeToPrefix2: (type: TokenType) => string;
286
+ static buildFallbackKey(node: Pick<DTProcessedTokenNode, "path" | "token">): string;
287
+ static buildFallbackKeyBack(node: Pick<DTProcessedTokenNode, "path" | "token">): string;
288
+ static buildFallbackKey2(node: Pick<DTProcessedTokenNode, "path" | "token">): string;
289
+ static getTokenByKeyOrFallbackKeys<T extends DTProcessedTokenNode | Token>(node: Pick<DTProcessedTokenNode, "path" | "token">, map: Map<string, T>): T | undefined;
290
+ static getKeysByKeyOrFallbackKeys<T extends DTProcessedTokenNode | Token>(node: Pick<DTProcessedTokenNode, "path" | "token">): string[];
291
+ static getTokenByKeyOrBackwardKey(node: Pick<DTProcessedTokenNode, "path" | "token">, map: Map<string, DTProcessedTokenNode>): DTProcessedTokenNode | undefined;
292
+ static getTextCaseTokenValue(value: TextCase): "Original" | "Uppercase" | "Lowercase" | "Capitalize" | "Small caps";
293
+ }
294
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare class UnreachableCaseError extends Error {
2
+ constructor(val: never, message?: string);
3
+ }
@@ -0,0 +1,3 @@
1
+ export type DeepPartial<T> = T extends object ? {
2
+ [P in keyof T]?: DeepPartial<T[P]>;
3
+ } : T;