@supernova-studio/client 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1193 -1181
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -180,14 +180,15 @@ import { z as z169 } from "zod";
|
|
|
180
180
|
import { z as z170 } from "zod";
|
|
181
181
|
import { z as z171 } from "zod";
|
|
182
182
|
import { z as z172 } from "zod";
|
|
183
|
-
import { z as z174 } from "zod";
|
|
184
183
|
import { z as z173 } from "zod";
|
|
185
184
|
import { z as z175 } from "zod";
|
|
185
|
+
import { z as z174 } from "zod";
|
|
186
186
|
import { z as z176 } from "zod";
|
|
187
187
|
import { z as z177 } from "zod";
|
|
188
188
|
import { z as z178 } from "zod";
|
|
189
189
|
import { z as z179 } from "zod";
|
|
190
190
|
import { z as z180 } from "zod";
|
|
191
|
+
import { z as z181 } from "zod";
|
|
191
192
|
var __defProp2 = Object.defineProperty;
|
|
192
193
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
193
194
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -4766,7 +4767,14 @@ var ExporterWorkspaceMembership = z171.object({
|
|
|
4766
4767
|
exporterId: z171.string(),
|
|
4767
4768
|
role: ExporterWorkspaceMembershipRole
|
|
4768
4769
|
});
|
|
4769
|
-
var
|
|
4770
|
+
var ExporterType2 = z172.enum(["documentation", "code"]);
|
|
4771
|
+
var ListExporterQuery = z172.object({
|
|
4772
|
+
limit: z172.number().optional(),
|
|
4773
|
+
offset: z172.number().optional(),
|
|
4774
|
+
type: ExporterType2.optional(),
|
|
4775
|
+
search: z172.string().optional()
|
|
4776
|
+
});
|
|
4777
|
+
var FlaggedFeature = z173.enum([
|
|
4770
4778
|
"FigmaImporterV2",
|
|
4771
4779
|
"ShadowOpacityOptional",
|
|
4772
4780
|
"DisableImporter",
|
|
@@ -4776,13 +4784,13 @@ var FlaggedFeature = z172.enum([
|
|
|
4776
4784
|
"ShadowPropsKeepAliases",
|
|
4777
4785
|
"NonCompatibleTypeChanges"
|
|
4778
4786
|
]);
|
|
4779
|
-
var FeatureFlagMap =
|
|
4780
|
-
var FeatureFlag =
|
|
4781
|
-
id:
|
|
4787
|
+
var FeatureFlagMap = z173.record(FlaggedFeature, z173.boolean());
|
|
4788
|
+
var FeatureFlag = z173.object({
|
|
4789
|
+
id: z173.string(),
|
|
4782
4790
|
feature: FlaggedFeature,
|
|
4783
|
-
createdAt:
|
|
4784
|
-
enabled:
|
|
4785
|
-
designSystemId:
|
|
4791
|
+
createdAt: z173.coerce.date(),
|
|
4792
|
+
enabled: z173.boolean(),
|
|
4793
|
+
designSystemId: z173.string().optional()
|
|
4786
4794
|
});
|
|
4787
4795
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4788
4796
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -4792,108 +4800,108 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4792
4800
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4793
4801
|
return OAuthProviderNames2;
|
|
4794
4802
|
})(OAuthProviderNames || {});
|
|
4795
|
-
var OAuthProviderSchema =
|
|
4803
|
+
var OAuthProviderSchema = z174.nativeEnum(OAuthProviderNames);
|
|
4796
4804
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4797
|
-
var ExternalOAuthRequest =
|
|
4798
|
-
id:
|
|
4805
|
+
var ExternalOAuthRequest = z175.object({
|
|
4806
|
+
id: z175.string(),
|
|
4799
4807
|
provider: OAuthProviderSchema,
|
|
4800
|
-
userId:
|
|
4801
|
-
state:
|
|
4802
|
-
createdAt:
|
|
4808
|
+
userId: z175.string(),
|
|
4809
|
+
state: z175.string(),
|
|
4810
|
+
createdAt: z175.coerce.date()
|
|
4803
4811
|
});
|
|
4804
|
-
var GitObjectsQuery =
|
|
4805
|
-
organization:
|
|
4812
|
+
var GitObjectsQuery = z176.object({
|
|
4813
|
+
organization: z176.string().optional(),
|
|
4806
4814
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4807
|
-
project:
|
|
4815
|
+
project: z176.string().optional(),
|
|
4808
4816
|
// Only for Bitbucket and Azure
|
|
4809
|
-
repository:
|
|
4817
|
+
repository: z176.string().optional(),
|
|
4810
4818
|
// For all providers. For Gitlab, it's called "project".
|
|
4811
|
-
branch:
|
|
4819
|
+
branch: z176.string().optional(),
|
|
4812
4820
|
// For all providers.
|
|
4813
|
-
user:
|
|
4821
|
+
user: z176.string().optional()
|
|
4814
4822
|
// Gitlab user
|
|
4815
4823
|
});
|
|
4816
|
-
var GitOrganization =
|
|
4817
|
-
id:
|
|
4818
|
-
name:
|
|
4819
|
-
url:
|
|
4820
|
-
slug:
|
|
4824
|
+
var GitOrganization = z176.object({
|
|
4825
|
+
id: z176.string(),
|
|
4826
|
+
name: z176.string(),
|
|
4827
|
+
url: z176.string(),
|
|
4828
|
+
slug: z176.string()
|
|
4821
4829
|
});
|
|
4822
|
-
var GitProject =
|
|
4823
|
-
id:
|
|
4824
|
-
name:
|
|
4825
|
-
url:
|
|
4826
|
-
slug:
|
|
4830
|
+
var GitProject = z176.object({
|
|
4831
|
+
id: z176.string(),
|
|
4832
|
+
name: z176.string(),
|
|
4833
|
+
url: z176.string(),
|
|
4834
|
+
slug: z176.string()
|
|
4827
4835
|
});
|
|
4828
|
-
var GitRepository =
|
|
4829
|
-
id:
|
|
4830
|
-
name:
|
|
4831
|
-
url:
|
|
4832
|
-
slug:
|
|
4836
|
+
var GitRepository = z176.object({
|
|
4837
|
+
id: z176.string(),
|
|
4838
|
+
name: z176.string(),
|
|
4839
|
+
url: z176.string(),
|
|
4840
|
+
slug: z176.string(),
|
|
4833
4841
|
/**
|
|
4834
4842
|
* Can be undefined when:
|
|
4835
4843
|
* - there are no branches in the repository yet
|
|
4836
4844
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4837
4845
|
*/
|
|
4838
|
-
defaultBranch:
|
|
4846
|
+
defaultBranch: z176.string().optional()
|
|
4839
4847
|
});
|
|
4840
|
-
var GitBranch =
|
|
4841
|
-
name:
|
|
4842
|
-
lastCommitId:
|
|
4848
|
+
var GitBranch = z176.object({
|
|
4849
|
+
name: z176.string(),
|
|
4850
|
+
lastCommitId: z176.string()
|
|
4843
4851
|
});
|
|
4844
|
-
var IntegrationTokenSchemaOld =
|
|
4845
|
-
id: z176.string(),
|
|
4846
|
-
provider: OAuthProviderSchema,
|
|
4847
|
-
scope: z176.string(),
|
|
4848
|
-
userId: z176.string(),
|
|
4849
|
-
accessToken: z176.string(),
|
|
4850
|
-
refreshToken: z176.string(),
|
|
4851
|
-
expiresAt: z176.coerce.date(),
|
|
4852
|
-
externalUserId: z176.string().nullish()
|
|
4853
|
-
});
|
|
4854
|
-
var WorkspaceOAuthRequestSchema = z177.object({
|
|
4852
|
+
var IntegrationTokenSchemaOld = z177.object({
|
|
4855
4853
|
id: z177.string(),
|
|
4856
|
-
workspaceId: z177.string(),
|
|
4857
4854
|
provider: OAuthProviderSchema,
|
|
4855
|
+
scope: z177.string(),
|
|
4858
4856
|
userId: z177.string(),
|
|
4859
|
-
|
|
4857
|
+
accessToken: z177.string(),
|
|
4858
|
+
refreshToken: z177.string(),
|
|
4859
|
+
expiresAt: z177.coerce.date(),
|
|
4860
|
+
externalUserId: z177.string().nullish()
|
|
4861
|
+
});
|
|
4862
|
+
var WorkspaceOAuthRequestSchema = z178.object({
|
|
4863
|
+
id: z178.string(),
|
|
4864
|
+
workspaceId: z178.string(),
|
|
4865
|
+
provider: OAuthProviderSchema,
|
|
4866
|
+
userId: z178.string(),
|
|
4867
|
+
createdAt: z178.coerce.date()
|
|
4860
4868
|
});
|
|
4861
|
-
var AnyRecord =
|
|
4869
|
+
var AnyRecord = z179.record(z179.any());
|
|
4862
4870
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4863
|
-
|
|
4864
|
-
tarball:
|
|
4871
|
+
z179.object({
|
|
4872
|
+
tarball: z179.string()
|
|
4865
4873
|
})
|
|
4866
4874
|
);
|
|
4867
4875
|
var NpmPackageVersion = AnyRecord.and(
|
|
4868
|
-
|
|
4876
|
+
z179.object({
|
|
4869
4877
|
dist: NpmPackageVersionDist
|
|
4870
4878
|
})
|
|
4871
4879
|
);
|
|
4872
4880
|
var NpmPackage = AnyRecord.and(
|
|
4873
|
-
|
|
4874
|
-
_id:
|
|
4875
|
-
name:
|
|
4881
|
+
z179.object({
|
|
4882
|
+
_id: z179.string(),
|
|
4883
|
+
name: z179.string(),
|
|
4876
4884
|
// e.g. "latest": "1.2.3"
|
|
4877
|
-
"dist-tags":
|
|
4885
|
+
"dist-tags": z179.record(z179.string(), z179.string()),
|
|
4878
4886
|
// "1.2.3": {...}
|
|
4879
|
-
versions:
|
|
4887
|
+
versions: z179.record(NpmPackageVersion)
|
|
4880
4888
|
})
|
|
4881
4889
|
);
|
|
4882
|
-
var NpmProxyTokenPayload =
|
|
4883
|
-
npmProxyRegistryConfigId:
|
|
4884
|
-
});
|
|
4885
|
-
var PersonalAccessToken =
|
|
4886
|
-
id:
|
|
4887
|
-
userId:
|
|
4888
|
-
workspaceId:
|
|
4889
|
-
designSystemId:
|
|
4890
|
+
var NpmProxyTokenPayload = z180.object({
|
|
4891
|
+
npmProxyRegistryConfigId: z180.string()
|
|
4892
|
+
});
|
|
4893
|
+
var PersonalAccessToken = z181.object({
|
|
4894
|
+
id: z181.string(),
|
|
4895
|
+
userId: z181.string(),
|
|
4896
|
+
workspaceId: z181.string().optional(),
|
|
4897
|
+
designSystemId: z181.string().optional(),
|
|
4890
4898
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4891
|
-
name:
|
|
4892
|
-
hidden:
|
|
4893
|
-
token:
|
|
4894
|
-
scope:
|
|
4895
|
-
createdAt:
|
|
4896
|
-
expireAt:
|
|
4899
|
+
name: z181.string(),
|
|
4900
|
+
hidden: z181.boolean(),
|
|
4901
|
+
token: z181.string(),
|
|
4902
|
+
scope: z181.string().optional(),
|
|
4903
|
+
createdAt: z181.coerce.date(),
|
|
4904
|
+
expireAt: z181.coerce.date().optional()
|
|
4897
4905
|
});
|
|
4898
4906
|
|
|
4899
4907
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
@@ -5315,93 +5323,93 @@ function integrationCredentialToDto(credential) {
|
|
|
5315
5323
|
}
|
|
5316
5324
|
|
|
5317
5325
|
// src/api/dto/aux/color.ts
|
|
5318
|
-
import { z as
|
|
5319
|
-
var DTOColorTokenInlineData =
|
|
5320
|
-
value:
|
|
5326
|
+
import { z as z182 } from "zod";
|
|
5327
|
+
var DTOColorTokenInlineData = z182.object({
|
|
5328
|
+
value: z182.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
5321
5329
|
});
|
|
5322
5330
|
|
|
5323
5331
|
// src/api/dto/aux/meta.ts
|
|
5324
|
-
import { z as
|
|
5325
|
-
var DTOObjectMeta =
|
|
5326
|
-
name:
|
|
5327
|
-
description:
|
|
5332
|
+
import { z as z183 } from "zod";
|
|
5333
|
+
var DTOObjectMeta = z183.object({
|
|
5334
|
+
name: z183.string().max(512),
|
|
5335
|
+
description: z183.string().max(2048).optional()
|
|
5328
5336
|
});
|
|
5329
5337
|
|
|
5330
5338
|
// src/api/dto/aux/pagination.ts
|
|
5331
|
-
import { z as
|
|
5332
|
-
var DTOPagination =
|
|
5333
|
-
limit:
|
|
5334
|
-
offset:
|
|
5339
|
+
import { z as z184 } from "zod";
|
|
5340
|
+
var DTOPagination = z184.object({
|
|
5341
|
+
limit: z184.string().optional(),
|
|
5342
|
+
offset: z184.string().optional()
|
|
5335
5343
|
});
|
|
5336
5344
|
|
|
5337
5345
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5338
|
-
import { z as
|
|
5346
|
+
import { z as z220 } from "zod";
|
|
5339
5347
|
|
|
5340
5348
|
// src/api/dto/design-systems/brand.ts
|
|
5341
|
-
import { z as
|
|
5342
|
-
var DTOBrand =
|
|
5343
|
-
id:
|
|
5344
|
-
designSystemVersionId:
|
|
5345
|
-
persistentId:
|
|
5349
|
+
import { z as z185 } from "zod";
|
|
5350
|
+
var DTOBrand = z185.object({
|
|
5351
|
+
id: z185.string(),
|
|
5352
|
+
designSystemVersionId: z185.string(),
|
|
5353
|
+
persistentId: z185.string(),
|
|
5346
5354
|
meta: ObjectMeta
|
|
5347
5355
|
});
|
|
5348
|
-
var DTOBrandGetResponse =
|
|
5349
|
-
var DTOBrandCreateResponse =
|
|
5356
|
+
var DTOBrandGetResponse = z185.object({ brand: DTOBrand });
|
|
5357
|
+
var DTOBrandCreateResponse = z185.object({
|
|
5350
5358
|
brand: DTOBrand
|
|
5351
5359
|
});
|
|
5352
|
-
var DTOBrandsListResponse =
|
|
5353
|
-
var DTOBrandCreatePayload =
|
|
5354
|
-
persistentId:
|
|
5360
|
+
var DTOBrandsListResponse = z185.object({ brands: z185.array(DTOBrand) });
|
|
5361
|
+
var DTOBrandCreatePayload = z185.object({
|
|
5362
|
+
persistentId: z185.string().uuid(),
|
|
5355
5363
|
meta: DTOObjectMeta
|
|
5356
5364
|
});
|
|
5357
|
-
var DTOBrandUpdatePayload =
|
|
5365
|
+
var DTOBrandUpdatePayload = z185.object({
|
|
5358
5366
|
meta: DTOObjectMeta.optional(),
|
|
5359
|
-
persistentId:
|
|
5367
|
+
persistentId: z185.string()
|
|
5360
5368
|
});
|
|
5361
5369
|
|
|
5362
5370
|
// src/api/dto/design-systems/component.ts
|
|
5363
|
-
import { z as
|
|
5364
|
-
var DTODesignSystemComponent =
|
|
5365
|
-
id:
|
|
5366
|
-
persistentId:
|
|
5367
|
-
designSystemVersionId:
|
|
5368
|
-
brandId:
|
|
5371
|
+
import { z as z186 } from "zod";
|
|
5372
|
+
var DTODesignSystemComponent = z186.object({
|
|
5373
|
+
id: z186.string(),
|
|
5374
|
+
persistentId: z186.string(),
|
|
5375
|
+
designSystemVersionId: z186.string(),
|
|
5376
|
+
brandId: z186.string(),
|
|
5369
5377
|
meta: DTOObjectMeta,
|
|
5370
|
-
createdAt:
|
|
5371
|
-
updatedAt:
|
|
5378
|
+
createdAt: z186.coerce.date(),
|
|
5379
|
+
updatedAt: z186.coerce.date()
|
|
5372
5380
|
});
|
|
5373
|
-
var DTODesignSystemComponentResponse =
|
|
5381
|
+
var DTODesignSystemComponentResponse = z186.object({
|
|
5374
5382
|
designSystemComponent: DTODesignSystemComponent
|
|
5375
5383
|
});
|
|
5376
|
-
var DTODesignSystemComponentListResponse =
|
|
5384
|
+
var DTODesignSystemComponentListResponse = z186.object({
|
|
5377
5385
|
designSystemComponents: DTODesignSystemComponent.array()
|
|
5378
5386
|
});
|
|
5379
|
-
var DTODesignSystemComponentCreateInput =
|
|
5380
|
-
brandId:
|
|
5387
|
+
var DTODesignSystemComponentCreateInput = z186.object({
|
|
5388
|
+
brandId: z186.string(),
|
|
5381
5389
|
// Persistent ID,
|
|
5382
|
-
persistentId:
|
|
5390
|
+
persistentId: z186.string(),
|
|
5383
5391
|
meta: DTOObjectMeta
|
|
5384
5392
|
});
|
|
5385
5393
|
|
|
5386
5394
|
// src/api/dto/design-systems/contact.ts
|
|
5387
|
-
import { z as
|
|
5395
|
+
import { z as z190 } from "zod";
|
|
5388
5396
|
|
|
5389
5397
|
// src/api/dto/users/authenticated-user.ts
|
|
5390
|
-
import { z as
|
|
5398
|
+
import { z as z188 } from "zod";
|
|
5391
5399
|
|
|
5392
5400
|
// src/api/dto/users/user.ts
|
|
5393
|
-
import { z as
|
|
5394
|
-
var DTOUserProfile =
|
|
5395
|
-
name:
|
|
5396
|
-
nickname:
|
|
5397
|
-
avatar:
|
|
5398
|
-
});
|
|
5399
|
-
var DTOUser =
|
|
5400
|
-
id:
|
|
5401
|
-
email:
|
|
5401
|
+
import { z as z187 } from "zod";
|
|
5402
|
+
var DTOUserProfile = z187.object({
|
|
5403
|
+
name: z187.string(),
|
|
5404
|
+
nickname: z187.string().optional(),
|
|
5405
|
+
avatar: z187.string().optional()
|
|
5406
|
+
});
|
|
5407
|
+
var DTOUser = z187.object({
|
|
5408
|
+
id: z187.string(),
|
|
5409
|
+
email: z187.string(),
|
|
5402
5410
|
profile: DTOUserProfile
|
|
5403
5411
|
});
|
|
5404
|
-
var DTOUserGetResponse =
|
|
5412
|
+
var DTOUserGetResponse = z187.object({
|
|
5405
5413
|
user: DTOUser
|
|
5406
5414
|
});
|
|
5407
5415
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5411,17 +5419,17 @@ var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
|
5411
5419
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5412
5420
|
var DTOUserSource = UserSource;
|
|
5413
5421
|
var DTOUserTheme = UserTheme;
|
|
5414
|
-
var DTOUserOnboarding =
|
|
5415
|
-
companyName:
|
|
5416
|
-
numberOfPeopleInOrg:
|
|
5417
|
-
numberOfPeopleInDesignTeam:
|
|
5422
|
+
var DTOUserOnboarding = z188.object({
|
|
5423
|
+
companyName: z188.string().optional(),
|
|
5424
|
+
numberOfPeopleInOrg: z188.string().optional(),
|
|
5425
|
+
numberOfPeopleInDesignTeam: z188.string().optional(),
|
|
5418
5426
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5419
|
-
jobTitle:
|
|
5420
|
-
phase:
|
|
5427
|
+
jobTitle: z188.string().optional(),
|
|
5428
|
+
phase: z188.string().optional(),
|
|
5421
5429
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5422
|
-
designSystemName:
|
|
5423
|
-
defaultDestination:
|
|
5424
|
-
isPageDraftOnboardingFinished:
|
|
5430
|
+
designSystemName: z188.string().optional(),
|
|
5431
|
+
defaultDestination: z188.string().optional(),
|
|
5432
|
+
isPageDraftOnboardingFinished: z188.boolean().optional()
|
|
5425
5433
|
});
|
|
5426
5434
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5427
5435
|
onboarding: DTOUserOnboarding.optional(),
|
|
@@ -5429,139 +5437,139 @@ var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
|
5429
5437
|
});
|
|
5430
5438
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5431
5439
|
profile: DTOAuthenticatedUserProfile,
|
|
5432
|
-
createdAt:
|
|
5433
|
-
loggedOutAt:
|
|
5440
|
+
createdAt: z188.coerce.date(),
|
|
5441
|
+
loggedOutAt: z188.coerce.date().optional(),
|
|
5434
5442
|
source: DTOUserSource.optional()
|
|
5435
5443
|
});
|
|
5436
|
-
var DTOAuthenticatedUserResponse =
|
|
5444
|
+
var DTOAuthenticatedUserResponse = z188.object({
|
|
5437
5445
|
user: DTOAuthenticatedUser
|
|
5438
5446
|
});
|
|
5439
5447
|
|
|
5440
5448
|
// src/api/dto/users/update.ts
|
|
5441
|
-
import { z as
|
|
5442
|
-
var DTOUserProfileUpdateResponse =
|
|
5449
|
+
import { z as z189 } from "zod";
|
|
5450
|
+
var DTOUserProfileUpdateResponse = z189.object({
|
|
5443
5451
|
user: User
|
|
5444
5452
|
});
|
|
5445
5453
|
|
|
5446
5454
|
// src/api/dto/design-systems/contact.ts
|
|
5447
|
-
var DTODesignSystemContactsResponse =
|
|
5448
|
-
contacts:
|
|
5449
|
-
workspace:
|
|
5450
|
-
designSystem:
|
|
5455
|
+
var DTODesignSystemContactsResponse = z190.object({
|
|
5456
|
+
contacts: z190.object({
|
|
5457
|
+
workspace: z190.array(DTOUser),
|
|
5458
|
+
designSystem: z190.array(DTOUser)
|
|
5451
5459
|
})
|
|
5452
5460
|
});
|
|
5453
5461
|
|
|
5454
5462
|
// src/api/dto/design-systems/data-source.ts
|
|
5455
|
-
import { z as
|
|
5463
|
+
import { z as z191 } from "zod";
|
|
5456
5464
|
var DTODataSourceFigmaScope = DataSourceFigmaScope;
|
|
5457
|
-
var DTODataSourceFigmaFileVersion =
|
|
5458
|
-
id:
|
|
5459
|
-
created_at:
|
|
5460
|
-
label:
|
|
5461
|
-
description:
|
|
5462
|
-
});
|
|
5463
|
-
var DTODataSourceFigmaCloud =
|
|
5464
|
-
fileId:
|
|
5465
|
+
var DTODataSourceFigmaFileVersion = z191.object({
|
|
5466
|
+
id: z191.string(),
|
|
5467
|
+
created_at: z191.coerce.date(),
|
|
5468
|
+
label: z191.string(),
|
|
5469
|
+
description: z191.string()
|
|
5470
|
+
});
|
|
5471
|
+
var DTODataSourceFigmaCloud = z191.object({
|
|
5472
|
+
fileId: z191.string(),
|
|
5465
5473
|
state: DataSourceFigmaState,
|
|
5466
5474
|
autoImportMode: DataSourceAutoImportMode,
|
|
5467
|
-
fileThumbnailUrl:
|
|
5475
|
+
fileThumbnailUrl: z191.string().optional(),
|
|
5468
5476
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5469
|
-
lastImportedAt:
|
|
5477
|
+
lastImportedAt: z191.coerce.date().nullish(),
|
|
5470
5478
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5471
|
-
lastUpdatesCheckedAt:
|
|
5472
|
-
ownerId:
|
|
5473
|
-
ownerUserName:
|
|
5474
|
-
preferredCredentialId:
|
|
5479
|
+
lastUpdatesCheckedAt: z191.date().nullish(),
|
|
5480
|
+
ownerId: z191.string(),
|
|
5481
|
+
ownerUserName: z191.string().optional(),
|
|
5482
|
+
preferredCredentialId: z191.string().optional(),
|
|
5475
5483
|
stats: DataSourceStats
|
|
5476
5484
|
});
|
|
5477
|
-
var DTODataSourceFigma =
|
|
5478
|
-
id:
|
|
5479
|
-
type:
|
|
5480
|
-
fileName:
|
|
5485
|
+
var DTODataSourceFigma = z191.object({
|
|
5486
|
+
id: z191.string(),
|
|
5487
|
+
type: z191.literal(DataSourceRemoteType.Enum.Figma),
|
|
5488
|
+
fileName: z191.string(),
|
|
5481
5489
|
scope: DTODataSourceFigmaScope,
|
|
5482
|
-
brandId:
|
|
5483
|
-
themeId:
|
|
5490
|
+
brandId: z191.string(),
|
|
5491
|
+
themeId: z191.string().nullish(),
|
|
5484
5492
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5485
5493
|
});
|
|
5486
|
-
var DTODataSourceTokenStudio =
|
|
5487
|
-
id:
|
|
5488
|
-
type:
|
|
5489
|
-
fileName:
|
|
5490
|
-
brandId:
|
|
5491
|
-
themeId:
|
|
5492
|
-
tokenStudio:
|
|
5493
|
-
settings:
|
|
5494
|
-
dryRun:
|
|
5495
|
-
verbose:
|
|
5496
|
-
preciseCopy:
|
|
5494
|
+
var DTODataSourceTokenStudio = z191.object({
|
|
5495
|
+
id: z191.string(),
|
|
5496
|
+
type: z191.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5497
|
+
fileName: z191.string(),
|
|
5498
|
+
brandId: z191.string(),
|
|
5499
|
+
themeId: z191.string().nullish(),
|
|
5500
|
+
tokenStudio: z191.object({
|
|
5501
|
+
settings: z191.object({
|
|
5502
|
+
dryRun: z191.boolean(),
|
|
5503
|
+
verbose: z191.boolean(),
|
|
5504
|
+
preciseCopy: z191.boolean()
|
|
5497
5505
|
}),
|
|
5498
|
-
connectionName:
|
|
5499
|
-
lastImportedAt:
|
|
5500
|
-
lastImportedResults:
|
|
5501
|
-
|
|
5502
|
-
mapping:
|
|
5503
|
-
tokenSets:
|
|
5504
|
-
supernovaBrand:
|
|
5505
|
-
supernovaTheme:
|
|
5506
|
+
connectionName: z191.string(),
|
|
5507
|
+
lastImportedAt: z191.coerce.date(),
|
|
5508
|
+
lastImportedResults: z191.array(
|
|
5509
|
+
z191.object({
|
|
5510
|
+
mapping: z191.object({
|
|
5511
|
+
tokenSets: z191.array(z191.string()),
|
|
5512
|
+
supernovaBrand: z191.string(),
|
|
5513
|
+
supernovaTheme: z191.string().optional()
|
|
5506
5514
|
}),
|
|
5507
|
-
isFailed:
|
|
5508
|
-
tokensCreated:
|
|
5509
|
-
tokensDeleted:
|
|
5510
|
-
tokensUpdated:
|
|
5515
|
+
isFailed: z191.boolean(),
|
|
5516
|
+
tokensCreated: z191.number(),
|
|
5517
|
+
tokensDeleted: z191.number(),
|
|
5518
|
+
tokensUpdated: z191.number()
|
|
5511
5519
|
})
|
|
5512
5520
|
)
|
|
5513
5521
|
})
|
|
5514
5522
|
});
|
|
5515
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5516
|
-
id:
|
|
5517
|
-
type:
|
|
5518
|
-
fileName:
|
|
5519
|
-
brandId:
|
|
5520
|
-
upload:
|
|
5521
|
-
remoteId:
|
|
5523
|
+
var DTODataSourceFigmaVariablesPlugin = z191.object({
|
|
5524
|
+
id: z191.string(),
|
|
5525
|
+
type: z191.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5526
|
+
fileName: z191.string(),
|
|
5527
|
+
brandId: z191.string(),
|
|
5528
|
+
upload: z191.object({
|
|
5529
|
+
remoteId: z191.string(),
|
|
5522
5530
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5523
|
-
lastImportedAt:
|
|
5531
|
+
lastImportedAt: z191.coerce.date().optional(),
|
|
5524
5532
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5525
|
-
isTokenTypeSplitEnabled:
|
|
5533
|
+
isTokenTypeSplitEnabled: z191.boolean()
|
|
5526
5534
|
}),
|
|
5527
|
-
figmaVariablesPlugin:
|
|
5528
|
-
fileId:
|
|
5529
|
-
lastImportedAt:
|
|
5535
|
+
figmaVariablesPlugin: z191.object({
|
|
5536
|
+
fileId: z191.string(),
|
|
5537
|
+
lastImportedAt: z191.coerce.date().optional(),
|
|
5530
5538
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5531
|
-
isTokenTypeSplitEnabled:
|
|
5532
|
-
isCollectionsMigrationCompleted:
|
|
5539
|
+
isTokenTypeSplitEnabled: z191.boolean(),
|
|
5540
|
+
isCollectionsMigrationCompleted: z191.boolean().default(false)
|
|
5533
5541
|
})
|
|
5534
5542
|
});
|
|
5535
|
-
var DTODataSource =
|
|
5543
|
+
var DTODataSource = z191.discriminatedUnion("type", [
|
|
5536
5544
|
DTODataSourceFigma,
|
|
5537
5545
|
DTODataSourceFigmaVariablesPlugin,
|
|
5538
5546
|
DTODataSourceTokenStudio
|
|
5539
5547
|
]);
|
|
5540
|
-
var DTODataSourcesListResponse =
|
|
5541
|
-
sources:
|
|
5548
|
+
var DTODataSourcesListResponse = z191.object({
|
|
5549
|
+
sources: z191.array(DTODataSource)
|
|
5542
5550
|
});
|
|
5543
|
-
var DTODataSourceResponse =
|
|
5551
|
+
var DTODataSourceResponse = z191.object({
|
|
5544
5552
|
source: DTODataSource
|
|
5545
5553
|
});
|
|
5546
|
-
var DTODataSourceFigmaCreatePayload =
|
|
5547
|
-
brandPersistentId:
|
|
5548
|
-
figmaFileUrl:
|
|
5554
|
+
var DTODataSourceFigmaCreatePayload = z191.object({
|
|
5555
|
+
brandPersistentId: z191.string(),
|
|
5556
|
+
figmaFileUrl: z191.string(),
|
|
5549
5557
|
scope: DTODataSourceFigmaScope,
|
|
5550
5558
|
autoImportMode: DataSourceAutoImportMode
|
|
5551
5559
|
});
|
|
5552
|
-
var DTODataSourceFigmaImportPayload =
|
|
5553
|
-
sourceIds:
|
|
5560
|
+
var DTODataSourceFigmaImportPayload = z191.object({
|
|
5561
|
+
sourceIds: z191.array(z191.string())
|
|
5554
5562
|
});
|
|
5555
5563
|
|
|
5556
5564
|
// src/api/dto/design-systems/design-system.ts
|
|
5557
|
-
import { z as
|
|
5565
|
+
import { z as z194 } from "zod";
|
|
5558
5566
|
|
|
5559
5567
|
// src/api/dto/design-systems/members.ts
|
|
5560
|
-
import { z as
|
|
5568
|
+
import { z as z193 } from "zod";
|
|
5561
5569
|
|
|
5562
5570
|
// src/api/dto/design-systems/role.ts
|
|
5563
|
-
import { z as
|
|
5564
|
-
var DTODesignSystemRole =
|
|
5571
|
+
import { z as z192 } from "zod";
|
|
5572
|
+
var DTODesignSystemRole = z192.enum([
|
|
5565
5573
|
WorkspaceRole.Admin,
|
|
5566
5574
|
WorkspaceRole.Contributor,
|
|
5567
5575
|
WorkspaceRole.Creator,
|
|
@@ -5569,29 +5577,29 @@ var DTODesignSystemRole = z191.enum([
|
|
|
5569
5577
|
]);
|
|
5570
5578
|
|
|
5571
5579
|
// src/api/dto/design-systems/members.ts
|
|
5572
|
-
var DTODesignSystemMember =
|
|
5573
|
-
userId:
|
|
5580
|
+
var DTODesignSystemMember = z193.object({
|
|
5581
|
+
userId: z193.string(),
|
|
5574
5582
|
/**
|
|
5575
5583
|
* Role that the member has in the design system,
|
|
5576
5584
|
* undefined if set to inherit from workspace
|
|
5577
5585
|
*/
|
|
5578
5586
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5579
5587
|
});
|
|
5580
|
-
var DTODesignSystemInvitation =
|
|
5581
|
-
id:
|
|
5582
|
-
workspaceInvitationId:
|
|
5588
|
+
var DTODesignSystemInvitation = z193.object({
|
|
5589
|
+
id: z193.string(),
|
|
5590
|
+
workspaceInvitationId: z193.string(),
|
|
5583
5591
|
/**
|
|
5584
5592
|
* Role that the invitation has in the design system,
|
|
5585
5593
|
* undefined if set to inherit from workspace
|
|
5586
5594
|
*/
|
|
5587
5595
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5588
5596
|
});
|
|
5589
|
-
var DTODesignSystemMemberListResponse =
|
|
5597
|
+
var DTODesignSystemMemberListResponse = z193.object({
|
|
5590
5598
|
members: DTODesignSystemMember.array(),
|
|
5591
5599
|
invitations: DTODesignSystemInvitation.array()
|
|
5592
5600
|
});
|
|
5593
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5594
|
-
ok:
|
|
5601
|
+
var DTODesignSystemMembersUpdateResponse = z193.object({
|
|
5602
|
+
ok: z193.literal(true)
|
|
5595
5603
|
});
|
|
5596
5604
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5597
5605
|
|
|
@@ -5602,14 +5610,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5602
5610
|
docExporterId: true
|
|
5603
5611
|
}).extend({
|
|
5604
5612
|
meta: ObjectMeta,
|
|
5605
|
-
docExporterId:
|
|
5606
|
-
sources:
|
|
5607
|
-
isPublic:
|
|
5613
|
+
docExporterId: z194.string(),
|
|
5614
|
+
sources: z194.array(z194.any()),
|
|
5615
|
+
isPublic: z194.literal(true),
|
|
5608
5616
|
/**
|
|
5609
5617
|
* Whether or not user who is requesting the design system
|
|
5610
5618
|
* has access to the design system's contents.
|
|
5611
5619
|
*/
|
|
5612
|
-
isAvailableToUser:
|
|
5620
|
+
isAvailableToUser: z194.boolean(),
|
|
5613
5621
|
/**
|
|
5614
5622
|
* @deprecated
|
|
5615
5623
|
*/
|
|
@@ -5620,17 +5628,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5620
5628
|
*/
|
|
5621
5629
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5622
5630
|
});
|
|
5623
|
-
var DTODesignSystemResponse =
|
|
5631
|
+
var DTODesignSystemResponse = z194.object({
|
|
5624
5632
|
designSystem: DTODesignSystem
|
|
5625
5633
|
});
|
|
5626
|
-
var DTODesignSystemsListResponse =
|
|
5634
|
+
var DTODesignSystemsListResponse = z194.object({
|
|
5627
5635
|
designSystems: DTODesignSystem.array()
|
|
5628
5636
|
});
|
|
5629
|
-
var DTODesignSystemCreateInput =
|
|
5630
|
-
workspaceId:
|
|
5637
|
+
var DTODesignSystemCreateInput = z194.object({
|
|
5638
|
+
workspaceId: z194.string(),
|
|
5631
5639
|
meta: ObjectMeta.optional(),
|
|
5632
|
-
name:
|
|
5633
|
-
description:
|
|
5640
|
+
name: z194.string().min(2).max(64).optional(),
|
|
5641
|
+
description: z194.string().max(1024).optional(),
|
|
5634
5642
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5635
5643
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5636
5644
|
usersToInvite: true,
|
|
@@ -5640,20 +5648,20 @@ var DTODesignSystemCreateInput = z193.object({
|
|
|
5640
5648
|
});
|
|
5641
5649
|
|
|
5642
5650
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5643
|
-
import { z as
|
|
5644
|
-
var DTODiffCountBase =
|
|
5645
|
-
created:
|
|
5646
|
-
updated:
|
|
5647
|
-
deleted:
|
|
5651
|
+
import { z as z195 } from "zod";
|
|
5652
|
+
var DTODiffCountBase = z195.object({
|
|
5653
|
+
created: z195.number(),
|
|
5654
|
+
updated: z195.number(),
|
|
5655
|
+
deleted: z195.number()
|
|
5648
5656
|
});
|
|
5649
|
-
var DTODesignElementsDataDiffResponse =
|
|
5657
|
+
var DTODesignElementsDataDiffResponse = z195.object({
|
|
5650
5658
|
tokens: DTODiffCountBase,
|
|
5651
5659
|
assets: DTODiffCountBase
|
|
5652
5660
|
});
|
|
5653
5661
|
|
|
5654
5662
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5655
|
-
import { z as
|
|
5656
|
-
var DimensionsVariableScopeSchema =
|
|
5663
|
+
import { z as z196 } from "zod";
|
|
5664
|
+
var DimensionsVariableScopeSchema = z196.enum([
|
|
5657
5665
|
"CORNER_RADIUS",
|
|
5658
5666
|
"WIDTH_HEIGHT",
|
|
5659
5667
|
"GAP",
|
|
@@ -5667,155 +5675,155 @@ var DimensionsVariableScopeSchema = z195.enum([
|
|
|
5667
5675
|
"PARAGRAPH_INDENT",
|
|
5668
5676
|
"FONT_WEIGHT"
|
|
5669
5677
|
]);
|
|
5670
|
-
var StringVariableScopeSchema =
|
|
5678
|
+
var StringVariableScopeSchema = z196.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5671
5679
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5672
5680
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5673
|
-
var VariableScope =
|
|
5674
|
-
var ReferencedVariableOrigin =
|
|
5675
|
-
name:
|
|
5676
|
-
remote:
|
|
5681
|
+
var VariableScope = z196.string();
|
|
5682
|
+
var ReferencedVariableOrigin = z196.object({
|
|
5683
|
+
name: z196.string(),
|
|
5684
|
+
remote: z196.boolean()
|
|
5677
5685
|
});
|
|
5678
|
-
var RGB =
|
|
5679
|
-
r:
|
|
5680
|
-
g:
|
|
5681
|
-
b:
|
|
5686
|
+
var RGB = z196.object({
|
|
5687
|
+
r: z196.number(),
|
|
5688
|
+
g: z196.number(),
|
|
5689
|
+
b: z196.number()
|
|
5682
5690
|
});
|
|
5683
5691
|
var RGBA = RGB.extend({
|
|
5684
|
-
a:
|
|
5685
|
-
});
|
|
5686
|
-
var VariableAlias =
|
|
5687
|
-
type:
|
|
5688
|
-
id:
|
|
5689
|
-
resolvedValue:
|
|
5690
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5691
|
-
});
|
|
5692
|
-
var VariableValue =
|
|
5693
|
-
var ResolvedVariableType =
|
|
5694
|
-
var Variable =
|
|
5695
|
-
id:
|
|
5696
|
-
name:
|
|
5697
|
-
key:
|
|
5698
|
-
variableCollectionId:
|
|
5692
|
+
a: z196.number()
|
|
5693
|
+
});
|
|
5694
|
+
var VariableAlias = z196.object({
|
|
5695
|
+
type: z196.literal("VARIABLE_ALIAS"),
|
|
5696
|
+
id: z196.string(),
|
|
5697
|
+
resolvedValue: z196.boolean().or(z196.number()).or(z196.string()).or(RGBA).or(RGB).optional(),
|
|
5698
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z196.null())
|
|
5699
|
+
});
|
|
5700
|
+
var VariableValue = z196.boolean().or(z196.number()).or(z196.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5701
|
+
var ResolvedVariableType = z196.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5702
|
+
var Variable = z196.object({
|
|
5703
|
+
id: z196.string(),
|
|
5704
|
+
name: z196.string(),
|
|
5705
|
+
key: z196.string(),
|
|
5706
|
+
variableCollectionId: z196.string(),
|
|
5699
5707
|
resolvedType: ResolvedVariableType,
|
|
5700
|
-
valuesByMode:
|
|
5701
|
-
remote:
|
|
5702
|
-
description:
|
|
5703
|
-
hiddenFromPublishing:
|
|
5704
|
-
scopes:
|
|
5705
|
-
codeSyntax:
|
|
5706
|
-
});
|
|
5707
|
-
var VariableMode =
|
|
5708
|
-
modeId:
|
|
5709
|
-
name:
|
|
5710
|
-
});
|
|
5711
|
-
var Collection2 =
|
|
5712
|
-
id:
|
|
5713
|
-
name:
|
|
5714
|
-
modes:
|
|
5715
|
-
defaultModeId:
|
|
5716
|
-
remote:
|
|
5717
|
-
hiddenFromPublishing:
|
|
5718
|
-
});
|
|
5719
|
-
var VariablesMapping =
|
|
5720
|
-
variableCollections:
|
|
5721
|
-
variableMode:
|
|
5722
|
-
supernovaBrand:
|
|
5723
|
-
supernovaTheme:
|
|
5724
|
-
});
|
|
5725
|
-
var FormattedCollections =
|
|
5726
|
-
variables:
|
|
5727
|
-
variableCollections:
|
|
5728
|
-
mappings:
|
|
5729
|
-
variablesOrder:
|
|
5708
|
+
valuesByMode: z196.record(VariableValue),
|
|
5709
|
+
remote: z196.boolean(),
|
|
5710
|
+
description: z196.string(),
|
|
5711
|
+
hiddenFromPublishing: z196.boolean(),
|
|
5712
|
+
scopes: z196.array(VariableScope),
|
|
5713
|
+
codeSyntax: z196.record(z196.any()).optional()
|
|
5714
|
+
});
|
|
5715
|
+
var VariableMode = z196.object({
|
|
5716
|
+
modeId: z196.string(),
|
|
5717
|
+
name: z196.string()
|
|
5718
|
+
});
|
|
5719
|
+
var Collection2 = z196.object({
|
|
5720
|
+
id: z196.string(),
|
|
5721
|
+
name: z196.string(),
|
|
5722
|
+
modes: z196.array(VariableMode),
|
|
5723
|
+
defaultModeId: z196.string(),
|
|
5724
|
+
remote: z196.boolean(),
|
|
5725
|
+
hiddenFromPublishing: z196.boolean()
|
|
5726
|
+
});
|
|
5727
|
+
var VariablesMapping = z196.object({
|
|
5728
|
+
variableCollections: z196.array(z196.string()).min(1),
|
|
5729
|
+
variableMode: z196.string().min(1),
|
|
5730
|
+
supernovaBrand: z196.string().min(1),
|
|
5731
|
+
supernovaTheme: z196.string().min(1).optional().or(z196.null())
|
|
5732
|
+
});
|
|
5733
|
+
var FormattedCollections = z196.object({
|
|
5734
|
+
variables: z196.record(z196.string(), Variable),
|
|
5735
|
+
variableCollections: z196.record(z196.string(), Collection2),
|
|
5736
|
+
mappings: z196.array(VariablesMapping).optional(),
|
|
5737
|
+
variablesOrder: z196.string().array().optional()
|
|
5730
5738
|
});
|
|
5731
5739
|
|
|
5732
5740
|
// src/api/dto/design-systems/import-job.ts
|
|
5733
|
-
import { z as
|
|
5734
|
-
var DTOImportJob =
|
|
5735
|
-
id:
|
|
5736
|
-
designSystemId:
|
|
5737
|
-
designSystemVersionId:
|
|
5738
|
-
operation:
|
|
5739
|
-
createdAt:
|
|
5740
|
-
stateChangedAt:
|
|
5741
|
+
import { z as z197 } from "zod";
|
|
5742
|
+
var DTOImportJob = z197.object({
|
|
5743
|
+
id: z197.string(),
|
|
5744
|
+
designSystemId: z197.string(),
|
|
5745
|
+
designSystemVersionId: z197.string(),
|
|
5746
|
+
operation: z197.literal("Import"),
|
|
5747
|
+
createdAt: z197.coerce.date(),
|
|
5748
|
+
stateChangedAt: z197.coerce.date(),
|
|
5741
5749
|
state: ImportJobState,
|
|
5742
|
-
sourceIds:
|
|
5750
|
+
sourceIds: z197.string().array()
|
|
5743
5751
|
});
|
|
5744
|
-
var DTOImportJobResponse =
|
|
5752
|
+
var DTOImportJobResponse = z197.object({
|
|
5745
5753
|
job: DTOImportJob
|
|
5746
5754
|
});
|
|
5747
|
-
var DTOBffFigmaImportRequestBody =
|
|
5748
|
-
type:
|
|
5749
|
-
brandPersistentId:
|
|
5750
|
-
fileId:
|
|
5755
|
+
var DTOBffFigmaImportRequestBody = z197.object({
|
|
5756
|
+
type: z197.literal(DataSourceRemoteType.Enum.Figma),
|
|
5757
|
+
brandPersistentId: z197.string().optional(),
|
|
5758
|
+
fileId: z197.string(),
|
|
5751
5759
|
scope: DataSourceFigmaScope,
|
|
5752
5760
|
autoImportMode: DataSourceAutoImportMode
|
|
5753
5761
|
});
|
|
5754
|
-
var DTOBffUploadImportRequestBody =
|
|
5755
|
-
type:
|
|
5756
|
-
brandPersistentId:
|
|
5757
|
-
sourceName:
|
|
5758
|
-
remoteId:
|
|
5759
|
-
isTokenTypeSplitEnabled:
|
|
5760
|
-
payload:
|
|
5762
|
+
var DTOBffUploadImportRequestBody = z197.object({
|
|
5763
|
+
type: z197.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5764
|
+
brandPersistentId: z197.string().optional(),
|
|
5765
|
+
sourceName: z197.string().optional(),
|
|
5766
|
+
remoteId: z197.string(),
|
|
5767
|
+
isTokenTypeSplitEnabled: z197.boolean().optional(),
|
|
5768
|
+
payload: z197.any()
|
|
5761
5769
|
});
|
|
5762
|
-
var DTOBffImportRequestBody =
|
|
5770
|
+
var DTOBffImportRequestBody = z197.discriminatedUnion("type", [
|
|
5763
5771
|
DTOBffFigmaImportRequestBody,
|
|
5764
5772
|
DTOBffUploadImportRequestBody
|
|
5765
5773
|
]);
|
|
5766
5774
|
|
|
5767
5775
|
// src/api/dto/design-systems/redirects.ts
|
|
5768
|
-
import { z as
|
|
5769
|
-
var DTOPageRedirectCreateBody =
|
|
5770
|
-
pagePersistentId:
|
|
5771
|
-
path:
|
|
5776
|
+
import { z as z198 } from "zod";
|
|
5777
|
+
var DTOPageRedirectCreateBody = z198.object({
|
|
5778
|
+
pagePersistentId: z198.string(),
|
|
5779
|
+
path: z198.string()
|
|
5772
5780
|
});
|
|
5773
5781
|
var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
|
|
5774
|
-
var DTOPageRedirect =
|
|
5775
|
-
id:
|
|
5776
|
-
pagePersistentId:
|
|
5777
|
-
path:
|
|
5782
|
+
var DTOPageRedirect = z198.object({
|
|
5783
|
+
id: z198.string(),
|
|
5784
|
+
pagePersistentId: z198.string(),
|
|
5785
|
+
path: z198.string()
|
|
5778
5786
|
});
|
|
5779
|
-
var DTOPageRedirectListResponse =
|
|
5787
|
+
var DTOPageRedirectListResponse = z198.object({
|
|
5780
5788
|
redirects: DTOPageRedirect.array()
|
|
5781
5789
|
});
|
|
5782
|
-
var DTOPageRedirectResponse =
|
|
5790
|
+
var DTOPageRedirectResponse = z198.object({
|
|
5783
5791
|
redirect: DTOPageRedirect
|
|
5784
5792
|
});
|
|
5785
|
-
var DTOPageRedirectDeleteResponse =
|
|
5786
|
-
success:
|
|
5793
|
+
var DTOPageRedirectDeleteResponse = z198.object({
|
|
5794
|
+
success: z198.boolean()
|
|
5787
5795
|
});
|
|
5788
5796
|
|
|
5789
5797
|
// src/api/dto/design-systems/stats.ts
|
|
5790
|
-
import { z as
|
|
5791
|
-
var DTODesignSystemVersionStats =
|
|
5792
|
-
tokens:
|
|
5793
|
-
designSystemComponents:
|
|
5794
|
-
assets:
|
|
5795
|
-
documentationPages:
|
|
5796
|
-
figmaComponents:
|
|
5797
|
-
});
|
|
5798
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5798
|
+
import { z as z199 } from "zod";
|
|
5799
|
+
var DTODesignSystemVersionStats = z199.object({
|
|
5800
|
+
tokens: z199.number(),
|
|
5801
|
+
designSystemComponents: z199.number(),
|
|
5802
|
+
assets: z199.number(),
|
|
5803
|
+
documentationPages: z199.number(),
|
|
5804
|
+
figmaComponents: z199.number()
|
|
5805
|
+
});
|
|
5806
|
+
var DTODesignSystemVersionStatsQuery = z199.object({
|
|
5799
5807
|
/**
|
|
5800
5808
|
* Unique ID across versions (non-persistent ID)
|
|
5801
5809
|
*/
|
|
5802
|
-
brandId:
|
|
5810
|
+
brandId: z199.string().optional()
|
|
5803
5811
|
});
|
|
5804
5812
|
|
|
5805
5813
|
// src/api/dto/design-systems/version-room.ts
|
|
5806
|
-
import { z as
|
|
5807
|
-
var DTODesignSystemVersionRoom =
|
|
5808
|
-
id:
|
|
5814
|
+
import { z as z200 } from "zod";
|
|
5815
|
+
var DTODesignSystemVersionRoom = z200.object({
|
|
5816
|
+
id: z200.string()
|
|
5809
5817
|
});
|
|
5810
|
-
var DTODesignSystemVersionRoomResponse =
|
|
5818
|
+
var DTODesignSystemVersionRoomResponse = z200.object({
|
|
5811
5819
|
room: DTODesignSystemVersionRoom
|
|
5812
5820
|
});
|
|
5813
5821
|
|
|
5814
5822
|
// src/api/dto/design-systems/version.ts
|
|
5815
|
-
import { z as
|
|
5823
|
+
import { z as z212 } from "zod";
|
|
5816
5824
|
|
|
5817
5825
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5818
|
-
import { z as
|
|
5826
|
+
import { z as z201 } from "zod";
|
|
5819
5827
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5820
5828
|
id: true,
|
|
5821
5829
|
workspaceId: true,
|
|
@@ -5827,40 +5835,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5827
5835
|
}).extend({
|
|
5828
5836
|
meta: ObjectMeta.partial().optional()
|
|
5829
5837
|
});
|
|
5830
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5838
|
+
var DTODesignSystemUpdateAccessModeInput = z201.object({
|
|
5831
5839
|
accessMode: DesignSystemAccessMode,
|
|
5832
|
-
retain:
|
|
5833
|
-
userIds:
|
|
5834
|
-
inviteIds:
|
|
5840
|
+
retain: z201.object({
|
|
5841
|
+
userIds: z201.string().array(),
|
|
5842
|
+
inviteIds: z201.string().array()
|
|
5835
5843
|
}).optional()
|
|
5836
5844
|
});
|
|
5837
5845
|
|
|
5838
5846
|
// src/api/payloads/design-systems/version.ts
|
|
5839
|
-
import { z as
|
|
5840
|
-
var ObjectMeta2 =
|
|
5841
|
-
name:
|
|
5842
|
-
description:
|
|
5847
|
+
import { z as z202 } from "zod";
|
|
5848
|
+
var ObjectMeta2 = z202.object({
|
|
5849
|
+
name: z202.string().max(150).optional(),
|
|
5850
|
+
description: z202.string().max(2e3).optional()
|
|
5843
5851
|
});
|
|
5844
5852
|
function validateDesignSystemVersion(version) {
|
|
5845
5853
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5846
5854
|
return urlCompliantRegex.test(version);
|
|
5847
5855
|
}
|
|
5848
|
-
var DTOCreateVersionInput =
|
|
5856
|
+
var DTOCreateVersionInput = z202.object({
|
|
5849
5857
|
meta: ObjectMeta2,
|
|
5850
|
-
version:
|
|
5858
|
+
version: z202.string().refine(validateDesignSystemVersion, {
|
|
5851
5859
|
message: "Invalid semantic versioning format"
|
|
5852
5860
|
}),
|
|
5853
|
-
changeLog:
|
|
5861
|
+
changeLog: z202.string().optional()
|
|
5854
5862
|
});
|
|
5855
|
-
var DTOUpdateVersionInput =
|
|
5863
|
+
var DTOUpdateVersionInput = z202.object({
|
|
5856
5864
|
meta: ObjectMeta2,
|
|
5857
|
-
version:
|
|
5865
|
+
version: z202.string(),
|
|
5858
5866
|
// required for PUT, but not editable
|
|
5859
|
-
changeLog:
|
|
5867
|
+
changeLog: z202.string()
|
|
5860
5868
|
});
|
|
5861
5869
|
|
|
5862
5870
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5863
|
-
import { z as
|
|
5871
|
+
import { z as z203 } from "zod";
|
|
5864
5872
|
|
|
5865
5873
|
// src/api/dto/documentation/block-definition.ts
|
|
5866
5874
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5872,70 +5880,70 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5872
5880
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5873
5881
|
|
|
5874
5882
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5875
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5876
|
-
definitions:
|
|
5883
|
+
var DTOGetBlockDefinitionsOutput = z203.object({
|
|
5884
|
+
definitions: z203.array(DTOPageBlockDefinition)
|
|
5877
5885
|
});
|
|
5878
5886
|
|
|
5879
5887
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5880
|
-
import { z as
|
|
5881
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5882
|
-
environment:
|
|
5888
|
+
import { z as z204 } from "zod";
|
|
5889
|
+
var DTODocumentationPublishTypeQueryParams = z204.object({
|
|
5890
|
+
environment: z204.enum(["Live", "Preview"])
|
|
5883
5891
|
});
|
|
5884
5892
|
|
|
5885
5893
|
// src/api/payloads/export/pipeline.ts
|
|
5886
|
-
import { z as
|
|
5894
|
+
import { z as z206 } from "zod";
|
|
5887
5895
|
|
|
5888
5896
|
// src/api/dto/export/exporter-property.ts
|
|
5889
|
-
import { z as
|
|
5890
|
-
var PrimitiveValue2 =
|
|
5891
|
-
var ArrayValue2 =
|
|
5892
|
-
var ObjectValue2 =
|
|
5897
|
+
import { z as z205 } from "zod";
|
|
5898
|
+
var PrimitiveValue2 = z205.number().or(z205.boolean()).or(z205.string());
|
|
5899
|
+
var ArrayValue2 = z205.array(z205.string());
|
|
5900
|
+
var ObjectValue2 = z205.record(z205.string());
|
|
5893
5901
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
5894
|
-
var DTOExporterPropertyType =
|
|
5895
|
-
var PropertyDefinitionBase2 =
|
|
5896
|
-
key:
|
|
5897
|
-
title:
|
|
5898
|
-
description:
|
|
5899
|
-
category:
|
|
5900
|
-
dependsOn:
|
|
5901
|
-
});
|
|
5902
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
5903
|
-
label:
|
|
5904
|
-
description:
|
|
5902
|
+
var DTOExporterPropertyType = z205.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5903
|
+
var PropertyDefinitionBase2 = z205.object({
|
|
5904
|
+
key: z205.string(),
|
|
5905
|
+
title: z205.string(),
|
|
5906
|
+
description: z205.string(),
|
|
5907
|
+
category: z205.string().optional(),
|
|
5908
|
+
dependsOn: z205.record(z205.boolean()).optional()
|
|
5909
|
+
});
|
|
5910
|
+
var DTOExporterPropertyDefinitionEnumOption = z205.object({
|
|
5911
|
+
label: z205.string(),
|
|
5912
|
+
description: z205.string()
|
|
5905
5913
|
});
|
|
5906
5914
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
5907
|
-
type:
|
|
5908
|
-
options:
|
|
5909
|
-
default:
|
|
5915
|
+
type: z205.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5916
|
+
options: z205.record(DTOExporterPropertyDefinitionEnumOption),
|
|
5917
|
+
default: z205.string()
|
|
5910
5918
|
});
|
|
5911
5919
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
5912
|
-
type:
|
|
5913
|
-
default:
|
|
5920
|
+
type: z205.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5921
|
+
default: z205.boolean()
|
|
5914
5922
|
});
|
|
5915
5923
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
5916
|
-
type:
|
|
5917
|
-
default:
|
|
5924
|
+
type: z205.literal(DTOExporterPropertyType.Enum.String),
|
|
5925
|
+
default: z205.string()
|
|
5918
5926
|
});
|
|
5919
5927
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
5920
|
-
type:
|
|
5921
|
-
default:
|
|
5928
|
+
type: z205.literal(DTOExporterPropertyType.Enum.Number),
|
|
5929
|
+
default: z205.number()
|
|
5922
5930
|
});
|
|
5923
5931
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
5924
|
-
type:
|
|
5932
|
+
type: z205.literal(DTOExporterPropertyType.Enum.Array),
|
|
5925
5933
|
default: ArrayValue2
|
|
5926
5934
|
});
|
|
5927
5935
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
5928
|
-
type:
|
|
5936
|
+
type: z205.literal(DTOExporterPropertyType.Enum.Object),
|
|
5929
5937
|
default: ObjectValue2,
|
|
5930
|
-
allowedKeys:
|
|
5931
|
-
options:
|
|
5932
|
-
type:
|
|
5938
|
+
allowedKeys: z205.object({
|
|
5939
|
+
options: z205.string().array(),
|
|
5940
|
+
type: z205.string()
|
|
5933
5941
|
}).optional(),
|
|
5934
|
-
allowedValues:
|
|
5935
|
-
type:
|
|
5942
|
+
allowedValues: z205.object({
|
|
5943
|
+
type: z205.string()
|
|
5936
5944
|
}).optional()
|
|
5937
5945
|
});
|
|
5938
|
-
var DTOExporterPropertyDefinition =
|
|
5946
|
+
var DTOExporterPropertyDefinition = z205.discriminatedUnion("type", [
|
|
5939
5947
|
DTOExporterPropertyDefinitionEnum,
|
|
5940
5948
|
DTOExporterPropertyDefinitionBoolean,
|
|
5941
5949
|
DTOExporterPropertyDefinitionString,
|
|
@@ -5943,73 +5951,73 @@ var DTOExporterPropertyDefinition = z204.discriminatedUnion("type", [
|
|
|
5943
5951
|
DTOExporterPropertyDefinitionArray,
|
|
5944
5952
|
DTOExporterPropertyDefinitionObject
|
|
5945
5953
|
]);
|
|
5946
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
5954
|
+
var DTOExporterPropertyDefinitionsResponse = z205.object({
|
|
5947
5955
|
properties: DTOExporterPropertyDefinition.array()
|
|
5948
5956
|
});
|
|
5949
|
-
var DTOExporterPropertyValueMap =
|
|
5957
|
+
var DTOExporterPropertyValueMap = z205.record(DTOExporterPropertyValue);
|
|
5950
5958
|
|
|
5951
5959
|
// src/api/payloads/export/pipeline.ts
|
|
5952
|
-
var DTOPipelineCreateBody =
|
|
5953
|
-
name:
|
|
5954
|
-
exporterId:
|
|
5955
|
-
designSystemId:
|
|
5956
|
-
isEnabled:
|
|
5960
|
+
var DTOPipelineCreateBody = z206.object({
|
|
5961
|
+
name: z206.string(),
|
|
5962
|
+
exporterId: z206.string(),
|
|
5963
|
+
designSystemId: z206.string(),
|
|
5964
|
+
isEnabled: z206.boolean(),
|
|
5957
5965
|
eventType: PipelineEventType,
|
|
5958
|
-
brandPersistentId:
|
|
5959
|
-
themePersistentId:
|
|
5960
|
-
themePersistentIds:
|
|
5966
|
+
brandPersistentId: z206.string().optional(),
|
|
5967
|
+
themePersistentId: z206.string().optional(),
|
|
5968
|
+
themePersistentIds: z206.string().array().optional(),
|
|
5961
5969
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
5962
5970
|
destination: PipelineDestinationType.optional(),
|
|
5963
5971
|
gitQuery: GitObjectsQuery,
|
|
5964
|
-
destinations:
|
|
5972
|
+
destinations: z206.object({
|
|
5965
5973
|
s3: ExporterDestinationS3.nullish(),
|
|
5966
5974
|
azure: ExporterDestinationAzure.nullish(),
|
|
5967
5975
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5968
5976
|
github: ExporterDestinationGithub.nullish(),
|
|
5969
5977
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5970
5978
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5971
|
-
webhookUrl:
|
|
5979
|
+
webhookUrl: z206.string().nullish()
|
|
5972
5980
|
})
|
|
5973
5981
|
});
|
|
5974
|
-
var DTOPipelineUpdateBody =
|
|
5975
|
-
exporterId:
|
|
5976
|
-
name:
|
|
5977
|
-
isEnabled:
|
|
5982
|
+
var DTOPipelineUpdateBody = z206.object({
|
|
5983
|
+
exporterId: z206.string().optional(),
|
|
5984
|
+
name: z206.string().optional(),
|
|
5985
|
+
isEnabled: z206.boolean().optional(),
|
|
5978
5986
|
eventType: PipelineEventType.optional(),
|
|
5979
|
-
brandPersistentId:
|
|
5980
|
-
themePersistentId:
|
|
5981
|
-
themePersistentIds:
|
|
5987
|
+
brandPersistentId: z206.string().optional(),
|
|
5988
|
+
themePersistentId: z206.string().optional(),
|
|
5989
|
+
themePersistentIds: z206.string().array().optional(),
|
|
5982
5990
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
5983
5991
|
destination: PipelineDestinationType.optional(),
|
|
5984
5992
|
gitQuery: GitObjectsQuery.optional(),
|
|
5985
|
-
destinations:
|
|
5993
|
+
destinations: z206.object({
|
|
5986
5994
|
s3: ExporterDestinationS3.nullish(),
|
|
5987
5995
|
azure: ExporterDestinationAzure.nullish(),
|
|
5988
5996
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5989
5997
|
github: ExporterDestinationGithub.nullish(),
|
|
5990
5998
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5991
5999
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5992
|
-
webhookUrl:
|
|
6000
|
+
webhookUrl: z206.string().nullish()
|
|
5993
6001
|
}).optional()
|
|
5994
6002
|
});
|
|
5995
|
-
var DTOPipelineTriggerBody =
|
|
5996
|
-
designSystemVersionId:
|
|
6003
|
+
var DTOPipelineTriggerBody = z206.object({
|
|
6004
|
+
designSystemVersionId: z206.string()
|
|
5997
6005
|
});
|
|
5998
6006
|
|
|
5999
6007
|
// src/api/payloads/liveblocks/auth.ts
|
|
6000
|
-
import { z as
|
|
6001
|
-
var DTOLiveblocksAuthRequest =
|
|
6002
|
-
room:
|
|
6008
|
+
import { z as z207 } from "zod";
|
|
6009
|
+
var DTOLiveblocksAuthRequest = z207.object({
|
|
6010
|
+
room: z207.string().optional()
|
|
6003
6011
|
});
|
|
6004
6012
|
|
|
6005
6013
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
6006
|
-
import { z as
|
|
6007
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
6014
|
+
import { z as z208 } from "zod";
|
|
6015
|
+
var DTOUpdateUserNotificationSettingsPayload = z208.object({
|
|
6008
6016
|
notificationSettings: UserNotificationSettings
|
|
6009
6017
|
});
|
|
6010
|
-
var DTOUserNotificationSettingsResponse =
|
|
6011
|
-
userId:
|
|
6012
|
-
workspaceId:
|
|
6018
|
+
var DTOUserNotificationSettingsResponse = z208.object({
|
|
6019
|
+
userId: z208.string(),
|
|
6020
|
+
workspaceId: z208.string(),
|
|
6013
6021
|
notificationSettings: UserNotificationSettings
|
|
6014
6022
|
});
|
|
6015
6023
|
|
|
@@ -6017,13 +6025,13 @@ var DTOUserNotificationSettingsResponse = z207.object({
|
|
|
6017
6025
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
6018
6026
|
|
|
6019
6027
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
6020
|
-
import { z as
|
|
6021
|
-
var DTOTransferOwnershipPayload =
|
|
6022
|
-
newOwnerId:
|
|
6028
|
+
import { z as z209 } from "zod";
|
|
6029
|
+
var DTOTransferOwnershipPayload = z209.object({
|
|
6030
|
+
newOwnerId: z209.string()
|
|
6023
6031
|
});
|
|
6024
6032
|
|
|
6025
6033
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
6026
|
-
import { z as
|
|
6034
|
+
import { z as z210 } from "zod";
|
|
6027
6035
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
6028
6036
|
function validateSsoPayload(ssoPayload) {
|
|
6029
6037
|
const keys = [];
|
|
@@ -6046,21 +6054,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
6046
6054
|
keys
|
|
6047
6055
|
};
|
|
6048
6056
|
}
|
|
6049
|
-
var NpmRegistryInput =
|
|
6050
|
-
enabledScopes:
|
|
6051
|
-
customRegistryUrl:
|
|
6052
|
-
bypassProxy:
|
|
6053
|
-
npmProxyRegistryConfigId:
|
|
6054
|
-
npmProxyVersion:
|
|
6055
|
-
registryType:
|
|
6056
|
-
authType:
|
|
6057
|
-
authHeaderName:
|
|
6058
|
-
authHeaderValue:
|
|
6059
|
-
accessToken:
|
|
6060
|
-
username:
|
|
6061
|
-
password:
|
|
6062
|
-
});
|
|
6063
|
-
var WorkspaceConfigurationPayload =
|
|
6057
|
+
var NpmRegistryInput = z210.object({
|
|
6058
|
+
enabledScopes: z210.array(z210.string()),
|
|
6059
|
+
customRegistryUrl: z210.string().optional(),
|
|
6060
|
+
bypassProxy: z210.boolean().optional(),
|
|
6061
|
+
npmProxyRegistryConfigId: z210.string().optional(),
|
|
6062
|
+
npmProxyVersion: z210.number().optional(),
|
|
6063
|
+
registryType: z210.string(),
|
|
6064
|
+
authType: z210.string(),
|
|
6065
|
+
authHeaderName: z210.string(),
|
|
6066
|
+
authHeaderValue: z210.string(),
|
|
6067
|
+
accessToken: z210.string(),
|
|
6068
|
+
username: z210.string(),
|
|
6069
|
+
password: z210.string()
|
|
6070
|
+
});
|
|
6071
|
+
var WorkspaceConfigurationPayload = z210.object({
|
|
6064
6072
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
6065
6073
|
sso: SsoProvider.partial().optional(),
|
|
6066
6074
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -6068,218 +6076,218 @@ var WorkspaceConfigurationPayload = z209.object({
|
|
|
6068
6076
|
});
|
|
6069
6077
|
|
|
6070
6078
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
6071
|
-
import { z as
|
|
6072
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
6079
|
+
import { z as z211 } from "zod";
|
|
6080
|
+
var DTOWorkspaceIntegrationOauthInput = z211.object({
|
|
6073
6081
|
type: IntegrationType
|
|
6074
6082
|
});
|
|
6075
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
6076
|
-
userId:
|
|
6083
|
+
var DTOWorkspaceIntegrationPATInput = z211.object({
|
|
6084
|
+
userId: z211.string(),
|
|
6077
6085
|
type: IntegrationType,
|
|
6078
6086
|
token: IntegrationToken
|
|
6079
6087
|
});
|
|
6080
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
6081
|
-
organization:
|
|
6088
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z211.object({
|
|
6089
|
+
organization: z211.string().optional(),
|
|
6082
6090
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
6083
|
-
project:
|
|
6091
|
+
project: z211.string().optional(),
|
|
6084
6092
|
// Only for Bitbucket and Azure
|
|
6085
|
-
repository:
|
|
6093
|
+
repository: z211.string().optional(),
|
|
6086
6094
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
6087
|
-
branch:
|
|
6095
|
+
branch: z211.string().optional(),
|
|
6088
6096
|
// For all providers, useful for PR creations.
|
|
6089
|
-
user:
|
|
6097
|
+
user: z211.string().optional()
|
|
6090
6098
|
// Only for Gitlab User Repositories
|
|
6091
6099
|
});
|
|
6092
6100
|
|
|
6093
6101
|
// src/api/dto/design-systems/version.ts
|
|
6094
|
-
var DTODesignSystemVersion =
|
|
6095
|
-
id:
|
|
6096
|
-
createdAt:
|
|
6102
|
+
var DTODesignSystemVersion = z212.object({
|
|
6103
|
+
id: z212.string(),
|
|
6104
|
+
createdAt: z212.coerce.date(),
|
|
6097
6105
|
meta: ObjectMeta,
|
|
6098
|
-
version:
|
|
6099
|
-
isReadonly:
|
|
6100
|
-
changeLog:
|
|
6101
|
-
designSystemId:
|
|
6106
|
+
version: z212.string(),
|
|
6107
|
+
isReadonly: z212.boolean(),
|
|
6108
|
+
changeLog: z212.string(),
|
|
6109
|
+
designSystemId: z212.string()
|
|
6102
6110
|
});
|
|
6103
|
-
var DTODesignSystemVersionsListResponse =
|
|
6104
|
-
designSystemVersions:
|
|
6111
|
+
var DTODesignSystemVersionsListResponse = z212.object({
|
|
6112
|
+
designSystemVersions: z212.array(DTODesignSystemVersion)
|
|
6105
6113
|
});
|
|
6106
|
-
var DTODesignSystemVersionGetResponse =
|
|
6114
|
+
var DTODesignSystemVersionGetResponse = z212.object({
|
|
6107
6115
|
designSystemVersion: DTODesignSystemVersion
|
|
6108
6116
|
});
|
|
6109
|
-
var DTODesignSystemVersionCreationResponse =
|
|
6117
|
+
var DTODesignSystemVersionCreationResponse = z212.object({
|
|
6110
6118
|
meta: ObjectMeta,
|
|
6111
|
-
version:
|
|
6112
|
-
changeLog:
|
|
6113
|
-
isReadOnly:
|
|
6114
|
-
designSystemId:
|
|
6115
|
-
jobId:
|
|
6116
|
-
});
|
|
6117
|
-
var VersionSQSPayload =
|
|
6118
|
-
jobId:
|
|
6119
|
-
designSystemId:
|
|
6119
|
+
version: z212.string(),
|
|
6120
|
+
changeLog: z212.string(),
|
|
6121
|
+
isReadOnly: z212.boolean(),
|
|
6122
|
+
designSystemId: z212.string(),
|
|
6123
|
+
jobId: z212.string()
|
|
6124
|
+
});
|
|
6125
|
+
var VersionSQSPayload = z212.object({
|
|
6126
|
+
jobId: z212.string(),
|
|
6127
|
+
designSystemId: z212.string(),
|
|
6120
6128
|
input: DTOCreateVersionInput
|
|
6121
6129
|
});
|
|
6122
|
-
var DTODesignSystemVersionJobsResponse =
|
|
6123
|
-
jobs:
|
|
6130
|
+
var DTODesignSystemVersionJobsResponse = z212.object({
|
|
6131
|
+
jobs: z212.array(VersionCreationJob)
|
|
6124
6132
|
});
|
|
6125
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
6133
|
+
var DTODesignSystemVersionJobStatusResponse = z212.object({
|
|
6126
6134
|
job: VersionCreationJob
|
|
6127
6135
|
});
|
|
6128
6136
|
|
|
6129
6137
|
// src/api/dto/design-systems/view.ts
|
|
6130
|
-
import { z as
|
|
6131
|
-
var DTOElementViewColumnSharedAttributes =
|
|
6132
|
-
id:
|
|
6133
|
-
persistentId:
|
|
6134
|
-
width:
|
|
6138
|
+
import { z as z213 } from "zod";
|
|
6139
|
+
var DTOElementViewColumnSharedAttributes = z213.object({
|
|
6140
|
+
id: z213.string(),
|
|
6141
|
+
persistentId: z213.string(),
|
|
6142
|
+
width: z213.number()
|
|
6135
6143
|
});
|
|
6136
6144
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6137
|
-
type:
|
|
6145
|
+
type: z213.literal("BaseProperty"),
|
|
6138
6146
|
basePropertyType: ElementViewBaseColumnType
|
|
6139
6147
|
});
|
|
6140
6148
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6141
|
-
type:
|
|
6142
|
-
propertyDefinitionId:
|
|
6149
|
+
type: z213.literal("PropertyDefinition"),
|
|
6150
|
+
propertyDefinitionId: z213.string()
|
|
6143
6151
|
});
|
|
6144
6152
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6145
|
-
type:
|
|
6146
|
-
themeId:
|
|
6153
|
+
type: z213.literal("Theme"),
|
|
6154
|
+
themeId: z213.string()
|
|
6147
6155
|
});
|
|
6148
|
-
var DTOElementViewColumn =
|
|
6156
|
+
var DTOElementViewColumn = z213.discriminatedUnion("type", [
|
|
6149
6157
|
DTOElementViewBasePropertyColumn,
|
|
6150
6158
|
DTOElementViewPropertyDefinitionColumn,
|
|
6151
6159
|
DTOElementViewThemeColumn
|
|
6152
6160
|
]);
|
|
6153
|
-
var DTOElementView =
|
|
6161
|
+
var DTOElementView = z213.object({
|
|
6154
6162
|
meta: ObjectMeta,
|
|
6155
|
-
persistentId:
|
|
6163
|
+
persistentId: z213.string(),
|
|
6156
6164
|
targetElementType: ElementPropertyTargetType,
|
|
6157
|
-
id:
|
|
6158
|
-
isDefault:
|
|
6159
|
-
columns:
|
|
6165
|
+
id: z213.string(),
|
|
6166
|
+
isDefault: z213.boolean(),
|
|
6167
|
+
columns: z213.array(DTOElementViewColumn)
|
|
6160
6168
|
});
|
|
6161
|
-
var DTOElementViewsListResponse =
|
|
6162
|
-
elementDataViews:
|
|
6169
|
+
var DTOElementViewsListResponse = z213.object({
|
|
6170
|
+
elementDataViews: z213.array(DTOElementView)
|
|
6163
6171
|
});
|
|
6164
6172
|
|
|
6165
6173
|
// src/api/dto/workspaces/git.ts
|
|
6166
|
-
import { z as
|
|
6167
|
-
var DTOGitOrganization =
|
|
6168
|
-
id:
|
|
6169
|
-
name:
|
|
6170
|
-
url:
|
|
6171
|
-
slug:
|
|
6174
|
+
import { z as z214 } from "zod";
|
|
6175
|
+
var DTOGitOrganization = z214.object({
|
|
6176
|
+
id: z214.string(),
|
|
6177
|
+
name: z214.string(),
|
|
6178
|
+
url: z214.string(),
|
|
6179
|
+
slug: z214.string()
|
|
6172
6180
|
});
|
|
6173
|
-
var DTOGitProject =
|
|
6174
|
-
id:
|
|
6175
|
-
name:
|
|
6176
|
-
url:
|
|
6177
|
-
slug:
|
|
6181
|
+
var DTOGitProject = z214.object({
|
|
6182
|
+
id: z214.string(),
|
|
6183
|
+
name: z214.string(),
|
|
6184
|
+
url: z214.string(),
|
|
6185
|
+
slug: z214.string()
|
|
6178
6186
|
});
|
|
6179
|
-
var DTOGitRepository =
|
|
6180
|
-
id:
|
|
6181
|
-
name:
|
|
6182
|
-
url:
|
|
6183
|
-
slug:
|
|
6184
|
-
defaultBranch:
|
|
6187
|
+
var DTOGitRepository = z214.object({
|
|
6188
|
+
id: z214.string(),
|
|
6189
|
+
name: z214.string(),
|
|
6190
|
+
url: z214.string(),
|
|
6191
|
+
slug: z214.string(),
|
|
6192
|
+
defaultBranch: z214.string().optional()
|
|
6185
6193
|
});
|
|
6186
|
-
var DTOGitBranch =
|
|
6187
|
-
name:
|
|
6188
|
-
lastCommitId:
|
|
6194
|
+
var DTOGitBranch = z214.object({
|
|
6195
|
+
name: z214.string(),
|
|
6196
|
+
lastCommitId: z214.string()
|
|
6189
6197
|
});
|
|
6190
6198
|
|
|
6191
6199
|
// src/api/dto/workspaces/integrations.ts
|
|
6192
|
-
import { z as
|
|
6200
|
+
import { z as z215 } from "zod";
|
|
6193
6201
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6194
6202
|
accessToken: true,
|
|
6195
6203
|
refreshToken: true
|
|
6196
6204
|
});
|
|
6197
|
-
var DTOIntegration =
|
|
6198
|
-
id:
|
|
6199
|
-
workspaceId:
|
|
6205
|
+
var DTOIntegration = z215.object({
|
|
6206
|
+
id: z215.string(),
|
|
6207
|
+
workspaceId: z215.string(),
|
|
6200
6208
|
type: ExtendedIntegrationType,
|
|
6201
|
-
createdAt:
|
|
6202
|
-
integrationCredentials:
|
|
6203
|
-
integrationDesignSystems:
|
|
6209
|
+
createdAt: z215.coerce.date(),
|
|
6210
|
+
integrationCredentials: z215.array(DTOIntegrationCredentials).optional(),
|
|
6211
|
+
integrationDesignSystems: z215.array(IntegrationDesignSystem).optional()
|
|
6204
6212
|
});
|
|
6205
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6206
|
-
url:
|
|
6213
|
+
var DTOIntegrationOAuthGetResponse = z215.object({
|
|
6214
|
+
url: z215.string()
|
|
6207
6215
|
});
|
|
6208
|
-
var DTOIntegrationPostResponse =
|
|
6216
|
+
var DTOIntegrationPostResponse = z215.object({
|
|
6209
6217
|
integration: DTOIntegration
|
|
6210
6218
|
});
|
|
6211
|
-
var DTOIntegrationsGetListResponse =
|
|
6219
|
+
var DTOIntegrationsGetListResponse = z215.object({
|
|
6212
6220
|
integrations: DTOIntegration.array()
|
|
6213
6221
|
});
|
|
6214
6222
|
|
|
6215
6223
|
// src/api/dto/workspaces/invitations.ts
|
|
6216
|
-
import { z as
|
|
6217
|
-
var DTOWorkspaceInvitationInput =
|
|
6218
|
-
email:
|
|
6224
|
+
import { z as z216 } from "zod";
|
|
6225
|
+
var DTOWorkspaceInvitationInput = z216.object({
|
|
6226
|
+
email: z216.string().email(),
|
|
6219
6227
|
role: WorkspaceRoleSchema
|
|
6220
6228
|
});
|
|
6221
|
-
var DTOWorkspaceInvitationsListInput =
|
|
6229
|
+
var DTOWorkspaceInvitationsListInput = z216.object({
|
|
6222
6230
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6223
|
-
designSystemId:
|
|
6231
|
+
designSystemId: z216.string().optional()
|
|
6224
6232
|
});
|
|
6225
|
-
var DTOWorkspaceInvitationsResponse =
|
|
6233
|
+
var DTOWorkspaceInvitationsResponse = z216.object({
|
|
6226
6234
|
invitations: WorkspaceInvitation.array()
|
|
6227
6235
|
});
|
|
6228
|
-
var DTOWorkspaceInviteUpdate =
|
|
6236
|
+
var DTOWorkspaceInviteUpdate = z216.object({
|
|
6229
6237
|
role: WorkspaceRoleSchema
|
|
6230
6238
|
});
|
|
6231
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
6239
|
+
var DTOWorkspaceInvitationUpdateResponse = z216.object({
|
|
6232
6240
|
invitation: WorkspaceInvitation
|
|
6233
6241
|
});
|
|
6234
6242
|
|
|
6235
6243
|
// src/api/dto/workspaces/membership.ts
|
|
6236
|
-
import { z as
|
|
6244
|
+
import { z as z219 } from "zod";
|
|
6237
6245
|
|
|
6238
6246
|
// src/api/dto/workspaces/workspace.ts
|
|
6239
|
-
import { z as
|
|
6247
|
+
import { z as z218 } from "zod";
|
|
6240
6248
|
|
|
6241
6249
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6242
|
-
import { z as
|
|
6250
|
+
import { z as z217 } from "zod";
|
|
6243
6251
|
var DTONpmRegistryConfigConstants = {
|
|
6244
6252
|
passwordPlaceholder: "redacted"
|
|
6245
6253
|
};
|
|
6246
|
-
var DTONpmRegistryConfig =
|
|
6254
|
+
var DTONpmRegistryConfig = z217.object({
|
|
6247
6255
|
// Registry basic configuration
|
|
6248
6256
|
registryType: NpmRegistryType,
|
|
6249
|
-
registryUrl:
|
|
6250
|
-
customRegistryUrl:
|
|
6257
|
+
registryUrl: z217.string(),
|
|
6258
|
+
customRegistryUrl: z217.string().optional(),
|
|
6251
6259
|
// URL of Supernova NPM packages proxy
|
|
6252
|
-
proxyUrl:
|
|
6260
|
+
proxyUrl: z217.string(),
|
|
6253
6261
|
// Auth configuration
|
|
6254
6262
|
authType: NpmRegistryAuthType,
|
|
6255
|
-
accessToken:
|
|
6256
|
-
username:
|
|
6257
|
-
password:
|
|
6263
|
+
accessToken: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6264
|
+
username: z217.string().optional(),
|
|
6265
|
+
password: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6258
6266
|
// NPM package scopes for whih the proxy should be enabled
|
|
6259
|
-
enabledScopes:
|
|
6267
|
+
enabledScopes: z217.array(z217.string()),
|
|
6260
6268
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6261
6269
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6262
|
-
bypassProxy:
|
|
6270
|
+
bypassProxy: z217.boolean()
|
|
6263
6271
|
});
|
|
6264
6272
|
|
|
6265
6273
|
// src/api/dto/workspaces/workspace.ts
|
|
6266
6274
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6267
|
-
var DTOWorkspace =
|
|
6268
|
-
id:
|
|
6275
|
+
var DTOWorkspace = z218.object({
|
|
6276
|
+
id: z218.string(),
|
|
6269
6277
|
profile: DTOWorkspaceProfile,
|
|
6270
6278
|
subscription: Subscription,
|
|
6271
6279
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6272
6280
|
});
|
|
6273
|
-
var DTOWorkspaceCreateInput =
|
|
6274
|
-
name:
|
|
6281
|
+
var DTOWorkspaceCreateInput = z218.object({
|
|
6282
|
+
name: z218.string()
|
|
6275
6283
|
});
|
|
6276
|
-
var DTOWorkspaceResponse =
|
|
6284
|
+
var DTOWorkspaceResponse = z218.object({
|
|
6277
6285
|
workspace: DTOWorkspace
|
|
6278
6286
|
});
|
|
6279
6287
|
|
|
6280
6288
|
// src/api/dto/workspaces/membership.ts
|
|
6281
|
-
var DTOWorkspaceRole =
|
|
6282
|
-
var DTOUserWorkspaceMembership =
|
|
6289
|
+
var DTOWorkspaceRole = z219.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6290
|
+
var DTOUserWorkspaceMembership = z219.object({
|
|
6283
6291
|
// Workspace the user is a member of
|
|
6284
6292
|
workspace: DTOWorkspace,
|
|
6285
6293
|
// Assigned role the user has in the workspace
|
|
@@ -6289,26 +6297,26 @@ var DTOUserWorkspaceMembership = z218.object({
|
|
|
6289
6297
|
// when a workspace's subscription is downgraded to free tier
|
|
6290
6298
|
effectiveRole: DTOWorkspaceRole
|
|
6291
6299
|
});
|
|
6292
|
-
var DTOWorkspaceMember =
|
|
6300
|
+
var DTOWorkspaceMember = z219.object({
|
|
6293
6301
|
user: User,
|
|
6294
6302
|
role: WorkspaceRoleSchema,
|
|
6295
6303
|
effectiveRole: WorkspaceRoleSchema
|
|
6296
6304
|
});
|
|
6297
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6298
|
-
membership:
|
|
6305
|
+
var DTOUserWorkspaceMembershipsResponse = z219.object({
|
|
6306
|
+
membership: z219.array(DTOUserWorkspaceMembership)
|
|
6299
6307
|
});
|
|
6300
|
-
var DTOWorkspaceMembersListResponse =
|
|
6301
|
-
members:
|
|
6308
|
+
var DTOWorkspaceMembersListResponse = z219.object({
|
|
6309
|
+
members: z219.array(DTOWorkspaceMember)
|
|
6302
6310
|
});
|
|
6303
6311
|
|
|
6304
6312
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6305
|
-
var DTOAppBootstrapDataQuery =
|
|
6306
|
-
preferredWorkspaceId:
|
|
6307
|
-
preferredDesignSystemId:
|
|
6308
|
-
preferredVersionId:
|
|
6309
|
-
preferredBrandId:
|
|
6313
|
+
var DTOAppBootstrapDataQuery = z220.object({
|
|
6314
|
+
preferredWorkspaceId: z220.string().optional(),
|
|
6315
|
+
preferredDesignSystemId: z220.string().optional(),
|
|
6316
|
+
preferredVersionId: z220.string().optional(),
|
|
6317
|
+
preferredBrandId: z220.string().optional()
|
|
6310
6318
|
});
|
|
6311
|
-
var DTOAppBootstrapDataResponse =
|
|
6319
|
+
var DTOAppBootstrapDataResponse = z220.object({
|
|
6312
6320
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6313
6321
|
designSystem: DTODesignSystem.optional(),
|
|
6314
6322
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6316,95 +6324,95 @@ var DTOAppBootstrapDataResponse = z219.object({
|
|
|
6316
6324
|
});
|
|
6317
6325
|
|
|
6318
6326
|
// src/api/dto/collections/token-collection.ts
|
|
6319
|
-
import { z as
|
|
6320
|
-
var DTOTokenCollection =
|
|
6321
|
-
id:
|
|
6322
|
-
persistentId:
|
|
6323
|
-
designSystemVersionId:
|
|
6327
|
+
import { z as z221 } from "zod";
|
|
6328
|
+
var DTOTokenCollection = z221.object({
|
|
6329
|
+
id: z221.string(),
|
|
6330
|
+
persistentId: z221.string(),
|
|
6331
|
+
designSystemVersionId: z221.string(),
|
|
6324
6332
|
meta: ObjectMeta,
|
|
6325
6333
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6326
|
-
elementPropertyOptionId:
|
|
6327
|
-
createdAt:
|
|
6328
|
-
updatedAt:
|
|
6334
|
+
elementPropertyOptionId: z221.string(),
|
|
6335
|
+
createdAt: z221.coerce.date(),
|
|
6336
|
+
updatedAt: z221.coerce.date(),
|
|
6329
6337
|
origin: CollectionOrigin.optional()
|
|
6330
6338
|
});
|
|
6331
|
-
var DTOTokenCollectionsListReponse =
|
|
6339
|
+
var DTOTokenCollectionsListReponse = z221.object({
|
|
6332
6340
|
collections: DTOTokenCollection.array()
|
|
6333
6341
|
});
|
|
6334
6342
|
|
|
6335
6343
|
// src/api/dto/design-tokens/design-token.ts
|
|
6336
|
-
import { z as
|
|
6344
|
+
import { z as z222 } from "zod";
|
|
6337
6345
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6338
|
-
|
|
6339
|
-
id:
|
|
6340
|
-
persistentId:
|
|
6341
|
-
designSystemVersionId:
|
|
6346
|
+
z222.object({
|
|
6347
|
+
id: z222.string(),
|
|
6348
|
+
persistentId: z222.string(),
|
|
6349
|
+
designSystemVersionId: z222.string(),
|
|
6342
6350
|
meta: ObjectMeta,
|
|
6343
6351
|
originStyle: DesignTokenOrigin.optional(),
|
|
6344
|
-
brandId:
|
|
6345
|
-
collectionId:
|
|
6346
|
-
updatedAt:
|
|
6352
|
+
brandId: z222.string(),
|
|
6353
|
+
collectionId: z222.string().optional(),
|
|
6354
|
+
updatedAt: z222.coerce.date()
|
|
6347
6355
|
})
|
|
6348
6356
|
);
|
|
6349
|
-
var DTODesignTokenListResponse =
|
|
6357
|
+
var DTODesignTokenListResponse = z222.object({
|
|
6350
6358
|
tokens: DTODesignToken.array()
|
|
6351
6359
|
});
|
|
6352
|
-
var DTODesignTokenResponse =
|
|
6360
|
+
var DTODesignTokenResponse = z222.object({
|
|
6353
6361
|
token: DTODesignToken
|
|
6354
6362
|
});
|
|
6355
|
-
var DTODesignTokenGroup =
|
|
6356
|
-
id:
|
|
6363
|
+
var DTODesignTokenGroup = z222.object({
|
|
6364
|
+
id: z222.string(),
|
|
6357
6365
|
tokenType: DesignTokenType,
|
|
6358
|
-
persistentId:
|
|
6359
|
-
isRoot:
|
|
6360
|
-
brandId:
|
|
6366
|
+
persistentId: z222.string(),
|
|
6367
|
+
isRoot: z222.boolean(),
|
|
6368
|
+
brandId: z222.string(),
|
|
6361
6369
|
meta: ObjectMeta,
|
|
6362
|
-
childrenIds:
|
|
6370
|
+
childrenIds: z222.string().array()
|
|
6363
6371
|
});
|
|
6364
|
-
var DTODesignTokenGroupListResponse =
|
|
6372
|
+
var DTODesignTokenGroupListResponse = z222.object({
|
|
6365
6373
|
groups: DTODesignTokenGroup.array()
|
|
6366
6374
|
});
|
|
6367
|
-
var DTODesignTokenGroupResponse =
|
|
6375
|
+
var DTODesignTokenGroupResponse = z222.object({
|
|
6368
6376
|
group: DTODesignTokenGroup
|
|
6369
6377
|
});
|
|
6370
6378
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6371
|
-
|
|
6372
|
-
persistentId:
|
|
6379
|
+
z222.object({
|
|
6380
|
+
persistentId: z222.string(),
|
|
6373
6381
|
meta: ObjectMeta,
|
|
6374
|
-
brandId:
|
|
6375
|
-
groupPersistentId:
|
|
6382
|
+
brandId: z222.string(),
|
|
6383
|
+
groupPersistentId: z222.string().optional()
|
|
6376
6384
|
})
|
|
6377
6385
|
);
|
|
6378
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6379
|
-
persistentId:
|
|
6386
|
+
var DTODesignTokenGroupCreatePayload = z222.object({
|
|
6387
|
+
persistentId: z222.string(),
|
|
6380
6388
|
meta: ObjectMeta,
|
|
6381
|
-
brandId:
|
|
6382
|
-
parentId:
|
|
6389
|
+
brandId: z222.string(),
|
|
6390
|
+
parentId: z222.string().optional(),
|
|
6383
6391
|
tokenType: DesignTokenType,
|
|
6384
|
-
childrenIds:
|
|
6392
|
+
childrenIds: z222.string().array()
|
|
6385
6393
|
});
|
|
6386
6394
|
|
|
6387
6395
|
// src/api/dto/documentation/anchor.ts
|
|
6388
|
-
import { z as
|
|
6396
|
+
import { z as z223 } from "zod";
|
|
6389
6397
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6390
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6391
|
-
anchors:
|
|
6398
|
+
var DTOGetDocumentationPageAnchorsResponse = z223.object({
|
|
6399
|
+
anchors: z223.array(DTODocumentationPageAnchor)
|
|
6392
6400
|
});
|
|
6393
6401
|
|
|
6394
6402
|
// src/api/dto/documentation/approvals.ts
|
|
6395
|
-
import { z as
|
|
6396
|
-
var DTODocumentationPageApprovalState =
|
|
6403
|
+
import { z as z224 } from "zod";
|
|
6404
|
+
var DTODocumentationPageApprovalState = z224.object({
|
|
6397
6405
|
approvalState: DocumentationPageApprovalState,
|
|
6398
|
-
pagePersistentId:
|
|
6399
|
-
updatedByUserId:
|
|
6400
|
-
designSystemVersionId:
|
|
6401
|
-
updatedAt:
|
|
6402
|
-
createdAt:
|
|
6403
|
-
});
|
|
6404
|
-
var DTODocumentationGroupApprovalState =
|
|
6405
|
-
persistentId:
|
|
6406
|
-
groupPersistentId:
|
|
6407
|
-
designSystemVersionId:
|
|
6406
|
+
pagePersistentId: z224.string(),
|
|
6407
|
+
updatedByUserId: z224.string(),
|
|
6408
|
+
designSystemVersionId: z224.string(),
|
|
6409
|
+
updatedAt: z224.coerce.date(),
|
|
6410
|
+
createdAt: z224.coerce.date()
|
|
6411
|
+
});
|
|
6412
|
+
var DTODocumentationGroupApprovalState = z224.object({
|
|
6413
|
+
persistentId: z224.string(),
|
|
6414
|
+
groupPersistentId: z224.string(),
|
|
6415
|
+
designSystemVersionId: z224.string(),
|
|
6408
6416
|
approvalState: DocumentationPageApprovalState
|
|
6409
6417
|
});
|
|
6410
6418
|
|
|
@@ -6412,68 +6420,68 @@ var DTODocumentationGroupApprovalState = z223.object({
|
|
|
6412
6420
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6413
6421
|
|
|
6414
6422
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6415
|
-
import { z as
|
|
6423
|
+
import { z as z229 } from "zod";
|
|
6416
6424
|
|
|
6417
6425
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6418
|
-
import { z as
|
|
6426
|
+
import { z as z228 } from "zod";
|
|
6419
6427
|
|
|
6420
6428
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6421
|
-
import { z as
|
|
6429
|
+
import { z as z226 } from "zod";
|
|
6422
6430
|
|
|
6423
6431
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6424
|
-
import { z as
|
|
6432
|
+
import { z as z225 } from "zod";
|
|
6425
6433
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6426
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6427
|
-
showSidebar:
|
|
6428
|
-
isPrivate:
|
|
6429
|
-
isHidden:
|
|
6434
|
+
var DTODocumentationItemConfigurationV2 = z225.object({
|
|
6435
|
+
showSidebar: z225.boolean(),
|
|
6436
|
+
isPrivate: z225.boolean(),
|
|
6437
|
+
isHidden: z225.boolean(),
|
|
6430
6438
|
header: DTODocumentationItemHeaderV2
|
|
6431
6439
|
});
|
|
6432
6440
|
|
|
6433
6441
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6434
|
-
var DTODocumentationDraftChangeType =
|
|
6435
|
-
var DTODocumentationDraftStateCreated =
|
|
6436
|
-
changeType:
|
|
6437
|
-
});
|
|
6438
|
-
var DTODocumentationDraftStateUpdated =
|
|
6439
|
-
changeType:
|
|
6440
|
-
changes:
|
|
6441
|
-
previousTitle:
|
|
6442
|
+
var DTODocumentationDraftChangeType = z226.enum(["Created", "Updated", "Deleted"]);
|
|
6443
|
+
var DTODocumentationDraftStateCreated = z226.object({
|
|
6444
|
+
changeType: z226.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6445
|
+
});
|
|
6446
|
+
var DTODocumentationDraftStateUpdated = z226.object({
|
|
6447
|
+
changeType: z226.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6448
|
+
changes: z226.object({
|
|
6449
|
+
previousTitle: z226.string().optional(),
|
|
6442
6450
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6443
|
-
previousContentHash:
|
|
6451
|
+
previousContentHash: z226.string().optional()
|
|
6444
6452
|
})
|
|
6445
6453
|
});
|
|
6446
|
-
var DTODocumentationDraftStateDeleted =
|
|
6447
|
-
changeType:
|
|
6448
|
-
deletedAt:
|
|
6449
|
-
deletedByUserId:
|
|
6454
|
+
var DTODocumentationDraftStateDeleted = z226.object({
|
|
6455
|
+
changeType: z226.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6456
|
+
deletedAt: z226.coerce.date(),
|
|
6457
|
+
deletedByUserId: z226.string()
|
|
6450
6458
|
});
|
|
6451
|
-
var DTODocumentationDraftState =
|
|
6459
|
+
var DTODocumentationDraftState = z226.discriminatedUnion("changeType", [
|
|
6452
6460
|
DTODocumentationDraftStateCreated,
|
|
6453
6461
|
DTODocumentationDraftStateUpdated,
|
|
6454
6462
|
DTODocumentationDraftStateDeleted
|
|
6455
6463
|
]);
|
|
6456
6464
|
|
|
6457
6465
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6458
|
-
import { z as
|
|
6459
|
-
var DTODocumentationPublishMetadata =
|
|
6460
|
-
lastPublishedByUserId:
|
|
6461
|
-
lastPublishedAt:
|
|
6466
|
+
import { z as z227 } from "zod";
|
|
6467
|
+
var DTODocumentationPublishMetadata = z227.object({
|
|
6468
|
+
lastPublishedByUserId: z227.string(),
|
|
6469
|
+
lastPublishedAt: z227.coerce.date()
|
|
6462
6470
|
});
|
|
6463
6471
|
|
|
6464
6472
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6465
|
-
var DTODocumentationPageV2 =
|
|
6466
|
-
id:
|
|
6467
|
-
persistentId:
|
|
6468
|
-
designSystemVersionId:
|
|
6469
|
-
title:
|
|
6473
|
+
var DTODocumentationPageV2 = z228.object({
|
|
6474
|
+
id: z228.string(),
|
|
6475
|
+
persistentId: z228.string(),
|
|
6476
|
+
designSystemVersionId: z228.string(),
|
|
6477
|
+
title: z228.string(),
|
|
6470
6478
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6471
|
-
shortPersistentId:
|
|
6472
|
-
slug:
|
|
6473
|
-
userSlug:
|
|
6474
|
-
createdAt:
|
|
6475
|
-
updatedAt:
|
|
6476
|
-
path:
|
|
6479
|
+
shortPersistentId: z228.string(),
|
|
6480
|
+
slug: z228.string().optional(),
|
|
6481
|
+
userSlug: z228.string().optional(),
|
|
6482
|
+
createdAt: z228.coerce.date(),
|
|
6483
|
+
updatedAt: z228.coerce.date(),
|
|
6484
|
+
path: z228.string(),
|
|
6477
6485
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6478
6486
|
draftState: DTODocumentationDraftState.optional(),
|
|
6479
6487
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6481,251 +6489,255 @@ var DTODocumentationPageV2 = z227.object({
|
|
|
6481
6489
|
/** Defines the approval state of the documentation page */
|
|
6482
6490
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6483
6491
|
/** Id of the page document room */
|
|
6484
|
-
liveblocksRoomId:
|
|
6492
|
+
liveblocksRoomId: z228.string().optional(),
|
|
6485
6493
|
// Backward compatibility
|
|
6486
|
-
type:
|
|
6494
|
+
type: z228.literal("Page")
|
|
6487
6495
|
});
|
|
6488
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6496
|
+
var DTOCreateDocumentationPageInputV2 = z228.object({
|
|
6489
6497
|
// Identifier
|
|
6490
|
-
persistentId:
|
|
6498
|
+
persistentId: z228.string(),
|
|
6491
6499
|
// Page properties
|
|
6492
|
-
title:
|
|
6500
|
+
title: z228.string(),
|
|
6493
6501
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6494
6502
|
// Page placement properties
|
|
6495
|
-
parentPersistentId:
|
|
6496
|
-
afterPersistentId:
|
|
6503
|
+
parentPersistentId: z228.string(),
|
|
6504
|
+
afterPersistentId: z228.string().nullish()
|
|
6497
6505
|
});
|
|
6498
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6506
|
+
var DTOUpdateDocumentationPageInputV2 = z228.object({
|
|
6499
6507
|
// Identifier of the page to update
|
|
6500
|
-
id:
|
|
6508
|
+
id: z228.string(),
|
|
6501
6509
|
// Page properties
|
|
6502
|
-
title:
|
|
6510
|
+
title: z228.string().optional(),
|
|
6503
6511
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6504
6512
|
});
|
|
6505
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
6513
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z228.object({
|
|
6506
6514
|
// Identifier of the page to update
|
|
6507
|
-
id:
|
|
6515
|
+
id: z228.string(),
|
|
6508
6516
|
// Page properties
|
|
6509
|
-
documentItems:
|
|
6517
|
+
documentItems: z228.array(DocumentationPageContentItem)
|
|
6510
6518
|
});
|
|
6511
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6519
|
+
var DTOMoveDocumentationPageInputV2 = z228.object({
|
|
6512
6520
|
// Identifier of the group to update
|
|
6513
|
-
id:
|
|
6521
|
+
id: z228.string(),
|
|
6514
6522
|
// Page placement properties
|
|
6515
|
-
parentPersistentId:
|
|
6516
|
-
afterPersistentId:
|
|
6523
|
+
parentPersistentId: z228.string(),
|
|
6524
|
+
afterPersistentId: z228.string().nullish()
|
|
6517
6525
|
});
|
|
6518
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6526
|
+
var DTODuplicateDocumentationPageInputV2 = z228.object({
|
|
6519
6527
|
// Identifier of the page to duplicate from
|
|
6520
|
-
id:
|
|
6528
|
+
id: z228.string(),
|
|
6521
6529
|
// New page persistent id
|
|
6522
|
-
persistentId:
|
|
6530
|
+
persistentId: z228.string(),
|
|
6523
6531
|
// Page placement properties
|
|
6524
|
-
parentPersistentId:
|
|
6525
|
-
afterPersistentId:
|
|
6532
|
+
parentPersistentId: z228.string(),
|
|
6533
|
+
afterPersistentId: z228.string().nullish()
|
|
6526
6534
|
});
|
|
6527
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6535
|
+
var DTODeleteDocumentationPageInputV2 = z228.object({
|
|
6528
6536
|
// Identifier
|
|
6529
|
-
id:
|
|
6537
|
+
id: z228.string()
|
|
6530
6538
|
});
|
|
6531
|
-
var DTORestoreDocumentationPageInput =
|
|
6532
|
-
persistentId:
|
|
6533
|
-
snapshotId:
|
|
6539
|
+
var DTORestoreDocumentationPageInput = z228.object({
|
|
6540
|
+
persistentId: z228.string(),
|
|
6541
|
+
snapshotId: z228.string().optional()
|
|
6534
6542
|
});
|
|
6535
|
-
var DTORestoreDocumentationGroupInput =
|
|
6536
|
-
persistentId:
|
|
6537
|
-
snapshotId:
|
|
6543
|
+
var DTORestoreDocumentationGroupInput = z228.object({
|
|
6544
|
+
persistentId: z228.string(),
|
|
6545
|
+
snapshotId: z228.string().optional()
|
|
6538
6546
|
});
|
|
6539
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6540
|
-
persistentId:
|
|
6547
|
+
var DTODocumentationPageApprovalStateChangeInput = z228.object({
|
|
6548
|
+
persistentId: z228.string(),
|
|
6541
6549
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6542
6550
|
});
|
|
6543
6551
|
|
|
6544
6552
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6545
|
-
var DTODocumentationPageSnapshot =
|
|
6546
|
-
id:
|
|
6547
|
-
designSystemVersionId:
|
|
6548
|
-
createdAt:
|
|
6549
|
-
updatedAt:
|
|
6553
|
+
var DTODocumentationPageSnapshot = z229.object({
|
|
6554
|
+
id: z229.string(),
|
|
6555
|
+
designSystemVersionId: z229.string(),
|
|
6556
|
+
createdAt: z229.string(),
|
|
6557
|
+
updatedAt: z229.string(),
|
|
6550
6558
|
documentationPage: DTODocumentationPageV2,
|
|
6551
|
-
pageContentHash:
|
|
6559
|
+
pageContentHash: z229.string(),
|
|
6552
6560
|
reason: DesignElementSnapshotReason
|
|
6553
6561
|
});
|
|
6554
6562
|
|
|
6555
6563
|
// src/api/dto/documentation/link-preview.ts
|
|
6556
|
-
import { z as
|
|
6557
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6564
|
+
import { z as z230 } from "zod";
|
|
6565
|
+
var DTODocumentationLinkPreviewResponse = z230.object({
|
|
6558
6566
|
linkPreview: DocumentationLinkPreview
|
|
6559
6567
|
});
|
|
6560
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6561
|
-
url:
|
|
6562
|
-
documentationItemPersistentId:
|
|
6568
|
+
var DTODocumentationLinkPreviewRequest = z230.object({
|
|
6569
|
+
url: z230.string().optional(),
|
|
6570
|
+
documentationItemPersistentId: z230.string().optional()
|
|
6563
6571
|
});
|
|
6564
6572
|
|
|
6565
6573
|
// src/api/dto/documentation/publish.ts
|
|
6566
|
-
import { z as
|
|
6574
|
+
import { z as z234 } from "zod";
|
|
6567
6575
|
|
|
6568
6576
|
// src/api/dto/export/exporter.ts
|
|
6569
|
-
import { z as
|
|
6570
|
-
var DTOExporterType =
|
|
6571
|
-
var DTOExporterSource =
|
|
6572
|
-
var DTOExporterMembershipRole =
|
|
6573
|
-
var DTOExporterListQuery =
|
|
6574
|
-
limit:
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6577
|
+
import { z as z231 } from "zod";
|
|
6578
|
+
var DTOExporterType = z231.enum(["documentation", "code"]);
|
|
6579
|
+
var DTOExporterSource = z231.enum(["git", "upload"]);
|
|
6580
|
+
var DTOExporterMembershipRole = z231.enum(["Owner", "OwnerArchived", "User"]);
|
|
6581
|
+
var DTOExporterListQuery = z231.object({
|
|
6582
|
+
limit: z231.coerce.number().optional(),
|
|
6583
|
+
offset: z231.coerce.number().optional(),
|
|
6584
|
+
type: DTOExporterType.optional(),
|
|
6585
|
+
search: z231.string().optional()
|
|
6586
|
+
});
|
|
6587
|
+
var DTOExporter = z231.object({
|
|
6588
|
+
id: z231.string(),
|
|
6589
|
+
name: z231.string(),
|
|
6590
|
+
isPrivate: z231.boolean(),
|
|
6580
6591
|
exporterType: DTOExporterType,
|
|
6581
|
-
isDefaultDocumentationExporter:
|
|
6582
|
-
iconURL:
|
|
6592
|
+
isDefaultDocumentationExporter: z231.boolean(),
|
|
6593
|
+
iconURL: z231.string().optional(),
|
|
6583
6594
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6584
6595
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6585
6596
|
customBlocks: PulsarCustomBlock.array(),
|
|
6586
|
-
blockVariants:
|
|
6587
|
-
usesBrands:
|
|
6588
|
-
usesThemes:
|
|
6597
|
+
blockVariants: z231.record(z231.string(), PulsarContributionVariant.array()),
|
|
6598
|
+
usesBrands: z231.boolean(),
|
|
6599
|
+
usesThemes: z231.boolean(),
|
|
6589
6600
|
source: DTOExporterSource,
|
|
6590
|
-
gitUrl: nullishToOptional(
|
|
6591
|
-
gitBranch: nullishToOptional(
|
|
6592
|
-
gitDirectory: nullishToOptional(
|
|
6593
|
-
isDeprecated:
|
|
6594
|
-
deprecationNote:
|
|
6595
|
-
replacementExporterId:
|
|
6596
|
-
});
|
|
6597
|
-
var DTOExporterMembership =
|
|
6598
|
-
workspaceId:
|
|
6599
|
-
exporterId:
|
|
6601
|
+
gitUrl: nullishToOptional(z231.string()),
|
|
6602
|
+
gitBranch: nullishToOptional(z231.string()),
|
|
6603
|
+
gitDirectory: nullishToOptional(z231.string()),
|
|
6604
|
+
isDeprecated: z231.boolean(),
|
|
6605
|
+
deprecationNote: z231.string().optional(),
|
|
6606
|
+
replacementExporterId: z231.string().optional()
|
|
6607
|
+
});
|
|
6608
|
+
var DTOExporterMembership = z231.object({
|
|
6609
|
+
workspaceId: z231.string(),
|
|
6610
|
+
exporterId: z231.string(),
|
|
6600
6611
|
role: DTOExporterMembershipRole
|
|
6601
6612
|
});
|
|
6602
|
-
var DTOExporterResponse =
|
|
6613
|
+
var DTOExporterResponse = z231.object({
|
|
6603
6614
|
exporter: DTOExporter,
|
|
6604
6615
|
membership: DTOExporterMembership
|
|
6605
6616
|
});
|
|
6606
|
-
var DTOExporterListResponse =
|
|
6617
|
+
var DTOExporterListResponse = z231.object({
|
|
6607
6618
|
exporters: DTOExporter.array(),
|
|
6608
|
-
membership: DTOExporterMembership.array()
|
|
6619
|
+
membership: DTOExporterMembership.array(),
|
|
6620
|
+
total: z231.number()
|
|
6609
6621
|
});
|
|
6610
|
-
var DTOExporterGitProviderEnum =
|
|
6611
|
-
var DTOExporterCreateInput =
|
|
6612
|
-
url:
|
|
6622
|
+
var DTOExporterGitProviderEnum = z231.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6623
|
+
var DTOExporterCreateInput = z231.object({
|
|
6624
|
+
url: z231.string(),
|
|
6613
6625
|
provider: DTOExporterGitProviderEnum
|
|
6614
6626
|
});
|
|
6615
|
-
var DTOExporterUpdateInput =
|
|
6616
|
-
url:
|
|
6627
|
+
var DTOExporterUpdateInput = z231.object({
|
|
6628
|
+
url: z231.string().optional()
|
|
6617
6629
|
});
|
|
6618
|
-
var DTOExporterDeprecationInput =
|
|
6619
|
-
isDeprecated:
|
|
6620
|
-
deprecationNote:
|
|
6621
|
-
replacementExporterId:
|
|
6630
|
+
var DTOExporterDeprecationInput = z231.object({
|
|
6631
|
+
isDeprecated: z231.boolean(),
|
|
6632
|
+
deprecationNote: z231.string().optional(),
|
|
6633
|
+
replacementExporterId: z231.string().optional()
|
|
6622
6634
|
});
|
|
6623
6635
|
|
|
6624
6636
|
// src/api/dto/export/filter.ts
|
|
6625
6637
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6626
6638
|
|
|
6627
6639
|
// src/api/dto/export/job.ts
|
|
6628
|
-
import { z as
|
|
6629
|
-
var DTOExportJobCreatedBy =
|
|
6630
|
-
userId:
|
|
6631
|
-
userName:
|
|
6640
|
+
import { z as z232 } from "zod";
|
|
6641
|
+
var DTOExportJobCreatedBy = z232.object({
|
|
6642
|
+
userId: z232.string(),
|
|
6643
|
+
userName: z232.string()
|
|
6632
6644
|
});
|
|
6633
|
-
var DTOExportJobDesignSystemPreview =
|
|
6634
|
-
id:
|
|
6645
|
+
var DTOExportJobDesignSystemPreview = z232.object({
|
|
6646
|
+
id: z232.string(),
|
|
6635
6647
|
meta: ObjectMeta
|
|
6636
6648
|
});
|
|
6637
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6638
|
-
id:
|
|
6649
|
+
var DTOExportJobDesignSystemVersionPreview = z232.object({
|
|
6650
|
+
id: z232.string(),
|
|
6639
6651
|
meta: ObjectMeta,
|
|
6640
|
-
version:
|
|
6641
|
-
isReadonly:
|
|
6652
|
+
version: z232.string(),
|
|
6653
|
+
isReadonly: z232.boolean()
|
|
6642
6654
|
});
|
|
6643
|
-
var DTOExportJobDestinations =
|
|
6655
|
+
var DTOExportJobDestinations = z232.object({
|
|
6644
6656
|
s3: ExporterDestinationS3.optional(),
|
|
6645
6657
|
azure: ExporterDestinationAzure.optional(),
|
|
6646
6658
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6647
6659
|
github: ExporterDestinationGithub.optional(),
|
|
6648
6660
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6649
6661
|
documentation: ExporterDestinationDocs.optional(),
|
|
6650
|
-
webhookUrl:
|
|
6662
|
+
webhookUrl: z232.string().optional()
|
|
6651
6663
|
});
|
|
6652
6664
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6653
6665
|
sndocs: true
|
|
6654
6666
|
}).extend({
|
|
6655
6667
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6656
6668
|
});
|
|
6657
|
-
var DTOExportJob =
|
|
6658
|
-
id:
|
|
6659
|
-
createdAt:
|
|
6660
|
-
finishedAt:
|
|
6661
|
-
index:
|
|
6669
|
+
var DTOExportJob = z232.object({
|
|
6670
|
+
id: z232.string(),
|
|
6671
|
+
createdAt: z232.coerce.date(),
|
|
6672
|
+
finishedAt: z232.coerce.date().optional(),
|
|
6673
|
+
index: z232.number().optional(),
|
|
6662
6674
|
status: ExportJobStatus,
|
|
6663
|
-
estimatedExecutionTime:
|
|
6675
|
+
estimatedExecutionTime: z232.number().optional(),
|
|
6664
6676
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6665
6677
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6666
6678
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6667
6679
|
destinations: DTOExportJobDestinations,
|
|
6668
|
-
exporterId:
|
|
6669
|
-
scheduleId:
|
|
6680
|
+
exporterId: z232.string(),
|
|
6681
|
+
scheduleId: z232.string().optional(),
|
|
6670
6682
|
result: DTOExportJobResult.optional(),
|
|
6671
|
-
brandPersistentId:
|
|
6672
|
-
themePersistentId:
|
|
6673
|
-
themePersistentIds:
|
|
6683
|
+
brandPersistentId: z232.string().optional(),
|
|
6684
|
+
themePersistentId: z232.string().optional(),
|
|
6685
|
+
themePersistentIds: z232.string().array().optional(),
|
|
6674
6686
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6675
6687
|
});
|
|
6676
|
-
var DTOExportJobResponse =
|
|
6688
|
+
var DTOExportJobResponse = z232.object({
|
|
6677
6689
|
job: DTOExportJob
|
|
6678
6690
|
});
|
|
6679
|
-
var DTOExportJobResponseLegacy =
|
|
6680
|
-
job:
|
|
6681
|
-
id:
|
|
6691
|
+
var DTOExportJobResponseLegacy = z232.object({
|
|
6692
|
+
job: z232.object({
|
|
6693
|
+
id: z232.string(),
|
|
6682
6694
|
status: ExportJobStatus
|
|
6683
6695
|
})
|
|
6684
6696
|
});
|
|
6685
|
-
var DTOExportJobCreateInput =
|
|
6686
|
-
designSystemId:
|
|
6687
|
-
designSystemVersionId:
|
|
6688
|
-
exporterId:
|
|
6689
|
-
brandId:
|
|
6690
|
-
themeId:
|
|
6691
|
-
themePersistentIds:
|
|
6697
|
+
var DTOExportJobCreateInput = z232.object({
|
|
6698
|
+
designSystemId: z232.string(),
|
|
6699
|
+
designSystemVersionId: z232.string(),
|
|
6700
|
+
exporterId: z232.string(),
|
|
6701
|
+
brandId: z232.string().optional(),
|
|
6702
|
+
themeId: z232.string().optional(),
|
|
6703
|
+
themePersistentIds: z232.string().array().optional(),
|
|
6692
6704
|
destinations: DTOExportJobDestinations,
|
|
6693
6705
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6694
6706
|
});
|
|
6695
6707
|
|
|
6696
6708
|
// src/api/dto/export/pipeline.ts
|
|
6697
|
-
import { z as
|
|
6698
|
-
var DTOPipelineListQuery =
|
|
6699
|
-
designSystemId:
|
|
6700
|
-
exporterId:
|
|
6701
|
-
latestJobsLimit:
|
|
6702
|
-
});
|
|
6703
|
-
var DTOPipeline =
|
|
6704
|
-
id:
|
|
6705
|
-
name:
|
|
6709
|
+
import { z as z233 } from "zod";
|
|
6710
|
+
var DTOPipelineListQuery = z233.object({
|
|
6711
|
+
designSystemId: z233.string().optional(),
|
|
6712
|
+
exporterId: z233.string().optional(),
|
|
6713
|
+
latestJobsLimit: z233.coerce.number().optional()
|
|
6714
|
+
});
|
|
6715
|
+
var DTOPipeline = z233.object({
|
|
6716
|
+
id: z233.string(),
|
|
6717
|
+
name: z233.string(),
|
|
6706
6718
|
eventType: PipelineEventType,
|
|
6707
|
-
isEnabled:
|
|
6708
|
-
workspaceId:
|
|
6709
|
-
designSystemId:
|
|
6710
|
-
exporterId:
|
|
6711
|
-
brandPersistentId:
|
|
6712
|
-
themePersistentId:
|
|
6713
|
-
themePersistentIds:
|
|
6719
|
+
isEnabled: z233.boolean(),
|
|
6720
|
+
workspaceId: z233.string(),
|
|
6721
|
+
designSystemId: z233.string(),
|
|
6722
|
+
exporterId: z233.string(),
|
|
6723
|
+
brandPersistentId: z233.string().optional(),
|
|
6724
|
+
themePersistentId: z233.string().optional(),
|
|
6725
|
+
themePersistentIds: z233.string().array().optional(),
|
|
6714
6726
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6715
6727
|
...ExportDestinationsMap.shape,
|
|
6716
6728
|
latestJobs: DTOExportJob.array(),
|
|
6717
|
-
isExporterDeprecated:
|
|
6729
|
+
isExporterDeprecated: z233.boolean()
|
|
6718
6730
|
});
|
|
6719
|
-
var DTOPipelineListResponse =
|
|
6731
|
+
var DTOPipelineListResponse = z233.object({
|
|
6720
6732
|
pipelines: DTOPipeline.array()
|
|
6721
6733
|
});
|
|
6722
|
-
var DTOPipelineResponse =
|
|
6734
|
+
var DTOPipelineResponse = z233.object({
|
|
6723
6735
|
pipeline: DTOPipeline
|
|
6724
6736
|
});
|
|
6725
6737
|
|
|
6726
6738
|
// src/api/dto/documentation/publish.ts
|
|
6727
6739
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6728
|
-
var DTOPublishDocumentationRequest =
|
|
6740
|
+
var DTOPublishDocumentationRequest = z234.object({
|
|
6729
6741
|
environment: PublishedDocEnvironment,
|
|
6730
6742
|
/**
|
|
6731
6743
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6733,66 +6745,66 @@ var DTOPublishDocumentationRequest = z233.object({
|
|
|
6733
6745
|
*/
|
|
6734
6746
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6735
6747
|
});
|
|
6736
|
-
var DTOPublishDocumentationResponse =
|
|
6748
|
+
var DTOPublishDocumentationResponse = z234.object({
|
|
6737
6749
|
job: DTOExportJob
|
|
6738
6750
|
});
|
|
6739
6751
|
|
|
6740
6752
|
// src/api/dto/documentation/room.ts
|
|
6741
|
-
import { z as
|
|
6742
|
-
var DTODocumentationPageRoom =
|
|
6743
|
-
id:
|
|
6753
|
+
import { z as z235 } from "zod";
|
|
6754
|
+
var DTODocumentationPageRoom = z235.object({
|
|
6755
|
+
id: z235.string()
|
|
6744
6756
|
});
|
|
6745
|
-
var DTODocumentationPageRoomResponse =
|
|
6757
|
+
var DTODocumentationPageRoomResponse = z235.object({
|
|
6746
6758
|
room: DTODocumentationPageRoom
|
|
6747
6759
|
});
|
|
6748
6760
|
|
|
6749
6761
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6750
|
-
import
|
|
6751
|
-
var DTOFigmaComponentGroup =
|
|
6752
|
-
id:
|
|
6753
|
-
designSystemVersionId:
|
|
6754
|
-
persistentId:
|
|
6755
|
-
isRoot:
|
|
6756
|
-
brandId:
|
|
6762
|
+
import z236 from "zod";
|
|
6763
|
+
var DTOFigmaComponentGroup = z236.object({
|
|
6764
|
+
id: z236.string(),
|
|
6765
|
+
designSystemVersionId: z236.string(),
|
|
6766
|
+
persistentId: z236.string(),
|
|
6767
|
+
isRoot: z236.boolean(),
|
|
6768
|
+
brandId: z236.string(),
|
|
6757
6769
|
meta: DTOObjectMeta,
|
|
6758
|
-
childrenIds:
|
|
6770
|
+
childrenIds: z236.string().array()
|
|
6759
6771
|
});
|
|
6760
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6772
|
+
var DTOFigmaComponentGroupListResponse = z236.object({
|
|
6761
6773
|
groups: DTOFigmaComponentGroup.array()
|
|
6762
6774
|
});
|
|
6763
6775
|
|
|
6764
6776
|
// src/api/dto/elements/components/figma-component.ts
|
|
6765
|
-
import { z as
|
|
6777
|
+
import { z as z237 } from "zod";
|
|
6766
6778
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6767
|
-
var DTOFigmaComponentPropertyMap =
|
|
6768
|
-
var DTOFigmaComponent =
|
|
6769
|
-
id:
|
|
6770
|
-
persistentId:
|
|
6771
|
-
designSystemVersionId:
|
|
6772
|
-
brandId:
|
|
6773
|
-
thumbnailUrl:
|
|
6774
|
-
svgUrl:
|
|
6775
|
-
exportProperties:
|
|
6776
|
-
isAsset:
|
|
6779
|
+
var DTOFigmaComponentPropertyMap = z237.record(DTOFigmaComponentProperty);
|
|
6780
|
+
var DTOFigmaComponent = z237.object({
|
|
6781
|
+
id: z237.string(),
|
|
6782
|
+
persistentId: z237.string(),
|
|
6783
|
+
designSystemVersionId: z237.string(),
|
|
6784
|
+
brandId: z237.string(),
|
|
6785
|
+
thumbnailUrl: z237.string().optional(),
|
|
6786
|
+
svgUrl: z237.string().optional(),
|
|
6787
|
+
exportProperties: z237.object({
|
|
6788
|
+
isAsset: z237.boolean()
|
|
6777
6789
|
}),
|
|
6778
|
-
createdAt:
|
|
6779
|
-
updatedAt:
|
|
6790
|
+
createdAt: z237.coerce.date(),
|
|
6791
|
+
updatedAt: z237.coerce.date(),
|
|
6780
6792
|
meta: ObjectMeta,
|
|
6781
6793
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6782
|
-
parentComponentPersistentId:
|
|
6783
|
-
childrenPersistentIds:
|
|
6794
|
+
parentComponentPersistentId: z237.string().optional(),
|
|
6795
|
+
childrenPersistentIds: z237.string().array().optional(),
|
|
6784
6796
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6785
|
-
variantPropertyValues:
|
|
6797
|
+
variantPropertyValues: z237.record(z237.string()).optional()
|
|
6786
6798
|
});
|
|
6787
|
-
var DTOFigmaComponentListResponse =
|
|
6799
|
+
var DTOFigmaComponentListResponse = z237.object({
|
|
6788
6800
|
components: DTOFigmaComponent.array()
|
|
6789
6801
|
});
|
|
6790
6802
|
|
|
6791
6803
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6792
|
-
import { z as
|
|
6804
|
+
import { z as z239 } from "zod";
|
|
6793
6805
|
|
|
6794
6806
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6795
|
-
import { z as
|
|
6807
|
+
import { z as z238 } from "zod";
|
|
6796
6808
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6797
6809
|
sortOrder: true,
|
|
6798
6810
|
parentPersistentId: true,
|
|
@@ -6802,13 +6814,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6802
6814
|
data: true,
|
|
6803
6815
|
shortPersistentId: true
|
|
6804
6816
|
}).extend({
|
|
6805
|
-
title:
|
|
6806
|
-
isRoot:
|
|
6807
|
-
childrenIds:
|
|
6817
|
+
title: z238.string(),
|
|
6818
|
+
isRoot: z238.boolean(),
|
|
6819
|
+
childrenIds: z238.array(z238.string()),
|
|
6808
6820
|
groupBehavior: DocumentationGroupBehavior,
|
|
6809
|
-
shortPersistentId:
|
|
6821
|
+
shortPersistentId: z238.string(),
|
|
6810
6822
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6811
|
-
type:
|
|
6823
|
+
type: z238.literal("Group"),
|
|
6812
6824
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6813
6825
|
draftState: DTODocumentationDraftState.optional(),
|
|
6814
6826
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6816,127 +6828,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6816
6828
|
//** An approval state for frontend to utilize. */
|
|
6817
6829
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6818
6830
|
});
|
|
6819
|
-
var DTOCreateDocumentationGroupInput =
|
|
6831
|
+
var DTOCreateDocumentationGroupInput = z238.object({
|
|
6820
6832
|
// Identifier
|
|
6821
|
-
persistentId:
|
|
6833
|
+
persistentId: z238.string(),
|
|
6822
6834
|
// Group properties
|
|
6823
|
-
title:
|
|
6835
|
+
title: z238.string(),
|
|
6824
6836
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6825
6837
|
// Group placement properties
|
|
6826
|
-
afterPersistentId:
|
|
6827
|
-
parentPersistentId:
|
|
6838
|
+
afterPersistentId: z238.string().nullish(),
|
|
6839
|
+
parentPersistentId: z238.string()
|
|
6828
6840
|
});
|
|
6829
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6841
|
+
var DTOUpdateDocumentationGroupInput = z238.object({
|
|
6830
6842
|
// Identifier of the group to update
|
|
6831
|
-
id:
|
|
6843
|
+
id: z238.string(),
|
|
6832
6844
|
// Group properties
|
|
6833
|
-
title:
|
|
6845
|
+
title: z238.string().optional(),
|
|
6834
6846
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6835
6847
|
});
|
|
6836
|
-
var DTOMoveDocumentationGroupInput =
|
|
6848
|
+
var DTOMoveDocumentationGroupInput = z238.object({
|
|
6837
6849
|
// Identifier of the group to update
|
|
6838
|
-
id:
|
|
6850
|
+
id: z238.string(),
|
|
6839
6851
|
// Group placement properties
|
|
6840
|
-
parentPersistentId:
|
|
6841
|
-
afterPersistentId:
|
|
6852
|
+
parentPersistentId: z238.string(),
|
|
6853
|
+
afterPersistentId: z238.string().nullish()
|
|
6842
6854
|
});
|
|
6843
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6855
|
+
var DTODuplicateDocumentationGroupInput = z238.object({
|
|
6844
6856
|
// Identifier of the group to duplicate from
|
|
6845
|
-
id:
|
|
6857
|
+
id: z238.string(),
|
|
6846
6858
|
// New group persistent id
|
|
6847
|
-
persistentId:
|
|
6859
|
+
persistentId: z238.string(),
|
|
6848
6860
|
// Group placement properties
|
|
6849
|
-
afterPersistentId:
|
|
6850
|
-
parentPersistentId:
|
|
6861
|
+
afterPersistentId: z238.string().nullish(),
|
|
6862
|
+
parentPersistentId: z238.string()
|
|
6851
6863
|
});
|
|
6852
|
-
var DTOCreateDocumentationTabInput =
|
|
6864
|
+
var DTOCreateDocumentationTabInput = z238.object({
|
|
6853
6865
|
// New group persistent id
|
|
6854
|
-
persistentId:
|
|
6866
|
+
persistentId: z238.string(),
|
|
6855
6867
|
// If this is page, we will attempt to convert it to tab
|
|
6856
6868
|
// If this is tab group, we will add a new tab to it
|
|
6857
|
-
fromItemPersistentId:
|
|
6858
|
-
tabName:
|
|
6869
|
+
fromItemPersistentId: z238.string(),
|
|
6870
|
+
tabName: z238.string()
|
|
6859
6871
|
});
|
|
6860
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6872
|
+
var DTODeleteDocumentationTabGroupInput = z238.object({
|
|
6861
6873
|
// Deleted group id
|
|
6862
|
-
id:
|
|
6874
|
+
id: z238.string()
|
|
6863
6875
|
});
|
|
6864
|
-
var DTODeleteDocumentationGroupInput =
|
|
6876
|
+
var DTODeleteDocumentationGroupInput = z238.object({
|
|
6865
6877
|
// Identifier
|
|
6866
|
-
id:
|
|
6878
|
+
id: z238.string(),
|
|
6867
6879
|
// Deletion options
|
|
6868
|
-
deleteSubtree:
|
|
6880
|
+
deleteSubtree: z238.boolean().default(false)
|
|
6869
6881
|
});
|
|
6870
6882
|
|
|
6871
6883
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6872
|
-
var SuccessPayload =
|
|
6873
|
-
success:
|
|
6884
|
+
var SuccessPayload = z239.object({
|
|
6885
|
+
success: z239.literal(true)
|
|
6874
6886
|
});
|
|
6875
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6876
|
-
type:
|
|
6887
|
+
var DTODocumentationGroupCreateActionOutputV2 = z239.object({
|
|
6888
|
+
type: z239.literal("DocumentationGroupCreate"),
|
|
6877
6889
|
output: SuccessPayload
|
|
6878
6890
|
});
|
|
6879
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6880
|
-
type:
|
|
6891
|
+
var DTODocumentationTabCreateActionOutputV2 = z239.object({
|
|
6892
|
+
type: z239.literal("DocumentationTabCreate"),
|
|
6881
6893
|
output: SuccessPayload
|
|
6882
6894
|
});
|
|
6883
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6884
|
-
type:
|
|
6895
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z239.object({
|
|
6896
|
+
type: z239.literal("DocumentationGroupUpdate"),
|
|
6885
6897
|
output: SuccessPayload
|
|
6886
6898
|
});
|
|
6887
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6888
|
-
type:
|
|
6899
|
+
var DTODocumentationGroupMoveActionOutputV2 = z239.object({
|
|
6900
|
+
type: z239.literal("DocumentationGroupMove"),
|
|
6889
6901
|
output: SuccessPayload
|
|
6890
6902
|
});
|
|
6891
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6892
|
-
type:
|
|
6903
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z239.object({
|
|
6904
|
+
type: z239.literal("DocumentationGroupDuplicate"),
|
|
6893
6905
|
output: SuccessPayload
|
|
6894
6906
|
});
|
|
6895
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6896
|
-
type:
|
|
6907
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z239.object({
|
|
6908
|
+
type: z239.literal("DocumentationGroupDelete"),
|
|
6897
6909
|
output: SuccessPayload
|
|
6898
6910
|
});
|
|
6899
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6900
|
-
type:
|
|
6911
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z239.object({
|
|
6912
|
+
type: z239.literal("DocumentationTabGroupDelete"),
|
|
6901
6913
|
output: SuccessPayload
|
|
6902
6914
|
});
|
|
6903
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6904
|
-
type:
|
|
6915
|
+
var DTODocumentationGroupCreateActionInputV2 = z239.object({
|
|
6916
|
+
type: z239.literal("DocumentationGroupCreate"),
|
|
6905
6917
|
input: DTOCreateDocumentationGroupInput
|
|
6906
6918
|
});
|
|
6907
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6908
|
-
type:
|
|
6919
|
+
var DTODocumentationTabCreateActionInputV2 = z239.object({
|
|
6920
|
+
type: z239.literal("DocumentationTabCreate"),
|
|
6909
6921
|
input: DTOCreateDocumentationTabInput
|
|
6910
6922
|
});
|
|
6911
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6912
|
-
type:
|
|
6923
|
+
var DTODocumentationGroupUpdateActionInputV2 = z239.object({
|
|
6924
|
+
type: z239.literal("DocumentationGroupUpdate"),
|
|
6913
6925
|
input: DTOUpdateDocumentationGroupInput
|
|
6914
6926
|
});
|
|
6915
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6916
|
-
type:
|
|
6927
|
+
var DTODocumentationGroupMoveActionInputV2 = z239.object({
|
|
6928
|
+
type: z239.literal("DocumentationGroupMove"),
|
|
6917
6929
|
input: DTOMoveDocumentationGroupInput
|
|
6918
6930
|
});
|
|
6919
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6920
|
-
type:
|
|
6931
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z239.object({
|
|
6932
|
+
type: z239.literal("DocumentationGroupDuplicate"),
|
|
6921
6933
|
input: DTODuplicateDocumentationGroupInput
|
|
6922
6934
|
});
|
|
6923
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6924
|
-
type:
|
|
6935
|
+
var DTODocumentationGroupDeleteActionInputV2 = z239.object({
|
|
6936
|
+
type: z239.literal("DocumentationGroupDelete"),
|
|
6925
6937
|
input: DTODeleteDocumentationGroupInput
|
|
6926
6938
|
});
|
|
6927
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6928
|
-
type:
|
|
6939
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z239.object({
|
|
6940
|
+
type: z239.literal("DocumentationTabGroupDelete"),
|
|
6929
6941
|
input: DTODeleteDocumentationTabGroupInput
|
|
6930
6942
|
});
|
|
6931
6943
|
|
|
6932
6944
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6933
|
-
import { z as
|
|
6945
|
+
import { z as z241 } from "zod";
|
|
6934
6946
|
|
|
6935
6947
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6936
|
-
import { z as
|
|
6937
|
-
var DocumentationColorV1 =
|
|
6938
|
-
aliasTo:
|
|
6939
|
-
value:
|
|
6948
|
+
import { z as z240 } from "zod";
|
|
6949
|
+
var DocumentationColorV1 = z240.object({
|
|
6950
|
+
aliasTo: z240.string().optional(),
|
|
6951
|
+
value: z240.string().optional()
|
|
6940
6952
|
});
|
|
6941
6953
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6942
6954
|
foregroundColor: true,
|
|
@@ -6945,10 +6957,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6945
6957
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6946
6958
|
backgroundColor: DocumentationColorV1.optional()
|
|
6947
6959
|
});
|
|
6948
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6949
|
-
showSidebar:
|
|
6950
|
-
isPrivate:
|
|
6951
|
-
isHidden:
|
|
6960
|
+
var DTODocumentationItemConfigurationV1 = z240.object({
|
|
6961
|
+
showSidebar: z240.boolean(),
|
|
6962
|
+
isPrivate: z240.boolean(),
|
|
6963
|
+
isHidden: z240.boolean(),
|
|
6952
6964
|
header: DTODocumentationItemHeaderV1
|
|
6953
6965
|
});
|
|
6954
6966
|
|
|
@@ -6962,123 +6974,123 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6962
6974
|
data: true,
|
|
6963
6975
|
shortPersistentId: true
|
|
6964
6976
|
}).extend({
|
|
6965
|
-
title:
|
|
6966
|
-
isRoot:
|
|
6967
|
-
childrenIds:
|
|
6977
|
+
title: z241.string(),
|
|
6978
|
+
isRoot: z241.boolean(),
|
|
6979
|
+
childrenIds: z241.array(z241.string()),
|
|
6968
6980
|
groupBehavior: DocumentationGroupBehavior,
|
|
6969
|
-
shortPersistentId:
|
|
6970
|
-
type:
|
|
6981
|
+
shortPersistentId: z241.string(),
|
|
6982
|
+
type: z241.literal("Group")
|
|
6971
6983
|
});
|
|
6972
6984
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6973
6985
|
configuration: DTODocumentationItemConfigurationV1
|
|
6974
6986
|
});
|
|
6975
6987
|
|
|
6976
6988
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6977
|
-
import { z as
|
|
6978
|
-
var DTODocumentationHierarchyV2 =
|
|
6979
|
-
pages:
|
|
6989
|
+
import { z as z242 } from "zod";
|
|
6990
|
+
var DTODocumentationHierarchyV2 = z242.object({
|
|
6991
|
+
pages: z242.array(
|
|
6980
6992
|
DTODocumentationPageV2.extend({
|
|
6981
6993
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6982
6994
|
draftState: DTODocumentationDraftState.optional()
|
|
6983
6995
|
})
|
|
6984
6996
|
),
|
|
6985
|
-
groups:
|
|
6997
|
+
groups: z242.array(
|
|
6986
6998
|
DTODocumentationGroupV2.extend({
|
|
6987
6999
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6988
7000
|
draftState: DTODocumentationDraftState.optional()
|
|
6989
7001
|
})
|
|
6990
7002
|
),
|
|
6991
7003
|
/** True if the documentation was already published, false otherwise. */
|
|
6992
|
-
hasPublishedDocumentationContent:
|
|
7004
|
+
hasPublishedDocumentationContent: z242.boolean()
|
|
6993
7005
|
});
|
|
6994
7006
|
|
|
6995
7007
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6996
|
-
import { z as
|
|
6997
|
-
var SuccessPayload2 =
|
|
6998
|
-
success:
|
|
7008
|
+
import { z as z243 } from "zod";
|
|
7009
|
+
var SuccessPayload2 = z243.object({
|
|
7010
|
+
success: z243.literal(true)
|
|
6999
7011
|
});
|
|
7000
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7001
|
-
type:
|
|
7012
|
+
var DTODocumentationPageCreateActionOutputV2 = z243.object({
|
|
7013
|
+
type: z243.literal("DocumentationPageCreate"),
|
|
7002
7014
|
output: SuccessPayload2
|
|
7003
7015
|
});
|
|
7004
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7005
|
-
type:
|
|
7016
|
+
var DTODocumentationPageUpdateActionOutputV2 = z243.object({
|
|
7017
|
+
type: z243.literal("DocumentationPageUpdate"),
|
|
7006
7018
|
output: SuccessPayload2
|
|
7007
7019
|
});
|
|
7008
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7009
|
-
type:
|
|
7020
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z243.object({
|
|
7021
|
+
type: z243.literal("DocumentationPageUpdateDocument"),
|
|
7010
7022
|
output: SuccessPayload2
|
|
7011
7023
|
});
|
|
7012
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7013
|
-
type:
|
|
7024
|
+
var DTODocumentationPageMoveActionOutputV2 = z243.object({
|
|
7025
|
+
type: z243.literal("DocumentationPageMove"),
|
|
7014
7026
|
output: SuccessPayload2
|
|
7015
7027
|
});
|
|
7016
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7017
|
-
type:
|
|
7028
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z243.object({
|
|
7029
|
+
type: z243.literal("DocumentationPageDuplicate"),
|
|
7018
7030
|
output: SuccessPayload2
|
|
7019
7031
|
});
|
|
7020
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7021
|
-
type:
|
|
7032
|
+
var DTODocumentationPageDeleteActionOutputV2 = z243.object({
|
|
7033
|
+
type: z243.literal("DocumentationPageDelete"),
|
|
7022
7034
|
output: SuccessPayload2
|
|
7023
7035
|
});
|
|
7024
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7025
|
-
type:
|
|
7036
|
+
var DTODocumentationPageRestoreActionOutput = z243.object({
|
|
7037
|
+
type: z243.literal("DocumentationPageRestore"),
|
|
7026
7038
|
output: SuccessPayload2
|
|
7027
7039
|
});
|
|
7028
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7029
|
-
type:
|
|
7040
|
+
var DTODocumentationGroupRestoreActionOutput = z243.object({
|
|
7041
|
+
type: z243.literal("DocumentationGroupRestore"),
|
|
7030
7042
|
output: SuccessPayload2
|
|
7031
7043
|
});
|
|
7032
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7033
|
-
type:
|
|
7044
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z243.object({
|
|
7045
|
+
type: z243.literal("DocumentationPageApprovalStateChange"),
|
|
7034
7046
|
output: SuccessPayload2
|
|
7035
7047
|
});
|
|
7036
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7037
|
-
type:
|
|
7048
|
+
var DTODocumentationPageCreateActionInputV2 = z243.object({
|
|
7049
|
+
type: z243.literal("DocumentationPageCreate"),
|
|
7038
7050
|
input: DTOCreateDocumentationPageInputV2
|
|
7039
7051
|
});
|
|
7040
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7041
|
-
type:
|
|
7052
|
+
var DTODocumentationPageUpdateActionInputV2 = z243.object({
|
|
7053
|
+
type: z243.literal("DocumentationPageUpdate"),
|
|
7042
7054
|
input: DTOUpdateDocumentationPageInputV2
|
|
7043
7055
|
});
|
|
7044
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7045
|
-
type:
|
|
7056
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z243.object({
|
|
7057
|
+
type: z243.literal("DocumentationPageUpdateDocument"),
|
|
7046
7058
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7047
7059
|
});
|
|
7048
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7049
|
-
type:
|
|
7060
|
+
var DTODocumentationPageMoveActionInputV2 = z243.object({
|
|
7061
|
+
type: z243.literal("DocumentationPageMove"),
|
|
7050
7062
|
input: DTOMoveDocumentationPageInputV2
|
|
7051
7063
|
});
|
|
7052
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7053
|
-
type:
|
|
7064
|
+
var DTODocumentationPageDuplicateActionInputV2 = z243.object({
|
|
7065
|
+
type: z243.literal("DocumentationPageDuplicate"),
|
|
7054
7066
|
input: DTODuplicateDocumentationPageInputV2
|
|
7055
7067
|
});
|
|
7056
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7057
|
-
type:
|
|
7068
|
+
var DTODocumentationPageDeleteActionInputV2 = z243.object({
|
|
7069
|
+
type: z243.literal("DocumentationPageDelete"),
|
|
7058
7070
|
input: DTODeleteDocumentationPageInputV2
|
|
7059
7071
|
});
|
|
7060
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7061
|
-
type:
|
|
7072
|
+
var DTODocumentationPageRestoreActionInput = z243.object({
|
|
7073
|
+
type: z243.literal("DocumentationPageRestore"),
|
|
7062
7074
|
input: DTORestoreDocumentationPageInput
|
|
7063
7075
|
});
|
|
7064
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7065
|
-
type:
|
|
7076
|
+
var DTODocumentationGroupRestoreActionInput = z243.object({
|
|
7077
|
+
type: z243.literal("DocumentationGroupRestore"),
|
|
7066
7078
|
input: DTORestoreDocumentationGroupInput
|
|
7067
7079
|
});
|
|
7068
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7069
|
-
type:
|
|
7080
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z243.object({
|
|
7081
|
+
type: z243.literal("DocumentationPageApprovalStateChange"),
|
|
7070
7082
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7071
7083
|
});
|
|
7072
7084
|
|
|
7073
7085
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7074
|
-
import { z as
|
|
7086
|
+
import { z as z244 } from "zod";
|
|
7075
7087
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7076
|
-
var DTODocumentationPageContentGetResponse =
|
|
7088
|
+
var DTODocumentationPageContentGetResponse = z244.object({
|
|
7077
7089
|
pageContent: DTODocumentationPageContent
|
|
7078
7090
|
});
|
|
7079
7091
|
|
|
7080
7092
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7081
|
-
import { z as
|
|
7093
|
+
import { z as z245 } from "zod";
|
|
7082
7094
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7083
7095
|
data: true,
|
|
7084
7096
|
meta: true,
|
|
@@ -7086,62 +7098,62 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7086
7098
|
sortOrder: true
|
|
7087
7099
|
}).extend({
|
|
7088
7100
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7089
|
-
blocks:
|
|
7090
|
-
title:
|
|
7091
|
-
path:
|
|
7101
|
+
blocks: z245.array(PageBlockV1),
|
|
7102
|
+
title: z245.string(),
|
|
7103
|
+
path: z245.string()
|
|
7092
7104
|
});
|
|
7093
7105
|
|
|
7094
7106
|
// src/api/dto/elements/documentation/settings.ts
|
|
7095
|
-
import { z as
|
|
7096
|
-
var DTODocumentationSettings =
|
|
7097
|
-
isDraftFeatureAdopted:
|
|
7098
|
-
isApprovalsFeatureEnabled:
|
|
7099
|
-
isApprovalRequiredForPublishing:
|
|
7107
|
+
import { z as z246 } from "zod";
|
|
7108
|
+
var DTODocumentationSettings = z246.object({
|
|
7109
|
+
isDraftFeatureAdopted: z246.boolean(),
|
|
7110
|
+
isApprovalsFeatureEnabled: z246.boolean(),
|
|
7111
|
+
isApprovalRequiredForPublishing: z246.boolean()
|
|
7100
7112
|
});
|
|
7101
7113
|
|
|
7102
7114
|
// src/api/dto/elements/documentation/structure.ts
|
|
7103
|
-
import { z as
|
|
7104
|
-
var DTODocumentationStructureItemType =
|
|
7105
|
-
var DTODocumentationStructureItemBase =
|
|
7115
|
+
import { z as z247 } from "zod";
|
|
7116
|
+
var DTODocumentationStructureItemType = z247.enum(["Group", "Page"]);
|
|
7117
|
+
var DTODocumentationStructureItemBase = z247.object({
|
|
7106
7118
|
type: DTODocumentationStructureItemType,
|
|
7107
|
-
id:
|
|
7108
|
-
designSystemVersionId:
|
|
7109
|
-
shortPersistentId:
|
|
7110
|
-
persistentId:
|
|
7111
|
-
title:
|
|
7112
|
-
createdAt:
|
|
7113
|
-
updatedAt:
|
|
7119
|
+
id: z247.string(),
|
|
7120
|
+
designSystemVersionId: z247.string(),
|
|
7121
|
+
shortPersistentId: z247.string(),
|
|
7122
|
+
persistentId: z247.string(),
|
|
7123
|
+
title: z247.string(),
|
|
7124
|
+
createdAt: z247.coerce.date(),
|
|
7125
|
+
updatedAt: z247.coerce.date()
|
|
7114
7126
|
});
|
|
7115
7127
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7116
|
-
type:
|
|
7117
|
-
groupBehavior:
|
|
7118
|
-
childrenIds:
|
|
7119
|
-
isRoot:
|
|
7128
|
+
type: z247.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7129
|
+
groupBehavior: z247.string(),
|
|
7130
|
+
childrenIds: z247.string().array(),
|
|
7131
|
+
isRoot: z247.boolean()
|
|
7120
7132
|
});
|
|
7121
7133
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7122
|
-
type:
|
|
7123
|
-
path:
|
|
7134
|
+
type: z247.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7135
|
+
path: z247.string()
|
|
7124
7136
|
});
|
|
7125
|
-
var DTODocumentationStructureItem =
|
|
7137
|
+
var DTODocumentationStructureItem = z247.discriminatedUnion("type", [
|
|
7126
7138
|
DTODocumentationStructureGroupItem,
|
|
7127
7139
|
DTODocumentationStructurePageItem
|
|
7128
7140
|
]);
|
|
7129
|
-
var DTODocumentationStructure =
|
|
7130
|
-
items:
|
|
7141
|
+
var DTODocumentationStructure = z247.object({
|
|
7142
|
+
items: z247.array(DTODocumentationStructureItem)
|
|
7131
7143
|
});
|
|
7132
7144
|
|
|
7133
7145
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7134
|
-
import { z as
|
|
7146
|
+
import { z as z249 } from "zod";
|
|
7135
7147
|
|
|
7136
7148
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7137
|
-
import { z as
|
|
7149
|
+
import { z as z248 } from "zod";
|
|
7138
7150
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7139
|
-
var DTOFigmaNodeOrigin =
|
|
7140
|
-
sourceId:
|
|
7141
|
-
fileId:
|
|
7142
|
-
parentName:
|
|
7151
|
+
var DTOFigmaNodeOrigin = z248.object({
|
|
7152
|
+
sourceId: z248.string(),
|
|
7153
|
+
fileId: z248.string().optional(),
|
|
7154
|
+
parentName: z248.string().optional()
|
|
7143
7155
|
});
|
|
7144
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7156
|
+
var DTOFigmaNodeRenderInputBase = z248.object({
|
|
7145
7157
|
/**
|
|
7146
7158
|
* Format in which the node must be rendered, png by default.
|
|
7147
7159
|
*/
|
|
@@ -7149,57 +7161,57 @@ var DTOFigmaNodeRenderInputBase = z247.object({
|
|
|
7149
7161
|
/**
|
|
7150
7162
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7151
7163
|
*/
|
|
7152
|
-
scale:
|
|
7164
|
+
scale: z248.number().optional()
|
|
7153
7165
|
});
|
|
7154
7166
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7155
|
-
inputType:
|
|
7167
|
+
inputType: z248.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7156
7168
|
/**
|
|
7157
7169
|
* Id of a design system's data source representing a linked Figma file
|
|
7158
7170
|
*/
|
|
7159
|
-
sourceId:
|
|
7171
|
+
sourceId: z248.string(),
|
|
7160
7172
|
/**
|
|
7161
7173
|
* Id of a node within the Figma file
|
|
7162
7174
|
*/
|
|
7163
|
-
figmaFileNodeId:
|
|
7175
|
+
figmaFileNodeId: z248.string()
|
|
7164
7176
|
});
|
|
7165
7177
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7166
|
-
inputType:
|
|
7178
|
+
inputType: z248.literal("URL"),
|
|
7167
7179
|
/**
|
|
7168
7180
|
* Id of a design system's data source representing a linked Figma file
|
|
7169
7181
|
*/
|
|
7170
|
-
figmaNodeUrl:
|
|
7182
|
+
figmaNodeUrl: z248.string(),
|
|
7171
7183
|
/**
|
|
7172
7184
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7173
7185
|
*/
|
|
7174
|
-
brandPersistentId:
|
|
7186
|
+
brandPersistentId: z248.string()
|
|
7175
7187
|
});
|
|
7176
|
-
var DTOFigmaNodeRerenderInput =
|
|
7177
|
-
inputType:
|
|
7188
|
+
var DTOFigmaNodeRerenderInput = z248.object({
|
|
7189
|
+
inputType: z248.literal("Rerender"),
|
|
7178
7190
|
/**
|
|
7179
7191
|
* Persistent ID of an existing Figma node
|
|
7180
7192
|
*/
|
|
7181
|
-
figmaNodePersistentId:
|
|
7193
|
+
figmaNodePersistentId: z248.string()
|
|
7182
7194
|
});
|
|
7183
|
-
var DTOFigmaNodeRenderInput =
|
|
7195
|
+
var DTOFigmaNodeRenderInput = z248.discriminatedUnion("inputType", [
|
|
7184
7196
|
DTOFigmaNodeRenderIdInput,
|
|
7185
7197
|
DTOFigmaNodeRenderUrlInput,
|
|
7186
7198
|
DTOFigmaNodeRerenderInput
|
|
7187
7199
|
]);
|
|
7188
7200
|
|
|
7189
7201
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7190
|
-
var DTOFigmaNodeData =
|
|
7202
|
+
var DTOFigmaNodeData = z249.object({
|
|
7191
7203
|
// Id of the node in the Figma file
|
|
7192
|
-
figmaNodeId:
|
|
7204
|
+
figmaNodeId: z249.string(),
|
|
7193
7205
|
// Validity
|
|
7194
|
-
isValid:
|
|
7206
|
+
isValid: z249.boolean(),
|
|
7195
7207
|
// Asset data
|
|
7196
|
-
assetId:
|
|
7197
|
-
assetUrl:
|
|
7208
|
+
assetId: z249.string(),
|
|
7209
|
+
assetUrl: z249.string(),
|
|
7198
7210
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7199
7211
|
// Asset metadata
|
|
7200
|
-
assetScale:
|
|
7201
|
-
assetWidth:
|
|
7202
|
-
assetHeight:
|
|
7212
|
+
assetScale: z249.number(),
|
|
7213
|
+
assetWidth: z249.number().optional(),
|
|
7214
|
+
assetHeight: z249.number().optional()
|
|
7203
7215
|
});
|
|
7204
7216
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7205
7217
|
data: true,
|
|
@@ -7210,15 +7222,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7210
7222
|
});
|
|
7211
7223
|
|
|
7212
7224
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7213
|
-
import { z as
|
|
7214
|
-
var DTOFigmaNodeDataV2 =
|
|
7215
|
-
sceneNodeId:
|
|
7225
|
+
import { z as z250 } from "zod";
|
|
7226
|
+
var DTOFigmaNodeDataV2 = z250.object({
|
|
7227
|
+
sceneNodeId: z250.string(),
|
|
7216
7228
|
format: FigmaNodeRenderFormat,
|
|
7217
|
-
scale:
|
|
7229
|
+
scale: z250.number().optional(),
|
|
7218
7230
|
renderState: FigmaNodeRenderState,
|
|
7219
7231
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7220
7232
|
renderError: FigmaNodeRenderError.optional(),
|
|
7221
|
-
hasSource:
|
|
7233
|
+
hasSource: z250.boolean()
|
|
7222
7234
|
});
|
|
7223
7235
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7224
7236
|
data: true,
|
|
@@ -7229,105 +7241,105 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7229
7241
|
});
|
|
7230
7242
|
|
|
7231
7243
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7232
|
-
import { z as
|
|
7233
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7234
|
-
type:
|
|
7235
|
-
figmaNodes:
|
|
7244
|
+
import { z as z251 } from "zod";
|
|
7245
|
+
var DTOFigmaNodeRenderActionOutput = z251.object({
|
|
7246
|
+
type: z251.literal("FigmaNodeRender"),
|
|
7247
|
+
figmaNodes: z251.array(DTOFigmaNode)
|
|
7236
7248
|
});
|
|
7237
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7238
|
-
type:
|
|
7239
|
-
figmaNodes:
|
|
7249
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z251.object({
|
|
7250
|
+
type: z251.literal("FigmaNodeRenderAsync"),
|
|
7251
|
+
figmaNodes: z251.array(DTOFigmaNodeV2)
|
|
7240
7252
|
});
|
|
7241
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7242
|
-
type:
|
|
7253
|
+
var DTOFigmaNodeRenderActionInput = z251.object({
|
|
7254
|
+
type: z251.literal("FigmaNodeRender"),
|
|
7243
7255
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7244
7256
|
});
|
|
7245
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7246
|
-
type:
|
|
7257
|
+
var DTOFigmaNodeRenderAsyncActionInput = z251.object({
|
|
7258
|
+
type: z251.literal("FigmaNodeRenderAsync"),
|
|
7247
7259
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7248
7260
|
});
|
|
7249
7261
|
|
|
7250
7262
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7251
|
-
import { z as
|
|
7252
|
-
var DTOFrameNodeStructure =
|
|
7253
|
-
id:
|
|
7254
|
-
persistentId:
|
|
7255
|
-
designSystemVersionId:
|
|
7263
|
+
import { z as z252 } from "zod";
|
|
7264
|
+
var DTOFrameNodeStructure = z252.object({
|
|
7265
|
+
id: z252.string(),
|
|
7266
|
+
persistentId: z252.string(),
|
|
7267
|
+
designSystemVersionId: z252.string(),
|
|
7256
7268
|
origin: FigmaFileStructureOrigin,
|
|
7257
7269
|
assetsInFile: FigmaFileStructureStatistics
|
|
7258
7270
|
});
|
|
7259
|
-
var DTOFrameNodeStructureListResponse =
|
|
7271
|
+
var DTOFrameNodeStructureListResponse = z252.object({
|
|
7260
7272
|
structures: DTOFrameNodeStructure.array()
|
|
7261
7273
|
});
|
|
7262
7274
|
|
|
7263
7275
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7264
|
-
import { z as
|
|
7276
|
+
import { z as z253 } from "zod";
|
|
7265
7277
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
7266
|
-
var DTOElementPropertyDefinitionOption =
|
|
7267
|
-
id:
|
|
7268
|
-
name:
|
|
7278
|
+
var DTOElementPropertyDefinitionOption = z253.object({
|
|
7279
|
+
id: z253.string(),
|
|
7280
|
+
name: z253.string(),
|
|
7269
7281
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7270
7282
|
});
|
|
7271
|
-
var DTOElementPropertyDefinition =
|
|
7272
|
-
id:
|
|
7273
|
-
designSystemVersionId:
|
|
7283
|
+
var DTOElementPropertyDefinition = z253.object({
|
|
7284
|
+
id: z253.string(),
|
|
7285
|
+
designSystemVersionId: z253.string(),
|
|
7274
7286
|
meta: DTOObjectMeta,
|
|
7275
|
-
persistentId:
|
|
7287
|
+
persistentId: z253.string(),
|
|
7276
7288
|
type: ElementPropertyTypeSchema,
|
|
7277
7289
|
targetElementType: ElementPropertyTargetType,
|
|
7278
|
-
codeName:
|
|
7279
|
-
options: nullishToOptional(
|
|
7290
|
+
codeName: z253.string().regex(CODE_NAME_REGEX2),
|
|
7291
|
+
options: nullishToOptional(z253.array(DTOElementPropertyDefinitionOption)),
|
|
7280
7292
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7281
|
-
isImmutable:
|
|
7293
|
+
isImmutable: z253.boolean(),
|
|
7282
7294
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7283
7295
|
});
|
|
7284
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7285
|
-
definitions:
|
|
7296
|
+
var DTOElementPropertyDefinitionListResponse = z253.object({
|
|
7297
|
+
definitions: z253.array(DTOElementPropertyDefinition)
|
|
7286
7298
|
});
|
|
7287
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7299
|
+
var DTOElementPropertyDefinitionResponse = z253.object({
|
|
7288
7300
|
definition: DTOElementPropertyDefinition
|
|
7289
7301
|
});
|
|
7290
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7302
|
+
var DTOElementPropertyDefinitionCreatePayload = z253.object({
|
|
7291
7303
|
meta: DTOObjectMeta,
|
|
7292
|
-
persistentId:
|
|
7304
|
+
persistentId: z253.string(),
|
|
7293
7305
|
type: ElementPropertyTypeSchema,
|
|
7294
7306
|
targetElementType: ElementPropertyTargetType,
|
|
7295
|
-
codeName:
|
|
7296
|
-
options: nullishToOptional(
|
|
7307
|
+
codeName: z253.string().regex(CODE_NAME_REGEX2),
|
|
7308
|
+
options: nullishToOptional(z253.array(DTOElementPropertyDefinitionOption)),
|
|
7297
7309
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7298
|
-
columnWidth:
|
|
7310
|
+
columnWidth: z253.number().max(1024).optional()
|
|
7299
7311
|
});
|
|
7300
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7312
|
+
var DTOElementPropertyDefinitionUpdatePayload = z253.object({
|
|
7301
7313
|
meta: DTOObjectMeta.optional(),
|
|
7302
|
-
codeName:
|
|
7303
|
-
options:
|
|
7314
|
+
codeName: z253.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7315
|
+
options: z253.array(DTOElementPropertyDefinitionOption).optional()
|
|
7304
7316
|
});
|
|
7305
7317
|
|
|
7306
7318
|
// src/api/dto/elements/properties/property-values.ts
|
|
7307
|
-
import { z as
|
|
7308
|
-
var DTOElementPropertyValue =
|
|
7309
|
-
id:
|
|
7310
|
-
designSystemVersionId:
|
|
7311
|
-
definitionId:
|
|
7312
|
-
targetElementId:
|
|
7313
|
-
value:
|
|
7314
|
-
valuePreview:
|
|
7315
|
-
});
|
|
7316
|
-
var DTOElementPropertyValueListResponse =
|
|
7317
|
-
values:
|
|
7318
|
-
});
|
|
7319
|
-
var DTOElementPropertyValueResponse =
|
|
7319
|
+
import { z as z254 } from "zod";
|
|
7320
|
+
var DTOElementPropertyValue = z254.object({
|
|
7321
|
+
id: z254.string(),
|
|
7322
|
+
designSystemVersionId: z254.string(),
|
|
7323
|
+
definitionId: z254.string(),
|
|
7324
|
+
targetElementId: z254.string(),
|
|
7325
|
+
value: z254.union([z254.string(), z254.number(), z254.boolean()]).optional(),
|
|
7326
|
+
valuePreview: z254.string().optional()
|
|
7327
|
+
});
|
|
7328
|
+
var DTOElementPropertyValueListResponse = z254.object({
|
|
7329
|
+
values: z254.array(DTOElementPropertyValue)
|
|
7330
|
+
});
|
|
7331
|
+
var DTOElementPropertyValueResponse = z254.object({
|
|
7320
7332
|
value: DTOElementPropertyValue
|
|
7321
7333
|
});
|
|
7322
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7323
|
-
definitionId:
|
|
7324
|
-
targetElementId:
|
|
7325
|
-
value:
|
|
7334
|
+
var DTOElementPropertyValueUpsertPaylod = z254.object({
|
|
7335
|
+
definitionId: z254.string(),
|
|
7336
|
+
targetElementId: z254.string(),
|
|
7337
|
+
value: z254.string().or(z254.number()).or(z254.boolean())
|
|
7326
7338
|
});
|
|
7327
7339
|
|
|
7328
7340
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7329
|
-
import { z as
|
|
7330
|
-
var DTOElementActionOutput =
|
|
7341
|
+
import { z as z255 } from "zod";
|
|
7342
|
+
var DTOElementActionOutput = z255.discriminatedUnion("type", [
|
|
7331
7343
|
// Documentation pages
|
|
7332
7344
|
DTODocumentationPageCreateActionOutputV2,
|
|
7333
7345
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7352,7 +7364,7 @@ var DTOElementActionOutput = z254.discriminatedUnion("type", [
|
|
|
7352
7364
|
// Approvals
|
|
7353
7365
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
7354
7366
|
]);
|
|
7355
|
-
var DTOElementActionInput =
|
|
7367
|
+
var DTOElementActionInput = z255.discriminatedUnion("type", [
|
|
7356
7368
|
// Documentation pages
|
|
7357
7369
|
DTODocumentationPageCreateActionInputV2,
|
|
7358
7370
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7377,90 +7389,90 @@ var DTOElementActionInput = z254.discriminatedUnion("type", [
|
|
|
7377
7389
|
// Approval
|
|
7378
7390
|
DTODocumentationPageApprovalStateChangeActionInput
|
|
7379
7391
|
]).and(
|
|
7380
|
-
|
|
7381
|
-
tId:
|
|
7392
|
+
z255.object({
|
|
7393
|
+
tId: z255.string().optional()
|
|
7382
7394
|
})
|
|
7383
7395
|
);
|
|
7384
7396
|
|
|
7385
7397
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7386
|
-
import { z as
|
|
7387
|
-
var DTOElementsGetTypeFilter =
|
|
7388
|
-
var DTOElementsGetQuerySchema =
|
|
7389
|
-
types:
|
|
7390
|
-
responseVersion:
|
|
7398
|
+
import { z as z256 } from "zod";
|
|
7399
|
+
var DTOElementsGetTypeFilter = z256.enum(["FigmaNode"]);
|
|
7400
|
+
var DTOElementsGetQuerySchema = z256.object({
|
|
7401
|
+
types: z256.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
7402
|
+
responseVersion: z256.coerce.number().default(1)
|
|
7391
7403
|
});
|
|
7392
|
-
var DTOElementsGetOutput =
|
|
7393
|
-
figmaNodes:
|
|
7404
|
+
var DTOElementsGetOutput = z256.object({
|
|
7405
|
+
figmaNodes: z256.array(DTOFigmaNode).optional()
|
|
7394
7406
|
});
|
|
7395
|
-
var DTOElementsGetOutputV2 =
|
|
7396
|
-
figmaNodes:
|
|
7407
|
+
var DTOElementsGetOutputV2 = z256.object({
|
|
7408
|
+
figmaNodes: z256.array(DTOFigmaNodeV2).optional()
|
|
7397
7409
|
});
|
|
7398
7410
|
|
|
7399
7411
|
// src/api/dto/figma-components/assets/download.ts
|
|
7400
|
-
import { z as
|
|
7401
|
-
var DTOAssetRenderConfiguration =
|
|
7402
|
-
prefix:
|
|
7403
|
-
suffix:
|
|
7404
|
-
scale:
|
|
7405
|
-
format:
|
|
7406
|
-
});
|
|
7407
|
-
var DTORenderedAssetFile =
|
|
7408
|
-
assetId:
|
|
7409
|
-
fileName:
|
|
7410
|
-
sourceUrl:
|
|
7412
|
+
import { z as z257 } from "zod";
|
|
7413
|
+
var DTOAssetRenderConfiguration = z257.object({
|
|
7414
|
+
prefix: z257.string().optional(),
|
|
7415
|
+
suffix: z257.string().optional(),
|
|
7416
|
+
scale: z257.enum(["x1", "x2", "x3", "x4"]),
|
|
7417
|
+
format: z257.enum(["png", "pdf", "svg"])
|
|
7418
|
+
});
|
|
7419
|
+
var DTORenderedAssetFile = z257.object({
|
|
7420
|
+
assetId: z257.string(),
|
|
7421
|
+
fileName: z257.string(),
|
|
7422
|
+
sourceUrl: z257.string(),
|
|
7411
7423
|
settings: DTOAssetRenderConfiguration,
|
|
7412
|
-
originalName:
|
|
7424
|
+
originalName: z257.string()
|
|
7413
7425
|
});
|
|
7414
|
-
var DTODownloadAssetsRequest =
|
|
7415
|
-
persistentIds:
|
|
7426
|
+
var DTODownloadAssetsRequest = z257.object({
|
|
7427
|
+
persistentIds: z257.array(z257.string().uuid()).optional(),
|
|
7416
7428
|
settings: DTOAssetRenderConfiguration.array()
|
|
7417
7429
|
});
|
|
7418
|
-
var DTODownloadAssetsResponse =
|
|
7430
|
+
var DTODownloadAssetsResponse = z257.object({
|
|
7419
7431
|
items: DTORenderedAssetFile.array()
|
|
7420
7432
|
});
|
|
7421
7433
|
|
|
7422
7434
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7423
|
-
import { z as
|
|
7424
|
-
var DTOLiveblocksAuthResponse =
|
|
7425
|
-
token:
|
|
7435
|
+
import { z as z258 } from "zod";
|
|
7436
|
+
var DTOLiveblocksAuthResponse = z258.object({
|
|
7437
|
+
token: z258.string()
|
|
7426
7438
|
});
|
|
7427
7439
|
|
|
7428
7440
|
// src/api/dto/themes/override.ts
|
|
7429
|
-
import { z as
|
|
7441
|
+
import { z as z259 } from "zod";
|
|
7430
7442
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7431
|
-
|
|
7432
|
-
tokenPersistentId:
|
|
7443
|
+
z259.object({
|
|
7444
|
+
tokenPersistentId: z259.string(),
|
|
7433
7445
|
origin: ThemeOverrideOrigin.optional()
|
|
7434
7446
|
})
|
|
7435
7447
|
);
|
|
7436
7448
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7437
|
-
|
|
7438
|
-
tokenPersistentId:
|
|
7449
|
+
z259.object({
|
|
7450
|
+
tokenPersistentId: z259.string()
|
|
7439
7451
|
})
|
|
7440
7452
|
);
|
|
7441
7453
|
|
|
7442
7454
|
// src/api/dto/themes/theme.ts
|
|
7443
|
-
import { z as
|
|
7444
|
-
var DTOTheme =
|
|
7445
|
-
id:
|
|
7446
|
-
persistentId:
|
|
7447
|
-
designSystemVersionId:
|
|
7448
|
-
brandId:
|
|
7455
|
+
import { z as z260 } from "zod";
|
|
7456
|
+
var DTOTheme = z260.object({
|
|
7457
|
+
id: z260.string(),
|
|
7458
|
+
persistentId: z260.string(),
|
|
7459
|
+
designSystemVersionId: z260.string(),
|
|
7460
|
+
brandId: z260.string(),
|
|
7449
7461
|
meta: ObjectMeta,
|
|
7450
|
-
codeName:
|
|
7462
|
+
codeName: z260.string(),
|
|
7451
7463
|
overrides: DTOThemeOverride.array()
|
|
7452
7464
|
});
|
|
7453
|
-
var DTOThemeResponse =
|
|
7465
|
+
var DTOThemeResponse = z260.object({
|
|
7454
7466
|
theme: DTOTheme
|
|
7455
7467
|
});
|
|
7456
|
-
var DTOThemeListResponse =
|
|
7468
|
+
var DTOThemeListResponse = z260.object({
|
|
7457
7469
|
themes: DTOTheme.array()
|
|
7458
7470
|
});
|
|
7459
|
-
var DTOThemeCreatePayload =
|
|
7471
|
+
var DTOThemeCreatePayload = z260.object({
|
|
7460
7472
|
meta: ObjectMeta,
|
|
7461
|
-
persistentId:
|
|
7462
|
-
brandId:
|
|
7463
|
-
codeName:
|
|
7473
|
+
persistentId: z260.string(),
|
|
7474
|
+
brandId: z260.string(),
|
|
7475
|
+
codeName: z260.string(),
|
|
7464
7476
|
overrides: DTOThemeOverride.array()
|
|
7465
7477
|
});
|
|
7466
7478
|
|
|
@@ -7667,7 +7679,7 @@ var ExportersEndpoint = class {
|
|
|
7667
7679
|
}
|
|
7668
7680
|
list(workspaceId, query) {
|
|
7669
7681
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterListResponse, {
|
|
7670
|
-
query: serializeQuery(query)
|
|
7682
|
+
query: query ? serializeQuery(query) : void 0
|
|
7671
7683
|
});
|
|
7672
7684
|
}
|
|
7673
7685
|
get(workspaceId, exporterId) {
|
|
@@ -7676,13 +7688,13 @@ var ExportersEndpoint = class {
|
|
|
7676
7688
|
};
|
|
7677
7689
|
|
|
7678
7690
|
// src/api/endpoints/codegen/jobs.ts
|
|
7679
|
-
import { z as
|
|
7691
|
+
import { z as z261 } from "zod";
|
|
7680
7692
|
var ExporterJobsEndpoint = class {
|
|
7681
7693
|
constructor(requestExecutor) {
|
|
7682
7694
|
this.requestExecutor = requestExecutor;
|
|
7683
7695
|
}
|
|
7684
7696
|
list(workspaceId) {
|
|
7685
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
7697
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z261.any());
|
|
7686
7698
|
}
|
|
7687
7699
|
get(workspaceId, jobId) {
|
|
7688
7700
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -7740,7 +7752,7 @@ var CodegenEndpoint = class {
|
|
|
7740
7752
|
};
|
|
7741
7753
|
|
|
7742
7754
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7743
|
-
import { z as
|
|
7755
|
+
import { z as z262 } from "zod";
|
|
7744
7756
|
var BrandsEndpoint = class {
|
|
7745
7757
|
constructor(requestExecutor) {
|
|
7746
7758
|
this.requestExecutor = requestExecutor;
|
|
@@ -7774,7 +7786,7 @@ var BrandsEndpoint = class {
|
|
|
7774
7786
|
});
|
|
7775
7787
|
}
|
|
7776
7788
|
delete(dsId, vId, brandId) {
|
|
7777
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
7789
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z262.any(), {
|
|
7778
7790
|
method: "DELETE"
|
|
7779
7791
|
});
|
|
7780
7792
|
}
|
|
@@ -7943,7 +7955,7 @@ var ImportJobsEndpoint = class {
|
|
|
7943
7955
|
};
|
|
7944
7956
|
|
|
7945
7957
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7946
|
-
import { z as
|
|
7958
|
+
import { z as z263 } from "zod";
|
|
7947
7959
|
var OverridesEndpoint = class {
|
|
7948
7960
|
constructor(requestExecutor) {
|
|
7949
7961
|
this.requestExecutor = requestExecutor;
|
|
@@ -7951,7 +7963,7 @@ var OverridesEndpoint = class {
|
|
|
7951
7963
|
create(dsId, versionId, themeId, body) {
|
|
7952
7964
|
return this.requestExecutor.json(
|
|
7953
7965
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7954
|
-
|
|
7966
|
+
z263.any(),
|
|
7955
7967
|
{
|
|
7956
7968
|
method: "POST",
|
|
7957
7969
|
body
|
|
@@ -7961,7 +7973,7 @@ var OverridesEndpoint = class {
|
|
|
7961
7973
|
};
|
|
7962
7974
|
|
|
7963
7975
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7964
|
-
import { z as
|
|
7976
|
+
import { z as z264 } from "zod";
|
|
7965
7977
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7966
7978
|
constructor(requestExecutor) {
|
|
7967
7979
|
this.requestExecutor = requestExecutor;
|
|
@@ -7989,7 +8001,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7989
8001
|
delete(designSystemId, versionId, defId) {
|
|
7990
8002
|
return this.requestExecutor.json(
|
|
7991
8003
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7992
|
-
|
|
8004
|
+
z264.any(),
|
|
7993
8005
|
{ method: "DELETE" }
|
|
7994
8006
|
);
|
|
7995
8007
|
}
|
|
@@ -8028,7 +8040,7 @@ var VersionStatsEndpoint = class {
|
|
|
8028
8040
|
};
|
|
8029
8041
|
|
|
8030
8042
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8031
|
-
import { z as
|
|
8043
|
+
import { z as z265 } from "zod";
|
|
8032
8044
|
var ThemesEndpoint = class {
|
|
8033
8045
|
constructor(requestExecutor) {
|
|
8034
8046
|
this.requestExecutor = requestExecutor;
|
|
@@ -8051,7 +8063,7 @@ var ThemesEndpoint = class {
|
|
|
8051
8063
|
});
|
|
8052
8064
|
}
|
|
8053
8065
|
delete(dsId, versionId, themeId) {
|
|
8054
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8066
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z265.any(), {
|
|
8055
8067
|
method: "DELETE"
|
|
8056
8068
|
});
|
|
8057
8069
|
}
|
|
@@ -8204,7 +8216,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8204
8216
|
};
|
|
8205
8217
|
|
|
8206
8218
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8207
|
-
import { z as
|
|
8219
|
+
import { z as z267 } from "zod";
|
|
8208
8220
|
|
|
8209
8221
|
// src/api/endpoints/design-system/members.ts
|
|
8210
8222
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -8225,7 +8237,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
8225
8237
|
};
|
|
8226
8238
|
|
|
8227
8239
|
// src/api/endpoints/design-system/sources.ts
|
|
8228
|
-
import { z as
|
|
8240
|
+
import { z as z266 } from "zod";
|
|
8229
8241
|
var DesignSystemSourcesEndpoint = class {
|
|
8230
8242
|
constructor(requestExecutor) {
|
|
8231
8243
|
this.requestExecutor = requestExecutor;
|
|
@@ -8240,7 +8252,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8240
8252
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
8241
8253
|
}
|
|
8242
8254
|
delete(dsId, sourceId) {
|
|
8243
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
8255
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z266.any(), { method: "DELETE" });
|
|
8244
8256
|
}
|
|
8245
8257
|
figmaImport(dsId, payload) {
|
|
8246
8258
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8314,7 +8326,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8314
8326
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
8315
8327
|
}
|
|
8316
8328
|
delete(dsId) {
|
|
8317
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
8329
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z267.any(), { method: "DELETE" });
|
|
8318
8330
|
}
|
|
8319
8331
|
update(dsId, body) {
|
|
8320
8332
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -8358,7 +8370,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
8358
8370
|
};
|
|
8359
8371
|
|
|
8360
8372
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
8361
|
-
import { z as
|
|
8373
|
+
import { z as z268 } from "zod";
|
|
8362
8374
|
var WorkspaceMembersEndpoint = class {
|
|
8363
8375
|
constructor(requestExecutor) {
|
|
8364
8376
|
this.requestExecutor = requestExecutor;
|
|
@@ -8375,7 +8387,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8375
8387
|
});
|
|
8376
8388
|
}
|
|
8377
8389
|
invite(workspaceId, body) {
|
|
8378
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
8390
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z268.any(), { method: "POST", body });
|
|
8379
8391
|
}
|
|
8380
8392
|
delete(workspaceId, userId) {
|
|
8381
8393
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -8385,7 +8397,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8385
8397
|
};
|
|
8386
8398
|
|
|
8387
8399
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
8388
|
-
import { z as
|
|
8400
|
+
import { z as z269 } from "zod";
|
|
8389
8401
|
var WorkspacesEndpoint = class {
|
|
8390
8402
|
constructor(requestExecutor) {
|
|
8391
8403
|
this.requestExecutor = requestExecutor;
|
|
@@ -8408,10 +8420,10 @@ var WorkspacesEndpoint = class {
|
|
|
8408
8420
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
8409
8421
|
}
|
|
8410
8422
|
delete(workspaceId) {
|
|
8411
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
8423
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z269.any(), { method: "DELETE" });
|
|
8412
8424
|
}
|
|
8413
8425
|
subscription(workspaceId) {
|
|
8414
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
8426
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z269.any(), { method: "GET" });
|
|
8415
8427
|
}
|
|
8416
8428
|
transferOwnership(workspaceId, body) {
|
|
8417
8429
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -8511,9 +8523,9 @@ ${bodyText}`,
|
|
|
8511
8523
|
|
|
8512
8524
|
// src/api/transport/request-executor.ts
|
|
8513
8525
|
import fetch from "node-fetch";
|
|
8514
|
-
import { z as
|
|
8515
|
-
var ResponseWrapper =
|
|
8516
|
-
result:
|
|
8526
|
+
import { z as z270 } from "zod";
|
|
8527
|
+
var ResponseWrapper = z270.object({
|
|
8528
|
+
result: z270.record(z270.any())
|
|
8517
8529
|
});
|
|
8518
8530
|
var RequestExecutor = class {
|
|
8519
8531
|
constructor(testServerConfig) {
|
|
@@ -8590,31 +8602,31 @@ var SupernovaApiClient = class {
|
|
|
8590
8602
|
};
|
|
8591
8603
|
|
|
8592
8604
|
// src/events/design-system.ts
|
|
8593
|
-
import { z as
|
|
8594
|
-
var DTOEventFigmaNodesRendered =
|
|
8595
|
-
type:
|
|
8596
|
-
designSystemId:
|
|
8597
|
-
versionId:
|
|
8598
|
-
figmaNodePersistentIds:
|
|
8599
|
-
});
|
|
8600
|
-
var DTOEventDataSourcesImported =
|
|
8601
|
-
type:
|
|
8602
|
-
designSystemId:
|
|
8603
|
-
versionId:
|
|
8604
|
-
importJobId:
|
|
8605
|
+
import { z as z271 } from "zod";
|
|
8606
|
+
var DTOEventFigmaNodesRendered = z271.object({
|
|
8607
|
+
type: z271.literal("DesignSystem.FigmaNodesRendered"),
|
|
8608
|
+
designSystemId: z271.string(),
|
|
8609
|
+
versionId: z271.string(),
|
|
8610
|
+
figmaNodePersistentIds: z271.string().array()
|
|
8611
|
+
});
|
|
8612
|
+
var DTOEventDataSourcesImported = z271.object({
|
|
8613
|
+
type: z271.literal("DesignSystem.ImportJobFinished"),
|
|
8614
|
+
designSystemId: z271.string(),
|
|
8615
|
+
versionId: z271.string(),
|
|
8616
|
+
importJobId: z271.string(),
|
|
8605
8617
|
dataSourceType: DataSourceRemoteType,
|
|
8606
|
-
dataSourceIds:
|
|
8618
|
+
dataSourceIds: z271.string().array()
|
|
8607
8619
|
});
|
|
8608
8620
|
|
|
8609
8621
|
// src/events/event.ts
|
|
8610
|
-
import { z as
|
|
8611
|
-
var DTOEvent =
|
|
8622
|
+
import { z as z272 } from "zod";
|
|
8623
|
+
var DTOEvent = z272.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
8612
8624
|
|
|
8613
8625
|
// src/sync/docs-structure-repo.ts
|
|
8614
8626
|
import PQueue from "p-queue";
|
|
8615
8627
|
|
|
8616
8628
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8617
|
-
import { z as
|
|
8629
|
+
import { z as z273 } from "zod";
|
|
8618
8630
|
|
|
8619
8631
|
// src/yjs/version-room/base.ts
|
|
8620
8632
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9179,24 +9191,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9179
9191
|
};
|
|
9180
9192
|
|
|
9181
9193
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9182
|
-
var DocumentationHierarchySettings =
|
|
9183
|
-
routingVersion:
|
|
9184
|
-
isDraftFeatureAdopted:
|
|
9185
|
-
isApprovalFeatureEnabled:
|
|
9186
|
-
approvalRequiredForPublishing:
|
|
9194
|
+
var DocumentationHierarchySettings = z273.object({
|
|
9195
|
+
routingVersion: z273.string(),
|
|
9196
|
+
isDraftFeatureAdopted: z273.boolean(),
|
|
9197
|
+
isApprovalFeatureEnabled: z273.boolean(),
|
|
9198
|
+
approvalRequiredForPublishing: z273.boolean()
|
|
9187
9199
|
});
|
|
9188
9200
|
function yjsToDocumentationHierarchy(doc) {
|
|
9189
9201
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9190
9202
|
}
|
|
9191
9203
|
|
|
9192
9204
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9193
|
-
import { z as
|
|
9194
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9195
|
-
title:
|
|
9205
|
+
import { z as z274 } from "zod";
|
|
9206
|
+
var DTODocumentationPageRoomHeaderData = z274.object({
|
|
9207
|
+
title: z274.string(),
|
|
9196
9208
|
configuration: DTODocumentationItemConfigurationV2
|
|
9197
9209
|
});
|
|
9198
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9199
|
-
title:
|
|
9210
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z274.object({
|
|
9211
|
+
title: z274.string().optional(),
|
|
9200
9212
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9201
9213
|
});
|
|
9202
9214
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9247,7 +9259,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
9247
9259
|
header: rawHeader
|
|
9248
9260
|
};
|
|
9249
9261
|
return {
|
|
9250
|
-
title:
|
|
9262
|
+
title: z274.string().parse(title),
|
|
9251
9263
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9252
9264
|
};
|
|
9253
9265
|
}
|
|
@@ -9257,9 +9269,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
9257
9269
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9258
9270
|
|
|
9259
9271
|
// src/yjs/docs-editor/model/page.ts
|
|
9260
|
-
import { z as
|
|
9261
|
-
var DocumentationPageEditorModel =
|
|
9262
|
-
blocks:
|
|
9272
|
+
import { z as z275 } from "zod";
|
|
9273
|
+
var DocumentationPageEditorModel = z275.object({
|
|
9274
|
+
blocks: z275.array(DocumentationPageContentItem)
|
|
9263
9275
|
});
|
|
9264
9276
|
|
|
9265
9277
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -12818,7 +12830,7 @@ var blocks = [
|
|
|
12818
12830
|
|
|
12819
12831
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
12820
12832
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
12821
|
-
import { z as
|
|
12833
|
+
import { z as z276 } from "zod";
|
|
12822
12834
|
function yDocToPage(yDoc, definitions) {
|
|
12823
12835
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
12824
12836
|
}
|
|
@@ -12898,7 +12910,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
12898
12910
|
return null;
|
|
12899
12911
|
return {
|
|
12900
12912
|
id,
|
|
12901
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
12913
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z276.string()) ?? "",
|
|
12902
12914
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
12903
12915
|
};
|
|
12904
12916
|
}
|
|
@@ -12933,7 +12945,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
12933
12945
|
});
|
|
12934
12946
|
}
|
|
12935
12947
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
12936
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
12948
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z276.string());
|
|
12937
12949
|
if (!definitionId) {
|
|
12938
12950
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
12939
12951
|
return [];
|
|
@@ -12975,7 +12987,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
12975
12987
|
if (!id)
|
|
12976
12988
|
return null;
|
|
12977
12989
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12978
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12990
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z276.string().optional()));
|
|
12979
12991
|
return {
|
|
12980
12992
|
id,
|
|
12981
12993
|
type: "Block",
|
|
@@ -13103,10 +13115,10 @@ function parseRichTextAttribute(mark) {
|
|
|
13103
13115
|
return null;
|
|
13104
13116
|
}
|
|
13105
13117
|
function parseProsemirrorLink(mark) {
|
|
13106
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
13118
|
+
const href = getProsemirrorAttribute(mark, "href", z276.string().optional());
|
|
13107
13119
|
if (!href)
|
|
13108
13120
|
return null;
|
|
13109
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
13121
|
+
const target = getProsemirrorAttribute(mark, "target", z276.string().optional());
|
|
13110
13122
|
const openInNewTab = target === "_blank";
|
|
13111
13123
|
if (href.startsWith("@")) {
|
|
13112
13124
|
return {
|
|
@@ -13125,10 +13137,10 @@ function parseProsemirrorLink(mark) {
|
|
|
13125
13137
|
}
|
|
13126
13138
|
}
|
|
13127
13139
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13128
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
13140
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z276.string().optional());
|
|
13129
13141
|
if (!highlightId)
|
|
13130
13142
|
return null;
|
|
13131
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
13143
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z276.boolean().optional()) ?? false;
|
|
13132
13144
|
return {
|
|
13133
13145
|
type: "Comment",
|
|
13134
13146
|
commentHighlightId: highlightId,
|
|
@@ -13140,7 +13152,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13140
13152
|
if (!id)
|
|
13141
13153
|
return null;
|
|
13142
13154
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13143
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
13155
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z276.boolean().optional()) !== false;
|
|
13144
13156
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13145
13157
|
if (!tableChild) {
|
|
13146
13158
|
return emptyTable(id, variantId, 0);
|
|
@@ -13187,9 +13199,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
13187
13199
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13188
13200
|
if (!id)
|
|
13189
13201
|
return null;
|
|
13190
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
13202
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z276.string().optional());
|
|
13191
13203
|
let columnWidth;
|
|
13192
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
13204
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z276.array(z276.number()).nullish());
|
|
13193
13205
|
if (columnWidthArray) {
|
|
13194
13206
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13195
13207
|
}
|
|
@@ -13227,7 +13239,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13227
13239
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13228
13240
|
};
|
|
13229
13241
|
case "image":
|
|
13230
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13242
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z276.string());
|
|
13231
13243
|
if (!items)
|
|
13232
13244
|
return null;
|
|
13233
13245
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -13347,7 +13359,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
13347
13359
|
);
|
|
13348
13360
|
}
|
|
13349
13361
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
13350
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13362
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z276.string());
|
|
13351
13363
|
if (!itemsString)
|
|
13352
13364
|
return null;
|
|
13353
13365
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -13359,18 +13371,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
13359
13371
|
}
|
|
13360
13372
|
function parseAppearance(prosemirrorNode) {
|
|
13361
13373
|
let appearance = {};
|
|
13362
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
13374
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z276.string().optional());
|
|
13363
13375
|
if (rawAppearanceString) {
|
|
13364
13376
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
13365
13377
|
if (parsedAppearance.success) {
|
|
13366
13378
|
appearance = parsedAppearance.data;
|
|
13367
13379
|
}
|
|
13368
13380
|
}
|
|
13369
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
13381
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z276.number().optional());
|
|
13370
13382
|
if (columns) {
|
|
13371
13383
|
appearance.numberOfColumns = columns;
|
|
13372
13384
|
}
|
|
13373
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
13385
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z276.string().optional());
|
|
13374
13386
|
if (backgroundColor) {
|
|
13375
13387
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
13376
13388
|
if (parsedColor.success) {
|
|
@@ -13465,13 +13477,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
13465
13477
|
}
|
|
13466
13478
|
}
|
|
13467
13479
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
13468
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
13480
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z276.string());
|
|
13469
13481
|
if (!id)
|
|
13470
13482
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
13471
13483
|
return id;
|
|
13472
13484
|
}
|
|
13473
13485
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
13474
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
13486
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z276.string()));
|
|
13475
13487
|
}
|
|
13476
13488
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
13477
13489
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -13879,7 +13891,7 @@ var DocsStructureRepository = class {
|
|
|
13879
13891
|
}
|
|
13880
13892
|
async executeInternalAction(action) {
|
|
13881
13893
|
try {
|
|
13882
|
-
return this.transactionExecutor(action.action);
|
|
13894
|
+
return await this.transactionExecutor(action.action);
|
|
13883
13895
|
} catch (e) {
|
|
13884
13896
|
this.errorObservers.forEach((o) => o(e, action.metadata));
|
|
13885
13897
|
}
|