@zodiacs/engine 0.1.1-rc.16 → 1.0.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +458 -0
  2. package/LICENSING.md +18 -5
  3. package/NOTICE +3 -2
  4. package/README.md +67 -33
  5. package/dist/{api-VOW6Umy5.d.ts → api-WbxJ4Wj-.d.ts} +12 -6
  6. package/dist/ayanamsa--YQ46fET.d.ts +134 -0
  7. package/dist/calc.d.ts +131 -20
  8. package/dist/calc.js +246 -60
  9. package/dist/chunk-47ERTK5X.js +27 -0
  10. package/dist/{chunk-O3NJRGJ2.js → chunk-7TRLIFFI.js} +1 -1
  11. package/dist/{chunk-KHBLFXFG.js → chunk-B5LKF437.js} +29 -28
  12. package/dist/{chunk-ONBZ4HK7.js → chunk-BHJXUY67.js} +4 -2
  13. package/dist/{chunk-I7O5EGFV.js → chunk-CHSYDKBL.js} +1 -1
  14. package/dist/{chunk-4NV4ZEFZ.js → chunk-DMGHYCDI.js} +4 -4
  15. package/dist/{chunk-L6ZHWJZ6.js → chunk-FTX3JDJA.js} +15 -12
  16. package/dist/{chunk-2OWGBT3O.js → chunk-OG4OYTJJ.js} +47 -42
  17. package/dist/{chunk-WOU7JVD3.js → chunk-SRXBTP5H.js} +7 -7
  18. package/dist/{chunk-AECKV73C.js → chunk-TSS2SZWQ.js} +8 -2
  19. package/dist/chunk-WS3TDSP3.js +474 -0
  20. package/dist/{chunk-N4B5JNMA.js → chunk-YIITY7Q7.js} +21 -11
  21. package/dist/crossings.d.ts +8 -7
  22. package/dist/crossings.js +1 -1
  23. package/dist/deltat.d.ts +28 -3
  24. package/dist/deltat.js +1 -1
  25. package/dist/geo.d.ts +33 -12
  26. package/dist/geo.js +3 -1
  27. package/dist/{houses-q1O2GGp4.d.ts → houses-CFERsAlK.d.ts} +12 -2
  28. package/dist/houses-extra.d.ts +19 -5
  29. package/dist/houses-extra.js +4 -2
  30. package/dist/index.d.ts +34 -49
  31. package/dist/index.js +21 -13
  32. package/dist/{internal-math-CmJ9xtaW.d.ts → internal-math-DJJ8BYex.d.ts} +41 -27
  33. package/dist/internal-math.d.ts +3 -3
  34. package/dist/internal-math.js +2 -2
  35. package/dist/internal.d.ts +1 -1
  36. package/dist/internal.js +5 -5
  37. package/dist/receipt.d.ts +2 -268
  38. package/dist/receipt.js +70 -35
  39. package/dist/reference-span-CILpclrz.d.ts +40 -0
  40. package/dist/{rulers-9wljfVaO.d.ts → rulers-Dla6h_Sm.d.ts} +7 -2
  41. package/dist/sky.d.ts +25 -10
  42. package/dist/sky.js +11 -9
  43. package/dist/techniques.d.ts +61 -18
  44. package/dist/techniques.js +39 -46
  45. package/dist/timing.d.ts +53 -16
  46. package/dist/timing.js +19 -38
  47. package/dist/{types-B4MCoCCS.d.ts → types-B-yb_tGL.d.ts} +23 -11
  48. package/dist/vedic.d.ts +42 -123
  49. package/dist/vedic.js +43 -440
  50. package/dist/window.d.ts +81 -79
  51. package/dist/window.js +26 -27
  52. package/dist/zone-history-ghdyO0Sc.d.ts +268 -0
  53. package/package.json +3 -1
@@ -1,40 +1,47 @@
1
- import { g as AspectType, c as BodyPosition, n as Aspect, Z as ZodiacSign, u as SignDefinition } from './types-B4MCoCCS.js';
2
- import './houses-q1O2GGp4.js';
1
+ import { f as AspectType, c as BodyPosition, n as Aspect, Z as ZodiacSign, v as SignDefinition } from './types-B-yb_tGL.js';
2
+ import './houses-CFERsAlK.js';
3
3
 
