@supernova-studio/client 1.72.2 → 1.73.1

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
@@ -3843,7 +3843,8 @@ var ThemeImportModel = z106.object({
3843
3843
  originSource: ThemeOriginSource,
3844
3844
  overrides: z106.array(ThemeOverrideImportModel),
3845
3845
  sortOrder: z106.number(),
3846
- collectionIds: z106.array(z106.string()).optional()
3846
+ collectionIds: z106.array(z106.string()).optional(),
3847
+ collectionLegacyIds: z106.array(z106.string()).optional()
3847
3848
  });
3848
3849
  var ThemeImportModelInput = z106.object({
3849
3850
  id: z106.string(),
@@ -3851,7 +3852,8 @@ var ThemeImportModelInput = z106.object({
3851
3852
  meta: ObjectMeta,
3852
3853
  originObjects: z106.array(ThemeOriginObject),
3853
3854
  overrides: z106.array(ThemeOverrideImportModelInput),
3854
- collectionIds: z106.array(z106.string()).optional()
3855
+ collectionIds: z106.array(z106.string()).optional(),
3856
+ collectionLegacyIds: z106.array(z106.string()).optional()
3855
3857
  });
3856
3858
  var ThemeUpdateImportModel = z106.object({
3857
3859
  themePersistentId: z106.string(),
@@ -3863,6 +3865,7 @@ var ThemeUpdateImportModelInput = z106.object({
3863
3865
  });
3864
3866
  var DesignTokenImportModelPart = z107.object({
3865
3867
  collectionId: z107.string().optional(),
3868
+ collectionLegacyId: z107.string().optional(),
3866
3869
  codeSyntax: z107.record(z107.coerce.string()).optional(),
3867
3870
  scopes: z107.array(z107.string()).optional()
3868
3871
  });
@@ -4176,6 +4179,13 @@ var FigmaExporterProcessedStylesSchema = z125.object({
4176
4179
  z125.literal("center"),
4177
4180
  z125.literal("baseline")
4178
4181
  ]).optional(),
4182
+ justifySelf: z125.union([
4183
+ z125.literal("auto"),
4184
+ z125.literal("stretch"),
4185
+ z125.literal("flex-start"),
4186
+ z125.literal("flex-end"),
4187
+ z125.literal("center")
4188
+ ]).optional(),
4179
4189
  flexGrow: z125.number().optional(),
4180
4190
  flexShrink: z125.number().optional(),
4181
4191
  flexBasis: z125.string().optional(),
@@ -7748,11 +7758,20 @@ var DTOUserDesignSystemsResponse = z255.object({
7748
7758
  workspaces: DTOWorkspace.array()
7749
7759
  });
7750
7760
 
7761
+ // src/api/dto/design-systems/version-room.ts
7762
+ import { z as z256 } from "zod";
7763
+ var DTODesignSystemVersionRoom = z256.object({
7764
+ id: z256.string()
7765
+ });
7766
+ var DTODesignSystemVersionRoomResponse = z256.object({
7767
+ room: DTODesignSystemVersionRoom
7768
+ });
7769
+
7751
7770
  // src/api/dto/design-systems/version.ts
7752
- import { z as z267 } from "zod";
7771
+ import { z as z268 } from "zod";
7753
7772
 
7754
7773
  // src/api/payloads/design-systems/update-design-system.ts
7755
- import { z as z256 } from "zod";
7774
+ import { z as z257 } from "zod";
7756
7775
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
7757
7776
  id: true,
7758
7777
  workspaceId: true,
@@ -7768,59 +7787,59 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
7768
7787
  */
7769
7788
  designSystemSwitcher: DesignSystemSwitcher.optional()
7770
7789
  });
7771
- var DTODesignSystemUpdateAccessModeInput = z256.object({
7790
+ var DTODesignSystemUpdateAccessModeInput = z257.object({
7772
7791
  accessMode: DesignSystemAccessMode,
7773
- retain: z256.object({
7774
- userIds: z256.string().array(),
7775
- inviteIds: z256.string().array()
7792
+ retain: z257.object({
7793
+ userIds: z257.string().array(),
7794
+ inviteIds: z257.string().array()
7776
7795
  }).optional()
7777
7796
  });
7778
- var DTODesignSystemUpdateSwitcherInput = z256.object({
7797
+ var DTODesignSystemUpdateSwitcherInput = z257.object({
7779
7798
  designSystemSwitcher: DesignSystemSwitcher
7780
7799
  });
7781
7800
 
7782
7801
  // src/api/payloads/design-systems/version.ts
7783
- import { z as z257 } from "zod";
7784
- var ObjectMeta2 = z257.object({
7785
- name: z257.string().max(150).optional(),
7786
- description: z257.string().max(2e3).optional()
7802
+ import { z as z258 } from "zod";
7803
+ var ObjectMeta2 = z258.object({
7804
+ name: z258.string().max(150).optional(),
7805
+ description: z258.string().max(2e3).optional()
7787
7806
  });
7788
7807
  function validateDesignSystemVersion(version) {
7789
7808
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
7790
7809
  return urlCompliantRegex.test(version);
7791
7810
  }
7792
- var DTOCreateVersionInput = z257.object({
7811
+ var DTOCreateVersionInput = z258.object({
7793
7812
  meta: ObjectMeta2,
7794
- version: z257.string().refine(validateDesignSystemVersion, {
7813
+ version: z258.string().refine(validateDesignSystemVersion, {
7795
7814
  message: "Invalid semantic versioning format"
7796
7815
  }),
7797
- changeLog: z257.string().optional()
7816
+ changeLog: z258.string().optional()
7798
7817
  });
7799
- var DTOUpdateVersionInput = z257.object({
7818
+ var DTOUpdateVersionInput = z258.object({
7800
7819
  meta: ObjectMeta2,
7801
- version: z257.string(),
7820
+ version: z258.string(),
7802
7821
  // required for PUT, but not editable
7803
- changeLog: z257.string()
7822
+ changeLog: z258.string()
7804
7823
  });
7805
7824
 
7806
7825
  // src/api/payloads/documentation/analytics.ts
7807
- import { z as z258 } from "zod";
7808
- var DTODocumentationAnalyticsTimeFrameComparison = z258.object({
7809
- referencePeriod: z258.object({
7810
- start: z258.coerce.date(),
7811
- end: z258.coerce.date().optional()
7826
+ import { z as z259 } from "zod";
7827
+ var DTODocumentationAnalyticsTimeFrameComparison = z259.object({
7828
+ referencePeriod: z259.object({
7829
+ start: z259.coerce.date(),
7830
+ end: z259.coerce.date().optional()
7812
7831
  }),
7813
- baselinePeriod: z258.object({
7814
- start: z258.coerce.date(),
7815
- end: z258.coerce.date().optional()
7832
+ baselinePeriod: z259.object({
7833
+ start: z259.coerce.date(),
7834
+ end: z259.coerce.date().optional()
7816
7835
  })
7817
7836
  });
7818
- var DTODocumentationAnalyticsDiffPayload = z258.object({
7819
- timeFrames: z258.array(DTODocumentationAnalyticsTimeFrameComparison)
7837
+ var DTODocumentationAnalyticsDiffPayload = z259.object({
7838
+ timeFrames: z259.array(DTODocumentationAnalyticsTimeFrameComparison)
7820
7839
  });
7821
7840
 
7822
7841
  // src/api/payloads/documentation/block-definitions.ts
7823
- import { z as z259 } from "zod";
7842
+ import { z as z260 } from "zod";
7824
7843
 
7825
7844
  // src/api/dto/documentation/block-definition.ts
7826
7845
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -7832,79 +7851,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
7832
7851
  var DTOPageBlockDefinition = PageBlockDefinition;
7833
7852
 
7834
7853
  // src/api/payloads/documentation/block-definitions.ts
7835
- var DTOGetBlockDefinitionsQuery = z259.object({
7854
+ var DTOGetBlockDefinitionsQuery = z260.object({
7836
7855
  files: zodQueryBoolean()
7837
7856
  });
7838
- var DTOGetBlockDefinitionsOutput = z259.object({
7839
- definitions: z259.array(DTOPageBlockDefinition)
7857
+ var DTOGetBlockDefinitionsOutput = z260.object({
7858
+ definitions: z260.array(DTOPageBlockDefinition)
7840
7859
  });
7841
7860
 
7842
7861
  // src/api/payloads/documentation/design-data-doc-diff.ts
7843
- import { z as z260 } from "zod";
7844
- var DTODocumentationPublishTypeQueryParams = z260.object({
7845
- environment: z260.enum(["Live", "Preview"])
7862
+ import { z as z261 } from "zod";
7863
+ var DTODocumentationPublishTypeQueryParams = z261.object({
7864
+ environment: z261.enum(["Live", "Preview"])
7846
7865
  });
7847
7866
 
7848
7867
  // src/api/payloads/export/pipeline.ts
7849
- import { z as z262 } from "zod";
7868
+ import { z as z263 } from "zod";
7850
7869
 
7851
7870
  // src/api/dto/export/exporter-property.ts
7852
- import { z as z261 } from "zod";
7853
- var PrimitiveValue2 = z261.number().or(z261.boolean()).or(z261.string());
7854
- var ArrayValue2 = z261.array(z261.string());
7855
- var ObjectValue2 = z261.record(z261.string());
7871
+ import { z as z262 } from "zod";
7872
+ var PrimitiveValue2 = z262.number().or(z262.boolean()).or(z262.string());
7873
+ var ArrayValue2 = z262.array(z262.string());
7874
+ var ObjectValue2 = z262.record(z262.string());
7856
7875
  var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
7857
- var DTOExporterPropertyType = z261.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
7858
- var PropertyDefinitionBase2 = z261.object({
7859
- key: z261.string(),
7860
- title: z261.string(),
7861
- description: z261.string(),
7862
- category: z261.string().optional(),
7863
- dependsOn: z261.record(z261.boolean()).optional()
7864
- });
7865
- var DTOExporterPropertyDefinitionEnumOption = z261.object({
7866
- label: z261.string(),
7867
- description: z261.string()
7876
+ var DTOExporterPropertyType = z262.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
7877
+ var PropertyDefinitionBase2 = z262.object({
7878
+ key: z262.string(),
7879
+ title: z262.string(),
7880
+ description: z262.string(),
7881
+ category: z262.string().optional(),
7882
+ dependsOn: z262.record(z262.boolean()).optional()
7883
+ });
7884
+ var DTOExporterPropertyDefinitionEnumOption = z262.object({
7885
+ label: z262.string(),
7886
+ description: z262.string()
7868
7887
  });
7869
7888
  var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
7870
- type: z261.literal(DTOExporterPropertyType.Enum.Enum),
7871
- options: z261.record(DTOExporterPropertyDefinitionEnumOption),
7872
- default: z261.string()
7889
+ type: z262.literal(DTOExporterPropertyType.Enum.Enum),
7890
+ options: z262.record(DTOExporterPropertyDefinitionEnumOption),
7891
+ default: z262.string()
7873
7892
  });
7874
7893
  var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
7875
- type: z261.literal(DTOExporterPropertyType.Enum.Boolean),
7876
- default: z261.boolean()
7894
+ type: z262.literal(DTOExporterPropertyType.Enum.Boolean),
7895
+ default: z262.boolean()
7877
7896
  });
7878
7897
  var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
7879
- type: z261.literal(DTOExporterPropertyType.Enum.String),
7880
- default: z261.string(),
7881
- isMultiline: z261.boolean().optional()
7898
+ type: z262.literal(DTOExporterPropertyType.Enum.String),
7899
+ default: z262.string(),
7900
+ isMultiline: z262.boolean().optional()
7882
7901
  });
7883
7902
  var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
7884
- type: z261.literal(DTOExporterPropertyType.Enum.Number),
7885
- default: z261.number()
7903
+ type: z262.literal(DTOExporterPropertyType.Enum.Number),
7904
+ default: z262.number()
7886
7905
  });
7887
7906
  var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
7888
- type: z261.literal(DTOExporterPropertyType.Enum.Array),
7907
+ type: z262.literal(DTOExporterPropertyType.Enum.Array),
7889
7908
  default: ArrayValue2
7890
7909
  });
7891
7910
  var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
7892
- type: z261.literal(DTOExporterPropertyType.Enum.Object),
7911
+ type: z262.literal(DTOExporterPropertyType.Enum.Object),
7893
7912
  default: ObjectValue2,
7894
- allowedKeys: z261.object({
7895
- options: z261.string().array(),
7896
- type: z261.string()
7913
+ allowedKeys: z262.object({
7914
+ options: z262.string().array(),
7915
+ type: z262.string()
7897
7916
  }).optional(),
7898
- allowedValues: z261.object({
7899
- type: z261.string()
7917
+ allowedValues: z262.object({
7918
+ type: z262.string()
7900
7919
  }).optional()
7901
7920
  });
7902
7921
  var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
7903
- type: z261.literal(DTOExporterPropertyType.Enum.Code),
7904
- language: z261.string(),
7905
- default: z261.string()
7922
+ type: z262.literal(DTOExporterPropertyType.Enum.Code),
7923
+ language: z262.string(),
7924
+ default: z262.string()
7906
7925
  });
7907
- var DTOExporterPropertyDefinition = z261.discriminatedUnion("type", [
7926
+ var DTOExporterPropertyDefinition = z262.discriminatedUnion("type", [
7908
7927
  DTOExporterPropertyDefinitionEnum,
7909
7928
  DTOExporterPropertyDefinitionBoolean,
7910
7929
  DTOExporterPropertyDefinitionString,
@@ -7913,89 +7932,89 @@ var DTOExporterPropertyDefinition = z261.discriminatedUnion("type", [
7913
7932
  DTOExporterPropertyDefinitionObject,
7914
7933
  DTOExporterPropertyDefinitionCode
7915
7934
  ]);
7916
- var DTOExporterPropertyDefinitionsResponse = z261.object({
7935
+ var DTOExporterPropertyDefinitionsResponse = z262.object({
7917
7936
  properties: DTOExporterPropertyDefinition.array()
7918
7937
  });
7919
- var DTOExporterPropertyValueMap = z261.record(DTOExporterPropertyValue);
7938
+ var DTOExporterPropertyValueMap = z262.record(DTOExporterPropertyValue);
7920
7939
 
7921
7940
  // src/api/payloads/export/pipeline.ts
7922
- var GitDestinationOptions = z262.object({
7923
- branch: z262.string().min(1).nullish(),
7924
- commitMessage: z262.string().min(1).nullish(),
7925
- commitAuthorName: z262.string().min(1).nullish(),
7926
- commitAuthorEmail: z262.string().email().nullish(),
7927
- pullRequestTitle: z262.string().min(1).nullish(),
7928
- pullRequestDescription: z262.string().min(1).nullish(),
7929
- relativePath: z262.string().nullish(),
7930
- purgeDirectory: z262.boolean().nullish()
7931
- });
7932
- var DTOPipelineCreateBody = z262.object({
7933
- name: z262.string(),
7934
- exporterId: z262.string(),
7935
- designSystemId: z262.string(),
7936
- isEnabled: z262.boolean(),
7941
+ var GitDestinationOptions = z263.object({
7942
+ branch: z263.string().min(1).nullish(),
7943
+ commitMessage: z263.string().min(1).nullish(),
7944
+ commitAuthorName: z263.string().min(1).nullish(),
7945
+ commitAuthorEmail: z263.string().email().nullish(),
7946
+ pullRequestTitle: z263.string().min(1).nullish(),
7947
+ pullRequestDescription: z263.string().min(1).nullish(),
7948
+ relativePath: z263.string().nullish(),
7949
+ purgeDirectory: z263.boolean().nullish()
7950
+ });
7951
+ var DTOPipelineCreateBody = z263.object({
7952
+ name: z263.string(),
7953
+ exporterId: z263.string(),
7954
+ designSystemId: z263.string(),
7955
+ isEnabled: z263.boolean(),
7937
7956
  eventType: PipelineEventType,
7938
- brandPersistentId: z262.string().optional(),
7939
- themePersistentId: z262.string().optional(),
7940
- themePersistentIds: z262.string().array().optional(),
7957
+ brandPersistentId: z263.string().optional(),
7958
+ themePersistentId: z263.string().optional(),
7959
+ themePersistentIds: z263.string().array().optional(),
7941
7960
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7942
7961
  destination: PipelineDestinationType.optional(),
7943
7962
  gitQuery: GitObjectsQuery,
7944
- destinations: z262.object({
7963
+ destinations: z263.object({
7945
7964
  s3: ExporterDestinationS3.nullish(),
7946
7965
  azure: ExporterDestinationAzure.nullish(),
7947
7966
  bitbucket: ExporterDestinationBitbucket.nullish(),
7948
7967
  github: ExporterDestinationGithub.nullish(),
7949
7968
  gitlab: ExporterDestinationGitlab.nullish(),
7950
7969
  documentation: ExporterDestinationDocs.nullish(),
7951
- webhookUrl: z262.string().nullish()
7970
+ webhookUrl: z263.string().nullish()
7952
7971
  })
7953
7972
  });
7954
- var DTOPipelineUpdateBody = z262.object({
7955
- exporterId: z262.string().optional(),
7956
- name: z262.string().optional(),
7957
- isEnabled: z262.boolean().optional(),
7973
+ var DTOPipelineUpdateBody = z263.object({
7974
+ exporterId: z263.string().optional(),
7975
+ name: z263.string().optional(),
7976
+ isEnabled: z263.boolean().optional(),
7958
7977
  eventType: PipelineEventType.optional(),
7959
- brandPersistentId: z262.string().optional(),
7960
- themePersistentId: z262.string().optional(),
7961
- themePersistentIds: z262.string().array().optional(),
7978
+ brandPersistentId: z263.string().optional(),
7979
+ themePersistentId: z263.string().optional(),
7980
+ themePersistentIds: z263.string().array().optional(),
7962
7981
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7963
7982
  destination: PipelineDestinationType.optional(),
7964
7983
  gitQuery: GitObjectsQuery.optional(),
7965
- destinations: z262.object({
7984
+ destinations: z263.object({
7966
7985
  s3: ExporterDestinationS3.nullish(),
7967
7986
  azure: ExporterDestinationAzure.nullish(),
7968
7987
  bitbucket: ExporterDestinationBitbucket.nullish(),
7969
7988
  github: ExporterDestinationGithub.nullish(),
7970
7989
  gitlab: ExporterDestinationGitlab.nullish(),
7971
7990
  documentation: ExporterDestinationDocs.nullish(),
7972
- webhookUrl: z262.string().nullish()
7991
+ webhookUrl: z263.string().nullish()
7973
7992
  }).optional(),
7974
7993
  gitDestinationOptions: GitDestinationOptions.partial().optional()
7975
7994
  });
7976
- var DTOPipelineTriggerBody = z262.object({
7977
- designSystemVersionId: z262.string()
7995
+ var DTOPipelineTriggerBody = z263.object({
7996
+ designSystemVersionId: z263.string()
7978
7997
  });
7979
7998
 
7980
7999
  // src/api/payloads/liveblocks/auth.ts
7981
- import { z as z263 } from "zod";
7982
- var DTOLiveblocksAuthRequest = z263.object({
7983
- room: z263.string().optional()
8000
+ import { z as z264 } from "zod";
8001
+ var DTOLiveblocksAuthRequest = z264.object({
8002
+ room: z264.string().optional()
7984
8003
  });
7985
8004
 
7986
8005
  // src/api/payloads/users/notifications/notification-settings.ts
7987
- import { z as z264 } from "zod";
7988
- var DTOUpdateUserNotificationSettingsPayload = z264.object({
8006
+ import { z as z265 } from "zod";
8007
+ var DTOUpdateUserNotificationSettingsPayload = z265.object({
7989
8008
  notificationSettings: UserNotificationSettings
7990
8009
  });
7991
- var DTOUserNotificationSettingsResponse = z264.object({
7992
- userId: z264.string(),
7993
- workspaceId: z264.string(),
8010
+ var DTOUserNotificationSettingsResponse = z265.object({
8011
+ userId: z265.string(),
8012
+ workspaceId: z265.string(),
7994
8013
  notificationSettings: UserNotificationSettings
7995
8014
  });
7996
8015
 
7997
8016
  // src/api/payloads/workspaces/workspace-configuration.ts
7998
- import { z as z265 } from "zod";
8017
+ import { z as z266 } from "zod";
7999
8018
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
8000
8019
  function validateSsoPayload(ssoPayload) {
8001
8020
  const keys = [];
@@ -8018,100 +8037,91 @@ function validateSsoPayload(ssoPayload) {
8018
8037
  keys
8019
8038
  };
8020
8039
  }
8021
- var NpmRegistryInput = z265.object({
8022
- enabledScopes: z265.array(z265.string()),
8023
- customRegistryUrl: z265.string().optional(),
8024
- bypassProxy: z265.boolean().optional(),
8025
- npmProxyRegistryConfigId: z265.string().optional(),
8026
- npmProxyVersion: z265.number().optional(),
8027
- registryType: z265.string(),
8028
- authType: z265.string(),
8029
- authHeaderName: z265.string(),
8030
- authHeaderValue: z265.string(),
8031
- accessToken: z265.string(),
8032
- username: z265.string(),
8033
- password: z265.string()
8034
- });
8035
- var WorkspaceConfigurationPayload = z265.object({
8040
+ var NpmRegistryInput = z266.object({
8041
+ enabledScopes: z266.array(z266.string()),
8042
+ customRegistryUrl: z266.string().optional(),
8043
+ bypassProxy: z266.boolean().optional(),
8044
+ npmProxyRegistryConfigId: z266.string().optional(),
8045
+ npmProxyVersion: z266.number().optional(),
8046
+ registryType: z266.string(),
8047
+ authType: z266.string(),
8048
+ authHeaderName: z266.string(),
8049
+ authHeaderValue: z266.string(),
8050
+ accessToken: z266.string(),
8051
+ username: z266.string(),
8052
+ password: z266.string()
8053
+ });
8054
+ var WorkspaceConfigurationPayload = z266.object({
8036
8055
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
8037
8056
  sso: SsoProvider.partial().optional(),
8038
8057
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
8039
8058
  profile: WorkspaceProfile.partial().optional(),
8040
- aiFeaturesEnabled: z265.boolean().optional(),
8041
- projectsEnabled: z265.boolean().optional(),
8059
+ aiFeaturesEnabled: z266.boolean().optional(),
8060
+ projectsEnabled: z266.boolean().optional(),
8042
8061
  defaultProjectAccessMode: WorkspaceDefaultProjectAccessMode.optional(),
8043
8062
  defaultProjectRole: WorkspaceDefaultProjectRole.optional(),
8044
- aiAskFeaturesEnabled: z265.boolean().optional(),
8045
- aiCustomInstruction: z265.string().optional()
8063
+ aiAskFeaturesEnabled: z266.boolean().optional(),
8064
+ aiCustomInstruction: z266.string().optional()
8046
8065
  });
8047
8066
 
8048
8067
  // src/api/payloads/workspaces/workspace-integrations.ts
8049
- import { z as z266 } from "zod";
8050
- var DTOWorkspaceIntegrationOauthInput = z266.object({
8068
+ import { z as z267 } from "zod";
8069
+ var DTOWorkspaceIntegrationOauthInput = z267.object({
8051
8070
  type: IntegrationType
8052
8071
  });
8053
- var DTOWorkspaceIntegrationPATInput = z266.object({
8072
+ var DTOWorkspaceIntegrationPATInput = z267.object({
8054
8073
  type: IntegrationType,
8055
8074
  token: IntegrationToken
8056
8075
  });
8057
- var DTOWorkspaceIntegrationGetGitObjectsInput = z266.object({
8058
- organization: z266.string().optional(),
8076
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z267.object({
8077
+ organization: z267.string().optional(),
8059
8078
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
8060
- project: z266.string().optional(),
8079
+ project: z267.string().optional(),
8061
8080
  // Only for Bitbucket and Azure
8062
- repository: z266.string().optional(),
8081
+ repository: z267.string().optional(),
8063
8082
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
8064
- branch: z266.string().optional(),
8083
+ branch: z267.string().optional(),
8065
8084
  // For all providers, useful for PR creations.
8066
- user: z266.string().optional()
8085
+ user: z267.string().optional()
8067
8086
  // Only for Gitlab User Repositories
8068
8087
  });
8069
8088
 
8070
8089
  // src/api/dto/design-systems/version.ts
8071
- var DTODesignSystemVersion = z267.object({
8072
- id: z267.string(),
8073
- createdAt: z267.coerce.date(),
8090
+ var DTODesignSystemVersion = z268.object({
8091
+ id: z268.string(),
8092
+ createdAt: z268.coerce.date(),
8074
8093
  meta: ObjectMeta,
8075
- version: z267.string(),
8076
- isReadonly: z267.boolean(),
8077
- changeLog: z267.string(),
8078
- designSystemId: z267.string()
8094
+ version: z268.string(),
8095
+ isReadonly: z268.boolean(),
8096
+ changeLog: z268.string(),
8097
+ designSystemId: z268.string()
8079
8098
  });
8080
- var DTODesignSystemVersionsListResponse = z267.object({
8081
- designSystemVersions: z267.array(DTODesignSystemVersion)
8099
+ var DTODesignSystemVersionsListResponse = z268.object({
8100
+ designSystemVersions: z268.array(DTODesignSystemVersion)
8082
8101
  });
8083
- var DTODesignSystemVersionGetResponse = z267.object({
8102
+ var DTODesignSystemVersionGetResponse = z268.object({
8084
8103
  designSystemVersion: DTODesignSystemVersion
8085
8104
  });
8086
- var DTODesignSystemVersionCreationResponse = z267.object({
8105
+ var DTODesignSystemVersionCreationResponse = z268.object({
8087
8106
  meta: ObjectMeta,
8088
- version: z267.string(),
8089
- changeLog: z267.string(),
8090
- isReadOnly: z267.boolean(),
8091
- designSystemId: z267.string(),
8092
- jobId: z267.string()
8093
- });
8094
- var VersionSQSPayload = z267.object({
8095
- jobId: z267.string(),
8096
- designSystemId: z267.string(),
8107
+ version: z268.string(),
8108
+ changeLog: z268.string(),
8109
+ isReadOnly: z268.boolean(),
8110
+ designSystemId: z268.string(),
8111
+ jobId: z268.string()
8112
+ });
8113
+ var VersionSQSPayload = z268.object({
8114
+ jobId: z268.string(),
8115
+ designSystemId: z268.string(),
8097
8116
  input: DTOCreateVersionInput
8098
8117
  });
8099
- var DTODesignSystemVersionJobsResponse = z267.object({
8100
- jobs: z267.array(VersionCreationJob)
8118
+ var DTODesignSystemVersionJobsResponse = z268.object({
8119
+ jobs: z268.array(VersionCreationJob)
8101
8120
  });
8102
- var DTODesignSystemVersionJobStatusResponse = z267.object({
8121
+ var DTODesignSystemVersionJobStatusResponse = z268.object({
8103
8122
  job: VersionCreationJob
8104
8123
  });
8105
8124
 
8106
- // src/api/dto/design-systems/version-room.ts
8107
- import { z as z268 } from "zod";
8108
- var DTODesignSystemVersionRoom = z268.object({
8109
- id: z268.string()
8110
- });
8111
- var DTODesignSystemVersionRoomResponse = z268.object({
8112
- room: DTODesignSystemVersionRoom
8113
- });
8114
-
8115
8125
  // src/api/dto/design-systems/view.ts
8116
8126
  import { z as z269 } from "zod";
8117
8127
  var DTOElementViewColumnSharedAttributes = z269.object({
@@ -11219,7 +11229,7 @@ var DTOFigmaExportNodePayload = z340.object({
11219
11229
  var DTOFigmaExportNodeResponse = z340.object({
11220
11230
  file: DTOFile,
11221
11231
  // TODO (jovanblazek): Remove sceneNodes from response when done with development
11222
- sceneNodes: z340.array(z340.any()).optional()
11232
+ scene: z340.any().optional()
11223
11233
  });
11224
11234
 
11225
11235
  // src/api/dto/liveblocks/auth-response.ts
@@ -11390,7 +11400,7 @@ var DTOSandboxTemplateBuildFinalizeResponse = z345.object({
11390
11400
  ok: z345.boolean()
11391
11401
  });
11392
11402
 
11393
- // src/api/dto/storybook-sites/index.ts
11403
+ // src/api/dto/storybook-sites/storybook-sites.ts
11394
11404
  import { z as z346 } from "zod";
11395
11405
  var DTOStorybookUploadStatus = z346.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
11396
11406
  var DTOStorybookSiteVersion = z346.object({
@@ -11715,210 +11725,8 @@ var CodegenEndpoint = class {
11715
11725
  }
11716
11726
  };
11717
11727
 
11718
- // src/api/endpoints/design-system/analytics.ts
11719
- var DesignSystemAnalyticsEndpoint = class {
11720
- constructor(requestExecutor) {
11721
- this.requestExecutor = requestExecutor;
11722
- }
11723
- get(designSystemId, versionId, body) {
11724
- return this.requestExecutor.json(
11725
- `/design-systems/${designSystemId}/versions/${versionId}/documentation/analytics`,
11726
- DTODocumentationPageAnalyticsResponse,
11727
- { method: "POST", body }
11728
- );
11729
- }
11730
- };
11731
-
11732
- // src/api/endpoints/design-system/bff.ts
11733
- var DesignSystemBffEndpoint = class {
11734
- constructor(requestExecutor) {
11735
- this.requestExecutor = requestExecutor;
11736
- }
11737
- import(dsId, payload) {
11738
- return this.requestExecutor.json(`/design-systems/${dsId}/bff/import`, DTOImportJobResponse, {
11739
- method: "POST",
11740
- body: payload
11741
- });
11742
- }
11743
- };
11744
-
11745
- // src/api/endpoints/design-system/contact.ts
11746
- var DesignSystemContactsEndpoint = class {
11747
- constructor(requestExecutor) {
11748
- this.requestExecutor = requestExecutor;
11749
- }
11750
- list(dsId) {
11751
- return this.requestExecutor.json(`/design-systems/${dsId}/contacts`, DTODesignSystemContactsResponse, {
11752
- method: "GET"
11753
- });
11754
- }
11755
- };
11756
-
11757
- // src/api/endpoints/design-system/design-systems.ts
11758
- import { z as z357 } from "zod";
11759
-
11760
- // src/api/endpoints/design-system/figma-node-structures.ts
11761
- var FigmaNodeStructuresEndpoint = class {
11762
- constructor(requestExecutor) {
11763
- this.requestExecutor = requestExecutor;
11764
- }
11765
- list(dsId) {
11766
- return this.requestExecutor.json(
11767
- `/design-systems/${dsId}/figma-node-structures`,
11768
- DTOFigmaNodeStructureListResponse
11769
- );
11770
- }
11771
- get(dsId, structureId) {
11772
- return this.requestExecutor.json(
11773
- `/design-systems/${dsId}/figma-node-structures/${structureId}`,
11774
- DTOFigmaNodeStructureDetailResponse
11775
- );
11776
- }
11777
- };
11778
-
11779
- // src/api/endpoints/design-system/members.ts
11780
- var DesignSystemMembersEndpoint = class {
11781
- constructor(requestExecutor) {
11782
- this.requestExecutor = requestExecutor;
11783
- }
11784
- list(dsId) {
11785
- return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMemberListResponse, {
11786
- method: "GET"
11787
- });
11788
- }
11789
- update(dsId, body) {
11790
- return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMembersUpdateResponse, {
11791
- method: "POST",
11792
- body
11793
- });
11794
- }
11795
- };
11796
-
11797
- // src/api/endpoints/design-system/redirects.ts
11798
- var DesignSystemPageRedirectsEndpoint = class {
11799
- constructor(requestExecutor) {
11800
- this.requestExecutor = requestExecutor;
11801
- }
11802
- create(dsId, body) {
11803
- return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectResponse, {
11804
- body,
11805
- method: "POST"
11806
- });
11807
- }
11808
- list(dsId) {
11809
- return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectListResponse, {
11810
- method: "GET"
11811
- });
11812
- }
11813
- update(dsId, redirectId, body) {
11814
- return this.requestExecutor.json(
11815
- `/design-systems/${dsId}/documentation/redirects/${redirectId}`,
11816
- DTOPageRedirectResponse,
11817
- {
11818
- body,
11819
- method: "PUT"
11820
- }
11821
- );
11822
- }
11823
- delete(dsId, redirectId) {
11824
- return this.requestExecutor.json(
11825
- `/design-systems/${dsId}/documentation/redirects/${redirectId}`,
11826
- DTOPageRedirectDeleteResponse,
11827
- {
11828
- method: "DELETE"
11829
- }
11830
- );
11831
- }
11832
- };
11833
-
11834
- // src/api/endpoints/design-system/sources.ts
11835
- import { z as z351 } from "zod";
11836
- var DesignSystemSourcesEndpoint = class {
11837
- constructor(requestExecutor) {
11838
- this.requestExecutor = requestExecutor;
11839
- }
11840
- create(dsId, payload) {
11841
- return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourceResponse, {
11842
- method: "POST",
11843
- body: payload
11844
- });
11845
- }
11846
- list(dsId) {
11847
- return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
11848
- }
11849
- get(dsId, sourceId) {
11850
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
11851
- }
11852
- delete(dsId, sourceId) {
11853
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z351.any(), { method: "DELETE" });
11854
- }
11855
- updateFigmaSource(dsId, sourceId, payload) {
11856
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
11857
- method: "PUT",
11858
- body: payload
11859
- });
11860
- }
11861
- updateStorybookSource(dsId, sourceId, payload) {
11862
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
11863
- method: "PUT",
11864
- body: payload
11865
- });
11866
- }
11867
- figmaImport(dsId, payload) {
11868
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
11869
- method: "POST",
11870
- body: payload
11871
- });
11872
- }
11873
- storybookImport(dsId, payload) {
11874
- return this.requestExecutor.json(
11875
- `/design-systems/${dsId}/versions/head/storybook-import`,
11876
- DTODataSourcesStorybookResponse,
11877
- {
11878
- method: "POST",
11879
- body: payload
11880
- }
11881
- );
11882
- }
11883
- updateStorybookImport(dsId, versionId, payload) {
11884
- return this.requestExecutor.json(
11885
- `/design-systems/${dsId}/versions/${versionId}/storybook-import`,
11886
- DTODataSourcesStorybookResponse,
11887
- {
11888
- method: "POST",
11889
- body: payload
11890
- }
11891
- );
11892
- }
11893
- };
11894
-
11895
- // src/api/endpoints/design-system/storybook.ts
11896
- import { z as z352 } from "zod";
11897
- var StorybookEntriesEndpoint = class {
11898
- constructor(requestExecutor) {
11899
- this.requestExecutor = requestExecutor;
11900
- }
11901
- list(dsId, query = {}) {
11902
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse, {
11903
- query: new URLSearchParams(pickDefined(query))
11904
- });
11905
- }
11906
- replace(dsId, entryId) {
11907
- return this.requestExecutor.json(
11908
- `/design-systems/${dsId}/versions/head/storybook/${entryId}`,
11909
- DTOStorybookEntryReplaceAction,
11910
- { method: "PUT" }
11911
- );
11912
- }
11913
- delete(dsId, entryId) {
11914
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z352.any(), {
11915
- method: "DELETE"
11916
- });
11917
- }
11918
- };
11919
-
11920
11728
  // src/api/endpoints/design-system/versions/brands.ts
11921
- import { z as z353 } from "zod";
11729
+ import { z as z351 } from "zod";
11922
11730
  var BrandsEndpoint = class {
11923
11731
  constructor(requestExecutor) {
11924
11732
  this.requestExecutor = requestExecutor;
@@ -11952,7 +11760,7 @@ var BrandsEndpoint = class {
11952
11760
  });
11953
11761
  }
11954
11762
  delete(dsId, vId, brandId) {
11955
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z353.any(), {
11763
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z351.any(), {
11956
11764
  method: "DELETE"
11957
11765
  });
11958
11766
  }
@@ -12072,34 +11880,13 @@ var DesignSystemComponentEndpoint = class {
12072
11880
  }
12073
11881
  };
12074
11882
 
12075
- // src/api/endpoints/design-system/versions/elements.ts
12076
- var ElementsEndpoint = class {
11883
+ // src/api/endpoints/design-system/versions/elements-action.ts
11884
+ var ElementsActionEndpoint = class {
12077
11885
  constructor(requestExecutor) {
12078
11886
  this.requestExecutor = requestExecutor;
12079
11887
  }
12080
- getElementsV1(dsId, vId, query) {
12081
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
12082
- query: serializeQuery(query)
12083
- });
12084
- }
12085
- getElementsV2(dsId, vId, query) {
12086
- const fullQuery = {
12087
- ...query,
12088
- responseVersion: 2
12089
- };
12090
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutputV2, {
12091
- query: serializeQuery(fullQuery)
12092
- });
12093
- }
12094
- };
12095
-
12096
- // src/api/endpoints/design-system/versions/elements-action.ts
12097
- var ElementsActionEndpoint = class {
12098
- constructor(requestExecutor) {
12099
- this.requestExecutor = requestExecutor;
12100
- }
12101
- async createDocPage(dsId, vId, input) {
12102
- return this.action(dsId, vId, { type: "DocumentationPageCreate", input });
11888
+ async createDocPage(dsId, vId, input) {
11889
+ return this.action(dsId, vId, { type: "DocumentationPageCreate", input });
12103
11890
  }
12104
11891
  async createDocGroup(dsId, vId, input) {
12105
11892
  return this.action(dsId, vId, { type: "DocumentationGroupCreate", input });
@@ -12140,6 +11927,27 @@ var ElementsActionEndpoint = class {
12140
11927
  }
12141
11928
  };
12142
11929
 
11930
+ // src/api/endpoints/design-system/versions/elements.ts
11931
+ var ElementsEndpoint = class {
11932
+ constructor(requestExecutor) {
11933
+ this.requestExecutor = requestExecutor;
11934
+ }
11935
+ getElementsV1(dsId, vId, query) {
11936
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
11937
+ query: serializeQuery(query)
11938
+ });
11939
+ }
11940
+ getElementsV2(dsId, vId, query) {
11941
+ const fullQuery = {
11942
+ ...query,
11943
+ responseVersion: 2
11944
+ };
11945
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutputV2, {
11946
+ query: serializeQuery(fullQuery)
11947
+ });
11948
+ }
11949
+ };
11950
+
12143
11951
  // src/api/endpoints/design-system/versions/figma-component-groups.ts
12144
11952
  var FigmaComponentGroupsEndpoint = class {
12145
11953
  constructor(requestExecutor) {
@@ -12227,8 +12035,26 @@ var ImportJobsEndpoint = class {
12227
12035
  }
12228
12036
  };
12229
12037
 
12038
+ // src/api/endpoints/design-system/versions/overrides.ts
12039
+ import { z as z352 } from "zod";
12040
+ var OverridesEndpoint = class {
12041
+ constructor(requestExecutor) {
12042
+ this.requestExecutor = requestExecutor;
12043
+ }
12044
+ create(dsId, versionId, themeId, body) {
12045
+ return this.requestExecutor.json(
12046
+ `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
12047
+ z352.any(),
12048
+ {
12049
+ method: "POST",
12050
+ body
12051
+ }
12052
+ );
12053
+ }
12054
+ };
12055
+
12230
12056
  // src/api/endpoints/design-system/versions/property-definitions.ts
12231
- import { z as z354 } from "zod";
12057
+ import { z as z353 } from "zod";
12232
12058
  var ElementPropertyDefinitionsEndpoint = class {
12233
12059
  constructor(requestExecutor) {
12234
12060
  this.requestExecutor = requestExecutor;
@@ -12256,7 +12082,7 @@ var ElementPropertyDefinitionsEndpoint = class {
12256
12082
  delete(designSystemId, versionId, defId) {
12257
12083
  return this.requestExecutor.json(
12258
12084
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
12259
- z354.any(),
12085
+ z353.any(),
12260
12086
  { method: "DELETE" }
12261
12087
  );
12262
12088
  }
@@ -12295,27 +12121,7 @@ var VersionStatsEndpoint = class {
12295
12121
  };
12296
12122
 
12297
12123
  // src/api/endpoints/design-system/versions/themes.ts
12298
- import { z as z356 } from "zod";
12299
-
12300
- // src/api/endpoints/design-system/versions/overrides.ts
12301
- import { z as z355 } from "zod";
12302
- var OverridesEndpoint = class {
12303
- constructor(requestExecutor) {
12304
- this.requestExecutor = requestExecutor;
12305
- }
12306
- create(dsId, versionId, themeId, body) {
12307
- return this.requestExecutor.json(
12308
- `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
12309
- z355.any(),
12310
- {
12311
- method: "POST",
12312
- body
12313
- }
12314
- );
12315
- }
12316
- };
12317
-
12318
- // src/api/endpoints/design-system/versions/themes.ts
12124
+ import { z as z354 } from "zod";
12319
12125
  var ThemesEndpoint = class {
12320
12126
  constructor(requestExecutor) {
12321
12127
  this.requestExecutor = requestExecutor;
@@ -12338,7 +12144,7 @@ var ThemesEndpoint = class {
12338
12144
  });
12339
12145
  }
12340
12146
  delete(dsId, versionId, themeId) {
12341
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z356.any(), {
12147
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z354.any(), {
12342
12148
  method: "DELETE"
12343
12149
  });
12344
12150
  }
@@ -12471,6 +12277,208 @@ var DesignSystemVersionsEndpoint = class {
12471
12277
  }
12472
12278
  };
12473
12279
 
12280
+ // src/api/endpoints/design-system/analytics.ts
12281
+ var DesignSystemAnalyticsEndpoint = class {
12282
+ constructor(requestExecutor) {
12283
+ this.requestExecutor = requestExecutor;
12284
+ }
12285
+ get(designSystemId, versionId, body) {
12286
+ return this.requestExecutor.json(
12287
+ `/design-systems/${designSystemId}/versions/${versionId}/documentation/analytics`,
12288
+ DTODocumentationPageAnalyticsResponse,
12289
+ { method: "POST", body }
12290
+ );
12291
+ }
12292
+ };
12293
+
12294
+ // src/api/endpoints/design-system/bff.ts
12295
+ var DesignSystemBffEndpoint = class {
12296
+ constructor(requestExecutor) {
12297
+ this.requestExecutor = requestExecutor;
12298
+ }
12299
+ import(dsId, payload) {
12300
+ return this.requestExecutor.json(`/design-systems/${dsId}/bff/import`, DTOImportJobResponse, {
12301
+ method: "POST",
12302
+ body: payload
12303
+ });
12304
+ }
12305
+ };
12306
+
12307
+ // src/api/endpoints/design-system/contact.ts
12308
+ var DesignSystemContactsEndpoint = class {
12309
+ constructor(requestExecutor) {
12310
+ this.requestExecutor = requestExecutor;
12311
+ }
12312
+ list(dsId) {
12313
+ return this.requestExecutor.json(`/design-systems/${dsId}/contacts`, DTODesignSystemContactsResponse, {
12314
+ method: "GET"
12315
+ });
12316
+ }
12317
+ };
12318
+
12319
+ // src/api/endpoints/design-system/design-systems.ts
12320
+ import { z as z357 } from "zod";
12321
+
12322
+ // src/api/endpoints/design-system/figma-node-structures.ts
12323
+ var FigmaNodeStructuresEndpoint = class {
12324
+ constructor(requestExecutor) {
12325
+ this.requestExecutor = requestExecutor;
12326
+ }
12327
+ list(dsId) {
12328
+ return this.requestExecutor.json(
12329
+ `/design-systems/${dsId}/figma-node-structures`,
12330
+ DTOFigmaNodeStructureListResponse
12331
+ );
12332
+ }
12333
+ get(dsId, structureId) {
12334
+ return this.requestExecutor.json(
12335
+ `/design-systems/${dsId}/figma-node-structures/${structureId}`,
12336
+ DTOFigmaNodeStructureDetailResponse
12337
+ );
12338
+ }
12339
+ };
12340
+
12341
+ // src/api/endpoints/design-system/members.ts
12342
+ var DesignSystemMembersEndpoint = class {
12343
+ constructor(requestExecutor) {
12344
+ this.requestExecutor = requestExecutor;
12345
+ }
12346
+ list(dsId) {
12347
+ return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMemberListResponse, {
12348
+ method: "GET"
12349
+ });
12350
+ }
12351
+ update(dsId, body) {
12352
+ return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMembersUpdateResponse, {
12353
+ method: "POST",
12354
+ body
12355
+ });
12356
+ }
12357
+ };
12358
+
12359
+ // src/api/endpoints/design-system/redirects.ts
12360
+ var DesignSystemPageRedirectsEndpoint = class {
12361
+ constructor(requestExecutor) {
12362
+ this.requestExecutor = requestExecutor;
12363
+ }
12364
+ create(dsId, body) {
12365
+ return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectResponse, {
12366
+ body,
12367
+ method: "POST"
12368
+ });
12369
+ }
12370
+ list(dsId) {
12371
+ return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectListResponse, {
12372
+ method: "GET"
12373
+ });
12374
+ }
12375
+ update(dsId, redirectId, body) {
12376
+ return this.requestExecutor.json(
12377
+ `/design-systems/${dsId}/documentation/redirects/${redirectId}`,
12378
+ DTOPageRedirectResponse,
12379
+ {
12380
+ body,
12381
+ method: "PUT"
12382
+ }
12383
+ );
12384
+ }
12385
+ delete(dsId, redirectId) {
12386
+ return this.requestExecutor.json(
12387
+ `/design-systems/${dsId}/documentation/redirects/${redirectId}`,
12388
+ DTOPageRedirectDeleteResponse,
12389
+ {
12390
+ method: "DELETE"
12391
+ }
12392
+ );
12393
+ }
12394
+ };
12395
+
12396
+ // src/api/endpoints/design-system/sources.ts
12397
+ import { z as z355 } from "zod";
12398
+ var DesignSystemSourcesEndpoint = class {
12399
+ constructor(requestExecutor) {
12400
+ this.requestExecutor = requestExecutor;
12401
+ }
12402
+ create(dsId, payload) {
12403
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourceResponse, {
12404
+ method: "POST",
12405
+ body: payload
12406
+ });
12407
+ }
12408
+ list(dsId) {
12409
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
12410
+ }
12411
+ get(dsId, sourceId) {
12412
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
12413
+ }
12414
+ delete(dsId, sourceId) {
12415
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z355.any(), { method: "DELETE" });
12416
+ }
12417
+ updateFigmaSource(dsId, sourceId, payload) {
12418
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
12419
+ method: "PUT",
12420
+ body: payload
12421
+ });
12422
+ }
12423
+ updateStorybookSource(dsId, sourceId, payload) {
12424
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
12425
+ method: "PUT",
12426
+ body: payload
12427
+ });
12428
+ }
12429
+ figmaImport(dsId, payload) {
12430
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
12431
+ method: "POST",
12432
+ body: payload
12433
+ });
12434
+ }
12435
+ storybookImport(dsId, payload) {
12436
+ return this.requestExecutor.json(
12437
+ `/design-systems/${dsId}/versions/head/storybook-import`,
12438
+ DTODataSourcesStorybookResponse,
12439
+ {
12440
+ method: "POST",
12441
+ body: payload
12442
+ }
12443
+ );
12444
+ }
12445
+ updateStorybookImport(dsId, versionId, payload) {
12446
+ return this.requestExecutor.json(
12447
+ `/design-systems/${dsId}/versions/${versionId}/storybook-import`,
12448
+ DTODataSourcesStorybookResponse,
12449
+ {
12450
+ method: "POST",
12451
+ body: payload
12452
+ }
12453
+ );
12454
+ }
12455
+ };
12456
+
12457
+ // src/api/endpoints/design-system/storybook.ts
12458
+ import { z as z356 } from "zod";
12459
+ var StorybookEntriesEndpoint = class {
12460
+ constructor(requestExecutor) {
12461
+ this.requestExecutor = requestExecutor;
12462
+ }
12463
+ list(dsId, query = {}) {
12464
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse, {
12465
+ query: new URLSearchParams(pickDefined(query))
12466
+ });
12467
+ }
12468
+ replace(dsId, entryId) {
12469
+ return this.requestExecutor.json(
12470
+ `/design-systems/${dsId}/versions/head/storybook/${entryId}`,
12471
+ DTOStorybookEntryReplaceAction,
12472
+ { method: "PUT" }
12473
+ );
12474
+ }
12475
+ delete(dsId, entryId) {
12476
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z356.any(), {
12477
+ method: "DELETE"
12478
+ });
12479
+ }
12480
+ };
12481
+
12474
12482
  // src/api/endpoints/design-system/design-systems.ts
12475
12483
  var DesignSystemsEndpoint = class {
12476
12484
  constructor(requestExecutor) {
@@ -12529,25 +12537,6 @@ var DesignSystemsEndpoint = class {
12529
12537
  }
12530
12538
  };
12531
12539
 
12532
- // src/api/endpoints/files.ts
12533
- var FilesEndpoint = class {
12534
- constructor(requestExecutor) {
12535
- this.requestExecutor = requestExecutor;
12536
- }
12537
- upload(body) {
12538
- return this.requestExecutor.json(`/files/upload`, DTOFileUploadBulkResponse, {
12539
- method: "POST",
12540
- body
12541
- });
12542
- }
12543
- finalizeUpload(body) {
12544
- return this.requestExecutor.json(`/files/upload/finalize`, DTOFileFinalizeBulkResponse, {
12545
- method: "POST",
12546
- body
12547
- });
12548
- }
12549
- };
12550
-
12551
12540
  // src/api/endpoints/forge/agents.ts
12552
12541
  var ForgeAgentsEndpoint = class {
12553
12542
  constructor(requestExecutor) {
@@ -13123,19 +13112,6 @@ var ForgeProjectIterationsEndpoint = class {
13123
13112
  }
13124
13113
  };
13125
13114
 
13126
- // src/api/endpoints/liveblocks.ts
13127
- var LiveblocksEndpoint = class {
13128
- constructor(requestExecutor) {
13129
- this.requestExecutor = requestExecutor;
13130
- }
13131
- auth(body) {
13132
- return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
13133
- method: "POST",
13134
- body
13135
- });
13136
- }
13137
- };
13138
-
13139
13115
  // src/api/endpoints/mcp/streams.ts
13140
13116
  var MCPStreamsEndpoint = class {
13141
13117
  constructor(requestExecutor) {
@@ -13202,88 +13178,6 @@ var SandboxesEndpoint = class {
13202
13178
  }
13203
13179
  };
13204
13180
 
13205
- // src/api/endpoints/storybook-sites.ts
13206
- import z359 from "zod";
13207
- var StorybookSitesEndpoint = class {
13208
- constructor(requestExecutor) {
13209
- this.requestExecutor = requestExecutor;
13210
- }
13211
- listSites(query) {
13212
- return this.requestExecutor.json(`/storybook/sites`, DTOStorybookSiteListResponse, {
13213
- query: new URLSearchParams(query)
13214
- });
13215
- }
13216
- deleteSite(siteId) {
13217
- return this.requestExecutor.json(`/storybook/sites/${siteId}`, z359.unknown(), {
13218
- method: "DELETE"
13219
- });
13220
- }
13221
- uploadInit(body) {
13222
- return this.requestExecutor.json(`/storybook/site-versions`, DTOStorybookSiteUploadResponse, {
13223
- body,
13224
- method: "POST"
13225
- });
13226
- }
13227
- getVersion(siteVersionId) {
13228
- return this.requestExecutor.json(`/storybook/site-versions/${siteVersionId}`, DTOStorybookSiteVersionResponse);
13229
- }
13230
- uploadFinailize(siteVersionId) {
13231
- return this.requestExecutor.json(`/storybook/site-versions/${siteVersionId}`, DTOStorybookSiteVersionResponse, {
13232
- method: "PUT"
13233
- });
13234
- }
13235
- };
13236
-
13237
- // src/api/endpoints/threads.ts
13238
- var ThreadsEndpoint = class {
13239
- constructor(requestExecutor) {
13240
- this.requestExecutor = requestExecutor;
13241
- }
13242
- listMessages(threadId) {
13243
- return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse);
13244
- }
13245
- postMessage(threadId, body) {
13246
- return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse, {
13247
- method: "POST",
13248
- body
13249
- });
13250
- }
13251
- postReaction(threadId, body) {
13252
- return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOThreadReactionResponse, {
13253
- method: "POST",
13254
- body
13255
- });
13256
- }
13257
- deleteReaction(threadId, body) {
13258
- return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOFileUploadFinalizeResponse, {
13259
- method: "DELETE",
13260
- body
13261
- });
13262
- }
13263
- };
13264
-
13265
- // src/api/endpoints/users.ts
13266
- var UsersEndpoint = class {
13267
- constructor(requestExecutor) {
13268
- this.requestExecutor = requestExecutor;
13269
- }
13270
- getMe() {
13271
- return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
13272
- }
13273
- listWorkspaces(uid) {
13274
- return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
13275
- }
13276
- delete(uid) {
13277
- return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
13278
- }
13279
- updateProfile(uid, body) {
13280
- return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
13281
- method: "PUT",
13282
- body
13283
- });
13284
- }
13285
- };
13286
-
13287
13181
  // src/api/endpoints/workspaces/billing.ts
13288
13182
  var WorkspaceBillingEndpoint = class {
13289
13183
  constructor(requestExecutor) {
@@ -13304,7 +13198,7 @@ var WorkspaceBillingEndpoint = class {
13304
13198
  };
13305
13199
 
13306
13200
  // src/api/endpoints/workspaces/chat-threads.ts
13307
- import { z as z360 } from "zod";
13201
+ import { z as z359 } from "zod";
13308
13202
  var WorkspaceChatThreadsEndpoint = class {
13309
13203
  constructor(requestExecutor) {
13310
13204
  this.requestExecutor = requestExecutor;
@@ -13336,7 +13230,7 @@ var WorkspaceChatThreadsEndpoint = class {
13336
13230
  );
13337
13231
  }
13338
13232
  delete(workspaceId, threadId) {
13339
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z360.any(), {
13233
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z359.any(), {
13340
13234
  method: "DELETE"
13341
13235
  });
13342
13236
  }
@@ -13368,7 +13262,7 @@ var ChatThreadMessagesEndpoint = class {
13368
13262
  );
13369
13263
  }
13370
13264
  score(workspaceId, threadId, body) {
13371
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z360.any(), {
13265
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z359.any(), {
13372
13266
  method: "POST",
13373
13267
  body
13374
13268
  });
@@ -13376,7 +13270,7 @@ var ChatThreadMessagesEndpoint = class {
13376
13270
  };
13377
13271
 
13378
13272
  // src/api/endpoints/workspaces/integrations.ts
13379
- import { z as z361 } from "zod";
13273
+ import { z as z360 } from "zod";
13380
13274
  var WorkspaceIntegrationsEndpoint = class {
13381
13275
  constructor(requestExecutor) {
13382
13276
  this.requestExecutor = requestExecutor;
@@ -13385,7 +13279,7 @@ var WorkspaceIntegrationsEndpoint = class {
13385
13279
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
13386
13280
  }
13387
13281
  delete(wsId, iId) {
13388
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z361.unknown(), { method: "DELETE" });
13282
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z360.unknown(), { method: "DELETE" });
13389
13283
  }
13390
13284
  };
13391
13285
 
@@ -13417,7 +13311,7 @@ var WorkspaceInvitationsEndpoint = class {
13417
13311
  };
13418
13312
 
13419
13313
  // src/api/endpoints/workspaces/members.ts
13420
- import { z as z362 } from "zod";
13314
+ import { z as z361 } from "zod";
13421
13315
  var WorkspaceMembersEndpoint = class {
13422
13316
  constructor(requestExecutor) {
13423
13317
  this.requestExecutor = requestExecutor;
@@ -13434,7 +13328,7 @@ var WorkspaceMembersEndpoint = class {
13434
13328
  });
13435
13329
  }
13436
13330
  invite(workspaceId, body) {
13437
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z362.any(), { method: "POST", body });
13331
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z361.any(), { method: "POST", body });
13438
13332
  }
13439
13333
  delete(workspaceId, userId) {
13440
13334
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -13463,7 +13357,7 @@ var WorkspaceNpmRegistryEndpoint = class {
13463
13357
  };
13464
13358
 
13465
13359
  // src/api/endpoints/workspaces/subscription.ts
13466
- import { z as z363 } from "zod";
13360
+ import { z as z362 } from "zod";
13467
13361
  var WorkspaceSubscriptionEndpoint = class {
13468
13362
  constructor(requestExecutor) {
13469
13363
  this.requestExecutor = requestExecutor;
@@ -13474,7 +13368,7 @@ var WorkspaceSubscriptionEndpoint = class {
13474
13368
  });
13475
13369
  }
13476
13370
  update(workspaceId, body) {
13477
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z363.any(), {
13371
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z362.any(), {
13478
13372
  method: "PUT",
13479
13373
  body
13480
13374
  });
@@ -13492,7 +13386,7 @@ var WorkspaceSubscriptionEndpoint = class {
13492
13386
  };
13493
13387
 
13494
13388
  // src/api/endpoints/workspaces/workspaces.ts
13495
- import { z as z364 } from "zod";
13389
+ import { z as z363 } from "zod";
13496
13390
  var WorkspacesEndpoint = class {
13497
13391
  constructor(requestExecutor) {
13498
13392
  this.requestExecutor = requestExecutor;
@@ -13528,7 +13422,7 @@ var WorkspacesEndpoint = class {
13528
13422
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
13529
13423
  }
13530
13424
  delete(workspaceId) {
13531
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z364.any(), { method: "DELETE" });
13425
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z363.any(), { method: "DELETE" });
13532
13426
  }
13533
13427
  getPortalSettings(workspaceId) {
13534
13428
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -13549,6 +13443,120 @@ var WorkspacesEndpoint = class {
13549
13443
  }
13550
13444
  };
13551
13445
 
13446
+ // src/api/endpoints/files.ts
13447
+ var FilesEndpoint = class {
13448
+ constructor(requestExecutor) {
13449
+ this.requestExecutor = requestExecutor;
13450
+ }
13451
+ upload(body) {
13452
+ return this.requestExecutor.json(`/files/upload`, DTOFileUploadBulkResponse, {
13453
+ method: "POST",
13454
+ body
13455
+ });
13456
+ }
13457
+ finalizeUpload(body) {
13458
+ return this.requestExecutor.json(`/files/upload/finalize`, DTOFileFinalizeBulkResponse, {
13459
+ method: "POST",
13460
+ body
13461
+ });
13462
+ }
13463
+ };
13464
+
13465
+ // src/api/endpoints/liveblocks.ts
13466
+ var LiveblocksEndpoint = class {
13467
+ constructor(requestExecutor) {
13468
+ this.requestExecutor = requestExecutor;
13469
+ }
13470
+ auth(body) {
13471
+ return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
13472
+ method: "POST",
13473
+ body
13474
+ });
13475
+ }
13476
+ };
13477
+
13478
+ // src/api/endpoints/storybook-sites.ts
13479
+ import z364 from "zod";
13480
+ var StorybookSitesEndpoint = class {
13481
+ constructor(requestExecutor) {
13482
+ this.requestExecutor = requestExecutor;
13483
+ }
13484
+ listSites(query) {
13485
+ return this.requestExecutor.json(`/storybook/sites`, DTOStorybookSiteListResponse, {
13486
+ query: new URLSearchParams(query)
13487
+ });
13488
+ }
13489
+ deleteSite(siteId) {
13490
+ return this.requestExecutor.json(`/storybook/sites/${siteId}`, z364.unknown(), {
13491
+ method: "DELETE"
13492
+ });
13493
+ }
13494
+ uploadInit(body) {
13495
+ return this.requestExecutor.json(`/storybook/site-versions`, DTOStorybookSiteUploadResponse, {
13496
+ body,
13497
+ method: "POST"
13498
+ });
13499
+ }
13500
+ getVersion(siteVersionId) {
13501
+ return this.requestExecutor.json(`/storybook/site-versions/${siteVersionId}`, DTOStorybookSiteVersionResponse);
13502
+ }
13503
+ uploadFinailize(siteVersionId) {
13504
+ return this.requestExecutor.json(`/storybook/site-versions/${siteVersionId}`, DTOStorybookSiteVersionResponse, {
13505
+ method: "PUT"
13506
+ });
13507
+ }
13508
+ };
13509
+
13510
+ // src/api/endpoints/threads.ts
13511
+ var ThreadsEndpoint = class {
13512
+ constructor(requestExecutor) {
13513
+ this.requestExecutor = requestExecutor;
13514
+ }
13515
+ listMessages(threadId) {
13516
+ return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse);
13517
+ }
13518
+ postMessage(threadId, body) {
13519
+ return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse, {
13520
+ method: "POST",
13521
+ body
13522
+ });
13523
+ }
13524
+ postReaction(threadId, body) {
13525
+ return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOThreadReactionResponse, {
13526
+ method: "POST",
13527
+ body
13528
+ });
13529
+ }
13530
+ deleteReaction(threadId, body) {
13531
+ return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOFileUploadFinalizeResponse, {
13532
+ method: "DELETE",
13533
+ body
13534
+ });
13535
+ }
13536
+ };
13537
+
13538
+ // src/api/endpoints/users.ts
13539
+ var UsersEndpoint = class {
13540
+ constructor(requestExecutor) {
13541
+ this.requestExecutor = requestExecutor;
13542
+ }
13543
+ getMe() {
13544
+ return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
13545
+ }
13546
+ listWorkspaces(uid) {
13547
+ return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
13548
+ }
13549
+ delete(uid) {
13550
+ return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
13551
+ }
13552
+ updateProfile(uid, body) {
13553
+ return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
13554
+ method: "PUT",
13555
+ body
13556
+ });
13557
+ }
13558
+ };
13559
+
13552
13560
  // src/api/transport/request-executor-error.ts
13553
13561
  var RequestExecutorError = class _RequestExecutorError extends Error {
13554
13562
  constructor(type, message, errorCode, serverErrorType, cause) {