waha-shared 1.0.332 → 1.0.335

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/data/bibleAudios/bibleAudios.json +10 -0
  2. package/dist/data/bibleStatuses/bibleStatuses.json +32 -2013
  3. package/dist/data/bibleTexts/bibleTexts.json +10 -0
  4. package/dist/data/languageAssets/index.d.ts +1 -0
  5. package/dist/data/languageAssets/index.js +7 -0
  6. package/dist/data/languageAssets/languageAssets.json +44404 -0
  7. package/dist/data/languageAssets/languageAssets.schema.json +19 -0
  8. package/dist/data/languageAssets/languageAssets.zod.d.ts +3 -0
  9. package/dist/data/languageAssets/languageAssets.zod.js +7 -0
  10. package/dist/data/languages/index.d.ts +5 -1
  11. package/dist/data/languages/languages.json +139 -48
  12. package/dist/data/languages/languages.schema.json +24 -3
  13. package/dist/data/languages/languages.zod.d.ts +10 -1
  14. package/dist/data/languages/languages.zod.js +18 -5
  15. package/dist/data/mediaDurations/mediaDurations.json +24823 -675
  16. package/dist/data/releaseNotes/releaseNotes.json +2 -9
  17. package/dist/data/translationsApp/index.d.ts +1 -0
  18. package/dist/data/translationsApp/translationsApp.json +41 -0
  19. package/dist/data/translationsApp/translationsApp.zod.d.ts +2 -0
  20. package/dist/data/translationsApp/translationsApp.zod.js +1 -0
  21. package/dist/data/youtubeVideos/youtubeVideos.json +55 -115
  22. package/dist/functions/ffmpeg.d.ts +104 -0
  23. package/dist/functions/ffmpeg.js +307 -0
  24. package/dist/functions/scripturePassages.js +9 -11
  25. package/dist/functions/sets.d.ts +15 -4
  26. package/dist/functions/sets.js +168 -228
  27. package/dist/functions/upload.d.ts +34 -0
  28. package/dist/functions/upload.js +49 -0
  29. package/dist/functions/utils.d.ts +6 -1
  30. package/dist/functions/utils.js +18 -4
  31. package/dist/types/sets.d.ts +22 -19
  32. package/package.json +3 -2
