@replit/protocol 0.6.2 → 0.6.3
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.d.ts +2 -1
- package/dist/api/lore/service.d.ts +129 -0
- package/dist/api/lore/service.js +237 -22
- package/dist/api/lore/transfer/org_transfer.client.d.ts +44 -5
- package/dist/api/lore/transfer/org_transfer.client.js +32 -10
- package/dist/api/lore/transfer/org_transfer.d.ts +39 -1
- package/dist/api/lore/transfer/org_transfer.js +64 -2
- package/dist/api/lore/transfer/transfer.client.d.ts +6 -6
- package/dist/api/lore/transfer/transfer.client.js +3 -3
- package/dist/api/repl/repl.d.ts +6 -0
- package/dist/api/repl/repl.js +9 -1
- package/dist/api/types.d.ts +44 -0
- package/dist/api/types.js +87 -1
- package/dist/google/protobuf/any.d.ts +52 -108
- package/dist/google/protobuf/field_mask.d.ts +16 -18
- package/dist/google/protobuf/struct.d.ts +33 -22
- package/dist/google/protobuf/struct.js +8 -3
- package/dist/google/protobuf/timestamp.d.ts +9 -8
- package/iotester/index.d.ts +425 -0
- package/iotester/index.js +1347 -5
- package/main/index.d.ts +425 -0
- package/main/index.js +1347 -5
- package/package.json +1 -1
package/dist/api/types.js
CHANGED
|
@@ -4,6 +4,7 @@ import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
|
4
4
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
5
|
import { Struct } from "../google/protobuf/struct.js";
|
|
6
6
|
import { Timestamp } from "../google/protobuf/timestamp.js";
|
|
7
|
+
import { BuildInfo } from "./repl/repl.js";
|
|
7
8
|
import { OciRuntimeProfile } from "./oci/runtime_profile.js";
|
|
8
9
|
import { Pid2Binary } from "./repl/repl.js";
|
|
9
10
|
import { Empty } from "../google/protobuf/empty.js";
|
|
@@ -3959,7 +3960,10 @@ class Pid1Config$Type extends MessageType {
|
|
|
3959
3960
|
{ no: 4, name: "noStore", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3960
3961
|
{ no: 5, name: "noninteractiveFSChange", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3961
3962
|
{ no: 6, name: "pid2_info", kind: "message", T: () => Pid2Binary },
|
|
3962
|
-
{ no: 8, name: "oci_runtime_profile", kind: "message", T: () => OciRuntimeProfile }
|
|
3963
|
+
{ no: 8, name: "oci_runtime_profile", kind: "message", T: () => OciRuntimeProfile },
|
|
3964
|
+
{ no: 9, name: "isolated_build", kind: "message", T: () => BuildInfo },
|
|
3965
|
+
{ no: 10, name: "isolated_build_source_mount", kind: "message", T: () => IsolatedBuildSourceMount },
|
|
3966
|
+
{ no: 11, name: "isolated_build_nix_image", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3963
3967
|
]);
|
|
3964
3968
|
}
|
|
3965
3969
|
create(value) {
|
|
@@ -3969,6 +3973,7 @@ class Pid1Config$Type extends MessageType {
|
|
|
3969
3973
|
message.env = {};
|
|
3970
3974
|
message.noStore = false;
|
|
3971
3975
|
message.noninteractiveFSChange = false;
|
|
3976
|
+
message.isolatedBuildNixImage = "";
|
|
3972
3977
|
if (value !== undefined)
|
|
3973
3978
|
reflectionMergePartial(this, message, value);
|
|
3974
3979
|
return message;
|
|
@@ -3999,6 +4004,15 @@ class Pid1Config$Type extends MessageType {
|
|
|
3999
4004
|
case /* replit.goval.api.oci.OciRuntimeProfile oci_runtime_profile */ 8:
|
|
4000
4005
|
message.ociRuntimeProfile = OciRuntimeProfile.internalBinaryRead(reader, reader.uint32(), options, message.ociRuntimeProfile);
|
|
4001
4006
|
break;
|
|
4007
|
+
case /* replit.goval.api.repl.BuildInfo isolated_build */ 9:
|
|
4008
|
+
message.isolatedBuild = BuildInfo.internalBinaryRead(reader, reader.uint32(), options, message.isolatedBuild);
|
|
4009
|
+
break;
|
|
4010
|
+
case /* replit.goval.api.IsolatedBuildSourceMount isolated_build_source_mount */ 10:
|
|
4011
|
+
message.isolatedBuildSourceMount = IsolatedBuildSourceMount.internalBinaryRead(reader, reader.uint32(), options, message.isolatedBuildSourceMount);
|
|
4012
|
+
break;
|
|
4013
|
+
case /* string isolated_build_nix_image */ 11:
|
|
4014
|
+
message.isolatedBuildNixImage = reader.string();
|
|
4015
|
+
break;
|
|
4002
4016
|
default:
|
|
4003
4017
|
let u = options.readUnknownField;
|
|
4004
4018
|
if (u === "throw")
|
|
@@ -4048,6 +4062,15 @@ class Pid1Config$Type extends MessageType {
|
|
|
4048
4062
|
/* replit.goval.api.oci.OciRuntimeProfile oci_runtime_profile = 8; */
|
|
4049
4063
|
if (message.ociRuntimeProfile)
|
|
4050
4064
|
OciRuntimeProfile.internalBinaryWrite(message.ociRuntimeProfile, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
4065
|
+
/* replit.goval.api.repl.BuildInfo isolated_build = 9; */
|
|
4066
|
+
if (message.isolatedBuild)
|
|
4067
|
+
BuildInfo.internalBinaryWrite(message.isolatedBuild, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
4068
|
+
/* replit.goval.api.IsolatedBuildSourceMount isolated_build_source_mount = 10; */
|
|
4069
|
+
if (message.isolatedBuildSourceMount)
|
|
4070
|
+
IsolatedBuildSourceMount.internalBinaryWrite(message.isolatedBuildSourceMount, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
4071
|
+
/* string isolated_build_nix_image = 11; */
|
|
4072
|
+
if (message.isolatedBuildNixImage !== "")
|
|
4073
|
+
writer.tag(11, WireType.LengthDelimited).string(message.isolatedBuildNixImage);
|
|
4051
4074
|
let u = options.writeUnknownFields;
|
|
4052
4075
|
if (u !== false)
|
|
4053
4076
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -17109,3 +17132,66 @@ class ReplResourcesUpdateNotification$Type extends MessageType {
|
|
|
17109
17132
|
* @generated MessageType for protobuf message replit.goval.api.ReplResourcesUpdateNotification
|
|
17110
17133
|
*/
|
|
17111
17134
|
export const ReplResourcesUpdateNotification = new ReplResourcesUpdateNotification$Type();
|
|
17135
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
17136
|
+
class IsolatedBuildSourceMount$Type extends MessageType {
|
|
17137
|
+
constructor() {
|
|
17138
|
+
super("replit.goval.api.IsolatedBuildSourceMount", [
|
|
17139
|
+
{ no: 1, name: "owner_repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17140
|
+
{ no: 2, name: "disk_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
17141
|
+
{ no: 3, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
17142
|
+
]);
|
|
17143
|
+
}
|
|
17144
|
+
create(value) {
|
|
17145
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
17146
|
+
message.ownerReplId = "";
|
|
17147
|
+
message.diskId = "";
|
|
17148
|
+
message.path = "";
|
|
17149
|
+
if (value !== undefined)
|
|
17150
|
+
reflectionMergePartial(this, message, value);
|
|
17151
|
+
return message;
|
|
17152
|
+
}
|
|
17153
|
+
internalBinaryRead(reader, length, options, target) {
|
|
17154
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
17155
|
+
while (reader.pos < end) {
|
|
17156
|
+
let [fieldNo, wireType] = reader.tag();
|
|
17157
|
+
switch (fieldNo) {
|
|
17158
|
+
case /* string owner_repl_id */ 1:
|
|
17159
|
+
message.ownerReplId = reader.string();
|
|
17160
|
+
break;
|
|
17161
|
+
case /* string disk_id */ 2:
|
|
17162
|
+
message.diskId = reader.string();
|
|
17163
|
+
break;
|
|
17164
|
+
case /* string path */ 3:
|
|
17165
|
+
message.path = reader.string();
|
|
17166
|
+
break;
|
|
17167
|
+
default:
|
|
17168
|
+
let u = options.readUnknownField;
|
|
17169
|
+
if (u === "throw")
|
|
17170
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
17171
|
+
let d = reader.skip(wireType);
|
|
17172
|
+
if (u !== false)
|
|
17173
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
17174
|
+
}
|
|
17175
|
+
}
|
|
17176
|
+
return message;
|
|
17177
|
+
}
|
|
17178
|
+
internalBinaryWrite(message, writer, options) {
|
|
17179
|
+
/* string owner_repl_id = 1; */
|
|
17180
|
+
if (message.ownerReplId !== "")
|
|
17181
|
+
writer.tag(1, WireType.LengthDelimited).string(message.ownerReplId);
|
|
17182
|
+
/* string disk_id = 2; */
|
|
17183
|
+
if (message.diskId !== "")
|
|
17184
|
+
writer.tag(2, WireType.LengthDelimited).string(message.diskId);
|
|
17185
|
+
/* string path = 3; */
|
|
17186
|
+
if (message.path !== "")
|
|
17187
|
+
writer.tag(3, WireType.LengthDelimited).string(message.path);
|
|
17188
|
+
let u = options.writeUnknownFields;
|
|
17189
|
+
if (u !== false)
|
|
17190
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
17191
|
+
return writer;
|
|
17192
|
+
}
|
|
17193
|
+
}
|
|
17194
|
+
/**
|
|
17195
|
+
* @generated MessageType for protobuf message replit.goval.api.IsolatedBuildSourceMount
|
|
17196
|
+
*/
|
|
17197
|
+
export const IsolatedBuildSourceMount = new IsolatedBuildSourceMount$Type();
|
|
@@ -12,129 +12,73 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
12
12
|
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
13
13
|
* URL that describes the type of the serialized message.
|
|
14
14
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* foo = Foo(...)
|
|
44
|
-
* any = Any()
|
|
45
|
-
* any.Pack(foo)
|
|
46
|
-
* ...
|
|
47
|
-
* if any.Is(Foo.DESCRIPTOR):
|
|
48
|
-
* any.Unpack(foo)
|
|
49
|
-
* ...
|
|
50
|
-
*
|
|
51
|
-
* Example 4: Pack and unpack a message in Go
|
|
52
|
-
*
|
|
53
|
-
* foo := &pb.Foo{...}
|
|
54
|
-
* any, err := anypb.New(foo)
|
|
55
|
-
* if err != nil {
|
|
56
|
-
* ...
|
|
57
|
-
* }
|
|
58
|
-
* ...
|
|
59
|
-
* foo := &pb.Foo{}
|
|
60
|
-
* if err := any.UnmarshalTo(foo); err != nil {
|
|
61
|
-
* ...
|
|
62
|
-
* }
|
|
63
|
-
*
|
|
64
|
-
* The pack methods provided by protobuf library will by default use
|
|
65
|
-
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
66
|
-
* methods only use the fully qualified type name after the last '/'
|
|
67
|
-
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
68
|
-
* name "y.z".
|
|
69
|
-
*
|
|
70
|
-
* JSON
|
|
71
|
-
* ====
|
|
72
|
-
* The JSON representation of an `Any` value uses the regular
|
|
73
|
-
* representation of the deserialized, embedded message, with an
|
|
74
|
-
* additional field `@type` which contains the type URL. Example:
|
|
75
|
-
*
|
|
76
|
-
* package google.profile;
|
|
77
|
-
* message Person {
|
|
78
|
-
* string first_name = 1;
|
|
79
|
-
* string last_name = 2;
|
|
80
|
-
* }
|
|
81
|
-
*
|
|
82
|
-
* {
|
|
83
|
-
* "@type": "type.googleapis.com/google.profile.Person",
|
|
84
|
-
* "firstName": <string>,
|
|
85
|
-
* "lastName": <string>
|
|
86
|
-
* }
|
|
87
|
-
*
|
|
88
|
-
* If the embedded message type is well-known and has a custom JSON
|
|
89
|
-
* representation, that representation will be embedded adding a field
|
|
90
|
-
* `value` which holds the custom JSON in addition to the `@type`
|
|
91
|
-
* field. Example (for message [google.protobuf.Duration][]):
|
|
92
|
-
*
|
|
93
|
-
* {
|
|
94
|
-
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
95
|
-
* "value": "1.212s"
|
|
96
|
-
* }
|
|
97
|
-
*
|
|
15
|
+
* In its binary encoding, an `Any` is an ordinary message; but in other wire
|
|
16
|
+
* forms like JSON, it has a special encoding. The format of the type URL is
|
|
17
|
+
* described on the `type_url` field.
|
|
18
|
+
*
|
|
19
|
+
* Protobuf APIs provide utilities to interact with `Any` values:
|
|
20
|
+
*
|
|
21
|
+
* - A 'pack' operation accepts a message and constructs a generic `Any` wrapper
|
|
22
|
+
* around it.
|
|
23
|
+
* - An 'unpack' operation reads the content of an `Any` message, either into an
|
|
24
|
+
* existing message or a new one. Unpack operations must check the type of the
|
|
25
|
+
* value they unpack against the declared `type_url`.
|
|
26
|
+
* - An 'is' operation decides whether an `Any` contains a message of the given
|
|
27
|
+
* type, i.e. whether it can 'unpack' that type.
|
|
28
|
+
*
|
|
29
|
+
* The JSON format representation of an `Any` follows one of these cases:
|
|
30
|
+
*
|
|
31
|
+
* - For types without special-cased JSON encodings, the JSON format
|
|
32
|
+
* representation of the `Any` is the same as that of the message, with an
|
|
33
|
+
* additional `@type` field which contains the type URL.
|
|
34
|
+
* - For types with special-cased JSON encodings (typically called 'well-known'
|
|
35
|
+
* types, listed in https://protobuf.dev/programming-guides/json/#any), the
|
|
36
|
+
* JSON format representation has a key `@type` which contains the type URL
|
|
37
|
+
* and a key `value` which contains the JSON-serialized value.
|
|
38
|
+
*
|
|
39
|
+
* The text format representation of an `Any` is like a message with one field
|
|
40
|
+
* whose name is the type URL in brackets. For example, an `Any` containing a
|
|
41
|
+
* `foo.Bar` message may be written `[type.googleapis.com/foo.Bar] { a: 2 }`.
|
|
98
42
|
*
|
|
99
43
|
* @generated from protobuf message google.protobuf.Any
|
|
100
44
|
*/
|
|
101
45
|
export interface Any {
|
|
102
46
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
* one "/" character. The last segment of the URL's path must represent
|
|
106
|
-
* the fully qualified name of the type (as in
|
|
107
|
-
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
108
|
-
* (e.g., leading "." is not accepted).
|
|
47
|
+
* Identifies the type of the serialized Protobuf message with a URI reference
|
|
48
|
+
* consisting of a prefix ending in a slash and the fully-qualified type name.
|
|
109
49
|
*
|
|
110
|
-
*
|
|
111
|
-
* expect it to use in the context of Any. However, for URLs which use the
|
|
112
|
-
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
113
|
-
* server that maps type URLs to message definitions as follows:
|
|
50
|
+
* Example: type.googleapis.com/google.protobuf.StringValue
|
|
114
51
|
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* URL, or have them precompiled into a binary to avoid any
|
|
120
|
-
* lookup. Therefore, binary compatibility needs to be preserved
|
|
121
|
-
* on changes to types. (Use versioned type names to manage
|
|
122
|
-
* breaking changes.)
|
|
52
|
+
* This string must contain at least one `/` character, and the content after
|
|
53
|
+
* the last `/` must be the fully-qualified name of the type in canonical
|
|
54
|
+
* form, without a leading dot. Do not write a scheme on these URI references
|
|
55
|
+
* so that clients do not attempt to contact them.
|
|
123
56
|
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
* type.googleapis.com
|
|
127
|
-
* implementations
|
|
57
|
+
* The prefix is arbitrary and Protobuf implementations are expected to
|
|
58
|
+
* simply strip off everything up to and including the last `/` to identify
|
|
59
|
+
* the type. `type.googleapis.com/` is a common default prefix that some
|
|
60
|
+
* legacy implementations require. This prefix does not indicate the origin of
|
|
61
|
+
* the type, and URIs containing it are not expected to respond to any
|
|
62
|
+
* requests.
|
|
128
63
|
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
64
|
+
* All type URL strings must be legal URI references with the additional
|
|
65
|
+
* restriction (for the text format) that the content of the reference
|
|
66
|
+
* must consist only of alphanumeric characters, percent-encoded escapes, and
|
|
67
|
+
* characters in the following set (not including the outer backticks):
|
|
68
|
+
* `/-.~_!$&()*+,;=`. Despite our allowing percent encodings, implementations
|
|
69
|
+
* should not unescape them to prevent confusion with existing parsers. For
|
|
70
|
+
* example, `type.googleapis.com%2FFoo` should be rejected.
|
|
131
71
|
*
|
|
72
|
+
* In the original design of `Any`, the possibility of launching a type
|
|
73
|
+
* resolution service at these type URLs was considered but Protobuf never
|
|
74
|
+
* implemented one and considers contacting these URLs to be problematic and
|
|
75
|
+
* a potential security issue. Do not attempt to contact type URLs.
|
|
132
76
|
*
|
|
133
77
|
* @generated from protobuf field: string type_url = 1
|
|
134
78
|
*/
|
|
135
79
|
typeUrl: string;
|
|
136
80
|
/**
|
|
137
|
-
*
|
|
81
|
+
* Holds a Protobuf serialization of the type described by type_url.
|
|
138
82
|
*
|
|
139
83
|
* @generated from protobuf field: bytes value = 2
|
|
140
84
|
*/
|
|
@@ -120,24 +120,22 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
120
120
|
* An implementation may provide options to override this default behavior for
|
|
121
121
|
* repeated and message fields.
|
|
122
122
|
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
*
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
*
|
|
137
|
-
*
|
|
138
|
-
*
|
|
139
|
-
* operation kind. In any case, the effect of the field mask is
|
|
140
|
-
* required to be honored by the API.
|
|
123
|
+
* Note that libraries which implement FieldMask resolution have various
|
|
124
|
+
* different behaviors in the face of empty masks or the special "*" mask.
|
|
125
|
+
* When implementing a service you should confirm these cases have the
|
|
126
|
+
* appropriate behavior in the underlying FieldMask library that you desire,
|
|
127
|
+
* and you may need to special case those cases in your application code if
|
|
128
|
+
* the underlying field mask library behavior differs from your intended
|
|
129
|
+
* service semantics.
|
|
130
|
+
*
|
|
131
|
+
* Update methods implementing https://google.aip.dev/134
|
|
132
|
+
* - MUST support the special value * meaning "full replace"
|
|
133
|
+
* - MUST treat an omitted field mask as "replace fields which are present".
|
|
134
|
+
*
|
|
135
|
+
* Other methods implementing https://google.aip.dev/157
|
|
136
|
+
* - SHOULD support the special value "*" to mean "get all".
|
|
137
|
+
* - MUST treat an omitted field mask to mean "get all", unless otherwise
|
|
138
|
+
* documented.
|
|
141
139
|
*
|
|
142
140
|
* ## Considerations for HTTP REST
|
|
143
141
|
*
|
|
@@ -8,14 +8,19 @@ 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
|
-
*
|
|
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.
|
|
11
|
+
* Represents a JSON object.
|
|
17
12
|
*
|
|
18
|
-
*
|
|
13
|
+
* An unordered key-value map, intending to perfectly capture the semantics of a
|
|
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.
|
|
19
24
|
*
|
|
20
25
|
* @generated from protobuf message google.protobuf.Struct
|
|
21
26
|
*/
|
|
@@ -30,12 +35,12 @@ export interface Struct {
|
|
|
30
35
|
};
|
|
31
36
|
}
|
|
32
37
|
/**
|
|
38
|
+
* Represents a JSON value.
|
|
39
|
+
*
|
|
33
40
|
* `Value` represents a dynamically typed value which can be either
|
|
34
41
|
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
35
42
|
* list of values. A producer of value is expected to set one of these
|
|
36
|
-
* variants. Absence of any variant
|
|
37
|
-
*
|
|
38
|
-
* The JSON representation for `Value` is JSON value.
|
|
43
|
+
* variants. Absence of any variant is an invalid state.
|
|
39
44
|
*
|
|
40
45
|
* @generated from protobuf message google.protobuf.Value
|
|
41
46
|
*/
|
|
@@ -48,7 +53,7 @@ export interface Value {
|
|
|
48
53
|
kind: {
|
|
49
54
|
oneofKind: "nullValue";
|
|
50
55
|
/**
|
|
51
|
-
* Represents a null
|
|
56
|
+
* Represents a JSON `null`.
|
|
52
57
|
*
|
|
53
58
|
* @generated from protobuf field: google.protobuf.NullValue null_value = 1
|
|
54
59
|
*/
|
|
@@ -56,7 +61,10 @@ export interface Value {
|
|
|
56
61
|
} | {
|
|
57
62
|
oneofKind: "numberValue";
|
|
58
63
|
/**
|
|
59
|
-
* Represents a
|
|
64
|
+
* Represents a JSON number. Must not be `NaN`, `Infinity` or
|
|
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.
|
|
60
68
|
*
|
|
61
69
|
* @generated from protobuf field: double number_value = 2
|
|
62
70
|
*/
|
|
@@ -64,7 +72,7 @@ export interface Value {
|
|
|
64
72
|
} | {
|
|
65
73
|
oneofKind: "stringValue";
|
|
66
74
|
/**
|
|
67
|
-
* Represents a string
|
|
75
|
+
* Represents a JSON string.
|
|
68
76
|
*
|
|
69
77
|
* @generated from protobuf field: string string_value = 3
|
|
70
78
|
*/
|
|
@@ -72,7 +80,7 @@ export interface Value {
|
|
|
72
80
|
} | {
|
|
73
81
|
oneofKind: "boolValue";
|
|
74
82
|
/**
|
|
75
|
-
* Represents a boolean
|
|
83
|
+
* Represents a JSON boolean (`true` or `false` literal in JSON).
|
|
76
84
|
*
|
|
77
85
|
* @generated from protobuf field: bool bool_value = 4
|
|
78
86
|
*/
|
|
@@ -80,7 +88,7 @@ export interface Value {
|
|
|
80
88
|
} | {
|
|
81
89
|
oneofKind: "structValue";
|
|
82
90
|
/**
|
|
83
|
-
* Represents a
|
|
91
|
+
* Represents a JSON object.
|
|
84
92
|
*
|
|
85
93
|
* @generated from protobuf field: google.protobuf.Struct struct_value = 5
|
|
86
94
|
*/
|
|
@@ -88,7 +96,7 @@ export interface Value {
|
|
|
88
96
|
} | {
|
|
89
97
|
oneofKind: "listValue";
|
|
90
98
|
/**
|
|
91
|
-
* Represents a
|
|
99
|
+
* Represents a JSON array.
|
|
92
100
|
*
|
|
93
101
|
* @generated from protobuf field: google.protobuf.ListValue list_value = 6
|
|
94
102
|
*/
|
|
@@ -98,9 +106,7 @@ export interface Value {
|
|
|
98
106
|
};
|
|
99
107
|
}
|
|
100
108
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* The JSON representation for `ListValue` is JSON array.
|
|
109
|
+
* Represents a JSON array.
|
|
104
110
|
*
|
|
105
111
|
* @generated from protobuf message google.protobuf.ListValue
|
|
106
112
|
*/
|
|
@@ -113,10 +119,15 @@ export interface ListValue {
|
|
|
113
119
|
values: Value[];
|
|
114
120
|
}
|
|
115
121
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
122
|
+
* Represents a JSON `null`.
|
|
123
|
+
*
|
|
124
|
+
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
125
|
+
* the null value for the `Value` type union.
|
|
118
126
|
*
|
|
119
|
-
*
|
|
127
|
+
* A field of type `NullValue` with any value other than `0` is considered
|
|
128
|
+
* invalid. Most ProtoJSON serializers will emit a `Value` with a `null_value`
|
|
129
|
+
* set as a JSON `null` regardless of the integer value, and so will round trip
|
|
130
|
+
* to a `0` value.
|
|
120
131
|
*
|
|
121
132
|
* @generated from protobuf enum google.protobuf.NullValue
|
|
122
133
|
*/
|
|
@@ -5,10 +5,15 @@ 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
|
-
*
|
|
9
|
-
* `Value` type union.
|
|
8
|
+
* Represents a JSON `null`.
|
|
10
9
|
*
|
|
11
|
-
*
|
|
10
|
+
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
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`
|
|
15
|
+
* set as a JSON `null` regardless of the integer value, and so will round trip
|
|
16
|
+
* to a `0` value.
|
|
12
17
|
*
|
|
13
18
|
* @generated from protobuf enum google.protobuf.NullValue
|
|
14
19
|
*/
|
|
@@ -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 ProtoJSON serializer should always use UTC (as indicated by
|
|
84
|
+
* "Z") when printing the Timestamp type and a ProtoJSON 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,17 +103,18 @@ 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
|
-
* 9999-12-31T23:59:59Z
|
|
106
|
+
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
107
|
+
* be between -62135596800 and 253402300799 inclusive (which corresponds to
|
|
108
|
+
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
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
|
-
*
|
|
114
|
+
* Non-negative fractions of a second at nanosecond resolution. This field is
|
|
115
|
+
* the nanosecond portion of the duration, not an alternative to seconds.
|
|
116
|
+
* Negative second values with fractions must still have non-negative nanos
|
|
117
|
+
* values that count forward in time. Must be between 0 and 999,999,999
|
|
117
118
|
* inclusive.
|
|
118
119
|
*
|
|
119
120
|
* @generated from protobuf field: int32 nanos = 2
|