@teardown/ingest-api 0.0.21-alpha.12 → 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.
- package/dist/client/client.d.ts +44 -44
- package/dist/vendored/common/primitives.d.ts +11 -0
- package/dist/vendored/common/primitives.js +9 -0
- package/dist/vendored/schemas/identify.d.ts +328 -254
- package/dist/vendored/schemas/identify.js +103 -142
- package/dist/vendored/types/generated-consts.d.ts +17 -3
- package/dist/vendored/types/generated-consts.js +21 -5
- package/package.json +3 -2
|
@@ -1,59 +1,68 @@
|
|
|
1
1
|
import { DevicePlatformEnum } from "../types/generated-consts";
|
|
2
|
-
import {
|
|
2
|
+
import { type Static } from "elysia";
|
|
3
3
|
export { DevicePlatformEnum };
|
|
4
4
|
/**
|
|
5
5
|
* Application info schema
|
|
6
6
|
*/
|
|
7
|
-
export declare const ApplicationInfoSchema:
|
|
8
|
-
version:
|
|
9
|
-
build_number:
|
|
10
|
-
}
|
|
11
|
-
export type ApplicationInfo =
|
|
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:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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:
|
|
25
|
-
device_name:
|
|
26
|
-
device_type:
|
|
27
|
-
device_brand:
|
|
28
|
-
}
|
|
29
|
-
export type HardwareInfo =
|
|
30
|
-
export declare const EmergencyLaunchSchema:
|
|
31
|
-
is_emergency_launch:
|
|
32
|
-
reason:
|
|
33
|
-
}
|
|
34
|
-
is_emergency_launch:
|
|
35
|
-
reason:
|
|
36
|
-
}
|
|
37
|
-
export type EmergencyLaunch =
|
|
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:
|
|
42
|
-
is_enabled:
|
|
43
|
-
update_id:
|
|
44
|
-
update_channel:
|
|
45
|
-
runtime_version:
|
|
46
|
-
emergency_launch:
|
|
47
|
-
is_emergency_launch:
|
|
48
|
-
reason:
|
|
49
|
-
}
|
|
50
|
-
is_emergency_launch:
|
|
51
|
-
reason:
|
|
52
|
-
}
|
|
53
|
-
is_embedded_launch:
|
|
54
|
-
created_at:
|
|
55
|
-
}
|
|
56
|
-
export type DeviceUpdateInfo =
|
|
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:
|
|
66
|
-
enabled:
|
|
67
|
-
granted:
|
|
68
|
-
token:
|
|
69
|
-
platform:
|
|
70
|
-
}
|
|
71
|
-
export type PushNotificationInfo =
|
|
72
|
-
export declare const NotificationsInfoSchema:
|
|
73
|
-
push:
|
|
74
|
-
enabled:
|
|
75
|
-
granted:
|
|
76
|
-
token:
|
|
77
|
-
platform:
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
export type NotificationsInfo =
|
|
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:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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:
|
|
130
|
-
user_id:
|
|
131
|
-
email:
|
|
132
|
-
name:
|
|
133
|
-
}
|
|
134
|
-
export type PersonaInfo =
|
|
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:
|
|
140
|
-
device:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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:
|
|
202
|
-
version:
|
|
203
|
-
build:
|
|
204
|
-
update_id:
|
|
205
|
-
effective_date:
|
|
206
|
-
}
|
|
207
|
-
export type
|
|
208
|
-
export declare const UpToDateInfoSchema:
|
|
209
|
-
status:
|
|
210
|
-
update:
|
|
211
|
-
}
|
|
212
|
-
export type UpToDateInfo =
|
|
213
|
-
export declare const UpdateRequiredInfoSchema:
|
|
214
|
-
status:
|
|
215
|
-
update:
|
|
216
|
-
version:
|
|
217
|
-
build:
|
|
218
|
-
update_id:
|
|
219
|
-
effective_date:
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
export type UpdateRequiredInfo =
|
|
223
|
-
export declare const UpdateAvailableInfoSchema:
|
|
224
|
-
status:
|
|
225
|
-
update:
|
|
226
|
-
version:
|
|
227
|
-
build:
|
|
228
|
-
update_id:
|
|
229
|
-
effective_date:
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
export
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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:
|
|
249
|
-
success:
|
|
250
|
-
data:
|
|
251
|
-
session_id:
|
|
252
|
-
device_id:
|
|
253
|
-
persona_id:
|
|
254
|
-
token:
|
|
255
|
-
version_info:
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
code:
|
|
277
|
-
message:
|
|
278
|
-
}
|
|
279
|
-
code:
|
|
280
|
-
message:
|
|
281
|
-
}
|
|
282
|
-
code:
|
|
283
|
-
message:
|
|
284
|
-
}
|
|
285
|
-
code:
|
|
286
|
-
message:
|
|
287
|
-
}
|
|
288
|
-
code:
|
|
289
|
-
message:
|
|
290
|
-
}
|
|
291
|
-
code:
|
|
292
|
-
message:
|
|
293
|
-
}
|
|
294
|
-
code:
|
|
295
|
-
message:
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
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
|
+
}>;
|