@supernova-studio/client 0.47.17 → 0.47.18

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.mjs CHANGED
@@ -143,10 +143,10 @@ import { z as z133 } from "zod";
143
143
  import { z as z134 } from "zod";
144
144
  import { z as z135 } from "zod";
145
145
  import { z as z136 } from "zod";
146
+ import { z as z139 } from "zod";
146
147
  import { z as z137 } from "zod";
147
- import { z as z140 } from "zod";
148
148
  import { z as z138 } from "zod";
149
- import { z as z139 } from "zod";
149
+ import { z as z140 } from "zod";
150
150
  import { z as z141 } from "zod";
151
151
  import { z as z143 } from "zod";
152
152
  import { z as z142 } from "zod";
@@ -2766,42 +2766,44 @@ var ExporterDestinationDocs = z133.object({
2766
2766
  });
2767
2767
  var ExporterDestinationS3 = z133.object({});
2768
2768
  var ExporterDestinationGithub = z133.object({
2769
+ credentialId: z133.string().optional(),
2770
+ // Repository
2769
2771
  url: z133.string(),
2772
+ // Location
2770
2773
  branch: z133.string(),
2771
- userId: z133.string(),
2772
- connectionId: z133.string(),
2773
- relativePath: z133.string()
2774
+ relativePath: nullishToOptional(z133.string())
2774
2775
  });
2775
2776
  var ExporterDestinationAzure = z133.object({
2776
- connectionId: z133.string(),
2777
+ credentialId: z133.string().optional(),
2778
+ // Repository
2777
2779
  organizationId: z133.string(),
2778
2780
  projectId: z133.string(),
2779
2781
  repositoryId: z133.string(),
2782
+ // Location
2780
2783
  branch: z133.string(),
2781
- relativePath: z133.string()
2782
- // // +
2783
- // userId: z.coerce.string(),
2784
- // url: z.string(),
2784
+ relativePath: nullishToOptional(z133.string()),
2785
+ // Maybe not needed
2786
+ url: nullishToOptional(z133.string())
2785
2787
  });
2786
2788
  var ExporterDestinationGitlab = z133.object({
2787
- connectionId: z133.string(),
2789
+ credentialId: z133.string().optional(),
2790
+ // Repository
2788
2791
  projectId: z133.string(),
2792
+ // Location
2789
2793
  branch: z133.string(),
2790
- relativePath: z133.string()
2791
- // // +
2792
- // userId: z.coerce.string(),
2793
- // url: z.string(),
2794
+ relativePath: nullishToOptional(z133.string()),
2795
+ // Maybe not needed
2796
+ url: nullishToOptional(z133.string())
2794
2797
  });
2795
2798
  var ExporterDestinationBitbucket = z133.object({
2796
- connectionId: z133.string(),
2799
+ credentialId: z133.string().optional(),
2800
+ // Repository
2797
2801
  workspaceSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2798
2802
  projectKey: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2799
2803
  repoSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
2804
+ // Location
2800
2805
  branch: z133.string(),
2801
- relativePath: z133.string()
2802
- // // +
2803
- // userId: z.string(),
2804
- // url: z.string(),
2806
+ relativePath: nullishToOptional(z133.string())
2805
2807
  });
