@bikefinder/api-client 0.4.0 → 0.6.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.
@@ -56,12 +56,91 @@ export type AdminDocument = {
56
56
  fields: AdminSupportValue;
57
57
  };
58
58
 
59
+ export type AdminEvidenceAccountsRequest = {
60
+ accountIds: Array<string>;
61
+ };
62
+
63
+ export type AdminEvidenceCursor = {
64
+ timestamp: AdminTimestamp;
65
+ id: string;
66
+ };
67
+
68
+ export type AdminEvidenceDocument = {
69
+ id: string;
70
+ path: string;
71
+ exists: boolean;
72
+ fields: null | AdminSupportValue;
73
+ updatedAt: null | AdminTimestamp;
74
+ createdAt: null | AdminTimestamp;
75
+ readAt: AdminTimestamp;
76
+ };
77
+
78
+ export type AdminEvidenceDomain =
79
+ | "battery"
80
+ | "versions"
81
+ | "reporting"
82
+ | "configuration"
83
+ | "membershipReference"
84
+ | "membershipState"
85
+ | "commerceReference"
86
+ | "plan"
87
+ | "availability"
88
+ | "bindingCount";
89
+
90
+ export type AdminEvidenceHistoryGroup =
91
+ "battery" | "versions" | "reporting" | "diagnostics";
92
+
93
+ export type AdminEvidenceHistoryRequest = {
94
+ accountId: string;
95
+ source: AdminEvidenceHistorySource;
96
+ from: string;
97
+ to: string;
98
+ after?: null | AdminEvidenceCursor;
99
+ fields?: null | Array<AdminEvidenceHistoryGroup>;
100
+ };
101
+
102
+ export type AdminEvidenceHistorySource =
103
+ "data" | "sanitizedData" | "bluetooth" | "audit" | "commandPackets";
104
+
105
+ export type AdminEvidenceInsuranceRecords = "contracts" | "creationAttempts";
106
+
107
+ export type AdminEvidenceLayout = "legacy" | "shared";
108
+
109
+ export type AdminEvidenceOperationalDomain =
110
+ "runtime" | "firmware" | "commands" | "statistics";
111
+
112
+ export type AdminEvidencePage = {
113
+ snapshot: AdminEvidenceSnapshot;
114
+ nextAfter: null | string;
115
+ scannedRecordCount: number;
116
+ };
117
+
118
+ export type AdminEvidencePageRequest = {
119
+ accountIds: Array<string>;
120
+ after?: null | string;
121
+ };
122
+
123
+ export type AdminEvidenceSnapshot = {
124
+ documents: Array<AdminEvidenceDocument>;
125
+ relatedDocuments: Array<AdminEvidenceDocument>;
126
+ readAt: AdminTimestamp;
127
+ };
128
+
59
129
  export type AdminFavoriteRequest = {
60
130
  comment: string;
61
131
  };
62
132
 
63
133
  export type AdminGeneration = "gen1" | "gen2";
64
134
 
135
+ export type AdminInsuranceEvidenceRequest = {
136
+ accountIds: Array<string>;
137
+ provider: AdminInsuranceProvider;
138
+ records?: AdminEvidenceInsuranceRecords;
139
+ after?: null | string;
140
+ };
141
+
142
+ export type AdminInsuranceProvider = "cycler" | "hepster" | "tryg";
143
+
65
144
  export type AdminLinkSubscriptionRequest = {
66
145
  subscriptionId: string;
67
146
  };
@@ -108,6 +187,17 @@ export type AdminOperationalDomains = {
108
187
  firmware: null | AdminOperationalDomain;
109
188
  };
110
189
 
