@supernova-studio/client 0.55.21 → 0.55.23
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 +48 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +48 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3621,10 +3621,23 @@ 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
|
+
/**
|
|
3630
|
+
* Workspace invitation id
|
|
3631
|
+
*/
|
|
3632
|
+
inviteId: z115.string(),
|
|
3633
|
+
designSystemRole: DesignSystemRole.nullable()
|
|
3634
|
+
});
|
|
3624
3635
|
var DesignSystemMembershipUpdates = z115.object({
|
|
3625
3636
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
3626
3637
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
3627
3638
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
3639
|
+
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
3640
|
+
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
3628
3641
|
removeUserIds: z115.string().array().optional(),
|
|
3629
3642
|
deleteInvitationIds: z115.string().array().optional()
|
|
3630
3643
|
});
|
|
@@ -6724,41 +6737,6 @@ var DesignSystemsEndpoint = class {
|
|
|
6724
6737
|
}
|
|
6725
6738
|
};
|
|
6726
6739
|
|
|
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
6740
|
// src/api/endpoints/workspaces/workspace-invites.ts
|
|
6763
6741
|
var WorkspaceInvitationsEndpoint = class {
|
|
6764
6742
|
constructor(requestExecutor) {
|
|
@@ -6831,6 +6809,41 @@ var WorkspacesEndpoint = class {
|
|
|
6831
6809
|
}
|
|
6832
6810
|
};
|
|
6833
6811
|
|
|
6812
|
+
// src/api/endpoints/token-collections.ts
|
|
6813
|
+
var TokenCollectionsEndpoint = class {
|
|
6814
|
+
constructor(requestExecutor) {
|
|
6815
|
+
this.requestExecutor = requestExecutor;
|
|
6816
|
+
}
|
|
6817
|
+
list(dsId, vId) {
|
|
6818
|
+
return this.requestExecutor.json(
|
|
6819
|
+
`/design-systems/${dsId}/versions/${vId}/token-collections`,
|
|
6820
|
+
DTOTokenCollectionsListReponse
|
|
6821
|
+
);
|
|
6822
|
+
}
|
|
6823
|
+
};
|
|
6824
|
+
|
|
6825
|
+
// src/api/endpoints/users.ts
|
|
6826
|
+
var UsersEndpoint = class {
|
|
6827
|
+
constructor(requestExecutor) {
|
|
6828
|
+
this.requestExecutor = requestExecutor;
|
|
6829
|
+
}
|
|
6830
|
+
getMe() {
|
|
6831
|
+
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
6832
|
+
}
|
|
6833
|
+
listWorkspaces(uid) {
|
|
6834
|
+
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
6835
|
+
}
|
|
6836
|
+
delete(uid) {
|
|
6837
|
+
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
6838
|
+
}
|
|
6839
|
+
updateProfile(uid, body) {
|
|
6840
|
+
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
6841
|
+
method: "PUT",
|
|
6842
|
+
body
|
|
6843
|
+
});
|
|
6844
|
+
}
|
|
6845
|
+
};
|
|
6846
|
+
|
|
6834
6847
|
// src/api/transport/request-executor-error.ts
|
|
6835
6848
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
6836
6849
|
constructor(type, message, errorCode, serverErrorType, cause) {
|