@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.es.js CHANGED
@@ -616,6 +616,7 @@ const VideoNoiseCancellationSettingsModeEnum = {
616
616
  */
617
617
  const VideoOwnCapability = {
618
618
  BLOCK_USERS: 'block-users',
619
+ CHANGE_MAX_DURATION: 'change-max-duration',
619
620
  CREATE_CALL: 'create-call',
620
621
  CREATE_REACTION: 'create-reaction',
621
622
  ENABLE_NOISE_CANCELLATION: 'enable-noise-cancellation',
@@ -6156,7 +6157,7 @@ class StreamChatClient {
6156
6157
  * Stream API
6157
6158
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6158
6159
  *
6159
- * The version of the OpenAPI document: v113.1.0
6160
+ * The version of the OpenAPI document: v116.0.0
6160
6161
  *
6161
6162
  *
6162
6163
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6416,7 +6417,7 @@ class JSONApiResponse {
6416
6417
  * Stream API
6417
6418
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6418
6419
  *
6419
- * The version of the OpenAPI document: v113.1.0
6420
+ * The version of the OpenAPI document: v116.0.0
6420
6421
  *
6421
6422
  *
6422
6423
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -8743,7 +8744,7 @@ class StreamClient {
8743
8744
  ? 'https://chat.stream-io-api.com'
8744
8745
  : 'https://video.stream-io-api.com'),
8745
8746
  headers: {
8746
- 'X-Stream-Client': 'stream-node-' + "0.2.3",
8747
+ 'X-Stream-Client': 'stream-node-' + "0.2.5",
8747
8748
  },
8748
8749
  middleware: [
8749
8750
  {
@@ -8870,7 +8871,7 @@ class StreamClient {
8870
8871
  * @param call_cids this parameter is deprecated use `createCallToken` for call tokens
8871
8872
  * @returns
8872
8873
  */
8873
- createToken(userID, exp = Math.round(new Date().getTime() / 1000) + 60 * 60, iat = Math.round(Date.now() / 1000), call_cids) {
8874
+ createToken(userID, exp = Math.round(Date.now() / 1000) + 60 * 60, iat = Math.floor((Date.now() - 1000) / 1000), call_cids) {
8874
8875
  const payload = {
8875
8876
  user_id: userID,
8876
8877
  exp,
@@ -8890,7 +8891,7 @@ class StreamClient {
8890
8891
  * @param iat this is deprecated, the current date will be set internally
8891
8892
  * @returns
8892
8893
  */
8893
- createCallToken(userIdOrObject, call_cids, exp = Math.round(new Date().getTime() / 1000) + 60 * 60, iat = Math.round(Date.now() / 1000)) {
8894
+ createCallToken(userIdOrObject, call_cids, exp = Math.round(Date.now() / 1000) + 60 * 60, iat = Math.floor((Date.now() - 1000) / 1000)) {
8894
8895
  const payload = {
8895
8896
  exp,
8896
8897
  iat,