livekit-server-sdk 2.2.0 → 2.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # livekit-server-sdk
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add SIP service. - [#173](https://github.com/livekit/server-sdk-js/pull/173) ([@dennwc](https://github.com/dennwc))
8
+
3
9
  ## 2.2.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,70 @@
1
+ import { SIPTrunkInfo, SIPDispatchRuleInfo, SIPParticipantInfo } from '@livekit/protocol';
2
+ import ServiceBase from './ServiceBase.js';
3
+ export interface CreateSipTrunkOptions {
4
+ inbound_addresses?: string[];
5
+ inbound_numbers?: string[];
6
+ inbound_username?: string;
7
+ inbound_password?: string;
8
+ outbound_address?: string;
9
+ outbound_username?: string;
10
+ outbound_password?: string;
11
+ }
12
+ export interface SipDispatchRuleDirect {
13
+ type: 'direct';
14
+ roomName: string;
15
+ pin?: string;
16
+ }
17
+ export interface SipDispatchRuleIndividual {
18
+ type: 'individual';
19
+ roomPrefix: string;
20
+ pin?: string;
21
+ }
22
+ export interface CreateSipDispatchRuleOptions {
23
+ trunkIds?: string[];
24
+ hidePhoneNumber?: boolean;
25
+ }
26
+ export interface CreateSipParticipantOptions {
27
+ participantIdentity?: string;
28
+ participantName?: string;
29
+ dtmf?: string;
30
+ playRingtone?: boolean;
31
+ }
32
+ /**
33
+ * Client to access Egress APIs
34
+ */
35
+ export declare class SipClient extends ServiceBase {
36
+ private readonly rpc;
37
+ /**
38
+ * @param host hostname including protocol. i.e. 'https://cluster.livekit.io'
39
+ * @param apiKey API Key, can be set in env var LIVEKIT_API_KEY
40
+ * @param secret API Secret, can be set in env var LIVEKIT_API_SECRET
41
+ */
42
+ constructor(host: string, apiKey?: string, secret?: string);
43
+ /**
44
+ * @param number phone number of the trunk
45
+ * @param opts CreateSipTrunkOptions
46
+ */
47
+ createSipTrunk(number: string, opts?: CreateSipTrunkOptions): Promise<SIPTrunkInfo>;
48
+ listSipTrunk(): Promise<Array<SIPTrunkInfo>>;
49
+ /**
50
+ * @param sipTrunkId sip trunk to delete
51
+ */
52
+ deleteSipTrunk(sipTrunkId: string): Promise<SIPTrunkInfo>;
53
+ /**
54
+ * @param rule sip dispatch rule
55
+ * @param opts CreateSipDispatchRuleOptions
56
+ */
57
+ createSipDispatchRule(rule: SipDispatchRuleDirect | SipDispatchRuleIndividual, opts?: CreateSipDispatchRuleOptions): Promise<SIPDispatchRuleInfo>;
58
+ listSipDispatchRule(): Promise<Array<SIPDispatchRuleInfo>>;
59
+ /**
60
+ * @param sipDispatchRuleId sip trunk to delete
61
+ */
62
+ deleteSipDispatchRule(sipDispatchRuleId: string): Promise<SIPDispatchRuleInfo>;
63
+ /**
64
+ * @param sipTrunkId sip trunk to use for the call
65
+ * @param number number to dial
66
+ * @param roomName room to attach the call to
67
+ * @param opts CreateSipParticipantOptions
68
+ */
69
+ createSipParticipant(sipTrunkId: string, number: string, roomName: string, opts?: CreateSipParticipantOptions): Promise<SIPParticipantInfo>;
70
+ }
@@ -0,0 +1,150 @@
1
+ import { SIPTrunkInfo, CreateSIPTrunkRequest, ListSIPTrunkRequest, ListSIPTrunkResponse, DeleteSIPTrunkRequest, SIPDispatchRule, SIPDispatchRuleInfo, CreateSIPDispatchRuleRequest, ListSIPDispatchRuleRequest, ListSIPDispatchRuleResponse, DeleteSIPDispatchRuleRequest, SIPParticipantInfo, SIPDispatchRuleDirect, SIPDispatchRuleIndividual, CreateSIPParticipantRequest, } from '@livekit/protocol';
2
+ import ServiceBase from './ServiceBase.js';
3
+ import { livekitPackage, TwirpRpc } from './TwirpRPC.js';
4
+ const svc = 'SIP';
5
+ /**
6
+ * Client to access Egress APIs
7
+ */
8
+ export class SipClient extends ServiceBase {
9
+ /**
10
+ * @param host hostname including protocol. i.e. 'https://cluster.livekit.io'
11
+ * @param apiKey API Key, can be set in env var LIVEKIT_API_KEY
12
+ * @param secret API Secret, can be set in env var LIVEKIT_API_SECRET
13
+ */
14
+ constructor(host, apiKey, secret) {
15
+ super(apiKey, secret);
16
+ this.rpc = new TwirpRpc(host, livekitPackage);
17
+ }
18
+ /**
19
+ * @param number phone number of the trunk
20
+ * @param opts CreateSipTrunkOptions
21
+ */
22
+ async createSipTrunk(number, opts) {
23
+ let inboundAddresses;
24
+ let inboundNumbers;
25
+ let inboundUsername = '';
26
+ let inboundPassword = '';
27
+ let outboundAddress = '';
28
+ let outboundUsername = '';
29
+ let outboundPassword = '';
30
+ if (opts !== undefined) {
31
+ inboundAddresses = opts.inbound_addresses;
32
+ inboundNumbers = opts.inbound_numbers;
33
+ inboundUsername = opts.inbound_username || '';
34
+ inboundPassword = opts.inbound_password || '';
35
+ outboundAddress = opts.outbound_address || '';
36
+ outboundUsername = opts.outbound_username || '';
37
+ outboundPassword = opts.outbound_password || '';
38
+ }
39
+ const req = new CreateSIPTrunkRequest({
40
+ inboundAddresses: inboundAddresses,
41
+ inboundNumbers: inboundNumbers,
42
+ inboundUsername: inboundUsername,
43
+ inboundPassword: inboundPassword,
44
+ outboundNumber: number,
45
+ outboundAddress: outboundAddress,
46
+ outboundUsername: outboundUsername,
47
+ outboundPassword: outboundPassword,
48
+ }).toJson();
49
+ const data = await this.rpc.request(svc, 'CreateSIPTrunk', req, await this.authHeader({}));
50
+ return SIPTrunkInfo.fromJson(data, { ignoreUnknownFields: true });
51
+ }
52
+ async listSipTrunk() {
53
+ var _a;
54
+ let req = {};
55
+ const data = await this.rpc.request(svc, 'ListSIPTrunk', new ListSIPTrunkRequest(req).toJson(), await this.authHeader({}));
56
+ return (_a = ListSIPTrunkResponse.fromJson(data, { ignoreUnknownFields: true }).items) !== null && _a !== void 0 ? _a : [];
57
+ }
58
+ /**
59
+ * @param sipTrunkId sip trunk to delete
60
+ */
61
+ async deleteSipTrunk(sipTrunkId) {
62
+ const data = await this.rpc.request(svc, 'DeleteSIPTrunk', new DeleteSIPTrunkRequest({ sipTrunkId }).toJson(), await this.authHeader({}));
63
+ return SIPTrunkInfo.fromJson(data, { ignoreUnknownFields: true });
64
+ }
65
+ /**
66
+ * @param rule sip dispatch rule
67
+ * @param opts CreateSipDispatchRuleOptions
68
+ */
69
+ async createSipDispatchRule(rule, opts) {
70
+ let trunkIds;
71
+ let hidePhoneNumber = false;
72
+ let ruleProto = undefined;
73
+ if (opts !== undefined) {
74
+ trunkIds = opts.trunkIds;
75
+ hidePhoneNumber = opts.hidePhoneNumber || false;
76
+ }
77
+ if (rule.type == 'direct') {
78
+ ruleProto = new SIPDispatchRule({
79
+ rule: {
80
+ case: 'dispatchRuleDirect',
81
+ value: new SIPDispatchRuleDirect({
82
+ roomName: rule.roomName,
83
+ pin: rule.pin || '',
84
+ }),
85
+ },
86
+ });
87
+ }
88
+ else if (rule.type == 'individual') {
89
+ ruleProto = new SIPDispatchRule({
90
+ rule: {
91
+ case: 'dispatchRuleIndividual',
92
+ value: new SIPDispatchRuleIndividual({
93
+ roomPrefix: rule.roomPrefix,
94
+ pin: rule.pin || '',
95
+ }),
96
+ },
97
+ });
98
+ }
99
+ const req = new CreateSIPDispatchRuleRequest({
100
+ rule: ruleProto,
101
+ trunkIds: trunkIds,
102
+ hidePhoneNumber: hidePhoneNumber,
103
+ }).toJson();
104
+ const data = await this.rpc.request(svc, 'CreateSIPDispatchRule', req, await this.authHeader({}));
105
+ return SIPDispatchRuleInfo.fromJson(data, { ignoreUnknownFields: true });
106
+ }
107
+ async listSipDispatchRule() {
108
+ var _a;
109
+ let req = {};
110
+ const data = await this.rpc.request(svc, 'ListSIPDispatchRule', new ListSIPDispatchRuleRequest(req).toJson(), await this.authHeader({}));
111
+ return (_a = ListSIPDispatchRuleResponse.fromJson(data, { ignoreUnknownFields: true }).items) !== null && _a !== void 0 ? _a : [];
112
+ }
113
+ /**
114
+ * @param sipDispatchRuleId sip trunk to delete
115
+ */
116
+ async deleteSipDispatchRule(sipDispatchRuleId) {
117
+ const data = await this.rpc.request(svc, 'DeleteSIPDispatchRule', new DeleteSIPDispatchRuleRequest({ sipDispatchRuleId }).toJson(), await this.authHeader({}));
118
+ return SIPDispatchRuleInfo.fromJson(data, { ignoreUnknownFields: true });
119
+ }
120
+ /**
121
+ * @param sipTrunkId sip trunk to use for the call
122
+ * @param number number to dial
123
+ * @param roomName room to attach the call to
124
+ * @param opts CreateSipParticipantOptions
125
+ */
126
+ async createSipParticipant(sipTrunkId, number, roomName, opts) {
127
+ let participantIdentity = '';
128
+ let participantName = '';
129
+ let dtmf = '';
130
+ let playRingtone = false;
131
+ if (opts !== undefined) {
132
+ participantIdentity = opts.participantIdentity || '';
133
+ participantName = opts.participantName || '';
134
+ dtmf = opts.dtmf || '';
135
+ playRingtone = opts.playRingtone || false;
136
+ }
137
+ const req = new CreateSIPParticipantRequest({
138
+ sipTrunkId: sipTrunkId,
139
+ sipCallTo: number,
140
+ roomName: roomName,
141
+ participantIdentity: participantIdentity,
142
+ participantName: participantName,
143
+ dtmf: dtmf,
144
+ playRingtone: playRingtone,
145
+ }).toJson();
146
+ const data = await this.rpc.request(svc, 'CreateSIPParticipant', req, await this.authHeader({}));
147
+ return SIPParticipantInfo.fromJson(data, { ignoreUnknownFields: true });
148
+ }
149
+ }
150
+ //# sourceMappingURL=SipClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SipClient.js","sourceRoot":"","sources":["../src/SipClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,4BAA4B,EAC5B,0BAA0B,EAC1B,2BAA2B,EAC3B,4BAA4B,EAC5B,kBAAkB,EAClB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,cAAc,E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AC;YAC7C,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;YACvB,YAAY,GAAG,IAAI,CAAC,YAAY,IAAI,KAAK,CAAC;QAC5C,CAAC;QAED,MAAM,GAAG,GAAG,IAAI,2BAA2B,CAAC;YAC1C,UAAU,EAAE,UAAU;YACtB,SAAS,EAAE,MAAM;YACjB,QAAQ,EAAE,QAAQ;YAClB,mBAAmB,EAAE,mBAAmB;YACxC,eAAe,EAAE,eAAe;YAChC,IAAI,EAAE,IAAI;YACV,YAAY,EAAE,YAAY;SAC3B,CAAC,CAAC,MAAM,EAAE,CAAC;QAEZ,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CACjC,GAAG,EACH,sBAAsB,EACtB,GAAG,EACH,MAAM,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAC1B,CAAC;QACF,OAAO,kBAAkB,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  export * from './AccessToken.js';
2
2
  export * from './EgressClient.js';
3
3
  export * from './IngressClient.js';
4
+ export * from './SipClient.js';
4
5
  export * from './RoomServiceClient.js';
5
6
  export * from './WebhookReceiver.js';
6
7
  export * from './grants.js';
7
- export { AliOSSUpload, AzureBlobUpload, DirectFileOutput, EgressInfo, EncodedFileOutput, EncodedFileType, EncodingOptions, EncodingOptionsPreset, GCPUpload, ImageOutput, ParticipantEgressRequest, RoomCompositeEgressRequest, S3Upload, SegmentedFileOutput, SegmentedFileProtocol, StreamOutput, StreamProtocol, TrackCompositeEgressRequest, TrackEgressRequest, WebEgressRequest, IngressAudioEncodingOptions, IngressAudioEncodingPreset, IngressAudioOptions, IngressInfo, IngressInput, IngressState, IngressVideoEncodingOptions, IngressVideoEncodingPreset, IngressVideoOptions, DataPacket_Kind, ParticipantInfo, ParticipantInfo_State, ParticipantPermission, Room, TrackInfo, TrackType, TrackSource, } from '@livekit/protocol';
8
+ export { AliOSSUpload, AzureBlobUpload, DirectFileOutput, EgressInfo, EncodedFileOutput, EncodedFileType, EncodingOptions, EncodingOptionsPreset, GCPUpload, ImageOutput, ParticipantEgressRequest, RoomCompositeEgressRequest, S3Upload, SegmentedFileOutput, SegmentedFileProtocol, StreamOutput, StreamProtocol, TrackCompositeEgressRequest, TrackEgressRequest, WebEgressRequest, IngressAudioEncodingOptions, IngressAudioEncodingPreset, IngressAudioOptions, IngressInfo, IngressInput, IngressState, IngressVideoEncodingOptions, IngressVideoEncodingPreset, IngressVideoOptions, DataPacket_Kind, ParticipantInfo, ParticipantInfo_State, ParticipantPermission, Room, TrackInfo, TrackType, TrackSource, SIPTrunkInfo, SIPDispatchRuleInfo, SIPParticipantInfo, } from '@livekit/protocol';
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  export * from './AccessToken.js';
2
2
  export * from './EgressClient.js';
3
3
  export * from './IngressClient.js';
4
+ export * from './SipClient.js';
4
5
  export * from './RoomServiceClient.js';
5
6
  export * from './WebhookReceiver.js';
6
7
  export * from './grants.js';
7
- export { AliOSSUpload, AzureBlobUpload, DirectFileOutput, EgressInfo, EncodedFileOutput, EncodedFileType, EncodingOptions, EncodingOptionsPreset, GCPUpload, ImageOutput, ParticipantEgressRequest, RoomCompositeEgressRequest, S3Upload, SegmentedFileOutput, SegmentedFileProtocol, StreamOutput, StreamProtocol, TrackCompositeEgressRequest, TrackEgressRequest, WebEgressRequest, IngressAudioEncodingOptions, IngressAudioEncodingPreset, IngressAudioOptions, IngressInfo, IngressInput, IngressState, IngressVideoEncodingOptions, IngressVideoEncodingPreset, IngressVideoOptions, DataPacket_Kind, ParticipantInfo, ParticipantInfo_State, ParticipantPermission, Room, TrackInfo, TrackType, TrackSource, } from '@livekit/protocol';
8
+ export { AliOSSUpload, AzureBlobUpload, DirectFileOutput, EgressInfo, EncodedFileOutput, EncodedFileType, EncodingOptions, EncodingOptionsPreset, GCPUpload, ImageOutput, ParticipantEgressRequest, RoomCompositeEgressRequest, S3Upload, SegmentedFileOutput, SegmentedFileProtocol, StreamOutput, StreamProtocol, TrackCompositeEgressRequest, TrackEgressRequest, WebEgressRequest, IngressAudioEncodingOptions, IngressAudioEncodingPreset, IngressAudioOptions, IngressInfo, IngressInput, IngressState, IngressVideoEncodingOptions, IngressVideoEncodingPreset, IngressVideoOptions, DataPacket_Kind, ParticipantInfo, ParticipantInfo_State, ParticipantPermission, Room, TrackInfo, TrackType, TrackSource, SIPTrunkInfo, SIPDispatchRuleInfo, SIPParticipantInfo, } from '@livekit/protocol';
8
9
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,WAAW,EACX,wBAAwB,EACxB,0BAA0B,EAC1B,QAAQ,EACR,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,2BAA2B,EAC3B,kBAAkB,EAClB,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,IAAI,EACJ,SAAS,EACT,SAAS,EACT,WAAW,GACZ,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,SAAS,EACT,WAAW,EACX,wBAAwB,EACxB,0BAA0B,EAC1B,QAAQ,EACR,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,2BAA2B,EAC3B,kBAAkB,EAClB,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,2BAA2B,EAC3B,0BAA0B,EAC1B,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,qBAAqB,EACrB,qBAAqB,EACrB,IAAI,EACJ,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livekit-server-sdk",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Server-side SDK for LiveKit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",