@stream-io/node-sdk 0.7.58 → 0.7.59
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 +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +12 -1
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +5 -1
- package/dist/src/gen/models/index.d.ts +17 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +26 -0
- package/src/gen/models/index.ts +21 -0
package/dist/index.es.mjs
CHANGED
|
@@ -8139,7 +8139,7 @@ class ApiClient {
|
|
|
8139
8139
|
const headers = {
|
|
8140
8140
|
Authorization: this.apiConfig.token,
|
|
8141
8141
|
'stream-auth-type': 'jwt',
|
|
8142
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
8142
|
+
'X-Stream-Client': 'stream-node-' + "0.7.59",
|
|
8143
8143
|
'Accept-Encoding': 'gzip',
|
|
8144
8144
|
'x-client-request-id': clientRequestId,
|
|
8145
8145
|
};
|
|
@@ -9563,6 +9563,17 @@ class FeedsApi {
|
|
|
9563
9563
|
decoders.ExportFeedUserDataResponse?.(response.body);
|
|
9564
9564
|
return { ...response.body, metadata: response.metadata };
|
|
9565
9565
|
}
|
|
9566
|
+
async getUserInterests(request) {
|
|
9567
|
+
const queryParams = {
|
|
9568
|
+
limit: request?.limit,
|
|
9569
|
+
};
|
|
9570
|
+
const pathParams = {
|
|
9571
|
+
user_id: request?.user_id,
|
|
9572
|
+
};
|
|
9573
|
+
const response = await this.apiClient.sendRequest('GET', '/api/v2/feeds/users/{user_id}/interests', pathParams, queryParams);
|
|
9574
|
+
decoders.GetUserInterestsResponse?.(response.body);
|
|
9575
|
+
return { ...response.body, metadata: response.metadata };
|
|
9576
|
+
}
|
|
9566
9577
|
}
|
|
9567
9578
|
|
|
9568
9579
|
class FeedApi {
|