@replit/protocol 0.4.31 → 0.4.32

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.
@@ -5,6 +5,7 @@ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
5
  import type { PartialMessage } from "@protobuf-ts/runtime";
6
6
  import { MessageType } from "@protobuf-ts/runtime";
7
7
  import { Feature } from "../features/features.js";
8
+ import { Timestamp } from "../../google/protobuf/timestamp.js";
8
9
  /**
9
10
  * @generated from protobuf message replit.goval.api.repl.Buckets
10
11
  */
@@ -169,6 +170,12 @@ export interface Repl {
169
170
  * @generated from protobuf field: bool inject_chatgpt_link_override = 20
170
171
  */
171
172
  injectChatgptLinkOverride: boolean;
173
+ /**
174
+ * The creation time of the source Repl in Replit web.
175
+ *
176
+ * @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 21
177
+ */
178
+ replCreatedAt?: Timestamp;
172
179
  }
173
180
  /**
174
181
  * autocontainer needs to know if we are in a teams org
@@ -3,6 +3,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
3
3
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
4
4
  import { MessageType } from "@protobuf-ts/runtime";
5
5
  import { Feature } from "../features/features.js";
6
+ import { Timestamp } from "../../google/protobuf/timestamp.js";
6
7
  /**
7
8
  * Organization type. There are legacy types, but we are not
8
9
  * supporting them, and they should not be getting passed.
@@ -205,7 +206,8 @@ class Repl$Type extends MessageType {
205
206
  { no: 17, name: "backer_job_metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
206
207
  { no: 18, name: "custom_skills_bucket", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
207
208
  { no: 19, name: "user_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
208
- { no: 20, name: "inject_chatgpt_link_override", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
209
+ { no: 20, name: "inject_chatgpt_link_override", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
210
+ { no: 21, name: "repl_created_at", kind: "message", T: () => Timestamp }
209
211
  ]);
210
212
  }
211
213
  create(value) {
@@ -292,6 +294,9 @@ class Repl$Type extends MessageType {
292
294
  case /* bool inject_chatgpt_link_override */ 20:
293
295
  message.injectChatgptLinkOverride = reader.bool();
294
296
  break;
297
+ case /* google.protobuf.Timestamp repl_created_at */ 21:
298
+ message.replCreatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replCreatedAt);
299
+ break;
295
300
  default:
296
301
  let u = options.readUnknownField;
297
302
  if (u === "throw")
@@ -377,6 +382,9 @@ class Repl$Type extends MessageType {
377
382
  /* bool inject_chatgpt_link_override = 20; */
378
383
  if (message.injectChatgptLinkOverride !== false)
379
384
  writer.tag(20, WireType.Varint).bool(message.injectChatgptLinkOverride);
385
+ /* google.protobuf.Timestamp repl_created_at = 21; */
386
+ if (message.replCreatedAt)
387
+ Timestamp.internalBinaryWrite(message.replCreatedAt, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
380
388
  let u = options.writeUnknownFields;
381
389
  if (u !== false)
382
390
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -139,6 +139,14 @@ export interface CertificateClaim {
139
139
  * @generated from protobuf field: replit.goval.api.FlagClaim flag = 3
140
140
  */
141
141
  flag: FlagClaim;
142
+ } | {
143
+ oneofKind: "replCreatedAt";
144
+ /**
145
+ * This cert has the authority to assert this Repl creation timestamp.
146
+ *
147
+ * @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 9
148
+ */
149
+ replCreatedAt: Timestamp;
142
150
  } | {
143
151
  oneofKind: undefined;
144
152
  };
@@ -371,6 +379,12 @@ export interface GovalReplIdentity {
371
379
  * @generated from protobuf field: replit.goval.api.repl.Org org = 14
372
380
  */
373
381
  org?: Org;
382
+ /**
383
+ * The creation time of the source Repl in Replit web.
384
+ *
385
+ * @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 15
386
+ */
387
+ replCreatedAt?: Timestamp;
374
388
  }
375
389
  /**
376
390
  * @generated from protobuf message replit.goval.api.ReplRuntimeInteractive
@@ -533,7 +547,13 @@ export declare enum FlagClaim {
533
547
  *
534
548
  * @generated from protobuf enum value: ANY_SUBCLUSTER = 9;
535
549
  */
536
- ANY_SUBCLUSTER = 9
550
+ ANY_SUBCLUSTER = 9,
551
+ /**
552
+ * Cert can authorize child certs for any Repl creation timestamp.
553
+ *
554
+ * @generated from protobuf enum value: ANY_REPL_CREATED_AT = 13;
555
+ */
556
+ ANY_REPL_CREATED_AT = 13
537
557
  }
538
558
  declare class GovalSigningAuthority$Type extends MessageType<GovalSigningAuthority> {
539
559
  constructor();
@@ -131,6 +131,12 @@ export var FlagClaim;
131
131
  * @generated from protobuf enum value: ANY_SUBCLUSTER = 9;
132
132
  */
133
133
  FlagClaim[FlagClaim["ANY_SUBCLUSTER"] = 9] = "ANY_SUBCLUSTER";
134
+ /**
135
+ * Cert can authorize child certs for any Repl creation timestamp.
136
+ *
137
+ * @generated from protobuf enum value: ANY_REPL_CREATED_AT = 13;
138
+ */
139
+ FlagClaim[FlagClaim["ANY_REPL_CREATED_AT"] = 13] = "ANY_REPL_CREATED_AT";
134
140
  })(FlagClaim || (FlagClaim = {}));
