@fonoster/apiserver 0.43.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,228 +1,87 @@
1
1
  import { z } from "zod";
2
2
  /** Product features. Code checks these, never an edition. Community defaults. */
3
- declare const featuresSchema: z.ZodDefault<z.ZodObject<{
4
- auth: z.ZodDefault<z.ZodObject<{
5
- methods: z.ZodDefault<z.ZodArray<z.ZodEnum<["password", "email_code", "github"]>, "atleastone">>;
6
- signup: z.ZodDefault<z.ZodEnum<["invite", "open"]>>;
7
- }, "strip", z.ZodTypeAny, {
8
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
9
- signup?: "invite" | "open";
10
- }, {
11
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
12
- signup?: "invite" | "open";
13
- }>>;
14
- billing: z.ZodDefault<z.ZodObject<{
3
+ declare const featuresSchema: z.ZodPrefault<z.ZodObject<{
4
+ auth: z.ZodPrefault<z.ZodObject<{
5
+ methods: z.ZodDefault<z.ZodArray<z.ZodEnum<{
6
+ password: "password";
7
+ email_code: "email_code";
8
+ github: "github";
9
+ }>>>;
10
+ signup: z.ZodDefault<z.ZodEnum<{
11
+ invite: "invite";
12
+ open: "open";
13
+ }>>;
14
+ }, z.core.$strip>>;
15
+ billing: z.ZodPrefault<z.ZodObject<{
15
16
  enabled: z.ZodDefault<z.ZodBoolean>;
16
- /** The billing service's Billing API (host:port); defaults to authz.host:50073. */
17
17
  address: z.ZodOptional<z.ZodString>;
18
- }, "strip", z.ZodTypeAny, {
19
- enabled?: boolean;
20
- address?: string;
21
- }, {
22
- enabled?: boolean;
23
- address?: string;
24
- }>>;
25
- costs: z.ZodDefault<z.ZodObject<{
26
- display: z.ZodDefault<z.ZodEnum<["none", "usage", "prices"]>>;
27
- }, "strip", z.ZodTypeAny, {
28
- display?: "none" | "usage" | "prices";
29
- }, {
30
- display?: "none" | "usage" | "prices";
31
- }>>;
32
- calls: z.ZodDefault<z.ZodObject<{
33
- transcripts: z.ZodDefault<z.ZodObject<{
18
+ }, z.core.$strip>>;
19
+ costs: z.ZodPrefault<z.ZodObject<{
20
+ display: z.ZodDefault<z.ZodEnum<{
21
+ none: "none";
22
+ usage: "usage";
23
+ prices: "prices";
24
+ }>>;
25
+ }, z.core.$strip>>;
26
+ calls: z.ZodPrefault<z.ZodObject<{
27
+ transcripts: z.ZodPrefault<z.ZodObject<{
34
28
  store: z.ZodDefault<z.ZodBoolean>;
35
29
  retentionDays: z.ZodDefault<z.ZodNumber>;
36
- }, "strip", z.ZodTypeAny, {
37
- store?: boolean;
38
- retentionDays?: number;
39
- }, {
40
- store?: boolean;
41
- retentionDays?: number;
42
- }>>;
43
- recordings: z.ZodDefault<z.ZodObject<{
30
+ }, z.core.$strip>>;
31
+ recordings: z.ZodPrefault<z.ZodObject<{
44
32
  store: z.ZodDefault<z.ZodBoolean>;
45
- }, "strip", z.ZodTypeAny, {
46
- store?: boolean;
47
- }, {
48
- store?: boolean;
33
+ }, z.core.$strip>>;
34
+ }, z.core.$strip>>;
35
+ sip: z.ZodPrefault<z.ZodObject<{
36
+ names: z.ZodDefault<z.ZodEnum<{
37
+ domain: "domain";
38
+ any: "any";
49
39
  }>>;
50
- }, "strip", z.ZodTypeAny, {
51
- transcripts?: {
52
- store?: boolean;
53
- retentionDays?: number;
54
- };
55
- recordings?: {
56
- store?: boolean;
57
- };
58
- }, {
59
- transcripts?: {
60
- store?: boolean;
61
- retentionDays?: number;
62
- };
63
- recordings?: {
64
- store?: boolean;
65
- };
66
- }>>;
67
- /**
68
- * SIP names (trunk inbound URIs, domains): "domain" requires one DNS label
69
- * under `sip.<domain>` (carriers and phones reach a wildcard `*.sip.<domain>`);
70
- * "any" accepts any host or IP, for installs reached by address.
71
- */
72
- sip: z.ZodDefault<z.ZodObject<{
73
- names: z.ZodDefault<z.ZodEnum<["domain", "any"]>>;
74
- }, "strip", z.ZodTypeAny, {
75
- names?: "domain" | "any";
76
- }, {
77
- names?: "domain" | "any";
78
- }>>;
79
- }, "strip", z.ZodTypeAny, {
80
- auth?: {
81
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
82
- signup?: "invite" | "open";
83
- };
84
- billing?: {
85
- enabled?: boolean;
86
- address?: string;
87
- };
88
- costs?: {
89
- display?: "none" | "usage" | "prices";
90
- };
91
- calls?: {
92
- transcripts?: {
93
- store?: boolean;
94
- retentionDays?: number;
95
- };
96
- recordings?: {
97
- store?: boolean;
98
- };
99
- };
100
- sip?: {
101
- names?: "domain" | "any";
102
- };
103
- }, {
104
- auth?: {
105
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
106
- signup?: "invite" | "open";
107
- };
108
- billing?: {
109
- enabled?: boolean;
110
- address?: string;
111
- };
112
- costs?: {
113
- display?: "none" | "usage" | "prices";
114
- };
115
- calls?: {
116
- transcripts?: {
117
- store?: boolean;
118
- retentionDays?: number;
119
- };
120
- recordings?: {
121
- store?: boolean;
122
- };
123
- };
124
- sip?: {
125
- names?: "domain" | "any";
126
- };
127
- }>>;
40
+ }, z.core.$strip>>;
41
+ }, z.core.$strip>>;
128
42
  /** fonoster.yaml: everything the API server (and embedded Identity) needs. */
129
- declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
130
- /** Public hostname. Sets the defaults for appUrl, signalingServer and the SIP root domain. */
43
+ declare const fonosterConfigSchema: z.ZodObject<{
131
44
  domain: z.ZodString;
132
- /** Links in emails. Defaults to https://<domain>. */
133
45
  appUrl: z.ZodOptional<z.ZodString>;
134
- /** Browser test calls: SIP over WebSocket. Defaults to ws(s)://<appUrl host>/sip. */
135
46
  signalingServer: z.ZodOptional<z.ZodString>;
136
- server: z.ZodDefault<z.ZodObject<{
47
+ server: z.ZodPrefault<z.ZodObject<{
137
48
  bindAddr: z.ZodDefault<z.ZodString>;
138
49
  httpBridgePort: z.ZodDefault<z.ZodNumber>;
139
- /** How other services reach this one. */
140
50
  host: z.ZodDefault<z.ZodString>;
141
- }, "strip", z.ZodTypeAny, {
142
- host?: string;
143
- bindAddr?: string;
144
- httpBridgePort?: number;
145
- }, {
146
- host?: string;
147
- bindAddr?: string;
148
- httpBridgePort?: number;
149
- }>>;
150
- logs: z.ZodDefault<z.ZodEffects<z.ZodObject<{
151
- level: z.ZodDefault<z.ZodEnum<["error", "warn", "info", "http", "verbose", "debug", "silly"]>>;
152
- format: z.ZodDefault<z.ZodEnum<["json", "text"]>>;
153
- transport: z.ZodDefault<z.ZodEnum<["console", "fluent"]>>;
51
+ }, z.core.$strip>>;
52
+ logs: z.ZodPrefault<z.ZodObject<{
53
+ level: z.ZodDefault<z.ZodEnum<{
54
+ error: "error";
55
+ warn: "warn";
56
+ info: "info";
57
+ http: "http";
58
+ verbose: "verbose";
59
+ debug: "debug";
60
+ silly: "silly";
61
+ }>>;
62
+ format: z.ZodDefault<z.ZodEnum<{
63
+ text: "text";
64
+ json: "json";
65
+ }>>;
66
+ transport: z.ZodDefault<z.ZodEnum<{
67
+ console: "console";
68
+ fluent: "fluent";
69
+ }>>;
154
70
  fluent: z.ZodOptional<z.ZodObject<{
155
71
  host: z.ZodString;
156
72
  port: z.ZodDefault<z.ZodNumber>;
157
73
  tagPrefix: z.ZodDefault<z.ZodString>;
158
- }, "strip", z.ZodTypeAny, {
159
- host?: string;
160
- port?: number;
161
- tagPrefix?: string;
162
- }, {
163
- host?: string;
164
- port?: number;
165
- tagPrefix?: string;
166
- }>>;
167
- }, "strip", z.ZodTypeAny, {
168
- format?: "text" | "json";
169
- level?: "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
170
- fluent?: {
171
- host?: string;
172
- port?: number;
173
- tagPrefix?: string;
174
- };
175
- transport?: "console" | "fluent";
176
- }, {
177
- format?: "text" | "json";
178
- level?: "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
179
- fluent?: {
180
- host?: string;
181
- port?: number;
182
- tagPrefix?: string;
183
- };
184
- transport?: "console" | "fluent";
185
- }>, {
186
- format?: "text" | "json";
187
- level?: "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
188
- fluent?: {
189
- host?: string;
190
- port?: number;
191
- tagPrefix?: string;
192
- };
193
- transport?: "console" | "fluent";
194
- }, {
195
- format?: "text" | "json";
196
- level?: "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
197
- fluent?: {
198
- host?: string;
199
- port?: number;
200
- tagPrefix?: string;
201
- };
202
- transport?: "console" | "fluent";
203
- }>>;
204
- /** OTLP export (empty = off): `otlpEndpoint: "${OTEL_EXPORTER_OTLP_ENDPOINT:-}"`. */
74
+ }, z.core.$strip>>;
75
+ }, z.core.$strip>>;
205
76
  telemetry: z.ZodOptional<z.ZodObject<{
206
77
  otlpEndpoint: z.ZodOptional<z.ZodString>;
207
- }, "strip", z.ZodTypeAny, {
208
- otlpEndpoint?: string;
209
- }, {
210
- otlpEndpoint?: string;
211
- }>>;
78
+ }, z.core.$strip>>;
212
79
  database: z.ZodObject<{
213
80
  url: z.ZodString;
214
- }, "strip", z.ZodTypeAny, {
215
- url?: string;
216
- }, {
217
- url?: string;
218
- }>;
81
+ }, z.core.$strip>;
219
82
  encryption: z.ZodObject<{
220
83
  key: z.ZodString;
221
- }, "strip", z.ZodTypeAny, {
222
- key?: string;
223
- }, {
224
- key?: string;
225
- }>;
84
+ }, z.core.$strip>;
226
85
  smtp: z.ZodOptional<z.ZodObject<{
227
86
  host: z.ZodString;
228
87
  port: z.ZodDefault<z.ZodNumber>;
@@ -230,268 +89,88 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
230
89
  sender: z.ZodString;
231
90
  user: z.ZodDefault<z.ZodString>;
232
91
  password: z.ZodDefault<z.ZodString>;
233
- }, "strip", z.ZodTypeAny, {
234
- user?: string;
235
- password?: string;
236
- host?: string;
237
- port?: number;
238
- secure?: boolean;
239
- sender?: string;
240
- }, {
241
- user?: string;
242
- password?: string;
243
- host?: string;
244
- port?: number;
245
- secure?: boolean;
246
- sender?: string;
247
- }>>;
248
- authz: z.ZodDefault<z.ZodObject<{
92
+ }, z.core.$strip>>;
93
+ authz: z.ZodPrefault<z.ZodObject<{
249
94
  enabled: z.ZodDefault<z.ZodBoolean>;
250
95
  host: z.ZodOptional<z.ZodString>;
251
96
  port: z.ZodDefault<z.ZodNumber>;
252
- methods: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
253
- }, "strip", z.ZodTypeAny, {
254
- enabled?: boolean;
255
- host?: string;
256
- port?: number;
257
- methods?: string[];
258
- }, {
259
- enabled?: boolean;
260
- host?: string;
261
- port?: number;
262
- methods?: string[];
263
- }>>;
264
- features: z.ZodDefault<z.ZodObject<{
265
- auth: z.ZodDefault<z.ZodObject<{
266
- methods: z.ZodDefault<z.ZodArray<z.ZodEnum<["password", "email_code", "github"]>, "atleastone">>;
267
- signup: z.ZodDefault<z.ZodEnum<["invite", "open"]>>;
268
- }, "strip", z.ZodTypeAny, {
269
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
270
- signup?: "invite" | "open";
271
- }, {
272
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
273
- signup?: "invite" | "open";
274
- }>>;
275
- billing: z.ZodDefault<z.ZodObject<{
97
+ methods: z.ZodDefault<z.ZodArray<z.ZodString>>;
98
+ }, z.core.$strip>>;
99
+ features: z.ZodPrefault<z.ZodObject<{
100
+ auth: z.ZodPrefault<z.ZodObject<{
101
+ methods: z.ZodDefault<z.ZodArray<z.ZodEnum<{
102
+ password: "password";
103
+ email_code: "email_code";
104
+ github: "github";
105
+ }>>>;
106
+ signup: z.ZodDefault<z.ZodEnum<{
107
+ invite: "invite";
108
+ open: "open";
109
+ }>>;
110
+ }, z.core.$strip>>;
111
+ billing: z.ZodPrefault<z.ZodObject<{
276
112
  enabled: z.ZodDefault<z.ZodBoolean>;
277
- /** The billing service's Billing API (host:port); defaults to authz.host:50073. */
278
113
  address: z.ZodOptional<z.ZodString>;
279
- }, "strip", z.ZodTypeAny, {
280
- enabled?: boolean;
281
- address?: string;
282
- }, {
283
- enabled?: boolean;
284
- address?: string;
285
- }>>;
286
- costs: z.ZodDefault<z.ZodObject<{
287
- display: z.ZodDefault<z.ZodEnum<["none", "usage", "prices"]>>;
288
- }, "strip", z.ZodTypeAny, {
289
- display?: "none" | "usage" | "prices";
290
- }, {
291
- display?: "none" | "usage" | "prices";
292
- }>>;
293
- calls: z.ZodDefault<z.ZodObject<{
294
- transcripts: z.ZodDefault<z.ZodObject<{
114
+ }, z.core.$strip>>;
115
+ costs: z.ZodPrefault<z.ZodObject<{
116
+ display: z.ZodDefault<z.ZodEnum<{
117
+ none: "none";
118
+ usage: "usage";
119
+ prices: "prices";
120
+ }>>;
121
+ }, z.core.$strip>>;
122
+ calls: z.ZodPrefault<z.ZodObject<{
123
+ transcripts: z.ZodPrefault<z.ZodObject<{
295
124
  store: z.ZodDefault<z.ZodBoolean>;
296
125
  retentionDays: z.ZodDefault<z.ZodNumber>;
297
- }, "strip", z.ZodTypeAny, {
298
- store?: boolean;
299
- retentionDays?: number;
300
- }, {
301
- store?: boolean;
302
- retentionDays?: number;
303
- }>>;
304
- recordings: z.ZodDefault<z.ZodObject<{
126
+ }, z.core.$strip>>;
127
+ recordings: z.ZodPrefault<z.ZodObject<{
305
128
  store: z.ZodDefault<z.ZodBoolean>;
306
- }, "strip", z.ZodTypeAny, {
307
- store?: boolean;
308
- }, {
309
- store?: boolean;
129
+ }, z.core.$strip>>;
130
+ }, z.core.$strip>>;
131
+ sip: z.ZodPrefault<z.ZodObject<{
132
+ names: z.ZodDefault<z.ZodEnum<{
133
+ domain: "domain";
134
+ any: "any";
310
135
  }>>;
311
- }, "strip", z.ZodTypeAny, {
312
- transcripts?: {
313
- store?: boolean;
314
- retentionDays?: number;
315
- };
316
- recordings?: {
317
- store?: boolean;
318
- };
319
- }, {
320
- transcripts?: {
321
- store?: boolean;
322
- retentionDays?: number;
323
- };
324
- recordings?: {
325
- store?: boolean;
326
- };
327
- }>>;
328
- /**
329
- * SIP names (trunk inbound URIs, domains): "domain" requires one DNS label
330
- * under `sip.<domain>` (carriers and phones reach a wildcard `*.sip.<domain>`);
331
- * "any" accepts any host or IP, for installs reached by address.
332
- */
333
- sip: z.ZodDefault<z.ZodObject<{
334
- names: z.ZodDefault<z.ZodEnum<["domain", "any"]>>;
335
- }, "strip", z.ZodTypeAny, {
336
- names?: "domain" | "any";
337
- }, {
338
- names?: "domain" | "any";
339
- }>>;
340
- }, "strip", z.ZodTypeAny, {
341
- auth?: {
342
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
343
- signup?: "invite" | "open";
344
- };
345
- billing?: {
346
- enabled?: boolean;
347
- address?: string;
348
- };
349
- costs?: {
350
- display?: "none" | "usage" | "prices";
351
- };
352
- calls?: {
353
- transcripts?: {
354
- store?: boolean;
355
- retentionDays?: number;
356
- };
357
- recordings?: {
358
- store?: boolean;
359
- };
360
- };
361
- sip?: {
362
- names?: "domain" | "any";
363
- };
364
- }, {
365
- auth?: {
366
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
367
- signup?: "invite" | "open";
368
- };
369
- billing?: {
370
- enabled?: boolean;
371
- address?: string;
372
- };
373
- costs?: {
374
- display?: "none" | "usage" | "prices";
375
- };
376
- calls?: {
377
- transcripts?: {
378
- store?: boolean;
379
- retentionDays?: number;
380
- };
381
- recordings?: {
382
- store?: boolean;
383
- };
384
- };
385
- sip?: {
386
- names?: "domain" | "any";
387
- };
388
- }>>;
389
- routr: z.ZodDefault<z.ZodObject<{
136
+ }, z.core.$strip>>;
137
+ }, z.core.$strip>>;
138
+ routr: z.ZodPrefault<z.ZodObject<{
390
139
  apiEndpoint: z.ZodDefault<z.ZodString>;
391
- /**
392
- * host:port of Routr's SIP listener: API-originated calls are dialed through it
393
- * (CreateCall's to.proxy), as the roomr peer below (to.auth).
394
- */
395
140
  sipProxy: z.ZodDefault<z.ZodString>;
396
- /**
397
- * The peer Go Roomr nodes register under (least-sessions, add-roomr 4.1). Without a
398
- * password the apiserver does not create it.
399
- */
400
- roomrPeer: z.ZodDefault<z.ZodObject<{
141
+ roomrPeer: z.ZodPrefault<z.ZodObject<{
401
142
  aor: z.ZodDefault<z.ZodString>;
402
143
  name: z.ZodDefault<z.ZodString>;
403
144
  username: z.ZodDefault<z.ZodString>;
404
145
  password: z.ZodOptional<z.ZodString>;
405
- }, "strip", z.ZodTypeAny, {
406
- name?: string;
407
- aor?: string;
408
- username?: string;
409
- password?: string;
410
- }, {
411
- name?: string;
412
- aor?: string;
413
- username?: string;
414
- password?: string;
415
- }>>;
416
- }, "strip", z.ZodTypeAny, {
417
- apiEndpoint?: string;
418
- sipProxy?: string;
419
- roomrPeer?: {
420
- name?: string;
421
- aor?: string;
422
- username?: string;
423
- password?: string;
424
- };
425
- }, {
426
- apiEndpoint?: string;
427
- sipProxy?: string;
428
- roomrPeer?: {
429
- name?: string;
430
- aor?: string;
431
- username?: string;
432
- password?: string;
433
- };
434
- }>>;
146
+ }, z.core.$strip>>;
147
+ }, z.core.$strip>>;
435
148
  nats: z.ZodObject<{
436
149
  url: z.ZodString;
437
150
  user: z.ZodOptional<z.ZodString>;
438
151
  password: z.ZodOptional<z.ZodString>;
439
- }, "strip", z.ZodTypeAny, {
440
- url?: string;
441
- password?: string;
442
- user?: string;
443
- }, {
444
- url?: string;
445
- password?: string;
446
- user?: string;
447
- }>;
448
- evaluations: z.ZodDefault<z.ZodObject<{
449
- credentials: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
450
- }, "strip", z.ZodTypeAny, {
451
- credentials?: Record<string, string>;
452
- }, {
453
- credentials?: Record<string, string>;
454
- }>>;
152
+ }, z.core.$strip>;
153
+ evaluations: z.ZodPrefault<z.ZodObject<{
154
+ credentials: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
155
+ }, z.core.$strip>>;
455
156
  templatesDir: z.ZodOptional<z.ZodString>;
