livekit-server-sdk 2.15.0 → 2.15.2
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/dist/AccessToken.cjs +1 -1
- package/dist/AccessToken.cjs.map +1 -1
- package/dist/AccessToken.d.ts +9 -6
- package/dist/AccessToken.js +1 -1
- package/dist/AccessToken.js.map +1 -1
- package/dist/AgentDispatchClient.d.ts +7 -4
- package/dist/ClientOptions.d.ts +3 -2
- package/dist/ConnectorClient.d.ts +11 -8
- package/dist/EgressClient.d.ts +15 -12
- package/dist/IngressClient.d.ts +11 -8
- package/dist/RoomServiceClient.d.ts +11 -8
- package/dist/ServiceBase.d.ts +7 -3
- package/dist/SipClient.cjs +4 -2
- package/dist/SipClient.cjs.map +1 -1
- package/dist/SipClient.d.cts +4 -0
- package/dist/SipClient.d.ts +25 -18
- package/dist/SipClient.d.ts.map +1 -1
- package/dist/SipClient.js +4 -2
- package/dist/SipClient.js.map +1 -1
- package/dist/TwirpRPC.d.ts +8 -7
- package/dist/WebhookReceiver.d.ts +9 -7
- package/dist/crypto/digest.d.ts +3 -2
- package/dist/crypto/uuid.d.ts +3 -2
- package/dist/grants.d.ts +12 -11
- package/dist/index.d.ts +14 -11
- package/package.json +2 -2
- package/src/AccessToken.test.ts +1 -3
- package/src/AccessToken.ts +1 -1
- package/src/SipClient.ts +10 -0
package/src/SipClient.ts
CHANGED
|
@@ -81,6 +81,8 @@ export interface CreateSipInboundTrunkOptions {
|
|
|
81
81
|
includeHeaders?: SIPHeaderOptions;
|
|
82
82
|
krispEnabled?: boolean;
|
|
83
83
|
mediaEncryption?: SIPMediaEncryption;
|
|
84
|
+
/** Maximum time for a call to ring in seconds. */
|
|
85
|
+
ringingTimeout?: number;
|
|
84
86
|
}
|
|
85
87
|
export interface CreateSipOutboundTrunkOptions {
|
|
86
88
|
metadata?: string;
|
|
@@ -210,6 +212,8 @@ export interface SipOutboundTrunkUpdateOptions {
|
|
|
210
212
|
export interface TransferSipParticipantOptions {
|
|
211
213
|
playDialtone?: boolean;
|
|
212
214
|
headers?: { [key: string]: string };
|
|
215
|
+
/** Maximum time for the transfer destination to answer the call, in seconds. */
|
|
216
|
+
ringingTimeout?: number;
|
|
213
217
|
}
|
|
214
218
|
|
|
215
219
|
/**
|
|
@@ -312,6 +316,9 @@ export class SipClient extends ServiceBase {
|
|
|
312
316
|
includeHeaders: opts.includeHeaders,
|
|
313
317
|
krispEnabled: opts.krispEnabled,
|
|
314
318
|
mediaEncryption: opts.mediaEncryption,
|
|
319
|
+
ringingTimeout: opts.ringingTimeout
|
|
320
|
+
? new Duration({ seconds: BigInt(opts.ringingTimeout) })
|
|
321
|
+
: undefined,
|
|
315
322
|
}),
|
|
316
323
|
}).toJson();
|
|
317
324
|
|
|
@@ -789,6 +796,9 @@ export class SipClient extends ServiceBase {
|
|
|
789
796
|
transferTo: transferTo,
|
|
790
797
|
playDialtone: opts.playDialtone,
|
|
791
798
|
headers: opts.headers,
|
|
799
|
+
ringingTimeout: opts.ringingTimeout
|
|
800
|
+
? new Duration({ seconds: BigInt(opts.ringingTimeout) })
|
|
801
|
+
: undefined,
|
|
792
802
|
}).toJson();
|
|
793
803
|
|
|
794
804
|
await this.rpc.request(
|