@supernova-studio/client 1.31.4 → 1.31.6
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 +479 -915
- package/dist/index.d.ts +479 -915
- package/dist/index.js +161 -231
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +221 -291
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9220,9 +9220,7 @@ var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
|
|
|
9220
9220
|
isPrompt: true,
|
|
9221
9221
|
startsNewThread: true,
|
|
9222
9222
|
parentMessageId: true,
|
|
9223
|
-
|
|
9224
|
-
agentResponseTrackerId: true,
|
|
9225
|
-
createdAt: true
|
|
9223
|
+
attachments: true
|
|
9226
9224
|
});
|
|
9227
9225
|
var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.omit({ id: true }).merge(DTOFeatureMessage.pick({ agentResponseTrackerId: true })).partial();
|
|
9228
9226
|
var DTOFeatureMessageReactionCreateInput = z312.object({
|
|
@@ -11173,70 +11171,83 @@ var ForgeFeatureMessagesEndpoint = class {
|
|
|
11173
11171
|
}
|
|
11174
11172
|
};
|
|
11175
11173
|
|
|
11176
|
-
// src/api/endpoints/forge/
|
|
11177
|
-
var
|
|
11174
|
+
// src/api/endpoints/forge/feature-artifacts.ts
|
|
11175
|
+
var ForgeFeatureArtifactsEndpoint = class {
|
|
11178
11176
|
constructor(requestExecutor) {
|
|
11179
11177
|
this.requestExecutor = requestExecutor;
|
|
11180
11178
|
}
|
|
11181
|
-
list(workspaceId, projectId) {
|
|
11179
|
+
list(workspaceId, projectId, featureId) {
|
|
11182
11180
|
return this.requestExecutor.json(
|
|
11183
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/features`,
|
|
11184
|
-
|
|
11181
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/artifacts`,
|
|
11182
|
+
DTOFeatureArtifactListResponse,
|
|
11185
11183
|
{
|
|
11186
11184
|
method: "GET"
|
|
11187
11185
|
}
|
|
11188
11186
|
);
|
|
11189
11187
|
}
|
|
11190
|
-
|
|
11188
|
+
};
|
|
11189
|
+
|
|
11190
|
+
// src/api/endpoints/forge/feature-iterations.ts
|
|
11191
|
+
import z342 from "zod";
|
|
11192
|
+
var ForgeFeatureIterationsEndpoint = class {
|
|
11193
|
+
constructor(requestExecutor) {
|
|
11194
|
+
this.requestExecutor = requestExecutor;
|
|
11195
|
+
}
|
|
11196
|
+
list(workspaceId, projectId, featureId) {
|
|
11191
11197
|
return this.requestExecutor.json(
|
|
11192
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}`,
|
|
11193
|
-
|
|
11194
|
-
{
|
|
11198
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations`,
|
|
11199
|
+
DTOFeatureIterationListResponse,
|
|
11200
|
+
{
|
|
11201
|
+
method: "GET"
|
|
11202
|
+
}
|
|
11203
|
+
);
|
|
11204
|
+
}
|
|
11205
|
+
updateArtifacts(workspaceId, projectId, featureId, body) {
|
|
11206
|
+
return this.requestExecutor.json(
|
|
11207
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
|
|
11208
|
+
z342.any(),
|
|
11209
|
+
{
|
|
11210
|
+
body,
|
|
11211
|
+
method: "POST"
|
|
11212
|
+
}
|
|
11195
11213
|
);
|
|
11196
11214
|
}
|
|
11197
11215
|
};
|
|
11198
11216
|
|
|
11199
|
-
// src/api/endpoints/forge/
|
|
11200
|
-
var
|
|
11217
|
+
// src/api/endpoints/forge/features.ts
|
|
11218
|
+
var ForgeProjectFeaturesEndpoint = class {
|
|
11201
11219
|
constructor(requestExecutor) {
|
|
11202
11220
|
this.requestExecutor = requestExecutor;
|
|
11221
|
+
__publicField(this, "messages");
|
|
11222
|
+
__publicField(this, "iterations");
|
|
11223
|
+
__publicField(this, "artifacts");
|
|
11224
|
+
this.messages = new ForgeFeatureMessagesEndpoint(requestExecutor);
|
|
11225
|
+
this.iterations = new ForgeFeatureIterationsEndpoint(requestExecutor);
|
|
11226
|
+
this.artifacts = new ForgeFeatureArtifactsEndpoint(requestExecutor);
|
|
11203
11227
|
}
|
|
11204
|
-
list(workspaceId) {
|
|
11205
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects`, DTOForgeProjectListResponse, {
|
|
11206
|
-
method: "GET"
|
|
11207
|
-
});
|
|
11208
|
-
}
|
|
11209
|
-
create(workspaceId, body) {
|
|
11210
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects`, DTOForgeProjectCreateResponse, {
|
|
11211
|
-
method: "POST",
|
|
11212
|
-
body
|
|
11213
|
-
});
|
|
11214
|
-
}
|
|
11215
|
-
get(workspaceId, projectId) {
|
|
11228
|
+
list(workspaceId, projectId) {
|
|
11216
11229
|
return this.requestExecutor.json(
|
|
11217
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11218
|
-
|
|
11230
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features`,
|
|
11231
|
+
DTOForgeProjectFeatureListResponse,
|
|
11219
11232
|
{
|
|
11220
11233
|
method: "GET"
|
|
11221
11234
|
}
|
|
11222
11235
|
);
|
|
11223
11236
|
}
|
|
11224
|
-
|
|
11237
|
+
get(workspaceId, projectId, featureId) {
|
|
11225
11238
|
return this.requestExecutor.json(
|
|
11226
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11227
|
-
|
|
11228
|
-
{
|
|
11229
|
-
method: "PUT",
|
|
11230
|
-
body
|
|
11231
|
-
}
|
|
11239
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}`,
|
|
11240
|
+
DTOForgeProjectFeatureGetResponse,
|
|
11241
|
+
{}
|
|
11232
11242
|
);
|
|
11233
11243
|
}
|
|
11234
|
-
|
|
11244
|
+
agentWorkFinalized(workspaceId, projectId, featureId, body) {
|
|
11235
11245
|
return this.requestExecutor.json(
|
|
11236
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11237
|
-
|
|
11246
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/agent-work-finalize`,
|
|
11247
|
+
DTOFeatureIterationResponse,
|
|
11238
11248
|
{
|
|
11239
|
-
method: "
|
|
11249
|
+
method: "POST",
|
|
11250
|
+
body
|
|
11240
11251
|
}
|
|
11241
11252
|
);
|
|
11242
11253
|
}
|
|
@@ -11287,6 +11298,69 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
11287
11298
|
}
|
|
11288
11299
|
};
|
|
11289
11300
|
|
|
11301
|
+
// src/api/endpoints/forge/project-files.ts
|
|
11302
|
+
var ForgeProjectFilesEndpoint = class {
|
|
11303
|
+
constructor(requestExecutor) {
|
|
11304
|
+
this.requestExecutor = requestExecutor;
|
|
11305
|
+
}
|
|
11306
|
+
upload(workspaceId, projectId, body) {
|
|
11307
|
+
return this.requestExecutor.json(
|
|
11308
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/files/upload`,
|
|
11309
|
+
DTOForgeProjectFileUploadResponse,
|
|
11310
|
+
{
|
|
11311
|
+
method: "POST",
|
|
11312
|
+
body
|
|
11313
|
+
}
|
|
11314
|
+
);
|
|
11315
|
+
}
|
|
11316
|
+
finalize(workspaceId, projectId, body) {
|
|
11317
|
+
return this.requestExecutor.json(
|
|
11318
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/files/finalize`,
|
|
11319
|
+
DTOForgeProjectFileUploadFinalizeResponse,
|
|
11320
|
+
{
|
|
11321
|
+
method: "POST",
|
|
11322
|
+
body
|
|
11323
|
+
}
|
|
11324
|
+
);
|
|
11325
|
+
}
|
|
11326
|
+
list(workspaceId, projectId) {
|
|
11327
|
+
return this.requestExecutor.json(
|
|
11328
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/files`,
|
|
11329
|
+
DTOForgeProjectFileListResponse
|
|
11330
|
+
);
|
|
11331
|
+
}
|
|
11332
|
+
};
|
|
11333
|
+
|
|
11334
|
+
// src/api/endpoints/forge/project-invitations.ts
|
|
11335
|
+
var ForgeProjectInvitationsEndpoint = class {
|
|
11336
|
+
constructor(requestExecutor) {
|
|
11337
|
+
this.requestExecutor = requestExecutor;
|
|
11338
|
+
}
|
|
11339
|
+
list(projectId) {
|
|
11340
|
+
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMembersListResponse, {
|
|
11341
|
+
method: "GET"
|
|
11342
|
+
});
|
|
11343
|
+
}
|
|
11344
|
+
create(projectId, body) {
|
|
11345
|
+
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMembersListResponse, {
|
|
11346
|
+
method: "POST",
|
|
11347
|
+
body
|
|
11348
|
+
});
|
|
11349
|
+
}
|
|
11350
|
+
update(projectId, email, body) {
|
|
11351
|
+
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectInvitationCreateResponse, {
|
|
11352
|
+
method: "PUT",
|
|
11353
|
+
body: { ...body, email }
|
|
11354
|
+
});
|
|
11355
|
+
}
|
|
11356
|
+
delete(projectId, email) {
|
|
11357
|
+
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMemberRemoveResponse, {
|
|
11358
|
+
method: "DELETE",
|
|
11359
|
+
body: { email }
|
|
11360
|
+
});
|
|
11361
|
+
}
|
|
11362
|
+
};
|
|
11363
|
+
|
|
11290
11364
|
// src/api/endpoints/forge/project-members.ts
|
|
11291
11365
|
var ForgeProjectMembersEndpoint = class {
|
|
11292
11366
|
constructor(requestExecutor) {
|
|
@@ -11317,93 +11391,76 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
11317
11391
|
}
|
|
11318
11392
|
};
|
|
11319
11393
|
|
|
11320
|
-
// src/api/endpoints/forge/
|
|
11321
|
-
|
|
11394
|
+
// src/api/endpoints/forge/projects.ts
|
|
11395
|
+
import z343 from "zod";
|
|
11396
|
+
var ForgeProjectsEndpoint = class {
|
|
11322
11397
|
constructor(requestExecutor) {
|
|
11323
11398
|
this.requestExecutor = requestExecutor;
|
|
11324
11399
|
}
|
|
11325
|
-
list(workspaceId
|
|
11326
|
-
return this.requestExecutor.json(
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
{
|
|
11330
|
-
method: "GET"
|
|
11331
|
-
}
|
|
11332
|
-
);
|
|
11400
|
+
list(workspaceId) {
|
|
11401
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects`, DTOForgeProjectListResponse, {
|
|
11402
|
+
method: "GET"
|
|
11403
|
+
});
|
|
11333
11404
|
}
|
|
11334
|
-
create(workspaceId,
|
|
11405
|
+
create(workspaceId, body) {
|
|
11406
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects`, DTOForgeProjectCreateResponse, {
|
|
11407
|
+
method: "POST",
|
|
11408
|
+
body
|
|
11409
|
+
});
|
|
11410
|
+
}
|
|
11411
|
+
get(workspaceId, projectId) {
|
|
11335
11412
|
return this.requestExecutor.json(
|
|
11336
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}
|
|
11337
|
-
|
|
11413
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11414
|
+
DTOForgeProjectGetResponse,
|
|
11338
11415
|
{
|
|
11339
|
-
method: "
|
|
11340
|
-
body
|
|
11416
|
+
method: "GET"
|
|
11341
11417
|
}
|
|
11342
11418
|
);
|
|
11343
11419
|
}
|
|
11344
|
-
update(workspaceId, projectId,
|
|
11420
|
+
update(workspaceId, projectId, body) {
|
|
11345
11421
|
return this.requestExecutor.json(
|
|
11346
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}
|
|
11347
|
-
|
|
11422
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11423
|
+
DTOForgeProjectUpdateResponse,
|
|
11348
11424
|
{
|
|
11349
11425
|
method: "PUT",
|
|
11350
11426
|
body
|
|
11351
11427
|
}
|
|
11352
11428
|
);
|
|
11353
11429
|
}
|
|
11354
|
-
delete(workspaceId, projectId
|
|
11430
|
+
delete(workspaceId, projectId) {
|
|
11355
11431
|
return this.requestExecutor.json(
|
|
11356
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}
|
|
11357
|
-
|
|
11432
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11433
|
+
DTOForgeProjectRemoveResponse,
|
|
11358
11434
|
{
|
|
11359
11435
|
method: "DELETE"
|
|
11360
11436
|
}
|
|
11361
11437
|
);
|
|
11362
11438
|
}
|
|
11439
|
+
action(workspaceId, projectId, body) {
|
|
11440
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z343.any(), {
|
|
11441
|
+
body,
|
|
11442
|
+
method: "POST"
|
|
11443
|
+
});
|
|
11444
|
+
}
|
|
11363
11445
|
};
|
|
11364
11446
|
|
|
11365
|
-
// src/api/endpoints/forge/
|
|
11366
|
-
var
|
|
11447
|
+
// src/api/endpoints/forge/forge.ts
|
|
11448
|
+
var ForgeEndpoint = class {
|
|
11367
11449
|
constructor(requestExecutor) {
|
|
11368
|
-
this
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11377
|
-
);
|
|
11378
|
-
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
DTOCreateForgeParticipantResponse,
|
|
11383
|
-
{
|
|
11384
|
-
method: "POST",
|
|
11385
|
-
body
|
|
11386
|
-
}
|
|
11387
|
-
);
|
|
11388
|
-
}
|
|
11389
|
-
update(workspaceId, projectId, id, body) {
|
|
11390
|
-
return this.requestExecutor.json(
|
|
11391
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/participants/${id}`,
|
|
11392
|
-
DTOCreateForgeParticipantResponse,
|
|
11393
|
-
{
|
|
11394
|
-
method: "PUT",
|
|
11395
|
-
body
|
|
11396
|
-
}
|
|
11397
|
-
);
|
|
11398
|
-
}
|
|
11399
|
-
delete(workspaceId, projectId, id) {
|
|
11400
|
-
return this.requestExecutor.json(
|
|
11401
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/participants/${id}`,
|
|
11402
|
-
DTODeleteForgeParticipantResponse,
|
|
11403
|
-
{
|
|
11404
|
-
method: "DELETE"
|
|
11405
|
-
}
|
|
11406
|
-
);
|
|
11450
|
+
__publicField(this, "projects");
|
|
11451
|
+
__publicField(this, "projectContexts");
|
|
11452
|
+
__publicField(this, "artifacts");
|
|
11453
|
+
__publicField(this, "features");
|
|
11454
|
+
__publicField(this, "files");
|
|
11455
|
+
__publicField(this, "projectMembers");
|
|
11456
|
+
__publicField(this, "projectInvitations");
|
|
11457
|
+
this.projects = new ForgeProjectsEndpoint(requestExecutor);
|
|
11458
|
+
this.projectContexts = new ForgeProjectContextsEndpoint(requestExecutor);
|
|
11459
|
+
this.artifacts = new ForgeArtifactsEndpoint(requestExecutor);
|
|
11460
|
+
this.features = new ForgeProjectFeaturesEndpoint(requestExecutor);
|
|
11461
|
+
this.files = new ForgeProjectFilesEndpoint(requestExecutor);
|
|
11462
|
+
this.projectMembers = new ForgeProjectMembersEndpoint(requestExecutor);
|
|
11463
|
+
this.projectInvitations = new ForgeProjectInvitationsEndpoint(requestExecutor);
|
|
11407
11464
|
}
|
|
11408
11465
|
};
|
|
11409
11466
|
|
|
@@ -11462,132 +11519,8 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
11462
11519
|
}
|
|
11463
11520
|
};
|
|
11464
11521
|
|
|
11465
|
-
// src/api/endpoints/forge/project-invitations.ts
|
|
11466
|
-
var ForgeProjectInvitationsEndpoint = class {
|
|
11467
|
-
constructor(requestExecutor) {
|
|
11468
|
-
this.requestExecutor = requestExecutor;
|
|
11469
|
-
}
|
|
11470
|
-
list(projectId) {
|
|
11471
|
-
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMembersListResponse, {
|
|
11472
|
-
method: "GET"
|
|
11473
|
-
});
|
|
11474
|
-
}
|
|
11475
|
-
create(projectId, body) {
|
|
11476
|
-
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMembersListResponse, {
|
|
11477
|
-
method: "POST",
|
|
11478
|
-
body
|
|
11479
|
-
});
|
|
11480
|
-
}
|
|
11481
|
-
update(projectId, email, body) {
|
|
11482
|
-
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectInvitationCreateResponse, {
|
|
11483
|
-
method: "PUT",
|
|
11484
|
-
body: { ...body, email }
|
|
11485
|
-
});
|
|
11486
|
-
}
|
|
11487
|
-
delete(projectId, email) {
|
|
11488
|
-
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMemberRemoveResponse, {
|
|
11489
|
-
method: "DELETE",
|
|
11490
|
-
body: { email }
|
|
11491
|
-
});
|
|
11492
|
-
}
|
|
11493
|
-
};
|
|
11494
|
-
|
|
11495
|
-
// src/api/endpoints/forge/project-features.ts
|
|
11496
|
-
var ForgeProjectFeaturesEndpoint = class {
|
|
11497
|
-
constructor(requestExecutor) {
|
|
11498
|
-
this.requestExecutor = requestExecutor;
|
|
11499
|
-
}
|
|
11500
|
-
list(workspaceId, projectId) {
|
|
11501
|
-
return this.requestExecutor.json(
|
|
11502
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/features`,
|
|
11503
|
-
DTOForgeProjectFeatureListResponse,
|
|
11504
|
-
{
|
|
11505
|
-
method: "GET"
|
|
11506
|
-
}
|
|
11507
|
-
);
|
|
11508
|
-
}
|
|
11509
|
-
get(workspaceId, projectId, featureId) {
|
|
11510
|
-
return this.requestExecutor.json(
|
|
11511
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}`,
|
|
11512
|
-
DTOForgeProjectFeatureGetResponse,
|
|
11513
|
-
{}
|
|
11514
|
-
);
|
|
11515
|
-
}
|
|
11516
|
-
agentWorkFinalized(workspaceId, projectId, featureId, body) {
|
|
11517
|
-
return this.requestExecutor.json(
|
|
11518
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/agent-work-finalize`,
|
|
11519
|
-
DTOFeatureIterationResponse,
|
|
11520
|
-
{
|
|
11521
|
-
method: "POST",
|
|
11522
|
-
body
|
|
11523
|
-
}
|
|
11524
|
-
);
|
|
11525
|
-
}
|
|
11526
|
-
};
|
|
11527
|
-
|
|
11528
|
-
// src/api/endpoints/forge/project-files.ts
|
|
11529
|
-
var ForgeProjectFilesEndpoint = class {
|
|
11530
|
-
constructor(requestExecutor) {
|
|
11531
|
-
this.requestExecutor = requestExecutor;
|
|
11532
|
-
}
|
|
11533
|
-
upload(workspaceId, projectId, body) {
|
|
11534
|
-
return this.requestExecutor.json(
|
|
11535
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/files/upload`,
|
|
11536
|
-
DTOForgeProjectFileUploadResponse,
|
|
11537
|
-
{
|
|
11538
|
-
method: "POST",
|
|
11539
|
-
body
|
|
11540
|
-
}
|
|
11541
|
-
);
|
|
11542
|
-
}
|
|
11543
|
-
finalize(workspaceId, projectId, body) {
|
|
11544
|
-
return this.requestExecutor.json(
|
|
11545
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/files/finalize`,
|
|
11546
|
-
DTOForgeProjectFileUploadFinalizeResponse,
|
|
11547
|
-
{
|
|
11548
|
-
method: "POST",
|
|
11549
|
-
body
|
|
11550
|
-
}
|
|
11551
|
-
);
|
|
11552
|
-
}
|
|
11553
|
-
list(workspaceId, projectId) {
|
|
11554
|
-
return this.requestExecutor.json(
|
|
11555
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}/files`,
|
|
11556
|
-
DTOForgeProjectFileListResponse
|
|
11557
|
-
);
|
|
11558
|
-
}
|
|
11559
|
-
};
|
|
11560
|
-
|
|
11561
|
-
// src/api/endpoints/forge/forges.ts
|
|
11562
|
-
var ForgesEndpoint = class {
|
|
11563
|
-
constructor(requestExecutor) {
|
|
11564
|
-
__publicField(this, "projectAgents");
|
|
11565
|
-
__publicField(this, "artifacts");
|
|
11566
|
-
__publicField(this, "iterationMessages");
|
|
11567
|
-
__publicField(this, "participants");
|
|
11568
|
-
__publicField(this, "projectContexts");
|
|
11569
|
-
__publicField(this, "projectIterations");
|
|
11570
|
-
__publicField(this, "projectMembers");
|
|
11571
|
-
__publicField(this, "projects");
|
|
11572
|
-
__publicField(this, "projectInvitations");
|
|
11573
|
-
__publicField(this, "projectFeatures");
|
|
11574
|
-
__publicField(this, "projectFiles");
|
|
11575
|
-
this.projectAgents = new ForgeAgentsEndpoint(requestExecutor);
|
|
11576
|
-
this.artifacts = new ForgeArtifactsEndpoint(requestExecutor);
|
|
11577
|
-
this.iterationMessages = new ForgeIterationMessagesEndpoint(requestExecutor);
|
|
11578
|
-
this.participants = new ForgeParticipantsEndpoint(requestExecutor);
|
|
11579
|
-
this.projectContexts = new ForgeProjectContextsEndpoint(requestExecutor);
|
|
11580
|
-
this.projectIterations = new ForgeProjectIterationsEndpoint(requestExecutor);
|
|
11581
|
-
this.projectMembers = new ForgeProjectMembersEndpoint(requestExecutor);
|
|
11582
|
-
this.projects = new ForgeProjectsEndpoint(requestExecutor);
|
|
11583
|
-
this.projectInvitations = new ForgeProjectInvitationsEndpoint(requestExecutor);
|
|
11584
|
-
this.projectFeatures = new ForgeProjectFeaturesEndpoint(requestExecutor);
|
|
11585
|
-
this.projectFiles = new ForgeProjectFilesEndpoint(requestExecutor);
|
|
11586
|
-
}
|
|
11587
|
-
};
|
|
11588
|
-
|
|
11589
11522
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
11590
|
-
import { z as
|
|
11523
|
+
import { z as z344 } from "zod";
|
|
11591
11524
|
var WorkspaceChatThreadsEndpoint = class {
|
|
11592
11525
|
constructor(requestExecutor) {
|
|
11593
11526
|
this.requestExecutor = requestExecutor;
|
|
@@ -11619,7 +11552,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
11619
11552
|
);
|
|
11620
11553
|
}
|
|
11621
11554
|
delete(workspaceId, threadId) {
|
|
11622
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
11555
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z344.any(), {
|
|
11623
11556
|
method: "DELETE"
|
|
11624
11557
|
});
|
|
11625
11558
|
}
|
|
@@ -11651,7 +11584,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11651
11584
|
);
|
|
11652
11585
|
}
|
|
11653
11586
|
score(workspaceId, threadId, body) {
|
|
11654
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
11587
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z344.any(), {
|
|
11655
11588
|
method: "POST",
|
|
11656
11589
|
body
|
|
11657
11590
|
});
|
|
@@ -11659,7 +11592,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11659
11592
|
};
|
|
11660
11593
|
|
|
11661
11594
|
// src/api/endpoints/workspaces/integrations.ts
|
|
11662
|
-
import { z as
|
|
11595
|
+
import { z as z345 } from "zod";
|
|
11663
11596
|
var WorkspaceIntegrationsEndpoint = class {
|
|
11664
11597
|
constructor(requestExecutor) {
|
|
11665
11598
|
this.requestExecutor = requestExecutor;
|
|
@@ -11668,7 +11601,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
11668
11601
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
11669
11602
|
}
|
|
11670
11603
|
delete(wsId, iId) {
|
|
11671
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11604
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z345.unknown(), { method: "DELETE" });
|
|
11672
11605
|
}
|
|
11673
11606
|
};
|
|
11674
11607
|
|
|
@@ -11700,7 +11633,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
11700
11633
|
};
|
|
11701
11634
|
|
|
11702
11635
|
// src/api/endpoints/workspaces/members.ts
|
|
11703
|
-
import { z as
|
|
11636
|
+
import { z as z346 } from "zod";
|
|
11704
11637
|
var WorkspaceMembersEndpoint = class {
|
|
11705
11638
|
constructor(requestExecutor) {
|
|
11706
11639
|
this.requestExecutor = requestExecutor;
|
|
@@ -11717,7 +11650,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11717
11650
|
});
|
|
11718
11651
|
}
|
|
11719
11652
|
invite(workspaceId, body) {
|
|
11720
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11653
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z346.any(), { method: "POST", body });
|
|
11721
11654
|
}
|
|
11722
11655
|
delete(workspaceId, userId) {
|
|
11723
11656
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11746,7 +11679,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11746
11679
|
};
|
|
11747
11680
|
|
|
11748
11681
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11749
|
-
import { z as
|
|
11682
|
+
import { z as z347 } from "zod";
|
|
11750
11683
|
var WorkspacesEndpoint = class {
|
|
11751
11684
|
constructor(requestExecutor) {
|
|
11752
11685
|
this.requestExecutor = requestExecutor;
|
|
@@ -11778,10 +11711,10 @@ var WorkspacesEndpoint = class {
|
|
|
11778
11711
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11779
11712
|
}
|
|
11780
11713
|
delete(workspaceId) {
|
|
11781
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11714
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z347.any(), { method: "DELETE" });
|
|
11782
11715
|
}
|
|
11783
11716
|
subscription(workspaceId) {
|
|
11784
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11717
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z347.any(), { method: "GET" });
|
|
11785
11718
|
}
|
|
11786
11719
|
getPortalSettings(workspaceId) {
|
|
11787
11720
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11892,9 +11825,9 @@ ${bodyText}`,
|
|
|
11892
11825
|
|
|
11893
11826
|
// src/api/transport/request-executor.ts
|
|
11894
11827
|
import fetch from "node-fetch";
|
|
11895
|
-
import { z as
|
|
11896
|
-
var ResponseWrapper =
|
|
11897
|
-
result:
|
|
11828
|
+
import { z as z348 } from "zod";
|
|
11829
|
+
var ResponseWrapper = z348.object({
|
|
11830
|
+
result: z348.record(z348.any())
|
|
11898
11831
|
});
|
|
11899
11832
|
var RequestExecutor = class {
|
|
11900
11833
|
constructor(testServerConfig) {
|
|
@@ -11956,7 +11889,7 @@ var SupernovaApiClient = class {
|
|
|
11956
11889
|
__publicField(this, "designSystems");
|
|
11957
11890
|
__publicField(this, "codegen");
|
|
11958
11891
|
__publicField(this, "liveblocks");
|
|
11959
|
-
__publicField(this, "
|
|
11892
|
+
__publicField(this, "forge");
|
|
11960
11893
|
const requestExecutor = new RequestExecutor({
|
|
11961
11894
|
host: config.host,
|
|
11962
11895
|
accessToken: config.accessToken
|
|
@@ -11966,30 +11899,30 @@ var SupernovaApiClient = class {
|
|
|
11966
11899
|
this.designSystems = new DesignSystemsEndpoint(requestExecutor);
|
|
11967
11900
|
this.codegen = new CodegenEndpoint(requestExecutor);
|
|
11968
11901
|
this.liveblocks = new LiveblocksEndpoint(requestExecutor);
|
|
11969
|
-
this.
|
|
11902
|
+
this.forge = new ForgeEndpoint(requestExecutor);
|
|
11970
11903
|
}
|
|
11971
11904
|
};
|
|
11972
11905
|
|
|
11973
11906
|
// src/events/design-system.ts
|
|
11974
|
-
import { z as
|
|
11975
|
-
var DTOEventFigmaNodesRendered =
|
|
11976
|
-
type:
|
|
11977
|
-
designSystemId:
|
|
11978
|
-
versionId:
|
|
11979
|
-
figmaNodePersistentIds:
|
|
11980
|
-
});
|
|
11981
|
-
var DTOEventDataSourcesImported =
|
|
11982
|
-
type:
|
|
11983
|
-
designSystemId:
|
|
11984
|
-
versionId:
|
|
11985
|
-
importJobId:
|
|
11907
|
+
import { z as z349 } from "zod";
|
|
11908
|
+
var DTOEventFigmaNodesRendered = z349.object({
|
|
11909
|
+
type: z349.literal("DesignSystem.FigmaNodesRendered"),
|
|
11910
|
+
designSystemId: z349.string(),
|
|
11911
|
+
versionId: z349.string(),
|
|
11912
|
+
figmaNodePersistentIds: z349.string().array()
|
|
11913
|
+
});
|
|
11914
|
+
var DTOEventDataSourcesImported = z349.object({
|
|
11915
|
+
type: z349.literal("DesignSystem.ImportJobFinished"),
|
|
11916
|
+
designSystemId: z349.string(),
|
|
11917
|
+
versionId: z349.string(),
|
|
11918
|
+
importJobId: z349.string(),
|
|
11986
11919
|
dataSourceType: DataSourceRemoteType,
|
|
11987
|
-
dataSourceIds:
|
|
11920
|
+
dataSourceIds: z349.string().array()
|
|
11988
11921
|
});
|
|
11989
11922
|
|
|
11990
11923
|
// src/events/event.ts
|
|
11991
|
-
import { z as
|
|
11992
|
-
var DTOEvent =
|
|
11924
|
+
import { z as z350 } from "zod";
|
|
11925
|
+
var DTOEvent = z350.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11993
11926
|
|
|
11994
11927
|
// src/sync/docs-local-action-executor.ts
|
|
11995
11928
|
function applyActionsLocally(input) {
|
|
@@ -12285,7 +12218,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
12285
12218
|
import PQueue from "p-queue";
|
|
12286
12219
|
|
|
12287
12220
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12288
|
-
import { z as
|
|
12221
|
+
import { z as z351 } from "zod";
|
|
12289
12222
|
|
|
12290
12223
|
// src/yjs/version-room/base.ts
|
|
12291
12224
|
var VersionRoomBaseYDoc = class {
|
|
@@ -12835,24 +12768,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
12835
12768
|
};
|
|
12836
12769
|
|
|
12837
12770
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12838
|
-
var DocumentationHierarchySettings =
|
|
12839
|
-
routingVersion:
|
|
12840
|
-
isDraftFeatureAdopted:
|
|
12841
|
-
isApprovalFeatureEnabled:
|
|
12842
|
-
approvalRequiredForPublishing:
|
|
12771
|
+
var DocumentationHierarchySettings = z351.object({
|
|
12772
|
+
routingVersion: z351.string(),
|
|
12773
|
+
isDraftFeatureAdopted: z351.boolean(),
|
|
12774
|
+
isApprovalFeatureEnabled: z351.boolean(),
|
|
12775
|
+
approvalRequiredForPublishing: z351.boolean()
|
|
12843
12776
|
});
|
|
12844
12777
|
function yjsToDocumentationHierarchy(doc) {
|
|
12845
12778
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
12846
12779
|
}
|
|
12847
12780
|
|
|
12848
12781
|
// src/yjs/design-system-content/item-configuration.ts
|
|
12849
|
-
import { z as
|
|
12850
|
-
var DTODocumentationPageRoomHeaderData =
|
|
12851
|
-
title:
|
|
12782
|
+
import { z as z352 } from "zod";
|
|
12783
|
+
var DTODocumentationPageRoomHeaderData = z352.object({
|
|
12784
|
+
title: z352.string(),
|
|
12852
12785
|
configuration: DTODocumentationItemConfigurationV2
|
|
12853
12786
|
});
|
|
12854
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
12855
|
-
title:
|
|
12787
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z352.object({
|
|
12788
|
+
title: z352.string().optional(),
|
|
12856
12789
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
12857
12790
|
});
|
|
12858
12791
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -12887,9 +12820,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
12887
12820
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
12888
12821
|
|
|
12889
12822
|
// src/yjs/docs-editor/model/page.ts
|
|
12890
|
-
import { z as
|
|
12891
|
-
var DocumentationPageEditorModel =
|
|
12892
|
-
blocks:
|
|
12823
|
+
import { z as z353 } from "zod";
|
|
12824
|
+
var DocumentationPageEditorModel = z353.object({
|
|
12825
|
+
blocks: z353.array(DocumentationPageContentItem)
|
|
12893
12826
|
});
|
|
12894
12827
|
|
|
12895
12828
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -16566,7 +16499,7 @@ var blocks = [
|
|
|
16566
16499
|
|
|
16567
16500
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
16568
16501
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
16569
|
-
import { z as
|
|
16502
|
+
import { z as z354 } from "zod";
|
|
16570
16503
|
function yDocToPage(yDoc, definitions) {
|
|
16571
16504
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
16572
16505
|
}
|
|
@@ -16642,7 +16575,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
16642
16575
|
if (!id) return null;
|
|
16643
16576
|
return {
|
|
16644
16577
|
id,
|
|
16645
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
16578
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z354.string()) ?? "",
|
|
16646
16579
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
16647
16580
|
};
|
|
16648
16581
|
}
|
|
@@ -16676,7 +16609,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
16676
16609
|
});
|
|
16677
16610
|
}
|
|
16678
16611
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
16679
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
16612
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z354.string());
|
|
16680
16613
|
if (!definitionId) {
|
|
16681
16614
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
16682
16615
|
return [];
|
|
@@ -16717,7 +16650,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
16717
16650
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16718
16651
|
if (!id) return null;
|
|
16719
16652
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16720
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
16653
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z354.string().optional()));
|
|
16721
16654
|
return {
|
|
16722
16655
|
id,
|
|
16723
16656
|
type: "Block",
|
|
@@ -16840,9 +16773,9 @@ function parseRichTextAttribute(mark) {
|
|
|
16840
16773
|
return null;
|
|
16841
16774
|
}
|
|
16842
16775
|
function parseProsemirrorLink(mark) {
|
|
16843
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
16776
|
+
const href = getProsemirrorAttribute(mark, "href", z354.string().optional());
|
|
16844
16777
|
if (!href) return null;
|
|
16845
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
16778
|
+
const target = getProsemirrorAttribute(mark, "target", z354.string().optional());
|
|
16846
16779
|
const openInNewTab = target === "_blank";
|
|
16847
16780
|
if (href.startsWith("@")) {
|
|
16848
16781
|
return {
|
|
@@ -16861,9 +16794,9 @@ function parseProsemirrorLink(mark) {
|
|
|
16861
16794
|
}
|
|
16862
16795
|
}
|
|
16863
16796
|
function parseProsemirrorCommentHighlight(mark) {
|
|
16864
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
16797
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z354.string().optional());
|
|
16865
16798
|
if (!highlightId) return null;
|
|
16866
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
16799
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z354.boolean().optional()) ?? false;
|
|
16867
16800
|
return {
|
|
16868
16801
|
type: "Comment",
|
|
16869
16802
|
commentHighlightId: highlightId,
|
|
@@ -16874,7 +16807,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16874
16807
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16875
16808
|
if (!id) return null;
|
|
16876
16809
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16877
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
16810
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z354.boolean().optional()) !== false;
|
|
16878
16811
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
16879
16812
|
if (!tableChild) {
|
|
16880
16813
|
return emptyTable(id, variantId, 0);
|
|
@@ -16920,9 +16853,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16920
16853
|
function parseAsTableCell(prosemirrorNode) {
|
|
16921
16854
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16922
16855
|
if (!id) return null;
|
|
16923
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
16856
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z354.string().optional());
|
|
16924
16857
|
let columnWidth;
|
|
16925
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
16858
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z354.array(z354.number()).nullish());
|
|
16926
16859
|
if (columnWidthArray) {
|
|
16927
16860
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
16928
16861
|
}
|
|
@@ -16958,7 +16891,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
16958
16891
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
16959
16892
|
};
|
|
16960
16893
|
case "image":
|
|
16961
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16894
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z354.string());
|
|
16962
16895
|
if (!items) return null;
|
|
16963
16896
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
16964
16897
|
if (!parsedItems.success) return null;
|
|
@@ -17072,7 +17005,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
17072
17005
|
);
|
|
17073
17006
|
}
|
|
17074
17007
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
17075
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17008
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z354.string());
|
|
17076
17009
|
if (!itemsString) return null;
|
|
17077
17010
|
const itemsJson = JSON.parse(itemsString);
|
|
17078
17011
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -17083,18 +17016,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
17083
17016
|
}
|
|
17084
17017
|
function parseAppearance(prosemirrorNode) {
|
|
17085
17018
|
let appearance = {};
|
|
17086
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
17019
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z354.string().optional());
|
|
17087
17020
|
if (rawAppearanceString) {
|
|
17088
17021
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
17089
17022
|
if (parsedAppearance.success) {
|
|
17090
17023
|
appearance = parsedAppearance.data;
|
|
17091
17024
|
}
|
|
17092
17025
|
}
|
|
17093
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
17026
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z354.number().optional());
|
|
17094
17027
|
if (columns) {
|
|
17095
17028
|
appearance.numberOfColumns = columns;
|
|
17096
17029
|
}
|
|
17097
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
17030
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z354.string().optional());
|
|
17098
17031
|
if (backgroundColor) {
|
|
17099
17032
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
17100
17033
|
if (parsedColor.success) {
|
|
@@ -17195,12 +17128,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
17195
17128
|
}
|
|
17196
17129
|
}
|
|
17197
17130
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
17198
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
17131
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z354.string());
|
|
17199
17132
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
17200
17133
|
return id;
|
|
17201
17134
|
}
|
|
17202
17135
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
17203
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
17136
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z354.string()));
|
|
17204
17137
|
}
|
|
17205
17138
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
17206
17139
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -18873,10 +18806,8 @@ export {
|
|
|
18873
18806
|
FilesEndpoint,
|
|
18874
18807
|
ForgeAgentsEndpoint,
|
|
18875
18808
|
ForgeArtifactsEndpoint,
|
|
18809
|
+
ForgeEndpoint,
|
|
18876
18810
|
ForgeFeatureMessagesEndpoint,
|
|
18877
|
-
ForgeFeaturesEndpoint,
|
|
18878
|
-
ForgeIterationMessagesEndpoint,
|
|
18879
|
-
ForgeParticipantsEndpoint,
|
|
18880
18811
|
ForgeProjectContentRepository,
|
|
18881
18812
|
ForgeProjectContextsEndpoint,
|
|
18882
18813
|
ForgeProjectFeaturesEndpoint,
|
|
@@ -18886,7 +18817,6 @@ export {
|
|
|
18886
18817
|
ForgeProjectMembersEndpoint,
|
|
18887
18818
|
ForgeProjectRoomBaseYDoc,
|
|
18888
18819
|
ForgeProjectsEndpoint,
|
|
18889
|
-
ForgesEndpoint,
|
|
18890
18820
|
FormattedCollections,
|
|
18891
18821
|
FrontendFeatureRoomYDoc,
|
|
18892
18822
|
FrontendVersionRoomYDoc,
|