135
141
  // @generated message type with reflection information, may provide speed optimized methods
136
142
  class GovalSigningAuthority$Type extends MessageType {
@@ -219,7 +225,8 @@ class CertificateClaim$Type extends MessageType {
219
225
  { no: 4, name: "cluster", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
220
226
  { no: 5, name: "subcluster", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
221
227
  { no: 6, name: "deployment", kind: "scalar", oneof: "claim", T: 8 /*ScalarType.BOOL*/ },
222
- { no: 3, name: "flag", kind: "enum", oneof: "claim", T: () => ["replit.goval.api.FlagClaim", FlagClaim] }
228
+ { no: 3, name: "flag", kind: "enum", oneof: "claim", T: () => ["replit.goval.api.FlagClaim", FlagClaim] },
229
+ { no: 9, name: "repl_created_at", kind: "message", oneof: "claim", T: () => Timestamp }
223
230
  ]);
224
231
  }
225
232
  create(value) {
@@ -282,6 +289,12 @@ class CertificateClaim$Type extends MessageType {
282
289
  flag: reader.int32()
283
290
  };
284
291
  break;
292
+ case /* google.protobuf.Timestamp repl_created_at */ 9:
293
+ message.claim = {
294
+ oneofKind: "replCreatedAt",
295
+ replCreatedAt: Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.claim.replCreatedAt)
296
+ };
297
+ break;
285
298
  default:
286
299
  let u = options.readUnknownField;
287
300
  if (u === "throw")
@@ -318,6 +331,9 @@ class CertificateClaim$Type extends MessageType {
318
331
  /* replit.goval.api.repl.Org org = 8; */
319
332
  if (message.claim.oneofKind === "org")
320
333
  Org.internalBinaryWrite(message.claim.org, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
334
+ /* google.protobuf.Timestamp repl_created_at = 9; */
335
+ if (message.claim.oneofKind === "replCreatedAt")
336
+ Timestamp.internalBinaryWrite(message.claim.replCreatedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
321
337
  let u = options.writeUnknownFields;
322
338
  if (u !== false)
323
339
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -496,7 +512,8 @@ class GovalReplIdentity$Type extends MessageType {
496
512
  { no: 11, name: "interactive", kind: "message", oneof: "runtime", T: () => ReplRuntimeInteractive },
497
513
  { no: 13, name: "hosting", kind: "message", oneof: "runtime", T: () => ReplRuntimeHosting },
498
514
  { no: 12, name: "deployment", kind: "message", oneof: "runtime", T: () => ReplRuntimeDeployment },
499
- { no: 14, name: "org", kind: "message", T: () => Org }
515
+ { no: 14, name: "org", kind: "message", T: () => Org },
516
+ { no: 15, name: "repl_created_at", kind: "message", T: () => Timestamp }
500
517
  ]);
501
518
  }
502
519
  create(value) {
@@ -571,6 +588,9 @@ class GovalReplIdentity$Type extends MessageType {
571
588
  case /* replit.goval.api.repl.Org org */ 14:
572
589
  message.org = Org.internalBinaryRead(reader, reader.uint32(), options, message.org);
573
590
  break;
591
+ case /* google.protobuf.Timestamp repl_created_at */ 15:
592
+ message.replCreatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replCreatedAt);
593
+ break;
574
594
  default:
575
595
  let u = options.readUnknownField;
576
596
  if (u === "throw")
@@ -625,6 +645,9 @@ class GovalReplIdentity$Type extends MessageType {
625
645
  /* replit.goval.api.repl.Org org = 14; */
626
646
  if (message.org)
627
647
  Org.internalBinaryWrite(message.org, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
648
+ /* google.protobuf.Timestamp repl_created_at = 15; */
649
+ if (message.replCreatedAt)
650
+ Timestamp.internalBinaryWrite(message.replCreatedAt, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
628
651
  let u = options.writeUnknownFields;
629
652
  if (u !== false)
630
653
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -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
- * Protobuf library provides support to pack/unpack Any values in the form
16
- * of utility functions or additional generated methods of the Any type.
17
- *
18
- * Example 1: Pack and unpack a message in C++.
19
- *
20
- * Foo foo = ...;
21
- * Any any;
22
- * any.PackFrom(foo);
23
- * ...
24
- * if (any.UnpackTo(&foo)) {
25
- * ...
26
- * }
27
- *
28
- * Example 2: Pack and unpack a message in Java.
29
- *
30
- * Foo foo = ...;
31
- * Any any = Any.pack(foo);
32
- * ...
33
- * if (any.is(Foo.class)) {
34
- * foo = any.unpack(Foo.class);
35
- * }
36
- * // or ...
37
- * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
38
- * foo = any.unpack(Foo.getDefaultInstance());
39
- * }
40
- *
41
- * Example 3: Pack and unpack a message in Python.
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
- * A URL/resource name that uniquely identifies the type of the serialized
104
- * protocol buffer message. This string must contain at least
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
- * In practice, teams usually precompile into the binary all types that they
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
- * * If no scheme is provided, `https` is assumed.
116
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
117
- * value in binary format, or produce an error.
118
- * * Applications are allowed to cache lookup results based on the
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
- * Note: this functionality is not currently available in the official
125
- * protobuf release, and it is not used for type URLs beginning with
126
- * type.googleapis.com. As of May 2023, there are no widely used type server
127
- * implementations and no plans to implement one.
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
- * Schemes other than `http`, `https` (or the empty scheme) might be
130
- * used with implementation specific semantics.
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
- * Must be a valid serialized protocol buffer of the above specified type.
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
- * In order to reset a field's value to the default, the field must
124
- * be in the mask and set to the default value in the provided resource.
125
- * Hence, in order to reset all fields of a resource, provide a default
126
- * instance of the resource and set all fields in the mask, or do
127
- * not provide a mask as described below.
128
- *
129
- * If a field mask is not present on update, the operation applies to
130
- * all fields (as if a field mask of all fields has been specified).
131
- * Note that in the presence of schema evolution, this may mean that
132
- * fields the client does not know and has therefore not filled into
133
- * the request will be reset to their default. If this is unwanted
134
- * behavior, a specific service may require a client to always specify
135
- * a field mask, producing an error if not.
136
- *
137
- * As with get operations, the location of the resource which
138
- * describes the updated values in the request message depends on the
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
- * `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.
11
+ * Represents a JSON object.
17
12
  *
18
- * The JSON representation for `Struct` is JSON object.
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 indicates an error.
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 value.
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 double value.
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 value.
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 value.
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 structured value.
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 repeated `Value`.
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
- * `ListValue` is a wrapper around a repeated field of values.
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
- * `NullValue` is a singleton enumeration to represent the null value for the
117
- * `Value` type union.
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
- * The JSON representation for `NullValue` is JSON `null`.
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
- * `NullValue` is a singleton enumeration to represent the null value for the
9
- * `Value` type union.
8
+ * Represents a JSON `null`.
10
9
  *
11
- * The JSON representation for `NullValue` is JSON `null`.
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 proto3 JSON serializer should always use UTC (as indicated by
84
- * "Z") when printing the Timestamp type and a proto3 JSON parser should be
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
- * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
108
- * 9999-12-31T23:59:59Z inclusive.
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. 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
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