@microsoft/dev-tunnels-contracts 1.0.8 → 1.0.7302

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 (60) hide show
  1. package/README.md +2 -2
  2. package/clusterDetails.d.ts +19 -19
  3. package/clusterDetails.js +6 -6
  4. package/index.d.ts +17 -17
  5. package/index.js +21 -21
  6. package/localNetworkTunnelEndpoint.d.ts +20 -20
  7. package/localNetworkTunnelEndpoint.js +6 -6
  8. package/package.json +1 -1
  9. package/problemDetails.d.ts +24 -24
  10. package/problemDetails.js +6 -6
  11. package/rateStatus.d.ts +19 -20
  12. package/rateStatus.d.ts.map +1 -1
  13. package/rateStatus.js +6 -6
  14. package/resourceStatus.d.ts +17 -17
  15. package/resourceStatus.js +6 -6
  16. package/serviceVersionDetails.d.ts +26 -26
  17. package/serviceVersionDetails.js +6 -6
  18. package/tsbuildinfo.json +1 -1
  19. package/tunnel.d.ts +78 -78
  20. package/tunnel.js +6 -6
  21. package/tunnelAccessControl.d.ts +27 -27
  22. package/tunnelAccessControl.js +13 -13
  23. package/tunnelAccessControlEntry.d.ts +79 -79
  24. package/tunnelAccessControlEntry.js +39 -39
  25. package/tunnelAccessControlEntryType.d.ts +45 -45
  26. package/tunnelAccessControlEntryType.js +53 -53
  27. package/tunnelAccessControlStatics.d.ts +10 -10
  28. package/tunnelAccessControlStatics.js +46 -46
  29. package/tunnelAccessScopes.d.ts +38 -38
  30. package/tunnelAccessScopes.js +46 -46
  31. package/tunnelAccessSubject.d.ts +39 -39
  32. package/tunnelAccessSubject.js +6 -6
  33. package/tunnelAuthenticationSchemes.d.ts +17 -17
  34. package/tunnelAuthenticationSchemes.js +25 -25
  35. package/tunnelConnectionMode.d.ts +19 -19
  36. package/tunnelConnectionMode.js +27 -27
  37. package/tunnelConstraints.d.ts +53 -53
  38. package/tunnelConstraints.js +61 -61
  39. package/tunnelEndpoint.d.ts +72 -72
  40. package/tunnelEndpoint.js +20 -20
  41. package/tunnelEndpointStatics.d.ts +19 -19
  42. package/tunnelEndpointStatics.js +48 -48
  43. package/tunnelHeaderNames.d.ts +27 -27
  44. package/tunnelHeaderNames.js +35 -35
  45. package/tunnelOptions.d.ts +11 -11
  46. package/tunnelOptions.js +6 -6
  47. package/tunnelPort.d.ts +70 -70
  48. package/tunnelPort.js +6 -6
  49. package/tunnelPortStatus.d.ts +39 -39
  50. package/tunnelPortStatus.js +6 -6
  51. package/tunnelProtocol.d.ts +33 -33
  52. package/tunnelProtocol.js +41 -41
  53. package/tunnelRelayTunnelEndpoint.d.ts +14 -14
  54. package/tunnelRelayTunnelEndpoint.js +6 -6
  55. package/tunnelServiceProperties.d.ts +99 -99
  56. package/tunnelServiceProperties.js +77 -77
  57. package/tunnelServicePropertiesStatics.d.ts +17 -17
  58. package/tunnelServicePropertiesStatics.js +55 -55
  59. package/tunnelStatus.d.ts +66 -66
  60. package/tunnelStatus.js +6 -6
