@teardown/ingest-api 0.0.21-alpha.11 → 0.0.21-alpha.13

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.
@@ -1,59 +1,68 @@
1
1
  import { DevicePlatformEnum } from "../types/generated-consts";
2
- import { z } from "zod";
2
+ import { type Static } from "elysia";
3
3
  export { DevicePlatformEnum };
4
4
  /**
5
5
  * Application info schema
6
6
  */
7
- export declare const ApplicationInfoSchema: z.ZodObject<{
8
- version: z.ZodString;
9
- build_number: z.ZodString;
10
- }, z.core.$strip>;
11
- export type ApplicationInfo = z.infer<typeof ApplicationInfoSchema>;
7
+ export declare const ApplicationInfoSchema: import("@sinclair/typebox").TObject<{
8
+ version: import("@sinclair/typebox").TString;
9
+ build_number: import("@sinclair/typebox").TString;
10
+ }>;
11
+ export type ApplicationInfo = Static<typeof ApplicationInfoSchema>;
12
12
  /**
13
13
  * OS info schema
14
14
  */
15
- export declare const OSInfoSchema: z.ZodObject<{
16
- platform: z.ZodEnum<typeof DevicePlatformEnum>;
17
- name: z.ZodString;
18
- version: z.ZodString;
19
- }, z.core.$strip>;
20
- export type OSInfo = z.infer<typeof OSInfoSchema>;
15
+ export declare const OSInfoSchema: import("@sinclair/typebox").TObject<{
16
+ /**
17
+ * Device platform
18
+ */
19
+ platform: import("@sinclair/typebox").TEnum<typeof DevicePlatformEnum>;
20
+ /**
21
+ * OS name
22
+ */
23
+ name: import("@sinclair/typebox").TString;
24
+ /**
25
+ * OS version
26
+ */
27
+ version: import("@sinclair/typebox").TString;
28
+ }>;
29
+ export type OSInfo = Static<typeof OSInfoSchema>;
21
30
  /**
22
31
  * Hardware info schema
23
32
  */
24
- export declare const HardwareInfoSchema: z.ZodObject<{
25
- device_name: z.ZodString;
26
- device_type: z.ZodString;
27
- device_brand: z.ZodString;
28
- }, z.core.$strip>;
29
- export type HardwareInfo = z.infer<typeof HardwareInfoSchema>;
30
- export declare const EmergencyLaunchSchema: z.ZodUnion<readonly [z.ZodObject<{
31
- is_emergency_launch: z.ZodLiteral<true>;
32
- reason: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- is_emergency_launch: z.ZodLiteral<false>;
35
- reason: z.ZodOptional<z.ZodNever>;
36
- }, z.core.$strip>]>;
37
- export type EmergencyLaunch = z.infer<typeof EmergencyLaunchSchema>;
33
+ export declare const HardwareInfoSchema: import("@sinclair/typebox").TObject<{
34
+ device_name: import("@sinclair/typebox").TString;
35
+ device_type: import("@sinclair/typebox").TString;
36
+ device_brand: import("@sinclair/typebox").TString;
37
+ }>;
38
+ export type HardwareInfo = Static<typeof HardwareInfoSchema>;
39
+ export declare const EmergencyLaunchSchema: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
40
+ is_emergency_launch: import("@sinclair/typebox").TLiteral<true>;
41
+ reason: import("@sinclair/typebox").TString;
42
+ }>, import("@sinclair/typebox").TObject<{
43
+ is_emergency_launch: import("@sinclair/typebox").TLiteral<false>;
44
+ reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
45
+ }>]>;
46
+ export type EmergencyLaunch = Static<typeof EmergencyLaunchSchema>;
38
47
  /**
39
48
  * Update info schema
40
49
  */
