@amityco/ts-sdk 7.11.1-8ef0bbb7.0 → 7.11.1-b750131c.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * ```js
3
- * import { getRoomToken } from '@amityco/ts-sdk'
4
- * const token = await getRoomToken('roomId')
3
+ * import { getBroadcasterData } from '@amityco/ts-sdk'
4
+ * const token = await getBroadcasterData('roomId')
5
5
  * ```
6
6
  *
7
7
  * Gets an access token for a room
@@ -12,5 +12,5 @@
12
12
  * @category Room API
13
13
  * @async
14
14
  */
15
- export declare const getRoomToken: (roomId: string) => Promise<Amity.RoomIngestData>;
15
+ export declare const getBroadcasterData: (roomId: string) => Promise<Amity.BroadcasterData>;
16
16
  //# sourceMappingURL=getRoomToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRoomToken.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/getRoomToken.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,WAAkB,MAAM,KAAG,QAAQ,MAAM,cAAc,CAO/E,CAAC"}
1
+ {"version":3,"file":"getRoomToken.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/api/getRoomToken.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,WAAkB,MAAM,KAAG,QAAQ,MAAM,eAAe,CAOtF,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * ```js
3
+ * import { RoomRepository } from '@amityco/ts-sdk'
4
+ * const stream = await getStream('foobar')
5
+ * ```
6
+ *
7
+ * Fetches a {@link Amity.Channel} object linked with a current stream
8
+ *
9
+ * @param stream {@link Amity.Stream} that has linked live channel
10
+ * @returns the associated {@link Amity.Channel<'live'>} object
11
+ *
12
+ * @category Stream API
13
+ * @async
14
+ */
15
+ export declare const getLiveChat: (room: Amity.InternalRoom) => Promise<Amity.Channel<'live'> | undefined>;
16
+ //# sourceMappingURL=getLiveChat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getLiveChat.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/getLiveChat.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,WAAW,SAChB,MAAM,YAAY,KACvB,QAAQ,MAAM,OAAO,CAAC,MAAM,CAAC,GAAG,SAAS,CAkC3C,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './getRoomById';
2
+ export * from './getLiveChat';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/roomRepository/internalApi/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { EnumRoomActions } from './enums';
2
2
  export declare const getRoomSubscription: () => {
3
- fn: (callback: Amity.Listener<Amity.RawRoom>) => Amity.Unsubscriber;
3
+ fn: (callback: Amity.Listener<Amity.Room>) => Amity.Unsubscriber;
4
4
  action: EnumRoomActions;
5
5
  }[];
6
6
  //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1,2 @@
1
+ export declare const roomLinkedObject: (room: Amity.InternalRoom) => Amity.Room;
2
+ //# sourceMappingURL=roomLinkedObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roomLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/roomLinkedObject.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,IA+BjE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "7.11.1-8ef0bbb7.0",
3
+ "version": "7.11.1-b750131c.0",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",