@fonoster/sdk 0.7.4 → 0.7.7
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 +20 -13
- package/dist/node/Calls.d.ts +2 -2
- package/dist/node/Calls.js +2 -2
- package/dist/node/Workspaces.js +0 -6
- package/dist/node/client/makeRpcRequest.js +0 -1
- package/dist/node/client/types/common.d.ts +1 -1
- package/dist/node/client/types/index.d.ts +3 -3
- package/dist/node/client/types/index.js +5 -5
- package/dist/node/client/utils.d.ts +1 -1
- package/dist/node/client/utils.js +2 -2
- package/dist/node/generated/node/applications_pb.js +1 -1
- package/dist/node/generated/web/applications_pb.d.ts +1 -1
- package/dist/node/generated/web/applications_pb.js +1 -1
- package/dist/node/node.d.ts +8 -8
- package/dist/node/node.js +12 -12
- package/dist/node/tsconfig.node.tsbuildinfo +1 -1
- package/dist/node/utils.js +0 -1
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +4 -4
- package/dist/node/generated/node/acls.ts +0 -1054
- package/dist/node/generated/node/agents.ts +0 -1388
- package/dist/node/generated/node/applications.ts +0 -1411
- package/dist/node/generated/node/calls.ts +0 -1123
- package/dist/node/generated/node/credentials.ts +0 -1054
- package/dist/node/generated/node/domains.ts +0 -1144
- package/dist/node/generated/node/google/protobuf/empty.ts +0 -48
- package/dist/node/generated/node/google/protobuf/struct.ts +0 -408
- package/dist/node/generated/node/identity.ts +0 -4267
- package/dist/node/generated/node/numbers.ts +0 -1371
- package/dist/node/generated/node/secrets.ts +0 -985
- package/dist/node/generated/node/trunks.ts +0 -1546
- package/dist/node/generated/web/acls.ts +0 -1054
- package/dist/node/generated/web/agents.ts +0 -1388
- package/dist/node/generated/web/applications.ts +0 -1411
- package/dist/node/generated/web/calls.ts +0 -1123
- package/dist/node/generated/web/credentials.ts +0 -1054
- package/dist/node/generated/web/domains.ts +0 -1144
- package/dist/node/generated/web/google/protobuf/empty.ts +0 -48
- package/dist/node/generated/web/google/protobuf/struct.ts +0 -408
- package/dist/node/generated/web/identity.ts +0 -4267
- package/dist/node/generated/web/numbers.ts +0 -1371
- package/dist/node/generated/web/secrets.ts +0 -985
- package/dist/node/generated/web/trunks.ts +0 -1546
|
@@ -1,1371 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
3
|
-
* compiler version: 3.20.3
|
|
4
|
-
* source: numbers.proto
|
|
5
|
-
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
|
-
import * as dependency_1 from "./trunks";
|
|
7
|
-
import * as pb_1 from "google-protobuf";
|
|
8
|
-
import * as grpc_1 from "@grpc/grpc-js";
|
|
9
|
-
export namespace fonoster.numbers.v1beta2 {
|
|
10
|
-
export class Number extends pb_1.Message {
|
|
11
|
-
#one_of_decls: number[][] = [[10, 11]];
|
|
12
|
-
constructor(data?: any[] | ({
|
|
13
|
-
ref?: string;
|
|
14
|
-
name?: string;
|
|
15
|
-
tel_url?: string;
|
|
16
|
-
city?: string;
|
|
17
|
-
country?: string;
|
|
18
|
-
country_iso_code?: string;
|
|
19
|
-
created_at?: number;
|
|
20
|
-
updated_at?: number;
|
|
21
|
-
trunk?: dependency_1.fonoster.trunks.v1beta2.Trunk;
|
|
22
|
-
} & (({
|
|
23
|
-
agent_aor?: string;
|
|
24
|
-
app_ref?: never;
|
|
25
|
-
} | {
|
|
26
|
-
agent_aor?: never;
|
|
27
|
-
app_ref?: string;
|
|
28
|
-
})))) {
|
|
29
|
-
super();
|
|
30
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
31
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
32
|
-
if ("ref" in data && data.ref != undefined) {
|
|
33
|
-
this.ref = data.ref;
|
|
34
|
-
}
|
|
35
|
-
if ("name" in data && data.name != undefined) {
|
|
36
|
-
this.name = data.name;
|
|
37
|
-
}
|
|
38
|
-
if ("tel_url" in data && data.tel_url != undefined) {
|
|
39
|
-
this.tel_url = data.tel_url;
|
|
40
|
-
}
|
|
41
|
-
if ("city" in data && data.city != undefined) {
|
|
42
|
-
this.city = data.city;
|
|
43
|
-
}
|
|
44
|
-
if ("country" in data && data.country != undefined) {
|
|
45
|
-
this.country = data.country;
|
|
46
|
-
}
|
|
47
|
-
if ("country_iso_code" in data && data.country_iso_code != undefined) {
|
|
48
|
-
this.country_iso_code = data.country_iso_code;
|
|
49
|
-
}
|
|
50
|
-
if ("created_at" in data && data.created_at != undefined) {
|
|
51
|
-
this.created_at = data.created_at;
|
|
52
|
-
}
|
|
53
|
-
if ("updated_at" in data && data.updated_at != undefined) {
|
|
54
|
-
this.updated_at = data.updated_at;
|
|
55
|
-
}
|
|
56
|
-
if ("trunk" in data && data.trunk != undefined) {
|
|
57
|
-
this.trunk = data.trunk;
|
|
58
|
-
}
|
|
59
|
-
if ("agent_aor" in data && data.agent_aor != undefined) {
|
|
60
|
-
this.agent_aor = data.agent_aor;
|
|
61
|
-
}
|
|
62
|
-
if ("app_ref" in data && data.app_ref != undefined) {
|
|
63
|
-
this.app_ref = data.app_ref;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
get ref() {
|
|
68
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
69
|
-
}
|
|
70
|
-
set ref(value: string) {
|
|
71
|
-
pb_1.Message.setField(this, 1, value);
|
|
72
|
-
}
|
|
73
|
-
get name() {
|
|
74
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
75
|
-
}
|
|
76
|
-
set name(value: string) {
|
|
77
|
-
pb_1.Message.setField(this, 2, value);
|
|
78
|
-
}
|
|
79
|
-
get tel_url() {
|
|
80
|
-
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
81
|
-
}
|
|
82
|
-
set tel_url(value: string) {
|
|
83
|
-
pb_1.Message.setField(this, 3, value);
|
|
84
|
-
}
|
|
85
|
-
get city() {
|
|
86
|
-
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
87
|
-
}
|
|
88
|
-
set city(value: string) {
|
|
89
|
-
pb_1.Message.setField(this, 4, value);
|
|
90
|
-
}
|
|
91
|
-
get country() {
|
|
92
|
-
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
93
|
-
}
|
|
94
|
-
set country(value: string) {
|
|
95
|
-
pb_1.Message.setField(this, 5, value);
|
|
96
|
-
}
|
|
97
|
-
get country_iso_code() {
|
|
98
|
-
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
99
|
-
}
|
|
100
|
-
set country_iso_code(value: string) {
|
|
101
|
-
pb_1.Message.setField(this, 6, value);
|
|
102
|
-
}
|
|
103
|
-
get created_at() {
|
|
104
|
-
return pb_1.Message.getFieldWithDefault(this, 7, 0) as number;
|
|
105
|
-
}
|
|
106
|
-
set created_at(value: number) {
|
|
107
|
-
pb_1.Message.setField(this, 7, value);
|
|
108
|
-
}
|
|
109
|
-
get updated_at() {
|
|
110
|
-
return pb_1.Message.getFieldWithDefault(this, 8, 0) as number;
|
|
111
|
-
}
|
|
112
|
-
set updated_at(value: number) {
|
|
113
|
-
pb_1.Message.setField(this, 8, value);
|
|
114
|
-
}
|
|
115
|
-
get trunk() {
|
|
116
|
-
return pb_1.Message.getWrapperField(this, dependency_1.fonoster.trunks.v1beta2.Trunk, 9) as dependency_1.fonoster.trunks.v1beta2.Trunk;
|
|
117
|
-
}
|
|
118
|
-
set trunk(value: dependency_1.fonoster.trunks.v1beta2.Trunk) {
|
|
119
|
-
pb_1.Message.setWrapperField(this, 9, value);
|
|
120
|
-
}
|
|
121
|
-
get has_trunk() {
|
|
122
|
-
return pb_1.Message.getField(this, 9) != null;
|
|
123
|
-
}
|
|
124
|
-
get agent_aor() {
|
|
125
|
-
return pb_1.Message.getFieldWithDefault(this, 10, "") as string;
|
|
126
|
-
}
|
|
127
|
-
set agent_aor(value: string) {
|
|
128
|
-
pb_1.Message.setOneofField(this, 10, this.#one_of_decls[0], value);
|
|
129
|
-
}
|
|
130
|
-
get has_agent_aor() {
|
|
131
|
-
return pb_1.Message.getField(this, 10) != null;
|
|
132
|
-
}
|
|
133
|
-
get app_ref() {
|
|
134
|
-
return pb_1.Message.getFieldWithDefault(this, 11, "") as string;
|
|
135
|
-
}
|
|
136
|
-
set app_ref(value: string) {
|
|
137
|
-
pb_1.Message.setOneofField(this, 11, this.#one_of_decls[0], value);
|
|
138
|
-
}
|
|
139
|
-
get has_app_ref() {
|
|
140
|
-
return pb_1.Message.getField(this, 11) != null;
|
|
141
|
-
}
|
|
142
|
-
get ingress_handler() {
|
|
143
|
-
const cases: {
|
|
144
|
-
[index: number]: "none" | "agent_aor" | "app_ref";
|
|
145
|
-
} = {
|
|
146
|
-
0: "none",
|
|
147
|
-
10: "agent_aor",
|
|
148
|
-
11: "app_ref"
|
|
149
|
-
};
|
|
150
|
-
return cases[pb_1.Message.computeOneofCase(this, [10, 11])];
|
|
151
|
-
}
|
|
152
|
-
static fromObject(data: {
|
|
153
|
-
ref?: string;
|
|
154
|
-
name?: string;
|
|
155
|
-
tel_url?: string;
|
|
156
|
-
city?: string;
|
|
157
|
-
country?: string;
|
|
158
|
-
country_iso_code?: string;
|
|
159
|
-
created_at?: number;
|
|
160
|
-
updated_at?: number;
|
|
161
|
-
trunk?: ReturnType<typeof dependency_1.fonoster.trunks.v1beta2.Trunk.prototype.toObject>;
|
|
162
|
-
agent_aor?: string;
|
|
163
|
-
app_ref?: string;
|
|
164
|
-
}): Number {
|
|
165
|
-
const message = new Number({});
|
|
166
|
-
if (data.ref != null) {
|
|
167
|
-
message.ref = data.ref;
|
|
168
|
-
}
|
|
169
|
-
if (data.name != null) {
|
|
170
|
-
message.name = data.name;
|
|
171
|
-
}
|
|
172
|
-
if (data.tel_url != null) {
|
|
173
|
-
message.tel_url = data.tel_url;
|
|
174
|
-
}
|
|
175
|
-
if (data.city != null) {
|
|
176
|
-
message.city = data.city;
|
|
177
|
-
}
|
|
178
|
-
if (data.country != null) {
|
|
179
|
-
message.country = data.country;
|
|
180
|
-
}
|
|
181
|
-
if (data.country_iso_code != null) {
|
|
182
|
-
message.country_iso_code = data.country_iso_code;
|
|
183
|
-
}
|
|
184
|
-
if (data.created_at != null) {
|
|
185
|
-
message.created_at = data.created_at;
|
|
186
|
-
}
|
|
187
|
-
if (data.updated_at != null) {
|
|
188
|
-
message.updated_at = data.updated_at;
|
|
189
|
-
}
|
|
190
|
-
if (data.trunk != null) {
|
|
191
|
-
message.trunk = dependency_1.fonoster.trunks.v1beta2.Trunk.fromObject(data.trunk);
|
|
192
|
-
}
|
|
193
|
-
if (data.agent_aor != null) {
|
|
194
|
-
message.agent_aor = data.agent_aor;
|
|
195
|
-
}
|
|
196
|
-
if (data.app_ref != null) {
|
|
197
|
-
message.app_ref = data.app_ref;
|
|
198
|
-
}
|
|
199
|
-
return message;
|
|
200
|
-
}
|
|
201
|
-
toObject() {
|
|
202
|
-
const data: {
|
|
203
|
-
ref?: string;
|
|
204
|
-
name?: string;
|
|
205
|
-
tel_url?: string;
|
|
206
|
-
city?: string;
|
|
207
|
-
country?: string;
|
|
208
|
-
country_iso_code?: string;
|
|
209
|
-
created_at?: number;
|
|
210
|
-
updated_at?: number;
|
|
211
|
-
trunk?: ReturnType<typeof dependency_1.fonoster.trunks.v1beta2.Trunk.prototype.toObject>;
|
|
212
|
-
agent_aor?: string;
|
|
213
|
-
app_ref?: string;
|
|
214
|
-
} = {};
|
|
215
|
-
if (this.ref != null) {
|
|
216
|
-
data.ref = this.ref;
|
|
217
|
-
}
|
|
218
|
-
if (this.name != null) {
|
|
219
|
-
data.name = this.name;
|
|
220
|
-
}
|
|
221
|
-
if (this.tel_url != null) {
|
|
222
|
-
data.tel_url = this.tel_url;
|
|
223
|
-
}
|
|
224
|
-
if (this.city != null) {
|
|
225
|
-
data.city = this.city;
|
|
226
|
-
}
|
|
227
|
-
if (this.country != null) {
|
|
228
|
-
data.country = this.country;
|
|
229
|
-
}
|
|
230
|
-
if (this.country_iso_code != null) {
|
|
231
|
-
data.country_iso_code = this.country_iso_code;
|
|
232
|
-
}
|
|
233
|
-
if (this.created_at != null) {
|
|
234
|
-
data.created_at = this.created_at;
|
|
235
|
-
}
|
|
236
|
-
if (this.updated_at != null) {
|
|
237
|
-
data.updated_at = this.updated_at;
|
|
238
|
-
}
|
|
239
|
-
if (this.trunk != null) {
|
|
240
|
-
data.trunk = this.trunk.toObject();
|
|
241
|
-
}
|
|
242
|
-
if (this.agent_aor != null) {
|
|
243
|
-
data.agent_aor = this.agent_aor;
|
|
244
|
-
}
|
|
245
|
-
if (this.app_ref != null) {
|
|
246
|
-
data.app_ref = this.app_ref;
|
|
247
|
-
}
|
|
248
|
-
return data;
|
|
249
|
-
}
|
|
250
|
-
serialize(): Uint8Array;
|
|
251
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
252
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
253
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
254
|
-
if (this.ref.length)
|
|
255
|
-
writer.writeString(1, this.ref);
|
|
256
|
-
if (this.name.length)
|
|
257
|
-
writer.writeString(2, this.name);
|
|
258
|
-
if (this.tel_url.length)
|
|
259
|
-
writer.writeString(3, this.tel_url);
|
|
260
|
-
if (this.city.length)
|
|
261
|
-
writer.writeString(4, this.city);
|
|
262
|
-
if (this.country.length)
|
|
263
|
-
writer.writeString(5, this.country);
|
|
264
|
-
if (this.country_iso_code.length)
|
|
265
|
-
writer.writeString(6, this.country_iso_code);
|
|
266
|
-
if (this.created_at != 0)
|
|
267
|
-
writer.writeInt64(7, this.created_at);
|
|
268
|
-
if (this.updated_at != 0)
|
|
269
|
-
writer.writeInt64(8, this.updated_at);
|
|
270
|
-
if (this.has_trunk)
|
|
271
|
-
writer.writeMessage(9, this.trunk, () => this.trunk.serialize(writer));
|
|
272
|
-
if (this.has_agent_aor)
|
|
273
|
-
writer.writeString(10, this.agent_aor);
|
|
274
|
-
if (this.has_app_ref)
|
|
275
|
-
writer.writeString(11, this.app_ref);
|
|
276
|
-
if (!w)
|
|
277
|
-
return writer.getResultBuffer();
|
|
278
|
-
}
|
|
279
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Number {
|
|
280
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Number();
|
|
281
|
-
while (reader.nextField()) {
|
|
282
|
-
if (reader.isEndGroup())
|
|
283
|
-
break;
|
|
284
|
-
switch (reader.getFieldNumber()) {
|
|
285
|
-
case 1:
|
|
286
|
-
message.ref = reader.readString();
|
|
287
|
-
break;
|
|
288
|
-
case 2:
|
|
289
|
-
message.name = reader.readString();
|
|
290
|
-
break;
|
|
291
|
-
case 3:
|
|
292
|
-
message.tel_url = reader.readString();
|
|
293
|
-
break;
|
|
294
|
-
case 4:
|
|
295
|
-
message.city = reader.readString();
|
|
296
|
-
break;
|
|
297
|
-
case 5:
|
|
298
|
-
message.country = reader.readString();
|
|
299
|
-
break;
|
|
300
|
-
case 6:
|
|
301
|
-
message.country_iso_code = reader.readString();
|
|
302
|
-
break;
|
|
303
|
-
case 7:
|
|
304
|
-
message.created_at = reader.readInt64();
|
|
305
|
-
break;
|
|
306
|
-
case 8:
|
|
307
|
-
message.updated_at = reader.readInt64();
|
|
308
|
-
break;
|
|
309
|
-
case 9:
|
|
310
|
-
reader.readMessage(message.trunk, () => message.trunk = dependency_1.fonoster.trunks.v1beta2.Trunk.deserialize(reader));
|
|
311
|
-
break;
|
|
312
|
-
case 10:
|
|
313
|
-
message.agent_aor = reader.readString();
|
|
314
|
-
break;
|
|
315
|
-
case 11:
|
|
316
|
-
message.app_ref = reader.readString();
|
|
317
|
-
break;
|
|
318
|
-
default: reader.skipField();
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
return message;
|
|
322
|
-
}
|
|
323
|
-
serializeBinary(): Uint8Array {
|
|
324
|
-
return this.serialize();
|
|
325
|
-
}
|
|
326
|
-
static deserializeBinary(bytes: Uint8Array): Number {
|
|
327
|
-
return Number.deserialize(bytes);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
export class CreateNumberRequest extends pb_1.Message {
|
|
331
|
-
#one_of_decls: number[][] = [[7, 8]];
|
|
332
|
-
constructor(data?: any[] | ({
|
|
333
|
-
name?: string;
|
|
334
|
-
tel_url?: string;
|
|
335
|
-
city?: string;
|
|
336
|
-
country?: string;
|
|
337
|
-
country_iso_code?: string;
|
|
338
|
-
trunk_ref?: string;
|
|
339
|
-
} & (({
|
|
340
|
-
agent_aor?: string;
|
|
341
|
-
app_ref?: never;
|
|
342
|
-
} | {
|
|
343
|
-
agent_aor?: never;
|
|
344
|
-
app_ref?: string;
|
|
345
|
-
})))) {
|
|
346
|
-
super();
|
|
347
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
348
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
349
|
-
if ("name" in data && data.name != undefined) {
|
|
350
|
-
this.name = data.name;
|
|
351
|
-
}
|
|
352
|
-
if ("tel_url" in data && data.tel_url != undefined) {
|
|
353
|
-
this.tel_url = data.tel_url;
|
|
354
|
-
}
|
|
355
|
-
if ("city" in data && data.city != undefined) {
|
|
356
|
-
this.city = data.city;
|
|
357
|
-
}
|
|
358
|
-
if ("country" in data && data.country != undefined) {
|
|
359
|
-
this.country = data.country;
|
|
360
|
-
}
|
|
361
|
-
if ("country_iso_code" in data && data.country_iso_code != undefined) {
|
|
362
|
-
this.country_iso_code = data.country_iso_code;
|
|
363
|
-
}
|
|
364
|
-
if ("trunk_ref" in data && data.trunk_ref != undefined) {
|
|
365
|
-
this.trunk_ref = data.trunk_ref;
|
|
366
|
-
}
|
|
367
|
-
if ("agent_aor" in data && data.agent_aor != undefined) {
|
|
368
|
-
this.agent_aor = data.agent_aor;
|
|
369
|
-
}
|
|
370
|
-
if ("app_ref" in data && data.app_ref != undefined) {
|
|
371
|
-
this.app_ref = data.app_ref;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
get name() {
|
|
376
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
377
|
-
}
|
|
378
|
-
set name(value: string) {
|
|
379
|
-
pb_1.Message.setField(this, 1, value);
|
|
380
|
-
}
|
|
381
|
-
get tel_url() {
|
|
382
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
383
|
-
}
|
|
384
|
-
set tel_url(value: string) {
|
|
385
|
-
pb_1.Message.setField(this, 2, value);
|
|
386
|
-
}
|
|
387
|
-
get city() {
|
|
388
|
-
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
389
|
-
}
|
|
390
|
-
set city(value: string) {
|
|
391
|
-
pb_1.Message.setField(this, 3, value);
|
|
392
|
-
}
|
|
393
|
-
get country() {
|
|
394
|
-
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
395
|
-
}
|
|
396
|
-
set country(value: string) {
|
|
397
|
-
pb_1.Message.setField(this, 4, value);
|
|
398
|
-
}
|
|
399
|
-
get country_iso_code() {
|
|
400
|
-
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
401
|
-
}
|
|
402
|
-
set country_iso_code(value: string) {
|
|
403
|
-
pb_1.Message.setField(this, 5, value);
|
|
404
|
-
}
|
|
405
|
-
get trunk_ref() {
|
|
406
|
-
return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
|
|
407
|
-
}
|
|
408
|
-
set trunk_ref(value: string) {
|
|
409
|
-
pb_1.Message.setField(this, 6, value);
|
|
410
|
-
}
|
|
411
|
-
get agent_aor() {
|
|
412
|
-
return pb_1.Message.getFieldWithDefault(this, 7, "") as string;
|
|
413
|
-
}
|
|
414
|
-
set agent_aor(value: string) {
|
|
415
|
-
pb_1.Message.setOneofField(this, 7, this.#one_of_decls[0], value);
|
|
416
|
-
}
|
|
417
|
-
get has_agent_aor() {
|
|
418
|
-
return pb_1.Message.getField(this, 7) != null;
|
|
419
|
-
}
|
|
420
|
-
get app_ref() {
|
|
421
|
-
return pb_1.Message.getFieldWithDefault(this, 8, "") as string;
|
|
422
|
-
}
|
|
423
|
-
set app_ref(value: string) {
|
|
424
|
-
pb_1.Message.setOneofField(this, 8, this.#one_of_decls[0], value);
|
|
425
|
-
}
|
|
426
|
-
get has_app_ref() {
|
|
427
|
-
return pb_1.Message.getField(this, 8) != null;
|
|
428
|
-
}
|
|
429
|
-
get ingress_handler() {
|
|
430
|
-
const cases: {
|
|
431
|
-
[index: number]: "none" | "agent_aor" | "app_ref";
|
|
432
|
-
} = {
|
|
433
|
-
0: "none",
|
|
434
|
-
7: "agent_aor",
|
|
435
|
-
8: "app_ref"
|
|
436
|
-
};
|
|
437
|
-
return cases[pb_1.Message.computeOneofCase(this, [7, 8])];
|
|
438
|
-
}
|
|
439
|
-
static fromObject(data: {
|
|
440
|
-
name?: string;
|
|
441
|
-
tel_url?: string;
|
|
442
|
-
city?: string;
|
|
443
|
-
country?: string;
|
|
444
|
-
country_iso_code?: string;
|
|
445
|
-
trunk_ref?: string;
|
|
446
|
-
agent_aor?: string;
|
|
447
|
-
app_ref?: string;
|
|
448
|
-
}): CreateNumberRequest {
|
|
449
|
-
const message = new CreateNumberRequest({});
|
|
450
|
-
if (data.name != null) {
|
|
451
|
-
message.name = data.name;
|
|
452
|
-
}
|
|
453
|
-
if (data.tel_url != null) {
|
|
454
|
-
message.tel_url = data.tel_url;
|
|
455
|
-
}
|
|
456
|
-
if (data.city != null) {
|
|
457
|
-
message.city = data.city;
|
|
458
|
-
}
|
|
459
|
-
if (data.country != null) {
|
|
460
|
-
message.country = data.country;
|
|
461
|
-
}
|
|
462
|
-
if (data.country_iso_code != null) {
|
|
463
|
-
message.country_iso_code = data.country_iso_code;
|
|
464
|
-
}
|
|
465
|
-
if (data.trunk_ref != null) {
|
|
466
|
-
message.trunk_ref = data.trunk_ref;
|
|
467
|
-
}
|
|
468
|
-
if (data.agent_aor != null) {
|
|
469
|
-
message.agent_aor = data.agent_aor;
|
|
470
|
-
}
|
|
471
|
-
if (data.app_ref != null) {
|
|
472
|
-
message.app_ref = data.app_ref;
|
|
473
|
-
}
|
|
474
|
-
return message;
|
|
475
|
-
}
|
|
476
|
-
toObject() {
|
|
477
|
-
const data: {
|
|
478
|
-
name?: string;
|
|
479
|
-
tel_url?: string;
|
|
480
|
-
city?: string;
|
|
481
|
-
country?: string;
|
|
482
|
-
country_iso_code?: string;
|
|
483
|
-
trunk_ref?: string;
|
|
484
|
-
agent_aor?: string;
|
|
485
|
-
app_ref?: string;
|
|
486
|
-
} = {};
|
|
487
|
-
if (this.name != null) {
|
|
488
|
-
data.name = this.name;
|
|
489
|
-
}
|
|
490
|
-
if (this.tel_url != null) {
|
|
491
|
-
data.tel_url = this.tel_url;
|
|
492
|
-
}
|
|
493
|
-
if (this.city != null) {
|
|
494
|
-
data.city = this.city;
|
|
495
|
-
}
|
|
496
|
-
if (this.country != null) {
|
|
497
|
-
data.country = this.country;
|
|
498
|
-
}
|
|
499
|
-
if (this.country_iso_code != null) {
|
|
500
|
-
data.country_iso_code = this.country_iso_code;
|
|
501
|
-
}
|
|
502
|
-
if (this.trunk_ref != null) {
|
|
503
|
-
data.trunk_ref = this.trunk_ref;
|
|
504
|
-
}
|
|
505
|
-
if (this.agent_aor != null) {
|
|
506
|
-
data.agent_aor = this.agent_aor;
|
|
507
|
-
}
|
|
508
|
-
if (this.app_ref != null) {
|
|
509
|
-
data.app_ref = this.app_ref;
|
|
510
|
-
}
|
|
511
|
-
return data;
|
|
512
|
-
}
|
|
513
|
-
serialize(): Uint8Array;
|
|
514
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
515
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
516
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
517
|
-
if (this.name.length)
|
|
518
|
-
writer.writeString(1, this.name);
|
|
519
|
-
if (this.tel_url.length)
|
|
520
|
-
writer.writeString(2, this.tel_url);
|
|
521
|
-
if (this.city.length)
|
|
522
|
-
writer.writeString(3, this.city);
|
|
523
|
-
if (this.country.length)
|
|
524
|
-
writer.writeString(4, this.country);
|
|
525
|
-
if (this.country_iso_code.length)
|
|
526
|
-
writer.writeString(5, this.country_iso_code);
|
|
527
|
-
if (this.trunk_ref.length)
|
|
528
|
-
writer.writeString(6, this.trunk_ref);
|
|
529
|
-
if (this.has_agent_aor)
|
|
530
|
-
writer.writeString(7, this.agent_aor);
|
|
531
|
-
if (this.has_app_ref)
|
|
532
|
-
writer.writeString(8, this.app_ref);
|
|
533
|
-
if (!w)
|
|
534
|
-
return writer.getResultBuffer();
|
|
535
|
-
}
|
|
536
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CreateNumberRequest {
|
|
537
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CreateNumberRequest();
|
|
538
|
-
while (reader.nextField()) {
|
|
539
|
-
if (reader.isEndGroup())
|
|
540
|
-
break;
|
|
541
|
-
switch (reader.getFieldNumber()) {
|
|
542
|
-
case 1:
|
|
543
|
-
message.name = reader.readString();
|
|
544
|
-
break;
|
|
545
|
-
case 2:
|
|
546
|
-
message.tel_url = reader.readString();
|
|
547
|
-
break;
|
|
548
|
-
case 3:
|
|
549
|
-
message.city = reader.readString();
|
|
550
|
-
break;
|
|
551
|
-
case 4:
|
|
552
|
-
message.country = reader.readString();
|
|
553
|
-
break;
|
|
554
|
-
case 5:
|
|
555
|
-
message.country_iso_code = reader.readString();
|
|
556
|
-
break;
|
|
557
|
-
case 6:
|
|
558
|
-
message.trunk_ref = reader.readString();
|
|
559
|
-
break;
|
|
560
|
-
case 7:
|
|
561
|
-
message.agent_aor = reader.readString();
|
|
562
|
-
break;
|
|
563
|
-
case 8:
|
|
564
|
-
message.app_ref = reader.readString();
|
|
565
|
-
break;
|
|
566
|
-
default: reader.skipField();
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
return message;
|
|
570
|
-
}
|
|
571
|
-
serializeBinary(): Uint8Array {
|
|
572
|
-
return this.serialize();
|
|
573
|
-
}
|
|
574
|
-
static deserializeBinary(bytes: Uint8Array): CreateNumberRequest {
|
|
575
|
-
return CreateNumberRequest.deserialize(bytes);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
export class CreateNumberResponse extends pb_1.Message {
|
|
579
|
-
#one_of_decls: number[][] = [];
|
|
580
|
-
constructor(data?: any[] | {
|
|
581
|
-
ref?: string;
|
|
582
|
-
}) {
|
|
583
|
-
super();
|
|
584
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
585
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
586
|
-
if ("ref" in data && data.ref != undefined) {
|
|
587
|
-
this.ref = data.ref;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
get ref() {
|
|
592
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
593
|
-
}
|
|
594
|
-
set ref(value: string) {
|
|
595
|
-
pb_1.Message.setField(this, 1, value);
|
|
596
|
-
}
|
|
597
|
-
static fromObject(data: {
|
|
598
|
-
ref?: string;
|
|
599
|
-
}): CreateNumberResponse {
|
|
600
|
-
const message = new CreateNumberResponse({});
|
|
601
|
-
if (data.ref != null) {
|
|
602
|
-
message.ref = data.ref;
|
|
603
|
-
}
|
|
604
|
-
return message;
|
|
605
|
-
}
|
|
606
|
-
toObject() {
|
|
607
|
-
const data: {
|
|
608
|
-
ref?: string;
|
|
609
|
-
} = {};
|
|
610
|
-
if (this.ref != null) {
|
|
611
|
-
data.ref = this.ref;
|
|
612
|
-
}
|
|
613
|
-
return data;
|
|
614
|
-
}
|
|
615
|
-
serialize(): Uint8Array;
|
|
616
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
617
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
618
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
619
|
-
if (this.ref.length)
|
|
620
|
-
writer.writeString(1, this.ref);
|
|
621
|
-
if (!w)
|
|
622
|
-
return writer.getResultBuffer();
|
|
623
|
-
}
|
|
624
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CreateNumberResponse {
|
|
625
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CreateNumberResponse();
|
|
626
|
-
while (reader.nextField()) {
|
|
627
|
-
if (reader.isEndGroup())
|
|
628
|
-
break;
|
|
629
|
-
switch (reader.getFieldNumber()) {
|
|
630
|
-
case 1:
|
|
631
|
-
message.ref = reader.readString();
|
|
632
|
-
break;
|
|
633
|
-
default: reader.skipField();
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return message;
|
|
637
|
-
}
|
|
638
|
-
serializeBinary(): Uint8Array {
|
|
639
|
-
return this.serialize();
|
|
640
|
-
}
|
|
641
|
-
static deserializeBinary(bytes: Uint8Array): CreateNumberResponse {
|
|
642
|
-
return CreateNumberResponse.deserialize(bytes);
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
export class UpdateNumberRequest extends pb_1.Message {
|
|
646
|
-
#one_of_decls: number[][] = [[4, 5]];
|
|
647
|
-
constructor(data?: any[] | ({
|
|
648
|
-
ref?: string;
|
|
649
|
-
name?: string;
|
|
650
|
-
trunk_ref?: string;
|
|
651
|
-
} & (({
|
|
652
|
-
agent_aor?: string;
|
|
653
|
-
app_ref?: never;
|
|
654
|
-
} | {
|
|
655
|
-
agent_aor?: never;
|
|
656
|
-
app_ref?: string;
|
|
657
|
-
})))) {
|
|
658
|
-
super();
|
|
659
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
660
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
661
|
-
if ("ref" in data && data.ref != undefined) {
|
|
662
|
-
this.ref = data.ref;
|
|
663
|
-
}
|
|
664
|
-
if ("name" in data && data.name != undefined) {
|
|
665
|
-
this.name = data.name;
|
|
666
|
-
}
|
|
667
|
-
if ("trunk_ref" in data && data.trunk_ref != undefined) {
|
|
668
|
-
this.trunk_ref = data.trunk_ref;
|
|
669
|
-
}
|
|
670
|
-
if ("agent_aor" in data && data.agent_aor != undefined) {
|
|
671
|
-
this.agent_aor = data.agent_aor;
|
|
672
|
-
}
|
|
673
|
-
if ("app_ref" in data && data.app_ref != undefined) {
|
|
674
|
-
this.app_ref = data.app_ref;
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
get ref() {
|
|
679
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
680
|
-
}
|
|
681
|
-
set ref(value: string) {
|
|
682
|
-
pb_1.Message.setField(this, 1, value);
|
|
683
|
-
}
|
|
684
|
-
get name() {
|
|
685
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
686
|
-
}
|
|
687
|
-
set name(value: string) {
|
|
688
|
-
pb_1.Message.setField(this, 2, value);
|
|
689
|
-
}
|
|
690
|
-
get trunk_ref() {
|
|
691
|
-
return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
|
|
692
|
-
}
|
|
693
|
-
set trunk_ref(value: string) {
|
|
694
|
-
pb_1.Message.setField(this, 3, value);
|
|
695
|
-
}
|
|
696
|
-
get agent_aor() {
|
|
697
|
-
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
698
|
-
}
|
|
699
|
-
set agent_aor(value: string) {
|
|
700
|
-
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[0], value);
|
|
701
|
-
}
|
|
702
|
-
get has_agent_aor() {
|
|
703
|
-
return pb_1.Message.getField(this, 4) != null;
|
|
704
|
-
}
|
|
705
|
-
get app_ref() {
|
|
706
|
-
return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
|
|
707
|
-
}
|
|
708
|
-
set app_ref(value: string) {
|
|
709
|
-
pb_1.Message.setOneofField(this, 5, this.#one_of_decls[0], value);
|
|
710
|
-
}
|
|
711
|
-
get has_app_ref() {
|
|
712
|
-
return pb_1.Message.getField(this, 5) != null;
|
|
713
|
-
}
|
|
714
|
-
get ingress_handler() {
|
|
715
|
-
const cases: {
|
|
716
|
-
[index: number]: "none" | "agent_aor" | "app_ref";
|
|
717
|
-
} = {
|
|
718
|
-
0: "none",
|
|
719
|
-
4: "agent_aor",
|
|
720
|
-
5: "app_ref"
|
|
721
|
-
};
|
|
722
|
-
return cases[pb_1.Message.computeOneofCase(this, [4, 5])];
|
|
723
|
-
}
|
|
724
|
-
static fromObject(data: {
|
|
725
|
-
ref?: string;
|
|
726
|
-
name?: string;
|
|
727
|
-
trunk_ref?: string;
|
|
728
|
-
agent_aor?: string;
|
|
729
|
-
app_ref?: string;
|
|
730
|
-
}): UpdateNumberRequest {
|
|
731
|
-
const message = new UpdateNumberRequest({});
|
|
732
|
-
if (data.ref != null) {
|
|
733
|
-
message.ref = data.ref;
|
|
734
|
-
}
|
|
735
|
-
if (data.name != null) {
|
|
736
|
-
message.name = data.name;
|
|
737
|
-
}
|
|
738
|
-
if (data.trunk_ref != null) {
|
|
739
|
-
message.trunk_ref = data.trunk_ref;
|
|
740
|
-
}
|
|
741
|
-
if (data.agent_aor != null) {
|
|
742
|
-
message.agent_aor = data.agent_aor;
|
|
743
|
-
}
|
|
744
|
-
if (data.app_ref != null) {
|
|
745
|
-
message.app_ref = data.app_ref;
|
|
746
|
-
}
|
|
747
|
-
return message;
|
|
748
|
-
}
|
|
749
|
-
toObject() {
|
|
750
|
-
const data: {
|
|
751
|
-
ref?: string;
|
|
752
|
-
name?: string;
|
|
753
|
-
trunk_ref?: string;
|
|
754
|
-
agent_aor?: string;
|
|
755
|
-
app_ref?: string;
|
|
756
|
-
} = {};
|
|
757
|
-
if (this.ref != null) {
|
|
758
|
-
data.ref = this.ref;
|
|
759
|
-
}
|
|
760
|
-
if (this.name != null) {
|
|
761
|
-
data.name = this.name;
|
|
762
|
-
}
|
|
763
|
-
if (this.trunk_ref != null) {
|
|
764
|
-
data.trunk_ref = this.trunk_ref;
|
|
765
|
-
}
|
|
766
|
-
if (this.agent_aor != null) {
|
|
767
|
-
data.agent_aor = this.agent_aor;
|
|
768
|
-
}
|
|
769
|
-
if (this.app_ref != null) {
|
|
770
|
-
data.app_ref = this.app_ref;
|
|
771
|
-
}
|
|
772
|
-
return data;
|
|
773
|
-
}
|
|
774
|
-
serialize(): Uint8Array;
|
|
775
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
776
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
777
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
778
|
-
if (this.ref.length)
|
|
779
|
-
writer.writeString(1, this.ref);
|
|
780
|
-
if (this.name.length)
|
|
781
|
-
writer.writeString(2, this.name);
|
|
782
|
-
if (this.trunk_ref.length)
|
|
783
|
-
writer.writeString(3, this.trunk_ref);
|
|
784
|
-
if (this.has_agent_aor)
|
|
785
|
-
writer.writeString(4, this.agent_aor);
|
|
786
|
-
if (this.has_app_ref)
|
|
787
|
-
writer.writeString(5, this.app_ref);
|
|
788
|
-
if (!w)
|
|
789
|
-
return writer.getResultBuffer();
|
|
790
|
-
}
|
|
791
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UpdateNumberRequest {
|
|
792
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdateNumberRequest();
|
|
793
|
-
while (reader.nextField()) {
|
|
794
|
-
if (reader.isEndGroup())
|
|
795
|
-
break;
|
|
796
|
-
switch (reader.getFieldNumber()) {
|
|
797
|
-
case 1:
|
|
798
|
-
message.ref = reader.readString();
|
|
799
|
-
break;
|
|
800
|
-
case 2:
|
|
801
|
-
message.name = reader.readString();
|
|
802
|
-
break;
|
|
803
|
-
case 3:
|
|
804
|
-
message.trunk_ref = reader.readString();
|
|
805
|
-
break;
|
|
806
|
-
case 4:
|
|
807
|
-
message.agent_aor = reader.readString();
|
|
808
|
-
break;
|
|
809
|
-
case 5:
|
|
810
|
-
message.app_ref = reader.readString();
|
|
811
|
-
break;
|
|
812
|
-
default: reader.skipField();
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
return message;
|
|
816
|
-
}
|
|
817
|
-
serializeBinary(): Uint8Array {
|
|
818
|
-
return this.serialize();
|
|
819
|
-
}
|
|
820
|
-
static deserializeBinary(bytes: Uint8Array): UpdateNumberRequest {
|
|
821
|
-
return UpdateNumberRequest.deserialize(bytes);
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
export class UpdateNumberResponse extends pb_1.Message {
|
|
825
|
-
#one_of_decls: number[][] = [];
|
|
826
|
-
constructor(data?: any[] | {
|
|
827
|
-
ref?: string;
|
|
828
|
-
}) {
|
|
829
|
-
super();
|
|
830
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
831
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
832
|
-
if ("ref" in data && data.ref != undefined) {
|
|
833
|
-
this.ref = data.ref;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
get ref() {
|
|
838
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
839
|
-
}
|
|
840
|
-
set ref(value: string) {
|
|
841
|
-
pb_1.Message.setField(this, 1, value);
|
|
842
|
-
}
|
|
843
|
-
static fromObject(data: {
|
|
844
|
-
ref?: string;
|
|
845
|
-
}): UpdateNumberResponse {
|
|
846
|
-
const message = new UpdateNumberResponse({});
|
|
847
|
-
if (data.ref != null) {
|
|
848
|
-
message.ref = data.ref;
|
|
849
|
-
}
|
|
850
|
-
return message;
|
|
851
|
-
}
|
|
852
|
-
toObject() {
|
|
853
|
-
const data: {
|
|
854
|
-
ref?: string;
|
|
855
|
-
} = {};
|
|
856
|
-
if (this.ref != null) {
|
|
857
|
-
data.ref = this.ref;
|
|
858
|
-
}
|
|
859
|
-
return data;
|
|
860
|
-
}
|
|
861
|
-
serialize(): Uint8Array;
|
|
862
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
863
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
864
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
865
|
-
if (this.ref.length)
|
|
866
|
-
writer.writeString(1, this.ref);
|
|
867
|
-
if (!w)
|
|
868
|
-
return writer.getResultBuffer();
|
|
869
|
-
}
|
|
870
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UpdateNumberResponse {
|
|
871
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UpdateNumberResponse();
|
|
872
|
-
while (reader.nextField()) {
|
|
873
|
-
if (reader.isEndGroup())
|
|
874
|
-
break;
|
|
875
|
-
switch (reader.getFieldNumber()) {
|
|
876
|
-
case 1:
|
|
877
|
-
message.ref = reader.readString();
|
|
878
|
-
break;
|
|
879
|
-
default: reader.skipField();
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
return message;
|
|
883
|
-
}
|
|
884
|
-
serializeBinary(): Uint8Array {
|
|
885
|
-
return this.serialize();
|
|
886
|
-
}
|
|
887
|
-
static deserializeBinary(bytes: Uint8Array): UpdateNumberResponse {
|
|
888
|
-
return UpdateNumberResponse.deserialize(bytes);
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
export class GetNumberRequest extends pb_1.Message {
|
|
892
|
-
#one_of_decls: number[][] = [];
|
|
893
|
-
constructor(data?: any[] | {
|
|
894
|
-
ref?: string;
|
|
895
|
-
}) {
|
|
896
|
-
super();
|
|
897
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
898
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
899
|
-
if ("ref" in data && data.ref != undefined) {
|
|
900
|
-
this.ref = data.ref;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
get ref() {
|
|
905
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
906
|
-
}
|
|
907
|
-
set ref(value: string) {
|
|
908
|
-
pb_1.Message.setField(this, 1, value);
|
|
909
|
-
}
|
|
910
|
-
static fromObject(data: {
|
|
911
|
-
ref?: string;
|
|
912
|
-
}): GetNumberRequest {
|
|
913
|
-
const message = new GetNumberRequest({});
|
|
914
|
-
if (data.ref != null) {
|
|
915
|
-
message.ref = data.ref;
|
|
916
|
-
}
|
|
917
|
-
return message;
|
|
918
|
-
}
|
|
919
|
-
toObject() {
|
|
920
|
-
const data: {
|
|
921
|
-
ref?: string;
|
|
922
|
-
} = {};
|
|
923
|
-
if (this.ref != null) {
|
|
924
|
-
data.ref = this.ref;
|
|
925
|
-
}
|
|
926
|
-
return data;
|
|
927
|
-
}
|
|
928
|
-
serialize(): Uint8Array;
|
|
929
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
930
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
931
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
932
|
-
if (this.ref.length)
|
|
933
|
-
writer.writeString(1, this.ref);
|
|
934
|
-
if (!w)
|
|
935
|
-
return writer.getResultBuffer();
|
|
936
|
-
}
|
|
937
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetNumberRequest {
|
|
938
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetNumberRequest();
|
|
939
|
-
while (reader.nextField()) {
|
|
940
|
-
if (reader.isEndGroup())
|
|
941
|
-
break;
|
|
942
|
-
switch (reader.getFieldNumber()) {
|
|
943
|
-
case 1:
|
|
944
|
-
message.ref = reader.readString();
|
|
945
|
-
break;
|
|
946
|
-
default: reader.skipField();
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
return message;
|
|
950
|
-
}
|
|
951
|
-
serializeBinary(): Uint8Array {
|
|
952
|
-
return this.serialize();
|
|
953
|
-
}
|
|
954
|
-
static deserializeBinary(bytes: Uint8Array): GetNumberRequest {
|
|
955
|
-
return GetNumberRequest.deserialize(bytes);
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
export class DeleteNumberRequest extends pb_1.Message {
|
|
959
|
-
#one_of_decls: number[][] = [];
|
|
960
|
-
constructor(data?: any[] | {
|
|
961
|
-
ref?: string;
|
|
962
|
-
}) {
|
|
963
|
-
super();
|
|
964
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
965
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
966
|
-
if ("ref" in data && data.ref != undefined) {
|
|
967
|
-
this.ref = data.ref;
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
}
|
|
971
|
-
get ref() {
|
|
972
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
973
|
-
}
|
|
974
|
-
set ref(value: string) {
|
|
975
|
-
pb_1.Message.setField(this, 1, value);
|
|
976
|
-
}
|
|
977
|
-
static fromObject(data: {
|
|
978
|
-
ref?: string;
|
|
979
|
-
}): DeleteNumberRequest {
|
|
980
|
-
const message = new DeleteNumberRequest({});
|
|
981
|
-
if (data.ref != null) {
|
|
982
|
-
message.ref = data.ref;
|
|
983
|
-
}
|
|
984
|
-
return message;
|
|
985
|
-
}
|
|
986
|
-
toObject() {
|
|
987
|
-
const data: {
|
|
988
|
-
ref?: string;
|
|
989
|
-
} = {};
|
|
990
|
-
if (this.ref != null) {
|
|
991
|
-
data.ref = this.ref;
|
|
992
|
-
}
|
|
993
|
-
return data;
|
|
994
|
-
}
|
|
995
|
-
serialize(): Uint8Array;
|
|
996
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
997
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
998
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
999
|
-
if (this.ref.length)
|
|
1000
|
-
writer.writeString(1, this.ref);
|
|
1001
|
-
if (!w)
|
|
1002
|
-
return writer.getResultBuffer();
|
|
1003
|
-
}
|
|
1004
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DeleteNumberRequest {
|
|
1005
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DeleteNumberRequest();
|
|
1006
|
-
while (reader.nextField()) {
|
|
1007
|
-
if (reader.isEndGroup())
|
|
1008
|
-
break;
|
|
1009
|
-
switch (reader.getFieldNumber()) {
|
|
1010
|
-
case 1:
|
|
1011
|
-
message.ref = reader.readString();
|
|
1012
|
-
break;
|
|
1013
|
-
default: reader.skipField();
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
return message;
|
|
1017
|
-
}
|
|
1018
|
-
serializeBinary(): Uint8Array {
|
|
1019
|
-
return this.serialize();
|
|
1020
|
-
}
|
|
1021
|
-
static deserializeBinary(bytes: Uint8Array): DeleteNumberRequest {
|
|
1022
|
-
return DeleteNumberRequest.deserialize(bytes);
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
export class DeleteNumberResponse extends pb_1.Message {
|
|
1026
|
-
#one_of_decls: number[][] = [];
|
|
1027
|
-
constructor(data?: any[] | {
|
|
1028
|
-
ref?: string;
|
|
1029
|
-
}) {
|
|
1030
|
-
super();
|
|
1031
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
1032
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1033
|
-
if ("ref" in data && data.ref != undefined) {
|
|
1034
|
-
this.ref = data.ref;
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
get ref() {
|
|
1039
|
-
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
1040
|
-
}
|
|
1041
|
-
set ref(value: string) {
|
|
1042
|
-
pb_1.Message.setField(this, 1, value);
|
|
1043
|
-
}
|
|
1044
|
-
static fromObject(data: {
|
|
1045
|
-
ref?: string;
|
|
1046
|
-
}): DeleteNumberResponse {
|
|
1047
|
-
const message = new DeleteNumberResponse({});
|
|
1048
|
-
if (data.ref != null) {
|
|
1049
|
-
message.ref = data.ref;
|
|
1050
|
-
}
|
|
1051
|
-
return message;
|
|
1052
|
-
}
|
|
1053
|
-
toObject() {
|
|
1054
|
-
const data: {
|
|
1055
|
-
ref?: string;
|
|
1056
|
-
} = {};
|
|
1057
|
-
if (this.ref != null) {
|
|
1058
|
-
data.ref = this.ref;
|
|
1059
|
-
}
|
|
1060
|
-
return data;
|
|
1061
|
-
}
|
|
1062
|
-
serialize(): Uint8Array;
|
|
1063
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
1064
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1065
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
1066
|
-
if (this.ref.length)
|
|
1067
|
-
writer.writeString(1, this.ref);
|
|
1068
|
-
if (!w)
|
|
1069
|
-
return writer.getResultBuffer();
|
|
1070
|
-
}
|
|
1071
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DeleteNumberResponse {
|
|
1072
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DeleteNumberResponse();
|
|
1073
|
-
while (reader.nextField()) {
|
|
1074
|
-
if (reader.isEndGroup())
|
|
1075
|
-
break;
|
|
1076
|
-
switch (reader.getFieldNumber()) {
|
|
1077
|
-
case 1:
|
|
1078
|
-
message.ref = reader.readString();
|
|
1079
|
-
break;
|
|
1080
|
-
default: reader.skipField();
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
return message;
|
|
1084
|
-
}
|
|
1085
|
-
serializeBinary(): Uint8Array {
|
|
1086
|
-
return this.serialize();
|
|
1087
|
-
}
|
|
1088
|
-
static deserializeBinary(bytes: Uint8Array): DeleteNumberResponse {
|
|
1089
|
-
return DeleteNumberResponse.deserialize(bytes);
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
export class ListNumbersRequest extends pb_1.Message {
|
|
1093
|
-
#one_of_decls: number[][] = [];
|
|
1094
|
-
constructor(data?: any[] | {
|
|
1095
|
-
page_size?: number;
|
|
1096
|
-
page_token?: string;
|
|
1097
|
-
}) {
|
|
1098
|
-
super();
|
|
1099
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
1100
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1101
|
-
if ("page_size" in data && data.page_size != undefined) {
|
|
1102
|
-
this.page_size = data.page_size;
|
|
1103
|
-
}
|
|
1104
|
-
if ("page_token" in data && data.page_token != undefined) {
|
|
1105
|
-
this.page_token = data.page_token;
|
|
1106
|
-
}
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
get page_size() {
|
|
1110
|
-
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
|
|
1111
|
-
}
|
|
1112
|
-
set page_size(value: number) {
|
|
1113
|
-
pb_1.Message.setField(this, 1, value);
|
|
1114
|
-
}
|
|
1115
|
-
get page_token() {
|
|
1116
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
1117
|
-
}
|
|
1118
|
-
set page_token(value: string) {
|
|
1119
|
-
pb_1.Message.setField(this, 2, value);
|
|
1120
|
-
}
|
|
1121
|
-
static fromObject(data: {
|
|
1122
|
-
page_size?: number;
|
|
1123
|
-
page_token?: string;
|
|
1124
|
-
}): ListNumbersRequest {
|
|
1125
|
-
const message = new ListNumbersRequest({});
|
|
1126
|
-
if (data.page_size != null) {
|
|
1127
|
-
message.page_size = data.page_size;
|
|
1128
|
-
}
|
|
1129
|
-
if (data.page_token != null) {
|
|
1130
|
-
message.page_token = data.page_token;
|
|
1131
|
-
}
|
|
1132
|
-
return message;
|
|
1133
|
-
}
|
|
1134
|
-
toObject() {
|
|
1135
|
-
const data: {
|
|
1136
|
-
page_size?: number;
|
|
1137
|
-
page_token?: string;
|
|
1138
|
-
} = {};
|
|
1139
|
-
if (this.page_size != null) {
|
|
1140
|
-
data.page_size = this.page_size;
|
|
1141
|
-
}
|
|
1142
|
-
if (this.page_token != null) {
|
|
1143
|
-
data.page_token = this.page_token;
|
|
1144
|
-
}
|
|
1145
|
-
return data;
|
|
1146
|
-
}
|
|
1147
|
-
serialize(): Uint8Array;
|
|
1148
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
1149
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1150
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
1151
|
-
if (this.page_size != 0)
|
|
1152
|
-
writer.writeInt32(1, this.page_size);
|
|
1153
|
-
if (this.page_token.length)
|
|
1154
|
-
writer.writeString(2, this.page_token);
|
|
1155
|
-
if (!w)
|
|
1156
|
-
return writer.getResultBuffer();
|
|
1157
|
-
}
|
|
1158
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListNumbersRequest {
|
|
1159
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ListNumbersRequest();
|
|
1160
|
-
while (reader.nextField()) {
|
|
1161
|
-
if (reader.isEndGroup())
|
|
1162
|
-
break;
|
|
1163
|
-
switch (reader.getFieldNumber()) {
|
|
1164
|
-
case 1:
|
|
1165
|
-
message.page_size = reader.readInt32();
|
|
1166
|
-
break;
|
|
1167
|
-
case 2:
|
|
1168
|
-
message.page_token = reader.readString();
|
|
1169
|
-
break;
|
|
1170
|
-
default: reader.skipField();
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
return message;
|
|
1174
|
-
}
|
|
1175
|
-
serializeBinary(): Uint8Array {
|
|
1176
|
-
return this.serialize();
|
|
1177
|
-
}
|
|
1178
|
-
static deserializeBinary(bytes: Uint8Array): ListNumbersRequest {
|
|
1179
|
-
return ListNumbersRequest.deserialize(bytes);
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
export class ListNumbersResponse extends pb_1.Message {
|
|
1183
|
-
#one_of_decls: number[][] = [];
|
|
1184
|
-
constructor(data?: any[] | {
|
|
1185
|
-
items?: Number[];
|
|
1186
|
-
next_page_token?: string;
|
|
1187
|
-
}) {
|
|
1188
|
-
super();
|
|
1189
|
-
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
|
|
1190
|
-
if (!Array.isArray(data) && typeof data == "object") {
|
|
1191
|
-
if ("items" in data && data.items != undefined) {
|
|
1192
|
-
this.items = data.items;
|
|
1193
|
-
}
|
|
1194
|
-
if ("next_page_token" in data && data.next_page_token != undefined) {
|
|
1195
|
-
this.next_page_token = data.next_page_token;
|
|
1196
|
-
}
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
get items() {
|
|
1200
|
-
return pb_1.Message.getRepeatedWrapperField(this, Number, 1) as Number[];
|
|
1201
|
-
}
|
|
1202
|
-
set items(value: Number[]) {
|
|
1203
|
-
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
|
1204
|
-
}
|
|
1205
|
-
get next_page_token() {
|
|
1206
|
-
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
1207
|
-
}
|
|
1208
|
-
set next_page_token(value: string) {
|
|
1209
|
-
pb_1.Message.setField(this, 2, value);
|
|
1210
|
-
}
|
|
1211
|
-
static fromObject(data: {
|
|
1212
|
-
items?: ReturnType<typeof Number.prototype.toObject>[];
|
|
1213
|
-
next_page_token?: string;
|
|
1214
|
-
}): ListNumbersResponse {
|
|
1215
|
-
const message = new ListNumbersResponse({});
|
|
1216
|
-
if (data.items != null) {
|
|
1217
|
-
message.items = data.items.map(item => Number.fromObject(item));
|
|
1218
|
-
}
|
|
1219
|
-
if (data.next_page_token != null) {
|
|
1220
|
-
message.next_page_token = data.next_page_token;
|
|
1221
|
-
}
|
|
1222
|
-
return message;
|
|
1223
|
-
}
|
|
1224
|
-
toObject() {
|
|
1225
|
-
const data: {
|
|
1226
|
-
items?: ReturnType<typeof Number.prototype.toObject>[];
|
|
1227
|
-
next_page_token?: string;
|
|
1228
|
-
} = {};
|
|
1229
|
-
if (this.items != null) {
|
|
1230
|
-
data.items = this.items.map((item: Number) => item.toObject());
|
|
1231
|
-
}
|
|
1232
|
-
if (this.next_page_token != null) {
|
|
1233
|
-
data.next_page_token = this.next_page_token;
|
|
1234
|
-
}
|
|
1235
|
-
return data;
|
|
1236
|
-
}
|
|
1237
|
-
serialize(): Uint8Array;
|
|
1238
|
-
serialize(w: pb_1.BinaryWriter): void;
|
|
1239
|
-
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
1240
|
-
const writer = w || new pb_1.BinaryWriter();
|
|
1241
|
-
if (this.items.length)
|
|
1242
|
-
writer.writeRepeatedMessage(1, this.items, (item: Number) => item.serialize(writer));
|
|
1243
|
-
if (this.next_page_token.length)
|
|
1244
|
-
writer.writeString(2, this.next_page_token);
|
|
1245
|
-
if (!w)
|
|
1246
|
-
return writer.getResultBuffer();
|
|
1247
|
-
}
|
|
1248
|
-
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListNumbersResponse {
|
|
1249
|
-
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ListNumbersResponse();
|
|
1250
|
-
while (reader.nextField()) {
|
|
1251
|
-
if (reader.isEndGroup())
|
|
1252
|
-
break;
|
|
1253
|
-
switch (reader.getFieldNumber()) {
|
|
1254
|
-
case 1:
|
|
1255
|
-
reader.readMessage(message.items, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Number.deserialize(reader), Number));
|
|
1256
|
-
break;
|
|
1257
|
-
case 2:
|
|
1258
|
-
message.next_page_token = reader.readString();
|
|
1259
|
-
break;
|
|
1260
|
-
default: reader.skipField();
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
return message;
|
|
1264
|
-
}
|
|
1265
|
-
serializeBinary(): Uint8Array {
|
|
1266
|
-
return this.serialize();
|
|
1267
|
-
}
|
|
1268
|
-
static deserializeBinary(bytes: Uint8Array): ListNumbersResponse {
|
|
1269
|
-
return ListNumbersResponse.deserialize(bytes);
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
interface GrpcUnaryServiceInterface<P, R> {
|
|
1273
|
-
(message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
1274
|
-
(message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
1275
|
-
(message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
1276
|
-
(message: P, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
1277
|
-
}
|
|
1278
|
-
interface GrpcStreamServiceInterface<P, R> {
|
|
1279
|
-
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>;
|
|
1280
|
-
(message: P, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>;
|
|
1281
|
-
}
|
|
1282
|
-
interface GrpWritableServiceInterface<P, R> {
|
|
1283
|
-
(metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
1284
|
-
(metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
1285
|
-
(options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
1286
|
-
(callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
|
|
1287
|
-
}
|
|
1288
|
-
interface GrpcChunkServiceInterface<P, R> {
|
|
1289
|
-
(metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>;
|
|
1290
|
-
(options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>;
|
|
1291
|
-
}
|
|
1292
|
-
interface GrpcPromiseServiceInterface<P, R> {
|
|
1293
|
-
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
1294
|
-
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
1295
|
-
}
|
|
1296
|
-
export abstract class UnimplementedNumbersService {
|
|
1297
|
-
static definition = {
|
|
1298
|
-
CreateNumber: {
|
|
1299
|
-
path: "/fonoster.numbers.v1beta2.Numbers/CreateNumber",
|
|
1300
|
-
requestStream: false,
|
|
1301
|
-
responseStream: false,
|
|
1302
|
-
requestSerialize: (message: CreateNumberRequest) => Buffer.from(message.serialize()),
|
|
1303
|
-
requestDeserialize: (bytes: Buffer) => CreateNumberRequest.deserialize(new Uint8Array(bytes)),
|
|
1304
|
-
responseSerialize: (message: CreateNumberResponse) => Buffer.from(message.serialize()),
|
|
1305
|
-
responseDeserialize: (bytes: Buffer) => CreateNumberResponse.deserialize(new Uint8Array(bytes))
|
|
1306
|
-
},
|
|
1307
|
-
UpdateNumber: {
|
|
1308
|
-
path: "/fonoster.numbers.v1beta2.Numbers/UpdateNumber",
|
|
1309
|
-
requestStream: false,
|
|
1310
|
-
responseStream: false,
|
|
1311
|
-
requestSerialize: (message: UpdateNumberRequest) => Buffer.from(message.serialize()),
|
|
1312
|
-
requestDeserialize: (bytes: Buffer) => UpdateNumberRequest.deserialize(new Uint8Array(bytes)),
|
|
1313
|
-
responseSerialize: (message: UpdateNumberResponse) => Buffer.from(message.serialize()),
|
|
1314
|
-
responseDeserialize: (bytes: Buffer) => UpdateNumberResponse.deserialize(new Uint8Array(bytes))
|
|
1315
|
-
},
|
|
1316
|
-
GetNumber: {
|
|
1317
|
-
path: "/fonoster.numbers.v1beta2.Numbers/GetNumber",
|
|
1318
|
-
requestStream: false,
|
|
1319
|
-
responseStream: false,
|
|
1320
|
-
requestSerialize: (message: GetNumberRequest) => Buffer.from(message.serialize()),
|
|
1321
|
-
requestDeserialize: (bytes: Buffer) => GetNumberRequest.deserialize(new Uint8Array(bytes)),
|
|
1322
|
-
responseSerialize: (message: Number) => Buffer.from(message.serialize()),
|
|
1323
|
-
responseDeserialize: (bytes: Buffer) => Number.deserialize(new Uint8Array(bytes))
|
|
1324
|
-
},
|
|
1325
|
-
DeleteNumber: {
|
|
1326
|
-
path: "/fonoster.numbers.v1beta2.Numbers/DeleteNumber",
|
|
1327
|
-
requestStream: false,
|
|
1328
|
-
responseStream: false,
|
|
1329
|
-
requestSerialize: (message: DeleteNumberRequest) => Buffer.from(message.serialize()),
|
|
1330
|
-
requestDeserialize: (bytes: Buffer) => DeleteNumberRequest.deserialize(new Uint8Array(bytes)),
|
|
1331
|
-
responseSerialize: (message: DeleteNumberResponse) => Buffer.from(message.serialize()),
|
|
1332
|
-
responseDeserialize: (bytes: Buffer) => DeleteNumberResponse.deserialize(new Uint8Array(bytes))
|
|
1333
|
-
},
|
|
1334
|
-
ListNumbers: {
|
|
1335
|
-
path: "/fonoster.numbers.v1beta2.Numbers/ListNumbers",
|
|
1336
|
-
requestStream: false,
|
|
1337
|
-
responseStream: false,
|
|
1338
|
-
requestSerialize: (message: ListNumbersRequest) => Buffer.from(message.serialize()),
|
|
1339
|
-
requestDeserialize: (bytes: Buffer) => ListNumbersRequest.deserialize(new Uint8Array(bytes)),
|
|
1340
|
-
responseSerialize: (message: ListNumbersResponse) => Buffer.from(message.serialize()),
|
|
1341
|
-
responseDeserialize: (bytes: Buffer) => ListNumbersResponse.deserialize(new Uint8Array(bytes))
|
|
1342
|
-
}
|
|
1343
|
-
};
|
|
1344
|
-
[method: string]: grpc_1.UntypedHandleCall;
|
|
1345
|
-
abstract CreateNumber(call: grpc_1.ServerUnaryCall<CreateNumberRequest, CreateNumberResponse>, callback: grpc_1.sendUnaryData<CreateNumberResponse>): void;
|
|
1346
|
-
abstract UpdateNumber(call: grpc_1.ServerUnaryCall<UpdateNumberRequest, UpdateNumberResponse>, callback: grpc_1.sendUnaryData<UpdateNumberResponse>): void;
|
|
1347
|
-
abstract GetNumber(call: grpc_1.ServerUnaryCall<GetNumberRequest, Number>, callback: grpc_1.sendUnaryData<Number>): void;
|
|
1348
|
-
abstract DeleteNumber(call: grpc_1.ServerUnaryCall<DeleteNumberRequest, DeleteNumberResponse>, callback: grpc_1.sendUnaryData<DeleteNumberResponse>): void;
|
|
1349
|
-
abstract ListNumbers(call: grpc_1.ServerUnaryCall<ListNumbersRequest, ListNumbersResponse>, callback: grpc_1.sendUnaryData<ListNumbersResponse>): void;
|
|
1350
|
-
}
|
|
1351
|
-
export class NumbersClient extends grpc_1.makeGenericClientConstructor(UnimplementedNumbersService.definition, "Numbers", {}) {
|
|
1352
|
-
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>) {
|
|
1353
|
-
super(address, credentials, options);
|
|
1354
|
-
}
|
|
1355
|
-
CreateNumber: GrpcUnaryServiceInterface<CreateNumberRequest, CreateNumberResponse> = (message: CreateNumberRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<CreateNumberResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<CreateNumberResponse>, callback?: grpc_1.requestCallback<CreateNumberResponse>): grpc_1.ClientUnaryCall => {
|
|
1356
|
-
return super.CreateNumber(message, metadata, options, callback);
|
|
1357
|
-
};
|
|
1358
|
-
UpdateNumber: GrpcUnaryServiceInterface<UpdateNumberRequest, UpdateNumberResponse> = (message: UpdateNumberRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<UpdateNumberResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<UpdateNumberResponse>, callback?: grpc_1.requestCallback<UpdateNumberResponse>): grpc_1.ClientUnaryCall => {
|
|
1359
|
-
return super.UpdateNumber(message, metadata, options, callback);
|
|
1360
|
-
};
|
|
1361
|
-
GetNumber: GrpcUnaryServiceInterface<GetNumberRequest, Number> = (message: GetNumberRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<Number>, options?: grpc_1.CallOptions | grpc_1.requestCallback<Number>, callback?: grpc_1.requestCallback<Number>): grpc_1.ClientUnaryCall => {
|
|
1362
|
-
return super.GetNumber(message, metadata, options, callback);
|
|
1363
|
-
};
|
|
1364
|
-
DeleteNumber: GrpcUnaryServiceInterface<DeleteNumberRequest, DeleteNumberResponse> = (message: DeleteNumberRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<DeleteNumberResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<DeleteNumberResponse>, callback?: grpc_1.requestCallback<DeleteNumberResponse>): grpc_1.ClientUnaryCall => {
|
|
1365
|
-
return super.DeleteNumber(message, metadata, options, callback);
|
|
1366
|
-
};
|
|
1367
|
-
ListNumbers: GrpcUnaryServiceInterface<ListNumbersRequest, ListNumbersResponse> = (message: ListNumbersRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<ListNumbersResponse>, options?: grpc_1.CallOptions | grpc_1.requestCallback<ListNumbersResponse>, callback?: grpc_1.requestCallback<ListNumbersResponse>): grpc_1.ClientUnaryCall => {
|
|
1368
|
-
return super.ListNumbers(message, metadata, options, callback);
|
|
1369
|
-
};
|
|
1370
|
-
}
|
|
1371
|
-
}
|