41
- export declare const DeviceUpdateInfoSchema: z.ZodObject<{
42
- is_enabled: z.ZodBoolean;
43
- update_id: z.ZodString;
44
- update_channel: z.ZodString;
45
- runtime_version: z.ZodString;
46
- emergency_launch: z.ZodUnion<readonly [z.ZodObject<{
47
- is_emergency_launch: z.ZodLiteral<true>;
48
- reason: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
50
- is_emergency_launch: z.ZodLiteral<false>;
51
- reason: z.ZodOptional<z.ZodNever>;
52
- }, z.core.$strip>]>;
53
- is_embedded_launch: z.ZodBoolean;
54
- created_at: z.ZodCoercedDate<unknown>;
55
- }, z.core.$strip>;
56
- export type DeviceUpdateInfo = z.infer<typeof DeviceUpdateInfoSchema>;
50
+ export declare const DeviceUpdateInfoSchema: import("@sinclair/typebox").TObject<{
51
+ is_enabled: import("@sinclair/typebox").TBoolean;
52
+ update_id: import("@sinclair/typebox").TString;
53
+ update_channel: import("@sinclair/typebox").TString;
54
+ runtime_version: import("@sinclair/typebox").TString;
55
+ emergency_launch: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
56
+ is_emergency_launch: import("@sinclair/typebox").TLiteral<true>;
57
+ reason: import("@sinclair/typebox").TString;
58
+ }>, import("@sinclair/typebox").TObject<{
59
+ is_emergency_launch: import("@sinclair/typebox").TLiteral<false>;
60
+ reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
61
+ }>]>;
62
+ is_embedded_launch: import("@sinclair/typebox").TBoolean;
63
+ created_at: import("@sinclair/typebox").TString;
64
+ }>;
65
+ export type DeviceUpdateInfo = Static<typeof DeviceUpdateInfoSchema>;
57
66
  export declare enum NotificationPlatform {
58
67
  APNS = "APNS",// Apple Push Notification Service
59
68
  FCM = "FCM",// Firebase Cloud Messaging
@@ -62,128 +71,182 @@ export declare enum NotificationPlatform {
62
71
  /**
63
72
  * Push notification info schema
64
73
  */
65
- export declare const PushNotificationInfoSchema: z.ZodObject<{
66
- enabled: z.ZodBoolean;
67
- granted: z.ZodBoolean;
68
- token: z.ZodNullable<z.ZodString>;
69
- platform: z.ZodEnum<typeof NotificationPlatform>;
70
- }, z.core.$strip>;
71
- export type PushNotificationInfo = z.infer<typeof PushNotificationInfoSchema>;
72
- export declare const NotificationsInfoSchema: z.ZodObject<{
73
- push: z.ZodObject<{
74
- enabled: z.ZodBoolean;
75
- granted: z.ZodBoolean;
76
- token: z.ZodNullable<z.ZodString>;
77
- platform: z.ZodEnum<typeof NotificationPlatform>;
78
- }, z.core.$strip>;
79
- }, z.core.$strip>;
80
- export type NotificationsInfo = z.infer<typeof NotificationsInfoSchema>;
74
+ export declare const PushNotificationInfoSchema: import("@sinclair/typebox").TObject<{
75
+ enabled: import("@sinclair/typebox").TBoolean;
76
+ granted: import("@sinclair/typebox").TBoolean;
77
+ token: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
78
+ platform: import("@sinclair/typebox").TEnum<typeof NotificationPlatform>;
79
+ }>;
80
+ export type PushNotificationInfo = Static<typeof PushNotificationInfoSchema>;
81
+ export declare const NotificationsInfoSchema: import("@sinclair/typebox").TObject<{
82
+ push: import("@sinclair/typebox").TObject<{
83
+ enabled: import("@sinclair/typebox").TBoolean;
84
+ granted: import("@sinclair/typebox").TBoolean;
85
+ token: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
86
+ platform: import("@sinclair/typebox").TEnum<typeof NotificationPlatform>;
87
+ }>;
88
+ }>;
89
+ export type NotificationsInfo = Static<typeof NotificationsInfoSchema>;
81
90
  /**
82
91
  * Device info schema
83
92
  */
84
- export declare const DeviceInfoSchema: z.ZodObject<{
85
- timestamp: z.ZodOptional<z.ZodCoercedDate<unknown>>;
86
- application: z.ZodObject<{
87
- version: z.ZodString;
88
- build_number: z.ZodString;
89
- }, z.core.$strip>;
90
- update: z.ZodNullable<z.ZodObject<{
91
- is_enabled: z.ZodBoolean;
92
- update_id: z.ZodString;
93
- update_channel: z.ZodString;
94
- runtime_version: z.ZodString;
95
- emergency_launch: z.ZodUnion<readonly [z.ZodObject<{
96
- is_emergency_launch: z.ZodLiteral<true>;
97
- reason: z.ZodString;
98
- }, z.core.$strip>, z.ZodObject<{
99
- is_emergency_launch: z.ZodLiteral<false>;
100
- reason: z.ZodOptional<z.ZodNever>;
101
- }, z.core.$strip>]>;
102
- is_embedded_launch: z.ZodBoolean;
103
- created_at: z.ZodCoercedDate<unknown>;
104
- }, z.core.$strip>>;
105
- hardware: z.ZodObject<{
106
- device_name: z.ZodString;
107
- device_type: z.ZodString;
108
- device_brand: z.ZodString;
109
- }, z.core.$strip>;
110
- os: z.ZodObject<{
111
- platform: z.ZodEnum<typeof DevicePlatformEnum>;
112
- name: z.ZodString;
113
- version: z.ZodString;
114
- }, z.core.$strip>;
115
- notifications: z.ZodObject<{
116
- push: z.ZodObject<{
117
- enabled: z.ZodBoolean;
118
- granted: z.ZodBoolean;
119
- token: z.ZodNullable<z.ZodString>;
120
- platform: z.ZodEnum<typeof NotificationPlatform>;
121
- }, z.core.$strip>;
122
- }, z.core.$strip>;
123
- }, z.core.$strip>;
124
- export type DeviceInfo = z.infer<typeof DeviceInfoSchema>;
93
+ export declare const DeviceInfoSchema: import("@sinclair/typebox").TObject<{
94
+ /**
95
+ * Timestamp of collection on device (optional, generated server-side if not provided)
96
+ */
97
+ timestamp: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
98
+ /**
99
+ * Application info, required
100
+ */
101
+ application: import("@sinclair/typebox").TObject<{
102
+ version: import("@sinclair/typebox").TString;
103
+ build_number: import("@sinclair/typebox").TString;
104
+ }>;
105
+ /**
106
+ * Update info (optional) - not all builds will have an update
107
+ */
108
+ update: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
109
+ is_enabled: import("@sinclair/typebox").TBoolean;
110
+ update_id: import("@sinclair/typebox").TString;
111
+ update_channel: import("@sinclair/typebox").TString;
112
+ runtime_version: import("@sinclair/typebox").TString;
113
+ emergency_launch: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
114
+ is_emergency_launch: import("@sinclair/typebox").TLiteral<true>;
115
+ reason: import("@sinclair/typebox").TString;
116
+ }>, import("@sinclair/typebox").TObject<{
117
+ is_emergency_launch: import("@sinclair/typebox").TLiteral<false>;
118
+ reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
119
+ }>]>;
120
+ is_embedded_launch: import("@sinclair/typebox").TBoolean;
121
+ created_at: import("@sinclair/typebox").TString;
122
+ }>, import("@sinclair/typebox").TNull]>;
123
+ /**
124
+ * Hardware info, required
125
+ */
126
+ hardware: import("@sinclair/typebox").TObject<{
127
+ device_name: import("@sinclair/typebox").TString;
128
+ device_type: import("@sinclair/typebox").TString;
129
+ device_brand: import("@sinclair/typebox").TString;
130
+ }>;
131
+ /**
132
+ * OS info, required
133
+ */
134
+ os: import("@sinclair/typebox").TObject<{
135
+ /**
136
+ * Device platform
137
+ */
138
+ platform: import("@sinclair/typebox").TEnum<typeof DevicePlatformEnum>;
139
+ /**
140
+ * OS name
141
+ */
142
+ name: import("@sinclair/typebox").TString;
143
+ /**
144
+ * OS version
145
+ */
146
+ version: import("@sinclair/typebox").TString;
147
+ }>;
148
+ /**
149
+ * Notifications info, required
150
+ */
151
+ notifications: import("@sinclair/typebox").TObject<{
152
+ push: import("@sinclair/typebox").TObject<{
153
+ enabled: import("@sinclair/typebox").TBoolean;
154
+ granted: import("@sinclair/typebox").TBoolean;
155
+ token: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
156
+ platform: import("@sinclair/typebox").TEnum<typeof NotificationPlatform>;
157
+ }>;
158
+ }>;
159
+ }>;
160
+ export type DeviceInfo = Static<typeof DeviceInfoSchema>;
125
161
  /**
126
162
  * Persona info schema (optional fields)
127
163
  * Matches personas table structure
128
164
  */
