@supernova-studio/client 1.72.2 → 1.73.0

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
  });
@@ -7748,11 +7751,20 @@ var DTOUserDesignSystemsResponse = z255.object({
7748
7751
  workspaces: DTOWorkspace.array()
7749
7752
  });
7750
7753
 
7754
+ // src/api/dto/design-systems/version-room.ts
7755
+ import { z as z256 } from "zod";
7756
+ var DTODesignSystemVersionRoom = z256.object({
7757
+ id: z256.string()
7758
+ });
7759
+ var DTODesignSystemVersionRoomResponse = z256.object({
7760
+ room: DTODesignSystemVersionRoom
7761
+ });
7762
+
7751
7763
  // src/api/dto/design-systems/version.ts
7752
- import { z as z267 } from "zod";
7764
+ import { z as z268 } from "zod";
7753
7765
 
7754
7766
  // src/api/payloads/design-systems/update-design-system.ts
7755
- import { z as z256 } from "zod";
7767
+ import { z as z257 } from "zod";
7756
7768
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
7757
7769
  id: true,
7758
7770
  workspaceId: true,
@@ -7768,59 +7780,59 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
7768
7780
  */
7769
7781
  designSystemSwitcher: DesignSystemSwitcher.optional()
7770
7782
  });
7771
- var DTODesignSystemUpdateAccessModeInput = z256.object({
7783
+ var DTODesignSystemUpdateAccessModeInput = z257.object({
7772
7784
  accessMode: DesignSystemAccessMode,
7773
- retain: z256.object({
7774
- userIds: z256.string().array(),
7775
- inviteIds: z256.string().array()
7785
+ retain: z257.object({
7786
+ userIds: z257.string().array(),
7787
+ inviteIds: z257.string().array()
7776
7788
  }).optional()
7777
7789
  });
7778
- var DTODesignSystemUpdateSwitcherInput = z256.object({
7790
+ var DTODesignSystemUpdateSwitcherInput = z257.object({
7779
7791
  designSystemSwitcher: DesignSystemSwitcher
7780
7792
  });
7781
7793
 
7782
7794
  // 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()
7795
+ import { z as z258 } from "zod";
7796
+ var ObjectMeta2 = z258.object({
7797
+ name: z258.string().max(150).optional(),
7798
+ description: z258.string().max(2e3).optional()
7787
7799
  });
7788
7800
  function validateDesignSystemVersion(version) {
7789
7801
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
7790
7802
  return urlCompliantRegex.test(version);
7791
7803
  }
7792
- var DTOCreateVersionInput = z257.object({
7804
+ var DTOCreateVersionInput = z258.object({
7793
7805
  meta: ObjectMeta2,
7794
- version: z257.string().refine(validateDesignSystemVersion, {
7806
+ version: z258.string().refine(validateDesignSystemVersion, {
7795
7807
  message: "Invalid semantic versioning format"
7796
7808
  }),
7797
- changeLog: z257.string().optional()
7809
+ changeLog: z258.string().optional()
7798
7810
  });
7799
- var DTOUpdateVersionInput = z257.object({
7811
+ var DTOUpdateVersionInput = z258.object({
7800
7812
  meta: ObjectMeta2,
7801
- version: z257.string(),
7813
+ version: z258.string(),
7802
7814
  // required for PUT, but not editable
7803
- changeLog: z257.string()
7815
+ changeLog: z258.string()
7804
7816
  });
7805
7817
 
7806
7818
  // 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()
7819
+ import { z as z259 } from "zod";
7820
+ var DTODocumentationAnalyticsTimeFrameComparison = z259.object({
7821
+ referencePeriod: z259.object({
7822
+ start: z259.coerce.date(),
7823
+ end: z259.coerce.date().optional()
7812
7824
  }),
7813
- baselinePeriod: z258.object({
7814
- start: z258.coerce.date(),
7815
- end: z258.coerce.date().optional()
7825
+ baselinePeriod: z259.object({
7826
+ start: z259.coerce.date(),
7827
+ end: z259.coerce.date().optional()
7816
7828
  })
7817
7829
  });
7818
- var DTODocumentationAnalyticsDiffPayload = z258.object({
7819
- timeFrames: z258.array(DTODocumentationAnalyticsTimeFrameComparison)
7830
+ var DTODocumentationAnalyticsDiffPayload = z259.object({
7831
+ timeFrames: z259.array(DTODocumentationAnalyticsTimeFrameComparison)
7820
7832
  });
7821
7833
 
7822
7834
  // src/api/payloads/documentation/block-definitions.ts
7823
- import { z as z259 } from "zod";
7835
+ import { z as z260 } from "zod";
7824
7836
 
7825
7837
  // src/api/dto/documentation/block-definition.ts
7826
7838
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -7832,79 +7844,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
7832
7844
  var DTOPageBlockDefinition = PageBlockDefinition;
7833
7845
 
7834
7846
  // src/api/payloads/documentation/block-definitions.ts
7835
- var DTOGetBlockDefinitionsQuery = z259.object({
7847
+ var DTOGetBlockDefinitionsQuery = z260.object({
7836
7848
  files: zodQueryBoolean()
7837
7849
  });
7838
- var DTOGetBlockDefinitionsOutput = z259.object({
7839
- definitions: z259.array(DTOPageBlockDefinition)
7850
+ var DTOGetBlockDefinitionsOutput = z260.object({
7851
+ definitions: z260.array(DTOPageBlockDefinition)
7840
7852
  });
7841
7853
 
7842
7854
  // 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"])
7855
+ import { z as z261 } from "zod";
7856
+ var DTODocumentationPublishTypeQueryParams = z261.object({
7857
+ environment: z261.enum(["Live", "Preview"])
7846
7858
  });
7847
7859
 
7848
7860
  // src/api/payloads/export/pipeline.ts
7849
- import { z as z262 } from "zod";
7861
+ import { z as z263 } from "zod";
7850
7862
 
7851
7863
  // 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());
7864
+ import { z as z262 } from "zod";
7865
+ var PrimitiveValue2 = z262.number().or(z262.boolean()).or(z262.string());
7866
+ var ArrayValue2 = z262.array(z262.string());
7867
+ var ObjectValue2 = z262.record(z262.string());
7856
7868
  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()
7869
+ var DTOExporterPropertyType = z262.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
7870
+ var PropertyDefinitionBase2 = z262.object({
7871
+ key: z262.string(),
7872
+ title: z262.string(),
7873
+ description: z262.string(),
7874
+ category: z262.string().optional(),
7875
+ dependsOn: z262.record(z262.boolean()).optional()
7876
+ });
7877
+ var DTOExporterPropertyDefinitionEnumOption = z262.object({
7878
+ label: z262.string(),
7879
+ description: z262.string()
7868
7880
  });
7869
7881
  var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
7870
- type: z261.literal(DTOExporterPropertyType.Enum.Enum),
7871
- options: z261.record(DTOExporterPropertyDefinitionEnumOption),
7872
- default: z261.string()
7882
+ type: z262.literal(DTOExporterPropertyType.Enum.Enum),
7883
+ options: z262.record(DTOExporterPropertyDefinitionEnumOption),
7884
+ default: z262.string()
7873
7885
  });
7874
7886
  var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
7875
- type: z261.literal(DTOExporterPropertyType.Enum.Boolean),
7876
- default: z261.boolean()
7887
+ type: z262.literal(DTOExporterPropertyType.Enum.Boolean),
7888
+ default: z262.boolean()
7877
7889
  });
7878
7890
  var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
7879
- type: z261.literal(DTOExporterPropertyType.Enum.String),
7880
- default: z261.string(),
7881
- isMultiline: z261.boolean().optional()
7891
+ type: z262.literal(DTOExporterPropertyType.Enum.String),
7892
+ default: z262.string(),
7893
+ isMultiline: z262.boolean().optional()
7882
7894
  });
7883
7895
  var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
7884
- type: z261.literal(DTOExporterPropertyType.Enum.Number),
7885
- default: z261.number()
7896
+ type: z262.literal(DTOExporterPropertyType.Enum.Number),
7897
+ default: z262.number()
7886
7898
  });
7887
7899
  var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
7888
- type: z261.literal(DTOExporterPropertyType.Enum.Array),
7900
+ type: z262.literal(DTOExporterPropertyType.Enum.Array),
7889
7901
  default: ArrayValue2
7890
7902
  });
7891
7903
  var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
7892
- type: z261.literal(DTOExporterPropertyType.Enum.Object),
7904
+ type: z262.literal(DTOExporterPropertyType.Enum.Object),
7893
7905
  default: ObjectValue2,
7894
- allowedKeys: z261.object({
7895
- options: z261.string().array(),
7896
- type: z261.string()
7906
+ allowedKeys: z262.object({
7907
+ options: z262.string().array(),
7908
+ type: z262.string()
7897
7909
  }).optional(),
7898
- allowedValues: z261.object({
7899
- type: z261.string()
7910
+ allowedValues: z262.object({
7911
+ type: z262.string()
7900
7912
  }).optional()
7901
7913
  });
7902
7914
  var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
7903
- type: z261.literal(DTOExporterPropertyType.Enum.Code),
7904
- language: z261.string(),
7905
- default: z261.string()
7915
+ type: z262.literal(DTOExporterPropertyType.Enum.Code),
7916
+ language: z262.string(),
7917
+ default: z262.string()
7906
7918
  });
7907
- var DTOExporterPropertyDefinition = z261.discriminatedUnion("type", [
7919
+ var DTOExporterPropertyDefinition = z262.discriminatedUnion("type", [
7908
7920
  DTOExporterPropertyDefinitionEnum,
7909
7921
  DTOExporterPropertyDefinitionBoolean,
7910
7922
  DTOExporterPropertyDefinitionString,
@@ -7913,89 +7925,89 @@ var DTOExporterPropertyDefinition = z261.discriminatedUnion("type", [
7913
7925
  DTOExporterPropertyDefinitionObject,
7914
7926
  DTOExporterPropertyDefinitionCode
7915
7927
  ]);
7916
- var DTOExporterPropertyDefinitionsResponse = z261.object({
7928
+ var DTOExporterPropertyDefinitionsResponse = z262.object({
7917
7929
  properties: DTOExporterPropertyDefinition.array()
7918
7930
  });
7919
- var DTOExporterPropertyValueMap = z261.record(DTOExporterPropertyValue);
7931
+ var DTOExporterPropertyValueMap = z262.record(DTOExporterPropertyValue);
7920
7932
 
7921
7933
  // 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(),
7934
+ var GitDestinationOptions = z263.object({
7935
+ branch: z263.string().min(1).nullish(),
7936
+ commitMessage: z263.string().min(1).nullish(),
7937
+ commitAuthorName: z263.string().min(1).nullish(),
7938
+ commitAuthorEmail: z263.string().email().nullish(),
7939
+ pullRequestTitle: z263.string().min(1).nullish(),
7940
+ pullRequestDescription: z263.string().min(1).nullish(),
7941
+ relativePath: z263.string().nullish(),
7942
+ purgeDirectory: z263.boolean().nullish()
7943
+ });
7944
+ var DTOPipelineCreateBody = z263.object({
7945
+ name: z263.string(),
7946
+ exporterId: z263.string(),
7947
+ designSystemId: z263.string(),
7948
+ isEnabled: z263.boolean(),
7937
7949
  eventType: PipelineEventType,
7938
- brandPersistentId: z262.string().optional(),
7939
- themePersistentId: z262.string().optional(),
7940
- themePersistentIds: z262.string().array().optional(),
7950
+ brandPersistentId: z263.string().optional(),
7951
+ themePersistentId: z263.string().optional(),
7952
+ themePersistentIds: z263.string().array().optional(),
7941
7953
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7942
7954
  destination: PipelineDestinationType.optional(),
7943
7955
  gitQuery: GitObjectsQuery,
7944
- destinations: z262.object({
7956
+ destinations: z263.object({
7945
7957
  s3: ExporterDestinationS3.nullish(),
7946
7958
  azure: ExporterDestinationAzure.nullish(),
7947
7959
  bitbucket: ExporterDestinationBitbucket.nullish(),
7948
7960
  github: ExporterDestinationGithub.nullish(),
7949
7961
  gitlab: ExporterDestinationGitlab.nullish(),
7950
7962
  documentation: ExporterDestinationDocs.nullish(),
7951
- webhookUrl: z262.string().nullish()
7963
+ webhookUrl: z263.string().nullish()
7952
7964
  })
7953
7965
  });
7954
- var DTOPipelineUpdateBody = z262.object({
7955
- exporterId: z262.string().optional(),
7956
- name: z262.string().optional(),
7957
- isEnabled: z262.boolean().optional(),
7966
+ var DTOPipelineUpdateBody = z263.object({
7967
+ exporterId: z263.string().optional(),
7968
+ name: z263.string().optional(),
7969
+ isEnabled: z263.boolean().optional(),
7958
7970
  eventType: PipelineEventType.optional(),
7959
- brandPersistentId: z262.string().optional(),
7960
- themePersistentId: z262.string().optional(),
7961
- themePersistentIds: z262.string().array().optional(),
7971
+ brandPersistentId: z263.string().optional(),
7972
+ themePersistentId: z263.string().optional(),
7973
+ themePersistentIds: z263.string().array().optional(),
7962
7974
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7963
7975
  destination: PipelineDestinationType.optional(),
7964
7976
  gitQuery: GitObjectsQuery.optional(),
7965
- destinations: z262.object({
7977
+ destinations: z263.object({
7966
7978
  s3: ExporterDestinationS3.nullish(),
7967
7979
  azure: ExporterDestinationAzure.nullish(),
7968
7980
  bitbucket: ExporterDestinationBitbucket.nullish(),
7969
7981
  github: ExporterDestinationGithub.nullish(),
7970
7982
  gitlab: ExporterDestinationGitlab.nullish(),
7971
7983
  documentation: ExporterDestinationDocs.nullish(),
7972
- webhookUrl: z262.string().nullish()
7984
+ webhookUrl: z263.string().nullish()
7973
7985
  }).optional(),
7974
7986
  gitDestinationOptions: GitDestinationOptions.partial().optional()
7975
7987
  });
7976
- var DTOPipelineTriggerBody = z262.object({
7977
- designSystemVersionId: z262.string()
7988
+ var DTOPipelineTriggerBody = z263.object({
7989
+ designSystemVersionId: z263.string()
7978
7990
  });
7979
7991
 
7980
7992
  // src/api/payloads/liveblocks/auth.ts
7981
- import { z as z263 } from "zod";
7982
- var DTOLiveblocksAuthRequest = z263.object({
7983
- room: z263.string().optional()
7993
+ import { z as z264 } from "zod";
7994
+ var DTOLiveblocksAuthRequest = z264.object({
7995
+ room: z264.string().optional()
7984
7996
  });
7985
7997
 
7986
7998
  // src/api/payloads/users/notifications/notification-settings.ts
7987
- import { z as z264 } from "zod";
7988
- var DTOUpdateUserNotificationSettingsPayload = z264.object({
7999
+ import { z as z265 } from "zod";
8000
+ var DTOUpdateUserNotificationSettingsPayload = z265.object({
7989
8001
  notificationSettings: UserNotificationSettings
7990
8002
  });
7991
- var DTOUserNotificationSettingsResponse = z264.object({
7992
- userId: z264.string(),
7993
- workspaceId: z264.string(),
8003
+ var DTOUserNotificationSettingsResponse = z265.object({
8004
+ userId: z265.string(),
8005
+ workspaceId: z265.string(),
7994
8006
  notificationSettings: UserNotificationSettings
7995
8007
  });
7996
8008
 
7997
8009
  // src/api/payloads/workspaces/workspace-configuration.ts
7998
- import { z as z265 } from "zod";
8010
+ import { z as z266 } from "zod";
7999
8011
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
8000
8012
  function validateSsoPayload(ssoPayload) {
8001
8013
  const keys = [];
@@ -8018,100 +8030,91 @@ function validateSsoPayload(ssoPayload) {
8018
8030
  keys
8019
8031
  };
8020
8032
  }
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({
8033
+ var NpmRegistryInput = z266.object({
8034
+ enabledScopes: z266.array(z266.string()),
8035
+ customRegistryUrl: z266.string().optional(),
8036
+ bypassProxy: z266.boolean().optional(),
8037
+ npmProxyRegistryConfigId: z266.string().optional(),
8038
+ npmProxyVersion: z266.number().optional(),
8039
+ registryType: z266.string(),
8040
+ authType: z266.string(),
8041
+ authHeaderName: z266.string(),
8042
+ authHeaderValue: z266.string(),
8043
+ accessToken: z266.string(),
8044
+ username: z266.string(),
8045
+ password: z266.string()
8046
+ });
8047
+ var WorkspaceConfigurationPayload = z266.object({
8036
8048
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
8037
8049
  sso: SsoProvider.partial().optional(),
8038
8050
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
8039
8051
  profile: WorkspaceProfile.partial().optional(),
8040
- aiFeaturesEnabled: z265.boolean().optional(),
8041
- projectsEnabled: z265.boolean().optional(),
8052
+ aiFeaturesEnabled: z266.boolean().optional(),
8053
+ projectsEnabled: z266.boolean().optional(),
8042
8054
  defaultProjectAccessMode: WorkspaceDefaultProjectAccessMode.optional(),
8043
8055
  defaultProjectRole: WorkspaceDefaultProjectRole.optional(),
8044
- aiAskFeaturesEnabled: z265.boolean().optional(),
8045
- aiCustomInstruction: z265.string().optional()
8056
+ aiAskFeaturesEnabled: z266.boolean().optional(),
8057
+ aiCustomInstruction: z266.string().optional()
8046
8058
  });
8047
8059
 
8048
8060
  // src/api/payloads/workspaces/workspace-integrations.ts
8049
- import { z as z266 } from "zod";
8050
- var DTOWorkspaceIntegrationOauthInput = z266.object({
8061
+ import { z as z267 } from "zod";
8062
+ var DTOWorkspaceIntegrationOauthInput = z267.object({
8051
8063
  type: IntegrationType
8052
8064
  });
8053
- var DTOWorkspaceIntegrationPATInput = z266.object({
8065
+ var DTOWorkspaceIntegrationPATInput = z267.object({
8054
8066
  type: IntegrationType,
8055
8067
  token: IntegrationToken
8056
8068
  });
8057
- var DTOWorkspaceIntegrationGetGitObjectsInput = z266.object({
8058
- organization: z266.string().optional(),
8069
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z267.object({
8070
+ organization: z267.string().optional(),
8059
8071
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
8060
- project: z266.string().optional(),
8072
+ project: z267.string().optional(),
8061
8073
  // Only for Bitbucket and Azure
8062
- repository: z266.string().optional(),
8074
+ repository: z267.string().optional(),
8063
8075
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
8064
- branch: z266.string().optional(),
8076
+ branch: z267.string().optional(),
8065
8077
  // For all providers, useful for PR creations.
8066
- user: z266.string().optional()
8078
+ user: z267.string().optional()
8067
8079
  // Only for Gitlab User Repositories
8068
8080
  });
8069
8081
 
8070
8082
  // src/api/dto/design-systems/version.ts
8071
- var DTODesignSystemVersion = z267.object({
8072
- id: z267.string(),
8073
- createdAt: z267.coerce.date(),
8083
+ var DTODesignSystemVersion = z268.object({
8084
+ id: z268.string(),
8085
+ createdAt: z268.coerce.date(),
8074
8086
  meta: ObjectMeta,
8075
- version: z267.string(),
8076
- isReadonly: z267.boolean(),
8077
- changeLog: z267.string(),
8078
- designSystemId: z267.string()
8087
+ version: z268.string(),
8088
+ isReadonly: z268.boolean(),
8089
+ changeLog: z268.string(),
8090
+ designSystemId: z268.string()
8079
8091
  });
8080
- var DTODesignSystemVersionsListResponse = z267.object({
8081
- designSystemVersions: z267.array(DTODesignSystemVersion)
8092
+ var DTODesignSystemVersionsListResponse = z268.object({
8093
+ designSystemVersions: z268.array(DTODesignSystemVersion)
8082
8094
  });
8083
- var DTODesignSystemVersionGetResponse = z267.object({
8095
+ var DTODesignSystemVersionGetResponse = z268.object({
8084
8096
  designSystemVersion: DTODesignSystemVersion
8085
8097
  });
8086
- var DTODesignSystemVersionCreationResponse = z267.object({
8098
+ var DTODesignSystemVersionCreationResponse = z268.object({
8087
8099
  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(),
8100
+ version: z268.string(),
8101
+ changeLog: z268.string(),
8102
+ isReadOnly: z268.boolean(),
8103
+ designSystemId: z268.string(),
8104
+ jobId: z268.string()
8105
+ });
8106
+ var VersionSQSPayload = z268.object({
8107
+ jobId: z268.string(),
8108
+ designSystemId: z268.string(),
8097
8109
  input: DTOCreateVersionInput
8098
8110
  });
8099
- var DTODesignSystemVersionJobsResponse = z267.object({
8100
- jobs: z267.array(VersionCreationJob)
8111
+ var DTODesignSystemVersionJobsResponse = z268.object({
8112
+ jobs: z268.array(VersionCreationJob)
8101
8113
  });
8102
- var DTODesignSystemVersionJobStatusResponse = z267.object({
8114
+ var DTODesignSystemVersionJobStatusResponse = z268.object({
8103
8115
  job: VersionCreationJob
8104
8116
  });
8105
8117
 
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
8118
  // src/api/dto/design-systems/view.ts
8116
8119
  import { z as z269 } from "zod";
8117
8120
  var DTOElementViewColumnSharedAttributes = z269.object({
@@ -11390,7 +11393,7 @@ var DTOSandboxTemplateBuildFinalizeResponse = z345.object({
11390
11393
  ok: z345.boolean()
11391
11394
  });
11392
11395
 
11393
- // src/api/dto/storybook-sites/index.ts
11396
+ // src/api/dto/storybook-sites/storybook-sites.ts
11394
11397
  import { z as z346 } from "zod";
11395
11398
  var DTOStorybookUploadStatus = z346.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
11396
11399
  var DTOStorybookSiteVersion = z346.object({
@@ -11715,210 +11718,8 @@ var CodegenEndpoint = class {
11715
11718
  }
11716
11719
  };
11717
11720
 
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
11721
  // src/api/endpoints/design-system/versions/brands.ts
11921
- import { z as z353 } from "zod";
11722
+ import { z as z351 } from "zod";
11922
11723
  var BrandsEndpoint = class {
11923
11724
  constructor(requestExecutor) {
11924
11725
  this.requestExecutor = requestExecutor;
@@ -11952,7 +11753,7 @@ var BrandsEndpoint = class {
11952
11753
  });
11953
11754
  }
11954
11755
  delete(dsId, vId, brandId) {
11955
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z353.any(), {
11756
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z351.any(), {
11956
11757
  method: "DELETE"
11957
11758
  });
11958
11759
  }
@@ -12072,34 +11873,13 @@ var DesignSystemComponentEndpoint = class {
12072
11873
  }
12073
11874
  };
12074
11875
 
12075
- // src/api/endpoints/design-system/versions/elements.ts
12076
- var ElementsEndpoint = class {
11876
+ // src/api/endpoints/design-system/versions/elements-action.ts
11877
+ var ElementsActionEndpoint = class {
12077
11878
  constructor(requestExecutor) {
12078
11879
  this.requestExecutor = requestExecutor;
12079
11880
  }
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 });
11881
+ async createDocPage(dsId, vId, input) {
11882
+ return this.action(dsId, vId, { type: "DocumentationPageCreate", input });
12103
11883
  }
12104
11884
  async createDocGroup(dsId, vId, input) {
12105
11885
  return this.action(dsId, vId, { type: "DocumentationGroupCreate", input });
@@ -12140,6 +11920,27 @@ var ElementsActionEndpoint = class {
12140
11920
  }
12141
11921
  };
12142
11922
 
11923
+ // src/api/endpoints/design-system/versions/elements.ts
11924
+ var ElementsEndpoint = class {
11925
+ constructor(requestExecutor) {
11926
+ this.requestExecutor = requestExecutor;
11927
+ }
11928
+ getElementsV1(dsId, vId, query) {
11929
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
11930
+ query: serializeQuery(query)
11931
+ });
11932
+ }
11933
+ getElementsV2(dsId, vId, query) {
11934
+ const fullQuery = {
11935
+ ...query,
11936
+ responseVersion: 2
11937
+ };
11938
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutputV2, {
11939
+ query: serializeQuery(fullQuery)
11940
+ });
11941
+ }
11942
+ };
11943
+
12143
11944
  // src/api/endpoints/design-system/versions/figma-component-groups.ts
12144
11945
  var FigmaComponentGroupsEndpoint = class {
12145
11946
  constructor(requestExecutor) {
@@ -12227,8 +12028,26 @@ var ImportJobsEndpoint = class {
12227
12028
  }
12228
12029
  };
12229
12030
 
12031
+ // src/api/endpoints/design-system/versions/overrides.ts
12032
+ import { z as z352 } from "zod";
12033
+ var OverridesEndpoint = class {
12034
+ constructor(requestExecutor) {
12035
+ this.requestExecutor = requestExecutor;
12036
+ }
12037
+ create(dsId, versionId, themeId, body) {
12038
+ return this.requestExecutor.json(
12039
+ `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
12040
+ z352.any(),
12041
+ {
12042
+ method: "POST",
12043
+ body
12044
+ }
12045
+ );
12046
+ }
12047
+ };
12048
+
12230
12049
  // src/api/endpoints/design-system/versions/property-definitions.ts
12231
- import { z as z354 } from "zod";
12050
+ import { z as z353 } from "zod";
12232
12051
  var ElementPropertyDefinitionsEndpoint = class {
12233
12052
  constructor(requestExecutor) {
12234
12053
  this.requestExecutor = requestExecutor;
@@ -12256,7 +12075,7 @@ var ElementPropertyDefinitionsEndpoint = class {
12256
12075
  delete(designSystemId, versionId, defId) {
12257
12076
  return this.requestExecutor.json(
12258
12077
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
12259
- z354.any(),
12078
+ z353.any(),
12260
12079
  { method: "DELETE" }
12261
12080
  );
12262
12081
  }
@@ -12295,27 +12114,7 @@ var VersionStatsEndpoint = class {
12295
12114
  };
12296
12115
 
12297
12116
  // 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
12117
+ import { z as z354 } from "zod";
12319
12118
  var ThemesEndpoint = class {
12320
12119
  constructor(requestExecutor) {
12321
12120
  this.requestExecutor = requestExecutor;
@@ -12338,7 +12137,7 @@ var ThemesEndpoint = class {
12338
12137
  });
12339
12138
  }
12340
12139
  delete(dsId, versionId, themeId) {
12341
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z356.any(), {
12140
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z354.any(), {
12342
12141
  method: "DELETE"
12343
12142
  });
12344
12143
  }
@@ -12471,6 +12270,208 @@ var DesignSystemVersionsEndpoint = class {
12471
12270
  }
12472
12271
  };
12473
12272
 
12273
+ // src/api/endpoints/design-system/analytics.ts
12274
+ var DesignSystemAnalyticsEndpoint = class {
12275
+ constructor(requestExecutor) {
12276
+ this.requestExecutor = requestExecutor;
12277
+ }
12278
+ get(designSystemId, versionId, body) {
12279
+ return this.requestExecutor.json(
12280
+ `/design-systems/${designSystemId}/versions/${versionId}/documentation/analytics`,
12281
+ DTODocumentationPageAnalyticsResponse,
12282
+ { method: "POST", body }
12283
+ );
12284
+ }
12285
+ };
12286
+
12287
+ // src/api/endpoints/design-system/bff.ts
12288
+ var DesignSystemBffEndpoint = class {
12289
+ constructor(requestExecutor) {
12290
+ this.requestExecutor = requestExecutor;
12291
+ }
12292
+ import(dsId, payload) {
12293
+ return this.requestExecutor.json(`/design-systems/${dsId}/bff/import`, DTOImportJobResponse, {
12294
+ method: "POST",
12295
+ body: payload
12296
+ });
12297
+ }
12298
+ };
12299
+
12300
+ // src/api/endpoints/design-system/contact.ts
12301
+ var DesignSystemContactsEndpoint = class {
12302
+ constructor(requestExecutor) {
12303
+ this.requestExecutor = requestExecutor;
12304
+ }
12305
+ list(dsId) {
12306
+ return this.requestExecutor.json(`/design-systems/${dsId}/contacts`, DTODesignSystemContactsResponse, {
12307
+ method: "GET"
12308
+ });
12309
+ }
12310
+ };
12311
+
12312
+ // src/api/endpoints/design-system/design-systems.ts
12313
+ import { z as z357 } from "zod";
12314
+
12315
+ // src/api/endpoints/design-system/figma-node-structures.ts
12316
+ var FigmaNodeStructuresEndpoint = class {
12317
+ constructor(requestExecutor) {
12318
+ this.requestExecutor = requestExecutor;
12319
+ }
12320
+ list(dsId) {
12321
+ return this.requestExecutor.json(
12322
+ `/design-systems/${dsId}/figma-node-structures`,
12323
+ DTOFigmaNodeStructureListResponse
12324
+ );
12325
+ }
12326
+ get(dsId, structureId) {
12327
+ return this.requestExecutor.json(
12328
+ `/design-systems/${dsId}/figma-node-structures/${structureId}`,
12329
+ DTOFigmaNodeStructureDetailResponse
12330
+ );
12331
+ }
12332
+ };
12333
+
12334
+ // src/api/endpoints/design-system/members.ts
12335
+ var DesignSystemMembersEndpoint = class {
12336
+ constructor(requestExecutor) {
12337
+ this.requestExecutor = requestExecutor;
12338
+ }
12339
+ list(dsId) {
12340
+ return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMemberListResponse, {
12341
+ method: "GET"
12342
+ });
12343
+ }
12344
+ update(dsId, body) {
12345
+ return this.requestExecutor.json(`/design-systems/${dsId}/members`, DTODesignSystemMembersUpdateResponse, {
12346
+ method: "POST",
12347
+ body
12348
+ });
12349
+ }
12350
+ };
12351
+
12352
+ // src/api/endpoints/design-system/redirects.ts
12353
+ var DesignSystemPageRedirectsEndpoint = class {
12354
+ constructor(requestExecutor) {
12355
+ this.requestExecutor = requestExecutor;
12356
+ }
12357
+ create(dsId, body) {
12358
+ return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectResponse, {
12359
+ body,
12360
+ method: "POST"
12361
+ });
12362
+ }
12363
+ list(dsId) {
12364
+ return this.requestExecutor.json(`/design-systems/${dsId}/documentation/redirects`, DTOPageRedirectListResponse, {
12365
+ method: "GET"
12366
+ });
12367
+ }
12368
+ update(dsId, redirectId, body) {
12369
+ return this.requestExecutor.json(
12370
+ `/design-systems/${dsId}/documentation/redirects/${redirectId}`,
12371
+ DTOPageRedirectResponse,
12372
+ {
12373
+ body,
12374
+ method: "PUT"
12375
+ }
12376
+ );
12377
+ }
12378
+ delete(dsId, redirectId) {
12379
+ return this.requestExecutor.json(
12380
+ `/design-systems/${dsId}/documentation/redirects/${redirectId}`,
12381
+ DTOPageRedirectDeleteResponse,
12382
+ {
12383
+ method: "DELETE"
12384
+ }
12385
+ );
12386
+ }
12387
+ };
12388
+
12389
+ // src/api/endpoints/design-system/sources.ts
12390
+ import { z as z355 } from "zod";
12391
+ var DesignSystemSourcesEndpoint = class {
12392
+ constructor(requestExecutor) {
12393
+ this.requestExecutor = requestExecutor;
12394
+ }
12395
+ create(dsId, payload) {
12396
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourceResponse, {
12397
+ method: "POST",
12398
+ body: payload
12399
+ });
12400
+ }
12401
+ list(dsId) {
12402
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
12403
+ }
12404
+ get(dsId, sourceId) {
12405
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
12406
+ }
12407
+ delete(dsId, sourceId) {
12408
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z355.any(), { method: "DELETE" });
12409
+ }
12410
+ updateFigmaSource(dsId, sourceId, payload) {
12411
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
12412
+ method: "PUT",
12413
+ body: payload
12414
+ });
12415
+ }
12416
+ updateStorybookSource(dsId, sourceId, payload) {
12417
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
12418
+ method: "PUT",
12419
+ body: payload
12420
+ });
12421
+ }
12422
+ figmaImport(dsId, payload) {
12423
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
12424
+ method: "POST",
12425
+ body: payload
12426
+ });
12427
+ }
12428
+ storybookImport(dsId, payload) {
12429
+ return this.requestExecutor.json(
12430
+ `/design-systems/${dsId}/versions/head/storybook-import`,
12431
+ DTODataSourcesStorybookResponse,
12432
+ {
12433
+ method: "POST",
12434
+ body: payload
12435
+ }
12436
+ );
12437
+ }
12438
+ updateStorybookImport(dsId, versionId, payload) {
12439
+ return this.requestExecutor.json(
12440
+ `/design-systems/${dsId}/versions/${versionId}/storybook-import`,
12441
+ DTODataSourcesStorybookResponse,
12442
+ {
12443
+ method: "POST",
12444
+ body: payload
12445
+ }
12446
+ );
12447
+ }
12448
+ };
12449
+
12450
+ // src/api/endpoints/design-system/storybook.ts
12451
+ import { z as z356 } from "zod";
12452
+ var StorybookEntriesEndpoint = class {
12453
+ constructor(requestExecutor) {
12454
+ this.requestExecutor = requestExecutor;
12455
+ }
12456
+ list(dsId, query = {}) {
12457
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse, {
12458
+ query: new URLSearchParams(pickDefined(query))
12459
+ });
12460
+ }
12461
+ replace(dsId, entryId) {
12462
+ return this.requestExecutor.json(
12463
+ `/design-systems/${dsId}/versions/head/storybook/${entryId}`,
12464
+ DTOStorybookEntryReplaceAction,
12465
+ { method: "PUT" }
12466
+ );
12467
+ }
12468
+ delete(dsId, entryId) {
12469
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z356.any(), {
12470
+ method: "DELETE"
12471
+ });
12472
+ }
12473
+ };
12474
+
12474
12475
  // src/api/endpoints/design-system/design-systems.ts
12475
12476
  var DesignSystemsEndpoint = class {
12476
12477
  constructor(requestExecutor) {
@@ -12529,25 +12530,6 @@ var DesignSystemsEndpoint = class {
12529
12530
  }
12530
12531
  };
12531
12532
 
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
12533
  // src/api/endpoints/forge/agents.ts
12552
12534
  var ForgeAgentsEndpoint = class {
12553
12535
  constructor(requestExecutor) {
@@ -13123,19 +13105,6 @@ var ForgeProjectIterationsEndpoint = class {
13123
13105
  }
13124
13106
  };
13125
13107
 
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
13108
  // src/api/endpoints/mcp/streams.ts
13140
13109
  var MCPStreamsEndpoint = class {
13141
13110
  constructor(requestExecutor) {
@@ -13202,88 +13171,6 @@ var SandboxesEndpoint = class {
13202
13171
  }
13203
13172
  };
13204
13173
 
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
13174
  // src/api/endpoints/workspaces/billing.ts
13288
13175
  var WorkspaceBillingEndpoint = class {
13289
13176
  constructor(requestExecutor) {
@@ -13304,7 +13191,7 @@ var WorkspaceBillingEndpoint = class {
13304
13191
  };
13305
13192
 
13306
13193
  // src/api/endpoints/workspaces/chat-threads.ts
13307
- import { z as z360 } from "zod";
13194
+ import { z as z359 } from "zod";
13308
13195
  var WorkspaceChatThreadsEndpoint = class {
13309
13196
  constructor(requestExecutor) {
13310
13197
  this.requestExecutor = requestExecutor;
@@ -13336,7 +13223,7 @@ var WorkspaceChatThreadsEndpoint = class {
13336
13223
  );
13337
13224
  }
13338
13225
  delete(workspaceId, threadId) {
13339
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z360.any(), {
13226
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}`, z359.any(), {
13340
13227
  method: "DELETE"
13341
13228
  });
13342
13229
  }
@@ -13368,7 +13255,7 @@ var ChatThreadMessagesEndpoint = class {
13368
13255
  );
13369
13256
  }
13370
13257
  score(workspaceId, threadId, body) {
13371
- return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z360.any(), {
13258
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/forge/threads/${threadId}/scores`, z359.any(), {
13372
13259
  method: "POST",
13373
13260
  body
13374
13261
  });
@@ -13376,7 +13263,7 @@ var ChatThreadMessagesEndpoint = class {
13376
13263
  };
13377
13264
 
13378
13265
  // src/api/endpoints/workspaces/integrations.ts
13379
- import { z as z361 } from "zod";
13266
+ import { z as z360 } from "zod";
13380
13267
  var WorkspaceIntegrationsEndpoint = class {
13381
13268
  constructor(requestExecutor) {
13382
13269
  this.requestExecutor = requestExecutor;
@@ -13385,7 +13272,7 @@ var WorkspaceIntegrationsEndpoint = class {
13385
13272
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
13386
13273
  }
13387
13274
  delete(wsId, iId) {
13388
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z361.unknown(), { method: "DELETE" });
13275
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z360.unknown(), { method: "DELETE" });
13389
13276
  }
13390
13277
  };
13391
13278
 
@@ -13417,7 +13304,7 @@ var WorkspaceInvitationsEndpoint = class {
13417
13304
  };
13418
13305
 
13419
13306
  // src/api/endpoints/workspaces/members.ts
13420
- import { z as z362 } from "zod";
13307
+ import { z as z361 } from "zod";
13421
13308
  var WorkspaceMembersEndpoint = class {
13422
13309
  constructor(requestExecutor) {
13423
13310
  this.requestExecutor = requestExecutor;
@@ -13434,7 +13321,7 @@ var WorkspaceMembersEndpoint = class {
13434
13321
  });
13435
13322
  }
13436
13323
  invite(workspaceId, body) {
13437
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z362.any(), { method: "POST", body });
13324
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z361.any(), { method: "POST", body });
13438
13325
  }
13439
13326
  delete(workspaceId, userId) {
13440
13327
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -13463,7 +13350,7 @@ var WorkspaceNpmRegistryEndpoint = class {
13463
13350
  };
13464
13351
 
13465
13352
  // src/api/endpoints/workspaces/subscription.ts
13466
- import { z as z363 } from "zod";
13353
+ import { z as z362 } from "zod";
13467
13354
  var WorkspaceSubscriptionEndpoint = class {
13468
13355
  constructor(requestExecutor) {
13469
13356
  this.requestExecutor = requestExecutor;
@@ -13474,7 +13361,7 @@ var WorkspaceSubscriptionEndpoint = class {
13474
13361
  });
13475
13362
  }
13476
13363
  update(workspaceId, body) {
13477
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z363.any(), {
13364
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z362.any(), {
13478
13365
  method: "PUT",
13479
13366
  body
13480
13367
  });
@@ -13492,7 +13379,7 @@ var WorkspaceSubscriptionEndpoint = class {
13492
13379
  };
13493
13380
 
13494
13381
  // src/api/endpoints/workspaces/workspaces.ts
13495
- import { z as z364 } from "zod";
13382
+ import { z as z363 } from "zod";
13496
13383
  var WorkspacesEndpoint = class {
13497
13384
  constructor(requestExecutor) {
13498
13385
  this.requestExecutor = requestExecutor;
@@ -13528,7 +13415,7 @@ var WorkspacesEndpoint = class {
13528
13415
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
13529
13416
  }
13530
13417
  delete(workspaceId) {
13531
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z364.any(), { method: "DELETE" });
13418
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z363.any(), { method: "DELETE" });
13532
13419
  }
13533
13420
  getPortalSettings(workspaceId) {
13534
13421
  return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
@@ -13549,6 +13436,120 @@ var WorkspacesEndpoint = class {
13549
13436
  }
13550
13437
  };
13551
13438
 
13439
+ // src/api/endpoints/files.ts
13440
+ var FilesEndpoint = class {
13441
+ constructor(requestExecutor) {
13442
+ this.requestExecutor = requestExecutor;
13443
+ }
13444
+ upload(body) {
13445
+ return this.requestExecutor.json(`/files/upload`, DTOFileUploadBulkResponse, {
13446
+ method: "POST",
13447
+ body
13448
+ });
13449
+ }
13450
+ finalizeUpload(body) {
13451
+ return this.requestExecutor.json(`/files/upload/finalize`, DTOFileFinalizeBulkResponse, {
13452
+ method: "POST",
13453
+ body
13454
+ });
13455
+ }
13456
+ };
13457
+
13458
+ // src/api/endpoints/liveblocks.ts
13459
+ var LiveblocksEndpoint = class {
13460
+ constructor(requestExecutor) {
13461
+ this.requestExecutor = requestExecutor;
13462
+ }
13463
+ auth(body) {
13464
+ return this.requestExecutor.json("/liveblocks/auth", DTOLiveblocksAuthResponse, {
13465
+ method: "POST",
13466
+ body
13467
+ });
13468
+ }
13469
+ };
13470
+
13471
+ // src/api/endpoints/storybook-sites.ts
13472
+ import z364 from "zod";
13473
+ var StorybookSitesEndpoint = class {
13474
+ constructor(requestExecutor) {
13475
+ this.requestExecutor = requestExecutor;
13476
+ }
13477
+ listSites(query) {
13478
+ return this.requestExecutor.json(`/storybook/sites`, DTOStorybookSiteListResponse, {
13479
+ query: new URLSearchParams(query)
13480
+ });
13481
+ }
13482
+ deleteSite(siteId) {
13483
+ return this.requestExecutor.json(`/storybook/sites/${siteId}`, z364.unknown(), {
13484
+ method: "DELETE"
13485
+ });
13486
+ }
13487
+ uploadInit(body) {
13488
+ return this.requestExecutor.json(`/storybook/site-versions`, DTOStorybookSiteUploadResponse, {
13489
+ body,
13490
+ method: "POST"
13491
+ });
13492
+ }
13493
+ getVersion(siteVersionId) {
13494
+ return this.requestExecutor.json(`/storybook/site-versions/${siteVersionId}`, DTOStorybookSiteVersionResponse);
13495
+ }
13496
+ uploadFinailize(siteVersionId) {
13497
+ return this.requestExecutor.json(`/storybook/site-versions/${siteVersionId}`, DTOStorybookSiteVersionResponse, {
13498
+ method: "PUT"
13499
+ });
13500
+ }
13501
+ };
13502
+
13503
+ // src/api/endpoints/threads.ts
13504
+ var ThreadsEndpoint = class {
13505
+ constructor(requestExecutor) {
13506
+ this.requestExecutor = requestExecutor;
13507
+ }
13508
+ listMessages(threadId) {
13509
+ return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse);
13510
+ }
13511
+ postMessage(threadId, body) {
13512
+ return this.requestExecutor.json(`/threads/${threadId}/messages`, DTOThreadMessageListResponse, {
13513
+ method: "POST",
13514
+ body
13515
+ });
13516
+ }
13517
+ postReaction(threadId, body) {
13518
+ return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOThreadReactionResponse, {
13519
+ method: "POST",
13520
+ body
13521
+ });
13522
+ }
13523
+ deleteReaction(threadId, body) {
13524
+ return this.requestExecutor.json(`/threads/${threadId}/reactions`, DTOFileUploadFinalizeResponse, {
13525
+ method: "DELETE",
13526
+ body
13527
+ });
13528
+ }
13529
+ };
13530
+
13531
+ // src/api/endpoints/users.ts
13532
+ var UsersEndpoint = class {
13533
+ constructor(requestExecutor) {
13534
+ this.requestExecutor = requestExecutor;
13535
+ }
13536
+ getMe() {
13537
+ return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
13538
+ }
13539
+ listWorkspaces(uid) {
13540
+ return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
13541
+ }
13542
+ delete(uid) {
13543
+ return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
13544
+ }
13545
+ updateProfile(uid, body) {
13546
+ return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
13547
+ method: "PUT",
13548
+ body
13549
+ });
13550
+ }
13551
+ };
13552
+
13552
13553
  // src/api/transport/request-executor-error.ts
13553
13554
  var RequestExecutorError = class _RequestExecutorError extends Error {
13554
13555
  constructor(type, message, errorCode, serverErrorType, cause) {