@unyt/datex 0.0.1 → 0.0.2
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 +5 -1
- package/esm/_dnt.polyfills.d.ts +101 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +127 -0
- package/esm/_dnt.shims.d.ts +1 -1
- package/esm/_dnt.test_polyfills.d.ts.map +1 -0
- package/esm/deno.json +29 -5
- package/esm/deps/jsr.io/@std/assert/1.0.13/almost_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/array_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/fail.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/greater.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/greater_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/less.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/less_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/object_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/string_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/throws.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/unimplemented.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts +2 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts +69 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/crypto.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/build_message.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v1.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v3.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v4.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v5.d.ts.map +1 -0
- package/esm/rs-lib/datex-core/Cargo.toml +149 -14
- package/esm/src/datex-core/datex_core_js.d.ts +2 -0
- package/esm/src/datex-core/datex_core_js.d.ts.map +1 -0
- package/esm/src/datex-core/datex_core_js.internal.d.ts +469 -0
- package/esm/src/datex-core/datex_core_js.internal.d.ts.map +1 -0
- package/esm/src/datex-core/datex_core_js.internal.js +1661 -0
- package/esm/src/datex-core/datex_core_js.js +17 -0
- package/esm/src/datex-core/datex_core_js.wasm +0 -0
- package/esm/src/datex-core.d.ts +1 -1
- package/esm/src/datex-core.d.ts.map +1 -1
- package/esm/src/datex-core.js +2 -3
- package/esm/src/mod.d.ts +1 -0
- package/esm/src/mod.d.ts.map +1 -1
- package/esm/src/mod.js +2 -1
- package/esm/src/runtime/runtime.d.ts +11 -2
- package/esm/src/runtime/runtime.d.ts.map +1 -1
- package/esm/src/runtime/runtime.js +35 -25
- package/esm/test/compiler/execute.test.d.ts.map +1 -0
- package/esm/test/crypto.test.d.ts.map +1 -0
- package/esm/test/init.test.d.ts.map +1 -1
- package/esm/test/is-node.d.ts.map +1 -0
- package/esm/test/network/BaseInterface.test.d.ts.map +1 -0
- package/esm/test/network/ComHub.test.d.ts.map +1 -0
- package/esm/test/network/WebsocketClientInterface.test.d.ts.map +1 -0
- package/esm/test/network/WebsocketMockupServer.d.ts.map +1 -0
- package/esm/test/network/WebsocketServerInterface.test.d.ts.map +1 -0
- package/esm/test/utils.d.ts.map +1 -0
- package/package.json +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/almost_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/assert.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/fail.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/less.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/string_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/throws.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/unimplemented.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/unreachable.d.ts.map +0 -1
- package/esm/src/datex-core/datex_core_js.generated.d.ts +0 -78
- package/esm/src/datex-core/datex_core_js.generated.d.ts.map +0 -1
- package/esm/src/datex-core/datex_core_js.generated.js +0 -611
- package/esm/src/datex-core/datex_core_js_bg.wasm +0 -0
- package/esm/src/utils/js-runtime-compat/js-runtime-interface.d.ts +0 -7
- package/esm/src/utils/js-runtime-compat/js-runtime-interface.d.ts.map +0 -1
- package/esm/src/utils/js-runtime-compat/js-runtime-interface.js +0 -1
- package/esm/src/utils/js-runtime-compat/runtime.d.ts +0 -3
- package/esm/src/utils/js-runtime-compat/runtime.d.ts.map +0 -1
- package/esm/src/utils/js-runtime-compat/runtime.js +0 -34
- package/esm/src/utils/js-runtime-compat/runtimes/browser.d.ts +0 -7
- package/esm/src/utils/js-runtime-compat/runtimes/browser.d.ts.map +0 -1
- package/esm/src/utils/js-runtime-compat/runtimes/browser.js +0 -20
- package/esm/src/utils/js-runtime-compat/runtimes/deno.d.ts +0 -7
- package/esm/src/utils/js-runtime-compat/runtimes/deno.d.ts.map +0 -1
- package/esm/src/utils/js-runtime-compat/runtimes/deno.js +0 -17
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v5.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/uuid/1.0.9/v5.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAE5C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,QAAQ,CAC5B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,UAAU,GACf,OAAO,CAAC,MAAM,CAAC,CAcjB"}
|
|
@@ -1,34 +1,169 @@
|
|
|
1
|
+
cargo-features = ["profile-rustflags"]
|
|
2
|
+
|
|
1
3
|
[package]
|
|
2
4
|
name = "datex-core"
|
|
3
|
-
version = "0.0.
|
|
5
|
+
version = "0.0.4"
|
|
4
6
|
description = "The DATEX Core Rust implementation"
|
|
5
|
-
authors = [
|
|
6
|
-
|
|
7
|
+
authors = [
|
|
8
|
+
"Benedikt Strehle <benedikt@unyt.org>",
|
|
9
|
+
"Jonas Strehle <jonas@unyt.org>",
|
|
10
|
+
]
|
|
11
|
+
edition = "2024"
|
|
7
12
|
license-file = "LICENSE"
|
|
8
13
|
|
|
9
|
-
|
|
10
14
|
[lib]
|
|
11
15
|
crate-type = ["cdylib", "rlib"]
|
|
12
16
|
|
|
17
|
+
[[bench]]
|
|
18
|
+
name = "mod"
|
|
19
|
+
harness = false
|
|
20
|
+
|
|
13
21
|
[dependencies]
|
|
14
|
-
|
|
22
|
+
# core dependencies
|
|
15
23
|
byteorder = "1"
|
|
16
|
-
num_enum = "0.
|
|
24
|
+
num_enum = "0.7.4"
|
|
17
25
|
lazy_static = "1.4.0"
|
|
18
|
-
|
|
26
|
+
strum_macros = { version = "0.27.1" }
|
|
27
|
+
strum = { version = "0.27.1", features = ["derive"] }
|
|
19
28
|
mopa = "0.2.2"
|
|
20
29
|
num-bigint = "0.4"
|
|
21
30
|
num-integer = "0.1"
|
|
22
31
|
default-args = "1.0.0"
|
|
23
|
-
|
|
24
|
-
itertools = "0.10.5"
|
|
25
|
-
pest = "2.6"
|
|
26
|
-
pest_derive = "2.6"
|
|
32
|
+
itertools = "0.14.0"
|
|
27
33
|
pad = "0.1"
|
|
34
|
+
binrw = "0.15.0"
|
|
35
|
+
modular-bitfield = "0.12.0"
|
|
36
|
+
thiserror = "2.0.11"
|
|
37
|
+
url = "2.5.4"
|
|
38
|
+
num-traits = "0.2.19"
|
|
39
|
+
async-trait = "0.1.87"
|
|
40
|
+
hex = "0.4.3"
|
|
41
|
+
log = { version = "0.4", features = ["std", "serde"] }
|
|
42
|
+
cfg-if = "1.0.1"
|
|
43
|
+
bytes = { version = "1" }
|
|
44
|
+
futures-util = { version = "0.3" }
|
|
45
|
+
tokio = { version = "1.43.0", optional = true, features = [
|
|
46
|
+
"sync",
|
|
47
|
+
"macros",
|
|
48
|
+
"io-util",
|
|
49
|
+
"rt",
|
|
50
|
+
"time",
|
|
51
|
+
], default-features = false }
|
|
52
|
+
|
|
53
|
+
datex_macros = { path = "./macros" }
|
|
54
|
+
|
|
55
|
+
# optional dependencies
|
|
56
|
+
futures = { version = "0.3" }
|
|
57
|
+
nostd = { version = "0.1.4", optional = true }
|
|
58
|
+
rand = { version = "0.8.5", optional = true }
|
|
59
|
+
uuid = { version = "1.15.1", features = ["v4"], optional = true }
|
|
60
|
+
rsa = { version = "0.9.8", optional = true }
|
|
61
|
+
flexi_logger = { version = "0.31.2", optional = true }
|
|
62
|
+
console_log = { version = "1.0.0", optional = true }
|
|
63
|
+
matchbox_socket = { default-features = false, git = "https://github.com/unyt-org/matchbox", optional = true } #{ version = "0.11.0", optional = true }
|
|
64
|
+
esp-idf-svc = { version = "0.51.0", optional = true }
|
|
65
|
+
futures-timer = { version = "3" }
|
|
66
|
+
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
67
|
+
serde = "1.0.219"
|
|
68
|
+
serde_with = "3.12.0"
|
|
69
|
+
ntest_timeout = "0.9.3"
|
|
70
|
+
ringmap = "0.1.3"
|
|
71
|
+
webrtc = { version = "0.13.0", optional = true }
|
|
72
|
+
syntect = { version = "5.2.0", default-features = false, features = [
|
|
73
|
+
"default-fancy",
|
|
74
|
+
] }
|
|
75
|
+
indexmap = "2.9.0"
|
|
76
|
+
ordered-float = "5.0.0"
|
|
77
|
+
bigdecimal = "0.4.8"
|
|
78
|
+
bigint = "4.4.3"
|
|
79
|
+
serde_json = "1.0.140"
|
|
80
|
+
num = "0.4.3"
|
|
81
|
+
chumsky = { version = "0.10.1", features = ["std"], default-features = false }
|
|
82
|
+
ariadne = "0.5.1"
|
|
83
|
+
logos = "0.15.0"
|
|
84
|
+
|
|
28
85
|
|
|
29
86
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
30
|
-
|
|
87
|
+
axum = { version = "0.8.4", optional = true }
|
|
88
|
+
tokio-stream = { version = "0.1.17", optional = true, features = ["sync"] }
|
|
89
|
+
hyper = { version = "1", optional = true }
|
|
90
|
+
futures-timer = { version = "3", features = ["wasm-bindgen"] }
|
|
91
|
+
serialport = { version = "4.7.1", optional = true }
|
|
92
|
+
tokio-tungstenite = { version = "0.21.0", optional = true }
|
|
93
|
+
tungstenite = { version = "0.21.0", optional = true }
|
|
94
|
+
|
|
95
|
+
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
96
|
+
wasm-bindgen-futures = { optional = true, version = "0.4.29" }
|
|
97
|
+
gloo-timers = { version = "0.3.0", features = ["futures"] }
|
|
31
98
|
|
|
32
99
|
[profile.release]
|
|
33
|
-
|
|
34
|
-
|
|
100
|
+
opt-level = "z"
|
|
101
|
+
strip = true
|
|
102
|
+
lto = true
|
|
103
|
+
codegen-units = 1
|
|
104
|
+
panic = "abort"
|
|
105
|
+
|
|
106
|
+
# Development dependencies
|
|
107
|
+
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
108
|
+
matchbox_signaling = { version = "0.12.0" }
|
|
109
|
+
tokio = { version = "1.43.0", features = [
|
|
110
|
+
"sync",
|
|
111
|
+
"macros",
|
|
112
|
+
"io-util",
|
|
113
|
+
"rt",
|
|
114
|
+
"time",
|
|
115
|
+
], default-features = false }
|
|
116
|
+
|
|
117
|
+
# see https://docs.rs/rsa/latest/rsa/
|
|
118
|
+
[profile.dev.package.num-bigint-dig]
|
|
119
|
+
opt-level = 3
|
|
120
|
+
|
|
121
|
+
[dev-dependencies]
|
|
122
|
+
criterion = { version = "0.6.0", features = ["html_reports"] }
|
|
123
|
+
criterion-macro = "0.4.0"
|
|
124
|
+
json-syntax = "0.12.5"
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
[features]
|
|
128
|
+
default = [
|
|
129
|
+
"nostd",
|
|
130
|
+
"native_websocket",
|
|
131
|
+
"native_tcp",
|
|
132
|
+
"native_rand",
|
|
133
|
+
"native_uuid",
|
|
134
|
+
"native_crypto",
|
|
135
|
+
"native_time",
|
|
136
|
+
"native_http",
|
|
137
|
+
"native_serial",
|
|
138
|
+
"native_webrtc",
|
|
139
|
+
"wasm_webrtc",
|
|
140
|
+
"flexi_logger",
|
|
141
|
+
"tokio_runtime",
|
|
142
|
+
# "debug", # temporary to fix linting and allow tests to run
|
|
143
|
+
] # default to nostd
|
|
144
|
+
|
|
145
|
+
# com interfaces
|
|
146
|
+
native_http = ["axum", "hyper", "tokio-stream"]
|
|
147
|
+
native_websocket = ["tokio-tungstenite", "tungstenite"] # use native websocket
|
|
148
|
+
native_tcp = [] # use native tcp
|
|
149
|
+
native_time = [] # use native time
|
|
150
|
+
native_rand = ["rand"] # use native websocket
|
|
151
|
+
native_uuid = ["uuid"] # use native uuid
|
|
152
|
+
native_crypto = ["rsa"] # use native crypto
|
|
153
|
+
native_serial = ["serialport"] # use native serial
|
|
154
|
+
native_webrtc = ["webrtc"] # use webrtc
|
|
155
|
+
|
|
156
|
+
wasm_webrtc = ["matchbox_socket"] # use webrtc
|
|
157
|
+
|
|
158
|
+
# logger
|
|
159
|
+
wasm_logger = ["console_log", "console_error_panic_hook"]
|
|
160
|
+
esp_logger = ["esp-idf-svc"]
|
|
161
|
+
env_logger = []
|
|
162
|
+
|
|
163
|
+
# runtime
|
|
164
|
+
tokio_runtime = ["dep:tokio"]
|
|
165
|
+
wasm_runtime = ["dep:wasm-bindgen-futures"]
|
|
166
|
+
|
|
167
|
+
# utils
|
|
168
|
+
std = [] # use std
|
|
169
|
+
debug = []
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datex_core_js.d.ts","sourceRoot":"","sources":["../../../src/src/datex-core/datex_core_js.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
export function __wbg_set_wasm(val: any): void;
|
|
2
|
+
/**
|
|
3
|
+
* @param {string} endpoint
|
|
4
|
+
* @param {any} debug_flags
|
|
5
|
+
* @returns {JSRuntime}
|
|
6
|
+
*/
|
|
7
|
+
export function init_runtime(endpoint: string, debug_flags: any): JSRuntime;
|
|
8
|
+
/**
|
|
9
|
+
* @param {string} datex_script
|
|
10
|
+
*/
|
|
11
|
+
export function compile(datex_script: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Executes a Datex script and returns the result as a string.
|
|
14
|
+
* @param {string} datex_script
|
|
15
|
+
* @param {boolean} formatted
|
|
16
|
+
* @returns {string}
|
|
17
|
+
*/
|
|
18
|
+
export function execute(datex_script: string, formatted: boolean): string;
|
|
19
|
+
/**
|
|
20
|
+
* Executes a Datex script and returns true when execution was successful.
|
|
21
|
+
* Does not return the result of the script, but only indicates success or failure.
|
|
22
|
+
* @param {string} datex_script
|
|
23
|
+
* @returns {boolean}
|
|
24
|
+
*/
|
|
25
|
+
export function execute_internal(datex_script: string): boolean;
|
|
26
|
+
export function __wbg_addIceCandidate_345f614980db6707(arg0: any, arg1: any): any;
|
|
27
|
+
export function __wbg_buffer_609cc3eee51ed158(arg0: any): any;
|
|
28
|
+
export function __wbg_call_672a4d21634d4a24(...args: any[]): any;
|
|
29
|
+
export function __wbg_call_7cccdd69e0791ae2(...args: any[]): any;
|
|
30
|
+
export function __wbg_call_833bed5770ea2041(...args: any[]): any;
|
|
31
|
+
export function __wbg_candidate_16483e17c3c24717(arg0: any): any;
|
|
32
|
+
export function __wbg_candidate_62789ee3462cce06(arg0: any, arg1: any): void;
|
|
33
|
+
export function __wbg_channel_41464286836ce76f(arg0: any): any;
|
|
34
|
+
export function __wbg_clearTimeout_5a54f8841c30079a(arg0: any): void;
|
|
35
|
+
export function __wbg_close_1e543b19181c86f9(arg0: any): any;
|
|
36
|
+
export function __wbg_close_2893b7d056a0627d(...args: any[]): any;
|
|
37
|
+
export function __wbg_close_314acc3eb034fb66(arg0: any): void;
|
|
38
|
+
export function __wbg_createAnswer_ca95cac474498416(arg0: any): any;
|
|
39
|
+
export function __wbg_createDataChannel_8cc608b38b33eba9(arg0: any, arg1: any, arg2: any): any;
|
|
40
|
+
export function __wbg_createOffer_088a2617590d462a(arg0: any): any;
|
|
41
|
+
export function __wbg_crypto_12576cd66246998b(...args: any[]): any;
|
|
42
|
+
export function __wbg_data_432d9c3df2630942(arg0: any): any;
|
|
43
|
+
export function __wbg_debug_3cb59063b29f58c1(arg0: any): void;
|
|
44
|
+
export function __wbg_decrypt_f913c8ffec178afe(...args: any[]): any;
|
|
45
|
+
export function __wbg_deleteProperty_96363d4a1d977c97(...args: any[]): any;
|
|
46
|
+
export function __wbg_encrypt_4d890132dfd8a0a7(...args: any[]): any;
|
|
47
|
+
export function __wbg_entries_3265d4158b33e5dc(arg0: any): [string, any][];
|
|
48
|
+
export function __wbg_error_524f506f44df1645(arg0: any): void;
|
|
49
|
+
export function __wbg_error_7534b8e9a36f1ab4(arg0: any, arg1: any): void;
|
|
50
|
+
export function __wbg_exportKey_d8fbe6e8de2fbb6a(...args: any[]): any;
|
|
51
|
+
export function __wbg_generateKey_24819cf5d2ade0ec(...args: any[]): any;
|
|
52
|
+
export function __wbg_getRandomValues_5754b82ca6952f9b(...args: any[]): any;
|
|
53
|
+
export function __wbg_getReader_be0d36e5873a525b(arg0: any): any;
|
|
54
|
+
export function __wbg_getWriter_6ce182d0adc3f96b(...args: any[]): any;
|
|
55
|
+
export function __wbg_get_67b2ba62fc30de12(...args: any[]): any;
|
|
56
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0: any, arg1: any): any;
|
|
57
|
+
export function __wbg_getprivatekey_c03ce2e8935f16db(arg0: any): any;
|
|
58
|
+
export function __wbg_getpublickey_66fc5575903e8954(arg0: any): any;
|
|
59
|
+
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0: any, arg1: any): any;
|
|
60
|
+
export function __wbg_iceConnectionState_94e113a7ca5a4e10(arg0: any): number;
|
|
61
|
+
export function __wbg_importKey_5fb87ea4f3fa3b17(...args: any[]): any;
|
|
62
|
+
export function __wbg_info_3daf2e093e091b66(arg0: any): void;
|
|
63
|
+
export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0: any): boolean;
|
|
64
|
+
export function __wbg_instanceof_CryptoKey_63353526509ba4a2(arg0: any): boolean;
|
|
65
|
+
export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0: any): boolean;
|
|
66
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_056dcea99b3557aa(arg0: any): boolean;
|
|
67
|
+
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0: any): boolean;
|
|
68
|
+
export function __wbg_instanceof_Window_def73ea0955fc569(arg0: any): boolean;
|
|
69
|
+
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0: any): boolean;
|
|
70
|
+
export function __wbg_label_674e88e28b0f69db(arg0: any, arg1: any): void;
|
|
71
|
+
export function __wbg_length_a446193dc22c12f8(arg0: any): any;
|
|
72
|
+
export function __wbg_length_e2d2a49132c1b256(arg0: any): any;
|
|
73
|
+
export function __wbg_log_c222819a41e063d3(arg0: any): void;
|
|
74
|
+
export function __wbg_message_d1685a448ba00178(arg0: any, arg1: any): void;
|
|
75
|
+
export function __wbg_navigator_1577371c070c8947(arg0: any): any;
|
|
76
|
+
export function __wbg_new_23a2665fac83c611(arg0: any, arg1: any): Promise<any>;
|
|
77
|
+
export function __wbg_new_405e22f390576ce2(): Object;
|
|
78
|
+
export function __wbg_new_78feb108b6472713(): any[];
|
|
79
|
+
export function __wbg_new_8a6f238a6ece86ea(): Error;
|
|
80
|
+
export function __wbg_new_92c54fc74574ef55(...args: any[]): any;
|
|
81
|
+
export function __wbg_new_a12002a7f91c75be(arg0: any): Uint8Array;
|
|
82
|
+
export function __wbg_new_c68d7209be747379(arg0: any, arg1: any): Error;
|
|
83
|
+
export function __wbg_newnoargs_105ed471475aaf50(arg0: any, arg1: any): Function;
|
|
84
|
+
export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0: any, arg1: any, arg2: any): Uint8Array;
|
|
85
|
+
export function __wbg_newwithconfiguration_d716d1bf0ec3af80(...args: any[]): any;
|
|
86
|
+
export function __wbg_newwithlength_a381634e90c276d4(arg0: any): Uint8Array;
|
|
87
|
+
export function __wbg_now_807e54c39636c349(): number;
|
|
88
|
+
export function __wbg_open_cdb62e879602b6c4(arg0: any, arg1: any): any;
|
|
89
|
+
export function __wbg_push_737cfc8c1432c2c6(arg0: any, arg1: any): any;
|
|
90
|
+
export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0: any): void;
|
|
91
|
+
export function __wbg_queueMicrotask_d3219def82552485(arg0: any): any;
|
|
92
|
+
export function __wbg_randomUUID_3e5d526036ca18d4(arg0: any, arg1: any): void;
|
|
93
|
+
export function __wbg_read_a2434af1186cb56c(arg0: any): any;
|
|
94
|
+
export function __wbg_readable_dbb91ee91d979f24(arg0: any): any;
|
|
95
|
+
export function __wbg_releaseLock_091899af97991d2e(arg0: any): void;
|
|
96
|
+
export function __wbg_requestPort_1f87c6573d65b9ff(arg0: any): any;
|
|
97
|
+
export function __wbg_resolve_4851785c9c5f573d(arg0: any): Promise<any>;
|
|
98
|
+
export function __wbg_sdpMLineIndex_0ace0d44bfe31600(arg0: any): any;
|
|
99
|
+
export function __wbg_sdpMid_b49f63c44ec872ab(arg0: any, arg1: any): void;
|
|
100
|
+
export function __wbg_send_48418c7374637896(...args: any[]): any;
|
|
101
|
+
export function __wbg_send_fc0c204e8a1757f4(...args: any[]): any;
|
|
102
|
+
export function __wbg_serial_a5487140b2fdb38f(arg0: any): any;
|
|
103
|
+
export function __wbg_setLocalDescription_3b7809adf05c8170(arg0: any, arg1: any): any;
|
|
104
|
+
export function __wbg_setRemoteDescription_2bd5c020ee5cf31f(arg0: any, arg1: any): any;
|
|
105
|
+
export function __wbg_setTimeout_db2dbaeefb6f39c7(...args: any[]): any;
|
|
106
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0: any, arg1: any, arg2: any): void;
|
|
107
|
+
export function __wbg_set_65595bdd868b3009(arg0: any, arg1: any, arg2: any): void;
|
|
108
|
+
export function __wbg_set_bb8cecf6a62b9f46(...args: any[]): any;
|
|
109
|
+
export function __wbg_setbaudrate_fe58f64af51588e8(arg0: any, arg1: any): void;
|
|
110
|
+
export function __wbg_setbinaryType_92fa1ffd873b327c(arg0: any, arg1: any): void;
|
|
111
|
+
export function __wbg_setcandidate_3b55a6f9dbba82b9(arg0: any, arg1: any, arg2: any): void;
|
|
112
|
+
export function __wbg_setcredential_c5b2b4eea93a2a96(arg0: any, arg1: any, arg2: any): void;
|
|
113
|
+
export function __wbg_seticeservers_c55a30bcf9201706(arg0: any, arg1: any): void;
|
|
114
|
+
export function __wbg_setonclose_14fc475a49d488fc(arg0: any, arg1: any): void;
|
|
115
|
+
export function __wbg_setondatachannel_7d81fb6dd97cd4bb(arg0: any, arg1: any): void;
|
|
116
|
+
export function __wbg_setonerror_8639efe354b947cd(arg0: any, arg1: any): void;
|
|
117
|
+
export function __wbg_setonicecandidate_4482190aeed37791(arg0: any, arg1: any): void;
|
|
118
|
+
export function __wbg_setoniceconnectionstatechange_e75fd8c01b8843bf(arg0: any, arg1: any): void;
|
|
119
|
+
export function __wbg_setonmessage_6cfa79abe114a189(arg0: any, arg1: any): void;
|
|
120
|
+
export function __wbg_setonmessage_6eccab530a8fb4c7(arg0: any, arg1: any): void;
|
|
121
|
+
export function __wbg_setonopen_2da654e1f39745d5(arg0: any, arg1: any): void;
|
|
122
|
+
export function __wbg_setonopen_64765262b192af8a(arg0: any, arg1: any): void;
|
|
123
|
+
export function __wbg_setsdp_ac3f34abbbed4f34(arg0: any, arg1: any, arg2: any): void;
|
|
124
|
+
export function __wbg_setsdpmid_e363183e33121d52(arg0: any, arg1: any, arg2: any): void;
|
|
125
|
+
export function __wbg_setsdpmlineindex_473e1e69f4dcd106(arg0: any, arg1: any): void;
|
|
126
|
+
export function __wbg_settype_0c7017dfd63b2ace(arg0: any, arg1: any): void;
|
|
127
|
+
export function __wbg_seturls_fd5057234d71ec33(arg0: any, arg1: any): void;
|
|
128
|
+
export function __wbg_setusername_0520e8aa31931b9a(arg0: any, arg1: any, arg2: any): void;
|
|
129
|
+
export function __wbg_sign_163254c0ca9f0994(...args: any[]): any;
|
|
130
|
+
export function __wbg_signalingState_9f13eafe0a5e0bfd(arg0: any): number;
|
|
131
|
+
export function __wbg_stack_0ed75d68575b0f3c(arg0: any, arg1: any): void;
|
|
132
|
+
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07(): any;
|
|
133
|
+
export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0(): any;
|
|
134
|
+
export function __wbg_static_accessor_SELF_37c5d418e4bf5819(): any;
|
|
135
|
+
export function __wbg_static_accessor_WINDOW_5de37043a91a9c40(): any;
|
|
136
|
+
export function __wbg_subtle_d0614193a0b7a626(arg0: any): any;
|
|
137
|
+
export function __wbg_then_44b73946d2fb3e7d(arg0: any, arg1: any): any;
|
|
138
|
+
export function __wbg_then_48b406749878a531(arg0: any, arg1: any, arg2: any): any;
|
|
139
|
+
export function __wbg_verify_51e2b45815701128(...args: any[]): any;
|
|
140
|
+
export function __wbg_warn_4ca3906c248c47c4(arg0: any): void;
|
|
141
|
+
export function __wbg_writable_169515f8aae06da5(arg0: any): any;
|
|
142
|
+
export function __wbg_write_311434e30ee214e5(arg0: any, arg1: any): any;
|
|
143
|
+
export function __wbindgen_as_number(arg0: any): number;
|
|
144
|
+
export function __wbindgen_bigint_from_u64(arg0: any): bigint;
|
|
145
|
+
export function __wbindgen_bigint_get_as_i64(arg0: any, arg1: any): void;
|
|
146
|
+
export function __wbindgen_boolean_get(arg0: any): 1 | 0 | 2;
|
|
147
|
+
export function __wbindgen_cb_drop(arg0: any): boolean;
|
|
148
|
+
export function __wbindgen_closure_wrapper3082(arg0: any, arg1: any, arg2: any): {
|
|
149
|
+
(...args: any[]): any;
|
|
150
|
+
original: {
|
|
151
|
+
a: any;
|
|
152
|
+
b: any;
|
|
153
|
+
cnt: number;
|
|
154
|
+
dtor: any;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
export function __wbindgen_closure_wrapper3321(arg0: any, arg1: any, arg2: any): {
|
|
158
|
+
(...args: any[]): any;
|
|
159
|
+
original: {
|
|
160
|
+
a: any;
|
|
161
|
+
b: any;
|
|
162
|
+
cnt: number;
|
|
163
|
+
dtor: any;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
export function __wbindgen_closure_wrapper3326(arg0: any, arg1: any, arg2: any): {
|
|
167
|
+
(...args: any[]): any;
|
|
168
|
+
original: {
|
|
169
|
+
a: any;
|
|
170
|
+
b: any;
|
|
171
|
+
cnt: number;
|
|
172
|
+
dtor: any;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
export function __wbindgen_closure_wrapper3826(arg0: any, arg1: any, arg2: any): {
|
|
176
|
+
(...args: any[]): any;
|
|
177
|
+
original: {
|
|
178
|
+
a: any;
|
|
179
|
+
b: any;
|
|
180
|
+
cnt: number;
|
|
181
|
+
dtor: any;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
export function __wbindgen_closure_wrapper887(arg0: any, arg1: any, arg2: any): {
|
|
185
|
+
(...args: any[]): any;
|
|
186
|
+
original: {
|
|
187
|
+
a: any;
|
|
188
|
+
b: any;
|
|
189
|
+
cnt: number;
|
|
190
|
+
dtor: any;
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
export function __wbindgen_closure_wrapper888(arg0: any, arg1: any, arg2: any): {
|
|
194
|
+
(...args: any[]): any;
|
|
195
|
+
original: {
|
|
196
|
+
a: any;
|
|
197
|
+
b: any;
|
|
198
|
+
cnt: number;
|
|
199
|
+
dtor: any;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
export function __wbindgen_debug_string(arg0: any, arg1: any): void;
|
|
203
|
+
export function __wbindgen_error_new(arg0: any, arg1: any): Error;
|
|
204
|
+
export function __wbindgen_in(arg0: any, arg1: any): boolean;
|
|
205
|
+
export function __wbindgen_init_externref_table(): void;
|
|
206
|
+
export function __wbindgen_is_bigint(arg0: any): arg0 is bigint;
|
|
207
|
+
export function __wbindgen_is_function(arg0: any): boolean;
|
|
208
|
+
export function __wbindgen_is_object(arg0: any): boolean;
|
|
209
|
+
export function __wbindgen_is_string(arg0: any): arg0 is string;
|
|
210
|
+
export function __wbindgen_is_undefined(arg0: any): boolean;
|
|
211
|
+
export function __wbindgen_jsval_eq(arg0: any, arg1: any): boolean;
|
|
212
|
+
export function __wbindgen_jsval_loose_eq(arg0: any, arg1: any): boolean;
|
|
213
|
+
export function __wbindgen_memory(): any;
|
|
214
|
+
export function __wbindgen_number_get(arg0: any, arg1: any): void;
|
|
215
|
+
export function __wbindgen_number_new(arg0: any): any;
|
|
216
|
+
export function __wbindgen_string_get(arg0: any, arg1: any): void;
|
|
217
|
+
export function __wbindgen_string_new(arg0: any, arg1: any): any;
|
|
218
|
+
export function __wbindgen_throw(arg0: any, arg1: any): void;
|
|
219
|
+
export function __wbindgen_uint8_array_new(arg0: any, arg1: any): any;
|
|
220
|
+
export class BaseJSInterface {
|
|
221
|
+
/**
|
|
222
|
+
* @param {JSComHub} com_hub
|
|
223
|
+
* @param {InterfaceProperties | string} name_or_properties
|
|
224
|
+
*/
|
|
225
|
+
constructor(com_hub: JSComHub, name_or_properties: InterfaceProperties | string);
|
|
226
|
+
__destroy_into_raw(): number;
|
|
227
|
+
__wbg_ptr: number;
|
|
228
|
+
free(): void;
|
|
229
|
+
/**
|
|
230
|
+
* @returns {InterfaceProperties}
|
|
231
|
+
*/
|
|
232
|
+
get properties(): InterfaceProperties;
|
|
233
|
+
/**
|
|
234
|
+
* @returns {string}
|
|
235
|
+
*/
|
|
236
|
+
get uuid(): string;
|
|
237
|
+
/**
|
|
238
|
+
* @param {string} socket_uuid
|
|
239
|
+
* @param {Uint8Array} data
|
|
240
|
+
* @returns {Promise<boolean>}
|
|
241
|
+
*/
|
|
242
|
+
test_send_block(socket_uuid: string, data: Uint8Array): Promise<boolean>;
|
|
243
|
+
/**
|
|
244
|
+
* @param {Function} func
|
|
245
|
+
*/
|
|
246
|
+
on_send(func: Function): void;
|
|
247
|
+
/**
|
|
248
|
+
* @param {string} direction
|
|
249
|
+
* @returns {string}
|
|
250
|
+
*/
|
|
251
|
+
register_socket(direction: string): string;
|
|
252
|
+
/**
|
|
253
|
+
* @param {string} socket_uuid
|
|
254
|
+
*/
|
|
255
|
+
destroy_socket(socket_uuid: string): void;
|
|
256
|
+
/**
|
|
257
|
+
* @param {string} socket_uuid
|
|
258
|
+
* @param {Uint8Array} data
|
|
259
|
+
* @returns {Promise<void>}
|
|
260
|
+
*/
|
|
261
|
+
receive(socket_uuid: string, data: Uint8Array): Promise<void>;
|
|
262
|
+
}
|
|
263
|
+
export class JSComHub {
|
|
264
|
+
static __wrap(ptr: any): any;
|
|
265
|
+
__destroy_into_raw(): number | undefined;
|
|
266
|
+
__wbg_ptr: number | undefined;
|
|
267
|
+
free(): void;
|
|
268
|
+
/**
|
|
269
|
+
* @param {string} interface_uuid
|
|
270
|
+
* @returns {Promise<any>}
|
|
271
|
+
*/
|
|
272
|
+
close_interface(interface_uuid: string): Promise<any>;
|
|
273
|
+
start_update_loop(): void;
|
|
274
|
+
/**
|
|
275
|
+
* @returns {Promise<void>}
|
|
276
|
+
*/
|
|
277
|
+
stop_update_loop(): Promise<void>;
|
|
278
|
+
/**
|
|
279
|
+
* @returns {Promise<void>}
|
|
280
|
+
*/
|
|
281
|
+
update(): Promise<void>;
|
|
282
|
+
/**
|
|
283
|
+
* @returns {WebSocketServerRegistry}
|
|
284
|
+
*/
|
|
285
|
+
get websocket_server(): WebSocketServerRegistry;
|
|
286
|
+
/**
|
|
287
|
+
* @returns {WebSocketClientRegistry}
|
|
288
|
+
*/
|
|
289
|
+
get websocket_client(): WebSocketClientRegistry;
|
|
290
|
+
/**
|
|
291
|
+
* @returns {SerialRegistry}
|
|
292
|
+
*/
|
|
293
|
+
get serial(): SerialRegistry;
|
|
294
|
+
/**
|
|
295
|
+
* @returns {WebRTCRegistry}
|
|
296
|
+
*/
|
|
297
|
+
get webrtc(): WebRTCRegistry;
|
|
298
|
+
/**
|
|
299
|
+
* Send a block to the given interface and socket
|
|
300
|
+
* This does not involve the routing on the ComHub level.
|
|
301
|
+
* The socket UUID is used to identify the socket to send the block over
|
|
302
|
+
* The interface UUID is used to identify the interface to send the block over
|
|
303
|
+
* @param {Uint8Array} block
|
|
304
|
+
* @param {string} interface_uuid
|
|
305
|
+
* @param {string} socket_uuid
|
|
306
|
+
* @returns {Promise<boolean>}
|
|
307
|
+
*/
|
|
308
|
+
send_block(block: Uint8Array, interface_uuid: string, socket_uuid: string): Promise<boolean>;
|
|
309
|
+
/**
|
|
310
|
+
* @returns {Uint8Array[]}
|
|
311
|
+
*/
|
|
312
|
+
_drain_incoming_blocks(): Uint8Array[];
|
|
313
|
+
}
|
|
314
|
+
export class JSMemory {
|
|
315
|
+
static __wrap(ptr: any): any;
|
|
316
|
+
__destroy_into_raw(): number | undefined;
|
|
317
|
+
__wbg_ptr: number | undefined;
|
|
318
|
+
free(): void;
|
|
319
|
+
/**
|
|
320
|
+
* @param {Uint8Array} address
|
|
321
|
+
* @returns {JSPointer | undefined}
|
|
322
|
+
*/
|
|
323
|
+
get_pointer_by_id(address: Uint8Array): JSPointer | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* @returns {Uint8Array[]}
|
|
326
|
+
*/
|
|
327
|
+
get_pointer_ids(): Uint8Array[];
|
|
328
|
+
}
|
|
329
|
+
export class JSPointer {
|
|
330
|
+
static __wrap(ptr: any): any;
|
|
331
|
+
__destroy_into_raw(): number | undefined;
|
|
332
|
+
__wbg_ptr: number | undefined;
|
|
333
|
+
free(): void;
|
|
334
|
+
}
|
|
335
|
+
export class JSRuntime {
|
|
336
|
+
static __wrap(ptr: any): any;
|
|
337
|
+
__destroy_into_raw(): number | undefined;
|
|
338
|
+
__wbg_ptr: number | undefined;
|
|
339
|
+
free(): void;
|
|
340
|
+
/**
|
|
341
|
+
* @returns {Promise<Promise<any>>}
|
|
342
|
+
*/
|
|
343
|
+
crypto_test_tmp(): Promise<Promise<any>>;
|
|
344
|
+
/**
|
|
345
|
+
* @returns {string}
|
|
346
|
+
*/
|
|
347
|
+
get version(): string;
|
|
348
|
+
/**
|
|
349
|
+
* @returns {JSMemory}
|
|
350
|
+
*/
|
|
351
|
+
get memory(): JSMemory;
|
|
352
|
+
/**
|
|
353
|
+
* @returns {string}
|
|
354
|
+
*/
|
|
355
|
+
get endpoint(): string;
|
|
356
|
+
/**
|
|
357
|
+
* @returns {JSComHub}
|
|
358
|
+
*/
|
|
359
|
+
get com_hub(): JSComHub;
|
|
360
|
+
/**
|
|
361
|
+
* @param {Uint8Array | null | undefined} body
|
|
362
|
+
* @param {string[]} receivers
|
|
363
|
+
* @returns {Uint8Array}
|
|
364
|
+
*/
|
|
365
|
+
_create_block(body: Uint8Array | null | undefined, receivers: string[]): Uint8Array;
|
|
366
|
+
}
|
|
367
|
+
export class SerialRegistry {
|
|
368
|
+
static __wrap(ptr: any): any;
|
|
369
|
+
__destroy_into_raw(): number | undefined;
|
|
370
|
+
__wbg_ptr: number | undefined;
|
|
371
|
+
free(): void;
|
|
372
|
+
/**
|
|
373
|
+
* @param {string} interface_uuid
|
|
374
|
+
* @returns {Promise<any>}
|
|
375
|
+
*/
|
|
376
|
+
close(interface_uuid: string): Promise<any>;
|
|
377
|
+
/**
|
|
378
|
+
* @param {number} baud_rate
|
|
379
|
+
* @returns {Promise<string>}
|
|
380
|
+
*/
|
|
381
|
+
register(baud_rate: number): Promise<string>;
|
|
382
|
+
}
|
|
383
|
+
export class WebRTCRegistry {
|
|
384
|
+
static __wrap(ptr: any): any;
|
|
385
|
+
__destroy_into_raw(): number | undefined;
|
|
386
|
+
__wbg_ptr: number | undefined;
|
|
387
|
+
free(): void;
|
|
388
|
+
/**
|
|
389
|
+
* @param {string} interface_uuid
|
|
390
|
+
* @returns {Promise<any>}
|
|
391
|
+
*/
|
|
392
|
+
close(interface_uuid: string): Promise<any>;
|
|
393
|
+
/**
|
|
394
|
+
* @param {string} endpoint
|
|
395
|
+
* @returns {Promise<string>}
|
|
396
|
+
*/
|
|
397
|
+
register(endpoint: string): Promise<string>;
|
|
398
|
+
/**
|
|
399
|
+
* @param {string} interface_uuid
|
|
400
|
+
* @returns {Promise<Uint8Array>}
|
|
401
|
+
*/
|
|
402
|
+
create_offer(interface_uuid: string): Promise<Uint8Array>;
|
|
403
|
+
/**
|
|
404
|
+
* @param {string} interface_uuid
|
|
405
|
+
* @param {Uint8Array} offer
|
|
406
|
+
* @returns {Promise<Uint8Array>}
|
|
407
|
+
*/
|
|
408
|
+
create_answer(interface_uuid: string, offer: Uint8Array): Promise<Uint8Array>;
|
|
409
|
+
/**
|
|
410
|
+
* @param {string} interface_uuid
|
|
411
|
+
* @param {Uint8Array} answer
|
|
412
|
+
* @returns {Promise<void>}
|
|
413
|
+
*/
|
|
414
|
+
set_answer(interface_uuid: string, answer: Uint8Array): Promise<void>;
|
|
415
|
+
/**
|
|
416
|
+
* @param {string} interface_uuid
|
|
417
|
+
* @param {Function} on_ice_candidate
|
|
418
|
+
*/
|
|
419
|
+
set_on_ice_candidate(interface_uuid: string, on_ice_candidate: Function): void;
|
|
420
|
+
/**
|
|
421
|
+
* @param {string} interface_uuid
|
|
422
|
+
* @param {Uint8Array} candidate
|
|
423
|
+
* @returns {Promise<void>}
|
|
424
|
+
*/
|
|
425
|
+
add_ice_candidate(interface_uuid: string, candidate: Uint8Array): Promise<void>;
|
|
426
|
+
/**
|
|
427
|
+
* @param {string} interface_uuid
|
|
428
|
+
* @returns {Promise<void>}
|
|
429
|
+
*/
|
|
430
|
+
wait_for_connection(interface_uuid: string): Promise<void>;
|
|
431
|
+
}
|
|
432
|
+
export class WebSocketClientRegistry {
|
|
433
|
+
static __wrap(ptr: any): any;
|
|
434
|
+
__destroy_into_raw(): number | undefined;
|
|
435
|
+
__wbg_ptr: number | undefined;
|
|
436
|
+
free(): void;
|
|
437
|
+
/**
|
|
438
|
+
* @param {string} interface_uuid
|
|
439
|
+
* @returns {Promise<any>}
|
|
440
|
+
*/
|
|
441
|
+
close(interface_uuid: string): Promise<any>;
|
|
442
|
+
/**
|
|
443
|
+
* @param {string} address
|
|
444
|
+
* @returns {Promise<string>}
|
|
445
|
+
*/
|
|
446
|
+
register(address: string): Promise<string>;
|
|
447
|
+
}
|
|
448
|
+
export class WebSocketServerRegistry {
|
|
449
|
+
static __wrap(ptr: any): any;
|
|
450
|
+
__destroy_into_raw(): number | undefined;
|
|
451
|
+
__wbg_ptr: number | undefined;
|
|
452
|
+
free(): void;
|
|
453
|
+
/**
|
|
454
|
+
* @param {string} interface_uuid
|
|
455
|
+
* @returns {Promise<any>}
|
|
456
|
+
*/
|
|
457
|
+
close(interface_uuid: string): Promise<any>;
|
|
458
|
+
/**
|
|
459
|
+
* @returns {Promise<string>}
|
|
460
|
+
*/
|
|
461
|
+
register(): Promise<string>;
|
|
462
|
+
/**
|
|
463
|
+
* @param {string} interface_uuid
|
|
464
|
+
* @param {WebSocket} websocket
|
|
465
|
+
* @returns {any}
|
|
466
|
+
*/
|
|
467
|
+
add_socket(interface_uuid: string, websocket: WebSocket): any;
|
|
468
|
+
}
|
|
469
|
+
//# sourceMappingURL=datex_core_js.internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datex_core_js.internal.d.ts","sourceRoot":"","sources":["../../../src/src/datex-core/datex_core_js.internal.js"],"names":[],"mappings":"AAQA,+CAEC;AAkQD;;;;GAIG;AACH,uCAJW,MAAM,eACN,GAAG,GACD,SAAS,CAWrB;AAED;;GAEG;AACH,sCAFW,MAAM,QAUhB;AAED;;;;;GAKG;AACH,sCAJW,MAAM,aACN,OAAO,GACL,MAAM,CAmBlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,OAAO,CAWnB;AA03BD,kFAGC;AAED,8DAGC;AAED,iEAKC;AAED,iEAKC;AAED,iEAKC;AAED,iEAGC;AAED,6EAUC;AAED,+DAGC;AAED,qEAGC;AAED,6DAGC;AAED,kEAIC;AAED,8DAEC;AAED,oEAGC;AAED,+FAGC;AAED,mEAGC;AAED,mEAKC;AAED,4DAGC;AAED,8DAEC;AAED,oEASC;AAED,2EAKC;AAED,oEASC;AAED,2EAGC;AAED,8DAEC;AAED,yEAUC;AAED,sEAKC;AAED,wEAKC;AAED,4EAKC;AAED,iEAGC;AAED,sEAKC;AAED,gEAKC;AAED,sEAGC;AAED,qEAGC;AAED,oEAGC;AAED,gFAGC;AAED,6EAGC;AAED,sEAWC;AAED,6DAEC;AAED,kFASC;AAED,gFASC;AAED,6EASC;AAED,kGAWC;AAED,iFASC;AAED,6EASC;AAED,yEAGC;AAED,yEAUC;AAED,8DAGC;AAED,8DAGC;AAED,4DAEC;AAED,2EAUC;AAED,iEAGC;AAED,+EAiBC;AAED,qDAGC;AAED,oDAGC;AAED,oDAGC;AAED,gEAKC;AAED,kEAGC;AAED,wEAGC;AAED,iFAGC;AAED,+GAOC;AAED,iFAKC;AAED,4EAGC;AAED,qDAGC;AAED,uEAGC;AAED,uEAGC;AAED,uEAEC;AAED,sEAGC;AAED,8EAUC;AAED,4DAGC;AAED,gEAGC;AAED,oEAEC;AAED,mEAGC;AAED,wEAG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