@sentdm/voice-client 0.0.0-stage → 0.2.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/LICENSE +201 -0
  3. package/README.md +283 -2
  4. package/THIRD_PARTY_NOTICES.md +153 -0
  5. package/adapter/loader.d.mts +3 -0
  6. package/adapter/loader.d.mts.map +1 -0
  7. package/adapter/loader.d.ts +3 -0
  8. package/adapter/loader.d.ts.map +1 -0
  9. package/adapter/loader.js +6 -0
  10. package/adapter/loader.js.map +1 -0
  11. package/adapter/loader.mjs +3 -0
  12. package/adapter/loader.mjs.map +1 -0
  13. package/adapter/sinch-rtc.js +30 -0
  14. package/adapter/sinch-rtc.mjs +31 -0
  15. package/adapter/sinch.d.mts +3 -0
  16. package/adapter/sinch.d.mts.map +1 -0
  17. package/adapter/sinch.d.ts +3 -0
  18. package/adapter/sinch.d.ts.map +1 -0
  19. package/adapter/sinch.js +296 -0
  20. package/adapter/sinch.js.map +1 -0
  21. package/adapter/sinch.mjs +292 -0
  22. package/adapter/sinch.mjs.map +1 -0
  23. package/adapter/types.d.mts +79 -0
  24. package/adapter/types.d.mts.map +1 -0
  25. package/adapter/types.d.ts +79 -0
  26. package/adapter/types.d.ts.map +1 -0
  27. package/adapter/types.js +3 -0
  28. package/adapter/types.js.map +1 -0
  29. package/adapter/types.mjs +2 -0
  30. package/adapter/types.mjs.map +1 -0
  31. package/audio.d.mts +42 -0
  32. package/audio.d.mts.map +1 -0
  33. package/audio.d.ts +42 -0
  34. package/audio.d.ts.map +1 -0
  35. package/audio.js +125 -0
  36. package/audio.js.map +1 -0
  37. package/audio.mjs +121 -0
  38. package/audio.mjs.map +1 -0
  39. package/call.d.mts +60 -0
  40. package/call.d.mts.map +1 -0
  41. package/call.d.ts +60 -0
  42. package/call.d.ts.map +1 -0
  43. package/call.js +84 -0
  44. package/call.js.map +1 -0
  45. package/call.mjs +80 -0
  46. package/call.mjs.map +1 -0
  47. package/client.d.mts +118 -0
  48. package/client.d.mts.map +1 -0
  49. package/client.d.ts +118 -0
  50. package/client.d.ts.map +1 -0
  51. package/client.js +371 -0
  52. package/client.js.map +1 -0
  53. package/client.mjs +367 -0
  54. package/client.mjs.map +1 -0
  55. package/errors.d.mts +2 -0
  56. package/errors.d.mts.map +1 -0
  57. package/errors.d.ts +2 -0
  58. package/errors.d.ts.map +1 -0
  59. package/errors.js +16 -0
  60. package/errors.js.map +1 -0
  61. package/errors.mjs +4 -0
  62. package/errors.mjs.map +1 -0
  63. package/index.d.mts +4 -0
  64. package/index.d.mts.map +1 -0
  65. package/index.d.ts +4 -0
  66. package/index.d.ts.map +1 -0
  67. package/index.js +18 -0
  68. package/index.js.map +1 -0
  69. package/index.mjs +4 -0
  70. package/index.mjs.map +1 -0
  71. package/internal/tslib.js +75 -0
  72. package/internal/tslib.mjs +17 -0
  73. package/invite.d.mts +28 -0
  74. package/invite.d.mts.map +1 -0
  75. package/invite.d.ts +28 -0
  76. package/invite.d.ts.map +1 -0
  77. package/invite.js +64 -0
  78. package/invite.js.map +1 -0
  79. package/invite.mjs +60 -0
  80. package/invite.mjs.map +1 -0
  81. package/package.json +41 -3
  82. package/src/adapter/loader.ts +4 -0
  83. package/src/adapter/sinch-rtc.ts +3 -0
  84. package/src/adapter/sinch.ts +348 -0
  85. package/src/adapter/types.ts +64 -0
  86. package/src/audio.ts +174 -0
  87. package/src/call.ts +145 -0
  88. package/src/client.ts +598 -0
  89. package/src/errors.ts +15 -0
  90. package/src/index.ts +14 -0
  91. package/src/invite.ts +75 -0
  92. package/src/sw.js +14 -0
  93. package/src/tsconfig.json +11 -0
  94. package/src/version.ts +1 -0
  95. package/sw.js +14 -0
  96. package/version.d.mts +2 -0
  97. package/version.d.mts.map +1 -0
  98. package/version.d.ts +2 -0
  99. package/version.d.ts.map +1 -0
  100. package/version.js +5 -0
  101. package/version.js.map +1 -0
  102. package/version.mjs +2 -0
  103. package/version.mjs.map +1 -0