@@ -1,100 +1,100 @@
1
- /**
2
- * Provides environment-dependent properties about the service.
3
- */
4
- export interface TunnelServiceProperties {
5
- /**
6
- * Gets the base URI of the service.
7
- */
8
- serviceUri: string;
9
- /**
10
- * Gets the public AAD AppId for the service.
11
- *
12
- * Clients specify this AppId as the audience property when authenticating to the
13
- * service.
14
- */
15
- serviceAppId: string;
16
- /**
17
- * Gets the internal AAD AppId for the service.
18
- *
19
- * Other internal services specify this AppId as the audience property when
20
- * authenticating to the tunnel service. Production services must be in the AME tenant
21
- * to use this appid.
22
- */
23
- serviceInternalAppId: string;
24
- /**
25
- * Gets the client ID for the service's GitHub app.
26
- *
27
- * Clients apps that authenticate tunnel users with GitHub specify this as the client
28
- * ID when requesting a user token.
29
- */
30
- gitHubAppClientId: string;
31
- }
32
- /**
33
- * Global DNS name of the production tunnel service.
34
- */
35
- export declare const prodDnsName = "global.rel.tunnels.api.visualstudio.com";
36
- /**
37
- * Global DNS name of the pre-production tunnel service.
38
- */
39
- export declare const ppeDnsName = "global.rel.tunnels.ppe.api.visualstudio.com";
40
- /**
41
- * Global DNS name of the development tunnel service.
42
- */
43
- export declare const devDnsName = "global.ci.tunnels.dev.api.visualstudio.com";
44
- /**
45
- * First-party app ID: `Visual Studio Tunnel Service`
46
- *
47
- * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
48
- * in the PROD service environment.
49
- */
50
- export declare const prodFirstPartyAppId = "46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2";
51
- /**
52
- * First-party app ID: `Visual Studio Tunnel Service - Test`
53
- *
54
- * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
55
- * in the PPE and DEV service environments.
56
- */
57
- export declare const nonProdFirstPartyAppId = "54c45752-bacd-424a-b928-652f3eca2b18";
58
- /**
59
- * Third-party app ID: `tunnels-prod-app-sp`
60
- *
61
- * Used for authenticating internal AAD service principals in the AME tenant, in the PROD
62
- * service environment.
63
- */
64
- export declare const prodThirdPartyAppId = "ce65d243-a913-4cae-a7dd-cb52e9f77647";
65
- /**
66
- * Third-party app ID: `tunnels-ppe-app-sp`
67
- *
68
- * Used for authenticating internal AAD service principals in the AME tenant, in the PPE
69
- * service environment.
70
- */
71
- export declare const ppeThirdPartyAppId = "544167a6-f431-4518-aac6-2fd50071928e";
72
- /**
73
- * Third-party app ID: `tunnels-dev-app-sp`
74
- *
75
- * Used for authenticating internal AAD service principals in the corp tenant (not AME!),
76
- * in the DEV service environment.
77
- */
78
- export declare const devThirdPartyAppId = "a118c979-0249-44bb-8f95-eb0457127aeb";
79
- /**
80
- * GitHub App Client ID for 'Visual Studio Tunnel Service'
81
- *
82
- * Used by client apps that authenticate tunnel users with GitHub, in the PROD service
83
- * environment.
84
- */
85
- export declare const prodGitHubAppClientId = "Iv1.e7b89e013f801f03";
86
- /**
87
- * GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
88
- *
89
- * Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
90
- * service environments.
91
- */
92
- export declare const nonProdGitHubAppClientId = "Iv1.b231c327f1eaa229";
93
- import { environment } from './tunnelServicePropertiesStatics';
94
- export declare const TunnelServiceProperties: {
95
- production: TunnelServiceProperties;
96
- staging: TunnelServiceProperties;
97
- development: TunnelServiceProperties;
98
- environment: typeof environment;
99
- };
1
+ /**
2
+ * Provides environment-dependent properties about the service.
3
+ */
4
+ export interface TunnelServiceProperties {
5
+ /**
6
+ * Gets the base URI of the service.
7
+ */
8
+ serviceUri: string;
9
+ /**
10
+ * Gets the public AAD AppId for the service.
11
+ *
12
+ * Clients specify this AppId as the audience property when authenticating to the
13
+ * service.
14
+ */
15
+ serviceAppId: string;
16
+ /**
17
+ * Gets the internal AAD AppId for the service.
18
+ *
19
+ * Other internal services specify this AppId as the audience property when
20
+ * authenticating to the tunnel service. Production services must be in the AME tenant
21
+ * to use this appid.
22
+ */
23
+ serviceInternalAppId: string;
24
+ /**
25
+ * Gets the client ID for the service's GitHub app.
26
+ *
27
+ * Clients apps that authenticate tunnel users with GitHub specify this as the client
28
+ * ID when requesting a user token.
29
+ */
30
+ gitHubAppClientId: string;
31
+ }
32
+ /**
33
+ * Global DNS name of the production tunnel service.
34
+ */
35
+ export declare const prodDnsName = "global.rel.tunnels.api.visualstudio.com";
36
+ /**
37
+ * Global DNS name of the pre-production tunnel service.
38
+ */
39
+ export declare const ppeDnsName = "global.rel.tunnels.ppe.api.visualstudio.com";
40
+ /**
41
+ * Global DNS name of the development tunnel service.
42
+ */
43
+ export declare const devDnsName = "global.ci.tunnels.dev.api.visualstudio.com";
44
+ /**
45
+ * First-party app ID: `Visual Studio Tunnel Service`
46
+ *
47
+ * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
48
+ * in the PROD service environment.
49
+ */
50
+ export declare const prodFirstPartyAppId = "46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2";
51
+ /**
52
+ * First-party app ID: `Visual Studio Tunnel Service - Test`
53
+ *
54
+ * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
55
+ * in the PPE and DEV service environments.
56
+ */
57
+ export declare const nonProdFirstPartyAppId = "54c45752-bacd-424a-b928-652f3eca2b18";
58
+ /**
59
+ * Third-party app ID: `tunnels-prod-app-sp`
60
+ *
61
+ * Used for authenticating internal AAD service principals in the AME tenant, in the PROD
62
+ * service environment.
63
+ */
64
+ export declare const prodThirdPartyAppId = "ce65d243-a913-4cae-a7dd-cb52e9f77647";
65
+ /**
66
+ * Third-party app ID: `tunnels-ppe-app-sp`
67
+ *
68
+ * Used for authenticating internal AAD service principals in the AME tenant, in the PPE
69
+ * service environment.
70
+ */
71
+ export declare const ppeThirdPartyAppId = "544167a6-f431-4518-aac6-2fd50071928e";
72
+ /**
73
+ * Third-party app ID: `tunnels-dev-app-sp`
74
+ *
75
+ * Used for authenticating internal AAD service principals in the corp tenant (not AME!),
76
+ * in the DEV service environment.
77
+ */
78
+ export declare const devThirdPartyAppId = "a118c979-0249-44bb-8f95-eb0457127aeb";
79
+ /**
80
+ * GitHub App Client ID for 'Visual Studio Tunnel Service'
81
+ *
82
+ * Used by client apps that authenticate tunnel users with GitHub, in the PROD service
83
+ * environment.
84
+ */
85
+ export declare const prodGitHubAppClientId = "Iv1.e7b89e013f801f03";
86
+ /**
87
+ * GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
88
+ *
89
+ * Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
90
+ * service environments.
91
+ */
92
+ export declare const nonProdGitHubAppClientId = "Iv1.b231c327f1eaa229";
93
+ import { environment } from './tunnelServicePropertiesStatics';
94
+ export declare const TunnelServiceProperties: {
95
+ production: TunnelServiceProperties;
96
+ staging: TunnelServiceProperties;
97
+ development: TunnelServiceProperties;
98
+ environment: typeof environment;
99
+ };
100
100
  //# sourceMappingURL=tunnelServiceProperties.d.ts.map
