@bikefinder/api-client 0.6.0 → 0.11.1

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 (39) hide show
  1. package/README.md +17 -6
  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 +46 -58
  5. package/dist/admin/generated/sdk.gen.d.ts.map +1 -1
  6. package/dist/admin/generated/sdk.gen.js +480 -233
  7. package/dist/admin/generated/sdk.gen.js.map +1 -1
  8. package/dist/admin/generated/types.gen.d.ts +601 -824
  9. package/dist/admin/generated/types.gen.d.ts.map +1 -1
  10. package/dist/admin/generated/zod.gen.d.ts +1490 -3261
  11. package/dist/admin/generated/zod.gen.d.ts.map +1 -1
  12. package/dist/admin/generated/zod.gen.js +213 -305
  13. package/dist/admin/generated/zod.gen.js.map +1 -1
  14. package/dist/admin/index.d.ts +1 -1
  15. package/dist/admin/index.d.ts.map +1 -1
  16. package/dist/admin/index.js +1 -1
  17. package/dist/admin/index.js.map +1 -1
  18. package/dist/generated/index.d.ts +1 -1
  19. package/dist/generated/index.d.ts.map +1 -1
  20. package/dist/generated/sdk.gen.d.ts +24 -8
  21. package/dist/generated/sdk.gen.d.ts.map +1 -1
  22. package/dist/generated/sdk.gen.js +63 -19
  23. package/dist/generated/sdk.gen.js.map +1 -1
  24. package/dist/generated/types.gen.d.ts +314 -37
  25. package/dist/generated/types.gen.d.ts.map +1 -1
  26. package/dist/generated/zod.gen.d.ts +365 -113
  27. package/dist/generated/zod.gen.d.ts.map +1 -1
  28. package/dist/generated/zod.gen.js +133 -28
  29. package/dist/generated/zod.gen.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/admin/generated/index.ts +73 -97
  32. package/src/admin/generated/sdk.gen.ts +678 -468
  33. package/src/admin/generated/types.gen.ts +723 -976
  34. package/src/admin/generated/zod.gen.ts +261 -371
  35. package/src/admin/index.ts +1 -1
  36. package/src/generated/index.ts +44 -12
  37. package/src/generated/sdk.gen.ts +150 -44
  38. package/src/generated/types.gen.ts +373 -44
  39. package/src/generated/zod.gen.ts +154 -29
@@ -57,56 +57,6 @@ export const zAdminDenylistRequest = z.object({
57
57
  reason: z.string().max(1000).nullish(),
58
58
  });
59
59
 
60
- export const zAdminEvidenceAccountsRequest = z.object({
61
- accountIds: z.array(z.string()).min(1).max(20),
62
- });
63
-
64
- export const zAdminEvidenceDomain = z.enum([
65
- "battery",
66
- "versions",
67
- "reporting",
68
- "configuration",
69
- "membershipReference",
70
- "membershipState",
71
- "commerceReference",
72
- "plan",
73
- "availability",
74
- "bindingCount",
75
- ]);
76
-
77
- export const zAdminEvidenceHistoryGroup = z.enum([
78
- "battery",
79
- "versions",
80
- "reporting",
81
- "diagnostics",
82
- ]);
83
-
84
- export const zAdminEvidenceHistorySource = z.enum([
85
- "data",
86
- "sanitizedData",
87
- "bluetooth",
88
- "audit",
89
- "commandPackets",
90
- ]);
91
-
92
- export const zAdminEvidenceInsuranceRecords = z
93
- .enum(["contracts", "creationAttempts"])
94
- .default("contracts");
95
-
96
- export const zAdminEvidenceLayout = z.enum(["legacy", "shared"]);
97
-
98
- export const zAdminEvidenceOperationalDomain = z.enum([
99
- "runtime",
100
- "firmware",
101
- "commands",
102
- "statistics",
103
- ]);
104
-
105
- export const zAdminEvidencePageRequest = z.object({
106
- accountIds: z.array(z.string()).min(1).max(20),
107
- after: z.string().min(1).max(254).nullish(),
108
- });
109
-
110
60
  export const zAdminFavoriteRequest = z.object({
111
61
  comment: z.string().max(4000),
112
62
  });
@@ -115,13 +65,6 @@ export const zAdminGeneration = z.enum(["gen1", "gen2"]);
115
65
 
116
66
  export const zAdminInsuranceProvider = z.enum(["cycler", "hepster", "tryg"]);
