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

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 +1363 -1321
  2. package/dist/index.d.ts +1363 -1321
  3. package/dist/index.js +536 -339
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +839 -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,892 @@ 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 deletedPageIds;
1139
+ private readonly groups;
1140
+ setPage(page: LocalDocsPage): void;
1141
+ deletePage(persistentId: string): void;
1142
+ tryGetPage(persistentId: string): LocalDocsPage | undefined;
1143
+ getPage(persistentId: string): LocalDocsPage;
1144
+ getAllPages(): LocalDocsPage[];
1145
+ getAllDeletedPages(): Set<string>;
1146
+ removePage(persistentId: string): void;
1147
+ }
1150
1148
 
1151
- declare const DTOPagination: z.ZodObject<{
1152
- limit: z.ZodOptional<z.ZodString>;
1153
- offset: z.ZodOptional<z.ZodString>;
1149
+ declare const DocumentationHierarchySettings: z.ZodObject<{
1150
+ routingVersion: z.ZodString;
1151
+ isDraftFeatureAdopted: z.ZodBoolean;
1152
+ isApprovalFeatureEnabled: z.ZodBoolean;
1153
+ approvalRequiredForPublishing: z.ZodBoolean;
1154
1154
  }, "strip", z.ZodTypeAny, {
1155
- limit?: string | undefined;
1156
- offset?: string | undefined;
1155
+ isApprovalFeatureEnabled: boolean;
1156
+ approvalRequiredForPublishing: boolean;
1157
+ routingVersion: string;
1158
+ isDraftFeatureAdopted: boolean;
1157
1159
  }, {
1158
- limit?: string | undefined;
1159
- offset?: string | undefined;
1160
+ isApprovalFeatureEnabled: boolean;
1161
+ approvalRequiredForPublishing: boolean;
1162
+ routingVersion: string;
1163
+ isDraftFeatureAdopted: boolean;
1160
1164
  }>;
1161
- type DTOPagination = z.infer<typeof DTOPagination>;
1165
+ type DocumentationHierarchySettings = z.infer<typeof DocumentationHierarchySettings>;
1166
+ /**
1167
+ * @deprecated - Use FrontendVersionRoomYDoc.getDocumentationHierarchy
1168
+ */
1169
+ declare function yjsToDocumentationHierarchy(doc: Y.Doc): DTODocumentationHierarchyV2;
1162
1170
 
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>;
1171
+ declare const DTODocumentationPageRoomHeaderData: z.ZodObject<{
1172
+ title: z.ZodString;
1173
+ configuration: z.ZodObject<{
1174
+ showSidebar: z.ZodBoolean;
1175
+ isPrivate: z.ZodBoolean;
1176
+ isHidden: z.ZodBoolean;
1177
+ header: z.ZodObject<{
1178
+ description: z.ZodString;
1179
+ alignment: z.ZodEnum<["Left", "Center"]>;
1180
+ foregroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1181
+ value: z.ZodString;
1182
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1183
+ }, "strip", z.ZodTypeAny, {
1184
+ value: string;
1185
+ referencedTokenId?: string | undefined;
1186
+ }, {
1187
+ value: string;
1188
+ referencedTokenId?: string | undefined;
1189
+ }>>>;
1190
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1191
+ value: z.ZodString;
1192
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1193
+ }, "strip", z.ZodTypeAny, {
1194
+ value: string;
1195
+ referencedTokenId?: string | undefined;
1196
+ }, {
1197
+ value: string;
1198
+ referencedTokenId?: string | undefined;
1199
+ }>>>;
1200
+ backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1201
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
1202
+ resource: z.ZodOptional<z.ZodObject<{
1203
+ resourceId: z.ZodString;
1204
+ url: z.ZodString;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ url: string;
1207
+ resourceId: string;
1208
+ }, {
1209
+ url: string;
1210
+ resourceId: string;
1211
+ }>>;
1212
+ figmaNode: z.ZodOptional<z.ZodObject<{
1213
+ sourceId: z.ZodString;
1214
+ frameReferenceId: z.ZodString;
1215
+ }, "strip", z.ZodTypeAny, {
1216
+ sourceId: string;
1217
+ frameReferenceId: string;
1218
+ }, {
1219
+ sourceId: string;
1220
+ frameReferenceId: string;
1221
+ }>>;
1222
+ }, "strip", z.ZodTypeAny, {
1223
+ type: "FigmaNode" | "Resource";
1224
+ resource?: {
1225
+ url: string;
1226
+ resourceId: string;
1227
+ } | undefined;
1228
+ figmaNode?: {
1229
+ sourceId: string;
1230
+ frameReferenceId: string;
1231
+ } | undefined;
1232
+ }, {
1233
+ type: "FigmaNode" | "Resource";
1234
+ resource?: {
1235
+ url: string;
1236
+ resourceId: string;
1237
+ } | undefined;
1238
+ figmaNode?: {
1239
+ sourceId: string;
1240
+ frameReferenceId: string;
1241
+ } | undefined;
1242
+ }>>>;
1243
+ backgroundImageScaleType: z.ZodEnum<["AspectFill", "AspectFit"]>;
1244
+ showBackgroundOverlay: z.ZodBoolean;
1245
+ showCoverText: z.ZodBoolean;
1246
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1247
+ }, "strip", z.ZodTypeAny, {
1248
+ description: string;
1249
+ alignment: "Left" | "Center";
1250
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1251
+ showBackgroundOverlay: boolean;
1252
+ showCoverText: boolean;
1253
+ backgroundColor?: {
1254
+ value: string;
1255
+ referencedTokenId?: string | undefined;
1256
+ } | null | undefined;
1257
+ foregroundColor?: {
1258
+ value: string;
1259
+ referencedTokenId?: string | undefined;
1260
+ } | null | undefined;
1261
+ backgroundImageAsset?: {
1262
+ type: "FigmaNode" | "Resource";
1263
+ resource?: {
1264
+ url: string;
1265
+ resourceId: string;
1266
+ } | undefined;
1267
+ figmaNode?: {
1268
+ sourceId: string;
1269
+ frameReferenceId: string;
1270
+ } | undefined;
1271
+ } | null | undefined;
1272
+ minHeight?: number | null | undefined;
1273
+ }, {
1274
+ description: string;
1275
+ alignment: "Left" | "Center";
1276
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1277
+ showBackgroundOverlay: boolean;
1278
+ showCoverText: boolean;
1279
+ backgroundColor?: {
1280
+ value: string;
1281
+ referencedTokenId?: string | undefined;
1282
+ } | null | undefined;
1283
+ foregroundColor?: {
1284
+ value: string;
1285
+ referencedTokenId?: string | undefined;
1286
+ } | null | undefined;
1287
+ backgroundImageAsset?: {
1288
+ type: "FigmaNode" | "Resource";
1289
+ resource?: {
1290
+ url: string;
1291
+ resourceId: string;
1292
+ } | undefined;
1293
+ figmaNode?: {
1294
+ sourceId: string;
1295
+ frameReferenceId: string;
1296
+ } | undefined;
1297
+ } | null | undefined;
1298
+ minHeight?: number | null | undefined;
1299
+ }>;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ showSidebar: boolean;
1302
+ isPrivate: boolean;
1303
+ isHidden: boolean;
1304
+ header: {
1305
+ description: string;
1306
+ alignment: "Left" | "Center";
1307
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1308
+ showBackgroundOverlay: boolean;
1309
+ showCoverText: boolean;
1310
+ backgroundColor?: {
1311
+ value: string;
1312
+ referencedTokenId?: string | undefined;
1313
+ } | null | undefined;
1314
+ foregroundColor?: {
1315
+ value: string;
1316
+ referencedTokenId?: string | undefined;
1317
+ } | null | undefined;
1318
+ backgroundImageAsset?: {
1319
+ type: "FigmaNode" | "Resource";
1320
+ resource?: {
1321
+ url: string;
1322
+ resourceId: string;
1323
+ } | undefined;
1324
+ figmaNode?: {
1325
+ sourceId: string;
1326
+ frameReferenceId: string;
1327
+ } | undefined;
1328
+ } | null | undefined;
1329
+ minHeight?: number | null | undefined;
1330
+ };
1331
+ }, {
1332
+ showSidebar: boolean;
1333
+ isPrivate: boolean;
1334
+ isHidden: boolean;
1335
+ header: {
1336
+ description: string;
1337
+ alignment: "Left" | "Center";
1338
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1339
+ showBackgroundOverlay: boolean;
1340
+ showCoverText: boolean;
1341
+ backgroundColor?: {
1342
+ value: string;
1343
+ referencedTokenId?: string | undefined;
1344
+ } | null | undefined;
1345
+ foregroundColor?: {
1346
+ value: string;
1347
+ referencedTokenId?: string | undefined;
1348
+ } | null | undefined;
1349
+ backgroundImageAsset?: {
1350
+ type: "FigmaNode" | "Resource";
1351
+ resource?: {
1352
+ url: string;
1353
+ resourceId: string;
1354
+ } | undefined;
1355
+ figmaNode?: {
1356
+ sourceId: string;
1357
+ frameReferenceId: string;
1358
+ } | undefined;
1359
+ } | null | undefined;
1360
+ minHeight?: number | null | undefined;
1361
+ };
1362
+ }>;
1168
1363
  }, "strip", z.ZodTypeAny, {
1169
- preferredWorkspaceId?: string | undefined;
1170
- preferredDesignSystemId?: string | undefined;
1171
- preferredVersionId?: string | undefined;
1172
- preferredBrandId?: string | undefined;
1364
+ title: string;
1365
+ configuration: {
1366
+ showSidebar: boolean;
1367
+ isPrivate: boolean;
1368
+ isHidden: boolean;
1369
+ header: {
1370
+ description: string;
1371
+ alignment: "Left" | "Center";
1372
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1373
+ showBackgroundOverlay: boolean;
1374
+ showCoverText: boolean;
1375
+ backgroundColor?: {
1376
+ value: string;
1377
+ referencedTokenId?: string | undefined;
1378
+ } | null | undefined;
1379
+ foregroundColor?: {
1380
+ value: string;
1381
+ referencedTokenId?: string | undefined;
1382
+ } | null | undefined;
1383
+ backgroundImageAsset?: {
1384
+ type: "FigmaNode" | "Resource";
1385
+ resource?: {
1386
+ url: string;
1387
+ resourceId: string;
1388
+ } | undefined;
1389
+ figmaNode?: {
1390
+ sourceId: string;
1391
+ frameReferenceId: string;
1392
+ } | undefined;
1393
+ } | null | undefined;
1394
+ minHeight?: number | null | undefined;
1395
+ };
1396
+ };
1173
1397
  }, {
1174
- preferredWorkspaceId?: string | undefined;
1175
- preferredDesignSystemId?: string | undefined;
1176
- preferredVersionId?: string | undefined;
1177
- preferredBrandId?: string | undefined;
1398
+ title: string;
1399
+ configuration: {
1400
+ showSidebar: boolean;
1401
+ isPrivate: boolean;
1402
+ isHidden: boolean;
1403
+ header: {
1404
+ description: string;
1405
+ alignment: "Left" | "Center";
1406
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1407
+ showBackgroundOverlay: boolean;
1408
+ showCoverText: boolean;
1409
+ backgroundColor?: {
1410
+ value: string;
1411
+ referencedTokenId?: string | undefined;
1412
+ } | null | undefined;
1413
+ foregroundColor?: {
1414
+ value: string;
1415
+ referencedTokenId?: string | undefined;
1416
+ } | null | undefined;
1417
+ backgroundImageAsset?: {
1418
+ type: "FigmaNode" | "Resource";
1419
+ resource?: {
1420
+ url: string;
1421
+ resourceId: string;
1422
+ } | undefined;
1423
+ figmaNode?: {
1424
+ sourceId: string;
1425
+ frameReferenceId: string;
1426
+ } | undefined;
1427
+ } | null | undefined;
1428
+ minHeight?: number | null | undefined;
1429
+ };
1430
+ };
1178
1431
  }>;
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>;
1432
+ type DTODocumentationPageRoomHeaderData = z.infer<typeof DTODocumentationPageRoomHeaderData>;
1433
+ declare const DTODocumentationPageRoomHeaderDataUpdate: z.ZodObject<{
1434
+ title: z.ZodOptional<z.ZodString>;
1435
+ configuration: z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<Omit<{
1436
+ showSidebar: z.ZodBoolean;
1437
+ isPrivate: z.ZodBoolean;
1438
+ isHidden: z.ZodBoolean;
1439
+ header: z.ZodObject<{
1440
+ description: z.ZodString;
1441
+ alignment: z.ZodEnum<["Left", "Center"]>;
1442
+ foregroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1443
+ value: z.ZodString;
1444
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1250
1445
  }, "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;
1446
+ value: string;
1447
+ referencedTokenId?: string | undefined;
1448
+ }, {
1449
+ value: string;
1450
+ referencedTokenId?: string | undefined;
1451
+ }>>>;
1452
+ backgroundColor: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1453
+ value: z.ZodString;
1454
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ value: string;
1457
+ referencedTokenId?: string | undefined;
1458
+ }, {
1459
+ value: string;
1460
+ referencedTokenId?: string | undefined;
1461
+ }>>>;
1462
+ backgroundImageAsset: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1463
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
1464
+ resource: z.ZodOptional<z.ZodObject<{
1465
+ resourceId: z.ZodString;
1466
+ url: z.ZodString;
1467
+ }, "strip", z.ZodTypeAny, {
1468
+ url: string;
1469
+ resourceId: string;
1470
+ }, {
1471
+ url: string;
1472
+ resourceId: string;
1473
+ }>>;
1474
+ figmaNode: z.ZodOptional<z.ZodObject<{
1475
+ sourceId: z.ZodString;
1476
+ frameReferenceId: z.ZodString;
1477
+ }, "strip", z.ZodTypeAny, {
1478
+ sourceId: string;
1479
+ frameReferenceId: string;
1480
+ }, {
1481
+ sourceId: string;
1482
+ frameReferenceId: string;
1483
+ }>>;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ type: "FigmaNode" | "Resource";
1486
+ resource?: {
1487
+ url: string;
1488
+ resourceId: string;
1489
+ } | undefined;
1490
+ figmaNode?: {
1491
+ sourceId: string;
1492
+ frameReferenceId: string;
1270
1493
  } | undefined;
