@supernova-studio/client 1.44.2 → 1.44.4
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 +26238 -25149
- package/dist/index.d.ts +26238 -25149
- package/dist/index.js +130 -30
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +585 -485
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -168,13 +168,13 @@ import { z as z157 } from "zod";
|
|
|
168
168
|
import { z as z158 } from "zod";
|
|
169
169
|
import { z as z159 } from "zod";
|
|
170
170
|
import { z as z160 } from "zod";
|
|
171
|
+
import { z as z188 } from "zod";
|
|
171
172
|
import { z as z187 } from "zod";
|
|
172
|
-
import { z as z186 } from "zod";
|
|
173
173
|
import { z as z164 } from "zod";
|
|
174
174
|
import { z as z165 } from "zod";
|
|
175
175
|
import { z as z166 } from "zod";
|
|
176
176
|
import { z as z167 } from "zod";
|
|
177
|
-
import { z as
|
|
177
|
+
import { z as z183 } from "zod";
|
|
178
178
|
import { z as z168 } from "zod";
|
|
179
179
|
import { z as z169 } from "zod";
|
|
180
180
|
import { z as z170 } from "zod";
|
|
@@ -189,37 +189,38 @@ import { z as z178 } from "zod";
|
|
|
189
189
|
import { z as z180 } from "zod";
|
|
190
190
|
import { z as z179 } from "zod";
|
|
191
191
|
import { z as z181 } from "zod";
|
|
192
|
-
import { z as
|
|
192
|
+
import { z as z182 } from "zod";
|
|
193
193
|
import { z as z184 } from "zod";
|
|
194
194
|
import { z as z185 } from "zod";
|
|
195
|
+
import { z as z186 } from "zod";
|
|
196
|
+
import { z as z191 } from "zod";
|
|
195
197
|
import { z as z190 } from "zod";
|
|
196
198
|
import { z as z189 } from "zod";
|
|
197
|
-
import { z as z188 } from "zod";
|
|
198
|
-
import { z as z191 } from "zod";
|
|
199
199
|
import { z as z192 } from "zod";
|
|
200
200
|
import { z as z193 } from "zod";
|
|
201
|
-
import { z as z197 } from "zod";
|
|
202
201
|
import { z as z194 } from "zod";
|
|
202
|
+
import { z as z198 } from "zod";
|
|
203
203
|
import { z as z195 } from "zod";
|
|
204
204
|
import { z as z196 } from "zod";
|
|
205
|
-
import { z as
|
|
205
|
+
import { z as z197 } from "zod";
|
|
206
206
|
import { z as z199 } from "zod";
|
|
207
207
|
import { z as z200 } from "zod";
|
|
208
208
|
import { z as z201 } from "zod";
|
|
209
209
|
import { z as z202 } from "zod";
|
|
210
210
|
import { z as z203 } from "zod";
|
|
211
211
|
import { z as z204 } from "zod";
|
|
212
|
-
import { z as z206 } from "zod";
|
|
213
212
|
import { z as z205 } from "zod";
|
|
214
213
|
import { z as z207 } from "zod";
|
|
214
|
+
import { z as z206 } from "zod";
|
|
215
215
|
import { z as z208 } from "zod";
|
|
216
216
|
import { z as z209 } from "zod";
|
|
217
217
|
import { z as z210 } from "zod";
|
|
218
218
|
import { z as z211 } from "zod";
|
|
219
219
|
import { z as z212 } from "zod";
|
|
220
220
|
import { z as z213 } from "zod";
|
|
221
|
-
import z214 from "zod";
|
|
222
|
-
import
|
|
221
|
+
import { z as z214 } from "zod";
|
|
222
|
+
import z215 from "zod";
|
|
223
|
+
import { z as z216 } from "zod";
|
|
223
224
|
var __defProp2 = Object.defineProperty;
|
|
224
225
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
225
226
|
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -382,7 +383,7 @@ var PostStripePortalSessionOutputSchema = z9.object({
|
|
|
382
383
|
id: z9.string(),
|
|
383
384
|
url: z9.string().nullish()
|
|
384
385
|
});
|
|
385
|
-
var BillingIntervalSchema = z10.enum(["daily", "monthly", "
|
|
386
|
+
var BillingIntervalSchema = z10.enum(["daily", "monthly", "yearly"]);
|
|
386
387
|
var PriceSchema = z10.object({
|
|
387
388
|
stripePriceId: z10.string(),
|
|
388
389
|
stripeProductId: z10.string(),
|
|
@@ -4595,14 +4596,14 @@ var UserProfile = z143.object({
|
|
|
4595
4596
|
theme: nullishToOptional(UserTheme),
|
|
4596
4597
|
portalTheme: nullishToOptional(PortalTheme)
|
|
4597
4598
|
});
|
|
4598
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4599
|
-
avatar: true
|
|
4600
|
-
});
|
|
4601
4599
|
var UserTest = z144.object({
|
|
4602
4600
|
id: z144.string(),
|
|
4603
4601
|
email: z144.string()
|
|
4604
4602
|
});
|
|
4605
4603
|
var UserSource = z145.enum(["SignUp", "Invite", "SSO"]);
|
|
4604
|
+
var UserEmailSettings = z145.object({
|
|
4605
|
+
marketingEmails: z145.boolean()
|
|
4606
|
+
});
|
|
4606
4607
|
var User = z145.object({
|
|
4607
4608
|
id: z145.string(),
|
|
4608
4609
|
email: z145.string(),
|
|
@@ -4610,7 +4611,8 @@ var User = z145.object({
|
|
|
4610
4611
|
profile: UserProfile,
|
|
4611
4612
|
loggedOutAt: z145.coerce.date().optional(),
|
|
4612
4613
|
isProtected: z145.boolean(),
|
|
4613
|
-
source: UserSource.optional()
|
|
4614
|
+
source: UserSource.optional(),
|
|
4615
|
+
emailSettings: UserEmailSettings
|
|
4614
4616
|
});
|
|
4615
4617
|
var WorkspaceMembership = z146.object({
|
|
4616
4618
|
id: z146.string(),
|
|
@@ -5270,26 +5272,38 @@ var ForgeProjectIteration = z181.object({
|
|
|
5270
5272
|
previousIterationId: z181.string().optional(),
|
|
5271
5273
|
mergeMeta: ForgeProjectIterationMergeMeta.optional()
|
|
5272
5274
|
});
|
|
5273
|
-
var
|
|
5275
|
+
var ForgeRelationType = z182.enum(["Feature", "Document"]);
|
|
5276
|
+
var ForgeRelation = z182.object({
|
|
5277
|
+
id: z182.string(),
|
|
5274
5278
|
projectId: z182.string(),
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
artifactSections:
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5279
|
+
sourceItemId: z182.string().uuid(),
|
|
5280
|
+
sourceItemType: ForgeRelationType,
|
|
5281
|
+
targetItemId: z182.string().uuid(),
|
|
5282
|
+
targetItemType: ForgeRelationType,
|
|
5283
|
+
createdAt: z182.string()
|
|
5284
|
+
});
|
|
5285
|
+
var ForgeProjectRoom = Entity.extend({
|
|
5286
|
+
projectId: z183.string(),
|
|
5287
|
+
liveblocksId: z183.string()
|
|
5288
|
+
});
|
|
5289
|
+
var ForgeProjectRoomInitialState = z183.object({
|
|
5290
|
+
artifacts: z183.array(ForgeProjectArtifact),
|
|
5291
|
+
features: z183.array(ProjectFeature),
|
|
5292
|
+
artifactSections: z183.array(ForgeSection),
|
|
5293
|
+
featureSections: z183.array(ForgeSection),
|
|
5294
|
+
relations: z183.array(ForgeRelation)
|
|
5295
|
+
});
|
|
5296
|
+
var ForgeProjectRoomUpdate = z183.object({
|
|
5297
|
+
artifacts: z183.array(ForgeProjectArtifact).optional(),
|
|
5298
|
+
artifactIdsToDelete: z183.array(z183.string()).optional(),
|
|
5299
|
+
features: z183.array(ProjectFeature).optional(),
|
|
5300
|
+
featureIdsToDelete: z183.array(z183.string()).optional(),
|
|
5301
|
+
artifactSections: z183.array(ForgeSection).optional(),
|
|
5302
|
+
artifactSectionIdsToDelete: z183.array(z183.string()).optional(),
|
|
5303
|
+
featureSections: z183.array(ForgeSection).optional(),
|
|
5304
|
+
featureSectionIdsToDelete: z183.array(z183.string()).optional(),
|
|
5305
|
+
relations: z183.array(ForgeRelation).optional(),
|
|
5306
|
+
executedTransactionIds: z183.string().array().optional()
|
|
5293
5307
|
});
|
|
5294
5308
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
5295
5309
|
RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
|
|
@@ -5301,28 +5315,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
5301
5315
|
RoomTypeEnum2["ForgeProjectFeature"] = "forge-project-feature";
|
|
5302
5316
|
return RoomTypeEnum2;
|
|
5303
5317
|
})(RoomTypeEnum || {});
|
|
5304
|
-
var RoomTypeSchema =
|
|
5318
|
+
var RoomTypeSchema = z184.nativeEnum(RoomTypeEnum);
|
|
5305
5319
|
var RoomType = RoomTypeSchema.enum;
|
|
5306
5320
|
var WorkspaceRoom = Entity.extend({
|
|
5307
|
-
workspaceId:
|
|
5308
|
-
liveblocksId:
|
|
5321
|
+
workspaceId: z185.string(),
|
|
5322
|
+
liveblocksId: z185.string()
|
|
5309
5323
|
});
|
|
5310
|
-
var PublishedDocsDump =
|
|
5324
|
+
var PublishedDocsDump = z186.object({
|
|
5311
5325
|
documentation: PublishedDoc,
|
|
5312
5326
|
pages: PublishedDocPage.array()
|
|
5313
5327
|
});
|
|
5314
|
-
var DocumentationThreadDump =
|
|
5328
|
+
var DocumentationThreadDump = z187.object({
|
|
5315
5329
|
thread: DocumentationCommentThread,
|
|
5316
5330
|
comments: DocumentationComment.array()
|
|
5317
5331
|
});
|
|
5318
|
-
var DocumentationPageRoomDump =
|
|
5332
|
+
var DocumentationPageRoomDump = z187.object({
|
|
5319
5333
|
room: DocumentationPageRoom,
|
|
5320
5334
|
threads: DocumentationThreadDump.array()
|
|
5321
5335
|
});
|
|
5322
|
-
var DesignSystemVersionMultiplayerDump =
|
|
5336
|
+
var DesignSystemVersionMultiplayerDump = z187.object({
|
|
5323
5337
|
documentationPages: DocumentationPageRoomDump.array()
|
|
5324
5338
|
});
|
|
5325
|
-
var DesignSystemVersionDump =
|
|
5339
|
+
var DesignSystemVersionDump = z187.object({
|
|
5326
5340
|
version: DesignSystemVersion,
|
|
5327
5341
|
brands: Brand.array(),
|
|
5328
5342
|
elements: DesignElement.array(),
|
|
@@ -5335,50 +5349,50 @@ var DesignSystemVersionDump = z186.object({
|
|
|
5335
5349
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
5336
5350
|
assetReferences: AssetReference.array()
|
|
5337
5351
|
});
|
|
5338
|
-
var DesignSystemDump =
|
|
5352
|
+
var DesignSystemDump = z188.object({
|
|
5339
5353
|
designSystem: DesignSystem,
|
|
5340
5354
|
dataSources: DataSource.array(),
|
|
5341
5355
|
versions: DesignSystemVersionDump.array(),
|
|
5342
5356
|
customDomain: CustomDomain.optional(),
|
|
5343
5357
|
files: Asset.array()
|
|
5344
5358
|
});
|
|
5345
|
-
var IntegrationDesignSystem =
|
|
5346
|
-
designSystemId:
|
|
5347
|
-
brandId:
|
|
5348
|
-
title:
|
|
5349
|
-
userId:
|
|
5350
|
-
date:
|
|
5351
|
-
});
|
|
5352
|
-
var IntegrationCredentialsType =
|
|
5353
|
-
var IntegrationCredentialsState =
|
|
5354
|
-
var IntegrationCredentialsProfile =
|
|
5355
|
-
id: nullishToOptional(
|
|
5356
|
-
email: nullishToOptional(
|
|
5357
|
-
handle: nullishToOptional(
|
|
5358
|
-
type: nullishToOptional(
|
|
5359
|
-
avatarUrl: nullishToOptional(
|
|
5360
|
-
organization: nullishToOptional(
|
|
5361
|
-
collection: nullishToOptional(
|
|
5362
|
-
});
|
|
5363
|
-
var IntegrationCredentials =
|
|
5364
|
-
id:
|
|
5359
|
+
var IntegrationDesignSystem = z189.object({
|
|
5360
|
+
designSystemId: z189.string(),
|
|
5361
|
+
brandId: z189.string(),
|
|
5362
|
+
title: z189.string().optional(),
|
|
5363
|
+
userId: z189.string().optional(),
|
|
5364
|
+
date: z189.coerce.date().optional()
|
|
5365
|
+
});
|
|
5366
|
+
var IntegrationCredentialsType = z189.enum(["OAuth2", "PAT"]);
|
|
5367
|
+
var IntegrationCredentialsState = z189.enum(["Active", "Inactive"]);
|
|
5368
|
+
var IntegrationCredentialsProfile = z189.object({
|
|
5369
|
+
id: nullishToOptional(z189.string()),
|
|
5370
|
+
email: nullishToOptional(z189.string()),
|
|
5371
|
+
handle: nullishToOptional(z189.string()),
|
|
5372
|
+
type: nullishToOptional(z189.string()),
|
|
5373
|
+
avatarUrl: nullishToOptional(z189.string()),
|
|
5374
|
+
organization: nullishToOptional(z189.string()),
|
|
5375
|
+
collection: nullishToOptional(z189.string())
|
|
5376
|
+
});
|
|
5377
|
+
var IntegrationCredentials = z189.object({
|
|
5378
|
+
id: z189.string(),
|
|
5365
5379
|
type: IntegrationCredentialsType,
|
|
5366
|
-
integrationId:
|
|
5367
|
-
accessToken:
|
|
5368
|
-
userId:
|
|
5369
|
-
createdAt:
|
|
5370
|
-
refreshToken:
|
|
5371
|
-
tokenName:
|
|
5372
|
-
expiresAt:
|
|
5373
|
-
refreshedAt:
|
|
5374
|
-
username:
|
|
5375
|
-
appInstallationId:
|
|
5380
|
+
integrationId: z189.string(),
|
|
5381
|
+
accessToken: z189.string(),
|
|
5382
|
+
userId: z189.string(),
|
|
5383
|
+
createdAt: z189.coerce.date(),
|
|
5384
|
+
refreshToken: z189.string().optional(),
|
|
5385
|
+
tokenName: z189.string().optional(),
|
|
5386
|
+
expiresAt: z189.coerce.date().optional(),
|
|
5387
|
+
refreshedAt: z189.coerce.date().optional(),
|
|
5388
|
+
username: z189.string().optional(),
|
|
5389
|
+
appInstallationId: z189.string().optional(),
|
|
5376
5390
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5377
|
-
customUrl:
|
|
5391
|
+
customUrl: z189.string().optional(),
|
|
5378
5392
|
state: IntegrationCredentialsState,
|
|
5379
5393
|
user: UserMinified.optional()
|
|
5380
5394
|
});
|
|
5381
|
-
var ExtendedIntegrationType =
|
|
5395
|
+
var ExtendedIntegrationType = z189.enum([
|
|
5382
5396
|
"Figma",
|
|
5383
5397
|
"Github",
|
|
5384
5398
|
"Gitlab",
|
|
@@ -5389,26 +5403,26 @@ var ExtendedIntegrationType = z188.enum([
|
|
|
5389
5403
|
]);
|
|
5390
5404
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5391
5405
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5392
|
-
var Integration =
|
|
5393
|
-
id:
|
|
5394
|
-
workspaceId:
|
|
5406
|
+
var Integration = z189.object({
|
|
5407
|
+
id: z189.string(),
|
|
5408
|
+
workspaceId: z189.string(),
|
|
5395
5409
|
type: IntegrationType,
|
|
5396
|
-
createdAt:
|
|
5397
|
-
integrationCredentials:
|
|
5398
|
-
});
|
|
5399
|
-
var IntegrationToken =
|
|
5400
|
-
access_token:
|
|
5401
|
-
refresh_token:
|
|
5402
|
-
expires_in:
|
|
5403
|
-
token_type:
|
|
5404
|
-
token_name:
|
|
5405
|
-
token_azure_organization_name:
|
|
5410
|
+
createdAt: z189.coerce.date(),
|
|
5411
|
+
integrationCredentials: z189.array(IntegrationCredentials).optional()
|
|
5412
|
+
});
|
|
5413
|
+
var IntegrationToken = z189.object({
|
|
5414
|
+
access_token: z189.string(),
|
|
5415
|
+
refresh_token: z189.string().optional(),
|
|
5416
|
+
expires_in: z189.union([z189.number().optional(), z189.string().optional()]),
|
|
5417
|
+
token_type: z189.string().optional(),
|
|
5418
|
+
token_name: z189.string().optional(),
|
|
5419
|
+
token_azure_organization_name: z189.string().optional(),
|
|
5406
5420
|
// Azure Cloud PAT only
|
|
5407
|
-
token_azure_collection_name:
|
|
5421
|
+
token_azure_collection_name: z189.string().optional(),
|
|
5408
5422
|
// Azure Server PAT only
|
|
5409
|
-
token_bitbucket_username:
|
|
5423
|
+
token_bitbucket_username: z189.string().optional(),
|
|
5410
5424
|
// Bitbucket only
|
|
5411
|
-
custom_url:
|
|
5425
|
+
custom_url: z189.string().optional().transform((value) => {
|
|
5412
5426
|
if (!value?.trim()) return void 0;
|
|
5413
5427
|
return formatCustomUrl(value);
|
|
5414
5428
|
})
|
|
@@ -5443,122 +5457,122 @@ function formatCustomUrl(url) {
|
|
|
5443
5457
|
}
|
|
5444
5458
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
5445
5459
|
}
|
|
5446
|
-
var WorkspaceDump =
|
|
5460
|
+
var WorkspaceDump = z190.object({
|
|
5447
5461
|
workspace: Workspace,
|
|
5448
5462
|
designSystems: DesignSystemDump.array(),
|
|
5449
5463
|
codeIntegration: CodeIntegrationDump,
|
|
5450
5464
|
integrations: Integration.array()
|
|
5451
5465
|
});
|
|
5452
|
-
var UserDump =
|
|
5466
|
+
var UserDump = z191.object({
|
|
5453
5467
|
user: User,
|
|
5454
5468
|
workspaces: WorkspaceDump.array()
|
|
5455
5469
|
});
|
|
5456
|
-
var NpmProxyToken =
|
|
5457
|
-
access:
|
|
5458
|
-
expiresAt:
|
|
5470
|
+
var NpmProxyToken = z192.object({
|
|
5471
|
+
access: z192.string(),
|
|
5472
|
+
expiresAt: z192.number()
|
|
5459
5473
|
});
|
|
5460
|
-
var SessionData =
|
|
5461
|
-
returnToUrl:
|
|
5474
|
+
var SessionData = z192.object({
|
|
5475
|
+
returnToUrl: z192.string().optional(),
|
|
5462
5476
|
npmProxyToken: NpmProxyToken.optional()
|
|
5463
5477
|
});
|
|
5464
|
-
var Session =
|
|
5465
|
-
id:
|
|
5466
|
-
expiresAt:
|
|
5467
|
-
userId:
|
|
5468
|
-
anonymousId:
|
|
5478
|
+
var Session = z192.object({
|
|
5479
|
+
id: z192.string(),
|
|
5480
|
+
expiresAt: z192.coerce.date(),
|
|
5481
|
+
userId: z192.string().nullable(),
|
|
5482
|
+
anonymousId: z192.string().nullable(),
|
|
5469
5483
|
data: SessionData
|
|
5470
5484
|
});
|
|
5471
|
-
var AuthTokens =
|
|
5472
|
-
access:
|
|
5473
|
-
refresh:
|
|
5485
|
+
var AuthTokens = z192.object({
|
|
5486
|
+
access: z192.string(),
|
|
5487
|
+
refresh: z192.string()
|
|
5474
5488
|
});
|
|
5475
|
-
var UserSession =
|
|
5489
|
+
var UserSession = z192.object({
|
|
5476
5490
|
session: Session,
|
|
5477
5491
|
user: User.nullable()
|
|
5478
5492
|
});
|
|
5479
|
-
var DesignSystemInviteEmailRecipient =
|
|
5480
|
-
email:
|
|
5493
|
+
var DesignSystemInviteEmailRecipient = z193.object({
|
|
5494
|
+
email: z193.string(),
|
|
5481
5495
|
role: WorkspaceRoleSchema
|
|
5482
5496
|
});
|
|
5483
|
-
var DesignSystemInviteEmailData =
|
|
5497
|
+
var DesignSystemInviteEmailData = z193.object({
|
|
5484
5498
|
workspace: Workspace,
|
|
5485
5499
|
designSystem: DesignSystem,
|
|
5486
5500
|
invitedBy: User,
|
|
5487
|
-
documentationDomain:
|
|
5501
|
+
documentationDomain: z193.string().optional()
|
|
5488
5502
|
});
|
|
5489
|
-
var WorkspaceInviteEmailRecipient =
|
|
5490
|
-
email:
|
|
5503
|
+
var WorkspaceInviteEmailRecipient = z194.object({
|
|
5504
|
+
email: z194.string(),
|
|
5491
5505
|
role: WorkspaceRoleSchema
|
|
5492
5506
|
});
|
|
5493
|
-
var WorkspaceInviteEmailData =
|
|
5507
|
+
var WorkspaceInviteEmailData = z194.object({
|
|
5494
5508
|
workspace: Workspace,
|
|
5495
5509
|
invitedBy: User,
|
|
5496
|
-
documentationDomain:
|
|
5510
|
+
documentationDomain: z194.string().optional()
|
|
5497
5511
|
});
|
|
5498
|
-
var EventDataSourceImported =
|
|
5499
|
-
type:
|
|
5500
|
-
workspaceId: z194.string(),
|
|
5501
|
-
designSystemId: z194.string()
|
|
5502
|
-
});
|
|
5503
|
-
var EventVersionReleased = z195.object({
|
|
5504
|
-
type: z195.literal("DesignSystemVersionReleased"),
|
|
5512
|
+
var EventDataSourceImported = z195.object({
|
|
5513
|
+
type: z195.literal("DataSourceImported"),
|
|
5505
5514
|
workspaceId: z195.string(),
|
|
5506
|
-
designSystemId: z195.string()
|
|
5507
|
-
versionId: z195.string()
|
|
5515
|
+
designSystemId: z195.string()
|
|
5508
5516
|
});
|
|
5509
|
-
var
|
|
5510
|
-
type: z196.literal("
|
|
5517
|
+
var EventVersionReleased = z196.object({
|
|
5518
|
+
type: z196.literal("DesignSystemVersionReleased"),
|
|
5511
5519
|
workspaceId: z196.string(),
|
|
5512
5520
|
designSystemId: z196.string(),
|
|
5513
5521
|
versionId: z196.string()
|
|
5514
5522
|
});
|
|
5515
|
-
var
|
|
5523
|
+
var EventDocumentationPublished = z197.object({
|
|
5524
|
+
type: z197.literal("DocumentationPublished"),
|
|
5525
|
+
workspaceId: z197.string(),
|
|
5526
|
+
designSystemId: z197.string(),
|
|
5527
|
+
versionId: z197.string()
|
|
5528
|
+
});
|
|
5529
|
+
var Event = z198.discriminatedUnion("type", [
|
|
5516
5530
|
EventVersionReleased,
|
|
5517
5531
|
EventDataSourceImported,
|
|
5518
5532
|
EventDocumentationPublished
|
|
5519
5533
|
]);
|
|
5520
|
-
var ExportJobDocumentationContext =
|
|
5521
|
-
isSingleVersionDocs:
|
|
5522
|
-
versionSlug:
|
|
5534
|
+
var ExportJobDocumentationContext = z199.object({
|
|
5535
|
+
isSingleVersionDocs: z199.boolean(),
|
|
5536
|
+
versionSlug: z199.string(),
|
|
5523
5537
|
environment: PublishedDocEnvironment
|
|
5524
5538
|
});
|
|
5525
|
-
var ExportJobDebugContext =
|
|
5526
|
-
debugMode:
|
|
5527
|
-
concurrency:
|
|
5528
|
-
preloadData:
|
|
5529
|
-
concurrencyMode:
|
|
5530
|
-
cacheSdk:
|
|
5531
|
-
logSdkNetwork:
|
|
5532
|
-
profilerMode:
|
|
5533
|
-
});
|
|
5534
|
-
var ExportJobContext =
|
|
5535
|
-
apiUrl:
|
|
5536
|
-
accessToken:
|
|
5537
|
-
designSystemId:
|
|
5538
|
-
designSystemName:
|
|
5539
|
-
exporterId:
|
|
5540
|
-
versionId:
|
|
5541
|
-
brandId:
|
|
5542
|
-
themeId:
|
|
5543
|
-
themePersistentIds:
|
|
5544
|
-
previewMode:
|
|
5545
|
-
exporterName:
|
|
5539
|
+
var ExportJobDebugContext = z199.object({
|
|
5540
|
+
debugMode: z199.boolean().optional(),
|
|
5541
|
+
concurrency: z199.number().optional(),
|
|
5542
|
+
preloadData: z199.string().optional(),
|
|
5543
|
+
concurrencyMode: z199.string().optional(),
|
|
5544
|
+
cacheSdk: z199.string().optional(),
|
|
5545
|
+
logSdkNetwork: z199.boolean().optional(),
|
|
5546
|
+
profilerMode: z199.string().optional()
|
|
5547
|
+
});
|
|
5548
|
+
var ExportJobContext = z199.object({
|
|
5549
|
+
apiUrl: z199.string(),
|
|
5550
|
+
accessToken: z199.string(),
|
|
5551
|
+
designSystemId: z199.string(),
|
|
5552
|
+
designSystemName: z199.string(),
|
|
5553
|
+
exporterId: z199.string(),
|
|
5554
|
+
versionId: z199.string(),
|
|
5555
|
+
brandId: z199.string().optional(),
|
|
5556
|
+
themeId: z199.string().optional(),
|
|
5557
|
+
themePersistentIds: z199.string().array().optional(),
|
|
5558
|
+
previewMode: z199.boolean().optional(),
|
|
5559
|
+
exporterName: z199.string(),
|
|
5546
5560
|
documentation: ExportJobDocumentationContext.optional(),
|
|
5547
5561
|
debug: ExportJobDebugContext.optional()
|
|
5548
5562
|
});
|
|
5549
|
-
var ExportJobExporterConfiguration =
|
|
5550
|
-
exporterPackageUrl:
|
|
5563
|
+
var ExportJobExporterConfiguration = z199.object({
|
|
5564
|
+
exporterPackageUrl: z199.string(),
|
|
5551
5565
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
5552
5566
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
5553
5567
|
});
|
|
5554
|
-
var ExporterFunctionPayload =
|
|
5555
|
-
exportJobId:
|
|
5556
|
-
exportContextId:
|
|
5557
|
-
designSystemId:
|
|
5558
|
-
workspaceId:
|
|
5559
|
-
exporterId:
|
|
5568
|
+
var ExporterFunctionPayload = z200.object({
|
|
5569
|
+
exportJobId: z200.string(),
|
|
5570
|
+
exportContextId: z200.string(),
|
|
5571
|
+
designSystemId: z200.string(),
|
|
5572
|
+
workspaceId: z200.string(),
|
|
5573
|
+
exporterId: z200.string()
|
|
5560
5574
|
});
|
|
5561
|
-
var ExportJobDestinationType =
|
|
5575
|
+
var ExportJobDestinationType = z201.enum([
|
|
5562
5576
|
"s3",
|
|
5563
5577
|
"webhookUrl",
|
|
5564
5578
|
"github",
|
|
@@ -5567,31 +5581,31 @@ var ExportJobDestinationType = z200.enum([
|
|
|
5567
5581
|
"gitlab",
|
|
5568
5582
|
"bitbucket"
|
|
5569
5583
|
]);
|
|
5570
|
-
var ExportJobStatus =
|
|
5571
|
-
var ExportJobLogEntryType =
|
|
5572
|
-
var ExportJobLogEntry =
|
|
5573
|
-
id:
|
|
5574
|
-
time:
|
|
5584
|
+
var ExportJobStatus = z201.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
5585
|
+
var ExportJobLogEntryType = z201.enum(["success", "info", "warning", "error", "user"]);
|
|
5586
|
+
var ExportJobLogEntry = z201.object({
|
|
5587
|
+
id: z201.string().optional(),
|
|
5588
|
+
time: z201.coerce.date(),
|
|
5575
5589
|
type: ExportJobLogEntryType,
|
|
5576
|
-
message:
|
|
5590
|
+
message: z201.string()
|
|
5577
5591
|
});
|
|
5578
|
-
var ExportJobPullRequestDestinationResult =
|
|
5579
|
-
pullRequestUrl:
|
|
5580
|
-
sparseCheckoutUsed: nullishToOptional(
|
|
5592
|
+
var ExportJobPullRequestDestinationResult = z201.object({
|
|
5593
|
+
pullRequestUrl: z201.string(),
|
|
5594
|
+
sparseCheckoutUsed: nullishToOptional(z201.boolean())
|
|
5581
5595
|
});
|
|
5582
|
-
var ExportJobS3DestinationResult =
|
|
5583
|
-
bucket:
|
|
5584
|
-
urlPrefix:
|
|
5585
|
-
path:
|
|
5586
|
-
files:
|
|
5587
|
-
url: nullishToOptional(
|
|
5588
|
-
urls: nullishToOptional(
|
|
5596
|
+
var ExportJobS3DestinationResult = z201.object({
|
|
5597
|
+
bucket: z201.string(),
|
|
5598
|
+
urlPrefix: z201.string().optional(),
|
|
5599
|
+
path: z201.string(),
|
|
5600
|
+
files: z201.array(z201.string()),
|
|
5601
|
+
url: nullishToOptional(z201.string()),
|
|
5602
|
+
urls: nullishToOptional(z201.string().array())
|
|
5589
5603
|
});
|
|
5590
|
-
var ExportJobDocsDestinationResult =
|
|
5591
|
-
url:
|
|
5604
|
+
var ExportJobDocsDestinationResult = z201.object({
|
|
5605
|
+
url: z201.string()
|
|
5592
5606
|
});
|
|
5593
|
-
var ExportJobResult =
|
|
5594
|
-
error:
|
|
5607
|
+
var ExportJobResult = z201.object({
|
|
5608
|
+
error: z201.string().optional(),
|
|
5595
5609
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5596
5610
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5597
5611
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5600,25 +5614,25 @@ var ExportJobResult = z200.object({
|
|
|
5600
5614
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5601
5615
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5602
5616
|
});
|
|
5603
|
-
var ExportJob =
|
|
5604
|
-
id:
|
|
5605
|
-
createdAt:
|
|
5606
|
-
finishedAt:
|
|
5607
|
-
designSystemId:
|
|
5608
|
-
designSystemVersionId:
|
|
5609
|
-
workspaceId:
|
|
5610
|
-
scheduleId:
|
|
5611
|
-
exporterId:
|
|
5612
|
-
brandId:
|
|
5613
|
-
themeId:
|
|
5614
|
-
themePersistentIds:
|
|
5615
|
-
estimatedExecutionTime:
|
|
5617
|
+
var ExportJob = z201.object({
|
|
5618
|
+
id: z201.string(),
|
|
5619
|
+
createdAt: z201.coerce.date(),
|
|
5620
|
+
finishedAt: z201.coerce.date().optional(),
|
|
5621
|
+
designSystemId: z201.string(),
|
|
5622
|
+
designSystemVersionId: z201.string(),
|
|
5623
|
+
workspaceId: z201.string(),
|
|
5624
|
+
scheduleId: z201.string().nullish(),
|
|
5625
|
+
exporterId: z201.string(),
|
|
5626
|
+
brandId: z201.string().optional(),
|
|
5627
|
+
themeId: z201.string().optional(),
|
|
5628
|
+
themePersistentIds: z201.string().array().optional(),
|
|
5629
|
+
estimatedExecutionTime: z201.number().optional(),
|
|
5616
5630
|
status: ExportJobStatus,
|
|
5617
5631
|
result: ExportJobResult.optional(),
|
|
5618
|
-
createdByUserId:
|
|
5632
|
+
createdByUserId: z201.string().optional(),
|
|
5619
5633
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
5620
|
-
previewMode:
|
|
5621
|
-
exportContextId:
|
|
5634
|
+
previewMode: z201.boolean().optional(),
|
|
5635
|
+
exportContextId: z201.string().optional().nullable(),
|
|
5622
5636
|
// Destinations
|
|
5623
5637
|
...ExportDestinationsMap.shape
|
|
5624
5638
|
});
|
|
@@ -5632,25 +5646,25 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5632
5646
|
themeId: true,
|
|
5633
5647
|
brandId: true
|
|
5634
5648
|
}).extend({
|
|
5635
|
-
destinations:
|
|
5649
|
+
destinations: z201.array(ExportJobDestinationType),
|
|
5636
5650
|
docsEnvironment: PublishedDocEnvironment,
|
|
5637
|
-
selectivePublishing:
|
|
5651
|
+
selectivePublishing: z201.boolean().optional()
|
|
5638
5652
|
}).partial();
|
|
5639
|
-
var ExporterType2 =
|
|
5640
|
-
var ListExporterQuery =
|
|
5641
|
-
limit:
|
|
5642
|
-
offset:
|
|
5653
|
+
var ExporterType2 = z202.enum(["documentation", "code"]);
|
|
5654
|
+
var ListExporterQuery = z202.object({
|
|
5655
|
+
limit: z202.number().optional(),
|
|
5656
|
+
offset: z202.number().optional(),
|
|
5643
5657
|
type: ExporterType2.optional(),
|
|
5644
|
-
search:
|
|
5658
|
+
search: z202.string().optional()
|
|
5645
5659
|
});
|
|
5646
|
-
var ExporterWorkspaceMembershipRole =
|
|
5647
|
-
var ExporterWorkspaceMembership =
|
|
5648
|
-
id:
|
|
5649
|
-
workspaceId:
|
|
5650
|
-
exporterId:
|
|
5660
|
+
var ExporterWorkspaceMembershipRole = z203.enum(["Owner", "OwnerArchived", "User"]);
|
|
5661
|
+
var ExporterWorkspaceMembership = z204.object({
|
|
5662
|
+
id: z204.string(),
|
|
5663
|
+
workspaceId: z204.string(),
|
|
5664
|
+
exporterId: z204.string(),
|
|
5651
5665
|
role: ExporterWorkspaceMembershipRole
|
|
5652
5666
|
});
|
|
5653
|
-
var FlaggedFeature =
|
|
5667
|
+
var FlaggedFeature = z205.enum([
|
|
5654
5668
|
"FigmaImporterV2",
|
|
5655
5669
|
"DisableImporter",
|
|
5656
5670
|
"VariablesOrder",
|
|
@@ -5672,14 +5686,14 @@ var FlaggedFeature = z204.enum([
|
|
|
5672
5686
|
"ForgeE2BTemplate",
|
|
5673
5687
|
"ForgeOnDemandIterations"
|
|
5674
5688
|
]);
|
|
5675
|
-
var FeatureFlagMap =
|
|
5676
|
-
var FeatureFlag =
|
|
5677
|
-
id:
|
|
5689
|
+
var FeatureFlagMap = z205.record(FlaggedFeature, z205.boolean());
|
|
5690
|
+
var FeatureFlag = z205.object({
|
|
5691
|
+
id: z205.string(),
|
|
5678
5692
|
feature: FlaggedFeature,
|
|
5679
|
-
createdAt:
|
|
5680
|
-
enabled:
|
|
5681
|
-
designSystemId:
|
|
5682
|
-
data:
|
|
5693
|
+
createdAt: z205.coerce.date(),
|
|
5694
|
+
enabled: z205.boolean(),
|
|
5695
|
+
designSystemId: z205.string().optional(),
|
|
5696
|
+
data: z205.record(z205.any()).nullable().optional()
|
|
5683
5697
|
});
|
|
5684
5698
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5685
5699
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -5689,160 +5703,160 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5689
5703
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5690
5704
|
return OAuthProviderNames2;
|
|
5691
5705
|
})(OAuthProviderNames || {});
|
|
5692
|
-
var OAuthProviderSchema =
|
|
5706
|
+
var OAuthProviderSchema = z206.nativeEnum(OAuthProviderNames);
|
|
5693
5707
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5694
|
-
var ExternalOAuthRequest =
|
|
5695
|
-
id:
|
|
5708
|
+
var ExternalOAuthRequest = z207.object({
|
|
5709
|
+
id: z207.string(),
|
|
5696
5710
|
provider: OAuthProviderSchema,
|
|
5697
|
-
userId:
|
|
5698
|
-
state:
|
|
5699
|
-
createdAt:
|
|
5711
|
+
userId: z207.string(),
|
|
5712
|
+
state: z207.string(),
|
|
5713
|
+
createdAt: z207.coerce.date()
|
|
5700
5714
|
});
|
|
5701
|
-
var GitObjectsQuery =
|
|
5702
|
-
organization:
|
|
5715
|
+
var GitObjectsQuery = z208.object({
|
|
5716
|
+
organization: z208.string().optional(),
|
|
5703
5717
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5704
|
-
project:
|
|
5718
|
+
project: z208.string().optional(),
|
|
5705
5719
|
// Only for Bitbucket and Azure
|
|
5706
|
-
repository:
|
|
5720
|
+
repository: z208.string().optional(),
|
|
5707
5721
|
// For all providers. For Gitlab, it's called "project".
|
|
5708
|
-
branch:
|
|
5722
|
+
branch: z208.string().optional(),
|
|
5709
5723
|
// For all providers.
|
|
5710
|
-
user:
|
|
5724
|
+
user: z208.string().optional()
|
|
5711
5725
|
// Gitlab user
|
|
5712
5726
|
});
|
|
5713
|
-
var GitOrganization =
|
|
5714
|
-
id:
|
|
5715
|
-
name:
|
|
5716
|
-
url:
|
|
5717
|
-
slug:
|
|
5727
|
+
var GitOrganization = z208.object({
|
|
5728
|
+
id: z208.string(),
|
|
5729
|
+
name: z208.string(),
|
|
5730
|
+
url: z208.string(),
|
|
5731
|
+
slug: z208.string()
|
|
5718
5732
|
});
|
|
5719
|
-
var GitProject =
|
|
5720
|
-
id:
|
|
5721
|
-
name:
|
|
5722
|
-
url:
|
|
5723
|
-
slug:
|
|
5733
|
+
var GitProject = z208.object({
|
|
5734
|
+
id: z208.string(),
|
|
5735
|
+
name: z208.string(),
|
|
5736
|
+
url: z208.string(),
|
|
5737
|
+
slug: z208.string()
|
|
5724
5738
|
});
|
|
5725
|
-
var GitRepository =
|
|
5726
|
-
id:
|
|
5727
|
-
name:
|
|
5728
|
-
url:
|
|
5729
|
-
slug:
|
|
5739
|
+
var GitRepository = z208.object({
|
|
5740
|
+
id: z208.string(),
|
|
5741
|
+
name: z208.string(),
|
|
5742
|
+
url: z208.string(),
|
|
5743
|
+
slug: z208.string(),
|
|
5730
5744
|
/**
|
|
5731
5745
|
* Can be undefined when:
|
|
5732
5746
|
* - there are no branches in the repository yet
|
|
5733
5747
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5734
5748
|
*/
|
|
5735
|
-
defaultBranch:
|
|
5749
|
+
defaultBranch: z208.string().optional()
|
|
5736
5750
|
});
|
|
5737
|
-
var GitBranch =
|
|
5738
|
-
name:
|
|
5739
|
-
lastCommitId:
|
|
5751
|
+
var GitBranch = z208.object({
|
|
5752
|
+
name: z208.string(),
|
|
5753
|
+
lastCommitId: z208.string()
|
|
5740
5754
|
});
|
|
5741
|
-
var IntegrationTokenSchemaOld =
|
|
5742
|
-
id: z208.string(),
|
|
5743
|
-
provider: OAuthProviderSchema,
|
|
5744
|
-
scope: z208.string(),
|
|
5745
|
-
userId: z208.string(),
|
|
5746
|
-
accessToken: z208.string(),
|
|
5747
|
-
refreshToken: z208.string(),
|
|
5748
|
-
expiresAt: z208.coerce.date(),
|
|
5749
|
-
externalUserId: z208.string().nullish()
|
|
5750
|
-
});
|
|
5751
|
-
var WorkspaceOAuthRequestSchema = z209.object({
|
|
5755
|
+
var IntegrationTokenSchemaOld = z209.object({
|
|
5752
5756
|
id: z209.string(),
|
|
5753
|
-
workspaceId: z209.string(),
|
|
5754
5757
|
provider: OAuthProviderSchema,
|
|
5758
|
+
scope: z209.string(),
|
|
5755
5759
|
userId: z209.string(),
|
|
5756
|
-
|
|
5760
|
+
accessToken: z209.string(),
|
|
5761
|
+
refreshToken: z209.string(),
|
|
5762
|
+
expiresAt: z209.coerce.date(),
|
|
5763
|
+
externalUserId: z209.string().nullish()
|
|
5764
|
+
});
|
|
5765
|
+
var WorkspaceOAuthRequestSchema = z210.object({
|
|
5766
|
+
id: z210.string(),
|
|
5767
|
+
workspaceId: z210.string(),
|
|
5768
|
+
provider: OAuthProviderSchema,
|
|
5769
|
+
userId: z210.string(),
|
|
5770
|
+
createdAt: z210.coerce.date()
|
|
5757
5771
|
});
|
|
5758
|
-
var AnyRecord =
|
|
5772
|
+
var AnyRecord = z211.record(z211.any());
|
|
5759
5773
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5760
|
-
|
|
5761
|
-
tarball:
|
|
5774
|
+
z211.object({
|
|
5775
|
+
tarball: z211.string()
|
|
5762
5776
|
})
|
|
5763
5777
|
);
|
|
5764
5778
|
var NpmPackageVersion = AnyRecord.and(
|
|
5765
|
-
|
|
5779
|
+
z211.object({
|
|
5766
5780
|
dist: NpmPackageVersionDist
|
|
5767
5781
|
})
|
|
5768
5782
|
);
|
|
5769
5783
|
var NpmPackage = AnyRecord.and(
|
|
5770
|
-
|
|
5771
|
-
_id:
|
|
5772
|
-
name:
|
|
5784
|
+
z211.object({
|
|
5785
|
+
_id: z211.string(),
|
|
5786
|
+
name: z211.string(),
|
|
5773
5787
|
// e.g. "latest": "1.2.3"
|
|
5774
|
-
"dist-tags":
|
|
5788
|
+
"dist-tags": z211.record(z211.string(), z211.string()),
|
|
5775
5789
|
// "1.2.3": {...}
|
|
5776
|
-
versions:
|
|
5790
|
+
versions: z211.record(NpmPackageVersion)
|
|
5777
5791
|
})
|
|
5778
5792
|
);
|
|
5779
|
-
var NpmProxyTokenPayload =
|
|
5780
|
-
npmProxyRegistryConfigId:
|
|
5781
|
-
});
|
|
5782
|
-
var PageScreenshotInput =
|
|
5783
|
-
url:
|
|
5784
|
-
elementSelector:
|
|
5785
|
-
uploadUrl:
|
|
5786
|
-
viewportSize:
|
|
5787
|
-
width:
|
|
5788
|
-
height:
|
|
5793
|
+
var NpmProxyTokenPayload = z212.object({
|
|
5794
|
+
npmProxyRegistryConfigId: z212.string()
|
|
5795
|
+
});
|
|
5796
|
+
var PageScreenshotInput = z213.object({
|
|
5797
|
+
url: z213.string().url(),
|
|
5798
|
+
elementSelector: z213.string(),
|
|
5799
|
+
uploadUrl: z213.string().url(),
|
|
5800
|
+
viewportSize: z213.object({
|
|
5801
|
+
width: z213.number().positive(),
|
|
5802
|
+
height: z213.number().positive()
|
|
5789
5803
|
}).optional(),
|
|
5790
|
-
imageSize:
|
|
5791
|
-
width:
|
|
5792
|
-
height:
|
|
5804
|
+
imageSize: z213.object({
|
|
5805
|
+
width: z213.number().positive(),
|
|
5806
|
+
height: z213.number().positive()
|
|
5793
5807
|
}).optional(),
|
|
5794
|
-
supernovaAuth:
|
|
5795
|
-
accessToken:
|
|
5796
|
-
authPageUrl:
|
|
5808
|
+
supernovaAuth: z213.object({
|
|
5809
|
+
accessToken: z213.string(),
|
|
5810
|
+
authPageUrl: z213.string()
|
|
5797
5811
|
}).optional()
|
|
5798
5812
|
});
|
|
5799
|
-
var PageScreenshotOutput =
|
|
5800
|
-
|
|
5801
|
-
success:
|
|
5802
|
-
fileSize:
|
|
5813
|
+
var PageScreenshotOutput = z213.discriminatedUnion("success", [
|
|
5814
|
+
z213.object({
|
|
5815
|
+
success: z213.literal(true),
|
|
5816
|
+
fileSize: z213.number()
|
|
5803
5817
|
}),
|
|
5804
|
-
|
|
5805
|
-
success:
|
|
5806
|
-
error:
|
|
5818
|
+
z213.object({
|
|
5819
|
+
success: z213.literal(false),
|
|
5820
|
+
error: z213.string()
|
|
5807
5821
|
})
|
|
5808
5822
|
]);
|
|
5809
5823
|
var PortalSettingsTheme = UserTheme;
|
|
5810
|
-
var PortalSettingsSidebarLink =
|
|
5811
|
-
name:
|
|
5812
|
-
url:
|
|
5813
|
-
emoji:
|
|
5814
|
-
});
|
|
5815
|
-
var PortalSettingsSidebarSection =
|
|
5816
|
-
sectionName:
|
|
5817
|
-
links:
|
|
5818
|
-
});
|
|
5819
|
-
var PortalSettingsSidebar =
|
|
5820
|
-
var PortalSettings =
|
|
5821
|
-
id:
|
|
5822
|
-
workspaceId:
|
|
5823
|
-
enabledDesignSystemIds:
|
|
5824
|
-
enabledBrandPersistentIds:
|
|
5824
|
+
var PortalSettingsSidebarLink = z214.object({
|
|
5825
|
+
name: z214.string(),
|
|
5826
|
+
url: z214.string(),
|
|
5827
|
+
emoji: z214.string()
|
|
5828
|
+
});
|
|
5829
|
+
var PortalSettingsSidebarSection = z214.object({
|
|
5830
|
+
sectionName: z214.string(),
|
|
5831
|
+
links: z214.array(PortalSettingsSidebarLink)
|
|
5832
|
+
});
|
|
5833
|
+
var PortalSettingsSidebar = z214.array(PortalSettingsSidebarSection);
|
|
5834
|
+
var PortalSettings = z214.object({
|
|
5835
|
+
id: z214.string(),
|
|
5836
|
+
workspaceId: z214.string(),
|
|
5837
|
+
enabledDesignSystemIds: z214.array(z214.string()),
|
|
5838
|
+
enabledBrandPersistentIds: z214.array(z214.string()),
|
|
5825
5839
|
theme: PortalSettingsTheme.nullish(),
|
|
5826
5840
|
sidebar: PortalSettingsSidebar.nullish(),
|
|
5827
|
-
createdAt:
|
|
5828
|
-
updatedAt:
|
|
5829
|
-
});
|
|
5830
|
-
var SentryTraceHeaders =
|
|
5831
|
-
sentryTrace:
|
|
5832
|
-
baggage:
|
|
5833
|
-
});
|
|
5834
|
-
var PersonalAccessToken =
|
|
5835
|
-
id:
|
|
5836
|
-
userId:
|
|
5837
|
-
workspaceId:
|
|
5838
|
-
designSystemId:
|
|
5841
|
+
createdAt: z214.coerce.date(),
|
|
5842
|
+
updatedAt: z214.coerce.date()
|
|
5843
|
+
});
|
|
5844
|
+
var SentryTraceHeaders = z215.object({
|
|
5845
|
+
sentryTrace: z215.string(),
|
|
5846
|
+
baggage: z215.string()
|
|
5847
|
+
});
|
|
5848
|
+
var PersonalAccessToken = z216.object({
|
|
5849
|
+
id: z216.string(),
|
|
5850
|
+
userId: z216.string(),
|
|
5851
|
+
workspaceId: z216.string().optional(),
|
|
5852
|
+
designSystemId: z216.string().optional(),
|
|
5839
5853
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5840
|
-
name:
|
|
5841
|
-
hidden:
|
|
5842
|
-
token:
|
|
5843
|
-
scope:
|
|
5844
|
-
createdAt:
|
|
5845
|
-
expireAt:
|
|
5854
|
+
name: z216.string(),
|
|
5855
|
+
hidden: z216.boolean(),
|
|
5856
|
+
token: z216.string(),
|
|
5857
|
+
scope: z216.string().optional(),
|
|
5858
|
+
createdAt: z216.coerce.date(),
|
|
5859
|
+
expireAt: z216.coerce.date().optional()
|
|
5846
5860
|
});
|
|
5847
5861
|
|
|
5848
5862
|
// src/api/conversion/analytics/page-visits-to-dto.ts
|
|
@@ -6363,105 +6377,105 @@ function integrationCredentialToDto(credential) {
|
|
|
6363
6377
|
}
|
|
6364
6378
|
|
|
6365
6379
|
// src/api/dto/access-tokens/access-token.ts
|
|
6366
|
-
import { z as
|
|
6367
|
-
var DTOAccessToken =
|
|
6368
|
-
id:
|
|
6369
|
-
createdAt:
|
|
6370
|
-
name:
|
|
6371
|
-
scope:
|
|
6380
|
+
import { z as z217 } from "zod";
|
|
6381
|
+
var DTOAccessToken = z217.object({
|
|
6382
|
+
id: z217.string(),
|
|
6383
|
+
createdAt: z217.coerce.date(),
|
|
6384
|
+
name: z217.string(),
|
|
6385
|
+
scope: z217.string().optional()
|
|
6372
6386
|
});
|
|
6373
6387
|
var DTOAccessTokenFull = DTOAccessToken.extend({
|
|
6374
|
-
token:
|
|
6388
|
+
token: z217.string()
|
|
6375
6389
|
});
|
|
6376
|
-
var DTOAccessTokenListResponse =
|
|
6390
|
+
var DTOAccessTokenListResponse = z217.object({
|
|
6377
6391
|
tokens: DTOAccessToken.array()
|
|
6378
6392
|
});
|
|
6379
|
-
var DTOAccessTokenResponse =
|
|
6393
|
+
var DTOAccessTokenResponse = z217.object({
|
|
6380
6394
|
token: DTOAccessToken
|
|
6381
6395
|
});
|
|
6382
|
-
var DTOAccessTokenFullResponse =
|
|
6396
|
+
var DTOAccessTokenFullResponse = z217.object({
|
|
6383
6397
|
token: DTOAccessTokenFull
|
|
6384
6398
|
});
|
|
6385
|
-
var DTOAccessTokenCreatePayload =
|
|
6386
|
-
name:
|
|
6387
|
-
scope:
|
|
6399
|
+
var DTOAccessTokenCreatePayload = z217.object({
|
|
6400
|
+
name: z217.string(),
|
|
6401
|
+
scope: z217.string().optional()
|
|
6388
6402
|
});
|
|
6389
6403
|
|
|
6390
6404
|
// src/api/dto/aux/color.ts
|
|
6391
|
-
import { z as
|
|
6392
|
-
var DTOColorTokenInlineData =
|
|
6393
|
-
value:
|
|
6405
|
+
import { z as z218 } from "zod";
|
|
6406
|
+
var DTOColorTokenInlineData = z218.object({
|
|
6407
|
+
value: z218.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
6394
6408
|
});
|
|
6395
6409
|
|
|
6396
6410
|
// src/api/dto/aux/meta.ts
|
|
6397
|
-
import { z as
|
|
6398
|
-
var DTOObjectMeta =
|
|
6399
|
-
name:
|
|
6400
|
-
description:
|
|
6411
|
+
import { z as z219 } from "zod";
|
|
6412
|
+
var DTOObjectMeta = z219.object({
|
|
6413
|
+
name: z219.string().max(512),
|
|
6414
|
+
description: z219.string().max(2048).optional()
|
|
6401
6415
|
});
|
|
6402
6416
|
|
|
6403
6417
|
// src/api/dto/aux/pagination.ts
|
|
6404
|
-
import { z as
|
|
6405
|
-
var DTOPagination =
|
|
6406
|
-
limit:
|
|
6407
|
-
offset:
|
|
6418
|
+
import { z as z220 } from "zod";
|
|
6419
|
+
var DTOPagination = z220.object({
|
|
6420
|
+
limit: z220.string().optional(),
|
|
6421
|
+
offset: z220.string().optional()
|
|
6408
6422
|
});
|
|
6409
6423
|
|
|
6410
6424
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6411
6425
|
import { z as z266 } from "zod";
|
|
6412
6426
|
|
|
6413
6427
|
// src/api/dto/design-systems/brand.ts
|
|
6414
|
-
import { z as
|
|
6415
|
-
var DTOBrand =
|
|
6416
|
-
id:
|
|
6417
|
-
designSystemVersionId:
|
|
6418
|
-
persistentId:
|
|
6428
|
+
import { z as z221 } from "zod";
|
|
6429
|
+
var DTOBrand = z221.object({
|
|
6430
|
+
id: z221.string(),
|
|
6431
|
+
designSystemVersionId: z221.string(),
|
|
6432
|
+
persistentId: z221.string(),
|
|
6419
6433
|
meta: ObjectMeta
|
|
6420
6434
|
});
|
|
6421
|
-
var DTOBrandGetResponse =
|
|
6422
|
-
var DTOBrandCreateResponse =
|
|
6435
|
+
var DTOBrandGetResponse = z221.object({ brand: DTOBrand });
|
|
6436
|
+
var DTOBrandCreateResponse = z221.object({
|
|
6423
6437
|
brand: DTOBrand
|
|
6424
6438
|
});
|
|
6425
|
-
var DTOBrandsListResponse =
|
|
6426
|
-
var DTOBrandCreatePayload =
|
|
6427
|
-
persistentId:
|
|
6439
|
+
var DTOBrandsListResponse = z221.object({ brands: z221.array(DTOBrand) });
|
|
6440
|
+
var DTOBrandCreatePayload = z221.object({
|
|
6441
|
+
persistentId: z221.string().uuid(),
|
|
6428
6442
|
meta: DTOObjectMeta
|
|
6429
6443
|
});
|
|
6430
|
-
var DTOBrandUpdatePayload =
|
|
6444
|
+
var DTOBrandUpdatePayload = z221.object({
|
|
6431
6445
|
meta: DTOObjectMeta.optional(),
|
|
6432
|
-
persistentId:
|
|
6446
|
+
persistentId: z221.string()
|
|
6433
6447
|
});
|
|
6434
6448
|
|
|
6435
6449
|
// src/api/dto/design-systems/code-component.ts
|
|
6436
|
-
import { z as
|
|
6450
|
+
import { z as z222 } from "zod";
|
|
6437
6451
|
var DTOCodeComponentResolvedTypeKind = CodeComponentResolvedTypeKind;
|
|
6438
6452
|
var DTOCodeComponentResolvedType = CodeComponentResolvedType;
|
|
6439
6453
|
var DTOCodeComponentParentType = CodeComponentParentType;
|
|
6440
6454
|
var DTOCodeComponentProperty = CodeComponentProperty;
|
|
6441
6455
|
var DTOCodeComponent = CodeComponent;
|
|
6442
|
-
var DTOCodeComponentResponse =
|
|
6456
|
+
var DTOCodeComponentResponse = z222.object({
|
|
6443
6457
|
codeComponent: DTOCodeComponent
|
|
6444
6458
|
});
|
|
6445
|
-
var DTOCodeComponentListResponse =
|
|
6459
|
+
var DTOCodeComponentListResponse = z222.object({
|
|
6446
6460
|
codeComponents: DTOCodeComponent.array()
|
|
6447
6461
|
});
|
|
6448
|
-
var DTOCodeComponentCreateInput =
|
|
6449
|
-
persistentId:
|
|
6450
|
-
exportName:
|
|
6451
|
-
componentPath:
|
|
6452
|
-
description:
|
|
6453
|
-
properties:
|
|
6454
|
-
tags:
|
|
6462
|
+
var DTOCodeComponentCreateInput = z222.object({
|
|
6463
|
+
persistentId: z222.string(),
|
|
6464
|
+
exportName: z222.string(),
|
|
6465
|
+
componentPath: z222.string(),
|
|
6466
|
+
description: z222.string(),
|
|
6467
|
+
properties: z222.record(z222.string(), DTOCodeComponentProperty),
|
|
6468
|
+
tags: z222.record(z222.string(), z222.string()).nullable()
|
|
6455
6469
|
});
|
|
6456
|
-
var DTOCodeComponentsCreateInput =
|
|
6470
|
+
var DTOCodeComponentsCreateInput = z222.object({
|
|
6457
6471
|
codeComponents: DTOCodeComponentCreateInput.array()
|
|
6458
6472
|
});
|
|
6459
6473
|
var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
|
|
6460
6474
|
var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
|
|
6461
6475
|
var DTODependencyDefinition = DependencyDefinition;
|
|
6462
6476
|
var DTORegistry = Registry;
|
|
6463
|
-
var DTOAnalyzeCodeComponentsInPackageResponse =
|
|
6464
|
-
ok:
|
|
6477
|
+
var DTOAnalyzeCodeComponentsInPackageResponse = z222.object({
|
|
6478
|
+
ok: z222.literal(true)
|
|
6465
6479
|
});
|
|
6466
6480
|
var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
|
|
6467
6481
|
designSystemId: true,
|
|
@@ -6470,26 +6484,26 @@ var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit
|
|
|
6470
6484
|
});
|
|
6471
6485
|
|
|
6472
6486
|
// src/api/dto/design-systems/component.ts
|
|
6473
|
-
import { z as
|
|
6474
|
-
var DTODesignSystemComponent =
|
|
6475
|
-
id:
|
|
6476
|
-
persistentId:
|
|
6477
|
-
designSystemVersionId:
|
|
6478
|
-
brandId:
|
|
6487
|
+
import { z as z223 } from "zod";
|
|
6488
|
+
var DTODesignSystemComponent = z223.object({
|
|
6489
|
+
id: z223.string(),
|
|
6490
|
+
persistentId: z223.string(),
|
|
6491
|
+
designSystemVersionId: z223.string(),
|
|
6492
|
+
brandId: z223.string(),
|
|
6479
6493
|
meta: DTOObjectMeta,
|
|
6480
|
-
createdAt:
|
|
6481
|
-
updatedAt:
|
|
6494
|
+
createdAt: z223.coerce.date(),
|
|
6495
|
+
updatedAt: z223.coerce.date()
|
|
6482
6496
|
});
|
|
6483
|
-
var DTODesignSystemComponentResponse =
|
|
6497
|
+
var DTODesignSystemComponentResponse = z223.object({
|
|
6484
6498
|
designSystemComponent: DTODesignSystemComponent
|
|
6485
6499
|
});
|
|
6486
|
-
var DTODesignSystemComponentListResponse =
|
|
6500
|
+
var DTODesignSystemComponentListResponse = z223.object({
|
|
6487
6501
|
designSystemComponents: DTODesignSystemComponent.array()
|
|
6488
6502
|
});
|
|
6489
|
-
var DTODesignSystemComponentCreateInput =
|
|
6490
|
-
brandId:
|
|
6503
|
+
var DTODesignSystemComponentCreateInput = z223.object({
|
|
6504
|
+
brandId: z223.string(),
|
|
6491
6505
|
// Persistent ID,
|
|
6492
|
-
persistentId:
|
|
6506
|
+
persistentId: z223.string(),
|
|
6493
6507
|
meta: DTOObjectMeta
|
|
6494
6508
|
});
|
|
6495
6509
|
|
|
@@ -6497,60 +6511,70 @@ var DTODesignSystemComponentCreateInput = z222.object({
|
|
|
6497
6511
|
import { z as z226 } from "zod";
|
|
6498
6512
|
|
|
6499
6513
|
// src/api/dto/users/authenticated-user.ts
|
|
6500
|
-
import { z as
|
|
6514
|
+
import { z as z225 } from "zod";
|
|
6501
6515
|
|
|
6502
6516
|
// src/api/dto/users/user.ts
|
|
6503
|
-
import { z as
|
|
6504
|
-
var DTOUserProfile =
|
|
6505
|
-
name:
|
|
6506
|
-
nickname:
|
|
6507
|
-
avatar:
|
|
6508
|
-
});
|
|
6509
|
-
var DTOUser =
|
|
6510
|
-
id:
|
|
6511
|
-
email:
|
|
6517
|
+
import { z as z224 } from "zod";
|
|
6518
|
+
var DTOUserProfile = z224.object({
|
|
6519
|
+
name: z224.string(),
|
|
6520
|
+
nickname: z224.string().optional(),
|
|
6521
|
+
avatar: z224.string().optional()
|
|
6522
|
+
});
|
|
6523
|
+
var DTOUser = z224.object({
|
|
6524
|
+
id: z224.string(),
|
|
6525
|
+
email: z224.string(),
|
|
6512
6526
|
profile: DTOUserProfile
|
|
6513
6527
|
});
|
|
6514
|
-
var DTOUserGetResponse =
|
|
6528
|
+
var DTOUserGetResponse = z224.object({
|
|
6515
6529
|
user: DTOUser
|
|
6516
6530
|
});
|
|
6517
|
-
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
6518
6531
|
|
|
6519
6532
|
// src/api/dto/users/authenticated-user.ts
|
|
6520
6533
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6521
6534
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6522
6535
|
var DTOUserSource = UserSource;
|
|
6523
6536
|
var DTOUserTheme = UserTheme;
|
|
6524
|
-
var
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6537
|
+
var DTOUserPortalTheme = PortalTheme;
|
|
6538
|
+
var DTOUserOnboarding = z225.object({
|
|
6539
|
+
companyName: z225.string().optional(),
|
|
6540
|
+
numberOfPeopleInOrg: z225.string().optional(),
|
|
6541
|
+
numberOfPeopleInDesignTeam: z225.string().optional(),
|
|
6528
6542
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6529
|
-
jobTitle:
|
|
6530
|
-
phase:
|
|
6543
|
+
jobTitle: z225.string().optional(),
|
|
6544
|
+
phase: z225.string().optional(),
|
|
6531
6545
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6532
|
-
designSystemName:
|
|
6533
|
-
defaultDestination:
|
|
6534
|
-
isPageDraftOnboardingFinished:
|
|
6546
|
+
designSystemName: z225.string().optional(),
|
|
6547
|
+
defaultDestination: z225.string().optional(),
|
|
6548
|
+
isPageDraftOnboardingFinished: z225.boolean().optional(),
|
|
6549
|
+
figmaUrl: z225.string().optional(),
|
|
6550
|
+
isApprovalsOnboardingFinished: z225.boolean().optional()
|
|
6535
6551
|
});
|
|
6536
6552
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6537
6553
|
onboarding: DTOUserOnboarding.optional(),
|
|
6538
|
-
theme: DTOUserTheme.optional()
|
|
6554
|
+
theme: DTOUserTheme.optional(),
|
|
6555
|
+
portalTheme: DTOUserPortalTheme.optional()
|
|
6556
|
+
});
|
|
6557
|
+
var DTOUserEmailSettings = z225.object({
|
|
6558
|
+
marketingEmails: z225.boolean()
|
|
6539
6559
|
});
|
|
6540
6560
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6541
6561
|
profile: DTOAuthenticatedUserProfile,
|
|
6542
|
-
|
|
6543
|
-
|
|
6562
|
+
emailSettings: DTOUserEmailSettings,
|
|
6563
|
+
createdAt: z225.coerce.date(),
|
|
6564
|
+
loggedOutAt: z225.coerce.date().optional(),
|
|
6544
6565
|
source: DTOUserSource.optional()
|
|
6545
6566
|
});
|
|
6546
|
-
var
|
|
6547
|
-
|
|
6567
|
+
var DTOUserProfileUpdatePayload = DTOAuthenticatedUserProfile.partial().omit({
|
|
6568
|
+
avatar: true
|
|
6548
6569
|
});
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6570
|
+
var DTOUserEmailSettingsUpdatePayload = DTOUserEmailSettings.partial();
|
|
6571
|
+
var DTOUserUpdatePayload = z225.object({
|
|
6572
|
+
profile: DTOUserProfileUpdatePayload.optional(),
|
|
6573
|
+
emailSettings: DTOUserEmailSettingsUpdatePayload.optional(),
|
|
6574
|
+
avatarFileId: z225.string().optional()
|
|
6575
|
+
});
|
|
6576
|
+
var DTOAuthenticatedUserResponse = z225.object({
|
|
6577
|
+
user: DTOAuthenticatedUser
|
|
6554
6578
|
});
|
|
6555
6579
|
|
|
6556
6580
|
// src/api/dto/design-systems/contact.ts
|
|
@@ -7101,7 +7125,7 @@ import z239 from "zod";
|
|
|
7101
7125
|
var DTOWorkspaceRole = z239.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
7102
7126
|
var DTOWorkspaceSeatType = z239.enum(["Full", "Builder", "None"]);
|
|
7103
7127
|
var DTOWorkspaceBilledSeatType = z239.enum(["Full", "Builder"]);
|
|
7104
|
-
var DTOBillingInterval = z239.enum(["daily", "monthly", "
|
|
7128
|
+
var DTOBillingInterval = z239.enum(["daily", "monthly", "yearly"]);
|
|
7105
7129
|
var DTOProductCode = z239.enum(["free", "pro", "team", "company", "enterprise"]);
|
|
7106
7130
|
|
|
7107
7131
|
// src/api/dto/workspaces/billing.ts
|
|
@@ -7459,6 +7483,22 @@ var DTOSubscriptionResponse = z248.object({
|
|
|
7459
7483
|
creditBalance: DTOCreditBalance.optional(),
|
|
7460
7484
|
creditsPrices: DTOCreditsPrices
|
|
7461
7485
|
});
|
|
7486
|
+
var DTOSubscriptionUpdatePreview = z248.object({
|
|
7487
|
+
proration: z248.object({
|
|
7488
|
+
amount: z248.number()
|
|
7489
|
+
}),
|
|
7490
|
+
nextBillingCycle: z248.object({
|
|
7491
|
+
amount: z248.number()
|
|
7492
|
+
})
|
|
7493
|
+
});
|
|
7494
|
+
var DTOSubscriptionUpdatePreviewResponse = z248.object({
|
|
7495
|
+
preview: DTOSubscriptionUpdatePreview
|
|
7496
|
+
});
|
|
7497
|
+
var DTOSubscriptionUpdateInput = z248.object({
|
|
7498
|
+
additionalCredits: z248.number(),
|
|
7499
|
+
builderSeats: z248.number(),
|
|
7500
|
+
fullSeats: z248.number()
|
|
7501
|
+
});
|
|
7462
7502
|
|
|
7463
7503
|
// src/api/dto/workspaces/transfer-ownership.ts
|
|
7464
7504
|
import { z as z249 } from "zod";
|
|
@@ -7736,9 +7776,6 @@ var DTOUserNotificationSettingsResponse = z261.object({
|
|
|
7736
7776
|
notificationSettings: UserNotificationSettings
|
|
7737
7777
|
});
|
|
7738
7778
|
|
|
7739
|
-
// src/api/payloads/users/profile/update.ts
|
|
7740
|
-
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
7741
|
-
|
|
7742
7779
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
7743
7780
|
import { z as z262 } from "zod";
|
|
7744
7781
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
@@ -10397,14 +10434,19 @@ var DTOForgeProjectResponse = z330.object({
|
|
|
10397
10434
|
|
|
10398
10435
|
// src/api/dto/forge/relation.ts
|
|
10399
10436
|
import z331 from "zod";
|
|
10400
|
-
var
|
|
10401
|
-
|
|
10437
|
+
var DTOForgeRelationType = ForgeRelationType;
|
|
10438
|
+
var DTOForgeRelation = ForgeRelation;
|
|
10439
|
+
var DTOForgeRelationCreate = DTOForgeRelation.omit({ id: true, createdAt: true });
|
|
10440
|
+
var DTOForgeRelationDelete = z331.object({
|
|
10441
|
+
sourceItemId: z331.string().uuid(),
|
|
10442
|
+
targetItemId: z331.string().uuid()
|
|
10443
|
+
});
|
|
10444
|
+
var DTOForgeRelationListInput = z331.object({
|
|
10402
10445
|
projectId: z331.string(),
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
createdAt: z331.string()
|
|
10446
|
+
depth: z331.number().min(0).optional()
|
|
10447
|
+
});
|
|
10448
|
+
var DTOForgeRelationListResponse = z331.object({
|
|
10449
|
+
relations: z331.array(DTOForgeRelation)
|
|
10408
10450
|
});
|
|
10409
10451
|
|
|
10410
10452
|
// src/api/dto/forge/threads.ts
|
|
@@ -12400,7 +12442,38 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
12400
12442
|
};
|
|
12401
12443
|
|
|
12402
12444
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
12445
|
+
import { z as z353 } from "zod";
|
|
12446
|
+
|
|
12447
|
+
// src/api/endpoints/workspaces/subscription.ts
|
|
12403
12448
|
import { z as z352 } from "zod";
|
|
12449
|
+
var WorkspaceSubscriptionEndpoint = class {
|
|
12450
|
+
constructor(requestExecutor) {
|
|
12451
|
+
this.requestExecutor = requestExecutor;
|
|
12452
|
+
}
|
|
12453
|
+
get(workspaceId) {
|
|
12454
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, DTOSubscriptionResponse, {
|
|
12455
|
+
method: "GET"
|
|
12456
|
+
});
|
|
12457
|
+
}
|
|
12458
|
+
update(workspaceId, body) {
|
|
12459
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z352.any(), {
|
|
12460
|
+
method: "PUT",
|
|
12461
|
+
body
|
|
12462
|
+
});
|
|
12463
|
+
}
|
|
12464
|
+
previewUpdate(workspaceId, body) {
|
|
12465
|
+
return this.requestExecutor.json(
|
|
12466
|
+
`/workspaces/${workspaceId}/subscription/preview-update`,
|
|
12467
|
+
DTOSubscriptionUpdatePreviewResponse,
|
|
12468
|
+
{
|
|
12469
|
+
method: "POST",
|
|
12470
|
+
body
|
|
12471
|
+
}
|
|
12472
|
+
);
|
|
12473
|
+
}
|
|
12474
|
+
};
|
|
12475
|
+
|
|
12476
|
+
// src/api/endpoints/workspaces/workspaces.ts
|
|
12404
12477
|
var WorkspacesEndpoint = class {
|
|
12405
12478
|
constructor(requestExecutor) {
|
|
12406
12479
|
this.requestExecutor = requestExecutor;
|
|
@@ -12409,11 +12482,13 @@ var WorkspacesEndpoint = class {
|
|
|
12409
12482
|
__publicField(this, "npmRegistry");
|
|
12410
12483
|
__publicField(this, "chatThreads");
|
|
12411
12484
|
__publicField(this, "integrations");
|
|
12485
|
+
__publicField(this, "subscription");
|
|
12412
12486
|
this.members = new WorkspaceMembersEndpoint(requestExecutor);
|
|
12413
12487
|
this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
|
|
12414
12488
|
this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
|
|
12415
12489
|
this.npmRegistry = new WorkspaceNpmRegistryEndpoint(requestExecutor);
|
|
12416
12490
|
this.chatThreads = new WorkspaceChatThreadsEndpoint(requestExecutor);
|
|
12491
|
+
this.subscription = new WorkspaceSubscriptionEndpoint(requestExecutor);
|
|
12417
12492
|
}
|
|
12418
12493
|
create(body) {
|
|
12419
12494
|
return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
|
|
@@ -12432,10 +12507,7 @@ var WorkspacesEndpoint = class {
|
|
|
12432
12507
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
12433
12508
|
}
|
|
12434
12509
|
delete(workspaceId) {
|
|
12435
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
12436
|
-
}
|
|
12437
|
-
subscription(workspaceId) {
|
|
12438
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z352.any(), { method: "GET" });
|
|
12510
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z353.any(), { method: "DELETE" });
|
|
12439
12511
|
}
|
|
12440
12512
|
getPortalSettings(workspaceId) {
|
|
12441
12513
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
@@ -12593,9 +12665,9 @@ ${bodyText}`,
|
|
|
12593
12665
|
|
|
12594
12666
|
// src/api/transport/request-executor.ts
|
|
12595
12667
|
import fetch from "node-fetch";
|
|
12596
|
-
import { z as
|
|
12597
|
-
var ResponseWrapper =
|
|
12598
|
-
result:
|
|
12668
|
+
import { z as z354 } from "zod";
|
|
12669
|
+
var ResponseWrapper = z354.object({
|
|
12670
|
+
result: z354.record(z354.any())
|
|
12599
12671
|
});
|
|
12600
12672
|
var RequestExecutor = class {
|
|
12601
12673
|
constructor(testServerConfig) {
|
|
@@ -12676,25 +12748,25 @@ var SupernovaApiClient = class {
|
|
|
12676
12748
|
};
|
|
12677
12749
|
|
|
12678
12750
|
// src/events/design-system.ts
|
|
12679
|
-
import { z as
|
|
12680
|
-
var DTOEventFigmaNodesRendered =
|
|
12681
|
-
type:
|
|
12682
|
-
designSystemId:
|
|
12683
|
-
versionId:
|
|
12684
|
-
figmaNodePersistentIds:
|
|
12685
|
-
});
|
|
12686
|
-
var DTOEventDataSourcesImported =
|
|
12687
|
-
type:
|
|
12688
|
-
designSystemId:
|
|
12689
|
-
versionId:
|
|
12690
|
-
importJobId:
|
|
12751
|
+
import { z as z355 } from "zod";
|
|
12752
|
+
var DTOEventFigmaNodesRendered = z355.object({
|
|
12753
|
+
type: z355.literal("DesignSystem.FigmaNodesRendered"),
|
|
12754
|
+
designSystemId: z355.string(),
|
|
12755
|
+
versionId: z355.string(),
|
|
12756
|
+
figmaNodePersistentIds: z355.string().array()
|
|
12757
|
+
});
|
|
12758
|
+
var DTOEventDataSourcesImported = z355.object({
|
|
12759
|
+
type: z355.literal("DesignSystem.ImportJobFinished"),
|
|
12760
|
+
designSystemId: z355.string(),
|
|
12761
|
+
versionId: z355.string(),
|
|
12762
|
+
importJobId: z355.string(),
|
|
12691
12763
|
dataSourceType: DataSourceRemoteType,
|
|
12692
|
-
dataSourceIds:
|
|
12764
|
+
dataSourceIds: z355.string().array()
|
|
12693
12765
|
});
|
|
12694
12766
|
|
|
12695
12767
|
// src/events/event.ts
|
|
12696
|
-
import { z as
|
|
12697
|
-
var DTOEvent =
|
|
12768
|
+
import { z as z356 } from "zod";
|
|
12769
|
+
var DTOEvent = z356.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
12698
12770
|
|
|
12699
12771
|
// src/sync/docs-local-action-executor.ts
|
|
12700
12772
|
function applyActionsLocally(input) {
|
|
@@ -12990,7 +13062,7 @@ var LocalDocsElementActionExecutor = class {
|
|
|
12990
13062
|
import PQueue from "p-queue";
|
|
12991
13063
|
|
|
12992
13064
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
12993
|
-
import { z as
|
|
13065
|
+
import { z as z357 } from "zod";
|
|
12994
13066
|
|
|
12995
13067
|
// src/yjs/version-room/base.ts
|
|
12996
13068
|
var VersionRoomBaseYDoc = class {
|
|
@@ -13540,24 +13612,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
13540
13612
|
};
|
|
13541
13613
|
|
|
13542
13614
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
13543
|
-
var DocumentationHierarchySettings =
|
|
13544
|
-
routingVersion:
|
|
13545
|
-
isDraftFeatureAdopted:
|
|
13546
|
-
isApprovalFeatureEnabled:
|
|
13547
|
-
approvalRequiredForPublishing:
|
|
13615
|
+
var DocumentationHierarchySettings = z357.object({
|
|
13616
|
+
routingVersion: z357.string(),
|
|
13617
|
+
isDraftFeatureAdopted: z357.boolean(),
|
|
13618
|
+
isApprovalFeatureEnabled: z357.boolean(),
|
|
13619
|
+
approvalRequiredForPublishing: z357.boolean()
|
|
13548
13620
|
});
|
|
13549
13621
|
function yjsToDocumentationHierarchy(doc) {
|
|
13550
13622
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
13551
13623
|
}
|
|
13552
13624
|
|
|
13553
13625
|
// src/yjs/design-system-content/item-configuration.ts
|
|
13554
|
-
import { z as
|
|
13555
|
-
var DTODocumentationPageRoomHeaderData =
|
|
13556
|
-
title:
|
|
13626
|
+
import { z as z358 } from "zod";
|
|
13627
|
+
var DTODocumentationPageRoomHeaderData = z358.object({
|
|
13628
|
+
title: z358.string(),
|
|
13557
13629
|
configuration: DTODocumentationItemConfigurationV2
|
|
13558
13630
|
});
|
|
13559
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
13560
|
-
title:
|
|
13631
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z358.object({
|
|
13632
|
+
title: z358.string().optional(),
|
|
13561
13633
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
13562
13634
|
});
|
|
13563
13635
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -13592,9 +13664,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
13592
13664
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
13593
13665
|
|
|
13594
13666
|
// src/yjs/docs-editor/model/page.ts
|
|
13595
|
-
import { z as
|
|
13596
|
-
var DocumentationPageEditorModel =
|
|
13597
|
-
blocks:
|
|
13667
|
+
import { z as z359 } from "zod";
|
|
13668
|
+
var DocumentationPageEditorModel = z359.object({
|
|
13669
|
+
blocks: z359.array(DocumentationPageContentItem)
|
|
13598
13670
|
});
|
|
13599
13671
|
|
|
13600
13672
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -17271,7 +17343,7 @@ var blocks = [
|
|
|
17271
17343
|
|
|
17272
17344
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
17273
17345
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
17274
|
-
import { z as
|
|
17346
|
+
import { z as z360 } from "zod";
|
|
17275
17347
|
function yDocToPage(yDoc, definitions) {
|
|
17276
17348
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
17277
17349
|
}
|
|
@@ -17347,7 +17419,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
17347
17419
|
if (!id) return null;
|
|
17348
17420
|
return {
|
|
17349
17421
|
id,
|
|
17350
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
17422
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z360.string()) ?? "",
|
|
17351
17423
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
17352
17424
|
};
|
|
17353
17425
|
}
|
|
@@ -17381,7 +17453,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
17381
17453
|
});
|
|
17382
17454
|
}
|
|
17383
17455
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
17384
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
17456
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z360.string());
|
|
17385
17457
|
if (!definitionId) {
|
|
17386
17458
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
17387
17459
|
return [];
|
|
@@ -17422,7 +17494,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
17422
17494
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17423
17495
|
if (!id) return null;
|
|
17424
17496
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17425
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
17497
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z360.string().optional()));
|
|
17426
17498
|
return {
|
|
17427
17499
|
id,
|
|
17428
17500
|
type: "Block",
|
|
@@ -17545,9 +17617,9 @@ function parseRichTextAttribute(mark) {
|
|
|
17545
17617
|
return null;
|
|
17546
17618
|
}
|
|
17547
17619
|
function parseProsemirrorLink(mark) {
|
|
17548
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
17620
|
+
const href = getProsemirrorAttribute(mark, "href", z360.string().optional());
|
|
17549
17621
|
if (!href) return null;
|
|
17550
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
17622
|
+
const target = getProsemirrorAttribute(mark, "target", z360.string().optional());
|
|
17551
17623
|
const openInNewTab = target === "_blank";
|
|
17552
17624
|
if (href.startsWith("@")) {
|
|
17553
17625
|
return {
|
|
@@ -17566,9 +17638,9 @@ function parseProsemirrorLink(mark) {
|
|
|
17566
17638
|
}
|
|
17567
17639
|
}
|
|
17568
17640
|
function parseProsemirrorCommentHighlight(mark) {
|
|
17569
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
17641
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z360.string().optional());
|
|
17570
17642
|
if (!highlightId) return null;
|
|
17571
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
17643
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z360.boolean().optional()) ?? false;
|
|
17572
17644
|
return {
|
|
17573
17645
|
type: "Comment",
|
|
17574
17646
|
commentHighlightId: highlightId,
|
|
@@ -17579,7 +17651,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
17579
17651
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17580
17652
|
if (!id) return null;
|
|
17581
17653
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
17582
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
17654
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z360.boolean().optional()) !== false;
|
|
17583
17655
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
17584
17656
|
if (!tableChild) {
|
|
17585
17657
|
return emptyTable(id, variantId, 0);
|
|
@@ -17625,9 +17697,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
17625
17697
|
function parseAsTableCell(prosemirrorNode) {
|
|
17626
17698
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
17627
17699
|
if (!id) return null;
|
|
17628
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
17700
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z360.string().optional());
|
|
17629
17701
|
let columnWidth;
|
|
17630
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
17702
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z360.array(z360.number()).nullish());
|
|
17631
17703
|
if (columnWidthArray) {
|
|
17632
17704
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
17633
17705
|
}
|
|
@@ -17663,7 +17735,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
17663
17735
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
17664
17736
|
};
|
|
17665
17737
|
case "image":
|
|
17666
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17738
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z360.string());
|
|
17667
17739
|
if (!items) return null;
|
|
17668
17740
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
17669
17741
|
if (!parsedItems.success) return null;
|
|
@@ -17777,7 +17849,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
17777
17849
|
);
|
|
17778
17850
|
}
|
|
17779
17851
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
17780
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
17852
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z360.string());
|
|
17781
17853
|
if (!itemsString) return null;
|
|
17782
17854
|
const itemsJson = JSON.parse(itemsString);
|
|
17783
17855
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -17788,18 +17860,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
17788
17860
|
}
|
|
17789
17861
|
function parseAppearance(prosemirrorNode) {
|
|
17790
17862
|
let appearance = {};
|
|
17791
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
17863
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z360.string().optional());
|
|
17792
17864
|
if (rawAppearanceString) {
|
|
17793
17865
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
17794
17866
|
if (parsedAppearance.success) {
|
|
17795
17867
|
appearance = parsedAppearance.data;
|
|
17796
17868
|
}
|
|
17797
17869
|
}
|
|
17798
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
17870
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z360.number().optional());
|
|
17799
17871
|
if (columns) {
|
|
17800
17872
|
appearance.numberOfColumns = columns;
|
|
17801
17873
|
}
|
|
17802
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
17874
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z360.string().optional());
|
|
17803
17875
|
if (backgroundColor) {
|
|
17804
17876
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
17805
17877
|
if (parsedColor.success) {
|
|
@@ -17900,12 +17972,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
17900
17972
|
}
|
|
17901
17973
|
}
|
|
17902
17974
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
17903
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
17975
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z360.string());
|
|
17904
17976
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
17905
17977
|
return id;
|
|
17906
17978
|
}
|
|
17907
17979
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
17908
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
17980
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z360.string()));
|
|
17909
17981
|
}
|
|
17910
17982
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
17911
17983
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -18169,6 +18241,7 @@ var ForgeProjectRoomBaseYDoc = class {
|
|
|
18169
18241
|
const features = this.getFeatures();
|
|
18170
18242
|
const artifactSections = this.getArtifactSections();
|
|
18171
18243
|
const featureSections = this.getFeatureSections();
|
|
18244
|
+
const relations = this.getRelations();
|
|
18172
18245
|
const executedTransactionIds = this.getExecutedTransactionIds();
|
|
18173
18246
|
const isLoaded = true;
|
|
18174
18247
|
return {
|
|
@@ -18177,6 +18250,7 @@ var ForgeProjectRoomBaseYDoc = class {
|
|
|
18177
18250
|
features,
|
|
18178
18251
|
artifactSections,
|
|
18179
18252
|
featureSections,
|
|
18253
|
+
relations,
|
|
18180
18254
|
executedTransactionIds
|
|
18181
18255
|
};
|
|
18182
18256
|
}
|
|
@@ -18225,6 +18299,9 @@ var ForgeProjectRoomBaseYDoc = class {
|
|
|
18225
18299
|
get artifactSectionsYMap() {
|
|
18226
18300
|
return this.yDoc.getMap("forgeProjectArtifactSections");
|
|
18227
18301
|
}
|
|
18302
|
+
//
|
|
18303
|
+
// Feature Sections
|
|
18304
|
+
//
|
|
18228
18305
|
getFeatureSections() {
|
|
18229
18306
|
return this.getObjects(this.featureSectionsYMap, ForgeSection);
|
|
18230
18307
|
}
|
|
@@ -18238,6 +18315,18 @@ var ForgeProjectRoomBaseYDoc = class {
|
|
|
18238
18315
|
return this.yDoc.getMap("forgeProjectFeatureSections");
|
|
18239
18316
|
}
|
|
18240
18317
|
//
|
|
18318
|
+
// Relations
|
|
18319
|
+
//
|
|
18320
|
+
getRelations() {
|
|
18321
|
+
return this.getObjects(this.relationsYMap, ForgeRelation);
|
|
18322
|
+
}
|
|
18323
|
+
updateRelations(relations) {
|
|
18324
|
+
this.setObjects(this.relationsYMap, relations);
|
|
18325
|
+
}
|
|
18326
|
+
get relationsYMap() {
|
|
18327
|
+
return this.yDoc.getMap("forgeRelations");
|
|
18328
|
+
}
|
|
18329
|
+
//
|
|
18241
18330
|
// Executed transactions
|
|
18242
18331
|
//
|
|
18243
18332
|
updateExecutedTransactionIds(transactionIds) {
|
|
@@ -18291,6 +18380,7 @@ var BackendForgeProjectRoomYDoc = class {
|
|
|
18291
18380
|
transaction.artifactSections && yDoc.updateArtifactSections(transaction.artifactSections);
|
|
18292
18381
|
transaction.featureSectionIdsToDelete && yDoc.deleteFeatureSections(transaction.featureSectionIdsToDelete);
|
|
18293
18382
|
transaction.featureSections && yDoc.updateFeatureSections(transaction.featureSections);
|
|
18383
|
+
transaction.relations && yDoc.updateRelations(transaction.relations);
|
|
18294
18384
|
transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
|
|
18295
18385
|
});
|
|
18296
18386
|
}
|
|
@@ -19553,6 +19643,11 @@ export {
|
|
|
19553
19643
|
DTOForgeProjectTheme,
|
|
19554
19644
|
DTOForgeProjectUpdate,
|
|
19555
19645
|
DTOForgeRelation,
|
|
19646
|
+
DTOForgeRelationCreate,
|
|
19647
|
+
DTOForgeRelationDelete,
|
|
19648
|
+
DTOForgeRelationListInput,
|
|
19649
|
+
DTOForgeRelationListResponse,
|
|
19650
|
+
DTOForgeRelationType,
|
|
19556
19651
|
DTOForgeSection,
|
|
19557
19652
|
DTOForgeSectionCreateInput,
|
|
19558
19653
|
DTOForgeSectionDeleteInput,
|
|
@@ -19648,6 +19743,9 @@ export {
|
|
|
19648
19743
|
DTOStorybookUploadUrlResponse,
|
|
19649
19744
|
DTOSubscription,
|
|
19650
19745
|
DTOSubscriptionResponse,
|
|
19746
|
+
DTOSubscriptionUpdateInput,
|
|
19747
|
+
DTOSubscriptionUpdatePreview,
|
|
19748
|
+
DTOSubscriptionUpdatePreviewResponse,
|
|
19651
19749
|
DTOTheme,
|
|
19652
19750
|
DTOThemeCreatePayload,
|
|
19653
19751
|
DTOThemeListResponse,
|
|
@@ -19716,17 +19814,19 @@ export {
|
|
|
19716
19814
|
DTOUploadUrlItem,
|
|
19717
19815
|
DTOUser,
|
|
19718
19816
|
DTOUserDesignSystemsResponse,
|
|
19817
|
+
DTOUserEmailSettings,
|
|
19818
|
+
DTOUserEmailSettingsUpdatePayload,
|
|
19719
19819
|
DTOUserGetResponse,
|
|
19720
19820
|
DTOUserNotificationSettingsResponse,
|
|
19721
19821
|
DTOUserOnboarding,
|
|
19722
19822
|
DTOUserOnboardingDepartment,
|
|
19723
19823
|
DTOUserOnboardingJobLevel,
|
|
19824
|
+
DTOUserPortalTheme,
|
|
19724
19825
|
DTOUserProfile,
|
|
19725
|
-
DTOUserProfileUpdate,
|
|
19726
19826
|
DTOUserProfileUpdatePayload,
|
|
19727
|
-
DTOUserProfileUpdateResponse,
|
|
19728
19827
|
DTOUserSource,
|
|
19729
19828
|
DTOUserTheme,
|
|
19829
|
+
DTOUserUpdatePayload,
|
|
19730
19830
|
DTOUserWorkspaceMembership,
|
|
19731
19831
|
DTOUserWorkspaceMembershipsResponse,
|
|
19732
19832
|
DTOWorkspace,
|