@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.es.mjs
CHANGED
|
@@ -7579,7 +7579,7 @@ class ApiClient {
|
|
|
7579
7579
|
const headers = {
|
|
7580
7580
|
Authorization: this.apiConfig.token,
|
|
7581
7581
|
'stream-auth-type': 'jwt',
|
|
7582
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
7582
|
+
'X-Stream-Client': 'stream-node-' + "0.7.44",
|
|
7583
7583
|
'Accept-Encoding': 'gzip',
|
|
7584
7584
|
'x-client-request-id': clientRequestId,
|
|
7585
7585
|
};
|
|
@@ -7677,6 +7677,7 @@ class FeedsApi {
|
|
|
7677
7677
|
feeds: request?.feeds,
|
|
7678
7678
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
7679
7679
|
create_notification_activity: request?.create_notification_activity,
|
|
7680
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7680
7681
|
expires_at: request?.expires_at,
|
|
7681
7682
|
id: request?.id,
|
|
7682
7683
|
parent_id: request?.parent_id,
|
|
@@ -7704,6 +7705,7 @@ class FeedsApi {
|
|
|
7704
7705
|
async upsertActivities(request) {
|
|
7705
7706
|
const body = {
|
|
7706
7707
|
activities: request?.activities,
|
|
7708
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7707
7709
|
};
|
|
7708
7710
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/batch', undefined, undefined, body, 'application/json');
|
|
7709
7711
|
decoders.UpsertActivitiesResponse?.(response.body);
|
|
@@ -7731,6 +7733,7 @@ class FeedsApi {
|
|
|
7731
7733
|
}
|
|
7732
7734
|
async queryActivities(request) {
|
|
7733
7735
|
const body = {
|
|
7736
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7734
7737
|
include_expired_activities: request?.include_expired_activities,
|
|
7735
7738
|
include_private_activities: request?.include_private_activities,
|
|
7736
7739
|
limit: request?.limit,
|
|
@@ -7902,6 +7905,7 @@ class FeedsApi {
|
|
|
7902
7905
|
};
|
|
7903
7906
|
const body = {
|
|
7904
7907
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
7908
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7905
7909
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
7906
7910
|
run_activity_processors: request?.run_activity_processors,
|
|
7907
7911
|
user_id: request?.user_id,
|
|
@@ -7919,6 +7923,7 @@ class FeedsApi {
|
|
|
7919
7923
|
};
|
|
7920
7924
|
const body = {
|
|
7921
7925
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
7926
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7922
7927
|
expires_at: request?.expires_at,
|
|
7923
7928
|
handle_mention_notifications: request?.handle_mention_notifications,
|
|
7924
7929
|
poll_id: request?.poll_id,
|
|
@@ -7945,6 +7950,9 @@ class FeedsApi {
|
|
|
7945
7950
|
return { ...response.body, metadata: response.metadata };
|
|
7946
7951
|
}
|
|
7947
7952
|
async restoreActivity(request) {
|
|
7953
|
+
const queryParams = {
|
|
7954
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7955
|
+
};
|
|
7948
7956
|
const pathParams = {
|
|
7949
7957
|
id: request?.id,
|
|
7950
7958
|
};
|
|
@@ -7952,7 +7960,7 @@ class FeedsApi {
|
|
|
7952
7960
|
user_id: request?.user_id,
|
|
7953
7961
|
user: request?.user,
|
|
7954
7962
|
};
|
|
7955
|
-
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/{id}/restore', pathParams,
|
|
7963
|
+
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/activities/{id}/restore', pathParams, queryParams, body, 'application/json');
|
|
7956
7964
|
decoders.RestoreActivityResponse?.(response.body);
|
|
7957
7965
|
return { ...response.body, metadata: response.metadata };
|
|
7958
7966
|
}
|
|
@@ -7992,6 +8000,7 @@ class FeedsApi {
|
|
|
7992
8000
|
}
|
|
7993
8001
|
async queryBookmarks(request) {
|
|
7994
8002
|
const body = {
|
|
8003
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
7995
8004
|
limit: request?.limit,
|
|
7996
8005
|
next: request?.next,
|
|
7997
8006
|
prev: request?.prev,
|
|
@@ -8280,6 +8289,7 @@ class FeedsApi {
|
|
|
8280
8289
|
const body = {
|
|
8281
8290
|
created_by_id: request?.created_by_id,
|
|
8282
8291
|
description: request?.description,
|
|
8292
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8283
8293
|
name: request?.name,
|
|
8284
8294
|
filter_tags: request?.filter_tags,
|
|
8285
8295
|
custom: request?.custom,
|
|
@@ -8308,6 +8318,7 @@ class FeedsApi {
|
|
|
8308
8318
|
}
|
|
8309
8319
|
async unpinActivity(request) {
|
|
8310
8320
|
const queryParams = {
|
|
8321
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8311
8322
|
user_id: request?.user_id,
|
|
8312
8323
|
};
|
|
8313
8324
|
const pathParams = {
|
|
@@ -8326,6 +8337,7 @@ class FeedsApi {
|
|
|
8326
8337
|
activity_id: request?.activity_id,
|
|
8327
8338
|
};
|
|
8328
8339
|
const body = {
|
|
8340
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8329
8341
|
user_id: request?.user_id,
|
|
8330
8342
|
user: request?.user,
|
|
8331
8343
|
};
|
|
@@ -8397,6 +8409,7 @@ class FeedsApi {
|
|
|
8397
8409
|
feed_id: request?.feed_id,
|
|
8398
8410
|
};
|
|
8399
8411
|
const body = {
|
|
8412
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8400
8413
|
limit: request?.limit,
|
|
8401
8414
|
next: request?.next,
|
|
8402
8415
|
prev: request?.prev,
|
|
@@ -8572,6 +8585,7 @@ class FeedsApi {
|
|
|
8572
8585
|
async createFeedsBatch(request) {
|
|
8573
8586
|
const body = {
|
|
8574
8587
|
feeds: request?.feeds,
|
|
8588
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8575
8589
|
};
|
|
8576
8590
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/feeds/batch', undefined, undefined, body, 'application/json');
|
|
8577
8591
|
decoders.CreateFeedsBatchResponse?.(response.body);
|
|
@@ -8599,6 +8613,7 @@ class FeedsApi {
|
|
|
8599
8613
|
}
|
|
8600
8614
|
async _queryFeeds(request) {
|
|
8601
8615
|
const body = {
|
|
8616
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8602
8617
|
limit: request?.limit,
|
|
8603
8618
|
next: request?.next,
|
|
8604
8619
|
prev: request?.prev,
|
|
@@ -8628,6 +8643,7 @@ class FeedsApi {
|
|
|
8628
8643
|
target: request?.target,
|
|
8629
8644
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8630
8645
|
create_notification_activity: request?.create_notification_activity,
|
|
8646
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8631
8647
|
follower_role: request?.follower_role,
|
|
8632
8648
|
push_preference: request?.push_preference,
|
|
8633
8649
|
skip_push: request?.skip_push,
|
|
@@ -8644,6 +8660,7 @@ class FeedsApi {
|
|
|
8644
8660
|
target: request?.target,
|
|
8645
8661
|
copy_custom_to_notification: request?.copy_custom_to_notification,
|
|
8646
8662
|
create_notification_activity: request?.create_notification_activity,
|
|
8663
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8647
8664
|
push_preference: request?.push_preference,
|
|
8648
8665
|
skip_push: request?.skip_push,
|
|
8649
8666
|
status: request?.status,
|
|
@@ -8666,6 +8683,7 @@ class FeedsApi {
|
|
|
8666
8683
|
async followBatch(request) {
|
|
8667
8684
|
const body = {
|
|
8668
8685
|
follows: request?.follows,
|
|
8686
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8669
8687
|
};
|
|
8670
8688
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/follows/batch', undefined, undefined, body, 'application/json');
|
|
8671
8689
|
decoders.FollowBatchResponse?.(response.body);
|
|
@@ -8674,6 +8692,7 @@ class FeedsApi {
|
|
|
8674
8692
|
async getOrCreateFollows(request) {
|
|
8675
8693
|
const body = {
|
|
8676
8694
|
follows: request?.follows,
|
|
8695
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8677
8696
|
};
|
|
8678
8697
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/follows/batch/upsert', undefined, undefined, body, 'application/json');
|
|
8679
8698
|
decoders.FollowBatchResponse?.(response.body);
|
|
@@ -8703,6 +8722,7 @@ class FeedsApi {
|
|
|
8703
8722
|
async unfollow(request) {
|
|
8704
8723
|
const queryParams = {
|
|
8705
8724
|
delete_notification_activity: request?.delete_notification_activity,
|
|
8725
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8706
8726
|
};
|
|
8707
8727
|
const pathParams = {
|
|
8708
8728
|
source: request?.source,
|
|
@@ -8773,6 +8793,7 @@ class FeedsApi {
|
|
|
8773
8793
|
const body = {
|
|
8774
8794
|
follows: request?.follows,
|
|
8775
8795
|
delete_notification_activity: request?.delete_notification_activity,
|
|
8796
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8776
8797
|
};
|
|
8777
8798
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch', undefined, undefined, body, 'application/json');
|
|
8778
8799
|
decoders.UnfollowBatchResponse?.(response.body);
|
|
@@ -8782,6 +8803,7 @@ class FeedsApi {
|
|
|
8782
8803
|
const body = {
|
|
8783
8804
|
follows: request?.follows,
|
|
8784
8805
|
delete_notification_activity: request?.delete_notification_activity,
|
|
8806
|
+
enrich_own_fields: request?.enrich_own_fields,
|
|
8785
8807
|
};
|
|
8786
8808
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch/upsert', undefined, undefined, body, 'application/json');
|
|
8787
8809
|
decoders.UnfollowBatchResponse?.(response.body);
|