456
157
  twilio: z.ZodOptional<z.ZodObject<{
457
158
  phoneNumber: z.ZodString;
458
159
  accountSid: z.ZodString;
459
160
  authToken: z.ZodString;
460
- }, "strip", z.ZodTypeAny, {
461
- phoneNumber?: string;
462
- accountSid?: string;
463
- authToken?: string;
464
- }, {
465
- phoneNumber?: string;
466
- accountSid?: string;
467
- authToken?: string;
468
- }>>;
469
- identity: z.ZodDefault<z.ZodObject<{
161
+ }, z.core.$strip>>;
162
+ identity: z.ZodPrefault<z.ZodObject<{
470
163
  database: z.ZodOptional<z.ZodObject<{
471
164
  url: z.ZodString;
472
- }, "strip", z.ZodTypeAny, {
473
- url?: string;
474
- }, {
475
- url?: string;
476
- }>>;
165
+ }, z.core.$strip>>;
477
166
  issuer: z.ZodOptional<z.ZodString>;
478
167
  audience: z.ZodDefault<z.ZodString>;
479
- keys: z.ZodEffects<z.ZodDefault<z.ZodObject<{
168
+ keys: z.ZodPipe<z.ZodPrefault<z.ZodObject<{
480
169
  privateKey: z.ZodOptional<z.ZodString>;
481
170
  publicKey: z.ZodOptional<z.ZodString>;
482
171
  privateKeyPath: z.ZodOptional<z.ZodString>;
483
172
  publicKeyPath: z.ZodOptional<z.ZodString>;
484
- }, "strip", z.ZodTypeAny, {
485
- privateKey?: string;
486
- publicKey?: string;
487
- privateKeyPath?: string;
488
- publicKeyPath?: string;
489
- }, {
490
- privateKey?: string;
491
- publicKey?: string;
492
- privateKeyPath?: string;
493
- publicKeyPath?: string;
494
- }>>, {
173
+ }, z.core.$strip>>, z.ZodTransform<{
495
174
  privateKey: string;
496
175
  publicKey: string;
497
176
  privateKeyPath: string;
@@ -501,153 +180,35 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
501
180
  publicKey?: string;
502
181
  privateKeyPath?: string;
503
182
  publicKeyPath?: string;
504
- }>;
505
- tokens: z.ZodDefault<z.ZodObject<{
183
+ }>>;
184
+ tokens: z.ZodPrefault<z.ZodObject<{
506
185
  accessTokenExpiresIn: z.ZodDefault<z.ZodString>;
507
186
  idTokenExpiresIn: z.ZodDefault<z.ZodString>;
508
187
  refreshTokenExpiresIn: z.ZodDefault<z.ZodString>;
509
- }, "strip", z.ZodTypeAny, {
510
- accessTokenExpiresIn?: string;
511
- idTokenExpiresIn?: string;
512
- refreshTokenExpiresIn?: string;
513
- }, {
514
- accessTokenExpiresIn?: string;
515
- idTokenExpiresIn?: string;
516
- refreshTokenExpiresIn?: string;
517
- }>>;
518
- security: z.ZodDefault<z.ZodObject<{
188
+ }, z.core.$strip>>;
189
+ security: z.ZodPrefault<z.ZodObject<{
519
190
  contactVerificationRequired: z.ZodDefault<z.ZodBoolean>;
520
191
  twoFactorAuthenticationRequired: z.ZodDefault<z.ZodBoolean>;
521
- }, "strip", z.ZodTypeAny, {
522
- contactVerificationRequired?: boolean;
523
- twoFactorAuthenticationRequired?: boolean;
524
- }, {
525
- contactVerificationRequired?: boolean;
526
- twoFactorAuthenticationRequired?: boolean;
527
- }>>;
528
- invites: z.ZodDefault<z.ZodObject<{
192
+ }, z.core.$strip>>;
193
+ invites: z.ZodPrefault<z.ZodObject<{
529
194
  url: z.ZodOptional<z.ZodString>;
530
195
  failUrl: z.ZodOptional<z.ZodString>;
531
196
  expiration: z.ZodDefault<z.ZodString>;
532
- }, "strip", z.ZodTypeAny, {
533
- url? /** Relays in flight per region (HTTP 429 beyond). */: string;
534
- failUrl?: string;
535
- expiration?: string;
536
- }, {
537
- url?: string;
538
- failUrl?: string;
539
- expiration?: string;
540
- }>>;
197
+ }, z.core.$strip>>;
541
198
  oauth2: z.ZodOptional<z.ZodObject<{
542
199
  github: z.ZodObject<{
543
200
  clientId: z.ZodString;
544
201
  clientSecret: z.ZodString;
545
- url: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string>;
546
- apiUrl: z.ZodEffects<z.ZodDefault<z.ZodString>, string, string>;
547
- }, "strip", z.ZodTypeAny, {
548
- url?: string;
549
- clientId?: string;
550
- clientSecret?: string;
551
- apiUrl?: string;
552
- }, {
553
- url?: string;
554
- clientId?: string;
555
- clientSecret?: string;
556
- apiUrl?: string;
557
- }>;
558
- }, "strip", z.ZodTypeAny, {
559
- github?: {
560
- url?: string;
561
- clientId?: string;
562
- clientSecret?: string;
563
- apiUrl?: string;
564
- };
565
- }, {
566
- github?: {
567
- url? /** OTLP export (empty = off): `otlpEndpoint: "${OTEL_EXPORTER_OTLP_ENDPOINT:-}"`. */: string;
568
- clientId?: string;
569
- clientSecret?: string;
570
- apiUrl?: string;
571
- };
572
- }>>;
573
- }, "strip", z.ZodTypeAny, {
574
- keys?: {
575
- privateKey: string;
576
- publicKey: string;
577
- privateKeyPath: string;
578
- publicKeyPath: string;
579
- };
580
- database?: {
581
- url?: string;
582
- };
583
- issuer?: string;
584
- audience?: string;
585
- tokens?: {
586
- accessTokenExpiresIn?: string;
587
- idTokenExpiresIn?: string;
588
- refreshTokenExpiresIn?: string;
589
- };
590
- security?: {
591
- contactVerificationRequired?: boolean;
592
- twoFactorAuthenticationRequired?: boolean;
593
- };
594
- invites?: {
595
- url?: string;
596
- failUrl?: string;
597
- expiration?: string;
598
- };
599
- oauth2?: {
600
- github?: {
601
- url?: string;
602
- clientId?: string;
603
- clientSecret?: string;
604
- apiUrl?: string;
605
- };
606
- };
607
- }, {
608
- keys?: {
609
- privateKey?: string;
610
- publicKey?: string;
611
- privateKeyPath?: string;
612
- publicKeyPath?: string;
613
- };
614
- database?: {
615
- url?: string;
616
- };
617
- issuer?: string;
618
- audience?: string;
619
- tokens?: {
620
- accessTokenExpiresIn?: string;
621
- idTokenExpiresIn?: string;
622
- refreshTokenExpiresIn?: string;
623
- };
624
- security?: {
625
- contactVerificationRequired?: boolean;
626
- twoFactorAuthenticationRequired?: boolean;
627
- };
628
- invites?: {
629
- url?: string;
630
- failUrl?: string;
631
- expiration?: string;
632
- };
633
- oauth2?: {
634
- github?: {
635
- url?: string;
636
- clientId?: string;
637
- clientSecret?: string;
638
- apiUrl?: string;
639
- };
640
- };
641
- }>>;
642
- callRecords: z.ZodDefault<z.ZodObject<{
202
+ url: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string, string>>;
203
+ apiUrl: z.ZodPipe<z.ZodDefault<z.ZodString>, z.ZodTransform<string, string>>;
204
+ }, z.core.$strip>;
205
+ }, z.core.$strip>>;
206
+ }, z.core.$strip>>;
207
+ callRecords: z.ZodPrefault<z.ZodObject<{
643
208
  enabled: z.ZodDefault<z.ZodBoolean>;
644
- stores: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
209
+ stores: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
645
210
  dir: z.ZodString;
646
- }, "strip", z.ZodTypeAny, {
647
- dir?: string;
648
- }, {
649
- dir?: string;
650
- }>, z.ZodObject<{
211
+ }, z.core.$strip>, z.ZodObject<{
651
212
  s3: z.ZodObject<{
652
213
  bucket: z.ZodString;
653
214
  prefix: z.ZodOptional<z.ZodString>;
@@ -657,1206 +218,78 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
657
218
  credentials: z.ZodOptional<z.ZodObject<{
658
219
  accessKeyId: z.ZodString;
659
220
  secretAccessKey: z.ZodString;
660
- }, "strip", z.ZodTypeAny, {
661
- accessKeyId?: string;
662
- secretAccessKey?: string;
663
- }, {
664
- accessKeyId?: string;
665
- secretAccessKey?: string;
666
- }>>;
667
- }, "strip", z.ZodTypeAny, {
668
- bucket?: string;
669
- prefix?: string;
670
- region?: string;
671
- endpoint?: string;
672
- forcePathStyle?: boolean;
673
- credentials?: {
674
- accessKeyId?: string;
675
- secretAccessKey?: string;
676
- };
677
- }, {
678
- bucket?: string;
679
- prefix?: string;
680
- region?: string;
681
- endpoint?: string;
682
- forcePathStyle?: boolean;
683
- credentials?: {
684
- accessKeyId?: string;
685
- secretAccessKey?: string;
686
- };
687
- }>;
688
- }, "strip", z.ZodTypeAny, {
689
- s3?: {
690
- bucket?: string;
691
- prefix?: string;
692
- region?: string;
693
- endpoint?: string;
694
- forcePathStyle?: boolean;
695
- credentials?: {
696
- accessKeyId?: string;
697
- secretAccessKey?: string;
698
- };
699
- };
700
- }, {
701
- s3?: {
702
- bucket?: string;
703
- prefix?: string;
704
- region?: string;
705
- endpoint?: string;
706
- forcePathStyle?: boolean;
707
- credentials?: {
708
- accessKeyId?: string;
709
- secretAccessKey?: string;
710
- };
711
- };
712
- }>]>, "many">>;
221
+ }, z.core.$strip>>;
222
+ }, z.core.$strip>;
223
+ }, z.core.$strip>]>>>;
713
224
  retentionIntervalMinutes: z.ZodDefault<z.ZodNumber>;
