@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.
@@ -2,7 +2,7 @@
2
2
  * Stream API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: v113.1.0
5
+ * The version of the OpenAPI document: v116.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -661,6 +661,12 @@ export interface VideoCallSessionResponse {
661
661
  * @memberof VideoCallSessionResponse
662
662
  */
663
663
  started_at?: string;
664
+ /**
665
+ *
666
+ * @type {string}
667
+ * @memberof VideoCallSessionResponse
668
+ */
669
+ timer_ends_at?: string;
664
670
  }
665
671
  /**
666
672
  *
@@ -692,6 +698,12 @@ export interface VideoCallSettingsRequest {
692
698
  * @memberof VideoCallSettingsRequest
693
699
  */
694
700
  geofencing?: VideoGeofenceSettingsRequest;
701
+ /**
702
+ *
703
+ * @type {VideoLimitsSettingsRequest}
704
+ * @memberof VideoCallSettingsRequest
705
+ */
706
+ limits?: VideoLimitsSettingsRequest;
695
707
  /**
696
708
  *
697
709
  * @type {VideoRecordSettingsRequest}
@@ -759,6 +771,12 @@ export interface VideoCallSettingsResponse {
759
771
  * @memberof VideoCallSettingsResponse
760
772
  */
761
773
  geofencing: VideoGeofenceSettingsResponse;
774
+ /**
775
+ *
776
+ * @type {VideoLimitsSettingsResponse}
777
+ * @memberof VideoCallSettingsResponse
778
+ */
779
+ limits: VideoLimitsSettingsResponse;
762
780
  /**
763
781
  *
764
782
  * @type {VideoRecordSettingsResponse}
@@ -2166,6 +2184,44 @@ export declare const VideoLayoutSettingsResponseNameEnum: {
2166
2184
  readonly CUSTOM: "custom";
2167
2185
  };
2168
2186
  export type VideoLayoutSettingsResponseNameEnum = typeof VideoLayoutSettingsResponseNameEnum[keyof typeof VideoLayoutSettingsResponseNameEnum];
2187
+ /**
2188
+ *
2189
+ * @export
2190
+ * @interface VideoLimitsSettingsRequest
2191
+ */
2192
+ export interface VideoLimitsSettingsRequest {
2193
+ /**
2194
+ *
2195
+ * @type {number}
2196
+ * @memberof VideoLimitsSettingsRequest
2197
+ */
2198
+ max_duration_seconds?: number;
2199
+ /**
2200
+ *
2201
+ * @type {number}
2202
+ * @memberof VideoLimitsSettingsRequest
2203
+ */
2204
+ max_participants?: number;
2205
+ }
2206
+ /**
2207
+ *
2208
+ * @export
2209
+ * @interface VideoLimitsSettingsResponse
2210
+ */
2211
+ export interface VideoLimitsSettingsResponse {
2212
+ /**
2213
+ *
2214
+ * @type {number}
2215
+ * @memberof VideoLimitsSettingsResponse
2216
+ */
2217
+ max_duration_seconds?: number;
2218
+ /**
2219
+ *
2220
+ * @type {number}
2221
+ * @memberof VideoLimitsSettingsResponse
2222
+ */
2223
+ max_participants?: number;
2224
+ }
2169
2225
  /**
2170
2226
  *
2171
2227
  * @export
@@ -2601,6 +2657,7 @@ export interface VideoNullTime {
2601
2657
  */