@@ -0,0 +1,153 @@
1
+ # Third-party notices
2
+
3
+ This package bundles the following packages into `adapter/sinch-rtc.js` and `adapter/sinch-rtc.mjs`, each under its own licence. `pubnub`, which they use, is not bundled: it is a dependency of this package.
4
+
5
+ ## crypto-js 4.2.0
6
+
7
+ Licence: MIT
8
+
9
+ ```
10
+ # License
11
+
12
+ [The MIT License (MIT)](http://opensource.org/licenses/MIT)
13
+
14
+ Copyright (c) 2009-2013 Jeff Mott
15
+ Copyright (c) 2013-2016 Evan Vosberg
16
+
17
+ Permission is hereby granted, free of charge, to any person obtaining a copy
18
+ of this software and associated documentation files (the "Software"), to deal
19
+ in the Software without restriction, including without limitation the rights
20
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
21
+ copies of the Software, and to permit persons to whom the Software is
22
+ furnished to do so, subject to the following conditions:
23
+
24
+ The above copyright notice and this permission notice shall be included in
25
+ all copies or substantial portions of the Software.
26
+
27
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
32
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
33
+ THE SOFTWARE.
34
+ ```
35
+
36
+ ## fp-ts 2.16.11
37
+
38
+ Licence: MIT
39
+
40
+ ```
41
+ MIT License
42
+
43
+ Copyright (c) 2017-present Giulio Canti
44
+
45
+ Permission is hereby granted, free of charge, to any person obtaining a copy
46
+ of this software and associated documentation files (the "Software"), to deal
47
+ in the Software without restriction, including without limitation the rights
48
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
49
+ copies of the Software, and to permit persons to whom the Software is
50
+ furnished to do so, subject to the following conditions:
51
+
52
+ The above copyright notice and this permission notice shall be included in all
53
+ copies or substantial portions of the Software.
54
+
55
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
56
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
57
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
58
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
59
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
60
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
61
+ SOFTWARE.
62
+ ```
63
+
64
+ ## pako 2.2.0
65
+
66
+ Licence: (MIT AND Zlib)
67
+
68
+ ```
69
+ (The MIT License)
70
+
71
+ Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
72
+
73
+ Permission is hereby granted, free of charge, to any person obtaining a copy
74
+ of this software and associated documentation files (the "Software"), to deal
75
+ in the Software without restriction, including without limitation the rights
76
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
77
+ copies of the Software, and to permit persons to whom the Software is
78
+ furnished to do so, subject to the following conditions:
79
+
80
+ The above copyright notice and this permission notice shall be included in
81
+ all copies or substantial portions of the Software.
82
+
83
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
84
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
85
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
86
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
87
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
88
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
89
+ THE SOFTWARE.
90
+ ```
91
+
92
+ ## sdp-transform 2.15.0
93
+
94
+ Licence: MIT
95
+
96
+ ```
97
+ (The MIT License)
98
+
99
+ Copyright (c) 2013 Eirik Albrigtsen
100
+
101
+ Permission is hereby granted, free of charge, to any person obtaining
102
+ a copy of this software and associated documentation files (the
103
+ 'Software'), to deal in the Software without restriction, including
104
+ without limitation the rights to use, copy, modify, merge, publish,
105
+ distribute, sublicense, and/or sell copies of the Software, and to
106
+ permit persons to whom the Software is furnished to do so, subject to
107
+ the following conditions:
108
+
109
+ The above copyright notice and this permission notice shall be
110
+ included in all copies or substantial portions of the Software.
111
+
112
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
113
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
114
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
115
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
116
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
117
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
118
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
119
+ ```
120
+
121
+ ## sinch-rtc 2.49.11
122
+
123
+ Licence: ISC
124
+
125
+ The package ships no licence file.
126
+
127
+ ## ulid 2.4.0
128
+
129
+ Licence: MIT
130
+
131
+ ```
132
+ The MIT License (MIT)
133
+
134
+ Copyright (c) 2017 Alizain Feerasta
135
+
136
+ Permission is hereby granted, free of charge, to any person obtaining a copy
137
+ of this software and associated documentation files (the "Software"), to deal
138
+ in the Software without restriction, including without limitation the rights
139
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
140
+ copies of the Software, and to permit persons to whom the Software is
141
+ furnished to do so, subject to the following conditions:
142
+
143
+ The above copyright notice and this permission notice shall be included in all
144
+ copies or substantial portions of the Software.
145
+
146
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
147
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
148
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
149
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
150
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
151
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
152
+ SOFTWARE.
153
+ ```
@@ -0,0 +1,3 @@
1
+ import type { AdapterFactory } from "./types.mjs";
2
+ export declare const loadAdapter: AdapterFactory;
3
+ //# sourceMappingURL=loader.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.mts","sourceRoot":"","sources":["../src/adapter/loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,oBAAgB;AAE9C,eAAO,MAAM,WAAW,EAAE,cAAiC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { AdapterFactory } from "./types.js";
2
+ export declare const loadAdapter: AdapterFactory;
3
+ //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/adapter/loader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAgB;AAE9C,eAAO,MAAM,WAAW,EAAE,cAAiC,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loadAdapter = void 0;
4
+ const sinch_1 = require("./sinch.js");
5
+ exports.loadAdapter = sinch_1.loadSinchAdapter;
6
+ //# sourceMappingURL=loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/adapter/loader.ts"],"names":[],"mappings":";;;AAAA,sCAA2C;AAG9B,QAAA,WAAW,GAAmB,wBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { loadSinchAdapter } from "./sinch.mjs";
2
+ export const loadAdapter = loadSinchAdapter;
3
+ //# sourceMappingURL=loader.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.mjs","sourceRoot":"","sources":["../src/adapter/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,oBAAgB;AAG3C,MAAM,CAAC,MAAM,WAAW,GAAmB,gBAAgB,CAAC"}