129
- export declare const PersonaInfoSchema: z.ZodObject<{
130
- user_id: z.ZodOptional<z.ZodString>;
131
- email: z.ZodOptional<z.ZodString>;
132
- name: z.ZodOptional<z.ZodString>;
133
- }, z.core.$strip>;
134
- export type PersonaInfo = z.infer<typeof PersonaInfoSchema>;
165
+ export declare const PersonaInfoSchema: import("@sinclair/typebox").TObject<{
166
+ user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
167
+ email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TLiteral<"">, import("@sinclair/typebox").TUndefined]>>, string | undefined>>;
168
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
169
+ }>;
170
+ export type PersonaInfo = Static<typeof PersonaInfoSchema>;
135
171
  /**
136
172
  * Identify request schema
137
173
  * Ties a device to a persona with optional persona data
138
174
  */
139
- export declare const IdentifyRequestSchema: z.ZodObject<{
140
- device: z.ZodObject<{
141
- timestamp: z.ZodOptional<z.ZodCoercedDate<unknown>>;
142
- application: z.ZodObject<{
143
- version: z.ZodString;
144
- build_number: z.ZodString;
145
- }, z.core.$strip>;
146
- update: z.ZodNullable<z.ZodObject<{
147
- is_enabled: z.ZodBoolean;
148
- update_id: z.ZodString;
149
- update_channel: z.ZodString;
150
- runtime_version: z.ZodString;
151
- emergency_launch: z.ZodUnion<readonly [z.ZodObject<{
152
- is_emergency_launch: z.ZodLiteral<true>;
153
- reason: z.ZodString;
154
- }, z.core.$strip>, z.ZodObject<{
155
- is_emergency_launch: z.ZodLiteral<false>;
156
- reason: z.ZodOptional<z.ZodNever>;
157
- }, z.core.$strip>]>;
158
- is_embedded_launch: z.ZodBoolean;
159
- created_at: z.ZodCoercedDate<unknown>;
160
- }, z.core.$strip>>;
161
- hardware: z.ZodObject<{
162
- device_name: z.ZodString;
163
- device_type: z.ZodString;
164
- device_brand: z.ZodString;
165
- }, z.core.$strip>;
166
- os: z.ZodObject<{
167
- platform: z.ZodEnum<typeof DevicePlatformEnum>;
168
- name: z.ZodString;
169
- version: z.ZodString;
170
- }, z.core.$strip>;
171
- notifications: z.ZodObject<{
172
- push: z.ZodObject<{
173
- enabled: z.ZodBoolean;
174
- granted: z.ZodBoolean;
175
- token: z.ZodNullable<z.ZodString>;
176
- platform: z.ZodEnum<typeof NotificationPlatform>;
177
- }, z.core.$strip>;
178
- }, z.core.$strip>;
179
- }, z.core.$strip>;
180
- persona: z.ZodOptional<z.ZodObject<{
181
- user_id: z.ZodOptional<z.ZodString>;
182
- email: z.ZodOptional<z.ZodString>;
183
- name: z.ZodOptional<z.ZodString>;
184
- }, z.core.$strip>>;
185
- }, z.core.$strip>;
186
- export type IdentifyRequest = z.infer<typeof IdentifyRequestSchema>;
175
+ export declare const IdentifyRequestSchema: import("@sinclair/typebox").TObject<{
176
+ device: import("@sinclair/typebox").TObject<{
177
+ /**
178
+ * Timestamp of collection on device (optional, generated server-side if not provided)
179
+ */
180
+ timestamp: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
181
+ /**
182
+ * Application info, required
183
+ */
184
+ application: import("@sinclair/typebox").TObject<{
185
+ version: import("@sinclair/typebox").TString;
186
+ build_number: import("@sinclair/typebox").TString;
187
+ }>;
188
+ /**
189
+ * Update info (optional) - not all builds will have an update
190
+ */
191
+ update: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
192
+ is_enabled: import("@sinclair/typebox").TBoolean;
193
+ update_id: import("@sinclair/typebox").TString;
194
+ update_channel: import("@sinclair/typebox").TString;
195
+ runtime_version: import("@sinclair/typebox").TString;
196
+ emergency_launch: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
197
+ is_emergency_launch: import("@sinclair/typebox").TLiteral<true>;
198
+ reason: import("@sinclair/typebox").TString;
199
+ }>, import("@sinclair/typebox").TObject<{
200
+ is_emergency_launch: import("@sinclair/typebox").TLiteral<false>;
201
+ reason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
202
+ }>]>;
203
+ is_embedded_launch: import("@sinclair/typebox").TBoolean;
204
+ created_at: import("@sinclair/typebox").TString;
205
+ }>, import("@sinclair/typebox").TNull]>;
206
+ /**
207
+ * Hardware info, required
208
+ */
209
+ hardware: import("@sinclair/typebox").TObject<{
210
+ device_name: import("@sinclair/typebox").TString;
211
+ device_type: import("@sinclair/typebox").TString;
212
+ device_brand: import("@sinclair/typebox").TString;
213
+ }>;
214
+ /**
215
+ * OS info, required
216
+ */
217
+ os: import("@sinclair/typebox").TObject<{
218
+ /**
219
+ * Device platform
220
+ */
221
+ platform: import("@sinclair/typebox").TEnum<typeof DevicePlatformEnum>;
222
+ /**
223
+ * OS name
224
+ */
225
+ name: import("@sinclair/typebox").TString;
226
+ /**
227
+ * OS version
228
+ */
229
+ version: import("@sinclair/typebox").TString;
230
+ }>;
231
+ /**
232
+ * Notifications info, required
233
+ */
234
+ notifications: import("@sinclair/typebox").TObject<{
235
+ push: import("@sinclair/typebox").TObject<{
236
+ enabled: import("@sinclair/typebox").TBoolean;
237
+ granted: import("@sinclair/typebox").TBoolean;
238
+ token: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
239
+ platform: import("@sinclair/typebox").TEnum<typeof NotificationPlatform>;
240
+ }>;
241
+ }>;
242
+ }>;
243
+ persona: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
244
+ user_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
245
+ email: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TLiteral<"">, import("@sinclair/typebox").TUndefined]>>, string | undefined>>;
246
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
247
+ }>>;
248
+ }>;
249
+ export type IdentifyRequest = Static<typeof IdentifyRequestSchema>;
187
250
  export declare enum IdentifyVersionStatusEnum {
188
251
  /**
189
252
  * A new version is available
@@ -196,108 +259,119 @@ export declare enum IdentifyVersionStatusEnum {
196
259
  /**
197
260
  * The current version is valid & up to date
198
261
  */
199
- UP_TO_DATE = "UP_TO_DATE"
262
+ UP_TO_DATE = "UP_TO_DATE",
263
+ /**
264
+ * The version or build has been disabled
265
+ */
266
+ DISABLED = "DISABLED"
200
267
  }
