diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-05 22:01:01 +0100 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-02-05 22:01:01 +0100 |
commit | ea41892fef208b10c1bb322de7683c39ebab3dd5 (patch) | |
tree | f26559c73196591ac0338a21908a25c806276a7a /dist/Schema | |
parent | Move Models/Schemas to server-util (diff) | |
download | server-ea41892fef208b10c1bb322de7683c39ebab3dd5.tar.xz |
:wrench: build
Diffstat (limited to 'dist/Schema')
-rw-r--r-- | dist/Schema/Activity.d.ts | 40 | ||||
-rw-r--r-- | dist/Schema/Activity.js | 44 | ||||
-rw-r--r-- | dist/Schema/Activity.js.map | 1 | ||||
-rw-r--r-- | dist/Schema/Emoji.d.ts | 5 | ||||
-rw-r--r-- | dist/Schema/Emoji.js | 9 | ||||
-rw-r--r-- | dist/Schema/Emoji.js.map | 1 | ||||
-rw-r--r-- | dist/Schema/Identify.d.ts | 53 | ||||
-rw-r--r-- | dist/Schema/Identify.js | 20 | ||||
-rw-r--r-- | dist/Schema/Identify.js.map | 1 |
9 files changed, 174 insertions, 0 deletions
diff --git a/dist/Schema/Activity.d.ts b/dist/Schema/Activity.d.ts new file mode 100644 index 00000000..420471a8 --- /dev/null +++ b/dist/Schema/Activity.d.ts @@ -0,0 +1,40 @@ +export declare const ActivitySchema: { + afk: BooleanConstructor; + status: StringConstructor; + $activities: { + name: StringConstructor; + type: NumberConstructor; + $url: StringConstructor; + $created_at: NumberConstructor; + $timestamps: { + start: NumberConstructor; + end: NumberConstructor; + }; + $application_id: BigIntConstructor; + $details: StringConstructor; + $State: StringConstructor; + $emoji: { + name: StringConstructor; + id: BigIntConstructor; + animated: BooleanConstructor; + }; + $party: { + $id: StringConstructor; + $size: NumberConstructor[]; + }; + $assets: { + $large_image: StringConstructor; + $large_text: StringConstructor; + $small_image: StringConstructor; + $small_text: StringConstructor; + }; + $secrets: { + $join: StringConstructor; + $spectate: StringConstructor; + $match: StringConstructor; + }; + $instance: BooleanConstructor; + flags: BigIntConstructor; + }[]; + $since: NumberConstructor; +}; diff --git a/dist/Schema/Activity.js b/dist/Schema/Activity.js new file mode 100644 index 00000000..cbca224c --- /dev/null +++ b/dist/Schema/Activity.js @@ -0,0 +1,44 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActivitySchema = void 0; +const Emoji_1 = require("./Emoji"); +exports.ActivitySchema = { + afk: Boolean, + status: String, + $activities: [ + { + name: String, + type: Number, + $url: String, + $created_at: Number, + $timestamps: { + // unix timestamps for start and/or end of the game + start: Number, + end: Number, + }, + $application_id: BigInt, + $details: String, + $State: String, + $emoji: Emoji_1.EmojiSchema, + $party: { + $id: String, + $size: [Number], + }, + $assets: { + $large_image: String, + $large_text: String, + $small_image: String, + $small_text: String, + }, + $secrets: { + $join: String, + $spectate: String, + $match: String, + }, + $instance: Boolean, + flags: BigInt, + }, + ], + $since: Number, +}; +//# sourceMappingURL=Activity.js.map \ No newline at end of file diff --git a/dist/Schema/Activity.js.map b/dist/Schema/Activity.js.map new file mode 100644 index 00000000..587f92a8 --- /dev/null +++ b/dist/Schema/Activity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Activity.js","sourceRoot":"","sources":["../../src/Schema/Activity.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAEzB,QAAA,cAAc,GAAG;IAC7B,GAAG,EAAE,OAAO;IACZ,MAAM,EAAE,MAAM;IACd,WAAW,EAAE;QACZ;YACC,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE;gBACZ,mDAAmD;gBACnD,KAAK,EAAE,MAAM;gBACb,GAAG,EAAE,MAAM;aACX;YACD,eAAe,EAAE,MAAM;YACvB,QAAQ,EAAE,MAAM;YAChB,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,mBAAW;YACnB,MAAM,EAAE;gBACP,GAAG,EAAE,MAAM;gBACX,KAAK,EAAE,CAAC,MAAM,CAAC;aACf;YACD,OAAO,EAAE;gBACR,YAAY,EAAE,MAAM;gBACpB,WAAW,EAAE,MAAM;gBACnB,YAAY,EAAE,MAAM;gBACpB,WAAW,EAAE,MAAM;aACnB;YACD,QAAQ,EAAE;gBACT,KAAK,EAAE,MAAM;gBACb,SAAS,EAAE,MAAM;gBACjB,MAAM,EAAE,MAAM;aACd;YACD,SAAS,EAAE,OAAO;YAClB,KAAK,EAAE,MAAM;SACb;KACD;IACD,MAAM,EAAE,MAAM;CACd,CAAC"} \ No newline at end of file diff --git a/dist/Schema/Emoji.d.ts b/dist/Schema/Emoji.d.ts new file mode 100644 index 00000000..81570e17 --- /dev/null +++ b/dist/Schema/Emoji.d.ts @@ -0,0 +1,5 @@ +export declare const EmojiSchema: { + name: StringConstructor; + id: BigIntConstructor; + animated: BooleanConstructor; +}; diff --git a/dist/Schema/Emoji.js b/dist/Schema/Emoji.js new file mode 100644 index 00000000..fe999d4e --- /dev/null +++ b/dist/Schema/Emoji.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EmojiSchema = void 0; +exports.EmojiSchema = { + name: String, + id: BigInt, + animated: Boolean, +}; +//# sourceMappingURL=Emoji.js.map \ No newline at end of file diff --git a/dist/Schema/Emoji.js.map b/dist/Schema/Emoji.js.map new file mode 100644 index 00000000..0d776e6d --- /dev/null +++ b/dist/Schema/Emoji.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Emoji.js","sourceRoot":"","sources":["../../src/Schema/Emoji.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG;IAC1B,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,MAAM;IACV,QAAQ,EAAE,OAAO;CACjB,CAAC"} \ No newline at end of file diff --git a/dist/Schema/Identify.d.ts b/dist/Schema/Identify.d.ts new file mode 100644 index 00000000..be586093 --- /dev/null +++ b/dist/Schema/Identify.d.ts @@ -0,0 +1,53 @@ +export declare const IdentifySchema: { + token: StringConstructor; + properties: { + $$os: StringConstructor; + $$browser: StringConstructor; + $$device: StringConstructor; + }; + intents: BigIntConstructor; + $presence: { + afk: BooleanConstructor; + status: StringConstructor; + $activities: { + name: StringConstructor; + type: NumberConstructor; + $url: StringConstructor; + $created_at: NumberConstructor; + $timestamps: { + start: NumberConstructor; + end: NumberConstructor; + }; + $application_id: BigIntConstructor; + $details: StringConstructor; + $State: StringConstructor; + $emoji: { + name: StringConstructor; + id: BigIntConstructor; + animated: BooleanConstructor; + }; + $party: { + $id: StringConstructor; + $size: NumberConstructor[]; + }; + $assets: { + $large_image: StringConstructor; + $large_text: StringConstructor; + $small_image: StringConstructor; + $small_text: StringConstructor; + }; + $secrets: { + $join: StringConstructor; + $spectate: StringConstructor; + $match: StringConstructor; + }; + $instance: BooleanConstructor; + flags: BigIntConstructor; + }[]; + $since: NumberConstructor; + }; + $compress: BooleanConstructor; + $large_threshold: NumberConstructor; + $shard: NumberConstructor[]; + $guild_subscriptions: BooleanConstructor; +}; diff --git a/dist/Schema/Identify.js b/dist/Schema/Identify.js new file mode 100644 index 00000000..9686a4d0 --- /dev/null +++ b/dist/Schema/Identify.js @@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IdentifySchema = void 0; +const Activity_1 = require("./Activity"); +exports.IdentifySchema = { + token: String, + properties: { + // bruh discord really uses $ in the property key, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key + $$os: String, + $$browser: String, + $$device: String, + }, + intents: BigInt, + $presence: Activity_1.ActivitySchema, + $compress: Boolean, + $large_threshold: Number, + $shard: [Number], + $guild_subscriptions: Boolean, +}; +//# sourceMappingURL=Identify.js.map \ No newline at end of file diff --git a/dist/Schema/Identify.js.map b/dist/Schema/Identify.js.map new file mode 100644 index 00000000..0feb6baa --- /dev/null +++ b/dist/Schema/Identify.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Identify.js","sourceRoot":"","sources":["../../src/Schema/Identify.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE/B,QAAA,cAAc,GAAG;IAC7B,KAAK,EAAE,MAAM;IACb,UAAU,EAAE;QACX,yIAAyI;QACzI,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,MAAM;KAChB;IACD,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,yBAAc;IACzB,SAAS,EAAE,OAAO;IAClB,gBAAgB,EAAE,MAAM;IACxB,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,oBAAoB,EAAE,OAAO;CAC7B,CAAC"} \ No newline at end of file |