4
4
  interface AspectDefinition {
5
- type: AspectType;
6
- angle: number;
7
- orb: number;
8
- luminaryOrb: number;
5
+ readonly type: AspectType;
6
+ readonly angle: number;
7
+ readonly orb: number;
8
+ readonly luminaryOrb: number;
9
9
  }
10
10
  declare const ASPECT_TYPES: readonly ["conjunction", "sextile", "square", "trine", "opposition"];
11
- declare const ASPECTS: readonly [{
11
+ /** The five major aspects and their orbs, frozen: matchAspect returns these objects themselves. */
12
+ declare const ASPECTS: readonly [Readonly<{
12
13
  readonly type: "conjunction";
13
14
  readonly angle: 0;
14
15
  readonly orb: 8;
15
16
  readonly luminaryOrb: 10;
16
- }, {
17
+ }>, Readonly<{
17
18
  readonly type: "sextile";
18
19
  readonly angle: 60;
19
20
  readonly orb: 4;
20
21
  readonly luminaryOrb: 5;
21
- }, {
22
+ }>, Readonly<{
22
23
  readonly type: "square";
23
24
  readonly angle: 90;
24
25
  readonly orb: 7;
25
26
  readonly luminaryOrb: 8;
26
- }, {
27
+ }>, Readonly<{
27
28
  readonly type: "trine";
28
29
  readonly angle: 120;
29
30
  readonly orb: 7;
30
31
  readonly luminaryOrb: 8;
31
- }, {
32
+ }>, Readonly<{
32
33
  readonly type: "opposition";
33
34
  readonly angle: 180;
34
35
  readonly orb: 8;
35
36
  readonly luminaryOrb: 10;
36
- }];
37
- declare const ASPECT_BODIES: Set<string>;
37
+ }>];
38
+ /**
39
+ * The bodies `findAspects`, `findInterAspects`, `elementBalance` and
40
+ * `modalityBalance` take into account: the Sun to Pluto, without the nodes.
41
+ * A copy for reading; the engine keeps its own, so changing this set changes
42
+ * nothing it computes.
43
+ */
44
+ declare const ASPECT_BODIES: ReadonlySet<string>;
38
45
  /** Whether an aspect's orb is shrinking, growing, or neither, at an instant. */
39
46
  type AspectMotion = "applying" | "separating" | "stationary";
40
47
  /**
@@ -66,95 +73,102 @@ declare function findAspects(bodies: readonly BodyPosition[]): Aspect[];
66
73
 
67
74
  declare const ELEMENTS: readonly ["fire", "earth", "air", "water"];
68
75
  declare const MODALITIES: readonly ["cardinal", "fixed", "mutable"];
69
- declare const SIGNS: readonly [{
76
+ /** The twelve signs, frozen: signForLongitude returns these objects themselves. */
77
+ declare const SIGNS: readonly [Readonly<{
70
78
  readonly slug: "aries";
71
79
  readonly name: "Aries";
72
80
  readonly element: "fire";
73
81
  readonly modality: "cardinal";
74
82
  readonly polarity: "day";
75
83
  readonly naturalHouse: 1;
76
- }, {
84
+ }>, Readonly<{
77
85
  readonly slug: "taurus";
78
86
  readonly name: "Taurus";
79
87
  readonly element: "earth";
80
88
  readonly modality: "fixed";
81
89
  readonly polarity: "night";
82
90
  readonly naturalHouse: 2;
83
- }, {
91
+ }>, Readonly<{
84
92
  readonly slug: "gemini";
85
93
  readonly name: "Gemini";
86
94
  readonly element: "air";
87
95
  readonly modality: "mutable";
88
96
  readonly polarity: "day";
89
97
  readonly naturalHouse: 3;
90
- }, {
98
+ }>, Readonly<{
91
99
  readonly slug: "cancer";
92
100
  readonly name: "Cancer";
93
101
  readonly element: "water";
94
102
  readonly modality: "cardinal";
95
103
  readonly polarity: "night";
96
104
  readonly naturalHouse: 4;
97
- }, {
105
+ }>, Readonly<{
98
106
  readonly slug: "leo";
99
107
  readonly name: "Leo";
100
108
  readonly element: "fire";
101
109
  readonly modality: "fixed";
102
110
  readonly polarity: "day";
103
111
  readonly naturalHouse: 5;
104
- }, {
112
+ }>, Readonly<{
105
113
  readonly slug: "virgo";
106
114
  readonly name: "Virgo";
107
115
  readonly element: "earth";
108
116
  readonly modality: "mutable";
109
117
  readonly polarity: "night";
110
118
  readonly naturalHouse: 6;
111
- }, {
119
+ }>, Readonly<{
112
120
  readonly slug: "libra";
113
121
  readonly name: "Libra";
114
122
  readonly element: "air";
115
123
  readonly modality: "cardinal";
116
124
  readonly polarity: "day";
117
125
  readonly naturalHouse: 7;
118
- }, {
126
+ }>, Readonly<{
119
127
  readonly slug: "scorpio";
120
128
  readonly name: "Scorpio";
121
129
  readonly element: "water";
122
130
  readonly modality: "fixed";
123
131
  readonly polarity: "night";
124
132
  readonly naturalHouse: 8;
125
- }, {
133
+ }>, Readonly<{
126
134
  readonly slug: "sagittarius";
127
135
  readonly name: "Sagittarius";
128
136
  readonly element: "fire";
129
137
  readonly modality: "mutable";
130
138
  readonly polarity: "day";
131
139
  readonly naturalHouse: 9;
132
- }, {
140
+ }>, Readonly<{
133
141
  readonly slug: "capricorn";
134
142
  readonly name: "Capricorn";
135
143
  readonly element: "earth";
136
144
  readonly modality: "cardinal";
137
145
  readonly polarity: "night";
138
146
  readonly naturalHouse: 10;
139
- }, {
147
+ }>, Readonly<{
140
148
  readonly slug: "aquarius";
141
149
  readonly name: "Aquarius";
142
150
  readonly element: "air";
143
151
  readonly modality: "fixed";
144
152
  readonly polarity: "day";
145
153
  readonly naturalHouse: 11;
146
- }, {
154
+ }>, Readonly<{
147
155
  readonly slug: "pisces";
148
156
  readonly name: "Pisces";
149
157
  readonly element: "water";
150
158
  readonly modality: "mutable";
151
159
  readonly polarity: "night";
152
160
  readonly naturalHouse: 12;
153
- }];
161
+ }>];
162
+ /** The twelve signs' slugs, "aries" to "pisces", in zodiac order. */
163
+ declare const SIGN_SLUGS: readonly ZodiacSign[];
164
+ /**
165
+ * The twelve signs' slugs, as SIGN_SLUGS.
166
+ * @deprecated It holds slugs ("aries"), not names ("Aries"); use SIGN_SLUGS.
167
+ */
154
168
  declare const SIGN_NAMES: readonly ZodiacSign[];
155
169
  declare function normalizeLongitude(lon: number): number;
156
170
  declare function signIndexForLongitude(lon: number): number;
157
171
  declare function signForLongitude(lon: number): SignDefinition;
158
172
  declare function degreeInSign(lon: number): number;
159
173
 
