@nasa-gcn/schema 6.1.1 → 7.3.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 (107) hide show
  1. package/.github/dependabot.yml +4 -0
  2. package/.github/workflows/publish.yml +28 -0
  3. package/.github/workflows/review.yml +1 -1
  4. package/.github/workflows/validate.yml +2 -2
  5. package/README.md +0 -1
  6. package/eslint.config.js +10 -0
  7. package/gcn/circulars.example.json +2 -1
  8. package/gcn/circulars.schema.json +6 -1
  9. package/gcn/notices/boom/alert.example.json +95 -0
  10. package/gcn/notices/boom/alert.schema.json +89 -0
  11. package/gcn/notices/burstcube/alert.example.json +1 -1
  12. package/gcn/notices/burstcube/alert.schema.json +1 -1
  13. package/gcn/notices/burstcube/test.example.json +1 -1
  14. package/gcn/notices/burstcube/test.schema.json +1 -1
  15. package/gcn/notices/chime/frb.detection.example.json +1 -1
  16. package/gcn/notices/chime/frb.retraction.example.json +4 -4
  17. package/gcn/notices/chime/frb.schema.json +1 -1
  18. package/gcn/notices/chime/frb.subsequent.example.json +1 -1
  19. package/gcn/notices/chime/frb.update.example.json +1 -1
  20. package/gcn/notices/core/AdditionalInfo.schema.json +1 -1
  21. package/gcn/notices/core/Alert.schema.json +1 -1
  22. package/gcn/notices/core/DateTime.schema.json +1 -1
  23. package/gcn/notices/core/DetectorStatus.schema.json +1 -1
  24. package/gcn/notices/core/DispersionMeasure.schema.json +1 -1
  25. package/gcn/notices/core/Distance.schema.json +1 -1
  26. package/gcn/notices/core/Duration.schema.json +1 -1
  27. package/gcn/notices/core/Event.schema.json +1 -1
  28. package/gcn/notices/core/FollowUp.schema.json +1 -1
  29. package/gcn/notices/core/GeoLocBase.schema.json +1 -1
  30. package/gcn/notices/core/HardnessRatio.schema.json +1 -1
  31. package/gcn/notices/core/Localization.example.json +1 -1
  32. package/gcn/notices/core/Localization.schema.json +1 -1
  33. package/gcn/notices/core/Photometry.schema.json +35 -0
  34. package/gcn/notices/core/Pointing.example.json +1 -1
  35. package/gcn/notices/core/Pointing.schema.json +1 -1
  36. package/gcn/notices/core/Redshift.schema.json +1 -1
  37. package/gcn/notices/core/Reporter.example.json +1 -1
  38. package/gcn/notices/core/Reporter.schema.json +5 -6
  39. package/gcn/notices/core/Spectral.example.json +27 -0
  40. package/gcn/notices/core/Spectral.schema.json +128 -0
  41. package/gcn/notices/core/Statistics.example.json +1 -1
  42. package/gcn/notices/core/Statistics.schema.json +2 -2
  43. package/gcn/notices/core/{spectral/models → models}/Band.schema.json +6 -2
  44. package/gcn/notices/core/{spectral/models/CutOffPowerLaw.schema.json → models/CutoffPowerLaw.schema.json} +9 -4
  45. package/gcn/notices/core/{spectral/models → models}/PowerLaw.schema.json +6 -2
  46. package/gcn/notices/dsa110/frb.detection.example.json +1 -1
  47. package/gcn/notices/dsa110/frb.retraction.example.json +1 -1
  48. package/gcn/notices/dsa110/frb.schema.json +1 -1
  49. package/gcn/notices/dsa110/frb.subsequent.example.json +1 -1
  50. package/gcn/notices/dsa110/frb.update.example.json +1 -1
  51. package/gcn/notices/einstein_probe/wxt/alert.example.json +1 -1
  52. package/gcn/notices/einstein_probe/wxt/alert.schema.json +1 -1
  53. package/gcn/notices/fermi/gbm/trigger.alert.example.json +1 -1
  54. package/gcn/notices/fermi/gbm/trigger.final.example.json +1 -1
  55. package/gcn/notices/fermi/gbm/trigger.flight1.example.json +3 -2
  56. package/gcn/notices/fermi/gbm/trigger.flight2.example.json +3 -2
  57. package/gcn/notices/fermi/gbm/trigger.flight3.example.json +3 -2
  58. package/gcn/notices/fermi/gbm/trigger.ground1.example.json +1 -1
  59. package/gcn/notices/fermi/gbm/trigger.ground2.example.json +1 -1
  60. package/gcn/notices/fermi/gbm/trigger.schema.json +2 -2
  61. package/gcn/notices/fermi/lat/flare.example.json +19 -0
  62. package/gcn/notices/fermi/lat/flare.schema.json +32 -0
  63. package/gcn/notices/glowbug/Alert.example.json +1 -1
  64. package/gcn/notices/glowbug/Alert.schema.json +1 -1
  65. package/gcn/notices/heasarc/archive_alert.example.json +1 -1
  66. package/gcn/notices/heasarc/archive_alert.schema.json +1 -1
  67. package/gcn/notices/icecube/lvk_nu_search.cascade.example.json +38 -0
  68. package/gcn/notices/icecube/{lvk_nu_track_search.schema.json → lvk_nu_search.schema.json} +9 -4
  69. package/gcn/notices/icecube/{lvk_nu_track_search.example.json → lvk_nu_search.track.example.json} +7 -3
  70. package/gcn/notices/icecube/single_neutrino_alerts.gold_bronze_track_alerts.example.json +1 -1
  71. package/gcn/notices/icecube/single_neutrino_alerts.schema.json +1 -1
  72. package/gcn/notices/ivoa/ObsCore.schema.json +127 -0
  73. package/gcn/notices/km3net/alert.example.json +1 -1
  74. package/gcn/notices/km3net/alert.multiplet.example.json +1 -1
  75. package/gcn/notices/km3net/alert.schema.json +1 -1
  76. package/gcn/notices/maxi/gsc.known.example.json +25 -0
  77. package/gcn/notices/maxi/gsc.known.retraction.example.json +12 -0
  78. package/gcn/notices/maxi/gsc.known.schema.json +62 -0
  79. package/gcn/notices/maxi/gsc.unknown.circle.example.json +25 -0
  80. package/gcn/notices/maxi/gsc.unknown.ellipse.example.json +25 -0
  81. package/gcn/notices/maxi/gsc.unknown.noerror.example.json +22 -0
  82. package/gcn/notices/maxi/gsc.unknown.rectangle.example.json +30 -0
  83. package/gcn/notices/maxi/gsc.unknown.retraction.example.json +12 -0
  84. package/gcn/notices/maxi/gsc.unknown.schema.json +53 -0
  85. package/gcn/notices/neutrino/Alert.schema.json +1 -1
  86. package/gcn/notices/snews2/coincidence.real_alert_no_triangulation.example.json +21 -0
  87. package/gcn/notices/snews2/coincidence.real_alert_triangulation.example.json +31 -0
  88. package/gcn/notices/snews2/coincidence.schema.json +64 -0
  89. package/gcn/notices/snews2/coincidence.test_alert.example.json +30 -0
  90. package/gcn/notices/superk/sn_alert.real.example.json +1 -1
  91. package/gcn/notices/superk/sn_alert.schema.json +1 -1
  92. package/gcn/notices/superk/sn_alert.test.example.json +1 -1
  93. package/gcn/notices/svom/{eclairs/trigger.catalog.example.json → trigger.eclairs_catalog.example.json} +1 -1
  94. package/gcn/notices/svom/{eclairs/trigger.not-slewing.example.json → trigger.eclairs_not-slewing.example.json} +1 -1
  95. package/gcn/notices/svom/{eclairs/trigger.slewing.example.json → trigger.eclairs_slewing.example.json} +1 -1
  96. package/gcn/notices/svom/{eclairs/trigger.wakeup.example.json → trigger.eclairs_wakeup.example.json} +1 -1
  97. package/gcn/notices/svom/{grm/trigger.example.json → trigger.grm.example.json} +1 -1
  98. package/gcn/notices/svom/trigger.schema.json +1 -1
  99. package/gcn/notices/swift/bat/Guano.Retraction.example.json +1 -1
  100. package/gcn/notices/swift/bat/Guano.example.json +1 -1
  101. package/gcn/notices/swift/bat/Guano.schema.json +1 -1
  102. package/gcn/notices/swift/bat/guano.loc_arc_min.example.json +1 -1
  103. package/gcn/notices/swift/bat/guano.loc_map.example.json +1 -1
  104. package/package.json +8 -7
  105. package/update-tags.mjs +1 -1
  106. package/.github/workflows/release.yml +0 -27
  107. package/gcn/notices/core/spectral/GammaRay.schema.json +0 -92
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://gcn.nasa.gov/schema/v6.1.1/gcn/notices/svom/trigger.schema.json",
2
+ "$schema": "https://gcn.nasa.gov/schema/v7.3.0/gcn/notices/svom/trigger.schema.json",
3
3
  "instrument": "GRM",
