@ourskyai/sda-api 1.4.133 → 1.4.158

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.
@@ -37,6 +37,8 @@ All URIs are relative to *https://api.prod.oursky.ai*
37
37
  |[**v1GetObservationStatuses**](#v1getobservationstatuses) | **GET** /v1/observation-statuses | |
38
38
  |[**v1GetOrganizationSatellitePotentials**](#v1getorganizationsatellitepotentials) | **GET** /v1/organization-target-potentials | |
39
39
  |[**v1GetOrganizationTarget**](#v1getorganizationtarget) | **GET** /v1/organization-target | |
40
+ |[**v1GetOrganizationTargetLightcurve**](#v1getorganizationtargetlightcurve) | **GET** /v1/organization-target/lightcurve | |
41
+ |[**v1GetOrganizationTargetLightcurves**](#v1getorganizationtargetlightcurves) | **GET** /v1/organization-target/lightcurves | |
40
42
  |[**v1GetOrganizationTargets**](#v1getorganizationtargets) | **GET** /v1/organization-targets | |
41
43
  |[**v1GetResolvedImageMetadata**](#v1getresolvedimagemetadata) | **GET** /v1/resolved-image-metadata | |
42
44
  |[**v1GetResolvedImageObservations**](#v1getresolvedimageobservations) | **GET** /v1/resolved-image-observations | |
@@ -1800,6 +1802,120 @@ const { status, data } = await apiInstance.v1GetOrganizationTarget(
1800
1802
 
1801
1803
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1802
1804
 
1805
+ # **v1GetOrganizationTargetLightcurve**
1806
+ > V1Lightcurve v1GetOrganizationTargetLightcurve()
1807
+
1808
+ Get the latest lightcurve for a satellite target the organization is tracking. Requires the light curves product feature.
1809
+
1810
+ ### Example
1811
+
1812
+ ```typescript
1813
+ import {
1814
+ DefaultApi,
1815
+ Configuration
1816
+ } from '@ourskyai/sda-api';
1817
+
1818
+ const configuration = new Configuration();
1819
+ const apiInstance = new DefaultApi(configuration);
1820
+
1821
+ let organizationTargetId: string; // (default to undefined)
1822
+
1823
+ const { status, data } = await apiInstance.v1GetOrganizationTargetLightcurve(
1824
+ organizationTargetId
1825
+ );
1826
+ ```
1827
+
1828
+ ### Parameters
1829
+
1830
+ |Name | Type | Description | Notes|
1831
+ |------------- | ------------- | ------------- | -------------|
1832
+ | **organizationTargetId** | [**string**] | | defaults to undefined|
1833
+
1834
+
1835
+ ### Return type
1836
+
1837
+ **V1Lightcurve**
1838
+
1839
+ ### Authorization
1840
+
1841
+ [Roles](../README.md#Roles), [BearerToken](../README.md#BearerToken)
1842
+
1843
+ ### HTTP request headers
1844
+
1845
+ - **Content-Type**: Not defined
1846
+ - **Accept**: application/json
1847
+
1848
+
1849
+ ### HTTP response details
1850
+ | Status code | Description | Response headers |
1851
+ |-------------|-------------|------------------|
1852
+ |**200** | V1Lightcurve | - |
1853
+
1854
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1855
+
1856
+ # **v1GetOrganizationTargetLightcurves**
1857
+ > V1GetLightcurvesResponse v1GetOrganizationTargetLightcurves()
1858
+
1859
+ Get lightcurves for a satellite target the organization is tracking. Requires the light curves product feature.
1860
+
1861
+ ### Example
1862
+
1863
+ ```typescript
1864
+ import {
1865
+ DefaultApi,
1866
+ Configuration
1867
+ } from '@ourskyai/sda-api';
1868
+
1869
+ const configuration = new Configuration();
1870
+ const apiInstance = new DefaultApi(configuration);
1871
+
1872
+ let organizationTargetId: string; // (default to undefined)
1873
+ let startDate: string; // (optional) (default to undefined)
1874
+ let endDate: string; // (optional) (default to undefined)
1875
+ let offset: number; // (optional) (default to 0)
1876
+ let limit: number; // (optional) (default to 50)
1877
+
1878
+ const { status, data } = await apiInstance.v1GetOrganizationTargetLightcurves(
1879
+ organizationTargetId,
1880
+ startDate,
1881
+ endDate,
1882
+ offset,
1883
+ limit
1884
+ );
1885
+ ```
1886
+
1887
+ ### Parameters
1888
+
1889
+ |Name | Type | Description | Notes|
1890
+ |------------- | ------------- | ------------- | -------------|
1891
+ | **organizationTargetId** | [**string**] | | defaults to undefined|
1892
+ | **startDate** | [**string**] | | (optional) defaults to undefined|
1893
+ | **endDate** | [**string**] | | (optional) defaults to undefined|
1894
+ | **offset** | [**number**] | | (optional) defaults to 0|
1895
+ | **limit** | [**number**] | | (optional) defaults to 50|
1896
+
1897
+
1898
+ ### Return type
1899
+
1900
+ **V1GetLightcurvesResponse**
1901
+
1902
+ ### Authorization
1903
+
1904
+ [Roles](../README.md#Roles), [BearerToken](../README.md#BearerToken)
1905
+
1906
+ ### HTTP request headers
1907
+
1908
+ - **Content-Type**: Not defined
1909
+ - **Accept**: application/json
1910
+
1911
+
1912
+ ### HTTP response details
1913
+ | Status code | Description | Response headers |
1914
+ |-------------|-------------|------------------|
1915
+ |**200** | V1GetLightcurvesResponse | - |
1916
+
1917
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1918
+
1803
1919
  # **v1GetOrganizationTargets**
1804
1920
  > Array<V1OrganizationTarget> v1GetOrganizationTargets()
1805
1921
 
@@ -0,0 +1,11 @@
1
+ # LightcurveDataType
2
+
3
+ RAW for time-series photometry data with timestamps, PHASE_FOLDED for phase-folded data by rotation period
4
+
5
+ ## Enum
6
+
7
+ * `RAW` (value: `'RAW'`)
8
+
9
+ * `PHASE_FOLDED` (value: `'PHASE_FOLDED'`)
10
+
11
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,17 @@
1
+ # PeriodDetectionStatus
2
+
3
+ Outcome of period detection attempt
4
+
5
+ ## Enum
6
+
7
+ * `NOT_ATTEMPTED` (value: `'NOT_ATTEMPTED'`)
8
+
9
+ * `INSUFFICIENT_DATA` (value: `'INSUFFICIENT_DATA'`)
10
+
11
+ * `SUCCESS` (value: `'SUCCESS'`)
12
+
13
+ * `LOW_CONFIDENCE` (value: `'LOW_CONFIDENCE'`)
14
+
15
+ * `AMBIGUOUS` (value: `'AMBIGUOUS'`)
16
+
17
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,15 @@
1
+ # PeriodicityAlgorithm
2
+
3
+ Algorithm used to detect rotation period. NONE if period detection was not attempted.
4
+
5
+ ## Enum
6
+
7
+ * `NONE` (value: `'NONE'`)
8
+
9
+ * `STRING_LENGTH` (value: `'STRING_LENGTH'`)
10
+
11
+ * `PHASE_DISPERSION_MINIMIZATION` (value: `'PHASE_DISPERSION_MINIMIZATION'`)
12
+
13
+ * `BAYESIAN_PERIOD_SEARCH` (value: `'BAYESIAN_PERIOD_SEARCH'`)
14
+
15
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # V1GetLightcurvesResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **lightcurves** | [**Array&lt;V1Lightcurve&gt;**](V1Lightcurve.md) | | [default to undefined]
9
+ **total** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1GetLightcurvesResponse } from '@ourskyai/sda-api';
15
+
16
+ const instance: V1GetLightcurvesResponse = {
17
+ lightcurves,
18
+ total,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,50 @@
1
+ # V1Lightcurve
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **targetId** | **string** | | [default to undefined]
10
+ **createdAt** | **string** | | [default to undefined]
11
+ **dataSpanStart** | **string** | | [default to undefined]
12
+ **dataSpanEnd** | **string** | | [default to undefined]
13
+ **dataType** | [**LightcurveDataType**](LightcurveDataType.md) | | [default to undefined]
14
+ **rawLightcurveId** | **string** | For phase-folded lightcurves, references the source raw lightcurve | [optional] [default to undefined]
15
+ **totalPointCount** | **number** | Total number of points in the raw lightcurve | [default to undefined]
16
+ **periodDetectionStatus** | [**PeriodDetectionStatus**](PeriodDetectionStatus.md) | | [default to undefined]
17
+ **periodicityAlgorithm** | [**PeriodicityAlgorithm**](PeriodicityAlgorithm.md) | | [optional] [default to undefined]
18
+ **periodSeconds** | **number** | Detected rotation period in seconds (null if not periodic) | [optional] [default to undefined]
19
+ **periodConfidence** | **number** | Confidence score 0-1 for the detected period | [optional] [default to undefined]
20
+ **periodSearchMinSeconds** | **number** | Minimum period searched | [optional] [default to undefined]
21
+ **periodSearchMaxSeconds** | **number** | Maximum period searched | [optional] [default to undefined]
22
+ **validPointCount** | **number** | Number of points that passed Nyquist filtering for the best period | [optional] [default to undefined]
23
+ **points** | [**Array&lt;V1LightcurveDataPoint&gt;**](V1LightcurveDataPoint.md) | Photometry measurements | [default to undefined]
24
+
25
+ ## Example
26
+
27
+ ```typescript
28
+ import { V1Lightcurve } from '@ourskyai/sda-api';
29
+
30
+ const instance: V1Lightcurve = {
31
+ id,
32
+ targetId,
33
+ createdAt,
34
+ dataSpanStart,
35
+ dataSpanEnd,
36
+ dataType,
37
+ rawLightcurveId,
38
+ totalPointCount,
39
+ periodDetectionStatus,
40
+ periodicityAlgorithm,
41
+ periodSeconds,
42
+ periodConfidence,
43
+ periodSearchMinSeconds,
44
+ periodSearchMaxSeconds,
45
+ validPointCount,
46
+ points,
47
+ };
48
+ ```
49
+
50
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # V1LightcurveDataPoint
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **timestamp** | **string** | | [default to undefined]
9
+ **fractionalPeriod** | **number** | Phase within the rotation period (0.0-1.0). Only present for PHASE_FOLDED data. | [optional] [default to undefined]
10
+ **standardMagnitude** | **number** | Magnitude normalized to standard range (1000 km) and solar phase angle (90 degrees) | [default to undefined]
11
+ **rawMagnitude** | **number** | Observed apparent magnitude | [default to undefined]
12
+ **solarPhaseAngleRadians** | **number** | Sun-satellite-observer angle in radians | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { V1LightcurveDataPoint } from '@ourskyai/sda-api';
18
+
19
+ const instance: V1LightcurveDataPoint = {
20
+ timestamp,
21
+ fractionalPeriod,
22
+ standardMagnitude,
23
+ rawMagnitude,
24
+ solarPhaseAngleRadians,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * OurSky SDA
5
5
  * The basic flow for a new organization is as follows: 1. View the available satellite targets with the [satellite targets](#tag/satellite-targets/GET/v1/satellite-targets) endpoint. Copy the id of the target you want to observe. 2. Create an organization target with the [organization target](#tag/organization-targets/GET/v1/organization-targets) endpoint. Use the id copied from above. 3. Create a webhook with the [webhook](#tag/webhooks/POST/v1/communications/webhook) endpoint to receive OSRs automatically (preferred) or use the [OSRs](#tag/observation-sequence-results/GET/v1/observation-sequence-results) endpoint to poll for OSRs. Check out our [examples](https://github.com/ourskyai/oursky-examples) repository to see usage in each language.
6
6
  *
7
- * The version of the OpenAPI document: 1.4.133
7
+ * The version of the OpenAPI document: 1.4.158
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ourskyai/sda-api",
3
- "version": "1.4.133",
3
+ "version": "1.4.158",
4
4
  "description": "OpenAPI client for @ourskyai/sda-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {