@supernova-studio/client 1.48.12 → 1.48.14
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 +129688 -45481
- package/dist/index.d.ts +129688 -45481
- package/dist/index.js +120 -46
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +521 -447
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10235,24 +10235,75 @@ var DTOForgeProjectArtifactRoomResponse = z325.object({
|
|
|
10235
10235
|
room: DTOForgeProjectArtifactRoom
|
|
10236
10236
|
});
|
|
10237
10237
|
|
|
10238
|
-
// src/api/dto/forge/project-context-
|
|
10238
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10239
|
+
import z328 from "zod";
|
|
10240
|
+
|
|
10241
|
+
// src/api/dto/forge/project-context.ts
|
|
10239
10242
|
import { z as z326 } from "zod";
|
|
10240
|
-
var
|
|
10241
|
-
|
|
10243
|
+
var DTOForgeProjectContext = z326.object({
|
|
10244
|
+
definition: z326.string(),
|
|
10245
|
+
dependencies: z326.array(
|
|
10246
|
+
z326.object({
|
|
10247
|
+
packageName: z326.string(),
|
|
10248
|
+
type: z326.literal("npm"),
|
|
10249
|
+
version: z326.string().default("latest")
|
|
10250
|
+
})
|
|
10251
|
+
),
|
|
10252
|
+
designSystemId: z326.string(),
|
|
10253
|
+
id: z326.string(),
|
|
10254
|
+
meta: z326.object({
|
|
10255
|
+
name: z326.string(),
|
|
10256
|
+
description: z326.string().optional()
|
|
10257
|
+
}),
|
|
10258
|
+
name: z326.string(),
|
|
10259
|
+
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10260
|
+
platform: z326.enum(["React", "Vue", "Angular"]),
|
|
10261
|
+
styling: z326.enum(["CSS", "Tailwind"]),
|
|
10262
|
+
tailwindConfig: z326.object({
|
|
10263
|
+
content: z326.string(),
|
|
10264
|
+
version: z326.string()
|
|
10265
|
+
}).optional(),
|
|
10266
|
+
createdAt: z326.coerce.date(),
|
|
10267
|
+
updatedAt: z326.coerce.date(),
|
|
10268
|
+
workspaceId: z326.string()
|
|
10269
|
+
});
|
|
10270
|
+
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10271
|
+
definition: true,
|
|
10272
|
+
name: true,
|
|
10273
|
+
meta: true,
|
|
10274
|
+
designSystemId: true,
|
|
10275
|
+
platform: true,
|
|
10276
|
+
dependencies: true,
|
|
10277
|
+
tailwindConfig: true,
|
|
10278
|
+
styling: true
|
|
10279
|
+
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10280
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z326.string() });
|
|
10281
|
+
var DTOForgeProjectContextGetResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10282
|
+
var DTOForgeProjectContextListResponse = z326.object({ contexts: z326.array(DTOForgeProjectContext) });
|
|
10283
|
+
var DTOForgeProjectContextCreateResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10284
|
+
var DTOForgeProjectContextUpdateResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10285
|
+
var DTOForgeProjectContextRemoveResponse = z326.object({
|
|
10286
|
+
ok: z326.literal(true)
|
|
10287
|
+
});
|
|
10288
|
+
|
|
10289
|
+
// src/api/dto/forge/project-context-v2.ts
|
|
10290
|
+
import { z as z327 } from "zod";
|
|
10291
|
+
var DTOForgeComponentSetTypeV2 = z327.enum(["Shadcn"]);
|
|
10292
|
+
var DTOForgeComponentSet = z327.object({
|
|
10242
10293
|
type: DTOForgeComponentSetTypeV2
|
|
10243
10294
|
});
|
|
10244
|
-
var DTOForgeIconSetTypeV2 =
|
|
10245
|
-
var DTOForgeThemeKnownPreset =
|
|
10246
|
-
var DTOForgeIconSet =
|
|
10295
|
+
var DTOForgeIconSetTypeV2 = z327.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
10296
|
+
var DTOForgeThemeKnownPreset = z327.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
10297
|
+
var DTOForgeIconSet = z327.object({
|
|
10247
10298
|
type: DTOForgeIconSetTypeV2,
|
|
10248
|
-
variant:
|
|
10299
|
+
variant: z327.string().optional()
|
|
10249
10300
|
});
|
|
10250
|
-
var DTOForgeTokenThemeSet =
|
|
10251
|
-
id:
|
|
10252
|
-
name:
|
|
10253
|
-
tokenThemeIds:
|
|
10301
|
+
var DTOForgeTokenThemeSet = z327.object({
|
|
10302
|
+
id: z327.string(),
|
|
10303
|
+
name: z327.string(),
|
|
10304
|
+
tokenThemeIds: z327.array(z327.string())
|
|
10254
10305
|
});
|
|
10255
|
-
var DTOForgeProjectTheme =
|
|
10306
|
+
var DTOForgeProjectTheme = z327.object({
|
|
10256
10307
|
// Colors
|
|
10257
10308
|
background: ColorTokenData,
|
|
10258
10309
|
foreground: ColorTokenData,
|
|
@@ -10337,24 +10388,24 @@ var DTOForgeProjectTheme = z326.object({
|
|
|
10337
10388
|
shadowXl: ShadowTokenData,
|
|
10338
10389
|
shadow2xl: ShadowTokenData
|
|
10339
10390
|
});
|
|
10340
|
-
var DTOForgeProjectContextV2 =
|
|
10341
|
-
id:
|
|
10342
|
-
name:
|
|
10343
|
-
workspaceId:
|
|
10344
|
-
designSystemId:
|
|
10345
|
-
brandId:
|
|
10346
|
-
defaultTokenThemeSetId:
|
|
10347
|
-
description:
|
|
10348
|
-
productContext:
|
|
10349
|
-
additionalContext:
|
|
10350
|
-
isArchived:
|
|
10351
|
-
themePreset:
|
|
10352
|
-
tokenThemeSets:
|
|
10391
|
+
var DTOForgeProjectContextV2 = z327.object({
|
|
10392
|
+
id: z327.string(),
|
|
10393
|
+
name: z327.string(),
|
|
10394
|
+
workspaceId: z327.string(),
|
|
10395
|
+
designSystemId: z327.string().optional(),
|
|
10396
|
+
brandId: z327.string().optional(),
|
|
10397
|
+
defaultTokenThemeSetId: z327.string().optional(),
|
|
10398
|
+
description: z327.string().optional(),
|
|
10399
|
+
productContext: z327.string().optional(),
|
|
10400
|
+
additionalContext: z327.string().optional(),
|
|
10401
|
+
isArchived: z327.boolean(),
|
|
10402
|
+
themePreset: z327.string().optional(),
|
|
10403
|
+
tokenThemeSets: z327.array(DTOForgeTokenThemeSet).optional(),
|
|
10353
10404
|
componentSet: DTOForgeComponentSet,
|
|
10354
10405
|
iconSet: DTOForgeIconSet,
|
|
10355
10406
|
theme: DTOForgeProjectTheme,
|
|
10356
|
-
createdAt:
|
|
10357
|
-
updatedAt:
|
|
10407
|
+
createdAt: z327.coerce.date(),
|
|
10408
|
+
updatedAt: z327.coerce.date(),
|
|
10358
10409
|
thumbnail: DTOFileReference.optional()
|
|
10359
10410
|
});
|
|
10360
10411
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
@@ -10364,7 +10415,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10364
10415
|
isArchived: true,
|
|
10365
10416
|
thumbnail: true
|
|
10366
10417
|
}).extend({
|
|
10367
|
-
thumbnailFileId:
|
|
10418
|
+
thumbnailFileId: z327.string().optional()
|
|
10368
10419
|
});
|
|
10369
10420
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
10370
10421
|
id: true,
|
|
@@ -10373,61 +10424,27 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10373
10424
|
updatedAt: true,
|
|
10374
10425
|
thumbnail: true
|
|
10375
10426
|
}).partial().extend({
|
|
10376
|
-
thumbnailFileId:
|
|
10427
|
+
thumbnailFileId: z327.string().optional()
|
|
10377
10428
|
});
|
|
10378
|
-
var DTOForgeProjectContextResponseV2 =
|
|
10379
|
-
var DTOForgeProjectContextListQueryV2 =
|
|
10380
|
-
workspaceId:
|
|
10429
|
+
var DTOForgeProjectContextResponseV2 = z327.object({ context: DTOForgeProjectContextV2 });
|
|
10430
|
+
var DTOForgeProjectContextListQueryV2 = z327.object({
|
|
10431
|
+
workspaceId: z327.string(),
|
|
10381
10432
|
isArchived: zodQueryBoolean()
|
|
10382
10433
|
});
|
|
10383
|
-
var DTOForgeProjectContextListResponseV2 =
|
|
10434
|
+
var DTOForgeProjectContextListResponseV2 = z327.object({ contexts: z327.array(DTOForgeProjectContextV2) });
|
|
10384
10435
|
|
|
10385
|
-
// src/api/dto/forge/project-context.ts
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
dependencies: z327.array(
|
|
10390
|
-
z327.object({
|
|
10391
|
-
packageName: z327.string(),
|
|
10392
|
-
type: z327.literal("npm"),
|
|
10393
|
-
version: z327.string().default("latest")
|
|
10394
|
-
})
|
|
10395
|
-
),
|
|
10396
|
-
designSystemId: z327.string(),
|
|
10397
|
-
id: z327.string(),
|
|
10398
|
-
meta: z327.object({
|
|
10399
|
-
name: z327.string(),
|
|
10400
|
-
description: z327.string().optional()
|
|
10401
|
-
}),
|
|
10402
|
-
name: z327.string(),
|
|
10403
|
-
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10404
|
-
platform: z327.enum(["React", "Vue", "Angular"]),
|
|
10405
|
-
styling: z327.enum(["CSS", "Tailwind"]),
|
|
10406
|
-
tailwindConfig: z327.object({
|
|
10407
|
-
content: z327.string(),
|
|
10408
|
-
version: z327.string()
|
|
10409
|
-
}).optional(),
|
|
10410
|
-
createdAt: z327.coerce.date(),
|
|
10411
|
-
updatedAt: z327.coerce.date(),
|
|
10412
|
-
workspaceId: z327.string()
|
|
10436
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10437
|
+
var DTOProjectContextOverride = z328.object({
|
|
10438
|
+
projectId: z328.string(),
|
|
10439
|
+
theme: DTOForgeProjectTheme.partial()
|
|
10413
10440
|
});
|
|
10414
|
-
var
|
|
10415
|
-
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
tailwindConfig: true,
|
|
10422
|
-
styling: true
|
|
10423
|
-
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10424
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z327.string() });
|
|
10425
|
-
var DTOForgeProjectContextGetResponse = z327.object({ context: DTOForgeProjectContext });
|
|
10426
|
-
var DTOForgeProjectContextListResponse = z327.object({ contexts: z327.array(DTOForgeProjectContext) });
|
|
10427
|
-
var DTOForgeProjectContextCreateResponse = z327.object({ context: DTOForgeProjectContext });
|
|
10428
|
-
var DTOForgeProjectContextUpdateResponse = z327.object({ context: DTOForgeProjectContext });
|
|
10429
|
-
var DTOForgeProjectContextRemoveResponse = z327.object({
|
|
10430
|
-
ok: z327.literal(true)
|
|
10441
|
+
var DTOProjectContextOverrideInput = z328.object({
|
|
10442
|
+
updateSharedContext: z328.boolean().optional(),
|
|
10443
|
+
theme: DTOForgeProjectTheme.partial()
|
|
10444
|
+
});
|
|
10445
|
+
var DTOProjectContextOverrideResponse = z328.object({
|
|
10446
|
+
override: DTOProjectContextOverride,
|
|
10447
|
+
resolvedContext: DTOForgeProjectContext
|
|
10431
10448
|
});
|
|
10432
10449
|
|
|
10433
10450
|
// src/api/dto/forge/project-figma-node.ts
|
|
@@ -10435,42 +10452,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
|
10435
10452
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
10436
10453
|
|
|
10437
10454
|
// src/api/dto/forge/project-file.ts
|
|
10438
|
-
import { z as
|
|
10439
|
-
var DTOForgeProjectFile =
|
|
10440
|
-
id:
|
|
10441
|
-
name:
|
|
10442
|
-
checksum:
|
|
10443
|
-
pendingUpload:
|
|
10444
|
-
url:
|
|
10445
|
-
size:
|
|
10446
|
-
});
|
|
10447
|
-
var DTOForgeProjectFileListResponse =
|
|
10448
|
-
files:
|
|
10449
|
-
});
|
|
10450
|
-
var DTOForgeProjectFileUploadPayloadItem =
|
|
10451
|
-
size:
|
|
10452
|
-
name:
|
|
10453
|
-
checksum:
|
|
10454
|
-
});
|
|
10455
|
-
var DTOForgeProjectFileUploadPayload =
|
|
10456
|
-
files:
|
|
10457
|
-
});
|
|
10458
|
-
var DTOForgeProjectFileUploadResponse =
|
|
10459
|
-
files:
|
|
10460
|
-
uploadUrls:
|
|
10461
|
-
|
|
10462
|
-
fileId:
|
|
10463
|
-
uploadUrl:
|
|
10455
|
+
import { z as z329 } from "zod";
|
|
10456
|
+
var DTOForgeProjectFile = z329.object({
|
|
10457
|
+
id: z329.string(),
|
|
10458
|
+
name: z329.string(),
|
|
10459
|
+
checksum: z329.string(),
|
|
10460
|
+
pendingUpload: z329.boolean().optional(),
|
|
10461
|
+
url: z329.string(),
|
|
10462
|
+
size: z329.number()
|
|
10463
|
+
});
|
|
10464
|
+
var DTOForgeProjectFileListResponse = z329.object({
|
|
10465
|
+
files: z329.array(DTOForgeProjectFile)
|
|
10466
|
+
});
|
|
10467
|
+
var DTOForgeProjectFileUploadPayloadItem = z329.object({
|
|
10468
|
+
size: z329.number(),
|
|
10469
|
+
name: z329.string(),
|
|
10470
|
+
checksum: z329.string()
|
|
10471
|
+
});
|
|
10472
|
+
var DTOForgeProjectFileUploadPayload = z329.object({
|
|
10473
|
+
files: z329.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10474
|
+
});
|
|
10475
|
+
var DTOForgeProjectFileUploadResponse = z329.object({
|
|
10476
|
+
files: z329.array(DTOForgeProjectFile),
|
|
10477
|
+
uploadUrls: z329.array(
|
|
10478
|
+
z329.object({
|
|
10479
|
+
fileId: z329.string(),
|
|
10480
|
+
uploadUrl: z329.string()
|
|
10464
10481
|
})
|
|
10465
10482
|
)
|
|
10466
10483
|
});
|
|
10467
|
-
var DTOForgeProjectFileUploadFinalizePayload =
|
|
10468
|
-
fileIds:
|
|
10484
|
+
var DTOForgeProjectFileUploadFinalizePayload = z329.object({
|
|
10485
|
+
fileIds: z329.array(z329.string())
|
|
10469
10486
|
});
|
|
10470
|
-
var DTOForgeProjectFileUploadFinalizeResponse =
|
|
10487
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z329.object({ ok: z329.literal(true) });
|
|
10471
10488
|
|
|
10472
10489
|
// src/api/dto/forge/project-invitation.ts
|
|
10473
|
-
import { z as
|
|
10490
|
+
import { z as z330 } from "zod";
|
|
10474
10491
|
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10475
10492
|
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10476
10493
|
email: true,
|
|
@@ -10480,24 +10497,24 @@ var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
|
10480
10497
|
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10481
10498
|
email: true
|
|
10482
10499
|
});
|
|
10483
|
-
var DTOForgeProjectInvitationsListResponse =
|
|
10484
|
-
invitations:
|
|
10500
|
+
var DTOForgeProjectInvitationsListResponse = z330.object({
|
|
10501
|
+
invitations: z330.array(DTOForgeProjectInvitation)
|
|
10485
10502
|
});
|
|
10486
|
-
var DTOForgeProjectInvitationGetResponse =
|
|
10503
|
+
var DTOForgeProjectInvitationGetResponse = z330.object({
|
|
10487
10504
|
invitation: DTOForgeProjectInvitation
|
|
10488
10505
|
});
|
|
10489
|
-
var DTOForgeProjectInvitationCreateResponse =
|
|
10506
|
+
var DTOForgeProjectInvitationCreateResponse = z330.object({
|
|
10490
10507
|
invitation: DTOForgeProjectInvitation
|
|
10491
10508
|
});
|
|
10492
|
-
var DTOForgeProjectInvitationUpdateResponse =
|
|
10509
|
+
var DTOForgeProjectInvitationUpdateResponse = z330.object({
|
|
10493
10510
|
invitation: DTOForgeProjectInvitation.nullable()
|
|
10494
10511
|
});
|
|
10495
|
-
var DTOForgeProjectInvitationRemoveResponse =
|
|
10496
|
-
ok:
|
|
10512
|
+
var DTOForgeProjectInvitationRemoveResponse = z330.object({
|
|
10513
|
+
ok: z330.literal(true)
|
|
10497
10514
|
});
|
|
10498
10515
|
|
|
10499
10516
|
// src/api/dto/forge/project-iteration-old.ts
|
|
10500
|
-
import { z as
|
|
10517
|
+
import { z as z331 } from "zod";
|
|
10501
10518
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
10502
10519
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
10503
10520
|
artifacts: true,
|
|
@@ -10508,7 +10525,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
10508
10525
|
messages: DTOForgeIterationMessage.array(),
|
|
10509
10526
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
10510
10527
|
});
|
|
10511
|
-
var DTOGetForgeProjectIterationResponse =
|
|
10528
|
+
var DTOGetForgeProjectIterationResponse = z331.object({
|
|
10512
10529
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10513
10530
|
});
|
|
10514
10531
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -10518,25 +10535,25 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
10518
10535
|
mergeMeta: true,
|
|
10519
10536
|
createdAt: true
|
|
10520
10537
|
});
|
|
10521
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
10522
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
10538
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z331.string() });
|
|
10539
|
+
var DTOCreateForgeProjectIterationResponse = z331.object({
|
|
10523
10540
|
iteration: DTOForgeProjectIteration
|
|
10524
10541
|
});
|
|
10525
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
10542
|
+
var DTOUpdateForgeProjectIterationResponse = z331.object({
|
|
10526
10543
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10527
10544
|
});
|
|
10528
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
10529
|
-
ok:
|
|
10545
|
+
var DTODeleteForgeProjectIterationResponse = z331.object({
|
|
10546
|
+
ok: z331.literal(true)
|
|
10530
10547
|
});
|
|
10531
|
-
var DTOForgeProjectIterationListResponse =
|
|
10548
|
+
var DTOForgeProjectIterationListResponse = z331.object({ iterations: z331.array(DTOForgeProjectIteration) });
|
|
10532
10549
|
|
|
10533
10550
|
// src/api/dto/forge/project-member.ts
|
|
10534
|
-
import { z as
|
|
10551
|
+
import { z as z332 } from "zod";
|
|
10535
10552
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
10536
10553
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
10537
10554
|
user: DTOUser,
|
|
10538
10555
|
effectiveRole: DTOForgeProjectMemberRole,
|
|
10539
|
-
isDeactivated:
|
|
10556
|
+
isDeactivated: z332.boolean()
|
|
10540
10557
|
});
|
|
10541
10558
|
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10542
10559
|
userId: true,
|
|
@@ -10546,87 +10563,87 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
10546
10563
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10547
10564
|
userId: true
|
|
10548
10565
|
});
|
|
10549
|
-
var DTOForgeProjectMembersListResponse =
|
|
10550
|
-
members:
|
|
10551
|
-
invitations:
|
|
10566
|
+
var DTOForgeProjectMembersListResponse = z332.object({
|
|
10567
|
+
members: z332.array(DTOForgeProjectMember),
|
|
10568
|
+
invitations: z332.array(DTOForgeProjectInvitation)
|
|
10552
10569
|
});
|
|
10553
|
-
var DTOForgeProjectMemberGetResponse =
|
|
10570
|
+
var DTOForgeProjectMemberGetResponse = z332.object({
|
|
10554
10571
|
member: DTOForgeProjectMember
|
|
10555
10572
|
});
|
|
10556
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
10573
|
+
var DTOForgeProjectMemberCreateResponse = z332.object({
|
|
10557
10574
|
member: DTOForgeProjectMember
|
|
10558
10575
|
});
|
|
10559
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
10576
|
+
var DTOForgeProjectMemberUpdateResponse = z332.object({
|
|
10560
10577
|
member: DTOForgeProjectMember.nullable()
|
|
10561
10578
|
});
|
|
10562
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
10563
|
-
ok:
|
|
10579
|
+
var DTOForgeProjectMemberRemoveResponse = z332.object({
|
|
10580
|
+
ok: z332.literal(true)
|
|
10564
10581
|
});
|
|
10565
|
-
var DTOAddMembersToForgeProject =
|
|
10582
|
+
var DTOAddMembersToForgeProject = z332.object({
|
|
10566
10583
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
|
|
10567
10584
|
});
|
|
10568
10585
|
|
|
10569
10586
|
// src/api/dto/forge/project-room.ts
|
|
10570
|
-
import { z as
|
|
10571
|
-
var DTOForgeProjectRoom =
|
|
10572
|
-
id:
|
|
10587
|
+
import { z as z333 } from "zod";
|
|
10588
|
+
var DTOForgeProjectRoom = z333.object({
|
|
10589
|
+
id: z333.string()
|
|
10573
10590
|
});
|
|
10574
|
-
var DTOForgeProjectRoomResponse =
|
|
10591
|
+
var DTOForgeProjectRoomResponse = z333.object({
|
|
10575
10592
|
room: DTOForgeProjectRoom
|
|
10576
10593
|
});
|
|
10577
10594
|
|
|
10578
10595
|
// src/api/dto/forge/project.ts
|
|
10579
|
-
import { z as
|
|
10596
|
+
import { z as z334 } from "zod";
|
|
10580
10597
|
var DTOForgeProjectRole = ForgeProjectRole;
|
|
10581
10598
|
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
10582
10599
|
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
10583
|
-
var DTOForgeProjectDocumentPreview =
|
|
10584
|
-
id:
|
|
10585
|
-
title:
|
|
10600
|
+
var DTOForgeProjectDocumentPreview = z334.object({
|
|
10601
|
+
id: z334.string(),
|
|
10602
|
+
title: z334.string(),
|
|
10586
10603
|
thumbnail: DTOFileReference.optional(),
|
|
10587
|
-
createdAt:
|
|
10588
|
-
updatedAt:
|
|
10604
|
+
createdAt: z334.string(),
|
|
10605
|
+
updatedAt: z334.string()
|
|
10589
10606
|
});
|
|
10590
|
-
var DTOForgeProjectFeaturePreview =
|
|
10591
|
-
id:
|
|
10592
|
-
name:
|
|
10607
|
+
var DTOForgeProjectFeaturePreview = z334.object({
|
|
10608
|
+
id: z334.string(),
|
|
10609
|
+
name: z334.string(),
|
|
10593
10610
|
thumbnail: DTOFileReference.optional(),
|
|
10594
|
-
createdAt:
|
|
10595
|
-
updatedAt:
|
|
10596
|
-
});
|
|
10597
|
-
var DTOForgeProject =
|
|
10598
|
-
id:
|
|
10599
|
-
workspaceId:
|
|
10600
|
-
projectContextId:
|
|
10601
|
-
name:
|
|
10602
|
-
description:
|
|
10603
|
-
instruction:
|
|
10604
|
-
tags:
|
|
10611
|
+
createdAt: z334.string(),
|
|
10612
|
+
updatedAt: z334.string()
|
|
10613
|
+
});
|
|
10614
|
+
var DTOForgeProject = z334.object({
|
|
10615
|
+
id: z334.string(),
|
|
10616
|
+
workspaceId: z334.string(),
|
|
10617
|
+
projectContextId: z334.string(),
|
|
10618
|
+
name: z334.string(),
|
|
10619
|
+
description: z334.string().optional(),
|
|
10620
|
+
instruction: z334.string().nullable(),
|
|
10621
|
+
tags: z334.array(z334.string()).default([]),
|
|
10605
10622
|
accessMode: DTOForgeProjectAccessMode,
|
|
10606
10623
|
defaultRole: DTOForgeProjectDefaultRole,
|
|
10607
|
-
isArchived:
|
|
10608
|
-
emoji:
|
|
10609
|
-
tokenThemeSetId:
|
|
10610
|
-
createdAt:
|
|
10611
|
-
createdByUserId:
|
|
10612
|
-
lastUserActivityAt:
|
|
10613
|
-
updatedAt:
|
|
10624
|
+
isArchived: z334.boolean(),
|
|
10625
|
+
emoji: z334.string().optional(),
|
|
10626
|
+
tokenThemeSetId: z334.string().optional(),
|
|
10627
|
+
createdAt: z334.coerce.date(),
|
|
10628
|
+
createdByUserId: z334.string().optional(),
|
|
10629
|
+
lastUserActivityAt: z334.coerce.date().optional(),
|
|
10630
|
+
updatedAt: z334.coerce.date(),
|
|
10614
10631
|
documents: DTOForgeProjectDocumentPreview.array(),
|
|
10615
10632
|
features: DTOForgeProjectFeaturePreview.array(),
|
|
10616
10633
|
/** @deprecated use `projectContextId` */
|
|
10617
|
-
fpContextId:
|
|
10634
|
+
fpContextId: z334.string(),
|
|
10618
10635
|
/** @deprecated use `name` and `description` properties on project */
|
|
10619
|
-
meta:
|
|
10620
|
-
name:
|
|
10621
|
-
description:
|
|
10636
|
+
meta: z334.object({
|
|
10637
|
+
name: z334.string(),
|
|
10638
|
+
description: z334.string().optional()
|
|
10622
10639
|
}),
|
|
10623
10640
|
/** @deprecated use features.length */
|
|
10624
|
-
numberOfFeatures:
|
|
10641
|
+
numberOfFeatures: z334.number().int().nonnegative(),
|
|
10625
10642
|
/** @deprecated use documents.length */
|
|
10626
|
-
numberOfDocuments:
|
|
10643
|
+
numberOfDocuments: z334.number().int().nonnegative().optional(),
|
|
10627
10644
|
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10628
10645
|
context: DTOForgeProjectContextV2.optional(),
|
|
10629
|
-
liveblocksRoomId:
|
|
10646
|
+
liveblocksRoomId: z334.string().optional()
|
|
10630
10647
|
});
|
|
10631
10648
|
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10632
10649
|
name: true,
|
|
@@ -10639,8 +10656,8 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
|
10639
10656
|
/** @deprecated use `name` and `description` properties on project */
|
|
10640
10657
|
meta: DTOForgeProject.shape.meta.optional(),
|
|
10641
10658
|
/** @deprecated use `projectContextId` */
|
|
10642
|
-
fpContextId:
|
|
10643
|
-
projectContextId:
|
|
10659
|
+
fpContextId: z334.string().optional(),
|
|
10660
|
+
projectContextId: z334.string().optional(),
|
|
10644
10661
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10645
10662
|
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10646
10663
|
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
@@ -10648,196 +10665,240 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
|
10648
10665
|
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
10649
10666
|
});
|
|
10650
10667
|
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10651
|
-
id:
|
|
10652
|
-
isArchived:
|
|
10668
|
+
id: z334.string(),
|
|
10669
|
+
isArchived: z334.boolean().optional()
|
|
10653
10670
|
});
|
|
10654
|
-
var DTOForgeProjectListResponse =
|
|
10655
|
-
projects:
|
|
10671
|
+
var DTOForgeProjectListResponse = z334.object({
|
|
10672
|
+
projects: z334.array(
|
|
10656
10673
|
DTOForgeProject.extend({
|
|
10657
10674
|
effectiveRole: DTOForgeProjectRole
|
|
10658
10675
|
})
|
|
10659
10676
|
)
|
|
10660
10677
|
});
|
|
10661
|
-
var DTOForgeProjectResponse =
|
|
10678
|
+
var DTOForgeProjectResponse = z334.object({
|
|
10662
10679
|
project: DTOForgeProject.extend({
|
|
10663
10680
|
effectiveRole: DTOForgeProjectRole
|
|
10664
10681
|
})
|
|
10665
10682
|
});
|
|
10683
|
+
var DTOForgeProjectCreated = z334.object({
|
|
10684
|
+
type: z334.literal("ProjectCreated"),
|
|
10685
|
+
data: z334.object({ id: z334.string() })
|
|
10686
|
+
});
|
|
10687
|
+
var DTOForgeProjectUpdated = z334.object({
|
|
10688
|
+
type: z334.literal("ProjectUpdated"),
|
|
10689
|
+
data: z334.object({ id: z334.string() })
|
|
10690
|
+
});
|
|
10691
|
+
var DTOForgeProjectMembersCreated = z334.object({
|
|
10692
|
+
type: z334.literal("ProjectMembersCreated"),
|
|
10693
|
+
data: z334.array(DTOForgeProjectMember)
|
|
10694
|
+
});
|
|
10695
|
+
var DTOForgeProjectMemberUpdated = z334.object({
|
|
10696
|
+
type: z334.literal("ProjectMemberUpdated"),
|
|
10697
|
+
data: DTOForgeProjectMember
|
|
10698
|
+
});
|
|
10699
|
+
var DTOForgeProjectMemberDeleted = z334.object({
|
|
10700
|
+
type: z334.literal("ProjectMemberDeleted"),
|
|
10701
|
+
data: DTOForgeProjectMember.pick({ userId: true })
|
|
10702
|
+
});
|
|
10703
|
+
var DTOForgeProjectContextCreated = z334.object({
|
|
10704
|
+
type: z334.literal("ProjectContextCreated"),
|
|
10705
|
+
data: DTOForgeProjectContextV2
|
|
10706
|
+
});
|
|
10707
|
+
var DTOForgeProjectContextUpdated = z334.object({
|
|
10708
|
+
type: z334.literal("ProjectContextUpdated"),
|
|
10709
|
+
data: DTOForgeProjectContextV2
|
|
10710
|
+
});
|
|
10711
|
+
var DTOForgeProjectContextDeleted = z334.object({
|
|
10712
|
+
type: z334.literal("ProjectContextDeleted"),
|
|
10713
|
+
data: DTOForgeProjectContextV2.pick({ id: true })
|
|
10714
|
+
});
|
|
10715
|
+
var DTOWorkspaceRoomEvent = z334.discriminatedUnion("type", [
|
|
10716
|
+
DTOForgeProjectUpdated,
|
|
10717
|
+
DTOForgeProjectCreated,
|
|
10718
|
+
DTOForgeProjectContextCreated,
|
|
10719
|
+
DTOForgeProjectContextUpdated,
|
|
10720
|
+
DTOForgeProjectContextDeleted
|
|
10721
|
+
]);
|
|
10722
|
+
var DTOForgeProjectRoomEvent = z334.discriminatedUnion("type", [
|
|
10723
|
+
DTOForgeProjectMembersCreated,
|
|
10724
|
+
DTOForgeProjectMemberUpdated,
|
|
10725
|
+
DTOForgeProjectMemberDeleted
|
|
10726
|
+
]);
|
|
10666
10727
|
|
|
10667
10728
|
// src/api/dto/forge/relation.ts
|
|
10668
|
-
import
|
|
10729
|
+
import z335 from "zod";
|
|
10669
10730
|
var DTOForgeRelationType = ForgeRelationType;
|
|
10670
10731
|
var DTOForgeRelation = ForgeRelation;
|
|
10671
10732
|
var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
|
|
10672
|
-
var DTOForgeRelationDelete =
|
|
10673
|
-
sourceItemId:
|
|
10674
|
-
targetItemId:
|
|
10733
|
+
var DTOForgeRelationDelete = z335.object({
|
|
10734
|
+
sourceItemId: z335.string().uuid(),
|
|
10735
|
+
targetItemId: z335.string().uuid()
|
|
10675
10736
|
});
|
|
10676
|
-
var DTOForgeRelationListInput =
|
|
10677
|
-
projectId:
|
|
10737
|
+
var DTOForgeRelationListInput = z335.object({
|
|
10738
|
+
projectId: z335.string()
|
|
10678
10739
|
});
|
|
10679
|
-
var DTOForgeRelationListResponse =
|
|
10680
|
-
relations:
|
|
10740
|
+
var DTOForgeRelationListResponse = z335.object({
|
|
10741
|
+
relations: z335.array(DTOForgeRelation)
|
|
10681
10742
|
});
|
|
10682
|
-
var DTOForgeEntity =
|
|
10683
|
-
id:
|
|
10743
|
+
var DTOForgeEntity = z335.object({
|
|
10744
|
+
id: z335.string().uuid(),
|
|
10684
10745
|
type: DTOForgeRelationType
|
|
10685
10746
|
});
|
|
10686
10747
|
|
|
10687
10748
|
// src/api/dto/forge/threads.ts
|
|
10688
|
-
import { z as
|
|
10749
|
+
import { z as z336 } from "zod";
|
|
10689
10750
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
10690
10751
|
var DTOForgeChatThread = ForgeChatThread;
|
|
10691
10752
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
10692
10753
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
10693
|
-
var DTOForgeChatThreadCreateInput =
|
|
10694
|
-
title:
|
|
10754
|
+
var DTOForgeChatThreadCreateInput = z336.object({
|
|
10755
|
+
title: z336.string().optional()
|
|
10695
10756
|
});
|
|
10696
|
-
var DTOForgeChatThreadCreateResponse =
|
|
10757
|
+
var DTOForgeChatThreadCreateResponse = z336.object({
|
|
10697
10758
|
thread: DTOForgeChatThread
|
|
10698
10759
|
});
|
|
10699
|
-
var DTOForgeChatThreadUpdateInput =
|
|
10700
|
-
title:
|
|
10760
|
+
var DTOForgeChatThreadUpdateInput = z336.object({
|
|
10761
|
+
title: z336.string()
|
|
10701
10762
|
});
|
|
10702
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
10763
|
+
var DTOForgeChatThreadUpdateResponse = z336.object({
|
|
10703
10764
|
thread: DTOForgeChatThread
|
|
10704
10765
|
});
|
|
10705
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
10706
|
-
success:
|
|
10766
|
+
var DTOForgeChatThreadDeleteResponse = z336.object({
|
|
10767
|
+
success: z336.boolean()
|
|
10707
10768
|
});
|
|
10708
|
-
var DTOForgeChatThreadListQuery =
|
|
10709
|
-
limit:
|
|
10710
|
-
offset:
|
|
10769
|
+
var DTOForgeChatThreadListQuery = z336.object({
|
|
10770
|
+
limit: z336.number().optional(),
|
|
10771
|
+
offset: z336.number().optional()
|
|
10711
10772
|
});
|
|
10712
|
-
var DTOForgeChatThreadListResponse =
|
|
10713
|
-
threads:
|
|
10714
|
-
pagination:
|
|
10715
|
-
offset:
|
|
10716
|
-
limit:
|
|
10717
|
-
total:
|
|
10773
|
+
var DTOForgeChatThreadListResponse = z336.object({
|
|
10774
|
+
threads: z336.array(DTOForgeChatThread),
|
|
10775
|
+
pagination: z336.object({
|
|
10776
|
+
offset: z336.number(),
|
|
10777
|
+
limit: z336.number(),
|
|
10778
|
+
total: z336.number()
|
|
10718
10779
|
})
|
|
10719
10780
|
});
|
|
10720
|
-
var DTOForgeChatMessageCreateInput =
|
|
10721
|
-
payload:
|
|
10781
|
+
var DTOForgeChatMessageCreateInput = z336.object({
|
|
10782
|
+
payload: z336.string(),
|
|
10722
10783
|
sender: DTOForgeChatMessageSender.optional()
|
|
10723
10784
|
});
|
|
10724
|
-
var DTOForgeChatMessageCreateResponse =
|
|
10785
|
+
var DTOForgeChatMessageCreateResponse = z336.object({
|
|
10725
10786
|
message: DTOForgeChatMessage
|
|
10726
10787
|
});
|
|
10727
|
-
var DTOForgeChatMessageListQuery =
|
|
10728
|
-
limit:
|
|
10729
|
-
offset:
|
|
10788
|
+
var DTOForgeChatMessageListQuery = z336.object({
|
|
10789
|
+
limit: z336.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
10790
|
+
offset: z336.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
10730
10791
|
});
|
|
10731
|
-
var DTOForgeChatMessageListResponse =
|
|
10732
|
-
messages:
|
|
10733
|
-
totalCount:
|
|
10734
|
-
hasMore:
|
|
10792
|
+
var DTOForgeChatMessageListResponse = z336.object({
|
|
10793
|
+
messages: z336.array(DTOForgeChatMessage),
|
|
10794
|
+
totalCount: z336.number(),
|
|
10795
|
+
hasMore: z336.boolean()
|
|
10735
10796
|
});
|
|
10736
|
-
var DTOForgeChatExportResponse =
|
|
10737
|
-
csvDownloadUrl:
|
|
10797
|
+
var DTOForgeChatExportResponse = z336.object({
|
|
10798
|
+
csvDownloadUrl: z336.string().nullable()
|
|
10738
10799
|
});
|
|
10739
|
-
var DTOForgeChatMessageScoreInput =
|
|
10740
|
-
messageId:
|
|
10741
|
-
name:
|
|
10742
|
-
value:
|
|
10743
|
-
categoryName:
|
|
10744
|
-
reason:
|
|
10800
|
+
var DTOForgeChatMessageScoreInput = z336.object({
|
|
10801
|
+
messageId: z336.string(),
|
|
10802
|
+
name: z336.string(),
|
|
10803
|
+
value: z336.number(),
|
|
10804
|
+
categoryName: z336.string().optional(),
|
|
10805
|
+
reason: z336.string().optional()
|
|
10745
10806
|
});
|
|
10746
|
-
var DTOForgeChatMessageTagInput =
|
|
10747
|
-
messageId:
|
|
10748
|
-
tags:
|
|
10807
|
+
var DTOForgeChatMessageTagInput = z336.object({
|
|
10808
|
+
messageId: z336.string(),
|
|
10809
|
+
tags: z336.array(z336.string())
|
|
10749
10810
|
});
|
|
10750
|
-
var DTOForgeChatMessageScoreRequest =
|
|
10811
|
+
var DTOForgeChatMessageScoreRequest = z336.object({
|
|
10751
10812
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
10752
10813
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
10753
10814
|
});
|
|
10754
10815
|
|
|
10755
10816
|
// src/api/dto/liveblocks/auth-response.ts
|
|
10756
|
-
import { z as
|
|
10757
|
-
var DTOLiveblocksAuthResponse =
|
|
10758
|
-
token:
|
|
10817
|
+
import { z as z337 } from "zod";
|
|
10818
|
+
var DTOLiveblocksAuthResponse = z337.object({
|
|
10819
|
+
token: z337.string()
|
|
10759
10820
|
});
|
|
10760
10821
|
|
|
10761
10822
|
// src/api/dto/mcp/stream.ts
|
|
10762
|
-
import
|
|
10763
|
-
var DTOMCPStream =
|
|
10764
|
-
id:
|
|
10765
|
-
projectFeatureId:
|
|
10766
|
-
projectDocumentId:
|
|
10823
|
+
import z338 from "zod";
|
|
10824
|
+
var DTOMCPStream = z338.object({
|
|
10825
|
+
id: z338.string().uuid(),
|
|
10826
|
+
projectFeatureId: z338.string().uuid().optional(),
|
|
10827
|
+
projectDocumentId: z338.string().uuid().optional()
|
|
10767
10828
|
});
|
|
10768
10829
|
var DTOMCPStreamUpdateInput = DTOMCPStream.omit({ id: true });
|
|
10769
|
-
var DTOMCPStreamResponse =
|
|
10830
|
+
var DTOMCPStreamResponse = z338.object({
|
|
10770
10831
|
stream: DTOMCPStream
|
|
10771
10832
|
});
|
|
10772
10833
|
|
|
10773
10834
|
// src/api/dto/portal/portal-settings.ts
|
|
10774
|
-
import { z as
|
|
10835
|
+
import { z as z339 } from "zod";
|
|
10775
10836
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
10776
10837
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
10777
10838
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
10778
10839
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
10779
|
-
var DTOPortalSettings =
|
|
10780
|
-
id:
|
|
10781
|
-
workspaceId:
|
|
10782
|
-
enabledDesignSystemIds:
|
|
10783
|
-
enabledBrandPersistentIds:
|
|
10840
|
+
var DTOPortalSettings = z339.object({
|
|
10841
|
+
id: z339.string(),
|
|
10842
|
+
workspaceId: z339.string(),
|
|
10843
|
+
enabledDesignSystemIds: z339.array(z339.string()),
|
|
10844
|
+
enabledBrandPersistentIds: z339.array(z339.string()),
|
|
10784
10845
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10785
10846
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
10786
|
-
createdAt:
|
|
10787
|
-
updatedAt:
|
|
10847
|
+
createdAt: z339.coerce.date(),
|
|
10848
|
+
updatedAt: z339.coerce.date()
|
|
10788
10849
|
});
|
|
10789
|
-
var DTOPortalSettingsGetResponse =
|
|
10850
|
+
var DTOPortalSettingsGetResponse = z339.object({
|
|
10790
10851
|
portalSettings: DTOPortalSettings
|
|
10791
10852
|
});
|
|
10792
|
-
var DTOPortalSettingsUpdatePayload =
|
|
10793
|
-
enabledDesignSystemIds:
|
|
10794
|
-
enabledBrandPersistentIds:
|
|
10853
|
+
var DTOPortalSettingsUpdatePayload = z339.object({
|
|
10854
|
+
enabledDesignSystemIds: z339.array(z339.string()).optional(),
|
|
10855
|
+
enabledBrandPersistentIds: z339.array(z339.string()).optional(),
|
|
10795
10856
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10796
10857
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
10797
10858
|
});
|
|
10798
10859
|
|
|
10799
10860
|
// src/api/dto/themes/override.ts
|
|
10800
|
-
import { z as
|
|
10861
|
+
import { z as z340 } from "zod";
|
|
10801
10862
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
10802
|
-
|
|
10803
|
-
tokenPersistentId:
|
|
10863
|
+
z340.object({
|
|
10864
|
+
tokenPersistentId: z340.string(),
|
|
10804
10865
|
origin: ThemeOverrideOrigin.optional()
|
|
10805
10866
|
})
|
|
10806
10867
|
);
|
|
10807
10868
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
10808
|
-
|
|
10809
|
-
tokenPersistentId:
|
|
10869
|
+
z340.object({
|
|
10870
|
+
tokenPersistentId: z340.string()
|
|
10810
10871
|
})
|
|
10811
10872
|
);
|
|
10812
10873
|
|
|
10813
10874
|
// src/api/dto/themes/theme.ts
|
|
10814
|
-
import { z as
|
|
10815
|
-
var DTOTheme =
|
|
10816
|
-
id:
|
|
10817
|
-
persistentId:
|
|
10818
|
-
designSystemVersionId:
|
|
10819
|
-
brandId:
|
|
10875
|
+
import { z as z341 } from "zod";
|
|
10876
|
+
var DTOTheme = z341.object({
|
|
10877
|
+
id: z341.string(),
|
|
10878
|
+
persistentId: z341.string(),
|
|
10879
|
+
designSystemVersionId: z341.string(),
|
|
10880
|
+
brandId: z341.string(),
|
|
10820
10881
|
meta: ObjectMeta,
|
|
10821
|
-
codeName:
|
|
10882
|
+
codeName: z341.string(),
|
|
10822
10883
|
overrides: DTOThemeOverride.array()
|
|
10823
10884
|
});
|
|
10824
|
-
var DTOThemeResponse =
|
|
10885
|
+
var DTOThemeResponse = z341.object({
|
|
10825
10886
|
theme: DTOTheme
|
|
10826
10887
|
});
|
|
10827
|
-
var DTOThemeListResponse =
|
|
10888
|
+
var DTOThemeListResponse = z341.object({
|
|
10828
10889
|
themes: DTOTheme.array()
|
|
10829
10890
|
});
|
|
10830
|
-
var DTOThemeCreatePayload =
|
|
10891
|
+
var DTOThemeCreatePayload = z341.object({
|
|
10831
10892
|
meta: ObjectMeta,
|
|
10832
|
-
persistentId:
|
|
10833
|
-
brandId:
|
|
10834
|
-
codeName:
|
|
10893
|
+
persistentId: z341.string(),
|
|
10894
|
+
brandId: z341.string(),
|
|
10895
|
+
codeName: z341.string(),
|
|
10835
10896
|
overrides: DTOThemeOverride.array()
|
|
10836
10897
|
});
|
|
10837
10898
|
|
|
10838
10899
|
// src/api/dto/trail-events/trail-events.ts
|
|
10839
|
-
import { z as
|
|
10840
|
-
var DTOTrailEventType =
|
|
10900
|
+
import { z as z342 } from "zod";
|
|
10901
|
+
var DTOTrailEventType = z342.enum([
|
|
10841
10902
|
"IterationCreated",
|
|
10842
10903
|
"IterationBookmarked",
|
|
10843
10904
|
"FeatureCreated",
|
|
@@ -10853,110 +10914,110 @@ var DTOTrailEventType = z341.enum([
|
|
|
10853
10914
|
"ProjectContextCreated",
|
|
10854
10915
|
"ProjectContextArchived"
|
|
10855
10916
|
]);
|
|
10856
|
-
var DTOTrailEventBase =
|
|
10857
|
-
id:
|
|
10858
|
-
projectId:
|
|
10859
|
-
userId:
|
|
10860
|
-
createdAt:
|
|
10861
|
-
updatedAt:
|
|
10862
|
-
});
|
|
10863
|
-
var DTOTrailEventIterationCreatedPayload =
|
|
10864
|
-
iterationName:
|
|
10865
|
-
iterationId:
|
|
10866
|
-
featureId:
|
|
10867
|
-
});
|
|
10868
|
-
var DTOTrailEventIterationBookmarkedPayload =
|
|
10869
|
-
iterationId:
|
|
10870
|
-
featureId:
|
|
10871
|
-
iterationName:
|
|
10872
|
-
});
|
|
10873
|
-
var DTOTrailEventIterationPromotedPayload =
|
|
10874
|
-
iterationId:
|
|
10875
|
-
featureId:
|
|
10876
|
-
iterationName:
|
|
10877
|
-
});
|
|
10878
|
-
var DTOTrailEventFeatureCreatedPayload =
|
|
10879
|
-
featureId:
|
|
10880
|
-
name:
|
|
10881
|
-
description:
|
|
10882
|
-
});
|
|
10883
|
-
var DTOTrailEventFeatureDeletedPayload =
|
|
10884
|
-
featureId:
|
|
10885
|
-
name:
|
|
10886
|
-
});
|
|
10887
|
-
var DTOTrailEventFeatureArchivedPayload =
|
|
10888
|
-
featureId:
|
|
10889
|
-
name:
|
|
10890
|
-
});
|
|
10891
|
-
var DTOTrailEventDocumentCreatedPayload =
|
|
10892
|
-
documentId:
|
|
10893
|
-
title:
|
|
10894
|
-
sectionId:
|
|
10895
|
-
});
|
|
10896
|
-
var DTOTrailEventDocumentDeletedPayload =
|
|
10897
|
-
documentId:
|
|
10898
|
-
title:
|
|
10899
|
-
});
|
|
10900
|
-
var DTOTrailEventDocumentUpdatedPayload =
|
|
10901
|
-
documentId:
|
|
10902
|
-
title:
|
|
10903
|
-
sectionId:
|
|
10904
|
-
});
|
|
10905
|
-
var DTOTrailEventDocumentCommentSentPayload =
|
|
10906
|
-
documentId:
|
|
10907
|
-
title:
|
|
10908
|
-
sectionId:
|
|
10909
|
-
});
|
|
10910
|
-
var DTOTrailEventProjectCreatedPayload =
|
|
10911
|
-
name:
|
|
10912
|
-
description:
|
|
10913
|
-
});
|
|
10914
|
-
var DTOTrailEventProjectArchivedPayload =
|
|
10915
|
-
name:
|
|
10916
|
-
});
|
|
10917
|
-
var DTOTrailEventProjectContextCreatedPayload =
|
|
10918
|
-
contextId:
|
|
10919
|
-
name:
|
|
10920
|
-
description:
|
|
10921
|
-
});
|
|
10922
|
-
var DTOTrailEventProjectContextArchivedPayload =
|
|
10923
|
-
contextId:
|
|
10924
|
-
});
|
|
10925
|
-
var DTOTrailEventPayload =
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10936
|
-
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
|
|
10917
|
+
var DTOTrailEventBase = z342.object({
|
|
10918
|
+
id: z342.string(),
|
|
10919
|
+
projectId: z342.string(),
|
|
10920
|
+
userId: z342.string(),
|
|
10921
|
+
createdAt: z342.coerce.date(),
|
|
10922
|
+
updatedAt: z342.coerce.date()
|
|
10923
|
+
});
|
|
10924
|
+
var DTOTrailEventIterationCreatedPayload = z342.object({
|
|
10925
|
+
iterationName: z342.string(),
|
|
10926
|
+
iterationId: z342.string().uuid(),
|
|
10927
|
+
featureId: z342.string().uuid()
|
|
10928
|
+
});
|
|
10929
|
+
var DTOTrailEventIterationBookmarkedPayload = z342.object({
|
|
10930
|
+
iterationId: z342.string().uuid(),
|
|
10931
|
+
featureId: z342.string().uuid(),
|
|
10932
|
+
iterationName: z342.string()
|
|
10933
|
+
});
|
|
10934
|
+
var DTOTrailEventIterationPromotedPayload = z342.object({
|
|
10935
|
+
iterationId: z342.string().uuid(),
|
|
10936
|
+
featureId: z342.string().uuid(),
|
|
10937
|
+
iterationName: z342.string()
|
|
10938
|
+
});
|
|
10939
|
+
var DTOTrailEventFeatureCreatedPayload = z342.object({
|
|
10940
|
+
featureId: z342.string().uuid(),
|
|
10941
|
+
name: z342.string(),
|
|
10942
|
+
description: z342.string().optional()
|
|
10943
|
+
});
|
|
10944
|
+
var DTOTrailEventFeatureDeletedPayload = z342.object({
|
|
10945
|
+
featureId: z342.string().uuid(),
|
|
10946
|
+
name: z342.string()
|
|
10947
|
+
});
|
|
10948
|
+
var DTOTrailEventFeatureArchivedPayload = z342.object({
|
|
10949
|
+
featureId: z342.string().uuid(),
|
|
10950
|
+
name: z342.string()
|
|
10951
|
+
});
|
|
10952
|
+
var DTOTrailEventDocumentCreatedPayload = z342.object({
|
|
10953
|
+
documentId: z342.string().uuid(),
|
|
10954
|
+
title: z342.string(),
|
|
10955
|
+
sectionId: z342.string().uuid().optional()
|
|
10956
|
+
});
|
|
10957
|
+
var DTOTrailEventDocumentDeletedPayload = z342.object({
|
|
10958
|
+
documentId: z342.string().uuid(),
|
|
10959
|
+
title: z342.string()
|
|
10960
|
+
});
|
|
10961
|
+
var DTOTrailEventDocumentUpdatedPayload = z342.object({
|
|
10962
|
+
documentId: z342.string().uuid(),
|
|
10963
|
+
title: z342.string(),
|
|
10964
|
+
sectionId: z342.string().uuid().optional()
|
|
10965
|
+
});
|
|
10966
|
+
var DTOTrailEventDocumentCommentSentPayload = z342.object({
|
|
10967
|
+
documentId: z342.string().uuid(),
|
|
10968
|
+
title: z342.string(),
|
|
10969
|
+
sectionId: z342.string().uuid().optional()
|
|
10970
|
+
});
|
|
10971
|
+
var DTOTrailEventProjectCreatedPayload = z342.object({
|
|
10972
|
+
name: z342.string(),
|
|
10973
|
+
description: z342.string().optional()
|
|
10974
|
+
});
|
|
10975
|
+
var DTOTrailEventProjectArchivedPayload = z342.object({
|
|
10976
|
+
name: z342.string()
|
|
10977
|
+
});
|
|
10978
|
+
var DTOTrailEventProjectContextCreatedPayload = z342.object({
|
|
10979
|
+
contextId: z342.number(),
|
|
10980
|
+
name: z342.string(),
|
|
10981
|
+
description: z342.string().optional()
|
|
10982
|
+
});
|
|
10983
|
+
var DTOTrailEventProjectContextArchivedPayload = z342.object({
|
|
10984
|
+
contextId: z342.number()
|
|
10985
|
+
});
|
|
10986
|
+
var DTOTrailEventPayload = z342.discriminatedUnion("type", [
|
|
10987
|
+
z342.object({ type: z342.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
|
|
10988
|
+
z342.object({ type: z342.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
|
|
10989
|
+
z342.object({ type: z342.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
|
|
10990
|
+
z342.object({ type: z342.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
|
|
10991
|
+
z342.object({ type: z342.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
|
|
10992
|
+
z342.object({ type: z342.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
|
|
10993
|
+
z342.object({ type: z342.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
|
|
10994
|
+
z342.object({ type: z342.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
10995
|
+
z342.object({ type: z342.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
|
|
10996
|
+
z342.object({ type: z342.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
|
|
10997
|
+
z342.object({ type: z342.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
|
|
10998
|
+
z342.object({ type: z342.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
|
|
10999
|
+
z342.object({ type: z342.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
|
|
11000
|
+
z342.object({ type: z342.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload })
|
|
10940
11001
|
]);
|
|
10941
11002
|
var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
|
|
10942
11003
|
var DTOTrailEventWithDetails = DTOTrailEvent.and(
|
|
10943
|
-
|
|
10944
|
-
projectName:
|
|
10945
|
-
userName:
|
|
11004
|
+
z342.object({
|
|
11005
|
+
projectName: z342.string().optional(),
|
|
11006
|
+
userName: z342.string().optional()
|
|
10946
11007
|
})
|
|
10947
11008
|
);
|
|
10948
|
-
var DTOTrailEventListInput =
|
|
10949
|
-
projectId:
|
|
11009
|
+
var DTOTrailEventListInput = z342.object({
|
|
11010
|
+
projectId: z342.string()
|
|
10950
11011
|
});
|
|
10951
|
-
var DTOTrailEventListResponse =
|
|
10952
|
-
events:
|
|
11012
|
+
var DTOTrailEventListResponse = z342.object({
|
|
11013
|
+
events: z342.array(DTOTrailEventWithDetails)
|
|
10953
11014
|
});
|
|
10954
11015
|
var DTOTrailEventCreate = DTOTrailEventPayload.and(
|
|
10955
11016
|
DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
|
|
10956
11017
|
);
|
|
10957
|
-
var DTOTrailEventClientCreate =
|
|
10958
|
-
|
|
10959
|
-
|
|
11018
|
+
var DTOTrailEventClientCreate = z342.discriminatedUnion("type", [
|
|
11019
|
+
z342.object({ type: z342.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
11020
|
+
z342.object({ type: z342.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
|
|
10960
11021
|
]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
|
|
10961
11022
|
|
|
10962
11023
|
// src/utils/figma.ts
|
|
@@ -11177,13 +11238,13 @@ var ExportersEndpoint = class {
|
|
|
11177
11238
|
};
|
|
11178
11239
|
|
|
11179
11240
|
// src/api/endpoints/codegen/jobs.ts
|
|
11180
|
-
import { z as
|
|
11241
|
+
import { z as z343 } from "zod";
|
|
11181
11242
|
var ExporterJobsEndpoint = class {
|
|
11182
11243
|
constructor(requestExecutor) {
|
|
11183
11244
|
this.requestExecutor = requestExecutor;
|
|
11184
11245
|
}
|
|
11185
11246
|
list(workspaceId) {
|
|
11186
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
11247
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z343.any());
|
|
11187
11248
|
}
|
|
11188
11249
|
get(workspaceId, jobId) {
|
|
11189
11250
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -11241,7 +11302,7 @@ var CodegenEndpoint = class {
|
|
|
11241
11302
|
};
|
|
11242
11303
|
|
|
11243
11304
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
11244
|
-
import { z as
|
|
11305
|
+
import { z as z344 } from "zod";
|
|
11245
11306
|
var BrandsEndpoint = class {
|
|
11246
11307
|
constructor(requestExecutor) {
|
|
11247
11308
|
this.requestExecutor = requestExecutor;
|
|
@@ -11275,7 +11336,7 @@ var BrandsEndpoint = class {
|
|
|
11275
11336
|
});
|
|
11276
11337
|
}
|
|
11277
11338
|
delete(dsId, vId, brandId) {
|
|
11278
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
11339
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z344.any(), {
|
|
11279
11340
|
method: "DELETE"
|
|
11280
11341
|
});
|
|
11281
11342
|
}
|
|
@@ -11551,7 +11612,7 @@ var ImportJobsEndpoint = class {
|
|
|
11551
11612
|
};
|
|
11552
11613
|
|
|
11553
11614
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
11554
|
-
import { z as
|
|
11615
|
+
import { z as z345 } from "zod";
|
|
11555
11616
|
var OverridesEndpoint = class {
|
|
11556
11617
|
constructor(requestExecutor) {
|
|
11557
11618
|
this.requestExecutor = requestExecutor;
|
|
@@ -11559,7 +11620,7 @@ var OverridesEndpoint = class {
|
|
|
11559
11620
|
create(dsId, versionId, themeId, body) {
|
|
11560
11621
|
return this.requestExecutor.json(
|
|
11561
11622
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
11562
|
-
|
|
11623
|
+
z345.any(),
|
|
11563
11624
|
{
|
|
11564
11625
|
method: "POST",
|
|
11565
11626
|
body
|
|
@@ -11569,7 +11630,7 @@ var OverridesEndpoint = class {
|
|
|
11569
11630
|
};
|
|
11570
11631
|
|
|
11571
11632
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
11572
|
-
import { z as
|
|
11633
|
+
import { z as z346 } from "zod";
|
|
11573
11634
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
11574
11635
|
constructor(requestExecutor) {
|
|
11575
11636
|
this.requestExecutor = requestExecutor;
|
|
@@ -11597,7 +11658,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
11597
11658
|
delete(designSystemId, versionId, defId) {
|
|
11598
11659
|
return this.requestExecutor.json(
|
|
11599
11660
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
11600
|
-
|
|
11661
|
+
z346.any(),
|
|
11601
11662
|
{ method: "DELETE" }
|
|
11602
11663
|
);
|
|
11603
11664
|
}
|
|
@@ -11636,7 +11697,7 @@ var VersionStatsEndpoint = class {
|
|
|
11636
11697
|
};
|
|
11637
11698
|
|
|
11638
11699
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
11639
|
-
import { z as
|
|
11700
|
+
import { z as z347 } from "zod";
|
|
11640
11701
|
var ThemesEndpoint = class {
|
|
11641
11702
|
constructor(requestExecutor) {
|
|
11642
11703
|
this.requestExecutor = requestExecutor;
|
|
@@ -11659,7 +11720,7 @@ var ThemesEndpoint = class {
|
|
|
11659
11720
|
});
|
|
11660
11721
|
}
|
|
11661
11722
|
delete(dsId, versionId, themeId) {
|
|
11662
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
11723
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z347.any(), {
|
|
11663
11724
|
method: "DELETE"
|
|
11664
11725
|
});
|
|
11665
11726
|
}
|
|
@@ -11832,7 +11893,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
11832
11893
|
};
|
|
11833
11894
|
|
|
11834
11895
|
// src/api/endpoints/design-system/design-systems.ts
|
|
11835
|
-
import { z as
|
|
11896
|
+
import { z as z351 } from "zod";
|
|
11836
11897
|
|
|
11837
11898
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
11838
11899
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -11909,7 +11970,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
11909
11970
|
};
|
|
11910
11971
|
|
|
11911
11972
|
// src/api/endpoints/design-system/sources.ts
|
|
11912
|
-
import { z as
|
|
11973
|
+
import { z as z348 } from "zod";
|
|
11913
11974
|
var DesignSystemSourcesEndpoint = class {
|
|
11914
11975
|
constructor(requestExecutor) {
|
|
11915
11976
|
this.requestExecutor = requestExecutor;
|
|
@@ -11927,7 +11988,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11927
11988
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
11928
11989
|
}
|
|
11929
11990
|
delete(dsId, sourceId) {
|
|
11930
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
11991
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z348.any(), { method: "DELETE" });
|
|
11931
11992
|
}
|
|
11932
11993
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
11933
11994
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -11970,7 +12031,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11970
12031
|
};
|
|
11971
12032
|
|
|
11972
12033
|
// src/api/endpoints/design-system/storybook.ts
|
|
11973
|
-
import { z as
|
|
12034
|
+
import { z as z349 } from "zod";
|
|
11974
12035
|
var StorybookEntriesEndpoint = class {
|
|
11975
12036
|
constructor(requestExecutor) {
|
|
11976
12037
|
this.requestExecutor = requestExecutor;
|
|
@@ -11988,14 +12049,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
11988
12049
|
);
|
|
11989
12050
|
}
|
|
11990
12051
|
delete(dsId, entryId) {
|
|
11991
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
12052
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z349.any(), {
|
|
11992
12053
|
method: "DELETE"
|
|
11993
12054
|
});
|
|
11994
12055
|
}
|
|
11995
12056
|
};
|
|
11996
12057
|
|
|
11997
12058
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
11998
|
-
import { z as
|
|
12059
|
+
import { z as z350 } from "zod";
|
|
11999
12060
|
var StorybookHostingEndpoint = class {
|
|
12000
12061
|
constructor(requestExecutor) {
|
|
12001
12062
|
this.requestExecutor = requestExecutor;
|
|
@@ -12009,7 +12070,7 @@ var StorybookHostingEndpoint = class {
|
|
|
12009
12070
|
delete(dsId, storybookUploadId) {
|
|
12010
12071
|
return this.requestExecutor.json(
|
|
12011
12072
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
12012
|
-
|
|
12073
|
+
z350.object({ ok: z350.boolean() }),
|
|
12013
12074
|
{
|
|
12014
12075
|
method: "DELETE"
|
|
12015
12076
|
}
|
|
@@ -12067,7 +12128,7 @@ var DesignSystemsEndpoint = class {
|
|
|
12067
12128
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
12068
12129
|
}
|
|
12069
12130
|
delete(dsId) {
|
|
12070
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
12131
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z351.any(), { method: "DELETE" });
|
|
12071
12132
|
}
|
|
12072
12133
|
update(dsId, body) {
|
|
12073
12134
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -12221,7 +12282,7 @@ var ForgeFeatureArtifactsEndpoint = class {
|
|
|
12221
12282
|
};
|
|
12222
12283
|
|
|
12223
12284
|
// src/api/endpoints/forge/feature-iterations.ts
|
|
12224
|
-
import
|
|
12285
|
+
import z352 from "zod";
|
|
12225
12286
|
var ForgeFeatureIterationsEndpoint = class {
|
|
12226
12287
|
constructor(requestExecutor) {
|
|
12227
12288
|
this.requestExecutor = requestExecutor;
|
|
@@ -12238,7 +12299,7 @@ var ForgeFeatureIterationsEndpoint = class {
|
|
|
12238
12299
|
updateArtifacts(workspaceId, projectId, featureId, body) {
|
|
12239
12300
|
return this.requestExecutor.json(
|
|
12240
12301
|
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
|
|
12241
|
-
|
|
12302
|
+
z352.any(),
|
|
12242
12303
|
{
|
|
12243
12304
|
body,
|
|
12244
12305
|
method: "POST"
|
|
@@ -12510,7 +12571,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
12510
12571
|
};
|
|
12511
12572
|
|
|
12512
12573
|
// src/api/endpoints/forge/projects.ts
|
|
12513
|
-
import
|
|
12574
|
+
import z353 from "zod";
|
|
12514
12575
|
var ForgeProjectsEndpoint = class {
|
|
12515
12576
|
constructor(requestExecutor) {
|
|
12516
12577
|
this.requestExecutor = requestExecutor;
|
|
@@ -12547,7 +12608,7 @@ var ForgeProjectsEndpoint = class {
|
|
|
12547
12608
|
);
|
|
12548
12609
|
}
|
|
12549
12610
|
action(workspaceId, projectId, body) {
|
|
12550
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`,
|
|
12611
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z353.any(), {
|
|
12551
12612
|
body,
|
|
12552
12613
|
method: "POST"
|
|
12553
12614
|
});
|
|
@@ -12653,7 +12714,7 @@ var MCPStreamsEndpoint = class {
|
|
|
12653
12714
|
};
|
|
12654
12715
|
|
|
12655
12716
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12656
|
-
import { z as
|
|
12717
|
+
import { z as z354 } from "zod";
|
|
12657
12718
|
var WorkspaceChatThreadsEndpoint = class {
|
|
12658
12719
|
constructor(requestExecutor) {
|
|
12659
12720
|
this.requestExecutor = requestExecutor;
|
|
@@ -12685,7 +12746,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
12685
12746
|
);
|
|
12686
12747
|
}
|
|
12687
12748
|
delete(workspaceId, threadId) {
|
|
12688
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
12749
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z354.any(), {
|
|
12689
12750
|
method: "DELETE"
|
|
12690
12751
|
});
|
|
12691
12752
|
}
|
|
@@ -12717,7 +12778,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12717
12778
|
);
|
|
12718
12779
|
}
|
|
12719
12780
|
score(workspaceId, threadId, body) {
|
|
12720
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
12781
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z354.any(), {
|
|
12721
12782
|
method: "POST",
|
|
12722
12783
|
body
|
|
12723
12784
|
});
|
|
@@ -12725,7 +12786,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12725
12786
|
};
|
|
12726
12787
|
|
|
12727
12788
|
// src/api/endpoints/workspaces/integrations.ts
|
|
12728
|
-
import { z as
|
|
12789
|
+
import { z as z355 } from "zod";
|
|
12729
12790
|
var WorkspaceIntegrationsEndpoint = class {
|
|
12730
12791
|
constructor(requestExecutor) {
|
|
12731
12792
|
this.requestExecutor = requestExecutor;
|
|
@@ -12734,7 +12795,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
12734
12795
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
12735
12796
|
}
|
|
12736
12797
|
delete(wsId, iId) {
|
|
12737
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
12798
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z355.unknown(), { method: "DELETE" });
|
|
12738
12799
|
}
|
|
12739
12800
|
};
|
|
12740
12801
|
|
|
@@ -12766,7 +12827,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
12766
12827
|
};
|
|
12767
12828
|
|
|
12768
12829
|
// src/api/endpoints/workspaces/members.ts
|
|
12769
|
-
import { z as
|
|
12830
|
+
import { z as z356 } from "zod";
|
|
12770
12831
|
var WorkspaceMembersEndpoint = class {
|
|
12771
12832
|
constructor(requestExecutor) {
|
|
12772
12833
|
this.requestExecutor = requestExecutor;
|
|
@@ -12783,7 +12844,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
12783
12844
|
});
|
|
12784
12845
|
}
|
|
12785
12846
|
invite(workspaceId, body) {
|
|
12786
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
12847
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z356.any(), { method: "POST", body });
|
|
12787
12848
|
}
|
|
12788
12849
|
delete(workspaceId, userId) {
|
|
12789
12850
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -12812,7 +12873,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
12812
12873
|
};
|
|
12813
12874
|
|
|
12814
12875
|
// src/api/endpoints/workspaces/subscription.ts
|
|
12815
|
-
import { z as
|
|
12876
|
+
import { z as z357 } from "zod";
|
|
12816
12877
|
var WorkspaceSubscriptionEndpoint = class {
|
|
12817
12878
|
constructor(requestExecutor) {
|
|
12818
12879
|
this.requestExecutor = requestExecutor;
|
|
@@ -12823,7 +12884,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
12823
12884
|
});
|
|
12824
12885
|
}
|
|
12825
12886
|
update(workspaceId, body) {
|
|
12826
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
12887
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z357.any(), {
|
|
12827
12888
|
method: "PUT",
|
|
12828
12889
|
body
|
|
12829
12890
|
});
|
|
@@ -12841,7 +12902,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
12841
12902
|
};
|
|
12842
12903
|
|
|
12843
12904
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
12844
|
-
import { z as
|
|
12905
|
+
import { z as z358 } from "zod";
|
|
12845
12906
|
var WorkspacesEndpoint = class {
|
|
12846
12907
|
constructor(requestExecutor) {
|
|
12847
12908
|
this.requestExecutor = requestExecutor;
|
|
@@ -12875,7 +12936,7 @@ var WorkspacesEndpoint = class {
|
|
|
12875
12936
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
12876
12937
|
}
|
|
12877
12938
|
delete(workspaceId) {
|
|
12878
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
12939
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z358.any(), { method: "DELETE" });
|
|
12879
12940
|
}
|
|
12880
12941
|
getPortalSettings(workspaceId) {
|
|
12881
12942
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -13033,9 +13094,9 @@ ${bodyText}`,
|
|
|
13033
13094
|
|
|
13034
13095
|
// src/api/transport/request-executor.ts
|
|
13035
13096
|
import fetch from "node-fetch";
|
|
13036
|
-
import { z as
|
|
13037
|
-
var ResponseWrapper =
|
|
13038
|
-
result:
|
|
13097
|
+
import { z as z359 } from "zod";
|
|
13098
|
+
var ResponseWrapper = z359.object({
|
|
13099
|
+
result: z359.record(z359.any())
|
|
13039
13100
|
});
|
|
13040
13101
|
var RequestExecutor = class {
|
|
13041
13102
|
constructor(testServerConfig) {
|
|
@@ -13118,25 +13179,25 @@ var SupernovaApiClient = class {
|
|
|
13118
13179
|
};
|
|
13119
13180
|
|
|
13120
13181
|
// src/events/design-system.ts
|
|
13121
|
-
import { z as
|
|
13122
|
-
var DTOEventFigmaNodesRendered =
|
|
13123
|
-
type:
|
|
13124
|
-
designSystemId:
|
|
13125
|
-
versionId:
|
|
13126
|
-
figmaNodePersistentIds:
|
|
13127
|
-
});
|
|
13128
|
-
var DTOEventDataSourcesImported =
|
|
13129
|
-
type:
|
|
13130
|
-
designSystemId:
|
|
13131
|
-
versionId:
|
|
13132
|
-
importJobId:
|
|
13182
|
+
import { z as z360 } from "zod";
|
|
13183
|
+
var DTOEventFigmaNodesRendered = z360.object({
|
|
13184
|
+
type: z360.literal("DesignSystem.FigmaNodesRendered"),
|
|
13185
|
+
designSystemId: z360.string(),
|
|
13186
|
+
versionId: z360.string(),
|
|
13187
|
+
figmaNodePersistentIds: z360.string().array()
|
|
13188
|
+
});
|
|
13189
|
+
var DTOEventDataSourcesImported = z360.object({
|
|
13190
|
+
type: z360.literal("DesignSystem.ImportJobFinished"),
|
|
13191
|
+
designSystemId: z360.string(),
|
|
13192
|
+
versionId: z360.string(),
|
|
13193
|
+
importJobId: z360.string(),
|
|
13133
13194
|
dataSourceType: DataSourceRemoteType,
|
|
13134
|
-
dataSourceIds:
|
|
13195
|
+
dataSourceIds: z360.string().array()
|
|
13135
13196
|
});
|
|
13136
13197
|
|
|
13137
13198
|
// src/events/event.ts
|
|
13138
|
-
import { z as
|
|
13139
|
-
var DTOEvent =
|
|
13199
|
+
import { z as z361 } from "zod";
|
|
13200
|
+
var DTOEvent = z361.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
13140
13201
|
|
|
13141
13202
|
// src/sync/docs-local-action-executor.ts
|
|
13142
13203
|
function applyActionsLocally(input) {
|
|
@@ -13432,7 +13493,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13432
13493
|
import PQueue from "p-queue";
|
|
13433
13494
|
|
|
13434
13495
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13435
|
-
import { z as
|
|
13496
|
+
import { z as z362 } from "zod";
|
|
13436
13497
|
|
|
13437
13498
|
// src/yjs/version-room/base.ts
|
|
13438
13499
|
var VersionRoomBaseYDoc = class {
|
|
@@ -13982,24 +14043,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
13982
14043
|
};
|
|
13983
14044
|
|
|
13984
14045
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13985
|
-
var DocumentationHierarchySettings =
|
|
13986
|
-
routingVersion:
|
|
13987
|
-
isDraftFeatureAdopted:
|
|
13988
|
-
isApprovalFeatureEnabled:
|
|
13989
|
-
approvalRequiredForPublishing:
|
|
14046
|
+
var DocumentationHierarchySettings = z362.object({
|
|
14047
|
+
routingVersion: z362.string(),
|
|
14048
|
+
isDraftFeatureAdopted: z362.boolean(),
|
|
14049
|
+
isApprovalFeatureEnabled: z362.boolean(),
|
|
14050
|
+
approvalRequiredForPublishing: z362.boolean()
|
|
13990
14051
|
});
|
|
13991
14052
|
function yjsToDocumentationHierarchy(doc) {
|
|
13992
14053
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
13993
14054
|
}
|
|
13994
14055
|
|
|
13995
14056
|
// src/yjs/design-system-content/item-configuration.ts
|
|
13996
|
-
import { z as
|
|
13997
|
-
var DTODocumentationPageRoomHeaderData =
|
|
13998
|
-
title:
|
|
14057
|
+
import { z as z363 } from "zod";
|
|
14058
|
+
var DTODocumentationPageRoomHeaderData = z363.object({
|
|
14059
|
+
title: z363.string(),
|
|
13999
14060
|
configuration: DTODocumentationItemConfigurationV2
|
|
14000
14061
|
});
|
|
14001
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
14002
|
-
title:
|
|
14062
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z363.object({
|
|
14063
|
+
title: z363.string().optional(),
|
|
14003
14064
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
14004
14065
|
});
|
|
14005
14066
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -14034,9 +14095,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
14034
14095
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
14035
14096
|
|
|
14036
14097
|
// src/yjs/docs-editor/model/page.ts
|
|
14037
|
-
import { z as
|
|
14038
|
-
var DocumentationPageEditorModel =
|
|
14039
|
-
blocks:
|
|
14098
|
+
import { z as z364 } from "zod";
|
|
14099
|
+
var DocumentationPageEditorModel = z364.object({
|
|
14100
|
+
blocks: z364.array(DocumentationPageContentItem)
|
|
14040
14101
|
});
|
|
14041
14102
|
|
|
14042
14103
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -17713,7 +17774,7 @@ var blocks = [
|
|
|
17713
17774
|
|
|
17714
17775
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
17715
17776
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
17716
|
-
import { z as
|
|
17777
|
+
import { z as z365 } from "zod";
|
|
17717
17778
|
function yDocToPage(yDoc, definitions) {
|
|
17718
17779
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
17719
17780
|
}
|
|
@@ -17789,7 +17850,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
17789
17850
|
if (!id) return null;
|
|
17790
17851
|
return {
|
|
17791
17852
|
id,
|
|
17792
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
17853
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z365.string()) ?? "",
|
|
17793
17854
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
17794
17855
|
};
|
|
17795
17856
|
}
|
|
@@ -17823,7 +17884,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
17823
17884
|
});
|
|
17824
17885
|
}
|
|
17825
17886
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
17826
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
17887
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z365.string());
|
|
17827
17888
|
if (!definitionId) {
|
|
17828
17889
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
17829
17890
|
return [];
|
|
@@ -17864,7 +17925,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
17864
17925
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17865
17926
|
if (!id) return null;
|
|
17866
17927
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17867
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
17928
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z365.string().optional()));
|
|
17868
17929
|
return {
|
|
17869
17930
|
id,
|
|
17870
17931
|
type: "Block",
|
|
@@ -17987,9 +18048,9 @@ function parseRichTextAttribute(mark) {
|
|
|
17987
18048
|
return null;
|
|
17988
18049
|
}
|
|
17989
18050
|
function parseProsemirrorLink(mark) {
|
|
17990
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
18051
|
+
const href = getProsemirrorAttribute(mark, "href", z365.string().optional());
|
|
17991
18052
|
if (!href) return null;
|
|
17992
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
18053
|
+
const target = getProsemirrorAttribute(mark, "target", z365.string().optional());
|
|
17993
18054
|
const openInNewTab = target === "_blank";
|
|
17994
18055
|
if (href.startsWith("@")) {
|
|
17995
18056
|
return {
|
|
@@ -18008,9 +18069,9 @@ function parseProsemirrorLink(mark) {
|
|
|
18008
18069
|
}
|
|
18009
18070
|
}
|
|
18010
18071
|
function parseProsemirrorCommentHighlight(mark) {
|
|
18011
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
18072
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z365.string().optional());
|
|
18012
18073
|
if (!highlightId) return null;
|
|
18013
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
18074
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z365.boolean().optional()) ?? false;
|
|
18014
18075
|
return {
|
|
18015
18076
|
type: "Comment",
|
|
18016
18077
|
commentHighlightId: highlightId,
|
|
@@ -18021,7 +18082,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
18021
18082
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
18022
18083
|
if (!id) return null;
|
|
18023
18084
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
18024
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
18085
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z365.boolean().optional()) !== false;
|
|
18025
18086
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
18026
18087
|
if (!tableChild) {
|
|
18027
18088
|
return emptyTable(id, variantId, 0);
|
|
@@ -18067,9 +18128,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
18067
18128
|
function parseAsTableCell(prosemirrorNode) {
|
|
18068
18129
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
18069
18130
|
if (!id) return null;
|
|
18070
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
18131
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z365.string().optional());
|
|
18071
18132
|
let columnWidth;
|
|
18072
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
18133
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z365.array(z365.number()).nullish());
|
|
18073
18134
|
if (columnWidthArray) {
|
|
18074
18135
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
18075
18136
|
}
|
|
@@ -18105,7 +18166,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
18105
18166
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
18106
18167
|
};
|
|
18107
18168
|
case "image":
|
|
18108
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
18169
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z365.string());
|
|
18109
18170
|
if (!items) return null;
|
|
18110
18171
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
18111
18172
|
if (!parsedItems.success) return null;
|
|
@@ -18219,7 +18280,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
18219
18280
|
);
|
|
18220
18281
|
}
|
|
18221
18282
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
18222
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
18283
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z365.string());
|
|
18223
18284
|
if (!itemsString) return null;
|
|
18224
18285
|
const itemsJson = JSON.parse(itemsString);
|
|
18225
18286
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -18230,18 +18291,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
18230
18291
|
}
|
|
18231
18292
|
function parseAppearance(prosemirrorNode) {
|
|
18232
18293
|
let appearance = {};
|
|
18233
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
18294
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z365.string().optional());
|
|
18234
18295
|
if (rawAppearanceString) {
|
|
18235
18296
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
18236
18297
|
if (parsedAppearance.success) {
|
|
18237
18298
|
appearance = parsedAppearance.data;
|
|
18238
18299
|
}
|
|
18239
18300
|
}
|
|
18240
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
18301
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z365.number().optional());
|
|
18241
18302
|
if (columns) {
|
|
18242
18303
|
appearance.numberOfColumns = columns;
|
|
18243
18304
|
}
|
|
18244
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
18305
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z365.string().optional());
|
|
18245
18306
|
if (backgroundColor) {
|
|
18246
18307
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
18247
18308
|
if (parsedColor.success) {
|
|
@@ -18342,12 +18403,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
18342
18403
|
}
|
|
18343
18404
|
}
|
|
18344
18405
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
18345
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
18406
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z365.string());
|
|
18346
18407
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
18347
18408
|
return id;
|
|
18348
18409
|
}
|
|
18349
18410
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
18350
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
18411
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z365.string()));
|
|
18351
18412
|
}
|
|
18352
18413
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
18353
18414
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -19984,6 +20045,8 @@ export {
|
|
|
19984
20045
|
DTOForgeProjectContext,
|
|
19985
20046
|
DTOForgeProjectContextCreateResponse,
|
|
19986
20047
|
DTOForgeProjectContextCreateV2,
|
|
20048
|
+
DTOForgeProjectContextCreated,
|
|
20049
|
+
DTOForgeProjectContextDeleted,
|
|
19987
20050
|
DTOForgeProjectContextGetResponse,
|
|
19988
20051
|
DTOForgeProjectContextListQueryV2,
|
|
19989
20052
|
DTOForgeProjectContextListResponse,
|
|
@@ -19992,8 +20055,10 @@ export {
|
|
|
19992
20055
|
DTOForgeProjectContextResponseV2,
|
|
19993
20056
|
DTOForgeProjectContextUpdateResponse,
|
|
19994
20057
|
DTOForgeProjectContextUpdateV2,
|
|
20058
|
+
DTOForgeProjectContextUpdated,
|
|
19995
20059
|
DTOForgeProjectContextV2,
|
|
19996
20060
|
DTOForgeProjectCreate,
|
|
20061
|
+
DTOForgeProjectCreated,
|
|
19997
20062
|
DTOForgeProjectDefaultRole,
|
|
19998
20063
|
DTOForgeProjectDocumentPreview,
|
|
19999
20064
|
DTOForgeProjectFeature,
|
|
@@ -20026,17 +20091,22 @@ export {
|
|
|
20026
20091
|
DTOForgeProjectListResponse,
|
|
20027
20092
|
DTOForgeProjectMember,
|
|
20028
20093
|
DTOForgeProjectMemberCreateResponse,
|
|
20094
|
+
DTOForgeProjectMemberDeleted,
|
|
20029
20095
|
DTOForgeProjectMemberGetResponse,
|
|
20030
20096
|
DTOForgeProjectMemberRemoveResponse,
|
|
20031
20097
|
DTOForgeProjectMemberRole,
|
|
20032
20098
|
DTOForgeProjectMemberUpdateResponse,
|
|
20099
|
+
DTOForgeProjectMemberUpdated,
|
|
20100
|
+
DTOForgeProjectMembersCreated,
|
|
20033
20101
|
DTOForgeProjectMembersListResponse,
|
|
20034
20102
|
DTOForgeProjectResponse,
|
|
20035
20103
|
DTOForgeProjectRole,
|
|
20036
20104
|
DTOForgeProjectRoom,
|
|
20105
|
+
DTOForgeProjectRoomEvent,
|
|
20037
20106
|
DTOForgeProjectRoomResponse,
|
|
20038
20107
|
DTOForgeProjectTheme,
|
|
20039
20108
|
DTOForgeProjectUpdate,
|
|
20109
|
+
DTOForgeProjectUpdated,
|
|
20040
20110
|
DTOForgeRelation,
|
|
20041
20111
|
DTOForgeRelationCreate,
|
|
20042
20112
|
DTOForgeRelationDelete,
|
|
@@ -20113,6 +20183,9 @@ export {
|
|
|
20113
20183
|
DTOProduct,
|
|
20114
20184
|
DTOProductCode,
|
|
20115
20185
|
DTOProductPrice,
|
|
20186
|
+
DTOProjectContextOverride,
|
|
20187
|
+
DTOProjectContextOverrideInput,
|
|
20188
|
+
DTOProjectContextOverrideResponse,
|
|
20116
20189
|
DTOPublishDocumentationChanges,
|
|
20117
20190
|
DTOPublishDocumentationRequest,
|
|
20118
20191
|
DTOPublishDocumentationResponse,
|
|
@@ -20252,6 +20325,7 @@ export {
|
|
|
20252
20325
|
DTOWorkspaceProfile,
|
|
20253
20326
|
DTOWorkspaceResponse,
|
|
20254
20327
|
DTOWorkspaceRole,
|
|
20328
|
+
DTOWorkspaceRoomEvent,
|
|
20255
20329
|
DTOWorkspaceSeatType,
|
|
20256
20330
|
DTOWorkspaceUntypedData,
|
|
20257
20331
|
DTOWorkspaceUntypedDataCreatePayload,
|