@stream-io/node-sdk 0.8.9 → 0.8.11
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/CHANGELOG.md +14 -0
- package/dist/index.cjs.js +12 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +12 -3
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +2 -0
- package/dist/src/gen/models/index.d.ts +26 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +11 -0
- package/src/gen/models/index.ts +26 -1
|
@@ -69,6 +69,8 @@ export declare class FeedsApi {
|
|
|
69
69
|
language?: string;
|
|
70
70
|
translate_text?: boolean;
|
|
71
71
|
include_top_level_comment_count?: boolean;
|
|
72
|
+
include_soft_deleted_activities?: boolean;
|
|
73
|
+
include_moderated_activities?: boolean;
|
|
72
74
|
}): Promise<StreamResponse<GetActivityResponse>>;
|
|
73
75
|
updateActivityPartial(request: UpdateActivityPartialRequest & {
|
|
74
76
|
id: string;
|
|
@@ -14251,9 +14251,13 @@ export interface QueryActivitiesRequest {
|
|
|
14251
14251
|
* When true, include both expired and non-expired activities in the result.
|
|
14252
14252
|
*/
|
|
14253
14253
|
include_expired_activities?: boolean;
|
|
14254
|
+
/**
|
|
14255
|
+
* When true, include activities hidden by moderation (shadowed or removed). Server-side only; not allowed when a user is set.
|
|
14256
|
+
*/
|
|
14257
|
+
include_moderated_activities?: boolean;
|
|
14254
14258
|
include_private_activities?: boolean;
|
|
14255
14259
|
/**
|
|
14256
|
-
* When true, include soft-deleted activities in the result.
|
|
14260
|
+
* When true, include soft-deleted activities in the result. Server-side only; not allowed when a user is set.
|
|
14257
14261
|
*/
|
|
14258
14262
|
include_soft_deleted_activities?: boolean;
|
|
14259
14263
|
limit?: number;
|
|
@@ -14777,6 +14781,10 @@ export interface QueryCommentsRequest {
|
|
|
14777
14781
|
* Returns the comment with the specified ID along with surrounding comments for context
|
|
14778
14782
|
*/
|
|
14779
14783
|
id_around?: string;
|
|
14784
|
+
/**
|
|
14785
|
+
* When true, include soft-deleted comments in the result. Server-side only, and requires an object_id filter. Returns comments deleted by any path, including user-data deletion. Moderation-actioned comments (removed, hidden) remain excluded, and comments whose parent activity is itself deleted are not returned.
|
|
14786
|
+
*/
|
|
14787
|
+
include_soft_deleted_comments?: boolean;
|
|
14780
14788
|
/**
|
|
14781
14789
|
* Maximum number of comments to return
|
|
14782
14790
|
*/
|
|
@@ -15285,9 +15293,22 @@ export interface QueryModerationRulesResponse {
|
|
|
15285
15293
|
}
|
|
15286
15294
|
export interface QueryPinnedActivitiesRequest {
|
|
15287
15295
|
enrich_own_fields?: boolean;
|
|
15296
|
+
/**
|
|
15297
|
+
* When true, return pinned activities even if they have expired. Server-side only; not allowed when a user is set.
|
|
15298
|
+
*/
|
|
15299
|
+
include_expired_activities?: boolean;
|
|
15300
|
+
/**
|
|
15301
|
+
* When true, return pinned activities even if moderation hides them (shadowed or removed). Server-side only; not allowed when a user is set.
|
|
15302
|
+
*/
|
|
15303
|
+
include_moderated_activities?: boolean;
|
|
15304
|
+
/**
|
|
15305
|
+
* When true, return pinned activities even if they are soft-deleted. Server-side only; not allowed when a user is set.
|
|
15306
|
+
*/
|
|
15307
|
+
include_soft_deleted_activities?: boolean;
|
|
15288
15308
|
limit?: number;
|
|
15289
15309
|
next?: string;
|
|
15290
15310
|
prev?: string;
|
|
15311
|
+
user_id?: string;
|
|
15291
15312
|
/**
|
|
15292
15313
|
* Sorting parameters for the query
|
|
15293
15314
|
*/
|
|
@@ -15296,6 +15317,10 @@ export interface QueryPinnedActivitiesRequest {
|
|
|
15296
15317
|
* Filters to apply to the query
|
|
15297
15318
|
*/
|
|
15298
15319
|
filter?: Record<string, any>;
|
|
15320
|
+
/**
|
|
15321
|
+
* User request object
|
|
15322
|
+
*/
|
|
15323
|
+
user?: UserRequest;
|
|
15299
15324
|
}
|
|
15300
15325
|
export interface QueryPinnedActivitiesResponse {
|
|
15301
15326
|
duration: string;
|
package/package.json
CHANGED
|
@@ -341,6 +341,7 @@ export class FeedsApi {
|
|
|
341
341
|
const body = {
|
|
342
342
|
enrich_own_fields: request?.enrich_own_fields,
|
|
343
343
|
include_expired_activities: request?.include_expired_activities,
|
|
344
|
+
include_moderated_activities: request?.include_moderated_activities,
|
|
344
345
|
include_private_activities: request?.include_private_activities,
|
|
345
346
|
include_soft_deleted_activities: request?.include_soft_deleted_activities,
|
|
346
347
|
limit: request?.limit,
|
|
@@ -703,6 +704,8 @@ export class FeedsApi {
|
|
|
703
704
|
language?: string;
|
|
704
705
|
translate_text?: boolean;
|
|
705
706
|
include_top_level_comment_count?: boolean;
|
|
707
|
+
include_soft_deleted_activities?: boolean;
|
|
708
|
+
include_moderated_activities?: boolean;
|
|
706
709
|
}): Promise<StreamResponse<GetActivityResponse>> {
|
|
707
710
|
const queryParams = {
|
|
708
711
|
comment_sort: request?.comment_sort,
|
|
@@ -712,6 +715,8 @@ export class FeedsApi {
|
|
|
712
715
|
language: request?.language,
|
|
713
716
|
translate_text: request?.translate_text,
|
|
714
717
|
include_top_level_comment_count: request?.include_top_level_comment_count,
|
|
718
|
+
include_soft_deleted_activities: request?.include_soft_deleted_activities,
|
|
719
|
+
include_moderated_activities: request?.include_moderated_activities,
|
|
715
720
|
};
|
|
716
721
|
const pathParams = {
|
|
717
722
|
id: request?.id,
|
|
@@ -1210,6 +1215,7 @@ export class FeedsApi {
|
|
|
1210
1215
|
const body = {
|
|
1211
1216
|
filter: request?.filter,
|
|
1212
1217
|
id_around: request?.id_around,
|
|
1218
|
+
include_soft_deleted_comments: request?.include_soft_deleted_comments,
|
|
1213
1219
|
limit: request?.limit,
|
|
1214
1220
|
next: request?.next,
|
|
1215
1221
|
prev: request?.prev,
|
|
@@ -2075,11 +2081,16 @@ export class FeedsApi {
|
|
|
2075
2081
|
};
|
|
2076
2082
|
const body = {
|
|
2077
2083
|
enrich_own_fields: request?.enrich_own_fields,
|
|
2084
|
+
include_expired_activities: request?.include_expired_activities,
|
|
2085
|
+
include_moderated_activities: request?.include_moderated_activities,
|
|
2086
|
+
include_soft_deleted_activities: request?.include_soft_deleted_activities,
|
|
2078
2087
|
limit: request?.limit,
|
|
2079
2088
|
next: request?.next,
|
|
2080
2089
|
prev: request?.prev,
|
|
2090
|
+
user_id: request?.user_id,
|
|
2081
2091
|
sort: request?.sort,
|
|
2082
2092
|
filter: request?.filter,
|
|
2093
|
+
user: request?.user,
|
|
2083
2094
|
};
|
|
2084
2095
|
|
|
2085
2096
|
const response =
|
package/src/gen/models/index.ts
CHANGED
|
@@ -15290,9 +15290,13 @@ export interface QueryActivitiesRequest {
|
|
|
15290
15290
|
* When true, include both expired and non-expired activities in the result.
|
|
15291
15291
|
*/
|
|
15292
15292
|
include_expired_activities?: boolean;
|
|
15293
|
+
/**
|
|
15294
|
+
* When true, include activities hidden by moderation (shadowed or removed). Server-side only; not allowed when a user is set.
|
|
15295
|
+
*/
|
|
15296
|
+
include_moderated_activities?: boolean;
|
|
15293
15297
|
include_private_activities?: boolean;
|
|
15294
15298
|
/**
|
|
15295
|
-
* When true, include soft-deleted activities in the result.
|
|
15299
|
+
* When true, include soft-deleted activities in the result. Server-side only; not allowed when a user is set.
|
|
15296
15300
|
*/
|
|
15297
15301
|
include_soft_deleted_activities?: boolean;
|
|
15298
15302
|
limit?: number;
|
|
@@ -15853,6 +15857,10 @@ export interface QueryCommentsRequest {
|
|
|
15853
15857
|
* Returns the comment with the specified ID along with surrounding comments for context
|
|
15854
15858
|
*/
|
|
15855
15859
|
id_around?: string;
|
|
15860
|
+
/**
|
|
15861
|
+
* When true, include soft-deleted comments in the result. Server-side only, and requires an object_id filter. Returns comments deleted by any path, including user-data deletion. Moderation-actioned comments (removed, hidden) remain excluded, and comments whose parent activity is itself deleted are not returned.
|
|
15862
|
+
*/
|
|
15863
|
+
include_soft_deleted_comments?: boolean;
|
|
15856
15864
|
/**
|
|
15857
15865
|
* Maximum number of comments to return
|
|
15858
15866
|
*/
|
|
@@ -16394,9 +16402,22 @@ export interface QueryModerationRulesResponse {
|
|
|
16394
16402
|
|
|
16395
16403
|
export interface QueryPinnedActivitiesRequest {
|
|
16396
16404
|
enrich_own_fields?: boolean;
|
|
16405
|
+
/**
|
|
16406
|
+
* When true, return pinned activities even if they have expired. Server-side only; not allowed when a user is set.
|
|
16407
|
+
*/
|
|
16408
|
+
include_expired_activities?: boolean;
|
|
16409
|
+
/**
|
|
16410
|
+
* When true, return pinned activities even if moderation hides them (shadowed or removed). Server-side only; not allowed when a user is set.
|
|
16411
|
+
*/
|
|
16412
|
+
include_moderated_activities?: boolean;
|
|
16413
|
+
/**
|
|
16414
|
+
* When true, return pinned activities even if they are soft-deleted. Server-side only; not allowed when a user is set.
|
|
16415
|
+
*/
|
|
16416
|
+
include_soft_deleted_activities?: boolean;
|
|
16397
16417
|
limit?: number;
|
|
16398
16418
|
next?: string;
|
|
16399
16419
|
prev?: string;
|
|
16420
|
+
user_id?: string;
|
|
16400
16421
|
/**
|
|
16401
16422
|
* Sorting parameters for the query
|
|
16402
16423
|
*/
|
|
@@ -16405,6 +16426,10 @@ export interface QueryPinnedActivitiesRequest {
|
|
|
16405
16426
|
* Filters to apply to the query
|
|
16406
16427
|
*/
|
|
16407
16428
|
filter?: Record<string, any>;
|
|
16429
|
+
/**
|
|
16430
|
+
* User request object
|
|
16431
|
+
*/
|
|
16432
|
+
user?: UserRequest;
|
|
16408
16433
|
}
|
|
16409
16434
|
|
|
16410
16435
|
export interface QueryPinnedActivitiesResponse {
|