waha-shared 1.0.206 → 1.0.208

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 (129) hide show
  1. package/dist/data/areas/areas.schema.json +19 -53
  2. package/dist/data/areas/areas.zod.d.ts +15 -12
  3. package/dist/data/aslTimestamps/aslTimestamps.schema.json +18 -11
  4. package/dist/data/aslTimestamps/aslTimestamps.zod.d.ts +4 -34
  5. package/dist/data/bibleAudios/bibleAudios.json +9 -0
  6. package/dist/data/bibleAudios/bibleAudios.schema.json +14 -11
  7. package/dist/data/bibleAudios/bibleAudios.zod.d.ts +11 -15
  8. package/dist/data/bibleAudios/bibleAudios.zod.js +5 -4
  9. package/dist/data/bibleAudios/index.d.ts +5 -2
  10. package/dist/data/bibleBooks/bibleBooks.schema.json +71 -50
  11. package/dist/data/bibleBooks/bibleBooks.zod.d.ts +5 -51
  12. package/dist/data/bibleBooks/index.d.ts +2 -2
  13. package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +5 -2
  14. package/dist/data/bibleChaptersList/bibleChaptersList.zod.d.ts +1 -1
  15. package/dist/data/bibleStatuses/bibleStatuses.json +434 -93
  16. package/dist/data/bibleStatuses/bibleStatuses.schema.json +46 -40
  17. package/dist/data/bibleStatuses/bibleStatuses.zod.d.ts +5 -25
  18. package/dist/data/bibleStatuses/bibleStatuses.zod.js +2 -27
  19. package/dist/data/bibleTexts/bibleTexts.json +13 -2
  20. package/dist/data/bibleTexts/bibleTexts.schema.json +40 -24
  21. package/dist/data/bibleTexts/bibleTexts.zod.d.ts +11 -39
  22. package/dist/data/bibleTexts/index.d.ts +3 -3
  23. package/dist/data/clones/clones.schema.json +27 -26
  24. package/dist/data/clones/clones.zod.d.ts +2 -24
  25. package/dist/data/clones/clones.zod.js +1 -1
  26. package/dist/data/clones/index.d.ts +3 -3
  27. package/dist/data/countries/countries.schema.json +91 -90
  28. package/dist/data/countries/countries.zod.d.ts +19 -88
  29. package/dist/data/countries/countries.zod.js +49 -138
  30. package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +19 -8
  31. package/dist/data/countriesAndLanguages/countriesAndLanguages.zod.d.ts +2 -28
  32. package/dist/data/countriesAndLanguages/index.d.ts +2 -2
  33. package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +13 -4
  34. package/dist/data/crowdinLanguages/crowdinLanguages.zod.d.ts +1 -13
  35. package/dist/data/crowdinLanguages/index.d.ts +1 -1
  36. package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +16 -8
  37. package/dist/data/curriculumFoundations/curriculumFoundations.zod.d.ts +2 -10
  38. package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +24 -13
  39. package/dist/data/curriculumQuestions/curriculumQuestions.zod.d.ts +3 -23
  40. package/dist/data/curriculumTopics/curriculumTopics.schema.json +16 -8
  41. package/dist/data/curriculumTopics/curriculumTopics.zod.d.ts +2 -10
  42. package/dist/data/dblAudioLicenses/dblAudioLicenses.json +69 -11
  43. package/dist/data/dblTextLicenses/dblTextLicenses.json +79 -58
  44. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +5 -2
  45. package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.zod.d.ts +1 -1
  46. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +8 -2
  47. package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.zod.js +1 -1
  48. package/dist/data/languageAssets/languageAssets.json +74430 -10
  49. package/dist/data/languageAssets/languageAssets.schema.json +15 -12
  50. package/dist/data/languageAssets/languageAssets.zod.d.ts +1 -1
  51. package/dist/data/languageAssets/languageAssets.zod.js +3 -43
  52. package/dist/data/languages/index.d.ts +8 -4
  53. package/dist/data/languages/languages.json +4 -3
  54. package/dist/data/languages/languages.schema.json +136 -89
  55. package/dist/data/languages/languages.zod.d.ts +194 -116
  56. package/dist/data/languages/languages.zod.js +7 -1
  57. package/dist/data/mediaDurations/mediaDurations.json +32 -0
  58. package/dist/data/mediaDurations/mediaDurations.schema.json +21 -14
  59. package/dist/data/mediaDurations/mediaDurations.zod.d.ts +1 -1
  60. package/dist/data/mediaDurations/mediaDurations.zod.js +3 -41
  61. package/dist/data/notification/notification.schema.json +67 -57
  62. package/dist/data/notification/notification.zod.d.ts +15 -39
  63. package/dist/data/notification/notification.zod.js +4 -134
  64. package/dist/data/numeralMaps/numeralMaps.schema.json +62 -62
  65. package/dist/data/numeralMaps/numeralMaps.zod.d.ts +2 -46
  66. package/dist/data/numeralMaps/numeralMaps.zod.js +14 -64
  67. package/dist/data/phoneLanguages/index.d.ts +1 -1
  68. package/dist/data/phoneLanguages/phoneLanguages.schema.json +18 -8
  69. package/dist/data/phoneLanguages/phoneLanguages.zod.d.ts +2 -22
  70. package/dist/data/questions/index.d.ts +1 -1
  71. package/dist/data/questions/questions.schema.json +11 -11
  72. package/dist/data/questions/questions.zod.d.ts +6 -14
  73. package/dist/data/releaseNotes/index.d.ts +1 -1
  74. package/dist/data/releaseNotes/releaseNotes.schema.json +23 -11
  75. package/dist/data/releaseNotes/releaseNotes.zod.d.ts +1 -9
  76. package/dist/data/releaseNotes/releaseNotes.zod.js +1 -1
  77. package/dist/data/screenshots/screenshots.schema.json +12 -6
  78. package/dist/data/screenshots/screenshots.zod.d.ts +1 -5
  79. package/dist/data/scripts/scripts.schema.json +11 -4
  80. package/dist/data/scripts/scripts.zod.d.ts +1 -7
  81. package/dist/data/sets/index.d.ts +2 -2
  82. package/dist/data/sets/sets.schema.json +25 -22
  83. package/dist/data/sets/sets.zod.d.ts +61 -39
  84. package/dist/data/specialIds/specialIds.schema.json +5 -1
  85. package/dist/data/specialIds/specialIds.zod.d.ts +11 -41
  86. package/dist/data/translationsApp/index.d.ts +9 -9
  87. package/dist/data/translationsApp/translationsApp.schema.json +667 -668
  88. package/dist/data/translationsApp/translationsApp.zod.d.ts +1 -631
  89. package/dist/data/translationsApp/translationsApp.zod.js +2 -2
  90. package/dist/data/translationsFtb/translationsFtb.json +0 -884
  91. package/dist/data/translationsFtb/translationsFtb.schema.json +147 -149
  92. package/dist/data/translationsFtb/translationsFtb.zod.d.ts +1 -135
  93. package/dist/data/translationsFtb/translationsFtb.zod.js +1 -1
  94. package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +15 -18
  95. package/dist/data/translationsIntroduction/translationsIntroduction.zod.d.ts +2 -160
  96. package/dist/data/translationsIntroduction/translationsIntroduction.zod.js +1 -1
  97. package/dist/data/translationsQuestion/translationsQuestion.json +0 -480
  98. package/dist/data/translationsQuestion/translationsQuestion.schema.json +9 -14
  99. package/dist/data/translationsQuestion/translationsQuestion.zod.js +1 -1
  100. package/dist/data/translationsSet/translationsSet.json +11234 -20793
  101. package/dist/data/translationsSet/translationsSet.schema.json +52 -56
  102. package/dist/data/translationsSet/translationsSet.zod.d.ts +1 -19
  103. package/dist/data/translationsSet/translationsSet.zod.js +4 -4
  104. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +98 -100
  105. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.d.ts +1 -87
  106. package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.zod.js +1 -1
  107. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.json +0 -480
  108. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +18 -23
  109. package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.zod.js +1 -1
  110. package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +9 -2
  111. package/dist/data/youtubePlaylists/youtubePlaylists.zod.js +1 -1
  112. package/dist/data/youtubeVideos/youtubeVideos.schema.json +9 -2
  113. package/dist/data/youtubeVideos/youtubeVideos.zod.js +1 -1
  114. package/dist/types/analytics.d.ts +14 -1
  115. package/dist/types/articles.d.ts +150 -0
  116. package/dist/types/articles.js +53 -0
  117. package/dist/types/bibleChapters.d.ts +13 -91
  118. package/dist/types/bibleChapters.js +1 -1
  119. package/dist/types/feedback.d.ts +3 -41
  120. package/dist/types/feedback.js +1 -1
  121. package/dist/types/microLessons.d.ts +173 -0
  122. package/dist/types/microLessons.js +62 -0
  123. package/dist/types/notifications.d.ts +19 -119
  124. package/dist/types/scripturePassages.d.ts +4 -34
  125. package/dist/types/users.d.ts +221 -776
  126. package/dist/types/users.js +2 -1
  127. package/dist/types/webContent.d.ts +19 -0
  128. package/dist/types/webContent.js +36 -0
  129. package/package.json +1 -1
