@supernova-studio/client 0.55.20 → 0.55.21
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 +654 -654
- package/dist/index.d.ts +654 -654
- package/dist/index.js +35 -35
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -35
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6724,6 +6724,41 @@ var DesignSystemsEndpoint = class {
|
|
|
6724
6724
|
}
|
|
6725
6725
|
};
|
|
6726
6726
|
|
|
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
|
+
|
|
6727
6762
|
// src/api/endpoints/workspaces/workspace-invites.ts
|
|
6728
6763
|
var WorkspaceInvitationsEndpoint = class {
|
|
6729
6764
|
constructor(requestExecutor) {
|
|
@@ -6796,41 +6831,6 @@ var WorkspacesEndpoint = class {
|
|
|
6796
6831
|
}
|
|
6797
6832
|
};
|
|
6798
6833
|
|
|
6799
|
-
// src/api/endpoints/token-collections.ts
|
|
6800
|
-
var TokenCollectionsEndpoint = class {
|
|
6801
|
-
constructor(requestExecutor) {
|
|
6802
|
-
this.requestExecutor = requestExecutor;
|
|
6803
|
-
}
|
|
6804
|
-
list(dsId, vId) {
|
|
6805
|
-
return this.requestExecutor.json(
|
|
6806
|
-
`/design-systems/${dsId}/versions/${vId}/token-collections`,
|
|
6807
|
-
DTOTokenCollectionsListReponse
|
|
6808
|
-
);
|
|
6809
|
-
}
|
|
6810
|
-
};
|
|
6811
|
-
|
|
6812
|
-
// src/api/endpoints/users.ts
|
|
6813
|
-
var UsersEndpoint = class {
|
|
6814
|
-
constructor(requestExecutor) {
|
|
6815
|
-
this.requestExecutor = requestExecutor;
|
|
6816
|
-
}
|
|
6817
|
-
getMe() {
|
|
6818
|
-
return this.requestExecutor.json("/users/me", DTOAuthenticatedUserResponse);
|
|
6819
|
-
}
|
|
6820
|
-
listWorkspaces(uid) {
|
|
6821
|
-
return this.requestExecutor.json(`/users/${uid}/workspaces`, DTOUserWorkspaceMembershipsResponse);
|
|
6822
|
-
}
|
|
6823
|
-
delete(uid) {
|
|
6824
|
-
return this.requestExecutor.json(`/users/${uid}`, DTOAuthenticatedUserResponse, { method: "DELETE" });
|
|
6825
|
-
}
|
|
6826
|
-
updateProfile(uid, body) {
|
|
6827
|
-
return this.requestExecutor.json(`/users/${uid}/profile`, DTOAuthenticatedUserResponse, {
|
|
6828
|
-
method: "PUT",
|
|
6829
|
-
body
|
|
6830
|
-
});
|
|
6831
|
-
}
|
|
6832
|
-
};
|
|
6833
|
-
|
|
6834
6834
|
// src/api/transport/request-executor-error.ts
|
|
6835
6835
|
var RequestExecutorError = class _RequestExecutorError extends Error {
|
|
6836
6836
|
constructor(type, message, errorCode, serverErrorType, cause) {
|