@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.js CHANGED
@@ -3843,7 +3843,8 @@ var ThemeImportModel = _zod.z.object({
3843
3843
  originSource: ThemeOriginSource,
3844
3844
  overrides: _zod.z.array(ThemeOverrideImportModel),
3845
3845
  sortOrder: _zod.z.number(),
3846
- collectionIds: _zod.z.array(_zod.z.string()).optional()
3846
+ collectionIds: _zod.z.array(_zod.z.string()).optional(),
3847
+ collectionLegacyIds: _zod.z.array(_zod.z.string()).optional()
3847
3848
  });
3848
3849
  var ThemeImportModelInput = _zod.z.object({
3849
3850
  id: _zod.z.string(),
@@ -3851,7 +3852,8 @@ var ThemeImportModelInput = _zod.z.object({
3851
3852
  meta: ObjectMeta,
3852
3853
  originObjects: _zod.z.array(ThemeOriginObject),
3853
3854
  overrides: _zod.z.array(ThemeOverrideImportModelInput),
3854
- collectionIds: _zod.z.array(_zod.z.string()).optional()
3855
+ collectionIds: _zod.z.array(_zod.z.string()).optional(),
3856
+ collectionLegacyIds: _zod.z.array(_zod.z.string()).optional()
3855
3857
  });
3856
3858
  var ThemeUpdateImportModel = _zod.z.object({
3857
3859
  themePersistentId: _zod.z.string(),
@@ -3863,6 +3865,7 @@ var ThemeUpdateImportModelInput = _zod.z.object({
3863
3865
  });
3864
3866
  var DesignTokenImportModelPart = _zod.z.object({
3865
3867
  collectionId: _zod.z.string().optional(),
3868
+ collectionLegacyId: _zod.z.string().optional(),
3866
3869
  codeSyntax: _zod.z.record(_zod.z.coerce.string()).optional(),
3867
3870
  scopes: _zod.z.array(_zod.z.string()).optional()
3868
3871
  });
@@ -4176,6 +4179,13 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
4176
4179
  _zod.z.literal("center"),
4177
4180
  _zod.z.literal("baseline")
4178
4181
  ]).optional(),
4182
+ justifySelf: _zod.z.union([
4183
+ _zod.z.literal("auto"),
4184
+ _zod.z.literal("stretch"),
4185
+ _zod.z.literal("flex-start"),
4186
+ _zod.z.literal("flex-end"),
4187
+ _zod.z.literal("center")
4188
+ ]).optional(),
4179
4189
  flexGrow: _zod.z.number().optional(),
4180
4190
  flexShrink: _zod.z.number().optional(),
4181
4191
  flexBasis: _zod.z.string().optional(),
@@ -7748,6 +7758,15 @@ var DTOUserDesignSystemsResponse = _zod.z.object({
7748
7758
  workspaces: DTOWorkspace.array()
7749
7759
  });
7750
7760
 
7761
+ // src/api/dto/design-systems/version-room.ts
7762
+
7763
+ var DTODesignSystemVersionRoom = _zod.z.object({
7764
+ id: _zod.z.string()
7765
+ });
7766
+ var DTODesignSystemVersionRoomResponse = _zod.z.object({
7767
+ room: DTODesignSystemVersionRoom
7768
+ });
7769
+
7751
7770
  // src/api/dto/design-systems/version.ts
7752
7771
 
7753
7772
 
@@ -8103,15 +8122,6 @@ var DTODesignSystemVersionJobStatusResponse = _zod.z.object({
8103
8122
  job: VersionCreationJob
8104
8123
  });
8105
8124
 
8106
- // src/api/dto/design-systems/version-room.ts
8107
-
8108
- var DTODesignSystemVersionRoom = _zod.z.object({
8109
- id: _zod.z.string()
8110
- });
8111
- var DTODesignSystemVersionRoomResponse = _zod.z.object({
8112
- room: DTODesignSystemVersionRoom
8113
- });
8114
-
8115
8125
  // src/api/dto/design-systems/view.ts
8116
8126
 
8117
8127
  var DTOElementViewColumnSharedAttributes = _zod.z.object({
@@ -11219,7 +11229,7 @@ var DTOFigmaExportNodePayload = _zod.z.object({
11219
11229
  var DTOFigmaExportNodeResponse = _zod.z.object({
11220
11230
  file: DTOFile,
11221
11231
  // TODO (jovanblazek): Remove sceneNodes from response when done with development
11222
- sceneNodes: _zod.z.array(_zod.z.any()).optional()
11232
+ scene: _zod.z.any().optional()
11223
11233
  });
11224
11234
 
11225
11235
  // src/api/dto/liveblocks/auth-response.ts
@@ -11390,7 +11400,7 @@ var DTOSandboxTemplateBuildFinalizeResponse = _zod2.default.object({
11390
11400
  ok: _zod2.default.boolean()
11391
11401
  });
11392
11402
 
11393
- // src/api/dto/storybook-sites/index.ts
11403
+ // src/api/dto/storybook-sites/storybook-sites.ts
11394
11404
 
11395
11405
  var DTOStorybookUploadStatus = _zod.z.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
11396
11406
  var DTOStorybookSiteVersion = _zod.z.object({
@@ -11715,208 +11725,6 @@ 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
-
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
-
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}`, _zod.z.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
-
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}`, _zod.z.any(), {
11915
- method: "DELETE"
11916
- });
11917
- }
11918
- };
11919
-
11920
11728
  // src/api/endpoints/design-system/versions/brands.ts
11921
11729
 
11922
11730
  var BrandsEndpoint = class {
@@ -12072,27 +11880,6 @@ var DesignSystemComponentEndpoint = class {
12072
11880
  }
12073
11881
  };
12074
11882
 
12075
- // src/api/endpoints/design-system/versions/elements.ts
12076
- var ElementsEndpoint = class {
12077
- constructor(requestExecutor) {
12078
- this.requestExecutor = requestExecutor;
12079
- }
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
11883
  // src/api/endpoints/design-system/versions/elements-action.ts
12097
11884
  var ElementsActionEndpoint = class {
12098
11885
  constructor(requestExecutor) {
@@ -12140,17 +11927,38 @@ var ElementsActionEndpoint = class {
12140
11927
  }
12141
11928
  };
12142
11929
 
12143
- // src/api/endpoints/design-system/versions/figma-component-groups.ts
12144
- var FigmaComponentGroupsEndpoint = class {
11930
+ // src/api/endpoints/design-system/versions/elements.ts
11931
+ var ElementsEndpoint = class {
12145
11932
  constructor(requestExecutor) {
12146
11933
  this.requestExecutor = requestExecutor;
12147
11934
  }
12148
- async list(dsId, vId) {
12149
- return this.requestExecutor.json(
12150
- `/design-systems/${dsId}/versions/${vId}/component-groups`,
12151
- DTOFigmaComponentGroupListResponse
12152
- );
12153
- }
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
+
11951
+ // src/api/endpoints/design-system/versions/figma-component-groups.ts
11952
+ var FigmaComponentGroupsEndpoint = class {
11953
+ constructor(requestExecutor) {
11954
+ this.requestExecutor = requestExecutor;
11955
+ }
11956
+ async list(dsId, vId) {
11957
+ return this.requestExecutor.json(
11958
+ `/design-systems/${dsId}/versions/${vId}/component-groups`,
11959
+ DTOFigmaComponentGroupListResponse
11960
+ );
11961
+ }
12154
11962
  };
12155
11963
 
12156
11964
  // src/api/endpoints/design-system/versions/figma-components.ts
@@ -12227,6 +12035,24 @@ var ImportJobsEndpoint = class {
12227
12035
  }
12228
12036
  };
12229
12037
 
12038
+ // src/api/endpoints/design-system/versions/overrides.ts
12039
+
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
+ _zod.z.any(),
12048
+ {
12049
+ method: "POST",
12050
+ body
12051
+ }
12052
+ );
12053
+ }
12054
+ };
12055
+
12230
12056
  // src/api/endpoints/design-system/versions/property-definitions.ts
12231
12057
 
12232
12058
  var ElementPropertyDefinitionsEndpoint = class {
@@ -12296,26 +12122,6 @@ var VersionStatsEndpoint = class {
12296
12122
 
12297
12123
  // src/api/endpoints/design-system/versions/themes.ts
12298
12124
 
12299
-
12300
- // src/api/endpoints/design-system/versions/overrides.ts
12301
-
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
- _zod.z.any(),
12310
- {
12311
- method: "POST",
12312
- body
12313
- }
12314
- );
12315
- }
12316
- };
12317
-
12318
- // src/api/endpoints/design-system/versions/themes.ts
12319
12125
  var ThemesEndpoint = class {
12320
12126
  constructor(requestExecutor) {
12321
12127
  this.requestExecutor = requestExecutor;
@@ -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
+
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
+
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}`, _zod.z.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
+
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}`, _zod.z.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
-
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}`, _zod2.default.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) {
@@ -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
+
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}`, _zod2.default.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) {