@@ -6,42 +6,19 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
- "title": "Geographic Areas Schema",
10
- "$id": "https://waha-app.com/schemas/areas.json",
11
- "description": "Schema for geographic areas with coordinates and metadata",
12
- "examples": [
13
- [
14
- {
15
- "name": "North America",
16
- "id": "north-america",
17
- "lat": 35,
18
- "lng": -70
19
- },
20
- {
21
- "name": "Western Europe",
22
- "id": "western-europe",
23
- "lat": 48.8566,
24
- "lng": 2.3522
25
- }
26
- ]
27
- ],
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
10
+ "minItems": 1,
11
+ "type": "array",
28
12
  "items": {
29
- "title": "Area",
30
- "additionalProperties": false,
31
- "description": "A geographic area with identification, coordinates, and display information",
13
+ "type": "object",
32
14
  "properties": {
33
15
  "name": {
34
- "description": "Human-readable display name for the area",
35
- "examples": [
36
- "North America",
37
- "Latin America and the Caribbean",
38
- "Western Europe"
39
- ],
16
+ "type": "string",
40
17
  "minLength": 1,
41
- "type": "string"
18
+ "description": "Human-readable display name for the area"
42
19
  },
43
20
  "id": {
44
- "description": "The geographical area identifier",
21
+ "type": "string",
45
22
  "enum": [
46
23
  "north-america",
47
24
  "latin-america-caribbean",
@@ -56,42 +33,31 @@
56
33
  "southeast-asia",
57
34
  "oceania"
58
35
  ],
59
- "type": "string"
36
+ "description": "The geographical area identifier"
60
37
  },
61
38
  "lat": {
62
- "description": "Latitude coordinate for the area center point",
63
- "examples": [
64
- 35,
65
- -14.235,
66
- 48.8566
67
- ],
68
- "maximum": 90,
39
+ "type": "number",
69
40
  "minimum": -90,
70
- "type": "number"
41
+ "maximum": 90,
42
+ "description": "Latitude coordinate for the area center point"
71
43
  },
72
44
  "lng": {
73
- "description": "Longitude coordinate for the area center point",
74
- "examples": [
75
- -70,
76
- -51.9253,
77
- 2.3522
78
- ],
79
- "maximum": 180,
45
+ "type": "number",
80
46
  "minimum": -180,
81
- "type": "number"
47
+ "maximum": 180,
48
+ "description": "Longitude coordinate for the area center point"
82
49
  }
83
50
  },
84
51
  "required": [
52
+ "name",
85
53
  "id",
86
54
  "lat",
87
- "lng",
88
- "name"
55
+ "lng"
89
56
  ],
90
- "type": "object"
57
+ "additionalProperties": false,
58
+ "description": "A geographic area with identification, coordinates, and display information"
91
59
  },
