@ourskyai/astro-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.
@@ -0,0 +1,2346 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OurSky Astro
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from './base';
29
+ /**
30
+ * asset file type
31
+ * @export
32
+ * @enum {string}
33
+ */
34
+ export const AssetFileType = {
35
+ FITS: 'FITS',
36
+ TIFF: 'TIFF',
37
+ PNG: 'PNG',
38
+ JPEG: 'JPEG',
39
+ JSON: 'JSON',
40
+ TXT: 'TXT'
41
+ };
42
+ /**
43
+ * asset type
44
+ * @export
45
+ * @enum {string}
46
+ */
47
+ export const AssetType = {
48
+ STACK_RESULT: 'STACK_RESULT',
49
+ PROJECT_UNBEAUTIFIED: 'PROJECT_UNBEAUTIFIED',
50
+ PROJECT_BEAUTIFIED: 'PROJECT_BEAUTIFIED',
51
+ IMAGE_THUMBNAIL: 'IMAGE_THUMBNAIL',
52
+ PROJECT_BEAUTIFIED_THUMBNAIL: 'PROJECT_BEAUTIFIED_THUMBNAIL'
53
+ };
54
+ /**
55
+ *
56
+ * @export
57
+ * @enum {string}
58
+ */
59
+ export const CalibrationMasterType = {
60
+ FLAT: 'FLAT',
61
+ DARK: 'DARK',
62
+ BIAS: 'BIAS'
63
+ };
64
+ /**
65
+ *
66
+ * @export
67
+ * @enum {string}
68
+ */
69
+ export const FilterType = {
70
+ NONE: 'NONE',
71
+ RED: 'RED',
72
+ BLUE: 'BLUE',
73
+ GREEN: 'GREEN',
74
+ UV: 'UV',
75
+ IR: 'IR',
76
+ LUMINANCE: 'LUMINANCE',
77
+ ENHANCED_LUMINANCE: 'ENHANCED_LUMINANCE',
78
+ H_ALPHA: 'H_ALPHA',
79
+ H_BETA: 'H_BETA',
80
+ S_II: 'S_II',
81
+ O_III: 'O_III',
82
+ DUAL_BAND: 'DUAL_BAND',
83
+ PHOTO_JOHNSON_U: 'PHOTO_JOHNSON_U',
84
+ PHOTO_JOHNSON_B: 'PHOTO_JOHNSON_B',
85
+ PHOTO_JOHNSON_V: 'PHOTO_JOHNSON_V',
86
+ PHOTO_COUSINS_R: 'PHOTO_COUSINS_R',
87
+ PHOTO_COUSINS_I: 'PHOTO_COUSINS_I'
88
+ };
89
+ /**
90
+ * The type of mount
91
+ * @export
92
+ * @enum {string}
93
+ */
94
+ export const MountType = {
95
+ ALT_AZ: 'ALT_AZ',
96
+ EQUITORIAL: 'EQUITORIAL'
97
+ };
98
+ /**
99
+ * possible states for a node
100
+ * @export
101
+ * @enum {string}
102
+ */
103
+ export const NodeState = {
104
+ READY: 'READY',
105
+ PENDING: 'PENDING',
106
+ OFFLINE: 'OFFLINE',
107
+ UNAVAILABLE: 'UNAVAILABLE',
108
+ UNKNOWN: 'UNKNOWN',
109
+ SUPERSEDED: 'SUPERSEDED'
110
+ };
111
+ /**
112
+ * optical tube types
113
+ * @export
114
+ * @enum {string}
115
+ */
116
+ export const OpticalTubeType = {
117
+ NEWTONIAN: 'NEWTONIAN',
118
+ SCT: 'SCT',
119
+ MCT: 'MCT',
120
+ RC: 'RC',
121
+ REFRACTOR: 'REFRACTOR'
122
+ };
123
+ /**
124
+ * shutter type
125
+ * @export
126
+ * @enum {string}
127
+ */
128
+ export const ShutterType = {
129
+ ROLLING: 'ROLLING',
130
+ GLOBAL: 'GLOBAL'
131
+ };
132
+ /**
133
+ * target tracking type
134
+ * @export
135
+ * @enum {string}
136
+ */
137
+ export const TrackingType = {
138
+ SIDEREAL: 'SIDEREAL',
139
+ TARGET_RATE: 'TARGET_RATE'
140
+ };
141
+ /**
142
+ * platform credit source
143
+ * @export
144
+ * @enum {string}
145
+ */
146
+ export const V1PlatformCreditSource = {
147
+ SIGNUP: 'SIGNUP',
148
+ OSR_CONTRIBUTION: 'OSR_CONTRIBUTION',
149
+ STACKING: 'STACKING',
150
+ ADMIN: 'ADMIN'
151
+ };
152
+ /**
153
+ * platform credit type
154
+ * @export
155
+ * @enum {string}
156
+ */
157
+ export const V1PlatformCreditType = {
158
+ ASTRO_PLATFORM_USAGE: 'ASTRO_PLATFORM_USAGE'
159
+ };
160
+ /**
161
+ * platform credit unit
162
+ * @export
163
+ * @enum {string}
164
+ */
165
+ export const V1PlatformCreditUnit = {
166
+ MEGABYTE: 'MEGABYTE'
167
+ };
168
+ /**
169
+ * DefaultApi - axios parameter creator
170
+ * @export
171
+ */
172
+ export const DefaultApiAxiosParamCreator = function (configuration) {
173
+ return {
174
+ /**
175
+ * match camera
176
+ * @param {string} [model]
177
+ * @param {number} [pixelSizeMicrons]
178
+ * @param {number} [pixelsX]
179
+ * @param {number} [pixelsY]
180
+ * @param {number} [megapixels]
181
+ * @param {boolean} [chilled]
182
+ * @param {number} [adcBitDepth]
183
+ * @param {boolean} [isColor]
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ v1CameraMatch: (model, pixelSizeMicrons, pixelsX, pixelsY, megapixels, chilled, adcBitDepth, isColor, options = {}) => __awaiter(this, void 0, void 0, function* () {
188
+ const localVarPath = `/v1/camera-match`;
189
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
190
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
191
+ let baseOptions;
192
+ if (configuration) {
193
+ baseOptions = configuration.baseOptions;
194
+ }
195
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
196
+ const localVarHeaderParameter = {};
197
+ const localVarQueryParameter = {};
198
+ // authentication Roles required
199
+ // authentication BearerToken required
200
+ // http bearer authentication required
201
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
202
+ if (model !== undefined) {
203
+ localVarQueryParameter['model'] = model;
204
+ }
205
+ if (pixelSizeMicrons !== undefined) {
206
+ localVarQueryParameter['pixelSizeMicrons'] = pixelSizeMicrons;
207
+ }
208
+ if (pixelsX !== undefined) {
209
+ localVarQueryParameter['pixelsX'] = pixelsX;
210
+ }
211
+ if (pixelsY !== undefined) {
212
+ localVarQueryParameter['pixelsY'] = pixelsY;
213
+ }
214
+ if (megapixels !== undefined) {
215
+ localVarQueryParameter['megapixels'] = megapixels;
216
+ }
217
+ if (chilled !== undefined) {
218
+ localVarQueryParameter['chilled'] = chilled;
219
+ }
220
+ if (adcBitDepth !== undefined) {
221
+ localVarQueryParameter['adcBitDepth'] = adcBitDepth;
222
+ }
223
+ if (isColor !== undefined) {
224
+ localVarQueryParameter['isColor'] = isColor;
225
+ }
226
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
227
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
228
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
229
+ return {
230
+ url: toPathString(localVarUrlObj),
231
+ options: localVarRequestOptions,
232
+ };
233
+ }),
234
+ /**
235
+ * create an astro user camera
236
+ * @param {V1CreateCamera} v1CreateCamera request to create an camera
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ v1CreateAstroCamera: (v1CreateCamera, options = {}) => __awaiter(this, void 0, void 0, function* () {
241
+ // verify required parameter 'v1CreateCamera' is not null or undefined
242
+ assertParamExists('v1CreateAstroCamera', 'v1CreateCamera', v1CreateCamera);
243
+ const localVarPath = `/v1/astro-camera`;
244
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
245
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
246
+ let baseOptions;
247
+ if (configuration) {
248
+ baseOptions = configuration.baseOptions;
249
+ }
250
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
251
+ const localVarHeaderParameter = {};
252
+ const localVarQueryParameter = {};
253
+ // authentication Roles required
254
+ // authentication BearerToken required
255
+ // http bearer authentication required
256
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
257
+ localVarHeaderParameter['Content-Type'] = 'application/json';
258
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
261
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateCamera, localVarRequestOptions, configuration);
262
+ return {
263
+ url: toPathString(localVarUrlObj),
264
+ options: localVarRequestOptions,
265
+ };
266
+ }),
267
+ /**
268
+ * create an astro user mount
269
+ * @param {V1CreateMount} v1CreateMount request to create a mount
270
+ * @param {*} [options] Override http request option.
271
+ * @throws {RequiredError}
272
+ */
273
+ v1CreateAstroMount: (v1CreateMount, options = {}) => __awaiter(this, void 0, void 0, function* () {
274
+ // verify required parameter 'v1CreateMount' is not null or undefined
275
+ assertParamExists('v1CreateAstroMount', 'v1CreateMount', v1CreateMount);
276
+ const localVarPath = `/v1/astro-mount`;
277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
278
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
279
+ let baseOptions;
280
+ if (configuration) {
281
+ baseOptions = configuration.baseOptions;
282
+ }
283
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
284
+ const localVarHeaderParameter = {};
285
+ const localVarQueryParameter = {};
286
+ // authentication Roles required
287
+ // authentication BearerToken required
288
+ // http bearer authentication required
289
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
290
+ localVarHeaderParameter['Content-Type'] = 'application/json';
291
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
292
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
294
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateMount, localVarRequestOptions, configuration);
295
+ return {
296
+ url: toPathString(localVarUrlObj),
297
+ options: localVarRequestOptions,
298
+ };
299
+ }),
300
+ /**
301
+ * create an optical tube for an astro user
302
+ * @param {V1CreateOpticalTube} v1CreateOpticalTube request to create an optical tube
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ v1CreateAstroOpticalTube: (v1CreateOpticalTube, options = {}) => __awaiter(this, void 0, void 0, function* () {
307
+ // verify required parameter 'v1CreateOpticalTube' is not null or undefined
308
+ assertParamExists('v1CreateAstroOpticalTube', 'v1CreateOpticalTube', v1CreateOpticalTube);
309
+ const localVarPath = `/v1/astro-optical-tube`;
310
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
311
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
312
+ let baseOptions;
313
+ if (configuration) {
314
+ baseOptions = configuration.baseOptions;
315
+ }
316
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
317
+ const localVarHeaderParameter = {};
318
+ const localVarQueryParameter = {};
319
+ // authentication Roles required
320
+ // authentication BearerToken required
321
+ // http bearer authentication required
322
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
323
+ localVarHeaderParameter['Content-Type'] = 'application/json';
324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
327
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateOpticalTube, localVarRequestOptions, configuration);
328
+ return {
329
+ url: toPathString(localVarUrlObj),
330
+ options: localVarRequestOptions,
331
+ };
332
+ }),
333
+ /**
334
+ * create an astro project
335
+ * @param {V1CreateAstroProject} v1CreateAstroProject request to create an astro project
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ v1CreateAstroProject: (v1CreateAstroProject, options = {}) => __awaiter(this, void 0, void 0, function* () {
340
+ // verify required parameter 'v1CreateAstroProject' is not null or undefined
341
+ assertParamExists('v1CreateAstroProject', 'v1CreateAstroProject', v1CreateAstroProject);
342
+ const localVarPath = `/v1/astro-project`;
343
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
344
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
345
+ let baseOptions;
346
+ if (configuration) {
347
+ baseOptions = configuration.baseOptions;
348
+ }
349
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
350
+ const localVarHeaderParameter = {};
351
+ const localVarQueryParameter = {};
352
+ // authentication Roles required
353
+ // authentication BearerToken required
354
+ // http bearer authentication required
355
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
356
+ localVarHeaderParameter['Content-Type'] = 'application/json';
357
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
358
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
359
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateAstroProject, localVarRequestOptions, configuration);
361
+ return {
362
+ url: toPathString(localVarUrlObj),
363
+ options: localVarRequestOptions,
364
+ };
365
+ }),
366
+ /**
367
+ * create a project image set
368
+ * @param {V1CreateAstroProjectImageSet} v1CreateAstroProjectImageSet request to create a project image Set
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ v1CreateAstroProjectImageSet: (v1CreateAstroProjectImageSet, options = {}) => __awaiter(this, void 0, void 0, function* () {
373
+ // verify required parameter 'v1CreateAstroProjectImageSet' is not null or undefined
374
+ assertParamExists('v1CreateAstroProjectImageSet', 'v1CreateAstroProjectImageSet', v1CreateAstroProjectImageSet);
375
+ const localVarPath = `/v1/astro-project-image-set`;
376
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
377
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
378
+ let baseOptions;
379
+ if (configuration) {
380
+ baseOptions = configuration.baseOptions;
381
+ }
382
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
383
+ const localVarHeaderParameter = {};
384
+ const localVarQueryParameter = {};
385
+ // authentication Roles required
386
+ // authentication BearerToken required
387
+ // http bearer authentication required
388
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
389
+ localVarHeaderParameter['Content-Type'] = 'application/json';
390
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
392
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
393
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateAstroProjectImageSet, localVarRequestOptions, configuration);
394
+ return {
395
+ url: toPathString(localVarUrlObj),
396
+ options: localVarRequestOptions,
397
+ };
398
+ }),
399
+ /**
400
+ * create an calibration master
401
+ * @param {V1CreateCalibrationMaster} v1CreateCalibrationMaster request to create the calibration master
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ v1CreateCalibrationMaster: (v1CreateCalibrationMaster, options = {}) => __awaiter(this, void 0, void 0, function* () {
406
+ // verify required parameter 'v1CreateCalibrationMaster' is not null or undefined
407
+ assertParamExists('v1CreateCalibrationMaster', 'v1CreateCalibrationMaster', v1CreateCalibrationMaster);
408
+ const localVarPath = `/v1/calibration-master`;
409
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
410
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
411
+ let baseOptions;
412
+ if (configuration) {
413
+ baseOptions = configuration.baseOptions;
414
+ }
415
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
416
+ const localVarHeaderParameter = {};
417
+ const localVarQueryParameter = {};
418
+ // authentication Roles required
419
+ // authentication BearerToken required
420
+ // http bearer authentication required
421
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
422
+ localVarHeaderParameter['Content-Type'] = 'application/json';
423
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
424
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
425
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
426
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateCalibrationMaster, localVarRequestOptions, configuration);
427
+ return {
428
+ url: toPathString(localVarUrlObj),
429
+ options: localVarRequestOptions,
430
+ };
431
+ }),
432
+ /**
433
+ * create an image set
434
+ * @param {V1CreateImageSet} v1CreateImageSet request to create the Image Set
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ v1CreateImageSet: (v1CreateImageSet, options = {}) => __awaiter(this, void 0, void 0, function* () {
439
+ // verify required parameter 'v1CreateImageSet' is not null or undefined
440
+ assertParamExists('v1CreateImageSet', 'v1CreateImageSet', v1CreateImageSet);
441
+ const localVarPath = `/v1/image-set`;
442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
443
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
444
+ let baseOptions;
445
+ if (configuration) {
446
+ baseOptions = configuration.baseOptions;
447
+ }
448
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
449
+ const localVarHeaderParameter = {};
450
+ const localVarQueryParameter = {};
451
+ // authentication Roles required
452
+ // authentication BearerToken required
453
+ // http bearer authentication required
454
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
455
+ localVarHeaderParameter['Content-Type'] = 'application/json';
456
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
457
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
458
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
459
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateImageSet, localVarRequestOptions, configuration);
460
+ return {
461
+ url: toPathString(localVarUrlObj),
462
+ options: localVarRequestOptions,
463
+ };
464
+ }),
465
+ /**
466
+ * create an image set image
467
+ * @param {V1CreateImageSetImage} v1CreateImageSetImage request to create an image set image
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ */
471
+ v1CreateImageSetImage: (v1CreateImageSetImage, options = {}) => __awaiter(this, void 0, void 0, function* () {
472
+ // verify required parameter 'v1CreateImageSetImage' is not null or undefined
473
+ assertParamExists('v1CreateImageSetImage', 'v1CreateImageSetImage', v1CreateImageSetImage);
474
+ const localVarPath = `/v1/image-set-image`;
475
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
476
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
477
+ let baseOptions;
478
+ if (configuration) {
479
+ baseOptions = configuration.baseOptions;
480
+ }
481
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
482
+ const localVarHeaderParameter = {};
483
+ const localVarQueryParameter = {};
484
+ // authentication Roles required
485
+ // authentication BearerToken required
486
+ // http bearer authentication required
487
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
488
+ localVarHeaderParameter['Content-Type'] = 'application/json';
489
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
491
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
492
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateImageSetImage, localVarRequestOptions, configuration);
493
+ return {
494
+ url: toPathString(localVarUrlObj),
495
+ options: localVarRequestOptions,
496
+ };
497
+ }),
498
+ /**
499
+ * create a node
500
+ * @param {V1CreateNode} v1CreateNode request to create a node
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ v1CreateNode: (v1CreateNode, options = {}) => __awaiter(this, void 0, void 0, function* () {
505
+ // verify required parameter 'v1CreateNode' is not null or undefined
506
+ assertParamExists('v1CreateNode', 'v1CreateNode', v1CreateNode);
507
+ const localVarPath = `/v1/node`;
508
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
509
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
510
+ let baseOptions;
511
+ if (configuration) {
512
+ baseOptions = configuration.baseOptions;
513
+ }
514
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
515
+ const localVarHeaderParameter = {};
516
+ const localVarQueryParameter = {};
517
+ // authentication Roles required
518
+ // authentication BearerToken required
519
+ // http bearer authentication required
520
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
521
+ localVarHeaderParameter['Content-Type'] = 'application/json';
522
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
523
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
524
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
525
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateNode, localVarRequestOptions, configuration);
526
+ return {
527
+ url: toPathString(localVarUrlObj),
528
+ options: localVarRequestOptions,
529
+ };
530
+ }),
531
+ /**
532
+ * get an astro camera
533
+ * @param {string} id
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ v1GetAstroCamera: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
538
+ // verify required parameter 'id' is not null or undefined
539
+ assertParamExists('v1GetAstroCamera', 'id', id);
540
+ const localVarPath = `/v1/astro-camera`;
541
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
542
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
543
+ let baseOptions;
544
+ if (configuration) {
545
+ baseOptions = configuration.baseOptions;
546
+ }
547
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
548
+ const localVarHeaderParameter = {};
549
+ const localVarQueryParameter = {};
550
+ // authentication Roles required
551
+ // authentication BearerToken required
552
+ // http bearer authentication required
553
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
554
+ if (id !== undefined) {
555
+ localVarQueryParameter['id'] = id;
556
+ }
557
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
559
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
560
+ return {
561
+ url: toPathString(localVarUrlObj),
562
+ options: localVarRequestOptions,
563
+ };
564
+ }),
565
+ /**
566
+ * get an astro mount
567
+ * @param {string} id
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ v1GetAstroMount: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
572
+ // verify required parameter 'id' is not null or undefined
573
+ assertParamExists('v1GetAstroMount', 'id', id);
574
+ const localVarPath = `/v1/astro-mount`;
575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
576
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
577
+ let baseOptions;
578
+ if (configuration) {
579
+ baseOptions = configuration.baseOptions;
580
+ }
581
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
582
+ const localVarHeaderParameter = {};
583
+ const localVarQueryParameter = {};
584
+ // authentication Roles required
585
+ // authentication BearerToken required
586
+ // http bearer authentication required
587
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
588
+ if (id !== undefined) {
589
+ localVarQueryParameter['id'] = id;
590
+ }
591
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
592
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
593
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
594
+ return {
595
+ url: toPathString(localVarUrlObj),
596
+ options: localVarRequestOptions,
597
+ };
598
+ }),
599
+ /**
600
+ * get an optical tube
601
+ * @param {string} id
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ v1GetAstroOpticalTube: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
606
+ // verify required parameter 'id' is not null or undefined
607
+ assertParamExists('v1GetAstroOpticalTube', 'id', id);
608
+ const localVarPath = `/v1/astro-optical-tube`;
609
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
610
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
611
+ let baseOptions;
612
+ if (configuration) {
613
+ baseOptions = configuration.baseOptions;
614
+ }
615
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
616
+ const localVarHeaderParameter = {};
617
+ const localVarQueryParameter = {};
618
+ // authentication Roles required
619
+ // authentication BearerToken required
620
+ // http bearer authentication required
621
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
622
+ if (id !== undefined) {
623
+ localVarQueryParameter['id'] = id;
624
+ }
625
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
626
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
627
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
628
+ return {
629
+ url: toPathString(localVarUrlObj),
630
+ options: localVarRequestOptions,
631
+ };
632
+ }),
633
+ /**
634
+ * get astro platform credit balance
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ v1GetAstroPlatformCreditBalance: (options = {}) => __awaiter(this, void 0, void 0, function* () {
639
+ const localVarPath = `/v1/astro-platform-credit-balance`;
640
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
641
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
642
+ let baseOptions;
643
+ if (configuration) {
644
+ baseOptions = configuration.baseOptions;
645
+ }
646
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
647
+ const localVarHeaderParameter = {};
648
+ const localVarQueryParameter = {};
649
+ // authentication Roles required
650
+ // authentication BearerToken required
651
+ // http bearer authentication required
652
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
653
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
654
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
655
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
656
+ return {
657
+ url: toPathString(localVarUrlObj),
658
+ options: localVarRequestOptions,
659
+ };
660
+ }),
661
+ /**
662
+ * get an astro project
663
+ * @param {string} astroProjectId
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ v1GetAstroProject: (astroProjectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
668
+ // verify required parameter 'astroProjectId' is not null or undefined
669
+ assertParamExists('v1GetAstroProject', 'astroProjectId', astroProjectId);
670
+ const localVarPath = `/v1/astro-project`;
671
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
672
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
673
+ let baseOptions;
674
+ if (configuration) {
675
+ baseOptions = configuration.baseOptions;
676
+ }
677
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
678
+ const localVarHeaderParameter = {};
679
+ const localVarQueryParameter = {};
680
+ // authentication Roles required
681
+ // authentication BearerToken required
682
+ // http bearer authentication required
683
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
684
+ if (astroProjectId !== undefined) {
685
+ localVarQueryParameter['astroProjectId'] = astroProjectId;
686
+ }
687
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
688
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
689
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
690
+ return {
691
+ url: toPathString(localVarUrlObj),
692
+ options: localVarRequestOptions,
693
+ };
694
+ }),
695
+ /**
696
+ * get all assets for an astro project
697
+ * @param {string} astroProjectId
698
+ * @param {*} [options] Override http request option.
699
+ * @throws {RequiredError}
700
+ */
701
+ v1GetAstroProjectAssets: (astroProjectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
702
+ // verify required parameter 'astroProjectId' is not null or undefined
703
+ assertParamExists('v1GetAstroProjectAssets', 'astroProjectId', astroProjectId);
704
+ const localVarPath = `/v1/astro-project-assets`;
705
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
706
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
707
+ let baseOptions;
708
+ if (configuration) {
709
+ baseOptions = configuration.baseOptions;
710
+ }
711
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
712
+ const localVarHeaderParameter = {};
713
+ const localVarQueryParameter = {};
714
+ // authentication Roles required
715
+ // authentication BearerToken required
716
+ // http bearer authentication required
717
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
718
+ if (astroProjectId !== undefined) {
719
+ localVarQueryParameter['astroProjectId'] = astroProjectId;
720
+ }
721
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
722
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
723
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
724
+ return {
725
+ url: toPathString(localVarUrlObj),
726
+ options: localVarRequestOptions,
727
+ };
728
+ }),
729
+ /**
730
+ * get all astro projects
731
+ * @param {*} [options] Override http request option.
732
+ * @throws {RequiredError}
733
+ */
734
+ v1GetAstroProjects: (options = {}) => __awaiter(this, void 0, void 0, function* () {
735
+ const localVarPath = `/v1/astro-projects`;
736
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
737
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
738
+ let baseOptions;
739
+ if (configuration) {
740
+ baseOptions = configuration.baseOptions;
741
+ }
742
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
743
+ const localVarHeaderParameter = {};
744
+ const localVarQueryParameter = {};
745
+ // authentication Roles required
746
+ // authentication BearerToken required
747
+ // http bearer authentication required
748
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
749
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
750
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
751
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
752
+ return {
753
+ url: toPathString(localVarUrlObj),
754
+ options: localVarRequestOptions,
755
+ };
756
+ }),
757
+ /**
758
+ * Get an astro targets. pass in an ID, an NGC ID or an IC ID
759
+ * @param {string} [id]
760
+ * @param {string} [ngcId]
761
+ * @param {string} [icId]
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ */
765
+ v1GetAstroTarget: (id, ngcId, icId, options = {}) => __awaiter(this, void 0, void 0, function* () {
766
+ const localVarPath = `/v1/astro-target`;
767
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
768
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
769
+ let baseOptions;
770
+ if (configuration) {
771
+ baseOptions = configuration.baseOptions;
772
+ }
773
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
774
+ const localVarHeaderParameter = {};
775
+ const localVarQueryParameter = {};
776
+ // authentication Roles required
777
+ // authentication BearerToken required
778
+ // http bearer authentication required
779
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
780
+ if (id !== undefined) {
781
+ localVarQueryParameter['id'] = id;
782
+ }
783
+ if (ngcId !== undefined) {
784
+ localVarQueryParameter['ngcId'] = ngcId;
785
+ }
786
+ if (icId !== undefined) {
787
+ localVarQueryParameter['icId'] = icId;
788
+ }
789
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
790
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
791
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
792
+ return {
793
+ url: toPathString(localVarUrlObj),
794
+ options: localVarRequestOptions,
795
+ };
796
+ }),
797
+ /**
798
+ * Get all astro targets. This response is paginated. It will only return at most 100 at a time. To get the next page, pass in the `id` of the last target in the current page as the `lastId` query parameter. Omitting this field fetches the first page.
799
+ * @param {string} [lastId]
800
+ * @param {string} [catalogId]
801
+ * @param {number} [ra]
802
+ * @param {number} [dec]
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
806
+ v1GetAstroTargets: (lastId, catalogId, ra, dec, options = {}) => __awaiter(this, void 0, void 0, function* () {
807
+ const localVarPath = `/v1/astro-targets`;
808
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
809
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
810
+ let baseOptions;
811
+ if (configuration) {
812
+ baseOptions = configuration.baseOptions;
813
+ }
814
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
815
+ const localVarHeaderParameter = {};
816
+ const localVarQueryParameter = {};
817
+ // authentication Roles required
818
+ // authentication BearerToken required
819
+ // http bearer authentication required
820
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
821
+ if (lastId !== undefined) {
822
+ localVarQueryParameter['lastId'] = lastId;
823
+ }
824
+ if (catalogId !== undefined) {
825
+ localVarQueryParameter['catalogId'] = catalogId;
826
+ }
827
+ if (ra !== undefined) {
828
+ localVarQueryParameter['ra'] = ra;
829
+ }
830
+ if (dec !== undefined) {
831
+ localVarQueryParameter['dec'] = dec;
832
+ }
833
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
834
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
835
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
836
+ return {
837
+ url: toPathString(localVarUrlObj),
838
+ options: localVarRequestOptions,
839
+ };
840
+ }),
841
+ /**
842
+ * get all calibration masters for a node
843
+ * @param {string} nodeId
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ */
847
+ v1GetCalibrationMasters: (nodeId, options = {}) => __awaiter(this, void 0, void 0, function* () {
848
+ // verify required parameter 'nodeId' is not null or undefined
849
+ assertParamExists('v1GetCalibrationMasters', 'nodeId', nodeId);
850
+ const localVarPath = `/v1/calibration-masters`;
851
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
852
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
853
+ let baseOptions;
854
+ if (configuration) {
855
+ baseOptions = configuration.baseOptions;
856
+ }
857
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
858
+ const localVarHeaderParameter = {};
859
+ const localVarQueryParameter = {};
860
+ // authentication Roles required
861
+ // authentication BearerToken required
862
+ // http bearer authentication required
863
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
864
+ if (nodeId !== undefined) {
865
+ localVarQueryParameter['nodeId'] = nodeId;
866
+ }
867
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
868
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
869
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
870
+ return {
871
+ url: toPathString(localVarUrlObj),
872
+ options: localVarRequestOptions,
873
+ };
874
+ }),
875
+ /**
876
+ * get all cameras
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ */
880
+ v1GetCameras: (options = {}) => __awaiter(this, void 0, void 0, function* () {
881
+ const localVarPath = `/v1/cameras`;
882
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
883
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
884
+ let baseOptions;
885
+ if (configuration) {
886
+ baseOptions = configuration.baseOptions;
887
+ }
888
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
889
+ const localVarHeaderParameter = {};
890
+ const localVarQueryParameter = {};
891
+ // authentication Roles required
892
+ // authentication BearerToken required
893
+ // http bearer authentication required
894
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
895
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
896
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
897
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
898
+ return {
899
+ url: toPathString(localVarUrlObj),
900
+ options: localVarRequestOptions,
901
+ };
902
+ }),
903
+ /**
904
+ * get an image set
905
+ * @param {string} id
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ v1GetImageSet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
910
+ // verify required parameter 'id' is not null or undefined
911
+ assertParamExists('v1GetImageSet', 'id', id);
912
+ const localVarPath = `/v1/image-set`;
913
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
914
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
915
+ let baseOptions;
916
+ if (configuration) {
917
+ baseOptions = configuration.baseOptions;
918
+ }
919
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
920
+ const localVarHeaderParameter = {};
921
+ const localVarQueryParameter = {};
922
+ // authentication Roles required
923
+ // authentication BearerToken required
924
+ // http bearer authentication required
925
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
926
+ if (id !== undefined) {
927
+ localVarQueryParameter['id'] = id;
928
+ }
929
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
930
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
931
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
932
+ return {
933
+ url: toPathString(localVarUrlObj),
934
+ options: localVarRequestOptions,
935
+ };
936
+ }),
937
+ /**
938
+ * get an image
939
+ * @param {string} imageId
940
+ * @param {*} [options] Override http request option.
941
+ * @throws {RequiredError}
942
+ */
943
+ v1GetImageSetImage: (imageId, options = {}) => __awaiter(this, void 0, void 0, function* () {
944
+ // verify required parameter 'imageId' is not null or undefined
945
+ assertParamExists('v1GetImageSetImage', 'imageId', imageId);
946
+ const localVarPath = `/v1/image-set-image`;
947
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
948
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
949
+ let baseOptions;
950
+ if (configuration) {
951
+ baseOptions = configuration.baseOptions;
952
+ }
953
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
954
+ const localVarHeaderParameter = {};
955
+ const localVarQueryParameter = {};
956
+ // authentication Roles required
957
+ // authentication BearerToken required
958
+ // http bearer authentication required
959
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
960
+ if (imageId !== undefined) {
961
+ localVarQueryParameter['imageId'] = imageId;
962
+ }
963
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
964
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
965
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
966
+ return {
967
+ url: toPathString(localVarUrlObj),
968
+ options: localVarRequestOptions,
969
+ };
970
+ }),
971
+ /**
972
+ * get image set images
973
+ * @param {Array<string>} imageSets
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ */
977
+ v1GetImageSetImages: (imageSets, options = {}) => __awaiter(this, void 0, void 0, function* () {
978
+ // verify required parameter 'imageSets' is not null or undefined
979
+ assertParamExists('v1GetImageSetImages', 'imageSets', imageSets);
980
+ const localVarPath = `/v1/image-set-images`;
981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
983
+ let baseOptions;
984
+ if (configuration) {
985
+ baseOptions = configuration.baseOptions;
986
+ }
987
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
988
+ const localVarHeaderParameter = {};
989
+ const localVarQueryParameter = {};
990
+ // authentication Roles required
991
+ // authentication BearerToken required
992
+ // http bearer authentication required
993
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
994
+ if (imageSets) {
995
+ localVarQueryParameter['imageSets'] = imageSets.join(COLLECTION_FORMATS.csv);
996
+ }
997
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
998
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
999
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1000
+ return {
1001
+ url: toPathString(localVarUrlObj),
1002
+ options: localVarRequestOptions,
1003
+ };
1004
+ }),
1005
+ /**
1006
+ * get image sets for targets observed for your organization
1007
+ * @param {*} [options] Override http request option.
1008
+ * @throws {RequiredError}
1009
+ */
1010
+ v1GetImageSets: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1011
+ const localVarPath = `/v1/image-sets`;
1012
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1013
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1014
+ let baseOptions;
1015
+ if (configuration) {
1016
+ baseOptions = configuration.baseOptions;
1017
+ }
1018
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1019
+ const localVarHeaderParameter = {};
1020
+ const localVarQueryParameter = {};
1021
+ // authentication Roles required
1022
+ // authentication BearerToken required
1023
+ // http bearer authentication required
1024
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1025
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1026
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1027
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1028
+ return {
1029
+ url: toPathString(localVarUrlObj),
1030
+ options: localVarRequestOptions,
1031
+ };
1032
+ }),
1033
+ /**
1034
+ * get mounts
1035
+ * @param {*} [options] Override http request option.
1036
+ * @throws {RequiredError}
1037
+ */
1038
+ v1GetMounts: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1039
+ const localVarPath = `/v1/mounts`;
1040
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1041
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1042
+ let baseOptions;
1043
+ if (configuration) {
1044
+ baseOptions = configuration.baseOptions;
1045
+ }
1046
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1047
+ const localVarHeaderParameter = {};
1048
+ const localVarQueryParameter = {};
1049
+ // authentication Roles required
1050
+ // authentication BearerToken required
1051
+ // http bearer authentication required
1052
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1053
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1054
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1055
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1056
+ return {
1057
+ url: toPathString(localVarUrlObj),
1058
+ options: localVarRequestOptions,
1059
+ };
1060
+ }),
1061
+ /**
1062
+ * get all nodes
1063
+ * @param {*} [options] Override http request option.
1064
+ * @throws {RequiredError}
1065
+ */
1066
+ v1GetNodes: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1067
+ const localVarPath = `/v1/nodes`;
1068
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1069
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1070
+ let baseOptions;
1071
+ if (configuration) {
1072
+ baseOptions = configuration.baseOptions;
1073
+ }
1074
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1075
+ const localVarHeaderParameter = {};
1076
+ const localVarQueryParameter = {};
1077
+ // authentication Roles required
1078
+ // authentication BearerToken required
1079
+ // http bearer authentication required
1080
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1081
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1082
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1083
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1084
+ return {
1085
+ url: toPathString(localVarUrlObj),
1086
+ options: localVarRequestOptions,
1087
+ };
1088
+ }),
1089
+ /**
1090
+ * get platform credits
1091
+ * @param {*} [options] Override http request option.
1092
+ * @throws {RequiredError}
1093
+ */
1094
+ v1GetPlatformCredits: (options = {}) => __awaiter(this, void 0, void 0, function* () {
1095
+ const localVarPath = `/v1/platform-credits`;
1096
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1097
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1098
+ let baseOptions;
1099
+ if (configuration) {
1100
+ baseOptions = configuration.baseOptions;
1101
+ }
1102
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1103
+ const localVarHeaderParameter = {};
1104
+ const localVarQueryParameter = {};
1105
+ // authentication Roles required
1106
+ // authentication BearerToken required
1107
+ // http bearer authentication required
1108
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1109
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1110
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1111
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1112
+ return {
1113
+ url: toPathString(localVarUrlObj),
1114
+ options: localVarRequestOptions,
1115
+ };
1116
+ }),
1117
+ /**
1118
+ * search for an astro project with certain properties
1119
+ * @param {string} targetId
1120
+ * @param {string} cameraId
1121
+ * @param {string} otaId
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ v1MatchAstroProject: (targetId, cameraId, otaId, options = {}) => __awaiter(this, void 0, void 0, function* () {
1126
+ // verify required parameter 'targetId' is not null or undefined
1127
+ assertParamExists('v1MatchAstroProject', 'targetId', targetId);
1128
+ // verify required parameter 'cameraId' is not null or undefined
1129
+ assertParamExists('v1MatchAstroProject', 'cameraId', cameraId);
1130
+ // verify required parameter 'otaId' is not null or undefined
1131
+ assertParamExists('v1MatchAstroProject', 'otaId', otaId);
1132
+ const localVarPath = `/v1/astro-project-match`;
1133
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1134
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1135
+ let baseOptions;
1136
+ if (configuration) {
1137
+ baseOptions = configuration.baseOptions;
1138
+ }
1139
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1140
+ const localVarHeaderParameter = {};
1141
+ const localVarQueryParameter = {};
1142
+ // authentication Roles required
1143
+ // authentication BearerToken required
1144
+ // http bearer authentication required
1145
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1146
+ if (targetId !== undefined) {
1147
+ localVarQueryParameter['targetId'] = targetId;
1148
+ }
1149
+ if (cameraId !== undefined) {
1150
+ localVarQueryParameter['cameraId'] = cameraId;
1151
+ }
1152
+ if (otaId !== undefined) {
1153
+ localVarQueryParameter['otaId'] = otaId;
1154
+ }
1155
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1157
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1158
+ return {
1159
+ url: toPathString(localVarUrlObj),
1160
+ options: localVarRequestOptions,
1161
+ };
1162
+ }),
1163
+ /**
1164
+ * match mount
1165
+ * @param {string} [model]
1166
+ * @param {*} [options] Override http request option.
1167
+ * @throws {RequiredError}
1168
+ */
1169
+ v1MountMatch: (model, options = {}) => __awaiter(this, void 0, void 0, function* () {
1170
+ const localVarPath = `/v1/mount-match`;
1171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1173
+ let baseOptions;
1174
+ if (configuration) {
1175
+ baseOptions = configuration.baseOptions;
1176
+ }
1177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1178
+ const localVarHeaderParameter = {};
1179
+ const localVarQueryParameter = {};
1180
+ // authentication Roles required
1181
+ // authentication BearerToken required
1182
+ // http bearer authentication required
1183
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1184
+ if (model !== undefined) {
1185
+ localVarQueryParameter['model'] = model;
1186
+ }
1187
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1188
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1189
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1190
+ return {
1191
+ url: toPathString(localVarUrlObj),
1192
+ options: localVarRequestOptions,
1193
+ };
1194
+ }),
1195
+ /**
1196
+ * match optical tube
1197
+ * @param {string} [model]
1198
+ * @param {number} [focalLengthMm]
1199
+ * @param {number} [apertureMm]
1200
+ * @param {*} [options] Override http request option.
1201
+ * @throws {RequiredError}
1202
+ */
1203
+ v1OpticalTubeMatch: (model, focalLengthMm, apertureMm, options = {}) => __awaiter(this, void 0, void 0, function* () {
1204
+ const localVarPath = `/v1/optical-tube-match`;
1205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1207
+ let baseOptions;
1208
+ if (configuration) {
1209
+ baseOptions = configuration.baseOptions;
1210
+ }
1211
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1212
+ const localVarHeaderParameter = {};
1213
+ const localVarQueryParameter = {};
1214
+ // authentication Roles required
1215
+ // authentication BearerToken required
1216
+ // http bearer authentication required
1217
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1218
+ if (model !== undefined) {
1219
+ localVarQueryParameter['model'] = model;
1220
+ }
1221
+ if (focalLengthMm !== undefined) {
1222
+ localVarQueryParameter['focalLengthMm'] = focalLengthMm;
1223
+ }
1224
+ if (apertureMm !== undefined) {
1225
+ localVarQueryParameter['apertureMm'] = apertureMm;
1226
+ }
1227
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1229
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1230
+ return {
1231
+ url: toPathString(localVarUrlObj),
1232
+ options: localVarRequestOptions,
1233
+ };
1234
+ }),
1235
+ /**
1236
+ * stack an astro project
1237
+ * @param {V1PutStackAstroProject} v1PutStackAstroProject request to stack an astro project
1238
+ * @param {*} [options] Override http request option.
1239
+ * @throws {RequiredError}
1240
+ */
1241
+ v1PutStackAstroProject: (v1PutStackAstroProject, options = {}) => __awaiter(this, void 0, void 0, function* () {
1242
+ // verify required parameter 'v1PutStackAstroProject' is not null or undefined
1243
+ assertParamExists('v1PutStackAstroProject', 'v1PutStackAstroProject', v1PutStackAstroProject);
1244
+ const localVarPath = `/v1/stack-astro-project`;
1245
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1246
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1247
+ let baseOptions;
1248
+ if (configuration) {
1249
+ baseOptions = configuration.baseOptions;
1250
+ }
1251
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1252
+ const localVarHeaderParameter = {};
1253
+ const localVarQueryParameter = {};
1254
+ // authentication Roles required
1255
+ // authentication BearerToken required
1256
+ // http bearer authentication required
1257
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1258
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1259
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1260
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1261
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1262
+ localVarRequestOptions.data = serializeDataIfNeeded(v1PutStackAstroProject, localVarRequestOptions, configuration);
1263
+ return {
1264
+ url: toPathString(localVarUrlObj),
1265
+ options: localVarRequestOptions,
1266
+ };
1267
+ }),
1268
+ /**
1269
+ * update a node
1270
+ * @param {V1UpdateNode} v1UpdateNode request to update a node
1271
+ * @param {*} [options] Override http request option.
1272
+ * @throws {RequiredError}
1273
+ */
1274
+ v1UpdateNode: (v1UpdateNode, options = {}) => __awaiter(this, void 0, void 0, function* () {
1275
+ // verify required parameter 'v1UpdateNode' is not null or undefined
1276
+ assertParamExists('v1UpdateNode', 'v1UpdateNode', v1UpdateNode);
1277
+ const localVarPath = `/v1/node`;
1278
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1279
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1280
+ let baseOptions;
1281
+ if (configuration) {
1282
+ baseOptions = configuration.baseOptions;
1283
+ }
1284
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1285
+ const localVarHeaderParameter = {};
1286
+ const localVarQueryParameter = {};
1287
+ // authentication Roles required
1288
+ // authentication BearerToken required
1289
+ // http bearer authentication required
1290
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1291
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1294
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1295
+ localVarRequestOptions.data = serializeDataIfNeeded(v1UpdateNode, localVarRequestOptions, configuration);
1296
+ return {
1297
+ url: toPathString(localVarUrlObj),
1298
+ options: localVarRequestOptions,
1299
+ };
1300
+ }),
1301
+ };
1302
+ };
1303
+ /**
1304
+ * DefaultApi - functional programming interface
1305
+ * @export
1306
+ */
1307
+ export const DefaultApiFp = function (configuration) {
1308
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
1309
+ return {
1310
+ /**
1311
+ * match camera
1312
+ * @param {string} [model]
1313
+ * @param {number} [pixelSizeMicrons]
1314
+ * @param {number} [pixelsX]
1315
+ * @param {number} [pixelsY]
1316
+ * @param {number} [megapixels]
1317
+ * @param {boolean} [chilled]
1318
+ * @param {number} [adcBitDepth]
1319
+ * @param {boolean} [isColor]
1320
+ * @param {*} [options] Override http request option.
1321
+ * @throws {RequiredError}
1322
+ */
1323
+ v1CameraMatch(model, pixelSizeMicrons, pixelsX, pixelsY, megapixels, chilled, adcBitDepth, isColor, options) {
1324
+ return __awaiter(this, void 0, void 0, function* () {
1325
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CameraMatch(model, pixelSizeMicrons, pixelsX, pixelsY, megapixels, chilled, adcBitDepth, isColor, options);
1326
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1327
+ });
1328
+ },
1329
+ /**
1330
+ * create an astro user camera
1331
+ * @param {V1CreateCamera} v1CreateCamera request to create an camera
1332
+ * @param {*} [options] Override http request option.
1333
+ * @throws {RequiredError}
1334
+ */
1335
+ v1CreateAstroCamera(v1CreateCamera, options) {
1336
+ return __awaiter(this, void 0, void 0, function* () {
1337
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateAstroCamera(v1CreateCamera, options);
1338
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1339
+ });
1340
+ },
1341
+ /**
1342
+ * create an astro user mount
1343
+ * @param {V1CreateMount} v1CreateMount request to create a mount
1344
+ * @param {*} [options] Override http request option.
1345
+ * @throws {RequiredError}
1346
+ */
1347
+ v1CreateAstroMount(v1CreateMount, options) {
1348
+ return __awaiter(this, void 0, void 0, function* () {
1349
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateAstroMount(v1CreateMount, options);
1350
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1351
+ });
1352
+ },
1353
+ /**
1354
+ * create an optical tube for an astro user
1355
+ * @param {V1CreateOpticalTube} v1CreateOpticalTube request to create an optical tube
1356
+ * @param {*} [options] Override http request option.
1357
+ * @throws {RequiredError}
1358
+ */
1359
+ v1CreateAstroOpticalTube(v1CreateOpticalTube, options) {
1360
+ return __awaiter(this, void 0, void 0, function* () {
1361
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateAstroOpticalTube(v1CreateOpticalTube, options);
1362
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1363
+ });
1364
+ },
1365
+ /**
1366
+ * create an astro project
1367
+ * @param {V1CreateAstroProject} v1CreateAstroProject request to create an astro project
1368
+ * @param {*} [options] Override http request option.
1369
+ * @throws {RequiredError}
1370
+ */
1371
+ v1CreateAstroProject(v1CreateAstroProject, options) {
1372
+ return __awaiter(this, void 0, void 0, function* () {
1373
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateAstroProject(v1CreateAstroProject, options);
1374
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1375
+ });
1376
+ },
1377
+ /**
1378
+ * create a project image set
1379
+ * @param {V1CreateAstroProjectImageSet} v1CreateAstroProjectImageSet request to create a project image Set
1380
+ * @param {*} [options] Override http request option.
1381
+ * @throws {RequiredError}
1382
+ */
1383
+ v1CreateAstroProjectImageSet(v1CreateAstroProjectImageSet, options) {
1384
+ return __awaiter(this, void 0, void 0, function* () {
1385
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateAstroProjectImageSet(v1CreateAstroProjectImageSet, options);
1386
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1387
+ });
1388
+ },
1389
+ /**
1390
+ * create an calibration master
1391
+ * @param {V1CreateCalibrationMaster} v1CreateCalibrationMaster request to create the calibration master
1392
+ * @param {*} [options] Override http request option.
1393
+ * @throws {RequiredError}
1394
+ */
1395
+ v1CreateCalibrationMaster(v1CreateCalibrationMaster, options) {
1396
+ return __awaiter(this, void 0, void 0, function* () {
1397
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateCalibrationMaster(v1CreateCalibrationMaster, options);
1398
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1399
+ });
1400
+ },
1401
+ /**
1402
+ * create an image set
1403
+ * @param {V1CreateImageSet} v1CreateImageSet request to create the Image Set
1404
+ * @param {*} [options] Override http request option.
1405
+ * @throws {RequiredError}
1406
+ */
1407
+ v1CreateImageSet(v1CreateImageSet, options) {
1408
+ return __awaiter(this, void 0, void 0, function* () {
1409
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateImageSet(v1CreateImageSet, options);
1410
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1411
+ });
1412
+ },
1413
+ /**
1414
+ * create an image set image
1415
+ * @param {V1CreateImageSetImage} v1CreateImageSetImage request to create an image set image
1416
+ * @param {*} [options] Override http request option.
1417
+ * @throws {RequiredError}
1418
+ */
1419
+ v1CreateImageSetImage(v1CreateImageSetImage, options) {
1420
+ return __awaiter(this, void 0, void 0, function* () {
1421
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateImageSetImage(v1CreateImageSetImage, options);
1422
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1423
+ });
1424
+ },
1425
+ /**
1426
+ * create a node
1427
+ * @param {V1CreateNode} v1CreateNode request to create a node
1428
+ * @param {*} [options] Override http request option.
1429
+ * @throws {RequiredError}
1430
+ */
1431
+ v1CreateNode(v1CreateNode, options) {
1432
+ return __awaiter(this, void 0, void 0, function* () {
1433
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateNode(v1CreateNode, options);
1434
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1435
+ });
1436
+ },
1437
+ /**
1438
+ * get an astro camera
1439
+ * @param {string} id
1440
+ * @param {*} [options] Override http request option.
1441
+ * @throws {RequiredError}
1442
+ */
1443
+ v1GetAstroCamera(id, options) {
1444
+ return __awaiter(this, void 0, void 0, function* () {
1445
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroCamera(id, options);
1446
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1447
+ });
1448
+ },
1449
+ /**
1450
+ * get an astro mount
1451
+ * @param {string} id
1452
+ * @param {*} [options] Override http request option.
1453
+ * @throws {RequiredError}
1454
+ */
1455
+ v1GetAstroMount(id, options) {
1456
+ return __awaiter(this, void 0, void 0, function* () {
1457
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroMount(id, options);
1458
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1459
+ });
1460
+ },
1461
+ /**
1462
+ * get an optical tube
1463
+ * @param {string} id
1464
+ * @param {*} [options] Override http request option.
1465
+ * @throws {RequiredError}
1466
+ */
1467
+ v1GetAstroOpticalTube(id, options) {
1468
+ return __awaiter(this, void 0, void 0, function* () {
1469
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroOpticalTube(id, options);
1470
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1471
+ });
1472
+ },
1473
+ /**
1474
+ * get astro platform credit balance
1475
+ * @param {*} [options] Override http request option.
1476
+ * @throws {RequiredError}
1477
+ */
1478
+ v1GetAstroPlatformCreditBalance(options) {
1479
+ return __awaiter(this, void 0, void 0, function* () {
1480
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroPlatformCreditBalance(options);
1481
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1482
+ });
1483
+ },
1484
+ /**
1485
+ * get an astro project
1486
+ * @param {string} astroProjectId
1487
+ * @param {*} [options] Override http request option.
1488
+ * @throws {RequiredError}
1489
+ */
1490
+ v1GetAstroProject(astroProjectId, options) {
1491
+ return __awaiter(this, void 0, void 0, function* () {
1492
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroProject(astroProjectId, options);
1493
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1494
+ });
1495
+ },
1496
+ /**
1497
+ * get all assets for an astro project
1498
+ * @param {string} astroProjectId
1499
+ * @param {*} [options] Override http request option.
1500
+ * @throws {RequiredError}
1501
+ */
1502
+ v1GetAstroProjectAssets(astroProjectId, options) {
1503
+ return __awaiter(this, void 0, void 0, function* () {
1504
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroProjectAssets(astroProjectId, options);
1505
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1506
+ });
1507
+ },
1508
+ /**
1509
+ * get all astro projects
1510
+ * @param {*} [options] Override http request option.
1511
+ * @throws {RequiredError}
1512
+ */
1513
+ v1GetAstroProjects(options) {
1514
+ return __awaiter(this, void 0, void 0, function* () {
1515
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroProjects(options);
1516
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1517
+ });
1518
+ },
1519
+ /**
1520
+ * Get an astro targets. pass in an ID, an NGC ID or an IC ID
1521
+ * @param {string} [id]
1522
+ * @param {string} [ngcId]
1523
+ * @param {string} [icId]
1524
+ * @param {*} [options] Override http request option.
1525
+ * @throws {RequiredError}
1526
+ */
1527
+ v1GetAstroTarget(id, ngcId, icId, options) {
1528
+ return __awaiter(this, void 0, void 0, function* () {
1529
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroTarget(id, ngcId, icId, options);
1530
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1531
+ });
1532
+ },
1533
+ /**
1534
+ * Get all astro targets. This response is paginated. It will only return at most 100 at a time. To get the next page, pass in the `id` of the last target in the current page as the `lastId` query parameter. Omitting this field fetches the first page.
1535
+ * @param {string} [lastId]
1536
+ * @param {string} [catalogId]
1537
+ * @param {number} [ra]
1538
+ * @param {number} [dec]
1539
+ * @param {*} [options] Override http request option.
1540
+ * @throws {RequiredError}
1541
+ */
1542
+ v1GetAstroTargets(lastId, catalogId, ra, dec, options) {
1543
+ return __awaiter(this, void 0, void 0, function* () {
1544
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetAstroTargets(lastId, catalogId, ra, dec, options);
1545
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1546
+ });
1547
+ },
1548
+ /**
1549
+ * get all calibration masters for a node
1550
+ * @param {string} nodeId
1551
+ * @param {*} [options] Override http request option.
1552
+ * @throws {RequiredError}
1553
+ */
1554
+ v1GetCalibrationMasters(nodeId, options) {
1555
+ return __awaiter(this, void 0, void 0, function* () {
1556
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetCalibrationMasters(nodeId, options);
1557
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1558
+ });
1559
+ },
1560
+ /**
1561
+ * get all cameras
1562
+ * @param {*} [options] Override http request option.
1563
+ * @throws {RequiredError}
1564
+ */
1565
+ v1GetCameras(options) {
1566
+ return __awaiter(this, void 0, void 0, function* () {
1567
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetCameras(options);
1568
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1569
+ });
1570
+ },
1571
+ /**
1572
+ * get an image set
1573
+ * @param {string} id
1574
+ * @param {*} [options] Override http request option.
1575
+ * @throws {RequiredError}
1576
+ */
1577
+ v1GetImageSet(id, options) {
1578
+ return __awaiter(this, void 0, void 0, function* () {
1579
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSet(id, options);
1580
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1581
+ });
1582
+ },
1583
+ /**
1584
+ * get an image
1585
+ * @param {string} imageId
1586
+ * @param {*} [options] Override http request option.
1587
+ * @throws {RequiredError}
1588
+ */
1589
+ v1GetImageSetImage(imageId, options) {
1590
+ return __awaiter(this, void 0, void 0, function* () {
1591
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSetImage(imageId, options);
1592
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1593
+ });
1594
+ },
1595
+ /**
1596
+ * get image set images
1597
+ * @param {Array<string>} imageSets
1598
+ * @param {*} [options] Override http request option.
1599
+ * @throws {RequiredError}
1600
+ */
1601
+ v1GetImageSetImages(imageSets, options) {
1602
+ return __awaiter(this, void 0, void 0, function* () {
1603
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSetImages(imageSets, options);
1604
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1605
+ });
1606
+ },
1607
+ /**
1608
+ * get image sets for targets observed for your organization
1609
+ * @param {*} [options] Override http request option.
1610
+ * @throws {RequiredError}
1611
+ */
1612
+ v1GetImageSets(options) {
1613
+ return __awaiter(this, void 0, void 0, function* () {
1614
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSets(options);
1615
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1616
+ });
1617
+ },
1618
+ /**
1619
+ * get mounts
1620
+ * @param {*} [options] Override http request option.
1621
+ * @throws {RequiredError}
1622
+ */
1623
+ v1GetMounts(options) {
1624
+ return __awaiter(this, void 0, void 0, function* () {
1625
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetMounts(options);
1626
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1627
+ });
1628
+ },
1629
+ /**
1630
+ * get all nodes
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ */
1634
+ v1GetNodes(options) {
1635
+ return __awaiter(this, void 0, void 0, function* () {
1636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetNodes(options);
1637
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1638
+ });
1639
+ },
1640
+ /**
1641
+ * get platform credits
1642
+ * @param {*} [options] Override http request option.
1643
+ * @throws {RequiredError}
1644
+ */
1645
+ v1GetPlatformCredits(options) {
1646
+ return __awaiter(this, void 0, void 0, function* () {
1647
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetPlatformCredits(options);
1648
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1649
+ });
1650
+ },
1651
+ /**
1652
+ * search for an astro project with certain properties
1653
+ * @param {string} targetId
1654
+ * @param {string} cameraId
1655
+ * @param {string} otaId
1656
+ * @param {*} [options] Override http request option.
1657
+ * @throws {RequiredError}
1658
+ */
1659
+ v1MatchAstroProject(targetId, cameraId, otaId, options) {
1660
+ return __awaiter(this, void 0, void 0, function* () {
1661
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1MatchAstroProject(targetId, cameraId, otaId, options);
1662
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1663
+ });
1664
+ },
1665
+ /**
1666
+ * match mount
1667
+ * @param {string} [model]
1668
+ * @param {*} [options] Override http request option.
1669
+ * @throws {RequiredError}
1670
+ */
1671
+ v1MountMatch(model, options) {
1672
+ return __awaiter(this, void 0, void 0, function* () {
1673
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1MountMatch(model, options);
1674
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1675
+ });
1676
+ },
1677
+ /**
1678
+ * match optical tube
1679
+ * @param {string} [model]
1680
+ * @param {number} [focalLengthMm]
1681
+ * @param {number} [apertureMm]
1682
+ * @param {*} [options] Override http request option.
1683
+ * @throws {RequiredError}
1684
+ */
1685
+ v1OpticalTubeMatch(model, focalLengthMm, apertureMm, options) {
1686
+ return __awaiter(this, void 0, void 0, function* () {
1687
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1OpticalTubeMatch(model, focalLengthMm, apertureMm, options);
1688
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1689
+ });
1690
+ },
1691
+ /**
1692
+ * stack an astro project
1693
+ * @param {V1PutStackAstroProject} v1PutStackAstroProject request to stack an astro project
1694
+ * @param {*} [options] Override http request option.
1695
+ * @throws {RequiredError}
1696
+ */
1697
+ v1PutStackAstroProject(v1PutStackAstroProject, options) {
1698
+ return __awaiter(this, void 0, void 0, function* () {
1699
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1PutStackAstroProject(v1PutStackAstroProject, options);
1700
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1701
+ });
1702
+ },
1703
+ /**
1704
+ * update a node
1705
+ * @param {V1UpdateNode} v1UpdateNode request to update a node
1706
+ * @param {*} [options] Override http request option.
1707
+ * @throws {RequiredError}
1708
+ */
1709
+ v1UpdateNode(v1UpdateNode, options) {
1710
+ return __awaiter(this, void 0, void 0, function* () {
1711
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1UpdateNode(v1UpdateNode, options);
1712
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1713
+ });
1714
+ },
1715
+ };
1716
+ };
1717
+ /**
1718
+ * DefaultApi - factory interface
1719
+ * @export
1720
+ */
1721
+ export const DefaultApiFactory = function (configuration, basePath, axios) {
1722
+ const localVarFp = DefaultApiFp(configuration);
1723
+ return {
1724
+ /**
1725
+ * match camera
1726
+ * @param {DefaultApiV1CameraMatchRequest} requestParameters Request parameters.
1727
+ * @param {*} [options] Override http request option.
1728
+ * @throws {RequiredError}
1729
+ */
1730
+ v1CameraMatch(requestParameters = {}, options) {
1731
+ 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));
1732
+ },
1733
+ /**
1734
+ * create an astro user camera
1735
+ * @param {DefaultApiV1CreateAstroCameraRequest} requestParameters Request parameters.
1736
+ * @param {*} [options] Override http request option.
1737
+ * @throws {RequiredError}
1738
+ */
1739
+ v1CreateAstroCamera(requestParameters, options) {
1740
+ return localVarFp.v1CreateAstroCamera(requestParameters.v1CreateCamera, options).then((request) => request(axios, basePath));
1741
+ },
1742
+ /**
1743
+ * create an astro user mount
1744
+ * @param {DefaultApiV1CreateAstroMountRequest} requestParameters Request parameters.
1745
+ * @param {*} [options] Override http request option.
1746
+ * @throws {RequiredError}
1747
+ */
1748
+ v1CreateAstroMount(requestParameters, options) {
1749
+ return localVarFp.v1CreateAstroMount(requestParameters.v1CreateMount, options).then((request) => request(axios, basePath));
1750
+ },
1751
+ /**
1752
+ * create an optical tube for an astro user
1753
+ * @param {DefaultApiV1CreateAstroOpticalTubeRequest} requestParameters Request parameters.
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ v1CreateAstroOpticalTube(requestParameters, options) {
1758
+ return localVarFp.v1CreateAstroOpticalTube(requestParameters.v1CreateOpticalTube, options).then((request) => request(axios, basePath));
1759
+ },
1760
+ /**
1761
+ * create an astro project
1762
+ * @param {DefaultApiV1CreateAstroProjectRequest} requestParameters Request parameters.
1763
+ * @param {*} [options] Override http request option.
1764
+ * @throws {RequiredError}
1765
+ */
1766
+ v1CreateAstroProject(requestParameters, options) {
1767
+ return localVarFp.v1CreateAstroProject(requestParameters.v1CreateAstroProject, options).then((request) => request(axios, basePath));
1768
+ },
1769
+ /**
1770
+ * create a project image set
1771
+ * @param {DefaultApiV1CreateAstroProjectImageSetRequest} requestParameters Request parameters.
1772
+ * @param {*} [options] Override http request option.
1773
+ * @throws {RequiredError}
1774
+ */
1775
+ v1CreateAstroProjectImageSet(requestParameters, options) {
1776
+ return localVarFp.v1CreateAstroProjectImageSet(requestParameters.v1CreateAstroProjectImageSet, options).then((request) => request(axios, basePath));
1777
+ },
1778
+ /**
1779
+ * create an calibration master
1780
+ * @param {DefaultApiV1CreateCalibrationMasterRequest} requestParameters Request parameters.
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ v1CreateCalibrationMaster(requestParameters, options) {
1785
+ return localVarFp.v1CreateCalibrationMaster(requestParameters.v1CreateCalibrationMaster, options).then((request) => request(axios, basePath));
1786
+ },
1787
+ /**
1788
+ * create an image set
1789
+ * @param {DefaultApiV1CreateImageSetRequest} requestParameters Request parameters.
1790
+ * @param {*} [options] Override http request option.
1791
+ * @throws {RequiredError}
1792
+ */
1793
+ v1CreateImageSet(requestParameters, options) {
1794
+ return localVarFp.v1CreateImageSet(requestParameters.v1CreateImageSet, options).then((request) => request(axios, basePath));
1795
+ },
1796
+ /**
1797
+ * create an image set image
1798
+ * @param {DefaultApiV1CreateImageSetImageRequest} requestParameters Request parameters.
1799
+ * @param {*} [options] Override http request option.
1800
+ * @throws {RequiredError}
1801
+ */
1802
+ v1CreateImageSetImage(requestParameters, options) {
1803
+ return localVarFp.v1CreateImageSetImage(requestParameters.v1CreateImageSetImage, options).then((request) => request(axios, basePath));
1804
+ },
1805
+ /**
1806
+ * create a node
1807
+ * @param {DefaultApiV1CreateNodeRequest} requestParameters Request parameters.
1808
+ * @param {*} [options] Override http request option.
1809
+ * @throws {RequiredError}
1810
+ */
1811
+ v1CreateNode(requestParameters, options) {
1812
+ return localVarFp.v1CreateNode(requestParameters.v1CreateNode, options).then((request) => request(axios, basePath));
1813
+ },
1814
+ /**
1815
+ * get an astro camera
1816
+ * @param {DefaultApiV1GetAstroCameraRequest} requestParameters Request parameters.
1817
+ * @param {*} [options] Override http request option.
1818
+ * @throws {RequiredError}
1819
+ */
1820
+ v1GetAstroCamera(requestParameters, options) {
1821
+ return localVarFp.v1GetAstroCamera(requestParameters.id, options).then((request) => request(axios, basePath));
1822
+ },
1823
+ /**
1824
+ * get an astro mount
1825
+ * @param {DefaultApiV1GetAstroMountRequest} requestParameters Request parameters.
1826
+ * @param {*} [options] Override http request option.
1827
+ * @throws {RequiredError}
1828
+ */
1829
+ v1GetAstroMount(requestParameters, options) {
1830
+ return localVarFp.v1GetAstroMount(requestParameters.id, options).then((request) => request(axios, basePath));
1831
+ },
1832
+ /**
1833
+ * get an optical tube
1834
+ * @param {DefaultApiV1GetAstroOpticalTubeRequest} requestParameters Request parameters.
1835
+ * @param {*} [options] Override http request option.
1836
+ * @throws {RequiredError}
1837
+ */
1838
+ v1GetAstroOpticalTube(requestParameters, options) {
1839
+ return localVarFp.v1GetAstroOpticalTube(requestParameters.id, options).then((request) => request(axios, basePath));
1840
+ },
1841
+ /**
1842
+ * get astro platform credit balance
1843
+ * @param {*} [options] Override http request option.
1844
+ * @throws {RequiredError}
1845
+ */
1846
+ v1GetAstroPlatformCreditBalance(options) {
1847
+ return localVarFp.v1GetAstroPlatformCreditBalance(options).then((request) => request(axios, basePath));
1848
+ },
1849
+ /**
1850
+ * get an astro project
1851
+ * @param {DefaultApiV1GetAstroProjectRequest} requestParameters Request parameters.
1852
+ * @param {*} [options] Override http request option.
1853
+ * @throws {RequiredError}
1854
+ */
1855
+ v1GetAstroProject(requestParameters, options) {
1856
+ return localVarFp.v1GetAstroProject(requestParameters.astroProjectId, options).then((request) => request(axios, basePath));
1857
+ },
1858
+ /**
1859
+ * get all assets for an astro project
1860
+ * @param {DefaultApiV1GetAstroProjectAssetsRequest} requestParameters Request parameters.
1861
+ * @param {*} [options] Override http request option.
1862
+ * @throws {RequiredError}
1863
+ */
1864
+ v1GetAstroProjectAssets(requestParameters, options) {
1865
+ return localVarFp.v1GetAstroProjectAssets(requestParameters.astroProjectId, options).then((request) => request(axios, basePath));
1866
+ },
1867
+ /**
1868
+ * get all astro projects
1869
+ * @param {*} [options] Override http request option.
1870
+ * @throws {RequiredError}
1871
+ */
1872
+ v1GetAstroProjects(options) {
1873
+ return localVarFp.v1GetAstroProjects(options).then((request) => request(axios, basePath));
1874
+ },
1875
+ /**
1876
+ * Get an astro targets. pass in an ID, an NGC ID or an IC ID
1877
+ * @param {DefaultApiV1GetAstroTargetRequest} requestParameters Request parameters.
1878
+ * @param {*} [options] Override http request option.
1879
+ * @throws {RequiredError}
1880
+ */
1881
+ v1GetAstroTarget(requestParameters = {}, options) {
1882
+ return localVarFp.v1GetAstroTarget(requestParameters.id, requestParameters.ngcId, requestParameters.icId, options).then((request) => request(axios, basePath));
1883
+ },
1884
+ /**
1885
+ * Get all astro targets. This response is paginated. It will only return at most 100 at a time. To get the next page, pass in the `id` of the last target in the current page as the `lastId` query parameter. Omitting this field fetches the first page.
1886
+ * @param {DefaultApiV1GetAstroTargetsRequest} requestParameters Request parameters.
1887
+ * @param {*} [options] Override http request option.
1888
+ * @throws {RequiredError}
1889
+ */
1890
+ v1GetAstroTargets(requestParameters = {}, options) {
1891
+ return localVarFp.v1GetAstroTargets(requestParameters.lastId, requestParameters.catalogId, requestParameters.ra, requestParameters.dec, options).then((request) => request(axios, basePath));
1892
+ },
1893
+ /**
1894
+ * get all calibration masters for a node
1895
+ * @param {DefaultApiV1GetCalibrationMastersRequest} requestParameters Request parameters.
1896
+ * @param {*} [options] Override http request option.
1897
+ * @throws {RequiredError}
1898
+ */
1899
+ v1GetCalibrationMasters(requestParameters, options) {
1900
+ return localVarFp.v1GetCalibrationMasters(requestParameters.nodeId, options).then((request) => request(axios, basePath));
1901
+ },
1902
+ /**
1903
+ * get all cameras
1904
+ * @param {*} [options] Override http request option.
1905
+ * @throws {RequiredError}
1906
+ */
1907
+ v1GetCameras(options) {
1908
+ return localVarFp.v1GetCameras(options).then((request) => request(axios, basePath));
1909
+ },
1910
+ /**
1911
+ * get an image set
1912
+ * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
1913
+ * @param {*} [options] Override http request option.
1914
+ * @throws {RequiredError}
1915
+ */
1916
+ v1GetImageSet(requestParameters, options) {
1917
+ return localVarFp.v1GetImageSet(requestParameters.id, options).then((request) => request(axios, basePath));
1918
+ },
1919
+ /**
1920
+ * get an image
1921
+ * @param {DefaultApiV1GetImageSetImageRequest} requestParameters Request parameters.
1922
+ * @param {*} [options] Override http request option.
1923
+ * @throws {RequiredError}
1924
+ */
1925
+ v1GetImageSetImage(requestParameters, options) {
1926
+ return localVarFp.v1GetImageSetImage(requestParameters.imageId, options).then((request) => request(axios, basePath));
1927
+ },
1928
+ /**
1929
+ * get image set images
1930
+ * @param {DefaultApiV1GetImageSetImagesRequest} requestParameters Request parameters.
1931
+ * @param {*} [options] Override http request option.
1932
+ * @throws {RequiredError}
1933
+ */
1934
+ v1GetImageSetImages(requestParameters, options) {
1935
+ return localVarFp.v1GetImageSetImages(requestParameters.imageSets, options).then((request) => request(axios, basePath));
1936
+ },
1937
+ /**
1938
+ * get image sets for targets observed for your organization
1939
+ * @param {*} [options] Override http request option.
1940
+ * @throws {RequiredError}
1941
+ */
1942
+ v1GetImageSets(options) {
1943
+ return localVarFp.v1GetImageSets(options).then((request) => request(axios, basePath));
1944
+ },
1945
+ /**
1946
+ * get mounts
1947
+ * @param {*} [options] Override http request option.
1948
+ * @throws {RequiredError}
1949
+ */
1950
+ v1GetMounts(options) {
1951
+ return localVarFp.v1GetMounts(options).then((request) => request(axios, basePath));
1952
+ },
1953
+ /**
1954
+ * get all nodes
1955
+ * @param {*} [options] Override http request option.
1956
+ * @throws {RequiredError}
1957
+ */
1958
+ v1GetNodes(options) {
1959
+ return localVarFp.v1GetNodes(options).then((request) => request(axios, basePath));
1960
+ },
1961
+ /**
1962
+ * get platform credits
1963
+ * @param {*} [options] Override http request option.
1964
+ * @throws {RequiredError}
1965
+ */
1966
+ v1GetPlatformCredits(options) {
1967
+ return localVarFp.v1GetPlatformCredits(options).then((request) => request(axios, basePath));
1968
+ },
1969
+ /**
1970
+ * search for an astro project with certain properties
1971
+ * @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ */
1975
+ v1MatchAstroProject(requestParameters, options) {
1976
+ return localVarFp.v1MatchAstroProject(requestParameters.targetId, requestParameters.cameraId, requestParameters.otaId, options).then((request) => request(axios, basePath));
1977
+ },
1978
+ /**
1979
+ * match mount
1980
+ * @param {DefaultApiV1MountMatchRequest} requestParameters Request parameters.
1981
+ * @param {*} [options] Override http request option.
1982
+ * @throws {RequiredError}
1983
+ */
1984
+ v1MountMatch(requestParameters = {}, options) {
1985
+ return localVarFp.v1MountMatch(requestParameters.model, options).then((request) => request(axios, basePath));
1986
+ },
1987
+ /**
1988
+ * match optical tube
1989
+ * @param {DefaultApiV1OpticalTubeMatchRequest} requestParameters Request parameters.
1990
+ * @param {*} [options] Override http request option.
1991
+ * @throws {RequiredError}
1992
+ */
1993
+ v1OpticalTubeMatch(requestParameters = {}, options) {
1994
+ return localVarFp.v1OpticalTubeMatch(requestParameters.model, requestParameters.focalLengthMm, requestParameters.apertureMm, options).then((request) => request(axios, basePath));
1995
+ },
1996
+ /**
1997
+ * stack an astro project
1998
+ * @param {DefaultApiV1PutStackAstroProjectRequest} requestParameters Request parameters.
1999
+ * @param {*} [options] Override http request option.
2000
+ * @throws {RequiredError}
2001
+ */
2002
+ v1PutStackAstroProject(requestParameters, options) {
2003
+ return localVarFp.v1PutStackAstroProject(requestParameters.v1PutStackAstroProject, options).then((request) => request(axios, basePath));
2004
+ },
2005
+ /**
2006
+ * update a node
2007
+ * @param {DefaultApiV1UpdateNodeRequest} requestParameters Request parameters.
2008
+ * @param {*} [options] Override http request option.
2009
+ * @throws {RequiredError}
2010
+ */
2011
+ v1UpdateNode(requestParameters, options) {
2012
+ return localVarFp.v1UpdateNode(requestParameters.v1UpdateNode, options).then((request) => request(axios, basePath));
2013
+ },
2014
+ };
2015
+ };
2016
+ /**
2017
+ * DefaultApi - object-oriented interface
2018
+ * @export
2019
+ * @class DefaultApi
2020
+ * @extends {BaseAPI}
2021
+ */
2022
+ export class DefaultApi extends BaseAPI {
2023
+ /**
2024
+ * match camera
2025
+ * @param {DefaultApiV1CameraMatchRequest} requestParameters Request parameters.
2026
+ * @param {*} [options] Override http request option.
2027
+ * @throws {RequiredError}
2028
+ * @memberof DefaultApi
2029
+ */
2030
+ v1CameraMatch(requestParameters = {}, options) {
2031
+ 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));
2032
+ }
2033
+ /**
2034
+ * create an astro user camera
2035
+ * @param {DefaultApiV1CreateAstroCameraRequest} requestParameters Request parameters.
2036
+ * @param {*} [options] Override http request option.
2037
+ * @throws {RequiredError}
2038
+ * @memberof DefaultApi
2039
+ */
2040
+ v1CreateAstroCamera(requestParameters, options) {
2041
+ return DefaultApiFp(this.configuration).v1CreateAstroCamera(requestParameters.v1CreateCamera, options).then((request) => request(this.axios, this.basePath));
2042
+ }
2043
+ /**
2044
+ * create an astro user mount
2045
+ * @param {DefaultApiV1CreateAstroMountRequest} requestParameters Request parameters.
2046
+ * @param {*} [options] Override http request option.
2047
+ * @throws {RequiredError}
2048
+ * @memberof DefaultApi
2049
+ */
2050
+ v1CreateAstroMount(requestParameters, options) {
2051
+ return DefaultApiFp(this.configuration).v1CreateAstroMount(requestParameters.v1CreateMount, options).then((request) => request(this.axios, this.basePath));
2052
+ }
2053
+ /**
2054
+ * create an optical tube for an astro user
2055
+ * @param {DefaultApiV1CreateAstroOpticalTubeRequest} requestParameters Request parameters.
2056
+ * @param {*} [options] Override http request option.
2057
+ * @throws {RequiredError}
2058
+ * @memberof DefaultApi
2059
+ */
2060
+ v1CreateAstroOpticalTube(requestParameters, options) {
2061
+ return DefaultApiFp(this.configuration).v1CreateAstroOpticalTube(requestParameters.v1CreateOpticalTube, options).then((request) => request(this.axios, this.basePath));
2062
+ }
2063
+ /**
2064
+ * create an astro project
2065
+ * @param {DefaultApiV1CreateAstroProjectRequest} requestParameters Request parameters.
2066
+ * @param {*} [options] Override http request option.
2067
+ * @throws {RequiredError}
2068
+ * @memberof DefaultApi
2069
+ */
2070
+ v1CreateAstroProject(requestParameters, options) {
2071
+ return DefaultApiFp(this.configuration).v1CreateAstroProject(requestParameters.v1CreateAstroProject, options).then((request) => request(this.axios, this.basePath));
2072
+ }
2073
+ /**
2074
+ * create a project image set
2075
+ * @param {DefaultApiV1CreateAstroProjectImageSetRequest} requestParameters Request parameters.
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ * @memberof DefaultApi
2079
+ */
2080
+ v1CreateAstroProjectImageSet(requestParameters, options) {
2081
+ return DefaultApiFp(this.configuration).v1CreateAstroProjectImageSet(requestParameters.v1CreateAstroProjectImageSet, options).then((request) => request(this.axios, this.basePath));
2082
+ }
2083
+ /**
2084
+ * create an calibration master
2085
+ * @param {DefaultApiV1CreateCalibrationMasterRequest} requestParameters Request parameters.
2086
+ * @param {*} [options] Override http request option.
2087
+ * @throws {RequiredError}
2088
+ * @memberof DefaultApi
2089
+ */
2090
+ v1CreateCalibrationMaster(requestParameters, options) {
2091
+ return DefaultApiFp(this.configuration).v1CreateCalibrationMaster(requestParameters.v1CreateCalibrationMaster, options).then((request) => request(this.axios, this.basePath));
2092
+ }
2093
+ /**
2094
+ * create an image set
2095
+ * @param {DefaultApiV1CreateImageSetRequest} requestParameters Request parameters.
2096
+ * @param {*} [options] Override http request option.
2097
+ * @throws {RequiredError}
2098
+ * @memberof DefaultApi
2099
+ */
2100
+ v1CreateImageSet(requestParameters, options) {
2101
+ return DefaultApiFp(this.configuration).v1CreateImageSet(requestParameters.v1CreateImageSet, options).then((request) => request(this.axios, this.basePath));
2102
+ }
2103
+ /**
2104
+ * create an image set image
2105
+ * @param {DefaultApiV1CreateImageSetImageRequest} requestParameters Request parameters.
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ * @memberof DefaultApi
2109
+ */
2110
+ v1CreateImageSetImage(requestParameters, options) {
2111
+ return DefaultApiFp(this.configuration).v1CreateImageSetImage(requestParameters.v1CreateImageSetImage, options).then((request) => request(this.axios, this.basePath));
2112
+ }
2113
+ /**
2114
+ * create a node
2115
+ * @param {DefaultApiV1CreateNodeRequest} requestParameters Request parameters.
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ * @memberof DefaultApi
2119
+ */
2120
+ v1CreateNode(requestParameters, options) {
2121
+ return DefaultApiFp(this.configuration).v1CreateNode(requestParameters.v1CreateNode, options).then((request) => request(this.axios, this.basePath));
2122
+ }
2123
+ /**
2124
+ * get an astro camera
2125
+ * @param {DefaultApiV1GetAstroCameraRequest} requestParameters Request parameters.
2126
+ * @param {*} [options] Override http request option.
2127
+ * @throws {RequiredError}
2128
+ * @memberof DefaultApi
2129
+ */
2130
+ v1GetAstroCamera(requestParameters, options) {
2131
+ return DefaultApiFp(this.configuration).v1GetAstroCamera(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2132
+ }
2133
+ /**
2134
+ * get an astro mount
2135
+ * @param {DefaultApiV1GetAstroMountRequest} requestParameters Request parameters.
2136
+ * @param {*} [options] Override http request option.
2137
+ * @throws {RequiredError}
2138
+ * @memberof DefaultApi
2139
+ */
2140
+ v1GetAstroMount(requestParameters, options) {
2141
+ return DefaultApiFp(this.configuration).v1GetAstroMount(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2142
+ }
2143
+ /**
2144
+ * get an optical tube
2145
+ * @param {DefaultApiV1GetAstroOpticalTubeRequest} requestParameters Request parameters.
2146
+ * @param {*} [options] Override http request option.
2147
+ * @throws {RequiredError}
2148
+ * @memberof DefaultApi
2149
+ */
2150
+ v1GetAstroOpticalTube(requestParameters, options) {
2151
+ return DefaultApiFp(this.configuration).v1GetAstroOpticalTube(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2152
+ }
2153
+ /**
2154
+ * get astro platform credit balance
2155
+ * @param {*} [options] Override http request option.
2156
+ * @throws {RequiredError}
2157
+ * @memberof DefaultApi
2158
+ */
2159
+ v1GetAstroPlatformCreditBalance(options) {
2160
+ return DefaultApiFp(this.configuration).v1GetAstroPlatformCreditBalance(options).then((request) => request(this.axios, this.basePath));
2161
+ }
2162
+ /**
2163
+ * get an astro project
2164
+ * @param {DefaultApiV1GetAstroProjectRequest} requestParameters Request parameters.
2165
+ * @param {*} [options] Override http request option.
2166
+ * @throws {RequiredError}
2167
+ * @memberof DefaultApi
2168
+ */
2169
+ v1GetAstroProject(requestParameters, options) {
2170
+ return DefaultApiFp(this.configuration).v1GetAstroProject(requestParameters.astroProjectId, options).then((request) => request(this.axios, this.basePath));
2171
+ }
2172
+ /**
2173
+ * get all assets for an astro project
2174
+ * @param {DefaultApiV1GetAstroProjectAssetsRequest} requestParameters Request parameters.
2175
+ * @param {*} [options] Override http request option.
2176
+ * @throws {RequiredError}
2177
+ * @memberof DefaultApi
2178
+ */
2179
+ v1GetAstroProjectAssets(requestParameters, options) {
2180
+ return DefaultApiFp(this.configuration).v1GetAstroProjectAssets(requestParameters.astroProjectId, options).then((request) => request(this.axios, this.basePath));
2181
+ }
2182
+ /**
2183
+ * get all astro projects
2184
+ * @param {*} [options] Override http request option.
2185
+ * @throws {RequiredError}
2186
+ * @memberof DefaultApi
2187
+ */
2188
+ v1GetAstroProjects(options) {
2189
+ return DefaultApiFp(this.configuration).v1GetAstroProjects(options).then((request) => request(this.axios, this.basePath));
2190
+ }
2191
+ /**
2192
+ * Get an astro targets. pass in an ID, an NGC ID or an IC ID
2193
+ * @param {DefaultApiV1GetAstroTargetRequest} requestParameters Request parameters.
2194
+ * @param {*} [options] Override http request option.
2195
+ * @throws {RequiredError}
2196
+ * @memberof DefaultApi
2197
+ */
2198
+ v1GetAstroTarget(requestParameters = {}, options) {
2199
+ return DefaultApiFp(this.configuration).v1GetAstroTarget(requestParameters.id, requestParameters.ngcId, requestParameters.icId, options).then((request) => request(this.axios, this.basePath));
2200
+ }
2201
+ /**
2202
+ * Get all astro targets. This response is paginated. It will only return at most 100 at a time. To get the next page, pass in the `id` of the last target in the current page as the `lastId` query parameter. Omitting this field fetches the first page.
2203
+ * @param {DefaultApiV1GetAstroTargetsRequest} requestParameters Request parameters.
2204
+ * @param {*} [options] Override http request option.
2205
+ * @throws {RequiredError}
2206
+ * @memberof DefaultApi
2207
+ */
2208
+ v1GetAstroTargets(requestParameters = {}, options) {
2209
+ return DefaultApiFp(this.configuration).v1GetAstroTargets(requestParameters.lastId, requestParameters.catalogId, requestParameters.ra, requestParameters.dec, options).then((request) => request(this.axios, this.basePath));
2210
+ }
2211
+ /**
2212
+ * get all calibration masters for a node
2213
+ * @param {DefaultApiV1GetCalibrationMastersRequest} requestParameters Request parameters.
2214
+ * @param {*} [options] Override http request option.
2215
+ * @throws {RequiredError}
2216
+ * @memberof DefaultApi
2217
+ */
2218
+ v1GetCalibrationMasters(requestParameters, options) {
2219
+ return DefaultApiFp(this.configuration).v1GetCalibrationMasters(requestParameters.nodeId, options).then((request) => request(this.axios, this.basePath));
2220
+ }
2221
+ /**
2222
+ * get all cameras
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ * @memberof DefaultApi
2226
+ */
2227
+ v1GetCameras(options) {
2228
+ return DefaultApiFp(this.configuration).v1GetCameras(options).then((request) => request(this.axios, this.basePath));
2229
+ }
2230
+ /**
2231
+ * get an image set
2232
+ * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
2233
+ * @param {*} [options] Override http request option.
2234
+ * @throws {RequiredError}
2235
+ * @memberof DefaultApi
2236
+ */
2237
+ v1GetImageSet(requestParameters, options) {
2238
+ return DefaultApiFp(this.configuration).v1GetImageSet(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
2239
+ }
2240
+ /**
2241
+ * get an image
2242
+ * @param {DefaultApiV1GetImageSetImageRequest} requestParameters Request parameters.
2243
+ * @param {*} [options] Override http request option.
2244
+ * @throws {RequiredError}
2245
+ * @memberof DefaultApi
2246
+ */
2247
+ v1GetImageSetImage(requestParameters, options) {
2248
+ return DefaultApiFp(this.configuration).v1GetImageSetImage(requestParameters.imageId, options).then((request) => request(this.axios, this.basePath));
2249
+ }
2250
+ /**
2251
+ * get image set images
2252
+ * @param {DefaultApiV1GetImageSetImagesRequest} requestParameters Request parameters.
2253
+ * @param {*} [options] Override http request option.
2254
+ * @throws {RequiredError}
2255
+ * @memberof DefaultApi
2256
+ */
2257
+ v1GetImageSetImages(requestParameters, options) {
2258
+ return DefaultApiFp(this.configuration).v1GetImageSetImages(requestParameters.imageSets, options).then((request) => request(this.axios, this.basePath));
2259
+ }
2260
+ /**
2261
+ * get image sets for targets observed for your organization
2262
+ * @param {*} [options] Override http request option.
2263
+ * @throws {RequiredError}
2264
+ * @memberof DefaultApi
2265
+ */
2266
+ v1GetImageSets(options) {
2267
+ return DefaultApiFp(this.configuration).v1GetImageSets(options).then((request) => request(this.axios, this.basePath));
2268
+ }
2269
+ /**
2270
+ * get mounts
2271
+ * @param {*} [options] Override http request option.
2272
+ * @throws {RequiredError}
2273
+ * @memberof DefaultApi
2274
+ */
2275
+ v1GetMounts(options) {
2276
+ return DefaultApiFp(this.configuration).v1GetMounts(options).then((request) => request(this.axios, this.basePath));
2277
+ }
2278
+ /**
2279
+ * get all nodes
2280
+ * @param {*} [options] Override http request option.
2281
+ * @throws {RequiredError}
2282
+ * @memberof DefaultApi
2283
+ */
2284
+ v1GetNodes(options) {
2285
+ return DefaultApiFp(this.configuration).v1GetNodes(options).then((request) => request(this.axios, this.basePath));
2286
+ }
2287
+ /**
2288
+ * get platform credits
2289
+ * @param {*} [options] Override http request option.
2290
+ * @throws {RequiredError}
2291
+ * @memberof DefaultApi
2292
+ */
2293
+ v1GetPlatformCredits(options) {
2294
+ return DefaultApiFp(this.configuration).v1GetPlatformCredits(options).then((request) => request(this.axios, this.basePath));
2295
+ }
2296
+ /**
2297
+ * search for an astro project with certain properties
2298
+ * @param {DefaultApiV1MatchAstroProjectRequest} requestParameters Request parameters.
2299
+ * @param {*} [options] Override http request option.
2300
+ * @throws {RequiredError}
2301
+ * @memberof DefaultApi
2302
+ */
2303
+ v1MatchAstroProject(requestParameters, options) {
2304
+ return DefaultApiFp(this.configuration).v1MatchAstroProject(requestParameters.targetId, requestParameters.cameraId, requestParameters.otaId, options).then((request) => request(this.axios, this.basePath));
2305
+ }
2306
+ /**
2307
+ * match mount
2308
+ * @param {DefaultApiV1MountMatchRequest} requestParameters Request parameters.
2309
+ * @param {*} [options] Override http request option.
2310
+ * @throws {RequiredError}
2311
+ * @memberof DefaultApi
2312
+ */
2313
+ v1MountMatch(requestParameters = {}, options) {
2314
+ return DefaultApiFp(this.configuration).v1MountMatch(requestParameters.model, options).then((request) => request(this.axios, this.basePath));
2315
+ }
2316
+ /**
2317
+ * match optical tube
2318
+ * @param {DefaultApiV1OpticalTubeMatchRequest} requestParameters Request parameters.
2319
+ * @param {*} [options] Override http request option.
2320
+ * @throws {RequiredError}
2321
+ * @memberof DefaultApi
2322
+ */
2323
+ v1OpticalTubeMatch(requestParameters = {}, options) {
2324
+ return DefaultApiFp(this.configuration).v1OpticalTubeMatch(requestParameters.model, requestParameters.focalLengthMm, requestParameters.apertureMm, options).then((request) => request(this.axios, this.basePath));
2325
+ }
2326
+ /**
2327
+ * stack an astro project
2328
+ * @param {DefaultApiV1PutStackAstroProjectRequest} requestParameters Request parameters.
2329
+ * @param {*} [options] Override http request option.
2330
+ * @throws {RequiredError}
2331
+ * @memberof DefaultApi
2332
+ */
2333
+ v1PutStackAstroProject(requestParameters, options) {
2334
+ return DefaultApiFp(this.configuration).v1PutStackAstroProject(requestParameters.v1PutStackAstroProject, options).then((request) => request(this.axios, this.basePath));
2335
+ }
2336
+ /**
2337
+ * update a node
2338
+ * @param {DefaultApiV1UpdateNodeRequest} requestParameters Request parameters.
2339
+ * @param {*} [options] Override http request option.
2340
+ * @throws {RequiredError}
2341
+ * @memberof DefaultApi
2342
+ */
2343
+ v1UpdateNode(requestParameters, options) {
2344
+ return DefaultApiFp(this.configuration).v1UpdateNode(requestParameters.v1UpdateNode, options).then((request) => request(this.axios, this.basePath));
2345
+ }
2346
+ }