@omniplex/api-types 0.1.0 → 0.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/LICENSE +21 -21
- package/README.md +1 -1
- package/dist/index.d.ts +13 -1
- package/package.json +10 -2
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 NodeByte LTD
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 NodeByte LTD
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -12,4 +12,4 @@ import type { Bot, UserVote } from "@omniplex/api-types";
|
|
|
12
12
|
|
|
13
13
|
This package only contains types. If you want a client that calls the API for you, use [`@omniplex/sdk`](https://www.npmjs.com/package/@omniplex/sdk), which depends on this package.
|
|
14
14
|
|
|
15
|
-
The types follow Popplio's Go structs. If a field here disagrees with what the API returns, the API is right, so please [open an issue](https://github.com/PlexiOSS/
|
|
15
|
+
The types follow Popplio's Go structs. If a field here disagrees with what the API returns, the API is right, so please [open an issue](https://github.com/PlexiOSS/Omniplex/issues).
|
package/dist/index.d.ts
CHANGED
|
@@ -605,8 +605,19 @@ export interface User {
|
|
|
605
605
|
pinned_target_id?: string | null;
|
|
606
606
|
}
|
|
607
607
|
export interface Vote {
|
|
608
|
-
|
|
608
|
+
itag: string | null;
|
|
609
|
+
target_type: string;
|
|
610
|
+
target_id: string;
|
|
611
|
+
author: string;
|
|
612
|
+
upvote: boolean;
|
|
613
|
+
void: boolean;
|
|
614
|
+
void_reason: string | null;
|
|
615
|
+
voided_at: string | null;
|
|
609
616
|
created_at: string;
|
|
617
|
+
vote_num: number;
|
|
618
|
+
credit_redeem: string | null;
|
|
619
|
+
immutable: boolean;
|
|
620
|
+
auto: boolean;
|
|
610
621
|
}
|
|
611
622
|
export interface UserVote {
|
|
612
623
|
has_voted: boolean;
|
|
@@ -1330,6 +1341,7 @@ export type ChangelogProject = "popplio" | "omniplex" | "keel";
|
|
|
1330
1341
|
export interface ChangelogEntry {
|
|
1331
1342
|
itag: string;
|
|
1332
1343
|
project: ChangelogProject;
|
|
1344
|
+
package?: string | null;
|
|
1333
1345
|
version: string;
|
|
1334
1346
|
added: string[];
|
|
1335
1347
|
updated: string[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniplex/api-types",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "TypeScript types for the Omniplex API (Popplio).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,12 +15,20 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"sideEffects": false,
|
|
18
|
+
"keywords": [
|
|
19
|
+
"omniplex",
|
|
20
|
+
"discord",
|
|
21
|
+
"discord-bot",
|
|
22
|
+
"bot-list",
|
|
23
|
+
"types"
|
|
24
|
+
],
|
|
18
25
|
"repository": {
|
|
19
26
|
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/PlexiOSS/
|
|
27
|
+
"url": "git+https://github.com/PlexiOSS/Omniplex.git",
|
|
21
28
|
"directory": "packages/api-types"
|
|
22
29
|
},
|
|
23
30
|
"homepage": "https://omniplex.gg",
|
|
31
|
+
"bugs": "https://github.com/PlexiOSS/Omniplex/issues",
|
|
24
32
|
"publishConfig": {
|
|
25
33
|
"access": "public"
|
|
26
34
|
},
|