@supernova-studio/client 1.48.12 → 1.48.13
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 +140143 -112552
- package/dist/index.d.ts +140143 -112552
- package/dist/index.js +248 -230
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +630 -612
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9884,8 +9884,8 @@ var DTOForgeMemoryEntryListQuery = z319.object({
|
|
|
9884
9884
|
projectId: z319.string()
|
|
9885
9885
|
});
|
|
9886
9886
|
|
|
9887
|
-
// src/api/dto/forge/project
|
|
9888
|
-
import
|
|
9887
|
+
// src/api/dto/forge/project.ts
|
|
9888
|
+
import { z as z326 } from "zod";
|
|
9889
9889
|
|
|
9890
9890
|
// src/api/dto/forge/project-artifact.ts
|
|
9891
9891
|
import { z as z322 } from "zod";
|
|
@@ -10123,136 +10123,24 @@ var DTOForgeProjectArtifactContentResponse = z322.object({
|
|
|
10123
10123
|
content: ForgeProjectArtifactContentData
|
|
10124
10124
|
});
|
|
10125
10125
|
|
|
10126
|
-
// src/api/dto/forge/project-feature.ts
|
|
10127
|
-
import z323 from "zod";
|
|
10128
|
-
var DTOForgeProjectFeature = ProjectFeature;
|
|
10129
|
-
var DTOForgeProjectFeatureListResponse = z323.object({
|
|
10130
|
-
features: DTOForgeProjectFeature.array()
|
|
10131
|
-
});
|
|
10132
|
-
var DTOForgeProjectFeatureGetResponse = z323.object({
|
|
10133
|
-
feature: DTOForgeProjectFeature
|
|
10134
|
-
});
|
|
10135
|
-
var DTOForgeProjectFeatureCreateInput = z323.object({
|
|
10136
|
-
id: Id,
|
|
10137
|
-
name: z323.string().optional(),
|
|
10138
|
-
description: z323.string(),
|
|
10139
|
-
sectionId: Id.optional(),
|
|
10140
|
-
afterFeatureId: Id.nullable().optional(),
|
|
10141
|
-
initialMessage: DTOThreadMessageCreateInput
|
|
10142
|
-
});
|
|
10143
|
-
var DTOForgeProjectFeatureUpdateInput = z323.object({
|
|
10144
|
-
id: Id,
|
|
10145
|
-
name: z323.string().optional(),
|
|
10146
|
-
description: z323.string().optional(),
|
|
10147
|
-
isArchived: z323.boolean().optional(),
|
|
10148
|
-
status: ProjectFeatureStatus.optional()
|
|
10149
|
-
});
|
|
10150
|
-
var DTOForgeProjectFeatureDeleteInput = z323.object({
|
|
10151
|
-
id: Id
|
|
10152
|
-
});
|
|
10153
|
-
var DTOForgeProjectFeatureGetByIdParam = z323.object({
|
|
10154
|
-
id: Id
|
|
10155
|
-
});
|
|
10156
|
-
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
10157
|
-
|
|
10158
|
-
// src/api/dto/forge/project-action.ts
|
|
10159
|
-
var DTOForgeProjectActionFeatureCreate = z324.object({
|
|
10160
|
-
type: z324.literal("FeatureCreate"),
|
|
10161
|
-
input: DTOForgeProjectFeatureCreateInput
|
|
10162
|
-
});
|
|
10163
|
-
var DTOForgeProjectActionFeatureUpdate = z324.object({
|
|
10164
|
-
type: z324.literal("FeatureUpdate"),
|
|
10165
|
-
input: DTOForgeProjectFeatureUpdateInput
|
|
10166
|
-
});
|
|
10167
|
-
var DTOForgeProjectActionFeatureMove = z324.object({
|
|
10168
|
-
type: z324.literal("FeatureMove"),
|
|
10169
|
-
input: DTOForgeProjectFeatureMoveInput
|
|
10170
|
-
});
|
|
10171
|
-
var DTOForgeProjectActionFeatureDelete = z324.object({
|
|
10172
|
-
type: z324.literal("FeatureDelete"),
|
|
10173
|
-
input: DTOForgeProjectFeatureDeleteInput
|
|
10174
|
-
});
|
|
10175
|
-
var DTOForgeProjectActionArtifactCreate = z324.object({
|
|
10176
|
-
type: z324.literal("ArtifactCreate"),
|
|
10177
|
-
input: DTOForgeProjectArtifactCreateInput
|
|
10178
|
-
});
|
|
10179
|
-
var DTOForgeProjectActionArtifactUpdate = z324.object({
|
|
10180
|
-
type: z324.literal("ArtifactUpdate"),
|
|
10181
|
-
input: DTOForgeProjectArtifactUpdateInput
|
|
10182
|
-
});
|
|
10183
|
-
var DTOForgeProjectActionArtifactDelete = z324.object({
|
|
10184
|
-
type: z324.literal("ArtifactDelete"),
|
|
10185
|
-
input: DTOForgeProjectArtifactDeleteInput
|
|
10186
|
-
});
|
|
10187
|
-
var DTOForgeProjectActionArtifactMove = z324.object({
|
|
10188
|
-
type: z324.literal("ArtifactMove"),
|
|
10189
|
-
input: DTOForgeProjectArtifactMoveInput
|
|
10190
|
-
});
|
|
10191
|
-
var DTOForgeProjectActionSectionCreate = z324.object({
|
|
10192
|
-
type: z324.literal("SectionCreate"),
|
|
10193
|
-
input: DTOForgeSectionCreateInput
|
|
10194
|
-
});
|
|
10195
|
-
var DTOForgeProjectActionSectionUpdate = z324.object({
|
|
10196
|
-
type: z324.literal("SectionUpdate"),
|
|
10197
|
-
input: DTOForgeSectionUpdateInput
|
|
10198
|
-
});
|
|
10199
|
-
var DTOForgeProjectActionSectionDelete = z324.object({
|
|
10200
|
-
type: z324.literal("SectionDelete"),
|
|
10201
|
-
input: DTOForgeSectionDeleteInput
|
|
10202
|
-
});
|
|
10203
|
-
var DTOForgeProjectActionSectionMove = z324.object({
|
|
10204
|
-
type: z324.literal("SectionMove"),
|
|
10205
|
-
input: DTOForgeSectionMoveInput
|
|
10206
|
-
});
|
|
10207
|
-
var DTOForgeProjectAction = z324.discriminatedUnion("type", [
|
|
10208
|
-
//features
|
|
10209
|
-
DTOForgeProjectActionFeatureCreate,
|
|
10210
|
-
DTOForgeProjectActionFeatureUpdate,
|
|
10211
|
-
DTOForgeProjectActionFeatureDelete,
|
|
10212
|
-
DTOForgeProjectActionFeatureMove,
|
|
10213
|
-
//artifacts
|
|
10214
|
-
DTOForgeProjectActionArtifactCreate,
|
|
10215
|
-
DTOForgeProjectActionArtifactUpdate,
|
|
10216
|
-
DTOForgeProjectActionArtifactDelete,
|
|
10217
|
-
DTOForgeProjectActionArtifactMove,
|
|
10218
|
-
//section
|
|
10219
|
-
DTOForgeProjectActionSectionCreate,
|
|
10220
|
-
DTOForgeProjectActionSectionUpdate,
|
|
10221
|
-
DTOForgeProjectActionSectionDelete,
|
|
10222
|
-
DTOForgeProjectActionSectionMove
|
|
10223
|
-
]).and(
|
|
10224
|
-
z324.object({
|
|
10225
|
-
tId: z324.string().optional()
|
|
10226
|
-
})
|
|
10227
|
-
);
|
|
10228
|
-
|
|
10229
|
-
// src/api/dto/forge/project-artifact-room.ts
|
|
10230
|
-
import { z as z325 } from "zod";
|
|
10231
|
-
var DTOForgeProjectArtifactRoom = z325.object({
|
|
10232
|
-
id: z325.string()
|
|
10233
|
-
});
|
|
10234
|
-
var DTOForgeProjectArtifactRoomResponse = z325.object({
|
|
10235
|
-
room: DTOForgeProjectArtifactRoom
|
|
10236
|
-
});
|
|
10237
|
-
|
|
10238
10126
|
// src/api/dto/forge/project-context-v2.ts
|
|
10239
|
-
import { z as
|
|
10240
|
-
var DTOForgeComponentSetTypeV2 =
|
|
10241
|
-
var DTOForgeComponentSet =
|
|
10127
|
+
import { z as z323 } from "zod";
|
|
10128
|
+
var DTOForgeComponentSetTypeV2 = z323.enum(["Shadcn"]);
|
|
10129
|
+
var DTOForgeComponentSet = z323.object({
|
|
10242
10130
|
type: DTOForgeComponentSetTypeV2
|
|
10243
10131
|
});
|
|
10244
|
-
var DTOForgeIconSetTypeV2 =
|
|
10245
|
-
var DTOForgeThemeKnownPreset =
|
|
10246
|
-
var DTOForgeIconSet =
|
|
10132
|
+
var DTOForgeIconSetTypeV2 = z323.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
10133
|
+
var DTOForgeThemeKnownPreset = z323.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
10134
|
+
var DTOForgeIconSet = z323.object({
|
|
10247
10135
|
type: DTOForgeIconSetTypeV2,
|
|
10248
|
-
variant:
|
|
10136
|
+
variant: z323.string().optional()
|
|
10249
10137
|
});
|
|
10250
|
-
var DTOForgeTokenThemeSet =
|
|
10251
|
-
id:
|
|
10252
|
-
name:
|
|
10253
|
-
tokenThemeIds:
|
|
10138
|
+
var DTOForgeTokenThemeSet = z323.object({
|
|
10139
|
+
id: z323.string(),
|
|
10140
|
+
name: z323.string(),
|
|
10141
|
+
tokenThemeIds: z323.array(z323.string())
|
|
10254
10142
|
});
|
|
10255
|
-
var DTOForgeProjectTheme =
|
|
10143
|
+
var DTOForgeProjectTheme = z323.object({
|
|
10256
10144
|
// Colors
|
|
10257
10145
|
background: ColorTokenData,
|
|
10258
10146
|
foreground: ColorTokenData,
|
|
@@ -10337,24 +10225,24 @@ var DTOForgeProjectTheme = z326.object({
|
|
|
10337
10225
|
shadowXl: ShadowTokenData,
|
|
10338
10226
|
shadow2xl: ShadowTokenData
|
|
10339
10227
|
});
|
|
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:
|
|
10228
|
+
var DTOForgeProjectContextV2 = z323.object({
|
|
10229
|
+
id: z323.string(),
|
|
10230
|
+
name: z323.string(),
|
|
10231
|
+
workspaceId: z323.string(),
|
|
10232
|
+
designSystemId: z323.string().optional(),
|
|
10233
|
+
brandId: z323.string().optional(),
|
|
10234
|
+
defaultTokenThemeSetId: z323.string().optional(),
|
|
10235
|
+
description: z323.string().optional(),
|
|
10236
|
+
productContext: z323.string().optional(),
|
|
10237
|
+
additionalContext: z323.string().optional(),
|
|
10238
|
+
isArchived: z323.boolean(),
|
|
10239
|
+
themePreset: z323.string().optional(),
|
|
10240
|
+
tokenThemeSets: z323.array(DTOForgeTokenThemeSet).optional(),
|
|
10353
10241
|
componentSet: DTOForgeComponentSet,
|
|
10354
10242
|
iconSet: DTOForgeIconSet,
|
|
10355
10243
|
theme: DTOForgeProjectTheme,
|
|
10356
|
-
createdAt:
|
|
10357
|
-
updatedAt:
|
|
10244
|
+
createdAt: z323.coerce.date(),
|
|
10245
|
+
updatedAt: z323.coerce.date(),
|
|
10358
10246
|
thumbnail: DTOFileReference.optional()
|
|
10359
10247
|
});
|
|
10360
10248
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
@@ -10364,7 +10252,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10364
10252
|
isArchived: true,
|
|
10365
10253
|
thumbnail: true
|
|
10366
10254
|
}).extend({
|
|
10367
|
-
thumbnailFileId:
|
|
10255
|
+
thumbnailFileId: z323.string().optional()
|
|
10368
10256
|
});
|
|
10369
10257
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
10370
10258
|
id: true,
|
|
@@ -10373,43 +10261,271 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10373
10261
|
updatedAt: true,
|
|
10374
10262
|
thumbnail: true
|
|
10375
10263
|
}).partial().extend({
|
|
10376
|
-
thumbnailFileId:
|
|
10264
|
+
thumbnailFileId: z323.string().optional()
|
|
10377
10265
|
});
|
|
10378
|
-
var DTOForgeProjectContextResponseV2 =
|
|
10379
|
-
var DTOForgeProjectContextListQueryV2 =
|
|
10380
|
-
workspaceId:
|
|
10266
|
+
var DTOForgeProjectContextResponseV2 = z323.object({ context: DTOForgeProjectContextV2 });
|
|
10267
|
+
var DTOForgeProjectContextListQueryV2 = z323.object({
|
|
10268
|
+
workspaceId: z323.string(),
|
|
10381
10269
|
isArchived: zodQueryBoolean()
|
|
10382
10270
|
});
|
|
10383
|
-
var DTOForgeProjectContextListResponseV2 =
|
|
10271
|
+
var DTOForgeProjectContextListResponseV2 = z323.object({ contexts: z323.array(DTOForgeProjectContextV2) });
|
|
10272
|
+
|
|
10273
|
+
// src/api/dto/forge/project-feature.ts
|
|
10274
|
+
import z324 from "zod";
|
|
10275
|
+
var DTOForgeProjectFeature = ProjectFeature;
|
|
10276
|
+
var DTOForgeProjectFeatureListResponse = z324.object({
|
|
10277
|
+
features: DTOForgeProjectFeature.array()
|
|
10278
|
+
});
|
|
10279
|
+
var DTOForgeProjectFeatureGetResponse = z324.object({
|
|
10280
|
+
feature: DTOForgeProjectFeature
|
|
10281
|
+
});
|
|
10282
|
+
var DTOForgeProjectFeatureCreateInput = z324.object({
|
|
10283
|
+
id: Id,
|
|
10284
|
+
name: z324.string().optional(),
|
|
10285
|
+
description: z324.string(),
|
|
10286
|
+
sectionId: Id.optional(),
|
|
10287
|
+
afterFeatureId: Id.nullable().optional(),
|
|
10288
|
+
initialMessage: DTOThreadMessageCreateInput
|
|
10289
|
+
});
|
|
10290
|
+
var DTOForgeProjectFeatureUpdateInput = z324.object({
|
|
10291
|
+
id: Id,
|
|
10292
|
+
name: z324.string().optional(),
|
|
10293
|
+
description: z324.string().optional(),
|
|
10294
|
+
isArchived: z324.boolean().optional(),
|
|
10295
|
+
status: ProjectFeatureStatus.optional()
|
|
10296
|
+
});
|
|
10297
|
+
var DTOForgeProjectFeatureDeleteInput = z324.object({
|
|
10298
|
+
id: Id
|
|
10299
|
+
});
|
|
10300
|
+
var DTOForgeProjectFeatureGetByIdParam = z324.object({
|
|
10301
|
+
id: Id
|
|
10302
|
+
});
|
|
10303
|
+
var DTOForgeProjectFeatureMoveInput = DTOForgeSectionItemMoveInput;
|
|
10304
|
+
|
|
10305
|
+
// src/api/dto/forge/project-invitation.ts
|
|
10306
|
+
import { z as z325 } from "zod";
|
|
10307
|
+
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10308
|
+
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10309
|
+
email: true,
|
|
10310
|
+
role: true
|
|
10311
|
+
});
|
|
10312
|
+
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
10313
|
+
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10314
|
+
email: true
|
|
10315
|
+
});
|
|
10316
|
+
var DTOForgeProjectInvitationsListResponse = z325.object({
|
|
10317
|
+
invitations: z325.array(DTOForgeProjectInvitation)
|
|
10318
|
+
});
|
|
10319
|
+
var DTOForgeProjectInvitationGetResponse = z325.object({
|
|
10320
|
+
invitation: DTOForgeProjectInvitation
|
|
10321
|
+
});
|
|
10322
|
+
var DTOForgeProjectInvitationCreateResponse = z325.object({
|
|
10323
|
+
invitation: DTOForgeProjectInvitation
|
|
10324
|
+
});
|
|
10325
|
+
var DTOForgeProjectInvitationUpdateResponse = z325.object({
|
|
10326
|
+
invitation: DTOForgeProjectInvitation.nullable()
|
|
10327
|
+
});
|
|
10328
|
+
var DTOForgeProjectInvitationRemoveResponse = z325.object({
|
|
10329
|
+
ok: z325.literal(true)
|
|
10330
|
+
});
|
|
10331
|
+
|
|
10332
|
+
// src/api/dto/forge/project.ts
|
|
10333
|
+
var DTOForgeProjectRole = ForgeProjectRole;
|
|
10334
|
+
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
10335
|
+
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
10336
|
+
var DTOForgeProjectDocumentPreview = z326.object({
|
|
10337
|
+
id: z326.string(),
|
|
10338
|
+
title: z326.string(),
|
|
10339
|
+
thumbnail: DTOFileReference.optional(),
|
|
10340
|
+
createdAt: z326.string(),
|
|
10341
|
+
updatedAt: z326.string()
|
|
10342
|
+
});
|
|
10343
|
+
var DTOForgeProjectFeaturePreview = z326.object({
|
|
10344
|
+
id: z326.string(),
|
|
10345
|
+
name: z326.string(),
|
|
10346
|
+
thumbnail: DTOFileReference.optional(),
|
|
10347
|
+
createdAt: z326.string(),
|
|
10348
|
+
updatedAt: z326.string()
|
|
10349
|
+
});
|
|
10350
|
+
var DTOForgeProject = z326.object({
|
|
10351
|
+
id: z326.string(),
|
|
10352
|
+
workspaceId: z326.string(),
|
|
10353
|
+
projectContextId: z326.string(),
|
|
10354
|
+
name: z326.string(),
|
|
10355
|
+
description: z326.string().optional(),
|
|
10356
|
+
instruction: z326.string().nullable(),
|
|
10357
|
+
tags: z326.array(z326.string()).default([]),
|
|
10358
|
+
accessMode: DTOForgeProjectAccessMode,
|
|
10359
|
+
defaultRole: DTOForgeProjectDefaultRole,
|
|
10360
|
+
isArchived: z326.boolean(),
|
|
10361
|
+
emoji: z326.string().optional(),
|
|
10362
|
+
tokenThemeSetId: z326.string().optional(),
|
|
10363
|
+
createdAt: z326.coerce.date(),
|
|
10364
|
+
createdByUserId: z326.string().optional(),
|
|
10365
|
+
lastUserActivityAt: z326.coerce.date().optional(),
|
|
10366
|
+
updatedAt: z326.coerce.date(),
|
|
10367
|
+
documents: DTOForgeProjectDocumentPreview.array(),
|
|
10368
|
+
features: DTOForgeProjectFeaturePreview.array(),
|
|
10369
|
+
/** @deprecated use `projectContextId` */
|
|
10370
|
+
fpContextId: z326.string(),
|
|
10371
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
10372
|
+
meta: z326.object({
|
|
10373
|
+
name: z326.string(),
|
|
10374
|
+
description: z326.string().optional()
|
|
10375
|
+
}),
|
|
10376
|
+
/** @deprecated use features.length */
|
|
10377
|
+
numberOfFeatures: z326.number().int().nonnegative(),
|
|
10378
|
+
/** @deprecated use documents.length */
|
|
10379
|
+
numberOfDocuments: z326.number().int().nonnegative().optional(),
|
|
10380
|
+
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10381
|
+
context: DTOForgeProjectContextV2.optional(),
|
|
10382
|
+
liveblocksRoomId: z326.string().optional()
|
|
10383
|
+
});
|
|
10384
|
+
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10385
|
+
name: true,
|
|
10386
|
+
description: true,
|
|
10387
|
+
instruction: true,
|
|
10388
|
+
tags: true,
|
|
10389
|
+
emoji: true,
|
|
10390
|
+
tokenThemeSetId: true
|
|
10391
|
+
}).extend({
|
|
10392
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
10393
|
+
meta: DTOForgeProject.shape.meta.optional(),
|
|
10394
|
+
/** @deprecated use `projectContextId` */
|
|
10395
|
+
fpContextId: z326.string().optional(),
|
|
10396
|
+
projectContextId: z326.string().optional(),
|
|
10397
|
+
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10398
|
+
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10399
|
+
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
10400
|
+
accessMode: DTOForgeProjectAccessMode.optional(),
|
|
10401
|
+
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
10402
|
+
});
|
|
10403
|
+
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10404
|
+
id: z326.string(),
|
|
10405
|
+
isArchived: z326.boolean().optional()
|
|
10406
|
+
});
|
|
10407
|
+
var DTOForgeProjectListResponse = z326.object({
|
|
10408
|
+
projects: z326.array(
|
|
10409
|
+
DTOForgeProject.extend({
|
|
10410
|
+
effectiveRole: DTOForgeProjectRole
|
|
10411
|
+
})
|
|
10412
|
+
)
|
|
10413
|
+
});
|
|
10414
|
+
var DTOForgeProjectResponse = z326.object({
|
|
10415
|
+
project: DTOForgeProject.extend({
|
|
10416
|
+
effectiveRole: DTOForgeProjectRole
|
|
10417
|
+
})
|
|
10418
|
+
});
|
|
10419
|
+
|
|
10420
|
+
// src/api/dto/forge/project-action.ts
|
|
10421
|
+
import z327 from "zod";
|
|
10422
|
+
var DTOForgeProjectActionFeatureCreate = z327.object({
|
|
10423
|
+
type: z327.literal("FeatureCreate"),
|
|
10424
|
+
input: DTOForgeProjectFeatureCreateInput
|
|
10425
|
+
});
|
|
10426
|
+
var DTOForgeProjectActionFeatureUpdate = z327.object({
|
|
10427
|
+
type: z327.literal("FeatureUpdate"),
|
|
10428
|
+
input: DTOForgeProjectFeatureUpdateInput
|
|
10429
|
+
});
|
|
10430
|
+
var DTOForgeProjectActionFeatureMove = z327.object({
|
|
10431
|
+
type: z327.literal("FeatureMove"),
|
|
10432
|
+
input: DTOForgeProjectFeatureMoveInput
|
|
10433
|
+
});
|
|
10434
|
+
var DTOForgeProjectActionFeatureDelete = z327.object({
|
|
10435
|
+
type: z327.literal("FeatureDelete"),
|
|
10436
|
+
input: DTOForgeProjectFeatureDeleteInput
|
|
10437
|
+
});
|
|
10438
|
+
var DTOForgeProjectActionArtifactCreate = z327.object({
|
|
10439
|
+
type: z327.literal("ArtifactCreate"),
|
|
10440
|
+
input: DTOForgeProjectArtifactCreateInput
|
|
10441
|
+
});
|
|
10442
|
+
var DTOForgeProjectActionArtifactUpdate = z327.object({
|
|
10443
|
+
type: z327.literal("ArtifactUpdate"),
|
|
10444
|
+
input: DTOForgeProjectArtifactUpdateInput
|
|
10445
|
+
});
|
|
10446
|
+
var DTOForgeProjectActionArtifactDelete = z327.object({
|
|
10447
|
+
type: z327.literal("ArtifactDelete"),
|
|
10448
|
+
input: DTOForgeProjectArtifactDeleteInput
|
|
10449
|
+
});
|
|
10450
|
+
var DTOForgeProjectActionArtifactMove = z327.object({
|
|
10451
|
+
type: z327.literal("ArtifactMove"),
|
|
10452
|
+
input: DTOForgeProjectArtifactMoveInput
|
|
10453
|
+
});
|
|
10454
|
+
var DTOForgeProjectActionSectionCreate = z327.object({
|
|
10455
|
+
type: z327.literal("SectionCreate"),
|
|
10456
|
+
input: DTOForgeSectionCreateInput
|
|
10457
|
+
});
|
|
10458
|
+
var DTOForgeProjectActionSectionUpdate = z327.object({
|
|
10459
|
+
type: z327.literal("SectionUpdate"),
|
|
10460
|
+
input: DTOForgeSectionUpdateInput
|
|
10461
|
+
});
|
|
10462
|
+
var DTOForgeProjectActionSectionDelete = z327.object({
|
|
10463
|
+
type: z327.literal("SectionDelete"),
|
|
10464
|
+
input: DTOForgeSectionDeleteInput
|
|
10465
|
+
});
|
|
10466
|
+
var DTOForgeProjectActionSectionMove = z327.object({
|
|
10467
|
+
type: z327.literal("SectionMove"),
|
|
10468
|
+
input: DTOForgeSectionMoveInput
|
|
10469
|
+
});
|
|
10470
|
+
var DTOForgeProjectAction = z327.discriminatedUnion("type", [
|
|
10471
|
+
//features
|
|
10472
|
+
DTOForgeProjectActionFeatureCreate,
|
|
10473
|
+
DTOForgeProjectActionFeatureUpdate,
|
|
10474
|
+
DTOForgeProjectActionFeatureDelete,
|
|
10475
|
+
DTOForgeProjectActionFeatureMove,
|
|
10476
|
+
//artifacts
|
|
10477
|
+
DTOForgeProjectActionArtifactCreate,
|
|
10478
|
+
DTOForgeProjectActionArtifactUpdate,
|
|
10479
|
+
DTOForgeProjectActionArtifactDelete,
|
|
10480
|
+
DTOForgeProjectActionArtifactMove,
|
|
10481
|
+
//section
|
|
10482
|
+
DTOForgeProjectActionSectionCreate,
|
|
10483
|
+
DTOForgeProjectActionSectionUpdate,
|
|
10484
|
+
DTOForgeProjectActionSectionDelete,
|
|
10485
|
+
DTOForgeProjectActionSectionMove
|
|
10486
|
+
]).and(
|
|
10487
|
+
z327.object({
|
|
10488
|
+
tId: z327.string().optional()
|
|
10489
|
+
})
|
|
10490
|
+
);
|
|
10491
|
+
|
|
10492
|
+
// src/api/dto/forge/project-artifact-room.ts
|
|
10493
|
+
import { z as z328 } from "zod";
|
|
10494
|
+
var DTOForgeProjectArtifactRoom = z328.object({
|
|
10495
|
+
id: z328.string()
|
|
10496
|
+
});
|
|
10497
|
+
var DTOForgeProjectArtifactRoomResponse = z328.object({
|
|
10498
|
+
room: DTOForgeProjectArtifactRoom
|
|
10499
|
+
});
|
|
10384
10500
|
|
|
10385
10501
|
// src/api/dto/forge/project-context.ts
|
|
10386
|
-
import { z as
|
|
10387
|
-
var DTOForgeProjectContext =
|
|
10388
|
-
definition:
|
|
10389
|
-
dependencies:
|
|
10390
|
-
|
|
10391
|
-
packageName:
|
|
10392
|
-
type:
|
|
10393
|
-
version:
|
|
10502
|
+
import { z as z329 } from "zod";
|
|
10503
|
+
var DTOForgeProjectContext = z329.object({
|
|
10504
|
+
definition: z329.string(),
|
|
10505
|
+
dependencies: z329.array(
|
|
10506
|
+
z329.object({
|
|
10507
|
+
packageName: z329.string(),
|
|
10508
|
+
type: z329.literal("npm"),
|
|
10509
|
+
version: z329.string().default("latest")
|
|
10394
10510
|
})
|
|
10395
10511
|
),
|
|
10396
|
-
designSystemId:
|
|
10397
|
-
id:
|
|
10398
|
-
meta:
|
|
10399
|
-
name:
|
|
10400
|
-
description:
|
|
10512
|
+
designSystemId: z329.string(),
|
|
10513
|
+
id: z329.string(),
|
|
10514
|
+
meta: z329.object({
|
|
10515
|
+
name: z329.string(),
|
|
10516
|
+
description: z329.string().optional()
|
|
10401
10517
|
}),
|
|
10402
|
-
name:
|
|
10518
|
+
name: z329.string(),
|
|
10403
10519
|
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10404
|
-
platform:
|
|
10405
|
-
styling:
|
|
10406
|
-
tailwindConfig:
|
|
10407
|
-
content:
|
|
10408
|
-
version:
|
|
10520
|
+
platform: z329.enum(["React", "Vue", "Angular"]),
|
|
10521
|
+
styling: z329.enum(["CSS", "Tailwind"]),
|
|
10522
|
+
tailwindConfig: z329.object({
|
|
10523
|
+
content: z329.string(),
|
|
10524
|
+
version: z329.string()
|
|
10409
10525
|
}).optional(),
|
|
10410
|
-
createdAt:
|
|
10411
|
-
updatedAt:
|
|
10412
|
-
workspaceId:
|
|
10526
|
+
createdAt: z329.coerce.date(),
|
|
10527
|
+
updatedAt: z329.coerce.date(),
|
|
10528
|
+
workspaceId: z329.string()
|
|
10413
10529
|
});
|
|
10414
10530
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10415
10531
|
definition: true,
|
|
@@ -10421,13 +10537,28 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
10421
10537
|
tailwindConfig: true,
|
|
10422
10538
|
styling: true
|
|
10423
10539
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10424
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id:
|
|
10425
|
-
var DTOForgeProjectContextGetResponse =
|
|
10426
|
-
var DTOForgeProjectContextListResponse =
|
|
10427
|
-
var DTOForgeProjectContextCreateResponse =
|
|
10428
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
10429
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
10430
|
-
ok:
|
|
10540
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z329.string() });
|
|
10541
|
+
var DTOForgeProjectContextGetResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10542
|
+
var DTOForgeProjectContextListResponse = z329.object({ contexts: z329.array(DTOForgeProjectContext) });
|
|
10543
|
+
var DTOForgeProjectContextCreateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10544
|
+
var DTOForgeProjectContextUpdateResponse = z329.object({ context: DTOForgeProjectContext });
|
|
10545
|
+
var DTOForgeProjectContextRemoveResponse = z329.object({
|
|
10546
|
+
ok: z329.literal(true)
|
|
10547
|
+
});
|
|
10548
|
+
|
|
10549
|
+
// src/api/dto/forge/project-context-override.ts
|
|
10550
|
+
import z330 from "zod";
|
|
10551
|
+
var DTOProjectContextOverride = z330.object({
|
|
10552
|
+
projectId: z330.string(),
|
|
10553
|
+
theme: DTOForgeProjectTheme.partial()
|
|
10554
|
+
});
|
|
10555
|
+
var DTOProjectContextOverrideInput = z330.object({
|
|
10556
|
+
updateSharedContext: z330.boolean().optional(),
|
|
10557
|
+
theme: DTOForgeProjectTheme.partial()
|
|
10558
|
+
});
|
|
10559
|
+
var DTOProjectContextOverrideResponse = z330.object({
|
|
10560
|
+
override: DTOProjectContextOverride,
|
|
10561
|
+
resolvedContext: DTOForgeProjectContext
|
|
10431
10562
|
});
|
|
10432
10563
|
|
|
10433
10564
|
// src/api/dto/forge/project-figma-node.ts
|
|
@@ -10435,69 +10566,42 @@ var DTOForgeProjectFigmaNode = ForgeProjectFigmaNode;
|
|
|
10435
10566
|
var DTOForgeProjectFigmaNodeRenderInput = ForgeProjectFigmaNodeRenderInput;
|
|
10436
10567
|
|
|
10437
10568
|
// 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:
|
|
10569
|
+
import { z as z331 } from "zod";
|
|
10570
|
+
var DTOForgeProjectFile = z331.object({
|
|
10571
|
+
id: z331.string(),
|
|
10572
|
+
name: z331.string(),
|
|
10573
|
+
checksum: z331.string(),
|
|
10574
|
+
pendingUpload: z331.boolean().optional(),
|
|
10575
|
+
url: z331.string(),
|
|
10576
|
+
size: z331.number()
|
|
10577
|
+
});
|
|
10578
|
+
var DTOForgeProjectFileListResponse = z331.object({
|
|
10579
|
+
files: z331.array(DTOForgeProjectFile)
|
|
10580
|
+
});
|
|
10581
|
+
var DTOForgeProjectFileUploadPayloadItem = z331.object({
|
|
10582
|
+
size: z331.number(),
|
|
10583
|
+
name: z331.string(),
|
|
10584
|
+
checksum: z331.string()
|
|
10585
|
+
});
|
|
10586
|
+
var DTOForgeProjectFileUploadPayload = z331.object({
|
|
10587
|
+
files: z331.array(DTOForgeProjectFileUploadPayloadItem)
|
|
10588
|
+
});
|
|
10589
|
+
var DTOForgeProjectFileUploadResponse = z331.object({
|
|
10590
|
+
files: z331.array(DTOForgeProjectFile),
|
|
10591
|
+
uploadUrls: z331.array(
|
|
10592
|
+
z331.object({
|
|
10593
|
+
fileId: z331.string(),
|
|
10594
|
+
uploadUrl: z331.string()
|
|
10464
10595
|
})
|
|
10465
10596
|
)
|
|
10466
10597
|
});
|
|
10467
|
-
var DTOForgeProjectFileUploadFinalizePayload =
|
|
10468
|
-
fileIds:
|
|
10469
|
-
});
|
|
10470
|
-
var DTOForgeProjectFileUploadFinalizeResponse = z328.object({ ok: z328.literal(true) });
|
|
10471
|
-
|
|
10472
|
-
// src/api/dto/forge/project-invitation.ts
|
|
10473
|
-
import { z as z329 } from "zod";
|
|
10474
|
-
var DTOForgeProjectInvitation = ForgeProjectInvitation;
|
|
10475
|
-
var DTOCreateForgeProjectInvitation = DTOForgeProjectInvitation.pick({
|
|
10476
|
-
email: true,
|
|
10477
|
-
role: true
|
|
10478
|
-
});
|
|
10479
|
-
var DTOUpdateForgeProjectInvitation = DTOCreateForgeProjectInvitation;
|
|
10480
|
-
var DTORemoveForgeProjectInvitation = DTOCreateForgeProjectInvitation.pick({
|
|
10481
|
-
email: true
|
|
10482
|
-
});
|
|
10483
|
-
var DTOForgeProjectInvitationsListResponse = z329.object({
|
|
10484
|
-
invitations: z329.array(DTOForgeProjectInvitation)
|
|
10485
|
-
});
|
|
10486
|
-
var DTOForgeProjectInvitationGetResponse = z329.object({
|
|
10487
|
-
invitation: DTOForgeProjectInvitation
|
|
10488
|
-
});
|
|
10489
|
-
var DTOForgeProjectInvitationCreateResponse = z329.object({
|
|
10490
|
-
invitation: DTOForgeProjectInvitation
|
|
10491
|
-
});
|
|
10492
|
-
var DTOForgeProjectInvitationUpdateResponse = z329.object({
|
|
10493
|
-
invitation: DTOForgeProjectInvitation.nullable()
|
|
10494
|
-
});
|
|
10495
|
-
var DTOForgeProjectInvitationRemoveResponse = z329.object({
|
|
10496
|
-
ok: z329.literal(true)
|
|
10598
|
+
var DTOForgeProjectFileUploadFinalizePayload = z331.object({
|
|
10599
|
+
fileIds: z331.array(z331.string())
|
|
10497
10600
|
});
|
|
10601
|
+
var DTOForgeProjectFileUploadFinalizeResponse = z331.object({ ok: z331.literal(true) });
|
|
10498
10602
|
|
|
10499
10603
|
// src/api/dto/forge/project-iteration-old.ts
|
|
10500
|
-
import { z as
|
|
10604
|
+
import { z as z332 } from "zod";
|
|
10501
10605
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
10502
10606
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
10503
10607
|
artifacts: true,
|
|
@@ -10508,7 +10612,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
10508
10612
|
messages: DTOForgeIterationMessage.array(),
|
|
10509
10613
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
10510
10614
|
});
|
|
10511
|
-
var DTOGetForgeProjectIterationResponse =
|
|
10615
|
+
var DTOGetForgeProjectIterationResponse = z332.object({
|
|
10512
10616
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10513
10617
|
});
|
|
10514
10618
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -10518,25 +10622,25 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
10518
10622
|
mergeMeta: true,
|
|
10519
10623
|
createdAt: true
|
|
10520
10624
|
});
|
|
10521
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
10522
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
10625
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z332.string() });
|
|
10626
|
+
var DTOCreateForgeProjectIterationResponse = z332.object({
|
|
10523
10627
|
iteration: DTOForgeProjectIteration
|
|
10524
10628
|
});
|
|
10525
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
10629
|
+
var DTOUpdateForgeProjectIterationResponse = z332.object({
|
|
10526
10630
|
iteration: DTOForgeProjectIteration.nullable()
|
|
10527
10631
|
});
|
|
10528
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
10529
|
-
ok:
|
|
10632
|
+
var DTODeleteForgeProjectIterationResponse = z332.object({
|
|
10633
|
+
ok: z332.literal(true)
|
|
10530
10634
|
});
|
|
10531
|
-
var DTOForgeProjectIterationListResponse =
|
|
10635
|
+
var DTOForgeProjectIterationListResponse = z332.object({ iterations: z332.array(DTOForgeProjectIteration) });
|
|
10532
10636
|
|
|
10533
10637
|
// src/api/dto/forge/project-member.ts
|
|
10534
|
-
import { z as
|
|
10638
|
+
import { z as z333 } from "zod";
|
|
10535
10639
|
var DTOForgeProjectMemberRole = ForgeProjectRole;
|
|
10536
10640
|
var DTOForgeProjectMember = ForgeProjectMembership.extend({
|
|
10537
10641
|
user: DTOUser,
|
|
10538
10642
|
effectiveRole: DTOForgeProjectMemberRole,
|
|
10539
|
-
isDeactivated:
|
|
10643
|
+
isDeactivated: z333.boolean()
|
|
10540
10644
|
});
|
|
10541
10645
|
var DTOCreateForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10542
10646
|
userId: true,
|
|
@@ -10546,298 +10650,209 @@ var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
|
10546
10650
|
var DTORemoveForgeProjectMember = DTOForgeProjectMember.pick({
|
|
10547
10651
|
userId: true
|
|
10548
10652
|
});
|
|
10549
|
-
var DTOForgeProjectMembersListResponse =
|
|
10550
|
-
members:
|
|
10551
|
-
invitations:
|
|
10653
|
+
var DTOForgeProjectMembersListResponse = z333.object({
|
|
10654
|
+
members: z333.array(DTOForgeProjectMember),
|
|
10655
|
+
invitations: z333.array(DTOForgeProjectInvitation)
|
|
10552
10656
|
});
|
|
10553
|
-
var DTOForgeProjectMemberGetResponse =
|
|
10657
|
+
var DTOForgeProjectMemberGetResponse = z333.object({
|
|
10554
10658
|
member: DTOForgeProjectMember
|
|
10555
10659
|
});
|
|
10556
|
-
var DTOForgeProjectMemberCreateResponse =
|
|
10660
|
+
var DTOForgeProjectMemberCreateResponse = z333.object({
|
|
10557
10661
|
member: DTOForgeProjectMember
|
|
10558
10662
|
});
|
|
10559
|
-
var DTOForgeProjectMemberUpdateResponse =
|
|
10663
|
+
var DTOForgeProjectMemberUpdateResponse = z333.object({
|
|
10560
10664
|
member: DTOForgeProjectMember.nullable()
|
|
10561
10665
|
});
|
|
10562
|
-
var DTOForgeProjectMemberRemoveResponse =
|
|
10563
|
-
ok:
|
|
10666
|
+
var DTOForgeProjectMemberRemoveResponse = z333.object({
|
|
10667
|
+
ok: z333.literal(true)
|
|
10564
10668
|
});
|
|
10565
|
-
var DTOAddMembersToForgeProject =
|
|
10669
|
+
var DTOAddMembersToForgeProject = z333.object({
|
|
10566
10670
|
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1)
|
|
10567
10671
|
});
|
|
10568
10672
|
|
|
10569
10673
|
// src/api/dto/forge/project-room.ts
|
|
10570
|
-
import { z as
|
|
10571
|
-
var DTOForgeProjectRoom =
|
|
10572
|
-
id:
|
|
10674
|
+
import { z as z334 } from "zod";
|
|
10675
|
+
var DTOForgeProjectRoom = z334.object({
|
|
10676
|
+
id: z334.string()
|
|
10573
10677
|
});
|
|
10574
|
-
var DTOForgeProjectRoomResponse =
|
|
10678
|
+
var DTOForgeProjectRoomResponse = z334.object({
|
|
10575
10679
|
room: DTOForgeProjectRoom
|
|
10576
10680
|
});
|
|
10577
10681
|
|
|
10578
|
-
// src/api/dto/forge/project.ts
|
|
10579
|
-
import { z as z333 } from "zod";
|
|
10580
|
-
var DTOForgeProjectRole = ForgeProjectRole;
|
|
10581
|
-
var DTOForgeProjectAccessMode = ForgeProjectAccessMode;
|
|
10582
|
-
var DTOForgeProjectDefaultRole = ForgeDefaultProjectRole;
|
|
10583
|
-
var DTOForgeProjectDocumentPreview = z333.object({
|
|
10584
|
-
id: z333.string(),
|
|
10585
|
-
title: z333.string(),
|
|
10586
|
-
thumbnail: DTOFileReference.optional(),
|
|
10587
|
-
createdAt: z333.string(),
|
|
10588
|
-
updatedAt: z333.string()
|
|
10589
|
-
});
|
|
10590
|
-
var DTOForgeProjectFeaturePreview = z333.object({
|
|
10591
|
-
id: z333.string(),
|
|
10592
|
-
name: z333.string(),
|
|
10593
|
-
thumbnail: DTOFileReference.optional(),
|
|
10594
|
-
createdAt: z333.string(),
|
|
10595
|
-
updatedAt: z333.string()
|
|
10596
|
-
});
|
|
10597
|
-
var DTOForgeProject = z333.object({
|
|
10598
|
-
id: z333.string(),
|
|
10599
|
-
workspaceId: z333.string(),
|
|
10600
|
-
projectContextId: z333.string(),
|
|
10601
|
-
name: z333.string(),
|
|
10602
|
-
description: z333.string().optional(),
|
|
10603
|
-
instruction: z333.string().nullable(),
|
|
10604
|
-
tags: z333.array(z333.string()).default([]),
|
|
10605
|
-
accessMode: DTOForgeProjectAccessMode,
|
|
10606
|
-
defaultRole: DTOForgeProjectDefaultRole,
|
|
10607
|
-
isArchived: z333.boolean(),
|
|
10608
|
-
emoji: z333.string().optional(),
|
|
10609
|
-
tokenThemeSetId: z333.string().optional(),
|
|
10610
|
-
createdAt: z333.coerce.date(),
|
|
10611
|
-
createdByUserId: z333.string().optional(),
|
|
10612
|
-
lastUserActivityAt: z333.coerce.date().optional(),
|
|
10613
|
-
updatedAt: z333.coerce.date(),
|
|
10614
|
-
documents: DTOForgeProjectDocumentPreview.array(),
|
|
10615
|
-
features: DTOForgeProjectFeaturePreview.array(),
|
|
10616
|
-
/** @deprecated use `projectContextId` */
|
|
10617
|
-
fpContextId: z333.string(),
|
|
10618
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10619
|
-
meta: z333.object({
|
|
10620
|
-
name: z333.string(),
|
|
10621
|
-
description: z333.string().optional()
|
|
10622
|
-
}),
|
|
10623
|
-
/** @deprecated use features.length */
|
|
10624
|
-
numberOfFeatures: z333.number().int().nonnegative(),
|
|
10625
|
-
/** @deprecated use documents.length */
|
|
10626
|
-
numberOfDocuments: z333.number().int().nonnegative().optional(),
|
|
10627
|
-
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
10628
|
-
context: DTOForgeProjectContextV2.optional(),
|
|
10629
|
-
liveblocksRoomId: z333.string().optional()
|
|
10630
|
-
});
|
|
10631
|
-
var DTOForgeProjectCreate = DTOForgeProject.pick({
|
|
10632
|
-
name: true,
|
|
10633
|
-
description: true,
|
|
10634
|
-
instruction: true,
|
|
10635
|
-
tags: true,
|
|
10636
|
-
emoji: true,
|
|
10637
|
-
tokenThemeSetId: true
|
|
10638
|
-
}).extend({
|
|
10639
|
-
/** @deprecated use `name` and `description` properties on project */
|
|
10640
|
-
meta: DTOForgeProject.shape.meta.optional(),
|
|
10641
|
-
/** @deprecated use `projectContextId` */
|
|
10642
|
-
fpContextId: z333.string().optional(),
|
|
10643
|
-
projectContextId: z333.string().optional(),
|
|
10644
|
-
membersToInvite: DTOCreateForgeProjectInvitation.array().min(1).optional(),
|
|
10645
|
-
initialFeature: DTOForgeProjectFeatureCreateInput.optional(),
|
|
10646
|
-
initialArtifact: DTOForgeProjectArtifactCreateInput.optional(),
|
|
10647
|
-
accessMode: DTOForgeProjectAccessMode.optional(),
|
|
10648
|
-
defaultRole: DTOForgeProjectDefaultRole.optional()
|
|
10649
|
-
});
|
|
10650
|
-
var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
|
|
10651
|
-
id: z333.string(),
|
|
10652
|
-
isArchived: z333.boolean().optional()
|
|
10653
|
-
});
|
|
10654
|
-
var DTOForgeProjectListResponse = z333.object({
|
|
10655
|
-
projects: z333.array(
|
|
10656
|
-
DTOForgeProject.extend({
|
|
10657
|
-
effectiveRole: DTOForgeProjectRole
|
|
10658
|
-
})
|
|
10659
|
-
)
|
|
10660
|
-
});
|
|
10661
|
-
var DTOForgeProjectResponse = z333.object({
|
|
10662
|
-
project: DTOForgeProject.extend({
|
|
10663
|
-
effectiveRole: DTOForgeProjectRole
|
|
10664
|
-
})
|
|
10665
|
-
});
|
|
10666
|
-
|
|
10667
10682
|
// src/api/dto/forge/relation.ts
|
|
10668
|
-
import
|
|
10683
|
+
import z335 from "zod";
|
|
10669
10684
|
var DTOForgeRelationType = ForgeRelationType;
|
|
10670
10685
|
var DTOForgeRelation = ForgeRelation;
|
|
10671
10686
|
var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
|
|
10672
|
-
var DTOForgeRelationDelete =
|
|
10673
|
-
sourceItemId:
|
|
10674
|
-
targetItemId:
|
|
10687
|
+
var DTOForgeRelationDelete = z335.object({
|
|
10688
|
+
sourceItemId: z335.string().uuid(),
|
|
10689
|
+
targetItemId: z335.string().uuid()
|
|
10675
10690
|
});
|
|
10676
|
-
var DTOForgeRelationListInput =
|
|
10677
|
-
projectId:
|
|
10691
|
+
var DTOForgeRelationListInput = z335.object({
|
|
10692
|
+
projectId: z335.string()
|
|
10678
10693
|
});
|
|
10679
|
-
var DTOForgeRelationListResponse =
|
|
10680
|
-
relations:
|
|
10694
|
+
var DTOForgeRelationListResponse = z335.object({
|
|
10695
|
+
relations: z335.array(DTOForgeRelation)
|
|
10681
10696
|
});
|
|
10682
|
-
var DTOForgeEntity =
|
|
10683
|
-
id:
|
|
10697
|
+
var DTOForgeEntity = z335.object({
|
|
10698
|
+
id: z335.string().uuid(),
|
|
10684
10699
|
type: DTOForgeRelationType
|
|
10685
10700
|
});
|
|
10686
10701
|
|
|
10687
10702
|
// src/api/dto/forge/threads.ts
|
|
10688
|
-
import { z as
|
|
10703
|
+
import { z as z336 } from "zod";
|
|
10689
10704
|
var DTOForgeChatMessage = ForgeChatMessage;
|
|
10690
10705
|
var DTOForgeChatThread = ForgeChatThread;
|
|
10691
10706
|
var DTOForgeChatMessageSenderType = ForgeChatMessageSenderType;
|
|
10692
10707
|
var DTOForgeChatMessageSender = ForgeChatMessageSender;
|
|
10693
|
-
var DTOForgeChatThreadCreateInput =
|
|
10694
|
-
title:
|
|
10708
|
+
var DTOForgeChatThreadCreateInput = z336.object({
|
|
10709
|
+
title: z336.string().optional()
|
|
10695
10710
|
});
|
|
10696
|
-
var DTOForgeChatThreadCreateResponse =
|
|
10711
|
+
var DTOForgeChatThreadCreateResponse = z336.object({
|
|
10697
10712
|
thread: DTOForgeChatThread
|
|
10698
10713
|
});
|
|
10699
|
-
var DTOForgeChatThreadUpdateInput =
|
|
10700
|
-
title:
|
|
10714
|
+
var DTOForgeChatThreadUpdateInput = z336.object({
|
|
10715
|
+
title: z336.string()
|
|
10701
10716
|
});
|
|
10702
|
-
var DTOForgeChatThreadUpdateResponse =
|
|
10717
|
+
var DTOForgeChatThreadUpdateResponse = z336.object({
|
|
10703
10718
|
thread: DTOForgeChatThread
|
|
10704
10719
|
});
|
|
10705
|
-
var DTOForgeChatThreadDeleteResponse =
|
|
10706
|
-
success:
|
|
10720
|
+
var DTOForgeChatThreadDeleteResponse = z336.object({
|
|
10721
|
+
success: z336.boolean()
|
|
10707
10722
|
});
|
|
10708
|
-
var DTOForgeChatThreadListQuery =
|
|
10709
|
-
limit:
|
|
10710
|
-
offset:
|
|
10723
|
+
var DTOForgeChatThreadListQuery = z336.object({
|
|
10724
|
+
limit: z336.number().optional(),
|
|
10725
|
+
offset: z336.number().optional()
|
|
10711
10726
|
});
|
|
10712
|
-
var DTOForgeChatThreadListResponse =
|
|
10713
|
-
threads:
|
|
10714
|
-
pagination:
|
|
10715
|
-
offset:
|
|
10716
|
-
limit:
|
|
10717
|
-
total:
|
|
10727
|
+
var DTOForgeChatThreadListResponse = z336.object({
|
|
10728
|
+
threads: z336.array(DTOForgeChatThread),
|
|
10729
|
+
pagination: z336.object({
|
|
10730
|
+
offset: z336.number(),
|
|
10731
|
+
limit: z336.number(),
|
|
10732
|
+
total: z336.number()
|
|
10718
10733
|
})
|
|
10719
10734
|
});
|
|
10720
|
-
var DTOForgeChatMessageCreateInput =
|
|
10721
|
-
payload:
|
|
10735
|
+
var DTOForgeChatMessageCreateInput = z336.object({
|
|
10736
|
+
payload: z336.string(),
|
|
10722
10737
|
sender: DTOForgeChatMessageSender.optional()
|
|
10723
10738
|
});
|
|
10724
|
-
var DTOForgeChatMessageCreateResponse =
|
|
10739
|
+
var DTOForgeChatMessageCreateResponse = z336.object({
|
|
10725
10740
|
message: DTOForgeChatMessage
|
|
10726
10741
|
});
|
|
10727
|
-
var DTOForgeChatMessageListQuery =
|
|
10728
|
-
limit:
|
|
10729
|
-
offset:
|
|
10742
|
+
var DTOForgeChatMessageListQuery = z336.object({
|
|
10743
|
+
limit: z336.string().optional().transform((val) => val ? parseInt(val, 10) : void 0),
|
|
10744
|
+
offset: z336.string().optional().transform((val) => val ? parseInt(val, 10) : void 0)
|
|
10730
10745
|
});
|
|
10731
|
-
var DTOForgeChatMessageListResponse =
|
|
10732
|
-
messages:
|
|
10733
|
-
totalCount:
|
|
10734
|
-
hasMore:
|
|
10746
|
+
var DTOForgeChatMessageListResponse = z336.object({
|
|
10747
|
+
messages: z336.array(DTOForgeChatMessage),
|
|
10748
|
+
totalCount: z336.number(),
|
|
10749
|
+
hasMore: z336.boolean()
|
|
10735
10750
|
});
|
|
10736
|
-
var DTOForgeChatExportResponse =
|
|
10737
|
-
csvDownloadUrl:
|
|
10751
|
+
var DTOForgeChatExportResponse = z336.object({
|
|
10752
|
+
csvDownloadUrl: z336.string().nullable()
|
|
10738
10753
|
});
|
|
10739
|
-
var DTOForgeChatMessageScoreInput =
|
|
10740
|
-
messageId:
|
|
10741
|
-
name:
|
|
10742
|
-
value:
|
|
10743
|
-
categoryName:
|
|
10744
|
-
reason:
|
|
10754
|
+
var DTOForgeChatMessageScoreInput = z336.object({
|
|
10755
|
+
messageId: z336.string(),
|
|
10756
|
+
name: z336.string(),
|
|
10757
|
+
value: z336.number(),
|
|
10758
|
+
categoryName: z336.string().optional(),
|
|
10759
|
+
reason: z336.string().optional()
|
|
10745
10760
|
});
|
|
10746
|
-
var DTOForgeChatMessageTagInput =
|
|
10747
|
-
messageId:
|
|
10748
|
-
tags:
|
|
10761
|
+
var DTOForgeChatMessageTagInput = z336.object({
|
|
10762
|
+
messageId: z336.string(),
|
|
10763
|
+
tags: z336.array(z336.string())
|
|
10749
10764
|
});
|
|
10750
|
-
var DTOForgeChatMessageScoreRequest =
|
|
10765
|
+
var DTOForgeChatMessageScoreRequest = z336.object({
|
|
10751
10766
|
scores: DTOForgeChatMessageScoreInput.array(),
|
|
10752
10767
|
tags: DTOForgeChatMessageTagInput.array().optional().default([])
|
|
10753
10768
|
});
|
|
10754
10769
|
|
|
10755
10770
|
// src/api/dto/liveblocks/auth-response.ts
|
|
10756
|
-
import { z as
|
|
10757
|
-
var DTOLiveblocksAuthResponse =
|
|
10758
|
-
token:
|
|
10771
|
+
import { z as z337 } from "zod";
|
|
10772
|
+
var DTOLiveblocksAuthResponse = z337.object({
|
|
10773
|
+
token: z337.string()
|
|
10759
10774
|
});
|
|
10760
10775
|
|
|
10761
10776
|
// src/api/dto/mcp/stream.ts
|
|
10762
|
-
import
|
|
10763
|
-
var DTOMCPStream =
|
|
10764
|
-
id:
|
|
10765
|
-
projectFeatureId:
|
|
10766
|
-
projectDocumentId:
|
|
10777
|
+
import z338 from "zod";
|
|
10778
|
+
var DTOMCPStream = z338.object({
|
|
10779
|
+
id: z338.string().uuid(),
|
|
10780
|
+
projectFeatureId: z338.string().uuid().optional(),
|
|
10781
|
+
projectDocumentId: z338.string().uuid().optional()
|
|
10767
10782
|
});
|
|
10768
10783
|
var DTOMCPStreamUpdateInput = DTOMCPStream.omit({ id: true });
|
|
10769
|
-
var DTOMCPStreamResponse =
|
|
10784
|
+
var DTOMCPStreamResponse = z338.object({
|
|
10770
10785
|
stream: DTOMCPStream
|
|
10771
10786
|
});
|
|
10772
10787
|
|
|
10773
10788
|
// src/api/dto/portal/portal-settings.ts
|
|
10774
|
-
import { z as
|
|
10789
|
+
import { z as z339 } from "zod";
|
|
10775
10790
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
10776
10791
|
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
10777
10792
|
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
10778
10793
|
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
10779
|
-
var DTOPortalSettings =
|
|
10780
|
-
id:
|
|
10781
|
-
workspaceId:
|
|
10782
|
-
enabledDesignSystemIds:
|
|
10783
|
-
enabledBrandPersistentIds:
|
|
10794
|
+
var DTOPortalSettings = z339.object({
|
|
10795
|
+
id: z339.string(),
|
|
10796
|
+
workspaceId: z339.string(),
|
|
10797
|
+
enabledDesignSystemIds: z339.array(z339.string()),
|
|
10798
|
+
enabledBrandPersistentIds: z339.array(z339.string()),
|
|
10784
10799
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10785
10800
|
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
10786
|
-
createdAt:
|
|
10787
|
-
updatedAt:
|
|
10801
|
+
createdAt: z339.coerce.date(),
|
|
10802
|
+
updatedAt: z339.coerce.date()
|
|
10788
10803
|
});
|
|
10789
|
-
var DTOPortalSettingsGetResponse =
|
|
10804
|
+
var DTOPortalSettingsGetResponse = z339.object({
|
|
10790
10805
|
portalSettings: DTOPortalSettings
|
|
10791
10806
|
});
|
|
10792
|
-
var DTOPortalSettingsUpdatePayload =
|
|
10793
|
-
enabledDesignSystemIds:
|
|
10794
|
-
enabledBrandPersistentIds:
|
|
10807
|
+
var DTOPortalSettingsUpdatePayload = z339.object({
|
|
10808
|
+
enabledDesignSystemIds: z339.array(z339.string()).optional(),
|
|
10809
|
+
enabledBrandPersistentIds: z339.array(z339.string()).optional(),
|
|
10795
10810
|
theme: DTOPortalSettingsTheme.nullish(),
|
|
10796
10811
|
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
10797
10812
|
});
|
|
10798
10813
|
|
|
10799
10814
|
// src/api/dto/themes/override.ts
|
|
10800
|
-
import { z as
|
|
10815
|
+
import { z as z340 } from "zod";
|
|
10801
10816
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
10802
|
-
|
|
10803
|
-
tokenPersistentId:
|
|
10817
|
+
z340.object({
|
|
10818
|
+
tokenPersistentId: z340.string(),
|
|
10804
10819
|
origin: ThemeOverrideOrigin.optional()
|
|
10805
10820
|
})
|
|
10806
10821
|
);
|
|
10807
10822
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
10808
|
-
|
|
10809
|
-
tokenPersistentId:
|
|
10823
|
+
z340.object({
|
|
10824
|
+
tokenPersistentId: z340.string()
|
|
10810
10825
|
})
|
|
10811
10826
|
);
|
|
10812
10827
|
|
|
10813
10828
|
// src/api/dto/themes/theme.ts
|
|
10814
|
-
import { z as
|
|
10815
|
-
var DTOTheme =
|
|
10816
|
-
id:
|
|
10817
|
-
persistentId:
|
|
10818
|
-
designSystemVersionId:
|
|
10819
|
-
brandId:
|
|
10829
|
+
import { z as z341 } from "zod";
|
|
10830
|
+
var DTOTheme = z341.object({
|
|
10831
|
+
id: z341.string(),
|
|
10832
|
+
persistentId: z341.string(),
|
|
10833
|
+
designSystemVersionId: z341.string(),
|
|
10834
|
+
brandId: z341.string(),
|
|
10820
10835
|
meta: ObjectMeta,
|
|
10821
|
-
codeName:
|
|
10836
|
+
codeName: z341.string(),
|
|
10822
10837
|
overrides: DTOThemeOverride.array()
|
|
10823
10838
|
});
|
|
10824
|
-
var DTOThemeResponse =
|
|
10839
|
+
var DTOThemeResponse = z341.object({
|
|
10825
10840
|
theme: DTOTheme
|
|
10826
10841
|
});
|
|
10827
|
-
var DTOThemeListResponse =
|
|
10842
|
+
var DTOThemeListResponse = z341.object({
|
|
10828
10843
|
themes: DTOTheme.array()
|
|
10829
10844
|
});
|
|
10830
|
-
var DTOThemeCreatePayload =
|
|
10845
|
+
var DTOThemeCreatePayload = z341.object({
|
|
10831
10846
|
meta: ObjectMeta,
|
|
10832
|
-
persistentId:
|
|
10833
|
-
brandId:
|
|
10834
|
-
codeName:
|
|
10847
|
+
persistentId: z341.string(),
|
|
10848
|
+
brandId: z341.string(),
|
|
10849
|
+
codeName: z341.string(),
|
|
10835
10850
|
overrides: DTOThemeOverride.array()
|
|
10836
10851
|
});
|
|
10837
10852
|
|
|
10838
10853
|
// src/api/dto/trail-events/trail-events.ts
|
|
10839
|
-
import { z as
|
|
10840
|
-
var DTOTrailEventType =
|
|
10854
|
+
import { z as z342 } from "zod";
|
|
10855
|
+
var DTOTrailEventType = z342.enum([
|
|
10841
10856
|
"IterationCreated",
|
|
10842
10857
|
"IterationBookmarked",
|
|
10843
10858
|
"FeatureCreated",
|
|
@@ -10853,110 +10868,110 @@ var DTOTrailEventType = z341.enum([
|
|
|
10853
10868
|
"ProjectContextCreated",
|
|
10854
10869
|
"ProjectContextArchived"
|
|
10855
10870
|
]);
|
|
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
|
-
|
|
10871
|
+
var DTOTrailEventBase = z342.object({
|
|
10872
|
+
id: z342.string(),
|
|
10873
|
+
projectId: z342.string(),
|
|
10874
|
+
userId: z342.string(),
|
|
10875
|
+
createdAt: z342.coerce.date(),
|
|
10876
|
+
updatedAt: z342.coerce.date()
|
|
10877
|
+
});
|
|
10878
|
+
var DTOTrailEventIterationCreatedPayload = z342.object({
|
|
10879
|
+
iterationName: z342.string(),
|
|
10880
|
+
iterationId: z342.string().uuid(),
|
|
10881
|
+
featureId: z342.string().uuid()
|
|
10882
|
+
});
|
|
10883
|
+
var DTOTrailEventIterationBookmarkedPayload = z342.object({
|
|
10884
|
+
iterationId: z342.string().uuid(),
|
|
10885
|
+
featureId: z342.string().uuid(),
|
|
10886
|
+
iterationName: z342.string()
|
|
10887
|
+
});
|
|
10888
|
+
var DTOTrailEventIterationPromotedPayload = z342.object({
|
|
10889
|
+
iterationId: z342.string().uuid(),
|
|
10890
|
+
featureId: z342.string().uuid(),
|
|
10891
|
+
iterationName: z342.string()
|
|
10892
|
+
});
|
|
10893
|
+
var DTOTrailEventFeatureCreatedPayload = z342.object({
|
|
10894
|
+
featureId: z342.string().uuid(),
|
|
10895
|
+
name: z342.string(),
|
|
10896
|
+
description: z342.string().optional()
|
|
10897
|
+
});
|
|
10898
|
+
var DTOTrailEventFeatureDeletedPayload = z342.object({
|
|
10899
|
+
featureId: z342.string().uuid(),
|
|
10900
|
+
name: z342.string()
|
|
10901
|
+
});
|
|
10902
|
+
var DTOTrailEventFeatureArchivedPayload = z342.object({
|
|
10903
|
+
featureId: z342.string().uuid(),
|
|
10904
|
+
name: z342.string()
|
|
10905
|
+
});
|
|
10906
|
+
var DTOTrailEventDocumentCreatedPayload = z342.object({
|
|
10907
|
+
documentId: z342.string().uuid(),
|
|
10908
|
+
title: z342.string(),
|
|
10909
|
+
sectionId: z342.string().uuid().optional()
|
|
10910
|
+
});
|
|
10911
|
+
var DTOTrailEventDocumentDeletedPayload = z342.object({
|
|
10912
|
+
documentId: z342.string().uuid(),
|
|
10913
|
+
title: z342.string()
|
|
10914
|
+
});
|
|
10915
|
+
var DTOTrailEventDocumentUpdatedPayload = z342.object({
|
|
10916
|
+
documentId: z342.string().uuid(),
|
|
10917
|
+
title: z342.string(),
|
|
10918
|
+
sectionId: z342.string().uuid().optional()
|
|
10919
|
+
});
|
|
10920
|
+
var DTOTrailEventDocumentCommentSentPayload = z342.object({
|
|
10921
|
+
documentId: z342.string().uuid(),
|
|
10922
|
+
title: z342.string(),
|
|
10923
|
+
sectionId: z342.string().uuid().optional()
|
|
10924
|
+
});
|
|
10925
|
+
var DTOTrailEventProjectCreatedPayload = z342.object({
|
|
10926
|
+
name: z342.string(),
|
|
10927
|
+
description: z342.string().optional()
|
|
10928
|
+
});
|
|
10929
|
+
var DTOTrailEventProjectArchivedPayload = z342.object({
|
|
10930
|
+
name: z342.string()
|
|
10931
|
+
});
|
|
10932
|
+
var DTOTrailEventProjectContextCreatedPayload = z342.object({
|
|
10933
|
+
contextId: z342.number(),
|
|
10934
|
+
name: z342.string(),
|
|
10935
|
+
description: z342.string().optional()
|
|
10936
|
+
});
|
|
10937
|
+
var DTOTrailEventProjectContextArchivedPayload = z342.object({
|
|
10938
|
+
contextId: z342.number()
|
|
10939
|
+
});
|
|
10940
|
+
var DTOTrailEventPayload = z342.discriminatedUnion("type", [
|
|
10941
|
+
z342.object({ type: z342.literal("IterationCreated"), payload: DTOTrailEventIterationCreatedPayload }),
|
|
10942
|
+
z342.object({ type: z342.literal("IterationBookmarked"), payload: DTOTrailEventIterationBookmarkedPayload }),
|
|
10943
|
+
z342.object({ type: z342.literal("FeatureCreated"), payload: DTOTrailEventFeatureCreatedPayload }),
|
|
10944
|
+
z342.object({ type: z342.literal("FeatureDeleted"), payload: DTOTrailEventFeatureDeletedPayload }),
|
|
10945
|
+
z342.object({ type: z342.literal("FeatureArchived"), payload: DTOTrailEventFeatureArchivedPayload }),
|
|
10946
|
+
z342.object({ type: z342.literal("DocumentCreated"), payload: DTOTrailEventDocumentCreatedPayload }),
|
|
10947
|
+
z342.object({ type: z342.literal("DocumentDeleted"), payload: DTOTrailEventDocumentDeletedPayload }),
|
|
10948
|
+
z342.object({ type: z342.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
10949
|
+
z342.object({ type: z342.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload }),
|
|
10950
|
+
z342.object({ type: z342.literal("ProjectCreated"), payload: DTOTrailEventProjectCreatedPayload }),
|
|
10951
|
+
z342.object({ type: z342.literal("ProjectArchived"), payload: DTOTrailEventProjectArchivedPayload }),
|
|
10952
|
+
z342.object({ type: z342.literal("IterationPromoted"), payload: DTOTrailEventIterationPromotedPayload }),
|
|
10953
|
+
z342.object({ type: z342.literal("ProjectContextCreated"), payload: DTOTrailEventProjectContextCreatedPayload }),
|
|
10954
|
+
z342.object({ type: z342.literal("ProjectContextArchived"), payload: DTOTrailEventProjectContextArchivedPayload })
|
|
10940
10955
|
]);
|
|
10941
10956
|
var DTOTrailEvent = DTOTrailEventPayload.and(DTOTrailEventBase);
|
|
10942
10957
|
var DTOTrailEventWithDetails = DTOTrailEvent.and(
|
|
10943
|
-
|
|
10944
|
-
projectName:
|
|
10945
|
-
userName:
|
|
10958
|
+
z342.object({
|
|
10959
|
+
projectName: z342.string().optional(),
|
|
10960
|
+
userName: z342.string().optional()
|
|
10946
10961
|
})
|
|
10947
10962
|
);
|
|
10948
|
-
var DTOTrailEventListInput =
|
|
10949
|
-
projectId:
|
|
10963
|
+
var DTOTrailEventListInput = z342.object({
|
|
10964
|
+
projectId: z342.string()
|
|
10950
10965
|
});
|
|
10951
|
-
var DTOTrailEventListResponse =
|
|
10952
|
-
events:
|
|
10966
|
+
var DTOTrailEventListResponse = z342.object({
|
|
10967
|
+
events: z342.array(DTOTrailEventWithDetails)
|
|
10953
10968
|
});
|
|
10954
10969
|
var DTOTrailEventCreate = DTOTrailEventPayload.and(
|
|
10955
10970
|
DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true })
|
|
10956
10971
|
);
|
|
10957
|
-
var DTOTrailEventClientCreate =
|
|
10958
|
-
|
|
10959
|
-
|
|
10972
|
+
var DTOTrailEventClientCreate = z342.discriminatedUnion("type", [
|
|
10973
|
+
z342.object({ type: z342.literal("DocumentUpdated"), payload: DTOTrailEventDocumentUpdatedPayload }),
|
|
10974
|
+
z342.object({ type: z342.literal("DocumentCommentSent"), payload: DTOTrailEventDocumentCommentSentPayload })
|
|
10960
10975
|
]).and(DTOTrailEventBase.omit({ id: true, createdAt: true, updatedAt: true }));
|
|
10961
10976
|
|
|
10962
10977
|
// src/utils/figma.ts
|
|
@@ -11177,13 +11192,13 @@ var ExportersEndpoint = class {
|
|
|
11177
11192
|
};
|
|
11178
11193
|
|
|
11179
11194
|
// src/api/endpoints/codegen/jobs.ts
|
|
11180
|
-
import { z as
|
|
11195
|
+
import { z as z343 } from "zod";
|
|
11181
11196
|
var ExporterJobsEndpoint = class {
|
|
11182
11197
|
constructor(requestExecutor) {
|
|
11183
11198
|
this.requestExecutor = requestExecutor;
|
|
11184
11199
|
}
|
|
11185
11200
|
list(workspaceId) {
|
|
11186
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
11201
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z343.any());
|
|
11187
11202
|
}
|
|
11188
11203
|
get(workspaceId, jobId) {
|
|
11189
11204
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -11241,7 +11256,7 @@ var CodegenEndpoint = class {
|
|
|
11241
11256
|
};
|
|
11242
11257
|
|
|
11243
11258
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
11244
|
-
import { z as
|
|
11259
|
+
import { z as z344 } from "zod";
|
|
11245
11260
|
var BrandsEndpoint = class {
|
|
11246
11261
|
constructor(requestExecutor) {
|
|
11247
11262
|
this.requestExecutor = requestExecutor;
|
|
@@ -11275,7 +11290,7 @@ var BrandsEndpoint = class {
|
|
|
11275
11290
|
});
|
|
11276
11291
|
}
|
|
11277
11292
|
delete(dsId, vId, brandId) {
|
|
11278
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
11293
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z344.any(), {
|
|
11279
11294
|
method: "DELETE"
|
|
11280
11295
|
});
|
|
11281
11296
|
}
|
|
@@ -11551,7 +11566,7 @@ var ImportJobsEndpoint = class {
|
|
|
11551
11566
|
};
|
|
11552
11567
|
|
|
11553
11568
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
11554
|
-
import { z as
|
|
11569
|
+
import { z as z345 } from "zod";
|
|
11555
11570
|
var OverridesEndpoint = class {
|
|
11556
11571
|
constructor(requestExecutor) {
|
|
11557
11572
|
this.requestExecutor = requestExecutor;
|
|
@@ -11559,7 +11574,7 @@ var OverridesEndpoint = class {
|
|
|
11559
11574
|
create(dsId, versionId, themeId, body) {
|
|
11560
11575
|
return this.requestExecutor.json(
|
|
11561
11576
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
11562
|
-
|
|
11577
|
+
z345.any(),
|
|
11563
11578
|
{
|
|
11564
11579
|
method: "POST",
|
|
11565
11580
|
body
|
|
@@ -11569,7 +11584,7 @@ var OverridesEndpoint = class {
|
|
|
11569
11584
|
};
|
|
11570
11585
|
|
|
11571
11586
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
11572
|
-
import { z as
|
|
11587
|
+
import { z as z346 } from "zod";
|
|
11573
11588
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
11574
11589
|
constructor(requestExecutor) {
|
|
11575
11590
|
this.requestExecutor = requestExecutor;
|
|
@@ -11597,7 +11612,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
11597
11612
|
delete(designSystemId, versionId, defId) {
|
|
11598
11613
|
return this.requestExecutor.json(
|
|
11599
11614
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
11600
|
-
|
|
11615
|
+
z346.any(),
|
|
11601
11616
|
{ method: "DELETE" }
|
|
11602
11617
|
);
|
|
11603
11618
|
}
|
|
@@ -11636,7 +11651,7 @@ var VersionStatsEndpoint = class {
|
|
|
11636
11651
|
};
|
|
11637
11652
|
|
|
11638
11653
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
11639
|
-
import { z as
|
|
11654
|
+
import { z as z347 } from "zod";
|
|
11640
11655
|
var ThemesEndpoint = class {
|
|
11641
11656
|
constructor(requestExecutor) {
|
|
11642
11657
|
this.requestExecutor = requestExecutor;
|
|
@@ -11659,7 +11674,7 @@ var ThemesEndpoint = class {
|
|
|
11659
11674
|
});
|
|
11660
11675
|
}
|
|
11661
11676
|
delete(dsId, versionId, themeId) {
|
|
11662
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
11677
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z347.any(), {
|
|
11663
11678
|
method: "DELETE"
|
|
11664
11679
|
});
|
|
11665
11680
|
}
|
|
@@ -11832,7 +11847,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
11832
11847
|
};
|
|
11833
11848
|
|
|
11834
11849
|
// src/api/endpoints/design-system/design-systems.ts
|
|
11835
|
-
import { z as
|
|
11850
|
+
import { z as z351 } from "zod";
|
|
11836
11851
|
|
|
11837
11852
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
11838
11853
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -11909,7 +11924,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
11909
11924
|
};
|
|
11910
11925
|
|
|
11911
11926
|
// src/api/endpoints/design-system/sources.ts
|
|
11912
|
-
import { z as
|
|
11927
|
+
import { z as z348 } from "zod";
|
|
11913
11928
|
var DesignSystemSourcesEndpoint = class {
|
|
11914
11929
|
constructor(requestExecutor) {
|
|
11915
11930
|
this.requestExecutor = requestExecutor;
|
|
@@ -11927,7 +11942,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11927
11942
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
11928
11943
|
}
|
|
11929
11944
|
delete(dsId, sourceId) {
|
|
11930
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
11945
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z348.any(), { method: "DELETE" });
|
|
11931
11946
|
}
|
|
11932
11947
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
11933
11948
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -11970,7 +11985,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
11970
11985
|
};
|
|
11971
11986
|
|
|
11972
11987
|
// src/api/endpoints/design-system/storybook.ts
|
|
11973
|
-
import { z as
|
|
11988
|
+
import { z as z349 } from "zod";
|
|
11974
11989
|
var StorybookEntriesEndpoint = class {
|
|
11975
11990
|
constructor(requestExecutor) {
|
|
11976
11991
|
this.requestExecutor = requestExecutor;
|
|
@@ -11988,14 +12003,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
11988
12003
|
);
|
|
11989
12004
|
}
|
|
11990
12005
|
delete(dsId, entryId) {
|
|
11991
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
12006
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z349.any(), {
|
|
11992
12007
|
method: "DELETE"
|
|
11993
12008
|
});
|
|
11994
12009
|
}
|
|
11995
12010
|
};
|
|
11996
12011
|
|
|
11997
12012
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
11998
|
-
import { z as
|
|
12013
|
+
import { z as z350 } from "zod";
|
|
11999
12014
|
var StorybookHostingEndpoint = class {
|
|
12000
12015
|
constructor(requestExecutor) {
|
|
12001
12016
|
this.requestExecutor = requestExecutor;
|
|
@@ -12009,7 +12024,7 @@ var StorybookHostingEndpoint = class {
|
|
|
12009
12024
|
delete(dsId, storybookUploadId) {
|
|
12010
12025
|
return this.requestExecutor.json(
|
|
12011
12026
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
12012
|
-
|
|
12027
|
+
z350.object({ ok: z350.boolean() }),
|
|
12013
12028
|
{
|
|
12014
12029
|
method: "DELETE"
|
|
12015
12030
|
}
|
|
@@ -12067,7 +12082,7 @@ var DesignSystemsEndpoint = class {
|
|
|
12067
12082
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
12068
12083
|
}
|
|
12069
12084
|
delete(dsId) {
|
|
12070
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
12085
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z351.any(), { method: "DELETE" });
|
|
12071
12086
|
}
|
|
12072
12087
|
update(dsId, body) {
|
|
12073
12088
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -12221,7 +12236,7 @@ var ForgeFeatureArtifactsEndpoint = class {
|
|
|
12221
12236
|
};
|
|
12222
12237
|
|
|
12223
12238
|
// src/api/endpoints/forge/feature-iterations.ts
|
|
12224
|
-
import
|
|
12239
|
+
import z352 from "zod";
|
|
12225
12240
|
var ForgeFeatureIterationsEndpoint = class {
|
|
12226
12241
|
constructor(requestExecutor) {
|
|
12227
12242
|
this.requestExecutor = requestExecutor;
|
|
@@ -12238,7 +12253,7 @@ var ForgeFeatureIterationsEndpoint = class {
|
|
|
12238
12253
|
updateArtifacts(workspaceId, projectId, featureId, body) {
|
|
12239
12254
|
return this.requestExecutor.json(
|
|
12240
12255
|
`/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}/iterations/update-artifacts`,
|
|
12241
|
-
|
|
12256
|
+
z352.any(),
|
|
12242
12257
|
{
|
|
12243
12258
|
body,
|
|
12244
12259
|
method: "POST"
|
|
@@ -12510,7 +12525,7 @@ var ForgeProjectMembersEndpoint = class {
|
|
|
12510
12525
|
};
|
|
12511
12526
|
|
|
12512
12527
|
// src/api/endpoints/forge/projects.ts
|
|
12513
|
-
import
|
|
12528
|
+
import z353 from "zod";
|
|
12514
12529
|
var ForgeProjectsEndpoint = class {
|
|
12515
12530
|
constructor(requestExecutor) {
|
|
12516
12531
|
this.requestExecutor = requestExecutor;
|
|
@@ -12547,7 +12562,7 @@ var ForgeProjectsEndpoint = class {
|
|
|
12547
12562
|
);
|
|
12548
12563
|
}
|
|
12549
12564
|
action(workspaceId, projectId, body) {
|
|
12550
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`,
|
|
12565
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/projects/${projectId}/action`, z353.any(), {
|
|
12551
12566
|
body,
|
|
12552
12567
|
method: "POST"
|
|
12553
12568
|
});
|
|
@@ -12653,7 +12668,7 @@ var MCPStreamsEndpoint = class {
|
|
|
12653
12668
|
};
|
|
12654
12669
|
|
|
12655
12670
|
// src/api/endpoints/workspaces/chat-threads.ts
|
|
12656
|
-
import { z as
|
|
12671
|
+
import { z as z354 } from "zod";
|
|
12657
12672
|
var WorkspaceChatThreadsEndpoint = class {
|
|
12658
12673
|
constructor(requestExecutor) {
|
|
12659
12674
|
this.requestExecutor = requestExecutor;
|
|
@@ -12685,7 +12700,7 @@ var WorkspaceChatThreadsEndpoint = class {
|
|
|
12685
12700
|
);
|
|
12686
12701
|
}
|
|
12687
12702
|
delete(workspaceId, threadId) {
|
|
12688
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`,
|
|
12703
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z354.any(), {
|
|
12689
12704
|
method: "DELETE"
|
|
12690
12705
|
});
|
|
12691
12706
|
}
|
|
@@ -12717,7 +12732,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12717
12732
|
);
|
|
12718
12733
|
}
|
|
12719
12734
|
score(workspaceId, threadId, body) {
|
|
12720
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`,
|
|
12735
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z354.any(), {
|
|
12721
12736
|
method: "POST",
|
|
12722
12737
|
body
|
|
12723
12738
|
});
|
|
@@ -12725,7 +12740,7 @@ var ChatThreadMessagesEndpoint = class {
|
|
|
12725
12740
|
};
|
|
12726
12741
|
|
|
12727
12742
|
// src/api/endpoints/workspaces/integrations.ts
|
|
12728
|
-
import { z as
|
|
12743
|
+
import { z as z355 } from "zod";
|
|
12729
12744
|
var WorkspaceIntegrationsEndpoint = class {
|
|
12730
12745
|
constructor(requestExecutor) {
|
|
12731
12746
|
this.requestExecutor = requestExecutor;
|
|
@@ -12734,7 +12749,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
12734
12749
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
12735
12750
|
}
|
|
12736
12751
|
delete(wsId, iId) {
|
|
12737
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
12752
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z355.unknown(), { method: "DELETE" });
|
|
12738
12753
|
}
|
|
12739
12754
|
};
|
|
12740
12755
|
|
|
@@ -12766,7 +12781,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
12766
12781
|
};
|
|
12767
12782
|
|
|
12768
12783
|
// src/api/endpoints/workspaces/members.ts
|
|
12769
|
-
import { z as
|
|
12784
|
+
import { z as z356 } from "zod";
|
|
12770
12785
|
var WorkspaceMembersEndpoint = class {
|
|
12771
12786
|
constructor(requestExecutor) {
|
|
12772
12787
|
this.requestExecutor = requestExecutor;
|
|
@@ -12783,7 +12798,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
12783
12798
|
});
|
|
12784
12799
|
}
|
|
12785
12800
|
invite(workspaceId, body) {
|
|
12786
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
12801
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z356.any(), { method: "POST", body });
|
|
12787
12802
|
}
|
|
12788
12803
|
delete(workspaceId, userId) {
|
|
12789
12804
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -12812,7 +12827,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
12812
12827
|
};
|
|
12813
12828
|
|
|
12814
12829
|
// src/api/endpoints/workspaces/subscription.ts
|
|
12815
|
-
import { z as
|
|
12830
|
+
import { z as z357 } from "zod";
|
|
12816
12831
|
var WorkspaceSubscriptionEndpoint = class {
|
|
12817
12832
|
constructor(requestExecutor) {
|
|
12818
12833
|
this.requestExecutor = requestExecutor;
|
|
@@ -12823,7 +12838,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
12823
12838
|
});
|
|
12824
12839
|
}
|
|
12825
12840
|
update(workspaceId, body) {
|
|
12826
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
12841
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z357.any(), {
|
|
12827
12842
|
method: "PUT",
|
|
12828
12843
|
body
|
|
12829
12844
|
});
|
|
@@ -12841,7 +12856,7 @@ var WorkspaceSubscriptionEndpoint = class {
|
|
|
12841
12856
|
};
|
|
12842
12857
|
|
|
12843
12858
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
12844
|
-
import { z as
|
|
12859
|
+
import { z as z358 } from "zod";
|
|
12845
12860
|
var WorkspacesEndpoint = class {
|
|
12846
12861
|
constructor(requestExecutor) {
|
|
12847
12862
|
this.requestExecutor = requestExecutor;
|
|
@@ -12875,7 +12890,7 @@ var WorkspacesEndpoint = class {
|
|
|
12875
12890
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
12876
12891
|
}
|
|
12877
12892
|
delete(workspaceId) {
|
|
12878
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
12893
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z358.any(), { method: "DELETE" });
|
|
12879
12894
|
}
|
|
12880
12895
|
getPortalSettings(workspaceId) {
|
|
12881
12896
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -13033,9 +13048,9 @@ ${bodyText}`,
|
|
|
13033
13048
|
|
|
13034
13049
|
// src/api/transport/request-executor.ts
|
|
13035
13050
|
import fetch from "node-fetch";
|
|
13036
|
-
import { z as
|
|
13037
|
-
var ResponseWrapper =
|
|
13038
|
-
result:
|
|
13051
|
+
import { z as z359 } from "zod";
|
|
13052
|
+
var ResponseWrapper = z359.object({
|
|
13053
|
+
result: z359.record(z359.any())
|
|
13039
13054
|
});
|
|
13040
13055
|
var RequestExecutor = class {
|
|
13041
13056
|
constructor(testServerConfig) {
|
|
@@ -13118,25 +13133,25 @@ var SupernovaApiClient = class {
|
|
|
13118
13133
|
};
|
|
13119
13134
|
|
|
13120
13135
|
// 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:
|
|
13136
|
+
import { z as z360 } from "zod";
|
|
13137
|
+
var DTOEventFigmaNodesRendered = z360.object({
|
|
13138
|
+
type: z360.literal("DesignSystem.FigmaNodesRendered"),
|
|
13139
|
+
designSystemId: z360.string(),
|
|
13140
|
+
versionId: z360.string(),
|
|
13141
|
+
figmaNodePersistentIds: z360.string().array()
|
|
13142
|
+
});
|
|
13143
|
+
var DTOEventDataSourcesImported = z360.object({
|
|
13144
|
+
type: z360.literal("DesignSystem.ImportJobFinished"),
|
|
13145
|
+
designSystemId: z360.string(),
|
|
13146
|
+
versionId: z360.string(),
|
|
13147
|
+
importJobId: z360.string(),
|
|
13133
13148
|
dataSourceType: DataSourceRemoteType,
|
|
13134
|
-
dataSourceIds:
|
|
13149
|
+
dataSourceIds: z360.string().array()
|
|
13135
13150
|
});
|
|
13136
13151
|
|
|
13137
13152
|
// src/events/event.ts
|
|
13138
|
-
import { z as
|
|
13139
|
-
var DTOEvent =
|
|
13153
|
+
import { z as z361 } from "zod";
|
|
13154
|
+
var DTOEvent = z361.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
13140
13155
|
|
|
13141
13156
|
// src/sync/docs-local-action-executor.ts
|
|
13142
13157
|
function applyActionsLocally(input) {
|
|
@@ -13432,7 +13447,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
13432
13447
|
import PQueue from "p-queue";
|
|
13433
13448
|
|
|
13434
13449
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13435
|
-
import { z as
|
|
13450
|
+
import { z as z362 } from "zod";
|
|
13436
13451
|
|
|
13437
13452
|
// src/yjs/version-room/base.ts
|
|
13438
13453
|
var VersionRoomBaseYDoc = class {
|
|
@@ -13982,24 +13997,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
13982
13997
|
};
|
|
13983
13998
|
|
|
13984
13999
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13985
|
-
var DocumentationHierarchySettings =
|
|
13986
|
-
routingVersion:
|
|
13987
|
-
isDraftFeatureAdopted:
|
|
13988
|
-
isApprovalFeatureEnabled:
|
|
13989
|
-
approvalRequiredForPublishing:
|
|
14000
|
+
var DocumentationHierarchySettings = z362.object({
|
|
14001
|
+
routingVersion: z362.string(),
|
|
14002
|
+
isDraftFeatureAdopted: z362.boolean(),
|
|
14003
|
+
isApprovalFeatureEnabled: z362.boolean(),
|
|
14004
|
+
approvalRequiredForPublishing: z362.boolean()
|
|
13990
14005
|
});
|
|
13991
14006
|
function yjsToDocumentationHierarchy(doc) {
|
|
13992
14007
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
13993
14008
|
}
|
|
13994
14009
|
|
|
13995
14010
|
// src/yjs/design-system-content/item-configuration.ts
|
|
13996
|
-
import { z as
|
|
13997
|
-
var DTODocumentationPageRoomHeaderData =
|
|
13998
|
-
title:
|
|
14011
|
+
import { z as z363 } from "zod";
|
|
14012
|
+
var DTODocumentationPageRoomHeaderData = z363.object({
|
|
14013
|
+
title: z363.string(),
|
|
13999
14014
|
configuration: DTODocumentationItemConfigurationV2
|
|
14000
14015
|
});
|
|
14001
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
14002
|
-
title:
|
|
14016
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z363.object({
|
|
14017
|
+
title: z363.string().optional(),
|
|
14003
14018
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
14004
14019
|
});
|
|
14005
14020
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -14034,9 +14049,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
14034
14049
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
14035
14050
|
|
|
14036
14051
|
// src/yjs/docs-editor/model/page.ts
|
|
14037
|
-
import { z as
|
|
14038
|
-
var DocumentationPageEditorModel =
|
|
14039
|
-
blocks:
|
|
14052
|
+
import { z as z364 } from "zod";
|
|
14053
|
+
var DocumentationPageEditorModel = z364.object({
|
|
14054
|
+
blocks: z364.array(DocumentationPageContentItem)
|
|
14040
14055
|
});
|
|
14041
14056
|
|
|
14042
14057
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -17713,7 +17728,7 @@ var blocks = [
|
|
|
17713
17728
|
|
|
17714
17729
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
17715
17730
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
17716
|
-
import { z as
|
|
17731
|
+
import { z as z365 } from "zod";
|
|
17717
17732
|
function yDocToPage(yDoc, definitions) {
|
|
17718
17733
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
17719
17734
|
}
|
|
@@ -17789,7 +17804,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
17789
17804
|
if (!id) return null;
|
|
17790
17805
|
return {
|
|
17791
17806
|
id,
|
|
17792
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
17807
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z365.string()) ?? "",
|
|
17793
17808
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
17794
17809
|
};
|
|
17795
17810
|
}
|
|
@@ -17823,7 +17838,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
17823
17838
|
});
|
|
17824
17839
|
}
|
|
17825
17840
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
17826
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
17841
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z365.string());
|
|
17827
17842
|
if (!definitionId) {
|
|
17828
17843
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
17829
17844
|
return [];
|
|
@@ -17864,7 +17879,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
17864
17879
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17865
17880
|
if (!id) return null;
|
|
17866
17881
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17867
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
17882
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z365.string().optional()));
|
|
17868
17883
|
return {
|
|
17869
17884
|
id,
|
|
17870
17885
|
type: "Block",
|
|
@@ -17987,9 +18002,9 @@ function parseRichTextAttribute(mark) {
|
|
|
17987
18002
|
return null;
|
|
17988
18003
|
}
|
|
17989
18004
|
function parseProsemirrorLink(mark) {
|
|
17990
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
18005
|
+
const href = getProsemirrorAttribute(mark, "href", z365.string().optional());
|
|
17991
18006
|
if (!href) return null;
|
|
17992
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
18007
|
+
const target = getProsemirrorAttribute(mark, "target", z365.string().optional());
|
|
17993
18008
|
const openInNewTab = target === "_blank";
|
|
17994
18009
|
if (href.startsWith("@")) {
|
|
17995
18010
|
return {
|
|
@@ -18008,9 +18023,9 @@ function parseProsemirrorLink(mark) {
|
|
|
18008
18023
|
}
|
|
18009
18024
|
}
|
|
18010
18025
|
function parseProsemirrorCommentHighlight(mark) {
|
|
18011
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
18026
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z365.string().optional());
|
|
18012
18027
|
if (!highlightId) return null;
|
|
18013
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
18028
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z365.boolean().optional()) ?? false;
|
|
18014
18029
|
return {
|
|
18015
18030
|
type: "Comment",
|
|
18016
18031
|
commentHighlightId: highlightId,
|
|
@@ -18021,7 +18036,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
18021
18036
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
18022
18037
|
if (!id) return null;
|
|
18023
18038
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
18024
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
18039
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z365.boolean().optional()) !== false;
|
|
18025
18040
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
18026
18041
|
if (!tableChild) {
|
|
18027
18042
|
return emptyTable(id, variantId, 0);
|
|
@@ -18067,9 +18082,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
18067
18082
|
function parseAsTableCell(prosemirrorNode) {
|
|
18068
18083
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
18069
18084
|
if (!id) return null;
|
|
18070
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
18085
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z365.string().optional());
|
|
18071
18086
|
let columnWidth;
|
|
18072
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
18087
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z365.array(z365.number()).nullish());
|
|
18073
18088
|
if (columnWidthArray) {
|
|
18074
18089
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
18075
18090
|
}
|
|
@@ -18105,7 +18120,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
18105
18120
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
18106
18121
|
};
|
|
18107
18122
|
case "image":
|
|
18108
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
18123
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z365.string());
|
|
18109
18124
|
if (!items) return null;
|
|
18110
18125
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
18111
18126
|
if (!parsedItems.success) return null;
|
|
@@ -18219,7 +18234,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
18219
18234
|
);
|
|
18220
18235
|
}
|
|
18221
18236
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
18222
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
18237
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z365.string());
|
|
18223
18238
|
if (!itemsString) return null;
|
|
18224
18239
|
const itemsJson = JSON.parse(itemsString);
|
|
18225
18240
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -18230,18 +18245,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
18230
18245
|
}
|
|
18231
18246
|
function parseAppearance(prosemirrorNode) {
|
|
18232
18247
|
let appearance = {};
|
|
18233
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
18248
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z365.string().optional());
|
|
18234
18249
|
if (rawAppearanceString) {
|
|
18235
18250
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
18236
18251
|
if (parsedAppearance.success) {
|
|
18237
18252
|
appearance = parsedAppearance.data;
|
|
18238
18253
|
}
|
|
18239
18254
|
}
|
|
18240
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
18255
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z365.number().optional());
|
|
18241
18256
|
if (columns) {
|
|
18242
18257
|
appearance.numberOfColumns = columns;
|
|
18243
18258
|
}
|
|
18244
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
18259
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z365.string().optional());
|
|
18245
18260
|
if (backgroundColor) {
|
|
18246
18261
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
18247
18262
|
if (parsedColor.success) {
|
|
@@ -18342,12 +18357,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
18342
18357
|
}
|
|
18343
18358
|
}
|
|
18344
18359
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
18345
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
18360
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z365.string());
|
|
18346
18361
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
18347
18362
|
return id;
|
|
18348
18363
|
}
|
|
18349
18364
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
18350
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
18365
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z365.string()));
|
|
18351
18366
|
}
|
|
18352
18367
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
18353
18368
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -20113,6 +20128,9 @@ export {
|
|
|
20113
20128
|
DTOProduct,
|
|
20114
20129
|
DTOProductCode,
|
|
20115
20130
|
DTOProductPrice,
|
|
20131
|
+
DTOProjectContextOverride,
|
|
20132
|
+
DTOProjectContextOverrideInput,
|
|
20133
|
+
DTOProjectContextOverrideResponse,
|
|
20116
20134
|
DTOPublishDocumentationChanges,
|
|
20117
20135
|
DTOPublishDocumentationRequest,
|
|
20118
20136
|
DTOPublishDocumentationResponse,
|