@crvouga/mockingbird-service-oura 0.1.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/openapi.yaml ADDED
@@ -0,0 +1,1031 @@
1
+ {
2
+ "openapi": "3.1.0",
3
+ "info": {
4
+ "title": "Oura v2 mock",
5
+ "version": "2.0"
6
+ },
7
+ "servers": [{ "url": "https://api.ouraring.com" }],
8
+ "paths": {
9
+ "/v2/usercollection/workout": {
10
+ "get": {
11
+ "operationId": "ListWorkout",
12
+ "x-mockingbird": {
13
+ "parity": {
14
+ "safe": true
15
+ }
16
+ },
17
+ "parameters": [
18
+ {
19
+ "name": "start_date",
20
+ "in": "query",
21
+ "schema": {
22
+ "type": "string",
23
+ "example": "2026-01-01"
24
+ }
25
+ },
26
+ {
27
+ "name": "end_date",
28
+ "in": "query",
29
+ "schema": {
30
+ "type": "string",
31
+ "example": "2026-01-31"
32
+ }
33
+ },
34
+ {
35
+ "name": "next_token",
36
+ "in": "query",
37
+ "schema": {
38
+ "type": "string",
39
+ "example": ""
40
+ }
41
+ }
42
+ ],
43
+ "responses": {
44
+ "200": {
45
+ "description": "Collection page",
46
+ "content": {
47
+ "application/json": {
48
+ "schema": {
49
+ "type": "object",
50
+ "required": [
51
+ "data",
52
+ "next_token"
53
+ ],
54
+ "properties": {
55
+ "data": {
56
+ "type": "array",
57
+ "items": {
58
+ "type": "object",
59
+ "additionalProperties": true
60
+ }
61
+ },
62
+ "next_token": {
63
+ "type": [
64
+ "string",
65
+ "null"
66
+ ]
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ },
73
+ "400": {
74
+ "description": "Vendor error",
75
+ "content": {
76
+ "application/json": {
77
+ "schema": {
78
+ "type": "object",
79
+ "additionalProperties": true
80
+ }
81
+ }
82
+ }
83
+ },
84
+ "401": {
85
+ "description": "Vendor error",
86
+ "content": {
87
+ "application/json": {
88
+ "schema": {
89
+ "type": "object",
90
+ "additionalProperties": true
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "403": {
96
+ "description": "Vendor error",
97
+ "content": {
98
+ "application/json": {
99
+ "schema": {
100
+ "type": "object",
101
+ "additionalProperties": true
102
+ }
103
+ }
104
+ }
105
+ },
106
+ "422": {
107
+ "description": "Vendor error",
108
+ "content": {
109
+ "application/json": {
110
+ "schema": {
111
+ "type": "object",
112
+ "additionalProperties": true
113
+ }
114
+ }
115
+ }
116
+ },
117
+ "429": {
118
+ "description": "Vendor error",
119
+ "content": {
120
+ "application/json": {
121
+ "schema": {
122
+ "type": "object",
123
+ "additionalProperties": true
124
+ }
125
+ }
126
+ }
127
+ },
128
+ "500": {
129
+ "description": "Vendor error",
130
+ "content": {
131
+ "application/json": {
132
+ "schema": {
133
+ "type": "object",
134
+ "additionalProperties": true
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ },
142
+ "/v2/usercollection/sleep": {
143
+ "get": {
144
+ "operationId": "ListSleep",
145
+ "x-mockingbird": {
146
+ "parity": {
147
+ "safe": true
148
+ }
149
+ },
150
+ "parameters": [
151
+ {
152
+ "name": "start_date",
153
+ "in": "query",
154
+ "schema": {
155
+ "type": "string"
156
+ }
157
+ },
158
+ {
159
+ "name": "end_date",
160
+ "in": "query",
161
+ "schema": {
162
+ "type": "string"
163
+ }
164
+ },
165
+ {
166
+ "name": "next_token",
167
+ "in": "query",
168
+ "schema": {
169
+ "type": "string"
170
+ }
171
+ }
172
+ ],
173
+ "responses": {
174
+ "200": {
175
+ "description": "Collection page",
176
+ "content": {
177
+ "application/json": {
178
+ "schema": {
179
+ "type": "object",
180
+ "required": [
181
+ "data",
182
+ "next_token"
183
+ ],
184
+ "properties": {
185
+ "data": {
186
+ "type": "array",
187
+ "items": {
188
+ "type": "object",
189
+ "additionalProperties": true
190
+ }
191
+ },
192
+ "next_token": {
193
+ "type": [
194
+ "string",
195
+ "null"
196
+ ]
197
+ }
198
+ }
199
+ }
200
+ }
201
+ }
202
+ },
203
+ "400": {
204
+ "description": "Vendor error",
205
+ "content": {
206
+ "application/json": {
207
+ "schema": {
208
+ "type": "object",
209
+ "additionalProperties": true
210
+ }
211
+ }
212
+ }
213
+ },
214
+ "401": {
215
+ "description": "Vendor error",
216
+ "content": {
217
+ "application/json": {
218
+ "schema": {
219
+ "type": "object",
220
+ "additionalProperties": true
221
+ }
222
+ }
223
+ }
224
+ },
225
+ "403": {
226
+ "description": "Vendor error",
227
+ "content": {
228
+ "application/json": {
229
+ "schema": {
230
+ "type": "object",
231
+ "additionalProperties": true
232
+ }
233
+ }
234
+ }
235
+ },
236
+ "422": {
237
+ "description": "Vendor error",
238
+ "content": {
239
+ "application/json": {
240
+ "schema": {
241
+ "type": "object",
242
+ "additionalProperties": true
243
+ }
244
+ }
245
+ }
246
+ },
247
+ "429": {
248
+ "description": "Vendor error",
249
+ "content": {
250
+ "application/json": {
251
+ "schema": {
252
+ "type": "object",
253
+ "additionalProperties": true
254
+ }
255
+ }
256
+ }
257
+ },
258
+ "500": {
259
+ "description": "Vendor error",
260
+ "content": {
261
+ "application/json": {
262
+ "schema": {
263
+ "type": "object",
264
+ "additionalProperties": true
265
+ }
266
+ }
267
+ }
268
+ }
269
+ }
270
+ }
271
+ },
272
+ "/v2/usercollection/heartrate": {
273
+ "get": {
274
+ "operationId": "ListHeartrate",
275
+ "x-mockingbird": {
276
+ "parity": {
277
+ "safe": true
278
+ }
279
+ },
280
+ "parameters": [
281
+ {
282
+ "name": "start_datetime",
283
+ "in": "query",
284
+ "schema": {
285
+ "type": "string"
286
+ }
287
+ },
288
+ {
289
+ "name": "end_datetime",
290
+ "in": "query",
291
+ "schema": {
292
+ "type": "string"
293
+ }
294
+ },
295
+ {
296
+ "name": "next_token",
297
+ "in": "query",
298
+ "schema": {
299
+ "type": "string"
300
+ }
301
+ }
302
+ ],
303
+ "responses": {
304
+ "200": {
305
+ "description": "Collection page",
306
+ "content": {
307
+ "application/json": {
308
+ "schema": {
309
+ "type": "object",
310
+ "required": [
311
+ "data",
312
+ "next_token"
313
+ ],
314
+ "properties": {
315
+ "data": {
316
+ "type": "array",
317
+ "items": {
318
+ "type": "object",
319
+ "additionalProperties": true
320
+ }
321
+ },
322
+ "next_token": {
323
+ "type": [
324
+ "string",
325
+ "null"
326
+ ]
327
+ }
328
+ }
329
+ }
330
+ }
331
+ }
332
+ },
333
+ "400": {
334
+ "description": "Vendor error",
335
+ "content": {
336
+ "application/json": {
337
+ "schema": {
338
+ "type": "object",
339
+ "additionalProperties": true
340
+ }
341
+ }
342
+ }
343
+ },
344
+ "401": {
345
+ "description": "Vendor error",
346
+ "content": {
347
+ "application/json": {
348
+ "schema": {
349
+ "type": "object",
350
+ "additionalProperties": true
351
+ }
352
+ }
353
+ }
354
+ },
355
+ "403": {
356
+ "description": "Vendor error",
357
+ "content": {
358
+ "application/json": {
359
+ "schema": {
360
+ "type": "object",
361
+ "additionalProperties": true
362
+ }
363
+ }
364
+ }
365
+ },
366
+ "422": {
367
+ "description": "Vendor error",
368
+ "content": {
369
+ "application/json": {
370
+ "schema": {
371
+ "type": "object",
372
+ "additionalProperties": true
373
+ }
374
+ }
375
+ }
376
+ },
377
+ "429": {
378
+ "description": "Vendor error",
379
+ "content": {
380
+ "application/json": {
381
+ "schema": {
382
+ "type": "object",
383
+ "additionalProperties": true
384
+ }
385
+ }
386
+ }
387
+ },
388
+ "500": {
389
+ "description": "Vendor error",
390
+ "content": {
391
+ "application/json": {
392
+ "schema": {
393
+ "type": "object",
394
+ "additionalProperties": true
395
+ }
396
+ }
397
+ }
398
+ }
399
+ }
400
+ }
401
+ },
402
+ "/v2/usercollection/daily_activity": {
403
+ "get": {
404
+ "operationId": "ListDailyActivity",
405
+ "x-mockingbird": {
406
+ "parity": {
407
+ "safe": true
408
+ }
409
+ },
410
+ "parameters": [
411
+ {
412
+ "name": "start_date",
413
+ "in": "query",
414
+ "schema": {
415
+ "type": "string"
416
+ }
417
+ },
418
+ {
419
+ "name": "end_date",
420
+ "in": "query",
421
+ "schema": {
422
+ "type": "string"
423
+ }
424
+ },
425
+ {
426
+ "name": "next_token",
427
+ "in": "query",
428
+ "schema": {
429
+ "type": "string"
430
+ }
431
+ }
432
+ ],
433
+ "responses": {
434
+ "200": {
435
+ "description": "Collection page",
436
+ "content": {
437
+ "application/json": {
438
+ "schema": {
439
+ "type": "object",
440
+ "required": [
441
+ "data",
442
+ "next_token"
443
+ ],
444
+ "properties": {
445
+ "data": {
446
+ "type": "array",
447
+ "items": {
448
+ "type": "object",
449
+ "additionalProperties": true
450
+ }
451
+ },
452
+ "next_token": {
453
+ "type": [
454
+ "string",
455
+ "null"
456
+ ]
457
+ }
458
+ }
459
+ }
460
+ }
461
+ }
462
+ },
463
+ "400": {
464
+ "description": "Vendor error",
465
+ "content": {
466
+ "application/json": {
467
+ "schema": {
468
+ "type": "object",
469
+ "additionalProperties": true
470
+ }
471
+ }
472
+ }
473
+ },
474
+ "401": {
475
+ "description": "Vendor error",
476
+ "content": {
477
+ "application/json": {
478
+ "schema": {
479
+ "type": "object",
480
+ "additionalProperties": true
481
+ }
482
+ }
483
+ }
484
+ },
485
+ "403": {
486
+ "description": "Vendor error",
487
+ "content": {
488
+ "application/json": {
489
+ "schema": {
490
+ "type": "object",
491
+ "additionalProperties": true
492
+ }
493
+ }
494
+ }
495
+ },
496
+ "422": {
497
+ "description": "Vendor error",
498
+ "content": {
499
+ "application/json": {
500
+ "schema": {
501
+ "type": "object",
502
+ "additionalProperties": true
503
+ }
504
+ }
505
+ }
506
+ },
507
+ "429": {
508
+ "description": "Vendor error",
509
+ "content": {
510
+ "application/json": {
511
+ "schema": {
512
+ "type": "object",
513
+ "additionalProperties": true
514
+ }
515
+ }
516
+ }
517
+ },
518
+ "500": {
519
+ "description": "Vendor error",
520
+ "content": {
521
+ "application/json": {
522
+ "schema": {
523
+ "type": "object",
524
+ "additionalProperties": true
525
+ }
526
+ }
527
+ }
528
+ }
529
+ }
530
+ }
531
+ },
532
+ "/v2/usercollection/daily_spo2": {
533
+ "get": {
534
+ "operationId": "ListDailySpo2",
535
+ "x-mockingbird": {
536
+ "parity": {
537
+ "safe": true
538
+ }
539
+ },
540
+ "parameters": [
541
+ {
542
+ "name": "start_date",
543
+ "in": "query",
544
+ "schema": {
545
+ "type": "string"
546
+ }
547
+ },
548
+ {
549
+ "name": "end_date",
550
+ "in": "query",
551
+ "schema": {
552
+ "type": "string"
553
+ }
554
+ },
555
+ {
556
+ "name": "next_token",
557
+ "in": "query",
558
+ "schema": {
559
+ "type": "string"
560
+ }
561
+ }
562
+ ],
563
+ "responses": {
564
+ "200": {
565
+ "description": "Collection page",
566
+ "content": {
567
+ "application/json": {
568
+ "schema": {
569
+ "type": "object",
570
+ "required": [
571
+ "data",
572
+ "next_token"
573
+ ],
574
+ "properties": {
575
+ "data": {
576
+ "type": "array",
577
+ "items": {
578
+ "type": "object",
579
+ "additionalProperties": true
580
+ }
581
+ },
582
+ "next_token": {
583
+ "type": [
584
+ "string",
585
+ "null"
586
+ ]
587
+ }
588
+ }
589
+ }
590
+ }
591
+ }
592
+ },
593
+ "400": {
594
+ "description": "Vendor error",
595
+ "content": {
596
+ "application/json": {
597
+ "schema": {
598
+ "type": "object",
599
+ "additionalProperties": true
600
+ }
601
+ }
602
+ }
603
+ },
604
+ "401": {
605
+ "description": "Vendor error",
606
+ "content": {
607
+ "application/json": {
608
+ "schema": {
609
+ "type": "object",
610
+ "additionalProperties": true
611
+ }
612
+ }
613
+ }
614
+ },
615
+ "403": {
616
+ "description": "Vendor error",
617
+ "content": {
618
+ "application/json": {
619
+ "schema": {
620
+ "type": "object",
621
+ "additionalProperties": true
622
+ }
623
+ }
624
+ }
625
+ },
626
+ "422": {
627
+ "description": "Vendor error",
628
+ "content": {
629
+ "application/json": {
630
+ "schema": {
631
+ "type": "object",
632
+ "additionalProperties": true
633
+ }
634
+ }
635
+ }
636
+ },
637
+ "429": {
638
+ "description": "Vendor error",
639
+ "content": {
640
+ "application/json": {
641
+ "schema": {
642
+ "type": "object",
643
+ "additionalProperties": true
644
+ }
645
+ }
646
+ }
647
+ },
648
+ "500": {
649
+ "description": "Vendor error",
650
+ "content": {
651
+ "application/json": {
652
+ "schema": {
653
+ "type": "object",
654
+ "additionalProperties": true
655
+ }
656
+ }
657
+ }
658
+ }
659
+ }
660
+ }
661
+ },
662
+ "/v2/usercollection/daily_readiness": {
663
+ "get": {
664
+ "operationId": "ListDailyReadiness",
665
+ "x-mockingbird": {
666
+ "parity": {
667
+ "safe": true
668
+ }
669
+ },
670
+ "parameters": [
671
+ {
672
+ "name": "start_date",
673
+ "in": "query",
674
+ "schema": {
675
+ "type": "string"
676
+ }
677
+ },
678
+ {
679
+ "name": "end_date",
680
+ "in": "query",
681
+ "schema": {
682
+ "type": "string"
683
+ }
684
+ },
685
+ {
686
+ "name": "next_token",
687
+ "in": "query",
688
+ "schema": {
689
+ "type": "string"
690
+ }
691
+ }
692
+ ],
693
+ "responses": {
694
+ "200": {
695
+ "description": "Collection page",
696
+ "content": {
697
+ "application/json": {
698
+ "schema": {
699
+ "type": "object",
700
+ "required": [
701
+ "data",
702
+ "next_token"
703
+ ],
704
+ "properties": {
705
+ "data": {
706
+ "type": "array",
707
+ "items": {
708
+ "type": "object",
709
+ "additionalProperties": true
710
+ }
711
+ },
712
+ "next_token": {
713
+ "type": [
714
+ "string",
715
+ "null"
716
+ ]
717
+ }
718
+ }
719
+ }
720
+ }
721
+ }
722
+ },
723
+ "400": {
724
+ "description": "Vendor error",
725
+ "content": {
726
+ "application/json": {
727
+ "schema": {
728
+ "type": "object",
729
+ "additionalProperties": true
730
+ }
731
+ }
732
+ }
733
+ },
734
+ "401": {
735
+ "description": "Vendor error",
736
+ "content": {
737
+ "application/json": {
738
+ "schema": {
739
+ "type": "object",
740
+ "additionalProperties": true
741
+ }
742
+ }
743
+ }
744
+ },
745
+ "403": {
746
+ "description": "Vendor error",
747
+ "content": {
748
+ "application/json": {
749
+ "schema": {
750
+ "type": "object",
751
+ "additionalProperties": true
752
+ }
753
+ }
754
+ }
755
+ },
756
+ "422": {
757
+ "description": "Vendor error",
758
+ "content": {
759
+ "application/json": {
760
+ "schema": {
761
+ "type": "object",
762
+ "additionalProperties": true
763
+ }
764
+ }
765
+ }
766
+ },
767
+ "429": {
768
+ "description": "Vendor error",
769
+ "content": {
770
+ "application/json": {
771
+ "schema": {
772
+ "type": "object",
773
+ "additionalProperties": true
774
+ }
775
+ }
776
+ }
777
+ },
778
+ "500": {
779
+ "description": "Vendor error",
780
+ "content": {
781
+ "application/json": {
782
+ "schema": {
783
+ "type": "object",
784
+ "additionalProperties": true
785
+ }
786
+ }
787
+ }
788
+ }
789
+ }
790
+ }
791
+ },
792
+ "/v2/usercollection/daily_sleep": {
793
+ "get": {
794
+ "operationId": "ListDailySleep",
795
+ "x-mockingbird": {
796
+ "parity": {
797
+ "safe": true
798
+ }
799
+ },
800
+ "parameters": [
801
+ {
802
+ "name": "start_date",
803
+ "in": "query",
804
+ "schema": {
805
+ "type": "string"
806
+ }
807
+ },
808
+ {
809
+ "name": "end_date",
810
+ "in": "query",
811
+ "schema": {
812
+ "type": "string"
813
+ }
814
+ },
815
+ {
816
+ "name": "next_token",
817
+ "in": "query",
818
+ "schema": {
819
+ "type": "string"
820
+ }
821
+ }
822
+ ],
823
+ "responses": {
824
+ "200": {
825
+ "description": "Collection page",
826
+ "content": {
827
+ "application/json": {
828
+ "schema": {
829
+ "type": "object",
830
+ "required": [
831
+ "data",
832
+ "next_token"
833
+ ],
834
+ "properties": {
835
+ "data": {
836
+ "type": "array",
837
+ "items": {
838
+ "type": "object",
839
+ "additionalProperties": true
840
+ }
841
+ },
842
+ "next_token": {
843
+ "type": [
844
+ "string",
845
+ "null"
846
+ ]
847
+ }
848
+ }
849
+ }
850
+ }
851
+ }
852
+ },
853
+ "400": {
854
+ "description": "Vendor error",
855
+ "content": {
856
+ "application/json": {
857
+ "schema": {
858
+ "type": "object",
859
+ "additionalProperties": true
860
+ }
861
+ }
862
+ }
863
+ },
864
+ "401": {
865
+ "description": "Vendor error",
866
+ "content": {
867
+ "application/json": {
868
+ "schema": {
869
+ "type": "object",
870
+ "additionalProperties": true
871
+ }
872
+ }
873
+ }
874
+ },
875
+ "403": {
876
+ "description": "Vendor error",
877
+ "content": {
878
+ "application/json": {
879
+ "schema": {
880
+ "type": "object",
881
+ "additionalProperties": true
882
+ }
883
+ }
884
+ }
885
+ },
886
+ "422": {
887
+ "description": "Vendor error",
888
+ "content": {
889
+ "application/json": {
890
+ "schema": {
891
+ "type": "object",
892
+ "additionalProperties": true
893
+ }
894
+ }
895
+ }
896
+ },
897
+ "429": {
898
+ "description": "Vendor error",
899
+ "content": {
900
+ "application/json": {
901
+ "schema": {
902
+ "type": "object",
903
+ "additionalProperties": true
904
+ }
905
+ }
906
+ }
907
+ },
908
+ "500": {
909
+ "description": "Vendor error",
910
+ "content": {
911
+ "application/json": {
912
+ "schema": {
913
+ "type": "object",
914
+ "additionalProperties": true
915
+ }
916
+ }
917
+ }
918
+ }
919
+ }
920
+ }
921
+ },
922
+ "/oauth/token": {
923
+ "post": {
924
+ "operationId": "OAuthToken",
925
+ "x-mockingbird": {
926
+ "parity": {
927
+ "safe": false
928
+ }
929
+ },
930
+ "requestBody": {
931
+ "required": true,
932
+ "content": {
933
+ "application/x-www-form-urlencoded": {
934
+ "schema": {
935
+ "type": "object",
936
+ "required": [
937
+ "grant_type"
938
+ ],
939
+ "properties": {
940
+ "grant_type": {
941
+ "type": "string"
942
+ },
943
+ "code": {
944
+ "type": "string"
945
+ },
946
+ "refresh_token": {
947
+ "type": "string"
948
+ },
949
+ "client_id": {
950
+ "type": "string"
951
+ },
952
+ "client_secret": {
953
+ "type": "string"
954
+ },
955
+ "redirect_uri": {
956
+ "type": "string"
957
+ },
958
+ "code_verifier": {
959
+ "type": "string"
960
+ }
961
+ }
962
+ }
963
+ }
964
+ }
965
+ },
966
+ "responses": {
967
+ "200": {
968
+ "description": "Token",
969
+ "content": {
970
+ "application/json": {
971
+ "schema": {
972
+ "type": "object",
973
+ "required": [
974
+ "access_token",
975
+ "refresh_token",
976
+ "expires_in",
977
+ "token_type"
978
+ ],
979
+ "properties": {
980
+ "access_token": {
981
+ "type": "string",
982
+ "x-mockingbird-volatile": {
983
+ "kind": "token"
984
+ }
985
+ },
986
+ "refresh_token": {
987
+ "type": "string",
988
+ "x-mockingbird-volatile": {
989
+ "kind": "token"
990
+ }
991
+ },
992
+ "expires_in": {
993
+ "type": "integer"
994
+ },
995
+ "token_type": {
996
+ "type": "string"
997
+ }
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ },
1003
+ "400": {
1004
+ "description": "OAuth error",
1005
+ "content": {
1006
+ "application/json": {
1007
+ "schema": {
1008
+ "type": "object",
1009
+ "required": [
1010
+ "error"
1011
+ ],
1012
+ "properties": {
1013
+ "error": {
1014
+ "type": "string"
1015
+ },
1016
+ "status": {
1017
+ "type": "integer"
1018
+ },
1019
+ "error_description": {
1020
+ "type": "string"
1021
+ }
1022
+ }
1023
+ }
1024
+ }
1025
+ }
1026
+ }
1027
+ }
1028
+ }
1029
+ }
1030
+ }
1031
+ }