@routr/common 2.0.8-alpha.14 → 2.0.8-alpha.15

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 (52) hide show
  1. package/dist/connect/api/client.d.ts +3 -0
  2. package/dist/connect/api/client.js +154 -0
  3. package/dist/connect/api/index.d.ts +2 -0
  4. package/dist/connect/api/index.js +36 -0
  5. package/dist/connect/api/types.d.ts +55 -0
  6. package/dist/connect/api/types.js +2 -0
  7. package/dist/connect/config.d.ts +109 -0
  8. package/dist/connect/config.js +2 -0
  9. package/dist/connect/converters.d.ts +10 -0
  10. package/dist/connect/converters.js +176 -0
  11. package/dist/connect/grpc_client.d.ts +8 -1
  12. package/dist/connect/grpc_client.js +44 -6
  13. package/dist/connect/index.d.ts +3 -1
  14. package/dist/connect/index.js +3 -1
  15. package/dist/connect/protos/acl.proto +117 -0
  16. package/dist/connect/protos/agents.proto +154 -0
  17. package/dist/connect/protos/credentials.proto +116 -0
  18. package/dist/connect/protos/domains.proto +150 -0
  19. package/dist/connect/protos/numbers.proto +184 -0
  20. package/dist/connect/protos/peers.proto +166 -0
  21. package/dist/connect/protos/trunks.proto +186 -0
  22. package/dist/connect/schemas/acl.d.ts +1 -0
  23. package/dist/connect/schemas/acl.js +3 -2
  24. package/dist/connect/schemas/agent.d.ts +1 -0
  25. package/dist/connect/schemas/agent.js +5 -4
  26. package/dist/connect/schemas/crendentials.d.ts +1 -0
  27. package/dist/connect/schemas/crendentials.js +2 -1
  28. package/dist/connect/schemas/domain.d.ts +2 -1
  29. package/dist/connect/schemas/domain.js +3 -2
  30. package/dist/connect/schemas/number.d.ts +1 -0
  31. package/dist/connect/schemas/number.js +4 -3
  32. package/dist/connect/schemas/peer.d.ts +1 -0
  33. package/dist/connect/schemas/peer.js +3 -2
  34. package/dist/connect/schemas/trunk.d.ts +3 -0
  35. package/dist/connect/schemas/trunk.js +6 -3
  36. package/dist/connect/types.d.ts +73 -24
  37. package/dist/connect/types.js +6 -29
  38. package/dist/errors.d.ts +35 -1
  39. package/dist/errors.js +51 -5
  40. package/dist/helper.d.ts +1 -0
  41. package/dist/helper.js +11 -3
  42. package/dist/index.d.ts +4 -4
  43. package/dist/index.js +4 -5
  44. package/dist/protos/common.proto +0 -2
  45. package/dist/protos/location.proto +3 -2
  46. package/dist/service.d.ts +2 -2
  47. package/dist/service.js +1 -1
  48. package/dist/types.d.ts +2 -0
  49. package/package.json +3 -3
  50. package/dist/connect/data_api.d.ts +0 -11
  51. package/dist/connect/data_api.js +0 -91
  52. package/dist/protos/resources.proto +0 -108
