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