@microsoft/dev-tunnels-contracts 1.3.6 → 1.3.37

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 (84) hide show
  1. package/README.md +2 -2
  2. package/clusterDetails.d.ts +19 -19
  3. package/clusterDetails.js +6 -6
  4. package/errorCodes.d.ts +17 -17
  5. package/errorCodes.js +25 -25
  6. package/errorDetail.d.ts +27 -27
  7. package/errorDetail.js +6 -6
  8. package/index.d.ts +24 -24
  9. package/index.js +29 -29
  10. package/innerErrorDetail.d.ts +15 -15
  11. package/innerErrorDetail.js +6 -6
  12. package/localNetworkTunnelEndpoint.d.ts +20 -20
  13. package/localNetworkTunnelEndpoint.js +6 -6
  14. package/namedRateStatus.d.ts +10 -10
  15. package/namedRateStatus.js +6 -6
  16. package/package.json +1 -1
  17. package/problemDetails.d.ts +24 -24
  18. package/problemDetails.js +6 -6
  19. package/rateStatus.d.ts +19 -19
  20. package/rateStatus.js +6 -6
  21. package/resourceStatus.d.ts +22 -22
  22. package/resourceStatus.js +6 -6
  23. package/serviceVersionDetails.d.ts +26 -26
  24. package/serviceVersionDetails.js +6 -6
  25. package/tsbuildinfo.json +1 -1
  26. package/tunnel.d.ts +87 -87
  27. package/tunnel.js +6 -6
  28. package/tunnelAccessControl.d.ts +27 -27
  29. package/tunnelAccessControl.js +13 -13
  30. package/tunnelAccessControlEntry.d.ts +116 -116
  31. package/tunnelAccessControlEntry.js +40 -40
  32. package/tunnelAccessControlEntryType.d.ts +45 -45
  33. package/tunnelAccessControlEntryType.js +53 -53
  34. package/tunnelAccessControlStatics.d.ts +10 -10
  35. package/tunnelAccessControlStatics.js +46 -46
  36. package/tunnelAccessScopes.d.ts +38 -38
  37. package/tunnelAccessScopes.js +46 -46
  38. package/tunnelAccessSubject.d.ts +39 -39
  39. package/tunnelAccessSubject.js +6 -6
  40. package/tunnelAuthenticationSchemes.d.ts +21 -21
  41. package/tunnelAuthenticationSchemes.js +29 -29
  42. package/tunnelConnectionMode.d.ts +19 -19
  43. package/tunnelConnectionMode.js +27 -27
  44. package/tunnelConstraints.d.ts +268 -253
  45. package/tunnelConstraints.d.ts.map +1 -1
  46. package/tunnelConstraints.js +276 -261
  47. package/tunnelConstraints.js.map +1 -1
  48. package/tunnelEndpoint.d.ts +76 -76
  49. package/tunnelEndpoint.js +20 -20
  50. package/tunnelEndpointStatics.d.ts +19 -19
  51. package/tunnelEndpointStatics.js +48 -48
  52. package/tunnelEvent.d.ts +48 -48
  53. package/tunnelEvent.js +24 -24
  54. package/tunnelHeaderNames.d.ts +27 -27
  55. package/tunnelHeaderNames.js +35 -35
  56. package/tunnelListByRegion.d.ts +23 -23
  57. package/tunnelListByRegion.js +6 -6
  58. package/tunnelListByRegionResponse.d.ts +14 -14
  59. package/tunnelListByRegionResponse.js +6 -6
  60. package/tunnelOptions.d.ts +99 -78
  61. package/tunnelOptions.d.ts.map +1 -1
  62. package/tunnelOptions.js +6 -6
  63. package/tunnelPort.d.ts +93 -93
  64. package/tunnelPort.js +6 -6
  65. package/tunnelPortListResponse.d.ts +14 -14
  66. package/tunnelPortListResponse.js +6 -6
  67. package/tunnelPortStatus.d.ts +39 -39
  68. package/tunnelPortStatus.js +6 -6
  69. package/tunnelProgress.d.ts +45 -45
  70. package/tunnelProgress.js +53 -53
  71. package/tunnelProtocol.d.ts +33 -33
  72. package/tunnelProtocol.js +41 -41
  73. package/tunnelRelayTunnelEndpoint.d.ts +14 -14
  74. package/tunnelRelayTunnelEndpoint.js +6 -6
  75. package/tunnelReportProgressEventArgs.d.ts +15 -15
  76. package/tunnelReportProgressEventArgs.js +6 -6
  77. package/tunnelServiceProperties.d.ts +107 -106
  78. package/tunnelServiceProperties.d.ts.map +1 -1
  79. package/tunnelServiceProperties.js +85 -84
  80. package/tunnelServiceProperties.js.map +1 -1
  81. package/tunnelServicePropertiesStatics.d.ts +17 -17
  82. package/tunnelServicePropertiesStatics.js +55 -55
  83. package/tunnelStatus.d.ts +100 -100
  84. package/tunnelStatus.js +6 -6