2602
2658
  export declare const VideoOwnCapability: {
2603
2659
  readonly BLOCK_USERS: "block-users";
2660
+ readonly CHANGE_MAX_DURATION: "change-max-duration";
2604
2661
  readonly CREATE_CALL: "create-call";
2605
2662
  readonly CREATE_REACTION: "create-reaction";
2606
2663
  readonly ENABLE_NOISE_CANCELLATION: "enable-noise-cancellation";
@@ -4519,6 +4576,12 @@ export interface VideoUserStats {
4519
4576
  * @memberof VideoUserStats
4520
4577
  */
4521
4578
  info: VideoUserInfoResponse;
4579
+ /**
4580
+ *
4581
+ * @type {number}
4582
+ * @memberof VideoUserStats
4583
+ */
4584
+ min_event_ts: number;
4522
4585
  /**
4523
4586
  *
4524
4587
  * @type {number}
@@ -2,7 +2,7 @@
2
2
  * Stream API
3
3
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
4
  *
5
- * The version of the OpenAPI document: v113.1.0
5
+ * The version of the OpenAPI document: v116.0.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -138,8 +138,8 @@ export class StreamClient {
138
138
  */
139
139
  createToken(
140
140
  userID: string,
141
- exp = Math.round(new Date().getTime() / 1000) + 60 * 60,
142
- iat = Math.round(Date.now() / 1000),
141
+ exp = Math.round(Date.now() / 1000) + 60 * 60,
142
+ iat = Math.floor((Date.now() - 1000) / 1000),
143
143
  call_cids?: string[],
144
144
  ) {
145
145
  const payload: UserTokenPayload = {
@@ -169,8 +169,8 @@ export class StreamClient {
169
169
  createCallToken(
170
170
  userIdOrObject: string | { user_id: string; role?: string },
171
171
  call_cids: string[],
172
- exp = Math.round(new Date().getTime() / 1000) + 60 * 60,
173
- iat = Math.round(Date.now() / 1000),
172
+ exp = Math.round(Date.now() / 1000) + 60 * 60,
173
+ iat = Math.floor((Date.now() - 1000) / 1000),
174
174
  ) {
175
175
  const payload: CallTokenPayload = {
176
176
  exp,
@@ -4,7 +4,7 @@
4
4
  * Stream API
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: v113.1.0
7
+ * The version of the OpenAPI document: v116.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -657,6 +657,12 @@ export interface VideoCallSessionResponse {
657
657
  * @memberof VideoCallSessionResponse
658
658
  */
659
659
  started_at?: string;
660
+ /**
661
+ *
662
+ * @type {string}
663
+ * @memberof VideoCallSessionResponse
664
+ */
665
+ timer_ends_at?: string;
660
666
  }
661
667
  /**
662
668
  *
@@ -688,6 +694,12 @@ export interface VideoCallSettingsRequest {
688
694
  * @memberof VideoCallSettingsRequest
689
695
  */
690
696
  geofencing?: VideoGeofenceSettingsRequest;
697
+ /**
698
+ *
699
+ * @type {VideoLimitsSettingsRequest}
700
+ * @memberof VideoCallSettingsRequest
701
+ */
702
+ limits?: VideoLimitsSettingsRequest;
691
703
  /**
692
704
  *
693
705
  * @type {VideoRecordSettingsRequest}
@@ -755,6 +767,12 @@ export interface VideoCallSettingsResponse {
755
767
  * @memberof VideoCallSettingsResponse
756
768
  */
757
769
  geofencing: VideoGeofenceSettingsResponse;
770
+ /**
771
+ *
772
+ * @type {VideoLimitsSettingsResponse}
773
+ * @memberof VideoCallSettingsResponse
774
+ */
775
+ limits: VideoLimitsSettingsResponse;
758
776
  /**
759
777
  *
760
778
  * @type {VideoRecordSettingsResponse}
@@ -2160,6 +2178,44 @@ export const VideoLayoutSettingsResponseNameEnum = {
2160
2178
  } as const;
2161
2179
  export type VideoLayoutSettingsResponseNameEnum = typeof VideoLayoutSettingsResponseNameEnum[keyof typeof VideoLayoutSettingsResponseNameEnum];
2162
2180
 
2181
+ /**
2182
+ *
2183
+ * @export
2184
+ * @interface VideoLimitsSettingsRequest
2185
+ */
2186
+ export interface VideoLimitsSettingsRequest {
2187
+ /**
2188
+ *
2189
+ * @type {number}
2190
+ * @memberof VideoLimitsSettingsRequest
2191
+ */
2192
+ max_duration_seconds?: number;
2193
+ /**
2194
+ *
2195
+ * @type {number}
2196
+ * @memberof VideoLimitsSettingsRequest
2197
+ */
2198
+ max_participants?: number;
2199
+ }
2200
+ /**
2201
+ *
2202
+ * @export
2203
+ * @interface VideoLimitsSettingsResponse
2204
+ */
2205
+ export interface VideoLimitsSettingsResponse {
2206
+ /**
2207
+ *
2208
+ * @type {number}
2209
+ * @memberof VideoLimitsSettingsResponse
2210
+ */
2211
+ max_duration_seconds?: number;
2212
+ /**
2213
+ *
2214
+ * @type {number}
2215
+ * @memberof VideoLimitsSettingsResponse
2216
+ */
2217
+ max_participants?: number;
2218
+ }
2163
2219
  /**
2164
2220
  *
2165
2221
  * @export
@@ -2591,6 +2647,7 @@ export interface VideoNullTime {
2591
2647
  */
2592
2648
  export const VideoOwnCapability = {
2593
2649
  BLOCK_USERS: 'block-users',
2650
+ CHANGE_MAX_DURATION: 'change-max-duration',
2594
2651
  CREATE_CALL: 'create-call',
2595
2652
  CREATE_REACTION: 'create-reaction',
2596
2653
  ENABLE_NOISE_CANCELLATION: 'enable-noise-cancellation',
@@ -4498,6 +4555,12 @@ export interface VideoUserStats {
4498
4555
  * @memberof VideoUserStats
4499
4556
  */
4500
4557
  info: VideoUserInfoResponse;
4558
+ /**
4559
+ *
4560
+ * @type {number}
4561
+ * @memberof VideoUserStats
4562
+ */
4563
+ min_event_ts: number;
4501
4564
  /**
4502
4565
  *
4503
4566
  * @type {number}
@@ -4,7 +4,7 @@
4
4
  * Stream API
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: v113.1.0
7
+ * The version of the OpenAPI document: v116.0.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).