@dcl/js-runtime 7.22.6-25321038582.commit-63ddb3f → 7.22.6-25375246959.commit-ec25d50

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.
Files changed (2) hide show
  1. package/apis.d.ts +30 -0
  2. package/package.json +2 -2
package/apis.d.ts CHANGED
@@ -20,9 +20,39 @@ declare module "~system/CommsApi" {
20
20
  trackSid: string;
21
21
  sourceType: VideoTrackSourceType;
22
22
  }
23
+ export interface SubscribeToTopicRequest {
24
+ topic: string;
25
+ }
26
+ export interface SubscribeToTopicResponse {
27
+ }
28
+ export interface UnsubscribeFromTopicRequest {
29
+ topic: string;
30
+ }
31
+ export interface UnsubscribeFromTopicResponse {
32
+ }
33
+ export interface PublishDataRequest {
34
+ topic: string;
35
+ data: string;
36
+ }
37
+ export interface PublishDataResponse {
38
+ }
39
+ export interface ConsumeMessagesRequest {
40
+ topic: string;
41
+ }
42
+ export interface ConsumeMessages {
43
+ sender: string;
44
+ data: string;
45
+ }
46
+ export interface ConsumeMessagesResponse {
47
+ messages: ConsumeMessages[];
48
+ }
23
49
 
24
50
  // Function declaration section
25
51
  export function getActiveVideoStreams(body: VideoTracksActiveStreamsRequest): Promise<VideoTracksActiveStreamsResponse>;
52
+ export function subscribeToTopic(body: SubscribeToTopicRequest): Promise<SubscribeToTopicResponse>;
53
+ export function unsubscribeFromTopic(body: UnsubscribeFromTopicRequest): Promise<UnsubscribeFromTopicResponse>;
54
+ export function publishData(body: PublishDataRequest): Promise<PublishDataResponse>;
55
+ export function consumeMessages(body: ConsumeMessagesRequest): Promise<ConsumeMessagesResponse>;
26
56
 
27
57
  }
28
58
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dcl/js-runtime",
3
3
  "description": "JavaScript runtime definitions for Decentraland environments",
4
- "version": "7.22.6-25321038582.commit-63ddb3f",
4
+ "version": "7.22.6-25375246959.commit-ec25d50",
5
5
  "author": "",
6
6
  "files": [
7
7
  "index.d.ts",
@@ -20,5 +20,5 @@
20
20
  },
21
21
  "types": "./index.d.ts",
22
22
  "typings": "./index.d.ts",
23
- "commit": "63ddb3f830af153cda9489c9393a7c3b0288e550"
23
+ "commit": "ec25d50ae79f2036c284c592d385ca01a17a8ae7"
24
24
  }