92
- "minItems": 1,
93
- "type": "array",
94
- "uniqueItems": true
60
+ "description": "Schema for geographic areas with coordinates and metadata"
95
61
  }
96
62
  },
97
63
  "required": [
@@ -1,18 +1,21 @@
1
1
  import { z } from 'zod';
2
2
  export declare const Areas: z.ZodArray<z.ZodObject<{
3
3
  name: z.ZodString;
4
- id: z.ZodEnum<["north-america", "latin-america-caribbean", "sub-saharan-africa", "middle-east-north-africa", "western-asia", "western-europe", "eastern-europe", "southern-asia", "central-asia", "eastern-asia", "southeast-asia", "oceania"]>;
4
+ id: z.ZodEnum<{
5
+ "north-america": "north-america";
6
+ "latin-america-caribbean": "latin-america-caribbean";
7
+ "sub-saharan-africa": "sub-saharan-africa";
8
+ "middle-east-north-africa": "middle-east-north-africa";
9
+ "western-asia": "western-asia";
10
+ "western-europe": "western-europe";
11
+ "eastern-europe": "eastern-europe";
12
+ "southern-asia": "southern-asia";
13
+ "central-asia": "central-asia";
14
+ "eastern-asia": "eastern-asia";
15
+ "southeast-asia": "southeast-asia";
16
+ oceania: "oceania";
17
+ }>;
5
18
  lat: z.ZodNumber;
6
19
  lng: z.ZodNumber;
7
- }, "strict", z.ZodTypeAny, {
8
- name: string;
9
- id: "north-america" | "latin-america-caribbean" | "sub-saharan-africa" | "middle-east-north-africa" | "western-asia" | "western-europe" | "eastern-europe" | "southern-asia" | "central-asia" | "eastern-asia" | "southeast-asia" | "oceania";
10
- lat: number;
11
- lng: number;
12
- }, {
13
- name: string;
14
- id: "north-america" | "latin-america-caribbean" | "sub-saharan-africa" | "middle-east-north-africa" | "western-asia" | "western-europe" | "eastern-europe" | "southern-asia" | "central-asia" | "eastern-asia" | "southeast-asia" | "oceania";
15
- lat: number;
16
- lng: number;
17
- }>, "many">;
20
+ }, z.core.$strict>>;
18
21
  export type Areas = z.infer<typeof Areas>;
