@stream-io/node-sdk 0.7.6 → 0.7.7
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 +4 -1
- package/dist/src/gen/models/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +28 -0
- package/src/gen/models/index.ts +10 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6668,7 +6668,7 @@ class ApiClient {
|
|
|
6668
6668
|
const headers = {
|
|
6669
6669
|
Authorization: this.apiConfig.token,
|
|
6670
6670
|
'stream-auth-type': 'jwt',
|
|
6671
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
6671
|
+
'X-Stream-Client': 'stream-node-' + "0.7.7",
|
|
6672
6672
|
'Accept-Encoding': 'gzip',
|
|
6673
6673
|
'x-client-request-id': clientRequestId,
|
|
6674
6674
|
};
|
|
@@ -7510,6 +7510,17 @@ class FeedsApi {
|
|
|
7510
7510
|
decoders.GetFeedVisibilityResponse?.(response.body);
|
|
7511
7511
|
return { ...response.body, metadata: response.metadata };
|
|
7512
7512
|
}
|
|
7513
|
+
async updateFeedVisibility(request) {
|
|
7514
|
+
const pathParams = {
|
|
7515
|
+
name: request?.name,
|
|
7516
|
+
};
|
|
7517
|
+
const body = {
|
|
7518
|
+
grants: request?.grants,
|
|
7519
|
+
};
|
|
7520
|
+
const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_visibilities/{name}', pathParams, undefined, body, 'application/json');
|
|
7521
|
+
decoders.UpdateFeedVisibilityResponse?.(response.body);
|
|
7522
|
+
return { ...response.body, metadata: response.metadata };
|
|
7523
|
+
}
|
|
7513
7524
|
async createFeedsBatch(request) {
|
|
7514
7525
|
const body = {
|
|
7515
7526
|
feeds: request?.feeds,
|