@ourskyai/platform-api 1.3.1734

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/api.ts ADDED
@@ -0,0 +1,2911 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OurSky Platform
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.3.1734
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import type { Configuration } from './configuration';
17
+ import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
22
+ import type { RequestArgs } from './base';
23
+ // @ts-ignore
24
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
25
+
26
+ /**
27
+ * Camera mode
28
+ * @export
29
+ * @enum {string}
30
+ */
31
+
32
+ export const CameraMode = {
33
+ VIDEO: 'VIDEO',
34
+ SINGLE: 'SINGLE'
35
+ } as const;
36
+
37
+ export type CameraMode = typeof CameraMode[keyof typeof CameraMode];
38
+
39
+
40
+ /**
41
+ * successful action
42
+ * @export
43
+ * @interface EmptySuccess
44
+ */
45
+ export interface EmptySuccess {
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof EmptySuccess
50
+ */
51
+ 'message'?: string;
52
+ }
53
+ /**
54
+ *
55
+ * @export
56
+ * @enum {string}
57
+ */
58
+
59
+ export const FilterType = {
60
+ NONE: 'NONE',
61
+ RED: 'RED',
62
+ BLUE: 'BLUE',
63
+ GREEN: 'GREEN',
64
+ UV: 'UV',
65
+ IR: 'IR',
66
+ LUMINANCE: 'LUMINANCE',
67
+ ENHANCED_LUMINANCE: 'ENHANCED_LUMINANCE',
68
+ H_ALPHA: 'H_ALPHA',
69
+ H_BETA: 'H_BETA',
70
+ S_II: 'S_II',
71
+ O_III: 'O_III',
72
+ DUAL_BAND: 'DUAL_BAND',
73
+ PHOTO_JOHNSON_U: 'PHOTO_JOHNSON_U',
74
+ PHOTO_JOHNSON_B: 'PHOTO_JOHNSON_B',
75
+ PHOTO_JOHNSON_V: 'PHOTO_JOHNSON_V',
76
+ PHOTO_COUSINS_R: 'PHOTO_COUSINS_R',
77
+ PHOTO_COUSINS_I: 'PHOTO_COUSINS_I'
78
+ } as const;
79
+
80
+ export type FilterType = typeof FilterType[keyof typeof FilterType];
81
+
82
+
83
+ /**
84
+ * GroundStationParticipant
85
+ * @export
86
+ * @interface GroundStationParticipant
87
+ */
88
+ export interface GroundStationParticipant {
89
+ /**
90
+ *
91
+ * @type {string}
92
+ * @memberof GroundStationParticipant
93
+ */
94
+ 'nodeId': string;
95
+ /**
96
+ *
97
+ * @type {Location}
98
+ * @memberof GroundStationParticipant
99
+ */
100
+ 'location': Location;
101
+ /**
102
+ *
103
+ * @type {number}
104
+ * @memberof GroundStationParticipant
105
+ */
106
+ 'megapixels': number;
107
+ /**
108
+ *
109
+ * @type {ShutterType}
110
+ * @memberof GroundStationParticipant
111
+ */
112
+ 'shutterType': ShutterType;
113
+ /**
114
+ *
115
+ * @type {number}
116
+ * @memberof GroundStationParticipant
117
+ */
118
+ 'pixelSizeMicrons': number;
119
+ /**
120
+ *
121
+ * @type {boolean}
122
+ * @memberof GroundStationParticipant
123
+ */
124
+ 'gpsTimestamps': boolean;
125
+ /**
126
+ *
127
+ * @type {number}
128
+ * @memberof GroundStationParticipant
129
+ */
130
+ 'otaFocalLengthMm': number;
131
+ /**
132
+ *
133
+ * @type {number}
134
+ * @memberof GroundStationParticipant
135
+ */
136
+ 'otaApertureMm': number;
137
+ /**
138
+ *
139
+ * @type {MountType}
140
+ * @memberof GroundStationParticipant
141
+ */
142
+ 'mountType': MountType;
143
+ /**
144
+ *
145
+ * @type {string}
146
+ * @memberof GroundStationParticipant
147
+ */
148
+ 'masterFlat'?: string;
149
+ /**
150
+ *
151
+ * @type {string}
152
+ * @memberof GroundStationParticipant
153
+ */
154
+ 'masterDark'?: string;
155
+ /**
156
+ *
157
+ * @type {string}
158
+ * @memberof GroundStationParticipant
159
+ */
160
+ 'masterBias'?: string;
161
+ }
162
+
163
+
164
+ /**
165
+ *
166
+ * @export
167
+ * @interface Location
168
+ */
169
+ export interface Location {
170
+ /**
171
+ *
172
+ * @type {number}
173
+ * @memberof Location
174
+ */
175
+ 'latitude': number;
176
+ /**
177
+ *
178
+ * @type {number}
179
+ * @memberof Location
180
+ */
181
+ 'longitude': number;
182
+ /**
183
+ *
184
+ * @type {number}
185
+ * @memberof Location
186
+ */
187
+ 'altitude': number;
188
+ }
189
+ /**
190
+ * metric type
191
+ * @export
192
+ * @enum {string}
193
+ */
194
+
195
+ export const MetricType = {
196
+ COUNT: 'COUNT',
197
+ DISTRIBUTION: 'DISTRIBUTION'
198
+ } as const;
199
+
200
+ export type MetricType = typeof MetricType[keyof typeof MetricType];
201
+
202
+
203
+ /**
204
+ * The type of mount
205
+ * @export
206
+ * @enum {string}
207
+ */
208
+
209
+ export const MountType = {
210
+ ALT_AZ: 'ALT_AZ',
211
+ EQUITORIAL: 'EQUITORIAL'
212
+ } as const;
213
+
214
+ export type MountType = typeof MountType[keyof typeof MountType];
215
+
216
+
217
+ /**
218
+ * possible states for a node
219
+ * @export
220
+ * @enum {string}
221
+ */
222
+
223
+ export const NodeState = {
224
+ READY: 'READY',
225
+ PENDING: 'PENDING',
226
+ OFFLINE: 'OFFLINE',
227
+ UNAVAILABLE: 'UNAVAILABLE',
228
+ UNKNOWN: 'UNKNOWN',
229
+ SUPERSEDED: 'SUPERSEDED'
230
+ } as const;
231
+
232
+ export type NodeState = typeof NodeState[keyof typeof NodeState];
233
+
234
+
235
+ /**
236
+ * optical tube types
237
+ * @export
238
+ * @enum {string}
239
+ */
240
+
241
+ export const OpticalTubeType = {
242
+ NEWTONIAN: 'NEWTONIAN',
243
+ SCT: 'SCT',
244
+ MCT: 'MCT',
245
+ RC: 'RC',
246
+ REFRACTOR: 'REFRACTOR'
247
+ } as const;
248
+
249
+ export type OpticalTubeType = typeof OpticalTubeType[keyof typeof OpticalTubeType];
250
+
251
+
252
+ /**
253
+ * shutter type
254
+ * @export
255
+ * @enum {string}
256
+ */
257
+
258
+ export const ShutterType = {
259
+ ROLLING: 'ROLLING',
260
+ GLOBAL: 'GLOBAL'
261
+ } as const;
262
+
263
+ export type ShutterType = typeof ShutterType[keyof typeof ShutterType];
264
+
265
+
266
+ /**
267
+ * successful create
268
+ * @export
269
+ * @interface SuccessfulCreate
270
+ */
271
+ export interface SuccessfulCreate {
272
+ /**
273
+ *
274
+ * @type {string}
275
+ * @memberof SuccessfulCreate
276
+ */
277
+ 'id': string;
278
+ }
279
+ /**
280
+ * target tracking type
281
+ * @export
282
+ * @enum {string}
283
+ */
284
+
285
+ export const TrackingType = {
286
+ SIDEREAL: 'SIDEREAL',
287
+ TARGET_RATE: 'TARGET_RATE'
288
+ } as const;
289
+
290
+ export type TrackingType = typeof TrackingType[keyof typeof TrackingType];
291
+
292
+
293
+ /**
294
+ * v1Camera
295
+ * @export
296
+ * @interface V1Camera
297
+ */
298
+ export interface V1Camera {
299
+ /**
300
+ *
301
+ * @type {string}
302
+ * @memberof V1Camera
303
+ */
304
+ 'id': string;
305
+ /**
306
+ *
307
+ * @type {string}
308
+ * @memberof V1Camera
309
+ */
310
+ 'model': string;
311
+ /**
312
+ *
313
+ * @type {number}
314
+ * @memberof V1Camera
315
+ */
316
+ 'pixelSizeMicrons': number;
317
+ /**
318
+ *
319
+ * @type {number}
320
+ * @memberof V1Camera
321
+ */
322
+ 'pixelsX'?: number;
323
+ /**
324
+ *
325
+ * @type {number}
326
+ * @memberof V1Camera
327
+ */
328
+ 'pixelsY'?: number;
329
+ /**
330
+ *
331
+ * @type {number}
332
+ * @memberof V1Camera
333
+ */
334
+ 'megapixels': number;
335
+ /**
336
+ *
337
+ * @type {boolean}
338
+ * @memberof V1Camera
339
+ */
340
+ 'chilled': boolean;
341
+ /**
342
+ *
343
+ * @type {number}
344
+ * @memberof V1Camera
345
+ */
346
+ 'adcBitDepth': number;
347
+ /**
348
+ *
349
+ * @type {boolean}
350
+ * @memberof V1Camera
351
+ */
352
+ 'gpsTimestamps': boolean;
353
+ /**
354
+ *
355
+ * @type {ShutterType}
356
+ * @memberof V1Camera
357
+ */
358
+ 'shutterType': ShutterType;
359
+ /**
360
+ *
361
+ * @type {number}
362
+ * @memberof V1Camera
363
+ */
364
+ 'fullWellCapacity'?: number;
365
+ /**
366
+ *
367
+ * @type {Array<V1SetupAction>}
368
+ * @memberof V1Camera
369
+ */
370
+ 'setupActions'?: Array<V1SetupAction>;
371
+ /**
372
+ *
373
+ * @type {boolean}
374
+ * @memberof V1Camera
375
+ */
376
+ 'isColor': boolean;
377
+ }
378
+
379
+
380
+ /**
381
+ * complete an observation
382
+ * @export
383
+ * @interface V1CompleteObservation
384
+ */
385
+ export interface V1CompleteObservation {
386
+ /**
387
+ *
388
+ * @type {string}
389
+ * @memberof V1CompleteObservation
390
+ */
391
+ 'imageSetId': string;
392
+ }
393
+ /**
394
+ * create image set
395
+ * @export
396
+ * @interface V1CreateImageSet
397
+ */
398
+ export interface V1CreateImageSet {
399
+ /**
400
+ *
401
+ * @type {string}
402
+ * @memberof V1CreateImageSet
403
+ */
404
+ 'targetId': string;
405
+ /**
406
+ *
407
+ * @type {string}
408
+ * @memberof V1CreateImageSet
409
+ */
410
+ 'nodeId': string;
411
+ /**
412
+ *
413
+ * @type {string}
414
+ * @memberof V1CreateImageSet
415
+ */
416
+ 'observationId'?: string;
417
+ /**
418
+ *
419
+ * @type {string}
420
+ * @memberof V1CreateImageSet
421
+ * @deprecated
422
+ */
423
+ 'ourskyPluginVersion'?: string;
424
+ /**
425
+ *
426
+ * @type {TrackingType}
427
+ * @memberof V1CreateImageSet
428
+ */
429
+ 'trackingType'?: TrackingType;
430
+ /**
431
+ *
432
+ * @type {FilterType}
433
+ * @memberof V1CreateImageSet
434
+ */
435
+ 'filterType'?: FilterType;
436
+ }
437
+
438
+
439
+ /**
440
+ * create image set image
441
+ * @export
442
+ * @interface V1CreateImageSetImage
443
+ */
444
+ export interface V1CreateImageSetImage {
445
+ /**
446
+ *
447
+ * @type {string}
448
+ * @memberof V1CreateImageSetImage
449
+ */
450
+ 'imageSetId': string;
451
+ }
452
+ /**
453
+ * successful create of image set image
454
+ * @export
455
+ * @interface V1CreateImageSetImageResponse
456
+ */
457
+ export interface V1CreateImageSetImageResponse {
458
+ /**
459
+ *
460
+ * @type {string}
461
+ * @memberof V1CreateImageSetImageResponse
462
+ */
463
+ 'id': string;
464
+ /**
465
+ *
466
+ * @type {string}
467
+ * @memberof V1CreateImageSetImageResponse
468
+ */
469
+ 'uploadUrl': string;
470
+ }
471
+ /**
472
+ * create a mount
473
+ * @export
474
+ * @interface V1CreateMount
475
+ */
476
+ export interface V1CreateMount {
477
+ /**
478
+ *
479
+ * @type {string}
480
+ * @memberof V1CreateMount
481
+ */
482
+ 'model': string;
483
+ /**
484
+ *
485
+ * @type {MountType}
486
+ * @memberof V1CreateMount
487
+ */
488
+ 'mountType': MountType;
489
+ /**
490
+ *
491
+ * @type {number}
492
+ * @memberof V1CreateMount
493
+ */
494
+ 'slewRate': number;
495
+ }
496
+
497
+
498
+ /**
499
+ * create an optical tube
500
+ * @export
501
+ * @interface V1CreateOpticalTube
502
+ */
503
+ export interface V1CreateOpticalTube {
504
+ /**
505
+ *
506
+ * @type {string}
507
+ * @memberof V1CreateOpticalTube
508
+ */
509
+ 'model': string;
510
+ /**
511
+ *
512
+ * @type {number}
513
+ * @memberof V1CreateOpticalTube
514
+ */
515
+ 'focalLengthMm': number;
516
+ /**
517
+ *
518
+ * @type {number}
519
+ * @memberof V1CreateOpticalTube
520
+ */
521
+ 'apertureMm': number;
522
+ /**
523
+ *
524
+ * @type {OpticalTubeType}
525
+ * @memberof V1CreateOpticalTube
526
+ */
527
+ 'type'?: OpticalTubeType;
528
+ }
529
+
530
+
531
+ /**
532
+ * v1GetNodes
533
+ * @export
534
+ * @interface V1GetNodes
535
+ */
536
+ export interface V1GetNodes {
537
+ /**
538
+ *
539
+ * @type {Array<V1NodeWithLocation>}
540
+ * @memberof V1GetNodes
541
+ */
542
+ 'nodes': Array<V1NodeWithLocation>;
543
+ }
544
+ /**
545
+ * V1GetObservatories
546
+ * @export
547
+ * @interface V1GetObservatories
548
+ */
549
+ export interface V1GetObservatories {
550
+ /**
551
+ *
552
+ * @type {Array<V1Observatory>}
553
+ * @memberof V1GetObservatories
554
+ */
555
+ 'observatories': Array<V1Observatory>;
556
+ }
557
+ /**
558
+ * v1GetImageSet
559
+ * @export
560
+ * @interface V1ImageSet
561
+ */
562
+ export interface V1ImageSet {
563
+ /**
564
+ *
565
+ * @type {string}
566
+ * @memberof V1ImageSet
567
+ */
568
+ 'id': string;
569
+ /**
570
+ *
571
+ * @type {string}
572
+ * @memberof V1ImageSet
573
+ */
574
+ 'targetId'?: string;
575
+ /**
576
+ *
577
+ * @type {number}
578
+ * @memberof V1ImageSet
579
+ */
580
+ 'ra'?: number;
581
+ /**
582
+ *
583
+ * @type {number}
584
+ * @memberof V1ImageSet
585
+ */
586
+ 'dec'?: number;
587
+ /**
588
+ *
589
+ * @type {string}
590
+ * @memberof V1ImageSet
591
+ */
592
+ 'nodeId': string;
593
+ /**
594
+ *
595
+ * @type {string}
596
+ * @memberof V1ImageSet
597
+ */
598
+ 'observationId'?: string;
599
+ /**
600
+ *
601
+ * @type {TrackingType}
602
+ * @memberof V1ImageSet
603
+ */
604
+ 'trackingType': TrackingType;
605
+ /**
606
+ *
607
+ * @type {FilterType}
608
+ * @memberof V1ImageSet
609
+ */
610
+ 'filterType'?: FilterType;
611
+ /**
612
+ *
613
+ * @type {string}
614
+ * @memberof V1ImageSet
615
+ */
616
+ 'createdAt': string;
617
+ /**
618
+ *
619
+ * @type {string}
620
+ * @memberof V1ImageSet
621
+ */
622
+ 'updatedAt'?: string;
623
+ /**
624
+ *
625
+ * @type {string}
626
+ * @memberof V1ImageSet
627
+ */
628
+ 'ourskyPluginVersion'?: string;
629
+ }
630
+
631
+
632
+ /**
633
+ * v1GetImageSetImage
634
+ * @export
635
+ * @interface V1ImageSetImage
636
+ */
637
+ export interface V1ImageSetImage {
638
+ /**
639
+ *
640
+ * @type {string}
641
+ * @memberof V1ImageSetImage
642
+ */
643
+ 'id': string;
644
+ /**
645
+ *
646
+ * @type {string}
647
+ * @memberof V1ImageSetImage
648
+ */
649
+ 'thumbnailUrl'?: string;
650
+ /**
651
+ *
652
+ * @type {string}
653
+ * @memberof V1ImageSetImage
654
+ */
655
+ 'imageUrl': string;
656
+ /**
657
+ *
658
+ * @type {string}
659
+ * @memberof V1ImageSetImage
660
+ */
661
+ 'nodeId': string;
662
+ /**
663
+ *
664
+ * @type {string}
665
+ * @memberof V1ImageSetImage
666
+ */
667
+ 'targetId'?: string;
668
+ /**
669
+ *
670
+ * @type {number}
671
+ * @memberof V1ImageSetImage
672
+ */
673
+ 'ra'?: number;
674
+ /**
675
+ *
676
+ * @type {number}
677
+ * @memberof V1ImageSetImage
678
+ */
679
+ 'dec'?: number;
680
+ /**
681
+ *
682
+ * @type {string}
683
+ * @memberof V1ImageSetImage
684
+ */
685
+ 'imageSetId': string;
686
+ /**
687
+ *
688
+ * @type {boolean}
689
+ * @memberof V1ImageSetImage
690
+ */
691
+ 'darkCalibrated': boolean;
692
+ /**
693
+ *
694
+ * @type {boolean}
695
+ * @memberof V1ImageSetImage
696
+ */
697
+ 'flatCalibrated': boolean;
698
+ /**
699
+ *
700
+ * @type {boolean}
701
+ * @memberof V1ImageSetImage
702
+ */
703
+ 'biasCalibrated': boolean;
704
+ /**
705
+ *
706
+ * @type {number}
707
+ * @memberof V1ImageSetImage
708
+ */
709
+ 'fwhmAverage'?: number;
710
+ /**
711
+ *
712
+ * @type {number}
713
+ * @memberof V1ImageSetImage
714
+ */
715
+ 'fwhmStdDev'?: number;
716
+ /**
717
+ *
718
+ * @type {number}
719
+ * @memberof V1ImageSetImage
720
+ */
721
+ 'fwhmAngle'?: number;
722
+ /**
723
+ *
724
+ * @type {number}
725
+ * @memberof V1ImageSetImage
726
+ */
727
+ 'raOffset'?: number;
728
+ /**
729
+ *
730
+ * @type {number}
731
+ * @memberof V1ImageSetImage
732
+ */
733
+ 'decOffset'?: number;
734
+ /**
735
+ *
736
+ * @type {number}
737
+ * @memberof V1ImageSetImage
738
+ */
739
+ 'totalOffset'?: number;
740
+ /**
741
+ *
742
+ * @type {number}
743
+ * @memberof V1ImageSetImage
744
+ */
745
+ 'totalOffsetStdDev'?: number;
746
+ /**
747
+ *
748
+ * @type {number}
749
+ * @memberof V1ImageSetImage
750
+ */
751
+ 'totalOffsetRMS'?: number;
752
+ /**
753
+ *
754
+ * @type {string}
755
+ * @memberof V1ImageSetImage
756
+ */
757
+ 'capturedAt': string;
758
+ /**
759
+ *
760
+ * @type {string}
761
+ * @memberof V1ImageSetImage
762
+ */
763
+ 'createdAt': string;
764
+ /**
765
+ *
766
+ * @type {number}
767
+ * @memberof V1ImageSetImage
768
+ */
769
+ 'binning'?: number;
770
+ /**
771
+ *
772
+ * @type {number}
773
+ * @memberof V1ImageSetImage
774
+ */
775
+ 'exposureLength': number;
776
+ }
777
+ /**
778
+ * metric
779
+ * @export
780
+ * @interface V1Metric
781
+ */
782
+ export interface V1Metric {
783
+ /**
784
+ *
785
+ * @type {string}
786
+ * @memberof V1Metric
787
+ */
788
+ 'name': string;
789
+ /**
790
+ *
791
+ * @type {number}
792
+ * @memberof V1Metric
793
+ */
794
+ 'value': number;
795
+ /**
796
+ *
797
+ * @type {Array<string>}
798
+ * @memberof V1Metric
799
+ */
800
+ 'tags'?: Array<string>;
801
+ /**
802
+ *
803
+ * @type {MetricType}
804
+ * @memberof V1Metric
805
+ */
806
+ 'type': MetricType;
807
+ /**
808
+ *
809
+ * @type {string}
810
+ * @memberof V1Metric
811
+ */
812
+ 'measuredAt': string;
813
+ }
814
+
815
+
816
+ /**
817
+ * v1Mount
818
+ * @export
819
+ * @interface V1Mount
820
+ */
821
+ export interface V1Mount {
822
+ /**
823
+ *
824
+ * @type {string}
825
+ * @memberof V1Mount
826
+ */
827
+ 'id': string;
828
+ /**
829
+ *
830
+ * @type {string}
831
+ * @memberof V1Mount
832
+ */
833
+ 'model': string;
834
+ }
835
+ /**
836
+ * v1Node
837
+ * @export
838
+ * @interface V1Node
839
+ */
840
+ export interface V1Node {
841
+ /**
842
+ *
843
+ * @type {string}
844
+ * @memberof V1Node
845
+ */
846
+ 'name': string;
847
+ /**
848
+ *
849
+ * @type {string}
850
+ * @memberof V1Node
851
+ */
852
+ 'observatoryId'?: string;
853
+ /**
854
+ *
855
+ * @type {string}
856
+ * @memberof V1Node
857
+ */
858
+ 'organizationId': string;
859
+ /**
860
+ *
861
+ * @type {string}
862
+ * @memberof V1Node
863
+ */
864
+ 'cameraId': string;
865
+ /**
866
+ *
867
+ * @type {string}
868
+ * @memberof V1Node
869
+ */
870
+ 'opticalTubeId': string;
871
+ /**
872
+ *
873
+ * @type {string}
874
+ * @memberof V1Node
875
+ */
876
+ 'mountId': string;
877
+ /**
878
+ *
879
+ * @type {string}
880
+ * @memberof V1Node
881
+ */
882
+ 'filterWheelId'?: string;
883
+ /**
884
+ *
885
+ * @type {number}
886
+ * @memberof V1Node
887
+ */
888
+ 'minAltitude': number;
889
+ /**
890
+ *
891
+ * @type {string}
892
+ * @memberof V1Node
893
+ */
894
+ 'createdAt': string;
895
+ /**
896
+ *
897
+ * @type {string}
898
+ * @memberof V1Node
899
+ */
900
+ 'updatedAt'?: string;
901
+ /**
902
+ *
903
+ * @type {NodeState}
904
+ * @memberof V1Node
905
+ */
906
+ 'state'?: NodeState;
907
+ /**
908
+ *
909
+ * @type {string}
910
+ * @memberof V1Node
911
+ */
912
+ 'id': string;
913
+ }
914
+
915
+
916
+ /**
917
+ * v1NodeWithLocation
918
+ * @export
919
+ * @interface V1NodeWithLocation
920
+ */
921
+ export interface V1NodeWithLocation {
922
+ /**
923
+ *
924
+ * @type {V1Node}
925
+ * @memberof V1NodeWithLocation
926
+ */
927
+ 'node': V1Node;
928
+ /**
929
+ *
930
+ * @type {Location}
931
+ * @memberof V1NodeWithLocation
932
+ */
933
+ 'location': Location;
934
+ }
935
+ /**
936
+ * V1Observatory
937
+ * @export
938
+ * @interface V1Observatory
939
+ */
940
+ export interface V1Observatory {
941
+ /**
942
+ *
943
+ * @type {string}
944
+ * @memberof V1Observatory
945
+ */
946
+ 'id': string;
947
+ /**
948
+ *
949
+ * @type {string}
950
+ * @memberof V1Observatory
951
+ */
952
+ 'name': string;
953
+ /**
954
+ *
955
+ * @type {number}
956
+ * @memberof V1Observatory
957
+ */
958
+ 'latitude': number;
959
+ /**
960
+ *
961
+ * @type {number}
962
+ * @memberof V1Observatory
963
+ */
964
+ 'longitude': number;
965
+ /**
966
+ *
967
+ * @type {number}
968
+ * @memberof V1Observatory
969
+ */
970
+ 'altitude': number;
971
+ }
972
+ /**
973
+ * v1OpticalTube
974
+ * @export
975
+ * @interface V1OpticalTube
976
+ */
977
+ export interface V1OpticalTube {
978
+ /**
979
+ *
980
+ * @type {string}
981
+ * @memberof V1OpticalTube
982
+ */
983
+ 'id': string;
984
+ /**
985
+ *
986
+ * @type {string}
987
+ * @memberof V1OpticalTube
988
+ */
989
+ 'model': string;
990
+ /**
991
+ *
992
+ * @type {number}
993
+ * @memberof V1OpticalTube
994
+ */
995
+ 'focalLengthMm': number;
996
+ /**
997
+ *
998
+ * @type {number}
999
+ * @memberof V1OpticalTube
1000
+ */
1001
+ 'apertureMm': number;
1002
+ }
1003
+ /**
1004
+ * v1SetupAction
1005
+ * @export
1006
+ * @interface V1SetupAction
1007
+ */
1008
+ export interface V1SetupAction {
1009
+ /**
1010
+ *
1011
+ * @type {string}
1012
+ * @memberof V1SetupAction
1013
+ */
1014
+ 'action': string;
1015
+ /**
1016
+ *
1017
+ * @type {Array<string>}
1018
+ * @memberof V1SetupAction
1019
+ */
1020
+ 'arguments'?: Array<string>;
1021
+ }
1022
+ /**
1023
+ * update node metrics
1024
+ * @export
1025
+ * @interface V1UpdateNodeMetrics
1026
+ */
1027
+ export interface V1UpdateNodeMetrics {
1028
+ /**
1029
+ *
1030
+ * @type {string}
1031
+ * @memberof V1UpdateNodeMetrics
1032
+ */
1033
+ 'nodeId': string;
1034
+ /**
1035
+ *
1036
+ * @type {number}
1037
+ * @memberof V1UpdateNodeMetrics
1038
+ */
1039
+ 'availableDiskBytes': number;
1040
+ /**
1041
+ *
1042
+ * @type {number}
1043
+ * @memberof V1UpdateNodeMetrics
1044
+ */
1045
+ 'availableMemoryBytes': number;
1046
+ /**
1047
+ *
1048
+ * @type {number}
1049
+ * @memberof V1UpdateNodeMetrics
1050
+ */
1051
+ 'ntpTimeDriftMs': number;
1052
+ /**
1053
+ *
1054
+ * @type {number}
1055
+ * @memberof V1UpdateNodeMetrics
1056
+ */
1057
+ 'minSlewSpeedMs'?: number;
1058
+ /**
1059
+ *
1060
+ * @type {number}
1061
+ * @memberof V1UpdateNodeMetrics
1062
+ */
1063
+ 'maxSlewSpeedMs'?: number;
1064
+ /**
1065
+ *
1066
+ * @type {number}
1067
+ * @memberof V1UpdateNodeMetrics
1068
+ */
1069
+ 'minSlewAndCenterSpeedMs'?: number;
1070
+ /**
1071
+ *
1072
+ * @type {number}
1073
+ * @memberof V1UpdateNodeMetrics
1074
+ */
1075
+ 'maxSlewAndCenterSpeedMs'?: number;
1076
+ /**
1077
+ *
1078
+ * @type {number}
1079
+ * @memberof V1UpdateNodeMetrics
1080
+ */
1081
+ 'minSlewAccuracyArcseconds'?: number;
1082
+ /**
1083
+ *
1084
+ * @type {number}
1085
+ * @memberof V1UpdateNodeMetrics
1086
+ */
1087
+ 'maxSlewAccuracyArcseconds'?: number;
1088
+ /**
1089
+ *
1090
+ * @type {string}
1091
+ * @memberof V1UpdateNodeMetrics
1092
+ */
1093
+ 'measuredAt': string;
1094
+ }
1095
+ /**
1096
+ * v2ObservationInstruction
1097
+ * @export
1098
+ * @interface V2GetObservation
1099
+ */
1100
+ export interface V2GetObservation {
1101
+ /**
1102
+ *
1103
+ * @type {string}
1104
+ * @memberof V2GetObservation
1105
+ */
1106
+ 'id': string;
1107
+ /**
1108
+ *
1109
+ * @type {string}
1110
+ * @memberof V2GetObservation
1111
+ */
1112
+ 'imageSetId': string;
1113
+ /**
1114
+ *
1115
+ * @type {string}
1116
+ * @memberof V2GetObservation
1117
+ */
1118
+ 'targetId': string;
1119
+ /**
1120
+ *
1121
+ * @type {TrackingType}
1122
+ * @memberof V2GetObservation
1123
+ */
1124
+ 'trackingType': TrackingType;
1125
+ /**
1126
+ *
1127
+ * @type {number}
1128
+ * @memberof V2GetObservation
1129
+ */
1130
+ 'exposureDuration': number;
1131
+ /**
1132
+ *
1133
+ * @type {number}
1134
+ * @memberof V2GetObservation
1135
+ */
1136
+ 'binning': number;
1137
+ /**
1138
+ *
1139
+ * @type {number}
1140
+ * @memberof V2GetObservation
1141
+ */
1142
+ 'gain': number;
1143
+ /**
1144
+ *
1145
+ * @type {number}
1146
+ * @memberof V2GetObservation
1147
+ */
1148
+ 'gainMode': number;
1149
+ /**
1150
+ *
1151
+ * @type {number}
1152
+ * @memberof V2GetObservation
1153
+ */
1154
+ 'ra': number;
1155
+ /**
1156
+ *
1157
+ * @type {number}
1158
+ * @memberof V2GetObservation
1159
+ */
1160
+ 'dec': number;
1161
+ /**
1162
+ *
1163
+ * @type {string}
1164
+ * @memberof V2GetObservation
1165
+ */
1166
+ 'captureStart': string;
1167
+ /**
1168
+ *
1169
+ * @type {string}
1170
+ * @memberof V2GetObservation
1171
+ */
1172
+ 'captureEnd': string;
1173
+ /**
1174
+ *
1175
+ * @type {number}
1176
+ * @memberof V2GetObservation
1177
+ */
1178
+ 'preCaptureWait': number;
1179
+ /**
1180
+ *
1181
+ * @type {string}
1182
+ * @memberof V2GetObservation
1183
+ */
1184
+ 'startSlewAt': string;
1185
+ /**
1186
+ *
1187
+ * @type {CameraMode}
1188
+ * @memberof V2GetObservation
1189
+ */
1190
+ 'cameraMode': CameraMode;
1191
+ /**
1192
+ *
1193
+ * @type {string}
1194
+ * @memberof V2GetObservation
1195
+ */
1196
+ 'tleLine1': string;
1197
+ /**
1198
+ *
1199
+ * @type {string}
1200
+ * @memberof V2GetObservation
1201
+ */
1202
+ 'tleLine2': string;
1203
+ }
1204
+
1205
+
1206
+
1207
+ /**
1208
+ * DefaultApi - axios parameter creator
1209
+ * @export
1210
+ */
1211
+ export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
1212
+ return {
1213
+ /**
1214
+ * match camera
1215
+ * @param {string} [model]
1216
+ * @param {number} [pixelSizeMicrons]
1217
+ * @param {number} [pixelsX]
1218
+ * @param {number} [pixelsY]
1219
+ * @param {number} [megapixels]
1220
+ * @param {boolean} [chilled]
1221
+ * @param {number} [adcBitDepth]
1222
+ * @param {boolean} [isColor]
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ */
1226
+ v1CameraMatch: async (model?: string, pixelSizeMicrons?: number, pixelsX?: number, pixelsY?: number, megapixels?: number, chilled?: boolean, adcBitDepth?: number, isColor?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1227
+ const localVarPath = `/v1/camera-match`;
1228
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1229
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1230
+ let baseOptions;
1231
+ if (configuration) {
1232
+ baseOptions = configuration.baseOptions;
1233
+ }
1234
+
1235
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1236
+ const localVarHeaderParameter = {} as any;
1237
+ const localVarQueryParameter = {} as any;
1238
+
1239
+ // authentication Roles required
1240
+
1241
+ // authentication BearerToken required
1242
+ // http bearer authentication required
1243
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1244
+
1245
+ if (model !== undefined) {
1246
+ localVarQueryParameter['model'] = model;
1247
+ }
1248
+
1249
+ if (pixelSizeMicrons !== undefined) {
1250
+ localVarQueryParameter['pixelSizeMicrons'] = pixelSizeMicrons;
1251
+ }
1252
+
1253
+ if (pixelsX !== undefined) {
1254
+ localVarQueryParameter['pixelsX'] = pixelsX;
1255
+ }
1256
+
1257
+ if (pixelsY !== undefined) {
1258
+ localVarQueryParameter['pixelsY'] = pixelsY;
1259
+ }
1260
+
1261
+ if (megapixels !== undefined) {
1262
+ localVarQueryParameter['megapixels'] = megapixels;
1263
+ }
1264
+
1265
+ if (chilled !== undefined) {
1266
+ localVarQueryParameter['chilled'] = chilled;
1267
+ }
1268
+
1269
+ if (adcBitDepth !== undefined) {
1270
+ localVarQueryParameter['adcBitDepth'] = adcBitDepth;
1271
+ }
1272
+
1273
+ if (isColor !== undefined) {
1274
+ localVarQueryParameter['isColor'] = isColor;
1275
+ }
1276
+
1277
+
1278
+
1279
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1280
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1281
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1282
+
1283
+ return {
1284
+ url: toPathString(localVarUrlObj),
1285
+ options: localVarRequestOptions,
1286
+ };
1287
+ },
1288
+ /**
1289
+ * complete an observation
1290
+ * @param {V1CompleteObservation} v1CompleteObservation request to complete an observation
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ */
1294
+ v1CompleteObservation: async (v1CompleteObservation: V1CompleteObservation, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1295
+ // verify required parameter 'v1CompleteObservation' is not null or undefined
1296
+ assertParamExists('v1CompleteObservation', 'v1CompleteObservation', v1CompleteObservation)
1297
+ const localVarPath = `/v1/observation-complete`;
1298
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1299
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1300
+ let baseOptions;
1301
+ if (configuration) {
1302
+ baseOptions = configuration.baseOptions;
1303
+ }
1304
+
1305
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1306
+ const localVarHeaderParameter = {} as any;
1307
+ const localVarQueryParameter = {} as any;
1308
+
1309
+ // authentication Roles required
1310
+
1311
+ // authentication BearerToken required
1312
+ // http bearer authentication required
1313
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1314
+
1315
+
1316
+
1317
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1318
+
1319
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1321
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1322
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CompleteObservation, localVarRequestOptions, configuration)
1323
+
1324
+ return {
1325
+ url: toPathString(localVarUrlObj),
1326
+ options: localVarRequestOptions,
1327
+ };
1328
+ },
1329
+ /**
1330
+ * create an image set
1331
+ * @param {V1CreateImageSet} v1CreateImageSet request to create the Image Set
1332
+ * @param {*} [options] Override http request option.
1333
+ * @throws {RequiredError}
1334
+ */
1335
+ v1CreateImageSet: async (v1CreateImageSet: V1CreateImageSet, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1336
+ // verify required parameter 'v1CreateImageSet' is not null or undefined
1337
+ assertParamExists('v1CreateImageSet', 'v1CreateImageSet', v1CreateImageSet)
1338
+ const localVarPath = `/v1/image-set`;
1339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1340
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1341
+ let baseOptions;
1342
+ if (configuration) {
1343
+ baseOptions = configuration.baseOptions;
1344
+ }
1345
+
1346
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1347
+ const localVarHeaderParameter = {} as any;
1348
+ const localVarQueryParameter = {} as any;
1349
+
1350
+ // authentication Roles required
1351
+
1352
+ // authentication BearerToken required
1353
+ // http bearer authentication required
1354
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1355
+
1356
+
1357
+
1358
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1359
+
1360
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1361
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1362
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1363
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateImageSet, localVarRequestOptions, configuration)
1364
+
1365
+ return {
1366
+ url: toPathString(localVarUrlObj),
1367
+ options: localVarRequestOptions,
1368
+ };
1369
+ },
1370
+ /**
1371
+ * create an image set image
1372
+ * @param {V1CreateImageSetImage} v1CreateImageSetImage request to create an image set image
1373
+ * @param {*} [options] Override http request option.
1374
+ * @throws {RequiredError}
1375
+ */
1376
+ v1CreateImageSetImage: async (v1CreateImageSetImage: V1CreateImageSetImage, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1377
+ // verify required parameter 'v1CreateImageSetImage' is not null or undefined
1378
+ assertParamExists('v1CreateImageSetImage', 'v1CreateImageSetImage', v1CreateImageSetImage)
1379
+ const localVarPath = `/v1/image-set-image`;
1380
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1381
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1382
+ let baseOptions;
1383
+ if (configuration) {
1384
+ baseOptions = configuration.baseOptions;
1385
+ }
1386
+
1387
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1388
+ const localVarHeaderParameter = {} as any;
1389
+ const localVarQueryParameter = {} as any;
1390
+
1391
+ // authentication Roles required
1392
+
1393
+ // authentication BearerToken required
1394
+ // http bearer authentication required
1395
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1396
+
1397
+
1398
+
1399
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1400
+
1401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1403
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1404
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateImageSetImage, localVarRequestOptions, configuration)
1405
+
1406
+ return {
1407
+ url: toPathString(localVarUrlObj),
1408
+ options: localVarRequestOptions,
1409
+ };
1410
+ },
1411
+ /**
1412
+ * create metrics
1413
+ * @param {Array<V1Metric>} v1Metric request to create metrics
1414
+ * @param {*} [options] Override http request option.
1415
+ * @throws {RequiredError}
1416
+ */
1417
+ v1CreateMetrics: async (v1Metric: Array<V1Metric>, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1418
+ // verify required parameter 'v1Metric' is not null or undefined
1419
+ assertParamExists('v1CreateMetrics', 'v1Metric', v1Metric)
1420
+ const localVarPath = `/v1/metrics`;
1421
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1422
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1423
+ let baseOptions;
1424
+ if (configuration) {
1425
+ baseOptions = configuration.baseOptions;
1426
+ }
1427
+
1428
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1429
+ const localVarHeaderParameter = {} as any;
1430
+ const localVarQueryParameter = {} as any;
1431
+
1432
+ // authentication Roles required
1433
+
1434
+ // authentication BearerToken required
1435
+ // http bearer authentication required
1436
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1437
+
1438
+
1439
+
1440
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1441
+
1442
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1444
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1445
+ localVarRequestOptions.data = serializeDataIfNeeded(v1Metric, localVarRequestOptions, configuration)
1446
+
1447
+ return {
1448
+ url: toPathString(localVarUrlObj),
1449
+ options: localVarRequestOptions,
1450
+ };
1451
+ },
1452
+ /**
1453
+ * create a mount
1454
+ * @param {V1CreateMount} v1CreateMount request to create a mount
1455
+ * @param {*} [options] Override http request option.
1456
+ * @throws {RequiredError}
1457
+ */
1458
+ v1CreateMount: async (v1CreateMount: V1CreateMount, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1459
+ // verify required parameter 'v1CreateMount' is not null or undefined
1460
+ assertParamExists('v1CreateMount', 'v1CreateMount', v1CreateMount)
1461
+ const localVarPath = `/v1/mount`;
1462
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1463
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1464
+ let baseOptions;
1465
+ if (configuration) {
1466
+ baseOptions = configuration.baseOptions;
1467
+ }
1468
+
1469
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1470
+ const localVarHeaderParameter = {} as any;
1471
+ const localVarQueryParameter = {} as any;
1472
+
1473
+ // authentication Roles required
1474
+
1475
+ // authentication BearerToken required
1476
+ // http bearer authentication required
1477
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1478
+
1479
+
1480
+
1481
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1482
+
1483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1485
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1486
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateMount, localVarRequestOptions, configuration)
1487
+
1488
+ return {
1489
+ url: toPathString(localVarUrlObj),
1490
+ options: localVarRequestOptions,
1491
+ };
1492
+ },
1493
+ /**
1494
+ * create an optical tube
1495
+ * @param {V1CreateOpticalTube} v1CreateOpticalTube request to create an optical tube
1496
+ * @param {*} [options] Override http request option.
1497
+ * @throws {RequiredError}
1498
+ */
1499
+ v1CreateOpticalTube: async (v1CreateOpticalTube: V1CreateOpticalTube, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1500
+ // verify required parameter 'v1CreateOpticalTube' is not null or undefined
1501
+ assertParamExists('v1CreateOpticalTube', 'v1CreateOpticalTube', v1CreateOpticalTube)
1502
+ const localVarPath = `/v1/optical-tube`;
1503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1504
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1505
+ let baseOptions;
1506
+ if (configuration) {
1507
+ baseOptions = configuration.baseOptions;
1508
+ }
1509
+
1510
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1511
+ const localVarHeaderParameter = {} as any;
1512
+ const localVarQueryParameter = {} as any;
1513
+
1514
+ // authentication Roles required
1515
+
1516
+ // authentication BearerToken required
1517
+ // http bearer authentication required
1518
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1519
+
1520
+
1521
+
1522
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1523
+
1524
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1525
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1526
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1527
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateOpticalTube, localVarRequestOptions, configuration)
1528
+
1529
+ return {
1530
+ url: toPathString(localVarUrlObj),
1531
+ options: localVarRequestOptions,
1532
+ };
1533
+ },
1534
+ /**
1535
+ * get all cameras
1536
+ * @param {*} [options] Override http request option.
1537
+ * @throws {RequiredError}
1538
+ */
1539
+ v1GetCameras: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1540
+ const localVarPath = `/v1/cameras`;
1541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1542
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1543
+ let baseOptions;
1544
+ if (configuration) {
1545
+ baseOptions = configuration.baseOptions;
1546
+ }
1547
+
1548
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1549
+ const localVarHeaderParameter = {} as any;
1550
+ const localVarQueryParameter = {} as any;
1551
+
1552
+ // authentication Roles required
1553
+
1554
+ // authentication BearerToken required
1555
+ // http bearer authentication required
1556
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1557
+
1558
+
1559
+
1560
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1561
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1562
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1563
+
1564
+ return {
1565
+ url: toPathString(localVarUrlObj),
1566
+ options: localVarRequestOptions,
1567
+ };
1568
+ },
1569
+ /**
1570
+ * get an image set
1571
+ * @param {string} id
1572
+ * @param {*} [options] Override http request option.
1573
+ * @throws {RequiredError}
1574
+ */
1575
+ v1GetImageSet: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1576
+ // verify required parameter 'id' is not null or undefined
1577
+ assertParamExists('v1GetImageSet', 'id', id)
1578
+ const localVarPath = `/v1/image-set`;
1579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1580
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1581
+ let baseOptions;
1582
+ if (configuration) {
1583
+ baseOptions = configuration.baseOptions;
1584
+ }
1585
+
1586
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1587
+ const localVarHeaderParameter = {} as any;
1588
+ const localVarQueryParameter = {} as any;
1589
+
1590
+ // authentication Roles required
1591
+
1592
+ // authentication BearerToken required
1593
+ // http bearer authentication required
1594
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1595
+
1596
+ if (id !== undefined) {
1597
+ localVarQueryParameter['id'] = id;
1598
+ }
1599
+
1600
+
1601
+
1602
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1603
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1604
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1605
+
1606
+ return {
1607
+ url: toPathString(localVarUrlObj),
1608
+ options: localVarRequestOptions,
1609
+ };
1610
+ },
1611
+ /**
1612
+ * get an image
1613
+ * @param {string} imageId
1614
+ * @param {*} [options] Override http request option.
1615
+ * @throws {RequiredError}
1616
+ */
1617
+ v1GetImageSetImage: async (imageId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1618
+ // verify required parameter 'imageId' is not null or undefined
1619
+ assertParamExists('v1GetImageSetImage', 'imageId', imageId)
1620
+ const localVarPath = `/v1/image-set-image`;
1621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1622
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1623
+ let baseOptions;
1624
+ if (configuration) {
1625
+ baseOptions = configuration.baseOptions;
1626
+ }
1627
+
1628
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1629
+ const localVarHeaderParameter = {} as any;
1630
+ const localVarQueryParameter = {} as any;
1631
+
1632
+ // authentication Roles required
1633
+
1634
+ // authentication BearerToken required
1635
+ // http bearer authentication required
1636
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1637
+
1638
+ if (imageId !== undefined) {
1639
+ localVarQueryParameter['imageId'] = imageId;
1640
+ }
1641
+
1642
+
1643
+
1644
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1645
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1646
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1647
+
1648
+ return {
1649
+ url: toPathString(localVarUrlObj),
1650
+ options: localVarRequestOptions,
1651
+ };
1652
+ },
1653
+ /**
1654
+ * get a mount
1655
+ * @param {string} id
1656
+ * @param {*} [options] Override http request option.
1657
+ * @throws {RequiredError}
1658
+ */
1659
+ v1GetMount: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1660
+ // verify required parameter 'id' is not null or undefined
1661
+ assertParamExists('v1GetMount', 'id', id)
1662
+ const localVarPath = `/v1/mount`;
1663
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1664
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1665
+ let baseOptions;
1666
+ if (configuration) {
1667
+ baseOptions = configuration.baseOptions;
1668
+ }
1669
+
1670
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1671
+ const localVarHeaderParameter = {} as any;
1672
+ const localVarQueryParameter = {} as any;
1673
+
1674
+ // authentication Roles required
1675
+
1676
+ // authentication BearerToken required
1677
+ // http bearer authentication required
1678
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1679
+
1680
+ if (id !== undefined) {
1681
+ localVarQueryParameter['id'] = id;
1682
+ }
1683
+
1684
+
1685
+
1686
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1687
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1688
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1689
+
1690
+ return {
1691
+ url: toPathString(localVarUrlObj),
1692
+ options: localVarRequestOptions,
1693
+ };
1694
+ },
1695
+ /**
1696
+ * get the current properties of a node
1697
+ * @param {string} nodeId
1698
+ * @param {*} [options] Override http request option.
1699
+ * @throws {RequiredError}
1700
+ */
1701
+ v1GetNodeProperties: async (nodeId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1702
+ // verify required parameter 'nodeId' is not null or undefined
1703
+ assertParamExists('v1GetNodeProperties', 'nodeId', nodeId)
1704
+ const localVarPath = `/v1/node-properties`;
1705
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1706
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1707
+ let baseOptions;
1708
+ if (configuration) {
1709
+ baseOptions = configuration.baseOptions;
1710
+ }
1711
+
1712
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1713
+ const localVarHeaderParameter = {} as any;
1714
+ const localVarQueryParameter = {} as any;
1715
+
1716
+ // authentication Roles required
1717
+
1718
+ // authentication BearerToken required
1719
+ // http bearer authentication required
1720
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1721
+
1722
+ if (nodeId !== undefined) {
1723
+ localVarQueryParameter['nodeId'] = nodeId;
1724
+ }
1725
+
1726
+
1727
+
1728
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1729
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1730
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1731
+
1732
+ return {
1733
+ url: toPathString(localVarUrlObj),
1734
+ options: localVarRequestOptions,
1735
+ };
1736
+ },
1737
+ /**
1738
+ * get all nodes
1739
+ * @param {*} [options] Override http request option.
1740
+ * @throws {RequiredError}
1741
+ */
1742
+ v1GetNodes: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1743
+ const localVarPath = `/v1/nodes`;
1744
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1745
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1746
+ let baseOptions;
1747
+ if (configuration) {
1748
+ baseOptions = configuration.baseOptions;
1749
+ }
1750
+
1751
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1752
+ const localVarHeaderParameter = {} as any;
1753
+ const localVarQueryParameter = {} as any;
1754
+
1755
+ // authentication Roles required
1756
+
1757
+ // authentication BearerToken required
1758
+ // http bearer authentication required
1759
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1760
+
1761
+
1762
+
1763
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1764
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1765
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1766
+
1767
+ return {
1768
+ url: toPathString(localVarUrlObj),
1769
+ options: localVarRequestOptions,
1770
+ };
1771
+ },
1772
+ /**
1773
+ * get observatories
1774
+ * @param {*} [options] Override http request option.
1775
+ * @throws {RequiredError}
1776
+ */
1777
+ v1GetObservatories: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1778
+ const localVarPath = `/v1/observatories`;
1779
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1780
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1781
+ let baseOptions;
1782
+ if (configuration) {
1783
+ baseOptions = configuration.baseOptions;
1784
+ }
1785
+
1786
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1787
+ const localVarHeaderParameter = {} as any;
1788
+ const localVarQueryParameter = {} as any;
1789
+
1790
+ // authentication Roles required
1791
+
1792
+ // authentication BearerToken required
1793
+ // http bearer authentication required
1794
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1795
+
1796
+
1797
+
1798
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1799
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1800
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1801
+
1802
+ return {
1803
+ url: toPathString(localVarUrlObj),
1804
+ options: localVarRequestOptions,
1805
+ };
1806
+ },
1807
+ /**
1808
+ * get an optical tube
1809
+ * @param {string} id
1810
+ * @param {*} [options] Override http request option.
1811
+ * @throws {RequiredError}
1812
+ */
1813
+ v1GetOpticalTube: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1814
+ // verify required parameter 'id' is not null or undefined
1815
+ assertParamExists('v1GetOpticalTube', 'id', id)
1816
+ const localVarPath = `/v1/optical-tube`;
1817
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1818
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1819
+ let baseOptions;
1820
+ if (configuration) {
1821
+ baseOptions = configuration.baseOptions;
1822
+ }
1823
+
1824
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1825
+ const localVarHeaderParameter = {} as any;
1826
+ const localVarQueryParameter = {} as any;
1827
+
1828
+ // authentication Roles required
1829
+
1830
+ // authentication BearerToken required
1831
+ // http bearer authentication required
1832
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1833
+
1834
+ if (id !== undefined) {
1835
+ localVarQueryParameter['id'] = id;
1836
+ }
1837
+
1838
+
1839
+
1840
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1841
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1842
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1843
+
1844
+ return {
1845
+ url: toPathString(localVarUrlObj),
1846
+ options: localVarRequestOptions,
1847
+ };
1848
+ },
1849
+ /**
1850
+ * match mount
1851
+ * @param {string} [model]
1852
+ * @param {*} [options] Override http request option.
1853
+ * @throws {RequiredError}
1854
+ */
1855
+ v1MountMatch: async (model?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1856
+ const localVarPath = `/v1/mount-match`;
1857
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1858
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1859
+ let baseOptions;
1860
+ if (configuration) {
1861
+ baseOptions = configuration.baseOptions;
1862
+ }
1863
+
1864
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1865
+ const localVarHeaderParameter = {} as any;
1866
+ const localVarQueryParameter = {} as any;
1867
+
1868
+ // authentication Roles required
1869
+
1870
+ // authentication BearerToken required
1871
+ // http bearer authentication required
1872
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1873
+
1874
+ if (model !== undefined) {
1875
+ localVarQueryParameter['model'] = model;
1876
+ }
1877
+
1878
+
1879
+
1880
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1881
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1882
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1883
+
1884
+ return {
1885
+ url: toPathString(localVarUrlObj),
1886
+ options: localVarRequestOptions,
1887
+ };
1888
+ },
1889
+ /**
1890
+ * match optical tube
1891
+ * @param {string} [model]
1892
+ * @param {number} [focalLengthMm]
1893
+ * @param {number} [apertureMm]
1894
+ * @param {*} [options] Override http request option.
1895
+ * @throws {RequiredError}
1896
+ */
1897
+ v1OpticalTubeMatch: async (model?: string, focalLengthMm?: number, apertureMm?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1898
+ const localVarPath = `/v1/optical-tube-match`;
1899
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1900
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1901
+ let baseOptions;
1902
+ if (configuration) {
1903
+ baseOptions = configuration.baseOptions;
1904
+ }
1905
+
1906
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1907
+ const localVarHeaderParameter = {} as any;
1908
+ const localVarQueryParameter = {} as any;
1909
+
1910
+ // authentication Roles required
1911
+
1912
+ // authentication BearerToken required
1913
+ // http bearer authentication required
1914
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1915
+
1916
+ if (model !== undefined) {
1917
+ localVarQueryParameter['model'] = model;
1918
+ }
1919
+
1920
+ if (focalLengthMm !== undefined) {
1921
+ localVarQueryParameter['focalLengthMm'] = focalLengthMm;
1922
+ }
1923
+
1924
+ if (apertureMm !== undefined) {
1925
+ localVarQueryParameter['apertureMm'] = apertureMm;
1926
+ }
1927
+
1928
+
1929
+
1930
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1931
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1932
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1933
+
1934
+ return {
1935
+ url: toPathString(localVarUrlObj),
1936
+ options: localVarRequestOptions,
1937
+ };
1938
+ },
1939
+ /**
1940
+ * update node metrics
1941
+ * @param {V1UpdateNodeMetrics} v1UpdateNodeMetrics request to update node metrics
1942
+ * @param {*} [options] Override http request option.
1943
+ * @throws {RequiredError}
1944
+ */
1945
+ v1UpdateNodeMetrics: async (v1UpdateNodeMetrics: V1UpdateNodeMetrics, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1946
+ // verify required parameter 'v1UpdateNodeMetrics' is not null or undefined
1947
+ assertParamExists('v1UpdateNodeMetrics', 'v1UpdateNodeMetrics', v1UpdateNodeMetrics)
1948
+ const localVarPath = `/v1/node-metrics`;
1949
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1950
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1951
+ let baseOptions;
1952
+ if (configuration) {
1953
+ baseOptions = configuration.baseOptions;
1954
+ }
1955
+
1956
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1957
+ const localVarHeaderParameter = {} as any;
1958
+ const localVarQueryParameter = {} as any;
1959
+
1960
+ // authentication Roles required
1961
+
1962
+ // authentication BearerToken required
1963
+ // http bearer authentication required
1964
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1965
+
1966
+
1967
+
1968
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1969
+
1970
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1971
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1972
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1973
+ localVarRequestOptions.data = serializeDataIfNeeded(v1UpdateNodeMetrics, localVarRequestOptions, configuration)
1974
+
1975
+ return {
1976
+ url: toPathString(localVarUrlObj),
1977
+ options: localVarRequestOptions,
1978
+ };
1979
+ },
1980
+ /**
1981
+ * get next observation
1982
+ * @param {string} nodeId
1983
+ * @param {*} [options] Override http request option.
1984
+ * @throws {RequiredError}
1985
+ */
1986
+ v2GetObservation: async (nodeId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1987
+ // verify required parameter 'nodeId' is not null or undefined
1988
+ assertParamExists('v2GetObservation', 'nodeId', nodeId)
1989
+ const localVarPath = `/v2/observation`;
1990
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1991
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1992
+ let baseOptions;
1993
+ if (configuration) {
1994
+ baseOptions = configuration.baseOptions;
1995
+ }
1996
+
1997
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1998
+ const localVarHeaderParameter = {} as any;
1999
+ const localVarQueryParameter = {} as any;
2000
+
2001
+ // authentication Roles required
2002
+
2003
+ // authentication BearerToken required
2004
+ // http bearer authentication required
2005
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2006
+
2007
+ if (nodeId !== undefined) {
2008
+ localVarQueryParameter['nodeId'] = nodeId;
2009
+ }
2010
+
2011
+
2012
+
2013
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2015
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2016
+
2017
+ return {
2018
+ url: toPathString(localVarUrlObj),
2019
+ options: localVarRequestOptions,
2020
+ };
2021
+ },
2022
+ }
2023
+ };
2024
+
2025
+ /**
2026
+ * DefaultApi - functional programming interface
2027
+ * @export
2028
+ */
2029
+ export const DefaultApiFp = function(configuration?: Configuration) {
2030
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
2031
+ return {
2032
+ /**
2033
+ * match camera
2034
+ * @param {string} [model]
2035
+ * @param {number} [pixelSizeMicrons]
2036
+ * @param {number} [pixelsX]
2037
+ * @param {number} [pixelsY]
2038
+ * @param {number} [megapixels]
2039
+ * @param {boolean} [chilled]
2040
+ * @param {number} [adcBitDepth]
2041
+ * @param {boolean} [isColor]
2042
+ * @param {*} [options] Override http request option.
2043
+ * @throws {RequiredError}
2044
+ */
2045
+ async v1CameraMatch(model?: string, pixelSizeMicrons?: number, pixelsX?: number, pixelsY?: number, megapixels?: number, chilled?: boolean, adcBitDepth?: number, isColor?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1Camera>>> {
2046
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CameraMatch(model, pixelSizeMicrons, pixelsX, pixelsY, megapixels, chilled, adcBitDepth, isColor, options);
2047
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2048
+ },
2049
+ /**
2050
+ * complete an observation
2051
+ * @param {V1CompleteObservation} v1CompleteObservation request to complete an observation
2052
+ * @param {*} [options] Override http request option.
2053
+ * @throws {RequiredError}
2054
+ */
2055
+ async v1CompleteObservation(v1CompleteObservation: V1CompleteObservation, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
2056
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CompleteObservation(v1CompleteObservation, options);
2057
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2058
+ },
2059
+ /**
2060
+ * create an image set
2061
+ * @param {V1CreateImageSet} v1CreateImageSet request to create the Image Set
2062
+ * @param {*} [options] Override http request option.
2063
+ * @throws {RequiredError}
2064
+ */
2065
+ async v1CreateImageSet(v1CreateImageSet: V1CreateImageSet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessfulCreate>> {
2066
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreateImageSet(v1CreateImageSet, options);
2067
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2068
+ },
2069
+ /**
2070
+ * create an image set image
2071
+ * @param {V1CreateImageSetImage} v1CreateImageSetImage request to create an image set image
2072
+ * @param {*} [options] Override http request option.
2073
+ * @throws {RequiredError}
2074
+ */
2075
+ async v1CreateImageSetImage(v1CreateImageSetImage: V1CreateImageSetImage, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CreateImageSetImageResponse>> {
2076
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreateImageSetImage(v1CreateImageSetImage, options);
2077
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2078
+ },
2079
+ /**
2080
+ * create metrics
2081
+ * @param {Array<V1Metric>} v1Metric request to create metrics
2082
+ * @param {*} [options] Override http request option.
2083
+ * @throws {RequiredError}
2084
+ */
2085
+ async v1CreateMetrics(v1Metric: Array<V1Metric>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
2086
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreateMetrics(v1Metric, options);
2087
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2088
+ },
2089
+ /**
2090
+ * create a mount
2091
+ * @param {V1CreateMount} v1CreateMount request to create a mount
2092
+ * @param {*} [options] Override http request option.
2093
+ * @throws {RequiredError}
2094
+ */
2095
+ async v1CreateMount(v1CreateMount: V1CreateMount, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessfulCreate>> {
2096
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreateMount(v1CreateMount, options);
2097
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2098
+ },
2099
+ /**
2100
+ * create an optical tube
2101
+ * @param {V1CreateOpticalTube} v1CreateOpticalTube request to create an optical tube
2102
+ * @param {*} [options] Override http request option.
2103
+ * @throws {RequiredError}
2104
+ */
2105
+ async v1CreateOpticalTube(v1CreateOpticalTube: V1CreateOpticalTube, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuccessfulCreate>> {
2106
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1CreateOpticalTube(v1CreateOpticalTube, options);
2107
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2108
+ },
2109
+ /**
2110
+ * get all cameras
2111
+ * @param {*} [options] Override http request option.
2112
+ * @throws {RequiredError}
2113
+ */
2114
+ async v1GetCameras(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1Camera>>> {
2115
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetCameras(options);
2116
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2117
+ },
2118
+ /**
2119
+ * get an image set
2120
+ * @param {string} id
2121
+ * @param {*} [options] Override http request option.
2122
+ * @throws {RequiredError}
2123
+ */
2124
+ async v1GetImageSet(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1ImageSet>> {
2125
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetImageSet(id, options);
2126
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2127
+ },
2128
+ /**
2129
+ * get an image
2130
+ * @param {string} imageId
2131
+ * @param {*} [options] Override http request option.
2132
+ * @throws {RequiredError}
2133
+ */
2134
+ async v1GetImageSetImage(imageId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1ImageSetImage>> {
2135
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetImageSetImage(imageId, options);
2136
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2137
+ },
2138
+ /**
2139
+ * get a mount
2140
+ * @param {string} id
2141
+ * @param {*} [options] Override http request option.
2142
+ * @throws {RequiredError}
2143
+ */
2144
+ async v1GetMount(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1Mount>> {
2145
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetMount(id, options);
2146
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2147
+ },
2148
+ /**
2149
+ * get the current properties of a node
2150
+ * @param {string} nodeId
2151
+ * @param {*} [options] Override http request option.
2152
+ * @throws {RequiredError}
2153
+ */
2154
+ async v1GetNodeProperties(nodeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroundStationParticipant>> {
2155
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetNodeProperties(nodeId, options);
2156
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2157
+ },
2158
+ /**
2159
+ * get all nodes
2160
+ * @param {*} [options] Override http request option.
2161
+ * @throws {RequiredError}
2162
+ */
2163
+ async v1GetNodes(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1GetNodes>> {
2164
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetNodes(options);
2165
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2166
+ },
2167
+ /**
2168
+ * get observatories
2169
+ * @param {*} [options] Override http request option.
2170
+ * @throws {RequiredError}
2171
+ */
2172
+ async v1GetObservatories(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1GetObservatories>> {
2173
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetObservatories(options);
2174
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2175
+ },
2176
+ /**
2177
+ * get an optical tube
2178
+ * @param {string} id
2179
+ * @param {*} [options] Override http request option.
2180
+ * @throws {RequiredError}
2181
+ */
2182
+ async v1GetOpticalTube(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1OpticalTube>> {
2183
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1GetOpticalTube(id, options);
2184
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2185
+ },
2186
+ /**
2187
+ * match mount
2188
+ * @param {string} [model]
2189
+ * @param {*} [options] Override http request option.
2190
+ * @throws {RequiredError}
2191
+ */
2192
+ async v1MountMatch(model?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1Mount>>> {
2193
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1MountMatch(model, options);
2194
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2195
+ },
2196
+ /**
2197
+ * match optical tube
2198
+ * @param {string} [model]
2199
+ * @param {number} [focalLengthMm]
2200
+ * @param {number} [apertureMm]
2201
+ * @param {*} [options] Override http request option.
2202
+ * @throws {RequiredError}
2203
+ */
2204
+ async v1OpticalTubeMatch(model?: string, focalLengthMm?: number, apertureMm?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<V1OpticalTube>>> {
2205
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1OpticalTubeMatch(model, focalLengthMm, apertureMm, options);
2206
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2207
+ },
2208
+ /**
2209
+ * update node metrics
2210
+ * @param {V1UpdateNodeMetrics} v1UpdateNodeMetrics request to update node metrics
2211
+ * @param {*} [options] Override http request option.
2212
+ * @throws {RequiredError}
2213
+ */
2214
+ async v1UpdateNodeMetrics(v1UpdateNodeMetrics: V1UpdateNodeMetrics, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmptySuccess>> {
2215
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v1UpdateNodeMetrics(v1UpdateNodeMetrics, options);
2216
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2217
+ },
2218
+ /**
2219
+ * get next observation
2220
+ * @param {string} nodeId
2221
+ * @param {*} [options] Override http request option.
2222
+ * @throws {RequiredError}
2223
+ */
2224
+ async v2GetObservation(nodeId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2GetObservation>> {
2225
+ const localVarAxiosArgs = await localVarAxiosParamCreator.v2GetObservation(nodeId, options);
2226
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2227
+ },
2228
+ }
2229
+ };
2230
+
2231
+ /**
2232
+ * DefaultApi - factory interface
2233
+ * @export
2234
+ */
2235
+ export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2236
+ const localVarFp = DefaultApiFp(configuration)
2237
+ return {
2238
+ /**
2239
+ * match camera
2240
+ * @param {DefaultApiV1CameraMatchRequest} requestParameters Request parameters.
2241
+ * @param {*} [options] Override http request option.
2242
+ * @throws {RequiredError}
2243
+ */
2244
+ v1CameraMatch(requestParameters: DefaultApiV1CameraMatchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<V1Camera>> {
2245
+ return localVarFp.v1CameraMatch(requestParameters.model, requestParameters.pixelSizeMicrons, requestParameters.pixelsX, requestParameters.pixelsY, requestParameters.megapixels, requestParameters.chilled, requestParameters.adcBitDepth, requestParameters.isColor, options).then((request) => request(axios, basePath));
2246
+ },
2247
+ /**
2248
+ * complete an observation
2249
+ * @param {DefaultApiV1CompleteObservationRequest} requestParameters Request parameters.
2250
+ * @param {*} [options] Override http request option.
2251
+ * @throws {RequiredError}
2252
+ */
2253
+ v1CompleteObservation(requestParameters: DefaultApiV1CompleteObservationRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
2254
+ return localVarFp.v1CompleteObservation(requestParameters.v1CompleteObservation, options).then((request) => request(axios, basePath));
2255
+ },
2256
+ /**
2257
+ * create an image set
2258
+ * @param {DefaultApiV1CreateImageSetRequest} requestParameters Request parameters.
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ v1CreateImageSet(requestParameters: DefaultApiV1CreateImageSetRequest, options?: AxiosRequestConfig): AxiosPromise<SuccessfulCreate> {
2263
+ return localVarFp.v1CreateImageSet(requestParameters.v1CreateImageSet, options).then((request) => request(axios, basePath));
2264
+ },
2265
+ /**
2266
+ * create an image set image
2267
+ * @param {DefaultApiV1CreateImageSetImageRequest} requestParameters Request parameters.
2268
+ * @param {*} [options] Override http request option.
2269
+ * @throws {RequiredError}
2270
+ */
2271
+ v1CreateImageSetImage(requestParameters: DefaultApiV1CreateImageSetImageRequest, options?: AxiosRequestConfig): AxiosPromise<V1CreateImageSetImageResponse> {
2272
+ return localVarFp.v1CreateImageSetImage(requestParameters.v1CreateImageSetImage, options).then((request) => request(axios, basePath));
2273
+ },
2274
+ /**
2275
+ * create metrics
2276
+ * @param {DefaultApiV1CreateMetricsRequest} requestParameters Request parameters.
2277
+ * @param {*} [options] Override http request option.
2278
+ * @throws {RequiredError}
2279
+ */
2280
+ v1CreateMetrics(requestParameters: DefaultApiV1CreateMetricsRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
2281
+ return localVarFp.v1CreateMetrics(requestParameters.v1Metric, options).then((request) => request(axios, basePath));
2282
+ },
2283
+ /**
2284
+ * create a mount
2285
+ * @param {DefaultApiV1CreateMountRequest} requestParameters Request parameters.
2286
+ * @param {*} [options] Override http request option.
2287
+ * @throws {RequiredError}
2288
+ */
2289
+ v1CreateMount(requestParameters: DefaultApiV1CreateMountRequest, options?: AxiosRequestConfig): AxiosPromise<SuccessfulCreate> {
2290
+ return localVarFp.v1CreateMount(requestParameters.v1CreateMount, options).then((request) => request(axios, basePath));
2291
+ },
2292
+ /**
2293
+ * create an optical tube
2294
+ * @param {DefaultApiV1CreateOpticalTubeRequest} requestParameters Request parameters.
2295
+ * @param {*} [options] Override http request option.
2296
+ * @throws {RequiredError}
2297
+ */
2298
+ v1CreateOpticalTube(requestParameters: DefaultApiV1CreateOpticalTubeRequest, options?: AxiosRequestConfig): AxiosPromise<SuccessfulCreate> {
2299
+ return localVarFp.v1CreateOpticalTube(requestParameters.v1CreateOpticalTube, options).then((request) => request(axios, basePath));
2300
+ },
2301
+ /**
2302
+ * get all cameras
2303
+ * @param {*} [options] Override http request option.
2304
+ * @throws {RequiredError}
2305
+ */
2306
+ v1GetCameras(options?: AxiosRequestConfig): AxiosPromise<Array<V1Camera>> {
2307
+ return localVarFp.v1GetCameras(options).then((request) => request(axios, basePath));
2308
+ },
2309
+ /**
2310
+ * get an image set
2311
+ * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
2312
+ * @param {*} [options] Override http request option.
2313
+ * @throws {RequiredError}
2314
+ */
2315
+ v1GetImageSet(requestParameters: DefaultApiV1GetImageSetRequest, options?: AxiosRequestConfig): AxiosPromise<V1ImageSet> {
2316
+ return localVarFp.v1GetImageSet(requestParameters.id, options).then((request) => request(axios, basePath));
2317
+ },
2318
+ /**
2319
+ * get an image
2320
+ * @param {DefaultApiV1GetImageSetImageRequest} requestParameters Request parameters.
2321
+ * @param {*} [options] Override http request option.
2322
+ * @throws {RequiredError}
2323
+ */
2324
+ v1GetImageSetImage(requestParameters: DefaultApiV1GetImageSetImageRequest, options?: AxiosRequestConfig): AxiosPromise<V1ImageSetImage> {
2325
+ return localVarFp.v1GetImageSetImage(requestParameters.imageId, options).then((request) => request(axios, basePath));
2326
+ },
2327
+ /**
2328
+ * get a mount
2329
+ * @param {DefaultApiV1GetMountRequest} requestParameters Request parameters.
2330
+ * @param {*} [options] Override http request option.
2331
+ * @throws {RequiredError}
2332
+ */
2333
+ v1GetMount(requestParameters: DefaultApiV1GetMountRequest, options?: AxiosRequestConfig): AxiosPromise<V1Mount> {
2334
+ return localVarFp.v1GetMount(requestParameters.id, options).then((request) => request(axios, basePath));
2335
+ },
2336
+ /**
2337
+ * get the current properties of a node
2338
+ * @param {DefaultApiV1GetNodePropertiesRequest} requestParameters Request parameters.
2339
+ * @param {*} [options] Override http request option.
2340
+ * @throws {RequiredError}
2341
+ */
2342
+ v1GetNodeProperties(requestParameters: DefaultApiV1GetNodePropertiesRequest, options?: AxiosRequestConfig): AxiosPromise<GroundStationParticipant> {
2343
+ return localVarFp.v1GetNodeProperties(requestParameters.nodeId, options).then((request) => request(axios, basePath));
2344
+ },
2345
+ /**
2346
+ * get all nodes
2347
+ * @param {*} [options] Override http request option.
2348
+ * @throws {RequiredError}
2349
+ */
2350
+ v1GetNodes(options?: AxiosRequestConfig): AxiosPromise<V1GetNodes> {
2351
+ return localVarFp.v1GetNodes(options).then((request) => request(axios, basePath));
2352
+ },
2353
+ /**
2354
+ * get observatories
2355
+ * @param {*} [options] Override http request option.
2356
+ * @throws {RequiredError}
2357
+ */
2358
+ v1GetObservatories(options?: AxiosRequestConfig): AxiosPromise<V1GetObservatories> {
2359
+ return localVarFp.v1GetObservatories(options).then((request) => request(axios, basePath));
2360
+ },
2361
+ /**
2362
+ * get an optical tube
2363
+ * @param {DefaultApiV1GetOpticalTubeRequest} requestParameters Request parameters.
2364
+ * @param {*} [options] Override http request option.
2365
+ * @throws {RequiredError}
2366
+ */
2367
+ v1GetOpticalTube(requestParameters: DefaultApiV1GetOpticalTubeRequest, options?: AxiosRequestConfig): AxiosPromise<V1OpticalTube> {
2368
+ return localVarFp.v1GetOpticalTube(requestParameters.id, options).then((request) => request(axios, basePath));
2369
+ },
2370
+ /**
2371
+ * match mount
2372
+ * @param {DefaultApiV1MountMatchRequest} requestParameters Request parameters.
2373
+ * @param {*} [options] Override http request option.
2374
+ * @throws {RequiredError}
2375
+ */
2376
+ v1MountMatch(requestParameters: DefaultApiV1MountMatchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<V1Mount>> {
2377
+ return localVarFp.v1MountMatch(requestParameters.model, options).then((request) => request(axios, basePath));
2378
+ },
2379
+ /**
2380
+ * match optical tube
2381
+ * @param {DefaultApiV1OpticalTubeMatchRequest} requestParameters Request parameters.
2382
+ * @param {*} [options] Override http request option.
2383
+ * @throws {RequiredError}
2384
+ */
2385
+ v1OpticalTubeMatch(requestParameters: DefaultApiV1OpticalTubeMatchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<V1OpticalTube>> {
2386
+ return localVarFp.v1OpticalTubeMatch(requestParameters.model, requestParameters.focalLengthMm, requestParameters.apertureMm, options).then((request) => request(axios, basePath));
2387
+ },
2388
+ /**
2389
+ * update node metrics
2390
+ * @param {DefaultApiV1UpdateNodeMetricsRequest} requestParameters Request parameters.
2391
+ * @param {*} [options] Override http request option.
2392
+ * @throws {RequiredError}
2393
+ */
2394
+ v1UpdateNodeMetrics(requestParameters: DefaultApiV1UpdateNodeMetricsRequest, options?: AxiosRequestConfig): AxiosPromise<EmptySuccess> {
2395
+ return localVarFp.v1UpdateNodeMetrics(requestParameters.v1UpdateNodeMetrics, options).then((request) => request(axios, basePath));
2396
+ },
2397
+ /**
2398
+ * get next observation
2399
+ * @param {DefaultApiV2GetObservationRequest} requestParameters Request parameters.
2400
+ * @param {*} [options] Override http request option.
2401
+ * @throws {RequiredError}
2402
+ */
2403
+ v2GetObservation(requestParameters: DefaultApiV2GetObservationRequest, options?: AxiosRequestConfig): AxiosPromise<V2GetObservation> {
2404
+ return localVarFp.v2GetObservation(requestParameters.nodeId, options).then((request) => request(axios, basePath));
2405
+ },
2406
+ };
2407
+ };
2408
+
2409
+ /**
2410
+ * Request parameters for v1CameraMatch operation in DefaultApi.
2411
+ * @export
2412
+ * @interface DefaultApiV1CameraMatchRequest
2413
+ */
2414
+ export interface DefaultApiV1CameraMatchRequest {
2415
+ /**
2416
+ *
2417
+ * @type {string}
2418
+ * @memberof DefaultApiV1CameraMatch
2419
+ */
2420
+ readonly model?: string
2421
+
2422
+ /**
2423
+ *
2424
+ * @type {number}
2425
+ * @memberof DefaultApiV1CameraMatch
2426
+ */
2427
+ readonly pixelSizeMicrons?: number
2428
+
2429
+ /**
2430
+ *
2431
+ * @type {number}
2432
+ * @memberof DefaultApiV1CameraMatch
2433
+ */
2434
+ readonly pixelsX?: number
2435
+
2436
+ /**
2437
+ *
2438
+ * @type {number}
2439
+ * @memberof DefaultApiV1CameraMatch
2440
+ */
2441
+ readonly pixelsY?: number
2442
+
2443
+ /**
2444
+ *
2445
+ * @type {number}
2446
+ * @memberof DefaultApiV1CameraMatch
2447
+ */
2448
+ readonly megapixels?: number
2449
+
2450
+ /**
2451
+ *
2452
+ * @type {boolean}
2453
+ * @memberof DefaultApiV1CameraMatch
2454
+ */
2455
+ readonly chilled?: boolean
2456
+
2457
+ /**
2458
+ *
2459
+ * @type {number}
2460
+ * @memberof DefaultApiV1CameraMatch
2461
+ */
2462
+ readonly adcBitDepth?: number
2463
+
2464
+ /**
2465
+ *
2466
+ * @type {boolean}
2467
+ * @memberof DefaultApiV1CameraMatch
2468
+ */
2469
+ readonly isColor?: boolean
2470
+ }
2471
+
2472
+ /**
2473
+ * Request parameters for v1CompleteObservation operation in DefaultApi.
2474
+ * @export
2475
+ * @interface DefaultApiV1CompleteObservationRequest
2476
+ */
2477
+ export interface DefaultApiV1CompleteObservationRequest {
2478
+ /**
2479
+ * request to complete an observation
2480
+ * @type {V1CompleteObservation}
2481
+ * @memberof DefaultApiV1CompleteObservation
2482
+ */
2483
+ readonly v1CompleteObservation: V1CompleteObservation
2484
+ }
2485
+
2486
+ /**
2487
+ * Request parameters for v1CreateImageSet operation in DefaultApi.
2488
+ * @export
2489
+ * @interface DefaultApiV1CreateImageSetRequest
2490
+ */
2491
+ export interface DefaultApiV1CreateImageSetRequest {
2492
+ /**
2493
+ * request to create the Image Set
2494
+ * @type {V1CreateImageSet}
2495
+ * @memberof DefaultApiV1CreateImageSet
2496
+ */
2497
+ readonly v1CreateImageSet: V1CreateImageSet
2498
+ }
2499
+
2500
+ /**
2501
+ * Request parameters for v1CreateImageSetImage operation in DefaultApi.
2502
+ * @export
2503
+ * @interface DefaultApiV1CreateImageSetImageRequest
2504
+ */
2505
+ export interface DefaultApiV1CreateImageSetImageRequest {
2506
+ /**
2507
+ * request to create an image set image
2508
+ * @type {V1CreateImageSetImage}
2509
+ * @memberof DefaultApiV1CreateImageSetImage
2510
+ */
2511
+ readonly v1CreateImageSetImage: V1CreateImageSetImage
2512
+ }
2513
+
2514
+ /**
2515
+ * Request parameters for v1CreateMetrics operation in DefaultApi.
2516
+ * @export
2517
+ * @interface DefaultApiV1CreateMetricsRequest
2518
+ */
2519
+ export interface DefaultApiV1CreateMetricsRequest {
2520
+ /**
2521
+ * request to create metrics
2522
+ * @type {Array<V1Metric>}
2523
+ * @memberof DefaultApiV1CreateMetrics
2524
+ */
2525
+ readonly v1Metric: Array<V1Metric>
2526
+ }
2527
+
2528
+ /**
2529
+ * Request parameters for v1CreateMount operation in DefaultApi.
2530
+ * @export
2531
+ * @interface DefaultApiV1CreateMountRequest
2532
+ */
2533
+ export interface DefaultApiV1CreateMountRequest {
2534
+ /**
2535
+ * request to create a mount
2536
+ * @type {V1CreateMount}
2537
+ * @memberof DefaultApiV1CreateMount
2538
+ */
2539
+ readonly v1CreateMount: V1CreateMount
2540
+ }
2541
+
2542
+ /**
2543
+ * Request parameters for v1CreateOpticalTube operation in DefaultApi.
2544
+ * @export
2545
+ * @interface DefaultApiV1CreateOpticalTubeRequest
2546
+ */
2547
+ export interface DefaultApiV1CreateOpticalTubeRequest {
2548
+ /**
2549
+ * request to create an optical tube
2550
+ * @type {V1CreateOpticalTube}
2551
+ * @memberof DefaultApiV1CreateOpticalTube
2552
+ */
2553
+ readonly v1CreateOpticalTube: V1CreateOpticalTube
2554
+ }
2555
+
2556
+ /**
2557
+ * Request parameters for v1GetImageSet operation in DefaultApi.
2558
+ * @export
2559
+ * @interface DefaultApiV1GetImageSetRequest
2560
+ */
2561
+ export interface DefaultApiV1GetImageSetRequest {
2562
+ /**
2563
+ *
2564
+ * @type {string}
2565
+ * @memberof DefaultApiV1GetImageSet
2566
+ */
2567
+ readonly id: string
2568
+ }
2569
+
2570
+ /**
2571
+ * Request parameters for v1GetImageSetImage operation in DefaultApi.
2572
+ * @export
2573
+ * @interface DefaultApiV1GetImageSetImageRequest
2574
+ */
2575
+ export interface DefaultApiV1GetImageSetImageRequest {
2576
+ /**
2577
+ *
2578
+ * @type {string}
2579
+ * @memberof DefaultApiV1GetImageSetImage
2580
+ */
2581
+ readonly imageId: string
2582
+ }
2583
+
2584
+ /**
2585
+ * Request parameters for v1GetMount operation in DefaultApi.
2586
+ * @export
2587
+ * @interface DefaultApiV1GetMountRequest
2588
+ */
2589
+ export interface DefaultApiV1GetMountRequest {
2590
+ /**
2591
+ *
2592
+ * @type {string}
2593
+ * @memberof DefaultApiV1GetMount
2594
+ */
2595
+ readonly id: string
2596
+ }
2597
+
2598
+ /**
2599
+ * Request parameters for v1GetNodeProperties operation in DefaultApi.
2600
+ * @export
2601
+ * @interface DefaultApiV1GetNodePropertiesRequest
2602
+ */
2603
+ export interface DefaultApiV1GetNodePropertiesRequest {
2604
+ /**
2605
+ *
2606
+ * @type {string}
2607
+ * @memberof DefaultApiV1GetNodeProperties
2608
+ */
2609
+ readonly nodeId: string
2610
+ }
2611
+
2612
+ /**
2613
+ * Request parameters for v1GetOpticalTube operation in DefaultApi.
2614
+ * @export
2615
+ * @interface DefaultApiV1GetOpticalTubeRequest
2616
+ */
2617
+ export interface DefaultApiV1GetOpticalTubeRequest {
2618
+ /**
2619
+ *
2620
+ * @type {string}
2621
+ * @memberof DefaultApiV1GetOpticalTube
2622
+ */
2623
+ readonly id: string
2624
+ }
2625
+
2626
+ /**
2627
+ * Request parameters for v1MountMatch operation in DefaultApi.
2628
+ * @export
2629
+ * @interface DefaultApiV1MountMatchRequest
2630
+ */
2631
+ export interface DefaultApiV1MountMatchRequest {
2632
+ /**
2633
+ *
2634
+ * @type {string}
2635
+ * @memberof DefaultApiV1MountMatch
2636
+ */
2637
+ readonly model?: string
2638
+ }
2639
+
2640
+ /**
2641
+ * Request parameters for v1OpticalTubeMatch operation in DefaultApi.
2642
+ * @export
2643
+ * @interface DefaultApiV1OpticalTubeMatchRequest
2644
+ */
2645
+ export interface DefaultApiV1OpticalTubeMatchRequest {
2646
+ /**
2647
+ *
2648
+ * @type {string}
2649
+ * @memberof DefaultApiV1OpticalTubeMatch
2650
+ */
2651
+ readonly model?: string
2652
+
2653
+ /**
2654
+ *
2655
+ * @type {number}
2656
+ * @memberof DefaultApiV1OpticalTubeMatch
2657
+ */
2658
+ readonly focalLengthMm?: number
2659
+
2660
+ /**
2661
+ *
2662
+ * @type {number}
2663
+ * @memberof DefaultApiV1OpticalTubeMatch
2664
+ */
2665
+ readonly apertureMm?: number
2666
+ }
2667
+
2668
+ /**
2669
+ * Request parameters for v1UpdateNodeMetrics operation in DefaultApi.
2670
+ * @export
2671
+ * @interface DefaultApiV1UpdateNodeMetricsRequest
2672
+ */
2673
+ export interface DefaultApiV1UpdateNodeMetricsRequest {
2674
+ /**
2675
+ * request to update node metrics
2676
+ * @type {V1UpdateNodeMetrics}
2677
+ * @memberof DefaultApiV1UpdateNodeMetrics
2678
+ */
2679
+ readonly v1UpdateNodeMetrics: V1UpdateNodeMetrics
2680
+ }
2681
+
2682
+ /**
2683
+ * Request parameters for v2GetObservation operation in DefaultApi.
2684
+ * @export
2685
+ * @interface DefaultApiV2GetObservationRequest
2686
+ */
2687
+ export interface DefaultApiV2GetObservationRequest {
2688
+ /**
2689
+ *
2690
+ * @type {string}
2691
+ * @memberof DefaultApiV2GetObservation
2692
+ */
2693
+ readonly nodeId: string
2694
+ }
2695
+
2696
+ /**
2697
+ * DefaultApi - object-oriented interface
2698
+ * @export
2699
+ * @class DefaultApi
2700
+ * @extends {BaseAPI}
2701
+ */
2702
+ export class DefaultApi extends BaseAPI {
2703
+ /**
2704
+ * match camera
2705
+ * @param {DefaultApiV1CameraMatchRequest} requestParameters Request parameters.
2706
+ * @param {*} [options] Override http request option.
2707
+ * @throws {RequiredError}
2708
+ * @memberof DefaultApi
2709
+ */
2710
+ public v1CameraMatch(requestParameters: DefaultApiV1CameraMatchRequest = {}, options?: AxiosRequestConfig) {
2711
+ return DefaultApiFp(this.configuration).v1CameraMatch(requestParameters.model, requestParameters.pixelSizeMicrons, requestParameters.pixelsX, requestParameters.pixelsY, requestParameters.megapixels, requestParameters.chilled, requestParameters.adcBitDepth, requestParameters.isColor, options).then((request) => request(this.axios, this.basePath));
2712
+ }
2713
+
2714
+ /**
2715
+ * complete an observation
2716
+ * @param {DefaultApiV1CompleteObservationRequest} requestParameters Request parameters.
2717
+ * @param {*} [options] Override http request option.
2718
+ * @throws {RequiredError}
2719
+ * @memberof DefaultApi
2720
+ */
2721
+ public v1CompleteObservation(requestParameters: DefaultApiV1CompleteObservationRequest, options?: AxiosRequestConfig) {
2722
+ return DefaultApiFp(this.configuration).v1CompleteObservation(requestParameters.v1CompleteObservation, options).then((request) => request(this.axios, this.basePath));
2723
+ }
2724
+
2725
+ /**
2726
+ * create an image set
2727
+ * @param {DefaultApiV1CreateImageSetRequest} requestParameters Request parameters.
2728
+ * @param {*} [options] Override http request option.
2729
+ * @throws {RequiredError}
2730
+ * @memberof DefaultApi
2731
+ */
2732
+ public v1CreateImageSet(requestParameters: DefaultApiV1CreateImageSetRequest, options?: AxiosRequestConfig) {
2733
+ return DefaultApiFp(this.configuration).v1CreateImageSet(requestParameters.v1CreateImageSet, options).then((request) => request(this.axios, this.basePath));
2734
+ }
2735
+
2736
+ /**
2737
+ * create an image set image
2738
+ * @param {DefaultApiV1CreateImageSetImageRequest} requestParameters Request parameters.
2739
+ * @param {*} [options] Override http request option.
2740
+ * @throws {RequiredError}
2741
+ * @memberof DefaultApi
2742
+ */
2743
+ public v1CreateImageSetImage(requestParameters: DefaultApiV1CreateImageSetImageRequest, options?: AxiosRequestConfig) {
2744
+ return DefaultApiFp(this.configuration).v1CreateImageSetImage(requestParameters.v1CreateImageSetImage, options).then((request) => request(this.axios, this.basePath));
2745
+ }
2746
+
2747
+ /**
2748
+ * create metrics
2749
+ * @param {DefaultApiV1CreateMetricsRequest} requestParameters Request parameters.
2750
+ * @param {*} [options] Override http request option.
2751
+ * @throws {RequiredError}
2752
+ * @memberof DefaultApi
2753
+ */
2754
+ public v1CreateMetrics(requestParameters: DefaultApiV1CreateMetricsRequest, options?: AxiosRequestConfig) {
2755
+ return DefaultApiFp(this.configuration).v1CreateMetrics(requestParameters.v1Metric, options).then((request) => request(this.axios, this.basePath));
2756
+ }
2757
+
2758
+ /**
2759
+ * create a mount
2760
+ * @param {DefaultApiV1CreateMountRequest} requestParameters Request parameters.
2761
+ * @param {*} [options] Override http request option.
2762
+ * @throws {RequiredError}
2763
+ * @memberof DefaultApi
2764
+ */
2765
+ public v1CreateMount(requestParameters: DefaultApiV1CreateMountRequest, options?: AxiosRequestConfig) {
2766
+ return DefaultApiFp(this.configuration).v1CreateMount(requestParameters.v1CreateMount, options).then((request) => request(this.axios, this.basePath));
2767
+ }
2768
+
2769
+ /**
2770
+ * create an optical tube
2771
+ * @param {DefaultApiV1CreateOpticalTubeRequest} requestParameters Request parameters.
2772
+ * @param {*} [options] Override http request option.
2773
+ * @throws {RequiredError}
2774
+ * @memberof DefaultApi
2775
+ */
2776
+ public v1CreateOpticalTube(requestParameters: DefaultApiV1CreateOpticalTubeRequest, options?: AxiosRequestConfig) {
2777
+ return DefaultApiFp(this.configuration).v1CreateOpticalTube(requestParameters.v1CreateOpticalTube, options).then((request) => request(this.axios, this.basePath));
2778
+ }
2779
+
2780
+ /**
2781
+ * get all cameras
2782
+ * @param {*} [options] Override http request option.
2783
+ * @throws {RequiredError}
2784
+ * @memberof DefaultApi
2785
+ */
2786
+ public v1GetCameras(options?: AxiosRequestConfig) {
2787
+ return DefaultApiFp(this.configuration).v1GetCameras(options).then((request) => request(this.axios, this.basePath));
2788
+ }
2789
+
2790
+ /**
2791
+ * get an image set
2792
+ * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
2793
+ * @param {*} [options] Override http request option.
2794
+ * @throws {RequiredError}
2795
+ * @memberof DefaultApi
2796
+ */
2797
+ public v1GetImageSet(requestParameters: DefaultApiV1GetImageSetRequest, options?: AxiosRequestConfig) {
2798
+ return DefaultApiFp(this.configuration).v1GetImageSet(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2799
+ }
2800
+
2801
+ /**
2802
+ * get an image
2803
+ * @param {DefaultApiV1GetImageSetImageRequest} requestParameters Request parameters.
2804
+ * @param {*} [options] Override http request option.
2805
+ * @throws {RequiredError}
2806
+ * @memberof DefaultApi
2807
+ */
2808
+ public v1GetImageSetImage(requestParameters: DefaultApiV1GetImageSetImageRequest, options?: AxiosRequestConfig) {
2809
+ return DefaultApiFp(this.configuration).v1GetImageSetImage(requestParameters.imageId, options).then((request) => request(this.axios, this.basePath));
2810
+ }
2811
+
2812
+ /**
2813
+ * get a mount
2814
+ * @param {DefaultApiV1GetMountRequest} requestParameters Request parameters.
2815
+ * @param {*} [options] Override http request option.
2816
+ * @throws {RequiredError}
2817
+ * @memberof DefaultApi
2818
+ */
2819
+ public v1GetMount(requestParameters: DefaultApiV1GetMountRequest, options?: AxiosRequestConfig) {
2820
+ return DefaultApiFp(this.configuration).v1GetMount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2821
+ }
2822
+
2823
+ /**
2824
+ * get the current properties of a node
2825
+ * @param {DefaultApiV1GetNodePropertiesRequest} requestParameters Request parameters.
2826
+ * @param {*} [options] Override http request option.
2827
+ * @throws {RequiredError}
2828
+ * @memberof DefaultApi
2829
+ */
2830
+ public v1GetNodeProperties(requestParameters: DefaultApiV1GetNodePropertiesRequest, options?: AxiosRequestConfig) {
2831
+ return DefaultApiFp(this.configuration).v1GetNodeProperties(requestParameters.nodeId, options).then((request) => request(this.axios, this.basePath));
2832
+ }
2833
+
2834
+ /**
2835
+ * get all nodes
2836
+ * @param {*} [options] Override http request option.
2837
+ * @throws {RequiredError}
2838
+ * @memberof DefaultApi
2839
+ */
2840
+ public v1GetNodes(options?: AxiosRequestConfig) {
2841
+ return DefaultApiFp(this.configuration).v1GetNodes(options).then((request) => request(this.axios, this.basePath));
2842
+ }
2843
+
2844
+ /**
2845
+ * get observatories
2846
+ * @param {*} [options] Override http request option.
2847
+ * @throws {RequiredError}
2848
+ * @memberof DefaultApi
2849
+ */
2850
+ public v1GetObservatories(options?: AxiosRequestConfig) {
2851
+ return DefaultApiFp(this.configuration).v1GetObservatories(options).then((request) => request(this.axios, this.basePath));
2852
+ }
2853
+
2854
+ /**
2855
+ * get an optical tube
2856
+ * @param {DefaultApiV1GetOpticalTubeRequest} requestParameters Request parameters.
2857
+ * @param {*} [options] Override http request option.
2858
+ * @throws {RequiredError}
2859
+ * @memberof DefaultApi
2860
+ */
2861
+ public v1GetOpticalTube(requestParameters: DefaultApiV1GetOpticalTubeRequest, options?: AxiosRequestConfig) {
2862
+ return DefaultApiFp(this.configuration).v1GetOpticalTube(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2863
+ }
2864
+
2865
+ /**
2866
+ * match mount
2867
+ * @param {DefaultApiV1MountMatchRequest} requestParameters Request parameters.
2868
+ * @param {*} [options] Override http request option.
2869
+ * @throws {RequiredError}
2870
+ * @memberof DefaultApi
2871
+ */
2872
+ public v1MountMatch(requestParameters: DefaultApiV1MountMatchRequest = {}, options?: AxiosRequestConfig) {
2873
+ return DefaultApiFp(this.configuration).v1MountMatch(requestParameters.model, options).then((request) => request(this.axios, this.basePath));
2874
+ }
2875
+
2876
+ /**
2877
+ * match optical tube
2878
+ * @param {DefaultApiV1OpticalTubeMatchRequest} requestParameters Request parameters.
2879
+ * @param {*} [options] Override http request option.
2880
+ * @throws {RequiredError}
2881
+ * @memberof DefaultApi
2882
+ */
2883
+ public v1OpticalTubeMatch(requestParameters: DefaultApiV1OpticalTubeMatchRequest = {}, options?: AxiosRequestConfig) {
2884
+ return DefaultApiFp(this.configuration).v1OpticalTubeMatch(requestParameters.model, requestParameters.focalLengthMm, requestParameters.apertureMm, options).then((request) => request(this.axios, this.basePath));
2885
+ }
2886
+
2887
+ /**
2888
+ * update node metrics
2889
+ * @param {DefaultApiV1UpdateNodeMetricsRequest} requestParameters Request parameters.
2890
+ * @param {*} [options] Override http request option.
2891
+ * @throws {RequiredError}
2892
+ * @memberof DefaultApi
2893
+ */
2894
+ public v1UpdateNodeMetrics(requestParameters: DefaultApiV1UpdateNodeMetricsRequest, options?: AxiosRequestConfig) {
2895
+ return DefaultApiFp(this.configuration).v1UpdateNodeMetrics(requestParameters.v1UpdateNodeMetrics, options).then((request) => request(this.axios, this.basePath));
2896
+ }
2897
+
2898
+ /**
2899
+ * get next observation
2900
+ * @param {DefaultApiV2GetObservationRequest} requestParameters Request parameters.
2901
+ * @param {*} [options] Override http request option.
2902
+ * @throws {RequiredError}
2903
+ * @memberof DefaultApi
2904
+ */
2905
+ public v2GetObservation(requestParameters: DefaultApiV2GetObservationRequest, options?: AxiosRequestConfig) {
2906
+ return DefaultApiFp(this.configuration).v2GetObservation(requestParameters.nodeId, options).then((request) => request(this.axios, this.basePath));
2907
+ }
2908
+ }
2909
+
2910
+
2911
+