playit-reversed 0.1.0-beta.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/README.md +15 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.js +14570 -0
- package/dist/client.d.ts +25 -0
- package/dist/codegen.d.ts +9 -0
- package/dist/guard.d.ts +15 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +14724 -0
- package/dist/parsers/agents.d.ts +5 -0
- package/dist/parsers/index.d.ts +1 -0
- package/dist/schemas.d.ts +29 -0
- package/dist/types.d.ts +18 -0
- package/package.json +55 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { parseAgentsHtml } from "./agents";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* API schema definitions for better-fetch
|
|
4
|
+
*/
|
|
5
|
+
export declare const playitSchema: {
|
|
6
|
+
schema: {
|
|
7
|
+
"/account/agents": {
|
|
8
|
+
output: z.ZodString;
|
|
9
|
+
method: "get";
|
|
10
|
+
};
|
|
11
|
+
"/account/agents/:agentId/tunnels": {
|
|
12
|
+
output: z.ZodString;
|
|
13
|
+
method: "get";
|
|
14
|
+
params: z.ZodObject<{
|
|
15
|
+
agentId: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
};
|
|
18
|
+
"/account/tunnels/:agentId": {
|
|
19
|
+
output: z.ZodString;
|
|
20
|
+
method: "get";
|
|
21
|
+
params: z.ZodObject<{
|
|
22
|
+
agentId: z.ZodString;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
config: {
|
|
27
|
+
strict: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface Agent {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
clientIp: string;
|
|
5
|
+
tunnelIp: string;
|
|
6
|
+
version: string;
|
|
7
|
+
os: string;
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Tunnel {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface PlayItOptions {
|
|
14
|
+
/** Your playit.gg session token */
|
|
15
|
+
authorizationToken?: string;
|
|
16
|
+
/** Base URL for the API (default: https://playit.gg) */
|
|
17
|
+
baseUrl?: string;
|
|
18
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "playit-reversed",
|
|
3
|
+
"version": "0.1.0-beta.2",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Cete",
|
|
6
|
+
"email": "tocka@tockanest.ch",
|
|
7
|
+
"url": "https://github.com/tockanest"
|
|
8
|
+
},
|
|
9
|
+
"description": "Type-safe API client for playit.gg",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"module": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"bin": {
|
|
21
|
+
"playit": "./dist/cli.js"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "bun build src/index.ts src/cli.ts --outdir dist --target node && bun run build:types && bun run build:shebang",
|
|
29
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
30
|
+
"build:shebang": "node -e \"const fs=require('fs');const f='dist/cli.js';fs.writeFileSync(f,'#!/usr/bin/env node\\n'+fs.readFileSync(f))\"",
|
|
31
|
+
"prepublishOnly": "bun run build",
|
|
32
|
+
"playit:setup": "bun run src/cli.ts setup",
|
|
33
|
+
"playit:generate": "bun run src/cli.ts generate"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/bun": "latest",
|
|
37
|
+
"@types/node": "^25.0.9"
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"typescript": "^5"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@better-fetch/fetch": "^1.1.21",
|
|
44
|
+
"dotenv": "^17.2.3",
|
|
45
|
+
"zod": "^4.3.5"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"playit",
|
|
49
|
+
"playit.gg",
|
|
50
|
+
"tunnel",
|
|
51
|
+
"api",
|
|
52
|
+
"client"
|
|
53
|
+
],
|
|
54
|
+
"license": "MIT"
|
|
55
|
+
}
|