free-use-bible-api 0.3.0 → 0.4.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../types.gen.ts"],
4
- "sourcesContent": ["// This file is auto-generated by @hey-api/openapi-ts\r\n\r\nexport type ClientOptions = {\r\n baseUrl: 'https://bible.helloao.org' | (string & {});\r\n};\r\n\r\n/**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\nexport type BookId =\r\n | 'GEN'\r\n | 'EXO'\r\n | 'LEV'\r\n | 'NUM'\r\n | 'DEU'\r\n | 'JOS'\r\n | 'JDG'\r\n | 'RUT'\r\n | '1SA'\r\n | '2SA'\r\n | '1KI'\r\n | '2KI'\r\n | '1CH'\r\n | '2CH'\r\n | 'EZR'\r\n | 'NEH'\r\n | 'EST'\r\n | 'JOB'\r\n | 'PSA'\r\n | 'PRO'\r\n | 'ECC'\r\n | 'SNG'\r\n | 'ISA'\r\n | 'JER'\r\n | 'LAM'\r\n | 'EZK'\r\n | 'DAN'\r\n | 'HOS'\r\n | 'JOL'\r\n | 'AMO'\r\n | 'OBA'\r\n | 'JON'\r\n | 'MIC'\r\n | 'NAM'\r\n | 'HAB'\r\n | 'ZEP'\r\n | 'HAG'\r\n | 'ZEC'\r\n | 'MAL'\r\n | 'MAT'\r\n | 'MRK'\r\n | 'LUK'\r\n | 'JHN'\r\n | 'ACT'\r\n | 'ROM'\r\n | '1CO'\r\n | '2CO'\r\n | 'GAL'\r\n | 'EPH'\r\n | 'PHP'\r\n | 'COL'\r\n | '1TH'\r\n | '2TH'\r\n | '1TI'\r\n | '2TI'\r\n | 'TIT'\r\n | 'PHM'\r\n | 'HEB'\r\n | 'JAS'\r\n | '1PE'\r\n | '2PE'\r\n | '1JN'\r\n | '2JN'\r\n | '3JN'\r\n | 'JUD'\r\n | 'REV'\r\n | 'TOB'\r\n | 'JDT'\r\n | 'ESG'\r\n | 'WIS'\r\n | 'SIR'\r\n | 'BAR'\r\n | 'LJE'\r\n | 'S3Y'\r\n | 'SUS'\r\n | 'BEL'\r\n | '1MA'\r\n | '2MA'\r\n | '3MA'\r\n | '4MA'\r\n | '1ES'\r\n | '2ES'\r\n | 'MAN'\r\n | 'PS2'\r\n | 'ODA'\r\n | 'PSS'\r\n | 'EZA'\r\n | '5EZ'\r\n | '6EZ'\r\n | 'DAG'\r\n | 'PS3'\r\n | '2BA'\r\n | 'LBA'\r\n | 'JUB'\r\n | 'ENO'\r\n | '1MQ'\r\n | '2MQ'\r\n | '3MQ'\r\n | 'REP'\r\n | '4BA'\r\n | 'LAO';\r\n\r\n/**\r\n * The list of available translations. Maps to the /api/available-translations.json endpoint.\r\n */\r\nexport type ApiAvailableTranslations = {\r\n /**\r\n * The list of translations that are available in the API.\r\n */\r\n translations: Array<ApiTranslation>;\r\n};\r\n\r\n/**\r\n * Defines a translation that is used in the API.\r\n */\r\nexport type ApiTranslation = {\r\n /**\r\n * The ID of the translation.\r\n */\r\n id: string;\r\n /**\r\n * The name of the translation.\r\n */\r\n name: string;\r\n /**\r\n * The website for the translation.\r\n */\r\n website: string;\r\n /**\r\n * The URL that the license for the translation can be found.\r\n */\r\n licenseUrl: string;\r\n /**\r\n * The API-added notes for the license.\r\n */\r\n licenseNotes?: string | null;\r\n /**\r\n * The notice that should be displayed when displaying content from the translation.\r\n */\r\n licenseNotice?: string | null;\r\n /**\r\n * The short name for the translation.\r\n */\r\n shortName?: string;\r\n /**\r\n * The English name for the translation.\r\n */\r\n englishName: string;\r\n /**\r\n * The ISO 639 3-letter language tag that the translation is primarily in.\r\n */\r\n language: string;\r\n /**\r\n * 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.\r\n */\r\n textDirection: 'ltr' | 'rtl';\r\n /**\r\n * The API link for the list of books for this translation. Relative to the API origin.\r\n */\r\n listOfBooksApiLink: string;\r\n availableFormats: Array<'json' | 'usfm'>;\r\n /**\r\n * The number of books that are contained in this translation. Complete translations should have the same number of books as the Bible (66).\r\n */\r\n numberOfBooks: number;\r\n /**\r\n * 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).\r\n */\r\n totalNumberOfChapters: number;\r\n /**\r\n * 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).\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The total number of apocryphal books that are contained in this translation.\r\n */\r\n numberOfApocryphalBooks?: number;\r\n /**\r\n * The total number of apocryphal chapters that are contained in this translation.\r\n */\r\n totalNumberOfApocryphalChapters?: number;\r\n /**\r\n * The total number of apocryphal verses that are contained in this translation.\r\n */\r\n totalNumberOfApocryphalVerses?: number;\r\n /**\r\n * Gets the name of the language that the translation is in. Null or undefined if the name of the language is not known.\r\n */\r\n languageName?: string;\r\n /**\r\n * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.\r\n */\r\n languageEnglishName?: string;\r\n /**\r\n * 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.\r\n */\r\n completeTranslationApiLink?: string;\r\n /**\r\n * The API link for downloading the complete translation as a single JSON file, using the simplified chapter format. Relative to the API origin. Undefined if complete translation files are not available.\r\n */\r\n simpleCompleteTranslationApiLink?: string;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about the books that are available for a translation.\r\n */\r\nexport type ApiTranslationBooks = {\r\n /**\r\n * The translation information for the books.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The list of books that are available for the translation.\r\n */\r\n books: Array<ApiTranslationBook>;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a translation book.\r\n */\r\nexport type ApiTranslationBook = {\r\n id: BookId;\r\n /**\r\n * The name that the translation provided for the book.\r\n */\r\n name: string;\r\n /**\r\n * The common name for the book.\r\n */\r\n commonName: string;\r\n /**\r\n * 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.\r\n */\r\n title: string | null;\r\n /**\r\n * The numerical order of the book in the translation.\r\n */\r\n order: number;\r\n /**\r\n * Whether the book is an apocryphal book.\r\n */\r\n isApocryphal?: boolean;\r\n /**\r\n * The number of the first chapter in the book.\r\n */\r\n firstChapterNumber: number;\r\n /**\r\n * The link to the first chapter of the book.\r\n */\r\n firstChapterApiLink: string;\r\n firstChapterReference: TranslationChapterReference;\r\n /**\r\n * The number of the last chapter in the book.\r\n */\r\n lastChapterNumber: number;\r\n /**\r\n * The link to the last chapter of the book.\r\n */\r\n lastChapterApiLink: string;\r\n lastChapterReference: TranslationChapterReference;\r\n /**\r\n * The number of chapters that the book contains.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The number of verses that the book contains.\r\n */\r\n totalNumberOfVerses: number;\r\n};\r\n\r\n/**\r\n * Defines a reference to a chapter in a translation.\r\n */\r\nexport type TranslationChapterReference = {\r\n /**\r\n * The ID of the translation that the chapter reference is for.\r\n */\r\n translationId: string;\r\n book: BookId;\r\n /**\r\n * The chapter number of the chapter reference.\r\n */\r\n chapter: number;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about a book chapter in a translation.\r\n */\r\nexport type ApiTranslationBookChapter = {\r\n /**\r\n * The information for the chapter.\r\n */\r\n chapter: {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<ChapterContent>;\r\n /**\r\n * The list of footnotes for the chapter.\r\n */\r\n footnotes: Array<ChapterFootnote>;\r\n };\r\n /**\r\n * The links to different audio versions for the chapter.\r\n */\r\n thisChapterAudioLinks: TranslationBookChapterAudioLinks;\r\n /**\r\n * The links to the audio timings for different audio versions for the chapter. Relative to the API origin.\r\n */\r\n thisChapterAudioTimings: {\r\n [key: string]: string;\r\n };\r\n /**\r\n * The translation information for the book chapter.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiTranslationBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: TranslationChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterReference: TranslationChapterReference | null;\r\n /**\r\n * 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.\r\n */\r\n nextChapterAudioLinks: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The links to the audio timings for different audio versions for the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterAudioTimings: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The links to the audio timings for different audio versions for the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterAudioTimings: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterReference: TranslationChapterReference | null;\r\n /**\r\n * 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.\r\n */\r\n previousChapterAudioLinks: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The link to the word-level annotations for this chapter. Relative to the API origin. Omitted if the chapter doesn't have any word-level annotations.\r\n */\r\n thisChapterWordsLink?: string;\r\n /**\r\n * The link to the word-level annotations for the next chapter. Relative to the API origin. Omitted if this is the last chapter in the translation, or if the next chapter doesn't have any word-level annotations.\r\n */\r\n nextChapterWordsLink?: string;\r\n /**\r\n * The link to the word-level annotations for the previous chapter. Relative to the API origin. Omitted if this is the first chapter in the translation, or if the previous chapter doesn't have any word-level annotations.\r\n */\r\n previousChapterWordsLink?: string;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The API link to the simplified version of this chapter. Relative to the API origin. Omitted if simplified chapters are not available.\r\n */\r\n simpleChapterApiLink?: string;\r\n};\r\n\r\n/**\r\n * 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.\r\n */\r\nexport type ChapterContent =\r\n | ({\r\n type: 'heading';\r\n } & ChapterHeading)\r\n | ({\r\n type: 'line_break';\r\n } & ChapterLineBreak)\r\n | ({\r\n type: 'verse';\r\n } & ChapterVerse)\r\n | ({\r\n type: 'hebrew_subtitle';\r\n } & ChapterHebrewSubtitle);\r\n\r\n/**\r\n * Defines the schema for a heading in a chapter.\r\n */\r\nexport type ChapterHeading = {\r\n type: 'heading';\r\n /**\r\n * The content for the heading. If multiple strings are included in the array, they should be concatenated with a space.\r\n */\r\n content: Array<string>;\r\n};\r\n\r\n/**\r\n * Defines the schema for a line break in a chapter.\r\n */\r\nexport type ChapterLineBreak = {\r\n type: 'line_break';\r\n};\r\n\r\n/**\r\n * Defines the schema for a verse in a chapter.\r\n */\r\nexport type ChapterVerse = {\r\n type: 'verse';\r\n /**\r\n * The number of the verse.\r\n */\r\n number: number;\r\n /**\r\n * The list of content for the verse. Each element in the list could be a string, formatted text, or a footnote reference.\r\n */\r\n content: Array<\r\n | string\r\n | FormattedText\r\n | InlineHeading\r\n | InlineLineBreak\r\n | VerseFootnoteReference\r\n >;\r\n};\r\n\r\n/**\r\n * Defines the schema for formatted text. That is, text that is formatted in a particular manner.\r\n */\r\nexport type FormattedText = {\r\n /**\r\n * The text that is formatted.\r\n */\r\n text: string;\r\n /**\r\n * Whether the text represents a poem. The number indicates the level of indent. Common in Psalms.\r\n */\r\n poem?: number;\r\n /**\r\n * Whether the text represents the Words of Jesus.\r\n */\r\n wordsOfJesus?: boolean;\r\n};\r\n\r\n/**\r\n * Defines the schema for a heading that is embedded in a verse.\r\n */\r\nexport type InlineHeading = {\r\n /**\r\n * The text of the heading.\r\n */\r\n heading: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for a line break that is embedded in a verse.\r\n */\r\nexport type InlineLineBreak = {\r\n lineBreak: true;\r\n};\r\n\r\n/**\r\n * Defines the schema for a footnote reference in a verse or a Hebrew Subtitle.\r\n */\r\nexport type VerseFootnoteReference = {\r\n /**\r\n * The ID of the note.\r\n */\r\n noteId: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for a Hebrew Subtitle in a chapter.\r\n */\r\nexport type ChapterHebrewSubtitle = {\r\n type: 'hebrew_subtitle';\r\n /**\r\n * The content that is contained in the subtitle. Each element in the list could be a string, formatted text, or a footnote reference.\r\n */\r\n content: Array<string | FormattedText | VerseFootnoteReference>;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a footnote.\r\n */\r\nexport type ChapterFootnote = {\r\n /**\r\n * The ID of the note that is referenced.\r\n */\r\n noteId: number;\r\n /**\r\n * The text of the footnote.\r\n */\r\n text: string;\r\n /**\r\n * The verse reference for the footnote. Undefined if the footnote isn't associated with a specific verse.\r\n */\r\n reference?: {\r\n chapter: number;\r\n verse: number;\r\n };\r\n /**\r\n * 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.\r\n */\r\n caller: '+' | string | null;\r\n};\r\n\r\n/**\r\n * Defines the schema for the audio links for a book chapter.\r\n */\r\nexport type TranslationBookChapterAudioLinks = {\r\n [key: string]: string;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about a book chapter in a translation, using the simplified chapter format.\r\n */\r\nexport type ApiSimpleTranslationBookChapter = {\r\n /**\r\n * The links to different audio versions for the chapter.\r\n */\r\n thisChapterAudioLinks: TranslationBookChapterAudioLinks;\r\n /**\r\n * The links to the audio timings for different audio versions for the chapter. Relative to the API origin.\r\n */\r\n thisChapterAudioTimings: {\r\n [key: string]: string;\r\n };\r\n /**\r\n * The translation information for the book chapter.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiTranslationBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: TranslationChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterReference: TranslationChapterReference | null;\r\n /**\r\n * 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.\r\n */\r\n nextChapterAudioLinks: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The links to the audio timings for different audio versions for the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterAudioTimings: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The links to the audio timings for different audio versions for the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterAudioTimings: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterReference: TranslationChapterReference | null;\r\n /**\r\n * 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.\r\n */\r\n previousChapterAudioLinks: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The link to the word-level annotations for this chapter. Relative to the API origin. Omitted if the chapter doesn't have any word-level annotations.\r\n */\r\n thisChapterWordsLink?: string;\r\n /**\r\n * The link to the word-level annotations for the next chapter. Relative to the API origin. Omitted if this is the last chapter in the translation, or if the next chapter doesn't have any word-level annotations.\r\n */\r\n nextChapterWordsLink?: string;\r\n /**\r\n * The link to the word-level annotations for the previous chapter. Relative to the API origin. Omitted if this is the first chapter in the translation, or if the previous chapter doesn't have any word-level annotations.\r\n */\r\n previousChapterWordsLink?: string;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The simplified information for the chapter. Each verse contains a single text string, and the footnotes and formatting are represented by offsets into that string.\r\n */\r\n chapter: SimpleChapterData;\r\n /**\r\n * The API link to the regular (non-simplified) version of this chapter. Relative to the API origin.\r\n */\r\n fullChapterApiLink: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for the data in a simplified chapter. Unlike the regular chapter format, each verse contains a single text string and the footnotes/formatting are represented by offsets into that string.\r\n */\r\nexport type SimpleChapterData = {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<SimpleChapterContent>;\r\n /**\r\n * The list of footnotes that could not be associated with a verse. Footnotes that belong to a verse are included on the verse itself, so this list is usually empty.\r\n */\r\n footnotes: Array<ChapterFootnote>;\r\n};\r\n\r\n/**\r\n * Defines a union type that represents a single piece of content in a simplified chapter. A piece of chapter content can be one of the following things: A heading, a line break, a verse, or a Hebrew Subtitle.\r\n */\r\nexport type SimpleChapterContent =\r\n | ({\r\n type: 'heading';\r\n } & SimpleChapterHeading)\r\n | ({\r\n type: 'line_break';\r\n } & ChapterLineBreak)\r\n | ({\r\n type: 'verse';\r\n } & SimpleChapterVerse)\r\n | ({\r\n type: 'hebrew_subtitle';\r\n } & SimpleChapterHebrewSubtitle);\r\n\r\n/**\r\n * Defines the schema for a heading in a simplified chapter.\r\n */\r\nexport type SimpleChapterHeading = {\r\n type: 'heading';\r\n /**\r\n * The text of the heading.\r\n */\r\n text: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for a verse in a simplified chapter.\r\n */\r\nexport type SimpleChapterVerse = {\r\n type: 'verse';\r\n /**\r\n * The number of the verse.\r\n */\r\n number: number;\r\n /**\r\n * The text of the verse. Lines of poetry and line breaks are separated by newline (\\n) characters.\r\n */\r\n text: string;\r\n /**\r\n * The footnotes that occur in the verse.\r\n */\r\n footnotes: Array<SimpleVerseFootnote>;\r\n /**\r\n * The headings that occur in the middle of the verse. Omitted if the verse contains no inline headings.\r\n */\r\n headings?: Array<SimpleInlineHeading>;\r\n /**\r\n * The ranges of the verse text that represent the Words of Jesus. Omitted if the verse contains none.\r\n */\r\n wordsOfJesus?: Array<SimpleTextRange>;\r\n /**\r\n * The ranges of the verse text that represent lines of poetry. Omitted if the verse contains none.\r\n */\r\n poem?: Array<SimplePoemRange>;\r\n};\r\n\r\n/**\r\n * Defines the schema for a footnote in a simplified verse. Unlike the footnotes in the regular chapter format, simplified footnotes include the position that they occur at in the verse text.\r\n */\r\nexport type SimpleVerseFootnote = {\r\n /**\r\n * The ID of the note.\r\n */\r\n noteId: number;\r\n /**\r\n * The index in the verse text that the footnote caller should be inserted at. Measured in UTF-16 code units.\r\n */\r\n offset: number;\r\n /**\r\n * The text of the footnote.\r\n */\r\n text: string;\r\n /**\r\n * The caller that should be used for the footnote. 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.\r\n */\r\n caller: '+' | string | null;\r\n};\r\n\r\n/**\r\n * Defines the schema for a heading that is embedded in a simplified verse.\r\n */\r\nexport type SimpleInlineHeading = {\r\n /**\r\n * The index in the verse text that the heading occurs at. Measured in UTF-16 code units.\r\n */\r\n offset: number;\r\n /**\r\n * The text of the heading.\r\n */\r\n text: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for a range of text inside a simplified verse. Ranges are expressed as offsets into the text of the verse that contains them, measured in UTF-16 code units.\r\n */\r\nexport type SimpleTextRange = {\r\n /**\r\n * The index of the first character of the range in the verse text. Measured in UTF-16 code units.\r\n */\r\n start: number;\r\n /**\r\n * The index after the last character of the range in the verse text. Measured in UTF-16 code units.\r\n */\r\n end: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for a range of text inside a simplified verse that represents a line of poetry.\r\n */\r\nexport type SimplePoemRange = {\r\n /**\r\n * The index of the first character of the range in the verse text. Measured in UTF-16 code units.\r\n */\r\n start: number;\r\n /**\r\n * The index after the last character of the range in the verse text. Measured in UTF-16 code units.\r\n */\r\n end: number;\r\n /**\r\n * The level of indent that the line of poetry should be displayed with.\r\n */\r\n level: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for a Hebrew Subtitle in a simplified chapter.\r\n */\r\nexport type SimpleChapterHebrewSubtitle = {\r\n /**\r\n * The text of the verse. Lines of poetry and line breaks are separated by newline (\\n) characters.\r\n */\r\n text: string;\r\n /**\r\n * The footnotes that occur in the verse.\r\n */\r\n footnotes: Array<SimpleVerseFootnote>;\r\n /**\r\n * The headings that occur in the middle of the verse. Omitted if the verse contains no inline headings.\r\n */\r\n headings?: Array<SimpleInlineHeading>;\r\n /**\r\n * The ranges of the verse text that represent the Words of Jesus. Omitted if the verse contains none.\r\n */\r\n wordsOfJesus?: Array<SimpleTextRange>;\r\n /**\r\n * The ranges of the verse text that represent lines of poetry. Omitted if the verse contains none.\r\n */\r\n poem?: Array<SimplePoemRange>;\r\n type: 'hebrew_subtitle';\r\n};\r\n\r\n/**\r\n * Defines an interface that contains the audio timings for a book chapter, for a specific reader.\r\n */\r\nexport type ApiTranslationBookChapterAudioTimings = {\r\n /**\r\n * The ID of the translation.\r\n */\r\n translationId: string;\r\n /**\r\n * The ID of the book.\r\n */\r\n bookId: string;\r\n /**\r\n * The number of the chapter.\r\n */\r\n chapterNumber: number;\r\n /**\r\n * The reader for the chapter.\r\n */\r\n reader: string;\r\n /**\r\n * The link to the audio for these timings.\r\n */\r\n audioLink: string;\r\n /**\r\n * The link to the information for this chapter.\r\n */\r\n thisChapterLink: string;\r\n /**\r\n * The link to the information for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterLink: string | null;\r\n /**\r\n * The link to the information for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterLink: string | null;\r\n /**\r\n * The link to this audio timings file.\r\n */\r\n thisChapterAudioTimingsLink: string;\r\n /**\r\n * The link to the timings for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterAudioTimingsLink: string | null;\r\n /**\r\n * The link to the timings for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterAudioTimingsLink: string | null;\r\n /**\r\n * The times in seconds at which each verse starts, in order. The first number (index 0) is the time in the recording at which the first verse starts.\r\n */\r\n verses: Array<number>;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains the word-level annotations for a book chapter.\r\n */\r\nexport type ApiTranslationBookChapterWords = {\r\n /**\r\n * The ID of the translation.\r\n */\r\n translationId: string;\r\n /**\r\n * The ID of the book.\r\n */\r\n bookId: string;\r\n /**\r\n * The number of the chapter.\r\n */\r\n chapterNumber: number;\r\n /**\r\n * The link to the information for this chapter.\r\n */\r\n thisChapterLink: string;\r\n /**\r\n * The link to the information for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterLink: string | null;\r\n /**\r\n * The link to the information for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterLink: string | null;\r\n /**\r\n * The link to this words file.\r\n */\r\n thisChapterWordsLink: string;\r\n /**\r\n * The link to the words for the next chapter. Null if this is the last chapter in the translation, or if the next chapter doesn't have any word-level annotations.\r\n */\r\n nextChapterWordsLink: string | null;\r\n /**\r\n * The link to the words for the previous chapter. Null if this is the first chapter in the translation, or if the previous chapter doesn't have any word-level annotations.\r\n */\r\n previousChapterWordsLink: string | null;\r\n /**\r\n * The annotated words for each verse in the chapter, keyed by verse number. Each list is in the order that the words occur in the verse.\r\n */\r\n verses: {\r\n [key: string]: Array<ChapterWord>;\r\n };\r\n};\r\n\r\n/**\r\n * Defines the schema for a word-level annotation in a chapter. The annotation is anchored to a range of characters in a single item of a verse's content.\r\n */\r\nexport type ChapterWord = {\r\n /**\r\n * The index of the item in the verse's content array that the annotation applies to.\r\n */\r\n contentIndex: number;\r\n /**\r\n * The index of the first character of the annotated word in the content item's text.\r\n */\r\n start: number;\r\n /**\r\n * The index after the last character of the annotated word in the content item's text. That is, text.slice(start, end) is the annotated word.\r\n */\r\n end: number;\r\n /**\r\n * The Strong's number(s) for the word. Omitted if the translation only provided other annotations for the word.\r\n */\r\n strongs?: Array<string>;\r\n /**\r\n * The dictionary (citation) form of the word. Omitted if the translation did not provide one.\r\n */\r\n lemma?: string;\r\n /**\r\n * The morphology parse code for the word. Omitted if the translation did not provide one.\r\n */\r\n morph?: string;\r\n /**\r\n * The pointer to the word in the source text, in the <sourceName>:<location> format. Omitted if the translation did not provide one.\r\n */\r\n srcloc?: string;\r\n /**\r\n * Which occurrence of the source word this word is. 1-based. Omitted if the translation did not provide one.\r\n */\r\n occurrence?: number;\r\n /**\r\n * The total number of times that the source word occurs. Omitted if the translation did not provide one.\r\n */\r\n occurrences?: number;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains the word-level annotations for a book chapter, with their offsets remapped onto the text of each simplified verse.\r\n */\r\nexport type ApiSimpleTranslationBookChapterWords = {\r\n /**\r\n * The ID of the translation.\r\n */\r\n translationId: string;\r\n /**\r\n * The ID of the book.\r\n */\r\n bookId: string;\r\n /**\r\n * The number of the chapter.\r\n */\r\n chapterNumber: number;\r\n /**\r\n * The link to the information for this chapter.\r\n */\r\n thisChapterLink: string;\r\n /**\r\n * The link to the information for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterLink: string | null;\r\n /**\r\n * The link to the information for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterLink: string | null;\r\n /**\r\n * The link to this words file.\r\n */\r\n thisChapterWordsLink: string;\r\n /**\r\n * The link to the words for the next chapter. Null if this is the last chapter in the translation, or if the next chapter doesn't have any word-level annotations.\r\n */\r\n nextChapterWordsLink: string | null;\r\n /**\r\n * The link to the words for the previous chapter. Null if this is the first chapter in the translation, or if the previous chapter doesn't have any word-level annotations.\r\n */\r\n previousChapterWordsLink: string | null;\r\n /**\r\n * The annotated words for each verse in the chapter, keyed by verse number. Each list is in the order that the words occur in the verse. The offsets are into the text of the simplified verse.\r\n */\r\n verses: {\r\n [key: string]: Array<SimpleChapterWord>;\r\n };\r\n};\r\n\r\n/**\r\n * Defines the schema for a word-level annotation in a simplified chapter. The annotation is anchored to a range of characters in the verse's text.\r\n */\r\nexport type SimpleChapterWord = {\r\n /**\r\n * The index of the first character of the annotated word in the content item's text.\r\n */\r\n start: number;\r\n /**\r\n * The index after the last character of the annotated word in the content item's text. That is, text.slice(start, end) is the annotated word.\r\n */\r\n end: number;\r\n /**\r\n * The Strong's number(s) for the word. Omitted if the translation only provided other annotations for the word.\r\n */\r\n strongs?: Array<string>;\r\n /**\r\n * The dictionary (citation) form of the word. Omitted if the translation did not provide one.\r\n */\r\n lemma?: string;\r\n /**\r\n * The morphology parse code for the word. Omitted if the translation did not provide one.\r\n */\r\n morph?: string;\r\n /**\r\n * The pointer to the word in the source text, in the <sourceName>:<location> format. Omitted if the translation did not provide one.\r\n */\r\n srcloc?: string;\r\n /**\r\n * Which occurrence of the source word this word is. 1-based. Omitted if the translation did not provide one.\r\n */\r\n occurrence?: number;\r\n /**\r\n * The total number of times that the source word occurs. Omitted if the translation did not provide one.\r\n */\r\n occurrences?: number;\r\n};\r\n\r\n/**\r\n * Defines the complete translation download data. Maps to the /api/:translationId/complete.json endpoint.\r\n */\r\nexport type ApiTranslationComplete = {\r\n /**\r\n * The translation metadata.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The complete list of books with all their chapters.\r\n */\r\n books: Array<ApiTranslationCompleteBook>;\r\n};\r\n\r\n/**\r\n * A book in the complete translation download.\r\n */\r\nexport type ApiTranslationCompleteBook = {\r\n id: BookId;\r\n /**\r\n * The name that the translation provided for the book.\r\n */\r\n name: string;\r\n /**\r\n * The common name for the book.\r\n */\r\n commonName: string;\r\n /**\r\n * 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.\r\n */\r\n title: string | null;\r\n /**\r\n * The numerical order of the book in the translation.\r\n */\r\n order: number;\r\n /**\r\n * Whether the book is an apocryphal book.\r\n */\r\n isApocryphal?: boolean;\r\n /**\r\n * The number of chapters in the book.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The total number of verses in the book.\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The complete list of chapters with all content.\r\n */\r\n chapters: Array<TranslationCompleteChapter>;\r\n};\r\n\r\n/**\r\n * A chapter in the complete translation download.\r\n */\r\nexport type TranslationCompleteChapter = {\r\n /**\r\n * The information for the chapter.\r\n */\r\n chapter: {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<ChapterContent>;\r\n /**\r\n * The list of footnotes for the chapter.\r\n */\r\n footnotes: Array<ChapterFootnote>;\r\n };\r\n /**\r\n * The links to different audio versions for the chapter.\r\n */\r\n thisChapterAudioLinks: TranslationBookChapterAudioLinks;\r\n /**\r\n * The audio timings (per-verse start times, in seconds) for different audio versions for the chapter.\r\n */\r\n thisChapterAudioTimings: TranslationBookChapterAudioTimings;\r\n /**\r\n * The word-level annotations (Strong's numbers and related source data) for the chapter's verses. Omitted if the translation doesn't have any word-level annotations for the chapter.\r\n */\r\n thisChapterWords?: TranslationBookChapterWords;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for the audio timings for a book chapter. Maps a reader ID to the list of times (in seconds) that each verse starts, in verse order.\r\n */\r\nexport type TranslationBookChapterAudioTimings = {\r\n [key: string]: Array<number>;\r\n};\r\n\r\n/**\r\n * Defines the schema for the word-level annotations for a book chapter. Maps a verse number to the list of annotated words in the verse, in order.\r\n */\r\nexport type TranslationBookChapterWords = {\r\n [key: string]: Array<ChapterWord>;\r\n};\r\n\r\n/**\r\n * Defines the complete translation download data, using the simplified chapter format. Maps to the /api/:translationId/complete.simple.json endpoint.\r\n */\r\nexport type ApiSimpleTranslationComplete = {\r\n /**\r\n * The translation metadata.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The complete list of books with all their chapters.\r\n */\r\n books: Array<ApiSimpleTranslationCompleteBook>;\r\n};\r\n\r\n/**\r\n * A book in the complete translation download, using the simplified chapter format.\r\n */\r\nexport type ApiSimpleTranslationCompleteBook = {\r\n id: BookId;\r\n /**\r\n * The name that the translation provided for the book.\r\n */\r\n name: string;\r\n /**\r\n * The common name for the book.\r\n */\r\n commonName: string;\r\n /**\r\n * 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.\r\n */\r\n title: string | null;\r\n /**\r\n * The numerical order of the book in the translation.\r\n */\r\n order: number;\r\n /**\r\n * Whether the book is an apocryphal book.\r\n */\r\n isApocryphal?: boolean;\r\n /**\r\n * The number of chapters in the book.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The total number of verses in the book.\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The complete list of chapters with all content.\r\n */\r\n chapters: Array<SimpleTranslationCompleteChapter>;\r\n};\r\n\r\n/**\r\n * A chapter in the complete translation download, using the simplified chapter format.\r\n */\r\nexport type SimpleTranslationCompleteChapter = {\r\n /**\r\n * The simplified information for the chapter.\r\n */\r\n chapter: SimpleChapterData;\r\n /**\r\n * The links to different audio versions for the chapter.\r\n */\r\n thisChapterAudioLinks: TranslationBookChapterAudioLinks;\r\n /**\r\n * The audio timings (per-verse start times, in seconds) for different audio versions for the chapter.\r\n */\r\n thisChapterAudioTimings: TranslationBookChapterAudioTimings;\r\n /**\r\n * The word-level annotations (Strong's numbers and related source data) for the chapter's verses, with their offsets remapped onto the simplified verse text. Omitted if the translation doesn't have any word-level annotations for the chapter.\r\n */\r\n thisChapterWords?: SimpleTranslationBookChapterWords;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for the word-level annotations for a book chapter, using the simplified format. Maps a verse number to the list of annotated words in the verse, in order.\r\n */\r\nexport type SimpleTranslationBookChapterWords = {\r\n [key: string]: Array<SimpleChapterWord>;\r\n};\r\n\r\n/**\r\n * The list of available commentaries. Maps to the /api/available-commentaries.json endpoint.\r\n */\r\nexport type ApiAvailableCommentaries = {\r\n /**\r\n * The list of commentaries that are available in the API.\r\n */\r\n commentaries: Array<ApiCommentary>;\r\n};\r\n\r\n/**\r\n * Defines a commentary that is used in the API.\r\n */\r\nexport type ApiCommentary = {\r\n /**\r\n * The ID of the commentary.\r\n */\r\n id: string;\r\n /**\r\n * The name of the commentary.\r\n */\r\n name: string;\r\n /**\r\n * The website for the commentary.\r\n */\r\n website: string;\r\n /**\r\n * The URL that the license for the commentary can be found.\r\n */\r\n licenseUrl: string;\r\n /**\r\n * The API-added notes for the license.\r\n */\r\n licenseNotes?: string | null;\r\n /**\r\n * The English name for the commentary.\r\n */\r\n englishName: string;\r\n /**\r\n * The ISO 639 3-letter language tag that the translation is primarily in.\r\n */\r\n language: string;\r\n /**\r\n * 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.\r\n */\r\n textDirection: 'ltr' | 'rtl';\r\n /**\r\n * The API link for the list of books for this commentary. Relative to the API origin.\r\n */\r\n listOfBooksApiLink: string;\r\n /**\r\n * The API link for the list of profiles for this commentary. Relative to the API origin.\r\n */\r\n listOfProfilesApiLink: string;\r\n availableFormats: Array<'json' | 'usfm'>;\r\n /**\r\n * The number of books that are contained in this commentary. Complete commentaries should have the same number of books as the Bible (66).\r\n */\r\n numberOfBooks: number;\r\n /**\r\n * 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).\r\n */\r\n totalNumberOfChapters: number;\r\n /**\r\n * 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).\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * 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.\r\n */\r\n totalNumberOfProfiles: number;\r\n /**\r\n * Gets the name of the language that the commentary is in. Null or undefined if the name of the language is not known.\r\n */\r\n languageName?: string;\r\n /**\r\n * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.\r\n */\r\n languageEnglishName?: string;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about the books that are available for a commentary.\r\n */\r\nexport type ApiCommentaryBooks = {\r\n /**\r\n * The commentary information for the books.\r\n */\r\n commentary: ApiCommentary;\r\n /**\r\n * The list of books that are available for the commentary.\r\n */\r\n books: Array<ApiCommentaryBook>;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a commentary book.\r\n */\r\nexport type ApiCommentaryBook = {\r\n id: BookId;\r\n /**\r\n * The name that the commentary provided for the book.\r\n */\r\n name: string;\r\n /**\r\n * The common name for the book.\r\n */\r\n commonName: string;\r\n /**\r\n * The commentary's introduction for the book. Undefined if the commentary didn't provide an introduction for the book.\r\n */\r\n introduction?: string;\r\n /**\r\n * The summary of the commentary's introduction for the book. Undefined if the commentary didn't provide a summary for the book.\r\n */\r\n introductionSummary?: string;\r\n /**\r\n * The order of the book in the Bible.\r\n */\r\n order: number;\r\n /**\r\n * The number of the first chapter in the book. Null if the comentary book has no chapters.\r\n */\r\n firstChapterNumber: number | null;\r\n /**\r\n * The link to the first chapter of the book. Null if the comentary book has no chapters.\r\n */\r\n firstChapterApiLink: string | null;\r\n /**\r\n * The reference for the first chapter in the book. Null if the comentary book has no chapters.\r\n */\r\n firstChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The number of the last chapter in the book. Null if the comentary book has no chapters.\r\n */\r\n lastChapterNumber: number | null;\r\n /**\r\n * The link to the last chapter of the book. Null if the comentary book has no chapters.\r\n */\r\n lastChapterApiLink: string | null;\r\n /**\r\n * The reference for the last chapter in the book. Null if the comentary book has no chapters.\r\n */\r\n lastChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The number of chapters that the book contains.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The number of verses that the book contains.\r\n */\r\n totalNumberOfVerses: number;\r\n};\r\n\r\n/**\r\n * Defines a reference to a chapter in a commentary.\r\n */\r\nexport type CommentaryChapterReference = {\r\n /**\r\n * The ID of the commentary that the chapter reference is for.\r\n */\r\n commentaryId: string;\r\n book: BookId;\r\n /**\r\n * The chapter number of the chapter reference.\r\n */\r\n chapter: number;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a book chapter in a commentary.\r\n */\r\nexport type ApiCommentaryBookChapter = {\r\n /**\r\n * The information for the chapter.\r\n */\r\n chapter: {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The introduction that the commentary provided to the chapter. Not all commentaries provide an introduction to a chapter.\r\n */\r\n introduction?: string;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<ChapterVerse>;\r\n };\r\n /**\r\n * The commentary information for the book chapter.\r\n */\r\n commentary: ApiCommentary;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiCommentaryBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: CommentaryChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the commentary.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the commentary.\r\n */\r\n nextChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the commentary.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the commentary.\r\n */\r\n previousChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The API link to the simplified version of this chapter. Relative to the API origin. Omitted if simplified chapters are not available.\r\n */\r\n simpleChapterApiLink?: string;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a book chapter in a commentary, using the simplified chapter format.\r\n */\r\nexport type ApiSimpleCommentaryBookChapter = {\r\n /**\r\n * The commentary information for the book chapter.\r\n */\r\n commentary: ApiCommentary;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiCommentaryBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: CommentaryChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the commentary.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the commentary.\r\n */\r\n nextChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the commentary.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the commentary.\r\n */\r\n previousChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The simplified information for the chapter. Each verse contains a single text string, and the footnotes and formatting are represented by offsets into that string.\r\n */\r\n chapter: SimpleCommentaryChapterData;\r\n /**\r\n * The API link to the regular (non-simplified) version of this chapter. Relative to the API origin.\r\n */\r\n fullChapterApiLink: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for the data in a simplified commentary chapter.\r\n */\r\nexport type SimpleCommentaryChapterData = {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The introduction that the commentary provided to the chapter. Not all commentaries provide an introduction to a chapter.\r\n */\r\n introduction?: string;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<SimpleChapterVerse>;\r\n};\r\n\r\n/**\r\n * The list of available datasets. Maps to the /api/available-datasets.json endpoint.\r\n */\r\nexport type ApiAvailableDatasets = {\r\n /**\r\n * The list of datasets that are available in the API.\r\n */\r\n datasets: Array<ApiDataset>;\r\n};\r\n\r\n/**\r\n * Defines a dataset that is used in the API.\r\n */\r\nexport type ApiDataset = {\r\n /**\r\n * The ID of the dataset.\r\n */\r\n id: string;\r\n /**\r\n * The name of the dataset.\r\n */\r\n name: string;\r\n /**\r\n * The website for the dataset.\r\n */\r\n website: string;\r\n /**\r\n * The URL that the license for the dataset can be found.\r\n */\r\n licenseUrl: string;\r\n /**\r\n * The API-added notes for the license.\r\n */\r\n licenseNotes?: string | null;\r\n /**\r\n * The English name for the dataset.\r\n */\r\n englishName: string;\r\n /**\r\n * The ISO 639 3-letter language tag that the dataset is primarily in.\r\n */\r\n language: string;\r\n /**\r\n * The direction that the language is written in.\r\n */\r\n textDirection: 'ltr' | 'rtl';\r\n /**\r\n * The API link for the list of books for this dataset. Relative to the API origin.\r\n */\r\n listOfBooksApiLink: string;\r\n availableFormats: Array<'json'>;\r\n /**\r\n * The number of books that are contained in this dataset.\r\n */\r\n numberOfBooks: number;\r\n /**\r\n * The total number of chapters that are contained in this dataset.\r\n */\r\n totalNumberOfChapters: number;\r\n /**\r\n * The total number of verses that are contained in this dataset.\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The total number of references that are contained in this dataset.\r\n */\r\n totalNumberOfReferences: number;\r\n /**\r\n * Gets the name of the language that the dataset is in. Null or undefined if the name of the language is not known.\r\n */\r\n languageName?: string;\r\n /**\r\n * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.\r\n */\r\n languageEnglishName?: string;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about the books that are available for a dataset.\r\n */\r\nexport type ApiDatasetBooks = {\r\n /**\r\n * The dataset information for the books.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The list of books that are available for the dataset.\r\n */\r\n books: Array<ApiDatasetBook>;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a book in a dataset.\r\n */\r\nexport type ApiDatasetBook = {\r\n id: BookId;\r\n /**\r\n * The order of the book in the Bible.\r\n */\r\n order: number;\r\n /**\r\n * The number of the first chapter in the book.\r\n */\r\n firstChapterNumber: number;\r\n /**\r\n * The link to the first chapter of the book.\r\n */\r\n firstChapterApiLink: string;\r\n firstChapterReference: DatasetChapterReference;\r\n /**\r\n * The number of the last chapter in the book.\r\n */\r\n lastChapterNumber: number;\r\n /**\r\n * The link to the last chapter of the book.\r\n */\r\n lastChapterApiLink: string;\r\n lastChapterReference: DatasetChapterReference;\r\n /**\r\n * The number of chapters that the book contains.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The number of verses that the book contains.\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The number of references that the book contains.\r\n */\r\n totalNumberOfReferences: number;\r\n};\r\n\r\n/**\r\n * Defines a reference to a chapter in a dataset.\r\n */\r\nexport type DatasetChapterReference = {\r\n /**\r\n * The ID of the dataset that the chapter reference is for.\r\n */\r\n datasetId: string;\r\n book: BookId;\r\n /**\r\n * The chapter number of the chapter reference.\r\n */\r\n chapter: number;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a book chapter in a dataset.\r\n */\r\nexport type ApiDatasetBookChapter = {\r\n /**\r\n * The data for the chapter.\r\n */\r\n chapter: DatasetChapterData;\r\n /**\r\n * The dataset information for the book chapter.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiDatasetBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: DatasetChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the dataset.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the dataset.\r\n */\r\n nextChapterReference: DatasetChapterReference | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the dataset.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the dataset.\r\n */\r\n previousChapterReference: DatasetChapterReference | null;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The number of references that the chapter contains.\r\n */\r\n numberOfReferences: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a chapter in a dataset.\r\n */\r\nexport type DatasetChapterData = {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<DatasetChapterVerseContent>;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a verse in a dataset chapter.\r\n */\r\nexport type DatasetChapterVerseContent = {\r\n /**\r\n * The number of the verse.\r\n */\r\n verse: number;\r\n /**\r\n * The list of references for the verse.\r\n */\r\n references: Array<ScoredVerseRef>;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a verse reference that has an arbitrary score attached to it.\r\n */\r\nexport type ScoredVerseRef = {\r\n book: BookId;\r\n /**\r\n * The chapter number that the reference starts at.\r\n */\r\n chapter: number;\r\n /**\r\n * The verse number that the reference starts at.\r\n */\r\n verse: number;\r\n /**\r\n * 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.\"\r\n */\r\n content?: string;\r\n /**\r\n * 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.\r\n */\r\n endChapter?: number;\r\n /**\r\n * 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.\r\n */\r\n endVerse?: number;\r\n /**\r\n * The score for the verse reference. The meaning of the score is arbitrary and is determined by the dataset.\r\n */\r\n score: number;\r\n};\r\n\r\nexport type GetAvailableTranslationsData = {\r\n body?: never;\r\n path?: never;\r\n query?: never;\r\n url: '/api/available_translations.json';\r\n};\r\n\r\nexport type GetAvailableTranslationsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiAvailableTranslations;\r\n};\r\n\r\nexport type GetAvailableTranslationsResponse =\r\n GetAvailableTranslationsResponses[keyof GetAvailableTranslationsResponses];\r\n\r\nexport type GetTranslationBooksData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/books.json';\r\n};\r\n\r\nexport type GetTranslationBooksErrors = {\r\n /**\r\n * 404 Not Found - The specified translation was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationBooksResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationBooks;\r\n};\r\n\r\nexport type GetTranslationBooksResponse =\r\n GetTranslationBooksResponses[keyof GetTranslationBooksResponses];\r\n\r\nexport type GetTranslationBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.json';\r\n};\r\n\r\nexport type GetTranslationBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationBookChapter;\r\n};\r\n\r\nexport type GetTranslationBookChapterResponse =\r\n GetTranslationBookChapterResponses[keyof GetTranslationBookChapterResponses];\r\n\r\nexport type GetSimpleTranslationBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.simple.json';\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiSimpleTranslationBookChapter;\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterResponse =\r\n GetSimpleTranslationBookChapterResponses[keyof GetSimpleTranslationBookChapterResponses];\r\n\r\nexport type GetTranslationBookChapterAudioTimingsData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n /**\r\n * The ID of the reader to get the audio timings for. For example, \"hays\" for the Hays reading of the Berean Standard Bible.\r\n */\r\n reader: string;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.{reader}.audioTimings.json';\r\n};\r\n\r\nexport type GetTranslationBookChapterAudioTimingsErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, chapter, or reader was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationBookChapterAudioTimingsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationBookChapterAudioTimings;\r\n};\r\n\r\nexport type GetTranslationBookChapterAudioTimingsResponse =\r\n GetTranslationBookChapterAudioTimingsResponses[keyof GetTranslationBookChapterAudioTimingsResponses];\r\n\r\nexport type GetTranslationBookChapterWordsData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.words.json';\r\n};\r\n\r\nexport type GetTranslationBookChapterWordsErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, or chapter was not found, or the chapter does not have any word-level annotations.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationBookChapterWordsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationBookChapterWords;\r\n};\r\n\r\nexport type GetTranslationBookChapterWordsResponse =\r\n GetTranslationBookChapterWordsResponses[keyof GetTranslationBookChapterWordsResponses];\r\n\r\nexport type GetSimpleTranslationBookChapterWordsData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.words.simple.json';\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterWordsErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, or chapter was not found, or the chapter does not have any word-level annotations.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterWordsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiSimpleTranslationBookChapterWords;\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterWordsResponse =\r\n GetSimpleTranslationBookChapterWordsResponses[keyof GetSimpleTranslationBookChapterWordsResponses];\r\n\r\nexport type GetTranslationCompleteData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/complete.json';\r\n};\r\n\r\nexport type GetTranslationCompleteErrors = {\r\n /**\r\n * 404 Not Found - The specified translation was not found, or complete translations are not available.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationCompleteResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationComplete;\r\n};\r\n\r\nexport type GetTranslationCompleteResponse =\r\n GetTranslationCompleteResponses[keyof GetTranslationCompleteResponses];\r\n\r\nexport type GetSimpleTranslationCompleteData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/complete.simple.json';\r\n};\r\n\r\nexport type GetSimpleTranslationCompleteErrors = {\r\n /**\r\n * 404 Not Found - The specified translation was not found, or complete translations are not available.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetSimpleTranslationCompleteResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiSimpleTranslationComplete;\r\n};\r\n\r\nexport type GetSimpleTranslationCompleteResponse =\r\n GetSimpleTranslationCompleteResponses[keyof GetSimpleTranslationCompleteResponses];\r\n\r\nexport type GetAvailableCommentariesData = {\r\n body?: never;\r\n path?: never;\r\n query?: never;\r\n url: '/api/available_commentaries.json';\r\n};\r\n\r\nexport type GetAvailableCommentariesResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiAvailableCommentaries;\r\n};\r\n\r\nexport type GetAvailableCommentariesResponse =\r\n GetAvailableCommentariesResponses[keyof GetAvailableCommentariesResponses];\r\n\r\nexport type GetCommentaryBooksData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The commentary ID of the commentary to get the books or chapter content for.\r\n */\r\n commentary: string;\r\n };\r\n query?: never;\r\n url: '/api/c/{commentary}/books.json';\r\n};\r\n\r\nexport type GetCommentaryBooksErrors = {\r\n /**\r\n * 404 Not Found - The specified commentary was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetCommentaryBooksResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiCommentaryBooks;\r\n};\r\n\r\nexport type GetCommentaryBooksResponse =\r\n GetCommentaryBooksResponses[keyof GetCommentaryBooksResponses];\r\n\r\nexport type GetCommentaryBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The commentary ID of the commentary to get the books or chapter content for.\r\n */\r\n commentary: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/c/{commentary}/{book}/{chapter}.json';\r\n};\r\n\r\nexport type GetCommentaryBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified commentary, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetCommentaryBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiCommentaryBookChapter;\r\n};\r\n\r\nexport type GetCommentaryBookChapterResponse =\r\n GetCommentaryBookChapterResponses[keyof GetCommentaryBookChapterResponses];\r\n\r\nexport type GetSimpleCommentaryBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The commentary ID of the commentary to get the books or chapter content for.\r\n */\r\n commentary: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/c/{commentary}/{book}/{chapter}.simple.json';\r\n};\r\n\r\nexport type GetSimpleCommentaryBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified commentary, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetSimpleCommentaryBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiSimpleCommentaryBookChapter;\r\n};\r\n\r\nexport type GetSimpleCommentaryBookChapterResponse =\r\n GetSimpleCommentaryBookChapterResponses[keyof GetSimpleCommentaryBookChapterResponses];\r\n\r\nexport type GetAvailableDatasetsData = {\r\n body?: never;\r\n path?: never;\r\n query?: never;\r\n url: '/api/available_datasets.json';\r\n};\r\n\r\nexport type GetAvailableDatasetsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiAvailableDatasets;\r\n};\r\n\r\nexport type GetAvailableDatasetsResponse =\r\n GetAvailableDatasetsResponses[keyof GetAvailableDatasetsResponses];\r\n\r\nexport type GetDatasetBooksData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/books.json';\r\n};\r\n\r\nexport type GetDatasetBooksErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetBooksResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetBooks;\r\n};\r\n\r\nexport type GetDatasetBooksResponse =\r\n GetDatasetBooksResponses[keyof GetDatasetBooksResponses];\r\n\r\nexport type GetDatasetBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/{book}/{chapter}.json';\r\n};\r\n\r\nexport type GetDatasetBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetBookChapter;\r\n};\r\n\r\nexport type GetDatasetBookChapterResponse =\r\n GetDatasetBookChapterResponses[keyof GetDatasetBookChapterResponses];\r\n"],
4
+ "sourcesContent": ["// This file is auto-generated by @hey-api/openapi-ts\r\n\r\nexport type ClientOptions = {\r\n baseUrl: 'https://bible.helloao.org' | (string & {});\r\n};\r\n\r\n/**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\nexport type BookId =\r\n | 'GEN'\r\n | 'EXO'\r\n | 'LEV'\r\n | 'NUM'\r\n | 'DEU'\r\n | 'JOS'\r\n | 'JDG'\r\n | 'RUT'\r\n | '1SA'\r\n | '2SA'\r\n | '1KI'\r\n | '2KI'\r\n | '1CH'\r\n | '2CH'\r\n | 'EZR'\r\n | 'NEH'\r\n | 'EST'\r\n | 'JOB'\r\n | 'PSA'\r\n | 'PRO'\r\n | 'ECC'\r\n | 'SNG'\r\n | 'ISA'\r\n | 'JER'\r\n | 'LAM'\r\n | 'EZK'\r\n | 'DAN'\r\n | 'HOS'\r\n | 'JOL'\r\n | 'AMO'\r\n | 'OBA'\r\n | 'JON'\r\n | 'MIC'\r\n | 'NAM'\r\n | 'HAB'\r\n | 'ZEP'\r\n | 'HAG'\r\n | 'ZEC'\r\n | 'MAL'\r\n | 'MAT'\r\n | 'MRK'\r\n | 'LUK'\r\n | 'JHN'\r\n | 'ACT'\r\n | 'ROM'\r\n | '1CO'\r\n | '2CO'\r\n | 'GAL'\r\n | 'EPH'\r\n | 'PHP'\r\n | 'COL'\r\n | '1TH'\r\n | '2TH'\r\n | '1TI'\r\n | '2TI'\r\n | 'TIT'\r\n | 'PHM'\r\n | 'HEB'\r\n | 'JAS'\r\n | '1PE'\r\n | '2PE'\r\n | '1JN'\r\n | '2JN'\r\n | '3JN'\r\n | 'JUD'\r\n | 'REV'\r\n | 'TOB'\r\n | 'JDT'\r\n | 'ESG'\r\n | 'WIS'\r\n | 'SIR'\r\n | 'BAR'\r\n | 'LJE'\r\n | 'S3Y'\r\n | 'SUS'\r\n | 'BEL'\r\n | '1MA'\r\n | '2MA'\r\n | '3MA'\r\n | '4MA'\r\n | '1ES'\r\n | '2ES'\r\n | 'MAN'\r\n | 'PS2'\r\n | 'ODA'\r\n | 'PSS'\r\n | 'EZA'\r\n | '5EZ'\r\n | '6EZ'\r\n | 'DAG'\r\n | 'PS3'\r\n | '2BA'\r\n | 'LBA'\r\n | 'JUB'\r\n | 'ENO'\r\n | '1MQ'\r\n | '2MQ'\r\n | '3MQ'\r\n | 'REP'\r\n | '4BA'\r\n | 'LAO';\r\n\r\n/**\r\n * The list of available translations. Maps to the /api/available-translations.json endpoint.\r\n */\r\nexport type ApiAvailableTranslations = {\r\n /**\r\n * The list of translations that are available in the API.\r\n */\r\n translations: Array<ApiTranslation>;\r\n};\r\n\r\n/**\r\n * Defines a translation that is used in the API.\r\n */\r\nexport type ApiTranslation = {\r\n /**\r\n * The ID of the translation.\r\n */\r\n id: string;\r\n /**\r\n * The name of the translation.\r\n */\r\n name: string;\r\n /**\r\n * The website for the translation.\r\n */\r\n website: string;\r\n /**\r\n * The URL that the license for the translation can be found.\r\n */\r\n licenseUrl: string;\r\n /**\r\n * The API-added notes for the license.\r\n */\r\n licenseNotes?: string | null;\r\n /**\r\n * The notice that should be displayed when displaying content from the translation.\r\n */\r\n licenseNotice?: string | null;\r\n /**\r\n * The short name for the translation.\r\n */\r\n shortName?: string;\r\n /**\r\n * The English name for the translation.\r\n */\r\n englishName: string;\r\n /**\r\n * The ISO 639 3-letter language tag that the translation is primarily in.\r\n */\r\n language: string;\r\n /**\r\n * 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.\r\n */\r\n textDirection: 'ltr' | 'rtl';\r\n /**\r\n * The API link for the list of books for this translation. Relative to the API origin.\r\n */\r\n listOfBooksApiLink: string;\r\n availableFormats: Array<'json' | 'usfm'>;\r\n /**\r\n * The number of books that are contained in this translation. Complete translations should have the same number of books as the Bible (66).\r\n */\r\n numberOfBooks: number;\r\n /**\r\n * 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).\r\n */\r\n totalNumberOfChapters: number;\r\n /**\r\n * 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).\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The total number of apocryphal books that are contained in this translation.\r\n */\r\n numberOfApocryphalBooks?: number;\r\n /**\r\n * The total number of apocryphal chapters that are contained in this translation.\r\n */\r\n totalNumberOfApocryphalChapters?: number;\r\n /**\r\n * The total number of apocryphal verses that are contained in this translation.\r\n */\r\n totalNumberOfApocryphalVerses?: number;\r\n /**\r\n * Gets the name of the language that the translation is in. Null or undefined if the name of the language is not known.\r\n */\r\n languageName?: string;\r\n /**\r\n * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.\r\n */\r\n languageEnglishName?: string;\r\n /**\r\n * 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.\r\n */\r\n completeTranslationApiLink?: string;\r\n /**\r\n * The API link for downloading the complete translation as a single JSON file, using the simplified chapter format. Relative to the API origin. Undefined if complete translation files are not available.\r\n */\r\n simpleCompleteTranslationApiLink?: string;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about the books that are available for a translation.\r\n */\r\nexport type ApiTranslationBooks = {\r\n /**\r\n * The translation information for the books.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The list of books that are available for the translation.\r\n */\r\n books: Array<ApiTranslationBook>;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a translation book.\r\n */\r\nexport type ApiTranslationBook = {\r\n id: BookId;\r\n /**\r\n * The name that the translation provided for the book.\r\n */\r\n name: string;\r\n /**\r\n * The common name for the book.\r\n */\r\n commonName: string;\r\n /**\r\n * 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.\r\n */\r\n title: string | null;\r\n /**\r\n * The numerical order of the book in the translation.\r\n */\r\n order: number;\r\n /**\r\n * Whether the book is an apocryphal book.\r\n */\r\n isApocryphal?: boolean;\r\n /**\r\n * The number of the first chapter in the book.\r\n */\r\n firstChapterNumber: number;\r\n /**\r\n * The link to the first chapter of the book.\r\n */\r\n firstChapterApiLink: string;\r\n firstChapterReference: TranslationChapterReference;\r\n /**\r\n * The number of the last chapter in the book.\r\n */\r\n lastChapterNumber: number;\r\n /**\r\n * The link to the last chapter of the book.\r\n */\r\n lastChapterApiLink: string;\r\n lastChapterReference: TranslationChapterReference;\r\n /**\r\n * The number of chapters that the book contains.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The number of verses that the book contains.\r\n */\r\n totalNumberOfVerses: number;\r\n};\r\n\r\n/**\r\n * Defines a reference to a chapter in a translation.\r\n */\r\nexport type TranslationChapterReference = {\r\n /**\r\n * The ID of the translation that the chapter reference is for.\r\n */\r\n translationId: string;\r\n book: BookId;\r\n /**\r\n * The chapter number of the chapter reference.\r\n */\r\n chapter: number;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about a book chapter in a translation.\r\n */\r\nexport type ApiTranslationBookChapter = {\r\n /**\r\n * The information for the chapter.\r\n */\r\n chapter: {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<ChapterContent>;\r\n /**\r\n * The list of footnotes for the chapter.\r\n */\r\n footnotes: Array<ChapterFootnote>;\r\n };\r\n /**\r\n * The links to different audio versions for the chapter.\r\n */\r\n thisChapterAudioLinks: TranslationBookChapterAudioLinks;\r\n /**\r\n * The links to the audio timings for different audio versions for the chapter. Relative to the API origin.\r\n */\r\n thisChapterAudioTimings: {\r\n [key: string]: string;\r\n };\r\n /**\r\n * The translation information for the book chapter.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiTranslationBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: TranslationChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterReference: TranslationChapterReference | null;\r\n /**\r\n * 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.\r\n */\r\n nextChapterAudioLinks: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The links to the audio timings for different audio versions for the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterAudioTimings: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The links to the audio timings for different audio versions for the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterAudioTimings: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterReference: TranslationChapterReference | null;\r\n /**\r\n * 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.\r\n */\r\n previousChapterAudioLinks: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The link to the word-level annotations for this chapter. Relative to the API origin. Omitted if the chapter doesn't have any word-level annotations.\r\n */\r\n thisChapterWordsLink?: string;\r\n /**\r\n * The link to the word-level annotations for the next chapter. Relative to the API origin. Omitted if this is the last chapter in the translation, or if the next chapter doesn't have any word-level annotations.\r\n */\r\n nextChapterWordsLink?: string;\r\n /**\r\n * The link to the word-level annotations for the previous chapter. Relative to the API origin. Omitted if this is the first chapter in the translation, or if the previous chapter doesn't have any word-level annotations.\r\n */\r\n previousChapterWordsLink?: string;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The API link to the simplified version of this chapter. Relative to the API origin. Omitted if simplified chapters are not available.\r\n */\r\n simpleChapterApiLink?: string;\r\n};\r\n\r\n/**\r\n * 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.\r\n */\r\nexport type ChapterContent =\r\n | ({\r\n type: 'heading';\r\n } & ChapterHeading)\r\n | ({\r\n type: 'line_break';\r\n } & ChapterLineBreak)\r\n | ({\r\n type: 'verse';\r\n } & ChapterVerse)\r\n | ({\r\n type: 'hebrew_subtitle';\r\n } & ChapterHebrewSubtitle);\r\n\r\n/**\r\n * Defines the schema for a heading in a chapter.\r\n */\r\nexport type ChapterHeading = {\r\n type: 'heading';\r\n /**\r\n * The content for the heading. If multiple strings are included in the array, they should be concatenated with a space.\r\n */\r\n content: Array<string>;\r\n};\r\n\r\n/**\r\n * Defines the schema for a line break in a chapter.\r\n */\r\nexport type ChapterLineBreak = {\r\n type: 'line_break';\r\n};\r\n\r\n/**\r\n * Defines the schema for a verse in a chapter.\r\n */\r\nexport type ChapterVerse = {\r\n type: 'verse';\r\n /**\r\n * The number of the verse.\r\n */\r\n number: number;\r\n /**\r\n * The list of content for the verse. Each element in the list could be a string, formatted text, or a footnote reference.\r\n */\r\n content: Array<\r\n | string\r\n | FormattedText\r\n | InlineHeading\r\n | InlineLineBreak\r\n | VerseFootnoteReference\r\n >;\r\n};\r\n\r\n/**\r\n * Defines the schema for formatted text. That is, text that is formatted in a particular manner.\r\n */\r\nexport type FormattedText = {\r\n /**\r\n * The text that is formatted.\r\n */\r\n text: string;\r\n /**\r\n * Whether the text represents a poem. The number indicates the level of indent. Common in Psalms.\r\n */\r\n poem?: number;\r\n /**\r\n * Whether the text represents the Words of Jesus.\r\n */\r\n wordsOfJesus?: boolean;\r\n};\r\n\r\n/**\r\n * Defines the schema for a heading that is embedded in a verse.\r\n */\r\nexport type InlineHeading = {\r\n /**\r\n * The text of the heading.\r\n */\r\n heading: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for a line break that is embedded in a verse.\r\n */\r\nexport type InlineLineBreak = {\r\n lineBreak: true;\r\n};\r\n\r\n/**\r\n * Defines the schema for a footnote reference in a verse or a Hebrew Subtitle.\r\n */\r\nexport type VerseFootnoteReference = {\r\n /**\r\n * The ID of the note.\r\n */\r\n noteId: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for a Hebrew Subtitle in a chapter.\r\n */\r\nexport type ChapterHebrewSubtitle = {\r\n type: 'hebrew_subtitle';\r\n /**\r\n * The content that is contained in the subtitle. Each element in the list could be a string, formatted text, or a footnote reference.\r\n */\r\n content: Array<string | FormattedText | VerseFootnoteReference>;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a footnote.\r\n */\r\nexport type ChapterFootnote = {\r\n /**\r\n * The ID of the note that is referenced.\r\n */\r\n noteId: number;\r\n /**\r\n * The text of the footnote.\r\n */\r\n text: string;\r\n /**\r\n * The verse reference for the footnote. Undefined if the footnote isn't associated with a specific verse.\r\n */\r\n reference?: {\r\n chapter: number;\r\n verse: number;\r\n };\r\n /**\r\n * 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.\r\n */\r\n caller: '+' | string | null;\r\n};\r\n\r\n/**\r\n * Defines the schema for the audio links for a book chapter.\r\n */\r\nexport type TranslationBookChapterAudioLinks = {\r\n [key: string]: string;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about a book chapter in a translation, using the simplified chapter format.\r\n */\r\nexport type ApiSimpleTranslationBookChapter = {\r\n /**\r\n * The links to different audio versions for the chapter.\r\n */\r\n thisChapterAudioLinks: TranslationBookChapterAudioLinks;\r\n /**\r\n * The links to the audio timings for different audio versions for the chapter. Relative to the API origin.\r\n */\r\n thisChapterAudioTimings: {\r\n [key: string]: string;\r\n };\r\n /**\r\n * The translation information for the book chapter.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiTranslationBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: TranslationChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterReference: TranslationChapterReference | null;\r\n /**\r\n * 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.\r\n */\r\n nextChapterAudioLinks: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The links to the audio timings for different audio versions for the next chapter. Relative to the API origin. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterAudioTimings: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The links to the audio timings for different audio versions for the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterAudioTimings: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterReference: TranslationChapterReference | null;\r\n /**\r\n * 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.\r\n */\r\n previousChapterAudioLinks: {\r\n [key: string]: string;\r\n } | null;\r\n /**\r\n * The link to the word-level annotations for this chapter. Relative to the API origin. Omitted if the chapter doesn't have any word-level annotations.\r\n */\r\n thisChapterWordsLink?: string;\r\n /**\r\n * The link to the word-level annotations for the next chapter. Relative to the API origin. Omitted if this is the last chapter in the translation, or if the next chapter doesn't have any word-level annotations.\r\n */\r\n nextChapterWordsLink?: string;\r\n /**\r\n * The link to the word-level annotations for the previous chapter. Relative to the API origin. Omitted if this is the first chapter in the translation, or if the previous chapter doesn't have any word-level annotations.\r\n */\r\n previousChapterWordsLink?: string;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The simplified information for the chapter. Each verse contains a single text string, and the footnotes and formatting are represented by offsets into that string.\r\n */\r\n chapter: SimpleChapterData;\r\n /**\r\n * The API link to the regular (non-simplified) version of this chapter. Relative to the API origin.\r\n */\r\n fullChapterApiLink: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for the data in a simplified chapter. Unlike the regular chapter format, each verse contains a single text string and the footnotes/formatting are represented by offsets into that string.\r\n */\r\nexport type SimpleChapterData = {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<SimpleChapterContent>;\r\n /**\r\n * The list of footnotes that could not be associated with a verse. Footnotes that belong to a verse are included on the verse itself, so this list is usually empty.\r\n */\r\n footnotes: Array<ChapterFootnote>;\r\n};\r\n\r\n/**\r\n * Defines a union type that represents a single piece of content in a simplified chapter. A piece of chapter content can be one of the following things: A heading, a line break, a verse, or a Hebrew Subtitle.\r\n */\r\nexport type SimpleChapterContent =\r\n | ({\r\n type: 'heading';\r\n } & SimpleChapterHeading)\r\n | ({\r\n type: 'line_break';\r\n } & ChapterLineBreak)\r\n | ({\r\n type: 'verse';\r\n } & SimpleChapterVerse)\r\n | ({\r\n type: 'hebrew_subtitle';\r\n } & SimpleChapterHebrewSubtitle);\r\n\r\n/**\r\n * Defines the schema for a heading in a simplified chapter.\r\n */\r\nexport type SimpleChapterHeading = {\r\n type: 'heading';\r\n /**\r\n * The text of the heading.\r\n */\r\n text: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for a verse in a simplified chapter.\r\n */\r\nexport type SimpleChapterVerse = {\r\n type: 'verse';\r\n /**\r\n * The number of the verse.\r\n */\r\n number: number;\r\n /**\r\n * The text of the verse. Lines of poetry and line breaks are separated by newline (\\n) characters.\r\n */\r\n text: string;\r\n /**\r\n * The footnotes that occur in the verse.\r\n */\r\n footnotes: Array<SimpleVerseFootnote>;\r\n /**\r\n * The headings that occur in the middle of the verse. Omitted if the verse contains no inline headings.\r\n */\r\n headings?: Array<SimpleInlineHeading>;\r\n /**\r\n * The ranges of the verse text that represent the Words of Jesus. Omitted if the verse contains none.\r\n */\r\n wordsOfJesus?: Array<SimpleTextRange>;\r\n /**\r\n * The ranges of the verse text that represent lines of poetry. Omitted if the verse contains none.\r\n */\r\n poem?: Array<SimplePoemRange>;\r\n};\r\n\r\n/**\r\n * Defines the schema for a footnote in a simplified verse. Unlike the footnotes in the regular chapter format, simplified footnotes include the position that they occur at in the verse text.\r\n */\r\nexport type SimpleVerseFootnote = {\r\n /**\r\n * The ID of the note.\r\n */\r\n noteId: number;\r\n /**\r\n * The index in the verse text that the footnote caller should be inserted at. Measured in UTF-16 code units.\r\n */\r\n offset: number;\r\n /**\r\n * The text of the footnote.\r\n */\r\n text: string;\r\n /**\r\n * The caller that should be used for the footnote. 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.\r\n */\r\n caller: '+' | string | null;\r\n};\r\n\r\n/**\r\n * Defines the schema for a heading that is embedded in a simplified verse.\r\n */\r\nexport type SimpleInlineHeading = {\r\n /**\r\n * The index in the verse text that the heading occurs at. Measured in UTF-16 code units.\r\n */\r\n offset: number;\r\n /**\r\n * The text of the heading.\r\n */\r\n text: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for a range of text inside a simplified verse. Ranges are expressed as offsets into the text of the verse that contains them, measured in UTF-16 code units.\r\n */\r\nexport type SimpleTextRange = {\r\n /**\r\n * The index of the first character of the range in the verse text. Measured in UTF-16 code units.\r\n */\r\n start: number;\r\n /**\r\n * The index after the last character of the range in the verse text. Measured in UTF-16 code units.\r\n */\r\n end: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for a range of text inside a simplified verse that represents a line of poetry.\r\n */\r\nexport type SimplePoemRange = {\r\n /**\r\n * The index of the first character of the range in the verse text. Measured in UTF-16 code units.\r\n */\r\n start: number;\r\n /**\r\n * The index after the last character of the range in the verse text. Measured in UTF-16 code units.\r\n */\r\n end: number;\r\n /**\r\n * The level of indent that the line of poetry should be displayed with.\r\n */\r\n level: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for a Hebrew Subtitle in a simplified chapter.\r\n */\r\nexport type SimpleChapterHebrewSubtitle = {\r\n /**\r\n * The text of the verse. Lines of poetry and line breaks are separated by newline (\\n) characters.\r\n */\r\n text: string;\r\n /**\r\n * The footnotes that occur in the verse.\r\n */\r\n footnotes: Array<SimpleVerseFootnote>;\r\n /**\r\n * The headings that occur in the middle of the verse. Omitted if the verse contains no inline headings.\r\n */\r\n headings?: Array<SimpleInlineHeading>;\r\n /**\r\n * The ranges of the verse text that represent the Words of Jesus. Omitted if the verse contains none.\r\n */\r\n wordsOfJesus?: Array<SimpleTextRange>;\r\n /**\r\n * The ranges of the verse text that represent lines of poetry. Omitted if the verse contains none.\r\n */\r\n poem?: Array<SimplePoemRange>;\r\n type: 'hebrew_subtitle';\r\n};\r\n\r\n/**\r\n * Defines an interface that contains the audio timings for a book chapter, for a specific reader.\r\n */\r\nexport type ApiTranslationBookChapterAudioTimings = {\r\n /**\r\n * The ID of the translation.\r\n */\r\n translationId: string;\r\n /**\r\n * The ID of the book.\r\n */\r\n bookId: string;\r\n /**\r\n * The number of the chapter.\r\n */\r\n chapterNumber: number;\r\n /**\r\n * The reader for the chapter.\r\n */\r\n reader: string;\r\n /**\r\n * The link to the audio for these timings.\r\n */\r\n audioLink: string;\r\n /**\r\n * The link to the information for this chapter.\r\n */\r\n thisChapterLink: string;\r\n /**\r\n * The link to the information for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterLink: string | null;\r\n /**\r\n * The link to the information for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterLink: string | null;\r\n /**\r\n * The link to this audio timings file.\r\n */\r\n thisChapterAudioTimingsLink: string;\r\n /**\r\n * The link to the timings for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterAudioTimingsLink: string | null;\r\n /**\r\n * The link to the timings for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterAudioTimingsLink: string | null;\r\n /**\r\n * The times in seconds at which each verse starts, in order. The first number (index 0) is the time in the recording at which the first verse starts.\r\n */\r\n verses: Array<number>;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains the word-level annotations for a book chapter.\r\n */\r\nexport type ApiTranslationBookChapterWords = {\r\n /**\r\n * The ID of the translation.\r\n */\r\n translationId: string;\r\n /**\r\n * The ID of the book.\r\n */\r\n bookId: string;\r\n /**\r\n * The number of the chapter.\r\n */\r\n chapterNumber: number;\r\n /**\r\n * The link to the information for this chapter.\r\n */\r\n thisChapterLink: string;\r\n /**\r\n * The link to the information for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterLink: string | null;\r\n /**\r\n * The link to the information for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterLink: string | null;\r\n /**\r\n * The link to this words file.\r\n */\r\n thisChapterWordsLink: string;\r\n /**\r\n * The link to the words for the next chapter. Null if this is the last chapter in the translation, or if the next chapter doesn't have any word-level annotations.\r\n */\r\n nextChapterWordsLink: string | null;\r\n /**\r\n * The link to the words for the previous chapter. Null if this is the first chapter in the translation, or if the previous chapter doesn't have any word-level annotations.\r\n */\r\n previousChapterWordsLink: string | null;\r\n /**\r\n * The annotated words for each verse in the chapter, keyed by verse number. Each list is in the order that the words occur in the verse.\r\n */\r\n verses: {\r\n [key: string]: Array<ChapterWord>;\r\n };\r\n};\r\n\r\n/**\r\n * Defines the schema for a word-level annotation in a chapter. The annotation is anchored to a range of characters in a single item of a verse's content.\r\n */\r\nexport type ChapterWord = {\r\n /**\r\n * The index of the item in the verse's content array that the annotation applies to.\r\n */\r\n contentIndex: number;\r\n /**\r\n * The index of the first character of the annotated word in the content item's text.\r\n */\r\n start: number;\r\n /**\r\n * The index after the last character of the annotated word in the content item's text. That is, text.slice(start, end) is the annotated word.\r\n */\r\n end: number;\r\n /**\r\n * The Strong's number(s) for the word. Omitted if the translation only provided other annotations for the word.\r\n */\r\n strongs?: Array<string>;\r\n /**\r\n * The dictionary (citation) form of the word. Omitted if the translation did not provide one.\r\n */\r\n lemma?: string;\r\n /**\r\n * The morphology parse code for the word. Omitted if the translation did not provide one.\r\n */\r\n morph?: string;\r\n /**\r\n * The pointer to the word in the source text, in the <sourceName>:<location> format. Omitted if the translation did not provide one.\r\n */\r\n srcloc?: string;\r\n /**\r\n * Which occurrence of the source word this word is. 1-based. Omitted if the translation did not provide one.\r\n */\r\n occurrence?: number;\r\n /**\r\n * The total number of times that the source word occurs. Omitted if the translation did not provide one.\r\n */\r\n occurrences?: number;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains the word-level annotations for a book chapter, with their offsets remapped onto the text of each simplified verse.\r\n */\r\nexport type ApiSimpleTranslationBookChapterWords = {\r\n /**\r\n * The ID of the translation.\r\n */\r\n translationId: string;\r\n /**\r\n * The ID of the book.\r\n */\r\n bookId: string;\r\n /**\r\n * The number of the chapter.\r\n */\r\n chapterNumber: number;\r\n /**\r\n * The link to the information for this chapter.\r\n */\r\n thisChapterLink: string;\r\n /**\r\n * The link to the information for the next chapter. Null if this is the last chapter in the translation.\r\n */\r\n nextChapterLink: string | null;\r\n /**\r\n * The link to the information for the previous chapter. Null if this is the first chapter in the translation.\r\n */\r\n previousChapterLink: string | null;\r\n /**\r\n * The link to this words file.\r\n */\r\n thisChapterWordsLink: string;\r\n /**\r\n * The link to the words for the next chapter. Null if this is the last chapter in the translation, or if the next chapter doesn't have any word-level annotations.\r\n */\r\n nextChapterWordsLink: string | null;\r\n /**\r\n * The link to the words for the previous chapter. Null if this is the first chapter in the translation, or if the previous chapter doesn't have any word-level annotations.\r\n */\r\n previousChapterWordsLink: string | null;\r\n /**\r\n * The annotated words for each verse in the chapter, keyed by verse number. Each list is in the order that the words occur in the verse. The offsets are into the text of the simplified verse.\r\n */\r\n verses: {\r\n [key: string]: Array<SimpleChapterWord>;\r\n };\r\n};\r\n\r\n/**\r\n * Defines the schema for a word-level annotation in a simplified chapter. The annotation is anchored to a range of characters in the verse's text.\r\n */\r\nexport type SimpleChapterWord = {\r\n /**\r\n * The index of the first character of the annotated word in the content item's text.\r\n */\r\n start: number;\r\n /**\r\n * The index after the last character of the annotated word in the content item's text. That is, text.slice(start, end) is the annotated word.\r\n */\r\n end: number;\r\n /**\r\n * The Strong's number(s) for the word. Omitted if the translation only provided other annotations for the word.\r\n */\r\n strongs?: Array<string>;\r\n /**\r\n * The dictionary (citation) form of the word. Omitted if the translation did not provide one.\r\n */\r\n lemma?: string;\r\n /**\r\n * The morphology parse code for the word. Omitted if the translation did not provide one.\r\n */\r\n morph?: string;\r\n /**\r\n * The pointer to the word in the source text, in the <sourceName>:<location> format. Omitted if the translation did not provide one.\r\n */\r\n srcloc?: string;\r\n /**\r\n * Which occurrence of the source word this word is. 1-based. Omitted if the translation did not provide one.\r\n */\r\n occurrence?: number;\r\n /**\r\n * The total number of times that the source word occurs. Omitted if the translation did not provide one.\r\n */\r\n occurrences?: number;\r\n};\r\n\r\n/**\r\n * Defines the complete translation download data. Maps to the /api/:translationId/complete.json endpoint.\r\n */\r\nexport type ApiTranslationComplete = {\r\n /**\r\n * The translation metadata.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The complete list of books with all their chapters.\r\n */\r\n books: Array<ApiTranslationCompleteBook>;\r\n};\r\n\r\n/**\r\n * A book in the complete translation download.\r\n */\r\nexport type ApiTranslationCompleteBook = {\r\n id: BookId;\r\n /**\r\n * The name that the translation provided for the book.\r\n */\r\n name: string;\r\n /**\r\n * The common name for the book.\r\n */\r\n commonName: string;\r\n /**\r\n * 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.\r\n */\r\n title: string | null;\r\n /**\r\n * The numerical order of the book in the translation.\r\n */\r\n order: number;\r\n /**\r\n * Whether the book is an apocryphal book.\r\n */\r\n isApocryphal?: boolean;\r\n /**\r\n * The number of chapters in the book.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The total number of verses in the book.\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The complete list of chapters with all content.\r\n */\r\n chapters: Array<TranslationCompleteChapter>;\r\n};\r\n\r\n/**\r\n * A chapter in the complete translation download.\r\n */\r\nexport type TranslationCompleteChapter = {\r\n /**\r\n * The information for the chapter.\r\n */\r\n chapter: {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<ChapterContent>;\r\n /**\r\n * The list of footnotes for the chapter.\r\n */\r\n footnotes: Array<ChapterFootnote>;\r\n };\r\n /**\r\n * The links to different audio versions for the chapter.\r\n */\r\n thisChapterAudioLinks: TranslationBookChapterAudioLinks;\r\n /**\r\n * The audio timings (per-verse start times, in seconds) for different audio versions for the chapter.\r\n */\r\n thisChapterAudioTimings: TranslationBookChapterAudioTimings;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The link to the word-level annotations for this chapter. Relative to the API origin. Omitted if the chapter doesn't have any word-level annotations.\r\n */\r\n thisChapterWordsLink?: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for the audio timings for a book chapter. Maps a reader ID to the list of times (in seconds) that each verse starts, in verse order.\r\n */\r\nexport type TranslationBookChapterAudioTimings = {\r\n [key: string]: Array<number>;\r\n};\r\n\r\n/**\r\n * Defines the complete translation download data, using the simplified chapter format. Maps to the /api/:translationId/complete.simple.json endpoint.\r\n */\r\nexport type ApiSimpleTranslationComplete = {\r\n /**\r\n * The translation metadata.\r\n */\r\n translation: ApiTranslation;\r\n /**\r\n * The complete list of books with all their chapters.\r\n */\r\n books: Array<ApiSimpleTranslationCompleteBook>;\r\n};\r\n\r\n/**\r\n * A book in the complete translation download, using the simplified chapter format.\r\n */\r\nexport type ApiSimpleTranslationCompleteBook = {\r\n id: BookId;\r\n /**\r\n * The name that the translation provided for the book.\r\n */\r\n name: string;\r\n /**\r\n * The common name for the book.\r\n */\r\n commonName: string;\r\n /**\r\n * 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.\r\n */\r\n title: string | null;\r\n /**\r\n * The numerical order of the book in the translation.\r\n */\r\n order: number;\r\n /**\r\n * Whether the book is an apocryphal book.\r\n */\r\n isApocryphal?: boolean;\r\n /**\r\n * The number of chapters in the book.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The total number of verses in the book.\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The complete list of chapters with all content.\r\n */\r\n chapters: Array<SimpleTranslationCompleteChapter>;\r\n};\r\n\r\n/**\r\n * A chapter in the complete translation download, using the simplified chapter format.\r\n */\r\nexport type SimpleTranslationCompleteChapter = {\r\n /**\r\n * The simplified information for the chapter.\r\n */\r\n chapter: SimpleChapterData;\r\n /**\r\n * The links to different audio versions for the chapter.\r\n */\r\n thisChapterAudioLinks: TranslationBookChapterAudioLinks;\r\n /**\r\n * The audio timings (per-verse start times, in seconds) for different audio versions for the chapter.\r\n */\r\n thisChapterAudioTimings: TranslationBookChapterAudioTimings;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The link to the word-level annotations for this chapter. Relative to the API origin. Omitted if the chapter doesn't have any word-level annotations.\r\n */\r\n thisChapterWordsLink?: string;\r\n};\r\n\r\n/**\r\n * The list of available commentaries. Maps to the /api/available-commentaries.json endpoint.\r\n */\r\nexport type ApiAvailableCommentaries = {\r\n /**\r\n * The list of commentaries that are available in the API.\r\n */\r\n commentaries: Array<ApiCommentary>;\r\n};\r\n\r\n/**\r\n * Defines a commentary that is used in the API.\r\n */\r\nexport type ApiCommentary = {\r\n /**\r\n * The ID of the commentary.\r\n */\r\n id: string;\r\n /**\r\n * The name of the commentary.\r\n */\r\n name: string;\r\n /**\r\n * The website for the commentary.\r\n */\r\n website: string;\r\n /**\r\n * The URL that the license for the commentary can be found.\r\n */\r\n licenseUrl: string;\r\n /**\r\n * The API-added notes for the license.\r\n */\r\n licenseNotes?: string | null;\r\n /**\r\n * The English name for the commentary.\r\n */\r\n englishName: string;\r\n /**\r\n * The ISO 639 3-letter language tag that the translation is primarily in.\r\n */\r\n language: string;\r\n /**\r\n * 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.\r\n */\r\n textDirection: 'ltr' | 'rtl';\r\n /**\r\n * The API link for the list of books for this commentary. Relative to the API origin.\r\n */\r\n listOfBooksApiLink: string;\r\n /**\r\n * The API link for the list of profiles for this commentary. Relative to the API origin.\r\n */\r\n listOfProfilesApiLink: string;\r\n availableFormats: Array<'json' | 'usfm'>;\r\n /**\r\n * The number of books that are contained in this commentary. Complete commentaries should have the same number of books as the Bible (66).\r\n */\r\n numberOfBooks: number;\r\n /**\r\n * 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).\r\n */\r\n totalNumberOfChapters: number;\r\n /**\r\n * 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).\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * 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.\r\n */\r\n totalNumberOfProfiles: number;\r\n /**\r\n * Gets the name of the language that the commentary is in. Null or undefined if the name of the language is not known.\r\n */\r\n languageName?: string;\r\n /**\r\n * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.\r\n */\r\n languageEnglishName?: string;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about the books that are available for a commentary.\r\n */\r\nexport type ApiCommentaryBooks = {\r\n /**\r\n * The commentary information for the books.\r\n */\r\n commentary: ApiCommentary;\r\n /**\r\n * The list of books that are available for the commentary.\r\n */\r\n books: Array<ApiCommentaryBook>;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a commentary book.\r\n */\r\nexport type ApiCommentaryBook = {\r\n id: BookId;\r\n /**\r\n * The name that the commentary provided for the book.\r\n */\r\n name: string;\r\n /**\r\n * The common name for the book.\r\n */\r\n commonName: string;\r\n /**\r\n * The commentary's introduction for the book. Undefined if the commentary didn't provide an introduction for the book.\r\n */\r\n introduction?: string;\r\n /**\r\n * The summary of the commentary's introduction for the book. Undefined if the commentary didn't provide a summary for the book.\r\n */\r\n introductionSummary?: string;\r\n /**\r\n * The order of the book in the Bible.\r\n */\r\n order: number;\r\n /**\r\n * The number of the first chapter in the book. Null if the comentary book has no chapters.\r\n */\r\n firstChapterNumber: number | null;\r\n /**\r\n * The link to the first chapter of the book. Null if the comentary book has no chapters.\r\n */\r\n firstChapterApiLink: string | null;\r\n /**\r\n * The reference for the first chapter in the book. Null if the comentary book has no chapters.\r\n */\r\n firstChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The number of the last chapter in the book. Null if the comentary book has no chapters.\r\n */\r\n lastChapterNumber: number | null;\r\n /**\r\n * The link to the last chapter of the book. Null if the comentary book has no chapters.\r\n */\r\n lastChapterApiLink: string | null;\r\n /**\r\n * The reference for the last chapter in the book. Null if the comentary book has no chapters.\r\n */\r\n lastChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The number of chapters that the book contains.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The number of verses that the book contains.\r\n */\r\n totalNumberOfVerses: number;\r\n};\r\n\r\n/**\r\n * Defines a reference to a chapter in a commentary.\r\n */\r\nexport type CommentaryChapterReference = {\r\n /**\r\n * The ID of the commentary that the chapter reference is for.\r\n */\r\n commentaryId: string;\r\n book: BookId;\r\n /**\r\n * The chapter number of the chapter reference.\r\n */\r\n chapter: number;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a book chapter in a commentary.\r\n */\r\nexport type ApiCommentaryBookChapter = {\r\n /**\r\n * The information for the chapter.\r\n */\r\n chapter: {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The introduction that the commentary provided to the chapter. Not all commentaries provide an introduction to a chapter.\r\n */\r\n introduction?: string;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<ChapterVerse>;\r\n };\r\n /**\r\n * The commentary information for the book chapter.\r\n */\r\n commentary: ApiCommentary;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiCommentaryBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: CommentaryChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the commentary.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the commentary.\r\n */\r\n nextChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the commentary.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the commentary.\r\n */\r\n previousChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The API link to the simplified version of this chapter. Relative to the API origin. Omitted if simplified chapters are not available.\r\n */\r\n simpleChapterApiLink?: string;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a book chapter in a commentary, using the simplified chapter format.\r\n */\r\nexport type ApiSimpleCommentaryBookChapter = {\r\n /**\r\n * The commentary information for the book chapter.\r\n */\r\n commentary: ApiCommentary;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiCommentaryBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: CommentaryChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the commentary.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the commentary.\r\n */\r\n nextChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the commentary.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the commentary.\r\n */\r\n previousChapterReference: CommentaryChapterReference | null;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The simplified information for the chapter. Each verse contains a single text string, and the footnotes and formatting are represented by offsets into that string.\r\n */\r\n chapter: SimpleCommentaryChapterData;\r\n /**\r\n * The API link to the regular (non-simplified) version of this chapter. Relative to the API origin.\r\n */\r\n fullChapterApiLink: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for the data in a simplified commentary chapter.\r\n */\r\nexport type SimpleCommentaryChapterData = {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The introduction that the commentary provided to the chapter. Not all commentaries provide an introduction to a chapter.\r\n */\r\n introduction?: string;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<SimpleChapterVerse>;\r\n};\r\n\r\n/**\r\n * The list of available datasets. Maps to the /api/available-datasets.json endpoint.\r\n */\r\nexport type ApiAvailableDatasets = {\r\n /**\r\n * The list of datasets that are available in the API.\r\n */\r\n datasets: Array<ApiDataset>;\r\n};\r\n\r\n/**\r\n * Defines a dataset that is used in the API.\r\n */\r\nexport type ApiDataset = {\r\n /**\r\n * The ID of the dataset.\r\n */\r\n id: string;\r\n /**\r\n * The name of the dataset.\r\n */\r\n name: string;\r\n /**\r\n * The website for the dataset.\r\n */\r\n website: string;\r\n /**\r\n * The URL that the license for the dataset can be found.\r\n */\r\n licenseUrl: string;\r\n /**\r\n * The API-added notes for the license.\r\n */\r\n licenseNotes?: string | null;\r\n /**\r\n * The English name for the dataset.\r\n */\r\n englishName: string;\r\n /**\r\n * The ISO 639 3-letter language tag that the dataset is primarily in.\r\n */\r\n language: string;\r\n /**\r\n * The direction that the language is written in.\r\n */\r\n textDirection: 'ltr' | 'rtl';\r\n /**\r\n * The API link for the list of books for this dataset. Relative to the API origin.\r\n */\r\n listOfBooksApiLink: string;\r\n availableFormats: Array<'json'>;\r\n /**\r\n * The number of books that are contained in this dataset.\r\n */\r\n numberOfBooks: number;\r\n /**\r\n * The total number of chapters that are contained in this dataset.\r\n */\r\n totalNumberOfChapters: number;\r\n /**\r\n * The total number of verses that are contained in this dataset.\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The total number of references that are contained in this dataset.\r\n */\r\n totalNumberOfReferences: number;\r\n /**\r\n * Gets the name of the language that the dataset is in. Null or undefined if the name of the language is not known.\r\n */\r\n languageName?: string;\r\n /**\r\n * Gets the name of the language in English. Null or undefined if the language doesn't have an english name.\r\n */\r\n languageEnglishName?: string;\r\n /**\r\n * The API link for the list of people for this dataset. Relative to the API origin. Omitted if the dataset doesn't contain people.\r\n */\r\n listOfPeopleApiLink?: string;\r\n /**\r\n * The API link for the list of places for this dataset. Relative to the API origin. Omitted if the dataset doesn't contain places.\r\n */\r\n listOfPlacesApiLink?: string;\r\n /**\r\n * The API link for the list of events for this dataset. Relative to the API origin. Omitted if the dataset doesn't contain events.\r\n */\r\n listOfEventsApiLink?: string;\r\n /**\r\n * The API link for the list of people groups for this dataset. Relative to the API origin. Omitted if the dataset doesn't contain people groups.\r\n */\r\n listOfPeopleGroupsApiLink?: string;\r\n /**\r\n * The total number of people that are contained in this dataset. Omitted if the dataset doesn't contain people.\r\n */\r\n totalNumberOfPeople?: number;\r\n /**\r\n * The total number of places that are contained in this dataset. Omitted if the dataset doesn't contain places.\r\n */\r\n totalNumberOfPlaces?: number;\r\n /**\r\n * The total number of events that are contained in this dataset. Omitted if the dataset doesn't contain events.\r\n */\r\n totalNumberOfEvents?: number;\r\n /**\r\n * The total number of people groups that are contained in this dataset. Omitted if the dataset doesn't contain people groups.\r\n */\r\n totalNumberOfPeopleGroups?: number;\r\n};\r\n\r\n/**\r\n * Defines an interface that contains information about the books that are available for a dataset.\r\n */\r\nexport type ApiDatasetBooks = {\r\n /**\r\n * The dataset information for the books.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The list of books that are available for the dataset.\r\n */\r\n books: Array<ApiDatasetBook>;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a book in a dataset.\r\n */\r\nexport type ApiDatasetBook = {\r\n id: BookId;\r\n /**\r\n * The order of the book in the Bible.\r\n */\r\n order: number;\r\n /**\r\n * The number of the first chapter in the book.\r\n */\r\n firstChapterNumber: number;\r\n /**\r\n * The link to the first chapter of the book.\r\n */\r\n firstChapterApiLink: string;\r\n firstChapterReference: DatasetChapterReference;\r\n /**\r\n * The number of the last chapter in the book.\r\n */\r\n lastChapterNumber: number;\r\n /**\r\n * The link to the last chapter of the book.\r\n */\r\n lastChapterApiLink: string;\r\n lastChapterReference: DatasetChapterReference;\r\n /**\r\n * The number of chapters that the book contains.\r\n */\r\n numberOfChapters: number;\r\n /**\r\n * The number of verses that the book contains.\r\n */\r\n totalNumberOfVerses: number;\r\n /**\r\n * The number of references that the book contains.\r\n */\r\n totalNumberOfReferences: number;\r\n};\r\n\r\n/**\r\n * Defines a reference to a chapter in a dataset.\r\n */\r\nexport type DatasetChapterReference = {\r\n /**\r\n * The ID of the dataset that the chapter reference is for.\r\n */\r\n datasetId: string;\r\n book: BookId;\r\n /**\r\n * The chapter number of the chapter reference.\r\n */\r\n chapter: number;\r\n};\r\n\r\n/**\r\n * Defines a schema that contains information about a book chapter in a dataset.\r\n */\r\nexport type ApiDatasetBookChapter = {\r\n /**\r\n * The data for the chapter.\r\n */\r\n chapter: DatasetChapterData;\r\n /**\r\n * The dataset information for the book chapter.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiDatasetBook;\r\n /**\r\n * The API link for this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n thisChapterReference: DatasetChapterReference;\r\n /**\r\n * The API link to the next chapter. Relative to the API origin. Null if this is the last chapter in the dataset.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the dataset.\r\n */\r\n nextChapterReference: DatasetChapterReference | null;\r\n /**\r\n * The API link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the dataset.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the dataset.\r\n */\r\n previousChapterReference: DatasetChapterReference | null;\r\n /**\r\n * The number of verses that the chapter contains.\r\n */\r\n numberOfVerses: number;\r\n /**\r\n * The number of references that the chapter contains.\r\n */\r\n numberOfReferences: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a chapter in a dataset.\r\n */\r\nexport type DatasetChapterData = {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The content of the chapter.\r\n */\r\n content: Array<DatasetChapterVerseContent>;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a verse in a dataset chapter.\r\n */\r\nexport type DatasetChapterVerseContent = {\r\n /**\r\n * The number of the verse.\r\n */\r\n verse: number;\r\n /**\r\n * The list of references for the verse.\r\n */\r\n references: Array<ScoredVerseRef>;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a verse reference that has an arbitrary score attached to it.\r\n */\r\nexport type ScoredVerseRef = {\r\n book: BookId;\r\n /**\r\n * The chapter number that the reference starts at.\r\n */\r\n chapter: number;\r\n /**\r\n * The verse number that the reference starts at.\r\n */\r\n verse: number;\r\n /**\r\n * 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.\"\r\n */\r\n content?: string;\r\n /**\r\n * 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.\r\n */\r\n endChapter?: number;\r\n /**\r\n * 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.\r\n */\r\n endVerse?: number;\r\n /**\r\n * The score for the verse reference. The meaning of the score is arbitrary and is determined by the dataset.\r\n */\r\n score: number;\r\n};\r\n\r\n/**\r\n * The entities (people, places, and events) that appear in a chapter of a book for a dataset. Maps to the /api/d/:datasetId/:bookId/:chapterNumber.json endpoint for datasets that contain entities.\r\n */\r\nexport type ApiDatasetEntityBookChapter = {\r\n /**\r\n * The dataset information for the book chapter.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The book information for the book chapter.\r\n */\r\n book: ApiDatasetBook;\r\n /**\r\n * The entity data for the chapter.\r\n */\r\n chapter: ApiDatasetEntityChapterData;\r\n /**\r\n * The link to this chapter. Relative to the API origin.\r\n */\r\n thisChapterLink: string;\r\n /**\r\n * The reference for this chapter.\r\n */\r\n thisChapterReference: DatasetChapterReference;\r\n /**\r\n * The link to the next chapter. Relative to the API origin. Null if this is the last chapter in the dataset.\r\n */\r\n nextChapterApiLink: string | null;\r\n /**\r\n * The reference for the next chapter. Null if this is the last chapter in the dataset.\r\n */\r\n nextChapterReference: DatasetChapterReference | null;\r\n /**\r\n * The link to the previous chapter. Relative to the API origin. Null if this is the first chapter in the dataset.\r\n */\r\n previousChapterApiLink: string | null;\r\n /**\r\n * The reference for the previous chapter. Null if this is the first chapter in the dataset.\r\n */\r\n previousChapterReference: DatasetChapterReference | null;\r\n /**\r\n * The number of people that appear in the chapter.\r\n */\r\n numberOfPeople: number;\r\n /**\r\n * The number of places that appear in the chapter.\r\n */\r\n numberOfPlaces: number;\r\n /**\r\n * The number of events that appear in the chapter.\r\n */\r\n numberOfEvents: number;\r\n};\r\n\r\n/**\r\n * Defines a person that appears in a chapter of a dataset.\r\n */\r\nexport type ApiDatasetChapterPerson = {\r\n /**\r\n * The ID of the person.\r\n */\r\n id: string;\r\n /**\r\n * The name of the person.\r\n */\r\n name: string;\r\n /**\r\n * Whether the name of the person is a proper name.\r\n */\r\n isProperName?: boolean;\r\n /**\r\n * The gender of the person.\r\n */\r\n gender?: string;\r\n /**\r\n * The year that the person was born. Negative numbers are years BC. Positive numbers are years AD.\r\n */\r\n birthYear?: number;\r\n /**\r\n * The year that the person died. Negative numbers are years BC. Positive numbers are years AD.\r\n */\r\n deathYear?: number;\r\n /**\r\n * The API link for the person. Relative to the API origin.\r\n */\r\n apiLink: string;\r\n /**\r\n * The numbers of the verses in the chapter that mention the person. Sorted in ascending order.\r\n */\r\n verses: Array<number>;\r\n};\r\n\r\n/**\r\n * Defines a place that appears in a chapter of a dataset.\r\n */\r\nexport type ApiDatasetChapterPlace = {\r\n /**\r\n * The ID of the place.\r\n */\r\n id: string;\r\n /**\r\n * The name of the place.\r\n */\r\n name: string;\r\n /**\r\n * The type of geographical feature that the place is. For example, \"City\", \"Region\", \"Mountain\", \"Water\", etc.\r\n */\r\n featureType?: string;\r\n /**\r\n * The latitude of the place.\r\n */\r\n latitude?: number;\r\n /**\r\n * The longitude of the place.\r\n */\r\n longitude?: number;\r\n /**\r\n * The API link for the place. Relative to the API origin.\r\n */\r\n apiLink: string;\r\n /**\r\n * The numbers of the verses in the chapter that mention the place. Sorted in ascending order.\r\n */\r\n verses: Array<number>;\r\n};\r\n\r\n/**\r\n * Defines an event that appears in a chapter of a dataset.\r\n */\r\nexport type ApiDatasetChapterEvent = {\r\n /**\r\n * The ID of the event.\r\n */\r\n id: string;\r\n /**\r\n * The name of the event.\r\n */\r\n name: string;\r\n /**\r\n * The date that the event started at. Negative numbers are years BC. Positive numbers are years AD. More specific dates use the `YYYY-MM-DD` format.\r\n */\r\n startDate?: string;\r\n /**\r\n * The API link for the event. Relative to the API origin.\r\n */\r\n apiLink: string;\r\n /**\r\n * The numbers of the verses in the chapter that describe the event. Sorted in ascending order.\r\n */\r\n verses: Array<number>;\r\n};\r\n\r\n/**\r\n * Defines the entity data for a chapter in a dataset. Contains the people, places, and events that appear in the chapter.\r\n */\r\nexport type ApiDatasetEntityChapterData = {\r\n /**\r\n * The number of the chapter.\r\n */\r\n number: number;\r\n /**\r\n * The people that appear in the chapter. Sorted by the first verse that they appear in.\r\n */\r\n people: Array<ApiDatasetChapterPerson>;\r\n /**\r\n * The places that appear in the chapter. Sorted by the first verse that they appear in.\r\n */\r\n places: Array<ApiDatasetChapterPlace>;\r\n /**\r\n * The events that appear in the chapter. Sorted by the first verse that they appear in.\r\n */\r\n events: Array<ApiDatasetChapterEvent>;\r\n};\r\n\r\n/**\r\n * The list of people in a dataset. Maps to the /api/d/:datasetId/people.json endpoint.\r\n */\r\nexport type ApiDatasetPeople = {\r\n /**\r\n * The dataset information for the people.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The list of people that are available for the dataset.\r\n */\r\n people: Array<ApiDatasetPersonSummary>;\r\n};\r\n\r\n/**\r\n * Defines a summary of a person in a dataset.\r\n */\r\nexport type ApiDatasetPersonSummary = {\r\n /**\r\n * The ID of the person.\r\n */\r\n id: string;\r\n /**\r\n * The name of the person.\r\n */\r\n name: string;\r\n /**\r\n * Whether the name of the person is a proper name.\r\n */\r\n isProperName?: boolean;\r\n /**\r\n * The gender of the person.\r\n */\r\n gender?: string;\r\n /**\r\n * The number of Bible references that mention the person.\r\n */\r\n numberOfReferences: number;\r\n /**\r\n * The API link for the person. Relative to the API origin.\r\n */\r\n thisPersonApiLink: string;\r\n};\r\n\r\n/**\r\n * The information about a person in a dataset. Maps to the /api/d/:datasetId/people/:personId.json endpoint.\r\n */\r\nexport type ApiDatasetPerson = {\r\n /**\r\n * The dataset information for the person.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The information about the person.\r\n */\r\n person: DatasetPerson;\r\n /**\r\n * The API link for this person. Relative to the API origin.\r\n */\r\n thisPersonApiLink: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for a reference to another entity (person, place, event, or people group) in a dataset.\r\n */\r\nexport type DatasetEntityRef = {\r\n /**\r\n * The ID of the entity that is being referenced.\r\n */\r\n id: string;\r\n /**\r\n * The type of the entity that is being referenced. Matches the collection segment of the entity's API link, so the link can be constructed as `/api/d/{dataset}/{type}/{id}.json`.\r\n */\r\n type: DatasetEntityType;\r\n /**\r\n * The name of the entity that is being referenced.\r\n */\r\n name?: string;\r\n /**\r\n * The API link for the entity that is being referenced. Relative to the API origin. Only present in API responses.\r\n */\r\n apiLink?: string;\r\n};\r\n\r\n/**\r\n * The type of an entity in a dataset. Matches the collection segment of the entity API paths, so the API link for an entity can be constructed as `/api/d/{dataset}/{type}/{id}.json`.\r\n */\r\nexport type DatasetEntityType = 'people' | 'places' | 'events' | 'groups';\r\n\r\n/**\r\n * Defines a schema for verse references. A verse reference is a string that contains a book ID, chapter number, and verse number, such as \"GEN 1:1\". It can also contain an optional content part that comes after the verse reference, such as \"GEN 1:1 In the beginning, God created the Heavens and the Earth.\" It can also contain optional endChapter and endVerse fields for references that span multiple chapters or verses, such as \"GEN 1:1-2:3\".\r\n */\r\nexport type VerseRef = {\r\n book: BookId;\r\n /**\r\n * The chapter number that the reference starts at.\r\n */\r\n chapter: number;\r\n /**\r\n * The verse number that the reference starts at.\r\n */\r\n verse: number;\r\n /**\r\n * 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.\"\r\n */\r\n content?: string;\r\n /**\r\n * 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.\r\n */\r\n endChapter?: number;\r\n /**\r\n * 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.\r\n */\r\n endVerse?: number;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a person in a dataset.\r\n */\r\nexport type DatasetPerson = {\r\n /**\r\n * The ID of the person.\r\n */\r\n id: string;\r\n /**\r\n * The name of the person.\r\n */\r\n name: string;\r\n /**\r\n * Other names that the person is called by.\r\n */\r\n alsoCalled?: Array<string>;\r\n /**\r\n * Whether the name of the person is a proper name.\r\n */\r\n isProperName?: boolean;\r\n /**\r\n * The gender of the person.\r\n */\r\n gender?: string;\r\n /**\r\n * The description of the person. Each string is a paragraph.\r\n */\r\n description?: Array<string>;\r\n /**\r\n * The year that the person was born. Negative numbers are years BC. Positive numbers are years AD.\r\n */\r\n birthYear?: number;\r\n /**\r\n * The year that the person died. Negative numbers are years BC. Positive numbers are years AD.\r\n */\r\n deathYear?: number;\r\n /**\r\n * The earliest year that the person is mentioned in. Negative numbers are years BC. Positive numbers are years AD.\r\n */\r\n minYear?: number;\r\n /**\r\n * The latest year that the person is mentioned in. Negative numbers are years BC. Positive numbers are years AD.\r\n */\r\n maxYear?: number;\r\n /**\r\n * The place that the person was born in.\r\n */\r\n birthPlace?: DatasetEntityRef;\r\n /**\r\n * The place that the person died in.\r\n */\r\n deathPlace?: DatasetEntityRef;\r\n /**\r\n * The father(s) of the person.\r\n */\r\n father?: Array<DatasetEntityRef>;\r\n /**\r\n * The mother(s) of the person.\r\n */\r\n mother?: Array<DatasetEntityRef>;\r\n /**\r\n * The partners (spouses) of the person.\r\n */\r\n partners?: Array<DatasetEntityRef>;\r\n /**\r\n * The children of the person.\r\n */\r\n children?: Array<DatasetEntityRef>;\r\n /**\r\n * The siblings of the person.\r\n */\r\n siblings?: Array<DatasetEntityRef>;\r\n /**\r\n * The half-siblings of the person that share the same mother.\r\n */\r\n halfSiblingsSameMother?: Array<DatasetEntityRef>;\r\n /**\r\n * The half-siblings of the person that share the same father.\r\n */\r\n halfSiblingsSameFather?: Array<DatasetEntityRef>;\r\n /**\r\n * The people groups that the person is a member of.\r\n */\r\n memberOf?: Array<DatasetEntityRef>;\r\n /**\r\n * The events that the person participated in.\r\n */\r\n events?: Array<DatasetEntityRef>;\r\n /**\r\n * The list of Bible references that mention the person. Sorted by book order, chapter, and verse. Consecutive verses in the same chapter are collapsed into a single reference using `endVerse`.\r\n */\r\n references: Array<VerseRef>;\r\n};\r\n\r\n/**\r\n * The list of places in a dataset. Maps to the /api/d/:datasetId/places.json endpoint.\r\n */\r\nexport type ApiDatasetPlaces = {\r\n /**\r\n * The dataset information for the places.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The list of places that are available for the dataset.\r\n */\r\n places: Array<ApiDatasetPlaceSummary>;\r\n};\r\n\r\n/**\r\n * Defines a summary of a place in a dataset.\r\n */\r\nexport type ApiDatasetPlaceSummary = {\r\n /**\r\n * The ID of the place.\r\n */\r\n id: string;\r\n /**\r\n * The name of the place.\r\n */\r\n name: string;\r\n /**\r\n * The type of geographical feature that the place is. For example, \"City\", \"Region\", \"Mountain\", \"Water\", etc.\r\n */\r\n featureType?: string;\r\n /**\r\n * The latitude of the place.\r\n */\r\n latitude?: number;\r\n /**\r\n * The longitude of the place.\r\n */\r\n longitude?: number;\r\n /**\r\n * The number of Bible references that mention the place.\r\n */\r\n numberOfReferences: number;\r\n /**\r\n * The API link for the place. Relative to the API origin.\r\n */\r\n thisPlaceApiLink: string;\r\n};\r\n\r\n/**\r\n * The information about a place in a dataset. Maps to the /api/d/:datasetId/places/:placeId.json endpoint.\r\n */\r\nexport type ApiDatasetPlace = {\r\n /**\r\n * The dataset information for the place.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The information about the place.\r\n */\r\n place: DatasetPlace;\r\n /**\r\n * The API link for this place. Relative to the API origin.\r\n */\r\n thisPlaceApiLink: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a place in a dataset.\r\n */\r\nexport type DatasetPlace = {\r\n /**\r\n * The ID of the place.\r\n */\r\n id: string;\r\n /**\r\n * The name of the place.\r\n */\r\n name: string;\r\n /**\r\n * The name of the place as it appears in the King James Version.\r\n */\r\n kjvName?: string;\r\n /**\r\n * The name of the place as it appears in the English Standard Version.\r\n */\r\n esvName?: string;\r\n /**\r\n * Other names that the place is called by.\r\n */\r\n aliases?: Array<string>;\r\n /**\r\n * The type of geographical feature that the place is. For example, \"City\", \"Region\", \"Mountain\", \"Water\", etc.\r\n */\r\n featureType?: string;\r\n /**\r\n * The sub-type of geographical feature that the place is.\r\n */\r\n featureSubType?: string;\r\n /**\r\n * The latitude of the place.\r\n */\r\n latitude?: number;\r\n /**\r\n * The longitude of the place.\r\n */\r\n longitude?: number;\r\n /**\r\n * How precise the latitude and longitude of the place are.\r\n */\r\n precision?: string;\r\n /**\r\n * The description of the place. Each string is a paragraph.\r\n */\r\n description?: Array<string>;\r\n /**\r\n * The comment on the place from the dataset authors.\r\n */\r\n comment?: string;\r\n /**\r\n * The root place for this place. Different names for the same geographical location share the same root place.\r\n */\r\n rootPlace?: DatasetEntityRef;\r\n /**\r\n * The place that this place is a duplicate of.\r\n */\r\n duplicateOf?: DatasetEntityRef;\r\n /**\r\n * The people that have been at the place.\r\n */\r\n people?: Array<DatasetEntityRef>;\r\n /**\r\n * The people that were born at the place.\r\n */\r\n peopleBorn?: Array<DatasetEntityRef>;\r\n /**\r\n * The people that died at the place.\r\n */\r\n peopleDied?: Array<DatasetEntityRef>;\r\n /**\r\n * The events that happened at the place.\r\n */\r\n events?: Array<DatasetEntityRef>;\r\n /**\r\n * The list of Bible references that mention the place. Sorted by book order, chapter, and verse. Consecutive verses in the same chapter are collapsed into a single reference using `endVerse`.\r\n */\r\n references: Array<VerseRef>;\r\n};\r\n\r\n/**\r\n * The list of events in a dataset. Maps to the /api/d/:datasetId/events.json endpoint.\r\n */\r\nexport type ApiDatasetEvents = {\r\n /**\r\n * The dataset information for the events.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The list of events that are available for the dataset.\r\n */\r\n events: Array<ApiDatasetEventSummary>;\r\n};\r\n\r\n/**\r\n * Defines a summary of an event in a dataset.\r\n */\r\nexport type ApiDatasetEventSummary = {\r\n /**\r\n * The ID of the event.\r\n */\r\n id: string;\r\n /**\r\n * The name of the event.\r\n */\r\n name: string;\r\n /**\r\n * The date that the event started at. Negative numbers are years BC. Positive numbers are years AD. More specific dates use the `YYYY-MM-DD` format.\r\n */\r\n startDate?: string;\r\n /**\r\n * The number of Bible references that describe the event.\r\n */\r\n numberOfReferences: number;\r\n /**\r\n * The API link for the event. Relative to the API origin.\r\n */\r\n thisEventApiLink: string;\r\n};\r\n\r\n/**\r\n * The information about an event in a dataset. Maps to the /api/d/:datasetId/events/:eventId.json endpoint.\r\n */\r\nexport type ApiDatasetEvent = {\r\n /**\r\n * The dataset information for the event.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The information about the event.\r\n */\r\n event: DatasetEvent;\r\n /**\r\n * The API link for this event. Relative to the API origin.\r\n */\r\n thisEventApiLink: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about an event in a dataset.\r\n */\r\nexport type DatasetEvent = {\r\n /**\r\n * The ID of the event.\r\n */\r\n id: string;\r\n /**\r\n * The name of the event.\r\n */\r\n name: string;\r\n /**\r\n * The date that the event started at. Negative numbers are years BC. Positive numbers are years AD. More specific dates use the `YYYY-MM-DD` format.\r\n */\r\n startDate?: string;\r\n /**\r\n * The duration of the event. For example, \"1D\" is one day and \"40Y\" is fourty years.\r\n */\r\n duration?: string;\r\n /**\r\n * The people that participated in the event.\r\n */\r\n participants?: Array<DatasetEntityRef>;\r\n /**\r\n * The places that the event happened at.\r\n */\r\n locations?: Array<DatasetEntityRef>;\r\n /**\r\n * The people groups that participated in the event.\r\n */\r\n groups?: Array<DatasetEntityRef>;\r\n /**\r\n * The event that this event is a part of.\r\n */\r\n partOf?: DatasetEntityRef;\r\n /**\r\n * The event that happened before this event.\r\n */\r\n predecessor?: DatasetEntityRef;\r\n /**\r\n * The list of Bible references that describe the event. Sorted by book order, chapter, and verse. Consecutive verses in the same chapter are collapsed into a single reference using `endVerse`.\r\n */\r\n references: Array<VerseRef>;\r\n};\r\n\r\n/**\r\n * The list of people groups in a dataset. Maps to the /api/d/:datasetId/groups.json endpoint.\r\n */\r\nexport type ApiDatasetPeopleGroups = {\r\n /**\r\n * The dataset information for the people groups.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The list of people groups that are available for the dataset.\r\n */\r\n groups: Array<ApiDatasetPeopleGroupSummary>;\r\n};\r\n\r\n/**\r\n * Defines a summary of a people group in a dataset.\r\n */\r\nexport type ApiDatasetPeopleGroupSummary = {\r\n /**\r\n * The ID of the people group.\r\n */\r\n id: string;\r\n /**\r\n * The name of the people group.\r\n */\r\n name: string;\r\n /**\r\n * The number of people that are members of the people group.\r\n */\r\n numberOfMembers: number;\r\n /**\r\n * The API link for the people group. Relative to the API origin.\r\n */\r\n thisPeopleGroupApiLink: string;\r\n};\r\n\r\n/**\r\n * The information about a people group in a dataset. Maps to the /api/d/:datasetId/groups/:groupId.json endpoint.\r\n */\r\nexport type ApiDatasetPeopleGroup = {\r\n /**\r\n * The dataset information for the people group.\r\n */\r\n dataset: ApiDataset;\r\n /**\r\n * The information about the people group.\r\n */\r\n group: DatasetPeopleGroup;\r\n /**\r\n * The API link for this people group. Relative to the API origin.\r\n */\r\n thisPeopleGroupApiLink: string;\r\n};\r\n\r\n/**\r\n * Defines the schema for information about a people group in a dataset.\r\n */\r\nexport type DatasetPeopleGroup = {\r\n /**\r\n * The ID of the people group.\r\n */\r\n id: string;\r\n /**\r\n * The name of the people group.\r\n */\r\n name: string;\r\n /**\r\n * The people that are members of the people group.\r\n */\r\n members?: Array<DatasetEntityRef>;\r\n /**\r\n * The events that the people group participated in.\r\n */\r\n events?: Array<DatasetEntityRef>;\r\n /**\r\n * The list of Bible references that mention the people group. Sorted by book order, chapter, and verse. Consecutive verses in the same chapter are collapsed into a single reference using `endVerse`.\r\n */\r\n references: Array<VerseRef>;\r\n};\r\n\r\nexport type GetAvailableTranslationsData = {\r\n body?: never;\r\n path?: never;\r\n query?: never;\r\n url: '/api/available_translations.json';\r\n};\r\n\r\nexport type GetAvailableTranslationsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiAvailableTranslations;\r\n};\r\n\r\nexport type GetAvailableTranslationsResponse =\r\n GetAvailableTranslationsResponses[keyof GetAvailableTranslationsResponses];\r\n\r\nexport type GetTranslationBooksData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/books.json';\r\n};\r\n\r\nexport type GetTranslationBooksErrors = {\r\n /**\r\n * 404 Not Found - The specified translation was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationBooksResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationBooks;\r\n};\r\n\r\nexport type GetTranslationBooksResponse =\r\n GetTranslationBooksResponses[keyof GetTranslationBooksResponses];\r\n\r\nexport type GetTranslationBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.json';\r\n};\r\n\r\nexport type GetTranslationBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationBookChapter;\r\n};\r\n\r\nexport type GetTranslationBookChapterResponse =\r\n GetTranslationBookChapterResponses[keyof GetTranslationBookChapterResponses];\r\n\r\nexport type GetSimpleTranslationBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.simple.json';\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiSimpleTranslationBookChapter;\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterResponse =\r\n GetSimpleTranslationBookChapterResponses[keyof GetSimpleTranslationBookChapterResponses];\r\n\r\nexport type GetTranslationBookChapterAudioTimingsData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n /**\r\n * The ID of the reader to get the audio timings for. For example, \"hays\" for the Hays reading of the Berean Standard Bible.\r\n */\r\n reader: string;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.{reader}.audioTimings.json';\r\n};\r\n\r\nexport type GetTranslationBookChapterAudioTimingsErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, chapter, or reader was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationBookChapterAudioTimingsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationBookChapterAudioTimings;\r\n};\r\n\r\nexport type GetTranslationBookChapterAudioTimingsResponse =\r\n GetTranslationBookChapterAudioTimingsResponses[keyof GetTranslationBookChapterAudioTimingsResponses];\r\n\r\nexport type GetTranslationBookChapterWordsData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.words.json';\r\n};\r\n\r\nexport type GetTranslationBookChapterWordsErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, or chapter was not found, or the chapter does not have any word-level annotations.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationBookChapterWordsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationBookChapterWords;\r\n};\r\n\r\nexport type GetTranslationBookChapterWordsResponse =\r\n GetTranslationBookChapterWordsResponses[keyof GetTranslationBookChapterWordsResponses];\r\n\r\nexport type GetSimpleTranslationBookChapterWordsData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/{book}/{chapter}.words.simple.json';\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterWordsErrors = {\r\n /**\r\n * 404 Not Found - The specified translation, book, or chapter was not found, or the chapter does not have any word-level annotations.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterWordsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiSimpleTranslationBookChapterWords;\r\n};\r\n\r\nexport type GetSimpleTranslationBookChapterWordsResponse =\r\n GetSimpleTranslationBookChapterWordsResponses[keyof GetSimpleTranslationBookChapterWordsResponses];\r\n\r\nexport type GetTranslationCompleteData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/complete.json';\r\n};\r\n\r\nexport type GetTranslationCompleteErrors = {\r\n /**\r\n * 404 Not Found - The specified translation was not found, or complete translations are not available.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetTranslationCompleteResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiTranslationComplete;\r\n};\r\n\r\nexport type GetTranslationCompleteResponse =\r\n GetTranslationCompleteResponses[keyof GetTranslationCompleteResponses];\r\n\r\nexport type GetSimpleTranslationCompleteData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The translation ID of the Bible translation to get the books for. For example, \"eng_kjv\" for the King James Version.\r\n */\r\n translation: string;\r\n };\r\n query?: never;\r\n url: '/api/{translation}/complete.simple.json';\r\n};\r\n\r\nexport type GetSimpleTranslationCompleteErrors = {\r\n /**\r\n * 404 Not Found - The specified translation was not found, or complete translations are not available.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetSimpleTranslationCompleteResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiSimpleTranslationComplete;\r\n};\r\n\r\nexport type GetSimpleTranslationCompleteResponse =\r\n GetSimpleTranslationCompleteResponses[keyof GetSimpleTranslationCompleteResponses];\r\n\r\nexport type GetAvailableCommentariesData = {\r\n body?: never;\r\n path?: never;\r\n query?: never;\r\n url: '/api/available_commentaries.json';\r\n};\r\n\r\nexport type GetAvailableCommentariesResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiAvailableCommentaries;\r\n};\r\n\r\nexport type GetAvailableCommentariesResponse =\r\n GetAvailableCommentariesResponses[keyof GetAvailableCommentariesResponses];\r\n\r\nexport type GetCommentaryBooksData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The commentary ID of the commentary to get the books or chapter content for.\r\n */\r\n commentary: string;\r\n };\r\n query?: never;\r\n url: '/api/c/{commentary}/books.json';\r\n};\r\n\r\nexport type GetCommentaryBooksErrors = {\r\n /**\r\n * 404 Not Found - The specified commentary was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetCommentaryBooksResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiCommentaryBooks;\r\n};\r\n\r\nexport type GetCommentaryBooksResponse =\r\n GetCommentaryBooksResponses[keyof GetCommentaryBooksResponses];\r\n\r\nexport type GetCommentaryBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The commentary ID of the commentary to get the books or chapter content for.\r\n */\r\n commentary: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/c/{commentary}/{book}/{chapter}.json';\r\n};\r\n\r\nexport type GetCommentaryBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified commentary, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetCommentaryBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiCommentaryBookChapter;\r\n};\r\n\r\nexport type GetCommentaryBookChapterResponse =\r\n GetCommentaryBookChapterResponses[keyof GetCommentaryBookChapterResponses];\r\n\r\nexport type GetSimpleCommentaryBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The commentary ID of the commentary to get the books or chapter content for.\r\n */\r\n commentary: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/c/{commentary}/{book}/{chapter}.simple.json';\r\n};\r\n\r\nexport type GetSimpleCommentaryBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified commentary, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetSimpleCommentaryBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiSimpleCommentaryBookChapter;\r\n};\r\n\r\nexport type GetSimpleCommentaryBookChapterResponse =\r\n GetSimpleCommentaryBookChapterResponses[keyof GetSimpleCommentaryBookChapterResponses];\r\n\r\nexport type GetAvailableDatasetsData = {\r\n body?: never;\r\n path?: never;\r\n query?: never;\r\n url: '/api/available_datasets.json';\r\n};\r\n\r\nexport type GetAvailableDatasetsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiAvailableDatasets;\r\n};\r\n\r\nexport type GetAvailableDatasetsResponse =\r\n GetAvailableDatasetsResponses[keyof GetAvailableDatasetsResponses];\r\n\r\nexport type GetDatasetBooksData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/books.json';\r\n};\r\n\r\nexport type GetDatasetBooksErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetBooksResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetBooks;\r\n};\r\n\r\nexport type GetDatasetBooksResponse =\r\n GetDatasetBooksResponses[keyof GetDatasetBooksResponses];\r\n\r\nexport type GetDatasetBookChapterData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n /**\r\n * IDs for books. Follows the USFM standard (https://ubsicap.github.io/usfm/identification/books.html)\r\n */\r\n book: BookId;\r\n /**\r\n * The chapter number to get the content for. This should be a positive integer.\r\n */\r\n chapter: number;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/{book}/{chapter}.json';\r\n};\r\n\r\nexport type GetDatasetBookChapterErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset, book, or chapter was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetBookChapterResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetBookChapter | ApiDatasetEntityBookChapter;\r\n};\r\n\r\nexport type GetDatasetBookChapterResponse =\r\n GetDatasetBookChapterResponses[keyof GetDatasetBookChapterResponses];\r\n\r\nexport type GetDatasetPeopleData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/people.json';\r\n};\r\n\r\nexport type GetDatasetPeopleErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset was not found or doesn't contain people.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetPeopleResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetPeople;\r\n};\r\n\r\nexport type GetDatasetPeopleResponse =\r\n GetDatasetPeopleResponses[keyof GetDatasetPeopleResponses];\r\n\r\nexport type GetDatasetPersonData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n /**\r\n * The ID of the person to get the information for. For example, \"paul_2479\" for the apostle Paul.\r\n */\r\n person: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/people/{person}.json';\r\n};\r\n\r\nexport type GetDatasetPersonErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset or person was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetPersonResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetPerson;\r\n};\r\n\r\nexport type GetDatasetPersonResponse =\r\n GetDatasetPersonResponses[keyof GetDatasetPersonResponses];\r\n\r\nexport type GetDatasetPlacesData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/places.json';\r\n};\r\n\r\nexport type GetDatasetPlacesErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset was not found or doesn't contain places.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetPlacesResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetPlaces;\r\n};\r\n\r\nexport type GetDatasetPlacesResponse =\r\n GetDatasetPlacesResponses[keyof GetDatasetPlacesResponses];\r\n\r\nexport type GetDatasetPlaceData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n /**\r\n * The ID of the place to get the information for. For example, \"jerusalem_636\" for Jerusalem.\r\n */\r\n place: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/places/{place}.json';\r\n};\r\n\r\nexport type GetDatasetPlaceErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset or place was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetPlaceResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetPlace;\r\n};\r\n\r\nexport type GetDatasetPlaceResponse =\r\n GetDatasetPlaceResponses[keyof GetDatasetPlaceResponses];\r\n\r\nexport type GetDatasetEventsData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/events.json';\r\n};\r\n\r\nexport type GetDatasetEventsErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset was not found or doesn't contain events.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetEventsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetEvents;\r\n};\r\n\r\nexport type GetDatasetEventsResponse =\r\n GetDatasetEventsResponses[keyof GetDatasetEventsResponses];\r\n\r\nexport type GetDatasetEventData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n /**\r\n * The ID of the event to get the information for. For example, \"saul-is-converted_326\" for the conversion of Saul.\r\n */\r\n event: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/events/{event}.json';\r\n};\r\n\r\nexport type GetDatasetEventErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset or event was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetEventResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetEvent;\r\n};\r\n\r\nexport type GetDatasetEventResponse =\r\n GetDatasetEventResponses[keyof GetDatasetEventResponses];\r\n\r\nexport type GetDatasetPeopleGroupsData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/groups.json';\r\n};\r\n\r\nexport type GetDatasetPeopleGroupsErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset was not found or doesn't contain people groups.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetPeopleGroupsResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetPeopleGroups;\r\n};\r\n\r\nexport type GetDatasetPeopleGroupsResponse =\r\n GetDatasetPeopleGroupsResponses[keyof GetDatasetPeopleGroupsResponses];\r\n\r\nexport type GetDatasetPeopleGroupData = {\r\n body?: never;\r\n path: {\r\n /**\r\n * The dataset ID of the dataset to get the books or chapter content for.\r\n */\r\n dataset: string;\r\n /**\r\n * The ID of the people group to get the information for. For example, \"tribe-of-benjamin\" for the tribe of Benjamin.\r\n */\r\n group: string;\r\n };\r\n query?: never;\r\n url: '/api/d/{dataset}/groups/{group}.json';\r\n};\r\n\r\nexport type GetDatasetPeopleGroupErrors = {\r\n /**\r\n * 404 Not Found - The specified dataset or people group was not found.\r\n */\r\n 404: unknown;\r\n};\r\n\r\nexport type GetDatasetPeopleGroupResponses = {\r\n /**\r\n * 200 OK\r\n */\r\n 200: ApiDatasetPeopleGroup;\r\n};\r\n\r\nexport type GetDatasetPeopleGroupResponse =\r\n GetDatasetPeopleGroupResponses[keyof GetDatasetPeopleGroupResponses];\r\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -103,6 +103,115 @@ export class FreeUseBibleApi {
103
103
  endpoint
104
104
  );
