@stream-io/node-sdk 0.7.21 → 0.7.22
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 +31 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +31 -6
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +3 -3
- package/dist/src/gen/models/index.d.ts +60 -9
- package/dist/src/gen/video/VideoApi.d.ts +3 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +19 -7
- package/src/gen/model-decoders/decoders.ts +28 -2
- package/src/gen/models/index.ts +101 -15
- package/src/gen/video/VideoApi.ts +6 -0
package/dist/index.es.mjs
CHANGED
|
@@ -407,7 +407,7 @@ decoders.BookmarkFolderResponse = (input) => {
|
|
|
407
407
|
const typeMappings = {
|
|
408
408
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
409
409
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
410
|
-
user: { type: '
|
|
410
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
411
411
|
};
|
|
412
412
|
return decode(typeMappings, input);
|
|
413
413
|
};
|
|
@@ -425,7 +425,7 @@ decoders.BookmarkResponse = (input) => {
|
|
|
425
425
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
426
426
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
427
427
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
428
|
-
user: { type: '
|
|
428
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
429
429
|
folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
430
430
|
};
|
|
431
431
|
return decode(typeMappings, input);
|
|
@@ -910,6 +910,24 @@ decoders.Channel = (input) => {
|
|
|
910
910
|
};
|
|
911
911
|
return decode(typeMappings, input);
|
|
912
912
|
};
|
|
913
|
+
decoders.ChannelBatchUpdatedCompletedEvent = (input) => {
|
|
914
|
+
const typeMappings = {
|
|
915
|
+
batch_created_at: { type: 'DatetimeType', isSingle: true },
|
|
916
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
917
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
918
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
919
|
+
};
|
|
920
|
+
return decode(typeMappings, input);
|
|
921
|
+
};
|
|
922
|
+
decoders.ChannelBatchUpdatedStartedEvent = (input) => {
|
|
923
|
+
const typeMappings = {
|
|
924
|
+
batch_created_at: { type: 'DatetimeType', isSingle: true },
|
|
925
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
926
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
927
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
928
|
+
};
|
|
929
|
+
return decode(typeMappings, input);
|
|
930
|
+
};
|
|
913
931
|
decoders.ChannelConfig = (input) => {
|
|
914
932
|
const typeMappings = {
|
|
915
933
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -4885,6 +4903,9 @@ class VideoApi {
|
|
|
4885
4903
|
}
|
|
4886
4904
|
async queryCallSessionParticipantStats(request) {
|
|
4887
4905
|
const queryParams = {
|
|
4906
|
+
limit: request?.limit,
|
|
4907
|
+
prev: request?.prev,
|
|
4908
|
+
next: request?.next,
|
|
4888
4909
|
sort: request?.sort,
|
|
4889
4910
|
filter_conditions: request?.filter_conditions,
|
|
4890
4911
|
};
|
|
@@ -7018,7 +7039,7 @@ class ApiClient {
|
|
|
7018
7039
|
const headers = {
|
|
7019
7040
|
Authorization: this.apiConfig.token,
|
|
7020
7041
|
'stream-auth-type': 'jwt',
|
|
7021
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
7042
|
+
'X-Stream-Client': 'stream-node-' + "0.7.22",
|
|
7022
7043
|
'Accept-Encoding': 'gzip',
|
|
7023
7044
|
'x-client-request-id': clientRequestId,
|
|
7024
7045
|
};
|
|
@@ -7466,11 +7487,11 @@ class FeedsApi {
|
|
|
7466
7487
|
}
|
|
7467
7488
|
async addComment(request) {
|
|
7468
7489
|
const body = {
|
|
7469
|
-
object_id: request?.object_id,
|
|
7470
|
-
object_type: request?.object_type,
|
|
7471
7490
|
comment: request?.comment,
|
|
7472
7491
|
create_notification_activity: request?.create_notification_activity,
|
|
7473
7492
|
id: request?.id,
|
|
7493
|
+
object_id: request?.object_id,
|
|
7494
|
+
object_type: request?.object_type,
|
|
7474
7495
|
parent_id: request?.parent_id,
|
|
7475
7496
|
skip_enrich_url: request?.skip_enrich_url,
|
|
7476
7497
|
skip_push: request?.skip_push,
|
|
@@ -7642,6 +7663,7 @@ class FeedsApi {
|
|
|
7642
7663
|
feed_id: request?.feed_id,
|
|
7643
7664
|
};
|
|
7644
7665
|
const body = {
|
|
7666
|
+
id_around: request?.id_around,
|
|
7645
7667
|
limit: request?.limit,
|
|
7646
7668
|
next: request?.next,
|
|
7647
7669
|
prev: request?.prev,
|
|
@@ -8118,7 +8140,10 @@ class FeedsApi {
|
|
|
8118
8140
|
const pathParams = {
|
|
8119
8141
|
user_id: request?.user_id,
|
|
8120
8142
|
};
|
|
8121
|
-
const
|
|
8143
|
+
const body = {
|
|
8144
|
+
hard_delete: request?.hard_delete,
|
|
8145
|
+
};
|
|
8146
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/users/{user_id}/delete', pathParams, undefined, body, 'application/json');
|
|
8122
8147
|
decoders.DeleteFeedUserDataResponse?.(response.body);
|
|
8123
8148
|
return { ...response.body, metadata: response.metadata };
|
|
8124
8149
|
}
|