@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/dist/api.d.ts ADDED
@@ -0,0 +1,2695 @@
1
+ import type { Quantity } from '@arcosmos/astronomy';
2
+ /** Every schema the API's responses and request bodies are made of, by its name in the document. */
3
+ export interface Schemas {
4
+ ObjectResponse: {
5
+ data: Schemas['Object'];
6
+ metadata: Schemas['ObjectMetadata'];
7
+ };
8
+ Object: {
9
+ /** Arcosmos's stable id for the object. */
10
+ id: string;
11
+ canonical_name: string;
12
+ object_type: string | null;
13
+ object_type_source: Schemas['Source'] | null;
14
+ position: Schemas['Position'] | null;
15
+ identifiers: Schemas['Identifier'][];
16
+ relations: Schemas['Relation'][];
17
+ measurements: Schemas['Measurement'][];
18
+ /**
19
+ * Values the API computes from `measurements`, each with its method and inputs. Empty when the inputs a method needs are missing.
20
+ *
21
+ * - `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)`.
22
+ * - 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.
23
+ * - 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.
24
+ * - 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.
25
+ * - 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.
26
+ * - `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.
27
+ * - `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.
28
+ * - `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.
29
+ *
30
+ * 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.
31
+ */
32
+ derived: Schemas['DerivedValue'][];
33
+ sources: Schemas['CatalogRecord'][];
34
+ };
35
+ /** Where a value comes from. */
36
+ Source: {
37
+ /** The catalog the value comes from. `metadata.catalogs` describes it. */
38
+ catalog: string;
39
+ /** The catalog release the value was read from. */
40
+ release: string | null;
41
+ /** 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. */
42
+ record?: string;
43
+ };
44
+ Position: {
45
+ ra: number;
46
+ dec: number;
47
+ unit: 'deg';
48
+ frame: string | null;
49
+ /** A Julian year; null when the source does not state it. */
50
+ epoch: number | null;
51
+ uncertainty: Schemas['ErrorEllipse'] | null;
52
+ quality?: string;
53
+ reference?: Schemas['Reference'];
54
+ source: Schemas['Source'] | null;
55
+ };
56
+ /** An error ellipse. */
57
+ ErrorEllipse: {
58
+ kind: 'error_ellipse';
59
+ major: number | null;
60
+ minor: number | null;
61
+ /** Position angle of the major axis, east of north. */
62
+ angle_deg: number | null;
63
+ unit: string;
64
+ };
65
+ /** The publication a value comes from: an ADS bibcode, or a citation with a link. */
66
+ Reference: {
67
+ bibcode?: string;
68
+ label?: string;
69
+ url?: string;
70
+ };
71
+ /** One identifier as written, with every source that lists it. */
72
+ Identifier: {
73
+ identifier: string;
74
+ /** The catalog or scheme the identifier belongs to. */
75
+ namespace: string;
76
+ sources: (Schemas['Source'] & {
77
+ confidence: number;
78
+ method: string;
79
+ })[];
80
+ };
81
+ Relation: {
82
+ relation: ('orbits' | 'orbited_by') | (string & {});
83
+ object: Schemas['ObjectSummary'];
84
+ confidence: number;
85
+ method: string;
86
+ source: Schemas['Source'];
87
+ };
88
+ ObjectSummary: {
89
+ id: string;
90
+ canonical_name: string;
91
+ object_type: string | null;
92
+ };
93
+ /** 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. */
94
+ Measurement: {
95
+ /** 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. */
96
+ quantity: string;
97
+ /** The value as published. */
98
+ value: number | string;
99
+ /** 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. */
100
+ unit: string | null;
101
+ uncertainty: Schemas['SymmetricUncertainty'] | Schemas['AsymmetricUncertainty'] | Schemas['ErrorEllipse'] | Schemas['PercentileUncertainty'] | null;
102
+ /** Set when the value is a limit rather than a measurement. */
103
+ limit?: 'upper' | 'lower';
104
+ /** What the value is of, or how it was obtained, in the catalog's words. */
105
+ basis?: string;
106
+ /** The catalog's quality grade for the value (SIMBAD: A best to E worst). */
107
+ quality?: string;
108
+ /** 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. */
109
+ note?: string;
110
+ reference?: Schemas['Reference'];
111
+ source: Schemas['Source'];
112
+ };
113
+ /** A one-sigma error, in the value's unit. */
114
+ SymmetricUncertainty: {
115
+ kind: 'symmetric';
116
+ value: number;
117
+ };
118
+ /** Upper and lower errors, in the value's unit. */
119
+ AsymmetricUncertainty: {
120
+ kind: 'asymmetric';
121
+ /** The upper error (>= 0), as published. */
122
+ plus: number | null;
123
+ /** The lower error (<= 0), as published. */
124
+ minus: number | null;
125
+ };
126
+ /** 16th and 84th percentiles of a distribution whose median is the value. */
127
+ PercentileUncertainty: {
128
+ kind: 'percentiles';
129
+ p16: number | null;
130
+ p84: number | null;
131
+ };
132
+ /** 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. */
133
+ DerivedValue: {
134
+ /** What the value is: so far only `radius`. */
135
+ quantity: string;
136
+ /** The value as computed, in full. */
137
+ value: number;
138
+ /** Written as for measurements. */
139
+ unit: string;
140
+ /** One sigma, propagated to first order from the published errors of the inputs. Null when an input has no error. */
141
+ uncertainty: Schemas['SymmetricUncertainty'] | null;
142
+ /** How the value was computed. The field that holds it describes each method. */
143
+ method: ('angular_diameter_and_parallax' | 'angular_diameter_and_distance' | 'estimated_angular_diameter_and_parallax' | 'estimated_angular_diameter_and_distance' | 'luminosity_and_temperature') | (string & {});
144
+ /** The published measurements the value was computed from, exactly as `measurements` lists them, with their sources and references. */
145
+ inputs: Schemas['Measurement'][];
146
+ };
147
+ /** A catalog record matched to the object. */
148
+ CatalogRecord: {
149
+ catalog: string;
150
+ release: string | null;
151
+ record: string;
152
+ match: {
153
+ /** How the record was matched to the object. */
154
+ method: string;
155
+ confidence: number;
156
+ };
157
+ };
158
+ ObjectMetadata: {
159
+ api_version: 'v1';
160
+ generated_at: string;
161
+ resolution: Schemas['Resolution'];
162
+ catalogs: Schemas['Catalog'][];
163
+ };
164
+ /** How the request was resolved to an object. */
165
+ Resolution: Schemas['ResolutionById'] | Schemas['ResolutionByIdentifier'];
166
+ ResolutionById: {
167
+ query: string;
168
+ method: 'object_id';
169
+ /** Set when the requested id was merged into this object. */
170
+ merged_from?: string;
171
+ };
172
+ ResolutionByIdentifier: {
173
+ query: string;
174
+ method: 'identifier';
175
+ matched_identifier: string;
176
+ namespace: string;
177
+ /** 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. */
178
+ match: ('alias' | 'name_variant' | 'name' | 'loose') | (string & {});
179
+ confidence: number;
180
+ matched_by: string;
181
+ source_catalog: string;
182
+ /** 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. */
183
+ chosen_by?: 'citations' | (string & {});
184
+ other_candidates: Schemas['Candidate'][];
185
+ };
186
+ /** Another object the query could name. */
187
+ Candidate: {
188
+ id: string;
189
+ canonical_name: string;
190
+ object_type: string | null;
191
+ matched_identifier: string;
192
+ match: ('alias' | 'name_variant' | 'name' | 'loose') | (string & {});
193
+ confidence: number;
194
+ /** How many publications SIMBAD lists for the object, a measure of how studied it is. Null for an object without a SIMBAD record. */
195
+ citations: number | null;
196
+ };
197
+ /** A catalog a response draws on, with the release read and what its license asks of you. SIMBAD's ODbL requires attribution. */
198
+ Catalog: {
199
+ id: string;
200
+ name: string;
201
+ provider: string;
202
+ /** The catalog's active release, the one read. */
203
+ release: string | null;
204
+ license: string | null;
205
+ /** How the catalog asks to be cited. */
206
+ citation: string | null;
207
+ homepage_url: string | null;
208
+ };
209
+ AmbiguousIdentifierError: {
210
+ error: {
211
+ code: 'ambiguous_identifier';
212
+ message: string;
213
+ details: {
214
+ candidates: Schemas['Candidate'][];
215
+ };
216
+ };
217
+ };
218
+ /** The request failed validation. `details.issues` says what is wrong. */
219
+ InvalidRequestError: {
220
+ error: {
221
+ code: 'invalid_request';
222
+ message: string;
223
+ details: {
224
+ /** The part of the request that failed: param, query, json or header. */
225
+ target: string;
226
+ issues: {
227
+ path: string;
228
+ message: string;
229
+ }[];
230
+ };
231
+ };
232
+ };
233
+ /** The request sent no API key. Every route needs one. */
234
+ ApiKeyRequiredError: {
235
+ error: {
236
+ code: 'api_key_required';
237
+ message: string;
238
+ };
239
+ };
240
+ /** The request sent an API key that is malformed, unknown or revoked. */
241
+ InvalidApiKeyError: {
242
+ error: {
243
+ code: 'invalid_api_key';
244
+ message: string;
245
+ };
246
+ };
247
+ /** 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. */
248
+ UnknownIdentifierError: {
249
+ error: {
250
+ code: 'not_found';
251
+ message: string;
252
+ /** Given for a name or designation; not for an object id. */
253
+ details?: {
254
+ /** 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. */
255
+ suggestions: Schemas['Suggestion'][];
256
+ };
257
+ };
258
+ };
259
+ /** An object whose name looks like a query nothing matched. A suggestion, not a match: resolve it by its id. */
260
+ Suggestion: {
261
+ id: string;
262
+ canonical_name: string;
263
+ object_type: string | null;
264
+ /** The name of the object that looks like the query. */
265
+ name: string;
266
+ /** How alike the name and the query are, from 0.3 to 1: the trigram similarity of the two with spaces and punctuation removed. */
267
+ similarity: number;
268
+ /** How many publications SIMBAD lists for the object. Null without a SIMBAD record. */
269
+ citations: number | null;
270
+ };
271
+ /** The key made too many requests in a short time. Retry after the seconds `Retry-After` gives. */
272
+ RateLimitedError: {
273
+ error: {
274
+ code: 'rate_limited';
275
+ message: string;
276
+ };
277
+ };
278
+ /** The account has used the requests its plan allows this month. `Retry-After` gives the seconds until the next month starts. */
279
+ QuotaExceededError: {
280
+ error: {
281
+ code: 'quota_exceeded';
282
+ message: string;
283
+ details: {
284
+ /** The account's plan. */
285
+ plan: string;
286
+ /** Requests the plan allows a month. */
287
+ limit: number;
288
+ /** Requests counted this month. */
289
+ used: number;
290
+ /** When the next month starts, in UTC. */
291
+ resets_at: string;
292
+ };
293
+ };
294
+ };
295
+ InternalError: {
296
+ error: {
297
+ code: 'internal_error';
298
+ message: string;
299
+ };
300
+ };
301
+ UnavailableError: {
302
+ error: {
303
+ code: 'unavailable';
304
+ message: string;
305
+ };
306
+ };
307
+ PlanetsResponse: {
308
+ data: Schemas['Planet'][];
309
+ metadata: Schemas['PlanetsMetadata'];
310
+ };
311
+ Planet: {
312
+ id: string;
313
+ canonical_name: string;
314
+ object_type: string | null;
315
+ /** How the planet is known to orbit the target: the catalog that says so, and how it was linked. */
316
+ relation: {
317
+ confidence: number;
318
+ method: string;
319
+ source: Schemas['Source'];
320
+ };
321
+ measurements: Schemas['Measurement'][];
322
+ };
323
+ PlanetsMetadata: {
324
+ api_version: 'v1';
325
+ generated_at: string;
326
+ resolution: Schemas['Resolution'];
327
+ target: Schemas['ObjectSummary'];
328
+ catalogs: Schemas['Catalog'][];
329
+ };
330
+ NearbyResponse: {
331
+ data: Schemas['NearbyStar'][];
332
+ metadata: Schemas['NearbyMetadata'];
333
+ };
334
+ /** 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. */
335
+ NearbyStar: {
336
+ object: (Schemas['ObjectSummary'] & {
337
+ /** `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. */
338
+ matched_by: ('catalog_record' | 'shared_gaia_dr3') | (string & {});
339
+ }) | null;
340
+ designations: {
341
+ cns5: number | null;
342
+ /** Gliese-Jahreiss number, from CNS5. */
343
+ gj: string | null;
344
+ /** Component of a multiple system, from CNS5. */
345
+ component: string | null;
346
+ hip: number | null;
347
+ /** Gaia DR3 source_id, as a string (it exceeds 2^53). */
348
+ gaia_dr3: string | null;
349
+ };
350
+ /** As published. Null for the Sun. */
351
+ position: Schemas['StarPosition'] | null;
352
+ /** As published. Null for the Sun. */
353
+ parallax: Schemas['Parallax'] | null;
354
+ distance: Schemas['Distance'];
355
+ distance_from_sun: Schemas['Distance'];
356
+ /** 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. */
357
+ planet_count: number;
358
+ photometry: Schemas['StarPhotometry'];
359
+ source: Schemas['Source'];
360
+ };
361
+ StarPosition: {
362
+ ra: number;
363
+ dec: number;
364
+ unit: 'deg';
365
+ frame: 'ICRS';
366
+ /** The epoch of the published position, as a Julian year. */
367
+ epoch: number | null;
368
+ };
369
+ Parallax: {
370
+ value: number;
371
+ unit: 'mas';
372
+ uncertainty: Schemas['SymmetricUncertainty'] | null;
373
+ };
374
+ /** 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. */
375
+ Distance: {
376
+ value: number;
377
+ unit: 'pc';
378
+ uncertainty: Schemas['SymmetricUncertainty'] | null;
379
+ };
380
+ /** 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. */
381
+ StarPhotometry: {
382
+ /** 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. */
383
+ g_mag: Schemas['Magnitude'] | null;
384
+ /** 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. */
385
+ bp_mag: Schemas['Magnitude'] | null;
386
+ /** Gaia EDR3 RP, as the row's catalog publishes it. Its error is not carried either. */
387
+ rp_mag: Schemas['Magnitude'] | null;
388
+ /** 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. */
389
+ bp_rp: Schemas['DerivedMagnitude'] | null;
390
+ /** 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. */
391
+ absolute_g_mag: Schemas['AbsoluteMagnitude'] | null;
392
+ /** 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. */
393
+ g_mag_from_hip: Schemas['Magnitude'] | null;
394
+ /** 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. */
395
+ g_rp_from_hip: Schemas['Magnitude'] | null;
396
+ /** 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. */
397
+ absolute_g_mag_from_hip: Schemas['AbsoluteMagnitude'] | null;
398
+ };
399
+ /** A magnitude as a catalog publishes it, never converted. The star's `source` names the catalog and record. */
400
+ Magnitude: {
401
+ value: number;
402
+ unit: 'mag';
403
+ /** 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). */
404
+ uncertainty: Schemas['SymmetricUncertainty'] | null;
405
+ };
406
+ /** A magnitude or color the API computes from published values, not one a catalog publishes. The field that holds it states the method. */
407
+ DerivedMagnitude: {
408
+ value: number;
409
+ unit: 'mag';
410
+ /** 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). */
411
+ uncertainty: Schemas['SymmetricUncertainty'] | null;
412
+ };
413
+ /** An absolute magnitude the API derives from an apparent magnitude and a parallax. */
414
+ AbsoluteMagnitude: Schemas['DerivedMagnitude'] & {
415
+ /** 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. */
416
+ parallax_uncertainty: Schemas['SymmetricUncertainty'] | null;
417
+ };
418
+ NearbyMetadata: {
419
+ api_version: 'v1';
420
+ generated_at: string;
421
+ resolution: Schemas['Resolution'];
422
+ target: Schemas['ObjectSummary'];
423
+ catalogs: Schemas['Catalog'][];
424
+ center: Schemas['NearbyCenter'];
425
+ query: {
426
+ radius: {
427
+ value: number;
428
+ unit: 'pc' | 'ly';
429
+ /** In parsecs. */
430
+ pc: number;
431
+ };
432
+ /** Whether only stars with known planets were returned. */
433
+ has_planets: boolean;
434
+ };
435
+ coverage: Schemas['Coverage'];
436
+ page: Schemas['Page'];
437
+ };
438
+ /** The star in the nearby-stars table that stands for an object. */
439
+ NearbyCenter: {
440
+ object: Schemas['ObjectSummary'];
441
+ /** `host_star` when the object asked for is a planet, so the star it orbits stands in for it. */
442
+ via: ('target' | 'host_star') | (string & {});
443
+ /** Null for the Sun. */
444
+ position: Schemas['StarPosition'] | null;
445
+ distance_from_sun: Schemas['Distance'];
446
+ source: Schemas['Source'];
447
+ };
448
+ /** 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. */
449
+ Coverage: {
450
+ volume_radius_pc: number;
451
+ sphere_inside_volume: boolean;
452
+ };
453
+ /** Results come in pages, in a fixed order. */
454
+ Page: {
455
+ limit: number;
456
+ /** How many results the query has across all pages. */
457
+ total: number;
458
+ /** Pass as `cursor` to get the next page. Null on the last page. */
459
+ next_cursor: string | null;
460
+ };
461
+ OutsideCoverageError: {
462
+ error: {
463
+ code: 'outside_coverage';
464
+ message: string;
465
+ };
466
+ };
467
+ PointNearbyResponse: {
468
+ data: Schemas['NearbyStar'][];
469
+ metadata: Schemas['PointNearbyMetadata'];
470
+ };
471
+ PointNearbyMetadata: {
472
+ api_version: 'v1';
473
+ generated_at: string;
474
+ center: Schemas['PointCenter'];
475
+ query: {
476
+ ra: number;
477
+ dec: number;
478
+ distance: {
479
+ value: number;
480
+ unit: 'pc' | 'ly';
481
+ /** In parsecs. */
482
+ pc: number;
483
+ };
484
+ radius: {
485
+ value: number;
486
+ unit: 'pc' | 'ly';
487
+ /** In parsecs. */
488
+ pc: number;
489
+ };
490
+ /** Whether only stars with known planets were returned. */
491
+ has_planets: boolean;
492
+ };
493
+ coverage: Schemas['Coverage'];
494
+ page: Schemas['Page'];
495
+ catalogs: Schemas['Catalog'][];
496
+ };
497
+ /** The point the search is centered on, as given (its uncertainty is null). */
498
+ PointCenter: {
499
+ position: Schemas['StarPosition'];
500
+ distance_from_sun: Schemas['Distance'];
501
+ };
502
+ DistanceBetweenResponse: {
503
+ /** `distance` is the straight-line distance between the two stars, derived from their parallaxes (see Distance). */
504
+ data: {
505
+ distance: Schemas['Distance'];
506
+ from: Schemas['NearbyCenter'];
507
+ to: Schemas['NearbyCenter'];
508
+ };
509
+ metadata: Schemas['DistanceBetweenMetadata'];
510
+ };
511
+ DistanceBetweenMetadata: {
512
+ api_version: 'v1';
513
+ generated_at: string;
514
+ resolution: {
515
+ from: Schemas['Resolution'];
516
+ to: Schemas['Resolution'];
517
+ };
518
+ catalogs: Schemas['Catalog'][];
519
+ };
520
+ ResolveResponse: {
521
+ /** One entry per identifier sent, in the same order. */
522
+ data: Schemas['ResolveEntry'][];
523
+ metadata: Schemas['ResolveMetadata'];
524
+ };
525
+ /** What one identifier resolved to. */
526
+ ResolveEntry: Schemas['ResolvedIdentifier'] | Schemas['AmbiguousIdentifier'] | Schemas['UnknownIdentifier'] | Schemas['InvalidIdentifier'];
527
+ ResolvedIdentifier: {
528
+ /** The identifier as sent. */
529
+ query: string;
530
+ status: 'resolved';
531
+ object: Schemas['ObjectSummary'];
532
+ /** 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. */
533
+ position: Schemas['Position'] | null;
534
+ resolution: Schemas['Resolution'];
535
+ };
536
+ AmbiguousIdentifier: {
537
+ query: string;
538
+ status: 'ambiguous';
539
+ message: string;
540
+ /** The objects it could name. Resolve one by its id. */
541
+ candidates: Schemas['Candidate'][];
542
+ };
543
+ UnknownIdentifier: {
544
+ query: string;
545
+ status: 'not_found';
546
+ message: string;
547
+ /** 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. */
548
+ suggestions?: Schemas['Suggestion'][];
549
+ };
550
+ InvalidIdentifier: {
551
+ query: string;
552
+ status: 'invalid';
553
+ message: string;
554
+ };
555
+ ResolveMetadata: {
556
+ api_version: 'v1';
557
+ generated_at: string;
558
+ counts: {
559
+ resolved: number;
560
+ ambiguous: number;
561
+ not_found: number;
562
+ invalid: number;
563
+ };
564
+ /** The catalogs the identifiers were matched in, and those the positions come from. */
565
+ catalogs: Schemas['Catalog'][];
566
+ };
567
+ UnsupportedMediaTypeError: {
568
+ error: {
569
+ code: 'unsupported_media_type';
570
+ message: string;
571
+ };
572
+ };
573
+ ResolveRequest: {
574
+ identifiers: string[];
575
+ };
576
+ HierarchyResponse: {
577
+ data: Schemas['HierarchyLink'][];
578
+ metadata: Schemas['HierarchyMetadata'];
579
+ };
580
+ /** One link in SIMBAD's hierarchy, seen from the target. */
581
+ HierarchyLink: {
582
+ object: Schemas['ObjectSummary'];
583
+ /** 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. */
584
+ membership: number | null;
585
+ /** The paper that established the link. */
586
+ reference: Schemas['Reference'] | null;
587
+ source: Schemas['Source'];
588
+ };
589
+ HierarchyMetadata: {
590
+ api_version: 'v1';
591
+ generated_at: string;
592
+ resolution: Schemas['Resolution'];
593
+ target: Schemas['ObjectSummary'];
594
+ catalogs: Schemas['Catalog'][];
595
+ page: Schemas['Page'];
596
+ };
597
+ SolutionsResponse: {
598
+ data: Schemas['Solution'][];
599
+ metadata: Schemas['SolutionsMetadata'];
600
+ };
601
+ /** One published parameter set. */
602
+ Solution: {
603
+ /** `planet`: a planet's orbital and physical parameters from one paper. `star`: a host star's parameters from one paper. */
604
+ kind: ('planet' | 'star') | (string & {});
605
+ /** The planet or star, as the archive names it. */
606
+ name: string;
607
+ /** The paper the parameter set comes from. */
608
+ reference: Schemas['Reference'] | null;
609
+ /** Whether the archive uses this set as the planet's default. Null for star sets, which the archive doesn't rank. */
610
+ default: boolean | null;
611
+ /** Publication month, as the archive gives it. */
612
+ published: string | null;
613
+ /** 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.) */
614
+ measurements: Schemas['Measurement'][];
615
+ };
616
+ SolutionsMetadata: {
617
+ api_version: 'v1';
618
+ generated_at: string;
619
+ resolution: Schemas['Resolution'];
620
+ target: Schemas['ObjectSummary'];
621
+ catalogs: Schemas['Catalog'][];
622
+ };
623
+ SystemResponse: {
624
+ data: {
625
+ /** The system the stars belong to. Null for a single star. */
626
+ system: Schemas['StarSystem'] | null;
627
+ /** The system's stars, by membership then name; a single star when there is no system. */
628
+ stars: Schemas['SystemStar'][];
629
+ /** 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. */
630
+ system_planets: Schemas['Planet'][];
631
+ };
632
+ metadata: Schemas['SystemMetadata'];
633
+ };
634
+ /** The object SIMBAD uses for the system: a multiple-star object, or the star its components are filed under. */
635
+ StarSystem: {
636
+ object: Schemas['ObjectSummary'];
637
+ measurements: Schemas['Measurement'][];
638
+ };
639
+ /** One star of the system, with its measurements and planets. */
640
+ SystemStar: {
641
+ object: Schemas['ObjectSummary'];
642
+ /** SIMBAD's membership probability for the star in the system, in percent, as published. Null for a single star, or when SIMBAD gives none. */
643
+ membership: number | null;
644
+ /** The paper that places the star in the system. Null for a single star. */
645
+ reference: Schemas['Reference'] | null;
646
+ measurements: Schemas['Measurement'][];
647
+ /** Planets that orbit this star, ordered by orbital period. */
648
+ planets: Schemas['Planet'][];
649
+ };
650
+ SystemMetadata: {
651
+ api_version: 'v1';
652
+ generated_at: string;
653
+ resolution: Schemas['Resolution'];
654
+ target: Schemas['ObjectSummary'];
655
+ catalogs: Schemas['Catalog'][];
656
+ /** 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`. */
657
+ found_by: ('target' | 'host_star' | 'parent') | (string & {});
658
+ /** True when the system has more than 50 stars and only the first 50 are listed. */
659
+ stars_truncated: boolean;
660
+ };
661
+ NotASystemError: {
662
+ error: {
663
+ code: 'not_a_system';
664
+ message: string;
665
+ };
666
+ };
667
+ SkyConeResponse: {
668
+ data: Schemas['ConeMatch'][];
669
+ metadata: Schemas['SkyConeMetadata'];
670
+ };
671
+ /** An object within the cone, with the position it was matched on. */
672
+ ConeMatch: {
673
+ object: Schemas['ObjectSummary'];
674
+ /** Derived: the great-circle angle from the center to `position`. No uncertainty is given; `position.uncertainty` is the position's own. */
675
+ separation: {
676
+ value: number;
677
+ unit: 'arcsec';
678
+ };
679
+ position: Schemas['ConePosition'];
680
+ source: Schemas['Source'];
681
+ };
682
+ /** The position an object was matched on, as its catalog publishes it. */
683
+ ConePosition: {
684
+ ra: number;
685
+ dec: number;
686
+ unit: 'deg';
687
+ frame: string | null;
688
+ /** The epoch of the position, as a Julian year. SIMBAD positions are at J2000; no proper motion is applied to any position. */
689
+ epoch: number | null;
690
+ /** The published error ellipse, in mas, when there is one. */
691
+ uncertainty: Schemas['ErrorEllipse'] | null;
692
+ /** SIMBAD's position quality, A (best) to E. */
693
+ quality: string | null;
694
+ /** The paper the position comes from. */
695
+ reference: Schemas['Reference'] | null;
696
+ };
697
+ SkyConeMetadata: {
698
+ api_version: 'v1';
699
+ generated_at: string;
700
+ center: {
701
+ ra: number;
702
+ dec: number;
703
+ unit: 'deg';
704
+ frame: 'ICRS';
705
+ };
706
+ query: {
707
+ radius: {
708
+ value: number;
709
+ unit: 'arcsec' | 'arcmin' | 'deg';
710
+ /** The radius in degrees. */
711
+ deg: number;
712
+ };
713
+ };
714
+ page: Schemas['Page'];
715
+ catalogs: Schemas['Catalog'][];
716
+ };
717
+ ObjectConeResponse: {
718
+ data: Schemas['ConeMatch'][];
719
+ metadata: Schemas['ObjectConeMetadata'];
720
+ };
721
+ ObjectConeMetadata: {
722
+ api_version: 'v1';
723
+ generated_at: string;
724
+ resolution: Schemas['Resolution'];
725
+ target: Schemas['ObjectSummary'];
726
+ catalogs: Schemas['Catalog'][];
727
+ /** 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. */
728
+ center: {
729
+ ra: number;
730
+ dec: number;
731
+ unit: 'deg';
732
+ frame: string | null;
733
+ epoch: number | null;
734
+ source: Schemas['Source'];
735
+ };
736
+ query: {
737
+ radius: {
738
+ value: number;
739
+ unit: 'arcsec' | 'arcmin' | 'deg';
740
+ /** The radius in degrees. */
741
+ deg: number;
742
+ };
743
+ };
744
+ page: Schemas['Page'];
745
+ };
746
+ NoPositionError: {
747
+ error: {
748
+ code: 'no_position';
749
+ message: string;
750
+ };
751
+ };
752
+ CatalogsResponse: {
753
+ data: Schemas['CatalogSummary'][];
754
+ metadata: Schemas['CatalogsMetadata'];
755
+ };
756
+ /** 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. */
757
+ CatalogSummary: Schemas['Catalog'] & {
758
+ /** What the catalog contains. */
759
+ description: string | null;
760
+ /** 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. */
761
+ hosting: ('full' | 'subset' | 'on_demand') | (string & {});
762
+ };
763
+ CatalogsMetadata: {
764
+ api_version: 'v1';
765
+ generated_at: string;
766
+ };
767
+ CatalogResponse: {
768
+ data: Schemas['CatalogDetail'];
769
+ metadata: Schemas['CatalogsMetadata'];
770
+ };
771
+ /** 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. */
772
+ CatalogDetail: Schemas['CatalogSummary'] & {
773
+ /** Every release Arcosmos has loaded, newest first. */
774
+ releases: Schemas['CatalogRelease'][];
775
+ /** The tables and columns of the active release; empty when there is none. */
776
+ tables: Schemas['CatalogTable'][];
777
+ };
778
+ /** One release of a catalog: a version of its data, loaded as a whole. */
779
+ CatalogRelease: {
780
+ /** 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. */
781
+ id: string;
782
+ /** `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. */
783
+ status: ('active' | 'superseded' | 'loading' | 'failed') | (string & {});
784
+ /** When the data was retrieved from the publisher. Null for a release Arcosmos derives from other catalogs (see `derived_from`). */
785
+ retrieved_at: string | null;
786
+ /** When the publisher released this version; null when it does not say. */
787
+ published_at: string | null;
788
+ /** When the API started serving the release; null if it never did. */
789
+ activated_at: string | null;
790
+ /** 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. */
791
+ derived_from: Schemas['ReleaseRef'][];
792
+ };
793
+ /** A release of a catalog. `GET /catalogs/{catalog}` describes it. */
794
+ ReleaseRef: {
795
+ catalog: string;
796
+ release: string;
797
+ };
798
+ CatalogTable: {
799
+ /** The table's name within the catalog: the publisher's own table name where it has several (`pscomppars`, `basic`). */
800
+ name: string;
801
+ /** How many rows the release holds. */
802
+ rows: number | null;
803
+ /** The table's columns, in the catalog's order. */
804
+ columns: Schemas['CatalogColumn'][];
805
+ };
806
+ /** A column of a catalog table, documented as the catalog publishes it. */
807
+ CatalogColumn: {
808
+ /** The column name, as the catalog publishes it. */
809
+ name: string;
810
+ /** The catalog's description of the column. Null when it publishes none. */
811
+ description: string | null;
812
+ /** 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. */
813
+ unit: string | null;
814
+ /** The IVOA Unified Content Descriptor the catalog assigns, saying what kind of quantity the column holds. Null when it assigns none. */
815
+ ucd: string | null;
816
+ /** 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. */
817
+ datatype: string | null;
818
+ /** False when the catalog serves the column but leaves it out of its published schema, so it has no description or unit. */
819
+ documented: boolean;
820
+ /** The range of values the catalog declares for the column, in its unit. Set only when the catalog declares one. */
821
+ limits?: {
822
+ min: number | null;
823
+ max: number | null;
824
+ };
825
+ };
826
+ NotFoundError: {
827
+ error: {
828
+ code: 'not_found';
829
+ message: string;
830
+ };
831
+ };
832
+ CatalogRowResponse: {
833
+ data: Schemas['CatalogRow'];
834
+ metadata: Schemas['CatalogRowMetadata'];
835
+ };
836
+ /** One record of a catalog, exactly as the active release holds it. */
837
+ CatalogRow: {
838
+ source: Schemas['Source'];
839
+ /** 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. */
840
+ table: string;
841
+ /** The column the record key matched. */
842
+ key_column: string;
843
+ /** Every column of the record, in the catalog's order, empty values included. For a record with several rows, its first row. */
844
+ columns: Schemas['RowValue'][];
845
+ /** 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`. */
846
+ rows?: Schemas['RowValue'][][];
847
+ };
848
+ /** One column of a record, with the unit and description the catalog gives it. */
849
+ RowValue: {
850
+ /** The column name, as the catalog publishes it. */
851
+ name: string;
852
+ /** 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. */
853
+ value: string | number | boolean | null;
854
+ /** 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. */
855
+ unit: string | null;
856
+ /** The catalog's description of the column. Null when it publishes none. */
857
+ description: string | null;
858
+ };
859
+ CatalogRowMetadata: {
860
+ api_version: 'v1';
861
+ generated_at: string;
862
+ /** The catalog the record comes from, with its license and citation. */
863
+ catalogs: Schemas['Catalog'][];
864
+ };
865
+ CatalogConeResponse: {
866
+ data: Schemas['CatalogConeRow'][];
867
+ metadata: Schemas['CatalogConeMetadata'];
868
+ };
869
+ /** One row of the catalog within the cone. */
870
+ CatalogConeRow: {
871
+ object: Schemas['ObjectSummary'];
872
+ /** Derived: the great-circle angle from the center to the row's `ra` and `dec`, as published (Gaia DR3's are at epoch J2016). */
873
+ separation: {
874
+ value: number;
875
+ unit: 'arcsec';
876
+ };
877
+ source: Schemas['Source'];
878
+ /** 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. */
879
+ values: {
880
+ [key: string]: string | number | boolean | null;
881
+ };
882
+ };
883
+ CatalogConeMetadata: {
884
+ api_version: 'v1';
885
+ generated_at: string;
886
+ center: {
887
+ ra: number;
888
+ dec: number;
889
+ unit: 'deg';
890
+ frame: 'ICRS';
891
+ };
892
+ query: {
893
+ radius: {
894
+ value: number;
895
+ unit: 'arcsec' | 'arcmin' | 'deg';
896
+ /** The radius in degrees. */
897
+ deg: number;
898
+ };
899
+ g_mag_min: {
900
+ /** The value as given. */
901
+ value: number;
902
+ /** The unit as given. */
903
+ unit: 'mag';
904
+ /** The value in mag, the unit it is compared in. */
905
+ mag: number;
906
+ } | null;
907
+ g_mag_max: {
908
+ /** The value as given. */
909
+ value: number;
910
+ /** The unit as given. */
911
+ unit: 'mag';
912
+ /** The value in mag, the unit it is compared in. */
913
+ mag: number;
914
+ } | null;
915
+ parallax_min: {
916
+ /** The value as given. */
917
+ value: number;
918
+ /** The unit as given. */
919
+ unit: 'mas' | 'arcsec';
920
+ /** The value in mas, the unit it is compared in. */
921
+ mas: number;
922
+ } | null;
923
+ parallax_max: {
924
+ /** The value as given. */
925
+ value: number;
926
+ /** The unit as given. */
927
+ unit: 'mas' | 'arcsec';
928
+ /** The value in mas, the unit it is compared in. */
929
+ mas: number;
930
+ } | null;
931
+ parallax_over_error_min: number | null;
932
+ };
933
+ /** The columns of `values`, in the catalog's order. */
934
+ columns: Schemas['CatalogConeColumn'][];
935
+ page: Schemas['CatalogConePage'];
936
+ /** The catalog searched, and those that name the objects its rows link to. */
937
+ catalogs: Schemas['Catalog'][];
938
+ };
939
+ CatalogConeColumn: {
940
+ name: string;
941
+ unit: string | null;
942
+ description: string | null;
943
+ };
944
+ CatalogConePage: {
945
+ limit: number;
946
+ /** 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. */
947
+ next_cursor: string | null;
948
+ };
949
+ ExoplanetSearchResponse: {
950
+ data: Schemas['Exoplanet'][];
951
+ metadata: Schemas['ExoplanetSearchMetadata'];
952
+ };
953
+ /** A planet found by the search. `source` is the archive row it was read from. */
954
+ Exoplanet: {
955
+ /** The planet's name in the NASA Exoplanet Archive (`pl_name`), which `sort=name` orders by. */
956
+ name: string;
957
+ /** 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. */
958
+ object: Schemas['ObjectSummary'] | null;
959
+ /** The star (or other object) the planet orbits. */
960
+ host: {
961
+ /** The host's name in the archive (`hostname`). */
962
+ name: string | null;
963
+ /** 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. */
964
+ object: Schemas['ObjectSummary'] | null;
965
+ };
966
+ /** 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. */
967
+ system_distance: Schemas['Measurement'] | null;
968
+ /** 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". */
969
+ measurements: Schemas['Measurement'][];
970
+ source: Schemas['Source'];
971
+ };
972
+ ExoplanetSearchMetadata: {
973
+ api_version: 'v1';
974
+ generated_at: string;
975
+ query: Schemas['ExoplanetQuery'];
976
+ page: Schemas['Page'];
977
+ catalogs: Schemas['Catalog'][];
978
+ };
979
+ /** 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 }`. */
980
+ ExoplanetQuery: {
981
+ distance_min: {
982
+ /** The value as given. */
983
+ value: number;
984
+ /** The unit as given. */
985
+ unit: 'pc' | 'ly';
986
+ /** The value in pc, the unit it is compared in. */
987
+ pc: number;
988
+ } | null;
989
+ distance_max: {
990
+ /** The value as given. */
991
+ value: number;
992
+ /** The unit as given. */
993
+ unit: 'pc' | 'ly';
994
+ /** The value in pc, the unit it is compared in. */
995
+ pc: number;
996
+ } | null;
997
+ radius_min: {
998
+ /** The value as given. */
999
+ value: number;
1000
+ /** The unit as given. */
1001
+ unit: 'R_earth' | 'R_jup';
1002
+ /** The value in R_earth, the unit it is compared in. */
1003
+ R_earth: number;
1004
+ } | null;
1005
+ radius_max: {
1006
+ /** The value as given. */
1007
+ value: number;
1008
+ /** The unit as given. */
1009
+ unit: 'R_earth' | 'R_jup';
1010
+ /** The value in R_earth, the unit it is compared in. */
1011
+ R_earth: number;
1012
+ } | null;
1013
+ mass_min: {
1014
+ /** The value as given. */
1015
+ value: number;
1016
+ /** The unit as given. */
1017
+ unit: 'M_earth' | 'M_jup';
1018
+ /** The value in M_earth, the unit it is compared in. */
1019
+ M_earth: number;
1020
+ } | null;
1021
+ mass_max: {
1022
+ /** The value as given. */
1023
+ value: number;
1024
+ /** The unit as given. */
1025
+ unit: 'M_earth' | 'M_jup';
1026
+ /** The value in M_earth, the unit it is compared in. */
1027
+ M_earth: number;
1028
+ } | null;
1029
+ mass_basis: ('mass' | 'msini' | 'mass_radius_relation')[] | null;
1030
+ orbital_period_min: {
1031
+ /** The value as given. */
1032
+ value: number;
1033
+ /** The unit as given. */
1034
+ unit: 'd' | 'h' | 'yr';
1035
+ /** The value in d, the unit it is compared in. */
1036
+ d: number;
1037
+ } | null;
1038
+ orbital_period_max: {
1039
+ /** The value as given. */
1040
+ value: number;
1041
+ /** The unit as given. */
1042
+ unit: 'd' | 'h' | 'yr';
1043
+ /** The value in d, the unit it is compared in. */
1044
+ d: number;
1045
+ } | null;
1046
+ equilibrium_temperature_min: {
1047
+ /** The value as given. */
1048
+ value: number;
1049
+ /** The unit as given. */
1050
+ unit: 'K';
1051
+ /** The value in K, the unit it is compared in. */
1052
+ K: number;
1053
+ } | null;
1054
+ equilibrium_temperature_max: {
1055
+ /** The value as given. */
1056
+ value: number;
1057
+ /** The unit as given. */
1058
+ unit: 'K';
1059
+ /** The value in K, the unit it is compared in. */
1060
+ K: number;
1061
+ } | null;
1062
+ insolation_flux_min: {
1063
+ /** The value as given. */
1064
+ value: number;
1065
+ /** The unit as given. */
1066
+ unit: 'S_earth';
1067
+ /** The value in S_earth, the unit it is compared in. */
1068
+ S_earth: number;
1069
+ } | null;
1070
+ insolation_flux_max: {
1071
+ /** The value as given. */
1072
+ value: number;
1073
+ /** The unit as given. */
1074
+ unit: 'S_earth';
1075
+ /** The value in S_earth, the unit it is compared in. */
1076
+ S_earth: number;
1077
+ } | null;
1078
+ 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;
1079
+ discovery_year_min: number | null;
1080
+ discovery_year_max: number | null;
1081
+ calculated: 'include' | 'exclude';
1082
+ sort: 'distance' | 'name' | 'radius' | 'mass' | 'orbital_period' | 'equilibrium_temperature' | 'insolation_flux' | 'discovery_year';
1083
+ order: 'asc' | 'desc';
1084
+ };
1085
+ ClassificationsResponse: {
1086
+ data: Schemas['Classification'][];
1087
+ metadata: Schemas['ClassificationsMetadata'];
1088
+ };
1089
+ /** One type SIMBAD assigns the object, from one origin. `source.record` is the SIMBAD object (oid) it is assigned to. */
1090
+ Classification: {
1091
+ /** SIMBAD's code for the type, as published, less the trailing spaces a handful of its rows carry (`* `). */
1092
+ otype: string;
1093
+ /** 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). */
1094
+ definition: Schemas['SimbadType'] | null;
1095
+ /** 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. */
1096
+ main: boolean;
1097
+ origin: Schemas['ClassificationOrigin'];
1098
+ source: Schemas['Source'];
1099
+ };
1100
+ /** One of SIMBAD's object types, from its type vocabulary (SIMBAD's `otypedef` table). */
1101
+ SimbadType: {
1102
+ /** SIMBAD's code for the type. */
1103
+ otype: string;
1104
+ /** SIMBAD's short name for the type. */
1105
+ label: string;
1106
+ /** What the type is, in SIMBAD's words. */
1107
+ description: string;
1108
+ /** SIMBAD's note on the type, such as what it includes. Null when it gives none. */
1109
+ comment: string | null;
1110
+ /** Whether the type means "possibly X" rather than X (`WR?`, `Pl?`). Each candidate type stands for one confirmed type, `candidate_for`. */
1111
+ candidate: boolean;
1112
+ /** For a candidate type, the code of the type it is a candidate for. Null for other types. */
1113
+ candidate_for: string | null;
1114
+ /** 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). */
1115
+ path: string[];
1116
+ /** 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`). */
1117
+ canonical_type: ('star' | 'brown_dwarf' | 'multiple_star' | 'planet' | 'star_cluster' | 'stellar_association' | 'nebula' | 'galaxy' | 'galaxy_group' | 'galaxy_cluster' | 'black_hole' | 'transient') | null | (string & {});
1118
+ };
1119
+ /** Where SIMBAD says a type came from: its text as published, and the same parsed. */
1120
+ ClassificationOrigin: {
1121
+ /** SIMBAD's text for where the type came from, exactly as published. Null when SIMBAD gives none. */
1122
+ published: string | null;
1123
+ /**
1124
+ * Which of SIMBAD's forms the text takes, and so which fields are set:
1125
+ *
1126
+ * - `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`.
1127
+ * - `reference`: `from bibcode ; bibcode=B`, the type comes from the paper `B`.
1128
+ * - `basic_data`: `from basic data`, SIMBAD attributes the type to its basic data for the object rather than to an identifier or a paper.
1129
+ * - `unstated`: SIMBAD gives no origin.
1130
+ * - `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`.
1131
+ */
1132
+ kind: ('identifier' | 'reference' | 'basic_data' | 'unstated' | 'other') | (string & {});
1133
+ /** The identifier the type came with. Set only when `kind` is `identifier`. */
1134
+ identifier: {
1135
+ /** The identifier as `GET /objects/{identifier}` lists it: padding collapsed and SIMBAD's class markers (`NAME`, `V*`, `*`) dropped. */
1136
+ identifier: string;
1137
+ /** The identifier as the origin text writes it. */
1138
+ published: string;
1139
+ /** 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`). */
1140
+ namespace: string;
1141
+ } | null;
1142
+ /** The paper SIMBAD cites for the type (its `bibcode=`). Null when the text names none. */
1143
+ reference: Schemas['Reference'] | null;
1144
+ };
1145
+ ClassificationsMetadata: {
1146
+ api_version: 'v1';
1147
+ generated_at: string;
1148
+ resolution: Schemas['Resolution'];
1149
+ target: Schemas['ObjectSummary'];
1150
+ catalogs: Schemas['Catalog'][];
1151
+ current_types: Schemas['CurrentTypes'];
1152
+ };
1153
+ /** The types the object carries now, for context. */
1154
+ CurrentTypes: {
1155
+ /** Arcosmos's type for the object. */
1156
+ canonical: {
1157
+ /** 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. */
1158
+ type: ('star' | 'brown_dwarf' | 'multiple_star' | 'planet' | 'star_cluster' | 'stellar_association' | 'nebula' | 'galaxy' | 'galaxy_group' | 'galaxy_cluster' | 'black_hole' | 'transient') | null | (string & {});
1159
+ /** 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). */
1160
+ source: Schemas['Source'] | null;
1161
+ };
1162
+ /** 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. */
1163
+ simbad_main: {
1164
+ /** SIMBAD's code for the main type. Null when SIMBAD gives the object none. */
1165
+ otype: string | null;
1166
+ /** The main type as SIMBAD's vocabulary defines it. Null when `otype` is null or not defined there. */
1167
+ definition: Schemas['SimbadType'] | null;
1168
+ source: Schemas['Source'];
1169
+ }[];
1170
+ };
1171
+ TypesResponse: {
1172
+ data: {
1173
+ /** Arcosmos's canonical types. */
1174
+ canonical_types: Schemas['CanonicalType'][];
1175
+ /** 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. */
1176
+ simbad_types: Schemas['SimbadType'][];
1177
+ };
1178
+ metadata: Schemas['TypesMetadata'];
1179
+ };
1180
+ /** One of Arcosmos's canonical object types. */
1181
+ CanonicalType: {
1182
+ /** The value `object_type` takes. */
1183
+ type: ('star' | 'brown_dwarf' | 'multiple_star' | 'planet' | 'star_cluster' | 'stellar_association' | 'nebula' | 'galaxy' | 'galaxy_group' | 'galaxy_cluster' | 'black_hole' | 'transient') | (string & {});
1184
+ /** What the type covers, and where Arcosmos takes it from. */
1185
+ description: string;
1186
+ /** The codes of the SIMBAD types that map to it, in `simbad_types` order. */
1187
+ simbad_types: string[];
1188
+ };
1189
+ TypesMetadata: {
1190
+ api_version: 'v1';
1191
+ generated_at: string;
1192
+ catalogs: Schemas['Catalog'][];
1193
+ };
1194
+ TypeResponse: {
1195
+ data: Schemas['SimbadTypeDetail'];
1196
+ metadata: Schemas['TypeMetadata'];
1197
+ };
1198
+ /** A SIMBAD object type, with its neighbours in SIMBAD's hierarchy named. */
1199
+ SimbadTypeDetail: {
1200
+ /** SIMBAD's code for the type. */
1201
+ otype: string;
1202
+ /** SIMBAD's short name for the type. */
1203
+ label: string;
1204
+ /** What the type is, in SIMBAD's words. */
1205
+ description: string;
1206
+ /** SIMBAD's note on the type, such as what it includes. Null when it gives none. */
1207
+ comment: string | null;
1208
+ /** Whether the type means "possibly X" rather than X (`WR?`, `Pl?`). Each candidate type stands for one confirmed type, `candidate_for`. */
1209
+ candidate: boolean;
1210
+ /** For a candidate type, the code of the type it is a candidate for. Null for other types. */
1211
+ candidate_for: string | null;
1212
+ /** 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). */
1213
+ path: string[];
1214
+ /** 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`). */
1215
+ canonical_type: ('star' | 'brown_dwarf' | 'multiple_star' | 'planet' | 'star_cluster' | 'stellar_association' | 'nebula' | 'galaxy' | 'galaxy_group' | 'galaxy_cluster' | 'black_hole' | 'transient') | null | (string & {});
1216
+ /** The types above it in SIMBAD's hierarchy, most general first: `path` without its last code, named. */
1217
+ ancestors: Schemas['SimbadTypeRef'][];
1218
+ /** The confirmed types directly below it in SIMBAD's hierarchy. Empty for a candidate type. */
1219
+ subtypes: Schemas['SimbadTypeRef'][];
1220
+ /** The candidate types for it (`WR?` for `WR*`). Empty for a candidate type. */
1221
+ candidate_types: Schemas['SimbadTypeRef'][];
1222
+ };
1223
+ /** A SIMBAD object type, named. `GET /types/{otype}` describes it in full. */
1224
+ SimbadTypeRef: {
1225
+ /** SIMBAD's code for the type. */
1226
+ otype: string;
1227
+ /** SIMBAD's short name for the type. */
1228
+ label: string;
1229
+ /** What the type is, in SIMBAD's words. */
1230
+ description: string;
1231
+ };
1232
+ TypeMetadata: {
1233
+ api_version: 'v1';
1234
+ generated_at: string;
1235
+ catalogs: Schemas['Catalog'][];
1236
+ };
1237
+ StarSearchResponse: {
1238
+ data: Schemas['Star'][];
1239
+ metadata: Schemas['StarSearchMetadata'];
1240
+ };
1241
+ /** 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. */
1242
+ Star: {
1243
+ object: (Schemas['ObjectSummary'] & {
1244
+ /** `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. */
1245
+ matched_by: ('catalog_record' | 'shared_gaia_dr3') | (string & {});
1246
+ }) | null;
1247
+ designations: {
1248
+ cns5: number | null;
1249
+ /** Gliese-Jahreiss number, from CNS5. */
1250
+ gj: string | null;
1251
+ /** Component of a multiple system, from CNS5. */
1252
+ component: string | null;
1253
+ hip: number | null;
1254
+ /** Gaia DR3 source_id, as a string (it exceeds 2^53). */
1255
+ gaia_dr3: string | null;
1256
+ };
1257
+ /** As published. Null for the Sun. */
1258
+ position: Schemas['StarPosition'] | null;
1259
+ /** As published. Null for the Sun. */
1260
+ parallax: Schemas['Parallax'] | null;
1261
+ distance_from_sun: Schemas['Distance'];
1262
+ /** 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. */
1263
+ planet_count: number;
1264
+ photometry: Schemas['StarPhotometry'];
1265
+ source: Schemas['Source'];
1266
+ };
1267
+ StarSearchMetadata: {
1268
+ api_version: 'v1';
1269
+ generated_at: string;
1270
+ query: Schemas['StarQuery'];
1271
+ page: Schemas['Page'];
1272
+ catalogs: Schemas['Catalog'][];
1273
+ };
1274
+ /** 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 }`. */
1275
+ StarQuery: {
1276
+ distance_min: {
1277
+ /** The value as given. */
1278
+ value: number;
1279
+ /** The unit as given. */
1280
+ unit: 'pc' | 'ly';
1281
+ /** The value in pc, the unit it is compared in. */
1282
+ pc: number;
1283
+ } | null;
1284
+ distance_max: {
1285
+ /** The value as given. */
1286
+ value: number;
1287
+ /** The unit as given. */
1288
+ unit: 'pc' | 'ly';
1289
+ /** The value in pc, the unit it is compared in. */
1290
+ pc: number;
1291
+ } | null;
1292
+ g_mag_min: {
1293
+ /** The value as given. */
1294
+ value: number;
1295
+ /** The unit as given. */
1296
+ unit: 'mag';
1297
+ /** The value in mag, the unit it is compared in. */
1298
+ mag: number;
1299
+ } | null;
1300
+ g_mag_max: {
1301
+ /** The value as given. */
1302
+ value: number;
1303
+ /** The unit as given. */
1304
+ unit: 'mag';
1305
+ /** The value in mag, the unit it is compared in. */
1306
+ mag: number;
1307
+ } | null;
1308
+ absolute_g_mag_min: {
1309
+ /** The value as given. */
1310
+ value: number;
1311
+ /** The unit as given. */
1312
+ unit: 'mag';
1313
+ /** The value in mag, the unit it is compared in. */
1314
+ mag: number;
1315
+ } | null;
1316
+ absolute_g_mag_max: {
1317
+ /** The value as given. */
1318
+ value: number;
1319
+ /** The unit as given. */
1320
+ unit: 'mag';
1321
+ /** The value in mag, the unit it is compared in. */
1322
+ mag: number;
1323
+ } | null;
1324
+ bp_rp_min: {
1325
+ /** The value as given. */
1326
+ value: number;
1327
+ /** The unit as given. */
1328
+ unit: 'mag';
1329
+ /** The value in mag, the unit it is compared in. */
1330
+ mag: number;
1331
+ } | null;
1332
+ bp_rp_max: {
1333
+ /** The value as given. */
1334
+ value: number;
1335
+ /** The unit as given. */
1336
+ unit: 'mag';
1337
+ /** The value in mag, the unit it is compared in. */
1338
+ mag: number;
1339
+ } | null;
1340
+ parallax_over_error_min: number | null;
1341
+ /** Whether only stars with known planets were returned. */
1342
+ has_planets: boolean;
1343
+ sort: 'distance' | 'g_mag' | 'absolute_g_mag' | 'bp_rp';
1344
+ order: 'asc' | 'desc';
1345
+ };
1346
+ BrightStarsResponse: {
1347
+ data: Schemas['BrightStar'][];
1348
+ metadata: Schemas['BrightStarsMetadata'];
1349
+ };
1350
+ /** A Hipparcos star. Its position, parallax, Hp and colors are as the catalog publishes them; `distance_from_sun` and `photometry.gaia_estimate` are derived. */
1351
+ BrightStar: {
1352
+ /** The Arcosmos object with this HIP number, once identity sync has linked one. Request it from /objects by id. */
1353
+ object: Schemas['ObjectSummary'] | null;
1354
+ /** The Hipparcos number. */
1355
+ hip: number;
1356
+ /** 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. */
1357
+ nearby_star: {
1358
+ catalog: ('cns5' | 'gcns') | (string & {});
1359
+ /** The CNS5 number, or the Gaia source id. */
1360
+ record: string;
1361
+ } | null;
1362
+ position: Schemas['StarPosition'] & unknown;
1363
+ parallax: Schemas['Parallax'] & unknown;
1364
+ /** Null when the parallax is zero or negative. */
1365
+ distance_from_sun: Schemas['Distance'] | null;
1366
+ photometry: {
1367
+ hp_mag: Schemas['Magnitude'] & unknown;
1368
+ /** 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. */
1369
+ b_v: Schemas['Magnitude'] | null;
1370
+ /** 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. */
1371
+ v_i: Schemas['Magnitude'] | null;
1372
+ /** Null without a color a relation holds for. */
1373
+ gaia_estimate: Schemas['GaiaEstimate'] | null;
1374
+ };
1375
+ source: Schemas['Source'];
1376
+ };
1377
+ /** 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. */
1378
+ GaiaEstimate: {
1379
+ /** 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. */
1380
+ g_mag: Schemas['DerivedMagnitude'] & {
1381
+ /** The color G - Hp was computed from: `b_v` or `v_i`, whichever gives the smaller uncertainty. */
1382
+ from: ('b_v' | 'v_i') | (string & {});
1383
+ };
1384
+ /** 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. */
1385
+ bp_rp: Schemas['DerivedMagnitude'] | null;
1386
+ /** 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. */
1387
+ absolute_g_mag: Schemas['AbsoluteMagnitude'] | null;
1388
+ };
1389
+ BrightStarsMetadata: {
1390
+ api_version: 'v1';
1391
+ generated_at: string;
1392
+ query: {
1393
+ hp_mag_max: {
1394
+ /** The value as given. */
1395
+ value: number;
1396
+ /** The unit as given. */
1397
+ unit: 'mag';
1398
+ /** The value in mag, the unit it is compared in. */
1399
+ mag: number;
1400
+ } | null;
1401
+ };
1402
+ page: Schemas['Page'];
1403
+ catalogs: Schemas['Catalog'][];
1404
+ };
1405
+ NamesResponse: {
1406
+ data: Schemas['NameCompletion'][];
1407
+ metadata: Schemas['NamesMetadata'];
1408
+ };
1409
+ /** A name that completes, or resembles, what was typed. */
1410
+ NameCompletion: {
1411
+ /** The name that matched what was typed. */
1412
+ name: string;
1413
+ /** 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. */
1414
+ match: ('prefix' | 'word' | 'similar') | (string & {});
1415
+ object: Schemas['ObjectSummary'];
1416
+ /** 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. */
1417
+ query: string;
1418
+ /** How many publications SIMBAD lists for the object, by which names of the same kind are ordered. Null without a SIMBAD record. */
1419
+ citations: number | null;
1420
+ };
1421
+ NamesMetadata: {
1422
+ api_version: 'v1';
1423
+ generated_at: string;
1424
+ query: {
1425
+ q: string;
1426
+ limit: number;
1427
+ };
1428
+ catalogs: Schemas['Catalog'][];
1429
+ };
1430
+ MatchResponse: {
1431
+ /** One entry per position sent, in the same order. */
1432
+ data: Schemas['MatchEntry'][];
1433
+ metadata: Schemas['MatchMetadata'];
1434
+ };
1435
+ /** What one position matched. */
1436
+ MatchEntry: Schemas['MatchedPosition'] | Schemas['UnmatchedPosition'] | Schemas['InvalidPosition'];
1437
+ MatchedPosition: {
1438
+ query: Schemas['MatchQuery'];
1439
+ status: 'matched';
1440
+ /** How many objects lie within the radius, `limit` or not. */
1441
+ total: number;
1442
+ /** The nearest of them, nearest first. */
1443
+ matches: Schemas['PositionMatch'][];
1444
+ };
1445
+ /** The position as sent. */
1446
+ MatchQuery: {
1447
+ ra: number;
1448
+ dec: number;
1449
+ /** The epoch used: as sent, or 2000. */
1450
+ epoch: number;
1451
+ };
1452
+ /** An object within the radius of a position. */
1453
+ PositionMatch: {
1454
+ object: Schemas['ObjectSummary'];
1455
+ /** 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`. */
1456
+ separation: {
1457
+ value: number;
1458
+ unit: 'arcsec';
1459
+ };
1460
+ position: Schemas['ConePosition'];
1461
+ /** Where its space motion takes the object by the position's epoch. Null when the epochs agree, or the object has no proper motion. */
1462
+ moved: Schemas['MovedPosition'] | null;
1463
+ source: Schemas['Source'];
1464
+ };
1465
+ /** 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. */
1466
+ MovedPosition: {
1467
+ ra: number;
1468
+ dec: number;
1469
+ unit: 'deg';
1470
+ frame: 'ICRS';
1471
+ /** The epoch it was moved to: the position's. */
1472
+ epoch: number;
1473
+ proper_motion: {
1474
+ /** mu_alpha* = mu_alpha cos(dec), as SIMBAD publishes it. */
1475
+ ra: number;
1476
+ dec: number;
1477
+ unit: 'mas/yr';
1478
+ };
1479
+ /** 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. */
1480
+ uncertainty: number | null;
1481
+ };
1482
+ /** No object lies within the radius. */
1483
+ UnmatchedPosition: {
1484
+ query: Schemas['MatchQuery'];
1485
+ status: 'unmatched';
1486
+ };
1487
+ InvalidPosition: {
1488
+ query: Schemas['MatchQuery'];
1489
+ status: 'invalid';
1490
+ message: string;
1491
+ };
1492
+ MatchMetadata: {
1493
+ api_version: 'v1';
1494
+ generated_at: string;
1495
+ query: {
1496
+ radius: {
1497
+ value: number;
1498
+ unit: 'arcsec' | 'arcmin' | 'deg';
1499
+ /** The radius in degrees. */
1500
+ deg: number;
1501
+ };
1502
+ limit: number;
1503
+ };
1504
+ counts: {
1505
+ matched: number;
1506
+ unmatched: number;
1507
+ invalid: number;
1508
+ };
1509
+ /** The catalogs the matched positions come from. */
1510
+ catalogs: Schemas['Catalog'][];
1511
+ };
1512
+ MatchRequest: {
1513
+ positions: Schemas['MatchPosition'][];
1514
+ /** How far from each position to look: a number and `arcsec`, `arcmin` or `deg`, at most 60 arcsec. */
1515
+ radius: string;
1516
+ /** How many objects to give for each position, nearest first, at most 50. 5 when left out. `total` counts them all. */
1517
+ limit?: number;
1518
+ };
1519
+ /** A position to match. */
1520
+ MatchPosition: {
1521
+ /** ICRS right ascension, decimal degrees from 0 up to 360. */
1522
+ ra: number;
1523
+ /** ICRS declination, decimal degrees from -90 to 90. */
1524
+ dec: number;
1525
+ /** The epoch of the position, as a Julian year (2016 for Gaia DR3). 2000 when left out. */
1526
+ epoch?: number;
1527
+ };
1528
+ NewApiKeyResponse: {
1529
+ data: Schemas['NewApiKey'];
1530
+ metadata: {
1531
+ api_version: 'v1';
1532
+ generated_at: string;
1533
+ };
1534
+ };
1535
+ NewApiKey: {
1536
+ /** The key's id. It isn't secret: it names the key in paths. */
1537
+ id: string;
1538
+ /** The label given when the key was created. */
1539
+ name: string | null;
1540
+ /** The key's first characters, to tell keys apart. The full key is shown only when it is created. */
1541
+ prefix: string;
1542
+ created_at: string;
1543
+ /** When the key was revoked. A revoked key is refused on every route. */
1544
+ revoked_at: string | null;
1545
+ /** 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. */
1546
+ secret: string;
1547
+ };
1548
+ /** 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. */
1549
+ SignInRequiredError: {
1550
+ error: {
1551
+ code: 'sign_in_required';
1552
+ message: string;
1553
+ };
1554
+ };
1555
+ ForbiddenError: {
1556
+ error: {
1557
+ code: 'forbidden';
1558
+ message: string;
1559
+ };
1560
+ };
1561
+ /** The account already holds as many unrevoked keys as it may. Revoke one first. */
1562
+ KeyLimitReachedError: {
1563
+ error: {
1564
+ code: 'key_limit_reached';
1565
+ message: string;
1566
+ };
1567
+ };
1568
+ NewApiKeyRequest: {
1569
+ /** A label to tell your keys apart. */
1570
+ name?: string;
1571
+ };
1572
+ ApiKeysResponse: {
1573
+ data: Schemas['ApiKey'][];
1574
+ metadata: {
1575
+ api_version: 'v1';
1576
+ generated_at: string;
1577
+ /** The account the keys belong to. */
1578
+ account: {
1579
+ id: string;
1580
+ name: string;
1581
+ };
1582
+ /** How many of the account's keys are not revoked. */
1583
+ active_keys: number;
1584
+ /** How many unrevoked keys the account may hold at once. Revoke one to create another. */
1585
+ max_active_keys: number;
1586
+ page: Schemas['Page'];
1587
+ };
1588
+ };
1589
+ ApiKey: {
1590
+ /** The key's id. It isn't secret: it names the key in paths. */
1591
+ id: string;
1592
+ /** The label given when the key was created. */
1593
+ name: string | null;
1594
+ /** The key's first characters, to tell keys apart. The full key is shown only when it is created. */
1595
+ prefix: string;
1596
+ created_at: string;
1597
+ /** When the key was revoked. A revoked key is refused on every route. */
1598
+ revoked_at: string | null;
1599
+ };
1600
+ ApiKeyResponse: {
1601
+ data: Schemas['ApiKeyWithUsage'];
1602
+ metadata: {
1603
+ api_version: 'v1';
1604
+ generated_at: string;
1605
+ };
1606
+ };
1607
+ ApiKeyWithUsage: {
1608
+ /** The key's id. It isn't secret: it names the key in paths. */
1609
+ id: string;
1610
+ /** The label given when the key was created. */
1611
+ name: string | null;
1612
+ /** The key's first characters, to tell keys apart. The full key is shown only when it is created. */
1613
+ prefix: string;
1614
+ created_at: string;
1615
+ /** When the key was revoked. A revoked key is refused on every route. */
1616
+ revoked_at: string | null;
1617
+ usage: Schemas['ApiKeyUsage'];
1618
+ };
1619
+ ApiKeyUsage: {
1620
+ /** Requests made with the key, whatever their status. Requests to `/api-keys` routes aren't counted. */
1621
+ requests: number;
1622
+ first_request_at: string | null;
1623
+ last_request_at: string | null;
1624
+ /** Requests per route, most used first. */
1625
+ routes: Schemas['RouteUsage'][];
1626
+ };
1627
+ RouteUsage: {
1628
+ method: string;
1629
+ /** The route, as the reference documents it. */
1630
+ route: string;
1631
+ requests: number;
1632
+ last_request_at: string;
1633
+ };
1634
+ RevokedApiKeyResponse: {
1635
+ data: Schemas['ApiKey'];
1636
+ metadata: {
1637
+ api_version: 'v1';
1638
+ generated_at: string;
1639
+ };
1640
+ };
1641
+ AccountResponse: {
1642
+ data: Schemas['Account'];
1643
+ metadata: {
1644
+ api_version: 'v1';
1645
+ generated_at: string;
1646
+ };
1647
+ };
1648
+ Account: {
1649
+ id: string;
1650
+ name: string;
1651
+ created_at: string;
1652
+ /** The signed-in person's role in the account; null when the request is made with one of its keys. */
1653
+ role: ('owner' | 'member') | null | (string & {});
1654
+ plan: Schemas['Plan'];
1655
+ quota: Schemas['Quota'];
1656
+ keys: {
1657
+ /** Keys that aren't revoked. */
1658
+ active: number;
1659
+ /** How many unrevoked keys the account may hold at once. */
1660
+ max_active: number;
1661
+ };
1662
+ usage: Schemas['AccountUsage'];
1663
+ };
1664
+ Plan: {
1665
+ id: string;
1666
+ name: string;
1667
+ /** Requests the account's keys may make a month, together. */
1668
+ monthly_requests: number;
1669
+ /** How many unrevoked keys the account may hold at once. */
1670
+ max_active_keys: number;
1671
+ /** The burst limit the account's keys share: about `requests` every `seconds`. */
1672
+ rate_limit: {
1673
+ requests: number;
1674
+ seconds: number;
1675
+ };
1676
+ };
1677
+ Quota: {
1678
+ /** The month's first day, in UTC. */
1679
+ period_start: string;
1680
+ /** When the next month starts, in UTC. */
1681
+ resets_at: string;
1682
+ /** The plan's monthly requests. */
1683
+ limit: number;
1684
+ /** Requests counted this month. It can pass `limit` by what was in flight. */
1685
+ used: number;
1686
+ /** Requests left this month, never below 0. */
1687
+ remaining: number;
1688
+ };
1689
+ AccountUsage: {
1690
+ /** The start of the period: midnight UTC, `days` - 1 days before today. */
1691
+ from: string;
1692
+ /** The end of the period: when the response was made. */
1693
+ to: string;
1694
+ /** How many days, today included, the period covers. */
1695
+ days: number;
1696
+ /** Requests made with the account's keys in the period, whatever their status. */
1697
+ requests: number;
1698
+ by_status: {
1699
+ /** Answered with a 2xx or 3xx status. */
1700
+ success: number;
1701
+ /** Answered with a 4xx status, such as a 400, 404 or 429. */
1702
+ client_error: number;
1703
+ /** Answered with a 5xx status. */
1704
+ server_error: number;
1705
+ };
1706
+ /** Every day of the period, oldest first, including days with none. */
1707
+ by_day: Schemas['DayUsage'][];
1708
+ /** Requests per route, most used first. */
1709
+ by_route: Schemas['AccountRouteUsage'][];
1710
+ /** Requests per key, most used first: every unrevoked key, and every revoked key used in the period. */
1711
+ by_key: Schemas['AccountKeyUsage'][];
1712
+ };
1713
+ DayUsage: {
1714
+ /** A day in UTC. */
1715
+ date: string;
1716
+ requests: number;
1717
+ };
1718
+ AccountRouteUsage: {
1719
+ method: string;
1720
+ /** The route, as the reference documents it. */
1721
+ route: string;
1722
+ requests: number;
1723
+ };
1724
+ AccountKeyUsage: {
1725
+ id: string;
1726
+ name: string | null;
1727
+ prefix: string;
1728
+ revoked_at: string | null;
1729
+ requests: number;
1730
+ /** The key's last request in the period. */
1731
+ last_request_at: string | null;
1732
+ };
1733
+ }
1734
+ /** Every operation of the API by its operationId: what it takes and what it gives. */
1735
+ export interface Operations {
1736
+ /**
1737
+ * Look up an object
1738
+ *
1739
+ * `GET /objects/{identifier}`
1740
+ */
1741
+ getObject: {
1742
+ path: {
1743
+ identifier: string;
1744
+ };
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: {
1757
+ identifier: string;
1758
+ };
1759
+ query: Record<string, never>;
1760
+ body: never;
1761
+ response: Schemas['PlanetsResponse'];
1762
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1763
+ };
1764
+ /**
1765
+ * List stars near an object
1766
+ *
1767
+ * `GET /objects/{identifier}/nearby`
1768
+ */
1769
+ listNearbyStars: {
1770
+ path: {
1771
+ identifier: string;
1772
+ };
1773
+ query: {
1774
+ /** How far to search: a number and a unit, `pc` or `ly`. At most 100 pc. */
1775
+ radius: `${number} pc` | `${number} ly` | Quantity<'length'>;
1776
+ /** With `true`, only stars the NASA Exoplanet Archive lists planets for. Leave it out for every star. */
1777
+ has_planets?: true;
1778
+ /** Stars per page. */
1779
+ limit?: number;
1780
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1781
+ cursor?: string;
1782
+ };
1783
+ body: never;
1784
+ response: Schemas['NearbyResponse'];
1785
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['OutsideCoverageError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1786
+ };
1787
+ /**
1788
+ * List stars near a point in space
1789
+ *
1790
+ * `GET /sky/nearby`
1791
+ */
1792
+ listStarsNearPoint: {
1793
+ path: Record<string, never>;
1794
+ query: {
1795
+ /** Right ascension, ICRS, in decimal degrees: 0 up to 360. */
1796
+ ra: number;
1797
+ /** Declination, ICRS, in decimal degrees: -90 to 90. */
1798
+ dec: number;
1799
+ /** The point's distance from the Sun: a number and a unit, `pc` or `ly`. At most 1000 pc. */
1800
+ distance: `${number} pc` | `${number} ly` | Quantity<'length'>;
1801
+ /** How far to search: a number and a unit, `pc` or `ly`. At most 100 pc. */
1802
+ radius: `${number} pc` | `${number} ly` | Quantity<'length'>;
1803
+ /** With `true`, only stars the NASA Exoplanet Archive lists planets for. Leave it out for every star. */
1804
+ has_planets?: true;
1805
+ /** Stars per page. */
1806
+ limit?: number;
1807
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1808
+ cursor?: string;
1809
+ };
1810
+ body: never;
1811
+ response: Schemas['PointNearbyResponse'];
1812
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1813
+ };
1814
+ /**
1815
+ * The distance between two stars
1816
+ *
1817
+ * `GET /objects/{identifier}/distance/{other}`
1818
+ */
1819
+ getDistance: {
1820
+ path: {
1821
+ identifier: string;
1822
+ other: string;
1823
+ };
1824
+ query: Record<string, never>;
1825
+ body: never;
1826
+ response: Schemas['DistanceBetweenResponse'];
1827
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['OutsideCoverageError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1828
+ };
1829
+ /**
1830
+ * Resolve many identifiers
1831
+ *
1832
+ * `POST /objects/resolve`
1833
+ */
1834
+ resolveIdentifiers: {
1835
+ path: Record<string, never>;
1836
+ query: Record<string, never>;
1837
+ body: Schemas['ResolveRequest'];
1838
+ response: Schemas['ResolveResponse'];
1839
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnsupportedMediaTypeError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1840
+ };
1841
+ /**
1842
+ * List the objects an object contains
1843
+ *
1844
+ * `GET /objects/{identifier}/members`
1845
+ */
1846
+ listMembers: {
1847
+ path: {
1848
+ identifier: string;
1849
+ };
1850
+ query: {
1851
+ /** Links per page. */
1852
+ limit?: number;
1853
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1854
+ cursor?: string;
1855
+ };
1856
+ body: never;
1857
+ response: Schemas['HierarchyResponse'];
1858
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1859
+ };
1860
+ /**
1861
+ * List the objects an object belongs to
1862
+ *
1863
+ * `GET /objects/{identifier}/parents`
1864
+ */
1865
+ listParents: {
1866
+ path: {
1867
+ identifier: string;
1868
+ };
1869
+ query: {
1870
+ /** Links per page. */
1871
+ limit?: number;
1872
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1873
+ cursor?: string;
1874
+ };
1875
+ body: never;
1876
+ response: Schemas['HierarchyResponse'];
1877
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1878
+ };
1879
+ /**
1880
+ * List every published parameter set
1881
+ *
1882
+ * `GET /objects/{identifier}/solutions`
1883
+ */
1884
+ listSolutions: {
1885
+ path: {
1886
+ identifier: string;
1887
+ };
1888
+ query: Record<string, never>;
1889
+ body: never;
1890
+ response: Schemas['SolutionsResponse'];
1891
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1892
+ };
1893
+ /**
1894
+ * An object's star system
1895
+ *
1896
+ * `GET /objects/{identifier}/system`
1897
+ */
1898
+ getSystem: {
1899
+ path: {
1900
+ identifier: string;
1901
+ };
1902
+ query: Record<string, never>;
1903
+ body: never;
1904
+ response: Schemas['SystemResponse'];
1905
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['NotASystemError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1906
+ };
1907
+ /**
1908
+ * List objects within an angle of a position
1909
+ *
1910
+ * `GET /sky/cone`
1911
+ */
1912
+ searchCone: {
1913
+ path: Record<string, never>;
1914
+ query: {
1915
+ /** Right ascension, ICRS, in decimal degrees: 0 up to 360. */
1916
+ ra: number;
1917
+ /** Declination, ICRS, in decimal degrees: -90 to 90. */
1918
+ dec: number;
1919
+ /** The cone's radius: a number and `arcsec`, `arcmin` or `deg`. At most 1 deg. */
1920
+ radius: `${number} arcsec` | `${number} arcmin` | `${number} deg` | Quantity<'angle'>;
1921
+ /** Objects per page. */
1922
+ limit?: number;
1923
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1924
+ cursor?: string;
1925
+ };
1926
+ body: never;
1927
+ response: Schemas['SkyConeResponse'];
1928
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1929
+ };
1930
+ /**
1931
+ * List objects within an angle of an object
1932
+ *
1933
+ * `GET /objects/{identifier}/cone`
1934
+ */
1935
+ listObjectsAround: {
1936
+ path: {
1937
+ identifier: string;
1938
+ };
1939
+ query: {
1940
+ /** The cone's radius: a number and `arcsec`, `arcmin` or `deg`. At most 1 deg. */
1941
+ radius: `${number} arcsec` | `${number} arcmin` | `${number} deg` | Quantity<'angle'>;
1942
+ /** Objects per page. */
1943
+ limit?: number;
1944
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
1945
+ cursor?: string;
1946
+ };
1947
+ body: never;
1948
+ response: Schemas['ObjectConeResponse'];
1949
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['NoPositionError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1950
+ };
1951
+ /**
1952
+ * List the hosted catalogs
1953
+ *
1954
+ * `GET /catalogs`
1955
+ */
1956
+ listCatalogs: {
1957
+ path: Record<string, never>;
1958
+ query: Record<string, never>;
1959
+ body: never;
1960
+ response: Schemas['CatalogsResponse'];
1961
+ error: Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1962
+ };
1963
+ /**
1964
+ * Look up a catalog
1965
+ *
1966
+ * `GET /catalogs/{id}`
1967
+ */
1968
+ getCatalog: {
1969
+ path: {
1970
+ id: string;
1971
+ };
1972
+ query: Record<string, never>;
1973
+ body: never;
1974
+ response: Schemas['CatalogResponse'];
1975
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['NotFoundError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1976
+ };
1977
+ /**
1978
+ * Look up a catalog record
1979
+ *
1980
+ * `GET /catalogs/{id}/records/{key}`
1981
+ */
1982
+ getCatalogRecord: {
1983
+ path: {
1984
+ id: string;
1985
+ key: string;
1986
+ };
1987
+ query: Record<string, never>;
1988
+ body: never;
1989
+ response: Schemas['CatalogRowResponse'];
1990
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['NotFoundError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
1991
+ };
1992
+ /**
1993
+ * Search a catalog's rows by position
1994
+ *
1995
+ * `GET /catalogs/{id}/cone`
1996
+ */
1997
+ catalogCone: {
1998
+ path: {
1999
+ id: string;
2000
+ };
2001
+ query: {
2002
+ /** Right ascension of the center, ICRS decimal degrees. */
2003
+ ra: number;
2004
+ /** Declination of the center, ICRS decimal degrees. */
2005
+ dec: number;
2006
+ /** The cone's radius: a number and `arcsec`, `arcmin` or `deg`, at most 1 deg. */
2007
+ radius: `${number} arcsec` | `${number} arcmin` | `${number} deg` | Quantity<'angle'>;
2008
+ /** 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`. */
2009
+ g_mag_min?: `${number} mag` | Quantity<'magnitude'>;
2010
+ /** Upper bound on G: leaves out the sources fainter than it. Written as a number, which may be negative, and the unit `mag`. */
2011
+ g_mag_max?: `${number} mag` | Quantity<'magnitude'>;
2012
+ /** 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`. */
2013
+ parallax_min?: `${number} mas` | `${number} arcsec` | Quantity<'angle'>;
2014
+ /** Upper bound on `parallax`. Written as a number and a unit: `mas` or `arcsec`. */
2015
+ parallax_max?: `${number} mas` | `${number} arcsec` | Quantity<'angle'>;
2016
+ /** Only sources whose parallax is at least this many times its error (`parallax / parallax_error`), a plain number. `5` keeps parallaxes known to 20%. */
2017
+ parallax_over_error_min?: number;
2018
+ /** The most rows a page holds, at most 1000. 100 when left out. */
2019
+ limit?: number;
2020
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
2021
+ cursor?: string;
2022
+ };
2023
+ body: never;
2024
+ response: Schemas['CatalogConeResponse'];
2025
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['NotFoundError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2026
+ };
2027
+ /**
2028
+ * Search exoplanets
2029
+ *
2030
+ * `GET /exoplanets`
2031
+ */
2032
+ searchExoplanets: {
2033
+ path: Record<string, never>;
2034
+ query: {
2035
+ /** Nearest system distance from the Sun (`sy_dist`). A number and a unit: `pc` or `ly`. */
2036
+ distance_min?: `${number} pc` | `${number} ly` | Quantity<'length'>;
2037
+ /** Farthest system distance from the Sun (`sy_dist`). A number and a unit: `pc` or `ly`. */
2038
+ distance_max?: `${number} pc` | `${number} ly` | Quantity<'length'>;
2039
+ /** Smallest planet radius (`pl_rade`). A number and a unit: `R_earth` or `R_jup`. */
2040
+ radius_min?: `${number} R_earth` | `${number} R_jup` | Quantity<'length'>;
2041
+ /** Largest planet radius (`pl_rade`). A number and a unit: `R_earth` or `R_jup`. */
2042
+ radius_max?: `${number} R_earth` | `${number} R_jup` | Quantity<'length'>;
2043
+ /** Smallest planet mass (`pl_bmasse`, see Mass above). A number and a unit: `M_earth` or `M_jup`. */
2044
+ mass_min?: `${number} M_earth` | `${number} M_jup` | Quantity<'mass'>;
2045
+ /** Largest planet mass (`pl_bmasse`, see Mass above). A number and a unit: `M_earth` or `M_jup`. */
2046
+ mass_max?: `${number} M_earth` | `${number} M_jup` | Quantity<'mass'>;
2047
+ /** 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. */
2048
+ mass_basis?: readonly ('mass_radius_relation' | 'msini' | 'mass')[];
2049
+ /** Shortest orbital period (`pl_orbper`). A number and a unit: `d`, `h` or `yr`. `yr` is a Julian year, 365.25 days. */
2050
+ orbital_period_min?: `${number} d` | `${number} h` | `${number} yr` | Quantity<'time'>;
2051
+ /** Longest orbital period (`pl_orbper`). A number and a unit: `d`, `h` or `yr`. `yr` is a Julian year, 365.25 days. */
2052
+ orbital_period_max?: `${number} d` | `${number} h` | `${number} yr` | Quantity<'time'>;
2053
+ /** Lowest equilibrium temperature (`pl_eqt`). A number and a unit: `K`. */
2054
+ equilibrium_temperature_min?: `${number} K` | Quantity<'temperature'>;
2055
+ /** Highest equilibrium temperature (`pl_eqt`). A number and a unit: `K`. */
2056
+ equilibrium_temperature_max?: `${number} K` | Quantity<'temperature'>;
2057
+ /** Least insolation (`pl_insol`), relative to what Earth receives. A number and a unit: `S_earth`. */
2058
+ insolation_flux_min?: `${number} S_earth` | Quantity<'energy flux'>;
2059
+ /** Most insolation (`pl_insol`), relative to what Earth receives. A number and a unit: `S_earth`. */
2060
+ insolation_flux_max?: `${number} S_earth` | Quantity<'energy flux'>;
2061
+ /** 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`. */
2062
+ 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')[];
2063
+ /** Earliest discovery year (`disc_year`). */
2064
+ discovery_year_min?: number;
2065
+ /** Latest discovery year (`disc_year`). */
2066
+ discovery_year_max?: number;
2067
+ /** 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. */
2068
+ calculated?: 'include' | 'exclude';
2069
+ /** 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. */
2070
+ sort?: 'distance' | 'name' | 'radius' | 'mass' | 'orbital_period' | 'equilibrium_temperature' | 'insolation_flux' | 'discovery_year';
2071
+ /** `asc` smallest first, `desc` largest first. Planets without a value still come last. */
2072
+ order?: 'asc' | 'desc';
2073
+ /** Planets per page. */
2074
+ limit?: number;
2075
+ /** 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. */
2076
+ cursor?: string;
2077
+ };
2078
+ body: never;
2079
+ response: Schemas['ExoplanetSearchResponse'];
2080
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2081
+ };
2082
+ /**
2083
+ * List every type SIMBAD assigns an object
2084
+ *
2085
+ * `GET /objects/{identifier}/classifications`
2086
+ */
2087
+ listClassifications: {
2088
+ path: {
2089
+ identifier: string;
2090
+ };
2091
+ query: Record<string, never>;
2092
+ body: never;
2093
+ response: Schemas['ClassificationsResponse'];
2094
+ error: Schemas['AmbiguousIdentifierError'] | Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnknownIdentifierError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2095
+ };
2096
+ /**
2097
+ * List the object types
2098
+ *
2099
+ * `GET /types`
2100
+ */
2101
+ listTypes: {
2102
+ path: Record<string, never>;
2103
+ query: Record<string, never>;
2104
+ body: never;
2105
+ response: Schemas['TypesResponse'];
2106
+ error: Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2107
+ };
2108
+ /**
2109
+ * Look up a SIMBAD object type
2110
+ *
2111
+ * `GET /types/{otype}`
2112
+ */
2113
+ getType: {
2114
+ path: {
2115
+ otype: string;
2116
+ };
2117
+ query: Record<string, never>;
2118
+ body: never;
2119
+ response: Schemas['TypeResponse'];
2120
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['NotFoundError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2121
+ };
2122
+ /**
2123
+ * Search nearby stars
2124
+ *
2125
+ * `GET /stars`
2126
+ */
2127
+ searchStars: {
2128
+ path: Record<string, never>;
2129
+ query: {
2130
+ /** Nearest distance from the Sun, `1000 / parallax`. Written as a number and a unit: `pc` or `ly`. */
2131
+ distance_min?: `${number} pc` | `${number} ly` | Quantity<'length'>;
2132
+ /** Farthest distance from the Sun, `1000 / parallax`. Written as a number and a unit: `pc` or `ly`. */
2133
+ distance_max?: `${number} pc` | `${number} ly` | Quantity<'length'>;
2134
+ /** 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`. */
2135
+ g_mag_min?: `${number} mag` | Quantity<'magnitude'>;
2136
+ /** 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`. */
2137
+ g_mag_max?: `${number} mag` | Quantity<'magnitude'>;
2138
+ /** 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`. */
2139
+ absolute_g_mag_min?: `${number} mag` | Quantity<'magnitude'>;
2140
+ /** 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`. */
2141
+ absolute_g_mag_max?: `${number} mag` | Quantity<'magnitude'>;
2142
+ /** 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`. */
2143
+ bp_rp_min?: `${number} mag` | Quantity<'magnitude'>;
2144
+ /** 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`. */
2145
+ bp_rp_max?: `${number} mag` | Quantity<'magnitude'>;
2146
+ /** 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. */
2147
+ parallax_over_error_min?: number;
2148
+ /** With `true`, only stars the NASA Exoplanet Archive lists planets for. Leave it out for every star. */
2149
+ has_planets?: true;
2150
+ /** The order: `distance` from the Sun, `g_mag` (apparent G), `absolute_g_mag`, or `bp_rp`. Ties are broken by catalog and row. */
2151
+ sort?: 'distance' | 'g_mag' | 'absolute_g_mag' | 'bp_rp';
2152
+ /** `asc` smallest value first: nearest, brightest or bluest. `desc` largest first. Stars without the value still come last. */
2153
+ order?: 'asc' | 'desc';
2154
+ /** Stars per page. */
2155
+ limit?: number;
2156
+ /** 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. */
2157
+ cursor?: string;
2158
+ };
2159
+ body: never;
2160
+ response: Schemas['StarSearchResponse'];
2161
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2162
+ };
2163
+ /**
2164
+ * Every nearby star, as Apache Arrow
2165
+ *
2166
+ * `GET /stars/all`
2167
+ */
2168
+ allStars: {
2169
+ path: Record<string, never>;
2170
+ query: Record<string, never>;
2171
+ body: never;
2172
+ response: Response;
2173
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2174
+ };
2175
+ /**
2176
+ * List the brightest stars
2177
+ *
2178
+ * `GET /stars/bright`
2179
+ */
2180
+ listBrightStars: {
2181
+ path: Record<string, never>;
2182
+ query: {
2183
+ /** 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. */
2184
+ hp_mag_max?: `${number} mag` | Quantity<'magnitude'>;
2185
+ /** Stars per page. */
2186
+ limit?: number;
2187
+ /** 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. */
2188
+ cursor?: string;
2189
+ };
2190
+ body: never;
2191
+ response: Schemas['BrightStarsResponse'];
2192
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2193
+ };
2194
+ /**
2195
+ * Complete a name as it is typed
2196
+ *
2197
+ * `GET /names`
2198
+ */
2199
+ completeNames: {
2200
+ path: Record<string, never>;
2201
+ query: {
2202
+ /** What has been typed so far. */
2203
+ q: string;
2204
+ /** How many names to give, at most 20. 8 when left out. */
2205
+ limit?: number;
2206
+ };
2207
+ body: never;
2208
+ response: Schemas['NamesResponse'];
2209
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2210
+ };
2211
+ /**
2212
+ * Cross-match positions
2213
+ *
2214
+ * `POST /sky/match`
2215
+ */
2216
+ matchPositions: {
2217
+ path: Record<string, never>;
2218
+ query: Record<string, never>;
2219
+ body: Schemas['MatchRequest'];
2220
+ response: Schemas['MatchResponse'];
2221
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['UnsupportedMediaTypeError'] | Schemas['RateLimitedError'] | Schemas['QuotaExceededError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2222
+ };
2223
+ /**
2224
+ * Create an API key
2225
+ *
2226
+ * `POST /api-keys`
2227
+ */
2228
+ createApiKey: {
2229
+ path: Record<string, never>;
2230
+ query: Record<string, never>;
2231
+ body: Schemas['NewApiKeyRequest'];
2232
+ response: Schemas['NewApiKeyResponse'];
2233
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['ForbiddenError'] | Schemas['KeyLimitReachedError'] | Schemas['UnsupportedMediaTypeError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2234
+ };
2235
+ /**
2236
+ * List an account's API keys
2237
+ *
2238
+ * `GET /api-keys`
2239
+ */
2240
+ listApiKeys: {
2241
+ path: Record<string, never>;
2242
+ query: {
2243
+ /** Keys per page. */
2244
+ limit?: number;
2245
+ /** The previous page's `metadata.page.next_cursor`, to get the next page. Leave it out for the first page. */
2246
+ cursor?: string;
2247
+ };
2248
+ body: never;
2249
+ response: Schemas['ApiKeysResponse'];
2250
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['ForbiddenError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2251
+ };
2252
+ /**
2253
+ * Look up an API key and its usage
2254
+ *
2255
+ * `GET /api-keys/{id}`
2256
+ */
2257
+ getApiKey: {
2258
+ path: {
2259
+ id: string;
2260
+ };
2261
+ query: Record<string, never>;
2262
+ body: never;
2263
+ response: Schemas['ApiKeyResponse'];
2264
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['ForbiddenError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2265
+ };
2266
+ /**
2267
+ * Revoke an API key
2268
+ *
2269
+ * `DELETE /api-keys/{id}`
2270
+ */
2271
+ revokeApiKey: {
2272
+ path: {
2273
+ id: string;
2274
+ };
2275
+ query: Record<string, never>;
2276
+ body: never;
2277
+ response: Schemas['RevokedApiKeyResponse'];
2278
+ error: Schemas['InvalidRequestError'] | Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['ForbiddenError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2279
+ };
2280
+ /**
2281
+ * Get the account, its quota and its usage
2282
+ *
2283
+ * `GET /account`
2284
+ */
2285
+ getAccount: {
2286
+ path: Record<string, never>;
2287
+ query: Record<string, never>;
2288
+ body: never;
2289
+ response: Schemas['AccountResponse'];
2290
+ error: Schemas['ApiKeyRequiredError'] | Schemas['InvalidApiKeyError'] | Schemas['SignInRequiredError'] | Schemas['RateLimitedError'] | Schemas['InternalError'] | Schemas['UnavailableError'];
2291
+ };
2292
+ }
2293
+ /** Every error code the API answers with, and the `details` each carries (undefined when none). */
2294
+ export interface ErrorDetails {
2295
+ ambiguous_identifier: {
2296
+ candidates: Schemas['Candidate'][];
2297
+ };
2298
+ invalid_request: {
2299
+ /** The part of the request that failed: param, query, json or header. */
2300
+ target: string;
2301
+ issues: {
2302
+ path: string;
2303
+ message: string;
2304
+ }[];
2305
+ };
2306
+ api_key_required: undefined;
2307
+ invalid_api_key: undefined;
2308
+ not_found: {
2309
+ /** 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. */
2310
+ suggestions: Schemas['Suggestion'][];
2311
+ } | undefined;
2312
+ rate_limited: undefined;
2313
+ quota_exceeded: {
2314
+ /** The account's plan. */
2315
+ plan: string;
2316
+ /** Requests the plan allows a month. */
2317
+ limit: number;
2318
+ /** Requests counted this month. */
2319
+ used: number;
2320
+ /** When the next month starts, in UTC. */
2321
+ resets_at: string;
2322
+ };
2323
+ internal_error: undefined;
2324
+ unavailable: undefined;
2325
+ outside_coverage: undefined;
2326
+ unsupported_media_type: undefined;
2327
+ not_a_system: undefined;
2328
+ no_position: undefined;
2329
+ sign_in_required: undefined;
2330
+ forbidden: undefined;
2331
+ key_limit_reached: undefined;
2332
+ }
2333
+ /** How the client sends each operation: its method and path, the units each quantity parameter accepts, and how it answers. */
2334
+ export declare const OPERATIONS: {
2335
+ readonly getObject: {
2336
+ readonly method: 'GET';
2337
+ readonly path: '/objects/{identifier}';
2338
+ readonly query: {};
2339
+ readonly response: 'json';
2340
+ readonly paged: false;
2341
+ };
2342
+ readonly listPlanets: {
2343
+ readonly method: 'GET';
2344
+ readonly path: '/objects/{identifier}/planets';
2345
+ readonly query: {};
2346
+ readonly response: 'json';
2347
+ readonly paged: false;
2348
+ };
2349
+ readonly listNearbyStars: {
2350
+ readonly method: 'GET';
2351
+ readonly path: '/objects/{identifier}/nearby';
2352
+ readonly query: {
2353
+ readonly radius: {
2354
+ readonly units: readonly ['pc', 'ly'];
2355
+ };
2356
+ readonly has_planets: {};
2357
+ readonly limit: {};
2358
+ readonly cursor: {};
2359
+ };
2360
+ readonly response: 'json';
2361
+ readonly paged: true;
2362
+ };
2363
+ readonly listStarsNearPoint: {
2364
+ readonly method: 'GET';
2365
+ readonly path: '/sky/nearby';
2366
+ readonly query: {
2367
+ readonly ra: {};
2368
+ readonly dec: {};
2369
+ readonly distance: {
2370
+ readonly units: readonly ['pc', 'ly'];
2371
+ };
2372
+ readonly radius: {
2373
+ readonly units: readonly ['pc', 'ly'];
2374
+ };
2375
+ readonly has_planets: {};
2376
+ readonly limit: {};
2377
+ readonly cursor: {};
2378
+ };
2379
+ readonly response: 'json';
2380
+ readonly paged: true;
2381
+ };
2382
+ readonly getDistance: {
2383
+ readonly method: 'GET';
2384
+ readonly path: '/objects/{identifier}/distance/{other}';
2385
+ readonly query: {};
2386
+ readonly response: 'json';
2387
+ readonly paged: false;
2388
+ };
2389
+ readonly resolveIdentifiers: {
2390
+ readonly method: 'POST';
2391
+ readonly path: '/objects/resolve';
2392
+ readonly query: {};
2393
+ readonly response: 'json';
2394
+ readonly paged: false;
2395
+ };
2396
+ readonly listMembers: {
2397
+ readonly method: 'GET';
2398
+ readonly path: '/objects/{identifier}/members';
2399
+ readonly query: {
2400
+ readonly limit: {};
2401
+ readonly cursor: {};
2402
+ };
2403
+ readonly response: 'json';
2404
+ readonly paged: true;
2405
+ };
2406
+ readonly listParents: {
2407
+ readonly method: 'GET';
2408
+ readonly path: '/objects/{identifier}/parents';
2409
+ readonly query: {
2410
+ readonly limit: {};
2411
+ readonly cursor: {};
2412
+ };
2413
+ readonly response: 'json';
2414
+ readonly paged: true;
2415
+ };
2416
+ readonly listSolutions: {
2417
+ readonly method: 'GET';
2418
+ readonly path: '/objects/{identifier}/solutions';
2419
+ readonly query: {};
2420
+ readonly response: 'json';
2421
+ readonly paged: false;
2422
+ };
2423
+ readonly getSystem: {
2424
+ readonly method: 'GET';
2425
+ readonly path: '/objects/{identifier}/system';
2426
+ readonly query: {};
2427
+ readonly response: 'json';
2428
+ readonly paged: false;
2429
+ };
2430
+ readonly searchCone: {
2431
+ readonly method: 'GET';
2432
+ readonly path: '/sky/cone';
2433
+ readonly query: {
2434
+ readonly ra: {};
2435
+ readonly dec: {};
2436
+ readonly radius: {
2437
+ readonly units: readonly ['arcsec', 'arcmin', 'deg'];
2438
+ };
2439
+ readonly limit: {};
2440
+ readonly cursor: {};
2441
+ };
2442
+ readonly response: 'json';
2443
+ readonly paged: true;
2444
+ };
2445
+ readonly listObjectsAround: {
2446
+ readonly method: 'GET';
2447
+ readonly path: '/objects/{identifier}/cone';
2448
+ readonly query: {
2449
+ readonly radius: {
2450
+ readonly units: readonly ['arcsec', 'arcmin', 'deg'];
2451
+ };
2452
+ readonly limit: {};
2453
+ readonly cursor: {};
2454
+ };
2455
+ readonly response: 'json';
2456
+ readonly paged: true;
2457
+ };
2458
+ readonly listCatalogs: {
2459
+ readonly method: 'GET';
2460
+ readonly path: '/catalogs';
2461
+ readonly query: {};
2462
+ readonly response: 'json';
2463
+ readonly paged: false;
2464
+ };
2465
+ readonly getCatalog: {
2466
+ readonly method: 'GET';
2467
+ readonly path: '/catalogs/{id}';
2468
+ readonly query: {};
2469
+ readonly response: 'json';
2470
+ readonly paged: false;
2471
+ };
2472
+ readonly getCatalogRecord: {
2473
+ readonly method: 'GET';
2474
+ readonly path: '/catalogs/{id}/records/{key}';
2475
+ readonly query: {};
2476
+ readonly response: 'json';
2477
+ readonly paged: false;
2478
+ };
2479
+ readonly catalogCone: {
2480
+ readonly method: 'GET';
2481
+ readonly path: '/catalogs/{id}/cone';
2482
+ readonly query: {
2483
+ readonly ra: {};
2484
+ readonly dec: {};
2485
+ readonly radius: {
2486
+ readonly units: readonly ['arcsec', 'arcmin', 'deg'];
2487
+ };
2488
+ readonly g_mag_min: {
2489
+ readonly units: readonly ['mag'];
2490
+ };
2491
+ readonly g_mag_max: {
2492
+ readonly units: readonly ['mag'];
2493
+ };
2494
+ readonly parallax_min: {
2495
+ readonly units: readonly ['mas', 'arcsec'];
2496
+ };
2497
+ readonly parallax_max: {
2498
+ readonly units: readonly ['mas', 'arcsec'];
2499
+ };
2500
+ readonly parallax_over_error_min: {};
2501
+ readonly limit: {};
2502
+ readonly cursor: {};
2503
+ };
2504
+ readonly response: 'json';
2505
+ readonly paged: true;
2506
+ };
2507
+ readonly searchExoplanets: {
2508
+ readonly method: 'GET';
2509
+ readonly path: '/exoplanets';
2510
+ readonly query: {
2511
+ readonly distance_min: {
2512
+ readonly units: readonly ['pc', 'ly'];
2513
+ };
2514
+ readonly distance_max: {
2515
+ readonly units: readonly ['pc', 'ly'];
2516
+ };
2517
+ readonly radius_min: {
2518
+ readonly units: readonly ['R_earth', 'R_jup'];
2519
+ };
2520
+ readonly radius_max: {
2521
+ readonly units: readonly ['R_earth', 'R_jup'];
2522
+ };
2523
+ readonly mass_min: {
2524
+ readonly units: readonly ['M_earth', 'M_jup'];
2525
+ };
2526
+ readonly mass_max: {
2527
+ readonly units: readonly ['M_earth', 'M_jup'];
2528
+ };
2529
+ readonly mass_basis: {};
2530
+ readonly orbital_period_min: {
2531
+ readonly units: readonly ['d', 'h', 'yr'];
2532
+ };
2533
+ readonly orbital_period_max: {
2534
+ readonly units: readonly ['d', 'h', 'yr'];
2535
+ };
2536
+ readonly equilibrium_temperature_min: {
2537
+ readonly units: readonly ['K'];
2538
+ };
2539
+ readonly equilibrium_temperature_max: {
2540
+ readonly units: readonly ['K'];
2541
+ };
2542
+ readonly insolation_flux_min: {
2543
+ readonly units: readonly ['S_earth'];
2544
+ };
2545
+ readonly insolation_flux_max: {
2546
+ readonly units: readonly ['S_earth'];
2547
+ };
2548
+ readonly discovery_method: {};
2549
+ readonly discovery_year_min: {};
2550
+ readonly discovery_year_max: {};
2551
+ readonly calculated: {};
2552
+ readonly sort: {};
2553
+ readonly order: {};
2554
+ readonly limit: {};
2555
+ readonly cursor: {};
2556
+ };
2557
+ readonly response: 'json';
2558
+ readonly paged: true;
2559
+ };
2560
+ readonly listClassifications: {
2561
+ readonly method: 'GET';
2562
+ readonly path: '/objects/{identifier}/classifications';
2563
+ readonly query: {};
2564
+ readonly response: 'json';
2565
+ readonly paged: false;
2566
+ };
2567
+ readonly listTypes: {
2568
+ readonly method: 'GET';
2569
+ readonly path: '/types';
2570
+ readonly query: {};
2571
+ readonly response: 'json';
2572
+ readonly paged: false;
2573
+ };
2574
+ readonly getType: {
2575
+ readonly method: 'GET';
2576
+ readonly path: '/types/{otype}';
2577
+ readonly query: {};
2578
+ readonly response: 'json';
2579
+ readonly paged: false;
2580
+ };
2581
+ readonly searchStars: {
2582
+ readonly method: 'GET';
2583
+ readonly path: '/stars';
2584
+ readonly query: {
2585
+ readonly distance_min: {
2586
+ readonly units: readonly ['pc', 'ly'];
2587
+ };
2588
+ readonly distance_max: {
2589
+ readonly units: readonly ['pc', 'ly'];
2590
+ };
2591
+ readonly g_mag_min: {
2592
+ readonly units: readonly ['mag'];
2593
+ };
2594
+ readonly g_mag_max: {
2595
+ readonly units: readonly ['mag'];
2596
+ };
2597
+ readonly absolute_g_mag_min: {
2598
+ readonly units: readonly ['mag'];
2599
+ };
2600
+ readonly absolute_g_mag_max: {
2601
+ readonly units: readonly ['mag'];
2602
+ };
2603
+ readonly bp_rp_min: {
2604
+ readonly units: readonly ['mag'];
2605
+ };
2606
+ readonly bp_rp_max: {
2607
+ readonly units: readonly ['mag'];
2608
+ };
2609
+ readonly parallax_over_error_min: {};
2610
+ readonly has_planets: {};
2611
+ readonly sort: {};
2612
+ readonly order: {};
2613
+ readonly limit: {};
2614
+ readonly cursor: {};
2615
+ };
2616
+ readonly response: 'json';
2617
+ readonly paged: true;
2618
+ };
2619
+ readonly allStars: {
2620
+ readonly method: 'GET';
2621
+ readonly path: '/stars/all';
2622
+ readonly query: {};
2623
+ readonly response: 'arrow';
2624
+ readonly paged: false;
2625
+ };
2626
+ readonly listBrightStars: {
2627
+ readonly method: 'GET';
2628
+ readonly path: '/stars/bright';
2629
+ readonly query: {
2630
+ readonly hp_mag_max: {
2631
+ readonly units: readonly ['mag'];
2632
+ };
2633
+ readonly limit: {};
2634
+ readonly cursor: {};
2635
+ };
2636
+ readonly response: 'json';
2637
+ readonly paged: true;
2638
+ };
2639
+ readonly completeNames: {
2640
+ readonly method: 'GET';
2641
+ readonly path: '/names';
2642
+ readonly query: {
2643
+ readonly q: {};
2644
+ readonly limit: {};
2645
+ };
2646
+ readonly response: 'json';
2647
+ readonly paged: false;
2648
+ };
2649
+ readonly matchPositions: {
2650
+ readonly method: 'POST';
2651
+ readonly path: '/sky/match';
2652
+ readonly query: {};
2653
+ readonly response: 'json';
2654
+ readonly paged: false;
2655
+ };
2656
+ readonly createApiKey: {
2657
+ readonly method: 'POST';
2658
+ readonly path: '/api-keys';
2659
+ readonly query: {};
2660
+ readonly response: 'json';
2661
+ readonly paged: false;
2662
+ };
2663
+ readonly listApiKeys: {
2664
+ readonly method: 'GET';
2665
+ readonly path: '/api-keys';
2666
+ readonly query: {
2667
+ readonly limit: {};
2668
+ readonly cursor: {};
2669
+ };
2670
+ readonly response: 'json';
2671
+ readonly paged: true;
2672
+ };
2673
+ readonly getApiKey: {
2674
+ readonly method: 'GET';
2675
+ readonly path: '/api-keys/{id}';
2676
+ readonly query: {};
2677
+ readonly response: 'json';
2678
+ readonly paged: false;
2679
+ };
2680
+ readonly revokeApiKey: {
2681
+ readonly method: 'DELETE';
2682
+ readonly path: '/api-keys/{id}';
2683
+ readonly query: {};
2684
+ readonly response: 'json';
2685
+ readonly paged: false;
2686
+ };
2687
+ readonly getAccount: {
2688
+ readonly method: 'GET';
2689
+ readonly path: '/account';
2690
+ readonly query: {};
2691
+ readonly response: 'json';
2692
+ readonly paged: false;
2693
+ };
2694
+ };
2695
+ //# sourceMappingURL=api.d.ts.map