moeralib 0.18.3 → 0.18.7
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/lib/node/caller.js +12 -0
- package/lib/node/fingerprints.js +31 -0
- package/lib/node/node.js +185 -68
- package/lib/node/types.js +3 -3
- package/lib/node/validators.js +16292 -14302
- package/package.json +1 -1
- package/typings/node/caller.d.ts.map +1 -1
- package/typings/node/fingerprints.d.ts +2 -0
- package/typings/node/fingerprints.d.ts.map +1 -1
- package/typings/node/node.d.ts +101 -35
- package/typings/node/node.d.ts.map +1 -1
- package/typings/node/types.d.ts +740 -433
- package/typings/node/types.d.ts.map +1 -1
- package/typings/node/validators.d.ts +30 -20
- package/typings/node/validators.d.ts.map +1 -1
package/typings/node/types.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export type OperationStatus = "waiting" | "added" | "started" | "succeeded" | "f
|
|
|
9
9
|
export type PrincipalFlag = "none" | "private" | "admin" | "owner" | "secret" | "senior" | "enigma" | "major" | "signed" | "subscribed" | "public" | "friends" | "unset";
|
|
10
10
|
export type PushContentType = "story-added" | "story-deleted" | "feed-updated";
|
|
11
11
|
export type PushRelayType = "fcm";
|
|
12
|
-
export type Scope = "none" | "identify" | "other" | "view-
|
|
12
|
+
export type Scope = "none" | "identify" | "other" | "view-content" | "add-post" | "update-post" | "add-comment" | "update-comment" | "react" | "delete-own-content" | "delete-others-content" | "view-people" | "block" | "friend" | "remote-identify" | "drafts" | "view-feeds" | "update-feeds" | "name" | "plugins" | "view-profile" | "update-profile" | "sheriff" | "view-settings" | "update-settings" | "subscribe" | "tokens" | "user-lists" | "grant" | "upload-public-media" | "upload-private-media" | "lease-media" | "view-all" | "all";
|
|
13
13
|
export declare const SCOPE_VALUES: Record<Scope, number>;
|
|
14
|
-
export type SearchContentUpdateType = "block" | "comment-add" | "comment-update" | "comment-update-heading" | "comment-update-media-text" | "comment-delete" | "friend" | "profile" | "posting-add" | "posting-update" | "posting-update-heading" | "posting-update-media-text" | "posting-delete" | "reaction-add" | "reaction-delete" | "reactions-delete-all" | "subscribe" | "unblock" | "unfriend" | "unsubscribe";
|
|
14
|
+
export type SearchContentUpdateType = "block" | "comment-add" | "comment-update" | "comment-update-heading" | "comment-update-media" | "comment-update-media-text" | "comment-delete" | "friend" | "profile" | "posting-add" | "posting-update" | "posting-update-heading" | "posting-update-media" | "posting-update-media-text" | "posting-delete" | "reaction-add" | "reaction-delete" | "reactions-delete-all" | "subscribe" | "unblock" | "unfriend" | "unsubscribe";
|
|
15
15
|
export type SearchEngine = "google" | "bing" | "yandex";
|
|
16
16
|
export type SearchEntryType = "all" | "posting" | "comment";
|
|
17
17
|
export type SettingType = "bool" | "int" | "string" | "json" | "Duration" | "PrivateKey" | "PublicKey" | "Timestamp" | "UUID" | "Principal";
|
|
@@ -761,6 +761,7 @@ export interface ContactInfo {
|
|
|
761
761
|
nodeName: string;
|
|
762
762
|
fullName?: string | null;
|
|
763
763
|
gender?: string | null;
|
|
764
|
+
title?: string | null;
|
|
764
765
|
avatar?: AvatarImage | null;
|
|
765
766
|
/**
|
|
766
767
|
* social distance between the contact and the node, which depends on subscription and friendship status and the
|
|
@@ -804,6 +805,12 @@ export interface ContactInfo {
|
|
|
804
805
|
*/
|
|
805
806
|
adminOperations?: ContactOperations | null;
|
|
806
807
|
}
|
|
808
|
+
export interface VisitedNodeAttributes {
|
|
809
|
+
/**
|
|
810
|
+
* name of the visited node
|
|
811
|
+
*/
|
|
812
|
+
nodeName: string;
|
|
813
|
+
}
|
|
807
814
|
export interface Credentials {
|
|
808
815
|
login: string;
|
|
809
816
|
password: string;
|
|
@@ -1122,28 +1129,16 @@ export interface LinkPreview {
|
|
|
1122
1129
|
* hash of the image presenting the page
|
|
1123
1130
|
*/
|
|
1124
1131
|
imageHash?: string | null;
|
|
1125
|
-
}
|
|
1126
|
-
export interface LinkPreviewInfo {
|
|
1127
|
-
/**
|
|
1128
|
-
* name of the site
|
|
1129
|
-
*/
|
|
1130
|
-
siteName?: string | null;
|
|
1131
|
-
/**
|
|
1132
|
-
* canonical URL of the page
|
|
1133
|
-
*/
|
|
1134
|
-
url?: string | null;
|
|
1135
|
-
/**
|
|
1136
|
-
* title of the page
|
|
1137
|
-
*/
|
|
1138
|
-
title?: string | null;
|
|
1139
1132
|
/**
|
|
1140
|
-
*
|
|
1133
|
+
* timestamp of the page publication time
|
|
1141
1134
|
*/
|
|
1142
|
-
|
|
1135
|
+
publishedAt?: number | null;
|
|
1136
|
+
}
|
|
1137
|
+
export interface MediaDownloadAttributes {
|
|
1143
1138
|
/**
|
|
1144
|
-
*
|
|
1139
|
+
* media grant allowing access to the media
|
|
1145
1140
|
*/
|
|
1146
|
-
|
|
1141
|
+
grant: string;
|
|
1147
1142
|
}
|
|
1148
1143
|
export interface MediaFilePreviewInfo {
|
|
1149
1144
|
/**
|
|
@@ -1154,6 +1149,10 @@ export interface MediaFilePreviewInfo {
|
|
|
1154
1149
|
* SHA-1 hash of the preview
|
|
1155
1150
|
*/
|
|
1156
1151
|
hash: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* virtual location of the preview, relative to the ``/media`` virtual page
|
|
1154
|
+
*/
|
|
1155
|
+
path: string;
|
|
1157
1156
|
/**
|
|
1158
1157
|
* location of the preview, relative to the ``/media``; points to a static image served directly from a filesystem
|
|
1159
1158
|
* or CDN
|
|
@@ -1180,15 +1179,75 @@ export interface MediaFilePreviewInfo {
|
|
|
1180
1179
|
*/
|
|
1181
1180
|
original?: boolean | null;
|
|
1182
1181
|
}
|
|
1183
|
-
export interface
|
|
1182
|
+
export interface MediaLeaseAttributes {
|
|
1183
|
+
/**
|
|
1184
|
+
* name of the node that receives the lease
|
|
1185
|
+
*/
|
|
1186
|
+
nodeName: string;
|
|
1184
1187
|
/**
|
|
1185
1188
|
* ID of the media file
|
|
1186
1189
|
*/
|
|
1190
|
+
mediaId: string;
|
|
1191
|
+
/**
|
|
1192
|
+
* ID of the posting used to verify access to the media file
|
|
1193
|
+
*/
|
|
1194
|
+
postingId?: string | null;
|
|
1195
|
+
/**
|
|
1196
|
+
* ID of the comment used to verify access to the media file
|
|
1197
|
+
*/
|
|
1198
|
+
commentId?: string | null;
|
|
1199
|
+
}
|
|
1200
|
+
export interface MediaUploadAttributes {
|
|
1201
|
+
/**
|
|
1202
|
+
* MIME type of the media source file
|
|
1203
|
+
*/
|
|
1204
|
+
mimeType: string;
|
|
1205
|
+
/**
|
|
1206
|
+
* title of the media file, may be used as an alternative to the file name
|
|
1207
|
+
*/
|
|
1208
|
+
title?: string | null;
|
|
1209
|
+
/**
|
|
1210
|
+
* full file size in bytes
|
|
1211
|
+
*/
|
|
1212
|
+
fileSize: number;
|
|
1213
|
+
/**
|
|
1214
|
+
* client-proposed chunk size in bytes
|
|
1215
|
+
*/
|
|
1216
|
+
chunkSize?: number | null;
|
|
1217
|
+
}
|
|
1218
|
+
export interface MediaUploadInfo {
|
|
1219
|
+
/**
|
|
1220
|
+
* upload ID
|
|
1221
|
+
*/
|
|
1187
1222
|
id: string;
|
|
1188
1223
|
/**
|
|
1189
|
-
*
|
|
1224
|
+
* MIME type of the media source file
|
|
1190
1225
|
*/
|
|
1191
|
-
|
|
1226
|
+
mimeType?: string | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* title of the media file, may be used as an alternative to the file name
|
|
1229
|
+
*/
|
|
1230
|
+
title?: string | null;
|
|
1231
|
+
/**
|
|
1232
|
+
* full file size in bytes
|
|
1233
|
+
*/
|
|
1234
|
+
fileSize: number;
|
|
1235
|
+
/**
|
|
1236
|
+
* chunk size in bytes
|
|
1237
|
+
*/
|
|
1238
|
+
chunkSize: number;
|
|
1239
|
+
/**
|
|
1240
|
+
* zero-based numbers of uploaded chunks, sorted in natural order
|
|
1241
|
+
*/
|
|
1242
|
+
uploadedChunks: number[];
|
|
1243
|
+
/**
|
|
1244
|
+
* upload expiration timestamp - the real time when the upload may be deleted
|
|
1245
|
+
*/
|
|
1246
|
+
deadline: number;
|
|
1247
|
+
/**
|
|
1248
|
+
* upload completion timestamp - the real time when all chunks were uploaded
|
|
1249
|
+
*/
|
|
1250
|
+
completedAt?: number | null;
|
|
1192
1251
|
}
|
|
1193
1252
|
export interface NameToRegister {
|
|
1194
1253
|
name: string;
|
|
@@ -1262,6 +1321,27 @@ export interface NodeNameInfo {
|
|
|
1262
1321
|
*/
|
|
1263
1322
|
operations?: NodeNameOperations | null;
|
|
1264
1323
|
}
|
|
1324
|
+
export interface ParentMediaInfo {
|
|
1325
|
+
/**
|
|
1326
|
+
* name of the node containing the media the posting is linked to; if ``null``, the media is located on the same
|
|
1327
|
+
* node as the posting
|
|
1328
|
+
*/
|
|
1329
|
+
nodeName?: string | null;
|
|
1330
|
+
/**
|
|
1331
|
+
* ID of the media the posting is linked to; the media is located on the ``nodeName`` node
|
|
1332
|
+
*/
|
|
1333
|
+
mediaId: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* ID of the posting that owns the attachment the posting is linked to; the posting is located at the same node as
|
|
1336
|
+
* the posting
|
|
1337
|
+
*/
|
|
1338
|
+
postingId: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* ID of the comment that owns the attachment the posting is linked to; if set, ``postingId`` contains ID of the
|
|
1341
|
+
* parent posting of the comment; the comment is located at the same node as the posting
|
|
1342
|
+
*/
|
|
1343
|
+
commentId?: string | null;
|
|
1344
|
+
}
|
|
1265
1345
|
export interface PeopleGeneralInfo {
|
|
1266
1346
|
/**
|
|
1267
1347
|
* total number of subscribers of the node
|
|
@@ -1352,18 +1432,6 @@ export interface PostingFeatures {
|
|
|
1352
1432
|
* list of source text formats the node understands
|
|
1353
1433
|
*/
|
|
1354
1434
|
sourceFormats: SourceFormat[];
|
|
1355
|
-
/**
|
|
1356
|
-
* maximal size of a media attachment in a post
|
|
1357
|
-
*/
|
|
1358
|
-
mediaMaxSize: number;
|
|
1359
|
-
/**
|
|
1360
|
-
* maximal size of a compressed image in a post
|
|
1361
|
-
*/
|
|
1362
|
-
imageRecommendedSize: number;
|
|
1363
|
-
/**
|
|
1364
|
-
* maximal resolution of a compressed image in a post (in pixels)
|
|
1365
|
-
*/
|
|
1366
|
-
imageRecommendedPixels: number;
|
|
1367
1435
|
/**
|
|
1368
1436
|
* list of image formats (in MIME type form) the node understands
|
|
1369
1437
|
*/
|
|
@@ -1410,6 +1478,10 @@ export interface PrivateMediaFileInfo {
|
|
|
1410
1478
|
* SHA-1 hash of the media file
|
|
1411
1479
|
*/
|
|
1412
1480
|
hash: string;
|
|
1481
|
+
/**
|
|
1482
|
+
* cryptographic digest of the media file
|
|
1483
|
+
*/
|
|
1484
|
+
digest: string;
|
|
1413
1485
|
/**
|
|
1414
1486
|
* virtual location of the media file, relative to the ``/media`` virtual page
|
|
1415
1487
|
*/
|
|
@@ -1452,10 +1524,6 @@ export interface PrivateMediaFileInfo {
|
|
|
1452
1524
|
* the text contained in the image, if any
|
|
1453
1525
|
*/
|
|
1454
1526
|
textContent?: string | null;
|
|
1455
|
-
/**
|
|
1456
|
-
* ID of the posting linked to the media
|
|
1457
|
-
*/
|
|
1458
|
-
postingId?: string | null;
|
|
1459
1527
|
/**
|
|
1460
1528
|
* list of media previews - downscaled versions of the media
|
|
1461
1529
|
*/
|
|
@@ -1469,6 +1537,14 @@ export interface PrivateMediaFileInfo {
|
|
|
1469
1537
|
* ``true`` if the media file is considered to be malware, ``false`` (default) otherwise
|
|
1470
1538
|
*/
|
|
1471
1539
|
malware?: boolean | null;
|
|
1540
|
+
/**
|
|
1541
|
+
* media grant allowing access to the media
|
|
1542
|
+
*/
|
|
1543
|
+
grant?: string | null;
|
|
1544
|
+
/**
|
|
1545
|
+
* grant expiration timestamp - the real time when the grant will not be valid anymore
|
|
1546
|
+
*/
|
|
1547
|
+
grantExpiresAt?: number | null;
|
|
1472
1548
|
/**
|
|
1473
1549
|
* the supported operations and the corresponding principals
|
|
1474
1550
|
*/
|
|
@@ -1921,33 +1997,65 @@ export interface RemoteFeed {
|
|
|
1921
1997
|
feedName: string;
|
|
1922
1998
|
}
|
|
1923
1999
|
export interface RemoteMedia {
|
|
2000
|
+
/**
|
|
2001
|
+
* name of the node the media file is located on
|
|
2002
|
+
*/
|
|
2003
|
+
nodeName: string;
|
|
1924
2004
|
/**
|
|
1925
2005
|
* ID of the media file
|
|
1926
2006
|
*/
|
|
1927
|
-
|
|
2007
|
+
mediaId: string;
|
|
1928
2008
|
/**
|
|
1929
2009
|
* SHA-1 hash of the media file
|
|
1930
2010
|
*/
|
|
1931
|
-
hash
|
|
2011
|
+
hash: string;
|
|
1932
2012
|
/**
|
|
1933
2013
|
* cryptographic digest of the media file
|
|
1934
2014
|
*/
|
|
1935
|
-
digest
|
|
2015
|
+
digest: string;
|
|
1936
2016
|
/**
|
|
1937
2017
|
* MIME type of the media
|
|
1938
2018
|
*/
|
|
1939
2019
|
mimeType: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* width of the media in pixels (``null``, if the media file is not an image or video)
|
|
2022
|
+
*/
|
|
2023
|
+
width?: number | null;
|
|
2024
|
+
/**
|
|
2025
|
+
* height of the media in pixels (``null``, if the media file is not an image or video)
|
|
2026
|
+
*/
|
|
2027
|
+
height?: number | null;
|
|
2028
|
+
/**
|
|
2029
|
+
* size of the media file in bytes
|
|
2030
|
+
*/
|
|
2031
|
+
size: number;
|
|
2032
|
+
/**
|
|
2033
|
+
* title of the media file, may be used as an alternative to the file name
|
|
2034
|
+
*/
|
|
2035
|
+
title?: string | null;
|
|
1940
2036
|
/**
|
|
1941
2037
|
* ``true`` if the media cannot be displayed as an image or video and should be displayed as an attachment instead,
|
|
1942
2038
|
* ``false`` (default) otherwise
|
|
1943
2039
|
*/
|
|
1944
2040
|
attachment?: boolean | null;
|
|
2041
|
+
/**
|
|
2042
|
+
* ID of the lease
|
|
2043
|
+
*/
|
|
2044
|
+
leaseId?: string | null;
|
|
1945
2045
|
}
|
|
1946
2046
|
export interface RemoteMediaInfo {
|
|
1947
2047
|
/**
|
|
1948
|
-
* ID of the media file
|
|
2048
|
+
* ID of the remote media file object
|
|
1949
2049
|
*/
|
|
1950
2050
|
id: string;
|
|
2051
|
+
/**
|
|
2052
|
+
* name of the node the media file is located on
|
|
2053
|
+
*/
|
|
2054
|
+
nodeName: string;
|
|
2055
|
+
/**
|
|
2056
|
+
* ID of the media file on the node it is located on
|
|
2057
|
+
*/
|
|
2058
|
+
mediaId: string;
|
|
1951
2059
|
/**
|
|
1952
2060
|
* SHA-1 hash of the media file
|
|
1953
2061
|
*/
|
|
@@ -1960,11 +2068,31 @@ export interface RemoteMediaInfo {
|
|
|
1960
2068
|
* MIME type of the media
|
|
1961
2069
|
*/
|
|
1962
2070
|
mimeType?: string | null;
|
|
2071
|
+
/**
|
|
2072
|
+
* width of the media in pixels (``null``, if the media file is not an image or video)
|
|
2073
|
+
*/
|
|
2074
|
+
width?: number | null;
|
|
2075
|
+
/**
|
|
2076
|
+
* height of the media in pixels (``null``, if the media file is not an image or video)
|
|
2077
|
+
*/
|
|
2078
|
+
height?: number | null;
|
|
2079
|
+
/**
|
|
2080
|
+
* size of the media file in bytes
|
|
2081
|
+
*/
|
|
2082
|
+
size?: number | null;
|
|
2083
|
+
/**
|
|
2084
|
+
* title of the media file, may be used as an alternative to the file name
|
|
2085
|
+
*/
|
|
2086
|
+
title?: string | null;
|
|
1963
2087
|
/**
|
|
1964
2088
|
* ``true`` if the media cannot be displayed as an image or video and should be displayed as an attachment instead,
|
|
1965
2089
|
* ``false`` (default) otherwise
|
|
1966
2090
|
*/
|
|
1967
2091
|
attachment?: boolean | null;
|
|
2092
|
+
/**
|
|
2093
|
+
* media grant allowing access to the media
|
|
2094
|
+
*/
|
|
2095
|
+
grant?: string | null;
|
|
1968
2096
|
}
|
|
1969
2097
|
export interface RemotePosting {
|
|
1970
2098
|
/**
|
|
@@ -2105,6 +2233,36 @@ export interface SearchCommentHeadingUpdate {
|
|
|
2105
2233
|
*/
|
|
2106
2234
|
heading: string;
|
|
2107
2235
|
}
|
|
2236
|
+
export interface SearchCommentMediaUpdate {
|
|
2237
|
+
/**
|
|
2238
|
+
* ID of the posting
|
|
2239
|
+
*/
|
|
2240
|
+
postingId: string;
|
|
2241
|
+
/**
|
|
2242
|
+
* ID of the comment
|
|
2243
|
+
*/
|
|
2244
|
+
commentId: string;
|
|
2245
|
+
/**
|
|
2246
|
+
* ID of the media
|
|
2247
|
+
*/
|
|
2248
|
+
mediaId: string;
|
|
2249
|
+
/**
|
|
2250
|
+
* name of the node where the media is originated from
|
|
2251
|
+
*/
|
|
2252
|
+
remoteMediaNodeName: string;
|
|
2253
|
+
/**
|
|
2254
|
+
* ID of the media on the original node
|
|
2255
|
+
*/
|
|
2256
|
+
remoteMediaId: string;
|
|
2257
|
+
/**
|
|
2258
|
+
* title of the media file, may be used as an alternative to the file name
|
|
2259
|
+
*/
|
|
2260
|
+
title?: string | null;
|
|
2261
|
+
/**
|
|
2262
|
+
* text content of the media
|
|
2263
|
+
*/
|
|
2264
|
+
textContent?: string | null;
|
|
2265
|
+
}
|
|
2108
2266
|
export interface SearchCommentMediaTextUpdate {
|
|
2109
2267
|
/**
|
|
2110
2268
|
* ID of the posting
|
|
@@ -2276,6 +2434,32 @@ export interface SearchPostingHeadingUpdate {
|
|
|
2276
2434
|
*/
|
|
2277
2435
|
heading: string;
|
|
2278
2436
|
}
|
|
2437
|
+
export interface SearchPostingMediaUpdate {
|
|
2438
|
+
/**
|
|
2439
|
+
* ID of the posting
|
|
2440
|
+
*/
|
|
2441
|
+
postingId: string;
|
|
2442
|
+
/**
|
|
2443
|
+
* ID of the media
|
|
2444
|
+
*/
|
|
2445
|
+
mediaId: string;
|
|
2446
|
+
/**
|
|
2447
|
+
* name of the node where the media is originated from
|
|
2448
|
+
*/
|
|
2449
|
+
remoteMediaNodeName: string;
|
|
2450
|
+
/**
|
|
2451
|
+
* ID of the media on the original node
|
|
2452
|
+
*/
|
|
2453
|
+
remoteMediaId: string;
|
|
2454
|
+
/**
|
|
2455
|
+
* title of the media file, may be used as an alternative to the file name
|
|
2456
|
+
*/
|
|
2457
|
+
title?: string | null;
|
|
2458
|
+
/**
|
|
2459
|
+
* text content of the media
|
|
2460
|
+
*/
|
|
2461
|
+
textContent?: string | null;
|
|
2462
|
+
}
|
|
2279
2463
|
export interface SearchPostingMediaTextUpdate {
|
|
2280
2464
|
/**
|
|
2281
2465
|
* ID of the posting
|
|
@@ -3370,6 +3554,24 @@ export interface VerificationInfo {
|
|
|
3370
3554
|
*/
|
|
3371
3555
|
errorMessage?: string | null;
|
|
3372
3556
|
}
|
|
3557
|
+
export interface VisitDetails {
|
|
3558
|
+
/**
|
|
3559
|
+
* ID of the visited posting
|
|
3560
|
+
*/
|
|
3561
|
+
postingId: string;
|
|
3562
|
+
/**
|
|
3563
|
+
* ID of the visited comment
|
|
3564
|
+
*/
|
|
3565
|
+
commentId?: string | null;
|
|
3566
|
+
/**
|
|
3567
|
+
* ID of the visited media
|
|
3568
|
+
*/
|
|
3569
|
+
mediaId?: string | null;
|
|
3570
|
+
/**
|
|
3571
|
+
* page referrer
|
|
3572
|
+
*/
|
|
3573
|
+
referrer?: string | null;
|
|
3574
|
+
}
|
|
3373
3575
|
export interface WhoAmI {
|
|
3374
3576
|
nodeName?: string | null;
|
|
3375
3577
|
/**
|
|
@@ -3557,388 +3759,207 @@ export interface CommentMassAttributes {
|
|
|
3557
3759
|
*/
|
|
3558
3760
|
seniorRejectedReactions?: RejectedReactions | null;
|
|
3559
3761
|
}
|
|
3560
|
-
export interface
|
|
3561
|
-
id: string;
|
|
3762
|
+
export interface ContactWithRelationships {
|
|
3562
3763
|
/**
|
|
3563
|
-
*
|
|
3764
|
+
* contact's details
|
|
3564
3765
|
*/
|
|
3565
|
-
|
|
3766
|
+
contact: ContactInfo;
|
|
3566
3767
|
/**
|
|
3567
|
-
*
|
|
3768
|
+
* information about the contact's subscription to the node's feeds
|
|
3568
3769
|
*/
|
|
3569
|
-
|
|
3770
|
+
subscriber?: SubscriberInfo | null;
|
|
3570
3771
|
/**
|
|
3571
|
-
*
|
|
3772
|
+
* information about the node's subscription to the contact's feeds
|
|
3572
3773
|
*/
|
|
3573
|
-
|
|
3774
|
+
subscription?: SubscriptionInfo | null;
|
|
3574
3775
|
/**
|
|
3575
|
-
*
|
|
3776
|
+
* information about the node's friendship with the contact
|
|
3576
3777
|
*/
|
|
3577
|
-
|
|
3778
|
+
friend?: FriendInfo | null;
|
|
3578
3779
|
/**
|
|
3579
|
-
*
|
|
3780
|
+
* information about the contact's friendship with the node
|
|
3580
3781
|
*/
|
|
3581
|
-
|
|
3782
|
+
friendOf?: FriendOfInfo | null;
|
|
3582
3783
|
/**
|
|
3583
|
-
*
|
|
3784
|
+
* information about blocking the contact by the node
|
|
3584
3785
|
*/
|
|
3585
|
-
|
|
3786
|
+
blocked?: BlockedUserInfo[] | null;
|
|
3586
3787
|
/**
|
|
3587
|
-
*
|
|
3788
|
+
* information about blocking the node by the contact
|
|
3588
3789
|
*/
|
|
3589
|
-
|
|
3790
|
+
blockedBy?: BlockedByUserInfo[] | null;
|
|
3791
|
+
}
|
|
3792
|
+
export interface Features {
|
|
3590
3793
|
/**
|
|
3591
|
-
*
|
|
3592
|
-
* engines and link previews
|
|
3794
|
+
* features of a posting
|
|
3593
3795
|
*/
|
|
3594
|
-
|
|
3796
|
+
posting: PostingFeatures;
|
|
3595
3797
|
/**
|
|
3596
|
-
*
|
|
3798
|
+
* list of names of plugins enabled for the node
|
|
3597
3799
|
*/
|
|
3598
|
-
|
|
3800
|
+
plugins?: string[] | null;
|
|
3599
3801
|
/**
|
|
3600
|
-
*
|
|
3802
|
+
* width of the feed in pixels
|
|
3601
3803
|
*/
|
|
3602
|
-
|
|
3804
|
+
feedWidth: number;
|
|
3603
3805
|
/**
|
|
3604
|
-
*
|
|
3605
|
-
* place
|
|
3806
|
+
* features of groups of friends
|
|
3606
3807
|
*/
|
|
3607
|
-
|
|
3608
|
-
/**
|
|
3609
|
-
* cryptographic digest of the revision (use ``Comment`` fingerprint)
|
|
3610
|
-
*/
|
|
3611
|
-
digest?: string | null;
|
|
3612
|
-
/**
|
|
3613
|
-
* the comment's owner signature (use ``Comment`` fingerprint)
|
|
3614
|
-
*/
|
|
3615
|
-
signature?: string | null;
|
|
3616
|
-
/**
|
|
3617
|
-
* signature version (i.e. fingerprint version)
|
|
3618
|
-
*/
|
|
3619
|
-
signatureVersion?: number | null;
|
|
3808
|
+
friendGroups?: FriendGroupsFeatures | null;
|
|
3620
3809
|
/**
|
|
3621
|
-
*
|
|
3810
|
+
* list of requests to the node owner that are accepted by the node
|
|
3622
3811
|
*/
|
|
3623
|
-
|
|
3812
|
+
ask?: AskSubject[] | null;
|
|
3624
3813
|
/**
|
|
3625
|
-
*
|
|
3814
|
+
* ``true``, if the node is subscribed to the client, ``false`` otherwise
|
|
3626
3815
|
*/
|
|
3627
|
-
|
|
3816
|
+
subscribed?: boolean | null;
|
|
3628
3817
|
}
|
|
3629
|
-
export
|
|
3630
|
-
export type CommentRevisionInfo = CommentRevisionInfoBase<Body>;
|
|
3631
|
-
export interface CommentSourceText {
|
|
3632
|
-
/**
|
|
3633
|
-
* avatar of the comment's owner
|
|
3634
|
-
*/
|
|
3635
|
-
ownerAvatar?: AvatarDescription | null;
|
|
3636
|
-
/**
|
|
3637
|
-
* the source text of the comment, a string representation of a JSON structure
|
|
3638
|
-
*/
|
|
3639
|
-
bodySrc?: Body | string | null;
|
|
3818
|
+
export interface FeedInfo {
|
|
3640
3819
|
/**
|
|
3641
|
-
*
|
|
3642
|
-
* in ``PostingFeatures``
|
|
3820
|
+
* name of the feed
|
|
3643
3821
|
*/
|
|
3644
|
-
|
|
3822
|
+
feedName: string;
|
|
3645
3823
|
/**
|
|
3646
|
-
*
|
|
3824
|
+
* title of the feed
|
|
3647
3825
|
*/
|
|
3648
|
-
|
|
3826
|
+
title?: string | null;
|
|
3649
3827
|
/**
|
|
3650
|
-
*
|
|
3828
|
+
* total number of stories in the feed
|
|
3651
3829
|
*/
|
|
3652
|
-
|
|
3830
|
+
total: number;
|
|
3653
3831
|
/**
|
|
3654
|
-
*
|
|
3655
|
-
* set this
|
|
3832
|
+
* creation timestamp of the earliest story in the feed
|
|
3656
3833
|
*/
|
|
3657
|
-
|
|
3834
|
+
firstCreatedAt?: number | null;
|
|
3658
3835
|
/**
|
|
3659
|
-
*
|
|
3836
|
+
* creation timestamp of the latest story in the feed
|
|
3660
3837
|
*/
|
|
3661
|
-
|
|
3838
|
+
lastCreatedAt?: number | null;
|
|
3662
3839
|
/**
|
|
3663
|
-
* the operations and the corresponding principals
|
|
3840
|
+
* the supported operations and the corresponding principals
|
|
3664
3841
|
*/
|
|
3665
|
-
operations?:
|
|
3842
|
+
operations?: FeedOperations | null;
|
|
3666
3843
|
/**
|
|
3667
|
-
*
|
|
3844
|
+
* list of sheriffs supervising the feed
|
|
3668
3845
|
*/
|
|
3669
|
-
|
|
3846
|
+
sheriffs?: string[] | null;
|
|
3670
3847
|
/**
|
|
3671
|
-
*
|
|
3672
|
-
* senior may set this
|
|
3848
|
+
* list of sheriff marks on the feed
|
|
3673
3849
|
*/
|
|
3674
|
-
|
|
3850
|
+
sheriffMarks?: SheriffMark[] | null;
|
|
3675
3851
|
}
|
|
3676
|
-
export interface
|
|
3677
|
-
/**
|
|
3678
|
-
* node name of the comment's owner
|
|
3679
|
-
*/
|
|
3680
|
-
ownerName?: string | null;
|
|
3681
|
-
/**
|
|
3682
|
-
* full name of the comment's owner
|
|
3683
|
-
*/
|
|
3684
|
-
ownerFullName?: string | null;
|
|
3685
|
-
/**
|
|
3686
|
-
* gender of the comment's owner
|
|
3687
|
-
*/
|
|
3688
|
-
ownerGender?: string | null;
|
|
3689
|
-
/**
|
|
3690
|
-
* avatar of the comment's owner
|
|
3691
|
-
*/
|
|
3692
|
-
ownerAvatar?: AvatarDescription | null;
|
|
3693
|
-
/**
|
|
3694
|
-
* preview of the comment's body, a string representation of a JSON structure
|
|
3695
|
-
*/
|
|
3696
|
-
bodyPreview?: Body | string | null;
|
|
3697
|
-
/**
|
|
3698
|
-
* the source text of the comment, a string representation of a JSON structure
|
|
3699
|
-
*/
|
|
3700
|
-
bodySrc?: Body | string | null;
|
|
3701
|
-
/**
|
|
3702
|
-
* format of the source text of the comment, ``plain-text`` by default; the list of available formats is returned
|
|
3703
|
-
* in ``PostingFeatures``
|
|
3704
|
-
*/
|
|
3705
|
-
bodySrcFormat?: SourceFormat | null;
|
|
3706
|
-
/**
|
|
3707
|
-
* body of the comment, a string representation of a JSON structure
|
|
3708
|
-
*/
|
|
3709
|
-
body?: Body | string | null;
|
|
3710
|
-
/**
|
|
3711
|
-
* format of the body of the comment, may have any value meaningful for the client
|
|
3712
|
-
*/
|
|
3713
|
-
bodyFormat?: BodyFormat | null;
|
|
3714
|
-
/**
|
|
3715
|
-
* array of IDs of private media to be attached to the comment
|
|
3716
|
-
*/
|
|
3717
|
-
media?: string[] | null;
|
|
3718
|
-
/**
|
|
3719
|
-
* comment creation timestamp - the real time when the comment was created
|
|
3720
|
-
*/
|
|
3721
|
-
createdAt?: number | null;
|
|
3722
|
-
/**
|
|
3723
|
-
* types of reactions that the comment rejects
|
|
3724
|
-
*/
|
|
3725
|
-
rejectedReactions?: RejectedReactions | null;
|
|
3726
|
-
/**
|
|
3727
|
-
* types of reactions that the comment rejects, as defined by the posting's owner ("senior"); only the senior may
|
|
3728
|
-
* set this
|
|
3729
|
-
*/
|
|
3730
|
-
seniorRejectedReactions?: RejectedReactions | null;
|
|
3731
|
-
/**
|
|
3732
|
-
* ID of the comment this comment is replying to
|
|
3733
|
-
*/
|
|
3734
|
-
repliedToId?: string | null;
|
|
3735
|
-
/**
|
|
3736
|
-
* the comment's owner signature (use ``Comment`` fingerprint)
|
|
3737
|
-
*/
|
|
3738
|
-
signature?: string | null;
|
|
3739
|
-
/**
|
|
3740
|
-
* signature version (i.e. fingerprint version)
|
|
3741
|
-
*/
|
|
3742
|
-
signatureVersion?: number | null;
|
|
3743
|
-
/**
|
|
3744
|
-
* ``true``, if the comment is being be checked by the post's author before publication, ``false`` (default)
|
|
3745
|
-
* otherwise; only the senior may set this
|
|
3746
|
-
*/
|
|
3747
|
-
premoderating?: boolean | null;
|
|
3748
|
-
/**
|
|
3749
|
-
* the operations and the corresponding principals
|
|
3750
|
-
*/
|
|
3751
|
-
operations?: CommentOperations | null;
|
|
3852
|
+
export interface FriendDescription {
|
|
3752
3853
|
/**
|
|
3753
|
-
*
|
|
3854
|
+
* name of the node
|
|
3754
3855
|
*/
|
|
3755
|
-
|
|
3856
|
+
nodeName: string;
|
|
3756
3857
|
/**
|
|
3757
|
-
*
|
|
3758
|
-
* senior may set this
|
|
3858
|
+
* groups of friends the node is to be included into
|
|
3759
3859
|
*/
|
|
3760
|
-
|
|
3860
|
+
groups?: FriendGroupAssignment[] | null;
|
|
3761
3861
|
}
|
|
3762
|
-
export interface
|
|
3763
|
-
/**
|
|
3764
|
-
* contact's details
|
|
3765
|
-
*/
|
|
3766
|
-
contact: ContactInfo;
|
|
3862
|
+
export interface LinkPreviewInfo {
|
|
3767
3863
|
/**
|
|
3768
|
-
*
|
|
3864
|
+
* name of the site
|
|
3769
3865
|
*/
|
|
3770
|
-
|
|
3866
|
+
siteName?: string | null;
|
|
3771
3867
|
/**
|
|
3772
|
-
*
|
|
3868
|
+
* canonical URL of the page
|
|
3773
3869
|
*/
|
|
3774
|
-
|
|
3870
|
+
url?: string | null;
|
|
3775
3871
|
/**
|
|
3776
|
-
*
|
|
3872
|
+
* title of the page
|
|
3777
3873
|
*/
|
|
3778
|
-
|
|
3874
|
+
title?: string | null;
|
|
3779
3875
|
/**
|
|
3780
|
-
*
|
|
3876
|
+
* description of the page
|
|
3781
3877
|
*/
|
|
3782
|
-
|
|
3878
|
+
description?: string | null;
|
|
3783
3879
|
/**
|
|
3784
|
-
*
|
|
3880
|
+
* image presenting the page
|
|
3785
3881
|
*/
|
|
3786
|
-
|
|
3882
|
+
image?: PrivateMediaFileInfo | null;
|
|
3787
3883
|
/**
|
|
3788
|
-
*
|
|
3884
|
+
* timestamp of the page publication time
|
|
3789
3885
|
*/
|
|
3790
|
-
|
|
3886
|
+
publishedAt?: number | null;
|
|
3791
3887
|
}
|
|
3792
|
-
export interface
|
|
3793
|
-
/**
|
|
3794
|
-
* type of the draft
|
|
3795
|
-
*/
|
|
3796
|
-
draftType: DraftType;
|
|
3797
|
-
/**
|
|
3798
|
-
* name of the node the draft is related to
|
|
3799
|
-
*/
|
|
3800
|
-
receiverName: string;
|
|
3801
|
-
/**
|
|
3802
|
-
* ID of the posting, mandatory for all types, except ``new-posting``
|
|
3803
|
-
*/
|
|
3804
|
-
receiverPostingId?: string | null;
|
|
3805
|
-
/**
|
|
3806
|
-
* ID of the comment, mandatory for ``comment-update`` type
|
|
3807
|
-
*/
|
|
3808
|
-
receiverCommentId?: string | null;
|
|
3809
|
-
/**
|
|
3810
|
-
* ID of the comment replied to
|
|
3811
|
-
*/
|
|
3812
|
-
repliedToId?: string | null;
|
|
3813
|
-
/**
|
|
3814
|
-
* full name of the posting's/comment's owner
|
|
3815
|
-
*/
|
|
3816
|
-
ownerFullName?: string | null;
|
|
3817
|
-
/**
|
|
3818
|
-
* avatar of the posting's/comment's owner
|
|
3819
|
-
*/
|
|
3820
|
-
ownerAvatar?: AvatarDescription | null;
|
|
3821
|
-
/**
|
|
3822
|
-
* types of reactions that the posting rejects
|
|
3823
|
-
*/
|
|
3824
|
-
rejectedReactions?: RejectedReactions | null;
|
|
3825
|
-
/**
|
|
3826
|
-
* types of reactions that the posting's comments should reject
|
|
3827
|
-
*/
|
|
3828
|
-
commentRejectedReactions?: RejectedReactions | null;
|
|
3829
|
-
/**
|
|
3830
|
-
* the source text of the draft, a string representation of a JSON structure
|
|
3831
|
-
*/
|
|
3832
|
-
bodySrc?: Body | string | null;
|
|
3833
|
-
/**
|
|
3834
|
-
* format of the source text of the draft, ``plain-text`` by default; the list of available formats is returned in
|
|
3835
|
-
* ``PostingFeatures``
|
|
3836
|
-
*/
|
|
3837
|
-
bodySrcFormat?: SourceFormat | null;
|
|
3888
|
+
export interface MediaAttachment {
|
|
3838
3889
|
/**
|
|
3839
|
-
*
|
|
3890
|
+
* details of the attached media, may be absent if the media is not located on the node
|
|
3840
3891
|
*/
|
|
3841
|
-
media?:
|
|
3892
|
+
media?: PrivateMediaFileInfo | null;
|
|
3842
3893
|
/**
|
|
3843
|
-
*
|
|
3894
|
+
* (drafts only) ID of the lease of the local media to the target node
|
|
3844
3895
|
*/
|
|
3845
|
-
|
|
3896
|
+
mediaLeaseId?: string | null;
|
|
3846
3897
|
/**
|
|
3847
|
-
*
|
|
3898
|
+
* details of the media, if it is located on another node
|
|
3848
3899
|
*/
|
|
3849
|
-
|
|
3900
|
+
remoteMedia?: RemoteMediaInfo | null;
|
|
3850
3901
|
/**
|
|
3851
|
-
*
|
|
3902
|
+
* ID of the child posting linked to the attachment, if any
|
|
3852
3903
|
*/
|
|
3853
|
-
|
|
3904
|
+
postingId?: string | null;
|
|
3854
3905
|
/**
|
|
3855
|
-
*
|
|
3906
|
+
* ``true`` if the media is used in the body of the posting/comment, ``false`` otherwise
|
|
3856
3907
|
*/
|
|
3857
|
-
|
|
3908
|
+
embedded: boolean;
|
|
3858
3909
|
}
|
|
3859
|
-
export interface
|
|
3860
|
-
/**
|
|
3861
|
-
* features of a posting
|
|
3862
|
-
*/
|
|
3863
|
-
posting: PostingFeatures;
|
|
3910
|
+
export interface MediaCaptionBase<B> {
|
|
3864
3911
|
/**
|
|
3865
|
-
*
|
|
3912
|
+
* ID of the media file the caption belongs to
|
|
3866
3913
|
*/
|
|
3867
|
-
|
|
3868
|
-
/**
|
|
3869
|
-
* width of the feed in pixels
|
|
3870
|
-
*/
|
|
3871
|
-
feedWidth: number;
|
|
3872
|
-
/**
|
|
3873
|
-
* features of groups of friends
|
|
3874
|
-
*/
|
|
3875
|
-
friendGroups?: FriendGroupsFeatures | null;
|
|
3914
|
+
mediaId: string;
|
|
3876
3915
|
/**
|
|
3877
|
-
*
|
|
3916
|
+
* caption source text, a string representation of a JSON structure
|
|
3878
3917
|
*/
|
|
3879
|
-
|
|
3918
|
+
captionSrc?: B | null;
|
|
3880
3919
|
/**
|
|
3881
|
-
*
|
|
3920
|
+
* format of the caption source text
|
|
3882
3921
|
*/
|
|
3883
|
-
|
|
3922
|
+
captionSrcFormat?: SourceFormat | null;
|
|
3884
3923
|
}
|
|
3885
|
-
export
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
*/
|
|
3889
|
-
feedName: string;
|
|
3890
|
-
/**
|
|
3891
|
-
* title of the feed
|
|
3892
|
-
*/
|
|
3893
|
-
title?: string | null;
|
|
3894
|
-
/**
|
|
3895
|
-
* total number of stories in the feed
|
|
3896
|
-
*/
|
|
3897
|
-
total: number;
|
|
3898
|
-
/**
|
|
3899
|
-
* creation timestamp of the earliest story in the feed
|
|
3900
|
-
*/
|
|
3901
|
-
firstCreatedAt?: number | null;
|
|
3902
|
-
/**
|
|
3903
|
-
* creation timestamp of the latest story in the feed
|
|
3904
|
-
*/
|
|
3905
|
-
lastCreatedAt?: number | null;
|
|
3924
|
+
export type EncodedMediaCaption = MediaCaptionBase<string>;
|
|
3925
|
+
export type MediaCaption = MediaCaptionBase<Body>;
|
|
3926
|
+
export interface MediaCaptionText {
|
|
3906
3927
|
/**
|
|
3907
|
-
* the
|
|
3928
|
+
* ID of the media file the caption belongs to
|
|
3908
3929
|
*/
|
|
3909
|
-
|
|
3930
|
+
mediaId: string;
|
|
3910
3931
|
/**
|
|
3911
|
-
*
|
|
3932
|
+
* caption source text, a string representation of a JSON structure
|
|
3912
3933
|
*/
|
|
3913
|
-
|
|
3934
|
+
captionSrc?: Body | string | null;
|
|
3914
3935
|
/**
|
|
3915
|
-
*
|
|
3936
|
+
* format of the caption source text
|
|
3916
3937
|
*/
|
|
3917
|
-
|
|
3938
|
+
captionSrcFormat?: SourceFormat | null;
|
|
3918
3939
|
}
|
|
3919
|
-
export interface
|
|
3940
|
+
export interface MediaLeaseInfo {
|
|
3920
3941
|
/**
|
|
3921
|
-
*
|
|
3942
|
+
* ID of the lease
|
|
3922
3943
|
*/
|
|
3923
|
-
|
|
3944
|
+
id: string;
|
|
3924
3945
|
/**
|
|
3925
|
-
*
|
|
3946
|
+
* details of the media
|
|
3926
3947
|
*/
|
|
3927
|
-
|
|
3948
|
+
media: PrivateMediaFileInfo;
|
|
3928
3949
|
}
|
|
3929
|
-
export interface
|
|
3950
|
+
export interface MediaToAttach {
|
|
3930
3951
|
/**
|
|
3931
|
-
*
|
|
3952
|
+
* ID of the local media to attach
|
|
3932
3953
|
*/
|
|
3933
|
-
|
|
3954
|
+
localMediaId?: string | null;
|
|
3934
3955
|
/**
|
|
3935
|
-
*
|
|
3956
|
+
* (drafts only) ID of the lease of the local media to the target node
|
|
3936
3957
|
*/
|
|
3937
|
-
|
|
3958
|
+
localMediaLeaseId?: string | null;
|
|
3938
3959
|
/**
|
|
3939
|
-
*
|
|
3960
|
+
* remote media to attach
|
|
3940
3961
|
*/
|
|
3941
|
-
|
|
3962
|
+
remoteMedia?: RemoteMedia | null;
|
|
3942
3963
|
}
|
|
3943
3964
|
export interface PostingInfoBase<B> {
|
|
3944
3965
|
id: string;
|
|
@@ -3975,9 +3996,9 @@ export interface PostingInfoBase<B> {
|
|
|
3975
3996
|
*/
|
|
3976
3997
|
receiverPostingId?: string | null;
|
|
3977
3998
|
/**
|
|
3978
|
-
*
|
|
3999
|
+
* information about the media the posting is linked to, if any
|
|
3979
4000
|
*/
|
|
3980
|
-
|
|
4001
|
+
parentMedia?: ParentMediaInfo | null;
|
|
3981
4002
|
/**
|
|
3982
4003
|
* node name of the posting's owner
|
|
3983
4004
|
*/
|
|
@@ -4152,6 +4173,10 @@ export interface PostingInfoBase<B> {
|
|
|
4152
4173
|
* total number of comments to the posting
|
|
4153
4174
|
*/
|
|
4154
4175
|
totalComments?: number | null;
|
|
4176
|
+
/**
|
|
4177
|
+
* number of posting views (for admin only)
|
|
4178
|
+
*/
|
|
4179
|
+
viewCount?: number | null;
|
|
4155
4180
|
/**
|
|
4156
4181
|
* ``true``, if the posting was recommended by a recommendation service (for cached copies of remote postings
|
|
4157
4182
|
* only), ``false`` otherwise
|
|
@@ -4262,9 +4287,13 @@ export interface PostingSourceText {
|
|
|
4262
4287
|
*/
|
|
4263
4288
|
bodySrcFormat?: SourceFormat | null;
|
|
4264
4289
|
/**
|
|
4265
|
-
* array of
|
|
4290
|
+
* array of media to be attached to the posting
|
|
4266
4291
|
*/
|
|
4267
|
-
media?:
|
|
4292
|
+
media?: MediaToAttach[] | null;
|
|
4293
|
+
/**
|
|
4294
|
+
* captions of the media to be attached to the posting
|
|
4295
|
+
*/
|
|
4296
|
+
mediaCaptions?: MediaCaptionText[] | null;
|
|
4268
4297
|
/**
|
|
4269
4298
|
* types of reactions that the posting rejects
|
|
4270
4299
|
*/
|
|
@@ -4329,9 +4358,9 @@ export interface PostingText {
|
|
|
4329
4358
|
*/
|
|
4330
4359
|
bodyFormat?: BodyFormat | null;
|
|
4331
4360
|
/**
|
|
4332
|
-
* array of
|
|
4361
|
+
* array of media to be attached to the posting
|
|
4333
4362
|
*/
|
|
4334
|
-
media?:
|
|
4363
|
+
media?: MediaToAttach[] | null;
|
|
4335
4364
|
/**
|
|
4336
4365
|
* posting creation timestamp - the real time when the posting was created
|
|
4337
4366
|
*/
|
|
@@ -4445,6 +4474,11 @@ export interface SearchEntryInfoBase<B> {
|
|
|
4445
4474
|
* preview of the media attached to the entry, if any
|
|
4446
4475
|
*/
|
|
4447
4476
|
mediaPreview?: PublicMediaFileInfo | null;
|
|
4477
|
+
/**
|
|
4478
|
+
* Source node of the media attached to the entry that was chosen for the preview (``null``, if the media is
|
|
4479
|
+
* located on the same node as the entry)
|
|
4480
|
+
*/
|
|
4481
|
+
mediaPreviewNodeName?: string | null;
|
|
4448
4482
|
/**
|
|
4449
4483
|
* ID of the media attached to the entry that was chosen for the preview
|
|
4450
4484
|
*/
|
|
@@ -4623,183 +4657,393 @@ export interface CommentInfoBase<B> {
|
|
|
4623
4657
|
*/
|
|
4624
4658
|
ownerGender?: string | null;
|
|
4625
4659
|
/**
|
|
4626
|
-
* avatar of the comment's owner
|
|
4660
|
+
* avatar of the comment's owner
|
|
4661
|
+
*/
|
|
4662
|
+
ownerAvatar?: AvatarImage | null;
|
|
4663
|
+
/**
|
|
4664
|
+
* ID of the parent posting of the comment
|
|
4665
|
+
*/
|
|
4666
|
+
postingId: string;
|
|
4667
|
+
/**
|
|
4668
|
+
* ID of the revision of parent posting that was current when the comment was created
|
|
4669
|
+
*/
|
|
4670
|
+
postingRevisionId: string;
|
|
4671
|
+
/**
|
|
4672
|
+
* ID of the current revision of the comment
|
|
4673
|
+
*/
|
|
4674
|
+
revisionId: string;
|
|
4675
|
+
/**
|
|
4676
|
+
* total number of revisions the comment has
|
|
4677
|
+
*/
|
|
4678
|
+
totalRevisions: number;
|
|
4679
|
+
/**
|
|
4680
|
+
* preview of the comment's body, a string representation of a JSON structure
|
|
4681
|
+
*/
|
|
4682
|
+
bodyPreview?: B | null;
|
|
4683
|
+
/**
|
|
4684
|
+
* the source text of the comment, a string representation of a JSON structure, may be absent if not requested
|
|
4685
|
+
*/
|
|
4686
|
+
bodySrc?: B | null;
|
|
4687
|
+
/**
|
|
4688
|
+
* hash of the source text of the comment
|
|
4689
|
+
*/
|
|
4690
|
+
bodySrcHash: string;
|
|
4691
|
+
/**
|
|
4692
|
+
* format of the source text of the comment, the list of available formats is returned in ``PostingFeatures``
|
|
4693
|
+
*/
|
|
4694
|
+
bodySrcFormat?: SourceFormat | null;
|
|
4695
|
+
/**
|
|
4696
|
+
* body of the comment, a string representation of a JSON structure
|
|
4697
|
+
*/
|
|
4698
|
+
body: B;
|
|
4699
|
+
/**
|
|
4700
|
+
* format of the body of the comment, may have any value meaningful for the client
|
|
4701
|
+
*/
|
|
4702
|
+
bodyFormat?: BodyFormat | null;
|
|
4703
|
+
/**
|
|
4704
|
+
* list of the media attached to the comment
|
|
4705
|
+
*/
|
|
4706
|
+
media?: MediaAttachment[] | null;
|
|
4707
|
+
/**
|
|
4708
|
+
* heading of the comment
|
|
4709
|
+
*/
|
|
4710
|
+
heading: string;
|
|
4711
|
+
/**
|
|
4712
|
+
* in addition to ``heading``, gives a more detailed description of the comment that can be used for search engines
|
|
4713
|
+
* and link previews
|
|
4714
|
+
*/
|
|
4715
|
+
description?: string | null;
|
|
4716
|
+
/**
|
|
4717
|
+
* information about the comment this comment is replying to
|
|
4718
|
+
*/
|
|
4719
|
+
repliedTo?: RepliedTo | null;
|
|
4720
|
+
moment: number;
|
|
4721
|
+
/**
|
|
4722
|
+
* comment creation timestamp - the real time when the comment was created
|
|
4723
|
+
*/
|
|
4724
|
+
createdAt: number;
|
|
4725
|
+
/**
|
|
4726
|
+
* comment editing timestamp - the last time the comment was updated
|
|
4727
|
+
*/
|
|
4728
|
+
editedAt?: number | null;
|
|
4729
|
+
/**
|
|
4730
|
+
* comment deletion timestamp - the time when the comment was deleted
|
|
4731
|
+
*/
|
|
4732
|
+
deletedAt?: number | null;
|
|
4733
|
+
/**
|
|
4734
|
+
* creation timestamp of the current revision of the comment
|
|
4735
|
+
*/
|
|
4736
|
+
revisionCreatedAt: number;
|
|
4737
|
+
/**
|
|
4738
|
+
* comment purging timestamp - the time when the deleted comment will be purged from the database
|
|
4739
|
+
*/
|
|
4740
|
+
deadline?: number | null;
|
|
4741
|
+
/**
|
|
4742
|
+
* cryptographic digest of the comment (use ``Comment`` fingerprint)
|
|
4743
|
+
*/
|
|
4744
|
+
digest?: string | null;
|
|
4745
|
+
/**
|
|
4746
|
+
* the comment's owner signature (use ``Comment`` fingerprint)
|
|
4747
|
+
*/
|
|
4748
|
+
signature?: string | null;
|
|
4749
|
+
/**
|
|
4750
|
+
* signature version (i.e. fingerprint version)
|
|
4751
|
+
*/
|
|
4752
|
+
signatureVersion?: number | null;
|
|
4753
|
+
/**
|
|
4754
|
+
* ``true``, if the comment is being be checked by the post's author before publication, ``false`` (default)
|
|
4755
|
+
* otherwise
|
|
4756
|
+
*/
|
|
4757
|
+
premoderating?: boolean | null;
|
|
4758
|
+
/**
|
|
4759
|
+
* the supported operations and the corresponding principals
|
|
4760
|
+
*/
|
|
4761
|
+
operations?: CommentOperations | null;
|
|
4762
|
+
/**
|
|
4763
|
+
* the operations and the corresponding principals that are overridden in reactions to the comment
|
|
4764
|
+
*/
|
|
4765
|
+
reactionOperations?: ReactionOperations | null;
|
|
4766
|
+
/**
|
|
4767
|
+
* the supported operations and the corresponding principals as defined by the comment's owner
|
|
4768
|
+
*/
|
|
4769
|
+
ownerOperations?: CommentOperations | null;
|
|
4770
|
+
/**
|
|
4771
|
+
* the operations and the corresponding principals that are overridden by the posting's owner ("senior")
|
|
4772
|
+
*/
|
|
4773
|
+
seniorOperations?: CommentOperations | null;
|
|
4774
|
+
/**
|
|
4775
|
+
* operations on the comment that are blocked for the client
|
|
4776
|
+
*/
|
|
4777
|
+
blockedOperations?: BlockedEntryOperation[] | null;
|
|
4778
|
+
/**
|
|
4779
|
+
* list of sheriff marks on the comment
|
|
4780
|
+
*/
|
|
4781
|
+
sheriffMarks?: SheriffMark[] | null;
|
|
4782
|
+
/**
|
|
4783
|
+
* types of reactions that the comment rejects
|
|
4784
|
+
*/
|
|
4785
|
+
rejectedReactions?: RejectedReactions | null;
|
|
4786
|
+
/**
|
|
4787
|
+
* types of reactions that the comment rejects, as defined by the comments' owner
|
|
4788
|
+
*/
|
|
4789
|
+
ownerRejectedReactions?: RejectedReactions | null;
|
|
4790
|
+
/**
|
|
4791
|
+
* types of reactions that the comment rejects, as defined by the posting's owner ("senior")
|
|
4792
|
+
*/
|
|
4793
|
+
seniorRejectedReactions?: RejectedReactions | null;
|
|
4794
|
+
/**
|
|
4795
|
+
* details of the existing reaction (if any) of the client's owner
|
|
4796
|
+
*/
|
|
4797
|
+
clientReaction?: ClientReactionInfo | null;
|
|
4798
|
+
/**
|
|
4799
|
+
* details of the existing reaction (if any) of the posting's owner ("senior") to the comment
|
|
4800
|
+
*/
|
|
4801
|
+
seniorReaction?: ClientReactionInfo | null;
|
|
4802
|
+
/**
|
|
4803
|
+
* summary of reactions to the comment
|
|
4804
|
+
*/
|
|
4805
|
+
reactions?: ReactionTotalsInfo | null;
|
|
4806
|
+
}
|
|
4807
|
+
export type EncodedCommentInfo = CommentInfoBase<string>;
|
|
4808
|
+
export type CommentInfo = CommentInfoBase<Body>;
|
|
4809
|
+
export interface CommentRevisionInfoBase<B> {
|
|
4810
|
+
id: string;
|
|
4811
|
+
/**
|
|
4812
|
+
* ID of the posting revision that was actual at the moment of creation of this comment revision
|
|
4813
|
+
*/
|
|
4814
|
+
postingRevisionId: string;
|
|
4815
|
+
/**
|
|
4816
|
+
* preview of the revision's body, a string representation of a JSON structure
|
|
4817
|
+
*/
|
|
4818
|
+
bodyPreview?: B | null;
|
|
4819
|
+
/**
|
|
4820
|
+
* hash of the source text of the revision
|
|
4821
|
+
*/
|
|
4822
|
+
bodySrcHash: string;
|
|
4823
|
+
/**
|
|
4824
|
+
* format of the source text of the revision, the list of available formats is returned in ``PostingFeatures``
|
|
4825
|
+
*/
|
|
4826
|
+
bodySrcFormat?: SourceFormat | null;
|
|
4827
|
+
/**
|
|
4828
|
+
* body of the revision, a string representation of a JSON structure
|
|
4829
|
+
*/
|
|
4830
|
+
body: B;
|
|
4831
|
+
/**
|
|
4832
|
+
* format of the body of the revision, may have any value meaningful for the client
|
|
4833
|
+
*/
|
|
4834
|
+
bodyFormat?: BodyFormat | null;
|
|
4835
|
+
/**
|
|
4836
|
+
* list of the media attached to the revision
|
|
4837
|
+
*/
|
|
4838
|
+
media?: MediaAttachment[] | null;
|
|
4839
|
+
/**
|
|
4840
|
+
* heading of the revision
|
|
4841
|
+
*/
|
|
4842
|
+
heading: string;
|
|
4843
|
+
/**
|
|
4844
|
+
* in addition to ``heading``, gives a more detailed description of the revision that can be used for search
|
|
4845
|
+
* engines and link previews
|
|
4846
|
+
*/
|
|
4847
|
+
description?: string | null;
|
|
4848
|
+
/**
|
|
4849
|
+
* revision creation timestamp - the real time when the revision was created
|
|
4850
|
+
*/
|
|
4851
|
+
createdAt: number;
|
|
4852
|
+
/**
|
|
4853
|
+
* revision deletion timestamp - the time when the revision was deleted
|
|
4854
|
+
*/
|
|
4855
|
+
deletedAt?: number | null;
|
|
4856
|
+
/**
|
|
4857
|
+
* revision deletion timestamp - the time when the revision will be deleted and the previous revision will take its
|
|
4858
|
+
* place
|
|
4859
|
+
*/
|
|
4860
|
+
deadline?: number | null;
|
|
4861
|
+
/**
|
|
4862
|
+
* cryptographic digest of the revision (use ``Comment`` fingerprint)
|
|
4627
4863
|
*/
|
|
4628
|
-
|
|
4864
|
+
digest?: string | null;
|
|
4629
4865
|
/**
|
|
4630
|
-
*
|
|
4866
|
+
* the comment's owner signature (use ``Comment`` fingerprint)
|
|
4631
4867
|
*/
|
|
4632
|
-
|
|
4868
|
+
signature?: string | null;
|
|
4633
4869
|
/**
|
|
4634
|
-
*
|
|
4870
|
+
* signature version (i.e. fingerprint version)
|
|
4635
4871
|
*/
|
|
4636
|
-
|
|
4872
|
+
signatureVersion?: number | null;
|
|
4637
4873
|
/**
|
|
4638
|
-
*
|
|
4874
|
+
* details of the existing reaction (if any) of the client's owner
|
|
4639
4875
|
*/
|
|
4640
|
-
|
|
4876
|
+
clientReaction?: ClientReactionInfo | null;
|
|
4641
4877
|
/**
|
|
4642
|
-
*
|
|
4878
|
+
* summary of reactions to the revision
|
|
4643
4879
|
*/
|
|
4644
|
-
|
|
4880
|
+
reactions?: ReactionTotalsInfo | null;
|
|
4881
|
+
}
|
|
4882
|
+
export type EncodedCommentRevisionInfo = CommentRevisionInfoBase<string>;
|
|
4883
|
+
export type CommentRevisionInfo = CommentRevisionInfoBase<Body>;
|
|
4884
|
+
export interface CommentsSliceInfoBase<B> {
|
|
4645
4885
|
/**
|
|
4646
|
-
*
|
|
4886
|
+
* the slice contains all comments before this moment, inclusive. May be the far future.
|
|
4647
4887
|
*/
|
|
4648
|
-
|
|
4888
|
+
before: number;
|
|
4649
4889
|
/**
|
|
4650
|
-
* the
|
|
4890
|
+
* the slice contains all comments after this moment, exclusive. May be the far past.
|
|
4651
4891
|
*/
|
|
4652
|
-
|
|
4892
|
+
after: number;
|
|
4653
4893
|
/**
|
|
4654
|
-
*
|
|
4894
|
+
* the comments
|
|
4655
4895
|
*/
|
|
4656
|
-
|
|
4896
|
+
comments: CommentInfoBase<B>[];
|
|
4657
4897
|
/**
|
|
4658
|
-
*
|
|
4898
|
+
* total number of comments
|
|
4659
4899
|
*/
|
|
4660
|
-
|
|
4900
|
+
total: number;
|
|
4661
4901
|
/**
|
|
4662
|
-
*
|
|
4902
|
+
* number of comments before this slice till the far past
|
|
4663
4903
|
*/
|
|
4664
|
-
|
|
4904
|
+
totalInPast: number;
|
|
4665
4905
|
/**
|
|
4666
|
-
*
|
|
4906
|
+
* number of comments after this slice till the far future
|
|
4667
4907
|
*/
|
|
4668
|
-
|
|
4908
|
+
totalInFuture: number;
|
|
4909
|
+
}
|
|
4910
|
+
export type EncodedCommentsSliceInfo = CommentsSliceInfoBase<string>;
|
|
4911
|
+
export type CommentsSliceInfo = CommentsSliceInfoBase<Body>;
|
|
4912
|
+
export interface CommentSourceText {
|
|
4669
4913
|
/**
|
|
4670
|
-
*
|
|
4914
|
+
* avatar of the comment's owner
|
|
4671
4915
|
*/
|
|
4672
|
-
|
|
4916
|
+
ownerAvatar?: AvatarDescription | null;
|
|
4673
4917
|
/**
|
|
4674
|
-
*
|
|
4918
|
+
* the source text of the comment, a string representation of a JSON structure
|
|
4675
4919
|
*/
|
|
4676
|
-
|
|
4920
|
+
bodySrc?: Body | string | null;
|
|
4677
4921
|
/**
|
|
4678
|
-
*
|
|
4679
|
-
*
|
|
4922
|
+
* format of the source text of the comment, ``plain-text`` by default; the list of available formats is returned
|
|
4923
|
+
* in ``PostingFeatures``
|
|
4680
4924
|
*/
|
|
4681
|
-
|
|
4925
|
+
bodySrcFormat?: SourceFormat | null;
|
|
4682
4926
|
/**
|
|
4683
|
-
*
|
|
4927
|
+
* array of media to be attached to the comment
|
|
4684
4928
|
*/
|
|
4685
|
-
|
|
4686
|
-
moment: number;
|
|
4929
|
+
media?: MediaToAttach[] | null;
|
|
4687
4930
|
/**
|
|
4688
|
-
*
|
|
4931
|
+
* captions of the media to be attached to the comment
|
|
4689
4932
|
*/
|
|
4690
|
-
|
|
4933
|
+
mediaCaptions?: MediaCaptionText[] | null;
|
|
4691
4934
|
/**
|
|
4692
|
-
*
|
|
4935
|
+
* types of reactions that the comment rejects
|
|
4693
4936
|
*/
|
|
4694
|
-
|
|
4937
|
+
rejectedReactions?: RejectedReactions | null;
|
|
4695
4938
|
/**
|
|
4696
|
-
* comment
|
|
4939
|
+
* types of reactions that the comment rejects, as defined by the posting's owner ("senior"); only the senior may
|
|
4940
|
+
* set this
|
|
4697
4941
|
*/
|
|
4698
|
-
|
|
4942
|
+
seniorRejectedReactions?: RejectedReactions | null;
|
|
4699
4943
|
/**
|
|
4700
|
-
*
|
|
4944
|
+
* ID of the comment this comment is replying to
|
|
4701
4945
|
*/
|
|
4702
|
-
|
|
4946
|
+
repliedToId?: string | null;
|
|
4703
4947
|
/**
|
|
4704
|
-
*
|
|
4948
|
+
* the operations and the corresponding principals
|
|
4705
4949
|
*/
|
|
4706
|
-
|
|
4950
|
+
operations?: CommentOperations | null;
|
|
4707
4951
|
/**
|
|
4708
|
-
*
|
|
4952
|
+
* the operations and the corresponding principals that are overridden in reactions to the comment
|
|
4709
4953
|
*/
|
|
4710
|
-
|
|
4954
|
+
reactionOperations?: ReactionOperations | null;
|
|
4711
4955
|
/**
|
|
4712
|
-
* the
|
|
4956
|
+
* the operations and the corresponding principals that are overridden by the posting's owner ("senior"); only the
|
|
4957
|
+
* senior may set this
|
|
4713
4958
|
*/
|
|
4714
|
-
|
|
4959
|
+
seniorOperations?: CommentOperations | null;
|
|
4960
|
+
}
|
|
4961
|
+
export interface CommentText {
|
|
4715
4962
|
/**
|
|
4716
|
-
*
|
|
4963
|
+
* node name of the comment's owner
|
|
4717
4964
|
*/
|
|
4718
|
-
|
|
4965
|
+
ownerName?: string | null;
|
|
4719
4966
|
/**
|
|
4720
|
-
*
|
|
4721
|
-
* otherwise
|
|
4967
|
+
* full name of the comment's owner
|
|
4722
4968
|
*/
|
|
4723
|
-
|
|
4969
|
+
ownerFullName?: string | null;
|
|
4724
4970
|
/**
|
|
4725
|
-
*
|
|
4971
|
+
* gender of the comment's owner
|
|
4726
4972
|
*/
|
|
4727
|
-
|
|
4973
|
+
ownerGender?: string | null;
|
|
4728
4974
|
/**
|
|
4729
|
-
*
|
|
4975
|
+
* avatar of the comment's owner
|
|
4730
4976
|
*/
|
|
4731
|
-
|
|
4977
|
+
ownerAvatar?: AvatarDescription | null;
|
|
4732
4978
|
/**
|
|
4733
|
-
*
|
|
4979
|
+
* preview of the comment's body, a string representation of a JSON structure
|
|
4734
4980
|
*/
|
|
4735
|
-
|
|
4981
|
+
bodyPreview?: Body | string | null;
|
|
4736
4982
|
/**
|
|
4737
|
-
* the
|
|
4983
|
+
* the source text of the comment, a string representation of a JSON structure
|
|
4738
4984
|
*/
|
|
4739
|
-
|
|
4985
|
+
bodySrc?: Body | string | null;
|
|
4740
4986
|
/**
|
|
4741
|
-
*
|
|
4987
|
+
* format of the source text of the comment, ``plain-text`` by default; the list of available formats is returned
|
|
4988
|
+
* in ``PostingFeatures``
|
|
4742
4989
|
*/
|
|
4743
|
-
|
|
4990
|
+
bodySrcFormat?: SourceFormat | null;
|
|
4744
4991
|
/**
|
|
4745
|
-
*
|
|
4992
|
+
* body of the comment, a string representation of a JSON structure
|
|
4746
4993
|
*/
|
|
4747
|
-
|
|
4994
|
+
body?: Body | string | null;
|
|
4748
4995
|
/**
|
|
4749
|
-
*
|
|
4996
|
+
* format of the body of the comment, may have any value meaningful for the client
|
|
4750
4997
|
*/
|
|
4751
|
-
|
|
4998
|
+
bodyFormat?: BodyFormat | null;
|
|
4752
4999
|
/**
|
|
4753
|
-
*
|
|
5000
|
+
* array of IDs of private media to be attached to the comment
|
|
4754
5001
|
*/
|
|
4755
|
-
|
|
5002
|
+
media?: MediaToAttach[] | null;
|
|
4756
5003
|
/**
|
|
4757
|
-
*
|
|
5004
|
+
* comment creation timestamp - the real time when the comment was created
|
|
4758
5005
|
*/
|
|
4759
|
-
|
|
5006
|
+
createdAt?: number | null;
|
|
4760
5007
|
/**
|
|
4761
|
-
*
|
|
5008
|
+
* types of reactions that the comment rejects
|
|
4762
5009
|
*/
|
|
4763
|
-
|
|
5010
|
+
rejectedReactions?: RejectedReactions | null;
|
|
4764
5011
|
/**
|
|
4765
|
-
*
|
|
5012
|
+
* types of reactions that the comment rejects, as defined by the posting's owner ("senior"); only the senior may
|
|
5013
|
+
* set this
|
|
4766
5014
|
*/
|
|
4767
|
-
|
|
5015
|
+
seniorRejectedReactions?: RejectedReactions | null;
|
|
4768
5016
|
/**
|
|
4769
|
-
*
|
|
5017
|
+
* ID of the comment this comment is replying to
|
|
4770
5018
|
*/
|
|
4771
|
-
|
|
4772
|
-
}
|
|
4773
|
-
export type EncodedCommentInfo = CommentInfoBase<string>;
|
|
4774
|
-
export type CommentInfo = CommentInfoBase<Body>;
|
|
4775
|
-
export interface CommentsSliceInfoBase<B> {
|
|
5019
|
+
repliedToId?: string | null;
|
|
4776
5020
|
/**
|
|
4777
|
-
* the
|
|
5021
|
+
* the comment's owner signature (use ``Comment`` fingerprint)
|
|
4778
5022
|
*/
|
|
4779
|
-
|
|
5023
|
+
signature?: string | null;
|
|
4780
5024
|
/**
|
|
4781
|
-
*
|
|
5025
|
+
* signature version (i.e. fingerprint version)
|
|
4782
5026
|
*/
|
|
4783
|
-
|
|
5027
|
+
signatureVersion?: number | null;
|
|
4784
5028
|
/**
|
|
4785
|
-
* the
|
|
5029
|
+
* ``true``, if the comment is being be checked by the post's author before publication, ``false`` (default)
|
|
5030
|
+
* otherwise; only the senior may set this
|
|
4786
5031
|
*/
|
|
4787
|
-
|
|
5032
|
+
premoderating?: boolean | null;
|
|
4788
5033
|
/**
|
|
4789
|
-
*
|
|
5034
|
+
* the operations and the corresponding principals
|
|
4790
5035
|
*/
|
|
4791
|
-
|
|
5036
|
+
operations?: CommentOperations | null;
|
|
4792
5037
|
/**
|
|
4793
|
-
*
|
|
5038
|
+
* the operations and the corresponding principals that are overridden in reactions to the comment
|
|
4794
5039
|
*/
|
|
4795
|
-
|
|
5040
|
+
reactionOperations?: ReactionOperations | null;
|
|
4796
5041
|
/**
|
|
4797
|
-
*
|
|
5042
|
+
* the operations and the corresponding principals that are overridden by the posting's owner ("senior"); only the
|
|
5043
|
+
* senior may set this
|
|
4798
5044
|
*/
|
|
4799
|
-
|
|
5045
|
+
seniorOperations?: CommentOperations | null;
|
|
4800
5046
|
}
|
|
4801
|
-
export type EncodedCommentsSliceInfo = CommentsSliceInfoBase<string>;
|
|
4802
|
-
export type CommentsSliceInfo = CommentsSliceInfoBase<Body>;
|
|
4803
5047
|
export interface DraftInfoBase<B> {
|
|
4804
5048
|
id: string;
|
|
4805
5049
|
/**
|
|
@@ -4871,6 +5115,10 @@ export interface DraftInfoBase<B> {
|
|
|
4871
5115
|
* list of the media attached to the draft
|
|
4872
5116
|
*/
|
|
4873
5117
|
media?: MediaAttachment[] | null;
|
|
5118
|
+
/**
|
|
5119
|
+
* captions of the media attached to the draft
|
|
5120
|
+
*/
|
|
5121
|
+
mediaCaptions?: MediaCaptionBase<B>[] | null;
|
|
4874
5122
|
/**
|
|
4875
5123
|
* heading of the draft
|
|
4876
5124
|
*/
|
|
@@ -4895,18 +5143,77 @@ export interface DraftInfoBase<B> {
|
|
|
4895
5143
|
}
|
|
4896
5144
|
export type EncodedDraftInfo = DraftInfoBase<string>;
|
|
4897
5145
|
export type DraftInfo = DraftInfoBase<Body>;
|
|
4898
|
-
export interface
|
|
5146
|
+
export interface DraftText {
|
|
4899
5147
|
/**
|
|
4900
|
-
*
|
|
5148
|
+
* type of the draft
|
|
4901
5149
|
*/
|
|
4902
|
-
|
|
5150
|
+
draftType: DraftType;
|
|
4903
5151
|
/**
|
|
4904
|
-
*
|
|
5152
|
+
* name of the node the draft is related to
|
|
4905
5153
|
*/
|
|
4906
|
-
|
|
5154
|
+
receiverName: string;
|
|
5155
|
+
/**
|
|
5156
|
+
* ID of the posting, mandatory for all types, except ``new-posting``
|
|
5157
|
+
*/
|
|
5158
|
+
receiverPostingId?: string | null;
|
|
5159
|
+
/**
|
|
5160
|
+
* ID of the comment, mandatory for ``comment-update`` type
|
|
5161
|
+
*/
|
|
5162
|
+
receiverCommentId?: string | null;
|
|
5163
|
+
/**
|
|
5164
|
+
* ID of the comment replied to
|
|
5165
|
+
*/
|
|
5166
|
+
repliedToId?: string | null;
|
|
5167
|
+
/**
|
|
5168
|
+
* full name of the posting's/comment's owner
|
|
5169
|
+
*/
|
|
5170
|
+
ownerFullName?: string | null;
|
|
5171
|
+
/**
|
|
5172
|
+
* avatar of the posting's/comment's owner
|
|
5173
|
+
*/
|
|
5174
|
+
ownerAvatar?: AvatarDescription | null;
|
|
5175
|
+
/**
|
|
5176
|
+
* types of reactions that the posting rejects
|
|
5177
|
+
*/
|
|
5178
|
+
rejectedReactions?: RejectedReactions | null;
|
|
5179
|
+
/**
|
|
5180
|
+
* types of reactions that the posting's comments should reject
|
|
5181
|
+
*/
|
|
5182
|
+
commentRejectedReactions?: RejectedReactions | null;
|
|
5183
|
+
/**
|
|
5184
|
+
* the source text of the draft, a string representation of a JSON structure
|
|
5185
|
+
*/
|
|
5186
|
+
bodySrc?: Body | string | null;
|
|
5187
|
+
/**
|
|
5188
|
+
* format of the source text of the draft, ``plain-text`` by default; the list of available formats is returned in
|
|
5189
|
+
* ``PostingFeatures``
|
|
5190
|
+
*/
|
|
5191
|
+
bodySrcFormat?: SourceFormat | null;
|
|
5192
|
+
/**
|
|
5193
|
+
* list of the media attached to the draft
|
|
5194
|
+
*/
|
|
5195
|
+
media?: MediaToAttach[] | null;
|
|
5196
|
+
/**
|
|
5197
|
+
* captions of the media attached to the draft
|
|
5198
|
+
*/
|
|
5199
|
+
mediaCaptions?: MediaCaptionText[] | null;
|
|
5200
|
+
/**
|
|
5201
|
+
* story publication timestamp - the time the story must be published under in the feed
|
|
5202
|
+
*/
|
|
5203
|
+
publishAt?: number | null;
|
|
5204
|
+
/**
|
|
5205
|
+
* description of the update
|
|
5206
|
+
*/
|
|
5207
|
+
updateInfo?: UpdateInfo | null;
|
|
5208
|
+
/**
|
|
5209
|
+
* draft of the list of operations and the corresponding principals
|
|
5210
|
+
*/
|
|
5211
|
+
operations?: PostingOperations | null;
|
|
5212
|
+
/**
|
|
5213
|
+
* draft of the list of operations and the corresponding principals that are overridden in the posting's comments
|
|
5214
|
+
*/
|
|
5215
|
+
commentOperations?: CommentOperations | null;
|
|
4907
5216
|
}
|
|
4908
|
-
export type EncodedEntryInfo = EntryInfoBase<string>;
|
|
4909
|
-
export type EntryInfo = EntryInfoBase<Body>;
|
|
4910
5217
|
export interface SettingDescriptor {
|
|
4911
5218
|
/**
|
|
4912
5219
|
* name of the setting
|