@arcosmos/sdk 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts ADDED
@@ -0,0 +1,2335 @@
1
+ // Generated from packages/sdk/openapi.json by scripts/generate.ts: `pnpm --filter @arcosmos/sdk generate`.
2
+ // Arcosmos API v1, OpenAPI 3.1.0. Don't edit by hand.
3
+ import type { Quantity } from '@arcosmos/astronomy'
4
+
5
+ /** Every schema the API's responses and request bodies are made of, by its name in the document. */
6
+ export interface Schemas {
7
+ ObjectResponse: {
8
+ data: Schemas['Object']
9
+ metadata: Schemas['ObjectMetadata']
10
+ }
11
+ Object: {
12
+ /** Arcosmos's stable id for the object. */
13
+ id: string
14
+ canonical_name: string
15
+ object_type: string | null
16
+ object_type_source: Schemas['Source'] | null
17
+ position: Schemas['Position'] | null
18
+ identifiers: Schemas['Identifier'][]
19
+ relations: Schemas['Relation'][]
20
+ measurements: Schemas['Measurement'][]
21
+ /**
22
+ * Values the API computes from `measurements`, each with its method and inputs. Empty when the inputs a method needs are missing.
23
+ *
24
+ * - `radius` by `angular_diameter_and_parallax`: a star's radius from its measured angular diameter and its parallax, `R = (theta / 2) * (1 / parallax)`. In solar radii that is `theta / parallax * au / (2 R_sun)`, about `107.516 * theta / parallax` for both in mas, with `au = 149,597,870.7 km` and the IAU nominal `R_sun = 695,700 km`. One sigma, to first order: `sigma_R / R = sqrt((sigma_theta / theta)^2 + (sigma_parallax / parallax)^2)`.
25
+ * - The diameter is the most precise limb-darkened diameter (smallest relative error) among those that have a published error and lie between 1 and 1.2 times the uniform-disk diameter of the same measurement, when it gives one. A limb-darkening correction is never below 1 and stays under about 1.12 even for a fully darkened disk, so a value outside that range is not a diameter: JMDC has rows whose limb-darkened column holds the ratio of the two. A value whose note says its authors revised it in a later publication (`See values Updated in ...`, `... with markedly different values`) is skipped too.
26
+ * - A diameter from the literature compilation (`literature`, values copied by hand from papers) comes before any other: its values were chosen for the purpose, such as a red supergiant's near-infrared continuum diameter over a broad-band one, which measures the molecular layers around the star.
27
+ * - The parallax is SIMBAD's, the one it adopts for the star, else the most precise other one. It must be positive and at least 5 times its error, beyond which `1 / parallax` is a poor distance. When the literature compilation gives a usable parallax or a distance (below), its most precise one is used instead.
28
+ * - A star whose surface is extended or pulsates (Mira variables, Cepheids, red supergiants) has no single size: its diameter depends on the wavelength and the date. The diameter's `basis` gives the band and its `note` the catalog's caveats.
29
+ * - `radius` by `estimated_angular_diameter_and_parallax`: the same formula and parallax, from an angular diameter estimated rather than measured (`angular_diameter_limb_darkened_estimated`, from JSDC). It is given only when no measured diameter qualifies, however precise the estimate: an estimate rests on relations calibrated on measured diameters. An estimate whose `angular_diameter_estimate_chi2` is above 5 is skipped, as JSDC itself flags those. Its error includes 2% for the method's biases. It is least reliable for stars unlike those the relations were calibrated on: supergiants, peculiar stars and unresolved binaries.
30
+ * - `radius` by `angular_diameter_and_distance` or `estimated_angular_diameter_and_distance`: as the two above, at a `distance` the literature compilation gives (from a cluster or association the star belongs to, or parallaxes averaged): `R = theta * d * au / (2 R_sun)`, about `107.516 * theta * d` for theta in mas and d in kpc. The compilation lists a distance only where a star's radius should be computed at it, so its parallaxes (masers, say) and distances with an error come before the catalogs' parallaxes, the most precise of them first; an asymmetric error counts as its larger side.
31
+ * - `radius` by `luminosity_and_temperature`: by the Stefan-Boltzmann law, `R / R_sun = sqrt(L / L_sun) * (5772 K / T)^2`, with the IAU nominal solar temperature, from a luminosity (or `log_luminosity`) and an effective temperature that one publication in the literature compilation gives together. One sigma: `sigma_R / R = sqrt((sigma_L / 2L)^2 + (2 sigma_T / T)^2)`, or null when either has no error. A `log_luminosity` converts to `L` with each end of its error, `10^(log L + sigma)` and `10^(log L - sigma)`, and the larger side is `sigma_L`. Among several publications, the most precise pair, else the first listed. It is given only when no angular diameter can be placed: the luminosity rests on the distance and extinction its paper assumed, and the temperature on a model, so it is the least direct.
32
+ *
33
+ * The error of an input is its symmetric error, or the larger side of an asymmetric one; an error of zero counts as none. At most one `radius` is given, by the first method above that has its inputs.
34
+ */
35
+ derived: Schemas['DerivedValue'][]
36
+ sources: Schemas['CatalogRecord'][]
37
+ }
38
+ /** Where a value comes from. */
39
+ Source: {
40
+ /** The catalog the value comes from. `metadata.catalogs` describes it. */
41
+ catalog: string
42
+ /** The catalog release the value was read from. */
43
+ release: string | null
44
+ /** The record's key in the catalog: a SIMBAD oid, a planet or host name, a source id, a JMDC star name, a HIP number. */
45
+ record?: string
46
+ }
47
+ Position: {
48
+ ra: number
49
+ dec: number
50
+ unit: 'deg'
51
+ frame: string | null
52
+ /** A Julian year; null when the source does not state it. */
53
+ epoch: number | null
54
+ uncertainty: Schemas['ErrorEllipse'] | null
55
+ quality?: string
56
+ reference?: Schemas['Reference']
57
+ source: Schemas['Source'] | null
58
+ }
59
+ /** An error ellipse. */
60
+ ErrorEllipse: {
61
+ kind: 'error_ellipse'
62
+ major: number | null
63
+ minor: number | null
64
+ /** Position angle of the major axis, east of north. */
65
+ angle_deg: number | null
66
+ unit: string
67
+ }
68
+ /** The publication a value comes from: an ADS bibcode, or a citation with a link. */
69
+ Reference: {
70
+ bibcode?: string
71
+ label?: string
72
+ url?: string
73
+ }
74
+ /** One identifier as written, with every source that lists it. */
75
+ Identifier: {
76
+ identifier: string
77
+ /** The catalog or scheme the identifier belongs to. */
78
+ namespace: string
79
+ sources: (Schemas['Source'] & {
80
+ confidence: number
81
+ method: string
82
+ })[]
83
+ }
84
+ Relation: {
85
+ relation: ('orbits' | 'orbited_by') | (string & {})
86
+ object: Schemas['ObjectSummary']
87
+ confidence: number
88
+ method: string
89
+ source: Schemas['Source']
90
+ }
91
+ ObjectSummary: {
92
+ id: string
93
+ canonical_name: string
94
+ object_type: string | null
95
+ }
96
+ /** One value from one catalog record, exactly as published. Values are never converted, averaged or combined: a SIMBAD parallax and a CNS5 parallax are two measurements. A value the catalog leaves empty is omitted, never zeroed. */
97
+ Measurement: {
98
+ /** What was measured: parallax, proper_motion_ra, proper_motion_dec, radial_velocity, redshift, distance, effective_temperature, radius, mass, minimum_mass, metallicity, luminosity, log_luminosity, log_surface_gravity, age, orbital_period, semi_major_axis, eccentricity, inclination, equilibrium_temperature, insolation_flux, spectral_type, morphological_type, classification, angular_size_major_axis, angular_size_minor_axis, angular_size_position_angle, angular_diameter_limb_darkened, angular_diameter_uniform_disk, angular_diameter_limb_darkened_estimated, angular_diameter_estimate_chi2, magnitude_<system>_<band> (`magnitude_gaia_g`), magnitude_<band> (`magnitude_v`), color_<system>_<band>_<band> (`color_johnson_b_v`), and others. A magnitude named by its band alone (`magnitude_u`, `_b`, `_v`, `_r`, `_i`, `_j`, `_h`, `_k`) is one of SIMBAD's, compiled from the paper its reference names, so the band's exact system varies with the paper (R and I Johnson's or Cousins', J, H and K 2MASS's or another survey's). Its `basis`, where SIMBAD gives one, says whether it is a Vega or an AB magnitude. `classification` is the catalog's own code for the object's type (SIMBAD's main type, such as `LP?`), not the canonical type an object's `object_type` gives. `proper_motion_ra` is mu_alpha* = mu_alpha cos(dec). A star's angular diameter is limb-darkened when corrected for its darker edge, the diameter of the star itself; a uniform disk fitted to the data is a few percent smaller, depending on the wavelength. An `_estimated` diameter was not measured: JSDC computes it from the star's magnitudes and spectral type, through surface-brightness relations calibrated on measured diameters, and `angular_diameter_estimate_chi2` says how far its estimates from different pairs of magnitudes disagree. Gaia DR4's astrophysical parameters are model estimates too, so each quantity ends in `_estimated`: `effective_temperature_estimated`, `log_surface_gravity_estimated`, `metallicity_estimated`, `distance_estimated`, `extinction_gaia_g_estimated`, `reddening_gaia_bp_rp_estimated`, `radius_estimated`, `luminosity_estimated`, `mass_estimated`, `age_estimated`, `evolutionary_stage_estimated` and `spectral_type_estimated`. Their `basis` names the pipeline (GSP-Phot, FLAME, ESP-UCD, ESP-ELS), and their uncertainty is the 16th and 84th percentiles ESA publishes (`percentiles`), or none where ESA gives none. Gaia DR4 also gives `parallax_zero_point`, ESA's tentative zero-point for the source, to subtract from its parallax before computing a distance; `class_probability_star`, `_quasar` and `_galaxy` (probabilities, not classifications); and `photometric_variability`, its variability flag. */
99
+ quantity: string
100
+ /** The value as published. */
101
+ value: number | string
102
+ /** Written one way for every catalog: deg, arcmin, mas, mas/yr, km/s, km, pc, kpc, AU, d, Gyr, K, mag, dex, R_earth, M_earth, R_sun, M_sun, L_sun, S_earth (flux relative to Earth's), log10(L_sun), log10(cm/s^2). Null for a dimensionless value or a label. */
103
+ unit: string | null
104
+ uncertainty: Schemas['SymmetricUncertainty'] | Schemas['AsymmetricUncertainty'] | Schemas['ErrorEllipse'] | Schemas['PercentileUncertainty'] | null
105
+ /** Set when the value is a limit rather than a measurement. */
106
+ limit?: 'upper' | 'lower'
107
+ /** What the value is of, or how it was obtained, in the catalog's words. */
108
+ basis?: string
109
+ /** The catalog's quality grade for the value (SIMBAD: A best to E worst). */
110
+ quality?: string
111
+ /** The catalog's note on the value or the object, as published. JMDC's say how a diameter was derived and flag doubtful values, pulsating stars and binaries. */
112
+ note?: string
113
+ reference?: Schemas['Reference']
114
+ source: Schemas['Source']
115
+ }
116
+ /** A one-sigma error, in the value's unit. */
117
+ SymmetricUncertainty: {
118
+ kind: 'symmetric'
119
+ value: number
120
+ }
121
+ /** Upper and lower errors, in the value's unit. */
122
+ AsymmetricUncertainty: {
123
+ kind: 'asymmetric'
124
+ /** The upper error (>= 0), as published. */
125
+ plus: number | null
126
+ /** The lower error (<= 0), as published. */
127
+ minus: number | null
128
+ }
129
+ /** 16th and 84th percentiles of a distribution whose median is the value. */
130
+ PercentileUncertainty: {
131
+ kind: 'percentiles'
132
+ p16: number | null
133
+ p84: number | null
134
+ }
135
+ /** A value the API computes from published measurements, not one a catalog publishes. It names its method and its inputs, so it can be checked and recomputed. */
136
+ DerivedValue: {
137
+ /** What the value is: so far only `radius`. */
138
+ quantity: string
139
+ /** The value as computed, in full. */
140
+ value: number
141
+ /** Written as for measurements. */
142
+ unit: string
143
+ /** One sigma, propagated to first order from the published errors of the inputs. Null when an input has no error. */
144
+ uncertainty: Schemas['SymmetricUncertainty'] | null
145
+ /** How the value was computed. The field that holds it describes each method. */
146
+ method: ('angular_diameter_and_parallax' | 'angular_diameter_and_distance' | 'estimated_angular_diameter_and_parallax' | 'estimated_angular_diameter_and_distance' | 'luminosity_and_temperature') | (string & {})
147
+ /** The published measurements the value was computed from, exactly as `measurements` lists them, with their sources and references. */
148
+ inputs: Schemas['Measurement'][]
149
+ }
150
+ /** A catalog record matched to the object. */
151
+ CatalogRecord: {
152
+ catalog: string
153
+ release: string | null
154
+ record: string
155
+ match: {
156
+ /** How the record was matched to the object. */
157
+ method: string
158
+ confidence: number
159
+ }
160
+ }
161
+ ObjectMetadata: {
162
+ api_version: 'v1'
163
+ generated_at: string
164
+ resolution: Schemas['Resolution']
165
+ catalogs: Schemas['Catalog'][]
166
+ }
167
+ /** How the request was resolved to an object. */
168
+ Resolution: Schemas['ResolutionById'] | Schemas['ResolutionByIdentifier']
169
+ ResolutionById: {
170
+ query: string
171
+ method: 'object_id'
172
+ /** Set when the requested id was merged into this object. */
173
+ merged_from?: string
174
+ }
175
+ ResolutionByIdentifier: {
176
+ query: string
177
+ method: 'identifier'
178
+ matched_identifier: string
179
+ namespace: string
180
+ /** How the query relates to the object's own names: `name` is one of them as written (ignoring case and spaces), `name_variant` another spelling of one, `alias` another of its identifiers. `loose` matched only with spaces and punctuation ignored (`Stephenson 218` for Stephenson 2-18), which is tried among names, not designations, and only when nothing matches otherwise. */
181
+ match: ('alias' | 'name_variant' | 'name' | 'loose') | (string & {})
182
+ confidence: number
183
+ matched_by: string
184
+ source_catalog: string
185
+ /** Set when other objects match the query as well as this one, and it was chosen because SIMBAD lists at least 10 times as many publications for it as for the next ("M 87" is the galaxy). They are in `other_candidates`, with their `citations`. Without such a lead, the query is ambiguous. */
186
+ chosen_by?: 'citations' | (string & {})
187
+ other_candidates: Schemas['Candidate'][]
188
+ }
189
+ /** Another object the query could name. */
190
+ Candidate: {
191
+ id: string
192
+ canonical_name: string
193
+ object_type: string | null
194
+ matched_identifier: string
195
+ match: ('alias' | 'name_variant' | 'name' | 'loose') | (string & {})
196
+ confidence: number
197
+ /** How many publications SIMBAD lists for the object, a measure of how studied it is. Null for an object without a SIMBAD record. */
198
+ citations: number | null
199
+ }
200
+ /** A catalog a response draws on, with the release read and what its license asks of you. SIMBAD's ODbL requires attribution. */
201
+ Catalog: {
202
+ id: string
203
+ name: string
204
+ provider: string
205
+ /** The catalog's active release, the one read. */
206
+ release: string | null
207
+ license: string | null
208
+ /** How the catalog asks to be cited. */
209
+ citation: string | null
210
+ homepage_url: string | null
211
+ }
212
+ AmbiguousIdentifierError: {
213
+ error: {
214
+ code: 'ambiguous_identifier'
215
+ message: string
216
+ details: {
217
+ candidates: Schemas['Candidate'][]
218
+ }
219
+ }
220
+ }
221
+ /** The request failed validation. `details.issues` says what is wrong. */
222
+ InvalidRequestError: {
223
+ error: {
224
+ code: 'invalid_request'
225
+ message: string
226
+ details: {
227
+ /** The part of the request that failed: param, query, json or header. */
228
+ target: string
229
+ issues: {
230
+ path: string
231
+ message: string
232
+ }[]
233
+ }
234
+ }
235
+ }
236
+ /** The request sent no API key. Every route needs one. */
237
+ ApiKeyRequiredError: {
238
+ error: {
239
+ code: 'api_key_required'
240
+ message: string
241
+ }
242
+ }
243
+ /** The request sent an API key that is malformed, unknown or revoked. */
244
+ InvalidApiKeyError: {
245
+ error: {
246
+ code: 'invalid_api_key'
247
+ message: string
248
+ }
249
+ }
250
+ /** No object is known by the identifier, even ignoring case, spacing and punctuation. `details.suggestions` offers names that look like it; none is taken for it. */
251
+ UnknownIdentifierError: {
252
+ error: {
253
+ code: 'not_found'
254
+ message: string
255
+ /** Given for a name or designation; not for an object id. */
256
+ details?: {
257
+ /** Objects whose names look like the identifier ("Betelguese" suggests Betelgeuse), most alike first, up to 5. Only names are compared, not designations; empty when none is close. */
258
+ suggestions: Schemas['Suggestion'][]
259
+ }
260
+ }
261
+ }
262
+ /** An object whose name looks like a query nothing matched. A suggestion, not a match: resolve it by its id. */
263
+ Suggestion: {
264
+ id: string
265
+ canonical_name: string
266
+ object_type: string | null
267
+ /** The name of the object that looks like the query. */
268
+ name: string
269
+ /** How alike the name and the query are, from 0.3 to 1: the trigram similarity of the two with spaces and punctuation removed. */
270
+ similarity: number
271
+ /** How many publications SIMBAD lists for the object. Null without a SIMBAD record. */
272
+ citations: number | null
273
+ }
274
+ /** The key made too many requests in a short time. Retry after the seconds `Retry-After` gives. */
275
+ RateLimitedError: {
276
+ error: {
277
+ code: 'rate_limited'
278
+ message: string
279
+ }
280
+ }
281
+ /** The account has used the requests its plan allows this month. `Retry-After` gives the seconds until the next month starts. */
282
+ QuotaExceededError: {
283
+ error: {
284
+ code: 'quota_exceeded'
285
+ message: string
286
+ details: {
287
+ /** The account's plan. */
288
+ plan: string
289
+ /** Requests the plan allows a month. */
290
+ limit: number
291
+ /** Requests counted this month. */
292
+ used: number
293
+ /** When the next month starts, in UTC. */
294
+ resets_at: string
295
+ }
296
+ }
297
+ }
298
+ InternalError: {
299
+ error: {
300
+ code: 'internal_error'
301
+ message: string
302
+ }
303
+ }
304
+ UnavailableError: {
305
+ error: {
306
+ code: 'unavailable'
307
+ message: string
308
+ }
309
+ }
310
+ PlanetsResponse: {
311
+ data: Schemas['Planet'][]
312
+ metadata: Schemas['PlanetsMetadata']
313
+ }
314
+ Planet: {
315
+ id: string
316
+ canonical_name: string
317
+ object_type: string | null
318
+ /** How the planet is known to orbit the target: the catalog that says so, and how it was linked. */
319
+ relation: {
320
+ confidence: number
321
+ method: string
322
+ source: Schemas['Source']
323
+ }
324
+ measurements: Schemas['Measurement'][]
325
+ }
326
+ PlanetsMetadata: {
327
+ api_version: 'v1'
328
+ generated_at: string
329
+ resolution: Schemas['Resolution']
330
+ target: Schemas['ObjectSummary']
331
+ catalogs: Schemas['Catalog'][]
332
+ }
333
+ NearbyResponse: {
334
+ data: Schemas['NearbyStar'][]
335
+ metadata: Schemas['NearbyMetadata']
336
+ }
337
+ /** A star found by a 3D search. `distance` is from the search center and `distance_from_sun` from the Sun; both are derived from parallaxes (see Distance), not published. `photometry` is as `GET /stars` gives it. */
338
+ NearbyStar: {
339
+ object: (Schemas['ObjectSummary'] & {
340
+ /** `catalog_record`: identity sync linked this catalog record to the object. `shared_gaia_dr3`: SIMBAD lists the star's Gaia DR3 source for the object. */
341
+ matched_by: ('catalog_record' | 'shared_gaia_dr3') | (string & {})
342
+ }) | null
343
+ designations: {
344
+ cns5: number | null
345
+ /** Gliese-Jahreiss number, from CNS5. */
346
+ gj: string | null
347
+ /** Component of a multiple system, from CNS5. */
348
+ component: string | null
349
+ hip: number | null
350
+ /** Gaia DR3 source_id, as a string (it exceeds 2^53). */
351
+ gaia_dr3: string | null
352
+ }
353
+ /** As published. Null for the Sun. */
354
+ position: Schemas['StarPosition'] | null
355
+ /** As published. Null for the Sun. */
356
+ parallax: Schemas['Parallax'] | null
357
+ distance: Schemas['Distance']
358
+ distance_from_sun: Schemas['Distance']
359
+ /** How many planets the NASA Exoplanet Archive lists for the star (so 0 for the Sun, whose planets come from the Solar System compilation). `/objects/{id}/planets` lists them, the Sun's too. */
360
+ planet_count: number
361
+ photometry: Schemas['StarPhotometry']
362
+ source: Schemas['Source']
363
+ }
364
+ StarPosition: {
365
+ ra: number
366
+ dec: number
367
+ unit: 'deg'
368
+ frame: 'ICRS'
369
+ /** The epoch of the published position, as a Julian year. */
370
+ epoch: number | null
371
+ }
372
+ Parallax: {
373
+ value: number
374
+ unit: 'mas'
375
+ uncertainty: Schemas['SymmetricUncertainty'] | null
376
+ }
377
+ /** A distance derived from parallax (1000 / parallax in mas), not published by a catalog. Its uncertainty is propagated to first order from the parallax errors; null when an error is missing. */
378
+ Distance: {
379
+ value: number
380
+ unit: 'pc'
381
+ uncertainty: Schemas['SymmetricUncertainty'] | null
382
+ }
383
+ /** Gaia G, BP and RP as published, CNS5's G and G - RP from Hipparcos for the stars Gaia has no G for, and the color and absolute magnitudes derived from them. */
384
+ StarPhotometry: {
385
+ /** Gaia G, as the row's catalog publishes it. CNS5 rows: CNS5's `Gmag`, Gaia EDR3 G as corrected by CNS5 (for a source in both catalogs it differs from GCNS's by up to about 0.03 mag, at G near 20), with CNS5's error. GCNS rows: Gaia EDR3 `phot_g_mean_mag`, whose error GCNS gives only as a flux over error ratio, which this table does not carry, so `uncertainty` is null. Null when there is no Gaia G: stars too bright for Gaia (Sirius A, Vega, Altair), most of which have `g_mag_from_hip` instead, and others Gaia did not measure. */
386
+ g_mag: Schemas['Magnitude'] | null
387
+ /** Gaia EDR3 BP, as the row's catalog publishes it. The nearby-stars table does not carry its error, so `uncertainty` is null; `GET /objects/{identifier}` lists CNS5's BP with its error. */
388
+ bp_mag: Schemas['Magnitude'] | null
389
+ /** Gaia EDR3 RP, as the row's catalog publishes it. Its error is not carried either. */
390
+ rp_mag: Schemas['Magnitude'] | null
391
+ /** Derived: the color `BP - RP`, `bp_mag` minus `rp_mag`, to 1e-9 mag (the magnitudes have at most 7 decimals, so this is their exact decimal difference: 4.7995 - 3.3206 is 1.4789). `uncertainty` is null because BP's and RP's errors are not carried. No reddening correction is applied. Null when either magnitude is missing. */
392
+ bp_rp: Schemas['DerivedMagnitude'] | null
393
+ /** Derived: the absolute G magnitude `M_G = G + 5 log10(parallax / mas) - 10`, which is `G - 5 log10(d / 10 pc)` at `d = 1000 / parallax`. Its one sigma, to first order, is `sqrt(sigma_G^2 + (5 / ln(10) * sigma_parallax / parallax)^2)`. `uncertainty` is null when G's error is not available (every GCNS row); `parallax_uncertainty` still gives the parallax term. The parallax may come from another source than G: CNS5 adopts one parallax per star (Gaia, Hipparcos or ground-based). No extinction correction (see `GET /stars`). Null unless the star has both G and a parallax. */
394
+ absolute_g_mag: Schemas['AbsoluteMagnitude'] | null
395
+ /** G estimated from Hipparcos photometry, as CNS5 publishes it (`GHIPmag`: the Hipparcos Hp magnitude converted to the G band), with CNS5's error. Not a Gaia measurement, and not interchangeable with `g_mag`: CNS5 gives it only for the Hipparcos stars it has no Gaia G for, such as Sirius A, Vega and Altair, about 140 rows, so a star has one or the other. Null on every other row, GCNS's included. */
396
+ g_mag_from_hip: Schemas['Magnitude'] | null
397
+ /** The color G - RP computed from Hipparcos V and I, as CNS5 publishes it (`G-RPHIP`), with CNS5's error. Given for the same stars as `g_mag_from_hip`, which have no Gaia BP or RP, so no `bp_rp`. Not the same color as `bp_rp`: G - RP spans about a third of BP - RP's range for the same stars. */
398
+ g_rp_from_hip: Schemas['Magnitude'] | null
399
+ /** Derived: the absolute G magnitude as `absolute_g_mag` gives it, from `g_mag_from_hip` instead of Gaia G, `g_mag_from_hip + 5 log10(parallax / mas) - 10`, with the same first-order uncertainty from CNS5's error for `g_mag_from_hip`. `GET /stars` bounds and sorts on `absolute_g_mag` alone. Null unless the star has `g_mag_from_hip` and a parallax. */
400
+ absolute_g_mag_from_hip: Schemas['AbsoluteMagnitude'] | null
401
+ }
402
+ /** A magnitude as a catalog publishes it, never converted. The star's `source` names the catalog and record. */
403
+ Magnitude: {
404
+ value: number
405
+ unit: 'mag'
406
+ /** The one-sigma error as the catalog publishes it; null when it publishes none, or when the nearby-stars table does not carry it (see the field). */
407
+ uncertainty: Schemas['SymmetricUncertainty'] | null
408
+ }
409
+ /** A magnitude or color the API computes from published values, not one a catalog publishes. The field that holds it states the method. */
410
+ DerivedMagnitude: {
411
+ value: number
412
+ unit: 'mag'
413
+ /** One sigma, propagated to first order from the published errors of the inputs. Null when an input's error is not available (see the field). */
414
+ uncertainty: Schemas['SymmetricUncertainty'] | null
415
+ }
416
+ /** An absolute magnitude the API derives from an apparent magnitude and a parallax. */
417
+ AbsoluteMagnitude: Schemas['DerivedMagnitude'] & {
418
+ /** The parallax's share of the uncertainty alone, `5 / ln(10) * sigma_parallax / parallax` (about `2.1715 / parallax_over_error`). It is given even when G's error is not, and is then usually most of the full uncertainty: Gaia G errors here are under 0.004 mag for nine stars in ten, while the parallax share is about 0.0075 mag for the median GCNS star. Null when the parallax has no published error. */
419
+ parallax_uncertainty: Schemas['SymmetricUncertainty'] | null
420
+ }
421
+ NearbyMetadata: {
422
+ api_version: 'v1'
423
+ generated_at: string
424
+ resolution: Schemas['Resolution']
425
+ target: Schemas['ObjectSummary']
426
+ catalogs: Schemas['Catalog'][]
427
+ center: Schemas['NearbyCenter']
428
+ query: {
429
+ radius: {
430
+ value: number
431
+ unit: 'pc' | 'ly'
432
+ /** In parsecs. */
433
+ pc: number
434
+ }
435
+ /** Whether only stars with known planets were returned. */
436
+ has_planets: boolean
437
+ }
438
+ coverage: Schemas['Coverage']
439
+ page: Schemas['Page']
440
+ }
441
+ /** The star in the nearby-stars table that stands for an object. */
442
+ NearbyCenter: {
443
+ object: Schemas['ObjectSummary']
444
+ /** `host_star` when the object asked for is a planet, so the star it orbits stands in for it. */
445
+ via: ('target' | 'host_star') | (string & {})
446
+ /** Null for the Sun. */
447
+ position: Schemas['StarPosition'] | null
448
+ distance_from_sun: Schemas['Distance']
449
+ source: Schemas['Source']
450
+ }
451
+ /** The nearby-stars table covers a sphere of `volume_radius_pc` around the Sun. `sphere_inside_volume` is false when part of the search sphere lies beyond it, so stars there are missing from the results. */
452
+ Coverage: {
453
+ volume_radius_pc: number
454
+ sphere_inside_volume: boolean
455
+ }
456
+ /** Results come in pages, in a fixed order. */
457
+ Page: {
458
+ limit: number
459
+ /** How many results the query has across all pages. */
460
+ total: number
461
+ /** Pass as `cursor` to get the next page. Null on the last page. */
462
+ next_cursor: string | null
463
+ }
464
+ OutsideCoverageError: {
465
+ error: {
466
+ code: 'outside_coverage'
467
+ message: string
468
+ }
469
+ }
470
+ PointNearbyResponse: {
471
+ data: Schemas['NearbyStar'][]
472
+ metadata: Schemas['PointNearbyMetadata']
473
+ }
474
+ PointNearbyMetadata: {
475
+ api_version: 'v1'
476
+ generated_at: string
477
+ center: Schemas['PointCenter']
478
+ query: {
479
+ ra: number
480
+ dec: number
481
+ distance: {
482
+ value: number
483
+ unit: 'pc' | 'ly'
484
+ /** In parsecs. */
485
+ pc: number
486
+ }
487
+ radius: {
488
+ value: number
489
+ unit: 'pc' | 'ly'
490
+ /** In parsecs. */
491
+ pc: number
492
+ }
493
+ /** Whether only stars with known planets were returned. */
494
+ has_planets: boolean
495
+ }
496
+ coverage: Schemas['Coverage']
497
+ page: Schemas['Page']
498
+ catalogs: Schemas['Catalog'][]
499
+ }
500
+ /** The point the search is centered on, as given (its uncertainty is null). */
501
+ PointCenter: {
502
+ position: Schemas['StarPosition']
503
+ distance_from_sun: Schemas['Distance']
504
+ }
505
+ DistanceBetweenResponse: {
506
+ /** `distance` is the straight-line distance between the two stars, derived from their parallaxes (see Distance). */
507
+ data: {
508
+ distance: Schemas['Distance']
509
+ from: Schemas['NearbyCenter']
510
+ to: Schemas['NearbyCenter']
511
+ }
512
+ metadata: Schemas['DistanceBetweenMetadata']
513
+ }
514
+ DistanceBetweenMetadata: {
515
+ api_version: 'v1'
516
+ generated_at: string
517
+ resolution: {
518
+ from: Schemas['Resolution']
519
+ to: Schemas['Resolution']
520
+ }
521
+ catalogs: Schemas['Catalog'][]
522
+ }
523
+ ResolveResponse: {
524
+ /** One entry per identifier sent, in the same order. */
525
+ data: Schemas['ResolveEntry'][]
526
+ metadata: Schemas['ResolveMetadata']
527
+ }
528
+ /** What one identifier resolved to. */
529
+ ResolveEntry: Schemas['ResolvedIdentifier'] | Schemas['AmbiguousIdentifier'] | Schemas['UnknownIdentifier'] | Schemas['InvalidIdentifier']
530
+ ResolvedIdentifier: {
531
+ /** The identifier as sent. */
532
+ query: string
533
+ status: 'resolved'
534
+ object: Schemas['ObjectSummary']
535
+ /** The object's position, as `GET /objects/{identifier}` gives it: as published, at the epoch stated, with no proper motion applied. Null when no hosted catalog gives one. */
536
+ position: Schemas['Position'] | null
537
+ resolution: Schemas['Resolution']
538
+ }
539
+ AmbiguousIdentifier: {
540
+ query: string
541
+ status: 'ambiguous'
542
+ message: string
543
+ /** The objects it could name. Resolve one by its id. */
544
+ candidates: Schemas['Candidate'][]
545
+ }
546
+ UnknownIdentifier: {
547
+ query: string
548
+ status: 'not_found'
549
+ message: string
550
+ /** For a name or designation: objects whose names look like it, most alike first, up to 5. Suggestions, not matches: resolve one by its id. */
551
+ suggestions?: Schemas['Suggestion'][]
552
+ }
553
+ InvalidIdentifier: {
554
+ query: string
555
+ status: 'invalid'
556
+ message: string
557
+ }
558
+ ResolveMetadata: {
559
+ api_version: 'v1'
560
+ generated_at: string
561
+ counts: {
562
+ resolved: number
563
+ ambiguous: number
564
+ not_found: number
565
+ invalid: number
566
+ }
567
+ /** The catalogs the identifiers were matched in, and those the positions come from. */
568
+ catalogs: Schemas['Catalog'][]
569
+ }
570
+ UnsupportedMediaTypeError: {
571
+ error: {
572
+ code: 'unsupported_media_type'
573
+ message: string
574
+ }
575
+ }
576
+ ResolveRequest: {
577
+ identifiers: string[]
578
+ }
579
+ HierarchyResponse: {
580
+ data: Schemas['HierarchyLink'][]
581
+ metadata: Schemas['HierarchyMetadata']
582
+ }
583
+ /** One link in SIMBAD's hierarchy, seen from the target. */
584
+ HierarchyLink: {
585
+ object: Schemas['ObjectSummary']
586
+ /** SIMBAD's membership probability, in percent, as published. Null when SIMBAD gives none. A handful of SIMBAD links carry values above 100; they are passed through unchanged. */
587
+ membership: number | null
588
+ /** The paper that established the link. */
589
+ reference: Schemas['Reference'] | null
590
+ source: Schemas['Source']
591
+ }
592
+ HierarchyMetadata: {
593
+ api_version: 'v1'
594
+ generated_at: string
595
+ resolution: Schemas['Resolution']
596
+ target: Schemas['ObjectSummary']
597
+ catalogs: Schemas['Catalog'][]
598
+ page: Schemas['Page']
599
+ }
600
+ SolutionsResponse: {
601
+ data: Schemas['Solution'][]
602
+ metadata: Schemas['SolutionsMetadata']
603
+ }
604
+ /** One published parameter set. */
605
+ Solution: {
606
+ /** `planet`: a planet's orbital and physical parameters from one paper. `star`: a host star's parameters from one paper. */
607
+ kind: ('planet' | 'star') | (string & {})
608
+ /** The planet or star, as the archive names it. */
609
+ name: string
610
+ /** The paper the parameter set comes from. */
611
+ reference: Schemas['Reference'] | null
612
+ /** Whether the archive uses this set as the planet's default. Null for star sets, which the archive doesn't rank. */
613
+ default: boolean | null
614
+ /** Publication month, as the archive gives it. */
615
+ published: string | null
616
+ /** The values this paper reports. Each measurement's `reference` is the paper; a star set's distance has its own reference. `source` names the catalog and release but no `record`: the archive's per-paper rows have no published key, so a set is identified by `name` and `reference`. (`/catalogs/nasa-exoplanet-archive/records/{name}` is the composite row, which holds the values `GET /objects/{identifier}` shows, not these.) */
617
+ measurements: Schemas['Measurement'][]
618
+ }
619
+ SolutionsMetadata: {
620
+ api_version: 'v1'
621
+ generated_at: string
622
+ resolution: Schemas['Resolution']
623
+ target: Schemas['ObjectSummary']
624
+ catalogs: Schemas['Catalog'][]
625
+ }
626
+ SystemResponse: {
627
+ data: {
628
+ /** The system the stars belong to. Null for a single star. */
629
+ system: Schemas['StarSystem'] | null
630
+ /** The system's stars, by membership then name; a single star when there is no system. */
631
+ stars: Schemas['SystemStar'][]
632
+ /** Planets that orbit the system as a whole: circumbinary planets, or planets the NASA Exoplanet Archive lists under the system's name rather than one of its stars. */
633
+ system_planets: Schemas['Planet'][]
634
+ }
635
+ metadata: Schemas['SystemMetadata']
636
+ }
637
+ /** The object SIMBAD uses for the system: a multiple-star object, or the star its components are filed under. */
638
+ StarSystem: {
639
+ object: Schemas['ObjectSummary']
640
+ measurements: Schemas['Measurement'][]
641
+ }
642
+ /** One star of the system, with its measurements and planets. */
643
+ SystemStar: {
644
+ object: Schemas['ObjectSummary']
645
+ /** SIMBAD's membership probability for the star in the system, in percent, as published. Null for a single star, or when SIMBAD gives none. */
646
+ membership: number | null
647
+ /** The paper that places the star in the system. Null for a single star. */
648
+ reference: Schemas['Reference'] | null
649
+ measurements: Schemas['Measurement'][]
650
+ /** Planets that orbit this star, ordered by orbital period. */
651
+ planets: Schemas['Planet'][]
652
+ }
653
+ SystemMetadata: {
654
+ api_version: 'v1'
655
+ generated_at: string
656
+ resolution: Schemas['Resolution']
657
+ target: Schemas['ObjectSummary']
658
+ catalogs: Schemas['Catalog'][]
659
+ /** How the system was reached from the target: `target` (it is the star or the system), `host_star` (it is a planet, so its host star was used), `parent` (it is a star that SIMBAD places in a stellar object, the system). A planet whose host is in a system gives `host_star`. */
660
+ found_by: ('target' | 'host_star' | 'parent') | (string & {})
661
+ /** True when the system has more than 50 stars and only the first 50 are listed. */
662
+ stars_truncated: boolean
663
+ }
664
+ NotASystemError: {
665
+ error: {
666
+ code: 'not_a_system'
667
+ message: string
668
+ }
669
+ }
670
+ SkyConeResponse: {
671
+ data: Schemas['ConeMatch'][]
672
+ metadata: Schemas['SkyConeMetadata']
673
+ }
674
+ /** An object within the cone, with the position it was matched on. */
675
+ ConeMatch: {
676
+ object: Schemas['ObjectSummary']
677
+ /** Derived: the great-circle angle from the center to `position`. No uncertainty is given; `position.uncertainty` is the position's own. */
678
+ separation: {
679
+ value: number
680
+ unit: 'arcsec'
681
+ }
682
+ position: Schemas['ConePosition']
683
+ source: Schemas['Source']
684
+ }
685
+ /** The position an object was matched on, as its catalog publishes it. */
686
+ ConePosition: {
687
+ ra: number
688
+ dec: number
689
+ unit: 'deg'
690
+ frame: string | null
691
+ /** The epoch of the position, as a Julian year. SIMBAD positions are at J2000; no proper motion is applied to any position. */
692
+ epoch: number | null
693
+ /** The published error ellipse, in mas, when there is one. */
694
+ uncertainty: Schemas['ErrorEllipse'] | null
695
+ /** SIMBAD's position quality, A (best) to E. */
696
+ quality: string | null
697
+ /** The paper the position comes from. */
698
+ reference: Schemas['Reference'] | null
699
+ }
700
+ SkyConeMetadata: {
701
+ api_version: 'v1'
702
+ generated_at: string
703
+ center: {
704
+ ra: number
705
+ dec: number
706
+ unit: 'deg'
707
+ frame: 'ICRS'
708
+ }
709
+ query: {
710
+ radius: {
711
+ value: number
712
+ unit: 'arcsec' | 'arcmin' | 'deg'
713
+ /** The radius in degrees. */
714
+ deg: number
715
+ }
716
+ }
717
+ page: Schemas['Page']
718
+ catalogs: Schemas['Catalog'][]
719
+ }
720
+ ObjectConeResponse: {
721
+ data: Schemas['ConeMatch'][]
722
+ metadata: Schemas['ObjectConeMetadata']
723
+ }
724
+ ObjectConeMetadata: {
725
+ api_version: 'v1'
726
+ generated_at: string
727
+ resolution: Schemas['Resolution']
728
+ target: Schemas['ObjectSummary']
729
+ catalogs: Schemas['Catalog'][]
730
+ /** The position the cone is drawn on: the target's SIMBAD position (J2000), the same kind as almost every position searched, or the target's own position when SIMBAD has none. */
731
+ center: {
732
+ ra: number
733
+ dec: number
734
+ unit: 'deg'
735
+ frame: string | null
736
+ epoch: number | null
737
+ source: Schemas['Source']
738
+ }
739
+ query: {
740
+ radius: {
741
+ value: number
742
+ unit: 'arcsec' | 'arcmin' | 'deg'
743
+ /** The radius in degrees. */
744
+ deg: number
745
+ }
746
+ }
747
+ page: Schemas['Page']
748
+ }
749
+ NoPositionError: {
750
+ error: {
751
+ code: 'no_position'
752
+ message: string
753
+ }
754
+ }
755
+ CatalogsResponse: {
756
+ data: Schemas['CatalogSummary'][]
757
+ metadata: Schemas['CatalogsMetadata']
758
+ }
759
+ /** A hosted catalog. `release` is its active release, the one the API reads now; it is null while a catalog has none. `license` is null when the publisher states none. */
760
+ CatalogSummary: Schemas['Catalog'] & {
761
+ /** What the catalog contains. */
762
+ description: string | null
763
+ /** How much of the catalog Arcosmos holds. `full`: every row of the release, so a record missing here is missing from the catalog. `subset`: part of it (some columns or rows); `tables` says which columns. `on_demand`: fetched from the publisher when a request needs it. */
764
+ hosting: ('full' | 'subset' | 'on_demand') | (string & {})
765
+ }
766
+ CatalogsMetadata: {
767
+ api_version: 'v1'
768
+ generated_at: string
769
+ }
770
+ CatalogResponse: {
771
+ data: Schemas['CatalogDetail']
772
+ metadata: Schemas['CatalogsMetadata']
773
+ }
774
+ /** A hosted catalog. `release` is its active release, the one the API reads now; it is null while a catalog has none. `license` is null when the publisher states none. */
775
+ CatalogDetail: Schemas['CatalogSummary'] & {
776
+ /** Every release Arcosmos has loaded, newest first. */
777
+ releases: Schemas['CatalogRelease'][]
778
+ /** The tables and columns of the active release; empty when there is none. */
779
+ tables: Schemas['CatalogTable'][]
780
+ }
781
+ /** One release of a catalog: a version of its data, loaded as a whole. */
782
+ CatalogRelease: {
783
+ /** The value `source.release` carries. Catalogs without numbered releases are named by date: the day the data was retrieved, or for SIMBAD the date of the newest change the harvest holds. A release Arcosmos derives names the releases it was built from. */
784
+ id: string
785
+ /** `active`: the release the API reads now (a catalog has at most one). `superseded`: served earlier and replaced by a newer release; values citing it came from that older data. `loading`: being loaded, not served yet. `failed`: a load that failed and was never served. */
786
+ status: ('active' | 'superseded' | 'loading' | 'failed') | (string & {})
787
+ /** When the data was retrieved from the publisher. Null for a release Arcosmos derives from other catalogs (see `derived_from`). */
788
+ retrieved_at: string | null
789
+ /** When the publisher released this version; null when it does not say. */
790
+ published_at: string | null
791
+ /** When the API started serving the release; null if it never did. */
792
+ activated_at: string | null
793
+ /** For a catalog Arcosmos builds from others, the releases this one was built from. Cite those catalogs. Empty for a release retrieved from its publisher. */
794
+ derived_from: Schemas['ReleaseRef'][]
795
+ }
796
+ /** A release of a catalog. `GET /catalogs/{catalog}` describes it. */
797
+ ReleaseRef: {
798
+ catalog: string
799
+ release: string
800
+ }
801
+ CatalogTable: {
802
+ /** The table's name within the catalog: the publisher's own table name where it has several (`pscomppars`, `basic`). */
803
+ name: string
804
+ /** How many rows the release holds. */
805
+ rows: number | null
806
+ /** The table's columns, in the catalog's order. */
807
+ columns: Schemas['CatalogColumn'][]
808
+ }
809
+ /** A column of a catalog table, documented as the catalog publishes it. */
810
+ CatalogColumn: {
811
+ /** The column name, as the catalog publishes it. */
812
+ name: string
813
+ /** The catalog's description of the column. Null when it publishes none. */
814
+ description: string | null
815
+ /** The unit as the catalog writes it (`days`, `mas.yr-1`, `Earth Mass`). Measurements in other responses write units one way for every catalog (`d`, `mas/yr`, `M_earth`); the value is the same. Null for a dimensionless column or a label. */
816
+ unit: string | null
817
+ /** The IVOA Unified Content Descriptor the catalog assigns, saying what kind of quantity the column holds. Null when it assigns none. */
818
+ ucd: string | null
819
+ /** The type the catalog declares: a Fortran format for VizieR catalogs (`F9.3` is 9 characters with 3 decimals, `I4` an integer, `A6` text), a VOTable datatype for TAP services (`double`, `int`, `char`). Null for a column Arcosmos computes. */
820
+ datatype: string | null
821
+ /** False when the catalog serves the column but leaves it out of its published schema, so it has no description or unit. */
822
+ documented: boolean
823
+ /** The range of values the catalog declares for the column, in its unit. Set only when the catalog declares one. */
824
+ limits?: {
825
+ min: number | null
826
+ max: number | null
827
+ }
828
+ }
829
+ NotFoundError: {
830
+ error: {
831
+ code: 'not_found'
832
+ message: string
833
+ }
834
+ }
835
+ CatalogRowResponse: {
836
+ data: Schemas['CatalogRow']
837
+ metadata: Schemas['CatalogRowMetadata']
838
+ }
839
+ /** One record of a catalog, exactly as the active release holds it. */
840
+ CatalogRow: {
841
+ source: Schemas['Source']
842
+ /** The table's name within the catalog: the publisher's own table name where it has several (`pscomppars`, `basic`). `GET /catalogs/{id}` documents its columns in full. */
843
+ table: string
844
+ /** The column the record key matched. */
845
+ key_column: string
846
+ /** Every column of the record, in the catalog's order, empty values included. For a record with several rows, its first row. */
847
+ columns: Schemas['RowValue'][]
848
+ /** Set for catalogs whose records span several rows: JMDC, where a record is a star with one row per published measurement. Every row of the record, in the catalog's order, each written like `columns`. */
849
+ rows?: Schemas['RowValue'][][]
850
+ }
851
+ /** One column of a record, with the unit and description the catalog gives it. */
852
+ RowValue: {
853
+ /** The column name, as the catalog publishes it. */
854
+ name: string
855
+ /** The value as stored, never converted. Null where the catalog leaves it empty. Integers too large for a float64 to hold exactly (64-bit ids) and exact decimals are strings. */
856
+ value: string | number | boolean | null
857
+ /** The unit as the catalog writes it (`days`, `mas.yr-1`, `Earth Mass`). Measurements in other responses write units one way for every catalog (`d`, `mas/yr`, `M_earth`); the value is the same. Null for a dimensionless column or a label. */
858
+ unit: string | null
859
+ /** The catalog's description of the column. Null when it publishes none. */
860
+ description: string | null
861
+ }
862
+ CatalogRowMetadata: {
863
+ api_version: 'v1'
864
+ generated_at: string
865
+ /** The catalog the record comes from, with its license and citation. */
866
+ catalogs: Schemas['Catalog'][]
867
+ }
868
+ CatalogConeResponse: {
869
+ data: Schemas['CatalogConeRow'][]
870
+ metadata: Schemas['CatalogConeMetadata']
871
+ }
872
+ /** One row of the catalog within the cone. */
873
+ CatalogConeRow: {
874
+ object: Schemas['ObjectSummary']
875
+ /** Derived: the great-circle angle from the center to the row's `ra` and `dec`, as published (Gaia DR3's are at epoch J2016). */
876
+ separation: {
877
+ value: number
878
+ unit: 'arcsec'
879
+ }
880
+ source: Schemas['Source']
881
+ /** Every column of the row, as published, by name: the values `GET /catalogs/{id}/records/{key}` gives. `metadata.columns` documents each. 64-bit integers are strings. */
882
+ values: { [key: string]: string | number | boolean | null }
883
+ }
884
+ CatalogConeMetadata: {
885
+ api_version: 'v1'
886
+ generated_at: string
887
+ center: {
888
+ ra: number
889
+ dec: number
890
+ unit: 'deg'
891
+ frame: 'ICRS'
892
+ }
893
+ query: {
894
+ radius: {
895
+ value: number
896
+ unit: 'arcsec' | 'arcmin' | 'deg'
897
+ /** The radius in degrees. */
898
+ deg: number
899
+ }
900
+ g_mag_min: {
901
+ /** The value as given. */
902
+ value: number
903
+ /** The unit as given. */
904
+ unit: 'mag'
905
+ /** The value in mag, the unit it is compared in. */
906
+ mag: number
907
+ } | null
908
+ g_mag_max: {
909
+ /** The value as given. */
910
+ value: number
911
+ /** The unit as given. */
912
+ unit: 'mag'
913
+ /** The value in mag, the unit it is compared in. */
914
+ mag: number
915
+ } | null
916
+ parallax_min: {
917
+ /** The value as given. */
918
+ value: number
919
+ /** The unit as given. */
920
+ unit: 'mas' | 'arcsec'
921
+ /** The value in mas, the unit it is compared in. */
922
+ mas: number
923
+ } | null
924
+ parallax_max: {
925
+ /** The value as given. */
926
+ value: number
927
+ /** The unit as given. */
928
+ unit: 'mas' | 'arcsec'
929
+ /** The value in mas, the unit it is compared in. */
930
+ mas: number
931
+ } | null
932
+ parallax_over_error_min: number | null
933
+ }
934
+ /** The columns of `values`, in the catalog's order. */
935
+ columns: Schemas['CatalogConeColumn'][]
936
+ page: Schemas['CatalogConePage']
937
+ /** The catalog searched, and those that name the objects its rows link to. */
938
+ catalogs: Schemas['Catalog'][]
939
+ }
940
+ CatalogConeColumn: {
941
+ name: string
942
+ unit: string | null
943
+ description: string | null
944
+ }
945
+ CatalogConePage: {
946
+ limit: number
947
+ /** Pass as `cursor` for the next page. Null once the cone has no more rows; a page with fewer rows than `limit`, even none, can still have one. */
948
+ next_cursor: string | null
949
+ }
950
+ ExoplanetSearchResponse: {
951
+ data: Schemas['Exoplanet'][]
952
+ metadata: Schemas['ExoplanetSearchMetadata']
953
+ }
954
+ /** A planet found by the search. `source` is the archive row it was read from. */
955
+ Exoplanet: {
956
+ /** The planet's name in the NASA Exoplanet Archive (`pl_name`), which `sort=name` orders by. */
957
+ name: string
958
+ /** The planet's Arcosmos object, whose `canonical_name` may differ from the archive's name. Request it from `/objects/{identifier}` by id for its identifiers and every catalog's data. Null only while identity sync has not linked this row yet. */
959
+ object: Schemas['ObjectSummary'] | null
960
+ /** The star (or other object) the planet orbits. */
961
+ host: {
962
+ /** The host's name in the archive (`hostname`). */
963
+ name: string | null
964
+ /** The Arcosmos object the planet orbits (its `orbits` relation, which identity sync builds from the archive's host name). Null when no host is linked. */
965
+ object: Schemas['ObjectSummary'] | null
966
+ }
967
+ /** The system's distance from the Sun (`sy_dist`), as the archive publishes it in this planet's row: the value `distance_min`, `distance_max` and `sort=distance` use. Null when the archive has none. */
968
+ system_distance: Schemas['Measurement'] | null
969
+ /** Every value the archive publishes for the planet, as `GET /objects/{identifier}` returns them: orbit, radius, mass (`minimum_mass` when it is M sin i), equilibrium temperature, insolation, and discovery. A value the archive calculated rather than took from a paper has the reference "Calculated Value". */
970
+ measurements: Schemas['Measurement'][]
971
+ source: Schemas['Source']
972
+ }
973
+ ExoplanetSearchMetadata: {
974
+ api_version: 'v1'
975
+ generated_at: string
976
+ query: Schemas['ExoplanetQuery']
977
+ page: Schemas['Page']
978
+ catalogs: Schemas['Catalog'][]
979
+ }
980
+ /** The search as applied: every parameter, null when not given, defaults filled in. A physical bound is echoed as given and in the unit it is compared in, under that unit's name: `{ "value": 50, "unit": "ly", "pc": 15.33 }`. */
981
+ ExoplanetQuery: {
982
+ distance_min: {
983
+ /** The value as given. */
984
+ value: number
985
+ /** The unit as given. */
986
+ unit: 'pc' | 'ly'
987
+ /** The value in pc, the unit it is compared in. */
988
+ pc: number
989
+ } | null
990
+ distance_max: {
991
+ /** The value as given. */
992
+ value: number
993
+ /** The unit as given. */
994
+ unit: 'pc' | 'ly'
995
+ /** The value in pc, the unit it is compared in. */
996
+ pc: number
997
+ } | null
998
+ radius_min: {
999
+ /** The value as given. */
1000
+ value: number
1001
+ /** The unit as given. */
1002
+ unit: 'R_earth' | 'R_jup'
1003
+ /** The value in R_earth, the unit it is compared in. */
1004
+ R_earth: number
1005
+ } | null
1006
+ radius_max: {
1007
+ /** The value as given. */
1008
+ value: number
1009
+ /** The unit as given. */
1010
+ unit: 'R_earth' | 'R_jup'
1011
+ /** The value in R_earth, the unit it is compared in. */
1012
+ R_earth: number
1013
+ } | null
1014
+ mass_min: {
1015
+ /** The value as given. */
1016
+ value: number
1017
+ /** The unit as given. */
1018
+ unit: 'M_earth' | 'M_jup'
1019
+ /** The value in M_earth, the unit it is compared in. */
1020
+ M_earth: number
1021
+ } | null
1022
+ mass_max: {
1023
+ /** The value as given. */
1024
+ value: number
1025
+ /** The unit as given. */
1026
+ unit: 'M_earth' | 'M_jup'
1027
+ /** The value in M_earth, the unit it is compared in. */
1028
+ M_earth: number
1029
+ } | null
1030
+ mass_basis: ('mass' | 'msini' | 'mass_radius_relation')[] | null
1031
+ orbital_period_min: {
1032
+ /** The value as given. */
1033
+ value: number
1034
+ /** The unit as given. */
1035
+ unit: 'd' | 'h' | 'yr'
1036
+ /** The value in d, the unit it is compared in. */
1037
+ d: number
1038
+ } | null
1039
+ orbital_period_max: {
1040
+ /** The value as given. */
1041
+ value: number
1042
+ /** The unit as given. */
1043
+ unit: 'd' | 'h' | 'yr'
1044
+ /** The value in d, the unit it is compared in. */
1045
+ d: number
1046
+ } | null
1047
+ equilibrium_temperature_min: {
1048
+ /** The value as given. */
1049
+ value: number
1050
+ /** The unit as given. */
1051
+ unit: 'K'
1052
+ /** The value in K, the unit it is compared in. */
1053
+ K: number
1054
+ } | null
1055
+ equilibrium_temperature_max: {
1056
+ /** The value as given. */
1057
+ value: number
1058
+ /** The unit as given. */
1059
+ unit: 'K'
1060
+ /** The value in K, the unit it is compared in. */
1061
+ K: number
1062
+ } | null
1063
+ insolation_flux_min: {
1064
+ /** The value as given. */
1065
+ value: number
1066
+ /** The unit as given. */
1067
+ unit: 'S_earth'
1068
+ /** The value in S_earth, the unit it is compared in. */
1069
+ S_earth: number
1070
+ } | null
1071
+ insolation_flux_max: {
1072
+ /** The value as given. */
1073
+ value: number
1074
+ /** The unit as given. */
1075
+ unit: 'S_earth'
1076
+ /** The value in S_earth, the unit it is compared in. */
1077
+ S_earth: number
1078
+ } | null
1079
+ discovery_method: ('transit' | 'radial_velocity' | 'microlensing' | 'imaging' | 'transit_timing_variations' | 'eclipse_timing_variations' | 'orbital_brightness_modulation' | 'pulsar_timing' | 'astrometry' | 'pulsation_timing_variations' | 'disk_kinematics')[] | null
1080
+ discovery_year_min: number | null
1081
+ discovery_year_max: number | null
1082
+ calculated: 'include' | 'exclude'
1083
+ sort: 'distance' | 'name' | 'radius' | 'mass' | 'orbital_period' | 'equilibrium_temperature' | 'insolation_flux' | 'discovery_year'
1084
+ order: 'asc' | 'desc'
1085
+ }
1086
+ ClassificationsResponse: {
1087
+ data: Schemas['Classification'][]
1088
+ metadata: Schemas['ClassificationsMetadata']
1089
+ }
1090
+ /** One type SIMBAD assigns the object, from one origin. `source.record` is the SIMBAD object (oid) it is assigned to. */
1091
+ Classification: {
1092
+ /** SIMBAD's code for the type, as published, less the trailing spaces a handful of its rows carry (`* `). */
1093
+ otype: string
1094
+ /** The type as SIMBAD's vocabulary defines it, with its place in the hierarchy and the canonical type it maps to. Null for the few codes SIMBAD uses but its vocabulary doesn't define (`C?*`, `---`; about 7,000 of its 51 million classifications). */
1095
+ definition: Schemas['SimbadType'] | null
1096
+ /** Whether this is SIMBAD's main type for the SIMBAD object `source.record` (see `metadata.current_types.simbad_main`). The main type is nearly always among an object's classifications, and is marked on each origin it appears with. */
1097
+ main: boolean
1098
+ origin: Schemas['ClassificationOrigin']
1099
+ source: Schemas['Source']
1100
+ }
1101
+ /** One of SIMBAD's object types, from its type vocabulary (SIMBAD's `otypedef` table). */
1102
+ SimbadType: {
1103
+ /** SIMBAD's code for the type. */
1104
+ otype: string
1105
+ /** SIMBAD's short name for the type. */
1106
+ label: string
1107
+ /** What the type is, in SIMBAD's words. */
1108
+ description: string
1109
+ /** SIMBAD's note on the type, such as what it includes. Null when it gives none. */
1110
+ comment: string | null
1111
+ /** Whether the type means "possibly X" rather than X (`WR?`, `Pl?`). Each candidate type stands for one confirmed type, `candidate_for`. */
1112
+ candidate: boolean
1113
+ /** For a candidate type, the code of the type it is a candidate for. Null for other types. */
1114
+ candidate_for: string | null
1115
+ /** The type's place in SIMBAD's hierarchy: the codes from the most general type down to this one, as SIMBAD publishes it (`* > Ma* > sg* > s*b > WR*`, split). A candidate type shares the path of the type it is a candidate for, so its last code is `candidate_for`. Empty for the two types SIMBAD leaves out of its hierarchy, `?` (unknown) and `var` (variable). */
1116
+ path: string[]
1117
+ /** The Arcosmos canonical type this SIMBAD type maps to, as `object_type` gives it; `GET /types` lists the canonical types and what maps to each. Null for candidate types and for types that say how an object was detected rather than what it is (radio, infrared or X-ray source, ...). An object whose main type is a candidate can still be typed, by what its confirmed types share with it (see `GET /types`). */
1118
+ canonical_type: ('star' | 'brown_dwarf' | 'multiple_star' | 'planet' | 'star_cluster' | 'stellar_association' | 'nebula' | 'galaxy' | 'galaxy_group' | 'galaxy_cluster' | 'black_hole' | 'transient') | null | (string & {})
1119
+ }
1120
+ /** Where SIMBAD says a type came from: its text as published, and the same parsed. */
1121
+ ClassificationOrigin: {
1122
+ /** SIMBAD's text for where the type came from, exactly as published. Null when SIMBAD gives none. */
1123
+ published: string | null
1124
+ /**
1125
+ * Which of SIMBAD's forms the text takes, and so which fields are set:
1126
+ *
1127
+ * - `identifier`: `from id X`, the type comes with one of the object's identifiers, `X` (for example, an IRAS designation goes with an infrared source). Some add ` ; bibcode=B`, a paper, given in `reference`.
1128
+ * - `reference`: `from bibcode ; bibcode=B`, the type comes from the paper `B`.
1129
+ * - `basic_data`: `from basic data`, SIMBAD attributes the type to its basic data for the object rather than to an identifier or a paper.
1130
+ * - `unstated`: SIMBAD gives no origin.
1131
+ * - `other`: text in none of these forms (about 0.05% of SIMBAD's, such as `from DR1 id Gaia ...`). Read `published`; a bibcode at its end is still given in `reference`.
1132
+ */
1133
+ kind: ('identifier' | 'reference' | 'basic_data' | 'unstated' | 'other') | (string & {})
1134
+ /** The identifier the type came with. Set only when `kind` is `identifier`. */
1135
+ identifier: {
1136
+ /** The identifier as `GET /objects/{identifier}` lists it: padding collapsed and SIMBAD's class markers (`NAME`, `V*`, `*`) dropped. */
1137
+ identifier: string
1138
+ /** The identifier as the origin text writes it. */
1139
+ published: string
1140
+ /** The kind of identifier, as `GET /objects/{identifier}` names it: `name`, `variable_star`, `bayer_flamsteed`, `gaia_dr3`, or otherwise the catalog acronym, lowercased (`2mass`, `iras`). */
1141
+ namespace: string
1142
+ } | null
1143
+ /** The paper SIMBAD cites for the type (its `bibcode=`). Null when the text names none. */
1144
+ reference: Schemas['Reference'] | null
1145
+ }
1146
+ ClassificationsMetadata: {
1147
+ api_version: 'v1'
1148
+ generated_at: string
1149
+ resolution: Schemas['Resolution']
1150
+ target: Schemas['ObjectSummary']
1151
+ catalogs: Schemas['Catalog'][]
1152
+ current_types: Schemas['CurrentTypes']
1153
+ }
1154
+ /** The types the object carries now, for context. */
1155
+ CurrentTypes: {
1156
+ /** Arcosmos's type for the object. */
1157
+ canonical: {
1158
+ /** The object's canonical type, as `target.object_type` and `GET /objects/{identifier}` give it. Null when no source gives it a type Arcosmos maps: a SIMBAD candidate main type such as `Pl?` maps to none, unless one of the object's confirmed SIMBAD types maps to what it is a candidate for. */
1159
+ type: ('star' | 'brown_dwarf' | 'multiple_star' | 'planet' | 'star_cluster' | 'stellar_association' | 'nebula' | 'galaxy' | 'galaxy_group' | 'galaxy_cluster' | 'black_hole' | 'transient') | null | (string & {})
1160
+ /** The catalog that set it, and that catalog's active release. Null with the type. When it is `simbad`, the type is derived from SIMBAD's main type: the first `simbad_main` entry's `canonical_type`, or for a candidate main type, the canonical type of what it is a candidate for (`candidate_for`), which one of the object's confirmed types shares (`GET /types` explains). */
1161
+ source: Schemas['Source'] | null
1162
+ }
1163
+ /** SIMBAD's main type for the object (its `basic.otype`), one per SIMBAD record: one entry, or none when SIMBAD doesn't list the object. Should Arcosmos find two of SIMBAD's objects to be one, each record's main type is listed, most confident match first. */
1164
+ simbad_main: {
1165
+ /** SIMBAD's code for the main type. Null when SIMBAD gives the object none. */
1166
+ otype: string | null
1167
+ /** The main type as SIMBAD's vocabulary defines it. Null when `otype` is null or not defined there. */
1168
+ definition: Schemas['SimbadType'] | null
1169
+ source: Schemas['Source']
1170
+ }[]
1171
+ }
1172
+ TypesResponse: {
1173
+ data: {
1174
+ /** Arcosmos's canonical types. */
1175
+ canonical_types: Schemas['CanonicalType'][]
1176
+ /** SIMBAD's types, in hierarchy order: each type is followed by its candidate type, then by the types below it, siblings by code (in byte order, so upper case first). `?` (unknown) comes first and `var` (variable) last, as SIMBAD leaves both out of its hierarchy. */
1177
+ simbad_types: Schemas['SimbadType'][]
1178
+ }
1179
+ metadata: Schemas['TypesMetadata']
1180
+ }
1181
+ /** One of Arcosmos's canonical object types. */
1182
+ CanonicalType: {
1183
+ /** The value `object_type` takes. */
1184
+ type: ('star' | 'brown_dwarf' | 'multiple_star' | 'planet' | 'star_cluster' | 'stellar_association' | 'nebula' | 'galaxy' | 'galaxy_group' | 'galaxy_cluster' | 'black_hole' | 'transient') | (string & {})
1185
+ /** What the type covers, and where Arcosmos takes it from. */
1186
+ description: string
1187
+ /** The codes of the SIMBAD types that map to it, in `simbad_types` order. */
1188
+ simbad_types: string[]
1189
+ }
1190
+ TypesMetadata: {
1191
+ api_version: 'v1'
1192
+ generated_at: string
1193
+ catalogs: Schemas['Catalog'][]
1194
+ }
1195
+ TypeResponse: {
1196
+ data: Schemas['SimbadTypeDetail']
1197
+ metadata: Schemas['TypeMetadata']
1198
+ }
1199
+ /** A SIMBAD object type, with its neighbours in SIMBAD's hierarchy named. */
1200
+ SimbadTypeDetail: {
1201
+ /** SIMBAD's code for the type. */
1202
+ otype: string
1203
+ /** SIMBAD's short name for the type. */
1204
+ label: string
1205
+ /** What the type is, in SIMBAD's words. */
1206
+ description: string
1207
+ /** SIMBAD's note on the type, such as what it includes. Null when it gives none. */
1208
+ comment: string | null
1209
+ /** Whether the type means "possibly X" rather than X (`WR?`, `Pl?`). Each candidate type stands for one confirmed type, `candidate_for`. */
1210
+ candidate: boolean
1211
+ /** For a candidate type, the code of the type it is a candidate for. Null for other types. */
1212
+ candidate_for: string | null
1213
+ /** The type's place in SIMBAD's hierarchy: the codes from the most general type down to this one, as SIMBAD publishes it (`* > Ma* > sg* > s*b > WR*`, split). A candidate type shares the path of the type it is a candidate for, so its last code is `candidate_for`. Empty for the two types SIMBAD leaves out of its hierarchy, `?` (unknown) and `var` (variable). */
1214
+ path: string[]
1215
+ /** The Arcosmos canonical type this SIMBAD type maps to, as `object_type` gives it; `GET /types` lists the canonical types and what maps to each. Null for candidate types and for types that say how an object was detected rather than what it is (radio, infrared or X-ray source, ...). An object whose main type is a candidate can still be typed, by what its confirmed types share with it (see `GET /types`). */
1216
+ canonical_type: ('star' | 'brown_dwarf' | 'multiple_star' | 'planet' | 'star_cluster' | 'stellar_association' | 'nebula' | 'galaxy' | 'galaxy_group' | 'galaxy_cluster' | 'black_hole' | 'transient') | null | (string & {})
1217
+ /** The types above it in SIMBAD's hierarchy, most general first: `path` without its last code, named. */
1218
+ ancestors: Schemas['SimbadTypeRef'][]
1219
+ /** The confirmed types directly below it in SIMBAD's hierarchy. Empty for a candidate type. */
1220
+ subtypes: Schemas['SimbadTypeRef'][]
1221
+ /** The candidate types for it (`WR?` for `WR*`). Empty for a candidate type. */
1222
+ candidate_types: Schemas['SimbadTypeRef'][]
1223
+ }
1224
+ /** A SIMBAD object type, named. `GET /types/{otype}` describes it in full. */
1225
+ SimbadTypeRef: {
1226
+ /** SIMBAD's code for the type. */
1227
+ otype: string
1228
+ /** SIMBAD's short name for the type. */
1229
+ label: string
1230
+ /** What the type is, in SIMBAD's words. */
1231
+ description: string
1232
+ }
1233
+ TypeMetadata: {
1234
+ api_version: 'v1'
1235
+ generated_at: string
1236
+ catalogs: Schemas['Catalog'][]
1237
+ }
1238
+ StarSearchResponse: {
1239
+ data: Schemas['Star'][]
1240
+ metadata: Schemas['StarSearchMetadata']
1241
+ }
1242
+ /** A star in the nearby-stars table. `distance_from_sun` is derived from the parallax (see Distance), and `photometry` holds Gaia magnitudes as published plus values derived from them. `source` is the catalog row every published value here was read from. */
1243
+ Star: {
1244
+ object: (Schemas['ObjectSummary'] & {
1245
+ /** `catalog_record`: identity sync linked this catalog record to the object. `shared_gaia_dr3`: SIMBAD lists the star's Gaia DR3 source for the object. */
1246
+ matched_by: ('catalog_record' | 'shared_gaia_dr3') | (string & {})
1247
+ }) | null
1248
+ designations: {
1249
+ cns5: number | null
1250
+ /** Gliese-Jahreiss number, from CNS5. */
1251
+ gj: string | null
1252
+ /** Component of a multiple system, from CNS5. */
1253
+ component: string | null
1254
+ hip: number | null
1255
+ /** Gaia DR3 source_id, as a string (it exceeds 2^53). */
1256
+ gaia_dr3: string | null
1257
+ }
1258
+ /** As published. Null for the Sun. */
1259
+ position: Schemas['StarPosition'] | null
1260
+ /** As published. Null for the Sun. */
1261
+ parallax: Schemas['Parallax'] | null
1262
+ distance_from_sun: Schemas['Distance']
1263
+ /** How many planets the NASA Exoplanet Archive lists for the star (so 0 for the Sun, whose planets come from the Solar System compilation). `/objects/{id}/planets` lists them, the Sun's too. */
1264
+ planet_count: number
1265
+ photometry: Schemas['StarPhotometry']
1266
+ source: Schemas['Source']
1267
+ }
1268
+ StarSearchMetadata: {
1269
+ api_version: 'v1'
1270
+ generated_at: string
1271
+ query: Schemas['StarQuery']
1272
+ page: Schemas['Page']
1273
+ catalogs: Schemas['Catalog'][]
1274
+ }
1275
+ /** The search as applied: every parameter, null when not given, defaults filled in. A bound is echoed as given and in the unit it is compared in, under that unit's name: `{ "value": 50, "unit": "ly", "pc": 15.33 }`, `{ "value": -1, "unit": "mag", "mag": -1 }`. */
1276
+ StarQuery: {
1277
+ distance_min: {
1278
+ /** The value as given. */
1279
+ value: number
1280
+ /** The unit as given. */
1281
+ unit: 'pc' | 'ly'
1282
+ /** The value in pc, the unit it is compared in. */
1283
+ pc: number
1284
+ } | null
1285
+ distance_max: {
1286
+ /** The value as given. */
1287
+ value: number
1288
+ /** The unit as given. */
1289
+ unit: 'pc' | 'ly'
1290
+ /** The value in pc, the unit it is compared in. */
1291
+ pc: number
1292
+ } | null
1293
+ g_mag_min: {
1294
+ /** The value as given. */
1295
+ value: number
1296
+ /** The unit as given. */
1297
+ unit: 'mag'
1298
+ /** The value in mag, the unit it is compared in. */
1299
+ mag: number
1300
+ } | null
1301
+ g_mag_max: {
1302
+ /** The value as given. */
1303
+ value: number
1304
+ /** The unit as given. */
1305
+ unit: 'mag'
1306
+ /** The value in mag, the unit it is compared in. */
1307
+ mag: number
1308
+ } | null
1309
+ absolute_g_mag_min: {
1310
+ /** The value as given. */
1311
+ value: number
1312
+ /** The unit as given. */
1313
+ unit: 'mag'
1314
+ /** The value in mag, the unit it is compared in. */
1315
+ mag: number
1316
+ } | null
1317
+ absolute_g_mag_max: {
1318
+ /** The value as given. */
1319
+ value: number
1320
+ /** The unit as given. */
1321
+ unit: 'mag'
1322
+ /** The value in mag, the unit it is compared in. */
1323
+ mag: number
1324
+ } | null
1325
+ bp_rp_min: {
1326
+ /** The value as given. */
1327
+ value: number
1328
+ /** The unit as given. */
1329
+ unit: 'mag'
1330
+ /** The value in mag, the unit it is compared in. */
1331
+ mag: number
1332
+ } | null
1333
+ bp_rp_max: {
1334
+ /** The value as given. */
1335
+ value: number
1336
+ /** The unit as given. */
1337
+ unit: 'mag'
1338
+ /** The value in mag, the unit it is compared in. */
1339
+ mag: number
1340
+ } | null
1341
+ parallax_over_error_min: number | null
1342
+ /** Whether only stars with known planets were returned. */
1343
+ has_planets: boolean
1344
+ sort: 'distance' | 'g_mag' | 'absolute_g_mag' | 'bp_rp'
1345
+ order: 'asc' | 'desc'
1346
+ }
1347
+ BrightStarsResponse: {
1348
+ data: Schemas['BrightStar'][]
1349
+ metadata: Schemas['BrightStarsMetadata']
1350
+ }
1351
+ /** A Hipparcos star. Its position, parallax, Hp and colors are as the catalog publishes them; `distance_from_sun` and `photometry.gaia_estimate` are derived. */
1352
+ BrightStar: {
1353
+ /** The Arcosmos object with this HIP number, once identity sync has linked one. Request it from /objects by id. */
1354
+ object: Schemas['ObjectSummary'] | null
1355
+ /** The Hipparcos number. */
1356
+ hip: number
1357
+ /** The same star's row in the nearby-stars table (`GET /stars`), as that table's `source` names it, when it is within about 100 pc and listed there. Null otherwise: farther away, or too bright for the catalogs that table is built from. */
1358
+ nearby_star: {
1359
+ catalog: ('cns5' | 'gcns') | (string & {})
1360
+ /** The CNS5 number, or the Gaia source id. */
1361
+ record: string
1362
+ } | null
1363
+ position: Schemas['StarPosition'] & unknown
1364
+ parallax: Schemas['Parallax'] & unknown
1365
+ /** Null when the parallax is zero or negative. */
1366
+ distance_from_sun: Schemas['Distance'] | null
1367
+ photometry: {
1368
+ hp_mag: Schemas['Magnitude'] & unknown
1369
+ /** The color B-V, as published. Null for the 1,143 stars the catalog has no color for (it writes zeros there). `uncertainty` is null where the catalog gives an error of zero. */
1370
+ b_v: Schemas['Magnitude'] | null
1371
+ /** The color V-I, as published; the catalog gives no error for it. For many red and variable stars Hipparcos derived it from other colors rather than measured it. */
1372
+ v_i: Schemas['Magnitude'] | null
1373
+ /** Null without a color a relation holds for. */
1374
+ gaia_estimate: Schemas['GaiaEstimate'] | null
1375
+ }
1376
+ source: Schemas['Source']
1377
+ }
1378
+ /** What Gaia would have measured, estimated from Hipparcos photometry: not Gaia measurements. The relations are Gaia EDR3's own fits between the two catalogues (Riello et al. 2021, A&A 649, A3, Table C.2, bibcode 2021A&A...649A...3R), each used only inside the color range it was fitted in (Table C.1). They describe ordinary stars and M giants; a heavily reddened or peculiar star can lie further off than the stated uncertainty. Use them to place a star beside Gaia photometry, as on a color-magnitude diagram, not as measurements. */
1379
+ GaiaEstimate: {
1380
+ /** Derived: Gaia G, as `hp_mag` plus G - Hp from the color named in `from`. From B-V: `-0.02392 - 0.4069 (B-V) + 0.04569 (B-V)^2 - 0.0452 (B-V)^3`, scatter 0.02417 mag, for `-0.25 < B-V < 1.9`; its one sigma also carries the error of B-V through the slope, so it needs a published error. From V-I: `0.01546 - 0.4308 (V-I) - 0.01872 (V-I)^2`, scatter 0.08191 mag, for `-0.25 < V-I < 5`; V-I has no published error, so its one sigma is the scatter alone. Hp's error is added to either. */
1381
+ g_mag: Schemas['DerivedMagnitude'] & {
1382
+ /** The color G - Hp was computed from: `b_v` or `v_i`, whichever gives the smaller uncertainty. */
1383
+ from: ('b_v' | 'v_i') | (string & {})
1384
+ }
1385
+ /** Derived: Gaia BP - RP from V-I, `-0.01612 + 1.274 (V-I) - 0.08143 (V-I)^2`, for `-0.5 < V-I < 3.5`. Its one sigma is the fit's scatter, 0.082 mag. Null outside that range. */
1386
+ bp_rp: Schemas['DerivedMagnitude'] | null
1387
+ /** Derived: `g_mag + 5 log10(parallax / mas) - 10`, with one sigma `sqrt(sigma_G^2 + (5 / ln(10) * sigma_parallax / parallax)^2)`. Null when the parallax is zero or negative, as about 4,000 Hipparcos parallaxes are. No extinction correction. */
1388
+ absolute_g_mag: Schemas['AbsoluteMagnitude'] | null
1389
+ }
1390
+ BrightStarsMetadata: {
1391
+ api_version: 'v1'
1392
+ generated_at: string
1393
+ query: {
1394
+ hp_mag_max: {
1395
+ /** The value as given. */
1396
+ value: number
1397
+ /** The unit as given. */
1398
+ unit: 'mag'
1399
+ /** The value in mag, the unit it is compared in. */
1400
+ mag: number
1401
+ } | null
1402
+ }
1403
+ page: Schemas['Page']
1404
+ catalogs: Schemas['Catalog'][]
1405
+ }
1406
+ NamesResponse: {
1407
+ data: Schemas['NameCompletion'][]
1408
+ metadata: Schemas['NamesMetadata']
1409
+ }
1410
+ /** A name that completes, or resembles, what was typed. */
1411
+ NameCompletion: {
1412
+ /** The name that matched what was typed. */
1413
+ name: string
1414
+ /** How: `prefix`, the name starts with the query (spaces and punctuation aside); `word`, one of its words does ("cent" in Proxima Centauri); `similar`, it looks like the query (a typo), offered only when no name starts with it. */
1415
+ match: ('prefix' | 'word' | 'similar') | (string & {})
1416
+ object: Schemas['ObjectSummary']
1417
+ /** What to request the object by, from `GET /objects/{identifier}` or any other route: `name` when it resolves to this object, else the object's id, for a name another object answers to first. */
1418
+ query: string
1419
+ /** How many publications SIMBAD lists for the object, by which names of the same kind are ordered. Null without a SIMBAD record. */
1420
+ citations: number | null
1421
+ }
1422
+ NamesMetadata: {
1423
+ api_version: 'v1'
1424
+ generated_at: string
1425
+ query: {
1426
+ q: string
1427
+ limit: number
1428
+ }
1429
+ catalogs: Schemas['Catalog'][]
1430
+ }
1431
+ MatchResponse: {
1432
+ /** One entry per position sent, in the same order. */
1433
+ data: Schemas['MatchEntry'][]
1434
+ metadata: Schemas['MatchMetadata']
1435
+ }
1436
+ /** What one position matched. */
1437
+ MatchEntry: Schemas['MatchedPosition'] | Schemas['UnmatchedPosition'] | Schemas['InvalidPosition']
1438
+ MatchedPosition: {
1439
+ query: Schemas['MatchQuery']
1440
+ status: 'matched'
1441
+ /** How many objects lie within the radius, `limit` or not. */
1442
+ total: number
1443
+ /** The nearest of them, nearest first. */
1444
+ matches: Schemas['PositionMatch'][]
1445
+ }
1446
+ /** The position as sent. */
1447
+ MatchQuery: {
1448
+ ra: number
1449
+ dec: number
1450
+ /** The epoch used: as sent, or 2000. */
1451
+ epoch: number
1452
+ }
1453
+ /** An object within the radius of a position. */
1454
+ PositionMatch: {
1455
+ object: Schemas['ObjectSummary']
1456
+ /** Derived: the great-circle angle from the position sent to the object, at the position's epoch: from `moved` when the object was moved, else from `position`. */
1457
+ separation: {
1458
+ value: number
1459
+ unit: 'arcsec'
1460
+ }
1461
+ position: Schemas['ConePosition']
1462
+ /** Where its space motion takes the object by the position's epoch. Null when the epochs agree, or the object has no proper motion. */
1463
+ moved: Schemas['MovedPosition'] | null
1464
+ source: Schemas['Source']
1465
+ }
1466
+ /** Derived: `position` moved to the epoch of the position matched by SIMBAD's proper motion, and its parallax and radial velocity where SIMBAD gives them: along a straight line in space, with the perspective and light-time effects, as Astropy's apply_space_motion and ERFA's pmsafe move a star. The separation is measured from here. */
1467
+ MovedPosition: {
1468
+ ra: number
1469
+ dec: number
1470
+ unit: 'deg'
1471
+ frame: 'ICRS'
1472
+ /** The epoch it was moved to: the position's. */
1473
+ epoch: number
1474
+ proper_motion: {
1475
+ /** mu_alpha* = mu_alpha cos(dec), as SIMBAD publishes it. */
1476
+ ra: number
1477
+ dec: number
1478
+ unit: 'mas/yr'
1479
+ }
1480
+ /** One sigma, in mas: the position's larger error and its proper motion's larger error times the years moved, added in quadrature. Null when SIMBAD gives either error. */
1481
+ uncertainty: number | null
1482
+ }
1483
+ /** No object lies within the radius. */
1484
+ UnmatchedPosition: {
1485
+ query: Schemas['MatchQuery']
1486
+ status: 'unmatched'
1487
+ }
1488
+ InvalidPosition: {
1489
+ query: Schemas['MatchQuery']
1490
+ status: 'invalid'
1491
+ message: string
1492
+ }
1493
+ MatchMetadata: {
1494
+ api_version: 'v1'
1495
+ generated_at: string
1496
+ query: {
1497
+ radius: {
1498
+ value: number
1499
+ unit: 'arcsec' | 'arcmin' | 'deg'
1500
+ /** The radius in degrees. */
1501
+ deg: number
1502
+ }
1503
+ limit: number
1504
+ }
1505
+ counts: {
1506
+ matched: number
1507
+ unmatched: number
1508
+ invalid: number
1509
+ }
1510
+ /** The catalogs the matched positions come from. */
1511
+ catalogs: Schemas['Catalog'][]
1512
+ }
1513
+ MatchRequest: {
1514
+ positions: Schemas['MatchPosition'][]
1515
+ /** How far from each position to look: a number and `arcsec`, `arcmin` or `deg`, at most 60 arcsec. */
1516
+ radius: string
1517
+ /** How many objects to give for each position, nearest first, at most 50. 5 when left out. `total` counts them all. */
1518
+ limit?: number
1519
+ }
1520
+ /** A position to match. */
1521
+ MatchPosition: {
1522
+ /** ICRS right ascension, decimal degrees from 0 up to 360. */
1523
+ ra: number
1524
+ /** ICRS declination, decimal degrees from -90 to 90. */
1525
+ dec: number
1526
+ /** The epoch of the position, as a Julian year (2016 for Gaia DR3). 2000 when left out. */
1527
+ epoch?: number
1528
+ }
1529
+ NewApiKeyResponse: {
1530
+ data: Schemas['NewApiKey']
1531
+ metadata: {
1532
+ api_version: 'v1'
1533
+ generated_at: string
1534
+ }
1535
+ }
1536
+ NewApiKey: {
1537
+ /** The key's id. It isn't secret: it names the key in paths. */
1538
+ id: string
1539
+ /** The label given when the key was created. */
1540
+ name: string | null
1541
+ /** The key's first characters, to tell keys apart. The full key is shown only when it is created. */
1542
+ prefix: string
1543
+ created_at: string
1544
+ /** When the key was revoked. A revoked key is refused on every route. */
1545
+ revoked_at: string | null
1546
+ /** The key. Send it as `Authorization: Bearer <key>`. It is shown only here: Arcosmos stores a hash of it, so a lost key can't be recovered, only replaced. */
1547
+ secret: string
1548
+ }
1549
+ /** The route acts for a signed-in person, and the request named none, or a session that has expired or signed out. Only Arcosmos's website, acting for someone signed in there, gets this far. */
1550
+ SignInRequiredError: {
1551
+ error: {
1552
+ code: 'sign_in_required'
1553
+ message: string
1554
+ }
1555
+ }
1556
+ ForbiddenError: {
1557
+ error: {
1558
+ code: 'forbidden'
1559
+ message: string
1560
+ }
1561
+ }
1562
+ /** The account already holds as many unrevoked keys as it may. Revoke one first. */
1563
+ KeyLimitReachedError: {
1564
+ error: {
1565
+ code: 'key_limit_reached'
1566
+ message: string
1567
+ }
1568
+ }
1569
+ NewApiKeyRequest: {
1570
+ /** A label to tell your keys apart. */
1571
+ name?: string
1572
+ }
1573
+ ApiKeysResponse: {
1574
+ data: Schemas['ApiKey'][]
1575
+ metadata: {
1576
+ api_version: 'v1'
1577
+ generated_at: string
1578
+ /** The account the keys belong to. */
1579
+ account: {
1580
+ id: string
1581
+ name: string
1582
+ }
1583
+ /** How many of the account's keys are not revoked. */
1584
+ active_keys: number
1585
+ /** How many unrevoked keys the account may hold at once. Revoke one to create another. */
1586
+ max_active_keys: number
1587
+ page: Schemas['Page']
1588
+ }
1589
+ }
1590
+ ApiKey: {
1591
+ /** The key's id. It isn't secret: it names the key in paths. */
1592
+ id: string
1593
+ /** The label given when the key was created. */
1594
+ name: string | null
1595
+ /** The key's first characters, to tell keys apart. The full key is shown only when it is created. */
1596
+ prefix: string
1597
+ created_at: string
1598
+ /** When the key was revoked. A revoked key is refused on every route. */
1599
+ revoked_at: string | null
1600
+ }
1601
+ ApiKeyResponse: {
1602
+ data: Schemas['ApiKeyWithUsage']
1603
+ metadata: {
1604
+ api_version: 'v1'
1605
+ generated_at: string
1606
+ }
1607
+ }
1608
+ ApiKeyWithUsage: {
1609
+ /** The key's id. It isn't secret: it names the key in paths. */
1610
+ id: string
1611
+ /** The label given when the key was created. */
1612
+ name: string | null
1613
+ /** The key's first characters, to tell keys apart. The full key is shown only when it is created. */
1614
+ prefix: string
1615
+ created_at: string
1616
+ /** When the key was revoked. A revoked key is refused on every route. */
1617
+ revoked_at: string | null
1618
+ usage: Schemas['ApiKeyUsage']
1619
+ }
1620
+ ApiKeyUsage: {
1621
+ /** Requests made with the key, whatever their status. Requests to `/api-keys` routes aren't counted. */
1622
+ requests: number
1623
+ first_request_at: string | null
1624
+ last_request_at: string | null
1625
+ /** Requests per route, most used first. */
1626
+ routes: Schemas['RouteUsage'][]
1627
+ }
1628
+ RouteUsage: {
1629
+ method: string
1630
+ /** The route, as the reference documents it. */
1631
+ route: string
1632
+ requests: number
1633
+ last_request_at: string
1634
+ }
1635
+ RevokedApiKeyResponse: {
1636
+ data: Schemas['ApiKey']
1637
+ metadata: {
1638
+ api_version: 'v1'
1639
+ generated_at: string
1640
+ }
1641
+ }
1642
+ AccountResponse: {
1643
+ data: Schemas['Account']
1644
+ metadata: {
1645
+ api_version: 'v1'
1646
+ generated_at: string
1647
+ }
1648
+ }
1649
+ Account: {
1650
+ id: string
1651
+ name: string
1652
+ created_at: string
1653
+ /** The signed-in person's role in the account; null when the request is made with one of its keys. */
1654
+ role: ('owner' | 'member') | null | (string & {})
1655
+ plan: Schemas['Plan']
1656
+ quota: Schemas['Quota']
1657
+ keys: {
1658
+ /** Keys that aren't revoked. */
1659
+ active: number
1660
+ /** How many unrevoked keys the account may hold at once. */
1661
+ max_active: number
1662
+ }
1663
+ usage: Schemas['AccountUsage']
1664
+ }
1665
+ Plan: {
1666
+ id: string
1667
+ name: string
1668
+ /** Requests the account's keys may make a month, together. */
1669
+ monthly_requests: number
1670
+ /** How many unrevoked keys the account may hold at once. */
1671
+ max_active_keys: number
1672
+ /** The burst limit the account's keys share: about `requests` every `seconds`. */
1673
+ rate_limit: {
1674
+ requests: number
1675
+ seconds: number
1676
+ }
1677
+ }
1678
+ Quota: {
1679
+ /** The month's first day, in UTC. */
1680
+ period_start: string
1681
+ /** When the next month starts, in UTC. */
1682
+ resets_at: string
1683
+ /** The plan's monthly requests. */
1684
+ limit: number
1685
+ /** Requests counted this month. It can pass `limit` by what was in flight. */
1686
+ used: number
1687
+ /** Requests left this month, never below 0. */
1688
+ remaining: number
1689
+ }
1690
+ AccountUsage: {
1691
+ /** The start of the period: midnight UTC, `days` - 1 days before today. */
1692
+ from: string
1693
+ /** The end of the period: when the response was made. */
1694
+ to: string
1695
+ /** How many days, today included, the period covers. */
1696
+ days: number
1697
+ /** Requests made with the account's keys in the period, whatever their status. */
1698
+ requests: number
1699
+ by_status: {
1700
+ /** Answered with a 2xx or 3xx status. */
1701
+ success: number
1702
+ /** Answered with a 4xx status, such as a 400, 404 or 429. */
1703
+ client_error: number
1704
+ /** Answered with a 5xx status. */
1705
+ server_error: number
1706
+ }
1707
+ /** Every day of the period, oldest first, including days with none. */
1708
+ by_day: Schemas['DayUsage'][]
1709
+ /** Requests per route, most used first. */
1710
+ by_route: Schemas['AccountRouteUsage'][]
1711
+ /** Requests per key, most used first: every unrevoked key, and every revoked key used in the period. */
1712
+ by_key: Schemas['AccountKeyUsage'][]
1713
+ }
1714
+ DayUsage: {
1715
+ /** A day in UTC. */
1716
+ date: string
1717
+ requests: number
1718
+ }
1719
+ AccountRouteUsage: {
1720
+ method: string
1721
+ /** The route, as the reference documents it. */
1722
+ route: string
1723
+ requests: number
1724
+ }
1725
+ AccountKeyUsage: {
1726
+ id: string
1727
+ name: string | null
1728
+ prefix: string
1729
+ revoked_at: string | null
1730
+ requests: number
1731
+ /** The key's last request in the period. */
1732
+ last_request_at: string | null
1733
+ }
1734
+ }
1735
+
1736
+ /** Every operation of the API by its operationId: what it takes and what it gives. */
1737
+ export interface Operations {
1738
+ /**
1739
+ * Look up an object
1740
+ *
1741
+ * `GET /objects/{identifier}`
1742
+ */
1743
+ getObject: {
1744
+ path: { identifier: string }
1745
+ query: Record<string, never>
1746
+ body: never
1747
+ response: Schemas['ObjectResponse']
1748
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1749
+ }
1750
+ /**
1751
+ * List the planets an object hosts
1752
+ *
1753
+ * `GET /objects/{identifier}/planets`
1754
+ */
1755
+ listPlanets: {
1756
+ path: { identifier: string }
1757
+ query: Record<string, never>
1758
+ body: never
1759
+ response: Schemas['PlanetsResponse']
1760
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1761
+ }
1762
+ /**
1763
+ * List stars near an object
1764
+ *
1765
+ * `GET /objects/{identifier}/nearby`
1766
+ */
1767
+ listNearbyStars: {
1768
+ path: { identifier: string }
1769
+ query: {
1770
+ /** How far to search: a number and a unit, `pc` or `ly`. At most 100 pc. */
1771
+ radius: `${number} pc` | `${number} ly` | Quantity<'length'>
1772
+ /** With `true`, only stars the NASA Exoplanet Archive lists planets for. Leave it out for every star. */
1773
+ has_planets?: true
1774
+ /** Stars per page. */
1775
+ limit?: number
1776
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1777
+ cursor?: string
1778
+ }
1779
+ body: never
1780
+ response: Schemas['NearbyResponse']
1781
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['OutsideCoverageError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1782
+ }
1783
+ /**
1784
+ * List stars near a point in space
1785
+ *
1786
+ * `GET /sky/nearby`
1787
+ */
1788
+ listStarsNearPoint: {
1789
+ path: Record<string, never>
1790
+ query: {
1791
+ /** Right ascension, ICRS, in decimal degrees: 0 up to 360. */
1792
+ ra: number
1793
+ /** Declination, ICRS, in decimal degrees: -90 to 90. */
1794
+ dec: number
1795
+ /** The point's distance from the Sun: a number and a unit, `pc` or `ly`. At most 1000 pc. */
1796
+ distance: `${number} pc` | `${number} ly` | Quantity<'length'>
1797
+ /** How far to search: a number and a unit, `pc` or `ly`. At most 100 pc. */
1798
+ radius: `${number} pc` | `${number} ly` | Quantity<'length'>
1799
+ /** With `true`, only stars the NASA Exoplanet Archive lists planets for. Leave it out for every star. */
1800
+ has_planets?: true
1801
+ /** Stars per page. */
1802
+ limit?: number
1803
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1804
+ cursor?: string
1805
+ }
1806
+ body: never
1807
+ response: Schemas['PointNearbyResponse']
1808
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1809
+ }
1810
+ /**
1811
+ * The distance between two stars
1812
+ *
1813
+ * `GET /objects/{identifier}/distance/{other}`
1814
+ */
1815
+ getDistance: {
1816
+ path: { identifier: string; other: string }
1817
+ query: Record<string, never>
1818
+ body: never
1819
+ response: Schemas['DistanceBetweenResponse']
1820
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['OutsideCoverageError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1821
+ }
1822
+ /**
1823
+ * Resolve many identifiers
1824
+ *
1825
+ * `POST /objects/resolve`
1826
+ */
1827
+ resolveIdentifiers: {
1828
+ path: Record<string, never>
1829
+ query: Record<string, never>
1830
+ body: Schemas['ResolveRequest']
1831
+ response: Schemas['ResolveResponse']
1832
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnsupportedMediaTypeError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1833
+ }
1834
+ /**
1835
+ * List the objects an object contains
1836
+ *
1837
+ * `GET /objects/{identifier}/members`
1838
+ */
1839
+ listMembers: {
1840
+ path: { identifier: string }
1841
+ query: {
1842
+ /** Links per page. */
1843
+ limit?: number
1844
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1845
+ cursor?: string
1846
+ }
1847
+ body: never
1848
+ response: Schemas['HierarchyResponse']
1849
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1850
+ }
1851
+ /**
1852
+ * List the objects an object belongs to
1853
+ *
1854
+ * `GET /objects/{identifier}/parents`
1855
+ */
1856
+ listParents: {
1857
+ path: { identifier: string }
1858
+ query: {
1859
+ /** Links per page. */
1860
+ limit?: number
1861
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1862
+ cursor?: string
1863
+ }
1864
+ body: never
1865
+ response: Schemas['HierarchyResponse']
1866
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1867
+ }
1868
+ /**
1869
+ * List every published parameter set
1870
+ *
1871
+ * `GET /objects/{identifier}/solutions`
1872
+ */
1873
+ listSolutions: {
1874
+ path: { identifier: string }
1875
+ query: Record<string, never>
1876
+ body: never
1877
+ response: Schemas['SolutionsResponse']
1878
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1879
+ }
1880
+ /**
1881
+ * An object's star system
1882
+ *
1883
+ * `GET /objects/{identifier}/system`
1884
+ */
1885
+ getSystem: {
1886
+ path: { identifier: string }
1887
+ query: Record<string, never>
1888
+ body: never
1889
+ response: Schemas['SystemResponse']
1890
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['NotASystemError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1891
+ }
1892
+ /**
1893
+ * List objects within an angle of a position
1894
+ *
1895
+ * `GET /sky/cone`
1896
+ */
1897
+ searchCone: {
1898
+ path: Record<string, never>
1899
+ query: {
1900
+ /** Right ascension, ICRS, in decimal degrees: 0 up to 360. */
1901
+ ra: number
1902
+ /** Declination, ICRS, in decimal degrees: -90 to 90. */
1903
+ dec: number
1904
+ /** The cone's radius: a number and `arcsec`, `arcmin` or `deg`. At most 1 deg. */
1905
+ radius: `${number} arcsec` | `${number} arcmin` | `${number} deg` | Quantity<'angle'>
1906
+ /** Objects per page. */
1907
+ limit?: number
1908
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1909
+ cursor?: string
1910
+ }
1911
+ body: never
1912
+ response: Schemas['SkyConeResponse']
1913
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1914
+ }
1915
+ /**
1916
+ * List objects within an angle of an object
1917
+ *
1918
+ * `GET /objects/{identifier}/cone`
1919
+ */
1920
+ listObjectsAround: {
1921
+ path: { identifier: string }
1922
+ query: {
1923
+ /** The cone's radius: a number and `arcsec`, `arcmin` or `deg`. At most 1 deg. */
1924
+ radius: `${number} arcsec` | `${number} arcmin` | `${number} deg` | Quantity<'angle'>
1925
+ /** Objects per page. */
1926
+ limit?: number
1927
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1928
+ cursor?: string
1929
+ }
1930
+ body: never
1931
+ response: Schemas['ObjectConeResponse']
1932
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['NoPositionError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1933
+ }
1934
+ /**
1935
+ * List the hosted catalogs
1936
+ *
1937
+ * `GET /catalogs`
1938
+ */
1939
+ listCatalogs: {
1940
+ path: Record<string, never>
1941
+ query: Record<string, never>
1942
+ body: never
1943
+ response: Schemas['CatalogsResponse']
1944
+ error: Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1945
+ }
1946
+ /**
1947
+ * Look up a catalog
1948
+ *
1949
+ * `GET /catalogs/{id}`
1950
+ */
1951
+ getCatalog: {
1952
+ path: { id: string }
1953
+ query: Record<string, never>
1954
+ body: never
1955
+ response: Schemas['CatalogResponse']
1956
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['NotFoundError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1957
+ }
1958
+ /**
1959
+ * Look up a catalog record
1960
+ *
1961
+ * `GET /catalogs/{id}/records/{key}`
1962
+ */
1963
+ getCatalogRecord: {
1964
+ path: { id: string; key: string }
1965
+ query: Record<string, never>
1966
+ body: never
1967
+ response: Schemas['CatalogRowResponse']
1968
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['NotFoundError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
1969
+ }
1970
+ /**
1971
+ * Search a catalog's rows by position
1972
+ *
1973
+ * `GET /catalogs/{id}/cone`
1974
+ */
1975
+ catalogCone: {
1976
+ path: { id: string }
1977
+ query: {
1978
+ /** Right ascension of the center, ICRS decimal degrees. */
1979
+ ra: number
1980
+ /** Declination of the center, ICRS decimal degrees. */
1981
+ dec: number
1982
+ /** The cone's radius: a number and `arcsec`, `arcmin` or `deg`, at most 1 deg. */
1983
+ radius: `${number} arcsec` | `${number} arcmin` | `${number} deg` | Quantity<'angle'>
1984
+ /** Lower bound on G (`phot_g_mean_mag`): leaves out the sources brighter than it. Written as a number, which may be negative, and the unit `mag`. */
1985
+ g_mag_min?: `${number} mag` | Quantity<'magnitude'>
1986
+ /** Upper bound on G: leaves out the sources fainter than it. Written as a number, which may be negative, and the unit `mag`. */
1987
+ g_mag_max?: `${number} mag` | Quantity<'magnitude'>
1988
+ /** Lower bound on `parallax`: `1 mas` keeps the sources nearer than about 1 kpc. A parallax is noisy, and can be negative; pair it with `parallax_over_error_min`. Written as a number and a unit: `mas` or `arcsec`. */
1989
+ parallax_min?: `${number} mas` | `${number} arcsec` | Quantity<'angle'>
1990
+ /** Upper bound on `parallax`. Written as a number and a unit: `mas` or `arcsec`. */
1991
+ parallax_max?: `${number} mas` | `${number} arcsec` | Quantity<'angle'>
1992
+ /** Only sources whose parallax is at least this many times its error (`parallax / parallax_error`), a plain number. `5` keeps parallaxes known to 20%. */
1993
+ parallax_over_error_min?: number
1994
+ /** The most rows a page holds, at most 1000. 100 when left out. */
1995
+ limit?: number
1996
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1997
+ cursor?: string
1998
+ }
1999
+ body: never
2000
+ response: Schemas['CatalogConeResponse']
2001
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['NotFoundError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2002
+ }
2003
+ /**
2004
+ * Search exoplanets
2005
+ *
2006
+ * `GET /exoplanets`
2007
+ */
2008
+ searchExoplanets: {
2009
+ path: Record<string, never>
2010
+ query: {
2011
+ /** Nearest system distance from the Sun (`sy_dist`). A number and a unit: `pc` or `ly`. */
2012
+ distance_min?: `${number} pc` | `${number} ly` | Quantity<'length'>
2013
+ /** Farthest system distance from the Sun (`sy_dist`). A number and a unit: `pc` or `ly`. */
2014
+ distance_max?: `${number} pc` | `${number} ly` | Quantity<'length'>
2015
+ /** Smallest planet radius (`pl_rade`). A number and a unit: `R_earth` or `R_jup`. */
2016
+ radius_min?: `${number} R_earth` | `${number} R_jup` | Quantity<'length'>
2017
+ /** Largest planet radius (`pl_rade`). A number and a unit: `R_earth` or `R_jup`. */
2018
+ radius_max?: `${number} R_earth` | `${number} R_jup` | Quantity<'length'>
2019
+ /** Smallest planet mass (`pl_bmasse`, see Mass above). A number and a unit: `M_earth` or `M_jup`. */
2020
+ mass_min?: `${number} M_earth` | `${number} M_jup` | Quantity<'mass'>
2021
+ /** Largest planet mass (`pl_bmasse`, see Mass above). A number and a unit: `M_earth` or `M_jup`. */
2022
+ mass_max?: `${number} M_earth` | `${number} M_jup` | Quantity<'mass'>
2023
+ /** Only planets whose mass is of these kinds, comma-separated: `mass` a true mass (the archive's `Mass`, or `Msin(i)/sin(i)`: M sin i divided by a separately measured sin i), `msini` a minimum mass M sin i, `mass_radius_relation` a mass the archive calculated from the radius. Planets with no mass are left out. */
2024
+ mass_basis?: readonly ('mass_radius_relation' | 'msini' | 'mass')[]
2025
+ /** Shortest orbital period (`pl_orbper`). A number and a unit: `d`, `h` or `yr`. `yr` is a Julian year, 365.25 days. */
2026
+ orbital_period_min?: `${number} d` | `${number} h` | `${number} yr` | Quantity<'time'>
2027
+ /** Longest orbital period (`pl_orbper`). A number and a unit: `d`, `h` or `yr`. `yr` is a Julian year, 365.25 days. */
2028
+ orbital_period_max?: `${number} d` | `${number} h` | `${number} yr` | Quantity<'time'>
2029
+ /** Lowest equilibrium temperature (`pl_eqt`). A number and a unit: `K`. */
2030
+ equilibrium_temperature_min?: `${number} K` | Quantity<'temperature'>
2031
+ /** Highest equilibrium temperature (`pl_eqt`). A number and a unit: `K`. */
2032
+ equilibrium_temperature_max?: `${number} K` | Quantity<'temperature'>
2033
+ /** Least insolation (`pl_insol`), relative to what Earth receives. A number and a unit: `S_earth`. */
2034
+ insolation_flux_min?: `${number} S_earth` | Quantity<'energy flux'>
2035
+ /** Most insolation (`pl_insol`), relative to what Earth receives. A number and a unit: `S_earth`. */
2036
+ insolation_flux_max?: `${number} S_earth` | Quantity<'energy flux'>
2037
+ /** Only planets discovered by one of these methods, comma-separated (`discoverymethod`, in lower case with underscores): `transit`, `radial_velocity`, `microlensing`, `imaging`, `transit_timing_variations`, `eclipse_timing_variations`, `orbital_brightness_modulation`, `pulsar_timing`, `astrometry`, `pulsation_timing_variations`, `disk_kinematics`. */
2038
+ discovery_method?: readonly ('orbital_brightness_modulation' | 'pulsation_timing_variations' | 'transit_timing_variations' | 'eclipse_timing_variations' | 'radial_velocity' | 'disk_kinematics' | 'pulsar_timing' | 'microlensing' | 'astrometry' | 'transit' | 'imaging')[]
2039
+ /** Earliest discovery year (`disc_year`). */
2040
+ discovery_year_min?: number
2041
+ /** Latest discovery year (`disc_year`). */
2042
+ discovery_year_max?: number
2043
+ /** With `exclude`, a value the archive calculated itself (see Calculated values above) never satisfies a range bound, as if the archive had none. It changes which planets match, not what each result contains. */
2044
+ calculated?: 'include' | 'exclude'
2045
+ /** The order: `distance` (system distance), `name` (the archive's name, by character code), or one of the quantities above, by its published value. Ties are broken by name. */
2046
+ sort?: 'distance' | 'name' | 'radius' | 'mass' | 'orbital_period' | 'equilibrium_temperature' | 'insolation_flux' | 'discovery_year'
2047
+ /** `asc` smallest first, `desc` largest first. Planets without a value still come last. */
2048
+ order?: 'asc' | 'desc'
2049
+ /** Planets per page. */
2050
+ limit?: number
2051
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Repeat the same filters and order with it. Leave it out for the first page. */
2052
+ cursor?: string
2053
+ }
2054
+ body: never
2055
+ response: Schemas['ExoplanetSearchResponse']
2056
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2057
+ }
2058
+ /**
2059
+ * List every type SIMBAD assigns an object
2060
+ *
2061
+ * `GET /objects/{identifier}/classifications`
2062
+ */
2063
+ listClassifications: {
2064
+ path: { identifier: string }
2065
+ query: Record<string, never>
2066
+ body: never
2067
+ response: Schemas['ClassificationsResponse']
2068
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2069
+ }
2070
+ /**
2071
+ * List the object types
2072
+ *
2073
+ * `GET /types`
2074
+ */
2075
+ listTypes: {
2076
+ path: Record<string, never>
2077
+ query: Record<string, never>
2078
+ body: never
2079
+ response: Schemas['TypesResponse']
2080
+ error: Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2081
+ }
2082
+ /**
2083
+ * Look up a SIMBAD object type
2084
+ *
2085
+ * `GET /types/{otype}`
2086
+ */
2087
+ getType: {
2088
+ path: { otype: string }
2089
+ query: Record<string, never>
2090
+ body: never
2091
+ response: Schemas['TypeResponse']
2092
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['NotFoundError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2093
+ }
2094
+ /**
2095
+ * Search nearby stars
2096
+ *
2097
+ * `GET /stars`
2098
+ */
2099
+ searchStars: {
2100
+ path: Record<string, never>
2101
+ query: {
2102
+ /** Nearest distance from the Sun, `1000 / parallax`. Written as a number and a unit: `pc` or `ly`. */
2103
+ distance_min?: `${number} pc` | `${number} ly` | Quantity<'length'>
2104
+ /** Farthest distance from the Sun, `1000 / parallax`. Written as a number and a unit: `pc` or `ly`. */
2105
+ distance_max?: `${number} pc` | `${number} ly` | Quantity<'length'>
2106
+ /** Lower bound on apparent Gaia G (`photometry.g_mag`): leaves out the stars brighter than it. Written as a number, which may be negative, and the unit `mag`. */
2107
+ g_mag_min?: `${number} mag` | Quantity<'magnitude'>
2108
+ /** Upper bound on apparent Gaia G: leaves out the stars fainter than it, so `6 mag` keeps the stars at least as bright as G = 6. Written as a number, which may be negative, and the unit `mag`. */
2109
+ g_mag_max?: `${number} mag` | Quantity<'magnitude'>
2110
+ /** Lower bound on the derived absolute G magnitude (`photometry.absolute_g_mag`): leaves out the stars more luminous than it. Written as a number, which may be negative, and the unit `mag`. */
2111
+ absolute_g_mag_min?: `${number} mag` | Quantity<'magnitude'>
2112
+ /** Upper bound on the derived absolute G magnitude: leaves out the stars less luminous than it. The Sun's is about 4.7. Written as a number, which may be negative, and the unit `mag`. */
2113
+ absolute_g_mag_max?: `${number} mag` | Quantity<'magnitude'>
2114
+ /** Lower bound on the derived color BP - RP (`photometry.bp_rp`): leaves out the stars bluer than it. Written as a number, which may be negative, and the unit `mag`. */
2115
+ bp_rp_min?: `${number} mag` | Quantity<'magnitude'>
2116
+ /** Upper bound on the derived color BP - RP: leaves out the stars redder than it. The Sun's is about 0.82. Written as a number, which may be negative, and the unit `mag`. */
2117
+ bp_rp_max?: `${number} mag` | Quantity<'magnitude'>
2118
+ /** Only stars whose parallax is at least this many times its error (`parallax / sigma_parallax`), a plain number. `10` keeps parallaxes known to 10%, for which `1000 / parallax` is close to unbiased and the parallax adds at most about 0.22 mag to the absolute magnitude's uncertainty. The Sun, with no parallax but an exact distance, always passes. Left out, no star is excluded for its parallax. */
2119
+ parallax_over_error_min?: number
2120
+ /** With `true`, only stars the NASA Exoplanet Archive lists planets for. Leave it out for every star. */
2121
+ has_planets?: true
2122
+ /** The order: `distance` from the Sun, `g_mag` (apparent G), `absolute_g_mag`, or `bp_rp`. Ties are broken by catalog and row. */
2123
+ sort?: 'distance' | 'g_mag' | 'absolute_g_mag' | 'bp_rp'
2124
+ /** `asc` smallest value first: nearest, brightest or bluest. `desc` largest first. Stars without the value still come last. */
2125
+ order?: 'asc' | 'desc'
2126
+ /** Stars per page. */
2127
+ limit?: number
2128
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Repeat the same filters, sort and order with it. Leave it out for the first page. */
2129
+ cursor?: string
2130
+ }
2131
+ body: never
2132
+ response: Schemas['StarSearchResponse']
2133
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2134
+ }
2135
+ /**
2136
+ * Every nearby star, as Apache Arrow
2137
+ *
2138
+ * `GET /stars/all`
2139
+ */
2140
+ allStars: {
2141
+ path: Record<string, never>
2142
+ query: Record<string, never>
2143
+ body: never
2144
+ response: Response
2145
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2146
+ }
2147
+ /**
2148
+ * List the brightest stars
2149
+ *
2150
+ * `GET /stars/bright`
2151
+ */
2152
+ listBrightStars: {
2153
+ path: Record<string, never>
2154
+ query: {
2155
+ /** Upper bound on the Hipparcos magnitude Hp: leaves out the stars fainter than it. A number, which may be negative, and the unit `mag`. Left out, every Hipparcos star is listed. */
2156
+ hp_mag_max?: `${number} mag` | Quantity<'magnitude'>
2157
+ /** Stars per page. */
2158
+ limit?: number
2159
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Repeat the same `hp_mag_max` with it. Leave it out for the first page. */
2160
+ cursor?: string
2161
+ }
2162
+ body: never
2163
+ response: Schemas['BrightStarsResponse']
2164
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2165
+ }
2166
+ /**
2167
+ * Complete a name as it is typed
2168
+ *
2169
+ * `GET /names`
2170
+ */
2171
+ completeNames: {
2172
+ path: Record<string, never>
2173
+ query: {
2174
+ /** What has been typed so far. */
2175
+ q: string
2176
+ /** How many names to give, at most 20. 8 when left out. */
2177
+ limit?: number
2178
+ }
2179
+ body: never
2180
+ response: Schemas['NamesResponse']
2181
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2182
+ }
2183
+ /**
2184
+ * Cross-match positions
2185
+ *
2186
+ * `POST /sky/match`
2187
+ */
2188
+ matchPositions: {
2189
+ path: Record<string, never>
2190
+ query: Record<string, never>
2191
+ body: Schemas['MatchRequest']
2192
+ response: Schemas['MatchResponse']
2193
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnsupportedMediaTypeError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2194
+ }
2195
+ /**
2196
+ * Create an API key
2197
+ *
2198
+ * `POST /api-keys`
2199
+ */
2200
+ createApiKey: {
2201
+ path: Record<string, never>
2202
+ query: Record<string, never>
2203
+ body: Schemas['NewApiKeyRequest']
2204
+ response: Schemas['NewApiKeyResponse']
2205
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['ForbiddenError'] | Schemas['KeyLimitReachedError'] | Schemas['UnsupportedMediaTypeError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2206
+ }
2207
+ /**
2208
+ * List an account's API keys
2209
+ *
2210
+ * `GET /api-keys`
2211
+ */
2212
+ listApiKeys: {
2213
+ path: Record<string, never>
2214
+ query: {
2215
+ /** Keys per page. */
2216
+ limit?: number
2217
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
2218
+ cursor?: string
2219
+ }
2220
+ body: never
2221
+ response: Schemas['ApiKeysResponse']
2222
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['ForbiddenError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2223
+ }
2224
+ /**
2225
+ * Look up an API key and its usage
2226
+ *
2227
+ * `GET /api-keys/{id}`
2228
+ */
2229
+ getApiKey: {
2230
+ path: { id: string }
2231
+ query: Record<string, never>
2232
+ body: never
2233
+ response: Schemas['ApiKeyResponse']
2234
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['ForbiddenError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2235
+ }
2236
+ /**
2237
+ * Revoke an API key
2238
+ *
2239
+ * `DELETE /api-keys/{id}`
2240
+ */
2241
+ revokeApiKey: {
2242
+ path: { id: string }
2243
+ query: Record<string, never>
2244
+ body: never
2245
+ response: Schemas['RevokedApiKeyResponse']
2246
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['ForbiddenError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2247
+ }
2248
+ /**
2249
+ * Get the account, its quota and its usage
2250
+ *
2251
+ * `GET /account`
2252
+ */
2253
+ getAccount: {
2254
+ path: Record<string, never>
2255
+ query: Record<string, never>
2256
+ body: never
2257
+ response: Schemas['AccountResponse']
2258
+ error: Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError']
2259
+ }
2260
+ }
2261
+
2262
+ /** Every error code the API answers with, and the `details` each carries (undefined when none). */
2263
+ export interface ErrorDetails {
2264
+ ambiguous_identifier: {
2265
+ candidates: Schemas['Candidate'][]
2266
+ }
2267
+ invalid_request: {
2268
+ /** The part of the request that failed: param, query, json or header. */
2269
+ target: string
2270
+ issues: {
2271
+ path: string
2272
+ message: string
2273
+ }[]
2274
+ }
2275
+ api_key_required: undefined
2276
+ invalid_api_key: undefined
2277
+ not_found: {
2278
+ /** Objects whose names look like the identifier ("Betelguese" suggests Betelgeuse), most alike first, up to 5. Only names are compared, not designations; empty when none is close. */
2279
+ suggestions: Schemas['Suggestion'][]
2280
+ } | undefined
2281
+ rate_limited: undefined
2282
+ quota_exceeded: {
2283
+ /** The account's plan. */
2284
+ plan: string
2285
+ /** Requests the plan allows a month. */
2286
+ limit: number
2287
+ /** Requests counted this month. */
2288
+ used: number
2289
+ /** When the next month starts, in UTC. */
2290
+ resets_at: string
2291
+ }
2292
+ internal_error: undefined
2293
+ unavailable: undefined
2294
+ outside_coverage: undefined
2295
+ unsupported_media_type: undefined
2296
+ not_a_system: undefined
2297
+ no_position: undefined
2298
+ sign_in_required: undefined
2299
+ forbidden: undefined
2300
+ key_limit_reached: undefined
2301
+ }
2302
+
2303
+ /** How the client sends each operation: its method and path, the units each quantity parameter accepts, and how it answers. */
2304
+ export const OPERATIONS = {
2305
+ getObject: { method: 'GET', path: '/objects/{identifier}', query: {}, response: 'json', paged: false },
2306
+ listPlanets: { method: 'GET', path: '/objects/{identifier}/planets', query: {}, response: 'json', paged: false },
2307
+ listNearbyStars: { method: 'GET', path: '/objects/{identifier}/nearby', query: { radius: { units: ['pc', 'ly'] }, has_planets: {}, limit: {}, cursor: {} }, response: 'json', paged: true },
2308
+ listStarsNearPoint: { method: 'GET', path: '/sky/nearby', query: { ra: {}, dec: {}, distance: { units: ['pc', 'ly'] }, radius: { units: ['pc', 'ly'] }, has_planets: {}, limit: {}, cursor: {} }, response: 'json', paged: true },
2309
+ getDistance: { method: 'GET', path: '/objects/{identifier}/distance/{other}', query: {}, response: 'json', paged: false },
2310
+ resolveIdentifiers: { method: 'POST', path: '/objects/resolve', query: {}, response: 'json', paged: false },
2311
+ listMembers: { method: 'GET', path: '/objects/{identifier}/members', query: { limit: {}, cursor: {} }, response: 'json', paged: true },
2312
+ listParents: { method: 'GET', path: '/objects/{identifier}/parents', query: { limit: {}, cursor: {} }, response: 'json', paged: true },
2313
+ listSolutions: { method: 'GET', path: '/objects/{identifier}/solutions', query: {}, response: 'json', paged: false },
2314
+ getSystem: { method: 'GET', path: '/objects/{identifier}/system', query: {}, response: 'json', paged: false },
2315
+ searchCone: { method: 'GET', path: '/sky/cone', query: { ra: {}, dec: {}, radius: { units: ['arcsec', 'arcmin', 'deg'] }, limit: {}, cursor: {} }, response: 'json', paged: true },
2316
+ listObjectsAround: { method: 'GET', path: '/objects/{identifier}/cone', query: { radius: { units: ['arcsec', 'arcmin', 'deg'] }, limit: {}, cursor: {} }, response: 'json', paged: true },
2317
+ listCatalogs: { method: 'GET', path: '/catalogs', query: {}, response: 'json', paged: false },
2318
+ getCatalog: { method: 'GET', path: '/catalogs/{id}', query: {}, response: 'json', paged: false },
2319
+ getCatalogRecord: { method: 'GET', path: '/catalogs/{id}/records/{key}', query: {}, response: 'json', paged: false },
2320
+ catalogCone: { method: 'GET', path: '/catalogs/{id}/cone', query: { ra: {}, dec: {}, radius: { units: ['arcsec', 'arcmin', 'deg'] }, g_mag_min: { units: ['mag'] }, g_mag_max: { units: ['mag'] }, parallax_min: { units: ['mas', 'arcsec'] }, parallax_max: { units: ['mas', 'arcsec'] }, parallax_over_error_min: {}, limit: {}, cursor: {} }, response: 'json', paged: true },
2321
+ searchExoplanets: { method: 'GET', path: '/exoplanets', query: { distance_min: { units: ['pc', 'ly'] }, distance_max: { units: ['pc', 'ly'] }, radius_min: { units: ['R_earth', 'R_jup'] }, radius_max: { units: ['R_earth', 'R_jup'] }, mass_min: { units: ['M_earth', 'M_jup'] }, mass_max: { units: ['M_earth', 'M_jup'] }, mass_basis: {}, orbital_period_min: { units: ['d', 'h', 'yr'] }, orbital_period_max: { units: ['d', 'h', 'yr'] }, equilibrium_temperature_min: { units: ['K'] }, equilibrium_temperature_max: { units: ['K'] }, insolation_flux_min: { units: ['S_earth'] }, insolation_flux_max: { units: ['S_earth'] }, discovery_method: {}, discovery_year_min: {}, discovery_year_max: {}, calculated: {}, sort: {}, order: {}, limit: {}, cursor: {} }, response: 'json', paged: true },
2322
+ listClassifications: { method: 'GET', path: '/objects/{identifier}/classifications', query: {}, response: 'json', paged: false },
2323
+ listTypes: { method: 'GET', path: '/types', query: {}, response: 'json', paged: false },
2324
+ getType: { method: 'GET', path: '/types/{otype}', query: {}, response: 'json', paged: false },
2325
+ searchStars: { method: 'GET', path: '/stars', query: { distance_min: { units: ['pc', 'ly'] }, distance_max: { units: ['pc', 'ly'] }, g_mag_min: { units: ['mag'] }, g_mag_max: { units: ['mag'] }, absolute_g_mag_min: { units: ['mag'] }, absolute_g_mag_max: { units: ['mag'] }, bp_rp_min: { units: ['mag'] }, bp_rp_max: { units: ['mag'] }, parallax_over_error_min: {}, has_planets: {}, sort: {}, order: {}, limit: {}, cursor: {} }, response: 'json', paged: true },
2326
+ allStars: { method: 'GET', path: '/stars/all', query: {}, response: 'arrow', paged: false },
2327
+ listBrightStars: { method: 'GET', path: '/stars/bright', query: { hp_mag_max: { units: ['mag'] }, limit: {}, cursor: {} }, response: 'json', paged: true },
2328
+ completeNames: { method: 'GET', path: '/names', query: { q: {}, limit: {} }, response: 'json', paged: false },
2329
+ matchPositions: { method: 'POST', path: '/sky/match', query: {}, response: 'json', paged: false },
2330
+ createApiKey: { method: 'POST', path: '/api-keys', query: {}, response: 'json', paged: false },
2331
+ listApiKeys: { method: 'GET', path: '/api-keys', query: { limit: {}, cursor: {} }, response: 'json', paged: true },
2332
+ getApiKey: { method: 'GET', path: '/api-keys/{id}', query: {}, response: 'json', paged: false },
2333
+ revokeApiKey: { method: 'DELETE', path: '/api-keys/{id}', query: {}, response: 'json', paged: false },
2334
+ getAccount: { method: 'GET', path: '/account', query: {}, response: 'json', paged: false },
2335
+ } as const