@@ -1,77 +1,77 @@
1
- import { TunnelConnectionMode } from './tunnelConnectionMode';
2
- /**
3
- * Base class for tunnel connection parameters.
4
- *
5
- * A tunnel endpoint specifies how and where hosts and clients can connect to a tunnel.
6
- * There is a subclass for each connection mode, each having different connection
7
- * parameters. A tunnel may have multiple endpoints for one host (or multiple hosts), and
8
- * clients can select their preferred endpoint(s) from those depending on network
9
- * environment or client capabilities.
10
- */
11
- export interface TunnelEndpoint {
12
- /**
13
- * Gets or sets the ID of this endpoint.
14
- */
15
- id?: string;
16
- /**
17
- * Gets or sets the connection mode of the endpoint.
18
- *
19
- * This property is required when creating or updating an endpoint. The subclass type
20
- * is also an indication of the connection mode, but this property is necessary to
21
- * determine the subclass type when deserializing.
22
- */
23
- connectionMode: TunnelConnectionMode;
24
- /**
25
- * Gets or sets the ID of the host that is listening on this endpoint.
26
- *
27
- * This property is required when creating or updating an endpoint. If the host
28
- * supports multiple connection modes, the host's ID is the same for all the endpoints
29
- * it supports. However different hosts may simultaneously accept connections at
30
- * different endpoints for the same tunnel, if enabled in tunnel options.
31
- */
32
- hostId: string;
33
- /**
34
- * Gets or sets an array of public keys, which can be used by clients to authenticate
35
- * the host.
36
- */
37
- hostPublicKeys?: string[];
38
- /**
39
- * Gets or sets a string used to format URIs where a web client can connect to ports
40
- * of the tunnel. The string includes a {@link TunnelEndpoint.portToken} that must be
41
- * replaced with the actual port number.
42
- */
43
- portUriFormat?: string;
44
- /**
45
- * Gets or sets the URI where a web client can connect to the default port of the
46
- * tunnel.
47
- */
48
- tunnelUri?: string;
49
- /**
50
- * Gets or sets a string used to format ssh command where ssh client can connect to
51
- * shared ssh port of the tunnel. The string includes a {@link
52
- * TunnelEndpoint.portToken} that must be replaced with the actual port number.
53
- */
54
- portSshCommandFormat?: string;
55
- /**
56
- * Gets or sets the Ssh command where the Ssh client can connect to the default ssh
57
- * port of the tunnel.
58
- */
59
- tunnelSshCommand?: string;
60
- /**
61
- * Gets or sets the Ssh gateway public key which should be added to the
62
- * authorized_keys file so that tunnel service can connect to the shared ssh server.
63
- */
64
- sshGatewayPublicKey?: string;
65
- }
66
- /**
67
- * Token included in {@link TunnelEndpoint.portUriFormat} and {@link
68
- * TunnelEndpoint.portSshCommandFormat} that is to be replaced by a specified port number.
69
- */
70
- export declare const portToken = "{port}";
71
- import { getPortUri, getPortSshCommand } from './tunnelEndpointStatics';
72
- export declare const TunnelEndpoint: {
73
- portToken: string;
74
- getPortUri: typeof getPortUri;
75
- getPortSshCommand: typeof getPortSshCommand;
76
- };
1
+ import { TunnelConnectionMode } from './tunnelConnectionMode';
2
+ /**
3
+ * Base class for tunnel connection parameters.
4
+ *
5
+ * A tunnel endpoint specifies how and where hosts and clients can connect to a tunnel.
6
+ * There is a subclass for each connection mode, each having different connection
7
+ * parameters. A tunnel may have multiple endpoints for one host (or multiple hosts), and
8
+ * clients can select their preferred endpoint(s) from those depending on network
9
+ * environment or client capabilities.
10
+ */
11
+ export interface TunnelEndpoint {
12
+ /**
13
+ * Gets or sets the ID of this endpoint.
14
+ */
15
+ id?: string;
16
+ /**
17
+ * Gets or sets the connection mode of the endpoint.
18
+ *
19
+ * This property is required when creating or updating an endpoint. The subclass type
20
+ * is also an indication of the connection mode, but this property is necessary to
21
+ * determine the subclass type when deserializing.
22
+ */
23
+ connectionMode: TunnelConnectionMode;
24
+ /**
25
+ * Gets or sets the ID of the host that is listening on this endpoint.
26
+ *
27
+ * This property is required when creating or updating an endpoint. If the host
28
+ * supports multiple connection modes, the host's ID is the same for all the endpoints
29
+ * it supports. However different hosts may simultaneously accept connections at
30
+ * different endpoints for the same tunnel, if enabled in tunnel options.
31
+ */
32
+ hostId: string;
33
+ /**
34
+ * Gets or sets an array of public keys, which can be used by clients to authenticate
35
+ * the host.
36
+ */
37
+ hostPublicKeys?: string[];
38
+ /**
39
+ * Gets or sets a string used to format URIs where a web client can connect to ports
40
+ * of the tunnel. The string includes a {@link TunnelEndpoint.portToken} that must be
41
+ * replaced with the actual port number.
42
+ */
43
+ portUriFormat?: string;
44
+ /**
45
+ * Gets or sets the URI where a web client can connect to the default port of the
46
+ * tunnel.
47
+ */
48
+ tunnelUri?: string;
49
+ /**
50
+ * Gets or sets a string used to format ssh command where ssh client can connect to
51
+ * shared ssh port of the tunnel. The string includes a {@link
52
+ * TunnelEndpoint.portToken} that must be replaced with the actual port number.
53
+ */
54
+ portSshCommandFormat?: string;
55
+ /**
56
+ * Gets or sets the Ssh command where the Ssh client can connect to the default ssh
57
+ * port of the tunnel.
58
+ */
59
+ tunnelSshCommand?: string;
60
+ /**
61
+ * Gets or sets the Ssh gateway public key which should be added to the
62
+ * authorized_keys file so that tunnel service can connect to the shared ssh server.
63
+ */
64
+ sshGatewayPublicKey?: string;
65
+ }
66
+ /**
67
+ * Token included in {@link TunnelEndpoint.portUriFormat} and {@link
68
+ * TunnelEndpoint.portSshCommandFormat} that is to be replaced by a specified port number.
69
+ */
70
+ export declare const portToken = "{port}";
71
+ import { getPortUri, getPortSshCommand } from './tunnelEndpointStatics';
72
+ export declare const TunnelEndpoint: {
73
+ portToken: string;
74
+ getPortUri: typeof getPortUri;
75
+ getPortSshCommand: typeof getPortSshCommand;
76
+ };
77
77
  //# sourceMappingURL=tunnelEndpoint.d.ts.map
