@microsoft/dev-tunnels-management 1.0.8 → 1.0.7303
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/README.md +2 -2
- package/index.d.ts +4 -4
- package/index.js +18 -18
- package/package.json +1 -1
- package/tsbuildinfo.json +1 -1
- package/tunnelAccessTokenProperties.d.ts +43 -43
- package/tunnelAccessTokenProperties.js +138 -138
- package/tunnelManagementClient.d.ts +132 -132
- package/tunnelManagementClient.js +14 -14
- package/tunnelManagementHttpClient.d.ts +92 -92
- package/tunnelManagementHttpClient.js +573 -573
- package/tunnelRequestOptions.d.ts +68 -68
- package/tunnelRequestOptions.js +4 -4
- package/version.d.ts +4 -4
- package/version.js +12 -12
package/README.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
# Visual Studio Tunnels Contracts Library
|
|
2
|
-
Tunnels management library for node
|
|
1
|
+
# Visual Studio Tunnels Contracts Library
|
|
2
|
+
Tunnels management library for node
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './tunnelManagementHttpClient';
|
|
2
|
-
export * from './tunnelManagementClient';
|
|
3
|
-
export * from './tunnelRequestOptions';
|
|
4
|
-
export * from './tunnelAccessTokenProperties';
|
|
1
|
+
export * from './tunnelManagementHttpClient';
|
|
2
|
+
export * from './tunnelManagementClient';
|
|
3
|
+
export * from './tunnelRequestOptions';
|
|
4
|
+
export * from './tunnelAccessTokenProperties';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
-
}) : (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
o[k2] = m[k];
|
|
10
|
-
}));
|
|
11
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
12
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
__exportStar(require("./tunnelManagementHttpClient"), exports);
|
|
16
|
-
__exportStar(require("./tunnelManagementClient"), exports);
|
|
17
|
-
__exportStar(require("./tunnelRequestOptions"), exports);
|
|
18
|
-
__exportStar(require("./tunnelAccessTokenProperties"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
+
}) : (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
o[k2] = m[k];
|
|
10
|
+
}));
|
|
11
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
12
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
__exportStar(require("./tunnelManagementHttpClient"), exports);
|
|
16
|
+
__exportStar(require("./tunnelManagementClient"), exports);
|
|
17
|
+
__exportStar(require("./tunnelRequestOptions"), exports);
|
|
18
|
+
__exportStar(require("./tunnelAccessTokenProperties"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
package/tsbuildinfo.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../contracts/tunnelaccesscontrolentrytype.d.ts","../contracts/tunnelaccesscontrolentry.d.ts","../contracts/tunnelaccesscontrolstatics.d.ts","../contracts/tunnelaccesscontrol.d.ts","../contracts/tunnelconnectionmode.d.ts","../contracts/tunnelendpointstatics.d.ts","../contracts/tunnelendpoint.d.ts","../contracts/tunneloptions.d.ts","../contracts/resourcestatus.d.ts","../contracts/ratestatus.d.ts","../contracts/tunnelportstatus.d.ts","../contracts/tunnelport.d.ts","../contracts/tunnelstatus.d.ts","../contracts/tunnel.d.ts","../contracts/problemdetails.d.ts","../contracts/tunnelaccessscopes.d.ts","../contracts/tunnelheadernames.d.ts","../contracts/tunnelprotocol.d.ts","../contracts/tunnelrelaytunnelendpoint.d.ts","../contracts/tunnelservicepropertiesstatics.d.ts","../contracts/tunnelserviceproperties.d.ts","../contracts/clusterdetails.d.ts","../contracts/index.d.ts","../../../src/management/tunnelrequestoptions.ts","../../../src/management/tunnelmanagementclient.ts","../../../src/management/tunnelaccesstokenproperties.ts","../../../src/management/package.json","../../../src/management/version.ts","../../../node_modules/axios/index.d.ts","../../../src/management/tunnelmanagementhttpclient.ts","../../../src/management/index.ts","../../../node_modules/@types/ms/index.d.ts","../../../node_modules/@types/debug/index.d.ts","../../../node_modules/@types/events/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/mocha/index.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/tmp/index.d.ts","../../../node_modules/@types/uuid/interfaces.d.ts","../../../node_modules/@types/uuid/index.d.ts","../../../node_modules/@types/websocket/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"7f646800e9874c296aa70fbefd11b528419ddd4372a588b5a8753922dd6b0e76","b822d403388ed81338027faf890b89f1041b72f9933fc8508455f451ce4d9eeb","bb40f1d5728e5bb7d4ccb4caa269bf09751f518b05961b6c3bca8c748f02b846","ba9dde411487a9a843e897eb88549b4065a566f4d8b2539e99e2e6af58d51aaa","10231e2c0391fc783dc6c95ac1192657ecd6088d6d45db402d26a59d03d2ae13","0a7e2430b3cc0adc4187c077c874f59fe5faa67fea680941f79885269bc07c14","85ddc8529cb1255194aa8e33b38cf2bc97b0f19664c5659a190fce0317f35494","5435b4647d55a160a598981917819487bfd553dae82fae00ee0d480260809622","f408aa3a6382dbbabcc8dc2368057703eefb57bb1e029ea2228a5e7ff880156f","5a0e7534b47aabf9c0b3c3f94d786b1e47a469b3db8faeb51b8e76b0ed07e49a","a4595586f63ad05c0ea8281dc1fb744ca6191ac13b4a690bc4a49df15d18490f","cb6eb157b7c4e44a45fd00a5cba8d57efda66139d49c17b350c82e726df8f73f","e4bbdfb808d0f63fe1e72ad1b0d2c8ff0738afe15512756f1030effcbcabde36","0db5076933174f1d75f7d0102f4b22655ee675de6489f553eeec648d1ba8ebc6","cce8d1ca08e3434d13ac6313dd4c78603c0d0d30e769739ea1792b91e7b6394b","86f7fd106760b045805c466e19e7571c124ce5d1a12072e35a6720774cb1a6fe","d0c8eb1b3fc2965fd27ba8a96f4d115fcb27c21879da6e0ad4ae91a7716f7f7a","0e3900d15ca0c8c08149581644abfc19e24652b0c30e285ec960249fd79b0ab3","779e0960d207a40ea60c349dc0fc3f49817e59ce273bbba5a158b6bf50c8e6b8","136616c6ea018a2cfdfba1267f8a0b43091dbe49b69a317565209c50f9ffef04","82d6efa3eff1d8f5615580e26bbcf40c62c99907864fdd3cdadc274acaad2687","d5e2af88923a20bb7c220e11a4b12a7aee41ee0bea3284e8eb3a17ef2e6a18b9","f01275d44ead63672ea812e280c0afb521e20337abebe527a6eaa0ef8577e182","c34fd9879d07312c60c65e0d563ab7d5a622492d57f1e9508d8f4139e9cbeaa8","7c6b80668eb521c286ae7db83a5f06935e8792b0c4fd4ff3d4a01db4d9b084ab","56db86d9b1fb79db2735c1b4c771ef9e60d49c6986d10a1fd6c805e8d80713d6","4b867b4c31aa41071a439e5034c7a9ebe2e3c49f2ed2dfbb6d12e42ae13168e6","ccc92613ade4cefa0c97c40cd12f5a632cdfac84ea3febc3974fdf4ac108f4f2","3154a026075044aa102298fe9e6a7a14aaa26a06270680c7478a1765af8ffb09","18b352722c499b28c6e396a279a189ccae55e3528ea1d7f2e8d15fe40879815a","be5fc5aba072abe7a918519565bffdbc34fc9d77a038b75b53df878947bd409a","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41","400db42c3a46984118bff14260d60cec580057dc1ab4c2d7310beb643e4f5935","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4",{"version":"c4c03cf65951d980ba618ae9601d10438730803fc9c8a1f7b34af8739981e205","affectsGlobalScope":true},"0ce65cf5b36034006f2b315f379179f07bd5a6027f6538c7aed4ac5be6742fc7",{"version":"23533216d80ee2a361476d23848e89e9e448243efd39c866d7aa45f749e1f10c","affectsGlobalScope":true},"0721418a90edc5fca466672f266ab6de12cb50a9db29998fc58765481a3c82ef","97b39f33e966bcf9762bccdaca76c94825199f3fef153ebea9bdfd3fcd2413b6","029ac7b8f8e02c0932ed881aac7321a65064d6bc84964d8fa3c5ab36f18d8a80","c41eff6b8e1f91104ae974ccd2bc37c723a462b30ca1df942b2c5b0158ef1df3","2e341737e0711c12040e83047487240b1693a6774253b8142d1a0500a805b7a1","e08e97c2865750e880fea09b150a702ccfa84163382daa0221f5597185a554bf","7ec6b45fc1f5f012ac226b44d0eeaf5a0e90947431ad7c6d1f244ba080b2870d","cb9602b051a0cb72e2a77160f95315cd3a51521d79bc53c6baa9e7b9afcaba17","8296198bc72e7ef2221b0e140738ce56004e8d1323cd08b0ac1a15295fe911b5","baeda1fadac9fd31920480b85340ab9c4266a25ad08403dee8e15fd0751101fb","12c4e8e811f4310b0dcaa3d1f843a35dc985f78941886cad4950453ad6753959","c4a89c5697132de27809abfb629c0f0add74b4592405f28af8909830390cab85","31544b63117232151ea2268088a7045a2acda55c091e489053803bfa8ed07bd2","318e46e7f7893360bf389abd8e33259a81a424038163a11493c4f2771e5645fe","a3586135924c800f21f739a1da43acace1acfdba124deb0871cbd6d04d7dfd1b","afe65de64262cec0469be9d7b93e751f52125aacd1ab600fbbd79b829a8e30d7","4ec74fe565d13fd219884cfacf903c89477cc54148887e51c5bead4dae7dc4fd","64bac41b1ecd4578543db0c244addd3fa59ada4cedd6e761cdae0e2fc2e340f2","a46d8aa9e561fb135d253e1657a0cd0f6c18377676305eb0ca28e418358b229c","5a168a15e7a423011b10da472ee3b6d92b27227c192cdaf1e09b30f58806856d","ad107fa472d28e615af522b31653e75caad12b834b257c1a83f6c4acff2de9bf",{"version":"07cfc938dfbb5a7b5ba3c363366db93d5728b0fcad1aa08a12052a1b3b72817a","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","67cf04da598e6407427a17d828e9e02d8f5ae5a8466dc73d1585073b8dc29160","d2df4329291a761edc8ebf536b1ff2179aa8871d55ae65a0bd74a44586a84f3e","140b05c89cbd5fc75c4e9c1780d85dfb4ea73a2b11dd345f8f944afd002ad74f","5019dc3aca34da91b66286bf0e906d229f02d835e68cd99e282cb70aba1b2f97","5b0df2143d96172bf207ed187627e8c58b15a1a8f97bdbc2ede942b36b39fc98","75409a3abea76ea586c6fb7f2e9f1a7dc007140e2d4ee26ab127735c4f9154e4","e4cd1b0962728076cb75389e6afe280342da5258347210ae04665ba9095dc6c4","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","807bf667365224f909aed5111ac8527e8e148f37fc73c61f70c762b920fb62c7","3d87bdaed72f86b91f99401e6e04729afbb5916064778cf324b3d9b51c3a6d91","8ca837d16a31d6d01b13328ca9e6a39e424b4bf294d3b73349dccacea51be730","a9d40247ec6c68a47effbb1d8acd8df288bcee7b6bf29c17cf4161e5ef609a0c","caf38c850b924a0af08a893d06f68fcae3d5a41780b50cc6df9481beeca8e9a3","7152c46a63e7f9ac7db6cd8d4dbf85d90f051a0db60e650573fae576580cbf9a","496370c58ed054e51a68517846c28a695bf84df2873556cca7fe51e297b32420",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"763a53af78c82d989191758ea6e5541deb4724e49c44117dac773832c503e399","e2e10045d93d3b029dcd62784bafb7200d4eb51b1ef6a98b77baa763b9a5e1d3","4116dff2582ecc8645c3a90d26707ec6fd9ede6631f63fb65f11d42806bb47f1","8486ee0cb2ef80c6555941e2e0d081b27e9a07eca9df720c99f001f5220f14b5","6e40a3a87126255d4c1aa4d613923b6e3c5c28273d018a8591af338232f393ab","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","f5eeb7afb84f4e74ed655e5bf5455b7b192ee3d79cc8e869ce854fd5f554d2b5"],"options":{"composite":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"module":1,"outDir":"./","rootDir":"../../../src/management","sourceMap":true,"strict":true,"stripInternal":true,"target":4,"tsBuildInfoFile":"./tsbuildinfo.json"},"fileIdsList":[[60],[77,84,93],[69,77,84],[93],[75,77,84],[77],[77,93,99],[84,93,99],[77,78,79,84,93,96,99],[79,93,96,99],[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],[75,77,93],[67],[98],[91,100,102],[84],[90],[77,78,93,102],[109],[77,79,81,84,99,107],[112],[29,30,32,33,35,36,39,40,41,42,43,44,45,46,47,49,50],[37],[32,35,36,40,41],[30,31],[29],[33,34],[35],[32,36,39],[37,38],[48],[49],[52,53,54,58],[51],[51,52,81],[51,52,53,54,56,57,81],[55]],"referencedMap":[[61,1],[69,2],[70,3],[73,4],[74,5],[76,6],[77,6],[78,7],[79,8],[80,9],[81,10],[107,11],[82,6],[84,12],[87,13],[88,14],[91,6],[92,15],[93,6],[96,16],[98,16],[99,17],[101,4],[104,18],[105,4],[110,19],[111,20],[113,21],[51,22],[38,23],[42,24],[32,25],[30,26],[35,27],[34,28],[40,29],[39,30],[47,28],[49,31],[48,32],[41,30],[59,33],[54,34],[53,35],[58,36],[56,37]],"exportedModulesMap":[[61,1],[69,2],[70,3],[73,4],[74,5],[76,6],[77,6],[78,7],[79,8],[80,9],[81,10],[107,11],[82,6],[84,12],[87,13],[88,14],[91,6],[92,15],[93,6],[96,16],[98,16],[99,17],[101,4],[104,18],[105,4],[110,19],[111,20],[113,21],[51,22],[38,23],[42,24],[32,25],[30,26],[35,27],[34,28],[40,29],[39,30],[47,28],[49,31],[48,32],[41,30],[59,33],[54,34],[53,35],[58,36],[56,37]],"semanticDiagnosticsPerFile":[61,62,63,64,60,65,67,68,69,70,71,72,73,74,75,76,77,78,66,106,79,80,81,107,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,108,110,109,111,112,113,57,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,50,51,43,38,37,42,32,30,29,31,44,33,35,34,45,36,40,39,46,47,49,48,41,59,55,54,53,58,52,56]},"version":"4.4.2"}
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../contracts/tunnelAccessControlEntryType.d.ts","../contracts/tunnelAccessControlEntry.d.ts","../contracts/tunnelAccessControlStatics.d.ts","../contracts/tunnelAccessControl.d.ts","../contracts/tunnelConnectionMode.d.ts","../contracts/tunnelEndpointStatics.d.ts","../contracts/tunnelEndpoint.d.ts","../contracts/tunnelOptions.d.ts","../contracts/resourceStatus.d.ts","../contracts/rateStatus.d.ts","../contracts/tunnelPortStatus.d.ts","../contracts/tunnelPort.d.ts","../contracts/tunnelStatus.d.ts","../contracts/tunnel.d.ts","../contracts/problemDetails.d.ts","../contracts/tunnelAccessScopes.d.ts","../contracts/tunnelHeaderNames.d.ts","../contracts/tunnelProtocol.d.ts","../contracts/tunnelRelayTunnelEndpoint.d.ts","../contracts/tunnelServicePropertiesStatics.d.ts","../contracts/tunnelServiceProperties.d.ts","../contracts/clusterDetails.d.ts","../contracts/index.d.ts","../../../src/management/tunnelRequestOptions.ts","../../../src/management/tunnelManagementClient.ts","../../../src/management/tunnelAccessTokenProperties.ts","../../../src/management/package.json","../../../src/management/version.ts","../../../node_modules/axios/index.d.ts","../../../src/management/tunnelManagementHttpClient.ts","../../../src/management/index.ts","../../../node_modules/@types/ms/index.d.ts","../../../node_modules/@types/debug/index.d.ts","../../../node_modules/@types/events/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/mocha/index.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/tmp/index.d.ts","../../../node_modules/@types/uuid/interfaces.d.ts","../../../node_modules/@types/uuid/index.d.ts","../../../node_modules/@types/websocket/index.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"0631af7a01d5c038c926e4995b90e960c8dfb334aa832f1ae17731cf10dba7b8","9632ce3e07841a8586a2797f53e50d9d9f41624b370897b623462b74f121de1b","ed131ca0aa394f683cda8478ebd893f46554c2df17b45409b1d0ed13964f885b","0fbd13b4e3f8932b9fb1cf5841d46e629d94744058ef8d7445df0d74b7890896","35e49678ec00b2f77eff897d3eb7131f3f0ba185278125a495fd021a1f65ce68","0731e7b6a6dbd598e361b43c61274382aa12f3f2310cd2be1af2217a9d7a3194","6a380ac028bd32f0a9375cfb999c82657c590b4ec4efb7a71beb4b1c415807df","45a78370cbc613acf93aa8dd6cea0af90afcb11b563ac28cf56fdc446abc1047","417ac52308354a219d84c410033fd308ff9d1a425d0d4ac74dd8f92237665da0","d8f5fa9e46485c897b947f5c41b94aaeaca7797ef9223391ea17b4bbfbc3672f","25f49e92b42a4e8ff69a8f3c3ad941038e14b1db1979d4f4e8f15dafd89d14a3","535221761b4bc367838ff688e51434dc165984d3cd5a68401434cedc202390ec","cd44627c13f1e74aca2b8c84ed580e4ba370af0aaf1f45193debc1006c8d2151","64faaeba77655eea535737e774812f988ff219165d90226f49d0050cb0e9cade","a76e9101aa9359690a697c9cdaef16e5ae5a3340683558716d6cf34f05407881","884bc4095e0e65711caf80c792e4094f2d3ea25bc4a16f6bd6827627f21ceaed","ac30651f6fefab3e66a3ae3d342c3388e8c0802b74a97a523e7e69a7af6fd91d","4bdcba92cfa9c33db4119043105ba9a4be26328b4157302c9260ce94fc2e1317","a5d88d0548bb5b5b8d20976e45bb31d13b1153b9dac8b6abdf005dd05e0d4309","4e77675d511f9fdea854f4261f319481466d3253de25da8c9c968c5d951dbc48","a303090c5df80577a00c82faabe1b504ba174797c9bcd6c88a3b3d3f88aafd38","7a7ee7def2f98061225cc5ca12a585ab8bb68f0fd97473688faf61496a1132b6","5cceae61719c9cfda90dbd082b4b89016162fe66713549f8a9122b5a6294b9f3","e3cd249c151f346800941cac96685362db9dc7e604df670865edfad8f8316ca5","654076d8add7688027f6fa19955a82af4f480ae26572deffced3a44726d323db","43e9a746b58fa1732cb046ce8053be06d904f7cbba1e34a8bb9ca3fad21bf0e5","a3bff5a25c152fc17092b39e81ffc55bef28b14828809b9661173a3e214ee6f8","5b2d0771f5dc94b9f99e941679650105f8a65e26f0f2aafd5e68fd83b29a6e41","3154a026075044aa102298fe9e6a7a14aaa26a06270680c7478a1765af8ffb09","bfc76d73a81146393d50ac2bce28e1e97889a9e57f1abb8d70e42790b6fb5ddf","32f45e7145971b25949a765abce0b313e6a79bd85b2cc4ab543b58df39c1a4df","6a9c5127096b35264eb7cd21b2417bfc1d42cceca9ba4ce2bb0c3410b7816042","78828b06c0d3b586954015e9ebde5480b009e166c71244763bda328ec0920f41","400db42c3a46984118bff14260d60cec580057dc1ab4c2d7310beb643e4f5935","0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4",{"version":"c4c03cf65951d980ba618ae9601d10438730803fc9c8a1f7b34af8739981e205","affectsGlobalScope":true},"0ce65cf5b36034006f2b315f379179f07bd5a6027f6538c7aed4ac5be6742fc7",{"version":"23533216d80ee2a361476d23848e89e9e448243efd39c866d7aa45f749e1f10c","affectsGlobalScope":true},"0721418a90edc5fca466672f266ab6de12cb50a9db29998fc58765481a3c82ef","97b39f33e966bcf9762bccdaca76c94825199f3fef153ebea9bdfd3fcd2413b6","029ac7b8f8e02c0932ed881aac7321a65064d6bc84964d8fa3c5ab36f18d8a80","c41eff6b8e1f91104ae974ccd2bc37c723a462b30ca1df942b2c5b0158ef1df3","2e341737e0711c12040e83047487240b1693a6774253b8142d1a0500a805b7a1","e08e97c2865750e880fea09b150a702ccfa84163382daa0221f5597185a554bf","7ec6b45fc1f5f012ac226b44d0eeaf5a0e90947431ad7c6d1f244ba080b2870d","cb9602b051a0cb72e2a77160f95315cd3a51521d79bc53c6baa9e7b9afcaba17","8296198bc72e7ef2221b0e140738ce56004e8d1323cd08b0ac1a15295fe911b5","baeda1fadac9fd31920480b85340ab9c4266a25ad08403dee8e15fd0751101fb","12c4e8e811f4310b0dcaa3d1f843a35dc985f78941886cad4950453ad6753959","c4a89c5697132de27809abfb629c0f0add74b4592405f28af8909830390cab85","31544b63117232151ea2268088a7045a2acda55c091e489053803bfa8ed07bd2","318e46e7f7893360bf389abd8e33259a81a424038163a11493c4f2771e5645fe","a3586135924c800f21f739a1da43acace1acfdba124deb0871cbd6d04d7dfd1b","afe65de64262cec0469be9d7b93e751f52125aacd1ab600fbbd79b829a8e30d7","4ec74fe565d13fd219884cfacf903c89477cc54148887e51c5bead4dae7dc4fd","64bac41b1ecd4578543db0c244addd3fa59ada4cedd6e761cdae0e2fc2e340f2","a46d8aa9e561fb135d253e1657a0cd0f6c18377676305eb0ca28e418358b229c","5a168a15e7a423011b10da472ee3b6d92b27227c192cdaf1e09b30f58806856d","ad107fa472d28e615af522b31653e75caad12b834b257c1a83f6c4acff2de9bf",{"version":"07cfc938dfbb5a7b5ba3c363366db93d5728b0fcad1aa08a12052a1b3b72817a","affectsGlobalScope":true},"7f77304372efe3c9967e5f9ea2061f1b4bf41dc3cda3c83cdd676f2e5af6b7e6","67cf04da598e6407427a17d828e9e02d8f5ae5a8466dc73d1585073b8dc29160","d2df4329291a761edc8ebf536b1ff2179aa8871d55ae65a0bd74a44586a84f3e","140b05c89cbd5fc75c4e9c1780d85dfb4ea73a2b11dd345f8f944afd002ad74f","5019dc3aca34da91b66286bf0e906d229f02d835e68cd99e282cb70aba1b2f97","5b0df2143d96172bf207ed187627e8c58b15a1a8f97bdbc2ede942b36b39fc98","75409a3abea76ea586c6fb7f2e9f1a7dc007140e2d4ee26ab127735c4f9154e4","e4cd1b0962728076cb75389e6afe280342da5258347210ae04665ba9095dc6c4","7df562288f949945cf69c21cd912100c2afedeeb7cdb219085f7f4b46cb7dde4","9d16690485ff1eb4f6fc57aebe237728fd8e03130c460919da3a35f4d9bd97f5","807bf667365224f909aed5111ac8527e8e148f37fc73c61f70c762b920fb62c7","3d87bdaed72f86b91f99401e6e04729afbb5916064778cf324b3d9b51c3a6d91","8ca837d16a31d6d01b13328ca9e6a39e424b4bf294d3b73349dccacea51be730","a9d40247ec6c68a47effbb1d8acd8df288bcee7b6bf29c17cf4161e5ef609a0c","caf38c850b924a0af08a893d06f68fcae3d5a41780b50cc6df9481beeca8e9a3","7152c46a63e7f9ac7db6cd8d4dbf85d90f051a0db60e650573fae576580cbf9a","496370c58ed054e51a68517846c28a695bf84df2873556cca7fe51e297b32420",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"763a53af78c82d989191758ea6e5541deb4724e49c44117dac773832c503e399","e2e10045d93d3b029dcd62784bafb7200d4eb51b1ef6a98b77baa763b9a5e1d3","4116dff2582ecc8645c3a90d26707ec6fd9ede6631f63fb65f11d42806bb47f1","8486ee0cb2ef80c6555941e2e0d081b27e9a07eca9df720c99f001f5220f14b5","6e40a3a87126255d4c1aa4d613923b6e3c5c28273d018a8591af338232f393ab","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","f5eeb7afb84f4e74ed655e5bf5455b7b192ee3d79cc8e869ce854fd5f554d2b5"],"options":{"composite":true,"declaration":true,"declarationMap":true,"experimentalDecorators":true,"module":1,"outDir":"./","rootDir":"../../../src/management","sourceMap":true,"strict":true,"stripInternal":true,"target":4,"tsBuildInfoFile":"./tsbuildinfo.json"},"fileIdsList":[[60],[77,84,93],[69,77,84],[93],[75,77,84],[77],[77,93,99],[84,93,99],[77,78,79,84,93,96,99],[79,93,96,99],[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],[75,77,93],[67],[98],[91,100,102],[84],[90],[77,78,93,102],[109],[77,79,81,84,99,107],[112],[29,30,32,33,35,36,39,40,41,42,43,44,45,46,47,49,50],[37],[32,35,36,40,41],[30,31],[29],[33,34],[35],[32,36,39],[37,38],[48],[49],[52,53,54,58],[51],[51,52,81],[51,52,53,54,56,57,81],[55]],"referencedMap":[[61,1],[69,2],[70,3],[73,4],[74,5],[76,6],[77,6],[78,7],[79,8],[80,9],[81,10],[107,11],[82,6],[84,12],[87,13],[88,14],[91,6],[92,15],[93,6],[96,16],[98,16],[99,17],[101,4],[104,18],[105,4],[110,19],[111,20],[113,21],[51,22],[38,23],[42,24],[32,25],[30,26],[35,27],[34,28],[40,29],[39,30],[47,28],[49,31],[48,32],[41,30],[59,33],[54,34],[53,35],[58,36],[56,37]],"exportedModulesMap":[[61,1],[69,2],[70,3],[73,4],[74,5],[76,6],[77,6],[78,7],[79,8],[80,9],[81,10],[107,11],[82,6],[84,12],[87,13],[88,14],[91,6],[92,15],[93,6],[96,16],[98,16],[99,17],[101,4],[104,18],[105,4],[110,19],[111,20],[113,21],[51,22],[38,23],[42,24],[32,25],[30,26],[35,27],[34,28],[40,29],[39,30],[47,28],[49,31],[48,32],[41,30],[59,33],[54,34],[53,35],[58,36],[56,37]],"semanticDiagnosticsPerFile":[61,62,63,64,60,65,67,68,69,70,71,72,73,74,75,76,77,78,66,106,79,80,81,107,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,108,110,109,111,112,113,57,6,8,7,2,9,10,11,12,13,14,15,16,3,4,20,17,18,19,21,22,23,5,24,25,26,27,1,28,50,51,43,38,37,42,32,30,29,31,44,33,35,34,45,36,40,39,46,47,49,48,41,59,55,54,53,58,52,56]},"version":"4.4.2"}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { Tunnel } from '@microsoft/dev-tunnels-contracts';
|
|
2
|
-
/**
|
|
3
|
-
* Supports parsing tunnel access token JWT properties to allow for some pre-validation
|
|
4
|
-
* and diagnostics.
|
|
5
|
-
*
|
|
6
|
-
* Applications generally should not attempt to interpret or rely on any token properties
|
|
7
|
-
* other than `expiration`, because the service may change or omit those claims in the future.
|
|
8
|
-
* Other claims are exposed here only for diagnostic purposes.
|
|
9
|
-
*/
|
|
10
|
-
export declare class TunnelAccessTokenProperties {
|
|
11
|
-
clusterId?: string;
|
|
12
|
-
tunnelId?: string;
|
|
13
|
-
tunnelPort?: number;
|
|
14
|
-
scp?: string;
|
|
15
|
-
iss?: string;
|
|
16
|
-
exp?: number;
|
|
17
|
-
toString(): string;
|
|
18
|
-
/**
|
|
19
|
-
* Checks if the tunnel access token expiration claim is in the past.
|
|
20
|
-
*
|
|
21
|
-
* (Does not throw if the token is an invalid format.)
|
|
22
|
-
*/
|
|
23
|
-
static validateTokenExpiration(token: string): void;
|
|
24
|
-
/**
|
|
25
|
-
* Attempts to parse a tunnel access token (JWT). This does NOT validate the token
|
|
26
|
-
* signature or any claims.
|
|
27
|
-
*/
|
|
28
|
-
static tryParse(token: string): TunnelAccessTokenProperties | null;
|
|
29
|
-
/**
|
|
30
|
-
* Gets the tunnal access token trace string.
|
|
31
|
-
* 'none' if null or undefined, parsed token info if can be parsed, or 'token' if cannot be parsed.
|
|
32
|
-
*/
|
|
33
|
-
static getTokenTrace(token?: string | null | undefined): string;
|
|
34
|
-
/**
|
|
35
|
-
* Gets a tunnel access token that matches any of the provided access token scopes.
|
|
36
|
-
* Validates token expiration if the token is found and throws an error if it's expired.
|
|
37
|
-
* @param tunnel The tunnel to get the access tokens from.
|
|
38
|
-
* @param accessTokenScopes What scopes the token needs to have.
|
|
39
|
-
* @returns Tunnel access token if found; otherwise, undefined.
|
|
40
|
-
*/
|
|
41
|
-
static getTunnelAccessToken(tunnel?: Tunnel, accessTokenScopes?: string | string[]): string | undefined;
|
|
42
|
-
private static base64UrlDecode;
|
|
43
|
-
}
|
|
1
|
+
import { Tunnel } from '@microsoft/dev-tunnels-contracts';
|
|
2
|
+
/**
|
|
3
|
+
* Supports parsing tunnel access token JWT properties to allow for some pre-validation
|
|
4
|
+
* and diagnostics.
|
|
5
|
+
*
|
|
6
|
+
* Applications generally should not attempt to interpret or rely on any token properties
|
|
7
|
+
* other than `expiration`, because the service may change or omit those claims in the future.
|
|
8
|
+
* Other claims are exposed here only for diagnostic purposes.
|
|
9
|
+
*/
|
|
10
|
+
export declare class TunnelAccessTokenProperties {
|
|
11
|
+
clusterId?: string;
|
|
12
|
+
tunnelId?: string;
|
|
13
|
+
tunnelPort?: number;
|
|
14
|
+
scp?: string;
|
|
15
|
+
iss?: string;
|
|
16
|
+
exp?: number;
|
|
17
|
+
toString(): string;
|
|
18
|
+
/**
|
|
19
|
+
* Checks if the tunnel access token expiration claim is in the past.
|
|
20
|
+
*
|
|
21
|
+
* (Does not throw if the token is an invalid format.)
|
|
22
|
+
*/
|
|
23
|
+
static validateTokenExpiration(token: string): void;
|
|
24
|
+
/**
|
|
25
|
+
* Attempts to parse a tunnel access token (JWT). This does NOT validate the token
|
|
26
|
+
* signature or any claims.
|
|
27
|
+
*/
|
|
28
|
+
static tryParse(token: string): TunnelAccessTokenProperties | null;
|
|
29
|
+
/**
|
|
30
|
+
* Gets the tunnal access token trace string.
|
|
31
|
+
* 'none' if null or undefined, parsed token info if can be parsed, or 'token' if cannot be parsed.
|
|
32
|
+
*/
|
|
33
|
+
static getTokenTrace(token?: string | null | undefined): string;
|
|
34
|
+
/**
|
|
35
|
+
* Gets a tunnel access token that matches any of the provided access token scopes.
|
|
36
|
+
* Validates token expiration if the token is found and throws an error if it's expired.
|
|
37
|
+
* @param tunnel The tunnel to get the access tokens from.
|
|
38
|
+
* @param accessTokenScopes What scopes the token needs to have.
|
|
39
|
+
* @returns Tunnel access token if found; otherwise, undefined.
|
|
40
|
+
*/
|
|
41
|
+
static getTunnelAccessToken(tunnel?: Tunnel, accessTokenScopes?: string | string[]): string | undefined;
|
|
42
|
+
private static base64UrlDecode;
|
|
43
|
+
}
|
|
44
44
|
//# sourceMappingURL=tunnelAccessTokenProperties.d.ts.map
|
|
@@ -1,139 +1,139 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright (c) Microsoft Corporation.
|
|
3
|
-
// Licensed under the MIT license.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TunnelAccessTokenProperties = void 0;
|
|
6
|
-
/**
|
|
7
|
-
* Supports parsing tunnel access token JWT properties to allow for some pre-validation
|
|
8
|
-
* and diagnostics.
|
|
9
|
-
*
|
|
10
|
-
* Applications generally should not attempt to interpret or rely on any token properties
|
|
11
|
-
* other than `expiration`, because the service may change or omit those claims in the future.
|
|
12
|
-
* Other claims are exposed here only for diagnostic purposes.
|
|
13
|
-
*/
|
|
14
|
-
class TunnelAccessTokenProperties {
|
|
15
|
-
toString() {
|
|
16
|
-
let s = '';
|
|
17
|
-
if (this.tunnelId) {
|
|
18
|
-
s += 'tunnel=';
|
|
19
|
-
s += this.tunnelId;
|
|
20
|
-
if (this.clusterId) {
|
|
21
|
-
s += '.';
|
|
22
|
-
s += this.clusterId;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
if (typeof this.tunnelPort === 'number') {
|
|
26
|
-
if (s.length > 0)
|
|
27
|
-
s += ', ';
|
|
28
|
-
s += 'port=';
|
|
29
|
-
s += this.tunnelPort;
|
|
30
|
-
}
|
|
31
|
-
if (this.scp) {
|
|
32
|
-
if (s.length > 0)
|
|
33
|
-
s += ', ';
|
|
34
|
-
const scopes = this.scp.split(' ');
|
|
35
|
-
s += `scopes=[${scopes.join(', ')}]`;
|
|
36
|
-
}
|
|
37
|
-
if (this.iss) {
|
|
38
|
-
if (s.length > 0)
|
|
39
|
-
s += ', ';
|
|
40
|
-
s += 'issuer=';
|
|
41
|
-
s += this.iss;
|
|
42
|
-
}
|
|
43
|
-
if (this.exp) {
|
|
44
|
-
if (s.length > 0)
|
|
45
|
-
s += ', ';
|
|
46
|
-
const expiration = new Date(this.exp * 1000);
|
|
47
|
-
s += 'expiration=';
|
|
48
|
-
s += expiration.toString().replace('.000Z', 'Z');
|
|
49
|
-
}
|
|
50
|
-
return s;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Checks if the tunnel access token expiration claim is in the past.
|
|
54
|
-
*
|
|
55
|
-
* (Does not throw if the token is an invalid format.)
|
|
56
|
-
*/
|
|
57
|
-
static validateTokenExpiration(token) {
|
|
58
|
-
const t = TunnelAccessTokenProperties.tryParse(token);
|
|
59
|
-
if (typeof (t === null || t === void 0 ? void 0 : t.exp) === 'number') {
|
|
60
|
-
const expiration = new Date(t.exp * 1000);
|
|
61
|
-
if (expiration < new Date()) {
|
|
62
|
-
throw new Error('The access token is expired: ' + t);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Attempts to parse a tunnel access token (JWT). This does NOT validate the token
|
|
68
|
-
* signature or any claims.
|
|
69
|
-
*/
|
|
70
|
-
static tryParse(token) {
|
|
71
|
-
if (typeof token !== 'string')
|
|
72
|
-
throw new TypeError('Token string expected.');
|
|
73
|
-
// JWTs are encoded in 3 parts: header, body, and signature.
|
|
74
|
-
const tokenParts = token.split('.');
|
|
75
|
-
if (tokenParts.length !== 3) {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
const tokenBodyJson = TunnelAccessTokenProperties.base64UrlDecode(tokenParts[1]);
|
|
79
|
-
if (!tokenBodyJson) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
try {
|
|
83
|
-
const result = new TunnelAccessTokenProperties();
|
|
84
|
-
Object.assign(result, JSON.parse(tokenBodyJson));
|
|
85
|
-
return result;
|
|
86
|
-
}
|
|
87
|
-
catch (_a) {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Gets the tunnal access token trace string.
|
|
93
|
-
* 'none' if null or undefined, parsed token info if can be parsed, or 'token' if cannot be parsed.
|
|
94
|
-
*/
|
|
95
|
-
static getTokenTrace(token) {
|
|
96
|
-
var _a, _b;
|
|
97
|
-
return !token ? 'none' : (_b = (_a = TunnelAccessTokenProperties.tryParse(token)) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : 'token';
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Gets a tunnel access token that matches any of the provided access token scopes.
|
|
101
|
-
* Validates token expiration if the token is found and throws an error if it's expired.
|
|
102
|
-
* @param tunnel The tunnel to get the access tokens from.
|
|
103
|
-
* @param accessTokenScopes What scopes the token needs to have.
|
|
104
|
-
* @returns Tunnel access token if found; otherwise, undefined.
|
|
105
|
-
*/
|
|
106
|
-
static getTunnelAccessToken(tunnel, accessTokenScopes) {
|
|
107
|
-
if (!(tunnel === null || tunnel === void 0 ? void 0 : tunnel.accessTokens) || !accessTokenScopes) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
if (!Array.isArray(accessTokenScopes)) {
|
|
111
|
-
accessTokenScopes = [accessTokenScopes];
|
|
112
|
-
}
|
|
113
|
-
for (let scope of accessTokenScopes) {
|
|
114
|
-
for (let [key, accessToken] of Object.entries(tunnel.accessTokens)) {
|
|
115
|
-
// Each key may be either a single scope or space-delimited list of scopes.
|
|
116
|
-
if (accessToken && key.split(' ').includes(scope)) {
|
|
117
|
-
TunnelAccessTokenProperties.validateTokenExpiration(accessToken);
|
|
118
|
-
return accessToken;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
static base64UrlDecode(encodedString) {
|
|
124
|
-
// Convert from base64url encoding to base64 encoding: replace chars and add padding.
|
|
125
|
-
encodedString = encodedString.replace('-', '+');
|
|
126
|
-
while (encodedString.length % 4 !== 0) {
|
|
127
|
-
encodedString += '=';
|
|
128
|
-
}
|
|
129
|
-
try {
|
|
130
|
-
const result = atob(encodedString);
|
|
131
|
-
return result;
|
|
132
|
-
}
|
|
133
|
-
catch (_a) {
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
exports.TunnelAccessTokenProperties = TunnelAccessTokenProperties;
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.TunnelAccessTokenProperties = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* Supports parsing tunnel access token JWT properties to allow for some pre-validation
|
|
8
|
+
* and diagnostics.
|
|
9
|
+
*
|
|
10
|
+
* Applications generally should not attempt to interpret or rely on any token properties
|
|
11
|
+
* other than `expiration`, because the service may change or omit those claims in the future.
|
|
12
|
+
* Other claims are exposed here only for diagnostic purposes.
|
|
13
|
+
*/
|
|
14
|
+
class TunnelAccessTokenProperties {
|
|
15
|
+
toString() {
|
|
16
|
+
let s = '';
|
|
17
|
+
if (this.tunnelId) {
|
|
18
|
+
s += 'tunnel=';
|
|
19
|
+
s += this.tunnelId;
|
|
20
|
+
if (this.clusterId) {
|
|
21
|
+
s += '.';
|
|
22
|
+
s += this.clusterId;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (typeof this.tunnelPort === 'number') {
|
|
26
|
+
if (s.length > 0)
|
|
27
|
+
s += ', ';
|
|
28
|
+
s += 'port=';
|
|
29
|
+
s += this.tunnelPort;
|
|
30
|
+
}
|
|
31
|
+
if (this.scp) {
|
|
32
|
+
if (s.length > 0)
|
|
33
|
+
s += ', ';
|
|
34
|
+
const scopes = this.scp.split(' ');
|
|
35
|
+
s += `scopes=[${scopes.join(', ')}]`;
|
|
36
|
+
}
|
|
37
|
+
if (this.iss) {
|
|
38
|
+
if (s.length > 0)
|
|
39
|
+
s += ', ';
|
|
40
|
+
s += 'issuer=';
|
|
41
|
+
s += this.iss;
|
|
42
|
+
}
|
|
43
|
+
if (this.exp) {
|
|
44
|
+
if (s.length > 0)
|
|
45
|
+
s += ', ';
|
|
46
|
+
const expiration = new Date(this.exp * 1000);
|
|
47
|
+
s += 'expiration=';
|
|
48
|
+
s += expiration.toString().replace('.000Z', 'Z');
|
|
49
|
+
}
|
|
50
|
+
return s;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Checks if the tunnel access token expiration claim is in the past.
|
|
54
|
+
*
|
|
55
|
+
* (Does not throw if the token is an invalid format.)
|
|
56
|
+
*/
|
|
57
|
+
static validateTokenExpiration(token) {
|
|
58
|
+
const t = TunnelAccessTokenProperties.tryParse(token);
|
|
59
|
+
if (typeof (t === null || t === void 0 ? void 0 : t.exp) === 'number') {
|
|
60
|
+
const expiration = new Date(t.exp * 1000);
|
|
61
|
+
if (expiration < new Date()) {
|
|
62
|
+
throw new Error('The access token is expired: ' + t);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Attempts to parse a tunnel access token (JWT). This does NOT validate the token
|
|
68
|
+
* signature or any claims.
|
|
69
|
+
*/
|
|
70
|
+
static tryParse(token) {
|
|
71
|
+
if (typeof token !== 'string')
|
|
72
|
+
throw new TypeError('Token string expected.');
|
|
73
|
+
// JWTs are encoded in 3 parts: header, body, and signature.
|
|
74
|
+
const tokenParts = token.split('.');
|
|
75
|
+
if (tokenParts.length !== 3) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
const tokenBodyJson = TunnelAccessTokenProperties.base64UrlDecode(tokenParts[1]);
|
|
79
|
+
if (!tokenBodyJson) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
82
|
+
try {
|
|
83
|
+
const result = new TunnelAccessTokenProperties();
|
|
84
|
+
Object.assign(result, JSON.parse(tokenBodyJson));
|
|
85
|
+
return result;
|
|
86
|
+
}
|
|
87
|
+
catch (_a) {
|
|
88
|
+
return null;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Gets the tunnal access token trace string.
|
|
93
|
+
* 'none' if null or undefined, parsed token info if can be parsed, or 'token' if cannot be parsed.
|
|
94
|
+
*/
|
|
95
|
+
static getTokenTrace(token) {
|
|
96
|
+
var _a, _b;
|
|
97
|
+
return !token ? 'none' : (_b = (_a = TunnelAccessTokenProperties.tryParse(token)) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : 'token';
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Gets a tunnel access token that matches any of the provided access token scopes.
|
|
101
|
+
* Validates token expiration if the token is found and throws an error if it's expired.
|
|
102
|
+
* @param tunnel The tunnel to get the access tokens from.
|
|
103
|
+
* @param accessTokenScopes What scopes the token needs to have.
|
|
104
|
+
* @returns Tunnel access token if found; otherwise, undefined.
|
|
105
|
+
*/
|
|
106
|
+
static getTunnelAccessToken(tunnel, accessTokenScopes) {
|
|
107
|
+
if (!(tunnel === null || tunnel === void 0 ? void 0 : tunnel.accessTokens) || !accessTokenScopes) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (!Array.isArray(accessTokenScopes)) {
|
|
111
|
+
accessTokenScopes = [accessTokenScopes];
|
|
112
|
+
}
|
|
113
|
+
for (let scope of accessTokenScopes) {
|
|
114
|
+
for (let [key, accessToken] of Object.entries(tunnel.accessTokens)) {
|
|
115
|
+
// Each key may be either a single scope or space-delimited list of scopes.
|
|
116
|
+
if (accessToken && key.split(' ').includes(scope)) {
|
|
117
|
+
TunnelAccessTokenProperties.validateTokenExpiration(accessToken);
|
|
118
|
+
return accessToken;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
static base64UrlDecode(encodedString) {
|
|
124
|
+
// Convert from base64url encoding to base64 encoding: replace chars and add padding.
|
|
125
|
+
encodedString = encodedString.replace('-', '+');
|
|
126
|
+
while (encodedString.length % 4 !== 0) {
|
|
127
|
+
encodedString += '=';
|
|
128
|
+
}
|
|
129
|
+
try {
|
|
130
|
+
const result = atob(encodedString);
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
133
|
+
catch (_a) {
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.TunnelAccessTokenProperties = TunnelAccessTokenProperties;
|
|
139
139
|
//# sourceMappingURL=tunnelAccessTokenProperties.js.map
|