@supernova-studio/client 1.10.2 → 1.10.4
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.d.mts +9204 -8965
- package/dist/index.d.ts +9204 -8965
- package/dist/index.js +90 -65
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +105 -80
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5652,14 +5652,24 @@ var NpmPackage = AnyRecord.and(
|
|
|
5652
5652
|
var NpmProxyTokenPayload = z204.object({
|
|
5653
5653
|
npmProxyRegistryConfigId: z204.string()
|
|
5654
5654
|
});
|
|
5655
|
-
var PortalSettingsTheme =
|
|
5655
|
+
var PortalSettingsTheme = UserTheme;
|
|
5656
|
+
var PortalSettingsSidebarLink = z205.object({
|
|
5657
|
+
name: z205.string(),
|
|
5658
|
+
url: z205.string(),
|
|
5659
|
+
emoji: z205.string()
|
|
5660
|
+
});
|
|
5661
|
+
var PortalSettingsSidebarSection = z205.object({
|
|
5662
|
+
sectionName: z205.string(),
|
|
5663
|
+
links: z205.array(PortalSettingsSidebarLink)
|
|
5664
|
+
});
|
|
5665
|
+
var PortalSettingsSidebar = z205.array(PortalSettingsSidebarSection);
|
|
5656
5666
|
var PortalSettings = z205.object({
|
|
5657
5667
|
id: z205.string(),
|
|
5658
5668
|
workspaceId: z205.string(),
|
|
5659
5669
|
enabledDesignSystemIds: z205.array(z205.string()),
|
|
5660
5670
|
enabledBrandPersistentIds: z205.array(z205.string()),
|
|
5661
|
-
theme: PortalSettingsTheme,
|
|
5662
|
-
sidebar:
|
|
5671
|
+
theme: PortalSettingsTheme.nullish(),
|
|
5672
|
+
sidebar: PortalSettingsSidebar.nullish(),
|
|
5663
5673
|
createdAt: z205.coerce.date(),
|
|
5664
5674
|
updatedAt: z205.coerce.date()
|
|
5665
5675
|
});
|
|
@@ -8867,65 +8877,8 @@ var DTODeleteForgeIterationMessageResponse = z298.object({
|
|
|
8867
8877
|
ok: z298.literal(true)
|
|
8868
8878
|
});
|
|
8869
8879
|
|
|
8870
|
-
// src/api/dto/forge/project.ts
|
|
8871
|
-
import { z as z300 } from "zod";
|
|
8872
|
-
|
|
8873
|
-
// src/api/dto/forge/project-member.ts
|
|
8874
|
-
import { z as z299 } from "zod";
|
|
8875
|
-
var DTOForgeProjectMember = z299.object({
|
|
8876
|
-
user: DTOUser,
|
|
8877
|
-
role: z299.string()
|
|
8878
|
-
// TODO: RCT-5287 Define enum for role
|
|
8879
|
-
});
|
|
8880
|
-
var DTOCreateForgeProjectMember = z299.object({
|
|
8881
|
-
userId: z299.string(),
|
|
8882
|
-
role: z299.string()
|
|
8883
|
-
// TODO: RCT-5287 Define enum for role
|
|
8884
|
-
});
|
|
8885
|
-
var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
8886
|
-
var DTORemoveForgeProjectMember = z299.object({
|
|
8887
|
-
userId: z299.string()
|
|
8888
|
-
});
|
|
8889
|
-
var DTOForgeProjectMembersListResponse = z299.object({
|
|
8890
|
-
members: z299.array(DTOForgeProjectMember)
|
|
8891
|
-
});
|
|
8892
|
-
var DTOForgeProjectMemberGetResponse = z299.object({
|
|
8893
|
-
member: DTOForgeProjectMember.nullable()
|
|
8894
|
-
});
|
|
8895
|
-
var DTOForgeProjectMemberCreateResponse = z299.object({
|
|
8896
|
-
member: DTOForgeProjectMember
|
|
8897
|
-
});
|
|
8898
|
-
var DTOForgeProjectMemberUpdateResponse = z299.object({
|
|
8899
|
-
member: DTOForgeProjectMember.nullable()
|
|
8900
|
-
});
|
|
8901
|
-
var DTOForgeProjectMemberRemoveResponse = z299.object({
|
|
8902
|
-
ok: z299.literal(true)
|
|
8903
|
-
});
|
|
8904
|
-
|
|
8905
|
-
// src/api/dto/forge/project.ts
|
|
8906
|
-
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
8907
|
-
context: ForgeProjectContext,
|
|
8908
|
-
members: z300.array(DTOForgeProjectMember)
|
|
8909
|
-
});
|
|
8910
|
-
var DTOCreateForgeProject = ForgeProject.pick({
|
|
8911
|
-
instruction: true,
|
|
8912
|
-
name: true,
|
|
8913
|
-
meta: true,
|
|
8914
|
-
fpContextId: true
|
|
8915
|
-
});
|
|
8916
|
-
var DTOUpdateForgeProject = DTOCreateForgeProject.extend({ id: z300.string() });
|
|
8917
|
-
var DTOForgeProjectGetResponse = z300.object({ project: DTOForgeProject.nullable() });
|
|
8918
|
-
var DTOForgeProjectsListResponse = z300.object({ projects: z300.array(DTOForgeProject) });
|
|
8919
|
-
var DTOCreateForgeProjectResponse = z300.object({
|
|
8920
|
-
project: DTOForgeProject
|
|
8921
|
-
});
|
|
8922
|
-
var DTOUpdateForgeProjectResponse = z300.object({
|
|
8923
|
-
project: DTOForgeProject.nullable()
|
|
8924
|
-
});
|
|
8925
|
-
var DTORemoveForgeProjectResponse = z300.object({ ok: z300.literal(true) });
|
|
8926
|
-
|
|
8927
8880
|
// src/api/dto/forge/project-context.ts
|
|
8928
|
-
import { z as
|
|
8881
|
+
import { z as z299 } from "zod";
|
|
8929
8882
|
var DTOForgeProjectContext = ForgeProjectContext;
|
|
8930
8883
|
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
8931
8884
|
definition: true,
|
|
@@ -8937,17 +8890,17 @@ var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
|
8937
8890
|
tailwindConfig: true,
|
|
8938
8891
|
styling: true
|
|
8939
8892
|
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
8940
|
-
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id:
|
|
8941
|
-
var DTOForgeProjectContextGetResponse =
|
|
8942
|
-
var DTOForgeProjectContextListResponse =
|
|
8943
|
-
var DTOForgeProjectContextCreateResponse =
|
|
8944
|
-
var DTOForgeProjectContextUpdateResponse =
|
|
8945
|
-
var DTOForgeProjectContextRemoveResponse =
|
|
8946
|
-
ok:
|
|
8893
|
+
var DTOUpdateForgeProjectContext = DTOForgeProjectContext.extend({ id: z299.string() });
|
|
8894
|
+
var DTOForgeProjectContextGetResponse = z299.object({ context: DTOForgeProjectContext.nullable() });
|
|
8895
|
+
var DTOForgeProjectContextListResponse = z299.object({ contexts: z299.array(DTOForgeProjectContext) });
|
|
8896
|
+
var DTOForgeProjectContextCreateResponse = z299.object({ context: DTOForgeProjectContext });
|
|
8897
|
+
var DTOForgeProjectContextUpdateResponse = z299.object({ context: DTOForgeProjectContext.nullable() });
|
|
8898
|
+
var DTOForgeProjectContextRemoveResponse = z299.object({
|
|
8899
|
+
ok: z299.literal(true)
|
|
8947
8900
|
});
|
|
8948
8901
|
|
|
8949
8902
|
// src/api/dto/forge/project-iteration.ts
|
|
8950
|
-
import { z as
|
|
8903
|
+
import { z as z300 } from "zod";
|
|
8951
8904
|
var DTOForgeProjectIterationMergeMeta = ForgeProjectIterationMergeMeta;
|
|
8952
8905
|
var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
8953
8906
|
artifacts: true,
|
|
@@ -8958,7 +8911,7 @@ var DTOForgeProjectIteration = ForgeProjectIteration.omit({
|
|
|
8958
8911
|
messages: DTOForgeIterationMessage.array(),
|
|
8959
8912
|
mergeMeta: DTOForgeProjectIterationMergeMeta.optional()
|
|
8960
8913
|
});
|
|
8961
|
-
var DTOGetForgeProjectIterationResponse =
|
|
8914
|
+
var DTOGetForgeProjectIterationResponse = z300.object({
|
|
8962
8915
|
iteration: DTOForgeProjectIteration.nullable()
|
|
8963
8916
|
});
|
|
8964
8917
|
var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
@@ -8968,17 +8921,72 @@ var DTOCreateForgeProjectIteration = DTOForgeProjectIteration.omit({
|
|
|
8968
8921
|
mergeMeta: true,
|
|
8969
8922
|
createdAt: true
|
|
8970
8923
|
});
|
|
8971
|
-
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id:
|
|
8972
|
-
var DTOCreateForgeProjectIterationResponse =
|
|
8924
|
+
var DTOUpdateForgeProjectIteration = DTOCreateForgeProjectIteration.extend({ id: z300.string() });
|
|
8925
|
+
var DTOCreateForgeProjectIterationResponse = z300.object({
|
|
8973
8926
|
iteration: DTOForgeProjectIteration
|
|
8974
8927
|
});
|
|
8975
|
-
var DTOUpdateForgeProjectIterationResponse =
|
|
8928
|
+
var DTOUpdateForgeProjectIterationResponse = z300.object({
|
|
8976
8929
|
iteration: DTOForgeProjectIteration.nullable()
|
|
8977
8930
|
});
|
|
8978
|
-
var DTODeleteForgeProjectIterationResponse =
|
|
8979
|
-
ok:
|
|
8931
|
+
var DTODeleteForgeProjectIterationResponse = z300.object({
|
|
8932
|
+
ok: z300.literal(true)
|
|
8933
|
+
});
|
|
8934
|
+
var DTOForgeProjectIterationListResponse = z300.object({ iterations: z300.array(DTOForgeProjectIteration) });
|
|
8935
|
+
|
|
8936
|
+
// src/api/dto/forge/project-member.ts
|
|
8937
|
+
import { z as z301 } from "zod";
|
|
8938
|
+
var DTOForgeProjectMember = z301.object({
|
|
8939
|
+
user: DTOUser,
|
|
8940
|
+
role: z301.string()
|
|
8941
|
+
// TODO: RCT-5287 Define enum for role
|
|
8942
|
+
});
|
|
8943
|
+
var DTOCreateForgeProjectMember = z301.object({
|
|
8944
|
+
userId: z301.string(),
|
|
8945
|
+
role: z301.string()
|
|
8946
|
+
// TODO: RCT-5287 Define enum for role
|
|
8947
|
+
});
|
|
8948
|
+
var DTOUpdateForgeProjectMember = DTOCreateForgeProjectMember;
|
|
8949
|
+
var DTORemoveForgeProjectMember = z301.object({
|
|
8950
|
+
userId: z301.string()
|
|
8951
|
+
});
|
|
8952
|
+
var DTOForgeProjectMembersListResponse = z301.object({
|
|
8953
|
+
members: z301.array(DTOForgeProjectMember)
|
|
8954
|
+
});
|
|
8955
|
+
var DTOForgeProjectMemberGetResponse = z301.object({
|
|
8956
|
+
member: DTOForgeProjectMember.nullable()
|
|
8957
|
+
});
|
|
8958
|
+
var DTOForgeProjectMemberCreateResponse = z301.object({
|
|
8959
|
+
member: DTOForgeProjectMember
|
|
8960
|
+
});
|
|
8961
|
+
var DTOForgeProjectMemberUpdateResponse = z301.object({
|
|
8962
|
+
member: DTOForgeProjectMember.nullable()
|
|
8963
|
+
});
|
|
8964
|
+
var DTOForgeProjectMemberRemoveResponse = z301.object({
|
|
8965
|
+
ok: z301.literal(true)
|
|
8980
8966
|
});
|
|
8981
|
-
|
|
8967
|
+
|
|
8968
|
+
// src/api/dto/forge/project.ts
|
|
8969
|
+
import { z as z302 } from "zod";
|
|
8970
|
+
var DTOForgeProject = ForgeProject.omit({ fpContextId: true }).extend({
|
|
8971
|
+
context: ForgeProjectContext,
|
|
8972
|
+
members: z302.array(DTOForgeProjectMember)
|
|
8973
|
+
});
|
|
8974
|
+
var DTOCreateForgeProject = ForgeProject.pick({
|
|
8975
|
+
instruction: true,
|
|
8976
|
+
name: true,
|
|
8977
|
+
meta: true,
|
|
8978
|
+
fpContextId: true
|
|
8979
|
+
});
|
|
8980
|
+
var DTOUpdateForgeProject = DTOCreateForgeProject.extend({ id: z302.string() });
|
|
8981
|
+
var DTOForgeProjectGetResponse = z302.object({ project: DTOForgeProject.nullable() });
|
|
8982
|
+
var DTOForgeProjectsListResponse = z302.object({ projects: z302.array(DTOForgeProject) });
|
|
8983
|
+
var DTOCreateForgeProjectResponse = z302.object({
|
|
8984
|
+
project: DTOForgeProject
|
|
8985
|
+
});
|
|
8986
|
+
var DTOUpdateForgeProjectResponse = z302.object({
|
|
8987
|
+
project: DTOForgeProject.nullable()
|
|
8988
|
+
});
|
|
8989
|
+
var DTORemoveForgeProjectResponse = z302.object({ ok: z302.literal(true) });
|
|
8982
8990
|
|
|
8983
8991
|
// src/api/dto/forge/threads.ts
|
|
8984
8992
|
import { z as z303 } from "zod";
|
|
@@ -9050,13 +9058,16 @@ var DTOLiveblocksAuthResponse = z304.object({
|
|
|
9050
9058
|
// src/api/dto/portal/portal-settings.ts
|
|
9051
9059
|
import { z as z305 } from "zod";
|
|
9052
9060
|
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
9061
|
+
var DTOPortalSettingsSidebarLink = PortalSettingsSidebarLink;
|
|
9062
|
+
var DTOPortalSettingsSidebarSection = PortalSettingsSidebarSection;
|
|
9063
|
+
var DTOPortalSettingsSidebar = PortalSettingsSidebar;
|
|
9053
9064
|
var DTOPortalSettings = z305.object({
|
|
9054
9065
|
id: z305.string(),
|
|
9055
9066
|
workspaceId: z305.string(),
|
|
9056
9067
|
enabledDesignSystemIds: z305.array(z305.string()),
|
|
9057
9068
|
enabledBrandPersistentIds: z305.array(z305.string()),
|
|
9058
|
-
theme:
|
|
9059
|
-
sidebar:
|
|
9069
|
+
theme: DTOPortalSettingsTheme.nullish(),
|
|
9070
|
+
sidebar: DTOPortalSettingsSidebar.nullish(),
|
|
9060
9071
|
createdAt: z305.coerce.date(),
|
|
9061
9072
|
updatedAt: z305.coerce.date()
|
|
9062
9073
|
});
|
|
@@ -9066,8 +9077,8 @@ var DTOPortalSettingsGetResponse = z305.object({
|
|
|
9066
9077
|
var DTOPortalSettingsUpdatePayload = z305.object({
|
|
9067
9078
|
enabledDesignSystemIds: z305.array(z305.string()).optional(),
|
|
9068
9079
|
enabledBrandPersistentIds: z305.array(z305.string()).optional(),
|
|
9069
|
-
theme: DTOPortalSettingsTheme.
|
|
9070
|
-
sidebar:
|
|
9080
|
+
theme: DTOPortalSettingsTheme.nullish(),
|
|
9081
|
+
sidebar: DTOPortalSettingsSidebar.nullish()
|
|
9071
9082
|
});
|
|
9072
9083
|
|
|
9073
9084
|
// src/api/dto/themes/override.ts
|
|
@@ -10817,6 +10828,17 @@ var WorkspacesEndpoint = class {
|
|
|
10817
10828
|
subscription(workspaceId) {
|
|
10818
10829
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z321.any(), { method: "GET" });
|
|
10819
10830
|
}
|
|
10831
|
+
getPortalSettings(workspaceId) {
|
|
10832
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
10833
|
+
method: "GET"
|
|
10834
|
+
});
|
|
10835
|
+
}
|
|
10836
|
+
updatePortalSettings(workspaceId, body) {
|
|
10837
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/portal/settings`, DTOPortalSettingsGetResponse, {
|
|
10838
|
+
method: "PUT",
|
|
10839
|
+
body
|
|
10840
|
+
});
|
|
10841
|
+
}
|
|
10820
10842
|
transferOwnership(workspaceId, body) {
|
|
10821
10843
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
10822
10844
|
method: "PUT",
|
|
@@ -16867,6 +16889,9 @@ export {
|
|
|
16867
16889
|
DTOPipelineUpdateBody,
|
|
16868
16890
|
DTOPortalSettings,
|
|
16869
16891
|
DTOPortalSettingsGetResponse,
|
|
16892
|
+
DTOPortalSettingsSidebar,
|
|
16893
|
+
DTOPortalSettingsSidebarLink,
|
|
16894
|
+
DTOPortalSettingsSidebarSection,
|
|
16870
16895
|
DTOPortalSettingsTheme,
|
|
16871
16896
|
DTOPortalSettingsUpdatePayload,
|
|
16872
16897
|
DTOPublishDocumentationChanges,
|