package/tunnelEndpoint.js CHANGED
@@ -1,21 +1,21 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelEndpoint.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TunnelEndpoint = exports.portToken = void 0;
8
- /**
9
- * Token included in {@link TunnelEndpoint.portUriFormat} and {@link
10
- * TunnelEndpoint.portSshCommandFormat} that is to be replaced by a specified port number.
11
- */
12
- exports.portToken = '{port}';
13
- // Import static members from a non-generated file,
14
- // and re-export them as an object with the same name as the interface.
15
- const tunnelEndpointStatics_1 = require("./tunnelEndpointStatics");
16
- exports.TunnelEndpoint = {
17
- portToken: exports.portToken,
18
- getPortUri: tunnelEndpointStatics_1.getPortUri,
19
- getPortSshCommand: tunnelEndpointStatics_1.getPortSshCommand,
20
- };
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelEndpoint.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TunnelEndpoint = exports.portToken = void 0;
8
+ /**
9
+ * Token included in {@link TunnelEndpoint.portUriFormat} and {@link
10
+ * TunnelEndpoint.portSshCommandFormat} that is to be replaced by a specified port number.
11
+ */
12
+ exports.portToken = '{port}';
13
+ // Import static members from a non-generated file,
14
+ // and re-export them as an object with the same name as the interface.
15
+ const tunnelEndpointStatics_1 = require("./tunnelEndpointStatics");
16
+ exports.TunnelEndpoint = {
17
+ portToken: exports.portToken,
18
+ getPortUri: tunnelEndpointStatics_1.getPortUri,
19
+ getPortSshCommand: tunnelEndpointStatics_1.getPortSshCommand,
20
+ };
21
21
  //# sourceMappingURL=tunnelEndpoint.js.map
