@bikefinder/api-client 0.3.0 → 0.4.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.
Files changed (46) hide show
  1. package/README.md +3 -1
  2. package/dist/admin/generated/index.d.ts +1 -1
  3. package/dist/admin/generated/index.d.ts.map +1 -1
  4. package/dist/admin/generated/sdk.gen.d.ts +132 -18
  5. package/dist/admin/generated/sdk.gen.d.ts.map +1 -1
  6. package/dist/admin/generated/sdk.gen.js +264 -150
  7. package/dist/admin/generated/sdk.gen.js.map +1 -1
  8. package/dist/admin/generated/types.gen.d.ts +791 -385
  9. package/dist/admin/generated/types.gen.d.ts.map +1 -1
  10. package/dist/admin/generated/zod.gen.d.ts +957 -988
  11. package/dist/admin/generated/zod.gen.d.ts.map +1 -1
  12. package/dist/admin/generated/zod.gen.js +239 -292
  13. package/dist/admin/generated/zod.gen.js.map +1 -1
  14. package/dist/generated/index.d.ts +1 -1
  15. package/dist/generated/index.d.ts.map +1 -1
  16. package/dist/generated/sdk.gen.d.ts +80 -45
  17. package/dist/generated/sdk.gen.d.ts.map +1 -1
  18. package/dist/generated/sdk.gen.js +192 -157
  19. package/dist/generated/sdk.gen.js.map +1 -1
  20. package/dist/generated/types.gen.d.ts +887 -453
  21. package/dist/generated/types.gen.d.ts.map +1 -1
  22. package/dist/generated/zod.gen.d.ts +468 -286
  23. package/dist/generated/zod.gen.d.ts.map +1 -1
  24. package/dist/generated/zod.gen.js +188 -201
  25. package/dist/generated/zod.gen.js.map +1 -1
  26. package/dist/realtime/api-stream-error.d.ts +2 -1
  27. package/dist/realtime/api-stream-error.d.ts.map +1 -1
  28. package/dist/realtime/api-stream-error.js +8 -1
  29. package/dist/realtime/api-stream-error.js.map +1 -1
  30. package/dist/realtime/watch.d.ts.map +1 -1
  31. package/dist/realtime/watch.js +1 -1
  32. package/dist/realtime/watch.js.map +1 -1
  33. package/dist/transport.js +10 -1
  34. package/dist/transport.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/admin/generated/index.ts +1 -7
  37. package/src/admin/generated/sdk.gen.ts +440 -326
  38. package/src/admin/generated/types.gen.ts +860 -464
  39. package/src/admin/generated/zod.gen.ts +259 -318
  40. package/src/generated/index.ts +6 -2
  41. package/src/generated/sdk.gen.ts +408 -373
  42. package/src/generated/types.gen.ts +956 -516
  43. package/src/generated/zod.gen.ts +217 -231
  44. package/src/realtime/api-stream-error.ts +12 -1
  45. package/src/realtime/watch.ts +6 -1
  46. package/src/transport.ts +10 -1
@@ -1,8 +1,8 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import * as z from "zod";
3
3
  export const zAdminAddMemberRequest = z.object({
4
- email: z.string(),
5
- description: z.string().optional().default(""),
4
+ email: z.string().max(320),
5
+ description: z.string().max(1000).optional().default(""),
6
6
  });
