@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,229 @@
|
|
|
1
|
+
// package: ondewo.sip
|
|
2
|
+
// file: ondewo/sip/sip.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
9
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
10
|
+
|
|
11
|
+
export class EndCallRequest extends jspb.Message {
|
|
12
|
+
getHardHangup(): boolean;
|
|
13
|
+
setHardHangup(value: boolean): EndCallRequest;
|
|
14
|
+
|
|
15
|
+
serializeBinary(): Uint8Array;
|
|
16
|
+
toObject(includeInstance?: boolean): EndCallRequest.AsObject;
|
|
17
|
+
static toObject(includeInstance: boolean, msg: EndCallRequest): EndCallRequest.AsObject;
|
|
18
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
19
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
20
|
+
static serializeBinaryToWriter(message: EndCallRequest, writer: jspb.BinaryWriter): void;
|
|
21
|
+
static deserializeBinary(bytes: Uint8Array): EndCallRequest;
|
|
22
|
+
static deserializeBinaryFromReader(message: EndCallRequest, reader: jspb.BinaryReader): EndCallRequest;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace EndCallRequest {
|
|
26
|
+
export type AsObject = {
|
|
27
|
+
hardHangup: boolean,
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class StartCallRequest extends jspb.Message {
|
|
32
|
+
getCalleeId(): string;
|
|
33
|
+
setCalleeId(value: string): StartCallRequest;
|
|
34
|
+
|
|
35
|
+
getHeadersMap(): jspb.Map<string, string>;
|
|
36
|
+
clearHeadersMap(): void;
|
|
37
|
+
|
|
38
|
+
serializeBinary(): Uint8Array;
|
|
39
|
+
toObject(includeInstance?: boolean): StartCallRequest.AsObject;
|
|
40
|
+
static toObject(includeInstance: boolean, msg: StartCallRequest): StartCallRequest.AsObject;
|
|
41
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
42
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
43
|
+
static serializeBinaryToWriter(message: StartCallRequest, writer: jspb.BinaryWriter): void;
|
|
44
|
+
static deserializeBinary(bytes: Uint8Array): StartCallRequest;
|
|
45
|
+
static deserializeBinaryFromReader(message: StartCallRequest, reader: jspb.BinaryReader): StartCallRequest;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace StartCallRequest {
|
|
49
|
+
export type AsObject = {
|
|
50
|
+
calleeId: string,
|
|
51
|
+
|
|
52
|
+
headersMap: Array<[string, string]>,
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export class RegisterAccountRequest extends jspb.Message {
|
|
57
|
+
getAccountName(): string;
|
|
58
|
+
setAccountName(value: string): RegisterAccountRequest;
|
|
59
|
+
getPassword(): string;
|
|
60
|
+
setPassword(value: string): RegisterAccountRequest;
|
|
61
|
+
|
|
62
|
+
serializeBinary(): Uint8Array;
|
|
63
|
+
toObject(includeInstance?: boolean): RegisterAccountRequest.AsObject;
|
|
64
|
+
static toObject(includeInstance: boolean, msg: RegisterAccountRequest): RegisterAccountRequest.AsObject;
|
|
65
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
66
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
67
|
+
static serializeBinaryToWriter(message: RegisterAccountRequest, writer: jspb.BinaryWriter): void;
|
|
68
|
+
static deserializeBinary(bytes: Uint8Array): RegisterAccountRequest;
|
|
69
|
+
static deserializeBinaryFromReader(message: RegisterAccountRequest, reader: jspb.BinaryReader): RegisterAccountRequest;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export namespace RegisterAccountRequest {
|
|
73
|
+
export type AsObject = {
|
|
74
|
+
accountName: string,
|
|
75
|
+
password: string,
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class StartSessionRequest extends jspb.Message {
|
|
80
|
+
getAccountName(): string;
|
|
81
|
+
setAccountName(value: string): StartSessionRequest;
|
|
82
|
+
getAutoAnswerInterval(): number;
|
|
83
|
+
setAutoAnswerInterval(value: number): StartSessionRequest;
|
|
84
|
+
|
|
85
|
+
serializeBinary(): Uint8Array;
|
|
86
|
+
toObject(includeInstance?: boolean): StartSessionRequest.AsObject;
|
|
87
|
+
static toObject(includeInstance: boolean, msg: StartSessionRequest): StartSessionRequest.AsObject;
|
|
88
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
89
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
90
|
+
static serializeBinaryToWriter(message: StartSessionRequest, writer: jspb.BinaryWriter): void;
|
|
91
|
+
static deserializeBinary(bytes: Uint8Array): StartSessionRequest;
|
|
92
|
+
static deserializeBinaryFromReader(message: StartSessionRequest, reader: jspb.BinaryReader): StartSessionRequest;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export namespace StartSessionRequest {
|
|
96
|
+
export type AsObject = {
|
|
97
|
+
accountName: string,
|
|
98
|
+
autoAnswerInterval: number,
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export class TransferCallRequest extends jspb.Message {
|
|
103
|
+
getTransferId(): string;
|
|
104
|
+
setTransferId(value: string): TransferCallRequest;
|
|
105
|
+
|
|
106
|
+
getHeadersMap(): jspb.Map<string, string>;
|
|
107
|
+
clearHeadersMap(): void;
|
|
108
|
+
|
|
109
|
+
serializeBinary(): Uint8Array;
|
|
110
|
+
toObject(includeInstance?: boolean): TransferCallRequest.AsObject;
|
|
111
|
+
static toObject(includeInstance: boolean, msg: TransferCallRequest): TransferCallRequest.AsObject;
|
|
112
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
113
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
114
|
+
static serializeBinaryToWriter(message: TransferCallRequest, writer: jspb.BinaryWriter): void;
|
|
115
|
+
static deserializeBinary(bytes: Uint8Array): TransferCallRequest;
|
|
116
|
+
static deserializeBinaryFromReader(message: TransferCallRequest, reader: jspb.BinaryReader): TransferCallRequest;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export namespace TransferCallRequest {
|
|
120
|
+
export type AsObject = {
|
|
121
|
+
transferId: string,
|
|
122
|
+
|
|
123
|
+
headersMap: Array<[string, string]>,
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export class SipStatus extends jspb.Message {
|
|
128
|
+
getAccountName(): string;
|
|
129
|
+
setAccountName(value: string): SipStatus;
|
|
130
|
+
|
|
131
|
+
hasTimestamp(): boolean;
|
|
132
|
+
clearTimestamp(): void;
|
|
133
|
+
getTimestamp(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
134
|
+
setTimestamp(value?: google_protobuf_timestamp_pb.Timestamp): SipStatus;
|
|
135
|
+
getStatusType(): SipStatus.StatusType;
|
|
136
|
+
setStatusType(value: SipStatus.StatusType): SipStatus;
|
|
137
|
+
getCalleeId(): string;
|
|
138
|
+
setCalleeId(value: string): SipStatus;
|
|
139
|
+
getTransferCallId(): string;
|
|
140
|
+
setTransferCallId(value: string): SipStatus;
|
|
141
|
+
|
|
142
|
+
getHeadersMap(): jspb.Map<string, string>;
|
|
143
|
+
clearHeadersMap(): void;
|
|
144
|
+
|
|
145
|
+
serializeBinary(): Uint8Array;
|
|
146
|
+
toObject(includeInstance?: boolean): SipStatus.AsObject;
|
|
147
|
+
static toObject(includeInstance: boolean, msg: SipStatus): SipStatus.AsObject;
|
|
148
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
149
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
150
|
+
static serializeBinaryToWriter(message: SipStatus, writer: jspb.BinaryWriter): void;
|
|
151
|
+
static deserializeBinary(bytes: Uint8Array): SipStatus;
|
|
152
|
+
static deserializeBinaryFromReader(message: SipStatus, reader: jspb.BinaryReader): SipStatus;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export namespace SipStatus {
|
|
156
|
+
export type AsObject = {
|
|
157
|
+
accountName: string,
|
|
158
|
+
timestamp?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
159
|
+
statusType: SipStatus.StatusType,
|
|
160
|
+
calleeId: string,
|
|
161
|
+
transferCallId: string,
|
|
162
|
+
|
|
163
|
+
headersMap: Array<[string, string]>,
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export enum StatusType {
|
|
167
|
+
NO_SESSION = 0,
|
|
168
|
+
REGISTERED = 1,
|
|
169
|
+
READY = 2,
|
|
170
|
+
INCOMING_CALL_INITIATED = 3,
|
|
171
|
+
OUTGOING_CALL_INITIATED = 4,
|
|
172
|
+
OUTGOING_CALL_CONNECTED = 5,
|
|
173
|
+
INCOMING_CALL_CONNECTED = 6,
|
|
174
|
+
TRANSFER_CALL_INITIATED = 7,
|
|
175
|
+
SOFT_HANGUP_INITIATED = 8,
|
|
176
|
+
HARD_HANGUP_INITIATED = 9,
|
|
177
|
+
INCOMING_CALL_FAILED = 10,
|
|
178
|
+
OUTGOING_CALL_FAILED = 11,
|
|
179
|
+
INCOMING_CALL_FINISHED = 12,
|
|
180
|
+
OUTGOING_CALL_FINISHED = 13,
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export class SipStatusHistoryResponse extends jspb.Message {
|
|
186
|
+
clearStatusHistoryList(): void;
|
|
187
|
+
getStatusHistoryList(): Array<SipStatus>;
|
|
188
|
+
setStatusHistoryList(value: Array<SipStatus>): SipStatusHistoryResponse;
|
|
189
|
+
addStatusHistory(value?: SipStatus, index?: number): SipStatus;
|
|
190
|
+
|
|
191
|
+
serializeBinary(): Uint8Array;
|
|
192
|
+
toObject(includeInstance?: boolean): SipStatusHistoryResponse.AsObject;
|
|
193
|
+
static toObject(includeInstance: boolean, msg: SipStatusHistoryResponse): SipStatusHistoryResponse.AsObject;
|
|
194
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
195
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
196
|
+
static serializeBinaryToWriter(message: SipStatusHistoryResponse, writer: jspb.BinaryWriter): void;
|
|
197
|
+
static deserializeBinary(bytes: Uint8Array): SipStatusHistoryResponse;
|
|
198
|
+
static deserializeBinaryFromReader(message: SipStatusHistoryResponse, reader: jspb.BinaryReader): SipStatusHistoryResponse;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export namespace SipStatusHistoryResponse {
|
|
202
|
+
export type AsObject = {
|
|
203
|
+
statusHistoryList: Array<SipStatus.AsObject>,
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export class PlayWavFilesRequest extends jspb.Message {
|
|
208
|
+
clearWavFilesList(): void;
|
|
209
|
+
getWavFilesList(): Array<Uint8Array | string>;
|
|
210
|
+
getWavFilesList_asU8(): Array<Uint8Array>;
|
|
211
|
+
getWavFilesList_asB64(): Array<string>;
|
|
212
|
+
setWavFilesList(value: Array<Uint8Array | string>): PlayWavFilesRequest;
|
|
213
|
+
addWavFiles(value: Uint8Array | string, index?: number): Uint8Array | string;
|
|
214
|
+
|
|
215
|
+
serializeBinary(): Uint8Array;
|
|
216
|
+
toObject(includeInstance?: boolean): PlayWavFilesRequest.AsObject;
|
|
217
|
+
static toObject(includeInstance: boolean, msg: PlayWavFilesRequest): PlayWavFilesRequest.AsObject;
|
|
218
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
219
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
220
|
+
static serializeBinaryToWriter(message: PlayWavFilesRequest, writer: jspb.BinaryWriter): void;
|
|
221
|
+
static deserializeBinary(bytes: Uint8Array): PlayWavFilesRequest;
|
|
222
|
+
static deserializeBinaryFromReader(message: PlayWavFilesRequest, reader: jspb.BinaryReader): PlayWavFilesRequest;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export namespace PlayWavFilesRequest {
|
|
226
|
+
export type AsObject = {
|
|
227
|
+
wavFilesList: Array<Uint8Array | string>,
|
|
228
|
+
}
|
|
229
|
+
}
|