@routr/common 2.0.8-alpha.2 → 2.0.8-alpha.20

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 (79) hide show
  1. package/dist/auth.d.ts +43 -4
  2. package/dist/auth.js +63 -1
  3. package/dist/connect/api/client.d.ts +3 -0
  4. package/dist/connect/api/client.js +158 -0
  5. package/dist/connect/api/index.d.ts +2 -0
  6. package/dist/connect/api/index.js +36 -0
  7. package/dist/connect/api/types.d.ts +51 -0
  8. package/dist/connect/api/types.js +2 -0
  9. package/dist/connect/client.d.ts +8 -0
  10. package/dist/connect/{grpc_client.js → client.js} +44 -6
  11. package/dist/connect/config.d.ts +113 -0
  12. package/dist/connect/config.js +2 -0
  13. package/dist/connect/connect_error.d.ts +21 -0
  14. package/dist/connect/connect_error.js +44 -0
  15. package/dist/connect/index.d.ts +4 -2
  16. package/dist/connect/index.js +4 -2
  17. package/dist/connect/mappers/acl.d.ts +3 -0
  18. package/dist/connect/mappers/acl.js +19 -0
  19. package/dist/connect/mappers/agent.d.ts +3 -0
  20. package/dist/connect/mappers/agent.js +42 -0
  21. package/dist/connect/mappers/assertions.d.ts +3 -0
  22. package/dist/connect/mappers/assertions.js +43 -0
  23. package/dist/connect/mappers/credentials.d.ts +3 -0
  24. package/dist/connect/mappers/credentials.js +18 -0
  25. package/dist/connect/mappers/domain.d.ts +3 -0
  26. package/dist/connect/mappers/domain.js +19 -0
  27. package/dist/connect/mappers/index.d.ts +7 -0
  28. package/dist/connect/mappers/index.js +41 -0
  29. package/dist/connect/mappers/number.d.ts +3 -0
  30. package/dist/connect/mappers/number.js +26 -0
  31. package/dist/connect/mappers/peer.d.ts +3 -0
  32. package/dist/connect/mappers/peer.js +25 -0
  33. package/dist/connect/mappers/trunk.d.ts +3 -0
  34. package/dist/connect/mappers/trunk.js +34 -0
  35. package/dist/connect/protos/acl.proto +112 -0
  36. package/dist/connect/protos/agents.proto +155 -0
  37. package/dist/connect/protos/credentials.proto +114 -0
  38. package/dist/connect/protos/domains.proto +148 -0
  39. package/dist/connect/protos/numbers.proto +174 -0
  40. package/dist/connect/protos/peers.proto +173 -0
  41. package/dist/connect/protos/trunks.proto +178 -0
  42. package/dist/connect/schemas/acl.d.ts +63 -0
  43. package/dist/connect/schemas/acl.js +82 -0
  44. package/dist/connect/schemas/agent.d.ts +62 -0
  45. package/dist/connect/schemas/agent.js +81 -0
  46. package/dist/connect/schemas/crendentials.d.ts +59 -0
  47. package/dist/connect/schemas/crendentials.js +78 -0
  48. package/dist/connect/schemas/domain.d.ts +75 -0
  49. package/dist/connect/schemas/domain.js +94 -0
  50. package/dist/connect/schemas/index.d.ts +1 -0
  51. package/dist/connect/schemas/index.js +35 -0
  52. package/dist/connect/schemas/number.d.ts +82 -0
  53. package/dist/connect/schemas/number.js +101 -0
  54. package/dist/connect/schemas/peer.d.ts +84 -0
  55. package/dist/connect/schemas/peer.js +103 -0
  56. package/dist/connect/schemas/trunk.d.ts +119 -0
  57. package/dist/connect/schemas/trunk.js +151 -0
  58. package/dist/connect/schemas/validators.d.ts +2 -0
  59. package/dist/connect/schemas/validators.js +43 -0
  60. package/dist/connect/types.d.ts +89 -23
  61. package/dist/connect/types.js +17 -37
  62. package/dist/errors.d.ts +35 -1
  63. package/dist/errors.js +51 -5
  64. package/dist/helper.d.ts +17 -4
  65. package/dist/helper.js +81 -7
  66. package/dist/index.d.ts +5 -4
  67. package/dist/index.js +5 -7
  68. package/dist/protos/common.proto +0 -2
  69. package/dist/protos/location.proto +22 -7
  70. package/dist/protos/sipmessage.proto +2 -0
  71. package/dist/service.d.ts +2 -2
  72. package/dist/service.js +1 -1
  73. package/dist/types.d.ts +52 -30
  74. package/dist/types.js +18 -11
  75. package/package.json +11 -5
  76. package/dist/connect/data_api.d.ts +0 -11
  77. package/dist/connect/data_api.js +0 -91
  78. package/dist/connect/grpc_client.d.ts +0 -1
  79. package/dist/protos/resources.proto +0 -108
