@stream-io/node-sdk 0.7.8 → 0.7.10
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 +43 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +43 -7
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +6 -2
- package/dist/src/gen/models/index.d.ts +28 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +39 -3
- package/src/gen/model-decoders/decoders.ts +31 -3
- package/src/gen/models/index.ts +45 -1
package/dist/index.es.mjs
CHANGED
|
@@ -181,7 +181,7 @@ decoders.ActivityResponse = (input) => {
|
|
|
181
181
|
};
|
|
182
182
|
return decode(typeMappings, input);
|
|
183
183
|
};
|
|
184
|
-
decoders.
|
|
184
|
+
decoders.ActivitySelectorConfigResponse = (input) => {
|
|
185
185
|
const typeMappings = {
|
|
186
186
|
cutoff_time: { type: 'DatetimeType', isSingle: true },
|
|
187
187
|
};
|
|
@@ -1425,7 +1425,10 @@ decoders.FeedGroupResponse = (input) => {
|
|
|
1425
1425
|
const typeMappings = {
|
|
1426
1426
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1427
1427
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1428
|
-
activity_selectors: {
|
|
1428
|
+
activity_selectors: {
|
|
1429
|
+
type: 'ActivitySelectorConfigResponse',
|
|
1430
|
+
isSingle: false,
|
|
1431
|
+
},
|
|
1429
1432
|
};
|
|
1430
1433
|
return decode(typeMappings, input);
|
|
1431
1434
|
};
|
|
@@ -1489,7 +1492,10 @@ decoders.FeedUpdatedEvent = (input) => {
|
|
|
1489
1492
|
decoders.FeedViewResponse = (input) => {
|
|
1490
1493
|
const typeMappings = {
|
|
1491
1494
|
last_used_at: { type: 'DatetimeType', isSingle: true },
|
|
1492
|
-
activity_selectors: {
|
|
1495
|
+
activity_selectors: {
|
|
1496
|
+
type: 'ActivitySelectorConfigResponse',
|
|
1497
|
+
isSingle: false,
|
|
1498
|
+
},
|
|
1493
1499
|
};
|
|
1494
1500
|
return decode(typeMappings, input);
|
|
1495
1501
|
};
|
|
@@ -2433,6 +2439,20 @@ decoders.QueryCallParticipantsResponse = (input) => {
|
|
|
2433
2439
|
};
|
|
2434
2440
|
return decode(typeMappings, input);
|
|
2435
2441
|
};
|
|
2442
|
+
decoders.QueryCallSessionParticipantStatsResponse = (input) => {
|
|
2443
|
+
const typeMappings = {
|
|
2444
|
+
participants: { type: 'CallStatsParticipant', isSingle: false },
|
|
2445
|
+
call_ended_at: { type: 'DatetimeType', isSingle: true },
|
|
2446
|
+
call_started_at: { type: 'DatetimeType', isSingle: true },
|
|
2447
|
+
};
|
|
2448
|
+
return decode(typeMappings, input);
|
|
2449
|
+
};
|
|
2450
|
+
decoders.QueryCallSessionParticipantStatsTimelineResponse = (input) => {
|
|
2451
|
+
const typeMappings = {
|
|
2452
|
+
events: { type: 'CallParticipantTimeline', isSingle: false },
|
|
2453
|
+
};
|
|
2454
|
+
return decode(typeMappings, input);
|
|
2455
|
+
};
|
|
2436
2456
|
decoders.QueryCallStatsResponse = (input) => {
|
|
2437
2457
|
const typeMappings = {
|
|
2438
2458
|
reports: { type: 'CallStatsReportSummaryResponse', isSingle: false },
|
|
@@ -6650,7 +6670,7 @@ class ApiClient {
|
|
|
6650
6670
|
const headers = {
|
|
6651
6671
|
Authorization: this.apiConfig.token,
|
|
6652
6672
|
'stream-auth-type': 'jwt',
|
|
6653
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
6673
|
+
'X-Stream-Client': 'stream-node-' + "0.7.10",
|
|
6654
6674
|
'Accept-Encoding': 'gzip',
|
|
6655
6675
|
'x-client-request-id': clientRequestId,
|
|
6656
6676
|
};
|
|
@@ -6850,6 +6870,7 @@ class FeedsApi {
|
|
|
6850
6870
|
reason: request?.reason,
|
|
6851
6871
|
report: request?.report,
|
|
6852
6872
|
show_less: request?.show_less,
|
|
6873
|
+
show_more: request?.show_more,
|
|
6853
6874
|
user_id: request?.user_id,
|
|
6854
6875
|
user: request?.user,
|
|
6855
6876
|
};
|
|
@@ -7174,8 +7195,11 @@ class FeedsApi {
|
|
|
7174
7195
|
decoders.GetCommentRepliesResponse?.(response.body);
|
|
7175
7196
|
return { ...response.body, metadata: response.metadata };
|
|
7176
7197
|
}
|
|
7177
|
-
async listFeedGroups() {
|
|
7178
|
-
const
|
|
7198
|
+
async listFeedGroups(request) {
|
|
7199
|
+
const queryParams = {
|
|
7200
|
+
include_soft_deleted: request?.include_soft_deleted,
|
|
7201
|
+
};
|
|
7202
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/feed_groups', undefined, queryParams);
|
|
7179
7203
|
decoders.ListFeedGroupsResponse?.(response.body);
|
|
7180
7204
|
return { ...response.body, metadata: response.metadata };
|
|
7181
7205
|
}
|
|
@@ -7374,10 +7398,13 @@ class FeedsApi {
|
|
|
7374
7398
|
return { ...response.body, metadata: response.metadata };
|
|
7375
7399
|
}
|
|
7376
7400
|
async getFeedGroup(request) {
|
|
7401
|
+
const queryParams = {
|
|
7402
|
+
include_soft_deleted: request?.include_soft_deleted,
|
|
7403
|
+
};
|
|
7377
7404
|
const pathParams = {
|
|
7378
7405
|
id: request?.id,
|
|
7379
7406
|
};
|
|
7380
|
-
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/feed_groups/{id}', pathParams,
|
|
7407
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/feed_groups/{id}', pathParams, queryParams);
|
|
7381
7408
|
decoders.GetFeedGroupResponse?.(response.body);
|
|
7382
7409
|
return { ...response.body, metadata: response.metadata };
|
|
7383
7410
|
}
|
|
@@ -7647,6 +7674,15 @@ class FeedsApi {
|
|
|
7647
7674
|
decoders.UpdateMembershipLevelResponse?.(response.body);
|
|
7648
7675
|
return { ...response.body, metadata: response.metadata };
|
|
7649
7676
|
}
|
|
7677
|
+
async queryFeedsUsageStats(request) {
|
|
7678
|
+
const body = {
|
|
7679
|
+
from: request?.from,
|
|
7680
|
+
to: request?.to,
|
|
7681
|
+
};
|
|
7682
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/stats/usage', undefined, undefined, body, 'application/json');
|
|
7683
|
+
decoders.QueryFeedsUsageStatsResponse?.(response.body);
|
|
7684
|
+
return { ...response.body, metadata: response.metadata };
|
|
7685
|
+
}
|
|
7650
7686
|
async unfollowBatch(request) {
|
|
7651
7687
|
const body = {
|
|
7652
7688
|
follows: request?.follows,
|