free-use-bible-api 0.1.2 → 0.2.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 (147) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +101 -70
  3. package/dist/cjs/FreeUseBibleApi.cjs +296 -0
  4. package/dist/cjs/FreeUseBibleApi.cjs.map +7 -0
  5. package/dist/cjs/index.cjs +25 -0
  6. package/dist/cjs/index.cjs.map +7 -0
  7. package/dist/cjs/types.gen.cjs +17 -0
  8. package/dist/cjs/types.gen.cjs.map +7 -0
  9. package/dist/esm/FreeUseBibleApi.js +270 -0
  10. package/dist/esm/FreeUseBibleApi.js.map +7 -0
  11. package/dist/esm/index.js +2 -3
  12. package/dist/esm/index.js.map +2 -2
  13. package/dist/esm/types.gen.js +2 -0
  14. package/dist/esm/types.gen.js.map +7 -0
  15. package/dist/types/FreeUseBibleApi.d.ts +247 -0
  16. package/dist/types/index.d.ts +2 -3
  17. package/dist/types/types.gen.d.ts +1147 -0
  18. package/package.json +33 -31
  19. package/dist/esm/apis/DefaultApi.js +0 -416
  20. package/dist/esm/apis/DefaultApi.js.map +0 -7
  21. package/dist/esm/apis/FreeUseBibleApi.js +0 -61
  22. package/dist/esm/apis/FreeUseBibleApi.js.map +0 -7
  23. package/dist/esm/apis/index.js +0 -4
  24. package/dist/esm/apis/index.js.map +0 -7
  25. package/dist/esm/models/ApiAvailableCommentaries.js +0 -32
  26. package/dist/esm/models/ApiAvailableCommentaries.js.map +0 -7
  27. package/dist/esm/models/ApiAvailableDatasets.js +0 -32
  28. package/dist/esm/models/ApiAvailableDatasets.js.map +0 -7
  29. package/dist/esm/models/ApiAvailableTranslations.js +0 -32
  30. package/dist/esm/models/ApiAvailableTranslations.js.map +0 -7
  31. package/dist/esm/models/ApiCommentary.js +0 -81
  32. package/dist/esm/models/ApiCommentary.js.map +0 -7
  33. package/dist/esm/models/ApiCommentaryBook.js +0 -63
  34. package/dist/esm/models/ApiCommentaryBook.js.map +0 -7
  35. package/dist/esm/models/ApiCommentaryBookChapter.js +0 -58
  36. package/dist/esm/models/ApiCommentaryBookChapter.js.map +0 -7
  37. package/dist/esm/models/ApiCommentaryBookChapterChapter.js +0 -37
  38. package/dist/esm/models/ApiCommentaryBookChapterChapter.js.map +0 -7
  39. package/dist/esm/models/ApiCommentaryBooks.js +0 -39
  40. package/dist/esm/models/ApiCommentaryBooks.js.map +0 -7
  41. package/dist/esm/models/ApiDataset.js +0 -77
  42. package/dist/esm/models/ApiDataset.js.map +0 -7
  43. package/dist/esm/models/ApiDatasetBook.js +0 -56
  44. package/dist/esm/models/ApiDatasetBook.js.map +0 -7
  45. package/dist/esm/models/ApiDatasetBookChapter.js +0 -61
  46. package/dist/esm/models/ApiDatasetBookChapter.js.map +0 -7
  47. package/dist/esm/models/ApiDatasetBooks.js +0 -39
  48. package/dist/esm/models/ApiDatasetBooks.js.map +0 -7
  49. package/dist/esm/models/ApiTranslation.js +0 -87
  50. package/dist/esm/models/ApiTranslation.js.map +0 -7
  51. package/dist/esm/models/ApiTranslationBook.js +0 -64
  52. package/dist/esm/models/ApiTranslationBook.js.map +0 -7
  53. package/dist/esm/models/ApiTranslationBookChapter.js +0 -67
  54. package/dist/esm/models/ApiTranslationBookChapter.js.map +0 -7
  55. package/dist/esm/models/ApiTranslationBookChapterChapter.js +0 -42
  56. package/dist/esm/models/ApiTranslationBookChapterChapter.js.map +0 -7
  57. package/dist/esm/models/ApiTranslationBooks.js +0 -39
  58. package/dist/esm/models/ApiTranslationBooks.js.map +0 -7
  59. package/dist/esm/models/ApiTranslationComplete.js +0 -39
  60. package/dist/esm/models/ApiTranslationComplete.js.map +0 -7
  61. package/dist/esm/models/ApiTranslationCompleteBook.js +0 -59
  62. package/dist/esm/models/ApiTranslationCompleteBook.js.map +0 -7
  63. package/dist/esm/models/BookId.js +0 -127
  64. package/dist/esm/models/BookId.js.map +0 -7
  65. package/dist/esm/models/ChapterContent.js +0 -58
  66. package/dist/esm/models/ChapterContent.js.map +0 -7
  67. package/dist/esm/models/ChapterFootnote.js +0 -44
  68. package/dist/esm/models/ChapterFootnote.js.map +0 -7
  69. package/dist/esm/models/ChapterFootnoteCaller.js +0 -17
  70. package/dist/esm/models/ChapterFootnoteCaller.js.map +0 -7
  71. package/dist/esm/models/ChapterFootnoteReference.js +0 -31
  72. package/dist/esm/models/ChapterFootnoteReference.js.map +0 -7
  73. package/dist/esm/models/ChapterHeading.js +0 -34
  74. package/dist/esm/models/ChapterHeading.js.map +0 -7
  75. package/dist/esm/models/ChapterHebrewSubtitle.js +0 -38
  76. package/dist/esm/models/ChapterHebrewSubtitle.js.map +0 -7
  77. package/dist/esm/models/ChapterHebrewSubtitleContentInner.js +0 -35
  78. package/dist/esm/models/ChapterHebrewSubtitleContentInner.js.map +0 -7
  79. package/dist/esm/models/ChapterLineBreak.js +0 -31
  80. package/dist/esm/models/ChapterLineBreak.js.map +0 -7
  81. package/dist/esm/models/ChapterVerse.js +0 -41
  82. package/dist/esm/models/ChapterVerse.js.map +0 -7
  83. package/dist/esm/models/ChapterVerseContentInner.js +0 -44
  84. package/dist/esm/models/ChapterVerseContentInner.js.map +0 -7
  85. package/dist/esm/models/DatasetChapterData.js +0 -35
  86. package/dist/esm/models/DatasetChapterData.js.map +0 -7
  87. package/dist/esm/models/DatasetChapterVerseContent.js +0 -35
  88. package/dist/esm/models/DatasetChapterVerseContent.js.map +0 -7
  89. package/dist/esm/models/FormattedText.js +0 -32
  90. package/dist/esm/models/FormattedText.js.map +0 -7
  91. package/dist/esm/models/InlineHeading.js +0 -28
  92. package/dist/esm/models/InlineHeading.js.map +0 -7
  93. package/dist/esm/models/InlineLineBreak.js +0 -31
  94. package/dist/esm/models/InlineLineBreak.js.map +0 -7
  95. package/dist/esm/models/ScoredVerseRef.js +0 -47
  96. package/dist/esm/models/ScoredVerseRef.js.map +0 -7
  97. package/dist/esm/models/TranslationBookChapter.js +0 -35
  98. package/dist/esm/models/TranslationBookChapter.js.map +0 -7
  99. package/dist/esm/models/VerseFootnoteReference.js +0 -28
  100. package/dist/esm/models/VerseFootnoteReference.js.map +0 -7
  101. package/dist/esm/models/index.js +0 -40
  102. package/dist/esm/models/index.js.map +0 -7
  103. package/dist/esm/runtime.js +0 -304
  104. package/dist/esm/runtime.js.map +0 -7
  105. package/dist/types/apis/DefaultApi.d.ts +0 -176
  106. package/dist/types/apis/FreeUseBibleApi.d.ts +0 -34
  107. package/dist/types/apis/index.d.ts +0 -3
  108. package/dist/types/models/ApiAvailableCommentaries.d.ts +0 -34
  109. package/dist/types/models/ApiAvailableDatasets.d.ts +0 -34
  110. package/dist/types/models/ApiAvailableTranslations.d.ts +0 -34
  111. package/dist/types/models/ApiCommentary.d.ts +0 -145
  112. package/dist/types/models/ApiCommentaryBook.d.ts +0 -100
  113. package/dist/types/models/ApiCommentaryBookChapter.d.ts +0 -72
  114. package/dist/types/models/ApiCommentaryBookChapterChapter.d.ts +0 -46
  115. package/dist/types/models/ApiCommentaryBooks.d.ts +0 -41
  116. package/dist/types/models/ApiDataset.d.ts +0 -138
  117. package/dist/types/models/ApiDatasetBook.d.ts +0 -82
  118. package/dist/types/models/ApiDatasetBookChapter.d.ts +0 -78
  119. package/dist/types/models/ApiDatasetBooks.d.ts +0 -41
  120. package/dist/types/models/ApiTranslation.d.ts +0 -169
  121. package/dist/types/models/ApiTranslationBook.d.ts +0 -100
  122. package/dist/types/models/ApiTranslationBookChapter.d.ts +0 -96
  123. package/dist/types/models/ApiTranslationBookChapterChapter.d.ts +0 -47
  124. package/dist/types/models/ApiTranslationBooks.d.ts +0 -41
  125. package/dist/types/models/ApiTranslationComplete.d.ts +0 -41
  126. package/dist/types/models/ApiTranslationCompleteBook.d.ts +0 -83
  127. package/dist/types/models/BookId.d.ts +0 -125
  128. package/dist/types/models/ChapterContent.d.ts +0 -34
  129. package/dist/types/models/ChapterFootnote.d.ts +0 -53
  130. package/dist/types/models/ChapterFootnoteCaller.d.ts +0 -27
  131. package/dist/types/models/ChapterFootnoteReference.d.ts +0 -39
  132. package/dist/types/models/ChapterHeading.d.ts +0 -46
  133. package/dist/types/models/ChapterHebrewSubtitle.d.ts +0 -47
  134. package/dist/types/models/ChapterHebrewSubtitleContentInner.d.ts +0 -51
  135. package/dist/types/models/ChapterLineBreak.d.ts +0 -40
  136. package/dist/types/models/ChapterVerse.d.ts +0 -53
  137. package/dist/types/models/ChapterVerseContentInner.d.ts +0 -70
  138. package/dist/types/models/DatasetChapterData.d.ts +0 -40
  139. package/dist/types/models/DatasetChapterVerseContent.d.ts +0 -40
  140. package/dist/types/models/FormattedText.d.ts +0 -45
  141. package/dist/types/models/InlineHeading.d.ts +0 -33
  142. package/dist/types/models/InlineLineBreak.d.ts +0 -40
  143. package/dist/types/models/ScoredVerseRef.d.ts +0 -70
  144. package/dist/types/models/TranslationBookChapter.d.ts +0 -42
  145. package/dist/types/models/VerseFootnoteReference.d.ts +0 -33
  146. package/dist/types/models/index.d.ts +0 -39
  147. package/dist/types/runtime.d.ts +0 -185