@@ -6,38 +6,44 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
10
+ "type": "array",
9
11
  "items": {
10
- "additionalProperties": false,
12
+ "type": "object",
11
13
  "properties": {
12
14
  "bookId": {
13
15
  "type": "string",
14
16
  "description": "The book ID (e.g., GEN, EXO)"
15
17
  },
16
18
  "chapters": {
19
+ "minItems": 2,
20
+ "maxItems": 2,
17
21
  "type": "array",
18
22
  "items": {
19
- "type": "integer"
23
+ "type": "integer",
24
+ "minimum": -9007199254740991,
25
+ "maximum": 9007199254740991
20
26
  },
21
- "minItems": 2,
22
- "maxItems": 2,
23
27
  "description": "The start and end chapter numbers for this section"
24
28
  },
25
29
  "section": {
30
+ "minItems": 2,
31
+ "maxItems": 2,
26
32
  "type": "array",
27
33
  "items": {
28
34
  "type": "string"
29
35
  },
30
- "minItems": 2,
31
- "maxItems": 2,
32
36
  "description": "The start and end verse IDs for this section (e.g., GEN.1.1, GEN.2.4)"
33
37
  },
34
38
  "verses": {
35
39
  "type": "array",
36
40
  "items": {
37
- "additionalProperties": false,
41
+ "type": "object",
38
42
  "properties": {
39
43
  "chapter": {
40
44
  "type": "integer",
45
+ "minimum": -9007199254740991,
46
+ "maximum": 9007199254740991,
41
47
  "description": "The chapter number"
42
48
  },
43
49
  "timestamp": {
@@ -46,6 +52,8 @@
46
52
  },
47
53
  "verse": {
48
54
  "type": "integer",
55
+ "minimum": -9007199254740991,
56
+ "maximum": 9007199254740991,
49
57
  "description": "The verse number"
50
58
  },
51
59
  "verseId": {
@@ -59,7 +67,7 @@
59
67
  "verse",
60
68
  "verseId"
61
69
  ],
62
- "type": "object"
70
+ "additionalProperties": false
63
71
  },
64
72
  "description": "Array of verse timing information"
65
73
  }
@@ -70,9 +78,8 @@
70
78
  "section",
71
79
  "verses"
72
80
  ],
73
- "type": "object"
74
- },
75
- "type": "array"
81
+ "additionalProperties": false
82
+ }
76
83
  }
