@supernova-studio/client 0.54.27 → 0.54.28
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.
- package/dist/index.d.mts +721 -47
- package/dist/index.d.ts +721 -47
- package/dist/index.js +51 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +104 -60
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/users/authenticated-user.ts +42 -0
- package/src/api/dto/users/index.ts +1 -0
- package/src/api/endpoints/users.ts +11 -2
- package/src/api/transport/request-executor.ts +5 -1
package/dist/index.mjs
CHANGED
|
@@ -6379,30 +6379,59 @@ var DTOLiveblocksAuthResponse = z226.object({
|
|
|
6379
6379
|
token: z226.string()
|
|
6380
6380
|
});
|
|
6381
6381
|
|
|
6382
|
-
// src/api/dto/users/
|
|
6383
|
-
import { z as
|
|
6384
|
-
var DTOUserProfileUpdateResponse = z227.object({
|
|
6385
|
-
user: User
|
|
6386
|
-
});
|
|
6382
|
+
// src/api/dto/users/authenticated-user.ts
|
|
6383
|
+
import { z as z228 } from "zod";
|
|
6387
6384
|
|
|
6388
6385
|
// src/api/dto/users/user.ts
|
|
6389
|
-
import { z as
|
|
6390
|
-
var DTOUserProfile =
|
|
6391
|
-
name:
|
|
6392
|
-
nickname:
|
|
6393
|
-
avatar:
|
|
6394
|
-
});
|
|
6395
|
-
var DTOUser =
|
|
6396
|
-
id:
|
|
6397
|
-
email:
|
|
6386
|
+
import { z as z227 } from "zod";
|
|
6387
|
+
var DTOUserProfile = z227.object({
|
|
6388
|
+
name: z227.string(),
|
|
6389
|
+
nickname: z227.string().optional(),
|
|
6390
|
+
avatar: z227.string().optional()
|
|
6391
|
+
});
|
|
6392
|
+
var DTOUser = z227.object({
|
|
6393
|
+
id: z227.string(),
|
|
6394
|
+
email: z227.string(),
|
|
6398
6395
|
profile: DTOUserProfile
|
|
6399
6396
|
});
|
|
6400
|
-
var DTOUserGetResponse =
|
|
6397
|
+
var DTOUserGetResponse = z227.object({
|
|
6401
6398
|
user: DTOUser
|
|
6402
6399
|
});
|
|
6403
6400
|
|
|
6404
|
-
// src/api/
|
|
6401
|
+
// src/api/dto/users/authenticated-user.ts
|
|
6402
|
+
var DTOUserOnboardingDepartment = z228.enum(["Design", "Engineering", "Brand", "Other"]);
|
|
6403
|
+
var DTOUserOnboardingJobLevel = z228.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
6404
|
+
var DTOUserSource = z228.enum(["SignUp", "Invite", "SSO"]);
|
|
6405
|
+
var DTOUserOnboarding = z228.object({
|
|
6406
|
+
companyName: z228.string().optional(),
|
|
6407
|
+
numberOfPeopleInOrg: z228.string().optional(),
|
|
6408
|
+
numberOfPeopleInDesignTeam: z228.string().optional(),
|
|
6409
|
+
department: DTOUserOnboardingDepartment.optional(),
|
|
6410
|
+
jobTitle: z228.string().optional(),
|
|
6411
|
+
phase: z228.string().optional(),
|
|
6412
|
+
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6413
|
+
designSystemName: z228.string().optional(),
|
|
6414
|
+
defaultDestination: z228.string().optional(),
|
|
6415
|
+
isPageDraftOnboardingFinished: z228.boolean().optional()
|
|
6416
|
+
});
|
|
6417
|
+
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6418
|
+
onboarding: DTOUserOnboarding.optional()
|
|
6419
|
+
});
|
|
6420
|
+
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6421
|
+
profile: DTOAuthenticatedUserProfile,
|
|
6422
|
+
createdAt: z228.coerce.date(),
|
|
6423
|
+
loggedOutAt: z228.coerce.date().optional(),
|
|
6424
|
+
source: DTOUserSource.optional()
|
|
6425
|
+
});
|
|
6426
|
+
var DTOAuthenticatedUserResponse = z228.object({
|
|
6427
|
+
user: DTOAuthenticatedUser
|
|
6428
|
+
});
|
|
6429
|
+
|
|
6430
|
+
// src/api/dto/users/update.ts
|
|
6405
6431
|
import { z as z229 } from "zod";
|
|
6432
|
+
var DTOUserProfileUpdateResponse = z229.object({
|
|
6433
|
+
user: User
|
|
6434
|
+
});
|
|
6406
6435
|
|
|
6407
6436
|
// src/api/endpoints/design-system-members.ts
|
|
6408
6437
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -6423,6 +6452,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
6423
6452
|
};
|
|
6424
6453
|
|
|
6425
6454
|
// src/api/endpoints/design-systems.ts
|
|
6455
|
+
import { z as z230 } from "zod";
|
|
6426
6456
|
var DesignSystemsEndpoint = class {
|
|
6427
6457
|
constructor(requestExecutor) {
|
|
6428
6458
|
this.requestExecutor = requestExecutor;
|
|
@@ -6436,10 +6466,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6436
6466
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6437
6467
|
}
|
|
6438
6468
|
get(dsId) {
|
|
6439
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6469
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z230.any());
|
|
6440
6470
|
}
|
|
6441
6471
|
delete(dsId) {
|
|
6442
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6472
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z230.any(), { method: "DELETE" });
|
|
6443
6473
|
}
|
|
6444
6474
|
update(dsId, body) {
|
|
6445
6475
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6455,12 +6485,18 @@ var UsersEndpoint = class {
|
|
|
6455
6485
|
this.requestExecutor = requestExecutor;
|
|
6456
6486
|
}
|
|
6457
6487
|
getMe() {
|
|
6458
|
-
return this.requestExecutor.json("/users/me",
|
|
6488
|
+
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
6489
|
+
}
|
|
6490
|
+
listWorkspaces(uid) {
|
|
6491
|
+
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
6492
|
+
}
|
|
6493
|
+
delete(uid) {
|
|
6494
|
+
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
6459
6495
|
}
|
|
6460
6496
|
};
|
|
6461
6497
|
|
|
6462
6498
|
// src/api/endpoints/workspace-members.ts
|
|
6463
|
-
import { z as
|
|
6499
|
+
import { z as z231 } from "zod";
|
|
6464
6500
|
var WorkspaceMembersEndpoint = class {
|
|
6465
6501
|
constructor(requestExecutor) {
|
|
6466
6502
|
this.requestExecutor = requestExecutor;
|
|
@@ -6477,7 +6513,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6477
6513
|
});
|
|
6478
6514
|
}
|
|
6479
6515
|
invite(workspaceId, body) {
|
|
6480
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
6516
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z231.any(), { method: "POST", body });
|
|
6481
6517
|
}
|
|
6482
6518
|
delete(workspaceId, userId) {
|
|
6483
6519
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6487,7 +6523,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6487
6523
|
};
|
|
6488
6524
|
|
|
6489
6525
|
// src/api/endpoints/workspaces.ts
|
|
6490
|
-
import { z as
|
|
6526
|
+
import { z as z232 } from "zod";
|
|
6491
6527
|
var WorkspacesEndpoint = class {
|
|
6492
6528
|
constructor(requestExecutor) {
|
|
6493
6529
|
this.requestExecutor = requestExecutor;
|
|
@@ -6505,10 +6541,10 @@ var WorkspacesEndpoint = class {
|
|
|
6505
6541
|
});
|
|
6506
6542
|
}
|
|
6507
6543
|
delete(workspaceId) {
|
|
6508
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
6544
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z232.any(), { method: "DELETE" });
|
|
6509
6545
|
}
|
|
6510
6546
|
subscription(workspaceId) {
|
|
6511
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
6547
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z232.any(), { method: "GET" });
|
|
6512
6548
|
}
|
|
6513
6549
|
};
|
|
6514
6550
|
|
|
@@ -6530,9 +6566,9 @@ ${bodyText}`);
|
|
|
6530
6566
|
|
|
6531
6567
|
// src/api/transport/request-executor.ts
|
|
6532
6568
|
import fetch from "node-fetch";
|
|
6533
|
-
import { z as
|
|
6534
|
-
var ResponseWrapper =
|
|
6535
|
-
result:
|
|
6569
|
+
import { z as z233 } from "zod";
|
|
6570
|
+
var ResponseWrapper = z233.object({
|
|
6571
|
+
result: z233.record(z233.any())
|
|
6536
6572
|
});
|
|
6537
6573
|
var RequestExecutor = class {
|
|
6538
6574
|
constructor(testServerConfig) {
|
|
@@ -6654,7 +6690,7 @@ function generateHash(input, debug = false) {
|
|
|
6654
6690
|
}
|
|
6655
6691
|
|
|
6656
6692
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6657
|
-
import { z as
|
|
6693
|
+
import { z as z234 } from "zod";
|
|
6658
6694
|
|
|
6659
6695
|
// src/yjs/version-room/base.ts
|
|
6660
6696
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7183,24 +7219,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7183
7219
|
};
|
|
7184
7220
|
|
|
7185
7221
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7186
|
-
var DocumentationHierarchySettings =
|
|
7187
|
-
routingVersion:
|
|
7188
|
-
isDraftFeatureAdopted:
|
|
7189
|
-
isApprovalFeatureEnabled:
|
|
7190
|
-
approvalRequiredForPublishing:
|
|
7222
|
+
var DocumentationHierarchySettings = z234.object({
|
|
7223
|
+
routingVersion: z234.string(),
|
|
7224
|
+
isDraftFeatureAdopted: z234.boolean(),
|
|
7225
|
+
isApprovalFeatureEnabled: z234.boolean(),
|
|
7226
|
+
approvalRequiredForPublishing: z234.boolean()
|
|
7191
7227
|
});
|
|
7192
7228
|
function yjsToDocumentationHierarchy(doc) {
|
|
7193
7229
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7194
7230
|
}
|
|
7195
7231
|
|
|
7196
7232
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7197
|
-
import { z as
|
|
7198
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7199
|
-
title:
|
|
7233
|
+
import { z as z235 } from "zod";
|
|
7234
|
+
var DTODocumentationPageRoomHeaderData = z235.object({
|
|
7235
|
+
title: z235.string(),
|
|
7200
7236
|
configuration: DTODocumentationItemConfigurationV2
|
|
7201
7237
|
});
|
|
7202
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7203
|
-
title:
|
|
7238
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z235.object({
|
|
7239
|
+
title: z235.string().optional(),
|
|
7204
7240
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7205
7241
|
});
|
|
7206
7242
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7251,7 +7287,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7251
7287
|
header: rawHeader
|
|
7252
7288
|
};
|
|
7253
7289
|
return {
|
|
7254
|
-
title:
|
|
7290
|
+
title: z235.string().parse(title),
|
|
7255
7291
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7256
7292
|
};
|
|
7257
7293
|
}
|
|
@@ -7261,9 +7297,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7261
7297
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7262
7298
|
|
|
7263
7299
|
// src/yjs/docs-editor/model/page.ts
|
|
7264
|
-
import { z as
|
|
7265
|
-
var DocumentationPageEditorModel =
|
|
7266
|
-
blocks:
|
|
7300
|
+
import { z as z236 } from "zod";
|
|
7301
|
+
var DocumentationPageEditorModel = z236.object({
|
|
7302
|
+
blocks: z236.array(DocumentationPageContentItem)
|
|
7267
7303
|
});
|
|
7268
7304
|
|
|
7269
7305
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -10614,7 +10650,7 @@ var blocks = [
|
|
|
10614
10650
|
|
|
10615
10651
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10616
10652
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10617
|
-
import { z as
|
|
10653
|
+
import { z as z237 } from "zod";
|
|
10618
10654
|
function yDocToPage(yDoc, definitions) {
|
|
10619
10655
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10620
10656
|
}
|
|
@@ -10694,7 +10730,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10694
10730
|
return null;
|
|
10695
10731
|
return {
|
|
10696
10732
|
id,
|
|
10697
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10733
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z237.string()) ?? "",
|
|
10698
10734
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10699
10735
|
};
|
|
10700
10736
|
}
|
|
@@ -10729,7 +10765,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
10729
10765
|
});
|
|
10730
10766
|
}
|
|
10731
10767
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
10732
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
10768
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z237.string());
|
|
10733
10769
|
if (!definitionId) {
|
|
10734
10770
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
10735
10771
|
return [];
|
|
@@ -10771,7 +10807,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
10771
10807
|
if (!id)
|
|
10772
10808
|
return null;
|
|
10773
10809
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10774
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
10810
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z237.string().optional()));
|
|
10775
10811
|
return {
|
|
10776
10812
|
id,
|
|
10777
10813
|
type: "Block",
|
|
@@ -10899,10 +10935,10 @@ function parseRichTextAttribute(mark) {
|
|
|
10899
10935
|
return null;
|
|
10900
10936
|
}
|
|
10901
10937
|
function parseProsemirrorLink(mark) {
|
|
10902
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
10938
|
+
const href = getProsemirrorAttribute(mark, "href", z237.string().optional());
|
|
10903
10939
|
if (!href)
|
|
10904
10940
|
return null;
|
|
10905
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
10941
|
+
const target = getProsemirrorAttribute(mark, "target", z237.string().optional());
|
|
10906
10942
|
const openInNewTab = target === "_blank";
|
|
10907
10943
|
if (href.startsWith("@")) {
|
|
10908
10944
|
return {
|
|
@@ -10921,10 +10957,10 @@ function parseProsemirrorLink(mark) {
|
|
|
10921
10957
|
}
|
|
10922
10958
|
}
|
|
10923
10959
|
function parseProsemirrorCommentHighlight(mark) {
|
|
10924
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
10960
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z237.string().optional());
|
|
10925
10961
|
if (!highlightId)
|
|
10926
10962
|
return null;
|
|
10927
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
10963
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z237.boolean().optional()) ?? false;
|
|
10928
10964
|
return {
|
|
10929
10965
|
type: "Comment",
|
|
10930
10966
|
commentHighlightId: highlightId,
|
|
@@ -10936,7 +10972,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
10936
10972
|
if (!id)
|
|
10937
10973
|
return null;
|
|
10938
10974
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
10939
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
10975
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z237.boolean().optional()) !== false;
|
|
10940
10976
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
10941
10977
|
if (!tableChild) {
|
|
10942
10978
|
return emptyTable(id, variantId, 0);
|
|
@@ -10983,9 +11019,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
10983
11019
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
10984
11020
|
if (!id)
|
|
10985
11021
|
return null;
|
|
10986
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11022
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z237.string().optional());
|
|
10987
11023
|
let columnWidth;
|
|
10988
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11024
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z237.array(z237.number()).nullish());
|
|
10989
11025
|
if (columnWidthArray) {
|
|
10990
11026
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
10991
11027
|
}
|
|
@@ -11023,7 +11059,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11023
11059
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11024
11060
|
};
|
|
11025
11061
|
case "image":
|
|
11026
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11062
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z237.string());
|
|
11027
11063
|
if (!items)
|
|
11028
11064
|
return null;
|
|
11029
11065
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11143,7 +11179,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11143
11179
|
);
|
|
11144
11180
|
}
|
|
11145
11181
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11146
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11182
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z237.string());
|
|
11147
11183
|
if (!itemsString)
|
|
11148
11184
|
return null;
|
|
11149
11185
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11155,18 +11191,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11155
11191
|
}
|
|
11156
11192
|
function parseAppearance(prosemirrorNode) {
|
|
11157
11193
|
let appearance = {};
|
|
11158
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11194
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z237.string().optional());
|
|
11159
11195
|
if (rawAppearanceString) {
|
|
11160
11196
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11161
11197
|
if (parsedAppearance.success) {
|
|
11162
11198
|
appearance = parsedAppearance.data;
|
|
11163
11199
|
}
|
|
11164
11200
|
}
|
|
11165
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11201
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z237.number().optional());
|
|
11166
11202
|
if (columns) {
|
|
11167
11203
|
appearance.numberOfColumns = columns;
|
|
11168
11204
|
}
|
|
11169
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11205
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z237.string().optional());
|
|
11170
11206
|
if (backgroundColor) {
|
|
11171
11207
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11172
11208
|
if (parsedColor.success) {
|
|
@@ -11261,13 +11297,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11261
11297
|
}
|
|
11262
11298
|
}
|
|
11263
11299
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11264
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11300
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z237.string());
|
|
11265
11301
|
if (!id)
|
|
11266
11302
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11267
11303
|
return id;
|
|
11268
11304
|
}
|
|
11269
11305
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11270
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11306
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z237.string()));
|
|
11271
11307
|
}
|
|
11272
11308
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11273
11309
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11324,6 +11360,9 @@ export {
|
|
|
11324
11360
|
DTOAppBootstrapDataQuery,
|
|
11325
11361
|
DTOAppBootstrapDataResponse,
|
|
11326
11362
|
DTOAssetRenderConfiguration,
|
|
11363
|
+
DTOAuthenticatedUser,
|
|
11364
|
+
DTOAuthenticatedUserProfile,
|
|
11365
|
+
DTOAuthenticatedUserResponse,
|
|
11327
11366
|
DTOBrand,
|
|
11328
11367
|
DTOBrandCreateResponse,
|
|
11329
11368
|
DTOBrandGetResponse,
|
|
@@ -11516,9 +11555,13 @@ export {
|
|
|
11516
11555
|
DTOUser,
|
|
11517
11556
|
DTOUserGetResponse,
|
|
11518
11557
|
DTOUserNotificationSettingsResponse,
|
|
11558
|
+
DTOUserOnboarding,
|
|
11559
|
+
DTOUserOnboardingDepartment,
|
|
11560
|
+
DTOUserOnboardingJobLevel,
|
|
11519
11561
|
DTOUserProfile,
|
|
11520
11562
|
DTOUserProfileUpdatePayload,
|
|
11521
11563
|
DTOUserProfileUpdateResponse,
|
|
11564
|
+
DTOUserSource,
|
|
11522
11565
|
DTOUserWorkspaceMembership,
|
|
11523
11566
|
DTOUserWorkspaceMembershipsResponse,
|
|
11524
11567
|
DTOWorkspace,
|
|
@@ -11530,6 +11573,7 @@ export {
|
|
|
11530
11573
|
DTOWorkspaceInvitationsListInput,
|
|
11531
11574
|
DTOWorkspaceResponse,
|
|
11532
11575
|
DTOWorkspaceRole,
|
|
11576
|
+
DesignSystemMembersEndpoint,
|
|
11533
11577
|
DesignSystemsEndpoint,
|
|
11534
11578
|
DocumentationHierarchySettings,
|
|
11535
11579
|
DocumentationPageEditorModel,
|