@bikefinder/api-client 0.1.0 → 0.3.0
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 +56 -13
- package/dist/admin/generated/client/client.gen.d.ts +3 -0
- package/dist/admin/generated/client/client.gen.d.ts.map +1 -0
- package/dist/admin/generated/client/client.gen.js +218 -0
- package/dist/admin/generated/client/client.gen.js.map +1 -0
- package/dist/admin/generated/client/index.d.ts +11 -0
- package/dist/admin/generated/client/index.d.ts.map +1 -0
- package/dist/admin/generated/client/index.js +7 -0
- package/dist/admin/generated/client/index.js.map +1 -0
- package/dist/admin/generated/client/types.gen.d.ts +121 -0
- package/dist/admin/generated/client/types.gen.d.ts.map +1 -0
- package/dist/admin/generated/client/types.gen.js +3 -0
- package/dist/admin/generated/client/types.gen.js.map +1 -0
- package/dist/admin/generated/client/utils.gen.d.ts +38 -0
- package/dist/admin/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/admin/generated/client/utils.gen.js +232 -0
- package/dist/admin/generated/client/utils.gen.js.map +1 -0
- package/dist/admin/generated/client.gen.d.ts +13 -0
- package/dist/admin/generated/client.gen.d.ts.map +1 -0
- package/dist/admin/generated/client.gen.js +4 -0
- package/dist/admin/generated/client.gen.js.map +1 -0
- package/dist/admin/generated/core/auth.gen.d.ts +26 -0
- package/dist/admin/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/admin/generated/core/auth.gen.js +15 -0
- package/dist/admin/generated/core/auth.gen.js.map +1 -0
- package/dist/admin/generated/core/bodySerializer.gen.d.ts +26 -0
- package/dist/admin/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/admin/generated/core/bodySerializer.gen.js +58 -0
- package/dist/admin/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/admin/generated/core/params.gen.d.ts +44 -0
- package/dist/admin/generated/core/params.gen.d.ts.map +1 -0
- package/dist/admin/generated/core/params.gen.js +113 -0
- package/dist/admin/generated/core/params.gen.js.map +1 -0
- package/dist/admin/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/admin/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/admin/generated/core/pathSerializer.gen.js +115 -0
- package/dist/admin/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/admin/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/admin/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/admin/generated/core/queryKeySerializer.gen.js +100 -0
- package/dist/admin/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/admin/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/admin/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/admin/generated/core/serverSentEvents.gen.js +137 -0
- package/dist/admin/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/admin/generated/core/types.gen.d.ts +84 -0
- package/dist/admin/generated/core/types.gen.d.ts.map +1 -0
- package/dist/admin/generated/core/types.gen.js +3 -0
- package/dist/admin/generated/core/types.gen.js.map +1 -0
- package/dist/admin/generated/core/utils.gen.d.ts +20 -0
- package/dist/admin/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/admin/generated/core/utils.gen.js +88 -0
- package/dist/admin/generated/core/utils.gen.js.map +1 -0
- package/dist/admin/generated/index.d.ts +3 -0
- package/dist/admin/generated/index.d.ts.map +1 -0
- package/dist/admin/generated/index.js +3 -0
- package/dist/admin/generated/index.js.map +1 -0
- package/dist/admin/generated/sdk.gen.d.ts +74 -0
- package/dist/admin/generated/sdk.gen.d.ts.map +1 -0
- package/dist/admin/generated/sdk.gen.js +417 -0
- package/dist/admin/generated/sdk.gen.js.map +1 -0
- package/dist/admin/generated/types.gen.d.ts +2087 -0
- package/dist/admin/generated/types.gen.d.ts.map +1 -0
- package/dist/admin/generated/types.gen.js +3 -0
- package/dist/admin/generated/types.gen.js.map +1 -0
- package/dist/admin/generated/zod.gen.d.ts +2786 -0
- package/dist/admin/generated/zod.gen.d.ts.map +1 -0
- package/dist/admin/generated/zod.gen.js +659 -0
- package/dist/admin/generated/zod.gen.js.map +1 -0
- package/dist/admin/index.d.ts +15 -0
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/admin/index.js +19 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/sdk.gen.d.ts +128 -2
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +468 -5
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +1867 -0
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.d.ts +1063 -0
- package/dist/generated/zod.gen.d.ts.map +1 -1
- package/dist/generated/zod.gen.js +801 -0
- package/dist/generated/zod.gen.js.map +1 -1
- package/dist/http-client.d.ts +1 -1
- package/dist/http-client.d.ts.map +1 -1
- package/dist/http-client.js +3 -3
- package/dist/http-client.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/realtime/watch.d.ts +21 -0
- package/dist/realtime/watch.d.ts.map +1 -0
- package/dist/realtime/{watch-trackers.js → watch.js} +13 -11
- package/dist/realtime/watch.js.map +1 -0
- package/package.json +7 -2
- package/src/admin/generated/client/client.gen.ts +300 -0
- package/src/admin/generated/client/index.ts +27 -0
- package/src/admin/generated/client/types.gen.ts +238 -0
- package/src/admin/generated/client/utils.gen.ts +337 -0
- package/src/admin/generated/client.gen.ts +24 -0
- package/src/admin/generated/core/auth.gen.ts +49 -0
- package/src/admin/generated/core/bodySerializer.gen.ts +96 -0
- package/src/admin/generated/core/params.gen.ts +188 -0
- package/src/admin/generated/core/pathSerializer.gen.ts +186 -0
- package/src/admin/generated/core/queryKeySerializer.gen.ts +134 -0
- package/src/admin/generated/core/serverSentEvents.gen.ts +265 -0
- package/src/admin/generated/core/types.gen.ts +126 -0
- package/src/admin/generated/core/utils.gen.ts +146 -0
- package/src/admin/generated/index.ts +237 -0
- package/src/admin/generated/sdk.gen.ts +1066 -0
- package/src/admin/generated/types.gen.ts +2418 -0
- package/src/admin/generated/zod.gen.ts +805 -0
- package/src/admin/index.ts +34 -0
- package/src/generated/index.ts +232 -0
- package/src/generated/sdk.gen.ts +1072 -11
- package/src/generated/types.gen.ts +2215 -42
- package/src/generated/zod.gen.ts +968 -14
- package/src/http-client.ts +6 -3
- package/src/index.ts +10 -2
- package/src/realtime/watch.ts +158 -0
- package/dist/realtime/watch-trackers.d.ts +0 -10
- package/dist/realtime/watch-trackers.d.ts.map +0 -1
- package/dist/realtime/watch-trackers.js.map +0 -1
- package/src/realtime/watch-trackers.ts +0 -114
|
@@ -1,8 +1,145 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import * as z from "zod";
|
|
3
|
+
export const zAccountDeletionRequest = z.object({
|
|
4
|
+
requestId: z.string(),
|
|
5
|
+
});
|
|
6
|
+
export const zAccountNotification = z.object({
|
|
7
|
+
id: z.string(),
|
|
8
|
+
title: z.string(),
|
|
9
|
+
body: z.string(),
|
|
10
|
+
trackerId: z.string().nullable(),
|
|
11
|
+
timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
12
|
+
subscriptionId: z.string().nullable(),
|
|
13
|
+
});
|
|
14
|
+
export const zBluetoothBatteryRequest = z.object({
|
|
15
|
+
seenAt: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
16
|
+
level: z
|
|
17
|
+
.int()
|
|
18
|
+
.min(-2147483648, {
|
|
19
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
20
|
+
})
|
|
21
|
+
.max(2147483647, {
|
|
22
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
23
|
+
})
|
|
24
|
+
.nullable(),
|
|
25
|
+
isCharging: z.boolean(),
|
|
26
|
+
});
|
|
27
|
+
export const zBluetoothCommandReport = z.object({
|
|
28
|
+
type: z.string(),
|
|
29
|
+
success: z.boolean(),
|
|
30
|
+
});
|
|
31
|
+
export const zBluetoothObservationBattery = z.object({
|
|
32
|
+
level: z.number().nullable(),
|
|
33
|
+
isCharging: z.boolean(),
|
|
34
|
+
});
|
|
35
|
+
export const zBluetoothObservationRequest = z.object({
|
|
36
|
+
requestId: z.string(),
|
|
37
|
+
type: z.string(),
|
|
38
|
+
timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
39
|
+
latitude: z.number(),
|
|
40
|
+
longitude: z.number(),
|
|
41
|
+
accuracy: z.number(),
|
|
42
|
+
userLocationAccuracy: z.number(),
|
|
43
|
+
crowdKey: z
|
|
44
|
+
.int()
|
|
45
|
+
.min(-2147483648, {
|
|
46
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
47
|
+
})
|
|
48
|
+
.max(2147483647, {
|
|
49
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
50
|
+
})
|
|
51
|
+
.nullable(),
|
|
52
|
+
rssi: z
|
|
53
|
+
.int()
|
|
54
|
+
.min(-2147483648, {
|
|
55
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
56
|
+
})
|
|
57
|
+
.max(2147483647, {
|
|
58
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
59
|
+
})
|
|
60
|
+
.nullable(),
|
|
61
|
+
status: z.string(),
|
|
62
|
+
statusValue: z
|
|
63
|
+
.int()
|
|
64
|
+
.min(-2147483648, {
|
|
65
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
66
|
+
})
|
|
67
|
+
.max(2147483647, {
|
|
68
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
69
|
+
}),
|
|
70
|
+
bleId: z.string(),
|
|
71
|
+
appState: z.string(),
|
|
72
|
+
battery: zBluetoothObservationBattery,
|
|
73
|
+
});
|
|
74
|
+
export const zBluetoothObservationResult = z.object({
|
|
75
|
+
success: z.boolean(),
|
|
76
|
+
observationId: z.string(),
|
|
77
|
+
});
|
|
78
|
+
export const zBluetoothReportingPolicy = z.object({
|
|
79
|
+
pauseMs: z
|
|
80
|
+
.int()
|
|
81
|
+
.min(-2147483648, {
|
|
82
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
83
|
+
})
|
|
84
|
+
.max(2147483647, {
|
|
85
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
86
|
+
}),
|
|
87
|
+
accuracy: z
|
|
88
|
+
.int()
|
|
89
|
+
.min(-2147483648, {
|
|
90
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
91
|
+
})
|
|
92
|
+
.max(2147483647, {
|
|
93
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
94
|
+
}),
|
|
95
|
+
});
|
|
96
|
+
export const zClaimTrackerGuestAccessRequest = z.object({
|
|
97
|
+
accessCode: z.string(),
|
|
98
|
+
displayName: z.string().nullable(),
|
|
99
|
+
});
|
|
100
|
+
export const zClaimTrackerOwnershipRequest = z.object({
|
|
101
|
+
displayName: z.string().nullable(),
|
|
102
|
+
});
|
|
103
|
+
export const zCommandSuccess = z.object({
|
|
104
|
+
success: z.boolean(),
|
|
105
|
+
});
|
|
106
|
+
export const zCompleteFirmwareRequest = z.object({
|
|
107
|
+
from: z.string(),
|
|
108
|
+
version: z.string(),
|
|
109
|
+
});
|
|
110
|
+
export const zFactoryResetResult = z.object({
|
|
111
|
+
error: z.boolean(),
|
|
112
|
+
});
|
|
3
113
|
export const zHealthStatus = z.object({
|
|
4
114
|
status: z.string(),
|
|
5
115
|
});
|
|
116
|
+
export const zIFormFile = z.string();
|
|
117
|
+
export const zLegacyDevicePreferences = z.object({
|
|
118
|
+
unit: z.string(),
|
|
119
|
+
liquidGlass: z.boolean(),
|
|
120
|
+
mapStyle: z.string(),
|
|
121
|
+
});
|
|
122
|
+
export const zAccountPreferences = z.object({
|
|
123
|
+
language: z.string(),
|
|
124
|
+
alarm: z.boolean(),
|
|
125
|
+
timeSensitive: z.boolean(),
|
|
126
|
+
pushReady: z.boolean(),
|
|
127
|
+
devicePreferences: zLegacyDevicePreferences,
|
|
128
|
+
});
|
|
129
|
+
export const zNotificationPage = z.object({
|
|
130
|
+
items: z.array(zAccountNotification),
|
|
131
|
+
nextCursor: z.string().nullable(),
|
|
132
|
+
});
|
|
133
|
+
export const zPhotoUploadResult = z.object({
|
|
134
|
+
id: z.string(),
|
|
135
|
+
});
|
|
136
|
+
export const zPlanStatus = z.enum([
|
|
137
|
+
"active",
|
|
138
|
+
"ending",
|
|
139
|
+
"hold",
|
|
140
|
+
"inactive",
|
|
141
|
+
"unknown",
|
|
142
|
+
]);
|
|
6
143
|
export const zProblemDetails = z.object({
|
|
7
144
|
type: z.string().nullish(),
|
|
8
145
|
title: z.string().nullish(),
|
|
@@ -18,21 +155,385 @@ export const zProblemDetails = z.object({
|
|
|
18
155
|
detail: z.string().nullish(),
|
|
19
156
|
instance: z.string().nullish(),
|
|
20
157
|
});
|
|
158
|
+
export const zRecordFirmwareAttemptRequest = z.object({
|
|
159
|
+
attemptId: z.string(),
|
|
160
|
+
success: z.boolean(),
|
|
161
|
+
});
|
|
162
|
+
export const zRecordFirmwareAttemptResult = z.object({
|
|
163
|
+
success: z.boolean(),
|
|
164
|
+
recorded: z.boolean(),
|
|
165
|
+
});
|
|
166
|
+
export const zRegisterPushRegistrationRequest = z.object({
|
|
167
|
+
token: z.string(),
|
|
168
|
+
previousTokens: z.array(z.string()).nullish(),
|
|
169
|
+
platform: z.string().nullish(),
|
|
170
|
+
});
|
|
171
|
+
export const zRemovePushRegistrationRequest = z.object({
|
|
172
|
+
tokens: z.array(z.string()),
|
|
173
|
+
});
|
|
174
|
+
export const zRemoveTrackerMembershipRequest = z.object({
|
|
175
|
+
expectedLastMember: z.boolean(),
|
|
176
|
+
});
|
|
177
|
+
export const zSubmitTrackerTheftReportRequest = z.object({
|
|
178
|
+
requestId: z.string(),
|
|
179
|
+
phoneNumber: z.string(),
|
|
180
|
+
});
|
|
181
|
+
export const zSubscriptionChangeRequest = z.object({
|
|
182
|
+
subscriptionId: z.string(),
|
|
183
|
+
});
|
|
184
|
+
export const zSubscriptionPlan = z.object({
|
|
185
|
+
id: z.string(),
|
|
186
|
+
ownerUid: z.string().nullable(),
|
|
187
|
+
name: z.string(),
|
|
188
|
+
fallbackTier: z
|
|
189
|
+
.int()
|
|
190
|
+
.min(-2147483648, {
|
|
191
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
192
|
+
})
|
|
193
|
+
.max(2147483647, {
|
|
194
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
195
|
+
})
|
|
196
|
+
.nullable(),
|
|
197
|
+
status: zPlanStatus,
|
|
198
|
+
isActive: z.boolean().nullable(),
|
|
199
|
+
quantity: z
|
|
200
|
+
.int()
|
|
201
|
+
.min(-2147483648, {
|
|
202
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
203
|
+
})
|
|
204
|
+
.max(2147483647, {
|
|
205
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
206
|
+
})
|
|
207
|
+
.nullable(),
|
|
208
|
+
available: z
|
|
209
|
+
.int()
|
|
210
|
+
.min(-2147483648, {
|
|
211
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
212
|
+
})
|
|
213
|
+
.max(2147483647, {
|
|
214
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
215
|
+
}),
|
|
216
|
+
trackerIds: z.array(z.string()),
|
|
217
|
+
managementUrl: z.string().nullable(),
|
|
218
|
+
nextRenewalMs: z
|
|
219
|
+
.int()
|
|
220
|
+
.gte(-9007199254740991)
|
|
221
|
+
.lte(9007199254740991)
|
|
222
|
+
.nullable(),
|
|
223
|
+
endMs: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
224
|
+
});
|
|
225
|
+
export const zSubscriptionList = z.object({
|
|
226
|
+
items: z.array(zSubscriptionPlan),
|
|
227
|
+
});
|
|
228
|
+
export const zTrackerBattery = z.object({
|
|
229
|
+
level: z
|
|
230
|
+
.int()
|
|
231
|
+
.min(-2147483648, {
|
|
232
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
233
|
+
})
|
|
234
|
+
.max(2147483647, {
|
|
235
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
236
|
+
})
|
|
237
|
+
.nullable(),
|
|
238
|
+
isCharging: z.boolean(),
|
|
239
|
+
timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
240
|
+
});
|
|
241
|
+
export const zTrackerBikeDetails = z.object({
|
|
242
|
+
nickname: z.string(),
|
|
243
|
+
brand: z.string(),
|
|
244
|
+
type: z.string(),
|
|
245
|
+
model: z.string(),
|
|
246
|
+
frameNumber: z.string(),
|
|
247
|
+
marketPrice: z.string(),
|
|
248
|
+
marketPriceCurrency: z.string(),
|
|
249
|
+
url: z.string(),
|
|
250
|
+
});
|
|
251
|
+
export const zTrackerBluetoothCredentials = z.object({
|
|
252
|
+
id: z.string(),
|
|
253
|
+
imei: z.string().nullable(),
|
|
254
|
+
generation: z
|
|
255
|
+
.int()
|
|
256
|
+
.min(-2147483648, {
|
|
257
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
258
|
+
})
|
|
259
|
+
.max(2147483647, {
|
|
260
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
261
|
+
})
|
|
262
|
+
.nullable(),
|
|
263
|
+
pin: z.array(z
|
|
264
|
+
.int()
|
|
265
|
+
.min(-2147483648, {
|
|
266
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
267
|
+
})
|
|
268
|
+
.max(2147483647, {
|
|
269
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
270
|
+
})),
|
|
271
|
+
rotatePin: z.boolean(),
|
|
272
|
+
});
|
|
273
|
+
export const zTrackerClaimabilityRequest = z.object({
|
|
274
|
+
deviceIds: z.array(z.string()),
|
|
275
|
+
});
|
|
276
|
+
export const zTrackerFirmwarePlan = z.object({
|
|
277
|
+
trackerId: z.string(),
|
|
278
|
+
from: z.string(),
|
|
279
|
+
version: z.string(),
|
|
280
|
+
url: z.string(),
|
|
281
|
+
blockSize: z
|
|
282
|
+
.int()
|
|
283
|
+
.min(-2147483648, {
|
|
284
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
285
|
+
})
|
|
286
|
+
.max(2147483647, {
|
|
287
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
288
|
+
}),
|
|
289
|
+
requiredBattery: z
|
|
290
|
+
.int()
|
|
291
|
+
.min(-2147483648, {
|
|
292
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
293
|
+
})
|
|
294
|
+
.max(2147483647, {
|
|
295
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
296
|
+
}),
|
|
297
|
+
blockTimeoutMs: z
|
|
298
|
+
.int()
|
|
299
|
+
.min(-2147483648, {
|
|
300
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
301
|
+
})
|
|
302
|
+
.max(2147483647, {
|
|
303
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
304
|
+
}),
|
|
305
|
+
rebootTimeoutMs: z
|
|
306
|
+
.int()
|
|
307
|
+
.min(-2147483648, {
|
|
308
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
309
|
+
})
|
|
310
|
+
.max(2147483647, {
|
|
311
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
312
|
+
}),
|
|
313
|
+
});
|
|
314
|
+
export const zTrackerFirmwareVersions = z.object({
|
|
315
|
+
lte: z.string().nullable(),
|
|
316
|
+
ble: z.string().nullable(),
|
|
317
|
+
bat: z.string().nullable(),
|
|
318
|
+
tiFirmware: z.string().nullable(),
|
|
319
|
+
mtkFirmware: z.string().nullable(),
|
|
320
|
+
});
|
|
321
|
+
export const zTrackerInvitation = z.object({
|
|
322
|
+
accessCode: z.string(),
|
|
323
|
+
});
|
|
324
|
+
export const zTrackerModeResult = z.object({
|
|
325
|
+
success: z.boolean(),
|
|
326
|
+
requestedMode: z.string(),
|
|
327
|
+
});
|
|
328
|
+
export const zTrackerPhoto = z.object({
|
|
329
|
+
id: z.string(),
|
|
330
|
+
kind: z.string(),
|
|
331
|
+
url: z.string(),
|
|
332
|
+
thumbnailUrl: z.string(),
|
|
333
|
+
timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
334
|
+
});
|
|
335
|
+
export const zTrackerPhotoList = z.object({
|
|
336
|
+
items: z.array(zTrackerPhoto),
|
|
337
|
+
});
|
|
338
|
+
export const zTrackerPosition = z.object({
|
|
339
|
+
id: z.string(),
|
|
340
|
+
latitude: z.number(),
|
|
341
|
+
longitude: z.number(),
|
|
342
|
+
timestampMs: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
343
|
+
source: z.string(),
|
|
344
|
+
accuracy: z.number().nullable(),
|
|
345
|
+
});
|
|
346
|
+
export const zHistoryPage = z.object({
|
|
347
|
+
items: z.array(zTrackerPosition),
|
|
348
|
+
nextCursor: z.string().nullable(),
|
|
349
|
+
});
|
|
350
|
+
export const zTrackerPositionState = z.object({
|
|
351
|
+
latest: zTrackerPosition.nullable(),
|
|
352
|
+
lastPrecise: zTrackerPosition.nullable(),
|
|
353
|
+
});
|
|
354
|
+
export const zTrackerSubscription = z.object({
|
|
355
|
+
id: z.string().nullable(),
|
|
356
|
+
status: z.string(),
|
|
357
|
+
endTimestampMs: z
|
|
358
|
+
.int()
|
|
359
|
+
.gte(-9007199254740991)
|
|
360
|
+
.lte(9007199254740991)
|
|
361
|
+
.nullable(),
|
|
362
|
+
tier: z
|
|
363
|
+
.int()
|
|
364
|
+
.min(-2147483648, {
|
|
365
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
366
|
+
})
|
|
367
|
+
.max(2147483647, {
|
|
368
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
369
|
+
})
|
|
370
|
+
.nullable(),
|
|
371
|
+
});
|
|
372
|
+
export const zTrackerTheftReportResult = z.object({
|
|
373
|
+
success: z.boolean(),
|
|
374
|
+
reportId: z.string(),
|
|
375
|
+
requestId: z.string(),
|
|
376
|
+
});
|
|
21
377
|
export const zTrackingMode = z.enum(["standard", "security", "tracking"]);
|
|
378
|
+
export const zTrackerModeRequest = z.object({
|
|
379
|
+
mode: zTrackingMode,
|
|
380
|
+
});
|
|
22
381
|
export const zTrackerSummary = z.object({
|
|
23
382
|
id: z.string(),
|
|
24
383
|
nickname: z.string().nullable(),
|
|
25
384
|
requestedMode: zTrackingMode.nullable(),
|
|
26
385
|
subscriptionActive: z.boolean().nullable(),
|
|
386
|
+
bikeDetails: zTrackerBikeDetails.nullable(),
|
|
387
|
+
battery: zTrackerBattery.nullable(),
|
|
388
|
+
subscription: zTrackerSubscription.nullable(),
|
|
389
|
+
membershipCount: z
|
|
390
|
+
.int()
|
|
391
|
+
.min(-2147483648, {
|
|
392
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
393
|
+
})
|
|
394
|
+
.max(2147483647, {
|
|
395
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
396
|
+
}),
|
|
397
|
+
sharingCodes: z.array(z.string()).nullable(),
|
|
398
|
+
generation: z
|
|
399
|
+
.int()
|
|
400
|
+
.min(-2147483648, {
|
|
401
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
402
|
+
})
|
|
403
|
+
.max(2147483647, {
|
|
404
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
405
|
+
})
|
|
406
|
+
.nullable(),
|
|
407
|
+
imei: z.string().nullable(),
|
|
408
|
+
iccid: z.string().nullable(),
|
|
409
|
+
firmwareVersions: zTrackerFirmwareVersions.nullable(),
|
|
410
|
+
lastCommunicationMode: z.string().nullable(),
|
|
27
411
|
});
|
|
28
412
|
export const zTrackerPage = z.object({
|
|
29
413
|
items: z.array(zTrackerSummary),
|
|
30
414
|
nextCursor: z.string().nullable(),
|
|
31
415
|
});
|
|
416
|
+
export const zUpdateAccountPreferencesRequest = z.object({
|
|
417
|
+
language: z.string().nullish(),
|
|
418
|
+
alarm: z.boolean().nullish(),
|
|
419
|
+
timeSensitive: z.boolean().nullish(),
|
|
420
|
+
});
|
|
421
|
+
export const zUpdateBluetoothPinRequest = z.object({
|
|
422
|
+
pin: z.array(z
|
|
423
|
+
.int()
|
|
424
|
+
.min(-2147483648, {
|
|
425
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
426
|
+
})
|
|
427
|
+
.max(2147483647, {
|
|
428
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
429
|
+
})),
|
|
430
|
+
expected: z.array(z
|
|
431
|
+
.int()
|
|
432
|
+
.min(-2147483648, {
|
|
433
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
434
|
+
})
|
|
435
|
+
.max(2147483647, {
|
|
436
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
437
|
+
})),
|
|
438
|
+
clearRotation: z.boolean(),
|
|
439
|
+
});
|
|
440
|
+
export const zUpdateTrackerBikeRequest = z.object({
|
|
441
|
+
before: zTrackerBikeDetails,
|
|
442
|
+
draft: zTrackerBikeDetails,
|
|
443
|
+
});
|
|
32
444
|
/**
|
|
33
445
|
* OK
|
|
34
446
|
*/
|
|
35
447
|
export const zGetHealthResponse = zHealthStatus;
|
|
448
|
+
/**
|
|
449
|
+
* OK
|
|
450
|
+
*/
|
|
451
|
+
export const zGetBluetoothReportingPolicyResponse = zBluetoothReportingPolicy;
|
|
452
|
+
export const zUnlinkTrackerSubscriptionBody = zSubscriptionChangeRequest;
|
|
453
|
+
export const zUnlinkTrackerSubscriptionPath = z.object({
|
|
454
|
+
trackerId: z
|
|
455
|
+
.string()
|
|
456
|
+
.min(1)
|
|
457
|
+
.max(128)
|
|
458
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
459
|
+
});
|
|
460
|
+
/**
|
|
461
|
+
* OK
|
|
462
|
+
*/
|
|
463
|
+
export const zUnlinkTrackerSubscriptionResponse = zCommandSuccess;
|
|
464
|
+
export const zLinkTrackerSubscriptionBody = zSubscriptionChangeRequest;
|
|
465
|
+
export const zLinkTrackerSubscriptionPath = z.object({
|
|
466
|
+
trackerId: z
|
|
467
|
+
.string()
|
|
468
|
+
.min(1)
|
|
469
|
+
.max(128)
|
|
470
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
471
|
+
});
|
|
472
|
+
/**
|
|
473
|
+
* OK
|
|
474
|
+
*/
|
|
475
|
+
export const zLinkTrackerSubscriptionResponse = zCommandSuccess;
|
|
476
|
+
export const zListTrackerPhotosPath = z.object({
|
|
477
|
+
trackerId: z
|
|
478
|
+
.string()
|
|
479
|
+
.min(1)
|
|
480
|
+
.max(128)
|
|
481
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
482
|
+
});
|
|
483
|
+
/**
|
|
484
|
+
* OK
|
|
485
|
+
*/
|
|
486
|
+
export const zListTrackerPhotosResponse = zTrackerPhotoList;
|
|
487
|
+
export const zUploadTrackerPhotoBody = z
|
|
488
|
+
.object({
|
|
489
|
+
file: zIFormFile,
|
|
490
|
+
})
|
|
491
|
+
.and(z.object({
|
|
492
|
+
kind: z.string(),
|
|
493
|
+
}))
|
|
494
|
+
.and(z.object({
|
|
495
|
+
width: z
|
|
496
|
+
.int()
|
|
497
|
+
.min(-2147483648, {
|
|
498
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
499
|
+
})
|
|
500
|
+
.max(2147483647, {
|
|
501
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
502
|
+
}),
|
|
503
|
+
}))
|
|
504
|
+
.and(z.object({
|
|
505
|
+
height: z
|
|
506
|
+
.int()
|
|
507
|
+
.min(-2147483648, {
|
|
508
|
+
error: "Invalid value: Expected int32 to be >= -2147483648",
|
|
509
|
+
})
|
|
510
|
+
.max(2147483647, {
|
|
511
|
+
error: "Invalid value: Expected int32 to be <= 2147483647",
|
|
512
|
+
}),
|
|
513
|
+
}));
|
|
514
|
+
export const zUploadTrackerPhotoPath = z.object({
|
|
515
|
+
trackerId: z
|
|
516
|
+
.string()
|
|
517
|
+
.min(1)
|
|
518
|
+
.max(128)
|
|
519
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
520
|
+
});
|
|
521
|
+
/**
|
|
522
|
+
* OK
|
|
523
|
+
*/
|
|
524
|
+
export const zUploadTrackerPhotoResponse = zPhotoUploadResult;
|
|
525
|
+
export const zDeleteTrackerPhotoPath = z.object({
|
|
526
|
+
trackerId: z
|
|
527
|
+
.string()
|
|
528
|
+
.min(1)
|
|
529
|
+
.max(128)
|
|
530
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
531
|
+
photoId: z.string(),
|
|
532
|
+
});
|
|
533
|
+
/**
|
|
534
|
+
* OK
|
|
535
|
+
*/
|
|
536
|
+
export const zDeleteTrackerPhotoResponse = zCommandSuccess;
|
|
36
537
|
export const zListTrackersQuery = z.object({
|
|
37
538
|
cursor: z
|
|
38
539
|
.string()
|
|
@@ -70,4 +571,304 @@ export const zGetTrackerPath = z.object({
|
|
|
70
571
|
* OK
|
|
71
572
|
*/
|
|
72
573
|
export const zGetTrackerResponse = zTrackerSummary;
|
|
574
|
+
export const zGetTrackerPositionsPath = z.object({
|
|
575
|
+
trackerId: z
|
|
576
|
+
.string()
|
|
577
|
+
.min(1)
|
|
578
|
+
.max(128)
|
|
579
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
580
|
+
});
|
|
581
|
+
/**
|
|
582
|
+
* OK
|
|
583
|
+
*/
|
|
584
|
+
export const zGetTrackerPositionsResponse = zTrackerPositionState;
|
|
585
|
+
export const zSubscribeTrackerPositionsPath = z.object({
|
|
586
|
+
trackerId: z
|
|
587
|
+
.string()
|
|
588
|
+
.min(1)
|
|
589
|
+
.max(128)
|
|
590
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
591
|
+
});
|
|
592
|
+
/**
|
|
593
|
+
* OK
|
|
594
|
+
*/
|
|
595
|
+
export const zSubscribeTrackerPositionsResponse = zTrackerPositionState.nullable();
|
|
596
|
+
export const zSubscribeTrackerPhotosPath = z.object({
|
|
597
|
+
trackerId: z
|
|
598
|
+
.string()
|
|
599
|
+
.min(1)
|
|
600
|
+
.max(128)
|
|
601
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
602
|
+
});
|
|
603
|
+
/**
|
|
604
|
+
* OK
|
|
605
|
+
*/
|
|
606
|
+
export const zSubscribeTrackerPhotosResponse = zTrackerPhotoList.nullable();
|
|
607
|
+
export const zRequestTrackerModeBody = zTrackerModeRequest;
|
|
608
|
+
export const zRequestTrackerModePath = z.object({
|
|
609
|
+
trackerId: z
|
|
610
|
+
.string()
|
|
611
|
+
.min(1)
|
|
612
|
+
.max(128)
|
|
613
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
614
|
+
});
|
|
615
|
+
/**
|
|
616
|
+
* OK
|
|
617
|
+
*/
|
|
618
|
+
export const zRequestTrackerModeResponse = zTrackerModeResult;
|
|
619
|
+
export const zCheckTrackerClaimabilityBody = zTrackerClaimabilityRequest;
|
|
620
|
+
/**
|
|
621
|
+
* OK
|
|
622
|
+
*/
|
|
623
|
+
export const zCheckTrackerClaimabilityResponse = z.record(z.string(), z.boolean());
|
|
624
|
+
export const zClaimTrackerOwnershipBody = zClaimTrackerOwnershipRequest;
|
|
625
|
+
export const zClaimTrackerOwnershipPath = z.object({
|
|
626
|
+
trackerId: z
|
|
627
|
+
.string()
|
|
628
|
+
.min(1)
|
|
629
|
+
.max(128)
|
|
630
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
631
|
+
});
|
|
632
|
+
/**
|
|
633
|
+
* OK
|
|
634
|
+
*/
|
|
635
|
+
export const zClaimTrackerOwnershipResponse = zCommandSuccess;
|
|
636
|
+
export const zClaimTrackerGuestAccessBody = zClaimTrackerGuestAccessRequest;
|
|
637
|
+
export const zClaimTrackerGuestAccessPath = z.object({
|
|
638
|
+
trackerId: z
|
|
639
|
+
.string()
|
|
640
|
+
.min(1)
|
|
641
|
+
.max(128)
|
|
642
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
643
|
+
});
|
|
644
|
+
/**
|
|
645
|
+
* OK
|
|
646
|
+
*/
|
|
647
|
+
export const zClaimTrackerGuestAccessResponse = zCommandSuccess;
|
|
648
|
+
export const zCreateTrackerInvitationPath = z.object({
|
|
649
|
+
trackerId: z
|
|
650
|
+
.string()
|
|
651
|
+
.min(1)
|
|
652
|
+
.max(128)
|
|
653
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
654
|
+
});
|
|
655
|
+
/**
|
|
656
|
+
* OK
|
|
657
|
+
*/
|
|
658
|
+
export const zCreateTrackerInvitationResponse = zTrackerInvitation;
|
|
659
|
+
export const zRevokeTrackerInvitationPath = z.object({
|
|
660
|
+
trackerId: z
|
|
661
|
+
.string()
|
|
662
|
+
.min(1)
|
|
663
|
+
.max(128)
|
|
664
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
665
|
+
accessCode: z.string(),
|
|
666
|
+
});
|
|
667
|
+
/**
|
|
668
|
+
* OK
|
|
669
|
+
*/
|
|
670
|
+
export const zRevokeTrackerInvitationResponse = zCommandSuccess;
|
|
671
|
+
export const zRemoveTrackerMembershipBody = zRemoveTrackerMembershipRequest;
|
|
672
|
+
export const zRemoveTrackerMembershipPath = z.object({
|
|
673
|
+
trackerId: z
|
|
674
|
+
.string()
|
|
675
|
+
.min(1)
|
|
676
|
+
.max(128)
|
|
677
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
678
|
+
});
|
|
679
|
+
/**
|
|
680
|
+
* OK
|
|
681
|
+
*/
|
|
682
|
+
export const zRemoveTrackerMembershipResponse = zCommandSuccess;
|
|
683
|
+
export const zUpdateTrackerBikeBody = zUpdateTrackerBikeRequest;
|
|
684
|
+
export const zUpdateTrackerBikePath = z.object({
|
|
685
|
+
trackerId: z
|
|
686
|
+
.string()
|
|
687
|
+
.min(1)
|
|
688
|
+
.max(128)
|
|
689
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
690
|
+
});
|
|
691
|
+
/**
|
|
692
|
+
* OK
|
|
693
|
+
*/
|
|
694
|
+
export const zUpdateTrackerBikeResponse = zTrackerBikeDetails;
|
|
695
|
+
export const zSubmitTrackerTheftReportBody = zSubmitTrackerTheftReportRequest;
|
|
696
|
+
export const zSubmitTrackerTheftReportPath = z.object({
|
|
697
|
+
trackerId: z
|
|
698
|
+
.string()
|
|
699
|
+
.min(1)
|
|
700
|
+
.max(128)
|
|
701
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
702
|
+
});
|
|
703
|
+
/**
|
|
704
|
+
* OK
|
|
705
|
+
*/
|
|
706
|
+
export const zSubmitTrackerTheftReportResponse = zTrackerTheftReportResult;
|
|
707
|
+
export const zGetTrackerBluetoothCredentialsPath = z.object({
|
|
708
|
+
trackerId: z
|
|
709
|
+
.string()
|
|
710
|
+
.min(1)
|
|
711
|
+
.max(128)
|
|
712
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
713
|
+
});
|
|
714
|
+
/**
|
|
715
|
+
* OK
|
|
716
|
+
*/
|
|
717
|
+
export const zGetTrackerBluetoothCredentialsResponse = zTrackerBluetoothCredentials;
|
|
718
|
+
export const zUpdateTrackerBluetoothPinBody = zUpdateBluetoothPinRequest;
|
|
719
|
+
export const zUpdateTrackerBluetoothPinPath = z.object({
|
|
720
|
+
trackerId: z
|
|
721
|
+
.string()
|
|
722
|
+
.min(1)
|
|
723
|
+
.max(128)
|
|
724
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
725
|
+
});
|
|
726
|
+
/**
|
|
727
|
+
* OK
|
|
728
|
+
*/
|
|
729
|
+
export const zUpdateTrackerBluetoothPinResponse = zCommandSuccess;
|
|
730
|
+
export const zReportTrackerBluetoothBatteryBody = zBluetoothBatteryRequest;
|
|
731
|
+
export const zReportTrackerBluetoothBatteryPath = z.object({
|
|
732
|
+
trackerId: z
|
|
733
|
+
.string()
|
|
734
|
+
.min(1)
|
|
735
|
+
.max(128)
|
|
736
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
737
|
+
});
|
|
738
|
+
/**
|
|
739
|
+
* OK
|
|
740
|
+
*/
|
|
741
|
+
export const zReportTrackerBluetoothBatteryResponse = zCommandSuccess;
|
|
742
|
+
export const zReportTrackerBluetoothCommandBody = zBluetoothCommandReport;
|
|
743
|
+
export const zReportTrackerBluetoothCommandPath = z.object({
|
|
744
|
+
trackerId: z
|
|
745
|
+
.string()
|
|
746
|
+
.min(1)
|
|
747
|
+
.max(128)
|
|
748
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
749
|
+
});
|
|
750
|
+
/**
|
|
751
|
+
* OK
|
|
752
|
+
*/
|
|
753
|
+
export const zReportTrackerBluetoothCommandResponse = zCommandSuccess;
|
|
754
|
+
export const zUploadTrackerBluetoothObservationBody = zBluetoothObservationRequest;
|
|
755
|
+
export const zUploadTrackerBluetoothObservationPath = z.object({
|
|
756
|
+
trackerId: z
|
|
757
|
+
.string()
|
|
758
|
+
.min(1)
|
|
759
|
+
.max(128)
|
|
760
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
761
|
+
});
|
|
762
|
+
/**
|
|
763
|
+
* OK
|
|
764
|
+
*/
|
|
765
|
+
export const zUploadTrackerBluetoothObservationResponse = zBluetoothObservationResult;
|
|
766
|
+
export const zReportTrackerFactoryResetPath = z.object({
|
|
767
|
+
trackerId: z
|
|
768
|
+
.string()
|
|
769
|
+
.min(1)
|
|
770
|
+
.max(128)
|
|
771
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
772
|
+
});
|
|
773
|
+
/**
|
|
774
|
+
* OK
|
|
775
|
+
*/
|
|
776
|
+
export const zReportTrackerFactoryResetResponse = zFactoryResetResult;
|
|
777
|
+
export const zGetTrackerFirmwarePlanPath = z.object({
|
|
778
|
+
trackerId: z
|
|
779
|
+
.string()
|
|
780
|
+
.min(1)
|
|
781
|
+
.max(128)
|
|
782
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
783
|
+
});
|
|
784
|
+
export const zGetTrackerFirmwarePlanQuery = z.object({
|
|
785
|
+
platform: z.string(),
|
|
786
|
+
build: z.string(),
|
|
787
|
+
});
|
|
788
|
+
/**
|
|
789
|
+
* OK
|
|
790
|
+
*/
|
|
791
|
+
export const zGetTrackerFirmwarePlanResponse = zTrackerFirmwarePlan;
|
|
792
|
+
export const zCompleteTrackerFirmwareUpdateBody = zCompleteFirmwareRequest;
|
|
793
|
+
export const zCompleteTrackerFirmwareUpdatePath = z.object({
|
|
794
|
+
trackerId: z
|
|
795
|
+
.string()
|
|
796
|
+
.min(1)
|
|
797
|
+
.max(128)
|
|
798
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
799
|
+
});
|
|
800
|
+
/**
|
|
801
|
+
* OK
|
|
802
|
+
*/
|
|
803
|
+
export const zCompleteTrackerFirmwareUpdateResponse = zCommandSuccess;
|
|
804
|
+
export const zRecordTrackerFirmwareAttemptBody = zRecordFirmwareAttemptRequest;
|
|
805
|
+
export const zRecordTrackerFirmwareAttemptPath = z.object({
|
|
806
|
+
trackerId: z
|
|
807
|
+
.string()
|
|
808
|
+
.min(1)
|
|
809
|
+
.max(128)
|
|
810
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
811
|
+
});
|
|
812
|
+
/**
|
|
813
|
+
* OK
|
|
814
|
+
*/
|
|
815
|
+
export const zRecordTrackerFirmwareAttemptResponse = zRecordFirmwareAttemptResult;
|
|
816
|
+
/**
|
|
817
|
+
* OK
|
|
818
|
+
*/
|
|
819
|
+
export const zGetAccountPreferencesResponse = zAccountPreferences;
|
|
820
|
+
export const zUpdateAccountPreferencesBody = zUpdateAccountPreferencesRequest;
|
|
821
|
+
/**
|
|
822
|
+
* OK
|
|
823
|
+
*/
|
|
824
|
+
export const zUpdateAccountPreferencesResponse = zAccountPreferences;
|
|
825
|
+
/**
|
|
826
|
+
* OK
|
|
827
|
+
*/
|
|
828
|
+
export const zSubscribeAccountPreferencesResponse = zAccountPreferences.nullable();
|
|
829
|
+
export const zRemovePushRegistrationBody = zRemovePushRegistrationRequest;
|
|
830
|
+
/**
|
|
831
|
+
* No Content
|
|
832
|
+
*/
|
|
833
|
+
export const zRemovePushRegistrationResponse = z.void();
|
|
834
|
+
export const zRegisterPushRegistrationBody = zRegisterPushRegistrationRequest;
|
|
835
|
+
/**
|
|
836
|
+
* No Content
|
|
837
|
+
*/
|
|
838
|
+
export const zRegisterPushRegistrationResponse = z.void();
|
|
839
|
+
/**
|
|
840
|
+
* Accepted
|
|
841
|
+
*/
|
|
842
|
+
export const zRequestAccountDeletionResponse = zAccountDeletionRequest;
|
|
843
|
+
export const zListTrackerHistoryPath = z.object({
|
|
844
|
+
trackerId: z
|
|
845
|
+
.string()
|
|
846
|
+
.min(1)
|
|
847
|
+
.max(128)
|
|
848
|
+
.regex(/^[A-Za-z0-9_-]+$/),
|
|
849
|
+
});
|
|
850
|
+
export const zListTrackerHistoryQuery = z.object({
|
|
851
|
+
startMs: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
852
|
+
endMs: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
853
|
+
cursor: z.string().optional(),
|
|
854
|
+
});
|
|
855
|
+
/**
|
|
856
|
+
* OK
|
|
857
|
+
*/
|
|
858
|
+
export const zListTrackerHistoryResponse = zHistoryPage;
|
|
859
|
+
export const zListNotificationsQuery = z.object({
|
|
860
|
+
cursor: z.string().optional(),
|
|
861
|
+
});
|
|
862
|
+
/**
|
|
863
|
+
* OK
|
|
864
|
+
*/
|
|
865
|
+
export const zListNotificationsResponse = zNotificationPage;
|
|
866
|
+
/**
|
|
867
|
+
* OK
|
|
868
|
+
*/
|
|
869
|
+
export const zListSubscriptionsResponse = zSubscriptionList;
|
|
870
|
+
/**
|
|
871
|
+
* OK
|
|
872
|
+
*/
|
|
873
|
+
export const zSubscribeSubscriptionsResponse = zSubscriptionList.nullable();
|
|
73
874
|
//# sourceMappingURL=zod.gen.js.map
|