714
225
  maintenanceTimeoutMs: z.ZodDefault<z.ZodNumber>;
715
- }, "strip", z.ZodTypeAny, {
716
- enabled?: boolean;
717
- stores?: ({
718
- dir?: string;
719
- } | {
720
- s3?: {
721
- bucket?: string;
722
- prefix?: string;
723
- region?: string;
724
- endpoint?: string;
725
- forcePathStyle?: boolean;
726
- credentials?: {
727
- accessKeyId?: string;
728
- secretAccessKey?: string;
729
- };
730
- };
731
- })[];
732
- retentionIntervalMinutes?: number;
733
- maintenanceTimeoutMs?: number;
734
- }, {
735
- enabled?: boolean;
736
- stores?: ({
737
- dir?: string;
738
- } | {
739
- s3?: {
740
- bucket?: string;
741
- prefix?: string;
742
- region?: string;
743
- endpoint?: string;
744
- forcePathStyle?: boolean;
745
- credentials?: {
746
- accessKeyId?: string;
747
- secretAccessKey?: string;
748
- };
749
- };
750
- })[];
751
- retentionIntervalMinutes?: number;
752
- maintenanceTimeoutMs?: number;
753
- }>>;
754
- apps: z.ZodDefault<z.ZodObject<{
226
+ }, z.core.$strip>>;
227
+ apps: z.ZodPrefault<z.ZodObject<{
755
228
  autopilotUrl: z.ZodDefault<z.ZodString>;
756
229
  autopilotSigningSecret: z.ZodOptional<z.ZodString>;
757
- /** Plain http:// webhook endpoints (local testing only). */
758
230
  allowInsecureWebhooks: z.ZodDefault<z.ZodBoolean>;
759
- /**
760
- * Private hosts, IPs or CIDRs app and listener URLs may use (self-hosting); default
761
- * FONOSTER_ALLOWED_DESTINATIONS.
762
- */
763
- allowedDestinations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
764
- }, "strip", z.ZodTypeAny, {
765
- autopilotUrl?: string;
766
- autopilotSigningSecret?: string;
767
- allowInsecureWebhooks?: boolean;
768
- allowedDestinations?: string[];
769
- }, {
770
- autopilotUrl?: string;
771
- autopilotSigningSecret?: string;
772
- allowInsecureWebhooks?: boolean;
773
- allowedDestinations?: string[];
774
- }>>;
775
- webhooks: z.ZodDefault<z.ZodObject<{
231
+ allowedDestinations: z.ZodOptional<z.ZodArray<z.ZodString>>;
232
+ }, z.core.$strip>>;
233
+ webhooks: z.ZodPrefault<z.ZodObject<{
776
234
  fanout: z.ZodDefault<z.ZodBoolean>;
777
235
  intervalMs: z.ZodDefault<z.ZodNumber>;
778
236
  refreshMs: z.ZodDefault<z.ZodNumber>;
779
- }, "strip", z.ZodTypeAny, {
780
- fanout?: boolean;
781
- intervalMs?: number;
782
- refreshMs?: number;
783
- }, {
784
- fanout?: boolean;
785
- intervalMs?: number;
786
- refreshMs?: number;
787
- }>>;
237
+ }, z.core.$strip>>;
788
238
  catalog: z.ZodOptional<z.ZodObject<{
789
239
  file: z.ZodString;
790
- files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
791
- }, "strip", z.ZodTypeAny, {
792
- file?: string;
793
- files?: string[];
794
- }, {
795
- file?: string;
796
- files?: string[];
797
- }>>;
798
- regions: z.ZodDefault<z.ZodObject<{
240
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
241
+ }, z.core.$strip>>;
242
+ regions: z.ZodPrefault<z.ZodObject<{
799
243
  public: z.ZodDefault<z.ZodArray<z.ZodObject<{
800
244
  id: z.ZodString;
801
245
  name: z.ZodString;
802
246
  default: z.ZodOptional<z.ZodBoolean>;
803
- /** Where carriers and softphones reach this region (contract §3a). */
804
247
  endpoints: z.ZodOptional<z.ZodObject<{
805
248
  sip: z.ZodDefault<z.ZodArray<z.ZodObject<{
806
249
  host: z.ZodString;
807
- port: z.ZodNumber;
808
- transport: z.ZodEnum<["udp", "tcp", "tls", "ws", "wss"]>;
809
- }, "strip", z.ZodTypeAny, {
810
- host?: string;
811
- port?: number;
812
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
813
- }, {
814
- host?: string;
815
- port?: number;
816
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
817
- }>, "many">>;
818
- signalingAddresses: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
819
- mediaAddresses: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
250
+ port: z.ZodCoercedNumber<unknown>;
251
+ transport: z.ZodEnum<{
252
+ udp: "udp";
253
+ tcp: "tcp";
254
+ tls: "tls";
255
+ ws: "ws";
256
+ wss: "wss";
257
+ }>;
258
+ }, z.core.$strip>>>;
259
+ signalingAddresses: z.ZodDefault<z.ZodArray<z.ZodString>>;
260
+ mediaAddresses: z.ZodDefault<z.ZodArray<z.ZodString>>;
820
261
  rtpPorts: z.ZodOptional<z.ZodObject<{
821
- min: z.ZodNumber;
822
- max: z.ZodNumber;
823
- }, "strip", z.ZodTypeAny, {
824
- min?: number;
825
- max?: number;
826
- }, {
827
- min?: number;
828
- max?: number;
829
- }>>;
830
- }, "strip", z.ZodTypeAny, {
831
- sip?: {
832
- host?: string;
833
- port?: number;
834
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
835
- }[];
836
- signalingAddresses?: string[];
837
- mediaAddresses?: string[];
838
- rtpPorts?: {
839
- min?: number;
840
- max?: number;
841
- };
842
- }, {
843
- sip?: {
844
- host?: string;
845
- port?: number;
846
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
847
- }[];
848
- signalingAddresses?: string[];
849
- mediaAddresses?: string[];
850
- rtpPorts?: {
851
- min?: number;
852
- max?: number;
853
- };
854
- }>>;
855
- }, "strip", z.ZodTypeAny, {
856
- id?: string;
857
- name?: string;
858
- default?: boolean;
859
- endpoints?: {
860
- sip?: {
861
- host?: string;
862
- port?: number;
863
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
864
- }[];
865
- signalingAddresses?: string[];
866
- mediaAddresses?: string[];
867
- rtpPorts?: {
868
- min?: number;
869
- max?: number;
870
- };
871
- };
872
- }, {
873
- id?: string;
874
- name?: string;
875
- default?: boolean;
876
- endpoints?: {
877
- sip?: {
878
- host?: string;
879
- port?: number;
880
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
881
- }[];
882
- signalingAddresses?: string[];
883
- mediaAddresses?: string[];
884
- rtpPorts?: {
885
- min?: number;
886
- max?: number;
887
- };
888
- };
889
- }>, "many">>;
890
- /**
891
- * The operator key (PR-19): the only credential of the region admin API (create, list,
892
- * publish, revoke public regions). `secret://` references are resolved. Absent: admin API off.
893
- */
262
+ min: z.ZodCoercedNumber<unknown>;
263
+ max: z.ZodCoercedNumber<unknown>;
264
+ }, z.core.$strip>>;
265
+ }, z.core.$strip>>;
266
+ }, z.core.$strip>>>;
894
267
  operatorKey: z.ZodOptional<z.ZodString>;