77
84
  },
78
85
  "required": [
@@ -1,43 +1,13 @@
1
1
  import { z } from 'zod';
2
2
  export declare const AslTimestamps: z.ZodArray<z.ZodObject<{
3
3
  bookId: z.ZodString;
4
- chapters: z.ZodArray<z.ZodNumber, "many">;
5
- section: z.ZodArray<z.ZodString, "many">;
4
+ chapters: z.ZodArray<z.ZodNumber>;
5
+ section: z.ZodArray<z.ZodString>;
6
6
  verses: z.ZodArray<z.ZodObject<{
7
7
  chapter: z.ZodNumber;
8
8
  timestamp: z.ZodNumber;
9
9
  verse: z.ZodNumber;
10
10
  verseId: z.ZodString;
11
- }, "strict", z.ZodTypeAny, {
12
- chapter: number;
13
- timestamp: number;
14
- verse: number;
15
- verseId: string;
16
- }, {
17
- chapter: number;
18
- timestamp: number;
19
- verse: number;
20
- verseId: string;
21
- }>, "many">;
22
- }, "strict", z.ZodTypeAny, {
23
- bookId: string;
24
- chapters: number[];
25
- section: string[];
26
- verses: {
27
- chapter: number;
28
- timestamp: number;
29
- verse: number;
30
- verseId: string;
31
- }[];
32
- }, {
33
- bookId: string;
34
- chapters: number[];
35
- section: string[];
36
- verses: {
37
- chapter: number;
38
- timestamp: number;
39
- verse: number;
40
- verseId: string;
41
- }[];
42
- }>, "many">;
11
+ }, z.core.$strict>>;
12
+ }, z.core.$strict>>;
43
13
  export type AslTimestamps = z.infer<typeof AslTimestamps>;
@@ -459,6 +459,15 @@
459
459
  },
460
460
  "canDownload": true,
461
461
  "copyright": "Biblica® মুক্তভাবে বাংলা সমকালীন সংস্করণের™, অডিও সংস্করণ সর্বস্বত্ব ℗ 2022 Biblica, Inc., Davar Partners International, Hosanna এবং সংরক্ষিত Biblica® Open Bengali Contemporary Version™, Audio Edition Copyright ℗ 2022 Biblica, Inc.; Davar Partners International; and Hosanna Biblica® মুক্তভাবে বাংলা সমকালীন সংস্করণের™সর্বস্বত্ব © 2007, 2017, 2019 Biblica, Inc. Biblica® Open Bengali Contemporary Version™ Copyright © 1997, 2005, 2017, 2020 Biblica, Inc. “Biblica” (বিবলিকা) মার্কিন যুক্তরাষ্ট্রের পেটেন্ট অ্যান্ড ট্রেডমার্ক অফিসে Biblica, Inc. দ্বারা নিবন্ধিত। অনুমতি সহ ব্যবহৃত। “Biblica” is a trademark registered in the United States Patent and Trademark Office by Biblica, Inc. Used with permission."
