@stream-io/video-client 0.1.5 → 0.1.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [0.1.6](https://github.com/GetStream/stream-video-js/compare/client0.1.5...client0.1.6) (2023-07-26)
6
+
7
+
8
+ ### Documentation
9
+
10
+ * Readme for js client, contributing guide ([#858](https://github.com/GetStream/stream-video-js/issues/858)) ([4d25c90](https://github.com/GetStream/stream-video-js/commit/4d25c909d2db3c5f98f89ad37dd810fc4ab7cc95))
11
+
5
12
  ### [0.1.5](https://github.com/GetStream/stream-video-js/compare/client0.1.4...client0.1.5) (2023-07-21)
6
13
 
7
14
 
package/README.md CHANGED
@@ -1,14 +1,60 @@
1
1
  # @stream-io/video-client
2
2
 
3
- 🚧 **WARNING** This package is not yet stable, it is for internal use only. For more information check out our [video product page](https://getstream.io/video/).
3
+ 🚧 **WARNING** This package is not yet stable, it is for internal use only. For more information check out our [video product page](https://getstream.io/video/). 🚧
4
4
 
5
- This package holds the autogenerated Protobuf code and clients.
5
+ Low-level video client for browser and Node.js integrations.
6
6
 
7
- ## Generate Coordinator Models from OpenAPI spec (Dev Mode):
7
+ ## **Quick Links**
8
8
 
9
- We have a shell script which will generate the Coordinator models from the OpenAPI spec.
10
- This script expects the following directory structure to be set up:
9
+ - [Register](https://getstream.io/chat/trial/) to get an API key for Stream Video
10
+ TODO: add links to docs and tutorials
11
11
 
12
- - `chat` - the `chat` repository
13
- - `stream-video-js` - current repository
14
- - `cd stream-video-js/packages/client && yarn generate:open-api`
12
+ ## What is Stream?
13
+
14
+ Stream allows developers to rapidly deploy scalable feeds, chat messaging and video with an industry leading 99.999% uptime SLA guarantee.
15
+
16
+ With Stream's video components, you can use their SDK to build in-app video calling, audio rooms, audio calls, or live streaming. The best place to get started is with their tutorials:
17
+
18
+ - Video & Audio Calling Tutorial
19
+ - Audio Rooms Tutorial
20
+ - Livestreaming Tutorial
21
+
22
+ Stream provides UI components and state handling that make it easy to build video calling for your app. All calls run on Stream's network of edge servers around the world, ensuring optimal latency and reliability.
23
+
24
+ ## 👩‍💻 Free for Makers 👨‍💻
25
+
26
+ Stream is free for most side and hobby projects. To qualify, your project/company needs to have < 5 team members and < $10k in monthly revenue. Makers get $100 in monthly credit for video for free.
27
+
28
+ ## 💡Supported Features💡
29
+
30
+ Here are some of the features we support:
31
+
32
+ - Developer experience: Great SDKs, docs, tutorials and support so you can build quickly
33
+ - Edge network: Servers around the world ensure optimal latency and reliability
34
+ - Chat: Stored chat, reactions, threads, typing indicators, URL previews etc
35
+ - Security & Privacy: Based in USA and EU, Soc2 certified, GDPR compliant
36
+ - Dynascale: Automatically switch resolutions, fps, bitrate, codecs and paginate video on large calls
37
+ - Screen sharing
38
+ - Picture in picture support
39
+ - Active speaker
40
+ - Custom events
41
+ - Geofencing
42
+ - Notifications and ringing calls
43
+ - Opus DTX & Red for reliable audio
44
+ - Webhooks & SQS
45
+ - Backstage mode
46
+ - Flexible permissions system
47
+ - Joining calls by ID, link or invite
48
+ - Enabling and disabling audio and video when in calls
49
+ - Flipping, Enabling and disabling camera in calls
50
+ - Enabling and disabling speakerphone in calls
51
+ - Push notification providers support
52
+ - Call recording
53
+ - Broadcasting to HLS
54
+
55
+ ## Contributing
56
+
57
+ - How can I submit a sample app?
58
+ - Apps submissions are always welcome. 🥳 Open a PR with a proper description and we'll review it as soon as possible.
59
+ - Spot a bug 🕷 ?
60
+ - We welcome code changes that improve the apps or fix a problem. Please make sure to follow all best practices and add tests if applicable before submitting a Pull Request on Github.
@@ -10325,7 +10325,7 @@ class Call {
10325
10325
  * @returns
10326
10326
  */
10327
10327
  this.queryMembers = (request) => {
10328
- return this.streamClient.post('/call/members', Object.assign(Object.assign({}, request), { id: this.id, type: this.type }));
10328
+ return this.streamClient.post('/call/members', Object.assign(Object.assign({}, (request || {})), { id: this.id, type: this.type }));
10329
10329
  };
10330
10330
  /**
10331
10331
  * Will update the call members.
@@ -11636,7 +11636,7 @@ class WSConnectionFallback {
11636
11636
  }
11637
11637
  }
11638
11638
 
11639
- const version = '0.1.5';
11639
+ const version = '0.1.6';
11640
11640
 
11641
11641
  const logger = getLogger(['location']);
11642
11642
  const HINT_URL = `https://hint.stream-io-video.com/`;
@@ -11903,9 +11903,6 @@ class StreamClient {
11903
11903
  this.logger('trace', `client:${type} - Response - url: ${url} > status ${response.status}`, {
11904
11904
  response,
11905
11905
  });
11906
- this.logger('trace', `client:${type} - Response payload`, {
11907
- response,
11908
- });
11909
11906
  };
11910
11907
  this._logApiError = (type, url, error) => {
11911
11908
  this.logger('error', `client:${type} - Error - url: ${url}`, {
@@ -11954,9 +11951,9 @@ class StreamClient {
11954
11951
  }
11955
11952
  catch (e /**TODO: generalize error types */) {
11956
11953
  e.client_request_id = (_h = requestConfig.headers) === null || _h === void 0 ? void 0 : _h['x-client-request-id'];
11957
- this._logApiError(type, url, e);
11958
11954
  this.consecutiveFailures += 1;
11959
11955
  if (e.response) {
11956
+ this._logApiError(type, url, e.response);
11960
11957
  /** connection_fallback depends on this token expiration logic */
11961
11958
  if (e.response.data.code === KnownCodes.TOKEN_EXPIRED &&
11962
11959
  !this.tokenManager.isStatic()) {
@@ -11969,6 +11966,7 @@ class StreamClient {
11969
11966
  return this.handleResponse(e.response);
11970
11967
  }
11971
11968
  else {
11969
+ this._logApiError(type, url, e);
11972
11970
  // eslint-disable-next-line no-throw-literal
11973
11971
  throw e;
11974
11972
  }
@@ -12325,7 +12323,7 @@ class StreamVideoClient {
12325
12323
  *
12326
12324
  * @param data the query data.
12327
12325
  */
12328
- this.queryCalls = (data) => __awaiter(this, void 0, void 0, function* () {
12326
+ this.queryCalls = (data = {}) => __awaiter(this, void 0, void 0, function* () {
12329
12327
  const response = yield this.streamClient.post('/calls', data);
12330
12328
  const calls = response.calls.map((c) => {
12331
12329
  const call = new Call({