@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.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
  });
@@ -7748,6 +7751,15 @@ var DTOUserDesignSystemsResponse = _zod.z.object({
7748
7751
  workspaces: DTOWorkspace.array()
7749
7752
  });
7750
7753
 
7754
+ // src/api/dto/design-systems/version-room.ts
7755
+
7756
+ var DTODesignSystemVersionRoom = _zod.z.object({
7757
+ id: _zod.z.string()
7758
+ });
7759
+ var DTODesignSystemVersionRoomResponse = _zod.z.object({
7760
+ room: DTODesignSystemVersionRoom
7761
+ });
7762
+
7751
7763
  // src/api/dto/design-systems/version.ts
7752
7764
 
7753
7765
 
@@ -8103,15 +8115,6 @@ var DTODesignSystemVersionJobStatusResponse = _zod.z.object({
8103
8115
  job: VersionCreationJob
8104
8116
  });
8105
8117
 
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
8118
  // src/api/dto/design-systems/view.ts
8116
8119
 
8117
8120
  var DTOElementViewColumnSharedAttributes = _zod.z.object({
@@ -11390,7 +11393,7 @@ var DTOSandboxTemplateBuildFinalizeResponse = _zod2.default.object({
11390
11393
  ok: _zod2.default.boolean()
11391
11394
  });
11392
11395
 
11393
- // src/api/dto/storybook-sites/index.ts
11396
+ // src/api/dto/storybook-sites/storybook-sites.ts
11394
11397
 
11395
11398
  var DTOStorybookUploadStatus = _zod.z.enum(["PendingUpload", "Failed", "InProgress", "Completed", "Timeout"]);
11396
11399
  var DTOStorybookSiteVersion = _zod.z.object({
@@ -11715,208 +11718,6 @@ 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
-
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
11721
  // src/api/endpoints/design-system/versions/brands.ts
11921
11722
 
11922
11723
  var BrandsEndpoint = class {
@@ -12072,27 +11873,6 @@ var DesignSystemComponentEndpoint = class {
12072
11873
  }
12073
11874
  };
12074
11875
 
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
11876
  // src/api/endpoints/design-system/versions/elements-action.ts
12097
11877
  var ElementsActionEndpoint = class {
12098
11878
  constructor(requestExecutor) {
@@ -12140,19 +11920,40 @@ var ElementsActionEndpoint = class {
12140
11920
  }
12141
11921
  };
12142
11922
 
12143
- // src/api/endpoints/design-system/versions/figma-component-groups.ts
12144
- var FigmaComponentGroupsEndpoint = class {
11923
+ // src/api/endpoints/design-system/versions/elements.ts
11924
+ var ElementsEndpoint = class {
12145
11925
  constructor(requestExecutor) {
12146
11926
  this.requestExecutor = requestExecutor;
12147
11927
  }
12148
- async list(dsId, vId) {
12149
- return this.requestExecutor.json(
12150
- `/design-systems/${dsId}/versions/${vId}/component-groups`,
12151
- DTOFigmaComponentGroupListResponse
12152
- );
11928
+ getElementsV1(dsId, vId, query) {
11929
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/elements`, DTOElementsGetOutput, {
11930
+ query: serializeQuery(query)
11931
+ });
12153
11932
  }
12154
- };
12155
-
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
+
11944
+ // src/api/endpoints/design-system/versions/figma-component-groups.ts
11945
+ var FigmaComponentGroupsEndpoint = class {
11946
+ constructor(requestExecutor) {
11947
+ this.requestExecutor = requestExecutor;
11948
+ }
11949
+ async list(dsId, vId) {
11950
+ return this.requestExecutor.json(
11951
+ `/design-systems/${dsId}/versions/${vId}/component-groups`,
11952
+ DTOFigmaComponentGroupListResponse
11953
+ );
11954
+ }
11955
+ };
11956
+
12156
11957
  // src/api/endpoints/design-system/versions/figma-components.ts
12157
11958
  var FigmaComponentsEndpoint = class {
12158
11959
  constructor(requestExecutor) {
@@ -12227,6 +12028,24 @@ var ImportJobsEndpoint = class {
12227
12028
  }
12228
12029
  };
12229
12030
 
12031
+ // src/api/endpoints/design-system/versions/overrides.ts
12032
+
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
+ _zod.z.any(),
12041
+ {
12042
+ method: "POST",
12043
+ body
12044
+ }
12045
+ );
12046
+ }
12047
+ };
12048
+
12230
12049
  // src/api/endpoints/design-system/versions/property-definitions.ts
12231
12050
 
12232
12051
  var ElementPropertyDefinitionsEndpoint = class {
@@ -12296,26 +12115,6 @@ var VersionStatsEndpoint = class {
12296
12115
 
12297
12116
  // src/api/endpoints/design-system/versions/themes.ts
12298
12117
 
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
12118
  var ThemesEndpoint = class {
12320
12119
  constructor(requestExecutor) {
12321
12120
  this.requestExecutor = requestExecutor;
@@ -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
+
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
+
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}`, _zod.z.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
+
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}`, _zod.z.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
-
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
13174
  // src/api/endpoints/workspaces/billing.ts
13288
13175
  var WorkspaceBillingEndpoint = class {
13289
13176
  constructor(requestExecutor) {
@@ -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
+
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}`, _zod2.default.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) {