@@ -0,0 +1,1147 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://bible.helloao.org' | (string & {});
3
+ };
4
+ /**
5
+ * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)
6
+ */
7
+ export type BookId = 'GEN' | 'EXO' | 'LEV' | 'NUM' | 'DEU' | 'JOS' | 'JDG' | 'RUT' | '1SA' | '2SA' | '1KI' | '2KI' | '1CH' | '2CH' | 'EZR' | 'NEH' | 'EST' | 'JOB' | 'PSA' | 'PRO' | 'ECC' | 'SNG' | 'ISA' | 'JER' | 'LAM' | 'EZK' | 'DAN' | 'HOS' | 'JOL' | 'AMO' | 'OBA' | 'JON' | 'MIC' | 'NAM' | 'HAB' | 'ZEP' | 'HAG' | 'ZEC' | 'MAL' | 'MAT' | 'MRK' | 'LUK' | 'JHN' | 'ACT' | 'ROM' | '1CO' | '2CO' | 'GAL' | 'EPH' | 'PHP' | 'COL' | '1TH' | '2TH' | '1TI' | '2TI' | 'TIT' | 'PHM' | 'HEB' | 'JAS' | '1PE' | '2PE' | '1JN' | '2JN' | '3JN' | 'JUD' | 'REV' | 'TOB' | 'JDT' | 'ESG' | 'WIS' | 'SIR' | 'BAR' | 'LJE' | 'S3Y' | 'SUS' | 'BEL' | '1MA' | '2MA' | '3MA' | '4MA' | '1ES' | '2ES' | 'MAN' | 'PS2' | 'ODA' | 'PSS' | 'EZA' | '5EZ' | '6EZ' | 'DAG' | 'PS3' | '2BA' | 'LBA' | 'JUB' | 'ENO' | '1MQ' | '2MQ' | '3MQ' | 'REP' | '4BA' | 'LAO';
8
+ /**
9
+ * The list of available translations. Maps to the /api/available-translations.json endpoint.
10
+ */
11
+ export type ApiAvailableTranslations = {
12
+ /**
13
+ * The list of translations that are available in the API.
14
+ */
15
+ translations: Array<ApiTranslation>;
16
+ };
17
+ /**
18
+ * Defines a translation that is used in the API.
19
+ */
20
+ export type ApiTranslation = {
21
+ /**
22
+ * The ID of the translation.
23
+ */
24
+ id: string;
25
+ /**
26
+ * The name of the translation.
27
+ */
28
+ name: string;
29
+ /**
30
+ * The website for the translation.
31
+ */
32
+ website: string;
33
+ /**
34
+ * The URL that the license for the translation can be found.
35
+ */
36
+ licenseUrl: string;
37
+ /**
38
+ * The API-added notes for the license.
39
+ */
40
+ licenseNotes?: string | null;
41
+ /**
42
+ * The notice that should be displayed when displaying content from the translation.
43
+ */
44
+ licenseNotice?: string | null;
45
+ /**
46
+ * The short name for the translation.
47
+ */
48
+ shortName?: string;
49
+ /**
50
+ * The English name for the translation.
51
+ */
52
+ englishName: string;
53
+ /**
54
+ * The ISO 639 3-letter language tag that the translation is primarily in.
55
+ */
56
+ language: string;
57
+ /**
58
+ * The direction that the language is written in. `ltr` indicates that the text is written from the left side of the page to the right. `rtl` indicates that the text is written from the right side of the page to the left.
59
+ */
60
+ textDirection: 'ltr' | 'rtl';
61
+ /**
62
+ * The API link for the list of books for this translation. Relative to the API origin.
63
+ */
64
+ listOfBooksApiLink: string;
65
+ availableFormats: Array<'json' | 'usfm'>;
66
+ /**
67
+ * The number of books that are contained in this translation. Complete translations should have the same number of books as the Bible (66).
68
+ */
69
+ numberOfBooks: number;
70
+ /**
71
+ * The total number of chapters that are contained in this translation. Complete translations should have the same number of chapters as the Bible (1,189).
72
+ */
73
+ totalNumberOfChapters: number;
74
+ /**
75
+ * The total number of verses that are contained in this translation. Complete translations should have the same number of verses as the Bible (around 31,102 - some translations exclude verses based on the aparent likelyhood of existing in the original source texts).
76
+ */
77
+ totalNumberOfVerses: number;
78
+ /**
79
+ * The total number of apocryphal books that are contained in this translation.
80
+ */
81
+ numberOfApocryphalBooks?: number;
82
+ /**
83
+ * The total number of apocryphal chapters that are contained in this translation.
84
+ */
85
+ totalNumberOfApocryphalChapters?: number;
86
+ /**
87
+ * The total number of apocryphal verses that are contained in this translation.
88
+ */
89
+ totalNumberOfApocryphalVerses?: number;
90
+ /**
91
+ * Gets the name of the language that the translation is in. Null or undefined if the name of the language is not known.
92
+ */
93
+ languageName?: string;
94
+ /**
95
+ * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.
96
+ */
97
+ languageEnglishName?: string;
98
+ /**
99
+ * The API link for downloading the complete translation as a single JSON file. Relative to the API origin. Undefined if complete translation files are not available.
100
+ */
101
+ completeTranslationApiLink?: string;
102
+ };
103
+ /**
104
+ * Defines an interface that contains information about the books that are available for a translation.
105
+ */
106
+ export type ApiTranslationBooks = {
107
+ /**
108
+ * The translation information for the books.
109
+ */
110
+ translation: ApiTranslation;
111
+ /**
112
+ * The list of books that are available for the translation.
113
+ */
114
+ books: Array<ApiTranslationBook>;
115
+ };
116
+ /**
117
+ * Defines a schema that contains information about a translation book.
118
+ */
119
+ export type ApiTranslationBook = {
120
+ id: BookId;
121
+ /**
122
+ * The name that the translation provided for the book.
123
+ */
124
+ name: string;
125
+ /**
126
+ * The common name for the book.
127
+ */
128
+ commonName: string;
129
+ /**
130
+ * The title of the book. This is usually a more descriptive version of the book name. If not available, then one was not provided by the translation.
131
+ */
132
+ title: string | null;
133
+ /**
134
+ * The numerical order of the book in the translation.
135
+ */
136
+ order: number;
137
+ /**
138
+ * Whether the book is an apocryphal book.
139
+ */
140
+ isApocryphal?: boolean;
141
+ /**
142
+ * The number of the first chapter in the book.
143
+ */
144
+ firstChapterNumber: number;
145
+ /**
146
+ * The link to the first chapter of the book.
147
+ */
148
+ firstChapterApiLink: string;
149
+ firstChapterReference: TranslationChapterReference;
150
+ /**
151
+ * The number of the last chapter in the book.
152
+ */
153
+ lastChapterNumber: number;
154
+ /**
155
+ * The link to the last chapter of the book.
156
+ */
157
+ lastChapterApiLink: string;
158
+ lastChapterReference: TranslationChapterReference;
159
+ /**
160
+ * The number of chapters that the book contains.
161
+ */
162
+ numberOfChapters: number;
163
+ /**
164
+ * The number of verses that the book contains.
165
+ */
166
+ totalNumberOfVerses: number;
167
+ };
168
+ /**
169
+ * Defines a reference to a chapter in a translation.
170
+ */
171
+ export type TranslationChapterReference = {
172
+ /**
173
+ * The ID of the translation that the chapter reference is for.
174
+ */
175
+ translationId: string;
176
+ book: BookId;
177
+ /**
178
+ * The chapter number of the chapter reference.
179
+ */
180
+ chapter: number;
181
+ };
182
+ /**
183
+ * Defines an interface that contains information about a book chapter in a translation.
184
+ */
185
+ export type ApiTranslationBookChapter = {
186
+ /**
187
+ * The information for the chapter.
188
+ */
189
+ chapter: {
190
+ /**
191
+ * The number of the chapter.
192
+ */
193
+ number: number;
194
+ /**
195
+ * The content of the chapter.
196
+ */
197
+ content: Array<ChapterContent>;
198
+ /**
199
+ * The list of footnotes for the chapter.
200
+ */
201
+ footnotes: Array<ChapterFootnote>;
202
+ };
203
+ /**
204
+ * The links to different audio versions for the chapter.
205
+ */
206
+ thisChapterAudioLinks: TranslationBookChapterAudioLinks;
207
+ /**
208
+ * The translation information for the book chapter.
209
+ */
210
+ translation: ApiTranslation;
211
+ /**
212
+ * The book information for the book chapter.
213
+ */
214
+ book: ApiTranslationBook;
215
+ /**
216
+ * The API link for this chapter. Relative to the API origin.
217
+ */
218
+ thisChapterLink: string;
219
+ thisChapterReference: TranslationChapterReference;
220
+ /**
221
+ * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.
222
+ */
223
+ nextChapterApiLink: string | null;
224
+ /**
225
+ * The reference for the next chapter. Null if this is the last chapter in the translation.
226
+ */
227
+ nextChapterReference: TranslationChapterReference | null;
228
+ /**
229
+ * The links to the audio versions for the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.
230
+ */
231
+ nextChapterAudioLinks: {
232
+ [key: string]: string;
233
+ } | null;
234
+ /**
235
+ * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.
236
+ */
237
+ previousChapterApiLink: string | null;
238
+ /**
239
+ * The reference for the previous chapter. Null if this is the first chapter in the translation.
240
+ */
241
+ previousChapterReference: TranslationChapterReference | null;
242
+ /**
243
+ * The links to the audio versions for the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.
244
+ */
245
+ previousChapterAudioLinks: {
246
+ [key: string]: string;
247
+ } | null;
248
+ /**
249
+ * The number of verses that the chapter contains.
250
+ */
251
+ numberOfVerses: number;
252
+ };
253
+ /**
254
+ * Defines a union type that represents a single piece of chapter content. A piece of chapter content can be one of the following things: A heading, a line break, a verse, or a Hebrew Subtitle.
255
+ */
256
+ export type ChapterContent = ({
257
+ type: 'heading';
258
+ } & ChapterHeading) | ({
259
+ type: 'line_break';
260
+ } & ChapterLineBreak) | ({
261
+ type: 'verse';
262
+ } & ChapterVerse) | ({
263
+ type: 'hebrew_subtitle';
264
+ } & ChapterHebrewSubtitle);
265
+ /**
266
+ * Defines the schema for a heading in a chapter.
267
+ */
268
+ export type ChapterHeading = {
269
+ type: 'heading';
270
+ /**
271
+ * The content for the heading. If multiple strings are included in the array, they should be concatenated with a space.
272
+ */
273
+ content: Array<string>;
274
+ };
275
+ /**
276
+ * Defines the schema for a line break in a chapter.
277
+ */
278
+ export type ChapterLineBreak = {
279
+ type: 'line_break';
280
+ };
281
+ /**
282
+ * Defines the schema for a verse in a chapter.
283
+ */
284
+ export type ChapterVerse = {
285
+ type: 'verse';
286
+ /**
287
+ * The number of the verse.
288
+ */
289
+ number: number;
290
+ /**
291
+ * The list of content for the verse. Each element in the list could be a string, formatted text, or a footnote reference.
292
+ */
293
+ content: Array<string | FormattedText | InlineHeading | InlineLineBreak | VerseFootnoteReference>;
294
+ };
295
+ /**
296
+ * Defines the schema for formatted text. That is, text that is formatted in a particular manner.
297
+ */
298
+ export type FormattedText = {
299
+ /**
300
+ * The text that is formatted.
301
+ */
302
+ text: string;
303
+ /**
304
+ * Whether the text represents a poem. The number indicates the level of indent. Common in Psalms.
305
+ */
306
+ poem?: number;
307
+ /**
308
+ * Whether the text represents the Words of Jesus.
309
+ */
310
+ wordsOfJesus?: boolean;
311
+ };
312
+ /**
313
+ * Defines the schema for a heading that is embedded in a verse.
314
+ */
315
+ export type InlineHeading = {
316
+ /**
317
+ * The text of the heading.
318
+ */
319
+ heading: string;
320
+ };
321
+ /**
322
+ * Defines the schema for a line break that is embedded in a verse.
323
+ */
324
+ export type InlineLineBreak = {
325
+ lineBreak: true;
326
+ };
327
+ /**
328
+ * Defines the schema for a footnote reference in a verse or a Hebrew Subtitle.
329
+ */
330
+ export type VerseFootnoteReference = {
331
+ /**
332
+ * The ID of the note.
333
+ */
334
+ noteId: number;
335
+ };
336
+ /**
337
+ * Defines the schema for a Hebrew Subtitle in a chapter.
338
+ */
339
+ export type ChapterHebrewSubtitle = {
340
+ type: 'hebrew_subtitle';
341
+ /**
342
+ * The content that is contained in the subtitle. Each element in the list could be a string, formatted text, or a footnote reference.
343
+ */
344
+ content: Array<string | FormattedText | VerseFootnoteReference>;
345
+ };
346
+ /**
347
+ * Defines the schema for information about a footnote.
348
+ */
349
+ export type ChapterFootnote = {
350
+ /**
351
+ * The ID of the note that is referenced.
352
+ */
353
+ noteId: number;
354
+ /**
355
+ * The text of the footnote.
356
+ */
357
+ text: string;
358
+ /**
359
+ * The verse reference for the footnote. Undefined if the footnote isn't associated with a specific verse.
360
+ */
361
+ reference?: {
362
+ chapter: number;
363
+ verse: number;
364
+ };
365
+ /**
366
+ * The caller that should be used for the footnote. For footnotes, a "caller" is the character that is used in the text to reference to footnote. For example, in the text: Hello (a) World ---- (a) This is a footnote. The "(a)" is the caller. If "+", then the caller should be autogenerated. If null, then the caller should be empty. If a string, then the caller should be that string.
367
+ */
368
+ caller: '+' | string | null;
369
+ };
370
+ /**
371
+ * Defines the schema for the audio links for a book chapter.
372
+ */
373
+ export type TranslationBookChapterAudioLinks = {
374
+ [key: string]: string;
375
+ };
376
+ /**
377
+ * Defines the complete translation download data. Maps to the /api/:translationId/complete.json endpoint.
378
+ */
379
+ export type ApiTranslationComplete = {
380
+ /**
381
+ * The translation metadata.
382
+ */
383
+ translation: ApiTranslation;
384
+ /**
385
+ * The complete list of books with all their chapters.
386
+ */
387
+ books: Array<ApiTranslationCompleteBook>;
388
+ };
389
+ /**
390
+ * A book in the complete translation download.
391
+ */
392
+ export type ApiTranslationCompleteBook = {
393
+ id: BookId;
394
+ /**
395
+ * The name that the translation provided for the book.
396
+ */
397
+ name: string;
398
+ /**
399
+ * The common name for the book.
400
+ */
401
+ commonName: string;
402
+ /**
403
+ * The title of the book. This is usually a more descriptive version of the book name. If not available, then one was not provided by the translation.
404
+ */
405
+ title: string | null;
406
+ /**
407
+ * The numerical order of the book in the translation.
408
+ */
409
+ order: number;
410
+ /**
411
+ * Whether the book is an apocryphal book.
412
+ */
413
+ isApocryphal?: boolean;
414
+ /**
415
+ * The number of chapters in the book.
416
+ */
417
+ numberOfChapters: number;
418
+ /**
419
+ * The total number of verses in the book.
420
+ */
421
+ totalNumberOfVerses: number;
422
+ /**
423
+ * The complete list of chapters with all content.
424
+ */
425
+ chapters: Array<TranslationBookChapter>;
426
+ };
427
+ /**
428
+ * Defines the schema for information about a book chapter.
429
+ */
430
+ export type TranslationBookChapter = {
431
+ /**
432
+ * The information for the chapter.
433
+ */
434
+ chapter: {
435
+ /**
436
+ * The number of the chapter.
437
+ */
438
+ number: number;
439
+ /**
440
+ * The content of the chapter.
441
+ */
442
+ content: Array<ChapterContent>;
443
+ /**
444
+ * The list of footnotes for the chapter.
445
+ */
446
+ footnotes: Array<ChapterFootnote>;
447
+ };
448
+ /**
449
+ * The links to different audio versions for the chapter.
450
+ */
451
+ thisChapterAudioLinks: TranslationBookChapterAudioLinks;
452
+ };
453
+ /**
454
+ * The list of available commentaries. Maps to the /api/available-commentaries.json endpoint.
455
+ */
456
+ export type ApiAvailableCommentaries = {
457
+ /**
458
+ * The list of commentaries that are available in the API.
459
+ */
460
+ commentaries: Array<ApiCommentary>;
461
+ };
462
+ /**
463
+ * Defines a commentary that is used in the API.
464
+ */
465
+ export type ApiCommentary = {
466
+ /**
467
+ * The ID of the commentary.
468
+ */
469
+ id: string;
470
+ /**
471
+ * The name of the commentary.
472
+ */
473
+ name: string;
474
+ /**
475
+ * The website for the commentary.
476
+ */
477
+ website: string;
478
+ /**
479
+ * The URL that the license for the commentary can be found.
480
+ */
481
+ licenseUrl: string;
482
+ /**
483
+ * The API-added notes for the license.
484
+ */
485
+ licenseNotes?: string | null;
486
+ /**
487
+ * The English name for the commentary.
488
+ */
489
+ englishName: string;
490
+ /**
491
+ * The ISO 639 3-letter language tag that the translation is primarily in.
492
+ */
493
+ language: string;
494
+ /**
495
+ * The direction that the language is written in. `ltr` indicates that the text is written from the left side of the page to the right. `rtl` indicates that the text is written from the right side of the page to the left.
496
+ */
497
+ textDirection: 'ltr' | 'rtl';
498
+ /**
499
+ * The API link for the list of books for this commentary. Relative to the API origin.
500
+ */
501
+ listOfBooksApiLink: string;
502
+ /**
503
+ * The API link for the list of profiles for this commentary. Relative to the API origin.
504
+ */
505
+ listOfProfilesApiLink: string;
506
+ availableFormats: Array<'json' | 'usfm'>;
507
+ /**
508
+ * The number of books that are contained in this commentary. Complete commentaries should have the same number of books as the Bible (66).
509
+ */
510
+ numberOfBooks: number;
511
+ /**
512
+ * The total number of chapters that are contained in this commentary. Complete commentaries should have the same number of chapters as the Bible (1,189).
513
+ */
514
+ totalNumberOfChapters: number;
515
+ /**
516
+ * The total number of verses that are contained in this commentary. Complete commentaries should have the same number of verses as the Bible (around 31,102 - some commentaries exclude verses based on the aparent likelyhood of existing in the original source texts).
517
+ */
518
+ totalNumberOfVerses: number;
519
+ /**
520
+ * The total number of profiles that are contained in this commentary. Profiles are used to provide additional information about people and people groups that are mentioned in the Bible.
521
+ */
522
+ totalNumberOfProfiles: number;
523
+ /**
524
+ * Gets the name of the language that the commentary is in. Null or undefined if the name of the language is not known.
525
+ */
526
+ languageName?: string;
527
+ /**
528
+ * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.
529
+ */
530
+ languageEnglishName?: string;
531
+ };
532
+ /**
533
+ * Defines an interface that contains information about the books that are available for a commentary.
534
+ */
535
+ export type ApiCommentaryBooks = {
536
+ /**
537
+ * The commentary information for the books.
538
+ */
539
+ commentary: ApiCommentary;
540
+ /**
541
+ * The list of books that are available for the commentary.
542
+ */
543
+ books: Array<ApiCommentaryBook>;
544
+ };
545
+ /**
546
+ * Defines a schema that contains information about a commentary book.
547
+ */
548
+ export type ApiCommentaryBook = {
549
+ id: BookId;
550
+ /**
551
+ * The name that the commentary provided for the book.
552
+ */
553
+ name: string;
554
+ /**
555
+ * The common name for the book.
556
+ */
557
+ commonName: string;
558
+ /**
559
+ * The commentary's introduction for the book. Undefined if the commentary didn't provide an introduction for the book.
560
+ */
561
+ introduction?: string;
562
+ /**
563
+ * The summary of the commentary's introduction for the book. Undefined if the commentary didn't provide a summary for the book.
564
+ */
565
+ introductionSummary?: string;
566
+ /**
567
+ * The order of the book in the Bible.
568
+ */
569
+ order: number;
570
+ /**
571
+ * The number of the first chapter in the book. Null if the comentary book has no chapters.
572
+ */
573
+ firstChapterNumber: number | null;
574
+ /**
575
+ * The link to the first chapter of the book. Null if the comentary book has no chapters.
576
+ */
577
+ firstChapterApiLink: string | null;
578
+ /**
579
+ * The reference for the first chapter in the book. Null if the comentary book has no chapters.
580
+ */
581
+ firstChapterReference: CommentaryChapterReference | null;
582
+ /**
583
+ * The number of the last chapter in the book. Null if the comentary book has no chapters.
584
+ */
585
+ lastChapterNumber: number | null;
586
+ /**
587
+ * The link to the last chapter of the book. Null if the comentary book has no chapters.
588
+ */
589
+ lastChapterApiLink: string | null;
590
+ /**
591
+ * The reference for the last chapter in the book. Null if the comentary book has no chapters.
592
+ */
593
+ lastChapterReference: CommentaryChapterReference | null;
594
+ /**
595
+ * The number of chapters that the book contains.
596
+ */
597
+ numberOfChapters: number;
598
+ /**
599
+ * The number of verses that the book contains.
600
+ */
601
+ totalNumberOfVerses: number;
602
+ };
603
+ /**
604
+ * Defines a reference to a chapter in a commentary.
605
+ */
606
+ export type CommentaryChapterReference = {
607
+ /**
608
+ * The ID of the commentary that the chapter reference is for.
609
+ */
610
+ commentaryId: string;
611
+ book: BookId;
612
+ /**
613
+ * The chapter number of the chapter reference.
614
+ */
615
+ chapter: number;
616
+ };
617
+ /**
618
+ * Defines a schema that contains information about a book chapter in a commentary.
619
+ */
620
+ export type ApiCommentaryBookChapter = {
621
+ /**
622
+ * The information for the chapter.
623
+ */
624
+ chapter: {
625
+ /**
626
+ * The number of the chapter.
627
+ */
628
+ number: number;
629
+ /**
630
+ * The introduction that the commentary provided to the chapter. Not all commentaries provide an introduction to a chapter.
631
+ */
632
+ introduction?: string;
633
+ /**
634
+ * The content of the chapter.
635
+ */
636
+ content: Array<ChapterVerse>;
637
+ };
638
+ /**
639
+ * The commentary information for the book chapter.
640
+ */
641
+ commentary: ApiCommentary;
642
+ /**
643
+ * The book information for the book chapter.
644
+ */
645
+ book: ApiCommentaryBook;
646
+ /**
647
+ * The API link for this chapter. Relative to the API origin.
648
+ */
649
+ thisChapterLink: string;
650
+ thisChapterReference: CommentaryChapterReference;
651
+ /**
652
+ * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the commentary.
653
+ */
654
+ nextChapterApiLink: string | null;
655
+ /**
656
+ * The reference for the next chapter. Null if this is the last chapter in the commentary.
657
+ */
658
+ nextChapterReference: CommentaryChapterReference | null;
659
+ /**
660
+ * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the commentary.
661
+ */
662
+ previousChapterApiLink: string | null;
663
+ /**
664
+ * The reference for the previous chapter. Null if this is the first chapter in the commentary.
665
+ */
666
+ previousChapterReference: CommentaryChapterReference | null;
667
+ /**
668
+ * The number of verses that the chapter contains.
669
+ */
670
+ numberOfVerses: number;
671
+ };
672
+ /**
673
+ * The list of available datasets. Maps to the /api/available-datasets.json endpoint.
674
+ */
675
+ export type ApiAvailableDatasets = {
676
+ /**
677
+ * The list of datasets that are available in the API.
678
+ */
679
+ datasets: Array<ApiDataset>;
680
+ };
681
+ /**
682
+ * Defines a dataset that is used in the API.
683
+ */
684
+ export type ApiDataset = {
685
+ /**
686
+ * The ID of the dataset.
687
+ */
688
+ id: string;
689
+ /**
690
+ * The name of the dataset.
691
+ */
692
+ name: string;
693
+ /**
694
+ * The website for the dataset.
695
+ */
696
+ website: string;
697
+ /**
698
+ * The URL that the license for the dataset can be found.
699
+ */
700
+ licenseUrl: string;
701
+ /**
702
+ * The API-added notes for the license.
703
+ */
704
+ licenseNotes?: string | null;
705
+ /**
706
+ * The English name for the dataset.
707
+ */
708
+ englishName: string;
709
+ /**
710
+ * The ISO 639 3-letter language tag that the dataset is primarily in.
711
+ */
712
+ language: string;
713
+ /**
714
+ * The direction that the language is written in.
715
+ */
716
+ textDirection: 'ltr' | 'rtl';
717
+ /**
718
+ * The API link for the list of books for this dataset. Relative to the API origin.
719
+ */
720
+ listOfBooksApiLink: string;
721
+ availableFormats: Array<'json'>;
722
+ /**
723
+ * The number of books that are contained in this dataset.
724
+ */
725
+ numberOfBooks: number;
726
+ /**
727
+ * The total number of chapters that are contained in this dataset.
728
+ */
729
+ totalNumberOfChapters: number;
730
+ /**
731
+ * The total number of verses that are contained in this dataset.
732
+ */
733
+ totalNumberOfVerses: number;
734
+ /**
735
+ * The total number of references that are contained in this dataset.
736
+ */
737
+ totalNumberOfReferences: number;
738
+ /**
739
+ * Gets the name of the language that the dataset is in. Null or undefined if the name of the language is not known.
740
+ */
741
+ languageName?: string;
742
+ /**
743
+ * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.
744
+ */
745
+ languageEnglishName?: string;
746
+ };
747
+ /**
748
+ * Defines an interface that contains information about the books that are available for a dataset.
749
+ */
750
+ export type ApiDatasetBooks = {
751
+ /**
752
+ * The dataset information for the books.
753
+ */
754
+ dataset: ApiDataset;
755
+ /**
756
+ * The list of books that are available for the dataset.
757
+ */
758
+ books: Array<ApiDatasetBook>;
759
+ };
760
+ /**
761
+ * Defines a schema that contains information about a book in a dataset.
762
+ */
763
+ export type ApiDatasetBook = {
764
+ id: BookId;
765
+ /**
766
+ * The order of the book in the Bible.
767
+ */
768
+ order: number;
769
+ /**
770
+ * The number of the first chapter in the book.
771
+ */
772
+ firstChapterNumber: number;
773
+ /**
774
+ * The link to the first chapter of the book.
775
+ */
776
+ firstChapterApiLink: string;
777
+ firstChapterReference: DatasetChapterReference;
778
+ /**
779
+ * The number of the last chapter in the book.
780
+ */
781
+ lastChapterNumber: number;
782
+ /**
783
+ * The link to the last chapter of the book.
784
+ */
785
+ lastChapterApiLink: string;
786
+ lastChapterReference: DatasetChapterReference;
787
+ /**
788
+ * The number of chapters that the book contains.
789
+ */
790
+ numberOfChapters: number;
791
+ /**
792
+ * The number of verses that the book contains.
793
+ */
794
+ totalNumberOfVerses: number;
795
+ /**
796
+ * The number of references that the book contains.
797
+ */
798
+ totalNumberOfReferences: number;
799
+ };
800
+ /**
801
+ * Defines a reference to a chapter in a dataset.
802
+ */
803
+ export type DatasetChapterReference = {
804
+ /**
805
+ * The ID of the dataset that the chapter reference is for.
806
+ */
807
+ datasetId: string;
808
+ book: BookId;
809
+ /**
810
+ * The chapter number of the chapter reference.
811
+ */
812
+ chapter: number;
813
+ };
814
+ /**
815
+ * Defines a schema that contains information about a book chapter in a dataset.
816
+ */
817
+ export type ApiDatasetBookChapter = {
818
+ /**
819
+ * The data for the chapter.
820
+ */
821
+ chapter: DatasetChapterData;
822
+ /**
823
+ * The dataset information for the book chapter.
824
+ */
825
+ dataset: ApiDataset;
826
+ /**
827
+ * The book information for the book chapter.
828
+ */
829
+ book: ApiDatasetBook;
830
+ /**
831
+ * The API link for this chapter. Relative to the API origin.
832
+ */
833
+ thisChapterLink: string;
834
+ thisChapterReference: DatasetChapterReference;
835
+ /**
836
+ * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the dataset.
837
+ */
838
+ nextChapterApiLink: string | null;
839
+ /**
840
+ * The reference for the next chapter. Null if this is the last chapter in the dataset.
841
+ */
842
+ nextChapterReference: DatasetChapterReference | null;
843
+ /**
844
+ * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the dataset.
845
+ */
846
+ previousChapterApiLink: string | null;
847
+ /**
848
+ * The reference for the previous chapter. Null if this is the first chapter in the dataset.
849
+ */
850
+ previousChapterReference: DatasetChapterReference | null;
851
+ /**
852
+ * The number of verses that the chapter contains.
853
+ */
854
+ numberOfVerses: number;
855
+ /**
856
+ * The number of references that the chapter contains.
857
+ */
858
+ numberOfReferences: number;
859
+ };
860
+ /**
861
+ * Defines the schema for information about a chapter in a dataset.
862
+ */
863
+ export type DatasetChapterData = {
864
+ /**
865
+ * The number of the chapter.
866
+ */
867
+ number: number;
868
+ /**
869
+ * The content of the chapter.
870
+ */
871
+ content: Array<DatasetChapterVerseContent>;
872
+ };
873
+ /**
874
+ * Defines the schema for information about a verse in a dataset chapter.
875
+ */
876
+ export type DatasetChapterVerseContent = {
877
+ /**
878
+ * The number of the verse.
879
+ */
880
+ verse: number;
881
+ /**
882
+ * The list of references for the verse.
883
+ */
884
+ references: Array<ScoredVerseRef>;
885
+ };
886
+ /**
887
+ * Defines the schema for information about a verse reference that has an arbitrary score attached to it.
888
+ */
889
+ export type ScoredVerseRef = {
890
+ book: BookId;
891
+ /**
892
+ * The chapter number that the reference starts at.
893
+ */
894
+ chapter: number;
895
+ /**
896
+ * The verse number that the reference starts at.
897
+ */
898
+ verse: number;
899
+ /**
900
+ * The rest of the content of the verse reference. This is the part of the string that comes after the verse reference. For example, in "GEN 1:1 In the beginning, God created the Heavens and the Earth.", the content would be "In the beginning, God created the Heavens and the Earth."
901
+ */
902
+ content?: string;
903
+ /**
904
+ * The chapter that the verse reference ends at. This is used for references that span multiple chapters, such as "GEN 1:1-2:3". In this case, the endChapter would be 2.
905
+ */
906
+ endChapter?: number;
907
+ /**
908
+ * The verse that the verse reference ends at. This is used for references that span multiple verses, such as "GEN 1:1-1:3". In this case, the endVerse would be 3.
909
+ */
910
+ endVerse?: number;
911
+ /**
912
+ * The score for the verse reference. The meaning of the score is arbitrary and is determined by the dataset.
913
+ */
914
+ score: number;
915
+ };
916
+ export type GetAvailableTranslationsData = {
917
+ body?: never;
918
+ path?: never;
919
+ query?: never;
920
+ url: '/api/available_translations.json';
921
+ };
922
+ export type GetAvailableTranslationsResponses = {
923
+ /**
924
+ * 200 OK
925
+ */
926
+ 200: ApiAvailableTranslations;
927
+ };
928
+ export type GetAvailableTranslationsResponse = GetAvailableTranslationsResponses[keyof GetAvailableTranslationsResponses];
929
+ export type GetTranslationBooksData = {
930
+ body?: never;
931
+ path: {
932
+ /**
933
+ * The translation ID of the Bible translation to get the books for. For example, "eng_kjv" for the King James Version.
934
+ */
935
+ translation: string;
936
+ };
937
+ query?: never;
938
+ url: '/api/{translation}/books.json';
939
+ };
940
+ export type GetTranslationBooksErrors = {
941
+ /**
942
+ * 404 Not Found - The specified translation was not found.
943
+ */
944
+ 404: unknown;
945
+ };
946
+ export type GetTranslationBooksResponses = {
947
+ /**
948
+ * 200 OK
949
+ */
950
+ 200: ApiTranslationBooks;
951
+ };
952
+ export type GetTranslationBooksResponse = GetTranslationBooksResponses[keyof GetTranslationBooksResponses];
953
+ export type GetTranslationBookChapterData = {
954
+ body?: never;
955
+ path: {
956
+ /**
957
+ * The translation ID of the Bible translation to get the books for. For example, "eng_kjv" for the King James Version.
958
+ */
959
+ translation: string;
960
+ /**
961
+ * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)
962
+ */
963
+ book: BookId;
964
+ /**
965
+ * The chapter number to get the content for. This should be a positive integer.
966
+ */
967
+ chapter: number;
968
+ };
969
+ query?: never;
970
+ url: '/api/{translation}/{book}/{chapter}.json';
971
+ };
972
+ export type GetTranslationBookChapterErrors = {
973
+ /**
974
+ * 404 Not Found - The specified translation, book, or chapter was not found.
975
+ */
976
+ 404: unknown;
977
+ };
978
+ export type GetTranslationBookChapterResponses = {
979
+ /**
980
+ * 200 OK
981
+ */
982
+ 200: ApiTranslationBookChapter;
983
+ };
984
+ export type GetTranslationBookChapterResponse = GetTranslationBookChapterResponses[keyof GetTranslationBookChapterResponses];
985
+ export type GetTranslationCompleteData = {
986
+ body?: never;
987
+ path: {
988
+ /**
989
+ * The translation ID of the Bible translation to get the books for. For example, "eng_kjv" for the King James Version.
990
+ */
991
+ translation: string;
992
+ };
993
+ query?: never;
994
+ url: '/api/{translation}/complete.json';
995
+ };
996
+ export type GetTranslationCompleteErrors = {
997
+ /**
998
+ * 404 Not Found - The specified translation was not found, or complete translations are not available.
999
+ */
1000
+ 404: unknown;
1001
+ };
1002
+ export type GetTranslationCompleteResponses = {
1003
+ /**
1004
+ * 200 OK
1005
+ */
1006
+ 200: ApiTranslationComplete;
1007
+ };
1008
+ export type GetTranslationCompleteResponse = GetTranslationCompleteResponses[keyof GetTranslationCompleteResponses];
1009
+ export type GetAvailableCommentariesData = {
1010
+ body?: never;
1011
+ path?: never;
1012
+ query?: never;
1013
+ url: '/api/available_commentaries.json';
1014
+ };
1015
+ export type GetAvailableCommentariesResponses = {
1016
+ /**
1017
+ * 200 OK
1018
+ */
1019
+ 200: ApiAvailableCommentaries;
1020
+ };
1021
+ export type GetAvailableCommentariesResponse = GetAvailableCommentariesResponses[keyof GetAvailableCommentariesResponses];
1022
+ export type GetCommentaryBooksData = {
1023
+ body?: never;
1024
+ path: {
1025
+ /**
1026
+ * The commentary ID of the commentary to get the books or chapter content for.
1027
+ */
1028
+ commentary: string;
1029
+ };
1030
+ query?: never;
1031
+ url: '/api/c/{commentary}/books.json';
1032
+ };
1033
+ export type GetCommentaryBooksErrors = {
1034
+ /**
1035
+ * 404 Not Found - The specified commentary was not found.
1036
+ */
1037
+ 404: unknown;
1038
+ };
1039
+ export type GetCommentaryBooksResponses = {
1040
+ /**
1041
+ * 200 OK
1042
+ */
1043
+ 200: ApiCommentaryBooks;
1044
+ };
1045
+ export type GetCommentaryBooksResponse = GetCommentaryBooksResponses[keyof GetCommentaryBooksResponses];
1046
+ export type GetCommentaryBookChapterData = {
1047
+ body?: never;
1048
+ path: {
1049
+ /**
1050
+ * The commentary ID of the commentary to get the books or chapter content for.
1051
+ */
1052
+ commentary: string;
1053
+ /**
1054
+ * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)
1055
+ */
1056
+ book: BookId;
1057
+ /**
1058
+ * The chapter number to get the content for. This should be a positive integer.
1059
+ */
1060
+ chapter: number;
1061
+ };
1062
+ query?: never;
1063
+ url: '/api/c/{commentary}/{book}/{chapter}.json';
1064
+ };
1065
+ export type GetCommentaryBookChapterErrors = {
1066
+ /**
1067
+ * 404 Not Found - The specified commentary, book, or chapter was not found.
1068
+ */
1069
+ 404: unknown;
1070
+ };
1071
+ export type GetCommentaryBookChapterResponses = {
1072
+ /**
1073
+ * 200 OK
1074
+ */
1075
+ 200: ApiCommentaryBookChapter;
1076
+ };
1077
+ export type GetCommentaryBookChapterResponse = GetCommentaryBookChapterResponses[keyof GetCommentaryBookChapterResponses];
1078
+ export type GetAvailableDatasetsData = {
1079
+ body?: never;
1080
+ path?: never;
1081
+ query?: never;
1082
+ url: '/api/available_datasets.json';
1083
+ };
1084
+ export type GetAvailableDatasetsResponses = {
1085
+ /**
1086
+ * 200 OK
1087
+ */
1088
+ 200: ApiAvailableDatasets;
1089
+ };
1090
+ export type GetAvailableDatasetsResponse = GetAvailableDatasetsResponses[keyof GetAvailableDatasetsResponses];
1091
+ export type GetDatasetBooksData = {
1092
+ body?: never;
1093
+ path: {
1094
+ /**
1095
+ * The dataset ID of the dataset to get the books or chapter content for.
1096
+ */
1097
+ dataset: string;
1098
+ };
1099
+ query?: never;
1100
+ url: '/api/d/{dataset}/books.json';
1101
+ };
1102
+ export type GetDatasetBooksErrors = {
1103
+ /**
1104
+ * 404 Not Found - The specified dataset was not found.
1105
+ */
1106
+ 404: unknown;
1107
+ };
1108
+ export type GetDatasetBooksResponses = {
1109
+ /**
1110
+ * 200 OK
1111
+ */
1112
+ 200: ApiDatasetBooks;
1113
+ };
1114
+ export type GetDatasetBooksResponse = GetDatasetBooksResponses[keyof GetDatasetBooksResponses];
1115
+ export type GetDatasetBookChapterData = {
1116
+ body?: never;
1117
+ path: {
1118
+ /**
1119
+ * The dataset ID of the dataset to get the books or chapter content for.
1120
+ */
1121
+ dataset: string;
1122
+ /**
1123
+ * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)
1124
+ */
1125
+ book: BookId;
1126
+ /**
1127
+ * The chapter number to get the content for. This should be a positive integer.
1128
+ */
1129
+ chapter: number;
1130
+ };
1131
+ query?: never;
1132
+ url: '/api/d/{dataset}/{book}/{chapter}.json';
1133
+ };
1134
+ export type GetDatasetBookChapterErrors = {
1135
+ /**
1136
+ * 404 Not Found - The specified dataset, book, or chapter was not found.
1137
+ */
1138
+ 404: unknown;
1139
+ };
1140
+ export type GetDatasetBookChapterResponses = {
1141
+ /**
1142
+ * 200 OK
1143
+ */
1144
+ 200: ApiDatasetBookChapter;
1145
+ };
1146
+ export type GetDatasetBookChapterResponse = GetDatasetBookChapterResponses[keyof GetDatasetBookChapterResponses];
1147
+ //# sourceMappingURL=types.gen.d.ts.map