@supernova-studio/supernova-sdk-beta 2.2.7 → 2.2.50

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 (131) hide show
  1. package/README.md +8 -12
  2. package/build/sdk-typescript/src/core/SDKSupernova.d.ts +18 -6
  3. package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +12 -14
  4. package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +3 -1
  5. package/build/sdk-typescript/src/core/areas/SDKAreaMCP.d.ts +24 -0
  6. package/build/sdk-typescript/src/core/areas/SDKAreaMe.d.ts +3 -1
  7. package/build/sdk-typescript/src/core/areas/SDKAreaMessaging.d.ts +60 -0
  8. package/build/sdk-typescript/src/core/areas/SDKAreaProjects.d.ts +2120 -64
  9. package/build/sdk-typescript/src/core/areas/SDKAreaRawData.d.ts +2049 -7
  10. package/build/sdk-typescript/src/core/areas/SDKAreaRelay.d.ts +61 -0
  11. package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +83 -1
  12. package/build/sdk-typescript/src/core/areas/SDKAreaThreads.d.ts +81 -0
  13. package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +3 -1
  14. package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +71 -16
  15. package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +9 -5
  16. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +2350 -73
  17. package/build/sdk-typescript/src/core/data/SDKDataCoreCached.d.ts +50 -0
  18. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreAIRequests.d.ts +19 -27
  19. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +1080 -36
  20. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +2201 -37
  21. package/build/sdk-typescript/src/core/resolvers/SDKDocsEntityItemResolver.d.ts +9 -9
  22. package/build/sdk-typescript/src/exports-pulsar.d.ts +0 -2
  23. package/build/sdk-typescript/src/exports.d.ts +38 -6
  24. package/build/sdk-typescript/src/model/base/SDKDesignSystemVersionStats.d.ts +1 -0
  25. package/build/sdk-typescript/src/model/components/SDKDesignComponentBase.d.ts +1 -0
  26. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/do-dont-guidelines/SDKDocsBlockActualDoDontGuidelines.d.ts +18 -0
  27. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed/SDKDocsBlockActualEmbed.d.ts +10 -0
  28. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-figma/SDKDocsBlockActualEmbedFigma.d.ts +10 -0
  29. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-youtube/SDKDocsBlockActualEmbedYoutube.d.ts +10 -0
  30. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/files/SDKDocsBlockActualFiles.d.ts +16 -0
  31. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/image/SDKDocsBlockActualImage.d.ts +10 -0
  32. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualDoDontGuidelines.d.ts +8 -0
  33. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbed.d.ts +6 -0
  34. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbedFigma.d.ts +6 -0
  35. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbedYoutube.d.ts +6 -0
  36. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualFiles.d.ts +6 -0
  37. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualImage.d.ts +6 -0
  38. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualShortcutLinks.d.ts +8 -0
  39. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/shortcut-links/SDKDocsBlockActualShortcutLinks.d.ts +10 -0
  40. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -1
  41. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +2 -0
  42. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +22 -0
  43. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -0
  44. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +2 -0
  45. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponentPropsTable.d.ts +11 -0
  46. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponents.d.ts +11 -0
  47. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponentsConfig.d.ts +32 -0
  48. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFiles.d.ts +22 -0
  49. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockGuideline.d.ts +25 -0
  50. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockGuidelines.d.ts +6 -0
  51. package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationLegacyBlockBuilder.d.ts +1 -1
  52. package/build/sdk-typescript/src/model/enums/SDKDesignSystemRole.d.ts +2 -1
  53. package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorDataType.d.ts +3 -1
  54. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
  55. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyCalloutType.d.ts +2 -1
  56. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyHeadingType.d.ts +3 -1
  57. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +6 -1
  58. package/build/sdk-typescript/src/model/enums/SDKFigmaComponentPreviewContainerSize.d.ts +4 -0
  59. package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +3 -3
  60. package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +1 -1
  61. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSeatType.d.ts +3 -0
  62. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +7 -0
  63. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +3 -1
  64. package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +1 -1
  65. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +5 -0
  66. package/build/sdk-typescript/src/model/files/SDKFileUpload.d.ts +9 -0
  67. package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +1 -0
  68. package/build/sdk-typescript/src/model/mcp/SDKMCPStream.d.ts +8 -0
  69. package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +10 -6
  70. package/build/sdk-typescript/src/model/messaging/SDKChatThread.d.ts +14 -0
  71. package/build/sdk-typescript/src/model/messaging/SDKChatThreadMessage.d.ts +48 -0
  72. package/build/sdk-typescript/src/model/projects/SDKForgeAgent.d.ts +8 -0
  73. package/build/sdk-typescript/src/model/projects/SDKForgeProject.d.ts +42 -0
  74. package/build/sdk-typescript/src/model/projects/SDKForgeProjectContext.d.ts +31 -0
  75. package/build/sdk-typescript/src/model/projects/SDKForgeProjectContextOverride.d.ts +20 -0
  76. package/build/sdk-typescript/src/model/projects/SDKForgeProjectDocument.d.ts +19 -0
  77. package/build/sdk-typescript/src/model/projects/SDKForgeProjectDocumentPreview.d.ts +13 -0
  78. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeature.d.ts +25 -0
  79. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureArtifact.d.ts +13 -0
  80. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureArtifactList.d.ts +7 -0
  81. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureIteration.d.ts +13 -0
  82. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessage.d.ts +26 -0
  83. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessageList.d.ts +10 -0
  84. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessageReaction.d.ts +9 -0
  85. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeaturePreview.d.ts +13 -0
  86. package/build/sdk-typescript/src/model/projects/SDKForgeProjectInvitation.d.ts +12 -0
  87. package/build/sdk-typescript/src/model/projects/SDKForgeProjectMembership.d.ts +14 -0
  88. package/build/sdk-typescript/src/model/projects/SDKForgeProjectRelation.d.ts +13 -0
  89. package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectDocumentSection.d.ts +6 -0
  90. package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectFeatureSection.d.ts +6 -0
  91. package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectSection.d.ts +12 -0
  92. package/build/sdk-typescript/src/model/storybook/SDKStorybookUpdate.d.ts +17 -0
  93. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +8 -1
  94. package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +1 -1
  95. package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +1 -1
  96. package/build/sdk-typescript/src/model/threads/SDKThreadMessage.d.ts +36 -0
  97. package/build/sdk-typescript/src/model/threads/SDKThreadMessageList.d.ts +10 -0
  98. package/build/sdk-typescript/src/model/threads/SDKThreadMessageReaction.d.ts +9 -0
  99. package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -1
  100. package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +1 -1
  101. package/build/sdk-typescript/src/model/tokens/SDKToken.d.ts +1 -0
  102. package/build/sdk-typescript/src/model/trail-events/SDKTrailEvent.d.ts +17 -0
  103. package/build/sdk-typescript/src/model/users/SDKUser.d.ts +7 -0
  104. package/build/sdk-typescript/src/model/users/SDKUserMembership.d.ts +13 -0
  105. package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +22 -9
  106. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +15 -9
  107. package/build/sdk-typescript/src/model/workspaces/SDKWorkspacePortalSettings.d.ts +12 -0
  108. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +2 -2
  109. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +7 -0
  110. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProfile.d.ts +8 -26
  111. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +72 -41
  112. package/build/sdk-typescript/src/tests/Areas/AreaRelay.spec.d.ts +1 -0
  113. package/build/sdk-typescript/src/tests/Areas/AreaThreads.spec.d.ts +1 -0
  114. package/build/sdk-typescript/src/tests/helpers.d.ts +1 -0
  115. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +1 -1
  116. package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +13 -2
  117. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownLinkResolver.d.ts +39 -0
  118. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +2 -2
  119. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +33 -10
  120. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +8 -3
  121. package/build/sdk-typescript/src/utils/RawUtils.d.ts +59 -3
  122. package/build/supernova-sdk-typescript.js +1 -2
  123. package/build/supernova-sdk-typescript.js.map +1 -1
  124. package/package.json +19 -29
  125. package/build/sdk-typescript/src/core/areas/SDKAreaAI.d.ts +0 -75
  126. package/build/sdk-typescript/src/model/acl/SDKAcl.d.ts +0 -51
  127. package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +0 -51
  128. package/build/sdk-typescript/src/model/projects/SDKProject.d.ts +0 -39
  129. package/build/sdk-typescript/src/model/projects/SDKProjectContext.d.ts +0 -47
  130. package/build/supernova-sdk-typescript.js.LICENSE.txt +0 -8
  131. /package/build/sdk-typescript/src/tests/Areas/{AreaAI.spec.d.ts → AreaMessaging.spec.d.ts} +0 -0