117
67
 
118
- export const zAdminInsuranceEvidenceRequest = z.object({
119
- accountIds: z.array(z.string()).min(1).max(20),
120
- provider: zAdminInsuranceProvider,
121
- records: zAdminEvidenceInsuranceRecords.optional(),
122
- after: z.string().min(1).max(254).nullish(),
123
- });
124
-
125
68
  export const zAdminLinkSubscriptionRequest = z.object({
126
69
  subscriptionId: z.string(),
127
70
  });
@@ -165,41 +108,6 @@ export const zAdminNotificationRequest = z.object({
165
108
  log: z.string().max(1000).nullish(),
166
109
  });
167
110
 
168
- export const zAdminOperationalEvidenceRequest = z.object({
169
- accountIds: z.array(z.string()).min(1).max(20),
170
- domain: zAdminEvidenceOperationalDomain,
171
- });
172
-
173
- export const zAdminRelationshipKind = z.enum([
174
- "subscriptionBinding",
175
- "deviceAccount",
176
- ]);
177
-
178
- export const zAdminRelationshipChangeRequest = z.object({
179
- accountIds: z.array(z.string()).min(1).max(20),
180
- kind: zAdminRelationshipKind,
181
- accountId: z.string().min(1).max(128),
182
- expectedVersion: z.string().regex(/^[a-f0-9]{64}$/),
183
- subscriptionId: z.string().nullish(),
184
- allowLastAccountCleanup: z.boolean().optional().default(false),
185
- });
186
-
187
- export const zAdminRelationshipRequest = z.object({
188
- accountIds: z.array(z.string()).min(1).max(20),
189
- kind: zAdminRelationshipKind,
190
- });
191
-
192
- export const zAdminRelationshipVerification = z.object({
193
- verified: z.boolean(),
194
- });
195
-
196
- export const zAdminRelationshipVerificationRequest = z.object({
197
- kind: zAdminRelationshipKind,
198
- accountId: z.string().min(1).max(128),
199
- remainingAccountIds: z.array(z.string()).max(100),
200
- subscriptionId: z.string().nullish(),
201
- });
202
-
203
111
  export const zAdminRequestId = z.object({
204
112
  requestId: z
205
113
  .string()
@@ -258,17 +166,9 @@ export const zAdminDocument = z.object({
258
166
  fields: zAdminSupportValue,
259
167
  });
260
168
 
261
- export const zAdminPublicStates = z.object({
262
- contact: zAdminDocument.nullable(),
263
- battery: zAdminDocument.nullable(),
264
- location: zAdminDocument.nullable(),
265
- configuration: zAdminDocument.nullable(),
266
- });
267
-
268
169
  export const zAdminReadResult = z.object({
269
170
  documents: z.array(zAdminDocument),
270
171
  nextCursor: z.string().nullable(),
271
- states: zAdminPublicStates.nullable(),
272
172
  });
273
173
 
274
174
  export const zAdminTimestamp = z.object({
@@ -283,55 +183,6 @@ export const zAdminTimestamp = z.object({
283
183
  }),
284
184
  });
285
185
 
286
- export const zAdminEvidenceCursor = z.object({
287
- timestamp: zAdminTimestamp,
288
- id: z.string().min(1).max(254),
289
- });
290
-
291
- export const zAdminEvidenceDocument = z.object({
292
- id: z.string(),
293
- path: z.string(),
294
- exists: z.boolean(),
295
- fields: zAdminSupportValue.nullable(),
296
- updatedAt: zAdminTimestamp.nullable(),
297
- createdAt: zAdminTimestamp.nullable(),
298
- readAt: zAdminTimestamp,
299
- });
300
-
301
- export const zAdminEvidenceHistoryRequest = z.object({
302
- accountId: z.string().min(1).max(128),
303
- source: zAdminEvidenceHistorySource,
304
- from: z.iso.datetime({ offset: true }),
305
- to: z.iso.datetime({ offset: true }),
306
- after: zAdminEvidenceCursor.nullish(),
307
- fields: z.array(zAdminEvidenceHistoryGroup).min(1).max(4).nullish(),
308
- });
309
-
310
- export const zAdminEvidenceSnapshot = z.object({
311
- documents: z.array(zAdminEvidenceDocument),
312
- relatedDocuments: z.array(zAdminEvidenceDocument),
313
- readAt: zAdminTimestamp,
314
- });
315
-
316
- export const zAdminEvidencePage = z.object({
317
- snapshot: zAdminEvidenceSnapshot,
318
- nextAfter: z.string().nullable(),
319
- scannedRecordCount: z
320
- .int()
321
- .min(-2147483648, {
322
- error: "Invalid value: Expected int32 to be >= -2147483648",
323
- })
324
- .max(2147483647, {
325
- error: "Invalid value: Expected int32 to be <= 2147483647",
326
- }),
327
- });
328
-
329
- export const zAdminOperationalEvidence = z.object({
330
- domain: zAdminEvidenceOperationalDomain,
331
- layout: zAdminEvidenceLayout,
332
- snapshot: zAdminEvidenceSnapshot,
333
- });
334
-
335
186
  export const zAdminTrackerCommand = z.enum([
336
187
  "changeEncryptionKey",
337
188
  "changeRareConfigs",
@@ -355,10 +206,8 @@ export const zAdminTrackerCommandResult = z.object({
355
206
  jobIds: z.array(z.string()),
356
207
  });
357
208
 
358
- export const zAdminTrackerFactsRequest = z.object({
359
- target: z.string().min(1).max(254),
360
- accountIds: z.array(z.string()).min(1).max(20),
361
- domain: zAdminEvidenceDomain,
209
+ export const zAdminTrackerView = z.object({
210
+ tracker: zAdminReadResult,
362
211
  });
363
212
 
364
213
  export const zCommandSuccess = z.object({
@@ -367,40 +216,6 @@ export const zCommandSuccess = z.object({
367
216
 
368
217
  export const zIFormFile = z.string();
369
218
 
370
- export const zJsonElement = z.unknown();
371
-
372
- export const zAdminOperationalDomain = z.object({
373
- state: zJsonElement,
374
- updatedAt: zAdminTimestamp,
375
- });
376
-
377
- export const zAdminOperationalDomains = z.object({
378
- battery: zAdminOperationalDomain.nullable(),
379
- runtime: zAdminOperationalDomain.nullable(),
380
- statistics: zAdminOperationalDomain.nullable(),
381
- firmware: zAdminOperationalDomain.nullable(),
382
- });
383
-
384
- export const zAdminOperationalState = z.object({
385
- schemaVersion: z
386
- .int()
387
- .min(-2147483648, {
388
- error: "Invalid value: Expected int32 to be >= -2147483648",
389
- })
390
- .max(2147483647, {
391
- error: "Invalid value: Expected int32 to be <= 2147483647",
392
- }),
393
- deviceId: z.string(),
394
- deviceEpoch: z.string(),
395
- deviceCreatedAt: zAdminTimestamp,
396
- domains: zAdminOperationalDomains,
397
- });
398
-
399
- export const zAdminTrackerView = z.object({
400
- tracker: zAdminReadResult,
401
- operationalState: zAdminOperationalState.nullable(),
402
- });
403
-
404
219
  export const zPhotoUploadResult = z.object({
405
220
  id: z.string(),
406
221
  });
@@ -424,198 +239,130 @@ export const zProblemDetails = z.object({
424
239
  errors: z.record(z.string(), z.array(z.string())).optional(),
425
240
  });
426
241
 
427
- export const zAdminQueryTrackerOperationalEvidenceBody =
428
- zAdminOperationalEvidenceRequest;
429
-
430
- export const zAdminQueryTrackerOperationalEvidencePath = z.object({
431
- trackerId: z
432
- .string()
433
- .length(32)
434
- .regex(/^[a-f0-9]{32}$/),
435
- });
436
-
437
- /**
438
- * OK
439
- */
440
- export const zAdminQueryTrackerOperationalEvidenceResponse =
441
- zAdminOperationalEvidence;
442
-
443
- export const zAdminQueryTrackerJobEvidenceBody = zAdminEvidencePageRequest;
444
-
445
- export const zAdminQueryTrackerJobEvidencePath = z.object({
446
- trackerId: z
447
- .string()
448
- .length(32)
449
- .regex(/^[a-f0-9]{32}$/),
242
+ export const zSupportEvidenceAccountsRequest = z.object({
243
+ accountIds: z.array(z.string()).min(1).max(20),
450
244
  });
451
245
 
452
- /**
453
- * OK
454
- */
455
- export const zAdminQueryTrackerJobEvidenceResponse = zAdminEvidencePage;
456
-
457
- export const zAdminQuerySubscriptionInsuranceEvidenceBody =
458
- zAdminInsuranceEvidenceRequest;
459
-
460
- export const zAdminQuerySubscriptionInsuranceEvidencePath = z.object({
461
- subscriptionId: z.string(),
246
+ export const zSupportEvidenceCursor = z.object({
247
+ timestamp: zAdminTimestamp,
248
+ id: z.string().min(1).max(254),
462
249
  });
463
250
 
464
- /**
465
- * OK
466
- */
467
- export const zAdminQuerySubscriptionInsuranceEvidenceResponse =
468
- zAdminEvidencePage;
469
-
470
- export const zAdminListAccountTrackerEvidencePath = z.object({
471
- accountId: z.string(),
251
+ export const zSupportEvidenceDocument = z.object({
252
+ id: z.string(),
253
+ path: z.string(),
254
+ exists: z.boolean(),
255
+ fields: zAdminSupportValue.nullable(),
256
+ updatedAt: zAdminTimestamp.nullable(),
257
+ createdAt: zAdminTimestamp.nullable(),
258
+ readAt: zAdminTimestamp,
472
259
  });
473
260
 
474
- export const zAdminListAccountTrackerEvidenceQuery = z.object({
475
- after: z.string().optional(),
476
- });
261
+ export const zSupportEvidenceDomain = z.enum([
262
+ "battery",
263
+ "versions",
264
+ "reporting",
265
+ "configuration",
266
+ "membershipReference",
267
+ "membershipState",
268
+ "commerceReference",
269
+ "plan",
270
+ "availability",
271
+ "bindingCount",
272
+ ]);
477
273
 
478
- /**
479
- * OK
480
- */
481
- export const zAdminListAccountTrackerEvidenceResponse = zAdminEvidenceSnapshot;
274
+ export const zSupportEvidenceHistoryGroup = z.enum([
275
+ "battery",
276
+ "versions",
277
+ "reporting",
278
+ "diagnostics",
279
+ ]);
482
280
 
483
- export const zAdminListAccountSubscriptionEvidencePath = z.object({
484
- accountId: z.string(),
485
- });
281
+ export const zSupportEvidenceHistorySource = z.enum([
282
+ "data",
283
+ "sanitizedData",
284
+ "bluetooth",
285
+ "audit",
286
+ "commandPackets",
287
+ ]);
486
288
 
487
- export const zAdminListAccountSubscriptionEvidenceQuery = z.object({
488
- after: z.string().optional(),
289
+ export const zSupportEvidenceHistoryRequest = z.object({
290
+ accountId: z.string().min(1).max(128),
291
+ source: zSupportEvidenceHistorySource,
292
+ from: z.iso.datetime({ offset: true }),
293
+ to: z.iso.datetime({ offset: true }),
294
+ after: zSupportEvidenceCursor.nullish(),
295
+ fields: z.array(zSupportEvidenceHistoryGroup).min(1).max(4).nullish(),
489
296
  });
490
297
 
491
- /**
492
- * OK
493
- */
494
- export const zAdminListAccountSubscriptionEvidenceResponse =
495
- zAdminEvidenceSnapshot;
496
-
497
- export const zAdminQueryTrackerFactEvidenceBody = zAdminTrackerFactsRequest;
298
+ export const zSupportEvidenceInsuranceRecords = z
299
+ .enum(["contracts", "creationAttempts"])
300
+ .default("contracts");
498
301
 
499
- /**
500
- * OK
501
- */
502
- export const zAdminQueryTrackerFactEvidenceResponse = zAdminEvidenceSnapshot;
302
+ export const zSupportEvidenceOperationalDomain = z.enum([
303
+ "runtime",
304
+ "firmware",
305
+ "commands",
306
+ "statistics",
307
+ ]);
503
308
 
504
- export const zAdminGetSubscriptionFactEvidencePath = z.object({
505
- subscriptionId: z.string(),
309
+ export const zSupportEvidencePageRequest = z.object({
310
+ accountIds: z.array(z.string()).min(1).max(20),
311
+ after: z.string().min(1).max(254).nullish(),
506
312
  });
507
313
 
508
- export const zAdminGetSubscriptionFactEvidenceQuery = z.object({
509
- domain: z.enum([
510
- "battery",
511
- "versions",
512
- "reporting",
513
- "configuration",
514
- "membershipReference",
515
- "membershipState",
516
- "commerceReference",
517
- "plan",
518
- "availability",
519
- "bindingCount",
520
- ]),
314
+ export const zSupportEvidenceSnapshot = z.object({
315
+ documents: z.array(zSupportEvidenceDocument),
316
+ relatedDocuments: z.array(zSupportEvidenceDocument),
317
+ readAt: zAdminTimestamp,
521
318
  });
522
319
 
523
- /**
524
- * OK
525
- */
526
- export const zAdminGetSubscriptionFactEvidenceResponse = zAdminEvidenceSnapshot;
527
-
528
- export const zAdminQueryTrackerSubscriptionEvidenceBody =
529
- zAdminEvidenceAccountsRequest;
530
-
531
- export const zAdminQueryTrackerSubscriptionEvidencePath = z.object({
532
- trackerId: z
533
- .string()
534
- .length(32)
535
- .regex(/^[a-f0-9]{32}$/),
320
+ export const zSupportEvidencePage = z.object({
321
+ snapshot: zSupportEvidenceSnapshot,
322
+ nextAfter: z.string().nullable(),
323
+ scannedRecordCount: z
324
+ .int()
325
+ .min(-2147483648, {
326
+ error: "Invalid value: Expected int32 to be >= -2147483648",
327
+ })
328
+ .max(2147483647, {
329
+ error: "Invalid value: Expected int32 to be <= 2147483647",
330
+ }),
536
331
  });
537
332
 
538
- /**
539
- * OK
540
- */
541
- export const zAdminQueryTrackerSubscriptionEvidenceResponse =
542
- zAdminEvidenceSnapshot;
543
-
544
- export const zAdminQueryCommerceBindingEvidenceBody =
545
- zAdminEvidenceAccountsRequest;
546
-
547
- export const zAdminQueryCommerceBindingEvidencePath = z.object({
548
- wooId: z.int().gte(-9007199254740991).lte(9007199254740991),
333
+ export const zSupportInsuranceEvidenceRequest = z.object({
334
+ accountIds: z.array(z.string()).min(1).max(20),
335
+ provider: zAdminInsuranceProvider,
336
+ records: zSupportEvidenceInsuranceRecords.optional(),
337
+ after: z.string().min(1).max(254).nullish(),
549
338
  });
550
339
 
551
- /**
552
- * OK
553
- */
554
- export const zAdminQueryCommerceBindingEvidenceResponse =
555
- zAdminEvidenceSnapshot;
556
-
557
- export const zAdminQueryTrackerHistoryEvidenceBody =
558
- zAdminEvidenceHistoryRequest;
559
-
560
- export const zAdminQueryTrackerHistoryEvidencePath = z.object({
561
- trackerId: z
562
- .string()
563
- .length(32)
564
- .regex(/^[a-f0-9]{32}$/),
340
+ export const zSupportOperationalEvidence = z.object({
341
+ domain: zSupportEvidenceOperationalDomain,
342
+ snapshot: zSupportEvidenceSnapshot,
565
343
  });
566
344
 
567
- /**
568
- * OK
569
- */
570
- export const zAdminQueryTrackerHistoryEvidenceResponse = zAdminEvidenceSnapshot;
571
-
572
- export const zAdminQueryTrackerRelationshipEvidenceBody =
573
- zAdminRelationshipRequest;
574
-
575
- export const zAdminQueryTrackerRelationshipEvidencePath = z.object({
576
- trackerId: z
577
- .string()
578
- .length(32)
579
- .regex(/^[a-f0-9]{32}$/),
345
+ export const zSupportOperationalEvidenceRequest = z.object({
346
+ accountIds: z.array(z.string()).min(1).max(20),
347
+ domain: zSupportEvidenceOperationalDomain,
580
348
  });
581
349
 
582
- /**
583
- * OK
584
- */
585
- export const zAdminQueryTrackerRelationshipEvidenceResponse =
586
- zAdminEvidenceSnapshot;
587
-
588
- export const zAdminChangeTrackerRelationshipBody =
589
- zAdminRelationshipChangeRequest;
350
+ export const zSupportRelationshipKind = z.enum([
351
+ "subscriptionBinding",
352
+ "deviceAccount",
353
+ ]);
590
354
 
591
- export const zAdminChangeTrackerRelationshipPath = z.object({
592
- trackerId: z
593
- .string()
594
- .length(32)
595
- .regex(/^[a-f0-9]{32}$/),
355
+ export const zSupportRelationshipRequest = z.object({
356
+ accountIds: z.array(z.string()).min(1).max(20),
357
+ kind: zSupportRelationshipKind,
596
358
  });
597
359
 
598
- /**
599
- * OK
600
- */
601
- export const zAdminChangeTrackerRelationshipResponse = zCommandSuccess;
602
-
603
- export const zAdminVerifyTrackerRelationshipBody =
604
- zAdminRelationshipVerificationRequest;
605
-
606
- export const zAdminVerifyTrackerRelationshipPath = z.object({
607
- trackerId: z
608
- .string()
609
- .length(32)
610
- .regex(/^[a-f0-9]{32}$/),
360
+ export const zSupportTrackerFactsRequest = z.object({
361
+ target: z.string().min(1).max(254),
362
+ accountIds: z.array(z.string()).min(1).max(20),
363
+ domain: zSupportEvidenceDomain,
611
364
  });
612
365
 
613
- /**
614
- * OK
615
- */
616
- export const zAdminVerifyTrackerRelationshipResponse =
617
- zAdminRelationshipVerification;
618
-
619
366
  /**
620
367
  * OK
621
368
  */
@@ -628,12 +375,6 @@ export const zAdminGetTrackerPath = z.object({
628
375
  .regex(/^[a-f0-9]{32}$/),
629
376
  });
630
377
 
631
- export const zAdminGetTrackerQuery = z.object({
632
- domains: z
633
- .array(z.enum(["battery", "configuration", "contact", "location"]))
634
- .optional(),
635
- });
636
-
637
378
  /**
638
379
  * OK
639
380
  */
@@ -675,22 +416,6 @@ export const zAdminListTrackerHistoryQuery = z.object({
675
416
  */
676
417
  export const zAdminListTrackerHistoryResponse = zAdminReadResult;
677
418
 
678
- export const zAdminGetTrackerOperationalStatePath = z.object({
679
- trackerId: z
680
- .string()
681
- .length(32)
682
- .regex(/^[a-f0-9]{32}$/),
683
- });
684
-
685
- export const zAdminGetTrackerOperationalStateQuery = z.object({
686
- domains: z.array(z.enum(["battery", "firmware", "runtime", "statistics"])),
687
- });
688
-
689
- /**
690
- * OK
691
- */
692
- export const zAdminGetTrackerOperationalStateResponse = zAdminOperationalState;
693
-
694
419
  export const zAdminRequestTrackerModeBody = zAdminModeRequest;
695
420
 
696
421
  export const zAdminRequestTrackerModePath = z.object({
@@ -1085,3 +810,168 @@ export const zAdminSyncB2bInsuranceResponse = zCommandSuccess;
1085
810
  * Accepted
1086
811
  */
1087
812
  export const zAdminSyncAllB2bInsuranceResponse = zCommandSuccess;
813
+
814
+ export const zSupportQueryTrackerOperationalEvidenceBody =
815
+ zSupportOperationalEvidenceRequest;
816
+
817
+ export const zSupportQueryTrackerOperationalEvidencePath = z.object({
818
+ trackerId: z
819
+ .string()
820
+ .length(32)
821
+ .regex(/^[a-f0-9]{32}$/),
822
+ });
823
+
824
+ /**
825
+ * OK
826
+ */
827
+ export const zSupportQueryTrackerOperationalEvidenceResponse =
828
+ zSupportOperationalEvidence;
829
+
830
+ export const zSupportQueryTrackerJobEvidenceBody = zSupportEvidencePageRequest;
831
+
832
+ export const zSupportQueryTrackerJobEvidencePath = z.object({
833
+ trackerId: z
834
+ .string()
835
+ .length(32)
836
+ .regex(/^[a-f0-9]{32}$/),
837
+ });
838
+
839
+ /**
840
+ * OK
841
+ */
842
+ export const zSupportQueryTrackerJobEvidenceResponse = zSupportEvidencePage;
843
+
844
+ export const zSupportQuerySubscriptionInsuranceEvidenceBody =
845
+ zSupportInsuranceEvidenceRequest;
846
+
847
+ export const zSupportQuerySubscriptionInsuranceEvidencePath = z.object({
848
+ subscriptionId: z.string(),
849
+ });
850
+
851
+ /**
852
+ * OK
853
+ */
854
+ export const zSupportQuerySubscriptionInsuranceEvidenceResponse =
855
+ zSupportEvidencePage;
856
+
857
+ export const zSupportListAccountTrackerEvidencePath = z.object({
858
+ accountId: z.string(),
859
+ });
860
+
861
+ export const zSupportListAccountTrackerEvidenceQuery = z.object({
862
+ after: z.string().optional(),
863
+ });
864
+
865
+ /**
866
+ * OK
867
+ */
868
+ export const zSupportListAccountTrackerEvidenceResponse =
869
+ zSupportEvidenceSnapshot;
870
+
871
+ export const zSupportListAccountSubscriptionEvidencePath = z.object({
872
+ accountId: z.string(),
873
+ });
874
+
875
+ export const zSupportListAccountSubscriptionEvidenceQuery = z.object({
876
+ after: z.string().optional(),
877
+ });
878
+
879
+ /**
880
+ * OK
881
+ */
882
+ export const zSupportListAccountSubscriptionEvidenceResponse =
883
+ zSupportEvidenceSnapshot;
884
+
885
+ export const zSupportQueryTrackerFactEvidenceBody = zSupportTrackerFactsRequest;
886
+
887
+ /**
888
+ * OK
889
+ */
890
+ export const zSupportQueryTrackerFactEvidenceResponse =
891
+ zSupportEvidenceSnapshot;
892
+
893
+ export const zSupportGetSubscriptionFactEvidencePath = z.object({
894
+ subscriptionId: z.string(),
895
+ });
896
+
897
+ export const zSupportGetSubscriptionFactEvidenceQuery = z.object({
898
+ domain: z.enum([
899
+ "battery",
900
+ "versions",
901
+ "reporting",
902
+ "configuration",
903
+ "membershipReference",
904
+ "membershipState",
905
+ "commerceReference",
906
+ "plan",
907
+ "availability",
908
+ "bindingCount",
909
+ ]),
910
+ });
911
+
912
+ /**
913
+ * OK
914
+ */
915
+ export const zSupportGetSubscriptionFactEvidenceResponse =
916
+ zSupportEvidenceSnapshot;
917
+
918
+ export const zSupportQueryTrackerSubscriptionEvidenceBody =
919
+ zSupportEvidenceAccountsRequest;
920
+
921
+ export const zSupportQueryTrackerSubscriptionEvidencePath = z.object({
922
+ trackerId: z
923
+ .string()
924
+ .length(32)
925
+ .regex(/^[a-f0-9]{32}$/),
926
+ });
927
+
928
+ /**
929
+ * OK
930
+ */
931
+ export const zSupportQueryTrackerSubscriptionEvidenceResponse =
932
+ zSupportEvidenceSnapshot;
933
+
934
+ export const zSupportQueryCommerceBindingEvidenceBody =
935
+ zSupportEvidenceAccountsRequest;
936
+
937
+ export const zSupportQueryCommerceBindingEvidencePath = z.object({
938
+ wooId: z.int().gte(-9007199254740991).lte(9007199254740991),
939
+ });
940
+
941
+ /**
942
+ * OK
943
+ */
944
+ export const zSupportQueryCommerceBindingEvidenceResponse =
945
+ zSupportEvidenceSnapshot;
946
+
947
+ export const zSupportQueryTrackerHistoryEvidenceBody =
948
+ zSupportEvidenceHistoryRequest;
949
+
950
+ export const zSupportQueryTrackerHistoryEvidencePath = z.object({
951
+ trackerId: z
952
+ .string()
953
+ .length(32)
954
+ .regex(/^[a-f0-9]{32}$/),
955
+ });
956
+
957
+ /**
958
+ * OK
959
+ */
960
+ export const zSupportQueryTrackerHistoryEvidenceResponse =
961
+ zSupportEvidenceSnapshot;
962
+
963
+ export const zSupportQueryTrackerRelationshipEvidenceBody =
964
+ zSupportRelationshipRequest;
965
+
966
+ export const zSupportQueryTrackerRelationshipEvidencePath = z.object({
967
+ trackerId: z
968
+ .string()
969
+ .length(32)
970
+ .regex(/^[a-f0-9]{32}$/),
971
+ });
972
+
973
+ /**
974
+ * OK
975
+ */
976
+ export const zSupportQueryTrackerRelationshipEvidenceResponse =
977
+ zSupportEvidenceSnapshot;