@routr/common 2.13.13 → 2.13.20
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/assertions.js +4 -5
- package/dist/connect/api/client.js +21 -12
- package/dist/connect/api/index.js +1 -1
- package/dist/connect/assertions.js +1 -1
- package/dist/connect/client.js +21 -12
- package/dist/connect/connect_error.js +1 -1
- package/dist/connect/index.js +1 -1
- package/dist/connect/mappers/acl.js +1 -2
- package/dist/connect/mappers/agent.js +2 -3
- package/dist/connect/mappers/assertions.js +1 -1
- package/dist/connect/mappers/credentials.js +1 -2
- package/dist/connect/mappers/domain.js +1 -2
- package/dist/connect/mappers/index.js +1 -1
- package/dist/connect/mappers/number.js +1 -2
- package/dist/connect/mappers/peer.js +1 -2
- package/dist/connect/mappers/trunk.js +1 -2
- package/dist/connect/protos/acl.proto +1 -1
- package/dist/connect/protos/agents.proto +1 -1
- package/dist/connect/protos/credentials.proto +1 -1
- package/dist/connect/protos/domains.proto +1 -1
- package/dist/connect/protos/numbers.proto +1 -1
- package/dist/connect/protos/peers.proto +1 -1
- package/dist/connect/protos/trunks.proto +1 -1
- package/dist/connect/schemas/acl.js +1 -1
- package/dist/connect/schemas/agent.js +1 -1
- package/dist/connect/schemas/crendentials.js +1 -1
- package/dist/connect/schemas/domain.js +1 -1
- package/dist/connect/schemas/index.js +1 -1
- package/dist/connect/schemas/number.js +1 -1
- package/dist/connect/schemas/peer.js +1 -1
- package/dist/connect/schemas/trunk.js +1 -1
- package/dist/connect/schemas/validators.js +1 -1
- package/dist/connect/types.js +2 -2
- package/dist/connect/validations.js +18 -8
- package/dist/envs.js +1 -1
- package/dist/errors.js +19 -9
- package/dist/helper.js +19 -9
- package/dist/index.js +19 -9
- package/dist/ip_utils.js +2 -2
- package/dist/protos/common.proto +2 -2
- package/dist/protos/location.proto +2 -2
- package/dist/protos/processor.proto +2 -2
- package/dist/protos/requester.proto +2 -2
- package/dist/protos/sipmessage.proto +2 -2
- package/dist/protos/verifier.proto +2 -2
- package/dist/requester/grpc_client.js +19 -9
- package/dist/requester/index.js +1 -1
- package/dist/response.js +1 -1
- package/dist/service.js +22 -12
- package/dist/tracer.js +3 -4
- package/dist/types.js +8 -8
- package/dist/verifier/grpc_client.js +19 -9
- package/dist/verifier/index.js +1 -1
- package/dist/verifier/verifier.js +19 -9
- package/package.json +6 -6
package/dist/assertions.js
CHANGED
|
@@ -3,12 +3,13 @@ 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.
|
|
6
|
+
exports.assertEnvsAreSet = assertEnvsAreSet;
|
|
7
|
+
exports.assertFileExist = assertFileExist;
|
|
7
8
|
/*
|
|
8
|
-
* Copyright (C)
|
|
9
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
9
10
|
* http://github.com/fonoster/routr
|
|
10
11
|
*
|
|
11
|
-
* This file is part of Routr
|
|
12
|
+
* This file is part of Routr.
|
|
12
13
|
*
|
|
13
14
|
* Licensed under the MIT License (the "License");
|
|
14
15
|
* you may not use this file except in compliance with
|
|
@@ -38,7 +39,6 @@ function assertEnvsAreSet(variables) {
|
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
exports.assertEnvsAreSet = assertEnvsAreSet;
|
|
42
42
|
/**
|
|
43
43
|
* Function that asserts that the given file exists.
|
|
44
44
|
* @param {string} file file to check
|
|
@@ -49,4 +49,3 @@ function assertFileExist(file) {
|
|
|
49
49
|
process.exit(1);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
exports.assertFileExist = assertFileExist;
|
|
@@ -15,20 +15,31 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
36
|
+
exports.apiClient = apiClient;
|
|
37
|
+
exports.serviceAPI = serviceAPI;
|
|
27
38
|
/*
|
|
28
|
-
* Copyright (C)
|
|
39
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
40
|
* http://github.com/fonoster/routr
|
|
30
41
|
*
|
|
31
|
-
* This file is part of Routr
|
|
42
|
+
* This file is part of Routr.
|
|
32
43
|
*
|
|
33
44
|
* Licensed under the MIT License (the "License");
|
|
34
45
|
* you may not use this file except in compliance with
|
|
@@ -65,7 +76,6 @@ function apiClient(options) {
|
|
|
65
76
|
numbers: serviceAPI(Object.assign({ kind: types_1.Kind.NUMBER }, options))
|
|
66
77
|
};
|
|
67
78
|
}
|
|
68
|
-
exports.apiClient = apiClient;
|
|
69
79
|
function serviceAPI(options) {
|
|
70
80
|
const { kind, apiAddr, credentials, metadata } = options;
|
|
71
81
|
// Workaround for issue not allowing to pass metadata to grpc-js
|
|
@@ -157,4 +167,3 @@ function serviceAPI(options) {
|
|
|
157
167
|
})
|
|
158
168
|
};
|
|
159
169
|
}
|
|
160
|
-
exports.serviceAPI = serviceAPI;
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright (C)
|
|
18
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/routr
|
|
20
20
|
*
|
|
21
21
|
* This file is part of Routr.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hasValidOutboundUrisOrThrow = exports.isValidE164OrThrow = exports.isValidContactAddressOrThrow = exports.isValidAORLinkOrThrow = exports.hasAORLinkOrThrow = exports.isValidAOROrThrow = exports.hasAOROrThrow = exports.isValidInboundUriOrThrow = exports.hasInboundUriOrThrow = exports.hasCountryIsoCodeOrThrow = exports.hasCountryOrThrow = exports.hasCityOrThrow = exports.isValidSessionAffinityHeaderOrThrow = exports.isValidTelUrlOrThrow = exports.hasTelUrlOrThrow = exports.isValidDomainUriOrThrow = exports.hasDomainUriOrThrow = exports.hasPasswordOrThrow = exports.isValidUsernameOrThrow = exports.hasUsernameOrThrow = exports.isValidNameOrThrow = exports.hasNameOrThrow = exports.hasReferenceOrThrow = exports.hasValidACLRulesOrThrow = exports.hasACLRulesOrThrow = exports.hasValidHeadersOrThrow = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/routr
|
|
7
7
|
*
|
|
8
8
|
* This file is part of Routr.
|
package/dist/connect/client.js
CHANGED
|
@@ -15,20 +15,31 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
36
|
+
exports.createConnectClient = createConnectClient;
|
|
37
|
+
exports.createConnectService = createConnectService;
|
|
27
38
|
/*
|
|
28
|
-
* Copyright (C)
|
|
39
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
40
|
* http://github.com/fonoster/routr
|
|
30
41
|
*
|
|
31
|
-
* This file is part of Routr
|
|
42
|
+
* This file is part of Routr.
|
|
32
43
|
*
|
|
33
44
|
* Licensed under the MIT License (the "License");
|
|
34
45
|
* you may not use this file except in compliance with
|
|
@@ -71,7 +82,6 @@ function createConnectClient(options) {
|
|
|
71
82
|
return new base[options.kind + "s"].v2beta1[(0, helper_1.toPascalCase)(options.kind) + "s"](options.apiAddr, options.credentials);
|
|
72
83
|
}
|
|
73
84
|
}
|
|
74
|
-
exports.createConnectClient = createConnectClient;
|
|
75
85
|
function createConnectService(kind) {
|
|
76
86
|
// Here we set defaults to simplify partial updates
|
|
77
87
|
const actualProtoOptions = Object.assign(Object.assign({}, service_1.protoLoadOptions), { defaults: false });
|
|
@@ -87,4 +97,3 @@ function createConnectService(kind) {
|
|
|
87
97
|
return base[kind + "s"].v2beta1[(0, helper_1.toPascalCase)(kind) + "s"].service;
|
|
88
98
|
}
|
|
89
99
|
}
|
|
90
|
-
exports.createConnectService = createConnectService;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.convertToErrorResponse = exports.CodeToResponseTypeMap = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/routr
|
|
7
7
|
*
|
|
8
8
|
* This file is part of Routr.
|
package/dist/connect/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright (C)
|
|
18
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/routr
|
|
20
20
|
*
|
|
21
21
|
* This file is part of Routr.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapToACL =
|
|
3
|
+
exports.mapToACL = mapToACL;
|
|
4
4
|
const schemas_1 = require("../schemas");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const assertions_1 = require("./assertions");
|
|
@@ -18,4 +18,3 @@ function mapToACL(config) {
|
|
|
18
18
|
updatedAt: new Date().getTime()
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
exports.mapToACL = mapToACL;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapToAgent =
|
|
3
|
+
exports.mapToAgent = mapToAgent;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/routr
|
|
7
7
|
*
|
|
8
8
|
* This file is part of Routr.
|
|
@@ -43,4 +43,3 @@ function mapToAgent(config) {
|
|
|
43
43
|
updatedAt: new Date().getTime()
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
exports.mapToAgent = mapToAgent;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.assertValidSchema = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/routr
|
|
7
7
|
*
|
|
8
8
|
* This file is part of Routr.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapToCredentials =
|
|
3
|
+
exports.mapToCredentials = mapToCredentials;
|
|
4
4
|
const schemas_1 = require("../schemas");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const assertions_1 = require("./assertions");
|
|
@@ -17,4 +17,3 @@ function mapToCredentials(config) {
|
|
|
17
17
|
updatedAt: new Date().getTime()
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
exports.mapToCredentials = mapToCredentials;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapToDomain =
|
|
3
|
+
exports.mapToDomain = mapToDomain;
|
|
4
4
|
const schemas_1 = require("../schemas");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const assertions_1 = require("./assertions");
|
|
@@ -18,4 +18,3 @@ function mapToDomain(config) {
|
|
|
18
18
|
updatedAt: new Date().getTime()
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
exports.mapToDomain = mapToDomain;
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright (C)
|
|
18
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/routr
|
|
20
20
|
*
|
|
21
21
|
* This file is part of Routr.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapToNumber =
|
|
3
|
+
exports.mapToNumber = mapToNumber;
|
|
4
4
|
const schemas_1 = require("../schemas");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const assertions_1 = require("./assertions");
|
|
@@ -25,4 +25,3 @@ function mapToNumber(config) {
|
|
|
25
25
|
updatedAt: new Date().getTime()
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
exports.mapToNumber = mapToNumber;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapToPeer =
|
|
3
|
+
exports.mapToPeer = mapToPeer;
|
|
4
4
|
const schemas_1 = require("../schemas");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const assertions_1 = require("./assertions");
|
|
@@ -26,4 +26,3 @@ function mapToPeer(config) {
|
|
|
26
26
|
updatedAt: new Date().getTime()
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
exports.mapToPeer = mapToPeer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapToTrunk =
|
|
3
|
+
exports.mapToTrunk = mapToTrunk;
|
|
4
4
|
const schemas_1 = require("../schemas");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const assertions_1 = require("./assertions");
|
|
@@ -33,4 +33,3 @@ function mapToTrunk(config) {
|
|
|
33
33
|
updatedAt: new Date().getTime()
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
exports.mapToTrunk = mapToTrunk;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
5
5
|
* http://github.com/fonoster/routr
|
|
6
6
|
*
|
|
7
7
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
5
5
|
* http://github.com/fonoster/routr
|
|
6
6
|
*
|
|
7
7
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
5
5
|
* http://github.com/fonoster/routr
|
|
6
6
|
*
|
|
7
7
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
5
5
|
* http://github.com/fonoster/routr
|
|
6
6
|
*
|
|
7
7
|
* This file is part of Routr.
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright (C)
|
|
18
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/routr
|
|
20
20
|
*
|
|
21
21
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
5
5
|
* http://github.com/fonoster/routr
|
|
6
6
|
*
|
|
7
7
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
5
5
|
* http://github.com/fonoster/routr
|
|
6
6
|
*
|
|
7
7
|
* This file is part of Routr.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/*
|
|
4
|
-
* Copyright (C)
|
|
4
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
5
5
|
* http://github.com/fonoster/routr
|
|
6
6
|
*
|
|
7
7
|
* This file is part of Routr.
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.schemaValidators = void 0;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright (C)
|
|
8
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/routr
|
|
10
10
|
*
|
|
11
11
|
* This file is part of Routr.
|
package/dist/connect/types.js
CHANGED
|
@@ -11,9 +11,9 @@ var Kind;
|
|
|
11
11
|
Kind["UNKNOWN"] = "unknown";
|
|
12
12
|
Kind["CREDENTIALS"] = "credentials";
|
|
13
13
|
Kind["ACL"] = "accesscontrollist";
|
|
14
|
-
})(Kind
|
|
14
|
+
})(Kind || (exports.Kind = Kind = {}));
|
|
15
15
|
var APIVersion;
|
|
16
16
|
(function (APIVersion) {
|
|
17
17
|
APIVersion["V2BETA1"] = "v2beta1";
|
|
18
18
|
APIVersion["V2"] = "v2";
|
|
19
|
-
})(APIVersion
|
|
19
|
+
})(APIVersion || (exports.APIVersion = APIVersion = {}));
|
|
@@ -15,17 +15,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.isValidE164 = exports.isValidWeight = exports.isValidPriority = exports.isValidContactAddress = exports.isValidHost = exports.hasHost = exports.isValidPort = exports.isValidInboundUri = exports.hasInboundUri = exports.hasValidACLRules = exports.isValidACLRule = exports.hasACLRules = exports.hasCountryIsoCode = exports.hasCountry = exports.hasCity = exports.isValidAORLink = exports.hasAORLink = exports.isValidAOR = exports.hasAOR = exports.hasValidHeaders = exports.isValidHeader = exports.isValidSessionAffinityHeader = exports.isValidTelUrl = exports.hasTelUrl = exports.isValidDomainUri = exports.hasDomainUri = exports.hasPassword = exports.isValidUsername = exports.hasUsername = exports.isValidName = exports.hasName = exports.hasReference = void 0;
|
|
27
37
|
/*
|
|
28
|
-
* Copyright (C)
|
|
38
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
39
|
* http://github.com/fonoster/routr
|
|
30
40
|
*
|
|
31
41
|
* This file is part of Routr.
|
package/dist/envs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ENFORCE_E164_WITH_MOBILE_PREFIX = exports.ENFORCE_E164 = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/routr
|
|
7
7
|
*
|
|
8
8
|
* This file is part of Routr.
|
package/dist/errors.js
CHANGED
|
@@ -15,20 +15,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.BadRequestError = exports.ResourceAlreadyExistsError = exports.ResourceNotFoundError = exports.UnimplementedError = exports.ClientConnectionError = exports.ServiceUnavailableError = exports.ServiceDefinitionNotFoundError = void 0;
|
|
27
37
|
/*
|
|
28
|
-
* Copyright (C)
|
|
38
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
39
|
* http://github.com/fonoster/routr
|
|
30
40
|
*
|
|
31
|
-
* This file is part of Routr
|
|
41
|
+
* This file is part of Routr.
|
|
32
42
|
*
|
|
33
43
|
* Licensed under the MIT License (the "License");
|
|
34
44
|
* you may not use this file except in compliance with
|
package/dist/helper.js
CHANGED
|
@@ -15,23 +15,33 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
37
|
};
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.toPascalCase = exports.readConfigFile = exports.getListeningPoint = exports.deepCopy = void 0;
|
|
30
40
|
/*
|
|
31
|
-
* Copyright (C)
|
|
41
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
32
42
|
* http://github.com/fonoster/routr
|
|
33
43
|
*
|
|
34
|
-
* This file is part of Routr
|
|
44
|
+
* This file is part of Routr.
|
|
35
45
|
*
|
|
36
46
|
* Licensed under the MIT License (the "License");
|
|
37
47
|
* you may not use this file except in compliance with
|
package/dist/index.js
CHANGED
|
@@ -15,20 +15,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.Verifier = exports.Environment = exports.ConnectSchemas = exports.CommonErrors = exports.CommonTypes = exports.CommonResponse = exports.CommonRequester = exports.CommonConnect = exports.Assertions = exports.Tracer = exports.IpUtils = exports.Helper = exports.Redis = exports.Auth = exports.LOCATION_OBJECT_PROTO = exports.PROCESSOR_OBJECT_PROTO = exports.Method = exports.Transport = exports.getObjectProto = exports.createService = void 0;
|
|
27
37
|
/*
|
|
28
|
-
* Copyright (C)
|
|
38
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
39
|
* http://github.com/fonoster/routr
|
|
30
40
|
*
|
|
31
|
-
* This file is part of Routr
|
|
41
|
+
* This file is part of Routr.
|
|
32
42
|
*
|
|
33
43
|
* Licensed under the MIT License (the "License");
|
|
34
44
|
* you may not use this file except in compliance with
|
package/dist/ip_utils.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getLocalnetIp = exports.isLocalnet = exports.addressCount = exports.hasIp = exports.formatNet = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/routr
|
|
7
7
|
*
|
|
8
|
-
* This file is part of Routr
|
|
8
|
+
* This file is part of Routr.
|
|
9
9
|
*
|
|
10
10
|
* Licensed under the MIT License (the "License");
|
|
11
11
|
* you may not use this file except in compliance with
|
package/dist/protos/common.proto
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C)
|
|
2
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
3
3
|
* http://github.com/fonoster/routr
|
|
4
4
|
*
|
|
5
|
-
* This file is part of Routr
|
|
5
|
+
* This file is part of Routr.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the MIT License (the "License");
|
|
8
8
|
* you may not use this file except in compliance with
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C)
|
|
2
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
3
3
|
* http://github.com/fonoster/routr
|
|
4
4
|
*
|
|
5
|
-
* This file is part of Routr
|
|
5
|
+
* This file is part of Routr.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the MIT License (the "License");
|
|
8
8
|
* you may not use this file except in compliance with
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C)
|
|
2
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
3
3
|
* http://github.com/fonoster/routr
|
|
4
4
|
*
|
|
5
|
-
* This file is part of Routr
|
|
5
|
+
* This file is part of Routr.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the MIT License (the "License");
|
|
8
8
|
* you may not use this file except in compliance with
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C)
|
|
2
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
3
3
|
* http://github.com/fonoster/routr
|
|
4
4
|
*
|
|
5
|
-
* This file is part of Routr
|
|
5
|
+
* This file is part of Routr.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the MIT License (the "License");
|
|
8
8
|
* you may not use this file except in compliance with
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C)
|
|
2
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
3
3
|
* http://github.com/fonoster/routr
|
|
4
4
|
*
|
|
5
|
-
* This file is part of Routr
|
|
5
|
+
* This file is part of Routr.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the MIT License (the "License");
|
|
8
8
|
* you may not use this file except in compliance with
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C)
|
|
2
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
3
3
|
* http://github.com/fonoster/routr
|
|
4
4
|
*
|
|
5
|
-
* This file is part of Routr
|
|
5
|
+
* This file is part of Routr.
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the MIT License (the "License");
|
|
8
8
|
* you may not use this file except in compliance with
|
|
@@ -15,20 +15,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.REQUESTER_PROTO = void 0;
|
|
27
37
|
/*
|
|
28
|
-
* Copyright (C)
|
|
38
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
39
|
* http://github.com/fonoster/routr
|
|
30
40
|
*
|
|
31
|
-
* This file is part of Routr
|
|
41
|
+
* This file is part of Routr.
|
|
32
42
|
*
|
|
33
43
|
* Licensed under the MIT License (the "License");
|
|
34
44
|
* you may not use this file except in compliance with
|
package/dist/requester/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright (C)
|
|
18
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/routr
|
|
20
20
|
*
|
|
21
21
|
* This file is part of Routr.
|
package/dist/response.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createForbiddenResponse = exports.createServerInternalErrorResponse = exports.createUnauthorizedResponseWithoutChallenge = exports.createUnauthorizedResponse = void 0;
|
|
4
4
|
/*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
6
6
|
* http://github.com/fonoster/routr
|
|
7
7
|
*
|
|
8
8
|
* This file is part of Routr.
|
package/dist/service.js
CHANGED
|
@@ -15,20 +15,32 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
36
|
+
exports.LOCATION_OBJECT_PROTO = exports.PROCESSOR_OBJECT_PROTO = exports.protoLoadOptions = void 0;
|
|
37
|
+
exports.getObjectProto = getObjectProto;
|
|
38
|
+
exports.default = createService;
|
|
27
39
|
/*
|
|
28
|
-
* Copyright (C)
|
|
40
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
41
|
* http://github.com/fonoster/routr
|
|
30
42
|
*
|
|
31
|
-
* This file is part of Routr
|
|
43
|
+
* This file is part of Routr.
|
|
32
44
|
*
|
|
33
45
|
* Licensed under the MIT License (the "License");
|
|
34
46
|
* you may not use this file except in compliance with
|
|
@@ -84,7 +96,6 @@ function getObjectProto(objectProto) {
|
|
|
84
96
|
? objProto[objectProto.version]
|
|
85
97
|
: new errors_1.ServiceDefinitionNotFoundError(objectProto.name, objectProto.version);
|
|
86
98
|
}
|
|
87
|
-
exports.getObjectProto = getObjectProto;
|
|
88
99
|
/**
|
|
89
100
|
* Creates a new service using the given service definition.
|
|
90
101
|
*
|
|
@@ -106,4 +117,3 @@ function createService(serviceInfo) {
|
|
|
106
117
|
healthImpl.addToServer(server);
|
|
107
118
|
server.bindAsync(serviceInfo.bindAddr, credentials, cb);
|
|
108
119
|
}
|
|
109
|
-
exports.default = createService;
|
package/dist/tracer.js
CHANGED
|
@@ -3,12 +3,12 @@ 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.init =
|
|
6
|
+
exports.init = init;
|
|
7
7
|
/*
|
|
8
|
-
* Copyright (C)
|
|
8
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
9
9
|
* http://github.com/fonoster/routr
|
|
10
10
|
*
|
|
11
|
-
* This file is part of Routr
|
|
11
|
+
* This file is part of Routr.
|
|
12
12
|
*
|
|
13
13
|
* Licensed under the MIT License (the "License");
|
|
14
14
|
* you may not use this file except in compliance with
|
|
@@ -50,4 +50,3 @@ function init(serviceName) {
|
|
|
50
50
|
});
|
|
51
51
|
return api_1.default.trace.getTracer("routr-tracer");
|
|
52
52
|
}
|
|
53
|
-
exports.init = init;
|
package/dist/types.js
CHANGED
|
@@ -19,7 +19,7 @@ var Method;
|
|
|
19
19
|
Method["REFER"] = "REFER";
|
|
20
20
|
Method["UPDATE"] = "UPDATE";
|
|
21
21
|
Method["PRACK"] = "PRACK";
|
|
22
|
-
})(Method
|
|
22
|
+
})(Method || (exports.Method = Method = {}));
|
|
23
23
|
var Transport;
|
|
24
24
|
(function (Transport) {
|
|
25
25
|
Transport["TCP"] = "TCP";
|
|
@@ -28,13 +28,13 @@ var Transport;
|
|
|
28
28
|
Transport["SCTP"] = "SCTP";
|
|
29
29
|
Transport["WS"] = "WS";
|
|
30
30
|
Transport["WSS"] = "WSS";
|
|
31
|
-
})(Transport
|
|
31
|
+
})(Transport || (exports.Transport = Transport = {}));
|
|
32
32
|
var LoadBalancingAlgorithm;
|
|
33
33
|
(function (LoadBalancingAlgorithm) {
|
|
34
34
|
LoadBalancingAlgorithm["UNSPECIFIED"] = "UNSPECIFIED";
|
|
35
35
|
LoadBalancingAlgorithm["ROUND_ROBIN"] = "ROUND_ROBIN";
|
|
36
36
|
LoadBalancingAlgorithm["LEAST_SESSIONS"] = "LEAST_SESSIONS";
|
|
37
|
-
})(LoadBalancingAlgorithm
|
|
37
|
+
})(LoadBalancingAlgorithm || (exports.LoadBalancingAlgorithm = LoadBalancingAlgorithm = {}));
|
|
38
38
|
var ExtraHeader;
|
|
39
39
|
(function (ExtraHeader) {
|
|
40
40
|
ExtraHeader["REQUEST_URI"] = "X-Request-Uri";
|
|
@@ -45,17 +45,17 @@ var ExtraHeader;
|
|
|
45
45
|
ExtraHeader["DOD_PRIVACY"] = "X-DOD-Privacy";
|
|
46
46
|
ExtraHeader["CONNECT_TOKEN"] = "X-Connect-Token";
|
|
47
47
|
ExtraHeader["CALL_DIRECTION"] = "X-Call-Direction";
|
|
48
|
-
})(ExtraHeader
|
|
48
|
+
})(ExtraHeader || (exports.ExtraHeader = ExtraHeader = {}));
|
|
49
49
|
var Privacy;
|
|
50
50
|
(function (Privacy) {
|
|
51
51
|
Privacy["NONE"] = "NONE";
|
|
52
52
|
Privacy["PRIVATE"] = "ID";
|
|
53
|
-
})(Privacy
|
|
53
|
+
})(Privacy || (exports.Privacy = Privacy = {}));
|
|
54
54
|
var HeaderModifierAction;
|
|
55
55
|
(function (HeaderModifierAction) {
|
|
56
56
|
HeaderModifierAction[HeaderModifierAction["ADD"] = 0] = "ADD";
|
|
57
57
|
HeaderModifierAction[HeaderModifierAction["REMOVE"] = 1] = "REMOVE";
|
|
58
|
-
})(HeaderModifierAction
|
|
58
|
+
})(HeaderModifierAction || (exports.HeaderModifierAction = HeaderModifierAction = {}));
|
|
59
59
|
var ResponseType;
|
|
60
60
|
(function (ResponseType) {
|
|
61
61
|
ResponseType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -116,9 +116,9 @@ var ResponseType;
|
|
|
116
116
|
ResponseType["DECLINE"] = "DECLINE";
|
|
117
117
|
ResponseType["DOES_NOT_EXIST_ANYWHERE"] = "DOES_NOT_EXIST_ANYWHERE";
|
|
118
118
|
ResponseType["SESSION_NOT_ACCEPTABLE"] = "SESSION_NOT_ACCEPTABLE";
|
|
119
|
-
})(ResponseType
|
|
119
|
+
})(ResponseType || (exports.ResponseType = ResponseType = {}));
|
|
120
120
|
var MessageType;
|
|
121
121
|
(function (MessageType) {
|
|
122
122
|
MessageType["REQUEST"] = "requestUri";
|
|
123
123
|
MessageType["RESPONSE"] = "responseType";
|
|
124
|
-
})(MessageType
|
|
124
|
+
})(MessageType || (exports.MessageType = MessageType = {}));
|
|
@@ -15,20 +15,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.VERIFIER_PROTO = void 0;
|
|
27
37
|
/*
|
|
28
|
-
* Copyright (C)
|
|
38
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
39
|
* http://github.com/fonoster/routr
|
|
30
40
|
*
|
|
31
|
-
* This file is part of Routr
|
|
41
|
+
* This file is part of Routr.
|
|
32
42
|
*
|
|
33
43
|
* Licensed under the MIT License (the "License");
|
|
34
44
|
* you may not use this file except in compliance with
|
package/dist/verifier/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/*
|
|
18
|
-
* Copyright (C)
|
|
18
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
19
19
|
* http://github.com/fonoster/routr
|
|
20
20
|
*
|
|
21
21
|
* This file is part of Routr.
|
|
@@ -15,20 +15,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.verifier = void 0;
|
|
27
37
|
/*
|
|
28
|
-
* Copyright (C)
|
|
38
|
+
* Copyright (C) 2026 by Fonoster Inc (https://fonoster.com)
|
|
29
39
|
* http://github.com/fonoster/routr
|
|
30
40
|
*
|
|
31
|
-
* This file is part of Routr
|
|
41
|
+
* This file is part of Routr.
|
|
32
42
|
*
|
|
33
43
|
* Licensed under the MIT License (the "License");
|
|
34
44
|
* you may not use this file except in compliance with
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@routr/common",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.20",
|
|
4
4
|
"description": "Common package",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
|
28
28
|
"ajv": "^6.12.6",
|
|
29
29
|
"fp-ts": "^2.11.8",
|
|
30
|
-
"grpc-health-check": "^2.0
|
|
30
|
+
"grpc-health-check": "^2.1.0",
|
|
31
31
|
"ip-utils": "^2.4.0",
|
|
32
|
-
"js-yaml": "^4.1.
|
|
32
|
+
"js-yaml": "^4.1.1",
|
|
33
33
|
"pb-util": "^1.0.3",
|
|
34
|
-
"phone": "^3.1.
|
|
34
|
+
"phone": "^3.1.68",
|
|
35
35
|
"toml": "^3.0.0",
|
|
36
|
-
"validator": "^13.
|
|
36
|
+
"validator": "^13.15.26"
|
|
37
37
|
},
|
|
38
38
|
"directories": {
|
|
39
39
|
"src": "src",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/js-yaml": "^4.0.5"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "642c22cc90bf362768411318c7d2e26ff7651ee3"
|
|
59
59
|
}
|