105
105
  }
106
+ /**
107
+ * Gets the list of people for a given dataset.
108
+ * @param dataset The ID of the dataset to get the people for.
109
+ * @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
110
+ */
111
+ async getDatasetPeople(dataset, endpoint) {
112
+ const encodedDataset = encodeURIComponent(dataset);
113
+ return this._getJson(
114
+ `api/d/${encodedDataset}/people.json`,
115
+ endpoint
116
+ );
117
+ }
118
+ /**
119
+ * Gets the information about a specific person for a given dataset.
120
+ * Includes the Bible references that mention the person and their relationships
121
+ * to other people, places, events, and people groups.
122
+ * @param dataset The ID of the dataset to get the person for.
123
+ * @param person The ID of the person to get.
124
+ * @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
125
+ */
126
+ async getDatasetPerson(dataset, person, endpoint) {
127
+ const encodedDataset = encodeURIComponent(dataset);
128
+ const encodedPerson = encodeURIComponent(person);
129
+ return this._getJson(
130
+ `api/d/${encodedDataset}/people/${encodedPerson}.json`,
131
+ endpoint
132
+ );
133
+ }
134
+ /**
135
+ * Gets the list of places for a given dataset.
136
+ * @param dataset The ID of the dataset to get the places for.
137
+ * @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
138
+ */
139
+ async getDatasetPlaces(dataset, endpoint) {
140
+ const encodedDataset = encodeURIComponent(dataset);
141
+ return this._getJson(
142
+ `api/d/${encodedDataset}/places.json`,
143
+ endpoint
144
+ );
145
+ }
146
+ /**
147
+ * Gets the information about a specific place for a given dataset.
148
+ * Includes the Bible references that mention the place and its related people and events.
149
+ * @param dataset The ID of the dataset to get the place for.
150
+ * @param place The ID of the place to get.
151
+ * @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
152
+ */
153
+ async getDatasetPlace(dataset, place, endpoint) {
154
+ const encodedDataset = encodeURIComponent(dataset);
155
+ const encodedPlace = encodeURIComponent(place);
156
+ return this._getJson(
157
+ `api/d/${encodedDataset}/places/${encodedPlace}.json`,
158
+ endpoint
159
+ );
160
+ }
161
+ /**
162
+ * Gets the list of events for a given dataset.
163
+ * @param dataset The ID of the dataset to get the events for.
164
+ * @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
165
+ */
166
+ async getDatasetEvents(dataset, endpoint) {
167
+ const encodedDataset = encodeURIComponent(dataset);
168
+ return this._getJson(
169
+ `api/d/${encodedDataset}/events.json`,
170
+ endpoint
171
+ );
172
+ }
173
+ /**
174
+ * Gets the information about a specific event for a given dataset.
175
+ * Includes the Bible references that describe the event and its related people, places, and people groups.
176
+ * @param dataset The ID of the dataset to get the event for.
177
+ * @param event The ID of the event to get.
178
+ * @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
179
+ */
180
+ async getDatasetEvent(dataset, event, endpoint) {
181
+ const encodedDataset = encodeURIComponent(dataset);
182
+ const encodedEvent = encodeURIComponent(event);
183
+ return this._getJson(
184
+ `api/d/${encodedDataset}/events/${encodedEvent}.json`,
185
+ endpoint
186
+ );
187
+ }
188
+ /**
189
+ * Gets the list of people groups for a given dataset.
190
+ * @param dataset The ID of the dataset to get the people groups for.
191
+ * @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
192
+ */
193
+ async getDatasetPeopleGroups(dataset, endpoint) {
194
+ const encodedDataset = encodeURIComponent(dataset);
195
+ return this._getJson(
196
+ `api/d/${encodedDataset}/groups.json`,
197
+ endpoint
198
+ );
199
+ }
200
+ /**
201
+ * Gets the information about a specific people group for a given dataset.
202
+ * Includes the members of the group and the events that the group participated in.
203
+ * @param dataset The ID of the dataset to get the people group for.
204
+ * @param group The ID of the people group to get.
205
+ * @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
206
+ */
207
+ async getDatasetPeopleGroup(dataset, group, endpoint) {
208
+ const encodedDataset = encodeURIComponent(dataset);
209
+ const encodedGroup = encodeURIComponent(group);
210
+ return this._getJson(
211
+ `api/d/${encodedDataset}/groups/${encodedGroup}.json`,
212
+ endpoint
213
+ );
214
+ }
106
215
  /**
107
216
  * Gets the content of a specific chapter of a specific book for a specific Bible translation.
108
217
  * @param translation The ID of the translation to get the chapter for.
@@ -138,12 +247,6 @@ export class FreeUseBibleApi {
138
247
  endpoint
139
248
  );
140
249
  }
141
- /**
142
- * Gets the word-level annotations for the given chapter, if it has any.
143
- * @param chapter The chapter to get the annotations for.
144
- * @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
145
- * @returns The annotations for the chapter, or null if the chapter doesn't have any.
146
- */
147
250
  async getChapterWords(chapter, endpoint) {
148
251
  if (!chapter.thisChapterWordsLink) {
149
252
  return null;
@@ -196,12 +299,6 @@ export class FreeUseBibleApi {
196
299
  }
197
300
  return this._getJson(chapter.simpleChapterApiLink, endpoint);
198
301
  }
199
- /**
200
- * Gets the word-level annotations for the given simplified chapter, if it has any.
201
- * @param chapter The simplified chapter to get the annotations for.
202
- * @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
203
- * @returns The annotations for the chapter, or null if the chapter doesn't have any.
204
- */
205
302
  async getSimpleChapterWords(chapter, endpoint) {
206
303
  if (!chapter.thisChapterWordsLink) {
207
304
  return null;
@@ -245,6 +342,10 @@ export class FreeUseBibleApi {
245
342
  }
246
343
  /**
247
344
  * Gets the content of a specific chapter of a specific book for a specific dataset.
345
+ *
346
+ * For cross reference datasets, this is the list of cross references for each verse
347
+ * in the chapter. For entity datasets (such as "theographic"), this is the people,
348
+ * places, and events that appear in the chapter.
248
349
  * @param dataset The ID of the dataset to get the chapter for.
249
350
  * @param book The ID of the book to get the chapter for.
250
351
  * @param chapter The chapter number to get.