waha-shared 1.0.531-orpc.0 → 1.0.531

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.
@@ -8,9 +8,9 @@ export declare const AudioSource: z.ZodObject<{
8
8
  }>;
9
9
  sourceId: z.ZodOptional<z.ZodString>;
10
10
  scope: z.ZodEnum<{
11
+ all: "all";
11
12
  OT: "OT";
12
13
  NT: "NT";
13
- all: "all";
14
14
  }>;
15
15
  }, z.core.$strict>;
16
16
  export type AudioSource = z.infer<typeof AudioSource>;
@@ -25,9 +25,9 @@ export declare const BibleAudio: z.ZodObject<{
25
25
  }>;
26
26
  sourceId: z.ZodOptional<z.ZodString>;
27
27
  scope: z.ZodEnum<{
28
+ all: "all";
28
29
  OT: "OT";
29
30
  NT: "NT";
30
- all: "all";
31
31
  }>;
32
32
  }, z.core.$strict>>;
33
33
  canDownload: z.ZodBoolean;
@@ -45,9 +45,9 @@ export declare const BibleAudios: z.ZodArray<z.ZodObject<{
45
45
  }>;
46
46
  sourceId: z.ZodOptional<z.ZodString>;
47
47
  scope: z.ZodEnum<{
48
+ all: "all";
48
49
  OT: "OT";
49
50
  NT: "NT";
50
- all: "all";
51
51
  }>;
52
52
  }, z.core.$strict>>;
53
53
  canDownload: z.ZodBoolean;
