@stream-io/feeds-client 0.2.5 → 0.2.6
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 +5 -0
- package/dist/index-react-bindings.browser.cjs +15 -0
- package/dist/index-react-bindings.browser.cjs.map +1 -1
- package/dist/index-react-bindings.browser.js +15 -0
- package/dist/index-react-bindings.browser.js.map +1 -1
- package/dist/index-react-bindings.node.cjs +15 -0
- package/dist/index-react-bindings.node.cjs.map +1 -1
- package/dist/index-react-bindings.node.js +15 -0
- package/dist/index-react-bindings.node.js.map +1 -1
- package/dist/index.browser.cjs +15 -0
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +15 -0
- package/dist/index.browser.js.map +1 -1
- package/dist/index.node.cjs +15 -0
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +15 -0
- package/dist/index.node.js.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +2 -1
- package/dist/src/gen/models/index.d.ts +32 -5
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +26 -0
- package/src/gen/model-decoders/decoders.ts +7 -0
- package/src/gen/models/index.ts +52 -5
package/package.json
CHANGED
|
@@ -127,6 +127,8 @@ import {
|
|
|
127
127
|
UpdateUsersResponse,
|
|
128
128
|
UpsertActivitiesRequest,
|
|
129
129
|
UpsertActivitiesResponse,
|
|
130
|
+
UpsertPushPreferencesRequest,
|
|
131
|
+
UpsertPushPreferencesResponse,
|
|
130
132
|
WSAuthMessage,
|
|
131
133
|
} from '../models';
|
|
132
134
|
import { decoders } from '../model-decoders/decoders';
|
|
@@ -726,6 +728,7 @@ export class FeedsApi {
|
|
|
726
728
|
text: request?.text,
|
|
727
729
|
visibility: request?.visibility,
|
|
728
730
|
attachments: request?.attachments,
|
|
731
|
+
feeds: request?.feeds,
|
|
729
732
|
filter_tags: request?.filter_tags,
|
|
730
733
|
interest_tags: request?.interest_tags,
|
|
731
734
|
custom: request?.custom,
|
|
@@ -2073,6 +2076,29 @@ export class FeedsApi {
|
|
|
2073
2076
|
return { ...response.body, metadata: response.metadata };
|
|
2074
2077
|
}
|
|
2075
2078
|
|
|
2079
|
+
async updatePushNotificationPreferences(
|
|
2080
|
+
request: UpsertPushPreferencesRequest,
|
|
2081
|
+
): Promise<StreamResponse<UpsertPushPreferencesResponse>> {
|
|
2082
|
+
const body = {
|
|
2083
|
+
preferences: request?.preferences,
|
|
2084
|
+
};
|
|
2085
|
+
|
|
2086
|
+
const response = await this.apiClient.sendRequest<
|
|
2087
|
+
StreamResponse<UpsertPushPreferencesResponse>
|
|
2088
|
+
>(
|
|
2089
|
+
'POST',
|
|
2090
|
+
'/api/v2/push_preferences',
|
|
2091
|
+
undefined,
|
|
2092
|
+
undefined,
|
|
2093
|
+
body,
|
|
2094
|
+
'application/json',
|
|
2095
|
+
);
|
|
2096
|
+
|
|
2097
|
+
decoders.UpsertPushPreferencesResponse?.(response.body);
|
|
2098
|
+
|
|
2099
|
+
return { ...response.body, metadata: response.metadata };
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2076
2102
|
async deleteFile(request?: {
|
|
2077
2103
|
url?: string;
|
|
2078
2104
|
}): Promise<StreamResponse<Response>> {
|
|
@@ -1849,6 +1849,13 @@ decoders.UpsertConfigResponse = (input?: Record<string, any>) => {
|
|
|
1849
1849
|
return decode(typeMappings, input);
|
|
1850
1850
|
};
|
|
1851
1851
|
|
|
1852
|
+
decoders.UpsertPushPreferencesResponse = (input?: Record<string, any>) => {
|
|
1853
|
+
const typeMappings: TypeMapping = {
|
|
1854
|
+
user_preferences: { type: 'PushPreferences', isSingle: false },
|
|
1855
|
+
};
|
|
1856
|
+
return decode(typeMappings, input);
|
|
1857
|
+
};
|
|
1858
|
+
|
|
1852
1859
|
decoders.User = (input?: Record<string, any>) => {
|
|
1853
1860
|
const typeMappings: TypeMapping = {
|
|
1854
1861
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
package/src/gen/models/index.ts
CHANGED
|
@@ -1221,6 +1221,8 @@ export interface CallEgress {
|
|
|
1221
1221
|
|
|
1222
1222
|
export interface CallIngressResponse {
|
|
1223
1223
|
rtmp: RTMPIngress;
|
|
1224
|
+
|
|
1225
|
+
srt: SRTIngress;
|
|
1224
1226
|
}
|
|
1225
1227
|
|
|
1226
1228
|
export interface CallMember {
|
|
@@ -1783,6 +1785,12 @@ export const ChannelOwnCapability = {
|
|
|
1783
1785
|
export type ChannelOwnCapability =
|
|
1784
1786
|
(typeof ChannelOwnCapability)[keyof typeof ChannelOwnCapability];
|
|
1785
1787
|
|
|
1788
|
+
export interface ChannelPushPreferences {
|
|
1789
|
+
chat_level?: string;
|
|
1790
|
+
|
|
1791
|
+
disabled_until?: Date;
|
|
1792
|
+
}
|
|
1793
|
+
|
|
1786
1794
|
export interface ChannelResponse {
|
|
1787
1795
|
cid: string;
|
|
1788
1796
|
|
|
@@ -2912,15 +2920,15 @@ export interface FeedUpdatedEvent {
|
|
|
2912
2920
|
}
|
|
2913
2921
|
|
|
2914
2922
|
export interface FeedsPreferences {
|
|
2915
|
-
comment?:
|
|
2923
|
+
comment?: 'all' | 'none';
|
|
2916
2924
|
|
|
2917
|
-
comment_reaction?:
|
|
2925
|
+
comment_reaction?: 'all' | 'none';
|
|
2918
2926
|
|
|
2919
|
-
follow?:
|
|
2927
|
+
follow?: 'all' | 'none';
|
|
2920
2928
|
|
|
2921
|
-
mention?:
|
|
2929
|
+
mention?: 'all' | 'none';
|
|
2922
2930
|
|
|
2923
|
-
reaction?:
|
|
2931
|
+
reaction?: 'all' | 'none';
|
|
2924
2932
|
|
|
2925
2933
|
custom_activity_types?: Record<string, string>;
|
|
2926
2934
|
}
|
|
@@ -4562,6 +4570,24 @@ export interface PushNotificationConfig {
|
|
|
4562
4570
|
push_types?: string[];
|
|
4563
4571
|
}
|
|
4564
4572
|
|
|
4573
|
+
export interface PushPreferenceInput {
|
|
4574
|
+
call_level?: 'all' | 'none' | 'default';
|
|
4575
|
+
|
|
4576
|
+
channel_cid?: string;
|
|
4577
|
+
|
|
4578
|
+
chat_level?: 'all' | 'mentions' | 'none' | 'default';
|
|
4579
|
+
|
|
4580
|
+
disabled_until?: Date;
|
|
4581
|
+
|
|
4582
|
+
feeds_level?: 'all' | 'none' | 'default';
|
|
4583
|
+
|
|
4584
|
+
remove_disable?: boolean;
|
|
4585
|
+
|
|
4586
|
+
user_id?: string;
|
|
4587
|
+
|
|
4588
|
+
feeds_preferences?: FeedsPreferences;
|
|
4589
|
+
}
|
|
4590
|
+
|
|
4565
4591
|
export interface PushPreferences {
|
|
4566
4592
|
call_level?: string;
|
|
4567
4593
|
|
|
@@ -5314,6 +5340,10 @@ export interface SFUIDLastSeen {
|
|
|
5314
5340
|
process_start_time: number;
|
|
5315
5341
|
}
|
|
5316
5342
|
|
|
5343
|
+
export interface SRTIngress {
|
|
5344
|
+
address: string;
|
|
5345
|
+
}
|
|
5346
|
+
|
|
5317
5347
|
export interface STTEgressConfig {
|
|
5318
5348
|
closed_captions_enabled?: boolean;
|
|
5319
5349
|
|
|
@@ -5777,6 +5807,8 @@ export interface UpdateActivityRequest {
|
|
|
5777
5807
|
|
|
5778
5808
|
attachments?: Attachment[];
|
|
5779
5809
|
|
|
5810
|
+
feeds?: string[];
|
|
5811
|
+
|
|
5780
5812
|
filter_tags?: string[];
|
|
5781
5813
|
|
|
5782
5814
|
interest_tags?: string[];
|
|
@@ -6024,6 +6056,21 @@ export interface UpsertConfigResponse {
|
|
|
6024
6056
|
config?: ConfigResponse;
|
|
6025
6057
|
}
|
|
6026
6058
|
|
|
6059
|
+
export interface UpsertPushPreferencesRequest {
|
|
6060
|
+
preferences: PushPreferenceInput[];
|
|
6061
|
+
}
|
|
6062
|
+
|
|
6063
|
+
export interface UpsertPushPreferencesResponse {
|
|
6064
|
+
duration: string;
|
|
6065
|
+
|
|
6066
|
+
user_channel_preferences: Record<
|
|
6067
|
+
string,
|
|
6068
|
+
Record<string, ChannelPushPreferences | null>
|
|
6069
|
+
>;
|
|
6070
|
+
|
|
6071
|
+
user_preferences: Record<string, PushPreferences>;
|
|
6072
|
+
}
|
|
6073
|
+
|
|
6027
6074
|
export interface User {
|
|
6028
6075
|
banned: boolean;
|
|
6029
6076
|
|