4
4
  "alert_datetime": "2024-02-22T08:51:55",
5
5
  "alert_tense": "test",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://gcn.nasa.gov/schema/v6.1.1/gcn/notices/svom/trigger.schema.json",
2
+ "$id": "https://gcn.nasa.gov/schema/v7.3.0/gcn/notices/svom/trigger.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "type": "object",
5
5
  "unevaluatedProperties": false,
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://gcn.nasa.gov/schema/v6.1.1/gcn/notices/swift/bat/Guano.schema.json",
2
+ "$schema": "https://gcn.nasa.gov/schema/v7.3.0/gcn/notices/swift/bat/Guano.schema.json",
3
3
  "mission": "Swift",
4
4
  "instrument": "BAT-GUANO",
5
5
  "messenger": "EM",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://gcn.nasa.gov/schema/v6.1.1/gcn/notices/swift/bat/Guano.schema.json",
2
+ "$schema": "https://gcn.nasa.gov/schema/v7.3.0/gcn/notices/swift/bat/Guano.schema.json",
3
3
  "mission": "Swift",
4
4
  "instrument": "BAT-GUANO",
5
5
  "messenger": "EM",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://gcn.nasa.gov/schema/v6.1.1/gcn/notices/swift/bat/Guano.schema.json",
2
+ "$id": "https://gcn.nasa.gov/schema/v7.3.0/gcn/notices/swift/bat/Guano.schema.json",
3
3
  "$schema": "https://json-schema.org/draft/2020-12/schema",
