@mtkruto/node 0.102.0 → 0.102.1

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.
@@ -17,13 +17,15 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- export declare namespace BotTokenCheckResult {
21
- /** The bot token was correct. The bot was signed in. */
22
- interface SignedIn {
23
- type: "signed_in";
24
- userId: number;
25
- }
20
+ /**
21
+ * The bot token was correct. The bot was signed in.
22
+ * @unlisted
23
+ */
24
+ export interface BotTokenCheckResultSignedIn {
25
+ /** @discriminator */
26
+ type: "signed_in";
27
+ userId: number;
26
28
  }
27
29
  /** A result after checking a sent code. */
28
- export type BotTokenCheckResult = BotTokenCheckResult.SignedIn;
30
+ export type BotTokenCheckResult = BotTokenCheckResultSignedIn;
29
31
  //# sourceMappingURL=0_bot_token_check_result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"0_bot_token_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_bot_token_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,wDAAwD;IACxD,UAAiB,QAAQ;QACvB,IAAI,EAAE,WAAW,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,2CAA2C;AAC3C,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"0_bot_token_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_bot_token_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,2CAA2C;AAC3C,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,CAAC"}
@@ -17,16 +17,28 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- /** The code was correct, but an additional password is required to sign in. */
20
+ /**
21
+ * The code was correct, but an additional password is required to sign in.
22
+ * @unlisted
23
+ */
21
24
  export interface CodeCheckResultPasswordRequired {
25
+ /** @discriminator */
22
26
  type: "password_required";
23
27
  }
24
- /** The code entered was incorrect. */
28
+ /**
29
+ * The code entered was incorrect.
30
+ * @unlisted
31
+ */
25
32
  export interface CodeCheckResultInvalidCode {
33
+ /** @discriminator */
26
34
  type: "invalid_code";
27
35
  }
28
- /** The code was correct. The user was signed in. */
36
+ /**
37
+ * The code was correct. The user was signed in.
38
+ * @unlisted
39
+ */
29
40
  export interface CodeCheckResultSignedIn {
41
+ /** @discriminator */
30
42
  type: "signed_in";
31
43
  userId: number;
32
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"0_code_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_code_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,+EAA+E;AAC/E,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,sCAAsC;AACtC,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,oDAAoD;AACpD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,+BAA+B,GAAG,0BAA0B,GAAG,uBAAuB,CAAC"}
1
+ {"version":3,"file":"0_code_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_code_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,qBAAqB;IACrB,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,qBAAqB;IACrB,IAAI,EAAE,cAAc,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,+BAA+B,GAAG,0BAA0B,GAAG,uBAAuB,CAAC"}
@@ -17,17 +17,23 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- export declare namespace PasswordCheckResult {
21
- /** The password entered was incorrect. */
22
- interface InvalidPassword {
23
- type: "invalid_password";
24
- }
25
- /** The password was correct. The user was signed in. */
26
- interface SignedIn {
27
- type: "signed_in";
28
- userId: number;
29
- }
20
+ /**
21
+ * The password entered was incorrect.
22
+ * @unlisted
23
+ */
24
+ export interface PasswordCheckResultInvalidPassword {
25
+ /** @discriminator */
26
+ type: "invalid_password";
27
+ }
28
+ /**
29
+ * The password was correct. The user was signed in.
30
+ * @unlisted
31
+ */
32
+ export interface PasswordCheckResultSignedIn {
33
+ /** @discriminator */
34
+ type: "signed_in";
35
+ userId: number;
30
36
  }
31
37
  /** A result after checking a sent code. */
32
- export type PasswordCheckResult = PasswordCheckResult.InvalidPassword | PasswordCheckResult.SignedIn;
38
+ export type PasswordCheckResult = PasswordCheckResultInvalidPassword | PasswordCheckResultSignedIn;
33
39
  //# sourceMappingURL=0_password_check_result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"0_password_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_password_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,0CAA0C;IAC1C,UAAiB,eAAe;QAC9B,IAAI,EAAE,kBAAkB,CAAC;KAC1B;IAED,wDAAwD;IACxD,UAAiB,QAAQ;QACvB,IAAI,EAAE,WAAW,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,2CAA2C;AAC3C,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,eAAe,GAAG,mBAAmB,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"0_password_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_password_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,qBAAqB;IACrB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,2CAA2C;AAC3C,MAAM,MAAM,mBAAmB,GAAG,kCAAkC,GAAG,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtkruto/node",
3
- "version": "0.102.0",
3
+ "version": "0.102.1",
4
4
  "description": "MTKruto for Node.js",
5
5
  "author": "Roj <rojvv@icloud.com>",
6
6
  "repository": {
@@ -17,13 +17,15 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- export declare namespace BotTokenCheckResult {
21
- /** The bot token was correct. The bot was signed in. */
22
- interface SignedIn {
23
- type: "signed_in";
24
- userId: number;
25
- }
20
+ /**
21
+ * The bot token was correct. The bot was signed in.
22
+ * @unlisted
23
+ */
24
+ export interface BotTokenCheckResultSignedIn {
25
+ /** @discriminator */
26
+ type: "signed_in";
27
+ userId: number;
26
28
  }
27
29
  /** A result after checking a sent code. */
28
- export type BotTokenCheckResult = BotTokenCheckResult.SignedIn;
30
+ export type BotTokenCheckResult = BotTokenCheckResultSignedIn;
29
31
  //# sourceMappingURL=0_bot_token_check_result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"0_bot_token_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_bot_token_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,wDAAwD;IACxD,UAAiB,QAAQ;QACvB,IAAI,EAAE,WAAW,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,2CAA2C;AAC3C,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"0_bot_token_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_bot_token_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,2CAA2C;AAC3C,MAAM,MAAM,mBAAmB,GAAG,2BAA2B,CAAC"}
@@ -17,16 +17,28 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- /** The code was correct, but an additional password is required to sign in. */
20
+ /**
21
+ * The code was correct, but an additional password is required to sign in.
22
+ * @unlisted
23
+ */
21
24
  export interface CodeCheckResultPasswordRequired {
25
+ /** @discriminator */
22
26
  type: "password_required";
23
27
  }
24
- /** The code entered was incorrect. */
28
+ /**
29
+ * The code entered was incorrect.
30
+ * @unlisted
31
+ */
25
32
  export interface CodeCheckResultInvalidCode {
33
+ /** @discriminator */
26
34
  type: "invalid_code";
27
35
  }
28
- /** The code was correct. The user was signed in. */
36
+ /**
37
+ * The code was correct. The user was signed in.
38
+ * @unlisted
39
+ */
29
40
  export interface CodeCheckResultSignedIn {
41
+ /** @discriminator */
30
42
  type: "signed_in";
31
43
  userId: number;
32
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"0_code_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_code_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,+EAA+E;AAC/E,MAAM,WAAW,+BAA+B;IAC9C,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,sCAAsC;AACtC,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,cAAc,CAAC;CACtB;AAED,oDAAoD;AACpD,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,+BAA+B,GAAG,0BAA0B,GAAG,uBAAuB,CAAC"}
1
+ {"version":3,"file":"0_code_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_code_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,+BAA+B;IAC9C,qBAAqB;IACrB,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,qBAAqB;IACrB,IAAI,EAAE,cAAc,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,MAAM,eAAe,GAAG,+BAA+B,GAAG,0BAA0B,GAAG,uBAAuB,CAAC"}
@@ -17,17 +17,23 @@
17
17
  * You should have received a copy of the GNU Lesser General Public License
18
18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19
19
  */
20
- export declare namespace PasswordCheckResult {
21
- /** The password entered was incorrect. */
22
- interface InvalidPassword {
23
- type: "invalid_password";
24
- }
25
- /** The password was correct. The user was signed in. */
26
- interface SignedIn {
27
- type: "signed_in";
28
- userId: number;
29
- }
20
+ /**
21
+ * The password entered was incorrect.
22
+ * @unlisted
23
+ */
24
+ export interface PasswordCheckResultInvalidPassword {
25
+ /** @discriminator */
26
+ type: "invalid_password";
27
+ }
28
+ /**
29
+ * The password was correct. The user was signed in.
30
+ * @unlisted
31
+ */
32
+ export interface PasswordCheckResultSignedIn {
33
+ /** @discriminator */
34
+ type: "signed_in";
35
+ userId: number;
30
36
  }
31
37
  /** A result after checking a sent code. */
32
- export type PasswordCheckResult = PasswordCheckResult.InvalidPassword | PasswordCheckResult.SignedIn;
38
+ export type PasswordCheckResult = PasswordCheckResultInvalidPassword | PasswordCheckResultSignedIn;
33
39
  //# sourceMappingURL=0_password_check_result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"0_password_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_password_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,0CAA0C;IAC1C,UAAiB,eAAe;QAC9B,IAAI,EAAE,kBAAkB,CAAC;KAC1B;IAED,wDAAwD;IACxD,UAAiB,QAAQ;QACvB,IAAI,EAAE,WAAW,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED,2CAA2C;AAC3C,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC,eAAe,GAAG,mBAAmB,CAAC,QAAQ,CAAC"}
1
+ {"version":3,"file":"0_password_check_result.d.ts","sourceRoot":"","sources":["../../src/types/0_password_check_result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH;;;GAGG;AACH,MAAM,WAAW,kCAAkC;IACjD,qBAAqB;IACrB,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,2CAA2C;AAC3C,MAAM,MAAM,mBAAmB,GAAG,kCAAkC,GAAG,2BAA2B,CAAC"}