@stream-io/node-sdk 0.1.7 → 0.1.8

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.
Files changed (86) hide show
  1. package/README.md +8 -2
  2. package/dist/index.cjs.js +170 -515
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.d.ts +6 -6
  5. package/dist/index.es.js +170 -515
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/src/StreamCall.d.ts +7 -10
  8. package/dist/src/StreamChannel.d.ts +4 -4
  9. package/dist/src/StreamChatClient.d.ts +8 -8
  10. package/dist/src/StreamClient.d.ts +11 -11
  11. package/dist/src/StreamVideoClient.d.ts +4 -4
  12. package/dist/src/gen/chat/apis/ChannelTypesApi.d.ts +1 -1
  13. package/dist/src/gen/chat/apis/ChannelsApi.d.ts +12 -40
  14. package/dist/src/gen/chat/apis/CustomCommandsApi.d.ts +1 -1
  15. package/dist/src/gen/chat/apis/DefaultApi.d.ts +1 -1
  16. package/dist/src/gen/chat/apis/DevicesApi.d.ts +1 -1
  17. package/dist/src/gen/chat/apis/EventsApi.d.ts +2 -19
  18. package/dist/src/gen/chat/apis/FilesApi.d.ts +1 -1
  19. package/dist/src/gen/chat/apis/GDPRApi.d.ts +1 -1
  20. package/dist/src/gen/chat/apis/ImportsApi.d.ts +1 -1
  21. package/dist/src/gen/chat/apis/MessagesApi.d.ts +2 -2
  22. package/dist/src/gen/chat/apis/ModerationApi.d.ts +1 -1
  23. package/dist/src/gen/chat/apis/PermissionsV2Api.d.ts +1 -1
  24. package/dist/src/gen/chat/apis/PushApi.d.ts +1 -1
  25. package/dist/src/gen/chat/apis/ReactionsApi.d.ts +1 -1
  26. package/dist/src/gen/chat/apis/ServerSideApi.d.ts +1 -1
  27. package/dist/src/gen/chat/apis/SettingsApi.d.ts +1 -1
  28. package/dist/src/gen/chat/apis/TasksApi.d.ts +1 -1
  29. package/dist/src/gen/chat/apis/TestingApi.d.ts +1 -1
  30. package/dist/src/gen/chat/apis/UsersApi.d.ts +1 -1
  31. package/dist/src/gen/chat/models/index.d.ts +141 -160
  32. package/dist/src/gen/chat/runtime.d.ts +1 -1
  33. package/dist/src/gen/video/apis/DefaultApi.d.ts +2 -76
  34. package/dist/src/gen/video/apis/ServerSideApi.d.ts +1 -1
  35. package/dist/src/gen/video/models/index.d.ts +0 -271
  36. package/dist/src/gen/video/runtime.d.ts +1 -1
  37. package/dist/src/utils/create-token.d.ts +1 -1
  38. package/index.ts +6 -6
  39. package/package.json +26 -6
  40. package/src/StreamCall.ts +15 -19
  41. package/src/StreamChannel.ts +177 -75
  42. package/src/StreamChatClient.ts +82 -45
  43. package/src/StreamClient.ts +78 -75
  44. package/src/StreamVideoClient.ts +8 -8
  45. package/src/gen/chat/apis/ChannelTypesApi.ts +1 -1
  46. package/src/gen/chat/apis/ChannelsApi.ts +35 -160
  47. package/src/gen/chat/apis/CustomCommandsApi.ts +1 -1
  48. package/src/gen/chat/apis/DefaultApi.ts +1 -1
  49. package/src/gen/chat/apis/DevicesApi.ts +1 -1
  50. package/src/gen/chat/apis/EventsApi.ts +1 -74
  51. package/src/gen/chat/apis/FilesApi.ts +13 -13
  52. package/src/gen/chat/apis/GDPRApi.ts +1 -1
  53. package/src/gen/chat/apis/ImportsApi.ts +1 -1
  54. package/src/gen/chat/apis/MessagesApi.ts +56 -56
  55. package/src/gen/chat/apis/ModerationApi.ts +1 -1
  56. package/src/gen/chat/apis/PermissionsV2Api.ts +1 -1
  57. package/src/gen/chat/apis/PushApi.ts +1 -1
  58. package/src/gen/chat/apis/ReactionsApi.ts +1 -1
  59. package/src/gen/chat/apis/ServerSideApi.ts +1 -1
  60. package/src/gen/chat/apis/SettingsApi.ts +1 -1
  61. package/src/gen/chat/apis/TasksApi.ts +1 -1
  62. package/src/gen/chat/apis/TestingApi.ts +1 -1
  63. package/src/gen/chat/apis/UsersApi.ts +1 -1
  64. package/src/gen/chat/apis/index.ts +8 -9
  65. package/src/gen/chat/models/index.ts +141 -160
  66. package/src/gen/chat/runtime.ts +1 -1
  67. package/src/gen/video/apis/DefaultApi.ts +1 -303
  68. package/src/gen/video/apis/ServerSideApi.ts +1 -1
  69. package/src/gen/video/models/index.ts +0 -269
  70. package/src/gen/video/runtime.ts +1 -1
  71. package/src/types.ts +1 -1
  72. package/src/utils/create-token.ts +1 -1
  73. package/dist/__tests__/block-lists.test.d.ts +0 -1
  74. package/dist/__tests__/call-members.test.d.ts +0 -1
  75. package/dist/__tests__/call-types.test.d.ts +0 -1
  76. package/dist/__tests__/call.test.d.ts +0 -1
  77. package/dist/__tests__/channel-types.test.d.ts +0 -1
  78. package/dist/__tests__/channel.test.d.ts +0 -1
  79. package/dist/__tests__/command.test.d.ts +0 -1
  80. package/dist/__tests__/create-test-client.d.ts +0 -3
  81. package/dist/__tests__/create-token.test.d.ts +0 -1
  82. package/dist/__tests__/devices-push.test.d.ts +0 -1
  83. package/dist/__tests__/messages.test.d.ts +0 -1
  84. package/dist/__tests__/permissions-app-settings.test.d.ts +0 -1
  85. package/dist/__tests__/user-compat.test.d.ts +0 -1
  86. package/dist/__tests__/users.test.d.ts +0 -1