@@ -0,0 +1,50 @@
1
+ import { ElementDataView } from "../../model/elements/SDKElementDataView";
2
+ import { ElementProperty, ElementPropertyTargetElementType } from "../../model/elements/SDKElementProperty";
3
+ import { ElementPropertyValue } from "../../model/elements/values/SDKElementPropertyValue";
4
+ import { TokenType } from "../../model/enums/SDKTokenType";
5
+ import { TokenGroup } from "../../model/groups/SDKTokenGroup";
6
+ import { Component } from "../../model/components/SDKComponent";
7
+ import { ComponentGroup } from "../../model/groups/SDKComponentGroup";
8
+ import { DesignComponentGroup } from "../../model/groups/SDKDesignComponentGroup";
9
+ import { DesignComponent } from "../../model/components/SDKDesignComponent";
10
+ import { Source } from "../../model/support/SDKSource";
11
+ import { TokenTheme } from "../../model/themes/SDKTokenTheme";
12
+ import { Token } from "../../model/tokens/SDKToken";
13
+ import { DataCore } from "./SDKDataCore";
14
+ export declare class DataCoreCached extends DataCore {
15
+ private tokensCache;
16
+ private tokenGroupsCache;
17
+ private designSystemSourcesCache;
18
+ private themesCache;
19
+ private elementPropertyDefinitionsCache;
20
+ private elementPropertyValuesCache;
21
+ private elementViewsCache;
22
+ private componentsCache;
23
+ private componentGroupsCache;
24
+ private designComponentsCache;
25
+ private designComponentGroupsCache;
26
+ tokens(designSystemId: string, versionId: string, filter?: {
27
+ type?: TokenType;
28
+ brandId?: string;
29
+ }): Promise<Token[]>;
30
+ tokenGroups(designSystemId: string, versionId: string, filter?: {
31
+ type?: TokenType;
32
+ brandId?: string;
33
+ }): Promise<TokenGroup[]>;
34
+ designSystemSources(designSystemId: string): Promise<Source[]>;
35
+ themes(designSystemId: string, versionId: string): Promise<TokenTheme[]>;
36
+ elementPropertyDefinitions(designSystemId: string, versionId: string, type: ElementPropertyTargetElementType): Promise<ElementProperty[]>;
37
+ elementPropertyValues(designSystemId: string, versionId: string): Promise<ElementPropertyValue[]>;
38
+ elementViews(designSystemId: string, versionId: string, type: ElementPropertyTargetElementType): Promise<ElementDataView[]>;
39
+ components(designSystemId: string, versionId: string, filter?: {
40
+ brandId?: string;
41
+ }): Promise<Component[]>;
42
+ componentGroups(designSystemId: string, versionId: string): Promise<ComponentGroup[]>;
43
+ designComponents(designSystemId: string, versionId: string, filter?: {
44
+ brandId?: string;
45
+ }): Promise<DesignComponent[]>;
46
+ designComponentGroups(designSystemId: string, versionId: string, filter?: {
47
+ brandId?: string;
48
+ }): Promise<DesignComponentGroup[]>;
49
+ private cached;
50
+ }
@@ -1,36 +1,28 @@
1
- import { AIGetRouteQueryTask } from "../../areas/SDKAreaAI";
1
+ import { AIAgentPersona, AIGetRouteQueryTask, RelaySummarizeStrategy } from "../../areas/SDKAreaRelay";
2
2
  import { DataBridge } from "../SDKDataBridge";
