@sublay/js 7.8.0 → 7.9.1
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/LICENSE +202 -0
- package/NOTICE +9 -0
- package/README.md +23 -14
- package/dist/index.d.mts +374 -21
- package/dist/index.d.ts +4364 -31
- package/dist/index.js +53 -19
- package/dist/index.mjs +53 -19
- package/package.json +29 -18
- package/dist/core/client.d.ts +0 -64
- package/dist/core/multipart.d.ts +0 -22
- package/dist/core/spaceReputationParams.d.ts +0 -57
- package/dist/interfaces/AppNotification.d.ts +0 -258
- package/dist/interfaces/ChatMessage.d.ts +0 -32
- package/dist/interfaces/Collection.d.ts +0 -10
- package/dist/interfaces/Comment.d.ts +0 -42
- package/dist/interfaces/Connection.d.ts +0 -67
- package/dist/interfaces/Conversation.d.ts +0 -27
- package/dist/interfaces/ConversationMember.d.ts +0 -17
- package/dist/interfaces/Entity.d.ts +0 -55
- package/dist/interfaces/Event.d.ts +0 -66
- package/dist/interfaces/File.d.ts +0 -39
- package/dist/interfaces/Follow.d.ts +0 -19
- package/dist/interfaces/HostedApp.d.ts +0 -11
- package/dist/interfaces/IPaginatedResponse.d.ts +0 -11
- package/dist/interfaces/ImageProcessing.d.ts +0 -62
- package/dist/interfaces/Mention.d.ts +0 -12
- package/dist/interfaces/OAuthIdentity.d.ts +0 -14
- package/dist/interfaces/Project.d.ts +0 -14
- package/dist/interfaces/Push.d.ts +0 -74
- package/dist/interfaces/Reaction.d.ts +0 -23
- package/dist/interfaces/Report.d.ts +0 -38
- package/dist/interfaces/Rule.d.ts +0 -22
- package/dist/interfaces/Space.d.ts +0 -130
- package/dist/interfaces/SpaceMember.d.ts +0 -29
- package/dist/interfaces/SpaceReputation.d.ts +0 -100
- package/dist/interfaces/Table.d.ts +0 -63
- package/dist/interfaces/User.d.ts +0 -46
- package/dist/interfaces/UserSearch.d.ts +0 -13
- package/dist/interfaces/Workspace.d.ts +0 -148
- package/dist/modules/app-notifications/countUnreadNotifications.d.ts +0 -2
- package/dist/modules/app-notifications/fetchNotifications.d.ts +0 -8
- package/dist/modules/app-notifications/index.d.ts +0 -4
- package/dist/modules/app-notifications/markAllNotificationsAsRead.d.ts +0 -5
- package/dist/modules/app-notifications/markNotificationAsRead.d.ts +0 -5
- package/dist/modules/auth/changePassword.d.ts +0 -34
- package/dist/modules/auth/confirmAccountDeletion.d.ts +0 -11
- package/dist/modules/auth/index.d.ts +0 -13
- package/dist/modules/auth/requestAccountDeletion.d.ts +0 -14
- package/dist/modules/auth/requestNewAccessToken.d.ts +0 -16
- package/dist/modules/auth/requestPasswordReset.d.ts +0 -5
- package/dist/modules/auth/resetPassword.d.ts +0 -6
- package/dist/modules/auth/sendVerificationEmail.d.ts +0 -13
- package/dist/modules/auth/setPassword.d.ts +0 -9
- package/dist/modules/auth/signIn.d.ts +0 -12
- package/dist/modules/auth/signOut.d.ts +0 -103
- package/dist/modules/auth/signUp.d.ts +0 -24
- package/dist/modules/auth/verifyEmail.d.ts +0 -5
- package/dist/modules/auth/verifyExternalUser.d.ts +0 -11
- package/dist/modules/chat/addMember.d.ts +0 -8
- package/dist/modules/chat/changeMemberRole.d.ts +0 -9
- package/dist/modules/chat/createDirectConversation.d.ts +0 -7
- package/dist/modules/chat/createGroupConversation.d.ts +0 -10
- package/dist/modules/chat/deleteConversation.d.ts +0 -8
- package/dist/modules/chat/deleteMessage.d.ts +0 -11
- package/dist/modules/chat/editMessage.d.ts +0 -14
- package/dist/modules/chat/getConversation.d.ts +0 -6
- package/dist/modules/chat/getMessage.d.ts +0 -8
- package/dist/modules/chat/getUnreadCount.d.ts +0 -6
- package/dist/modules/chat/index.d.ts +0 -21
- package/dist/modules/chat/leaveConversation.d.ts +0 -7
- package/dist/modules/chat/listConversations.d.ts +0 -17
- package/dist/modules/chat/listMembers.d.ts +0 -11
- package/dist/modules/chat/listMessages.d.ts +0 -40
- package/dist/modules/chat/listReactions.d.ts +0 -24
- package/dist/modules/chat/markAsRead.d.ts +0 -9
- package/dist/modules/chat/muteConversation.d.ts +0 -23
- package/dist/modules/chat/removeMember.d.ts +0 -9
- package/dist/modules/chat/reportMessage.d.ts +0 -12
- package/dist/modules/chat/sendMessage.d.ts +0 -22
- package/dist/modules/chat/toggleReaction.d.ts +0 -16
- package/dist/modules/chat/updateConversation.d.ts +0 -12
- package/dist/modules/collections/addEntityToCollection.d.ts +0 -13
- package/dist/modules/collections/createNewCollection.d.ts +0 -8
- package/dist/modules/collections/deleteCollection.d.ts +0 -5
- package/dist/modules/collections/fetchCollectionEntities.d.ts +0 -13
- package/dist/modules/collections/fetchRootCollection.d.ts +0 -3
- package/dist/modules/collections/fetchSubCollections.d.ts +0 -6
- package/dist/modules/collections/index.d.ts +0 -8
- package/dist/modules/collections/removeEntityFromCollection.d.ts +0 -7
- package/dist/modules/collections/updateCollection.d.ts +0 -7
- package/dist/modules/comments/addReaction.d.ts +0 -8
- package/dist/modules/comments/createComment.d.ts +0 -15
- package/dist/modules/comments/deleteComment.d.ts +0 -5
- package/dist/modules/comments/fetchComment.d.ts +0 -8
- package/dist/modules/comments/fetchCommentByForeignId.d.ts +0 -7
- package/dist/modules/comments/fetchManyComments.d.ts +0 -26
- package/dist/modules/comments/fetchReactions.d.ts +0 -16
- package/dist/modules/comments/getUserReaction.d.ts +0 -9
- package/dist/modules/comments/index.d.ts +0 -10
- package/dist/modules/comments/removeReaction.d.ts +0 -6
- package/dist/modules/comments/updateComment.d.ts +0 -10
- package/dist/modules/connections/acceptConnection.d.ts +0 -6
- package/dist/modules/connections/declineConnection.d.ts +0 -6
- package/dist/modules/connections/fetchConnections.d.ts +0 -9
- package/dist/modules/connections/fetchConnectionsCount.d.ts +0 -3
- package/dist/modules/connections/fetchReceivedPendingConnections.d.ts +0 -8
- package/dist/modules/connections/fetchSentPendingConnections.d.ts +0 -8
- package/dist/modules/connections/index.d.ts +0 -7
- package/dist/modules/connections/removeConnection.d.ts +0 -5
- package/dist/modules/entities/addReaction.d.ts +0 -8
- package/dist/modules/entities/createEntity.d.ts +0 -23
- package/dist/modules/entities/deleteEntity.d.ts +0 -5
- package/dist/modules/entities/fetchDrafts.d.ts +0 -11
- package/dist/modules/entities/fetchEntity.d.ts +0 -8
- package/dist/modules/entities/fetchEntityByForeignId.d.ts +0 -8
- package/dist/modules/entities/fetchEntityByShortId.d.ts +0 -7
- package/dist/modules/entities/fetchManyEntities.d.ts +0 -65
- package/dist/modules/entities/fetchReactions.d.ts +0 -16
- package/dist/modules/entities/fetchTopComment.d.ts +0 -6
- package/dist/modules/entities/getUserReaction.d.ts +0 -9
- package/dist/modules/entities/index.d.ts +0 -15
- package/dist/modules/entities/isEntitySaved.d.ts +0 -12
- package/dist/modules/entities/publishDraft.d.ts +0 -6
- package/dist/modules/entities/removeReaction.d.ts +0 -6
- package/dist/modules/entities/updateEntity.d.ts +0 -18
- package/dist/modules/events/addHost.d.ts +0 -8
- package/dist/modules/events/addInvite.d.ts +0 -8
- package/dist/modules/events/cancelEvent.d.ts +0 -6
- package/dist/modules/events/createEvent.d.ts +0 -49
- package/dist/modules/events/deleteEvent.d.ts +0 -5
- package/dist/modules/events/fetchEvent.d.ts +0 -8
- package/dist/modules/events/fetchEventRsvps.d.ts +0 -19
- package/dist/modules/events/fetchInvitees.d.ts +0 -12
- package/dist/modules/events/fetchManyEvents.d.ts +0 -42
- package/dist/modules/events/index.d.ts +0 -14
- package/dist/modules/events/removeHost.d.ts +0 -8
- package/dist/modules/events/removeInvite.d.ts +0 -8
- package/dist/modules/events/setRsvp.d.ts +0 -7
- package/dist/modules/events/updateEvent.d.ts +0 -43
- package/dist/modules/events/withdrawRsvp.d.ts +0 -6
- package/dist/modules/follows/deleteFollow.d.ts +0 -5
- package/dist/modules/follows/fetchFollowers.d.ts +0 -9
- package/dist/modules/follows/fetchFollowersCount.d.ts +0 -5
- package/dist/modules/follows/fetchFollowing.d.ts +0 -9
- package/dist/modules/follows/fetchFollowingCount.d.ts +0 -5
- package/dist/modules/follows/index.d.ts +0 -5
- package/dist/modules/oauth/authorize.d.ts +0 -25
- package/dist/modules/oauth/index.d.ts +0 -4
- package/dist/modules/oauth/linkIdentity.d.ts +0 -14
- package/dist/modules/oauth/listIdentities.d.ts +0 -4
- package/dist/modules/oauth/unlinkIdentity.d.ts +0 -12
- package/dist/modules/push/getNotificationPreferences.d.ts +0 -11
- package/dist/modules/push/index.d.ts +0 -2
- package/dist/modules/push/updateNotificationPreferences.d.ts +0 -16
- package/dist/modules/reports/createReport.d.ts +0 -9
- package/dist/modules/reports/fetchModeratedReports.d.ts +0 -13
- package/dist/modules/reports/index.d.ts +0 -2
- package/dist/modules/search/askContent.d.ts +0 -58
- package/dist/modules/search/index.d.ts +0 -5
- package/dist/modules/search/matchUsers.d.ts +0 -36
- package/dist/modules/search/searchContent.d.ts +0 -24
- package/dist/modules/search/searchSpaces.d.ts +0 -11
- package/dist/modules/search/searchUsers.d.ts +0 -11
- package/dist/modules/spaces/approveMembership.d.ts +0 -7
- package/dist/modules/spaces/banMember.d.ts +0 -13
- package/dist/modules/spaces/checkMyMembership.d.ts +0 -6
- package/dist/modules/spaces/checkSlugAvailability.d.ts +0 -8
- package/dist/modules/spaces/createRule.d.ts +0 -8
- package/dist/modules/spaces/createSpace.d.ts +0 -29
- package/dist/modules/spaces/declineMembership.d.ts +0 -7
- package/dist/modules/spaces/deleteRule.d.ts +0 -7
- package/dist/modules/spaces/deleteSpace.d.ts +0 -6
- package/dist/modules/spaces/fetchChildSpaces.d.ts +0 -11
- package/dist/modules/spaces/fetchDigestConfig.d.ts +0 -6
- package/dist/modules/spaces/fetchManyRules.d.ts +0 -6
- package/dist/modules/spaces/fetchManySpaces.d.ts +0 -17
- package/dist/modules/spaces/fetchMutualSpaces.d.ts +0 -11
- package/dist/modules/spaces/fetchRule.d.ts +0 -7
- package/dist/modules/spaces/fetchSpace.d.ts +0 -6
- package/dist/modules/spaces/fetchSpaceBreadcrumb.d.ts +0 -6
- package/dist/modules/spaces/fetchSpaceByShortId.d.ts +0 -6
- package/dist/modules/spaces/fetchSpaceBySlug.d.ts +0 -6
- package/dist/modules/spaces/fetchSpaceMembers.d.ts +0 -11
- package/dist/modules/spaces/fetchSpaceTeam.d.ts +0 -7
- package/dist/modules/spaces/fetchUserSpaces.d.ts +0 -17
- package/dist/modules/spaces/getSpaceConversation.d.ts +0 -6
- package/dist/modules/spaces/handleCommentReport.d.ts +0 -14
- package/dist/modules/spaces/handleEntityReport.d.ts +0 -17
- package/dist/modules/spaces/handleSpaceChatReport.d.ts +0 -18
- package/dist/modules/spaces/index.d.ts +0 -36
- package/dist/modules/spaces/joinSpace.d.ts +0 -6
- package/dist/modules/spaces/leaveSpace.d.ts +0 -6
- package/dist/modules/spaces/moderateSpaceChatMessage.d.ts +0 -12
- package/dist/modules/spaces/moderateSpaceComment.d.ts +0 -9
- package/dist/modules/spaces/moderateSpaceEntity.d.ts +0 -12
- package/dist/modules/spaces/reorderRules.d.ts +0 -7
- package/dist/modules/spaces/setSpaceEntityNsfw.d.ts +0 -16
- package/dist/modules/spaces/unbanMember.d.ts +0 -13
- package/dist/modules/spaces/updateDigestConfig.d.ts +0 -11
- package/dist/modules/spaces/updateMemberRole.d.ts +0 -8
- package/dist/modules/spaces/updateRule.d.ts +0 -9
- package/dist/modules/spaces/updateSpace.d.ts +0 -22
- package/dist/modules/storage/deleteFile.d.ts +0 -5
- package/dist/modules/storage/getFile.d.ts +0 -34
- package/dist/modules/storage/index.d.ts +0 -4
- package/dist/modules/storage/uploadFile.d.ts +0 -30
- package/dist/modules/storage/uploadImage.d.ts +0 -42
- package/dist/modules/tables/bulkCreate.d.ts +0 -4
- package/dist/modules/tables/bulkDelete.d.ts +0 -7
- package/dist/modules/tables/create.d.ts +0 -4
- package/dist/modules/tables/createTableAccessor.d.ts +0 -9
- package/dist/modules/tables/deleteRow.d.ts +0 -9
- package/dist/modules/tables/find.d.ts +0 -8
- package/dist/modules/tables/findOne.d.ts +0 -7
- package/dist/modules/tables/index.d.ts +0 -9
- package/dist/modules/tables/restore.d.ts +0 -6
- package/dist/modules/tables/update.d.ts +0 -4
- package/dist/modules/users/checkUsernameAvailability.d.ts +0 -8
- package/dist/modules/users/createBlock.d.ts +0 -19
- package/dist/modules/users/createFollow.d.ts +0 -7
- package/dist/modules/users/deleteBlock.d.ts +0 -13
- package/dist/modules/users/deleteFollow.d.ts +0 -6
- package/dist/modules/users/fetchBlockStatus.d.ts +0 -23
- package/dist/modules/users/fetchBlockedUsers.d.ts +0 -19
- package/dist/modules/users/fetchConnectionStatus.d.ts +0 -10
- package/dist/modules/users/fetchConnectionsByUserId.d.ts +0 -11
- package/dist/modules/users/fetchConnectionsCountByUserId.d.ts +0 -6
- package/dist/modules/users/fetchFollowStatus.d.ts +0 -14
- package/dist/modules/users/fetchFollowersByUserId.d.ts +0 -11
- package/dist/modules/users/fetchFollowersCountByUserId.d.ts +0 -8
- package/dist/modules/users/fetchFollowingByUserId.d.ts +0 -11
- package/dist/modules/users/fetchFollowingCountByUserId.d.ts +0 -8
- package/dist/modules/users/fetchUserByForeignId.d.ts +0 -8
- package/dist/modules/users/fetchUserById.d.ts +0 -8
- package/dist/modules/users/fetchUserByUsername.d.ts +0 -8
- package/dist/modules/users/fetchUserSuggestions.d.ts +0 -7
- package/dist/modules/users/index.d.ts +0 -22
- package/dist/modules/users/removeConnectionByUserId.d.ts +0 -10
- package/dist/modules/users/requestConnection.d.ts +0 -11
- package/dist/modules/users/updateUser.d.ts +0 -32
- package/dist/modules/workspaces/acceptInvite.d.ts +0 -13
- package/dist/modules/workspaces/acceptWorkspaceInvite.d.ts +0 -13
- package/dist/modules/workspaces/createInvite.d.ts +0 -17
- package/dist/modules/workspaces/createWorkspace.d.ts +0 -12
- package/dist/modules/workspaces/createWorkspaceInvite.d.ts +0 -17
- package/dist/modules/workspaces/declineInvite.d.ts +0 -12
- package/dist/modules/workspaces/declineWorkspaceInvite.d.ts +0 -14
- package/dist/modules/workspaces/deleteWorkspace.d.ts +0 -13
- package/dist/modules/workspaces/fetchManyWorkspaces.d.ts +0 -13
- package/dist/modules/workspaces/fetchMembers.d.ts +0 -13
- package/dist/modules/workspaces/fetchMyInvites.d.ts +0 -11
- package/dist/modules/workspaces/fetchMyWorkspaceInvites.d.ts +0 -15
- package/dist/modules/workspaces/fetchWorkspace.d.ts +0 -7
- package/dist/modules/workspaces/fetchWorkspaceAuthority.d.ts +0 -11
- package/dist/modules/workspaces/fetchWorkspaceInvites.d.ts +0 -17
- package/dist/modules/workspaces/fetchWorkspaceMemberStanding.d.ts +0 -11
- package/dist/modules/workspaces/fetchWorkspaceMembers.d.ts +0 -13
- package/dist/modules/workspaces/getAuthority.d.ts +0 -11
- package/dist/modules/workspaces/index.d.ts +0 -21
- package/dist/modules/workspaces/leaveWorkspace.d.ts +0 -11
- package/dist/modules/workspaces/removeWorkspaceMember.d.ts +0 -12
- package/dist/modules/workspaces/removeWorkspaceMemberFromSubtree.d.ts +0 -16
- package/dist/modules/workspaces/resendWorkspaceInvite.d.ts +0 -12
- package/dist/modules/workspaces/revokeWorkspaceInvite.d.ts +0 -13
- package/dist/modules/workspaces/transferWorkspaceOwnership.d.ts +0 -15
- package/dist/modules/workspaces/updateWorkspace.d.ts +0 -12
- package/dist/modules/workspaces/updateWorkspaceInheritFlag.d.ts +0 -13
- package/dist/modules/workspaces/updateWorkspaceMember.d.ts +0 -17
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { User } from "../../interfaces/User";
|
|
3
|
-
export interface MatchUsersProps {
|
|
4
|
-
mode: "passive" | "directed";
|
|
5
|
-
query?: string;
|
|
6
|
-
limit?: number;
|
|
7
|
-
spaceId?: string;
|
|
8
|
-
includeChildSpaces?: boolean;
|
|
9
|
-
includeSampleContent?: boolean;
|
|
10
|
-
excludeSelf?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface MatchFacetRef {
|
|
13
|
-
id: string;
|
|
14
|
-
hotness: number;
|
|
15
|
-
}
|
|
16
|
-
export interface SampleContent {
|
|
17
|
-
sourceType: "entity" | "comment" | "message";
|
|
18
|
-
recordId: string;
|
|
19
|
-
content: string;
|
|
20
|
-
similarity: number;
|
|
21
|
-
}
|
|
22
|
-
export interface MatchedFacet {
|
|
23
|
-
similarity: number;
|
|
24
|
-
askerFacet?: MatchFacetRef;
|
|
25
|
-
candidateFacet: MatchFacetRef;
|
|
26
|
-
sampleContent?: SampleContent[];
|
|
27
|
-
}
|
|
28
|
-
export interface UserMatchResult {
|
|
29
|
-
user: User;
|
|
30
|
-
score: number;
|
|
31
|
-
matchedFacets: MatchedFacet[];
|
|
32
|
-
}
|
|
33
|
-
export interface MatchUsersResponse {
|
|
34
|
-
results: UserMatchResult[];
|
|
35
|
-
}
|
|
36
|
-
export declare function matchUsers(client: SublayHttpClient, data: MatchUsersProps): Promise<MatchUsersResponse>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Entity } from "../../interfaces/Entity";
|
|
3
|
-
import { Comment } from "../../interfaces/Comment";
|
|
4
|
-
import { ChatMessage } from "../../interfaces/ChatMessage";
|
|
5
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
6
|
-
export interface SearchContentProps extends SpaceReputationContextParams {
|
|
7
|
-
query: string;
|
|
8
|
-
sourceTypes?: ("entity" | "comment" | "message")[];
|
|
9
|
-
spaceId?: string;
|
|
10
|
-
/**
|
|
11
|
-
* With a `spaceId`, also search every space nested under it (children,
|
|
12
|
-
* grandchildren — the whole subtree, any depth). Ignored without a `spaceId`.
|
|
13
|
-
* Defaults to false (exact-space search).
|
|
14
|
-
*/
|
|
15
|
-
includeChildSpaces?: boolean;
|
|
16
|
-
conversationId?: string;
|
|
17
|
-
limit?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface ContentSearchResult {
|
|
20
|
-
sourceType: "entity" | "comment" | "message";
|
|
21
|
-
similarity: number;
|
|
22
|
-
record: Entity | Comment | ChatMessage;
|
|
23
|
-
}
|
|
24
|
-
export declare function searchContent(client: SublayHttpClient, data: SearchContentProps): Promise<ContentSearchResult[]>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Space } from "../../interfaces/Space";
|
|
3
|
-
export interface SearchSpacesProps {
|
|
4
|
-
query: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface SpaceSearchResult {
|
|
8
|
-
similarity: number;
|
|
9
|
-
record: Space;
|
|
10
|
-
}
|
|
11
|
-
export declare function searchSpaces(client: SublayHttpClient, data: SearchSpacesProps): Promise<SpaceSearchResult[]>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { User } from "../../interfaces/User";
|
|
3
|
-
export interface SearchUsersProps {
|
|
4
|
-
query: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface UserSearchResult {
|
|
8
|
-
similarity: number;
|
|
9
|
-
record: User;
|
|
10
|
-
}
|
|
11
|
-
export declare function searchUsers(client: SublayHttpClient, data: SearchUsersProps): Promise<UserSearchResult[]>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { ApproveMemberResponse } from "../../interfaces/Space";
|
|
3
|
-
export interface ApproveMembershipProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
memberId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function approveMembership(client: SublayHttpClient, data: ApproveMembershipProps): Promise<ApproveMemberResponse>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export interface BanMemberProps {
|
|
3
|
-
spaceId: string;
|
|
4
|
-
memberId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface BanMemberResponse {
|
|
7
|
-
message: string;
|
|
8
|
-
membership: {
|
|
9
|
-
id: string;
|
|
10
|
-
status: "banned";
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export declare function banMember(client: SublayHttpClient, data: BanMemberProps): Promise<BanMemberResponse>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { CheckMyMembershipResponse } from "../../interfaces/Space";
|
|
3
|
-
export interface CheckMyMembershipProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function checkMyMembership(client: SublayHttpClient, data: CheckMyMembershipProps): Promise<CheckMyMembershipResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export interface CheckSlugAvailabilityProps {
|
|
3
|
-
slug: string;
|
|
4
|
-
}
|
|
5
|
-
export interface CheckSlugAvailabilityResponse {
|
|
6
|
-
available: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare function checkSlugAvailability(client: SublayHttpClient, data: CheckSlugAvailabilityProps): Promise<CheckSlugAvailabilityResponse>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Rule } from "../../interfaces/Rule";
|
|
3
|
-
export interface CreateRuleProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
title: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function createRule(client: SublayHttpClient, data: CreateRuleProps): Promise<Rule>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Space, ReadingPermission, PostingPermission, SpaceVisibility } from "../../interfaces/Space";
|
|
3
|
-
import { ImageOptions } from "../../interfaces/ImageProcessing";
|
|
4
|
-
/** A file plus the image-processing options the server requires alongside it. */
|
|
5
|
-
export interface SpaceImageUpload {
|
|
6
|
-
file: Blob | File;
|
|
7
|
-
/** Image-processing config (must include `mode`) — see {@link ImageOptions}. */
|
|
8
|
-
options: ImageOptions;
|
|
9
|
-
}
|
|
10
|
-
export interface CreateSpaceProps {
|
|
11
|
-
name: string;
|
|
12
|
-
slug?: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
readingPermission?: ReadingPermission;
|
|
15
|
-
postingPermission?: PostingPermission;
|
|
16
|
-
visibility?: SpaceVisibility;
|
|
17
|
-
requireJoinApproval?: boolean;
|
|
18
|
-
parentSpaceId?: string;
|
|
19
|
-
metadata?: Record<string, any>;
|
|
20
|
-
nsfw?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Avatar image. When present the request is sent as `multipart/form-data` and
|
|
23
|
-
* the server processes the image per `options`.
|
|
24
|
-
*/
|
|
25
|
-
avatarFile?: SpaceImageUpload;
|
|
26
|
-
/** Banner image; same contract as {@link CreateSpaceProps.avatarFile}. */
|
|
27
|
-
bannerFile?: SpaceImageUpload;
|
|
28
|
-
}
|
|
29
|
-
export declare function createSpace(client: SublayHttpClient, data: CreateSpaceProps): Promise<Space>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { DeclineMemberResponse } from "../../interfaces/Space";
|
|
3
|
-
export interface DeclineMembershipProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
memberId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function declineMembership(client: SublayHttpClient, data: DeclineMembershipProps): Promise<DeclineMemberResponse>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { DeleteRuleResponse } from "../../interfaces/Rule";
|
|
3
|
-
export interface DeleteRuleProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
ruleId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function deleteRule(client: SublayHttpClient, data: DeleteRuleProps): Promise<DeleteRuleResponse>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { DeleteSpaceResponse } from "../../interfaces/Space";
|
|
3
|
-
export interface DeleteSpaceProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function deleteSpace(client: SublayHttpClient, data: DeleteSpaceProps): Promise<DeleteSpaceResponse>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Space } from "../../interfaces/Space";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
export interface FetchChildSpacesProps {
|
|
5
|
-
spaceId: string;
|
|
6
|
-
page?: number;
|
|
7
|
-
limit?: number;
|
|
8
|
-
sortBy?: "alphabetical" | "newest" | "members";
|
|
9
|
-
include?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function fetchChildSpaces(client: SublayHttpClient, data: FetchChildSpacesProps): Promise<PaginatedResponse<Space>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { DigestConfig } from "../../interfaces/Space";
|
|
3
|
-
export interface FetchDigestConfigProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function fetchDigestConfig(client: SublayHttpClient, data: FetchDigestConfigProps): Promise<DigestConfig>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { FetchManyRulesResponse } from "../../interfaces/Rule";
|
|
3
|
-
export interface FetchManyRulesProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function fetchManyRules(client: SublayHttpClient, data: FetchManyRulesProps): Promise<FetchManyRulesResponse>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Space } from "../../interfaces/Space";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
export interface FetchManySpacesProps {
|
|
5
|
-
page?: number;
|
|
6
|
-
limit?: number;
|
|
7
|
-
sortBy?: "alphabetical" | "newest" | "members";
|
|
8
|
-
searchSlug?: string;
|
|
9
|
-
searchName?: string;
|
|
10
|
-
searchDescription?: string;
|
|
11
|
-
searchAny?: string;
|
|
12
|
-
memberOf?: "true";
|
|
13
|
-
parentSpaceId?: string | "null";
|
|
14
|
-
nsfwFilter?: "include-all" | "exclude" | "only";
|
|
15
|
-
include?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function fetchManySpaces(client: SublayHttpClient, data: FetchManySpacesProps): Promise<PaginatedResponse<Space>>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Space } from "../../interfaces/Space";
|
|
3
|
-
import { PaginatedResponse } from "../../interfaces/IPaginatedResponse";
|
|
4
|
-
export interface FetchMutualSpacesProps {
|
|
5
|
-
/** The OTHER user — spaces shared with this user are returned. */
|
|
6
|
-
userId: string;
|
|
7
|
-
page?: number;
|
|
8
|
-
limit?: number;
|
|
9
|
-
include?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function fetchMutualSpaces(client: SublayHttpClient, { userId, ...params }: FetchMutualSpacesProps): Promise<PaginatedResponse<Space>>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Rule } from "../../interfaces/Rule";
|
|
3
|
-
export interface FetchRuleProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
ruleId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function fetchRule(client: SublayHttpClient, data: FetchRuleProps): Promise<Rule>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { SpaceDetailed } from "../../interfaces/Space";
|
|
3
|
-
export interface FetchSpaceProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function fetchSpace(client: SublayHttpClient, data: FetchSpaceProps): Promise<SpaceDetailed>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { SpaceBreadcrumb } from "../../interfaces/Space";
|
|
3
|
-
export interface FetchSpaceBreadcrumbProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function fetchSpaceBreadcrumb(client: SublayHttpClient, data: FetchSpaceBreadcrumbProps): Promise<SpaceBreadcrumb>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { SpaceDetailed } from "../../interfaces/Space";
|
|
3
|
-
export interface FetchSpaceByShortIdProps {
|
|
4
|
-
shortId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function fetchSpaceByShortId(client: SublayHttpClient, data: FetchSpaceByShortIdProps): Promise<SpaceDetailed>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { SpaceDetailed } from "../../interfaces/Space";
|
|
3
|
-
export interface FetchSpaceBySlugProps {
|
|
4
|
-
slug: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function fetchSpaceBySlug(client: SublayHttpClient, data: FetchSpaceBySlugProps): Promise<SpaceDetailed>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { SpaceMembersResponse } from "../../interfaces/SpaceMember";
|
|
3
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
4
|
-
export interface FetchSpaceMembersProps extends SpaceReputationContextParams {
|
|
5
|
-
spaceId: string;
|
|
6
|
-
page?: number;
|
|
7
|
-
limit?: number;
|
|
8
|
-
role?: "admin" | "moderator" | "member";
|
|
9
|
-
status?: "pending" | "active" | "banned" | "rejected";
|
|
10
|
-
}
|
|
11
|
-
export declare function fetchSpaceMembers(client: SublayHttpClient, data: FetchSpaceMembersProps): Promise<SpaceMembersResponse>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { SpaceTeamResponse } from "../../interfaces/SpaceMember";
|
|
3
|
-
import { SpaceReputationContextParams } from "../../interfaces/SpaceReputation";
|
|
4
|
-
export interface FetchSpaceTeamProps extends SpaceReputationContextParams {
|
|
5
|
-
spaceId: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function fetchSpaceTeam(client: SublayHttpClient, data: FetchSpaceTeamProps): Promise<SpaceTeamResponse>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { UserSpacesResponse } from "../../interfaces/Space";
|
|
3
|
-
export interface FetchUserSpacesProps {
|
|
4
|
-
page?: number;
|
|
5
|
-
limit?: number;
|
|
6
|
-
sortBy?: "alphabetical" | "newest" | "members";
|
|
7
|
-
include?: string;
|
|
8
|
-
role?: string;
|
|
9
|
-
all?: "true" | "false";
|
|
10
|
-
/**
|
|
11
|
-
* Membership status to list. Defaults to `"active"` (spaces the user is in);
|
|
12
|
-
* `"pending"` returns join requests awaiting approval, `"banned"` the spaces
|
|
13
|
-
* they were removed from.
|
|
14
|
-
*/
|
|
15
|
-
status?: "active" | "pending" | "banned";
|
|
16
|
-
}
|
|
17
|
-
export declare function fetchUserSpaces(client: SublayHttpClient, data: FetchUserSpacesProps): Promise<UserSpacesResponse>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Conversation } from "../../interfaces/Conversation";
|
|
3
|
-
export interface GetSpaceConversationProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function getSpaceConversation(client: SublayHttpClient, data: GetSpaceConversationProps): Promise<Conversation>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { HandleReportResponse } from "./handleEntityReport";
|
|
3
|
-
export type CommentReportAction = "remove-comment" | "ban-user" | "dismiss";
|
|
4
|
-
export interface HandleCommentReportProps {
|
|
5
|
-
spaceId: string;
|
|
6
|
-
reportId: string;
|
|
7
|
-
commentId: string;
|
|
8
|
-
actions: CommentReportAction[];
|
|
9
|
-
summary?: string;
|
|
10
|
-
reason?: string;
|
|
11
|
-
/** The user to ban (target), required when actions include "ban-user". */
|
|
12
|
-
userId?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function handleCommentReport(client: SublayHttpClient, data: HandleCommentReportProps): Promise<HandleReportResponse>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export type EntityReportAction = "remove-entity" | "ban-user" | "dismiss";
|
|
3
|
-
export interface HandleEntityReportProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
reportId: string;
|
|
6
|
-
entityId: string;
|
|
7
|
-
actions: EntityReportAction[];
|
|
8
|
-
summary?: string;
|
|
9
|
-
reason?: string;
|
|
10
|
-
/** The user to ban (target), required when actions include "ban-user". */
|
|
11
|
-
userId?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface HandleReportResponse {
|
|
14
|
-
message: string;
|
|
15
|
-
code: string;
|
|
16
|
-
}
|
|
17
|
-
export declare function handleEntityReport(client: SublayHttpClient, data: HandleEntityReportProps): Promise<HandleReportResponse>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export type SpaceChatReportAction = "remove-message" | "ban-user" | "dismiss";
|
|
3
|
-
export interface HandleSpaceChatReportProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
reportId: string;
|
|
6
|
-
actions: SpaceChatReportAction[];
|
|
7
|
-
summary?: string;
|
|
8
|
-
/** The user to ban (target), required when actions include "ban-user". */
|
|
9
|
-
userId?: string;
|
|
10
|
-
reason?: string;
|
|
11
|
-
/** The message to remove, required when actions include "remove-message". */
|
|
12
|
-
messageId?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface HandleSpaceChatReportResponse {
|
|
15
|
-
message: string;
|
|
16
|
-
code: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function handleSpaceChatReport(client: SublayHttpClient, data: HandleSpaceChatReportProps): Promise<HandleSpaceChatReportResponse>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export { createSpace } from "./createSpace";
|
|
2
|
-
export { fetchManySpaces } from "./fetchManySpaces";
|
|
3
|
-
export { fetchSpace } from "./fetchSpace";
|
|
4
|
-
export { fetchSpaceByShortId } from "./fetchSpaceByShortId";
|
|
5
|
-
export { fetchSpaceBySlug } from "./fetchSpaceBySlug";
|
|
6
|
-
export { fetchUserSpaces } from "./fetchUserSpaces";
|
|
7
|
-
export { fetchMutualSpaces } from "./fetchMutualSpaces";
|
|
8
|
-
export { checkSlugAvailability } from "./checkSlugAvailability";
|
|
9
|
-
export { updateSpace } from "./updateSpace";
|
|
10
|
-
export { deleteSpace } from "./deleteSpace";
|
|
11
|
-
export { fetchChildSpaces } from "./fetchChildSpaces";
|
|
12
|
-
export { fetchSpaceBreadcrumb } from "./fetchSpaceBreadcrumb";
|
|
13
|
-
export { joinSpace } from "./joinSpace";
|
|
14
|
-
export { leaveSpace } from "./leaveSpace";
|
|
15
|
-
export { checkMyMembership } from "./checkMyMembership";
|
|
16
|
-
export { fetchSpaceMembers } from "./fetchSpaceMembers";
|
|
17
|
-
export { fetchSpaceTeam } from "./fetchSpaceTeam";
|
|
18
|
-
export { updateMemberRole } from "./updateMemberRole";
|
|
19
|
-
export { approveMembership } from "./approveMembership";
|
|
20
|
-
export { declineMembership } from "./declineMembership";
|
|
21
|
-
export { banMember } from "./banMember";
|
|
22
|
-
export { unbanMember } from "./unbanMember";
|
|
23
|
-
export { fetchManyRules } from "./fetchManyRules";
|
|
24
|
-
export { fetchRule } from "./fetchRule";
|
|
25
|
-
export { createRule } from "./createRule";
|
|
26
|
-
export { updateRule } from "./updateRule";
|
|
27
|
-
export { deleteRule } from "./deleteRule";
|
|
28
|
-
export { reorderRules } from "./reorderRules";
|
|
29
|
-
export { handleEntityReport } from "./handleEntityReport";
|
|
30
|
-
export { handleCommentReport } from "./handleCommentReport";
|
|
31
|
-
export { moderateSpaceEntity } from "./moderateSpaceEntity";
|
|
32
|
-
export { setSpaceEntityNsfw } from "./setSpaceEntityNsfw";
|
|
33
|
-
export { moderateSpaceComment } from "./moderateSpaceComment";
|
|
34
|
-
export { getSpaceConversation } from "./getSpaceConversation";
|
|
35
|
-
export { moderateSpaceChatMessage } from "./moderateSpaceChatMessage";
|
|
36
|
-
export { handleSpaceChatReport } from "./handleSpaceChatReport";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { JoinSpaceResponse } from "../../interfaces/Space";
|
|
3
|
-
export interface JoinSpaceProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function joinSpace(client: SublayHttpClient, data: JoinSpaceProps): Promise<JoinSpaceResponse>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { LeaveSpaceResponse } from "../../interfaces/Space";
|
|
3
|
-
export interface LeaveSpaceProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function leaveSpace(client: SublayHttpClient, data: LeaveSpaceProps): Promise<LeaveSpaceResponse>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export interface ModerateSpaceChatMessageProps {
|
|
3
|
-
spaceId: string;
|
|
4
|
-
messageId: string;
|
|
5
|
-
moderationStatus: "removed";
|
|
6
|
-
moderationReason?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ModerateSpaceChatMessageResponse {
|
|
9
|
-
message: string;
|
|
10
|
-
moderationStatus: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function moderateSpaceChatMessage(client: SublayHttpClient, data: ModerateSpaceChatMessageProps): Promise<ModerateSpaceChatMessageResponse>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { ModerationResponse } from "./moderateSpaceEntity";
|
|
3
|
-
export interface ModerateSpaceCommentProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
commentId: string;
|
|
6
|
-
action: "approve" | "remove";
|
|
7
|
-
reason?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function moderateSpaceComment(client: SublayHttpClient, data: ModerateSpaceCommentProps): Promise<ModerationResponse>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export interface ModerateSpaceEntityProps {
|
|
3
|
-
spaceId: string;
|
|
4
|
-
entityId: string;
|
|
5
|
-
action: "approve" | "remove";
|
|
6
|
-
reason?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ModerationResponse {
|
|
9
|
-
message: string;
|
|
10
|
-
moderationStatus: "approved" | "removed";
|
|
11
|
-
}
|
|
12
|
-
export declare function moderateSpaceEntity(client: SublayHttpClient, data: ModerateSpaceEntityProps): Promise<ModerationResponse>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Rule } from "../../interfaces/Rule";
|
|
3
|
-
export interface ReorderRulesProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
ruleIds: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare function reorderRules(client: SublayHttpClient, data: ReorderRulesProps): Promise<Rule[]>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export interface SetSpaceEntityNsfwProps {
|
|
3
|
-
spaceId: string;
|
|
4
|
-
entityId: string;
|
|
5
|
-
nsfw: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface SetSpaceEntityNsfwResponse {
|
|
8
|
-
message: string;
|
|
9
|
-
nsfw: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Space-moderator endpoint to set the NSFW flag on an entity within their space
|
|
13
|
-
* (including other users' entities). Near-copy of `moderateSpaceEntity`, but it
|
|
14
|
-
* writes the entity's own `nsfw` (the NSFW axis), not `moderationStatus`.
|
|
15
|
-
*/
|
|
16
|
-
export declare function setSpaceEntityNsfw(client: SublayHttpClient, data: SetSpaceEntityNsfwProps): Promise<SetSpaceEntityNsfwResponse>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
export interface UnbanMemberProps {
|
|
3
|
-
spaceId: string;
|
|
4
|
-
memberId: string;
|
|
5
|
-
}
|
|
6
|
-
export interface UnbanMemberResponse {
|
|
7
|
-
message: string;
|
|
8
|
-
membership: {
|
|
9
|
-
id: string;
|
|
10
|
-
status: "active";
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export declare function unbanMember(client: SublayHttpClient, data: UnbanMemberProps): Promise<UnbanMemberResponse>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { DigestConfig } from "../../interfaces/Space";
|
|
3
|
-
export interface UpdateDigestConfigProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
digestEnabled?: boolean;
|
|
6
|
-
digestWebhookUrl?: string;
|
|
7
|
-
digestWebhookSecret?: string;
|
|
8
|
-
digestScheduleHour?: number;
|
|
9
|
-
digestTimezone?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function updateDigestConfig(client: SublayHttpClient, data: UpdateDigestConfigProps): Promise<DigestConfig>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { UpdateMemberRoleResponse, SpaceMemberRole } from "../../interfaces/Space";
|
|
3
|
-
export interface UpdateMemberRoleProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
memberId: string;
|
|
6
|
-
role: SpaceMemberRole;
|
|
7
|
-
}
|
|
8
|
-
export declare function updateMemberRole(client: SublayHttpClient, data: UpdateMemberRoleProps): Promise<UpdateMemberRoleResponse>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Rule } from "../../interfaces/Rule";
|
|
3
|
-
export interface UpdateRuleProps {
|
|
4
|
-
spaceId: string;
|
|
5
|
-
ruleId: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function updateRule(client: SublayHttpClient, data: UpdateRuleProps): Promise<Rule>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { Space, ReadingPermission, PostingPermission, SpaceVisibility } from "../../interfaces/Space";
|
|
3
|
-
import type { SpaceImageUpload } from "./createSpace";
|
|
4
|
-
export interface UpdateSpaceProps {
|
|
5
|
-
spaceId: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
slug?: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
readingPermission?: ReadingPermission;
|
|
10
|
-
postingPermission?: PostingPermission;
|
|
11
|
-
visibility?: SpaceVisibility;
|
|
12
|
-
metadata?: Record<string, any>;
|
|
13
|
-
nsfw?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* New avatar image. When present the request is sent as `multipart/form-data`
|
|
16
|
-
* and the server processes the image per `options`, replacing the old avatar.
|
|
17
|
-
*/
|
|
18
|
-
avatarFile?: SpaceImageUpload;
|
|
19
|
-
/** New banner image; same contract as {@link UpdateSpaceProps.avatarFile}. */
|
|
20
|
-
bannerFile?: SpaceImageUpload;
|
|
21
|
-
}
|
|
22
|
-
export declare function updateSpace(client: SublayHttpClient, data: UpdateSpaceProps): Promise<Space>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { SublayHttpClient } from "../../core/client";
|
|
2
|
-
import { UploadedImageVariant } from "./uploadImage";
|
|
3
|
-
export interface GetFileImage {
|
|
4
|
-
originalWidth: number;
|
|
5
|
-
originalHeight: number;
|
|
6
|
-
variants: Record<string, UploadedImageVariant>;
|
|
7
|
-
processingStatus: "completed" | "failed";
|
|
8
|
-
format: string;
|
|
9
|
-
quality: number;
|
|
10
|
-
exifStripped: boolean;
|
|
11
|
-
}
|
|
12
|
-
/** Shape returned by `GET /storage/:fileId` (a flat projection, not the populated `File` model). */
|
|
13
|
-
export interface GetFileResponse {
|
|
14
|
-
fileId: string;
|
|
15
|
-
type: string;
|
|
16
|
-
originalPath: string;
|
|
17
|
-
originalSize: number;
|
|
18
|
-
originalMimeType: string;
|
|
19
|
-
position: number | null;
|
|
20
|
-
metadata: Record<string, any> | null;
|
|
21
|
-
/** ISO-8601 timestamp. */
|
|
22
|
-
createdAt: string;
|
|
23
|
-
/** ISO-8601 timestamp. */
|
|
24
|
-
updatedAt: string;
|
|
25
|
-
userId?: string;
|
|
26
|
-
entityId?: string;
|
|
27
|
-
commentId?: string;
|
|
28
|
-
spaceId?: string;
|
|
29
|
-
image?: GetFileImage;
|
|
30
|
-
}
|
|
31
|
-
export interface GetFileProps {
|
|
32
|
-
fileId: string;
|
|
33
|
-
}
|
|
34
|
-
export declare function getFile(client: SublayHttpClient, data: GetFileProps): Promise<GetFileResponse>;
|