@@ -493,6 +493,24 @@ export interface App {
493
493
  * @memberof App
494
494
  */
495
495
  search_backend: AppSearchBackendEnum;
496
+ /**
497
+ *
498
+ * @type {string}
499
+ * @memberof App
500
+ */
501
+ sns_key: string;
502
+ /**
503
+ *
504
+ * @type {string}
505
+ * @memberof App
506
+ */
507
+ sns_secret: string;
508
+ /**
509
+ *
510
+ * @type {string}
511
+ * @memberof App
512
+ */
513
+ sns_topic_arn: string;
496
514
  /**
497
515
  *
498
516
  * @type {string}
@@ -2318,18 +2336,6 @@ export interface ChannelFrozenEvent {
2318
2336
  * @interface ChannelGetOrCreateRequest
2319
2337
  */
2320
2338
  export interface ChannelGetOrCreateRequest {
2321
- /**
2322
- *
2323
- * @type {string}
2324
- * @memberof ChannelGetOrCreateRequest
2325
- */
2326
- client_id?: string;
2327
- /**
2328
- *
2329
- * @type {string}
2330
- * @memberof ChannelGetOrCreateRequest
2331
- */
2332
- connection_id?: string;
2333
2339
  /**
2334
2340
  *
2335
2341
  * @type {ChannelRequest}
@@ -2354,24 +2360,12 @@ export interface ChannelGetOrCreateRequest {
2354
2360
  * @memberof ChannelGetOrCreateRequest
2355
2361
  */
2356
2362
  messages?: MessagePaginationParamsRequest;
2357
- /**
2358
- * Fetch user presence info
2359
- * @type {boolean}
2360
- * @memberof ChannelGetOrCreateRequest
2361
- */
2362
- presence?: boolean;
2363
2363
  /**
2364
2364
  * Refresh channel state
2365
2365
  * @type {boolean}
2366
2366
  * @memberof ChannelGetOrCreateRequest
2367
2367
  */
2368
2368
  state?: boolean;
2369
- /**
2370
- * Start watching the channel
2371
- * @type {boolean}
2372
- * @memberof ChannelGetOrCreateRequest
2373
- */
2374
- watch?: boolean;
2375
2369
  /**
2376
2370
  *
2377
2371
  * @type {PaginationParamsRequest}
@@ -2537,6 +2531,12 @@ export interface ChannelMember {
2537
2531
  * @memberof ChannelMember
2538
2532
  */
2539
2533
  is_moderator?: boolean;
2534
+ /**
2535
+ *
2536
+ * @type {boolean}
2537
+ * @memberof ChannelMember
2538
+ */
2539
+ notifications_muted: boolean;
2540
2540
  /**
2541
2541
  * Permission level of the member in the channel (DEPRECATED: use channel_role instead)
2542
2542
  * @type {string}
@@ -2549,6 +2549,12 @@ export interface ChannelMember {
2549
2549
  * @memberof ChannelMember
2550
2550
  */
2551
2551
  shadow_banned: boolean;
2552
+ /**
2553
+ *
2554
+ * @type {string}
2555
+ * @memberof ChannelMember
2556
+ */
2557
+ status?: string;
2552
2558
  /**
2553
2559
  * Date/time of the last update
2554
2560
  * @type {string}
@@ -2641,6 +2647,12 @@ export interface ChannelMemberRequest {
2641
2647
  * @memberof ChannelMemberRequest
2642
2648
  */
2643
2649
  is_moderator?: boolean;
2650
+ /**
2651
+ *
2652
+ * @type {boolean}
2653
+ * @memberof ChannelMemberRequest
2654
+ */
2655
+ notifications_muted?: boolean;
2644
2656
  /**
2645
2657
  * Permission level of the member in the channel (DEPRECATED: use channel_role instead)
2646
2658
  * @type {string}
@@ -2653,6 +2665,12 @@ export interface ChannelMemberRequest {
2653
2665
  * @memberof ChannelMemberRequest
2654
2666
  */
2655
2667
  shadow_banned?: boolean;
2668
+ /**
2669
+ *
2670
+ * @type {string}
2671
+ * @memberof ChannelMemberRequest
2672
+ */
2673
+ status?: string;
2656
2674
  /**
2657
2675
  * Date/time of the last update
2658
2676
  * @type {string}
@@ -3327,25 +3345,6 @@ export interface ChannelStateResponseFields {
3327
3345
  */
3328
3346
  watchers?: Array<UserObject>;
3329
3347
  }
3330
- /**
3331
- *
3332
- * @export
3333
- * @interface ChannelStopWatchingRequest
3334
- */
3335
- export interface ChannelStopWatchingRequest {
3336
- /**
3337
- *
3338
- * @type {string}
3339
- * @memberof ChannelStopWatchingRequest
3340
- */
3341
- client_id?: string;
3342
- /**
3343
- *
3344
- * @type {string}
3345
- * @memberof ChannelStopWatchingRequest
3346
- */
3347
- connection_id?: string;
3348
- }
3349
3348
  /**
3350
3349
  *
3351
3350
  * @export
@@ -9453,6 +9452,12 @@ export interface MuteUserResponse {
9453
9452
  * @memberof MuteUserResponse
9454
9453
  */
9455
9454
  mutes?: Array<UserMute>;
9455
+ /**
9456
+ *
9457
+ * @type {Array<string>}
9458
+ * @memberof MuteUserResponse
9459
+ */
9460
+ non_existing_users?: Array<string>;
9456
9461
  /**
9457
9462
  *
9458
9463
  * @type {OwnUser}
@@ -11420,18 +11425,6 @@ export interface QueryBannedUsersResponse {
11420
11425
  * @interface QueryChannelsRequest
11421
11426
  */
11422
11427
  export interface QueryChannelsRequest {
11423
- /**
11424
- *
11425
- * @type {string}
11426
- * @memberof QueryChannelsRequest
11427
- */
11428
- client_id?: string;
11429
- /**
11430
- *
11431
- * @type {string}
11432
- * @memberof QueryChannelsRequest
11433
- */
11434
- connection_id?: string;
11435
11428
  /**
11436
11429
  *
11437
11430
  * @type {{ [key: string]: any; }}
@@ -11676,18 +11669,6 @@ export interface QueryMessageFlagsResponse {
11676
11669
  * @interface QueryUsersRequest
11677
11670
  */
11678
11671
  export interface QueryUsersRequest {
11679
- /**
11680
- *
11681
- * @type {string}
11682
- * @memberof QueryUsersRequest
11683
- */
11684
- client_id?: string;
11685
- /**
11686
- *
11687
- * @type {string}
11688
- * @memberof QueryUsersRequest
11689
- */
11690
- connection_id?: string;
11691
11672
  /**
11692
11673
  * User filters
11693
11674
  * @type {{ [key: string]: any; }}
@@ -12869,99 +12850,6 @@ export interface SortParamRequest {
12869
12850
  */
12870
12851
  field?: string;
12871
12852
  }
12872
- /**
12873
- *
12874
- * @export
12875
- * @interface StopWatchingResponse
12876
- */
12877
- export interface StopWatchingResponse {
12878
- /**
12879
- * Duration of the request in human-readable format
12880
- * @type {string}
12881
- * @memberof StopWatchingResponse
12882
- */
12883
- duration: string;
12884
- }
12885
- /**
12886
- *
12887
- * @export
12888
- * @interface SyncRequest
12889
- */
12890
- export interface SyncRequest {
12891
- /**
12892
- * List of channel CIDs to sync
12893
- * @type {Array<string>}
12894
- * @memberof SyncRequest
12895
- */
12896
- channel_cids?: Array<string>;
12897
- /**
12898
- *
12899
- * @type {string}
12900
- * @memberof SyncRequest
12901
- */
12902
- client_id?: string;
12903
- /**
12904
- *
12905
- * @type {string}
12906
- * @memberof SyncRequest
12907
- */
12908
- connection_id?: string;
12909
- /**
12910
- * Date from which synchronization should happen
12911
- * @type {string}
12912
- * @memberof SyncRequest
12913
- */
12914
- last_sync_at: string;
12915
- /**
12916
- *
12917
- * @type {UserObjectRequest}
12918
- * @memberof SyncRequest
12919
- */
12920
- user?: UserObjectRequest;
12921
- /**
12922
- *
12923
- * @type {string}
12924
- * @memberof SyncRequest
12925
- */
12926
- user_id?: string;
12927
- /**
12928
- * If set to true this will start watching requested and newly added channels that user has access to. If error occurred with this option enabled and it is not an input error - channels will still be watched.
12929
- * @type {boolean}
12930
- * @memberof SyncRequest
12931
- */
12932
- watch?: boolean;
12933
- /**
12934
- * If set to true this will add 'inaccessible_cids' to response type
12935
- * @type {boolean}
12936
- * @memberof SyncRequest
12937
- */
12938
- with_inaccessible_cids?: boolean;
12939
- }
12940
- /**
12941
- *
12942
- * @export
12943
- * @interface SyncResponse
12944
- */
12945
- export interface SyncResponse {
12946
- /**
12947
- *
12948
- * @type {string}
12949
- * @memberof SyncResponse
12950
- */
12951
- duration: string;
12952
- /**
12953
- * List of events
12954
- * @type {Array<Event>}
12955
- * @memberof SyncResponse
12956
- */
12957
- events: Array<Event>;
12958
- /**
12959
- * List of CIDs that user can't access
12960
- * @type {Array<string>}
12961
- * @memberof SyncResponse
12962
- */
12963
- inaccessible_cids?: Array<string>;
12964
- }
12965
12853
  /**
12966
12854
  *
12967
12855
  * @export
@@ -13373,6 +13261,12 @@ export interface UnmuteResponse {
13373
13261
  * @memberof UnmuteResponse
13374
13262
  */
13375
13263
  duration: string;
13264
+ /**
13265
+ *
13266
+ * @type {Array<string>}
13267
+ * @memberof UnmuteResponse
13268
+ */
13269
+ non_existing_users?: Array<string>;
13376
13270
  }
13377
13271
  /**
13378
13272
  *
@@ -13411,6 +13305,87 @@ export interface UnmuteUserRequest {
13411
13305
  */
13412
13306
  user_id?: string;
13413
13307
  }
