@teardown/ingest-api 0.1.44 → 0.1.45

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.
Files changed (2) hide show
  1. package/generated/app.d.ts +22 -28
  2. package/package.json +8 -5
@@ -1,6 +1,5 @@
1
- import type { Elysia } from "elysia";
2
- import type z from "zod";
3
-
1
+ import { Elysia } from "elysia";
2
+ import z from "zod";
4
3
  export declare const baseApp: Elysia<"", {
5
4
  decorator: {};
6
5
  store: {};
@@ -71,6 +70,8 @@ export declare const baseApp: Elysia<"", {
71
70
  200: import("@teardown/errors").ErrorResponse | {
72
71
  status: string;
73
72
  timestamp: string;
73
+ build_id: string;
74
+ service_id: string | undefined;
74
75
  };
75
76
  };
76
77
  };
@@ -82,13 +83,27 @@ export declare const baseApp: Elysia<"", {
82
83
  identify: {
83
84
  post: {
84
85
  body: {
85
- persona?: {
86
+ user?: {
86
87
  name?: string | undefined;
87
88
  email?: string | undefined;
88
89
  user_id?: string | undefined;
89
90
  } | undefined;
90
91
  device: {
91
92
  timestamp?: Date | undefined;
93
+ os: {
94
+ name: string;
95
+ version: string;
96
+ platform: import("@teardown/types").DevicePlatformEnum;
97
+ };
98
+ application: {
99
+ build_number: number;
100
+ version: string;
101
+ };
102
+ hardware: {
103
+ device_brand: string;
104
+ device_name: string;
105
+ device_type: string;
106
+ };
92
107
  update: {
93
108
  created_at: string;
94
109
  is_embedded_launch: boolean;
@@ -104,28 +119,6 @@ export declare const baseApp: Elysia<"", {
104
119
  is_emergency_launch: false;
105
120
  };
106
121
  } | null;
107
- application: {
108
- build_number: number;
109
- version: string;
110
- };
111
- hardware: {
112
- device_brand: string;
113
- device_name: string;
114
- device_type: string;
115
- };
116
- os: {
117
- name: string;
118
- version: string;
119
- platform: import("@teardown/types").DevicePlatformEnum;
120
- };
121
- notifications: {
122
- push: {
123
- token: string | null;
124
- platform: import("@teardown/schemas").NotificationPlatformEnum;
125
- enabled: boolean;
126
- granted: boolean;
127
- };
128
- };
129
122
  };
130
123
  };
131
124
  params: {};
@@ -143,7 +136,7 @@ export declare const baseApp: Elysia<"", {
143
136
  success: true;
144
137
  data: {
145
138
  device_id: string;
146
- persona_id: string;
139
+ user_id: string;
147
140
  session_id: string;
148
141
  token: string;
149
142
  version_info: {
@@ -193,7 +186,7 @@ export declare const baseApp: Elysia<"", {
193
186
  code: "NO_DEVICE_ID_GENERATED";
194
187
  } | {
195
188
  message: string;
196
- code: "NO_PERSONA_ID_GENERATED";
189
+ code: "NO_USER_ID_GENERATED";
197
190
  };
198
191
  };
199
192
  422: {
@@ -321,3 +314,4 @@ export declare const baseApp: Elysia<"", {
321
314
  }>;
322
315
  export declare const IngestApp: typeof baseApp;
323
316
  export type IngestApp = typeof baseApp;
317
+ //# sourceMappingURL=app.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teardown/ingest-api",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,15 +30,18 @@
30
30
  "scripts": {
31
31
  "dev": "bun run typecheck --watch",
32
32
  "typecheck": "tsc --noEmit --project ./tsconfig.lib.json",
33
+ "generate:types": "bun run scripts/generate-types.ts",
34
+ "build": "bun run generate:types",
35
+ "prepublishOnly": "bun run generate:types",
33
36
  "lint": "bun x biome lint .",
34
37
  "fmt": "bun x biome format --write .",
35
38
  "check": "bun x biome check ."
36
39
  },
37
40
  "dependencies": {
38
41
  "@elysiajs/eden": "1.4.5",
39
- "@teardown/errors": "0.1.44",
40
- "@teardown/schemas": "0.1.44",
41
- "@teardown/types": "0.1.44",
42
+ "@teardown/errors": "0.1.45",
43
+ "@teardown/schemas": "0.1.45",
44
+ "@teardown/types": "0.1.45",
42
45
  "zod": "4.1.13"
43
46
  },
44
47
  "peerDependencies": {
@@ -47,7 +50,7 @@
47
50
  "devDependencies": {
48
51
  "@biomejs/biome": "2.3.8",
49
52
  "@types/bun": "1.3.4",
50
- "@teardown/tsconfig": "0.1.44",
53
+ "@teardown/tsconfig": "0.1.45",
51
54
  "elysia": "1.4.17"
52
55
  }
53
56
  }