sidechat.js 2.6.5 → 2.7.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.
Files changed (87) hide show
  1. package/dist/classes/SidechatAPIClient.d.ts +166 -11
  2. package/dist/classes/SidechatAPIClient.d.ts.map +1 -1
  3. package/dist/index.cjs +925 -365
  4. package/dist/index.mjs +925 -365
  5. package/dist/types/SidechatTypes.d.ts +260 -9
  6. package/dist/types/SidechatTypes.d.ts.map +1 -1
  7. package/docs/sidechat.js/2.6.6/SidechatAPIClient.html +3 -0
  8. package/docs/sidechat.js/2.6.6/SidechatAPIError.html +3 -0
  9. package/docs/sidechat.js/2.6.6/SidechatColorList.html +3 -0
  10. package/docs/sidechat.js/2.6.6/classes_SidechatAPIClient.js.html +1447 -0
  11. package/docs/sidechat.js/2.6.6/classes_SidechatAPIError.js.html +16 -0
  12. package/docs/sidechat.js/2.6.6/classes_SidechatColorList.js.html +79 -0
  13. package/docs/sidechat.js/2.6.6/data/search.json +1 -0
  14. package/docs/sidechat.js/2.6.6/fonts/Inconsolata-Regular.ttf +0 -0
  15. package/docs/sidechat.js/2.6.6/fonts/OpenSans-Regular.ttf +0 -0
  16. package/docs/sidechat.js/2.6.6/fonts/WorkSans-Bold.ttf +0 -0
  17. package/docs/sidechat.js/2.6.6/global.html +3 -0
  18. package/docs/sidechat.js/2.6.6/index.html +4 -0
  19. package/docs/sidechat.js/2.6.6/scripts/core.js +726 -0
  20. package/docs/sidechat.js/2.6.6/scripts/core.min.js +23 -0
  21. package/docs/sidechat.js/2.6.6/scripts/resize.js +90 -0
  22. package/docs/sidechat.js/2.6.6/scripts/search.js +265 -0
  23. package/docs/sidechat.js/2.6.6/scripts/search.min.js +6 -0
  24. package/docs/sidechat.js/2.6.6/scripts/third-party/Apache-License-2.0.txt +202 -0
  25. package/docs/sidechat.js/2.6.6/scripts/third-party/fuse.js +9 -0
  26. package/docs/sidechat.js/2.6.6/scripts/third-party/hljs-line-num-original.js +369 -0
  27. package/docs/sidechat.js/2.6.6/scripts/third-party/hljs-line-num.js +1 -0
  28. package/docs/sidechat.js/2.6.6/scripts/third-party/hljs-original.js +5171 -0
  29. package/docs/sidechat.js/2.6.6/scripts/third-party/hljs.js +1 -0
  30. package/docs/sidechat.js/2.6.6/scripts/third-party/popper.js +5 -0
  31. package/docs/sidechat.js/2.6.6/scripts/third-party/tippy.js +1 -0
  32. package/docs/sidechat.js/2.6.6/scripts/third-party/tocbot.js +672 -0
  33. package/docs/sidechat.js/2.6.6/scripts/third-party/tocbot.min.js +1 -0
  34. package/docs/sidechat.js/2.6.6/styles/clean-jsdoc-theme-base.css +1159 -0
  35. package/docs/sidechat.js/2.6.6/styles/clean-jsdoc-theme-dark.css +412 -0
  36. package/docs/sidechat.js/2.6.6/styles/clean-jsdoc-theme-light.css +482 -0
  37. package/docs/sidechat.js/2.6.6/styles/clean-jsdoc-theme-scrollbar.css +30 -0
  38. package/docs/sidechat.js/2.6.6/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -0
  39. package/docs/sidechat.js/2.6.6/styles/clean-jsdoc-theme.min.css +1 -0
  40. package/docs/sidechat.js/2.6.6/tutorial-Authentication.html +14 -0
  41. package/docs/sidechat.js/2.6.6/tutorial-Email Registration.html +6 -0
  42. package/docs/sidechat.js/2.6.6/types_SidechatTypes.js.html +204 -0
  43. package/docs/sidechat.js/2.7.0/SidechatAPIClient.html +3 -0
  44. package/docs/sidechat.js/2.7.0/SidechatAPIError.html +3 -0
  45. package/docs/sidechat.js/2.7.0/SidechatColorList.html +3 -0
  46. package/docs/sidechat.js/2.7.0/classes_SidechatAPIClient.js.html +1897 -0
  47. package/docs/sidechat.js/2.7.0/classes_SidechatAPIError.js.html +16 -0
  48. package/docs/sidechat.js/2.7.0/classes_SidechatColorList.js.html +79 -0
  49. package/docs/sidechat.js/2.7.0/data/search.json +1 -0
  50. package/docs/sidechat.js/2.7.0/fonts/Inconsolata-Regular.ttf +0 -0
  51. package/docs/sidechat.js/2.7.0/fonts/OpenSans-Regular.ttf +0 -0
  52. package/docs/sidechat.js/2.7.0/fonts/WorkSans-Bold.ttf +0 -0
  53. package/docs/sidechat.js/2.7.0/global.html +3 -0
  54. package/docs/sidechat.js/2.7.0/index.html +4 -0
  55. package/docs/sidechat.js/2.7.0/scripts/core.js +726 -0
  56. package/docs/sidechat.js/2.7.0/scripts/core.min.js +23 -0
  57. package/docs/sidechat.js/2.7.0/scripts/resize.js +90 -0
  58. package/docs/sidechat.js/2.7.0/scripts/search.js +265 -0
  59. package/docs/sidechat.js/2.7.0/scripts/search.min.js +6 -0
  60. package/docs/sidechat.js/2.7.0/scripts/third-party/Apache-License-2.0.txt +202 -0
  61. package/docs/sidechat.js/2.7.0/scripts/third-party/fuse.js +9 -0
  62. package/docs/sidechat.js/2.7.0/scripts/third-party/hljs-line-num-original.js +369 -0
  63. package/docs/sidechat.js/2.7.0/scripts/third-party/hljs-line-num.js +1 -0
  64. package/docs/sidechat.js/2.7.0/scripts/third-party/hljs-original.js +5171 -0
  65. package/docs/sidechat.js/2.7.0/scripts/third-party/hljs.js +1 -0
  66. package/docs/sidechat.js/2.7.0/scripts/third-party/popper.js +5 -0
  67. package/docs/sidechat.js/2.7.0/scripts/third-party/tippy.js +1 -0
  68. package/docs/sidechat.js/2.7.0/scripts/third-party/tocbot.js +672 -0
  69. package/docs/sidechat.js/2.7.0/scripts/third-party/tocbot.min.js +1 -0
  70. package/docs/sidechat.js/2.7.0/styles/clean-jsdoc-theme-base.css +1159 -0
  71. package/docs/sidechat.js/2.7.0/styles/clean-jsdoc-theme-dark.css +412 -0
  72. package/docs/sidechat.js/2.7.0/styles/clean-jsdoc-theme-light.css +482 -0
  73. package/docs/sidechat.js/2.7.0/styles/clean-jsdoc-theme-scrollbar.css +30 -0
  74. package/docs/sidechat.js/2.7.0/styles/clean-jsdoc-theme-without-scrollbar.min.css +1 -0
  75. package/docs/sidechat.js/2.7.0/styles/clean-jsdoc-theme.min.css +1 -0
  76. package/docs/sidechat.js/2.7.0/tutorial-Authentication.html +16 -0
  77. package/docs/sidechat.js/2.7.0/tutorial-Email Registration.html +6 -0
  78. package/docs/sidechat.js/2.7.0/tutorial-Feeds and Pagination.html +10 -0
  79. package/docs/sidechat.js/2.7.0/tutorial-Posting and Media.html +19 -0
  80. package/docs/sidechat.js/2.7.0/types_SidechatTypes.js.html +297 -0
  81. package/docs/tutorials/Authentication.md +63 -52
  82. package/docs/tutorials/Email Registration.md +19 -16
  83. package/docs/tutorials/Feeds and Pagination.md +45 -0
  84. package/docs/tutorials/Posting and Media.md +63 -0
  85. package/package.json +55 -55
  86. package/src/classes/SidechatAPIClient.js +549 -81
  87. package/src/types/SidechatTypes.js +294 -202