160
- export { ASPECTS as A, ELEMENTS as E, MODALITIES as M, SIGNS as S, ASPECT_BODIES as a, ASPECT_TYPES as b, type AspectDefinition as c, type AspectMotion as d, SIGN_NAMES as e, STATIONARY_RELATIVE_SPEED as f, aspectMotion as g, degreeInSign as h, findAspects as i, signForLongitude as j, signIndexForLongitude as k, matchAspect as m, normalizeLongitude as n, separation as s };
174
+ export { type AspectMotion as A, ELEMENTS as E, MODALITIES as M, SIGNS as S, ASPECTS as a, ASPECT_BODIES as b, ASPECT_TYPES as c, type AspectDefinition as d, SIGN_NAMES as e, SIGN_SLUGS as f, STATIONARY_RELATIVE_SPEED as g, aspectMotion as h, degreeInSign as i, findAspects as j, signForLongitude as k, signIndexForLongitude as l, matchAspect as m, normalizeLongitude as n, separation as s };
@@ -1,4 +1,4 @@
1
- export { A as ASPECTS, a as ASPECT_BODIES, b as ASPECT_TYPES, c as AspectDefinition, d as AspectMotion, f as STATIONARY_RELATIVE_SPEED, g as aspectMotion, i as findAspects, m as matchAspect, n as normalizeLongitude, s as separation } from './internal-math-CmJ9xtaW.js';
2
- export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-q1O2GGp4.js';
3
- export { A as Angles, n as Aspect, g as AspectType, B as BodyName, c as BodyPosition, d as Chart, e as ChartFlag, C as ChartInput, o as ENGINE_VERSION, b as HouseNumber, H as HouseSystem, a as Houses } from './types-B4MCoCCS.js';
1
+ export { a as ASPECTS, b as ASPECT_BODIES, c as ASPECT_TYPES, d as AspectDefinition, A as AspectMotion, g as STATIONARY_RELATIVE_SPEED, h as aspectMotion, j as findAspects, m as matchAspect, n as normalizeLongitude, s as separation } from './internal-math-DJJ8BYex.js';
2
+ export { A as AngleInput, H as HOUSE_SYSTEMS, P as PLACIDUS_POLAR_FALLBACK, a as POLAR_FALLBACK, b as POLAR_UNDEFINED_HOUSE_SYSTEMS, c as alcabitiusCusps, d as campanusCusps, e as computeAngles, f as computeHouses, g as eastPointOf, h as equalCusps, i as equalMcCusps, j as houseOf, k as isPolarUndefinedHouseSystem, l as kochCusps, m as meanObliquity, n as meridianCusps, o as morinusCusps, p as placidusCusps, q as porphyryCusps, r as ramcOf, s as regiomontanusCusps, t as topocentricCusps, v as vehlowCusps, u as vertexOf, w as wholeSignCusps } from './houses-CFERsAlK.js';
3
+ export { A as Angles, n as Aspect, f as AspectType, B as BodyName, c as BodyPosition, d as Chart, g as ChartFlag, C as ChartInput, p as ENGINE_VERSION, b as HouseNumber, H as HouseSystem, a as Houses } from './types-B-yb_tGL.js';
4
4
  import './deltat.js';