@@ -0,0 +1,184 @@
1
+ /*
2
+ * Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
3
+ * http://github.com/fonoster/routr
4
+ *
5
+ * This file is part of Routr
6
+ *
7
+ * Licensed under the MIT License (the "License")
8
+ * you may not use this file except in compliance with
9
+ * the License. You may obtain a copy of the License at
10
+ *
11
+ * https://opensource.org/licenses/MIT
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+ syntax = "proto3";
20
+
21
+ package fonoster.routr.connect.numbers.v2draft1;
22
+
23
+ import "google/protobuf/struct.proto";
24
+ import "google/protobuf/empty.proto";
25
+ import "trunks.proto";
26
+
27
+ // The Numbers service definition
28
+ service Numbers {
29
+ // Create a new Number
30
+ rpc Create (CreateNumberRequest) returns (Number) {}
31
+ // Update an existing Number
32
+ rpc Update (UpdateNumberRequest) returns (Number) {}
33
+ // Get an existing Number
34
+ rpc Get (GetNumberRequest) returns (Number) {}
35
+ // Delete an existing Number
36
+ rpc Delete (DeleteNumberRequest) returns (.google.protobuf.Empty) {}
37
+ // List Numbers
38
+ rpc List (ListNumberRequest) returns (ListNumbersResponse) {}
39
+ // Find Numbers by field name and value
40
+ rpc FindBy (FindByRequest) returns (FindByResponse) {}
41
+ }
42
+
43
+ // The message for the Number resource
44
+ message Number {
45
+ // The version of the Number
46
+ string api_version = 1;
47
+ // The unique identifier of the Number
48
+ string ref = 2;
49
+ // The name of the Number
50
+ string name = 3;
51
+ // The tel_url of the Number
52
+ string tel_url = 4;
53
+ // The aor_link of the Number
54
+ string aor_link = 5;
55
+ // The city of the Number
56
+ string city = 6;
57
+ // The country of the Number
58
+ string country = 7;
59
+ // The country_iso_code of the Number
60
+ string country_iso_code = 8;
61
+ // The header to use for session affinity
62
+ string session_affinity_header = 9;
63
+ // Extra headers to send to the trunk
64
+ repeated ExtraHeader extra_headers = 10;
65
+ // The date when the Number was created
66
+ int32 created_at = 11;
67
+ // The date when the Number was last updated
68
+ int32 updated_at = 12;
69
+ // The trunk this number is associated with
70
+ fonoster.routr.connect.trunks.v2draft1.Trunk trunk = 13;
71
+ // The extended attributes of the Number
72
+ .google.protobuf.Struct extended = 14;
73
+ }
74
+
75
+ // The message for the ExtraHeader field
76
+ message ExtraHeader {
77
+ string name = 1;
78
+ string value = 2;
79
+ }
80
+
81
+ // The request message for Numbers.Create
82
+ message CreateNumberRequest {
83
+ // The version of the Number
84
+ string api_version = 1;
85
+ // The name of the Number
86
+ string name = 2;
87
+ // The tel_url of the Number
88
+ string tel_url = 3;
89
+ // The aor_link of the Number
90
+ string aor_link = 4;
91
+ // The city of the Number
92
+ string city = 5;
93
+ // The country of the Number
94
+ string country = 6;
95
+ // The country_iso_code of the Number
96
+ string country_iso_code = 7;
97
+ // The header to use for session affinity
98
+ string session_affinity_header = 8;
99
+ // Extra headers to send to the trunk
100
+ repeated ExtraHeader extra_headers = 9;
101
+ // The date when the Number was created
102
+ int32 created_at = 10;
103
+ // The date when the Number was last updated
104
+ int32 updated_at = 11;
105
+ // The trunk this number is associated with
106
+ fonoster.routr.connect.trunks.v2draft1.Trunk trunk = 12;
107
+ // The extended attributes of the Number
108
+ .google.protobuf.Struct extended = 13;
109
+ }
110
+
111
+ // The request message for Numbers.Update
112
+ message UpdateNumberRequest {
113
+ // The version of the Number
114
+ string api_version = 1;
115
+ // The unique identifier of the Number
116
+ string ref = 2;
117
+ // The name of the Number
118
+ string name = 3;
119
+ // The tel_url of the Number
120
+ string tel_url = 4;
121
+ // The aor_link of the Number
122
+ string aor_link = 5;
123
+ // The city of the Number
124
+ string city = 6;
125
+ // The country of the Number
126
+ string country = 7;
127
+ // The country_iso_code of the Number
128
+ string country_iso_code = 8;
129
+ // The header to use for session affinity
130
+ string session_affinity_header = 9;
131
+ // Extra headers to send to the trunk
132
+ repeated ExtraHeader extra_headers = 10;
133
+ // The date when the Number was created
134
+ int32 created_at = 11;
135
+ // The date when the Number was last updated
136
+ int32 updated_at = 12;
137
+ // The trunk this number is associated with
138
+ fonoster.routr.connect.trunks.v2draft1.Trunk trunk = 13;
139
+ // The extended attributes of the Number
140
+ .google.protobuf.Struct extended = 14;
141
+ }
142
+
143
+ // The request message for Numbers.Get
144
+ message GetNumberRequest {
145
+ // The unique identifier of the Number
146
+ string ref = 1;
147
+ }
148
+
149
+ // The request message for Numbers.Delete
150
+ message DeleteNumberRequest {
151
+ // The unique identifier of the Number
152
+ string ref = 1;
153
+ }
154
+
155
+ // The request message for Numbers.FindBy
156
+ message FindByRequest {
157
+ // The field name to search
158
+ string field_name = 1;
159
+ // The value to search
160
+ string field_value = 2;
161
+ }
162
+
163
+ // The response message for the Numbers.FindBy method
164
+ message FindByResponse {
165
+ // The list of Numbers
166
+ repeated Number items = 1;
167
+ }
168
+
169
+ // The request message for Numbers.List
170
+ message ListNumberRequest {
171
+ // The maximum number of items in the list
172
+ int32 page_size = 1;
173
+
174
+ // The next_page_token value returned from the previous request, if any
175
+ string page_token = 2;
176
+ }
177
+
178
+ message ListNumbersResponse {
179
+ // List of Numbers
180
+ repeated Number items = 1;
181
+
182
+ // Token to retrieve the next page of results, or empty if there are no more results in the list
183
+ string next_page_token = 2;
184
+ }
@@ -0,0 +1,166 @@
1
+ /*
2
+ * Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
3
+ * http://github.com/fonoster/routr
4
+ *
5
+ * This file is part of Routr
6
+ *
7
+ * Licensed under the MIT License (the "License")
8
+ * you may not use this file except in compliance with
9
+ * the License. You may obtain a copy of the License at
10
+ *
11
+ * https://opensource.org/licenses/MIT
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+ syntax = "proto3";
20
+
21
+ package fonoster.routr.connect.peers.v2draft1;
22
+
23
+ import "google/protobuf/struct.proto";
24
+ import "google/protobuf/empty.proto";
25
+ import "acl.proto";
26
+ import "credentials.proto";
27
+
28
+ // The Peer service definition
29
+ service Peers {
30
+ // Creates a new Peer
31
+ rpc Create (CreatePeerRequest) returns (Peer) {}
32
+ // Updates an existing Peer
33
+ rpc Update (UpdatePeerRequest) returns (Peer) {}
34
+ // Gets an existing Peer
35
+ rpc Get (GetPeerRequest) returns (Peer) {}
36
+ // Deletes an existing Peer
37
+ rpc Delete (DeletePeerRequest) returns (.google.protobuf.Empty) {}
38
+ // Lists all Peers
39
+ rpc List (ListPeersRequest) returns (ListPeersResponse) {}
40
+ // Find Agents by field name and value
41
+ rpc FindBy (FindByRequest) returns (FindByResponse) {}
42
+ }
43
+
44
+ // The message for the Peer resource
45
+ message Peer {
46
+ // The API version of the Peer
47
+ string api_version = 1;
48
+ // The unique identifier of the Peer
49
+ string ref = 2;
50
+ // The name of the Peer
51
+ string name = 3;
52
+ // The username of the Peer
53
+ string username = 4;
54
+ // The address of record of the Peer
55
+ string aor = 5;
56
+ // The contact address of the Peer
57
+ string contact_addr = 6;
58
+ // The status of the Peer
59
+ bool enabled = 7;
60
+ // The date and time when the Peer was created
61
+ int32 created_at = 8;
62
+ // The date and time when the Peer was last updated
63
+ int32 updated_at = 9;
64
+ // The list of IP addresses that are allowed to access the Peer
65
+ fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 10;
66
+ // The credentials of the Peer
67
+ fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 11;
68
+ // The extended attributes of the Peer
69
+ .google.protobuf.Struct extended = 12;
70
+ }
71
+
72
+ // The request message for the Peers.Create method
73
+ message CreatePeerRequest {
74
+ // The API version of the Peer
75
+ string api_version = 1;
76
+ // The name of the Peer
77
+ string name = 2;
78
+ // The username of the Peer
79
+ string username = 3;
80
+ // The address of record of the Peer
81
+ string aor = 4;
82
+ // The contact address of the Peer
83
+ string contact_addr = 5;
84
+ // The status of the Peer
85
+ bool enabled = 6;
86
+ // The date and time when the Peer was created
87
+ int32 created_at = 7;
88
+ // The date and time when the Peer was last updated
89
+ int32 updated_at = 8;
90
+ //The list of IP addresses that are allowed to access the Peer
91
+ fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 9;
92
+ // The credentials of the Peer
93
+ fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 10;
94
+ // The extended attributes of the Peer
95
+ .google.protobuf.Struct extended = 11;
96
+ }
97
+
98
+ // The request message for the Peers.Update method
99
+ message UpdatePeerRequest {
100
+ // The API version of the Peer
101
+ string api_version = 1;
102
+ // The unique identifier of the Peer
103
+ string ref = 2;
104
+ // The name of the Peer
105
+ string name = 3;
106
+ // The username of the Peer
107
+ string username = 4;
108
+ // The address of record of the Peer
109
+ string aor = 5;
110
+ // The contact address of the Peer
111
+ string contact_addr = 6;
112
+ // The status of the Peer
113
+ bool enabled = 7;
114
+ // The date and time when the Peer was created
115
+ int32 created_at = 8;
116
+ // The date and time when the Peer was last updated
117
+ int32 updated_at = 9;
118
+ // The list of IP addresses that are allowed to access the Peer
119
+ fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 10;
120
+ // The credentials of the Peer
121
+ fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 11;
122
+ // The extended attributes of the Peer
123
+ .google.protobuf.Struct extended = 12;
124
+ }
125
+
126
+ // The request message for the Peers.Get method
127
+ message GetPeerRequest {
128
+ // The unique identifier of the Peer
129
+ string ref = 1;
130
+ }
131
+
132
+ // The request message for the Peers.Delete method
133
+ message DeletePeerRequest {
134
+ // The unique identifier of the Peer
135
+ string ref = 1;
136
+ }
137
+
138
+ // The request message for the Peers.FindBy method
139
+ message FindByRequest {
140
+ // The field name to search
141
+ string fieldName = 1;
142
+ // The value to search
143
+ string fieldValue = 2;
144
+ }
145
+
146
+ // The response message for the Peers.FindBy method
147
+ message FindByResponse {
148
+ // The list of Peers items
149
+ repeated Peer items = 1;
150
+ }
151
+
152
+ message ListPeersRequest {
153
+ // The maximum number of items in the list
154
+ int32 page_size = 1;
155
+
156
+ // The next_page_token value returned from the previous request, if any
157
+ string page_token = 2;
158
+ }
159
+
160
+ message ListPeersResponse {
161
+ // List of Peers items
162
+ repeated Peer items = 1;
163
+
164
+ // Token to retrieve the next page of results, or empty if there are no more results in the list
165
+ string next_page_token = 2;
166
+ }
@@ -0,0 +1,186 @@
1
+ /*
2
+ * Copyright (C) 2022 by Fonoster Inc (https://fonoster.com)
3
+ * http://github.com/fonoster/routr
4
+ *
5
+ * This file is part of Routr
6
+ *
7
+ * Licensed under the MIT License (the "License")
8
+ * you may not use this file except in compliance with
9
+ * the License. You may obtain a copy of the License at
10
+ *
11
+ * https://opensource.org/licenses/MIT
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+ syntax = "proto3";
20
+
21
+ package fonoster.routr.connect.trunks.v2draft1;
22
+
23
+ import "google/protobuf/struct.proto";
24
+ import "google/protobuf/empty.proto";
25
+ import "acl.proto";
26
+ import "credentials.proto";
27
+
28
+ // The Trunks service definition
29
+ service Trunks {
30
+ // Create a new Trunk
31
+ rpc Create (CreateTrunkRequest) returns (Trunk) {}
32
+ // Update an existing Trunk
33
+ rpc Update (UpdateTrunkRequest) returns (Trunk) {}
34
+ // Get a Trunk by reference
35
+ rpc Get (GetTrunkRequest) returns (Trunk) {}
36
+ // Delete a Trunk by reference
37
+ rpc Delete (DeleteTrunkRequest) returns (.google.protobuf.Empty) {}
38
+ // List all Trunks
39
+ rpc List (ListTrunkRequest) returns (ListTrunksResponse) {}
40
+ // Find Trunks by field name and value
41
+ rpc FindBy (FindByRequest) returns (FindByResponse) {}
42
+ }
43
+
44
+ // The message for the Trunk URIs
45
+ message TrunkUri {
46
+ // The host name or IP address of the Trunk
47
+ string host = 1;
48
+ // The port number of the Trunk
49
+ int32 port = 2;
50
+ // The transport protocol of the Trunk
51
+ string transport = 3;
52
+ // The username to use when authenticating with the Trunk
53
+ string user = 4;
54
+ // The weight of the Trunk
55
+ int32 weight = 5;
56
+ // The priority of the Trunk
57
+ int32 priority = 6;
58
+ // The flag to enable or disable the Trunk
59
+ bool enabled = 7;
60
+ }
61
+
62
+ // The message for the Trunk resource
63
+ message Trunk {
64
+ // The API version of the Trunk
65
+ string api_version = 2;
66
+ // The reference of the Trunk
67
+ string ref = 1;
68
+ // The name of the Trunk
69
+ string name = 3;
70
+ // A flag to indicate if we should send a REGISTER request to the Trunk
71
+ bool send_register = 4;
72
+ // The URI for inbound requests
73
+ string inbound_uri = 5;
74
+ // The date and time when the Trunk was created
75
+ int32 created_at = 6;
76
+ // The date and time when the Trunk was last updated
77
+ int32 updated_at = 7;
78
+ // The list of IP addresses that are allowed to access the Trunks
79
+ fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 8;
80
+ // The credentials to use when authenticating with the Trunk
81
+ fonoster.routr.connect.credentials.v2draft1.Credentials inbound_credentials = 9;
82
+ // The credentials to use when authenticating with the Provider
83
+ fonoster.routr.connect.credentials.v2draft1.Credentials outbound_credentials = 10;
84
+ // The list of URIs for the Trunk
85
+ repeated TrunkUri uris = 11;
86
+ // The extended attributes of the Trunk
87
+ .google.protobuf.Struct extended = 12;
88
+ }
89
+
90
+ // The message for the Trunk.Create
91
+ message CreateTrunkRequest {
92
+ // The API version of the Trunk
93
+ string api_version = 1;
94
+ // The name of the Trunk
95
+ string name = 2;
96
+ // A flag to indicate if we should send a REGISTER request to the Trunk
97
+ bool send_register = 3;
98
+ // The URI for inbound requests
99
+ string inbound_uri = 4;
100
+ // The date and time when the Trunk was created
101
+ int32 created_at = 5;
102
+ // The date and time when the Trunk was last updated
103
+ int32 updated_at = 6;
104
+ // The list of IP addresses that are allowed to access the Trunks
105
+ fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 7;
106
+ // The credentials to use when authenticating with the Trunk
107
+ fonoster.routr.connect.credentials.v2draft1.Credentials inbound_credentials = 8;
108
+ // The credentials to use when authenticating with the Provider
109
+ fonoster.routr.connect.credentials.v2draft1.Credentials outbound_credentials = 9;
110
+ // The list of URIs for the Trunk
111
+ repeated TrunkUri uris = 10;
112
+ // The extended attributes of the Trunk
113
+ .google.protobuf.Struct extended = 11;
114
+ }
115
+
116
+ // The message for the Trunk.Update
117
+ message UpdateTrunkRequest {
118
+ // The API version of the Trunk
119
+ string api_version = 1;
120
+ // The reference of the Trunk
121
+ string ref = 2;
122
+ // The name of the Trunk
123
+ string name = 3;
124
+ // A flag to indicate if we should send a REGISTER request to the Trunk
125
+ bool send_register = 4;
126
+ // The URI for inbound requests
127
+ string inbound_uri = 5;
128
+ // The date and time when the Trunk was created
129
+ int32 created_at = 6;
130
+ // The date and time when the Trunk was last updated
131
+ int32 updated_at = 7;
132
+ // // The list of IP addresses that are allowed to access the Trunks
133
+ fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 8;
134
+ // The credentials to use when authenticating with the Trunk
135
+ fonoster.routr.connect.credentials.v2draft1.Credentials inbound_credentials = 9;
136
+ // The credentials to use when authenticating with the Provider
137
+ fonoster.routr.connect.credentials.v2draft1.Credentials outbound_credentials = 10;
138
+ // The list of URIs for the Trunk
139
+ repeated TrunkUri uris = 11;
140
+ // The extended attributes of the Trunk
141
+ .google.protobuf.Struct extended = 12;
142
+ }
143
+
144
+ // The message for the Trunk.Get
145
+ message GetTrunkRequest {
146
+ // The reference of the Trunk
147
+ string ref = 1;
148
+ }
149
+
150
+ // The message for the Trunk.Delete
151
+ message DeleteTrunkRequest {
152
+ // The reference of the Trunk
153
+ string ref = 1;
154
+ }
155
+
156
+ // The message for the Trunk.FindBy
157
+ message FindByRequest {
158
+ // The field name to search
159
+ string field_name = 1;
160
+ // The value to search
161
+ string field_value = 2;
162
+ }
163
+
164
+ // The response message for the Trunks.FindBy method
165
+ message FindByResponse {
166
+ // The list of Trunks items
167
+ repeated Trunk items = 1;
168
+ }
169
+
170
+ // The message for the Trunk.List
171
+ message ListTrunkRequest {
172
+ // The maximum number of items in the list
173
+ int32 page_size = 1;
174
+
175
+ // The next_page_token value returned from the previous request, if any
176
+ string page_token = 2;
177
+ }
178
+
179
+ // The message for the Trunk.List response
180
+ message ListTrunksResponse {
181
+ // List of Trunks
182
+ repeated Trunk items = 1;
183
+
184
+ // Token to retrieve the next page of results, or empty if there are no more results in the list
185
+ string next_page_token = 2;
186
+ }
@@ -23,6 +23,7 @@ declare const _default: {
23
23
  type: string;
24
24
  };
25
25
  };
26
+ required: string[];
26
27
  };
27
28
  spec: {
28
29
  description: string;
@@ -28,7 +28,7 @@ exports.default = {
28
28
  enum: ["v2draft1", "v2.0", "v2"]
29
29
  },
30
30
  kind: {
31
- enum: ["AccessControlList", "accesscontrolList"]
31
+ enum: ["AccessControlList", "accesscontrollist"]
32
32
  },
33
33
  ref: {
34
34
  description: "Unique identifier for this resource",
@@ -42,7 +42,8 @@ exports.default = {
42
42
  description: "Resource's friendly name",
43
43
  type: "string"
44
44
  }
45
- }
45
+ },
46
+ required: ["name"]
46
47
  },
47
48
  spec: {
48
49
  description: "Operations spec for ACL",
@@ -23,6 +23,7 @@ declare const _default: {
23
23
  type: string;
24
24
  };
25
25
  };
26
+ required: string[];
26
27
  };
27
28
  spec: {
28
29
  description: string;
@@ -42,7 +42,8 @@ exports.default = {
42
42
  description: "Resource's friendly name",
43
43
  type: "string"
44
44
  }
45
- }
45
+ },
46
+ required: ["name"]
46
47
  },
47
48
  spec: {
48
49
  description: "Operations spec for an Agent",
@@ -64,15 +65,15 @@ exports.default = {
64
65
  type: "string"
65
66
  },
66
67
  enabled: {
67
- description: "Whether the Agent is enabled",
68
+ description: "Whether the Agent is enabled (reserved for future use)",
68
69
  type: "boolean"
69
70
  },
70
71
  privacy: {
71
72
  enum: ["Private", "None", "private", "none"]
72
73
  }
73
74
  },
74
- required: ["username", "domainRef", "credentialsRef"]
75
+ required: ["username"]
75
76
  }
76
77
  },
77
- required: ["apiVersion", "kind", "ref", "metadata", "spec"]
78
+ required: ["apiVersion", "kind", "metadata", "spec"]
78
79
  };
@@ -23,6 +23,7 @@ declare const _default: {
23
23
  type: string;
24
24
  };
25
25
  };
26
+ required: string[];
26
27
  };
27
28
  spec: {
28
29
  description: string;
@@ -42,7 +42,8 @@ exports.default = {
42
42
  description: "Resource's friendly name",
43
43
  type: "string"
44
44
  }
45
- }
45
+ },
46
+ required: ["name"]
46
47
  },
47
48
  spec: {
48
49
  description: "Operations spec for Credentials",
@@ -23,6 +23,7 @@ declare const _default: {
23
23
  type: string;
24
24
  };
25
25
  };
26
+ required: string[];
26
27
  };
27
28
  spec: {
28
29
  description: string;
@@ -42,7 +43,7 @@ declare const _default: {
42
43
  description: string;
43
44
  type: string;
44
45
  };
45
- egressPolicy: {
46
+ egressPolicies: {
46
47
  description: string;
47
48
  type: string;
48
49
  items: {
@@ -42,7 +42,8 @@ exports.default = {
42
42
  description: "Resource's friendly name",
43
43
  type: "string"
44
44
  }
45
- }
45
+ },
46
+ required: ["name"]
46
47
  },
47
48
  spec: {
48
49
  description: "Operations spec for an Domain",
@@ -62,7 +63,7 @@ exports.default = {
62
63
  description: "The reference to the AccessControlList",
63
64
  type: "string"
64
65
  },
65
- egressPolicy: {
66
+ egressPolicies: {
66
67
  description: "The egress policy for the Domain",
67
68
  type: "array",
68
69
  items: {
@@ -23,6 +23,7 @@ declare const _default: {
23
23
  type: string;
24
24
  };
25
25
  };
26
+ required: string[];
26
27
  };
27
28
  spec: {
28
29
  description: string;
@@ -42,7 +42,8 @@ exports.default = {
42
42
  description: "Resource's friendly name",
43
43
  type: "string"
44
44
  }
45
- }
45
+ },
46
+ required: ["name"]
46
47
  },
47
48
  spec: {
48
49
  description: "Operations spec for Numbers",
@@ -86,10 +87,10 @@ exports.default = {
86
87
  }
87
88
  }
88
89
  },
89
- required: ["telUrl", "aorLink"]
90
+ required: ["telUrl"]
90
91
  }
91
92
  },
92
- required: ["trunkRef", "location"]
93
+ required: ["location"]
93
94
  }
94
95
  },
95
96
  required: ["apiVersion", "kind", "ref", "metadata", "spec"]