@xipkg/calls-types 0.0.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/README.md +3 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.mjs +10 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +46 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type StartCallDataT = {
|
|
2
|
+
classroom_id: string;
|
|
3
|
+
};
|
|
4
|
+
type ParticipantTypeT = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
isMuted: boolean;
|
|
8
|
+
isVideoEnabled: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** Режим шумоподавления микрофона: выкл, стандартное (WebRTC), усиленное (Krisp). */
|
|
12
|
+
type NoiseCancellationMode = 'off' | 'webrtc' | 'krisp';
|
|
13
|
+
declare const NOISE_CANCELLATION_MODES: readonly NoiseCancellationMode[];
|
|
14
|
+
|
|
15
|
+
export { NOISE_CANCELLATION_MODES, type NoiseCancellationMode, type ParticipantTypeT, type StartCallDataT };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/noiseCancellation.ts"],"names":[],"mappings":";AAGO,IAAM,wBAAA,GAA6D;AAAA,EACxE,KAAA;AAAA,EACA,QAAA;AAAA,EACA;AACF","file":"index.mjs","sourcesContent":["/** Режим шумоподавления микрофона: выкл, стандартное (WebRTC), усиленное (Krisp). */\nexport type NoiseCancellationMode = 'off' | 'webrtc' | 'krisp';\n\nexport const NOISE_CANCELLATION_MODES: readonly NoiseCancellationMode[] = [\n 'off',\n 'webrtc',\n 'krisp',\n] as const;\n\nexport function isNoiseCancellationMode(value: string): value is NoiseCancellationMode {\n return NOISE_CANCELLATION_MODES.includes(value as NoiseCancellationMode);\n}\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xipkg/calls-types",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"development": "./index.ts",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.mjs",
|
|
10
|
+
"default": "./dist/index.mjs"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"lint": "eslint \"**/*.{ts,tsx}\"",
|
|
16
|
+
"dev": "tsup --watch",
|
|
17
|
+
"build": "tsup"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@eslint/js": "^9.19.0",
|
|
22
|
+
"common.eslint": "*",
|
|
23
|
+
"common.typescript": "*",
|
|
24
|
+
"@types/node": "^20.3.1",
|
|
25
|
+
"@types/react": "^19.0.2",
|
|
26
|
+
"@types/react-dom": "^19.0.2",
|
|
27
|
+
"@xipkg/eslint": "3.2.0",
|
|
28
|
+
"@xipkg/typescript": "latest",
|
|
29
|
+
"eslint": "^9.19.0",
|
|
30
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
31
|
+
"eslint-plugin-react-refresh": "^0.4.18",
|
|
32
|
+
"globals": "^15.14.0",
|
|
33
|
+
"typescript": "~5.7.2",
|
|
34
|
+
"typescript-eslint": "^8.22.0"
|
|
35
|
+
},
|
|
36
|
+
"description": "Shared TypeScript types for xi.effect calls",
|
|
37
|
+
"author": "xi.effect",
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"main": "./dist/index.mjs",
|
|
42
|
+
"types": "./dist/index.d.ts",
|
|
43
|
+
"files": [
|
|
44
|
+
"dist"
|
|
45
|
+
]
|
|
46
|
+
}
|