@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.cjs.js
CHANGED
|
@@ -200,7 +200,7 @@ decoders.ActivityResponse = (input) => {
|
|
|
200
200
|
};
|
|
201
201
|
return decode(typeMappings, input);
|
|
202
202
|
};
|
|
203
|
-
decoders.
|
|
203
|
+
decoders.ActivitySelectorConfigResponse = (input) => {
|
|
204
204
|
const typeMappings = {
|
|
205
205
|
cutoff_time: { type: 'DatetimeType', isSingle: true },
|
|
206
206
|
};
|
|
@@ -1444,7 +1444,10 @@ decoders.FeedGroupResponse = (input) => {
|
|
|
1444
1444
|
const typeMappings = {
|
|
1445
1445
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1446
1446
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1447
|
-
activity_selectors: {
|
|
1447
|
+
activity_selectors: {
|
|
1448
|
+
type: 'ActivitySelectorConfigResponse',
|
|
1449
|
+
isSingle: false,
|
|
1450
|
+
},
|
|
1448
1451
|
};
|
|
1449
1452
|
return decode(typeMappings, input);
|
|
1450
1453
|
};
|
|
@@ -1508,7 +1511,10 @@ decoders.FeedUpdatedEvent = (input) => {
|
|
|
1508
1511
|
decoders.FeedViewResponse = (input) => {
|
|
1509
1512
|
const typeMappings = {
|
|
1510
1513
|
last_used_at: { type: 'DatetimeType', isSingle: true },
|
|
1511
|
-
activity_selectors: {
|
|
1514
|
+
activity_selectors: {
|
|
1515
|
+
type: 'ActivitySelectorConfigResponse',
|
|
1516
|
+
isSingle: false,
|
|
1517
|
+
},
|
|
1512
1518
|
};
|
|
1513
1519
|
return decode(typeMappings, input);
|
|
1514
1520
|
};
|
|
@@ -2452,6 +2458,20 @@ decoders.QueryCallParticipantsResponse = (input) => {
|
|
|
2452
2458
|
};
|
|
2453
2459
|
return decode(typeMappings, input);
|
|
2454
2460
|
};
|
|
2461
|
+
decoders.QueryCallSessionParticipantStatsResponse = (input) => {
|
|
2462
|
+
const typeMappings = {
|
|
2463
|
+
participants: { type: 'CallStatsParticipant', isSingle: false },
|
|
2464
|
+
call_ended_at: { type: 'DatetimeType', isSingle: true },
|
|
2465
|
+
call_started_at: { type: 'DatetimeType', isSingle: true },
|
|
2466
|
+
};
|
|
2467
|
+
return decode(typeMappings, input);
|
|
2468
|
+
};
|
|
2469
|
+
decoders.QueryCallSessionParticipantStatsTimelineResponse = (input) => {
|
|
2470
|
+
const typeMappings = {
|
|
2471
|
+
events: { type: 'CallParticipantTimeline', isSingle: false },
|
|
2472
|
+
};
|
|
2473
|
+
return decode(typeMappings, input);
|
|
2474
|
+
};
|
|
2455
2475
|
decoders.QueryCallStatsResponse = (input) => {
|
|
2456
2476
|
const typeMappings = {
|
|
2457
2477
|
reports: { type: 'CallStatsReportSummaryResponse', isSingle: false },
|
|
@@ -6669,7 +6689,7 @@ class ApiClient {
|
|
|
6669
6689
|
const headers = {
|
|
6670
6690
|
Authorization: this.apiConfig.token,
|
|
6671
6691
|
'stream-auth-type': 'jwt',
|
|
6672
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
6692
|
+
'X-Stream-Client': 'stream-node-' + "0.7.10",
|
|
6673
6693
|
'Accept-Encoding': 'gzip',
|
|
6674
6694
|
'x-client-request-id': clientRequestId,
|
|
6675
6695
|
};
|
|
@@ -6869,6 +6889,7 @@ class FeedsApi {
|
|
|
6869
6889
|
reason: request?.reason,
|
|
6870
6890
|
report: request?.report,
|
|
6871
6891
|
show_less: request?.show_less,
|
|
6892
|
+
show_more: request?.show_more,
|
|
6872
6893
|
user_id: request?.user_id,
|
|
6873
6894
|
user: request?.user,
|
|
6874
6895
|
};
|
|
@@ -7193,8 +7214,11 @@ class FeedsApi {
|
|
|
7193
7214
|
decoders.GetCommentRepliesResponse?.(response.body);
|
|
7194
7215
|
return { ...response.body, metadata: response.metadata };
|
|
7195
7216
|
}
|
|
7196
|
-
async listFeedGroups() {
|
|
7197
|
-
const
|
|
7217
|
+
async listFeedGroups(request) {
|
|
7218
|
+
const queryParams = {
|
|
7219
|
+
include_soft_deleted: request?.include_soft_deleted,
|
|
7220
|
+
};
|
|
7221
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/feed_groups', undefined, queryParams);
|
|
7198
7222
|
decoders.ListFeedGroupsResponse?.(response.body);
|
|
7199
7223
|
return { ...response.body, metadata: response.metadata };
|
|
7200
7224
|
}
|
|
@@ -7393,10 +7417,13 @@ class FeedsApi {
|
|
|
7393
7417
|
return { ...response.body, metadata: response.metadata };
|
|
7394
7418
|
}
|
|
7395
7419
|
async getFeedGroup(request) {
|
|
7420
|
+
const queryParams = {
|
|
7421
|
+
include_soft_deleted: request?.include_soft_deleted,
|
|
7422
|
+
};
|
|
7396
7423
|
const pathParams = {
|
|
7397
7424
|
id: request?.id,
|
|
7398
7425
|
};
|
|
7399
|
-
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/feed_groups/{id}', pathParams,
|
|
7426
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/feed_groups/{id}', pathParams, queryParams);
|
|
7400
7427
|
decoders.GetFeedGroupResponse?.(response.body);
|
|
7401
7428
|
return { ...response.body, metadata: response.metadata };
|
|
7402
7429
|
}
|
|
@@ -7666,6 +7693,15 @@ class FeedsApi {
|
|
|
7666
7693
|
decoders.UpdateMembershipLevelResponse?.(response.body);
|
|
7667
7694
|
return { ...response.body, metadata: response.metadata };
|
|
7668
7695
|
}
|
|
7696
|
+
async queryFeedsUsageStats(request) {
|
|
7697
|
+
const body = {
|
|
7698
|
+
from: request?.from,
|
|
7699
|
+
to: request?.to,
|
|
7700
|
+
};
|
|
7701
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/stats/usage', undefined, undefined, body, 'application/json');
|
|
7702
|
+
decoders.QueryFeedsUsageStatsResponse?.(response.body);
|
|
7703
|
+
return { ...response.body, metadata: response.metadata };
|
|
7704
|
+
}
|
|
7669
7705
|
async unfollowBatch(request) {
|
|
7670
7706
|
const body = {
|
|
7671
7707
|
follows: request?.follows,
|