@@ -43,6 +43,13 @@ declare class SidechatAPIClient {
43
43
  * @since 2.3.9
44
44
  */
45
45
  setAPIRoot: (url: string) => void;
46
+ /**
47
+ * Set an identifier for this device, which will be sent with every request in the `X-Device-ID` header. Should be stable across sessions on the same device.
48
+ * @method
49
+ * @param {String} deviceIdentifier - stable identifier for this device
50
+ * @since 2.7.0
51
+ */
52
+ setDeviceIdentifier: (deviceIdentifier: string) => void;
46
53
  /**
47
54
  * Run an arbitrary API request using the current client's authentication
48
55
  * @method
@@ -55,12 +62,15 @@ declare class SidechatAPIClient {
55
62
  */
56
63
  sendRequest: (endpoint: string, method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS", body?: any, headers?: any, stripHeaders?: boolean) => Promise<Response>;
57
64
  /**
58
- * Initiate the login process with a phone number. Should be followed up with verifySMSCode().
65
+ * Initiate the login process with a phone number. Should be followed up with verifySMSCode(). If the response has an `error_code` of `"captcha_required"`, the server wants a captcha solved before it will send a code, and the request should be repeated with a captcha response. I haven't been able to recreate this yet, so I honestly don't know what captcha provider they want.
59
66
  * @method
60
67
  * @since 1.0.0
61
68
  * @param {Number} phoneNumber - US phone number (WITHOUT +1) to send verification code to
69
+ * @param {Boolean} [useFallback] - send the code through the backup SMS route, which the official app offers when a code doesn't arrive
70
+ * @param {String} [captchaMethod] - type of captcha being answered
71
+ * @param {String} [captchaResponse] - solved captcha token
62
72
  */
63
- loginViaSMS: (phoneNumber: number) => Promise<any>;
73
+ loginViaSMS: (phoneNumber: number, useFallback?: boolean, captchaMethod?: string, captchaResponse?: string) => Promise<any>;
64
74
  /**
65
75
  * Verify the code sent via SMS with loginViaSMS(). If this function succeeds, the user will be authenticated for future requests.
66
76
  * @method
@@ -75,8 +85,10 @@ declare class SidechatAPIClient {
75
85
  * @since 1.0.0
76
86
  * @param {Number} age - user's age in years
77
87
  * @param {String} registrationID - the registration ID generated by verifySMSCode()
88
+ * @param {String} [timeZone] - time zone of the user (e.g. "America/Chicago"). Falls back to the system time zone.
89
+ * @param {String} [inviteLinkURL] - group invite link that the user signed up through
78
90
  */
79
- setAge: (age: number, registrationID: string) => Promise<any>;
91
+ setAge: (age: number, registrationID: string, timeZone?: string, inviteLinkURL?: string) => Promise<any>;
80
92
  /**
81
93
  * Initiate the email setup process. Should be followed up with checkEmailVerification().
82
94
  * @method
@@ -96,8 +108,9 @@ declare class SidechatAPIClient {
96
108
  * @method
97
109
  * @since 1.0.0
98
110
  * @param {String} deviceId - the device ID to set
111
+ * @param {"com.flowerave.sidechat"|"com.flowerave.yikyak"} [bundleID] - bundle ID of the app the push token belongs to
99
112
  */
100
- setDeviceID: (deviceID: any) => Promise<any>;
113
+ setDeviceID: (deviceID: any, bundleID?: "com.flowerave.sidechat" | "com.flowerave.yikyak") => Promise<any>;
101
114
  /**
102
115
  * Get updated status for user and group
103
116
  * @method
@@ -120,9 +133,10 @@ declare class SidechatAPIClient {
120
133
  * @param {String} groupID - group ID
121
134
  * @param {"hot"|"recent"|"top"} category - category to filter posts
122
135
  * @param {types.SidechatCursorString} [cursor] - cursor string
136
+ * @param {"day"|"week"|"month"|"year"|"all_time"} [period] - time period to pull top posts from (only if category is "top")
123
137
  * @returns {Promise<types.SidechatPostsAndCursor>} List of posts and cursor
124
138
  */
125
- getGroupPosts: (groupID: string, category?: "hot" | "recent" | "top", cursor?: types.SidechatCursorString) => Promise<types.SidechatPostsAndCursor>;
139
+ getGroupPosts: (groupID: string, category?: "hot" | "recent" | "top", cursor?: types.SidechatCursorString, period?: "day" | "week" | "month" | "year" | "all_time") => Promise<types.SidechatPostsAndCursor>;
126
140
  /**
127
141
  * Upvote or downvote, or unvote a post
128
142
  * @method
@@ -218,7 +232,7 @@ declare class SidechatAPIClient {
218
232
  */
219
233
  createComment: (parentPostID: string, text: string, groupID: string, replyCommentID?: string, topLevelReplyID?: string, assetList?: types.SidechatSimpleAsset[], disableDMs?: boolean, anonymous?: boolean) => Promise<types.SidechatPostOrComment>;
220
234
  /**
221
- * Creates a new post in the specified group
235
+ * Creates a new post in the specified group. Users can only make two posts a minute; if a post is rejected, the thrown error contains the reason from the server.
222
236
  * @method
223
237
  * @since 2.2.0
224
238
  * @param {String} text - text content of comment
@@ -228,9 +242,10 @@ declare class SidechatAPIClient {
228
242
  * @param {Boolean} [disableComments] - whether or not comments should be disabled on post
229
243
  * @param {Boolean} [anonymous] - whether or not to hide user's name and icon on post
230
244
  * @param {Array<String>} [pollOptions] - List of poll options. If provided, a poll will be created with these options.
245
+ * @param {Array<String>} [attachmentIDs] - IDs of link attachments created with createLinkAttachment()
231
246
  * @returns {Promise<types.SidechatPostOrComment>} the created post
232
247
  */
233
- createPost: (text: string, groupID: string, assetList?: types.SidechatSimpleAsset[], disableDMs?: boolean, disableComments?: boolean, anonymous?: boolean, repostId?: any, pollOptions?: Array<string>) => Promise<types.SidechatPostOrComment>;
248
+ createPost: (text: string, groupID: string, assetList?: types.SidechatSimpleAsset[], disableDMs?: boolean, disableComments?: boolean, anonymous?: boolean, repostId?: any, pollOptions?: Array<string>, attachmentIDs?: Array<string>) => Promise<types.SidechatPostOrComment>;
234
249
  /**
235
250
  * Deletes a post or comment that the user created
236
251
  * @method
@@ -254,15 +269,16 @@ declare class SidechatAPIClient {
254
269
  */
255
270
  viewPollResults: (pollId: string) => Promise<any>;
256
271
  /**
257
- * Uploads an asset to AWS S3 for use in posts and comments. Currently photos only
272
+ * Uploads an asset to AWS S3 for use in posts and comments. Supports images and videos (videos must be under 50MB and are processed after upload)
258
273
  * @method
259
274
  * @param {String} uri - URI of the asset to upload
260
- * @param {String} mimeType - mimetype of the asset (e.g. "image/png")
275
+ * @param {String} mimeType - mimetype of the asset (e.g. "image/png" or "video/mp4")
261
276
  * @param {String} [name] - filename of the asset
277
+ * @param {"post"|"post_vod_source"|"chat"|"chat_icon"|"group_icon"|"profile_picture_icon"} [context] - where the asset will be used. Videos default to "post_vod_source", which is required for them to be processed into a playable stream.
262
278
  * @returns {Promise<String>} URL of the uploaded asset
263
279
  * @since 2.5.1
264
280
  */
265
- uploadAsset: (uri: string, mimeType: string, name?: string) => Promise<string>;
281
+ uploadAsset: (uri: string, mimeType: string, name?: string, context?: "post" | "post_vod_source" | "chat" | "chat_icon" | "group_icon" | "profile_picture_icon") => Promise<string>;
266
282
  /**
267
283
  * Sets the conversation icon of a user
268
284
  * @method
@@ -340,10 +356,11 @@ declare class SidechatAPIClient {
340
356
  /**
341
357
  * Gets a list of the user's direct messages
342
358
  * @method
359
+ * @param {types.SidechatCursorString} [cursor] - cursor string
343
360
  * @returns {Promise<types.SidechatDirectThread[]>}
344
361
  * @since 2.4.4
345
362
  */
346
- getDMs: () => Promise<types.SidechatDirectThread[]>;
363
+ getDMs: (cursor?: types.SidechatCursorString) => Promise<types.SidechatDirectThread[]>;
347
364
  /**
348
365
  * Gets a single direct message thread
349
366
  * @method
@@ -379,14 +396,152 @@ declare class SidechatAPIClient {
379
396
  * @method
380
397
  * @param {String} postID - alphanumeric ID of post to hide
381
398
  * @since 2.6.2
399
+ * @deprecated since 2.7.0. Please use `blockUser` instead!
382
400
  */
383
401
  hidePostsFromUser: (postID: string) => Promise<any>;
384
402
  /**
385
403
  * Unhides all posts from all users
386
404
  * @method
387
405
  * @since 2.6.2
406
+ * @deprecated since 2.7.0. No longer used by the official app and may stop working.
388
407
  */
389
408
  unhidePostsFromAllUsers: () => Promise<any>;
409
+ /**
410
+ * Fetches the home feed, which mixes posts from all of the user's groups
411
+ * @method
412
+ * @param {"for_you"|"hot"|"recent"} [type] - how the feed should be sorted
413
+ * @param {String} [schoolGroupID] - alphanumeric ID of the user's school group
414
+ * @param {types.SidechatCursorString} [cursor] - cursor string
415
+ * @returns {Promise<types.SidechatFeed>} feed items and cursor
416
+ * @since 2.7.0
417
+ */
418
+ getHomeFeed: (type?: "for_you" | "hot" | "recent", schoolGroupID?: string, cursor?: types.SidechatCursorString) => Promise<types.SidechatFeed>;
419
+ /**
420
+ * Follows or unfollows a post. Followed posts send activity notifications when they get new comments.
421
+ * @method
422
+ * @param {String} postID - alphanumeric ID of post
423
+ * @param {Boolean} following - whether or not the user should follow the post
424
+ * @returns {Promise<{post: types.SidechatPostOrComment}>} the updated post
425
+ * @since 2.7.0
426
+ */
427
+ setPostFollowing: (postID: string, following: boolean) => Promise<{
428
+ post: types.SidechatPostOrComment;
429
+ }>;
430
+ /**
431
+ * Reports a post or comment to the group's moderators
432
+ * @method
433
+ * @param {String} postID - alphanumeric ID of post or comment to report
434
+ * @param {types.SidechatReportReason} reason - why the content is being reported
435
+ * @param {String} [note] - explanation to send along with the report
436
+ * @since 2.7.0
437
+ */
438
+ flagPost: (postID: string, reason: types.SidechatReportReason, note?: string) => Promise<any>;
439
+ /**
440
+ * Blocks the author of a post or comment, hiding all of their content from the user. Replaces `hidePostsFromUser`.
441
+ * @method
442
+ * @param {String} postID - alphanumeric ID of a post or comment by the user to block
443
+ * @param {Boolean} [report] - whether or not to also report the content
444
+ * @param {"feed"|"chat"} [postContext] - where the content was seen
445
+ * @since 2.7.0
446
+ */
447
+ blockUser: (postID: string, report?: boolean, postContext?: "feed" | "chat") => Promise<any>;
448
+ /**
449
+ * Creates a link attachment that can be added to a post with createPost(). YouTube links are recognized and shown as embedded videos.
450
+ * @method
451
+ * @param {String} url - URL to attach
452
+ * @returns {Promise<types.SidechatAttachment>} the created attachment
453
+ * @since 2.7.0
454
+ */
455
+ createLinkAttachment: (url: string) => Promise<types.SidechatAttachment>;
456
+ /**
457
+ * Gets the user's activity feed (notifications for comments, votes, followers, etc.)
458
+ * @method
459
+ * @param {types.SidechatCursorString} [cursor] - cursor string
460
+ * @returns {Promise<types.SidechatActivityList>} activity items and cursor
461
+ * @since 2.7.0
462
+ */
463
+ getActivity: (cursor?: types.SidechatCursorString) => Promise<types.SidechatActivityList>;
464
+ /**
465
+ * Gets the groups the user is a member of
466
+ * @method
467
+ * @returns {Promise<types.SidechatGroup[]>}
468
+ * @since 2.7.0
469
+ */
470
+ getGroups: () => Promise<types.SidechatGroup[]>;
471
+ /**
472
+ * Gets groups suggested for the user to join
473
+ * @method
474
+ * @param {Number} [limit] - maximum number of groups to return
475
+ * @returns {Promise<types.SidechatGroup[]>}
476
+ * @since 2.7.0
477
+ */
478
+ getSuggestedGroups: (limit?: number) => Promise<types.SidechatGroup[]>;
479
+ /**
480
+ * Gets a shareable invite link for a group. School groups don't have invite links and will throw an error.
481
+ * @method
482
+ * @param {String} groupID - alphanumeric ID of group
483
+ * @returns {Promise<String>} invite link URL
484
+ * @since 2.7.0
485
+ */
486
+ getGroupInviteLink: (groupID: string) => Promise<string>;
487
+ /**
488
+ * Gets the yakarma leaderboard for a group, along with the user's own karma
489
+ * @method
490
+ * @param {String} groupID - alphanumeric ID of group
491
+ * @returns {Promise<types.SidechatLeaderboard>}
492
+ * @since 2.7.0
493
+ */
494
+ getLeaderboard: (groupID: string) => Promise<types.SidechatLeaderboard>;
495
+ /**
496
+ * Gets the existing direct message thread for a post or comment. Returns undefined if the user hasn't started one.
497
+ * @method
498
+ * @param {String} postID - alphanumeric ID of post or comment
499
+ * @returns {Promise<types.SidechatDirectThread>}
500
+ * @since 2.7.0
501
+ */
502
+ getDMForPost: (postID: string) => Promise<types.SidechatDirectThread>;
503
+ /**
504
+ * Reports a direct message thread
505
+ * @method
506
+ * @param {String} chatID - alphanumeric ID of the thread to report
507
+ * @param {types.SidechatReportReason} reason - why the thread is being reported
508
+ * @since 2.7.0
509
+ */
510
+ reportDM: (chatID: string, reason: types.SidechatReportReason) => Promise<any>;
511
+ /**
512
+ * Sets which push notifications the user receives
513
+ * @method
514
+ * @param {types.SidechatNotificationPreferences} preferences - notification types to enable or disable
515
+ * @since 2.7.0
516
+ */
517
+ setNotificationPreferences: (preferences: types.SidechatNotificationPreferences) => Promise<any>;
518
+ /**
519
+ * Verifies the user's school email by signing in with Google or Microsoft instead of clicking an emailed link. Returns the same object as checkEmailVerification(). This was discovered from me decompiling the new Android app, I haven't tested this but based on the implementation it should work fine and might resolve the problem that a lot of people have with their accounts not being associated with their school automatically.
520
+ * @method
521
+ * @param {String} authToken - token from the Google or Microsoft sign-in
522
+ * @param {"google"|"microsoft"} authType - provider the token came from
523
+ * @param {Boolean} [isIncomingFreshman] - whether or not the user is an incoming freshman
524
+ * @since 2.7.0
525
+ * @tutorial Email Registration
526
+ */
527
+ verifyEmailWithThirdParty: (authToken: string, authType: "google" | "microsoft", isIncomingFreshman?: boolean) => Promise<any>;
528
+ /**
529
+ * Authorizes a realtime (Pusher) connection to subscribe to a private channel, such as `private-chat-<chatID>` for live direct messages. Pass the result to your Pusher client's channel authorizer. This hasn't been tested, and is mostly theoretical.
530
+ * @method
531
+ * @param {String} socketID - socket ID assigned by Pusher
532
+ * @param {String} channelName - name of the private channel to subscribe to
533
+ * @returns {Promise<{auth: String}>} signed channel authorization
534
+ * @since 2.7.0
535
+ */
536
+ authorizeRealtimeChannel: (socketID: string, channelName: string) => Promise<{
537
+ auth: string;
538
+ }>;
539
+ /**
540
+ * Permanently deletes the current user's account. This cannot be undone!
541
+ * @method
542
+ * @since 2.7.0
543
+ */
544
+ deleteAccount: () => Promise<any>;
390
545
  }
391
546
  import type * as types from "../types/SidechatTypes.js";
392
547
  //# sourceMappingURL=SidechatAPIClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidechatAPIClient.d.ts","sour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