@ourskyai/sda-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,1208 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * OurSky SDA
5
+ * Once your organization has been signed up for the platform you will be able to log in and use the APIs under the \"Default\" section. Login by navigating to `https://api.<dev|prod>.oursky.ai/v1/auth/login` and use your email that ends in your organization domain. After entering your email you will receive a one time use email with a code, use that code to complete the login flow. After completing the login flow the browser will re-direct you to a page that displays a json object with your API token as the value of the `jwt` key. This is the only time your token will be displayed to you so please save it. To use this documentation site please select the \"Authorize\" button at the top right of the page and enter your token and select the correct environment (dev or prod) in the \"Servers\" dropdown. If you are using making api calls directly please ensure you include the header `Authorization: Bearer <your token>`. The basic api flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](#default/v1GetSatelliteTargets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](#default/v1CreateOrganizationTarget) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#default/v1CreateWebhookConfiguration) endpoint to receive TDMs automatically (preferred) or use the [tdms](#default/v1GetTdms) endpoint to poll for TDMs.
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
+ *
31
+ * @export
32
+ * @enum {string}
33
+ */
34
+ export const FilterType = {
35
+ NONE: 'NONE',
36
+ RED: 'RED',
37
+ BLUE: 'BLUE',
38
+ GREEN: 'GREEN',
39
+ UV: 'UV',
40
+ IR: 'IR',
41
+ LUMINANCE: 'LUMINANCE',
42
+ ENHANCED_LUMINANCE: 'ENHANCED_LUMINANCE',
43
+ H_ALPHA: 'H_ALPHA',
44
+ H_BETA: 'H_BETA',
45
+ S_II: 'S_II',
46
+ O_III: 'O_III',
47
+ DUAL_BAND: 'DUAL_BAND',
48
+ PHOTO_JOHNSON_U: 'PHOTO_JOHNSON_U',
49
+ PHOTO_JOHNSON_B: 'PHOTO_JOHNSON_B',
50
+ PHOTO_JOHNSON_V: 'PHOTO_JOHNSON_V',
51
+ PHOTO_COUSINS_R: 'PHOTO_COUSINS_R',
52
+ PHOTO_COUSINS_I: 'PHOTO_COUSINS_I'
53
+ };
54
+ /**
55
+ * orbit type
56
+ * @export
57
+ * @enum {string}
58
+ */
59
+ export const OrbitType = {
60
+ GEOSTATIONARY: 'GEOSTATIONARY',
61
+ GEOSYNCHRONOUS: 'GEOSYNCHRONOUS',
62
+ MEO: 'MEO',
63
+ LEO: 'LEO',
64
+ GTO: 'GTO',
65
+ SSO: 'SSO',
66
+ TUNDRA: 'TUNDRA',
67
+ MOLNIYA: 'MOLNIYA'
68
+ };
69
+ /**
70
+ * target tracking type
71
+ * @export
72
+ * @enum {string}
73
+ */
74
+ export const TrackingType = {
75
+ SIDEREAL: 'SIDEREAL',
76
+ TARGET_RATE: 'TARGET_RATE'
77
+ };
78
+ /**
79
+ * webhook event types
80
+ * @export
81
+ * @enum {string}
82
+ */
83
+ export const WebhookEvent = {
84
+ TDM_CREATED: 'V1_TDM_CREATED',
85
+ OBSERVATION_SEQUENCE_RESULT_CREATED: 'V1_OBSERVATION_SEQUENCE_RESULT_CREATED',
86
+ OBSERVATION_CREATED: 'V1_OBSERVATION_CREATED',
87
+ IMAGE_CREATED: 'V1_IMAGE_CREATED'
88
+ };
89
+ /**
90
+ * DefaultApi - axios parameter creator
91
+ * @export
92
+ */
93
+ export const DefaultApiAxiosParamCreator = function (configuration) {
94
+ return {
95
+ /**
96
+ * create an image set
97
+ * @param {V1CreateImageSet} v1CreateImageSet request to create the Image Set
98
+ * @param {*} [options] Override http request option.
99
+ * @throws {RequiredError}
100
+ */
101
+ v1CreateImageSet: (v1CreateImageSet, options = {}) => __awaiter(this, void 0, void 0, function* () {
102
+ // verify required parameter 'v1CreateImageSet' is not null or undefined
103
+ assertParamExists('v1CreateImageSet', 'v1CreateImageSet', v1CreateImageSet);
104
+ const localVarPath = `/v1/image-set`;
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ }
111
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
112
+ const localVarHeaderParameter = {};
113
+ const localVarQueryParameter = {};
114
+ // authentication Roles required
115
+ // authentication BearerToken required
116
+ // http bearer authentication required
117
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
118
+ localVarHeaderParameter['Content-Type'] = 'application/json';
119
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
120
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
122
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateImageSet, localVarRequestOptions, configuration);
123
+ return {
124
+ url: toPathString(localVarUrlObj),
125
+ options: localVarRequestOptions,
126
+ };
127
+ }),
128
+ /**
129
+ * create an image set image
130
+ * @param {V1CreateImageSetImage} v1CreateImageSetImage request to create an image set image
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ v1CreateImageSetImage: (v1CreateImageSetImage, options = {}) => __awaiter(this, void 0, void 0, function* () {
135
+ // verify required parameter 'v1CreateImageSetImage' is not null or undefined
136
+ assertParamExists('v1CreateImageSetImage', 'v1CreateImageSetImage', v1CreateImageSetImage);
137
+ const localVarPath = `/v1/image-set-image`;
138
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
139
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
140
+ let baseOptions;
141
+ if (configuration) {
142
+ baseOptions = configuration.baseOptions;
143
+ }
144
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
145
+ const localVarHeaderParameter = {};
146
+ const localVarQueryParameter = {};
147
+ // authentication Roles required
148
+ // authentication BearerToken required
149
+ // http bearer authentication required
150
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
151
+ localVarHeaderParameter['Content-Type'] = 'application/json';
152
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
153
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
154
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
155
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CreateImageSetImage, localVarRequestOptions, configuration);
156
+ return {
157
+ url: toPathString(localVarUrlObj),
158
+ options: localVarRequestOptions,
159
+ };
160
+ }),
161
+ /**
162
+ * Request observations for a satellite target. By creating an organization target you are requesting for a specific target to be observed. The target will be observed best effort by the OurSky network. At the current time OurSky only supports observing satellite targets that are already registered with the platform. To see all possible satellite targets see the [satellite targets](#default/v1GetSatelliteTargets) endpoint. Organization targets also control which events are sent to your organization via webhooks. Webhooks are only sent for targets that you have an active \"organization target\" for.
163
+ * @param {V1OrganizationTarget} v1OrganizationTarget create organization target
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ v1CreateOrganizationTarget: (v1OrganizationTarget, options = {}) => __awaiter(this, void 0, void 0, function* () {
168
+ // verify required parameter 'v1OrganizationTarget' is not null or undefined
169
+ assertParamExists('v1CreateOrganizationTarget', 'v1OrganizationTarget', v1OrganizationTarget);
170
+ const localVarPath = `/v1/organization-target`;
171
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
172
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
173
+ let baseOptions;
174
+ if (configuration) {
175
+ baseOptions = configuration.baseOptions;
176
+ }
177
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
178
+ const localVarHeaderParameter = {};
179
+ const localVarQueryParameter = {};
180
+ // authentication Roles required
181
+ // authentication BearerToken required
182
+ // http bearer authentication required
183
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
184
+ localVarHeaderParameter['Content-Type'] = 'application/json';
185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ localVarRequestOptions.data = serializeDataIfNeeded(v1OrganizationTarget, localVarRequestOptions, configuration);
189
+ return {
190
+ url: toPathString(localVarUrlObj),
191
+ options: localVarRequestOptions,
192
+ };
193
+ }),
194
+ /**
195
+ * Create an organization webhook. Organization webhooks are used to send specific events to a remote http endpoint. A webhook can be configured for a list of event type. Please see the webhook event types for the currently supported types. The schemas are considered stable and will match their corresponding GET response schema. \"V1_TDM_CREATED\" -> GET /v1/tdm?id={id} The payload sent to the webhook endpoint will include a header field \"X-OurSky-Signature\" which is an HMAC-SHA256 using the secret as the key and the payload as the message. The payload is the byte stream of the entire JSON payload The signature is base64 encoded.
196
+ * @param {V1UpdateWebhookConfiguration} v1UpdateWebhookConfiguration request to create an organization webhook
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ v1CreateWebhookConfiguration: (v1UpdateWebhookConfiguration, options = {}) => __awaiter(this, void 0, void 0, function* () {
201
+ // verify required parameter 'v1UpdateWebhookConfiguration' is not null or undefined
202
+ assertParamExists('v1CreateWebhookConfiguration', 'v1UpdateWebhookConfiguration', v1UpdateWebhookConfiguration);
203
+ const localVarPath = `/v1/communications/webhook`;
204
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
205
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
206
+ let baseOptions;
207
+ if (configuration) {
208
+ baseOptions = configuration.baseOptions;
209
+ }
210
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
211
+ const localVarHeaderParameter = {};
212
+ const localVarQueryParameter = {};
213
+ // authentication Roles required
214
+ // authentication BearerToken required
215
+ // http bearer authentication required
216
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
217
+ localVarHeaderParameter['Content-Type'] = 'application/json';
218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
220
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
221
+ localVarRequestOptions.data = serializeDataIfNeeded(v1UpdateWebhookConfiguration, localVarRequestOptions, configuration);
222
+ return {
223
+ url: toPathString(localVarUrlObj),
224
+ options: localVarRequestOptions,
225
+ };
226
+ }),
227
+ /**
228
+ * delete an organization target
229
+ * @param {string} satelliteTargetId
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ v1DeleteOrganizationTarget: (satelliteTargetId, options = {}) => __awaiter(this, void 0, void 0, function* () {
234
+ // verify required parameter 'satelliteTargetId' is not null or undefined
235
+ assertParamExists('v1DeleteOrganizationTarget', 'satelliteTargetId', satelliteTargetId);
236
+ const localVarPath = `/v1/organization-target`;
237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
239
+ let baseOptions;
240
+ if (configuration) {
241
+ baseOptions = configuration.baseOptions;
242
+ }
243
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
244
+ const localVarHeaderParameter = {};
245
+ const localVarQueryParameter = {};
246
+ // authentication Roles required
247
+ // authentication BearerToken required
248
+ // http bearer authentication required
249
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
250
+ if (satelliteTargetId !== undefined) {
251
+ localVarQueryParameter['satelliteTargetId'] = satelliteTargetId;
252
+ }
253
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
254
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
256
+ return {
257
+ url: toPathString(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ };
260
+ }),
261
+ /**
262
+ * Delete an existing webhook configuration
263
+ * @param {string} id webhook id
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ v1DeleteWebhookConfiguration: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
268
+ // verify required parameter 'id' is not null or undefined
269
+ assertParamExists('v1DeleteWebhookConfiguration', 'id', id);
270
+ const localVarPath = `/v1/communications/webhook`;
271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
272
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
273
+ let baseOptions;
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ }
277
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
278
+ const localVarHeaderParameter = {};
279
+ const localVarQueryParameter = {};
280
+ // authentication Roles required
281
+ // authentication BearerToken required
282
+ // http bearer authentication required
283
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
284
+ if (id !== undefined) {
285
+ localVarQueryParameter['id'] = id;
286
+ }
287
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
288
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
+ return {
291
+ url: toPathString(localVarUrlObj),
292
+ options: localVarRequestOptions,
293
+ };
294
+ }),
295
+ /**
296
+ * get an image set
297
+ * @param {string} id
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ v1GetImageSet: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
302
+ // verify required parameter 'id' is not null or undefined
303
+ assertParamExists('v1GetImageSet', 'id', id);
304
+ const localVarPath = `/v1/image-set`;
305
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
307
+ let baseOptions;
308
+ if (configuration) {
309
+ baseOptions = configuration.baseOptions;
310
+ }
311
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
312
+ const localVarHeaderParameter = {};
313
+ const localVarQueryParameter = {};
314
+ // authentication Roles required
315
+ // authentication BearerToken required
316
+ // http bearer authentication required
317
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
318
+ if (id !== undefined) {
319
+ localVarQueryParameter['id'] = id;
320
+ }
321
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
322
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
323
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
324
+ return {
325
+ url: toPathString(localVarUrlObj),
326
+ options: localVarRequestOptions,
327
+ };
328
+ }),
329
+ /**
330
+ * get an image
331
+ * @param {string} imageId
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ v1GetImageSetImage: (imageId, options = {}) => __awaiter(this, void 0, void 0, function* () {
336
+ // verify required parameter 'imageId' is not null or undefined
337
+ assertParamExists('v1GetImageSetImage', 'imageId', imageId);
338
+ const localVarPath = `/v1/image-set-image`;
339
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
340
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
341
+ let baseOptions;
342
+ if (configuration) {
343
+ baseOptions = configuration.baseOptions;
344
+ }
345
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
346
+ const localVarHeaderParameter = {};
347
+ const localVarQueryParameter = {};
348
+ // authentication Roles required
349
+ // authentication BearerToken required
350
+ // http bearer authentication required
351
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
352
+ if (imageId !== undefined) {
353
+ localVarQueryParameter['imageId'] = imageId;
354
+ }
355
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
356
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
357
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
358
+ return {
359
+ url: toPathString(localVarUrlObj),
360
+ options: localVarRequestOptions,
361
+ };
362
+ }),
363
+ /**
364
+ * get image set images
365
+ * @param {Array<string>} imageSets
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ v1GetImageSetImages: (imageSets, options = {}) => __awaiter(this, void 0, void 0, function* () {
370
+ // verify required parameter 'imageSets' is not null or undefined
371
+ assertParamExists('v1GetImageSetImages', 'imageSets', imageSets);
372
+ const localVarPath = `/v1/image-set-images`;
373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
374
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
375
+ let baseOptions;
376
+ if (configuration) {
377
+ baseOptions = configuration.baseOptions;
378
+ }
379
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
380
+ const localVarHeaderParameter = {};
381
+ const localVarQueryParameter = {};
382
+ // authentication Roles required
383
+ // authentication BearerToken required
384
+ // http bearer authentication required
385
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
386
+ if (imageSets) {
387
+ localVarQueryParameter['imageSets'] = imageSets.join(COLLECTION_FORMATS.csv);
388
+ }
389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
391
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
392
+ return {
393
+ url: toPathString(localVarUrlObj),
394
+ options: localVarRequestOptions,
395
+ };
396
+ }),
397
+ /**
398
+ * get image sets for targets observed for your organization
399
+ * @param {*} [options] Override http request option.
400
+ * @throws {RequiredError}
401
+ */
402
+ v1GetImageSets: (options = {}) => __awaiter(this, void 0, void 0, function* () {
403
+ const localVarPath = `/v1/image-sets`;
404
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
405
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
406
+ let baseOptions;
407
+ if (configuration) {
408
+ baseOptions = configuration.baseOptions;
409
+ }
410
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
411
+ const localVarHeaderParameter = {};
412
+ const localVarQueryParameter = {};
413
+ // authentication Roles required
414
+ // authentication BearerToken required
415
+ // http bearer authentication required
416
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
417
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
418
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
419
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
420
+ return {
421
+ url: toPathString(localVarUrlObj),
422
+ options: localVarRequestOptions,
423
+ };
424
+ }),
425
+ /**
426
+ * Get all observation sequence results for a specific target or all for an organization. This response is paginated. It will only return at most 5 at a time. To get the next page, pass in the `created_at` timestamp of the last observation sequence in the current page as the `after` query parameter. Omitting this field uses the current time as the `after` timestamp.
427
+ * @param {string} [targetId]
428
+ * @param {string} [after]
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ v1GetObservationSequenceResults: (targetId, after, options = {}) => __awaiter(this, void 0, void 0, function* () {
433
+ const localVarPath = `/v1/observation-sequence-results`;
434
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
435
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
436
+ let baseOptions;
437
+ if (configuration) {
438
+ baseOptions = configuration.baseOptions;
439
+ }
440
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
441
+ const localVarHeaderParameter = {};
442
+ const localVarQueryParameter = {};
443
+ // authentication Roles required
444
+ // authentication BearerToken required
445
+ // http bearer authentication required
446
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
447
+ if (targetId !== undefined) {
448
+ localVarQueryParameter['targetId'] = targetId;
449
+ }
450
+ if (after !== undefined) {
451
+ localVarQueryParameter['after'] = (after instanceof Date) ?
452
+ after.toISOString() :
453
+ after;
454
+ }
455
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
456
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
457
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
458
+ return {
459
+ url: toPathString(localVarUrlObj),
460
+ options: localVarRequestOptions,
461
+ };
462
+ }),
463
+ /**
464
+ * get organization targets see the [create](#default/v1CreateOrganizationTarget) endpoint for more details
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ v1GetOrganizationTargets: (options = {}) => __awaiter(this, void 0, void 0, function* () {
469
+ const localVarPath = `/v1/organization-targets`;
470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
472
+ let baseOptions;
473
+ if (configuration) {
474
+ baseOptions = configuration.baseOptions;
475
+ }
476
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
477
+ const localVarHeaderParameter = {};
478
+ const localVarQueryParameter = {};
479
+ // authentication Roles required
480
+ // authentication BearerToken required
481
+ // http bearer authentication required
482
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
485
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
486
+ return {
487
+ url: toPathString(localVarUrlObj),
488
+ options: localVarRequestOptions,
489
+ };
490
+ }),
491
+ /**
492
+ * The available satellite objects that the OurSky platform can currently track.
493
+ * @param {OrbitType} [orbitType] orbit type
494
+ * @param {string} [noradId] norad id
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ v1GetSatelliteTargets: (orbitType, noradId, options = {}) => __awaiter(this, void 0, void 0, function* () {
499
+ const localVarPath = `/v1/satellite-targets`;
500
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
501
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
502
+ let baseOptions;
503
+ if (configuration) {
504
+ baseOptions = configuration.baseOptions;
505
+ }
506
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
507
+ const localVarHeaderParameter = {};
508
+ const localVarQueryParameter = {};
509
+ // authentication Roles required
510
+ // authentication BearerToken required
511
+ // http bearer authentication required
512
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
513
+ if (orbitType !== undefined) {
514
+ localVarQueryParameter['orbitType'] = orbitType;
515
+ }
516
+ if (noradId !== undefined) {
517
+ localVarQueryParameter['noradId'] = noradId;
518
+ }
519
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
520
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
521
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
522
+ return {
523
+ url: toPathString(localVarUrlObj),
524
+ options: localVarRequestOptions,
525
+ };
526
+ }),
527
+ /**
528
+ * get tdm
529
+ * @param {string} tdmId
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ */
533
+ v1GetTdm: (tdmId, options = {}) => __awaiter(this, void 0, void 0, function* () {
534
+ // verify required parameter 'tdmId' is not null or undefined
535
+ assertParamExists('v1GetTdm', 'tdmId', tdmId);
536
+ const localVarPath = `/v1/tdm`;
537
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
538
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
539
+ let baseOptions;
540
+ if (configuration) {
541
+ baseOptions = configuration.baseOptions;
542
+ }
543
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
544
+ const localVarHeaderParameter = {};
545
+ const localVarQueryParameter = {};
546
+ // authentication Roles required
547
+ // authentication BearerToken required
548
+ // http bearer authentication required
549
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
550
+ if (tdmId !== undefined) {
551
+ localVarQueryParameter['tdmId'] = tdmId;
552
+ }
553
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
554
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
555
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
556
+ return {
557
+ url: toPathString(localVarUrlObj),
558
+ options: localVarRequestOptions,
559
+ };
560
+ }),
561
+ /**
562
+ * Get all TDMS or all TDMS for a specific target. This response is paginated. It will only return at most 20 TDMs at a time. To get the next page, pass in the `created_at` timestamp of the last TDM in the current page as the `after` query parameter. Omitting this field uses the current time as the `after` timestamp.
563
+ * @param {string} [targetId]
564
+ * @param {string} [after]
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ v1GetTdms: (targetId, after, options = {}) => __awaiter(this, void 0, void 0, function* () {
569
+ const localVarPath = `/v1/tdms`;
570
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
571
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
572
+ let baseOptions;
573
+ if (configuration) {
574
+ baseOptions = configuration.baseOptions;
575
+ }
576
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
577
+ const localVarHeaderParameter = {};
578
+ const localVarQueryParameter = {};
579
+ // authentication Roles required
580
+ // authentication BearerToken required
581
+ // http bearer authentication required
582
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
583
+ if (targetId !== undefined) {
584
+ localVarQueryParameter['targetId'] = targetId;
585
+ }
586
+ if (after !== undefined) {
587
+ localVarQueryParameter['after'] = (after instanceof Date) ?
588
+ after.toISOString() :
589
+ after;
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 the currently configured webhooks
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ v1GetWebhookConfigurations: (options = {}) => __awaiter(this, void 0, void 0, function* () {
605
+ const localVarPath = `/v1/communications/webhooks`;
606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
608
+ let baseOptions;
609
+ if (configuration) {
610
+ baseOptions = configuration.baseOptions;
611
+ }
612
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
613
+ const localVarHeaderParameter = {};
614
+ const localVarQueryParameter = {};
615
+ // authentication Roles required
616
+ // authentication BearerToken required
617
+ // http bearer authentication required
618
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
619
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
620
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
621
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
622
+ return {
623
+ url: toPathString(localVarUrlObj),
624
+ options: localVarRequestOptions,
625
+ };
626
+ }),
627
+ /**
628
+ * Update your organization email communication preferences. This will overwrite any existing preferences. This communication preference is meant as an audit log, it is a fire hose of all events. The schemas are not considered stable and may change at any time. If you are looking for machine to machine communication, please use webhooks.
629
+ * @param {V1UpdateEmailConfiguration} v1UpdateEmailConfiguration request to update an organization email preference
630
+ * @param {*} [options] Override http request option.
631
+ * @throws {RequiredError}
632
+ */
633
+ v1UpdateEmailConfiguration: (v1UpdateEmailConfiguration, options = {}) => __awaiter(this, void 0, void 0, function* () {
634
+ // verify required parameter 'v1UpdateEmailConfiguration' is not null or undefined
635
+ assertParamExists('v1UpdateEmailConfiguration', 'v1UpdateEmailConfiguration', v1UpdateEmailConfiguration);
636
+ const localVarPath = `/v1/communications/email`;
637
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
638
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
639
+ let baseOptions;
640
+ if (configuration) {
641
+ baseOptions = configuration.baseOptions;
642
+ }
643
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
644
+ const localVarHeaderParameter = {};
645
+ const localVarQueryParameter = {};
646
+ // authentication Roles required
647
+ // authentication BearerToken required
648
+ // http bearer authentication required
649
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
650
+ localVarHeaderParameter['Content-Type'] = 'application/json';
651
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
653
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
654
+ localVarRequestOptions.data = serializeDataIfNeeded(v1UpdateEmailConfiguration, localVarRequestOptions, configuration);
655
+ return {
656
+ url: toPathString(localVarUrlObj),
657
+ options: localVarRequestOptions,
658
+ };
659
+ }),
660
+ };
661
+ };
662
+ /**
663
+ * DefaultApi - functional programming interface
664
+ * @export
665
+ */
666
+ export const DefaultApiFp = function (configuration) {
667
+ const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration);
668
+ return {
669
+ /**
670
+ * create an image set
671
+ * @param {V1CreateImageSet} v1CreateImageSet request to create the Image Set
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ v1CreateImageSet(v1CreateImageSet, options) {
676
+ return __awaiter(this, void 0, void 0, function* () {
677
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateImageSet(v1CreateImageSet, options);
678
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
679
+ });
680
+ },
681
+ /**
682
+ * create an image set image
683
+ * @param {V1CreateImageSetImage} v1CreateImageSetImage request to create an image set image
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ v1CreateImageSetImage(v1CreateImageSetImage, options) {
688
+ return __awaiter(this, void 0, void 0, function* () {
689
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateImageSetImage(v1CreateImageSetImage, options);
690
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
691
+ });
692
+ },
693
+ /**
694
+ * Request observations for a satellite target. By creating an organization target you are requesting for a specific target to be observed. The target will be observed best effort by the OurSky network. At the current time OurSky only supports observing satellite targets that are already registered with the platform. To see all possible satellite targets see the [satellite targets](#default/v1GetSatelliteTargets) endpoint. Organization targets also control which events are sent to your organization via webhooks. Webhooks are only sent for targets that you have an active \"organization target\" for.
695
+ * @param {V1OrganizationTarget} v1OrganizationTarget create organization target
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ v1CreateOrganizationTarget(v1OrganizationTarget, options) {
700
+ return __awaiter(this, void 0, void 0, function* () {
701
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateOrganizationTarget(v1OrganizationTarget, options);
702
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
703
+ });
704
+ },
705
+ /**
706
+ * Create an organization webhook. Organization webhooks are used to send specific events to a remote http endpoint. A webhook can be configured for a list of event type. Please see the webhook event types for the currently supported types. The schemas are considered stable and will match their corresponding GET response schema. \"V1_TDM_CREATED\" -> GET /v1/tdm?id={id} The payload sent to the webhook endpoint will include a header field \"X-OurSky-Signature\" which is an HMAC-SHA256 using the secret as the key and the payload as the message. The payload is the byte stream of the entire JSON payload The signature is base64 encoded.
707
+ * @param {V1UpdateWebhookConfiguration} v1UpdateWebhookConfiguration request to create an organization webhook
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ v1CreateWebhookConfiguration(v1UpdateWebhookConfiguration, options) {
712
+ return __awaiter(this, void 0, void 0, function* () {
713
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1CreateWebhookConfiguration(v1UpdateWebhookConfiguration, options);
714
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
715
+ });
716
+ },
717
+ /**
718
+ * delete an organization target
719
+ * @param {string} satelliteTargetId
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ */
723
+ v1DeleteOrganizationTarget(satelliteTargetId, options) {
724
+ return __awaiter(this, void 0, void 0, function* () {
725
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DeleteOrganizationTarget(satelliteTargetId, options);
726
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
727
+ });
728
+ },
729
+ /**
730
+ * Delete an existing webhook configuration
731
+ * @param {string} id webhook id
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ v1DeleteWebhookConfiguration(id, options) {
736
+ return __awaiter(this, void 0, void 0, function* () {
737
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1DeleteWebhookConfiguration(id, options);
738
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
739
+ });
740
+ },
741
+ /**
742
+ * get an image set
743
+ * @param {string} id
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ v1GetImageSet(id, options) {
748
+ return __awaiter(this, void 0, void 0, function* () {
749
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSet(id, options);
750
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
751
+ });
752
+ },
753
+ /**
754
+ * get an image
755
+ * @param {string} imageId
756
+ * @param {*} [options] Override http request option.
757
+ * @throws {RequiredError}
758
+ */
759
+ v1GetImageSetImage(imageId, options) {
760
+ return __awaiter(this, void 0, void 0, function* () {
761
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSetImage(imageId, options);
762
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
763
+ });
764
+ },
765
+ /**
766
+ * get image set images
767
+ * @param {Array<string>} imageSets
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ v1GetImageSetImages(imageSets, options) {
772
+ return __awaiter(this, void 0, void 0, function* () {
773
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSetImages(imageSets, options);
774
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
775
+ });
776
+ },
777
+ /**
778
+ * get image sets for targets observed for your organization
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ */
782
+ v1GetImageSets(options) {
783
+ return __awaiter(this, void 0, void 0, function* () {
784
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetImageSets(options);
785
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
786
+ });
787
+ },
788
+ /**
789
+ * Get all observation sequence results for a specific target or all for an organization. This response is paginated. It will only return at most 5 at a time. To get the next page, pass in the `created_at` timestamp of the last observation sequence in the current page as the `after` query parameter. Omitting this field uses the current time as the `after` timestamp.
790
+ * @param {string} [targetId]
791
+ * @param {string} [after]
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ */
795
+ v1GetObservationSequenceResults(targetId, after, options) {
796
+ return __awaiter(this, void 0, void 0, function* () {
797
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetObservationSequenceResults(targetId, after, options);
798
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
799
+ });
800
+ },
801
+ /**
802
+ * get organization targets see the [create](#default/v1CreateOrganizationTarget) endpoint for more details
803
+ * @param {*} [options] Override http request option.
804
+ * @throws {RequiredError}
805
+ */
806
+ v1GetOrganizationTargets(options) {
807
+ return __awaiter(this, void 0, void 0, function* () {
808
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetOrganizationTargets(options);
809
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
810
+ });
811
+ },
812
+ /**
813
+ * The available satellite objects that the OurSky platform can currently track.
814
+ * @param {OrbitType} [orbitType] orbit type
815
+ * @param {string} [noradId] norad id
816
+ * @param {*} [options] Override http request option.
817
+ * @throws {RequiredError}
818
+ */
819
+ v1GetSatelliteTargets(orbitType, noradId, options) {
820
+ return __awaiter(this, void 0, void 0, function* () {
821
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetSatelliteTargets(orbitType, noradId, options);
822
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
823
+ });
824
+ },
825
+ /**
826
+ * get tdm
827
+ * @param {string} tdmId
828
+ * @param {*} [options] Override http request option.
829
+ * @throws {RequiredError}
830
+ */
831
+ v1GetTdm(tdmId, options) {
832
+ return __awaiter(this, void 0, void 0, function* () {
833
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetTdm(tdmId, options);
834
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
835
+ });
836
+ },
837
+ /**
838
+ * Get all TDMS or all TDMS for a specific target. This response is paginated. It will only return at most 20 TDMs at a time. To get the next page, pass in the `created_at` timestamp of the last TDM in the current page as the `after` query parameter. Omitting this field uses the current time as the `after` timestamp.
839
+ * @param {string} [targetId]
840
+ * @param {string} [after]
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ */
844
+ v1GetTdms(targetId, after, options) {
845
+ return __awaiter(this, void 0, void 0, function* () {
846
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetTdms(targetId, after, options);
847
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
848
+ });
849
+ },
850
+ /**
851
+ * Get the currently configured webhooks
852
+ * @param {*} [options] Override http request option.
853
+ * @throws {RequiredError}
854
+ */
855
+ v1GetWebhookConfigurations(options) {
856
+ return __awaiter(this, void 0, void 0, function* () {
857
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1GetWebhookConfigurations(options);
858
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
859
+ });
860
+ },
861
+ /**
862
+ * Update your organization email communication preferences. This will overwrite any existing preferences. This communication preference is meant as an audit log, it is a fire hose of all events. The schemas are not considered stable and may change at any time. If you are looking for machine to machine communication, please use webhooks.
863
+ * @param {V1UpdateEmailConfiguration} v1UpdateEmailConfiguration request to update an organization email preference
864
+ * @param {*} [options] Override http request option.
865
+ * @throws {RequiredError}
866
+ */
867
+ v1UpdateEmailConfiguration(v1UpdateEmailConfiguration, options) {
868
+ return __awaiter(this, void 0, void 0, function* () {
869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.v1UpdateEmailConfiguration(v1UpdateEmailConfiguration, options);
870
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
871
+ });
872
+ },
873
+ };
874
+ };
875
+ /**
876
+ * DefaultApi - factory interface
877
+ * @export
878
+ */
879
+ export const DefaultApiFactory = function (configuration, basePath, axios) {
880
+ const localVarFp = DefaultApiFp(configuration);
881
+ return {
882
+ /**
883
+ * create an image set
884
+ * @param {DefaultApiV1CreateImageSetRequest} requestParameters Request parameters.
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ */
888
+ v1CreateImageSet(requestParameters, options) {
889
+ return localVarFp.v1CreateImageSet(requestParameters.v1CreateImageSet, options).then((request) => request(axios, basePath));
890
+ },
891
+ /**
892
+ * create an image set image
893
+ * @param {DefaultApiV1CreateImageSetImageRequest} requestParameters Request parameters.
894
+ * @param {*} [options] Override http request option.
895
+ * @throws {RequiredError}
896
+ */
897
+ v1CreateImageSetImage(requestParameters, options) {
898
+ return localVarFp.v1CreateImageSetImage(requestParameters.v1CreateImageSetImage, options).then((request) => request(axios, basePath));
899
+ },
900
+ /**
901
+ * Request observations for a satellite target. By creating an organization target you are requesting for a specific target to be observed. The target will be observed best effort by the OurSky network. At the current time OurSky only supports observing satellite targets that are already registered with the platform. To see all possible satellite targets see the [satellite targets](#default/v1GetSatelliteTargets) endpoint. Organization targets also control which events are sent to your organization via webhooks. Webhooks are only sent for targets that you have an active \"organization target\" for.
902
+ * @param {DefaultApiV1CreateOrganizationTargetRequest} requestParameters Request parameters.
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ v1CreateOrganizationTarget(requestParameters, options) {
907
+ return localVarFp.v1CreateOrganizationTarget(requestParameters.v1OrganizationTarget, options).then((request) => request(axios, basePath));
908
+ },
909
+ /**
910
+ * Create an organization webhook. Organization webhooks are used to send specific events to a remote http endpoint. A webhook can be configured for a list of event type. Please see the webhook event types for the currently supported types. The schemas are considered stable and will match their corresponding GET response schema. \"V1_TDM_CREATED\" -> GET /v1/tdm?id={id} The payload sent to the webhook endpoint will include a header field \"X-OurSky-Signature\" which is an HMAC-SHA256 using the secret as the key and the payload as the message. The payload is the byte stream of the entire JSON payload The signature is base64 encoded.
911
+ * @param {DefaultApiV1CreateWebhookConfigurationRequest} requestParameters Request parameters.
912
+ * @param {*} [options] Override http request option.
913
+ * @throws {RequiredError}
914
+ */
915
+ v1CreateWebhookConfiguration(requestParameters, options) {
916
+ return localVarFp.v1CreateWebhookConfiguration(requestParameters.v1UpdateWebhookConfiguration, options).then((request) => request(axios, basePath));
917
+ },
918
+ /**
919
+ * delete an organization target
920
+ * @param {DefaultApiV1DeleteOrganizationTargetRequest} requestParameters Request parameters.
921
+ * @param {*} [options] Override http request option.
922
+ * @throws {RequiredError}
923
+ */
924
+ v1DeleteOrganizationTarget(requestParameters, options) {
925
+ return localVarFp.v1DeleteOrganizationTarget(requestParameters.satelliteTargetId, options).then((request) => request(axios, basePath));
926
+ },
927
+ /**
928
+ * Delete an existing webhook configuration
929
+ * @param {DefaultApiV1DeleteWebhookConfigurationRequest} requestParameters Request parameters.
930
+ * @param {*} [options] Override http request option.
931
+ * @throws {RequiredError}
932
+ */
933
+ v1DeleteWebhookConfiguration(requestParameters, options) {
934
+ return localVarFp.v1DeleteWebhookConfiguration(requestParameters.id, options).then((request) => request(axios, basePath));
935
+ },
936
+ /**
937
+ * get an image set
938
+ * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
939
+ * @param {*} [options] Override http request option.
940
+ * @throws {RequiredError}
941
+ */
942
+ v1GetImageSet(requestParameters, options) {
943
+ return localVarFp.v1GetImageSet(requestParameters.id, options).then((request) => request(axios, basePath));
944
+ },
945
+ /**
946
+ * get an image
947
+ * @param {DefaultApiV1GetImageSetImageRequest} requestParameters Request parameters.
948
+ * @param {*} [options] Override http request option.
949
+ * @throws {RequiredError}
950
+ */
951
+ v1GetImageSetImage(requestParameters, options) {
952
+ return localVarFp.v1GetImageSetImage(requestParameters.imageId, options).then((request) => request(axios, basePath));
953
+ },
954
+ /**
955
+ * get image set images
956
+ * @param {DefaultApiV1GetImageSetImagesRequest} requestParameters Request parameters.
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ */
960
+ v1GetImageSetImages(requestParameters, options) {
961
+ return localVarFp.v1GetImageSetImages(requestParameters.imageSets, options).then((request) => request(axios, basePath));
962
+ },
963
+ /**
964
+ * get image sets for targets observed for your organization
965
+ * @param {*} [options] Override http request option.
966
+ * @throws {RequiredError}
967
+ */
968
+ v1GetImageSets(options) {
969
+ return localVarFp.v1GetImageSets(options).then((request) => request(axios, basePath));
970
+ },
971
+ /**
972
+ * Get all observation sequence results for a specific target or all for an organization. This response is paginated. It will only return at most 5 at a time. To get the next page, pass in the `created_at` timestamp of the last observation sequence in the current page as the `after` query parameter. Omitting this field uses the current time as the `after` timestamp.
973
+ * @param {DefaultApiV1GetObservationSequenceResultsRequest} requestParameters Request parameters.
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ */
977
+ v1GetObservationSequenceResults(requestParameters = {}, options) {
978
+ return localVarFp.v1GetObservationSequenceResults(requestParameters.targetId, requestParameters.after, options).then((request) => request(axios, basePath));
979
+ },
980
+ /**
981
+ * get organization targets see the [create](#default/v1CreateOrganizationTarget) endpoint for more details
982
+ * @param {*} [options] Override http request option.
983
+ * @throws {RequiredError}
984
+ */
985
+ v1GetOrganizationTargets(options) {
986
+ return localVarFp.v1GetOrganizationTargets(options).then((request) => request(axios, basePath));
987
+ },
988
+ /**
989
+ * The available satellite objects that the OurSky platform can currently track.
990
+ * @param {DefaultApiV1GetSatelliteTargetsRequest} requestParameters Request parameters.
991
+ * @param {*} [options] Override http request option.
992
+ * @throws {RequiredError}
993
+ */
994
+ v1GetSatelliteTargets(requestParameters = {}, options) {
995
+ return localVarFp.v1GetSatelliteTargets(requestParameters.orbitType, requestParameters.noradId, options).then((request) => request(axios, basePath));
996
+ },
997
+ /**
998
+ * get tdm
999
+ * @param {DefaultApiV1GetTdmRequest} requestParameters Request parameters.
1000
+ * @param {*} [options] Override http request option.
1001
+ * @throws {RequiredError}
1002
+ */
1003
+ v1GetTdm(requestParameters, options) {
1004
+ return localVarFp.v1GetTdm(requestParameters.tdmId, options).then((request) => request(axios, basePath));
1005
+ },
1006
+ /**
1007
+ * Get all TDMS or all TDMS for a specific target. This response is paginated. It will only return at most 20 TDMs at a time. To get the next page, pass in the `created_at` timestamp of the last TDM in the current page as the `after` query parameter. Omitting this field uses the current time as the `after` timestamp.
1008
+ * @param {DefaultApiV1GetTdmsRequest} requestParameters Request parameters.
1009
+ * @param {*} [options] Override http request option.
1010
+ * @throws {RequiredError}
1011
+ */
1012
+ v1GetTdms(requestParameters = {}, options) {
1013
+ return localVarFp.v1GetTdms(requestParameters.targetId, requestParameters.after, options).then((request) => request(axios, basePath));
1014
+ },
1015
+ /**
1016
+ * Get the currently configured webhooks
1017
+ * @param {*} [options] Override http request option.
1018
+ * @throws {RequiredError}
1019
+ */
1020
+ v1GetWebhookConfigurations(options) {
1021
+ return localVarFp.v1GetWebhookConfigurations(options).then((request) => request(axios, basePath));
1022
+ },
1023
+ /**
1024
+ * Update your organization email communication preferences. This will overwrite any existing preferences. This communication preference is meant as an audit log, it is a fire hose of all events. The schemas are not considered stable and may change at any time. If you are looking for machine to machine communication, please use webhooks.
1025
+ * @param {DefaultApiV1UpdateEmailConfigurationRequest} requestParameters Request parameters.
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ v1UpdateEmailConfiguration(requestParameters, options) {
1030
+ return localVarFp.v1UpdateEmailConfiguration(requestParameters.v1UpdateEmailConfiguration, options).then((request) => request(axios, basePath));
1031
+ },
1032
+ };
1033
+ };
1034
+ /**
1035
+ * DefaultApi - object-oriented interface
1036
+ * @export
1037
+ * @class DefaultApi
1038
+ * @extends {BaseAPI}
1039
+ */
1040
+ export class DefaultApi extends BaseAPI {
1041
+ /**
1042
+ * create an image set
1043
+ * @param {DefaultApiV1CreateImageSetRequest} requestParameters Request parameters.
1044
+ * @param {*} [options] Override http request option.
1045
+ * @throws {RequiredError}
1046
+ * @memberof DefaultApi
1047
+ */
1048
+ v1CreateImageSet(requestParameters, options) {
1049
+ return DefaultApiFp(this.configuration).v1CreateImageSet(requestParameters.v1CreateImageSet, options).then((request) => request(this.axios, this.basePath));
1050
+ }
1051
+ /**
1052
+ * create an image set image
1053
+ * @param {DefaultApiV1CreateImageSetImageRequest} requestParameters Request parameters.
1054
+ * @param {*} [options] Override http request option.
1055
+ * @throws {RequiredError}
1056
+ * @memberof DefaultApi
1057
+ */
1058
+ v1CreateImageSetImage(requestParameters, options) {
1059
+ return DefaultApiFp(this.configuration).v1CreateImageSetImage(requestParameters.v1CreateImageSetImage, options).then((request) => request(this.axios, this.basePath));
1060
+ }
1061
+ /**
1062
+ * Request observations for a satellite target. By creating an organization target you are requesting for a specific target to be observed. The target will be observed best effort by the OurSky network. At the current time OurSky only supports observing satellite targets that are already registered with the platform. To see all possible satellite targets see the [satellite targets](#default/v1GetSatelliteTargets) endpoint. Organization targets also control which events are sent to your organization via webhooks. Webhooks are only sent for targets that you have an active \"organization target\" for.
1063
+ * @param {DefaultApiV1CreateOrganizationTargetRequest} requestParameters Request parameters.
1064
+ * @param {*} [options] Override http request option.
1065
+ * @throws {RequiredError}
1066
+ * @memberof DefaultApi
1067
+ */
1068
+ v1CreateOrganizationTarget(requestParameters, options) {
1069
+ return DefaultApiFp(this.configuration).v1CreateOrganizationTarget(requestParameters.v1OrganizationTarget, options).then((request) => request(this.axios, this.basePath));
1070
+ }
1071
+ /**
1072
+ * Create an organization webhook. Organization webhooks are used to send specific events to a remote http endpoint. A webhook can be configured for a list of event type. Please see the webhook event types for the currently supported types. The schemas are considered stable and will match their corresponding GET response schema. \"V1_TDM_CREATED\" -> GET /v1/tdm?id={id} The payload sent to the webhook endpoint will include a header field \"X-OurSky-Signature\" which is an HMAC-SHA256 using the secret as the key and the payload as the message. The payload is the byte stream of the entire JSON payload The signature is base64 encoded.
1073
+ * @param {DefaultApiV1CreateWebhookConfigurationRequest} requestParameters Request parameters.
1074
+ * @param {*} [options] Override http request option.
1075
+ * @throws {RequiredError}
1076
+ * @memberof DefaultApi
1077
+ */
1078
+ v1CreateWebhookConfiguration(requestParameters, options) {
1079
+ return DefaultApiFp(this.configuration).v1CreateWebhookConfiguration(requestParameters.v1UpdateWebhookConfiguration, options).then((request) => request(this.axios, this.basePath));
1080
+ }
1081
+ /**
1082
+ * delete an organization target
1083
+ * @param {DefaultApiV1DeleteOrganizationTargetRequest} requestParameters Request parameters.
1084
+ * @param {*} [options] Override http request option.
1085
+ * @throws {RequiredError}
1086
+ * @memberof DefaultApi
1087
+ */
1088
+ v1DeleteOrganizationTarget(requestParameters, options) {
1089
+ return DefaultApiFp(this.configuration).v1DeleteOrganizationTarget(requestParameters.satelliteTargetId, options).then((request) => request(this.axios, this.basePath));
1090
+ }
1091
+ /**
1092
+ * Delete an existing webhook configuration
1093
+ * @param {DefaultApiV1DeleteWebhookConfigurationRequest} requestParameters Request parameters.
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ * @memberof DefaultApi
1097
+ */
1098
+ v1DeleteWebhookConfiguration(requestParameters, options) {
1099
+ return DefaultApiFp(this.configuration).v1DeleteWebhookConfiguration(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1100
+ }
1101
+ /**
1102
+ * get an image set
1103
+ * @param {DefaultApiV1GetImageSetRequest} requestParameters Request parameters.
1104
+ * @param {*} [options] Override http request option.
1105
+ * @throws {RequiredError}
1106
+ * @memberof DefaultApi
1107
+ */
1108
+ v1GetImageSet(requestParameters, options) {
1109
+ return DefaultApiFp(this.configuration).v1GetImageSet(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1110
+ }
1111
+ /**
1112
+ * get an image
1113
+ * @param {DefaultApiV1GetImageSetImageRequest} requestParameters Request parameters.
1114
+ * @param {*} [options] Override http request option.
1115
+ * @throws {RequiredError}
1116
+ * @memberof DefaultApi
1117
+ */
1118
+ v1GetImageSetImage(requestParameters, options) {
1119
+ return DefaultApiFp(this.configuration).v1GetImageSetImage(requestParameters.imageId, options).then((request) => request(this.axios, this.basePath));
1120
+ }
1121
+ /**
1122
+ * get image set images
1123
+ * @param {DefaultApiV1GetImageSetImagesRequest} requestParameters Request parameters.
1124
+ * @param {*} [options] Override http request option.
1125
+ * @throws {RequiredError}
1126
+ * @memberof DefaultApi
1127
+ */
1128
+ v1GetImageSetImages(requestParameters, options) {
1129
+ return DefaultApiFp(this.configuration).v1GetImageSetImages(requestParameters.imageSets, options).then((request) => request(this.axios, this.basePath));
1130
+ }
1131
+ /**
1132
+ * get image sets for targets observed for your organization
1133
+ * @param {*} [options] Override http request option.
1134
+ * @throws {RequiredError}
1135
+ * @memberof DefaultApi
1136
+ */
1137
+ v1GetImageSets(options) {
1138
+ return DefaultApiFp(this.configuration).v1GetImageSets(options).then((request) => request(this.axios, this.basePath));
1139
+ }
1140
+ /**
1141
+ * Get all observation sequence results for a specific target or all for an organization. This response is paginated. It will only return at most 5 at a time. To get the next page, pass in the `created_at` timestamp of the last observation sequence in the current page as the `after` query parameter. Omitting this field uses the current time as the `after` timestamp.
1142
+ * @param {DefaultApiV1GetObservationSequenceResultsRequest} requestParameters Request parameters.
1143
+ * @param {*} [options] Override http request option.
1144
+ * @throws {RequiredError}
1145
+ * @memberof DefaultApi
1146
+ */
1147
+ v1GetObservationSequenceResults(requestParameters = {}, options) {
1148
+ return DefaultApiFp(this.configuration).v1GetObservationSequenceResults(requestParameters.targetId, requestParameters.after, options).then((request) => request(this.axios, this.basePath));
1149
+ }
1150
+ /**
1151
+ * get organization targets see the [create](#default/v1CreateOrganizationTarget) endpoint for more details
1152
+ * @param {*} [options] Override http request option.
1153
+ * @throws {RequiredError}
1154
+ * @memberof DefaultApi
1155
+ */
1156
+ v1GetOrganizationTargets(options) {
1157
+ return DefaultApiFp(this.configuration).v1GetOrganizationTargets(options).then((request) => request(this.axios, this.basePath));
1158
+ }
1159
+ /**
1160
+ * The available satellite objects that the OurSky platform can currently track.
1161
+ * @param {DefaultApiV1GetSatelliteTargetsRequest} requestParameters Request parameters.
1162
+ * @param {*} [options] Override http request option.
1163
+ * @throws {RequiredError}
1164
+ * @memberof DefaultApi
1165
+ */
1166
+ v1GetSatelliteTargets(requestParameters = {}, options) {
1167
+ return DefaultApiFp(this.configuration).v1GetSatelliteTargets(requestParameters.orbitType, requestParameters.noradId, options).then((request) => request(this.axios, this.basePath));
1168
+ }
1169
+ /**
1170
+ * get tdm
1171
+ * @param {DefaultApiV1GetTdmRequest} requestParameters Request parameters.
1172
+ * @param {*} [options] Override http request option.
1173
+ * @throws {RequiredError}
1174
+ * @memberof DefaultApi
1175
+ */
1176
+ v1GetTdm(requestParameters, options) {
1177
+ return DefaultApiFp(this.configuration).v1GetTdm(requestParameters.tdmId, options).then((request) => request(this.axios, this.basePath));
1178
+ }
1179
+ /**
1180
+ * Get all TDMS or all TDMS for a specific target. This response is paginated. It will only return at most 20 TDMs at a time. To get the next page, pass in the `created_at` timestamp of the last TDM in the current page as the `after` query parameter. Omitting this field uses the current time as the `after` timestamp.
1181
+ * @param {DefaultApiV1GetTdmsRequest} requestParameters Request parameters.
1182
+ * @param {*} [options] Override http request option.
1183
+ * @throws {RequiredError}
1184
+ * @memberof DefaultApi
1185
+ */
1186
+ v1GetTdms(requestParameters = {}, options) {
1187
+ return DefaultApiFp(this.configuration).v1GetTdms(requestParameters.targetId, requestParameters.after, options).then((request) => request(this.axios, this.basePath));
1188
+ }
1189
+ /**
1190
+ * Get the currently configured webhooks
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ * @memberof DefaultApi
1194
+ */
1195
+ v1GetWebhookConfigurations(options) {
1196
+ return DefaultApiFp(this.configuration).v1GetWebhookConfigurations(options).then((request) => request(this.axios, this.basePath));
1197
+ }
1198
+ /**
1199
+ * Update your organization email communication preferences. This will overwrite any existing preferences. This communication preference is meant as an audit log, it is a fire hose of all events. The schemas are not considered stable and may change at any time. If you are looking for machine to machine communication, please use webhooks.
1200
+ * @param {DefaultApiV1UpdateEmailConfigurationRequest} requestParameters Request parameters.
1201
+ * @param {*} [options] Override http request option.
1202
+ * @throws {RequiredError}
1203
+ * @memberof DefaultApi
1204
+ */
1205
+ v1UpdateEmailConfiguration(requestParameters, options) {
1206
+ return DefaultApiFp(this.configuration).v1UpdateEmailConfiguration(requestParameters.v1UpdateEmailConfiguration, options).then((request) => request(this.axios, this.basePath));
1207
+ }
1208
+ }