@ondewo/sip-client-nodejs 3.1.0
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 +191 -0
- package/README.md +27 -0
- package/api/google/protobuf/empty_grpc_pb.js +1 -0
- package/api/google/protobuf/empty_pb.d.ts +24 -0
- package/api/google/protobuf/empty_pb.js +141 -0
- package/api/google/protobuf/timestamp_grpc_pb.js +1 -0
- package/api/google/protobuf/timestamp_pb.d.ts +30 -0
- package/api/google/protobuf/timestamp_pb.js +236 -0
- package/api/ondewo/sip/sip_grpc_pb.d.ts +213 -0
- package/api/ondewo/sip/sip_grpc_pb.js +248 -0
- package/api/ondewo/sip/sip_pb.d.ts +229 -0
- package/api/ondewo/sip/sip_pb.js +1639 -0
- package/package.json +15 -0
- package/public-api.d.ts +4 -0
- package/public-api.js +6 -0
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
// package: ondewo.sip
|
|
2
|
+
// file: ondewo/sip/sip.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "grpc";
|
|
8
|
+
import * as ondewo_sip_sip_pb from "../../ondewo/sip/sip_pb";
|
|
9
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
10
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
11
|
+
|
|
12
|
+
interface ISipService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
13
|
+
startSession: ISipService_IStartSession;
|
|
14
|
+
endSession: ISipService_IEndSession;
|
|
15
|
+
startCall: ISipService_IStartCall;
|
|
16
|
+
endCall: ISipService_IEndCall;
|
|
17
|
+
transferCall: ISipService_ITransferCall;
|
|
18
|
+
registerAccount: ISipService_IRegisterAccount;
|
|
19
|
+
getSipStatus: ISipService_IGetSipStatus;
|
|
20
|
+
getSipStatusHistory: ISipService_IGetSipStatusHistory;
|
|
21
|
+
playWavFiles: ISipService_IPlayWavFiles;
|
|
22
|
+
mute: ISipService_IMute;
|
|
23
|
+
unMute: ISipService_IUnMute;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface ISipService_IStartSession extends grpc.MethodDefinition<ondewo_sip_sip_pb.StartSessionRequest, google_protobuf_empty_pb.Empty> {
|
|
27
|
+
path: "/ondewo.sip.Sip/StartSession";
|
|
28
|
+
requestStream: false;
|
|
29
|
+
responseStream: false;
|
|
30
|
+
requestSerialize: grpc.serialize<ondewo_sip_sip_pb.StartSessionRequest>;
|
|
31
|
+
requestDeserialize: grpc.deserialize<ondewo_sip_sip_pb.StartSessionRequest>;
|
|
32
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
33
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
34
|
+
}
|
|
35
|
+
interface ISipService_IEndSession extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty> {
|
|
36
|
+
path: "/ondewo.sip.Sip/EndSession";
|
|
37
|
+
requestStream: false;
|
|
38
|
+
responseStream: false;
|
|
39
|
+
requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
40
|
+
requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
41
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
42
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
43
|
+
}
|
|
44
|
+
interface ISipService_IStartCall extends grpc.MethodDefinition<ondewo_sip_sip_pb.StartCallRequest, google_protobuf_empty_pb.Empty> {
|
|
45
|
+
path: "/ondewo.sip.Sip/StartCall";
|
|
46
|
+
requestStream: false;
|
|
47
|
+
responseStream: false;
|
|
48
|
+
requestSerialize: grpc.serialize<ondewo_sip_sip_pb.StartCallRequest>;
|
|
49
|
+
requestDeserialize: grpc.deserialize<ondewo_sip_sip_pb.StartCallRequest>;
|
|
50
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
51
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
52
|
+
}
|
|
53
|
+
interface ISipService_IEndCall extends grpc.MethodDefinition<ondewo_sip_sip_pb.EndCallRequest, google_protobuf_empty_pb.Empty> {
|
|
54
|
+
path: "/ondewo.sip.Sip/EndCall";
|
|
55
|
+
requestStream: false;
|
|
56
|
+
responseStream: false;
|
|
57
|
+
requestSerialize: grpc.serialize<ondewo_sip_sip_pb.EndCallRequest>;
|
|
58
|
+
requestDeserialize: grpc.deserialize<ondewo_sip_sip_pb.EndCallRequest>;
|
|
59
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
60
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
61
|
+
}
|
|
62
|
+
interface ISipService_ITransferCall extends grpc.MethodDefinition<ondewo_sip_sip_pb.TransferCallRequest, google_protobuf_empty_pb.Empty> {
|
|
63
|
+
path: "/ondewo.sip.Sip/TransferCall";
|
|
64
|
+
requestStream: false;
|
|
65
|
+
responseStream: false;
|
|
66
|
+
requestSerialize: grpc.serialize<ondewo_sip_sip_pb.TransferCallRequest>;
|
|
67
|
+
requestDeserialize: grpc.deserialize<ondewo_sip_sip_pb.TransferCallRequest>;
|
|
68
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
69
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
70
|
+
}
|
|
71
|
+
interface ISipService_IRegisterAccount extends grpc.MethodDefinition<ondewo_sip_sip_pb.RegisterAccountRequest, google_protobuf_empty_pb.Empty> {
|
|
72
|
+
path: "/ondewo.sip.Sip/RegisterAccount";
|
|
73
|
+
requestStream: false;
|
|
74
|
+
responseStream: false;
|
|
75
|
+
requestSerialize: grpc.serialize<ondewo_sip_sip_pb.RegisterAccountRequest>;
|
|
76
|
+
requestDeserialize: grpc.deserialize<ondewo_sip_sip_pb.RegisterAccountRequest>;
|
|
77
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
78
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
79
|
+
}
|
|
80
|
+
interface ISipService_IGetSipStatus extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, ondewo_sip_sip_pb.SipStatus> {
|
|
81
|
+
path: "/ondewo.sip.Sip/GetSipStatus";
|
|
82
|
+
requestStream: false;
|
|
83
|
+
responseStream: false;
|
|
84
|
+
requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
85
|
+
requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
86
|
+
responseSerialize: grpc.serialize<ondewo_sip_sip_pb.SipStatus>;
|
|
87
|
+
responseDeserialize: grpc.deserialize<ondewo_sip_sip_pb.SipStatus>;
|
|
88
|
+
}
|
|
89
|
+
interface ISipService_IGetSipStatusHistory extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, ondewo_sip_sip_pb.SipStatusHistoryResponse> {
|
|
90
|
+
path: "/ondewo.sip.Sip/GetSipStatusHistory";
|
|
91
|
+
requestStream: false;
|
|
92
|
+
responseStream: false;
|
|
93
|
+
requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
94
|
+
requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
95
|
+
responseSerialize: grpc.serialize<ondewo_sip_sip_pb.SipStatusHistoryResponse>;
|
|
96
|
+
responseDeserialize: grpc.deserialize<ondewo_sip_sip_pb.SipStatusHistoryResponse>;
|
|
97
|
+
}
|
|
98
|
+
interface ISipService_IPlayWavFiles extends grpc.MethodDefinition<ondewo_sip_sip_pb.PlayWavFilesRequest, google_protobuf_empty_pb.Empty> {
|
|
99
|
+
path: "/ondewo.sip.Sip/PlayWavFiles";
|
|
100
|
+
requestStream: false;
|
|
101
|
+
responseStream: false;
|
|
102
|
+
requestSerialize: grpc.serialize<ondewo_sip_sip_pb.PlayWavFilesRequest>;
|
|
103
|
+
requestDeserialize: grpc.deserialize<ondewo_sip_sip_pb.PlayWavFilesRequest>;
|
|
104
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
105
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
106
|
+
}
|
|
107
|
+
interface ISipService_IMute extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty> {
|
|
108
|
+
path: "/ondewo.sip.Sip/Mute";
|
|
109
|
+
requestStream: false;
|
|
110
|
+
responseStream: false;
|
|
111
|
+
requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
112
|
+
requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
113
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
114
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
115
|
+
}
|
|
116
|
+
interface ISipService_IUnMute extends grpc.MethodDefinition<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty> {
|
|
117
|
+
path: "/ondewo.sip.Sip/UnMute";
|
|
118
|
+
requestStream: false;
|
|
119
|
+
responseStream: false;
|
|
120
|
+
requestSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
121
|
+
requestDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
122
|
+
responseSerialize: grpc.serialize<google_protobuf_empty_pb.Empty>;
|
|
123
|
+
responseDeserialize: grpc.deserialize<google_protobuf_empty_pb.Empty>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export const SipService: ISipService;
|
|
127
|
+
|
|
128
|
+
export interface ISipServer {
|
|
129
|
+
startSession: grpc.handleUnaryCall<ondewo_sip_sip_pb.StartSessionRequest, google_protobuf_empty_pb.Empty>;
|
|
130
|
+
endSession: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty>;
|
|
131
|
+
startCall: grpc.handleUnaryCall<ondewo_sip_sip_pb.StartCallRequest, google_protobuf_empty_pb.Empty>;
|
|
132
|
+
endCall: grpc.handleUnaryCall<ondewo_sip_sip_pb.EndCallRequest, google_protobuf_empty_pb.Empty>;
|
|
133
|
+
transferCall: grpc.handleUnaryCall<ondewo_sip_sip_pb.TransferCallRequest, google_protobuf_empty_pb.Empty>;
|
|
134
|
+
registerAccount: grpc.handleUnaryCall<ondewo_sip_sip_pb.RegisterAccountRequest, google_protobuf_empty_pb.Empty>;
|
|
135
|
+
getSipStatus: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, ondewo_sip_sip_pb.SipStatus>;
|
|
136
|
+
getSipStatusHistory: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, ondewo_sip_sip_pb.SipStatusHistoryResponse>;
|
|
137
|
+
playWavFiles: grpc.handleUnaryCall<ondewo_sip_sip_pb.PlayWavFilesRequest, google_protobuf_empty_pb.Empty>;
|
|
138
|
+
mute: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty>;
|
|
139
|
+
unMute: grpc.handleUnaryCall<google_protobuf_empty_pb.Empty, google_protobuf_empty_pb.Empty>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface ISipClient {
|
|
143
|
+
startSession(request: ondewo_sip_sip_pb.StartSessionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
144
|
+
startSession(request: ondewo_sip_sip_pb.StartSessionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
145
|
+
startSession(request: ondewo_sip_sip_pb.StartSessionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
146
|
+
endSession(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
147
|
+
endSession(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
148
|
+
endSession(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
149
|
+
startCall(request: ondewo_sip_sip_pb.StartCallRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
150
|
+
startCall(request: ondewo_sip_sip_pb.StartCallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
151
|
+
startCall(request: ondewo_sip_sip_pb.StartCallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
152
|
+
endCall(request: ondewo_sip_sip_pb.EndCallRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
153
|
+
endCall(request: ondewo_sip_sip_pb.EndCallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
154
|
+
endCall(request: ondewo_sip_sip_pb.EndCallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
155
|
+
transferCall(request: ondewo_sip_sip_pb.TransferCallRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
156
|
+
transferCall(request: ondewo_sip_sip_pb.TransferCallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
157
|
+
transferCall(request: ondewo_sip_sip_pb.TransferCallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
158
|
+
registerAccount(request: ondewo_sip_sip_pb.RegisterAccountRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
159
|
+
registerAccount(request: ondewo_sip_sip_pb.RegisterAccountRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
160
|
+
registerAccount(request: ondewo_sip_sip_pb.RegisterAccountRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
161
|
+
getSipStatus(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatus) => void): grpc.ClientUnaryCall;
|
|
162
|
+
getSipStatus(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatus) => void): grpc.ClientUnaryCall;
|
|
163
|
+
getSipStatus(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatus) => void): grpc.ClientUnaryCall;
|
|
164
|
+
getSipStatusHistory(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatusHistoryResponse) => void): grpc.ClientUnaryCall;
|
|
165
|
+
getSipStatusHistory(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatusHistoryResponse) => void): grpc.ClientUnaryCall;
|
|
166
|
+
getSipStatusHistory(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatusHistoryResponse) => void): grpc.ClientUnaryCall;
|
|
167
|
+
playWavFiles(request: ondewo_sip_sip_pb.PlayWavFilesRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
168
|
+
playWavFiles(request: ondewo_sip_sip_pb.PlayWavFilesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
169
|
+
playWavFiles(request: ondewo_sip_sip_pb.PlayWavFilesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
170
|
+
mute(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
171
|
+
mute(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
172
|
+
mute(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
173
|
+
unMute(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
174
|
+
unMute(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
175
|
+
unMute(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export class SipClient extends grpc.Client implements ISipClient {
|
|
179
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: object);
|
|
180
|
+
public startSession(request: ondewo_sip_sip_pb.StartSessionRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
181
|
+
public startSession(request: ondewo_sip_sip_pb.StartSessionRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
182
|
+
public startSession(request: ondewo_sip_sip_pb.StartSessionRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
183
|
+
public endSession(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
184
|
+
public endSession(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
185
|
+
public endSession(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
186
|
+
public startCall(request: ondewo_sip_sip_pb.StartCallRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
187
|
+
public startCall(request: ondewo_sip_sip_pb.StartCallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
188
|
+
public startCall(request: ondewo_sip_sip_pb.StartCallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
189
|
+
public endCall(request: ondewo_sip_sip_pb.EndCallRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
190
|
+
public endCall(request: ondewo_sip_sip_pb.EndCallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
191
|
+
public endCall(request: ondewo_sip_sip_pb.EndCallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
192
|
+
public transferCall(request: ondewo_sip_sip_pb.TransferCallRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
193
|
+
public transferCall(request: ondewo_sip_sip_pb.TransferCallRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
194
|
+
public transferCall(request: ondewo_sip_sip_pb.TransferCallRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
195
|
+
public registerAccount(request: ondewo_sip_sip_pb.RegisterAccountRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
196
|
+
public registerAccount(request: ondewo_sip_sip_pb.RegisterAccountRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
197
|
+
public registerAccount(request: ondewo_sip_sip_pb.RegisterAccountRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
198
|
+
public getSipStatus(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatus) => void): grpc.ClientUnaryCall;
|
|
199
|
+
public getSipStatus(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatus) => void): grpc.ClientUnaryCall;
|
|
200
|
+
public getSipStatus(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatus) => void): grpc.ClientUnaryCall;
|
|
201
|
+
public getSipStatusHistory(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatusHistoryResponse) => void): grpc.ClientUnaryCall;
|
|
202
|
+
public getSipStatusHistory(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatusHistoryResponse) => void): grpc.ClientUnaryCall;
|
|
203
|
+
public getSipStatusHistory(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: ondewo_sip_sip_pb.SipStatusHistoryResponse) => void): grpc.ClientUnaryCall;
|
|
204
|
+
public playWavFiles(request: ondewo_sip_sip_pb.PlayWavFilesRequest, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
205
|
+
public playWavFiles(request: ondewo_sip_sip_pb.PlayWavFilesRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
206
|
+
public playWavFiles(request: ondewo_sip_sip_pb.PlayWavFilesRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
207
|
+
public mute(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
208
|
+
public mute(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
209
|
+
public mute(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
210
|
+
public unMute(request: google_protobuf_empty_pb.Empty, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
211
|
+
public unMute(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
212
|
+
public unMute(request: google_protobuf_empty_pb.Empty, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: google_protobuf_empty_pb.Empty) => void): grpc.ClientUnaryCall;
|
|
213
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
// Original file comments:
|
|
4
|
+
// Copyright 2021 ONDEWO GmbH
|
|
5
|
+
//
|
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
// you may not use this file except in compliance with the License.
|
|
8
|
+
// You may obtain a copy of the License at
|
|
9
|
+
//
|
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
//
|
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
// See the License for the specific language governing permissions and
|
|
16
|
+
// limitations under the License.
|
|
17
|
+
//
|
|
18
|
+
'use strict';
|
|
19
|
+
var grpc = require('@grpc/grpc-js');
|
|
20
|
+
var ondewo_sip_sip_pb = require('../../ondewo/sip/sip_pb.js');
|
|
21
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
22
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
23
|
+
|
|
24
|
+
function serialize_google_protobuf_Empty(arg) {
|
|
25
|
+
if (!(arg instanceof google_protobuf_empty_pb.Empty)) {
|
|
26
|
+
throw new Error('Expected argument of type google.protobuf.Empty');
|
|
27
|
+
}
|
|
28
|
+
return Buffer.from(arg.serializeBinary());
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function deserialize_google_protobuf_Empty(buffer_arg) {
|
|
32
|
+
return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function serialize_ondewo_sip_EndCallRequest(arg) {
|
|
36
|
+
if (!(arg instanceof ondewo_sip_sip_pb.EndCallRequest)) {
|
|
37
|
+
throw new Error('Expected argument of type ondewo.sip.EndCallRequest');
|
|
38
|
+
}
|
|
39
|
+
return Buffer.from(arg.serializeBinary());
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function deserialize_ondewo_sip_EndCallRequest(buffer_arg) {
|
|
43
|
+
return ondewo_sip_sip_pb.EndCallRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function serialize_ondewo_sip_PlayWavFilesRequest(arg) {
|
|
47
|
+
if (!(arg instanceof ondewo_sip_sip_pb.PlayWavFilesRequest)) {
|
|
48
|
+
throw new Error('Expected argument of type ondewo.sip.PlayWavFilesRequest');
|
|
49
|
+
}
|
|
50
|
+
return Buffer.from(arg.serializeBinary());
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function deserialize_ondewo_sip_PlayWavFilesRequest(buffer_arg) {
|
|
54
|
+
return ondewo_sip_sip_pb.PlayWavFilesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function serialize_ondewo_sip_RegisterAccountRequest(arg) {
|
|
58
|
+
if (!(arg instanceof ondewo_sip_sip_pb.RegisterAccountRequest)) {
|
|
59
|
+
throw new Error('Expected argument of type ondewo.sip.RegisterAccountRequest');
|
|
60
|
+
}
|
|
61
|
+
return Buffer.from(arg.serializeBinary());
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function deserialize_ondewo_sip_RegisterAccountRequest(buffer_arg) {
|
|
65
|
+
return ondewo_sip_sip_pb.RegisterAccountRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function serialize_ondewo_sip_SipStatus(arg) {
|
|
69
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipStatus)) {
|
|
70
|
+
throw new Error('Expected argument of type ondewo.sip.SipStatus');
|
|
71
|
+
}
|
|
72
|
+
return Buffer.from(arg.serializeBinary());
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function deserialize_ondewo_sip_SipStatus(buffer_arg) {
|
|
76
|
+
return ondewo_sip_sip_pb.SipStatus.deserializeBinary(new Uint8Array(buffer_arg));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function serialize_ondewo_sip_SipStatusHistoryResponse(arg) {
|
|
80
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipStatusHistoryResponse)) {
|
|
81
|
+
throw new Error('Expected argument of type ondewo.sip.SipStatusHistoryResponse');
|
|
82
|
+
}
|
|
83
|
+
return Buffer.from(arg.serializeBinary());
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function deserialize_ondewo_sip_SipStatusHistoryResponse(buffer_arg) {
|
|
87
|
+
return ondewo_sip_sip_pb.SipStatusHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
function serialize_ondewo_sip_StartCallRequest(arg) {
|
|
91
|
+
if (!(arg instanceof ondewo_sip_sip_pb.StartCallRequest)) {
|
|
92
|
+
throw new Error('Expected argument of type ondewo.sip.StartCallRequest');
|
|
93
|
+
}
|
|
94
|
+
return Buffer.from(arg.serializeBinary());
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function deserialize_ondewo_sip_StartCallRequest(buffer_arg) {
|
|
98
|
+
return ondewo_sip_sip_pb.StartCallRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function serialize_ondewo_sip_StartSessionRequest(arg) {
|
|
102
|
+
if (!(arg instanceof ondewo_sip_sip_pb.StartSessionRequest)) {
|
|
103
|
+
throw new Error('Expected argument of type ondewo.sip.StartSessionRequest');
|
|
104
|
+
}
|
|
105
|
+
return Buffer.from(arg.serializeBinary());
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function deserialize_ondewo_sip_StartSessionRequest(buffer_arg) {
|
|
109
|
+
return ondewo_sip_sip_pb.StartSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
function serialize_ondewo_sip_TransferCallRequest(arg) {
|
|
113
|
+
if (!(arg instanceof ondewo_sip_sip_pb.TransferCallRequest)) {
|
|
114
|
+
throw new Error('Expected argument of type ondewo.sip.TransferCallRequest');
|
|
115
|
+
}
|
|
116
|
+
return Buffer.from(arg.serializeBinary());
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function deserialize_ondewo_sip_TransferCallRequest(buffer_arg) {
|
|
120
|
+
return ondewo_sip_sip_pb.TransferCallRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
var SipService = exports.SipService = {
|
|
125
|
+
startSession: {
|
|
126
|
+
path: '/ondewo.sip.Sip/StartSession',
|
|
127
|
+
requestStream: false,
|
|
128
|
+
responseStream: false,
|
|
129
|
+
requestType: ondewo_sip_sip_pb.StartSessionRequest,
|
|
130
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
131
|
+
requestSerialize: serialize_ondewo_sip_StartSessionRequest,
|
|
132
|
+
requestDeserialize: deserialize_ondewo_sip_StartSessionRequest,
|
|
133
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
134
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
135
|
+
},
|
|
136
|
+
endSession: {
|
|
137
|
+
path: '/ondewo.sip.Sip/EndSession',
|
|
138
|
+
requestStream: false,
|
|
139
|
+
responseStream: false,
|
|
140
|
+
requestType: google_protobuf_empty_pb.Empty,
|
|
141
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
142
|
+
requestSerialize: serialize_google_protobuf_Empty,
|
|
143
|
+
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
144
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
145
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
146
|
+
},
|
|
147
|
+
startCall: {
|
|
148
|
+
path: '/ondewo.sip.Sip/StartCall',
|
|
149
|
+
requestStream: false,
|
|
150
|
+
responseStream: false,
|
|
151
|
+
requestType: ondewo_sip_sip_pb.StartCallRequest,
|
|
152
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
153
|
+
requestSerialize: serialize_ondewo_sip_StartCallRequest,
|
|
154
|
+
requestDeserialize: deserialize_ondewo_sip_StartCallRequest,
|
|
155
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
156
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
157
|
+
},
|
|
158
|
+
endCall: {
|
|
159
|
+
path: '/ondewo.sip.Sip/EndCall',
|
|
160
|
+
requestStream: false,
|
|
161
|
+
responseStream: false,
|
|
162
|
+
requestType: ondewo_sip_sip_pb.EndCallRequest,
|
|
163
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
164
|
+
requestSerialize: serialize_ondewo_sip_EndCallRequest,
|
|
165
|
+
requestDeserialize: deserialize_ondewo_sip_EndCallRequest,
|
|
166
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
167
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
168
|
+
},
|
|
169
|
+
transferCall: {
|
|
170
|
+
path: '/ondewo.sip.Sip/TransferCall',
|
|
171
|
+
requestStream: false,
|
|
172
|
+
responseStream: false,
|
|
173
|
+
requestType: ondewo_sip_sip_pb.TransferCallRequest,
|
|
174
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
175
|
+
requestSerialize: serialize_ondewo_sip_TransferCallRequest,
|
|
176
|
+
requestDeserialize: deserialize_ondewo_sip_TransferCallRequest,
|
|
177
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
178
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
179
|
+
},
|
|
180
|
+
registerAccount: {
|
|
181
|
+
path: '/ondewo.sip.Sip/RegisterAccount',
|
|
182
|
+
requestStream: false,
|
|
183
|
+
responseStream: false,
|
|
184
|
+
requestType: ondewo_sip_sip_pb.RegisterAccountRequest,
|
|
185
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
186
|
+
requestSerialize: serialize_ondewo_sip_RegisterAccountRequest,
|
|
187
|
+
requestDeserialize: deserialize_ondewo_sip_RegisterAccountRequest,
|
|
188
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
189
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
190
|
+
},
|
|
191
|
+
getSipStatus: {
|
|
192
|
+
path: '/ondewo.sip.Sip/GetSipStatus',
|
|
193
|
+
requestStream: false,
|
|
194
|
+
responseStream: false,
|
|
195
|
+
requestType: google_protobuf_empty_pb.Empty,
|
|
196
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
197
|
+
requestSerialize: serialize_google_protobuf_Empty,
|
|
198
|
+
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
199
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
200
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
201
|
+
},
|
|
202
|
+
getSipStatusHistory: {
|
|
203
|
+
path: '/ondewo.sip.Sip/GetSipStatusHistory',
|
|
204
|
+
requestStream: false,
|
|
205
|
+
responseStream: false,
|
|
206
|
+
requestType: google_protobuf_empty_pb.Empty,
|
|
207
|
+
responseType: ondewo_sip_sip_pb.SipStatusHistoryResponse,
|
|
208
|
+
requestSerialize: serialize_google_protobuf_Empty,
|
|
209
|
+
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
210
|
+
responseSerialize: serialize_ondewo_sip_SipStatusHistoryResponse,
|
|
211
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatusHistoryResponse,
|
|
212
|
+
},
|
|
213
|
+
playWavFiles: {
|
|
214
|
+
path: '/ondewo.sip.Sip/PlayWavFiles',
|
|
215
|
+
requestStream: false,
|
|
216
|
+
responseStream: false,
|
|
217
|
+
requestType: ondewo_sip_sip_pb.PlayWavFilesRequest,
|
|
218
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
219
|
+
requestSerialize: serialize_ondewo_sip_PlayWavFilesRequest,
|
|
220
|
+
requestDeserialize: deserialize_ondewo_sip_PlayWavFilesRequest,
|
|
221
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
222
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
223
|
+
},
|
|
224
|
+
mute: {
|
|
225
|
+
path: '/ondewo.sip.Sip/Mute',
|
|
226
|
+
requestStream: false,
|
|
227
|
+
responseStream: false,
|
|
228
|
+
requestType: google_protobuf_empty_pb.Empty,
|
|
229
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
230
|
+
requestSerialize: serialize_google_protobuf_Empty,
|
|
231
|
+
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
232
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
233
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
234
|
+
},
|
|
235
|
+
unMute: {
|
|
236
|
+
path: '/ondewo.sip.Sip/UnMute',
|
|
237
|
+
requestStream: false,
|
|
238
|
+
responseStream: false,
|
|
239
|
+
requestType: google_protobuf_empty_pb.Empty,
|
|
240
|
+
responseType: google_protobuf_empty_pb.Empty,
|
|
241
|
+
requestSerialize: serialize_google_protobuf_Empty,
|
|
242
|
+
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
243
|
+
responseSerialize: serialize_google_protobuf_Empty,
|
|
244
|
+
responseDeserialize: deserialize_google_protobuf_Empty,
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
exports.SipClient = grpc.makeGenericClientConstructor(SipService);
|