@@ -0,0 +1,114 @@
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.credentials.v2draft1;
22
+
23
+ import "google/protobuf/struct.proto";
24
+ import "google/protobuf/empty.proto";
25
+
26
+ // The Credentials service definition
27
+ service CredentialsService {
28
+ // Creates a new set of Credentials
29
+ rpc Create (CreateCredentialsRequest) returns (Credentials) {}
30
+ // Updates an existing set of C redentials
31
+ rpc Update (UpdateCredentialsRequest) returns (Credentials) {}
32
+ // Gets the details of a given set of Credentials
33
+ rpc Get (GetCredentialsRequest) returns (Credentials) {}
34
+ // Deletes an existing set of Credentials
35
+ rpc Delete (DeleteCredentialsRequest) returns (.google.protobuf.Empty) {}
36
+ // Lists all Credentials
37
+ rpc List (ListCredentialsRequest) returns (ListCredentialsResponse) {}
38
+ }
39
+
40
+ // The message for the Credentials resource
41
+ message Credentials {
42
+ // The API version of the Credentials
43
+ string api_version = 1;
44
+ // The reference of the Credentials
45
+ string ref = 2;
46
+ // The name of the Credentials
47
+ string name = 3;
48
+ // The username of the Credentials
49
+ string username = 4;
50
+ // The password of the Credentials
51
+ string password = 5;
52
+ // The time the Credentials was created
53
+ int32 created_at = 6;
54
+ // The time the Credentials was updated
55
+ int32 updated_at = 7;
56
+ // The extended attributes for a set of Credentials
57
+ .google.protobuf.Struct extended = 8;
58
+ }
59
+
60
+ // The request message for the CreateCredentials.Create method
61
+ message CreateCredentialsRequest {
62
+ // The name of the Credentials
63
+ string name = 1;
64
+ // The username of the Credentials
65
+ string username = 2;
66
+ // The password of the Credentials
67
+ string password = 3;
68
+ // The extended attributes for a set of Credentials
69
+ .google.protobuf.Struct extended = 4;
70
+ }
71
+
72
+ // The request message for the UpdateCredentials.Update method
73
+ message UpdateCredentialsRequest {
74
+ // The reference of the Credentials to update
75
+ string ref = 1;
76
+ // The new name of the Credentials
77
+ string name = 2;
78
+ // The new username of the Credentials
79
+ string username = 3;
80
+ // The new password of the Credentials
81
+ string password = 4;
82
+ // The extended attributes for a set of Credentials
83
+ .google.protobuf.Struct extended = 5;
84
+ }
85
+
86
+ // The request message for the GetCredentials.Get method
87
+ message GetCredentialsRequest {
88
+ // The reference of the Credentials to retrieve
89
+ string ref = 1;
90
+ }
91
+
92
+ // The request message for the DeleteCredentials.Delete method
93
+ message DeleteCredentialsRequest {
94
+ // The reference of the Credentials to delete
95
+ string ref = 1;
96
+ }
97
+
98
+ // The request message for the ListCredentials.List method
99
+ message ListCredentialsRequest {
100
+ // The maximum number of items in the list
101
+ int32 page_size = 1;
102
+
103
+ // The next_page_token value returned from the previous request, if any
104
+ string page_token = 2;
105
+ }
106
+
107
+ // The response message for the ListCredentials.List method
108
+ message ListCredentialsResponse {
109
+ // List of Credentials
110
+ repeated Credentials items = 1;
111
+
112
+ // Token to retrieve the next page of results, or empty if there are no more results in the list
113
+ string next_page_token = 2;
114
+ }
@@ -0,0 +1,148 @@
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.domains.v2draft1;
22
+
23
+ import "google/protobuf/struct.proto";
24
+ import "google/protobuf/empty.proto";
25
+ import "acl.proto";
26
+ import "numbers.proto";
27
+
28
+ // The Domains service definition
29
+ service Domains {
30
+ // Create a new Domain
31
+ rpc Create (CreateDomainRequest) returns (Domain) {}
32
+ // Update an existing Domain
33
+ rpc Update (UpdateDomainRequest) returns (Domain) {}
34
+ // Get an existing Domain
35
+ rpc Get (GetDomainRequest) returns (Domain) {}
36
+ // Delete an existing Domain
37
+ rpc Delete (DeleteDomainRequest) returns (.google.protobuf.Empty) {}
38
+ // List all Domains
39
+ rpc List (ListDomainRequest) returns (ListDomainsResponse) {}
40
+ // Find a Domain by field name and value
41
+ rpc FindBy (FindByRequest) returns (FindByResponse) {}
42
+ }
43
+
44
+ // EgressPolicy defines the policy for egress traffic
45
+ message EgressPolicy {
46
+ // The pattern to match
47
+ string rule = 1;
48
+ // Reference to the number to use for egress
49
+ string number_ref = 2;
50
+ // The egress Number
51
+ fonoster.routr.connect.numbers.v2draft1.Number number = 3;
52
+ }
53
+
54
+ // The message for the Domain resource
55
+ message Domain {
56
+ // The API version of the Domain
57
+ string api_version = 1;
58
+ // The unique identifier of the Domain
59
+ string ref = 2;
60
+ // The name of the Domain
61
+ string name = 3;
62
+ // The URI of the Domain
63
+ string domain_uri = 4;
64
+ // The date of creation of the Domain
65
+ int32 created_at = 5;
66
+ // The date of the last update
67
+ int32 updated_at = 6;
68
+ // The list of IP addresses that are allowed to access the Domain
69
+ fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 7;
70
+ // The egress_policy of the Domain
71
+ repeated EgressPolicy egress_policies = 8;
72
+ // The extended attributes of the Domain
73
+ .google.protobuf.Struct extended = 9;
74
+ }
75
+
76
+ // The request message for Domains.Create
77
+ message CreateDomainRequest {
78
+ // The name of the Domain
79
+ string name = 1;
80
+ // The domain_uri of the Domain
81
+ string domain_uri = 2;
82
+ // Reference to the ACL to use for this Domain
83
+ string access_control_list_ref = 3;
84
+ // The egress_policy of the Domain
85
+ repeated EgressPolicy egress_policies = 4;
86
+ // The extended attributes of the Domain
87
+ .google.protobuf.Struct extended = 5;
88
+ }
89
+
90
+ // The request message for Domains.Update
91
+ message UpdateDomainRequest {
92
+ // The unique identifier of the Domain
93
+ string ref = 1;
94
+ // The name of the Domain
95
+ string name = 2;
96
+ // The domain_uri of the Domain
97
+ string domain_uri = 3;
98
+ // Reference to the ACL to use for this Domain
99
+ string access_control_list_ref = 4;
100
+ // The egress_policy of the Domain
101
+ repeated EgressPolicy egress_policies = 5;
102
+ // The extended attributes of the Domain
103
+ .google.protobuf.Struct extended = 6;
104
+ }
105
+
106
+ // The request message for Domains.Get
107
+ message GetDomainRequest {
108
+ // The unique identifier of the Domain
109
+ string ref = 1;
110
+ }
111
+
112
+ // The request message for Domains.Delete
113
+ message DeleteDomainRequest {
114
+ // The unique identifier of the Domain
115
+ string ref = 1;
116
+ }
117
+
118
+ // The request message for Domains.FindBy
119
+ message FindByRequest {
120
+ // The field name to search
121
+ string field_name = 1;
122
+ // The value to search
123
+ string field_value = 2;
124
+ }
125
+
126
+ // The response message for the Domains.FindBy method
127
+ message FindByResponse {
128
+ // The list of Domains
129
+ repeated Domain items = 1;
130
+ }
131
+
132
+ // The request message for Domains.List
133
+ message ListDomainRequest {
134
+ // The maximum number of items in the list
135
+ int32 page_size = 1;
136
+
137
+ // The next_page_token value returned from the previous request, if any
138
+ string page_token = 2;
139
+ }
140
+
141
+ // The response message for Domains.List
142
+ message ListDomainsResponse {
143
+ // List of Domains
144
+ repeated Domain items = 1;
145
+
146
+ // Token to retrieve the next page of results, or empty if there are no more results in the list
147
+ string next_page_token = 2;
148
+ }
@@ -0,0 +1,174 @@
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
+ // Reference to the trunk this number is associated with
102
+ string trunk_ref = 10;
103
+ // The extended attributes of the Number
104
+ .google.protobuf.Struct extended = 11;
105
+ }
106
+
107
+ // The request message for Numbers.Update
108
+ message UpdateNumberRequest {
109
+ // The unique identifier of the Number
110
+ string ref = 1;
111
+ // The name of the Number
112
+ string name = 2;
113
+ // The tel_url of the Number
114
+ string tel_url = 3;
115
+ // The aor_link of the Number
116
+ string aor_link = 4;
117
+ // The city of the Number
118
+ string city = 5;
119
+ // The country of the Number
120
+ string country = 6;
121
+ // The country_iso_code of the Number
122
+ string country_iso_code = 7;
123
+ // The header to use for session affinity
124
+ string session_affinity_header = 8;
125
+ // Extra headers to send to the trunk
126
+ repeated ExtraHeader extra_headers = 9;
127
+ // Reference to the trunk this number is associated with
128
+ string trunk_ref = 10;
129
+ // The extended attributes of the Number
130
+ .google.protobuf.Struct extended = 11;
131
+ }
132
+
133
+ // The request message for Numbers.Get
134
+ message GetNumberRequest {
135
+ // The unique identifier of the Number
136
+ string ref = 1;
137
+ }
138
+
139
+ // The request message for Numbers.Delete
140
+ message DeleteNumberRequest {
141
+ // The unique identifier of the Number
142
+ string ref = 1;
143
+ }
144
+
145
+ // The request message for Numbers.FindBy
146
+ message FindByRequest {
147
+ // The field name to search
148
+ string field_name = 1;
149
+ // The value to search
150
+ string field_value = 2;
151
+ }
152
+
153
+ // The response message for the Numbers.FindBy method
154
+ message FindByResponse {
155
+ // The list of Numbers
156
+ repeated Number items = 1;
157
+ }
158
+
159
+ // The request message for Numbers.List
160
+ message ListNumberRequest {
161
+ // The maximum number of items in the list
162
+ int32 page_size = 1;
163
+
164
+ // The next_page_token value returned from the previous request, if any
165
+ string page_token = 2;
166
+ }
167
+
168
+ message ListNumbersResponse {
169
+ // List of Numbers
170
+ repeated Number items = 1;
171
+
172
+ // Token to retrieve the next page of results, or empty if there are no more results in the list
173
+ string next_page_token = 2;
174
+ }
@@ -0,0 +1,173 @@
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
+ enum LoadBalancingAlgorithm {
45
+ // The round robin load balancing algorithm
46
+ ROUND_ROBIN = 0;
47
+ // The least sessions load balancing algorithm
48
+ LEAST_SESSIONS = 1;
49
+ }
50
+
51
+ // The message for the Peer resource
52
+ message Peer {
53
+ // The API version of the Peer
54
+ string api_version = 1;
55
+ // The unique identifier of the Peer
56
+ string ref = 2;
57
+ // The name of the Peer
58
+ string name = 3;
59
+ // The username of the Peer
60
+ string username = 4;
61
+ // The address of record of the Peer
62
+ string aor = 5;
63
+ // The contact address of the Peer
64
+ string contact_addr = 6;
65
+ // The load balancing algorithm of the Peer
66
+ LoadBalancingAlgorithm load_balancing_algorithm = 7;
67
+ // The session affinity of the Peer
68
+ bool with_session_affinity = 8;
69
+ // The status of the Peer
70
+ bool enabled = 9;
71
+ // The date and time when the Peer was created
72
+ int32 created_at = 10;
73
+ // The date and time when the Peer was last updated
74
+ int32 updated_at = 11;
75
+ // The list of IP addresses that are allowed to access the Peer
76
+ fonoster.routr.connect.acl.v2draft1.AccessControlList access_control_list = 12;
77
+ // The credentials of the Peer
78
+ fonoster.routr.connect.credentials.v2draft1.Credentials credentials = 13;
79
+ // The extended attributes of the Peer
80
+ .google.protobuf.Struct extended = 14;
81
+ }
82
+
83
+ // The request message for the Peers.Create method
84
+ message CreatePeerRequest {
85
+ // The name of the Peer
86
+ string name = 1;
87
+ // The username of the Peer
88
+ string username = 2;
89
+ // The address of record of the Peer
90
+ string aor = 3;
91
+ // The contact address of the Peer
92
+ string contact_addr = 4;
93
+ // The load balancing algorithm of the Peer
94
+ LoadBalancingAlgorithm load_balancing_algorithm = 5;
95
+ // The session affinity of the Peer
96
+ bool with_session_affinity = 6;
97
+ // Reference to the ACL of the Peer
98
+ string access_control_list_ref = 7;
99
+ // Reference to the Credentials of the Peer
100
+ string credentials_ref = 8;
101
+ // The status of the Peer
102
+ bool enabled = 9;
103
+ // The extended attributes of the Peer
104
+ .google.protobuf.Struct extended = 10;
105
+ }
106
+
107
+ // The request message for the Peers.Update method
108
+ message UpdatePeerRequest {
109
+ // The unique identifier of the Peer
110
+ string ref = 1;
111
+ // The name of the Peer
112
+ string name = 2;
113
+ // The username of the Peer
114
+ string username = 3;
115
+ // The address of record of the Peer
116
+ string aor = 4;
117
+ // The contact address of the Peer
118
+ string contact_addr = 5;
119
+ // The load balancing algorithm of the Peer
120
+ LoadBalancingAlgorithm load_balancing_algorithm = 6;
121
+ // The session affinity of the Peer
122
+ bool with_session_affinity = 7;
123
+ // Reference to the ACL of the Peer
124
+ string access_control_list_ref = 8;
125
+ // Reference to the Credentials of the Peer
126
+ string credentials_ref = 9;
127
+ // The status of the Peer
128
+ bool enabled = 10;
129
+ // The extended attributes of the Peer
130
+ .google.protobuf.Struct extended = 11;
131
+ }
132
+
133
+ // The request message for the Peers.Get method
134
+ message GetPeerRequest {
135
+ // The unique identifier of the Peer
136
+ string ref = 1;
137
+ }
138
+
139
+ // The request message for the Peers.Delete method
140
+ message DeletePeerRequest {
141
+ // The unique identifier of the Peer
142
+ string ref = 1;
143
+ }
144
+
145
+ // The request message for the Peers.FindBy method
146
+ message FindByRequest {
147
+ // The field name to search
148
+ string fieldName = 1;
149
+ // The value to search
150
+ string fieldValue = 2;
151
+ }
152
+
153
+ // The response message for the Peers.FindBy method
154
+ message FindByResponse {
155
+ // The list of Peers items
156
+ repeated Peer items = 1;
157
+ }
158
+
159
+ message ListPeersRequest {
160
+ // The maximum number of items in the list
161
+ int32 page_size = 1;
162
+
163
+ // The next_page_token value returned from the previous request, if any
164
+ string page_token = 2;
165
+ }
166
+
167
+ message ListPeersResponse {
168
+ // List of Peers items
169
+ repeated Peer items = 1;
170
+
171
+ // Token to retrieve the next page of results, or empty if there are no more results in the list
172
+ string next_page_token = 2;
173
+ }