@fivenet-app/gen 2026.8.5 → 2026.10.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.
- package/LICENSE +201 -0
- package/clients.ts +12 -0
- package/codegen/perms/perms.ts +331 -2
- package/google/protobuf/any.ts +47 -103
- package/google/protobuf/descriptor.ts +39 -32
- package/google/protobuf/struct.ts +33 -22
- package/google/protobuf/timestamp.ts +9 -8
- package/package.json +2 -2
- package/perms.ts +41 -13
- package/resources/centrum/dispatches/dispatches.ts +206 -13
- package/resources/centrum/units/units.ts +207 -0
- package/resources/cron/cron.ts +44 -3
- package/resources/documents/templates/templates.ts +3 -3
- package/resources/file/file.ts +3 -3
- package/resources/file/filestore.ts +26 -10
- package/resources/jobs/colleagues/activity/activity.ts +50 -8
- package/resources/jobs/colleagues/colleagues.ts +14 -1
- package/resources/jobs/groups/short/group_member_short.ts +129 -0
- package/resources/jobs/job_asset.ts +116 -0
- package/resources/jobs/user_selector.ts +1 -15
- package/resources/notifications/clientview/clientview.ts +5 -1
- package/resources/notifications/events/events.ts +35 -1
- package/resources/notifications/notifications.ts +322 -2
- package/resources/permissions/attributes/attributes.ts +164 -2
- package/resources/permissions/authorization/authorization.ts +86 -0
- package/resources/permissions/permissions/permissions.ts +16 -1
- package/resources/properties/properties.ts +1648 -0
- package/resources/qualifications/activity/activity.ts +328 -0
- package/resources/qualifications/exam/exam.ts +108 -4
- package/resources/qualifications/qualifications.ts +36 -2
- package/resources/settings/config.ts +3 -3
- package/resources/sync/activity/activity.ts +4 -4
- package/resources/sync/data/data.ts +16 -4
- package/resources/users/activity/activity.ts +220 -3
- package/resources/users/props/props.ts +13 -1
- package/resources/users/user.ts +13 -1
- package/resources/vehicles/activity/activity.ts +222 -3
- package/resources/vehicles/props/props.ts +13 -1
- package/resources/vehicles/vehicles.ts +13 -1
- package/services/auth/auth.ts +61 -67
- package/services/centrum/centrum.ts +103 -1
- package/services/centrum/dispatches.ts +25 -1
- package/services/centrum/units.ts +25 -1
- package/services/citizens/citizens.client.ts +49 -0
- package/services/citizens/citizens.ts +384 -7
- package/services/documents/documents.ts +1 -0
- package/services/documents/templates.ts +12 -1
- package/services/jobs/colleagues.ts +26 -1
- package/services/jobs/conduct.ts +1 -0
- package/services/jobs/groups.ts +62 -4
- package/services/notifications/notifications.client.ts +40 -1
- package/services/notifications/notifications.ts +483 -3
- package/services/qualifications/qualifications.client.ts +20 -7
- package/services/qualifications/qualifications.ts +265 -4
- package/services/settings/job_assets.client.ts +105 -0
- package/services/settings/job_assets.ts +373 -0
- package/services/settings/properties.client.ts +194 -0
- package/services/settings/properties.ts +1555 -0
- package/services/settings/system.ts +29 -9
- package/services/sync/sync.ts +115 -12
- package/services/vehicles/vehicles.client.ts +52 -0
- package/services/vehicles/vehicles.ts +385 -7
- package/svcs.ts +58 -0
package/google/protobuf/any.ts
CHANGED
|
@@ -53,129 +53,73 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
53
53
|
* `Any` contains an arbitrary serialized protocol buffer message along with a
|
|
54
54
|
* URL that describes the type of the serialized message.
|
|
55
55
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
56
|
+
* In its binary encoding, an `Any` is an ordinary message; but in other wire
|
|
57
|
+
* forms like JSON, it has a special encoding. The format of the type URL is
|
|
58
|
+
* described on the `type_url` field.
|
|
58
59
|
*
|
|
59
|
-
*
|
|
60
|
+
* Protobuf APIs provide utilities to interact with `Any` values:
|
|
60
61
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
62
|
+
* - A 'pack' operation accepts a message and constructs a generic `Any` wrapper
|
|
63
|
+
* around it.
|
|
64
|
+
* - An 'unpack' operation reads the content of an `Any` message, either into an
|
|
65
|
+
* existing message or a new one. Unpack operations must check the type of the
|
|
66
|
+
* value they unpack against the declared `type_url`.
|
|
67
|
+
* - An 'is' operation decides whether an `Any` contains a message of the given
|
|
68
|
+
* type, i.e. whether it can 'unpack' that type.
|
|
68
69
|
*
|
|
69
|
-
*
|
|
70
|
+
* The JSON format representation of an `Any` follows one of these cases:
|
|
70
71
|
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
|
79
|
-
* foo = any.unpack(Foo.getDefaultInstance());
|
|
80
|
-
* }
|
|
81
|
-
*
|
|
82
|
-
* Example 3: Pack and unpack a message in Python.
|
|
83
|
-
*
|
|
84
|
-
* foo = Foo(...)
|
|
85
|
-
* any = Any()
|
|
86
|
-
* any.Pack(foo)
|
|
87
|
-
* ...
|
|
88
|
-
* if any.Is(Foo.DESCRIPTOR):
|
|
89
|
-
* any.Unpack(foo)
|
|
90
|
-
* ...
|
|
91
|
-
*
|
|
92
|
-
* Example 4: Pack and unpack a message in Go
|
|
93
|
-
*
|
|
94
|
-
* foo := &pb.Foo{...}
|
|
95
|
-
* any, err := anypb.New(foo)
|
|
96
|
-
* if err != nil {
|
|
97
|
-
* ...
|
|
98
|
-
* }
|
|
99
|
-
* ...
|
|
100
|
-
* foo := &pb.Foo{}
|
|
101
|
-
* if err := any.UnmarshalTo(foo); err != nil {
|
|
102
|
-
* ...
|
|
103
|
-
* }
|
|
104
|
-
*
|
|
105
|
-
* The pack methods provided by protobuf library will by default use
|
|
106
|
-
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
107
|
-
* methods only use the fully qualified type name after the last '/'
|
|
108
|
-
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
|
109
|
-
* name "y.z".
|
|
110
|
-
*
|
|
111
|
-
* JSON
|
|
112
|
-
* ====
|
|
113
|
-
* The JSON representation of an `Any` value uses the regular
|
|
114
|
-
* representation of the deserialized, embedded message, with an
|
|
115
|
-
* additional field `@type` which contains the type URL. Example:
|
|
116
|
-
*
|
|
117
|
-
* package google.profile;
|
|
118
|
-
* message Person {
|
|
119
|
-
* string first_name = 1;
|
|
120
|
-
* string last_name = 2;
|
|
121
|
-
* }
|
|
122
|
-
*
|
|
123
|
-
* {
|
|
124
|
-
* "@type": "type.googleapis.com/google.profile.Person",
|
|
125
|
-
* "firstName": <string>,
|
|
126
|
-
* "lastName": <string>
|
|
127
|
-
* }
|
|
128
|
-
*
|
|
129
|
-
* If the embedded message type is well-known and has a custom JSON
|
|
130
|
-
* representation, that representation will be embedded adding a field
|
|
131
|
-
* `value` which holds the custom JSON in addition to the `@type`
|
|
132
|
-
* field. Example (for message [google.protobuf.Duration][]):
|
|
133
|
-
*
|
|
134
|
-
* {
|
|
135
|
-
* "@type": "type.googleapis.com/google.protobuf.Duration",
|
|
136
|
-
* "value": "1.212s"
|
|
137
|
-
* }
|
|
72
|
+
* - For types without special-cased JSON encodings, the JSON format
|
|
73
|
+
* representation of the `Any` is the same as that of the message, with an
|
|
74
|
+
* additional `@type` field which contains the type URL.
|
|
75
|
+
* - For types with special-cased JSON encodings (typically called 'well-known'
|
|
76
|
+
* types, listed in https://protobuf.dev/programming-guides/json/#any), the
|
|
77
|
+
* JSON format representation has a key `@type` which contains the type URL
|
|
78
|
+
* and a key `value` which contains the JSON-serialized value.
|
|
138
79
|
*
|
|
80
|
+
* The text format representation of an `Any` is like a message with one field
|
|
81
|
+
* whose name is the type URL in brackets. For example, an `Any` containing a
|
|
82
|
+
* `foo.Bar` message may be written `[type.googleapis.com/foo.Bar] { a: 2 }`.
|
|
139
83
|
*
|
|
140
84
|
* @generated from protobuf message google.protobuf.Any
|
|
141
85
|
*/
|
|
142
86
|
export interface Any {
|
|
143
87
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
* one "/" character. The last segment of the URL's path must represent
|
|
147
|
-
* the fully qualified name of the type (as in
|
|
148
|
-
* `path/google.protobuf.Duration`). The name should be in a canonical form
|
|
149
|
-
* (e.g., leading "." is not accepted).
|
|
88
|
+
* Identifies the type of the serialized Protobuf message with a URI reference
|
|
89
|
+
* consisting of a prefix ending in a slash and the fully-qualified type name.
|
|
150
90
|
*
|
|
151
|
-
*
|
|
152
|
-
* expect it to use in the context of Any. However, for URLs which use the
|
|
153
|
-
* scheme `http`, `https`, or no scheme, one can optionally set up a type
|
|
154
|
-
* server that maps type URLs to message definitions as follows:
|
|
91
|
+
* Example: type.googleapis.com/google.protobuf.StringValue
|
|
155
92
|
*
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* URL, or have them precompiled into a binary to avoid any
|
|
161
|
-
* lookup. Therefore, binary compatibility needs to be preserved
|
|
162
|
-
* on changes to types. (Use versioned type names to manage
|
|
163
|
-
* breaking changes.)
|
|
93
|
+
* This string must contain at least one `/` character, and the content after
|
|
94
|
+
* the last `/` must be the fully-qualified name of the type in canonical
|
|
95
|
+
* form, without a leading dot. Do not write a scheme on these URI references
|
|
96
|
+
* so that clients do not attempt to contact them.
|
|
164
97
|
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* type.googleapis.com
|
|
168
|
-
* implementations
|
|
98
|
+
* The prefix is arbitrary and Protobuf implementations are expected to
|
|
99
|
+
* simply strip off everything up to and including the last `/` to identify
|
|
100
|
+
* the type. `type.googleapis.com/` is a common default prefix that some
|
|
101
|
+
* legacy implementations require. This prefix does not indicate the origin of
|
|
102
|
+
* the type, and URIs containing it are not expected to respond to any
|
|
103
|
+
* requests.
|
|
169
104
|
*
|
|
170
|
-
*
|
|
171
|
-
*
|
|
105
|
+
* All type URL strings must be legal URI references with the additional
|
|
106
|
+
* restriction (for the text format) that the content of the reference
|
|
107
|
+
* must consist only of alphanumeric characters, percent-encoded escapes, and
|
|
108
|
+
* characters in the following set (not including the outer backticks):
|
|
109
|
+
* `/-.~_!$&()*+,;=`. Despite our allowing percent encodings, implementations
|
|
110
|
+
* should not unescape them to prevent confusion with existing parsers. For
|
|
111
|
+
* example, `type.googleapis.com%2FFoo` should be rejected.
|
|
172
112
|
*
|
|
113
|
+
* In the original design of `Any`, the possibility of launching a type
|
|
114
|
+
* resolution service at these type URLs was considered but Protobuf never
|
|
115
|
+
* implemented one and considers contacting these URLs to be problematic and
|
|
116
|
+
* a potential security issue. Do not attempt to contact type URLs.
|
|
173
117
|
*
|
|
174
118
|
* @generated from protobuf field: string type_url = 1
|
|
175
119
|
*/
|
|
176
120
|
typeUrl: string;
|
|
177
121
|
/**
|
|
178
|
-
*
|
|
122
|
+
* Holds a Protobuf serialization of the type described by type_url.
|
|
179
123
|
*
|
|
180
124
|
* @generated from protobuf field: bytes value = 2
|
|
181
125
|
*/
|
|
@@ -4,34 +4,11 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
//
|
|
6
6
|
// Protocol Buffers - Google's data interchange format
|
|
7
|
-
// Copyright 2008 Google
|
|
8
|
-
// https://developers.google.com/protocol-buffers/
|
|
7
|
+
// Copyright 2008 Google LLC. All rights reserved.
|
|
9
8
|
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
14
|
-
// * Redistributions of source code must retain the above copyright
|
|
15
|
-
// notice, this list of conditions and the following disclaimer.
|
|
16
|
-
// * Redistributions in binary form must reproduce the above
|
|
17
|
-
// copyright notice, this list of conditions and the following disclaimer
|
|
18
|
-
// in the documentation and/or other materials provided with the
|
|
19
|
-
// distribution.
|
|
20
|
-
// * Neither the name of Google Inc. nor the names of its
|
|
21
|
-
// contributors may be used to endorse or promote products derived from
|
|
22
|
-
// this software without specific prior written permission.
|
|
23
|
-
//
|
|
24
|
-
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
25
|
-
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
26
|
-
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
27
|
-
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
28
|
-
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
29
|
-
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
30
|
-
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
31
|
-
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
32
|
-
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
33
|
-
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
34
|
-
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
9
|
+
// Use of this source code is governed by a BSD-style
|
|
10
|
+
// license that can be found in the LICENSE file or at
|
|
11
|
+
// https://developers.google.com/open-source/licenses/bsd
|
|
35
12
|
//
|
|
36
13
|
//
|
|
37
14
|
// Author: kenton@google.com (Kenton Varda)
|
|
@@ -1150,9 +1127,11 @@ export interface FieldOptions {
|
|
|
1150
1127
|
*/
|
|
1151
1128
|
deprecated?: boolean;
|
|
1152
1129
|
/**
|
|
1130
|
+
* DEPRECATED. DO NOT USE!
|
|
1153
1131
|
* For Google-internal migration only. Do not use.
|
|
1154
1132
|
*
|
|
1155
|
-
* @
|
|
1133
|
+
* @deprecated
|
|
1134
|
+
* @generated from protobuf field: optional bool weak = 10 [default = false, deprecated = true]
|
|
1156
1135
|
*/
|
|
1157
1136
|
weak?: boolean;
|
|
1158
1137
|
/**
|
|
@@ -1243,6 +1222,13 @@ export interface FieldOptions_FeatureSupport {
|
|
|
1243
1222
|
* @generated from protobuf field: optional google.protobuf.Edition edition_removed = 4
|
|
1244
1223
|
*/
|
|
1245
1224
|
editionRemoved?: Edition;
|
|
1225
|
+
/**
|
|
1226
|
+
* The removal error text if this feature is used after the edition it was
|
|
1227
|
+
* removed in.
|
|
1228
|
+
*
|
|
1229
|
+
* @generated from protobuf field: optional string removal_error = 5
|
|
1230
|
+
*/
|
|
1231
|
+
removalError?: string;
|
|
1246
1232
|
}
|
|
1247
1233
|
/**
|
|
1248
1234
|
* @generated from protobuf enum google.protobuf.FieldOptions.CType
|
|
@@ -1839,7 +1825,11 @@ export enum FeatureSet_EnforceNamingStyle {
|
|
|
1839
1825
|
/**
|
|
1840
1826
|
* @generated from protobuf enum value: STYLE_LEGACY = 2;
|
|
1841
1827
|
*/
|
|
1842
|
-
STYLE_LEGACY = 2
|
|
1828
|
+
STYLE_LEGACY = 2,
|
|
1829
|
+
/**
|
|
1830
|
+
* @generated from protobuf enum value: STYLE2026 = 3;
|
|
1831
|
+
*/
|
|
1832
|
+
STYLE2026 = 3
|
|
1843
1833
|
}
|
|
1844
1834
|
/**
|
|
1845
1835
|
* A compiled specification for the defaults of a set of features. These
|
|
@@ -2180,6 +2170,16 @@ export enum Edition {
|
|
|
2180
2170
|
* @generated from protobuf enum value: EDITION_2024 = 1001;
|
|
2181
2171
|
*/
|
|
2182
2172
|
EDITION_2024 = 1001,
|
|
2173
|
+
/**
|
|
2174
|
+
* @generated from protobuf enum value: EDITION_2026 = 1002;
|
|
2175
|
+
*/
|
|
2176
|
+
EDITION_2026 = 1002,
|
|
2177
|
+
/**
|
|
2178
|
+
* A placeholder edition for developing and testing unscheduled features.
|
|
2179
|
+
*
|
|
2180
|
+
* @generated from protobuf enum value: EDITION_UNSTABLE = 9999;
|
|
2181
|
+
*/
|
|
2182
|
+
EDITION_UNSTABLE = 9999,
|
|
2183
2183
|
/**
|
|
2184
2184
|
* Placeholder editions for testing feature resolution. These should not be
|
|
2185
2185
|
* used or relied on outside of tests.
|
|
@@ -3651,7 +3651,7 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
3651
3651
|
case /* optional bool deprecated = 3 [default = false] */ 3:
|
|
3652
3652
|
message.deprecated = reader.bool();
|
|
3653
3653
|
break;
|
|
3654
|
-
case /* optional bool weak = 10 [default = false] */ 10:
|
|
3654
|
+
case /* optional bool weak = 10 [default = false, deprecated = true] */ 10:
|
|
3655
3655
|
message.weak = reader.bool();
|
|
3656
3656
|
break;
|
|
3657
3657
|
case /* optional bool debug_redact = 16 [default = false] */ 16:
|
|
@@ -3706,7 +3706,7 @@ class FieldOptions$Type extends MessageType<FieldOptions> {
|
|
|
3706
3706
|
/* optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; */
|
|
3707
3707
|
if (message.jstype !== undefined)
|
|
3708
3708
|
writer.tag(6, WireType.Varint).int32(message.jstype);
|
|
3709
|
-
/* optional bool weak = 10 [default = false]; */
|
|
3709
|
+
/* optional bool weak = 10 [default = false, deprecated = true]; */
|
|
3710
3710
|
if (message.weak !== undefined)
|
|
3711
3711
|
writer.tag(10, WireType.Varint).bool(message.weak);
|
|
3712
3712
|
/* optional bool unverified_lazy = 15 [default = false]; */
|
|
@@ -3803,7 +3803,8 @@ class FieldOptions_FeatureSupport$Type extends MessageType<FieldOptions_FeatureS
|
|
|
3803
3803
|
{ no: 1, name: "edition_introduced", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
|
|
3804
3804
|
{ no: 2, name: "edition_deprecated", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
|
|
3805
3805
|
{ no: 3, name: "deprecation_warning", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
3806
|
-
{ no: 4, name: "edition_removed", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }
|
|
3806
|
+
{ no: 4, name: "edition_removed", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
|
|
3807
|
+
{ no: 5, name: "removal_error", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
|
|
3807
3808
|
]);
|
|
3808
3809
|
}
|
|
3809
3810
|
create(value?: PartialMessage<FieldOptions_FeatureSupport>): FieldOptions_FeatureSupport {
|
|
@@ -3829,6 +3830,9 @@ class FieldOptions_FeatureSupport$Type extends MessageType<FieldOptions_FeatureS
|
|
|
3829
3830
|
case /* optional google.protobuf.Edition edition_removed */ 4:
|
|
3830
3831
|
message.editionRemoved = reader.int32();
|
|
3831
3832
|
break;
|
|
3833
|
+
case /* optional string removal_error */ 5:
|
|
3834
|
+
message.removalError = reader.string();
|
|
3835
|
+
break;
|
|
3832
3836
|
default:
|
|
3833
3837
|
let u = options.readUnknownField;
|
|
3834
3838
|
if (u === "throw")
|
|
@@ -3853,6 +3857,9 @@ class FieldOptions_FeatureSupport$Type extends MessageType<FieldOptions_FeatureS
|
|
|
3853
3857
|
/* optional google.protobuf.Edition edition_removed = 4; */
|
|
3854
3858
|
if (message.editionRemoved !== undefined)
|
|
3855
3859
|
writer.tag(4, WireType.Varint).int32(message.editionRemoved);
|
|
3860
|
+
/* optional string removal_error = 5; */
|
|
3861
|
+
if (message.removalError !== undefined)
|
|
3862
|
+
writer.tag(5, WireType.LengthDelimited).string(message.removalError);
|
|
3856
3863
|
let u = options.writeUnknownFields;
|
|
3857
3864
|
if (u !== false)
|
|
3858
3865
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -49,14 +49,19 @@ import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
|
49
49
|
import type { JsonObject } from "@protobuf-ts/runtime";
|
|
50
50
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
53
|
-
* which map to dynamically typed values. In some languages, `Struct`
|
|
54
|
-
* might be supported by a native representation. For example, in
|
|
55
|
-
* scripting languages like JS a struct is represented as an
|
|
56
|
-
* object. The details of that representation are described together
|
|
57
|
-
* with the proto support for the language.
|
|
52
|
+
* Represents a JSON object.
|
|
58
53
|
*
|
|
59
|
-
*
|
|
54
|
+
* An unordered key-value map, intending to perfectly capture the semantics of a
|
|
55
|
+
* JSON object. This enables parsing any arbitrary JSON payload as a message
|
|
56
|
+
* field in ProtoJSON format.
|
|
57
|
+
*
|
|
58
|
+
* This follows RFC 8259 guidelines for interoperable JSON: notably this type
|
|
59
|
+
* cannot represent large Int64 values or `NaN`/`Infinity` numbers,
|
|
60
|
+
* since the JSON format generally does not support those values in its number
|
|
61
|
+
* type.
|
|
62
|
+
*
|
|
63
|
+
* If you do not intend to parse arbitrary JSON into your message, a custom
|
|
64
|
+
* typed message should be preferred instead of using this type.
|
|
60
65
|
*
|
|
61
66
|
* @generated from protobuf message google.protobuf.Struct
|
|
62
67
|
*/
|
|
@@ -71,12 +76,12 @@ export interface Struct {
|
|
|
71
76
|
};
|
|
72
77
|
}
|
|
73
78
|
/**
|
|
79
|
+
* Represents a JSON value.
|
|
80
|
+
*
|
|
74
81
|
* `Value` represents a dynamically typed value which can be either
|
|
75
82
|
* null, a number, a string, a boolean, a recursive struct value, or a
|
|
76
83
|
* list of values. A producer of value is expected to set one of these
|
|
77
|
-
* variants. Absence of any variant
|
|
78
|
-
*
|
|
79
|
-
* The JSON representation for `Value` is JSON value.
|
|
84
|
+
* variants. Absence of any variant is an invalid state.
|
|
80
85
|
*
|
|
81
86
|
* @generated from protobuf message google.protobuf.Value
|
|
82
87
|
*/
|
|
@@ -89,7 +94,7 @@ export interface Value {
|
|
|
89
94
|
kind: {
|
|
90
95
|
oneofKind: "nullValue";
|
|
91
96
|
/**
|
|
92
|
-
* Represents a null
|
|
97
|
+
* Represents a JSON `null`.
|
|
93
98
|
*
|
|
94
99
|
* @generated from protobuf field: google.protobuf.NullValue null_value = 1
|
|
95
100
|
*/
|
|
@@ -97,7 +102,10 @@ export interface Value {
|
|
|
97
102
|
} | {
|
|
98
103
|
oneofKind: "numberValue";
|
|
99
104
|
/**
|
|
100
|
-
* Represents a
|
|
105
|
+
* Represents a JSON number. Must not be `NaN`, `Infinity` or
|
|
106
|
+
* `-Infinity`, since those are not supported in JSON. This also cannot
|
|
107
|
+
* represent large Int64 values, since JSON format generally does not
|
|
108
|
+
* support them in its number type.
|
|
101
109
|
*
|
|
102
110
|
* @generated from protobuf field: double number_value = 2
|
|
103
111
|
*/
|
|
@@ -105,7 +113,7 @@ export interface Value {
|
|
|
105
113
|
} | {
|
|
106
114
|
oneofKind: "stringValue";
|
|
107
115
|
/**
|
|
108
|
-
* Represents a string
|
|
116
|
+
* Represents a JSON string.
|
|
109
117
|
*
|
|
110
118
|
* @generated from protobuf field: string string_value = 3
|
|
111
119
|
*/
|
|
@@ -113,7 +121,7 @@ export interface Value {
|
|
|
113
121
|
} | {
|
|
114
122
|
oneofKind: "boolValue";
|
|
115
123
|
/**
|
|
116
|
-
* Represents a boolean
|
|
124
|
+
* Represents a JSON boolean (`true` or `false` literal in JSON).
|
|
117
125
|
*
|
|
118
126
|
* @generated from protobuf field: bool bool_value = 4
|
|
119
127
|
*/
|
|
@@ -121,7 +129,7 @@ export interface Value {
|
|
|
121
129
|
} | {
|
|
122
130
|
oneofKind: "structValue";
|
|
123
131
|
/**
|
|
124
|
-
* Represents a
|
|
132
|
+
* Represents a JSON object.
|
|
125
133
|
*
|
|
126
134
|
* @generated from protobuf field: google.protobuf.Struct struct_value = 5
|
|
127
135
|
*/
|
|
@@ -129,7 +137,7 @@ export interface Value {
|
|
|
129
137
|
} | {
|
|
130
138
|
oneofKind: "listValue";
|
|
131
139
|
/**
|
|
132
|
-
* Represents a
|
|
140
|
+
* Represents a JSON array.
|
|
133
141
|
*
|
|
134
142
|
* @generated from protobuf field: google.protobuf.ListValue list_value = 6
|
|
135
143
|
*/
|
|
@@ -139,9 +147,7 @@ export interface Value {
|
|
|
139
147
|
};
|
|
140
148
|
}
|
|
141
149
|
/**
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* The JSON representation for `ListValue` is JSON array.
|
|
150
|
+
* Represents a JSON array.
|
|
145
151
|
*
|
|
146
152
|
* @generated from protobuf message google.protobuf.ListValue
|
|
147
153
|
*/
|
|
@@ -154,10 +160,15 @@ export interface ListValue {
|
|
|
154
160
|
values: Value[];
|
|
155
161
|
}
|
|
156
162
|
/**
|
|
157
|
-
*
|
|
158
|
-
*
|
|
163
|
+
* Represents a JSON `null`.
|
|
164
|
+
*
|
|
165
|
+
* `NullValue` is a sentinel, using an enum with only one value to represent
|
|
166
|
+
* the null value for the `Value` type union.
|
|
159
167
|
*
|
|
160
|
-
*
|
|
168
|
+
* A field of type `NullValue` with any value other than `0` is considered
|
|
169
|
+
* invalid. Most ProtoJSON serializers will emit a Value with a `null_value` set
|
|
170
|
+
* as a JSON `null` regardless of the integer value, and so will round trip to
|
|
171
|
+
* a `0` value.
|
|
161
172
|
*
|
|
162
173
|
* @generated from protobuf enum google.protobuf.NullValue
|
|
163
174
|
*/
|
|
@@ -120,8 +120,8 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
120
120
|
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
121
121
|
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
122
122
|
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
123
|
-
* is required. A
|
|
124
|
-
* "Z") when printing the Timestamp type and a
|
|
123
|
+
* is required. A ProtoJSON serializer should always use UTC (as indicated by
|
|
124
|
+
* "Z") when printing the Timestamp type and a ProtoJSON parser should be
|
|
125
125
|
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
126
126
|
*
|
|
127
127
|
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
@@ -143,17 +143,18 @@ import { MessageType } from "@protobuf-ts/runtime";
|
|
|
143
143
|
*/
|
|
144
144
|
export interface Timestamp {
|
|
145
145
|
/**
|
|
146
|
-
* Represents seconds of UTC time since Unix epoch
|
|
147
|
-
*
|
|
148
|
-
* 9999-12-31T23:59:59Z
|
|
146
|
+
* Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must
|
|
147
|
+
* be between -62135596800 and 253402300799 inclusive (which corresponds to
|
|
148
|
+
* 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z).
|
|
149
149
|
*
|
|
150
150
|
* @generated from protobuf field: int64 seconds = 1
|
|
151
151
|
*/
|
|
152
152
|
seconds: number;
|
|
153
153
|
/**
|
|
154
|
-
* Non-negative fractions of a second at nanosecond resolution.
|
|
155
|
-
*
|
|
156
|
-
*
|
|
154
|
+
* Non-negative fractions of a second at nanosecond resolution. This field is
|
|
155
|
+
* the nanosecond portion of the duration, not an alternative to seconds.
|
|
156
|
+
* Negative second values with fractions must still have non-negative nanos
|
|
157
|
+
* values that count forward in time. Must be between 0 and 999,999,999
|
|
157
158
|
* inclusive.
|
|
158
159
|
*
|
|
159
160
|
* @generated from protobuf field: int32 nanos = 2
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fivenet-app/gen",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2026.
|
|
4
|
+
"version": "2026.10.2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://fivenet.app",
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@protobuf-ts/plugin": "2.11.1",
|
|
14
|
-
"google-protobuf": "4.0.
|
|
14
|
+
"google-protobuf": "4.0.3"
|
|
15
15
|
}
|
|
16
16
|
}
|