@microsoft/dev-tunnels-contracts 1.3.6 → 1.3.36

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,262 +1,277 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- // Generated from ../../../cs/src/Contracts/TunnelConstraints.cs
5
- /* eslint-disable */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TunnelConstraints = void 0;
8
- /**
9
- * Tunnel constraints.
10
- */
11
- var TunnelConstraints;
12
- (function (TunnelConstraints) {
13
- /**
14
- * Min length of tunnel cluster ID.
15
- */
16
- TunnelConstraints.clusterIdMinLength = 3;
17
- /**
18
- * Max length of tunnel cluster ID.
19
- */
20
- TunnelConstraints.clusterIdMaxLength = 12;
21
- /**
22
- * Length of V1 tunnel id.
23
- */
24
- TunnelConstraints.oldTunnelIdLength = 8;
25
- /**
26
- * Min length of V2 tunnelId.
27
- */
28
- TunnelConstraints.newTunnelIdMinLength = 3;
29
- /**
30
- * Max length of V2 tunnelId.
31
- */
32
- TunnelConstraints.newTunnelIdMaxLength = 60;
33
- /**
34
- * Length of a tunnel alias.
35
- */
36
- TunnelConstraints.tunnelAliasLength = 8;
37
- /**
38
- * Min length of tunnel name.
39
- */
40
- TunnelConstraints.tunnelNameMinLength = 3;
41
- /**
42
- * Max length of tunnel name.
43
- */
44
- TunnelConstraints.tunnelNameMaxLength = 60;
45
- /**
46
- * Max length of tunnel or port description.
47
- */
48
- TunnelConstraints.descriptionMaxLength = 400;
49
- /**
50
- * Max length of tunnel event details.
51
- */
52
- TunnelConstraints.eventDetailsMaxLength = 4000;
53
- /**
54
- * Max number of properties in a tunnel event.
55
- */
56
- TunnelConstraints.maxEventProperties = 100;
57
- /**
58
- * Max length of a single tunnel event property value.
59
- */
60
- TunnelConstraints.eventPropertyValueMaxLength = 4000;
61
- /**
62
- * Min length of a single tunnel or port tag.
63
- */
64
- TunnelConstraints.labelMinLength = 1;
65
- /**
66
- * Max length of a single tunnel or port tag.
67
- */
68
- TunnelConstraints.labelMaxLength = 50;
69
- /**
70
- * Maximum number of labels that can be applied to a tunnel or port.
71
- */
72
- TunnelConstraints.maxLabels = 100;
73
- /**
74
- * Min length of a tunnel domain.
75
- */
76
- TunnelConstraints.tunnelDomainMinLength = 4;
77
- /**
78
- * Max length of a tunnel domain.
79
- */
80
- TunnelConstraints.tunnelDomainMaxLength = 180;
81
- /**
82
- * Maximum number of items allowed in the tunnel ports array. The actual limit on
83
- * number of ports that can be created may be much lower, and may depend on various
84
- * resource limitations or policies.
85
- */
86
- TunnelConstraints.tunnelMaxPorts = 1000;
87
- /**
88
- * Maximum number of access control entries (ACEs) in a tunnel or tunnel port access
89
- * control list (ACL).
90
- */
91
- TunnelConstraints.accessControlMaxEntries = 40;
92
- /**
93
- * Maximum number of subjects (such as user IDs) in a tunnel or tunnel port access
94
- * control entry (ACE).
95
- */
96
- TunnelConstraints.accessControlMaxSubjects = 100;
97
- /**
98
- * Max length of an access control subject or organization ID.
99
- */
100
- TunnelConstraints.accessControlSubjectMaxLength = 200;
101
- /**
102
- * Max length of an access control subject name, when resolving names to IDs.
103
- */
104
- TunnelConstraints.accessControlSubjectNameMaxLength = 200;
105
- /**
106
- * Maximum number of scopes in an access control entry.
107
- */
108
- TunnelConstraints.accessControlMaxScopes = 10;
109
- /**
110
- * Regular expression that can match or validate tunnel event name strings.
111
- */
112
- TunnelConstraints.eventNamePattern = '^[a-z0-9_]{3,80}$';
113
- /**
114
- * Regular expression that can match or validate tunnel event severity strings.
115
- */
116
- TunnelConstraints.eventSeverityPattern = '^(info)|(warning)|(error)$';
117
- /**
118
- * Regular expression that can match or validate tunnel event property name strings.
119
- */
120
- TunnelConstraints.eventPropertyNamePattern = '^[a-zA-Z0-9_.]{3,200}$';
121
- /**
122
- * Regular expression that can match or validate tunnel cluster ID strings.
123
- *
124
- * Cluster IDs are alphanumeric; hyphens are not permitted.
125
- */
126
- TunnelConstraints.clusterIdPattern = '^(([a-z]{3,4}[0-9]{1,3})|asse|aue|brs|euw|use)$';
127
- /**
128
- * Regular expression that can match or validate tunnel cluster ID strings.
129
- *
130
- * Cluster IDs are alphanumeric; hyphens are not permitted.
131
- */
132
- TunnelConstraints.clusterIdRegex = new RegExp(TunnelConstraints.clusterIdPattern);
133
- /**
134
- * Regular expression that can match or validate a tunnel cluster ID as a hostname
135
- * prefix.
136
- *
137
- * Cluster IDs are alphanumeric; hyphens are not permitted.
138
- */
139
- TunnelConstraints.clusterIdPrefixRegex = new RegExp(TunnelConstraints.clusterIdPattern.replace('$', '\\.'));
140
- /**
141
- * Characters that are valid in tunnel IDs. Includes numbers and lowercase letters,
142
- * excluding vowels and 'y' (to avoid accidentally generating any random words).
143
- */
144
- TunnelConstraints.oldTunnelIdChars = '0123456789bcdfghjklmnpqrstvwxz';
145
- /**
146
- * Regular expression that can match or validate tunnel ID strings.
147
- *
148
- * Tunnel IDs are fixed-length and have a limited character set of numbers and
149
- * lowercase letters (minus vowels and y).
150
- */
151
- TunnelConstraints.oldTunnelIdPattern = '[' + TunnelConstraints.oldTunnelIdChars + ']{8}';
152
- /**
153
- * Regular expression that can match or validate tunnel ID strings.
154
- *
155
- * Tunnel IDs are fixed-length and have a limited character set of numbers and
156
- * lowercase letters (minus vowels and y).
157
- */
158
- TunnelConstraints.oldTunnelIdRegex = new RegExp(TunnelConstraints.oldTunnelIdPattern);
159
- /**
160
- * Characters that are valid in tunnel IDs. Includes numbers and lowercase letters,
161
- * excluding vowels and 'y' (to avoid accidentally generating any random words).
162
- */
163
- TunnelConstraints.newTunnelIdChars = '0123456789abcdefghijklmnopqrstuvwxyz-';
164
- /**
165
- * Regular expression that can match or validate tunnel ID strings.
166
- *
167
- * Tunnel IDs are fixed-length and have a limited character set of numbers and
168
- * lowercase letters (minus vowels and y).
169
- */
170
- TunnelConstraints.newTunnelIdPattern = '[a-z0-9][a-z0-9-]{1,58}[a-z0-9]';
171
- /**
172
- * Regular expression that can match or validate tunnel ID strings.
173
- *
174
- * Tunnel IDs are fixed-length and have a limited character set of numbers and
175
- * lowercase letters (minus vowels and y).
176
- */
177
- TunnelConstraints.newTunnelIdRegex = new RegExp(TunnelConstraints.newTunnelIdPattern);
178
- /**
179
- * Characters that are valid in tunnel IDs. Includes numbers and lowercase letters,
180
- * excluding vowels and 'y' (to avoid accidentally generating any random words).
181
- */
182
- TunnelConstraints.tunnelAliasChars = '0123456789bcdfghjklmnpqrstvwxz';
183
- /**
184
- * Regular expression that can match or validate tunnel alias strings.
185
- *
186
- * Tunnel Aliases are fixed-length and have a limited character set of numbers and
187
- * lowercase letters (minus vowels and y).
188
- */
189
- TunnelConstraints.tunnelAliasPattern = '[' + TunnelConstraints.tunnelAliasChars + ']{3,60}';
190
- /**
191
- * Regular expression that can match or validate tunnel alias strings.
192
- *
193
- * Tunnel Aliases are fixed-length and have a limited character set of numbers and
194
- * lowercase letters (minus vowels and y).
195
- */
196
- TunnelConstraints.tunnelAliasRegex = new RegExp(TunnelConstraints.tunnelAliasPattern);
197
- /**
198
- * Regular expression that can match or validate tunnel names.
199
- *
200
- * Tunnel names are alphanumeric and may contain hyphens. The pattern also allows an
201
- * empty string because tunnels may be unnamed.
202
- */
203
- TunnelConstraints.tunnelNamePattern = '([a-z0-9][a-z0-9-]{1,58}[a-z0-9])|(^$)';
204
- /**
205
- * Regular expression that can match or validate tunnel names.
206
- *
207
- * Tunnel names are alphanumeric and may contain hyphens. The pattern also allows an
208
- * empty string because tunnels may be unnamed.
209
- */
210
- TunnelConstraints.tunnelNameRegex = new RegExp(TunnelConstraints.tunnelNamePattern);
211
- /**
212
- * Regular expression that can match or validate tunnel or port labels.
213
- */
214
- TunnelConstraints.labelPattern = '[\\w-=]{1,50}';
215
- /**
216
- * Regular expression that can match or validate tunnel or port labels.
217
- */
218
- TunnelConstraints.labelRegex = new RegExp(TunnelConstraints.labelPattern);
219
- /**
220
- * Regular expression that can match or validate tunnel domains.
221
- *
222
- * The tunnel service may perform additional contextual validation at the time the
223
- * domain is registered.
224
- */
225
- TunnelConstraints.tunnelDomainPattern = '[0-9a-z][0-9a-z-.]{1,158}[0-9a-z]|(^$)';
226
- /**
227
- * Regular expression that can match or validate tunnel domains.
228
- *
229
- * The tunnel service may perform additional contextual validation at the time the
230
- * domain is registered.
231
- */
232
- TunnelConstraints.tunnelDomainRegex = new RegExp(TunnelConstraints.tunnelDomainPattern);
233
- /**
234
- * Regular expression that can match or validate an access control subject or
235
- * organization ID.
236
- *
237
- * The : and / characters are allowed because subjects may include IP addresses and
238
- * ranges. The @ character is allowed because MSA subjects may be identified by email
239
- * address.
240
- */
241
- TunnelConstraints.accessControlSubjectPattern = '[0-9a-zA-Z-._:/@]{0,200}';
242
- /**
243
- * Regular expression that can match or validate an access control subject or
244
- * organization ID.
245
- */
246
- TunnelConstraints.accessControlSubjectRegex = new RegExp(TunnelConstraints.accessControlSubjectPattern);
247
- /**
248
- * Regular expression that can match or validate an access control subject name, when
249
- * resolving subject names to IDs.
250
- *
251
- * Note angle-brackets are only allowed when they wrap an email address as part of a
252
- * formatted name with email. The service will block any other use of angle-brackets,
253
- * to avoid any XSS risks.
254
- */
255
- TunnelConstraints.accessControlSubjectNamePattern = '[ \\w\\d-.,/\'"_@()<>]{0,200}';
256
- /**
257
- * Regular expression that can match or validate an access control subject name, when
258
- * resolving subject names to IDs.
259
- */
260
- TunnelConstraints.accessControlSubjectNameRegex = new RegExp(TunnelConstraints.accessControlSubjectNamePattern);
261
- })(TunnelConstraints = exports.TunnelConstraints || (exports.TunnelConstraints = {}));
1
+ "use strict";
2
+ // Copyright (c) Microsoft Corporation.
3
+ // Licensed under the MIT license.
4
+ // Generated from ../../../cs/src/Contracts/TunnelConstraints.cs
5
+ /* eslint-disable */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.TunnelConstraints = void 0;
8
+ /**
9
+ * Tunnel constraints.
10
+ */
11
+ var TunnelConstraints;
12
+ (function (TunnelConstraints) {
13
+ /**
14
+ * Min length of tunnel cluster ID.
15
+ */
16
+ TunnelConstraints.clusterIdMinLength = 3;
17
+ /**
18
+ * Max length of tunnel cluster ID.
19
+ */
20
+ TunnelConstraints.clusterIdMaxLength = 12;
21
+ /**
22
+ * Length of V1 tunnel id.
23
+ */
24
+ TunnelConstraints.oldTunnelIdLength = 8;
25
+ /**
26
+ * Min length of V2 tunnelId.
27
+ */
28
+ TunnelConstraints.newTunnelIdMinLength = 3;
29
+ /**
30
+ * Max length of V2 tunnelId.
31
+ *
32
+ * Limited to 49 characters to ensure tunnel URIs with ports and inspection suffixes
33
+ * (-&lt;port&gt;-inspect) remain within the DNS label limit of 63 characters.
34
+ */
35
+ TunnelConstraints.newTunnelIdMaxLength = 49;
36
+ /**
37
+ * Length of a tunnel alias.
38
+ */
39
+ TunnelConstraints.tunnelAliasLength = 8;
40
+ /**
41
+ * Min length of tunnel name.
42
+ */
43
+ TunnelConstraints.tunnelNameMinLength = 3;
44
+ /**
45
+ * Max length of tunnel name.
46
+ *
47
+ * Limited to 49 characters to ensure tunnel URIs with ports and inspection suffixes
48
+ * (-&lt;port&gt;-inspect) remain within the DNS label limit of 63 characters.
49
+ */
50
+ TunnelConstraints.tunnelNameMaxLength = 49;
51
+ /**
52
+ * Max length of SSH username.
53
+ */
54
+ TunnelConstraints.sshUserMaxLength = 60;
55
+ /**
56
+ * Max length of tunnel or port description.
57
+ */
58
+ TunnelConstraints.descriptionMaxLength = 400;
59
+ /**
60
+ * Max length of tunnel event details.
61
+ */
62
+ TunnelConstraints.eventDetailsMaxLength = 4000;
63
+ /**
64
+ * Max number of properties in a tunnel event.
65
+ */
66
+ TunnelConstraints.maxEventProperties = 100;
67
+ /**
68
+ * Max length of a single tunnel event property value.
69
+ */
70
+ TunnelConstraints.eventPropertyValueMaxLength = 4000;
71
+ /**
72
+ * Min length of a single tunnel or port tag.
73
+ */
74
+ TunnelConstraints.labelMinLength = 1;
75
+ /**
76
+ * Max length of a single tunnel or port tag.
77
+ */
78
+ TunnelConstraints.labelMaxLength = 50;
79
+ /**
80
+ * Maximum number of labels that can be applied to a tunnel or port.
81
+ */
82
+ TunnelConstraints.maxLabels = 100;
83
+ /**
84
+ * Min length of a tunnel domain.
85
+ */
86
+ TunnelConstraints.tunnelDomainMinLength = 4;
87
+ /**
88
+ * Max length of a tunnel domain.
89
+ */
90
+ TunnelConstraints.tunnelDomainMaxLength = 180;
91
+ /**
92
+ * Maximum number of items allowed in the tunnel ports array. The actual limit on
93
+ * number of ports that can be created may be much lower, and may depend on various
94
+ * resource limitations or policies.
95
+ */
96
+ TunnelConstraints.tunnelMaxPorts = 1000;
97
+ /**
98
+ * Maximum number of access control entries (ACEs) in a tunnel or tunnel port access
99
+ * control list (ACL).
100
+ */
101
+ TunnelConstraints.accessControlMaxEntries = 40;
102
+ /**
103
+ * Maximum number of subjects (such as user IDs) in a tunnel or tunnel port access
104
+ * control entry (ACE).
105
+ */
106
+ TunnelConstraints.accessControlMaxSubjects = 100;
107
+ /**
108
+ * Max length of an access control subject or organization ID.
109
+ */
110
+ TunnelConstraints.accessControlSubjectMaxLength = 200;
111
+ /**
112
+ * Max length of an access control subject name, when resolving names to IDs.
113
+ */
114
+ TunnelConstraints.accessControlSubjectNameMaxLength = 200;
115
+ /**
116
+ * Maximum number of scopes in an access control entry.
117
+ */
118
+ TunnelConstraints.accessControlMaxScopes = 10;
119
+ /**
120
+ * Regular expression that can match or validate tunnel event name strings.
121
+ */
122
+ TunnelConstraints.eventNamePattern = '^[a-z0-9_]{3,80}$';
123
+ /**
124
+ * Regular expression that can match or validate tunnel event severity strings.
125
+ */
126
+ TunnelConstraints.eventSeverityPattern = '^(info)|(warning)|(error)$';
127
+ /**
128
+ * Regular expression that can match or validate tunnel event property name strings.
129
+ */
130
+ TunnelConstraints.eventPropertyNamePattern = '^[a-zA-Z0-9_.]{3,200}$';
131
+ /**
132
+ * Regular expression that can match or validate tunnel cluster ID strings.
133
+ *
134
+ * Cluster IDs are alphanumeric; hyphens are not permitted.
135
+ */
136
+ TunnelConstraints.clusterIdPattern = '^(([a-z]{3,4}[0-9]{1,3})|asse|aue|brs|euw|use)$';
137
+ /**
138
+ * Regular expression that can match or validate tunnel cluster ID strings.
139
+ *
140
+ * Cluster IDs are alphanumeric; hyphens are not permitted.
141
+ */
142
+ TunnelConstraints.clusterIdRegex = new RegExp(TunnelConstraints.clusterIdPattern);
143
+ /**
144
+ * Regular expression that can match or validate a tunnel cluster ID as a hostname
145
+ * prefix.
146
+ *
147
+ * Cluster IDs are alphanumeric; hyphens are not permitted.
148
+ */
149
+ TunnelConstraints.clusterIdPrefixRegex = new RegExp(TunnelConstraints.clusterIdPattern.replace('$', '\\.'));
150
+ /**
151
+ * Characters that are valid in tunnel IDs. Includes numbers and lowercase letters,
152
+ * excluding vowels and 'y' (to avoid accidentally generating any random words).
153
+ */
154
+ TunnelConstraints.oldTunnelIdChars = '0123456789bcdfghjklmnpqrstvwxz';
155
+ /**
156
+ * Regular expression that can match or validate tunnel ID strings.
157
+ *
158
+ * Tunnel IDs are fixed-length and have a limited character set of numbers and
159
+ * lowercase letters (minus vowels and y).
160
+ */
161
+ TunnelConstraints.oldTunnelIdPattern = '[' + TunnelConstraints.oldTunnelIdChars + ']{8}';
162
+ /**
163
+ * Regular expression that can match or validate tunnel ID strings.
164
+ *
165
+ * Tunnel IDs are fixed-length and have a limited character set of numbers and
166
+ * lowercase letters (minus vowels and y).
167
+ */
168
+ TunnelConstraints.oldTunnelIdRegex = new RegExp(TunnelConstraints.oldTunnelIdPattern);
169
+ /**
170
+ * Characters that are valid in tunnel IDs. Includes numbers and lowercase letters,
171
+ * excluding vowels and 'y' (to avoid accidentally generating any random words).
172
+ */
173
+ TunnelConstraints.newTunnelIdChars = '0123456789abcdefghijklmnopqrstuvwxyz-';
174
+ /**
175
+ * Regular expression that can match or validate tunnel ID strings.
176
+ *
177
+ * Tunnel IDs have a limited character set of numbers and lowercase letters. Limited
178
+ * to 49 characters to ensure tunnel URIs with ports and inspection suffixes remain
179
+ * within the DNS label limit of 63 characters.
180
+ */
181
+ TunnelConstraints.newTunnelIdPattern = '[a-z0-9][a-z0-9-]{1,47}[a-z0-9]';
182
+ /**
183
+ * Regular expression that can match or validate tunnel ID strings.
184
+ *
185
+ * Tunnel IDs are fixed-length and have a limited character set of numbers and
186
+ * lowercase letters (minus vowels and y).
187
+ */
188
+ TunnelConstraints.newTunnelIdRegex = new RegExp(TunnelConstraints.newTunnelIdPattern);
189
+ /**
190
+ * Characters that are valid in tunnel IDs. Includes numbers and lowercase letters,
191
+ * excluding vowels and 'y' (to avoid accidentally generating any random words).
192
+ */
193
+ TunnelConstraints.tunnelAliasChars = '0123456789bcdfghjklmnpqrstvwxz';
194
+ /**
195
+ * Regular expression that can match or validate tunnel alias strings.
196
+ *
197
+ * Tunnel Aliases are fixed-length and have a limited character set of numbers and
198
+ * lowercase letters (minus vowels and y). Limited to 49 characters to ensure tunnel
199
+ * URIs with ports and inspection suffixes remain within the DNS label limit of 63
200
+ * characters.
201
+ */
202
+ TunnelConstraints.tunnelAliasPattern = '[' + TunnelConstraints.tunnelAliasChars + ']{3,49}';
203
+ /**
204
+ * Regular expression that can match or validate tunnel alias strings.
205
+ *
206
+ * Tunnel Aliases are fixed-length and have a limited character set of numbers and
207
+ * lowercase letters (minus vowels and y).
208
+ */
209
+ TunnelConstraints.tunnelAliasRegex = new RegExp(TunnelConstraints.tunnelAliasPattern);
210
+ /**
211
+ * Regular expression that can match or validate tunnel names.
212
+ *
213
+ * Tunnel names are alphanumeric and may contain hyphens. The pattern also allows an
214
+ * empty string because tunnels may be unnamed. Limited to 49 characters to ensure
215
+ * tunnel URIs with ports and inspection suffixes remain within the DNS label limit of
216
+ * 63 characters.
217
+ */
218
+ TunnelConstraints.tunnelNamePattern = '([a-z0-9][a-z0-9-]{1,47}[a-z0-9])|(^$)';
219
+ /**
220
+ * Regular expression that can match or validate tunnel names.
221
+ *
222
+ * Tunnel names are alphanumeric and may contain hyphens. The pattern also allows an
223
+ * empty string because tunnels may be unnamed.
224
+ */
225
+ TunnelConstraints.tunnelNameRegex = new RegExp(TunnelConstraints.tunnelNamePattern);
226
+ /**
227
+ * Regular expression that can match or validate tunnel or port labels.
228
+ */
229
+ TunnelConstraints.labelPattern = '[\\w-=]{1,50}';
230
+ /**
231
+ * Regular expression that can match or validate tunnel or port labels.
232
+ */
233
+ TunnelConstraints.labelRegex = new RegExp(TunnelConstraints.labelPattern);
234
+ /**
235
+ * Regular expression that can match or validate tunnel domains.
236
+ *
237
+ * The tunnel service may perform additional contextual validation at the time the
238
+ * domain is registered.
239
+ */
240
+ TunnelConstraints.tunnelDomainPattern = '[0-9a-z][0-9a-z-.]{1,158}[0-9a-z]|(^$)';
241
+ /**
242
+ * Regular expression that can match or validate tunnel domains.
243
+ *
244
+ * The tunnel service may perform additional contextual validation at the time the
245
+ * domain is registered.
246
+ */
247
+ TunnelConstraints.tunnelDomainRegex = new RegExp(TunnelConstraints.tunnelDomainPattern);
248
+ /**
249
+ * Regular expression that can match or validate an access control subject or
250
+ * organization ID.
251
+ *
252
+ * The : and / characters are allowed because subjects may include IP addresses and
253
+ * ranges. The @ character is allowed because MSA subjects may be identified by email
254
+ * address.
255
+ */
256
+ TunnelConstraints.accessControlSubjectPattern = '[0-9a-zA-Z-._:/@]{0,200}';
257
+ /**
258
+ * Regular expression that can match or validate an access control subject or
259
+ * organization ID.
260
+ */
261
+ TunnelConstraints.accessControlSubjectRegex = new RegExp(TunnelConstraints.accessControlSubjectPattern);
262
+ /**
263
+ * Regular expression that can match or validate an access control subject name, when
264
+ * resolving subject names to IDs.
265
+ *
266
+ * Note angle-brackets are only allowed when they wrap an email address as part of a
267
+ * formatted name with email. The service will block any other use of angle-brackets,
268
+ * to avoid any XSS risks.
269
+ */
270
+ TunnelConstraints.accessControlSubjectNamePattern = '[ \\w\\d-.,/:\'"_@()<>]{0,200}';
271
+ /**
272
+ * Regular expression that can match or validate an access control subject name, when
273
+ * resolving subject names to IDs.
274
+ */
275
+ TunnelConstraints.accessControlSubjectNameRegex = new RegExp(TunnelConstraints.accessControlSubjectNamePattern);
276
+ })(TunnelConstraints = exports.TunnelConstraints || (exports.TunnelConstraints = {}));
262
277
  //# sourceMappingURL=tunnelConstraints.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tunnelConstraints.js","sourceRoot":"","sources":["../../../src/contracts/tunnelConstraints.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;AAClC,gEAAgE;AAChE,oBAAoB;;;AAEpB;;GAEG;AACH,IAAiB,iBAAiB,CAwSjC;AAxSD,WAAiB,iBAAiB;IAC9B;;OAEG;IACU,oCAAkB,GAAW,CAAC,CAAC;IAE5C;;OAEG;IACU,oCAAkB,GAAW,EAAE,CAAC;IAE7C;;OAEG;IACU,mCAAiB,GAAW,CAAC,CAAC;IAE3C;;OAEG;IACU,sCAAoB,GAAW,CAAC,CAAC;IAE9C;;OAEG;IACU,sCAAoB,GAAW,EAAE,CAAC;IAE/C;;OAEG;IACU,mCAAiB,GAAW,CAAC,CAAC;IAE3C;;OAEG;IACU,qCAAmB,GAAW,CAAC,CAAC;IAE7C;;OAEG;IACU,qCAAmB,GAAW,EAAE,CAAC;IAE9C;;OAEG;IACU,sCAAoB,GAAW,GAAG,CAAC;IAEhD;;OAEG;IACU,uCAAqB,GAAW,IAAI,CAAC;IAElD;;OAEG;IACU,oCAAkB,GAAW,GAAG,CAAC;IAE9C;;OAEG;IACU,6CAA2B,GAAW,IAAI,CAAC;IAExD;;OAEG;IACU,gCAAc,GAAW,CAAC,CAAC;IAExC;;OAEG;IACU,gCAAc,GAAW,EAAE,CAAC;IAEzC;;OAEG;IACU,2BAAS,GAAW,GAAG,CAAC;IAErC;;OAEG;IACU,uCAAqB,GAAW,CAAC,CAAC;IAE/C;;OAEG;IACU,uCAAqB,GAAW,GAAG,CAAC;IAEjD;;;;OAIG;IACU,gCAAc,GAAW,IAAI,CAAC;IAE3C;;;OAGG;IACU,yCAAuB,GAAW,EAAE,CAAC;IAElD;;;OAGG;IACU,0CAAwB,GAAW,GAAG,CAAC;IAEpD;;OAEG;IACU,+CAA6B,GAAW,GAAG,CAAC;IAEz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