190
+ export type AdminOperationalEvidence = {
191
+ domain: AdminEvidenceOperationalDomain;
192
+ layout: AdminEvidenceLayout;
193
+ snapshot: AdminEvidenceSnapshot;
194
+ };
195
+
196
+ export type AdminOperationalEvidenceRequest = {
197
+ accountIds: Array<string>;
198
+ domain: AdminEvidenceOperationalDomain;
199
+ };
200
+
111
201
  export type AdminOperationalState = {
112
202
  schemaVersion: number;
113
203
  deviceId: string;
@@ -129,6 +219,33 @@ export type AdminReadResult = {
129
219
  states: null | AdminPublicStates;
130
220
  };
131
221
 
222
+ export type AdminRelationshipChangeRequest = {
223
+ accountIds: Array<string>;
224
+ kind: AdminRelationshipKind;
225
+ accountId: string;
226
+ expectedVersion: string;
227
+ subscriptionId?: null | string;
228
+ allowLastAccountCleanup?: boolean;
229
+ };
230
+
231
+ export type AdminRelationshipKind = "subscriptionBinding" | "deviceAccount";
232
+
233
+ export type AdminRelationshipRequest = {
234
+ accountIds: Array<string>;
235
+ kind: AdminRelationshipKind;
236
+ };
237
+
238
+ export type AdminRelationshipVerification = {
239
+ verified: boolean;
240
+ };
241
+
242
+ export type AdminRelationshipVerificationRequest = {
243
+ kind: AdminRelationshipKind;
244
+ accountId: string;
245
+ remainingAccountIds: Array<string>;
246
+ subscriptionId?: null | string;
247
+ };
248
+
132
249
  export type AdminRequestId = {
133
250
  requestId: string;
134
251
  };
@@ -202,6 +319,12 @@ export type AdminTrackerCommandResult = {
202
319
  jobIds: Array<string>;
203
320
  };
204
321
 
322
+ export type AdminTrackerFactsRequest = {
323
+ target: string;
324
+ accountIds: Array<string>;
325
+ domain: AdminEvidenceDomain;
326
+ };
327
+
205
328
  export type AdminTrackerView = {
206
329
  tracker: AdminReadResult;
207
330
  operationalState: null | AdminOperationalState;
@@ -241,6 +364,853 @@ export type ProblemDetails = {
241
364
  };
242
365
  };
243
366
 
367
+ export type AdminQueryTrackerOperationalEvidenceData = {
368
+ body: AdminOperationalEvidenceRequest;
369
+ path: {
370
+ trackerId: string;
371
+ };
372
+ query?: never;
373
+ url: "/v1/admin/product-evidence/trackers/{trackerId}/operational-queries";
374
+ };
375
+
376
+ export type AdminQueryTrackerOperationalEvidenceErrors = {
377
+ /**
378
+ * Bad Request
379
+ */
380
+ 400: ProblemDetails;
381
+ /**
382
+ * Unauthorized
383
+ */
384
+ 401: ProblemDetails;
385
+ /**
386
+ * Forbidden
387
+ */
388
+ 403: ProblemDetails;
389
+ /**
390
+ * Conflict
391
+ */
392
+ 409: ProblemDetails;
393
+ /**
394
+ * Payload Too Large
395
+ */
396
+ 413: ProblemDetails;
397
+ /**
398
+ * Unsupported Media Type
399
+ */
400
+ 415: ProblemDetails;
401
+ /**
402
+ * Too Many Requests
403
+ */
404
+ 429: ProblemDetails;
405
+ /**
406
+ * Internal Server Error
407
+ */
408
+ 500: ProblemDetails;
409
+ /**
410
+ * Bad Gateway
411
+ */
412
+ 502: ProblemDetails;
413
+ /**
414
+ * Service Unavailable
415
+ */
416
+ 503: ProblemDetails;
417
+ };
418
+
419
+ export type AdminQueryTrackerOperationalEvidenceError =
420
+ AdminQueryTrackerOperationalEvidenceErrors[keyof AdminQueryTrackerOperationalEvidenceErrors];
421
+
422
+ export type AdminQueryTrackerOperationalEvidenceResponses = {
423
+ /**
424
+ * OK
425
+ */
426
+ 200: AdminOperationalEvidence;
427
+ };
428
+
429
+ export type AdminQueryTrackerOperationalEvidenceResponse =
430
+ AdminQueryTrackerOperationalEvidenceResponses[keyof AdminQueryTrackerOperationalEvidenceResponses];
431
+
432
+ export type AdminQueryTrackerJobEvidenceData = {
433
+ body: AdminEvidencePageRequest;
434
+ path: {
435
+ trackerId: string;
436
+ };
437
+ query?: never;
438
+ url: "/v1/admin/product-evidence/trackers/{trackerId}/job-queries";
439
+ };
440
+
441
+ export type AdminQueryTrackerJobEvidenceErrors = {
442
+ /**
443
+ * Bad Request
444
+ */
445
+ 400: ProblemDetails;
446
+ /**
447
+ * Unauthorized
448
+ */
449
+ 401: ProblemDetails;
450
+ /**
451
+ * Forbidden
452
+ */
453
+ 403: ProblemDetails;
454
+ /**
455
+ * Conflict
456
+ */
457
+ 409: ProblemDetails;
458
+ /**
459
+ * Payload Too Large
460
+ */
461
+ 413: ProblemDetails;
462
+ /**
463
+ * Unsupported Media Type
464
+ */
465
+ 415: ProblemDetails;
466
+ /**
467
+ * Too Many Requests
468
+ */
469
+ 429: ProblemDetails;
470
+ /**
471
+ * Internal Server Error
472
+ */
473
+ 500: ProblemDetails;
474
+ /**
475
+ * Bad Gateway
476
+ */
477
+ 502: ProblemDetails;
478
+ /**
479
+ * Service Unavailable
480
+ */
481
+ 503: ProblemDetails;
482
+ };
483
+
484
+ export type AdminQueryTrackerJobEvidenceError =
485
+ AdminQueryTrackerJobEvidenceErrors[keyof AdminQueryTrackerJobEvidenceErrors];
486
+
487
+ export type AdminQueryTrackerJobEvidenceResponses = {
488
+ /**
489
+ * OK
490
+ */
491
+ 200: AdminEvidencePage;
492
+ };
493
+
494
+ export type AdminQueryTrackerJobEvidenceResponse =
495
+ AdminQueryTrackerJobEvidenceResponses[keyof AdminQueryTrackerJobEvidenceResponses];
496
+
497
+ export type AdminQuerySubscriptionInsuranceEvidenceData = {
498
+ body: AdminInsuranceEvidenceRequest;
499
+ path: {
500
+ subscriptionId: string;
501
+ };
502
+ query?: never;
503
+ url: "/v1/admin/product-evidence/subscriptions/{subscriptionId}/insurance-queries";
504
+ };
505
+
506
+ export type AdminQuerySubscriptionInsuranceEvidenceErrors = {
507
+ /**
508
+ * Bad Request
509
+ */
510
+ 400: ProblemDetails;
511
+ /**
512
+ * Unauthorized
513
+ */
514
+ 401: ProblemDetails;
515
+ /**
516
+ * Forbidden
517
+ */
518
+ 403: ProblemDetails;
519
+ /**
520
+ * Conflict
521
+ */
522
+ 409: ProblemDetails;
523
+ /**
524
+ * Payload Too Large
525
+ */
526
+ 413: ProblemDetails;
527
+ /**
528
+ * Unsupported Media Type
529
+ */
530
+ 415: ProblemDetails;
531
+ /**
532
+ * Too Many Requests
533
+ */
534
+ 429: ProblemDetails;
535
+ /**
536
+ * Internal Server Error
537
+ */
538
+ 500: ProblemDetails;
539
+ /**
540
+ * Bad Gateway
541
+ */
542
+ 502: ProblemDetails;
543
+ /**
544
+ * Service Unavailable
545
+ */
546
+ 503: ProblemDetails;
547
+ };
548
+
549
+ export type AdminQuerySubscriptionInsuranceEvidenceError =
550
+ AdminQuerySubscriptionInsuranceEvidenceErrors[keyof AdminQuerySubscriptionInsuranceEvidenceErrors];
551
+
552
+ export type AdminQuerySubscriptionInsuranceEvidenceResponses = {
553
+ /**
554
+ * OK
555
+ */
556
+ 200: AdminEvidencePage;
557
+ };
558
+
559
+ export type AdminQuerySubscriptionInsuranceEvidenceResponse =
560
+ AdminQuerySubscriptionInsuranceEvidenceResponses[keyof AdminQuerySubscriptionInsuranceEvidenceResponses];
561
+
562
+ export type AdminListAccountTrackerEvidenceData = {
563
+ body?: never;
564
+ path: {
565
+ accountId: string;
566
+ };
567
+ query?: {
568
+ after?: string;
569
+ };
570
+ url: "/v1/admin/product-evidence/accounts/{accountId}/trackers";
571
+ };
572
+
573
+ export type AdminListAccountTrackerEvidenceErrors = {
574
+ /**
575
+ * Bad Request
576
+ */
577
+ 400: ProblemDetails;
578
+ /**
579
+ * Unauthorized
580
+ */
581
+ 401: ProblemDetails;
582
+ /**
583
+ * Forbidden
584
+ */
585
+ 403: ProblemDetails;
586
+ /**
587
+ * Conflict
588
+ */
589
+ 409: ProblemDetails;
590
+ /**
591
+ * Payload Too Large
592
+ */
593
+ 413: ProblemDetails;
594
+ /**
595
+ * Too Many Requests
596
+ */
597
+ 429: ProblemDetails;
598
+ /**
599
+ * Internal Server Error
600
+ */
601
+ 500: ProblemDetails;
602
+ /**
603
+ * Bad Gateway
604
+ */
605
+ 502: ProblemDetails;
606
+ /**
607
+ * Service Unavailable
608
+ */
609
+ 503: ProblemDetails;
610
+ };
611
+
612
+ export type AdminListAccountTrackerEvidenceError =
613
+ AdminListAccountTrackerEvidenceErrors[keyof AdminListAccountTrackerEvidenceErrors];
614
+
615
+ export type AdminListAccountTrackerEvidenceResponses = {
616
+ /**
617
+ * OK
618
+ */
619
+ 200: AdminEvidenceSnapshot;
620
+ };
621
+
622
+ export type AdminListAccountTrackerEvidenceResponse =
623
+ AdminListAccountTrackerEvidenceResponses[keyof AdminListAccountTrackerEvidenceResponses];
624
+
625
+ export type AdminListAccountSubscriptionEvidenceData = {
626
+ body?: never;
627
+ path: {
628
+ accountId: string;
629
+ };
630
+ query?: {
631
+ after?: string;
632
+ };
633
+ url: "/v1/admin/product-evidence/accounts/{accountId}/subscriptions";
634
+ };
635
+
636
+ export type AdminListAccountSubscriptionEvidenceErrors = {
637
+ /**
638
+ * Bad Request
639
+ */
640
+ 400: ProblemDetails;
641
+ /**
642
+ * Unauthorized
643
+ */
644
+ 401: ProblemDetails;
645
+ /**
646
+ * Forbidden
647
+ */
648
+ 403: ProblemDetails;
649
+ /**
650
+ * Conflict
651
+ */
652
+ 409: ProblemDetails;
653
+ /**
654
+ * Payload Too Large
655
+ */
656
+ 413: ProblemDetails;
657
+ /**
658
+ * Too Many Requests
659
+ */
660
+ 429: ProblemDetails;
661
+ /**
662
+ * Internal Server Error
663
+ */
664
+ 500: ProblemDetails;
665
+ /**
666
+ * Bad Gateway
667
+ */
668
+ 502: ProblemDetails;
669
+ /**
670
+ * Service Unavailable
671
+ */
672
+ 503: ProblemDetails;
673
+ };
674
+
675
+ export type AdminListAccountSubscriptionEvidenceError =
676
+ AdminListAccountSubscriptionEvidenceErrors[keyof AdminListAccountSubscriptionEvidenceErrors];
677
+
678
+ export type AdminListAccountSubscriptionEvidenceResponses = {
679
+ /**
680
+ * OK
681
+ */
682
+ 200: AdminEvidenceSnapshot;
683
+ };
684
+
685
+ export type AdminListAccountSubscriptionEvidenceResponse =
686
+ AdminListAccountSubscriptionEvidenceResponses[keyof AdminListAccountSubscriptionEvidenceResponses];
687
+
688
+ export type AdminQueryTrackerFactEvidenceData = {
689
+ body: AdminTrackerFactsRequest;
690
+ path?: never;
691
+ query?: never;
692
+ url: "/v1/admin/product-evidence/tracker-fact-queries";
693
+ };
694
+
695
+ export type AdminQueryTrackerFactEvidenceErrors = {
696
+ /**
697
+ * Bad Request
698
+ */
699
+ 400: ProblemDetails;
700
+ /**
701
+ * Unauthorized
702
+ */
703
+ 401: ProblemDetails;
704
+ /**
705
+ * Forbidden
706
+ */
707
+ 403: ProblemDetails;
708
+ /**
709
+ * Conflict
710
+ */
711
+ 409: ProblemDetails;
712
+ /**
713
+ * Payload Too Large
714
+ */
715
+ 413: ProblemDetails;
716
+ /**
717
+ * Unsupported Media Type
718
+ */
719
+ 415: ProblemDetails;
720
+ /**
721
+ * Too Many Requests
722
+ */
723
+ 429: ProblemDetails;
724
+ /**
725
+ * Internal Server Error
726
+ */
727
+ 500: ProblemDetails;
728
+ /**
729
+ * Bad Gateway
730
+ */
731
+ 502: ProblemDetails;
732
+ /**
733
+ * Service Unavailable
734
+ */
735
+ 503: ProblemDetails;
736
+ };
737
+
738
+ export type AdminQueryTrackerFactEvidenceError =
739
+ AdminQueryTrackerFactEvidenceErrors[keyof AdminQueryTrackerFactEvidenceErrors];
740
+
741
+ export type AdminQueryTrackerFactEvidenceResponses = {
742
+ /**
743
+ * OK
744
+ */
745
+ 200: AdminEvidenceSnapshot;
746
+ };
747
+
748
+ export type AdminQueryTrackerFactEvidenceResponse =
749
+ AdminQueryTrackerFactEvidenceResponses[keyof AdminQueryTrackerFactEvidenceResponses];
750
+
751
+ export type AdminGetSubscriptionFactEvidenceData = {
752
+ body?: never;
753
+ path: {
754
+ subscriptionId: string;
755
+ };
756
+ query: {
757
+ domain:
758
+ | "battery"
759
+ | "versions"
760
+ | "reporting"
761
+ | "configuration"
762
+ | "membershipReference"
763
+ | "membershipState"
764
+ | "commerceReference"
765
+ | "plan"
766
+ | "availability"
767
+ | "bindingCount";
768
+ };
769
+ url: "/v1/admin/product-evidence/subscriptions/{subscriptionId}";
770
+ };
771
+
772
+ export type AdminGetSubscriptionFactEvidenceErrors = {
773
+ /**
774
+ * Bad Request
775
+ */
776
+ 400: ProblemDetails;
777
+ /**
778
+ * Unauthorized
779
+ */
780
+ 401: ProblemDetails;
781
+ /**
782
+ * Forbidden
783
+ */
784
+ 403: ProblemDetails;
785
+ /**
786
+ * Conflict
787
+ */
788
+ 409: ProblemDetails;
789
+ /**
790
+ * Payload Too Large
791
+ */
792
+ 413: ProblemDetails;
793
+ /**
794
+ * Too Many Requests
795
+ */
796
+ 429: ProblemDetails;
797
+ /**
798
+ * Internal Server Error
799
+ */
800
+ 500: ProblemDetails;
801
+ /**
802
+ * Bad Gateway
803
+ */
804
+ 502: ProblemDetails;
805
+ /**
806
+ * Service Unavailable
807
+ */
808
+ 503: ProblemDetails;
809
+ };
810
+
811
+ export type AdminGetSubscriptionFactEvidenceError =
812
+ AdminGetSubscriptionFactEvidenceErrors[keyof AdminGetSubscriptionFactEvidenceErrors];
813
+
814
+ export type AdminGetSubscriptionFactEvidenceResponses = {
815
+ /**
816
+ * OK
817
+ */
818
+ 200: AdminEvidenceSnapshot;
819
+ };
820
+
821
+ export type AdminGetSubscriptionFactEvidenceResponse =
822
+ AdminGetSubscriptionFactEvidenceResponses[keyof AdminGetSubscriptionFactEvidenceResponses];
823
+
824
+ export type AdminQueryTrackerSubscriptionEvidenceData = {
825
+ body: AdminEvidenceAccountsRequest;
826
+ path: {
827
+ trackerId: string;
828
+ };
829
+ query?: never;
830
+ url: "/v1/admin/product-evidence/trackers/{trackerId}/subscription-queries";
831
+ };
832
+
833
+ export type AdminQueryTrackerSubscriptionEvidenceErrors = {
834
+ /**
835
+ * Bad Request
836
+ */
837
+ 400: ProblemDetails;
838
+ /**
839
+ * Unauthorized
840
+ */
841
+ 401: ProblemDetails;
842
+ /**
843
+ * Forbidden
844
+ */
845
+ 403: ProblemDetails;
846
+ /**
847
+ * Conflict
848
+ */
849
+ 409: ProblemDetails;
850
+ /**
851
+ * Payload Too Large
852
+ */
853
+ 413: ProblemDetails;
854
+ /**
855
+ * Unsupported Media Type
856
+ */
857
+ 415: ProblemDetails;
858
+ /**
859
+ * Too Many Requests
860
+ */
861
+ 429: ProblemDetails;
862
+ /**
863
+ * Internal Server Error
864
+ */
865
+ 500: ProblemDetails;
866
+ /**
867
+ * Bad Gateway
868
+ */
869
+ 502: ProblemDetails;
870
+ /**
871
+ * Service Unavailable
872
+ */
873
+ 503: ProblemDetails;
874
+ };
875
+
876
+ export type AdminQueryTrackerSubscriptionEvidenceError =
877
+ AdminQueryTrackerSubscriptionEvidenceErrors[keyof AdminQueryTrackerSubscriptionEvidenceErrors];
878
+
879
+ export type AdminQueryTrackerSubscriptionEvidenceResponses = {
880
+ /**
881
+ * OK
882
+ */
883
+ 200: AdminEvidenceSnapshot;
884
+ };
885
+
886
+ export type AdminQueryTrackerSubscriptionEvidenceResponse =
887
+ AdminQueryTrackerSubscriptionEvidenceResponses[keyof AdminQueryTrackerSubscriptionEvidenceResponses];
888
+
889
+ export type AdminQueryCommerceBindingEvidenceData = {
890
+ body: AdminEvidenceAccountsRequest;
891
+ path: {
892
+ wooId: number;
893
+ };
894
+ query?: never;
895
+ url: "/v1/admin/product-evidence/commerce-subscriptions/{wooId}/binding-queries";
896
+ };
897
+
898
+ export type AdminQueryCommerceBindingEvidenceErrors = {
899
+ /**
900
+ * Bad Request
901
+ */
902
+ 400: ProblemDetails;
903
+ /**
904
+ * Unauthorized
905
+ */
906
+ 401: ProblemDetails;
907
+ /**
908
+ * Forbidden
909
+ */
910
+ 403: ProblemDetails;
911
+ /**
912
+ * Conflict
913
+ */
914
+ 409: ProblemDetails;
915
+ /**
916
+ * Payload Too Large
917
+ */
918
+ 413: ProblemDetails;
919
+ /**
920
+ * Unsupported Media Type
921
+ */
922
+ 415: ProblemDetails;
923
+ /**
924
+ * Too Many Requests
925
+ */
926
+ 429: ProblemDetails;
927
+ /**
928
+ * Internal Server Error
929
+ */
930
+ 500: ProblemDetails;
931
+ /**
932
+ * Bad Gateway
933
+ */
934
+ 502: ProblemDetails;
935
+ /**
936
+ * Service Unavailable
937
+ */
938
+ 503: ProblemDetails;
939
+ };
940
+
941
+ export type AdminQueryCommerceBindingEvidenceError =
942
+ AdminQueryCommerceBindingEvidenceErrors[keyof AdminQueryCommerceBindingEvidenceErrors];
943
+
944
+ export type AdminQueryCommerceBindingEvidenceResponses = {
945
+ /**
946
+ * OK
947
+ */
948
+ 200: AdminEvidenceSnapshot;
949
+ };
950
+
951
+ export type AdminQueryCommerceBindingEvidenceResponse =
952
+ AdminQueryCommerceBindingEvidenceResponses[keyof AdminQueryCommerceBindingEvidenceResponses];
953
+
954
+ export type AdminQueryTrackerHistoryEvidenceData = {
955
+ body: AdminEvidenceHistoryRequest;
956
+ path: {
957
+ trackerId: string;
958
+ };
959
+ query?: never;
960
+ url: "/v1/admin/product-evidence/trackers/{trackerId}/history-queries";
961
+ };
962
+
963
+ export type AdminQueryTrackerHistoryEvidenceErrors = {
964
+ /**
965
+ * Bad Request
966
+ */
967
+ 400: ProblemDetails;
968
+ /**
969
+ * Unauthorized
970
+ */
971
+ 401: ProblemDetails;
972
+ /**
973
+ * Forbidden
974
+ */
975
+ 403: ProblemDetails;
976
+ /**
977
+ * Conflict
978
+ */
979
+ 409: ProblemDetails;
980
+ /**
981
+ * Payload Too Large
982
+ */
983
+ 413: ProblemDetails;
984
+ /**
985
+ * Unsupported Media Type
986
+ */
987
+ 415: ProblemDetails;
988
+ /**
989
+ * Too Many Requests
990
+ */
991
+ 429: ProblemDetails;
992
+ /**
993
+ * Internal Server Error
994
+ */
995
+ 500: ProblemDetails;
996
+ /**
997
+ * Bad Gateway
998
+ */
999
+ 502: ProblemDetails;
1000
+ /**
1001
+ * Service Unavailable
1002
+ */
1003
+ 503: ProblemDetails;
1004
+ };
1005
+
1006
+ export type AdminQueryTrackerHistoryEvidenceError =
1007
+ AdminQueryTrackerHistoryEvidenceErrors[keyof AdminQueryTrackerHistoryEvidenceErrors];
1008
+
1009
+ export type AdminQueryTrackerHistoryEvidenceResponses = {
1010
+ /**
1011
+ * OK
1012
+ */
1013
+ 200: AdminEvidenceSnapshot;
1014
+ };
1015
+
1016
+ export type AdminQueryTrackerHistoryEvidenceResponse =
1017
+ AdminQueryTrackerHistoryEvidenceResponses[keyof AdminQueryTrackerHistoryEvidenceResponses];
1018
+
1019
+ export type AdminQueryTrackerRelationshipEvidenceData = {
1020
+ body: AdminRelationshipRequest;
1021
+ path: {
1022
+ trackerId: string;
1023
+ };
1024
+ query?: never;
1025
+ url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-queries";
1026
+ };
1027
+
1028
+ export type AdminQueryTrackerRelationshipEvidenceErrors = {
1029
+ /**
1030
+ * Bad Request
1031
+ */
1032
+ 400: ProblemDetails;
1033
+ /**
1034
+ * Unauthorized
1035
+ */
1036
+ 401: ProblemDetails;
1037
+ /**
1038
+ * Forbidden
1039
+ */
1040
+ 403: ProblemDetails;
1041
+ /**
1042
+ * Conflict
1043
+ */
1044
+ 409: ProblemDetails;
1045
+ /**
1046
+ * Payload Too Large
1047
+ */
1048
+ 413: ProblemDetails;
1049
+ /**
1050
+ * Unsupported Media Type
1051
+ */
1052
+ 415: ProblemDetails;
1053
+ /**
1054
+ * Too Many Requests
1055
+ */
1056
+ 429: ProblemDetails;
1057
+ /**
1058
+ * Internal Server Error
1059
+ */
1060
+ 500: ProblemDetails;
1061
+ /**
1062
+ * Bad Gateway
1063
+ */
1064
+ 502: ProblemDetails;
1065
+ /**
1066
+ * Service Unavailable
1067
+ */
1068
+ 503: ProblemDetails;
1069
+ };
1070
+
1071
+ export type AdminQueryTrackerRelationshipEvidenceError =
1072
+ AdminQueryTrackerRelationshipEvidenceErrors[keyof AdminQueryTrackerRelationshipEvidenceErrors];
1073
+
1074
+ export type AdminQueryTrackerRelationshipEvidenceResponses = {
1075
+ /**
1076
+ * OK
1077
+ */
1078
+ 200: AdminEvidenceSnapshot;
1079
+ };
1080
+
1081
+ export type AdminQueryTrackerRelationshipEvidenceResponse =
1082
+ AdminQueryTrackerRelationshipEvidenceResponses[keyof AdminQueryTrackerRelationshipEvidenceResponses];
1083
+
1084
+ export type AdminChangeTrackerRelationshipData = {
1085
+ body: AdminRelationshipChangeRequest;
1086
+ path: {
1087
+ trackerId: string;
1088
+ };
1089
+ query?: never;
1090
+ url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-changes";
1091
+ };
1092
+
1093
+ export type AdminChangeTrackerRelationshipErrors = {
1094
+ /**
1095
+ * Bad Request
1096
+ */
1097
+ 400: ProblemDetails;
1098
+ /**
1099
+ * Unauthorized
1100
+ */
1101
+ 401: ProblemDetails;
1102
+ /**
1103
+ * Forbidden
1104
+ */
1105
+ 403: ProblemDetails;
1106
+ /**
1107
+ * Conflict
1108
+ */
1109
+ 409: ProblemDetails;
1110
+ /**
1111
+ * Payload Too Large
1112
+ */
1113
+ 413: ProblemDetails;
1114
+ /**
1115
+ * Unsupported Media Type
1116
+ */
1117
+ 415: ProblemDetails;
1118
+ /**
1119
+ * Too Many Requests
1120
+ */
1121
+ 429: ProblemDetails;
1122
+ /**
1123
+ * Internal Server Error
1124
+ */
1125
+ 500: ProblemDetails;
1126
+ /**
1127
+ * Bad Gateway
1128
+ */
1129
+ 502: ProblemDetails;
1130
+ /**
1131
+ * Service Unavailable
1132
+ */
1133
+ 503: ProblemDetails;
1134
+ };
1135
+
1136
+ export type AdminChangeTrackerRelationshipError =
1137
+ AdminChangeTrackerRelationshipErrors[keyof AdminChangeTrackerRelationshipErrors];
1138
+
1139
+ export type AdminChangeTrackerRelationshipResponses = {
1140
+ /**
1141
+ * OK
1142
+ */
1143
+ 200: CommandSuccess;
1144
+ };
1145
+
1146
+ export type AdminChangeTrackerRelationshipResponse =
1147
+ AdminChangeTrackerRelationshipResponses[keyof AdminChangeTrackerRelationshipResponses];
1148
+
1149
+ export type AdminVerifyTrackerRelationshipData = {
1150
+ body: AdminRelationshipVerificationRequest;
1151
+ path: {
1152
+ trackerId: string;
1153
+ };
1154
+ query?: never;
1155
+ url: "/v1/admin/product-evidence/trackers/{trackerId}/relationship-verification-queries";
1156
+ };
1157
+
1158
+ export type AdminVerifyTrackerRelationshipErrors = {
1159
+ /**
1160
+ * Bad Request
1161
+ */
1162
+ 400: ProblemDetails;
1163
+ /**
1164
+ * Unauthorized
1165
+ */
1166
+ 401: ProblemDetails;
1167
+ /**
1168
+ * Forbidden
1169
+ */
1170
+ 403: ProblemDetails;
1171
+ /**
1172
+ * Conflict
1173
+ */
1174
+ 409: ProblemDetails;
1175
+ /**
1176
+ * Payload Too Large
1177
+ */
1178
+ 413: ProblemDetails;
1179
+ /**
1180
+ * Unsupported Media Type
1181
+ */
1182
+ 415: ProblemDetails;
1183
+ /**
1184
+ * Too Many Requests
1185
+ */
1186
+ 429: ProblemDetails;
1187
+ /**
1188
+ * Internal Server Error
1189
+ */
1190
+ 500: ProblemDetails;
1191
+ /**
1192
+ * Bad Gateway
1193
+ */
1194
+ 502: ProblemDetails;
1195
+ /**
1196
+ * Service Unavailable
1197
+ */
1198
+ 503: ProblemDetails;
1199
+ };
1200
+
1201
+ export type AdminVerifyTrackerRelationshipError =
1202
+ AdminVerifyTrackerRelationshipErrors[keyof AdminVerifyTrackerRelationshipErrors];
1203
+
1204
+ export type AdminVerifyTrackerRelationshipResponses = {
1205
+ /**
1206
+ * OK
1207
+ */
1208
+ 200: AdminRelationshipVerification;
1209
+ };
1210
+
1211
+ export type AdminVerifyTrackerRelationshipResponse =
1212
+ AdminVerifyTrackerRelationshipResponses[keyof AdminVerifyTrackerRelationshipResponses];
1213
+
244
1214
  export type AdminGetSessionData = {
245
1215
  body?: never;
246
1216
  path?: never;