@@ -1,78 +1,78 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelServiceProperties.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TunnelServiceProperties = exports.nonProdGitHubAppClientId = exports.prodGitHubAppClientId = exports.devThirdPartyAppId = exports.ppeThirdPartyAppId = exports.prodThirdPartyAppId = exports.nonProdFirstPartyAppId = exports.prodFirstPartyAppId = exports.devDnsName = exports.ppeDnsName = exports.prodDnsName = void 0;
8
- /**
9
- * Global DNS name of the production tunnel service.
10
- */
11
- exports.prodDnsName = 'global.rel.tunnels.api.visualstudio.com';
12
- /**
13
- * Global DNS name of the pre-production tunnel service.
14
- */
15
- exports.ppeDnsName = 'global.rel.tunnels.ppe.api.visualstudio.com';
16
- /**
17
- * Global DNS name of the development tunnel service.
18
- */
19
- exports.devDnsName = 'global.ci.tunnels.dev.api.visualstudio.com';
20
- /**
21
- * First-party app ID: `Visual Studio Tunnel Service`
22
- *
23
- * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
24
- * in the PROD service environment.
25
- */
26
- exports.prodFirstPartyAppId = '46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2';
27
- /**
28
- * First-party app ID: `Visual Studio Tunnel Service - Test`
29
- *
30
- * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
31
- * in the PPE and DEV service environments.
32
- */
33
- exports.nonProdFirstPartyAppId = '54c45752-bacd-424a-b928-652f3eca2b18';
34
- /**
35
- * Third-party app ID: `tunnels-prod-app-sp`
36
- *
37
- * Used for authenticating internal AAD service principals in the AME tenant, in the PROD
38
- * service environment.
39
- */
40
- exports.prodThirdPartyAppId = 'ce65d243-a913-4cae-a7dd-cb52e9f77647';
41
- /**
42
- * Third-party app ID: `tunnels-ppe-app-sp`
43
- *
44
- * Used for authenticating internal AAD service principals in the AME tenant, in the PPE
45
- * service environment.
46
- */
47
- exports.ppeThirdPartyAppId = '544167a6-f431-4518-aac6-2fd50071928e';
48
- /**
49
- * Third-party app ID: `tunnels-dev-app-sp`
50
- *
51
- * Used for authenticating internal AAD service principals in the corp tenant (not AME!),
52
- * in the DEV service environment.
53
- */
54
- exports.devThirdPartyAppId = 'a118c979-0249-44bb-8f95-eb0457127aeb';
55
- /**
56
- * GitHub App Client ID for 'Visual Studio Tunnel Service'
57
- *
58
- * Used by client apps that authenticate tunnel users with GitHub, in the PROD service
59
- * environment.
60
- */
61
- exports.prodGitHubAppClientId = 'Iv1.e7b89e013f801f03';
62
- /**
63
- * GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
64
- *
65
- * Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
66
- * service environments.
67
- */
68
- exports.nonProdGitHubAppClientId = 'Iv1.b231c327f1eaa229';
69
- // Import static members from a non-generated file,
70
- // and re-export them as an object with the same name as the interface.
71
- const tunnelServicePropertiesStatics_1 = require("./tunnelServicePropertiesStatics");
72
- exports.TunnelServiceProperties = {
73
- production: tunnelServicePropertiesStatics_1.production,
74
- staging: tunnelServicePropertiesStatics_1.staging,
75
- development: tunnelServicePropertiesStatics_1.development,
76
- environment: tunnelServicePropertiesStatics_1.environment,
77
- };
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelServiceProperties.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TunnelServiceProperties = exports.nonProdGitHubAppClientId = exports.prodGitHubAppClientId = exports.devThirdPartyAppId = exports.ppeThirdPartyAppId = exports.prodThirdPartyAppId = exports.nonProdFirstPartyAppId = exports.prodFirstPartyAppId = exports.devDnsName = exports.ppeDnsName = exports.prodDnsName = void 0;
8
+ /**
9
+ * Global DNS name of the production tunnel service.
10
+ */
11
+ exports.prodDnsName = 'global.rel.tunnels.api.visualstudio.com';
12
+ /**
13
+ * Global DNS name of the pre-production tunnel service.
14
+ */
15
+ exports.ppeDnsName = 'global.rel.tunnels.ppe.api.visualstudio.com';
16
+ /**
17
+ * Global DNS name of the development tunnel service.
18
+ */
19
+ exports.devDnsName = 'global.ci.tunnels.dev.api.visualstudio.com';
20
+ /**
21
+ * First-party app ID: `Visual Studio Tunnel Service`
22
+ *
23
+ * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
24
+ * in the PROD service environment.
25
+ */
26
+ exports.prodFirstPartyAppId = '46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2';
27
+ /**
28
+ * First-party app ID: `Visual Studio Tunnel Service - Test`
29
+ *
30
+ * Used for authenticating AAD/MSA users, and service principals outside the AME tenant,
31
+ * in the PPE and DEV service environments.
32
+ */
33
+ exports.nonProdFirstPartyAppId = '54c45752-bacd-424a-b928-652f3eca2b18';
34
+ /**
35
+ * Third-party app ID: `tunnels-prod-app-sp`
36
+ *
37
+ * Used for authenticating internal AAD service principals in the AME tenant, in the PROD
38
+ * service environment.
39
+ */
40
+ exports.prodThirdPartyAppId = 'ce65d243-a913-4cae-a7dd-cb52e9f77647';
41
+ /**
42
+ * Third-party app ID: `tunnels-ppe-app-sp`
43
+ *
44
+ * Used for authenticating internal AAD service principals in the AME tenant, in the PPE
45
+ * service environment.
46
+ */
47
+ exports.ppeThirdPartyAppId = '544167a6-f431-4518-aac6-2fd50071928e';
48
+ /**
49
+ * Third-party app ID: `tunnels-dev-app-sp`
50
+ *
51
+ * Used for authenticating internal AAD service principals in the corp tenant (not AME!),
52
+ * in the DEV service environment.
53
+ */
54
+ exports.devThirdPartyAppId = 'a118c979-0249-44bb-8f95-eb0457127aeb';
55
+ /**
56
+ * GitHub App Client ID for 'Visual Studio Tunnel Service'
57
+ *
58
+ * Used by client apps that authenticate tunnel users with GitHub, in the PROD service
59
+ * environment.
60
+ */
61
+ exports.prodGitHubAppClientId = 'Iv1.e7b89e013f801f03';
62
+ /**
63
+ * GitHub App Client ID for 'Visual Studio Tunnel Service - Test'
64
+ *
65
+ * Used by client apps that authenticate tunnel users with GitHub, in the PPE and DEV
66
+ * service environments.
67
+ */
68
+ exports.nonProdGitHubAppClientId = 'Iv1.b231c327f1eaa229';
69
+ // Import static members from a non-generated file,
70
+ // and re-export them as an object with the same name as the interface.
71
+ const tunnelServicePropertiesStatics_1 = require("./tunnelServicePropertiesStatics");
72
+ exports.TunnelServiceProperties = {
73
+ production: tunnelServicePropertiesStatics_1.production,
74
+ staging: tunnelServicePropertiesStatics_1.staging,
75
+ development: tunnelServicePropertiesStatics_1.development,
76
+ environment: tunnelServicePropertiesStatics_1.environment,
77
+ };
78
78
  //# sourceMappingURL=tunnelServiceProperties.js.map