@@ -1,20 +1,20 @@
1
- import { TunnelEndpoint as ITunnelEndpoint } from './tunnelEndpoint';
2
- /**
3
- * Gets a URI where a web client can connect to a tunnel port.
4
- *
5
- * Requests to the URI may result in HTTP 307 redirections, so the client may need to
6
- * follow the redirection in order to connect to the port.
7
- *
8
- * If the port is not currently shared via the tunnel, or if a host is not currently
9
- * connected to the tunnel, then requests to the port URI may result in a 502 Bad Gateway
10
- * response.
11
- *
12
- * @param endpoint The tunnel endpoint containing connection information.
13
- * @param portNumber The port number to connect to; the port is assumed to be
14
- * separately shared by a tunnel host.
15
- * @returns URI for the requested port, or `undefined` if the endpoint does not support
16
- * web client connections.
17
- */
18
- export declare function getPortUri(endpoint: ITunnelEndpoint, portNumber?: number): string | undefined;
19
- export declare function getPortSshCommand(endpoint: ITunnelEndpoint, portNumber?: number): string | undefined;
1
+ import { TunnelEndpoint as ITunnelEndpoint } from './tunnelEndpoint';
2
+ /**
3
+ * Gets a URI where a web client can connect to a tunnel port.
4
+ *
5
+ * Requests to the URI may result in HTTP 307 redirections, so the client may need to
6
+ * follow the redirection in order to connect to the port.
7
+ *
8
+ * If the port is not currently shared via the tunnel, or if a host is not currently
9
+ * connected to the tunnel, then requests to the port URI may result in a 502 Bad Gateway
10
+ * response.
11
+ *
12
+ * @param endpoint The tunnel endpoint containing connection information.
13
+ * @param portNumber The port number to connect to; the port is assumed to be
14
+ * separately shared by a tunnel host.
15
+ * @returns URI for the requested port, or `undefined` if the endpoint does not support
16
+ * web client connections.
17
+ */
18
+ export declare function getPortUri(endpoint: ITunnelEndpoint, portNumber?: number): string | undefined;
19
+ export declare function getPortSshCommand(endpoint: ITunnelEndpoint, portNumber?: number): string | undefined;
20
20
  //# sourceMappingURL=tunnelEndpointStatics.d.ts.map