201
- export declare const UpdateInfoSchema: z.ZodObject<{
202
- version: z.ZodString;
203
- build: z.ZodString;
204
- update_id: z.ZodString;
205
- effective_date: z.ZodCoercedDate<unknown>;
206
- }, z.core.$strip>;
207
- export type UpdateAvailableInfo = z.infer<typeof UpdateAvailableInfoSchema>;
208
- export declare const UpToDateInfoSchema: z.ZodObject<{
209
- status: z.ZodLiteral<IdentifyVersionStatusEnum.UP_TO_DATE>;
210
- update: z.ZodNull;
211
- }, z.core.$strip>;
212
- export type UpToDateInfo = z.infer<typeof UpToDateInfoSchema>;
213
- export declare const UpdateRequiredInfoSchema: z.ZodObject<{
214
- status: z.ZodLiteral<IdentifyVersionStatusEnum.UPDATE_REQUIRED>;
215
- update: z.ZodObject<{
216
- version: z.ZodString;
217
- build: z.ZodString;
218
- update_id: z.ZodString;
219
- effective_date: z.ZodCoercedDate<unknown>;
220
- }, z.core.$strip>;
221
- }, z.core.$strip>;
222
- export type UpdateRequiredInfo = z.infer<typeof UpdateRequiredInfoSchema>;
223
- export declare const UpdateAvailableInfoSchema: z.ZodObject<{
224
- status: z.ZodLiteral<IdentifyVersionStatusEnum.UPDATE_AVAILABLE>;
225
- update: z.ZodObject<{
226
- version: z.ZodString;
227
- build: z.ZodString;
228
- update_id: z.ZodString;
229
- effective_date: z.ZodCoercedDate<unknown>;
230
- }, z.core.$strip>;
231
- }, z.core.$strip>;
232
- export declare const VersionInfoSchema: z.ZodObject<{
233
- status: z.ZodEnum<typeof IdentifyVersionStatusEnum>;
234
- update: z.ZodOptional<z.ZodNullable<z.ZodObject<{
235
- status: z.ZodLiteral<IdentifyVersionStatusEnum.UPDATE_AVAILABLE>;
236
- update: z.ZodObject<{
237
- version: z.ZodString;
238
- build: z.ZodString;
239
- update_id: z.ZodString;
240
- effective_date: z.ZodCoercedDate<unknown>;
241
- }, z.core.$strip>;
242
- }, z.core.$strip>>>;
243
- }, z.core.$strip>;
244
- export type VersionInfo = z.infer<typeof VersionInfoSchema>;
268
+ export declare const UpdateInfoSchema: import("@sinclair/typebox").TObject<{
269
+ version: import("@sinclair/typebox").TString;
270
+ build: import("@sinclair/typebox").TString;
271
+ update_id: import("@sinclair/typebox").TString;
272
+ effective_date: import("@sinclair/typebox").TDate;
273
+ }>;
274
+ export type UpdateInfo = Static<typeof UpdateInfoSchema>;
275
+ export declare const UpToDateInfoSchema: import("@sinclair/typebox").TObject<{
276
+ status: import("@sinclair/typebox").TLiteral<IdentifyVersionStatusEnum.UP_TO_DATE>;
277
+ update: import("@sinclair/typebox").TNull;
278
+ }>;
279
+ export type UpToDateInfo = Static<typeof UpToDateInfoSchema>;
280
+ export declare const UpdateRequiredInfoSchema: import("@sinclair/typebox").TObject<{
281
+ status: import("@sinclair/typebox").TLiteral<IdentifyVersionStatusEnum.UPDATE_REQUIRED>;
282
+ update: import("@sinclair/typebox").TObject<{
283
+ version: import("@sinclair/typebox").TString;
284
+ build: import("@sinclair/typebox").TString;
285
+ update_id: import("@sinclair/typebox").TString;
286
+ effective_date: import("@sinclair/typebox").TDate;
287
+ }>;
288
+ }>;
289
+ export type UpdateRequiredInfo = Static<typeof UpdateRequiredInfoSchema>;
290
+ export declare const UpdateAvailableInfoSchema: import("@sinclair/typebox").TObject<{
291
+ status: import("@sinclair/typebox").TLiteral<IdentifyVersionStatusEnum.UPDATE_AVAILABLE>;
292
+ update: import("@sinclair/typebox").TObject<{
293
+ version: import("@sinclair/typebox").TString;
294
+ build: import("@sinclair/typebox").TString;
295
+ update_id: import("@sinclair/typebox").TString;
296
+ effective_date: import("@sinclair/typebox").TDate;
297
+ }>;
298
+ }>;
299
+ export type UpdateAvailableInfo = Static<typeof UpdateAvailableInfoSchema>;
300
+ export declare const VersionInfoSchema: import("@sinclair/typebox").TObject<{
301
+ /**
302
+ * The status of the version
303
+ */
304
+ status: import("@sinclair/typebox").TEnum<typeof IdentifyVersionStatusEnum>;
305
+ update: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
306
+ status: import("@sinclair/typebox").TLiteral<IdentifyVersionStatusEnum.UPDATE_AVAILABLE>;
307
+ update: import("@sinclair/typebox").TObject<{
308
+ version: import("@sinclair/typebox").TString;
309
+ build: import("@sinclair/typebox").TString;
310
+ update_id: import("@sinclair/typebox").TString;
311
+ effective_date: import("@sinclair/typebox").TDate;
312
+ }>;
313
+ }>, import("@sinclair/typebox").TNull]>>;
314
+ }>;
315
+ export type VersionInfo = Static<typeof VersionInfoSchema>;
245
316
  /**
246
317
  * Identify response schema
247
318
  */
