@stream-io/node-sdk 0.7.55 → 0.7.56

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 CHANGED
@@ -3053,6 +3053,12 @@ decoders.QueryReviewQueueResponse = (input) => {
3053
3053
  };
3054
3054
  return decode(typeMappings, input);
3055
3055
  };
3056
+ decoders.QueryRevisionHistoryResponse = (input) => {
3057
+ const typeMappings = {
3058
+ revisions: { type: 'RevisionHistoryResponse', isSingle: false },
3059
+ };
3060
+ return decode(typeMappings, input);
3061
+ };
3056
3062
  decoders.QuerySegmentTargetsResponse = (input) => {
3057
3063
  const typeMappings = {
3058
3064
  targets: { type: 'SegmentTargetResponse', isSingle: false },
@@ -3305,6 +3311,12 @@ decoders.ReviewQueueItemUpdatedEvent = (input) => {
3305
3311
  };
3306
3312
  return decode(typeMappings, input);
3307
3313
  };
3314
+ decoders.RevisionHistoryResponse = (input) => {
3315
+ const typeMappings = {
3316
+ created_at: { type: 'DatetimeType', isSingle: true },
3317
+ };
3318
+ return decode(typeMappings, input);
3319
+ };
3308
3320
  decoders.Role = (input) => {
3309
3321
  const typeMappings = {
3310
3322
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -7955,7 +7967,7 @@ class ApiClient {
7955
7967
  const headers = {
7956
7968
  Authorization: this.apiConfig.token,
7957
7969
  'stream-auth-type': 'jwt',
7958
- 'X-Stream-Client': 'stream-node-' + "0.7.55",
7970
+ 'X-Stream-Client': 'stream-node-' + "0.7.56",
7959
7971
  'Accept-Encoding': 'gzip',
7960
7972
  'x-client-request-id': clientRequestId,
7961
7973
  };
@@ -9009,7 +9021,6 @@ class FeedsApi {
9009
9021
  const body = {
9010
9022
  id: request?.id,
9011
9023
  activity_selectors: request?.activity_selectors,
9012
- activity_filter: request?.activity_filter,
9013
9024
  aggregation: request?.aggregation,
9014
9025
  ranking: request?.ranking,
9015
9026
  };
@@ -9039,7 +9050,6 @@ class FeedsApi {
9039
9050
  };
9040
9051
  const body = {
9041
9052
  activity_selectors: request?.activity_selectors,
9042
- activity_filter: request?.activity_filter,
9043
9053
  aggregation: request?.aggregation,
9044
9054
  ranking: request?.ranking,
9045
9055
  };
@@ -9053,7 +9063,6 @@ class FeedsApi {
9053
9063
  };
9054
9064
  const body = {
9055
9065
  activity_selectors: request?.activity_selectors,
9056
- activity_filter: request?.activity_filter,
9057
9066
  aggregation: request?.aggregation,
9058
9067
  ranking: request?.ranking,
9059
9068
  };
@@ -9290,6 +9299,18 @@ class FeedsApi {
9290
9299
  decoders.UpdateMembershipLevelResponse?.(response.body);
9291
9300
  return { ...response.body, metadata: response.metadata };
9292
9301
  }
9302
+ async queryRevisionHistory(request) {
9303
+ const body = {
9304
+ filter: request?.filter,
9305
+ limit: request?.limit,
9306
+ next: request?.next,
9307
+ prev: request?.prev,
9308
+ sort: request?.sort,
9309
+ };
9310
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/revisions/query', undefined, undefined, body, 'application/json');
9311
+ decoders.QueryRevisionHistoryResponse?.(response.body);
9312
+ return { ...response.body, metadata: response.metadata };
9313
+ }
9293
9314
  async queryFeedsUsageStats(request) {
9294
9315
  const body = {
9295
9316
  from: request?.from,