@supernova-studio/client 0.55.21 → 0.55.22
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 +544 -488
- package/dist/index.d.ts +544 -488
- package/dist/index.js +45 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +45 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3621,10 +3621,20 @@ var DesignSystemInvite = z115.object({
|
|
|
3621
3621
|
*/
|
|
3622
3622
|
designSystemRole: DesignSystemRole.optional()
|
|
3623
3623
|
});
|
|
3624
|
+
var DesignSystemMemberUpdate = z115.object({
|
|
3625
|
+
userId: z115.string(),
|
|
3626
|
+
designSystemRole: DesignSystemRole.nullable()
|
|
3627
|
+
});
|
|
3628
|
+
var DesignSystemInviteUpdate = z115.object({
|
|
3629
|
+
inviteId: z115.string(),
|
|
3630
|
+
designSystemRole: DesignSystemRole.nullable()
|
|
3631
|
+
});
|
|
3624
3632
|
var DesignSystemMembershipUpdates = z115.object({
|
|
3625
3633
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
3626
3634
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
3627
3635
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
3636
|
+
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
3637
|
+
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
3628
3638
|
removeUserIds: z115.string().array().optional(),
|
|
3629
3639
|
deleteInvitationIds: z115.string().array().optional()
|
|
3630
3640
|
});
|
|
@@ -6724,41 +6734,6 @@ var DesignSystemsEndpoint = class {
|
|
|
6724
6734
|
}
|
|
6725
6735
|
};
|
|
6726
6736
|
|
|
6727
|
-
// src/api/endpoints/token-collections.ts
|
|
6728
|
-
var TokenCollectionsEndpoint = class {
|
|
6729
|
-
constructor(requestExecutor) {
|
|
6730
|
-
this.requestExecutor = requestExecutor;
|
|
6731
|
-
}
|
|
6732
|
-
list(dsId, vId) {
|
|
6733
|
-
return this.requestExecutor.json(
|
|
6734
|
-
`/design-systems/${dsId}/versions/${vId}/token-collections`,
|
|
6735
|
-
DTOTokenCollectionsListReponse
|
|
6736
|
-
);
|
|
6737
|
-
}
|
|
6738
|
-
};
|
|
6739
|
-
|
|
6740
|
-
// src/api/endpoints/users.ts
|
|
6741
|
-
var UsersEndpoint = class {
|
|
6742
|
-
constructor(requestExecutor) {
|
|
6743
|
-
this.requestExecutor = requestExecutor;
|
|
6744
|
-
}
|
|
6745
|
-
getMe() {
|
|
6746
|
-
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
6747
|
-
}
|
|
6748
|
-
listWorkspaces(uid) {
|
|
6749
|
-
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
6750
|
-
}
|
|
6751
|
-
delete(uid) {
|
|
6752
|
-
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
6753
|
-
}
|
|
6754
|
-
updateProfile(uid, body) {
|
|
6755
|
-
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
6756
|
-
method: "PUT",
|
|
6757
|
-
body
|
|
6758
|
-
});
|
|
6759
|
-
}
|
|
6760
|
-
};
|
|
6761
|
-
|
|
6762
6737
|
// src/api/endpoints/workspaces/workspace-invites.ts
|
|
6763
6738
|
var WorkspaceInvitationsEndpoint = class {
|
|
6764
6739
|
constructor(requestExecutor) {
|
|
@@ -6831,6 +6806,41 @@ var WorkspacesEndpoint = class {
|
|
|
6831
6806
|
}
|
|
6832
6807
|
};
|
|
6833
6808
|
|
|
6809
|
+
// src/api/endpoints/token-collections.ts
|
|
6810
|
+
var TokenCollectionsEndpoint = class {
|
|
6811
|
+
constructor(requestExecutor) {
|
|
6812
|
+
this.requestExecutor = requestExecutor;
|
|
6813
|
+
}
|
|
6814
|
+
list(dsId, vId) {
|
|
6815
|
+
return this.requestExecutor.json(
|
|
6816
|
+
`/design-systems/${dsId}/versions/${vId}/token-collections`,
|
|
6817
|
+
DTOTokenCollectionsListReponse
|
|
6818
|
+
);
|
|
6819
|
+
}
|
|
6820
|
+
};
|
|
6821
|
+
|
|
6822
|
+
// src/api/endpoints/users.ts
|
|
6823
|
+
var UsersEndpoint = class {
|
|
6824
|
+
constructor(requestExecutor) {
|
|
6825
|
+
this.requestExecutor = requestExecutor;
|
|
6826
|
+
}
|
|
6827
|
+
getMe() {
|
|
6828
|
+
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
6829
|
+
}
|
|
6830
|
+
listWorkspaces(uid) {
|
|
6831
|
+
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
6832
|
+
}
|
|
6833
|
+
delete(uid) {
|
|
6834
|
+
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
6835
|
+
}
|
|
6836
|
+
updateProfile(uid, body) {
|
|
6837
|
+
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
6838
|
+
method: "PUT",
|
|
6839
|
+
body
|
|
6840
|
+
});
|
|
6841
|
+
}
|
|
6842
|
+
};
|
|
6843
|
+
|
|
6834
6844
|
// src/api/transport/request-executor-error.ts
|
|
6835
6845
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
6836
6846
|
constructor(type, message, errorCode, serverErrorType, cause) {
|