@supernova-studio/client 0.58.19 → 1.0.0-alpha.2

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 (196) hide show
  1. package/dist/index.d.mts +1349 -1323
  2. package/dist/index.d.ts +1349 -1323
  3. package/dist/index.js +463 -339
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +766 -642
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +4 -3
  8. package/src/api/client.ts +0 -31
  9. package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +0 -114
  10. package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +0 -92
  11. package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +0 -52
  12. package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +0 -34
  13. package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +0 -131
  14. package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +0 -69
  15. package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +0 -72
  16. package/src/api/conversion/documentation/index.ts +0 -7
  17. package/src/api/conversion/export/index.ts +0 -1
  18. package/src/api/conversion/export/pipeline.ts +0 -25
  19. package/src/api/conversion/index.ts +0 -3
  20. package/src/api/conversion/integrations/git.ts +0 -37
  21. package/src/api/conversion/integrations/index.ts +0 -2
  22. package/src/api/conversion/integrations/integration.ts +0 -37
  23. package/src/api/dto/aux/color.ts +0 -7
  24. package/src/api/dto/aux/index.ts +0 -3
  25. package/src/api/dto/aux/meta.ts +0 -8
  26. package/src/api/dto/aux/pagination.ts +0 -8
  27. package/src/api/dto/bff/app-bootstrap-data.ts +0 -20
  28. package/src/api/dto/bff/index.ts +0 -1
  29. package/src/api/dto/collections/index.ts +0 -1
  30. package/src/api/dto/collections/token-collection.ts +0 -24
  31. package/src/api/dto/design-systems/brand.ts +0 -44
  32. package/src/api/dto/design-systems/component.ts +0 -40
  33. package/src/api/dto/design-systems/contact.ts +0 -11
  34. package/src/api/dto/design-systems/data-source.ts +0 -141
  35. package/src/api/dto/design-systems/design-system.ts +0 -68
  36. package/src/api/dto/design-systems/elements-diff.ts +0 -14
  37. package/src/api/dto/design-systems/figma-variables.ts +0 -108
  38. package/src/api/dto/design-systems/import-job.ts +0 -61
  39. package/src/api/dto/design-systems/index.ts +0 -13
  40. package/src/api/dto/design-systems/members.ts +0 -50
  41. package/src/api/dto/design-systems/role.ts +0 -11
  42. package/src/api/dto/design-systems/stats.ts +0 -19
  43. package/src/api/dto/design-systems/version.ts +0 -56
  44. package/src/api/dto/design-systems/view.ts +0 -45
  45. package/src/api/dto/design-tokens/design-token.ts +0 -78
  46. package/src/api/dto/design-tokens/index.ts +0 -1
  47. package/src/api/dto/documentation/anchor.ts +0 -15
  48. package/src/api/dto/documentation/approvals.ts +0 -15
  49. package/src/api/dto/documentation/block-definition.ts +0 -28
  50. package/src/api/dto/documentation/block.ts +0 -6
  51. package/src/api/dto/documentation/documentation-page-snapshot.ts +0 -18
  52. package/src/api/dto/documentation/index.ts +0 -8
  53. package/src/api/dto/documentation/link-preview.ts +0 -23
  54. package/src/api/dto/documentation/publish.ts +0 -23
  55. package/src/api/dto/documentation/room.ts +0 -12
  56. package/src/api/dto/elements/components/figma-component-group.ts +0 -19
  57. package/src/api/dto/elements/components/figma-component.ts +0 -56
  58. package/src/api/dto/elements/components/index.ts +0 -2
  59. package/src/api/dto/elements/documentation/draft-state.ts +0 -37
  60. package/src/api/dto/elements/documentation/group-action.ts +0 -108
  61. package/src/api/dto/elements/documentation/group-v1.ts +0 -35
  62. package/src/api/dto/elements/documentation/group-v2.ts +0 -117
  63. package/src/api/dto/elements/documentation/hierarchy.ts +0 -22
  64. package/src/api/dto/elements/documentation/index.ts +0 -13
  65. package/src/api/dto/elements/documentation/item-configuration-v1.ts +0 -24
  66. package/src/api/dto/elements/documentation/item-configuration-v2.ts +0 -14
  67. package/src/api/dto/elements/documentation/metadata.ts +0 -8
  68. package/src/api/dto/elements/documentation/page-actions-v2.ts +0 -121
  69. package/src/api/dto/elements/documentation/page-content.ts +0 -15
  70. package/src/api/dto/elements/documentation/page-v1.ts +0 -21
  71. package/src/api/dto/elements/documentation/page-v2.ts +0 -120
  72. package/src/api/dto/elements/documentation/structure.ts +0 -37
  73. package/src/api/dto/elements/elements-action-v2.ts +0 -104
  74. package/src/api/dto/elements/figma-nodes/figma-node.ts +0 -106
  75. package/src/api/dto/elements/figma-nodes/index.ts +0 -2
  76. package/src/api/dto/elements/figma-nodes/node-actions-v2.ts +0 -24
  77. package/src/api/dto/elements/frame-node-structures/frame-node-structure.ts +0 -17
  78. package/src/api/dto/elements/frame-node-structures/index.ts +0 -1
  79. package/src/api/dto/elements/get-elements-v2.ts +0 -21
  80. package/src/api/dto/elements/index.ts +0 -7
  81. package/src/api/dto/elements/properties/index.ts +0 -2
  82. package/src/api/dto/elements/properties/property-definitions.ts +0 -75
  83. package/src/api/dto/elements/properties/property-values.ts +0 -38
  84. package/src/api/dto/export/exporter-property.ts +0 -95
  85. package/src/api/dto/export/exporter.ts +0 -87
  86. package/src/api/dto/export/filter.ts +0 -6
  87. package/src/api/dto/export/index.ts +0 -5
  88. package/src/api/dto/export/job.ts +0 -87
  89. package/src/api/dto/export/pipeline.ts +0 -43
  90. package/src/api/dto/figma-components/assets/download.ts +0 -30
  91. package/src/api/dto/figma-components/assets/index.ts +0 -1
  92. package/src/api/dto/figma-components/index.ts +0 -1
  93. package/src/api/dto/index.ts +0 -13
  94. package/src/api/dto/liveblocks/auth-response.ts +0 -7
  95. package/src/api/dto/liveblocks/index.ts +0 -1
  96. package/src/api/dto/themes/index.ts +0 -2
  97. package/src/api/dto/themes/override.ts +0 -27
  98. package/src/api/dto/themes/theme.ts +0 -45
  99. package/src/api/dto/users/authenticated-user.ts +0 -43
  100. package/src/api/dto/users/index.ts +0 -3
  101. package/src/api/dto/users/update.ts +0 -8
  102. package/src/api/dto/users/user.ts +0 -31
  103. package/src/api/dto/workspaces/git.ts +0 -32
  104. package/src/api/dto/workspaces/index.ts +0 -6
  105. package/src/api/dto/workspaces/integrations.ts +0 -34
  106. package/src/api/dto/workspaces/invitations.ts +0 -30
  107. package/src/api/dto/workspaces/membership.ts +0 -41
  108. package/src/api/dto/workspaces/npm-registry.ts +0 -35
  109. package/src/api/dto/workspaces/workspace.ts +0 -34
  110. package/src/api/endpoints/codegen/codegen.ts +0 -13
  111. package/src/api/endpoints/codegen/exporters.ts +0 -13
  112. package/src/api/endpoints/codegen/index.ts +0 -3
  113. package/src/api/endpoints/codegen/pipelines.ts +0 -37
  114. package/src/api/endpoints/design-system/bff.ts +0 -13
  115. package/src/api/endpoints/design-system/contact.ts +0 -12
  116. package/src/api/endpoints/design-system/design-systems.ts +0 -55
  117. package/src/api/endpoints/design-system/index.ts +0 -6
  118. package/src/api/endpoints/design-system/members.ts +0 -24
  119. package/src/api/endpoints/design-system/sources.ts +0 -35
  120. package/src/api/endpoints/design-system/versions/brands.ts +0 -45
  121. package/src/api/endpoints/design-system/versions/documentation.ts +0 -27
  122. package/src/api/endpoints/design-system/versions/ds-components.ts +0 -28
  123. package/src/api/endpoints/design-system/versions/elements-action.ts +0 -55
  124. package/src/api/endpoints/design-system/versions/elements.ts +0 -13
  125. package/src/api/endpoints/design-system/versions/figma-component-groups.ts +0 -13
  126. package/src/api/endpoints/design-system/versions/figma-components.ts +0 -13
  127. package/src/api/endpoints/design-system/versions/figma-frame-structures.ts +0 -13
  128. package/src/api/endpoints/design-system/versions/import-jobs.ts +0 -13
  129. package/src/api/endpoints/design-system/versions/index.ts +0 -18
  130. package/src/api/endpoints/design-system/versions/overrides.ts +0 -17
  131. package/src/api/endpoints/design-system/versions/property-definitions.ts +0 -43
  132. package/src/api/endpoints/design-system/versions/property-values.ts +0 -25
  133. package/src/api/endpoints/design-system/versions/stats.ts +0 -12
  134. package/src/api/endpoints/design-system/versions/themes.ts +0 -35
  135. package/src/api/endpoints/design-system/versions/token-collections.ts +0 -13
  136. package/src/api/endpoints/design-system/versions/token-groups.ts +0 -28
  137. package/src/api/endpoints/design-system/versions/tokens.ts +0 -27
  138. package/src/api/endpoints/design-system/versions/versions.ts +0 -79
  139. package/src/api/endpoints/index.ts +0 -5
  140. package/src/api/endpoints/liveblocks.ts +0 -14
  141. package/src/api/endpoints/users.ts +0 -26
  142. package/src/api/endpoints/workspaces/index.ts +0 -3
  143. package/src/api/endpoints/workspaces/workspace-invites.ts +0 -34
  144. package/src/api/endpoints/workspaces/workspace-members.ts +0 -31
  145. package/src/api/endpoints/workspaces/workspaces.ts +0 -47
  146. package/src/api/index.ts +0 -6
  147. package/src/api/payloads/design-systems/index.ts +0 -2
  148. package/src/api/payloads/design-systems/update-design-system.ts +0 -29
  149. package/src/api/payloads/design-systems/version.ts +0 -29
  150. package/src/api/payloads/documentation/block-definitions.ts +0 -12
  151. package/src/api/payloads/documentation/design-data-doc-diff.ts +0 -7
  152. package/src/api/payloads/documentation/index.ts +0 -2
  153. package/src/api/payloads/export/index.ts +0 -1
  154. package/src/api/payloads/export/pipeline.ts +0 -50
  155. package/src/api/payloads/index.ts +0 -6
  156. package/src/api/payloads/liveblocks/auth.ts +0 -7
  157. package/src/api/payloads/liveblocks/index.ts +0 -1
  158. package/src/api/payloads/users/index.ts +0 -2
  159. package/src/api/payloads/users/notifications/index.ts +0 -1
  160. package/src/api/payloads/users/notifications/notification-settings.ts +0 -17
  161. package/src/api/payloads/users/profile/index.ts +0 -1
  162. package/src/api/payloads/users/profile/update.ts +0 -4
  163. package/src/api/payloads/workspaces/index.ts +0 -3
  164. package/src/api/payloads/workspaces/transfer-ownership.ts +0 -7
  165. package/src/api/payloads/workspaces/workspace-configuration.ts +0 -50
  166. package/src/api/payloads/workspaces/workspace-integrations.ts +0 -26
  167. package/src/api/transport/index.ts +0 -2
  168. package/src/api/transport/request-executor-error.ts +0 -66
  169. package/src/api/transport/request-executor.ts +0 -87
  170. package/src/index.ts +0 -3
  171. package/src/utils/figma.ts +0 -53
  172. package/src/utils/hash.ts +0 -62
  173. package/src/utils/index.ts +0 -3
  174. package/src/utils/query.ts +0 -18
  175. package/src/yjs/design-system-content/documentation-hierarchy.ts +0 -35
  176. package/src/yjs/design-system-content/index.ts +0 -2
  177. package/src/yjs/design-system-content/item-configuration.ts +0 -93
  178. package/src/yjs/docs-editor/blocks-to-prosemirror.ts +0 -764
  179. package/src/yjs/docs-editor/index.ts +0 -7
  180. package/src/yjs/docs-editor/list-tree-builder.ts +0 -127
  181. package/src/yjs/docs-editor/mock.ts +0 -2104
  182. package/src/yjs/docs-editor/model/block.ts +0 -8
  183. package/src/yjs/docs-editor/model/index.ts +0 -2
  184. package/src/yjs/docs-editor/model/page.ts +0 -8
  185. package/src/yjs/docs-editor/prosemirror/index.ts +0 -3
  186. package/src/yjs/docs-editor/prosemirror/inner-editor-schema.ts +0 -145
  187. package/src/yjs/docs-editor/prosemirror/main-editor-schema.ts +0 -577
  188. package/src/yjs/docs-editor/prosemirror/types.ts +0 -19
  189. package/src/yjs/docs-editor/prosemirror-to-blocks.ts +0 -975
  190. package/src/yjs/docs-editor/utils.ts +0 -115
  191. package/src/yjs/index.ts +0 -3
  192. package/src/yjs/version-room/backend.ts +0 -78
  193. package/src/yjs/version-room/base.ts +0 -211
  194. package/src/yjs/version-room/frontend.ts +0 -461
  195. package/src/yjs/version-room/index.ts +0 -4
  196. package/src/yjs/version-room/utils.ts +0 -109
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
- import { DocumentationGroupV1, DocumentationPageV1, DocumentationPageV2, DocumentationPageApproval, PageBlockDefinitionLayout as PageBlockDefinitionLayout$1, PageBlockV1, ElementGroup, DocumentationItemConfigurationV1, DocumentationItemConfigurationV2, Pipeline, GitOrganization, GitProject, GitRepository, GitBranch, ExtendedIntegration, IntegrationCredentials, SupernovaExceptionType, SsoProvider, UpdateMembershipRolesInput, PageBlockItemUntypedValue, PageBlockDefinition, PageBlockItemRichTextEditorValue, PageBlockText, PageBlockDefinitionProperty, PageBlockDefinitionMultiRichTextPropertyStyle, PageBlockItemV2, PageBlockItemRichTextValue, PageBlockItemMultiRichTextValue, PageBlockItemTableValue, PageBlockItemEmbedValue, PageBlockDefinitionPropertyType, DocumentationPageSnapshot, ElementGroupSnapshot } from '@supernova-studio/model';
1
+ import { DocumentationGroupV1, DocumentationPageV1, DocumentationPageV2, OmitStrict, ElementGroup, DocumentationPageSnapshot, ElementGroupSnapshot, DocumentationPageApproval, PageBlockDefinitionLayout as PageBlockDefinitionLayout$1, PageBlockV1, DocumentationItemConfigurationV1, DocumentationItemConfigurationV2, Pipeline, GitOrganization, GitProject, GitRepository, GitBranch, ExtendedIntegration, IntegrationCredentials, SupernovaExceptionType, SsoProvider, UpdateMembershipRolesInput, PageBlockItemUntypedValue, PageBlockDefinition, PageBlockItemRichTextEditorValue, PageBlockText, PageBlockDefinitionProperty, PageBlockDefinitionMultiRichTextPropertyStyle, PageBlockItemV2, PageBlockItemRichTextValue, PageBlockItemMultiRichTextValue, PageBlockItemTableValue, PageBlockItemEmbedValue, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
2
2
  import * as zod from 'zod';
3
3
  import zod__default, { z, ZodSchema, ZodTypeDef } from 'zod';
4
- import { RequestInit } from 'node-fetch';
5
4
  import * as Y from 'yjs';
5
+ import { RequestInit } from 'node-fetch';
6
6
  import { Schema } from 'prosemirror-model';
7
7
 
8
8
  /**
@@ -1127,188 +1127,888 @@ declare function elementGroupsToDocumentationGroupStructureDTOV1(groups: Documen
1127
1127
  declare function elementGroupsToDocumentationGroupDTOV1(groups: DocumentationGroupV1[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV1[];
1128
1128
  declare function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups: DocumentationGroupV1[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV1[];
1129
1129
 
1130
- declare const DTOColorTokenInlineData: z.ZodObject<{
1131
- value: z.ZodString;
1132
- }, "strip", z.ZodTypeAny, {
1133
- value: string;
1134
- }, {
1135
- value: string;
1136
- }>;
1137
- type DTOColorTokenInlineData = z.infer<typeof DTOColorTokenInlineData>;
1138
-
1139
- declare const DTOObjectMeta: z.ZodObject<{
1140
- name: z.ZodString;
1141
- description: z.ZodOptional<z.ZodString>;
1142
- }, "strip", z.ZodTypeAny, {
1143
- name: string;
1144
- description?: string | undefined;
1145
- }, {
1146
- name: string;
1147
- description?: string | undefined;
1148
- }>;
1149
- type DTOObjectMeta = z.infer<typeof DTOObjectMeta>;
1130
+ type LocalDocsPage = OmitStrict<DocumentationPageV2, "id" | "userSlug"> & {
1131
+ userSlug?: undefined;
1132
+ };
1133
+ type LocalDocsPageGroup = OmitStrict<ElementGroup, "id" | "brandPersistentId" | "childType" | "userSlug"> & {
1134
+ userSlug?: undefined;
1135
+ };
1136
+ declare class LocalStorage {
1137
+ private readonly pages;
1138
+ private readonly groups;
1139
+ addPage(page: LocalDocsPage): void;
1140
+ getPage(persistentId: string): LocalDocsPage;
1141
+ getAllPages(): LocalDocsPage[];
1142
+ removePage(persistentId: string): void;
1143
+ }
1150
1144
 
1151
- declare const DTOPagination: z.ZodObject<{
1152
- limit: z.ZodOptional<z.ZodString>;
1153
- offset: z.ZodOptional<z.ZodString>;
1145
+ declare const DocumentationHierarchySettings: z.ZodObject<{
1146
+ routingVersion: z.ZodString;
1147
+ isDraftFeatureAdopted: z.ZodBoolean;
1148
+ isApprovalFeatureEnabled: z.ZodBoolean;
1149
+ approvalRequiredForPublishing: z.ZodBoolean;
1154
1150
  }, "strip", z.ZodTypeAny, {
1155
- limit?: string | undefined;
1156
- offset?: string | undefined;
1151
+ isApprovalFeatureEnabled: boolean;
1152
+ approvalRequiredForPublishing: boolean;
1153
+ routingVersion: string;
1154
+ isDraftFeatureAdopted: boolean;
1157
1155
  }, {
1158
- limit?: string | undefined;
1159
- offset?: string | undefined;
1156
+ isApprovalFeatureEnabled: boolean;
1157
+ approvalRequiredForPublishing: boolean;
1158
+ routingVersion: string;
1159
+ isDraftFeatureAdopted: boolean;
1160
1160
  }>;
1161
- type DTOPagination = z.infer<typeof DTOPagination>;
1161
+ type DocumentationHierarchySettings = z.infer<typeof DocumentationHierarchySettings>;
1162
+ /**
1163
+ * @deprecated - Use FrontendVersionRoomYDoc.getDocumentationHierarchy
1164
+ */
1165
+ declare function yjsToDocumentationHierarchy(doc: Y.Doc): DTODocumentationHierarchyV2;
1162
1166
 
1163
- declare const DTOAppBootstrapDataQuery: z.ZodObject<{
1164
- preferredWorkspaceId: z.ZodOptional<z.ZodString>;
1165
- preferredDesignSystemId: z.ZodOptional<z.ZodString>;
1166
- preferredVersionId: z.ZodOptional<z.ZodString>;
1167
- preferredBrandId: z.ZodOptional<z.ZodString>;
1167
+ declare const DTODocumentationPageRoomHeaderData: z.ZodObject<{
1168
+ title: z.ZodString;
1169
+ configuration: z.ZodObject<{
1170
+ showSidebar: z.ZodBoolean;
1171
+ isPrivate: z.ZodBoolean;
1172
+ isHidden: z.ZodBoolean;
1173
+ header: z.ZodObject<{
1174
+ description: z.ZodString;
1175
+ alignment: z.ZodEnum<["Left", "Center"]>;
1176
+ foregroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1177
+ value: z.ZodString;
1178
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1179
+ }, "strip", z.ZodTypeAny, {
1180
+ value: string;
1181
+ referencedTokenId?: string | undefined;
1182
+ }, {
1183
+ value: string;
1184
+ referencedTokenId?: string | undefined;
1185
+ }>>>;
1186
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1187
+ value: z.ZodString;
1188
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1189
+ }, "strip", z.ZodTypeAny, {
1190
+ value: string;
1191
+ referencedTokenId?: string | undefined;
1192
+ }, {
1193
+ value: string;
1194
+ referencedTokenId?: string | undefined;
1195
+ }>>>;
1196
+ backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1197
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
1198
+ resource: z.ZodOptional<z.ZodObject<{
1199
+ resourceId: z.ZodString;
1200
+ url: z.ZodString;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ url: string;
1203
+ resourceId: string;
1204
+ }, {
1205
+ url: string;
1206
+ resourceId: string;
1207
+ }>>;
1208
+ figmaNode: z.ZodOptional<z.ZodObject<{
1209
+ sourceId: z.ZodString;
1210
+ frameReferenceId: z.ZodString;
1211
+ }, "strip", z.ZodTypeAny, {
1212
+ sourceId: string;
1213
+ frameReferenceId: string;
1214
+ }, {
1215
+ sourceId: string;
1216
+ frameReferenceId: string;
1217
+ }>>;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ type: "FigmaNode" | "Resource";
1220
+ resource?: {
1221
+ url: string;
1222
+ resourceId: string;
1223
+ } | undefined;
1224
+ figmaNode?: {
1225
+ sourceId: string;
1226
+ frameReferenceId: string;
1227
+ } | undefined;
1228
+ }, {
1229
+ type: "FigmaNode" | "Resource";
1230
+ resource?: {
1231
+ url: string;
1232
+ resourceId: string;
1233
+ } | undefined;
1234
+ figmaNode?: {
1235
+ sourceId: string;
1236
+ frameReferenceId: string;
1237
+ } | undefined;
1238
+ }>>>;
1239
+ backgroundImageScaleType: z.ZodEnum<["AspectFill", "AspectFit"]>;
1240
+ showBackgroundOverlay: z.ZodBoolean;
1241
+ showCoverText: z.ZodBoolean;
1242
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1243
+ }, "strip", z.ZodTypeAny, {
1244
+ description: string;
1245
+ alignment: "Left" | "Center";
1246
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1247
+ showBackgroundOverlay: boolean;
1248
+ showCoverText: boolean;
1249
+ backgroundColor?: {
1250
+ value: string;
1251
+ referencedTokenId?: string | undefined;
1252
+ } | null | undefined;
1253
+ foregroundColor?: {
1254
+ value: string;
1255
+ referencedTokenId?: string | undefined;
1256
+ } | null | undefined;
1257
+ backgroundImageAsset?: {
1258
+ type: "FigmaNode" | "Resource";
1259
+ resource?: {
1260
+ url: string;
1261
+ resourceId: string;
1262
+ } | undefined;
1263
+ figmaNode?: {
1264
+ sourceId: string;
1265
+ frameReferenceId: string;
1266
+ } | undefined;
1267
+ } | null | undefined;
1268
+ minHeight?: number | null | undefined;
1269
+ }, {
1270
+ description: string;
1271
+ alignment: "Left" | "Center";
1272
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1273
+ showBackgroundOverlay: boolean;
1274
+ showCoverText: boolean;
1275
+ backgroundColor?: {
1276
+ value: string;
1277
+ referencedTokenId?: string | undefined;
1278
+ } | null | undefined;
1279
+ foregroundColor?: {
1280
+ value: string;
1281
+ referencedTokenId?: string | undefined;
1282
+ } | null | undefined;
1283
+ backgroundImageAsset?: {
1284
+ type: "FigmaNode" | "Resource";
1285
+ resource?: {
1286
+ url: string;
1287
+ resourceId: string;
1288
+ } | undefined;
1289
+ figmaNode?: {
1290
+ sourceId: string;
1291
+ frameReferenceId: string;
1292
+ } | undefined;
1293
+ } | null | undefined;
1294
+ minHeight?: number | null | undefined;
1295
+ }>;
1296
+ }, "strip", z.ZodTypeAny, {
1297
+ showSidebar: boolean;
1298
+ isPrivate: boolean;
1299
+ isHidden: boolean;
1300
+ header: {
1301
+ description: string;
1302
+ alignment: "Left" | "Center";
1303
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1304
+ showBackgroundOverlay: boolean;
1305
+ showCoverText: boolean;
1306
+ backgroundColor?: {
1307
+ value: string;
1308
+ referencedTokenId?: string | undefined;
1309
+ } | null | undefined;
1310
+ foregroundColor?: {
1311
+ value: string;
1312
+ referencedTokenId?: string | undefined;
1313
+ } | null | undefined;
1314
+ backgroundImageAsset?: {
1315
+ type: "FigmaNode" | "Resource";
1316
+ resource?: {
1317
+ url: string;
1318
+ resourceId: string;
1319
+ } | undefined;
1320
+ figmaNode?: {
1321
+ sourceId: string;
1322
+ frameReferenceId: string;
1323
+ } | undefined;
1324
+ } | null | undefined;
1325
+ minHeight?: number | null | undefined;
1326
+ };
1327
+ }, {
1328
+ showSidebar: boolean;
1329
+ isPrivate: boolean;
1330
+ isHidden: boolean;
1331
+ header: {
1332
+ description: string;
1333
+ alignment: "Left" | "Center";
1334
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1335
+ showBackgroundOverlay: boolean;
1336
+ showCoverText: boolean;
1337
+ backgroundColor?: {
1338
+ value: string;
1339
+ referencedTokenId?: string | undefined;
1340
+ } | null | undefined;
1341
+ foregroundColor?: {
1342
+ value: string;
1343
+ referencedTokenId?: string | undefined;
1344
+ } | null | undefined;
1345
+ backgroundImageAsset?: {
1346
+ type: "FigmaNode" | "Resource";
1347
+ resource?: {
1348
+ url: string;
1349
+ resourceId: string;
1350
+ } | undefined;
1351
+ figmaNode?: {
1352
+ sourceId: string;
1353
+ frameReferenceId: string;
1354
+ } | undefined;
1355
+ } | null | undefined;
1356
+ minHeight?: number | null | undefined;
1357
+ };
1358
+ }>;
1168
1359
  }, "strip", z.ZodTypeAny, {
1169
- preferredWorkspaceId?: string | undefined;
1170
- preferredDesignSystemId?: string | undefined;
1171
- preferredVersionId?: string | undefined;
1172
- preferredBrandId?: string | undefined;
1360
+ title: string;
1361
+ configuration: {
1362
+ showSidebar: boolean;
1363
+ isPrivate: boolean;
1364
+ isHidden: boolean;
1365
+ header: {
1366
+ description: string;
1367
+ alignment: "Left" | "Center";
1368
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1369
+ showBackgroundOverlay: boolean;
1370
+ showCoverText: boolean;
1371
+ backgroundColor?: {
1372
+ value: string;
1373
+ referencedTokenId?: string | undefined;
1374
+ } | null | undefined;
1375
+ foregroundColor?: {
1376
+ value: string;
1377
+ referencedTokenId?: string | undefined;
1378
+ } | null | undefined;
1379
+ backgroundImageAsset?: {
1380
+ type: "FigmaNode" | "Resource";
1381
+ resource?: {
1382
+ url: string;
1383
+ resourceId: string;
1384
+ } | undefined;
1385
+ figmaNode?: {
1386
+ sourceId: string;
1387
+ frameReferenceId: string;
1388
+ } | undefined;
1389
+ } | null | undefined;
1390
+ minHeight?: number | null | undefined;
1391
+ };
1392
+ };
1173
1393
  }, {
1174
- preferredWorkspaceId?: string | undefined;
1175
- preferredDesignSystemId?: string | undefined;
1176
- preferredVersionId?: string | undefined;
1177
- preferredBrandId?: string | undefined;
1394
+ title: string;
1395
+ configuration: {
1396
+ showSidebar: boolean;
1397
+ isPrivate: boolean;
1398
+ isHidden: boolean;
1399
+ header: {
1400
+ description: string;
1401
+ alignment: "Left" | "Center";
1402
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1403
+ showBackgroundOverlay: boolean;
1404
+ showCoverText: boolean;
1405
+ backgroundColor?: {
1406
+ value: string;
1407
+ referencedTokenId?: string | undefined;
1408
+ } | null | undefined;
1409
+ foregroundColor?: {
1410
+ value: string;
1411
+ referencedTokenId?: string | undefined;
1412
+ } | null | undefined;
1413
+ backgroundImageAsset?: {
1414
+ type: "FigmaNode" | "Resource";
1415
+ resource?: {
1416
+ url: string;
1417
+ resourceId: string;
1418
+ } | undefined;
1419
+ figmaNode?: {
1420
+ sourceId: string;
1421
+ frameReferenceId: string;
1422
+ } | undefined;
1423
+ } | null | undefined;
1424
+ minHeight?: number | null | undefined;
1425
+ };
1426
+ };
1178
1427
  }>;
