@replit/protocol 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- * Represents a JSON object.
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
- * 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.
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 is an invalid state.
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 JSON `null`.
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 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.
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 JSON string.
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 JSON boolean (`true` or `false` literal in JSON).
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 JSON object.
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 JSON array.
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
- * Represents a JSON array.
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
- * 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.
116
+ * `NullValue` is a singleton enumeration to represent the null value for the
117
+ * `Value` type union.
126
118
  *
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` 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
- * Represents a JSON `null`.
8
+ * `NullValue` is a singleton enumeration to represent the null value for the
9
+ * `Value` type union.
9
10
  *
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` 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 ProtoJSON serializer should always use UTC (as indicated by
84
- * "Z") when printing the Timestamp type and a ProtoJSON parser should be
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 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).
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. 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
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