13308
+ /**
13309
+ *
13310
+ * @export
13311
+ * @interface UnreadCountsChannel
13312
+ */
13313
+ export interface UnreadCountsChannel {
13314
+ /**
13315
+ *
13316
+ * @type {string}
13317
+ * @memberof UnreadCountsChannel
13318
+ */
13319
+ channel_id: string;
13320
+ /**
13321
+ *
13322
+ * @type {string}
13323
+ * @memberof UnreadCountsChannel
13324
+ */
13325
+ last_read: string;
13326
+ /**
13327
+ *
13328
+ * @type {number}
13329
+ * @memberof UnreadCountsChannel
13330
+ */
13331
+ unread_count: number;
13332
+ }
13333
+ /**
13334
+ *
13335
+ * @export
13336
+ * @interface UnreadCountsChannelType
13337
+ */
13338
+ export interface UnreadCountsChannelType {
13339
+ /**
13340
+ *
13341
+ * @type {number}
13342
+ * @memberof UnreadCountsChannelType
13343
+ */
13344
+ channel_count: number;
13345
+ /**
13346
+ *
13347
+ * @type {string}
13348
+ * @memberof UnreadCountsChannelType
13349
+ */
13350
+ channel_type: string;
13351
+ /**
13352
+ *
13353
+ * @type {number}
13354
+ * @memberof UnreadCountsChannelType
13355
+ */
13356
+ unread_count: number;
13357
+ }
13358
+ /**
13359
+ *
13360
+ * @export
13361
+ * @interface UnreadCountsResponse
13362
+ */
13363
+ export interface UnreadCountsResponse {
13364
+ /**
13365
+ *
13366
+ * @type {Array<UnreadCountsChannelType>}
13367
+ * @memberof UnreadCountsResponse
13368
+ */
13369
+ channel_type: Array<UnreadCountsChannelType>;
13370
+ /**
13371
+ *
13372
+ * @type {Array<UnreadCountsChannel>}
13373
+ * @memberof UnreadCountsResponse
13374
+ */
13375
+ channels: Array<UnreadCountsChannel>;
13376
+ /**
13377
+ * Duration of the request in human-readable format
13378
+ * @type {string}
13379
+ * @memberof UnreadCountsResponse
13380
+ */
13381
+ duration: string;
13382
+ /**
13383
+ *
13384
+ * @type {number}
13385
+ * @memberof UnreadCountsResponse
13386
+ */
13387
+ total_unread_count: number;
13388
+ }
13414
13389
  /**
13415
13390
  *
13416
13391
  * @export
@@ -13573,6 +13548,12 @@ export interface UpdateAppRequest {
13573
13548
  * @memberof UpdateAppRequest
13574
13549
  */
13575
13550
  reminders_interval?: number;
13551
+ /**
13552
+ *
13553
+ * @type {number}
13554
+ * @memberof UpdateAppRequest
13555
+ */
13556
+ reminders_max_members?: number;
13576
13557
  /**
13577
13558
  *
13578
13559
  * @type {string}
@@ -4,7 +4,7 @@
4
4
  * Stream Chat 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: v89.9.2
7
+ * The version of the OpenAPI document: v92.5.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).