stream-chat 6.1.0 → 6.2.0
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/README.md +49 -112
- package/dist/browser.es.js +65 -22
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +65 -22
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +65 -22
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +65 -22
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +16 -3
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +24 -3
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +22 -3
- package/src/types.ts +34 -3
package/src/types.ts
CHANGED
|
@@ -1413,6 +1413,7 @@ export type Action = {
|
|
|
1413
1413
|
export type AnonUserType = {};
|
|
1414
1414
|
|
|
1415
1415
|
export type APNConfig = {
|
|
1416
|
+
auth_key?: string;
|
|
1416
1417
|
auth_type?: string;
|
|
1417
1418
|
bundle_id?: string;
|
|
1418
1419
|
development?: boolean;
|
|
@@ -1420,6 +1421,7 @@ export type APNConfig = {
|
|
|
1420
1421
|
host?: string;
|
|
1421
1422
|
key_id?: string;
|
|
1422
1423
|
notification_template?: string;
|
|
1424
|
+
p12_cert?: string;
|
|
1423
1425
|
team_id?: string;
|
|
1424
1426
|
};
|
|
1425
1427
|
|
|
@@ -1444,7 +1446,7 @@ export type AppSettings = {
|
|
|
1444
1446
|
// all possible file mime types are https://www.iana.org/assignments/media-types/media-types.xhtml
|
|
1445
1447
|
file_upload_config?: FileUploadConfig;
|
|
1446
1448
|
firebase_config?: {
|
|
1447
|
-
credentials_json
|
|
1449
|
+
credentials_json?: string;
|
|
1448
1450
|
data_template?: string;
|
|
1449
1451
|
notification_template?: string;
|
|
1450
1452
|
server_key?: string;
|
|
@@ -1486,6 +1488,7 @@ export type Attachment<
|
|
|
1486
1488
|
file_size?: number | string;
|
|
1487
1489
|
footer?: string;
|
|
1488
1490
|
footer_icon?: string;
|
|
1491
|
+
giphy?: GiphyData;
|
|
1489
1492
|
image_url?: string;
|
|
1490
1493
|
mime_type?: string;
|
|
1491
1494
|
og_scrape_url?: string;
|
|
@@ -1775,14 +1778,38 @@ export type FirebaseConfig = {
|
|
|
1775
1778
|
data_template?: string;
|
|
1776
1779
|
enabled?: boolean;
|
|
1777
1780
|
notification_template?: string;
|
|
1781
|
+
server_key?: string;
|
|
1782
|
+
};
|
|
1783
|
+
|
|
1784
|
+
type GiphyVersionInfo = {
|
|
1785
|
+
height: string;
|
|
1786
|
+
url: string;
|
|
1787
|
+
width: string;
|
|
1788
|
+
};
|
|
1789
|
+
|
|
1790
|
+
type GiphyVersions =
|
|
1791
|
+
| 'original'
|
|
1792
|
+
| 'fixed_height'
|
|
1793
|
+
| 'fixed_height_still'
|
|
1794
|
+
| 'fixed_height_downsampled'
|
|
1795
|
+
| 'fixed_width'
|
|
1796
|
+
| 'fixed_width_still'
|
|
1797
|
+
| 'fixed_width_downsampled';
|
|
1798
|
+
|
|
1799
|
+
type GiphyData = {
|
|
1800
|
+
[key in GiphyVersions]: GiphyVersionInfo;
|
|
1778
1801
|
};
|
|
1779
1802
|
|
|
1780
1803
|
export type HuaweiConfig = {
|
|
1781
1804
|
enabled?: boolean;
|
|
1805
|
+
id?: string;
|
|
1806
|
+
secret?: string;
|
|
1782
1807
|
};
|
|
1783
1808
|
|
|
1784
1809
|
export type XiaomiConfig = {
|
|
1785
1810
|
enabled?: boolean;
|
|
1811
|
+
package_name?: string;
|
|
1812
|
+
secret?: string;
|
|
1786
1813
|
};
|
|
1787
1814
|
|
|
1788
1815
|
export type LiteralStringForUnion = string & {};
|
|
@@ -2130,9 +2157,13 @@ export type TruncateOptions<StreamChatGenerics extends ExtendableGenerics = Defa
|
|
|
2130
2157
|
truncated_at?: Date;
|
|
2131
2158
|
};
|
|
2132
2159
|
|
|
2160
|
+
export type CreateImportURLResponse = {
|
|
2161
|
+
path: string;
|
|
2162
|
+
upload_url: string;
|
|
2163
|
+
};
|
|
2164
|
+
|
|
2133
2165
|
export type CreateImportResponse = {
|
|
2134
2166
|
import_task: ImportTask;
|
|
2135
|
-
upload_url: string;
|
|
2136
2167
|
};
|
|
2137
2168
|
|
|
2138
2169
|
export type GetImportResponse = {
|
|
@@ -2156,9 +2187,9 @@ export type ImportTaskHistory = {
|
|
|
2156
2187
|
|
|
2157
2188
|
export type ImportTask = {
|
|
2158
2189
|
created_at: string;
|
|
2159
|
-
filename: string;
|
|
2160
2190
|
history: ImportTaskHistory[];
|
|
2161
2191
|
id: string;
|
|
2192
|
+
path: string;
|
|
2162
2193
|
state: string;
|
|
2163
2194
|
updated_at: string;
|
|
2164
2195
|
result?: UR;
|