@@ -1,49 +1,49 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.getPortSshCommand = exports.getPortUri = void 0;
6
- const tunnelEndpoint_1 = require("./tunnelEndpoint");
7
- /**
8
- * Gets a URI where a web client can connect to a tunnel port.
9
- *
10
- * Requests to the URI may result in HTTP 307 redirections, so the client may need to
11
- * follow the redirection in order to connect to the port.
12
- *
13
- * If the port is not currently shared via the tunnel, or if a host is not currently
14
- * connected to the tunnel, then requests to the port URI may result in a 502 Bad Gateway
15
- * response.
16
- *
17
- * @param endpoint The tunnel endpoint containing connection information.
18
- * @param portNumber The port number to connect to; the port is assumed to be
19
- * separately shared by a tunnel host.
20
- * @returns URI for the requested port, or `undefined` if the endpoint does not support
21
- * web client connections.
22
- */
23
- function getPortUri(endpoint, portNumber) {
24
- if (!endpoint) {
25
- throw new TypeError('A tunnel endpoint is required.');
26
- }
27
- if (typeof portNumber !== 'number' && !endpoint.tunnelUri) {
28
- return endpoint.tunnelUri;
29
- }
30
- if (typeof portNumber !== 'number' || !endpoint.portUriFormat) {
31
- return undefined;
32
- }
33
- return endpoint.portUriFormat.replace(tunnelEndpoint_1.portToken, portNumber.toString());
34
- }
35
- exports.getPortUri = getPortUri;
36
- function getPortSshCommand(endpoint, portNumber) {
37
- if (!endpoint) {
38
- throw new TypeError('A tunnel endpoint is required.');
39
- }
40
- if (typeof portNumber !== 'number' && !endpoint.tunnelSshCommand) {
41
- return endpoint.tunnelSshCommand;
42
- }
43
- if (typeof portNumber !== 'number' || !endpoint.portSshCommandFormat) {
44
- return undefined;
45
- }
46
- return endpoint.portSshCommandFormat.replace(tunnelEndpoint_1.portToken, portNumber.toString());
47
- }
48
- exports.getPortSshCommand = getPortSshCommand;
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getPortSshCommand = exports.getPortUri = void 0;
6
+ const tunnelEndpoint_1 = require("./tunnelEndpoint");
7
+ /**
8
+ * Gets a URI where a web client can connect to a tunnel port.
9
+ *
10
+ * Requests to the URI may result in HTTP 307 redirections, so the client may need to
11
+ * follow the redirection in order to connect to the port.
12
+ *
13
+ * If the port is not currently shared via the tunnel, or if a host is not currently
14
+ * connected to the tunnel, then requests to the port URI may result in a 502 Bad Gateway
15
+ * response.
16
+ *
17
+ * @param endpoint The tunnel endpoint containing connection information.
18
+ * @param portNumber The port number to connect to; the port is assumed to be
19
+ * separately shared by a tunnel host.
20
+ * @returns URI for the requested port, or `undefined` if the endpoint does not support
21
+ * web client connections.
22
+ */
23
+ function getPortUri(endpoint, portNumber) {
24
+ if (!endpoint) {
25
+ throw new TypeError('A tunnel endpoint is required.');
26
+ }
27
+ if (typeof portNumber !== 'number' && !endpoint.tunnelUri) {
28
+ return endpoint.tunnelUri;
29
+ }
30
+ if (typeof portNumber !== 'number' || !endpoint.portUriFormat) {
31
+ return undefined;
32
+ }
33
+ return endpoint.portUriFormat.replace(tunnelEndpoint_1.portToken, portNumber.toString());
34
+ }
35
+ exports.getPortUri = getPortUri;
36
+ function getPortSshCommand(endpoint, portNumber) {
37
+ if (!endpoint) {
38
+ throw new TypeError('A tunnel endpoint is required.');
39
+ }
40
+ if (typeof portNumber !== 'number' && !endpoint.tunnelSshCommand) {
41
+ return endpoint.tunnelSshCommand;
42
+ }
43
+ if (typeof portNumber !== 'number' || !endpoint.portSshCommandFormat) {
44
+ return undefined;
45
+ }
46
+ return endpoint.portSshCommandFormat.replace(tunnelEndpoint_1.portToken, portNumber.toString());
47
+ }
48
+ exports.getPortSshCommand = getPortSshCommand;
49
49
  //# sourceMappingURL=tunnelEndpointStatics.js.map
