@replit/protocol 0.2.70 → 0.2.72
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/gen.sh +19 -7
- package/iotester/index.d.ts +0 -1
- package/iotester/index.js +1 -1
- package/iotester/index.js.flow +56 -57
- package/main/index.d.ts +0 -1
- package/main/index.js +1 -1
- package/main/index.js.flow +1 -2
- package/package.json +3 -3
package/gen.sh
CHANGED
|
@@ -5,6 +5,9 @@ set -e
|
|
|
5
5
|
export PATH="${PATH}:./node_modules/.bin"
|
|
6
6
|
export TARGET="${TARGET:-./index}"
|
|
7
7
|
|
|
8
|
+
MODE=$1
|
|
9
|
+
shift 1
|
|
10
|
+
|
|
8
11
|
mkdir -p "$(dirname "${TARGET}")"
|
|
9
12
|
|
|
10
13
|
pbjs \
|
|
@@ -16,9 +19,11 @@ pbjs \
|
|
|
16
19
|
--root "${TARGET}" \
|
|
17
20
|
"$@"
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
if [ "$mode" = "fix" ]; then
|
|
23
|
+
# TODO: Remove this hack
|
|
24
|
+
sed -i.bak 's@return $root;@$root.api = $root.replit.goval.api; return $root;@' "${TARGET}.js"
|
|
25
|
+
rm -f "${TARGET}.js.bak"
|
|
26
|
+
fi
|
|
22
27
|
|
|
23
28
|
./jsdoc.js <"${TARGET}.js" >"${TARGET}.tmp.js"
|
|
24
29
|
|
|
@@ -26,8 +31,10 @@ mv "${TARGET}.tmp.js" "${TARGET}.js"
|
|
|
26
31
|
|
|
27
32
|
pbts -o "${TARGET}.d.ts" "${TARGET}.js"
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
if [ "$mode" = "fix" ]; then
|
|
35
|
+
# TODO: Remove this hack
|
|
36
|
+
echo 'import api = replit.goval.api; export { api };' >> "${TARGET}.d.ts"
|
|
37
|
+
fi
|
|
31
38
|
|
|
32
39
|
sed -i.bak 's/constructor(/private constructor(/' "${TARGET}.d.ts"
|
|
33
40
|
|
|
@@ -38,5 +45,10 @@ flowgen \
|
|
|
38
45
|
--add-flow-header \
|
|
39
46
|
--output-file "${TARGET}.js.flow" "${TARGET}.d.ts"
|
|
40
47
|
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
if [ "$mode" = "fix" ]; then
|
|
49
|
+
sed -i.bak 's/declare var replit: typeof npm\$namespace\$replit;/export var replit = npm$namespace$replit;/' "${TARGET}.js.flow"
|
|
50
|
+
rm -f "${TARGET}.js.flow.bak"
|
|
51
|
+
|
|
52
|
+
sed -i.bak 's/declare export { api };/export var api = npm$namespace$replit$goval$api;/' "${TARGET}.js.flow"
|
|
53
|
+
rm -f "${TARGET}.js.flow.bak"
|
|
54
|
+
fi
|
package/iotester/index.d.ts
CHANGED
package/iotester/index.js
CHANGED
package/iotester/index.js.flow
CHANGED
|
@@ -1500,7 +1500,7 @@ declare type api$IResponse = {|
|
|
|
1500
1500
|
/**
|
|
1501
1501
|
* Response status
|
|
1502
1502
|
*/
|
|
1503
|
-
status?: api$Status | null,
|
|
1503
|
+
status?: $Values<typeof api$Status> | null,
|
|
1504
1504
|
|};
|
|
1505
1505
|
|
|
1506
1506
|
/**
|
|
@@ -1531,7 +1531,7 @@ declare class api$Response {
|
|
|
1531
1531
|
/**
|
|
1532
1532
|
* Response status.
|
|
1533
1533
|
*/
|
|
1534
|
-
status?: api$Status | null;
|
|
1534
|
+
status?: $Values<typeof api$Status> | null;
|
|
1535
1535
|
|
|
1536
1536
|
/**
|
|
1537
1537
|
* Response body.
|
|
@@ -1641,12 +1641,12 @@ declare type api$ITestResult = {|
|
|
|
1641
1641
|
/**
|
|
1642
1642
|
* TestResult passed
|
|
1643
1643
|
*/
|
|
1644
|
-
passed?: api$TestResult
|
|
1644
|
+
passed?: api$TestResult$Passed | api$TestResult$IPassed | null,
|
|
1645
1645
|
|
|
1646
1646
|
/**
|
|
1647
1647
|
* TestResult failed
|
|
1648
1648
|
*/
|
|
1649
|
-
failed?: api$TestResult
|
|
1649
|
+
failed?: api$TestResult$Failed | api$TestResult$IFailed | null,
|
|
1650
1650
|
|
|
1651
1651
|
/**
|
|
1652
1652
|
* TestResult error
|
|
@@ -1672,12 +1672,12 @@ declare class api$TestResult {
|
|
|
1672
1672
|
/**
|
|
1673
1673
|
* TestResult passed.
|
|
1674
1674
|
*/
|
|
1675
|
-
passed?: api$TestResult
|
|
1675
|
+
passed?: api$TestResult$Passed | null;
|
|
1676
1676
|
|
|
1677
1677
|
/**
|
|
1678
1678
|
* TestResult failed.
|
|
1679
1679
|
*/
|
|
1680
|
-
failed?: api$TestResult
|
|
1680
|
+
failed?: api$TestResult$Failed | null;
|
|
1681
1681
|
|
|
1682
1682
|
/**
|
|
1683
1683
|
* TestResult error.
|
|
@@ -1797,14 +1797,14 @@ declare class api$TestResult$Passed {
|
|
|
1797
1797
|
* Constructs a new Passed.
|
|
1798
1798
|
* @param [properties] Properties to set
|
|
1799
1799
|
*/
|
|
1800
|
-
constructor(properties?: api$TestResult
|
|
1800
|
+
constructor(properties?: api$TestResult$IPassed): this;
|
|
1801
1801
|
|
|
1802
1802
|
/**
|
|
1803
1803
|
* Creates a new Passed instance using the specified properties.
|
|
1804
1804
|
* @param [properties] Properties to set
|
|
1805
1805
|
* @returns Passed instance
|
|
1806
1806
|
*/
|
|
1807
|
-
static create(properties?: api$TestResult
|
|
1807
|
+
static create(properties?: api$TestResult$IPassed): api$TestResult$Passed;
|
|
1808
1808
|
|
|
1809
1809
|
/**
|
|
1810
1810
|
* [object Object],[object Object],[object Object]
|
|
@@ -1813,7 +1813,7 @@ declare class api$TestResult$Passed {
|
|
|
1813
1813
|
* @returns Writer
|
|
1814
1814
|
*/
|
|
1815
1815
|
static encode(
|
|
1816
|
-
message: api$TestResult
|
|
1816
|
+
message: api$TestResult$Passed,
|
|
1817
1817
|
writer?: $protobuf.Writer
|
|
1818
1818
|
): $protobuf.Writer;
|
|
1819
1819
|
|
|
@@ -1824,7 +1824,7 @@ declare class api$TestResult$Passed {
|
|
|
1824
1824
|
* @returns Writer
|
|
1825
1825
|
*/
|
|
1826
1826
|
static encodeDelimited(
|
|
1827
|
-
message: api$TestResult
|
|
1827
|
+
message: api$TestResult$Passed,
|
|
1828
1828
|
writer?: $protobuf.Writer
|
|
1829
1829
|
): $protobuf.Writer;
|
|
1830
1830
|
|
|
@@ -1839,7 +1839,7 @@ declare class api$TestResult$Passed {
|
|
|
1839
1839
|
static decode(
|
|
1840
1840
|
reader: $protobuf.Reader | Uint8Array,
|
|
1841
1841
|
length?: number
|
|
1842
|
-
): api$TestResult
|
|
1842
|
+
): api$TestResult$Passed;
|
|
1843
1843
|
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Decodes a Passed message from the specified reader or buffer, length delimited.
|
|
@@ -1850,7 +1850,7 @@ declare class api$TestResult$Passed {
|
|
|
1850
1850
|
*/
|
|
1851
1851
|
static decodeDelimited(
|
|
1852
1852
|
reader: $protobuf.Reader | Uint8Array
|
|
1853
|
-
): api$TestResult
|
|
1853
|
+
): api$TestResult$Passed;
|
|
1854
1854
|
|
|
1855
1855
|
/**
|
|
1856
1856
|
* Verifies a Passed message.
|
|
@@ -1868,7 +1868,7 @@ declare class api$TestResult$Passed {
|
|
|
1868
1868
|
*/
|
|
1869
1869
|
static fromObject(object: {|
|
|
1870
1870
|
[k: string]: any,
|
|
1871
|
-
|}): api$TestResult
|
|
1871
|
+
|}): api$TestResult$Passed;
|
|
1872
1872
|
|
|
1873
1873
|
/**
|
|
1874
1874
|
* Creates a plain object from a Passed message. Also converts values to other types if specified.
|
|
@@ -1877,7 +1877,7 @@ declare class api$TestResult$Passed {
|
|
|
1877
1877
|
* @returns Plain object
|
|
1878
1878
|
*/
|
|
1879
1879
|
static toObject(
|
|
1880
|
-
message: api$TestResult
|
|
1880
|
+
message: api$TestResult$Passed,
|
|
1881
1881
|
options?: $protobuf.IConversionOptions
|
|
1882
1882
|
): {|
|
|
1883
1883
|
[k: string]: any,
|
|
@@ -1905,14 +1905,14 @@ declare class api$TestResult$Failed {
|
|
|
1905
1905
|
* Constructs a new Failed.
|
|
1906
1906
|
* @param [properties] Properties to set
|
|
1907
1907
|
*/
|
|
1908
|
-
constructor(properties?: api$TestResult
|
|
1908
|
+
constructor(properties?: api$TestResult$IFailed): this;
|
|
1909
1909
|
|
|
1910
1910
|
/**
|
|
1911
1911
|
* Creates a new Failed instance using the specified properties.
|
|
1912
1912
|
* @param [properties] Properties to set
|
|
1913
1913
|
* @returns Failed instance
|
|
1914
1914
|
*/
|
|
1915
|
-
static create(properties?: api$TestResult
|
|
1915
|
+
static create(properties?: api$TestResult$IFailed): api$TestResult$Failed;
|
|
1916
1916
|
|
|
1917
1917
|
/**
|
|
1918
1918
|
* [object Object],[object Object],[object Object]
|
|
@@ -1921,7 +1921,7 @@ declare class api$TestResult$Failed {
|
|
|
1921
1921
|
* @returns Writer
|
|
1922
1922
|
*/
|
|
1923
1923
|
static encode(
|
|
1924
|
-
message: api$TestResult
|
|
1924
|
+
message: api$TestResult$Failed,
|
|
1925
1925
|
writer?: $protobuf.Writer
|
|
1926
1926
|
): $protobuf.Writer;
|
|
1927
1927
|
|
|
@@ -1932,7 +1932,7 @@ declare class api$TestResult$Failed {
|
|
|
1932
1932
|
* @returns Writer
|
|
1933
1933
|
*/
|
|
1934
1934
|
static encodeDelimited(
|
|
1935
|
-
message: api$TestResult
|
|
1935
|
+
message: api$TestResult$Failed,
|
|
1936
1936
|
writer?: $protobuf.Writer
|
|
1937
1937
|
): $protobuf.Writer;
|
|
1938
1938
|
|
|
@@ -1947,7 +1947,7 @@ declare class api$TestResult$Failed {
|
|
|
1947
1947
|
static decode(
|
|
1948
1948
|
reader: $protobuf.Reader | Uint8Array,
|
|
1949
1949
|
length?: number
|
|
1950
|
-
): api$TestResult
|
|
1950
|
+
): api$TestResult$Failed;
|
|
1951
1951
|
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Decodes a Failed message from the specified reader or buffer, length delimited.
|
|
@@ -1958,7 +1958,7 @@ declare class api$TestResult$Failed {
|
|
|
1958
1958
|
*/
|
|
1959
1959
|
static decodeDelimited(
|
|
1960
1960
|
reader: $protobuf.Reader | Uint8Array
|
|
1961
|
-
): api$TestResult
|
|
1961
|
+
): api$TestResult$Failed;
|
|
1962
1962
|
|
|
1963
1963
|
/**
|
|
1964
1964
|
* Verifies a Failed message.
|
|
@@ -1976,7 +1976,7 @@ declare class api$TestResult$Failed {
|
|
|
1976
1976
|
*/
|
|
1977
1977
|
static fromObject(object: {|
|
|
1978
1978
|
[k: string]: any,
|
|
1979
|
-
|}): api$TestResult
|
|
1979
|
+
|}): api$TestResult$Failed;
|
|
1980
1980
|
|
|
1981
1981
|
/**
|
|
1982
1982
|
* Creates a plain object from a Failed message. Also converts values to other types if specified.
|
|
@@ -1985,7 +1985,7 @@ declare class api$TestResult$Failed {
|
|
|
1985
1985
|
* @returns Plain object
|
|
1986
1986
|
*/
|
|
1987
1987
|
static toObject(
|
|
1988
|
-
message: api$TestResult
|
|
1988
|
+
message: api$TestResult$Failed,
|
|
1989
1989
|
options?: $protobuf.IConversionOptions
|
|
1990
1990
|
): {|
|
|
1991
1991
|
[k: string]: any,
|
|
@@ -2012,19 +2012,19 @@ declare type api$IInstructionResult = {|
|
|
|
2012
2012
|
/**
|
|
2013
2013
|
* InstructionResult passed
|
|
2014
2014
|
*/
|
|
2015
|
-
passed?: api$InstructionResult
|
|
2015
|
+
passed?: api$InstructionResult$Passed | api$InstructionResult$IPassed | null,
|
|
2016
2016
|
|
|
2017
2017
|
/**
|
|
2018
2018
|
* InstructionResult failed
|
|
2019
2019
|
*/
|
|
2020
|
-
failed?: api$InstructionResult
|
|
2020
|
+
failed?: api$InstructionResult$Failed | api$InstructionResult$IFailed | null,
|
|
2021
2021
|
|
|
2022
2022
|
/**
|
|
2023
2023
|
* InstructionResult timeout
|
|
2024
2024
|
*/
|
|
2025
2025
|
timeout?:
|
|
2026
|
-
| api$InstructionResult
|
|
2027
|
-
| api$InstructionResult
|
|
2026
|
+
| api$InstructionResult$Timeout
|
|
2027
|
+
| api$InstructionResult$ITimeout
|
|
2028
2028
|
| null,
|
|
2029
2029
|
|
|
2030
2030
|
/**
|
|
@@ -2051,17 +2051,17 @@ declare class api$InstructionResult {
|
|
|
2051
2051
|
/**
|
|
2052
2052
|
* InstructionResult passed.
|
|
2053
2053
|
*/
|
|
2054
|
-
passed?: api$InstructionResult
|
|
2054
|
+
passed?: api$InstructionResult$Passed | null;
|
|
2055
2055
|
|
|
2056
2056
|
/**
|
|
2057
2057
|
* InstructionResult failed.
|
|
2058
2058
|
*/
|
|
2059
|
-
failed?: api$InstructionResult
|
|
2059
|
+
failed?: api$InstructionResult$Failed | null;
|
|
2060
2060
|
|
|
2061
2061
|
/**
|
|
2062
2062
|
* InstructionResult timeout.
|
|
2063
2063
|
*/
|
|
2064
|
-
timeout?: api$InstructionResult
|
|
2064
|
+
timeout?: api$InstructionResult$Timeout | null;
|
|
2065
2065
|
|
|
2066
2066
|
/**
|
|
2067
2067
|
* InstructionResult error.
|
|
@@ -2190,7 +2190,7 @@ declare class api$InstructionResult$Passed {
|
|
|
2190
2190
|
* Constructs a new Passed.
|
|
2191
2191
|
* @param [properties] Properties to set
|
|
2192
2192
|
*/
|
|
2193
|
-
constructor(properties?: api$InstructionResult
|
|
2193
|
+
constructor(properties?: api$InstructionResult$IPassed): this;
|
|
2194
2194
|
|
|
2195
2195
|
/**
|
|
2196
2196
|
* Passed output.
|
|
@@ -2203,8 +2203,8 @@ declare class api$InstructionResult$Passed {
|
|
|
2203
2203
|
* @returns Passed instance
|
|
2204
2204
|
*/
|
|
2205
2205
|
static create(
|
|
2206
|
-
properties?: api$InstructionResult
|
|
2207
|
-
): api$InstructionResult
|
|
2206
|
+
properties?: api$InstructionResult$IPassed
|
|
2207
|
+
): api$InstructionResult$Passed;
|
|
2208
2208
|
|
|
2209
2209
|
/**
|
|
2210
2210
|
* [object Object],[object Object],[object Object]
|
|
@@ -2213,7 +2213,7 @@ declare class api$InstructionResult$Passed {
|
|
|
2213
2213
|
* @returns Writer
|
|
2214
2214
|
*/
|
|
2215
2215
|
static encode(
|
|
2216
|
-
message: api$InstructionResult
|
|
2216
|
+
message: api$InstructionResult$Passed,
|
|
2217
2217
|
writer?: $protobuf.Writer
|
|
2218
2218
|
): $protobuf.Writer;
|
|
2219
2219
|
|
|
@@ -2224,7 +2224,7 @@ declare class api$InstructionResult$Passed {
|
|
|
2224
2224
|
* @returns Writer
|
|
2225
2225
|
*/
|
|
2226
2226
|
static encodeDelimited(
|
|
2227
|
-
message: api$InstructionResult
|
|
2227
|
+
message: api$InstructionResult$Passed,
|
|
2228
2228
|
writer?: $protobuf.Writer
|
|
2229
2229
|
): $protobuf.Writer;
|
|
2230
2230
|
|
|
@@ -2239,7 +2239,7 @@ declare class api$InstructionResult$Passed {
|
|
|
2239
2239
|
static decode(
|
|
2240
2240
|
reader: $protobuf.Reader | Uint8Array,
|
|
2241
2241
|
length?: number
|
|
2242
|
-
): api$InstructionResult
|
|
2242
|
+
): api$InstructionResult$Passed;
|
|
2243
2243
|
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Decodes a Passed message from the specified reader or buffer, length delimited.
|
|
@@ -2250,7 +2250,7 @@ declare class api$InstructionResult$Passed {
|
|
|
2250
2250
|
*/
|
|
2251
2251
|
static decodeDelimited(
|
|
2252
2252
|
reader: $protobuf.Reader | Uint8Array
|
|
2253
|
-
): api$InstructionResult
|
|
2253
|
+
): api$InstructionResult$Passed;
|
|
2254
2254
|
|
|
2255
2255
|
/**
|
|
2256
2256
|
* Verifies a Passed message.
|
|
@@ -2268,7 +2268,7 @@ declare class api$InstructionResult$Passed {
|
|
|
2268
2268
|
*/
|
|
2269
2269
|
static fromObject(object: {|
|
|
2270
2270
|
[k: string]: any,
|
|
2271
|
-
|}): api$InstructionResult
|
|
2271
|
+
|}): api$InstructionResult$Passed;
|
|
2272
2272
|
|
|
2273
2273
|
/**
|
|
2274
2274
|
* Creates a plain object from a Passed message. Also converts values to other types if specified.
|
|
@@ -2277,7 +2277,7 @@ declare class api$InstructionResult$Passed {
|
|
|
2277
2277
|
* @returns Plain object
|
|
2278
2278
|
*/
|
|
2279
2279
|
static toObject(
|
|
2280
|
-
message: api$InstructionResult
|
|
2280
|
+
message: api$InstructionResult$Passed,
|
|
2281
2281
|
options?: $protobuf.IConversionOptions
|
|
2282
2282
|
): {|
|
|
2283
2283
|
[k: string]: any,
|
|
@@ -2310,7 +2310,7 @@ declare class api$InstructionResult$Failed {
|
|
|
2310
2310
|
* Constructs a new Failed.
|
|
2311
2311
|
* @param [properties] Properties to set
|
|
2312
2312
|
*/
|
|
2313
|
-
constructor(properties?: api$InstructionResult
|
|
2313
|
+
constructor(properties?: api$InstructionResult$IFailed): this;
|
|
2314
2314
|
|
|
2315
2315
|
/**
|
|
2316
2316
|
* Failed output.
|
|
@@ -2323,8 +2323,8 @@ declare class api$InstructionResult$Failed {
|
|
|
2323
2323
|
* @returns Failed instance
|
|
2324
2324
|
*/
|
|
2325
2325
|
static create(
|
|
2326
|
-
properties?: api$InstructionResult
|
|
2327
|
-
): api$InstructionResult
|
|
2326
|
+
properties?: api$InstructionResult$IFailed
|
|
2327
|
+
): api$InstructionResult$Failed;
|
|
2328
2328
|
|
|
2329
2329
|
/**
|
|
2330
2330
|
* [object Object],[object Object],[object Object]
|
|
@@ -2333,7 +2333,7 @@ declare class api$InstructionResult$Failed {
|
|
|
2333
2333
|
* @returns Writer
|
|
2334
2334
|
*/
|
|
2335
2335
|
static encode(
|
|
2336
|
-
message: api$InstructionResult
|
|
2336
|
+
message: api$InstructionResult$Failed,
|
|
2337
2337
|
writer?: $protobuf.Writer
|
|
2338
2338
|
): $protobuf.Writer;
|
|
2339
2339
|
|
|
@@ -2344,7 +2344,7 @@ declare class api$InstructionResult$Failed {
|
|
|
2344
2344
|
* @returns Writer
|
|
2345
2345
|
*/
|
|
2346
2346
|
static encodeDelimited(
|
|
2347
|
-
message: api$InstructionResult
|
|
2347
|
+
message: api$InstructionResult$Failed,
|
|
2348
2348
|
writer?: $protobuf.Writer
|
|
2349
2349
|
): $protobuf.Writer;
|
|
2350
2350
|
|
|
@@ -2359,7 +2359,7 @@ declare class api$InstructionResult$Failed {
|
|
|
2359
2359
|
static decode(
|
|
2360
2360
|
reader: $protobuf.Reader | Uint8Array,
|
|
2361
2361
|
length?: number
|
|
2362
|
-
): api$InstructionResult
|
|
2362
|
+
): api$InstructionResult$Failed;
|
|
2363
2363
|
|
|
2364
2364
|
/**
|
|
2365
2365
|
* Decodes a Failed message from the specified reader or buffer, length delimited.
|
|
@@ -2370,7 +2370,7 @@ declare class api$InstructionResult$Failed {
|
|
|
2370
2370
|
*/
|
|
2371
2371
|
static decodeDelimited(
|
|
2372
2372
|
reader: $protobuf.Reader | Uint8Array
|
|
2373
|
-
): api$InstructionResult
|
|
2373
|
+
): api$InstructionResult$Failed;
|
|
2374
2374
|
|
|
2375
2375
|
/**
|
|
2376
2376
|
* Verifies a Failed message.
|
|
@@ -2388,7 +2388,7 @@ declare class api$InstructionResult$Failed {
|
|
|
2388
2388
|
*/
|
|
2389
2389
|
static fromObject(object: {|
|
|
2390
2390
|
[k: string]: any,
|
|
2391
|
-
|}): api$InstructionResult
|
|
2391
|
+
|}): api$InstructionResult$Failed;
|
|
2392
2392
|
|
|
2393
2393
|
/**
|
|
2394
2394
|
* Creates a plain object from a Failed message. Also converts values to other types if specified.
|
|
@@ -2397,7 +2397,7 @@ declare class api$InstructionResult$Failed {
|
|
|
2397
2397
|
* @returns Plain object
|
|
2398
2398
|
*/
|
|
2399
2399
|
static toObject(
|
|
2400
|
-
message: api$InstructionResult
|
|
2400
|
+
message: api$InstructionResult$Failed,
|
|
2401
2401
|
options?: $protobuf.IConversionOptions
|
|
2402
2402
|
): {|
|
|
2403
2403
|
[k: string]: any,
|
|
@@ -2430,7 +2430,7 @@ declare class api$InstructionResult$Timeout {
|
|
|
2430
2430
|
* Constructs a new Timeout.
|
|
2431
2431
|
* @param [properties] Properties to set
|
|
2432
2432
|
*/
|
|
2433
|
-
constructor(properties?: api$InstructionResult
|
|
2433
|
+
constructor(properties?: api$InstructionResult$ITimeout): this;
|
|
2434
2434
|
|
|
2435
2435
|
/**
|
|
2436
2436
|
* Timeout output.
|
|
@@ -2443,8 +2443,8 @@ declare class api$InstructionResult$Timeout {
|
|
|
2443
2443
|
* @returns Timeout instance
|
|
2444
2444
|
*/
|
|
2445
2445
|
static create(
|
|
2446
|
-
properties?: api$InstructionResult
|
|
2447
|
-
): api$InstructionResult
|
|
2446
|
+
properties?: api$InstructionResult$ITimeout
|
|
2447
|
+
): api$InstructionResult$Timeout;
|
|
2448
2448
|
|
|
2449
2449
|
/**
|
|
2450
2450
|
* [object Object],[object Object],[object Object]
|
|
@@ -2453,7 +2453,7 @@ declare class api$InstructionResult$Timeout {
|
|
|
2453
2453
|
* @returns Writer
|
|
2454
2454
|
*/
|
|
2455
2455
|
static encode(
|
|
2456
|
-
message: api$InstructionResult
|
|
2456
|
+
message: api$InstructionResult$Timeout,
|
|
2457
2457
|
writer?: $protobuf.Writer
|
|
2458
2458
|
): $protobuf.Writer;
|
|
2459
2459
|
|
|
@@ -2464,7 +2464,7 @@ declare class api$InstructionResult$Timeout {
|
|
|
2464
2464
|
* @returns Writer
|
|
2465
2465
|
*/
|
|
2466
2466
|
static encodeDelimited(
|
|
2467
|
-
message: api$InstructionResult
|
|
2467
|
+
message: api$InstructionResult$Timeout,
|
|
2468
2468
|
writer?: $protobuf.Writer
|
|
2469
2469
|
): $protobuf.Writer;
|
|
2470
2470
|
|
|
@@ -2479,7 +2479,7 @@ declare class api$InstructionResult$Timeout {
|
|
|
2479
2479
|
static decode(
|
|
2480
2480
|
reader: $protobuf.Reader | Uint8Array,
|
|
2481
2481
|
length?: number
|
|
2482
|
-
): api$InstructionResult
|
|
2482
|
+
): api$InstructionResult$Timeout;
|
|
2483
2483
|
|
|
2484
2484
|
/**
|
|
2485
2485
|
* Decodes a Timeout message from the specified reader or buffer, length delimited.
|
|
@@ -2490,7 +2490,7 @@ declare class api$InstructionResult$Timeout {
|
|
|
2490
2490
|
*/
|
|
2491
2491
|
static decodeDelimited(
|
|
2492
2492
|
reader: $protobuf.Reader | Uint8Array
|
|
2493
|
-
): api$InstructionResult
|
|
2493
|
+
): api$InstructionResult$Timeout;
|
|
2494
2494
|
|
|
2495
2495
|
/**
|
|
2496
2496
|
* Verifies a Timeout message.
|
|
@@ -2508,7 +2508,7 @@ declare class api$InstructionResult$Timeout {
|
|
|
2508
2508
|
*/
|
|
2509
2509
|
static fromObject(object: {|
|
|
2510
2510
|
[k: string]: any,
|
|
2511
|
-
|}): api$InstructionResult
|
|
2511
|
+
|}): api$InstructionResult$Timeout;
|
|
2512
2512
|
|
|
2513
2513
|
/**
|
|
2514
2514
|
* Creates a plain object from a Timeout message. Also converts values to other types if specified.
|
|
@@ -2517,7 +2517,7 @@ declare class api$InstructionResult$Timeout {
|
|
|
2517
2517
|
* @returns Plain object
|
|
2518
2518
|
*/
|
|
2519
2519
|
static toObject(
|
|
2520
|
-
message: api$InstructionResult
|
|
2520
|
+
message: api$InstructionResult$Timeout,
|
|
2521
2521
|
options?: $protobuf.IConversionOptions
|
|
2522
2522
|
): {|
|
|
2523
2523
|
[k: string]: any,
|
|
@@ -2797,4 +2797,3 @@ declare class google$protobuf$Duration {
|
|
|
2797
2797
|
[k: string]: any,
|
|
2798
2798
|
|};
|
|
2799
2799
|
}
|
|
2800
|
-
declare export { api };
|
package/main/index.d.ts
CHANGED
|
@@ -20467,4 +20467,3 @@ export namespace google {
|
|
|
20467
20467
|
}
|
|
20468
20468
|
}
|
|
20469
20469
|
}
|
|
20470
|
-
import api = replit.goval.api; export { api };
|
package/main/index.js
CHANGED
|
@@ -51077,5 +51077,5 @@
|
|
|
51077
51077
|
return google;
|
|
51078
51078
|
})();
|
|
51079
51079
|
|
|
51080
|
-
|
|
51080
|
+
return $root;
|
|
51081
51081
|
});
|
package/main/index.js.flow
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import * as $protobuf from "protobufjs";
|
|
9
|
-
|
|
9
|
+
declare var replit: typeof npm$namespace$replit;
|
|
10
10
|
|
|
11
11
|
declare var npm$namespace$replit: {|
|
|
12
12
|
goval: typeof npm$namespace$replit$goval,
|
|
@@ -29092,4 +29092,3 @@ declare class google$protobuf$ListValue {
|
|
|
29092
29092
|
[k: string]: any,
|
|
29093
29093
|
|};
|
|
29094
29094
|
}
|
|
29095
|
-
declare export { api };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replit/protocol",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.72",
|
|
4
4
|
"description": "JavaScript bindings for the Replit protocol",
|
|
5
5
|
"main": "main/index.js",
|
|
6
6
|
"repository": "https://github.com/replit/protocol",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"prepublishOnly": "npm run build",
|
|
11
11
|
"build": "npm run build:main && npm run build:iotester",
|
|
12
|
-
"build:iotester": "TARGET='./iotester/index' ./gen.sh ../../cmd/io-tester/lib/api/api.proto",
|
|
13
|
-
"build:main": "TARGET='./main/index' ./gen.sh ../types.proto ../client.proto ../signing.proto ../features/features.proto"
|
|
12
|
+
"build:iotester": "TARGET='./iotester/index' ./gen.sh nofix ../../cmd/io-tester/lib/api/api.proto",
|
|
13
|
+
"build:main": "TARGET='./main/index' ./gen.sh fix ../types.proto ../client.proto ../signing.proto ../features/features.proto"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"protobufjs": "^6.11.3"
|