@devanachat/sdk 0.8.1 → 0.9.0

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.
@@ -110,6 +110,10 @@ export declare class Permissions {
110
110
  value: number;
111
111
  maxLayer: Layer;
112
112
  };
113
+ UseExternalEmoticons: {
114
+ value: number;
115
+ maxLayer: Layer;
116
+ };
113
117
  };
114
118
  static getNames(): (keyof typeof this.list)[];
115
119
  static getByName(name: keyof typeof this.list): PermissionDefinition | undefined;
@@ -1,9 +1,8 @@
1
1
  import { User } from "./User";
2
2
  export interface Emoticon {
3
3
  id: string;
4
- spaceId?: string;
4
+ spaceId?: string | null;
5
5
  name: string;
6
6
  fileId: string;
7
- user: User;
8
- tag?: string;
7
+ user: User | null;
9
8
  }
@@ -63,7 +63,8 @@ export declare enum SpaceFeature {
63
63
  export declare enum UserFeature {
64
64
  MessageLength = "user.message.length",
65
65
  StorageLimit = "user.storage.limit",
66
- StorageSingleFileLimit = "user.storage.single_file_limit"
66
+ StorageSingleFileLimit = "user.storage.single_file_limit",
67
+ ExternalEmoticons = "user.external_emoticons"
67
68
  }
68
69
  /**
69
70
  * How far back a room of the space may be told to keep its history.
@@ -2,6 +2,7 @@ export type ReactionType = 'Emoji' | 'Emoticon';
2
2
  export interface MessageReaction {
3
3
  type: ReactionType;
4
4
  value: string;
5
+ name?: string | null;
5
6
  count: number;
6
7
  }
7
8
  export interface UserReaction {
@@ -9,5 +10,6 @@ export interface UserReaction {
9
10
  value: string;
10
11
  }
11
12
  export interface ToggledReaction extends UserReaction {
13
+ name?: string | null;
12
14
  isAdded: boolean;
13
15
  }
@@ -1,5 +1,5 @@
1
1
  export interface CreateEmoticon {
2
2
  name: string;
3
3
  fileId: string;
4
- spaceId?: string;
4
+ spaceId: string;
5
5
  }
@@ -1,3 +1,4 @@
1
1
  export interface GetEmoticons {
2
2
  spaceId?: string;
3
+ ids?: string[];
3
4
  }
@@ -1,4 +1,4 @@
1
1
  export interface EmoticonDeleted {
2
2
  emoticonId: string;
3
- spaceId?: string;
3
+ spaceId: string;
4
4
  }
@@ -2,5 +2,5 @@ import { Emoticon } from "../Emoticon";
2
2
  import { ChatLocation } from "../ChatLocation";
3
3
  export interface Emoticons {
4
4
  emoticons: Emoticon[];
5
- location: ChatLocation;
5
+ location: ChatLocation | null;
6
6
  }
@@ -7,7 +7,7 @@ export declare class EmoticonsManager {
7
7
  private list;
8
8
  private emoticonsPromises;
9
9
  constructor(tracker: ChatStateTracker);
10
- get(spaceId?: string): Promise<ObservableIndexedObjectCollection<Emoticon>>;
10
+ get(spaceId: string): Promise<ObservableIndexedObjectCollection<Emoticon>>;
11
11
  /**
12
12
  * For internal use.
13
13
  * @internal
@@ -86,10 +86,7 @@ export interface RoomFollowedTopicsSnapshot {
86
86
  followedTopics: FollowedTopic[];
87
87
  }
88
88
  export interface EmoticonsSnapshot {
89
- /**
90
- * Null for the global emoticons.
91
- */
92
- spaceId: string | null;
89
+ spaceId: string;
93
90
  emoticons: Emoticon[];
94
91
  }
95
92
  export declare function withoutPresence(user: User): User;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devanachat/sdk",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "TypeScript/JavaScript SDK for the Devana chat platform: WebSocket and Web API clients, state tracking, permissions and files.",
5
5
  "keywords": [
6
6
  "devana",