895
- /** The flat monthly fee per private region (PR-11), shown when billing is on. */
896
268
  privateRegionMonthlyFeeCents: z.ZodOptional<z.ZodNumber>;
897
- /** `cp` in enrollment tokens. Defaults to appUrl. */
898
269
  controlPlaneUrl: z.ZodOptional<z.ZodString>;
899
- /** `leaf` in enrollment tokens. Defaults to tls://<domain>:7422. */
900
270
  leafUrl: z.ZodOptional<z.ZodString>;
901
- /** Allows a plain nats:// leaf URL (local stacks only). */
902
271
  allowInsecureLeaf: z.ZodDefault<z.ZodBoolean>;
903
272
  signingKey: z.ZodOptional<z.ZodObject<{
904
273
  file: z.ZodString;
905
274
  kid: z.ZodOptional<z.ZodString>;
906
- }, "strip", z.ZodTypeAny, {
907
- file?: string;
908
- kid?: string;
909
- }, {
910
- file?: string;
911
- kid?: string;
912
- }>>;
275
+ }, z.core.$strip>>;
913
276
  hub: z.ZodOptional<z.ZodObject<{
914
277
  url: z.ZodString;
915
278
  credentialsFile: z.ZodString;
916
279
  systemCredentialsFile: z.ZodString;
917
280
  operatorSeedFile: z.ZodString;
918
281
  accountSeedFile: z.ZodString;
919
- }, "strip", z.ZodTypeAny, {
920
- url?: string;
921
- credentialsFile?: string;
922
- systemCredentialsFile?: string;
923
- operatorSeedFile?: string;
924
- accountSeedFile?: string;
925
- }, {
926
- url?: string;
927
- credentialsFile?: string;
928
- systemCredentialsFile?: string;
929
- operatorSeedFile?: string;
930
- accountSeedFile?: string;
931
- }>>;
932
- relay: z.ZodDefault<z.ZodObject<{
282
+ }, z.core.$strip>>;
283
+ relay: z.ZodPrefault<z.ZodObject<{
933
284
  firstChunkTimeoutMs: z.ZodDefault<z.ZodNumber>;
934
285
  idleTimeoutMs: z.ZodDefault<z.ZodNumber>;
935
286
  maxBytes: z.ZodDefault<z.ZodNumber>;
936
- /** Relays in flight per region (HTTP 429 beyond). */
937
287
  maxConcurrent: z.ZodDefault<z.ZodNumber>;
938
- }, "strip", z.ZodTypeAny, {
939
- firstChunkTimeoutMs?: number;
940
- idleTimeoutMs?: number;
941
- maxBytes?: number;
942
- maxConcurrent?: number;
943
- }, {
944
- firstChunkTimeoutMs?: number;
945
- idleTimeoutMs?: number;
946
- maxBytes?: number;
947
- maxConcurrent?: number;
948
- }>>;
949
- /** The release cells are measured against (default: this apiserver's version). */
288
+ }, z.core.$strip>>;
950
289
  currentVersion: z.ZodOptional<z.ZodString>;