1179
- type DTOAppBootstrapDataQuery = z.infer<typeof DTOAppBootstrapDataQuery>;
1180
- declare const DTOAppBootstrapDataResponse: z.ZodObject<{
1181
- workspaceMembership: z.ZodOptional<z.ZodObject<{
1182
- workspace: z.ZodObject<{
1183
- id: z.ZodString;
1184
- profile: z.ZodObject<{
1185
- name: z.ZodString;
1186
- handle: z.ZodString;
1187
- color: z.ZodString;
1188
- avatar: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
1189
- billingDetails: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
1190
- address?: {
1191
- street1?: string | undefined;
1192
- street2?: string | undefined;
1193
- city?: string | undefined;
1194
- postal?: string | undefined;
1195
- country?: string | undefined;
1196
- state?: string | undefined;
1197
- } | undefined;
1198
- email?: string | undefined;
1199
- companyName?: string | undefined;
1200
- companyId?: string | undefined;
1201
- notes?: string | undefined;
1202
- vat?: string | undefined;
1203
- poNumber?: string | undefined;
1204
- }, z.ZodTypeDef, {
1205
- address?: {
1206
- street1?: string | null | undefined;
1207
- street2?: string | null | undefined;
1208
- city?: string | null | undefined;
1209
- postal?: string | null | undefined;
1210
- country?: string | null | undefined;
1211
- state?: string | null | undefined;
1212
- } | null | undefined;
1213
- email?: string | null | undefined;
1214
- companyName?: string | null | undefined;
1215
- companyId?: string | null | undefined;
1216
- notes?: string | null | undefined;
1217
- vat?: string | null | undefined;
1218
- poNumber?: string | null | undefined;
1219
- }>>>, {
1220
- address?: {
1221
- street1?: string | undefined;
1222
- street2?: string | undefined;
1223
- city?: string | undefined;
1224
- postal?: string | undefined;
1225
- country?: string | undefined;
1226
- state?: string | undefined;
1227
- } | undefined;
1228
- email?: string | undefined;
1229
- companyName?: string | undefined;
1230
- companyId?: string | undefined;
1231
- notes?: string | undefined;
1232
- vat?: string | undefined;
1233
- poNumber?: string | undefined;
1234
- } | undefined, {
1235
- address?: {
1236
- street1?: string | null | undefined;
1237
- street2?: string | null | undefined;
1238
- city?: string | null | undefined;
1239
- postal?: string | null | undefined;
1240
- country?: string | null | undefined;
1241
- state?: string | null | undefined;
1242
- } | null | undefined;
1243
- email?: string | null | undefined;
1244
- companyName?: string | null | undefined;
1245
- companyId?: string | null | undefined;
1246
- notes?: string | null | undefined;
1247
- vat?: string | null | undefined;
1248
- poNumber?: string | null | undefined;
1249
- } | null | undefined>;
1428
+ type DTODocumentationPageRoomHeaderData = z.infer<typeof DTODocumentationPageRoomHeaderData>;
1429
+ declare const DTODocumentationPageRoomHeaderDataUpdate: z.ZodObject<{
1430
+ title: z.ZodOptional<z.ZodString>;
1431
+ configuration: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<Omit<{
1432
+ showSidebar: z.ZodBoolean;
1433
+ isPrivate: z.ZodBoolean;
1434
+ isHidden: z.ZodBoolean;
1435
+ header: z.ZodObject<{
1436
+ description: z.ZodString;
1437
+ alignment: z.ZodEnum<["Left", "Center"]>;
1438
+ foregroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1439
+ value: z.ZodString;
1440
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1250
1441
  }, "strip", z.ZodTypeAny, {
1251
- name: string;
1252
- color: string;
1253
- handle: string;
1254
- avatar?: string | undefined;
1255
- billingDetails?: {
1256
- address?: {
1257
- street1?: string | undefined;
1258
- street2?: string | undefined;
1259
- city?: string | undefined;
1260
- postal?: string | undefined;
1261
- country?: string | undefined;
1262
- state?: string | undefined;
1263
- } | undefined;
1264
- email?: string | undefined;
1265
- companyName?: string | undefined;
1266
- companyId?: string | undefined;
1267
- notes?: string | undefined;
1268
- vat?: string | undefined;
1269
- poNumber?: string | undefined;
1442
+ value: string;
1443
+ referencedTokenId?: string | undefined;
1444
+ }, {
1445
+ value: string;
1446
+ referencedTokenId?: string | undefined;
1447
+ }>>>;
1448
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1449
+ value: z.ZodString;
1450
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1451
+ }, "strip", z.ZodTypeAny, {
1452
+ value: string;
1453
+ referencedTokenId?: string | undefined;
1454
+ }, {
1455
+ value: string;
1456
+ referencedTokenId?: string | undefined;
1457
+ }>>>;
1458
+ backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1459
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
1460
+ resource: z.ZodOptional<z.ZodObject<{
1461
+ resourceId: z.ZodString;
1462
+ url: z.ZodString;
1463
+ }, "strip", z.ZodTypeAny, {
1464
+ url: string;
1465
+ resourceId: string;
1466
+ }, {
1467
+ url: string;
1468
+ resourceId: string;
1469
+ }>>;
1470
+ figmaNode: z.ZodOptional<z.ZodObject<{
1471
+ sourceId: z.ZodString;
1472
+ frameReferenceId: z.ZodString;
1473
+ }, "strip", z.ZodTypeAny, {
1474
+ sourceId: string;
1475
+ frameReferenceId: string;
1476
+ }, {
1477
+ sourceId: string;
1478
+ frameReferenceId: string;
1479
+ }>>;
1480
+ }, "strip", z.ZodTypeAny, {
1481
+ type: "FigmaNode" | "Resource";
1482
+ resource?: {
1483
+ url: string;
1484
+ resourceId: string;
1485
+ } | undefined;
1486
+ figmaNode?: {
1487
+ sourceId: string;
1488
+ frameReferenceId: string;
1270
1489
  } | undefined;
1271
1490
  }, {
1272
- name: string;
1273
- color: string;
1274
- handle: string;
1275
- avatar?: string | null | undefined;
1276
- billingDetails?: {
1277
- address?: {
1278
- street1?: string | null | undefined;
1279
- street2?: string | null | undefined;
1280
- city?: string | null | undefined;
1281
- postal?: string | null | undefined;
1282
- country?: string | null | undefined;
1283
- state?: string | null | undefined;
1284
- } | null | undefined;
1285
- email?: string | null | undefined;
1286
- companyName?: string | null | undefined;
1287
- companyId?: string | null | undefined;
1288
- notes?: string | null | undefined;
1289
- vat?: string | null | undefined;
1290
- poNumber?: string | null | undefined;
1291
- } | null | undefined;
1292
- }>;
1293
- subscription: z.ZodObject<{
1294
- stripeSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
- stripeCustomerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1296
- status: z.ZodOptional<z.ZodEnum<["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]>>;
1297
- subscriptionStatus: z.ZodOptional<z.ZodEnum<["trialing", "active", "past_due", "canceled", "unpaid", "incomplete_expired", "incomplete", "unknown"]>>;
1298
- internalStatus: z.ZodOptional<z.ZodEnum<["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]>>;
1299
- product: z.ZodEnum<["free", "team", "company", "enterprise"]>;
1300
- featuresSummary: z.ZodOptional<z.ZodObject<{
1301
- designSystems: z.ZodObject<{
1302
- max: z.ZodNumber;
1303
- errorMessage: z.ZodString;
1304
- errorReason: z.ZodString;
1305
- }, "strip", z.ZodTypeAny, {
1306
- max: number;
1307
- errorMessage: string;
1308
- errorReason: string;
1309
- }, {
1310
- max: number;
1311
- errorMessage: string;
1491
+ type: "FigmaNode" | "Resource";
1492
+ resource?: {
1493
+ url: string;
1494
+ resourceId: string;
1495
+ } | undefined;
1496
+ figmaNode?: {
1497
+ sourceId: string;
1498
+ frameReferenceId: string;
1499
+ } | undefined;
1500
+ }>>>;
1501
+ backgroundImageScaleType: z.ZodEnum<["AspectFill", "AspectFit"]>;
1502
+ showBackgroundOverlay: z.ZodBoolean;
1503
+ showCoverText: z.ZodBoolean;
1504
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1505
+ }, "strip", z.ZodTypeAny, {
1506
+ description: string;
1507
+ alignment: "Left" | "Center";
1508
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1509
+ showBackgroundOverlay: boolean;
1510
+ showCoverText: boolean;
1511
+ backgroundColor?: {
1512
+ value: string;
1513
+ referencedTokenId?: string | undefined;
1514
+ } | null | undefined;
1515
+ foregroundColor?: {
1516
+ value: string;
1517
+ referencedTokenId?: string | undefined;
1518
+ } | null | undefined;
1519
+ backgroundImageAsset?: {
1520
+ type: "FigmaNode" | "Resource";
1521
+ resource?: {
1522
+ url: string;
1523
+ resourceId: string;
1524
+ } | undefined;
1525
+ figmaNode?: {
1526
+ sourceId: string;
1527
+ frameReferenceId: string;
1528
+ } | undefined;
1529
+ } | null | undefined;
1530
+ minHeight?: number | null | undefined;
1531
+ }, {
1532
+ description: string;
1533
+ alignment: "Left" | "Center";
1534
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1535
+ showBackgroundOverlay: boolean;
1536
+ showCoverText: boolean;
1537
+ backgroundColor?: {
1538
+ value: string;
1539
+ referencedTokenId?: string | undefined;
1540
+ } | null | undefined;
1541
+ foregroundColor?: {
1542
+ value: string;
1543
+ referencedTokenId?: string | undefined;
1544
+ } | null | undefined;
1545
+ backgroundImageAsset?: {
1546
+ type: "FigmaNode" | "Resource";
1547
+ resource?: {
1548
+ url: string;
1549
+ resourceId: string;
1550
+ } | undefined;
1551
+ figmaNode?: {
1552
+ sourceId: string;
1553
+ frameReferenceId: string;
1554
+ } | undefined;
1555
+ } | null | undefined;
1556
+ minHeight?: number | null | undefined;
1557
+ }>;
1558
+ }, "header">, {
1559
+ header: z.ZodObject<{
1560
+ description: z.ZodOptional<z.ZodString>;
1561
+ alignment: z.ZodOptional<z.ZodEnum<["Left", "Center"]>>;
1562
+ foregroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1563
+ value: z.ZodString;
1564
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1565
+ }, "strip", z.ZodTypeAny, {
1566
+ value: string;
1567
+ referencedTokenId?: string | undefined;
1568
+ }, {
1569
+ value: string;
1570
+ referencedTokenId?: string | undefined;
1571
+ }>>>>;
1572
+ backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1573
+ value: z.ZodString;
1574
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1575
+ }, "strip", z.ZodTypeAny, {
1576
+ value: string;
1577
+ referencedTokenId?: string | undefined;
1578
+ }, {
1579
+ value: string;
1580
+ referencedTokenId?: string | undefined;
1581
+ }>>>>;
1582
+ backgroundImageAsset: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1583
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
1584
+ resource: z.ZodOptional<z.ZodObject<{
1585
+ resourceId: z.ZodString;
1586
+ url: z.ZodString;
1587
+ }, "strip", z.ZodTypeAny, {
1588
+ url: string;
1589
+ resourceId: string;
1590
+ }, {
1591
+ url: string;
1592
+ resourceId: string;
1593
+ }>>;
1594
+ figmaNode: z.ZodOptional<z.ZodObject<{
1595
+ sourceId: z.ZodString;
1596
+ frameReferenceId: z.ZodString;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ sourceId: string;
1599
+ frameReferenceId: string;
1600
+ }, {
1601
+ sourceId: string;
1602
+ frameReferenceId: string;
1603
+ }>>;
1604
+ }, "strip", z.ZodTypeAny, {
1605
+ type: "FigmaNode" | "Resource";
1606
+ resource?: {
1607
+ url: string;
1608
+ resourceId: string;
1609
+ } | undefined;
1610
+ figmaNode?: {
1611
+ sourceId: string;
1612
+ frameReferenceId: string;
1613
+ } | undefined;
1614
+ }, {
1615
+ type: "FigmaNode" | "Resource";
1616
+ resource?: {
1617
+ url: string;
1618
+ resourceId: string;
1619
+ } | undefined;
1620
+ figmaNode?: {
1621
+ sourceId: string;
1622
+ frameReferenceId: string;
1623
+ } | undefined;
1624
+ }>>>>;
1625
+ backgroundImageScaleType: z.ZodOptional<z.ZodEnum<["AspectFill", "AspectFit"]>>;
1626
+ showBackgroundOverlay: z.ZodOptional<z.ZodBoolean>;
1627
+ showCoverText: z.ZodOptional<z.ZodBoolean>;
1628
+ minHeight: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ description?: string | undefined;
1631
+ alignment?: "Left" | "Center" | undefined;
1632
+ foregroundColor?: {
1633
+ value: string;
1634
+ referencedTokenId?: string | undefined;
1635
+ } | null | undefined;
1636
+ backgroundColor?: {
1637
+ value: string;
1638
+ referencedTokenId?: string | undefined;
1639
+ } | null | undefined;
1640
+ backgroundImageAsset?: {
1641
+ type: "FigmaNode" | "Resource";
1642
+ resource?: {
1643
+ url: string;
1644
+ resourceId: string;
1645
+ } | undefined;
1646
+ figmaNode?: {
1647
+ sourceId: string;
1648
+ frameReferenceId: string;
1649
+ } | undefined;
1650
+ } | null | undefined;
1651
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1652
+ showBackgroundOverlay?: boolean | undefined;
1653
+ showCoverText?: boolean | undefined;
1654
+ minHeight?: number | null | undefined;
1655
+ }, {
1656
+ description?: string | undefined;
1657
+ alignment?: "Left" | "Center" | undefined;
1658
+ foregroundColor?: {
1659
+ value: string;
1660
+ referencedTokenId?: string | undefined;
1661
+ } | null | undefined;
1662
+ backgroundColor?: {
1663
+ value: string;
1664
+ referencedTokenId?: string | undefined;
1665
+ } | null | undefined;
1666
+ backgroundImageAsset?: {
1667
+ type: "FigmaNode" | "Resource";
1668
+ resource?: {
1669
+ url: string;
1670
+ resourceId: string;
1671
+ } | undefined;
1672
+ figmaNode?: {
1673
+ sourceId: string;
1674
+ frameReferenceId: string;
1675
+ } | undefined;
1676
+ } | null | undefined;
1677
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1678
+ showBackgroundOverlay?: boolean | undefined;
1679
+ showCoverText?: boolean | undefined;
1680
+ minHeight?: number | null | undefined;
1681
+ }>;
1682
+ }>, "strip", z.ZodTypeAny, {
1683
+ showSidebar: boolean;
1684
+ isPrivate: boolean;
1685
+ isHidden: boolean;
1686
+ header: {
1687
+ description?: string | undefined;
1688
+ alignment?: "Left" | "Center" | undefined;
1689
+ foregroundColor?: {
1690
+ value: string;
1691
+ referencedTokenId?: string | undefined;
1692
+ } | null | undefined;
1693
+ backgroundColor?: {
1694
+ value: string;
1695
+ referencedTokenId?: string | undefined;
1696
+ } | null | undefined;
1697
+ backgroundImageAsset?: {
1698
+ type: "FigmaNode" | "Resource";
1699
+ resource?: {
1700
+ url: string;
1701
+ resourceId: string;
1702
+ } | undefined;
1703
+ figmaNode?: {
1704
+ sourceId: string;
1705
+ frameReferenceId: string;
1706
+ } | undefined;
1707
+ } | null | undefined;
1708
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1709
+ showBackgroundOverlay?: boolean | undefined;
1710
+ showCoverText?: boolean | undefined;
1711
+ minHeight?: number | null | undefined;
1712
+ };
1713
+ }, {
1714
+ showSidebar: boolean;
1715
+ isPrivate: boolean;
1716
+ isHidden: boolean;
1717
+ header: {
1718
+ description?: string | undefined;
1719
+ alignment?: "Left" | "Center" | undefined;
1720
+ foregroundColor?: {
1721
+ value: string;
1722
+ referencedTokenId?: string | undefined;
1723
+ } | null | undefined;
1724
+ backgroundColor?: {
1725
+ value: string;
1726
+ referencedTokenId?: string | undefined;
1727
+ } | null | undefined;
1728
+ backgroundImageAsset?: {
1729
+ type: "FigmaNode" | "Resource";
1730
+ resource?: {
1731
+ url: string;
1732
+ resourceId: string;
1733
+ } | undefined;
1734
+ figmaNode?: {
1735
+ sourceId: string;
1736
+ frameReferenceId: string;
1737
+ } | undefined;
1738
+ } | null | undefined;
1739
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1740
+ showBackgroundOverlay?: boolean | undefined;
1741
+ showCoverText?: boolean | undefined;
1742
+ minHeight?: number | null | undefined;
1743
+ };
1744
+ }>>;
1745
+ }, "strip", z.ZodTypeAny, {
1746
+ title?: string | undefined;
1747
+ configuration?: {
1748
+ showSidebar: boolean;
1749
+ isPrivate: boolean;
1750
+ isHidden: boolean;
1751
+ header: {
1752
+ description?: string | undefined;
1753
+ alignment?: "Left" | "Center" | undefined;
1754
+ foregroundColor?: {
1755
+ value: string;
1756
+ referencedTokenId?: string | undefined;
1757
+ } | null | undefined;
1758
+ backgroundColor?: {
1759
+ value: string;
1760
+ referencedTokenId?: string | undefined;
1761
+ } | null | undefined;
1762
+ backgroundImageAsset?: {
1763
+ type: "FigmaNode" | "Resource";
1764
+ resource?: {
1765
+ url: string;
1766
+ resourceId: string;
1767
+ } | undefined;
1768
+ figmaNode?: {
1769
+ sourceId: string;
1770
+ frameReferenceId: string;
1771
+ } | undefined;
1772
+ } | null | undefined;
1773
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1774
+ showBackgroundOverlay?: boolean | undefined;
1775
+ showCoverText?: boolean | undefined;
1776
+ minHeight?: number | null | undefined;
1777
+ };
1778
+ } | undefined;
1779
+ }, {
1780
+ title?: string | undefined;
1781
+ configuration?: {
1782
+ showSidebar: boolean;
1783
+ isPrivate: boolean;
1784
+ isHidden: boolean;
1785
+ header: {
1786
+ description?: string | undefined;
1787
+ alignment?: "Left" | "Center" | undefined;
1788
+ foregroundColor?: {
1789
+ value: string;
1790
+ referencedTokenId?: string | undefined;
1791
+ } | null | undefined;
1792
+ backgroundColor?: {
1793
+ value: string;
1794
+ referencedTokenId?: string | undefined;
1795
+ } | null | undefined;
1796
+ backgroundImageAsset?: {
1797
+ type: "FigmaNode" | "Resource";
1798
+ resource?: {
1799
+ url: string;
1800
+ resourceId: string;
1801
+ } | undefined;
1802
+ figmaNode?: {
1803
+ sourceId: string;
1804
+ frameReferenceId: string;
1805
+ } | undefined;
1806
+ } | null | undefined;
1807
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1808
+ showBackgroundOverlay?: boolean | undefined;
1809
+ showCoverText?: boolean | undefined;
1810
+ minHeight?: number | null | undefined;
1811
+ };
1812
+ } | undefined;
1813
+ }>;
1814
+ type DTODocumentationPageRoomHeaderDataUpdate = z.infer<typeof DTODocumentationPageRoomHeaderDataUpdate>;
1815
+ declare function itemConfigurationToYjs(yDoc: Y.Doc, item: DTODocumentationPageRoomHeaderDataUpdate): void;
1816
+ declare function yjsToItemConfiguration(yDoc: Y.Doc): DTODocumentationPageRoomHeaderData;
1817
+
1818
+ type VersionRoomDocsPage = DocumentationPageV2;
1819
+ type VersionRoomDocsPageGroup = ElementGroup;
1820
+ type VersionRoomBaseYDocState = {
1821
+ pages: VersionRoomDocsPage[];
1822
+ pageSnapshots: DocumentationPageSnapshot[];
1823
+ pageContentHashes: Record<string, string>;
1824
+ groups: VersionRoomDocsPageGroup[];
1825
+ groupSnapshots: ElementGroupSnapshot[];
1826
+ approvals: DocumentationPageApproval[];
1827
+ settings: DocumentationHierarchySettings;
1828
+ };
1829
+
1830
+ declare const DTOColorTokenInlineData: z.ZodObject<{
1831
+ value: z.ZodString;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ value: string;
1834
+ }, {
1835
+ value: string;
1836
+ }>;
1837
+ type DTOColorTokenInlineData = z.infer<typeof DTOColorTokenInlineData>;
1838
+
1839
+ declare const DTOObjectMeta: z.ZodObject<{
1840
+ name: z.ZodString;
1841
+ description: z.ZodOptional<z.ZodString>;
1842
+ }, "strip", z.ZodTypeAny, {
1843
+ name: string;
1844
+ description?: string | undefined;
1845
+ }, {
1846
+ name: string;
1847
+ description?: string | undefined;
1848
+ }>;
1849
+ type DTOObjectMeta = z.infer<typeof DTOObjectMeta>;
1850
+
1851
+ declare const DTOPagination: z.ZodObject<{
1852
+ limit: z.ZodOptional<z.ZodString>;
1853
+ offset: z.ZodOptional<z.ZodString>;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ limit?: string | undefined;
1856
+ offset?: string | undefined;
1857
+ }, {
1858
+ limit?: string | undefined;
1859
+ offset?: string | undefined;
1860
+ }>;
1861
+ type DTOPagination = z.infer<typeof DTOPagination>;
1862
+
1863
+ declare const DTOAppBootstrapDataQuery: z.ZodObject<{
1864
+ preferredWorkspaceId: z.ZodOptional<z.ZodString>;
1865
+ preferredDesignSystemId: z.ZodOptional<z.ZodString>;
1866
+ preferredVersionId: z.ZodOptional<z.ZodString>;
1867
+ preferredBrandId: z.ZodOptional<z.ZodString>;
1868
+ }, "strip", z.ZodTypeAny, {
1869
+ preferredWorkspaceId?: string | undefined;
1870
+ preferredDesignSystemId?: string | undefined;
1871
+ preferredVersionId?: string | undefined;
1872
+ preferredBrandId?: string | undefined;
1873
+ }, {
1874
+ preferredWorkspaceId?: string | undefined;
1875
+ preferredDesignSystemId?: string | undefined;
1876
+ preferredVersionId?: string | undefined;
1877
+ preferredBrandId?: string | undefined;
1878
+ }>;
1879
+ type DTOAppBootstrapDataQuery = z.infer<typeof DTOAppBootstrapDataQuery>;
1880
+ declare const DTOAppBootstrapDataResponse: z.ZodObject<{
1881
+ workspaceMembership: z.ZodOptional<z.ZodObject<{
1882
+ workspace: z.ZodObject<{
1883
+ id: z.ZodString;
1884
+ profile: z.ZodObject<{
1885
+ name: z.ZodString;
1886
+ handle: z.ZodString;
1887
+ color: z.ZodString;
1888
+ avatar: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
1889
+ billingDetails: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
1890
+ address?: {
1891
+ street1?: string | undefined;
1892
+ street2?: string | undefined;
1893
+ city?: string | undefined;
1894
+ postal?: string | undefined;
1895
+ country?: string | undefined;
1896
+ state?: string | undefined;
1897
+ } | undefined;
1898
+ email?: string | undefined;
1899
+ companyName?: string | undefined;
1900
+ companyId?: string | undefined;
1901
+ notes?: string | undefined;
1902
+ vat?: string | undefined;
1903
+ poNumber?: string | undefined;
1904
+ }, z.ZodTypeDef, {
1905
+ address?: {
1906
+ street1?: string | null | undefined;
1907
+ street2?: string | null | undefined;
1908
+ city?: string | null | undefined;
1909
+ postal?: string | null | undefined;
1910
+ country?: string | null | undefined;
1911
+ state?: string | null | undefined;
1912
+ } | null | undefined;
1913
+ email?: string | null | undefined;
1914
+ companyName?: string | null | undefined;
1915
+ companyId?: string | null | undefined;
1916
+ notes?: string | null | undefined;
1917
+ vat?: string | null | undefined;
1918
+ poNumber?: string | null | undefined;
1919
+ }>>>, {
1920
+ address?: {
1921
+ street1?: string | undefined;
1922
+ street2?: string | undefined;
1923
+ city?: string | undefined;
1924
+ postal?: string | undefined;
1925
+ country?: string | undefined;
1926
+ state?: string | undefined;
1927
+ } | undefined;
1928
+ email?: string | undefined;
1929
+ companyName?: string | undefined;
1930
+ companyId?: string | undefined;
1931
+ notes?: string | undefined;
1932
+ vat?: string | undefined;
1933
+ poNumber?: string | undefined;
1934
+ } | undefined, {
1935
+ address?: {
1936
+ street1?: string | null | undefined;
1937
+ street2?: string | null | undefined;
1938
+ city?: string | null | undefined;
1939
+ postal?: string | null | undefined;
1940
+ country?: string | null | undefined;
1941
+ state?: string | null | undefined;
1942
+ } | null | undefined;
1943
+ email?: string | null | undefined;
1944
+ companyName?: string | null | undefined;
1945
+ companyId?: string | null | undefined;
1946
+ notes?: string | null | undefined;
1947
+ vat?: string | null | undefined;
1948
+ poNumber?: string | null | undefined;
1949
+ } | null | undefined>;
1950
+ }, "strip", z.ZodTypeAny, {
1951
+ name: string;
1952
+ color: string;
1953
+ handle: string;
1954
+ avatar?: string | undefined;
1955
+ billingDetails?: {
1956
+ address?: {
1957
+ street1?: string | undefined;
1958
+ street2?: string | undefined;
1959
+ city?: string | undefined;
1960
+ postal?: string | undefined;
1961
+ country?: string | undefined;
1962
+ state?: string | undefined;
1963
+ } | undefined;
1964
+ email?: string | undefined;
1965
+ companyName?: string | undefined;
1966
+ companyId?: string | undefined;
1967
+ notes?: string | undefined;
1968
+ vat?: string | undefined;
1969
+ poNumber?: string | undefined;
1970
+ } | undefined;
1971
+ }, {
1972
+ name: string;
1973
+ color: string;
1974
+ handle: string;
1975
+ avatar?: string | null | undefined;
1976
+ billingDetails?: {
1977
+ address?: {
1978
+ street1?: string | null | undefined;
1979
+ street2?: string | null | undefined;
1980
+ city?: string | null | undefined;
1981
+ postal?: string | null | undefined;
1982
+ country?: string | null | undefined;
1983
+ state?: string | null | undefined;
1984
+ } | null | undefined;
1985
+ email?: string | null | undefined;
1986
+ companyName?: string | null | undefined;
1987
+ companyId?: string | null | undefined;
1988
+ notes?: string | null | undefined;
1989
+ vat?: string | null | undefined;
1990
+ poNumber?: string | null | undefined;
1991
+ } | null | undefined;
1992
+ }>;
1993
+ subscription: z.ZodObject<{
1994
+ stripeSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1995
+ stripeCustomerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1996
+ status: z.ZodOptional<z.ZodEnum<["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]>>;
1997
+ subscriptionStatus: z.ZodOptional<z.ZodEnum<["trialing", "active", "past_due", "canceled", "unpaid", "incomplete_expired", "incomplete", "unknown"]>>;
1998
+ internalStatus: z.ZodOptional<z.ZodEnum<["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]>>;
1999
+ product: z.ZodEnum<["free", "team", "company", "enterprise"]>;
2000
+ featuresSummary: z.ZodOptional<z.ZodObject<{
2001
+ designSystems: z.ZodObject<{
2002
+ max: z.ZodNumber;
2003
+ errorMessage: z.ZodString;
2004
+ errorReason: z.ZodString;
2005
+ }, "strip", z.ZodTypeAny, {
2006
+ max: number;
2007
+ errorMessage: string;
2008
+ errorReason: string;
2009
+ }, {
2010
+ max: number;
2011
+ errorMessage: string;
1312
2012
  errorReason: string;
1313
2013
  }>;
1314
2014
  designSystemSources: z.ZodObject<z.objectUtil.extendShape<{
@@ -21772,18 +22472,18 @@ declare const DTODocumentationPageApprovalState: z.ZodObject<{
21772
22472
  type DTODocumentationPageApprovalState = DocumentationPageApproval;
21773
22473
  declare const DTODocumentationGroupApprovalState: z.ZodObject<{
21774
22474
  persistentId: z.ZodString;
21775
- groupId: z.ZodString;
22475
+ groupPersistentId: z.ZodString;
21776
22476
  designSystemVersionId: z.ZodString;
21777
22477
  approvalState: z.ZodEnum<["ReadyForReview", "ChangesRequested", "Approved"]>;
21778
22478
  }, "strip", z.ZodTypeAny, {
21779
22479
  persistentId: string;
21780
22480
  designSystemVersionId: string;
21781
- groupId: string;
22481
+ groupPersistentId: string;
21782
22482
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
21783
22483
  }, {
21784
22484
  persistentId: string;
21785
22485
  designSystemVersionId: string;
21786
- groupId: string;
22486
+ groupPersistentId: string;
21787
22487
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
21788
22488
  }>;
21789
22489
  type DTODocumentationGroupApprovalState = z.infer<typeof DTODocumentationGroupApprovalState>;
@@ -24888,33 +25588,6 @@ declare const DTOPublishDocumentationResponse: z.ZodObject<{
24888
25588
  }>;
24889
25589
  type DTOPublishDocumentationResponse = z.infer<typeof DTOPublishDocumentationResponse>;
24890
25590
 
24891
- declare const DTODocumentationPageRoom: z.ZodObject<{
24892
- id: z.ZodString;
24893
- }, "strip", z.ZodTypeAny, {
24894
- id: string;
24895
- }, {
24896
- id: string;
24897
- }>;
24898
- type DTODocumentationPageRoom = z.infer<typeof DTODocumentationPageRoom>;
24899
- declare const DTODocumentationPageRoomResponse: z.ZodObject<{
24900
- room: z.ZodObject<{
24901
- id: z.ZodString;
24902
- }, "strip", z.ZodTypeAny, {
24903
- id: string;
24904
- }, {
24905
- id: string;
24906
- }>;
24907
- }, "strip", z.ZodTypeAny, {
24908
- room: {
24909
- id: string;
24910
- };
24911
- }, {
24912
- room: {
24913
- id: string;
24914
- };
24915
- }>;
24916
- type DTODocumentationPageRoomResponse = z.infer<typeof DTODocumentationPageRoomResponse>;
24917
-
24918
25591
  declare const DTOFigmaComponentGroup: zod__default.ZodObject<{
24919
25592
  id: zod__default.ZodString;
24920
25593
  designSystemVersionId: zod__default.ZodString;
@@ -28451,18 +29124,18 @@ declare const DTODocumentationGroupV2: z.ZodObject<z.objectUtil.extendShape<Omit
28451
29124
  }>>;
28452
29125
  approvalState: z.ZodOptional<z.ZodObject<{
28453
29126
  persistentId: z.ZodString;
28454
- groupId: z.ZodString;
29127
+ groupPersistentId: z.ZodString;
28455
29128
  designSystemVersionId: z.ZodString;
28456
29129
  approvalState: z.ZodEnum<["ReadyForReview", "ChangesRequested", "Approved"]>;
28457
29130
  }, "strip", z.ZodTypeAny, {
28458
29131
  persistentId: string;
28459
29132
  designSystemVersionId: string;
28460
- groupId: string;
29133
+ groupPersistentId: string;
28461
29134
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
28462
29135
  }, {
28463
29136
  persistentId: string;
28464
29137
  designSystemVersionId: string;
28465
- groupId: string;
29138
+ groupPersistentId: string;
28466
29139
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
28467
29140
  }>>;
28468
29141
  }>, "strip", z.ZodTypeAny, {
@@ -28514,7 +29187,7 @@ declare const DTODocumentationGroupV2: z.ZodObject<z.objectUtil.extendShape<Omit
28514
29187
  approvalState?: {
28515
29188
  persistentId: string;
28516
29189
  designSystemVersionId: string;
28517
- groupId: string;
29190
+ groupPersistentId: string;
28518
29191
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
28519
29192
  } | undefined;
28520
29193
  draftState?: {
@@ -28615,7 +29288,7 @@ declare const DTODocumentationGroupV2: z.ZodObject<z.objectUtil.extendShape<Omit
28615
29288
  approvalState?: {
28616
29289
  persistentId: string;
28617
29290
  designSystemVersionId: string;
28618
- groupId: string;
29291
+ groupPersistentId: string;
28619
29292
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
28620
29293
  } | undefined;
28621
29294
  draftState?: {
@@ -31240,18 +31913,18 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
31240
31913
  }>>;
31241
31914
  approvalState: z.ZodOptional<z.ZodObject<{
31242
31915
  persistentId: z.ZodString;
31243
- groupId: z.ZodString;
31916
+ groupPersistentId: z.ZodString;
31244
31917
  designSystemVersionId: z.ZodString;
31245
31918
  approvalState: z.ZodEnum<["ReadyForReview", "ChangesRequested", "Approved"]>;
31246
31919
  }, "strip", z.ZodTypeAny, {
31247
31920
  persistentId: string;
31248
31921
  designSystemVersionId: string;
31249
- groupId: string;
31922
+ groupPersistentId: string;
31250
31923
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31251
31924
  }, {
31252
31925
  persistentId: string;
31253
31926
  designSystemVersionId: string;
31254
- groupId: string;
31927
+ groupPersistentId: string;
31255
31928
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31256
31929
  }>>;
31257
31930
  }>, {
@@ -31666,7 +32339,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
31666
32339
  approvalState?: {
31667
32340
  persistentId: string;
31668
32341
  designSystemVersionId: string;
31669
- groupId: string;
32342
+ groupPersistentId: string;
31670
32343
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31671
32344
  } | undefined;
31672
32345
  draftState?: {
@@ -31767,7 +32440,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
31767
32440
  approvalState?: {
31768
32441
  persistentId: string;
31769
32442
  designSystemVersionId: string;
31770
- groupId: string;
32443
+ groupPersistentId: string;
31771
32444
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31772
32445
  } | undefined;
31773
32446
  draftState?: {
@@ -31870,7 +32543,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
31870
32543
  approvalState?: {
31871
32544
  persistentId: string;
31872
32545
  designSystemVersionId: string;
31873
- groupId: string;
32546
+ groupPersistentId: string;
31874
32547
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31875
32548
  } | undefined;
31876
32549
  draftState?: {
@@ -32078,7 +32751,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
32078
32751
  approvalState?: {
32079
32752
  persistentId: string;
32080
32753
  designSystemVersionId: string;
32081
- groupId: string;
32754
+ groupPersistentId: string;
32082
32755
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
32083
32756
  } | undefined;
32084
32757
  draftState?: {
@@ -83786,8 +84459,10 @@ declare const DTOWorkspaceResponse: z.ZodObject<{
83786
84459
  }>;
83787
84460
  type DTOWorkspaceResponse = z.infer<typeof DTOWorkspaceResponse>;
83788
84461
 
83789
- declare function elementGroupsToDocumentationGroupDTOV2(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV2[];
83790
- declare function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV2[];
84462
+ type DocsPage$3 = LocalDocsPage | VersionRoomDocsPage;
84463
+ type DocsPageGroup$3 = LocalDocsPageGroup | VersionRoomDocsPageGroup;
84464
+ declare function elementGroupsToDocumentationGroupDTOV2(groups: DocsPageGroup$3[], pages: (DocumentationPageV1 | DocsPage$3)[]): DTODocumentationGroupV2[];
84465
+ declare function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups: DocsPageGroup$3[], pages: (DocumentationPageV1 | DocsPage$3)[]): DTODocumentationGroupV2[];
83791
84466
 
83792
84467
  declare const getDtoDefaultItemConfigurationV1: () => {
83793
84468
  readonly showSidebar: true;
@@ -83821,9 +84496,11 @@ type GroupLike = {
83821
84496
  persistentId: string;
83822
84497
  parentPersistentId?: string;
83823
84498
  };
83824
- declare function buildDocPagePublishPaths(groups: (ElementGroup | DocumentationGroupV1)[], pages: (DocumentationPageV1 | DocumentationPageV2)[], routingVersion: string): Map<string, string>;
84499
+ type DocsPage$2 = LocalDocsPage | VersionRoomDocsPage;
84500
+ type DocsPageGroup$2 = LocalDocsPageGroup | VersionRoomDocsPageGroup;
84501
+ declare function buildDocPagePublishPaths(groups: (DocsPageGroup$2 | DocumentationGroupV1)[], pages: (DocsPage$2 | DocumentationPageV1)[], routingVersion: string): Map<string, string>;
83825
84502
  declare function calculateElementParentChain<T extends GroupLike>(elementParentPersistentId: string, groupPersistentIdToGroupMap: Map<string, T>): T[];
83826
- declare function applyPrivacyConfigurationToNestedItems<PageType extends DocumentationPageV1 | DocumentationPageV2, GroupType extends DocumentationGroupV1 | ElementGroup, ItemConfigurationType extends DocumentationItemConfigurationV1 | DocumentationItemConfigurationV2>(pages: PageType[], groups: GroupType[], getDefaultItemConfiguration: () => ItemConfigurationType): {
84503
+ declare function applyPrivacyConfigurationToNestedItems<PageType extends DocumentationPageV1 | DocsPage$2, GroupType extends DocumentationGroupV1 | DocsPageGroup$2, ItemConfigurationType extends DocumentationItemConfigurationV1 | DocumentationItemConfigurationV2>(pages: PageType[], groups: GroupType[], getDefaultItemConfiguration: () => ItemConfigurationType): {
83827
84504
  pages: PageType[];
83828
84505
  groups: GroupType[];
83829
84506
  };
@@ -83831,9 +84508,11 @@ declare function applyPrivacyConfigurationToNestedItems<PageType extends Documen
83831
84508
  declare function documentationPagesToDTOV1(pages: DocumentationPageV1[], groups: DocumentationGroupV1[], routingVersion: string): DocumentationPageV1DTO[];
83832
84509
  declare function documentationPagesFixedConfigurationToDTOV1(pages: DocumentationPageV1[], groups: DocumentationGroupV1[], routingVersion: string): DocumentationPageV1DTO[];
83833
84510
 
83834
- declare function documentationPageToDTOV2(page: DocumentationPageV2, groups: ElementGroup[], routingVersion: string): DTODocumentationPageV2;
83835
- declare function documentationPagesToDTOV2(pages: DocumentationPageV2[], groups: ElementGroup[], routingVersion: string): DTODocumentationPageV2[];
83836
- declare function documentationPagesFixedConfigurationToDTOV2(pages: DocumentationPageV2[], groups: ElementGroup[], routingVersion: string): DTODocumentationPageV2[];
84511
+ type DocsPage$1 = LocalDocsPage | VersionRoomDocsPage;
84512
+ type DocsPageGroup$1 = LocalDocsPageGroup | VersionRoomDocsPageGroup;
84513
+ declare function documentationPageToDTOV2(page: DocsPage$1, groups: DocsPageGroup$1[], routingVersion: string): DTODocumentationPageV2;
84514
+ declare function documentationPagesToDTOV2(pages: DocsPage$1[], groups: DocsPageGroup$1[], routingVersion: string): DTODocumentationPageV2[];
84515
+ declare function documentationPagesFixedConfigurationToDTOV2(pages: DocsPage$1[], groups: DocsPageGroup$1[], routingVersion: string): DTODocumentationPageV2[];
83837
84516
 
83838
84517
  declare function pipelineToDto(pipeline: Pipeline): DTOPipeline;
83839
84518
 
@@ -87094,11 +87773,6 @@ declare class DocumentationEndpoint {
87094
87773
  title: string;
87095
87774
  })[];
87096
87775
  }>;
87097
- getPageRoom(dsId: string, vId: string, pageId: string): Promise<{
87098
- room: {
87099
- id: string;
87100
- };
87101
- }>;
87102
87776
  }
87103
87777
 
87104
87778
  declare class DesignSystemComponentEndpoint {
@@ -91396,1097 +92070,444 @@ declare class WorkspacesEndpoint {
91396
92070
  };
91397
92071
  codegenSchedules: {
91398
92072
  max: number;
91399
- errorMessage: string;
91400
- errorReason: string;
91401
- };
91402
- publicDocumentation: {
91403
- errorMessage: string;
91404
- errorReason: string;
91405
- enabled: boolean;
91406
- };
91407
- customDocumentationUrl: {
91408
- errorMessage: string;
91409
- errorReason: string;
91410
- enabled: boolean;
91411
- };
91412
- customDocumentationViewButton: {
91413
- errorMessage: string;
91414
- errorReason: string;
91415
- enabled: boolean;
91416
- };
91417
- designSystemSourceAutoImport: {
91418
- errorMessage: string;
91419
- errorReason: string;
91420
- enabled: boolean;
91421
- };
91422
- designSystemSlug: {
91423
- errorMessage: string;
91424
- errorReason: string;
91425
- enabled: boolean;
91426
- };
91427
- ipWhitelisting: {
91428
- errorMessage: string;
91429
- errorReason: string;
91430
- enabled: boolean;
91431
- };
91432
- npmRegistry: {
91433
- errorMessage: string;
91434
- errorReason: string;
91435
- enabled: boolean;
91436
- };
91437
- sso: {
91438
- errorMessage: string;
91439
- errorReason: string;
91440
- enabled: boolean;
91441
- };
91442
- workspacePaidSeats: {
91443
- max: number;
91444
- errorMessage: string;
91445
- errorReason: string;
91446
- };
91447
- workspaceViewers: {
91448
- max: number;
91449
- errorMessage: string;
91450
- errorReason: string;
91451
- };
91452
- customDocumentationExporter: {
91453
- errorMessage: string;
91454
- errorReason: string;
91455
- enabled: boolean;
91456
- };
91457
- protectedPages: {
91458
- errorMessage: string;
91459
- errorReason: string;
91460
- enabled: boolean;
91461
- };
91462
- approvals: {
91463
- errorMessage: string;
91464
- errorReason: string;
91465
- enabled: boolean;
91466
- };
91467
- selectivePublishing: {
91468
- errorMessage: string;
91469
- errorReason: string;
91470
- enabled: boolean;
91471
- };
91472
- designSystemAccessModes: {
91473
- errorMessage: string;
91474
- errorReason: string;
91475
- enabled: boolean;
91476
- };
91477
- designSystemRoles: {
91478
- errorMessage: string;
91479
- errorReason: string;
91480
- enabled: boolean;
91481
- };
91482
- } | undefined;
91483
- stripeSubscriptionMainItemId?: string | undefined;
91484
- currentPeriodStart?: string | undefined;
91485
- currentPeriodEnd?: string | undefined;
91486
- subscriptionStatusUpdatedAt?: string | undefined;
91487
- cancelAt?: string | null | undefined;
91488
- billingType?: "Auto" | "Invoice" | undefined;
91489
- daysUntilDue?: number | undefined;
91490
- };
91491
- npmRegistry?: {
91492
- enabledScopes: string[];
91493
- bypassProxy: boolean;
91494
- registryType: "Custom" | "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory";
91495
- authType: "Custom" | "None" | "Basic" | "Bearer";
91496
- registryUrl: string;
91497
- proxyUrl: string;
91498
- customRegistryUrl?: string | undefined;
91499
- accessToken?: string | undefined;
91500
- username?: string | undefined;
91501
- password?: string | undefined;
91502
- } | undefined;
91503
- };
91504
- }>;
91505
- }
91506
-
91507
- declare class LiveblocksEndpoint {
91508
- private readonly requestExecutor;
91509
- constructor(requestExecutor: RequestExecutor);
91510
- auth(body: DTOLiveblocksAuthRequest): Promise<{
91511
- token: string;
91512
- }>;
91513
- }
91514
-
91515
- declare class UsersEndpoint {
91516
- private readonly requestExecutor;
91517
- constructor(requestExecutor: RequestExecutor);
91518
- getMe(): Promise<{
91519
- user: {
91520
- id: string;
91521
- createdAt: Date;
91522
- email: string;
91523
- profile: {
91524
- name: string;
91525
- nickname?: string | undefined;
91526
- avatar?: string | undefined;
91527
- onboarding?: {
91528
- companyName?: string | undefined;
91529
- numberOfPeopleInOrg?: string | undefined;
91530
- numberOfPeopleInDesignTeam?: string | undefined;
91531
- department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
91532
- jobTitle?: string | undefined;
91533
- phase?: string | undefined;
91534
- jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
91535
- designSystemName?: string | undefined;
91536
- defaultDestination?: string | undefined;
91537
- isPageDraftOnboardingFinished?: boolean | undefined;
91538
- } | undefined;
91539
- };
91540
- loggedOutAt?: Date | undefined;
91541
- source?: "SignUp" | "Invite" | "SSO" | undefined;
91542
- };
91543
- }>;
91544
- listWorkspaces(uid: string): Promise<{
91545
- membership: {
91546
- workspace: {
91547
- id: string;
91548
- profile: {
91549
- name: string;
91550
- color: string;
91551
- handle: string;
91552
- avatar?: string | undefined;
91553
- billingDetails?: {
91554
- address?: {
91555
- street1?: string | undefined;
91556
- street2?: string | undefined;
91557
- city?: string | undefined;
91558
- postal?: string | undefined;
91559
- country?: string | undefined;
91560
- state?: string | undefined;
91561
- } | undefined;
91562
- email?: string | undefined;
91563
- companyName?: string | undefined;
91564
- companyId?: string | undefined;
91565
- notes?: string | undefined;
91566
- vat?: string | undefined;
91567
- poNumber?: string | undefined;
91568
- } | undefined;
91569
- };
91570
- subscription: {
91571
- product: "free" | "team" | "company" | "enterprise";
91572
- planPriceId: string;
91573
- planInterval: "yearly" | "daily" | "monthly" | "weekly";
91574
- seats: number;
91575
- seatLimit: number;
91576
- status?: "active" | "suspended" | "gracePeriod" | "cancelled" | "downgraded_to_free" | undefined;
91577
- card?: {
91578
- cardId?: string | null | undefined;
91579
- last4?: string | null | undefined;
91580
- expiryMonth?: string | null | undefined;
91581
- expiryYear?: string | null | undefined;
91582
- brand?: string | null | undefined;
91583
- name?: string | null | undefined;
91584
- } | undefined;
91585
- amount?: number | null | undefined;
91586
- stripeProductDescription?: string | undefined;
91587
- isPricePerCreator?: boolean | undefined;
91588
- isTrial?: boolean | undefined;
91589
- legacyVersion?: string | undefined;
91590
- stripeProductFeatures?: string[] | undefined;
91591
- stripeProductAdditionalFeatures?: string[] | undefined;
91592
- stripeSubscriptionId?: string | null | undefined;
91593
- stripeCustomerId?: string | null | undefined;
91594
- subscriptionStatus?: "unknown" | "active" | "trialing" | "past_due" | "canceled" | "unpaid" | "incomplete_expired" | "incomplete" | undefined;
91595
- internalStatus?: "active" | "suspended" | "gracePeriod" | "cancelled" | "downgraded_to_free" | undefined;
91596
- featuresSummary?: {
91597
- designSystems: {
91598
- max: number;
91599
- errorMessage: string;
91600
- errorReason: string;
91601
- };
91602
- designSystemSources: {
91603
- max: number;
91604
- errorMessage: string;
91605
- errorReason: string;
91606
- noImportJobsErrorMessage: string;
91607
- noImportJobsErrorReason: string;
91608
- };
91609
- designSystemVersions: {
91610
- max: number;
91611
- errorMessage: string;
91612
- errorReason: string;
91613
- };
91614
- themes: {
91615
- max: number;
91616
- errorMessage: string;
91617
- errorReason: string;
91618
- };
91619
- brands: {
91620
- max: number;
91621
- errorMessage: string;
91622
- errorReason: string;
91623
- };
91624
- codegenSchedules: {
91625
- max: number;
91626
- errorMessage: string;
91627
- errorReason: string;
91628
- };
91629
- publicDocumentation: {
91630
- errorMessage: string;
91631
- errorReason: string;
91632
- enabled: boolean;
91633
- };
91634
- customDocumentationUrl: {
91635
- errorMessage: string;
91636
- errorReason: string;
91637
- enabled: boolean;
91638
- };
91639
- customDocumentationViewButton: {
91640
- errorMessage: string;
91641
- errorReason: string;
91642
- enabled: boolean;
91643
- };
91644
- designSystemSourceAutoImport: {
91645
- errorMessage: string;
91646
- errorReason: string;
91647
- enabled: boolean;
91648
- };
91649
- designSystemSlug: {
91650
- errorMessage: string;
91651
- errorReason: string;
91652
- enabled: boolean;
91653
- };
91654
- ipWhitelisting: {
91655
- errorMessage: string;
91656
- errorReason: string;
91657
- enabled: boolean;
91658
- };
91659
- npmRegistry: {
91660
- errorMessage: string;
91661
- errorReason: string;
91662
- enabled: boolean;
91663
- };
91664
- sso: {
91665
- errorMessage: string;
91666
- errorReason: string;
91667
- enabled: boolean;
91668
- };
91669
- workspacePaidSeats: {
91670
- max: number;
91671
- errorMessage: string;
91672
- errorReason: string;
91673
- };
91674
- workspaceViewers: {
91675
- max: number;
91676
- errorMessage: string;
91677
- errorReason: string;
91678
- };
91679
- customDocumentationExporter: {
91680
- errorMessage: string;
91681
- errorReason: string;
91682
- enabled: boolean;
91683
- };
91684
- protectedPages: {
91685
- errorMessage: string;
91686
- errorReason: string;
91687
- enabled: boolean;
91688
- };
91689
- approvals: {
91690
- errorMessage: string;
91691
- errorReason: string;
91692
- enabled: boolean;
91693
- };
91694
- selectivePublishing: {
91695
- errorMessage: string;
91696
- errorReason: string;
91697
- enabled: boolean;
91698
- };
91699
- designSystemAccessModes: {
91700
- errorMessage: string;
91701
- errorReason: string;
91702
- enabled: boolean;
91703
- };
91704
- designSystemRoles: {
91705
- errorMessage: string;
91706
- errorReason: string;
91707
- enabled: boolean;
91708
- };
91709
- } | undefined;
91710
- stripeSubscriptionMainItemId?: string | undefined;
91711
- currentPeriodStart?: string | undefined;
91712
- currentPeriodEnd?: string | undefined;
91713
- subscriptionStatusUpdatedAt?: string | undefined;
91714
- cancelAt?: string | null | undefined;
91715
- billingType?: "Auto" | "Invoice" | undefined;
91716
- daysUntilDue?: number | undefined;
91717
- };
91718
- npmRegistry?: {
91719
- enabledScopes: string[];
91720
- bypassProxy: boolean;
91721
- registryType: "Custom" | "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory";
91722
- authType: "Custom" | "None" | "Basic" | "Bearer";
91723
- registryUrl: string;
91724
- proxyUrl: string;
91725
- customRegistryUrl?: string | undefined;
91726
- accessToken?: string | undefined;
91727
- username?: string | undefined;
91728
- password?: string | undefined;
91729
- } | undefined;
91730
- };
91731
- role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
91732
- effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
91733
- }[];
91734
- }>;
91735
- delete(uid: string): Promise<{
91736
- user: {
91737
- id: string;
91738
- createdAt: Date;
91739
- email: string;
91740
- profile: {
91741
- name: string;
91742
- nickname?: string | undefined;
91743
- avatar?: string | undefined;
91744
- onboarding?: {
91745
- companyName?: string | undefined;
91746
- numberOfPeopleInOrg?: string | undefined;
91747
- numberOfPeopleInDesignTeam?: string | undefined;
91748
- department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
91749
- jobTitle?: string | undefined;
91750
- phase?: string | undefined;
91751
- jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
91752
- designSystemName?: string | undefined;
91753
- defaultDestination?: string | undefined;
91754
- isPageDraftOnboardingFinished?: boolean | undefined;
91755
- } | undefined;
91756
- };
91757
- loggedOutAt?: Date | undefined;
91758
- source?: "SignUp" | "Invite" | "SSO" | undefined;
91759
- };
91760
- }>;
91761
- updateProfile(uid: string, body: DTOUserProfileUpdate): Promise<{
91762
- user: {
91763
- id: string;
91764
- createdAt: Date;
91765
- email: string;
91766
- profile: {
91767
- name: string;
91768
- nickname?: string | undefined;
91769
- avatar?: string | undefined;
91770
- onboarding?: {
91771
- companyName?: string | undefined;
91772
- numberOfPeopleInOrg?: string | undefined;
91773
- numberOfPeopleInDesignTeam?: string | undefined;
91774
- department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
91775
- jobTitle?: string | undefined;
91776
- phase?: string | undefined;
91777
- jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
91778
- designSystemName?: string | undefined;
91779
- defaultDestination?: string | undefined;
91780
- isPageDraftOnboardingFinished?: boolean | undefined;
91781
- } | undefined;
91782
- };
91783
- loggedOutAt?: Date | undefined;
91784
- source?: "SignUp" | "Invite" | "SSO" | undefined;
91785
- };
91786
- }>;
91787
- }
91788
-
91789
- type SupernovaApiClientConfig = {
91790
- host: string;
91791
- accessToken: string;
91792
- };
91793
- declare class SupernovaApiClient {
91794
- readonly users: UsersEndpoint;
91795
- readonly workspaces: WorkspacesEndpoint;
91796
- readonly designSystems: DesignSystemsEndpoint;
91797
- readonly codegen: CodegenEndpoint;
91798
- readonly liveblocks: LiveblocksEndpoint;
91799
- constructor(config: SupernovaApiClientConfig);
91800
- }
91801
-
91802
- type ParsedFigmaFileURL = {
91803
- fileId: string;
91804
- fileName: string | null;
91805
- nodeId: string | null;
91806
- nodeType: string | null;
91807
- };
91808
- declare const FigmaUtils: {
91809
- tryParseFigmaFileURL(urlString: string): ParsedFigmaFileURL | null;
91810
- };
91811
-
91812
- declare function generateHash(input: object | string, debug?: boolean): string;
91813
-
91814
- type CompatibleValue = number | string | boolean | undefined;
91815
- type QueryObject = Record<string, CompatibleValue | CompatibleValue[]>;
91816
- declare function serializeQuery(query: QueryObject): URLSearchParams;
91817
-
91818
- declare const DocumentationHierarchySettings: z.ZodObject<{
91819
- routingVersion: z.ZodString;
91820
- isDraftFeatureAdopted: z.ZodBoolean;
91821
- isApprovalFeatureEnabled: z.ZodBoolean;
91822
- approvalRequiredForPublishing: z.ZodBoolean;
91823
- }, "strip", z.ZodTypeAny, {
91824
- isApprovalFeatureEnabled: boolean;
91825
- approvalRequiredForPublishing: boolean;
91826
- routingVersion: string;
91827
- isDraftFeatureAdopted: boolean;
91828
- }, {
91829
- isApprovalFeatureEnabled: boolean;
91830
- approvalRequiredForPublishing: boolean;
91831
- routingVersion: string;
91832
- isDraftFeatureAdopted: boolean;
91833
- }>;
91834
- type DocumentationHierarchySettings = z.infer<typeof DocumentationHierarchySettings>;
91835
- /**
91836
- * @deprecated - Use FrontendVersionRoomYDoc.getDocumentationHierarchy
91837
- */
91838
- declare function yjsToDocumentationHierarchy(doc: Y.Doc): DTODocumentationHierarchyV2;
91839
-
91840
- declare const DTODocumentationPageRoomHeaderData: z.ZodObject<{
91841
- title: z.ZodString;
91842
- configuration: z.ZodObject<{
91843
- showSidebar: z.ZodBoolean;
91844
- isPrivate: z.ZodBoolean;
91845
- isHidden: z.ZodBoolean;
91846
- header: z.ZodObject<{
91847
- description: z.ZodString;
91848
- alignment: z.ZodEnum<["Left", "Center"]>;
91849
- foregroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
91850
- value: z.ZodString;
91851
- referencedTokenId: z.ZodOptional<z.ZodString>;
91852
- }, "strip", z.ZodTypeAny, {
91853
- value: string;
91854
- referencedTokenId?: string | undefined;
91855
- }, {
91856
- value: string;
91857
- referencedTokenId?: string | undefined;
91858
- }>>>;
91859
- backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
91860
- value: z.ZodString;
91861
- referencedTokenId: z.ZodOptional<z.ZodString>;
91862
- }, "strip", z.ZodTypeAny, {
91863
- value: string;
91864
- referencedTokenId?: string | undefined;
91865
- }, {
91866
- value: string;
91867
- referencedTokenId?: string | undefined;
91868
- }>>>;
91869
- backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
91870
- type: z.ZodEnum<["Resource", "FigmaNode"]>;
91871
- resource: z.ZodOptional<z.ZodObject<{
91872
- resourceId: z.ZodString;
91873
- url: z.ZodString;
91874
- }, "strip", z.ZodTypeAny, {
91875
- url: string;
91876
- resourceId: string;
91877
- }, {
91878
- url: string;
91879
- resourceId: string;
91880
- }>>;
91881
- figmaNode: z.ZodOptional<z.ZodObject<{
91882
- sourceId: z.ZodString;
91883
- frameReferenceId: z.ZodString;
91884
- }, "strip", z.ZodTypeAny, {
91885
- sourceId: string;
91886
- frameReferenceId: string;
91887
- }, {
91888
- sourceId: string;
91889
- frameReferenceId: string;
91890
- }>>;
91891
- }, "strip", z.ZodTypeAny, {
91892
- type: "FigmaNode" | "Resource";
91893
- resource?: {
91894
- url: string;
91895
- resourceId: string;
91896
- } | undefined;
91897
- figmaNode?: {
91898
- sourceId: string;
91899
- frameReferenceId: string;
91900
- } | undefined;
91901
- }, {
91902
- type: "FigmaNode" | "Resource";
91903
- resource?: {
91904
- url: string;
91905
- resourceId: string;
91906
- } | undefined;
91907
- figmaNode?: {
91908
- sourceId: string;
91909
- frameReferenceId: string;
91910
- } | undefined;
91911
- }>>>;
91912
- backgroundImageScaleType: z.ZodEnum<["AspectFill", "AspectFit"]>;
91913
- showBackgroundOverlay: z.ZodBoolean;
91914
- showCoverText: z.ZodBoolean;
91915
- minHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
91916
- }, "strip", z.ZodTypeAny, {
91917
- description: string;
91918
- alignment: "Left" | "Center";
91919
- backgroundImageScaleType: "AspectFill" | "AspectFit";
91920
- showBackgroundOverlay: boolean;
91921
- showCoverText: boolean;
91922
- backgroundColor?: {
91923
- value: string;
91924
- referencedTokenId?: string | undefined;
91925
- } | null | undefined;
91926
- foregroundColor?: {
91927
- value: string;
91928
- referencedTokenId?: string | undefined;
91929
- } | null | undefined;
91930
- backgroundImageAsset?: {
91931
- type: "FigmaNode" | "Resource";
91932
- resource?: {
91933
- url: string;
91934
- resourceId: string;
91935
- } | undefined;
91936
- figmaNode?: {
91937
- sourceId: string;
91938
- frameReferenceId: string;
91939
- } | undefined;
91940
- } | null | undefined;
91941
- minHeight?: number | null | undefined;
91942
- }, {
91943
- description: string;
91944
- alignment: "Left" | "Center";
91945
- backgroundImageScaleType: "AspectFill" | "AspectFit";
91946
- showBackgroundOverlay: boolean;
91947
- showCoverText: boolean;
91948
- backgroundColor?: {
91949
- value: string;
91950
- referencedTokenId?: string | undefined;
91951
- } | null | undefined;
91952
- foregroundColor?: {
91953
- value: string;
91954
- referencedTokenId?: string | undefined;
91955
- } | null | undefined;
91956
- backgroundImageAsset?: {
91957
- type: "FigmaNode" | "Resource";
91958
- resource?: {
91959
- url: string;
91960
- resourceId: string;
91961
- } | undefined;
91962
- figmaNode?: {
91963
- sourceId: string;
91964
- frameReferenceId: string;
91965
- } | undefined;
91966
- } | null | undefined;
91967
- minHeight?: number | null | undefined;
91968
- }>;
91969
- }, "strip", z.ZodTypeAny, {
91970
- showSidebar: boolean;
91971
- isPrivate: boolean;
91972
- isHidden: boolean;
91973
- header: {
91974
- description: string;
91975
- alignment: "Left" | "Center";
91976
- backgroundImageScaleType: "AspectFill" | "AspectFit";
91977
- showBackgroundOverlay: boolean;
91978
- showCoverText: boolean;
91979
- backgroundColor?: {
91980
- value: string;
91981
- referencedTokenId?: string | undefined;
91982
- } | null | undefined;
91983
- foregroundColor?: {
91984
- value: string;
91985
- referencedTokenId?: string | undefined;
91986
- } | null | undefined;
91987
- backgroundImageAsset?: {
91988
- type: "FigmaNode" | "Resource";
91989
- resource?: {
91990
- url: string;
91991
- resourceId: string;
91992
- } | undefined;
91993
- figmaNode?: {
91994
- sourceId: string;
91995
- frameReferenceId: string;
91996
- } | undefined;
91997
- } | null | undefined;
91998
- minHeight?: number | null | undefined;
91999
- };
92000
- }, {
92001
- showSidebar: boolean;
92002
- isPrivate: boolean;
92003
- isHidden: boolean;
92004
- header: {
92005
- description: string;
92006
- alignment: "Left" | "Center";
92007
- backgroundImageScaleType: "AspectFill" | "AspectFit";
92008
- showBackgroundOverlay: boolean;
92009
- showCoverText: boolean;
92010
- backgroundColor?: {
92011
- value: string;
92012
- referencedTokenId?: string | undefined;
92013
- } | null | undefined;
92014
- foregroundColor?: {
92015
- value: string;
92016
- referencedTokenId?: string | undefined;
92017
- } | null | undefined;
92018
- backgroundImageAsset?: {
92019
- type: "FigmaNode" | "Resource";
92020
- resource?: {
92021
- url: string;
92022
- resourceId: string;
92023
- } | undefined;
92024
- figmaNode?: {
92025
- sourceId: string;
92026
- frameReferenceId: string;
92027
- } | undefined;
92028
- } | null | undefined;
92029
- minHeight?: number | null | undefined;
92030
- };
92031
- }>;
92032
- }, "strip", z.ZodTypeAny, {
92033
- title: string;
92034
- configuration: {
92035
- showSidebar: boolean;
92036
- isPrivate: boolean;
92037
- isHidden: boolean;
92038
- header: {
92039
- description: string;
92040
- alignment: "Left" | "Center";
92041
- backgroundImageScaleType: "AspectFill" | "AspectFit";
92042
- showBackgroundOverlay: boolean;
92043
- showCoverText: boolean;
92044
- backgroundColor?: {
92045
- value: string;
92046
- referencedTokenId?: string | undefined;
92047
- } | null | undefined;
92048
- foregroundColor?: {
92049
- value: string;
92050
- referencedTokenId?: string | undefined;
92051
- } | null | undefined;
92052
- backgroundImageAsset?: {
92053
- type: "FigmaNode" | "Resource";
92054
- resource?: {
92055
- url: string;
92056
- resourceId: string;
92057
- } | undefined;
92058
- figmaNode?: {
92059
- sourceId: string;
92060
- frameReferenceId: string;
92061
- } | undefined;
92062
- } | null | undefined;
92063
- minHeight?: number | null | undefined;
92064
- };
92065
- };
92066
- }, {
92067
- title: string;
92068
- configuration: {
92069
- showSidebar: boolean;
92070
- isPrivate: boolean;
92071
- isHidden: boolean;
92072
- header: {
92073
- description: string;
92074
- alignment: "Left" | "Center";
92075
- backgroundImageScaleType: "AspectFill" | "AspectFit";
92076
- showBackgroundOverlay: boolean;
92077
- showCoverText: boolean;
92078
- backgroundColor?: {
92079
- value: string;
92080
- referencedTokenId?: string | undefined;
92081
- } | null | undefined;
92082
- foregroundColor?: {
92083
- value: string;
92084
- referencedTokenId?: string | undefined;
92085
- } | null | undefined;
92086
- backgroundImageAsset?: {
92087
- type: "FigmaNode" | "Resource";
92088
- resource?: {
92089
- url: string;
92090
- resourceId: string;
92091
- } | undefined;
92092
- figmaNode?: {
92093
- sourceId: string;
92094
- frameReferenceId: string;
92095
- } | undefined;
92096
- } | null | undefined;
92097
- minHeight?: number | null | undefined;
92098
- };
92099
- };
92100
- }>;
92101
- type DTODocumentationPageRoomHeaderData = z.infer<typeof DTODocumentationPageRoomHeaderData>;
92102
- declare const DTODocumentationPageRoomHeaderDataUpdate: z.ZodObject<{
92103
- title: z.ZodOptional<z.ZodString>;
92104
- configuration: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<Omit<{
92105
- showSidebar: z.ZodBoolean;
92106
- isPrivate: z.ZodBoolean;
92107
- isHidden: z.ZodBoolean;
92108
- header: z.ZodObject<{
92109
- description: z.ZodString;
92110
- alignment: z.ZodEnum<["Left", "Center"]>;
92111
- foregroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
92112
- value: z.ZodString;
92113
- referencedTokenId: z.ZodOptional<z.ZodString>;
92114
- }, "strip", z.ZodTypeAny, {
92115
- value: string;
92116
- referencedTokenId?: string | undefined;
92117
- }, {
92118
- value: string;
92119
- referencedTokenId?: string | undefined;
92120
- }>>>;
92121
- backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
92122
- value: z.ZodString;
92123
- referencedTokenId: z.ZodOptional<z.ZodString>;
92124
- }, "strip", z.ZodTypeAny, {
92125
- value: string;
92126
- referencedTokenId?: string | undefined;
92127
- }, {
92128
- value: string;
92129
- referencedTokenId?: string | undefined;
92130
- }>>>;
92131
- backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
92132
- type: z.ZodEnum<["Resource", "FigmaNode"]>;
92133
- resource: z.ZodOptional<z.ZodObject<{
92134
- resourceId: z.ZodString;
92135
- url: z.ZodString;
92136
- }, "strip", z.ZodTypeAny, {
92137
- url: string;
92138
- resourceId: string;
92139
- }, {
92140
- url: string;
92141
- resourceId: string;
92142
- }>>;
92143
- figmaNode: z.ZodOptional<z.ZodObject<{
92144
- sourceId: z.ZodString;
92145
- frameReferenceId: z.ZodString;
92146
- }, "strip", z.ZodTypeAny, {
92147
- sourceId: string;
92148
- frameReferenceId: string;
92149
- }, {
92150
- sourceId: string;
92151
- frameReferenceId: string;
92152
- }>>;
92153
- }, "strip", z.ZodTypeAny, {
92154
- type: "FigmaNode" | "Resource";
92155
- resource?: {
92156
- url: string;
92157
- resourceId: string;
92158
- } | undefined;
92159
- figmaNode?: {
92160
- sourceId: string;
92161
- frameReferenceId: string;
92162
- } | undefined;
92163
- }, {
92164
- type: "FigmaNode" | "Resource";
92165
- resource?: {
92166
- url: string;
92167
- resourceId: string;
92168
- } | undefined;
92169
- figmaNode?: {
92170
- sourceId: string;
92171
- frameReferenceId: string;
92172
- } | undefined;
92173
- }>>>;
92174
- backgroundImageScaleType: z.ZodEnum<["AspectFill", "AspectFit"]>;
92175
- showBackgroundOverlay: z.ZodBoolean;
92176
- showCoverText: z.ZodBoolean;
92177
- minHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
92178
- }, "strip", z.ZodTypeAny, {
92179
- description: string;
92180
- alignment: "Left" | "Center";
92181
- backgroundImageScaleType: "AspectFill" | "AspectFit";
92182
- showBackgroundOverlay: boolean;
92183
- showCoverText: boolean;
92184
- backgroundColor?: {
92185
- value: string;
92186
- referencedTokenId?: string | undefined;
92187
- } | null | undefined;
92188
- foregroundColor?: {
92189
- value: string;
92190
- referencedTokenId?: string | undefined;
92191
- } | null | undefined;
92192
- backgroundImageAsset?: {
92193
- type: "FigmaNode" | "Resource";
92194
- resource?: {
92195
- url: string;
92196
- resourceId: string;
92197
- } | undefined;
92198
- figmaNode?: {
92199
- sourceId: string;
92200
- frameReferenceId: string;
92201
- } | undefined;
92202
- } | null | undefined;
92203
- minHeight?: number | null | undefined;
92204
- }, {
92205
- description: string;
92206
- alignment: "Left" | "Center";
92207
- backgroundImageScaleType: "AspectFill" | "AspectFit";
92208
- showBackgroundOverlay: boolean;
92209
- showCoverText: boolean;
92210
- backgroundColor?: {
92211
- value: string;
92212
- referencedTokenId?: string | undefined;
92213
- } | null | undefined;
92214
- foregroundColor?: {
92215
- value: string;
92216
- referencedTokenId?: string | undefined;
92217
- } | null | undefined;
92218
- backgroundImageAsset?: {
92219
- type: "FigmaNode" | "Resource";
92220
- resource?: {
92221
- url: string;
92222
- resourceId: string;
92223
- } | undefined;
92224
- figmaNode?: {
92225
- sourceId: string;
92226
- frameReferenceId: string;
92227
- } | undefined;
92228
- } | null | undefined;
92229
- minHeight?: number | null | undefined;
92230
- }>;
92231
- }, "header">, {
92232
- header: z.ZodObject<{
92233
- description: z.ZodOptional<z.ZodString>;
92234
- alignment: z.ZodOptional<z.ZodEnum<["Left", "Center"]>>;
92235
- foregroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
92236
- value: z.ZodString;
92237
- referencedTokenId: z.ZodOptional<z.ZodString>;
92238
- }, "strip", z.ZodTypeAny, {
92239
- value: string;
92240
- referencedTokenId?: string | undefined;
92241
- }, {
92242
- value: string;
92243
- referencedTokenId?: string | undefined;
92244
- }>>>>;
92245
- backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
92246
- value: z.ZodString;
92247
- referencedTokenId: z.ZodOptional<z.ZodString>;
92248
- }, "strip", z.ZodTypeAny, {
92249
- value: string;
92250
- referencedTokenId?: string | undefined;
92251
- }, {
92252
- value: string;
92253
- referencedTokenId?: string | undefined;
92254
- }>>>>;
92255
- backgroundImageAsset: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
92256
- type: z.ZodEnum<["Resource", "FigmaNode"]>;
92257
- resource: z.ZodOptional<z.ZodObject<{
92258
- resourceId: z.ZodString;
92259
- url: z.ZodString;
92260
- }, "strip", z.ZodTypeAny, {
92261
- url: string;
92262
- resourceId: string;
92263
- }, {
92264
- url: string;
92265
- resourceId: string;
92266
- }>>;
92267
- figmaNode: z.ZodOptional<z.ZodObject<{
92268
- sourceId: z.ZodString;
92269
- frameReferenceId: z.ZodString;
92270
- }, "strip", z.ZodTypeAny, {
92271
- sourceId: string;
92272
- frameReferenceId: string;
92273
- }, {
92274
- sourceId: string;
92275
- frameReferenceId: string;
92276
- }>>;
92277
- }, "strip", z.ZodTypeAny, {
92278
- type: "FigmaNode" | "Resource";
92279
- resource?: {
92280
- url: string;
92281
- resourceId: string;
92282
- } | undefined;
92283
- figmaNode?: {
92284
- sourceId: string;
92285
- frameReferenceId: string;
92286
- } | undefined;
92287
- }, {
92288
- type: "FigmaNode" | "Resource";
92289
- resource?: {
92290
- url: string;
92291
- resourceId: string;
92292
- } | undefined;
92293
- figmaNode?: {
92294
- sourceId: string;
92295
- frameReferenceId: string;
92296
- } | undefined;
92297
- }>>>>;
92298
- backgroundImageScaleType: z.ZodOptional<z.ZodEnum<["AspectFill", "AspectFit"]>>;
92299
- showBackgroundOverlay: z.ZodOptional<z.ZodBoolean>;
92300
- showCoverText: z.ZodOptional<z.ZodBoolean>;
92301
- minHeight: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
92302
- }, "strip", z.ZodTypeAny, {
92303
- description?: string | undefined;
92304
- alignment?: "Left" | "Center" | undefined;
92305
- foregroundColor?: {
92306
- value: string;
92307
- referencedTokenId?: string | undefined;
92308
- } | null | undefined;
92309
- backgroundColor?: {
92310
- value: string;
92311
- referencedTokenId?: string | undefined;
92312
- } | null | undefined;
92313
- backgroundImageAsset?: {
92314
- type: "FigmaNode" | "Resource";
92315
- resource?: {
92316
- url: string;
92317
- resourceId: string;
92318
- } | undefined;
92319
- figmaNode?: {
92320
- sourceId: string;
92321
- frameReferenceId: string;
92322
- } | undefined;
92323
- } | null | undefined;
92324
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92325
- showBackgroundOverlay?: boolean | undefined;
92326
- showCoverText?: boolean | undefined;
92327
- minHeight?: number | null | undefined;
92328
- }, {
92329
- description?: string | undefined;
92330
- alignment?: "Left" | "Center" | undefined;
92331
- foregroundColor?: {
92332
- value: string;
92333
- referencedTokenId?: string | undefined;
92334
- } | null | undefined;
92335
- backgroundColor?: {
92336
- value: string;
92337
- referencedTokenId?: string | undefined;
92338
- } | null | undefined;
92339
- backgroundImageAsset?: {
92340
- type: "FigmaNode" | "Resource";
92341
- resource?: {
92342
- url: string;
92343
- resourceId: string;
92344
- } | undefined;
92345
- figmaNode?: {
92346
- sourceId: string;
92347
- frameReferenceId: string;
92348
- } | undefined;
92349
- } | null | undefined;
92350
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92351
- showBackgroundOverlay?: boolean | undefined;
92352
- showCoverText?: boolean | undefined;
92353
- minHeight?: number | null | undefined;
92354
- }>;
92355
- }>, "strip", z.ZodTypeAny, {
92356
- showSidebar: boolean;
92357
- isPrivate: boolean;
92358
- isHidden: boolean;
92359
- header: {
92360
- description?: string | undefined;
92361
- alignment?: "Left" | "Center" | undefined;
92362
- foregroundColor?: {
92363
- value: string;
92364
- referencedTokenId?: string | undefined;
92365
- } | null | undefined;
92366
- backgroundColor?: {
92367
- value: string;
92368
- referencedTokenId?: string | undefined;
92369
- } | null | undefined;
92370
- backgroundImageAsset?: {
92371
- type: "FigmaNode" | "Resource";
92372
- resource?: {
92373
- url: string;
92374
- resourceId: string;
92375
- } | undefined;
92376
- figmaNode?: {
92377
- sourceId: string;
92378
- frameReferenceId: string;
92073
+ errorMessage: string;
92074
+ errorReason: string;
92075
+ };
92076
+ publicDocumentation: {
92077
+ errorMessage: string;
92078
+ errorReason: string;
92079
+ enabled: boolean;
92080
+ };
92081
+ customDocumentationUrl: {
92082
+ errorMessage: string;
92083
+ errorReason: string;
92084
+ enabled: boolean;
92085
+ };
92086
+ customDocumentationViewButton: {
92087
+ errorMessage: string;
92088
+ errorReason: string;
92089
+ enabled: boolean;
92090
+ };
92091
+ designSystemSourceAutoImport: {
92092
+ errorMessage: string;
92093
+ errorReason: string;
92094
+ enabled: boolean;
92095
+ };
92096
+ designSystemSlug: {
92097
+ errorMessage: string;
92098
+ errorReason: string;
92099
+ enabled: boolean;
92100
+ };
92101
+ ipWhitelisting: {
92102
+ errorMessage: string;
92103
+ errorReason: string;
92104
+ enabled: boolean;
92105
+ };
92106
+ npmRegistry: {
92107
+ errorMessage: string;
92108
+ errorReason: string;
92109
+ enabled: boolean;
92110
+ };
92111
+ sso: {
92112
+ errorMessage: string;
92113
+ errorReason: string;
92114
+ enabled: boolean;
92115
+ };
92116
+ workspacePaidSeats: {
92117
+ max: number;
92118
+ errorMessage: string;
92119
+ errorReason: string;
92120
+ };
92121
+ workspaceViewers: {
92122
+ max: number;
92123
+ errorMessage: string;
92124
+ errorReason: string;
92125
+ };
92126
+ customDocumentationExporter: {
92127
+ errorMessage: string;
92128
+ errorReason: string;
92129
+ enabled: boolean;
92130
+ };
92131
+ protectedPages: {
92132
+ errorMessage: string;
92133
+ errorReason: string;
92134
+ enabled: boolean;
92135
+ };
92136
+ approvals: {
92137
+ errorMessage: string;
92138
+ errorReason: string;
92139
+ enabled: boolean;
92140
+ };
92141
+ selectivePublishing: {
92142
+ errorMessage: string;
92143
+ errorReason: string;
92144
+ enabled: boolean;
92145
+ };
92146
+ designSystemAccessModes: {
92147
+ errorMessage: string;
92148
+ errorReason: string;
92149
+ enabled: boolean;
92150
+ };
92151
+ designSystemRoles: {
92152
+ errorMessage: string;
92153
+ errorReason: string;
92154
+ enabled: boolean;
92155
+ };
92379
92156
  } | undefined;
92380
- } | null | undefined;
92381
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92382
- showBackgroundOverlay?: boolean | undefined;
92383
- showCoverText?: boolean | undefined;
92384
- minHeight?: number | null | undefined;
92157
+ stripeSubscriptionMainItemId?: string | undefined;
92158
+ currentPeriodStart?: string | undefined;
92159
+ currentPeriodEnd?: string | undefined;
92160
+ subscriptionStatusUpdatedAt?: string | undefined;
92161
+ cancelAt?: string | null | undefined;
92162
+ billingType?: "Auto" | "Invoice" | undefined;
92163
+ daysUntilDue?: number | undefined;
92164
+ };
92165
+ npmRegistry?: {
92166
+ enabledScopes: string[];
92167
+ bypassProxy: boolean;
92168
+ registryType: "Custom" | "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory";
92169
+ authType: "Custom" | "None" | "Basic" | "Bearer";
92170
+ registryUrl: string;
92171
+ proxyUrl: string;
92172
+ customRegistryUrl?: string | undefined;
92173
+ accessToken?: string | undefined;
92174
+ username?: string | undefined;
92175
+ password?: string | undefined;
92176
+ } | undefined;
92385
92177
  };
92386
- }, {
92387
- showSidebar: boolean;
92388
- isPrivate: boolean;
92389
- isHidden: boolean;
92390
- header: {
92391
- description?: string | undefined;
92392
- alignment?: "Left" | "Center" | undefined;
92393
- foregroundColor?: {
92394
- value: string;
92395
- referencedTokenId?: string | undefined;
92396
- } | null | undefined;
92397
- backgroundColor?: {
92398
- value: string;
92399
- referencedTokenId?: string | undefined;
92400
- } | null | undefined;
92401
- backgroundImageAsset?: {
92402
- type: "FigmaNode" | "Resource";
92403
- resource?: {
92404
- url: string;
92405
- resourceId: string;
92406
- } | undefined;
92407
- figmaNode?: {
92408
- sourceId: string;
92409
- frameReferenceId: string;
92178
+ }>;
92179
+ }
92180
+
92181
+ declare class UsersEndpoint {
92182
+ private readonly requestExecutor;
92183
+ constructor(requestExecutor: RequestExecutor);
92184
+ getMe(): Promise<{
92185
+ user: {
92186
+ id: string;
92187
+ createdAt: Date;
92188
+ email: string;
92189
+ profile: {
92190
+ name: string;
92191
+ nickname?: string | undefined;
92192
+ avatar?: string | undefined;
92193
+ onboarding?: {
92194
+ companyName?: string | undefined;
92195
+ numberOfPeopleInOrg?: string | undefined;
92196
+ numberOfPeopleInDesignTeam?: string | undefined;
92197
+ department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
92198
+ jobTitle?: string | undefined;
92199
+ phase?: string | undefined;
92200
+ jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
92201
+ designSystemName?: string | undefined;
92202
+ defaultDestination?: string | undefined;
92203
+ isPageDraftOnboardingFinished?: boolean | undefined;
92410
92204
  } | undefined;
92411
- } | null | undefined;
92412
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92413
- showBackgroundOverlay?: boolean | undefined;
92414
- showCoverText?: boolean | undefined;
92415
- minHeight?: number | null | undefined;
92205
+ };
92206
+ loggedOutAt?: Date | undefined;
92207
+ source?: "SignUp" | "Invite" | "SSO" | undefined;
92416
92208
  };
92417
- }>>;
92418
- }, "strip", z.ZodTypeAny, {
92419
- title?: string | undefined;
92420
- configuration?: {
92421
- showSidebar: boolean;
92422
- isPrivate: boolean;
92423
- isHidden: boolean;
92424
- header: {
92425
- description?: string | undefined;
92426
- alignment?: "Left" | "Center" | undefined;
92427
- foregroundColor?: {
92428
- value: string;
92429
- referencedTokenId?: string | undefined;
92430
- } | null | undefined;
92431
- backgroundColor?: {
92432
- value: string;
92433
- referencedTokenId?: string | undefined;
92434
- } | null | undefined;
92435
- backgroundImageAsset?: {
92436
- type: "FigmaNode" | "Resource";
92437
- resource?: {
92438
- url: string;
92439
- resourceId: string;
92209
+ }>;
92210
+ listWorkspaces(uid: string): Promise<{
92211
+ membership: {
92212
+ workspace: {
92213
+ id: string;
92214
+ profile: {
92215
+ name: string;
92216
+ color: string;
92217
+ handle: string;
92218
+ avatar?: string | undefined;
92219
+ billingDetails?: {
92220
+ address?: {
92221
+ street1?: string | undefined;
92222
+ street2?: string | undefined;
92223
+ city?: string | undefined;
92224
+ postal?: string | undefined;
92225
+ country?: string | undefined;
92226
+ state?: string | undefined;
92227
+ } | undefined;
92228
+ email?: string | undefined;
92229
+ companyName?: string | undefined;
92230
+ companyId?: string | undefined;
92231
+ notes?: string | undefined;
92232
+ vat?: string | undefined;
92233
+ poNumber?: string | undefined;
92234
+ } | undefined;
92235
+ };
92236
+ subscription: {
92237
+ product: "free" | "team" | "company" | "enterprise";
92238
+ planPriceId: string;
92239
+ planInterval: "yearly" | "daily" | "monthly" | "weekly";
92240
+ seats: number;
92241
+ seatLimit: number;
92242
+ status?: "active" | "suspended" | "gracePeriod" | "cancelled" | "downgraded_to_free" | undefined;
92243
+ card?: {
92244
+ cardId?: string | null | undefined;
92245
+ last4?: string | null | undefined;
92246
+ expiryMonth?: string | null | undefined;
92247
+ expiryYear?: string | null | undefined;
92248
+ brand?: string | null | undefined;
92249
+ name?: string | null | undefined;
92250
+ } | undefined;
92251
+ amount?: number | null | undefined;
92252
+ stripeProductDescription?: string | undefined;
92253
+ isPricePerCreator?: boolean | undefined;
92254
+ isTrial?: boolean | undefined;
92255
+ legacyVersion?: string | undefined;
92256
+ stripeProductFeatures?: string[] | undefined;
92257
+ stripeProductAdditionalFeatures?: string[] | undefined;
92258
+ stripeSubscriptionId?: string | null | undefined;
92259
+ stripeCustomerId?: string | null | undefined;
92260
+ subscriptionStatus?: "unknown" | "active" | "trialing" | "past_due" | "canceled" | "unpaid" | "incomplete_expired" | "incomplete" | undefined;
92261
+ internalStatus?: "active" | "suspended" | "gracePeriod" | "cancelled" | "downgraded_to_free" | undefined;
92262
+ featuresSummary?: {
92263
+ designSystems: {
92264
+ max: number;
92265
+ errorMessage: string;
92266
+ errorReason: string;
92267
+ };
92268
+ designSystemSources: {
92269
+ max: number;
92270
+ errorMessage: string;
92271
+ errorReason: string;
92272
+ noImportJobsErrorMessage: string;
92273
+ noImportJobsErrorReason: string;
92274
+ };
92275
+ designSystemVersions: {
92276
+ max: number;
92277
+ errorMessage: string;
92278
+ errorReason: string;
92279
+ };
92280
+ themes: {
92281
+ max: number;
92282
+ errorMessage: string;
92283
+ errorReason: string;
92284
+ };
92285
+ brands: {
92286
+ max: number;
92287
+ errorMessage: string;
92288
+ errorReason: string;
92289
+ };
92290
+ codegenSchedules: {
92291
+ max: number;
92292
+ errorMessage: string;
92293
+ errorReason: string;
92294
+ };
92295
+ publicDocumentation: {
92296
+ errorMessage: string;
92297
+ errorReason: string;
92298
+ enabled: boolean;
92299
+ };
92300
+ customDocumentationUrl: {
92301
+ errorMessage: string;
92302
+ errorReason: string;
92303
+ enabled: boolean;
92304
+ };
92305
+ customDocumentationViewButton: {
92306
+ errorMessage: string;
92307
+ errorReason: string;
92308
+ enabled: boolean;
92309
+ };
92310
+ designSystemSourceAutoImport: {
92311
+ errorMessage: string;
92312
+ errorReason: string;
92313
+ enabled: boolean;
92314
+ };
92315
+ designSystemSlug: {
92316
+ errorMessage: string;
92317
+ errorReason: string;
92318
+ enabled: boolean;
92319
+ };
92320
+ ipWhitelisting: {
92321
+ errorMessage: string;
92322
+ errorReason: string;
92323
+ enabled: boolean;
92324
+ };
92325
+ npmRegistry: {
92326
+ errorMessage: string;
92327
+ errorReason: string;
92328
+ enabled: boolean;
92329
+ };
92330
+ sso: {
92331
+ errorMessage: string;
92332
+ errorReason: string;
92333
+ enabled: boolean;
92334
+ };
92335
+ workspacePaidSeats: {
92336
+ max: number;
92337
+ errorMessage: string;
92338
+ errorReason: string;
92339
+ };
92340
+ workspaceViewers: {
92341
+ max: number;
92342
+ errorMessage: string;
92343
+ errorReason: string;
92344
+ };
92345
+ customDocumentationExporter: {
92346
+ errorMessage: string;
92347
+ errorReason: string;
92348
+ enabled: boolean;
92349
+ };
92350
+ protectedPages: {
92351
+ errorMessage: string;
92352
+ errorReason: string;
92353
+ enabled: boolean;
92354
+ };
92355
+ approvals: {
92356
+ errorMessage: string;
92357
+ errorReason: string;
92358
+ enabled: boolean;
92359
+ };
92360
+ selectivePublishing: {
92361
+ errorMessage: string;
92362
+ errorReason: string;
92363
+ enabled: boolean;
92364
+ };
92365
+ designSystemAccessModes: {
92366
+ errorMessage: string;
92367
+ errorReason: string;
92368
+ enabled: boolean;
92369
+ };
92370
+ designSystemRoles: {
92371
+ errorMessage: string;
92372
+ errorReason: string;
92373
+ enabled: boolean;
92374
+ };
92375
+ } | undefined;
92376
+ stripeSubscriptionMainItemId?: string | undefined;
92377
+ currentPeriodStart?: string | undefined;
92378
+ currentPeriodEnd?: string | undefined;
92379
+ subscriptionStatusUpdatedAt?: string | undefined;
92380
+ cancelAt?: string | null | undefined;
92381
+ billingType?: "Auto" | "Invoice" | undefined;
92382
+ daysUntilDue?: number | undefined;
92383
+ };
92384
+ npmRegistry?: {
92385
+ enabledScopes: string[];
92386
+ bypassProxy: boolean;
92387
+ registryType: "Custom" | "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory";
92388
+ authType: "Custom" | "None" | "Basic" | "Bearer";
92389
+ registryUrl: string;
92390
+ proxyUrl: string;
92391
+ customRegistryUrl?: string | undefined;
92392
+ accessToken?: string | undefined;
92393
+ username?: string | undefined;
92394
+ password?: string | undefined;
92440
92395
  } | undefined;
92441
- figmaNode?: {
92442
- sourceId: string;
92443
- frameReferenceId: string;
92396
+ };
92397
+ role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
92398
+ effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
92399
+ }[];
92400
+ }>;
92401
+ delete(uid: string): Promise<{
92402
+ user: {
92403
+ id: string;
92404
+ createdAt: Date;
92405
+ email: string;
92406
+ profile: {
92407
+ name: string;
92408
+ nickname?: string | undefined;
92409
+ avatar?: string | undefined;
92410
+ onboarding?: {
92411
+ companyName?: string | undefined;
92412
+ numberOfPeopleInOrg?: string | undefined;
92413
+ numberOfPeopleInDesignTeam?: string | undefined;
92414
+ department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
92415
+ jobTitle?: string | undefined;
92416
+ phase?: string | undefined;
92417
+ jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
92418
+ designSystemName?: string | undefined;
92419
+ defaultDestination?: string | undefined;
92420
+ isPageDraftOnboardingFinished?: boolean | undefined;
92444
92421
  } | undefined;
92445
- } | null | undefined;
92446
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92447
- showBackgroundOverlay?: boolean | undefined;
92448
- showCoverText?: boolean | undefined;
92449
- minHeight?: number | null | undefined;
92422
+ };
92423
+ loggedOutAt?: Date | undefined;
92424
+ source?: "SignUp" | "Invite" | "SSO" | undefined;
92450
92425
  };
92451
- } | undefined;
92452
- }, {
92453
- title?: string | undefined;
92454
- configuration?: {
92455
- showSidebar: boolean;
92456
- isPrivate: boolean;
92457
- isHidden: boolean;
92458
- header: {
92459
- description?: string | undefined;
92460
- alignment?: "Left" | "Center" | undefined;
92461
- foregroundColor?: {
92462
- value: string;
92463
- referencedTokenId?: string | undefined;
92464
- } | null | undefined;
92465
- backgroundColor?: {
92466
- value: string;
92467
- referencedTokenId?: string | undefined;
92468
- } | null | undefined;
92469
- backgroundImageAsset?: {
92470
- type: "FigmaNode" | "Resource";
92471
- resource?: {
92472
- url: string;
92473
- resourceId: string;
92474
- } | undefined;
92475
- figmaNode?: {
92476
- sourceId: string;
92477
- frameReferenceId: string;
92426
+ }>;
92427
+ updateProfile(uid: string, body: DTOUserProfileUpdate): Promise<{
92428
+ user: {
92429
+ id: string;
92430
+ createdAt: Date;
92431
+ email: string;
92432
+ profile: {
92433
+ name: string;
92434
+ nickname?: string | undefined;
92435
+ avatar?: string | undefined;
92436
+ onboarding?: {
92437
+ companyName?: string | undefined;
92438
+ numberOfPeopleInOrg?: string | undefined;
92439
+ numberOfPeopleInDesignTeam?: string | undefined;
92440
+ department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
92441
+ jobTitle?: string | undefined;
92442
+ phase?: string | undefined;
92443
+ jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
92444
+ designSystemName?: string | undefined;
92445
+ defaultDestination?: string | undefined;
92446
+ isPageDraftOnboardingFinished?: boolean | undefined;
92478
92447
  } | undefined;
92479
- } | null | undefined;
92480
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92481
- showBackgroundOverlay?: boolean | undefined;
92482
- showCoverText?: boolean | undefined;
92483
- minHeight?: number | null | undefined;
92448
+ };
92449
+ loggedOutAt?: Date | undefined;
92450
+ source?: "SignUp" | "Invite" | "SSO" | undefined;
92484
92451
  };
92485
- } | undefined;
92486
- }>;
92487
- type DTODocumentationPageRoomHeaderDataUpdate = z.infer<typeof DTODocumentationPageRoomHeaderDataUpdate>;
92488
- declare function itemConfigurationToYjs(yDoc: Y.Doc, item: DTODocumentationPageRoomHeaderDataUpdate): void;
92489
- declare function yjsToItemConfiguration(yDoc: Y.Doc): DTODocumentationPageRoomHeaderData;
92452
+ }>;
92453
+ }
92454
+
92455
+ type SupernovaApiClientConfig = {
92456
+ host: string;
92457
+ accessToken: string;
92458
+ };
92459
+ declare class SupernovaApiClient {
92460
+ readonly users: UsersEndpoint;
92461
+ readonly workspaces: WorkspacesEndpoint;
92462
+ readonly designSystems: DesignSystemsEndpoint;
92463
+ readonly codegen: CodegenEndpoint;
92464
+ constructor(config: SupernovaApiClientConfig);
92465
+ }
92466
+
92467
+ declare class DocsStructureRepo {
92468
+ }
92469
+ type HierarchyObserver = (hierarchy: DTODocumentationHierarchyV2) => void;
92470
+ type DocPageCreate = {
92471
+ persistentId: string;
92472
+ title: string;
92473
+ configuration?: DTODocumentationItemConfigurationV2;
92474
+ parentPersistentId: string;
92475
+ afterPersistentId?: string;
92476
+ };
92477
+ type TransactionExecutor = (trx: DTOElementActionInput) => Promise<void>;
92478
+ declare class DocsStructureRepository {
92479
+ private readonly localState;
92480
+ private readonly yDoc;
92481
+ private readonly yObserver;
92482
+ private yState;
92483
+ private readonly trxQueue;
92484
+ private readonly hierarchyObservers;
92485
+ constructor(yDoc: Y.Doc, transactionExecutor: TransactionExecutor);
92486
+ addHierarchyObserver(observer: HierarchyObserver): void;
92487
+ removeHierarchyObserver(observer: HierarchyObserver): void;
92488
+ dispose(): void;
92489
+ createPage(input: DocPageCreate): void;
92490
+ createPagePromise(input: DocPageCreate): Promise<void>;
92491
+ private recalculateHierarchy;
92492
+ private onYUpdate;
92493
+ private calculateSortOrder;
92494
+ }
92495
+
92496
+ type ParsedFigmaFileURL = {
92497
+ fileId: string;
92498
+ fileName: string | null;
92499
+ nodeId: string | null;
92500
+ nodeType: string | null;
92501
+ };
92502
+ declare const FigmaUtils: {
92503
+ tryParseFigmaFileURL(urlString: string): ParsedFigmaFileURL | null;
92504
+ };
92505
+
92506
+ declare function generateHash(input: object | string, debug?: boolean): string;
92507
+
92508
+ type CompatibleValue = number | string | boolean | undefined;
92509
+ type QueryObject = Record<string, CompatibleValue | CompatibleValue[]>;
92510
+ declare function serializeQuery(query: QueryObject): URLSearchParams;
92490
92511
 
92491
92512
  declare const PageBlockEditorModel: z.ZodObject<{
92492
92513
  id: z.ZodString;
@@ -94296,6 +94317,7 @@ declare class BackendVersionRoomYDoc {
94296
94317
  declare class VersionRoomBaseYDoc {
94297
94318
  private readonly yDoc;
94298
94319
  constructor(yDoc: Y.Doc);
94320
+ getState(): VersionRoomBaseYDocState;
94299
94321
  getPages(): DocumentationPageV2[];
94300
94322
  updatePages(pages: DocumentationPageV2[]): void;
94301
94323
  deletePages(ids: string[]): void;
@@ -94337,33 +94359,37 @@ declare class VersionRoomBaseYDoc {
94337
94359
  private get documentationPageApprovalsMap();
94338
94360
  }
94339
94361
 
94362
+ type DocsPage = VersionRoomDocsPage | LocalDocsPage;
94363
+ type DocsPageGroup = VersionRoomDocsPageGroup | LocalDocsPageGroup;
94364
+ type Input = {
94365
+ pages: DocsPage[];
94366
+ pageSnapshots: DocumentationPageSnapshot[];
94367
+ pageContentHashes: Record<string, string>;
94368
+ groups: DocsPageGroup[];
94369
+ groupSnapshots: ElementGroupSnapshot[];
94370
+ approvals: DocumentationPageApproval[];
94371
+ settings: DocumentationHierarchySettings;
94372
+ };
94373
+ declare function computeDocsHierarchy(input: Input, options?: {
94374
+ includeDeletedContent?: boolean;
94375
+ debug?: boolean;
94376
+ }): DTODocumentationHierarchyV2;
94377
+
94340
94378
  declare class FrontendVersionRoomYDoc {
94341
94379
  private readonly debug;
94342
94380
  private readonly yDoc;
94343
94381
  constructor(yDoc: Y.Doc, debug?: boolean);
94344
94382
  getDocumentationHierarchy(options?: {
94345
94383
  includeDeletedContent?: boolean;
94384
+ debug?: boolean;
94346
94385
  }): DTODocumentationHierarchyV2;
94347
- private buildPageDraftDeletedStates;
94348
- private buildPageDraftCreatedAndUpdatedStates;
94349
- private itemStateFromPage;
94350
- private getDeletedPages;
94351
- private buildPagePublishedMetadata;
94352
- private buildGroupDraftDeletedStates;
94353
- private buildGroupDraftCreatedAndUpdatedStates;
94354
- private itemStateFromGroup;
94355
- private getDeletedGroups;
94356
- private buildGroupPublishedMetadata;
94357
- private createDraftState;
94358
- private buildGroupApprovalStates;
94359
94386
  notifyDocumentationPageContentUpdated(pageId: string, content: DocumentationPageEditorModel, definitions: PageBlockDefinition[]): void;
94360
94387
  isDraftFeatureAdopted(): boolean;
94361
94388
  hasPublishedDocumentationContent(): boolean;
94362
94389
  isApprovalsFeatureEnabled(): boolean;
94363
94390
  isApprovalRequiredForPublishing(): boolean;
94364
- private buildPageApprovalStates;
94365
94391
  }
94366
94392
 
94367
94393
  declare function generatePageContentHash(content: DocumentationPageEditorModel, definitions: PageBlockDefinition[], debug?: boolean): string;
94368
94394
 
94369
- export { BackendVersionRoomYDoc, BlockDefinitionUtils, BlockParsingUtils, BrandsEndpoint, CodegenEndpoint, Collection, DTOAppBootstrapDataQuery, DTOAppBootstrapDataResponse, DTOAssetRenderConfiguration, DTOAuthenticatedUser, DTOAuthenticatedUserProfile, DTOAuthenticatedUserResponse, DTOBffFigmaImportRequestBody, DTOBffImportRequestBody, DTOBffUploadImportRequestBody, DTOBrand, DTOBrandCreatePayload, DTOBrandCreateResponse, DTOBrandGetResponse, DTOBrandUpdatePayload, DTOBrandsListResponse, DTOColorTokenInlineData, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTOCreateVersionInput, DTODataSource, DTODataSourceFigma, DTODataSourceFigmaCloud, DTODataSourceFigmaCreatePayload, DTODataSourceFigmaImportPayload, DTODataSourceFigmaScope, DTODataSourceFigmaVariablesPlugin, DTODataSourceResponse, DTODataSourceTokenStudio, DTODataSourcesListResponse, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODesignSystem, DTODesignSystemComponent, DTODesignSystemComponentCreateInput, DTODesignSystemComponentListResponse, DTODesignSystemComponentResponse, DTODesignSystemContactsResponse, DTODesignSystemCreateInput, DTODesignSystemInvitation, DTODesignSystemMember, DTODesignSystemMemberListResponse, DTODesignSystemMembersUpdatePayload, DTODesignSystemMembersUpdateResponse, DTODesignSystemResponse, DTODesignSystemRole, DTODesignSystemUpdateAccessModeInput, DTODesignSystemUpdateInput, DTODesignSystemVersion, DTODesignSystemVersionCreationResponse, DTODesignSystemVersionGetResponse, DTODesignSystemVersionJobStatusResponse, DTODesignSystemVersionJobsResponse, DTODesignSystemVersionStats, DTODesignSystemVersionStatsQuery, DTODesignSystemVersionsListResponse, DTODesignSystemsListResponse, DTODesignToken, DTODesignTokenCreatePayload, DTODesignTokenGroup, DTODesignTokenGroupCreatePayload, DTODesignTokenGroupListResponse, DTODesignTokenGroupResponse, DTODesignTokenListResponse, DTODesignTokenResponse, DTODiffCountBase, DTODocumentationDraftChangeType, DTODocumentationDraftState, DTODocumentationDraftStateCreated, DTODocumentationDraftStateDeleted, DTODocumentationDraftStateUpdated, DTODocumentationGroupApprovalState, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupRestoreActionInput, DTODocumentationGroupRestoreActionOutput, DTODocumentationGroupStructureV1, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV1, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationItemConfigurationV1, DTODocumentationItemConfigurationV2, DTODocumentationItemHeaderV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageAnchor, DTODocumentationPageApprovalState, DTODocumentationPageApprovalStateChangeActionInput, DTODocumentationPageApprovalStateChangeActionOutput, DTODocumentationPageApprovalStateChangeInput, DTODocumentationPageContent, DTODocumentationPageContentGetResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRestoreActionInput, DTODocumentationPageRestoreActionOutput, DTODocumentationPageRoom, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageRoomResponse, DTODocumentationPageSnapshot, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationPublishMetadata, DTODocumentationPublishTypeQueryParams, DTODocumentationStructure, DTODocumentationStructureGroupItem, DTODocumentationStructureItem, DTODocumentationStructurePageItem, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODownloadAssetsRequest, DTODownloadAssetsResponse, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOElementPropertyDefinition, DTOElementPropertyDefinitionCreatePayload, DTOElementPropertyDefinitionListResponse, DTOElementPropertyDefinitionOption, DTOElementPropertyDefinitionResponse, DTOElementPropertyDefinitionUpdatePayload, DTOElementPropertyValue, DTOElementPropertyValueListResponse, DTOElementPropertyValueResponse, DTOElementPropertyValueUpsertPaylod, DTOElementView, DTOElementViewBasePropertyColumn, DTOElementViewColumn, DTOElementViewColumnSharedAttributes, DTOElementViewPropertyDefinitionColumn, DTOElementViewThemeColumn, DTOElementViewsListResponse, DTOElementsGetOutput, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOExportJob, DTOExportJobCreatedBy, DTOExportJobDesignSystemPreview, DTOExportJobDesignSystemVersionPreview, DTOExportJobDestinations, DTOExportJobResponse, DTOExportJobResult, DTOExportJobsListFilter, DTOExporter, DTOExporterCreateInput, DTOExporterCreateOutput, DTOExporterGitProviderEnum, DTOExporterListQuery, DTOExporterListResponse, DTOExporterMembership, DTOExporterMembershipRole, DTOExporterPropertyDefinition, DTOExporterPropertyDefinitionArray, DTOExporterPropertyDefinitionBoolean, DTOExporterPropertyDefinitionEnum, DTOExporterPropertyDefinitionNumber, DTOExporterPropertyDefinitionObject, DTOExporterPropertyDefinitionString, DTOExporterPropertyDefinitionValue, DTOExporterPropertyDefinitionValueMap, DTOExporterPropertyDefinitionsResponse, DTOExporterPropertyType, DTOExporterSource, DTOExporterType, DTOExporterUpdateInput, DTOFigmaComponent, DTOFigmaComponentBooleanProperty, DTOFigmaComponentGroup, DTOFigmaComponentGroupListResponse, DTOFigmaComponentInstanceSwapProperty, DTOFigmaComponentListResponse, DTOFigmaComponentProperty, DTOFigmaComponentPropertyMap, DTOFigmaComponentTextProperty, DTOFigmaComponentVariantProperty, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeOrigin, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderFormat, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeRenderUrlInput, DTOFrameNodeStructure, DTOFrameNodeStructureListResponse, DTOGetBlockDefinitionsOutput, DTOGetDocumentationPageAnchorsResponse, DTOGitBranch, DTOGitOrganization, DTOGitProject, DTOGitRepository, DTOImportJob, DTOImportJobResponse, DTOIntegration, DTOIntegrationCredentials, DTOIntegrationOAuthGetResponse, DTOIntegrationPostResponse, DTOIntegrationsGetListResponse, DTOLiveblocksAuthRequest, DTOLiveblocksAuthResponse, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTONpmRegistryConfigConstants, DTOObjectMeta, DTOPageBlockColorV2, DTOPageBlockDefinition, DTOPageBlockDefinitionBehavior, DTOPageBlockDefinitionItem, DTOPageBlockDefinitionLayout, DTOPageBlockDefinitionProperty, DTOPageBlockDefinitionVariant, DTOPageBlockItemV2, DTOPagination, DTOPipeline, DTOPipelineCreateBody, DTOPipelineListQuery, DTOPipelineListResponse, DTOPipelineResponse, DTOPipelineTriggerBody, DTOPipelineUpdateBody, DTOPublishDocumentationChanges, DTOPublishDocumentationRequest, DTOPublishDocumentationResponse, DTORenderedAssetFile, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOTheme, DTOThemeCreatePayload, DTOThemeListResponse, DTOThemeOverride, DTOThemeOverrideCreatePayload, DTOThemeResponse, DTOTokenCollection, DTOTokenCollectionsListReponse, DTOTransferOwnershipPayload, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateUserNotificationSettingsPayload, DTOUpdateVersionInput, DTOUser, DTOUserGetResponse, DTOUserNotificationSettingsResponse, DTOUserOnboarding, DTOUserOnboardingDepartment, DTOUserOnboardingJobLevel, DTOUserProfile, DTOUserProfileUpdate, DTOUserProfileUpdatePayload, DTOUserProfileUpdateResponse, DTOUserSource, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceCreateInput, DTOWorkspaceIntegrationGetGitObjectsInput, DTOWorkspaceIntegrationOauthInput, DTOWorkspaceIntegrationPATInput, DTOWorkspaceInvitationInput, DTOWorkspaceInvitationUpdateResponse, DTOWorkspaceInvitationsListInput, DTOWorkspaceInvitationsResponse, DTOWorkspaceInviteUpdate, DTOWorkspaceMember, DTOWorkspaceMembersListResponse, DTOWorkspaceProfile, DTOWorkspaceResponse, DTOWorkspaceRole, DesignSystemBffEndpoint, DesignSystemComponentEndpoint, DesignSystemContactsEndpoint, DesignSystemMembersEndpoint, DesignSystemSourcesEndpoint, DesignSystemVersionsEndpoint, DesignSystemsEndpoint, DimensionsVariableScopeType, DocumentationEndpoint, DocumentationHierarchySettings, DocumentationPageEditorModel, DocumentationPageV1DTO, ElementPropertyDefinitionsEndpoint, ElementPropertyValuesEndpoint, ElementsActionEndpoint, ElementsEndpoint, ExportersEndpoint, FigmaComponentGroupsEndpoint, FigmaComponentsEndpoint, FigmaFrameStructuresEndpoint, FigmaUtils, FormattedCollections, FrontendVersionRoomYDoc, ImportJobsEndpoint, type ListItemNode, type ListNode, ListTreeBuilder, LiveblocksEndpoint, NpmRegistryInput, ObjectMeta, OverridesEndpoint, PageBlockEditorModel, PageSectionEditorModel, PipelinesEndpoint, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, RGB, RGBA, type RequestEexecutorServerErrorCode, RequestExecutor, type RequestExecutorConfig, RequestExecutorError, type RequestExecutorErrorType, type RequestExecutorJSONRequest, ResolvedVariableType, StringVariableScopeType, SupernovaApiClient, ThemesEndpoint, TokenCollectionsEndpoint, TokenGroupsEndpoint, TokensEndpoint, UsersEndpoint, Variable, VariableAlias, VariableMode, VariableValue, VariablesMapping, VersionRoomBaseYDoc, VersionSQSPayload, VersionStatsEndpoint, WorkspaceConfigurationPayload, WorkspaceInvitationsEndpoint, WorkspaceMembersEndpoint, WorkspacesEndpoint, applyPrivacyConfigurationToNestedItems, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, documentationItemConfigurationToDTOV1, documentationItemConfigurationToDTOV2, documentationPageToDTOV2, documentationPagesFixedConfigurationToDTOV1, documentationPagesFixedConfigurationToDTOV2, documentationPagesToDTOV1, documentationPagesToDTOV2, elementGroupsToDocumentationGroupDTOV1, elementGroupsToDocumentationGroupDTOV2, elementGroupsToDocumentationGroupFixedConfigurationDTOV1, elementGroupsToDocumentationGroupFixedConfigurationDTOV2, elementGroupsToDocumentationGroupStructureDTOV1, generateHash, generatePageContentHash, getDtoDefaultItemConfigurationV1, getDtoDefaultItemConfigurationV2, getMockPageBlockDefinitions, gitBranchToDto, gitOrganizationToDto, gitProjectToDto, gitRepositoryToDto, innerEditorProsemirrorSchema, integrationCredentialToDto, integrationToDto, itemConfigurationToYjs, mainEditorProsemirrorSchema, pageToProsemirrorDoc, pageToYDoc, pageToYXmlFragment, pipelineToDto, prosemirrorDocToPage, prosemirrorDocToRichTextPropertyValue, prosemirrorNodeToSection, prosemirrorNodesToBlocks, richTextPropertyValueToProsemirror, serializeAsCustomBlock, serializeQuery, shallowProsemirrorNodeToBlock, validateDesignSystemVersion, validateSsoPayload, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };
94395
+ export { BackendVersionRoomYDoc, BlockDefinitionUtils, BlockParsingUtils, BrandsEndpoint, CodegenEndpoint, Collection, DTOAppBootstrapDataQuery, DTOAppBootstrapDataResponse, DTOAssetRenderConfiguration, DTOAuthenticatedUser, DTOAuthenticatedUserProfile, DTOAuthenticatedUserResponse, DTOBffFigmaImportRequestBody, DTOBffImportRequestBody, DTOBffUploadImportRequestBody, DTOBrand, DTOBrandCreatePayload, DTOBrandCreateResponse, DTOBrandGetResponse, DTOBrandUpdatePayload, DTOBrandsListResponse, DTOColorTokenInlineData, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTOCreateVersionInput, DTODataSource, DTODataSourceFigma, DTODataSourceFigmaCloud, DTODataSourceFigmaCreatePayload, DTODataSourceFigmaImportPayload, DTODataSourceFigmaScope, DTODataSourceFigmaVariablesPlugin, DTODataSourceResponse, DTODataSourceTokenStudio, DTODataSourcesListResponse, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODesignSystem, DTODesignSystemComponent, DTODesignSystemComponentCreateInput, DTODesignSystemComponentListResponse, DTODesignSystemComponentResponse, DTODesignSystemContactsResponse, DTODesignSystemCreateInput, DTODesignSystemInvitation, DTODesignSystemMember, DTODesignSystemMemberListResponse, DTODesignSystemMembersUpdatePayload, DTODesignSystemMembersUpdateResponse, DTODesignSystemResponse, DTODesignSystemRole, DTODesignSystemUpdateAccessModeInput, DTODesignSystemUpdateInput, DTODesignSystemVersion, DTODesignSystemVersionCreationResponse, DTODesignSystemVersionGetResponse, DTODesignSystemVersionJobStatusResponse, DTODesignSystemVersionJobsResponse, DTODesignSystemVersionStats, DTODesignSystemVersionStatsQuery, DTODesignSystemVersionsListResponse, DTODesignSystemsListResponse, DTODesignToken, DTODesignTokenCreatePayload, DTODesignTokenGroup, DTODesignTokenGroupCreatePayload, DTODesignTokenGroupListResponse, DTODesignTokenGroupResponse, DTODesignTokenListResponse, DTODesignTokenResponse, DTODiffCountBase, DTODocumentationDraftChangeType, DTODocumentationDraftState, DTODocumentationDraftStateCreated, DTODocumentationDraftStateDeleted, DTODocumentationDraftStateUpdated, DTODocumentationGroupApprovalState, DTODocumentationGroupCreateActionInputV2, DTODocumentationGroupCreateActionOutputV2, DTODocumentationGroupDeleteActionInputV2, DTODocumentationGroupDeleteActionOutputV2, DTODocumentationGroupDuplicateActionInputV2, DTODocumentationGroupDuplicateActionOutputV2, DTODocumentationGroupMoveActionInputV2, DTODocumentationGroupMoveActionOutputV2, DTODocumentationGroupRestoreActionInput, DTODocumentationGroupRestoreActionOutput, DTODocumentationGroupStructureV1, DTODocumentationGroupUpdateActionInputV2, DTODocumentationGroupUpdateActionOutputV2, DTODocumentationGroupV1, DTODocumentationGroupV2, DTODocumentationHierarchyV2, DTODocumentationItemConfigurationV1, DTODocumentationItemConfigurationV2, DTODocumentationItemHeaderV2, DTODocumentationLinkPreviewRequest, DTODocumentationLinkPreviewResponse, DTODocumentationPageAnchor, DTODocumentationPageApprovalState, DTODocumentationPageApprovalStateChangeActionInput, DTODocumentationPageApprovalStateChangeActionOutput, DTODocumentationPageApprovalStateChangeInput, DTODocumentationPageContent, DTODocumentationPageContentGetResponse, DTODocumentationPageCreateActionInputV2, DTODocumentationPageCreateActionOutputV2, DTODocumentationPageDeleteActionInputV2, DTODocumentationPageDeleteActionOutputV2, DTODocumentationPageDuplicateActionInputV2, DTODocumentationPageDuplicateActionOutputV2, DTODocumentationPageMoveActionInputV2, DTODocumentationPageMoveActionOutputV2, DTODocumentationPageRestoreActionInput, DTODocumentationPageRestoreActionOutput, DTODocumentationPageRoomHeaderData, DTODocumentationPageRoomHeaderDataUpdate, DTODocumentationPageSnapshot, DTODocumentationPageUpdateActionInputV2, DTODocumentationPageUpdateActionOutputV2, DTODocumentationPageV2, DTODocumentationPublishMetadata, DTODocumentationPublishTypeQueryParams, DTODocumentationStructure, DTODocumentationStructureGroupItem, DTODocumentationStructureItem, DTODocumentationStructurePageItem, DTODocumentationTabCreateActionInputV2, DTODocumentationTabCreateActionOutputV2, type DTODocumentationTabGroupCreateActionInputV2, DTODocumentationTabGroupDeleteActionInputV2, DTODocumentationTabGroupDeleteActionOutputV2, DTODownloadAssetsRequest, DTODownloadAssetsResponse, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementActionOutput, DTOElementPropertyDefinition, DTOElementPropertyDefinitionCreatePayload, DTOElementPropertyDefinitionListResponse, DTOElementPropertyDefinitionOption, DTOElementPropertyDefinitionResponse, DTOElementPropertyDefinitionUpdatePayload, DTOElementPropertyValue, DTOElementPropertyValueListResponse, DTOElementPropertyValueResponse, DTOElementPropertyValueUpsertPaylod, DTOElementView, DTOElementViewBasePropertyColumn, DTOElementViewColumn, DTOElementViewColumnSharedAttributes, DTOElementViewPropertyDefinitionColumn, DTOElementViewThemeColumn, DTOElementViewsListResponse, DTOElementsGetOutput, type DTOElementsGetQueryParsed, type DTOElementsGetQueryRaw, DTOElementsGetQuerySchema, DTOElementsGetTypeFilter, DTOExportJob, DTOExportJobCreatedBy, DTOExportJobDesignSystemPreview, DTOExportJobDesignSystemVersionPreview, DTOExportJobDestinations, DTOExportJobResponse, DTOExportJobResult, DTOExportJobsListFilter, DTOExporter, DTOExporterCreateInput, DTOExporterCreateOutput, DTOExporterGitProviderEnum, DTOExporterListQuery, DTOExporterListResponse, DTOExporterMembership, DTOExporterMembershipRole, DTOExporterPropertyDefinition, DTOExporterPropertyDefinitionArray, DTOExporterPropertyDefinitionBoolean, DTOExporterPropertyDefinitionEnum, DTOExporterPropertyDefinitionNumber, DTOExporterPropertyDefinitionObject, DTOExporterPropertyDefinitionString, DTOExporterPropertyDefinitionValue, DTOExporterPropertyDefinitionValueMap, DTOExporterPropertyDefinitionsResponse, DTOExporterPropertyType, DTOExporterSource, DTOExporterType, DTOExporterUpdateInput, DTOFigmaComponent, DTOFigmaComponentBooleanProperty, DTOFigmaComponentGroup, DTOFigmaComponentGroupListResponse, DTOFigmaComponentInstanceSwapProperty, DTOFigmaComponentListResponse, DTOFigmaComponentProperty, DTOFigmaComponentPropertyMap, DTOFigmaComponentTextProperty, DTOFigmaComponentVariantProperty, DTOFigmaNode, DTOFigmaNodeData, DTOFigmaNodeOrigin, DTOFigmaNodeRenderActionInput, DTOFigmaNodeRenderActionOutput, DTOFigmaNodeRenderFormat, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeRenderUrlInput, DTOFrameNodeStructure, DTOFrameNodeStructureListResponse, DTOGetBlockDefinitionsOutput, DTOGetDocumentationPageAnchorsResponse, DTOGitBranch, DTOGitOrganization, DTOGitProject, DTOGitRepository, DTOImportJob, DTOImportJobResponse, DTOIntegration, DTOIntegrationCredentials, DTOIntegrationOAuthGetResponse, DTOIntegrationPostResponse, DTOIntegrationsGetListResponse, DTOLiveblocksAuthRequest, DTOLiveblocksAuthResponse, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTONpmRegistryConfig, DTONpmRegistryConfigConstants, DTOObjectMeta, DTOPageBlockColorV2, DTOPageBlockDefinition, DTOPageBlockDefinitionBehavior, DTOPageBlockDefinitionItem, DTOPageBlockDefinitionLayout, DTOPageBlockDefinitionProperty, DTOPageBlockDefinitionVariant, DTOPageBlockItemV2, DTOPagination, DTOPipeline, DTOPipelineCreateBody, DTOPipelineListQuery, DTOPipelineListResponse, DTOPipelineResponse, DTOPipelineTriggerBody, DTOPipelineUpdateBody, DTOPublishDocumentationChanges, DTOPublishDocumentationRequest, DTOPublishDocumentationResponse, DTORenderedAssetFile, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOTheme, DTOThemeCreatePayload, DTOThemeListResponse, DTOThemeOverride, DTOThemeOverrideCreatePayload, DTOThemeResponse, DTOTokenCollection, DTOTokenCollectionsListReponse, DTOTransferOwnershipPayload, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateUserNotificationSettingsPayload, DTOUpdateVersionInput, DTOUser, DTOUserGetResponse, DTOUserNotificationSettingsResponse, DTOUserOnboarding, DTOUserOnboardingDepartment, DTOUserOnboardingJobLevel, DTOUserProfile, DTOUserProfileUpdate, DTOUserProfileUpdatePayload, DTOUserProfileUpdateResponse, DTOUserSource, DTOUserWorkspaceMembership, DTOUserWorkspaceMembershipsResponse, DTOWorkspace, DTOWorkspaceCreateInput, DTOWorkspaceIntegrationGetGitObjectsInput, DTOWorkspaceIntegrationOauthInput, DTOWorkspaceIntegrationPATInput, DTOWorkspaceInvitationInput, DTOWorkspaceInvitationUpdateResponse, DTOWorkspaceInvitationsListInput, DTOWorkspaceInvitationsResponse, DTOWorkspaceInviteUpdate, DTOWorkspaceMember, DTOWorkspaceMembersListResponse, DTOWorkspaceProfile, DTOWorkspaceResponse, DTOWorkspaceRole, DesignSystemBffEndpoint, DesignSystemComponentEndpoint, DesignSystemContactsEndpoint, DesignSystemMembersEndpoint, DesignSystemSourcesEndpoint, DesignSystemVersionsEndpoint, DesignSystemsEndpoint, DimensionsVariableScopeType, DocsStructureRepo, DocsStructureRepository, DocumentationEndpoint, DocumentationHierarchySettings, DocumentationPageEditorModel, DocumentationPageV1DTO, ElementPropertyDefinitionsEndpoint, ElementPropertyValuesEndpoint, ElementsActionEndpoint, ElementsEndpoint, ExportersEndpoint, FigmaComponentGroupsEndpoint, FigmaComponentsEndpoint, FigmaFrameStructuresEndpoint, FigmaUtils, FormattedCollections, FrontendVersionRoomYDoc, ImportJobsEndpoint, type ListItemNode, type ListNode, ListTreeBuilder, type LocalDocsPage, type LocalDocsPageGroup, LocalStorage, NpmRegistryInput, ObjectMeta, OverridesEndpoint, PageBlockEditorModel, PageSectionEditorModel, PipelinesEndpoint, type ProsemirrorBlockItem, type ProsemirrorMark, type ProsemirrorNode, RGB, RGBA, type RequestEexecutorServerErrorCode, RequestExecutor, type RequestExecutorConfig, RequestExecutorError, type RequestExecutorErrorType, type RequestExecutorJSONRequest, ResolvedVariableType, StringVariableScopeType, SupernovaApiClient, ThemesEndpoint, TokenCollectionsEndpoint, TokenGroupsEndpoint, TokensEndpoint, UsersEndpoint, Variable, VariableAlias, VariableMode, VariableValue, VariablesMapping, VersionRoomBaseYDoc, type VersionRoomBaseYDocState, type VersionRoomDocsPage, type VersionRoomDocsPageGroup, VersionSQSPayload, VersionStatsEndpoint, WorkspaceConfigurationPayload, WorkspaceInvitationsEndpoint, WorkspaceMembersEndpoint, WorkspacesEndpoint, applyPrivacyConfigurationToNestedItems, blockToProsemirrorNode, buildDocPagePublishPaths, calculateElementParentChain, computeDocsHierarchy, documentationItemConfigurationToDTOV1, documentationItemConfigurationToDTOV2, documentationPageToDTOV2, documentationPagesFixedConfigurationToDTOV1, documentationPagesFixedConfigurationToDTOV2, documentationPagesToDTOV1, documentationPagesToDTOV2, elementGroupsToDocumentationGroupDTOV1, elementGroupsToDocumentationGroupDTOV2, elementGroupsToDocumentationGroupFixedConfigurationDTOV1, elementGroupsToDocumentationGroupFixedConfigurationDTOV2, elementGroupsToDocumentationGroupStructureDTOV1, generateHash, generatePageContentHash, getDtoDefaultItemConfigurationV1, getDtoDefaultItemConfigurationV2, getMockPageBlockDefinitions, gitBranchToDto, gitOrganizationToDto, gitProjectToDto, gitRepositoryToDto, innerEditorProsemirrorSchema, integrationCredentialToDto, integrationToDto, itemConfigurationToYjs, mainEditorProsemirrorSchema, pageToProsemirrorDoc, pageToYDoc, pageToYXmlFragment, pipelineToDto, prosemirrorDocToPage, prosemirrorDocToRichTextPropertyValue, prosemirrorNodeToSection, prosemirrorNodesToBlocks, richTextPropertyValueToProsemirror, serializeAsCustomBlock, serializeQuery, shallowProsemirrorNodeToBlock, validateDesignSystemVersion, validateSsoPayload, yDocToPage, yXmlFragmentToPage, yjsToDocumentationHierarchy, yjsToItemConfiguration };