248
- export declare const IdentifyResponseSchema: z.ZodObject<{
249
- success: z.ZodLiteral<true>;
250
- data: z.ZodObject<{
251
- session_id: z.ZodString;
252
- device_id: z.ZodString;
253
- persona_id: z.ZodString;
254
- token: z.ZodString;
255
- version_info: z.ZodObject<{
256
- status: z.ZodEnum<typeof IdentifyVersionStatusEnum>;
257
- update: z.ZodOptional<z.ZodNullable<z.ZodObject<{
258
- status: z.ZodLiteral<IdentifyVersionStatusEnum.UPDATE_AVAILABLE>;
259
- update: z.ZodObject<{
260
- version: z.ZodString;
261
- build: z.ZodString;
262
- update_id: z.ZodString;
263
- effective_date: z.ZodCoercedDate<unknown>;
264
- }, z.core.$strip>;
265
- }, z.core.$strip>>>;
266
- }, z.core.$strip>;
267
- }, z.core.$strip>;
268
- }, z.core.$strip>;
269
- export type IdentifyResponse = z.infer<typeof IdentifyResponseSchema>;
270
- export declare const IdentifyErrorResponseSchema: z.ZodObject<{
271
- success: z.ZodLiteral<false>;
272
- error: z.ZodDiscriminatedUnion<[z.ZodObject<{
273
- code: z.ZodLiteral<"MISSING_ORG_ID">;
274
- message: z.ZodString;
275
- }, z.core.$strip>, z.ZodObject<{
276
- code: z.ZodLiteral<"MISSING_PROJECT_ID">;
277
- message: z.ZodString;
278
- }, z.core.$strip>, z.ZodObject<{
279
- code: z.ZodLiteral<"MISSING_ENVIRONMENT_SLUG">;
280
- message: z.ZodString;
281
- }, z.core.$strip>, z.ZodObject<{
282
- code: z.ZodLiteral<"MISSING_DEVICE_ID">;
283
- message: z.ZodString;
284
- }, z.core.$strip>, z.ZodObject<{
285
- code: z.ZodLiteral<"IDENTIFY_FAILED">;
286
- message: z.ZodString;
287
- }, z.core.$strip>, z.ZodObject<{
288
- code: z.ZodLiteral<"NO_SESSION_ID_GENERATED">;
289
- message: z.ZodString;
290
- }, z.core.$strip>, z.ZodObject<{
291
- code: z.ZodLiteral<"NO_DEVICE_ID_GENERATED">;
292
- message: z.ZodString;
293
- }, z.core.$strip>, z.ZodObject<{
294
- code: z.ZodLiteral<"NO_PERSONA_ID_GENERATED">;
295
- message: z.ZodString;
296
- }, z.core.$strip>], "code">;
297
- }, z.core.$strip>;
298
- export type IdentifyErrorResponse = z.infer<typeof IdentifyErrorResponseSchema>;
299
- export declare const ValidationErrorSchema: z.ZodObject<{
300
- success: z.ZodLiteral<false>;
301
- error: z.ZodLiteral<"VALIDATION">;
302
- message: z.ZodString;
303
- }, z.core.$strip>;
319
+ export declare const IdentifyResponseSchema: import("@sinclair/typebox").TObject<{
320
+ success: import("@sinclair/typebox").TLiteral<true>;
321
+ data: import("@sinclair/typebox").TObject<{
322
+ session_id: import("@sinclair/typebox").TString;
323
+ device_id: import("@sinclair/typebox").TString;
324
+ persona_id: import("@sinclair/typebox").TString;
325
+ token: import("@sinclair/typebox").TString;
326
+ version_info: import("@sinclair/typebox").TObject<{
327
+ /**
328
+ * The status of the version
329
+ */
330
+ status: import("@sinclair/typebox").TEnum<typeof IdentifyVersionStatusEnum>;
331
+ update: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
332
+ status: import("@sinclair/typebox").TLiteral<IdentifyVersionStatusEnum.UPDATE_AVAILABLE>;
333
+ update: import("@sinclair/typebox").TObject<{
334
+ version: import("@sinclair/typebox").TString;
335
+ build: import("@sinclair/typebox").TString;
336
+ update_id: import("@sinclair/typebox").TString;
337
+ effective_date: import("@sinclair/typebox").TDate;
338
+ }>;
339
+ }>, import("@sinclair/typebox").TNull]>>;
340
+ }>;
341
+ }>;
342
+ }>;
343
+ export type IdentifyResponse = Static<typeof IdentifyResponseSchema>;
344
+ export declare const IdentifyErrorResponseSchema: import("@sinclair/typebox").TObject<{
345
+ success: import("@sinclair/typebox").TLiteral<false>;
346
+ error: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
347
+ code: import("@sinclair/typebox").TLiteral<"MISSING_ORG_ID">;
348
+ message: import("@sinclair/typebox").TString;
349
+ }>, import("@sinclair/typebox").TObject<{
350
+ code: import("@sinclair/typebox").TLiteral<"MISSING_PROJECT_ID">;
351
+ message: import("@sinclair/typebox").TString;
352
+ }>, import("@sinclair/typebox").TObject<{
353
+ code: import("@sinclair/typebox").TLiteral<"MISSING_ENVIRONMENT_SLUG">;
354
+ message: import("@sinclair/typebox").TString;
355
+ }>, import("@sinclair/typebox").TObject<{
356
+ code: import("@sinclair/typebox").TLiteral<"MISSING_DEVICE_ID">;
357
+ message: import("@sinclair/typebox").TString;
358
+ }>, import("@sinclair/typebox").TObject<{
359
+ code: import("@sinclair/typebox").TLiteral<"IDENTIFY_FAILED">;
360
+ message: import("@sinclair/typebox").TString;
361
+ }>, import("@sinclair/typebox").TObject<{
362
+ code: import("@sinclair/typebox").TLiteral<"NO_SESSION_ID_GENERATED">;
363
+ message: import("@sinclair/typebox").TString;
364
+ }>, import("@sinclair/typebox").TObject<{
365
+ code: import("@sinclair/typebox").TLiteral<"NO_DEVICE_ID_GENERATED">;
366
+ message: import("@sinclair/typebox").TString;
367
+ }>, import("@sinclair/typebox").TObject<{
368
+ code: import("@sinclair/typebox").TLiteral<"NO_PERSONA_ID_GENERATED">;
369
+ message: import("@sinclair/typebox").TString;
370
+ }>]>;
371
+ }>;
372
+ export type IdentifyErrorResponse = Static<typeof IdentifyErrorResponseSchema>;
373
+ export declare const ValidationErrorSchema: import("@sinclair/typebox").TObject<{
374
+ success: import("@sinclair/typebox").TLiteral<false>;
375
+ error: import("@sinclair/typebox").TLiteral<"VALIDATION">;
376
+ message: import("@sinclair/typebox").TString;
377
+ }>;