@sublay/js 7.4.1 → 7.4.2

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 CHANGED
@@ -760,6 +760,7 @@ interface SpaceMention {
760
760
 
761
761
  type ReadingPermission = "anyone" | "members";
762
762
  type PostingPermission = "anyone" | "members" | "admins";
763
+ type SpaceVisibility = "public" | "unlisted" | "private";
763
764
  type SpaceMemberRole = "admin" | "moderator" | "member";
764
765
  type SpaceMemberStatus = "pending" | "active" | "banned" | "rejected";
765
766
  interface SpaceMemberPermissions {
@@ -778,6 +779,7 @@ interface SpacePreview {
778
779
  slug: string | null;
779
780
  avatarFileId: string | null;
780
781
  readingPermission?: ReadingPermission;
782
+ visibility?: SpaceVisibility;
781
783
  parentSpaceId?: string | null;
782
784
  depth?: number;
783
785
  avatarFile?: File$1;
@@ -794,6 +796,7 @@ interface Space {
794
796
  userId: string;
795
797
  readingPermission: ReadingPermission;
796
798
  postingPermission: PostingPermission;
799
+ visibility: SpaceVisibility;
797
800
  requireJoinApproval: boolean;
798
801
  parentSpaceId: string | null;
799
802
  depth: number;
@@ -1615,6 +1618,7 @@ interface CreateSpaceProps {
1615
1618
  description?: string;
1616
1619
  readingPermission?: ReadingPermission;
1617
1620
  postingPermission?: PostingPermission;
1621
+ visibility?: SpaceVisibility;
1618
1622
  requireJoinApproval?: boolean;
1619
1623
  parentSpaceId?: string;
1620
1624
  metadata?: Record<string, any>;
@@ -1691,6 +1695,7 @@ interface UpdateSpaceProps {
1691
1695
  description?: string;
1692
1696
  readingPermission?: ReadingPermission;
1693
1697
  postingPermission?: PostingPermission;
1698
+ visibility?: SpaceVisibility;
1694
1699
  metadata?: Record<string, any>;
1695
1700
  /**
1696
1701
  * New avatar image. When present the request is sent as `multipart/form-data`
@@ -2,6 +2,7 @@ import { PaginatedResponse } from "./IPaginatedResponse";
2
2
  import { File } from "./File";
3
3
  export type ReadingPermission = "anyone" | "members";
4
4
  export type PostingPermission = "anyone" | "members" | "admins";
5
+ export type SpaceVisibility = "public" | "unlisted" | "private";
5
6
  export type SpaceMemberRole = "admin" | "moderator" | "member";
6
7
  export type SpaceMemberStatus = "pending" | "active" | "banned" | "rejected";
7
8
  export interface SpaceMemberPermissions {
@@ -20,6 +21,7 @@ export interface SpacePreview {
20
21
  slug: string | null;
21
22
  avatarFileId: string | null;
22
23
  readingPermission?: ReadingPermission;
24
+ visibility?: SpaceVisibility;
23
25
  parentSpaceId?: string | null;
24
26
  depth?: number;
25
27
  avatarFile?: File;
@@ -36,6 +38,7 @@ export interface Space {
36
38
  userId: string;
37
39
  readingPermission: ReadingPermission;
38
40
  postingPermission: PostingPermission;
41
+ visibility: SpaceVisibility;
39
42
  requireJoinApproval: boolean;
40
43
  parentSpaceId: string | null;
41
44
  depth: number;
@@ -1,5 +1,5 @@
1
1
  import { SublayHttpClient } from "../../core/client";
2
- import { Space, ReadingPermission, PostingPermission } from "../../interfaces/Space";
2
+ import { Space, ReadingPermission, PostingPermission, SpaceVisibility } from "../../interfaces/Space";
3
3
  import { ImageOptions } from "../../interfaces/ImageProcessing";
4
4
  /** A file plus the image-processing options the server requires alongside it. */
5
5
  export interface SpaceImageUpload {
@@ -13,6 +13,7 @@ export interface CreateSpaceProps {
13
13
  description?: string;
14
14
  readingPermission?: ReadingPermission;
15
15
  postingPermission?: PostingPermission;
16
+ visibility?: SpaceVisibility;
16
17
  requireJoinApproval?: boolean;
17
18
  parentSpaceId?: string;
18
19
  metadata?: Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  import { SublayHttpClient } from "../../core/client";
2
- import { Space, ReadingPermission, PostingPermission } from "../../interfaces/Space";
2
+ import { Space, ReadingPermission, PostingPermission, SpaceVisibility } from "../../interfaces/Space";
3
3
  import type { SpaceImageUpload } from "./createSpace";
4
4
  export interface UpdateSpaceProps {
5
5
  spaceId: string;
@@ -8,6 +8,7 @@ export interface UpdateSpaceProps {
8
8
  description?: string;
9
9
  readingPermission?: ReadingPermission;
10
10
  postingPermission?: PostingPermission;
11
+ visibility?: SpaceVisibility;
11
12
  metadata?: Record<string, any>;
12
13
  /**
13
14
  * New avatar image. When present the request is sent as `multipart/form-data`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sublay/js",
3
- "version": "7.4.1",
3
+ "version": "7.4.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [