@stream-io/node-sdk 0.7.43 → 0.7.44
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 +24 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +24 -2
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedApi.d.ts +1 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +3 -0
- package/dist/src/gen/models/index.d.ts +15 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedApi.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +29 -2
- package/src/gen/models/index.ts +30 -0
package/dist/index.cjs.js
CHANGED
|
@@ -7598,7 +7598,7 @@ class ApiClient {
|
|
|
7598
7598
|
const headers = {
|
|
7599
7599
|
Authorization: this.apiConfig.token,
|
|
7600
7600
|
'stream-auth-type': 'jwt',
|
|
7601
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
7601
|
+
'X-Stream-Client': 'stream-node-' + "0.7.44",
|
|
7602
7602
|
'Accept-Encoding': 'gzip',
|
|
7603
7603
|
'x-client-request-id': clientRequestId,
|
|
7604
7604
|
};
|
|
@@ -7696,6 +7696,7 @@ class FeedsApi {
|
|
|
7696
7696
|
feeds: request?.feeds,
|
|
7697
7697
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
7698
7698
|
create_notification_activity: request?.create_notification_activity,
|
|
7699
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7699
7700
|
expires_at: request?.expires_at,
|
|
7700
7701
|
id: request?.id,
|
|
7701
7702
|
parent_id: request?.parent_id,
|
|
@@ -7723,6 +7724,7 @@ class FeedsApi {
|
|
|
7723
7724
|
async upsertActivities(request) {
|
|
7724
7725
|
const body = {
|
|
7725
7726
|
activities: request?.activities,
|
|
7727
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7726
7728
|
};
|
|
7727
7729
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/batch', undefined, undefined, body, 'application/json');
|
|
7728
7730
|
decoders.UpsertActivitiesResponse?.(response.body);
|
|
@@ -7750,6 +7752,7 @@ class FeedsApi {
|
|
|
7750
7752
|
}
|
|
7751
7753
|
async queryActivities(request) {
|
|
7752
7754
|
const body = {
|
|
7755
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7753
7756
|
include_expired_activities: request?.include_expired_activities,
|
|
7754
7757
|
include_private_activities: request?.include_private_activities,
|
|
7755
7758
|
limit: request?.limit,
|
|
@@ -7921,6 +7924,7 @@ class FeedsApi {
|
|
|
7921
7924
|
};
|
|
7922
7925
|
const body = {
|
|
7923
7926
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
7927
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7924
7928
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
7925
7929
|
run_activity_processors: request?.run_activity_processors,
|
|
7926
7930
|
user_id: request?.user_id,
|
|
@@ -7938,6 +7942,7 @@ class FeedsApi {
|
|
|
7938
7942
|
};
|
|
7939
7943
|
const body = {
|
|
7940
7944
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
7945
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7941
7946
|
expires_at: request?.expires_at,
|
|
7942
7947
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
7943
7948
|
poll_id: request?.poll_id,
|
|
@@ -7964,6 +7969,9 @@ class FeedsApi {
|
|
|
7964
7969
|
return { ...response.body, metadata: response.metadata };
|
|
7965
7970
|
}
|
|
7966
7971
|
async restoreActivity(request) {
|
|
7972
|
+
const queryParams = {
|
|
7973
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7974
|
+
};
|
|
7967
7975
|
const pathParams = {
|
|
7968
7976
|
id: request?.id,
|
|
7969
7977
|
};
|
|
@@ -7971,7 +7979,7 @@ class FeedsApi {
|
|
|
7971
7979
|
user_id: request?.user_id,
|
|
7972
7980
|
user: request?.user,
|
|
7973
7981
|
};
|
|
7974
|
-
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/{id}/restore', pathParams,
|
|
7982
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/{id}/restore', pathParams, queryParams, body, 'application/json');
|
|
7975
7983
|
decoders.RestoreActivityResponse?.(response.body);
|
|
7976
7984
|
return { ...response.body, metadata: response.metadata };
|
|
7977
7985
|
}
|
|
@@ -8011,6 +8019,7 @@ class FeedsApi {
|
|
|
8011
8019
|
}
|
|
8012
8020
|
async queryBookmarks(request) {
|
|
8013
8021
|
const body = {
|
|
8022
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8014
8023
|
limit: request?.limit,
|
|
8015
8024
|
next: request?.next,
|
|
8016
8025
|
prev: request?.prev,
|
|
@@ -8299,6 +8308,7 @@ class FeedsApi {
|
|
|
8299
8308
|
const body = {
|
|
8300
8309
|
created_by_id: request?.created_by_id,
|
|
8301
8310
|
description: request?.description,
|
|
8311
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8302
8312
|
name: request?.name,
|
|
8303
8313
|
filter_tags: request?.filter_tags,
|
|
8304
8314
|
custom: request?.custom,
|
|
@@ -8327,6 +8337,7 @@ class FeedsApi {
|
|
|
8327
8337
|
}
|
|
8328
8338
|
async unpinActivity(request) {
|
|
8329
8339
|
const queryParams = {
|
|
8340
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8330
8341
|
user_id: request?.user_id,
|
|
8331
8342
|
};
|
|
8332
8343
|
const pathParams = {
|
|
@@ -8345,6 +8356,7 @@ class FeedsApi {
|
|
|
8345
8356
|
activity_id: request?.activity_id,
|
|
8346
8357
|
};
|
|
8347
8358
|
const body = {
|
|
8359
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8348
8360
|
user_id: request?.user_id,
|
|
8349
8361
|
user: request?.user,
|
|
8350
8362
|
};
|
|
@@ -8416,6 +8428,7 @@ class FeedsApi {
|
|
|
8416
8428
|
feed_id: request?.feed_id,
|
|
8417
8429
|
};
|
|
8418
8430
|
const body = {
|
|
8431
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8419
8432
|
limit: request?.limit,
|
|
8420
8433
|
next: request?.next,
|
|
8421
8434
|
prev: request?.prev,
|
|
@@ -8591,6 +8604,7 @@ class FeedsApi {
|
|
|
8591
8604
|
async createFeedsBatch(request) {
|
|
8592
8605
|
const body = {
|
|
8593
8606
|
feeds: request?.feeds,
|
|
8607
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8594
8608
|
};
|
|
8595
8609
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/feeds/batch', undefined, undefined, body, 'application/json');
|
|
8596
8610
|
decoders.CreateFeedsBatchResponse?.(response.body);
|
|
@@ -8618,6 +8632,7 @@ class FeedsApi {
|
|
|
8618
8632
|
}
|
|
8619
8633
|
async _queryFeeds(request) {
|
|
8620
8634
|
const body = {
|
|
8635
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8621
8636
|
limit: request?.limit,
|
|
8622
8637
|
next: request?.next,
|
|
8623
8638
|
prev: request?.prev,
|
|
@@ -8647,6 +8662,7 @@ class FeedsApi {
|
|
|
8647
8662
|
target: request?.target,
|
|
8648
8663
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8649
8664
|
create_notification_activity: request?.create_notification_activity,
|
|
8665
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8650
8666
|
follower_role: request?.follower_role,
|
|
8651
8667
|
push_preference: request?.push_preference,
|
|
8652
8668
|
skip_push: request?.skip_push,
|
|
@@ -8663,6 +8679,7 @@ class FeedsApi {
|
|
|
8663
8679
|
target: request?.target,
|
|
8664
8680
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8665
8681
|
create_notification_activity: request?.create_notification_activity,
|
|
8682
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8666
8683
|
push_preference: request?.push_preference,
|
|
8667
8684
|
skip_push: request?.skip_push,
|
|
8668
8685
|
status: request?.status,
|
|
@@ -8685,6 +8702,7 @@ class FeedsApi {
|
|
|
8685
8702
|
async followBatch(request) {
|
|
8686
8703
|
const body = {
|
|
8687
8704
|
follows: request?.follows,
|
|
8705
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8688
8706
|
};
|
|
8689
8707
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/follows/batch', undefined, undefined, body, 'application/json');
|
|
8690
8708
|
decoders.FollowBatchResponse?.(response.body);
|
|
@@ -8693,6 +8711,7 @@ class FeedsApi {
|
|
|
8693
8711
|
async getOrCreateFollows(request) {
|
|
8694
8712
|
const body = {
|
|
8695
8713
|
follows: request?.follows,
|
|
8714
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8696
8715
|
};
|
|
8697
8716
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/follows/batch/upsert', undefined, undefined, body, 'application/json');
|
|
8698
8717
|
decoders.FollowBatchResponse?.(response.body);
|
|
@@ -8722,6 +8741,7 @@ class FeedsApi {
|
|
|
8722
8741
|
async unfollow(request) {
|
|
8723
8742
|
const queryParams = {
|
|
8724
8743
|
delete_notification_activity: request?.delete_notification_activity,
|
|
8744
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8725
8745
|
};
|
|
8726
8746
|
const pathParams = {
|
|
8727
8747
|
source: request?.source,
|
|
@@ -8792,6 +8812,7 @@ class FeedsApi {
|
|
|
8792
8812
|
const body = {
|
|
8793
8813
|
follows: request?.follows,
|
|
8794
8814
|
delete_notification_activity: request?.delete_notification_activity,
|
|
8815
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8795
8816
|
};
|
|
8796
8817
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch', undefined, undefined, body, 'application/json');
|
|
8797
8818
|
decoders.UnfollowBatchResponse?.(response.body);
|
|
@@ -8801,6 +8822,7 @@ class FeedsApi {
|
|
|
8801
8822
|
const body = {
|
|
8802
8823
|
follows: request?.follows,
|
|
8803
8824
|
delete_notification_activity: request?.delete_notification_activity,
|
|
8825
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8804
8826
|
};
|
|
8805
8827
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch/upsert', undefined, undefined, body, 'application/json');
|
|
8806
8828
|
decoders.UnfollowBatchResponse?.(response.body);
|