@tellescope/sdk 1.255.19 → 1.256.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.
Files changed (82) hide show
  1. package/lib/cjs/tests/api_tests/custom_dashboards.test.d.ts.map +1 -1
  2. package/lib/cjs/tests/api_tests/custom_dashboards.test.js +99 -8
  3. package/lib/cjs/tests/api_tests/custom_dashboards.test.js.map +1 -1
  4. package/lib/cjs/tests/api_tests/default_summary_journey.test.d.ts.map +1 -0
  5. package/lib/cjs/tests/api_tests/default_summary_journey.test.js.map +1 -0
  6. package/lib/cjs/tests/api_tests/file_download_unicode_names.test.d.ts +6 -0
  7. package/lib/cjs/tests/api_tests/file_download_unicode_names.test.d.ts.map +1 -0
  8. package/lib/cjs/tests/api_tests/file_download_unicode_names.test.js +278 -0
  9. package/lib/cjs/tests/api_tests/file_download_unicode_names.test.js.map +1 -0
  10. package/lib/cjs/tests/api_tests/openloop_webhooks.test.d.ts.map +1 -1
  11. package/lib/cjs/tests/api_tests/openloop_webhooks.test.js +212 -33
  12. package/lib/cjs/tests/api_tests/openloop_webhooks.test.js.map +1 -1
  13. package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.d.ts.map +1 -1
  14. package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.js +85 -9
  15. package/lib/cjs/tests/api_tests/phone_calls_cold_transfer.test.js.map +1 -1
  16. package/lib/cjs/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.d.ts +2 -0
  17. package/lib/cjs/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.d.ts.map +1 -0
  18. package/lib/cjs/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.js +242 -0
  19. package/lib/cjs/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.js.map +1 -0
  20. package/lib/cjs/tests/api_tests/security/F-0015-webhook-outbound-ssrf.test.d.ts +29 -0
  21. package/lib/cjs/tests/api_tests/security/F-0015-webhook-outbound-ssrf.test.d.ts.map +1 -0
  22. package/lib/cjs/tests/api_tests/security/F-0015-webhook-outbound-ssrf.test.js +443 -0
  23. package/lib/cjs/tests/api_tests/security/F-0015-webhook-outbound-ssrf.test.js.map +1 -0
  24. package/lib/cjs/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.d.ts +35 -0
  25. package/lib/cjs/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.d.ts.map +1 -0
  26. package/lib/cjs/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.js +231 -0
  27. package/lib/cjs/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.js.map +1 -0
  28. package/lib/cjs/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.d.ts.map +1 -1
  29. package/lib/cjs/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.js +524 -294
  30. package/lib/cjs/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.js.map +1 -1
  31. package/lib/cjs/tests/tests.d.ts.map +1 -1
  32. package/lib/cjs/tests/tests.js +431 -230
  33. package/lib/cjs/tests/tests.js.map +1 -1
  34. package/lib/esm/enduser.d.ts +0 -1
  35. package/lib/esm/enduser.d.ts.map +1 -1
  36. package/lib/esm/sdk.d.ts +2 -3
  37. package/lib/esm/sdk.d.ts.map +1 -1
  38. package/lib/esm/session.d.ts +0 -1
  39. package/lib/esm/session.d.ts.map +1 -1
  40. package/lib/esm/tests/api_tests/custom_dashboards.test.d.ts.map +1 -1
  41. package/lib/esm/tests/api_tests/custom_dashboards.test.js +99 -8
  42. package/lib/esm/tests/api_tests/custom_dashboards.test.js.map +1 -1
  43. package/lib/esm/tests/api_tests/default_summary_journey.test.d.ts.map +1 -0
  44. package/lib/esm/tests/api_tests/default_summary_journey.test.js.map +1 -0
  45. package/lib/esm/tests/api_tests/file_download_unicode_names.test.d.ts +6 -0
  46. package/lib/esm/tests/api_tests/file_download_unicode_names.test.d.ts.map +1 -0
  47. package/lib/esm/tests/api_tests/file_download_unicode_names.test.js +248 -0
  48. package/lib/esm/tests/api_tests/file_download_unicode_names.test.js.map +1 -0
  49. package/lib/esm/tests/api_tests/openloop_webhooks.test.d.ts.map +1 -1
  50. package/lib/esm/tests/api_tests/openloop_webhooks.test.js +213 -34
  51. package/lib/esm/tests/api_tests/openloop_webhooks.test.js.map +1 -1
  52. package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.d.ts.map +1 -1
  53. package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.js +85 -9
  54. package/lib/esm/tests/api_tests/phone_calls_cold_transfer.test.js.map +1 -1
  55. package/lib/esm/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.d.ts +2 -0
  56. package/lib/esm/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.d.ts.map +1 -0
  57. package/lib/esm/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.js +238 -0
  58. package/lib/esm/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.js.map +1 -0
  59. package/lib/esm/tests/api_tests/security/F-0015-webhook-outbound-ssrf.test.d.ts +29 -0
  60. package/lib/esm/tests/api_tests/security/F-0015-webhook-outbound-ssrf.test.d.ts.map +1 -0
  61. package/lib/esm/tests/api_tests/security/F-0015-webhook-outbound-ssrf.test.js +436 -0
  62. package/lib/esm/tests/api_tests/security/F-0015-webhook-outbound-ssrf.test.js.map +1 -0
  63. package/lib/esm/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.d.ts +35 -0
  64. package/lib/esm/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.d.ts.map +1 -0
  65. package/lib/esm/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.js +224 -0
  66. package/lib/esm/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.js.map +1 -0
  67. package/lib/esm/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.d.ts.map +1 -1
  68. package/lib/esm/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.js +524 -294
  69. package/lib/esm/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.js.map +1 -1
  70. package/lib/esm/tests/tests.d.ts.map +1 -1
  71. package/lib/esm/tests/tests.js +431 -230
  72. package/lib/esm/tests/tests.js.map +1 -1
  73. package/lib/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +10 -10
  75. package/src/tests/api_tests/custom_dashboards.test.ts +92 -0
  76. package/src/tests/api_tests/file_download_unicode_names.test.ts +223 -0
  77. package/src/tests/api_tests/openloop_webhooks.test.ts +138 -0
  78. package/src/tests/api_tests/phone_calls_cold_transfer.test.ts +54 -0
  79. package/src/tests/api_tests/security/F-0013-sanitize-user-html-with-iframes.test.ts +215 -0
  80. package/src/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.ts +215 -0
  81. package/src/tests/tests.ts +212 -1
  82. package/test_generated.pdf +0 -0
