sidechat.js 2.0.4 → 2.0.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidechatAPIClient.d.ts","sourceRoot":"","sources":["../../src/classes/SidechatAPIClient.js"],"names":[],"mappings":";AAGA;;;;GAIG;AACH;IAgBE;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"SidechatAPIClient.d.ts","sourceRoot":"","sources":["../../src/classes/SidechatAPIClient.js"],"names":[],"mappings":";AAGA;;;;GAIG;AACH;IAgBE;;;OAGG;IACH,uCAIC;IAvBD;;;SAGK;IACL,6BAAU;IACV;;;;OAIG;IACH,oBAGE;IAYF;;;;OAIG;IACH,6CAEE;IAEF;;;;OAIG;IACH,mDAgBE;IAEF;;;;;OAKG;IACH,mEAsBE;IAEF;;;;;OAKG;IACH,8DAyBE;IAEF;;;;;OAKG;IACH,+CA2BE;IAEF;;;OAGG;IACH,2CAyBE;IAEF;;;;OAIG;IACH,6CA2BE;IAEF;;;;OAIG;IACH,oDAqBE;IAEF;;;;;;;OAOG;IACH,4CAJW,KAAK,GAAC,QAAQ,GAAC,KAAK,2DA2B7B;IAEF;;;;;OAKG;IACH,sEAsBE;IAEF;;;;;OAKG;IACH,qCAFa,uBAAuB,CAqElC;IAEF;;;;OAIG;IACH,0BAFa,eAAe,CAoB1B;CACH"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
declare const _default: {};
|
|
2
|
+
export default _default;
|
|
1
3
|
/**
|
|
2
4
|
* A user-created post or comment, depending on the "type" prop
|
|
3
5
|
*/
|
|
4
|
-
type SidechatPostOrComment = {
|
|
6
|
+
export type SidechatPostOrComment = {
|
|
5
7
|
/**
|
|
6
8
|
* - whether this object represents a post or a comment on a post
|
|
7
9
|
*/
|
|
@@ -102,7 +104,7 @@ type SidechatPostOrComment = {
|
|
|
102
104
|
/**
|
|
103
105
|
* A group object, containing metadata about a group as well as its join conditions and states
|
|
104
106
|
*/
|
|
105
|
-
type SidechatGroup = {
|
|
107
|
+
export type SidechatGroup = {
|
|
106
108
|
/**
|
|
107
109
|
* - alphanumeric ID of group
|
|
108
110
|
*/
|
|
@@ -159,7 +161,7 @@ type SidechatGroup = {
|
|
|
159
161
|
/**
|
|
160
162
|
* An asset object, containing information about an image within a post or comment
|
|
161
163
|
*/
|
|
162
|
-
type SidechatAsset = {
|
|
164
|
+
export type SidechatAsset = {
|
|
163
165
|
/**
|
|
164
166
|
* - alphanumeric ID of asset
|
|
165
167
|
*/
|
|
@@ -188,7 +190,7 @@ type SidechatAsset = {
|
|
|
188
190
|
/**
|
|
189
191
|
* A user's identity information
|
|
190
192
|
*/
|
|
191
|
-
type SidechatIdentity = {
|
|
193
|
+
export type SidechatIdentity = {
|
|
192
194
|
/**
|
|
193
195
|
* - representation of user's name (varies across app)
|
|
194
196
|
*/
|
|
@@ -201,23 +203,23 @@ type SidechatIdentity = {
|
|
|
201
203
|
/**
|
|
202
204
|
* An asset URL that can only be accessed by making a request with a user's bearer token attached in the Authorization header
|
|
203
205
|
*/
|
|
204
|
-
type SidechatPrivateAssetURL = string;
|
|
206
|
+
export type SidechatPrivateAssetURL = string;
|
|
205
207
|
/**
|
|
206
208
|
* A cursor for paginating through post lists
|
|
207
209
|
*/
|
|
208
|
-
type SidechatCursorString = string;
|
|
210
|
+
export type SidechatCursorString = string;
|
|
209
211
|
/**
|
|
210
212
|
* A vote on a comment or post
|
|
211
213
|
*/
|
|
212
|
-
type SidechatVoteString = "upvote" | "downvote" | "none";
|
|
214
|
+
export type SidechatVoteString = "upvote" | "downvote" | "none";
|
|
213
215
|
/**
|
|
214
216
|
* A user's bearer authentication token needed for most requests
|
|
215
217
|
*/
|
|
216
|
-
type SidechatAuthToken = string;
|
|
218
|
+
export type SidechatAuthToken = string;
|
|
217
219
|
/**
|
|
218
220
|
* A list of posts and the associated cursor
|
|
219
221
|
*/
|
|
220
|
-
type SidechatPostsAndCursor = {
|
|
222
|
+
export type SidechatPostsAndCursor = {
|
|
221
223
|
posts: SidechatPostOrComment[];
|
|
222
224
|
cursor: SidechatCursorString;
|
|
223
225
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidechatTypes.d.ts","sourceRoot":"","sources":["../../src/types/SidechatTypes.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidechatTypes.d.ts","sourceRoot":"","sources":["../../src/types/SidechatTypes.js"],"names":[],"mappings":";;;;;;;;;UAGU,MAAM,GAAC,SAAS;;;;;;;;;;;;;;;;;;;;WAKhB,aAAa;;;;;;;;;;;;;;;;iBAIb,kBAAkB;;;;YAClB,aAAa,EAAE;;;;;;;;;;;;;;;;cAIf,gBAAgB;;;;;;;;;;;;mBAGhB,WAAW,GAAC,eAAe;;;;kBAC3B,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAcP,YAAY,GAAC,QAAQ;;;;;;;;qBAErB,MAAM,GAAC,QAAQ,GAAC,cAAc;;;;sBAC9B,SAAS,GAAC,eAAe,GAAC,mBAAmB;;;;8BAC7C,MAAM,GAAC,MAAM;;;;;;;;;;;;eAGb,uBAAuB;;;;;;;;;;;;;;;;;;;;;UASvB,OAAO;;;;kBACP,MAAM,GAAC,KAAK,GAAC,KAAK;;;;;;;;;;;;SAGlB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;iCAsBpB,QAAQ,GAAC,UAAU,GAAC,MAAM;;;;;;;;;WAW7B,qBAAqB,EAAE;YACvB,oBAAoB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sidechat.js",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "A reverse-engineered API wrapper for Sidechat",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "./src/index.js",
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
"types": "./dist/index.d.ts",
|
|
18
18
|
"default": "./dist/index.cjs"
|
|
19
19
|
}
|
|
20
|
+
},
|
|
21
|
+
"./src/types": {
|
|
22
|
+
"types": "./dist/types/SidechatTypes.d.ts",
|
|
23
|
+
"default": "./src/types/SidechatTypes.js"
|
|
20
24
|
}
|
|
21
25
|
},
|
|
22
26
|
"scripts": {
|