@mp3quran/sdk 0.0.0-stage → 0.1.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.
- package/LICENSE +21 -0
- package/README.md +752 -2
- package/dist/generated/operations-meta.d.ts +13 -0
- package/dist/generated/operations-meta.js +310 -0
- package/dist/generated/types.d.ts +4302 -0
- package/dist/generated/types.js +6 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.js +176 -0
- package/package.json +60 -3
|
@@ -0,0 +1,4302 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/v4": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Gets the API index
|
|
15
|
+
* @description Gets links to the health check and the OpenAPI document.
|
|
16
|
+
*/
|
|
17
|
+
get: operations["getIndex"];
|
|
18
|
+
put?: never;
|
|
19
|
+
post?: never;
|
|
20
|
+
delete?: never;
|
|
21
|
+
options?: never;
|
|
22
|
+
head?: never;
|
|
23
|
+
patch?: never;
|
|
24
|
+
trace?: never;
|
|
25
|
+
};
|
|
26
|
+
"/v4/collections": {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Lists the collections
|
|
35
|
+
* @description Lists the curated collections, such as "for memorisation", in the order the editors set. Each collection links to its items.
|
|
36
|
+
*/
|
|
37
|
+
get: operations["listCollections"];
|
|
38
|
+
put?: never;
|
|
39
|
+
post?: never;
|
|
40
|
+
delete?: never;
|
|
41
|
+
options?: never;
|
|
42
|
+
head?: never;
|
|
43
|
+
patch?: never;
|
|
44
|
+
trace?: never;
|
|
45
|
+
};
|
|
46
|
+
"/v4/collections/{code}": {
|
|
47
|
+
parameters: {
|
|
48
|
+
query?: never;
|
|
49
|
+
header?: never;
|
|
50
|
+
path?: never;
|
|
51
|
+
cookie?: never;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Gets a collection
|
|
55
|
+
* @description Gets one collection, in the same shape as an entry of `GET /v4/collections`, by its code. The numeric ID redirects with 301 to the code.
|
|
56
|
+
*/
|
|
57
|
+
get: operations["getCollection"];
|
|
58
|
+
put?: never;
|
|
59
|
+
post?: never;
|
|
60
|
+
delete?: never;
|
|
61
|
+
options?: never;
|
|
62
|
+
head?: never;
|
|
63
|
+
patch?: never;
|
|
64
|
+
trace?: never;
|
|
65
|
+
};
|
|
66
|
+
"/v4/collections/{code}/items": {
|
|
67
|
+
parameters: {
|
|
68
|
+
query?: never;
|
|
69
|
+
header?: never;
|
|
70
|
+
path?: never;
|
|
71
|
+
cookie?: never;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Lists the items of a collection
|
|
75
|
+
* @description Lists what the collection holds, in the editors' order: reciters, recitations, radio stations and tafsir works. Each item's `links.self` is its own `/v4` address. An item that `/v4` does not serve is left out.
|
|
76
|
+
*/
|
|
77
|
+
get: operations["listCollectionItems"];
|
|
78
|
+
put?: never;
|
|
79
|
+
post?: never;
|
|
80
|
+
delete?: never;
|
|
81
|
+
options?: never;
|
|
82
|
+
head?: never;
|
|
83
|
+
patch?: never;
|
|
84
|
+
trace?: never;
|
|
85
|
+
};
|
|
86
|
+
"/v4/health": {
|
|
87
|
+
parameters: {
|
|
88
|
+
query?: never;
|
|
89
|
+
header?: never;
|
|
90
|
+
path?: never;
|
|
91
|
+
cookie?: never;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Liveness
|
|
95
|
+
* @description Returns `{ data: { status: "ok" } }` while the service is up.
|
|
96
|
+
*/
|
|
97
|
+
get: operations["getHealth"];
|
|
98
|
+
put?: never;
|
|
99
|
+
post?: never;
|
|
100
|
+
delete?: never;
|
|
101
|
+
options?: never;
|
|
102
|
+
head?: never;
|
|
103
|
+
patch?: never;
|
|
104
|
+
trace?: never;
|
|
105
|
+
};
|
|
106
|
+
"/v4/hizbs": {
|
|
107
|
+
parameters: {
|
|
108
|
+
query?: never;
|
|
109
|
+
header?: never;
|
|
110
|
+
path?: never;
|
|
111
|
+
cookie?: never;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Lists the hizbs
|
|
115
|
+
* @description Lists the 60 hizbs (two per juz) of the Madinah 604-page mushaf, each with its first and last ayah. The default limit (200) exceeds the collection, so a plain call returns every entry in one page. Sort by `number` (ascending) or `-number` (descending); any other sort key returns 400.
|
|
116
|
+
*/
|
|
117
|
+
get: operations["listHizbs"];
|
|
118
|
+
put?: never;
|
|
119
|
+
post?: never;
|
|
120
|
+
delete?: never;
|
|
121
|
+
options?: never;
|
|
122
|
+
head?: never;
|
|
123
|
+
patch?: never;
|
|
124
|
+
trace?: never;
|
|
125
|
+
};
|
|
126
|
+
"/v4/juzs": {
|
|
127
|
+
parameters: {
|
|
128
|
+
query?: never;
|
|
129
|
+
header?: never;
|
|
130
|
+
path?: never;
|
|
131
|
+
cookie?: never;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Lists the juzs
|
|
135
|
+
* @description Lists the 30 juzs of the Madinah 604-page mushaf, each with its first and last ayah. The default limit (200) exceeds the collection, so a plain call returns every entry in one page. Sort by `number` (ascending) or `-number` (descending); any other sort key returns 400.
|
|
136
|
+
*/
|
|
137
|
+
get: operations["listJuzs"];
|
|
138
|
+
put?: never;
|
|
139
|
+
post?: never;
|
|
140
|
+
delete?: never;
|
|
141
|
+
options?: never;
|
|
142
|
+
head?: never;
|
|
143
|
+
patch?: never;
|
|
144
|
+
trace?: never;
|
|
145
|
+
};
|
|
146
|
+
"/v4/languages": {
|
|
147
|
+
parameters: {
|
|
148
|
+
query?: never;
|
|
149
|
+
header?: never;
|
|
150
|
+
path?: never;
|
|
151
|
+
cookie?: never;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* Lists the locales
|
|
155
|
+
* @description Lists every locale the API has names or interface text in, with its text direction. The default limit exceeds the collection, so a plain call returns every locale in one page. Sort by code, name; prefix a key with `-` for descending order. Defaults to `code`.
|
|
156
|
+
*/
|
|
157
|
+
get: operations["listLanguages"];
|
|
158
|
+
put?: never;
|
|
159
|
+
post?: never;
|
|
160
|
+
delete?: never;
|
|
161
|
+
options?: never;
|
|
162
|
+
head?: never;
|
|
163
|
+
patch?: never;
|
|
164
|
+
trace?: never;
|
|
165
|
+
};
|
|
166
|
+
"/v4/qiraahs": {
|
|
167
|
+
parameters: {
|
|
168
|
+
query?: never;
|
|
169
|
+
header?: never;
|
|
170
|
+
path?: never;
|
|
171
|
+
cookie?: never;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Lists the qiraahs
|
|
175
|
+
* @description Lists each qiraah with the riwayahs of it that `GET /v4/riwayahs` returns, and its `recitation_count`: the number of recitations that `GET /v4/recitations?qiraah=` returns for it. The default limit exceeds the collection, so a plain call returns every qiraah in one page. Sort by code, recitation_count; prefix a key with `-` for descending order. Defaults to `code`.
|
|
176
|
+
*/
|
|
177
|
+
get: operations["listQiraahs"];
|
|
178
|
+
put?: never;
|
|
179
|
+
post?: never;
|
|
180
|
+
delete?: never;
|
|
181
|
+
options?: never;
|
|
182
|
+
head?: never;
|
|
183
|
+
patch?: never;
|
|
184
|
+
trace?: never;
|
|
185
|
+
};
|
|
186
|
+
"/v4/qiraahs/{code}": {
|
|
187
|
+
parameters: {
|
|
188
|
+
query?: never;
|
|
189
|
+
header?: never;
|
|
190
|
+
path?: never;
|
|
191
|
+
cookie?: never;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Gets a qiraah
|
|
195
|
+
* @description Gets one qiraah, in the same shape as an entry of `GET /v4/qiraahs`, by its Quran.ws qiraah code, for example `asim` or `ibn_kathir`.
|
|
196
|
+
*/
|
|
197
|
+
get: operations["getQiraah"];
|
|
198
|
+
put?: never;
|
|
199
|
+
post?: never;
|
|
200
|
+
delete?: never;
|
|
201
|
+
options?: never;
|
|
202
|
+
head?: never;
|
|
203
|
+
patch?: never;
|
|
204
|
+
trace?: never;
|
|
205
|
+
};
|
|
206
|
+
"/v4/radios": {
|
|
207
|
+
parameters: {
|
|
208
|
+
query?: never;
|
|
209
|
+
header?: never;
|
|
210
|
+
path?: never;
|
|
211
|
+
cookie?: never;
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Lists the radio stations
|
|
215
|
+
* @description Lists the live radio streams. A station can link to a reciter and a recitation, or can be a playlist. Sort by name, category; prefix a key with `-` for descending order. Defaults to `name`, A to Z.
|
|
216
|
+
*/
|
|
217
|
+
get: operations["listRadios"];
|
|
218
|
+
put?: never;
|
|
219
|
+
post?: never;
|
|
220
|
+
delete?: never;
|
|
221
|
+
options?: never;
|
|
222
|
+
head?: never;
|
|
223
|
+
patch?: never;
|
|
224
|
+
trace?: never;
|
|
225
|
+
};
|
|
226
|
+
"/v4/radios/{id}": {
|
|
227
|
+
parameters: {
|
|
228
|
+
query?: never;
|
|
229
|
+
header?: never;
|
|
230
|
+
path?: never;
|
|
231
|
+
cookie?: never;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Gets a radio station
|
|
235
|
+
* @description Gets one radio station, in the same shape as an entry of `GET /v4/radios`, by its numeric ID. Add `?include=tracks` to include the `tracks` of a playlist station.
|
|
236
|
+
*/
|
|
237
|
+
get: operations["getRadio"];
|
|
238
|
+
put?: never;
|
|
239
|
+
post?: never;
|
|
240
|
+
delete?: never;
|
|
241
|
+
options?: never;
|
|
242
|
+
head?: never;
|
|
243
|
+
patch?: never;
|
|
244
|
+
trace?: never;
|
|
245
|
+
};
|
|
246
|
+
"/v4/recitations": {
|
|
247
|
+
parameters: {
|
|
248
|
+
query?: never;
|
|
249
|
+
header?: never;
|
|
250
|
+
path?: never;
|
|
251
|
+
cookie?: never;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Lists the recitations
|
|
255
|
+
* @description Lists the active recitations, each with its `qiraahs`, `coverage`, `ayah_timings` summary, `total_duration_ms` and audio file patterns. List items omit `torrents` and `itunes_url`; `GET /v4/recitations/{id}` has both. Filter by `reciter`, `riwayah`, `qiraah`, `style`, `occasion`, `tariq` and `surah`; filters combine with AND. A recitation has a list of `riwayahs`, and `?riwayah=` matches any member: a recitation of Yaqub through Ruways and Rawh answers both `?riwayah=ruways_an_yaqub` and `?riwayah=rawh_an_yaqub`. An empty `riwayahs` list means that no riwayah is recorded, not that every riwayah is. Find such a recitation with `?qiraah=`, which matches any member of `qiraahs`. Sort by id, surahs, updated, recorded_year; prefix a key with `-` for descending order. Defaults to `id`.
|
|
256
|
+
*/
|
|
257
|
+
get: operations["listRecitations"];
|
|
258
|
+
put?: never;
|
|
259
|
+
post?: never;
|
|
260
|
+
delete?: never;
|
|
261
|
+
options?: never;
|
|
262
|
+
head?: never;
|
|
263
|
+
patch?: never;
|
|
264
|
+
trace?: never;
|
|
265
|
+
};
|
|
266
|
+
"/v4/recitations/{id}": {
|
|
267
|
+
parameters: {
|
|
268
|
+
query?: never;
|
|
269
|
+
header?: never;
|
|
270
|
+
path?: never;
|
|
271
|
+
cookie?: never;
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Gets a recitation
|
|
275
|
+
* @description Gets one recitation. Add `?include=surahs` to embed its surahs: each entry has the `duration_ms`, the levels of detail it has and the measurements of each quality tier in `files`. A recitation has a folder address, `/v4/recitations/{reciter}/r{n}`, for example `/v4/recitations/mahmoud-husary/r1`. The folder only names the recitation: its riwayah and style appear in the response, not in the path. Every sub-path of `/v4/recitations/{id}` (`surahs`, `surahs/{n}/ayah-timings`, `surahs/{n}/word-timings`, `surahs/{n}/letter-timings`, `surahs/{n}/phoneme-timings`) also works under the folder address. The numeric ID, the folder URL-encoded as `{id}` (`mahmoud-husary%2Fr1`), a different case and a former spelling of the reciter code redirect with 301 to the folder address, keeping the query string and the sub-path.
|
|
276
|
+
*/
|
|
277
|
+
get: operations["getRecitation"];
|
|
278
|
+
put?: never;
|
|
279
|
+
post?: never;
|
|
280
|
+
delete?: never;
|
|
281
|
+
options?: never;
|
|
282
|
+
head?: never;
|
|
283
|
+
patch?: never;
|
|
284
|
+
trace?: never;
|
|
285
|
+
};
|
|
286
|
+
"/v4/recitations/{id}/surahs": {
|
|
287
|
+
parameters: {
|
|
288
|
+
query?: never;
|
|
289
|
+
header?: never;
|
|
290
|
+
path?: never;
|
|
291
|
+
cookie?: never;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Lists the surahs of a recitation
|
|
295
|
+
* @description Lists the audio files of one recitation, one entry per surah. Also answers at the folder address, `/v4/recitations/{reciter}/r{n}/surahs`. Sort by surah, duration_ms; prefix a key with `-` for descending. The default is `surah`.
|
|
296
|
+
*/
|
|
297
|
+
get: operations["listRecitationSurahs"];
|
|
298
|
+
put?: never;
|
|
299
|
+
post?: never;
|
|
300
|
+
delete?: never;
|
|
301
|
+
options?: never;
|
|
302
|
+
head?: never;
|
|
303
|
+
patch?: never;
|
|
304
|
+
trace?: never;
|
|
305
|
+
};
|
|
306
|
+
"/v4/recitations/{id}/surahs/{n}": {
|
|
307
|
+
parameters: {
|
|
308
|
+
query?: never;
|
|
309
|
+
header?: never;
|
|
310
|
+
path?: never;
|
|
311
|
+
cookie?: never;
|
|
312
|
+
};
|
|
313
|
+
/**
|
|
314
|
+
* Gets one surah of a recitation
|
|
315
|
+
* @description Gets the audio of one surah: its `duration_ms`, one entry in `files` for each quality tier it has, each with a ready-to-play `url`, and the levels of detail that exist for it (`ayah`, `word`, `letter`, `phoneme`; empty when there are none). Also answers at the folder address, `/v4/recitations/{reciter}/r{n}/surahs/{n}`.
|
|
316
|
+
*/
|
|
317
|
+
get: operations["getRecitationSurah"];
|
|
318
|
+
put?: never;
|
|
319
|
+
post?: never;
|
|
320
|
+
delete?: never;
|
|
321
|
+
options?: never;
|
|
322
|
+
head?: never;
|
|
323
|
+
patch?: never;
|
|
324
|
+
trace?: never;
|
|
325
|
+
};
|
|
326
|
+
"/v4/recitations/{id}/surahs/{n}/ayah-timings": {
|
|
327
|
+
parameters: {
|
|
328
|
+
query?: never;
|
|
329
|
+
header?: never;
|
|
330
|
+
path?: never;
|
|
331
|
+
cookie?: never;
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* Gets the ayah timings of a surah
|
|
335
|
+
* @description Gets the start and end of every ayah of one surah of one recitation, in milliseconds. `ayahs` is a list of `[ayah, start_ms, end_ms]` entries, three integers each. Ayah 0 is the basmalah and ayah -1 is the istiadhah. Add `?include=text` to add a fourth element to each entry, the written text of the ayah in the wording of the recitation's riwayah, or `null` where that wording is not available; the text is off by default to keep the payload small. `?ayah=`, or a range such as `ayah=18-20`, keeps only those ayahs; it leaves out the istiadhah and the basmalah.
|
|
336
|
+
*
|
|
337
|
+
* **Complete.** `complete` is `true` when every ayah of the surah, from 1 to its last, has at least one entry.
|
|
338
|
+
*
|
|
339
|
+
* **Istiadhah.** When the reciter recited the istiadhah before the surah, it is the first entry, with `ayah` `-1`. When the recitation has none before this surah, there is no such entry.
|
|
340
|
+
*
|
|
341
|
+
* **Repeats.** Entries are in the order the reciter recited them (sorted by `start_ms`), not in ayah order. An ayah that the reciter recited twice appears twice, each time with its own `start_ms` and `end_ms`. For example, in surah 37 by Mahmoud Khalil Al-Hussary, ayah 151 appears at 1706601–1717226 ms and again at 1719657–1724706 ms. A jump back of a few words inside one ayah is still one entry: the entry spans it. To list the ayahs in text order, sort by `ayah`. To highlight while the audio plays, walk the entries in the order given.
|
|
342
|
+
*
|
|
343
|
+
* The folder address of the recitation, `/v4/recitations/{reciter}/r{n}/surahs/{n}/ayah-timings`, answers the same request. The numeric ID, a `%2F`-encoded folder and other casings redirect with 301 to it.
|
|
344
|
+
*/
|
|
345
|
+
get: operations["getAyahTimings"];
|
|
346
|
+
put?: never;
|
|
347
|
+
post?: never;
|
|
348
|
+
delete?: never;
|
|
349
|
+
options?: never;
|
|
350
|
+
head?: never;
|
|
351
|
+
patch?: never;
|
|
352
|
+
trace?: never;
|
|
353
|
+
};
|
|
354
|
+
"/v4/recitations/{id}/surahs/{n}/clip": {
|
|
355
|
+
parameters: {
|
|
356
|
+
query?: never;
|
|
357
|
+
header?: never;
|
|
358
|
+
path?: never;
|
|
359
|
+
cookie?: never;
|
|
360
|
+
};
|
|
361
|
+
/**
|
|
362
|
+
* Gets an audio clip of some ayahs of a surah
|
|
363
|
+
* @description Cuts the audio of one ayah, or a range of ayahs, out of a surah file. `ayah` is required: a number such as `5` or a range such as `18-20`; `0` is the basmalah. A range is limited to the number of ayahs the server allows per clip. A clip that is ready answers 302 with its address in `Location`; otherwise the cut is queued and the answer is 202, to be repeated after `Retry-After` seconds. Also answers at the folder address, `/v4/recitations/{reciter}/r{n}/surahs/{n}/clip`.
|
|
364
|
+
*/
|
|
365
|
+
get: operations["getSurahClip"];
|
|
366
|
+
put?: never;
|
|
367
|
+
post?: never;
|
|
368
|
+
delete?: never;
|
|
369
|
+
options?: never;
|
|
370
|
+
head?: never;
|
|
371
|
+
patch?: never;
|
|
372
|
+
trace?: never;
|
|
373
|
+
};
|
|
374
|
+
"/v4/recitations/{id}/surahs/{n}/letter-timings": {
|
|
375
|
+
parameters: {
|
|
376
|
+
query?: never;
|
|
377
|
+
header?: never;
|
|
378
|
+
path?: never;
|
|
379
|
+
cookie?: never;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* Gets the letter timings of a surah
|
|
383
|
+
* @description Gets the start and end of every letter of one surah of one recitation, in milliseconds, one level finer than `/word-timings` and asked the same way. The response is `surah` and `letters`; add more with `?include=`.
|
|
384
|
+
*
|
|
385
|
+
* `letters` lists one entry per letter heard, in the order heard. Each entry is `[ayah, word_position, letter_index, start_ms, end_ms, occurrence, conf]`: the word entry with `letter_index` after the word position and `conf` at the end. `letter_index` counts from 1 within the word, and `occurrence` is the occurrence of the word the letter belongs to. `?view=playback` is this default layout. `?view=positions` returns `ayahs` instead, nested by ayah, then word position, then letter index, each holding `[start_ms, end_ms, occurrence, conf]` intervals in the order heard.
|
|
386
|
+
*
|
|
387
|
+
* Letters map to the written text, so use this level to highlight or teach. For pronunciation detail such as silent letters, idgham and madd, use the beta `/phoneme-timings`.
|
|
388
|
+
*
|
|
389
|
+
* Every letter has a `conf` value. It is `null` only for a silent letter, which has no sound of its own and shares the span of a neighboring letter, for example an idgham target.
|
|
390
|
+
*
|
|
391
|
+
* **Include.** Comma-separated: `alignment`, `audio`, `summary` (`timings.prologue`, `timings.coverage` and `timings.range`) and `segments`, as on `/word-timings`. Any other value is a 400.
|
|
392
|
+
*
|
|
393
|
+
* **Windows.** `ayah`, or a range such as `ayah=18-20`, `from_ms`, `to_ms` and `at_ms` narrow the entries and `segments`, as on `/word-timings`.
|
|
394
|
+
*
|
|
395
|
+
* The route returns 404 `not_found` when the recitation has no letter timings for the surah.
|
|
396
|
+
*/
|
|
397
|
+
get: operations["getLetterTimings"];
|
|
398
|
+
put?: never;
|
|
399
|
+
post?: never;
|
|
400
|
+
delete?: never;
|
|
401
|
+
options?: never;
|
|
402
|
+
head?: never;
|
|
403
|
+
patch?: never;
|
|
404
|
+
trace?: never;
|
|
405
|
+
};
|
|
406
|
+
"/v4/recitations/{id}/surahs/{n}/phoneme-timings": {
|
|
407
|
+
parameters: {
|
|
408
|
+
query?: never;
|
|
409
|
+
header?: never;
|
|
410
|
+
path?: never;
|
|
411
|
+
cookie?: never;
|
|
412
|
+
};
|
|
413
|
+
/**
|
|
414
|
+
* Gets the phoneme timings of a surah (Beta)
|
|
415
|
+
* @description **Beta.** The accuracy of this level on the hard cases it exists for, silent letters, idgham and madd, isn't verified against a qualified teacher. Values can change between releases with no deprecation notice, so don't build a feature that assumes today's phoneme boundaries are final. To highlight or teach against the written text, use `/letter-timings`.
|
|
416
|
+
*
|
|
417
|
+
* Gets the start and end of every phoneme of one surah of one recitation, in milliseconds, one level finer than `/letter-timings` and asked the same way. The response is `surah` and `phonemes`; add more with `?include=`.
|
|
418
|
+
*
|
|
419
|
+
* `phonemes` lists one entry per phoneme, in the order heard. Each entry is `[ayah, word_position, letter_index, phoneme_index, start_ms, end_ms, occurrence, conf]`: the letter entry with `phoneme_index` after the letter index. `phoneme_index` counts from 1 within the letter. `?view=positions` returns `ayahs` instead, nested by ayah, word position, letter index and phoneme index, each holding `[start_ms, end_ms, occurrence, conf]` intervals.
|
|
420
|
+
*
|
|
421
|
+
* Every letter with sound has at least one phoneme in the response. A silent letter, as defined in `/letter-timings`, has none.
|
|
422
|
+
*
|
|
423
|
+
* **Include and windows.** The same as `/letter-timings`: `alignment`, `audio`, `summary` and `segments`; `ayah`, `from_ms`, `to_ms` and `at_ms`, applied to each phoneme's own span.
|
|
424
|
+
*
|
|
425
|
+
* The route returns 404 `not_found` when the recitation has no phoneme timings for the surah.
|
|
426
|
+
*/
|
|
427
|
+
get: operations["getPhonemeTimings"];
|
|
428
|
+
put?: never;
|
|
429
|
+
post?: never;
|
|
430
|
+
delete?: never;
|
|
431
|
+
options?: never;
|
|
432
|
+
head?: never;
|
|
433
|
+
patch?: never;
|
|
434
|
+
trace?: never;
|
|
435
|
+
};
|
|
436
|
+
"/v4/recitations/{id}/surahs/{n}/word-timings": {
|
|
437
|
+
parameters: {
|
|
438
|
+
query?: never;
|
|
439
|
+
header?: never;
|
|
440
|
+
path?: never;
|
|
441
|
+
cookie?: never;
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* Gets the word timings of a surah
|
|
445
|
+
* @description Gets the start and end of every word of one surah of one recitation, in milliseconds. The response is `surah`, `words` and `estimated`; add more with `?include=`.
|
|
446
|
+
*
|
|
447
|
+
* `words` lists one entry per word heard, in the order heard. Each entry is `[ayah, word_position, start_ms, end_ms, occurrence]`, ready to walk while the audio plays. `?view=playback` is this default layout. `?view=positions` returns the same intervals in `ayahs` instead, grouped by ayah and word position: `ayahs["1"]["10"]` lists the intervals in which word 10 of ayah 1 was heard, in the order heard, each `[start_ms, end_ms, occurrence]`. An empty list means the word was not heard.
|
|
448
|
+
*
|
|
449
|
+
* **Repeats.** A word that the reciter recited again appears again with its own times and the next `occurrence`; in `view=positions` it adds another interval to the position's array, with that `occurrence`. A time window never renumbers an occurrence. A word heard in two pieces, with a short break inside it, isn't a repeat: it is one entry from the start of its first piece to the end of its last. `?include=pieces` lists each piece as its own entry.
|
|
450
|
+
*
|
|
451
|
+
* **Estimated intervals.** A word with no detected audio gets an estimated interval when it sits strictly between two heard words. The gap between the end of the earlier word and the start of the later word is split evenly across the run of missing words. A word stays unheard when the run touches the start or the end of the file, when the gap is zero or negative, or when splitting the gap gives any word more than 5 seconds. A word that the file doesn't contain is never estimated. `estimated` lists the indexes into `words` of the estimated entries, or in `view=positions` their `"ayah:word_position"` keys. Set `?estimate=false` to turn estimation off; the default is on.
|
|
452
|
+
*
|
|
453
|
+
* **Include.** Comma-separated: `alignment` (the release and the text the positions are counted against), `audio` (duration, bytes and SHA-256 of the file timed), `summary` (`timings.prologue`, `timings.coverage` and `timings.range`: what the file recites before the surah, how much of it is heard, and the ayahs covered), `segments` (audio that isn't Qur'an text: istiadhah, basmalah, prologue, epilogue, silence and gaps), `held_too_long` (spans that run far past the reciter's pace, usually audio with no matching text), `prologue` (`prologue_word_timings`, the words of the istiadhah and the basmalah), `pieces` and `text` (the written words of the ayahs returned, each `[word_position, rasm_uthmani, rasm_imlai]`, as the recitation's riwayah writes them, at the ayah and word positions of the entries, as `GET /v4/surahs/{number}/text?riwayah=` gives them; `null` when the text of that riwayah is not available). Any other value is a 400.
|
|
454
|
+
*
|
|
455
|
+
* **Numbering.** Ayah numbers and word positions follow the mushaf the file was aligned in: the riwayah's own mushaf for a recitation aligned in it, which may count the ayahs differently from the Hafs text, otherwise the Hafs text. `alignment.text_source.edition` names it.
|
|
456
|
+
*
|
|
457
|
+
* **Windows.** `ayah`, or a range such as `ayah=18-20`, `from_ms`, `to_ms` and `at_ms` narrow the entries and every section that has a position in the audio. The indexes in `estimated` count within the returned `words`.
|
|
458
|
+
*
|
|
459
|
+
* **Accuracy.** Word boundaries are accurate to within about 40 ms.
|
|
460
|
+
*
|
|
461
|
+
* The folder address of the recitation, `/v4/recitations/{reciter}/r{n}/surahs/{n}/word-timings`, answers the same request. The numeric ID, a `%2F`-encoded folder and other casings redirect with 301 to it.
|
|
462
|
+
*/
|
|
463
|
+
get: operations["getWordTimings"];
|
|
464
|
+
put?: never;
|
|
465
|
+
post?: never;
|
|
466
|
+
delete?: never;
|
|
467
|
+
options?: never;
|
|
468
|
+
head?: never;
|
|
469
|
+
patch?: never;
|
|
470
|
+
trace?: never;
|
|
471
|
+
};
|
|
472
|
+
"/v4/reciters": {
|
|
473
|
+
parameters: {
|
|
474
|
+
query?: never;
|
|
475
|
+
header?: never;
|
|
476
|
+
path?: never;
|
|
477
|
+
cookie?: never;
|
|
478
|
+
};
|
|
479
|
+
/**
|
|
480
|
+
* Lists the reciters
|
|
481
|
+
* @description Lists the active reciters. Add `?include=recitations` to embed the recitations of each, or `?include=recitations.surahs` to embed their files too. Find reciters by name, alias or code with `q` (the same matching as `GET /v4/search`), filter by `country`, and by `riwayah` (a reciter with a recitation whose `riwayahs` list contains it). Sort by name, recitation_count, updated_at, id; prefix a key with `-` for descending order. Defaults to `name`, A to Z in the requested locale, or best match first when `q` is given.
|
|
482
|
+
*/
|
|
483
|
+
get: operations["listReciters"];
|
|
484
|
+
put?: never;
|
|
485
|
+
post?: never;
|
|
486
|
+
delete?: never;
|
|
487
|
+
options?: never;
|
|
488
|
+
head?: never;
|
|
489
|
+
patch?: never;
|
|
490
|
+
trace?: never;
|
|
491
|
+
};
|
|
492
|
+
"/v4/reciters/{idOrSlug}": {
|
|
493
|
+
parameters: {
|
|
494
|
+
query?: never;
|
|
495
|
+
header?: never;
|
|
496
|
+
path?: never;
|
|
497
|
+
cookie?: never;
|
|
498
|
+
};
|
|
499
|
+
/**
|
|
500
|
+
* Gets a reciter
|
|
501
|
+
* @description Gets one reciter by code, numeric ID, code alias or slug, in any case. The canonical URL is `/v4/reciters/{code}`, for example `/v4/reciters/mahmoud-husary`. The numeric ID, aliases and other casings redirect with 301 to the canonical URL, keeping the query string. A reciter record that duplicates another redirects with 301 to the other reciter, which lists the recitations of both. Add `?include=recitations` to embed the recitations of the reciter, or `?include=recitations.surahs` to embed their files too.
|
|
502
|
+
*/
|
|
503
|
+
get: operations["getReciter"];
|
|
504
|
+
put?: never;
|
|
505
|
+
post?: never;
|
|
506
|
+
delete?: never;
|
|
507
|
+
options?: never;
|
|
508
|
+
head?: never;
|
|
509
|
+
patch?: never;
|
|
510
|
+
trace?: never;
|
|
511
|
+
};
|
|
512
|
+
"/v4/riwayahs": {
|
|
513
|
+
parameters: {
|
|
514
|
+
query?: never;
|
|
515
|
+
header?: never;
|
|
516
|
+
path?: never;
|
|
517
|
+
cookie?: never;
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* Lists the riwayahs
|
|
521
|
+
* @description Lists each riwayah with its qiraah, its rawi, its known turuq and its `recitation_count`: the number of recitations whose `riwayahs` list contains it. A recitation of two rawis counts under each, so the counts can add up to more than the number of recitations. A recitation that names only its qiraah counts under no riwayah. The default limit exceeds the collection, so a plain call returns every riwayah in one page. Sort by qiraah, code, recitation_count; prefix a key with `-` for descending order. Defaults to `qiraah`, then `code`.
|
|
522
|
+
*/
|
|
523
|
+
get: operations["listRiwayahs"];
|
|
524
|
+
put?: never;
|
|
525
|
+
post?: never;
|
|
526
|
+
delete?: never;
|
|
527
|
+
options?: never;
|
|
528
|
+
head?: never;
|
|
529
|
+
patch?: never;
|
|
530
|
+
trace?: never;
|
|
531
|
+
};
|
|
532
|
+
"/v4/riwayahs/{code}": {
|
|
533
|
+
parameters: {
|
|
534
|
+
query?: never;
|
|
535
|
+
header?: never;
|
|
536
|
+
path?: never;
|
|
537
|
+
cookie?: never;
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* Gets a riwayah
|
|
541
|
+
* @description Gets one riwayah, in the same shape as an entry of `GET /v4/riwayahs`, by its Quran.ws riwayah code, for example `hafs_an_asim`. To look up a qiraah, use `GET /v4/qiraahs/{code}`.
|
|
542
|
+
*/
|
|
543
|
+
get: operations["getRiwayah"];
|
|
544
|
+
put?: never;
|
|
545
|
+
post?: never;
|
|
546
|
+
delete?: never;
|
|
547
|
+
options?: never;
|
|
548
|
+
head?: never;
|
|
549
|
+
patch?: never;
|
|
550
|
+
trace?: never;
|
|
551
|
+
};
|
|
552
|
+
"/v4/search": {
|
|
553
|
+
parameters: {
|
|
554
|
+
query?: never;
|
|
555
|
+
header?: never;
|
|
556
|
+
path?: never;
|
|
557
|
+
cookie?: never;
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Searches reciters, surahs, riwayahs and radios
|
|
561
|
+
* @description Searches reciters, surahs, riwayahs and radios with one query. The search ignores diacritics and hamza differences and tolerates misspellings, so `Hussary` and `Husari` both find `mahmoud-husary`. Reciters match on their names in every locale and on every alias. Surahs match on their names in every locale, their code, their alternative spellings and their number. Results are grouped by kind, and each hit has a score from 0 to 1. Set `?type=` to a comma-separated subset of kinds to narrow the search. `?country` and `?riwayah` narrow the reciter hits; they return 400 if `?type=` excludes `reciter`.
|
|
562
|
+
*/
|
|
563
|
+
get: operations["search"];
|
|
564
|
+
put?: never;
|
|
565
|
+
post?: never;
|
|
566
|
+
delete?: never;
|
|
567
|
+
options?: never;
|
|
568
|
+
head?: never;
|
|
569
|
+
patch?: never;
|
|
570
|
+
trace?: never;
|
|
571
|
+
};
|
|
572
|
+
"/v4/spoken-translations": {
|
|
573
|
+
parameters: {
|
|
574
|
+
query?: never;
|
|
575
|
+
header?: never;
|
|
576
|
+
path?: never;
|
|
577
|
+
cookie?: never;
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* Lists the spoken translations
|
|
581
|
+
* @description Lists the spoken translations: audio of the meanings of the Quran in another language, one file per surah or per ayah. Build a file URL from `audio.base` and `audio.files`. Sort by language, code; prefix a key with `-` for descending order. Defaults to `language`.
|
|
582
|
+
*/
|
|
583
|
+
get: operations["listSpokenTranslations"];
|
|
584
|
+
put?: never;
|
|
585
|
+
post?: never;
|
|
586
|
+
delete?: never;
|
|
587
|
+
options?: never;
|
|
588
|
+
head?: never;
|
|
589
|
+
patch?: never;
|
|
590
|
+
trace?: never;
|
|
591
|
+
};
|
|
592
|
+
"/v4/spoken-translations/{code}": {
|
|
593
|
+
parameters: {
|
|
594
|
+
query?: never;
|
|
595
|
+
header?: never;
|
|
596
|
+
path?: never;
|
|
597
|
+
cookie?: never;
|
|
598
|
+
};
|
|
599
|
+
/**
|
|
600
|
+
* Gets a spoken translation
|
|
601
|
+
* @description Gets one spoken translation by its code, in the same shape as an entry of `GET /v4/spoken-translations`.
|
|
602
|
+
*/
|
|
603
|
+
get: operations["getSpokenTranslation"];
|
|
604
|
+
put?: never;
|
|
605
|
+
post?: never;
|
|
606
|
+
delete?: never;
|
|
607
|
+
options?: never;
|
|
608
|
+
head?: never;
|
|
609
|
+
patch?: never;
|
|
610
|
+
trace?: never;
|
|
611
|
+
};
|
|
612
|
+
"/v4/surahs": {
|
|
613
|
+
parameters: {
|
|
614
|
+
query?: never;
|
|
615
|
+
header?: never;
|
|
616
|
+
path?: never;
|
|
617
|
+
cookie?: never;
|
|
618
|
+
};
|
|
619
|
+
/**
|
|
620
|
+
* Lists the surahs
|
|
621
|
+
* @description Lists every surah with its number, code, localized name, ayah count and revelation. The default limit (200) exceeds the 114 surahs, so a plain call returns every surah in one page. Sort by number, name, ayah_count, revelation; prefix a key with `-` for descending order. Defaults to `number`, the mushaf order.
|
|
622
|
+
*/
|
|
623
|
+
get: operations["listSurahs"];
|
|
624
|
+
put?: never;
|
|
625
|
+
post?: never;
|
|
626
|
+
delete?: never;
|
|
627
|
+
options?: never;
|
|
628
|
+
head?: never;
|
|
629
|
+
patch?: never;
|
|
630
|
+
trace?: never;
|
|
631
|
+
};
|
|
632
|
+
"/v4/surahs/{number}": {
|
|
633
|
+
parameters: {
|
|
634
|
+
query?: never;
|
|
635
|
+
header?: never;
|
|
636
|
+
path?: never;
|
|
637
|
+
cookie?: never;
|
|
638
|
+
};
|
|
639
|
+
/**
|
|
640
|
+
* Gets a surah
|
|
641
|
+
* @description Gets one surah, in the same shape as an entry of `GET /v4/surahs`, by its mushaf number from 1 to 114.
|
|
642
|
+
*/
|
|
643
|
+
get: operations["getSurah"];
|
|
644
|
+
put?: never;
|
|
645
|
+
post?: never;
|
|
646
|
+
delete?: never;
|
|
647
|
+
options?: never;
|
|
648
|
+
head?: never;
|
|
649
|
+
patch?: never;
|
|
650
|
+
trace?: never;
|
|
651
|
+
};
|
|
652
|
+
"/v4/surahs/{number}/text": {
|
|
653
|
+
parameters: {
|
|
654
|
+
query?: never;
|
|
655
|
+
header?: never;
|
|
656
|
+
path?: never;
|
|
657
|
+
cookie?: never;
|
|
658
|
+
};
|
|
659
|
+
/**
|
|
660
|
+
* Gets the words of a surah
|
|
661
|
+
* @description Gets the written words of one surah, ayah by ayah, as the text edition of a riwayah writes them (`?riwayah=`, default `hafs_an_asim`). `ayahs` lists `[ayah, words]` in ayah order, and each word is `[word_position, rasm_uthmani, rasm_imlai]`.
|
|
662
|
+
*
|
|
663
|
+
* Ayah numbers and word positions are those of the mushaf of that riwayah, which may count the ayahs differently from the Hafs text: `counting` names the counting they follow (`kufi` for Hafs, `madani_last` for Warsh, for example). They are the same as in the word timings of a recitation of that riwayah aligned in its own mushaf, so a player can look up the word it is highlighting and render an ayah by walking its words in order. `?coordinates=hafs` answers the same words at the ayah numbers and word positions of the Hafs text instead, as the word timings of a recitation aligned against the Hafs text carry them; there a position at which the riwayah writes no word of its own (a word it does not read, or one it writes joined to the word before) is left out. For `hafs_an_asim` the two are the same.
|
|
664
|
+
*
|
|
665
|
+
* `rasm_uthmani` is the word as the edition writes it, without waqf marks; `rasm_imlai` is its plain modern spelling, `null` where the edition gives none (every word outside `hafs_an_asim`). `?ayah=`, or a range such as `ayah=1-5`, keeps only those ayahs. The text changes only with the edition, so the response can be cached for a long time.
|
|
666
|
+
*/
|
|
667
|
+
get: operations["getSurahText"];
|
|
668
|
+
put?: never;
|
|
669
|
+
post?: never;
|
|
670
|
+
delete?: never;
|
|
671
|
+
options?: never;
|
|
672
|
+
head?: never;
|
|
673
|
+
patch?: never;
|
|
674
|
+
trace?: never;
|
|
675
|
+
};
|
|
676
|
+
"/v4/tafsirs": {
|
|
677
|
+
parameters: {
|
|
678
|
+
query?: never;
|
|
679
|
+
header?: never;
|
|
680
|
+
path?: never;
|
|
681
|
+
cookie?: never;
|
|
682
|
+
};
|
|
683
|
+
/**
|
|
684
|
+
* Lists the tafsir works
|
|
685
|
+
* @description Lists the tafsir works and podcast series, each with an `item_count` and the `language` of its audio. Sort by name, item_count; prefix a key with `-` for descending order. Defaults to `name`, A to Z.
|
|
686
|
+
*/
|
|
687
|
+
get: operations["listTafsirs"];
|
|
688
|
+
put?: never;
|
|
689
|
+
post?: never;
|
|
690
|
+
delete?: never;
|
|
691
|
+
options?: never;
|
|
692
|
+
head?: never;
|
|
693
|
+
patch?: never;
|
|
694
|
+
trace?: never;
|
|
695
|
+
};
|
|
696
|
+
"/v4/tafsirs/{id}": {
|
|
697
|
+
parameters: {
|
|
698
|
+
query?: never;
|
|
699
|
+
header?: never;
|
|
700
|
+
path?: never;
|
|
701
|
+
cookie?: never;
|
|
702
|
+
};
|
|
703
|
+
/**
|
|
704
|
+
* Gets a tafsir work
|
|
705
|
+
* @description Gets one tafsir work, in the same shape as an entry of `GET /v4/tafsirs`, by its numeric ID.
|
|
706
|
+
*/
|
|
707
|
+
get: operations["getTafsir"];
|
|
708
|
+
put?: never;
|
|
709
|
+
post?: never;
|
|
710
|
+
delete?: never;
|
|
711
|
+
options?: never;
|
|
712
|
+
head?: never;
|
|
713
|
+
patch?: never;
|
|
714
|
+
trace?: never;
|
|
715
|
+
};
|
|
716
|
+
"/v4/tafsirs/{id}/items": {
|
|
717
|
+
parameters: {
|
|
718
|
+
query?: never;
|
|
719
|
+
header?: never;
|
|
720
|
+
path?: never;
|
|
721
|
+
cookie?: never;
|
|
722
|
+
};
|
|
723
|
+
/**
|
|
724
|
+
* Lists the items of a tafsir work
|
|
725
|
+
* @description Lists the episodes or ayah ranges that the tafsir work covers, in the work's own order. Sort by position, surah, id; prefix a key with `-` for descending. The default is `position`.
|
|
726
|
+
*/
|
|
727
|
+
get: operations["listTafsirItems"];
|
|
728
|
+
put?: never;
|
|
729
|
+
post?: never;
|
|
730
|
+
delete?: never;
|
|
731
|
+
options?: never;
|
|
732
|
+
head?: never;
|
|
733
|
+
patch?: never;
|
|
734
|
+
trace?: never;
|
|
735
|
+
};
|
|
736
|
+
"/v4/timing-releases": {
|
|
737
|
+
parameters: {
|
|
738
|
+
query?: never;
|
|
739
|
+
header?: never;
|
|
740
|
+
path?: never;
|
|
741
|
+
cookie?: never;
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* Lists the releases
|
|
745
|
+
* @description A release is one immutable set of ayah, word, letter and phoneme timings. A correction is published as a new release. A release is listed once its files are available. `granularities` lists the tiers the release carries: `ayah` and `word`, plus `letter` and `phoneme` where present. `manifest_url` is the release manifest, which lists every file with its status and, for a rejected file, the reason. `recitation_url_template` is the URL of one recitation's bundle: the word-timings and ayah-timings responses of every accepted surah, in the shape this API returns them. Sort by created_at, release; prefix a key with `-` for descending. The default is `-created_at`.
|
|
746
|
+
*/
|
|
747
|
+
get: operations["listTimingReleases"];
|
|
748
|
+
put?: never;
|
|
749
|
+
post?: never;
|
|
750
|
+
delete?: never;
|
|
751
|
+
options?: never;
|
|
752
|
+
head?: never;
|
|
753
|
+
patch?: never;
|
|
754
|
+
trace?: never;
|
|
755
|
+
};
|
|
756
|
+
"/v4/timing-releases/{release}": {
|
|
757
|
+
parameters: {
|
|
758
|
+
query?: never;
|
|
759
|
+
header?: never;
|
|
760
|
+
path?: never;
|
|
761
|
+
cookie?: never;
|
|
762
|
+
};
|
|
763
|
+
/**
|
|
764
|
+
* Gets a release
|
|
765
|
+
* @description A release is one immutable set of ayah, word, letter and phoneme timings. A correction is published as a new release. A release is listed once its files are available. `granularities` lists the tiers the release carries: `ayah` and `word`, plus `letter` and `phoneme` where present. `manifest_url` is the release manifest, which lists every file with its status and, for a rejected file, the reason. `recitation_url_template` is the URL of one recitation's bundle: the word-timings and ayah-timings responses of every accepted surah, in the shape this API returns them.
|
|
766
|
+
*/
|
|
767
|
+
get: operations["getTimingRelease"];
|
|
768
|
+
put?: never;
|
|
769
|
+
post?: never;
|
|
770
|
+
delete?: never;
|
|
771
|
+
options?: never;
|
|
772
|
+
head?: never;
|
|
773
|
+
patch?: never;
|
|
774
|
+
trace?: never;
|
|
775
|
+
};
|
|
776
|
+
"/v4/tv": {
|
|
777
|
+
parameters: {
|
|
778
|
+
query?: never;
|
|
779
|
+
header?: never;
|
|
780
|
+
path?: never;
|
|
781
|
+
cookie?: never;
|
|
782
|
+
};
|
|
783
|
+
/**
|
|
784
|
+
* Lists the TV channels
|
|
785
|
+
* @description Lists the live TV channels, each with a direct `stream_url`. Sort by id, name; prefix a key with `-` for descending. The default is `id`.
|
|
786
|
+
*/
|
|
787
|
+
get: operations["listTvChannels"];
|
|
788
|
+
put?: never;
|
|
789
|
+
post?: never;
|
|
790
|
+
delete?: never;
|
|
791
|
+
options?: never;
|
|
792
|
+
head?: never;
|
|
793
|
+
patch?: never;
|
|
794
|
+
trace?: never;
|
|
795
|
+
};
|
|
796
|
+
"/v4/tv/{id}": {
|
|
797
|
+
parameters: {
|
|
798
|
+
query?: never;
|
|
799
|
+
header?: never;
|
|
800
|
+
path?: never;
|
|
801
|
+
cookie?: never;
|
|
802
|
+
};
|
|
803
|
+
/**
|
|
804
|
+
* Gets a TV channel
|
|
805
|
+
* @description Gets one TV channel, in the same shape as an entry of `GET /v4/tv`, by its numeric ID.
|
|
806
|
+
*/
|
|
807
|
+
get: operations["getTvChannel"];
|
|
808
|
+
put?: never;
|
|
809
|
+
post?: never;
|
|
810
|
+
delete?: never;
|
|
811
|
+
options?: never;
|
|
812
|
+
head?: never;
|
|
813
|
+
patch?: never;
|
|
814
|
+
trace?: never;
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
export type webhooks = Record<string, never>;
|
|
818
|
+
export interface components {
|
|
819
|
+
schemas: {
|
|
820
|
+
Audio: {
|
|
821
|
+
/**
|
|
822
|
+
* @description The URL of the recitation folder, ending in `/`. Append a pattern from `files` to it.
|
|
823
|
+
* @example https://cdn.mp3quran.net/audio/mahmoud-husary/r1/
|
|
824
|
+
*/
|
|
825
|
+
base: string;
|
|
826
|
+
files: components["schemas"]["AudioFiles"];
|
|
827
|
+
};
|
|
828
|
+
AudioFileInfo: {
|
|
829
|
+
/** @example 132 */
|
|
830
|
+
bitrate_kbps: number | null;
|
|
831
|
+
bytes: number | null;
|
|
832
|
+
/** @description The lower-case hexadecimal SHA-256 of the file. `null` when unknown. */
|
|
833
|
+
sha256: string | null;
|
|
834
|
+
};
|
|
835
|
+
/** @description The file pattern of each quality tier that every available surah has. `{surah:03d}` is the surah number padded to three digits. */
|
|
836
|
+
AudioFiles: {
|
|
837
|
+
/** @example {surah:03d}-64k.mp3 */
|
|
838
|
+
mp3_64?: string;
|
|
839
|
+
/** @example {surah:03d}.opus */
|
|
840
|
+
opus_48?: string;
|
|
841
|
+
/** @example {surah:03d}.mp3 */
|
|
842
|
+
original: string;
|
|
843
|
+
};
|
|
844
|
+
AyahRange: {
|
|
845
|
+
end: number;
|
|
846
|
+
start: number;
|
|
847
|
+
};
|
|
848
|
+
/**
|
|
849
|
+
* @description `[ayah, words]`: an ayah number and its words in order, each `[word_position, rasm_uthmani, rasm_imlai, word_id]`.
|
|
850
|
+
* @example [
|
|
851
|
+
* 1,
|
|
852
|
+
* [
|
|
853
|
+
* [
|
|
854
|
+
* 1,
|
|
855
|
+
* "قُلۡ",
|
|
856
|
+
* "قل",
|
|
857
|
+
* 77377
|
|
858
|
+
* ],
|
|
859
|
+
* [
|
|
860
|
+
* 2,
|
|
861
|
+
* "هُوَ",
|
|
862
|
+
* "هو",
|
|
863
|
+
* 77378
|
|
864
|
+
* ],
|
|
865
|
+
* [
|
|
866
|
+
* 3,
|
|
867
|
+
* "ٱللَّهُ",
|
|
868
|
+
* "الله",
|
|
869
|
+
* 77379
|
|
870
|
+
* ],
|
|
871
|
+
* [
|
|
872
|
+
* 4,
|
|
873
|
+
* "أَحَدٌ",
|
|
874
|
+
* "أحد",
|
|
875
|
+
* 77380
|
|
876
|
+
* ]
|
|
877
|
+
* ]
|
|
878
|
+
* ]
|
|
879
|
+
*/
|
|
880
|
+
AyahText: [
|
|
881
|
+
number,
|
|
882
|
+
[
|
|
883
|
+
number,
|
|
884
|
+
string,
|
|
885
|
+
string | null,
|
|
886
|
+
number | null
|
|
887
|
+
][]
|
|
888
|
+
];
|
|
889
|
+
AyahTimings: {
|
|
890
|
+
/**
|
|
891
|
+
* @description One entry `[ayah, start_ms, end_ms]` per recitation of an ayah, in the order heard; `0` is the basmalah and `-1` the istiadhah. With `?include=text` a fourth element is the ayah's text, in the wording of the recitation's riwayah; it is `null` where that wording is not available.
|
|
892
|
+
* @example [
|
|
893
|
+
* [
|
|
894
|
+
* 1,
|
|
895
|
+
* 8681,
|
|
896
|
+
* 74180
|
|
897
|
+
* ],
|
|
898
|
+
* [
|
|
899
|
+
* 2,
|
|
900
|
+
* 75529,
|
|
901
|
+
* 112000
|
|
902
|
+
* ]
|
|
903
|
+
* ]
|
|
904
|
+
*/
|
|
905
|
+
ayahs: ([
|
|
906
|
+
number,
|
|
907
|
+
number,
|
|
908
|
+
number
|
|
909
|
+
] | [
|
|
910
|
+
number,
|
|
911
|
+
number,
|
|
912
|
+
number,
|
|
913
|
+
string | null
|
|
914
|
+
])[];
|
|
915
|
+
/** @description Whether every ayah of the surah, from 1 to its last, has at least one entry in `ayahs`. */
|
|
916
|
+
complete: boolean;
|
|
917
|
+
/** @example 4 */
|
|
918
|
+
surah: number;
|
|
919
|
+
};
|
|
920
|
+
Collection: {
|
|
921
|
+
/**
|
|
922
|
+
* @description The permanent code of the collection, such as `for-memorisation`.
|
|
923
|
+
* @example for-memorisation
|
|
924
|
+
*/
|
|
925
|
+
code: string;
|
|
926
|
+
/** @description A sentence about the collection, in the requested locale, or null. */
|
|
927
|
+
description: string | null;
|
|
928
|
+
id: number;
|
|
929
|
+
/** @description True when the collection is shown first, for example on a front page. */
|
|
930
|
+
is_featured: boolean;
|
|
931
|
+
links: components["schemas"]["Links"];
|
|
932
|
+
/** @description The name, in the requested locale. */
|
|
933
|
+
name: string;
|
|
934
|
+
};
|
|
935
|
+
CollectionItem: {
|
|
936
|
+
/**
|
|
937
|
+
* @description The code of a reciter, or the address of a recitation; null for a radio station or a tafsir.
|
|
938
|
+
* @example mahmoud-husary
|
|
939
|
+
*/
|
|
940
|
+
code: string | null;
|
|
941
|
+
id: number;
|
|
942
|
+
/**
|
|
943
|
+
* @description What the item is: `reciter`, `recitation`, `radio` or `tafsir`.
|
|
944
|
+
* @example reciter
|
|
945
|
+
* @enum {string}
|
|
946
|
+
*/
|
|
947
|
+
kind: "reciter" | "recitation" | "radio" | "tafsir";
|
|
948
|
+
links: components["schemas"]["Links"];
|
|
949
|
+
/** @description The name, in the requested locale. */
|
|
950
|
+
name: string;
|
|
951
|
+
/** @description Why the item is in the collection, or null. */
|
|
952
|
+
note: string | null;
|
|
953
|
+
};
|
|
954
|
+
Coverage: {
|
|
955
|
+
/** @description Whether all 114 surahs have audio. */
|
|
956
|
+
complete: boolean;
|
|
957
|
+
/**
|
|
958
|
+
* @description The numbers of the surahs that have audio, in ascending order.
|
|
959
|
+
* @example [
|
|
960
|
+
* 1,
|
|
961
|
+
* 2,
|
|
962
|
+
* 18,
|
|
963
|
+
* 36,
|
|
964
|
+
* 55,
|
|
965
|
+
* 56,
|
|
966
|
+
* 67,
|
|
967
|
+
* 78,
|
|
968
|
+
* 112,
|
|
969
|
+
* 113,
|
|
970
|
+
* 114
|
|
971
|
+
* ]
|
|
972
|
+
*/
|
|
973
|
+
surahs: number[];
|
|
974
|
+
};
|
|
975
|
+
Division: {
|
|
976
|
+
first_ayah: {
|
|
977
|
+
ayah: number;
|
|
978
|
+
surah: number;
|
|
979
|
+
};
|
|
980
|
+
last_ayah: {
|
|
981
|
+
ayah: number;
|
|
982
|
+
surah: number;
|
|
983
|
+
};
|
|
984
|
+
number: number;
|
|
985
|
+
};
|
|
986
|
+
Error: {
|
|
987
|
+
error: {
|
|
988
|
+
code: string;
|
|
989
|
+
field?: string;
|
|
990
|
+
message: string;
|
|
991
|
+
};
|
|
992
|
+
};
|
|
993
|
+
Language: {
|
|
994
|
+
code: string;
|
|
995
|
+
/** @enum {string} */
|
|
996
|
+
direction: "ltr" | "rtl";
|
|
997
|
+
name: string;
|
|
998
|
+
name_en: string;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* @example [
|
|
1002
|
+
* 1,
|
|
1003
|
+
* 1,
|
|
1004
|
+
* 2,
|
|
1005
|
+
* 9145,
|
|
1006
|
+
* 10985,
|
|
1007
|
+
* 1,
|
|
1008
|
+
* 0.998
|
|
1009
|
+
* ]
|
|
1010
|
+
*/
|
|
1011
|
+
LetterPlaybackEntry: [
|
|
1012
|
+
number,
|
|
1013
|
+
number,
|
|
1014
|
+
number,
|
|
1015
|
+
number,
|
|
1016
|
+
number,
|
|
1017
|
+
number,
|
|
1018
|
+
components["schemas"]["TimingConf"]
|
|
1019
|
+
];
|
|
1020
|
+
LetterTimings: {
|
|
1021
|
+
alignment?: components["schemas"]["TimingProvenance"];
|
|
1022
|
+
/** @description The audio file the entries were measured on: its duration, byte size and SHA-256, each `null` when unknown. Present with `?include=audio`. */
|
|
1023
|
+
audio?: {
|
|
1024
|
+
bytes: number | null;
|
|
1025
|
+
duration_ms: number | null;
|
|
1026
|
+
sha256: string | null;
|
|
1027
|
+
};
|
|
1028
|
+
letters: components["schemas"]["LetterPlaybackEntry"][];
|
|
1029
|
+
/** @description The spans of the audio that are not Qur'an text being timed (istiadhah, basmalah, prologue, epilogue, silence, gap), in clock order, within the requested window. Present with `?include=segments`. */
|
|
1030
|
+
segments?: components["schemas"]["TimingSegment"][];
|
|
1031
|
+
/** @example 4 */
|
|
1032
|
+
surah: number;
|
|
1033
|
+
timings?: components["schemas"]["TimingsSummary"];
|
|
1034
|
+
};
|
|
1035
|
+
LetterTimingsPositions: {
|
|
1036
|
+
alignment?: components["schemas"]["TimingProvenance"];
|
|
1037
|
+
/** @description The audio file the entries were measured on: its duration, byte size and SHA-256, each `null` when unknown. Present with `?include=audio`. */
|
|
1038
|
+
audio?: {
|
|
1039
|
+
bytes: number | null;
|
|
1040
|
+
duration_ms: number | null;
|
|
1041
|
+
sha256: string | null;
|
|
1042
|
+
};
|
|
1043
|
+
ayahs: {
|
|
1044
|
+
[key: string]: {
|
|
1045
|
+
[key: string]: {
|
|
1046
|
+
[key: string]: components["schemas"]["TimingUnitInterval"][];
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
/** @description The spans of the audio that are not Qur'an text being timed (istiadhah, basmalah, prologue, epilogue, silence, gap), in clock order, within the requested window. Present with `?include=segments`. */
|
|
1051
|
+
segments?: components["schemas"]["TimingSegment"][];
|
|
1052
|
+
/** @example 4 */
|
|
1053
|
+
surah: number;
|
|
1054
|
+
timings?: components["schemas"]["TimingsSummary"];
|
|
1055
|
+
};
|
|
1056
|
+
/**
|
|
1057
|
+
* @example {
|
|
1058
|
+
* "self": "/v4/reciters/mahmoud-husary"
|
|
1059
|
+
* }
|
|
1060
|
+
*/
|
|
1061
|
+
Links: {
|
|
1062
|
+
/** @description The URL of the items of the resource. */
|
|
1063
|
+
items?: string;
|
|
1064
|
+
/** @description The URL of the qiraah that the riwayah belongs to. */
|
|
1065
|
+
qiraah?: string;
|
|
1066
|
+
/** @description The URL of the list of recitations that belong to the resource. */
|
|
1067
|
+
recitations?: string;
|
|
1068
|
+
/** @description The canonical URL of the resource. */
|
|
1069
|
+
self: string;
|
|
1070
|
+
};
|
|
1071
|
+
Meta: {
|
|
1072
|
+
catalogue_version: number;
|
|
1073
|
+
count?: number;
|
|
1074
|
+
locale: string;
|
|
1075
|
+
total?: number | null;
|
|
1076
|
+
};
|
|
1077
|
+
PageLinks: {
|
|
1078
|
+
next?: string;
|
|
1079
|
+
self: string;
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* @example [
|
|
1083
|
+
* 1,
|
|
1084
|
+
* 1,
|
|
1085
|
+
* 2,
|
|
1086
|
+
* 1,
|
|
1087
|
+
* 9145,
|
|
1088
|
+
* 10985,
|
|
1089
|
+
* 1,
|
|
1090
|
+
* 0.998
|
|
1091
|
+
* ]
|
|
1092
|
+
*/
|
|
1093
|
+
PhonemePlaybackEntry: [
|
|
1094
|
+
number,
|
|
1095
|
+
number,
|
|
1096
|
+
number,
|
|
1097
|
+
number,
|
|
1098
|
+
number,
|
|
1099
|
+
number,
|
|
1100
|
+
number,
|
|
1101
|
+
components["schemas"]["TimingConf"]
|
|
1102
|
+
];
|
|
1103
|
+
PhonemeTimings: {
|
|
1104
|
+
alignment?: components["schemas"]["TimingProvenance"];
|
|
1105
|
+
/** @description The audio file the entries were measured on: its duration, byte size and SHA-256, each `null` when unknown. Present with `?include=audio`. */
|
|
1106
|
+
audio?: {
|
|
1107
|
+
bytes: number | null;
|
|
1108
|
+
duration_ms: number | null;
|
|
1109
|
+
sha256: string | null;
|
|
1110
|
+
};
|
|
1111
|
+
phonemes: components["schemas"]["PhonemePlaybackEntry"][];
|
|
1112
|
+
/** @description The spans of the audio that are not Qur'an text being timed (istiadhah, basmalah, prologue, epilogue, silence, gap), in clock order, within the requested window. Present with `?include=segments`. */
|
|
1113
|
+
segments?: components["schemas"]["TimingSegment"][];
|
|
1114
|
+
/** @example 4 */
|
|
1115
|
+
surah: number;
|
|
1116
|
+
timings?: components["schemas"]["TimingsSummary"];
|
|
1117
|
+
};
|
|
1118
|
+
PhonemeTimingsPositions: {
|
|
1119
|
+
alignment?: components["schemas"]["TimingProvenance"];
|
|
1120
|
+
/** @description The audio file the entries were measured on: its duration, byte size and SHA-256, each `null` when unknown. Present with `?include=audio`. */
|
|
1121
|
+
audio?: {
|
|
1122
|
+
bytes: number | null;
|
|
1123
|
+
duration_ms: number | null;
|
|
1124
|
+
sha256: string | null;
|
|
1125
|
+
};
|
|
1126
|
+
ayahs: {
|
|
1127
|
+
[key: string]: {
|
|
1128
|
+
[key: string]: {
|
|
1129
|
+
[key: string]: {
|
|
1130
|
+
[key: string]: components["schemas"]["TimingUnitInterval"][];
|
|
1131
|
+
};
|
|
1132
|
+
};
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
/** @description The spans of the audio that are not Qur'an text being timed (istiadhah, basmalah, prologue, epilogue, silence, gap), in clock order, within the requested window. Present with `?include=segments`. */
|
|
1136
|
+
segments?: components["schemas"]["TimingSegment"][];
|
|
1137
|
+
/** @example 4 */
|
|
1138
|
+
surah: number;
|
|
1139
|
+
timings?: components["schemas"]["TimingsSummary"];
|
|
1140
|
+
};
|
|
1141
|
+
/**
|
|
1142
|
+
* @example [
|
|
1143
|
+
* 1,
|
|
1144
|
+
* 10,
|
|
1145
|
+
* 33033,
|
|
1146
|
+
* 34425,
|
|
1147
|
+
* 2
|
|
1148
|
+
* ]
|
|
1149
|
+
*/
|
|
1150
|
+
PlaybackEntry: [
|
|
1151
|
+
number,
|
|
1152
|
+
number,
|
|
1153
|
+
number,
|
|
1154
|
+
number,
|
|
1155
|
+
number
|
|
1156
|
+
];
|
|
1157
|
+
PrologueWordTimingColumns: {
|
|
1158
|
+
end_ms: number[];
|
|
1159
|
+
start_ms: number[];
|
|
1160
|
+
word_position: number[];
|
|
1161
|
+
};
|
|
1162
|
+
Qiraah: {
|
|
1163
|
+
code: components["schemas"]["QiraahCode"];
|
|
1164
|
+
links: components["schemas"]["Links"];
|
|
1165
|
+
name: string;
|
|
1166
|
+
recitation_count: number;
|
|
1167
|
+
riwayahs: {
|
|
1168
|
+
code: components["schemas"]["RiwayahCode"];
|
|
1169
|
+
name: string;
|
|
1170
|
+
}[];
|
|
1171
|
+
};
|
|
1172
|
+
/** @example asim */
|
|
1173
|
+
QiraahCode: string;
|
|
1174
|
+
QiraahRef: {
|
|
1175
|
+
code: components["schemas"]["QiraahCode"];
|
|
1176
|
+
name: string;
|
|
1177
|
+
};
|
|
1178
|
+
Radio: {
|
|
1179
|
+
category: {
|
|
1180
|
+
/**
|
|
1181
|
+
* @description The category code, e.g. `duas_and_adhkar`. Filter stations with `?category=`.
|
|
1182
|
+
* @example duas_and_adhkar
|
|
1183
|
+
*/
|
|
1184
|
+
code: string;
|
|
1185
|
+
/** @description The category name in the requested locale, falling back to English, then Arabic. */
|
|
1186
|
+
name: string;
|
|
1187
|
+
} | null;
|
|
1188
|
+
id: number;
|
|
1189
|
+
is_playlist: boolean;
|
|
1190
|
+
links: components["schemas"]["Links"];
|
|
1191
|
+
/** @description The name, in the requested locale. */
|
|
1192
|
+
name: string;
|
|
1193
|
+
recitation: {
|
|
1194
|
+
code: string | null;
|
|
1195
|
+
id: number;
|
|
1196
|
+
} | null;
|
|
1197
|
+
reciter: {
|
|
1198
|
+
code: string;
|
|
1199
|
+
id: number;
|
|
1200
|
+
name: string;
|
|
1201
|
+
} | null;
|
|
1202
|
+
riwayah: {
|
|
1203
|
+
code: components["schemas"]["RiwayahCode"];
|
|
1204
|
+
name: string;
|
|
1205
|
+
qiraah: components["schemas"]["QiraahCode"];
|
|
1206
|
+
} | null;
|
|
1207
|
+
stream_url: string;
|
|
1208
|
+
/** @description The tracks of a playlist station. Present only with `?include=tracks`. */
|
|
1209
|
+
tracks?: components["schemas"]["RadioTrack"][];
|
|
1210
|
+
};
|
|
1211
|
+
RadioHit: {
|
|
1212
|
+
category: {
|
|
1213
|
+
/**
|
|
1214
|
+
* @description The category code, e.g. `duas_and_adhkar`. Filter stations with `?category=`.
|
|
1215
|
+
* @example duas_and_adhkar
|
|
1216
|
+
*/
|
|
1217
|
+
code: string;
|
|
1218
|
+
/** @description The category name in the requested locale, falling back to English, then Arabic. */
|
|
1219
|
+
name: string;
|
|
1220
|
+
} | null;
|
|
1221
|
+
id: number;
|
|
1222
|
+
links: components["schemas"]["Links"];
|
|
1223
|
+
matched_on: {
|
|
1224
|
+
/** @enum {string} */
|
|
1225
|
+
field: "name" | "alias" | "code" | "number" | "title";
|
|
1226
|
+
locale: string | null;
|
|
1227
|
+
text: string;
|
|
1228
|
+
};
|
|
1229
|
+
name: string;
|
|
1230
|
+
/** @example 0.9 */
|
|
1231
|
+
score: number;
|
|
1232
|
+
stream_url: string;
|
|
1233
|
+
};
|
|
1234
|
+
RadioTrack: {
|
|
1235
|
+
language: string | null;
|
|
1236
|
+
name: string;
|
|
1237
|
+
position: number;
|
|
1238
|
+
url: string;
|
|
1239
|
+
};
|
|
1240
|
+
/** @example hafs */
|
|
1241
|
+
RawiCode: string;
|
|
1242
|
+
RawiRef: {
|
|
1243
|
+
code: components["schemas"]["RawiCode"];
|
|
1244
|
+
name: string;
|
|
1245
|
+
};
|
|
1246
|
+
Recitation: {
|
|
1247
|
+
audio: components["schemas"]["Audio"];
|
|
1248
|
+
/** @description The permanent address of the recitation, `{reciter code}/r{n}`: it never changes, so store this value. */
|
|
1249
|
+
code: string | null;
|
|
1250
|
+
coverage: components["schemas"]["Coverage"];
|
|
1251
|
+
event?: string;
|
|
1252
|
+
has_ayah_timings: boolean;
|
|
1253
|
+
id: number;
|
|
1254
|
+
itunes_url?: string | null;
|
|
1255
|
+
links: components["schemas"]["Links"];
|
|
1256
|
+
notes?: string;
|
|
1257
|
+
occasion?: components["schemas"]["RecitationOccasion"];
|
|
1258
|
+
place_city?: string;
|
|
1259
|
+
place_country?: string;
|
|
1260
|
+
/** @description Qiraah codes of the recitation, in the order of `riwayahs`, without repeats. Names: `GET /v4/qiraahs`. */
|
|
1261
|
+
qiraahs: string[];
|
|
1262
|
+
reciter?: components["schemas"]["ReciterRef"];
|
|
1263
|
+
recorded_hijri_year?: number;
|
|
1264
|
+
recorded_year?: number;
|
|
1265
|
+
/** @description The riwayahs that the recitation covers; an empty list means that none is recorded. */
|
|
1266
|
+
riwayahs: components["schemas"]["RiwayahRef"][];
|
|
1267
|
+
style: components["schemas"]["RecitationStyle"];
|
|
1268
|
+
/** @description The audio files of the recitation, one per surah. Present with `?include=surahs`. */
|
|
1269
|
+
surahs?: components["schemas"]["RecitationSurah"][];
|
|
1270
|
+
tariq: {
|
|
1271
|
+
code: components["schemas"]["TariqCode"];
|
|
1272
|
+
name: string;
|
|
1273
|
+
} | null;
|
|
1274
|
+
title?: string;
|
|
1275
|
+
torrents?: components["schemas"]["RecordingTorrent"][];
|
|
1276
|
+
total_duration_ms: number | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Format: date-time
|
|
1279
|
+
* @description RFC 3339 timestamp, UTC.
|
|
1280
|
+
* @example 2025-09-06T00:39:03Z
|
|
1281
|
+
*/
|
|
1282
|
+
updated_at: string;
|
|
1283
|
+
/** @enum {string|null} */
|
|
1284
|
+
wajh: "qasr" | "tawassut" | "qasr_sukun" | "qasr_silah" | "jam_al_awjuh" | null;
|
|
1285
|
+
};
|
|
1286
|
+
/**
|
|
1287
|
+
* @description How or when a recitation was made. Null where the occasion is not stated.
|
|
1288
|
+
* @enum {string}
|
|
1289
|
+
*/
|
|
1290
|
+
RecitationOccasion: "studio" | "taraweeh" | "live" | "radio";
|
|
1291
|
+
/**
|
|
1292
|
+
* @description How the recitation is performed. A style is not a riwayah.
|
|
1293
|
+
* @enum {string}
|
|
1294
|
+
*/
|
|
1295
|
+
RecitationStyle: "murattal" | "mujawwad" | "muallim" | "featured" | "archival";
|
|
1296
|
+
RecitationSurah: {
|
|
1297
|
+
duration_ms: number | null;
|
|
1298
|
+
/** @description The measurements of each quality tier this surah has, keyed by tier: `original`, `mp3_64` and `opus_48`. */
|
|
1299
|
+
files: {
|
|
1300
|
+
mp3_64?: components["schemas"]["AudioFileInfo"];
|
|
1301
|
+
opus_48?: components["schemas"]["AudioFileInfo"];
|
|
1302
|
+
original?: components["schemas"]["AudioFileInfo"];
|
|
1303
|
+
};
|
|
1304
|
+
/** @example 4 */
|
|
1305
|
+
surah: number;
|
|
1306
|
+
/** @description The levels of detail this surah has, finest last: `ayah`, `word`, `letter`, `phoneme`; empty when none. */
|
|
1307
|
+
timings: ("ayah" | "word" | "letter" | "phoneme")[];
|
|
1308
|
+
};
|
|
1309
|
+
RecitationSurahItem: {
|
|
1310
|
+
duration_ms: number | null;
|
|
1311
|
+
/** @description One entry per quality tier this surah has, keyed by tier: `original`, `mp3_64` and `opus_48`. `url` is ready to play. */
|
|
1312
|
+
files: {
|
|
1313
|
+
mp3_64?: {
|
|
1314
|
+
/** @example 132 */
|
|
1315
|
+
bitrate_kbps: number | null;
|
|
1316
|
+
bytes: number | null;
|
|
1317
|
+
/** @description The lower-case hexadecimal SHA-256 of the file. `null` when unknown. */
|
|
1318
|
+
sha256: string | null;
|
|
1319
|
+
/** @example https://cdn.mp3quran.net/audio/mahmoud-husary/r1/001.mp3 */
|
|
1320
|
+
url: string;
|
|
1321
|
+
};
|
|
1322
|
+
opus_48?: {
|
|
1323
|
+
/** @example 132 */
|
|
1324
|
+
bitrate_kbps: number | null;
|
|
1325
|
+
bytes: number | null;
|
|
1326
|
+
/** @description The lower-case hexadecimal SHA-256 of the file. `null` when unknown. */
|
|
1327
|
+
sha256: string | null;
|
|
1328
|
+
/** @example https://cdn.mp3quran.net/audio/mahmoud-husary/r1/001.mp3 */
|
|
1329
|
+
url: string;
|
|
1330
|
+
};
|
|
1331
|
+
original?: {
|
|
1332
|
+
/** @example 132 */
|
|
1333
|
+
bitrate_kbps: number | null;
|
|
1334
|
+
bytes: number | null;
|
|
1335
|
+
/** @description The lower-case hexadecimal SHA-256 of the file. `null` when unknown. */
|
|
1336
|
+
sha256: string | null;
|
|
1337
|
+
/** @example https://cdn.mp3quran.net/audio/mahmoud-husary/r1/001.mp3 */
|
|
1338
|
+
url: string;
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
/** @example 4 */
|
|
1342
|
+
surah: number;
|
|
1343
|
+
/** @description The levels of detail this surah has, finest last: `ayah`, `word`, `letter`, `phoneme`; empty when none. */
|
|
1344
|
+
timings: ("ayah" | "word" | "letter" | "phoneme")[];
|
|
1345
|
+
};
|
|
1346
|
+
Reciter: {
|
|
1347
|
+
bio?: string;
|
|
1348
|
+
birth_year?: number;
|
|
1349
|
+
city?: string;
|
|
1350
|
+
/** @description The permanent code of the reciter, such as `mahmoud-husary`: it never changes, so store this value. */
|
|
1351
|
+
code: string;
|
|
1352
|
+
country?: string;
|
|
1353
|
+
death_year?: number;
|
|
1354
|
+
id: number;
|
|
1355
|
+
links: components["schemas"]["Links"];
|
|
1356
|
+
name: string;
|
|
1357
|
+
name_latin: string;
|
|
1358
|
+
photo_url?: string;
|
|
1359
|
+
profile_links?: {
|
|
1360
|
+
kind: string;
|
|
1361
|
+
url: string;
|
|
1362
|
+
}[];
|
|
1363
|
+
recitation_count: number;
|
|
1364
|
+
/** @description The recitations of the reciter, without `reciter`, `torrents` and `itunes_url`. Present with `?include=recitations`. */
|
|
1365
|
+
recitations?: components["schemas"]["Recitation"][];
|
|
1366
|
+
/**
|
|
1367
|
+
* Format: date-time
|
|
1368
|
+
* @description RFC 3339 timestamp, UTC.
|
|
1369
|
+
* @example 2025-09-06T00:39:03Z
|
|
1370
|
+
*/
|
|
1371
|
+
updated_at: string;
|
|
1372
|
+
};
|
|
1373
|
+
ReciterHit: {
|
|
1374
|
+
code: string;
|
|
1375
|
+
id: number;
|
|
1376
|
+
links: components["schemas"]["Links"];
|
|
1377
|
+
matched_on: {
|
|
1378
|
+
/** @enum {string} */
|
|
1379
|
+
field: "name" | "alias" | "code" | "number" | "title";
|
|
1380
|
+
locale: string | null;
|
|
1381
|
+
text: string;
|
|
1382
|
+
};
|
|
1383
|
+
name: string;
|
|
1384
|
+
recitation_count: number;
|
|
1385
|
+
/** @example 0.9 */
|
|
1386
|
+
score: number;
|
|
1387
|
+
};
|
|
1388
|
+
ReciterRef: {
|
|
1389
|
+
code: string;
|
|
1390
|
+
id: number;
|
|
1391
|
+
name: string;
|
|
1392
|
+
};
|
|
1393
|
+
RecordingTorrent: {
|
|
1394
|
+
/**
|
|
1395
|
+
* Format: date
|
|
1396
|
+
* @example 2018-07-23
|
|
1397
|
+
*/
|
|
1398
|
+
added_on: string | null;
|
|
1399
|
+
bytes: number | null;
|
|
1400
|
+
info_hash: string | null;
|
|
1401
|
+
name: string;
|
|
1402
|
+
url: string;
|
|
1403
|
+
};
|
|
1404
|
+
Riwayah: {
|
|
1405
|
+
ayah_counts: number[] | null;
|
|
1406
|
+
code: components["schemas"]["RiwayahCode"];
|
|
1407
|
+
counting: string | null;
|
|
1408
|
+
links: components["schemas"]["Links"];
|
|
1409
|
+
name: string;
|
|
1410
|
+
qiraah: components["schemas"]["QiraahRef"];
|
|
1411
|
+
rawi: components["schemas"]["RawiRef"];
|
|
1412
|
+
recitation_count: number;
|
|
1413
|
+
tariqs: components["schemas"]["TariqRef"][];
|
|
1414
|
+
};
|
|
1415
|
+
/** @example hafs_an_asim */
|
|
1416
|
+
RiwayahCode: string;
|
|
1417
|
+
RiwayahHit: {
|
|
1418
|
+
code: components["schemas"]["RiwayahCode"];
|
|
1419
|
+
links: components["schemas"]["Links"];
|
|
1420
|
+
matched_on: {
|
|
1421
|
+
/** @enum {string} */
|
|
1422
|
+
field: "name" | "alias" | "code" | "number" | "title";
|
|
1423
|
+
locale: string | null;
|
|
1424
|
+
text: string;
|
|
1425
|
+
};
|
|
1426
|
+
name: string;
|
|
1427
|
+
qiraah: components["schemas"]["QiraahRef"];
|
|
1428
|
+
recitation_count: number;
|
|
1429
|
+
/** @example 0.9 */
|
|
1430
|
+
score: number;
|
|
1431
|
+
};
|
|
1432
|
+
RiwayahRef: {
|
|
1433
|
+
code: components["schemas"]["RiwayahCode"];
|
|
1434
|
+
name: string;
|
|
1435
|
+
qiraah: components["schemas"]["QiraahCode"];
|
|
1436
|
+
};
|
|
1437
|
+
SearchHits: {
|
|
1438
|
+
radios?: components["schemas"]["RadioHit"][];
|
|
1439
|
+
reciters?: components["schemas"]["ReciterHit"][];
|
|
1440
|
+
riwayahs?: components["schemas"]["RiwayahHit"][];
|
|
1441
|
+
surahs?: components["schemas"]["SurahHit"][];
|
|
1442
|
+
};
|
|
1443
|
+
SearchMeta: {
|
|
1444
|
+
catalogue_version: number;
|
|
1445
|
+
count?: number;
|
|
1446
|
+
locale: string;
|
|
1447
|
+
query: string;
|
|
1448
|
+
total: number;
|
|
1449
|
+
types: ("reciter" | "surah" | "riwayah" | "radio")[];
|
|
1450
|
+
};
|
|
1451
|
+
SpokenTranslation: {
|
|
1452
|
+
/** @description Where the files are: a folder and a file name pattern. */
|
|
1453
|
+
audio: {
|
|
1454
|
+
/**
|
|
1455
|
+
* @description The URL of the folder, ending in `/`. Append the pattern from `files`.
|
|
1456
|
+
* @example https://cdn.mp3quran.net/translation/ha/
|
|
1457
|
+
*/
|
|
1458
|
+
base: string;
|
|
1459
|
+
/** @description The file name pattern of each quality tier. */
|
|
1460
|
+
files: {
|
|
1461
|
+
/**
|
|
1462
|
+
* @description The file name pattern. `{surah:03d}` is the surah number and `{ayah:03d}` the ayah number, each padded to three digits; ayah `000` is the introduction to the surah where a set has one.
|
|
1463
|
+
* @example {surah:03d}{ayah:03d}.mp3
|
|
1464
|
+
*/
|
|
1465
|
+
original: string;
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
/**
|
|
1469
|
+
* @description The permanent code of the spoken translation, used in its URL.
|
|
1470
|
+
* @example ha
|
|
1471
|
+
*/
|
|
1472
|
+
code: string;
|
|
1473
|
+
coverage: components["schemas"]["Coverage"];
|
|
1474
|
+
/**
|
|
1475
|
+
* @description The ISO 639-1 code of the language spoken, such as `en`.
|
|
1476
|
+
* @example ha
|
|
1477
|
+
* @enum {string}
|
|
1478
|
+
*/
|
|
1479
|
+
language: "ar" | "bn" | "bs" | "de" | "el" | "en" | "es" | "fr" | "ha" | "hu" | "ko" | "ku" | "ky" | "om" | "pt" | "ru" | "tr" | "ur";
|
|
1480
|
+
links: components["schemas"]["Links"];
|
|
1481
|
+
/** @description The name, in the requested locale. */
|
|
1482
|
+
name: string;
|
|
1483
|
+
/** @description The reciter whose recitation the audio carries alongside the translation, or null. */
|
|
1484
|
+
reciter: {
|
|
1485
|
+
code: string;
|
|
1486
|
+
id: number;
|
|
1487
|
+
name: string;
|
|
1488
|
+
} | null;
|
|
1489
|
+
/** @description Who speaks the translation, where known; null otherwise. */
|
|
1490
|
+
speaker: string | null;
|
|
1491
|
+
/**
|
|
1492
|
+
* @description What one file holds: a whole `surah`, or one `ayah`.
|
|
1493
|
+
* @example ayah
|
|
1494
|
+
* @enum {string}
|
|
1495
|
+
*/
|
|
1496
|
+
unit: "surah" | "ayah";
|
|
1497
|
+
};
|
|
1498
|
+
Surah: {
|
|
1499
|
+
ayah_count: number;
|
|
1500
|
+
code: components["schemas"]["SurahCode"];
|
|
1501
|
+
hizbs: {
|
|
1502
|
+
end: number;
|
|
1503
|
+
start: number;
|
|
1504
|
+
};
|
|
1505
|
+
juzs: {
|
|
1506
|
+
end: number;
|
|
1507
|
+
start: number;
|
|
1508
|
+
};
|
|
1509
|
+
links: components["schemas"]["Links"];
|
|
1510
|
+
name: string;
|
|
1511
|
+
/** @example 4 */
|
|
1512
|
+
number: number;
|
|
1513
|
+
/** @enum {string|null} */
|
|
1514
|
+
revelation: "makki" | "madani" | null;
|
|
1515
|
+
};
|
|
1516
|
+
/** @example fatihah */
|
|
1517
|
+
SurahCode: string;
|
|
1518
|
+
SurahHit: {
|
|
1519
|
+
ayah_count: number;
|
|
1520
|
+
code: components["schemas"]["SurahCode"];
|
|
1521
|
+
links: components["schemas"]["Links"];
|
|
1522
|
+
matched_on: {
|
|
1523
|
+
/** @enum {string} */
|
|
1524
|
+
field: "name" | "alias" | "code" | "number" | "title";
|
|
1525
|
+
locale: string | null;
|
|
1526
|
+
text: string;
|
|
1527
|
+
};
|
|
1528
|
+
name: string;
|
|
1529
|
+
/** @example 4 */
|
|
1530
|
+
number: number;
|
|
1531
|
+
/** @example 0.9 */
|
|
1532
|
+
score: number;
|
|
1533
|
+
};
|
|
1534
|
+
SurahText: {
|
|
1535
|
+
ayahs: components["schemas"]["AyahText"][];
|
|
1536
|
+
/**
|
|
1537
|
+
* @description The ayah counting the ayah numbers follow, a numbering code such as `kufi` (the Hafs text), `madani_last`, `madani_first` or `makki`; `null` where it is not known.
|
|
1538
|
+
* @example kufi
|
|
1539
|
+
*/
|
|
1540
|
+
counting: string | null;
|
|
1541
|
+
/**
|
|
1542
|
+
* @description The text edition the words come from, the riwayah's own, for example `hafs` or `warsh`.
|
|
1543
|
+
* @example hafs
|
|
1544
|
+
*/
|
|
1545
|
+
edition: string;
|
|
1546
|
+
/** @example 4 */
|
|
1547
|
+
surah: number;
|
|
1548
|
+
};
|
|
1549
|
+
Tafsir: {
|
|
1550
|
+
id: number;
|
|
1551
|
+
item_count: number;
|
|
1552
|
+
/** @enum {string} */
|
|
1553
|
+
kind: "quran" | "podcast";
|
|
1554
|
+
/**
|
|
1555
|
+
* @description The ISO 639-1 code of the language of the audio, such as `ar`.
|
|
1556
|
+
* @example ar
|
|
1557
|
+
* @enum {string|null}
|
|
1558
|
+
*/
|
|
1559
|
+
language: "ar" | "bn" | "bs" | "de" | "el" | "en" | "es" | "fr" | "ha" | "hu" | "ko" | "ku" | "ky" | "om" | "pt" | "ru" | "tr" | "ur" | null;
|
|
1560
|
+
links: components["schemas"]["Links"];
|
|
1561
|
+
mufassir: string | null;
|
|
1562
|
+
/** @description The name, in the requested locale. */
|
|
1563
|
+
name: string;
|
|
1564
|
+
};
|
|
1565
|
+
TafsirItem: {
|
|
1566
|
+
id: number;
|
|
1567
|
+
position: number;
|
|
1568
|
+
/** @example 4 */
|
|
1569
|
+
surah: number | null;
|
|
1570
|
+
title: string;
|
|
1571
|
+
url: string;
|
|
1572
|
+
};
|
|
1573
|
+
/** @example azraq */
|
|
1574
|
+
TariqCode: string;
|
|
1575
|
+
TariqRef: {
|
|
1576
|
+
code: components["schemas"]["TariqCode"];
|
|
1577
|
+
name: string;
|
|
1578
|
+
};
|
|
1579
|
+
/** @example 0.998 */
|
|
1580
|
+
TimingConf: number | null;
|
|
1581
|
+
TimingGap: {
|
|
1582
|
+
at_ms: number;
|
|
1583
|
+
ayahs: components["schemas"]["AyahRange"];
|
|
1584
|
+
};
|
|
1585
|
+
TimingPrologue: {
|
|
1586
|
+
basmalah: boolean;
|
|
1587
|
+
istiadhah: boolean;
|
|
1588
|
+
};
|
|
1589
|
+
TimingProvenance: {
|
|
1590
|
+
granularities: ("ayah" | "word" | "letter" | "phoneme")[];
|
|
1591
|
+
release?: string;
|
|
1592
|
+
text_source: components["schemas"]["TimingTextSource"];
|
|
1593
|
+
};
|
|
1594
|
+
/** @enum {string} */
|
|
1595
|
+
TimingRangeKind: "complete" | "partial" | "excerpt";
|
|
1596
|
+
TimingRelease: {
|
|
1597
|
+
/**
|
|
1598
|
+
* Format: date-time
|
|
1599
|
+
* @description RFC 3339 timestamp, UTC.
|
|
1600
|
+
* @example 2025-09-06T00:39:03Z
|
|
1601
|
+
*/
|
|
1602
|
+
created_at: string;
|
|
1603
|
+
/**
|
|
1604
|
+
* @example [
|
|
1605
|
+
* "ayah",
|
|
1606
|
+
* "word",
|
|
1607
|
+
* "letter",
|
|
1608
|
+
* "phoneme"
|
|
1609
|
+
* ]
|
|
1610
|
+
*/
|
|
1611
|
+
granularities: ("ayah" | "word" | "letter" | "phoneme")[];
|
|
1612
|
+
/** @example https://cdn.mp3quran.net/timings/2026.09.3/manifest.json */
|
|
1613
|
+
manifest_url: string | null;
|
|
1614
|
+
/** @example https://cdn.mp3quran.net/timings/2026.09.3/recitations/{recitation_id}.letters.json */
|
|
1615
|
+
recitation_letters_url_template?: string | null;
|
|
1616
|
+
/** @example https://cdn.mp3quran.net/timings/2026.09.3/recitations/{recitation_id}.phonemes.json */
|
|
1617
|
+
recitation_phonemes_url_template?: string | null;
|
|
1618
|
+
/** @example https://cdn.mp3quran.net/timings/2026.09.3/recitations/{recitation_id}.json */
|
|
1619
|
+
recitation_url_template: string | null;
|
|
1620
|
+
/** @example 2026.09.1 */
|
|
1621
|
+
release: string;
|
|
1622
|
+
text_source: {
|
|
1623
|
+
edition: string | null;
|
|
1624
|
+
url: string | null;
|
|
1625
|
+
} | null;
|
|
1626
|
+
};
|
|
1627
|
+
TimingSegment: {
|
|
1628
|
+
end_ms: number;
|
|
1629
|
+
kind: components["schemas"]["TimingSegmentKind"];
|
|
1630
|
+
start_ms: number;
|
|
1631
|
+
};
|
|
1632
|
+
/** @enum {string} */
|
|
1633
|
+
TimingSegmentKind: "istiadhah" | "basmalah" | "prologue" | "epilogue" | "silence" | "gap";
|
|
1634
|
+
TimingsSummary: {
|
|
1635
|
+
coverage: number | null;
|
|
1636
|
+
prologue: components["schemas"]["TimingPrologue"];
|
|
1637
|
+
range: {
|
|
1638
|
+
audio_continues_past_timings: boolean | null;
|
|
1639
|
+
ayahs: components["schemas"]["AyahRange"];
|
|
1640
|
+
gaps: components["schemas"]["TimingGap"][];
|
|
1641
|
+
kind: components["schemas"]["TimingRangeKind"];
|
|
1642
|
+
} | null;
|
|
1643
|
+
};
|
|
1644
|
+
TimingTextSource: {
|
|
1645
|
+
edition: string | null;
|
|
1646
|
+
url: string | null;
|
|
1647
|
+
};
|
|
1648
|
+
/**
|
|
1649
|
+
* @example [
|
|
1650
|
+
* 9145,
|
|
1651
|
+
* 10985,
|
|
1652
|
+
* 1,
|
|
1653
|
+
* 0.998
|
|
1654
|
+
* ]
|
|
1655
|
+
*/
|
|
1656
|
+
TimingUnitInterval: [
|
|
1657
|
+
number,
|
|
1658
|
+
number,
|
|
1659
|
+
number,
|
|
1660
|
+
components["schemas"]["TimingConf"]
|
|
1661
|
+
];
|
|
1662
|
+
TvChannel: {
|
|
1663
|
+
id: number;
|
|
1664
|
+
links: components["schemas"]["Links"];
|
|
1665
|
+
/** @description The name, in the requested locale. */
|
|
1666
|
+
name: string;
|
|
1667
|
+
stream_url: string;
|
|
1668
|
+
};
|
|
1669
|
+
/**
|
|
1670
|
+
* @example [
|
|
1671
|
+
* 33033,
|
|
1672
|
+
* 34425,
|
|
1673
|
+
* 2
|
|
1674
|
+
* ]
|
|
1675
|
+
*/
|
|
1676
|
+
WordPositionInterval: [
|
|
1677
|
+
number,
|
|
1678
|
+
number,
|
|
1679
|
+
number
|
|
1680
|
+
];
|
|
1681
|
+
WordTimings: {
|
|
1682
|
+
alignment?: components["schemas"]["TimingProvenance"];
|
|
1683
|
+
/** @description The audio file the entries were measured on: its duration, byte size and SHA-256, each `null` when unknown. Present with `?include=audio`. */
|
|
1684
|
+
audio?: {
|
|
1685
|
+
bytes: number | null;
|
|
1686
|
+
duration_ms: number | null;
|
|
1687
|
+
sha256: string | null;
|
|
1688
|
+
};
|
|
1689
|
+
estimated: number[];
|
|
1690
|
+
/** @description The `"ayah:word_position"` keys of words whose span runs far past the reciter's own pace, usually audio the text has no place for: do not keep the highlight up for all of it. Present with `?include=held_too_long`. */
|
|
1691
|
+
held_too_long?: string[];
|
|
1692
|
+
/** @description Each piece of a word heard in two pieces, as a playback entry; present with `?include=pieces`. */
|
|
1693
|
+
pieces?: components["schemas"]["PlaybackEntry"][];
|
|
1694
|
+
/** @description The words of the istiadhah and the basmalah when recited before the surah; present with `?include=prologue`. */
|
|
1695
|
+
prologue_word_timings?: {
|
|
1696
|
+
basmalah: components["schemas"]["PrologueWordTimingColumns"];
|
|
1697
|
+
istiadhah: components["schemas"]["PrologueWordTimingColumns"];
|
|
1698
|
+
};
|
|
1699
|
+
/** @description The spans of the audio that are not Qur'an text being timed (istiadhah, basmalah, prologue, epilogue, silence, gap), in clock order, within the requested window. Present with `?include=segments`. */
|
|
1700
|
+
segments?: components["schemas"]["TimingSegment"][];
|
|
1701
|
+
/** @example 4 */
|
|
1702
|
+
surah: number;
|
|
1703
|
+
/** @description The written words of the ayahs the response returns, as the recitation's riwayah writes them, at the same ayah numbers and word positions as the entries: `ayahs` lists `[ayah, words]` in ayah order, each word `[word_position, rasm_uthmani, rasm_imlai]`. `null` when the text of the recitation's riwayah is not available. Present with `?include=text`. */
|
|
1704
|
+
text?: {
|
|
1705
|
+
ayahs: components["schemas"]["AyahText"][];
|
|
1706
|
+
/**
|
|
1707
|
+
* @description The text edition the words come from, the riwayah's own, for example `hafs` or `warsh`.
|
|
1708
|
+
* @example hafs
|
|
1709
|
+
*/
|
|
1710
|
+
edition: string;
|
|
1711
|
+
} | null;
|
|
1712
|
+
timings?: components["schemas"]["TimingsSummary"];
|
|
1713
|
+
words: components["schemas"]["PlaybackEntry"][];
|
|
1714
|
+
};
|
|
1715
|
+
WordTimingsPositions: {
|
|
1716
|
+
alignment?: components["schemas"]["TimingProvenance"];
|
|
1717
|
+
/** @description The audio file the entries were measured on: its duration, byte size and SHA-256, each `null` when unknown. Present with `?include=audio`. */
|
|
1718
|
+
audio?: {
|
|
1719
|
+
bytes: number | null;
|
|
1720
|
+
duration_ms: number | null;
|
|
1721
|
+
sha256: string | null;
|
|
1722
|
+
};
|
|
1723
|
+
ayahs: {
|
|
1724
|
+
[key: string]: {
|
|
1725
|
+
[key: string]: components["schemas"]["WordPositionInterval"][];
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
estimated: string[];
|
|
1729
|
+
/** @description The `"ayah:word_position"` keys of words whose span runs far past the reciter's own pace, usually audio the text has no place for: do not keep the highlight up for all of it. Present with `?include=held_too_long`. */
|
|
1730
|
+
held_too_long?: string[];
|
|
1731
|
+
/** @description Each piece of a word heard in two pieces, as a playback entry; present with `?include=pieces`. */
|
|
1732
|
+
pieces?: components["schemas"]["PlaybackEntry"][];
|
|
1733
|
+
/** @description The words of the istiadhah and the basmalah when recited before the surah; present with `?include=prologue`. */
|
|
1734
|
+
prologue_word_timings?: {
|
|
1735
|
+
basmalah: components["schemas"]["PrologueWordTimingColumns"];
|
|
1736
|
+
istiadhah: components["schemas"]["PrologueWordTimingColumns"];
|
|
1737
|
+
};
|
|
1738
|
+
/** @description The spans of the audio that are not Qur'an text being timed (istiadhah, basmalah, prologue, epilogue, silence, gap), in clock order, within the requested window. Present with `?include=segments`. */
|
|
1739
|
+
segments?: components["schemas"]["TimingSegment"][];
|
|
1740
|
+
/** @example 4 */
|
|
1741
|
+
surah: number;
|
|
1742
|
+
/** @description The written words of the ayahs the response returns, as the recitation's riwayah writes them, at the same ayah numbers and word positions as the entries: `ayahs` lists `[ayah, words]` in ayah order, each word `[word_position, rasm_uthmani, rasm_imlai]`. `null` when the text of the recitation's riwayah is not available. Present with `?include=text`. */
|
|
1743
|
+
text?: {
|
|
1744
|
+
ayahs: components["schemas"]["AyahText"][];
|
|
1745
|
+
/**
|
|
1746
|
+
* @description The text edition the words come from, the riwayah's own, for example `hafs` or `warsh`.
|
|
1747
|
+
* @example hafs
|
|
1748
|
+
*/
|
|
1749
|
+
edition: string;
|
|
1750
|
+
} | null;
|
|
1751
|
+
timings?: components["schemas"]["TimingsSummary"];
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
responses: never;
|
|
1755
|
+
parameters: {
|
|
1756
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
1757
|
+
All: "true" | "false";
|
|
1758
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that contain it, counting the start but not the end, so a boundary between two entries matches only the later one. With `from_ms` or `to_ms`, an entry must meet every bound given. */
|
|
1759
|
+
AtMs: string;
|
|
1760
|
+
/** @description An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. */
|
|
1761
|
+
Ayah: string;
|
|
1762
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
1763
|
+
AyahTimingsInclude: "text"[];
|
|
1764
|
+
/** @description The code of a radio category, as in `category.code` of the station, for example `duas_and_adhkar`; keeps only the stations in it. An unknown code keeps none. */
|
|
1765
|
+
Category: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* @description The ayah to cut, for example `1`, or a range such as `1-2`; `0` is the basmalah. Ayah numbers are those of the ayah timings of the recitation, which for a recitation aligned in the mushaf of its riwayah are the numbers of that mushaf. Required.
|
|
1768
|
+
* @example 1-2
|
|
1769
|
+
*/
|
|
1770
|
+
ClipAyah: string;
|
|
1771
|
+
/**
|
|
1772
|
+
* @description The code of a collection, for example `for-memorisation`; a numeric ID redirects to it.
|
|
1773
|
+
* @example for-memorisation
|
|
1774
|
+
*/
|
|
1775
|
+
CollectionCode: string;
|
|
1776
|
+
/** @description Whose ayah numbers and word positions a surah's text follows: `own` (the default), those of the riwayah's own mushaf, or `hafs`, those of the Hafs text. */
|
|
1777
|
+
Coordinates: "own" | "hafs";
|
|
1778
|
+
/** @description A two-letter ISO 3166-1 country code, for example `SA`; keeps only the reciters from that country. */
|
|
1779
|
+
Country: string;
|
|
1780
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
1781
|
+
Cursor: string;
|
|
1782
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1783
|
+
DivisionSort: "number" | "-number";
|
|
1784
|
+
/** @description If false, turns off the estimated intervals for words with no detected audio. */
|
|
1785
|
+
Estimate: "true" | "false";
|
|
1786
|
+
/** @description With `true`, cuts the clip on the exact ayah boundaries by re-encoding it, which takes longer; by default it is cut without re-encoding, on the nearest frame. */
|
|
1787
|
+
Exact: "0" | "1" | "true" | "false";
|
|
1788
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that end after it. With `to_ms` it selects the window from `from_ms` up to, but not including, `to_ms`; an entry of zero length counts as its start. */
|
|
1789
|
+
FromMs: string;
|
|
1790
|
+
/** @description The feature an item must have; `ayah_timings` keeps only those with ayah timings. */
|
|
1791
|
+
Has: "ayah_timings";
|
|
1792
|
+
/** @description An ISO 639-1 language code, for example `en`; keeps only the items whose audio is in that language. */
|
|
1793
|
+
Language: "ar" | "bn" | "bs" | "de" | "el" | "en" | "es" | "fr" | "ha" | "hu" | "ko" | "ku" | "ky" | "om" | "pt" | "ru" | "tr" | "ur";
|
|
1794
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1795
|
+
LanguageSort: "code" | "-code" | "name" | "-name";
|
|
1796
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
1797
|
+
LetterPhonemeInclude: ("alignment" | "audio" | "summary" | "segments")[];
|
|
1798
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
1799
|
+
Limit: string;
|
|
1800
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
1801
|
+
Locale: "ar" | "en" | "fr" | "ru" | "de" | "es" | "tr" | "zh" | "th" | "ur" | "bn" | "bs" | "ug" | "fa" | "tg" | "ml" | "tl" | "id" | "pt" | "ha" | "sw";
|
|
1802
|
+
/** @description How the recording was made: `studio`, `taraweeh`, `live` or `radio`. `unknown` keeps the recitations whose occasion is not stated. */
|
|
1803
|
+
Occasion: "studio" | "taraweeh" | "live" | "radio" | "unknown";
|
|
1804
|
+
/** @description A name, alias or code to search for; ignores diacritics and tolerates spelling differences, so `husary` finds "Al-Hussary"; the best matches come first. */
|
|
1805
|
+
Q: string;
|
|
1806
|
+
/** @description The code of a qiraah; keeps the items whose `qiraahs` include it. Other spellings of a code are accepted too. */
|
|
1807
|
+
Qiraah: "nafi" | "ibn_kathir" | "abu_amr" | "ibn_amir" | "asim" | "hamzah" | "kisai" | "abu_jafar" | "yaqub" | "khalaf_al_ashir";
|
|
1808
|
+
/**
|
|
1809
|
+
* @description The code of a qiraah, for example `asim`.
|
|
1810
|
+
* @example asim
|
|
1811
|
+
*/
|
|
1812
|
+
QiraahCode: string;
|
|
1813
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1814
|
+
QiraahSort: "code" | "-code" | "recitation_count" | "-recitation_count";
|
|
1815
|
+
/**
|
|
1816
|
+
* @description The numeric ID of a radio station, for example `1`.
|
|
1817
|
+
* @example 1
|
|
1818
|
+
*/
|
|
1819
|
+
RadioId: string;
|
|
1820
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
1821
|
+
RadioInclude: "tracks"[];
|
|
1822
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1823
|
+
RadioSort: "name" | "-name" | "category" | "-category";
|
|
1824
|
+
/**
|
|
1825
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
1826
|
+
* @example mahmoud-husary/r1
|
|
1827
|
+
*/
|
|
1828
|
+
RecitationId: string;
|
|
1829
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
1830
|
+
RecitationInclude: "surahs"[];
|
|
1831
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1832
|
+
RecitationSort: "id" | "-id" | "surahs" | "-surahs" | "updated" | "-updated" | "recorded_year" | "-recorded_year";
|
|
1833
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1834
|
+
RecitationSurahSort: "surah" | "-surah" | "duration_ms" | "-duration_ms";
|
|
1835
|
+
/** @description The code, numeric ID or slug of a reciter, in any case, for example `mahmoud-husary`; keeps only that reciter's items. */
|
|
1836
|
+
Reciter: string;
|
|
1837
|
+
/**
|
|
1838
|
+
* @description The reciter's code, for example `mahmoud-husary`. The numeric ID and any other spelling redirect with 301 to the code.
|
|
1839
|
+
* @example mahmoud-husary
|
|
1840
|
+
*/
|
|
1841
|
+
ReciterId: string;
|
|
1842
|
+
/**
|
|
1843
|
+
* @description The reciter's code, for example `mahmoud-husary`. The numeric ID and any other spelling redirect with 301 to the code.
|
|
1844
|
+
* @example mahmoud-husary
|
|
1845
|
+
*/
|
|
1846
|
+
ReciterIdOrSlug: string;
|
|
1847
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
1848
|
+
ReciterInclude: ("recitations" | "recitations.surahs")[];
|
|
1849
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1850
|
+
ReciterSort: "name" | "-name" | "recitation_count" | "-recitation_count" | "updated_at" | "-updated_at" | "id" | "-id";
|
|
1851
|
+
/**
|
|
1852
|
+
* @description The name of a timing release, in `YYYY.MM.N` form, for example `2026.09.1`.
|
|
1853
|
+
* @example 2026.09.1
|
|
1854
|
+
*/
|
|
1855
|
+
ReleaseName: string;
|
|
1856
|
+
/** @description The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. Other spellings of a code, and its numeric ID, are accepted too. */
|
|
1857
|
+
Riwayah: "qalun_an_nafi" | "warsh_an_nafi" | "bazzi_an_ibn_kathir" | "qunbul_an_ibn_kathir" | "duri_an_abu_amr" | "susi_an_abu_amr" | "hisham_an_ibn_amir" | "ibn_dhakwan_an_ibn_amir" | "shubah_an_asim" | "hafs_an_asim" | "khalaf_an_hamzah" | "khallad_an_hamzah" | "abu_al_harith_an_kisai" | "duri_an_kisai" | "ibn_wardan_an_abu_jafar" | "ibn_jammaz_an_abu_jafar" | "ruways_an_yaqub" | "rawh_an_yaqub" | "ishaq_an_khalaf_al_ashir" | "idris_an_khalaf_al_ashir";
|
|
1858
|
+
/**
|
|
1859
|
+
* @description The code of a riwayah, for example `hafs_an_asim`.
|
|
1860
|
+
* @example hafs_an_asim
|
|
1861
|
+
*/
|
|
1862
|
+
RiwayahCode: string;
|
|
1863
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1864
|
+
RiwayahSort: "qiraah" | "-qiraah" | "code" | "-code" | "recitation_count" | "-recitation_count";
|
|
1865
|
+
/** @description A comma-separated list of the kinds to search; defaults to all four. */
|
|
1866
|
+
SearchKinds: ("reciter" | "surah" | "riwayah" | "radio")[];
|
|
1867
|
+
/** @description The maximum number of hits per kind, from 1 to 50; defaults to 10. */
|
|
1868
|
+
SearchLimit: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* @description The text to search for, 1 to 120 characters; it ignores diacritics and hamza differences and tolerates misspellings.
|
|
1871
|
+
* @example hussary
|
|
1872
|
+
*/
|
|
1873
|
+
SearchQ: string;
|
|
1874
|
+
/**
|
|
1875
|
+
* @description The code of a spoken translation, for example `ha`.
|
|
1876
|
+
* @example ha
|
|
1877
|
+
*/
|
|
1878
|
+
SpokenTranslationCode: string;
|
|
1879
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1880
|
+
SpokenTranslationSort: "language" | "-language" | "code" | "-code";
|
|
1881
|
+
/** @description The recitation style to keep: `murattal`, `mujawwad`, `muallim`, `featured` or `archival`. */
|
|
1882
|
+
Style: "murattal" | "mujawwad" | "muallim" | "featured" | "archival";
|
|
1883
|
+
/** @description A surah number from 1 to 114; keeps only the items of that surah. */
|
|
1884
|
+
Surah: string;
|
|
1885
|
+
/**
|
|
1886
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
1887
|
+
* @example 4
|
|
1888
|
+
*/
|
|
1889
|
+
SurahNumber: string;
|
|
1890
|
+
/**
|
|
1891
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
1892
|
+
* @example 4
|
|
1893
|
+
*/
|
|
1894
|
+
SurahPathNumber: string;
|
|
1895
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1896
|
+
SurahSort: "number" | "-number" | "name" | "-name" | "ayah_count" | "-ayah_count" | "revelation" | "-revelation";
|
|
1897
|
+
/**
|
|
1898
|
+
* @description The numeric ID of a tafsir, for example `1`.
|
|
1899
|
+
* @example 1
|
|
1900
|
+
*/
|
|
1901
|
+
TafsirId: string;
|
|
1902
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1903
|
+
TafsirItemSort: "position" | "-position" | "surah" | "-surah" | "id" | "-id";
|
|
1904
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1905
|
+
TafsirSort: "name" | "-name" | "item_count" | "-item_count";
|
|
1906
|
+
/** @description The code of a tariq; keeps the items recorded through it. Other spellings of a code are accepted too. */
|
|
1907
|
+
Tariq: "shatibiyyah" | "tayyibat_al_nashr" | "durrah" | "taysir" | "azraq" | "abu_nashit" | "asbahani";
|
|
1908
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1909
|
+
TimingReleaseSort: "created_at" | "-created_at" | "release" | "-release";
|
|
1910
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that start before it, so an entry starting exactly at `to_ms` is left out. */
|
|
1911
|
+
ToMs: string;
|
|
1912
|
+
/**
|
|
1913
|
+
* @description The numeric ID of a TV channel, for example `1`.
|
|
1914
|
+
* @example 1
|
|
1915
|
+
*/
|
|
1916
|
+
TvChannelId: string;
|
|
1917
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
1918
|
+
TvSort: "id" | "-id" | "name" | "-name";
|
|
1919
|
+
/** @description An RFC 3339 UTC timestamp, for example `2026-01-01T00:00:00Z`; keeps the items changed at or after it. */
|
|
1920
|
+
UpdatedSince: string;
|
|
1921
|
+
/** @description The layout of a word, letter or phoneme timings response: `playback` (the default), the entries in the order heard, or `positions`, the same intervals grouped by ayah and position. */
|
|
1922
|
+
View: "playback" | "positions";
|
|
1923
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
1924
|
+
WordTimingsInclude: ("alignment" | "audio" | "summary" | "segments" | "held_too_long" | "prologue" | "pieces" | "text")[];
|
|
1925
|
+
};
|
|
1926
|
+
requestBodies: never;
|
|
1927
|
+
headers: never;
|
|
1928
|
+
pathItems: never;
|
|
1929
|
+
}
|
|
1930
|
+
export type $defs = Record<string, never>;
|
|
1931
|
+
export interface operations {
|
|
1932
|
+
getIndex: {
|
|
1933
|
+
parameters: {
|
|
1934
|
+
query?: {
|
|
1935
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
1936
|
+
locale?: components["parameters"]["Locale"];
|
|
1937
|
+
};
|
|
1938
|
+
header?: never;
|
|
1939
|
+
path?: never;
|
|
1940
|
+
cookie?: never;
|
|
1941
|
+
};
|
|
1942
|
+
requestBody?: never;
|
|
1943
|
+
responses: {
|
|
1944
|
+
/** @description OK */
|
|
1945
|
+
200: {
|
|
1946
|
+
headers: {
|
|
1947
|
+
[name: string]: unknown;
|
|
1948
|
+
};
|
|
1949
|
+
content: {
|
|
1950
|
+
"application/json": {
|
|
1951
|
+
data: {
|
|
1952
|
+
links: {
|
|
1953
|
+
health: string;
|
|
1954
|
+
openapi: string;
|
|
1955
|
+
qiraahs: string;
|
|
1956
|
+
recitations: string;
|
|
1957
|
+
reciters: string;
|
|
1958
|
+
riwayahs: string;
|
|
1959
|
+
search: string;
|
|
1960
|
+
self: string;
|
|
1961
|
+
surahs: string;
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1964
|
+
meta: components["schemas"]["Meta"];
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1968
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
1969
|
+
400: {
|
|
1970
|
+
headers: {
|
|
1971
|
+
[name: string]: unknown;
|
|
1972
|
+
};
|
|
1973
|
+
content: {
|
|
1974
|
+
"application/json": components["schemas"]["Error"];
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
1978
|
+
429: {
|
|
1979
|
+
headers: {
|
|
1980
|
+
[name: string]: unknown;
|
|
1981
|
+
};
|
|
1982
|
+
content: {
|
|
1983
|
+
"application/json": components["schemas"]["Error"];
|
|
1984
|
+
};
|
|
1985
|
+
};
|
|
1986
|
+
};
|
|
1987
|
+
};
|
|
1988
|
+
listCollections: {
|
|
1989
|
+
parameters: {
|
|
1990
|
+
query?: {
|
|
1991
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
1992
|
+
all?: components["parameters"]["All"];
|
|
1993
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
1994
|
+
cursor?: components["parameters"]["Cursor"];
|
|
1995
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
1996
|
+
limit?: components["parameters"]["Limit"];
|
|
1997
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
1998
|
+
locale?: components["parameters"]["Locale"];
|
|
1999
|
+
};
|
|
2000
|
+
header?: never;
|
|
2001
|
+
path?: never;
|
|
2002
|
+
cookie?: never;
|
|
2003
|
+
};
|
|
2004
|
+
requestBody?: never;
|
|
2005
|
+
responses: {
|
|
2006
|
+
/** @description OK */
|
|
2007
|
+
200: {
|
|
2008
|
+
headers: {
|
|
2009
|
+
[name: string]: unknown;
|
|
2010
|
+
};
|
|
2011
|
+
content: {
|
|
2012
|
+
"application/json": {
|
|
2013
|
+
data: components["schemas"]["Collection"][];
|
|
2014
|
+
links: components["schemas"]["PageLinks"];
|
|
2015
|
+
meta: components["schemas"]["Meta"];
|
|
2016
|
+
};
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
2019
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2020
|
+
400: {
|
|
2021
|
+
headers: {
|
|
2022
|
+
[name: string]: unknown;
|
|
2023
|
+
};
|
|
2024
|
+
content: {
|
|
2025
|
+
"application/json": components["schemas"]["Error"];
|
|
2026
|
+
};
|
|
2027
|
+
};
|
|
2028
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2029
|
+
429: {
|
|
2030
|
+
headers: {
|
|
2031
|
+
[name: string]: unknown;
|
|
2032
|
+
};
|
|
2033
|
+
content: {
|
|
2034
|
+
"application/json": components["schemas"]["Error"];
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
getCollection: {
|
|
2040
|
+
parameters: {
|
|
2041
|
+
query?: {
|
|
2042
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2043
|
+
locale?: components["parameters"]["Locale"];
|
|
2044
|
+
};
|
|
2045
|
+
header?: never;
|
|
2046
|
+
path: {
|
|
2047
|
+
/**
|
|
2048
|
+
* @description The code of a collection, for example `for-memorisation`; a numeric ID redirects to it.
|
|
2049
|
+
* @example for-memorisation
|
|
2050
|
+
*/
|
|
2051
|
+
code: components["parameters"]["CollectionCode"];
|
|
2052
|
+
};
|
|
2053
|
+
cookie?: never;
|
|
2054
|
+
};
|
|
2055
|
+
requestBody?: never;
|
|
2056
|
+
responses: {
|
|
2057
|
+
/** @description OK */
|
|
2058
|
+
200: {
|
|
2059
|
+
headers: {
|
|
2060
|
+
[name: string]: unknown;
|
|
2061
|
+
};
|
|
2062
|
+
content: {
|
|
2063
|
+
"application/json": {
|
|
2064
|
+
data: components["schemas"]["Collection"];
|
|
2065
|
+
meta: components["schemas"]["Meta"];
|
|
2066
|
+
};
|
|
2067
|
+
};
|
|
2068
|
+
};
|
|
2069
|
+
/** @description The request named the collection by its numeric ID. `Location` is the canonical URL, with the same query string. */
|
|
2070
|
+
301: {
|
|
2071
|
+
headers: {
|
|
2072
|
+
[name: string]: unknown;
|
|
2073
|
+
};
|
|
2074
|
+
content?: never;
|
|
2075
|
+
};
|
|
2076
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2077
|
+
400: {
|
|
2078
|
+
headers: {
|
|
2079
|
+
[name: string]: unknown;
|
|
2080
|
+
};
|
|
2081
|
+
content: {
|
|
2082
|
+
"application/json": components["schemas"]["Error"];
|
|
2083
|
+
};
|
|
2084
|
+
};
|
|
2085
|
+
/** @description No collection with that code */
|
|
2086
|
+
404: {
|
|
2087
|
+
headers: {
|
|
2088
|
+
[name: string]: unknown;
|
|
2089
|
+
};
|
|
2090
|
+
content: {
|
|
2091
|
+
"application/json": components["schemas"]["Error"];
|
|
2092
|
+
};
|
|
2093
|
+
};
|
|
2094
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2095
|
+
429: {
|
|
2096
|
+
headers: {
|
|
2097
|
+
[name: string]: unknown;
|
|
2098
|
+
};
|
|
2099
|
+
content: {
|
|
2100
|
+
"application/json": components["schemas"]["Error"];
|
|
2101
|
+
};
|
|
2102
|
+
};
|
|
2103
|
+
};
|
|
2104
|
+
};
|
|
2105
|
+
listCollectionItems: {
|
|
2106
|
+
parameters: {
|
|
2107
|
+
query?: {
|
|
2108
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
2109
|
+
all?: components["parameters"]["All"];
|
|
2110
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
2111
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2112
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
2113
|
+
limit?: components["parameters"]["Limit"];
|
|
2114
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2115
|
+
locale?: components["parameters"]["Locale"];
|
|
2116
|
+
};
|
|
2117
|
+
header?: never;
|
|
2118
|
+
path: {
|
|
2119
|
+
/**
|
|
2120
|
+
* @description The code of a collection, for example `for-memorisation`; a numeric ID redirects to it.
|
|
2121
|
+
* @example for-memorisation
|
|
2122
|
+
*/
|
|
2123
|
+
code: components["parameters"]["CollectionCode"];
|
|
2124
|
+
};
|
|
2125
|
+
cookie?: never;
|
|
2126
|
+
};
|
|
2127
|
+
requestBody?: never;
|
|
2128
|
+
responses: {
|
|
2129
|
+
/** @description OK */
|
|
2130
|
+
200: {
|
|
2131
|
+
headers: {
|
|
2132
|
+
[name: string]: unknown;
|
|
2133
|
+
};
|
|
2134
|
+
content: {
|
|
2135
|
+
"application/json": {
|
|
2136
|
+
data: components["schemas"]["CollectionItem"][];
|
|
2137
|
+
links: components["schemas"]["PageLinks"];
|
|
2138
|
+
meta: components["schemas"]["Meta"];
|
|
2139
|
+
};
|
|
2140
|
+
};
|
|
2141
|
+
};
|
|
2142
|
+
/** @description The request named the collection by its numeric ID. `Location` is the canonical URL, with the same query string. */
|
|
2143
|
+
301: {
|
|
2144
|
+
headers: {
|
|
2145
|
+
[name: string]: unknown;
|
|
2146
|
+
};
|
|
2147
|
+
content?: never;
|
|
2148
|
+
};
|
|
2149
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2150
|
+
400: {
|
|
2151
|
+
headers: {
|
|
2152
|
+
[name: string]: unknown;
|
|
2153
|
+
};
|
|
2154
|
+
content: {
|
|
2155
|
+
"application/json": components["schemas"]["Error"];
|
|
2156
|
+
};
|
|
2157
|
+
};
|
|
2158
|
+
/** @description No collection with that code */
|
|
2159
|
+
404: {
|
|
2160
|
+
headers: {
|
|
2161
|
+
[name: string]: unknown;
|
|
2162
|
+
};
|
|
2163
|
+
content: {
|
|
2164
|
+
"application/json": components["schemas"]["Error"];
|
|
2165
|
+
};
|
|
2166
|
+
};
|
|
2167
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2168
|
+
429: {
|
|
2169
|
+
headers: {
|
|
2170
|
+
[name: string]: unknown;
|
|
2171
|
+
};
|
|
2172
|
+
content: {
|
|
2173
|
+
"application/json": components["schemas"]["Error"];
|
|
2174
|
+
};
|
|
2175
|
+
};
|
|
2176
|
+
};
|
|
2177
|
+
};
|
|
2178
|
+
getHealth: {
|
|
2179
|
+
parameters: {
|
|
2180
|
+
query?: {
|
|
2181
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2182
|
+
locale?: components["parameters"]["Locale"];
|
|
2183
|
+
};
|
|
2184
|
+
header?: never;
|
|
2185
|
+
path?: never;
|
|
2186
|
+
cookie?: never;
|
|
2187
|
+
};
|
|
2188
|
+
requestBody?: never;
|
|
2189
|
+
responses: {
|
|
2190
|
+
/** @description OK */
|
|
2191
|
+
200: {
|
|
2192
|
+
headers: {
|
|
2193
|
+
[name: string]: unknown;
|
|
2194
|
+
};
|
|
2195
|
+
content: {
|
|
2196
|
+
"application/json": {
|
|
2197
|
+
data: {
|
|
2198
|
+
/** @enum {string} */
|
|
2199
|
+
status: "ok";
|
|
2200
|
+
};
|
|
2201
|
+
};
|
|
2202
|
+
};
|
|
2203
|
+
};
|
|
2204
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
2205
|
+
400: {
|
|
2206
|
+
headers: {
|
|
2207
|
+
[name: string]: unknown;
|
|
2208
|
+
};
|
|
2209
|
+
content: {
|
|
2210
|
+
"application/json": components["schemas"]["Error"];
|
|
2211
|
+
};
|
|
2212
|
+
};
|
|
2213
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2214
|
+
429: {
|
|
2215
|
+
headers: {
|
|
2216
|
+
[name: string]: unknown;
|
|
2217
|
+
};
|
|
2218
|
+
content: {
|
|
2219
|
+
"application/json": components["schemas"]["Error"];
|
|
2220
|
+
};
|
|
2221
|
+
};
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
listHizbs: {
|
|
2225
|
+
parameters: {
|
|
2226
|
+
query?: {
|
|
2227
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
2228
|
+
all?: components["parameters"]["All"];
|
|
2229
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
2230
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2231
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
2232
|
+
limit?: components["parameters"]["Limit"];
|
|
2233
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
2234
|
+
sort?: components["parameters"]["DivisionSort"];
|
|
2235
|
+
};
|
|
2236
|
+
header?: never;
|
|
2237
|
+
path?: never;
|
|
2238
|
+
cookie?: never;
|
|
2239
|
+
};
|
|
2240
|
+
requestBody?: never;
|
|
2241
|
+
responses: {
|
|
2242
|
+
/** @description OK */
|
|
2243
|
+
200: {
|
|
2244
|
+
headers: {
|
|
2245
|
+
[name: string]: unknown;
|
|
2246
|
+
};
|
|
2247
|
+
content: {
|
|
2248
|
+
"application/json": {
|
|
2249
|
+
data: components["schemas"]["Division"][];
|
|
2250
|
+
links: components["schemas"]["PageLinks"];
|
|
2251
|
+
meta: components["schemas"]["Meta"];
|
|
2252
|
+
};
|
|
2253
|
+
};
|
|
2254
|
+
};
|
|
2255
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2256
|
+
400: {
|
|
2257
|
+
headers: {
|
|
2258
|
+
[name: string]: unknown;
|
|
2259
|
+
};
|
|
2260
|
+
content: {
|
|
2261
|
+
"application/json": components["schemas"]["Error"];
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2265
|
+
429: {
|
|
2266
|
+
headers: {
|
|
2267
|
+
[name: string]: unknown;
|
|
2268
|
+
};
|
|
2269
|
+
content: {
|
|
2270
|
+
"application/json": components["schemas"]["Error"];
|
|
2271
|
+
};
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2274
|
+
};
|
|
2275
|
+
listJuzs: {
|
|
2276
|
+
parameters: {
|
|
2277
|
+
query?: {
|
|
2278
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
2279
|
+
all?: components["parameters"]["All"];
|
|
2280
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
2281
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2282
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
2283
|
+
limit?: components["parameters"]["Limit"];
|
|
2284
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
2285
|
+
sort?: components["parameters"]["DivisionSort"];
|
|
2286
|
+
};
|
|
2287
|
+
header?: never;
|
|
2288
|
+
path?: never;
|
|
2289
|
+
cookie?: never;
|
|
2290
|
+
};
|
|
2291
|
+
requestBody?: never;
|
|
2292
|
+
responses: {
|
|
2293
|
+
/** @description OK */
|
|
2294
|
+
200: {
|
|
2295
|
+
headers: {
|
|
2296
|
+
[name: string]: unknown;
|
|
2297
|
+
};
|
|
2298
|
+
content: {
|
|
2299
|
+
"application/json": {
|
|
2300
|
+
data: components["schemas"]["Division"][];
|
|
2301
|
+
links: components["schemas"]["PageLinks"];
|
|
2302
|
+
meta: components["schemas"]["Meta"];
|
|
2303
|
+
};
|
|
2304
|
+
};
|
|
2305
|
+
};
|
|
2306
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2307
|
+
400: {
|
|
2308
|
+
headers: {
|
|
2309
|
+
[name: string]: unknown;
|
|
2310
|
+
};
|
|
2311
|
+
content: {
|
|
2312
|
+
"application/json": components["schemas"]["Error"];
|
|
2313
|
+
};
|
|
2314
|
+
};
|
|
2315
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2316
|
+
429: {
|
|
2317
|
+
headers: {
|
|
2318
|
+
[name: string]: unknown;
|
|
2319
|
+
};
|
|
2320
|
+
content: {
|
|
2321
|
+
"application/json": components["schemas"]["Error"];
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2325
|
+
};
|
|
2326
|
+
listLanguages: {
|
|
2327
|
+
parameters: {
|
|
2328
|
+
query?: {
|
|
2329
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
2330
|
+
all?: components["parameters"]["All"];
|
|
2331
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
2332
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2333
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
2334
|
+
limit?: components["parameters"]["Limit"];
|
|
2335
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2336
|
+
locale?: components["parameters"]["Locale"];
|
|
2337
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
2338
|
+
sort?: components["parameters"]["LanguageSort"];
|
|
2339
|
+
};
|
|
2340
|
+
header?: never;
|
|
2341
|
+
path?: never;
|
|
2342
|
+
cookie?: never;
|
|
2343
|
+
};
|
|
2344
|
+
requestBody?: never;
|
|
2345
|
+
responses: {
|
|
2346
|
+
/** @description OK */
|
|
2347
|
+
200: {
|
|
2348
|
+
headers: {
|
|
2349
|
+
[name: string]: unknown;
|
|
2350
|
+
};
|
|
2351
|
+
content: {
|
|
2352
|
+
"application/json": {
|
|
2353
|
+
data: components["schemas"]["Language"][];
|
|
2354
|
+
links: components["schemas"]["PageLinks"];
|
|
2355
|
+
meta: components["schemas"]["Meta"];
|
|
2356
|
+
};
|
|
2357
|
+
};
|
|
2358
|
+
};
|
|
2359
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
2360
|
+
400: {
|
|
2361
|
+
headers: {
|
|
2362
|
+
[name: string]: unknown;
|
|
2363
|
+
};
|
|
2364
|
+
content: {
|
|
2365
|
+
"application/json": components["schemas"]["Error"];
|
|
2366
|
+
};
|
|
2367
|
+
};
|
|
2368
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2369
|
+
429: {
|
|
2370
|
+
headers: {
|
|
2371
|
+
[name: string]: unknown;
|
|
2372
|
+
};
|
|
2373
|
+
content: {
|
|
2374
|
+
"application/json": components["schemas"]["Error"];
|
|
2375
|
+
};
|
|
2376
|
+
};
|
|
2377
|
+
};
|
|
2378
|
+
};
|
|
2379
|
+
listQiraahs: {
|
|
2380
|
+
parameters: {
|
|
2381
|
+
query?: {
|
|
2382
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
2383
|
+
all?: components["parameters"]["All"];
|
|
2384
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
2385
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2386
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
2387
|
+
limit?: components["parameters"]["Limit"];
|
|
2388
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2389
|
+
locale?: components["parameters"]["Locale"];
|
|
2390
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
2391
|
+
sort?: components["parameters"]["QiraahSort"];
|
|
2392
|
+
};
|
|
2393
|
+
header?: never;
|
|
2394
|
+
path?: never;
|
|
2395
|
+
cookie?: never;
|
|
2396
|
+
};
|
|
2397
|
+
requestBody?: never;
|
|
2398
|
+
responses: {
|
|
2399
|
+
/** @description OK */
|
|
2400
|
+
200: {
|
|
2401
|
+
headers: {
|
|
2402
|
+
[name: string]: unknown;
|
|
2403
|
+
};
|
|
2404
|
+
content: {
|
|
2405
|
+
"application/json": {
|
|
2406
|
+
data: components["schemas"]["Qiraah"][];
|
|
2407
|
+
links: components["schemas"]["PageLinks"];
|
|
2408
|
+
meta: components["schemas"]["Meta"];
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2412
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
2413
|
+
400: {
|
|
2414
|
+
headers: {
|
|
2415
|
+
[name: string]: unknown;
|
|
2416
|
+
};
|
|
2417
|
+
content: {
|
|
2418
|
+
"application/json": components["schemas"]["Error"];
|
|
2419
|
+
};
|
|
2420
|
+
};
|
|
2421
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2422
|
+
429: {
|
|
2423
|
+
headers: {
|
|
2424
|
+
[name: string]: unknown;
|
|
2425
|
+
};
|
|
2426
|
+
content: {
|
|
2427
|
+
"application/json": components["schemas"]["Error"];
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2430
|
+
};
|
|
2431
|
+
};
|
|
2432
|
+
getQiraah: {
|
|
2433
|
+
parameters: {
|
|
2434
|
+
query?: {
|
|
2435
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2436
|
+
locale?: components["parameters"]["Locale"];
|
|
2437
|
+
};
|
|
2438
|
+
header?: never;
|
|
2439
|
+
path: {
|
|
2440
|
+
/**
|
|
2441
|
+
* @description The code of a qiraah, for example `asim`.
|
|
2442
|
+
* @example asim
|
|
2443
|
+
*/
|
|
2444
|
+
code: components["parameters"]["QiraahCode"];
|
|
2445
|
+
};
|
|
2446
|
+
cookie?: never;
|
|
2447
|
+
};
|
|
2448
|
+
requestBody?: never;
|
|
2449
|
+
responses: {
|
|
2450
|
+
/** @description OK */
|
|
2451
|
+
200: {
|
|
2452
|
+
headers: {
|
|
2453
|
+
[name: string]: unknown;
|
|
2454
|
+
};
|
|
2455
|
+
content: {
|
|
2456
|
+
"application/json": {
|
|
2457
|
+
data: components["schemas"]["Qiraah"];
|
|
2458
|
+
meta: components["schemas"]["Meta"];
|
|
2459
|
+
};
|
|
2460
|
+
};
|
|
2461
|
+
};
|
|
2462
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
2463
|
+
400: {
|
|
2464
|
+
headers: {
|
|
2465
|
+
[name: string]: unknown;
|
|
2466
|
+
};
|
|
2467
|
+
content: {
|
|
2468
|
+
"application/json": components["schemas"]["Error"];
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
/** @description No qiraah with that code */
|
|
2472
|
+
404: {
|
|
2473
|
+
headers: {
|
|
2474
|
+
[name: string]: unknown;
|
|
2475
|
+
};
|
|
2476
|
+
content: {
|
|
2477
|
+
"application/json": components["schemas"]["Error"];
|
|
2478
|
+
};
|
|
2479
|
+
};
|
|
2480
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2481
|
+
429: {
|
|
2482
|
+
headers: {
|
|
2483
|
+
[name: string]: unknown;
|
|
2484
|
+
};
|
|
2485
|
+
content: {
|
|
2486
|
+
"application/json": components["schemas"]["Error"];
|
|
2487
|
+
};
|
|
2488
|
+
};
|
|
2489
|
+
};
|
|
2490
|
+
};
|
|
2491
|
+
listRadios: {
|
|
2492
|
+
parameters: {
|
|
2493
|
+
query?: {
|
|
2494
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
2495
|
+
all?: components["parameters"]["All"];
|
|
2496
|
+
/** @description The code of a radio category, as in `category.code` of the station, for example `duas_and_adhkar`; keeps only the stations in it. An unknown code keeps none. */
|
|
2497
|
+
category?: components["parameters"]["Category"];
|
|
2498
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
2499
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2500
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
2501
|
+
limit?: components["parameters"]["Limit"];
|
|
2502
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2503
|
+
locale?: components["parameters"]["Locale"];
|
|
2504
|
+
/** @description The code, numeric ID or slug of a reciter, in any case, for example `mahmoud-husary`; keeps only that reciter's items. */
|
|
2505
|
+
reciter?: components["parameters"]["Reciter"];
|
|
2506
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
2507
|
+
sort?: components["parameters"]["RadioSort"];
|
|
2508
|
+
};
|
|
2509
|
+
header?: never;
|
|
2510
|
+
path?: never;
|
|
2511
|
+
cookie?: never;
|
|
2512
|
+
};
|
|
2513
|
+
requestBody?: never;
|
|
2514
|
+
responses: {
|
|
2515
|
+
/** @description OK */
|
|
2516
|
+
200: {
|
|
2517
|
+
headers: {
|
|
2518
|
+
[name: string]: unknown;
|
|
2519
|
+
};
|
|
2520
|
+
content: {
|
|
2521
|
+
"application/json": {
|
|
2522
|
+
data: components["schemas"]["Radio"][];
|
|
2523
|
+
links: components["schemas"]["PageLinks"];
|
|
2524
|
+
meta: components["schemas"]["Meta"];
|
|
2525
|
+
};
|
|
2526
|
+
};
|
|
2527
|
+
};
|
|
2528
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2529
|
+
400: {
|
|
2530
|
+
headers: {
|
|
2531
|
+
[name: string]: unknown;
|
|
2532
|
+
};
|
|
2533
|
+
content: {
|
|
2534
|
+
"application/json": components["schemas"]["Error"];
|
|
2535
|
+
};
|
|
2536
|
+
};
|
|
2537
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2538
|
+
429: {
|
|
2539
|
+
headers: {
|
|
2540
|
+
[name: string]: unknown;
|
|
2541
|
+
};
|
|
2542
|
+
content: {
|
|
2543
|
+
"application/json": components["schemas"]["Error"];
|
|
2544
|
+
};
|
|
2545
|
+
};
|
|
2546
|
+
};
|
|
2547
|
+
};
|
|
2548
|
+
getRadio: {
|
|
2549
|
+
parameters: {
|
|
2550
|
+
query?: {
|
|
2551
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
2552
|
+
include?: components["parameters"]["RadioInclude"];
|
|
2553
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2554
|
+
locale?: components["parameters"]["Locale"];
|
|
2555
|
+
};
|
|
2556
|
+
header?: never;
|
|
2557
|
+
path: {
|
|
2558
|
+
/**
|
|
2559
|
+
* @description The numeric ID of a radio station, for example `1`.
|
|
2560
|
+
* @example 1
|
|
2561
|
+
*/
|
|
2562
|
+
id: components["parameters"]["RadioId"];
|
|
2563
|
+
};
|
|
2564
|
+
cookie?: never;
|
|
2565
|
+
};
|
|
2566
|
+
requestBody?: never;
|
|
2567
|
+
responses: {
|
|
2568
|
+
/** @description OK */
|
|
2569
|
+
200: {
|
|
2570
|
+
headers: {
|
|
2571
|
+
[name: string]: unknown;
|
|
2572
|
+
};
|
|
2573
|
+
content: {
|
|
2574
|
+
"application/json": {
|
|
2575
|
+
data: components["schemas"]["Radio"];
|
|
2576
|
+
meta: components["schemas"]["Meta"];
|
|
2577
|
+
};
|
|
2578
|
+
};
|
|
2579
|
+
};
|
|
2580
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2581
|
+
400: {
|
|
2582
|
+
headers: {
|
|
2583
|
+
[name: string]: unknown;
|
|
2584
|
+
};
|
|
2585
|
+
content: {
|
|
2586
|
+
"application/json": components["schemas"]["Error"];
|
|
2587
|
+
};
|
|
2588
|
+
};
|
|
2589
|
+
/** @description No radio with that id */
|
|
2590
|
+
404: {
|
|
2591
|
+
headers: {
|
|
2592
|
+
[name: string]: unknown;
|
|
2593
|
+
};
|
|
2594
|
+
content: {
|
|
2595
|
+
"application/json": components["schemas"]["Error"];
|
|
2596
|
+
};
|
|
2597
|
+
};
|
|
2598
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2599
|
+
429: {
|
|
2600
|
+
headers: {
|
|
2601
|
+
[name: string]: unknown;
|
|
2602
|
+
};
|
|
2603
|
+
content: {
|
|
2604
|
+
"application/json": components["schemas"]["Error"];
|
|
2605
|
+
};
|
|
2606
|
+
};
|
|
2607
|
+
};
|
|
2608
|
+
};
|
|
2609
|
+
listRecitations: {
|
|
2610
|
+
parameters: {
|
|
2611
|
+
query?: {
|
|
2612
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
2613
|
+
all?: components["parameters"]["All"];
|
|
2614
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
2615
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2616
|
+
/** @description The feature an item must have; `ayah_timings` keeps only those with ayah timings. */
|
|
2617
|
+
has?: components["parameters"]["Has"];
|
|
2618
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
2619
|
+
limit?: components["parameters"]["Limit"];
|
|
2620
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2621
|
+
locale?: components["parameters"]["Locale"];
|
|
2622
|
+
/** @description How the recording was made: `studio`, `taraweeh`, `live` or `radio`. `unknown` keeps the recitations whose occasion is not stated. */
|
|
2623
|
+
occasion?: components["parameters"]["Occasion"];
|
|
2624
|
+
/** @description The code of a qiraah; keeps the items whose `qiraahs` include it. Other spellings of a code are accepted too. */
|
|
2625
|
+
qiraah?: components["parameters"]["Qiraah"];
|
|
2626
|
+
/** @description The code, numeric ID or slug of a reciter, in any case, for example `mahmoud-husary`; keeps only that reciter's items. */
|
|
2627
|
+
reciter?: components["parameters"]["Reciter"];
|
|
2628
|
+
/** @description The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. Other spellings of a code, and its numeric ID, are accepted too. */
|
|
2629
|
+
riwayah?: components["parameters"]["Riwayah"];
|
|
2630
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
2631
|
+
sort?: components["parameters"]["RecitationSort"];
|
|
2632
|
+
/** @description The recitation style to keep: `murattal`, `mujawwad`, `muallim`, `featured` or `archival`. */
|
|
2633
|
+
style?: components["parameters"]["Style"];
|
|
2634
|
+
/** @description A surah number from 1 to 114; keeps only the items of that surah. */
|
|
2635
|
+
surah?: components["parameters"]["Surah"];
|
|
2636
|
+
/** @description The code of a tariq; keeps the items recorded through it. Other spellings of a code are accepted too. */
|
|
2637
|
+
tariq?: components["parameters"]["Tariq"];
|
|
2638
|
+
/** @description An RFC 3339 UTC timestamp, for example `2026-01-01T00:00:00Z`; keeps the items changed at or after it. */
|
|
2639
|
+
updated_since?: components["parameters"]["UpdatedSince"];
|
|
2640
|
+
};
|
|
2641
|
+
header?: never;
|
|
2642
|
+
path?: never;
|
|
2643
|
+
cookie?: never;
|
|
2644
|
+
};
|
|
2645
|
+
requestBody?: never;
|
|
2646
|
+
responses: {
|
|
2647
|
+
/** @description OK */
|
|
2648
|
+
200: {
|
|
2649
|
+
headers: {
|
|
2650
|
+
[name: string]: unknown;
|
|
2651
|
+
};
|
|
2652
|
+
content: {
|
|
2653
|
+
"application/json": {
|
|
2654
|
+
data: components["schemas"]["Recitation"][];
|
|
2655
|
+
links: components["schemas"]["PageLinks"];
|
|
2656
|
+
meta: components["schemas"]["Meta"];
|
|
2657
|
+
};
|
|
2658
|
+
};
|
|
2659
|
+
};
|
|
2660
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2661
|
+
400: {
|
|
2662
|
+
headers: {
|
|
2663
|
+
[name: string]: unknown;
|
|
2664
|
+
};
|
|
2665
|
+
content: {
|
|
2666
|
+
"application/json": components["schemas"]["Error"];
|
|
2667
|
+
};
|
|
2668
|
+
};
|
|
2669
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2670
|
+
429: {
|
|
2671
|
+
headers: {
|
|
2672
|
+
[name: string]: unknown;
|
|
2673
|
+
};
|
|
2674
|
+
content: {
|
|
2675
|
+
"application/json": components["schemas"]["Error"];
|
|
2676
|
+
};
|
|
2677
|
+
};
|
|
2678
|
+
};
|
|
2679
|
+
};
|
|
2680
|
+
getRecitation: {
|
|
2681
|
+
parameters: {
|
|
2682
|
+
query?: {
|
|
2683
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
2684
|
+
include?: components["parameters"]["RecitationInclude"];
|
|
2685
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2686
|
+
locale?: components["parameters"]["Locale"];
|
|
2687
|
+
};
|
|
2688
|
+
header?: never;
|
|
2689
|
+
path: {
|
|
2690
|
+
/**
|
|
2691
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
2692
|
+
* @example mahmoud-husary/r1
|
|
2693
|
+
*/
|
|
2694
|
+
id: components["parameters"]["RecitationId"];
|
|
2695
|
+
};
|
|
2696
|
+
cookie?: never;
|
|
2697
|
+
};
|
|
2698
|
+
requestBody?: never;
|
|
2699
|
+
responses: {
|
|
2700
|
+
/** @description OK */
|
|
2701
|
+
200: {
|
|
2702
|
+
headers: {
|
|
2703
|
+
[name: string]: unknown;
|
|
2704
|
+
};
|
|
2705
|
+
content: {
|
|
2706
|
+
"application/json": {
|
|
2707
|
+
data: components["schemas"]["Recitation"];
|
|
2708
|
+
meta: components["schemas"]["Meta"];
|
|
2709
|
+
};
|
|
2710
|
+
};
|
|
2711
|
+
};
|
|
2712
|
+
/** @description The request named the recitation in a non-canonical form. `Location` is the canonical URL, with the same query string. */
|
|
2713
|
+
301: {
|
|
2714
|
+
headers: {
|
|
2715
|
+
[name: string]: unknown;
|
|
2716
|
+
};
|
|
2717
|
+
content?: never;
|
|
2718
|
+
};
|
|
2719
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
2720
|
+
400: {
|
|
2721
|
+
headers: {
|
|
2722
|
+
[name: string]: unknown;
|
|
2723
|
+
};
|
|
2724
|
+
content: {
|
|
2725
|
+
"application/json": components["schemas"]["Error"];
|
|
2726
|
+
};
|
|
2727
|
+
};
|
|
2728
|
+
/** @description Not found */
|
|
2729
|
+
404: {
|
|
2730
|
+
headers: {
|
|
2731
|
+
[name: string]: unknown;
|
|
2732
|
+
};
|
|
2733
|
+
content: {
|
|
2734
|
+
"application/json": components["schemas"]["Error"];
|
|
2735
|
+
};
|
|
2736
|
+
};
|
|
2737
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2738
|
+
429: {
|
|
2739
|
+
headers: {
|
|
2740
|
+
[name: string]: unknown;
|
|
2741
|
+
};
|
|
2742
|
+
content: {
|
|
2743
|
+
"application/json": components["schemas"]["Error"];
|
|
2744
|
+
};
|
|
2745
|
+
};
|
|
2746
|
+
};
|
|
2747
|
+
};
|
|
2748
|
+
listRecitationSurahs: {
|
|
2749
|
+
parameters: {
|
|
2750
|
+
query?: {
|
|
2751
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
2752
|
+
all?: components["parameters"]["All"];
|
|
2753
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
2754
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2755
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
2756
|
+
limit?: components["parameters"]["Limit"];
|
|
2757
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
2758
|
+
locale?: components["parameters"]["Locale"];
|
|
2759
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
2760
|
+
sort?: components["parameters"]["RecitationSurahSort"];
|
|
2761
|
+
};
|
|
2762
|
+
header?: never;
|
|
2763
|
+
path: {
|
|
2764
|
+
/**
|
|
2765
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
2766
|
+
* @example mahmoud-husary/r1
|
|
2767
|
+
*/
|
|
2768
|
+
id: components["parameters"]["RecitationId"];
|
|
2769
|
+
};
|
|
2770
|
+
cookie?: never;
|
|
2771
|
+
};
|
|
2772
|
+
requestBody?: never;
|
|
2773
|
+
responses: {
|
|
2774
|
+
/** @description OK */
|
|
2775
|
+
200: {
|
|
2776
|
+
headers: {
|
|
2777
|
+
[name: string]: unknown;
|
|
2778
|
+
};
|
|
2779
|
+
content: {
|
|
2780
|
+
"application/json": {
|
|
2781
|
+
data: components["schemas"]["RecitationSurah"][];
|
|
2782
|
+
links: components["schemas"]["PageLinks"];
|
|
2783
|
+
meta: components["schemas"]["Meta"];
|
|
2784
|
+
};
|
|
2785
|
+
};
|
|
2786
|
+
};
|
|
2787
|
+
/** @description The request named the recitation in a non-canonical form. `Location` is the canonical URL, with the same query string. */
|
|
2788
|
+
301: {
|
|
2789
|
+
headers: {
|
|
2790
|
+
[name: string]: unknown;
|
|
2791
|
+
};
|
|
2792
|
+
content?: never;
|
|
2793
|
+
};
|
|
2794
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
2795
|
+
400: {
|
|
2796
|
+
headers: {
|
|
2797
|
+
[name: string]: unknown;
|
|
2798
|
+
};
|
|
2799
|
+
content: {
|
|
2800
|
+
"application/json": components["schemas"]["Error"];
|
|
2801
|
+
};
|
|
2802
|
+
};
|
|
2803
|
+
/** @description Not found */
|
|
2804
|
+
404: {
|
|
2805
|
+
headers: {
|
|
2806
|
+
[name: string]: unknown;
|
|
2807
|
+
};
|
|
2808
|
+
content: {
|
|
2809
|
+
"application/json": components["schemas"]["Error"];
|
|
2810
|
+
};
|
|
2811
|
+
};
|
|
2812
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2813
|
+
429: {
|
|
2814
|
+
headers: {
|
|
2815
|
+
[name: string]: unknown;
|
|
2816
|
+
};
|
|
2817
|
+
content: {
|
|
2818
|
+
"application/json": components["schemas"]["Error"];
|
|
2819
|
+
};
|
|
2820
|
+
};
|
|
2821
|
+
};
|
|
2822
|
+
};
|
|
2823
|
+
getRecitationSurah: {
|
|
2824
|
+
parameters: {
|
|
2825
|
+
query?: never;
|
|
2826
|
+
header?: never;
|
|
2827
|
+
path: {
|
|
2828
|
+
/**
|
|
2829
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
2830
|
+
* @example mahmoud-husary/r1
|
|
2831
|
+
*/
|
|
2832
|
+
id: components["parameters"]["RecitationId"];
|
|
2833
|
+
/**
|
|
2834
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
2835
|
+
* @example 4
|
|
2836
|
+
*/
|
|
2837
|
+
n: components["parameters"]["SurahNumber"];
|
|
2838
|
+
};
|
|
2839
|
+
cookie?: never;
|
|
2840
|
+
};
|
|
2841
|
+
requestBody?: never;
|
|
2842
|
+
responses: {
|
|
2843
|
+
/** @description OK */
|
|
2844
|
+
200: {
|
|
2845
|
+
headers: {
|
|
2846
|
+
[name: string]: unknown;
|
|
2847
|
+
};
|
|
2848
|
+
content: {
|
|
2849
|
+
"application/json": {
|
|
2850
|
+
data: components["schemas"]["RecitationSurahItem"];
|
|
2851
|
+
meta: components["schemas"]["Meta"];
|
|
2852
|
+
};
|
|
2853
|
+
};
|
|
2854
|
+
};
|
|
2855
|
+
/** @description The request named the recitation in a non-canonical form. `Location` is the canonical URL. */
|
|
2856
|
+
301: {
|
|
2857
|
+
headers: {
|
|
2858
|
+
[name: string]: unknown;
|
|
2859
|
+
};
|
|
2860
|
+
content?: never;
|
|
2861
|
+
};
|
|
2862
|
+
/** @description Unknown query parameter */
|
|
2863
|
+
400: {
|
|
2864
|
+
headers: {
|
|
2865
|
+
[name: string]: unknown;
|
|
2866
|
+
};
|
|
2867
|
+
content: {
|
|
2868
|
+
"application/json": components["schemas"]["Error"];
|
|
2869
|
+
};
|
|
2870
|
+
};
|
|
2871
|
+
/** @description The recitation does not exist, or has no file for that surah */
|
|
2872
|
+
404: {
|
|
2873
|
+
headers: {
|
|
2874
|
+
[name: string]: unknown;
|
|
2875
|
+
};
|
|
2876
|
+
content: {
|
|
2877
|
+
"application/json": components["schemas"]["Error"];
|
|
2878
|
+
};
|
|
2879
|
+
};
|
|
2880
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2881
|
+
429: {
|
|
2882
|
+
headers: {
|
|
2883
|
+
[name: string]: unknown;
|
|
2884
|
+
};
|
|
2885
|
+
content: {
|
|
2886
|
+
"application/json": components["schemas"]["Error"];
|
|
2887
|
+
};
|
|
2888
|
+
};
|
|
2889
|
+
};
|
|
2890
|
+
};
|
|
2891
|
+
getAyahTimings: {
|
|
2892
|
+
parameters: {
|
|
2893
|
+
query?: {
|
|
2894
|
+
/** @description An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. */
|
|
2895
|
+
ayah?: components["parameters"]["Ayah"];
|
|
2896
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
2897
|
+
include?: components["parameters"]["AyahTimingsInclude"];
|
|
2898
|
+
};
|
|
2899
|
+
header?: never;
|
|
2900
|
+
path: {
|
|
2901
|
+
/**
|
|
2902
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
2903
|
+
* @example mahmoud-husary/r1
|
|
2904
|
+
*/
|
|
2905
|
+
id: components["parameters"]["RecitationId"];
|
|
2906
|
+
/**
|
|
2907
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
2908
|
+
* @example 4
|
|
2909
|
+
*/
|
|
2910
|
+
n: components["parameters"]["SurahNumber"];
|
|
2911
|
+
};
|
|
2912
|
+
cookie?: never;
|
|
2913
|
+
};
|
|
2914
|
+
requestBody?: never;
|
|
2915
|
+
responses: {
|
|
2916
|
+
/** @description OK */
|
|
2917
|
+
200: {
|
|
2918
|
+
headers: {
|
|
2919
|
+
[name: string]: unknown;
|
|
2920
|
+
};
|
|
2921
|
+
content: {
|
|
2922
|
+
"application/json": {
|
|
2923
|
+
data: components["schemas"]["AyahTimings"];
|
|
2924
|
+
meta: components["schemas"]["Meta"];
|
|
2925
|
+
};
|
|
2926
|
+
};
|
|
2927
|
+
};
|
|
2928
|
+
/** @description The request named the recitation in a non-canonical form. `Location` is the canonical URL, with the same query string. */
|
|
2929
|
+
301: {
|
|
2930
|
+
headers: {
|
|
2931
|
+
[name: string]: unknown;
|
|
2932
|
+
};
|
|
2933
|
+
content?: never;
|
|
2934
|
+
};
|
|
2935
|
+
/** @description `n` is not a positive integer, or `id` is neither an id nor a folder */
|
|
2936
|
+
400: {
|
|
2937
|
+
headers: {
|
|
2938
|
+
[name: string]: unknown;
|
|
2939
|
+
};
|
|
2940
|
+
content: {
|
|
2941
|
+
"application/json": components["schemas"]["Error"];
|
|
2942
|
+
};
|
|
2943
|
+
};
|
|
2944
|
+
/** @description No ayah timings for this recitation/surah */
|
|
2945
|
+
404: {
|
|
2946
|
+
headers: {
|
|
2947
|
+
[name: string]: unknown;
|
|
2948
|
+
};
|
|
2949
|
+
content: {
|
|
2950
|
+
"application/json": components["schemas"]["Error"];
|
|
2951
|
+
};
|
|
2952
|
+
};
|
|
2953
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
2954
|
+
429: {
|
|
2955
|
+
headers: {
|
|
2956
|
+
[name: string]: unknown;
|
|
2957
|
+
};
|
|
2958
|
+
content: {
|
|
2959
|
+
"application/json": components["schemas"]["Error"];
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
};
|
|
2963
|
+
};
|
|
2964
|
+
getSurahClip: {
|
|
2965
|
+
parameters: {
|
|
2966
|
+
query: {
|
|
2967
|
+
/**
|
|
2968
|
+
* @description The ayah to cut, for example `1`, or a range such as `1-2`; `0` is the basmalah. Ayah numbers are those of the ayah timings of the recitation, which for a recitation aligned in the mushaf of its riwayah are the numbers of that mushaf. Required.
|
|
2969
|
+
* @example 1-2
|
|
2970
|
+
*/
|
|
2971
|
+
ayah: components["parameters"]["ClipAyah"];
|
|
2972
|
+
/** @description With `true`, cuts the clip on the exact ayah boundaries by re-encoding it, which takes longer; by default it is cut without re-encoding, on the nearest frame. */
|
|
2973
|
+
exact?: components["parameters"]["Exact"];
|
|
2974
|
+
};
|
|
2975
|
+
header?: never;
|
|
2976
|
+
path: {
|
|
2977
|
+
/**
|
|
2978
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
2979
|
+
* @example mahmoud-husary/r1
|
|
2980
|
+
*/
|
|
2981
|
+
id: components["parameters"]["RecitationId"];
|
|
2982
|
+
/**
|
|
2983
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
2984
|
+
* @example 4
|
|
2985
|
+
*/
|
|
2986
|
+
n: components["parameters"]["SurahNumber"];
|
|
2987
|
+
};
|
|
2988
|
+
cookie?: never;
|
|
2989
|
+
};
|
|
2990
|
+
requestBody?: never;
|
|
2991
|
+
responses: {
|
|
2992
|
+
/** @description The cut is queued. Repeat the request after `Retry-After` seconds. */
|
|
2993
|
+
202: {
|
|
2994
|
+
headers: {
|
|
2995
|
+
/** @description Seconds to wait. */
|
|
2996
|
+
"Retry-After"?: string;
|
|
2997
|
+
[name: string]: unknown;
|
|
2998
|
+
};
|
|
2999
|
+
content: {
|
|
3000
|
+
"application/json": {
|
|
3001
|
+
data: {
|
|
3002
|
+
key: string;
|
|
3003
|
+
/** @enum {string} */
|
|
3004
|
+
status: "queued";
|
|
3005
|
+
};
|
|
3006
|
+
};
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
/** @description The request named the recitation in a non-canonical form. `Location` is the canonical URL, with the same query string. */
|
|
3010
|
+
301: {
|
|
3011
|
+
headers: {
|
|
3012
|
+
[name: string]: unknown;
|
|
3013
|
+
};
|
|
3014
|
+
content?: never;
|
|
3015
|
+
};
|
|
3016
|
+
/** @description The clip is ready. `Location` is its address; it never changes. */
|
|
3017
|
+
302: {
|
|
3018
|
+
headers: {
|
|
3019
|
+
[name: string]: unknown;
|
|
3020
|
+
};
|
|
3021
|
+
content?: never;
|
|
3022
|
+
};
|
|
3023
|
+
/** @description Unknown parameter, or an `ayah` that is missing, malformed or out of range */
|
|
3024
|
+
400: {
|
|
3025
|
+
headers: {
|
|
3026
|
+
[name: string]: unknown;
|
|
3027
|
+
};
|
|
3028
|
+
content: {
|
|
3029
|
+
"application/json": components["schemas"]["Error"];
|
|
3030
|
+
};
|
|
3031
|
+
};
|
|
3032
|
+
/** @description The recitation or surah does not exist, the file is not available, or it has no ayah timings */
|
|
3033
|
+
404: {
|
|
3034
|
+
headers: {
|
|
3035
|
+
[name: string]: unknown;
|
|
3036
|
+
};
|
|
3037
|
+
content: {
|
|
3038
|
+
"application/json": components["schemas"]["Error"];
|
|
3039
|
+
};
|
|
3040
|
+
};
|
|
3041
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3042
|
+
429: {
|
|
3043
|
+
headers: {
|
|
3044
|
+
[name: string]: unknown;
|
|
3045
|
+
};
|
|
3046
|
+
content: {
|
|
3047
|
+
"application/json": components["schemas"]["Error"];
|
|
3048
|
+
};
|
|
3049
|
+
};
|
|
3050
|
+
/** @description The clip queue is full or unavailable (`queue_full`). Try again after `Retry-After` seconds. */
|
|
3051
|
+
503: {
|
|
3052
|
+
headers: {
|
|
3053
|
+
[name: string]: unknown;
|
|
3054
|
+
};
|
|
3055
|
+
content: {
|
|
3056
|
+
"application/json": components["schemas"]["Error"];
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
getLetterTimings: {
|
|
3062
|
+
parameters: {
|
|
3063
|
+
query?: {
|
|
3064
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that contain it, counting the start but not the end, so a boundary between two entries matches only the later one. With `from_ms` or `to_ms`, an entry must meet every bound given. */
|
|
3065
|
+
at_ms?: components["parameters"]["AtMs"];
|
|
3066
|
+
/** @description An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. */
|
|
3067
|
+
ayah?: components["parameters"]["Ayah"];
|
|
3068
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that end after it. With `to_ms` it selects the window from `from_ms` up to, but not including, `to_ms`; an entry of zero length counts as its start. */
|
|
3069
|
+
from_ms?: components["parameters"]["FromMs"];
|
|
3070
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
3071
|
+
include?: components["parameters"]["LetterPhonemeInclude"];
|
|
3072
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that start before it, so an entry starting exactly at `to_ms` is left out. */
|
|
3073
|
+
to_ms?: components["parameters"]["ToMs"];
|
|
3074
|
+
/** @description The layout of a word, letter or phoneme timings response: `playback` (the default), the entries in the order heard, or `positions`, the same intervals grouped by ayah and position. */
|
|
3075
|
+
view?: components["parameters"]["View"];
|
|
3076
|
+
};
|
|
3077
|
+
header?: never;
|
|
3078
|
+
path: {
|
|
3079
|
+
/**
|
|
3080
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
3081
|
+
* @example mahmoud-husary/r1
|
|
3082
|
+
*/
|
|
3083
|
+
id: components["parameters"]["RecitationId"];
|
|
3084
|
+
/**
|
|
3085
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
3086
|
+
* @example 4
|
|
3087
|
+
*/
|
|
3088
|
+
n: components["parameters"]["SurahNumber"];
|
|
3089
|
+
};
|
|
3090
|
+
cookie?: never;
|
|
3091
|
+
};
|
|
3092
|
+
requestBody?: never;
|
|
3093
|
+
responses: {
|
|
3094
|
+
/** @description OK */
|
|
3095
|
+
200: {
|
|
3096
|
+
headers: {
|
|
3097
|
+
[name: string]: unknown;
|
|
3098
|
+
};
|
|
3099
|
+
content: {
|
|
3100
|
+
"application/json": {
|
|
3101
|
+
data: components["schemas"]["LetterTimings"] | components["schemas"]["LetterTimingsPositions"];
|
|
3102
|
+
meta: components["schemas"]["Meta"];
|
|
3103
|
+
};
|
|
3104
|
+
};
|
|
3105
|
+
};
|
|
3106
|
+
/** @description The request named the recitation in a non-canonical form. `Location` is the canonical URL, with the same query string. */
|
|
3107
|
+
301: {
|
|
3108
|
+
headers: {
|
|
3109
|
+
[name: string]: unknown;
|
|
3110
|
+
};
|
|
3111
|
+
content?: never;
|
|
3112
|
+
};
|
|
3113
|
+
/** @description Unknown query parameter, an invalid window, an unknown `view` or `include` value, or `id` is neither an id nor a folder */
|
|
3114
|
+
400: {
|
|
3115
|
+
headers: {
|
|
3116
|
+
[name: string]: unknown;
|
|
3117
|
+
};
|
|
3118
|
+
content: {
|
|
3119
|
+
"application/json": components["schemas"]["Error"];
|
|
3120
|
+
};
|
|
3121
|
+
};
|
|
3122
|
+
/** @description No accepted alignment for this file, or its run never carried letter timings */
|
|
3123
|
+
404: {
|
|
3124
|
+
headers: {
|
|
3125
|
+
[name: string]: unknown;
|
|
3126
|
+
};
|
|
3127
|
+
content: {
|
|
3128
|
+
"application/json": components["schemas"]["Error"];
|
|
3129
|
+
};
|
|
3130
|
+
};
|
|
3131
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3132
|
+
429: {
|
|
3133
|
+
headers: {
|
|
3134
|
+
[name: string]: unknown;
|
|
3135
|
+
};
|
|
3136
|
+
content: {
|
|
3137
|
+
"application/json": components["schemas"]["Error"];
|
|
3138
|
+
};
|
|
3139
|
+
};
|
|
3140
|
+
};
|
|
3141
|
+
};
|
|
3142
|
+
getPhonemeTimings: {
|
|
3143
|
+
parameters: {
|
|
3144
|
+
query?: {
|
|
3145
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that contain it, counting the start but not the end, so a boundary between two entries matches only the later one. With `from_ms` or `to_ms`, an entry must meet every bound given. */
|
|
3146
|
+
at_ms?: components["parameters"]["AtMs"];
|
|
3147
|
+
/** @description An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. */
|
|
3148
|
+
ayah?: components["parameters"]["Ayah"];
|
|
3149
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that end after it. With `to_ms` it selects the window from `from_ms` up to, but not including, `to_ms`; an entry of zero length counts as its start. */
|
|
3150
|
+
from_ms?: components["parameters"]["FromMs"];
|
|
3151
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
3152
|
+
include?: components["parameters"]["LetterPhonemeInclude"];
|
|
3153
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that start before it, so an entry starting exactly at `to_ms` is left out. */
|
|
3154
|
+
to_ms?: components["parameters"]["ToMs"];
|
|
3155
|
+
/** @description The layout of a word, letter or phoneme timings response: `playback` (the default), the entries in the order heard, or `positions`, the same intervals grouped by ayah and position. */
|
|
3156
|
+
view?: components["parameters"]["View"];
|
|
3157
|
+
};
|
|
3158
|
+
header?: never;
|
|
3159
|
+
path: {
|
|
3160
|
+
/**
|
|
3161
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
3162
|
+
* @example mahmoud-husary/r1
|
|
3163
|
+
*/
|
|
3164
|
+
id: components["parameters"]["RecitationId"];
|
|
3165
|
+
/**
|
|
3166
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
3167
|
+
* @example 4
|
|
3168
|
+
*/
|
|
3169
|
+
n: components["parameters"]["SurahNumber"];
|
|
3170
|
+
};
|
|
3171
|
+
cookie?: never;
|
|
3172
|
+
};
|
|
3173
|
+
requestBody?: never;
|
|
3174
|
+
responses: {
|
|
3175
|
+
/** @description OK */
|
|
3176
|
+
200: {
|
|
3177
|
+
headers: {
|
|
3178
|
+
[name: string]: unknown;
|
|
3179
|
+
};
|
|
3180
|
+
content: {
|
|
3181
|
+
"application/json": {
|
|
3182
|
+
data: components["schemas"]["PhonemeTimings"] | components["schemas"]["PhonemeTimingsPositions"];
|
|
3183
|
+
meta: components["schemas"]["Meta"];
|
|
3184
|
+
};
|
|
3185
|
+
};
|
|
3186
|
+
};
|
|
3187
|
+
/** @description The request named the recitation in a non-canonical form. `Location` is the canonical URL, with the same query string. */
|
|
3188
|
+
301: {
|
|
3189
|
+
headers: {
|
|
3190
|
+
[name: string]: unknown;
|
|
3191
|
+
};
|
|
3192
|
+
content?: never;
|
|
3193
|
+
};
|
|
3194
|
+
/** @description Unknown query parameter, an invalid window, an unknown `view` or `include` value, or `id` is neither an id nor a folder */
|
|
3195
|
+
400: {
|
|
3196
|
+
headers: {
|
|
3197
|
+
[name: string]: unknown;
|
|
3198
|
+
};
|
|
3199
|
+
content: {
|
|
3200
|
+
"application/json": components["schemas"]["Error"];
|
|
3201
|
+
};
|
|
3202
|
+
};
|
|
3203
|
+
/** @description No accepted alignment for this file, or its run never carried phoneme timings */
|
|
3204
|
+
404: {
|
|
3205
|
+
headers: {
|
|
3206
|
+
[name: string]: unknown;
|
|
3207
|
+
};
|
|
3208
|
+
content: {
|
|
3209
|
+
"application/json": components["schemas"]["Error"];
|
|
3210
|
+
};
|
|
3211
|
+
};
|
|
3212
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3213
|
+
429: {
|
|
3214
|
+
headers: {
|
|
3215
|
+
[name: string]: unknown;
|
|
3216
|
+
};
|
|
3217
|
+
content: {
|
|
3218
|
+
"application/json": components["schemas"]["Error"];
|
|
3219
|
+
};
|
|
3220
|
+
};
|
|
3221
|
+
};
|
|
3222
|
+
};
|
|
3223
|
+
getWordTimings: {
|
|
3224
|
+
parameters: {
|
|
3225
|
+
query?: {
|
|
3226
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that contain it, counting the start but not the end, so a boundary between two entries matches only the later one. With `from_ms` or `to_ms`, an entry must meet every bound given. */
|
|
3227
|
+
at_ms?: components["parameters"]["AtMs"];
|
|
3228
|
+
/** @description An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. */
|
|
3229
|
+
ayah?: components["parameters"]["Ayah"];
|
|
3230
|
+
/** @description If false, turns off the estimated intervals for words with no detected audio. */
|
|
3231
|
+
estimate?: components["parameters"]["Estimate"];
|
|
3232
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that end after it. With `to_ms` it selects the window from `from_ms` up to, but not including, `to_ms`; an entry of zero length counts as its start. */
|
|
3233
|
+
from_ms?: components["parameters"]["FromMs"];
|
|
3234
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
3235
|
+
include?: components["parameters"]["WordTimingsInclude"];
|
|
3236
|
+
/** @description A position in the audio, in milliseconds; keeps the entries that start before it, so an entry starting exactly at `to_ms` is left out. */
|
|
3237
|
+
to_ms?: components["parameters"]["ToMs"];
|
|
3238
|
+
/** @description The layout of a word, letter or phoneme timings response: `playback` (the default), the entries in the order heard, or `positions`, the same intervals grouped by ayah and position. */
|
|
3239
|
+
view?: components["parameters"]["View"];
|
|
3240
|
+
};
|
|
3241
|
+
header?: never;
|
|
3242
|
+
path: {
|
|
3243
|
+
/**
|
|
3244
|
+
* @description The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. The numeric ID redirects with 301 to the folder address.
|
|
3245
|
+
* @example mahmoud-husary/r1
|
|
3246
|
+
*/
|
|
3247
|
+
id: components["parameters"]["RecitationId"];
|
|
3248
|
+
/**
|
|
3249
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
3250
|
+
* @example 4
|
|
3251
|
+
*/
|
|
3252
|
+
n: components["parameters"]["SurahNumber"];
|
|
3253
|
+
};
|
|
3254
|
+
cookie?: never;
|
|
3255
|
+
};
|
|
3256
|
+
requestBody?: never;
|
|
3257
|
+
responses: {
|
|
3258
|
+
/** @description OK */
|
|
3259
|
+
200: {
|
|
3260
|
+
headers: {
|
|
3261
|
+
[name: string]: unknown;
|
|
3262
|
+
};
|
|
3263
|
+
content: {
|
|
3264
|
+
"application/json": {
|
|
3265
|
+
data: components["schemas"]["WordTimings"] | components["schemas"]["WordTimingsPositions"];
|
|
3266
|
+
meta: components["schemas"]["Meta"];
|
|
3267
|
+
};
|
|
3268
|
+
};
|
|
3269
|
+
};
|
|
3270
|
+
/** @description The request named the recitation in a non-canonical form. `Location` is the canonical URL, with the same query string. */
|
|
3271
|
+
301: {
|
|
3272
|
+
headers: {
|
|
3273
|
+
[name: string]: unknown;
|
|
3274
|
+
};
|
|
3275
|
+
content?: never;
|
|
3276
|
+
};
|
|
3277
|
+
/** @description Unknown query parameter, an invalid window, an unknown `view` or `include` value, or `id` is neither an id nor a folder */
|
|
3278
|
+
400: {
|
|
3279
|
+
headers: {
|
|
3280
|
+
[name: string]: unknown;
|
|
3281
|
+
};
|
|
3282
|
+
content: {
|
|
3283
|
+
"application/json": components["schemas"]["Error"];
|
|
3284
|
+
};
|
|
3285
|
+
};
|
|
3286
|
+
/** @description This recitation/surah has no accepted alignment */
|
|
3287
|
+
404: {
|
|
3288
|
+
headers: {
|
|
3289
|
+
[name: string]: unknown;
|
|
3290
|
+
};
|
|
3291
|
+
content: {
|
|
3292
|
+
"application/json": components["schemas"]["Error"];
|
|
3293
|
+
};
|
|
3294
|
+
};
|
|
3295
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3296
|
+
429: {
|
|
3297
|
+
headers: {
|
|
3298
|
+
[name: string]: unknown;
|
|
3299
|
+
};
|
|
3300
|
+
content: {
|
|
3301
|
+
"application/json": components["schemas"]["Error"];
|
|
3302
|
+
};
|
|
3303
|
+
};
|
|
3304
|
+
};
|
|
3305
|
+
};
|
|
3306
|
+
listReciters: {
|
|
3307
|
+
parameters: {
|
|
3308
|
+
query?: {
|
|
3309
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
3310
|
+
all?: components["parameters"]["All"];
|
|
3311
|
+
/** @description A two-letter ISO 3166-1 country code, for example `SA`; keeps only the reciters from that country. */
|
|
3312
|
+
country?: components["parameters"]["Country"];
|
|
3313
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
3314
|
+
cursor?: components["parameters"]["Cursor"];
|
|
3315
|
+
/** @description The feature an item must have; `ayah_timings` keeps only those with ayah timings. */
|
|
3316
|
+
has?: components["parameters"]["Has"];
|
|
3317
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
3318
|
+
include?: components["parameters"]["ReciterInclude"];
|
|
3319
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
3320
|
+
limit?: components["parameters"]["Limit"];
|
|
3321
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3322
|
+
locale?: components["parameters"]["Locale"];
|
|
3323
|
+
/** @description A name, alias or code to search for; ignores diacritics and tolerates spelling differences, so `husary` finds "Al-Hussary"; the best matches come first. */
|
|
3324
|
+
q?: components["parameters"]["Q"];
|
|
3325
|
+
/** @description The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. Other spellings of a code, and its numeric ID, are accepted too. */
|
|
3326
|
+
riwayah?: components["parameters"]["Riwayah"];
|
|
3327
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
3328
|
+
sort?: components["parameters"]["ReciterSort"];
|
|
3329
|
+
/** @description An RFC 3339 UTC timestamp, for example `2026-01-01T00:00:00Z`; keeps the items changed at or after it. */
|
|
3330
|
+
updated_since?: components["parameters"]["UpdatedSince"];
|
|
3331
|
+
};
|
|
3332
|
+
header?: never;
|
|
3333
|
+
path?: never;
|
|
3334
|
+
cookie?: never;
|
|
3335
|
+
};
|
|
3336
|
+
requestBody?: never;
|
|
3337
|
+
responses: {
|
|
3338
|
+
/** @description OK */
|
|
3339
|
+
200: {
|
|
3340
|
+
headers: {
|
|
3341
|
+
[name: string]: unknown;
|
|
3342
|
+
};
|
|
3343
|
+
content: {
|
|
3344
|
+
"application/json": {
|
|
3345
|
+
data: components["schemas"]["Reciter"][];
|
|
3346
|
+
links: components["schemas"]["PageLinks"];
|
|
3347
|
+
meta: components["schemas"]["Meta"];
|
|
3348
|
+
};
|
|
3349
|
+
};
|
|
3350
|
+
};
|
|
3351
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
3352
|
+
400: {
|
|
3353
|
+
headers: {
|
|
3354
|
+
[name: string]: unknown;
|
|
3355
|
+
};
|
|
3356
|
+
content: {
|
|
3357
|
+
"application/json": components["schemas"]["Error"];
|
|
3358
|
+
};
|
|
3359
|
+
};
|
|
3360
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3361
|
+
429: {
|
|
3362
|
+
headers: {
|
|
3363
|
+
[name: string]: unknown;
|
|
3364
|
+
};
|
|
3365
|
+
content: {
|
|
3366
|
+
"application/json": components["schemas"]["Error"];
|
|
3367
|
+
};
|
|
3368
|
+
};
|
|
3369
|
+
};
|
|
3370
|
+
};
|
|
3371
|
+
getReciter: {
|
|
3372
|
+
parameters: {
|
|
3373
|
+
query?: {
|
|
3374
|
+
/** @description Comma-separated related data to embed in the response. */
|
|
3375
|
+
include?: components["parameters"]["ReciterInclude"];
|
|
3376
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3377
|
+
locale?: components["parameters"]["Locale"];
|
|
3378
|
+
};
|
|
3379
|
+
header?: never;
|
|
3380
|
+
path: {
|
|
3381
|
+
/**
|
|
3382
|
+
* @description The reciter's code, for example `mahmoud-husary`. The numeric ID and any other spelling redirect with 301 to the code.
|
|
3383
|
+
* @example mahmoud-husary
|
|
3384
|
+
*/
|
|
3385
|
+
idOrSlug: components["parameters"]["ReciterIdOrSlug"];
|
|
3386
|
+
};
|
|
3387
|
+
cookie?: never;
|
|
3388
|
+
};
|
|
3389
|
+
requestBody?: never;
|
|
3390
|
+
responses: {
|
|
3391
|
+
/** @description OK */
|
|
3392
|
+
200: {
|
|
3393
|
+
headers: {
|
|
3394
|
+
[name: string]: unknown;
|
|
3395
|
+
};
|
|
3396
|
+
content: {
|
|
3397
|
+
"application/json": {
|
|
3398
|
+
data: components["schemas"]["Reciter"];
|
|
3399
|
+
meta: components["schemas"]["Meta"];
|
|
3400
|
+
};
|
|
3401
|
+
};
|
|
3402
|
+
};
|
|
3403
|
+
/** @description The request named the reciter in a non-canonical form, or a merged duplicate record. `Location` is the canonical URL of the reciter, with the same query string. */
|
|
3404
|
+
301: {
|
|
3405
|
+
headers: {
|
|
3406
|
+
[name: string]: unknown;
|
|
3407
|
+
};
|
|
3408
|
+
content?: never;
|
|
3409
|
+
};
|
|
3410
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
3411
|
+
400: {
|
|
3412
|
+
headers: {
|
|
3413
|
+
[name: string]: unknown;
|
|
3414
|
+
};
|
|
3415
|
+
content: {
|
|
3416
|
+
"application/json": components["schemas"]["Error"];
|
|
3417
|
+
};
|
|
3418
|
+
};
|
|
3419
|
+
/** @description Not found */
|
|
3420
|
+
404: {
|
|
3421
|
+
headers: {
|
|
3422
|
+
[name: string]: unknown;
|
|
3423
|
+
};
|
|
3424
|
+
content: {
|
|
3425
|
+
"application/json": components["schemas"]["Error"];
|
|
3426
|
+
};
|
|
3427
|
+
};
|
|
3428
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3429
|
+
429: {
|
|
3430
|
+
headers: {
|
|
3431
|
+
[name: string]: unknown;
|
|
3432
|
+
};
|
|
3433
|
+
content: {
|
|
3434
|
+
"application/json": components["schemas"]["Error"];
|
|
3435
|
+
};
|
|
3436
|
+
};
|
|
3437
|
+
};
|
|
3438
|
+
};
|
|
3439
|
+
listRiwayahs: {
|
|
3440
|
+
parameters: {
|
|
3441
|
+
query?: {
|
|
3442
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
3443
|
+
all?: components["parameters"]["All"];
|
|
3444
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
3445
|
+
cursor?: components["parameters"]["Cursor"];
|
|
3446
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
3447
|
+
limit?: components["parameters"]["Limit"];
|
|
3448
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3449
|
+
locale?: components["parameters"]["Locale"];
|
|
3450
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
3451
|
+
sort?: components["parameters"]["RiwayahSort"];
|
|
3452
|
+
};
|
|
3453
|
+
header?: never;
|
|
3454
|
+
path?: never;
|
|
3455
|
+
cookie?: never;
|
|
3456
|
+
};
|
|
3457
|
+
requestBody?: never;
|
|
3458
|
+
responses: {
|
|
3459
|
+
/** @description OK */
|
|
3460
|
+
200: {
|
|
3461
|
+
headers: {
|
|
3462
|
+
[name: string]: unknown;
|
|
3463
|
+
};
|
|
3464
|
+
content: {
|
|
3465
|
+
"application/json": {
|
|
3466
|
+
data: components["schemas"]["Riwayah"][];
|
|
3467
|
+
links: components["schemas"]["PageLinks"];
|
|
3468
|
+
meta: components["schemas"]["Meta"];
|
|
3469
|
+
};
|
|
3470
|
+
};
|
|
3471
|
+
};
|
|
3472
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
3473
|
+
400: {
|
|
3474
|
+
headers: {
|
|
3475
|
+
[name: string]: unknown;
|
|
3476
|
+
};
|
|
3477
|
+
content: {
|
|
3478
|
+
"application/json": components["schemas"]["Error"];
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3481
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3482
|
+
429: {
|
|
3483
|
+
headers: {
|
|
3484
|
+
[name: string]: unknown;
|
|
3485
|
+
};
|
|
3486
|
+
content: {
|
|
3487
|
+
"application/json": components["schemas"]["Error"];
|
|
3488
|
+
};
|
|
3489
|
+
};
|
|
3490
|
+
};
|
|
3491
|
+
};
|
|
3492
|
+
getRiwayah: {
|
|
3493
|
+
parameters: {
|
|
3494
|
+
query?: {
|
|
3495
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3496
|
+
locale?: components["parameters"]["Locale"];
|
|
3497
|
+
};
|
|
3498
|
+
header?: never;
|
|
3499
|
+
path: {
|
|
3500
|
+
/**
|
|
3501
|
+
* @description The code of a riwayah, for example `hafs_an_asim`.
|
|
3502
|
+
* @example hafs_an_asim
|
|
3503
|
+
*/
|
|
3504
|
+
code: components["parameters"]["RiwayahCode"];
|
|
3505
|
+
};
|
|
3506
|
+
cookie?: never;
|
|
3507
|
+
};
|
|
3508
|
+
requestBody?: never;
|
|
3509
|
+
responses: {
|
|
3510
|
+
/** @description OK */
|
|
3511
|
+
200: {
|
|
3512
|
+
headers: {
|
|
3513
|
+
[name: string]: unknown;
|
|
3514
|
+
};
|
|
3515
|
+
content: {
|
|
3516
|
+
"application/json": {
|
|
3517
|
+
data: components["schemas"]["Riwayah"];
|
|
3518
|
+
meta: components["schemas"]["Meta"];
|
|
3519
|
+
};
|
|
3520
|
+
};
|
|
3521
|
+
};
|
|
3522
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
3523
|
+
400: {
|
|
3524
|
+
headers: {
|
|
3525
|
+
[name: string]: unknown;
|
|
3526
|
+
};
|
|
3527
|
+
content: {
|
|
3528
|
+
"application/json": components["schemas"]["Error"];
|
|
3529
|
+
};
|
|
3530
|
+
};
|
|
3531
|
+
/** @description No riwayah with that code */
|
|
3532
|
+
404: {
|
|
3533
|
+
headers: {
|
|
3534
|
+
[name: string]: unknown;
|
|
3535
|
+
};
|
|
3536
|
+
content: {
|
|
3537
|
+
"application/json": components["schemas"]["Error"];
|
|
3538
|
+
};
|
|
3539
|
+
};
|
|
3540
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3541
|
+
429: {
|
|
3542
|
+
headers: {
|
|
3543
|
+
[name: string]: unknown;
|
|
3544
|
+
};
|
|
3545
|
+
content: {
|
|
3546
|
+
"application/json": components["schemas"]["Error"];
|
|
3547
|
+
};
|
|
3548
|
+
};
|
|
3549
|
+
};
|
|
3550
|
+
};
|
|
3551
|
+
search: {
|
|
3552
|
+
parameters: {
|
|
3553
|
+
query: {
|
|
3554
|
+
/** @description A two-letter ISO 3166-1 country code, for example `SA`; keeps only the reciters from that country. */
|
|
3555
|
+
country?: components["parameters"]["Country"];
|
|
3556
|
+
/** @description The maximum number of hits per kind, from 1 to 50; defaults to 10. */
|
|
3557
|
+
limit?: components["parameters"]["SearchLimit"];
|
|
3558
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3559
|
+
locale?: components["parameters"]["Locale"];
|
|
3560
|
+
/**
|
|
3561
|
+
* @description The text to search for, 1 to 120 characters; it ignores diacritics and hamza differences and tolerates misspellings.
|
|
3562
|
+
* @example hussary
|
|
3563
|
+
*/
|
|
3564
|
+
q: components["parameters"]["SearchQ"];
|
|
3565
|
+
/** @description The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. Other spellings of a code, and its numeric ID, are accepted too. */
|
|
3566
|
+
riwayah?: components["parameters"]["Riwayah"];
|
|
3567
|
+
/** @description A comma-separated list of the kinds to search; defaults to all four. */
|
|
3568
|
+
type?: components["parameters"]["SearchKinds"];
|
|
3569
|
+
};
|
|
3570
|
+
header?: never;
|
|
3571
|
+
path?: never;
|
|
3572
|
+
cookie?: never;
|
|
3573
|
+
};
|
|
3574
|
+
requestBody?: never;
|
|
3575
|
+
responses: {
|
|
3576
|
+
/** @description OK */
|
|
3577
|
+
200: {
|
|
3578
|
+
headers: {
|
|
3579
|
+
[name: string]: unknown;
|
|
3580
|
+
};
|
|
3581
|
+
content: {
|
|
3582
|
+
"application/json": {
|
|
3583
|
+
data: components["schemas"]["SearchHits"];
|
|
3584
|
+
meta: components["schemas"]["SearchMeta"];
|
|
3585
|
+
};
|
|
3586
|
+
};
|
|
3587
|
+
};
|
|
3588
|
+
/** @description Missing or empty `q`, an unknown `type`, or an unknown query parameter */
|
|
3589
|
+
400: {
|
|
3590
|
+
headers: {
|
|
3591
|
+
[name: string]: unknown;
|
|
3592
|
+
};
|
|
3593
|
+
content: {
|
|
3594
|
+
"application/json": components["schemas"]["Error"];
|
|
3595
|
+
};
|
|
3596
|
+
};
|
|
3597
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3598
|
+
429: {
|
|
3599
|
+
headers: {
|
|
3600
|
+
[name: string]: unknown;
|
|
3601
|
+
};
|
|
3602
|
+
content: {
|
|
3603
|
+
"application/json": components["schemas"]["Error"];
|
|
3604
|
+
};
|
|
3605
|
+
};
|
|
3606
|
+
};
|
|
3607
|
+
};
|
|
3608
|
+
listSpokenTranslations: {
|
|
3609
|
+
parameters: {
|
|
3610
|
+
query?: {
|
|
3611
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
3612
|
+
all?: components["parameters"]["All"];
|
|
3613
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
3614
|
+
cursor?: components["parameters"]["Cursor"];
|
|
3615
|
+
/** @description An ISO 639-1 language code, for example `en`; keeps only the items whose audio is in that language. */
|
|
3616
|
+
language?: components["parameters"]["Language"];
|
|
3617
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
3618
|
+
limit?: components["parameters"]["Limit"];
|
|
3619
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3620
|
+
locale?: components["parameters"]["Locale"];
|
|
3621
|
+
/** @description The code, numeric ID or slug of a reciter, in any case, for example `mahmoud-husary`; keeps only that reciter's items. */
|
|
3622
|
+
reciter?: components["parameters"]["Reciter"];
|
|
3623
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
3624
|
+
sort?: components["parameters"]["SpokenTranslationSort"];
|
|
3625
|
+
};
|
|
3626
|
+
header?: never;
|
|
3627
|
+
path?: never;
|
|
3628
|
+
cookie?: never;
|
|
3629
|
+
};
|
|
3630
|
+
requestBody?: never;
|
|
3631
|
+
responses: {
|
|
3632
|
+
/** @description OK */
|
|
3633
|
+
200: {
|
|
3634
|
+
headers: {
|
|
3635
|
+
[name: string]: unknown;
|
|
3636
|
+
};
|
|
3637
|
+
content: {
|
|
3638
|
+
"application/json": {
|
|
3639
|
+
data: components["schemas"]["SpokenTranslation"][];
|
|
3640
|
+
links: components["schemas"]["PageLinks"];
|
|
3641
|
+
meta: components["schemas"]["Meta"];
|
|
3642
|
+
};
|
|
3643
|
+
};
|
|
3644
|
+
};
|
|
3645
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
3646
|
+
400: {
|
|
3647
|
+
headers: {
|
|
3648
|
+
[name: string]: unknown;
|
|
3649
|
+
};
|
|
3650
|
+
content: {
|
|
3651
|
+
"application/json": components["schemas"]["Error"];
|
|
3652
|
+
};
|
|
3653
|
+
};
|
|
3654
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3655
|
+
429: {
|
|
3656
|
+
headers: {
|
|
3657
|
+
[name: string]: unknown;
|
|
3658
|
+
};
|
|
3659
|
+
content: {
|
|
3660
|
+
"application/json": components["schemas"]["Error"];
|
|
3661
|
+
};
|
|
3662
|
+
};
|
|
3663
|
+
};
|
|
3664
|
+
};
|
|
3665
|
+
getSpokenTranslation: {
|
|
3666
|
+
parameters: {
|
|
3667
|
+
query?: {
|
|
3668
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3669
|
+
locale?: components["parameters"]["Locale"];
|
|
3670
|
+
};
|
|
3671
|
+
header?: never;
|
|
3672
|
+
path: {
|
|
3673
|
+
/**
|
|
3674
|
+
* @description The code of a spoken translation, for example `ha`.
|
|
3675
|
+
* @example ha
|
|
3676
|
+
*/
|
|
3677
|
+
code: components["parameters"]["SpokenTranslationCode"];
|
|
3678
|
+
};
|
|
3679
|
+
cookie?: never;
|
|
3680
|
+
};
|
|
3681
|
+
requestBody?: never;
|
|
3682
|
+
responses: {
|
|
3683
|
+
/** @description OK */
|
|
3684
|
+
200: {
|
|
3685
|
+
headers: {
|
|
3686
|
+
[name: string]: unknown;
|
|
3687
|
+
};
|
|
3688
|
+
content: {
|
|
3689
|
+
"application/json": {
|
|
3690
|
+
data: components["schemas"]["SpokenTranslation"];
|
|
3691
|
+
meta: components["schemas"]["Meta"];
|
|
3692
|
+
};
|
|
3693
|
+
};
|
|
3694
|
+
};
|
|
3695
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
3696
|
+
400: {
|
|
3697
|
+
headers: {
|
|
3698
|
+
[name: string]: unknown;
|
|
3699
|
+
};
|
|
3700
|
+
content: {
|
|
3701
|
+
"application/json": components["schemas"]["Error"];
|
|
3702
|
+
};
|
|
3703
|
+
};
|
|
3704
|
+
/** @description No spoken translation with that code */
|
|
3705
|
+
404: {
|
|
3706
|
+
headers: {
|
|
3707
|
+
[name: string]: unknown;
|
|
3708
|
+
};
|
|
3709
|
+
content: {
|
|
3710
|
+
"application/json": components["schemas"]["Error"];
|
|
3711
|
+
};
|
|
3712
|
+
};
|
|
3713
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3714
|
+
429: {
|
|
3715
|
+
headers: {
|
|
3716
|
+
[name: string]: unknown;
|
|
3717
|
+
};
|
|
3718
|
+
content: {
|
|
3719
|
+
"application/json": components["schemas"]["Error"];
|
|
3720
|
+
};
|
|
3721
|
+
};
|
|
3722
|
+
};
|
|
3723
|
+
};
|
|
3724
|
+
listSurahs: {
|
|
3725
|
+
parameters: {
|
|
3726
|
+
query?: {
|
|
3727
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
3728
|
+
all?: components["parameters"]["All"];
|
|
3729
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
3730
|
+
cursor?: components["parameters"]["Cursor"];
|
|
3731
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
3732
|
+
limit?: components["parameters"]["Limit"];
|
|
3733
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3734
|
+
locale?: components["parameters"]["Locale"];
|
|
3735
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
3736
|
+
sort?: components["parameters"]["SurahSort"];
|
|
3737
|
+
};
|
|
3738
|
+
header?: never;
|
|
3739
|
+
path?: never;
|
|
3740
|
+
cookie?: never;
|
|
3741
|
+
};
|
|
3742
|
+
requestBody?: never;
|
|
3743
|
+
responses: {
|
|
3744
|
+
/** @description OK */
|
|
3745
|
+
200: {
|
|
3746
|
+
headers: {
|
|
3747
|
+
[name: string]: unknown;
|
|
3748
|
+
};
|
|
3749
|
+
content: {
|
|
3750
|
+
"application/json": {
|
|
3751
|
+
data: components["schemas"]["Surah"][];
|
|
3752
|
+
links: components["schemas"]["PageLinks"];
|
|
3753
|
+
meta: components["schemas"]["Meta"];
|
|
3754
|
+
};
|
|
3755
|
+
};
|
|
3756
|
+
};
|
|
3757
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
3758
|
+
400: {
|
|
3759
|
+
headers: {
|
|
3760
|
+
[name: string]: unknown;
|
|
3761
|
+
};
|
|
3762
|
+
content: {
|
|
3763
|
+
"application/json": components["schemas"]["Error"];
|
|
3764
|
+
};
|
|
3765
|
+
};
|
|
3766
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3767
|
+
429: {
|
|
3768
|
+
headers: {
|
|
3769
|
+
[name: string]: unknown;
|
|
3770
|
+
};
|
|
3771
|
+
content: {
|
|
3772
|
+
"application/json": components["schemas"]["Error"];
|
|
3773
|
+
};
|
|
3774
|
+
};
|
|
3775
|
+
};
|
|
3776
|
+
};
|
|
3777
|
+
getSurah: {
|
|
3778
|
+
parameters: {
|
|
3779
|
+
query?: {
|
|
3780
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3781
|
+
locale?: components["parameters"]["Locale"];
|
|
3782
|
+
};
|
|
3783
|
+
header?: never;
|
|
3784
|
+
path: {
|
|
3785
|
+
/**
|
|
3786
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
3787
|
+
* @example 4
|
|
3788
|
+
*/
|
|
3789
|
+
number: components["parameters"]["SurahPathNumber"];
|
|
3790
|
+
};
|
|
3791
|
+
cookie?: never;
|
|
3792
|
+
};
|
|
3793
|
+
requestBody?: never;
|
|
3794
|
+
responses: {
|
|
3795
|
+
/** @description OK */
|
|
3796
|
+
200: {
|
|
3797
|
+
headers: {
|
|
3798
|
+
[name: string]: unknown;
|
|
3799
|
+
};
|
|
3800
|
+
content: {
|
|
3801
|
+
"application/json": {
|
|
3802
|
+
data: components["schemas"]["Surah"];
|
|
3803
|
+
meta: components["schemas"]["Meta"];
|
|
3804
|
+
};
|
|
3805
|
+
};
|
|
3806
|
+
};
|
|
3807
|
+
/** @description Unknown query parameter, or an invalid `locale` */
|
|
3808
|
+
400: {
|
|
3809
|
+
headers: {
|
|
3810
|
+
[name: string]: unknown;
|
|
3811
|
+
};
|
|
3812
|
+
content: {
|
|
3813
|
+
"application/json": components["schemas"]["Error"];
|
|
3814
|
+
};
|
|
3815
|
+
};
|
|
3816
|
+
/** @description No surah with that number */
|
|
3817
|
+
404: {
|
|
3818
|
+
headers: {
|
|
3819
|
+
[name: string]: unknown;
|
|
3820
|
+
};
|
|
3821
|
+
content: {
|
|
3822
|
+
"application/json": components["schemas"]["Error"];
|
|
3823
|
+
};
|
|
3824
|
+
};
|
|
3825
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3826
|
+
429: {
|
|
3827
|
+
headers: {
|
|
3828
|
+
[name: string]: unknown;
|
|
3829
|
+
};
|
|
3830
|
+
content: {
|
|
3831
|
+
"application/json": components["schemas"]["Error"];
|
|
3832
|
+
};
|
|
3833
|
+
};
|
|
3834
|
+
};
|
|
3835
|
+
};
|
|
3836
|
+
getSurahText: {
|
|
3837
|
+
parameters: {
|
|
3838
|
+
query?: {
|
|
3839
|
+
/** @description An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. */
|
|
3840
|
+
ayah?: components["parameters"]["Ayah"];
|
|
3841
|
+
/** @description Whose ayah numbers and word positions a surah's text follows: `own` (the default), those of the riwayah's own mushaf, or `hafs`, those of the Hafs text. */
|
|
3842
|
+
coordinates?: components["parameters"]["Coordinates"];
|
|
3843
|
+
/** @description The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. Other spellings of a code, and its numeric ID, are accepted too. */
|
|
3844
|
+
riwayah?: components["parameters"]["Riwayah"];
|
|
3845
|
+
};
|
|
3846
|
+
header?: never;
|
|
3847
|
+
path: {
|
|
3848
|
+
/**
|
|
3849
|
+
* @description The surah number, from 1 to 114, for example `4`.
|
|
3850
|
+
* @example 4
|
|
3851
|
+
*/
|
|
3852
|
+
number: components["parameters"]["SurahPathNumber"];
|
|
3853
|
+
};
|
|
3854
|
+
cookie?: never;
|
|
3855
|
+
};
|
|
3856
|
+
requestBody?: never;
|
|
3857
|
+
responses: {
|
|
3858
|
+
/** @description OK */
|
|
3859
|
+
200: {
|
|
3860
|
+
headers: {
|
|
3861
|
+
[name: string]: unknown;
|
|
3862
|
+
};
|
|
3863
|
+
content: {
|
|
3864
|
+
"application/json": {
|
|
3865
|
+
data: components["schemas"]["SurahText"];
|
|
3866
|
+
meta: components["schemas"]["Meta"];
|
|
3867
|
+
};
|
|
3868
|
+
};
|
|
3869
|
+
};
|
|
3870
|
+
/** @description Unknown query parameter, an unknown `riwayah` code, a `coordinates` other than `own` or `hafs`, or an `ayah` that is not a number or range within the surah */
|
|
3871
|
+
400: {
|
|
3872
|
+
headers: {
|
|
3873
|
+
[name: string]: unknown;
|
|
3874
|
+
};
|
|
3875
|
+
content: {
|
|
3876
|
+
"application/json": components["schemas"]["Error"];
|
|
3877
|
+
};
|
|
3878
|
+
};
|
|
3879
|
+
/** @description No surah with that number, or its text is not available in that riwayah */
|
|
3880
|
+
404: {
|
|
3881
|
+
headers: {
|
|
3882
|
+
[name: string]: unknown;
|
|
3883
|
+
};
|
|
3884
|
+
content: {
|
|
3885
|
+
"application/json": components["schemas"]["Error"];
|
|
3886
|
+
};
|
|
3887
|
+
};
|
|
3888
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3889
|
+
429: {
|
|
3890
|
+
headers: {
|
|
3891
|
+
[name: string]: unknown;
|
|
3892
|
+
};
|
|
3893
|
+
content: {
|
|
3894
|
+
"application/json": components["schemas"]["Error"];
|
|
3895
|
+
};
|
|
3896
|
+
};
|
|
3897
|
+
};
|
|
3898
|
+
};
|
|
3899
|
+
listTafsirs: {
|
|
3900
|
+
parameters: {
|
|
3901
|
+
query?: {
|
|
3902
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
3903
|
+
all?: components["parameters"]["All"];
|
|
3904
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
3905
|
+
cursor?: components["parameters"]["Cursor"];
|
|
3906
|
+
/** @description An ISO 639-1 language code, for example `en`; keeps only the items whose audio is in that language. */
|
|
3907
|
+
language?: components["parameters"]["Language"];
|
|
3908
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
3909
|
+
limit?: components["parameters"]["Limit"];
|
|
3910
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3911
|
+
locale?: components["parameters"]["Locale"];
|
|
3912
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
3913
|
+
sort?: components["parameters"]["TafsirSort"];
|
|
3914
|
+
};
|
|
3915
|
+
header?: never;
|
|
3916
|
+
path?: never;
|
|
3917
|
+
cookie?: never;
|
|
3918
|
+
};
|
|
3919
|
+
requestBody?: never;
|
|
3920
|
+
responses: {
|
|
3921
|
+
/** @description OK */
|
|
3922
|
+
200: {
|
|
3923
|
+
headers: {
|
|
3924
|
+
[name: string]: unknown;
|
|
3925
|
+
};
|
|
3926
|
+
content: {
|
|
3927
|
+
"application/json": {
|
|
3928
|
+
data: components["schemas"]["Tafsir"][];
|
|
3929
|
+
links: components["schemas"]["PageLinks"];
|
|
3930
|
+
meta: components["schemas"]["Meta"];
|
|
3931
|
+
};
|
|
3932
|
+
};
|
|
3933
|
+
};
|
|
3934
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
3935
|
+
400: {
|
|
3936
|
+
headers: {
|
|
3937
|
+
[name: string]: unknown;
|
|
3938
|
+
};
|
|
3939
|
+
content: {
|
|
3940
|
+
"application/json": components["schemas"]["Error"];
|
|
3941
|
+
};
|
|
3942
|
+
};
|
|
3943
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
3944
|
+
429: {
|
|
3945
|
+
headers: {
|
|
3946
|
+
[name: string]: unknown;
|
|
3947
|
+
};
|
|
3948
|
+
content: {
|
|
3949
|
+
"application/json": components["schemas"]["Error"];
|
|
3950
|
+
};
|
|
3951
|
+
};
|
|
3952
|
+
};
|
|
3953
|
+
};
|
|
3954
|
+
getTafsir: {
|
|
3955
|
+
parameters: {
|
|
3956
|
+
query?: {
|
|
3957
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
3958
|
+
locale?: components["parameters"]["Locale"];
|
|
3959
|
+
};
|
|
3960
|
+
header?: never;
|
|
3961
|
+
path: {
|
|
3962
|
+
/**
|
|
3963
|
+
* @description The numeric ID of a tafsir, for example `1`.
|
|
3964
|
+
* @example 1
|
|
3965
|
+
*/
|
|
3966
|
+
id: components["parameters"]["TafsirId"];
|
|
3967
|
+
};
|
|
3968
|
+
cookie?: never;
|
|
3969
|
+
};
|
|
3970
|
+
requestBody?: never;
|
|
3971
|
+
responses: {
|
|
3972
|
+
/** @description OK */
|
|
3973
|
+
200: {
|
|
3974
|
+
headers: {
|
|
3975
|
+
[name: string]: unknown;
|
|
3976
|
+
};
|
|
3977
|
+
content: {
|
|
3978
|
+
"application/json": {
|
|
3979
|
+
data: components["schemas"]["Tafsir"];
|
|
3980
|
+
meta: components["schemas"]["Meta"];
|
|
3981
|
+
};
|
|
3982
|
+
};
|
|
3983
|
+
};
|
|
3984
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
3985
|
+
400: {
|
|
3986
|
+
headers: {
|
|
3987
|
+
[name: string]: unknown;
|
|
3988
|
+
};
|
|
3989
|
+
content: {
|
|
3990
|
+
"application/json": components["schemas"]["Error"];
|
|
3991
|
+
};
|
|
3992
|
+
};
|
|
3993
|
+
/** @description No tafsir with that id */
|
|
3994
|
+
404: {
|
|
3995
|
+
headers: {
|
|
3996
|
+
[name: string]: unknown;
|
|
3997
|
+
};
|
|
3998
|
+
content: {
|
|
3999
|
+
"application/json": components["schemas"]["Error"];
|
|
4000
|
+
};
|
|
4001
|
+
};
|
|
4002
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
4003
|
+
429: {
|
|
4004
|
+
headers: {
|
|
4005
|
+
[name: string]: unknown;
|
|
4006
|
+
};
|
|
4007
|
+
content: {
|
|
4008
|
+
"application/json": components["schemas"]["Error"];
|
|
4009
|
+
};
|
|
4010
|
+
};
|
|
4011
|
+
};
|
|
4012
|
+
};
|
|
4013
|
+
listTafsirItems: {
|
|
4014
|
+
parameters: {
|
|
4015
|
+
query?: {
|
|
4016
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
4017
|
+
all?: components["parameters"]["All"];
|
|
4018
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
4019
|
+
cursor?: components["parameters"]["Cursor"];
|
|
4020
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
4021
|
+
limit?: components["parameters"]["Limit"];
|
|
4022
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
4023
|
+
locale?: components["parameters"]["Locale"];
|
|
4024
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
4025
|
+
sort?: components["parameters"]["TafsirItemSort"];
|
|
4026
|
+
/** @description A surah number from 1 to 114; keeps only the items of that surah. */
|
|
4027
|
+
surah?: components["parameters"]["Surah"];
|
|
4028
|
+
};
|
|
4029
|
+
header?: never;
|
|
4030
|
+
path: {
|
|
4031
|
+
/**
|
|
4032
|
+
* @description The numeric ID of a tafsir, for example `1`.
|
|
4033
|
+
* @example 1
|
|
4034
|
+
*/
|
|
4035
|
+
id: components["parameters"]["TafsirId"];
|
|
4036
|
+
};
|
|
4037
|
+
cookie?: never;
|
|
4038
|
+
};
|
|
4039
|
+
requestBody?: never;
|
|
4040
|
+
responses: {
|
|
4041
|
+
/** @description OK */
|
|
4042
|
+
200: {
|
|
4043
|
+
headers: {
|
|
4044
|
+
[name: string]: unknown;
|
|
4045
|
+
};
|
|
4046
|
+
content: {
|
|
4047
|
+
"application/json": {
|
|
4048
|
+
data: components["schemas"]["TafsirItem"][];
|
|
4049
|
+
links: components["schemas"]["PageLinks"];
|
|
4050
|
+
meta: components["schemas"]["Meta"];
|
|
4051
|
+
};
|
|
4052
|
+
};
|
|
4053
|
+
};
|
|
4054
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
4055
|
+
400: {
|
|
4056
|
+
headers: {
|
|
4057
|
+
[name: string]: unknown;
|
|
4058
|
+
};
|
|
4059
|
+
content: {
|
|
4060
|
+
"application/json": components["schemas"]["Error"];
|
|
4061
|
+
};
|
|
4062
|
+
};
|
|
4063
|
+
/** @description No tafsir with that id */
|
|
4064
|
+
404: {
|
|
4065
|
+
headers: {
|
|
4066
|
+
[name: string]: unknown;
|
|
4067
|
+
};
|
|
4068
|
+
content: {
|
|
4069
|
+
"application/json": components["schemas"]["Error"];
|
|
4070
|
+
};
|
|
4071
|
+
};
|
|
4072
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
4073
|
+
429: {
|
|
4074
|
+
headers: {
|
|
4075
|
+
[name: string]: unknown;
|
|
4076
|
+
};
|
|
4077
|
+
content: {
|
|
4078
|
+
"application/json": components["schemas"]["Error"];
|
|
4079
|
+
};
|
|
4080
|
+
};
|
|
4081
|
+
};
|
|
4082
|
+
};
|
|
4083
|
+
listTimingReleases: {
|
|
4084
|
+
parameters: {
|
|
4085
|
+
query?: {
|
|
4086
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
4087
|
+
all?: components["parameters"]["All"];
|
|
4088
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
4089
|
+
cursor?: components["parameters"]["Cursor"];
|
|
4090
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
4091
|
+
limit?: components["parameters"]["Limit"];
|
|
4092
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
4093
|
+
sort?: components["parameters"]["TimingReleaseSort"];
|
|
4094
|
+
};
|
|
4095
|
+
header?: never;
|
|
4096
|
+
path?: never;
|
|
4097
|
+
cookie?: never;
|
|
4098
|
+
};
|
|
4099
|
+
requestBody?: never;
|
|
4100
|
+
responses: {
|
|
4101
|
+
/** @description OK */
|
|
4102
|
+
200: {
|
|
4103
|
+
headers: {
|
|
4104
|
+
[name: string]: unknown;
|
|
4105
|
+
};
|
|
4106
|
+
content: {
|
|
4107
|
+
"application/json": {
|
|
4108
|
+
data: components["schemas"]["TimingRelease"][];
|
|
4109
|
+
links: components["schemas"]["PageLinks"];
|
|
4110
|
+
meta: components["schemas"]["Meta"];
|
|
4111
|
+
};
|
|
4112
|
+
};
|
|
4113
|
+
};
|
|
4114
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
4115
|
+
400: {
|
|
4116
|
+
headers: {
|
|
4117
|
+
[name: string]: unknown;
|
|
4118
|
+
};
|
|
4119
|
+
content: {
|
|
4120
|
+
"application/json": components["schemas"]["Error"];
|
|
4121
|
+
};
|
|
4122
|
+
};
|
|
4123
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
4124
|
+
429: {
|
|
4125
|
+
headers: {
|
|
4126
|
+
[name: string]: unknown;
|
|
4127
|
+
};
|
|
4128
|
+
content: {
|
|
4129
|
+
"application/json": components["schemas"]["Error"];
|
|
4130
|
+
};
|
|
4131
|
+
};
|
|
4132
|
+
};
|
|
4133
|
+
};
|
|
4134
|
+
getTimingRelease: {
|
|
4135
|
+
parameters: {
|
|
4136
|
+
query?: never;
|
|
4137
|
+
header?: never;
|
|
4138
|
+
path: {
|
|
4139
|
+
/**
|
|
4140
|
+
* @description The name of a timing release, in `YYYY.MM.N` form, for example `2026.09.1`.
|
|
4141
|
+
* @example 2026.09.1
|
|
4142
|
+
*/
|
|
4143
|
+
release: components["parameters"]["ReleaseName"];
|
|
4144
|
+
};
|
|
4145
|
+
cookie?: never;
|
|
4146
|
+
};
|
|
4147
|
+
requestBody?: never;
|
|
4148
|
+
responses: {
|
|
4149
|
+
/** @description OK */
|
|
4150
|
+
200: {
|
|
4151
|
+
headers: {
|
|
4152
|
+
[name: string]: unknown;
|
|
4153
|
+
};
|
|
4154
|
+
content: {
|
|
4155
|
+
"application/json": {
|
|
4156
|
+
data: components["schemas"]["TimingRelease"];
|
|
4157
|
+
meta: components["schemas"]["Meta"];
|
|
4158
|
+
};
|
|
4159
|
+
};
|
|
4160
|
+
};
|
|
4161
|
+
/** @description Unknown query parameter */
|
|
4162
|
+
400: {
|
|
4163
|
+
headers: {
|
|
4164
|
+
[name: string]: unknown;
|
|
4165
|
+
};
|
|
4166
|
+
content: {
|
|
4167
|
+
"application/json": components["schemas"]["Error"];
|
|
4168
|
+
};
|
|
4169
|
+
};
|
|
4170
|
+
/** @description No release has that name */
|
|
4171
|
+
404: {
|
|
4172
|
+
headers: {
|
|
4173
|
+
[name: string]: unknown;
|
|
4174
|
+
};
|
|
4175
|
+
content: {
|
|
4176
|
+
"application/json": components["schemas"]["Error"];
|
|
4177
|
+
};
|
|
4178
|
+
};
|
|
4179
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
4180
|
+
429: {
|
|
4181
|
+
headers: {
|
|
4182
|
+
[name: string]: unknown;
|
|
4183
|
+
};
|
|
4184
|
+
content: {
|
|
4185
|
+
"application/json": components["schemas"]["Error"];
|
|
4186
|
+
};
|
|
4187
|
+
};
|
|
4188
|
+
};
|
|
4189
|
+
};
|
|
4190
|
+
listTvChannels: {
|
|
4191
|
+
parameters: {
|
|
4192
|
+
query?: {
|
|
4193
|
+
/** @description If true, returns every item in one response, without a page limit. */
|
|
4194
|
+
all?: components["parameters"]["All"];
|
|
4195
|
+
/** @description The opaque cursor from `links.next` of the previous page. */
|
|
4196
|
+
cursor?: components["parameters"]["Cursor"];
|
|
4197
|
+
/** @description The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. */
|
|
4198
|
+
limit?: components["parameters"]["Limit"];
|
|
4199
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
4200
|
+
locale?: components["parameters"]["Locale"];
|
|
4201
|
+
/** @description A sort key, with a leading `-` for descending order; the default is on the route. */
|
|
4202
|
+
sort?: components["parameters"]["TvSort"];
|
|
4203
|
+
};
|
|
4204
|
+
header?: never;
|
|
4205
|
+
path?: never;
|
|
4206
|
+
cookie?: never;
|
|
4207
|
+
};
|
|
4208
|
+
requestBody?: never;
|
|
4209
|
+
responses: {
|
|
4210
|
+
/** @description OK */
|
|
4211
|
+
200: {
|
|
4212
|
+
headers: {
|
|
4213
|
+
[name: string]: unknown;
|
|
4214
|
+
};
|
|
4215
|
+
content: {
|
|
4216
|
+
"application/json": {
|
|
4217
|
+
data: components["schemas"]["TvChannel"][];
|
|
4218
|
+
links: components["schemas"]["PageLinks"];
|
|
4219
|
+
meta: components["schemas"]["Meta"];
|
|
4220
|
+
};
|
|
4221
|
+
};
|
|
4222
|
+
};
|
|
4223
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
4224
|
+
400: {
|
|
4225
|
+
headers: {
|
|
4226
|
+
[name: string]: unknown;
|
|
4227
|
+
};
|
|
4228
|
+
content: {
|
|
4229
|
+
"application/json": components["schemas"]["Error"];
|
|
4230
|
+
};
|
|
4231
|
+
};
|
|
4232
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
4233
|
+
429: {
|
|
4234
|
+
headers: {
|
|
4235
|
+
[name: string]: unknown;
|
|
4236
|
+
};
|
|
4237
|
+
content: {
|
|
4238
|
+
"application/json": components["schemas"]["Error"];
|
|
4239
|
+
};
|
|
4240
|
+
};
|
|
4241
|
+
};
|
|
4242
|
+
};
|
|
4243
|
+
getTvChannel: {
|
|
4244
|
+
parameters: {
|
|
4245
|
+
query?: {
|
|
4246
|
+
/** @description The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. */
|
|
4247
|
+
locale?: components["parameters"]["Locale"];
|
|
4248
|
+
};
|
|
4249
|
+
header?: never;
|
|
4250
|
+
path: {
|
|
4251
|
+
/**
|
|
4252
|
+
* @description The numeric ID of a TV channel, for example `1`.
|
|
4253
|
+
* @example 1
|
|
4254
|
+
*/
|
|
4255
|
+
id: components["parameters"]["TvChannelId"];
|
|
4256
|
+
};
|
|
4257
|
+
cookie?: never;
|
|
4258
|
+
};
|
|
4259
|
+
requestBody?: never;
|
|
4260
|
+
responses: {
|
|
4261
|
+
/** @description OK */
|
|
4262
|
+
200: {
|
|
4263
|
+
headers: {
|
|
4264
|
+
[name: string]: unknown;
|
|
4265
|
+
};
|
|
4266
|
+
content: {
|
|
4267
|
+
"application/json": {
|
|
4268
|
+
data: components["schemas"]["TvChannel"];
|
|
4269
|
+
meta: components["schemas"]["Meta"];
|
|
4270
|
+
};
|
|
4271
|
+
};
|
|
4272
|
+
};
|
|
4273
|
+
/** @description Unknown query parameter, or an invalid parameter value */
|
|
4274
|
+
400: {
|
|
4275
|
+
headers: {
|
|
4276
|
+
[name: string]: unknown;
|
|
4277
|
+
};
|
|
4278
|
+
content: {
|
|
4279
|
+
"application/json": components["schemas"]["Error"];
|
|
4280
|
+
};
|
|
4281
|
+
};
|
|
4282
|
+
/** @description No TV channel with that id */
|
|
4283
|
+
404: {
|
|
4284
|
+
headers: {
|
|
4285
|
+
[name: string]: unknown;
|
|
4286
|
+
};
|
|
4287
|
+
content: {
|
|
4288
|
+
"application/json": components["schemas"]["Error"];
|
|
4289
|
+
};
|
|
4290
|
+
};
|
|
4291
|
+
/** @description Too many requests; wait for the number of seconds in `Retry-After` */
|
|
4292
|
+
429: {
|
|
4293
|
+
headers: {
|
|
4294
|
+
[name: string]: unknown;
|
|
4295
|
+
};
|
|
4296
|
+
content: {
|
|
4297
|
+
"application/json": components["schemas"]["Error"];
|
|
4298
|
+
};
|
|
4299
|
+
};
|
|
4300
|
+
};
|
|
4301
|
+
};
|
|
4302
|
+
}
|