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