@sandvichxyz/pecans 1.1.0 → 1.1.2
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/package.json +1 -1
- package/dist/account/index.d.ts +0 -7
- package/dist/account/index.d.ts.map +0 -1
- package/dist/account/index.js +0 -24
- package/dist/account/index.js.map +0 -1
- package/dist/answer/index.d.ts +0 -11
- package/dist/answer/index.d.ts.map +0 -1
- package/dist/answer/index.js +0 -35
- package/dist/answer/index.js.map +0 -1
- package/dist/auth/index.d.ts +0 -6
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js +0 -16
- package/dist/auth/index.js.map +0 -1
- package/dist/client.d.ts +0 -42
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -150
- package/dist/client.js.map +0 -1
- package/dist/drawing/index.d.ts +0 -8
- package/dist/drawing/index.d.ts.map +0 -1
- package/dist/drawing/index.js +0 -28
- package/dist/drawing/index.js.map +0 -1
- package/dist/enums.d.ts +0 -11
- package/dist/enums.d.ts.map +0 -1
- package/dist/enums.js +0 -17
- package/dist/enums.js.map +0 -1
- package/dist/extensions/ask.d.ts +0 -10
- package/dist/extensions/ask.d.ts.map +0 -1
- package/dist/extensions/ask.js +0 -25
- package/dist/extensions/ask.js.map +0 -1
- package/dist/forum/index.d.ts +0 -10
- package/dist/forum/index.d.ts.map +0 -1
- package/dist/forum/index.js +0 -42
- package/dist/forum/index.js.map +0 -1
- package/dist/generated/client.d.ts +0 -36
- package/dist/generated/client.d.ts.map +0 -1
- package/dist/generated/client.js +0 -115
- package/dist/generated/client.js.map +0 -1
- package/dist/generated/decoders.d.ts +0 -10
- package/dist/generated/decoders.d.ts.map +0 -1
- package/dist/generated/decoders.js +0 -87
- package/dist/generated/decoders.js.map +0 -1
- package/dist/generated/enums.d.ts +0 -11
- package/dist/generated/enums.d.ts.map +0 -1
- package/dist/generated/enums.js +0 -17
- package/dist/generated/enums.js.map +0 -1
- package/dist/generated/index.d.ts +0 -20
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/index.js +0 -37
- package/dist/generated/index.js.map +0 -1
- package/dist/generated/modules/account.d.ts +0 -7
- package/dist/generated/modules/account.d.ts.map +0 -1
- package/dist/generated/modules/account.js +0 -30
- package/dist/generated/modules/account.js.map +0 -1
- package/dist/generated/modules/answer.d.ts +0 -11
- package/dist/generated/modules/answer.d.ts.map +0 -1
- package/dist/generated/modules/answer.js +0 -50
- package/dist/generated/modules/answer.js.map +0 -1
- package/dist/generated/modules/ask.d.ts +0 -95
- package/dist/generated/modules/ask.d.ts.map +0 -1
- package/dist/generated/modules/ask.js +0 -226
- package/dist/generated/modules/ask.js.map +0 -1
- package/dist/generated/modules/auth.d.ts +0 -7
- package/dist/generated/modules/auth.d.ts.map +0 -1
- package/dist/generated/modules/auth.js +0 -27
- package/dist/generated/modules/auth.js.map +0 -1
- package/dist/generated/modules/dashboard.d.ts +0 -11
- package/dist/generated/modules/dashboard.d.ts.map +0 -1
- package/dist/generated/modules/dashboard.js +0 -20
- package/dist/generated/modules/dashboard.js.map +0 -1
- package/dist/generated/modules/drawing.d.ts +0 -33
- package/dist/generated/modules/drawing.d.ts.map +0 -1
- package/dist/generated/modules/drawing.js +0 -69
- package/dist/generated/modules/drawing.js.map +0 -1
- package/dist/generated/modules/feed.d.ts +0 -22
- package/dist/generated/modules/feed.d.ts.map +0 -1
- package/dist/generated/modules/feed.js +0 -43
- package/dist/generated/modules/feed.js.map +0 -1
- package/dist/generated/modules/forum.d.ts +0 -35
- package/dist/generated/modules/forum.d.ts.map +0 -1
- package/dist/generated/modules/forum.js +0 -119
- package/dist/generated/modules/forum.js.map +0 -1
- package/dist/generated/modules/images.d.ts +0 -27
- package/dist/generated/modules/images.d.ts.map +0 -1
- package/dist/generated/modules/images.js +0 -53
- package/dist/generated/modules/images.js.map +0 -1
- package/dist/generated/modules/messages.d.ts +0 -30
- package/dist/generated/modules/messages.d.ts.map +0 -1
- package/dist/generated/modules/messages.js +0 -90
- package/dist/generated/modules/messages.js.map +0 -1
- package/dist/generated/modules/navbar.d.ts +0 -11
- package/dist/generated/modules/navbar.d.ts.map +0 -1
- package/dist/generated/modules/navbar.js +0 -20
- package/dist/generated/modules/navbar.js.map +0 -1
- package/dist/generated/modules/notify.d.ts +0 -14
- package/dist/generated/modules/notify.d.ts.map +0 -1
- package/dist/generated/modules/notify.js +0 -38
- package/dist/generated/modules/notify.js.map +0 -1
- package/dist/generated/modules/profile.d.ts +0 -34
- package/dist/generated/modules/profile.d.ts.map +0 -1
- package/dist/generated/modules/profile.js +0 -69
- package/dist/generated/modules/profile.js.map +0 -1
- package/dist/generated/modules/qa.d.ts +0 -12
- package/dist/generated/modules/qa.d.ts.map +0 -1
- package/dist/generated/modules/qa.js +0 -23
- package/dist/generated/modules/qa.js.map +0 -1
- package/dist/generated/modules/settings.d.ts +0 -23
- package/dist/generated/modules/settings.d.ts.map +0 -1
- package/dist/generated/modules/settings.js +0 -44
- package/dist/generated/modules/settings.js.map +0 -1
- package/dist/generated/modules/stories.d.ts +0 -18
- package/dist/generated/modules/stories.d.ts.map +0 -1
- package/dist/generated/modules/stories.js +0 -35
- package/dist/generated/modules/stories.js.map +0 -1
- package/dist/generated/types.d.ts +0 -803
- package/dist/generated/types.d.ts.map +0 -1
- package/dist/generated/types.js +0 -4
- package/dist/generated/types.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -19
- package/dist/index.js.map +0 -1
- package/dist/messages/index.d.ts +0 -9
- package/dist/messages/index.d.ts.map +0 -1
- package/dist/messages/index.js +0 -33
- package/dist/messages/index.js.map +0 -1
- package/dist/module.d.ts +0 -7
- package/dist/module.d.ts.map +0 -1
- package/dist/module.js +0 -27
- package/dist/module.js.map +0 -1
- package/dist/notify/index.d.ts +0 -8
- package/dist/notify/index.d.ts.map +0 -1
- package/dist/notify/index.js +0 -19
- package/dist/notify/index.js.map +0 -1
- package/dist/runtime/call.d.ts +0 -19
- package/dist/runtime/call.d.ts.map +0 -1
- package/dist/runtime/call.js +0 -26
- package/dist/runtime/call.js.map +0 -1
- package/dist/runtime/client.d.ts +0 -27
- package/dist/runtime/client.d.ts.map +0 -1
- package/dist/runtime/client.js +0 -90
- package/dist/runtime/client.js.map +0 -1
- package/dist/runtime/index.d.ts +0 -5
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/index.js +0 -21
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/join.d.ts +0 -2
- package/dist/runtime/join.d.ts.map +0 -1
- package/dist/runtime/join.js +0 -14
- package/dist/runtime/join.js.map +0 -1
- package/dist/runtime/module.d.ts +0 -7
- package/dist/runtime/module.d.ts.map +0 -1
- package/dist/runtime/module.js +0 -27
- package/dist/runtime/module.js.map +0 -1
- package/dist/runtime/types.d.ts +0 -19
- package/dist/runtime/types.d.ts.map +0 -1
- package/dist/runtime/types.js +0 -3
- package/dist/runtime/types.js.map +0 -1
- package/dist/types.d.ts +0 -19
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -3
- package/dist/types.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forum.js","sourceRoot":"","sources":["../../../src/generated/modules/forum.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAW7C,MAAa,WAAY,SAAQ,gBAAM;IACnC;;;;;;;OAOG;IACI,SAAS,CAAC,QAAgB,EAAE,KAAa,EAAE,IAAY;QAC1D,OAAO,IAAI,cAAI,CAAoB,IAAI,CAAC,MAAM,EAAE;YAC5C,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE;gBACL,QAAQ,EAAE,QAAQ;gBAClB,KAAK,EAAE,KAAK;gBACZ,IAAI,EAAE,IAAI;aACb;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,SAAS,CACZ,QAAgB,EAChB,SAAiB,EACjB,SAAiB,CAAC,EAClB,UAAmB,KAAK,EACxB,cAAuB,IAAI;QAE3B,OAAO,IAAI,cAAI,CAAoB,IAAI,CAAC,MAAM,EAAE;YAC5C,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE;gBACL,QAAQ,EAAE,QAAQ;gBAClB,IAAI,EAAE,SAAS;gBACf,MAAM,EAAE,MAAM;gBACd,iBAAiB,EAAE,OAAO;gBAC1B,WAAW,EAAE,WAAW;gBACxB,qBAAqB,EAAE,IAAI;aAC9B;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,WAAW,CAAC,IAAY,EAAE,QAAgB;QAC7C,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,mBAAmB;YACvB,OAAO,EAAE;gBACL,IAAI,EAAE,IAAI;gBACV,QAAQ,EAAE,QAAQ;aACrB;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,UAAU,CAAC,MAAc,EAAE,QAAgB;QAC9C,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,kBAAkB;YACtB,OAAO,EAAE;gBACL,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,QAAQ;aACrB;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,QAAQ,CAAC,MAAc,EAAE,IAAY;QACxC,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,gBAAgB;YACpB,OAAO,EAAE;gBACL,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI;aACb;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,MAAM,CAAC,KAAa;QACvB,OAAO,IAAI,cAAI,CAAsB,IAAI,CAAC,MAAM,EAAE;YAC9C,EAAE,EAAE,cAAc;YAClB,OAAO,EAAE;gBACL,KAAK,EAAE,KAAK;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,cAAI,CAA0B,IAAI,CAAC,MAAM,EAAE;YAClD,EAAE,EAAE,qBAAqB;YACzB,OAAO,EAAE,EAAE;SACd,CAAC,CAAC;IACP,CAAC;IAEM,UAAU,CAAC,QAAgB,EAAE,SAAiB,CAAC;QAClD,OAAO,IAAI,cAAI,CAAqB,IAAI,CAAC,MAAM,EAAE;YAC7C,EAAE,EAAE,kBAAkB;YACtB,OAAO,EAAE;gBACL,QAAQ,EAAE,QAAQ;gBAClB,MAAM,EAAE,MAAM;aACjB;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,YAAY,CAAC,EAAU;QAC1B,OAAO,IAAI,cAAI,CAAuB,IAAI,CAAC,MAAM,EAAE;YAC/C,EAAE,EAAE,oBAAoB;YACxB,OAAO,EAAE;gBACL,EAAE,EAAE,EAAE;aACT;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,YAAY,CAAC,QAAgB,EAAE,MAAe;QACjD,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,oBAAoB;YACxB,OAAO,EAAE;gBACL,QAAQ,EAAE,QAAQ;gBAClB,MAAM,EAAE,MAAM;aACjB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA9HD,kCA8HC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { ImageBatchGetResponse, ImageGalleryListResponse, ImageInfoResponse } from "../types";
|
|
3
|
-
export declare class ImagesModule extends Module {
|
|
4
|
-
/**
|
|
5
|
-
* Fetch one or more images by id as base64-encoded PNGs.
|
|
6
|
-
*
|
|
7
|
-
* @param ids - Image ids to fetch, e.g. `["img45788"]`.
|
|
8
|
-
* @returns The matching images with their base64 PNG data.
|
|
9
|
-
*/
|
|
10
|
-
batchGet(ids: string[]): Call<ImageBatchGetResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* List the active account's own saved images, most-recent first.
|
|
13
|
-
*
|
|
14
|
-
* @param page - 1-based page number.
|
|
15
|
-
* @param deleted - Whether to list deleted images instead of live ones.
|
|
16
|
-
* @returns A page of image ids and a flag for whether more pages remain.
|
|
17
|
-
*/
|
|
18
|
-
galleryList(page?: number, deleted?: boolean): Call<ImageGalleryListResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Look up ownership metadata for a single image.
|
|
21
|
-
*
|
|
22
|
-
* @param imageId - The image to inspect.
|
|
23
|
-
* @returns The image's owner and whether the active account owns it.
|
|
24
|
-
*/
|
|
25
|
-
info(imageId: string): Call<ImageInfoResponse>;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=images.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/images.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE9F,qBAAa,YAAa,SAAQ,MAAM;IACpC;;;;;OAKG;IACI,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,qBAAqB,CAAC;IAS3D;;;;;;OAMG;IACI,WAAW,CAAC,IAAI,GAAE,MAAU,EAAE,OAAO,GAAE,OAAe,GAAG,IAAI,CAAC,wBAAwB,CAAC;IAU9F;;;;;OAKG;IACI,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC;CAQxD"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImagesModule = void 0;
|
|
4
|
-
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
-
const runtime_1 = require("../../runtime");
|
|
6
|
-
class ImagesModule extends runtime_1.Module {
|
|
7
|
-
/**
|
|
8
|
-
* Fetch one or more images by id as base64-encoded PNGs.
|
|
9
|
-
*
|
|
10
|
-
* @param ids - Image ids to fetch, e.g. `["img45788"]`.
|
|
11
|
-
* @returns The matching images with their base64 PNG data.
|
|
12
|
-
*/
|
|
13
|
-
batchGet(ids) {
|
|
14
|
-
return new runtime_1.Call(this.client, {
|
|
15
|
-
fn: "images.batchget",
|
|
16
|
-
payload: {
|
|
17
|
-
ids: ids,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* List the active account's own saved images, most-recent first.
|
|
23
|
-
*
|
|
24
|
-
* @param page - 1-based page number.
|
|
25
|
-
* @param deleted - Whether to list deleted images instead of live ones.
|
|
26
|
-
* @returns A page of image ids and a flag for whether more pages remain.
|
|
27
|
-
*/
|
|
28
|
-
galleryList(page = 1, deleted = false) {
|
|
29
|
-
return new runtime_1.Call(this.client, {
|
|
30
|
-
fn: "images.gallerylist",
|
|
31
|
-
payload: {
|
|
32
|
-
page: page,
|
|
33
|
-
deleted: deleted,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Look up ownership metadata for a single image.
|
|
39
|
-
*
|
|
40
|
-
* @param imageId - The image to inspect.
|
|
41
|
-
* @returns The image's owner and whether the active account owns it.
|
|
42
|
-
*/
|
|
43
|
-
info(imageId) {
|
|
44
|
-
return new runtime_1.Call(this.client, {
|
|
45
|
-
fn: "images.info",
|
|
46
|
-
payload: {
|
|
47
|
-
imageId: imageId,
|
|
48
|
-
},
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.ImagesModule = ImagesModule;
|
|
53
|
-
//# sourceMappingURL=images.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"images.js","sourceRoot":"","sources":["../../../src/generated/modules/images.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,YAAa,SAAQ,gBAAM;IACpC;;;;;OAKG;IACI,QAAQ,CAAC,GAAa;QACzB,OAAO,IAAI,cAAI,CAAwB,IAAI,CAAC,MAAM,EAAE;YAChD,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE;gBACL,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;;OAMG;IACI,WAAW,CAAC,OAAe,CAAC,EAAE,UAAmB,KAAK;QACzD,OAAO,IAAI,cAAI,CAA2B,IAAI,CAAC,MAAM,EAAE;YACnD,EAAE,EAAE,oBAAoB;YACxB,OAAO,EAAE;gBACL,IAAI,EAAE,IAAI;gBACV,OAAO,EAAE,OAAO;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,IAAI,CAAC,OAAe;QACvB,OAAO,IAAI,cAAI,CAAoB,IAAI,CAAC,MAAM,EAAE;YAC5C,EAAE,EAAE,aAAa;YACjB,OAAO,EAAE;gBACL,OAAO,EAAE,OAAO;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA/CD,oCA+CC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { FolderListResponse, FolderViewResponse, MessageViewResponse, TCResponse } from "../types";
|
|
3
|
-
export declare class MessagesModule extends Module {
|
|
4
|
-
folderView(folder?: string, page?: number): Call<FolderViewResponse>;
|
|
5
|
-
view(conversationId: string, includeHeader?: boolean, markAsRead?: boolean, page?: number): Call<MessageViewResponse>;
|
|
6
|
-
reply(conversationId: string, text: string, unanonymize?: boolean): Call<TCResponse>;
|
|
7
|
-
folderList(): Call<FolderListResponse>;
|
|
8
|
-
/**
|
|
9
|
-
* Start a new conversation with one or more recipients.
|
|
10
|
-
*
|
|
11
|
-
* @param title - Conversation title / subject.
|
|
12
|
-
* @param body - Body text of the opening message (UCP markup).
|
|
13
|
-
* @param recipients - Usernames to send the conversation to.
|
|
14
|
-
*/
|
|
15
|
-
startConversation(title: string, body: string, recipients: string[]): Call<TCResponse>;
|
|
16
|
-
/**
|
|
17
|
-
* Delete a conversation from the current user's view.
|
|
18
|
-
*
|
|
19
|
-
* @param conversationId - Id of the conversation to delete.
|
|
20
|
-
*/
|
|
21
|
-
delete(conversationId: string): Call<TCResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Move a conversation into a folder.
|
|
24
|
-
*
|
|
25
|
-
* @param conversationId - Id of the conversation to move.
|
|
26
|
-
* @param folder - Id of the destination folder.
|
|
27
|
-
*/
|
|
28
|
-
moveToFolder(conversationId: string, folder: string): Call<TCResponse>;
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/messages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEnG,qBAAa,cAAe,SAAQ,MAAM;IAC/B,UAAU,CAAC,MAAM,GAAE,MAAgB,EAAE,IAAI,GAAE,MAAU,GAAG,IAAI,CAAC,kBAAkB,CAAC;IAUhF,IAAI,CACP,cAAc,EAAE,MAAM,EACtB,aAAa,GAAE,OAAc,EAC7B,UAAU,GAAE,OAAc,EAC1B,IAAI,GAAE,MAAU,GACjB,IAAI,CAAC,mBAAmB,CAAC;IAYrB,KAAK,CACR,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,EACZ,WAAW,GAAE,OAAe,GAC7B,IAAI,CAAC,UAAU,CAAC;IAWZ,UAAU,IAAI,IAAI,CAAC,kBAAkB,CAAC;IAO7C;;;;;;OAMG;IACI,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC;IAW7F;;;;OAIG;IACI,MAAM,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IASvD;;;;;OAKG;IACI,YAAY,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;CAShF"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessagesModule = void 0;
|
|
4
|
-
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
-
const runtime_1 = require("../../runtime");
|
|
6
|
-
class MessagesModule extends runtime_1.Module {
|
|
7
|
-
folderView(folder = "inbox", page = 1) {
|
|
8
|
-
return new runtime_1.Call(this.client, {
|
|
9
|
-
fn: "messages.folderview",
|
|
10
|
-
payload: {
|
|
11
|
-
folder: folder,
|
|
12
|
-
page: page,
|
|
13
|
-
},
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
view(conversationId, includeHeader = true, markAsRead = true, page = 1) {
|
|
17
|
-
return new runtime_1.Call(this.client, {
|
|
18
|
-
fn: "messages.view",
|
|
19
|
-
payload: {
|
|
20
|
-
conversationId: conversationId,
|
|
21
|
-
includeHeader: includeHeader,
|
|
22
|
-
markAsRead: markAsRead,
|
|
23
|
-
page: page,
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
reply(conversationId, text, unanonymize = false) {
|
|
28
|
-
return new runtime_1.Call(this.client, {
|
|
29
|
-
fn: "messages.reply",
|
|
30
|
-
payload: {
|
|
31
|
-
conversationId: conversationId,
|
|
32
|
-
text: text,
|
|
33
|
-
unanonymize: unanonymize,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
folderList() {
|
|
38
|
-
return new runtime_1.Call(this.client, {
|
|
39
|
-
fn: "messages.folderlist",
|
|
40
|
-
payload: {},
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Start a new conversation with one or more recipients.
|
|
45
|
-
*
|
|
46
|
-
* @param title - Conversation title / subject.
|
|
47
|
-
* @param body - Body text of the opening message (UCP markup).
|
|
48
|
-
* @param recipients - Usernames to send the conversation to.
|
|
49
|
-
*/
|
|
50
|
-
startConversation(title, body, recipients) {
|
|
51
|
-
return new runtime_1.Call(this.client, {
|
|
52
|
-
fn: "messages.startconversation",
|
|
53
|
-
payload: {
|
|
54
|
-
title: title,
|
|
55
|
-
body: body,
|
|
56
|
-
recipients: recipients,
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Delete a conversation from the current user's view.
|
|
62
|
-
*
|
|
63
|
-
* @param conversationId - Id of the conversation to delete.
|
|
64
|
-
*/
|
|
65
|
-
delete(conversationId) {
|
|
66
|
-
return new runtime_1.Call(this.client, {
|
|
67
|
-
fn: "messages.delete",
|
|
68
|
-
payload: {
|
|
69
|
-
conversationId: conversationId,
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Move a conversation into a folder.
|
|
75
|
-
*
|
|
76
|
-
* @param conversationId - Id of the conversation to move.
|
|
77
|
-
* @param folder - Id of the destination folder.
|
|
78
|
-
*/
|
|
79
|
-
moveToFolder(conversationId, folder) {
|
|
80
|
-
return new runtime_1.Call(this.client, {
|
|
81
|
-
fn: "messages.movetofolder",
|
|
82
|
-
payload: {
|
|
83
|
-
conversationId: conversationId,
|
|
84
|
-
folder: folder,
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.MessagesModule = MessagesModule;
|
|
90
|
-
//# sourceMappingURL=messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../../../src/generated/modules/messages.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,cAAe,SAAQ,gBAAM;IAC/B,UAAU,CAAC,SAAiB,OAAO,EAAE,OAAe,CAAC;QACxD,OAAO,IAAI,cAAI,CAAqB,IAAI,CAAC,MAAM,EAAE;YAC7C,EAAE,EAAE,qBAAqB;YACzB,OAAO,EAAE;gBACL,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI;aACb;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,IAAI,CACP,cAAsB,EACtB,gBAAyB,IAAI,EAC7B,aAAsB,IAAI,EAC1B,OAAe,CAAC;QAEhB,OAAO,IAAI,cAAI,CAAsB,IAAI,CAAC,MAAM,EAAE;YAC9C,EAAE,EAAE,eAAe;YACnB,OAAO,EAAE;gBACL,cAAc,EAAE,cAAc;gBAC9B,aAAa,EAAE,aAAa;gBAC5B,UAAU,EAAE,UAAU;gBACtB,IAAI,EAAE,IAAI;aACb;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,KAAK,CACR,cAAsB,EACtB,IAAY,EACZ,cAAuB,KAAK;QAE5B,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,gBAAgB;YACpB,OAAO,EAAE;gBACL,cAAc,EAAE,cAAc;gBAC9B,IAAI,EAAE,IAAI;gBACV,WAAW,EAAE,WAAW;aAC3B;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,cAAI,CAAqB,IAAI,CAAC,MAAM,EAAE;YAC7C,EAAE,EAAE,qBAAqB;YACzB,OAAO,EAAE,EAAE;SACd,CAAC,CAAC;IACP,CAAC;IAED;;;;;;OAMG;IACI,iBAAiB,CAAC,KAAa,EAAE,IAAY,EAAE,UAAoB;QACtE,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,4BAA4B;YAChC,OAAO,EAAE;gBACL,KAAK,EAAE,KAAK;gBACZ,IAAI,EAAE,IAAI;gBACV,UAAU,EAAE,UAAU;aACzB;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,cAAsB;QAChC,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE;gBACL,cAAc,EAAE,cAAc;aACjC;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,YAAY,CAAC,cAAsB,EAAE,MAAc;QACtD,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,uBAAuB;YAC3B,OAAO,EAAE;gBACL,cAAc,EAAE,cAAc;gBAC9B,MAAM,EAAE,MAAM;aACjB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAjGD,wCAiGC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { NavbarGetResponse } from "../types";
|
|
3
|
-
export declare class NavbarModule extends Module {
|
|
4
|
-
/**
|
|
5
|
-
* Fetch the site navigation items for the current user.
|
|
6
|
-
*
|
|
7
|
-
* @returns The navigation items, in display order.
|
|
8
|
-
*/
|
|
9
|
-
get(): Call<NavbarGetResponse>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=navbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/navbar.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,qBAAa,YAAa,SAAQ,MAAM;IACpC;;;;OAIG;IACI,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC;CAMxC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NavbarModule = void 0;
|
|
4
|
-
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
-
const runtime_1 = require("../../runtime");
|
|
6
|
-
class NavbarModule extends runtime_1.Module {
|
|
7
|
-
/**
|
|
8
|
-
* Fetch the site navigation items for the current user.
|
|
9
|
-
*
|
|
10
|
-
* @returns The navigation items, in display order.
|
|
11
|
-
*/
|
|
12
|
-
get() {
|
|
13
|
-
return new runtime_1.Call(this.client, {
|
|
14
|
-
fn: "navbar.get",
|
|
15
|
-
payload: {},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.NavbarModule = NavbarModule;
|
|
20
|
-
//# sourceMappingURL=navbar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navbar.js","sourceRoot":"","sources":["../../../src/generated/modules/navbar.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,YAAa,SAAQ,gBAAM;IACpC;;;;OAIG;IACI,GAAG;QACN,OAAO,IAAI,cAAI,CAAoB,IAAI,CAAC,MAAM,EAAE;YAC5C,EAAE,EAAE,YAAY;YAChB,OAAO,EAAE,EAAE;SACd,CAAC,CAAC;IACP,CAAC;CACJ;AAZD,oCAYC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { NotifySyncResponse, TCResponse, WhosOnlineResponse } from "../types";
|
|
3
|
-
import { Feature } from "../enums";
|
|
4
|
-
export declare class NotifyModule extends Module {
|
|
5
|
-
sync(feature: Feature): Call<NotifySyncResponse>;
|
|
6
|
-
fetchOnlineUsers(feature: Feature): Call<WhosOnlineResponse>;
|
|
7
|
-
/**
|
|
8
|
-
* Register that you're viewing a page, for presence and read-tracking.
|
|
9
|
-
*
|
|
10
|
-
* @param url - Path of the page being viewed, e.g. `/forum/general`.
|
|
11
|
-
*/
|
|
12
|
-
activity(url: string): Call<TCResponse>;
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=notify.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notify.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/notify.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnC,qBAAa,YAAa,SAAQ,MAAM;IAC7B,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAC;IAShD,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAC;IASnE;;;;OAIG;IACI,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;CAQjD"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NotifyModule = void 0;
|
|
4
|
-
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
-
const runtime_1 = require("../../runtime");
|
|
6
|
-
class NotifyModule extends runtime_1.Module {
|
|
7
|
-
sync(feature) {
|
|
8
|
-
return new runtime_1.Call(this.client, {
|
|
9
|
-
fn: "notify.sync",
|
|
10
|
-
payload: {
|
|
11
|
-
feature: feature,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
fetchOnlineUsers(feature) {
|
|
16
|
-
return new runtime_1.Call(this.client, {
|
|
17
|
-
fn: "notify.whosonline",
|
|
18
|
-
payload: {
|
|
19
|
-
feature: feature,
|
|
20
|
-
},
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Register that you're viewing a page, for presence and read-tracking.
|
|
25
|
-
*
|
|
26
|
-
* @param url - Path of the page being viewed, e.g. `/forum/general`.
|
|
27
|
-
*/
|
|
28
|
-
activity(url) {
|
|
29
|
-
return new runtime_1.Call(this.client, {
|
|
30
|
-
fn: "notify.activity",
|
|
31
|
-
payload: {
|
|
32
|
-
url: url,
|
|
33
|
-
},
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.NotifyModule = NotifyModule;
|
|
38
|
-
//# sourceMappingURL=notify.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notify.js","sourceRoot":"","sources":["../../../src/generated/modules/notify.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAI7C,MAAa,YAAa,SAAQ,gBAAM;IAC7B,IAAI,CAAC,OAAgB;QACxB,OAAO,IAAI,cAAI,CAAqB,IAAI,CAAC,MAAM,EAAE;YAC7C,EAAE,EAAE,aAAa;YACjB,OAAO,EAAE;gBACL,OAAO,EAAE,OAAO;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;IAEM,gBAAgB,CAAC,OAAgB;QACpC,OAAO,IAAI,cAAI,CAAqB,IAAI,CAAC,MAAM,EAAE;YAC7C,EAAE,EAAE,mBAAmB;YACvB,OAAO,EAAE;gBACL,OAAO,EAAE,OAAO;aACnB;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACI,QAAQ,CAAC,GAAW;QACvB,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE;gBACL,GAAG,EAAE,GAAG;aACX;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAhCD,oCAgCC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { ProfileDetailsResponse, ProfileGetResponse, TCResponse } from "../types";
|
|
3
|
-
export declare class ProfileModule extends Module {
|
|
4
|
-
/**
|
|
5
|
-
* Check whether a profile exists and resolve its canonical id.
|
|
6
|
-
*
|
|
7
|
-
* @param id - Username to look up.
|
|
8
|
-
* @returns The user's id, or `ok: false` with error `NOT_FOUND`.
|
|
9
|
-
*/
|
|
10
|
-
get(id: string): Call<ProfileGetResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Fetch one field of a user's profile.
|
|
13
|
-
*
|
|
14
|
-
* @param user - Username whose profile to read.
|
|
15
|
-
* @param field - Field name, e.g. `blurb`, `title`, `followers`, `joinTime`, `contact.discord`.
|
|
16
|
-
* @returns The field name and its value.
|
|
17
|
-
*/
|
|
18
|
-
details(user: string, field: string): Call<ProfileDetailsResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Set one field on your own profile.
|
|
21
|
-
*
|
|
22
|
-
* @param field - Field name, e.g. `blurb`, `contact.web`.
|
|
23
|
-
* @param value - New value for the field.
|
|
24
|
-
*/
|
|
25
|
-
edit(field: string, value: string): Call<TCResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Follow or unfollow another user.
|
|
28
|
-
*
|
|
29
|
-
* @param id - Username to follow or unfollow.
|
|
30
|
-
* @param follow - True to follow, false to unfollow.
|
|
31
|
-
*/
|
|
32
|
-
toggleFollow(id: string, follow: boolean): Call<TCResponse>;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/profile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAElF,qBAAa,aAAc,SAAQ,MAAM;IACrC;;;;;OAKG;IACI,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC;IAShD;;;;;;OAMG;IACI,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,sBAAsB,CAAC;IAUzE;;;;;OAKG;IACI,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC;IAU3D;;;;;OAKG;IACI,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;CASrE"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileModule = void 0;
|
|
4
|
-
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
-
const runtime_1 = require("../../runtime");
|
|
6
|
-
class ProfileModule extends runtime_1.Module {
|
|
7
|
-
/**
|
|
8
|
-
* Check whether a profile exists and resolve its canonical id.
|
|
9
|
-
*
|
|
10
|
-
* @param id - Username to look up.
|
|
11
|
-
* @returns The user's id, or `ok: false` with error `NOT_FOUND`.
|
|
12
|
-
*/
|
|
13
|
-
get(id) {
|
|
14
|
-
return new runtime_1.Call(this.client, {
|
|
15
|
-
fn: "profile.get",
|
|
16
|
-
payload: {
|
|
17
|
-
id: id,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Fetch one field of a user's profile.
|
|
23
|
-
*
|
|
24
|
-
* @param user - Username whose profile to read.
|
|
25
|
-
* @param field - Field name, e.g. `blurb`, `title`, `followers`, `joinTime`, `contact.discord`.
|
|
26
|
-
* @returns The field name and its value.
|
|
27
|
-
*/
|
|
28
|
-
details(user, field) {
|
|
29
|
-
return new runtime_1.Call(this.client, {
|
|
30
|
-
fn: "profile.details",
|
|
31
|
-
payload: {
|
|
32
|
-
user: user,
|
|
33
|
-
field: field,
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Set one field on your own profile.
|
|
39
|
-
*
|
|
40
|
-
* @param field - Field name, e.g. `blurb`, `contact.web`.
|
|
41
|
-
* @param value - New value for the field.
|
|
42
|
-
*/
|
|
43
|
-
edit(field, value) {
|
|
44
|
-
return new runtime_1.Call(this.client, {
|
|
45
|
-
fn: "profile.edit",
|
|
46
|
-
payload: {
|
|
47
|
-
field: field,
|
|
48
|
-
value: value,
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Follow or unfollow another user.
|
|
54
|
-
*
|
|
55
|
-
* @param id - Username to follow or unfollow.
|
|
56
|
-
* @param follow - True to follow, false to unfollow.
|
|
57
|
-
*/
|
|
58
|
-
toggleFollow(id, follow) {
|
|
59
|
-
return new runtime_1.Call(this.client, {
|
|
60
|
-
fn: "profile.togglefollow",
|
|
61
|
-
payload: {
|
|
62
|
-
id: id,
|
|
63
|
-
follow: follow,
|
|
64
|
-
},
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.ProfileModule = ProfileModule;
|
|
69
|
-
//# sourceMappingURL=profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/generated/modules/profile.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,aAAc,SAAQ,gBAAM;IACrC;;;;;OAKG;IACI,GAAG,CAAC,EAAU;QACjB,OAAO,IAAI,cAAI,CAAqB,IAAI,CAAC,MAAM,EAAE;YAC7C,EAAE,EAAE,aAAa;YACjB,OAAO,EAAE;gBACL,EAAE,EAAE,EAAE;aACT;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;;OAMG;IACI,OAAO,CAAC,IAAY,EAAE,KAAa;QACtC,OAAO,IAAI,cAAI,CAAyB,IAAI,CAAC,MAAM,EAAE;YACjD,EAAE,EAAE,iBAAiB;YACrB,OAAO,EAAE;gBACL,IAAI,EAAE,IAAI;gBACV,KAAK,EAAE,KAAK;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,IAAI,CAAC,KAAa,EAAE,KAAa;QACpC,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,cAAc;YAClB,OAAO,EAAE;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,KAAK;aACf;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,YAAY,CAAC,EAAU,EAAE,MAAe;QAC3C,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,sBAAsB;YAC1B,OAAO,EAAE;gBACL,EAAE,EAAE,EAAE;gBACN,MAAM,EAAE,MAAM;aACjB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAhED,sCAgEC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { QaGetPinnedResponse } from "../types";
|
|
3
|
-
export declare class QaModule extends Module {
|
|
4
|
-
/**
|
|
5
|
-
* List the questions a user has pinned to their profile.
|
|
6
|
-
*
|
|
7
|
-
* @param profileId - Username whose pinned questions to fetch.
|
|
8
|
-
* @returns The user's pinned questions.
|
|
9
|
-
*/
|
|
10
|
-
getPinned(profileId: string): Call<QaGetPinnedResponse>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=qa.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"qa.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/qa.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE/C,qBAAa,QAAS,SAAQ,MAAM;IAChC;;;;;OAKG;IACI,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC;CAQjE"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QaModule = void 0;
|
|
4
|
-
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
-
const runtime_1 = require("../../runtime");
|
|
6
|
-
class QaModule extends runtime_1.Module {
|
|
7
|
-
/**
|
|
8
|
-
* List the questions a user has pinned to their profile.
|
|
9
|
-
*
|
|
10
|
-
* @param profileId - Username whose pinned questions to fetch.
|
|
11
|
-
* @returns The user's pinned questions.
|
|
12
|
-
*/
|
|
13
|
-
getPinned(profileId) {
|
|
14
|
-
return new runtime_1.Call(this.client, {
|
|
15
|
-
fn: "qa.getpinned",
|
|
16
|
-
payload: {
|
|
17
|
-
profileId: profileId,
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.QaModule = QaModule;
|
|
23
|
-
//# sourceMappingURL=qa.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"qa.js","sourceRoot":"","sources":["../../../src/generated/modules/qa.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,QAAS,SAAQ,gBAAM;IAChC;;;;;OAKG;IACI,SAAS,CAAC,SAAiB;QAC9B,OAAO,IAAI,cAAI,CAAsB,IAAI,CAAC,MAAM,EAAE;YAC9C,EAAE,EAAE,cAAc;YAClB,OAAO,EAAE;gBACL,SAAS,EAAE,SAAS;aACvB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AAfD,4BAeC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { SettingsGetResponse, TCResponse } from "../types";
|
|
3
|
-
export declare class SettingsModule extends Module {
|
|
4
|
-
/**
|
|
5
|
-
* Fetch the current account settings.
|
|
6
|
-
*
|
|
7
|
-
* @returns The account's email and message preferences.
|
|
8
|
-
*/
|
|
9
|
-
get(): Call<SettingsGetResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Save account settings. Sends the full settings each time, so pass the current
|
|
12
|
-
* values for anything you're not changing. Leave the password fields empty to
|
|
13
|
-
* keep the current password.
|
|
14
|
-
*
|
|
15
|
-
* @param email - Account email address.
|
|
16
|
-
* @param msgNotify - Whether to notify on new private messages.
|
|
17
|
-
* @param msgHideAnon - Whether to hide sender identity on anonymous messages.
|
|
18
|
-
* @param pwOld - Current password, required only when changing it.
|
|
19
|
-
* @param pwNew - New password, when changing it.
|
|
20
|
-
*/
|
|
21
|
-
set(email: string, msgNotify: boolean, msgHideAnon: boolean, pwOld?: string, pwNew?: string): Call<TCResponse>;
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/settings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3D,qBAAa,cAAe,SAAQ,MAAM;IACtC;;;;OAIG;IACI,GAAG,IAAI,IAAI,CAAC,mBAAmB,CAAC;IAOvC;;;;;;;;;;OAUG;IACI,GAAG,CACN,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,OAAO,EAClB,WAAW,EAAE,OAAO,EACpB,KAAK,GAAE,MAAW,EAClB,KAAK,GAAE,MAAW,GACnB,IAAI,CAAC,UAAU,CAAC;CAatB"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SettingsModule = void 0;
|
|
4
|
-
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
-
const runtime_1 = require("../../runtime");
|
|
6
|
-
class SettingsModule extends runtime_1.Module {
|
|
7
|
-
/**
|
|
8
|
-
* Fetch the current account settings.
|
|
9
|
-
*
|
|
10
|
-
* @returns The account's email and message preferences.
|
|
11
|
-
*/
|
|
12
|
-
get() {
|
|
13
|
-
return new runtime_1.Call(this.client, {
|
|
14
|
-
fn: "legacy.settingsget",
|
|
15
|
-
payload: {},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Save account settings. Sends the full settings each time, so pass the current
|
|
20
|
-
* values for anything you're not changing. Leave the password fields empty to
|
|
21
|
-
* keep the current password.
|
|
22
|
-
*
|
|
23
|
-
* @param email - Account email address.
|
|
24
|
-
* @param msgNotify - Whether to notify on new private messages.
|
|
25
|
-
* @param msgHideAnon - Whether to hide sender identity on anonymous messages.
|
|
26
|
-
* @param pwOld - Current password, required only when changing it.
|
|
27
|
-
* @param pwNew - New password, when changing it.
|
|
28
|
-
*/
|
|
29
|
-
set(email, msgNotify, msgHideAnon, pwOld = "", pwNew = "") {
|
|
30
|
-
return new runtime_1.Call(this.client, {
|
|
31
|
-
fn: "legacy.settingsset",
|
|
32
|
-
payload: {
|
|
33
|
-
email: email,
|
|
34
|
-
msgNotify: msgNotify,
|
|
35
|
-
msgHideAnon: msgHideAnon,
|
|
36
|
-
pwOld: pwOld,
|
|
37
|
-
pwNew1: pwNew,
|
|
38
|
-
pwNew2: pwNew,
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
exports.SettingsModule = SettingsModule;
|
|
44
|
-
//# sourceMappingURL=settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/generated/modules/settings.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,cAAe,SAAQ,gBAAM;IACtC;;;;OAIG;IACI,GAAG;QACN,OAAO,IAAI,cAAI,CAAsB,IAAI,CAAC,MAAM,EAAE;YAC9C,EAAE,EAAE,oBAAoB;YACxB,OAAO,EAAE,EAAE;SACd,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;OAUG;IACI,GAAG,CACN,KAAa,EACb,SAAkB,EAClB,WAAoB,EACpB,QAAgB,EAAE,EAClB,QAAgB,EAAE;QAElB,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,oBAAoB;YACxB,OAAO,EAAE;gBACL,KAAK,EAAE,KAAK;gBACZ,SAAS,EAAE,SAAS;gBACpB,WAAW,EAAE,WAAW;gBACxB,KAAK,EAAE,KAAK;gBACZ,MAAM,EAAE,KAAK;gBACb,MAAM,EAAE,KAAK;aAChB;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA3CD,wCA2CC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Call, Module } from "../../runtime";
|
|
2
|
-
import { FerrytellBackground, FerrytellText, StoriesViewListResponse, TCResponse } from "../types";
|
|
3
|
-
export declare class StoriesModule extends Module {
|
|
4
|
-
/**
|
|
5
|
-
* List the stories currently live across the site.
|
|
6
|
-
*
|
|
7
|
-
* @returns The live stories, one per user.
|
|
8
|
-
*/
|
|
9
|
-
viewList(): Call<StoriesViewListResponse>;
|
|
10
|
-
/**
|
|
11
|
-
* Post a new story ("ferry tell") with three lines of text over a background.
|
|
12
|
-
*
|
|
13
|
-
* @param text - The top, middle, and bottom lines and their colors.
|
|
14
|
-
* @param bg - The background: an image or a gradient.
|
|
15
|
-
*/
|
|
16
|
-
create(text: FerrytellText, bg: FerrytellBackground): Call<TCResponse>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../src/generated/modules/stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEnG,qBAAa,aAAc,SAAQ,MAAM;IACrC;;;;OAIG;IACI,QAAQ,IAAI,IAAI,CAAC,uBAAuB,CAAC;IAOhD;;;;;OAKG;IACI,MAAM,CAAC,IAAI,EAAE,aAAa,EAAE,EAAE,EAAE,mBAAmB,GAAG,IAAI,CAAC,UAAU,CAAC;CAShF"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StoriesModule = void 0;
|
|
4
|
-
/* Generated by pecans-spec. Do not edit. */
|
|
5
|
-
const runtime_1 = require("../../runtime");
|
|
6
|
-
class StoriesModule extends runtime_1.Module {
|
|
7
|
-
/**
|
|
8
|
-
* List the stories currently live across the site.
|
|
9
|
-
*
|
|
10
|
-
* @returns The live stories, one per user.
|
|
11
|
-
*/
|
|
12
|
-
viewList() {
|
|
13
|
-
return new runtime_1.Call(this.client, {
|
|
14
|
-
fn: "stories.viewlist",
|
|
15
|
-
payload: {},
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Post a new story ("ferry tell") with three lines of text over a background.
|
|
20
|
-
*
|
|
21
|
-
* @param text - The top, middle, and bottom lines and their colors.
|
|
22
|
-
* @param bg - The background: an image or a gradient.
|
|
23
|
-
*/
|
|
24
|
-
create(text, bg) {
|
|
25
|
-
return new runtime_1.Call(this.client, {
|
|
26
|
-
fn: "ferrytell.create",
|
|
27
|
-
payload: {
|
|
28
|
-
text: text,
|
|
29
|
-
bg: bg,
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.StoriesModule = StoriesModule;
|
|
35
|
-
//# sourceMappingURL=stories.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stories.js","sourceRoot":"","sources":["../../../src/generated/modules/stories.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,2CAA6C;AAG7C,MAAa,aAAc,SAAQ,gBAAM;IACrC;;;;OAIG;IACI,QAAQ;QACX,OAAO,IAAI,cAAI,CAA0B,IAAI,CAAC,MAAM,EAAE;YAClD,EAAE,EAAE,kBAAkB;YACtB,OAAO,EAAE,EAAE;SACd,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,MAAM,CAAC,IAAmB,EAAE,EAAuB;QACtD,OAAO,IAAI,cAAI,CAAa,IAAI,CAAC,MAAM,EAAE;YACrC,EAAE,EAAE,kBAAkB;YACtB,OAAO,EAAE;gBACL,IAAI,EAAE,IAAI;gBACV,EAAE,EAAE,EAAE;aACT;SACJ,CAAC,CAAC;IACP,CAAC;CACJ;AA5BD,sCA4BC"}
|