@replit/protocol 0.4.29 → 0.4.31
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/dist/api/jetplane/repl/repl.client.d.ts +50 -0
- package/dist/api/jetplane/repl/repl.client.js +39 -8
- package/dist/api/jetplane/repl/repl.d.ts +338 -13
- package/dist/api/jetplane/repl/repl.js +656 -13
- package/dist/api/lore/lore.d.ts +6 -0
- package/dist/api/lore/lore.js +9 -1
- package/dist/api/lore/service.client.d.ts +120 -0
- package/dist/api/lore/service.client.js +98 -24
- package/dist/api/lore/service.d.ts +461 -0
- package/dist/api/lore/service.js +1096 -158
- package/dist/api/oci/runtime_profile.d.ts +59 -0
- package/dist/api/oci/runtime_profile.js +105 -0
- package/dist/api/token/token.d.ts +13 -0
- package/dist/api/token/token.js +16 -1
- package/dist/api/types.d.ts +5 -0
- package/dist/api/types.js +9 -1
- package/dist/google/protobuf/any.d.ts +180 -0
- package/dist/google/protobuf/any.js +151 -0
- package/dist/google/protobuf/field_mask.d.ts +18 -16
- package/dist/google/protobuf/struct.d.ts +22 -33
- package/dist/google/protobuf/struct.js +3 -8
- package/dist/google/protobuf/timestamp.d.ts +8 -9
- package/dist/google/rpc/status.d.ts +35 -0
- package/dist/google/rpc/status.js +68 -0
- package/iotester/index.d.ts +3516 -6
- package/iotester/index.js +15288 -6455
- package/main/index.d.ts +3516 -6
- package/main/index.js +15288 -6455
- package/package.json +1 -1
|
@@ -8,19 +8,14 @@ import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
|
8
8
|
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
9
9
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* `Struct` represents a structured data value, consisting of fields
|
|
12
|
+
* which map to dynamically typed values. In some languages, `Struct`
|
|
13
|
+
* might be supported by a native representation. For example, in
|
|
14
|
+
* scripting languages like JS a struct is represented as an
|
|
15
|
+
* object. The details of that representation are described together
|
|
16
|
+
* with the proto support for the language.
|
|
12
17
|
*
|
|
13
|
-
*
|
|
14
|
-
* JSON object. This enables parsing any arbitrary JSON payload as a message
|
|
15
|
-
* field in ProtoJSON format.
|
|
16
|
-
*
|
|
17
|
-
* This follows RFC 8259 guidelines for interoperable JSON: notably this type
|
|
18
|
-
* cannot represent large Int64 values or `NaN`/`Infinity` numbers,
|
|
19
|
-
* since the JSON format generally does not support those values in its number
|
|
20
|
-
* type.
|
|
21
|
-
*
|
|
22
|
-
* If you do not intend to parse arbitrary JSON into your message, a custom
|
|
23
|
-
* typed message should be preferred instead of using this type.
|
|
18
|
+
* The JSON representation for `Struct` is JSON object.
|
|
24
19
|
*
|
|
25
20
|
* @generated from protobuf message google.protobuf.Struct
|
|
26
21
|
*/
|
|
@@ -35,12 +30,12 @@ export interface Struct {
|
|
|
35
30
|
};
|
|
36
31
|
}
|
|
37
32
|
/**
|
|
38
|
-
* Represents a JSON value.
|
|
39
|
-
*
|
|
40
33
|
* `Value` represents a dynamically typed value which can be either
|
|
41
34
|
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
42
35
|
* list of values. A producer of value is expected to set one of these
|
|
43
|
-
* variants. Absence of any variant
|
|
36
|
+
* variants. Absence of any variant indicates an error.
|
|
37
|
+
*
|
|
38
|
+
* The JSON representation for `Value` is JSON value.
|
|
44
39
|
*
|
|
45
40
|
* @generated from protobuf message google.protobuf.Value
|
|
46
41
|
*/
|
|
@@ -53,7 +48,7 @@ export interface Value {
|
|
|
53
48
|
kind: {
|
|
54
49
|
oneofKind: "nullValue";
|
|
55
50
|
/**
|
|
56
|
-
* Represents a
|
|
51
|
+
* Represents a null value.
|
|
57
52
|
*
|
|
58
53
|
* @generated from protobuf field: google.protobuf.NullValue null_value = 1
|
|
59
54
|
*/
|
|
@@ -61,10 +56,7 @@ export interface Value {
|
|
|
61
56
|
} | {
|
|
62
57
|
oneofKind: "numberValue";
|
|
63
58
|
/**
|
|
64
|
-
* Represents a
|
|
65
|
-
* `-Infinity`, since those are not supported in JSON. This also cannot
|
|
66
|
-
* represent large Int64 values, since JSON format generally does not
|
|
67
|
-
* support them in its number type.
|
|
59
|
+
* Represents a double value.
|
|
68
60
|
*
|
|
69
61
|
* @generated from protobuf field: double number_value = 2
|
|
70
62
|
*/
|
|
@@ -72,7 +64,7 @@ export interface Value {
|
|
|
72
64
|
} | {
|
|
73
65
|
oneofKind: "stringValue";
|
|
74
66
|
/**
|
|
75
|
-
* Represents a
|
|
67
|
+
* Represents a string value.
|
|
76
68
|
*
|
|
77
69
|
* @generated from protobuf field: string string_value = 3
|
|
78
70
|
*/
|
|
@@ -80,7 +72,7 @@ export interface Value {
|
|
|
80
72
|
} | {
|
|
81
73
|
oneofKind: "boolValue";
|
|
82
74
|
/**
|
|
83
|
-
* Represents a
|
|
75
|
+
* Represents a boolean value.
|
|
84
76
|
*
|
|
85
77
|
* @generated from protobuf field: bool bool_value = 4
|
|
86
78
|
*/
|
|
@@ -88,7 +80,7 @@ export interface Value {
|
|
|
88
80
|
} | {
|
|
89
81
|
oneofKind: "structValue";
|
|
90
82
|
/**
|
|
91
|
-
* Represents a
|
|
83
|
+
* Represents a structured value.
|
|
92
84
|
*
|
|
93
85
|
* @generated from protobuf field: google.protobuf.Struct struct_value = 5
|
|
94
86
|
*/
|
|
@@ -96,7 +88,7 @@ export interface Value {
|
|
|
96
88
|
} | {
|
|
97
89
|
oneofKind: "listValue";
|
|
98
90
|
/**
|
|
99
|
-
* Represents a
|
|
91
|
+
* Represents a repeated `Value`.
|
|
100
92
|
*
|
|
101
93
|
* @generated from protobuf field: google.protobuf.ListValue list_value = 6
|
|
102
94
|
*/
|
|
@@ -106,7 +98,9 @@ export interface Value {
|
|
|
106
98
|
};
|
|
107
99
|
}
|
|
108
100
|
/**
|
|
109
|
-
*
|
|
101
|
+
* `ListValue` is a wrapper around a repeated field of values.
|
|
102
|
+
*
|
|
103
|
+
* The JSON representation for `ListValue` is JSON array.
|
|
110
104
|
*
|
|
111
105
|
* @generated from protobuf message google.protobuf.ListValue
|
|
112
106
|
*/
|
|
@@ -119,15 +113,10 @@ export interface ListValue {
|
|
|
119
113
|
values: Value[];
|
|
120
114
|
}
|
|
121
115
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
125
|
-
* the null value for the `Value` type union.
|
|
116
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
117
|
+
* `Value` type union.
|
|
126
118
|
*
|
|
127
|
-
*
|
|
128
|
-
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
129
|
-
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
130
|
-
* a `0` value.
|
|
119
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
131
120
|
*
|
|
132
121
|
* @generated from protobuf enum google.protobuf.NullValue
|
|
133
122
|
*/
|
|
@@ -5,15 +5,10 @@ import { isJsonObject } from "@protobuf-ts/runtime";
|
|
|
5
5
|
import { typeofJsonValue } from "@protobuf-ts/runtime";
|
|
6
6
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
9
|
+
* `Value` type union.
|
|
9
10
|
*
|
|
10
|
-
* `NullValue` is
|
|
11
|
-
* the null value for the `Value` type union.
|
|
12
|
-
*
|
|
13
|
-
* A field of type `NullValue` with any value other than `0` is considered
|
|
14
|
-
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
15
|
-
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
16
|
-
* a `0` value.
|
|
11
|
+
* The JSON representation for `NullValue` is JSON `null`.
|
|
17
12
|
*
|
|
18
13
|
* @generated from protobuf enum google.protobuf.NullValue
|
|
19
14
|
*/
|
|
@@ -80,8 +80,8 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
80
80
|
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
81
81
|
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
82
82
|
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
83
|
-
* is required. A
|
|
84
|
-
* "Z") when printing the Timestamp type and a
|
|
83
|
+
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
84
|
+
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
85
85
|
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
86
86
|
*
|
|
87
87
|
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
@@ -103,18 +103,17 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
103
103
|
*/
|
|
104
104
|
export interface Timestamp {
|
|
105
105
|
/**
|
|
106
|
-
* Represents seconds of UTC time since Unix epoch
|
|
107
|
-
*
|
|
108
|
-
*
|
|
106
|
+
* Represents seconds of UTC time since Unix epoch
|
|
107
|
+
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
108
|
+
* 9999-12-31T23:59:59Z inclusive.
|
|
109
109
|
*
|
|
110
110
|
* @generated from protobuf field: int64 seconds = 1
|
|
111
111
|
*/
|
|
112
112
|
seconds: bigint;
|
|
113
113
|
/**
|
|
114
|
-
* Non-negative fractions of a second at nanosecond resolution.
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* values that count forward in time. Must be between 0 and 999,999,999
|
|
114
|
+
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
115
|
+
* second values with fractions must still have non-negative nanos values
|
|
116
|
+
* that count forward in time. Must be from 0 to 999,999,999
|
|
118
117
|
* inclusive.
|
|
119
118
|
*
|
|
120
119
|
* @generated from protobuf field: int32 nanos = 2
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
2
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
3
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
4
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { Any } from "../protobuf/any.js";
|
|
8
|
+
/**
|
|
9
|
+
* @generated from protobuf message google.rpc.Status
|
|
10
|
+
*/
|
|
11
|
+
export interface Status {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from protobuf field: int32 code = 1
|
|
14
|
+
*/
|
|
15
|
+
code: number;
|
|
16
|
+
/**
|
|
17
|
+
* @generated from protobuf field: string message = 2
|
|
18
|
+
*/
|
|
19
|
+
message: string;
|
|
20
|
+
/**
|
|
21
|
+
* @generated from protobuf field: repeated google.protobuf.Any details = 3
|
|
22
|
+
*/
|
|
23
|
+
details: Any[];
|
|
24
|
+
}
|
|
25
|
+
declare class Status$Type extends MessageType<Status> {
|
|
26
|
+
constructor();
|
|
27
|
+
create(value?: PartialMessage<Status>): Status;
|
|
28
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Status): Status;
|
|
29
|
+
internalBinaryWrite(message: Status, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @generated MessageType for protobuf message google.rpc.Status
|
|
33
|
+
*/
|
|
34
|
+
export declare const Status: Status$Type;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
2
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { Any } from "../protobuf/any.js";
|
|
6
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
7
|
+
class Status$Type extends MessageType {
|
|
8
|
+
constructor() {
|
|
9
|
+
super("google.rpc.Status", [
|
|
10
|
+
{ no: 1, name: "code", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
11
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
12
|
+
{ no: 3, name: "details", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Any }
|
|
13
|
+
]);
|
|
14
|
+
}
|
|
15
|
+
create(value) {
|
|
16
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
17
|
+
message.code = 0;
|
|
18
|
+
message.message = "";
|
|
19
|
+
message.details = [];
|
|
20
|
+
if (value !== undefined)
|
|
21
|
+
reflectionMergePartial(this, message, value);
|
|
22
|
+
return message;
|
|
23
|
+
}
|
|
24
|
+
internalBinaryRead(reader, length, options, target) {
|
|
25
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
let [fieldNo, wireType] = reader.tag();
|
|
28
|
+
switch (fieldNo) {
|
|
29
|
+
case /* int32 code */ 1:
|
|
30
|
+
message.code = reader.int32();
|
|
31
|
+
break;
|
|
32
|
+
case /* string message */ 2:
|
|
33
|
+
message.message = reader.string();
|
|
34
|
+
break;
|
|
35
|
+
case /* repeated google.protobuf.Any details */ 3:
|
|
36
|
+
message.details.push(Any.internalBinaryRead(reader, reader.uint32(), options));
|
|
37
|
+
break;
|
|
38
|
+
default:
|
|
39
|
+
let u = options.readUnknownField;
|
|
40
|
+
if (u === "throw")
|
|
41
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
42
|
+
let d = reader.skip(wireType);
|
|
43
|
+
if (u !== false)
|
|
44
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return message;
|
|
48
|
+
}
|
|
49
|
+
internalBinaryWrite(message, writer, options) {
|
|
50
|
+
/* int32 code = 1; */
|
|
51
|
+
if (message.code !== 0)
|
|
52
|
+
writer.tag(1, WireType.Varint).int32(message.code);
|
|
53
|
+
/* string message = 2; */
|
|
54
|
+
if (message.message !== "")
|
|
55
|
+
writer.tag(2, WireType.LengthDelimited).string(message.message);
|
|
56
|
+
/* repeated google.protobuf.Any details = 3; */
|
|
57
|
+
for (let i = 0; i < message.details.length; i++)
|
|
58
|
+
Any.internalBinaryWrite(message.details[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
59
|
+
let u = options.writeUnknownFields;
|
|
60
|
+
if (u !== false)
|
|
61
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
62
|
+
return writer;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @generated MessageType for protobuf message google.rpc.Status
|
|
67
|
+
*/
|
|
68
|
+
export const Status = new Status$Type();
|