@@ -2,7 +2,7 @@ export declare const bibleAudios: {
2
2
  bibleAudioId: string;
3
3
  audioSource: {
4
4
  source: "custom" | "dbl" | "youVersion" | "bibleBrain";
5
- scope: "OT" | "NT" | "all";
5
+ scope: "all" | "OT" | "NT";
6
6
  sourceId?: string | undefined;
7
7
  }[];
8
8
  canDownload: boolean;
@@ -21,12 +21,12 @@ export declare const languages: {
21
21
  dmc?: number | undefined;
22
22
  cast?: number | undefined;
23
23
  } | undefined;
24
- iosVoiceOverLanguageId?: "ar" | "eu" | "bn-IN" | "bho-IN" | "bg" | "zh-HK" | "ca" | "hr" | "cs" | "da" | "nl-BE" | "nl-NL" | "en-AU" | "en-IN" | "en-IE" | "en-GB" | "en-ZA" | "en-US" | "fa" | "fi" | "fr-BE" | "fr-CA" | "fr-FR" | "gl" | "de" | "el" | "he" | "hi" | "hu" | "id" | "it" | "ja" | "kn" | "kk" | "ko" | "lt" | "ms" | "zh-CN" | "zh-TW" | "mr" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "es-AR" | "es-CL" | "es-CO" | "es-MX" | "es-ES" | "sv" | "ta" | "te" | "th" | "tr" | "uk" | "ca-ES-valencia" | "vi" | undefined;
25
- firebaseAuthLanguageId?: "ar" | "bg" | "ca" | "hr" | "cs" | "da" | "fa" | "fi" | "de" | "el" | "hi" | "hu" | "id" | "it" | "ja" | "kn" | "kk" | "ko" | "lt" | "ms" | "zh-CN" | "zh-TW" | "mr" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sv" | "ta" | "te" | "th" | "tr" | "uk" | "vi" | "en" | "af" | "sq" | "am" | "hy" | "az" | "bn" | "my" | "nl" | "et" | "fil" | "fr" | "ka" | "gu" | "iw" | "is" | "km" | "lo" | "lv" | "mk" | "ml" | "mn" | "ne" | "no" | "pa" | "sr" | "si" | "es" | "es-419" | "sw" | "ur" | "uz" | undefined;
24
+ iosVoiceOverLanguageId?: "id" | "ar" | "eu" | "bn-IN" | "bho-IN" | "bg" | "zh-HK" | "ca" | "hr" | "cs" | "da" | "nl-BE" | "nl-NL" | "en-AU" | "en-IN" | "en-IE" | "en-GB" | "en-ZA" | "en-US" | "fa" | "fi" | "fr-BE" | "fr-CA" | "fr-FR" | "gl" | "de" | "el" | "he" | "hi" | "hu" | "it" | "ja" | "kn" | "kk" | "ko" | "lt" | "ms" | "zh-CN" | "zh-TW" | "mr" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "es-AR" | "es-CL" | "es-CO" | "es-MX" | "es-ES" | "sv" | "ta" | "te" | "th" | "tr" | "uk" | "ca-ES-valencia" | "vi" | undefined;
25
+ firebaseAuthLanguageId?: "id" | "ne" | "sw" | "ar" | "bg" | "ca" | "hr" | "cs" | "da" | "fa" | "fi" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "kn" | "kk" | "ko" | "lt" | "ms" | "zh-CN" | "zh-TW" | "mr" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sv" | "ta" | "te" | "th" | "tr" | "uk" | "vi" | "en" | "af" | "sq" | "am" | "hy" | "az" | "bn" | "my" | "nl" | "et" | "fil" | "fr" | "ka" | "gu" | "iw" | "is" | "km" | "lo" | "lv" | "mk" | "ml" | "mn" | "no" | "pa" | "sr" | "si" | "es" | "es-419" | "ur" | "uz" | undefined;
26
26
  bible?: string | undefined;
27
27
  bibleFallbacks?: string[] | undefined;
28
28
  bibleModifiers?: {
29
- scope: "foundations" | "topics" | "training" | "OT" | "NT";
29
+ scope: "OT" | "NT" | "foundations" | "topics" | "training";
30
30
  action: "concat" | "replace";
31
31
  bibleId: string;
32
32
  }[] | undefined;
@@ -37,7 +37,7 @@ export declare const languages: {
37
37
  hideDonateButton?: boolean | undefined;
38
38
  launchDate?: string | undefined;
39
39
  likelyAppInterfacePair?: string | undefined;
40
- expectMissing?: ("foundations" | "topics" | "training" | "appInterface" | "name" | "favorites")[] | undefined;
40
+ expectMissing?: ("name" | "foundations" | "topics" | "training" | "appInterface" | "favorites")[] | undefined;
41
41
  mmsLanguageId?: string | undefined;
42
42
  notes?: string | undefined;
43
43
  pm?: string | undefined;
@@ -46,8 +46,8 @@ export declare const languages: {
46
46
  imageUrl?: string | undefined;
47
47
  url?: string | undefined;
48
48
  } | undefined;
49
- storeIdAndroid?: "ar" | "bg" | "zh-HK" | "ca" | "hr" | "nl-NL" | "en-AU" | "en-IN" | "en-GB" | "en-ZA" | "en-US" | "fa" | "fr-CA" | "fr-FR" | "id" | "kk" | "lt" | "ms" | "zh-CN" | "zh-TW" | "pt-BR" | "pt-PT" | "ro" | "sk" | "sl" | "es-ES" | "th" | "uk" | "vi" | "af" | "sq" | "am" | "et" | "fil" | "gu" | "lv" | "pa" | "sr" | "es-419" | "sw" | "ur" | "hy-AM" | "az-AZ" | "bn-BD" | "eu-ES" | "be" | "my-MM" | "cs-CZ" | "da-DK" | "en-CA" | "en-SG" | "fi-FI" | "gl-ES" | "ka-GE" | "de-DE" | "el-GR" | "iw-IL" | "hi-IN" | "hu-HU" | "is-IS" | "it-IT" | "ja-JP" | "kn-IN" | "km-KH" | "ko-KR" | "ky-KG" | "lo-LA" | "mk-MK" | "ms-MY" | "ml-IN" | "mr-IN" | "mn-MN" | "ne-NP" | "no-NO" | "fa-AE" | "fa-AF" | "fa-IR" | "pl-PL" | "rm" | "ru-RU" | "si-LK" | "es-US" | "sv-SE" | "ta-IN" | "te-IN" | "tr-TR" | "zu" | undefined;
50
- storeIdIos?: "ca" | "hr" | "cs" | "da" | "nl-NL" | "en-AU" | "en-GB" | "en-US" | "fi" | "fr-CA" | "fr-FR" | "el" | "he" | "hi" | "hu" | "id" | "it" | "ja" | "ko" | "ms" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "es-MX" | "es-ES" | "sv" | "th" | "tr" | "uk" | "vi" | "no" | "en-CA" | "de-DE" | "ar-SA" | "zh-Hans" | "zh-Hant" | undefined;
49
+ storeIdAndroid?: "id" | "sw" | "ar" | "bg" | "zh-HK" | "ca" | "hr" | "nl-NL" | "en-AU" | "en-IN" | "en-GB" | "en-ZA" | "en-US" | "fa" | "fr-CA" | "fr-FR" | "kk" | "lt" | "ms" | "zh-CN" | "zh-TW" | "pt-BR" | "pt-PT" | "ro" | "sk" | "sl" | "es-ES" | "th" | "uk" | "vi" | "af" | "sq" | "am" | "et" | "fil" | "gu" | "lv" | "pa" | "sr" | "es-419" | "ur" | "hy-AM" | "az-AZ" | "bn-BD" | "eu-ES" | "be" | "my-MM" | "cs-CZ" | "da-DK" | "en-CA" | "en-SG" | "fi-FI" | "gl-ES" | "ka-GE" | "de-DE" | "el-GR" | "iw-IL" | "hi-IN" | "hu-HU" | "is-IS" | "it-IT" | "ja-JP" | "kn-IN" | "km-KH" | "ko-KR" | "ky-KG" | "lo-LA" | "mk-MK" | "ms-MY" | "ml-IN" | "mr-IN" | "mn-MN" | "ne-NP" | "no-NO" | "fa-AE" | "fa-AF" | "fa-IR" | "pl-PL" | "rm" | "ru-RU" | "si-LK" | "es-US" | "sv-SE" | "ta-IN" | "te-IN" | "tr-TR" | "zu" | undefined;
50
+ storeIdIos?: "id" | "ca" | "hr" | "cs" | "da" | "nl-NL" | "en-AU" | "en-GB" | "en-US" | "fi" | "fr-CA" | "fr-FR" | "el" | "he" | "hi" | "hu" | "it" | "ja" | "ko" | "ms" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "es-MX" | "es-ES" | "sv" | "th" | "tr" | "uk" | "vi" | "no" | "en-CA" | "de-DE" | "ar-SA" | "zh-Hans" | "zh-Hant" | undefined;
51
51
  supportsSolarSpeakers?: boolean | undefined;
52
52
  bridgeLanguages?: {
53
53
  intros?: string | undefined;
@@ -90,6 +90,7 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
90
90
  cast: z.ZodOptional<z.ZodInt>;
91
91
  }, z.core.$strip>>;
92
92
  iosVoiceOverLanguageId: z.ZodOptional<z.ZodEnum<{
93
+ id: "id";
93
94
  ar: "ar";
94
95
  eu: "eu";
95
96
  "bn-IN": "bn-IN";
@@ -119,7 +120,6 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
119
120
  he: "he";
120
121
  hi: "hi";
121
122
  hu: "hu";
122
- id: "id";
123
123
  it: "it";
124
124
  ja: "ja";
125
125
  kn: "kn";
@@ -153,6 +153,9 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
153
153
  vi: "vi";
154
154
  }>>;
155
155
  firebaseAuthLanguageId: z.ZodOptional<z.ZodEnum<{
156
+ id: "id";
157
+ ne: "ne";
158
+ sw: "sw";
156
159
  ar: "ar";
157
160
  bg: "bg";
158
161
  ca: "ca";
@@ -165,7 +168,6 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
165
168
  el: "el";
166
169
  hi: "hi";
167
170
  hu: "hu";
168
- id: "id";
169
171
  it: "it";
170
172
  ja: "ja";
171
173
  kn: "kn";
@@ -212,14 +214,12 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
212
214
  mk: "mk";
213
215
  ml: "ml";
214
216
  mn: "mn";
215
- ne: "ne";
216
217
  no: "no";
217
218
  pa: "pa";
218
219
  sr: "sr";
219
220
  si: "si";
220
221
  es: "es";
221
222
  "es-419": "es-419";
222
- sw: "sw";
223
223
  ur: "ur";
224
224
  uz: "uz";
225
225
  }>>;
@@ -322,6 +322,8 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
322
322
  url: z.ZodOptional<z.ZodString>;
323
323
  }, z.core.$strip>>;
324
324
  storeIdAndroid: z.ZodOptional<z.ZodEnum<{
325
+ id: "id";
326
+ sw: "sw";
325
327
  ar: "ar";
326
328
  bg: "bg";
327
329
  "zh-HK": "zh-HK";
@@ -336,7 +338,6 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
336
338
  fa: "fa";
337
339
  "fr-CA": "fr-CA";
338
340
  "fr-FR": "fr-FR";
339
- id: "id";
340
341
  kk: "kk";
341
342
  lt: "lt";
342
343
  ms: "ms";
@@ -361,7 +362,6 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
361
362
  pa: "pa";
362
363
  sr: "sr";
363
364
  "es-419": "es-419";
364
- sw: "sw";
365
365
  ur: "ur";
366
366
  "hy-AM": "hy-AM";
367
367
  "az-AZ": "az-AZ";
@@ -411,6 +411,7 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
411
411
  zu: "zu";
412
412
  }>>;
413
413
  storeIdIos: z.ZodOptional<z.ZodEnum<{
414
+ id: "id";
414
415
  ca: "ca";
415
416
  hr: "hr";
416
417
  cs: "cs";
@@ -426,7 +427,6 @@ export declare const Languages: z.ZodArray<z.ZodObject<{
426
427
  he: "he";
427
428
  hi: "hi";
428
429
  hu: "hu";
429
- id: "id";
430
430
  it: "it";
431
431
  ja: "ja";
432
432
  ko: "ko";
@@ -2,7 +2,7 @@ export declare const notification: {
2
2
  title: Record<string, string>;
3
3
  body: Record<string, string>;
4
4
  faithJourney: "all" | "seekers" | "believers";
5
- meetLanguages: string[] | "all";
5
+ meetLanguages: "all" | string[];
6
6
  verified: string[];
7
7
  actionUrl?: Record<string, string> | undefined;
8
8
  countriesToNotSendTo?: string[] | undefined;
@@ -54,12 +54,7 @@ export declare const Article: z.ZodObject<{
54
54
  }>>;
55
55
  }, z.core.$strip>;
56
56
  export type Article = z.infer<typeof Article>;
57
- /**
58
- * An article as the app gets it from the website: its frontmatter as `data`,
59
- * plus Astro's `id` (the file path, like `eng/some-article`) and the markdown
60
- * `body`.
61
- */
62
- export declare const ArticleEntry: z.ZodObject<{
57
+ export declare const ResponseArticle: z.ZodObject<{
63
58
  id: z.ZodString;
64
59
  data: z.ZodObject<{
65
60
  title: z.ZodString;
@@ -117,5 +112,68 @@ export declare const ArticleEntry: z.ZodObject<{
117
112
  }, z.core.$strip>;
118
113
  body: z.ZodString;
119
114
  }, z.core.$strip>;
120
- export type ArticleEntry = z.infer<typeof ArticleEntry>;
115
+ export type ResponseArticle = z.infer<typeof ResponseArticle>;
116
+ export declare const ArticlesResponse: z.ZodObject<{
117
+ data: z.ZodArray<z.ZodObject<{
118
+ id: z.ZodString;
119
+ data: z.ZodObject<{
120
+ title: z.ZodString;
121
+ author: z.ZodOptional<z.ZodString>;
122
+ category: z.ZodEnum<{
123
+ "Case Studies": "Case Studies";
124
+ "Discovering God": "Discovering God";
125
+ "Disciple Making Secrets": "Disciple Making Secrets";
126
+ "Product Updates": "Product Updates";
127
+ Books: "Books";
128
+ Films: "Films";
129
+ "How Tos": "How Tos";
130
+ "Mengenali Tuhan": "Mengenali Tuhan";
131
+ "\u00D6rnek Olay \u00C7al\u0131\u015Fmalar\u0131": "Örnek Olay Çalışmaları";
132
+ "\u00D6\u011Frenci Yeti\u015Ftirme S\u0131rlar\u0131": "Öğrenci Yetiştirme Sırları";
133
+ "Tanr\u0131'y\u0131 Ke\u015Ffetmek": "Tanrı'yı Keşfetmek";
134
+ "Historias de la vida real": "Historias de la vida real";
135
+ "Secretos para hacer disc\u00EDpulos": "Secretos para hacer discípulos";
136
+ "Descubriendo a Dios": "Descubriendo a Dios";
137
+ }>;
138
+ image: z.ZodOptional<z.ZodString>;
139
+ date: z.ZodCoercedDate<unknown>;
140
+ isDraft: z.ZodOptional<z.ZodBoolean>;
141
+ seekerFriendly: z.ZodOptional<z.ZodBoolean>;
142
+ platform: z.ZodEnum<{
143
+ "Web Only": "Web Only";
144
+ "App Only": "App Only";
145
+ All: "All";
146
+ }>;
147
+ audio: z.ZodOptional<z.ZodObject<{
148
+ audioUrl: z.ZodString;
149
+ loop: z.ZodOptional<z.ZodBoolean>;
150
+ }, z.core.$strip>>;
151
+ video: z.ZodOptional<z.ZodObject<{
152
+ videoUrl: z.ZodString;
153
+ autoplay: z.ZodOptional<z.ZodBoolean>;
154
+ loop: z.ZodOptional<z.ZodBoolean>;
155
+ disableControls: z.ZodOptional<z.ZodBoolean>;
156
+ aspectRatio: z.ZodOptional<z.ZodNumber>;
157
+ }, z.core.$strip>>;
158
+ impactStoryRegion: z.ZodOptional<z.ZodEnum<{
159
+ "North America": "North America";
160
+ "Latin America and the Caribbean": "Latin America and the Caribbean";
161
+ "Middle East/North Africa": "Middle East/North Africa";
162
+ "Sub-Saharan Africa": "Sub-Saharan Africa";
163
+ "Western Europe": "Western Europe";
164
+ "Eastern Europe": "Eastern Europe";
165
+ "Western Asia": "Western Asia";
166
+ "Southern Asia": "Southern Asia";
167
+ "Central Asia": "Central Asia";
168
+ "Southeast Asia": "Southeast Asia";
169
+ "Eastern Asia": "Eastern Asia";
170
+ Oceania: "Oceania";
171
+ }>>;
172
+ }, z.core.$strip>;
173
+ body: z.ZodString;
174
+ }, z.core.$strip>>;
175
+ }, z.core.$strip>;
176
+ export declare const ArticleLanguagesResponse: z.ZodObject<{
177
+ data: z.ZodArray<z.ZodString>;
178
+ }, z.core.$strip>;
121
179
  export type ArticleCategory = z.infer<typeof Article>['category'];
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ArticleEntry = exports.Article = void 0;
6
+ exports.ArticleLanguagesResponse = exports.ArticlesResponse = exports.ResponseArticle = exports.Article = void 0;
7
7
  const v4_1 = __importDefault(require("zod/v4"));
8
8
  const webContent_1 = require("./webContent");
9
9
  exports.Article = v4_1.default.object({
@@ -19,13 +19,14 @@ exports.Article = v4_1.default.object({
19
19
  video: webContent_1.Video,
20
20
  impactStoryRegion: webContent_1.ImpactStoryRegion,
21
21
  });
22
- /**
23
- * An article as the app gets it from the website: its frontmatter as `data`,
24
- * plus Astro's `id` (the file path, like `eng/some-article`) and the markdown
25
- * `body`.
26
- */
27
- exports.ArticleEntry = v4_1.default.object({
22
+ exports.ResponseArticle = v4_1.default.object({
28
23
  id: v4_1.default.string(),
29
24
  data: exports.Article,
30
25
  body: v4_1.default.string(),
31
26
  });
27
+ exports.ArticlesResponse = v4_1.default.object({
28
+ data: v4_1.default.array(exports.ResponseArticle),
29
+ });
30
+ exports.ArticleLanguagesResponse = v4_1.default.object({
31
+ data: v4_1.default.array(v4_1.default.string()),
32
+ });
@@ -21,8 +21,8 @@ export declare const BibleChapter: z.ZodObject<{
21
21
  }, z.core.$strict>;
22
22
  export type BibleChapter = z.infer<typeof BibleChapter>;
23
23
  export declare const BibleChapterFields: {
24
- titles: "titles";
25
24
  verses: "verses";
25
+ titles: "titles";
26
26
  bookName: "bookName";
27
27
  chapterId: "chapterId";
28
28
  reference: "reference";
@@ -28,11 +28,11 @@ export declare const CompletionEvent: z.ZodObject<{
28
28
  export type CompletionEvent = z.infer<typeof CompletionEvent>;
29
29
  export declare const CompletionEventFields: {
30
30
  city: "city";
31
- country: "country";
32
- region: "region";
33
31
  lessonId: "lessonId";
34
32
  meetLanguageId: "meetLanguageId";
35
33
  time: "time";
34
+ country: "country";
35
+ region: "region";
36
36
  manual: "manual";
37
37
  howManyObeyed: "howManyObeyed";
38
38
  howManyShared: "howManyShared";
@@ -1,11 +1,9 @@
1
1
  import z from 'zod';
2
2
  export declare const WahaShareContent: z.ZodEnum<{
3
- notification: "notification";
4
3
  lesson: "lesson";
5
- app: "app";
6
- microLesson: "microLesson";
7
4
  lessonLink: "lessonLink";
8
5
  setLink: "setLink";
6
+ app: "app";
9
7
  passcode: "passcode";
10
8
  lessonAudio: "lessonAudio";
11
9
  lessonText: "lessonText";
@@ -15,6 +13,7 @@ export declare const WahaShareContent: z.ZodEnum<{
15
13
  meetingInviteOnboarding: "meetingInviteOnboarding";
16
14
  articleLink: "articleLink";
17
15
  videoLink: "videoLink";
16
+ notification: "notification";
18
17
  meetingSchedule: "meetingSchedule";
19
18
  scriptureText: "scriptureText";
20
19
  mt: "mt";
@@ -23,17 +22,16 @@ export declare const WahaShareContent: z.ZodEnum<{
23
22
  offlineVersionLink: "offlineVersionLink";
24
23
  note: "note";
25
24
  customSet: "customSet";
25
+ microLesson: "microLesson";
26
26
  }>;
27
27
  export type WahaShareContent = z.infer<typeof WahaShareContent>;
28
28
  export declare const ShareLogEvent: z.ZodObject<{
29
29
  time: z.ZodNumber;
30
30
  content: z.ZodEnum<{
31
- notification: "notification";
32
31
  lesson: "lesson";
33
- app: "app";
34
- microLesson: "microLesson";
35
32
  lessonLink: "lessonLink";
36
33
  setLink: "setLink";
34
+ app: "app";
37
35
  passcode: "passcode";
38
36
  lessonAudio: "lessonAudio";
39
37
  lessonText: "lessonText";
@@ -43,6 +41,7 @@ export declare const ShareLogEvent: z.ZodObject<{
43
41
  meetingInviteOnboarding: "meetingInviteOnboarding";
44
42
  articleLink: "articleLink";
45
43
  videoLink: "videoLink";
44
+ notification: "notification";
46
45
  meetingSchedule: "meetingSchedule";
47
46
  scriptureText: "scriptureText";
48
47
  mt: "mt";
@@ -51,6 +50,7 @@ export declare const ShareLogEvent: z.ZodObject<{
51
50
  offlineVersionLink: "offlineVersionLink";
52
51
  note: "note";
53
52
  customSet: "customSet";
53
+ microLesson: "microLesson";
54
54
  }>;
55
55
  lessonId: z.ZodOptional<z.ZodString>;
56
56
  articleSlug: z.ZodOptional<z.ZodString>;
@@ -97,12 +97,7 @@ export declare const MicroLesson: z.ZodObject<{
97
97
  }, z.core.$strip>>;
98
98
  }, z.core.$strip>;
99
99
  export type MicroLesson = z.infer<typeof MicroLesson>;
100
- /**
101
- * A micro-lesson as the app gets it from the website: its frontmatter as
102
- * `data`, plus Astro's `id` (the file path, like `eng/some-lesson`). There's
103
- * no `body`, because a micro-lesson's content is all in its frontmatter.
104
- */
105
- export declare const MicroLessonEntry: z.ZodObject<{
100
+ export declare const ResponseMicroLesson: z.ZodObject<{
106
101
  id: z.ZodString;
107
102
  data: z.ZodObject<{
108
103
  title: z.ZodString;
@@ -191,7 +186,98 @@ export declare const MicroLessonEntry: z.ZodObject<{
191
186
  }, z.core.$strip>>;
192
187
  }, z.core.$strip>;
193
188
  }, z.core.$strip>;
194
- export type MicroLessonEntry = z.infer<typeof MicroLessonEntry>;
189
+ export type ResponseMicroLesson = z.infer<typeof ResponseMicroLesson>;
190
+ export declare const MicroLessonsResponse: z.ZodObject<{
191
+ data: z.ZodArray<z.ZodObject<{
192
+ id: z.ZodString;
193
+ data: z.ZodObject<{
194
+ title: z.ZodString;
195
+ subtitle: z.ZodOptional<z.ZodString>;
196
+ date: z.ZodCoercedDate<unknown>;
197
+ isDraft: z.ZodOptional<z.ZodBoolean>;
198
+ seekerFriendly: z.ZodOptional<z.ZodBoolean>;
199
+ platform: z.ZodEnum<{
200
+ "Web Only": "Web Only";
201
+ "App Only": "App Only";
202
+ All: "All";
203
+ }>;
204
+ image: z.ZodString;
205
+ category: z.ZodEnum<{
206
+ "Case Studies": "Case Studies";
207
+ "Discovering God": "Discovering God";
208
+ "Disciple Making Secrets": "Disciple Making Secrets";
209
+ "Product Updates": "Product Updates";
210
+ Books: "Books";
211
+ Films: "Films";
212
+ "How Tos": "How Tos";
213
+ "Mengenali Tuhan": "Mengenali Tuhan";
214
+ "\u00D6rnek Olay \u00C7al\u0131\u015Fmalar\u0131": "Örnek Olay Çalışmaları";
215
+ "\u00D6\u011Frenci Yeti\u015Ftirme S\u0131rlar\u0131": "Öğrenci Yetiştirme Sırları";
216
+ "Tanr\u0131'y\u0131 Ke\u015Ffetmek": "Tanrı'yı Keşfetmek";
217
+ "Historias de la vida real": "Historias de la vida real";
218
+ "Secretos para hacer disc\u00EDpulos": "Secretos para hacer discípulos";
219
+ "Descubriendo a Dios": "Descubriendo a Dios";
220
+ }>;
221
+ campaign: z.ZodOptional<z.ZodString>;
222
+ impactStoryRegion: z.ZodOptional<z.ZodEnum<{
223
+ "North America": "North America";
224
+ "Latin America and the Caribbean": "Latin America and the Caribbean";
225
+ "Middle East/North Africa": "Middle East/North Africa";
226
+ "Sub-Saharan Africa": "Sub-Saharan Africa";
227
+ "Western Europe": "Western Europe";
228
+ "Eastern Europe": "Eastern Europe";
229
+ "Western Asia": "Western Asia";
230
+ "Southern Asia": "Southern Asia";
231
+ "Central Asia": "Central Asia";
232
+ "Southeast Asia": "Southeast Asia";
233
+ "Eastern Asia": "Eastern Asia";
234
+ Oceania: "Oceania";
235
+ }>>;
236
+ pages: z.ZodArray<z.ZodObject<{
237
+ heading: z.ZodString;
238
+ body: z.ZodOptional<z.ZodString>;
239
+ icon: z.ZodOptional<z.ZodString>;
240
+ image: z.ZodOptional<z.ZodString>;
241
+ audio: z.ZodOptional<z.ZodObject<{
242
+ audioUrl: z.ZodString;
243
+ loop: z.ZodOptional<z.ZodBoolean>;
244
+ }, z.core.$strip>>;
245
+ video: z.ZodOptional<z.ZodObject<{
246
+ videoUrl: z.ZodString;
247
+ autoplay: z.ZodOptional<z.ZodBoolean>;
248
+ loop: z.ZodOptional<z.ZodBoolean>;
249
+ disableControls: z.ZodOptional<z.ZodBoolean>;
250
+ aspectRatio: z.ZodOptional<z.ZodNumber>;
251
+ }, z.core.$strip>>;
252
+ textInput: z.ZodOptional<z.ZodObject<{
253
+ show: z.ZodBoolean;
254
+ placeholder: z.ZodOptional<z.ZodString>;
255
+ showCopyButton: z.ZodOptional<z.ZodBoolean>;
256
+ prefilledText: z.ZodOptional<z.ZodString>;
257
+ }, z.core.$strip>>;
258
+ ctaButton: z.ZodOptional<z.ZodObject<{
259
+ show: z.ZodBoolean;
260
+ label: z.ZodString;
261
+ href: z.ZodString;
262
+ }, z.core.$strip>>;
263
+ radioButtons: z.ZodOptional<z.ZodArray<z.ZodObject<{
264
+ heading: z.ZodOptional<z.ZodString>;
265
+ body: z.ZodOptional<z.ZodString>;
266
+ }, z.core.$strip>>>;
267
+ platform: z.ZodOptional<z.ZodEnum<{
268
+ "Web Only": "Web Only";
269
+ "App Only": "App Only";
270
+ All: "All";
271
+ }>>;
272
+ notification: z.ZodOptional<z.ZodObject<{
273
+ title: z.ZodString;
274
+ body: z.ZodString;
275
+ delayInHours: z.ZodNumber;
276
+ }, z.core.$strip>>;
277
+ }, z.core.$strip>>;
278
+ }, z.core.$strip>;
279
+ }, z.core.$strip>>;
280
+ }, z.core.$strip>;
195
281
  export declare const MicroLessonSubmission: z.ZodObject<{
196
282
  city: z.ZodOptional<z.ZodString>;
197
283
  country: z.ZodOptional<z.ZodString>;
@@ -205,9 +291,12 @@ export declare const MicroLessonSubmission: z.ZodObject<{
205
291
  timeSubmitted: z.ZodNumber;
206
292
  platform: z.ZodEnum<{
207
293
  web: "web";
208
- ios: "ios";
209
294
  android: "android";
295
+ ios: "ios";
210
296
  }>;
211
297
  }, z.core.$strip>;
212
298
  export type MicroLessonSubmission = z.infer<typeof MicroLessonSubmission>;
299
+ export declare const MicroLessonLanguagesResponse: z.ZodObject<{
300
+ data: z.ZodArray<z.ZodString>;
301
+ }, z.core.$strip>;
213
302
  export type MicroLessonCategory = z.infer<typeof MicroLesson>['category'];
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.MicroLessonSubmission = exports.MicroLessonEntry = exports.MicroLesson = exports.MicroLessonCtaButton = exports.MicroLessonRadioButton = void 0;
6
+ exports.MicroLessonLanguagesResponse = exports.MicroLessonSubmission = exports.MicroLessonsResponse = exports.ResponseMicroLesson = exports.MicroLesson = exports.MicroLessonCtaButton = exports.MicroLessonRadioButton = void 0;
7
7
  const v4_1 = __importDefault(require("zod/v4"));
8
8
  const languages_zod_1 = require("../data/languages/languages.zod");
9
9
  const location_1 = require("./location");
@@ -94,15 +94,13 @@ exports.MicroLesson = v4_1.default.object({
94
94
  .describe('A single page of the micro lesson.'))
95
95
  .describe('The pages that make up the micro lesson. The last page is the completion page and will always have a button redirecting the user back.'),
96
96
  });
97
- /**
98
- * A micro-lesson as the app gets it from the website: its frontmatter as
99
- * `data`, plus Astro's `id` (the file path, like `eng/some-lesson`). There's
100
- * no `body`, because a micro-lesson's content is all in its frontmatter.
101
- */
102
- exports.MicroLessonEntry = v4_1.default.object({
97
+ exports.ResponseMicroLesson = v4_1.default.object({
103
98
  id: v4_1.default.string(),
104
99
  data: exports.MicroLesson,
105
100
  });
101
+ exports.MicroLessonsResponse = v4_1.default.object({
102
+ data: v4_1.default.array(exports.ResponseMicroLesson),
103
+ });
106
104
  exports.MicroLessonSubmission = location_1.WahaUserLocation.extend({
107
105
  microLessonId: v4_1.default.string(),
108
106
  userId: v4_1.default.string(),
@@ -113,3 +111,6 @@ exports.MicroLessonSubmission = location_1.WahaUserLocation.extend({
113
111
  timeSubmitted: v4_1.default.number(),
114
112
  platform: v4_1.default.enum(['ios', 'android', 'web']),
115
113
  });
114
+ exports.MicroLessonLanguagesResponse = v4_1.default.object({
115
+ data: v4_1.default.array(v4_1.default.string()),
116
+ });
@@ -20,3 +20,41 @@ export type DripLanguageId = z.infer<typeof DripLanguageId>;
20
20
  * the file name for the email's source .md file.
21
21
  */
22
22
  export type DripEmailId = `${DripSequenceId}_${number}`;
23
+ /** `POST /api/submit-subscribe` (form data): an explicit newsletter signup. */
24
+ export declare const NewsletterSignupBody: z.ZodObject<{
25
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
26
+ name: z.ZodOptional<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ export type NewsletterSignupBody = z.infer<typeof NewsletterSignupBody>;
29
+ /** `POST /api/submit-contact` (form data): the website's contact form. */
30
+ export declare const ContactFormBody: z.ZodObject<{
31
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
32
+ name: z.ZodString;
33
+ message: z.ZodString;
34
+ }, z.core.$strip>;
35
+ export type ContactFormBody = z.infer<typeof ContactFormBody>;
36
+ /**
37
+ * `POST /api/add-to-donation-sequence` (JSON): starts the donor thank-you
38
+ * drip.
39
+ */
40
+ export declare const DonorSequenceBody: z.ZodObject<{
41
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
42
+ name: z.ZodOptional<z.ZodString>;
43
+ newsletter: z.ZodOptional<z.ZodBoolean>;
44
+ }, z.core.$strip>;
45
+ export type DonorSequenceBody = z.infer<typeof DonorSequenceBody>;
46
+ /**
47
+ * `POST /api/subscribe-drip` (JSON, Firebase ID token). Any language is
48
+ * accepted so callers don't need to know which ones have a drip; unsupported
49
+ * ones are a no-op.
50
+ */
51
+ export declare const SubscribeDripBody: z.ZodObject<{
52
+ sequence: z.ZodEnum<{
53
+ drip_believer: "drip_believer";
54
+ drip_seeker: "drip_seeker";
55
+ }>;
56
+ languageId: z.ZodString;
57
+ firstName: z.ZodOptional<z.ZodString>;
58
+ newsletter: z.ZodOptional<z.ZodBoolean>;
59
+ }, z.core.$strip>;
60
+ export type SubscribeDripBody = z.infer<typeof SubscribeDripBody>;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.DripLanguageId = exports.DRIP_LANGUAGES = exports.DripSequenceId = void 0;
6
+ exports.SubscribeDripBody = exports.DonorSequenceBody = exports.ContactFormBody = exports.NewsletterSignupBody = exports.DripLanguageId = exports.DRIP_LANGUAGES = exports.DripSequenceId = void 0;
7
7
  exports.dripLanguagesWithStatus = dripLanguagesWithStatus;
8
8
  const zod_1 = __importDefault(require("zod"));
9
9
  const languages_1 = require("../data/languages");
@@ -23,3 +23,47 @@ exports.DRIP_LANGUAGES = dripLanguagesWithStatus('launched');
23
23
  exports.DripLanguageId = zod_1.default
24
24
  .string()
25
25
  .refine((id) => exports.DRIP_LANGUAGES.includes(id), 'Not a launched drip language.');
26
+ /*
27
+ * Request bodies for the website endpoints that write to Resend. The website
28
+ * parses incoming requests with these, and the app types what it sends with
29
+ * them. Auth (a reCAPTCHA token or a Firebase ID token) isn't part of the body
30
+ * schemas; each endpoint checks it separately.
31
+ */
32
+ const Email = zod_1.default.string().trim().pipe(zod_1.default.email());
33
+ const Name = zod_1.default.string().trim().max(200);
34
+ /**
35
+ * Whether the user ticked the newsletter box alongside this signup. Shipped app
36
+ * versions don't send it, and missing means no: the newsletter needs consent.
37
+ */
38
+ const Newsletter = zod_1.default.boolean().optional();
39
+ /** `POST /api/submit-subscribe` (form data): an explicit newsletter signup. */
40
+ exports.NewsletterSignupBody = zod_1.default.object({
41
+ email: Email,
42
+ name: Name.optional(),
43
+ });
44
+ /** `POST /api/submit-contact` (form data): the website's contact form. */
45
+ exports.ContactFormBody = zod_1.default.object({
46
+ email: Email,
47
+ name: Name,
48
+ message: zod_1.default.string().trim().min(1).max(5000),
49
+ });
50
+ /**
51
+ * `POST /api/add-to-donation-sequence` (JSON): starts the donor thank-you
52
+ * drip.
53
+ */
54
+ exports.DonorSequenceBody = zod_1.default.object({
55
+ email: Email,
56
+ name: Name.optional(),
57
+ newsletter: Newsletter,
58
+ });
59
+ /**
60
+ * `POST /api/subscribe-drip` (JSON, Firebase ID token). Any language is
61
+ * accepted so callers don't need to know which ones have a drip; unsupported
62
+ * ones are a no-op.
63
+ */
64
+ exports.SubscribeDripBody = zod_1.default.object({
65
+ sequence: exports.DripSequenceId,
66
+ languageId: zod_1.default.string(),
67
+ firstName: Name.optional(),
68
+ newsletter: Newsletter,
69
+ });