package/tunnelEvent.d.ts CHANGED
@@ -1,49 +1,49 @@
1
- /**
2
- * Data contract for tunnel client events reported to the tunnel service.
3
- */
4
- export interface TunnelEvent {
5
- /**
6
- * Gets or sets the UTC timestamp of the event (using the client's clock).
7
- */
8
- timestamp?: Date;
9
- /**
10
- * Gets or sets name of the event. This should be a short descriptive identifier.
11
- */
12
- name: string;
13
- /**
14
- * Gets or sets the severity of the event, such as {@link TunnelEvent.info}, {@link
15
- * TunnelEvent.warning}, or {@link TunnelEvent.error}.
16
- *
17
- * If not specified, the default severity is "info".
18
- */
19
- severity?: string;
20
- /**
21
- * Gets or sets optional unstructured details about the event, such as a message or
22
- * description. For warning or error events this may include a stack trace.
23
- */
24
- details?: string;
25
- /**
26
- * Gets or sets semi-structured event properties.
27
- */
28
- properties?: {
29
- [key: string]: string;
30
- };
31
- }
32
- /**
33
- * Default event severity.
34
- */
35
- export declare const info = "info";
36
- /**
37
- * Warning event severity.
38
- */
39
- export declare const warning = "warning";
40
- /**
41
- * Error event severity.
42
- */
43
- export declare const error = "error";
44
- export declare const TunnelEvent: {
45
- info: string;
46
- warning: string;
47
- error: string;
48
- };
1
+ /**
2
+ * Data contract for tunnel client events reported to the tunnel service.
3
+ */
4
+ export interface TunnelEvent {
5
+ /**
6
+ * Gets or sets the UTC timestamp of the event (using the client's clock).
7
+ */
8
+ timestamp?: Date;
9
+ /**
10
+ * Gets or sets name of the event. This should be a short descriptive identifier.
11
+ */
12
+ name: string;
13
+ /**
14
+ * Gets or sets the severity of the event, such as {@link TunnelEvent.info}, {@link
15
+ * TunnelEvent.warning}, or {@link TunnelEvent.error}.
16
+ *
17
+ * If not specified, the default severity is "info".
18
+ */
19
+ severity?: string;
20
+ /**
21
+ * Gets or sets optional unstructured details about the event, such as a message or
22
+ * description. For warning or error events this may include a stack trace.
23
+ */
24
+ details?: string;
25
+ /**
26
+ * Gets or sets semi-structured event properties.
27
+ */
28
+ properties?: {
29
+ [key: string]: string;
30
+ };
31
+ }
32
+ /**
33
+ * Default event severity.
34
+ */
35
+ export declare const info = "info";
36
+ /**
37
+ * Warning event severity.
38
+ */
39
+ export declare const warning = "warning";
40
+ /**
41
+ * Error event severity.
42
+ */
43
+ export declare const error = "error";
44
+ export declare const TunnelEvent: {
45
+ info: string;
46
+ warning: string;
47
+ error: string;
48
+ };
49
49
  //# sourceMappingURL=tunnelEvent.d.ts.map
package/tunnelEvent.js CHANGED
@@ -1,25 +1,25 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelEvent.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TunnelEvent = exports.error = exports.warning = exports.info = void 0;
8
- /**
9
- * Default event severity.
10
- */
11
- exports.info = 'info';
12
- /**
13
- * Warning event severity.
14
- */
15
- exports.warning = 'warning';
16
- /**
17
- * Error event severity.
18
- */
19
- exports.error = 'error';
20
- exports.TunnelEvent = {
21
- info: exports.info,
22
- warning: exports.warning,
23
- error: exports.error,
24
- };
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelEvent.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TunnelEvent = exports.error = exports.warning = exports.info = void 0;
8
+ /**
9
+ * Default event severity.
10
+ */
11
+ exports.info = 'info';
12
+ /**
13
+ * Warning event severity.
14
+ */
15
+ exports.warning = 'warning';
16
+ /**
17
+ * Error event severity.
18
+ */
19
+ exports.error = 'error';
20
+ exports.TunnelEvent = {
21
+ info: exports.info,
22
+ warning: exports.warning,
23
+ error: exports.error,
24
+ };
25
25
  //# sourceMappingURL=tunnelEvent.js.map
@@ -1,28 +1,28 @@
1
- /**
2
- * Header names for http requests that Tunnel Service can handle
3
- */
4
- export declare enum TunnelHeaderNames {
5
- /**
6
- * Additional authorization header that can be passed to tunnel web forwarding to
7
- * authenticate and authorize the client. The format of the value is the same as
8
- * Authorization header that is sent to the Tunnel service by the tunnel SDK.
9
- * Supported schemes: "tunnel" with the tunnel access JWT good for 'Connect' scope.
10
- */
11
- XTunnelAuthorization = "X-Tunnel-Authorization",
12
- /**
13
- * Request ID header that nginx ingress controller adds to all requests if it's not
14
- * there.
15
- */
16
- XRequestID = "X-Request-ID",
17
- /**
18
- * Github Ssh public key which can be used to validate if it belongs to tunnel's
19
- * owner.
20
- */
21
- XGithubSshKey = "X-Github-Ssh-Key",
22
- /**
23
- * Header that will skip the antiphishing page when connection to a tunnel through web
24
- * forwarding.
25
- */
26
- XTunnelSkipAntiPhishingPage = "X-Tunnel-Skip-AntiPhishing-Page"
27
- }
1
+ /**
2
+ * Header names for http requests that Tunnel Service can handle
3
+ */
4
+ export declare enum TunnelHeaderNames {
5
+ /**
6
+ * Additional authorization header that can be passed to tunnel web forwarding to
7
+ * authenticate and authorize the client. The format of the value is the same as
8
+ * Authorization header that is sent to the Tunnel service by the tunnel SDK.
9
+ * Supported schemes: "tunnel" with the tunnel access JWT good for 'Connect' scope.
10
+ */
11
+ XTunnelAuthorization = "X-Tunnel-Authorization",
12
+ /**
13
+ * Request ID header that nginx ingress controller adds to all requests if it's not
14
+ * there.
15
+ */
16
+ XRequestID = "X-Request-ID",
17
+ /**
18
+ * Github Ssh public key which can be used to validate if it belongs to tunnel's
19
+ * owner.
20
+ */
21
+ XGithubSshKey = "X-Github-Ssh-Key",
22
+ /**
23
+ * Header that will skip the antiphishing page when connection to a tunnel through web
24
+ * forwarding.
25
+ */
26
+ XTunnelSkipAntiPhishingPage = "X-Tunnel-Skip-AntiPhishing-Page"
27
+ }
28
28
  //# sourceMappingURL=tunnelHeaderNames.d.ts.map
