@stream-io/node-sdk 0.7.9 → 0.7.11
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 +34 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +34 -5
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +2 -1
- package/dist/src/gen/models/index.d.ts +28 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +27 -0
- package/src/gen/model-decoders/decoders.ts +31 -5
- 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,8 +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
|
-
|
|
1429
|
-
|
|
1428
|
+
activity_selectors: {
|
|
1429
|
+
type: 'ActivitySelectorConfigResponse',
|
|
1430
|
+
isSingle: false,
|
|
1431
|
+
},
|
|
1430
1432
|
};
|
|
1431
1433
|
return decode(typeMappings, input);
|
|
1432
1434
|
};
|
|
@@ -1490,7 +1492,10 @@ decoders.FeedUpdatedEvent = (input) => {
|
|
|
1490
1492
|
decoders.FeedViewResponse = (input) => {
|
|
1491
1493
|
const typeMappings = {
|
|
1492
1494
|
last_used_at: { type: 'DatetimeType', isSingle: true },
|
|
1493
|
-
activity_selectors: {
|
|
1495
|
+
activity_selectors: {
|
|
1496
|
+
type: 'ActivitySelectorConfigResponse',
|
|
1497
|
+
isSingle: false,
|
|
1498
|
+
},
|
|
1494
1499
|
};
|
|
1495
1500
|
return decode(typeMappings, input);
|
|
1496
1501
|
};
|
|
@@ -2434,6 +2439,20 @@ decoders.QueryCallParticipantsResponse = (input) => {
|
|
|
2434
2439
|
};
|
|
2435
2440
|
return decode(typeMappings, input);
|
|
2436
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
|
+
};
|
|
2437
2456
|
decoders.QueryCallStatsResponse = (input) => {
|
|
2438
2457
|
const typeMappings = {
|
|
2439
2458
|
reports: { type: 'CallStatsReportSummaryResponse', isSingle: false },
|
|
@@ -6651,7 +6670,7 @@ class ApiClient {
|
|
|
6651
6670
|
const headers = {
|
|
6652
6671
|
Authorization: this.apiConfig.token,
|
|
6653
6672
|
'stream-auth-type': 'jwt',
|
|
6654
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
6673
|
+
'X-Stream-Client': 'stream-node-' + "0.7.11",
|
|
6655
6674
|
'Accept-Encoding': 'gzip',
|
|
6656
6675
|
'x-client-request-id': clientRequestId,
|
|
6657
6676
|
};
|
|
@@ -6851,6 +6870,7 @@ class FeedsApi {
|
|
|
6851
6870
|
reason: request?.reason,
|
|
6852
6871
|
report: request?.report,
|
|
6853
6872
|
show_less: request?.show_less,
|
|
6873
|
+
show_more: request?.show_more,
|
|
6854
6874
|
user_id: request?.user_id,
|
|
6855
6875
|
user: request?.user,
|
|
6856
6876
|
};
|
|
@@ -7654,6 +7674,15 @@ class FeedsApi {
|
|
|
7654
7674
|
decoders.UpdateMembershipLevelResponse?.(response.body);
|
|
7655
7675
|
return { ...response.body, metadata: response.metadata };
|
|
7656
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
|
+
}
|
|
7657
7686
|
async unfollowBatch(request) {
|
|
7658
7687
|
const body = {
|
|
7659
7688
|
follows: request?.follows,
|