1271
1494
  }, {
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;
1495
+ type: "FigmaNode" | "Resource";
1496
+ resource?: {
1497
+ url: string;
1498
+ resourceId: string;
1499
+ } | undefined;
1500
+ figmaNode?: {
1501
+ sourceId: string;
1502
+ frameReferenceId: string;
1503
+ } | undefined;
1504
+ }>>>;
1505
+ backgroundImageScaleType: z.ZodEnum<["AspectFill", "AspectFit"]>;
1506
+ showBackgroundOverlay: z.ZodBoolean;
1507
+ showCoverText: z.ZodBoolean;
1508
+ minHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1509
+ }, "strip", z.ZodTypeAny, {
1510
+ description: string;
1511
+ alignment: "Left" | "Center";
1512
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1513
+ showBackgroundOverlay: boolean;
1514
+ showCoverText: boolean;
1515
+ backgroundColor?: {
1516
+ value: string;
1517
+ referencedTokenId?: string | undefined;
1518
+ } | null | undefined;
1519
+ foregroundColor?: {
1520
+ value: string;
1521
+ referencedTokenId?: string | undefined;
1522
+ } | null | undefined;
1523
+ backgroundImageAsset?: {
1524
+ type: "FigmaNode" | "Resource";
1525
+ resource?: {
1526
+ url: string;
1527
+ resourceId: string;
1528
+ } | undefined;
1529
+ figmaNode?: {
1530
+ sourceId: string;
1531
+ frameReferenceId: string;
1532
+ } | undefined;
1533
+ } | null | undefined;
1534
+ minHeight?: number | null | undefined;
1535
+ }, {
1536
+ description: string;
1537
+ alignment: "Left" | "Center";
1538
+ backgroundImageScaleType: "AspectFill" | "AspectFit";
1539
+ showBackgroundOverlay: boolean;
1540
+ showCoverText: boolean;
1541
+ backgroundColor?: {
1542
+ value: string;
1543
+ referencedTokenId?: string | undefined;
1544
+ } | null | undefined;
1545
+ foregroundColor?: {
1546
+ value: string;
1547
+ referencedTokenId?: string | undefined;
1548
+ } | null | undefined;
1549
+ backgroundImageAsset?: {
1550
+ type: "FigmaNode" | "Resource";
1551
+ resource?: {
1552
+ url: string;
1553
+ resourceId: string;
1554
+ } | undefined;
1555
+ figmaNode?: {
1556
+ sourceId: string;
1557
+ frameReferenceId: string;
1558
+ } | undefined;
1559
+ } | null | undefined;
1560
+ minHeight?: number | null | undefined;
1561
+ }>;
1562
+ }, "header">, {
1563
+ header: z.ZodObject<{
1564
+ description: z.ZodOptional<z.ZodString>;
1565
+ alignment: z.ZodOptional<z.ZodEnum<["Left", "Center"]>>;
1566
+ foregroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1567
+ value: z.ZodString;
1568
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1569
+ }, "strip", z.ZodTypeAny, {
1570
+ value: string;
1571
+ referencedTokenId?: string | undefined;
1572
+ }, {
1573
+ value: string;
1574
+ referencedTokenId?: string | undefined;
1575
+ }>>>>;
1576
+ backgroundColor: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1577
+ value: z.ZodString;
1578
+ referencedTokenId: z.ZodOptional<z.ZodString>;
1579
+ }, "strip", z.ZodTypeAny, {
1580
+ value: string;
1581
+ referencedTokenId?: string | undefined;
1582
+ }, {
1583
+ value: string;
1584
+ referencedTokenId?: string | undefined;
1585
+ }>>>>;
1586
+ backgroundImageAsset: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1587
+ type: z.ZodEnum<["Resource", "FigmaNode"]>;
1588
+ resource: z.ZodOptional<z.ZodObject<{
1589
+ resourceId: z.ZodString;
1590
+ url: z.ZodString;
1591
+ }, "strip", z.ZodTypeAny, {
1592
+ url: string;
1593
+ resourceId: string;
1594
+ }, {
1595
+ url: string;
1596
+ resourceId: string;
1597
+ }>>;
1598
+ figmaNode: z.ZodOptional<z.ZodObject<{
1599
+ sourceId: z.ZodString;
1600
+ frameReferenceId: z.ZodString;
1601
+ }, "strip", z.ZodTypeAny, {
1602
+ sourceId: string;
1603
+ frameReferenceId: string;
1604
+ }, {
1605
+ sourceId: string;
1606
+ frameReferenceId: string;
1607
+ }>>;
1608
+ }, "strip", z.ZodTypeAny, {
1609
+ type: "FigmaNode" | "Resource";
1610
+ resource?: {
1611
+ url: string;
1612
+ resourceId: string;
1613
+ } | undefined;
1614
+ figmaNode?: {
1615
+ sourceId: string;
1616
+ frameReferenceId: string;
1617
+ } | undefined;
1618
+ }, {
1619
+ type: "FigmaNode" | "Resource";
1620
+ resource?: {
1621
+ url: string;
1622
+ resourceId: string;
1623
+ } | undefined;
1624
+ figmaNode?: {
1625
+ sourceId: string;
1626
+ frameReferenceId: string;
1627
+ } | undefined;
1628
+ }>>>>;
1629
+ backgroundImageScaleType: z.ZodOptional<z.ZodEnum<["AspectFill", "AspectFit"]>>;
1630
+ showBackgroundOverlay: z.ZodOptional<z.ZodBoolean>;
1631
+ showCoverText: z.ZodOptional<z.ZodBoolean>;
1632
+ minHeight: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
1633
+ }, "strip", z.ZodTypeAny, {
1634
+ description?: string | undefined;
1635
+ alignment?: "Left" | "Center" | undefined;
1636
+ foregroundColor?: {
1637
+ value: string;
1638
+ referencedTokenId?: string | undefined;
1639
+ } | null | undefined;
1640
+ backgroundColor?: {
1641
+ value: string;
1642
+ referencedTokenId?: string | undefined;
1643
+ } | null | undefined;
1644
+ backgroundImageAsset?: {
1645
+ type: "FigmaNode" | "Resource";
1646
+ resource?: {
1647
+ url: string;
1648
+ resourceId: string;
1649
+ } | undefined;
1650
+ figmaNode?: {
1651
+ sourceId: string;
1652
+ frameReferenceId: string;
1653
+ } | undefined;
1654
+ } | null | undefined;
1655
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1656
+ showBackgroundOverlay?: boolean | undefined;
1657
+ showCoverText?: boolean | undefined;
1658
+ minHeight?: number | null | undefined;
1659
+ }, {
1660
+ description?: string | undefined;
1661
+ alignment?: "Left" | "Center" | undefined;
1662
+ foregroundColor?: {
1663
+ value: string;
1664
+ referencedTokenId?: string | undefined;
1665
+ } | null | undefined;
1666
+ backgroundColor?: {
1667
+ value: string;
1668
+ referencedTokenId?: string | undefined;
1669
+ } | null | undefined;
1670
+ backgroundImageAsset?: {
1671
+ type: "FigmaNode" | "Resource";
1672
+ resource?: {
1673
+ url: string;
1674
+ resourceId: string;
1675
+ } | undefined;
1676
+ figmaNode?: {
1677
+ sourceId: string;
1678
+ frameReferenceId: string;
1679
+ } | undefined;
1680
+ } | null | undefined;
1681
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1682
+ showBackgroundOverlay?: boolean | undefined;
1683
+ showCoverText?: boolean | undefined;
1684
+ minHeight?: number | null | undefined;
1685
+ }>;
1686
+ }>, "strip", z.ZodTypeAny, {
1687
+ showSidebar: boolean;
1688
+ isPrivate: boolean;
1689
+ isHidden: boolean;
1690
+ header: {
1691
+ description?: string | undefined;
1692
+ alignment?: "Left" | "Center" | undefined;
1693
+ foregroundColor?: {
1694
+ value: string;
1695
+ referencedTokenId?: string | undefined;
1696
+ } | null | undefined;
1697
+ backgroundColor?: {
1698
+ value: string;
1699
+ referencedTokenId?: string | undefined;
1700
+ } | null | undefined;
1701
+ backgroundImageAsset?: {
1702
+ type: "FigmaNode" | "Resource";
1703
+ resource?: {
1704
+ url: string;
1705
+ resourceId: string;
1706
+ } | undefined;
1707
+ figmaNode?: {
1708
+ sourceId: string;
1709
+ frameReferenceId: string;
1710
+ } | undefined;
1711
+ } | null | undefined;
1712
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1713
+ showBackgroundOverlay?: boolean | undefined;
1714
+ showCoverText?: boolean | undefined;
1715
+ minHeight?: number | null | undefined;
1716
+ };
1717
+ }, {
1718
+ showSidebar: boolean;
1719
+ isPrivate: boolean;
1720
+ isHidden: boolean;
1721
+ header: {
1722
+ description?: string | undefined;
1723
+ alignment?: "Left" | "Center" | undefined;
1724
+ foregroundColor?: {
1725
+ value: string;
1726
+ referencedTokenId?: string | undefined;
1727
+ } | null | undefined;
1728
+ backgroundColor?: {
1729
+ value: string;
1730
+ referencedTokenId?: string | undefined;
1731
+ } | null | undefined;
1732
+ backgroundImageAsset?: {
1733
+ type: "FigmaNode" | "Resource";
1734
+ resource?: {
1735
+ url: string;
1736
+ resourceId: string;
1737
+ } | undefined;
1738
+ figmaNode?: {
1739
+ sourceId: string;
1740
+ frameReferenceId: string;
1741
+ } | undefined;
1742
+ } | null | undefined;
1743
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1744
+ showBackgroundOverlay?: boolean | undefined;
1745
+ showCoverText?: boolean | undefined;
1746
+ minHeight?: number | null | undefined;
1747
+ };
1748
+ }>>;
1749
+ }, "strip", z.ZodTypeAny, {
1750
+ title?: string | undefined;
1751
+ configuration?: {
1752
+ showSidebar: boolean;
1753
+ isPrivate: boolean;
1754
+ isHidden: boolean;
1755
+ header: {
1756
+ description?: string | undefined;
1757
+ alignment?: "Left" | "Center" | undefined;
1758
+ foregroundColor?: {
1759
+ value: string;
1760
+ referencedTokenId?: string | undefined;
1761
+ } | null | undefined;
1762
+ backgroundColor?: {
1763
+ value: string;
1764
+ referencedTokenId?: string | undefined;
1765
+ } | null | undefined;
1766
+ backgroundImageAsset?: {
1767
+ type: "FigmaNode" | "Resource";
1768
+ resource?: {
1769
+ url: string;
1770
+ resourceId: string;
1771
+ } | undefined;
1772
+ figmaNode?: {
1773
+ sourceId: string;
1774
+ frameReferenceId: string;
1775
+ } | undefined;
1776
+ } | null | undefined;
1777
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1778
+ showBackgroundOverlay?: boolean | undefined;
1779
+ showCoverText?: boolean | undefined;
1780
+ minHeight?: number | null | undefined;
1781
+ };
1782
+ } | undefined;
1783
+ }, {
1784
+ title?: string | undefined;
1785
+ configuration?: {
1786
+ showSidebar: boolean;
1787
+ isPrivate: boolean;
1788
+ isHidden: boolean;
1789
+ header: {
1790
+ description?: string | undefined;
1791
+ alignment?: "Left" | "Center" | undefined;
1792
+ foregroundColor?: {
1793
+ value: string;
1794
+ referencedTokenId?: string | undefined;
1795
+ } | null | undefined;
1796
+ backgroundColor?: {
1797
+ value: string;
1798
+ referencedTokenId?: string | undefined;
1799
+ } | null | undefined;
1800
+ backgroundImageAsset?: {
1801
+ type: "FigmaNode" | "Resource";
1802
+ resource?: {
1803
+ url: string;
1804
+ resourceId: string;
1805
+ } | undefined;
1806
+ figmaNode?: {
1807
+ sourceId: string;
1808
+ frameReferenceId: string;
1809
+ } | undefined;
1810
+ } | null | undefined;
1811
+ backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
1812
+ showBackgroundOverlay?: boolean | undefined;
1813
+ showCoverText?: boolean | undefined;
1814
+ minHeight?: number | null | undefined;
1815
+ };
1816
+ } | undefined;
1817
+ }>;
1818
+ type DTODocumentationPageRoomHeaderDataUpdate = z.infer<typeof DTODocumentationPageRoomHeaderDataUpdate>;
1819
+ declare function itemConfigurationToYjs(yDoc: Y.Doc, item: DTODocumentationPageRoomHeaderDataUpdate): void;
1820
+ declare function yjsToItemConfiguration(yDoc: Y.Doc): DTODocumentationPageRoomHeaderData;
1821
+
1822
+ type VersionRoomDocsPage = DocumentationPageV2;
1823
+ type VersionRoomDocsPageGroup = ElementGroup;
1824
+ type VersionRoomBaseYDocState = {
1825
+ pages: VersionRoomDocsPage[];
1826
+ pageSnapshots: DocumentationPageSnapshot[];
1827
+ pageContentHashes: Record<string, string>;
1828
+ groups: VersionRoomDocsPageGroup[];
1829
+ groupSnapshots: ElementGroupSnapshot[];
1830
+ approvals: DocumentationPageApproval[];
1831
+ settings: DocumentationHierarchySettings;
1832
+ };
1833
+
1834
+ declare const DTOColorTokenInlineData: z.ZodObject<{
1835
+ value: z.ZodString;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ value: string;
1838
+ }, {
1839
+ value: string;
1840
+ }>;
1841
+ type DTOColorTokenInlineData = z.infer<typeof DTOColorTokenInlineData>;
1842
+
1843
+ declare const DTOObjectMeta: z.ZodObject<{
1844
+ name: z.ZodString;
1845
+ description: z.ZodOptional<z.ZodString>;
1846
+ }, "strip", z.ZodTypeAny, {
1847
+ name: string;
1848
+ description?: string | undefined;
1849
+ }, {
1850
+ name: string;
1851
+ description?: string | undefined;
1852
+ }>;
1853
+ type DTOObjectMeta = z.infer<typeof DTOObjectMeta>;
1854
+
1855
+ declare const DTOPagination: z.ZodObject<{
1856
+ limit: z.ZodOptional<z.ZodString>;
1857
+ offset: z.ZodOptional<z.ZodString>;
1858
+ }, "strip", z.ZodTypeAny, {
1859
+ limit?: string | undefined;
1860
+ offset?: string | undefined;
1861
+ }, {
1862
+ limit?: string | undefined;
1863
+ offset?: string | undefined;
1864
+ }>;
1865
+ type DTOPagination = z.infer<typeof DTOPagination>;
1866
+
1867
+ declare const DTOAppBootstrapDataQuery: z.ZodObject<{
1868
+ preferredWorkspaceId: z.ZodOptional<z.ZodString>;
1869
+ preferredDesignSystemId: z.ZodOptional<z.ZodString>;
1870
+ preferredVersionId: z.ZodOptional<z.ZodString>;
1871
+ preferredBrandId: z.ZodOptional<z.ZodString>;
1872
+ }, "strip", z.ZodTypeAny, {
1873
+ preferredWorkspaceId?: string | undefined;
1874
+ preferredDesignSystemId?: string | undefined;
1875
+ preferredVersionId?: string | undefined;
1876
+ preferredBrandId?: string | undefined;
1877
+ }, {
1878
+ preferredWorkspaceId?: string | undefined;
1879
+ preferredDesignSystemId?: string | undefined;
1880
+ preferredVersionId?: string | undefined;
1881
+ preferredBrandId?: string | undefined;
1882
+ }>;
1883
+ type DTOAppBootstrapDataQuery = z.infer<typeof DTOAppBootstrapDataQuery>;
1884
+ declare const DTOAppBootstrapDataResponse: z.ZodObject<{
1885
+ workspaceMembership: z.ZodOptional<z.ZodObject<{
1886
+ workspace: z.ZodObject<{
1887
+ id: z.ZodString;
1888
+ profile: z.ZodObject<{
1889
+ name: z.ZodString;
1890
+ handle: z.ZodString;
1891
+ color: z.ZodString;
1892
+ avatar: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<string, z.ZodTypeDef, string>>>, string | undefined, string | null | undefined>;
1893
+ billingDetails: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodType<{
1894
+ address?: {
1895
+ street1?: string | undefined;
1896
+ street2?: string | undefined;
1897
+ city?: string | undefined;
1898
+ postal?: string | undefined;
1899
+ country?: string | undefined;
1900
+ state?: string | undefined;
1901
+ } | undefined;
1902
+ email?: string | undefined;
1903
+ companyName?: string | undefined;
1904
+ companyId?: string | undefined;
1905
+ notes?: string | undefined;
1906
+ vat?: string | undefined;
1907
+ poNumber?: string | undefined;
1908
+ }, z.ZodTypeDef, {
1909
+ address?: {
1910
+ street1?: string | null | undefined;
1911
+ street2?: string | null | undefined;
1912
+ city?: string | null | undefined;
1913
+ postal?: string | null | undefined;
1914
+ country?: string | null | undefined;
1915
+ state?: string | null | undefined;
1916
+ } | null | undefined;
1917
+ email?: string | null | undefined;
1918
+ companyName?: string | null | undefined;
1919
+ companyId?: string | null | undefined;
1920
+ notes?: string | null | undefined;
1921
+ vat?: string | null | undefined;
1922
+ poNumber?: string | null | undefined;
1923
+ }>>>, {
1924
+ address?: {
1925
+ street1?: string | undefined;
1926
+ street2?: string | undefined;
1927
+ city?: string | undefined;
1928
+ postal?: string | undefined;
1929
+ country?: string | undefined;
1930
+ state?: string | undefined;
1931
+ } | undefined;
1932
+ email?: string | undefined;
1933
+ companyName?: string | undefined;
1934
+ companyId?: string | undefined;
1935
+ notes?: string | undefined;
1936
+ vat?: string | undefined;
1937
+ poNumber?: string | undefined;
1938
+ } | undefined, {
1939
+ address?: {
1940
+ street1?: string | null | undefined;
1941
+ street2?: string | null | undefined;
1942
+ city?: string | null | undefined;
1943
+ postal?: string | null | undefined;
1944
+ country?: string | null | undefined;
1945
+ state?: string | null | undefined;
1946
+ } | null | undefined;
1947
+ email?: string | null | undefined;
1948
+ companyName?: string | null | undefined;
1949
+ companyId?: string | null | undefined;
1950
+ notes?: string | null | undefined;
1951
+ vat?: string | null | undefined;
1952
+ poNumber?: string | null | undefined;
1953
+ } | null | undefined>;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ name: string;
1956
+ color: string;
1957
+ handle: string;
1958
+ avatar?: string | undefined;
1959
+ billingDetails?: {
1960
+ address?: {
1961
+ street1?: string | undefined;
1962
+ street2?: string | undefined;
1963
+ city?: string | undefined;
1964
+ postal?: string | undefined;
1965
+ country?: string | undefined;
1966
+ state?: string | undefined;
1967
+ } | undefined;
1968
+ email?: string | undefined;
1969
+ companyName?: string | undefined;
1970
+ companyId?: string | undefined;
1971
+ notes?: string | undefined;
1972
+ vat?: string | undefined;
1973
+ poNumber?: string | undefined;
1974
+ } | undefined;
1975
+ }, {
1976
+ name: string;
1977
+ color: string;
1978
+ handle: string;
1979
+ avatar?: string | null | undefined;
1980
+ billingDetails?: {
1981
+ address?: {
1982
+ street1?: string | null | undefined;
1983
+ street2?: string | null | undefined;
1984
+ city?: string | null | undefined;
1985
+ postal?: string | null | undefined;
1986
+ country?: string | null | undefined;
1987
+ state?: string | null | undefined;
1988
+ } | null | undefined;
1989
+ email?: string | null | undefined;
1990
+ companyName?: string | null | undefined;
1991
+ companyId?: string | null | undefined;
1992
+ notes?: string | null | undefined;
1993
+ vat?: string | null | undefined;
1994
+ poNumber?: string | null | undefined;
1995
+ } | null | undefined;
1996
+ }>;
1997
+ subscription: z.ZodObject<{
1998
+ stripeSubscriptionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1999
+ stripeCustomerId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2000
+ status: z.ZodOptional<z.ZodEnum<["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]>>;
2001
+ subscriptionStatus: z.ZodOptional<z.ZodEnum<["trialing", "active", "past_due", "canceled", "unpaid", "incomplete_expired", "incomplete", "unknown"]>>;
2002
+ internalStatus: z.ZodOptional<z.ZodEnum<["active", "suspended", "gracePeriod", "cancelled", "downgraded_to_free"]>>;
2003
+ product: z.ZodEnum<["free", "team", "company", "enterprise"]>;
2004
+ featuresSummary: z.ZodOptional<z.ZodObject<{
2005
+ designSystems: z.ZodObject<{
2006
+ max: z.ZodNumber;
2007
+ errorMessage: z.ZodString;
2008
+ errorReason: z.ZodString;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ max: number;
2011
+ errorMessage: string;
2012
+ errorReason: string;
2013
+ }, {
2014
+ max: number;
2015
+ errorMessage: string;
1312
2016
  errorReason: string;
1313
2017
  }>;
1314
2018
  designSystemSources: z.ZodObject<z.objectUtil.extendShape<{
@@ -21772,18 +22476,18 @@ declare const DTODocumentationPageApprovalState: z.ZodObject<{
21772
22476
  type DTODocumentationPageApprovalState = DocumentationPageApproval;
21773
22477
  declare const DTODocumentationGroupApprovalState: z.ZodObject<{
21774
22478
  persistentId: z.ZodString;
21775
- groupId: z.ZodString;
22479
+ groupPersistentId: z.ZodString;
21776
22480
  designSystemVersionId: z.ZodString;
21777
22481
  approvalState: z.ZodEnum<["ReadyForReview", "ChangesRequested", "Approved"]>;
21778
22482
  }, "strip", z.ZodTypeAny, {
21779
22483
  persistentId: string;
21780
22484
  designSystemVersionId: string;
21781
- groupId: string;
22485
+ groupPersistentId: string;
21782
22486
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
21783
22487
  }, {
21784
22488
  persistentId: string;
21785
22489
  designSystemVersionId: string;
21786
- groupId: string;
22490
+ groupPersistentId: string;
21787
22491
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
21788
22492
  }>;
21789
22493
  type DTODocumentationGroupApprovalState = z.infer<typeof DTODocumentationGroupApprovalState>;
@@ -24888,33 +25592,6 @@ declare const DTOPublishDocumentationResponse: z.ZodObject<{
24888
25592
  }>;
24889
25593
  type DTOPublishDocumentationResponse = z.infer<typeof DTOPublishDocumentationResponse>;
24890
25594
 
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
25595
  declare const DTOFigmaComponentGroup: zod__default.ZodObject<{
24919
25596
  id: zod__default.ZodString;
24920
25597
  designSystemVersionId: zod__default.ZodString;
@@ -28451,18 +29128,18 @@ declare const DTODocumentationGroupV2: z.ZodObject<z.objectUtil.extendShape<Omit
28451
29128
  }>>;
28452
29129
  approvalState: z.ZodOptional<z.ZodObject<{
28453
29130
  persistentId: z.ZodString;
28454
- groupId: z.ZodString;
29131
+ groupPersistentId: z.ZodString;
28455
29132
  designSystemVersionId: z.ZodString;
28456
29133
  approvalState: z.ZodEnum<["ReadyForReview", "ChangesRequested", "Approved"]>;
28457
29134
  }, "strip", z.ZodTypeAny, {
28458
29135
  persistentId: string;
28459
29136
  designSystemVersionId: string;
28460
- groupId: string;
29137
+ groupPersistentId: string;
28461
29138
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
28462
29139
  }, {
28463
29140
  persistentId: string;
28464
29141
  designSystemVersionId: string;
28465
- groupId: string;
29142
+ groupPersistentId: string;
28466
29143
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
28467
29144
  }>>;
28468
29145
  }>, "strip", z.ZodTypeAny, {
@@ -28514,7 +29191,7 @@ declare const DTODocumentationGroupV2: z.ZodObject<z.objectUtil.extendShape<Omit
28514
29191
  approvalState?: {
28515
29192
  persistentId: string;
28516
29193
  designSystemVersionId: string;
28517
- groupId: string;
29194
+ groupPersistentId: string;
28518
29195
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
28519
29196
  } | undefined;
28520
29197
  draftState?: {
@@ -28615,7 +29292,7 @@ declare const DTODocumentationGroupV2: z.ZodObject<z.objectUtil.extendShape<Omit
28615
29292
  approvalState?: {
28616
29293
  persistentId: string;
28617
29294
  designSystemVersionId: string;
28618
- groupId: string;
29295
+ groupPersistentId: string;
28619
29296
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
28620
29297
  } | undefined;
28621
29298
  draftState?: {
@@ -31240,18 +31917,18 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
31240
31917
  }>>;
31241
31918
  approvalState: z.ZodOptional<z.ZodObject<{
31242
31919
  persistentId: z.ZodString;
31243
- groupId: z.ZodString;
31920
+ groupPersistentId: z.ZodString;
31244
31921
  designSystemVersionId: z.ZodString;
31245
31922
  approvalState: z.ZodEnum<["ReadyForReview", "ChangesRequested", "Approved"]>;
31246
31923
  }, "strip", z.ZodTypeAny, {
31247
31924
  persistentId: string;
31248
31925
  designSystemVersionId: string;
31249
- groupId: string;
31926
+ groupPersistentId: string;
31250
31927
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31251
31928
  }, {
31252
31929
  persistentId: string;
31253
31930
  designSystemVersionId: string;
31254
- groupId: string;
31931
+ groupPersistentId: string;
31255
31932
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31256
31933
  }>>;
31257
31934
  }>, {
@@ -31666,7 +32343,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
31666
32343
  approvalState?: {
31667
32344
  persistentId: string;
31668
32345
  designSystemVersionId: string;
31669
- groupId: string;
32346
+ groupPersistentId: string;
31670
32347
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31671
32348
  } | undefined;
31672
32349
  draftState?: {
@@ -31767,7 +32444,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
31767
32444
  approvalState?: {
31768
32445
  persistentId: string;
31769
32446
  designSystemVersionId: string;
31770
- groupId: string;
32447
+ groupPersistentId: string;
31771
32448
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31772
32449
  } | undefined;
31773
32450
  draftState?: {
@@ -31870,7 +32547,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
31870
32547
  approvalState?: {
31871
32548
  persistentId: string;
31872
32549
  designSystemVersionId: string;
31873
- groupId: string;
32550
+ groupPersistentId: string;
31874
32551
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
31875
32552
  } | undefined;
31876
32553
  draftState?: {
@@ -32078,7 +32755,7 @@ declare const DTODocumentationHierarchyV2: z.ZodObject<{
32078
32755
  approvalState?: {
32079
32756
  persistentId: string;
32080
32757
  designSystemVersionId: string;
32081
- groupId: string;
32758
+ groupPersistentId: string;
32082
32759
  approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
32083
32760
  } | undefined;
32084
32761
  draftState?: {
@@ -83786,8 +84463,10 @@ declare const DTOWorkspaceResponse: z.ZodObject<{
83786
84463
  }>;
83787
84464
  type DTOWorkspaceResponse = z.infer<typeof DTOWorkspaceResponse>;
83788
84465
 
83789
- declare function elementGroupsToDocumentationGroupDTOV2(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV2[];
83790
- declare function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups: ElementGroup[], pages: (DocumentationPageV1 | DocumentationPageV2)[]): DTODocumentationGroupV2[];
84466
+ type DocsPage$3 = LocalDocsPage | VersionRoomDocsPage;
84467
+ type DocsPageGroup$3 = LocalDocsPageGroup | VersionRoomDocsPageGroup;
84468
+ declare function elementGroupsToDocumentationGroupDTOV2(groups: DocsPageGroup$3[], pages: (DocumentationPageV1 | DocsPage$3)[]): DTODocumentationGroupV2[];
84469
+ declare function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups: DocsPageGroup$3[], pages: (DocumentationPageV1 | DocsPage$3)[]): DTODocumentationGroupV2[];
83791
84470
 
83792
84471
  declare const getDtoDefaultItemConfigurationV1: () => {
83793
84472
  readonly showSidebar: true;
@@ -83821,9 +84500,11 @@ type GroupLike = {
83821
84500
  persistentId: string;
83822
84501
  parentPersistentId?: string;
83823
84502
  };
83824
- declare function buildDocPagePublishPaths(groups: (ElementGroup | DocumentationGroupV1)[], pages: (DocumentationPageV1 | DocumentationPageV2)[], routingVersion: string): Map<string, string>;
84503
+ type DocsPage$2 = LocalDocsPage | VersionRoomDocsPage;
84504
+ type DocsPageGroup$2 = LocalDocsPageGroup | VersionRoomDocsPageGroup;
84505
+ declare function buildDocPagePublishPaths(groups: (DocsPageGroup$2 | DocumentationGroupV1)[], pages: (DocsPage$2 | DocumentationPageV1)[], routingVersion: string): Map<string, string>;
83825
84506
  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): {
84507
+ declare function applyPrivacyConfigurationToNestedItems<PageType extends DocumentationPageV1 | DocsPage$2, GroupType extends DocumentationGroupV1 | DocsPageGroup$2, ItemConfigurationType extends DocumentationItemConfigurationV1 | DocumentationItemConfigurationV2>(pages: PageType[], groups: GroupType[], getDefaultItemConfiguration: () => ItemConfigurationType): {
83827
84508
  pages: PageType[];
83828
84509
  groups: GroupType[];
83829
84510
  };
@@ -83831,9 +84512,11 @@ declare function applyPrivacyConfigurationToNestedItems<PageType extends Documen
83831
84512
  declare function documentationPagesToDTOV1(pages: DocumentationPageV1[], groups: DocumentationGroupV1[], routingVersion: string): DocumentationPageV1DTO[];
83832
84513
  declare function documentationPagesFixedConfigurationToDTOV1(pages: DocumentationPageV1[], groups: DocumentationGroupV1[], routingVersion: string): DocumentationPageV1DTO[];
83833
84514
 
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[];
84515
+ type DocsPage$1 = LocalDocsPage | VersionRoomDocsPage;
84516
+ type DocsPageGroup$1 = LocalDocsPageGroup | VersionRoomDocsPageGroup;
84517
+ declare function documentationPageToDTOV2(page: DocsPage$1, groups: DocsPageGroup$1[], routingVersion: string): DTODocumentationPageV2;
84518
+ declare function documentationPagesToDTOV2(pages: DocsPage$1[], groups: DocsPageGroup$1[], routingVersion: string): DTODocumentationPageV2[];
84519
+ declare function documentationPagesFixedConfigurationToDTOV2(pages: DocsPage$1[], groups: DocsPageGroup$1[], routingVersion: string): DTODocumentationPageV2[];
83837
84520
 
83838
84521
  declare function pipelineToDto(pipeline: Pipeline): DTOPipeline;
83839
84522
 
@@ -87094,11 +87777,6 @@ declare class DocumentationEndpoint {
87094
87777
  title: string;
87095
87778
  })[];
87096
87779
  }>;
87097
- getPageRoom(dsId: string, vId: string, pageId: string): Promise<{
87098
- room: {
87099
- id: string;
87100
- };
87101
- }>;
87102
87780
  }
87103
87781
 
87104
87782
  declare class DesignSystemComponentEndpoint {
@@ -91398,1095 +92076,454 @@ declare class WorkspacesEndpoint {
91398
92076
  max: number;
91399
92077
  errorMessage: string;
91400
92078
  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;
92079
+ };
92080
+ publicDocumentation: {
92081
+ errorMessage: string;
92082
+ errorReason: string;
92083
+ enabled: boolean;
92084
+ };
92085
+ customDocumentationUrl: {
92086
+ errorMessage: string;
92087
+ errorReason: string;
92088
+ enabled: boolean;
92089
+ };
92090
+ customDocumentationViewButton: {
92091
+ errorMessage: string;
92092
+ errorReason: string;
92093
+ enabled: boolean;
92094
+ };
92095
+ designSystemSourceAutoImport: {
92096
+ errorMessage: string;
92097
+ errorReason: string;
92098
+ enabled: boolean;
92099
+ };
92100
+ designSystemSlug: {
92101
+ errorMessage: string;
92102
+ errorReason: string;
92103
+ enabled: boolean;
92104
+ };
92105
+ ipWhitelisting: {
92106
+ errorMessage: string;
92107
+ errorReason: string;
92108
+ enabled: boolean;
92109
+ };
92110
+ npmRegistry: {
92111
+ errorMessage: string;
92112
+ errorReason: string;
92113
+ enabled: boolean;
92114
+ };
92115
+ sso: {
92116
+ errorMessage: string;
92117
+ errorReason: string;
92118
+ enabled: boolean;
92119
+ };
92120
+ workspacePaidSeats: {
92121
+ max: number;
92122
+ errorMessage: string;
92123
+ errorReason: string;
92124
+ };
92125
+ workspaceViewers: {
92126
+ max: number;
92127
+ errorMessage: string;
92128
+ errorReason: string;
92129
+ };
92130
+ customDocumentationExporter: {
92131
+ errorMessage: string;
92132
+ errorReason: string;
92133
+ enabled: boolean;
92134
+ };
92135
+ protectedPages: {
92136
+ errorMessage: string;
92137
+ errorReason: string;
92138
+ enabled: boolean;
92139
+ };
92140
+ approvals: {
92141
+ errorMessage: string;
92142
+ errorReason: string;
92143
+ enabled: boolean;
92144
+ };
92145
+ selectivePublishing: {
92146
+ errorMessage: string;
92147
+ errorReason: string;
92148
+ enabled: boolean;
92149
+ };
92150
+ designSystemAccessModes: {
92151
+ errorMessage: string;
92152
+ errorReason: string;
92153
+ enabled: boolean;
92154
+ };
92155
+ designSystemRoles: {
92156
+ errorMessage: string;
92157
+ errorReason: string;
92158
+ enabled: boolean;
92159
+ };
92379
92160
  } | undefined;
92380
- } | null | undefined;
92381
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92382
- showBackgroundOverlay?: boolean | undefined;
92383
- showCoverText?: boolean | undefined;
92384
- minHeight?: number | null | undefined;
92161
+ stripeSubscriptionMainItemId?: string | undefined;
92162
+ currentPeriodStart?: string | undefined;
92163
+ currentPeriodEnd?: string | undefined;
92164
+ subscriptionStatusUpdatedAt?: string | undefined;
92165
+ cancelAt?: string | null | undefined;
92166
+ billingType?: "Auto" | "Invoice" | undefined;
92167
+ daysUntilDue?: number | undefined;
92168
+ };
92169
+ npmRegistry?: {
92170
+ enabledScopes: string[];
92171
+ bypassProxy: boolean;
92172
+ registryType: "Custom" | "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory";
92173
+ authType: "Custom" | "None" | "Basic" | "Bearer";
92174
+ registryUrl: string;
92175
+ proxyUrl: string;
92176
+ customRegistryUrl?: string | undefined;
92177
+ accessToken?: string | undefined;
92178
+ username?: string | undefined;
92179
+ password?: string | undefined;
92180
+ } | undefined;
92385
92181
  };
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;
92182
+ }>;
92183
+ }
92184
+
92185
+ declare class UsersEndpoint {
92186
+ private readonly requestExecutor;
92187
+ constructor(requestExecutor: RequestExecutor);
92188
+ getMe(): Promise<{
92189
+ user: {
92190
+ id: string;
92191
+ createdAt: Date;
92192
+ email: string;
92193
+ profile: {
92194
+ name: string;
92195
+ nickname?: string | undefined;
92196
+ avatar?: string | undefined;
92197
+ onboarding?: {
92198
+ companyName?: string | undefined;
92199
+ numberOfPeopleInOrg?: string | undefined;
92200
+ numberOfPeopleInDesignTeam?: string | undefined;
92201
+ department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
92202
+ jobTitle?: string | undefined;
92203
+ phase?: string | undefined;
92204
+ jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
92205
+ designSystemName?: string | undefined;
92206
+ defaultDestination?: string | undefined;
92207
+ isPageDraftOnboardingFinished?: boolean | undefined;
92410
92208
  } | undefined;
92411
- } | null | undefined;
92412
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92413
- showBackgroundOverlay?: boolean | undefined;
92414
- showCoverText?: boolean | undefined;
92415
- minHeight?: number | null | undefined;
92209
+ };
92210
+ loggedOutAt?: Date | undefined;
92211
+ source?: "SignUp" | "Invite" | "SSO" | undefined;
92416
92212
  };
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;
92213
+ }>;
92214
+ listWorkspaces(uid: string): Promise<{
92215
+ membership: {
92216
+ workspace: {
92217
+ id: string;
92218
+ profile: {
92219
+ name: string;
92220
+ color: string;
92221
+ handle: string;
92222
+ avatar?: string | undefined;
92223
+ billingDetails?: {
92224
+ address?: {
92225
+ street1?: string | undefined;
92226
+ street2?: string | undefined;
92227
+ city?: string | undefined;
92228
+ postal?: string | undefined;
92229
+ country?: string | undefined;
92230
+ state?: string | undefined;
92231
+ } | undefined;
92232
+ email?: string | undefined;
92233
+ companyName?: string | undefined;
92234
+ companyId?: string | undefined;
92235
+ notes?: string | undefined;
92236
+ vat?: string | undefined;
92237
+ poNumber?: string | undefined;
92238
+ } | undefined;
92239
+ };
92240
+ subscription: {
92241
+ product: "free" | "team" | "company" | "enterprise";
92242
+ planPriceId: string;
92243
+ planInterval: "yearly" | "daily" | "monthly" | "weekly";
92244
+ seats: number;
92245
+ seatLimit: number;
92246
+ status?: "active" | "suspended" | "gracePeriod" | "cancelled" | "downgraded_to_free" | undefined;
92247
+ card?: {
92248
+ cardId?: string | null | undefined;
92249
+ last4?: string | null | undefined;
92250
+ expiryMonth?: string | null | undefined;
92251
+ expiryYear?: string | null | undefined;
92252
+ brand?: string | null | undefined;
92253
+ name?: string | null | undefined;
92254
+ } | undefined;
92255
+ amount?: number | null | undefined;
92256
+ stripeProductDescription?: string | undefined;
92257
+ isPricePerCreator?: boolean | undefined;
92258
+ isTrial?: boolean | undefined;
92259
+ legacyVersion?: string | undefined;
92260
+ stripeProductFeatures?: string[] | undefined;
92261
+ stripeProductAdditionalFeatures?: string[] | undefined;
92262
+ stripeSubscriptionId?: string | null | undefined;
92263
+ stripeCustomerId?: string | null | undefined;
92264
+ subscriptionStatus?: "unknown" | "active" | "trialing" | "past_due" | "canceled" | "unpaid" | "incomplete_expired" | "incomplete" | undefined;
92265
+ internalStatus?: "active" | "suspended" | "gracePeriod" | "cancelled" | "downgraded_to_free" | undefined;
92266
+ featuresSummary?: {
92267
+ designSystems: {
92268
+ max: number;
92269
+ errorMessage: string;
92270
+ errorReason: string;
92271
+ };
92272
+ designSystemSources: {
92273
+ max: number;
92274
+ errorMessage: string;
92275
+ errorReason: string;
92276
+ noImportJobsErrorMessage: string;
92277
+ noImportJobsErrorReason: string;
92278
+ };
92279
+ designSystemVersions: {
92280
+ max: number;
92281
+ errorMessage: string;
92282
+ errorReason: string;
92283
+ };
92284
+ themes: {
92285
+ max: number;
92286
+ errorMessage: string;
92287
+ errorReason: string;
92288
+ };
92289
+ brands: {
92290
+ max: number;
92291
+ errorMessage: string;
92292
+ errorReason: string;
92293
+ };
92294
+ codegenSchedules: {
92295
+ max: number;
92296
+ errorMessage: string;
92297
+ errorReason: string;
92298
+ };
92299
+ publicDocumentation: {
92300
+ errorMessage: string;
92301
+ errorReason: string;
92302
+ enabled: boolean;
92303
+ };
92304
+ customDocumentationUrl: {
92305
+ errorMessage: string;
92306
+ errorReason: string;
92307
+ enabled: boolean;
92308
+ };
92309
+ customDocumentationViewButton: {
92310
+ errorMessage: string;
92311
+ errorReason: string;
92312
+ enabled: boolean;
92313
+ };
92314
+ designSystemSourceAutoImport: {
92315
+ errorMessage: string;
92316
+ errorReason: string;
92317
+ enabled: boolean;
92318
+ };
92319
+ designSystemSlug: {
92320
+ errorMessage: string;
92321
+ errorReason: string;
92322
+ enabled: boolean;
92323
+ };
92324
+ ipWhitelisting: {
92325
+ errorMessage: string;
92326
+ errorReason: string;
92327
+ enabled: boolean;
92328
+ };
92329
+ npmRegistry: {
92330
+ errorMessage: string;
92331
+ errorReason: string;
92332
+ enabled: boolean;
92333
+ };
92334
+ sso: {
92335
+ errorMessage: string;
92336
+ errorReason: string;
92337
+ enabled: boolean;
92338
+ };
92339
+ workspacePaidSeats: {
92340
+ max: number;
92341
+ errorMessage: string;
92342
+ errorReason: string;
92343
+ };
92344
+ workspaceViewers: {
92345
+ max: number;
92346
+ errorMessage: string;
92347
+ errorReason: string;
92348
+ };
92349
+ customDocumentationExporter: {
92350
+ errorMessage: string;
92351
+ errorReason: string;
92352
+ enabled: boolean;
92353
+ };
92354
+ protectedPages: {
92355
+ errorMessage: string;
92356
+ errorReason: string;
92357
+ enabled: boolean;
92358
+ };
92359
+ approvals: {
92360
+ errorMessage: string;
92361
+ errorReason: string;
92362
+ enabled: boolean;
92363
+ };
92364
+ selectivePublishing: {
92365
+ errorMessage: string;
92366
+ errorReason: string;
92367
+ enabled: boolean;
92368
+ };
92369
+ designSystemAccessModes: {
92370
+ errorMessage: string;
92371
+ errorReason: string;
92372
+ enabled: boolean;
92373
+ };
92374
+ designSystemRoles: {
92375
+ errorMessage: string;
92376
+ errorReason: string;
92377
+ enabled: boolean;
92378
+ };
92379
+ } | undefined;
92380
+ stripeSubscriptionMainItemId?: string | undefined;
92381
+ currentPeriodStart?: string | undefined;
92382
+ currentPeriodEnd?: string | undefined;
92383
+ subscriptionStatusUpdatedAt?: string | undefined;
92384
+ cancelAt?: string | null | undefined;
92385
+ billingType?: "Auto" | "Invoice" | undefined;
92386
+ daysUntilDue?: number | undefined;
92387
+ };
92388
+ npmRegistry?: {
92389
+ enabledScopes: string[];
92390
+ bypassProxy: boolean;
92391
+ registryType: "Custom" | "NPMJS" | "GitHub" | "AzureDevOps" | "Artifactory";
92392
+ authType: "Custom" | "None" | "Basic" | "Bearer";
92393
+ registryUrl: string;
92394
+ proxyUrl: string;
92395
+ customRegistryUrl?: string | undefined;
92396
+ accessToken?: string | undefined;
92397
+ username?: string | undefined;
92398
+ password?: string | undefined;
92440
92399
  } | undefined;
92441
- figmaNode?: {
92442
- sourceId: string;
92443
- frameReferenceId: string;
92400
+ };
92401
+ role: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
92402
+ effectiveRole: "Owner" | "Admin" | "Creator" | "Viewer" | "Billing" | "Contributor";
92403
+ }[];
92404
+ }>;
92405
+ delete(uid: string): Promise<{
92406
+ user: {
92407
+ id: string;
92408
+ createdAt: Date;
92409
+ email: string;
92410
+ profile: {
92411
+ name: string;
92412
+ nickname?: string | undefined;
92413
+ avatar?: string | undefined;
92414
+ onboarding?: {
92415
+ companyName?: string | undefined;
92416
+ numberOfPeopleInOrg?: string | undefined;
92417
+ numberOfPeopleInDesignTeam?: string | undefined;
92418
+ department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
92419
+ jobTitle?: string | undefined;
92420
+ phase?: string | undefined;
92421
+ jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
92422
+ designSystemName?: string | undefined;
92423
+ defaultDestination?: string | undefined;
92424
+ isPageDraftOnboardingFinished?: boolean | undefined;
92444
92425
  } | undefined;
92445
- } | null | undefined;
92446
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92447
- showBackgroundOverlay?: boolean | undefined;
92448
- showCoverText?: boolean | undefined;
92449
- minHeight?: number | null | undefined;
92426
+ };
92427
+ loggedOutAt?: Date | undefined;
92428
+ source?: "SignUp" | "Invite" | "SSO" | undefined;
92450
92429
  };
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;
92430
+ }>;
92431
+ updateProfile(uid: string, body: DTOUserProfileUpdate): Promise<{
92432
+ user: {
92433
+ id: string;
92434
+ createdAt: Date;
92435
+ email: string;
92436
+ profile: {
92437
+ name: string;
92438
+ nickname?: string | undefined;
92439
+ avatar?: string | undefined;
92440
+ onboarding?: {
92441
+ companyName?: string | undefined;
92442
+ numberOfPeopleInOrg?: string | undefined;
92443
+ numberOfPeopleInDesignTeam?: string | undefined;
92444
+ department?: "Design" | "Engineering" | "Product" | "Brand" | "Other" | undefined;
92445
+ jobTitle?: string | undefined;
92446
+ phase?: string | undefined;
92447
+ jobLevel?: "Other" | "Executive" | "Manager" | "IndividualContributor" | undefined;
92448
+ designSystemName?: string | undefined;
92449
+ defaultDestination?: string | undefined;
92450
+ isPageDraftOnboardingFinished?: boolean | undefined;
92478
92451
  } | undefined;
92479
- } | null | undefined;
92480
- backgroundImageScaleType?: "AspectFill" | "AspectFit" | undefined;
92481
- showBackgroundOverlay?: boolean | undefined;
92482
- showCoverText?: boolean | undefined;
92483
- minHeight?: number | null | undefined;
92452
+ };
92453
+ loggedOutAt?: Date | undefined;
92454
+ source?: "SignUp" | "Invite" | "SSO" | undefined;
92484
92455
  };
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;
92456
+ }>;
92457
+ }
92458
+
92459
+ type SupernovaApiClientConfig = {
92460
+ host: string;
92461
+ accessToken: string;
92462
+ };
92463
+ declare class SupernovaApiClient {
92464
+ readonly users: UsersEndpoint;
92465
+ readonly workspaces: WorkspacesEndpoint;
92466
+ readonly designSystems: DesignSystemsEndpoint;
92467
+ readonly codegen: CodegenEndpoint;
92468
+ constructor(config: SupernovaApiClientConfig);
92469
+ }
92470
+
92471
+ declare class DocsStructureRepo {
92472
+ }
92473
+ type HierarchyObserver = (hierarchy: DTODocumentationHierarchyV2) => void;
92474
+ type DocPageCreate = {
92475
+ persistentId: string;
92476
+ title: string;
92477
+ configuration?: DTODocumentationItemConfigurationV2;
92478
+ parentPersistentId: string;
92479
+ afterPersistentId?: string;
92480
+ };
92481
+ type DocPageUpdate = {
92482
+ persistentId: string;
92483
+ title?: string;
92484
+ configuration?: DTODocumentationItemConfigurationV2;
92485
+ };
92486
+ type TransactionExecutor = (trx: DTOElementActionInput) => Promise<void>;
92487
+ declare class DocsStructureRepository {
92488
+ private readonly localState;
92489
+ private readonly yDoc;
92490
+ private readonly yObserver;
92491
+ private yState;
92492
+ private readonly trxQueue;
92493
+ private readonly hierarchyObservers;
92494
+ constructor(yDoc: Y.Doc, transactionExecutor: TransactionExecutor);
92495
+ addHierarchyObserver(observer: HierarchyObserver): void;
92496
+ removeHierarchyObserver(observer: HierarchyObserver): void;
92497
+ dispose(): void;
92498
+ createPage(input: DocPageCreate): void;
92499
+ createPagePromise(input: DocPageCreate): Promise<void>;
92500
+ updatePage(update: DocPageUpdate): void;
92501
+ updatePagePromise(update: DocPageUpdate): Promise<void>;
92502
+ private updatePageLocally;
92503
+ deletePagePromise(persistentId: string): Promise<void>;
92504
+ deletePage(persistentId: string): void;
92505
+ private createLocalPageUpdate;
92506
+ private lookupPage;
92507
+ private recalculateHierarchy;
92508
+ private onYUpdate;
92509
+ private calculateSortOrder;
92510
+ }
92511
+
92512
+ type ParsedFigmaFileURL = {
92513
+ fileId: string;
92514
+ fileName: string | null;
92515
+ nodeId: string | null;
92516
+ nodeType: string | null;
92517
+ };
92518
+ declare const FigmaUtils: {
92519
+ tryParseFigmaFileURL(urlString: string): ParsedFigmaFileURL | null;
92520
+ };
92521
+
92522
+ declare function generateHash(input: object | string, debug?: boolean): string;
92523
+
92524
+ type CompatibleValue = number | string | boolean | undefined;
92525
+ type QueryObject = Record<string, CompatibleValue | CompatibleValue[]>;
92526
+ declare function serializeQuery(query: QueryObject): URLSearchParams;
92490
92527
 
92491
92528
  declare const PageBlockEditorModel: z.ZodObject<{
92492
92529
  id: z.ZodString;
@@ -94296,6 +94333,7 @@ declare class BackendVersionRoomYDoc {
94296
94333
  declare class VersionRoomBaseYDoc {
94297
94334
  private readonly yDoc;
94298
94335
  constructor(yDoc: Y.Doc);
94336
+ getState(): VersionRoomBaseYDocState;
94299
94337
  getPages(): DocumentationPageV2[];
94300
94338
  updatePages(pages: DocumentationPageV2[]): void;
94301
94339
  deletePages(ids: string[]): void;
@@ -94337,33 +94375,37 @@ declare class VersionRoomBaseYDoc {
94337
94375
  private get documentationPageApprovalsMap();
94338
94376
  }
94339
94377
 
94378
+ type DocsPage = VersionRoomDocsPage | LocalDocsPage;
94379
+ type DocsPageGroup = VersionRoomDocsPageGroup | LocalDocsPageGroup;
94380
+ type Input = {
94381
+ pages: DocsPage[];
94382
+ pageSnapshots: DocumentationPageSnapshot[];
94383
+ pageContentHashes: Record<string, string>;
94384
+ groups: DocsPageGroup[];
94385
+ groupSnapshots: ElementGroupSnapshot[];
94386
+ approvals: DocumentationPageApproval[];
94387
+ settings: DocumentationHierarchySettings;
94388
+ };
94389
+ declare function computeDocsHierarchy(input: Input, options?: {
94390
+ includeDeletedContent?: boolean;
94391
+ debug?: boolean;
94392
+ }): DTODocumentationHierarchyV2;
94393
+
94340
94394
  declare class FrontendVersionRoomYDoc {
94341
94395
  private readonly debug;
94342
94396
  private readonly yDoc;
94343
94397
  constructor(yDoc: Y.Doc, debug?: boolean);
94344
94398
  getDocumentationHierarchy(options?: {
94345
94399
  includeDeletedContent?: boolean;
94400
+ debug?: boolean;
94346
94401
  }): 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
94402
  notifyDocumentationPageContentUpdated(pageId: string, content: DocumentationPageEditorModel, definitions: PageBlockDefinition[]): void;
94360
94403
  isDraftFeatureAdopted(): boolean;
94361
94404
  hasPublishedDocumentationContent(): boolean;
94362
94405
  isApprovalsFeatureEnabled(): boolean;
94363
94406
  isApprovalRequiredForPublishing(): boolean;
94364
- private buildPageApprovalStates;
94365
94407
  }
94366
94408
 
94367
94409
  declare function generatePageContentHash(content: DocumentationPageEditorModel, definitions: PageBlockDefinition[], debug?: boolean): string;
94368
94410
 
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 };
94411
+ 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 };