@@ -1,36 +1,36 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelHeaderNames.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TunnelHeaderNames = void 0;
8
- /**
9
- * Header names for http requests that Tunnel Service can handle
10
- */
11
- var TunnelHeaderNames;
12
- (function (TunnelHeaderNames) {
13
- /**
14
- * Additional authorization header that can be passed to tunnel web forwarding to
15
- * authenticate and authorize the client. The format of the value is the same as
16
- * Authorization header that is sent to the Tunnel service by the tunnel SDK.
17
- * Supported schemes: "tunnel" with the tunnel access JWT good for 'Connect' scope.
18
- */
19
- TunnelHeaderNames["XTunnelAuthorization"] = "X-Tunnel-Authorization";
20
- /**
21
- * Request ID header that nginx ingress controller adds to all requests if it's not
22
- * there.
23
- */
24
- TunnelHeaderNames["XRequestID"] = "X-Request-ID";
25
- /**
26
- * Github Ssh public key which can be used to validate if it belongs to tunnel's
27
- * owner.
28
- */
29
- TunnelHeaderNames["XGithubSshKey"] = "X-Github-Ssh-Key";
30
- /**
31
- * Header that will skip the antiphishing page when connection to a tunnel through web
32
- * forwarding.
33
- */
34
- TunnelHeaderNames["XTunnelSkipAntiPhishingPage"] = "X-Tunnel-Skip-AntiPhishing-Page";
35
- })(TunnelHeaderNames = exports.TunnelHeaderNames || (exports.TunnelHeaderNames = {}));
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelHeaderNames.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TunnelHeaderNames = void 0;
8
+ /**
9
+ * Header names for http requests that Tunnel Service can handle
10
+ */
11
+ var TunnelHeaderNames;
12
+ (function (TunnelHeaderNames) {
13
+ /**
14
+ * Additional authorization header that can be passed to tunnel web forwarding to
15
+ * authenticate and authorize the client. The format of the value is the same as
16
+ * Authorization header that is sent to the Tunnel service by the tunnel SDK.
17
+ * Supported schemes: "tunnel" with the tunnel access JWT good for 'Connect' scope.
18
+ */
19
+ TunnelHeaderNames["XTunnelAuthorization"] = "X-Tunnel-Authorization";
20
+ /**
21
+ * Request ID header that nginx ingress controller adds to all requests if it's not
22
+ * there.
23
+ */
24
+ TunnelHeaderNames["XRequestID"] = "X-Request-ID";
25
+ /**
26
+ * Github Ssh public key which can be used to validate if it belongs to tunnel's
27
+ * owner.
28
+ */
29
+ TunnelHeaderNames["XGithubSshKey"] = "X-Github-Ssh-Key";
30
+ /**
31
+ * Header that will skip the antiphishing page when connection to a tunnel through web
32
+ * forwarding.
33
+ */
34
+ TunnelHeaderNames["XTunnelSkipAntiPhishingPage"] = "X-Tunnel-Skip-AntiPhishing-Page";
35
+ })(TunnelHeaderNames = exports.TunnelHeaderNames || (exports.TunnelHeaderNames = {}));
36
36
  //# sourceMappingURL=tunnelHeaderNames.js.map