4
4
  "title": "Swift/BAT-GUANO Alert",
5
5
  "description": "Candidate gamma-ray transient reported from the BAT-GUANO targeted search",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://gcn.nasa.gov/schema/v6.1.1/gcn/notices/swift/bat/Guano.schema.json",
2
+ "$schema": "https://gcn.nasa.gov/schema/v7.3.0/gcn/notices/swift/bat/Guano.schema.json",
3
3
  "mission": "Swift",
4
4
  "instrument": "BAT-GUANO",
5
5
  "messenger": "EM",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://gcn.nasa.gov/schema/v6.1.1/gcn/notices/swift/bat/Guano.schema.json",
2
+ "$schema": "https://gcn.nasa.gov/schema/v7.3.0/gcn/notices/swift/bat/Guano.schema.json",
3
3
  "mission": "Swift",
4
4
  "instrument": "BAT-GUANO",
5
5
  "messenger": "EM",
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@nasa-gcn/schema",
3
3
  "description": "Unified JSON Schema for multi-messenger and high-energy astronomy alerts",
4
- "version": "6.1.1",
4
+ "version": "7.3.0",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "github:nasa-gcn/gcn-schema"
7
+ "url": "git+https://github.com/nasa-gcn/gcn-schema.git"
8
8
  },
9
+ "type": "module",
9
10
  "scripts": {
10
11
  "prepare": "husky",
11
12
  "test": "node validate.mjs",
@@ -16,16 +17,16 @@
16
17
  "node": ">=18"
17
18
  },
18
19
  "devDependencies": {
19
- "@nasa-gcn/eslint-config-gitignore": "^0.0.2",
20
+ "@nasa-gcn/eslint-config-gitignore": "^1.0.0",
20
21
  "ajv": "^8.17.1",
21
22
  "ajv-formats": "^3.0.1",
22
- "eslint": "^8.34.0",
23
+ "eslint": "^10.2.1",
23
24
  "eslint-config-prettier": "^10.1.2",
24
25
  "execa": "^9.3.0",
25
- "glob": "^11.0.2",
26
+ "glob": "^13.0.6",
26
27
  "husky": "^9.1.1",
27
- "lint-staged": "^16.0.0",
28
- "prettier": "3.5.2"
28
+ "lint-staged": "^17.0.4",
29
+ "prettier": "3.8.3"
29
30
  },