@@ -1,18 +1,18 @@
1
- import { TunnelServiceProperties as ITunnelServiceProperties } from './tunnelServiceProperties';
2
- /**
3
- * Gets production service properties.
4
- */
5
- export declare const production: ITunnelServiceProperties;
6
- /**
7
- * Gets properties for the service in the staging environment (PPE).
8
- */
9
- export declare const staging: ITunnelServiceProperties;
10
- /**
11
- * Gets properties for the service in the development environment.
12
- */
13
- export declare const development: ITunnelServiceProperties;
14
- /**
15
- * Gets properties for the service in the specified environment.
16
- */
17
- export declare function environment(environmentName: string): ITunnelServiceProperties;
1
+ import { TunnelServiceProperties as ITunnelServiceProperties } from './tunnelServiceProperties';
2
+ /**
3
+ * Gets production service properties.
4
+ */
5
+ export declare const production: ITunnelServiceProperties;
6
+ /**
7
+ * Gets properties for the service in the staging environment (PPE).
8
+ */
9
+ export declare const staging: ITunnelServiceProperties;
10
+ /**
11
+ * Gets properties for the service in the development environment.
12
+ */
13
+ export declare const development: ITunnelServiceProperties;
14
+ /**
15
+ * Gets properties for the service in the specified environment.
16
+ */
17
+ export declare function environment(environmentName: string): ITunnelServiceProperties;
18
18
  //# sourceMappingURL=tunnelServicePropertiesStatics.d.ts.map