3
3
  export declare class DataCoreAIRequests {
4
4
  private bridge;
5
5
  constructor(bridge: DataBridge);
6
- /** Remote: Summarizes a prompt into a title. Response is not streamed */
7
- summarizeIntoTitle(workspaceId: string, designSystemId: string, versionId: string, text: string, options: {
8
- maxWordCount: number;
9
- strategy: "noun" | "verb";
10
- }): Promise<string>;
11
- /** Remote: Autocompletes a prompt into a full text. Response is not streamed. */
12
- autocompleteText(workspaceId: string, designSystemId: string, versionId: string, textToComplete: string, options?: {
13
- maximumLength: number;
14
- previousText?: string;
15
- afterText?: string;
6
+ invokeAmy(workspaceId: string, designSystemId: string, versionId: string, prompt: string, chatId: string, brandId?: string, promptMetadata?: {
7
+ forceBehavior?: {
8
+ llm?: {
9
+ model: string;
10
+ provider: "Anthropic" | "OpenAI" | "xAI" | "Google";
11
+ };
12
+ prompt?: string;
13
+ };
14
+ [key: string]: any;
15
+ }): Promise<ReadableStreamDefaultReader<Uint8Array>>;
16
+ /** Invokes an AI agent to answer questions or perform tasks based on the provided prompt */
17
+ invokeAgent(agent: AIAgentPersona, prompt: string, projectId: string, branchId?: string): Promise<ReadableStreamDefaultReader<Uint8Array>>;
18
+ /** Summarizes text using AI */
19
+ summarizeText(text: string, options?: {
20
+ maxWords?: number;
21
+ strategy?: RelaySummarizeStrategy;
16
22
  }): Promise<{
17
- completion: string;
18
- fullText: string;
23
+ enteredText: string;
24
+ summarizedText: string;
19
25
  }>;
20
- /** Remote: Answers question based on the data of design system in natural language. This method is non-streaming. */
21
- answer(workspaceId: string, designSystemId: string, versionId: string, question: string, options: {
22
- persona: "designer" | "developer";
23
- scope: "all" | "tokens" | "components" | "assets" | "docs";
24
- density: "compact" | "full";
25
- }): Promise<string>;
26
- /** Remote: Answers question based on the data of design system in natural language. This method streams answer. */
27
- answerAsStream(workspaceId: string, designSystemId: string, versionId: string, question: string, options: {
28
- persona: "designer" | "developer";
29
- scope: "all" | "tokens" | "components" | "assets" | "docs";
30
- density: "compact" | "full";
31
- }): Promise<ReadableStreamDefaultReader<Uint8Array>>;
32
- /** Indexes or reindexes a design system to prepare it for QA engine */
33
- rebuildAnswerIndex(workspaceId: string, designSystemId: string, versionId: string): Promise<void>;
34
26
  /** Retrieves executable url for various AI tasks */
35
27
  executableTaskUrl(task: AIGetRouteQueryTask): Promise<string>;
36
28
  cachedEndpoints: Map<AIGetRouteQueryTask, string>;