@supernova-studio/model 0.58.11 → 0.58.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +68 -43
- package/dist/index.d.ts +68 -43
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +434 -422
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/index.ts +1 -0
- package/src/dsm/published-doc-page-visits.ts +15 -0
package/dist/index.mjs
CHANGED
|
@@ -288,7 +288,7 @@ var CustomDomain = z14.object({
|
|
|
288
288
|
});
|
|
289
289
|
|
|
290
290
|
// src/data-dumps/code-integration-dump.ts
|
|
291
|
-
import { z as
|
|
291
|
+
import { z as z147 } from "zod";
|
|
292
292
|
|
|
293
293
|
// src/export/exporter.ts
|
|
294
294
|
import { z as z17 } from "zod";
|
|
@@ -391,10 +391,10 @@ var Exporter = z17.object({
|
|
|
391
391
|
});
|
|
392
392
|
|
|
393
393
|
// src/export/pipeline.ts
|
|
394
|
-
import { z as
|
|
394
|
+
import { z as z146 } from "zod";
|
|
395
395
|
|
|
396
396
|
// src/export/export-destinations.ts
|
|
397
|
-
import { z as
|
|
397
|
+
import { z as z145 } from "zod";
|
|
398
398
|
|
|
399
399
|
// src/dsm/assets/asset-dynamo-record.ts
|
|
400
400
|
import { z as z18 } from "zod";
|
|
@@ -4630,159 +4630,170 @@ var ExporterPropertyValuesCollection = z140.object({
|
|
|
4630
4630
|
values: z140.array(ExporterPropertyValue)
|
|
4631
4631
|
});
|
|
4632
4632
|
|
|
4633
|
-
// src/dsm/published-doc-page.ts
|
|
4633
|
+
// src/dsm/published-doc-page-visits.ts
|
|
4634
4634
|
import { z as z141 } from "zod";
|
|
4635
|
+
var PublishedDocPageVisitsEntry = z141.object({
|
|
4636
|
+
id: z141.string(),
|
|
4637
|
+
versionId: z141.string(),
|
|
4638
|
+
pageShortPersistentId: z141.string(),
|
|
4639
|
+
locale: z141.string().optional(),
|
|
4640
|
+
timestamp: z141.coerce.date(),
|
|
4641
|
+
visits: z141.number()
|
|
4642
|
+
});
|
|
4643
|
+
|
|
4644
|
+
// src/dsm/published-doc-page.ts
|
|
4645
|
+
import { z as z142 } from "zod";
|
|
4635
4646
|
var SHORT_PERSISTENT_ID_LENGTH = 8;
|
|
4636
4647
|
function tryParseShortPersistentId(url = "/") {
|
|
4637
4648
|
const lastUrlPart = url.split("/").pop() || "";
|
|
4638
4649
|
const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
|
|
4639
4650
|
return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
|
|
4640
4651
|
}
|
|
4641
|
-
var PublishedDocPage =
|
|
4642
|
-
id:
|
|
4643
|
-
publishedDocId:
|
|
4644
|
-
pageShortPersistentId:
|
|
4645
|
-
pathV1:
|
|
4646
|
-
pathV2:
|
|
4647
|
-
storagePath:
|
|
4648
|
-
locale:
|
|
4649
|
-
isPrivate:
|
|
4650
|
-
isHidden:
|
|
4651
|
-
createdAt:
|
|
4652
|
-
updatedAt:
|
|
4652
|
+
var PublishedDocPage = z142.object({
|
|
4653
|
+
id: z142.string(),
|
|
4654
|
+
publishedDocId: z142.string(),
|
|
4655
|
+
pageShortPersistentId: z142.string(),
|
|
4656
|
+
pathV1: z142.string(),
|
|
4657
|
+
pathV2: z142.string(),
|
|
4658
|
+
storagePath: z142.string(),
|
|
4659
|
+
locale: z142.string().optional(),
|
|
4660
|
+
isPrivate: z142.boolean(),
|
|
4661
|
+
isHidden: z142.boolean(),
|
|
4662
|
+
createdAt: z142.coerce.date(),
|
|
4663
|
+
updatedAt: z142.coerce.date()
|
|
4653
4664
|
});
|
|
4654
4665
|
|
|
4655
4666
|
// src/dsm/published-doc.ts
|
|
4656
|
-
import { z as
|
|
4667
|
+
import { z as z143 } from "zod";
|
|
4657
4668
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
4658
|
-
var PublishedDocEnvironment =
|
|
4659
|
-
var PublishedDocsChecksums =
|
|
4660
|
-
var PublishedDocRoutingVersion =
|
|
4661
|
-
var PublishedDoc =
|
|
4662
|
-
id:
|
|
4663
|
-
designSystemVersionId:
|
|
4664
|
-
createdAt:
|
|
4665
|
-
updatedAt:
|
|
4666
|
-
lastPublishedAt:
|
|
4667
|
-
isDefault:
|
|
4668
|
-
isPublic:
|
|
4669
|
+
var PublishedDocEnvironment = z143.enum(publishedDocEnvironments);
|
|
4670
|
+
var PublishedDocsChecksums = z143.record(z143.string());
|
|
4671
|
+
var PublishedDocRoutingVersion = z143.enum(["1", "2"]);
|
|
4672
|
+
var PublishedDoc = z143.object({
|
|
4673
|
+
id: z143.string(),
|
|
4674
|
+
designSystemVersionId: z143.string(),
|
|
4675
|
+
createdAt: z143.coerce.date(),
|
|
4676
|
+
updatedAt: z143.coerce.date(),
|
|
4677
|
+
lastPublishedAt: z143.coerce.date(),
|
|
4678
|
+
isDefault: z143.boolean(),
|
|
4679
|
+
isPublic: z143.boolean(),
|
|
4669
4680
|
environment: PublishedDocEnvironment,
|
|
4670
4681
|
checksums: PublishedDocsChecksums,
|
|
4671
|
-
storagePath:
|
|
4672
|
-
wasMigrated:
|
|
4682
|
+
storagePath: z143.string(),
|
|
4683
|
+
wasMigrated: z143.boolean(),
|
|
4673
4684
|
routingVersion: PublishedDocRoutingVersion,
|
|
4674
|
-
usesLocalizations:
|
|
4675
|
-
wasPublishedWithLocalizations:
|
|
4676
|
-
tokenCount:
|
|
4677
|
-
assetCount:
|
|
4685
|
+
usesLocalizations: z143.boolean(),
|
|
4686
|
+
wasPublishedWithLocalizations: z143.boolean(),
|
|
4687
|
+
tokenCount: z143.number(),
|
|
4688
|
+
assetCount: z143.number()
|
|
4678
4689
|
});
|
|
4679
4690
|
|
|
4680
4691
|
// src/dsm/version.ts
|
|
4681
|
-
import { z as
|
|
4682
|
-
var DesignSystemVersion =
|
|
4683
|
-
id:
|
|
4684
|
-
version:
|
|
4685
|
-
createdAt:
|
|
4686
|
-
designSystemId:
|
|
4687
|
-
name:
|
|
4688
|
-
comment:
|
|
4689
|
-
isReadonly:
|
|
4690
|
-
changeLog:
|
|
4691
|
-
parentId:
|
|
4692
|
-
isDraftsFeatureAdopted:
|
|
4693
|
-
});
|
|
4694
|
-
var VersionCreationJobStatus =
|
|
4695
|
-
var VersionCreationJob =
|
|
4696
|
-
id:
|
|
4697
|
-
version:
|
|
4698
|
-
designSystemId:
|
|
4699
|
-
designSystemVersionId: nullishToOptional(
|
|
4692
|
+
import { z as z144 } from "zod";
|
|
4693
|
+
var DesignSystemVersion = z144.object({
|
|
4694
|
+
id: z144.string(),
|
|
4695
|
+
version: z144.string(),
|
|
4696
|
+
createdAt: z144.coerce.date(),
|
|
4697
|
+
designSystemId: z144.string(),
|
|
4698
|
+
name: z144.string(),
|
|
4699
|
+
comment: z144.string(),
|
|
4700
|
+
isReadonly: z144.boolean(),
|
|
4701
|
+
changeLog: z144.string(),
|
|
4702
|
+
parentId: z144.string().optional(),
|
|
4703
|
+
isDraftsFeatureAdopted: z144.boolean()
|
|
4704
|
+
});
|
|
4705
|
+
var VersionCreationJobStatus = z144.enum(["Success", "InProgress", "Error"]);
|
|
4706
|
+
var VersionCreationJob = z144.object({
|
|
4707
|
+
id: z144.string(),
|
|
4708
|
+
version: z144.string(),
|
|
4709
|
+
designSystemId: z144.string(),
|
|
4710
|
+
designSystemVersionId: nullishToOptional(z144.string()),
|
|
4700
4711
|
status: VersionCreationJobStatus,
|
|
4701
|
-
errorMessage: nullishToOptional(
|
|
4712
|
+
errorMessage: nullishToOptional(z144.string())
|
|
4702
4713
|
});
|
|
4703
4714
|
|
|
4704
4715
|
// src/export/export-destinations.ts
|
|
4705
4716
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
4706
4717
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
4707
|
-
var ExportJobDocumentationChanges =
|
|
4708
|
-
pagePersistentIds:
|
|
4709
|
-
groupPersistentIds:
|
|
4718
|
+
var ExportJobDocumentationChanges = z145.object({
|
|
4719
|
+
pagePersistentIds: z145.string().array(),
|
|
4720
|
+
groupPersistentIds: z145.string().array()
|
|
4710
4721
|
});
|
|
4711
|
-
var ExporterDestinationDocs =
|
|
4722
|
+
var ExporterDestinationDocs = z145.object({
|
|
4712
4723
|
environment: PublishedDocEnvironment,
|
|
4713
4724
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
4714
4725
|
});
|
|
4715
|
-
var ExporterDestinationS3 =
|
|
4716
|
-
var ExporterDestinationGithub =
|
|
4717
|
-
credentialId:
|
|
4726
|
+
var ExporterDestinationS3 = z145.object({});
|
|
4727
|
+
var ExporterDestinationGithub = z145.object({
|
|
4728
|
+
credentialId: z145.string().optional(),
|
|
4718
4729
|
// Repository
|
|
4719
|
-
url:
|
|
4730
|
+
url: z145.string(),
|
|
4720
4731
|
// Location
|
|
4721
|
-
branch:
|
|
4722
|
-
relativePath: nullishToOptional(
|
|
4723
|
-
purgeDirectory: nullishToOptional(
|
|
4732
|
+
branch: z145.string(),
|
|
4733
|
+
relativePath: nullishToOptional(z145.string()),
|
|
4734
|
+
purgeDirectory: nullishToOptional(z145.boolean()),
|
|
4724
4735
|
// Commit metadata
|
|
4725
|
-
commitAuthorName: nullishToOptional(
|
|
4726
|
-
commitAuthorEmail: nullishToOptional(
|
|
4736
|
+
commitAuthorName: nullishToOptional(z145.string()),
|
|
4737
|
+
commitAuthorEmail: nullishToOptional(z145.string()),
|
|
4727
4738
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4728
|
-
connectionId: nullishToOptional(
|
|
4729
|
-
userId: nullishToOptional(
|
|
4739
|
+
connectionId: nullishToOptional(z145.string()),
|
|
4740
|
+
userId: nullishToOptional(z145.number())
|
|
4730
4741
|
});
|
|
4731
|
-
var ExporterDestinationAzure =
|
|
4732
|
-
credentialId:
|
|
4742
|
+
var ExporterDestinationAzure = z145.object({
|
|
4743
|
+
credentialId: z145.string().optional(),
|
|
4733
4744
|
// Repository
|
|
4734
|
-
organizationId:
|
|
4735
|
-
projectId:
|
|
4736
|
-
repositoryId:
|
|
4745
|
+
organizationId: z145.string(),
|
|
4746
|
+
projectId: z145.string(),
|
|
4747
|
+
repositoryId: z145.string(),
|
|
4737
4748
|
// Commit metadata
|
|
4738
|
-
commitAuthorName: nullishToOptional(
|
|
4739
|
-
commitAuthorEmail: nullishToOptional(
|
|
4749
|
+
commitAuthorName: nullishToOptional(z145.string()),
|
|
4750
|
+
commitAuthorEmail: nullishToOptional(z145.string()),
|
|
4740
4751
|
// Location
|
|
4741
|
-
branch:
|
|
4742
|
-
relativePath: nullishToOptional(
|
|
4743
|
-
purgeDirectory: nullishToOptional(
|
|
4752
|
+
branch: z145.string(),
|
|
4753
|
+
relativePath: nullishToOptional(z145.string()),
|
|
4754
|
+
purgeDirectory: nullishToOptional(z145.boolean()),
|
|
4744
4755
|
// Maybe not needed
|
|
4745
|
-
url: nullishToOptional(
|
|
4756
|
+
url: nullishToOptional(z145.string()),
|
|
4746
4757
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4747
|
-
connectionId: nullishToOptional(
|
|
4748
|
-
userId: nullishToOptional(
|
|
4758
|
+
connectionId: nullishToOptional(z145.string()),
|
|
4759
|
+
userId: nullishToOptional(z145.number())
|
|
4749
4760
|
});
|
|
4750
|
-
var ExporterDestinationGitlab =
|
|
4751
|
-
credentialId:
|
|
4761
|
+
var ExporterDestinationGitlab = z145.object({
|
|
4762
|
+
credentialId: z145.string().optional(),
|
|
4752
4763
|
// Repository
|
|
4753
|
-
projectId:
|
|
4764
|
+
projectId: z145.string(),
|
|
4754
4765
|
// Commit metadata
|
|
4755
|
-
commitAuthorName: nullishToOptional(
|
|
4756
|
-
commitAuthorEmail: nullishToOptional(
|
|
4766
|
+
commitAuthorName: nullishToOptional(z145.string()),
|
|
4767
|
+
commitAuthorEmail: nullishToOptional(z145.string()),
|
|
4757
4768
|
// Location
|
|
4758
|
-
branch:
|
|
4759
|
-
relativePath: nullishToOptional(
|
|
4760
|
-
purgeDirectory: nullishToOptional(
|
|
4769
|
+
branch: z145.string(),
|
|
4770
|
+
relativePath: nullishToOptional(z145.string()),
|
|
4771
|
+
purgeDirectory: nullishToOptional(z145.boolean()),
|
|
4761
4772
|
// Maybe not needed
|
|
4762
|
-
url: nullishToOptional(
|
|
4773
|
+
url: nullishToOptional(z145.string()),
|
|
4763
4774
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4764
|
-
connectionId: nullishToOptional(
|
|
4765
|
-
userId: nullishToOptional(
|
|
4775
|
+
connectionId: nullishToOptional(z145.string()),
|
|
4776
|
+
userId: nullishToOptional(z145.number())
|
|
4766
4777
|
});
|
|
4767
|
-
var ExporterDestinationBitbucket =
|
|
4768
|
-
credentialId:
|
|
4778
|
+
var ExporterDestinationBitbucket = z145.object({
|
|
4779
|
+
credentialId: z145.string().optional(),
|
|
4769
4780
|
// Repository
|
|
4770
|
-
workspaceSlug:
|
|
4771
|
-
projectKey:
|
|
4772
|
-
repoSlug:
|
|
4781
|
+
workspaceSlug: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4782
|
+
projectKey: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4783
|
+
repoSlug: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4773
4784
|
// Commit metadata
|
|
4774
|
-
commitAuthorName: nullishToOptional(
|
|
4775
|
-
commitAuthorEmail: nullishToOptional(
|
|
4785
|
+
commitAuthorName: nullishToOptional(z145.string()),
|
|
4786
|
+
commitAuthorEmail: nullishToOptional(z145.string()),
|
|
4776
4787
|
// Location
|
|
4777
|
-
branch:
|
|
4778
|
-
relativePath: nullishToOptional(
|
|
4779
|
-
purgeDirectory: nullishToOptional(
|
|
4788
|
+
branch: z145.string(),
|
|
4789
|
+
relativePath: nullishToOptional(z145.string()),
|
|
4790
|
+
purgeDirectory: nullishToOptional(z145.boolean()),
|
|
4780
4791
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
4781
|
-
connectionId: nullishToOptional(
|
|
4782
|
-
userId: nullishToOptional(
|
|
4792
|
+
connectionId: nullishToOptional(z145.string()),
|
|
4793
|
+
userId: nullishToOptional(z145.number())
|
|
4783
4794
|
});
|
|
4784
|
-
var ExportDestinationsMap =
|
|
4785
|
-
webhookUrl:
|
|
4795
|
+
var ExportDestinationsMap = z145.object({
|
|
4796
|
+
webhookUrl: z145.string().optional(),
|
|
4786
4797
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
4787
4798
|
destinationS3: ExporterDestinationS3.optional(),
|
|
4788
4799
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -4792,149 +4803,149 @@ var ExportDestinationsMap = z144.object({
|
|
|
4792
4803
|
});
|
|
4793
4804
|
|
|
4794
4805
|
// src/export/pipeline.ts
|
|
4795
|
-
var PipelineEventType =
|
|
4796
|
-
var PipelineDestinationGitType =
|
|
4797
|
-
var PipelineDestinationExtraType =
|
|
4798
|
-
var PipelineDestinationType =
|
|
4799
|
-
var Pipeline =
|
|
4800
|
-
id:
|
|
4801
|
-
name:
|
|
4806
|
+
var PipelineEventType = z146.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4807
|
+
var PipelineDestinationGitType = z146.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4808
|
+
var PipelineDestinationExtraType = z146.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4809
|
+
var PipelineDestinationType = z146.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4810
|
+
var Pipeline = z146.object({
|
|
4811
|
+
id: z146.string(),
|
|
4812
|
+
name: z146.string(),
|
|
4802
4813
|
eventType: PipelineEventType,
|
|
4803
|
-
isEnabled:
|
|
4804
|
-
workspaceId:
|
|
4805
|
-
designSystemId:
|
|
4806
|
-
exporterId:
|
|
4807
|
-
brandPersistentId:
|
|
4808
|
-
themePersistentId:
|
|
4809
|
-
themePersistentIds:
|
|
4814
|
+
isEnabled: z146.boolean(),
|
|
4815
|
+
workspaceId: z146.string(),
|
|
4816
|
+
designSystemId: z146.string(),
|
|
4817
|
+
exporterId: z146.string(),
|
|
4818
|
+
brandPersistentId: z146.string().optional(),
|
|
4819
|
+
themePersistentId: z146.string().optional(),
|
|
4820
|
+
themePersistentIds: z146.string().array().optional(),
|
|
4810
4821
|
// Destinations
|
|
4811
4822
|
...ExportDestinationsMap.shape
|
|
4812
4823
|
});
|
|
4813
4824
|
|
|
4814
4825
|
// src/data-dumps/code-integration-dump.ts
|
|
4815
|
-
var ExportJobDump =
|
|
4816
|
-
id:
|
|
4817
|
-
createdAt:
|
|
4818
|
-
finishedAt:
|
|
4819
|
-
exportArtefacts:
|
|
4826
|
+
var ExportJobDump = z147.object({
|
|
4827
|
+
id: z147.string(),
|
|
4828
|
+
createdAt: z147.coerce.date(),
|
|
4829
|
+
finishedAt: z147.coerce.date(),
|
|
4830
|
+
exportArtefacts: z147.string()
|
|
4820
4831
|
});
|
|
4821
|
-
var CodeIntegrationDump =
|
|
4832
|
+
var CodeIntegrationDump = z147.object({
|
|
4822
4833
|
exporters: Exporter.array(),
|
|
4823
4834
|
pipelines: Pipeline.array(),
|
|
4824
4835
|
exportJobs: ExportJobDump.array()
|
|
4825
4836
|
});
|
|
4826
4837
|
|
|
4827
4838
|
// src/data-dumps/design-system-dump.ts
|
|
4828
|
-
import { z as
|
|
4839
|
+
import { z as z154 } from "zod";
|
|
4829
4840
|
|
|
4830
4841
|
// src/data-dumps/design-system-version-dump.ts
|
|
4831
|
-
import { z as
|
|
4842
|
+
import { z as z153 } from "zod";
|
|
4832
4843
|
|
|
4833
4844
|
// src/liveblocks/rooms/design-system-version-room.ts
|
|
4834
|
-
import { z as
|
|
4845
|
+
import { z as z148 } from "zod";
|
|
4835
4846
|
var DesignSystemVersionRoom = Entity.extend({
|
|
4836
|
-
designSystemVersionId:
|
|
4837
|
-
liveblocksId:
|
|
4838
|
-
});
|
|
4839
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
4840
|
-
routingVersion:
|
|
4841
|
-
isDraftFeatureAdopted:
|
|
4842
|
-
isApprovalFeatureEnabled:
|
|
4843
|
-
approvalRequiredForPublishing:
|
|
4844
|
-
});
|
|
4845
|
-
var DesignSystemVersionRoomInitialState =
|
|
4846
|
-
pages:
|
|
4847
|
-
groups:
|
|
4848
|
-
pageSnapshots:
|
|
4849
|
-
groupSnapshots:
|
|
4850
|
-
pageApprovals:
|
|
4847
|
+
designSystemVersionId: z148.string(),
|
|
4848
|
+
liveblocksId: z148.string()
|
|
4849
|
+
});
|
|
4850
|
+
var DesignSystemVersionRoomInternalSettings = z148.object({
|
|
4851
|
+
routingVersion: z148.string(),
|
|
4852
|
+
isDraftFeatureAdopted: z148.boolean(),
|
|
4853
|
+
isApprovalFeatureEnabled: z148.boolean(),
|
|
4854
|
+
approvalRequiredForPublishing: z148.boolean()
|
|
4855
|
+
});
|
|
4856
|
+
var DesignSystemVersionRoomInitialState = z148.object({
|
|
4857
|
+
pages: z148.array(DocumentationPageV2),
|
|
4858
|
+
groups: z148.array(ElementGroup),
|
|
4859
|
+
pageSnapshots: z148.array(DocumentationPageSnapshot),
|
|
4860
|
+
groupSnapshots: z148.array(ElementGroupSnapshot),
|
|
4861
|
+
pageApprovals: z148.array(DocumentationPageApproval),
|
|
4851
4862
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
4852
4863
|
});
|
|
4853
|
-
var DesignSystemVersionRoomUpdate =
|
|
4854
|
-
pages:
|
|
4855
|
-
groups:
|
|
4856
|
-
pageIdsToDelete:
|
|
4857
|
-
groupIdsToDelete:
|
|
4858
|
-
pageSnapshots:
|
|
4859
|
-
groupSnapshots:
|
|
4860
|
-
pageSnapshotIdsToDelete:
|
|
4861
|
-
groupSnapshotIdsToDelete:
|
|
4862
|
-
pageHashesToUpdate:
|
|
4863
|
-
pageApprovals:
|
|
4864
|
-
pageApprovalIdsToDelete:
|
|
4864
|
+
var DesignSystemVersionRoomUpdate = z148.object({
|
|
4865
|
+
pages: z148.array(DocumentationPageV2),
|
|
4866
|
+
groups: z148.array(ElementGroup),
|
|
4867
|
+
pageIdsToDelete: z148.array(z148.string()),
|
|
4868
|
+
groupIdsToDelete: z148.array(z148.string()),
|
|
4869
|
+
pageSnapshots: z148.array(DocumentationPageSnapshot),
|
|
4870
|
+
groupSnapshots: z148.array(ElementGroupSnapshot),
|
|
4871
|
+
pageSnapshotIdsToDelete: z148.array(z148.string()),
|
|
4872
|
+
groupSnapshotIdsToDelete: z148.array(z148.string()),
|
|
4873
|
+
pageHashesToUpdate: z148.record(z148.string(), z148.string()),
|
|
4874
|
+
pageApprovals: z148.array(DocumentationPageApproval),
|
|
4875
|
+
pageApprovalIdsToDelete: z148.array(z148.string())
|
|
4865
4876
|
});
|
|
4866
4877
|
|
|
4867
4878
|
// src/liveblocks/rooms/documentation-page-room.ts
|
|
4868
|
-
import { z as
|
|
4879
|
+
import { z as z149 } from "zod";
|
|
4869
4880
|
var DocumentationPageRoom = Entity.extend({
|
|
4870
|
-
designSystemVersionId:
|
|
4871
|
-
documentationPageId:
|
|
4872
|
-
liveblocksId:
|
|
4873
|
-
isDirty:
|
|
4881
|
+
designSystemVersionId: z149.string(),
|
|
4882
|
+
documentationPageId: z149.string(),
|
|
4883
|
+
liveblocksId: z149.string(),
|
|
4884
|
+
isDirty: z149.boolean()
|
|
4874
4885
|
});
|
|
4875
|
-
var DocumentationPageRoomState =
|
|
4876
|
-
pageItems:
|
|
4886
|
+
var DocumentationPageRoomState = z149.object({
|
|
4887
|
+
pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4877
4888
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
4878
4889
|
});
|
|
4879
|
-
var DocumentationPageRoomRoomUpdate =
|
|
4890
|
+
var DocumentationPageRoomRoomUpdate = z149.object({
|
|
4880
4891
|
page: DocumentationPageV2,
|
|
4881
4892
|
pageParent: ElementGroup
|
|
4882
4893
|
});
|
|
4883
4894
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
4884
|
-
pageItems:
|
|
4885
|
-
blockDefinitions:
|
|
4895
|
+
pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4896
|
+
blockDefinitions: z149.array(PageBlockDefinition)
|
|
4886
4897
|
});
|
|
4887
|
-
var RestoredDocumentationPage =
|
|
4898
|
+
var RestoredDocumentationPage = z149.object({
|
|
4888
4899
|
page: DocumentationPageV2,
|
|
4889
4900
|
pageParent: ElementGroup,
|
|
4890
4901
|
pageContent: DocumentationPageContentData,
|
|
4891
|
-
contentHash:
|
|
4892
|
-
snapshotId:
|
|
4893
|
-
roomId:
|
|
4902
|
+
contentHash: z149.string(),
|
|
4903
|
+
snapshotId: z149.string(),
|
|
4904
|
+
roomId: z149.string().optional()
|
|
4894
4905
|
});
|
|
4895
|
-
var RestoredDocumentationGroup =
|
|
4906
|
+
var RestoredDocumentationGroup = z149.object({
|
|
4896
4907
|
group: ElementGroup,
|
|
4897
4908
|
parent: ElementGroup
|
|
4898
4909
|
});
|
|
4899
4910
|
|
|
4900
4911
|
// src/liveblocks/rooms/room-type.ts
|
|
4901
|
-
import { z as
|
|
4912
|
+
import { z as z150 } from "zod";
|
|
4902
4913
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
4903
4914
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
4904
4915
|
RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
|
|
4905
4916
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
4906
4917
|
return RoomTypeEnum2;
|
|
4907
4918
|
})(RoomTypeEnum || {});
|
|
4908
|
-
var RoomTypeSchema =
|
|
4919
|
+
var RoomTypeSchema = z150.nativeEnum(RoomTypeEnum);
|
|
4909
4920
|
var RoomType = RoomTypeSchema.enum;
|
|
4910
4921
|
|
|
4911
4922
|
// src/liveblocks/rooms/workspace-room.ts
|
|
4912
|
-
import { z as
|
|
4923
|
+
import { z as z151 } from "zod";
|
|
4913
4924
|
var WorkspaceRoom = Entity.extend({
|
|
4914
|
-
workspaceId:
|
|
4915
|
-
liveblocksId:
|
|
4925
|
+
workspaceId: z151.string(),
|
|
4926
|
+
liveblocksId: z151.string()
|
|
4916
4927
|
});
|
|
4917
4928
|
|
|
4918
4929
|
// src/data-dumps/published-docs-dump.ts
|
|
4919
|
-
import { z as
|
|
4920
|
-
var PublishedDocsDump =
|
|
4930
|
+
import { z as z152 } from "zod";
|
|
4931
|
+
var PublishedDocsDump = z152.object({
|
|
4921
4932
|
documentation: PublishedDoc,
|
|
4922
4933
|
pages: PublishedDocPage.array()
|
|
4923
4934
|
});
|
|
4924
4935
|
|
|
4925
4936
|
// src/data-dumps/design-system-version-dump.ts
|
|
4926
|
-
var DocumentationThreadDump =
|
|
4937
|
+
var DocumentationThreadDump = z153.object({
|
|
4927
4938
|
thread: DocumentationCommentThread,
|
|
4928
4939
|
comments: DocumentationComment.array()
|
|
4929
4940
|
});
|
|
4930
|
-
var DocumentationPageRoomDump =
|
|
4941
|
+
var DocumentationPageRoomDump = z153.object({
|
|
4931
4942
|
room: DocumentationPageRoom,
|
|
4932
4943
|
threads: DocumentationThreadDump.array()
|
|
4933
4944
|
});
|
|
4934
|
-
var DesignSystemVersionMultiplayerDump =
|
|
4945
|
+
var DesignSystemVersionMultiplayerDump = z153.object({
|
|
4935
4946
|
documentationPages: DocumentationPageRoomDump.array()
|
|
4936
4947
|
});
|
|
4937
|
-
var DesignSystemVersionDump =
|
|
4948
|
+
var DesignSystemVersionDump = z153.object({
|
|
4938
4949
|
version: DesignSystemVersion,
|
|
4939
4950
|
brands: Brand.array(),
|
|
4940
4951
|
elements: DesignElement.array(),
|
|
@@ -4949,7 +4960,7 @@ var DesignSystemVersionDump = z152.object({
|
|
|
4949
4960
|
});
|
|
4950
4961
|
|
|
4951
4962
|
// src/data-dumps/design-system-dump.ts
|
|
4952
|
-
var DesignSystemDump =
|
|
4963
|
+
var DesignSystemDump = z154.object({
|
|
4953
4964
|
designSystem: DesignSystem,
|
|
4954
4965
|
dataSources: DataSource.array(),
|
|
4955
4966
|
versions: DesignSystemVersionDump.array(),
|
|
@@ -4958,50 +4969,50 @@ var DesignSystemDump = z153.object({
|
|
|
4958
4969
|
});
|
|
4959
4970
|
|
|
4960
4971
|
// src/data-dumps/user-data-dump.ts
|
|
4961
|
-
import { z as
|
|
4972
|
+
import { z as z157 } from "zod";
|
|
4962
4973
|
|
|
4963
4974
|
// src/data-dumps/workspace-dump.ts
|
|
4964
|
-
import { z as
|
|
4975
|
+
import { z as z156 } from "zod";
|
|
4965
4976
|
|
|
4966
4977
|
// src/integrations/integration.ts
|
|
4967
|
-
import { z as
|
|
4968
|
-
var IntegrationDesignSystem =
|
|
4969
|
-
designSystemId:
|
|
4970
|
-
brandId:
|
|
4971
|
-
title:
|
|
4972
|
-
userId:
|
|
4973
|
-
date:
|
|
4974
|
-
});
|
|
4975
|
-
var IntegrationCredentialsType =
|
|
4976
|
-
var IntegrationCredentialsState =
|
|
4977
|
-
var IntegrationCredentialsProfile =
|
|
4978
|
-
id: nullishToOptional(
|
|
4979
|
-
email: nullishToOptional(
|
|
4980
|
-
handle: nullishToOptional(
|
|
4981
|
-
type: nullishToOptional(
|
|
4982
|
-
avatarUrl: nullishToOptional(
|
|
4983
|
-
organization: nullishToOptional(
|
|
4984
|
-
collection: nullishToOptional(
|
|
4985
|
-
});
|
|
4986
|
-
var IntegrationCredentials =
|
|
4987
|
-
id:
|
|
4978
|
+
import { z as z155 } from "zod";
|
|
4979
|
+
var IntegrationDesignSystem = z155.object({
|
|
4980
|
+
designSystemId: z155.string(),
|
|
4981
|
+
brandId: z155.string(),
|
|
4982
|
+
title: z155.string().optional(),
|
|
4983
|
+
userId: z155.string().optional(),
|
|
4984
|
+
date: z155.coerce.date().optional()
|
|
4985
|
+
});
|
|
4986
|
+
var IntegrationCredentialsType = z155.enum(["OAuth2", "PAT"]);
|
|
4987
|
+
var IntegrationCredentialsState = z155.enum(["Active", "Inactive"]);
|
|
4988
|
+
var IntegrationCredentialsProfile = z155.object({
|
|
4989
|
+
id: nullishToOptional(z155.string()),
|
|
4990
|
+
email: nullishToOptional(z155.string()),
|
|
4991
|
+
handle: nullishToOptional(z155.string()),
|
|
4992
|
+
type: nullishToOptional(z155.string()),
|
|
4993
|
+
avatarUrl: nullishToOptional(z155.string()),
|
|
4994
|
+
organization: nullishToOptional(z155.string()),
|
|
4995
|
+
collection: nullishToOptional(z155.string())
|
|
4996
|
+
});
|
|
4997
|
+
var IntegrationCredentials = z155.object({
|
|
4998
|
+
id: z155.string(),
|
|
4988
4999
|
type: IntegrationCredentialsType,
|
|
4989
|
-
integrationId:
|
|
4990
|
-
accessToken:
|
|
4991
|
-
userId:
|
|
4992
|
-
createdAt:
|
|
4993
|
-
refreshToken:
|
|
4994
|
-
tokenName:
|
|
4995
|
-
expiresAt:
|
|
4996
|
-
refreshedAt:
|
|
4997
|
-
username:
|
|
4998
|
-
appInstallationId:
|
|
5000
|
+
integrationId: z155.string(),
|
|
5001
|
+
accessToken: z155.string(),
|
|
5002
|
+
userId: z155.string(),
|
|
5003
|
+
createdAt: z155.coerce.date(),
|
|
5004
|
+
refreshToken: z155.string().optional(),
|
|
5005
|
+
tokenName: z155.string().optional(),
|
|
5006
|
+
expiresAt: z155.coerce.date().optional(),
|
|
5007
|
+
refreshedAt: z155.coerce.date().optional(),
|
|
5008
|
+
username: z155.string().optional(),
|
|
5009
|
+
appInstallationId: z155.string().optional(),
|
|
4999
5010
|
profile: IntegrationCredentialsProfile.optional(),
|
|
5000
|
-
customUrl:
|
|
5011
|
+
customUrl: z155.string().optional(),
|
|
5001
5012
|
state: IntegrationCredentialsState,
|
|
5002
5013
|
user: UserMinified.optional()
|
|
5003
5014
|
});
|
|
5004
|
-
var ExtendedIntegrationType =
|
|
5015
|
+
var ExtendedIntegrationType = z155.enum([
|
|
5005
5016
|
"Figma",
|
|
5006
5017
|
"Github",
|
|
5007
5018
|
"Gitlab",
|
|
@@ -5012,26 +5023,26 @@ var ExtendedIntegrationType = z154.enum([
|
|
|
5012
5023
|
]);
|
|
5013
5024
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
5014
5025
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
5015
|
-
var Integration =
|
|
5016
|
-
id:
|
|
5017
|
-
workspaceId:
|
|
5026
|
+
var Integration = z155.object({
|
|
5027
|
+
id: z155.string(),
|
|
5028
|
+
workspaceId: z155.string(),
|
|
5018
5029
|
type: IntegrationType,
|
|
5019
|
-
createdAt:
|
|
5020
|
-
integrationCredentials:
|
|
5021
|
-
});
|
|
5022
|
-
var IntegrationToken =
|
|
5023
|
-
access_token:
|
|
5024
|
-
refresh_token:
|
|
5025
|
-
expires_in:
|
|
5026
|
-
token_type:
|
|
5027
|
-
token_name:
|
|
5028
|
-
token_azure_organization_name:
|
|
5030
|
+
createdAt: z155.coerce.date(),
|
|
5031
|
+
integrationCredentials: z155.array(IntegrationCredentials).optional()
|
|
5032
|
+
});
|
|
5033
|
+
var IntegrationToken = z155.object({
|
|
5034
|
+
access_token: z155.string(),
|
|
5035
|
+
refresh_token: z155.string().optional(),
|
|
5036
|
+
expires_in: z155.union([z155.number().optional(), z155.string().optional()]),
|
|
5037
|
+
token_type: z155.string().optional(),
|
|
5038
|
+
token_name: z155.string().optional(),
|
|
5039
|
+
token_azure_organization_name: z155.string().optional(),
|
|
5029
5040
|
// Azure Cloud PAT only
|
|
5030
|
-
token_azure_collection_name:
|
|
5041
|
+
token_azure_collection_name: z155.string().optional(),
|
|
5031
5042
|
// Azure Server PAT only
|
|
5032
|
-
token_bitbucket_username:
|
|
5043
|
+
token_bitbucket_username: z155.string().optional(),
|
|
5033
5044
|
// Bitbucket only
|
|
5034
|
-
custom_url:
|
|
5045
|
+
custom_url: z155.string().optional().transform((value) => {
|
|
5035
5046
|
if (!value?.trim())
|
|
5036
5047
|
return void 0;
|
|
5037
5048
|
return formatCustomUrl(value);
|
|
@@ -5069,7 +5080,7 @@ function formatCustomUrl(url) {
|
|
|
5069
5080
|
}
|
|
5070
5081
|
|
|
5071
5082
|
// src/data-dumps/workspace-dump.ts
|
|
5072
|
-
var WorkspaceDump =
|
|
5083
|
+
var WorkspaceDump = z156.object({
|
|
5073
5084
|
workspace: Workspace,
|
|
5074
5085
|
designSystems: DesignSystemDump.array(),
|
|
5075
5086
|
codeIntegration: CodeIntegrationDump,
|
|
@@ -5077,121 +5088,121 @@ var WorkspaceDump = z155.object({
|
|
|
5077
5088
|
});
|
|
5078
5089
|
|
|
5079
5090
|
// src/data-dumps/user-data-dump.ts
|
|
5080
|
-
var UserDump =
|
|
5091
|
+
var UserDump = z157.object({
|
|
5081
5092
|
user: User,
|
|
5082
5093
|
workspaces: WorkspaceDump.array()
|
|
5083
5094
|
});
|
|
5084
5095
|
|
|
5085
5096
|
// src/docs-server/session.ts
|
|
5086
|
-
import { z as
|
|
5087
|
-
var NpmProxyToken =
|
|
5088
|
-
access:
|
|
5089
|
-
expiresAt:
|
|
5097
|
+
import { z as z158 } from "zod";
|
|
5098
|
+
var NpmProxyToken = z158.object({
|
|
5099
|
+
access: z158.string(),
|
|
5100
|
+
expiresAt: z158.number()
|
|
5090
5101
|
});
|
|
5091
|
-
var SessionData =
|
|
5092
|
-
returnToUrl:
|
|
5102
|
+
var SessionData = z158.object({
|
|
5103
|
+
returnToUrl: z158.string().optional(),
|
|
5093
5104
|
npmProxyToken: NpmProxyToken.optional()
|
|
5094
5105
|
});
|
|
5095
|
-
var Session =
|
|
5096
|
-
id:
|
|
5097
|
-
expiresAt:
|
|
5098
|
-
userId:
|
|
5106
|
+
var Session = z158.object({
|
|
5107
|
+
id: z158.string(),
|
|
5108
|
+
expiresAt: z158.coerce.date(),
|
|
5109
|
+
userId: z158.string().nullable(),
|
|
5099
5110
|
data: SessionData
|
|
5100
5111
|
});
|
|
5101
|
-
var AuthTokens =
|
|
5102
|
-
access:
|
|
5103
|
-
refresh:
|
|
5112
|
+
var AuthTokens = z158.object({
|
|
5113
|
+
access: z158.string(),
|
|
5114
|
+
refresh: z158.string()
|
|
5104
5115
|
});
|
|
5105
|
-
var UserSession =
|
|
5116
|
+
var UserSession = z158.object({
|
|
5106
5117
|
session: Session,
|
|
5107
5118
|
user: User.nullable()
|
|
5108
5119
|
});
|
|
5109
5120
|
|
|
5110
5121
|
// src/emails/design-system-invite.ts
|
|
5111
|
-
import { z as
|
|
5112
|
-
var DesignSystemInviteEmailRecipient =
|
|
5113
|
-
email:
|
|
5122
|
+
import { z as z159 } from "zod";
|
|
5123
|
+
var DesignSystemInviteEmailRecipient = z159.object({
|
|
5124
|
+
email: z159.string(),
|
|
5114
5125
|
role: WorkspaceRoleSchema
|
|
5115
5126
|
});
|
|
5116
|
-
var DesignSystemInviteEmailData =
|
|
5127
|
+
var DesignSystemInviteEmailData = z159.object({
|
|
5117
5128
|
workspace: Workspace,
|
|
5118
5129
|
designSystem: DesignSystem,
|
|
5119
5130
|
invitedBy: User,
|
|
5120
|
-
documentationDomain:
|
|
5131
|
+
documentationDomain: z159.string().optional()
|
|
5121
5132
|
});
|
|
5122
5133
|
|
|
5123
5134
|
// src/emails/workspace-invite.ts
|
|
5124
|
-
import { z as
|
|
5125
|
-
var WorkspaceInviteEmailRecipient =
|
|
5126
|
-
email:
|
|
5135
|
+
import { z as z160 } from "zod";
|
|
5136
|
+
var WorkspaceInviteEmailRecipient = z160.object({
|
|
5137
|
+
email: z160.string(),
|
|
5127
5138
|
role: WorkspaceRoleSchema
|
|
5128
5139
|
});
|
|
5129
|
-
var WorkspaceInviteEmailData =
|
|
5140
|
+
var WorkspaceInviteEmailData = z160.object({
|
|
5130
5141
|
workspace: Workspace,
|
|
5131
5142
|
invitedBy: User,
|
|
5132
|
-
documentationDomain:
|
|
5143
|
+
documentationDomain: z160.string().optional()
|
|
5133
5144
|
});
|
|
5134
5145
|
|
|
5135
5146
|
// src/events/base.ts
|
|
5136
|
-
import { z as
|
|
5147
|
+
import { z as z163 } from "zod";
|
|
5137
5148
|
|
|
5138
5149
|
// src/events/data-source-imported.ts
|
|
5139
|
-
import { z as
|
|
5140
|
-
var EventDataSourceImported =
|
|
5141
|
-
type:
|
|
5142
|
-
workspaceId:
|
|
5143
|
-
designSystemId:
|
|
5150
|
+
import { z as z161 } from "zod";
|
|
5151
|
+
var EventDataSourceImported = z161.object({
|
|
5152
|
+
type: z161.literal("DataSourceImported"),
|
|
5153
|
+
workspaceId: z161.string(),
|
|
5154
|
+
designSystemId: z161.string()
|
|
5144
5155
|
});
|
|
5145
5156
|
|
|
5146
5157
|
// src/events/version-released.ts
|
|
5147
|
-
import { z as
|
|
5148
|
-
var EventVersionReleased =
|
|
5149
|
-
type:
|
|
5150
|
-
workspaceId:
|
|
5151
|
-
designSystemId:
|
|
5152
|
-
versionId:
|
|
5158
|
+
import { z as z162 } from "zod";
|
|
5159
|
+
var EventVersionReleased = z162.object({
|
|
5160
|
+
type: z162.literal("DesignSystemVersionReleased"),
|
|
5161
|
+
workspaceId: z162.string(),
|
|
5162
|
+
designSystemId: z162.string(),
|
|
5163
|
+
versionId: z162.string()
|
|
5153
5164
|
});
|
|
5154
5165
|
|
|
5155
5166
|
// src/events/base.ts
|
|
5156
|
-
var Event =
|
|
5167
|
+
var Event = z163.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
5157
5168
|
|
|
5158
5169
|
// src/export/export-runner/export-context.ts
|
|
5159
|
-
import { z as
|
|
5160
|
-
var ExportJobDocumentationContext =
|
|
5161
|
-
isSingleVersionDocs:
|
|
5162
|
-
versionSlug:
|
|
5170
|
+
import { z as z164 } from "zod";
|
|
5171
|
+
var ExportJobDocumentationContext = z164.object({
|
|
5172
|
+
isSingleVersionDocs: z164.boolean(),
|
|
5173
|
+
versionSlug: z164.string(),
|
|
5163
5174
|
environment: PublishedDocEnvironment
|
|
5164
5175
|
});
|
|
5165
|
-
var ExportJobContext =
|
|
5166
|
-
apiUrl:
|
|
5167
|
-
accessToken:
|
|
5168
|
-
designSystemId:
|
|
5169
|
-
designSystemName:
|
|
5170
|
-
exporterId:
|
|
5171
|
-
versionId:
|
|
5172
|
-
brandId:
|
|
5173
|
-
themeId:
|
|
5174
|
-
themePersistentIds:
|
|
5175
|
-
exporterName:
|
|
5176
|
+
var ExportJobContext = z164.object({
|
|
5177
|
+
apiUrl: z164.string(),
|
|
5178
|
+
accessToken: z164.string(),
|
|
5179
|
+
designSystemId: z164.string(),
|
|
5180
|
+
designSystemName: z164.string(),
|
|
5181
|
+
exporterId: z164.string(),
|
|
5182
|
+
versionId: z164.string(),
|
|
5183
|
+
brandId: z164.string().optional(),
|
|
5184
|
+
themeId: z164.string().optional(),
|
|
5185
|
+
themePersistentIds: z164.string().array().optional(),
|
|
5186
|
+
exporterName: z164.string(),
|
|
5176
5187
|
documentation: ExportJobDocumentationContext.optional()
|
|
5177
5188
|
});
|
|
5178
|
-
var ExportJobExporterConfiguration =
|
|
5179
|
-
exporterPackageUrl:
|
|
5189
|
+
var ExportJobExporterConfiguration = z164.object({
|
|
5190
|
+
exporterPackageUrl: z164.string(),
|
|
5180
5191
|
exporterPropertyValues: ExporterPropertyValue.array()
|
|
5181
5192
|
});
|
|
5182
5193
|
|
|
5183
5194
|
// src/export/export-runner/exporter-payload.ts
|
|
5184
|
-
import { z as
|
|
5185
|
-
var ExporterFunctionPayload =
|
|
5186
|
-
exportJobId:
|
|
5187
|
-
exportContextId:
|
|
5188
|
-
designSystemId:
|
|
5189
|
-
workspaceId:
|
|
5195
|
+
import { z as z165 } from "zod";
|
|
5196
|
+
var ExporterFunctionPayload = z165.object({
|
|
5197
|
+
exportJobId: z165.string(),
|
|
5198
|
+
exportContextId: z165.string(),
|
|
5199
|
+
designSystemId: z165.string(),
|
|
5200
|
+
workspaceId: z165.string()
|
|
5190
5201
|
});
|
|
5191
5202
|
|
|
5192
5203
|
// src/export/export-jobs.ts
|
|
5193
|
-
import { z as
|
|
5194
|
-
var ExportJobDestinationType =
|
|
5204
|
+
import { z as z166 } from "zod";
|
|
5205
|
+
var ExportJobDestinationType = z166.enum([
|
|
5195
5206
|
"s3",
|
|
5196
5207
|
"webhookUrl",
|
|
5197
5208
|
"github",
|
|
@@ -5200,30 +5211,30 @@ var ExportJobDestinationType = z165.enum([
|
|
|
5200
5211
|
"gitlab",
|
|
5201
5212
|
"bitbucket"
|
|
5202
5213
|
]);
|
|
5203
|
-
var ExportJobStatus =
|
|
5204
|
-
var ExportJobLogEntryType =
|
|
5205
|
-
var ExportJobLogEntry =
|
|
5206
|
-
id:
|
|
5207
|
-
time:
|
|
5214
|
+
var ExportJobStatus = z166.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
5215
|
+
var ExportJobLogEntryType = z166.enum(["success", "info", "warning", "error", "user"]);
|
|
5216
|
+
var ExportJobLogEntry = z166.object({
|
|
5217
|
+
id: z166.string().optional(),
|
|
5218
|
+
time: z166.coerce.date(),
|
|
5208
5219
|
type: ExportJobLogEntryType,
|
|
5209
|
-
message:
|
|
5220
|
+
message: z166.string()
|
|
5210
5221
|
});
|
|
5211
|
-
var ExportJobPullRequestDestinationResult =
|
|
5212
|
-
pullRequestUrl:
|
|
5222
|
+
var ExportJobPullRequestDestinationResult = z166.object({
|
|
5223
|
+
pullRequestUrl: z166.string()
|
|
5213
5224
|
});
|
|
5214
|
-
var ExportJobS3DestinationResult =
|
|
5215
|
-
bucket:
|
|
5216
|
-
urlPrefix:
|
|
5217
|
-
path:
|
|
5218
|
-
files:
|
|
5219
|
-
url: nullishToOptional(
|
|
5220
|
-
urls: nullishToOptional(
|
|
5225
|
+
var ExportJobS3DestinationResult = z166.object({
|
|
5226
|
+
bucket: z166.string(),
|
|
5227
|
+
urlPrefix: z166.string().optional(),
|
|
5228
|
+
path: z166.string(),
|
|
5229
|
+
files: z166.array(z166.string()),
|
|
5230
|
+
url: nullishToOptional(z166.string()),
|
|
5231
|
+
urls: nullishToOptional(z166.string().array())
|
|
5221
5232
|
});
|
|
5222
|
-
var ExportJobDocsDestinationResult =
|
|
5223
|
-
url:
|
|
5233
|
+
var ExportJobDocsDestinationResult = z166.object({
|
|
5234
|
+
url: z166.string()
|
|
5224
5235
|
});
|
|
5225
|
-
var ExportJobResult =
|
|
5226
|
-
error:
|
|
5236
|
+
var ExportJobResult = z166.object({
|
|
5237
|
+
error: z166.string().optional(),
|
|
5227
5238
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
5228
5239
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
5229
5240
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -5232,22 +5243,22 @@ var ExportJobResult = z165.object({
|
|
|
5232
5243
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
5233
5244
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
5234
5245
|
});
|
|
5235
|
-
var ExportJob =
|
|
5236
|
-
id:
|
|
5237
|
-
createdAt:
|
|
5238
|
-
finishedAt:
|
|
5239
|
-
designSystemId:
|
|
5240
|
-
designSystemVersionId:
|
|
5241
|
-
workspaceId:
|
|
5242
|
-
scheduleId:
|
|
5243
|
-
exporterId:
|
|
5244
|
-
brandId:
|
|
5245
|
-
themeId:
|
|
5246
|
-
themePersistentIds:
|
|
5247
|
-
estimatedExecutionTime:
|
|
5246
|
+
var ExportJob = z166.object({
|
|
5247
|
+
id: z166.string(),
|
|
5248
|
+
createdAt: z166.coerce.date(),
|
|
5249
|
+
finishedAt: z166.coerce.date().optional(),
|
|
5250
|
+
designSystemId: z166.string(),
|
|
5251
|
+
designSystemVersionId: z166.string(),
|
|
5252
|
+
workspaceId: z166.string(),
|
|
5253
|
+
scheduleId: z166.string().nullish(),
|
|
5254
|
+
exporterId: z166.string(),
|
|
5255
|
+
brandId: z166.string().optional(),
|
|
5256
|
+
themeId: z166.string().optional(),
|
|
5257
|
+
themePersistentIds: z166.string().array().optional(),
|
|
5258
|
+
estimatedExecutionTime: z166.number().optional(),
|
|
5248
5259
|
status: ExportJobStatus,
|
|
5249
5260
|
result: ExportJobResult.optional(),
|
|
5250
|
-
createdByUserId:
|
|
5261
|
+
createdByUserId: z166.string().optional(),
|
|
5251
5262
|
// Destinations
|
|
5252
5263
|
...ExportDestinationsMap.shape
|
|
5253
5264
|
});
|
|
@@ -5261,46 +5272,46 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
5261
5272
|
themeId: true,
|
|
5262
5273
|
brandId: true
|
|
5263
5274
|
}).extend({
|
|
5264
|
-
destinations:
|
|
5275
|
+
destinations: z166.array(ExportJobDestinationType),
|
|
5265
5276
|
docsEnvironment: PublishedDocEnvironment
|
|
5266
5277
|
}).partial();
|
|
5267
5278
|
|
|
5268
5279
|
// src/export/exporter-workspace-membership-role.ts
|
|
5269
|
-
import { z as
|
|
5270
|
-
var ExporterWorkspaceMembershipRole =
|
|
5280
|
+
import { z as z167 } from "zod";
|
|
5281
|
+
var ExporterWorkspaceMembershipRole = z167.enum(["Owner", "OwnerArchived", "User"]);
|
|
5271
5282
|
|
|
5272
5283
|
// src/export/exporter-workspace-membership.ts
|
|
5273
|
-
import { z as
|
|
5274
|
-
var ExporterWorkspaceMembership =
|
|
5275
|
-
id:
|
|
5276
|
-
workspaceId:
|
|
5277
|
-
exporterId:
|
|
5284
|
+
import { z as z168 } from "zod";
|
|
5285
|
+
var ExporterWorkspaceMembership = z168.object({
|
|
5286
|
+
id: z168.string(),
|
|
5287
|
+
workspaceId: z168.string(),
|
|
5288
|
+
exporterId: z168.string(),
|
|
5278
5289
|
role: ExporterWorkspaceMembershipRole
|
|
5279
5290
|
});
|
|
5280
5291
|
|
|
5281
5292
|
// src/feature-flags/feature-flags.ts
|
|
5282
|
-
import { z as
|
|
5283
|
-
var FlaggedFeature =
|
|
5293
|
+
import { z as z169 } from "zod";
|
|
5294
|
+
var FlaggedFeature = z169.enum([
|
|
5284
5295
|
"FigmaImporterV2",
|
|
5285
5296
|
"ShadowOpacityOptional",
|
|
5286
5297
|
"DisableImporter",
|
|
5287
5298
|
"VariablesOrder",
|
|
5288
5299
|
"TypographyPropsKeepAliases"
|
|
5289
5300
|
]);
|
|
5290
|
-
var FeatureFlagMap =
|
|
5291
|
-
var FeatureFlag =
|
|
5292
|
-
id:
|
|
5301
|
+
var FeatureFlagMap = z169.record(FlaggedFeature, z169.boolean());
|
|
5302
|
+
var FeatureFlag = z169.object({
|
|
5303
|
+
id: z169.string(),
|
|
5293
5304
|
feature: FlaggedFeature,
|
|
5294
|
-
createdAt:
|
|
5295
|
-
enabled:
|
|
5296
|
-
designSystemId:
|
|
5305
|
+
createdAt: z169.coerce.date(),
|
|
5306
|
+
enabled: z169.boolean(),
|
|
5307
|
+
designSystemId: z169.string().optional()
|
|
5297
5308
|
});
|
|
5298
5309
|
|
|
5299
5310
|
// src/integrations/external-oauth-request.ts
|
|
5300
|
-
import { z as
|
|
5311
|
+
import { z as z171 } from "zod";
|
|
5301
5312
|
|
|
5302
5313
|
// src/integrations/oauth-providers.ts
|
|
5303
|
-
import { z as
|
|
5314
|
+
import { z as z170 } from "zod";
|
|
5304
5315
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5305
5316
|
OAuthProviderNames2["Figma"] = "figma";
|
|
5306
5317
|
OAuthProviderNames2["Azure"] = "azure";
|
|
@@ -5309,128 +5320,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5309
5320
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5310
5321
|
return OAuthProviderNames2;
|
|
5311
5322
|
})(OAuthProviderNames || {});
|
|
5312
|
-
var OAuthProviderSchema =
|
|
5323
|
+
var OAuthProviderSchema = z170.nativeEnum(OAuthProviderNames);
|
|
5313
5324
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5314
5325
|
|
|
5315
5326
|
// src/integrations/external-oauth-request.ts
|
|
5316
|
-
var ExternalOAuthRequest =
|
|
5317
|
-
id:
|
|
5327
|
+
var ExternalOAuthRequest = z171.object({
|
|
5328
|
+
id: z171.string(),
|
|
5318
5329
|
provider: OAuthProviderSchema,
|
|
5319
|
-
userId:
|
|
5320
|
-
state:
|
|
5321
|
-
createdAt:
|
|
5330
|
+
userId: z171.string(),
|
|
5331
|
+
state: z171.string(),
|
|
5332
|
+
createdAt: z171.coerce.date()
|
|
5322
5333
|
});
|
|
5323
5334
|
|
|
5324
5335
|
// src/integrations/git.ts
|
|
5325
|
-
import { z as
|
|
5326
|
-
var GitObjectsQuery =
|
|
5327
|
-
organization:
|
|
5336
|
+
import { z as z172 } from "zod";
|
|
5337
|
+
var GitObjectsQuery = z172.object({
|
|
5338
|
+
organization: z172.string().optional(),
|
|
5328
5339
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5329
|
-
project:
|
|
5340
|
+
project: z172.string().optional(),
|
|
5330
5341
|
// Only for Bitbucket and Azure
|
|
5331
|
-
repository:
|
|
5342
|
+
repository: z172.string().optional(),
|
|
5332
5343
|
// For all providers. For Gitlab, it's called "project".
|
|
5333
|
-
branch:
|
|
5344
|
+
branch: z172.string().optional(),
|
|
5334
5345
|
// For all providers.
|
|
5335
|
-
user:
|
|
5346
|
+
user: z172.string().optional()
|
|
5336
5347
|
// Gitlab user
|
|
5337
5348
|
});
|
|
5338
|
-
var GitOrganization =
|
|
5339
|
-
id:
|
|
5340
|
-
name:
|
|
5341
|
-
url:
|
|
5342
|
-
slug:
|
|
5349
|
+
var GitOrganization = z172.object({
|
|
5350
|
+
id: z172.string(),
|
|
5351
|
+
name: z172.string(),
|
|
5352
|
+
url: z172.string(),
|
|
5353
|
+
slug: z172.string()
|
|
5343
5354
|
});
|
|
5344
|
-
var GitProject =
|
|
5345
|
-
id:
|
|
5346
|
-
name:
|
|
5347
|
-
url:
|
|
5348
|
-
slug:
|
|
5355
|
+
var GitProject = z172.object({
|
|
5356
|
+
id: z172.string(),
|
|
5357
|
+
name: z172.string(),
|
|
5358
|
+
url: z172.string(),
|
|
5359
|
+
slug: z172.string()
|
|
5349
5360
|
});
|
|
5350
|
-
var GitRepository =
|
|
5351
|
-
id:
|
|
5352
|
-
name:
|
|
5353
|
-
url:
|
|
5354
|
-
slug:
|
|
5361
|
+
var GitRepository = z172.object({
|
|
5362
|
+
id: z172.string(),
|
|
5363
|
+
name: z172.string(),
|
|
5364
|
+
url: z172.string(),
|
|
5365
|
+
slug: z172.string(),
|
|
5355
5366
|
/**
|
|
5356
5367
|
* Can be undefined when:
|
|
5357
5368
|
* - there are no branches in the repository yet
|
|
5358
5369
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5359
5370
|
*/
|
|
5360
|
-
defaultBranch:
|
|
5371
|
+
defaultBranch: z172.string().optional()
|
|
5361
5372
|
});
|
|
5362
|
-
var GitBranch =
|
|
5363
|
-
name:
|
|
5364
|
-
lastCommitId:
|
|
5373
|
+
var GitBranch = z172.object({
|
|
5374
|
+
name: z172.string(),
|
|
5375
|
+
lastCommitId: z172.string()
|
|
5365
5376
|
});
|
|
5366
5377
|
|
|
5367
5378
|
// src/integrations/oauth-token.ts
|
|
5368
|
-
import { z as
|
|
5369
|
-
var IntegrationTokenSchemaOld =
|
|
5370
|
-
id:
|
|
5379
|
+
import { z as z173 } from "zod";
|
|
5380
|
+
var IntegrationTokenSchemaOld = z173.object({
|
|
5381
|
+
id: z173.string(),
|
|
5371
5382
|
provider: OAuthProviderSchema,
|
|
5372
|
-
scope:
|
|
5373
|
-
userId:
|
|
5374
|
-
accessToken:
|
|
5375
|
-
refreshToken:
|
|
5376
|
-
expiresAt:
|
|
5377
|
-
externalUserId:
|
|
5383
|
+
scope: z173.string(),
|
|
5384
|
+
userId: z173.string(),
|
|
5385
|
+
accessToken: z173.string(),
|
|
5386
|
+
refreshToken: z173.string(),
|
|
5387
|
+
expiresAt: z173.coerce.date(),
|
|
5388
|
+
externalUserId: z173.string().nullish()
|
|
5378
5389
|
});
|
|
5379
5390
|
|
|
5380
5391
|
// src/integrations/workspace-oauth-requests.ts
|
|
5381
|
-
import { z as
|
|
5382
|
-
var WorkspaceOAuthRequestSchema =
|
|
5383
|
-
id:
|
|
5384
|
-
workspaceId:
|
|
5392
|
+
import { z as z174 } from "zod";
|
|
5393
|
+
var WorkspaceOAuthRequestSchema = z174.object({
|
|
5394
|
+
id: z174.string(),
|
|
5395
|
+
workspaceId: z174.string(),
|
|
5385
5396
|
provider: OAuthProviderSchema,
|
|
5386
|
-
userId:
|
|
5387
|
-
createdAt:
|
|
5397
|
+
userId: z174.string(),
|
|
5398
|
+
createdAt: z174.coerce.date()
|
|
5388
5399
|
});
|
|
5389
5400
|
|
|
5390
5401
|
// src/npm/npm-package.ts
|
|
5391
|
-
import { z as
|
|
5392
|
-
var AnyRecord =
|
|
5402
|
+
import { z as z175 } from "zod";
|
|
5403
|
+
var AnyRecord = z175.record(z175.any());
|
|
5393
5404
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5394
|
-
|
|
5395
|
-
tarball:
|
|
5405
|
+
z175.object({
|
|
5406
|
+
tarball: z175.string()
|
|
5396
5407
|
})
|
|
5397
5408
|
);
|
|
5398
5409
|
var NpmPackageVersion = AnyRecord.and(
|
|
5399
|
-
|
|
5410
|
+
z175.object({
|
|
5400
5411
|
dist: NpmPackageVersionDist
|
|
5401
5412
|
})
|
|
5402
5413
|
);
|
|
5403
5414
|
var NpmPackage = AnyRecord.and(
|
|
5404
|
-
|
|
5405
|
-
_id:
|
|
5406
|
-
name:
|
|
5415
|
+
z175.object({
|
|
5416
|
+
_id: z175.string(),
|
|
5417
|
+
name: z175.string(),
|
|
5407
5418
|
// e.g. "latest": "1.2.3"
|
|
5408
|
-
"dist-tags":
|
|
5419
|
+
"dist-tags": z175.record(z175.string(), z175.string()),
|
|
5409
5420
|
// "1.2.3": {...}
|
|
5410
|
-
versions:
|
|
5421
|
+
versions: z175.record(NpmPackageVersion)
|
|
5411
5422
|
})
|
|
5412
5423
|
);
|
|
5413
5424
|
|
|
5414
5425
|
// src/npm/npm-proxy-token-payload.ts
|
|
5415
|
-
import { z as
|
|
5416
|
-
var NpmProxyTokenPayload =
|
|
5417
|
-
npmProxyRegistryConfigId:
|
|
5426
|
+
import { z as z176 } from "zod";
|
|
5427
|
+
var NpmProxyTokenPayload = z176.object({
|
|
5428
|
+
npmProxyRegistryConfigId: z176.string()
|
|
5418
5429
|
});
|
|
5419
5430
|
|
|
5420
5431
|
// src/tokens/personal-access-token.ts
|
|
5421
|
-
import { z as
|
|
5422
|
-
var PersonalAccessToken =
|
|
5423
|
-
id:
|
|
5424
|
-
userId:
|
|
5425
|
-
workspaceId:
|
|
5426
|
-
designSystemId:
|
|
5432
|
+
import { z as z177 } from "zod";
|
|
5433
|
+
var PersonalAccessToken = z177.object({
|
|
5434
|
+
id: z177.string(),
|
|
5435
|
+
userId: z177.string(),
|
|
5436
|
+
workspaceId: z177.string().optional(),
|
|
5437
|
+
designSystemId: z177.string().optional(),
|
|
5427
5438
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5428
|
-
name:
|
|
5429
|
-
hidden:
|
|
5430
|
-
token:
|
|
5431
|
-
scope:
|
|
5432
|
-
createdAt:
|
|
5433
|
-
expireAt:
|
|
5439
|
+
name: z177.string(),
|
|
5440
|
+
hidden: z177.boolean(),
|
|
5441
|
+
token: z177.string(),
|
|
5442
|
+
scope: z177.string().optional(),
|
|
5443
|
+
createdAt: z177.coerce.date(),
|
|
5444
|
+
expireAt: z177.coerce.date().optional()
|
|
5434
5445
|
});
|
|
5435
5446
|
export {
|
|
5436
5447
|
Address,
|
|
@@ -5938,6 +5949,7 @@ export {
|
|
|
5938
5949
|
PublishedDoc,
|
|
5939
5950
|
PublishedDocEnvironment,
|
|
5940
5951
|
PublishedDocPage,
|
|
5952
|
+
PublishedDocPageVisitsEntry,
|
|
5941
5953
|
PublishedDocRoutingVersion,
|
|
5942
5954
|
PublishedDocsChecksums,
|
|
5943
5955
|
PublishedDocsDump,
|