@supernova-studio/client 1.31.5 → 1.32.0
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 +604 -908
- package/dist/index.d.ts +604 -908
- package/dist/index.js +182 -238
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +244 -300
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4443,7 +4443,10 @@ var Workspace = z134.object({
|
|
|
4443
4443
|
subscription: Subscription,
|
|
4444
4444
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4445
4445
|
sso: nullishToOptional(SsoProvider),
|
|
4446
|
-
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4446
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
|
|
4447
|
+
aiFeaturesEnabled: z134.boolean().default(false),
|
|
4448
|
+
aiAskFeaturesEnabled: z134.boolean().default(false),
|
|
4449
|
+
aiCustomInstruction: z134.string().optional()
|
|
4447
4450
|
});
|
|
4448
4451
|
var WorkspaceWithDesignSystems = z134.object({
|
|
4449
4452
|
workspace: Workspace,
|
|
@@ -4454,7 +4457,10 @@ var WorkspaceConfigurationUpdate = z135.object({
|
|
|
4454
4457
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4455
4458
|
sso: SsoProvider.optional(),
|
|
4456
4459
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4457
|
-
profile: WorkspaceProfileUpdate.optional()
|
|
4460
|
+
profile: WorkspaceProfileUpdate.optional(),
|
|
4461
|
+
aiFeaturesEnabled: z135.boolean().optional(),
|
|
4462
|
+
aiAskFeaturesEnabled: z135.boolean().optional(),
|
|
4463
|
+
aiCustomInstruction: z135.string().optional()
|
|
4458
4464
|
});
|
|
4459
4465
|
var WorkspaceContext = z136.object({
|
|
4460
4466
|
workspaceId: z136.string(),
|
|
@@ -7208,7 +7214,10 @@ var DTOWorkspace = z246.object({
|
|
|
7208
7214
|
id: z246.string(),
|
|
7209
7215
|
profile: DTOWorkspaceProfile,
|
|
7210
7216
|
subscription: Subscription,
|
|
7211
|
-
npmRegistry: DTONpmRegistryConfig.optional()
|
|
7217
|
+
npmRegistry: DTONpmRegistryConfig.optional(),
|
|
7218
|
+
aiFeaturesEnabled: z246.boolean().default(false),
|
|
7219
|
+
aiAskFeaturesEnabled: z246.boolean().default(false),
|
|
7220
|
+
aiCustomInstruction: z246.string().optional()
|
|
7212
7221
|
});
|
|
7213
7222
|
var DTOWorkspaceCreateInput = z246.object({
|
|
7214
7223
|
name: z246.string()
|
|
@@ -7634,7 +7643,10 @@ var WorkspaceConfigurationPayload = z262.object({
|
|
|
7634
7643
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
7635
7644
|
sso: SsoProvider.partial().optional(),
|
|
7636
7645
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
7637
|
-
profile: WorkspaceProfile.partial().optional()
|
|
7646
|
+
profile: WorkspaceProfile.partial().optional(),
|
|
7647
|
+
aiFeaturesEnabled: z262.boolean().optional(),
|
|
7648
|
+
aiAskFeaturesEnabled: z262.boolean().optional(),
|
|
7649
|
+
aiCustomInstruction: z262.string().optional()
|
|
7638
7650
|
});
|
|
7639
7651
|
|
|
7640
7652
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
@@ -9220,9 +9232,7 @@ var DTOFeatureMessageCreateInput = DTOFeatureMessage.pick({
|
|
|
9220
9232
|
isPrompt: true,
|
|
9221
9233
|
startsNewThread: true,
|
|
9222
9234
|
parentMessageId: true,
|
|
9223
|
-
|
|
9224
|
-
agentResponseTrackerId: true,
|
|
9225
|
-
createdAt: true
|
|
9235
|
+
attachments: true
|
|
9226
9236
|
});
|
|
9227
9237
|
var DTOFeatureMessageUpdateInput = DTOFeatureMessageCreateInput.omit({ id: true }).merge(DTOFeatureMessage.pick({ agentResponseTrackerId: true })).partial();
|
|
9228
9238
|
var DTOFeatureMessageReactionCreateInput = z312.object({
|
|
@@ -11125,6 +11135,49 @@ var ForgeArtifactsEndpoint = class {
|
|
|
11125
11135
|
}
|
|
11126
11136
|
};
|
|
11127
11137
|
|
|
11138
|
+
// src/api/endpoints/forge/feature-artifacts.ts
|
|
11139
|
+
var ForgeFeatureArtifactsEndpoint = class {
|
|
11140
|
+
constructor(requestExecutor) {
|
|
11141
|
+
this.requestExecutor = requestExecutor;
|
|
11142
|
+
}
|
|
11143
|
+
list(workspaceId, projectId, featureId) {
|
|
11144
|
+
return this.requestExecutor.json(
|
|
11145
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/artifacts`,
|
|
11146
|
+
DTOFeatureArtifactListResponse,
|
|
11147
|
+
{
|
|
11148
|
+
method: "GET"
|
|
11149
|
+
}
|
|
11150
|
+
);
|
|
11151
|
+
}
|
|
11152
|
+
};
|
|
11153
|
+
|
|
11154
|
+
// src/api/endpoints/forge/feature-iterations.ts
|
|
11155
|
+
import z342 from "zod";
|
|
11156
|
+
var ForgeFeatureIterationsEndpoint = class {
|
|
11157
|
+
constructor(requestExecutor) {
|
|
11158
|
+
this.requestExecutor = requestExecutor;
|
|
11159
|
+
}
|
|
11160
|
+
list(workspaceId, projectId, featureId) {
|
|
11161
|
+
return this.requestExecutor.json(
|
|
11162
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations`,
|
|
11163
|
+
DTOFeatureIterationListResponse,
|
|
11164
|
+
{
|
|
11165
|
+
method: "GET"
|
|
11166
|
+
}
|
|
11167
|
+
);
|
|
11168
|
+
}
|
|
11169
|
+
updateArtifacts(workspaceId, projectId, featureId, body) {
|
|
11170
|
+
return this.requestExecutor.json(
|
|
11171
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
|
|
11172
|
+
z342.any(),
|
|
11173
|
+
{
|
|
11174
|
+
body,
|
|
11175
|
+
method: "POST"
|
|
11176
|
+
}
|
|
11177
|
+
);
|
|
11178
|
+
}
|
|
11179
|
+
};
|
|
11180
|
+
|
|
11128
11181
|
// src/api/endpoints/forge/feature-messages.ts
|
|
11129
11182
|
var ForgeFeatureMessagesEndpoint = class {
|
|
11130
11183
|
constructor(requestExecutor) {
|
|
@@ -11174,9 +11227,15 @@ var ForgeFeatureMessagesEndpoint = class {
|
|
|
11174
11227
|
};
|
|
11175
11228
|
|
|
11176
11229
|
// src/api/endpoints/forge/features.ts
|
|
11177
|
-
var
|
|
11230
|
+
var ForgeProjectFeaturesEndpoint = class {
|
|
11178
11231
|
constructor(requestExecutor) {
|
|
11179
11232
|
this.requestExecutor = requestExecutor;
|
|
11233
|
+
__publicField(this, "messages");
|
|
11234
|
+
__publicField(this, "iterations");
|
|
11235
|
+
__publicField(this, "artifacts");
|
|
11236
|
+
this.messages = new ForgeFeatureMessagesEndpoint(requestExecutor);
|
|
11237
|
+
this.iterations = new ForgeFeatureIterationsEndpoint(requestExecutor);
|
|
11238
|
+
this.artifacts = new ForgeFeatureArtifactsEndpoint(requestExecutor);
|
|
11180
11239
|
}
|
|
11181
11240
|
list(workspaceId, projectId) {
|
|
11182
11241
|
return this.requestExecutor.json(
|
|
@@ -11194,52 +11253,16 @@ var ForgeFeaturesEndpoint = class {
|
|
|
11194
11253
|
{}
|
|
11195
11254
|
);
|
|
11196
11255
|
}
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
// src/api/endpoints/forge/projects.ts
|
|
11200
|
-
var ForgeProjectsEndpoint = class {
|
|
11201
|
-
constructor(requestExecutor) {
|
|
11202
|
-
this.requestExecutor = requestExecutor;
|
|
11203
|
-
}
|
|
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) {
|
|
11216
|
-
return this.requestExecutor.json(
|
|
11217
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11218
|
-
DTOForgeProjectGetResponse,
|
|
11219
|
-
{
|
|
11220
|
-
method: "GET"
|
|
11221
|
-
}
|
|
11222
|
-
);
|
|
11223
|
-
}
|
|
11224
|
-
update(workspaceId, projectId, body) {
|
|
11256
|
+
agentWorkFinalized(workspaceId, projectId, featureId, body) {
|
|
11225
11257
|
return this.requestExecutor.json(
|
|
11226
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11227
|
-
|
|
11258
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/agent-work-finalize`,
|
|
11259
|
+
DTOFeatureIterationResponse,
|
|
11228
11260
|
{
|
|
11229
|
-
method: "
|
|
11261
|
+
method: "POST",
|
|
11230
11262
|
body
|
|
11231
11263
|
}
|
|
11232
11264
|
);
|
|
11233
11265
|
}
|
|
11234
|
-
delete(workspaceId, projectId) {
|
|
11235
|
-
return this.requestExecutor.json(
|
|
11236
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11237
|
-
DTOForgeProjectRemoveResponse,
|
|
11238
|
-
{
|
|
11239
|
-
method: "DELETE"
|
|
11240
|
-
}
|
|
11241
|
-
);
|
|
11242
|
-
}
|
|
11243
11266
|
};
|
|
11244
11267
|
|
|
11245
11268
|
// src/api/endpoints/forge/project-contexts.ts
|
|
@@ -11287,6 +11310,69 @@ var ForgeProjectContextsEndpoint = class {
|
|
|
11287
11310
|
}
|
|
11288
11311
|
};
|
|
11289
11312
|
|
|
11313
|
+
// src/api/endpoints/forge/project-files.ts
|
|
11314
|
+
var ForgeProjectFilesEndpoint = class {
|
|
11315
|
+
constructor(requestExecutor) {
|
|
11316
|
+
this.requestExecutor = requestExecutor;
|
|
11317
|
+
}
|
|
11318
|
+
upload(workspaceId, projectId, body) {
|
|
11319
|
+
return this.requestExecutor.json(
|
|
11320
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/files/upload`,
|
|
11321
|
+
DTOForgeProjectFileUploadResponse,
|
|
11322
|
+
{
|
|
11323
|
+
method: "POST",
|
|
11324
|
+
body
|
|
11325
|
+
}
|
|
11326
|
+
);
|
|
11327
|
+
}
|
|
11328
|
+
finalize(workspaceId, projectId, body) {
|
|
11329
|
+
return this.requestExecutor.json(
|
|
11330
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/files/finalize`,
|
|
11331
|
+
DTOForgeProjectFileUploadFinalizeResponse,
|
|
11332
|
+
{
|
|
11333
|
+
method: "POST",
|
|
11334
|
+
body
|
|
11335
|
+
}
|
|
11336
|
+
);
|
|
11337
|
+
}
|
|
11338
|
+
list(workspaceId, projectId) {
|
|
11339
|
+
return this.requestExecutor.json(
|
|
11340
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}/files`,
|
|
11341
|
+
DTOForgeProjectFileListResponse
|
|
11342
|
+
);
|
|
11343
|
+
}
|
|
11344
|
+
};
|
|
11345
|
+
|
|
11346
|
+
// src/api/endpoints/forge/project-invitations.ts
|
|
11347
|
+
var ForgeProjectInvitationsEndpoint = class {
|
|
11348
|
+
constructor(requestExecutor) {
|
|
11349
|
+
this.requestExecutor = requestExecutor;
|
|
11350
|
+
}
|
|
11351
|
+
list(projectId) {
|
|
11352
|
+
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMembersListResponse, {
|
|
11353
|
+
method: "GET"
|
|
11354
|
+
});
|
|
11355
|
+
}
|
|
11356
|
+
create(projectId, body) {
|
|
11357
|
+
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMembersListResponse, {
|
|
11358
|
+
method: "POST",
|
|
11359
|
+
body
|
|
11360
|
+
});
|
|
11361
|
+
}
|
|
11362
|
+
update(projectId, email, body) {
|
|
11363
|
+
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectInvitationCreateResponse, {
|
|
11364
|
+
method: "PUT",
|
|
11365
|
+
body: { ...body, email }
|
|
11366
|
+
});
|
|
11367
|
+
}
|
|
11368
|
+
delete(projectId, email) {
|
|
11369
|
+
return this.requestExecutor.json(`/forge/projects/${projectId}/members`, DTOForgeProjectMemberRemoveResponse, {
|
|
11370
|
+
method: "DELETE",
|
|
11371
|
+
body: { email }
|
|
11372
|
+
});
|
|
11373
|
+
}
|
|
11374
|
+
};
|
|
11375
|
+
|
|
11290
11376
|
// src/api/endpoints/forge/project-members.ts
|
|
11291
11377
|
var ForgeProjectMembersEndpoint = class {
|
|
11292
11378
|
constructor(requestExecutor) {
|
|
@@ -11317,93 +11403,76 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
11317
11403
|
}
|
|
11318
11404
|
};
|
|
11319
11405
|
|
|
11320
|
-
// src/api/endpoints/forge/
|
|
11321
|
-
|
|
11406
|
+
// src/api/endpoints/forge/projects.ts
|
|
11407
|
+
import z343 from "zod";
|
|
11408
|
+
var ForgeProjectsEndpoint = class {
|
|
11322
11409
|
constructor(requestExecutor) {
|
|
11323
11410
|
this.requestExecutor = requestExecutor;
|
|
11324
11411
|
}
|
|
11325
|
-
list(workspaceId
|
|
11326
|
-
return this.requestExecutor.json(
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
{
|
|
11330
|
-
method: "GET"
|
|
11331
|
-
}
|
|
11332
|
-
);
|
|
11412
|
+
list(workspaceId) {
|
|
11413
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects`, DTOForgeProjectListResponse, {
|
|
11414
|
+
method: "GET"
|
|
11415
|
+
});
|
|
11333
11416
|
}
|
|
11334
|
-
create(workspaceId,
|
|
11417
|
+
create(workspaceId, body) {
|
|
11418
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects`, DTOForgeProjectCreateResponse, {
|
|
11419
|
+
method: "POST",
|
|
11420
|
+
body
|
|
11421
|
+
});
|
|
11422
|
+
}
|
|
11423
|
+
get(workspaceId, projectId) {
|
|
11335
11424
|
return this.requestExecutor.json(
|
|
11336
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}
|
|
11337
|
-
|
|
11425
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11426
|
+
DTOForgeProjectGetResponse,
|
|
11338
11427
|
{
|
|
11339
|
-
method: "
|
|
11340
|
-
body
|
|
11428
|
+
method: "GET"
|
|
11341
11429
|
}
|
|
11342
11430
|
);
|
|
11343
11431
|
}
|
|
11344
|
-
update(workspaceId, projectId,
|
|
11432
|
+
update(workspaceId, projectId, body) {
|
|
11345
11433
|
return this.requestExecutor.json(
|
|
11346
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}
|
|
11347
|
-
|
|
11434
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11435
|
+
DTOForgeProjectUpdateResponse,
|
|
11348
11436
|
{
|
|
11349
11437
|
method: "PUT",
|
|
11350
11438
|
body
|
|
11351
11439
|
}
|
|
11352
11440
|
);
|
|
11353
11441
|
}
|
|
11354
|
-
delete(workspaceId, projectId
|
|
11442
|
+
delete(workspaceId, projectId) {
|
|
11355
11443
|
return this.requestExecutor.json(
|
|
11356
|
-
`/workspaces/${workspaceId}/forge/projects/${projectId}
|
|
11357
|
-
|
|
11444
|
+
`/workspaces/${workspaceId}/forge/projects/${projectId}`,
|
|
11445
|
+
DTOForgeProjectRemoveResponse,
|
|
11358
11446
|
{
|
|
11359
11447
|
method: "DELETE"
|
|
11360
11448
|
}
|
|
11361
11449
|
);
|
|
11362
11450
|
}
|
|
11451
|
+
action(workspaceId, projectId, body) {
|
|
11452
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z343.any(), {
|
|
11453
|
+
body,
|
|
11454
|
+
method: "POST"
|
|
11455
|
+
});
|
|
11456
|
+
}
|
|
11363
11457
|
};
|
|
11364
11458
|
|
|
11365
|
-
// src/api/endpoints/forge/
|
|
11366
|
-
var
|
|
11459
|
+
// src/api/endpoints/forge/forge.ts
|
|
11460
|
+
var ForgeEndpoint = class {
|
|
11367
11461
|
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
|
-
);
|
|
11462
|
+
__publicField(this, "projects");
|
|
11463
|
+
__publicField(this, "projectContexts");
|
|
11464
|
+
__publicField(this, "artifacts");
|
|
11465
|
+
__publicField(this, "features");
|
|
11466
|
+
__publicField(this, "files");
|
|
11467
|
+
__publicField(this, "projectMembers");
|
|
11468
|
+
__publicField(this, "projectInvitations");
|
|
11469
|
+
this.projects = new ForgeProjectsEndpoint(requestExecutor);
|
|
11470
|
+
this.projectContexts = new ForgeProjectContextsEndpoint(requestExecutor);
|
|
11471
|
+
this.artifacts = new ForgeArtifactsEndpoint(requestExecutor);
|
|
11472
|
+
this.features = new ForgeProjectFeaturesEndpoint(requestExecutor);
|
|
11473
|
+
this.files = new ForgeProjectFilesEndpoint(requestExecutor);
|
|
11474
|
+
this.projectMembers = new ForgeProjectMembersEndpoint(requestExecutor);
|
|
11475
|
+
this.projectInvitations = new ForgeProjectInvitationsEndpoint(requestExecutor);
|
|
11407
11476
|
}
|
|
11408
11477
|
};
|
|
11409
11478
|
|
|
@@ -11462,132 +11531,8 @@ var ForgeProjectIterationsEndpoint = class {
|
|
|
11462
11531
|
}
|
|
11463
11532
|
};
|
|
11464
11533
|
|
|
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
11534
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
11590
|
-
import { z as
|
|
11535
|
+
import { z as z344 } from "zod";
|
|
11591
11536
|
var WorkspaceChatThreadsEndpoint = class {
|
|
11592
11537
|
constructor(requestExecutor) {
|
|
11593
11538
|
this.requestExecutor = requestExecutor;
|
|
@@ -11619,7 +11564,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
11619
11564
|
);
|
|
11620
11565
|
}
|
|
11621
11566
|
delete(workspaceId, threadId) {
|
|
11622
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
11567
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z344.any(), {
|
|
11623
11568
|
method: "DELETE"
|
|
11624
11569
|
});
|
|
11625
11570
|
}
|
|
@@ -11651,7 +11596,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11651
11596
|
);
|
|
11652
11597
|
}
|
|
11653
11598
|
score(workspaceId, threadId, body) {
|
|
11654
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
11599
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z344.any(), {
|
|
11655
11600
|
method: "POST",
|
|
11656
11601
|
body
|
|
11657
11602
|
});
|
|
@@ -11659,7 +11604,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
11659
11604
|
};
|
|
11660
11605
|
|
|
11661
11606
|
// src/api/endpoints/workspaces/integrations.ts
|
|
11662
|
-
import { z as
|
|
11607
|
+
import { z as z345 } from "zod";
|
|
11663
11608
|
var WorkspaceIntegrationsEndpoint = class {
|
|
11664
11609
|
constructor(requestExecutor) {
|
|
11665
11610
|
this.requestExecutor = requestExecutor;
|
|
@@ -11668,7 +11613,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
11668
11613
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
11669
11614
|
}
|
|
11670
11615
|
delete(wsId, iId) {
|
|
11671
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
11616
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z345.unknown(), { method: "DELETE" });
|
|
11672
11617
|
}
|
|
11673
11618
|
};
|
|
11674
11619
|
|
|
@@ -11700,7 +11645,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
11700
11645
|
};
|
|
11701
11646
|
|
|
11702
11647
|
// src/api/endpoints/workspaces/members.ts
|
|
11703
|
-
import { z as
|
|
11648
|
+
import { z as z346 } from "zod";
|
|
11704
11649
|
var WorkspaceMembersEndpoint = class {
|
|
11705
11650
|
constructor(requestExecutor) {
|
|
11706
11651
|
this.requestExecutor = requestExecutor;
|
|
@@ -11717,7 +11662,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
11717
11662
|
});
|
|
11718
11663
|
}
|
|
11719
11664
|
invite(workspaceId, body) {
|
|
11720
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
11665
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z346.any(), { method: "POST", body });
|
|
11721
11666
|
}
|
|
11722
11667
|
delete(workspaceId, userId) {
|
|
11723
11668
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -11746,7 +11691,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
11746
11691
|
};
|
|
11747
11692
|
|
|
11748
11693
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
11749
|
-
import { z as
|
|
11694
|
+
import { z as z347 } from "zod";
|
|
11750
11695
|
var WorkspacesEndpoint = class {
|
|
11751
11696
|
constructor(requestExecutor) {
|
|
11752
11697
|
this.requestExecutor = requestExecutor;
|
|
@@ -11778,10 +11723,10 @@ var WorkspacesEndpoint = class {
|
|
|
11778
11723
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
11779
11724
|
}
|
|
11780
11725
|
delete(workspaceId) {
|
|
11781
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
11726
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z347.any(), { method: "DELETE" });
|
|
11782
11727
|
}
|
|
11783
11728
|
subscription(workspaceId) {
|
|
11784
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
11729
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z347.any(), { method: "GET" });
|
|
11785
11730
|
}
|
|
11786
11731
|
getPortalSettings(workspaceId) {
|
|
11787
11732
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -11892,9 +11837,9 @@ ${bodyText}`,
|
|
|
11892
11837
|
|
|
11893
11838
|
// src/api/transport/request-executor.ts
|
|
11894
11839
|
import fetch from "node-fetch";
|
|
11895
|
-
import { z as
|
|
11896
|
-
var ResponseWrapper =
|
|
11897
|
-
result:
|
|
11840
|
+
import { z as z348 } from "zod";
|
|
11841
|
+
var ResponseWrapper = z348.object({
|
|
11842
|
+
result: z348.record(z348.any())
|
|
11898
11843
|
});
|
|
11899
11844
|
var RequestExecutor = class {
|
|
11900
11845
|
constructor(testServerConfig) {
|
|
@@ -11956,7 +11901,7 @@ var SupernovaApiClient = class {
|
|
|
11956
11901
|
__publicField(this, "designSystems");
|
|
11957
11902
|
__publicField(this, "codegen");
|
|
11958
11903
|
__publicField(this, "liveblocks");
|
|
11959
|
-
__publicField(this, "
|
|
11904
|
+
__publicField(this, "forge");
|
|
11960
11905
|
const requestExecutor = new RequestExecutor({
|
|
11961
11906
|
host: config.host,
|
|
11962
11907
|
accessToken: config.accessToken
|
|
@@ -11966,30 +11911,30 @@ var SupernovaApiClient = class {
|
|
|
11966
11911
|
this.designSystems = new DesignSystemsEndpoint(requestExecutor);
|
|
11967
11912
|
this.codegen = new CodegenEndpoint(requestExecutor);
|
|
11968
11913
|
this.liveblocks = new LiveblocksEndpoint(requestExecutor);
|
|
11969
|
-
this.
|
|
11914
|
+
this.forge = new ForgeEndpoint(requestExecutor);
|
|
11970
11915
|
}
|
|
11971
11916
|
};
|
|
11972
11917
|
|
|
11973
11918
|
// 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:
|
|
11919
|
+
import { z as z349 } from "zod";
|
|
11920
|
+
var DTOEventFigmaNodesRendered = z349.object({
|
|
11921
|
+
type: z349.literal("DesignSystem.FigmaNodesRendered"),
|
|
11922
|
+
designSystemId: z349.string(),
|
|
11923
|
+
versionId: z349.string(),
|
|
11924
|
+
figmaNodePersistentIds: z349.string().array()
|
|
11925
|
+
});
|
|
11926
|
+
var DTOEventDataSourcesImported = z349.object({
|
|
11927
|
+
type: z349.literal("DesignSystem.ImportJobFinished"),
|
|
11928
|
+
designSystemId: z349.string(),
|
|
11929
|
+
versionId: z349.string(),
|
|
11930
|
+
importJobId: z349.string(),
|
|
11986
11931
|
dataSourceType: DataSourceRemoteType,
|
|
11987
|
-
dataSourceIds:
|
|
11932
|
+
dataSourceIds: z349.string().array()
|
|
11988
11933
|
});
|
|
11989
11934
|
|
|
11990
11935
|
// src/events/event.ts
|
|
11991
|
-
import { z as
|
|
11992
|
-
var DTOEvent =
|
|
11936
|
+
import { z as z350 } from "zod";
|
|
11937
|
+
var DTOEvent = z350.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
11993
11938
|
|
|
11994
11939
|
// src/sync/docs-local-action-executor.ts
|
|
11995
11940
|
function applyActionsLocally(input) {
|
|
@@ -12285,7 +12230,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
12285
12230
|
import PQueue from "p-queue";
|
|
12286
12231
|
|
|
12287
12232
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12288
|
-
import { z as
|
|
12233
|
+
import { z as z351 } from "zod";
|
|
12289
12234
|
|
|
12290
12235
|
// src/yjs/version-room/base.ts
|
|
12291
12236
|
var VersionRoomBaseYDoc = class {
|
|
@@ -12835,24 +12780,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
12835
12780
|
};
|
|
12836
12781
|
|
|
12837
12782
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12838
|
-
var DocumentationHierarchySettings =
|
|
12839
|
-
routingVersion:
|
|
12840
|
-
isDraftFeatureAdopted:
|
|
12841
|
-
isApprovalFeatureEnabled:
|
|
12842
|
-
approvalRequiredForPublishing:
|
|
12783
|
+
var DocumentationHierarchySettings = z351.object({
|
|
12784
|
+
routingVersion: z351.string(),
|
|
12785
|
+
isDraftFeatureAdopted: z351.boolean(),
|
|
12786
|
+
isApprovalFeatureEnabled: z351.boolean(),
|
|
12787
|
+
approvalRequiredForPublishing: z351.boolean()
|
|
12843
12788
|
});
|
|
12844
12789
|
function yjsToDocumentationHierarchy(doc) {
|
|
12845
12790
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
12846
12791
|
}
|
|
12847
12792
|
|
|
12848
12793
|
// src/yjs/design-system-content/item-configuration.ts
|
|
12849
|
-
import { z as
|
|
12850
|
-
var DTODocumentationPageRoomHeaderData =
|
|
12851
|
-
title:
|
|
12794
|
+
import { z as z352 } from "zod";
|
|
12795
|
+
var DTODocumentationPageRoomHeaderData = z352.object({
|
|
12796
|
+
title: z352.string(),
|
|
12852
12797
|
configuration: DTODocumentationItemConfigurationV2
|
|
12853
12798
|
});
|
|
12854
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
12855
|
-
title:
|
|
12799
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z352.object({
|
|
12800
|
+
title: z352.string().optional(),
|
|
12856
12801
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
12857
12802
|
});
|
|
12858
12803
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -12887,9 +12832,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
12887
12832
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
12888
12833
|
|
|
12889
12834
|
// src/yjs/docs-editor/model/page.ts
|
|
12890
|
-
import { z as
|
|
12891
|
-
var DocumentationPageEditorModel =
|
|
12892
|
-
blocks:
|
|
12835
|
+
import { z as z353 } from "zod";
|
|
12836
|
+
var DocumentationPageEditorModel = z353.object({
|
|
12837
|
+
blocks: z353.array(DocumentationPageContentItem)
|
|
12893
12838
|
});
|
|
12894
12839
|
|
|
12895
12840
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -16566,7 +16511,7 @@ var blocks = [
|
|
|
16566
16511
|
|
|
16567
16512
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
16568
16513
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
16569
|
-
import { z as
|
|
16514
|
+
import { z as z354 } from "zod";
|
|
16570
16515
|
function yDocToPage(yDoc, definitions) {
|
|
16571
16516
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
16572
16517
|
}
|
|
@@ -16642,7 +16587,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
16642
16587
|
if (!id) return null;
|
|
16643
16588
|
return {
|
|
16644
16589
|
id,
|
|
16645
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
16590
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z354.string()) ?? "",
|
|
16646
16591
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
16647
16592
|
};
|
|
16648
16593
|
}
|
|
@@ -16676,7 +16621,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
16676
16621
|
});
|
|
16677
16622
|
}
|
|
16678
16623
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
16679
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
16624
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z354.string());
|
|
16680
16625
|
if (!definitionId) {
|
|
16681
16626
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
16682
16627
|
return [];
|
|
@@ -16717,7 +16662,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
16717
16662
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16718
16663
|
if (!id) return null;
|
|
16719
16664
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16720
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
16665
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z354.string().optional()));
|
|
16721
16666
|
return {
|
|
16722
16667
|
id,
|
|
16723
16668
|
type: "Block",
|
|
@@ -16840,9 +16785,9 @@ function parseRichTextAttribute(mark) {
|
|
|
16840
16785
|
return null;
|
|
16841
16786
|
}
|
|
16842
16787
|
function parseProsemirrorLink(mark) {
|
|
16843
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
16788
|
+
const href = getProsemirrorAttribute(mark, "href", z354.string().optional());
|
|
16844
16789
|
if (!href) return null;
|
|
16845
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
16790
|
+
const target = getProsemirrorAttribute(mark, "target", z354.string().optional());
|
|
16846
16791
|
const openInNewTab = target === "_blank";
|
|
16847
16792
|
if (href.startsWith("@")) {
|
|
16848
16793
|
return {
|
|
@@ -16861,9 +16806,9 @@ function parseProsemirrorLink(mark) {
|
|
|
16861
16806
|
}
|
|
16862
16807
|
}
|
|
16863
16808
|
function parseProsemirrorCommentHighlight(mark) {
|
|
16864
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
16809
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z354.string().optional());
|
|
16865
16810
|
if (!highlightId) return null;
|
|
16866
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
16811
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z354.boolean().optional()) ?? false;
|
|
16867
16812
|
return {
|
|
16868
16813
|
type: "Comment",
|
|
16869
16814
|
commentHighlightId: highlightId,
|
|
@@ -16874,7 +16819,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16874
16819
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16875
16820
|
if (!id) return null;
|
|
16876
16821
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
16877
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
16822
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z354.boolean().optional()) !== false;
|
|
16878
16823
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
16879
16824
|
if (!tableChild) {
|
|
16880
16825
|
return emptyTable(id, variantId, 0);
|
|
@@ -16920,9 +16865,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
16920
16865
|
function parseAsTableCell(prosemirrorNode) {
|
|
16921
16866
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
16922
16867
|
if (!id) return null;
|
|
16923
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
16868
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z354.string().optional());
|
|
16924
16869
|
let columnWidth;
|
|
16925
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
16870
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z354.array(z354.number()).nullish());
|
|
16926
16871
|
if (columnWidthArray) {
|
|
16927
16872
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
16928
16873
|
}
|
|
@@ -16958,7 +16903,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
16958
16903
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
16959
16904
|
};
|
|
16960
16905
|
case "image":
|
|
16961
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
16906
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z354.string());
|
|
16962
16907
|
if (!items) return null;
|
|
16963
16908
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
16964
16909
|
if (!parsedItems.success) return null;
|
|
@@ -17072,7 +17017,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
17072
17017
|
);
|
|
17073
17018
|
}
|
|
17074
17019
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
17075
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17020
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z354.string());
|
|
17076
17021
|
if (!itemsString) return null;
|
|
17077
17022
|
const itemsJson = JSON.parse(itemsString);
|
|
17078
17023
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -17083,18 +17028,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
17083
17028
|
}
|
|
17084
17029
|
function parseAppearance(prosemirrorNode) {
|
|
17085
17030
|
let appearance = {};
|
|
17086
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
17031
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z354.string().optional());
|
|
17087
17032
|
if (rawAppearanceString) {
|
|
17088
17033
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
17089
17034
|
if (parsedAppearance.success) {
|
|
17090
17035
|
appearance = parsedAppearance.data;
|
|
17091
17036
|
}
|
|
17092
17037
|
}
|
|
17093
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
17038
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z354.number().optional());
|
|
17094
17039
|
if (columns) {
|
|
17095
17040
|
appearance.numberOfColumns = columns;
|
|
17096
17041
|
}
|
|
17097
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
17042
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z354.string().optional());
|
|
17098
17043
|
if (backgroundColor) {
|
|
17099
17044
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
17100
17045
|
if (parsedColor.success) {
|
|
@@ -17195,12 +17140,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
17195
17140
|
}
|
|
17196
17141
|
}
|
|
17197
17142
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
17198
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
17143
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z354.string());
|
|
17199
17144
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
17200
17145
|
return id;
|
|
17201
17146
|
}
|
|
17202
17147
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
17203
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
17148
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z354.string()));
|
|
17204
17149
|
}
|
|
17205
17150
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
17206
17151
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -18873,10 +18818,10 @@ export {
|
|
|
18873
18818
|
FilesEndpoint,
|
|
18874
18819
|
ForgeAgentsEndpoint,
|
|
18875
18820
|
ForgeArtifactsEndpoint,
|
|
18821
|
+
ForgeEndpoint,
|
|
18822
|
+
ForgeFeatureArtifactsEndpoint,
|
|
18823
|
+
ForgeFeatureIterationsEndpoint,
|
|
18876
18824
|
ForgeFeatureMessagesEndpoint,
|
|
18877
|
-
ForgeFeaturesEndpoint,
|
|
18878
|
-
ForgeIterationMessagesEndpoint,
|
|
18879
|
-
ForgeParticipantsEndpoint,
|
|
18880
18825
|
ForgeProjectContentRepository,
|
|
18881
18826
|
ForgeProjectContextsEndpoint,
|
|
18882
18827
|
ForgeProjectFeaturesEndpoint,
|
|
@@ -18886,7 +18831,6 @@ export {
|
|
|
18886
18831
|
ForgeProjectMembersEndpoint,
|
|
18887
18832
|
ForgeProjectRoomBaseYDoc,
|
|
18888
18833
|
ForgeProjectsEndpoint,
|
|
18889
|
-
ForgesEndpoint,
|
|
18890
18834
|
FormattedCollections,
|
|
18891
18835
|
FrontendFeatureRoomYDoc,
|
|
18892
18836
|
FrontendVersionRoomYDoc,
|