@routr/common 2.0.8-alpha.12 → 2.0.8-alpha.14
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/dist/connect/schemas/acl.d.ts +60 -0
- package/dist/connect/schemas/acl.js +79 -0
- package/dist/connect/schemas/agent.d.ts +59 -0
- package/dist/connect/schemas/agent.js +78 -0
- package/dist/connect/schemas/crendentials.d.ts +54 -0
- package/dist/connect/schemas/crendentials.js +73 -0
- package/dist/connect/schemas/domain.d.ts +72 -0
- package/dist/connect/schemas/domain.js +91 -0
- package/dist/connect/schemas/index.d.ts +1 -0
- package/dist/connect/schemas/index.js +35 -0
- package/dist/connect/schemas/number.d.ts +77 -0
- package/dist/connect/schemas/number.js +96 -0
- package/dist/connect/schemas/peer.d.ts +67 -0
- package/dist/connect/schemas/peer.js +86 -0
- package/dist/connect/schemas/trunk.d.ts +113 -0
- package/dist/connect/schemas/trunk.js +132 -0
- package/dist/connect/schemas/validators.d.ts +2 -0
- package/dist/connect/schemas/validators.js +43 -0
- package/dist/connect/types.d.ts +2 -2
- package/dist/connect/types.js +2 -2
- package/dist/helper.d.ts +12 -0
- package/dist/helper.js +67 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/package.json +8 -3
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
properties: {
|
|
7
|
+
apiVersion: {
|
|
8
|
+
enum: string[];
|
|
9
|
+
};
|
|
10
|
+
kind: {
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
ref: {
|
|
14
|
+
description: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
metadata: {
|
|
18
|
+
description: string;
|
|
19
|
+
type: string;
|
|
20
|
+
properties: {
|
|
21
|
+
name: {
|
|
22
|
+
description: string;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
spec: {
|
|
28
|
+
description: string;
|
|
29
|
+
type: string;
|
|
30
|
+
properties: {
|
|
31
|
+
accessControlList: {
|
|
32
|
+
description: string;
|
|
33
|
+
type: string;
|
|
34
|
+
properties: {
|
|
35
|
+
allow: {
|
|
36
|
+
description: string;
|
|
37
|
+
type: string;
|
|
38
|
+
items: {
|
|
39
|
+
type: string;
|
|
40
|
+
};
|
|
41
|
+
minItems: number;
|
|
42
|
+
uniqueItems: boolean;
|
|
43
|
+
};
|
|
44
|
+
deny: {
|
|
45
|
+
description: string;
|
|
46
|
+
type: string;
|
|
47
|
+
items: {
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
minItems: number;
|
|
51
|
+
uniqueItems: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
required: string[];
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
5
|
+
* http://github.com/fonoster
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Routr.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the MIT License (the "License");
|
|
10
|
+
* you may not use this file except in compliance with
|
|
11
|
+
* the License. You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* https://opensource.org/licenses/MIT
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
exports.default = {
|
|
22
|
+
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
23
|
+
title: "Location Service configuration",
|
|
24
|
+
description: "Access Control List for Domains and Trunks",
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: {
|
|
27
|
+
apiVersion: {
|
|
28
|
+
enum: ["v2draft1", "v2.0", "v2"]
|
|
29
|
+
},
|
|
30
|
+
kind: {
|
|
31
|
+
enum: ["AccessControlList", "accesscontrolList"]
|
|
32
|
+
},
|
|
33
|
+
ref: {
|
|
34
|
+
description: "Unique identifier for this resource",
|
|
35
|
+
type: "string"
|
|
36
|
+
},
|
|
37
|
+
metadata: {
|
|
38
|
+
description: "Resource metadata",
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
name: {
|
|
42
|
+
description: "Resource's friendly name",
|
|
43
|
+
type: "string"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
spec: {
|
|
48
|
+
description: "Operations spec for ACL",
|
|
49
|
+
type: "object",
|
|
50
|
+
properties: {
|
|
51
|
+
accessControlList: {
|
|
52
|
+
description: "An object with deny and allow list of access control rules",
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: {
|
|
55
|
+
allow: {
|
|
56
|
+
description: "Allowed list of access control rules",
|
|
57
|
+
type: "array",
|
|
58
|
+
items: {
|
|
59
|
+
type: "string"
|
|
60
|
+
},
|
|
61
|
+
minItems: 1,
|
|
62
|
+
uniqueItems: true
|
|
63
|
+
},
|
|
64
|
+
deny: {
|
|
65
|
+
description: "Denied list of access control rules",
|
|
66
|
+
type: "array",
|
|
67
|
+
items: {
|
|
68
|
+
type: "string"
|
|
69
|
+
},
|
|
70
|
+
minItems: 1,
|
|
71
|
+
uniqueItems: true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
required: ["apiVersion", "kind", "ref", "metadata", "spec"]
|
|
79
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
properties: {
|
|
7
|
+
apiVersion: {
|
|
8
|
+
enum: string[];
|
|
9
|
+
};
|
|
10
|
+
kind: {
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
ref: {
|
|
14
|
+
description: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
metadata: {
|
|
18
|
+
description: string;
|
|
19
|
+
type: string;
|
|
20
|
+
properties: {
|
|
21
|
+
name: {
|
|
22
|
+
description: string;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
spec: {
|
|
28
|
+
description: string;
|
|
29
|
+
type: string;
|
|
30
|
+
properties: {
|
|
31
|
+
username: {
|
|
32
|
+
description: string;
|
|
33
|
+
type: string;
|
|
34
|
+
minLength: number;
|
|
35
|
+
maxLength: number;
|
|
36
|
+
readOnly: boolean;
|
|
37
|
+
};
|
|
38
|
+
domainRef: {
|
|
39
|
+
description: string;
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
credentialsRef: {
|
|
43
|
+
description: string;
|
|
44
|
+
type: string;
|
|
45
|
+
};
|
|
46
|
+
enabled: {
|
|
47
|
+
description: string;
|
|
48
|
+
type: string;
|
|
49
|
+
};
|
|
50
|
+
privacy: {
|
|
51
|
+
enum: string[];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
required: string[];
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
required: string[];
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
5
|
+
* http://github.com/fonoster
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Routr.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the MIT License (the "License");
|
|
10
|
+
* you may not use this file except in compliance with
|
|
11
|
+
* the License. You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* https://opensource.org/licenses/MIT
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
exports.default = {
|
|
22
|
+
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
23
|
+
title: "Agent validation schema",
|
|
24
|
+
description: "The spec defined for Agent validation",
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: {
|
|
27
|
+
apiVersion: {
|
|
28
|
+
enum: ["v2draft1", "v2.0", "v2"]
|
|
29
|
+
},
|
|
30
|
+
kind: {
|
|
31
|
+
enum: ["Agent", "agent"]
|
|
32
|
+
},
|
|
33
|
+
ref: {
|
|
34
|
+
description: "Reference to the resource",
|
|
35
|
+
type: "string"
|
|
36
|
+
},
|
|
37
|
+
metadata: {
|
|
38
|
+
description: "Resource metadata",
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
name: {
|
|
42
|
+
description: "Resource's friendly name",
|
|
43
|
+
type: "string"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
spec: {
|
|
48
|
+
description: "Operations spec for an Agent",
|
|
49
|
+
type: "object",
|
|
50
|
+
properties: {
|
|
51
|
+
username: {
|
|
52
|
+
description: "The username for the Agent",
|
|
53
|
+
type: "string",
|
|
54
|
+
minLength: 3,
|
|
55
|
+
maxLength: 60,
|
|
56
|
+
readOnly: true
|
|
57
|
+
},
|
|
58
|
+
domainRef: {
|
|
59
|
+
description: "The domain the Agent belongs to",
|
|
60
|
+
type: "string"
|
|
61
|
+
},
|
|
62
|
+
credentialsRef: {
|
|
63
|
+
description: "The credential the Agent uses to authenticate",
|
|
64
|
+
type: "string"
|
|
65
|
+
},
|
|
66
|
+
enabled: {
|
|
67
|
+
description: "Whether the Agent is enabled",
|
|
68
|
+
type: "boolean"
|
|
69
|
+
},
|
|
70
|
+
privacy: {
|
|
71
|
+
enum: ["Private", "None", "private", "none"]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
required: ["username", "domainRef", "credentialsRef"]
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
required: ["apiVersion", "kind", "ref", "metadata", "spec"]
|
|
78
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
properties: {
|
|
7
|
+
apiVersion: {
|
|
8
|
+
enum: string[];
|
|
9
|
+
};
|
|
10
|
+
kind: {
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
ref: {
|
|
14
|
+
description: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
metadata: {
|
|
18
|
+
description: string;
|
|
19
|
+
type: string;
|
|
20
|
+
properties: {
|
|
21
|
+
name: {
|
|
22
|
+
description: string;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
spec: {
|
|
28
|
+
description: string;
|
|
29
|
+
type: string;
|
|
30
|
+
properties: {
|
|
31
|
+
credentials: {
|
|
32
|
+
description: string;
|
|
33
|
+
type: string;
|
|
34
|
+
properties: {
|
|
35
|
+
username: {
|
|
36
|
+
description: string;
|
|
37
|
+
type: string;
|
|
38
|
+
readOnly: boolean;
|
|
39
|
+
};
|
|
40
|
+
password: {
|
|
41
|
+
description: string;
|
|
42
|
+
type: string;
|
|
43
|
+
writeOnly: boolean;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
required: string[];
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
required: string[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
required: string[];
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
5
|
+
* http://github.com/fonoster
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Routr.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the MIT License (the "License");
|
|
10
|
+
* you may not use this file except in compliance with
|
|
11
|
+
* the License. You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* https://opensource.org/licenses/MIT
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
exports.default = {
|
|
22
|
+
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
23
|
+
title: "Credentials Schema",
|
|
24
|
+
description: "Credentials resource for Agents and Trunks",
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: {
|
|
27
|
+
apiVersion: {
|
|
28
|
+
enum: ["v2draft1", "v2.0", "v2"]
|
|
29
|
+
},
|
|
30
|
+
kind: {
|
|
31
|
+
enum: ["Credentials", "credentials"]
|
|
32
|
+
},
|
|
33
|
+
ref: {
|
|
34
|
+
description: "Reference to the resource",
|
|
35
|
+
type: "string"
|
|
36
|
+
},
|
|
37
|
+
metadata: {
|
|
38
|
+
description: "Resource metadata",
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
name: {
|
|
42
|
+
description: "Resource's friendly name",
|
|
43
|
+
type: "string"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
spec: {
|
|
48
|
+
description: "Operations spec for Credentials",
|
|
49
|
+
type: "object",
|
|
50
|
+
properties: {
|
|
51
|
+
credentials: {
|
|
52
|
+
description: "Credential configuration",
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: {
|
|
55
|
+
username: {
|
|
56
|
+
description: "Username",
|
|
57
|
+
type: "string",
|
|
58
|
+
readOnly: true
|
|
59
|
+
},
|
|
60
|
+
password: {
|
|
61
|
+
description: "Password",
|
|
62
|
+
type: "string",
|
|
63
|
+
writeOnly: true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
required: ["username", "password"]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
required: ["credentials"]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
required: ["apiVersion", "kind", "ref", "metadata", "spec"]
|
|
73
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
properties: {
|
|
7
|
+
apiVersion: {
|
|
8
|
+
enum: string[];
|
|
9
|
+
};
|
|
10
|
+
kind: {
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
ref: {
|
|
14
|
+
description: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
metadata: {
|
|
18
|
+
description: string;
|
|
19
|
+
type: string;
|
|
20
|
+
properties: {
|
|
21
|
+
name: {
|
|
22
|
+
description: string;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
spec: {
|
|
28
|
+
description: string;
|
|
29
|
+
type: string;
|
|
30
|
+
properties: {
|
|
31
|
+
context: {
|
|
32
|
+
description: string;
|
|
33
|
+
type: string;
|
|
34
|
+
properties: {
|
|
35
|
+
domainUri: {
|
|
36
|
+
description: string;
|
|
37
|
+
type: string;
|
|
38
|
+
minLength: number;
|
|
39
|
+
maxLength: number;
|
|
40
|
+
};
|
|
41
|
+
accessControlListRef: {
|
|
42
|
+
description: string;
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
egressPolicy: {
|
|
46
|
+
description: string;
|
|
47
|
+
type: string;
|
|
48
|
+
items: {
|
|
49
|
+
type: string;
|
|
50
|
+
properties: {
|
|
51
|
+
rule: {
|
|
52
|
+
description: string;
|
|
53
|
+
type: string;
|
|
54
|
+
minLength: number;
|
|
55
|
+
};
|
|
56
|
+
numberRef: {
|
|
57
|
+
description: string;
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
required: string[];
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
required: string[];
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
required: string[];
|
|
71
|
+
};
|
|
72
|
+
export default _default;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/*
|
|
4
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
5
|
+
* http://github.com/fonoster
|
|
6
|
+
*
|
|
7
|
+
* This file is part of Routr.
|
|
8
|
+
*
|
|
9
|
+
* Licensed under the MIT License (the "License");
|
|
10
|
+
* you may not use this file except in compliance with
|
|
11
|
+
* the License. You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* https://opensource.org/licenses/MIT
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
16
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
17
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
18
|
+
* See the License for the specific language governing permissions and
|
|
19
|
+
* limitations under the License.
|
|
20
|
+
*/
|
|
21
|
+
exports.default = {
|
|
22
|
+
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
23
|
+
title: "Domain validation schema",
|
|
24
|
+
description: "The spec defined for Domain validation",
|
|
25
|
+
type: "object",
|
|
26
|
+
properties: {
|
|
27
|
+
apiVersion: {
|
|
28
|
+
enum: ["v2draft1", "v2.0", "v2"]
|
|
29
|
+
},
|
|
30
|
+
kind: {
|
|
31
|
+
enum: ["Domain", "domain"]
|
|
32
|
+
},
|
|
33
|
+
ref: {
|
|
34
|
+
description: "Reference to the resource",
|
|
35
|
+
type: "string"
|
|
36
|
+
},
|
|
37
|
+
metadata: {
|
|
38
|
+
description: "Resource metadata",
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
name: {
|
|
42
|
+
description: "Resource's friendly name",
|
|
43
|
+
type: "string"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
spec: {
|
|
48
|
+
description: "Operations spec for an Domain",
|
|
49
|
+
type: "object",
|
|
50
|
+
properties: {
|
|
51
|
+
context: {
|
|
52
|
+
description: "The username for the Domain",
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: {
|
|
55
|
+
domainUri: {
|
|
56
|
+
description: "The URI of the Domain",
|
|
57
|
+
type: "string",
|
|
58
|
+
minLength: 3,
|
|
59
|
+
maxLength: 255
|
|
60
|
+
},
|
|
61
|
+
accessControlListRef: {
|
|
62
|
+
description: "The reference to the AccessControlList",
|
|
63
|
+
type: "string"
|
|
64
|
+
},
|
|
65
|
+
egressPolicy: {
|
|
66
|
+
description: "The egress policy for the Domain",
|
|
67
|
+
type: "array",
|
|
68
|
+
items: {
|
|
69
|
+
type: "object",
|
|
70
|
+
properties: {
|
|
71
|
+
rule: {
|
|
72
|
+
description: "The rule for the egress policy",
|
|
73
|
+
type: "string",
|
|
74
|
+
minLength: 1
|
|
75
|
+
},
|
|
76
|
+
numberRef: {
|
|
77
|
+
description: "The reference to the number",
|
|
78
|
+
type: "string"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
required: ["rule", "numberRef"]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
required: ["domainUri"]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
required: ["apiVersion", "kind", "ref", "metadata", "spec"]
|
|
91
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./validators";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/*
|
|
18
|
+
* Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
|
|
19
|
+
* http://github.com/fonoster
|
|
20
|
+
*
|
|
21
|
+
* This file is part of Routr.
|
|
22
|
+
*
|
|
23
|
+
* Licensed under the MIT License (the "License");
|
|
24
|
+
* you may not use this file except in compliance with
|
|
25
|
+
* the License. You may obtain a copy of the License at
|
|
26
|
+
*
|
|
27
|
+
* https://opensource.org/licenses/MIT
|
|
28
|
+
*
|
|
29
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
30
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
31
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
32
|
+
* See the License for the specific language governing permissions and
|
|
33
|
+
* limitations under the License.
|
|
34
|
+
*/
|
|
35
|
+
__exportStar(require("./validators"), exports);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
$id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
type: string;
|
|
6
|
+
properties: {
|
|
7
|
+
apiVersion: {
|
|
8
|
+
enum: string[];
|
|
9
|
+
};
|
|
10
|
+
kind: {
|
|
11
|
+
enum: string[];
|
|
12
|
+
};
|
|
13
|
+
ref: {
|
|
14
|
+
description: string;
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
metadata: {
|
|
18
|
+
description: string;
|
|
19
|
+
type: string;
|
|
20
|
+
properties: {
|
|
21
|
+
name: {
|
|
22
|
+
description: string;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
spec: {
|
|
28
|
+
description: string;
|
|
29
|
+
type: string;
|
|
30
|
+
properties: {
|
|
31
|
+
trunkRef: {
|
|
32
|
+
description: string;
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
location: {
|
|
36
|
+
description: string;
|
|
37
|
+
type: string;
|
|
38
|
+
properties: {
|
|
39
|
+
telUrl: {
|
|
40
|
+
description: string;
|
|
41
|
+
type: string;
|
|
42
|
+
};
|
|
43
|
+
aorLink: {
|
|
44
|
+
description: string;
|
|
45
|
+
type: string;
|
|
46
|
+
};
|
|
47
|
+
sessionAffinityHeader: {
|
|
48
|
+
description: string;
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
extraHeaders: {
|
|
52
|
+
description: string;
|
|
53
|
+
type: string;
|
|
54
|
+
items: {
|
|
55
|
+
type: string;
|
|
56
|
+
properties: {
|
|
57
|
+
name: {
|
|
58
|
+
description: string;
|
|
59
|
+
type: string;
|
|
60
|
+
};
|
|
61
|
+
value: {
|
|
62
|
+
description: string;
|
|
63
|
+
type: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
required: string[];
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
required: string[];
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
required: string[];
|
|
76
|
+
};
|
|
77
|
+
export default _default;
|