@zdn3517/act-api 0.1.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.
@@ -0,0 +1 @@
1
+ export * from './types.gen';
@@ -0,0 +1,18 @@
1
+ export type AuthRequest = {
2
+ /**
3
+ * Raw Telegram WebApp initData string.
4
+ */
5
+ init_data: string;
6
+ };
7
+ export type AuthResponse = {
8
+ token: string;
9
+ };
10
+ export type ErrorResponse = {
11
+ error: string;
12
+ };
13
+ export type HealthResponse = {
14
+ status: string;
15
+ };
16
+ export type PingResponse = {
17
+ message: string;
18
+ };
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@zdn3517/act-api",
3
+ "version": "0.1.1",
4
+ "main": "build/index.js",
5
+ "types": "build/index.d.ts",
6
+ "scripts": {
7
+ "prepublishOnly": "rm -rf build && tsc",
8
+ "build": "tsc -p tsconfig.json",
9
+ "gen": "openapi-ts",
10
+ "gen:zod": "npm run gen"
11
+ },
12
+ "author": "",
13
+ "license": "ISC",
14
+ "description": "",
15
+ "files": [
16
+ "build"
17
+ ],
18
+ "devDependencies": {
19
+ "@hey-api/openapi-ts": "^0.60.0",
20
+ "typescript": "^5.9.2"
21
+ },
22
+ "dependencies": {
23
+ "zod": "^4.3.4"
24
+ }
25
+ }