2806
2808
  var ExportDestinationsMap = z133.object({
2807
2809
  webhookUrl: z133.string().optional(),
@@ -2812,7 +2814,15 @@ var ExportDestinationsMap = z133.object({
2812
2814
  destinationGitlab: ExporterDestinationGitlab.optional(),
2813
2815
  destinationBitbucket: ExporterDestinationBitbucket.optional()
2814
2816
  });
2815
- var ExportJobDestinationType = z134.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
2817
+ var ExportJobDestinationType = z134.enum([
2818
+ "s3",
2819
+ "webhookUrl",
2820
+ "github",
2821
+ "documentation",
2822
+ "azure",
2823
+ "gitlab",
2824
+ "bitbucket"
2825
+ ]);
2816
2826
  var ExportJobStatus = z134.enum(["InProgress", "Success", "Failed", "Timeout"]);
2817
2827
  var ExportJobLogEntryType = z134.enum(["success", "info", "warning", "error", "user"]);
2818
2828
  var ExportJobLogEntry = z134.object({
@@ -2873,25 +2883,11 @@ var ExportJobFindByFilter = ExportJob.pick({
2873
2883
  destinations: z134.array(ExportJobDestinationType),
2874
2884
  docsEnvironment: PublishedDocEnvironment
2875
2885
  }).partial();
2876
- var ExporterScheduleEventType = z135.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
2877
- var ExporterSchedule = z135.object({
2878
- id: z135.string(),
2879
- name: z135.string(),
2880
- eventType: ExporterScheduleEventType,
2881
- isEnabled: z135.boolean(),
2882
- workspaceId: z135.string(),
2883
- designSystemId: z135.string(),
2884
- exporterId: z135.string(),
2885
- brandId: z135.string().optional(),
2886
- themeId: z135.string().optional(),
2887
- // Destinations
2888
- ...ExportDestinationsMap.shape
2889
- });
2890
- var ExporterWorkspaceMembershipRole = z136.enum(["Owner", "OwnerArchived", "User"]);
2891
- var ExporterWorkspaceMembership = z137.object({
2892
- id: z137.string(),
2893
- workspaceId: z137.string(),
2894
- exporterId: z137.string(),
2886
+ var ExporterWorkspaceMembershipRole = z135.enum(["Owner", "OwnerArchived", "User"]);
2887
+ var ExporterWorkspaceMembership = z136.object({
2888
+ id: z136.string(),
2889
+ workspaceId: z136.string(),
2890
+ exporterId: z136.string(),
2895
2891
  role: ExporterWorkspaceMembershipRole
2896
2892
  });
2897
2893
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
@@ -2901,8 +2897,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
2901
2897
  GitProviderNames2["Bitbucket"] = "bitbucket";
2902
2898
  return GitProviderNames2;
2903
2899
  })(GitProviderNames || {});
2904
- var GitProvider = z138.nativeEnum(GitProviderNames);
2905
- var PulsarPropertyType = z139.enum([
2900
+ var GitProvider = z137.nativeEnum(GitProviderNames);
2901
+ var PulsarPropertyType = z138.enum([
2906
2902
  "string",
2907
2903
  "number",
2908
2904
  "boolean",
@@ -2915,72 +2911,89 @@ var PulsarPropertyType = z139.enum([
2915
2911
  "tokenProperties",
2916
2912
  "tokenType"
2917
2913
  ]);
2918
- var PulsarBaseProperty = z139.object({
2919
- label: z139.string(),
2920
- key: z139.string(),
2921
- description: z139.string().nullish(),
2914
+ var PulsarBaseProperty = z138.object({
2915
+ label: z138.string(),
2916
+ key: z138.string(),
2917
+ description: z138.string().nullish(),
2922
2918
  type: PulsarPropertyType,
2923
- values: z139.array(z139.string()).nullish(),
2924
- default: z139.union([z139.string(), z139.boolean(), z139.number()]).nullish(),
2919
+ values: z138.array(z138.string()).nullish(),
2920
+ default: z138.union([z138.string(), z138.boolean(), z138.number()]).nullish(),
2925
2921
  // PulsarPropertyValueType //is optional?
2926
- inputType: z139.enum(["code", "plain"]).optional(),
2922
+ inputType: z138.enum(["code", "plain"]).optional(),
2927
2923
  //is optional?
2928
- isMultiline: z139.boolean().nullish()
2924
+ isMultiline: z138.boolean().nullish()
2929
2925
  });
2930
2926
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
2931
- category: z139.string()
2932
- });
2933
- var PulsarContributionVariant = z139.object({
2934
- key: z139.string(),
2935
- name: z139.string(),
2936
- isDefault: nullishToOptional(z139.boolean()),
2937
- description: nullishToOptional(z139.string()),
2938
- thumbnailURL: nullishToOptional(z139.string())
2939
- });
2940
- var PulsarCustomBlock = z139.object({
2941
- title: nullishToOptional(z139.string()),
2942
- key: z139.string(),
2943
- category: nullishToOptional(z139.string()),
2944
- description: nullishToOptional(z139.string()),
2927
+ category: z138.string()
2928
+ });
2929
+ var PulsarContributionVariant = z138.object({
2930
+ key: z138.string(),
2931
+ name: z138.string(),
2932
+ isDefault: nullishToOptional(z138.boolean()),
2933
+ description: nullishToOptional(z138.string()),
2934
+ thumbnailURL: nullishToOptional(z138.string())
2935
+ });
2936
+ var PulsarCustomBlock = z138.object({
2937
+ title: nullishToOptional(z138.string()),
2938
+ key: z138.string(),
2939
+ category: nullishToOptional(z138.string()),
2940
+ description: nullishToOptional(z138.string()),
2941
+ iconURL: nullishToOptional(z138.string()),
2942
+ mode: nullishToOptional(z138.enum(["array", "block"])),
2943
+ properties: nullishToOptional(z138.array(PulsarBaseProperty)).transform((v) => v ?? [])
2944
+ });
2945
+ var ExporterType = z139.enum(["code", "documentation"]);
2946
+ var ExporterSource = z139.enum(["git", "upload"]);
2947
+ var ExporterTag = z139.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2948
+ var ExporterPulsarDetails = z139.object({
2949
+ description: z139.string(),
2950
+ version: z139.string(),
2951
+ routingVersion: nullishToOptional(z139.string()),
2952
+ author: nullishToOptional(z139.string()),
2953
+ organization: nullishToOptional(z139.string()),
2954
+ homepage: nullishToOptional(z139.string()),
2955
+ readme: nullishToOptional(z139.string()),
2956
+ tags: nullishToOptional(z139.array(ExporterTag)).default([]),
2957
+ packageId: nullishToOptional(z139.string().max(255)),
2945
2958
  iconURL: nullishToOptional(z139.string()),
2946
- mode: nullishToOptional(z139.enum(["array", "block"])),
2947
- properties: nullishToOptional(z139.array(PulsarBaseProperty)).transform((v) => v ?? [])
2948
- });
2949
- var ExporterType = z140.enum(["code", "documentation"]);
2950
- var ExporterSource = z140.enum(["git", "upload"]);
2951
- var ExporterTag = z140.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
2952
- var ExporterPulsarDetails = z140.object({
2953
- description: z140.string(),
2954
- version: z140.string(),
2955
- routingVersion: nullishToOptional(z140.string()),
2956
- author: nullishToOptional(z140.string()),
2957
- organization: nullishToOptional(z140.string()),
2958
- homepage: nullishToOptional(z140.string()),
2959
- readme: nullishToOptional(z140.string()),
2960
- tags: nullishToOptional(z140.array(ExporterTag)).default([]),
2961
- packageId: nullishToOptional(z140.string().max(255)),
2962
- iconURL: nullishToOptional(z140.string()),
2963
- configurationProperties: nullishToOptional(z140.array(PulsarContributionConfigurationProperty)).default([]),
2964
- customBlocks: nullishToOptional(z140.array(PulsarCustomBlock)).default([]),
2965
- blockVariants: nullishToOptional(z140.record(z140.string(), z140.array(PulsarContributionVariant))).default({}),
2966
- usesBrands: nullishToOptional(z140.boolean()).default(false),
2967
- usesThemes: nullishToOptional(z140.boolean()).default(false)
2959
+ configurationProperties: nullishToOptional(z139.array(PulsarContributionConfigurationProperty)).default([]),
2960
+ customBlocks: nullishToOptional(z139.array(PulsarCustomBlock)).default([]),
2961
+ blockVariants: nullishToOptional(z139.record(z139.string(), z139.array(PulsarContributionVariant))).default({}),
2962
+ usesBrands: nullishToOptional(z139.boolean()).default(false),
2963
+ usesThemes: nullishToOptional(z139.boolean()).default(false)
2968
2964
  });
2969
2965
  var ExporterDetails = ExporterPulsarDetails.extend({
2970
2966
  source: ExporterSource,
2971
2967
  gitProvider: nullishToOptional(GitProvider),
2972
- gitUrl: nullishToOptional(z140.string()),
2973
- gitBranch: nullishToOptional(z140.string()),
2974
- gitDirectory: nullishToOptional(z140.string())
2968
+ gitUrl: nullishToOptional(z139.string()),
2969
+ gitBranch: nullishToOptional(z139.string()),
2970
+ gitDirectory: nullishToOptional(z139.string())
2975
2971
  });
2976
- var Exporter = z140.object({
2977
- id: z140.string(),
2978
- createdAt: z140.coerce.date(),
2979
- name: z140.string(),
2980
- isPrivate: z140.boolean(),
2972
+ var Exporter = z139.object({
2973
+ id: z139.string(),
2974
+ createdAt: z139.coerce.date(),
2975
+ name: z139.string(),
2976
+ isPrivate: z139.boolean(),
2981
2977
  details: ExporterDetails,
2982
2978
  exporterType: nullishToOptional(ExporterType).default("code"),
2983
- storagePath: nullishToOptional(z140.string()).default("")
2979
+ storagePath: nullishToOptional(z139.string()).default("")
2980
+ });
2981
+ var PipelineEventType = z140.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
2982
+ var PipelineDestinationGitType = z140.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
2983
+ var PipelineDestinationExtraType = z140.enum(["WebhookUrl", "S3", "Documentation"]);
2984
+ var PipelineDestinationType = z140.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
2985
+ var Pipeline = z140.object({
2986
+ id: z140.string(),
2987
+ name: z140.string(),
2988
+ eventType: PipelineEventType,
2989
+ isEnabled: z140.boolean(),
2990
+ workspaceId: z140.string(),
2991
+ designSystemId: z140.string(),
2992
+ exporterId: z140.string(),
2993
+ brandPersistentId: z140.string().optional(),
2994
+ themePersistentId: z140.string().optional(),
2995
+ // Destinations
2996
+ ...ExportDestinationsMap.shape
2984
2997
  });
2985
2998
  var FlaggedFeature = z141.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
2986
2999
  var FeatureFlagMap = z141.record(FlaggedFeature, z141.boolean());
@@ -3008,6 +3021,18 @@ var ExternalOAuthRequest = z143.object({
3008
3021
  state: z143.string(),
3009
3022
  createdAt: z143.coerce.date()
3010
3023
  });
3024
+ var GitObjectsQuery = z144.object({
3025
+ organization: z144.string().optional(),
3026
+ // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
3027
+ project: z144.string().optional(),
3028
+ // Only for Bitbucket and Azure
3029
+ repository: z144.string().optional(),
3030
+ // For all providers. For Gitlab, it's called "project".
3031
+ branch: z144.string().optional(),
3032
+ // For all providers.
3033
+ user: z144.string().optional()
3034
+ // Gitlab user
3035
+ });
3011
3036
  var GitOrganization = z144.object({
3012
3037
  id: z144.string(),
3013
3038
  name: z144.string(),
@@ -3110,8 +3135,18 @@ var IntegrationToken = z145.object({
3110
3135
  tokenName: data.token_name,
3111
3136
  tokenBitbucketUsername: data.token_bitbucket_username,
3112
3137
  tokenAzureOrganizationName: data.token_azure_organization_name,
3113
- customUrl: data.custom_url
3138
+ customUrl: data.custom_url ? formatCustomUrl(data.custom_url) : void 0
3114
3139
  };
3140
+ function formatCustomUrl(url) {
3141
+ let formattedUrl = url.trim();
3142
+ if (!formattedUrl.startsWith("http://") && !formattedUrl.startsWith("https://")) {
3143
+ formattedUrl = "http://" + formattedUrl;
3144
+ }
3145
+ if (formattedUrl.endsWith("/")) {
3146
+ formattedUrl = formattedUrl.slice(0, -1);
3147
+ }
3148
+ return formattedUrl;
3149
+ }
3115
3150
  });
3116
3151
  var IntegrationTokenSchemaOld = z146.object({
3117
3152
  id: z146.string(),
@@ -4282,6 +4317,28 @@ function documentationPageToDTOV1(page, pagePathMap) {
4282
4317
  };
4283
4318
  }
4284
4319
 
4320
+ // src/api/conversion/export/pipeline.ts
4321
+ function pipelineToDto(pipeline) {
4322
+ return {
4323
+ id: pipeline.id,
4324
+ name: pipeline.name,
4325
+ eventType: pipeline.eventType,
4326
+ isEnabled: pipeline.isEnabled,
4327
+ workspaceId: pipeline.workspaceId,
4328
+ designSystemId: pipeline.designSystemId,
4329
+ exporterId: pipeline.exporterId,
4330
+ brandPersistentId: pipeline.brandPersistentId,
4331
+ themePersistentId: pipeline.themePersistentId,
4332
+ destinationAzure: pipeline.destinationAzure,
4333
+ destinationBitbucket: pipeline.destinationBitbucket,
4334
+ destinationSnDocs: pipeline.destinationSnDocs,
4335
+ destinationGithub: pipeline.destinationGithub,
4336
+ destinationGitlab: pipeline.destinationGitlab,
4337
+ destinationS3: pipeline.destinationS3,
4338
+ webhookUrl: pipeline.webhookUrl
4339
+ };
4340
+ }
4341
+
4285
4342
  // src/api/conversion/integrations/git.ts
4286
4343
  function gitOrganizationToDto(org) {
4287
4344
  return {
@@ -4459,7 +4516,7 @@ var DTOExporterProperty = z159.any({});
4459
4516
  var DTOExporterPropertyListResponse = z159.object({ items: z159.array(DTOExporterProperty) });
4460
4517
 
4461
4518
  // src/api/dto/design-systems/version.ts
4462
- import { z as z167 } from "zod";
4519
+ import { z as z168 } from "zod";
4463
4520
 
4464
4521
  // src/api/payloads/design-systems/brand.ts
4465
4522
  import { z as z160 } from "zod";
@@ -4501,20 +4558,49 @@ var DTOGetBlockDefinitionsOutput = z162.object({
4501
4558
  definitions: z162.array(PageBlockDefinition)
4502
4559
  });
4503
4560
 
4504
- // src/api/payloads/liveblocks/auth.ts
4561
+ // src/api/payloads/export/pipeline.ts
4505
4562
  import { z as z163 } from "zod";
4506
- var DTOLiveblocksAuthRequest = z163.object({
4507
- room: z163.string().optional()
4563
+ var DTOPipelineCreateBody = z163.object({
4564
+ name: z163.string(),
4565
+ exporterId: z163.string(),
4566
+ designSystemId: z163.string(),
4567
+ isEnabled: z163.boolean(),
4568
+ eventType: PipelineEventType,
4569
+ brandPersistentId: z163.string().optional(),
4570
+ themePersistentId: z163.string().optional(),
4571
+ destination: PipelineDestinationType,
4572
+ gitQuery: GitObjectsQuery,
4573
+ destinations: z163.object({
4574
+ s3: ExporterDestinationS3.nullish(),
4575
+ azure: ExporterDestinationAzure.nullish(),
4576
+ bitbucket: ExporterDestinationBitbucket.nullish(),
4577
+ github: ExporterDestinationGithub.nullish(),
4578
+ gitlab: ExporterDestinationGitlab.nullish(),
4579
+ documentation: ExporterDestinationDocs.nullish(),
4580
+ webhookUrl: z163.string().nullish()
4581
+ })
4582
+ });
4583
+ var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
4584
+ id: z163.string()
4585
+ });
4586
+ var DTOPipelineTriggerBody = z163.object({
4587
+ designSystemVersionId: z163.string()
4508
4588
  });
4509
4589
 
4510
- // src/api/payloads/users/notifications/notification-settings.ts
4590
+ // src/api/payloads/liveblocks/auth.ts
4511
4591
  import { z as z164 } from "zod";
4512
- var DTOUpdateUserNotificationSettingsPayload = z164.object({
4592
+ var DTOLiveblocksAuthRequest = z164.object({
4593
+ room: z164.string().optional()
4594
+ });
4595
+
4596
+ // src/api/payloads/users/notifications/notification-settings.ts
4597
+ import { z as z165 } from "zod";
4598
+ var DTOUpdateUserNotificationSettingsPayload = z165.object({
4513
4599
  notificationSettings: UserNotificationSettings
4514
4600
  });
4515
- var DTOUserNotificationSettingsResponse = z164.object({
4516
- userId: z164.string(),
4517
- workspaceId: z164.string(),
4601
+ var DTOUserNotificationSettingsResponse = z165.object({
4602
+ userId: z165.string(),
4603
+ workspaceId: z165.string(),
4518
4604
  notificationSettings: UserNotificationSettings
4519
4605
  });
4520
4606
 
@@ -4522,7 +4608,7 @@ var DTOUserNotificationSettingsResponse = z164.object({
4522
4608
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
4523
4609
 
4524
4610
  // src/api/payloads/workspaces/workspace-configuration.ts
4525
- import { z as z165 } from "zod";
4611
+ import { z as z166 } from "zod";
4526
4612
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4527
4613
  function validateSsoPayload(ssoPayload) {
4528
4614
  const keys = [];
@@ -4545,21 +4631,21 @@ function validateSsoPayload(ssoPayload) {
4545
4631
  keys
4546
4632
  };
4547
4633
  }
4548
- var NpmRegistryInput = z165.object({
4549
- enabledScopes: z165.array(z165.string()),
4550
- customRegistryUrl: z165.string().optional(),
4551
- bypassProxy: z165.boolean().optional(),
4552
- npmProxyRegistryConfigId: z165.string().optional(),
4553
- npmProxyVersion: z165.number().optional(),
4554
- registryType: z165.string(),
4555
- authType: z165.string(),
4556
- authHeaderName: z165.string(),
4557
- authHeaderValue: z165.string(),
4558
- accessToken: z165.string(),
4559
- username: z165.string(),
4560
- password: z165.string()
4561
- });
4562
- var WorkspaceConfigurationPayload = z165.object({
4634
+ var NpmRegistryInput = z166.object({
4635
+ enabledScopes: z166.array(z166.string()),
4636
+ customRegistryUrl: z166.string().optional(),
4637
+ bypassProxy: z166.boolean().optional(),
4638
+ npmProxyRegistryConfigId: z166.string().optional(),
4639
+ npmProxyVersion: z166.number().optional(),
4640
+ registryType: z166.string(),
4641
+ authType: z166.string(),
4642
+ authHeaderName: z166.string(),
4643
+ authHeaderValue: z166.string(),
4644
+ accessToken: z166.string(),
4645
+ username: z166.string(),
4646
+ password: z166.string()
4647
+ });
4648
+ var WorkspaceConfigurationPayload = z166.object({
4563
4649
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
4564
4650
  sso: SsoProvider.partial().optional(),
4565
4651
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -4567,130 +4653,130 @@ var WorkspaceConfigurationPayload = z165.object({
4567
4653
  });
4568
4654
 
4569
4655
  // src/api/payloads/workspaces/workspace-integrations.ts
4570
- import { z as z166 } from "zod";
4571
- var DTOWorkspaceIntegrationOauthInput = z166.object({
4656
+ import { z as z167 } from "zod";
4657
+ var DTOWorkspaceIntegrationOauthInput = z167.object({
4572
4658
  type: IntegrationType
4573
4659
  });
4574
- var DTOWorkspaceIntegrationPATInput = z166.object({
4575
- userId: z166.string(),
4660
+ var DTOWorkspaceIntegrationPATInput = z167.object({
4661
+ userId: z167.string(),
4576
4662
  type: IntegrationType,
4577
4663
  token: IntegrationToken
4578
4664
  });
4579
- var DTOWorkspaceIntegrationGetGitObjectsInput = z166.object({
4580
- organization: z166.string().optional(),
4581
- // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4582
- project: z166.string().optional(),
4665
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z167.object({
4666
+ organization: z167.string().optional(),
4667
+ // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
4668
+ project: z167.string().optional(),
4583
4669
  // Only for Bitbucket and Azure
4584
- repository: z166.string().optional(),
4670
+ repository: z167.string().optional(),
4585
4671
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
4586
- branch: z166.string().optional(),
4587
- // For all providers.
4588
- user: z166.string().optional()
4589
- // Only for Gitlab
4672
+ branch: z167.string().optional(),
4673
+ // For all providers, useful for PR creations.
4674
+ user: z167.string().optional()
4675
+ // Only for Gitlab User Repositories
4590
4676
  });
4591
4677
 
4592
4678
  // src/api/dto/design-systems/version.ts
4593
- var DTODesignSystemVersion = z167.object({
4594
- id: z167.string(),
4595
- createdAt: z167.date(),
4679
+ var DTODesignSystemVersion = z168.object({
4680
+ id: z168.string(),
4681
+ createdAt: z168.date(),
4596
4682
  meta: ObjectMeta,
4597
- version: z167.string(),
4598
- isReadonly: z167.boolean(),
4599
- changeLog: z167.string(),
4600
- designSystemId: z167.string()
4683
+ version: z168.string(),
4684
+ isReadonly: z168.boolean(),
4685
+ changeLog: z168.string(),
4686
+ designSystemId: z168.string()
4601
4687
  });
4602
- var DTODesignSystemVersionsListResponse = z167.object({
4603
- designSystemVersions: z167.array(DTODesignSystemVersion)
4688
+ var DTODesignSystemVersionsListResponse = z168.object({
4689
+ designSystemVersions: z168.array(DTODesignSystemVersion)
4604
4690
  });
4605
- var DTODesignSystemVersionGetResponse = z167.object({
4691
+ var DTODesignSystemVersionGetResponse = z168.object({
4606
4692
  designSystemVersion: DTODesignSystemVersion
4607
4693
  });
4608
- var DTODesignSystemVersionCreationResponse = z167.object({
4694
+ var DTODesignSystemVersionCreationResponse = z168.object({
4609
4695
  meta: ObjectMeta,
4610
- version: z167.string(),
4611
- changeLog: z167.string(),
4612
- isReadOnly: z167.boolean(),
4613
- designSystemId: z167.string(),
4614
- jobId: z167.string()
4615
- });
4616
- var VersionSQSPayload = z167.object({
4617
- jobId: z167.string(),
4618
- designSystemId: z167.string(),
4696
+ version: z168.string(),
4697
+ changeLog: z168.string(),
4698
+ isReadOnly: z168.boolean(),
4699
+ designSystemId: z168.string(),
4700
+ jobId: z168.string()
4701
+ });
4702
+ var VersionSQSPayload = z168.object({
4703
+ jobId: z168.string(),
4704
+ designSystemId: z168.string(),
4619
4705
  input: DTOCreateVersionInput
4620
4706
  });
4621
- var DTODesignSystemVersionJobsResponse = z167.object({
4622
- jobs: z167.array(VersionCreationJob)
4707
+ var DTODesignSystemVersionJobsResponse = z168.object({
4708
+ jobs: z168.array(VersionCreationJob)
4623
4709
  });
4624
- var DTODesignSystemVersionJobStatusResponse = z167.object({
4710
+ var DTODesignSystemVersionJobStatusResponse = z168.object({
4625
4711
  job: VersionCreationJob
4626
4712
  });
4627
4713
 
4628
4714
  // src/api/dto/design-systems/view.ts
4629
- import { z as z168 } from "zod";
4630
- var DTOElementViewColumnSharedAttributes = z168.object({
4631
- id: z168.string(),
4632
- persistentId: z168.string(),
4633
- width: z168.number()
4715
+ import { z as z169 } from "zod";
4716
+ var DTOElementViewColumnSharedAttributes = z169.object({
4717
+ id: z169.string(),
4718
+ persistentId: z169.string(),
4719
+ width: z169.number()
4634
4720
  });
4635
4721
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
4636
- type: z168.literal("BaseProperty"),
4722
+ type: z169.literal("BaseProperty"),
4637
4723
  basePropertyType: ElementViewBaseColumnType
4638
4724
  });
4639
4725
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
4640
- type: z168.literal("PropertyDefinition"),
4641
- propertyDefinitionId: z168.string()
4726
+ type: z169.literal("PropertyDefinition"),
4727
+ propertyDefinitionId: z169.string()
4642
4728
  });
4643
4729
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
4644
- type: z168.literal("Theme"),
4645
- themeId: z168.string()
4730
+ type: z169.literal("Theme"),
4731
+ themeId: z169.string()
4646
4732
  });
4647
- var DTOElementViewColumn = z168.discriminatedUnion("type", [
4733
+ var DTOElementViewColumn = z169.discriminatedUnion("type", [
4648
4734
  DTOElementViewBasePropertyColumn,
4649
4735
  DTOElementViewPropertyDefinitionColumn,
4650
4736
  DTOElementViewThemeColumn
4651
4737
  ]);
4652
- var DTOElementView = z168.object({
4738
+ var DTOElementView = z169.object({
4653
4739
  meta: ObjectMeta,
4654
- persistentId: z168.string(),
4740
+ persistentId: z169.string(),
4655
4741
  targetElementType: ElementPropertyTargetType,
4656
- id: z168.string(),
4657
- isDefault: z168.boolean(),
4658
- columns: z168.array(DTOElementViewColumn)
4742
+ id: z169.string(),
4743
+ isDefault: z169.boolean(),
4744
+ columns: z169.array(DTOElementViewColumn)
4659
4745
  });
4660
- var DTOElementViewsListResponse = z168.object({
4661
- elementDataViews: z168.array(DTOElementView)
4746
+ var DTOElementViewsListResponse = z169.object({
4747
+ elementDataViews: z169.array(DTOElementView)
4662
4748
  });
4663
4749
 
4664
4750
  // src/api/dto/documentation/anchor.ts
4665
- import { z as z169 } from "zod";
4751
+ import { z as z170 } from "zod";
4666
4752
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
4667
- var DTOGetDocumentationPageAnchorsResponse = z169.object({
4668
- anchors: z169.array(DTODocumentationPageAnchor)
4753
+ var DTOGetDocumentationPageAnchorsResponse = z170.object({
4754
+ anchors: z170.array(DTODocumentationPageAnchor)
4669
4755
  });
4670
4756
 
4671
4757
  // src/api/dto/documentation/link-preview.ts
4672
- import { z as z170 } from "zod";
4673
- var DTODocumentationLinkPreviewResponse = z170.object({
4758
+ import { z as z171 } from "zod";
4759
+ var DTODocumentationLinkPreviewResponse = z171.object({
4674
4760
  linkPreview: DocumentationLinkPreview
4675
4761
  });
4676
- var DTODocumentationLinkPreviewRequest = z170.object({
4677
- url: z170.string().optional(),
4678
- documentationItemPersistentId: z170.string().optional()
4762
+ var DTODocumentationLinkPreviewRequest = z171.object({
4763
+ url: z171.string().optional(),
4764
+ documentationItemPersistentId: z171.string().optional()
4679
4765
  });
4680
4766
 
4681
4767
  // src/api/dto/elements/documentation/group-action.ts
4682
- import { z as z173 } from "zod";
4768
+ import { z as z174 } from "zod";
4683
4769
 
4684
4770
  // src/api/dto/elements/documentation/group-v2.ts
4685
- import { z as z172 } from "zod";
4771
+ import { z as z173 } from "zod";
4686
4772
 
4687
4773
  // src/api/dto/elements/documentation/item-configuration-v2.ts
4688
- import { z as z171 } from "zod";
4774
+ import { z as z172 } from "zod";
4689
4775
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4690
- var DTODocumentationItemConfigurationV2 = z171.object({
4691
- showSidebar: z171.boolean(),
4692
- isPrivate: z171.boolean(),
4693
- isHidden: z171.boolean(),
4776
+ var DTODocumentationItemConfigurationV2 = z172.object({
4777
+ showSidebar: z172.boolean(),
4778
+ isPrivate: z172.boolean(),
4779
+ isHidden: z172.boolean(),
4694
4780
  header: DTODocumentationItemHeaderV2
4695
4781
  });
4696
4782
 
@@ -4704,136 +4790,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
4704
4790
  data: true,
4705
4791
  shortPersistentId: true
4706
4792
  }).extend({
4707
- title: z172.string(),
4708
- isRoot: z172.boolean(),
4709
- childrenIds: z172.array(z172.string()),
4793
+ title: z173.string(),
4794
+ isRoot: z173.boolean(),
4795
+ childrenIds: z173.array(z173.string()),
4710
4796
  groupBehavior: DocumentationGroupBehavior,
4711
- shortPersistentId: z172.string(),
4797
+ shortPersistentId: z173.string(),
4712
4798
  configuration: DTODocumentationItemConfigurationV2,
4713
- type: z172.literal("Group")
4799
+ type: z173.literal("Group")
4714
4800
  });
4715
4801
  var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
4716
- var DTOCreateDocumentationGroupInput = z172.object({
4802
+ var DTOCreateDocumentationGroupInput = z173.object({
4717
4803
  // Identifier
4718
- persistentId: z172.string().uuid(),
4804
+ persistentId: z173.string().uuid(),
4719
4805
  // Group properties
4720
- title: z172.string(),
4806
+ title: z173.string(),
4721
4807
  configuration: DTODocumentationItemConfigurationV2.optional(),
4722
4808
  // Group placement properties
4723
- afterPersistentId: z172.string().uuid().nullish(),
4724
- parentPersistentId: z172.string().uuid()
4809
+ afterPersistentId: z173.string().uuid().nullish(),
4810
+ parentPersistentId: z173.string().uuid()
4725
4811
  });
4726
- var DTOUpdateDocumentationGroupInput = z172.object({
4812
+ var DTOUpdateDocumentationGroupInput = z173.object({
4727
4813
  // Identifier of the group to update
4728
- id: z172.string(),
4814
+ id: z173.string(),
4729
4815
  // Group properties
4730
- title: z172.string().optional(),
4816
+ title: z173.string().optional(),
4731
4817
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4732
4818
  });
4733
- var DTOMoveDocumentationGroupInput = z172.object({
4819
+ var DTOMoveDocumentationGroupInput = z173.object({
4734
4820
  // Identifier of the group to update
4735
- id: z172.string(),
4821
+ id: z173.string(),
4736
4822
  // Group placement properties
4737
- parentPersistentId: z172.string().uuid(),
4738
- afterPersistentId: z172.string().uuid().nullish()
4823
+ parentPersistentId: z173.string().uuid(),
4824
+ afterPersistentId: z173.string().uuid().nullish()
4739
4825
  });
4740
- var DTODuplicateDocumentationGroupInput = z172.object({
4826
+ var DTODuplicateDocumentationGroupInput = z173.object({
4741
4827
  // Identifier of the group to duplicate from
4742
- id: z172.string(),
4828
+ id: z173.string(),
4743
4829
  // New group persistent id
4744
- persistentId: z172.string().uuid(),
4830
+ persistentId: z173.string().uuid(),
4745
4831
  // Group placement properties
4746
- afterPersistentId: z172.string().uuid().nullish(),
4747
- parentPersistentId: z172.string().uuid()
4832
+ afterPersistentId: z173.string().uuid().nullish(),
4833
+ parentPersistentId: z173.string().uuid()
4748
4834
  });
4749
- var DTOCreateDocumentationTabInput = z172.object({
4835
+ var DTOCreateDocumentationTabInput = z173.object({
4750
4836
  // New group persistent id
4751
- persistentId: z172.string().uuid(),
4837
+ persistentId: z173.string().uuid(),
4752
4838
  // If this is page, we will attempt to convert it to tab
4753
4839
  // If this is tab group, we will add a new tab to it
4754
- fromItemPersistentId: z172.string(),
4755
- tabName: z172.string()
4840
+ fromItemPersistentId: z173.string(),
4841
+ tabName: z173.string()
4756
4842
  });
4757
- var DTODeleteDocumentationTabGroupInput = z172.object({
4843
+ var DTODeleteDocumentationTabGroupInput = z173.object({
4758
4844
  // Deleted group id
4759
- id: z172.string()
4845
+ id: z173.string()
4760
4846
  });
4761
- var DTODeleteDocumentationGroupInput = z172.object({
4847
+ var DTODeleteDocumentationGroupInput = z173.object({
4762
4848
  // Identifier
4763
- id: z172.string(),
4849
+ id: z173.string(),
4764
4850
  // Deletion options
4765
- deleteSubtree: z172.boolean().default(false)
4851
+ deleteSubtree: z173.boolean().default(false)
4766
4852
  });
4767
4853
 
4768
4854
  // src/api/dto/elements/documentation/group-action.ts
4769
- var SuccessPayload = z173.object({
4770
- success: z173.literal(true)
4855
+ var SuccessPayload = z174.object({
4856
+ success: z174.literal(true)
4771
4857
  });
4772
- var DTODocumentationGroupCreateActionOutputV2 = z173.object({
4773
- type: z173.literal("DocumentationGroupCreate"),
4858
+ var DTODocumentationGroupCreateActionOutputV2 = z174.object({
4859
+ type: z174.literal("DocumentationGroupCreate"),
4774
4860
  output: SuccessPayload
4775
4861
  });
4776
- var DTODocumentationTabCreateActionOutputV2 = z173.object({
4777
- type: z173.literal("DocumentationTabCreate"),
4862
+ var DTODocumentationTabCreateActionOutputV2 = z174.object({
4863
+ type: z174.literal("DocumentationTabCreate"),
4778
4864
  output: SuccessPayload
4779
4865
  });
4780
- var DTODocumentationGroupUpdateActionOutputV2 = z173.object({
4781
- type: z173.literal("DocumentationGroupUpdate"),
4866
+ var DTODocumentationGroupUpdateActionOutputV2 = z174.object({
4867
+ type: z174.literal("DocumentationGroupUpdate"),
4782
4868
  output: SuccessPayload
4783
4869
  });
4784
- var DTODocumentationGroupMoveActionOutputV2 = z173.object({
4785
- type: z173.literal("DocumentationGroupMove"),
4870
+ var DTODocumentationGroupMoveActionOutputV2 = z174.object({
4871
+ type: z174.literal("DocumentationGroupMove"),
4786
4872
  output: SuccessPayload
4787
4873
  });
4788
- var DTODocumentationGroupDuplicateActionOutputV2 = z173.object({
4789
- type: z173.literal("DocumentationGroupDuplicate"),
4874
+ var DTODocumentationGroupDuplicateActionOutputV2 = z174.object({
4875
+ type: z174.literal("DocumentationGroupDuplicate"),
4790
4876
  output: SuccessPayload
4791
4877
  });
4792
- var DTODocumentationGroupDeleteActionOutputV2 = z173.object({
4793
- type: z173.literal("DocumentationGroupDelete"),
4878
+ var DTODocumentationGroupDeleteActionOutputV2 = z174.object({
4879
+ type: z174.literal("DocumentationGroupDelete"),
4794
4880
  output: SuccessPayload
4795
4881
  });
4796
- var DTODocumentationTabGroupDeleteActionOutputV2 = z173.object({
4797
- type: z173.literal("DocumentationTabGroupDelete"),
4882
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z174.object({
4883
+ type: z174.literal("DocumentationTabGroupDelete"),
4798
4884
  output: SuccessPayload
4799
4885
  });
4800
- var DTODocumentationGroupCreateActionInputV2 = z173.object({
4801
- type: z173.literal("DocumentationGroupCreate"),
4886
+ var DTODocumentationGroupCreateActionInputV2 = z174.object({
4887
+ type: z174.literal("DocumentationGroupCreate"),
4802
4888
  input: DTOCreateDocumentationGroupInput
4803
4889
  });
4804
- var DTODocumentationTabCreateActionInputV2 = z173.object({
4805
- type: z173.literal("DocumentationTabCreate"),
4890
+ var DTODocumentationTabCreateActionInputV2 = z174.object({
4891
+ type: z174.literal("DocumentationTabCreate"),
4806
4892
  input: DTOCreateDocumentationTabInput
4807
4893
  });
4808
- var DTODocumentationGroupUpdateActionInputV2 = z173.object({
4809
- type: z173.literal("DocumentationGroupUpdate"),
4894
+ var DTODocumentationGroupUpdateActionInputV2 = z174.object({
4895
+ type: z174.literal("DocumentationGroupUpdate"),
4810
4896
  input: DTOUpdateDocumentationGroupInput
4811
4897
  });
4812
- var DTODocumentationGroupMoveActionInputV2 = z173.object({
4813
- type: z173.literal("DocumentationGroupMove"),
4898
+ var DTODocumentationGroupMoveActionInputV2 = z174.object({
4899
+ type: z174.literal("DocumentationGroupMove"),
4814
4900
  input: DTOMoveDocumentationGroupInput
4815
4901
  });
4816
- var DTODocumentationGroupDuplicateActionInputV2 = z173.object({
4817
- type: z173.literal("DocumentationGroupDuplicate"),
4902
+ var DTODocumentationGroupDuplicateActionInputV2 = z174.object({
4903
+ type: z174.literal("DocumentationGroupDuplicate"),
4818
4904
  input: DTODuplicateDocumentationGroupInput
4819
4905
  });
4820
- var DTODocumentationGroupDeleteActionInputV2 = z173.object({
4821
- type: z173.literal("DocumentationGroupDelete"),
4906
+ var DTODocumentationGroupDeleteActionInputV2 = z174.object({
4907
+ type: z174.literal("DocumentationGroupDelete"),
4822
4908
  input: DTODeleteDocumentationGroupInput
4823
4909
  });
4824
- var DTODocumentationTabGroupDeleteActionInputV2 = z173.object({
4825
- type: z173.literal("DocumentationTabGroupDelete"),
4910
+ var DTODocumentationTabGroupDeleteActionInputV2 = z174.object({
4911
+ type: z174.literal("DocumentationTabGroupDelete"),
4826
4912
  input: DTODeleteDocumentationTabGroupInput
4827
4913
  });
4828
4914
 
4829
4915
  // src/api/dto/elements/documentation/group-v1.ts
4830
- import { z as z175 } from "zod";
4916
+ import { z as z176 } from "zod";
4831
4917
 
4832
4918
  // src/api/dto/elements/documentation/item-configuration-v1.ts
4833
- import { z as z174 } from "zod";
4834
- var DocumentationColorV1 = z174.object({
4835
- aliasTo: z174.string().optional(),
4836
- value: z174.string().optional()
4919
+ import { z as z175 } from "zod";
4920
+ var DocumentationColorV1 = z175.object({
4921
+ aliasTo: z175.string().optional(),
4922
+ value: z175.string().optional()
4837
4923
  });
4838
4924
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4839
4925
  foregroundColor: true,
@@ -4842,10 +4928,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4842
4928
  foregroundColor: DocumentationColorV1.optional(),
4843
4929
  backgroundColor: DocumentationColorV1.optional()
4844
4930
  });
4845
- var DTODocumentationItemConfigurationV1 = z174.object({
4846
- showSidebar: z174.boolean(),
4847
- isPrivate: z174.boolean(),
4848
- isHidden: z174.boolean(),
4931
+ var DTODocumentationItemConfigurationV1 = z175.object({
4932
+ showSidebar: z175.boolean(),
4933
+ isPrivate: z175.boolean(),
4934
+ isHidden: z175.boolean(),
4849
4935
  header: DTODocumentationItemHeaderV1
4850
4936
  });
4851
4937
 
@@ -4859,130 +4945,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
4859
4945
  data: true,
4860
4946
  shortPersistentId: true
4861
4947
  }).extend({
4862
- title: z175.string(),
4863
- isRoot: z175.boolean(),
4864
- childrenIds: z175.array(z175.string()),
4948
+ title: z176.string(),
4949
+ isRoot: z176.boolean(),
4950
+ childrenIds: z176.array(z176.string()),
4865
4951
  groupBehavior: DocumentationGroupBehavior,
4866
- shortPersistentId: z175.string(),
4867
- type: z175.literal("Group")
4952
+ shortPersistentId: z176.string(),
4953
+ type: z176.literal("Group")
4868
4954
  });
4869
4955
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
4870
4956
  configuration: DTODocumentationItemConfigurationV1
4871
4957
  });
4872
4958
 
4873
4959
  // src/api/dto/elements/documentation/page-actions-v2.ts
4874
- import { z as z177 } from "zod";
4960
+ import { z as z178 } from "zod";
4875
4961
 
4876
4962
  // src/api/dto/elements/documentation/page-v2.ts
4877
- import { z as z176 } from "zod";
4963
+ import { z as z177 } from "zod";
4878
4964
  var DTODocumentationPageV2 = DocumentationPageV2.omit({
4879
4965
  data: true,
4880
4966
  meta: true,
4881
4967
  parentPersistentId: true,
4882
4968
  sortOrder: true
4883
4969
  }).extend({
4884
- title: z176.string(),
4885
- path: z176.string(),
4886
- type: z176.literal("Page"),
4970
+ title: z177.string(),
4971
+ path: z177.string(),
4972
+ type: z177.literal("Page"),
4887
4973
  configuration: DTODocumentationItemConfigurationV2
4888
4974
  });
4889
4975
  var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
4890
- var DTODocumentationHierarchyV2 = z176.object({
4891
- pages: z176.array(DTODocumentationPageStructureV2),
4892
- groups: z176.array(DTODocumentationGroupStructureV2)
4976
+ var DTODocumentationHierarchyV2 = z177.object({
4977
+ pages: z177.array(DTODocumentationPageStructureV2),
4978
+ groups: z177.array(DTODocumentationGroupStructureV2)
4893
4979
  });
4894
- var DTOCreateDocumentationPageInputV2 = z176.object({
4980
+ var DTOCreateDocumentationPageInputV2 = z177.object({
4895
4981
  // Identifier
4896
- persistentId: z176.string().uuid(),
4982
+ persistentId: z177.string().uuid(),
4897
4983
  // Page properties
4898
- title: z176.string(),
4984
+ title: z177.string(),
4899
4985
  configuration: DTODocumentationItemConfigurationV2.optional(),
4900
4986
  // Page placement properties
4901
- parentPersistentId: z176.string().uuid(),
4902
- afterPersistentId: z176.string().uuid().nullish()
4987
+ parentPersistentId: z177.string().uuid(),
4988
+ afterPersistentId: z177.string().uuid().nullish()
4903
4989
  });
4904
- var DTOUpdateDocumentationPageInputV2 = z176.object({
4990
+ var DTOUpdateDocumentationPageInputV2 = z177.object({
4905
4991
  // Identifier of the group to update
4906
- id: z176.string(),
4992
+ id: z177.string(),
4907
4993
  // Page properties
4908
- title: z176.string().optional(),
4994
+ title: z177.string().optional(),
4909
4995
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4910
4996
  });
4911
- var DTOMoveDocumentationPageInputV2 = z176.object({
4997
+ var DTOMoveDocumentationPageInputV2 = z177.object({
4912
4998
  // Identifier of the group to update
4913
- id: z176.string(),
4999
+ id: z177.string(),
4914
5000
  // Page placement properties
4915
- parentPersistentId: z176.string().uuid(),
4916
- afterPersistentId: z176.string().uuid().nullish()
5001
+ parentPersistentId: z177.string().uuid(),
5002
+ afterPersistentId: z177.string().uuid().nullish()
4917
5003
  });
4918
- var DTODuplicateDocumentationPageInputV2 = z176.object({
5004
+ var DTODuplicateDocumentationPageInputV2 = z177.object({
4919
5005
  // Identifier of the page to duplicate from
4920
- id: z176.string(),
5006
+ id: z177.string(),
4921
5007
  // New page persistent id
4922
- persistentId: z176.string().uuid(),
5008
+ persistentId: z177.string().uuid(),
4923
5009
  // Page placement properties
4924
- parentPersistentId: z176.string().uuid(),
4925
- afterPersistentId: z176.string().uuid().nullish()
5010
+ parentPersistentId: z177.string().uuid(),
5011
+ afterPersistentId: z177.string().uuid().nullish()
4926
5012
  });
4927
- var DTODeleteDocumentationPageInputV2 = z176.object({
5013
+ var DTODeleteDocumentationPageInputV2 = z177.object({
4928
5014
  // Identifier
4929
- id: z176.string()
5015
+ id: z177.string()
4930
5016
  });
4931
5017
 
4932
5018
  // src/api/dto/elements/documentation/page-actions-v2.ts
4933
- var SuccessPayload2 = z177.object({
4934
- success: z177.literal(true)
5019
+ var SuccessPayload2 = z178.object({
5020
+ success: z178.literal(true)
4935
5021
  });
4936
- var DTODocumentationPageCreateActionOutputV2 = z177.object({
4937
- type: z177.literal("DocumentationPageCreate"),
5022
+ var DTODocumentationPageCreateActionOutputV2 = z178.object({
5023
+ type: z178.literal("DocumentationPageCreate"),
4938
5024
  output: SuccessPayload2
4939
5025
  });
4940
- var DTODocumentationPageUpdateActionOutputV2 = z177.object({
4941
- type: z177.literal("DocumentationPageUpdate"),
5026
+ var DTODocumentationPageUpdateActionOutputV2 = z178.object({
5027
+ type: z178.literal("DocumentationPageUpdate"),
4942
5028
  output: SuccessPayload2
4943
5029
  });
4944
- var DTODocumentationPageMoveActionOutputV2 = z177.object({
4945
- type: z177.literal("DocumentationPageMove"),
5030
+ var DTODocumentationPageMoveActionOutputV2 = z178.object({
5031
+ type: z178.literal("DocumentationPageMove"),
4946
5032
  output: SuccessPayload2
4947
5033
  });
4948
- var DTODocumentationPageDuplicateActionOutputV2 = z177.object({
4949
- type: z177.literal("DocumentationPageDuplicate"),
5034
+ var DTODocumentationPageDuplicateActionOutputV2 = z178.object({
5035
+ type: z178.literal("DocumentationPageDuplicate"),
4950
5036
  output: SuccessPayload2
4951
5037
  });
4952
- var DTODocumentationPageDeleteActionOutputV2 = z177.object({
4953
- type: z177.literal("DocumentationPageDelete"),
5038
+ var DTODocumentationPageDeleteActionOutputV2 = z178.object({
5039
+ type: z178.literal("DocumentationPageDelete"),
4954
5040
  output: SuccessPayload2
4955
5041
  });
4956
- var DTODocumentationPageCreateActionInputV2 = z177.object({
4957
- type: z177.literal("DocumentationPageCreate"),
5042
+ var DTODocumentationPageCreateActionInputV2 = z178.object({
5043
+ type: z178.literal("DocumentationPageCreate"),
4958
5044
  input: DTOCreateDocumentationPageInputV2
4959
5045
  });
4960
- var DTODocumentationPageUpdateActionInputV2 = z177.object({
4961
- type: z177.literal("DocumentationPageUpdate"),
5046
+ var DTODocumentationPageUpdateActionInputV2 = z178.object({
5047
+ type: z178.literal("DocumentationPageUpdate"),
4962
5048
  input: DTOUpdateDocumentationPageInputV2
4963
5049
  });
4964
- var DTODocumentationPageMoveActionInputV2 = z177.object({
4965
- type: z177.literal("DocumentationPageMove"),
5050
+ var DTODocumentationPageMoveActionInputV2 = z178.object({
5051
+ type: z178.literal("DocumentationPageMove"),
4966
5052
  input: DTOMoveDocumentationPageInputV2
4967
5053
  });
4968
- var DTODocumentationPageDuplicateActionInputV2 = z177.object({
4969
- type: z177.literal("DocumentationPageDuplicate"),
5054
+ var DTODocumentationPageDuplicateActionInputV2 = z178.object({
5055
+ type: z178.literal("DocumentationPageDuplicate"),
4970
5056
  input: DTODuplicateDocumentationPageInputV2
4971
5057
  });
4972
- var DTODocumentationPageDeleteActionInputV2 = z177.object({
4973
- type: z177.literal("DocumentationPageDelete"),
5058
+ var DTODocumentationPageDeleteActionInputV2 = z178.object({
5059
+ type: z178.literal("DocumentationPageDelete"),
4974
5060
  input: DTODeleteDocumentationPageInputV2
4975
5061
  });
4976
5062
 
4977
5063
  // src/api/dto/elements/documentation/page-content.ts
4978
- import { z as z178 } from "zod";
5064
+ import { z as z179 } from "zod";
4979
5065
  var DTODocumentationPageContent = DocumentationPageContent;
4980
- var DTODocumentationPageContentGetResponse = z178.object({
5066
+ var DTODocumentationPageContentGetResponse = z179.object({
4981
5067
  pageContent: DTODocumentationPageContent
4982
5068
  });
4983
5069
 
4984
5070
  // src/api/dto/elements/documentation/page-v1.ts
4985
- import { z as z179 } from "zod";
5071
+ import { z as z180 } from "zod";
4986
5072
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
4987
5073
  data: true,
4988
5074
  meta: true,
@@ -4990,30 +5076,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
4990
5076
  sortOrder: true
4991
5077
  }).extend({
4992
5078
  configuration: DTODocumentationItemConfigurationV1,
4993
- blocks: z179.array(PageBlockV1),
4994
- title: z179.string(),
4995
- path: z179.string()
5079
+ blocks: z180.array(PageBlockV1),
5080
+ title: z180.string(),
5081
+ path: z180.string()
4996
5082
  });
4997
5083
 
4998
5084
  // src/api/dto/elements/figma-nodes/figma-node.ts
4999
- import { z as z180 } from "zod";
5000
- var DTOFigmaNodeOrigin = z180.object({
5001
- sourceId: z180.string(),
5002
- fileId: z180.string().optional(),
5003
- parentName: z180.string().optional()
5085
+ import { z as z181 } from "zod";
5086
+ var DTOFigmaNodeOrigin = z181.object({
5087
+ sourceId: z181.string(),
5088
+ fileId: z181.string().optional(),
5089
+ parentName: z181.string().optional()
5004
5090
  });
5005
- var DTOFigmaNodeData = z180.object({
5091
+ var DTOFigmaNodeData = z181.object({
5006
5092
  // Id of the node in the Figma file
5007
- figmaNodeId: z180.string(),
5093
+ figmaNodeId: z181.string(),
5008
5094
  // Validity
5009
- isValid: z180.boolean(),
5095
+ isValid: z181.boolean(),
5010
5096
  // Asset data
5011
- assetId: z180.string(),
5012
- assetUrl: z180.string(),
5097
+ assetId: z181.string(),
5098
+ assetUrl: z181.string(),
5013
5099
  // Asset metadata
5014
- assetScale: z180.number(),
5015
- assetWidth: z180.number().optional(),
5016
- assetHeight: z180.number().optional()
5100
+ assetScale: z181.number(),
5101
+ assetWidth: z181.number().optional(),
5102
+ assetHeight: z181.number().optional()
5017
5103
  });
5018
5104
  var DTOFigmaNode = FigmaFileStructure.omit({
5019
5105
  data: true,
@@ -5022,105 +5108,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
5022
5108
  data: DTOFigmaNodeData,
5023
5109
  origin: DTOFigmaNodeOrigin
5024
5110
  });
5025
- var DTOFigmaNodeRenderInput = z180.object({
5111
+ var DTOFigmaNodeRenderInput = z181.object({
5026
5112
  // Id of a design system's data source representing a linked Figma file
5027
- sourceId: z180.string(),
5113
+ sourceId: z181.string(),
5028
5114
  // Id of a node within the Figma file
5029
- figmaFileNodeId: z180.string()
5115
+ figmaFileNodeId: z181.string()
5030
5116
  });
5031
5117
 
5032
5118
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5033
- import { z as z181 } from "zod";
5034
- var DTOFigmaNodeRenderActionOutput = z181.object({
5035
- type: z181.literal("FigmaNodeRender"),
5036
- figmaNodes: z181.array(DTOFigmaNode)
5119
+ import { z as z182 } from "zod";
5120
+ var DTOFigmaNodeRenderActionOutput = z182.object({
5121
+ type: z182.literal("FigmaNodeRender"),
5122
+ figmaNodes: z182.array(DTOFigmaNode)
5037
5123
  });
5038
- var DTOFigmaNodeRenderActionInput = z181.object({
5039
- type: z181.literal("FigmaNodeRender"),
5124
+ var DTOFigmaNodeRenderActionInput = z182.object({
5125
+ type: z182.literal("FigmaNodeRender"),
5040
5126
  input: DTOFigmaNodeRenderInput.array()
5041
5127
  });
5042
5128
 
5043
5129
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5044
- import { z as z183 } from "zod";
5130
+ import { z as z184 } from "zod";
5045
5131
 
5046
5132
  // src/api/dto/elements/properties/property-definitions.ts
5047
- import { z as z182 } from "zod";
5133
+ import { z as z183 } from "zod";
5048
5134
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
5049
- var DTOElementPropertyDefinition = z182.object({
5050
- id: z182.string(),
5051
- designSystemVersionId: z182.string(),
5135
+ var DTOElementPropertyDefinition = z183.object({
5136
+ id: z183.string(),
5137
+ designSystemVersionId: z183.string(),
5052
5138
  meta: ObjectMeta,
5053
- persistentId: z182.string(),
5139
+ persistentId: z183.string(),
5054
5140
  type: ElementPropertyTypeSchema,
5055
5141
  targetElementType: ElementPropertyTargetType,
5056
- codeName: z182.string().regex(CODE_NAME_REGEX2),
5057
- options: z182.array(ElementPropertyDefinitionOption).optional(),
5142
+ codeName: z183.string().regex(CODE_NAME_REGEX2),
5143
+ options: z183.array(ElementPropertyDefinitionOption).optional(),
5058
5144
  linkElementType: ElementPropertyLinkType.optional()
5059
5145
  });
5060
- var DTOElementPropertyDefinitionsGetResponse = z182.object({
5061
- definitions: z182.array(DTOElementPropertyDefinition)
5146
+ var DTOElementPropertyDefinitionsGetResponse = z183.object({
5147
+ definitions: z183.array(DTOElementPropertyDefinition)
5062
5148
  });
5063
5149
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
5064
5150
  id: true,
5065
5151
  designSystemVersionId: true
5066
5152
  });
5067
- var DTOUpdateElementPropertyDefinitionInputV2 = z182.object({
5068
- id: z182.string(),
5069
- name: z182.string().optional(),
5070
- description: z182.string().optional(),
5071
- codeName: z182.string().regex(CODE_NAME_REGEX2).optional(),
5072
- options: z182.array(ElementPropertyDefinitionOption).optional()
5153
+ var DTOUpdateElementPropertyDefinitionInputV2 = z183.object({
5154
+ id: z183.string(),
5155
+ name: z183.string().optional(),
5156
+ description: z183.string().optional(),
5157
+ codeName: z183.string().regex(CODE_NAME_REGEX2).optional(),
5158
+ options: z183.array(ElementPropertyDefinitionOption).optional()
5073
5159
  });
5074
- var DTODeleteElementPropertyDefinitionInputV2 = z182.object({
5075
- id: z182.string()
5160
+ var DTODeleteElementPropertyDefinitionInputV2 = z183.object({
5161
+ id: z183.string()
5076
5162
  });
5077
5163
 
5078
5164
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5079
- var SuccessPayload3 = z183.object({
5080
- success: z183.literal(true)
5165
+ var SuccessPayload3 = z184.object({
5166
+ success: z184.literal(true)
5081
5167
  });
5082
- var DTOPropertyDefinitionCreateActionOutputV2 = z183.object({
5083
- type: z183.literal("PropertyDefinitionCreate"),
5168
+ var DTOPropertyDefinitionCreateActionOutputV2 = z184.object({
5169
+ type: z184.literal("PropertyDefinitionCreate"),
5084
5170
  definition: DTOElementPropertyDefinition
5085
5171
  });
5086
- var DTOPropertyDefinitionUpdateActionOutputV2 = z183.object({
5087
- type: z183.literal("PropertyDefinitionUpdate"),
5172
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z184.object({
5173
+ type: z184.literal("PropertyDefinitionUpdate"),
5088
5174
  definition: DTOElementPropertyDefinition
5089
5175
  });
5090
- var DTOPropertyDefinitionDeleteActionOutputV2 = z183.object({
5091
- type: z183.literal("PropertyDefinitionDelete"),
5176
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z184.object({
5177
+ type: z184.literal("PropertyDefinitionDelete"),
5092
5178
  output: SuccessPayload3
5093
5179
  });
5094
- var DTOPropertyDefinitionCreateActionInputV2 = z183.object({
5095
- type: z183.literal("PropertyDefinitionCreate"),
5180
+ var DTOPropertyDefinitionCreateActionInputV2 = z184.object({
5181
+ type: z184.literal("PropertyDefinitionCreate"),
5096
5182
  input: DTOCreateElementPropertyDefinitionInputV2
5097
5183
  });
5098
- var DTOPropertyDefinitionUpdateActionInputV2 = z183.object({
5099
- type: z183.literal("PropertyDefinitionUpdate"),
5184
+ var DTOPropertyDefinitionUpdateActionInputV2 = z184.object({
5185
+ type: z184.literal("PropertyDefinitionUpdate"),
5100
5186
  input: DTOUpdateElementPropertyDefinitionInputV2
5101
5187
  });
5102
- var DTOPropertyDefinitionDeleteActionInputV2 = z183.object({
5103
- type: z183.literal("PropertyDefinitionDelete"),
5188
+ var DTOPropertyDefinitionDeleteActionInputV2 = z184.object({
5189
+ type: z184.literal("PropertyDefinitionDelete"),
5104
5190
  input: DTODeleteElementPropertyDefinitionInputV2
5105
5191
  });
5106
5192
 
5107
5193
  // src/api/dto/elements/properties/property-values.ts
5108
- import { z as z184 } from "zod";
5109
- var DTOElementPropertyValue = z184.object({
5110
- id: z184.string(),
5111
- designSystemVersionId: z184.string(),
5112
- definitionId: z184.string(),
5113
- targetElementId: z184.string(),
5114
- value: z184.union([z184.string(), z184.number(), z184.boolean()]).optional(),
5115
- valuePreview: z184.string().optional()
5194
+ import { z as z185 } from "zod";
5195
+ var DTOElementPropertyValue = z185.object({
5196
+ id: z185.string(),
5197
+ designSystemVersionId: z185.string(),
5198
+ definitionId: z185.string(),
5199
+ targetElementId: z185.string(),
5200
+ value: z185.union([z185.string(), z185.number(), z185.boolean()]).optional(),
5201
+ valuePreview: z185.string().optional()
5116
5202
  });
5117
- var DTOElementPropertyValuesGetResponse = z184.object({
5118
- values: z184.array(DTOElementPropertyValue)
5203
+ var DTOElementPropertyValuesGetResponse = z185.object({
5204
+ values: z185.array(DTOElementPropertyValue)
5119
5205
  });
5120
5206
 
5121
5207
  // src/api/dto/elements/elements-action-v2.ts
5122
- import { z as z185 } from "zod";
5123
- var DTOElementActionOutput = z185.discriminatedUnion("type", [
5208
+ import { z as z186 } from "zod";
5209
+ var DTOElementActionOutput = z186.discriminatedUnion("type", [
5124
5210
  // Documentation pages
5125
5211
  DTODocumentationPageCreateActionOutputV2,
5126
5212
  DTODocumentationPageUpdateActionOutputV2,
@@ -5142,7 +5228,7 @@ var DTOElementActionOutput = z185.discriminatedUnion("type", [
5142
5228
  DTOPropertyDefinitionUpdateActionOutputV2,
5143
5229
  DTOPropertyDefinitionDeleteActionOutputV2
5144
5230
  ]);
5145
- var DTOElementActionInput = z185.discriminatedUnion("type", [
5231
+ var DTOElementActionInput = z186.discriminatedUnion("type", [
5146
5232
  // Documentation pages
5147
5233
  DTODocumentationPageCreateActionInputV2,
5148
5234
  DTODocumentationPageUpdateActionInputV2,
@@ -5166,189 +5252,207 @@ var DTOElementActionInput = z185.discriminatedUnion("type", [
5166
5252
  ]);
5167
5253
 
5168
5254
  // src/api/dto/elements/get-elements-v2.ts
5169
- import { z as z186 } from "zod";
5170
- var DTOElementsGetTypeFilter = z186.enum(["FigmaNode"]);
5171
- var DTOElementsGetQuerySchema = z186.object({
5172
- types: z186.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5255
+ import { z as z187 } from "zod";
5256
+ var DTOElementsGetTypeFilter = z187.enum(["FigmaNode"]);
5257
+ var DTOElementsGetQuerySchema = z187.object({
5258
+ types: z187.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5173
5259
  });
5174
- var DTOElementsGetOutput = z186.object({
5175
- figmaNodes: z186.array(DTOFigmaNode).optional()
5260
+ var DTOElementsGetOutput = z187.object({
5261
+ figmaNodes: z187.array(DTOFigmaNode).optional()
5176
5262
  });
5177
5263
 
5178
5264
  // src/api/dto/export/exporter.ts
5179
- import { z as z187 } from "zod";
5180
- var DTOExporterType = z187.enum(["documentation", "code"]);
5181
- var DTOExporterSource = z187.enum(["git", "upload"]);
5182
- var DTOExporterMembershipRole = z187.enum(["Owner", "OwnerArchived", "User"]);
5183
- var DTOExporter = z187.object({
5184
- id: z187.string(),
5185
- name: z187.string(),
5186
- isPrivate: z187.boolean(),
5265
+ import { z as z188 } from "zod";
5266
+ var DTOExporterType = z188.enum(["documentation", "code"]);
5267
+ var DTOExporterSource = z188.enum(["git", "upload"]);
5268
+ var DTOExporterMembershipRole = z188.enum(["Owner", "OwnerArchived", "User"]);
5269
+ var DTOExporter = z188.object({
5270
+ id: z188.string(),
5271
+ name: z188.string(),
5272
+ isPrivate: z188.boolean(),
5187
5273
  exporterType: DTOExporterType,
5188
- isDefaultDocumentationExporter: z187.boolean(),
5189
- iconURL: z187.string().optional(),
5274
+ isDefaultDocumentationExporter: z188.boolean(),
5275
+ iconURL: z188.string().optional(),
5190
5276
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5191
5277
  customBlocks: PulsarCustomBlock.array(),
5192
5278
  blockVariants: PulsarContributionVariant.array(),
5193
- usesBrands: z187.boolean(),
5194
- usesThemes: z187.boolean(),
5279
+ usesBrands: z188.boolean(),
5280
+ usesThemes: z188.boolean(),
5195
5281
  source: DTOExporterSource,
5196
- gitUrl: z187.string().optional(),
5197
- gitBranch: z187.string().optional(),
5198
- gitDirectory: z187.string().optional()
5282
+ gitUrl: z188.string().optional(),
5283
+ gitBranch: z188.string().optional(),
5284
+ gitDirectory: z188.string().optional()
5199
5285
  });
5200
- var DTOExporterMembership = z187.object({
5201
- workspaceId: z187.string(),
5202
- exporterId: z187.string(),
5286
+ var DTOExporterMembership = z188.object({
5287
+ workspaceId: z188.string(),
5288
+ exporterId: z188.string(),
5203
5289
  role: DTOExporterMembershipRole
5204
5290
  });
5205
- var DTOExporterCreateOutput = z187.object({
5291
+ var DTOExporterCreateOutput = z188.object({
5206
5292
  exporter: DTOExporter,
5207
5293
  membership: DTOExporterMembership
5208
5294
  });
5209
- var DTOExporterGitProviderEnum = z187.enum(["github", "gitlab", "bitbucket", "azure"]);
5210
- var DTOExporterCreateInput = z187.object({
5211
- url: z187.string(),
5295
+ var DTOExporterGitProviderEnum = z188.enum(["github", "gitlab", "bitbucket", "azure"]);
5296
+ var DTOExporterCreateInput = z188.object({
5297
+ url: z188.string(),
5212
5298
  provider: DTOExporterGitProviderEnum.optional()
5213
5299
  });
5214
5300
 
5215
5301
  // src/api/dto/export/job.ts
5216
- import { z as z188 } from "zod";
5217
- var DTOExportJobCreatedBy = z188.object({
5218
- userId: z188.string(),
5219
- userName: z188.string()
5302
+ import { z as z189 } from "zod";
5303
+ var DTOExportJobCreatedBy = z189.object({
5304
+ userId: z189.string(),
5305
+ userName: z189.string()
5220
5306
  });
5221
- var DTOExportJobDesignSystemPreview = z188.object({
5222
- id: z188.string(),
5307
+ var DTOExportJobDesignSystemPreview = z189.object({
5308
+ id: z189.string(),
5223
5309
  meta: ObjectMeta
5224
5310
  });
5225
- var DTOExportJobDesignSystemVersionPreview = z188.object({
5226
- id: z188.string(),
5311
+ var DTOExportJobDesignSystemVersionPreview = z189.object({
5312
+ id: z189.string(),
5227
5313
  meta: ObjectMeta,
5228
- version: z188.string(),
5229
- isReadonly: z188.boolean()
5314
+ version: z189.string(),
5315
+ isReadonly: z189.boolean()
5230
5316
  });
5231
- var DTOExportJobDestinations = z188.object({
5317
+ var DTOExportJobDestinations = z189.object({
5232
5318
  s3: ExporterDestinationS3.optional(),
5233
5319
  azure: ExporterDestinationAzure.optional(),
5234
5320
  bitbucket: ExporterDestinationBitbucket.optional(),
5235
5321
  github: ExporterDestinationGithub.optional(),
5236
5322
  gitlab: ExporterDestinationGitlab.optional(),
5237
5323
  documentation: ExporterDestinationDocs.optional(),
5238
- webhookUrl: z188.string().optional()
5324
+ webhookUrl: z189.string().optional()
5239
5325
  });
5240
- var DTOExportJob = z188.object({
5241
- id: z188.string(),
5242
- createdAt: z188.date(),
5243
- finishedAt: z188.date().optional(),
5244
- index: z188.number().optional(),
5326
+ var DTOExportJob = z189.object({
5327
+ id: z189.string(),
5328
+ createdAt: z189.date(),
5329
+ finishedAt: z189.date().optional(),
5330
+ index: z189.number().optional(),
5245
5331
  status: ExportJobStatus,
5246
- estimatedExecutionTime: z188.number().optional(),
5247
- createdBy: DTOExportJobCreatedBy,
5332
+ estimatedExecutionTime: z189.number().optional(),
5333
+ createdBy: DTOExportJobCreatedBy.optional(),
5248
5334
  designSystem: DTOExportJobDesignSystemPreview,
5249
5335
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5250
5336
  destinations: DTOExportJobDestinations,
5251
- exporterId: z188.string(),
5252
- scheduleId: z188.string(),
5337
+ exporterId: z189.string(),
5338
+ scheduleId: z189.string().optional(),
5253
5339
  result: ExportJobResult.optional()
5254
5340
  });
5341
+ var DTOExportJobResponse = z189.object({
5342
+ job: DTOExportJob
5343
+ });
5344
+
5345
+ // src/api/dto/export/pipeline.ts
5346
+ import { z as z190 } from "zod";
5347
+ var DTOPipeline = z190.object({
5348
+ id: z190.string(),
5349
+ name: z190.string(),
5350
+ eventType: PipelineEventType,
5351
+ isEnabled: z190.boolean(),
5352
+ workspaceId: z190.string(),
5353
+ designSystemId: z190.string(),
5354
+ exporterId: z190.string(),
5355
+ brandPersistentId: z190.string().optional(),
5356
+ themePersistentId: z190.string().optional(),
5357
+ ...ExportDestinationsMap.shape
5358
+ });
5255
5359
 
5256
5360
  // src/api/dto/liveblocks/auth-response.ts
5257
- import { z as z189 } from "zod";
5258
- var DTOLiveblocksAuthResponse = z189.object({
5259
- token: z189.string()
5361
+ import { z as z191 } from "zod";
5362
+ var DTOLiveblocksAuthResponse = z191.object({
5363
+ token: z191.string()
5260
5364
  });
5261
5365
 
5262
5366
  // src/api/dto/users/profile/update.ts
5263
- import { z as z190 } from "zod";
5264
- var DTOUserProfileUpdateResponse = z190.object({
5367
+ import { z as z192 } from "zod";
5368
+ var DTOUserProfileUpdateResponse = z192.object({
5265
5369
  user: User
5266
5370
  });
5267
5371
 
5268
5372
  // src/api/dto/workspaces/git.ts
5269
- import { z as z191 } from "zod";
5270
- var DTOGitOrganization = z191.object({
5271
- id: z191.string(),
5272
- name: z191.string(),
5273
- url: z191.string()
5274
- });
5275
- var DTOGitProject = z191.object({
5276
- id: z191.string(),
5277
- name: z191.string(),
5278
- url: z191.string()
5279
- });
5280
- var DTOGitRepository = z191.object({
5281
- id: z191.string(),
5282
- name: z191.string(),
5283
- url: z191.string(),
5284
- defaultBranch: z191.string()
5285
- });
5286
- var DTOGitBranch = z191.object({
5287
- name: z191.string(),
5288
- lastCommitId: z191.string()
5373
+ import { z as z193 } from "zod";
5374
+ var DTOGitOrganization = z193.object({
5375
+ id: z193.string(),
5376
+ name: z193.string(),
5377
+ url: z193.string()
5378
+ });
5379
+ var DTOGitProject = z193.object({
5380
+ id: z193.string(),
5381
+ name: z193.string(),
5382
+ url: z193.string()
5383
+ });
5384
+ var DTOGitRepository = z193.object({
5385
+ id: z193.string(),
5386
+ name: z193.string(),
5387
+ url: z193.string(),
5388
+ defaultBranch: z193.string()
5389
+ });
5390
+ var DTOGitBranch = z193.object({
5391
+ name: z193.string(),
5392
+ lastCommitId: z193.string()
5289
5393
  });
5290
5394
 
5291
5395
  // src/api/dto/workspaces/integrations.ts
5292
- import { z as z192 } from "zod";
5293
- var DTOIntegration = z192.object({
5294
- id: z192.string(),
5295
- workspaceId: z192.string(),
5396
+ import { z as z194 } from "zod";
5397
+ var DTOIntegration = z194.object({
5398
+ id: z194.string(),
5399
+ workspaceId: z194.string(),
5296
5400
  type: ExtendedIntegrationType,
5297
- createdAt: z192.coerce.date(),
5298
- integrationCredentials: z192.array(IntegrationCredentials).optional(),
5299
- integrationDesignSystems: z192.array(IntegrationDesignSystem).optional()
5401
+ createdAt: z194.coerce.date(),
5402
+ integrationCredentials: z194.array(IntegrationCredentials).optional(),
5403
+ integrationDesignSystems: z194.array(IntegrationDesignSystem).optional()
5300
5404
  });
5301
- var DTOIntegrationOAuthGetResponse = z192.object({
5302
- url: z192.string()
5405
+ var DTOIntegrationOAuthGetResponse = z194.object({
5406
+ url: z194.string()
5303
5407
  });
5304
- var DTOIntegrationPostResponse = z192.object({
5408
+ var DTOIntegrationPostResponse = z194.object({
5305
5409
  integration: DTOIntegration
5306
5410
  });
5307
- var DTOIntegrationsGetListResponse = z192.object({
5411
+ var DTOIntegrationsGetListResponse = z194.object({
5308
5412
  integrations: DTOIntegration.array()
5309
5413
  });
5310
5414
 
5311
5415
  // src/api/dto/workspaces/membership.ts
5312
- import { z as z195 } from "zod";
5416
+ import { z as z197 } from "zod";
5313
5417
 
5314
5418
  // src/api/dto/workspaces/workspace.ts
5315
- import { z as z194 } from "zod";
5419
+ import { z as z196 } from "zod";
5316
5420
 
5317
5421
  // src/api/dto/workspaces/npm-registry.ts
5318
- import { z as z193 } from "zod";
5422
+ import { z as z195 } from "zod";
5319
5423
  var DTONpmRegistryConfigConstants = {
5320
5424
  passwordPlaceholder: "redacted"
5321
5425
  };
5322
- var DTONpmRegistryConfig = z193.object({
5426
+ var DTONpmRegistryConfig = z195.object({
5323
5427
  // Registry basic configuration
5324
5428
  registryType: NpmRegistryType,
5325
- registryUrl: z193.string(),
5326
- customRegistryUrl: z193.string().optional(),
5429
+ registryUrl: z195.string(),
5430
+ customRegistryUrl: z195.string().optional(),
5327
5431
  // URL of Supernova NPM packages proxy
5328
- proxyUrl: z193.string(),
5432
+ proxyUrl: z195.string(),
5329
5433
  // Auth configuration
5330
5434
  authType: NpmRegistryAuthType,
5331
- accessToken: z193.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5332
- username: z193.string().optional(),
5333
- password: z193.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5435
+ accessToken: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5436
+ username: z195.string().optional(),
5437
+ password: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5334
5438
  // NPM package scopes for whih the proxy should be enabled
5335
- enabledScopes: z193.array(z193.string()),
5439
+ enabledScopes: z195.array(z195.string()),
5336
5440
  // True if client should bypass Supernova proxy and connect directly to the registry
5337
5441
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5338
- bypassProxy: z193.boolean()
5442
+ bypassProxy: z195.boolean()
5339
5443
  });
5340
5444
 
5341
5445
  // src/api/dto/workspaces/workspace.ts
5342
- var DTOWorkspace = z194.object({
5343
- id: z194.string(),
5446
+ var DTOWorkspace = z196.object({
5447
+ id: z196.string(),
5344
5448
  profile: WorkspaceProfile,
5345
5449
  subscription: Subscription,
5346
5450
  npmRegistry: DTONpmRegistryConfig.optional()
5347
5451
  });
5348
5452
 
5349
5453
  // src/api/dto/workspaces/membership.ts
5350
- var DTOWorkspaceRole = z195.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5351
- var DTOUserWorkspaceMembership = z195.object({
5454
+ var DTOWorkspaceRole = z197.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5455
+ var DTOUserWorkspaceMembership = z197.object({
5352
5456
  // Workspace the user is a member of
5353
5457
  workspace: DTOWorkspace,
5354
5458
  // Assigned role the user has in the workspace
@@ -5358,14 +5462,14 @@ var DTOUserWorkspaceMembership = z195.object({
5358
5462
  // when a workspace's subscription is downgraded to free tier
5359
5463
  effectiveRole: DTOWorkspaceRole
5360
5464
  });
5361
- var DTOUserWorkspaceMembershipsResponse = z195.object({
5362
- membership: z195.array(DTOUserWorkspaceMembership)
5465
+ var DTOUserWorkspaceMembershipsResponse = z197.object({
5466
+ membership: z197.array(DTOUserWorkspaceMembership)
5363
5467
  });
5364
5468
 
5365
5469
  // src/yjs/design-system-content/documentation-hierarchy.ts
5366
- import { z as z196 } from "zod";
5367
- var DocumentationHierarchySettings = z196.object({
5368
- routingVersion: z196.string()
5470
+ import { z as z198 } from "zod";
5471
+ var DocumentationHierarchySettings = z198.object({
5472
+ routingVersion: z198.string()
5369
5473
  });
5370
5474
  function documentationHierarchyToYjs(doc, transaction) {
5371
5475
  doc.transact((trx) => {
@@ -5436,13 +5540,13 @@ function getInternalSettingsYMap(doc) {
5436
5540
  }
5437
5541
 
5438
5542
  // src/yjs/design-system-content/item-configuration.ts
5439
- import { z as z197 } from "zod";
5440
- var DTODocumentationPageRoomHeaderData = z197.object({
5441
- title: z197.string(),
5543
+ import { z as z199 } from "zod";
5544
+ var DTODocumentationPageRoomHeaderData = z199.object({
5545
+ title: z199.string(),
5442
5546
  configuration: DTODocumentationItemConfigurationV2
5443
5547
  });
5444
- var DTODocumentationPageRoomHeaderDataUpdate = z197.object({
5445
- title: z197.string().optional(),
5548
+ var DTODocumentationPageRoomHeaderDataUpdate = z199.object({
5549
+ title: z199.string().optional(),
5446
5550
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
5447
5551
  });
5448
5552
  function itemConfigurationToYjs(yDoc, item) {
@@ -5493,7 +5597,7 @@ function yjsToItemConfiguration(yDoc) {
5493
5597
  header: rawHeader
5494
5598
  };
5495
5599
  return {
5496
- title: z197.string().parse(title),
5600
+ title: z199.string().parse(title),
5497
5601
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
5498
5602
  };
5499
5603
  }
@@ -5503,9 +5607,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
5503
5607
  var PageSectionEditorModel = PageSectionEditorModelV2;
5504
5608
 
5505
5609
  // src/yjs/docs-editor/model/page.ts
5506
- import { z as z198 } from "zod";
5507
- var DocumentationPageEditorModel = z198.object({
5508
- blocks: z198.array(PageBlockEditorModel.or(PageSectionEditorModel))
5610
+ import { z as z200 } from "zod";
5611
+ var DocumentationPageEditorModel = z200.object({
5612
+ blocks: z200.array(PageBlockEditorModel.or(PageSectionEditorModel))
5509
5613
  });
5510
5614
 
5511
5615
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -8477,7 +8581,7 @@ var blocks = [
8477
8581
 
8478
8582
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
8479
8583
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
8480
- import { z as z199 } from "zod";
8584
+ import { z as z201 } from "zod";
8481
8585
  function yDocToPage(yDoc, definitions) {
8482
8586
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
8483
8587
  }
@@ -8520,7 +8624,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
8520
8624
  return null;
8521
8625
  return {
8522
8626
  id,
8523
- title: getProsemirrorAttribute(prosemirrorNode, "title", z199.string()) ?? "",
8627
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z201.string()) ?? "",
8524
8628
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
8525
8629
  };
8526
8630
  }
@@ -8555,7 +8659,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
8555
8659
  });
8556
8660
  }
8557
8661
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
8558
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z199.string());
8662
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z201.string());
8559
8663
  if (!definitionId) {
8560
8664
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
8561
8665
  return [];
@@ -8597,7 +8701,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
8597
8701
  if (!id)
8598
8702
  return null;
8599
8703
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8600
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z199.string().optional()));
8704
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z201.string().optional()));
8601
8705
  return {
8602
8706
  // TODO Artem: indent
8603
8707
  id,
@@ -8724,10 +8828,10 @@ function parseRichTextAttribute(mark) {
8724
8828
  return null;
8725
8829
  }
8726
8830
  function parseProsemirrorLink(mark) {
8727
- const href = getProsemirrorAttribute(mark, "href", z199.string().optional());
8831
+ const href = getProsemirrorAttribute(mark, "href", z201.string().optional());
8728
8832
  if (!href)
8729
8833
  return null;
8730
- const target = getProsemirrorAttribute(mark, "target", z199.string().optional());
8834
+ const target = getProsemirrorAttribute(mark, "target", z201.string().optional());
8731
8835
  const openInNewTab = target === "_blank";
8732
8836
  if (href.startsWith("@")) {
8733
8837
  return {
@@ -8750,7 +8854,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
8750
8854
  if (!id)
8751
8855
  return null;
8752
8856
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
8753
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z199.boolean().optional()) !== false;
8857
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z201.boolean().optional()) !== false;
8754
8858
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
8755
8859
  if (!tableChild) {
8756
8860
  return emptyTable(id, variantId, 0);
@@ -8797,9 +8901,9 @@ function parseAsTableCell(prosemirrorNode) {
8797
8901
  const id = getProsemirrorBlockId(prosemirrorNode);
8798
8902
  if (!id)
8799
8903
  return null;
8800
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z199.string().optional());
8904
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z201.string().optional());
8801
8905
  let columnWidth;
8802
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z199.array(z199.number()).optional());
8906
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z201.array(z201.number()).optional());
8803
8907
  if (columnWidthArray) {
8804
8908
  columnWidth = columnWidthArray[0];
8805
8909
  }
@@ -8837,7 +8941,7 @@ function parseAsTableNode(prosemirrorNode) {
8837
8941
  value: parseRichText(prosemirrorNode.content ?? [])
8838
8942
  };
8839
8943
  case "image":
8840
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z199.string());
8944
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z201.string());
8841
8945
  if (!items)
8842
8946
  return null;
8843
8947
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -8942,7 +9046,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
8942
9046
  };
8943
9047
  }
8944
9048
  function parseBlockItems(prosemirrorNode, definition) {
8945
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z199.string());
9049
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z201.string());
8946
9050
  if (!itemsString)
8947
9051
  return null;
8948
9052
  const itemsJson = JSON.parse(itemsString);
@@ -8954,18 +9058,18 @@ function parseBlockItems(prosemirrorNode, definition) {
8954
9058
  }
8955
9059
  function parseAppearance(prosemirrorNode) {
8956
9060
  let appearance = {};
8957
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z199.string().optional());
9061
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z201.string().optional());
8958
9062
  if (rawAppearanceString) {
8959
9063
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
8960
9064
  if (parsedAppearance.success) {
8961
9065
  appearance = parsedAppearance.data;
8962
9066
  }
8963
9067
  }
8964
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z199.number().optional());
9068
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z201.number().optional());
8965
9069
  if (columns) {
8966
9070
  appearance.numberOfColumns = columns;
8967
9071
  }
8968
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z199.string().optional());
9072
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z201.string().optional());
8969
9073
  if (backgroundColor) {
8970
9074
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
8971
9075
  if (parsedColor.success) {
@@ -9056,13 +9160,13 @@ function valueSchemaForPropertyType(type) {
9056
9160
  }
9057
9161
  }
9058
9162
  function getProsemirrorBlockId(prosemirrorNode) {
9059
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z199.string());
9163
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z201.string());
9060
9164
  if (!id)
9061
9165
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
9062
9166
  return id;
9063
9167
  }
9064
9168
  function getProsemirrorBlockVariantId(prosemirrorNode) {
9065
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z199.string()));
9169
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z201.string()));
9066
9170
  }
9067
9171
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
9068
9172
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -9179,6 +9283,7 @@ export {
9179
9283
  DTOExportJobDesignSystemPreview,
9180
9284
  DTOExportJobDesignSystemVersionPreview,
9181
9285
  DTOExportJobDestinations,
9286
+ DTOExportJobResponse,
9182
9287
  DTOExporter,
9183
9288
  DTOExporterCreateInput,
9184
9289
  DTOExporterCreateOutput,
@@ -9211,6 +9316,10 @@ export {
9211
9316
  DTOMoveDocumentationPageInputV2,
9212
9317
  DTONpmRegistryConfig,
9213
9318
  DTONpmRegistryConfigConstants,
9319
+ DTOPipeline,
9320
+ DTOPipelineCreateBody,
9321
+ DTOPipelineTriggerBody,
9322
+ DTOPipelineUpdateBody,
9214
9323
  DTOPropertyDefinitionCreateActionInputV2,
9215
9324
  DTOPropertyDefinitionCreateActionOutputV2,
9216
9325
  DTOPropertyDefinitionDeleteActionInputV2,
@@ -9272,6 +9381,7 @@ export {
9272
9381
  itemConfigurationToYjs,
9273
9382
  pageToProsemirrorDoc,
9274
9383
  pageToYXmlFragment,
9384
+ pipelineToDto,
9275
9385
  pmSchema,
9276
9386
  prosemirrorDocToPage,
9277
9387
  prosemirrorNodeToSection,