@@ -0,0 +1,231 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.proxy_image_ssrf_tests = void 0;
43
+ require('source-map-support').install();
44
+ var http_1 = __importDefault(require("http"));
45
+ var axios_1 = __importDefault(require("axios"));
46
+ var sdk_1 = require("../../../sdk");
47
+ var testing_1 = require("@tellescope/testing");
48
+ var setup_1 = require("../../setup");
49
+ var host = process.env.API_URL || 'http://localhost:8080';
50
+ var LOCAL_HOSTNAMES = ['localhost', '127.0.0.1', '::1'];
51
+ /**
52
+ * 127.0.0.1 only means "the machine running this test" when the API is also local. Against staging or
53
+ * prod it is the API server itself — the sentinel below would never be contacted, every assertion
54
+ * here would pass for the wrong reason, and we would be probing a live environment. Fail loudly.
55
+ */
56
+ var assert_local_api = function () {
57
+ var hostname = new URL(host).hostname;
58
+ if (!LOCAL_HOSTNAMES.includes(hostname)) {
59
+ throw new Error("F-0025 SSRF tests must run against a local API (got ".concat(host, "). ")
60
+ + "127.0.0.1 would resolve to the API server rather than this machine, so the tests would be meaningless.");
61
+ }
62
+ };
63
+ /**
64
+ * Regression tests for F-0025
65
+ * (security-audit/findings/F-0025-proxy-image-unauth-ssrf.md).
66
+ *
67
+ * GET /v1/proxy-image accepted an arbitrary ?url= and streamed the upstream response body straight
68
+ * back with Access-Control-Allow-Origin: *, with no authentication, no destination validation and no
69
+ * content-type restriction. That reaches http://169.254.169.254/ (EC2 instance credentials under
70
+ * IMDSv1), 127.0.0.1, and anything else inside the VPC.
71
+ *
72
+ * The endpoint's only legitimate job is to re-serve an image that ALREADY renders in the staff
73
+ * browser, with permissive CORS headers, so html2canvas can rasterize a form-response PDF without
74
+ * tainting the canvas (canvas.toDataURL() throws on a tainted canvas, and the form-response view sets
75
+ * crossOrigin="anonymous"). Anything reachable only from inside our network was therefore never a
76
+ * legitimate input — which is why refusing non-public destinations cannot regress the feature.
77
+ *
78
+ * Repro: stand up a local HTTP server that serves a JSON secret, point proxy-image at it with no
79
+ * credentials, and assert the secret does not come back.
80
+ * - red (unfixed): the sentinel body is streamed back to an unauthenticated caller
81
+ * - green (fixed): the request is refused and the sentinel server is never contacted
82
+ *
83
+ * Assertions are deliberately written as "4xx and nothing leaked" rather than pinning an exact status,
84
+ * because the fix both authenticates the endpoint and moves it to POST (the url moves into the body so
85
+ * presigned S3 URLs for patient attachments stop landing in access logs). Either 401 or 404/405 on the
86
+ * old GET shape is an acceptable outcome; streaming the body is not.
87
+ *
88
+ * The authenticated happy-path test lives with the Phase 2 endpoint change — it cannot exist here
89
+ * because the POST route does not yet exist, and a test that fails for "not implemented" would muddy
90
+ * the vulnerability proof.
91
+ */
92
+ var proxy_image_ssrf_tests = function (_a) {
93
+ var sdk = _a.sdk;
94
+ return __awaiter(void 0, void 0, void 0, function () {
95
+ var SENTINEL, sentinelHits, sentinel, sentinelPort, sentinelURL_1, call_unauthenticated, call_authenticated_1;
96
+ return __generator(this, function (_b) {
97
+ switch (_b.label) {
98
+ case 0:
99
+ (0, testing_1.log_header)("F-0025: proxy-image unauthenticated SSRF");
100
+ assert_local_api();
101
+ SENTINEL = "f0025-sentinel-".concat(Date.now(), "-").concat(Math.random().toString(36).slice(2));
102
+ sentinelHits = 0;
103
+ sentinel = http_1.default.createServer(function (_, res) {
104
+ sentinelHits++;
105
+ res.writeHead(200, { 'content-type': 'application/json' });
106
+ res.end(JSON.stringify({ sentinel: SENTINEL, credentials: 'internal-only' }));
107
+ });
108
+ _b.label = 1;
109
+ case 1:
110
+ _b.trys.push([1, , 9, 10]);
111
+ return [4 /*yield*/, new Promise(function (resolve) { return sentinel.listen(0, '127.0.0.1', function () { return resolve(); }); })];
112
+ case 2:
113
+ _b.sent();
114
+ sentinelPort = sentinel.address().port;
115
+ sentinelURL_1 = "http://127.0.0.1:".concat(sentinelPort, "/latest/meta-data/iam/security-credentials/");
116
+ call_unauthenticated = function () { return __awaiter(void 0, void 0, void 0, function () {
117
+ var res, body;
118
+ var _a;
119
+ return __generator(this, function (_b) {
120
+ switch (_b.label) {
121
+ case 0:
122
+ sentinelHits = 0;
123
+ return [4 /*yield*/, axios_1.default.get("".concat(host, "/v1/proxy-image"), {
124
+ params: { url: sentinelURL_1 },
125
+ validateStatus: function () { return true; },
126
+ responseType: 'text',
127
+ transformResponse: [function (d) { return d; }],
128
+ timeout: 10000,
129
+ })];
130
+ case 1:
131
+ res = _b.sent();
132
+ body = typeof res.data === 'string' ? res.data : JSON.stringify((_a = res.data) !== null && _a !== void 0 ? _a : '');
133
+ return [2 /*return*/, { status: res.status, leaked: body.includes(SENTINEL), sentinelHits: sentinelHits }];
134
+ }
135
+ });
136
+ }); };
137
+ // T1 — the core SSRF: an unauthenticated caller must not be able to read an internal resource.
138
+ return [4 /*yield*/, (0, testing_1.async_test)('F-0025: proxy-image does not stream an internal non-image resource to an unauthenticated caller', call_unauthenticated, {
139
+ // Positive control: a numeric status proves we actually reached our API rather than failing to
140
+ // connect (a connection error would make "nothing leaked" true for the wrong reason).
141
+ onResult: function (r) { return (typeof r.status === 'number'
142
+ && r.leaked === false
143
+ && r.sentinelHits === 0); },
144
+ })
145
+ // T2 — the unauthenticated surface itself: the request must be refused outright, and the
146
+ // destination must never be contacted (no SSRF-as-a-side-effect even when the body is withheld).
147
+ ];
148
+ case 3:
149
+ // T1 — the core SSRF: an unauthenticated caller must not be able to read an internal resource.
150
+ _b.sent();
151
+ // T2 — the unauthenticated surface itself: the request must be refused outright, and the
152
+ // destination must never be contacted (no SSRF-as-a-side-effect even when the body is withheld).
153
+ return [4 /*yield*/, (0, testing_1.async_test)('F-0025: proxy-image refuses an unauthenticated request without contacting the destination', call_unauthenticated, { onResult: function (r) { return r.status >= 400 && r.status < 500 && r.sentinelHits === 0; } })
154
+ // Authenticating is not enough on its own — a staff session must not be able to reach an internal
155
+ // address either. These use the real session, and are deterministic (no external network).
156
+ ];
157
+ case 4:
158
+ // T2 — the unauthenticated surface itself: the request must be refused outright, and the
159
+ // destination must never be contacted (no SSRF-as-a-side-effect even when the body is withheld).
160
+ _b.sent();
161
+ call_authenticated_1 = function (url) { return __awaiter(void 0, void 0, void 0, function () {
162
+ var res;
163
+ return __generator(this, function (_a) {
164
+ switch (_a.label) {
165
+ case 0:
166
+ sentinelHits = 0;
167
+ return [4 /*yield*/, axios_1.default.post("".concat(host, "/v1/proxy-image"), { url: url }, {
168
+ headers: { Authorization: "Bearer ".concat(sdk.authToken) },
169
+ validateStatus: function () { return true; },
170
+ timeout: 10000,
171
+ })];
172
+ case 1:
173
+ res = _a.sent();
174
+ return [2 /*return*/, { status: res.status, sentinelHits: sentinelHits }];
175
+ }
176
+ });
177
+ }); };
178
+ return [4 /*yield*/, (0, testing_1.async_test)('F-0025: proxy-image refuses a private destination even for an authenticated staff session', function () { return call_authenticated_1(sentinelURL_1); }, { onResult: function (r) { return r.status === 400 && r.sentinelHits === 0; } })];
179
+ case 5:
180
+ _b.sent();
181
+ return [4 /*yield*/, (0, testing_1.async_test)('F-0025: proxy-image refuses cloud metadata for an authenticated staff session', function () { return call_authenticated_1('https://169.254.169.254/latest/meta-data/'); }, { onResult: function (r) { return r.status === 400; } })
182
+ // Scheme and port are pinned: only https on 443, which is all the PDF export ever needs.
183
+ ];
184
+ case 6:
185
+ _b.sent();
186
+ // Scheme and port are pinned: only https on 443, which is all the PDF export ever needs.
187
+ return [4 /*yield*/, (0, testing_1.async_test)('F-0025: proxy-image refuses a plain http destination', function () { return call_authenticated_1('http://example.com/logo.png'); }, { onResult: function (r) { return r.status === 400; } })];
188
+ case 7:
189
+ // Scheme and port are pinned: only https on 443, which is all the PDF export ever needs.
190
+ _b.sent();
191
+ return [4 /*yield*/, (0, testing_1.async_test)('F-0025: proxy-image refuses a non-443 port', function () { return call_authenticated_1('https://example.com:8443/logo.png'); }, { onResult: function (r) { return r.status === 400; } })];
192
+ case 8:
193
+ _b.sent();
194
+ return [3 /*break*/, 10];
195
+ case 9:
196
+ sentinel.close();
197
+ return [7 /*endfinally*/];
198
+ case 10: return [2 /*return*/];
199
+ }
200
+ });
201
+ });
202
+ };
203
+ exports.proxy_image_ssrf_tests = proxy_image_ssrf_tests;
204
+ if (require.main === module) {
205
+ console.log("\uD83C\uDF10 Using API URL: ".concat(host));
206
+ var sdk_2 = new sdk_1.Session({ host: host });
207
+ var sdkNonAdmin_1 = new sdk_1.Session({ host: host });
208
+ var runTests = function () { return __awaiter(void 0, void 0, void 0, function () {
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0: return [4 /*yield*/, (0, setup_1.setup_tests)(sdk_2, sdkNonAdmin_1)];
212
+ case 1:
213
+ _a.sent();
214
+ return [4 /*yield*/, (0, exports.proxy_image_ssrf_tests)({ sdk: sdk_2, sdkNonAdmin: sdkNonAdmin_1 })];
215
+ case 2:
216
+ _a.sent();
217
+ return [2 /*return*/];
218
+ }
219
+ });
220
+ }); };
221
+ runTests()
222
+ .then(function () {
223
+ console.log("✅ F-0025 proxy-image SSRF test suite completed successfully");
224
+ process.exit(0);
225
+ })
226
+ .catch(function (error) {
227
+ console.error("❌ F-0025 proxy-image SSRF test suite failed:", error);
228
+ process.exit(1);
229
+ });
230
+ }
231
+ //# sourceMappingURL=F-0025-proxy-image-unauth-ssrf.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"F-0025-proxy-image-unauth-ssrf.test.js","sourceRoot":"","sources":["../../../../../src/tests/api_tests/security/F-0025-proxy-image-unauth-ssrf.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,EAAE,CAAC;AAExC,8CAAuB;AACvB,gDAAyB;AACzB,oCAAsC;AACtC,+CAG4B;AAC5B,qCAAyC;AAEzC,IAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,uBAAgC,CAAA;AAEpE,IAAM,eAAe,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,CAAC,CAAA;AAEzD;;;;GAIG;AACH,IAAM,gBAAgB,GAAG;IACvB,IAAM,QAAQ,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAA;IACvC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE;QACvC,MAAM,IAAI,KAAK,CACb,8DAAuD,IAAI,QAAK;cAC9D,wGAAwG,CAC3G,CAAA;KACF;AACH,CAAC,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACI,IAAM,sBAAsB,GAAG,UAAO,EAAgD;QAA9C,GAAG,SAAA;;;;;;oBAChD,IAAA,oBAAU,EAAC,0CAA0C,CAAC,CAAA;oBACtD,gBAAgB,EAAE,CAAA;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AC,CAAC,MAAM,KAAK,GAAG,EAAhB,CAAgB,EAAE,CAC3C,EAAA;;oBAJD,SAIC,CAAA;;;oBAED,QAAQ,CAAC,KAAK,EAAE,CAAA;;;;;;CAEnB,CAAA;AAlGY,QAAA,sBAAsB,0BAkGlC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE;IAC3B,OAAO,CAAC,GAAG,CAAC,sCAAqB,IAAI,CAAE,CAAC,CAAA;IACxC,IAAM,KAAG,GAAG,IAAI,aAAO,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC,CAAA;IACjC,IAAM,aAAW,GAAG,IAAI,aAAO,CAAC,EAAE,IAAI,MAAA,EAAE,CAAC,CAAA;IAEzC,IAAM,QAAQ,GAAG;;;wBACf,qBAAM,IAAA,mBAAW,EAAC,KAAG,EAAE,aAAW,CAAC,EAAA;;oBAAnC,SAAmC,CAAA;oBACnC,qBAAM,IAAA,8BAAsB,EAAC,EAAE,GAAG,OAAA,EAAE,WAAW,eAAA,EAAE,CAAC,EAAA;;oBAAlD,SAAkD,CAAA;;;;SACnD,CAAA;IAED,QAAQ,EAAE;SACP,IAAI,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAA;QAC1E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC;SACD,KAAK,CAAC,UAAC,KAAK;QACX,OAAO,CAAC,KAAK,CAAC,8CAA8C,EAAE,KAAK,CAAC,CAAA;QACpE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC,CAAC,CAAA;CACL"}
@@ -1 +1 @@
1
- {"version":3,"file":"F-0166-allowed-paths-wildcard-bypass.test.d.ts","sourceRoot":"","sources":["../../../../../src/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAkB,MAAM,cAAc,CAAA;AAkEtD,eAAO,MAAM,+BAA+B;SAA2B,OAAO;iBAAe,OAAO;mBA8ZnG,CAAA"}
1
+ {"version":3,"file":"F-0166-allowed-paths-wildcard-bypass.test.d.ts","sourceRoot":"","sources":["../../../../../src/tests/api_tests/security/F-0166-allowed-paths-wildcard-bypass.test.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAkB,MAAM,cAAc,CAAA;AAkEtD,eAAO,MAAM,+BAA+B;SAA2B,OAAO;iBAAe,OAAO;mBAqnBnG,CAAA"}