@stream-io/node-sdk 0.8.7 → 0.8.8
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 +8 -0
- package/dist/index.cjs.js +7 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +7 -14
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/models/index.d.ts +47 -0
- package/package.json +1 -1
- package/src/gen/common/CommonApi.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +1 -0
- package/src/gen/model-decoders/decoders.ts +0 -9
- package/src/gen/models/index.ts +47 -6943
- package/src/gen/moderation/ModerationApi.ts +2 -0
- package/src/gen/video/VideoApi.ts +1 -0
|
@@ -1350,6 +1350,10 @@ export interface AggregationConfig {
|
|
|
1350
1350
|
* Format for activity aggregation
|
|
1351
1351
|
*/
|
|
1352
1352
|
format?: string;
|
|
1353
|
+
/**
|
|
1354
|
+
* Maximum number of activities kept in each aggregated group. Omit to use the default of 100. Must be between 1 and 100 when set.
|
|
1355
|
+
*/
|
|
1356
|
+
group_size?: number;
|
|
1353
1357
|
/**
|
|
1354
1358
|
* Strategy for computing aggregated group scores from member activity scores when ranking is enabled. Valid values: sum, max, avg
|
|
1355
1359
|
*/
|
|
@@ -1394,6 +1398,10 @@ export interface AnalyzeRequest {
|
|
|
1394
1398
|
* Original timestamp when the content was produced. Used as the `published_at` timestamp on per-content log entries that surface in `matched_contents` on aggregation-rule webhooks.
|
|
1395
1399
|
*/
|
|
1396
1400
|
content_published_at?: Date;
|
|
1401
|
+
/**
|
|
1402
|
+
* ISO 3166-1 alpha-2 country the content is aimed at (e.g. US, DE). Forwarded to the AI text provider as country context so it can resolve words whose meaning changes between countries.
|
|
1403
|
+
*/
|
|
1404
|
+
country_code?: string;
|
|
1397
1405
|
/**
|
|
1398
1406
|
* ID of the user who created the content. Required with entity_type + entity_id; omit all three for stateless mode.
|
|
1399
1407
|
*/
|
|
@@ -1576,6 +1584,10 @@ export interface AppealItemResponse {
|
|
|
1576
1584
|
* Text severity level assigned by the AI provider
|
|
1577
1585
|
*/
|
|
1578
1586
|
ai_text_severity?: string;
|
|
1587
|
+
/**
|
|
1588
|
+
* Detected language of the appeal_reason text itself
|
|
1589
|
+
*/
|
|
1590
|
+
appeal_reason_language?: string;
|
|
1579
1591
|
/**
|
|
1580
1592
|
* CID of the channel the entity belongs to (content appeals), or of the channel ban being appealed (stream:user appeals). Empty for a global ban appeal.
|
|
1581
1593
|
*/
|
|
@@ -1620,6 +1632,10 @@ export interface AppealItemResponse {
|
|
|
1620
1632
|
* Per-provider flag records explaining why the action was taken
|
|
1621
1633
|
*/
|
|
1622
1634
|
flags?: Array<ModerationFlagResponse>;
|
|
1635
|
+
/**
|
|
1636
|
+
* Detected languages in the content
|
|
1637
|
+
*/
|
|
1638
|
+
languages?: Array<string>;
|
|
1623
1639
|
entity_content?: ModerationPayload;
|
|
1624
1640
|
moderation_action?: ActionLogResponse;
|
|
1625
1641
|
original_moderation_action?: ActionLogResponse;
|
|
@@ -3179,6 +3195,10 @@ export interface CallRingEvent {
|
|
|
3179
3195
|
* The type of event: "call.notification" in this case
|
|
3180
3196
|
*/
|
|
3181
3197
|
type: string;
|
|
3198
|
+
/**
|
|
3199
|
+
* Identifies this ring of the call session
|
|
3200
|
+
*/
|
|
3201
|
+
ring_id?: string;
|
|
3182
3202
|
}
|
|
3183
3203
|
export interface CallRtmpBroadcastFailedEvent {
|
|
3184
3204
|
/**
|
|
@@ -5129,6 +5149,10 @@ export interface CheckRequest {
|
|
|
5129
5149
|
* Original timestamp when the content was produced (for correlating flagged content with source video timeline)
|
|
5130
5150
|
*/
|
|
5131
5151
|
content_published_at?: Date;
|
|
5152
|
+
/**
|
|
5153
|
+
* ISO 3166-1 alpha-2 country the content is aimed at (e.g. US, DE), used as country context by AI text providers
|
|
5154
|
+
*/
|
|
5155
|
+
country_code?: string;
|
|
5132
5156
|
/**
|
|
5133
5157
|
* Whether to run moderation in test mode
|
|
5134
5158
|
*/
|
|
@@ -6507,6 +6531,7 @@ export interface CreatePollRequest {
|
|
|
6507
6531
|
* Indicates the maximum amount of votes a user can cast
|
|
6508
6532
|
*/
|
|
6509
6533
|
max_votes_allowed?: number;
|
|
6534
|
+
team?: string;
|
|
6510
6535
|
user_id?: string;
|
|
6511
6536
|
voting_visibility?: 'anonymous' | 'public';
|
|
6512
6537
|
options?: Array<PollOptionInput>;
|
|
@@ -7798,6 +7823,7 @@ export interface EventHook {
|
|
|
7798
7823
|
sns_secret?: string;
|
|
7799
7824
|
sns_topic_arn?: string;
|
|
7800
7825
|
sqs_auth_type?: string;
|
|
7826
|
+
sqs_event_based_message_group_id_enabled?: boolean;
|
|
7801
7827
|
sqs_key?: string;
|
|
7802
7828
|
sqs_queue_url?: string;
|
|
7803
7829
|
sqs_region?: string;
|
|
@@ -8806,6 +8832,10 @@ export interface FilterConfigResponse {
|
|
|
8806
8832
|
* The moderation_payload.custom keys the app has configured as review-queue filter chips (via moderation_dashboard_preferences.filterable_custom_keys). Discovery hint for the dashboard only — the filter accepts any custom key regardless of this list.
|
|
8807
8833
|
*/
|
|
8808
8834
|
filterable_custom_keys?: Array<string>;
|
|
8835
|
+
/**
|
|
8836
|
+
* Names of the app's moderation rules, available as filter values on the `label` field when filtering rule-flagged content. Includes disabled rules, since items flagged before a rule was turned off still carry its name; excludes deleted ones. Scoped to the caller's teams on a multi-tenant app. Capped at 30 names, ordered by name, so an app above that cap is listed partially.
|
|
8837
|
+
*/
|
|
8838
|
+
rule_names?: Array<string>;
|
|
8809
8839
|
/**
|
|
8810
8840
|
* AI image moderation labels available as filter values, as a map of L1 label to its L2 sub-labels. Reflects the app's effective image taxonomy: custom Bodyguard taxonomy when enabled, otherwise the standard catalogue of the org's enabled image providers.
|
|
8811
8841
|
*/
|
|
@@ -12479,6 +12509,7 @@ export interface ModerationMarkReviewedEvent {
|
|
|
12479
12509
|
message?: MessageResponse;
|
|
12480
12510
|
}
|
|
12481
12511
|
export interface ModerationPayload {
|
|
12512
|
+
country_code?: string;
|
|
12482
12513
|
audios?: Array<string>;
|
|
12483
12514
|
image_ordered_keys?: Array<string>;
|
|
12484
12515
|
images?: Array<string>;
|
|
@@ -13606,6 +13637,7 @@ export interface PollOptionResponseData {
|
|
|
13606
13637
|
id: string;
|
|
13607
13638
|
text: string;
|
|
13608
13639
|
custom: Record<string, any>;
|
|
13640
|
+
text_i18n?: Record<string, string>;
|
|
13609
13641
|
}
|
|
13610
13642
|
export interface PollResponse {
|
|
13611
13643
|
/**
|
|
@@ -13642,6 +13674,8 @@ export interface PollResponseData {
|
|
|
13642
13674
|
* User response object
|
|
13643
13675
|
*/
|
|
13644
13676
|
created_by?: UserResponse;
|
|
13677
|
+
description_i18n?: Record<string, string>;
|
|
13678
|
+
name_i18n?: Record<string, string>;
|
|
13645
13679
|
}
|
|
13646
13680
|
export interface PollVoteResponse {
|
|
13647
13681
|
/**
|
|
@@ -13660,6 +13694,7 @@ export interface PollVoteResponseData {
|
|
|
13660
13694
|
answer_text?: string;
|
|
13661
13695
|
is_answer?: boolean;
|
|
13662
13696
|
user_id?: string;
|
|
13697
|
+
answer_text_i18n?: Record<string, string>;
|
|
13663
13698
|
/**
|
|
13664
13699
|
* User response object
|
|
13665
13700
|
*/
|
|
@@ -14501,6 +14536,10 @@ export interface QueryCommentsRequest {
|
|
|
14501
14536
|
* Returns the comment with the specified ID along with surrounding comments for context
|
|
14502
14537
|
*/
|
|
14503
14538
|
id_around?: string;
|
|
14539
|
+
/**
|
|
14540
|
+
* 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.
|
|
14541
|
+
*/
|
|
14542
|
+
include_soft_deleted_comments?: boolean;
|
|
14504
14543
|
/**
|
|
14505
14544
|
* Maximum number of comments to return
|
|
14506
14545
|
*/
|
|
@@ -16373,6 +16412,10 @@ export interface RingCallRequest {
|
|
|
16373
16412
|
* Members that should receive the ring. If no ids are provided, all call members who are not already in the call will receive ring notifications.
|
|
16374
16413
|
*/
|
|
16375
16414
|
members_ids?: Array<string>;
|
|
16415
|
+
/**
|
|
16416
|
+
* Opaque context stored on the ring attempt; refs and IDs only
|
|
16417
|
+
*/
|
|
16418
|
+
custom?: Record<string, any>;
|
|
16376
16419
|
}
|
|
16377
16420
|
export interface RingCallResponse {
|
|
16378
16421
|
duration: string;
|
|
@@ -16380,6 +16423,10 @@ export interface RingCallResponse {
|
|
|
16380
16423
|
* List of members ringing notification was sent to
|
|
16381
16424
|
*/
|
|
16382
16425
|
members_ids: Array<string>;
|
|
16426
|
+
/**
|
|
16427
|
+
* The ring this call created, for correlating the accept, reject and missed outcomes that follow
|
|
16428
|
+
*/
|
|
16429
|
+
ring_id?: string;
|
|
16383
16430
|
}
|
|
16384
16431
|
export interface RingSettings {
|
|
16385
16432
|
auto_cancel_timeout_ms: number;
|
package/package.json
CHANGED
|
@@ -1024,6 +1024,7 @@ export class CommonApi {
|
|
|
1024
1024
|
id: request?.id,
|
|
1025
1025
|
is_closed: request?.is_closed,
|
|
1026
1026
|
max_votes_allowed: request?.max_votes_allowed,
|
|
1027
|
+
team: request?.team,
|
|
1027
1028
|
user_id: request?.user_id,
|
|
1028
1029
|
voting_visibility: request?.voting_visibility,
|
|
1029
1030
|
options: request?.options,
|
|
@@ -1257,6 +1257,7 @@ export class FeedsApi {
|
|
|
1257
1257
|
const body = {
|
|
1258
1258
|
filter: request?.filter,
|
|
1259
1259
|
id_around: request?.id_around,
|
|
1260
|
+
include_soft_deleted_comments: request?.include_soft_deleted_comments,
|
|
1260
1261
|
limit: request?.limit,
|
|
1261
1262
|
next: request?.next,
|
|
1262
1263
|
prev: request?.prev,
|
|
@@ -1868,15 +1868,6 @@ decoders['CheckResponse'] = (input?: { [key: string]: any }) => {
|
|
|
1868
1868
|
return decode(typeMappings, input);
|
|
1869
1869
|
};
|
|
1870
1870
|
|
|
1871
|
-
decoders['ClientEvent'] = (input?: { [key: string]: any }) => {
|
|
1872
|
-
const typeMappings: TypeMapping = {
|
|
1873
|
-
previously_connected_timestamp: { type: 'DatetimeType', isSingle: true },
|
|
1874
|
-
|
|
1875
|
-
timestamp: { type: 'DatetimeType', isSingle: true },
|
|
1876
|
-
};
|
|
1877
|
-
return decode(typeMappings, input);
|
|
1878
|
-
};
|
|
1879
|
-
|
|
1880
1871
|
decoders['ClosedCaptionEvent'] = (input?: { [key: string]: any }) => {
|
|
1881
1872
|
const typeMappings: TypeMapping = {
|
|
1882
1873
|
created_at: { type: 'DatetimeType', isSingle: true },
|