diff --git a/package-lock.json b/package-lock.json index b2d2f39b..7752dce4 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index c792f768..effc3869 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,7 @@ "devDependencies": { "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.14.0", + "@spacebarchat/spacebar-webrtc-types": "^1.0.1", "@types/amqplib": "^0.10.5", "@types/bcrypt": "^5.0.2", "@types/body-parser": "^1.19.5", @@ -67,7 +68,6 @@ "husky": "^9.1.7", "prettier": "^3.5.3", "pretty-quick": "^4.1.1", - "spacebar-webrtc-types": "github:spacebarchat/spacebar-webrtc-types", "typescript": "^5.8.3" }, "dependencies": { @@ -132,4 +132,4 @@ "pg": "^8.14.1", "sqlite3": "^5.1.7" } -} \ No newline at end of file +} diff --git a/src/webrtc/opcodes/Identify.ts b/src/webrtc/opcodes/Identify.ts index 065813fb..9bcaa673 100644 --- a/src/webrtc/opcodes/Identify.ts +++ b/src/webrtc/opcodes/Identify.ts @@ -24,15 +24,15 @@ import { VoiceState, } from "@spacebar/util"; import { + generateSsrc, mediaServer, + Send, VoiceOPCodes, VoicePayload, WebRtcWebSocket, - Send, - generateSsrc, } from "@spacebar/webrtc"; +import { SSRCs } from "@spacebarchat/spacebar-webrtc-types"; import { subscribeToProducers } from "./Video"; -import { SSRCs } from "spacebar-webrtc-types"; export async function onIdentify(this: WebRtcWebSocket, data: VoicePayload) { clearTimeout(this.readyTimeout); diff --git a/src/webrtc/opcodes/Video.ts b/src/webrtc/opcodes/Video.ts index d78827a4..2b327a00 100644 --- a/src/webrtc/opcodes/Video.ts +++ b/src/webrtc/opcodes/Video.ts @@ -18,12 +18,12 @@ import { Stream, validateSchema, VoiceVideoSchema } from "@spacebar/util"; import { mediaServer, + Send, VoiceOPCodes, VoicePayload, WebRtcWebSocket, - Send, } from "@spacebar/webrtc"; -import type { WebRtcClient } from "spacebar-webrtc-types"; +import type { WebRtcClient } from "@spacebarchat/spacebar-webrtc-types"; export async function onVideo(this: WebRtcWebSocket, payload: VoicePayload) { if (!this.webRtcClient) return; diff --git a/src/webrtc/util/MediaServer.ts b/src/webrtc/util/MediaServer.ts index 848b3f73..793419c6 100644 --- a/src/webrtc/util/MediaServer.ts +++ b/src/webrtc/util/MediaServer.ts @@ -16,7 +16,7 @@ along with this program. If not, see . */ -import type { SignalingDelegate } from "spacebar-webrtc-types"; +import type { SignalingDelegate } from "@spacebarchat/spacebar-webrtc-types"; import { green, red } from "picocolors"; export let mediaServer: SignalingDelegate; diff --git a/src/webrtc/util/WebRtcWebSocket.ts b/src/webrtc/util/WebRtcWebSocket.ts index 5bb2da46..b97c1699 100644 --- a/src/webrtc/util/WebRtcWebSocket.ts +++ b/src/webrtc/util/WebRtcWebSocket.ts @@ -1,5 +1,5 @@ import { WebSocket } from "@spacebar/gateway"; -import type { WebRtcClient } from "spacebar-webrtc-types"; +import type { WebRtcClient } from "@spacebarchat/spacebar-webrtc-types"; export interface WebRtcWebSocket extends WebSocket { type: "guild-voice" | "dm-voice" | "stream";