462
+ },
463
+ {
464
+ "bibleAudioId": "OTCV",
465
+ "audioSource": {
466
+ "source": "dbl",
467
+ "sourceId": "232eeaf9dc544361-01"
468
+ },
469
+ "canDownload": true,
470
+ "copyright": "Biblica® திறந்தநிலை தமிழ் சமகால பதிப்பு™, ஆடியோ பதிப்பு பதிப்புரிமை ℗ 2024 Biblica, Inc. மற்றும் Davar Partners International Biblica® Open Indian Tamil Contemporary Version™, Audio Edition Copyright ℗ 2024 Biblica, Inc. and Davar Partners International Biblica® திறந்தநிலை தமிழ் சமகால பதிப்பு™ பதிப்புரிமை © 2005, 2020, 2022 Biblica, Inc. Biblica® Open Indian Tamil Contemporary Version™ Copyright © 2005, 2020, 2022 Biblica, Inc."
462
471
  }
463
472
  ]
464
473
  }
@@ -6,17 +6,19 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
10
+ "type": "array",
9
11
  "items": {
10
- "additionalProperties": false,
12
+ "type": "object",
11
13
  "properties": {
12
14
  "bibleAudioId": {
13
15
  "type": "string"
14
16
  },
15
17
  "audioSource": {
16
- "additionalProperties": false,
17
- "description": "The best place to get audio bible chapters for this bible translation. Audio is hopefully available on the DBL via API.Bible when the license is granted. If not, it may be available on YouVersion. If not, the license holder may provide the audio. If not, the audio may be available to be scraped somewhere on the internet. For the last 2 options, use `custom`.",
18
+ "type": "object",
18
19
  "properties": {
19
20
  "source": {
21
+ "type": "string",
20
22
  "enum": [
21
23
  "dbl",
22
24
  "youVersion",
@@ -30,17 +32,19 @@
30
32
  },
31
33
  "required": [
32
34
  "source"
33
- ]
35
+ ],
36
+ "additionalProperties": false
34
37
  },
35
38
  "canDownload": {
36
- "description": "Whether or not the audio can be downloaded for offline use on the web. Most likely false, unless the translation is creative commons.",
37
- "type": "boolean"
39
+ "type": "boolean",
40
+ "description": "Whether or not the audio can be downloaded for offline use on the web. Most likely false, unless the translation is creative commons."
38
41
  },
39
42
  "copyright": {
40
- "description": "Any copyright attribution text required to be added to the app for this translation for legal purposes.",
41
- "type": "string"
43
+ "type": "string",
44
+ "description": "Any copyright attribution text required to be added to the app for this translation for legal purposes."
42
45
  },
43
46
  "disableStar": {
47
+ "type": "boolean",
44
48
  "description": "Star refers to adding a <star> string before the first line passed to mms forced alignment. Disabling it means that there is not any content read out before the start of verse 1. Most translations read out names of chapters or section headings, which is why adding <star> is the default behavior."
45
49
  }
46
50
  },
@@ -49,9 +53,8 @@
49
53
  "audioSource",
50
54
  "canDownload"
51
55
  ],
52
- "type": "object"
53
- },
54
- "type": "array"
56
+ "additionalProperties": false
57
+ }
55
58
  }
56
59
  },