951
290
  configDebounceMs: z.ZodDefault<z.ZodNumber>;
952
- }, "strip", z.ZodTypeAny, {
953
- public?: {
954
- id?: string;
955
- name?: string;
956
- default?: boolean;
957
- endpoints?: {
958
- sip?: {
959
- host?: string;
960
- port?: number;
961
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
962
- }[];
963
- signalingAddresses?: string[];
964
- mediaAddresses?: string[];
965
- rtpPorts?: {
966
- min?: number;
967
- max?: number;
968
- };
969
- };
970
- }[];
971
- operatorKey?: string;
972
- privateRegionMonthlyFeeCents?: number;
973
- controlPlaneUrl?: string;
974
- leafUrl?: string;
975
- allowInsecureLeaf?: boolean;
976
- signingKey?: {
977
- file?: string;
978
- kid?: string;
979
- };
980
- hub?: {
981
- url?: string;
982
- credentialsFile?: string;
983
- systemCredentialsFile?: string;
984
- operatorSeedFile?: string;
985
- accountSeedFile?: string;
986
- };
987
- relay?: {
988
- firstChunkTimeoutMs?: number;
989
- idleTimeoutMs?: number;
990
- maxBytes?: number;
991
- maxConcurrent?: number;
992
- };
993
- currentVersion?: string;
994
- configDebounceMs?: number;
995
- }, {
996
- public?: {
997
- id?: string;
998
- name?: string;
999
- default?: boolean;
1000
- endpoints?: {
1001
- sip?: {
1002
- host?: string;
1003
- port?: number;
1004
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
1005
- }[];
1006
- signalingAddresses?: string[];
1007
- mediaAddresses?: string[];
1008
- rtpPorts?: {
1009
- min?: number;
1010
- max?: number;
1011
- };
1012
- };
1013
- }[];
1014
- operatorKey?: string;
1015
- privateRegionMonthlyFeeCents?: number;
1016
- controlPlaneUrl?: string;
1017
- leafUrl?: string;
1018
- allowInsecureLeaf?: boolean;
1019
- signingKey?: {
1020
- file?: string;
1021
- kid?: string;
1022
- };
1023
- hub?: {
1024
- url?: string;
1025
- credentialsFile?: string;
1026
- systemCredentialsFile?: string;
1027
- operatorSeedFile?: string;
1028
- accountSeedFile?: string;
1029
- };
1030
- relay?: {
1031
- firstChunkTimeoutMs?: number;
1032
- idleTimeoutMs?: number;
1033
- maxBytes?: number;
1034
- maxConcurrent?: number;
1035
- };
1036
- currentVersion?: string;
1037
- configDebounceMs?: number;
1038
- }>>;
1039
- }, "strip", z.ZodTypeAny, {
1040
- domain?: string;
1041
- appUrl?: string;
1042
- signalingServer?: string;
1043
- server?: {
1044
- host?: string;
1045
- bindAddr?: string;
1046
- httpBridgePort?: number;
1047
- };
1048
- logs?: {
1049
- format?: "text" | "json";
1050
- level?: "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
1051
- fluent?: {
1052
- host?: string;
1053
- port?: number;
1054
- tagPrefix?: string;
1055
- };
1056
- transport?: "console" | "fluent";
1057
- };
1058
- telemetry?: {
1059
- otlpEndpoint?: string;
1060
- };
1061
- database?: {
1062
- url?: string;
1063
- };
1064
- encryption?: {
1065
- key?: string;
1066
- };
1067
- smtp?: {
1068
- user?: string;
1069
- password?: string;
1070
- host?: string;
1071
- port?: number;
1072
- secure?: boolean;
1073
- sender?: string;
1074
- };
1075
- authz?: {
1076
- enabled?: boolean;
1077
- host?: string;
1078
- port?: number;
1079
- methods?: string[];
1080
- };
1081
- features?: {
1082
- auth?: {
1083
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
1084
- signup?: "invite" | "open";
1085
- };
1086
- billing?: {
1087
- enabled?: boolean;
1088
- address?: string;
1089
- };
1090
- costs?: {
1091
- display?: "none" | "usage" | "prices";
1092
- };
1093
- calls?: {
1094
- transcripts?: {
1095
- store?: boolean;
1096
- retentionDays?: number;
1097
- };
1098
- recordings?: {
1099
- store?: boolean;
1100
- };
1101
- };
1102
- sip?: {
1103
- names?: "domain" | "any";
1104
- };
1105
- };
1106
- routr?: {
1107
- apiEndpoint?: string;
1108
- sipProxy?: string;
1109
- roomrPeer?: {
1110
- name?: string;
1111
- aor?: string;
1112
- username?: string;
1113
- password?: string;
1114
- };
1115
- };
1116
- nats?: {
1117
- url?: string;
1118
- password?: string;
1119
- user?: string;
1120
- };
1121
- evaluations?: {
1122
- credentials?: Record<string, string>;
1123
- };
1124
- templatesDir?: string;
1125
- twilio?: {
1126
- phoneNumber?: string;
1127
- accountSid?: string;
1128
- authToken?: string;
1129
- };
1130
- identity?: {
1131
- keys?: {
1132
- privateKey: string;
1133
- publicKey: string;
1134
- privateKeyPath: string;
1135
- publicKeyPath: string;
1136
- };
1137
- database?: {
1138
- url?: string;
1139
- };
1140
- issuer?: string;
1141
- audience?: string;
1142
- tokens?: {
1143
- accessTokenExpiresIn?: string;
1144
- idTokenExpiresIn?: string;
1145
- refreshTokenExpiresIn?: string;
1146
- };
1147
- security?: {
1148
- contactVerificationRequired?: boolean;
1149
- twoFactorAuthenticationRequired?: boolean;
1150
- };
1151
- invites?: {
1152
- url?: string;
1153
- failUrl?: string;
1154
- expiration?: string;
1155
- };
1156
- oauth2?: {
1157
- github?: {
1158
- url?: string;
1159
- clientId?: string;
1160
- clientSecret?: string;
1161
- apiUrl?: string;
1162
- };
1163
- };
1164
- };
1165
- callRecords?: {
1166
- enabled?: boolean;
1167
- stores?: ({
1168
- dir?: string;
1169
- } | {
1170
- s3?: {
1171
- bucket?: string;
1172
- prefix?: string;
1173
- region?: string;
1174
- endpoint?: string;
1175
- forcePathStyle?: boolean;
1176
- credentials?: {
1177
- accessKeyId?: string;
1178
- secretAccessKey?: string;
1179
- };
1180
- };
1181
- })[];
1182
- retentionIntervalMinutes?: number;
1183
- maintenanceTimeoutMs?: number;
1184
- };
1185
- apps?: {
1186
- autopilotUrl?: string;
1187
- autopilotSigningSecret?: string;
1188
- allowInsecureWebhooks?: boolean;
1189
- allowedDestinations?: string[];
1190
- };
1191
- webhooks?: {
1192
- fanout?: boolean;
1193
- intervalMs?: number;
1194
- refreshMs?: number;
1195
- };
1196
- catalog?: {
1197
- file?: string;
1198
- files?: string[];
1199
- };
1200
- regions?: {
1201
- public?: {
1202
- id?: string;
1203
- name?: string;
1204
- default?: boolean;
1205
- endpoints?: {
1206
- sip?: {
1207
- host?: string;
1208
- port?: number;
1209
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
1210
- }[];
1211
- signalingAddresses?: string[];
1212
- mediaAddresses?: string[];
1213
- rtpPorts?: {
1214
- min?: number;
1215
- max?: number;
1216
- };
1217
- };
1218
- }[];
1219
- operatorKey?: string;
1220
- privateRegionMonthlyFeeCents?: number;
1221
- controlPlaneUrl?: string;
1222
- leafUrl?: string;
1223
- allowInsecureLeaf?: boolean;
1224
- signingKey?: {
1225
- file?: string;
1226
- kid?: string;
1227
- };
1228
- hub?: {
1229
- url?: string;
1230
- credentialsFile?: string;
1231
- systemCredentialsFile?: string;
1232
- operatorSeedFile?: string;
1233
- accountSeedFile?: string;
1234
- };
1235
- relay?: {
1236
- firstChunkTimeoutMs?: number;
1237
- idleTimeoutMs?: number;
1238
- maxBytes?: number;
1239
- maxConcurrent?: number;
1240
- };
1241
- currentVersion?: string;
1242
- configDebounceMs?: number;
1243
- };
1244
- }, {
1245
- domain?: string;
1246
- appUrl?: string;
1247
- signalingServer?: string;
1248
- server?: {
1249
- host?: string;
1250
- bindAddr?: string;
1251
- httpBridgePort?: number;
1252
- };
1253
- logs?: {
1254
- format?: "text" | "json";
1255
- level?: "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
1256
- fluent?: {
1257
- host?: string;
1258
- port?: number;
1259
- tagPrefix?: string;
1260
- };
1261
- transport?: "console" | "fluent";
1262
- };
1263
- telemetry?: {
1264
- otlpEndpoint?: string;
1265
- };
1266
- database?: {
1267
- url?: string;
1268
- };
1269
- encryption?: {
1270
- key?: string;
1271
- };
1272
- smtp?: {
1273
- user?: string;
1274
- password?: string;
1275
- host?: string;
1276
- port?: number;
1277
- secure?: boolean;
1278
- sender?: string;
1279
- };
1280
- authz?: {
1281
- enabled?: boolean;
1282
- host?: string;
1283
- port?: number;
1284
- methods?: string[];
1285
- };
1286
- features?: {
1287
- auth?: {
1288
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
1289
- signup?: "invite" | "open";
1290
- };
1291
- billing?: {
1292
- enabled?: boolean;
1293
- address?: string;
1294
- };
1295
- costs?: {
1296
- display?: "none" | "usage" | "prices";
1297
- };
1298
- calls?: {
1299
- transcripts?: {
1300
- store?: boolean;
1301
- retentionDays?: number;
1302
- };
1303
- recordings?: {
1304
- store?: boolean;
1305
- };
1306
- };
1307
- sip?: {
1308
- names?: "domain" | "any";
1309
- };
1310
- };
1311
- routr?: {
1312
- apiEndpoint?: string;
1313
- sipProxy?: string;
1314
- roomrPeer?: {
1315
- name?: string;
1316
- aor?: string;
1317
- username?: string;
1318
- password?: string;
1319
- };
1320
- };
1321
- nats?: {
1322
- url?: string;
1323
- password?: string;
1324
- user?: string;
1325
- };
1326
- evaluations?: {
1327
- credentials?: Record<string, string>;
1328
- };
1329
- templatesDir?: string;
1330
- twilio?: {
1331
- phoneNumber?: string;
1332
- accountSid?: string;
1333
- authToken?: string;
1334
- };
1335
- identity?: {
1336
- keys?: {
1337
- privateKey?: string;
1338
- publicKey?: string;
1339
- privateKeyPath?: string;
1340
- publicKeyPath?: string;
1341
- };
1342
- database?: {
1343
- url?: string;
1344
- };
1345
- issuer?: string;
1346
- audience?: string;
1347
- tokens?: {
1348
- accessTokenExpiresIn?: string;
1349
- idTokenExpiresIn?: string;
1350
- refreshTokenExpiresIn?: string;
1351
- };
1352
- security?: {
1353
- contactVerificationRequired?: boolean;
1354
- twoFactorAuthenticationRequired?: boolean;
1355
- };
1356
- invites?: {
1357
- url?: string;
1358
- failUrl?: string;
1359
- expiration?: string;
1360
- };
1361
- oauth2?: {
1362
- github?: {
1363
- url?: string;
1364
- clientId?: string;
1365
- clientSecret?: string;
1366
- apiUrl?: string;
1367
- };
1368
- };
1369
- };
1370
- callRecords?: {
1371
- enabled?: boolean;
1372
- stores?: ({
1373
- dir?: string;
1374
- } | {
1375
- s3?: {
1376
- bucket?: string;
1377
- prefix?: string;
1378
- region?: string;
1379
- endpoint?: string;
1380
- forcePathStyle?: boolean;
1381
- credentials?: {
1382
- accessKeyId?: string;
1383
- secretAccessKey?: string;
1384
- };
1385
- };
1386
- })[];
1387
- retentionIntervalMinutes?: number;
1388
- maintenanceTimeoutMs?: number;
1389
- };
1390
- apps?: {
1391
- autopilotUrl?: string;
1392
- autopilotSigningSecret?: string;
1393
- allowInsecureWebhooks?: boolean;
1394
- allowedDestinations?: string[];
1395
- };
1396
- webhooks?: {
1397
- fanout?: boolean;
1398
- intervalMs?: number;
1399
- refreshMs?: number;
1400
- };
1401
- catalog?: {
1402
- file?: string;
1403
- files?: string[];
1404
- };
1405
- regions?: {
1406
- public?: {
1407
- id?: string;
1408
- name?: string;
1409
- default?: boolean;
1410
- endpoints?: {
1411
- sip?: {
1412
- host?: string;
1413
- port?: number;
1414
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
1415
- }[];
1416
- signalingAddresses?: string[];
1417
- mediaAddresses?: string[];
1418
- rtpPorts?: {
1419
- min?: number;
1420
- max?: number;
1421
- };
1422
- };
1423
- }[];
1424
- operatorKey?: string;
1425
- privateRegionMonthlyFeeCents?: number;
1426
- controlPlaneUrl?: string;
1427
- leafUrl?: string;
1428
- allowInsecureLeaf?: boolean;
1429
- signingKey?: {
1430
- file?: string;
1431
- kid?: string;
1432
- };
1433
- hub?: {
1434
- url?: string;
1435
- credentialsFile?: string;
1436
- systemCredentialsFile?: string;
1437
- operatorSeedFile?: string;
1438
- accountSeedFile?: string;
1439
- };
1440
- relay?: {
1441
- firstChunkTimeoutMs?: number;
1442
- idleTimeoutMs?: number;
1443
- maxBytes?: number;
1444
- maxConcurrent?: number;
1445
- };
1446
- currentVersion?: string;
1447
- configDebounceMs?: number;
1448
- };
1449
- }>, {
1450
- domain?: string;
1451
- appUrl?: string;
1452
- signalingServer?: string;
1453
- server?: {
1454
- host?: string;
1455
- bindAddr?: string;
1456
- httpBridgePort?: number;
1457
- };
1458
- logs?: {
1459
- format?: "text" | "json";
1460
- level?: "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
1461
- fluent?: {
1462
- host?: string;
1463
- port?: number;
1464
- tagPrefix?: string;
1465
- };
1466
- transport?: "console" | "fluent";
1467
- };
1468
- telemetry?: {
1469
- otlpEndpoint?: string;
1470
- };
1471
- database?: {
1472
- url?: string;
1473
- };
1474
- encryption?: {
1475
- key?: string;
1476
- };
1477
- smtp?: {
1478
- user?: string;
1479
- password?: string;
1480
- host?: string;
1481
- port?: number;
1482
- secure?: boolean;
1483
- sender?: string;
1484
- };
1485
- authz?: {
1486
- enabled?: boolean;
1487
- host?: string;
1488
- port?: number;
1489
- methods?: string[];
1490
- };
1491
- features?: {
1492
- auth?: {
1493
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
1494
- signup?: "invite" | "open";
1495
- };
1496
- billing?: {
1497
- enabled?: boolean;
1498
- address?: string;
1499
- };
1500
- costs?: {
1501
- display?: "none" | "usage" | "prices";
1502
- };
1503
- calls?: {
1504
- transcripts?: {
1505
- store?: boolean;
1506
- retentionDays?: number;
1507
- };
1508
- recordings?: {
1509
- store?: boolean;
1510
- };
1511
- };
1512
- sip?: {
1513
- names?: "domain" | "any";
1514
- };
1515
- };
1516
- routr?: {
1517
- apiEndpoint?: string;
1518
- sipProxy?: string;
1519
- roomrPeer?: {
1520
- name?: string;
1521
- aor?: string;
1522
- username?: string;
1523
- password?: string;
1524
- };
1525
- };
1526
- nats?: {
1527
- url?: string;
1528
- password?: string;
1529
- user?: string;
1530
- };
1531
- evaluations?: {
1532
- credentials?: Record<string, string>;
1533
- };
1534
- templatesDir?: string;
1535
- twilio?: {
1536
- phoneNumber?: string;
1537
- accountSid?: string;
1538
- authToken?: string;
1539
- };
1540
- identity?: {
1541
- keys?: {
1542
- privateKey: string;
1543
- publicKey: string;
1544
- privateKeyPath: string;
1545
- publicKeyPath: string;
1546
- };
1547
- database?: {
1548
- url?: string;
1549
- };
1550
- issuer?: string;
1551
- audience?: string;
1552
- tokens?: {
1553
- accessTokenExpiresIn?: string;
1554
- idTokenExpiresIn?: string;
1555
- refreshTokenExpiresIn?: string;
1556
- };
1557
- security?: {
1558
- contactVerificationRequired?: boolean;
1559
- twoFactorAuthenticationRequired?: boolean;
1560
- };
1561
- invites?: {
1562
- url?: string;
1563
- failUrl?: string;
1564
- expiration?: string;
1565
- };
1566
- oauth2?: {
1567
- github?: {
1568
- url?: string;
1569
- clientId?: string;
1570
- clientSecret?: string;
1571
- apiUrl?: string;
1572
- };
1573
- };
1574
- };
1575
- callRecords?: {
1576
- enabled?: boolean;
1577
- stores?: ({
1578
- dir?: string;
1579
- } | {
1580
- s3?: {
1581
- bucket?: string;
1582
- prefix?: string;
1583
- region?: string;
1584
- endpoint?: string;
1585
- forcePathStyle?: boolean;
1586
- credentials?: {
1587
- accessKeyId?: string;
1588
- secretAccessKey?: string;
1589
- };
1590
- };
1591
- })[];
1592
- retentionIntervalMinutes?: number;
1593
- maintenanceTimeoutMs?: number;
1594
- };
1595
- apps?: {
1596
- autopilotUrl?: string;
1597
- autopilotSigningSecret?: string;
1598
- allowInsecureWebhooks?: boolean;
1599
- allowedDestinations?: string[];
1600
- };
1601
- webhooks?: {
1602
- fanout?: boolean;
1603
- intervalMs?: number;
1604
- refreshMs?: number;
1605
- };
1606
- catalog?: {
1607
- file?: string;
1608
- files?: string[];
1609
- };
1610
- regions?: {
1611
- public?: {
1612
- id?: string;
1613
- name?: string;
1614
- default?: boolean;
1615
- endpoints?: {
1616
- sip?: {
1617
- host?: string;
1618
- port?: number;
1619
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
1620
- }[];
1621
- signalingAddresses?: string[];
1622
- mediaAddresses?: string[];
1623
- rtpPorts?: {
1624
- min?: number;
1625
- max?: number;
1626
- };
1627
- };
1628
- }[];
1629
- operatorKey?: string;
1630
- privateRegionMonthlyFeeCents?: number;
1631
- controlPlaneUrl?: string;
1632
- leafUrl?: string;
1633
- allowInsecureLeaf?: boolean;
1634
- signingKey?: {
1635
- file?: string;
1636
- kid?: string;
1637
- };
1638
- hub?: {
1639
- url?: string;
1640
- credentialsFile?: string;
1641
- systemCredentialsFile?: string;
1642
- operatorSeedFile?: string;
1643
- accountSeedFile?: string;
1644
- };
1645
- relay?: {
1646
- firstChunkTimeoutMs?: number;
1647
- idleTimeoutMs?: number;
1648
- maxBytes?: number;
1649
- maxConcurrent?: number;
1650
- };
1651
- currentVersion?: string;
1652
- configDebounceMs?: number;
1653
- };
1654
- }, {
1655
- domain?: string;
1656
- appUrl?: string;
1657
- signalingServer?: string;
1658
- server?: {
1659
- host?: string;
1660
- bindAddr?: string;
1661
- httpBridgePort?: number;
1662
- };
1663
- logs?: {
1664
- format?: "text" | "json";
1665
- level?: "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
1666
- fluent?: {
1667
- host?: string;
1668
- port?: number;
1669
- tagPrefix?: string;
1670
- };
1671
- transport?: "console" | "fluent";
1672
- };
1673
- telemetry?: {
1674
- otlpEndpoint?: string;
1675
- };
1676
- database?: {
1677
- url?: string;
1678
- };
1679
- encryption?: {
1680
- key?: string;
1681
- };
1682
- smtp?: {
1683
- user?: string;
1684
- password?: string;
1685
- host?: string;
1686
- port?: number;
1687
- secure?: boolean;
1688
- sender?: string;
1689
- };
1690
- authz?: {
1691
- enabled?: boolean;
1692
- host?: string;
1693
- port?: number;
1694
- methods?: string[];
1695
- };
1696
- features?: {
1697
- auth?: {
1698
- methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
1699
- signup?: "invite" | "open";
1700
- };
1701
- billing?: {
1702
- enabled?: boolean;
1703
- address?: string;
1704
- };
1705
- costs?: {
1706
- display?: "none" | "usage" | "prices";
1707
- };
1708
- calls?: {
1709
- transcripts?: {
1710
- store?: boolean;
1711
- retentionDays?: number;
1712
- };
1713
- recordings?: {
1714
- store?: boolean;
1715
- };
1716
- };
1717
- sip?: {
1718
- names?: "domain" | "any";
1719
- };
1720
- };
1721
- routr?: {
1722
- apiEndpoint?: string;
1723
- sipProxy?: string;
1724
- roomrPeer?: {
1725
- name?: string;
1726
- aor?: string;
1727
- username?: string;
1728
- password?: string;
1729
- };
1730
- };
1731
- nats?: {
1732
- url?: string;
1733
- password?: string;
1734
- user?: string;
1735
- };
1736
- evaluations?: {
1737
- credentials?: Record<string, string>;
1738
- };
1739
- templatesDir?: string;
1740
- twilio?: {
1741
- phoneNumber?: string;
1742
- accountSid?: string;
1743
- authToken?: string;
1744
- };
1745
- identity?: {
1746
- keys?: {
1747
- privateKey?: string;
1748
- publicKey?: string;
1749
- privateKeyPath?: string;
1750
- publicKeyPath?: string;
1751
- };
1752
- database?: {
1753
- url?: string;
1754
- };
1755
- issuer?: string;
1756
- audience?: string;
1757
- tokens?: {
1758
- accessTokenExpiresIn?: string;
1759
- idTokenExpiresIn?: string;
1760
- refreshTokenExpiresIn?: string;
1761
- };
1762
- security?: {
1763
- contactVerificationRequired?: boolean;
1764
- twoFactorAuthenticationRequired?: boolean;
1765
- };
1766
- invites?: {
1767
- url?: string;
1768
- failUrl?: string;
1769
- expiration?: string;
1770
- };
1771
- oauth2?: {
1772
- github?: {
1773
- url?: string;
1774
- clientId?: string;
1775
- clientSecret?: string;
1776
- apiUrl?: string;
1777
- };
1778
- };
1779
- };
1780
- callRecords?: {
1781
- enabled?: boolean;
1782
- stores?: ({
1783
- dir?: string;
1784
- } | {
1785
- s3?: {
1786
- bucket?: string;
1787
- prefix?: string;
1788
- region?: string;
1789
- endpoint?: string;
1790
- forcePathStyle?: boolean;
1791
- credentials?: {
1792
- accessKeyId?: string;
1793
- secretAccessKey?: string;
1794
- };
1795
- };
1796
- })[];
1797
- retentionIntervalMinutes?: number;
1798
- maintenanceTimeoutMs?: number;
1799
- };
1800
- apps?: {
1801
- autopilotUrl?: string;
1802
- autopilotSigningSecret?: string;
1803
- allowInsecureWebhooks?: boolean;
1804
- allowedDestinations?: string[];
1805
- };
1806
- webhooks?: {
1807
- fanout?: boolean;
1808
- intervalMs?: number;
1809
- refreshMs?: number;
1810
- };
1811
- catalog?: {
1812
- file?: string;
1813
- files?: string[];
1814
- };
1815
- regions?: {
1816
- public?: {
1817
- id?: string;
1818
- name?: string;
1819
- default?: boolean;
1820
- endpoints?: {
1821
- sip?: {
1822
- host?: string;
1823
- port?: number;
1824
- transport?: "udp" | "tcp" | "tls" | "ws" | "wss";
1825
- }[];
1826
- signalingAddresses?: string[];
1827
- mediaAddresses?: string[];
1828
- rtpPorts?: {
1829
- min?: number;
1830
- max?: number;
1831
- };
1832
- };
1833
- }[];
1834
- operatorKey?: string;
1835
- privateRegionMonthlyFeeCents?: number;
1836
- controlPlaneUrl?: string;
1837
- leafUrl?: string;
1838
- allowInsecureLeaf?: boolean;
1839
- signingKey?: {
1840
- file?: string;
1841
- kid?: string;
1842
- };
1843
- hub?: {
1844
- url?: string;
1845
- credentialsFile?: string;
1846
- systemCredentialsFile?: string;
1847
- operatorSeedFile?: string;
1848
- accountSeedFile?: string;
1849
- };
1850
- relay?: {
1851
- firstChunkTimeoutMs?: number;
1852
- idleTimeoutMs?: number;
1853
- maxBytes?: number;
1854
- maxConcurrent?: number;
1855
- };
1856
- currentVersion?: string;
1857
- configDebounceMs?: number;
1858
- };
1859
- }>;
291
+ }, z.core.$strip>>;
292
+ }, z.core.$strip>;
1860
293
  type FonosterConfig = z.infer<typeof fonosterConfigSchema>;
1861
294
  /** Paths where ${VAR} may reference a value shared with another container. */
1862
295
  /**