@honeybbq/teamspeak 0.0.1 → 1.0.0-beta.7
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/LICENSE +21 -0
- package/README.md +726 -2
- package/dist/client/abort.d.ts +5 -0
- package/dist/client/abort.d.ts.map +1 -0
- package/dist/client/abort.js +23 -0
- package/dist/client/abort.js.map +1 -0
- package/dist/client/address.d.ts +17 -0
- package/dist/client/address.d.ts.map +1 -0
- package/dist/client/address.js +66 -0
- package/dist/client/address.js.map +1 -0
- package/dist/client/api/voice.d.ts +24 -0
- package/dist/client/api/voice.d.ts.map +1 -0
- package/dist/client/api/voice.js +33 -0
- package/dist/client/api/voice.js.map +1 -0
- package/dist/client/capabilities.d.ts +68 -0
- package/dist/client/capabilities.d.ts.map +1 -0
- package/dist/client/capabilities.js +59 -0
- package/dist/client/capabilities.js.map +1 -0
- package/dist/client/client.d.ts +196 -0
- package/dist/client/client.d.ts.map +1 -0
- package/dist/client/client.js +1523 -0
- package/dist/client/client.js.map +1 -0
- package/dist/client/commands.d.ts +66 -0
- package/dist/client/commands.d.ts.map +1 -0
- package/dist/client/commands.js +162 -0
- package/dist/client/commands.js.map +1 -0
- package/dist/client/crypto/crypt-ops.d.ts +7 -0
- package/dist/client/crypto/crypt-ops.d.ts.map +1 -0
- package/dist/client/crypto/crypt-ops.js +2 -0
- package/dist/client/crypto/crypt-ops.js.map +1 -0
- package/dist/client/crypto/crypt.d.ts +37 -0
- package/dist/client/crypto/crypt.d.ts.map +1 -0
- package/dist/client/crypto/crypt.js +203 -0
- package/dist/client/crypto/crypt.js.map +1 -0
- package/dist/client/crypto/eax.d.ts +12 -0
- package/dist/client/crypto/eax.d.ts.map +1 -0
- package/dist/client/crypto/eax.js +118 -0
- package/dist/client/crypto/eax.js.map +1 -0
- package/dist/client/crypto/identity.d.ts +97 -0
- package/dist/client/crypto/identity.d.ts.map +1 -0
- package/dist/client/crypto/identity.js +412 -0
- package/dist/client/crypto/identity.js.map +1 -0
- package/dist/client/crypto/index.d.ts +7 -0
- package/dist/client/crypto/index.d.ts.map +1 -0
- package/dist/client/crypto/index.js +5 -0
- package/dist/client/crypto/index.js.map +1 -0
- package/dist/client/crypto/primitives.d.ts +43 -0
- package/dist/client/crypto/primitives.d.ts.map +1 -0
- package/dist/client/crypto/primitives.js +116 -0
- package/dist/client/crypto/primitives.js.map +1 -0
- package/dist/client/diagnostics.d.ts +45 -0
- package/dist/client/diagnostics.d.ts.map +1 -0
- package/dist/client/diagnostics.js +30 -0
- package/dist/client/diagnostics.js.map +1 -0
- package/dist/client/discovery/index.d.ts +2 -0
- package/dist/client/discovery/index.d.ts.map +1 -0
- package/dist/client/discovery/index.js +2 -0
- package/dist/client/discovery/index.js.map +1 -0
- package/dist/client/discovery/resolver.d.ts +26 -0
- package/dist/client/discovery/resolver.d.ts.map +1 -0
- package/dist/client/discovery/resolver.js +275 -0
- package/dist/client/discovery/resolver.js.map +1 -0
- package/dist/client/errors.d.ts +82 -0
- package/dist/client/errors.d.ts.map +1 -0
- package/dist/client/errors.js +201 -0
- package/dist/client/errors.js.map +1 -0
- package/dist/client/events.d.ts +3 -0
- package/dist/client/events.d.ts.map +1 -0
- package/dist/client/events.js +8 -0
- package/dist/client/events.js.map +1 -0
- package/dist/client/handshake/crypt-handshake.d.ts +17 -0
- package/dist/client/handshake/crypt-handshake.d.ts.map +1 -0
- package/dist/client/handshake/crypt-handshake.js +128 -0
- package/dist/client/handshake/crypt-handshake.js.map +1 -0
- package/dist/client/handshake/crypt-init2.d.ts +7 -0
- package/dist/client/handshake/crypt-init2.d.ts.map +1 -0
- package/dist/client/handshake/crypt-init2.js +37 -0
- package/dist/client/handshake/crypt-init2.js.map +1 -0
- package/dist/client/handshake/index.d.ts +4 -0
- package/dist/client/handshake/index.d.ts.map +1 -0
- package/dist/client/handshake/index.js +4 -0
- package/dist/client/handshake/index.js.map +1 -0
- package/dist/client/handshake/license.d.ts +35 -0
- package/dist/client/handshake/license.d.ts.map +1 -0
- package/dist/client/handshake/license.js +169 -0
- package/dist/client/handshake/license.js.map +1 -0
- package/dist/client/handshake.d.ts +27 -0
- package/dist/client/handshake.d.ts.map +1 -0
- package/dist/client/handshake.js +126 -0
- package/dist/client/handshake.js.map +1 -0
- package/dist/client/helpers.d.ts +6 -0
- package/dist/client/helpers.d.ts.map +1 -0
- package/dist/client/helpers.js +13 -0
- package/dist/client/helpers.js.map +1 -0
- package/dist/client/hooks.d.ts +7 -0
- package/dist/client/hooks.d.ts.map +1 -0
- package/dist/client/hooks.js +28 -0
- package/dist/client/hooks.js.map +1 -0
- package/dist/client/index.d.ts +26 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +28 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/reconnect.d.ts +12 -0
- package/dist/client/reconnect.d.ts.map +1 -0
- package/dist/client/reconnect.js +44 -0
- package/dist/client/reconnect.js.map +1 -0
- package/dist/client/throttle.d.ts +20 -0
- package/dist/client/throttle.d.ts.map +1 -0
- package/dist/client/throttle.js +83 -0
- package/dist/client/throttle.js.map +1 -0
- package/dist/client/trace.d.ts +223 -0
- package/dist/client/trace.d.ts.map +1 -0
- package/dist/client/trace.js +13 -0
- package/dist/client/trace.js.map +1 -0
- package/dist/client/transfer.d.ts +111 -0
- package/dist/client/transfer.d.ts.map +1 -0
- package/dist/client/transfer.js +243 -0
- package/dist/client/transfer.js.map +1 -0
- package/dist/client/transport/generation-window.d.ts +30 -0
- package/dist/client/transport/generation-window.d.ts.map +1 -0
- package/dist/client/transport/generation-window.js +97 -0
- package/dist/client/transport/generation-window.js.map +1 -0
- package/dist/client/transport/handler.d.ts +61 -0
- package/dist/client/transport/handler.d.ts.map +1 -0
- package/dist/client/transport/handler.js +793 -0
- package/dist/client/transport/handler.js.map +1 -0
- package/dist/client/transport/index.d.ts +6 -0
- package/dist/client/transport/index.d.ts.map +1 -0
- package/dist/client/transport/index.js +5 -0
- package/dist/client/transport/index.js.map +1 -0
- package/dist/client/transport/packet.d.ts +36 -0
- package/dist/client/transport/packet.d.ts.map +1 -0
- package/dist/client/transport/packet.js +55 -0
- package/dist/client/transport/packet.js.map +1 -0
- package/dist/client/transport/quicklz.d.ts +24 -0
- package/dist/client/transport/quicklz.d.ts.map +1 -0
- package/dist/client/transport/quicklz.js +179 -0
- package/dist/client/transport/quicklz.js.map +1 -0
- package/dist/client/types.d.ts +226 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +39 -0
- package/dist/client/types.js.map +1 -0
- package/dist/core/api/channels.d.ts +182 -0
- package/dist/core/api/channels.d.ts.map +1 -0
- package/dist/core/api/channels.js +155 -0
- package/dist/core/api/channels.js.map +1 -0
- package/dist/core/api/clients.d.ts +304 -0
- package/dist/core/api/clients.d.ts.map +1 -0
- package/dist/core/api/clients.js +260 -0
- package/dist/core/api/clients.js.map +1 -0
- package/dist/core/api/command.d.ts +305 -0
- package/dist/core/api/command.d.ts.map +1 -0
- package/dist/core/api/command.js +363 -0
- package/dist/core/api/command.js.map +1 -0
- package/dist/core/api/files.d.ts +153 -0
- package/dist/core/api/files.d.ts.map +1 -0
- package/dist/core/api/files.js +181 -0
- package/dist/core/api/files.js.map +1 -0
- package/dist/core/api/groups.d.ts +248 -0
- package/dist/core/api/groups.d.ts.map +1 -0
- package/dist/core/api/groups.js +271 -0
- package/dist/core/api/groups.js.map +1 -0
- package/dist/core/api/moderation.d.ts +205 -0
- package/dist/core/api/moderation.d.ts.map +1 -0
- package/dist/core/api/moderation.js +209 -0
- package/dist/core/api/moderation.js.map +1 -0
- package/dist/core/api/parse.d.ts +16 -0
- package/dist/core/api/parse.d.ts.map +1 -0
- package/dist/core/api/parse.js +40 -0
- package/dist/core/api/parse.js.map +1 -0
- package/dist/core/api/server.d.ts +310 -0
- package/dist/core/api/server.d.ts.map +1 -0
- package/dist/core/api/server.js +290 -0
- package/dist/core/api/server.js.map +1 -0
- package/dist/core/command/command.d.ts +20 -0
- package/dist/core/command/command.d.ts.map +1 -0
- package/dist/core/command/command.js +112 -0
- package/dist/core/command/command.js.map +1 -0
- package/dist/core/command/ids.d.ts +125 -0
- package/dist/core/command/ids.d.ts.map +1 -0
- package/dist/core/command/ids.js +85 -0
- package/dist/core/command/ids.js.map +1 -0
- package/dist/core/command/parser.d.ts +17 -0
- package/dist/core/command/parser.d.ts.map +1 -0
- package/dist/core/command/parser.js +65 -0
- package/dist/core/command/parser.js.map +1 -0
- package/dist/core/command/request.d.ts +61 -0
- package/dist/core/command/request.d.ts.map +1 -0
- package/dist/core/command/request.js +64 -0
- package/dist/core/command/request.js.map +1 -0
- package/dist/core/command/responses.d.ts +59 -0
- package/dist/core/command/responses.d.ts.map +1 -0
- package/dist/core/command/responses.js +74 -0
- package/dist/core/command/responses.js.map +1 -0
- package/dist/core/command-name.d.ts +333 -0
- package/dist/core/command-name.d.ts.map +1 -0
- package/dist/core/command-name.js +331 -0
- package/dist/core/command-name.js.map +1 -0
- package/dist/core/enums.d.ts +146 -0
- package/dist/core/enums.d.ts.map +1 -0
- package/dist/core/enums.js +132 -0
- package/dist/core/enums.js.map +1 -0
- package/dist/core/errorcode.d.ts +413 -0
- package/dist/core/errorcode.d.ts.map +1 -0
- package/dist/core/errorcode.js +410 -0
- package/dist/core/errorcode.js.map +1 -0
- package/dist/core/errors.d.ts +111 -0
- package/dist/core/errors.d.ts.map +1 -0
- package/dist/core/errors.js +233 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/events.d.ts +207 -0
- package/dist/core/events.d.ts.map +1 -0
- package/dist/core/events.js +6 -0
- package/dist/core/events.js.map +1 -0
- package/dist/core/helpers.d.ts +42 -0
- package/dist/core/helpers.d.ts.map +1 -0
- package/dist/core/helpers.js +156 -0
- package/dist/core/helpers.js.map +1 -0
- package/dist/core/index.d.ts +35 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +34 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/internal.d.ts +23 -0
- package/dist/core/internal.d.ts.map +1 -0
- package/dist/core/internal.js +20 -0
- package/dist/core/internal.js.map +1 -0
- package/dist/core/middleware.d.ts +14 -0
- package/dist/core/middleware.d.ts.map +1 -0
- package/dist/core/middleware.js +18 -0
- package/dist/core/middleware.js.map +1 -0
- package/dist/core/notification-name.d.ts +154 -0
- package/dist/core/notification-name.d.ts.map +1 -0
- package/dist/core/notification-name.js +152 -0
- package/dist/core/notification-name.js.map +1 -0
- package/dist/core/notifications.d.ts +43 -0
- package/dist/core/notifications.d.ts.map +1 -0
- package/dist/core/notifications.js +116 -0
- package/dist/core/notifications.js.map +1 -0
- package/dist/core/permission-name.d.ts +533 -0
- package/dist/core/permission-name.d.ts.map +1 -0
- package/dist/core/permission-name.js +531 -0
- package/dist/core/permission-name.js.map +1 -0
- package/dist/core/permission.d.ts +31 -0
- package/dist/core/permission.d.ts.map +1 -0
- package/dist/core/permission.js +20 -0
- package/dist/core/permission.js.map +1 -0
- package/dist/core/property-name.d.ts +403 -0
- package/dist/core/property-name.d.ts.map +1 -0
- package/dist/core/property-name.js +405 -0
- package/dist/core/property-name.js.map +1 -0
- package/dist/core/reason.d.ts +39 -0
- package/dist/core/reason.d.ts.map +1 -0
- package/dist/core/reason.js +36 -0
- package/dist/core/reason.js.map +1 -0
- package/dist/core/reconnect.d.ts +59 -0
- package/dist/core/reconnect.d.ts.map +1 -0
- package/dist/core/reconnect.js +55 -0
- package/dist/core/reconnect.js.map +1 -0
- package/dist/core/types.d.ts +110 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +27 -0
- package/dist/core/types.js.map +1 -0
- package/dist/query/client.d.ts +194 -0
- package/dist/query/client.d.ts.map +1 -0
- package/dist/query/client.js +967 -0
- package/dist/query/client.js.map +1 -0
- package/dist/query/errors.d.ts +61 -0
- package/dist/query/errors.d.ts.map +1 -0
- package/dist/query/errors.js +100 -0
- package/dist/query/errors.js.map +1 -0
- package/dist/query/index.d.ts +36 -0
- package/dist/query/index.d.ts.map +1 -0
- package/dist/query/index.js +34 -0
- package/dist/query/index.js.map +1 -0
- package/dist/query/knownhosts.d.ts +61 -0
- package/dist/query/knownhosts.d.ts.map +1 -0
- package/dist/query/knownhosts.js +223 -0
- package/dist/query/knownhosts.js.map +1 -0
- package/dist/query/lines.d.ts +14 -0
- package/dist/query/lines.d.ts.map +1 -0
- package/dist/query/lines.js +29 -0
- package/dist/query/lines.js.map +1 -0
- package/dist/query/options.d.ts +187 -0
- package/dist/query/options.d.ts.map +1 -0
- package/dist/query/options.js +213 -0
- package/dist/query/options.js.map +1 -0
- package/dist/query/reconnect.d.ts +29 -0
- package/dist/query/reconnect.d.ts.map +1 -0
- package/dist/query/reconnect.js +87 -0
- package/dist/query/reconnect.js.map +1 -0
- package/dist/query/ssh.d.ts +345 -0
- package/dist/query/ssh.d.ts.map +1 -0
- package/dist/query/ssh.js +241 -0
- package/dist/query/ssh.js.map +1 -0
- package/dist/query/stream.d.ts +38 -0
- package/dist/query/stream.d.ts.map +1 -0
- package/dist/query/stream.js +70 -0
- package/dist/query/stream.js.map +1 -0
- package/dist/query/tcp.d.ts +38 -0
- package/dist/query/tcp.d.ts.map +1 -0
- package/dist/query/tcp.js +53 -0
- package/dist/query/tcp.js.map +1 -0
- package/dist/query/transport.d.ts +36 -0
- package/dist/query/transport.d.ts.map +1 -0
- package/dist/query/transport.js +2 -0
- package/dist/query/transport.js.map +1 -0
- package/dist/query/web.d.ts +54 -0
- package/dist/query/web.d.ts.map +1 -0
- package/dist/query/web.js +146 -0
- package/dist/query/web.js.map +1 -0
- package/dist/versions/index.d.ts +3094 -0
- package/dist/versions/index.d.ts.map +1 -0
- package/dist/versions/index.js +9237 -0
- package/dist/versions/index.js.map +1 -0
- package/package.json +118 -4
- package/src/client/abort.ts +24 -0
- package/src/client/address.ts +74 -0
- package/src/client/api/voice.ts +61 -0
- package/src/client/capabilities.ts +106 -0
- package/src/client/client.ts +1809 -0
- package/src/client/commands.ts +193 -0
- package/src/client/crypto/crypt-ops.ts +6 -0
- package/src/client/crypto/crypt.ts +275 -0
- package/src/client/crypto/eax.ts +152 -0
- package/src/client/crypto/identity.ts +484 -0
- package/src/client/crypto/index.ts +21 -0
- package/src/client/crypto/primitives.ts +141 -0
- package/src/client/diagnostics.ts +58 -0
- package/src/client/discovery/index.ts +1 -0
- package/src/client/discovery/resolver.ts +325 -0
- package/src/client/errors.ts +217 -0
- package/src/client/events.ts +12 -0
- package/src/client/handshake/crypt-handshake.ts +157 -0
- package/src/client/handshake/crypt-init2.ts +48 -0
- package/src/client/handshake/index.ts +3 -0
- package/src/client/handshake/license.ts +208 -0
- package/src/client/handshake.ts +150 -0
- package/src/client/helpers.ts +10 -0
- package/src/client/hooks.ts +30 -0
- package/src/client/index.ts +93 -0
- package/src/client/reconnect.ts +43 -0
- package/src/client/throttle.ts +92 -0
- package/src/client/trace.ts +237 -0
- package/src/client/transfer.ts +436 -0
- package/src/client/transport/generation-window.ts +108 -0
- package/src/client/transport/handler.ts +926 -0
- package/src/client/transport/index.ts +14 -0
- package/src/client/transport/packet.ts +69 -0
- package/src/client/transport/quicklz.ts +209 -0
- package/src/client/types.ts +268 -0
- package/src/core/api/channels.ts +396 -0
- package/src/core/api/clients.ts +654 -0
- package/src/core/api/command.ts +563 -0
- package/src/core/api/files.ts +405 -0
- package/src/core/api/groups.ts +622 -0
- package/src/core/api/moderation.ts +525 -0
- package/src/core/api/parse.ts +52 -0
- package/src/core/api/server.ts +709 -0
- package/src/core/command/command.ts +125 -0
- package/src/core/command/ids.ts +149 -0
- package/src/core/command/parser.ts +68 -0
- package/src/core/command/request.ts +119 -0
- package/src/core/command/responses.ts +114 -0
- package/src/core/command-name.ts +334 -0
- package/src/core/enums.ts +167 -0
- package/src/core/errorcode.ts +412 -0
- package/src/core/errors.ts +258 -0
- package/src/core/events.ts +219 -0
- package/src/core/helpers.ts +161 -0
- package/src/core/index.ts +126 -0
- package/src/core/internal.ts +23 -0
- package/src/core/middleware.ts +24 -0
- package/src/core/notification-name.ts +155 -0
- package/src/core/notifications.ts +157 -0
- package/src/core/permission-name.ts +538 -0
- package/src/core/permission.ts +34 -0
- package/src/core/property-name.ts +411 -0
- package/src/core/reason.ts +38 -0
- package/src/core/reconnect.ts +98 -0
- package/src/core/types.ts +138 -0
- package/src/query/client.ts +1132 -0
- package/src/query/errors.ts +108 -0
- package/src/query/index.ts +65 -0
- package/src/query/knownhosts.ts +257 -0
- package/src/query/lines.ts +28 -0
- package/src/query/options.ts +388 -0
- package/src/query/reconnect.ts +84 -0
- package/src/query/ssh.ts +614 -0
- package/src/query/stream.ts +91 -0
- package/src/query/tcp.ts +85 -0
- package/src/query/transport.ts +35 -0
- package/src/query/web.ts +195 -0
- package/src/versions/index.ts +10774 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/core/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,UAAU,GAAG,CAAC,EAAE,IAAI,GAAG,CAAC,GAAG,EAAE,CAAC;AACpC,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,UAAU,WAAW,CAAC,CAAS;IACnC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAAE,OAAO,EAAE,CAAC;IACnC,gFAAgF;IAChF,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC;IAC7C,IAAI,MAAM,CAAC,MAAM,GAAG,iBAAiB;QAAE,OAAO,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7B,OAAO,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,CAAS;IACnC,MAAM,CAAC,GAAG,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that run on any connection able to execute a command.
|
|
4
|
+
*
|
|
5
|
+
* The voice client is in `@honeybbq/teamspeak/client`.
|
|
6
|
+
*
|
|
7
|
+
* @module @honeybbq/teamspeak
|
|
8
|
+
*/
|
|
9
|
+
export { escape, unescape } from "./command/command.js";
|
|
10
|
+
export type { CommandExecutor, CommandOptions, CommandRequest, ParamValue, } from "./command/request.js";
|
|
11
|
+
export { asBanID, asChannelID, asClientFileTransferID, asMessageID, asServerFileTransferID, asServerID, asChannelGroupID, asClientDBID, asClientID, asIconID, asPermissionID, asServerGroupID, asUID, asChannelUID, } from "./command/ids.js";
|
|
12
|
+
export type { BanID, ClientFileTransferID, MessageID, ServerFileTransferID, ServerID, ChannelGroupID, ChannelID, ClientDBID, ClientID, IconID, PermissionID, ServerGroupID, UID, ChannelUID, } from "./command/ids.js";
|
|
13
|
+
export { TeamspeakError, ServerError, CommandTimeoutError, NotConnectedError, NoDataError, AlreadyConnectedError, } from "./errors.js";
|
|
14
|
+
export { ErrorCode } from "./errorcode.js";
|
|
15
|
+
export { Reason } from "./reason.js";
|
|
16
|
+
export { ClientType, Codec, GroupNameMode, GroupType, HostMessageMode, LogLevel, PermissionTarget, TextMessageTarget, PrivilegeKeyType, } from "./enums.js";
|
|
17
|
+
export { permissionByID, permissionByName } from "./permission.js";
|
|
18
|
+
export { PermissionName } from "./permission-name.js";
|
|
19
|
+
export { CommandName } from "./command-name.js";
|
|
20
|
+
export { NotificationName } from "./notification-name.js";
|
|
21
|
+
export { PropertyName } from "./property-name.js";
|
|
22
|
+
export type { Permission } from "./permission.js";
|
|
23
|
+
export { noopLogger, consoleLogger, ClientStatus } from "./types.js";
|
|
24
|
+
export type { ClientVersion, Listener, ServerFamily, Unsubscribe, CommandMiddleware, FileDownloadInfo, FileUploadInfo, Logger, } from "./types.js";
|
|
25
|
+
export type { TextMessageEvent, ClientMovedEvent, ClientLeaveEvent, KickedEvent, ClientEnterEvent, PokeEvent, VoiceDataEvent, NotificationEvent, ConnectedEvent, DisconnectedEvent, ServerEventMap, SessionEventMap, } from "./events.js";
|
|
26
|
+
export { backoffDelay, defaultBackoffPolicy } from "./reconnect.js";
|
|
27
|
+
export type { BackoffPolicy, ReconnectOptions } from "./reconnect.js";
|
|
28
|
+
export * from "./api/channels.js";
|
|
29
|
+
export * from "./api/clients.js";
|
|
30
|
+
export * from "./api/server.js";
|
|
31
|
+
export * from "./api/groups.js";
|
|
32
|
+
export * from "./api/moderation.js";
|
|
33
|
+
export * from "./api/files.js";
|
|
34
|
+
export type { Channel, PagingOptions, PermissionEntry } from "./api/command.js";
|
|
35
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGxD,YAAY,EACV,eAAe,EACf,cAAc,EACd,cAAc,EACd,UAAU,GACX,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,OAAO,EACP,WAAW,EACX,sBAAsB,EACtB,WAAW,EACX,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,KAAK,EACL,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EACV,KAAK,EACL,oBAAoB,EACpB,SAAS,EACT,oBAAoB,EACpB,QAAQ,EACR,cAAc,EACd,SAAS,EACT,UAAU,EACV,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,aAAa,EACb,GAAG,EACH,UAAU,GACX,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACX,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,O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AE,eAAe,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What every TeamSpeak connection shares: the command language, ids, errors,
|
|
3
|
+
* and the typed commands that run on any connection able to execute a command.
|
|
4
|
+
*
|
|
5
|
+
* The voice client is in `@honeybbq/teamspeak/client`.
|
|
6
|
+
*
|
|
7
|
+
* @module @honeybbq/teamspeak
|
|
8
|
+
*/
|
|
9
|
+
// Escaping, for a raw line sent with a client's `exec`.
|
|
10
|
+
export { escape, unescape } from "./command/command.js";
|
|
11
|
+
// Branded ids: a ChannelID cannot be passed where a ClientID is meant.
|
|
12
|
+
export { asBanID, asChannelID, asClientFileTransferID, asMessageID, asServerFileTransferID, asServerID, asChannelGroupID, asClientDBID, asClientID, asIconID, asPermissionID, asServerGroupID, asUID, asChannelUID, } from "./command/ids.js";
|
|
13
|
+
export { TeamspeakError, ServerError, CommandTimeoutError, NotConnectedError, NoDataError, AlreadyConnectedError, } from "./errors.js";
|
|
14
|
+
export { ErrorCode } from "./errorcode.js";
|
|
15
|
+
export { Reason } from "./reason.js";
|
|
16
|
+
// Small-integer enumerations, as named values and types.
|
|
17
|
+
export { ClientType, Codec, GroupNameMode, GroupType, HostMessageMode, LogLevel, PermissionTarget, TextMessageTarget, PrivilegeKeyType, } from "./enums.js";
|
|
18
|
+
// Permissions, by id or by name.
|
|
19
|
+
export { permissionByID, permissionByName } from "./permission.js";
|
|
20
|
+
export { PermissionName } from "./permission-name.js";
|
|
21
|
+
export { CommandName } from "./command-name.js";
|
|
22
|
+
export { NotificationName } from "./notification-name.js";
|
|
23
|
+
export { PropertyName } from "./property-name.js";
|
|
24
|
+
export { noopLogger, consoleLogger, ClientStatus } from "./types.js";
|
|
25
|
+
// Reconnection policy, whose retry decision each client supplies.
|
|
26
|
+
export { backoffDelay, defaultBackoffPolicy } from "./reconnect.js";
|
|
27
|
+
// Typed commands, one module per area of the protocol.
|
|
28
|
+
export * from "./api/channels.js";
|
|
29
|
+
export * from "./api/clients.js";
|
|
30
|
+
export * from "./api/server.js";
|
|
31
|
+
export * from "./api/groups.js";
|
|
32
|
+
export * from "./api/moderation.js";
|
|
33
|
+
export * from "./api/files.js";
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,wDAAwD;AACxD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAUxD,uEAAuE;AACvE,OAAO,EACL,OAAO,EACP,WAAW,EACX,sBAAsB,EACtB,WAAW,EACX,sBAAsB,EACtB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAe,EACf,KAAK,EACL,YAAY,GACb,MAAM,kBAAkB,CAAC;AAkB1B,OAAO,EACL,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACX,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,yDAAyD;AACzD,OAAO,EACL,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB,iCAAiC;AACjC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA4BrE,kEAAkE;AAClE,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAGpE,uDAAuD;AACvD,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Protocol plumbing for the modules next to the core, `client` and `query`.
|
|
3
|
+
*
|
|
4
|
+
* Not public API and not exported by the package: they import it by relative
|
|
5
|
+
* path, so it can change in any release.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export { isCommandName, parseCommand } from "./command/parser.js";
|
|
10
|
+
export { encodeRequest } from "./command/request.js";
|
|
11
|
+
export { buildCommandChain } from "./middleware.js";
|
|
12
|
+
export { buildCommand, buildCommandOrdered } from "./command/command.js";
|
|
13
|
+
export type { Command } from "./command/command.js";
|
|
14
|
+
export { parseClient } from "./api/parse.js";
|
|
15
|
+
export { handleNotification } from "./notifications.js";
|
|
16
|
+
export type { NotificationResult } from "./notifications.js";
|
|
17
|
+
export { parseIconID } from "./command/ids.js";
|
|
18
|
+
export { responseSpec } from "./command/responses.js";
|
|
19
|
+
export type { ResponseSpec } from "./command/responses.js";
|
|
20
|
+
export { parseErrorCode, parseServerError } from "./errors.js";
|
|
21
|
+
export { splitCommandRows, parseUint64, parseUint16, parseInt10, sleep } from "./helpers.js";
|
|
22
|
+
export { jitteredDelay, resolveBackoffPolicy } from "./reconnect.js";
|
|
23
|
+
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../src/core/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AACzE,YAAY,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,YAAY,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Protocol plumbing for the modules next to the core, `client` and `query`.
|
|
3
|
+
*
|
|
4
|
+
* Not public API and not exported by the package: they import it by relative
|
|
5
|
+
* path, so it can change in any release.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export { isCommandName, parseCommand } from "./command/parser.js";
|
|
10
|
+
export { encodeRequest } from "./command/request.js";
|
|
11
|
+
export { buildCommandChain } from "./middleware.js";
|
|
12
|
+
export { buildCommand, buildCommandOrdered } from "./command/command.js";
|
|
13
|
+
export { parseClient } from "./api/parse.js";
|
|
14
|
+
export { handleNotification } from "./notifications.js";
|
|
15
|
+
export { parseIconID } from "./command/ids.js";
|
|
16
|
+
export { responseSpec } from "./command/responses.js";
|
|
17
|
+
export { parseErrorCode, parseServerError } from "./errors.js";
|
|
18
|
+
export { splitCommandRows, parseUint64, parseUint16, parseInt10, sleep } from "./helpers.js";
|
|
19
|
+
export { jitteredDelay, resolveBackoffPolicy } from "./reconnect.js";
|
|
20
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../src/core/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Command middleware, and the chain it makes.
|
|
3
|
+
*
|
|
4
|
+
* Both clients wrap the typed command layer the same way, so the composing
|
|
5
|
+
* lives here; each supplies its own base handler.
|
|
6
|
+
*/
|
|
7
|
+
import type { CommandExecutor } from "./command/request.js";
|
|
8
|
+
import type { CommandMiddleware } from "./types.js";
|
|
9
|
+
/**
|
|
10
|
+
* Compose a chain of middlewares around a base handler.
|
|
11
|
+
* Rightmost middleware wraps the base first.
|
|
12
|
+
*/
|
|
13
|
+
export declare function buildCommandChain(middlewares: readonly CommandMiddleware[], base: CommandExecutor["send"]): CommandExecutor["send"];
|
|
14
|
+
//# sourceMappingURL=middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/core/middleware.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,SAAS,iBAAiB,EAAE,EACzC,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,GAC5B,eAAe,CAAC,MAAM,CAAC,CAMzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Command middleware, and the chain it makes.
|
|
3
|
+
*
|
|
4
|
+
* Both clients wrap the typed command layer the same way, so the composing
|
|
5
|
+
* lives here; each supplies its own base handler.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Compose a chain of middlewares around a base handler.
|
|
9
|
+
* Rightmost middleware wraps the base first.
|
|
10
|
+
*/
|
|
11
|
+
export function buildCommandChain(middlewares, base) {
|
|
12
|
+
let handler = base;
|
|
13
|
+
for (let i = middlewares.length - 1; i >= 0; i--) {
|
|
14
|
+
handler = middlewares[i](handler);
|
|
15
|
+
}
|
|
16
|
+
return handler;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=middleware.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../src/core/middleware.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,WAAyC,EACzC,IAA6B;IAE7B,IAAI,OAAO,GAAG,IAAI,CAAC;IACnB,KAAK,IAAI,CAAC,GAAG,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QACjD,OAAO,GAAG,WAAW,CAAC,CAAC,CAAE,CAAC,OAAO,CAAC,CAAC;IACrC,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The names of the notifications a TeamSpeak server sends, for matching the
|
|
3
|
+
* `notification` event:
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* client.on(EventName.Notification, (n) => {
|
|
7
|
+
* if (n.name === NotificationName.ChannelEdited) { ... }
|
|
8
|
+
* });
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* Many are also how the voice protocol answers a command, which the client
|
|
12
|
+
* already pairs with its command. A server may send notifications this table
|
|
13
|
+
* does not name, which is why `NotificationEvent.name` is not limited to it.
|
|
14
|
+
*/
|
|
15
|
+
declare const notificationNameValues: {
|
|
16
|
+
/** `notifybanlist`: Reply to banlist: one row per ban rule on the virtual server. */
|
|
17
|
+
readonly BanList: "notifybanlist";
|
|
18
|
+
/** `notifychannelchanged`: A channel's properties changed and this client should fetch them again. */
|
|
19
|
+
readonly ChannelChanged: "notifychannelchanged";
|
|
20
|
+
/** `notifychannelclientpermlist`: Reply to channelclientpermlist: one row per permission set for a client in a channel. */
|
|
21
|
+
readonly ChannelClientPermList: "notifychannelclientpermlist";
|
|
22
|
+
/** `notifychannelcreated`: A channel was created: it carries the new channel's properties and who created it. */
|
|
23
|
+
readonly ChannelCreated: "notifychannelcreated";
|
|
24
|
+
/** `notifychanneldeleted`: A channel was deleted, with who deleted it. */
|
|
25
|
+
readonly ChannelDeleted: "notifychanneldeleted";
|
|
26
|
+
/** `notifychanneldescriptionchanged`: A channel's description changed; the new text is fetched with channelgetdescription. */
|
|
27
|
+
readonly ChannelDescriptionChanged: "notifychanneldescriptionchanged";
|
|
28
|
+
/** `notifychanneledited`: A channel was edited and these are its changed properties; it is also the reply to channelgetdescription, carrying the description. */
|
|
29
|
+
readonly ChannelEdited: "notifychanneledited";
|
|
30
|
+
/** `notifychannelgroupclientlist`: Reply to channelgroupclientlist: one row per client assigned to a channel group in a channel. */
|
|
31
|
+
readonly ChannelGroupClientList: "notifychannelgroupclientlist";
|
|
32
|
+
/** `notifychannelgrouplist`: Reply to channelgrouplist, and sent by the server on joining: one row per channel group. */
|
|
33
|
+
readonly ChannelGroupList: "notifychannelgrouplist";
|
|
34
|
+
/** `notifychannelgrouppermlist`: Reply to channelgrouppermlist: one row per permission set on a channel group. */
|
|
35
|
+
readonly ChannelGroupPermList: "notifychannelgrouppermlist";
|
|
36
|
+
/** `notifychannelmoved`: A channel was moved under another parent channel or reordered, with who moved it. */
|
|
37
|
+
readonly ChannelMoved: "notifychannelmoved";
|
|
38
|
+
/** `notifychannelpasswordchanged`: A channel's password was set or changed. */
|
|
39
|
+
readonly ChannelPasswordChanged: "notifychannelpasswordchanged";
|
|
40
|
+
/** `notifychannelpermhints`: The permissions this client holds on a channel changed; a bit set of hints tells which kinds of permission changed. */
|
|
41
|
+
readonly ChannelPermHints: "notifychannelpermhints";
|
|
42
|
+
/** `notifychannelpermlist`: Reply to channelpermlist: one row per permission set on a channel. */
|
|
43
|
+
readonly ChannelPermList: "notifychannelpermlist";
|
|
44
|
+
/** `notifychannelsubscribed`: This client is now subscribed to a channel, so it will see the clients in it. */
|
|
45
|
+
readonly ChannelSubscribed: "notifychannelsubscribed";
|
|
46
|
+
/** `notifychannelunsubscribed`: This client is no longer subscribed to a channel, so the clients in it have gone out of view. */
|
|
47
|
+
readonly ChannelUnsubscribed: "notifychannelunsubscribed";
|
|
48
|
+
/** `notifyclientchannelgroupchanged`: A client's channel group in a channel changed, with who changed it. */
|
|
49
|
+
readonly ClientChannelGroupChanged: "notifyclientchannelgroupchanged";
|
|
50
|
+
/** `notifyclientchatclosed`: A client closed its private chat with this client. */
|
|
51
|
+
readonly ClientChatClosed: "notifyclientchatclosed";
|
|
52
|
+
/** `notifyclientchatcomposing`: A client is typing a private message to this client. */
|
|
53
|
+
readonly ClientChatComposing: "notifyclientchatcomposing";
|
|
54
|
+
/** `notifyclientdbfind`: Reply to clientdbfind: one row per matching client in the database. */
|
|
55
|
+
readonly ClientDBFind: "notifyclientdbfind";
|
|
56
|
+
/** `notifyclientdbidfromuid`: Reply to clientgetdbidfromuid: the database id of the client with that unique id. */
|
|
57
|
+
readonly ClientDBIDFromUID: "notifyclientdbidfromuid";
|
|
58
|
+
/** `notifyclientdblist`: Reply to clientdblist: one row per client known to the server. */
|
|
59
|
+
readonly ClientDBList: "notifyclientdblist";
|
|
60
|
+
/** `notifycliententerview`: A client came into view: it connected, or moved into a channel this client is subscribed to. */
|
|
61
|
+
readonly ClientEnterView: "notifycliententerview";
|
|
62
|
+
/** `notifyclientids`: Reply to clientgetids: the online client ids that belong to a unique id. */
|
|
63
|
+
readonly ClientIDs: "notifyclientids";
|
|
64
|
+
/** `notifyclientleftview`: A client went out of view: it disconnected, was kicked or banned, or moved out of the subscribed channels. */
|
|
65
|
+
readonly ClientLeftView: "notifyclientleftview";
|
|
66
|
+
/** `notifyclientmoved`: A client moved to another channel, with the reason and who moved it. */
|
|
67
|
+
readonly ClientMoved: "notifyclientmoved";
|
|
68
|
+
/** `notifyclientnamefromdbid`: Reply to clientgetnamefromdbid: the unique id and nickname of the client with that database id. */
|
|
69
|
+
readonly ClientNameFromDBID: "notifyclientnamefromdbid";
|
|
70
|
+
/** `notifyclientnamefromuid`: Reply to clientgetnamefromuid: the database id and nickname of the client with that unique id. */
|
|
71
|
+
readonly ClientNameFromUID: "notifyclientnamefromuid";
|
|
72
|
+
/** `notifyclientneededpermissions`: A command failed or a feature is unavailable because this client lacks a permission; it names the permission id and the value needed. */
|
|
73
|
+
readonly ClientNeededPermissions: "notifyclientneededpermissions";
|
|
74
|
+
/** `notifyclientpermhints`: The permissions this client holds changed; a bit set of hints tells which kinds of permission changed. */
|
|
75
|
+
readonly ClientPermHints: "notifyclientpermhints";
|
|
76
|
+
/** `notifyclientpermlist`: Reply to clientpermlist: one row per permission set on a client. */
|
|
77
|
+
readonly ClientPermList: "notifyclientpermlist";
|
|
78
|
+
/** `notifyclientpoke`: Another client poked this client with a message. */
|
|
79
|
+
readonly ClientPoke: "notifyclientpoke";
|
|
80
|
+
/** `notifyclientserverqueryloginpassword`: Reply to clientsetserverquerylogin: the generated ServerQuery password. */
|
|
81
|
+
readonly ClientServerQueryLoginPassword: "notifyclientserverqueryloginpassword";
|
|
82
|
+
/** `notifyclientuidfromclid`: Reply to clientgetuidfromclid: the unique id and nickname of the client with that client id. */
|
|
83
|
+
readonly ClientUIDFromCLID: "notifyclientuidfromclid";
|
|
84
|
+
/** `notifyclientupdated`: A client in view changed some of its properties, such as its nickname, mute state or away message. */
|
|
85
|
+
readonly ClientUpdated: "notifyclientupdated";
|
|
86
|
+
/** `notifycomplainlist`: Reply to complainlist: one row per complaint. */
|
|
87
|
+
readonly ComplainList: "notifycomplainlist";
|
|
88
|
+
/** `notifyconnectioninfo`: A client's connection statistics, sent in answer to a request for them (getconnectioninfo). */
|
|
89
|
+
readonly ConnectionInfo: "notifyconnectioninfo";
|
|
90
|
+
/** `notifyconnectioninforequest`: The server asks this client to report its own connection statistics with setconnectioninfo. */
|
|
91
|
+
readonly ConnectionInfoRequest: "notifyconnectioninforequest";
|
|
92
|
+
/** `notifyfileinfo`: Reply to ftgetfileinfo: one row per file, with its size and modification time. */
|
|
93
|
+
readonly FileInfo: "notifyfileinfo";
|
|
94
|
+
/** `notifyfilelist`: Reply to ftgetfilelist: one row per file or directory in a channel's file repository. */
|
|
95
|
+
readonly FileList: "notifyfilelist";
|
|
96
|
+
/** `notifyfilelistfinished`: The server has sent every notifyfilelist row for a channel path. */
|
|
97
|
+
readonly FileListFinished: "notifyfilelistfinished";
|
|
98
|
+
/** `notifyfiletransferlist`: Reply to ftlist: one row per running file transfer. */
|
|
99
|
+
readonly FileTransferList: "notifyfiletransferlist";
|
|
100
|
+
/** `notifymessage`: Reply to messageget: an offline message with its subject and body. */
|
|
101
|
+
readonly Message: "notifymessage";
|
|
102
|
+
/** `notifymessagelist`: Reply to messagelist: one row per offline message in this client's inbox. */
|
|
103
|
+
readonly MessageList: "notifymessagelist";
|
|
104
|
+
/** `notifypermfind`: Reply to permfind: one row per place a permission is assigned. */
|
|
105
|
+
readonly PermFind: "notifypermfind";
|
|
106
|
+
/** `notifypermissionlist`: Reply to permissionlist: one row per permission the server knows, with its id, name and description. */
|
|
107
|
+
readonly PermissionList: "notifypermissionlist";
|
|
108
|
+
/** `notifypermoverview`: Reply to permoverview: one row per permission assignment that applies to a client in a channel. */
|
|
109
|
+
readonly PermOverview: "notifypermoverview";
|
|
110
|
+
/** `notifyplugincmd`: A plugin command another client sent with plugincmd, to this client's channel or to it directly. */
|
|
111
|
+
readonly PluginCmd: "notifyplugincmd";
|
|
112
|
+
/** `notifyserverconnectioninfo`: Reply to serverrequestconnectioninfo: the virtual server's traffic and bandwidth statistics. */
|
|
113
|
+
readonly ServerConnectionInfo: "notifyserverconnectioninfo";
|
|
114
|
+
/** `notifyserveredited`: The virtual server's settings were edited, with who edited them and the settings that changed. */
|
|
115
|
+
readonly ServerEdited: "notifyserveredited";
|
|
116
|
+
/** `notifyservergroupclientadded`: A client was added to a server group, with who added it. */
|
|
117
|
+
readonly ServerGroupClientAdded: "notifyservergroupclientadded";
|
|
118
|
+
/** `notifyservergroupclientdeleted`: A client was removed from a server group, with who removed it. */
|
|
119
|
+
readonly ServerGroupClientDeleted: "notifyservergroupclientdeleted";
|
|
120
|
+
/** `notifyservergroupclientlist`: Reply to servergroupclientlist: one row per client in a server group. */
|
|
121
|
+
readonly ServerGroupClientList: "notifyservergroupclientlist";
|
|
122
|
+
/** `notifyservergrouplist`: Reply to servergrouplist, and sent by the server on joining: one row per server group. */
|
|
123
|
+
readonly ServerGroupList: "notifyservergrouplist";
|
|
124
|
+
/** `notifyservergrouppermlist`: Reply to servergrouppermlist: one row per permission set on a server group. */
|
|
125
|
+
readonly ServerGroupPermList: "notifyservergrouppermlist";
|
|
126
|
+
/** `notifyservergroupsbyclientid`: Reply to servergroupsbyclientid: one row per server group a client belongs to. */
|
|
127
|
+
readonly ServerGroupsByClientID: "notifyservergroupsbyclientid";
|
|
128
|
+
/** `notifyserverlog`: Reply to logview: a chunk of the server log with the position to read on from. */
|
|
129
|
+
readonly ServerLog: "notifyserverlog";
|
|
130
|
+
/** `notifyservertemppasswordlist`: Reply to servertemppasswordlist: one row per active temporary server password. */
|
|
131
|
+
readonly ServerTempPasswordList: "notifyservertemppasswordlist";
|
|
132
|
+
/** `notifyserverupdated`: The virtual server's statistics and settings, sent when they change or when this client asks for them. */
|
|
133
|
+
readonly ServerUpdated: "notifyserverupdated";
|
|
134
|
+
/** `notifystartdownload`: Reply to ftinitdownload: the key, port and size to start a download on the file transfer port. */
|
|
135
|
+
readonly StartDownload: "notifystartdownload";
|
|
136
|
+
/** `notifystartupload`: Reply to ftinitupload: the key, port and offset to start an upload on the file transfer port. */
|
|
137
|
+
readonly StartUpload: "notifystartupload";
|
|
138
|
+
/** `notifystatusfiletransfer`: A file transfer ended or failed: it carries the status code and message for the transfer's client-side id. */
|
|
139
|
+
readonly StatusFileTransfer: "notifystatusfiletransfer";
|
|
140
|
+
/** `notifytextmessage`: A text message arrived, to this client, its channel or the whole server, with who sent it. */
|
|
141
|
+
readonly TextMessage: "notifytextmessage";
|
|
142
|
+
/** `notifytokenadd`: Reply to privilegekeyadd: the new privilege key. */
|
|
143
|
+
readonly TokenAdd: "notifytokenadd";
|
|
144
|
+
/** `notifytokenlist`: Reply to privilegekeylist: one row per privilege key. */
|
|
145
|
+
readonly TokenList: "notifytokenlist";
|
|
146
|
+
/** `notifytokenused`: A privilege key was used, with who used it and the groups it granted. */
|
|
147
|
+
readonly TokenUsed: "notifytokenused";
|
|
148
|
+
};
|
|
149
|
+
/** The notification names; see {@link NotificationName}'s entries for what each carries. */
|
|
150
|
+
export declare const NotificationName: typeof notificationNameValues;
|
|
151
|
+
/** A notification name a TeamSpeak 3.13 or 6 server sends. */
|
|
152
|
+
export type NotificationName = (typeof NotificationName)[keyof typeof NotificationName];
|
|
153
|
+
export {};
|
|
154
|
+
//# sourceMappingURL=notification-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-name.d.ts","sourceRoot":"","sources":["../../src/core/notification-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,sBAAsB;IAC1B,qFAAqF;aACrF,OAAO,EAAE,eAAe;IACxB,sGAAsG;aACtG,cAAc,EAAE,sBAAsB;IACtC,2HAA2H;aAC3H,qBAAqB,EAAE,6BAA6B;IACpD,iHAAiH;aACjH,cAAc,EAAE,sBAAsB;IACtC,0EAA0E;aAC1E,cAAc,EAAE,sBAAsB;IACtC,8HAA8H;aAC9H,yBAAyB,EAAE,iCAAiC;IAC5D,iKAAiK;aACjK,aAAa,EAAE,qBAAqB;IACpC,oIAAoI;aACpI,sBAAsB,EAAE,8BAA8B;IACtD,yHAAyH;aACzH,gBAAgB,EAAE,wBAAwB;IAC1C,kHAAkH;aAClH,oBAAoB,EAAE,4BAA4B;IAClD,8GAA8G;aAC9G,YAAY,EAAE,oBAAoB;IAClC,+EAA+E;aAC/E,sBAAsB,EAAE,8BAA8B;IACtD,oJAAoJ;aACpJ,gBAAgB,EAAE,wBAAwB;IAC1C,kGAAkG;aAClG,eAAe,EAAE,uBAAuB;IACxC,+GAA+G;aAC/G,iBAAi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a TeamSpeak server sends, for matching the
|
|
3
|
+
* `notification` event:
|
|
4
|
+
*
|
|
5
|
+
* ```ts
|
|
6
|
+
* client.on(EventName.Notification, (n) => {
|
|
7
|
+
* if (n.name === NotificationName.ChannelEdited) { ... }
|
|
8
|
+
* });
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* Many are also how the voice protocol answers a command, which the client
|
|
12
|
+
* already pairs with its command. A server may send notifications this table
|
|
13
|
+
* does not name, which is why `NotificationEvent.name` is not limited to it.
|
|
14
|
+
*/
|
|
15
|
+
const notificationNameValues = {
|
|
16
|
+
/** `notifybanlist`: Reply to banlist: one row per ban rule on the virtual server. */
|
|
17
|
+
BanList: "notifybanlist",
|
|
18
|
+
/** `notifychannelchanged`: A channel's properties changed and this client should fetch them again. */
|
|
19
|
+
ChannelChanged: "notifychannelchanged",
|
|
20
|
+
/** `notifychannelclientpermlist`: Reply to channelclientpermlist: one row per permission set for a client in a channel. */
|
|
21
|
+
ChannelClientPermList: "notifychannelclientpermlist",
|
|
22
|
+
/** `notifychannelcreated`: A channel was created: it carries the new channel's properties and who created it. */
|
|
23
|
+
ChannelCreated: "notifychannelcreated",
|
|
24
|
+
/** `notifychanneldeleted`: A channel was deleted, with who deleted it. */
|
|
25
|
+
ChannelDeleted: "notifychanneldeleted",
|
|
26
|
+
/** `notifychanneldescriptionchanged`: A channel's description changed; the new text is fetched with channelgetdescription. */
|
|
27
|
+
ChannelDescriptionChanged: "notifychanneldescriptionchanged",
|
|
28
|
+
/** `notifychanneledited`: A channel was edited and these are its changed properties; it is also the reply to channelgetdescription, carrying the description. */
|
|
29
|
+
ChannelEdited: "notifychanneledited",
|
|
30
|
+
/** `notifychannelgroupclientlist`: Reply to channelgroupclientlist: one row per client assigned to a channel group in a channel. */
|
|
31
|
+
ChannelGroupClientList: "notifychannelgroupclientlist",
|
|
32
|
+
/** `notifychannelgrouplist`: Reply to channelgrouplist, and sent by the server on joining: one row per channel group. */
|
|
33
|
+
ChannelGroupList: "notifychannelgrouplist",
|
|
34
|
+
/** `notifychannelgrouppermlist`: Reply to channelgrouppermlist: one row per permission set on a channel group. */
|
|
35
|
+
ChannelGroupPermList: "notifychannelgrouppermlist",
|
|
36
|
+
/** `notifychannelmoved`: A channel was moved under another parent channel or reordered, with who moved it. */
|
|
37
|
+
ChannelMoved: "notifychannelmoved",
|
|
38
|
+
/** `notifychannelpasswordchanged`: A channel's password was set or changed. */
|
|
39
|
+
ChannelPasswordChanged: "notifychannelpasswordchanged",
|
|
40
|
+
/** `notifychannelpermhints`: The permissions this client holds on a channel changed; a bit set of hints tells which kinds of permission changed. */
|
|
41
|
+
ChannelPermHints: "notifychannelpermhints",
|
|
42
|
+
/** `notifychannelpermlist`: Reply to channelpermlist: one row per permission set on a channel. */
|
|
43
|
+
ChannelPermList: "notifychannelpermlist",
|
|
44
|
+
/** `notifychannelsubscribed`: This client is now subscribed to a channel, so it will see the clients in it. */
|
|
45
|
+
ChannelSubscribed: "notifychannelsubscribed",
|
|
46
|
+
/** `notifychannelunsubscribed`: This client is no longer subscribed to a channel, so the clients in it have gone out of view. */
|
|
47
|
+
ChannelUnsubscribed: "notifychannelunsubscribed",
|
|
48
|
+
/** `notifyclientchannelgroupchanged`: A client's channel group in a channel changed, with who changed it. */
|
|
49
|
+
ClientChannelGroupChanged: "notifyclientchannelgroupchanged",
|
|
50
|
+
/** `notifyclientchatclosed`: A client closed its private chat with this client. */
|
|
51
|
+
ClientChatClosed: "notifyclientchatclosed",
|
|
52
|
+
/** `notifyclientchatcomposing`: A client is typing a private message to this client. */
|
|
53
|
+
ClientChatComposing: "notifyclientchatcomposing",
|
|
54
|
+
/** `notifyclientdbfind`: Reply to clientdbfind: one row per matching client in the database. */
|
|
55
|
+
ClientDBFind: "notifyclientdbfind",
|
|
56
|
+
/** `notifyclientdbidfromuid`: Reply to clientgetdbidfromuid: the database id of the client with that unique id. */
|
|
57
|
+
ClientDBIDFromUID: "notifyclientdbidfromuid",
|
|
58
|
+
/** `notifyclientdblist`: Reply to clientdblist: one row per client known to the server. */
|
|
59
|
+
ClientDBList: "notifyclientdblist",
|
|
60
|
+
/** `notifycliententerview`: A client came into view: it connected, or moved into a channel this client is subscribed to. */
|
|
61
|
+
ClientEnterView: "notifycliententerview",
|
|
62
|
+
/** `notifyclientids`: Reply to clientgetids: the online client ids that belong to a unique id. */
|
|
63
|
+
ClientIDs: "notifyclientids",
|
|
64
|
+
/** `notifyclientleftview`: A client went out of view: it disconnected, was kicked or banned, or moved out of the subscribed channels. */
|
|
65
|
+
ClientLeftView: "notifyclientleftview",
|
|
66
|
+
/** `notifyclientmoved`: A client moved to another channel, with the reason and who moved it. */
|
|
67
|
+
ClientMoved: "notifyclientmoved",
|
|
68
|
+
/** `notifyclientnamefromdbid`: Reply to clientgetnamefromdbid: the unique id and nickname of the client with that database id. */
|
|
69
|
+
ClientNameFromDBID: "notifyclientnamefromdbid",
|
|
70
|
+
/** `notifyclientnamefromuid`: Reply to clientgetnamefromuid: the database id and nickname of the client with that unique id. */
|
|
71
|
+
ClientNameFromUID: "notifyclientnamefromuid",
|
|
72
|
+
/** `notifyclientneededpermissions`: A command failed or a feature is unavailable because this client lacks a permission; it names the permission id and the value needed. */
|
|
73
|
+
ClientNeededPermissions: "notifyclientneededpermissions",
|
|
74
|
+
/** `notifyclientpermhints`: The permissions this client holds changed; a bit set of hints tells which kinds of permission changed. */
|
|
75
|
+
ClientPermHints: "notifyclientpermhints",
|
|
76
|
+
/** `notifyclientpermlist`: Reply to clientpermlist: one row per permission set on a client. */
|
|
77
|
+
ClientPermList: "notifyclientpermlist",
|
|
78
|
+
/** `notifyclientpoke`: Another client poked this client with a message. */
|
|
79
|
+
ClientPoke: "notifyclientpoke",
|
|
80
|
+
/** `notifyclientserverqueryloginpassword`: Reply to clientsetserverquerylogin: the generated ServerQuery password. */
|
|
81
|
+
ClientServerQueryLoginPassword: "notifyclientserverqueryloginpassword",
|
|
82
|
+
/** `notifyclientuidfromclid`: Reply to clientgetuidfromclid: the unique id and nickname of the client with that client id. */
|
|
83
|
+
ClientUIDFromCLID: "notifyclientuidfromclid",
|
|
84
|
+
/** `notifyclientupdated`: A client in view changed some of its properties, such as its nickname, mute state or away message. */
|
|
85
|
+
ClientUpdated: "notifyclientupdated",
|
|
86
|
+
/** `notifycomplainlist`: Reply to complainlist: one row per complaint. */
|
|
87
|
+
ComplainList: "notifycomplainlist",
|
|
88
|
+
/** `notifyconnectioninfo`: A client's connection statistics, sent in answer to a request for them (getconnectioninfo). */
|
|
89
|
+
ConnectionInfo: "notifyconnectioninfo",
|
|
90
|
+
/** `notifyconnectioninforequest`: The server asks this client to report its own connection statistics with setconnectioninfo. */
|
|
91
|
+
ConnectionInfoRequest: "notifyconnectioninforequest",
|
|
92
|
+
/** `notifyfileinfo`: Reply to ftgetfileinfo: one row per file, with its size and modification time. */
|
|
93
|
+
FileInfo: "notifyfileinfo",
|
|
94
|
+
/** `notifyfilelist`: Reply to ftgetfilelist: one row per file or directory in a channel's file repository. */
|
|
95
|
+
FileList: "notifyfilelist",
|
|
96
|
+
/** `notifyfilelistfinished`: The server has sent every notifyfilelist row for a channel path. */
|
|
97
|
+
FileListFinished: "notifyfilelistfinished",
|
|
98
|
+
/** `notifyfiletransferlist`: Reply to ftlist: one row per running file transfer. */
|
|
99
|
+
FileTransferList: "notifyfiletransferlist",
|
|
100
|
+
/** `notifymessage`: Reply to messageget: an offline message with its subject and body. */
|
|
101
|
+
Message: "notifymessage",
|
|
102
|
+
/** `notifymessagelist`: Reply to messagelist: one row per offline message in this client's inbox. */
|
|
103
|
+
MessageList: "notifymessagelist",
|
|
104
|
+
/** `notifypermfind`: Reply to permfind: one row per place a permission is assigned. */
|
|
105
|
+
PermFind: "notifypermfind",
|
|
106
|
+
/** `notifypermissionlist`: Reply to permissionlist: one row per permission the server knows, with its id, name and description. */
|
|
107
|
+
PermissionList: "notifypermissionlist",
|
|
108
|
+
/** `notifypermoverview`: Reply to permoverview: one row per permission assignment that applies to a client in a channel. */
|
|
109
|
+
PermOverview: "notifypermoverview",
|
|
110
|
+
/** `notifyplugincmd`: A plugin command another client sent with plugincmd, to this client's channel or to it directly. */
|
|
111
|
+
PluginCmd: "notifyplugincmd",
|
|
112
|
+
/** `notifyserverconnectioninfo`: Reply to serverrequestconnectioninfo: the virtual server's traffic and bandwidth statistics. */
|
|
113
|
+
ServerConnectionInfo: "notifyserverconnectioninfo",
|
|
114
|
+
/** `notifyserveredited`: The virtual server's settings were edited, with who edited them and the settings that changed. */
|
|
115
|
+
ServerEdited: "notifyserveredited",
|
|
116
|
+
/** `notifyservergroupclientadded`: A client was added to a server group, with who added it. */
|
|
117
|
+
ServerGroupClientAdded: "notifyservergroupclientadded",
|
|
118
|
+
/** `notifyservergroupclientdeleted`: A client was removed from a server group, with who removed it. */
|
|
119
|
+
ServerGroupClientDeleted: "notifyservergroupclientdeleted",
|
|
120
|
+
/** `notifyservergroupclientlist`: Reply to servergroupclientlist: one row per client in a server group. */
|
|
121
|
+
ServerGroupClientList: "notifyservergroupclientlist",
|
|
122
|
+
/** `notifyservergrouplist`: Reply to servergrouplist, and sent by the server on joining: one row per server group. */
|
|
123
|
+
ServerGroupList: "notifyservergrouplist",
|
|
124
|
+
/** `notifyservergrouppermlist`: Reply to servergrouppermlist: one row per permission set on a server group. */
|
|
125
|
+
ServerGroupPermList: "notifyservergrouppermlist",
|
|
126
|
+
/** `notifyservergroupsbyclientid`: Reply to servergroupsbyclientid: one row per server group a client belongs to. */
|
|
127
|
+
ServerGroupsByClientID: "notifyservergroupsbyclientid",
|
|
128
|
+
/** `notifyserverlog`: Reply to logview: a chunk of the server log with the position to read on from. */
|
|
129
|
+
ServerLog: "notifyserverlog",
|
|
130
|
+
/** `notifyservertemppasswordlist`: Reply to servertemppasswordlist: one row per active temporary server password. */
|
|
131
|
+
ServerTempPasswordList: "notifyservertemppasswordlist",
|
|
132
|
+
/** `notifyserverupdated`: The virtual server's statistics and settings, sent when they change or when this client asks for them. */
|
|
133
|
+
ServerUpdated: "notifyserverupdated",
|
|
134
|
+
/** `notifystartdownload`: Reply to ftinitdownload: the key, port and size to start a download on the file transfer port. */
|
|
135
|
+
StartDownload: "notifystartdownload",
|
|
136
|
+
/** `notifystartupload`: Reply to ftinitupload: the key, port and offset to start an upload on the file transfer port. */
|
|
137
|
+
StartUpload: "notifystartupload",
|
|
138
|
+
/** `notifystatusfiletransfer`: A file transfer ended or failed: it carries the status code and message for the transfer's client-side id. */
|
|
139
|
+
StatusFileTransfer: "notifystatusfiletransfer",
|
|
140
|
+
/** `notifytextmessage`: A text message arrived, to this client, its channel or the whole server, with who sent it. */
|
|
141
|
+
TextMessage: "notifytextmessage",
|
|
142
|
+
/** `notifytokenadd`: Reply to privilegekeyadd: the new privilege key. */
|
|
143
|
+
TokenAdd: "notifytokenadd",
|
|
144
|
+
/** `notifytokenlist`: Reply to privilegekeylist: one row per privilege key. */
|
|
145
|
+
TokenList: "notifytokenlist",
|
|
146
|
+
/** `notifytokenused`: A privilege key was used, with who used it and the groups it granted. */
|
|
147
|
+
TokenUsed: "notifytokenused",
|
|
148
|
+
};
|
|
149
|
+
/** The notification names; see {@link NotificationName}'s entries for what each carries. */
|
|
150
|
+
export const NotificationName =
|
|
151
|
+
/* @__PURE__ */ Object.freeze(notificationNameValues);
|
|
152
|
+
//# sourceMappingURL=notification-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-name.js","sourceRoot":"","sources":["../../src/core/notification-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,sBAAsB,GAAG;IAC7B,qFAAqF;IACrF,OAAO,EAAE,eAAe;IACxB,sGAAsG;IACtG,cAAc,EAAE,sBAAsB;IACtC,2HAA2H;IAC3H,qBAAqB,EAAE,6BAA6B;IACpD,iHAAiH;IACjH,cAAc,EAAE,sBAAsB;IACtC,0EAA0E;IAC1E,cAAc,EAAE,sBAAsB;IACtC,8HAA8H;IAC9H,yBAAyB,EAAE,iCAAiC;I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;IACzE,QAAQ,EAAE,gBAAgB;IAC1B,+EAA+E;IAC/E,SAAS,EAAE,iBAAiB;IAC5B,+FAA+F;IAC/F,SAAS,EAAE,iBAAiB;CACpB,CAAC;AAEX,4FAA4F;AAC5F,MAAM,CAAC,MAAM,gBAAgB;AAC3B,eAAe,CAAC,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The notifications a server pushes, read as the events every client
|
|
3
|
+
* delivers.
|
|
4
|
+
*
|
|
5
|
+
* The voice protocol and ServerQuery carry the same notifications — a move is
|
|
6
|
+
* `notifyclientmoved` on both — and only their framing differs, which each
|
|
7
|
+
* client's own reader takes care of. So the parsing lives here, and both
|
|
8
|
+
* clients call it rather than keeping a copy each.
|
|
9
|
+
*
|
|
10
|
+
* A result is one notification's worth: the event it makes, plus what only the
|
|
11
|
+
* client can decide, such as whether a client that left view was itself.
|
|
12
|
+
*/
|
|
13
|
+
import type { Command } from "./command/command.js";
|
|
14
|
+
import type { ClientEnterEvent, ClientLeaveEvent, ClientMovedEvent, PokeEvent, TextMessageEvent } from "./events.js";
|
|
15
|
+
/** What one notification amounts to. */
|
|
16
|
+
export type NotificationResult = {
|
|
17
|
+
kind: "clientEnter";
|
|
18
|
+
info: ClientEnterEvent;
|
|
19
|
+
} | {
|
|
20
|
+
kind: "clientLeave";
|
|
21
|
+
event: ClientLeaveEvent;
|
|
22
|
+
isSelf: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
kind: "clientMoved";
|
|
25
|
+
event: ClientMovedEvent;
|
|
26
|
+
} | {
|
|
27
|
+
kind: "textMessage";
|
|
28
|
+
message: TextMessageEvent;
|
|
29
|
+
} | {
|
|
30
|
+
kind: "poked";
|
|
31
|
+
event: PokeEvent;
|
|
32
|
+
} | {
|
|
33
|
+
kind: "unknown";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Read a notification. `cmd` is the parsed notification line, `selfCLID` this
|
|
37
|
+
* client's own id (0 when it is not known yet), and `clients` the clients the
|
|
38
|
+
* caller knows, which the enter and leave notifications keep current and the
|
|
39
|
+
* others read: a text message carries no groups, and a move of the client's
|
|
40
|
+
* own carries no invoker.
|
|
41
|
+
*/
|
|
42
|
+
export declare function handleNotification(cmd: Command, selfCLID: number, clients: Map<number, ClientEnterEvent>): NotificationResult;
|
|
43
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/core/notifications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,KAAK,EACV,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB,wCAAwC;AACxC,MAAM,MAAM,kBAAkB,GAC1B;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,gBAAgB,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,OAAO,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,gBAAgB,CAAA;CAAE,GAChD;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,GAClD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAExB;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,GACrC,kBAAkB,CAepB"}
|