@fonoster/apiserver 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/applications/buildService.d.ts +1 -1
- package/dist/applications/buildService.js +4 -3
- package/dist/applications/createCreateApplication.js +6 -3
- package/dist/applications/createCreateTestToken.d.ts +3 -1
- package/dist/applications/createCreateTestToken.js +18 -13
- package/dist/applications/createGetFnUtil.d.ts +1 -1
- package/dist/applications/createUpdateApplication.js +6 -4
- package/dist/applications/evalKeys.d.ts +7 -1
- package/dist/applications/evalKeys.js +9 -3
- package/dist/applications/session/appModel.d.ts +28 -4
- package/dist/applications/session/appModel.js +74 -35
- package/dist/billing/buildService.d.ts +24 -0
- package/dist/billing/buildService.js +116 -0
- package/dist/{migration/cli.js → bin/usage.js} +46 -22
- package/dist/calls/buildService.d.ts +1 -20
- package/dist/calls/buildService.js +50 -10
- package/dist/calls/createCall.d.ts +16 -2
- package/dist/calls/createCall.js +29 -6
- package/dist/calls/createCallPublisher.d.ts +6 -4
- package/dist/calls/createCallPublisher.js +6 -5
- package/dist/calls/createTrackCall.d.ts +16 -13
- package/dist/calls/createTrackCall.js +78 -55
- package/dist/calls/getCall.d.ts +3 -3
- package/dist/calls/getCall.js +2 -3
- package/dist/calls/listCalls.d.ts +4 -4
- package/dist/calls/listCalls.js +2 -3
- package/dist/calls/types.d.ts +2 -1
- package/dist/capabilities/createGetCapabilities.d.ts +3 -0
- package/dist/capabilities/createGetCapabilities.js +2 -1
- package/dist/config/index.js +1 -3
- package/dist/config/schema.d.ts +106 -102
- package/dist/config/schema.js +39 -47
- package/dist/core/applyCatalog.d.ts +3 -3
- package/dist/core/applyCatalog.js +5 -4
- package/dist/core/regionHooks.d.ts +1 -0
- package/dist/core/runServices.js +25 -4
- package/dist/core/services.d.ts +25 -1
- package/dist/core/services.js +35 -11
- package/dist/core/testTokenConfig.js +2 -2
- package/dist/core/upsertRoomrPeer.d.ts +6 -0
- package/dist/core/{upsertMediaNodePeer.js → upsertRoomrPeer.js} +9 -9
- package/dist/envs.d.ts +30 -16
- package/dist/envs.js +49 -31
- package/dist/index.js +23 -22
- package/dist/outbound/createNodeDirectory.d.ts +35 -13
- package/dist/outbound/createNodeDirectory.js +54 -20
- package/dist/outbound/index.d.ts +1 -0
- package/dist/outbound/index.js +1 -0
- package/dist/outbound/placeOutboundCall.d.ts +53 -13
- package/dist/outbound/placeOutboundCall.js +135 -88
- package/dist/outbound/placementSweep.d.ts +56 -0
- package/dist/outbound/placementSweep.js +127 -0
- package/dist/outbound/runOutboundCalls.d.ts +18 -14
- package/dist/outbound/runOutboundCalls.js +46 -34
- package/dist/providers/createProvidersHandlers.d.ts +1 -10
- package/dist/providers/createProvidersHandlers.js +20 -25
- package/dist/providers/index.d.ts +2 -2
- package/dist/providers/index.js +2 -2
- package/dist/providers/registryUsage.d.ts +2 -2
- package/dist/providers/registryUsage.js +5 -5
- package/dist/records/createIndexRecord.d.ts +26 -3
- package/dist/records/createIndexRecord.js +37 -10
- package/dist/records/createRecordsRouter.js +4 -2
- package/dist/records/createSearchRecords.d.ts +4 -3
- package/dist/records/createSearchRecords.js +9 -21
- package/dist/records/maintenance.d.ts +1 -1
- package/dist/records/maintenance.js +1 -1
- package/dist/records/runCallRecords.d.ts +2 -0
- package/dist/records/runCallRecords.js +1 -1
- package/dist/records/types.d.ts +2 -0
- package/dist/regions/configSync.d.ts +5 -5
- package/dist/regions/configSync.js +9 -9
- package/dist/regions/createRegionsRouter.d.ts +6 -6
- package/dist/regions/createRegionsRouter.js +5 -5
- package/dist/regions/link.js +1 -1
- package/dist/regions/runRegions.d.ts +2 -0
- package/dist/regions/runRegions.js +4 -0
- package/dist/regions/service.js +4 -4
- package/dist/regions/sources.d.ts +1 -1
- package/dist/regions/sources.js +4 -4
- package/dist/regions/status.js +5 -4
- package/dist/regions/types.d.ts +2 -2
- package/dist/usage/buildService.d.ts +16 -0
- package/dist/{calls/influxdb.js → usage/buildService.js} +16 -9
- package/dist/{events/createPerCallCache.d.ts → usage/createGetUsage.d.ts} +7 -7
- package/dist/usage/createGetUsage.js +118 -0
- package/dist/usage/ingestUsage.d.ts +7 -0
- package/dist/usage/ingestUsage.js +87 -0
- package/dist/usage/publishRecordedUsage.d.ts +52 -0
- package/dist/usage/publishRecordedUsage.js +103 -0
- package/dist/usage/publishUsage.d.ts +29 -0
- package/dist/usage/publishUsage.js +50 -0
- package/dist/usage/rebuildUsage.d.ts +48 -0
- package/dist/usage/rebuildUsage.js +104 -0
- package/dist/usage/runUsageConsumer.d.ts +22 -0
- package/dist/usage/runUsageConsumer.js +78 -0
- package/dist/usage/snapshotStorage.d.ts +14 -0
- package/dist/usage/snapshotStorage.js +95 -0
- package/dist/usage/types.d.ts +36 -0
- package/dist/voice/stt/types.js +1 -1
- package/dist/webhooks/lostCalls.d.ts +35 -12
- package/dist/webhooks/lostCalls.js +86 -48
- package/dist/webhooks/nodeCallEvents.d.ts +73 -0
- package/dist/webhooks/nodeCallEvents.js +177 -0
- package/dist/webhooks/runWebhookFanout.d.ts +10 -4
- package/dist/webhooks/runWebhookFanout.js +41 -39
- package/package.json +17 -19
- package/dist/applications/migration/PrismaApplicationStore.d.ts +0 -55
- package/dist/applications/migration/PrismaApplicationStore.js +0 -92
- package/dist/applications/migration/convertLegacyApplication.d.ts +0 -11
- package/dist/applications/migration/convertLegacyApplication.js +0 -112
- package/dist/applications/migration/index.d.ts +0 -22
- package/dist/applications/migration/index.js +0 -38
- package/dist/applications/migration/migrateApplications.d.ts +0 -43
- package/dist/applications/migration/migrateApplications.js +0 -87
- package/dist/applications/migration/types.d.ts +0 -92
- package/dist/applications/migration/types.js +0 -20
- package/dist/calls/createFetchCalls.d.ts +0 -22
- package/dist/calls/createFetchCalls.js +0 -88
- package/dist/calls/createFetchSingleCall.d.ts +0 -22
- package/dist/calls/createFetchSingleCall.js +0 -54
- package/dist/calls/influxdb.d.ts +0 -2
- package/dist/core/upsertMediaNodePeer.d.ts +0 -6
- package/dist/events/callRefs.d.ts +0 -29
- package/dist/events/callRefs.js +0 -103
- package/dist/events/createCdrWriter.d.ts +0 -25
- package/dist/events/createCdrWriter.js +0 -95
- package/dist/events/createInfluxDbPub.d.ts +0 -10
- package/dist/events/createInfluxDbPub.js +0 -46
- package/dist/events/createPerCallCache.js +0 -46
- package/dist/events/mapCallDirectionToEnum.d.ts +0 -21
- package/dist/events/mapCallDirectionToEnum.js +0 -37
- package/dist/events/nats.d.ts +0 -44
- package/dist/events/nats.js +0 -93
- package/dist/events/transformEvent.d.ts +0 -4
- package/dist/events/transformEvent.js +0 -87
- package/dist/events/types.d.ts +0 -26
- package/dist/migration/argv.d.ts +0 -22
- package/dist/migration/argv.js +0 -42
- package/dist/migration/catalogMapping.d.ts +0 -30
- package/dist/migration/catalogMapping.js +0 -53
- package/dist/migration/index.d.ts +0 -27
- package/dist/migration/index.js +0 -43
- package/dist/migration/migrateAssistants.d.ts +0 -8
- package/dist/migration/migrateAssistants.js +0 -169
- package/dist/migration/migrateCredentials.d.ts +0 -4
- package/dist/migration/migrateCredentials.js +0 -107
- package/dist/migration/migrateIntegrations.d.ts +0 -32
- package/dist/migration/migrateIntegrations.js +0 -136
- package/dist/migration/migrateLegacy.d.ts +0 -41
- package/dist/migration/migrateLegacy.js +0 -76
- package/dist/migration/providerKeys.d.ts +0 -14
- package/dist/migration/providerKeys.js +0 -61
- package/dist/migration/seedCatalog.d.ts +0 -2
- package/dist/migration/seedCatalog.js +0 -160
- package/dist/migration/types.d.ts +0 -42
- package/dist/migration/types.js +0 -31
- /package/dist/{migration/cli.d.ts → bin/usage.d.ts} +0 -0
- /package/dist/{events → usage}/types.js +0 -0
package/dist/calls/getCall.d.ts
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
import { GrpcErrorMessage
|
|
19
|
+
import { GrpcErrorMessage } from "@fonoster/common";
|
|
20
20
|
import { CallDetailRecord } from "@fonoster/types";
|
|
21
|
-
/**
|
|
22
|
-
declare function getCall(
|
|
21
|
+
/** One call from the call-record index (`fetchSingleCall` is createFetchSingleCallFromIndex). */
|
|
22
|
+
declare function getCall(fetchSingleCall: (accessKeyId: string, ref: string) => Promise<CallDetailRecord | null | undefined>): (call: {
|
|
23
23
|
request: unknown;
|
|
24
24
|
}, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: unknown) => void) => Promise<void>;
|
|
25
25
|
export { getCall };
|
package/dist/calls/getCall.js
CHANGED
|
@@ -31,10 +31,9 @@ exports.getCall = getCall;
|
|
|
31
31
|
const common_1 = require("@fonoster/common");
|
|
32
32
|
const logger_1 = require("@fonoster/logger");
|
|
33
33
|
const notFoundError_1 = require("../core/notFoundError");
|
|
34
|
-
const createFetchSingleCall_1 = require("./createFetchSingleCall");
|
|
35
34
|
const logger = (0, logger_1.getLogger)({ service: "apiserver", filePath: __filename });
|
|
36
|
-
/**
|
|
37
|
-
function getCall(
|
|
35
|
+
/** One call from the call-record index (`fetchSingleCall` is createFetchSingleCallFromIndex). */
|
|
36
|
+
function getCall(fetchSingleCall) {
|
|
38
37
|
const fn = (call, callback) => __awaiter(this, void 0, void 0, function* () {
|
|
39
38
|
const { ref } = call.request;
|
|
40
39
|
const accessKeyId = (0, common_1.getAccessKeyIdFromCall)(call);
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
18
|
*/
|
|
19
|
-
import { GrpcErrorMessage
|
|
20
|
-
import {
|
|
21
|
-
/**
|
|
22
|
-
declare function listCalls(
|
|
19
|
+
import { GrpcErrorMessage } from "@fonoster/common";
|
|
20
|
+
import { ListCallsRequest, ListCallsResponse } from "@fonoster/types";
|
|
21
|
+
/** Call history from the call-record index (`fetchCalls` is createFetchCallsFromIndex). */
|
|
22
|
+
declare function listCalls(fetchCalls: (accessKeyId: string, request: ListCallsRequest) => Promise<ListCallsResponse>): (call: {
|
|
23
23
|
request: unknown;
|
|
24
24
|
}, callback: (error?: import("@fonoster/common").GrpcErrorMessage, response?: unknown) => void) => Promise<void>;
|
|
25
25
|
export { listCalls };
|
package/dist/calls/listCalls.js
CHANGED
|
@@ -30,10 +30,9 @@ exports.listCalls = listCalls;
|
|
|
30
30
|
*/
|
|
31
31
|
const common_1 = require("@fonoster/common");
|
|
32
32
|
const logger_1 = require("@fonoster/logger");
|
|
33
|
-
const createFetchCalls_1 = require("./createFetchCalls");
|
|
34
33
|
const logger = (0, logger_1.getLogger)({ service: "apiserver", filePath: __filename });
|
|
35
|
-
/**
|
|
36
|
-
function listCalls(
|
|
34
|
+
/** Call history from the call-record index (`fetchCalls` is createFetchCallsFromIndex). */
|
|
35
|
+
function listCalls(fetchCalls) {
|
|
37
36
|
const fn = (call, callback) => __awaiter(this, void 0, void 0, function* () {
|
|
38
37
|
const { request } = call;
|
|
39
38
|
const accessKeyId = (0, common_1.getAccessKeyIdFromCall)(call);
|
package/dist/calls/types.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ type ListCallsRequest = {
|
|
|
25
25
|
status?: CallStatus;
|
|
26
26
|
from?: string;
|
|
27
27
|
to?: string;
|
|
28
|
+
appRef?: string;
|
|
28
29
|
pageSize?: number;
|
|
29
30
|
pageToken?: string;
|
|
30
31
|
};
|
|
@@ -36,7 +37,7 @@ type GetCallRequest = {
|
|
|
36
37
|
ref: string;
|
|
37
38
|
};
|
|
38
39
|
type CallPublisher = {
|
|
39
|
-
/** Resolves once a
|
|
40
|
+
/** Resolves once a Roomr node has accepted the call; rejects with a CallPlacementError. */
|
|
40
41
|
publishCall: (event: CreateCallRequest & {
|
|
41
42
|
ref: string;
|
|
42
43
|
accessKeyId: string;
|
|
@@ -91,7 +91,8 @@ function createGetCapabilities(config) {
|
|
|
91
91
|
domain: config.domain,
|
|
92
92
|
appUrl: (0, config_1.getAppUrl)(config),
|
|
93
93
|
regions: { private: supportsPrivateRegions(config) },
|
|
94
|
-
connection: connectionDetails(config)
|
|
94
|
+
connection: connectionDetails(config),
|
|
95
|
+
sip: { names: config.features.sip.names }
|
|
95
96
|
};
|
|
96
97
|
return (_call, callback) => __awaiter(this, void 0, void 0, function* () { return callback(null, response); });
|
|
97
98
|
}
|
package/dist/config/index.js
CHANGED
|
@@ -53,9 +53,7 @@ function getConfig() {
|
|
|
53
53
|
service: "apiserver",
|
|
54
54
|
fileBase: "fonoster",
|
|
55
55
|
schema: schema_1.fonosterConfigSchema,
|
|
56
|
-
interpolatePaths: schema_1.SHARED_VALUE_PATHS
|
|
57
|
-
movedKeys: schema_1.MOVED_KEYS,
|
|
58
|
-
legacyEnvPrefixes: ["APISERVER_", "AUTOPILOT_"]
|
|
56
|
+
interpolatePaths: schema_1.SHARED_VALUE_PATHS
|
|
59
57
|
});
|
|
60
58
|
}
|
|
61
59
|
return loaded;
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -13,10 +13,14 @@ declare const featuresSchema: z.ZodDefault<z.ZodObject<{
|
|
|
13
13
|
}>>;
|
|
14
14
|
billing: z.ZodDefault<z.ZodObject<{
|
|
15
15
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
+
/** The billing service's Billing API (host:port); defaults to authz.host:50073. */
|
|
17
|
+
address: z.ZodOptional<z.ZodString>;
|
|
16
18
|
}, "strip", z.ZodTypeAny, {
|
|
17
19
|
enabled?: boolean;
|
|
20
|
+
address?: string;
|
|
18
21
|
}, {
|
|
19
22
|
enabled?: boolean;
|
|
23
|
+
address?: string;
|
|
20
24
|
}>>;
|
|
21
25
|
costs: z.ZodDefault<z.ZodObject<{
|
|
22
26
|
display: z.ZodDefault<z.ZodEnum<["none", "usage", "prices"]>>;
|
|
@@ -60,6 +64,18 @@ declare const featuresSchema: z.ZodDefault<z.ZodObject<{
|
|
|
60
64
|
store?: boolean;
|
|
61
65
|
};
|
|
62
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
|
+
}>>;
|
|
63
79
|
}, "strip", z.ZodTypeAny, {
|
|
64
80
|
auth?: {
|
|
65
81
|
methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
|
|
@@ -67,6 +83,7 @@ declare const featuresSchema: z.ZodDefault<z.ZodObject<{
|
|
|
67
83
|
};
|
|
68
84
|
billing?: {
|
|
69
85
|
enabled?: boolean;
|
|
86
|
+
address?: string;
|
|
70
87
|
};
|
|
71
88
|
costs?: {
|
|
72
89
|
display?: "none" | "usage" | "prices";
|
|
@@ -80,6 +97,9 @@ declare const featuresSchema: z.ZodDefault<z.ZodObject<{
|
|
|
80
97
|
store?: boolean;
|
|
81
98
|
};
|
|
82
99
|
};
|
|
100
|
+
sip?: {
|
|
101
|
+
names?: "domain" | "any";
|
|
102
|
+
};
|
|
83
103
|
}, {
|
|
84
104
|
auth?: {
|
|
85
105
|
methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
|
|
@@ -87,6 +107,7 @@ declare const featuresSchema: z.ZodDefault<z.ZodObject<{
|
|
|
87
107
|
};
|
|
88
108
|
billing?: {
|
|
89
109
|
enabled?: boolean;
|
|
110
|
+
address?: string;
|
|
90
111
|
};
|
|
91
112
|
costs?: {
|
|
92
113
|
display?: "none" | "usage" | "prices";
|
|
@@ -100,6 +121,9 @@ declare const featuresSchema: z.ZodDefault<z.ZodObject<{
|
|
|
100
121
|
store?: boolean;
|
|
101
122
|
};
|
|
102
123
|
};
|
|
124
|
+
sip?: {
|
|
125
|
+
names?: "domain" | "any";
|
|
126
|
+
};
|
|
103
127
|
}>>;
|
|
104
128
|
/** fonoster.yaml: everything the API server (and embedded Identity) needs. */
|
|
105
129
|
declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
@@ -250,10 +274,14 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
250
274
|
}>>;
|
|
251
275
|
billing: z.ZodDefault<z.ZodObject<{
|
|
252
276
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
277
|
+
/** The billing service's Billing API (host:port); defaults to authz.host:50073. */
|
|
278
|
+
address: z.ZodOptional<z.ZodString>;
|
|
253
279
|
}, "strip", z.ZodTypeAny, {
|
|
254
280
|
enabled?: boolean;
|
|
281
|
+
address?: string;
|
|
255
282
|
}, {
|
|
256
283
|
enabled?: boolean;
|
|
284
|
+
address?: string;
|
|
257
285
|
}>>;
|
|
258
286
|
costs: z.ZodDefault<z.ZodObject<{
|
|
259
287
|
display: z.ZodDefault<z.ZodEnum<["none", "usage", "prices"]>>;
|
|
@@ -297,6 +325,18 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
297
325
|
store?: boolean;
|
|
298
326
|
};
|
|
299
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
|
+
}>>;
|
|
300
340
|
}, "strip", z.ZodTypeAny, {
|
|
301
341
|
auth?: {
|
|
302
342
|
methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
|
|
@@ -304,6 +344,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
304
344
|
};
|
|
305
345
|
billing?: {
|
|
306
346
|
enabled?: boolean;
|
|
347
|
+
address?: string;
|
|
307
348
|
};
|
|
308
349
|
costs?: {
|
|
309
350
|
display?: "none" | "usage" | "prices";
|
|
@@ -317,6 +358,9 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
317
358
|
store?: boolean;
|
|
318
359
|
};
|
|
319
360
|
};
|
|
361
|
+
sip?: {
|
|
362
|
+
names?: "domain" | "any";
|
|
363
|
+
};
|
|
320
364
|
}, {
|
|
321
365
|
auth?: {
|
|
322
366
|
methods?: ["password" | "email_code" | "github", ...("password" | "email_code" | "github")[]];
|
|
@@ -324,6 +368,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
324
368
|
};
|
|
325
369
|
billing?: {
|
|
326
370
|
enabled?: boolean;
|
|
371
|
+
address?: string;
|
|
327
372
|
};
|
|
328
373
|
costs?: {
|
|
329
374
|
display?: "none" | "usage" | "prices";
|
|
@@ -337,14 +382,22 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
337
382
|
store?: boolean;
|
|
338
383
|
};
|
|
339
384
|
};
|
|
385
|
+
sip?: {
|
|
386
|
+
names?: "domain" | "any";
|
|
387
|
+
};
|
|
340
388
|
}>>;
|
|
341
389
|
routr: z.ZodDefault<z.ZodObject<{
|
|
342
390
|
apiEndpoint: z.ZodDefault<z.ZodString>;
|
|
343
391
|
/**
|
|
344
|
-
*
|
|
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
|
+
sipProxy: z.ZodDefault<z.ZodString>;
|
|
396
|
+
/**
|
|
397
|
+
* The peer Go Roomr nodes register under (least-sessions, add-roomr 4.1). Without a
|
|
345
398
|
* password the apiserver does not create it.
|
|
346
399
|
*/
|
|
347
|
-
|
|
400
|
+
roomrPeer: z.ZodDefault<z.ZodObject<{
|
|
348
401
|
aor: z.ZodDefault<z.ZodString>;
|
|
349
402
|
name: z.ZodDefault<z.ZodString>;
|
|
350
403
|
username: z.ZodDefault<z.ZodString>;
|
|
@@ -362,7 +415,8 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
362
415
|
}>>;
|
|
363
416
|
}, "strip", z.ZodTypeAny, {
|
|
364
417
|
apiEndpoint?: string;
|
|
365
|
-
|
|
418
|
+
sipProxy?: string;
|
|
419
|
+
roomrPeer?: {
|
|
366
420
|
name?: string;
|
|
367
421
|
aor?: string;
|
|
368
422
|
username?: string;
|
|
@@ -370,7 +424,8 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
370
424
|
};
|
|
371
425
|
}, {
|
|
372
426
|
apiEndpoint?: string;
|
|
373
|
-
|
|
427
|
+
sipProxy?: string;
|
|
428
|
+
roomrPeer?: {
|
|
374
429
|
name?: string;
|
|
375
430
|
aor?: string;
|
|
376
431
|
username?: string;
|
|
@@ -390,25 +445,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
390
445
|
password?: string;
|
|
391
446
|
user?: string;
|
|
392
447
|
}>;
|
|
393
|
-
influxdb: z.ZodObject<{
|
|
394
|
-
url: z.ZodString;
|
|
395
|
-
org: z.ZodString;
|
|
396
|
-
username: z.ZodString;
|
|
397
|
-
password: z.ZodString;
|
|
398
|
-
token: z.ZodString;
|
|
399
|
-
}, "strip", z.ZodTypeAny, {
|
|
400
|
-
url?: string;
|
|
401
|
-
username?: string;
|
|
402
|
-
password?: string;
|
|
403
|
-
org?: string;
|
|
404
|
-
token?: string;
|
|
405
|
-
}, {
|
|
406
|
-
url?: string;
|
|
407
|
-
username?: string;
|
|
408
|
-
password?: string;
|
|
409
|
-
org?: string;
|
|
410
|
-
token?: string;
|
|
411
|
-
}>;
|
|
412
448
|
evaluations: z.ZodDefault<z.ZodObject<{
|
|
413
449
|
credentials: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
414
450
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -494,7 +530,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
494
530
|
failUrl: z.ZodOptional<z.ZodString>;
|
|
495
531
|
expiration: z.ZodDefault<z.ZodString>;
|
|
496
532
|
}, "strip", z.ZodTypeAny, {
|
|
497
|
-
url
|
|
533
|
+
url? /** Relays in flight per region (HTTP 429 beyond). */: string;
|
|
498
534
|
failUrl?: string;
|
|
499
535
|
expiration?: string;
|
|
500
536
|
}, {
|
|
@@ -512,7 +548,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
512
548
|
url?: string;
|
|
513
549
|
clientId?: string;
|
|
514
550
|
clientSecret?: string;
|
|
515
|
-
apiUrl
|
|
551
|
+
apiUrl?: string;
|
|
516
552
|
}, {
|
|
517
553
|
url?: string;
|
|
518
554
|
clientId?: string;
|
|
@@ -528,7 +564,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
528
564
|
};
|
|
529
565
|
}, {
|
|
530
566
|
github?: {
|
|
531
|
-
url
|
|
567
|
+
url? /** OTLP export (empty = off): `otlpEndpoint: "${OTEL_EXPORTER_OTLP_ENDPOINT:-}"`. */: string;
|
|
532
568
|
clientId?: string;
|
|
533
569
|
clientSecret?: string;
|
|
534
570
|
apiUrl?: string;
|
|
@@ -557,7 +593,10 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
557
593
|
owner?: {
|
|
558
594
|
name?: string;
|
|
559
595
|
email?: string;
|
|
560
|
-
password
|
|
596
|
+
password? /**
|
|
597
|
+
* host:port of Routr's SIP listener: API-originated calls are dialed through it
|
|
598
|
+
* (CreateCall's to.proxy), as the roomr peer below (to.auth).
|
|
599
|
+
*/: string;
|
|
561
600
|
};
|
|
562
601
|
database?: {
|
|
563
602
|
url?: string;
|
|
@@ -628,7 +667,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
628
667
|
}>>;
|
|
629
668
|
callRecords: z.ZodDefault<z.ZodObject<{
|
|
630
669
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
631
|
-
listCallsFromIndex: z.ZodDefault<z.ZodBoolean>;
|
|
632
670
|
stores: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
633
671
|
dir: z.ZodString;
|
|
634
672
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -702,7 +740,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
702
740
|
maintenanceTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
703
741
|
}, "strip", z.ZodTypeAny, {
|
|
704
742
|
enabled?: boolean;
|
|
705
|
-
listCallsFromIndex?: boolean;
|
|
706
743
|
stores?: ({
|
|
707
744
|
dir?: string;
|
|
708
745
|
} | {
|
|
@@ -722,7 +759,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
722
759
|
maintenanceTimeoutMs?: number;
|
|
723
760
|
}, {
|
|
724
761
|
enabled?: boolean;
|
|
725
|
-
listCallsFromIndex?: boolean;
|
|
726
762
|
stores?: ({
|
|
727
763
|
dir?: string;
|
|
728
764
|
} | {
|
|
@@ -775,19 +811,15 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
775
811
|
intervalMs?: number;
|
|
776
812
|
refreshMs?: number;
|
|
777
813
|
}>>;
|
|
778
|
-
registry: z.ZodDefault<z.ZodObject<{
|
|
779
|
-
platformCredentials: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
780
|
-
}, "strip", z.ZodTypeAny, {
|
|
781
|
-
platformCredentials?: string[];
|
|
782
|
-
}, {
|
|
783
|
-
platformCredentials?: string[];
|
|
784
|
-
}>>;
|
|
785
814
|
catalog: z.ZodOptional<z.ZodObject<{
|
|
786
815
|
file: z.ZodString;
|
|
816
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
787
817
|
}, "strip", z.ZodTypeAny, {
|
|
788
818
|
file?: string;
|
|
819
|
+
files?: string[];
|
|
789
820
|
}, {
|
|
790
821
|
file?: string;
|
|
822
|
+
files?: string[];
|
|
791
823
|
}>>;
|
|
792
824
|
regions: z.ZodDefault<z.ZodObject<{
|
|
793
825
|
public: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1079,6 +1111,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1079
1111
|
};
|
|
1080
1112
|
billing?: {
|
|
1081
1113
|
enabled?: boolean;
|
|
1114
|
+
address?: string;
|
|
1082
1115
|
};
|
|
1083
1116
|
costs?: {
|
|
1084
1117
|
display?: "none" | "usage" | "prices";
|
|
@@ -1092,10 +1125,14 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1092
1125
|
store?: boolean;
|
|
1093
1126
|
};
|
|
1094
1127
|
};
|
|
1128
|
+
sip?: {
|
|
1129
|
+
names?: "domain" | "any";
|
|
1130
|
+
};
|
|
1095
1131
|
};
|
|
1096
1132
|
routr?: {
|
|
1097
1133
|
apiEndpoint?: string;
|
|
1098
|
-
|
|
1134
|
+
sipProxy?: string;
|
|
1135
|
+
roomrPeer?: {
|
|
1099
1136
|
name?: string;
|
|
1100
1137
|
aor?: string;
|
|
1101
1138
|
username?: string;
|
|
@@ -1107,13 +1144,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1107
1144
|
password?: string;
|
|
1108
1145
|
user?: string;
|
|
1109
1146
|
};
|
|
1110
|
-
influxdb?: {
|
|
1111
|
-
url?: string;
|
|
1112
|
-
username?: string;
|
|
1113
|
-
password?: string;
|
|
1114
|
-
org?: string;
|
|
1115
|
-
token?: string;
|
|
1116
|
-
};
|
|
1117
1147
|
evaluations?: {
|
|
1118
1148
|
credentials?: Record<string, string>;
|
|
1119
1149
|
};
|
|
@@ -1133,7 +1163,10 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1133
1163
|
owner?: {
|
|
1134
1164
|
name?: string;
|
|
1135
1165
|
email?: string;
|
|
1136
|
-
password
|
|
1166
|
+
password? /**
|
|
1167
|
+
* host:port of Routr's SIP listener: API-originated calls are dialed through it
|
|
1168
|
+
* (CreateCall's to.proxy), as the roomr peer below (to.auth).
|
|
1169
|
+
*/: string;
|
|
1137
1170
|
};
|
|
1138
1171
|
database?: {
|
|
1139
1172
|
url?: string;
|
|
@@ -1165,7 +1198,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1165
1198
|
};
|
|
1166
1199
|
callRecords?: {
|
|
1167
1200
|
enabled?: boolean;
|
|
1168
|
-
listCallsFromIndex?: boolean;
|
|
1169
1201
|
stores?: ({
|
|
1170
1202
|
dir?: string;
|
|
1171
1203
|
} | {
|
|
@@ -1195,11 +1227,9 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1195
1227
|
intervalMs?: number;
|
|
1196
1228
|
refreshMs?: number;
|
|
1197
1229
|
};
|
|
1198
|
-
registry?: {
|
|
1199
|
-
platformCredentials?: string[];
|
|
1200
|
-
};
|
|
1201
1230
|
catalog?: {
|
|
1202
1231
|
file?: string;
|
|
1232
|
+
files?: string[];
|
|
1203
1233
|
};
|
|
1204
1234
|
regions?: {
|
|
1205
1235
|
public?: {
|
|
@@ -1294,6 +1324,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1294
1324
|
};
|
|
1295
1325
|
billing?: {
|
|
1296
1326
|
enabled?: boolean;
|
|
1327
|
+
address?: string;
|
|
1297
1328
|
};
|
|
1298
1329
|
costs?: {
|
|
1299
1330
|
display?: "none" | "usage" | "prices";
|
|
@@ -1307,10 +1338,14 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1307
1338
|
store?: boolean;
|
|
1308
1339
|
};
|
|
1309
1340
|
};
|
|
1341
|
+
sip?: {
|
|
1342
|
+
names?: "domain" | "any";
|
|
1343
|
+
};
|
|
1310
1344
|
};
|
|
1311
1345
|
routr?: {
|
|
1312
1346
|
apiEndpoint?: string;
|
|
1313
|
-
|
|
1347
|
+
sipProxy?: string;
|
|
1348
|
+
roomrPeer?: {
|
|
1314
1349
|
name?: string;
|
|
1315
1350
|
aor?: string;
|
|
1316
1351
|
username?: string;
|
|
@@ -1322,13 +1357,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1322
1357
|
password?: string;
|
|
1323
1358
|
user?: string;
|
|
1324
1359
|
};
|
|
1325
|
-
influxdb?: {
|
|
1326
|
-
url?: string;
|
|
1327
|
-
username?: string;
|
|
1328
|
-
password?: string;
|
|
1329
|
-
org?: string;
|
|
1330
|
-
token?: string;
|
|
1331
|
-
};
|
|
1332
1360
|
evaluations?: {
|
|
1333
1361
|
credentials?: Record<string, string>;
|
|
1334
1362
|
};
|
|
@@ -1380,7 +1408,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1380
1408
|
};
|
|
1381
1409
|
callRecords?: {
|
|
1382
1410
|
enabled?: boolean;
|
|
1383
|
-
listCallsFromIndex?: boolean;
|
|
1384
1411
|
stores?: ({
|
|
1385
1412
|
dir?: string;
|
|
1386
1413
|
} | {
|
|
@@ -1410,11 +1437,9 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1410
1437
|
intervalMs?: number;
|
|
1411
1438
|
refreshMs?: number;
|
|
1412
1439
|
};
|
|
1413
|
-
registry?: {
|
|
1414
|
-
platformCredentials?: string[];
|
|
1415
|
-
};
|
|
1416
1440
|
catalog?: {
|
|
1417
1441
|
file?: string;
|
|
1442
|
+
files?: string[];
|
|
1418
1443
|
};
|
|
1419
1444
|
regions?: {
|
|
1420
1445
|
public?: {
|
|
@@ -1509,6 +1534,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1509
1534
|
};
|
|
1510
1535
|
billing?: {
|
|
1511
1536
|
enabled?: boolean;
|
|
1537
|
+
address?: string;
|
|
1512
1538
|
};
|
|
1513
1539
|
costs?: {
|
|
1514
1540
|
display?: "none" | "usage" | "prices";
|
|
@@ -1522,10 +1548,14 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1522
1548
|
store?: boolean;
|
|
1523
1549
|
};
|
|
1524
1550
|
};
|
|
1551
|
+
sip?: {
|
|
1552
|
+
names?: "domain" | "any";
|
|
1553
|
+
};
|
|
1525
1554
|
};
|
|
1526
1555
|
routr?: {
|
|
1527
1556
|
apiEndpoint?: string;
|
|
1528
|
-
|
|
1557
|
+
sipProxy?: string;
|
|
1558
|
+
roomrPeer?: {
|
|
1529
1559
|
name?: string;
|
|
1530
1560
|
aor?: string;
|
|
1531
1561
|
username?: string;
|
|
@@ -1537,13 +1567,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1537
1567
|
password?: string;
|
|
1538
1568
|
user?: string;
|
|
1539
1569
|
};
|
|
1540
|
-
influxdb?: {
|
|
1541
|
-
url?: string;
|
|
1542
|
-
username?: string;
|
|
1543
|
-
password?: string;
|
|
1544
|
-
org?: string;
|
|
1545
|
-
token?: string;
|
|
1546
|
-
};
|
|
1547
1570
|
evaluations?: {
|
|
1548
1571
|
credentials?: Record<string, string>;
|
|
1549
1572
|
};
|
|
@@ -1563,7 +1586,10 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1563
1586
|
owner?: {
|
|
1564
1587
|
name?: string;
|
|
1565
1588
|
email?: string;
|
|
1566
|
-
password
|
|
1589
|
+
password? /**
|
|
1590
|
+
* host:port of Routr's SIP listener: API-originated calls are dialed through it
|
|
1591
|
+
* (CreateCall's to.proxy), as the roomr peer below (to.auth).
|
|
1592
|
+
*/: string;
|
|
1567
1593
|
};
|
|
1568
1594
|
database?: {
|
|
1569
1595
|
url?: string;
|
|
@@ -1595,7 +1621,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1595
1621
|
};
|
|
1596
1622
|
callRecords?: {
|
|
1597
1623
|
enabled?: boolean;
|
|
1598
|
-
listCallsFromIndex?: boolean;
|
|
1599
1624
|
stores?: ({
|
|
1600
1625
|
dir?: string;
|
|
1601
1626
|
} | {
|
|
@@ -1625,11 +1650,9 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1625
1650
|
intervalMs?: number;
|
|
1626
1651
|
refreshMs?: number;
|
|
1627
1652
|
};
|
|
1628
|
-
registry?: {
|
|
1629
|
-
platformCredentials?: string[];
|
|
1630
|
-
};
|
|
1631
1653
|
catalog?: {
|
|
1632
1654
|
file?: string;
|
|
1655
|
+
files?: string[];
|
|
1633
1656
|
};
|
|
1634
1657
|
regions?: {
|
|
1635
1658
|
public?: {
|
|
@@ -1724,6 +1747,7 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1724
1747
|
};
|
|
1725
1748
|
billing?: {
|
|
1726
1749
|
enabled?: boolean;
|
|
1750
|
+
address?: string;
|
|
1727
1751
|
};
|
|
1728
1752
|
costs?: {
|
|
1729
1753
|
display?: "none" | "usage" | "prices";
|
|
@@ -1737,10 +1761,14 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1737
1761
|
store?: boolean;
|
|
1738
1762
|
};
|
|
1739
1763
|
};
|
|
1764
|
+
sip?: {
|
|
1765
|
+
names?: "domain" | "any";
|
|
1766
|
+
};
|
|
1740
1767
|
};
|
|
1741
1768
|
routr?: {
|
|
1742
1769
|
apiEndpoint?: string;
|
|
1743
|
-
|
|
1770
|
+
sipProxy?: string;
|
|
1771
|
+
roomrPeer?: {
|
|
1744
1772
|
name?: string;
|
|
1745
1773
|
aor?: string;
|
|
1746
1774
|
username?: string;
|
|
@@ -1752,13 +1780,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1752
1780
|
password?: string;
|
|
1753
1781
|
user?: string;
|
|
1754
1782
|
};
|
|
1755
|
-
influxdb?: {
|
|
1756
|
-
url?: string;
|
|
1757
|
-
username?: string;
|
|
1758
|
-
password?: string;
|
|
1759
|
-
org?: string;
|
|
1760
|
-
token?: string;
|
|
1761
|
-
};
|
|
1762
1783
|
evaluations?: {
|
|
1763
1784
|
credentials?: Record<string, string>;
|
|
1764
1785
|
};
|
|
@@ -1810,7 +1831,6 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1810
1831
|
};
|
|
1811
1832
|
callRecords?: {
|
|
1812
1833
|
enabled?: boolean;
|
|
1813
|
-
listCallsFromIndex?: boolean;
|
|
1814
1834
|
stores?: ({
|
|
1815
1835
|
dir?: string;
|
|
1816
1836
|
} | {
|
|
@@ -1840,11 +1860,9 @@ declare const fonosterConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1840
1860
|
intervalMs?: number;
|
|
1841
1861
|
refreshMs?: number;
|
|
1842
1862
|
};
|
|
1843
|
-
registry?: {
|
|
1844
|
-
platformCredentials?: string[];
|
|
1845
|
-
};
|
|
1846
1863
|
catalog?: {
|
|
1847
1864
|
file?: string;
|
|
1865
|
+
files?: string[];
|
|
1848
1866
|
};
|
|
1849
1867
|
regions?: {
|
|
1850
1868
|
public?: {
|
|
@@ -1898,18 +1916,4 @@ type FonosterConfig = z.infer<typeof fonosterConfigSchema>;
|
|
|
1898
1916
|
* reach the container through Compose's env_file.
|
|
1899
1917
|
*/
|
|
1900
1918
|
declare const SHARED_VALUE_PATHS: string[];
|
|
1901
|
-
|
|
1902
|
-
declare const MOVED_KEYS: {
|
|
1903
|
-
encryptionKey: string;
|
|
1904
|
-
defaultUser: string;
|
|
1905
|
-
invite: string;
|
|
1906
|
-
issuer: string;
|
|
1907
|
-
audience: string;
|
|
1908
|
-
keys: string;
|
|
1909
|
-
tokens: string;
|
|
1910
|
-
oauth2: string;
|
|
1911
|
-
"smtp.auth": string;
|
|
1912
|
-
owner: string;
|
|
1913
|
-
integrationsFile: string;
|
|
1914
|
-
};
|
|
1915
|
-
export { featuresSchema, fonosterConfigSchema, FonosterConfig, MOVED_KEYS, SHARED_VALUE_PATHS };
|
|
1919
|
+
export { featuresSchema, fonosterConfigSchema, FonosterConfig, SHARED_VALUE_PATHS };
|