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