57
60
  "required": [
@@ -1,21 +1,17 @@
1
1
  import { z } from 'zod';
2
2
  export declare const BibleAudios: z.ZodArray<z.ZodObject<{
3
3
  bibleAudioId: z.ZodString;
4
- audioSource: z.ZodAny;
4
+ audioSource: z.ZodObject<{
5
+ source: z.ZodEnum<{
6
+ custom: "custom";
7
+ dbl: "dbl";
8
+ youVersion: "youVersion";
9
+ bibleBrain: "bibleBrain";
10
+ }>;
11
+ sourceId: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
5
13
  canDownload: z.ZodBoolean;
6
14
  copyright: z.ZodOptional<z.ZodString>;
7
- disableStar: z.ZodOptional<z.ZodAny>;
8
- }, "strict", z.ZodTypeAny, {
9
- bibleAudioId: string;
10
- canDownload: boolean;
11
- audioSource?: any;
12
- copyright?: string | undefined;
13
- disableStar?: any;
14
- }, {
15
- bibleAudioId: string;
16
- canDownload: boolean;
17
- audioSource?: any;
18
- copyright?: string | undefined;
19
- disableStar?: any;
20
- }>, "many">;
15
+ disableStar: z.ZodOptional<z.ZodBoolean>;
16
+ }, z.core.$strict>>;
21
17
  export type BibleAudios = z.infer<typeof BibleAudios>;
@@ -5,9 +5,10 @@ const zod_1 = require("zod");
5
5
  exports.BibleAudios = zod_1.z.array(zod_1.z
6
6
  .object({
7
7
  bibleAudioId: zod_1.z.string(),
8
- audioSource: zod_1.z
9
- .any()
10
- .describe('The best place to get audio bible chapters for this bible translation. Audio is hopefully available on the DBL via API.Bible when the license is granted. If not, it may be available on YouVersion. If not, the license holder may provide the audio. If not, the audio may be available to be scraped somewhere on the internet. For the last 2 options, use `custom`.'),
8
+ audioSource: zod_1.z.object({
9
+ source: zod_1.z.enum(['dbl', 'youVersion', 'bibleBrain', 'custom']),
10
+ sourceId: zod_1.z.string().optional(),
11
+ }),
11
12
  canDownload: zod_1.z
12
13
  .boolean()
13
14
  .describe('Whether or not the audio can be downloaded for offline use on the web. Most likely false, unless the translation is creative commons.'),
@@ -16,7 +17,7 @@ exports.BibleAudios = zod_1.z.array(zod_1.z
16
17
  .describe('Any copyright attribution text required to be added to the app for this translation for legal purposes.')
17
18
  .optional(),
18
19
  disableStar: zod_1.z
19
- .any()
20
+ .boolean()
20
21
  .describe('Star refers to adding a <star> string before the first line passed to mms forced alignment. Disabling it means that there is not any content read out before the start of verse 1. Most translations read out names of chapters or section headings, which is why adding <star> is the default behavior.')
21
22
  .optional(),
22
23
  })
@@ -1,7 +1,10 @@
1
1
  export declare const bibleAudios: {
2
2
  bibleAudioId: string;
3
+ audioSource: {
4
+ source: "custom" | "dbl" | "youVersion" | "bibleBrain";
5
+ sourceId?: string | undefined;
6
+ };
3
7
  canDownload: boolean;
4
- audioSource?: any;
5
8
  copyright?: string | undefined;
6
- disableStar?: any;
9
+ disableStar?: boolean | undefined;
7
10
  }[];
@@ -6,23 +6,27 @@
6
6
  "type": "string"
7
7
  },
8
8
  "data": {
9
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
10
+ "type": "array",
9
11
  "items": {
12
+ "type": "object",
10
13
  "properties": {
11
14
  "name": {
12
- "description": "The name of the book.",
13
- "type": "string"
15
+ "type": "string",
16
+ "description": "The name of the book."
14
17
  },
15
18
  "title": {
16
- "description": "The title of the book.",
17
- "type": "string"
19
+ "type": "string",
20
+ "description": "The title of the book."
18
21
  },
19
22
  "bookId": {
20
- "description": "The book identifier from the second JSON file.",
21
- "type": "string"
23
+ "type": "string",
24
+ "description": "The book identifier from the second JSON file."
22
25
  },
23
26
  "chapters": {
24
- "description": "An array of chapter identifiers for the book.",
27
+ "type": "array",
25
28
  "items": {
29
+ "type": "object",
26
30
  "properties": {
27
31
  "id": {
28
32
  "type": "string"
@@ -35,86 +39,103 @@
35
39
  "id",
36
40
  "verses"
37
41
  ],
38
- "type": "object"
42
+ "additionalProperties": false
39
43
  },
40
- "type": "array"
44
+ "description": "An array of chapter identifiers for the book."
41
45
  },
42
46
  "englishDivision": {
43
- "description": "The English division of the book (e.g., 'Pentateuch', 'Wisdom').",
44
- "type": "string"
47
+ "type": "string",
48
+ "description": "The English division of the book (e.g., 'Pentateuch', 'Wisdom')."
45
49
  },
46
50
  "hebrewDivision": {
47
- "description": "The Hebrew division of the book (e.g., 'Torah', 'Ketuvim').",
48
- "type": [
49
- "string",
50
- "null"
51
- ]
51
+ "anyOf": [
52
+ {
53
+ "type": "string",
54
+ "description": "The Hebrew division of the book (e.g., 'Torah', 'Ketuvim')."
55
+ },
56
+ {
57
+ "type": "null",
58
+ "description": "The Hebrew division of the book (e.g., 'Torah', 'Ketuvim')."
59
+ }
60
+ ],
61
+ "description": "The Hebrew division of the book (e.g., 'Torah', 'Ketuvim')."
52
62
  },
53
63
  "hebrewOrder": {
54
- "description": "The order of the book in the Hebrew Bible.",
55
- "type": [
56
- "integer",
57
- "null"
58
- ]
64
+ "anyOf": [
65
+ {
66
+ "type": "integer",
67
+ "minimum": -9007199254740991,
68
+ "maximum": 9007199254740991,
69
+ "description": "The order of the book in the Hebrew Bible."
70
+ },
71
+ {
72
+ "type": "null",
73
+ "description": "The order of the book in the Hebrew Bible."
74
+ }
75
+ ],
76
+ "description": "The order of the book in the Hebrew Bible."
59
77
  },
60
78
  "isNt": {
61
- "description": "Indicates if the book is in the New Testament.",
62
- "type": "boolean"
79
+ "type": "boolean",
80
+ "description": "Indicates if the book is in the New Testament."
63
81
  },
64
82
  "lowercase": {
65
- "description": "The lowercase title of the book.",
66
- "type": "string"
83
+ "type": "string",
84
+ "description": "The lowercase title of the book."
67
85
  },
68
86
  "lowercase_dashes": {
69
- "description": "The lowercase title of the book with dashes.",
70
- "type": "string"
87
+ "type": "string",
88
+ "description": "The lowercase title of the book with dashes."
71
89
  },
72
90
  "number": {
73
- "description": "The numeric order of the book in the Bible.",
74
- "type": "integer"
91
+ "type": "integer",
92
+ "minimum": -9007199254740991,
93
+ "maximum": 9007199254740991,
94
+ "description": "The numeric order of the book in the Bible."
75
95
  },
76
96
  "order": {
77
- "description": "The order of the book in the Bible.",
78
- "type": "integer"
97
+ "type": "integer",
98
+ "minimum": -9007199254740991,
99
+ "maximum": 9007199254740991,
100
+ "description": "The order of the book in the Bible."
79
101
  },
80
102
  "testament": {
81
- "description": "The testament of the book ('old' or 'new').",
82
- "type": "string"
103
+ "type": "string",
104
+ "description": "The testament of the book ('old' or 'new')."
83
105
  },
84
106
  "title_dashes": {
85
- "description": "The title of the book with dashes.",
86
- "type": "string"
107
+ "type": "string",
108
+ "description": "The title of the book with dashes."
87
109
  },
88
110
  "usfm": {
89
- "description": "The USFM code for the book.",
90
- "type": "string"
111
+ "type": "string",
112
+ "description": "The USFM code for the book."
91
113
  },
92
114
  "nameAlternates": {
93
- "description": "Alternative names for the book.",
94
115
  "type": "array",
95
116
  "items": {
96
117
  "type": "string"
97
- }
118
+ },
119
+ "description": "Alternative names for the book."
98
120
  }
99
121
  },
100
122
  "required": [
101
- "isNt",
102
- "lowercase",
103
- "lowercase_dashes",
104
- "number",
123
+ "name",
105
124
  "title",
106
- "title_dashes",
107
- "usfm",
108
125
  "bookId",
109
126
  "chapters",
110
127
  "englishDivision",
111
- "name",
128
+ "isNt",
129
+ "lowercase",
130
+ "lowercase_dashes",
131
+ "number",
112
132
  "order",
113
- "testament"
133
+ "testament",
134
+ "title_dashes",
135
+ "usfm"
114
136
  ],
115
- "type": "object"
116
- },
117
- "type": "array"
137
+ "additionalProperties": false
138
+ }
118
139
  }
119
140
  },
120
141
  "required": [