30
31
  "prettier": {
31
32
  "semi": false,
package/update-tags.mjs CHANGED
@@ -20,7 +20,7 @@ async function glob(path) {
20
20
  async function fileUpdates(fileSet, key, oldValue, newValue) {
21
21
  await Promise.all(
22
22
  fileSet.map(async (fileItem) => {
23
- let file = JSON.parse(
23
+ const file = JSON.parse(
24
24
  await readFile(fileItem, {
25
25
  encoding: 'utf-8',
26
26
  }),
@@ -1,27 +0,0 @@
1
- name: Main
2
-
3
- on:
4
- push:
5
- tags:
6
- - '*'
7
-
8
- jobs:
9
- github:
10
- runs-on: ubuntu-latest
11
- steps:
12
- - name: Checkout
13
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
14
- - name: Release
15
- uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
16
- npm:
17
- runs-on: ubuntu-latest
18
- steps:
19
- - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
20
- - uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
21
- with:
22
- node-version: 20
23
- registry-url: 'https://registry.npmjs.org'
24
- - run: npm ci
25
- - run: npm publish --access public
26
- env:
27
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,92 +0,0 @@
1
- {
2
- "$id": "https://gcn.nasa.gov/schema/v6.1.1/gcn/notices/core/spectral/GammaRay.schema.json",
3
- "$schema": "https://json-schema.org/draft/2020-12/schema",
4
- "type": "object",
5
- "title": "spectral.GammaRay",
6
- "description": "Spectral properties from gamma-ray data",
7
- "properties": {
8
- "best_fit_model": {
9
- "enum": ["POWERLAW", "CUTOFFPOWERLAW", "BAND"],
10
- "description": "Name of model corresponding to best statistical fit of spectrum"
11
- },
12
- "power_law": {
13
- "$ref": "./models/PowerLaw.schema.json",
14
- "description": "Fit parameters for PowerLaw model"
15
- },
16
- "cutoff_power_law": {
17
- "$ref": "./models/CutOffPowerLaw.schema.json",
18
- "description": "Fit parameters for Cutoff PowerLaw model"
19
- },
20
- "band": {
21
- "$ref": "./models/Band.schema.json",
22
- "description": "Fit parameters for Band model"
23
- },
24
- "spectral_energy_range": {
25
- "type": "array",
26
- "items": { "type": "number" },
27
- "minItems": 2,
28
- "maxItems": 2,
29
- "description": "Low and High energy bounds used in spectral fit, if not parsed in Reporter.schema.json, default unit is keV"
30
- },
31
- "hardness_ratio": {
32
- "type": "number",
33
- "description": "ratio of flux between high and low energy bands"
34
- },
35
- "hardness_ratio_energy_range": {
36
- "type": "array",
37
- "items": { "type": "number" },
38
- "minItems": 2,
39
- "maxItems": 2,
40
- "description": "Low and High energy bounds used for hardness ratio, if not parsed in Reporter.schema.json, default unit is keV"
41
- },
42
- "photon_flux": {
43
- "type": "number",
44
- "description": "Photon Flux [ph/cm2/s]"
45
- },
46
- "photon_flux_error": {
47
- "type": "number",
48
- "description": "1-sigma uncertainty in Photon Flux [ph/cm2/s]"
49
- },
50
- "energy_flux": {
51
- "type": "number",
52
- "description": "Energy Flux [erg/cm2/s]"
53
- },
54
- "energy_flux_error": {
55
- "type": "number",
56
- "description": "1-sigma uncertainty in Energy Flux [erg/cm2/s]"
57
- },
58
- "flux_energy_range": {
59
- "type": "array",
60
- "items": { "type": "number" },
61
- "minItems": 2,
62
- "maxItems": 2,
63
- "description": "Low and High energy bounds used in flux calculation, if not parsed in Reporter.schema.json, default unit is keV"
64
- },
65
- "flux_time_range": {
66
- "type": "array",
67
- "items": { "type": "number" },
68
- "minItems": 2,
69
- "maxItems": 2,
70
- "description": "Start and stop time stamps in array as used in flux calculation, measured since trigger [s]"
71
- },
72
- "fluence": { "type": "number", "description": "Fluence [erg/cm2]" },
73
- "fluence_error": {
74
- "type": "number",
75
- "description": "Fluence Error [erg/cm2]"
76
- },
77
- "fluence_energy_range": {
78
- "type": "array",
79
- "items": { "type": "number" },
80
- "minItems": 2,
81
- "maxItems": 2,
82
- "description": "Low and High energy bounds used in fluence calculation, if not parsed in Reporter.schema.json, default unit is keV"
83
- },
84
- "fluence_time_range": {
85
- "type": "array",
86
- "items": { "type": "number" },
87
- "minItems": 2,
88
- "maxItems": 2,
89
- "description": "Start and stop time stamps in array as used in fluence calculation, measured since trigger [s]"
90
- }
91
- }
92
- }