@@ -1,56 +1,56 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.environment = exports.development = exports.staging = exports.production = void 0;
6
- const tunnelServiceProperties_1 = require("./tunnelServiceProperties");
7
- /**
8
- * Gets production service properties.
9
- */
10
- exports.production = {
11
- serviceUri: `https://${tunnelServiceProperties_1.prodDnsName}/`,
12
- serviceAppId: tunnelServiceProperties_1.prodFirstPartyAppId,
13
- serviceInternalAppId: tunnelServiceProperties_1.prodThirdPartyAppId,
14
- gitHubAppClientId: tunnelServiceProperties_1.prodGitHubAppClientId,
15
- };
16
- /**
17
- * Gets properties for the service in the staging environment (PPE).
18
- */
19
- exports.staging = {
20
- serviceUri: `https://${tunnelServiceProperties_1.ppeDnsName}/`,
21
- serviceAppId: tunnelServiceProperties_1.nonProdFirstPartyAppId,
22
- serviceInternalAppId: tunnelServiceProperties_1.ppeThirdPartyAppId,
23
- gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
24
- };
25
- /**
26
- * Gets properties for the service in the development environment.
27
- */
28
- exports.development = {
29
- serviceUri: `https://${tunnelServiceProperties_1.devDnsName}/`,
30
- serviceAppId: tunnelServiceProperties_1.nonProdFirstPartyAppId,
31
- serviceInternalAppId: tunnelServiceProperties_1.devThirdPartyAppId,
32
- gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
33
- };
34
- /**
35
- * Gets properties for the service in the specified environment.
36
- */
37
- function environment(environmentName) {
38
- if (!environmentName) {
39
- throw new Error(`Invalid argument: ${environmentName}`);
40
- }
41
- switch (environmentName.toLowerCase()) {
42
- case 'prod':
43
- case 'production':
44
- return exports.production;
45
- case 'ppe':
46
- case 'preprod':
47
- return exports.staging;
48
- case 'dev':
49
- case 'development':
50
- return exports.development;
51
- default:
52
- throw new Error(`Invalid service environment: ${environmentName}`);
53
- }
54
- }
55
- exports.environment = environment;
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.environment = exports.development = exports.staging = exports.production = void 0;
6
+ const tunnelServiceProperties_1 = require("./tunnelServiceProperties");
7
+ /**
8
+ * Gets production service properties.
9
+ */
10
+ exports.production = {
11
+ serviceUri: `https://${tunnelServiceProperties_1.prodDnsName}/`,
12
+ serviceAppId: tunnelServiceProperties_1.prodFirstPartyAppId,
13
+ serviceInternalAppId: tunnelServiceProperties_1.prodThirdPartyAppId,
14
+ gitHubAppClientId: tunnelServiceProperties_1.prodGitHubAppClientId,
15
+ };
16
+ /**
17
+ * Gets properties for the service in the staging environment (PPE).
18
+ */
19
+ exports.staging = {
20
+ serviceUri: `https://${tunnelServiceProperties_1.ppeDnsName}/`,
21
+ serviceAppId: tunnelServiceProperties_1.nonProdFirstPartyAppId,
22
+ serviceInternalAppId: tunnelServiceProperties_1.ppeThirdPartyAppId,
23
+ gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
24
+ };
25
+ /**
26
+ * Gets properties for the service in the development environment.
27
+ */
28
+ exports.development = {
29
+ serviceUri: `https://${tunnelServiceProperties_1.devDnsName}/`,
30
+ serviceAppId: tunnelServiceProperties_1.nonProdFirstPartyAppId,
31
+ serviceInternalAppId: tunnelServiceProperties_1.devThirdPartyAppId,
32
+ gitHubAppClientId: tunnelServiceProperties_1.nonProdGitHubAppClientId,
33
+ };
34
+ /**
35
+ * Gets properties for the service in the specified environment.
36
+ */
37
+ function environment(environmentName) {
38
+ if (!environmentName) {
39
+ throw new Error(`Invalid argument: ${environmentName}`);
40
+ }
41
+ switch (environmentName.toLowerCase()) {
42
+ case 'prod':
43
+ case 'production':
44
+ return exports.production;
45
+ case 'ppe':
46
+ case 'preprod':
47
+ return exports.staging;
48
+ case 'dev':
49
+ case 'development':
50
+ return exports.development;
51
+ default:
52
+ throw new Error(`Invalid service environment: ${environmentName}`);
53
+ }
54
+ }
55
+ exports.environment = environment;
56
56
  //# sourceMappingURL=tunnelServicePropertiesStatics.js.map
