@fonoster/sipnet 0.8.30 → 0.8.31

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.
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.buildService = buildService;
7
7
  /*
8
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
9
9
  * http://github.com/fonoster/fonoster
10
10
  *
11
11
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.createAcl = createAcl;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -36,7 +36,7 @@ function createAcl(api) {
36
36
  const { request } = call;
37
37
  const accessKeyId = (0, common_1.getAccessKeyIdFromCall)(call);
38
38
  logger.verbose("call to createAcl", Object.assign(Object.assign({}, request), { accessKeyId }));
39
- const response = yield api.createAcl(Object.assign(Object.assign({}, request), { deny: ["0.0.0.0/0"] }));
39
+ const response = yield api.createAcl(Object.assign(Object.assign({}, request), { deny: ["0.0.0.0/0"], extended: { accessKeyId } }));
40
40
  callback(null, response);
41
41
  });
42
42
  return (0, common_1.withErrorHandlingAndValidation)(fn, common_1.Validators.createAclRequestSchema);
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildAclsService = void 0;
4
4
  /*
5
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
5
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
7
7
  *
8
8
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.updateAcl = updateAcl;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.buildService = buildService;
7
7
  /*
8
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
9
9
  * http://github.com/fonoster/fonoster
10
10
  *
11
11
  * This file is part of Fonoster
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildAgentsService = void 0;
4
4
  /*
5
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
5
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
7
7
  *
8
8
  * This file is part of Fonoster
@@ -6,7 +6,7 @@ exports.getAgent = getAgent;
6
6
  exports.listAgents = listAgents;
7
7
  exports.updateAgent = updateAgent;
8
8
  /*
9
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
9
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
10
10
  * http://github.com/fonoster/fonoster
11
11
  *
12
12
  * This file is part of Fonoster
package/dist/constants.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ROUTR_DEFAULT_PEER_AOR = exports.APP_REF_HEADER = void 0;
4
4
  /*
5
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
5
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
7
7
  *
8
8
  * This file is part of Fonoster
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.buildService = buildService;
7
7
  /*
8
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
9
9
  * http://github.com/fonoster/fonoster
10
10
  *
11
11
  * This file is part of Fonoster
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildCredentialsService = void 0;
4
4
  /*
5
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
5
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
7
7
  *
8
8
  * This file is part of Fonoster
@@ -6,7 +6,7 @@ exports.getCredentials = getCredentials;
6
6
  exports.listCredentials = listCredentials;
7
7
  exports.updateCredentials = updateCredentials;
8
8
  /*
9
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
9
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
10
10
  * http://github.com/fonoster/fonoster
11
11
  *
12
12
  * This file is part of Fonoster
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.buildService = buildService;
7
7
  /*
8
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
9
9
  * http://github.com/fonoster/fonoster
10
10
  *
11
11
  * This file is part of Fonoster
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildDomainsService = void 0;
4
4
  /*
5
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
5
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
7
7
  *
8
8
  * This file is part of Fonoster
@@ -6,7 +6,7 @@ exports.getDomain = getDomain;
6
6
  exports.listDomains = listDomains;
7
7
  exports.updateDomain = updateDomain;
8
8
  /*
9
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
9
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
10
10
  * http://github.com/fonoster/fonoster
11
11
  *
12
12
  * This file is part of Fonoster
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  };
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  /*
19
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
19
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
20
20
  * http://github.com/fonoster/fonoster
21
21
  *
22
22
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.createNumber = createNumber;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getNumber = getNumber;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildNumbersService = void 0;
4
4
  /*
5
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
5
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
7
7
  *
8
8
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.listNumbers = listNumbers;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.updateNumber = updateNumber;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.createResource = createResource;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.deleteResource = deleteResource;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getResource = getResource;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.listResources = listResources;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -38,7 +38,7 @@ function listResources(api, resource) {
38
38
  logger.verbose(`call to list${res}s`, { request });
39
39
  const accessKeyId = (0, common_1.getAccessKeyIdFromCall)(call);
40
40
  const response = yield api[`list${res}s`](request);
41
- const items = response.items.filter((item) => item.extended.accessKeyId === accessKeyId);
41
+ const items = response.items.filter((item) => { var _a; return ((_a = item.extended) === null || _a === void 0 ? void 0 : _a.accessKeyId) === accessKeyId; });
42
42
  callback(null, {
43
43
  items,
44
44
  nextPageToken: response.nextPageToken
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.updateResource = updateResource;
13
13
  /*
14
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
14
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
15
15
  * http://github.com/fonoster/fonoster
16
16
  *
17
17
  * This file is part of Fonoster
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.buildService = buildService;
7
7
  /*
8
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
8
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
9
9
  * http://github.com/fonoster/fonoster
10
10
  *
11
11
  * This file is part of Fonoster
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildTrunksService = void 0;
4
4
  /*
5
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
5
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
6
  * http://github.com/fonoster/fonoster
7
7
  *
8
8
  * This file is part of Fonoster
@@ -7,7 +7,7 @@ exports.listTrunks = listTrunks;
7
7
  exports.updateTrunk = updateTrunk;
8
8
  /* eslint-disable @typescript-eslint/ban-types */
9
9
  /*
10
- * Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
10
+ * Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
11
11
  * http://github.com/fonoster/fonoster
12
12
  *
13
13
  * This file is part of Fonoster
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/sipnet",
3
- "version": "0.8.30",
3
+ "version": "0.8.31",
4
4
  "description": "Routr-based SIP stack",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -20,10 +20,10 @@
20
20
  "fonoster": "./dist/index.js"
21
21
  },
22
22
  "dependencies": {
23
- "@fonoster/common": "^0.8.30",
24
- "@fonoster/identity": "^0.8.30",
23
+ "@fonoster/common": "^0.8.31",
24
+ "@fonoster/identity": "^0.8.31",
25
25
  "@fonoster/logger": "^0.8.28",
26
- "@fonoster/types": "^0.8.28",
26
+ "@fonoster/types": "^0.8.31",
27
27
  "@grpc/grpc-js": "~1.10.6",
28
28
  "@routr/sdk": "2.13.1",
29
29
  "zod": "^3.23.8"
@@ -41,5 +41,5 @@
41
41
  "bugs": {
42
42
  "url": "https://github.com/fonoster/fonoster/issues"
43
43
  },
44
- "gitHead": "08c8f65f4893964e30ad2b07aa7446cef9784579"
44
+ "gitHead": "0ad6023cf99223502e06b0d235a11e52abffca6a"
45
45
  }