From 4ef948ed48523addaf9e0bbb8abe430490a71c7d Mon Sep 17 00:00:00 2001 From: David Zhao Date: Sun, 20 Oct 2024 11:40:14 -0700 Subject: [PATCH] Update dependencies and remove SIP.CreateSIPTrunk (#451) --- cmd/lk/sip.go | 20 -------------------- go.mod | 8 ++++---- go.sum | 8 ++++---- 3 files changed, 8 insertions(+), 28 deletions(-) diff --git a/cmd/lk/sip.go b/cmd/lk/sip.go index 5d02e2a9..281eedac 100644 --- a/cmd/lk/sip.go +++ b/cmd/lk/sip.go @@ -148,17 +148,6 @@ var ( }, // Deprecated commands kept for compatibility - { - Hidden: true, // deprecated: use `sip trunk create` - Name: "create-sip-trunk", - Usage: "Create a SIP Trunk", - Action: createSIPTrunkLegacy, - Category: sipCategory, - Flags: []cli.Flag{ - //lint:ignore SA1019 we still support it - RequestFlag[livekit.CreateSIPTrunkRequest](), - }, - }, { Hidden: true, // deprecated: use `sip trunk list` Name: "list-sip-trunk", @@ -232,15 +221,6 @@ func createSIPClient(cmd *cli.Command) (*lksdk.SIPClient, error) { return lksdk.NewSIPClient(pc.URL, pc.APIKey, pc.APISecret, withDefaultClientOpts(pc)...), nil } -func createSIPTrunkLegacy(ctx context.Context, cmd *cli.Command) error { - cli, err := createSIPClient(cmd) - if err != nil { - return err - } - //lint:ignore SA1019 we still support it - return createAndPrintLegacy(ctx, cmd, cli.CreateSIPTrunk, printSIPTrunkID) -} - func createSIPInboundTrunk(ctx context.Context, cmd *cli.Command) error { cli, err := createSIPClient(cmd) if err != nil { diff --git a/go.mod b/go.mod index 2ff32463..056bba18 100644 --- a/go.mod +++ b/go.mod @@ -1,8 +1,8 @@ module github.com/livekit/livekit-cli -go 1.22.0 +go 1.22.7 -toolchain go1.23.1 +toolchain go1.23.2 require ( github.com/charmbracelet/huh v0.6.0 @@ -12,8 +12,8 @@ require ( github.com/go-logr/logr v1.4.2 github.com/go-task/task/v3 v3.39.2 github.com/joho/godotenv v1.5.1 - github.com/livekit/protocol v1.24.0 - github.com/livekit/server-sdk-go/v2 v2.2.2-0.20241007155002-76007e61480f + github.com/livekit/protocol v1.26.0 + github.com/livekit/server-sdk-go/v2 v2.3.0 github.com/pion/rtcp v1.2.14 github.com/pion/rtp v1.8.9 github.com/pion/webrtc/v3 v3.3.4 diff --git a/go.sum b/go.sum index 681234ab..cf2219ab 100644 --- a/go.sum +++ b/go.sum @@ -125,12 +125,12 @@ github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1 h1:jm09419p0lqTkD github.com/livekit/mageutil v0.0.0-20230125210925-54e8a70427c1/go.mod h1:Rs3MhFwutWhGwmY1VQsygw28z5bWcnEYmS1OG9OxjOQ= github.com/livekit/mediatransportutil v0.0.0-20240730083616-559fa5ece598 h1:yLlkHk2feSLHstD9n4VKg7YEBR4rLODTI4WE8gNBEnQ= github.com/livekit/mediatransportutil v0.0.0-20240730083616-559fa5ece598/go.mod h1:jwKUCmObuiEDH0iiuJHaGMXwRs3RjrB4G6qqgkr/5oE= -github.com/livekit/protocol v1.24.0 h1:GyRCWsqsmgGXbWGou1uv2A2xKmHJWSDXwz0yIpZQzRo= -github.com/livekit/protocol v1.24.0/go.mod h1:nxRzmQBKSYK64gqr7ABWwt78hvrgiO2wYuCojRYb7Gs= +github.com/livekit/protocol v1.26.0 h1:BAA2mKOHsJEEQCfgkllNyKpNpC0136A0pDiCvr7JYV4= +github.com/livekit/protocol v1.26.0/go.mod h1:nxRzmQBKSYK64gqr7ABWwt78hvrgiO2wYuCojRYb7Gs= github.com/livekit/psrpc v0.6.1-0.20240924010758-9f0a4268a3b9 h1:33oBjGpVD9tYkDXQU42tnHl8eCX9G6PVUToBVuCUyOs= github.com/livekit/psrpc v0.6.1-0.20240924010758-9f0a4268a3b9/go.mod h1:CQUBSPfYYAaevg1TNCc6/aYsa8DJH4jSRFdCeSZk5u0= -github.com/livekit/server-sdk-go/v2 v2.2.2-0.20241007155002-76007e61480f h1:7Vb/gkzVnnNdsV3K47LsWOCQpMfqM927V3XogwUM3jI= -github.com/livekit/server-sdk-go/v2 v2.2.2-0.20241007155002-76007e61480f/go.mod h1:AERqUiaZiAZjMxB5bxZn+M8PJlDD3TAOZn0PieQjnXk= +github.com/livekit/server-sdk-go/v2 v2.3.0 h1:k6kpBwJNZYUypv9567hfmLpxQumL463dNGUBfoF0bzQ= +github.com/livekit/server-sdk-go/v2 v2.3.0/go.mod h1:m2IukIyPCvJCdx04mdWIud9FoCBUAWc3526x3KgT8qY= github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= github.com/magefile/mage v1.15.0 h1:BvGheCMAsG3bWUDbZ8AyXXpCNwU9u5CB6sM+HNb9HYg=