@supernova-studio/client 1.0.5 → 1.0.7
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 +126 -1
- package/dist/index.d.ts +126 -1
- package/dist/index.js +22 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1204 -1185
- 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) => {
|
|
@@ -4759,14 +4760,21 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4759
4760
|
destinations: z169.array(ExportJobDestinationType),
|
|
4760
4761
|
docsEnvironment: PublishedDocEnvironment
|
|
4761
4762
|
}).partial();
|
|
4762
|
-
var
|
|
4763
|
-
var
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4763
|
+
var ExporterType2 = z170.enum(["documentation", "code"]);
|
|
4764
|
+
var ListExporterQuery = z170.object({
|
|
4765
|
+
limit: z170.number().optional(),
|
|
4766
|
+
offset: z170.number().optional(),
|
|
4767
|
+
type: ExporterType2.optional(),
|
|
4768
|
+
search: z170.string().optional()
|
|
4769
|
+
});
|
|
4770
|
+
var ExporterWorkspaceMembershipRole = z171.enum(["Owner", "OwnerArchived", "User"]);
|
|
4771
|
+
var ExporterWorkspaceMembership = z172.object({
|
|
4772
|
+
id: z172.string(),
|
|
4773
|
+
workspaceId: z172.string(),
|
|
4774
|
+
exporterId: z172.string(),
|
|
4767
4775
|
role: ExporterWorkspaceMembershipRole
|
|
4768
4776
|
});
|
|
4769
|
-
var FlaggedFeature =
|
|
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,262 @@ 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
|
-
|
|
6588
|
-
|
|
6597
|
+
blockVariants: z231.record(z231.string(), PulsarContributionVariant.array()),
|
|
6598
|
+
homepage: z231.string().optional(),
|
|
6599
|
+
organization: z231.string().optional(),
|
|
6600
|
+
gitProivder: z231.string().optional(),
|
|
6601
|
+
packageId: z231.string().optional(),
|
|
6602
|
+
tags: z231.array(z231.string()),
|
|
6603
|
+
author: z231.string().optional(),
|
|
6604
|
+
usesLocale: z231.boolean(),
|
|
6605
|
+
usesBrands: z231.boolean(),
|
|
6606
|
+
usesThemes: z231.boolean(),
|
|
6589
6607
|
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:
|
|
6608
|
+
gitUrl: nullishToOptional(z231.string()),
|
|
6609
|
+
gitBranch: nullishToOptional(z231.string()),
|
|
6610
|
+
gitDirectory: nullishToOptional(z231.string()),
|
|
6611
|
+
isDeprecated: z231.boolean(),
|
|
6612
|
+
deprecationNote: z231.string().optional(),
|
|
6613
|
+
replacementExporterId: z231.string().optional()
|
|
6614
|
+
});
|
|
6615
|
+
var DTOExporterMembership = z231.object({
|
|
6616
|
+
workspaceId: z231.string(),
|
|
6617
|
+
exporterId: z231.string(),
|
|
6600
6618
|
role: DTOExporterMembershipRole
|
|
6601
6619
|
});
|
|
6602
|
-
var DTOExporterResponse =
|
|
6620
|
+
var DTOExporterResponse = z231.object({
|
|
6603
6621
|
exporter: DTOExporter,
|
|
6604
6622
|
membership: DTOExporterMembership
|
|
6605
6623
|
});
|
|
6606
|
-
var DTOExporterListResponse =
|
|
6624
|
+
var DTOExporterListResponse = z231.object({
|
|
6607
6625
|
exporters: DTOExporter.array(),
|
|
6608
|
-
membership: DTOExporterMembership.array()
|
|
6626
|
+
membership: DTOExporterMembership.array(),
|
|
6627
|
+
total: z231.number()
|
|
6609
6628
|
});
|
|
6610
|
-
var DTOExporterGitProviderEnum =
|
|
6611
|
-
var DTOExporterCreateInput =
|
|
6612
|
-
url:
|
|
6629
|
+
var DTOExporterGitProviderEnum = z231.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6630
|
+
var DTOExporterCreateInput = z231.object({
|
|
6631
|
+
url: z231.string(),
|
|
6613
6632
|
provider: DTOExporterGitProviderEnum
|
|
6614
6633
|
});
|
|
6615
|
-
var DTOExporterUpdateInput =
|
|
6616
|
-
url:
|
|
6634
|
+
var DTOExporterUpdateInput = z231.object({
|
|
6635
|
+
url: z231.string().optional()
|
|
6617
6636
|
});
|
|
6618
|
-
var DTOExporterDeprecationInput =
|
|
6619
|
-
isDeprecated:
|
|
6620
|
-
deprecationNote:
|
|
6621
|
-
replacementExporterId:
|
|
6637
|
+
var DTOExporterDeprecationInput = z231.object({
|
|
6638
|
+
isDeprecated: z231.boolean(),
|
|
6639
|
+
deprecationNote: z231.string().optional(),
|
|
6640
|
+
replacementExporterId: z231.string().optional()
|
|
6622
6641
|
});
|
|
6623
6642
|
|
|
6624
6643
|
// src/api/dto/export/filter.ts
|
|
6625
6644
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6626
6645
|
|
|
6627
6646
|
// src/api/dto/export/job.ts
|
|
6628
|
-
import { z as
|
|
6629
|
-
var DTOExportJobCreatedBy =
|
|
6630
|
-
userId:
|
|
6631
|
-
userName:
|
|
6647
|
+
import { z as z232 } from "zod";
|
|
6648
|
+
var DTOExportJobCreatedBy = z232.object({
|
|
6649
|
+
userId: z232.string(),
|
|
6650
|
+
userName: z232.string()
|
|
6632
6651
|
});
|
|
6633
|
-
var DTOExportJobDesignSystemPreview =
|
|
6634
|
-
id:
|
|
6652
|
+
var DTOExportJobDesignSystemPreview = z232.object({
|
|
6653
|
+
id: z232.string(),
|
|
6635
6654
|
meta: ObjectMeta
|
|
6636
6655
|
});
|
|
6637
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6638
|
-
id:
|
|
6656
|
+
var DTOExportJobDesignSystemVersionPreview = z232.object({
|
|
6657
|
+
id: z232.string(),
|
|
6639
6658
|
meta: ObjectMeta,
|
|
6640
|
-
version:
|
|
6641
|
-
isReadonly:
|
|
6659
|
+
version: z232.string(),
|
|
6660
|
+
isReadonly: z232.boolean()
|
|
6642
6661
|
});
|
|
6643
|
-
var DTOExportJobDestinations =
|
|
6662
|
+
var DTOExportJobDestinations = z232.object({
|
|
6644
6663
|
s3: ExporterDestinationS3.optional(),
|
|
6645
6664
|
azure: ExporterDestinationAzure.optional(),
|
|
6646
6665
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6647
6666
|
github: ExporterDestinationGithub.optional(),
|
|
6648
6667
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6649
6668
|
documentation: ExporterDestinationDocs.optional(),
|
|
6650
|
-
webhookUrl:
|
|
6669
|
+
webhookUrl: z232.string().optional()
|
|
6651
6670
|
});
|
|
6652
6671
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6653
6672
|
sndocs: true
|
|
6654
6673
|
}).extend({
|
|
6655
6674
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6656
6675
|
});
|
|
6657
|
-
var DTOExportJob =
|
|
6658
|
-
id:
|
|
6659
|
-
createdAt:
|
|
6660
|
-
finishedAt:
|
|
6661
|
-
index:
|
|
6676
|
+
var DTOExportJob = z232.object({
|
|
6677
|
+
id: z232.string(),
|
|
6678
|
+
createdAt: z232.coerce.date(),
|
|
6679
|
+
finishedAt: z232.coerce.date().optional(),
|
|
6680
|
+
index: z232.number().optional(),
|
|
6662
6681
|
status: ExportJobStatus,
|
|
6663
|
-
estimatedExecutionTime:
|
|
6682
|
+
estimatedExecutionTime: z232.number().optional(),
|
|
6664
6683
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6665
6684
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6666
6685
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6667
6686
|
destinations: DTOExportJobDestinations,
|
|
6668
|
-
exporterId:
|
|
6669
|
-
scheduleId:
|
|
6687
|
+
exporterId: z232.string(),
|
|
6688
|
+
scheduleId: z232.string().optional(),
|
|
6670
6689
|
result: DTOExportJobResult.optional(),
|
|
6671
|
-
brandPersistentId:
|
|
6672
|
-
themePersistentId:
|
|
6673
|
-
themePersistentIds:
|
|
6690
|
+
brandPersistentId: z232.string().optional(),
|
|
6691
|
+
themePersistentId: z232.string().optional(),
|
|
6692
|
+
themePersistentIds: z232.string().array().optional(),
|
|
6674
6693
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6675
6694
|
});
|
|
6676
|
-
var DTOExportJobResponse =
|
|
6695
|
+
var DTOExportJobResponse = z232.object({
|
|
6677
6696
|
job: DTOExportJob
|
|
6678
6697
|
});
|
|
6679
|
-
var DTOExportJobResponseLegacy =
|
|
6680
|
-
job:
|
|
6681
|
-
id:
|
|
6698
|
+
var DTOExportJobResponseLegacy = z232.object({
|
|
6699
|
+
job: z232.object({
|
|
6700
|
+
id: z232.string(),
|
|
6682
6701
|
status: ExportJobStatus
|
|
6683
6702
|
})
|
|
6684
6703
|
});
|
|
6685
|
-
var DTOExportJobCreateInput =
|
|
6686
|
-
designSystemId:
|
|
6687
|
-
designSystemVersionId:
|
|
6688
|
-
exporterId:
|
|
6689
|
-
brandId:
|
|
6690
|
-
themeId:
|
|
6691
|
-
themePersistentIds:
|
|
6704
|
+
var DTOExportJobCreateInput = z232.object({
|
|
6705
|
+
designSystemId: z232.string(),
|
|
6706
|
+
designSystemVersionId: z232.string(),
|
|
6707
|
+
exporterId: z232.string(),
|
|
6708
|
+
brandId: z232.string().optional(),
|
|
6709
|
+
themeId: z232.string().optional(),
|
|
6710
|
+
themePersistentIds: z232.string().array().optional(),
|
|
6692
6711
|
destinations: DTOExportJobDestinations,
|
|
6693
6712
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6694
6713
|
});
|
|
6695
6714
|
|
|
6696
6715
|
// 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:
|
|
6716
|
+
import { z as z233 } from "zod";
|
|
6717
|
+
var DTOPipelineListQuery = z233.object({
|
|
6718
|
+
designSystemId: z233.string().optional(),
|
|
6719
|
+
exporterId: z233.string().optional(),
|
|
6720
|
+
latestJobsLimit: z233.coerce.number().optional()
|
|
6721
|
+
});
|
|
6722
|
+
var DTOPipeline = z233.object({
|
|
6723
|
+
id: z233.string(),
|
|
6724
|
+
name: z233.string(),
|
|
6706
6725
|
eventType: PipelineEventType,
|
|
6707
|
-
isEnabled:
|
|
6708
|
-
workspaceId:
|
|
6709
|
-
designSystemId:
|
|
6710
|
-
exporterId:
|
|
6711
|
-
brandPersistentId:
|
|
6712
|
-
themePersistentId:
|
|
6713
|
-
themePersistentIds:
|
|
6726
|
+
isEnabled: z233.boolean(),
|
|
6727
|
+
workspaceId: z233.string(),
|
|
6728
|
+
designSystemId: z233.string(),
|
|
6729
|
+
exporterId: z233.string(),
|
|
6730
|
+
brandPersistentId: z233.string().optional(),
|
|
6731
|
+
themePersistentId: z233.string().optional(),
|
|
6732
|
+
themePersistentIds: z233.string().array().optional(),
|
|
6714
6733
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6715
6734
|
...ExportDestinationsMap.shape,
|
|
6716
6735
|
latestJobs: DTOExportJob.array(),
|
|
6717
|
-
isExporterDeprecated:
|
|
6736
|
+
isExporterDeprecated: z233.boolean()
|
|
6718
6737
|
});
|
|
6719
|
-
var DTOPipelineListResponse =
|
|
6738
|
+
var DTOPipelineListResponse = z233.object({
|
|
6720
6739
|
pipelines: DTOPipeline.array()
|
|
6721
6740
|
});
|
|
6722
|
-
var DTOPipelineResponse =
|
|
6741
|
+
var DTOPipelineResponse = z233.object({
|
|
6723
6742
|
pipeline: DTOPipeline
|
|
6724
6743
|
});
|
|
6725
6744
|
|
|
6726
6745
|
// src/api/dto/documentation/publish.ts
|
|
6727
6746
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6728
|
-
var DTOPublishDocumentationRequest =
|
|
6747
|
+
var DTOPublishDocumentationRequest = z234.object({
|
|
6729
6748
|
environment: PublishedDocEnvironment,
|
|
6730
6749
|
/**
|
|
6731
6750
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6733,66 +6752,66 @@ var DTOPublishDocumentationRequest = z233.object({
|
|
|
6733
6752
|
*/
|
|
6734
6753
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6735
6754
|
});
|
|
6736
|
-
var DTOPublishDocumentationResponse =
|
|
6755
|
+
var DTOPublishDocumentationResponse = z234.object({
|
|
6737
6756
|
job: DTOExportJob
|
|
6738
6757
|
});
|
|
6739
6758
|
|
|
6740
6759
|
// src/api/dto/documentation/room.ts
|
|
6741
|
-
import { z as
|
|
6742
|
-
var DTODocumentationPageRoom =
|
|
6743
|
-
id:
|
|
6760
|
+
import { z as z235 } from "zod";
|
|
6761
|
+
var DTODocumentationPageRoom = z235.object({
|
|
6762
|
+
id: z235.string()
|
|
6744
6763
|
});
|
|
6745
|
-
var DTODocumentationPageRoomResponse =
|
|
6764
|
+
var DTODocumentationPageRoomResponse = z235.object({
|
|
6746
6765
|
room: DTODocumentationPageRoom
|
|
6747
6766
|
});
|
|
6748
6767
|
|
|
6749
6768
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6750
|
-
import
|
|
6751
|
-
var DTOFigmaComponentGroup =
|
|
6752
|
-
id:
|
|
6753
|
-
designSystemVersionId:
|
|
6754
|
-
persistentId:
|
|
6755
|
-
isRoot:
|
|
6756
|
-
brandId:
|
|
6769
|
+
import z236 from "zod";
|
|
6770
|
+
var DTOFigmaComponentGroup = z236.object({
|
|
6771
|
+
id: z236.string(),
|
|
6772
|
+
designSystemVersionId: z236.string(),
|
|
6773
|
+
persistentId: z236.string(),
|
|
6774
|
+
isRoot: z236.boolean(),
|
|
6775
|
+
brandId: z236.string(),
|
|
6757
6776
|
meta: DTOObjectMeta,
|
|
6758
|
-
childrenIds:
|
|
6777
|
+
childrenIds: z236.string().array()
|
|
6759
6778
|
});
|
|
6760
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6779
|
+
var DTOFigmaComponentGroupListResponse = z236.object({
|
|
6761
6780
|
groups: DTOFigmaComponentGroup.array()
|
|
6762
6781
|
});
|
|
6763
6782
|
|
|
6764
6783
|
// src/api/dto/elements/components/figma-component.ts
|
|
6765
|
-
import { z as
|
|
6784
|
+
import { z as z237 } from "zod";
|
|
6766
6785
|
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:
|
|
6786
|
+
var DTOFigmaComponentPropertyMap = z237.record(DTOFigmaComponentProperty);
|
|
6787
|
+
var DTOFigmaComponent = z237.object({
|
|
6788
|
+
id: z237.string(),
|
|
6789
|
+
persistentId: z237.string(),
|
|
6790
|
+
designSystemVersionId: z237.string(),
|
|
6791
|
+
brandId: z237.string(),
|
|
6792
|
+
thumbnailUrl: z237.string().optional(),
|
|
6793
|
+
svgUrl: z237.string().optional(),
|
|
6794
|
+
exportProperties: z237.object({
|
|
6795
|
+
isAsset: z237.boolean()
|
|
6777
6796
|
}),
|
|
6778
|
-
createdAt:
|
|
6779
|
-
updatedAt:
|
|
6797
|
+
createdAt: z237.coerce.date(),
|
|
6798
|
+
updatedAt: z237.coerce.date(),
|
|
6780
6799
|
meta: ObjectMeta,
|
|
6781
6800
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6782
|
-
parentComponentPersistentId:
|
|
6783
|
-
childrenPersistentIds:
|
|
6801
|
+
parentComponentPersistentId: z237.string().optional(),
|
|
6802
|
+
childrenPersistentIds: z237.string().array().optional(),
|
|
6784
6803
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6785
|
-
variantPropertyValues:
|
|
6804
|
+
variantPropertyValues: z237.record(z237.string()).optional()
|
|
6786
6805
|
});
|
|
6787
|
-
var DTOFigmaComponentListResponse =
|
|
6806
|
+
var DTOFigmaComponentListResponse = z237.object({
|
|
6788
6807
|
components: DTOFigmaComponent.array()
|
|
6789
6808
|
});
|
|
6790
6809
|
|
|
6791
6810
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6792
|
-
import { z as
|
|
6811
|
+
import { z as z239 } from "zod";
|
|
6793
6812
|
|
|
6794
6813
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6795
|
-
import { z as
|
|
6814
|
+
import { z as z238 } from "zod";
|
|
6796
6815
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6797
6816
|
sortOrder: true,
|
|
6798
6817
|
parentPersistentId: true,
|
|
@@ -6802,13 +6821,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6802
6821
|
data: true,
|
|
6803
6822
|
shortPersistentId: true
|
|
6804
6823
|
}).extend({
|
|
6805
|
-
title:
|
|
6806
|
-
isRoot:
|
|
6807
|
-
childrenIds:
|
|
6824
|
+
title: z238.string(),
|
|
6825
|
+
isRoot: z238.boolean(),
|
|
6826
|
+
childrenIds: z238.array(z238.string()),
|
|
6808
6827
|
groupBehavior: DocumentationGroupBehavior,
|
|
6809
|
-
shortPersistentId:
|
|
6828
|
+
shortPersistentId: z238.string(),
|
|
6810
6829
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6811
|
-
type:
|
|
6830
|
+
type: z238.literal("Group"),
|
|
6812
6831
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6813
6832
|
draftState: DTODocumentationDraftState.optional(),
|
|
6814
6833
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6816,127 +6835,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6816
6835
|
//** An approval state for frontend to utilize. */
|
|
6817
6836
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6818
6837
|
});
|
|
6819
|
-
var DTOCreateDocumentationGroupInput =
|
|
6838
|
+
var DTOCreateDocumentationGroupInput = z238.object({
|
|
6820
6839
|
// Identifier
|
|
6821
|
-
persistentId:
|
|
6840
|
+
persistentId: z238.string(),
|
|
6822
6841
|
// Group properties
|
|
6823
|
-
title:
|
|
6842
|
+
title: z238.string(),
|
|
6824
6843
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6825
6844
|
// Group placement properties
|
|
6826
|
-
afterPersistentId:
|
|
6827
|
-
parentPersistentId:
|
|
6845
|
+
afterPersistentId: z238.string().nullish(),
|
|
6846
|
+
parentPersistentId: z238.string()
|
|
6828
6847
|
});
|
|
6829
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6848
|
+
var DTOUpdateDocumentationGroupInput = z238.object({
|
|
6830
6849
|
// Identifier of the group to update
|
|
6831
|
-
id:
|
|
6850
|
+
id: z238.string(),
|
|
6832
6851
|
// Group properties
|
|
6833
|
-
title:
|
|
6852
|
+
title: z238.string().optional(),
|
|
6834
6853
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6835
6854
|
});
|
|
6836
|
-
var DTOMoveDocumentationGroupInput =
|
|
6855
|
+
var DTOMoveDocumentationGroupInput = z238.object({
|
|
6837
6856
|
// Identifier of the group to update
|
|
6838
|
-
id:
|
|
6857
|
+
id: z238.string(),
|
|
6839
6858
|
// Group placement properties
|
|
6840
|
-
parentPersistentId:
|
|
6841
|
-
afterPersistentId:
|
|
6859
|
+
parentPersistentId: z238.string(),
|
|
6860
|
+
afterPersistentId: z238.string().nullish()
|
|
6842
6861
|
});
|
|
6843
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6862
|
+
var DTODuplicateDocumentationGroupInput = z238.object({
|
|
6844
6863
|
// Identifier of the group to duplicate from
|
|
6845
|
-
id:
|
|
6864
|
+
id: z238.string(),
|
|
6846
6865
|
// New group persistent id
|
|
6847
|
-
persistentId:
|
|
6866
|
+
persistentId: z238.string(),
|
|
6848
6867
|
// Group placement properties
|
|
6849
|
-
afterPersistentId:
|
|
6850
|
-
parentPersistentId:
|
|
6868
|
+
afterPersistentId: z238.string().nullish(),
|
|
6869
|
+
parentPersistentId: z238.string()
|
|
6851
6870
|
});
|
|
6852
|
-
var DTOCreateDocumentationTabInput =
|
|
6871
|
+
var DTOCreateDocumentationTabInput = z238.object({
|
|
6853
6872
|
// New group persistent id
|
|
6854
|
-
persistentId:
|
|
6873
|
+
persistentId: z238.string(),
|
|
6855
6874
|
// If this is page, we will attempt to convert it to tab
|
|
6856
6875
|
// If this is tab group, we will add a new tab to it
|
|
6857
|
-
fromItemPersistentId:
|
|
6858
|
-
tabName:
|
|
6876
|
+
fromItemPersistentId: z238.string(),
|
|
6877
|
+
tabName: z238.string()
|
|
6859
6878
|
});
|
|
6860
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6879
|
+
var DTODeleteDocumentationTabGroupInput = z238.object({
|
|
6861
6880
|
// Deleted group id
|
|
6862
|
-
id:
|
|
6881
|
+
id: z238.string()
|
|
6863
6882
|
});
|
|
6864
|
-
var DTODeleteDocumentationGroupInput =
|
|
6883
|
+
var DTODeleteDocumentationGroupInput = z238.object({
|
|
6865
6884
|
// Identifier
|
|
6866
|
-
id:
|
|
6885
|
+
id: z238.string(),
|
|
6867
6886
|
// Deletion options
|
|
6868
|
-
deleteSubtree:
|
|
6887
|
+
deleteSubtree: z238.boolean().default(false)
|
|
6869
6888
|
});
|
|
6870
6889
|
|
|
6871
6890
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6872
|
-
var SuccessPayload =
|
|
6873
|
-
success:
|
|
6891
|
+
var SuccessPayload = z239.object({
|
|
6892
|
+
success: z239.literal(true)
|
|
6874
6893
|
});
|
|
6875
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6876
|
-
type:
|
|
6894
|
+
var DTODocumentationGroupCreateActionOutputV2 = z239.object({
|
|
6895
|
+
type: z239.literal("DocumentationGroupCreate"),
|
|
6877
6896
|
output: SuccessPayload
|
|
6878
6897
|
});
|
|
6879
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6880
|
-
type:
|
|
6898
|
+
var DTODocumentationTabCreateActionOutputV2 = z239.object({
|
|
6899
|
+
type: z239.literal("DocumentationTabCreate"),
|
|
6881
6900
|
output: SuccessPayload
|
|
6882
6901
|
});
|
|
6883
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6884
|
-
type:
|
|
6902
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z239.object({
|
|
6903
|
+
type: z239.literal("DocumentationGroupUpdate"),
|
|
6885
6904
|
output: SuccessPayload
|
|
6886
6905
|
});
|
|
6887
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6888
|
-
type:
|
|
6906
|
+
var DTODocumentationGroupMoveActionOutputV2 = z239.object({
|
|
6907
|
+
type: z239.literal("DocumentationGroupMove"),
|
|
6889
6908
|
output: SuccessPayload
|
|
6890
6909
|
});
|
|
6891
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6892
|
-
type:
|
|
6910
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z239.object({
|
|
6911
|
+
type: z239.literal("DocumentationGroupDuplicate"),
|
|
6893
6912
|
output: SuccessPayload
|
|
6894
6913
|
});
|
|
6895
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6896
|
-
type:
|
|
6914
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z239.object({
|
|
6915
|
+
type: z239.literal("DocumentationGroupDelete"),
|
|
6897
6916
|
output: SuccessPayload
|
|
6898
6917
|
});
|
|
6899
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6900
|
-
type:
|
|
6918
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z239.object({
|
|
6919
|
+
type: z239.literal("DocumentationTabGroupDelete"),
|
|
6901
6920
|
output: SuccessPayload
|
|
6902
6921
|
});
|
|
6903
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6904
|
-
type:
|
|
6922
|
+
var DTODocumentationGroupCreateActionInputV2 = z239.object({
|
|
6923
|
+
type: z239.literal("DocumentationGroupCreate"),
|
|
6905
6924
|
input: DTOCreateDocumentationGroupInput
|
|
6906
6925
|
});
|
|
6907
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6908
|
-
type:
|
|
6926
|
+
var DTODocumentationTabCreateActionInputV2 = z239.object({
|
|
6927
|
+
type: z239.literal("DocumentationTabCreate"),
|
|
6909
6928
|
input: DTOCreateDocumentationTabInput
|
|
6910
6929
|
});
|
|
6911
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6912
|
-
type:
|
|
6930
|
+
var DTODocumentationGroupUpdateActionInputV2 = z239.object({
|
|
6931
|
+
type: z239.literal("DocumentationGroupUpdate"),
|
|
6913
6932
|
input: DTOUpdateDocumentationGroupInput
|
|
6914
6933
|
});
|
|
6915
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6916
|
-
type:
|
|
6934
|
+
var DTODocumentationGroupMoveActionInputV2 = z239.object({
|
|
6935
|
+
type: z239.literal("DocumentationGroupMove"),
|
|
6917
6936
|
input: DTOMoveDocumentationGroupInput
|
|
6918
6937
|
});
|
|
6919
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6920
|
-
type:
|
|
6938
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z239.object({
|
|
6939
|
+
type: z239.literal("DocumentationGroupDuplicate"),
|
|
6921
6940
|
input: DTODuplicateDocumentationGroupInput
|
|
6922
6941
|
});
|
|
6923
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6924
|
-
type:
|
|
6942
|
+
var DTODocumentationGroupDeleteActionInputV2 = z239.object({
|
|
6943
|
+
type: z239.literal("DocumentationGroupDelete"),
|
|
6925
6944
|
input: DTODeleteDocumentationGroupInput
|
|
6926
6945
|
});
|
|
6927
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6928
|
-
type:
|
|
6946
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z239.object({
|
|
6947
|
+
type: z239.literal("DocumentationTabGroupDelete"),
|
|
6929
6948
|
input: DTODeleteDocumentationTabGroupInput
|
|
6930
6949
|
});
|
|
6931
6950
|
|
|
6932
6951
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6933
|
-
import { z as
|
|
6952
|
+
import { z as z241 } from "zod";
|
|
6934
6953
|
|
|
6935
6954
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6936
|
-
import { z as
|
|
6937
|
-
var DocumentationColorV1 =
|
|
6938
|
-
aliasTo:
|
|
6939
|
-
value:
|
|
6955
|
+
import { z as z240 } from "zod";
|
|
6956
|
+
var DocumentationColorV1 = z240.object({
|
|
6957
|
+
aliasTo: z240.string().optional(),
|
|
6958
|
+
value: z240.string().optional()
|
|
6940
6959
|
});
|
|
6941
6960
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6942
6961
|
foregroundColor: true,
|
|
@@ -6945,10 +6964,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6945
6964
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6946
6965
|
backgroundColor: DocumentationColorV1.optional()
|
|
6947
6966
|
});
|
|
6948
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6949
|
-
showSidebar:
|
|
6950
|
-
isPrivate:
|
|
6951
|
-
isHidden:
|
|
6967
|
+
var DTODocumentationItemConfigurationV1 = z240.object({
|
|
6968
|
+
showSidebar: z240.boolean(),
|
|
6969
|
+
isPrivate: z240.boolean(),
|
|
6970
|
+
isHidden: z240.boolean(),
|
|
6952
6971
|
header: DTODocumentationItemHeaderV1
|
|
6953
6972
|
});
|
|
6954
6973
|
|
|
@@ -6962,123 +6981,123 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6962
6981
|
data: true,
|
|
6963
6982
|
shortPersistentId: true
|
|
6964
6983
|
}).extend({
|
|
6965
|
-
title:
|
|
6966
|
-
isRoot:
|
|
6967
|
-
childrenIds:
|
|
6984
|
+
title: z241.string(),
|
|
6985
|
+
isRoot: z241.boolean(),
|
|
6986
|
+
childrenIds: z241.array(z241.string()),
|
|
6968
6987
|
groupBehavior: DocumentationGroupBehavior,
|
|
6969
|
-
shortPersistentId:
|
|
6970
|
-
type:
|
|
6988
|
+
shortPersistentId: z241.string(),
|
|
6989
|
+
type: z241.literal("Group")
|
|
6971
6990
|
});
|
|
6972
6991
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6973
6992
|
configuration: DTODocumentationItemConfigurationV1
|
|
6974
6993
|
});
|
|
6975
6994
|
|
|
6976
6995
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6977
|
-
import { z as
|
|
6978
|
-
var DTODocumentationHierarchyV2 =
|
|
6979
|
-
pages:
|
|
6996
|
+
import { z as z242 } from "zod";
|
|
6997
|
+
var DTODocumentationHierarchyV2 = z242.object({
|
|
6998
|
+
pages: z242.array(
|
|
6980
6999
|
DTODocumentationPageV2.extend({
|
|
6981
7000
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6982
7001
|
draftState: DTODocumentationDraftState.optional()
|
|
6983
7002
|
})
|
|
6984
7003
|
),
|
|
6985
|
-
groups:
|
|
7004
|
+
groups: z242.array(
|
|
6986
7005
|
DTODocumentationGroupV2.extend({
|
|
6987
7006
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6988
7007
|
draftState: DTODocumentationDraftState.optional()
|
|
6989
7008
|
})
|
|
6990
7009
|
),
|
|
6991
7010
|
/** True if the documentation was already published, false otherwise. */
|
|
6992
|
-
hasPublishedDocumentationContent:
|
|
7011
|
+
hasPublishedDocumentationContent: z242.boolean()
|
|
6993
7012
|
});
|
|
6994
7013
|
|
|
6995
7014
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6996
|
-
import { z as
|
|
6997
|
-
var SuccessPayload2 =
|
|
6998
|
-
success:
|
|
7015
|
+
import { z as z243 } from "zod";
|
|
7016
|
+
var SuccessPayload2 = z243.object({
|
|
7017
|
+
success: z243.literal(true)
|
|
6999
7018
|
});
|
|
7000
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7001
|
-
type:
|
|
7019
|
+
var DTODocumentationPageCreateActionOutputV2 = z243.object({
|
|
7020
|
+
type: z243.literal("DocumentationPageCreate"),
|
|
7002
7021
|
output: SuccessPayload2
|
|
7003
7022
|
});
|
|
7004
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7005
|
-
type:
|
|
7023
|
+
var DTODocumentationPageUpdateActionOutputV2 = z243.object({
|
|
7024
|
+
type: z243.literal("DocumentationPageUpdate"),
|
|
7006
7025
|
output: SuccessPayload2
|
|
7007
7026
|
});
|
|
7008
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7009
|
-
type:
|
|
7027
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z243.object({
|
|
7028
|
+
type: z243.literal("DocumentationPageUpdateDocument"),
|
|
7010
7029
|
output: SuccessPayload2
|
|
7011
7030
|
});
|
|
7012
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7013
|
-
type:
|
|
7031
|
+
var DTODocumentationPageMoveActionOutputV2 = z243.object({
|
|
7032
|
+
type: z243.literal("DocumentationPageMove"),
|
|
7014
7033
|
output: SuccessPayload2
|
|
7015
7034
|
});
|
|
7016
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7017
|
-
type:
|
|
7035
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z243.object({
|
|
7036
|
+
type: z243.literal("DocumentationPageDuplicate"),
|
|
7018
7037
|
output: SuccessPayload2
|
|
7019
7038
|
});
|
|
7020
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7021
|
-
type:
|
|
7039
|
+
var DTODocumentationPageDeleteActionOutputV2 = z243.object({
|
|
7040
|
+
type: z243.literal("DocumentationPageDelete"),
|
|
7022
7041
|
output: SuccessPayload2
|
|
7023
7042
|
});
|
|
7024
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7025
|
-
type:
|
|
7043
|
+
var DTODocumentationPageRestoreActionOutput = z243.object({
|
|
7044
|
+
type: z243.literal("DocumentationPageRestore"),
|
|
7026
7045
|
output: SuccessPayload2
|
|
7027
7046
|
});
|
|
7028
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7029
|
-
type:
|
|
7047
|
+
var DTODocumentationGroupRestoreActionOutput = z243.object({
|
|
7048
|
+
type: z243.literal("DocumentationGroupRestore"),
|
|
7030
7049
|
output: SuccessPayload2
|
|
7031
7050
|
});
|
|
7032
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7033
|
-
type:
|
|
7051
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z243.object({
|
|
7052
|
+
type: z243.literal("DocumentationPageApprovalStateChange"),
|
|
7034
7053
|
output: SuccessPayload2
|
|
7035
7054
|
});
|
|
7036
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7037
|
-
type:
|
|
7055
|
+
var DTODocumentationPageCreateActionInputV2 = z243.object({
|
|
7056
|
+
type: z243.literal("DocumentationPageCreate"),
|
|
7038
7057
|
input: DTOCreateDocumentationPageInputV2
|
|
7039
7058
|
});
|
|
7040
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7041
|
-
type:
|
|
7059
|
+
var DTODocumentationPageUpdateActionInputV2 = z243.object({
|
|
7060
|
+
type: z243.literal("DocumentationPageUpdate"),
|
|
7042
7061
|
input: DTOUpdateDocumentationPageInputV2
|
|
7043
7062
|
});
|
|
7044
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7045
|
-
type:
|
|
7063
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z243.object({
|
|
7064
|
+
type: z243.literal("DocumentationPageUpdateDocument"),
|
|
7046
7065
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7047
7066
|
});
|
|
7048
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7049
|
-
type:
|
|
7067
|
+
var DTODocumentationPageMoveActionInputV2 = z243.object({
|
|
7068
|
+
type: z243.literal("DocumentationPageMove"),
|
|
7050
7069
|
input: DTOMoveDocumentationPageInputV2
|
|
7051
7070
|
});
|
|
7052
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7053
|
-
type:
|
|
7071
|
+
var DTODocumentationPageDuplicateActionInputV2 = z243.object({
|
|
7072
|
+
type: z243.literal("DocumentationPageDuplicate"),
|
|
7054
7073
|
input: DTODuplicateDocumentationPageInputV2
|
|
7055
7074
|
});
|
|
7056
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7057
|
-
type:
|
|
7075
|
+
var DTODocumentationPageDeleteActionInputV2 = z243.object({
|
|
7076
|
+
type: z243.literal("DocumentationPageDelete"),
|
|
7058
7077
|
input: DTODeleteDocumentationPageInputV2
|
|
7059
7078
|
});
|
|
7060
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7061
|
-
type:
|
|
7079
|
+
var DTODocumentationPageRestoreActionInput = z243.object({
|
|
7080
|
+
type: z243.literal("DocumentationPageRestore"),
|
|
7062
7081
|
input: DTORestoreDocumentationPageInput
|
|
7063
7082
|
});
|
|
7064
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7065
|
-
type:
|
|
7083
|
+
var DTODocumentationGroupRestoreActionInput = z243.object({
|
|
7084
|
+
type: z243.literal("DocumentationGroupRestore"),
|
|
7066
7085
|
input: DTORestoreDocumentationGroupInput
|
|
7067
7086
|
});
|
|
7068
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7069
|
-
type:
|
|
7087
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z243.object({
|
|
7088
|
+
type: z243.literal("DocumentationPageApprovalStateChange"),
|
|
7070
7089
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7071
7090
|
});
|
|
7072
7091
|
|
|
7073
7092
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7074
|
-
import { z as
|
|
7093
|
+
import { z as z244 } from "zod";
|
|
7075
7094
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7076
|
-
var DTODocumentationPageContentGetResponse =
|
|
7095
|
+
var DTODocumentationPageContentGetResponse = z244.object({
|
|
7077
7096
|
pageContent: DTODocumentationPageContent
|
|
7078
7097
|
});
|
|
7079
7098
|
|
|
7080
7099
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7081
|
-
import { z as
|
|
7100
|
+
import { z as z245 } from "zod";
|
|
7082
7101
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7083
7102
|
data: true,
|
|
7084
7103
|
meta: true,
|
|
@@ -7086,62 +7105,62 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7086
7105
|
sortOrder: true
|
|
7087
7106
|
}).extend({
|
|
7088
7107
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7089
|
-
blocks:
|
|
7090
|
-
title:
|
|
7091
|
-
path:
|
|
7108
|
+
blocks: z245.array(PageBlockV1),
|
|
7109
|
+
title: z245.string(),
|
|
7110
|
+
path: z245.string()
|
|
7092
7111
|
});
|
|
7093
7112
|
|
|
7094
7113
|
// src/api/dto/elements/documentation/settings.ts
|
|
7095
|
-
import { z as
|
|
7096
|
-
var DTODocumentationSettings =
|
|
7097
|
-
isDraftFeatureAdopted:
|
|
7098
|
-
isApprovalsFeatureEnabled:
|
|
7099
|
-
isApprovalRequiredForPublishing:
|
|
7114
|
+
import { z as z246 } from "zod";
|
|
7115
|
+
var DTODocumentationSettings = z246.object({
|
|
7116
|
+
isDraftFeatureAdopted: z246.boolean(),
|
|
7117
|
+
isApprovalsFeatureEnabled: z246.boolean(),
|
|
7118
|
+
isApprovalRequiredForPublishing: z246.boolean()
|
|
7100
7119
|
});
|
|
7101
7120
|
|
|
7102
7121
|
// src/api/dto/elements/documentation/structure.ts
|
|
7103
|
-
import { z as
|
|
7104
|
-
var DTODocumentationStructureItemType =
|
|
7105
|
-
var DTODocumentationStructureItemBase =
|
|
7122
|
+
import { z as z247 } from "zod";
|
|
7123
|
+
var DTODocumentationStructureItemType = z247.enum(["Group", "Page"]);
|
|
7124
|
+
var DTODocumentationStructureItemBase = z247.object({
|
|
7106
7125
|
type: DTODocumentationStructureItemType,
|
|
7107
|
-
id:
|
|
7108
|
-
designSystemVersionId:
|
|
7109
|
-
shortPersistentId:
|
|
7110
|
-
persistentId:
|
|
7111
|
-
title:
|
|
7112
|
-
createdAt:
|
|
7113
|
-
updatedAt:
|
|
7126
|
+
id: z247.string(),
|
|
7127
|
+
designSystemVersionId: z247.string(),
|
|
7128
|
+
shortPersistentId: z247.string(),
|
|
7129
|
+
persistentId: z247.string(),
|
|
7130
|
+
title: z247.string(),
|
|
7131
|
+
createdAt: z247.coerce.date(),
|
|
7132
|
+
updatedAt: z247.coerce.date()
|
|
7114
7133
|
});
|
|
7115
7134
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7116
|
-
type:
|
|
7117
|
-
groupBehavior:
|
|
7118
|
-
childrenIds:
|
|
7119
|
-
isRoot:
|
|
7135
|
+
type: z247.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7136
|
+
groupBehavior: z247.string(),
|
|
7137
|
+
childrenIds: z247.string().array(),
|
|
7138
|
+
isRoot: z247.boolean()
|
|
7120
7139
|
});
|
|
7121
7140
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7122
|
-
type:
|
|
7123
|
-
path:
|
|
7141
|
+
type: z247.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7142
|
+
path: z247.string()
|
|
7124
7143
|
});
|
|
7125
|
-
var DTODocumentationStructureItem =
|
|
7144
|
+
var DTODocumentationStructureItem = z247.discriminatedUnion("type", [
|
|
7126
7145
|
DTODocumentationStructureGroupItem,
|
|
7127
7146
|
DTODocumentationStructurePageItem
|
|
7128
7147
|
]);
|
|
7129
|
-
var DTODocumentationStructure =
|
|
7130
|
-
items:
|
|
7148
|
+
var DTODocumentationStructure = z247.object({
|
|
7149
|
+
items: z247.array(DTODocumentationStructureItem)
|
|
7131
7150
|
});
|
|
7132
7151
|
|
|
7133
7152
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7134
|
-
import { z as
|
|
7153
|
+
import { z as z249 } from "zod";
|
|
7135
7154
|
|
|
7136
7155
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7137
|
-
import { z as
|
|
7156
|
+
import { z as z248 } from "zod";
|
|
7138
7157
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7139
|
-
var DTOFigmaNodeOrigin =
|
|
7140
|
-
sourceId:
|
|
7141
|
-
fileId:
|
|
7142
|
-
parentName:
|
|
7158
|
+
var DTOFigmaNodeOrigin = z248.object({
|
|
7159
|
+
sourceId: z248.string(),
|
|
7160
|
+
fileId: z248.string().optional(),
|
|
7161
|
+
parentName: z248.string().optional()
|
|
7143
7162
|
});
|
|
7144
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7163
|
+
var DTOFigmaNodeRenderInputBase = z248.object({
|
|
7145
7164
|
/**
|
|
7146
7165
|
* Format in which the node must be rendered, png by default.
|
|
7147
7166
|
*/
|
|
@@ -7149,57 +7168,57 @@ var DTOFigmaNodeRenderInputBase = z247.object({
|
|
|
7149
7168
|
/**
|
|
7150
7169
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7151
7170
|
*/
|
|
7152
|
-
scale:
|
|
7171
|
+
scale: z248.number().optional()
|
|
7153
7172
|
});
|
|
7154
7173
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7155
|
-
inputType:
|
|
7174
|
+
inputType: z248.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7156
7175
|
/**
|
|
7157
7176
|
* Id of a design system's data source representing a linked Figma file
|
|
7158
7177
|
*/
|
|
7159
|
-
sourceId:
|
|
7178
|
+
sourceId: z248.string(),
|
|
7160
7179
|
/**
|
|
7161
7180
|
* Id of a node within the Figma file
|
|
7162
7181
|
*/
|
|
7163
|
-
figmaFileNodeId:
|
|
7182
|
+
figmaFileNodeId: z248.string()
|
|
7164
7183
|
});
|
|
7165
7184
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7166
|
-
inputType:
|
|
7185
|
+
inputType: z248.literal("URL"),
|
|
7167
7186
|
/**
|
|
7168
7187
|
* Id of a design system's data source representing a linked Figma file
|
|
7169
7188
|
*/
|
|
7170
|
-
figmaNodeUrl:
|
|
7189
|
+
figmaNodeUrl: z248.string(),
|
|
7171
7190
|
/**
|
|
7172
7191
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7173
7192
|
*/
|
|
7174
|
-
brandPersistentId:
|
|
7193
|
+
brandPersistentId: z248.string()
|
|
7175
7194
|
});
|
|
7176
|
-
var DTOFigmaNodeRerenderInput =
|
|
7177
|
-
inputType:
|
|
7195
|
+
var DTOFigmaNodeRerenderInput = z248.object({
|
|
7196
|
+
inputType: z248.literal("Rerender"),
|
|
7178
7197
|
/**
|
|
7179
7198
|
* Persistent ID of an existing Figma node
|
|
7180
7199
|
*/
|
|
7181
|
-
figmaNodePersistentId:
|
|
7200
|
+
figmaNodePersistentId: z248.string()
|
|
7182
7201
|
});
|
|
7183
|
-
var DTOFigmaNodeRenderInput =
|
|
7202
|
+
var DTOFigmaNodeRenderInput = z248.discriminatedUnion("inputType", [
|
|
7184
7203
|
DTOFigmaNodeRenderIdInput,
|
|
7185
7204
|
DTOFigmaNodeRenderUrlInput,
|
|
7186
7205
|
DTOFigmaNodeRerenderInput
|
|
7187
7206
|
]);
|
|
7188
7207
|
|
|
7189
7208
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7190
|
-
var DTOFigmaNodeData =
|
|
7209
|
+
var DTOFigmaNodeData = z249.object({
|
|
7191
7210
|
// Id of the node in the Figma file
|
|
7192
|
-
figmaNodeId:
|
|
7211
|
+
figmaNodeId: z249.string(),
|
|
7193
7212
|
// Validity
|
|
7194
|
-
isValid:
|
|
7213
|
+
isValid: z249.boolean(),
|
|
7195
7214
|
// Asset data
|
|
7196
|
-
assetId:
|
|
7197
|
-
assetUrl:
|
|
7215
|
+
assetId: z249.string(),
|
|
7216
|
+
assetUrl: z249.string(),
|
|
7198
7217
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7199
7218
|
// Asset metadata
|
|
7200
|
-
assetScale:
|
|
7201
|
-
assetWidth:
|
|
7202
|
-
assetHeight:
|
|
7219
|
+
assetScale: z249.number(),
|
|
7220
|
+
assetWidth: z249.number().optional(),
|
|
7221
|
+
assetHeight: z249.number().optional()
|
|
7203
7222
|
});
|
|
7204
7223
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7205
7224
|
data: true,
|
|
@@ -7210,15 +7229,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7210
7229
|
});
|
|
7211
7230
|
|
|
7212
7231
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7213
|
-
import { z as
|
|
7214
|
-
var DTOFigmaNodeDataV2 =
|
|
7215
|
-
sceneNodeId:
|
|
7232
|
+
import { z as z250 } from "zod";
|
|
7233
|
+
var DTOFigmaNodeDataV2 = z250.object({
|
|
7234
|
+
sceneNodeId: z250.string(),
|
|
7216
7235
|
format: FigmaNodeRenderFormat,
|
|
7217
|
-
scale:
|
|
7236
|
+
scale: z250.number().optional(),
|
|
7218
7237
|
renderState: FigmaNodeRenderState,
|
|
7219
7238
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7220
7239
|
renderError: FigmaNodeRenderError.optional(),
|
|
7221
|
-
hasSource:
|
|
7240
|
+
hasSource: z250.boolean()
|
|
7222
7241
|
});
|
|
7223
7242
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7224
7243
|
data: true,
|
|
@@ -7229,105 +7248,105 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7229
7248
|
});
|
|
7230
7249
|
|
|
7231
7250
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7232
|
-
import { z as
|
|
7233
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7234
|
-
type:
|
|
7235
|
-
figmaNodes:
|
|
7251
|
+
import { z as z251 } from "zod";
|
|
7252
|
+
var DTOFigmaNodeRenderActionOutput = z251.object({
|
|
7253
|
+
type: z251.literal("FigmaNodeRender"),
|
|
7254
|
+
figmaNodes: z251.array(DTOFigmaNode)
|
|
7236
7255
|
});
|
|
7237
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7238
|
-
type:
|
|
7239
|
-
figmaNodes:
|
|
7256
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z251.object({
|
|
7257
|
+
type: z251.literal("FigmaNodeRenderAsync"),
|
|
7258
|
+
figmaNodes: z251.array(DTOFigmaNodeV2)
|
|
7240
7259
|
});
|
|
7241
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7242
|
-
type:
|
|
7260
|
+
var DTOFigmaNodeRenderActionInput = z251.object({
|
|
7261
|
+
type: z251.literal("FigmaNodeRender"),
|
|
7243
7262
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7244
7263
|
});
|
|
7245
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7246
|
-
type:
|
|
7264
|
+
var DTOFigmaNodeRenderAsyncActionInput = z251.object({
|
|
7265
|
+
type: z251.literal("FigmaNodeRenderAsync"),
|
|
7247
7266
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7248
7267
|
});
|
|
7249
7268
|
|
|
7250
7269
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7251
|
-
import { z as
|
|
7252
|
-
var DTOFrameNodeStructure =
|
|
7253
|
-
id:
|
|
7254
|
-
persistentId:
|
|
7255
|
-
designSystemVersionId:
|
|
7270
|
+
import { z as z252 } from "zod";
|
|
7271
|
+
var DTOFrameNodeStructure = z252.object({
|
|
7272
|
+
id: z252.string(),
|
|
7273
|
+
persistentId: z252.string(),
|
|
7274
|
+
designSystemVersionId: z252.string(),
|
|
7256
7275
|
origin: FigmaFileStructureOrigin,
|
|
7257
7276
|
assetsInFile: FigmaFileStructureStatistics
|
|
7258
7277
|
});
|
|
7259
|
-
var DTOFrameNodeStructureListResponse =
|
|
7278
|
+
var DTOFrameNodeStructureListResponse = z252.object({
|
|
7260
7279
|
structures: DTOFrameNodeStructure.array()
|
|
7261
7280
|
});
|
|
7262
7281
|
|
|
7263
7282
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7264
|
-
import { z as
|
|
7283
|
+
import { z as z253 } from "zod";
|
|
7265
7284
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
7266
|
-
var DTOElementPropertyDefinitionOption =
|
|
7267
|
-
id:
|
|
7268
|
-
name:
|
|
7285
|
+
var DTOElementPropertyDefinitionOption = z253.object({
|
|
7286
|
+
id: z253.string(),
|
|
7287
|
+
name: z253.string(),
|
|
7269
7288
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7270
7289
|
});
|
|
7271
|
-
var DTOElementPropertyDefinition =
|
|
7272
|
-
id:
|
|
7273
|
-
designSystemVersionId:
|
|
7290
|
+
var DTOElementPropertyDefinition = z253.object({
|
|
7291
|
+
id: z253.string(),
|
|
7292
|
+
designSystemVersionId: z253.string(),
|
|
7274
7293
|
meta: DTOObjectMeta,
|
|
7275
|
-
persistentId:
|
|
7294
|
+
persistentId: z253.string(),
|
|
7276
7295
|
type: ElementPropertyTypeSchema,
|
|
7277
7296
|
targetElementType: ElementPropertyTargetType,
|
|
7278
|
-
codeName:
|
|
7279
|
-
options: nullishToOptional(
|
|
7297
|
+
codeName: z253.string().regex(CODE_NAME_REGEX2),
|
|
7298
|
+
options: nullishToOptional(z253.array(DTOElementPropertyDefinitionOption)),
|
|
7280
7299
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7281
|
-
isImmutable:
|
|
7300
|
+
isImmutable: z253.boolean(),
|
|
7282
7301
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7283
7302
|
});
|
|
7284
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7285
|
-
definitions:
|
|
7303
|
+
var DTOElementPropertyDefinitionListResponse = z253.object({
|
|
7304
|
+
definitions: z253.array(DTOElementPropertyDefinition)
|
|
7286
7305
|
});
|
|
7287
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7306
|
+
var DTOElementPropertyDefinitionResponse = z253.object({
|
|
7288
7307
|
definition: DTOElementPropertyDefinition
|
|
7289
7308
|
});
|
|
7290
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7309
|
+
var DTOElementPropertyDefinitionCreatePayload = z253.object({
|
|
7291
7310
|
meta: DTOObjectMeta,
|
|
7292
|
-
persistentId:
|
|
7311
|
+
persistentId: z253.string(),
|
|
7293
7312
|
type: ElementPropertyTypeSchema,
|
|
7294
7313
|
targetElementType: ElementPropertyTargetType,
|
|
7295
|
-
codeName:
|
|
7296
|
-
options: nullishToOptional(
|
|
7314
|
+
codeName: z253.string().regex(CODE_NAME_REGEX2),
|
|
7315
|
+
options: nullishToOptional(z253.array(DTOElementPropertyDefinitionOption)),
|
|
7297
7316
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7298
|
-
columnWidth:
|
|
7317
|
+
columnWidth: z253.number().max(1024).optional()
|
|
7299
7318
|
});
|
|
7300
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7319
|
+
var DTOElementPropertyDefinitionUpdatePayload = z253.object({
|
|
7301
7320
|
meta: DTOObjectMeta.optional(),
|
|
7302
|
-
codeName:
|
|
7303
|
-
options:
|
|
7321
|
+
codeName: z253.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7322
|
+
options: z253.array(DTOElementPropertyDefinitionOption).optional()
|
|
7304
7323
|
});
|
|
7305
7324
|
|
|
7306
7325
|
// 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 =
|
|
7326
|
+
import { z as z254 } from "zod";
|
|
7327
|
+
var DTOElementPropertyValue = z254.object({
|
|
7328
|
+
id: z254.string(),
|
|
7329
|
+
designSystemVersionId: z254.string(),
|
|
7330
|
+
definitionId: z254.string(),
|
|
7331
|
+
targetElementId: z254.string(),
|
|
7332
|
+
value: z254.union([z254.string(), z254.number(), z254.boolean()]).optional(),
|
|
7333
|
+
valuePreview: z254.string().optional()
|
|
7334
|
+
});
|
|
7335
|
+
var DTOElementPropertyValueListResponse = z254.object({
|
|
7336
|
+
values: z254.array(DTOElementPropertyValue)
|
|
7337
|
+
});
|
|
7338
|
+
var DTOElementPropertyValueResponse = z254.object({
|
|
7320
7339
|
value: DTOElementPropertyValue
|
|
7321
7340
|
});
|
|
7322
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7323
|
-
definitionId:
|
|
7324
|
-
targetElementId:
|
|
7325
|
-
value:
|
|
7341
|
+
var DTOElementPropertyValueUpsertPaylod = z254.object({
|
|
7342
|
+
definitionId: z254.string(),
|
|
7343
|
+
targetElementId: z254.string(),
|
|
7344
|
+
value: z254.string().or(z254.number()).or(z254.boolean())
|
|
7326
7345
|
});
|
|
7327
7346
|
|
|
7328
7347
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7329
|
-
import { z as
|
|
7330
|
-
var DTOElementActionOutput =
|
|
7348
|
+
import { z as z255 } from "zod";
|
|
7349
|
+
var DTOElementActionOutput = z255.discriminatedUnion("type", [
|
|
7331
7350
|
// Documentation pages
|
|
7332
7351
|
DTODocumentationPageCreateActionOutputV2,
|
|
7333
7352
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7352,7 +7371,7 @@ var DTOElementActionOutput = z254.discriminatedUnion("type", [
|
|
|
7352
7371
|
// Approvals
|
|
7353
7372
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
7354
7373
|
]);
|
|
7355
|
-
var DTOElementActionInput =
|
|
7374
|
+
var DTOElementActionInput = z255.discriminatedUnion("type", [
|
|
7356
7375
|
// Documentation pages
|
|
7357
7376
|
DTODocumentationPageCreateActionInputV2,
|
|
7358
7377
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7377,90 +7396,90 @@ var DTOElementActionInput = z254.discriminatedUnion("type", [
|
|
|
7377
7396
|
// Approval
|
|
7378
7397
|
DTODocumentationPageApprovalStateChangeActionInput
|
|
7379
7398
|
]).and(
|
|
7380
|
-
|
|
7381
|
-
tId:
|
|
7399
|
+
z255.object({
|
|
7400
|
+
tId: z255.string().optional()
|
|
7382
7401
|
})
|
|
7383
7402
|
);
|
|
7384
7403
|
|
|
7385
7404
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7386
|
-
import { z as
|
|
7387
|
-
var DTOElementsGetTypeFilter =
|
|
7388
|
-
var DTOElementsGetQuerySchema =
|
|
7389
|
-
types:
|
|
7390
|
-
responseVersion:
|
|
7405
|
+
import { z as z256 } from "zod";
|
|
7406
|
+
var DTOElementsGetTypeFilter = z256.enum(["FigmaNode"]);
|
|
7407
|
+
var DTOElementsGetQuerySchema = z256.object({
|
|
7408
|
+
types: z256.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
7409
|
+
responseVersion: z256.coerce.number().default(1)
|
|
7391
7410
|
});
|
|
7392
|
-
var DTOElementsGetOutput =
|
|
7393
|
-
figmaNodes:
|
|
7411
|
+
var DTOElementsGetOutput = z256.object({
|
|
7412
|
+
figmaNodes: z256.array(DTOFigmaNode).optional()
|
|
7394
7413
|
});
|
|
7395
|
-
var DTOElementsGetOutputV2 =
|
|
7396
|
-
figmaNodes:
|
|
7414
|
+
var DTOElementsGetOutputV2 = z256.object({
|
|
7415
|
+
figmaNodes: z256.array(DTOFigmaNodeV2).optional()
|
|
7397
7416
|
});
|
|
7398
7417
|
|
|
7399
7418
|
// 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:
|
|
7419
|
+
import { z as z257 } from "zod";
|
|
7420
|
+
var DTOAssetRenderConfiguration = z257.object({
|
|
7421
|
+
prefix: z257.string().optional(),
|
|
7422
|
+
suffix: z257.string().optional(),
|
|
7423
|
+
scale: z257.enum(["x1", "x2", "x3", "x4"]),
|
|
7424
|
+
format: z257.enum(["png", "pdf", "svg"])
|
|
7425
|
+
});
|
|
7426
|
+
var DTORenderedAssetFile = z257.object({
|
|
7427
|
+
assetId: z257.string(),
|
|
7428
|
+
fileName: z257.string(),
|
|
7429
|
+
sourceUrl: z257.string(),
|
|
7411
7430
|
settings: DTOAssetRenderConfiguration,
|
|
7412
|
-
originalName:
|
|
7431
|
+
originalName: z257.string()
|
|
7413
7432
|
});
|
|
7414
|
-
var DTODownloadAssetsRequest =
|
|
7415
|
-
persistentIds:
|
|
7433
|
+
var DTODownloadAssetsRequest = z257.object({
|
|
7434
|
+
persistentIds: z257.array(z257.string().uuid()).optional(),
|
|
7416
7435
|
settings: DTOAssetRenderConfiguration.array()
|
|
7417
7436
|
});
|
|
7418
|
-
var DTODownloadAssetsResponse =
|
|
7437
|
+
var DTODownloadAssetsResponse = z257.object({
|
|
7419
7438
|
items: DTORenderedAssetFile.array()
|
|
7420
7439
|
});
|
|
7421
7440
|
|
|
7422
7441
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7423
|
-
import { z as
|
|
7424
|
-
var DTOLiveblocksAuthResponse =
|
|
7425
|
-
token:
|
|
7442
|
+
import { z as z258 } from "zod";
|
|
7443
|
+
var DTOLiveblocksAuthResponse = z258.object({
|
|
7444
|
+
token: z258.string()
|
|
7426
7445
|
});
|
|
7427
7446
|
|
|
7428
7447
|
// src/api/dto/themes/override.ts
|
|
7429
|
-
import { z as
|
|
7448
|
+
import { z as z259 } from "zod";
|
|
7430
7449
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7431
|
-
|
|
7432
|
-
tokenPersistentId:
|
|
7450
|
+
z259.object({
|
|
7451
|
+
tokenPersistentId: z259.string(),
|
|
7433
7452
|
origin: ThemeOverrideOrigin.optional()
|
|
7434
7453
|
})
|
|
7435
7454
|
);
|
|
7436
7455
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7437
|
-
|
|
7438
|
-
tokenPersistentId:
|
|
7456
|
+
z259.object({
|
|
7457
|
+
tokenPersistentId: z259.string()
|
|
7439
7458
|
})
|
|
7440
7459
|
);
|
|
7441
7460
|
|
|
7442
7461
|
// src/api/dto/themes/theme.ts
|
|
7443
|
-
import { z as
|
|
7444
|
-
var DTOTheme =
|
|
7445
|
-
id:
|
|
7446
|
-
persistentId:
|
|
7447
|
-
designSystemVersionId:
|
|
7448
|
-
brandId:
|
|
7462
|
+
import { z as z260 } from "zod";
|
|
7463
|
+
var DTOTheme = z260.object({
|
|
7464
|
+
id: z260.string(),
|
|
7465
|
+
persistentId: z260.string(),
|
|
7466
|
+
designSystemVersionId: z260.string(),
|
|
7467
|
+
brandId: z260.string(),
|
|
7449
7468
|
meta: ObjectMeta,
|
|
7450
|
-
codeName:
|
|
7469
|
+
codeName: z260.string(),
|
|
7451
7470
|
overrides: DTOThemeOverride.array()
|
|
7452
7471
|
});
|
|
7453
|
-
var DTOThemeResponse =
|
|
7472
|
+
var DTOThemeResponse = z260.object({
|
|
7454
7473
|
theme: DTOTheme
|
|
7455
7474
|
});
|
|
7456
|
-
var DTOThemeListResponse =
|
|
7475
|
+
var DTOThemeListResponse = z260.object({
|
|
7457
7476
|
themes: DTOTheme.array()
|
|
7458
7477
|
});
|
|
7459
|
-
var DTOThemeCreatePayload =
|
|
7478
|
+
var DTOThemeCreatePayload = z260.object({
|
|
7460
7479
|
meta: ObjectMeta,
|
|
7461
|
-
persistentId:
|
|
7462
|
-
brandId:
|
|
7463
|
-
codeName:
|
|
7480
|
+
persistentId: z260.string(),
|
|
7481
|
+
brandId: z260.string(),
|
|
7482
|
+
codeName: z260.string(),
|
|
7464
7483
|
overrides: DTOThemeOverride.array()
|
|
7465
7484
|
});
|
|
7466
7485
|
|
|
@@ -7667,7 +7686,7 @@ var ExportersEndpoint = class {
|
|
|
7667
7686
|
}
|
|
7668
7687
|
list(workspaceId, query) {
|
|
7669
7688
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/exporters`, DTOExporterListResponse, {
|
|
7670
|
-
query: serializeQuery(query)
|
|
7689
|
+
query: query ? serializeQuery(query) : void 0
|
|
7671
7690
|
});
|
|
7672
7691
|
}
|
|
7673
7692
|
get(workspaceId, exporterId) {
|
|
@@ -7676,13 +7695,13 @@ var ExportersEndpoint = class {
|
|
|
7676
7695
|
};
|
|
7677
7696
|
|
|
7678
7697
|
// src/api/endpoints/codegen/jobs.ts
|
|
7679
|
-
import { z as
|
|
7698
|
+
import { z as z261 } from "zod";
|
|
7680
7699
|
var ExporterJobsEndpoint = class {
|
|
7681
7700
|
constructor(requestExecutor) {
|
|
7682
7701
|
this.requestExecutor = requestExecutor;
|
|
7683
7702
|
}
|
|
7684
7703
|
list(workspaceId) {
|
|
7685
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
7704
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z261.any());
|
|
7686
7705
|
}
|
|
7687
7706
|
get(workspaceId, jobId) {
|
|
7688
7707
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -7740,7 +7759,7 @@ var CodegenEndpoint = class {
|
|
|
7740
7759
|
};
|
|
7741
7760
|
|
|
7742
7761
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7743
|
-
import { z as
|
|
7762
|
+
import { z as z262 } from "zod";
|
|
7744
7763
|
var BrandsEndpoint = class {
|
|
7745
7764
|
constructor(requestExecutor) {
|
|
7746
7765
|
this.requestExecutor = requestExecutor;
|
|
@@ -7774,7 +7793,7 @@ var BrandsEndpoint = class {
|
|
|
7774
7793
|
});
|
|
7775
7794
|
}
|
|
7776
7795
|
delete(dsId, vId, brandId) {
|
|
7777
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
7796
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z262.any(), {
|
|
7778
7797
|
method: "DELETE"
|
|
7779
7798
|
});
|
|
7780
7799
|
}
|
|
@@ -7943,7 +7962,7 @@ var ImportJobsEndpoint = class {
|
|
|
7943
7962
|
};
|
|
7944
7963
|
|
|
7945
7964
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7946
|
-
import { z as
|
|
7965
|
+
import { z as z263 } from "zod";
|
|
7947
7966
|
var OverridesEndpoint = class {
|
|
7948
7967
|
constructor(requestExecutor) {
|
|
7949
7968
|
this.requestExecutor = requestExecutor;
|
|
@@ -7951,7 +7970,7 @@ var OverridesEndpoint = class {
|
|
|
7951
7970
|
create(dsId, versionId, themeId, body) {
|
|
7952
7971
|
return this.requestExecutor.json(
|
|
7953
7972
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7954
|
-
|
|
7973
|
+
z263.any(),
|
|
7955
7974
|
{
|
|
7956
7975
|
method: "POST",
|
|
7957
7976
|
body
|
|
@@ -7961,7 +7980,7 @@ var OverridesEndpoint = class {
|
|
|
7961
7980
|
};
|
|
7962
7981
|
|
|
7963
7982
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7964
|
-
import { z as
|
|
7983
|
+
import { z as z264 } from "zod";
|
|
7965
7984
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7966
7985
|
constructor(requestExecutor) {
|
|
7967
7986
|
this.requestExecutor = requestExecutor;
|
|
@@ -7989,7 +8008,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7989
8008
|
delete(designSystemId, versionId, defId) {
|
|
7990
8009
|
return this.requestExecutor.json(
|
|
7991
8010
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7992
|
-
|
|
8011
|
+
z264.any(),
|
|
7993
8012
|
{ method: "DELETE" }
|
|
7994
8013
|
);
|
|
7995
8014
|
}
|
|
@@ -8028,7 +8047,7 @@ var VersionStatsEndpoint = class {
|
|
|
8028
8047
|
};
|
|
8029
8048
|
|
|
8030
8049
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8031
|
-
import { z as
|
|
8050
|
+
import { z as z265 } from "zod";
|
|
8032
8051
|
var ThemesEndpoint = class {
|
|
8033
8052
|
constructor(requestExecutor) {
|
|
8034
8053
|
this.requestExecutor = requestExecutor;
|
|
@@ -8051,7 +8070,7 @@ var ThemesEndpoint = class {
|
|
|
8051
8070
|
});
|
|
8052
8071
|
}
|
|
8053
8072
|
delete(dsId, versionId, themeId) {
|
|
8054
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8073
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z265.any(), {
|
|
8055
8074
|
method: "DELETE"
|
|
8056
8075
|
});
|
|
8057
8076
|
}
|
|
@@ -8204,7 +8223,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8204
8223
|
};
|
|
8205
8224
|
|
|
8206
8225
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8207
|
-
import { z as
|
|
8226
|
+
import { z as z267 } from "zod";
|
|
8208
8227
|
|
|
8209
8228
|
// src/api/endpoints/design-system/members.ts
|
|
8210
8229
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -8225,7 +8244,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
8225
8244
|
};
|
|
8226
8245
|
|
|
8227
8246
|
// src/api/endpoints/design-system/sources.ts
|
|
8228
|
-
import { z as
|
|
8247
|
+
import { z as z266 } from "zod";
|
|
8229
8248
|
var DesignSystemSourcesEndpoint = class {
|
|
8230
8249
|
constructor(requestExecutor) {
|
|
8231
8250
|
this.requestExecutor = requestExecutor;
|
|
@@ -8240,7 +8259,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8240
8259
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
8241
8260
|
}
|
|
8242
8261
|
delete(dsId, sourceId) {
|
|
8243
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
8262
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z266.any(), { method: "DELETE" });
|
|
8244
8263
|
}
|
|
8245
8264
|
figmaImport(dsId, payload) {
|
|
8246
8265
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8314,7 +8333,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8314
8333
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
8315
8334
|
}
|
|
8316
8335
|
delete(dsId) {
|
|
8317
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
8336
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z267.any(), { method: "DELETE" });
|
|
8318
8337
|
}
|
|
8319
8338
|
update(dsId, body) {
|
|
8320
8339
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -8358,7 +8377,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
8358
8377
|
};
|
|
8359
8378
|
|
|
8360
8379
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
8361
|
-
import { z as
|
|
8380
|
+
import { z as z268 } from "zod";
|
|
8362
8381
|
var WorkspaceMembersEndpoint = class {
|
|
8363
8382
|
constructor(requestExecutor) {
|
|
8364
8383
|
this.requestExecutor = requestExecutor;
|
|
@@ -8375,7 +8394,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8375
8394
|
});
|
|
8376
8395
|
}
|
|
8377
8396
|
invite(workspaceId, body) {
|
|
8378
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
8397
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z268.any(), { method: "POST", body });
|
|
8379
8398
|
}
|
|
8380
8399
|
delete(workspaceId, userId) {
|
|
8381
8400
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -8385,7 +8404,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8385
8404
|
};
|
|
8386
8405
|
|
|
8387
8406
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
8388
|
-
import { z as
|
|
8407
|
+
import { z as z269 } from "zod";
|
|
8389
8408
|
var WorkspacesEndpoint = class {
|
|
8390
8409
|
constructor(requestExecutor) {
|
|
8391
8410
|
this.requestExecutor = requestExecutor;
|
|
@@ -8408,10 +8427,10 @@ var WorkspacesEndpoint = class {
|
|
|
8408
8427
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
8409
8428
|
}
|
|
8410
8429
|
delete(workspaceId) {
|
|
8411
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
8430
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z269.any(), { method: "DELETE" });
|
|
8412
8431
|
}
|
|
8413
8432
|
subscription(workspaceId) {
|
|
8414
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
8433
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z269.any(), { method: "GET" });
|
|
8415
8434
|
}
|
|
8416
8435
|
transferOwnership(workspaceId, body) {
|
|
8417
8436
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -8511,9 +8530,9 @@ ${bodyText}`,
|
|
|
8511
8530
|
|
|
8512
8531
|
// src/api/transport/request-executor.ts
|
|
8513
8532
|
import fetch from "node-fetch";
|
|
8514
|
-
import { z as
|
|
8515
|
-
var ResponseWrapper =
|
|
8516
|
-
result:
|
|
8533
|
+
import { z as z270 } from "zod";
|
|
8534
|
+
var ResponseWrapper = z270.object({
|
|
8535
|
+
result: z270.record(z270.any())
|
|
8517
8536
|
});
|
|
8518
8537
|
var RequestExecutor = class {
|
|
8519
8538
|
constructor(testServerConfig) {
|
|
@@ -8590,31 +8609,31 @@ var SupernovaApiClient = class {
|
|
|
8590
8609
|
};
|
|
8591
8610
|
|
|
8592
8611
|
// 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:
|
|
8612
|
+
import { z as z271 } from "zod";
|
|
8613
|
+
var DTOEventFigmaNodesRendered = z271.object({
|
|
8614
|
+
type: z271.literal("DesignSystem.FigmaNodesRendered"),
|
|
8615
|
+
designSystemId: z271.string(),
|
|
8616
|
+
versionId: z271.string(),
|
|
8617
|
+
figmaNodePersistentIds: z271.string().array()
|
|
8618
|
+
});
|
|
8619
|
+
var DTOEventDataSourcesImported = z271.object({
|
|
8620
|
+
type: z271.literal("DesignSystem.ImportJobFinished"),
|
|
8621
|
+
designSystemId: z271.string(),
|
|
8622
|
+
versionId: z271.string(),
|
|
8623
|
+
importJobId: z271.string(),
|
|
8605
8624
|
dataSourceType: DataSourceRemoteType,
|
|
8606
|
-
dataSourceIds:
|
|
8625
|
+
dataSourceIds: z271.string().array()
|
|
8607
8626
|
});
|
|
8608
8627
|
|
|
8609
8628
|
// src/events/event.ts
|
|
8610
|
-
import { z as
|
|
8611
|
-
var DTOEvent =
|
|
8629
|
+
import { z as z272 } from "zod";
|
|
8630
|
+
var DTOEvent = z272.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
8612
8631
|
|
|
8613
8632
|
// src/sync/docs-structure-repo.ts
|
|
8614
8633
|
import PQueue from "p-queue";
|
|
8615
8634
|
|
|
8616
8635
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8617
|
-
import { z as
|
|
8636
|
+
import { z as z273 } from "zod";
|
|
8618
8637
|
|
|
8619
8638
|
// src/yjs/version-room/base.ts
|
|
8620
8639
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9179,24 +9198,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9179
9198
|
};
|
|
9180
9199
|
|
|
9181
9200
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9182
|
-
var DocumentationHierarchySettings =
|
|
9183
|
-
routingVersion:
|
|
9184
|
-
isDraftFeatureAdopted:
|
|
9185
|
-
isApprovalFeatureEnabled:
|
|
9186
|
-
approvalRequiredForPublishing:
|
|
9201
|
+
var DocumentationHierarchySettings = z273.object({
|
|
9202
|
+
routingVersion: z273.string(),
|
|
9203
|
+
isDraftFeatureAdopted: z273.boolean(),
|
|
9204
|
+
isApprovalFeatureEnabled: z273.boolean(),
|
|
9205
|
+
approvalRequiredForPublishing: z273.boolean()
|
|
9187
9206
|
});
|
|
9188
9207
|
function yjsToDocumentationHierarchy(doc) {
|
|
9189
9208
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9190
9209
|
}
|
|
9191
9210
|
|
|
9192
9211
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9193
|
-
import { z as
|
|
9194
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9195
|
-
title:
|
|
9212
|
+
import { z as z274 } from "zod";
|
|
9213
|
+
var DTODocumentationPageRoomHeaderData = z274.object({
|
|
9214
|
+
title: z274.string(),
|
|
9196
9215
|
configuration: DTODocumentationItemConfigurationV2
|
|
9197
9216
|
});
|
|
9198
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9199
|
-
title:
|
|
9217
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z274.object({
|
|
9218
|
+
title: z274.string().optional(),
|
|
9200
9219
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9201
9220
|
});
|
|
9202
9221
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9247,7 +9266,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
9247
9266
|
header: rawHeader
|
|
9248
9267
|
};
|
|
9249
9268
|
return {
|
|
9250
|
-
title:
|
|
9269
|
+
title: z274.string().parse(title),
|
|
9251
9270
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9252
9271
|
};
|
|
9253
9272
|
}
|
|
@@ -9257,9 +9276,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
9257
9276
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9258
9277
|
|
|
9259
9278
|
// src/yjs/docs-editor/model/page.ts
|
|
9260
|
-
import { z as
|
|
9261
|
-
var DocumentationPageEditorModel =
|
|
9262
|
-
blocks:
|
|
9279
|
+
import { z as z275 } from "zod";
|
|
9280
|
+
var DocumentationPageEditorModel = z275.object({
|
|
9281
|
+
blocks: z275.array(DocumentationPageContentItem)
|
|
9263
9282
|
});
|
|
9264
9283
|
|
|
9265
9284
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -12818,7 +12837,7 @@ var blocks = [
|
|
|
12818
12837
|
|
|
12819
12838
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
12820
12839
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
12821
|
-
import { z as
|
|
12840
|
+
import { z as z276 } from "zod";
|
|
12822
12841
|
function yDocToPage(yDoc, definitions) {
|
|
12823
12842
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
12824
12843
|
}
|
|
@@ -12898,7 +12917,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
12898
12917
|
return null;
|
|
12899
12918
|
return {
|
|
12900
12919
|
id,
|
|
12901
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
12920
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z276.string()) ?? "",
|
|
12902
12921
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
12903
12922
|
};
|
|
12904
12923
|
}
|
|
@@ -12933,7 +12952,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
12933
12952
|
});
|
|
12934
12953
|
}
|
|
12935
12954
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
12936
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
12955
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z276.string());
|
|
12937
12956
|
if (!definitionId) {
|
|
12938
12957
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
12939
12958
|
return [];
|
|
@@ -12975,7 +12994,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
12975
12994
|
if (!id)
|
|
12976
12995
|
return null;
|
|
12977
12996
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12978
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12997
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z276.string().optional()));
|
|
12979
12998
|
return {
|
|
12980
12999
|
id,
|
|
12981
13000
|
type: "Block",
|
|
@@ -13103,10 +13122,10 @@ function parseRichTextAttribute(mark) {
|
|
|
13103
13122
|
return null;
|
|
13104
13123
|
}
|
|
13105
13124
|
function parseProsemirrorLink(mark) {
|
|
13106
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
13125
|
+
const href = getProsemirrorAttribute(mark, "href", z276.string().optional());
|
|
13107
13126
|
if (!href)
|
|
13108
13127
|
return null;
|
|
13109
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
13128
|
+
const target = getProsemirrorAttribute(mark, "target", z276.string().optional());
|
|
13110
13129
|
const openInNewTab = target === "_blank";
|
|
13111
13130
|
if (href.startsWith("@")) {
|
|
13112
13131
|
return {
|
|
@@ -13125,10 +13144,10 @@ function parseProsemirrorLink(mark) {
|
|
|
13125
13144
|
}
|
|
13126
13145
|
}
|
|
13127
13146
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13128
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
13147
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z276.string().optional());
|
|
13129
13148
|
if (!highlightId)
|
|
13130
13149
|
return null;
|
|
13131
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
13150
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z276.boolean().optional()) ?? false;
|
|
13132
13151
|
return {
|
|
13133
13152
|
type: "Comment",
|
|
13134
13153
|
commentHighlightId: highlightId,
|
|
@@ -13140,7 +13159,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13140
13159
|
if (!id)
|
|
13141
13160
|
return null;
|
|
13142
13161
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13143
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
13162
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z276.boolean().optional()) !== false;
|
|
13144
13163
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13145
13164
|
if (!tableChild) {
|
|
13146
13165
|
return emptyTable(id, variantId, 0);
|
|
@@ -13187,9 +13206,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
13187
13206
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13188
13207
|
if (!id)
|
|
13189
13208
|
return null;
|
|
13190
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
13209
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z276.string().optional());
|
|
13191
13210
|
let columnWidth;
|
|
13192
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
13211
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z276.array(z276.number()).nullish());
|
|
13193
13212
|
if (columnWidthArray) {
|
|
13194
13213
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13195
13214
|
}
|
|
@@ -13227,7 +13246,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13227
13246
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13228
13247
|
};
|
|
13229
13248
|
case "image":
|
|
13230
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13249
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z276.string());
|
|
13231
13250
|
if (!items)
|
|
13232
13251
|
return null;
|
|
13233
13252
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -13347,7 +13366,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
13347
13366
|
);
|
|
13348
13367
|
}
|
|
13349
13368
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
13350
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13369
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z276.string());
|
|
13351
13370
|
if (!itemsString)
|
|
13352
13371
|
return null;
|
|
13353
13372
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -13359,18 +13378,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
13359
13378
|
}
|
|
13360
13379
|
function parseAppearance(prosemirrorNode) {
|
|
13361
13380
|
let appearance = {};
|
|
13362
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
13381
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z276.string().optional());
|
|
13363
13382
|
if (rawAppearanceString) {
|
|
13364
13383
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
13365
13384
|
if (parsedAppearance.success) {
|
|
13366
13385
|
appearance = parsedAppearance.data;
|
|
13367
13386
|
}
|
|
13368
13387
|
}
|
|
13369
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
13388
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z276.number().optional());
|
|
13370
13389
|
if (columns) {
|
|
13371
13390
|
appearance.numberOfColumns = columns;
|
|
13372
13391
|
}
|
|
13373
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
13392
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z276.string().optional());
|
|
13374
13393
|
if (backgroundColor) {
|
|
13375
13394
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
13376
13395
|
if (parsedColor.success) {
|
|
@@ -13465,13 +13484,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
13465
13484
|
}
|
|
13466
13485
|
}
|
|
13467
13486
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
13468
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
13487
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z276.string());
|
|
13469
13488
|
if (!id)
|
|
13470
13489
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
13471
13490
|
return id;
|
|
13472
13491
|
}
|
|
13473
13492
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
13474
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
13493
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z276.string()));
|
|
13475
13494
|
}
|
|
13476
13495
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
13477
13496
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|