7
7
  export const zAdminB2bSubscriptionResult = z.object({
8
8
  success: z.boolean(),
@@ -19,18 +19,18 @@ export const zAdminB2bTier = z.enum([
19
19
  "b2b_7",
20
20
  ]);
21
21
  export const zAdminB2bSubscriptionRequest = z.object({
22
- company: z.string(),
23
- streetName: z.string(),
24
- postalArea: z.string(),
22
+ requestId: z.string().regex(/^[A-Za-z0-9_-]{16,128}$/),
23
+ company: z.string().max(128),
24
+ streetName: z.string().max(123),
25
+ postalArea: z.string().max(32),
25
26
  tier: zAdminB2bTier,
26
- country: z.string(),
27
- email: z.string(),
28
- quantity: z.int().gte(-9007199254740991).lte(9007199254740991),
29
- date: z.string(),
30
- nextPaymentDate: z.string(),
31
- tierInfo: z.string(),
32
- description: z.string().optional().default(""),
33
- requestId: z.string().nullish(),
27
+ country: z.string().regex(/^[A-Z]{2}$/),
28
+ email: z.string().max(125),
29
+ quantity: z.int().gte(1).lte(2147483647),
30
+ startsAt: z.iso.datetime({ offset: true }),
31
+ nextPaymentAt: z.iso.datetime({ offset: true }),
32
+ tierInfo: z.string().max(4000),
33
+ description: z.string().max(4000).optional().default(""),
34
34
  });
35
35
  export const zAdminBikeRequest = z.object({
36
36
  changes: z.record(z.string(), z.string()),
@@ -39,39 +39,28 @@ export const zAdminConfigurationRequest = z.object({
39
39
  values: z.record(z.string(), z.unknown()),
40
40
  });
41
41
  export const zAdminDenylistRequest = z.object({
42
- requestId: z.string(),
42
+ requestId: z
43
+ .string()
44
+ .regex(/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/),
43
45
  value: z.boolean(),
44
46
  expected: z.boolean(),
45
- reason: z.string().nullish(),
46
- });
47
- export const zAdminDeviceCommandResult = z.object({
48
- success: z.boolean(),
49
- commandId: z.string(),
50
- jobIds: z.array(z.string()),
47
+ reason: z.string().max(1000).nullish(),
51
48
  });
52
49
  export const zAdminFavoriteRequest = z.object({
53
- comment: z.string(),
54
- });
55
- export const zAdminGeneration = z.enum(["g1", "gen2"]);
56
- export const zAdminHistoryCollection = z.enum([
57
- "data",
58
- "images",
59
- "logs",
60
- "productionData",
61
- "sanitizedData",
62
- ]);
63
- export const zAdminInsuranceProvider = z.enum(["cycler", "hepster", "tryg"]);
50
+ comment: z.string().max(4000),
51
+ });
52
+ export const zAdminGeneration = z.enum(["gen1", "gen2"]);
64
53
  export const zAdminLinkSubscriptionRequest = z.object({
65
54
  subscriptionId: z.string(),
66
55
  });
67
56
  export const zAdminLookupRequest = z.object({
68
- uids: z.array(z.string()).nullish(),
69
- emails: z.array(z.string()).nullish(),
57
+ uids: z.array(z.string()).max(100).nullish(),
58
+ emails: z.array(z.string()).max(100).nullish(),
70
59
  });
71
60
  export const zAdminLookupUser = z.object({
72
61
  userId: z.string(),
73
- email: z.string().nullish(),
74
- nickname: z.string().nullish(),
62
+ email: z.string().nullable(),
63
+ nickname: z.string().nullable(),
75
64
  });
76
65
  export const zAdminLookupResult = z.object({
77
66
  uidsLookup: z.array(zAdminLookupUser),
@@ -87,26 +76,18 @@ export const zAdminModeRequest = z.object({
87
76
  mode: zAdminMode,
88
77
  });
89
78
  export const zAdminNotificationRequest = z.object({
90
- requestId: z.string(),
91
- title: z.string(),
92
- message: z.string(),
79
+ requestId: z
80
+ .string()
81
+ .regex(/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/),
82
+ title: z.string().max(200),
83
+ message: z.string().max(4000),
93
84
  supportTimestamp: z.boolean().nullish(),
94
- log: z.string().nullish(),
85
+ log: z.string().max(1000).nullish(),
95
86
  });
96
- export const zAdminPrivateDomain = z.enum([
97
- "battery",
98
- "firmware",
99
- "runtime",
100
- "statistics",
101
- ]);
102
- export const zAdminPublicDomain = z.enum([
103
- "battery",
104
- "configuration",
105
- "contact",
106
- "location",
107
- ]);
108
87
  export const zAdminRequestId = z.object({
109
- requestId: z.string(),
88
+ requestId: z
89
+ .string()
90
+ .regex(/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/),
110
91
  });
111
92
  export const zAdminSession = z.object({
112
93
  uid: z.string(),
@@ -114,7 +95,6 @@ export const zAdminSession = z.object({
114
95
  canWrite: z.boolean(),
115
96
  isSalesUser: z.boolean(),
116
97
  });
117
- export const zAdminSubscriptionSearchKind = z.enum(["b2b", "uid", "wooId"]);
118
98
  export const zAdminSupportValue = z
119
99
  .union([
120
100
  z.boolean(),
@@ -154,15 +134,15 @@ export const zAdminDocument = z.object({
154
134
  fields: zAdminSupportValue,
155
135
  });
156
136
  export const zAdminPublicStates = z.object({
157
- contact: zAdminDocument.nullish(),
158
- battery: zAdminDocument.nullish(),
159
- location: zAdminDocument.nullish(),
160
- configuration: zAdminDocument.nullish(),
137
+ contact: zAdminDocument.nullable(),
138
+ battery: zAdminDocument.nullable(),
139
+ location: zAdminDocument.nullable(),
140
+ configuration: zAdminDocument.nullable(),
161
141
  });
162
142
  export const zAdminReadResult = z.object({
163
143
  documents: z.array(zAdminDocument),
164
144
  nextCursor: z.string().nullable(),
165
- states: zAdminPublicStates.nullish(),
145
+ states: zAdminPublicStates.nullable(),
166
146
  });
167
147
  export const zAdminTimestamp = z.object({
168
148
  seconds: z.int().gte(-9007199254740991).lte(9007199254740991),
@@ -190,12 +170,11 @@ export const zAdminTrackerCommandRequest = z.object({
190
170
  command: zAdminTrackerCommand.nullable(),
191
171
  expectedCommand: z.string().nullable(),
192
172
  });
193
- export const zAdminTrackerSearchKind = z.enum([
194
- "iccid",
195
- "imei",
196
- "subscriptionId",
197
- "uid",
198
- ]);
173
+ export const zAdminTrackerCommandResult = z.object({
174
+ success: z.boolean(),
175
+ commandId: z.string(),
176
+ jobIds: z.array(z.string()),
177
+ });
199
178
  export const zCommandSuccess = z.object({
200
179
  success: z.boolean(),
201
180
  });
@@ -206,10 +185,10 @@ export const zAdminOperationalDomain = z.object({
206
185
  updatedAt: zAdminTimestamp,
207
186
  });
208
187
  export const zAdminOperationalDomains = z.object({
209
- battery: zAdminOperationalDomain.nullish(),
210
- runtime: zAdminOperationalDomain.nullish(),
211
- statistics: zAdminOperationalDomain.nullish(),
212
- firmware: zAdminOperationalDomain.nullish(),
188
+ battery: zAdminOperationalDomain.nullable(),
189
+ runtime: zAdminOperationalDomain.nullable(),
190
+ statistics: zAdminOperationalDomain.nullable(),
191
+ firmware: zAdminOperationalDomain.nullable(),
213
192
  });
214
193
  export const zAdminOperationalState = z.object({
215
194
  schemaVersion: z
@@ -246,61 +225,31 @@ export const zProblemDetails = z.object({
246
225
  .nullish(),
247
226
  detail: z.string().nullish(),
248
227
  instance: z.string().nullish(),
249
- });
250
- export const zAdminUploadTrackerPhotoBody = z
251
- .object({
252
- file: zIFormFile,
253
- })
254
- .and(z.object({
255
- kind: z.string(),
256
- }))
257
- .and(z.object({
258
- width: z
259
- .int()
260
- .min(-2147483648, {
261
- error: "Invalid value: Expected int32 to be >= -2147483648",
262
- })
263
- .max(2147483647, {
264
- error: "Invalid value: Expected int32 to be <= 2147483647",
265
- }),
266
- }))
267
- .and(z.object({
268
- height: z
269
- .int()
270
- .min(-2147483648, {
271
- error: "Invalid value: Expected int32 to be >= -2147483648",
272
- })
273
- .max(2147483647, {
274
- error: "Invalid value: Expected int32 to be <= 2147483647",
275
- }),
276
- }));
277
- export const zAdminUploadTrackerPhotoPath = z.object({
278
- trackerId: z
279
- .string()
280
- .min(1)
281
- .max(128)
282
- .regex(/^[A-Za-z0-9_-]+$/),
228
+ code: z.string(),
229
+ traceId: z.string(),
230
+ errors: z.record(z.string(), z.array(z.string())).optional(),
283
231
  });
284
232
  /**
285
233
  * OK
286
234
  */
287
- export const zAdminUploadTrackerPhotoResponse = zPhotoUploadResult;
235
+ export const zAdminGetSessionResponse = zAdminSession;
288
236
  export const zAdminGetTrackerPath = z.object({
289
237
  trackerId: z
290
238
  .string()
291
- .min(1)
292
- .max(128)
293
- .regex(/^[A-Za-z0-9_-]+$/),
239
+ .length(32)
240
+ .regex(/^[a-f0-9]{32}$/),
294
241
  });
295
242
  export const zAdminGetTrackerQuery = z.object({
296
- domains: z.array(zAdminPublicDomain).optional(),
243
+ domains: z
244
+ .array(z.enum(["battery", "configuration", "contact", "location"]))
245
+ .optional(),
297
246
  });
298
247
  /**
299
248
  * OK
300
249
  */
301
250
  export const zAdminGetTrackerResponse = zAdminReadResult;
302
251
  export const zAdminSearchTrackersQuery = z.object({
303
- kind: zAdminTrackerSearchKind,
252
+ kind: z.enum(["iccid", "imei", "subscriptionId", "uid"]),
304
253
  value: z.string(),
305
254
  cursor: z.string().optional(),
306
255
  });
@@ -308,140 +257,124 @@ export const zAdminSearchTrackersQuery = z.object({
308
257
  * OK
309
258
  */
310
259
  export const zAdminSearchTrackersResponse = zAdminReadResult;
311
- export const zAdminGetUserPath = z.object({
312
- uid: z.string(),
313
- });
314
- /**
315
- * OK
316
- */
317
- export const zAdminGetUserResponse = zAdminReadResult;
318
- export const zAdminGetSubscriptionPath = z.object({
319
- subscriptionId: z.string(),
260
+ export const zAdminListTrackerHistoryPath = z.object({
261
+ trackerId: z
262
+ .string()
263
+ .length(32)
264
+ .regex(/^[a-f0-9]{32}$/),
265
+ collection: z.enum([
266
+ "data",
267
+ "images",
268
+ "logs",
269
+ "productionData",
270
+ "sanitizedData",
271
+ ]),
320
272
  });
321
- /**
322
- * OK
323
- */
324
- export const zAdminGetSubscriptionResponse = zAdminReadResult;
325
- export const zAdminSearchSubscriptionsQuery = z.object({
326
- kind: zAdminSubscriptionSearchKind,
327
- value: z.string().optional().default(""),
273
+ export const zAdminListTrackerHistoryQuery = z.object({
274
+ from: z.iso.datetime({ offset: true }).optional(),
275
+ to: z.iso.datetime({ offset: true }).optional(),
328
276
  cursor: z.string().optional(),
329
277
  });
330
278
  /**
331
279
  * OK
332
280
  */
333
- export const zAdminSearchSubscriptionsResponse = zAdminReadResult;
334
- export const zAdminListInsurancePath = z.object({
335
- subscriptionId: z.string(),
336
- provider: zAdminInsuranceProvider,
281
+ export const zAdminListTrackerHistoryResponse = zAdminReadResult;
282
+ export const zAdminGetTrackerOperationalStatePath = z.object({
283
+ trackerId: z
284
+ .string()
285
+ .length(32)
286
+ .regex(/^[a-f0-9]{32}$/),
337
287
  });
338
- export const zAdminListInsuranceQuery = z.object({
339
- cursor: z.string().optional(),
288
+ export const zAdminGetTrackerOperationalStateQuery = z.object({
289
+ domains: z.array(z.enum(["battery", "firmware", "runtime", "statistics"])),
340
290
  });
341
291
  /**
342
292
  * OK
343
293
  */
344
- export const zAdminListInsuranceResponse = zAdminReadResult;
345
- export const zAdminListFavoritesQuery = z.object({
346
- cursor: z.string().optional(),
294
+ export const zAdminGetTrackerOperationalStateResponse = zAdminOperationalState;
295
+ export const zAdminRequestTrackerModeBody = zAdminModeRequest;
296
+ export const zAdminRequestTrackerModePath = z.object({
297
+ trackerId: z
298
+ .string()
299
+ .length(32)
300
+ .regex(/^[a-f0-9]{32}$/),
347
301
  });
348
302
  /**
349
303
  * OK
350
304
  */
351
- export const zAdminListFavoritesResponse = zAdminReadResult;
352
- export const zAdminDeleteFavoritePath = z.object({
305
+ export const zAdminRequestTrackerModeResponse = zCommandSuccess;
306
+ export const zAdminRequestTrackerCommandBody = zAdminTrackerCommandRequest;
307
+ export const zAdminRequestTrackerCommandPath = z.object({
353
308
  trackerId: z
354
309
  .string()
355
- .min(1)
356
- .max(128)
357
- .regex(/^[A-Za-z0-9_-]+$/),
310
+ .length(32)
311
+ .regex(/^[a-f0-9]{32}$/),
358
312
  });
359
313
  /**
360
314
  * OK
361
315
  */
362
- export const zAdminDeleteFavoriteResponse = zCommandSuccess;
363
- export const zAdminGetFavoritePath = z.object({
316
+ export const zAdminRequestTrackerCommandResponse = zCommandSuccess;
317
+ export const zAdminUpdateTrackerConfigurationBody = zAdminConfigurationRequest;
318
+ export const zAdminUpdateTrackerConfigurationPath = z.object({
364
319
  trackerId: z
365
320
  .string()
366
- .min(1)
367
- .max(128)
368
- .regex(/^[A-Za-z0-9_-]+$/),
321
+ .length(32)
322
+ .regex(/^[a-f0-9]{32}$/),
369
323
  });
370
324
  /**
371
325
  * OK
372
326
  */
373
- export const zAdminGetFavoriteResponse = zAdminReadResult;
374
- export const zAdminUpdateFavoriteCommentBody = zAdminFavoriteRequest;
375
- export const zAdminUpdateFavoriteCommentPath = z.object({
327
+ export const zAdminUpdateTrackerConfigurationResponse = zCommandSuccess;
328
+ export const zAdminUpdateTrackerBikeBody = zAdminBikeRequest;
329
+ export const zAdminUpdateTrackerBikePath = z.object({
376
330
  trackerId: z
377
331
  .string()
378
- .min(1)
379
- .max(128)
380
- .regex(/^[A-Za-z0-9_-]+$/),
332
+ .length(32)
333
+ .regex(/^[a-f0-9]{32}$/),
381
334
  });
382
335
  /**
383
336
  * OK
384
337
  */
385
- export const zAdminUpdateFavoriteCommentResponse = zCommandSuccess;
386
- export const zAdminPutFavoriteBody = zAdminFavoriteRequest;
387
- export const zAdminPutFavoritePath = z.object({
338
+ export const zAdminUpdateTrackerBikeResponse = zCommandSuccess;
339
+ export const zAdminCleanTrackerBody = zAdminRequestId;
340
+ export const zAdminCleanTrackerPath = z.object({
388
341
  trackerId: z
389
342
  .string()
390
- .min(1)
391
- .max(128)
392
- .regex(/^[A-Za-z0-9_-]+$/),
343
+ .length(32)
344
+ .regex(/^[a-f0-9]{32}$/),
393
345
  });
394
346
  /**
395
- * OK
347
+ * Accepted
396
348
  */
397
- export const zAdminPutFavoriteResponse = zCommandSuccess;
398
- export const zAdminListTrackerHistoryPath = z.object({
349
+ export const zAdminCleanTrackerResponse = zAdminTrackerCommandResult;
350
+ export const zAdminSetTrackerDenylistBody = zAdminDenylistRequest;
351
+ export const zAdminSetTrackerDenylistPath = z.object({
399
352
  trackerId: z
400
353
  .string()
401
- .min(1)
402
- .max(128)
403
- .regex(/^[A-Za-z0-9_-]+$/),
404
- collection: zAdminHistoryCollection,
405
- });
406
- export const zAdminListTrackerHistoryQuery = z.object({
407
- from: z.int().gte(-9007199254740991).lte(9007199254740991).optional(),
408
- to: z.int().gte(-9007199254740991).lte(9007199254740991).optional(),
409
- cursor: z.string().optional(),
354
+ .length(32)
355
+ .regex(/^[a-f0-9]{32}$/),
410
356
  });
411
357
  /**
412
358
  * OK
413
359
  */
414
- export const zAdminListTrackerHistoryResponse = zAdminReadResult;
415
- export const zAdminGetTrackerOperationalStatePath = z.object({
360
+ export const zAdminSetTrackerDenylistResponse = zAdminTrackerCommandResult;
361
+ export const zAdminNotifyTrackerBody = zAdminNotificationRequest;
362
+ export const zAdminNotifyTrackerPath = z.object({
416
363
  trackerId: z
417
364
  .string()
418
- .min(1)
419
- .max(128)
420
- .regex(/^[A-Za-z0-9_-]+$/),
365
+ .length(32)
366
+ .regex(/^[a-f0-9]{32}$/),
421
367
  });
422
- export const zAdminGetTrackerOperationalStateQuery = z.object({
423
- domains: z.array(zAdminPrivateDomain),
424
- });
425
- /**
426
- * OK
427
- */
428
- export const zAdminGetTrackerOperationalStateResponse = zAdminOperationalState;
429
- /**
430
- * OK
431
- */
432
- export const zAdminGetSessionResponse = zAdminSession;
433
- export const zAdminLookupUsersBody = zAdminLookupRequest;
434
368
  /**
435
- * OK
369
+ * Accepted
436
370
  */
437
- export const zAdminLookupUsersResponse = zAdminLookupResult;
371
+ export const zAdminNotifyTrackerResponse = zAdminTrackerCommandResult;
438
372
  export const zAdminAddTrackerMemberBody = zAdminAddMemberRequest;
439
373
  export const zAdminAddTrackerMemberPath = z.object({
440
374
  trackerId: z
441
375
  .string()
442
- .min(1)
443
- .max(128)
444
- .regex(/^[A-Za-z0-9_-]+$/),
376
+ .length(32)
377
+ .regex(/^[a-f0-9]{32}$/),
445
378
  });
446
379
  /**
447
380
  * OK
@@ -450,181 +383,206 @@ export const zAdminAddTrackerMemberResponse = zCommandSuccess;
450
383
  export const zAdminRemoveTrackerMemberPath = z.object({
451
384
  trackerId: z
452
385
  .string()
453
- .min(1)
454
- .max(128)
455
- .regex(/^[A-Za-z0-9_-]+$/),
386
+ .length(32)
387
+ .regex(/^[a-f0-9]{32}$/),
456
388
  uid: z.string(),
457
389
  });
458
390
  /**
459
391
  * OK
460
392
  */
461
393
  export const zAdminRemoveTrackerMemberResponse = zCommandSuccess;
462
- export const zAdminRequestTrackerModeBody = zAdminModeRequest;
463
- export const zAdminRequestTrackerModePath = z.object({
394
+ export const zAdminUnlinkTrackerSubscriptionPath = z.object({
464
395
  trackerId: z
465
396
  .string()
466
- .min(1)
467
- .max(128)
468
- .regex(/^[A-Za-z0-9_-]+$/),
397
+ .length(32)
398
+ .regex(/^[a-f0-9]{32}$/),
469
399
  });
470
400
  /**
471
401
  * OK
472
402
  */
473
- export const zAdminRequestTrackerModeResponse = zCommandSuccess;
474
- export const zAdminRequestTrackerCommandBody = zAdminTrackerCommandRequest;
475
- export const zAdminRequestTrackerCommandPath = z.object({
403
+ export const zAdminUnlinkTrackerSubscriptionResponse = zCommandSuccess;
404
+ export const zAdminLinkTrackerSubscriptionBody = zAdminLinkSubscriptionRequest;
405
+ export const zAdminLinkTrackerSubscriptionPath = z.object({
476
406
  trackerId: z
477
407
  .string()
478
- .min(1)
479
- .max(128)
480
- .regex(/^[A-Za-z0-9_-]+$/),
408
+ .length(32)
409
+ .regex(/^[a-f0-9]{32}$/),
481
410
  });
482
411
  /**
483
412
  * OK
484
413
  */
485
- export const zAdminRequestTrackerCommandResponse = zCommandSuccess;
486
- export const zAdminUpdateTrackerConfigurationBody = zAdminConfigurationRequest;
487
- export const zAdminUpdateTrackerConfigurationPath = z.object({
414
+ export const zAdminLinkTrackerSubscriptionResponse = zCommandSuccess;
415
+ export const zAdminRequestTrackerInsuranceBody = zAdminRequestId;
416
+ export const zAdminRequestTrackerInsurancePath = z.object({
488
417
  trackerId: z
489
418
  .string()
490
- .min(1)
491
- .max(128)
492
- .regex(/^[A-Za-z0-9_-]+$/),
419
+ .length(32)
420
+ .regex(/^[a-f0-9]{32}$/),
493
421
  });
494
422
  /**
495
- * OK
423
+ * Accepted
496
424
  */
497
- export const zAdminUpdateTrackerConfigurationResponse = zCommandSuccess;
498
- export const zAdminUpdateTrackerBikeBody = zAdminBikeRequest;
499
- export const zAdminUpdateTrackerBikePath = z.object({
425
+ export const zAdminRequestTrackerInsuranceResponse = zCommandSuccess;
426
+ export const zAdminReconcileTrackerSubscriptionBody = zAdminRequestId;
427
+ export const zAdminReconcileTrackerSubscriptionPath = z.object({
500
428
  trackerId: z
501
429
  .string()
502
- .min(1)
503
- .max(128)
504
- .regex(/^[A-Za-z0-9_-]+$/),
430
+ .length(32)
431
+ .regex(/^[a-f0-9]{32}$/),
505
432
  });
506
433
  /**
507
- * OK
434
+ * Accepted
508
435
  */
509
- export const zAdminUpdateTrackerBikeResponse = zCommandSuccess;
510
- export const zAdminCleanTrackerBody = zAdminRequestId;
511
- export const zAdminCleanTrackerPath = z.object({
436
+ export const zAdminReconcileTrackerSubscriptionResponse = zCommandSuccess;
437
+ export const zAdminUploadTrackerPhotoBody = z.object({
438
+ file: z.string().max(10485760),
439
+ kind: z.enum(["bike", "installation", "receipt"]),
440
+ width: z.int().gte(1).lte(16384),
441
+ height: z.int().gte(1).lte(16384),
442
+ });
443
+ export const zAdminUploadTrackerPhotoPath = z.object({
512
444
  trackerId: z
513
445
  .string()
514
- .min(1)
515
- .max(128)
516
- .regex(/^[A-Za-z0-9_-]+$/),
446
+ .length(32)
447
+ .regex(/^[a-f0-9]{32}$/),
517
448
  });
518
449
  /**
519
450
  * OK
520
451
  */
521
- export const zAdminCleanTrackerResponse = zAdminDeviceCommandResult;
522
- export const zAdminSetTrackerDenylistBody = zAdminDenylistRequest;
523
- export const zAdminSetTrackerDenylistPath = z.object({
452
+ export const zAdminUploadTrackerPhotoResponse = zPhotoUploadResult;
453
+ export const zAdminSubscribeTrackerPath = z.object({
524
454
  trackerId: z
525
455
  .string()
526
- .min(1)
527
- .max(128)
528
- .regex(/^[A-Za-z0-9_-]+$/),
456
+ .length(32)
457
+ .regex(/^[a-f0-9]{32}$/),
529
458
  });
530
459
  /**
531
460
  * OK
532
461
  */
533
- export const zAdminSetTrackerDenylistResponse = zAdminDeviceCommandResult;
534
- export const zAdminNotifyTrackerBody = zAdminNotificationRequest;
535
- export const zAdminNotifyTrackerPath = z.object({
536
- trackerId: z
537
- .string()
538
- .min(1)
539
- .max(128)
540
- .regex(/^[A-Za-z0-9_-]+$/),
462
+ export const zAdminSubscribeTrackerResponse = zAdminTrackerView.nullable();
463
+ export const zAdminGetUserPath = z.object({
464
+ uid: z.string(),
541
465
  });
542
466
  /**
543
467
  * OK
544
468
  */
545
- export const zAdminNotifyTrackerResponse = zAdminDeviceCommandResult;
546
- export const zAdminUnlinkTrackerSubscriptionPath = z.object({
547
- trackerId: z
548
- .string()
549
- .min(1)
550
- .max(128)
551
- .regex(/^[A-Za-z0-9_-]+$/),
469
+ export const zAdminGetUserResponse = zAdminReadResult;
470
+ export const zAdminLookupUsersBody = zAdminLookupRequest;
471
+ /**
472
+ * OK
473
+ */
474
+ export const zAdminLookupUsersResponse = zAdminLookupResult;
475
+ export const zAdminRequestUserInsuranceBody = zAdminRequestId;
476
+ export const zAdminRequestUserInsurancePath = z.object({
477
+ uid: z.string(),
478
+ });
479
+ /**
480
+ * Accepted
481
+ */
482
+ export const zAdminRequestUserInsuranceResponse = zCommandSuccess;
483
+ export const zAdminLinkSingleSubscriptionBody = zAdminRequestId;
484
+ export const zAdminLinkSingleSubscriptionPath = z.object({
485
+ uid: z.string(),
552
486
  });
553
487
  /**
554
488
  * OK
555
489
  */
556
- export const zAdminUnlinkTrackerSubscriptionResponse = zCommandSuccess;
557
- export const zAdminLinkTrackerSubscriptionBody = zAdminLinkSubscriptionRequest;
558
- export const zAdminLinkTrackerSubscriptionPath = z.object({
559
- trackerId: z
560
- .string()
561
- .min(1)
562
- .max(128)
563
- .regex(/^[A-Za-z0-9_-]+$/),
490
+ export const zAdminLinkSingleSubscriptionResponse = zCommandSuccess;
491
+ export const zAdminGetSubscriptionPath = z.object({
492
+ subscriptionId: z.string(),
564
493
  });
565
494
  /**
566
495
  * OK
567
496
  */
568
- export const zAdminLinkTrackerSubscriptionResponse = zCommandSuccess;
497
+ export const zAdminGetSubscriptionResponse = zAdminReadResult;
498
+ export const zAdminSearchSubscriptionsQuery = z.object({
499
+ kind: z.enum(["b2b", "uid", "wooId"]),
500
+ value: z.string().optional().default(""),
501
+ cursor: z.string().optional(),
502
+ });
503
+ /**
504
+ * OK
505
+ */
506
+ export const zAdminSearchSubscriptionsResponse = zAdminReadResult;
507
+ export const zAdminListInsurancePath = z.object({
508
+ subscriptionId: z.string(),
509
+ provider: z.enum(["cycler", "hepster", "tryg"]),
510
+ });
511
+ export const zAdminListInsuranceQuery = z.object({
512
+ cursor: z.string().optional(),
513
+ });
514
+ /**
515
+ * OK
516
+ */
517
+ export const zAdminListInsuranceResponse = zAdminReadResult;
569
518
  export const zAdminRequestSubscriptionInsuranceBody = zAdminRequestId;
570
519
  export const zAdminRequestSubscriptionInsurancePath = z.object({
571
520
  subscriptionId: z.string(),
572
521
  });
573
522
  /**
574
- * OK
523
+ * Accepted
575
524
  */
576
525
  export const zAdminRequestSubscriptionInsuranceResponse = zCommandSuccess;
577
- export const zAdminRequestUserInsuranceBody = zAdminRequestId;
578
- export const zAdminRequestUserInsurancePath = z.object({
579
- uid: z.string(),
526
+ export const zAdminRefreshSubscriptionBody = zAdminRequestId;
527
+ export const zAdminRefreshSubscriptionPath = z.object({
528
+ subscriptionId: z.string(),
529
+ });
530
+ /**
531
+ * Accepted
532
+ */
533
+ export const zAdminRefreshSubscriptionResponse = zCommandSuccess;
534
+ export const zAdminListFavoritesQuery = z.object({
535
+ cursor: z.string().optional(),
580
536
  });
581
537
  /**
582
538
  * OK
583
539
  */
584
- export const zAdminRequestUserInsuranceResponse = zCommandSuccess;
585
- export const zAdminRequestTrackerInsuranceBody = zAdminRequestId;
586
- export const zAdminRequestTrackerInsurancePath = z.object({
540
+ export const zAdminListFavoritesResponse = zAdminReadResult;
541
+ export const zAdminDeleteFavoritePath = z.object({
587
542
  trackerId: z
588
543
  .string()
589
- .min(1)
590
- .max(128)
591
- .regex(/^[A-Za-z0-9_-]+$/),
544
+ .length(32)
545
+ .regex(/^[a-f0-9]{32}$/),
592
546
  });
593
547
  /**
594
548
  * OK
595
549
  */
596
- export const zAdminRequestTrackerInsuranceResponse = zCommandSuccess;
597
- export const zAdminReconcileTrackerSubscriptionBody = zAdminRequestId;
598
- export const zAdminReconcileTrackerSubscriptionPath = z.object({
550
+ export const zAdminDeleteFavoriteResponse = zCommandSuccess;
551
+ export const zAdminGetFavoritePath = z.object({
599
552
  trackerId: z
600
553
  .string()
601
- .min(1)
602
- .max(128)
603
- .regex(/^[A-Za-z0-9_-]+$/),
554
+ .length(32)
555
+ .regex(/^[a-f0-9]{32}$/),
604
556
  });
605
557
  /**
606
558
  * OK
607
559
  */
608
- export const zAdminReconcileTrackerSubscriptionResponse = zCommandSuccess;
609
- export const zAdminRefreshSubscriptionBody = zAdminRequestId;
610
- export const zAdminRefreshSubscriptionPath = z.object({
611
- subscriptionId: z.string(),
560
+ export const zAdminGetFavoriteResponse = zAdminReadResult;
561
+ export const zAdminUpdateFavoriteCommentBody = zAdminFavoriteRequest;
562
+ export const zAdminUpdateFavoriteCommentPath = z.object({
563
+ trackerId: z
564
+ .string()
565
+ .length(32)
566
+ .regex(/^[a-f0-9]{32}$/),
612
567
  });
613
568
  /**
614
569
  * OK
615
570
  */
616
- export const zAdminRefreshSubscriptionResponse = zCommandSuccess;
617
- export const zAdminLinkSingleSubscriptionBody = zAdminRequestId;
618
- export const zAdminLinkSingleSubscriptionPath = z.object({
619
- uid: z.string(),
571
+ export const zAdminUpdateFavoriteCommentResponse = zCommandSuccess;
572
+ export const zAdminPutFavoriteBody = zAdminFavoriteRequest;
573
+ export const zAdminPutFavoritePath = z.object({
574
+ trackerId: z
575
+ .string()
576
+ .length(32)
577
+ .regex(/^[a-f0-9]{32}$/),
620
578
  });
621
579
  /**
622
580
  * OK
623
581
  */
624
- export const zAdminLinkSingleSubscriptionResponse = zCommandSuccess;
582
+ export const zAdminPutFavoriteResponse = zCommandSuccess;
625
583
  export const zAdminCreateB2bSubscriptionBody = zAdminB2bSubscriptionRequest;
626
584
  /**
627
- * OK
585
+ * Created
628
586
  */
629
587
  export const zAdminCreateB2bSubscriptionResponse = zAdminB2bSubscriptionResult;
630
588
  export const zAdminCancelB2bSubscriptionPath = z.object({
@@ -638,22 +596,11 @@ export const zAdminSyncB2bInsurancePath = z.object({
638
596
  subscriptionId: z.string(),
639
597
  });
640
598
  /**
641
- * OK
599
+ * Accepted
642
600
  */
643
601
  export const zAdminSyncB2bInsuranceResponse = zCommandSuccess;
644
602
  /**
645
- * OK
603
+ * Accepted
646
604
  */
647
605
  export const zAdminSyncAllB2bInsuranceResponse = zCommandSuccess;
648
- export const zAdminSubscribeTrackerPath = 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 zAdminSubscribeTrackerResponse = zAdminTrackerView.nullable();
659
606
  //# sourceMappingURL=zod.gen.js.map