@@ -24,7 +24,7 @@ import {
24
24
  vehlowCusps,
25
25
  vertexOf,
26
26
  wholeSignCusps
27
- } from "./chunk-4NV4ZEFZ.js";
27
+ } from "./chunk-DMGHYCDI.js";
28
28
  import {
29
29
  ASPECTS,
30
30
  ASPECT_BODIES,
@@ -36,7 +36,7 @@ import {
36
36
  matchAspect,
37
37
  normalizeLongitude,
38
38
  separation
39
- } from "./chunk-2OWGBT3O.js";
39
+ } from "./chunk-OG4OYTJJ.js";
40
40
  export {
41
41
  ASPECTS,
42
42
  ASPECT_BODIES,
@@ -1,4 +1,4 @@
1
- import { B as BodyName, c as BodyPosition, C as ChartInput, d as Chart } from './types-B4MCoCCS.js';
1
+ import { B as BodyName, c as BodyPosition, C as ChartInput, d as Chart } from './types-B-yb_tGL.js';
2
2
  import './deltat.js';
3
3
 
4
4
  /** Apparent longitude at a UTC instant, on the engine's time basis. */
package/dist/internal.js CHANGED
@@ -3,11 +3,11 @@ import {
3
3
  computeBodies,
4
4
  computeChart,
5
5
  longitudeSpeed
6
- } from "./chunk-WOU7JVD3.js";
7
- import "./chunk-KHBLFXFG.js";
8
- import "./chunk-ONBZ4HK7.js";
9
- import "./chunk-4NV4ZEFZ.js";
10
- import "./chunk-2OWGBT3O.js";
6
+ } from "./chunk-SRXBTP5H.js";
7
+ import "./chunk-B5LKF437.js";
8
+ import "./chunk-BHJXUY67.js";
9
+ import "./chunk-DMGHYCDI.js";
10
+ import "./chunk-OG4OYTJJ.js";
11
11
  export {
12
12
  bodyLongitude,
13
13
  computeBodies,
package/dist/receipt.d.ts CHANGED
@@ -1,269 +1,3 @@
1
- import { T as TimeScaleName, H as HouseSystem, e as ChartFlag, d as Chart, f as BirthInput } from './types-B4MCoCCS.js';
1
+ import './types-B-yb_tGL.js';
2
2
  import './deltat.js';
3
-
4
- /** Zodiacs-owned draft vocabulary; not an industry interoperability standard. */
5
- declare const NATAL_ENVELOPE_SCHEMA = "zodiacs.natal-envelope.draft-v1";
6
- declare const NATAL_RECEIPT_SCHEMA = "zodiacs.calculation-receipt.draft-v1";
7
- declare const NATAL_DIAGNOSTIC_SCHEMA = "zodiacs.natal-diagnostic.draft-v1";
8
- declare const NATAL_ENVELOPE_LIMITS: Readonly<{
9
- bytes: 65536;
10
- depth: 12;
11
- nodes: 4096;
12
- }>;
13
- type NatalEnvelopeErrorCode = "invalid_json" | "invalid_shape" | "invalid_value" | "inconsistent_result" | "invalid_context" | "size_limit" | "complexity_limit" | "unsupported_version" | "unsupported_feature";
14
- declare class NatalEnvelopeError extends Error {
15
- readonly code: NatalEnvelopeErrorCode;
16
- constructor(code: NatalEnvelopeErrorCode);
17
- }
18
- type NatalJsonValue = null | boolean | number | string | NatalJsonValue[] | NatalJsonObject;
19
- interface NatalJsonObject {
20
- [key: string]: NatalJsonValue;
21
- }
22
- type NatalReference = "supplied-instant" | "utc-noon" | "local-noon";
23
- /** A clock change a local resolution records. */
24
- interface NatalZoneTransition {
25
- at: string;
26
- offsetBeforeMinutes: number;
27
- offsetAfterMinutes: number;
28
- cause: "dst" | "legal-change" | "date-line";
29
- }
30
- /**
31
- * Captured assertions, checked arithmetically without consulting today's
32
- * Intl/tzdb. The fields after `policy` are optional from the time-basis
33
- * conventions set on, so a record in rc.14's shape is accepted, and absent
34
- * before it; each one given is checked. `resolveLocalToUtc` returns the whole
35
- * object as `localResolution` (docs/time.md).
36
- */
37
- interface NatalLocalResolution {
38
- /** The proleptic Gregorian date resolved. */
39
- date: string;
40
- time: string;
41
- timeZone: string;
42
- /** Offset at the resolved instant, minutes east of UTC; may be fractional. */
43
- offsetMinutes: number;
44
- /** Forward wall-clock shift; positive only for a reported gap. */
45
- gapShiftMinutes: number;
46
- policy: {
47
- fold: "earlier";
48
- gap: "shift-forward";
49
- };
50
- calendar?: "gregorian" | "julian";
51
- writtenDate?: string;
52
- tzdbVersion?: string | null;
53
- dataForm?: "main+backzone" | "main" | "host";
54
- clock?: "local-mean-time" | "legal";
55
- transition?: NatalZoneTransition | null;
56
- localMeanTime?: {
57
- longitude: number;
58
- zoneOffsetMinutes: number;
59
- } | null;
60
- }
61
- /** Supplied facts are claims, including hashes. This codec authenticates none of them. */
62
- interface NatalProvenanceClaims {
63
- source?: {
64
- repository: string;
65
- commit: string;
66
- };
67
- artifact?: {
68
- sha256: string;
69
- packageVersion: string;
70
- distributionRepository?: string;
71
- distributionCommit?: string;
72
- };
73
- runtime?: {
74
- name: string;
75
- version?: string;
76
- icuVersion?: string;
77
- tzdbVersion?: string;
78
- };
79
- ephemeris?: {
80
- name: "astronomy-engine";
81
- version: string;
82
- };
83
- }
84
- interface NatalEnvelopeContext {
85
- /** Omission never infers noon, including when timeKnown is false. */
86
- reference?: NatalReference;
87
- /** Original validated ISO spelling when captured; no zone/offset meaning is inferred. */
88
- sourceInstant?: string | null;
89
- localResolution?: NatalLocalResolution | null;
90
- provenance?: NatalProvenanceClaims;
91
- /** Optional JSON data only. Never executed, rendered, fetched or used for replay. */
92
- extensions?: NatalJsonObject;
93
- }
94
- /** The conventions engine versions 0.1.1-rc.3 to rc.6 recorded. Their receipts stay readable. */
95
- declare const CONVENTIONS_RC3: Readonly<{
96
- readonly calendar: "proleptic-gregorian";
97
- readonly zodiac: "tropical";
98
- readonly planetPositions: "apparent-geocentric-ecliptic-of-date";
99
- readonly moonPosition: "astronomy-engine-ecliptic-geo-moon";
100
- readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
101
- readonly angles: "gast-and-mean-obliquity";
102
- readonly longitudeUnit: "degrees-[0,360)";
103
- readonly speed: "degrees-per-day;central-difference-plus-minus-0.25-day";
104
- readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes";
105
- }>;
106
- /** The conventions engine version 0.1.1-rc.7 recorded. Its receipts stay readable. */
107
- declare const CONVENTIONS_RC7: Readonly<{
108
- readonly angles: "gast-and-true-obliquity";
109
- readonly speed: "degrees-per-day;central-difference-plus-minus-0.001-day;nodes-plus-minus-0.25-day";
110
- readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes;applying-instantaneous-orb-rate";
111
- readonly calendar: "proleptic-gregorian";
112
- readonly zodiac: "tropical";
113
- readonly planetPositions: "apparent-geocentric-ecliptic-of-date";
114
- readonly moonPosition: "astronomy-engine-ecliptic-geo-moon";
115
- readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
116
- readonly longitudeUnit: "degrees-[0,360)";
117
- }>;
118
- /**
119
- * The conventions engine versions 0.1.1-rc.8 to rc.14 recorded: the planets
120
- * corrected for light time and aberration but not for gravitational
121
- * deflection, the Moon's series for neither, and the instant read as UT1.
122
- * Their receipts stay readable.
123
- */
124
- declare const CONVENTIONS_RC8: Readonly<{
125
- readonly planetPositions: "aberrated-geocentric-ecliptic-of-date;no-deflection";
126
- readonly moonPosition: "astronomy-engine-ecliptic-geo-moon;no-light-time;no-aberration";
127
- readonly deltaT: "tt-minus-ut1;ut1-read-as-utc;value-in-result";
128
- readonly angles: "gast-and-true-obliquity";
129
- readonly speed: "degrees-per-day;central-difference-plus-minus-0.001-day;nodes-plus-minus-0.25-day";
130
- readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes;applying-instantaneous-orb-rate";
131
- readonly calendar: "proleptic-gregorian";
132
- readonly zodiac: "tropical";
133
- readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
134
- readonly longitudeUnit: "degrees-[0,360)";
135
- }>;
136
- /**
137
- * The conventions engine version 0.1.1-rc.15 recorded: the rc.8 set, with the
138
- * time basis in the result (`result.timeScale`, docs/time.md) and local times
139
- * resolved on the shipped tzdb history before 1970, their flags from its
140
- * records. Its engine took astronomy-engine's nutation, the five largest terms
141
- * of IAU 2000B, which the set does not name. Its receipts stay readable.
142
- */
143
- declare const CONVENTIONS_RC15: Readonly<{
144
- readonly deltaT: "tt-minus-ut1;value-in-result";
145
- readonly timeScale: "tt-from-leap-seconds-and-ut1-from-iers-1972-to-table-end;delta-t-model-otherwise;in-result";
146
- readonly localTime: "tzdb-shards-before-1970;host-intl-from-1970;flags-from-transition-record";
147
- readonly planetPositions: "aberrated-geocentric-ecliptic-of-date;no-deflection";
148
- readonly moonPosition: "astronomy-engine-ecliptic-geo-moon;no-light-time;no-aberration";
149
- readonly angles: "gast-and-true-obliquity";
150
- readonly speed: "degrees-per-day;central-difference-plus-minus-0.001-day;nodes-plus-minus-0.25-day";
151
- readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes;applying-instantaneous-orb-rate";
152
- readonly calendar: "proleptic-gregorian";
153
- readonly zodiac: "tropical";
154
- readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
155
- readonly longitudeUnit: "degrees-[0,360)";
156
- }>;
157
- /**
158
- * The conventions this engine records: the rc.15 set, naming the nutation,
159
- * the engine's own IAU 2000B series (all 77 luni-solar terms and the planetary
160
- * offsets, src/nutation.ts) with the two largest complementary terms of the
161
- * equation of the equinoxes, and the Moon as astronomy-engine's geocentric
162
- * series (GeoMoon) turned to the ecliptic of date by it.
163
- */
164
- declare const CONVENTIONS: Readonly<{
165
- readonly moonPosition: "astronomy-engine-geo-moon;no-light-time;no-aberration";
166
- readonly nutation: "iau2000b;equation-of-equinoxes-with-two-complementary-terms";
167
- readonly deltaT: "tt-minus-ut1;value-in-result";
168
- readonly timeScale: "tt-from-leap-seconds-and-ut1-from-iers-1972-to-table-end;delta-t-model-otherwise;in-result";
169
- readonly localTime: "tzdb-shards-before-1970;host-intl-from-1970;flags-from-transition-record";
170
- readonly planetPositions: "aberrated-geocentric-ecliptic-of-date;no-deflection";
171
- readonly angles: "gast-and-true-obliquity";
172
- readonly speed: "degrees-per-day;central-difference-plus-minus-0.001-day;nodes-plus-minus-0.25-day";
173
- readonly aspects: "major-aspects;sun-moon-eight-planets;no-nodes;applying-instantaneous-orb-rate";
174
- readonly calendar: "proleptic-gregorian";
175
- readonly zodiac: "tropical";
176
- readonly moonNodes: "instantaneous-geocentric-moon-orbit-plane";
177
- readonly longitudeUnit: "degrees-[0,360)";
178
- }>;
179
- type ConventionSet = typeof CONVENTIONS | typeof CONVENTIONS_RC15 | typeof CONVENTIONS_RC8 | typeof CONVENTIONS_RC7 | typeof CONVENTIONS_RC3;
180
- /** Every conventions set a receipt may carry, the current one first. */
181
- declare const NATAL_RECEIPT_CONVENTION_SETS: readonly [
182
- typeof CONVENTIONS,
183
- typeof CONVENTIONS_RC15,
184
- typeof CONVENTIONS_RC8,
185
- typeof CONVENTIONS_RC7,
186
- typeof CONVENTIONS_RC3
187
- ];
188
- declare const COVERAGE: Readonly<{
189
- readonly assessment: "finite-reference-cases-only";
190
- readonly broadDateRange: "not-certified";
191
- readonly angleExclusions: "exact-geographic-poles-and-ecliptic-horizon-coincidence";
192
- readonly inputSyntax: "not-an-astronomical-accuracy-guarantee";
193
- }>;
194
- interface NatalReceipt {
195
- schema: typeof NATAL_RECEIPT_SCHEMA;
196
- /** On the scale `timeScale` names; UTC before the time-basis set. */
197
- instant: string;
198
- timeScale?: TimeScaleName;
199
- sourceInstant: string | null;
200
- /** Caller declaration, not verification of a human birth time's precision. */
201
- timeKnown: boolean;
202
- reference: NatalReference;
203
- localResolution: NatalLocalResolution | null;
204
- coordinates: {
205
- latitude: number;
206
- longitude: number;
207
- } | null;
208
- houses: {
209
- requested: HouseSystem;
210
- actual: HouseSystem | null;
211
- absenceReason: "unknown-time" | "missing-location" | null;
212
- };
213
- /** Only time-resolution assertions may be supplied to this draft's creator. */
214
- inputFlags: ChartFlag[];
215
- resultFlags: ChartFlag[];
216
- /** From the current conventions set on, the engine also names its ephemeris. */
217
- engine: {
218
- name: "@zodiacs/engine";
219
- version: string;
220
- ephemeris?: {
221
- name: "astronomy-engine";
222
- version: string;
223
- };
224
- };
225
- provenance: (NatalProvenanceClaims & {
226
- status: "claimed";
227
- }) | null;
228
- conventions: ConventionSet;
229
- coverage: typeof COVERAGE;
230
- }
231
- interface NatalEnvelope {
232
- schema: typeof NATAL_ENVELOPE_SCHEMA;
233
- /** This draft implements no optional required features; unknown ones fail closed. */
234
- requiredFeatures: string[];
235
- receipt: NatalReceipt;
236
- /** `deltaT` from the rc.8 set on, `timeScale` from the time-basis set on. */
237
- result: Pick<Chart, "bodies" | "angles" | "houses" | "aspects"> & Partial<Pick<Chart, "deltaT" | "timeScale">>;
238
- extensions?: NatalJsonObject;
239
- }
240
- type NatalEnvelopeParseResult = {
241
- ok: true;
242
- envelope: NatalEnvelope;
243
- } | {
244
- ok: false;
245
- code: NatalEnvelopeErrorCode;
246
- };
247
- interface NatalDiagnostic {
248
- schema: typeof NATAL_DIAGNOSTIC_SCHEMA;
249
- status: "redacted-not-anonymous";
250
- timeKnown: boolean;
251
- houses: NatalReceipt["houses"];
252
- inputFlags: ChartFlag[];
253
- resultFlags: ChartFlag[];
254
- }
255
- /**
256
- * Capture a fresh full Chart, not a legacy summary. Checks declared consistency,
257
- * not ephemeris accuracy, historical timezone truth, origin, or authenticity.
258
- * Optional properties must be omitted rather than set to undefined.
259
- */
260
- declare function createNatalEnvelope(chart: Chart, context?: NatalEnvelopeContext): NatalEnvelope;
261
- /** Bounded JSON entry point. Unknown versions/features never become calculation input. */
262
- declare function parseNatalEnvelope(json: string): NatalEnvelopeParseResult;
263
- declare function serializeNatalEnvelope(envelope: NatalEnvelope): string;
264
- /** Replay the recorded request/instant, never a fallback house system or today's tzdb. */
265
- declare function natalReplayInput(envelope: NatalEnvelope): BirthInput;
266
- /** A fresh fixed allowlist: no claimed identifiers, versions, hashes, or input/result values. */
267
- declare function redactNatalEnvelope(envelope: NatalEnvelope): NatalDiagnostic;
268
-
269
- export { NATAL_DIAGNOSTIC_SCHEMA, NATAL_ENVELOPE_LIMITS, NATAL_ENVELOPE_SCHEMA, NATAL_RECEIPT_CONVENTION_SETS, NATAL_RECEIPT_SCHEMA, type NatalDiagnostic, type NatalEnvelope, type NatalEnvelopeContext, NatalEnvelopeError, type NatalEnvelopeErrorCode, type NatalEnvelopeParseResult, type NatalJsonObject, type NatalJsonValue, type NatalLocalResolution, type NatalProvenanceClaims, type NatalReceipt, type NatalReference, type NatalZoneTransition, createNatalEnvelope, natalReplayInput, parseNatalEnvelope, redactNatalEnvelope, serializeNatalEnvelope };
3
+ export { a as NATAL_DIAGNOSTIC_SCHEMA, b as NATAL_ENVELOPE_LIMITS, c as NATAL_ENVELOPE_SCHEMA, d as NATAL_RECEIPT_CONVENTION_SETS, e as NATAL_RECEIPT_SCHEMA, f as NatalAnglesRecord, g as NatalAspectRecord, h as NatalBodyRecord, i as NatalConventionSet, j as NatalCoverage, k as NatalDeltaTRecord, l as NatalDiagnostic, m as NatalEnvelope, n as NatalEnvelopeContext, o as NatalEnvelopeError, p as NatalEnvelopeErrorCode, q as NatalEnvelopeParseResult, r as NatalHousesRecord, s as NatalJsonObject, t as NatalJsonValue, N as NatalLocalResolution, u as NatalProvenanceClaims, v as NatalReceipt, w as NatalRecordedResult, x as NatalReference, y as NatalTimeScaleRecord, z as NatalZoneTransition, A as createNatalEnvelope, B as natalReplayInput, C as parseNatalEnvelope, D as redactNatalEnvelope, E as serializeNatalEnvelope } from './zone-history-ghdyO0Sc.js';