package/tunnelStatus.d.ts CHANGED
@@ -1,67 +1,67 @@
1
- import { RateStatus } from './rateStatus';
2
- import { ResourceStatus } from './resourceStatus';
3
- /**
4
- * Data contract for {@link Tunnel} status.
5
- */
6
- export interface TunnelStatus {
7
- /**
8
- * Gets or sets the current value and limit for the number of ports on the tunnel.
9
- */
10
- portCount?: number | ResourceStatus;
11
- /**
12
- * Gets or sets the current value and limit for the number of hosts currently
13
- * accepting connections to the tunnel.
14
- *
15
- * This is typically 0 or 1, but may be more than 1 if the tunnel options allow
16
- * multiple hosts.
17
- */
18
- hostConnectionCount?: number | ResourceStatus;
19
- /**
20
- * Gets or sets the UTC time when a host was last accepting connections to the tunnel,
21
- * or null if a host has never connected.
22
- */
23
- lastHostConnectionTime?: Date;
24
- /**
25
- * Gets or sets the current value and limit for the number of clients connected to the
26
- * tunnel.
27
- *
28
- * This counts non-port-specific client connections, which is SDK and SSH clients. See
29
- * {@link TunnelPortStatus} for status of per-port client connections.
30
- */
31
- clientConnectionCount?: number | ResourceStatus;
32
- /**
33
- * Gets or sets the UTC time when a client last connected to the tunnel, or null if a
34
- * client has never connected.
35
- *
36
- * This reports times for non-port-specific client connections, which is SDK client
37
- * and SSH clients. See {@link TunnelPortStatus} for per-port client connections.
38
- */
39
- lastClientConnectionTime?: Date;
40
- /**
41
- * Gets or sets the current value and limit for the rate of client connections to the
42
- * tunnel.
43
- *
44
- * This counts non-port-specific client connections, which is SDK client and SSH
45
- * clients. See {@link TunnelPortStatus} for status of per-port client connections.
46
- */
47
- clientConnectionRate?: RateStatus;
48
- /**
49
- * Gets or sets the current value and limit for the rate of bytes transferred via the
50
- * tunnel.
51
- *
52
- * This includes both sending and receiving. All types of tunnel and port connections
53
- * contribute to this rate.
54
- */
55
- dataTransferRate?: RateStatus;
56
- /**
57
- * Gets or sets the current value and limit for the rate of management API read
58
- * operations for the tunnel or tunnel ports.
59
- */
60
- apiReadRate?: RateStatus;
61
- /**
62
- * Gets or sets the current value and limit for the rate of management API update
63
- * operations for the tunnel or tunnel ports.
64
- */
65
- apiUpdateRate?: RateStatus;
66
- }
1
+ import { RateStatus } from './rateStatus';
2
+ import { ResourceStatus } from './resourceStatus';
3
+ /**
4
+ * Data contract for {@link Tunnel} status.
5
+ */
6
+ export interface TunnelStatus {
7
+ /**
8
+ * Gets or sets the current value and limit for the number of ports on the tunnel.
9
+ */
10
+ portCount?: number | ResourceStatus;
11
+ /**
12
+ * Gets or sets the current value and limit for the number of hosts currently
13
+ * accepting connections to the tunnel.
14
+ *
15
+ * This is typically 0 or 1, but may be more than 1 if the tunnel options allow
16
+ * multiple hosts.
17
+ */
18
+ hostConnectionCount?: number | ResourceStatus;
19
+ /**
20
+ * Gets or sets the UTC time when a host was last accepting connections to the tunnel,
21
+ * or null if a host has never connected.
22
+ */
23
+ lastHostConnectionTime?: Date;
24
+ /**
25
+ * Gets or sets the current value and limit for the number of clients connected to the
26
+ * tunnel.
27
+ *
28
+ * This counts non-port-specific client connections, which is SDK and SSH clients. See
29
+ * {@link TunnelPortStatus} for status of per-port client connections.
30
+ */
31
+ clientConnectionCount?: number | ResourceStatus;
32
+ /**
33
+ * Gets or sets the UTC time when a client last connected to the tunnel, or null if a
34
+ * client has never connected.
35
+ *
36
+ * This reports times for non-port-specific client connections, which is SDK client
37
+ * and SSH clients. See {@link TunnelPortStatus} for per-port client connections.
38
+ */
39
+ lastClientConnectionTime?: Date;
40
+ /**
41
+ * Gets or sets the current value and limit for the rate of client connections to the
42
+ * tunnel.
43
+ *
44
+ * This counts non-port-specific client connections, which is SDK client and SSH
45
+ * clients. See {@link TunnelPortStatus} for status of per-port client connections.
46
+ */
47
+ clientConnectionRate?: RateStatus;
48
+ /**
49
+ * Gets or sets the current value and limit for the rate of bytes transferred via the
50
+ * tunnel.
51
+ *
52
+ * This includes both sending and receiving. All types of tunnel and port connections
53
+ * contribute to this rate.
54
+ */
55
+ dataTransferRate?: RateStatus;
56
+ /**
57
+ * Gets or sets the current value and limit for the rate of management API read
58
+ * operations for the tunnel or tunnel ports.
59
+ */
60
+ apiReadRate?: RateStatus;
61
+ /**
62
+ * Gets or sets the current value and limit for the rate of management API update
63
+ * operations for the tunnel or tunnel ports.
64
+ */
65
+ apiUpdateRate?: RateStatus;
66
+ }
67
67
  //# sourceMappingURL=tunnelStatus.d.ts.map
package/tunnelStatus.js CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelStatus.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelStatus.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  //# sourceMappingURL=tunnelStatus.js.map