@fonoster/sdk 0.6.0 → 0.6.1
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/LICENSE +21 -0
- package/README.md +358 -2
- package/dist/node/Applications.d.ts +206 -0
- package/dist/node/Applications.js +267 -0
- package/dist/node/client/AbstractClient.d.ts +22 -0
- package/dist/node/client/AbstractClient.js +86 -0
- package/dist/node/client/Client.d.ts +15 -0
- package/dist/node/client/Client.js +61 -0
- package/dist/node/client/TokenRefresherNode.d.ts +8 -0
- package/dist/node/client/TokenRefresherNode.js +43 -0
- package/dist/node/client/TokenRefresherWeb.d.ts +13 -0
- package/dist/node/client/TokenRefresherWeb.js +44 -0
- package/dist/node/client/isJwtExpired.d.ts +2 -0
- package/dist/node/client/isJwtExpired.js +37 -0
- package/dist/node/client/jsonToObject.d.ts +8 -0
- package/dist/node/client/jsonToObject.js +31 -0
- package/dist/node/client/makeRpcRequest.d.ts +11 -0
- package/dist/node/client/makeRpcRequest.js +44 -0
- package/dist/node/client/objectToJson.d.ts +3 -0
- package/dist/node/client/objectToJson.js +32 -0
- package/dist/node/client/types.d.ts +26 -0
- package/dist/node/client/types.js +2 -0
- package/dist/node/client/utils.d.ts +5 -0
- package/dist/node/client/utils.js +17 -0
- package/dist/node/generated/node/acls.ts +1054 -0
- package/dist/node/generated/node/acls_grpc_pb.js +200 -0
- package/dist/node/generated/node/acls_pb.js +2063 -0
- package/dist/node/generated/node/agents.ts +1388 -0
- package/dist/node/generated/node/agents_grpc_pb.js +202 -0
- package/dist/node/generated/node/agents_pb.js +2403 -0
- package/dist/node/generated/node/applications.ts +1411 -0
- package/dist/node/generated/node/applications_grpc_pb.js +201 -0
- package/dist/node/generated/node/applications_pb.js +2651 -0
- package/dist/node/generated/node/calls.ts +1123 -0
- package/dist/node/generated/node/calls_grpc_pb.js +169 -0
- package/dist/node/generated/node/calls_pb.js +1916 -0
- package/dist/node/generated/node/credentials.ts +1054 -0
- package/dist/node/generated/node/credentials_grpc_pb.js +200 -0
- package/dist/node/generated/node/credentials_pb.js +1928 -0
- package/dist/node/generated/node/domains.ts +1144 -0
- package/dist/node/generated/node/domains_grpc_pb.js +200 -0
- package/dist/node/generated/node/domains_pb.js +2170 -0
- package/dist/node/generated/node/google/protobuf/empty.ts +48 -0
- package/dist/node/generated/node/google/protobuf/struct.ts +408 -0
- package/dist/node/generated/node/identity.ts +4267 -0
- package/dist/node/generated/node/identity_grpc_pb.js +761 -0
- package/dist/node/generated/node/identity_pb.js +8058 -0
- package/dist/node/generated/node/numbers.ts +1371 -0
- package/dist/node/generated/node/numbers_grpc_pb.js +201 -0
- package/dist/node/generated/node/numbers_pb.js +2470 -0
- package/dist/node/generated/node/secrets.ts +985 -0
- package/dist/node/generated/node/secrets_grpc_pb.js +200 -0
- package/dist/node/generated/node/secrets_pb.js +1838 -0
- package/dist/node/generated/node/trunks.ts +1546 -0
- package/dist/node/generated/node/trunks_grpc_pb.js +202 -0
- package/dist/node/generated/node/trunks_pb.js +2777 -0
- package/dist/node/generated/web/AclsServiceClientPb.ts +258 -0
- package/dist/node/generated/web/AgentsServiceClientPb.ts +258 -0
- package/dist/node/generated/web/ApplicationsServiceClientPb.ts +258 -0
- package/dist/node/generated/web/CallsServiceClientPb.ts +194 -0
- package/dist/node/generated/web/CredentialsServiceClientPb.ts +258 -0
- package/dist/node/generated/web/DomainsServiceClientPb.ts +258 -0
- package/dist/node/generated/web/IdentityServiceClientPb.ts +990 -0
- package/dist/node/generated/web/NumbersServiceClientPb.ts +258 -0
- package/dist/node/generated/web/SecretsServiceClientPb.ts +258 -0
- package/dist/node/generated/web/TrunksServiceClientPb.ts +258 -0
- package/dist/node/generated/web/acls.ts +1054 -0
- package/dist/node/generated/web/acls_pb.d.ts +246 -0
- package/dist/node/generated/web/acls_pb.js +2063 -0
- package/dist/node/generated/web/agents.ts +1388 -0
- package/dist/node/generated/web/agents_pb.d.ts +300 -0
- package/dist/node/generated/web/agents_pb.js +2403 -0
- package/dist/node/generated/web/applications.ts +1411 -0
- package/dist/node/generated/web/applications_pb.d.ts +322 -0
- package/dist/node/generated/web/applications_pb.js +2651 -0
- package/dist/node/generated/web/calls.ts +1123 -0
- package/dist/node/generated/web/calls_pb.d.ts +262 -0
- package/dist/node/generated/web/calls_pb.js +1916 -0
- package/dist/node/generated/web/credentials.ts +1054 -0
- package/dist/node/generated/web/credentials_pb.d.ts +234 -0
- package/dist/node/generated/web/credentials_pb.js +1928 -0
- package/dist/node/generated/web/domains.ts +1144 -0
- package/dist/node/generated/web/domains_pb.d.ts +260 -0
- package/dist/node/generated/web/domains_pb.js +2170 -0
- package/dist/node/generated/web/google/protobuf/empty.ts +48 -0
- package/dist/node/generated/web/google/protobuf/struct.ts +408 -0
- package/dist/node/generated/web/identity.ts +4267 -0
- package/dist/node/generated/web/identity_pb.d.ts +973 -0
- package/dist/node/generated/web/identity_pb.js +8058 -0
- package/dist/node/generated/web/numbers.ts +1371 -0
- package/dist/node/generated/web/numbers_pb.d.ts +305 -0
- package/dist/node/generated/web/numbers_pb.js +2470 -0
- package/dist/node/generated/web/secrets.ts +985 -0
- package/dist/node/generated/web/secrets_pb.d.ts +222 -0
- package/dist/node/generated/web/secrets_pb.js +1838 -0
- package/dist/node/generated/web/trunks.ts +1546 -0
- package/dist/node/generated/web/trunks_pb.d.ts +338 -0
- package/dist/node/generated/web/trunks_pb.js +2777 -0
- package/dist/node/node.d.ts +2 -0
- package/dist/node/node.js +36 -0
- package/dist/node/tsconfig.node.tsbuildinfo +1 -0
- package/dist/node/utils.d.ts +22 -0
- package/dist/node/utils.js +54 -0
- package/dist/web/fonoster.min.js +1 -0
- package/dist/web/index.esm.js +1 -0
- package/package.json +24 -12
- package/dist/fonoster.min.js +0 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.esm.js +0 -1
- package/dist/index.js +0 -1
- package/dist/printHello.d.ts +0 -2
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for fonoster.applications.v1beta2
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v3.20.3
|
|
11
|
+
// source: applications.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as applications_pb from './applications_pb'; // proto import: "applications.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class ApplicationsClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'text';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorCreateApplication = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/fonoster.applications.v1beta2.Applications/CreateApplication',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
applications_pb.CreateApplicationRequest,
|
|
46
|
+
applications_pb.CreateApplicationResponse,
|
|
47
|
+
(request: applications_pb.CreateApplicationRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
applications_pb.CreateApplicationResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
createApplication(
|
|
54
|
+
request: applications_pb.CreateApplicationRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<applications_pb.CreateApplicationResponse>;
|
|
56
|
+
|
|
57
|
+
createApplication(
|
|
58
|
+
request: applications_pb.CreateApplicationRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: applications_pb.CreateApplicationResponse) => void): grpcWeb.ClientReadableStream<applications_pb.CreateApplicationResponse>;
|
|
62
|
+
|
|
63
|
+
createApplication(
|
|
64
|
+
request: applications_pb.CreateApplicationRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: applications_pb.CreateApplicationResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/fonoster.applications.v1beta2.Applications/CreateApplication',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorCreateApplication,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/fonoster.applications.v1beta2.Applications/CreateApplication',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorCreateApplication);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
methodDescriptorGetApplication = new grpcWeb.MethodDescriptor(
|
|
86
|
+
'/fonoster.applications.v1beta2.Applications/GetApplication',
|
|
87
|
+
grpcWeb.MethodType.UNARY,
|
|
88
|
+
applications_pb.GetApplicationRequest,
|
|
89
|
+
applications_pb.Application,
|
|
90
|
+
(request: applications_pb.GetApplicationRequest) => {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
applications_pb.Application.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
getApplication(
|
|
97
|
+
request: applications_pb.GetApplicationRequest,
|
|
98
|
+
metadata?: grpcWeb.Metadata | null): Promise<applications_pb.Application>;
|
|
99
|
+
|
|
100
|
+
getApplication(
|
|
101
|
+
request: applications_pb.GetApplicationRequest,
|
|
102
|
+
metadata: grpcWeb.Metadata | null,
|
|
103
|
+
callback: (err: grpcWeb.RpcError,
|
|
104
|
+
response: applications_pb.Application) => void): grpcWeb.ClientReadableStream<applications_pb.Application>;
|
|
105
|
+
|
|
106
|
+
getApplication(
|
|
107
|
+
request: applications_pb.GetApplicationRequest,
|
|
108
|
+
metadata?: grpcWeb.Metadata | null,
|
|
109
|
+
callback?: (err: grpcWeb.RpcError,
|
|
110
|
+
response: applications_pb.Application) => void) {
|
|
111
|
+
if (callback !== undefined) {
|
|
112
|
+
return this.client_.rpcCall(
|
|
113
|
+
this.hostname_ +
|
|
114
|
+
'/fonoster.applications.v1beta2.Applications/GetApplication',
|
|
115
|
+
request,
|
|
116
|
+
metadata || {},
|
|
117
|
+
this.methodDescriptorGetApplication,
|
|
118
|
+
callback);
|
|
119
|
+
}
|
|
120
|
+
return this.client_.unaryCall(
|
|
121
|
+
this.hostname_ +
|
|
122
|
+
'/fonoster.applications.v1beta2.Applications/GetApplication',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
this.methodDescriptorGetApplication);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
methodDescriptorListApplications = new grpcWeb.MethodDescriptor(
|
|
129
|
+
'/fonoster.applications.v1beta2.Applications/ListApplications',
|
|
130
|
+
grpcWeb.MethodType.UNARY,
|
|
131
|
+
applications_pb.ListApplicationsRequest,
|
|
132
|
+
applications_pb.ListApplicationsResponse,
|
|
133
|
+
(request: applications_pb.ListApplicationsRequest) => {
|
|
134
|
+
return request.serializeBinary();
|
|
135
|
+
},
|
|
136
|
+
applications_pb.ListApplicationsResponse.deserializeBinary
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
listApplications(
|
|
140
|
+
request: applications_pb.ListApplicationsRequest,
|
|
141
|
+
metadata?: grpcWeb.Metadata | null): Promise<applications_pb.ListApplicationsResponse>;
|
|
142
|
+
|
|
143
|
+
listApplications(
|
|
144
|
+
request: applications_pb.ListApplicationsRequest,
|
|
145
|
+
metadata: grpcWeb.Metadata | null,
|
|
146
|
+
callback: (err: grpcWeb.RpcError,
|
|
147
|
+
response: applications_pb.ListApplicationsResponse) => void): grpcWeb.ClientReadableStream<applications_pb.ListApplicationsResponse>;
|
|
148
|
+
|
|
149
|
+
listApplications(
|
|
150
|
+
request: applications_pb.ListApplicationsRequest,
|
|
151
|
+
metadata?: grpcWeb.Metadata | null,
|
|
152
|
+
callback?: (err: grpcWeb.RpcError,
|
|
153
|
+
response: applications_pb.ListApplicationsResponse) => void) {
|
|
154
|
+
if (callback !== undefined) {
|
|
155
|
+
return this.client_.rpcCall(
|
|
156
|
+
this.hostname_ +
|
|
157
|
+
'/fonoster.applications.v1beta2.Applications/ListApplications',
|
|
158
|
+
request,
|
|
159
|
+
metadata || {},
|
|
160
|
+
this.methodDescriptorListApplications,
|
|
161
|
+
callback);
|
|
162
|
+
}
|
|
163
|
+
return this.client_.unaryCall(
|
|
164
|
+
this.hostname_ +
|
|
165
|
+
'/fonoster.applications.v1beta2.Applications/ListApplications',
|
|
166
|
+
request,
|
|
167
|
+
metadata || {},
|
|
168
|
+
this.methodDescriptorListApplications);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
methodDescriptorUpdateApplication = new grpcWeb.MethodDescriptor(
|
|
172
|
+
'/fonoster.applications.v1beta2.Applications/UpdateApplication',
|
|
173
|
+
grpcWeb.MethodType.UNARY,
|
|
174
|
+
applications_pb.UpdateApplicationRequest,
|
|
175
|
+
applications_pb.UpdateApplicationResponse,
|
|
176
|
+
(request: applications_pb.UpdateApplicationRequest) => {
|
|
177
|
+
return request.serializeBinary();
|
|
178
|
+
},
|
|
179
|
+
applications_pb.UpdateApplicationResponse.deserializeBinary
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
updateApplication(
|
|
183
|
+
request: applications_pb.UpdateApplicationRequest,
|
|
184
|
+
metadata?: grpcWeb.Metadata | null): Promise<applications_pb.UpdateApplicationResponse>;
|
|
185
|
+
|
|
186
|
+
updateApplication(
|
|
187
|
+
request: applications_pb.UpdateApplicationRequest,
|
|
188
|
+
metadata: grpcWeb.Metadata | null,
|
|
189
|
+
callback: (err: grpcWeb.RpcError,
|
|
190
|
+
response: applications_pb.UpdateApplicationResponse) => void): grpcWeb.ClientReadableStream<applications_pb.UpdateApplicationResponse>;
|
|
191
|
+
|
|
192
|
+
updateApplication(
|
|
193
|
+
request: applications_pb.UpdateApplicationRequest,
|
|
194
|
+
metadata?: grpcWeb.Metadata | null,
|
|
195
|
+
callback?: (err: grpcWeb.RpcError,
|
|
196
|
+
response: applications_pb.UpdateApplicationResponse) => void) {
|
|
197
|
+
if (callback !== undefined) {
|
|
198
|
+
return this.client_.rpcCall(
|
|
199
|
+
this.hostname_ +
|
|
200
|
+
'/fonoster.applications.v1beta2.Applications/UpdateApplication',
|
|
201
|
+
request,
|
|
202
|
+
metadata || {},
|
|
203
|
+
this.methodDescriptorUpdateApplication,
|
|
204
|
+
callback);
|
|
205
|
+
}
|
|
206
|
+
return this.client_.unaryCall(
|
|
207
|
+
this.hostname_ +
|
|
208
|
+
'/fonoster.applications.v1beta2.Applications/UpdateApplication',
|
|
209
|
+
request,
|
|
210
|
+
metadata || {},
|
|
211
|
+
this.methodDescriptorUpdateApplication);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
methodDescriptorDeleteApplication = new grpcWeb.MethodDescriptor(
|
|
215
|
+
'/fonoster.applications.v1beta2.Applications/DeleteApplication',
|
|
216
|
+
grpcWeb.MethodType.UNARY,
|
|
217
|
+
applications_pb.DeleteApplicationRequest,
|
|
218
|
+
applications_pb.DeleteApplicationResponse,
|
|
219
|
+
(request: applications_pb.DeleteApplicationRequest) => {
|
|
220
|
+
return request.serializeBinary();
|
|
221
|
+
},
|
|
222
|
+
applications_pb.DeleteApplicationResponse.deserializeBinary
|
|
223
|
+
);
|
|
224
|
+
|
|
225
|
+
deleteApplication(
|
|
226
|
+
request: applications_pb.DeleteApplicationRequest,
|
|
227
|
+
metadata?: grpcWeb.Metadata | null): Promise<applications_pb.DeleteApplicationResponse>;
|
|
228
|
+
|
|
229
|
+
deleteApplication(
|
|
230
|
+
request: applications_pb.DeleteApplicationRequest,
|
|
231
|
+
metadata: grpcWeb.Metadata | null,
|
|
232
|
+
callback: (err: grpcWeb.RpcError,
|
|
233
|
+
response: applications_pb.DeleteApplicationResponse) => void): grpcWeb.ClientReadableStream<applications_pb.DeleteApplicationResponse>;
|
|
234
|
+
|
|
235
|
+
deleteApplication(
|
|
236
|
+
request: applications_pb.DeleteApplicationRequest,
|
|
237
|
+
metadata?: grpcWeb.Metadata | null,
|
|
238
|
+
callback?: (err: grpcWeb.RpcError,
|
|
239
|
+
response: applications_pb.DeleteApplicationResponse) => void) {
|
|
240
|
+
if (callback !== undefined) {
|
|
241
|
+
return this.client_.rpcCall(
|
|
242
|
+
this.hostname_ +
|
|
243
|
+
'/fonoster.applications.v1beta2.Applications/DeleteApplication',
|
|
244
|
+
request,
|
|
245
|
+
metadata || {},
|
|
246
|
+
this.methodDescriptorDeleteApplication,
|
|
247
|
+
callback);
|
|
248
|
+
}
|
|
249
|
+
return this.client_.unaryCall(
|
|
250
|
+
this.hostname_ +
|
|
251
|
+
'/fonoster.applications.v1beta2.Applications/DeleteApplication',
|
|
252
|
+
request,
|
|
253
|
+
metadata || {},
|
|
254
|
+
this.methodDescriptorDeleteApplication);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
}
|
|
258
|
+
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for fonoster.calls.v1beta2
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v3.20.3
|
|
11
|
+
// source: calls.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as calls_pb from './calls_pb'; // proto import: "calls.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class CallsClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'text';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorCreateCall = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/fonoster.calls.v1beta2.Calls/CreateCall',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
calls_pb.CreateCallRequest,
|
|
46
|
+
calls_pb.CreateCallResponse,
|
|
47
|
+
(request: calls_pb.CreateCallRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
calls_pb.CreateCallResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
createCall(
|
|
54
|
+
request: calls_pb.CreateCallRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<calls_pb.CreateCallResponse>;
|
|
56
|
+
|
|
57
|
+
createCall(
|
|
58
|
+
request: calls_pb.CreateCallRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: calls_pb.CreateCallResponse) => void): grpcWeb.ClientReadableStream<calls_pb.CreateCallResponse>;
|
|
62
|
+
|
|
63
|
+
createCall(
|
|
64
|
+
request: calls_pb.CreateCallRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: calls_pb.CreateCallResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/fonoster.calls.v1beta2.Calls/CreateCall',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorCreateCall,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/fonoster.calls.v1beta2.Calls/CreateCall',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorCreateCall);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
methodDescriptorListCalls = new grpcWeb.MethodDescriptor(
|
|
86
|
+
'/fonoster.calls.v1beta2.Calls/ListCalls',
|
|
87
|
+
grpcWeb.MethodType.UNARY,
|
|
88
|
+
calls_pb.ListCallsRequest,
|
|
89
|
+
calls_pb.ListCallsResponse,
|
|
90
|
+
(request: calls_pb.ListCallsRequest) => {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
calls_pb.ListCallsResponse.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
listCalls(
|
|
97
|
+
request: calls_pb.ListCallsRequest,
|
|
98
|
+
metadata?: grpcWeb.Metadata | null): Promise<calls_pb.ListCallsResponse>;
|
|
99
|
+
|
|
100
|
+
listCalls(
|
|
101
|
+
request: calls_pb.ListCallsRequest,
|
|
102
|
+
metadata: grpcWeb.Metadata | null,
|
|
103
|
+
callback: (err: grpcWeb.RpcError,
|
|
104
|
+
response: calls_pb.ListCallsResponse) => void): grpcWeb.ClientReadableStream<calls_pb.ListCallsResponse>;
|
|
105
|
+
|
|
106
|
+
listCalls(
|
|
107
|
+
request: calls_pb.ListCallsRequest,
|
|
108
|
+
metadata?: grpcWeb.Metadata | null,
|
|
109
|
+
callback?: (err: grpcWeb.RpcError,
|
|
110
|
+
response: calls_pb.ListCallsResponse) => void) {
|
|
111
|
+
if (callback !== undefined) {
|
|
112
|
+
return this.client_.rpcCall(
|
|
113
|
+
this.hostname_ +
|
|
114
|
+
'/fonoster.calls.v1beta2.Calls/ListCalls',
|
|
115
|
+
request,
|
|
116
|
+
metadata || {},
|
|
117
|
+
this.methodDescriptorListCalls,
|
|
118
|
+
callback);
|
|
119
|
+
}
|
|
120
|
+
return this.client_.unaryCall(
|
|
121
|
+
this.hostname_ +
|
|
122
|
+
'/fonoster.calls.v1beta2.Calls/ListCalls',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
this.methodDescriptorListCalls);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
methodDescriptorGetCall = new grpcWeb.MethodDescriptor(
|
|
129
|
+
'/fonoster.calls.v1beta2.Calls/GetCall',
|
|
130
|
+
grpcWeb.MethodType.UNARY,
|
|
131
|
+
calls_pb.GetCallRequest,
|
|
132
|
+
calls_pb.CallDetailRecord,
|
|
133
|
+
(request: calls_pb.GetCallRequest) => {
|
|
134
|
+
return request.serializeBinary();
|
|
135
|
+
},
|
|
136
|
+
calls_pb.CallDetailRecord.deserializeBinary
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
getCall(
|
|
140
|
+
request: calls_pb.GetCallRequest,
|
|
141
|
+
metadata?: grpcWeb.Metadata | null): Promise<calls_pb.CallDetailRecord>;
|
|
142
|
+
|
|
143
|
+
getCall(
|
|
144
|
+
request: calls_pb.GetCallRequest,
|
|
145
|
+
metadata: grpcWeb.Metadata | null,
|
|
146
|
+
callback: (err: grpcWeb.RpcError,
|
|
147
|
+
response: calls_pb.CallDetailRecord) => void): grpcWeb.ClientReadableStream<calls_pb.CallDetailRecord>;
|
|
148
|
+
|
|
149
|
+
getCall(
|
|
150
|
+
request: calls_pb.GetCallRequest,
|
|
151
|
+
metadata?: grpcWeb.Metadata | null,
|
|
152
|
+
callback?: (err: grpcWeb.RpcError,
|
|
153
|
+
response: calls_pb.CallDetailRecord) => void) {
|
|
154
|
+
if (callback !== undefined) {
|
|
155
|
+
return this.client_.rpcCall(
|
|
156
|
+
this.hostname_ +
|
|
157
|
+
'/fonoster.calls.v1beta2.Calls/GetCall',
|
|
158
|
+
request,
|
|
159
|
+
metadata || {},
|
|
160
|
+
this.methodDescriptorGetCall,
|
|
161
|
+
callback);
|
|
162
|
+
}
|
|
163
|
+
return this.client_.unaryCall(
|
|
164
|
+
this.hostname_ +
|
|
165
|
+
'/fonoster.calls.v1beta2.Calls/GetCall',
|
|
166
|
+
request,
|
|
167
|
+
metadata || {},
|
|
168
|
+
this.methodDescriptorGetCall);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
methodDescriptorTrackCall = new grpcWeb.MethodDescriptor(
|
|
172
|
+
'/fonoster.calls.v1beta2.Calls/TrackCall',
|
|
173
|
+
grpcWeb.MethodType.SERVER_STREAMING,
|
|
174
|
+
calls_pb.TrackCallRequest,
|
|
175
|
+
calls_pb.TrackCallResponse,
|
|
176
|
+
(request: calls_pb.TrackCallRequest) => {
|
|
177
|
+
return request.serializeBinary();
|
|
178
|
+
},
|
|
179
|
+
calls_pb.TrackCallResponse.deserializeBinary
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
trackCall(
|
|
183
|
+
request: calls_pb.TrackCallRequest,
|
|
184
|
+
metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<calls_pb.TrackCallResponse> {
|
|
185
|
+
return this.client_.serverStreaming(
|
|
186
|
+
this.hostname_ +
|
|
187
|
+
'/fonoster.calls.v1beta2.Calls/TrackCall',
|
|
188
|
+
request,
|
|
189
|
+
metadata || {},
|
|
190
|
+
this.methodDescriptorTrackCall);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
}
|
|
194
|
+
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for fonoster.credentials.v1beta2
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Code generated by protoc-gen-grpc-web. DO NOT EDIT.
|
|
8
|
+
// versions:
|
|
9
|
+
// protoc-gen-grpc-web v1.5.0
|
|
10
|
+
// protoc v3.20.3
|
|
11
|
+
// source: credentials.proto
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/* eslint-disable */
|
|
15
|
+
// @ts-nocheck
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
import * as grpcWeb from 'grpc-web';
|
|
19
|
+
|
|
20
|
+
import * as credentials_pb from './credentials_pb'; // proto import: "credentials.proto"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export class CredentialsServiceClient {
|
|
24
|
+
client_: grpcWeb.AbstractClientBase;
|
|
25
|
+
hostname_: string;
|
|
26
|
+
credentials_: null | { [index: string]: string; };
|
|
27
|
+
options_: null | { [index: string]: any; };
|
|
28
|
+
|
|
29
|
+
constructor (hostname: string,
|
|
30
|
+
credentials?: null | { [index: string]: string; },
|
|
31
|
+
options?: null | { [index: string]: any; }) {
|
|
32
|
+
if (!options) options = {};
|
|
33
|
+
if (!credentials) credentials = {};
|
|
34
|
+
options['format'] = 'text';
|
|
35
|
+
|
|
36
|
+
this.client_ = new grpcWeb.GrpcWebClientBase(options);
|
|
37
|
+
this.hostname_ = hostname.replace(/\/+$/, '');
|
|
38
|
+
this.credentials_ = credentials;
|
|
39
|
+
this.options_ = options;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
methodDescriptorCreateCredentials = new grpcWeb.MethodDescriptor(
|
|
43
|
+
'/fonoster.credentials.v1beta2.CredentialsService/CreateCredentials',
|
|
44
|
+
grpcWeb.MethodType.UNARY,
|
|
45
|
+
credentials_pb.CreateCredentialsRequest,
|
|
46
|
+
credentials_pb.CreateCredentialsResponse,
|
|
47
|
+
(request: credentials_pb.CreateCredentialsRequest) => {
|
|
48
|
+
return request.serializeBinary();
|
|
49
|
+
},
|
|
50
|
+
credentials_pb.CreateCredentialsResponse.deserializeBinary
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
createCredentials(
|
|
54
|
+
request: credentials_pb.CreateCredentialsRequest,
|
|
55
|
+
metadata?: grpcWeb.Metadata | null): Promise<credentials_pb.CreateCredentialsResponse>;
|
|
56
|
+
|
|
57
|
+
createCredentials(
|
|
58
|
+
request: credentials_pb.CreateCredentialsRequest,
|
|
59
|
+
metadata: grpcWeb.Metadata | null,
|
|
60
|
+
callback: (err: grpcWeb.RpcError,
|
|
61
|
+
response: credentials_pb.CreateCredentialsResponse) => void): grpcWeb.ClientReadableStream<credentials_pb.CreateCredentialsResponse>;
|
|
62
|
+
|
|
63
|
+
createCredentials(
|
|
64
|
+
request: credentials_pb.CreateCredentialsRequest,
|
|
65
|
+
metadata?: grpcWeb.Metadata | null,
|
|
66
|
+
callback?: (err: grpcWeb.RpcError,
|
|
67
|
+
response: credentials_pb.CreateCredentialsResponse) => void) {
|
|
68
|
+
if (callback !== undefined) {
|
|
69
|
+
return this.client_.rpcCall(
|
|
70
|
+
this.hostname_ +
|
|
71
|
+
'/fonoster.credentials.v1beta2.CredentialsService/CreateCredentials',
|
|
72
|
+
request,
|
|
73
|
+
metadata || {},
|
|
74
|
+
this.methodDescriptorCreateCredentials,
|
|
75
|
+
callback);
|
|
76
|
+
}
|
|
77
|
+
return this.client_.unaryCall(
|
|
78
|
+
this.hostname_ +
|
|
79
|
+
'/fonoster.credentials.v1beta2.CredentialsService/CreateCredentials',
|
|
80
|
+
request,
|
|
81
|
+
metadata || {},
|
|
82
|
+
this.methodDescriptorCreateCredentials);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
methodDescriptorUpdateCredentials = new grpcWeb.MethodDescriptor(
|
|
86
|
+
'/fonoster.credentials.v1beta2.CredentialsService/UpdateCredentials',
|
|
87
|
+
grpcWeb.MethodType.UNARY,
|
|
88
|
+
credentials_pb.UpdateCredentialsRequest,
|
|
89
|
+
credentials_pb.UpdateCredentialsResponse,
|
|
90
|
+
(request: credentials_pb.UpdateCredentialsRequest) => {
|
|
91
|
+
return request.serializeBinary();
|
|
92
|
+
},
|
|
93
|
+
credentials_pb.UpdateCredentialsResponse.deserializeBinary
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
updateCredentials(
|
|
97
|
+
request: credentials_pb.UpdateCredentialsRequest,
|
|
98
|
+
metadata?: grpcWeb.Metadata | null): Promise<credentials_pb.UpdateCredentialsResponse>;
|
|
99
|
+
|
|
100
|
+
updateCredentials(
|
|
101
|
+
request: credentials_pb.UpdateCredentialsRequest,
|
|
102
|
+
metadata: grpcWeb.Metadata | null,
|
|
103
|
+
callback: (err: grpcWeb.RpcError,
|
|
104
|
+
response: credentials_pb.UpdateCredentialsResponse) => void): grpcWeb.ClientReadableStream<credentials_pb.UpdateCredentialsResponse>;
|
|
105
|
+
|
|
106
|
+
updateCredentials(
|
|
107
|
+
request: credentials_pb.UpdateCredentialsRequest,
|
|
108
|
+
metadata?: grpcWeb.Metadata | null,
|
|
109
|
+
callback?: (err: grpcWeb.RpcError,
|
|
110
|
+
response: credentials_pb.UpdateCredentialsResponse) => void) {
|
|
111
|
+
if (callback !== undefined) {
|
|
112
|
+
return this.client_.rpcCall(
|
|
113
|
+
this.hostname_ +
|
|
114
|
+
'/fonoster.credentials.v1beta2.CredentialsService/UpdateCredentials',
|
|
115
|
+
request,
|
|
116
|
+
metadata || {},
|
|
117
|
+
this.methodDescriptorUpdateCredentials,
|
|
118
|
+
callback);
|
|
119
|
+
}
|
|
120
|
+
return this.client_.unaryCall(
|
|
121
|
+
this.hostname_ +
|
|
122
|
+
'/fonoster.credentials.v1beta2.CredentialsService/UpdateCredentials',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
this.methodDescriptorUpdateCredentials);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
methodDescriptorGetCredentials = new grpcWeb.MethodDescriptor(
|
|
129
|
+
'/fonoster.credentials.v1beta2.CredentialsService/GetCredentials',
|
|
130
|
+
grpcWeb.MethodType.UNARY,
|
|
131
|
+
credentials_pb.GetCredentialsRequest,
|
|
132
|
+
credentials_pb.Credentials,
|
|
133
|
+
(request: credentials_pb.GetCredentialsRequest) => {
|
|
134
|
+
return request.serializeBinary();
|
|
135
|
+
},
|
|
136
|
+
credentials_pb.Credentials.deserializeBinary
|
|
137
|
+
);
|
|
138
|
+
|
|
139
|
+
getCredentials(
|
|
140
|
+
request: credentials_pb.GetCredentialsRequest,
|
|
141
|
+
metadata?: grpcWeb.Metadata | null): Promise<credentials_pb.Credentials>;
|
|
142
|
+
|
|
143
|
+
getCredentials(
|
|
144
|
+
request: credentials_pb.GetCredentialsRequest,
|
|
145
|
+
metadata: grpcWeb.Metadata | null,
|
|
146
|
+
callback: (err: grpcWeb.RpcError,
|
|
147
|
+
response: credentials_pb.Credentials) => void): grpcWeb.ClientReadableStream<credentials_pb.Credentials>;
|
|
148
|
+
|
|
149
|
+
getCredentials(
|
|
150
|
+
request: credentials_pb.GetCredentialsRequest,
|
|
151
|
+
metadata?: grpcWeb.Metadata | null,
|
|
152
|
+
callback?: (err: grpcWeb.RpcError,
|
|
153
|
+
response: credentials_pb.Credentials) => void) {
|
|
154
|
+
if (callback !== undefined) {
|
|
155
|
+
return this.client_.rpcCall(
|
|
156
|
+
this.hostname_ +
|
|
157
|
+
'/fonoster.credentials.v1beta2.CredentialsService/GetCredentials',
|
|
158
|
+
request,
|
|
159
|
+
metadata || {},
|
|
160
|
+
this.methodDescriptorGetCredentials,
|
|
161
|
+
callback);
|
|
162
|
+
}
|
|
163
|
+
return this.client_.unaryCall(
|
|
164
|
+
this.hostname_ +
|
|
165
|
+
'/fonoster.credentials.v1beta2.CredentialsService/GetCredentials',
|
|
166
|
+
request,
|
|
167
|
+
metadata || {},
|
|
168
|
+
this.methodDescriptorGetCredentials);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
methodDescriptorDeleteCredentials = new grpcWeb.MethodDescriptor(
|
|
172
|
+
'/fonoster.credentials.v1beta2.CredentialsService/DeleteCredentials',
|
|
173
|
+
grpcWeb.MethodType.UNARY,
|
|
174
|
+
credentials_pb.DeleteCredentialsRequest,
|
|
175
|
+
credentials_pb.DeleteCredentialsResponse,
|
|
176
|
+
(request: credentials_pb.DeleteCredentialsRequest) => {
|
|
177
|
+
return request.serializeBinary();
|
|
178
|
+
},
|
|
179
|
+
credentials_pb.DeleteCredentialsResponse.deserializeBinary
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
deleteCredentials(
|
|
183
|
+
request: credentials_pb.DeleteCredentialsRequest,
|
|
184
|
+
metadata?: grpcWeb.Metadata | null): Promise<credentials_pb.DeleteCredentialsResponse>;
|
|
185
|
+
|
|
186
|
+
deleteCredentials(
|
|
187
|
+
request: credentials_pb.DeleteCredentialsRequest,
|
|
188
|
+
metadata: grpcWeb.Metadata | null,
|
|
189
|
+
callback: (err: grpcWeb.RpcError,
|
|
190
|
+
response: credentials_pb.DeleteCredentialsResponse) => void): grpcWeb.ClientReadableStream<credentials_pb.DeleteCredentialsResponse>;
|
|
191
|
+
|
|
192
|
+
deleteCredentials(
|
|
193
|
+
request: credentials_pb.DeleteCredentialsRequest,
|
|
194
|
+
metadata?: grpcWeb.Metadata | null,
|
|
195
|
+
callback?: (err: grpcWeb.RpcError,
|
|
196
|
+
response: credentials_pb.DeleteCredentialsResponse) => void) {
|
|
197
|
+
if (callback !== undefined) {
|
|
198
|
+
return this.client_.rpcCall(
|
|
199
|
+
this.hostname_ +
|
|
200
|
+
'/fonoster.credentials.v1beta2.CredentialsService/DeleteCredentials',
|
|
201
|
+
request,
|
|
202
|
+
metadata || {},
|
|
203
|
+
this.methodDescriptorDeleteCredentials,
|
|
204
|
+
callback);
|
|
205
|
+
}
|
|
206
|
+
return this.client_.unaryCall(
|
|
207
|
+
this.hostname_ +
|
|
208
|
+
'/fonoster.credentials.v1beta2.CredentialsService/DeleteCredentials',
|
|
209
|
+
request,
|
|
210
|
+
metadata || {},
|
|
211
|
+
this.methodDescriptorDeleteCredentials);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
methodDescriptorListCredentials = new grpcWeb.MethodDescriptor(
|
|
215
|
+
'/fonoster.credentials.v1beta2.CredentialsService/ListCredentials',
|
|
216
|
+
grpcWeb.MethodType.UNARY,
|
|
217
|
+
credentials_pb.ListCredentialsRequest,
|
|
218
|
+
credentials_pb.ListCredentialsResponse,
|
|
219
|
+
(request: credentials_pb.ListCredentialsRequest) => {
|
|
220
|
+
return request.serializeBinary();
|
|
221
|
+
},
|
|
222
|
+
credentials_pb.ListCredentialsResponse.deserializeBinary
|
|
223
|
+
);
|
|
224
|
+
|
|
225
|
+
listCredentials(
|
|
226
|
+
request: credentials_pb.ListCredentialsRequest,
|
|
227
|
+
metadata?: grpcWeb.Metadata | null): Promise<credentials_pb.ListCredentialsResponse>;
|
|
228
|
+
|
|
229
|
+
listCredentials(
|
|
230
|
+
request: credentials_pb.ListCredentialsRequest,
|
|
231
|
+
metadata: grpcWeb.Metadata | null,
|
|
232
|
+
callback: (err: grpcWeb.RpcError,
|
|
233
|
+
response: credentials_pb.ListCredentialsResponse) => void): grpcWeb.ClientReadableStream<credentials_pb.ListCredentialsResponse>;
|
|
234
|
+
|
|
235
|
+
listCredentials(
|
|
236
|
+
request: credentials_pb.ListCredentialsRequest,
|
|
237
|
+
metadata?: grpcWeb.Metadata | null,
|
|
238
|
+
callback?: (err: grpcWeb.RpcError,
|
|
239
|
+
response: credentials_pb.ListCredentialsResponse) => void) {
|
|
240
|
+
if (callback !== undefined) {
|
|
241
|
+
return this.client_.rpcCall(
|
|
242
|
+
this.hostname_ +
|
|
243
|
+
'/fonoster.credentials.v1beta2.CredentialsService/ListCredentials',
|
|
244
|
+
request,
|
|
245
|
+
metadata || {},
|
|
246
|
+
this.methodDescriptorListCredentials,
|
|
247
|
+
callback);
|
|
248
|
+
}
|
|
249
|
+
return this.client_.unaryCall(
|
|
250
|
+
this.hostname_ +
|
|
251
|
+
'/fonoster.credentials.v1beta2.CredentialsService/ListCredentials',
|
|
252
|
+
request,
|
|
253
|
+
metadata || {},
|
|
254
|
+
this.methodDescriptorListCredentials);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
}
|
|
258
|
+
|