@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.es.mjs
CHANGED
|
@@ -6649,7 +6649,7 @@ class ApiClient {
|
|
|
6649
6649
|
const headers = {
|
|
6650
6650
|
Authorization: this.apiConfig.token,
|
|
6651
6651
|
'stream-auth-type': 'jwt',
|
|
6652
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
6652
|
+
'X-Stream-Client': 'stream-node-' + "0.7.7",
|
|
6653
6653
|
'Accept-Encoding': 'gzip',
|
|
6654
6654
|
'x-client-request-id': clientRequestId,
|
|
6655
6655
|
};
|
|
@@ -7491,6 +7491,17 @@ class FeedsApi {
|
|
|
7491
7491
|
decoders.GetFeedVisibilityResponse?.(response.body);
|
|
7492
7492
|
return { ...response.body, metadata: response.metadata };
|
|
7493
7493
|
}
|
|
7494
|
+
async updateFeedVisibility(request) {
|
|
7495
|
+
const pathParams = {
|
|
7496
|
+
name: request?.name,
|
|
7497
|
+
};
|
|
7498
|
+
const body = {
|
|
7499
|
+
grants: request?.grants,
|
|
7500
|
+
};
|
|
7501
|
+
const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_visibilities/{name}', pathParams, undefined, body, 'application/json');
|
|
7502
|
+
decoders.UpdateFeedVisibilityResponse?.(response.body);
|
|
7503
|
+
return { ...response.body, metadata: response.metadata };
|
|
7504
|
+
}
|
|
7494
7505
|
async createFeedsBatch(request) {
|
|
7495
7506
|
const body = {
|
|
7496
7507
|
feeds: request?.feeds,
|