@@ -0,0 +1,19 @@
1
+ {
2
+ "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "type": "object",
5
+ "properties": {
6
+ "$schema": { "type": "string" },
7
+ "data": {
8
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9
+ "type": "object",
10
+ "propertyNames": { "type": "string", "pattern": "^[a-z]{3}$" },
11
+ "additionalProperties": {
12
+ "type": "array",
13
+ "items": { "type": "string" },
14
+ "description": "Language code (3-letter ISO code) containing assets"
15
+ }
16
+ }
17
+ },
18
+ "required": ["$schema", "data"]
19
+ }
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const LanguageAssets: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
3
+ export type LanguageAssets = z.infer<typeof LanguageAssets>;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LanguageAssets = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.LanguageAssets = zod_1.z.record(zod_1.z.string().regex(new RegExp('^[a-z]{3}$')), zod_1.z
6
+ .array(zod_1.z.string())
7
+ .describe('Language code (3-letter ISO code) containing assets'));
@@ -17,7 +17,11 @@ export declare const languages: {
17
17
  questionSource: "unknown" | "recorded" | "mms" | "elevenLabs";
18
18
  script: "arabic" | "bengali" | "burmese" | "chinese" | "cyrillic" | "devanagari" | "geez" | "georgian" | "greek" | "gujarati" | "gurmukhi" | "hebrew" | "japanese" | "kannada" | "khmer" | "korean" | "latin" | "malayalam" | "tamil" | "telugu" | "thai" | "uyghur";
19
19
  uuid: string;
20
- audioAssetVersion?: number | undefined;
20
+ assetVersions?: {
21
+ dbs?: number | undefined;
22
+ dmc?: number | undefined;
23
+ cast?: number | undefined;
24
+ } | undefined;
21
25
  bcpLanguageId?: string | undefined;
22
26
  bible?: string | undefined;
23
27
  bibleFallbacks?: string[] | undefined;
@@ -55,7 +55,9 @@
55
55
  {
56
56
  "languageId": "ach",
57
57
  "appInterface": false,
58
- "audioAssetVersion": 2,
58
+ "assetVersions": {
59
+ "dbs": 2
60
+ },
59
61
  "bcpLanguageId": "ach",
60
62
  "bible": "Aco85",
61
63
  "crowdinId": "ach",
@@ -114,7 +116,9 @@
114
116
  {
115
117
  "languageId": "aeb",
116
118
  "appInterface": false,
117
- "audioAssetVersion": 2,
119
+ "assetVersions": {
120
+ "dbs": 2
121
+ },
118
122
  "bcpLanguageId": "ar-TN",
119
123
  "bible": "NAV",
120
124
  "bridgeLanguages": {
@@ -152,7 +156,9 @@
152
156
  {
153
157
  "languageId": "afb",
154
158
  "appInterface": false,
155
- "audioAssetVersion": 2,
159
+ "assetVersions": {
160
+ "dbs": 2
161
+ },
156
162
  "bcpLanguageId": "ar-AE",
157
163
  "bible": "NAV",
158
164
  "bridgeLanguages": {
@@ -260,7 +266,9 @@
260
266
  {
261
267
  "languageId": "ais",
262
268
  "appInterface": false,
263
- "audioAssetVersion": 2,
269
+ "assetVersions": {
270
+ "dbs": 2
271
+ },
264
272
  "bcpLanguageId": "ar-SY",
265
273
  "bible": "GNA",
266
274
  "bridgeLanguages": {
@@ -360,7 +368,9 @@
360
368
  {
361
369
  "languageId": "apa",
362
370
  "appInterface": false,
363
- "audioAssetVersion": 2,
371
+ "assetVersions": {
372
+ "dbs": 2
373
+ },
364
374
  "bcpLanguageId": "ar-PS",
365
375
  "bible": "SAB",
366
376
  "bridgeLanguages": {
@@ -396,7 +406,9 @@
396
406
  {
397
407
  "languageId": "apc",
398
408
  "appInterface": false,
399
- "audioAssetVersion": 2,
409
+ "assetVersions": {
410
+ "dbs": 2
411
+ },
400
412
  "bcpLanguageId": "ar-LB",
401
413
  "bible": "NAV",
402
414
  "bridgeLanguages": {
@@ -435,6 +447,7 @@
435
447
  "languageId": "apd",
436
448
  "appInterface": false,
437
449
  "bcpLanguageId": "ar-SD",
450
+ "bible": "SUARB",
438
451
  "bridgeLanguages": {
439
452
  "intros": "ara",
440
453
  "trainingVideos": "ara"
@@ -458,7 +471,7 @@
458
471
  "speakersSecondary": 9000000,
459
472
  "speakersTotal": 42332360,
460
473
  "status": {
461
- "dbs": "inProgress",
474
+ "dbs": "testing",
462
475
  "gdmc": "notStarted",
463
476
  "trainingVideos": "notStarted",
464
477
  "web": "notStarted"
@@ -642,7 +655,9 @@
642
655
  {
643
656
  "languageId": "ary",
644
657
  "appInterface": false,
645
- "audioAssetVersion": 2,
658
+ "assetVersions": {
659
+ "dbs": 2
660
+ },
646
661
  "bcpLanguageId": "ar-MA",
647
662
  "bible": "NAV",
648
663
  "bridgeLanguages": {
@@ -692,7 +707,9 @@
692
707
  {
693
708
  "languageId": "arz",
694
709
  "appInterface": false,
695
- "audioAssetVersion": 2,
710
+ "assetVersions": {
711
+ "dbs": 2
712
+ },
696
713
  "bcpLanguageId": "ar-EG",
697
714
  "bible": "NAV",
698
715
  "bridgeLanguages": {
@@ -869,7 +886,9 @@
869
886
  {
870
887
  "languageId": "ayl",
871
888
  "appInterface": false,
872
- "audioAssetVersion": 2,
889
+ "assetVersions": {
890
+ "dbs": 2
891
+ },
873
892
  "bcpLanguageId": "ar-LY",
874
893
  "bible": "NAV",
875
894
  "bridgeLanguages": {
@@ -1440,7 +1459,9 @@
1440
1459
  {
1441
1460
  "languageId": "ceb",
1442
1461
  "appInterface": true,
1443
- "audioAssetVersion": 2,
1462
+ "assetVersions": {
1463
+ "dbs": 2
1464
+ },
1444
1465
  "bcpLanguageId": "ceb",
1445
1466
  "bible": "CCB",
1446
1467
  "crowdinId": "ceb",
@@ -1623,7 +1644,9 @@
1623
1644
  {
1624
1645
  "languageId": "ckb",
1625
1646
  "appInterface": true,
1626
- "audioAssetVersion": 2,
1647
+ "assetVersions": {
1648
+ "dbs": 2
1649
+ },
1627
1650
  "bcpLanguageId": "ckb",
1628
1651
  "bible": "OKSS",
1629
1652
  "crowdinId": "ckb",
@@ -2059,7 +2082,10 @@
2059
2082
  {
2060
2083
  "languageId": "eng",
2061
2084
  "appInterface": true,
2062
- "audioAssetVersion": 2,
2085
+ "assetVersions": {
2086
+ "dbs": 2,
2087
+ "dmc": 2
2088
+ },
2063
2089
  "bcpLanguageId": "en",
2064
2090
  "bible": "NLT",
2065
2091
  "crowdinId": "en",
@@ -2382,7 +2408,9 @@
2382
2408
  {
2383
2409
  "languageId": "fra",
2384
2410
  "appInterface": true,
2385
- "audioAssetVersion": 2,
2411
+ "assetVersions": {
2412
+ "dbs": 2
2413
+ },
2386
2414
  "bcpLanguageId": "fr",
2387
2415
  "bible": "PDV",
2388
2416
  "crowdinId": "fr",
@@ -3040,7 +3068,9 @@
3040
3068
  {
3041
3069
  "languageId": "hic",
3042
3070
  "appInterface": false,
3043
- "audioAssetVersion": 2,
3071
+ "assetVersions": {
3072
+ "dbs": 2
3073
+ },
3044
3074
  "bcpLanguageId": "ur-IN",
3045
3075
  "bible": "URDGVH",
3046
3076
  "bridgeLanguages": {
@@ -3098,7 +3128,9 @@
3098
3128
  {
3099
3129
  "languageId": "hin",
3100
3130
  "appInterface": true,
3101
- "audioAssetVersion": 2,
3131
+ "assetVersions": {
3132
+ "dbs": 2
3133
+ },
3102
3134
  "bcpLanguageId": "hi",
3103
3135
  "bible": "HINOVBSI",
3104
3136
  "crowdinId": "hi",
@@ -3293,7 +3325,9 @@
3293
3325
  {
3294
3326
  "languageId": "hye",
3295
3327
  "appInterface": true,
3296
- "audioAssetVersion": 4,
3328
+ "assetVersions": {
3329
+ "dbs": 4
3330
+ },
3297
3331
  "bible": "NEB",
3298
3332
  "crowdinId": "hy-AM",
3299
3333
  "curriculum": {
@@ -3441,7 +3475,9 @@
3441
3475
  {
3442
3476
  "languageId": "ind",
3443
3477
  "appInterface": true,
3444
- "audioAssetVersion": 3,
3478
+ "assetVersions": {
3479
+ "dbs": 3
3480
+ },
3445
3481
  "bcpLanguageId": "id",
3446
3482
  "bible": "TSI",
3447
3483
  "crowdinId": "inq",
@@ -3808,7 +3844,9 @@
3808
3844
  {
3809
3845
  "languageId": "kat",
3810
3846
  "appInterface": false,
3811
- "audioAssetVersion": 2,
3847
+ "assetVersions": {
3848
+ "dbs": 2
3849
+ },
3812
3850
  "bcpLanguageId": "ka",
3813
3851
  "bible": "GEO02",
3814
3852
  "crowdinId": "ka",
@@ -3985,7 +4023,9 @@
3985
4023
  {
3986
4024
  "languageId": "khm",
3987
4025
  "appInterface": true,
3988
- "audioAssetVersion": 2,
4026
+ "assetVersions": {
4027
+ "dbs": 2
4028
+ },
3989
4029
  "bcpLanguageId": "km",
3990
4030
  "bible": "KHSV05",
3991
4031
  "crowdinId": "km",
@@ -4090,7 +4130,9 @@
4090
4130
  {
4091
4131
  "languageId": "kmr",
4092
4132
  "appInterface": false,
4093
- "audioAssetVersion": 3,
4133
+ "assetVersions": {
4134
+ "dbs": 3
4135
+ },
4094
4136
  "bcpLanguageId": "ku",
4095
4137
  "bible": "KK",
4096
4138
  "crowdinId": "kmr",
@@ -4222,7 +4264,9 @@
4222
4264
  {
4223
4265
  "languageId": "kox",
4224
4266
  "appInterface": false,
4225
- "audioAssetVersion": 2,
4267
+ "assetVersions": {
4268
+ "dbs": 2
4269
+ },
4226
4270
  "bible": "NKCT",
4227
4271
  "bridgeLanguages": {
4228
4272
  "ftbs": "kor",
@@ -4629,7 +4673,9 @@
4629
4673
  {
4630
4674
  "languageId": "mar",
4631
4675
  "appInterface": true,
4632
- "audioAssetVersion": 2,
4676
+ "assetVersions": {
4677
+ "dbs": 2
4678
+ },
4633
4679
  "bcpLanguageId": "mr",
4634
4680
  "bible": "MARVBSI",
4635
4681
  "crowdinId": "mr",
@@ -4722,7 +4768,9 @@
4722
4768
  {
4723
4769
  "languageId": "mfe",
4724
4770
  "appInterface": false,
4725
- "audioAssetVersion": 2,
4771
+ "assetVersions": {
4772
+ "dbs": 2
4773
+ },
4726
4774
  "bcpLanguageId": "mfe",
4727
4775
  "bible": "NTKM2009",
4728
4776
  "bridgeLanguages": {
@@ -4782,7 +4830,9 @@
4782
4830
  {
4783
4831
  "languageId": "mlg",
4784
4832
  "appInterface": true,
4785
- "audioAssetVersion": 2,
4833
+ "assetVersions": {
4834
+ "dbs": 2
4835
+ },
4786
4836
  "bcpLanguageId": "mg",
4787
4837
  "bible": "MPB",
4788
4838
  "crowdinId": "mg",
@@ -5828,7 +5878,9 @@
5828
5878
  {
5829
5879
  "languageId": "por",
5830
5880
  "appInterface": true,
5831
- "audioAssetVersion": 2,
5881
+ "assetVersions": {
5882
+ "dbs": 2
5883
+ },
5832
5884
  "bcpLanguageId": "pt-BR",
5833
5885
  "bible": "NVI-PT",
5834
5886
  "crowdinId": "pt-PT",
@@ -5862,7 +5914,9 @@
5862
5914
  {
5863
5915
  "languageId": "prs",
5864
5916
  "appInterface": false,
5865
- "audioAssetVersion": 2,
5917
+ "assetVersions": {
5918
+ "dbs": 2
5919
+ },
5866
5920
  "bcpLanguageId": "prs",
5867
5921
  "bible": "TDV08",
5868
5922
  "crowdinId": "fa-AF",
@@ -5923,7 +5977,9 @@
5923
5977
  {
5924
5978
  "languageId": "qak",
5925
5979
  "appInterface": false,
5926
- "audioAssetVersion": 2,
5980
+ "assetVersions": {
5981
+ "dbs": 2
5982
+ },
5927
5983
  "bcpLanguageId": "ku-Arab",
5928
5984
  "bible": "AKAB",
5929
5985
  "bridgeLanguages": {
@@ -5936,7 +5992,7 @@
5936
5992
  "questions": "eng",
5937
5993
  "topics": "eng"
5938
5994
  },
5939
- "endonym": "کورمانجی",
5995
+ "endonym": "كورمانجي عفريني",
5940
5996
  "exonym": "Afrini Kurmanji",
5941
5997
  "mmsLanguageId": "kmr-script_arabic",
5942
5998
  "notes": "Both AKAB (existing bible) and WAHA_QAK (waha recorded bible) are audio only, so to still have text on the screen, our sponsors opted to copy GNA arabic text into both bibles. Thus, chapters labelled AKAB.GEN.1 actually contain GNA text even though the verse timings are synced to the AKAB audio.",
@@ -6027,7 +6083,9 @@
6027
6083
  {
6028
6084
  "languageId": "rfa",
6029
6085
  "appInterface": false,
6030
- "audioAssetVersion": 2,
6086
+ "assetVersions": {
6087
+ "dbs": 2
6088
+ },
6031
6089
  "bcpLanguageId": "rif-Arab",
6032
6090
  "bible": "RIF-A",
6033
6091
  "bridgeLanguages": {
@@ -6060,7 +6118,9 @@
6060
6118
  {
6061
6119
  "languageId": "rif",
6062
6120
  "appInterface": false,
6063
- "audioAssetVersion": 2,
6121
+ "assetVersions": {
6122
+ "dbs": 2
6123
+ },
6064
6124
  "bcpLanguageId": "rif",
6065
6125
  "bible": "RIF-L",
6066
6126
  "bridgeLanguages": {
@@ -6192,7 +6252,9 @@
6192
6252
  {
6193
6253
  "languageId": "ron",
6194
6254
  "appInterface": true,
6195
- "audioAssetVersion": 2,
6255
+ "assetVersions": {
6256
+ "dbs": 2
6257
+ },
6196
6258
  "bcpLanguageId": "ro",
6197
6259
  "bible": "NTR",
6198
6260
  "crowdinId": "ro",
@@ -6249,7 +6311,9 @@
6249
6311
  {
6250
6312
  "languageId": "rus",
6251
6313
  "appInterface": true,
6252
- "audioAssetVersion": 2,
6314
+ "assetVersions": {
6315
+ "dbs": 2
6316
+ },
6253
6317
  "bcpLanguageId": "ru",
6254
6318
  "bible": "NRT",
6255
6319
  "crowdinId": "ru",
@@ -6534,7 +6598,9 @@
6534
6598
  {
6535
6599
  "languageId": "shf",
6536
6600
  "appInterface": false,
6537
- "audioAssetVersion": 2,
6601
+ "assetVersions": {
6602
+ "dbs": 2
6603
+ },
6538
6604
  "bcpLanguageId": "shi-Latn",
6539
6605
  "bible": "COHT-L",
6540
6606
  "bridgeLanguages": {
@@ -6568,7 +6634,9 @@
6568
6634
  {
6569
6635
  "languageId": "shi",
6570
6636
  "appInterface": false,
6571
- "audioAssetVersion": 2,
6637
+ "assetVersions": {
6638
+ "dbs": 2
6639
+ },
6572
6640
  "bcpLanguageId": "shi-Arab",
6573
6641
  "bible": "COHT-A",
6574
6642
  "bridgeLanguages": {
@@ -6829,7 +6897,9 @@
6829
6897
  {
6830
6898
  "languageId": "som",
6831
6899
  "appInterface": false,
6832
- "audioAssetVersion": 2,
6900
+ "assetVersions": {
6901
+ "dbs": 2
6902
+ },
6833
6903
  "bcpLanguageId": "so",
6834
6904
  "bible": "SOMSIM",
6835
6905
  "crowdinId": "so",
@@ -6909,7 +6979,9 @@
6909
6979
  {
6910
6980
  "languageId": "spa",
6911
6981
  "appInterface": true,
6912
- "audioAssetVersion": 2,
6982
+ "assetVersions": {
6983
+ "dbs": 2
6984
+ },
6913
6985
  "bcpLanguageId": "es-419",
6914
6986
  "bible": "NBLA",
6915
6987
  "crowdinId": "es-419",
@@ -7066,7 +7138,9 @@
7066
7138
  {
7067
7139
  "languageId": "swe",
7068
7140
  "appInterface": true,
7069
- "audioAssetVersion": 2,
7141
+ "assetVersions": {
7142
+ "dbs": 2
7143
+ },
7070
7144
  "bcpLanguageId": "sv",
7071
7145
  "bible": "SFB15",
7072
7146
  "crowdinId": "sv-SE",
@@ -7100,7 +7174,9 @@
7100
7174
  {
7101
7175
  "languageId": "swz",
7102
7176
  "appInterface": true,
7103
- "audioAssetVersion": 2,
7177
+ "assetVersions": {
7178
+ "dbs": 2
7179
+ },
7104
7180
  "bible": "NENO",
7105
7181
  "crowdinId": "sw-TZ",
7106
7182
  "curriculum": {
@@ -7111,7 +7187,6 @@
7111
7187
  },
7112
7188
  "endonym": "Kiswahili",
7113
7189
  "exonym": "Swahili",
7114
- "likelyAppInterfacePair": "swh",
7115
7190
  "mmsLanguageId": "swh",
7116
7191
  "pm": "Josh Müller",
7117
7192
  "questionSource": "unknown",
@@ -7253,7 +7328,9 @@
7253
7328
  {
7254
7329
  "languageId": "tel",
7255
7330
  "appInterface": true,
7256
- "audioAssetVersion": 2,
7331
+ "assetVersions": {
7332
+ "dbs": 2
7333
+ },
7257
7334
  "bcpLanguageId": "te",
7258
7335
  "bible": "TELUBSI",
7259
7336
  "crowdinId": "te",
@@ -7599,7 +7676,9 @@
7599
7676
  {
7600
7677
  "languageId": "tur",
7601
7678
  "appInterface": true,
7602
- "audioAssetVersion": 2,
7679
+ "assetVersions": {
7680
+ "dbs": 2
7681
+ },
7603
7682
  "bcpLanguageId": "tr",
7604
7683
  "bible": "TCL02",
7605
7684
  "crowdinId": "tr",
@@ -7680,7 +7759,9 @@
7680
7759
  {
7681
7760
  "languageId": "tzm",
7682
7761
  "appInterface": false,
7683
- "audioAssetVersion": 3,
7762
+ "assetVersions": {
7763
+ "dbs": 3
7764
+ },
7684
7765
  "bcpLanguageId": "tzm",
7685
7766
  "bible": "TZM",
7686
7767
  "bridgeLanguages": {
@@ -7739,7 +7820,9 @@
7739
7820
  {
7740
7821
  "languageId": "uig",
7741
7822
  "appInterface": true,
7742
- "audioAssetVersion": 2,
7823
+ "assetVersions": {
7824
+ "dbs": 2
7825
+ },
7743
7826
  "bcpLanguageId": "ug",
7744
7827
  "bible": "HZUT",
7745
7828
  "crowdinId": "ug",
@@ -7771,7 +7854,9 @@
7771
7854
  {
7772
7855
  "languageId": "ukr",
7773
7856
  "appInterface": true,
7774
- "audioAssetVersion": 2,
7857
+ "assetVersions": {
7858
+ "dbs": 2
7859
+ },
7775
7860
  "bcpLanguageId": "uk",
7776
7861
  "bible": "UBIO",
7777
7862
  "crowdinId": "uk",
@@ -7829,7 +7914,9 @@
7829
7914
  {
7830
7915
  "languageId": "urd",
7831
7916
  "appInterface": true,
7832
- "audioAssetVersion": 2,
7917
+ "assetVersions": {
7918
+ "dbs": 2
7919
+ },
7833
7920
  "bcpLanguageId": "ur",
7834
7921
  "bible": "URDGVU",
7835
7922
  "crowdinId": "ur-PK",
@@ -7958,7 +8045,9 @@
7958
8045
  {
7959
8046
  "languageId": "vie",
7960
8047
  "appInterface": true,
7961
- "audioAssetVersion": 2,
8048
+ "assetVersions": {
8049
+ "dbs": 2
8050
+ },
7962
8051
  "bcpLanguageId": "vi",
7963
8052
  "bible": "OVCB",
7964
8053
  "crowdinId": "vi",
@@ -8289,7 +8378,9 @@
8289
8378
  {
8290
8379
  "languageId": "zsm",
8291
8380
  "appInterface": true,
8292
- "audioAssetVersion": 2,
8381
+ "assetVersions": {
8382
+ "dbs": 2
8383
+ },
8293
8384
  "bcpLanguageId": "ms",
8294
8385
  "bible": "AVB",
8295
8386
  "crowdinId": "ms",
@@ -19,9 +19,30 @@
19
19
  "description": "The name of a language in English, i.e. \"Spanish\". This helps Waha team members identify the language."
20
20
  },
21
21
  "appInterface": { "type": "boolean" },
22
- "audioAssetVersion": {
23
- "description": "The version number of the audio assets directory. When set, audio files will be looked up in a versioned directory (e.g. full_lessons2) instead of the default (full_lessons).",
24
- "type": "number"
22
+ "assetVersions": {
23
+ "type": "object",
24
+ "properties": {
25
+ "dbs": {
26
+ "description": "Asset version for Foundations/Topics/GDMC audio lessons.",
27
+ "type": "integer",
28
+ "minimum": -9007199254740991,
29
+ "maximum": 9007199254740991
30
+ },
31
+ "dmc": {
32
+ "description": "Asset version for Training lessons, including compressed training videos, music-ified narration audio, and production-ready disciple making course video lessons.",
33
+ "type": "integer",
34
+ "minimum": -9007199254740991,
35
+ "maximum": 9007199254740991
36
+ },
37
+ "cast": {
38
+ "description": "Asset version for cast-ready Foundations/Topics/GMDC video lessons.",
39
+ "type": "integer",
40
+ "minimum": -9007199254740991,
41
+ "maximum": 9007199254740991
42
+ }
43
+ },
44
+ "additionalProperties": false,
45
+ "description": "Version numbers for various language assets that determine where files will be generated and retrieved. Omitting will always look for all assets in `full_lessons`. Adding for a category will generate and look for assets in `full_lessons${versionNumber}`."
25
46
  },
26
47
  "bcpLanguageId": {
27
48
  "type": "string",
@@ -42,11 +42,20 @@ export declare const BibleModifier: z.ZodObject<{
42
42
  bibleId: z.ZodString;
43
43
  }, z.core.$strip>;
44
44
  export type BibleModifier = z.infer<typeof BibleModifier>;
45
+ export declare const AssetVersions: z.ZodObject<{
46
+ dbs: z.ZodOptional<z.ZodInt>;
47
+ dmc: z.ZodOptional<z.ZodInt>;
48
+ cast: z.ZodOptional<z.ZodInt>;
49
+ }, z.core.$strip>;
45
50
  export declare const Languages: z.ZodArray<z.ZodObject<{
46
51
  languageId: z.ZodString;
47
52
  exonym: z.ZodString;
48
53
  appInterface: z.ZodBoolean;
49
- audioAssetVersion: z.ZodOptional<z.ZodNumber>;
54
+ assetVersions: z.ZodOptional<z.ZodObject<{
55
+ dbs: z.ZodOptional<z.ZodInt>;
56
+ dmc: z.ZodOptional<z.ZodInt>;
57
+ cast: z.ZodOptional<z.ZodInt>;
58
+ }, z.core.$strip>>;
50
59
  bcpLanguageId: z.ZodOptional<z.ZodString>;
51
60
  bible: z.ZodOptional<z.ZodString>;
52
61
  bibleFallbacks: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Languages = exports.BibleModifier = exports.BridgeLanguages = exports.Status = exports.BibleTestament = exports.SetCategory = void 0;
3
+ exports.Languages = exports.AssetVersions = exports.BibleModifier = exports.BridgeLanguages = exports.Status = exports.BibleTestament = exports.SetCategory = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.SetCategory = zod_1.z.enum(['Foundations', 'Topics', 'WahaTraining']);
6
6
  exports.BibleTestament = zod_1.z.enum(['OT', 'NT']);
@@ -49,6 +49,22 @@ exports.BibleModifier = zod_1.z.object({
49
49
  .describe('What to do with the bible. "replace" swaps the primary bible. "concat" adds this bible alongside the primary (both are used in the lesson).'),
50
50
  bibleId: zod_1.z.string().describe('The bible translation ID to use.'),
51
51
  });
52
+ exports.AssetVersions = zod_1.z
53
+ .object({
54
+ dbs: zod_1.z
55
+ .int()
56
+ .optional()
57
+ .describe('Asset version for Foundations/Topics/GDMC audio lessons.'),
58
+ dmc: zod_1.z
59
+ .int()
60
+ .optional()
61
+ .describe('Asset version for Training lessons, including compressed training videos, music-ified narration audio, and production-ready disciple making course video lessons.'),
62
+ cast: zod_1.z
63
+ .int()
64
+ .optional()
65
+ .describe('Asset version for cast-ready Foundations/Topics/GMDC video lessons.'),
66
+ })
67
+ .describe('Version numbers for various language assets that determine where files will be generated and retrieved. Omitting will always look for all assets in `full_lessons`. Adding for a category will generate and look for assets in `full_lessons${versionNumber}`.');
52
68
  exports.Languages = zod_1.z.array(zod_1.z
53
69
  .object({
54
70
  languageId: zod_1.z
@@ -58,10 +74,7 @@ exports.Languages = zod_1.z.array(zod_1.z
58
74
  .string()
59
75
  .describe('The name of a language in English, i.e. "Spanish". This helps Waha team members identify the language.'),
60
76
  appInterface: zod_1.z.boolean(),
61
- audioAssetVersion: zod_1.z
62
- .number()
63
- .optional()
64
- .describe('The version number of the audio assets directory. When set, audio files will be looked up in a versioned directory (e.g. full_lessons2) instead of the default (full_lessons).'),
77
+ assetVersions: exports.AssetVersions.optional(),
65
78
  bcpLanguageId: zod_1.z
66
79
  .string()
67
80
  .describe("A language ID used for iOS's screen reader support. Should be in BCP 47 format. Should only be included if language is supported by iOS's screen reader. List of supported languages can be found here: https://www.apple.com/ios/feature-availability/")