@microsoft/dev-tunnels-contracts 1.3.5 → 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.
- package/README.md +2 -2
- package/clusterDetails.d.ts +19 -19
- package/clusterDetails.js +6 -6
- package/errorCodes.d.ts +17 -17
- package/errorCodes.js +25 -25
- package/errorDetail.d.ts +27 -27
- package/errorDetail.js +6 -6
- package/index.d.ts +24 -24
- package/index.js +29 -29
- package/innerErrorDetail.d.ts +15 -15
- package/innerErrorDetail.js +6 -6
- package/localNetworkTunnelEndpoint.d.ts +20 -20
- package/localNetworkTunnelEndpoint.js +6 -6
- package/namedRateStatus.d.ts +10 -10
- package/namedRateStatus.js +6 -6
- package/package.json +1 -1
- package/problemDetails.d.ts +24 -24
- package/problemDetails.js +6 -6
- package/rateStatus.d.ts +19 -19
- package/rateStatus.js +6 -6
- package/resourceStatus.d.ts +22 -22
- package/resourceStatus.js +6 -6
- package/serviceVersionDetails.d.ts +26 -26
- package/serviceVersionDetails.js +6 -6
- package/tsbuildinfo.json +1 -1
- package/tunnel.d.ts +87 -87
- package/tunnel.js +6 -6
- package/tunnelAccessControl.d.ts +27 -27
- package/tunnelAccessControl.js +13 -13
- package/tunnelAccessControlEntry.d.ts +116 -116
- package/tunnelAccessControlEntry.js +40 -40
- package/tunnelAccessControlEntryType.d.ts +45 -45
- package/tunnelAccessControlEntryType.js +53 -53
- package/tunnelAccessControlStatics.d.ts +10 -10
- package/tunnelAccessControlStatics.js +46 -46
- package/tunnelAccessScopes.d.ts +38 -38
- package/tunnelAccessScopes.js +46 -46
- package/tunnelAccessSubject.d.ts +39 -39
- package/tunnelAccessSubject.js +6 -6
- package/tunnelAuthenticationSchemes.d.ts +21 -21
- package/tunnelAuthenticationSchemes.js +29 -29
- package/tunnelConnectionMode.d.ts +19 -19
- package/tunnelConnectionMode.js +27 -27
- package/tunnelConstraints.d.ts +268 -253
- package/tunnelConstraints.d.ts.map +1 -1
- package/tunnelConstraints.js +276 -261
- package/tunnelConstraints.js.map +1 -1
- package/tunnelEndpoint.d.ts +76 -76
- package/tunnelEndpoint.js +20 -20
- package/tunnelEndpointStatics.d.ts +19 -19
- package/tunnelEndpointStatics.js +48 -48
- package/tunnelEvent.d.ts +48 -48
- package/tunnelEvent.js +24 -24
- package/tunnelHeaderNames.d.ts +27 -27
- package/tunnelHeaderNames.js +35 -35
- package/tunnelListByRegion.d.ts +23 -23
- package/tunnelListByRegion.js +6 -6
- package/tunnelListByRegionResponse.d.ts +14 -14
- package/tunnelListByRegionResponse.js +6 -6
- package/tunnelOptions.d.ts +99 -67
- package/tunnelOptions.d.ts.map +1 -1
- package/tunnelOptions.js +6 -6
- package/tunnelPort.d.ts +93 -93
- package/tunnelPort.js +6 -6
- package/tunnelPortListResponse.d.ts +14 -14
- package/tunnelPortListResponse.js +6 -6
- package/tunnelPortStatus.d.ts +39 -39
- package/tunnelPortStatus.js +6 -6
- package/tunnelProgress.d.ts +45 -45
- package/tunnelProgress.js +53 -53
- package/tunnelProtocol.d.ts +33 -33
- package/tunnelProtocol.js +41 -41
- package/tunnelRelayTunnelEndpoint.d.ts +14 -14
- package/tunnelRelayTunnelEndpoint.js +6 -6
- package/tunnelReportProgressEventArgs.d.ts +15 -15
- package/tunnelReportProgressEventArgs.js +6 -6
- package/tunnelServiceProperties.d.ts +107 -106
- package/tunnelServiceProperties.d.ts.map +1 -1
- package/tunnelServiceProperties.js +85 -84
- package/tunnelServiceProperties.js.map +1 -1
- package/tunnelServicePropertiesStatics.d.ts +17 -17
- package/tunnelServicePropertiesStatics.js +55 -55
- package/tunnelStatus.d.ts +100 -100
- package/tunnelStatus.js +6 -6
package/tunnelConstraints.js
CHANGED
|
@@ -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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*
|
|
85
|
-
*/
|
|
86
|
-
TunnelConstraints.
|
|
87
|
-
/**
|
|
88
|
-
*
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
TunnelConstraints.
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
TunnelConstraints.
|
|
127
|
-
/**
|
|
128
|
-
* Regular expression that can match or validate tunnel
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
*
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
*
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
*
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
*
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
*
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
*
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
*
|
|
217
|
-
*/
|
|
218
|
-
TunnelConstraints.
|
|
219
|
-
/**
|
|
220
|
-
* Regular expression that can match or validate tunnel
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*/
|
|
225
|
-
TunnelConstraints.
|
|
226
|
-
/**
|
|
227
|
-
* Regular expression that can match or validate tunnel
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
* The
|
|
238
|
-
*
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
*
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
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
|
+
* (-<port>-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
|
+
* (-<port>-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
|
package/tunnelConstraints.js.map
CHANGED
|
@@ -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,
|
|
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,CAwTjC;AAxTD,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;;;;;OAKG;IACU,sCAAoB,GAAW,EAAE,CAAC;IAE/C;;OAEG;IACU,mCAAiB,GAAW,CAAC,CAAC;IAE3C;;OAEG;IACU,qCAAmB,GAAW,CAAC,CAAC;IAE7C;;;;;OAKG;IACU,qCAAmB,GAAW,EAAE,CAAC;IAE9C;;OAEG;IACU,kCAAgB,GAAW,EAAE,CAAC;IAE3C;;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,uCA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