@stream-io/node-sdk 0.2.3 → 0.2.5
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.cjs.js +6 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +6 -5
- package/dist/index.es.js.map +1 -1
- package/dist/src/gen/video/apis/ProductvideoApi.d.ts +1 -1
- package/dist/src/gen/video/models/index.d.ts +63 -0
- package/dist/src/gen/video/runtime.d.ts +1 -1
- package/package.json +1 -1
- package/src/StreamClient.ts +4 -4
- package/src/gen/video/apis/ProductvideoApi.ts +1 -1
- package/src/gen/video/models/index.ts +63 -0
- package/src/gen/video/runtime.ts +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -618,6 +618,7 @@ const VideoNoiseCancellationSettingsModeEnum = {
|
|
|
618
618
|
*/
|
|
619
619
|
const VideoOwnCapability = {
|
|
620
620
|
BLOCK_USERS: 'block-users',
|
|
621
|
+
CHANGE_MAX_DURATION: 'change-max-duration',
|
|
621
622
|
CREATE_CALL: 'create-call',
|
|
622
623
|
CREATE_REACTION: 'create-reaction',
|
|
623
624
|
ENABLE_NOISE_CANCELLATION: 'enable-noise-cancellation',
|
|
@@ -6158,7 +6159,7 @@ class StreamChatClient {
|
|
|
6158
6159
|
* Stream API
|
|
6159
6160
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6160
6161
|
*
|
|
6161
|
-
* The version of the OpenAPI document:
|
|
6162
|
+
* The version of the OpenAPI document: v116.0.0
|
|
6162
6163
|
*
|
|
6163
6164
|
*
|
|
6164
6165
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6418,7 +6419,7 @@ class JSONApiResponse {
|
|
|
6418
6419
|
* Stream API
|
|
6419
6420
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6420
6421
|
*
|
|
6421
|
-
* The version of the OpenAPI document:
|
|
6422
|
+
* The version of the OpenAPI document: v116.0.0
|
|
6422
6423
|
*
|
|
6423
6424
|
*
|
|
6424
6425
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -8745,7 +8746,7 @@ class StreamClient {
|
|
|
8745
8746
|
? 'https://chat.stream-io-api.com'
|
|
8746
8747
|
: 'https://video.stream-io-api.com'),
|
|
8747
8748
|
headers: {
|
|
8748
|
-
'X-Stream-Client': 'stream-node-' + "0.2.
|
|
8749
|
+
'X-Stream-Client': 'stream-node-' + "0.2.5",
|
|
8749
8750
|
},
|
|
8750
8751
|
middleware: [
|
|
8751
8752
|
{
|
|
@@ -8872,7 +8873,7 @@ class StreamClient {
|
|
|
8872
8873
|
* @param call_cids this parameter is deprecated use `createCallToken` for call tokens
|
|
8873
8874
|
* @returns
|
|
8874
8875
|
*/
|
|
8875
|
-
createToken(userID, exp = Math.round(
|
|
8876
|
+
createToken(userID, exp = Math.round(Date.now() / 1000) + 60 * 60, iat = Math.floor((Date.now() - 1000) / 1000), call_cids) {
|
|
8876
8877
|
const payload = {
|
|
8877
8878
|
user_id: userID,
|
|
8878
8879
|
exp,
|
|
@@ -8892,7 +8893,7 @@ class StreamClient {
|
|
|
8892
8893
|
* @param iat this is deprecated, the current date will be set internally
|
|
8893
8894
|
* @returns
|
|
8894
8895
|
*/
|
|
8895
|
-
createCallToken(userIdOrObject, call_cids, exp = Math.round(
|
|
8896
|
+
createCallToken(userIdOrObject, call_cids, exp = Math.round(Date.now() / 1000) + 60 * 60, iat = Math.floor((Date.now() - 1000) / 1000)) {
|
|
8896
8897
|
const payload = {
|
|
8897
8898
|
exp,
|
|
8898
8899
|
iat,
|