@rise-maritime/keelson-js 0.5.3 → 0.6.0-alpha.202.dev.1

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.
Files changed (121) hide show
  1. package/dist/index.d.ts +524 -1
  2. package/dist/index.js +114 -5
  3. package/dist/index.test.js +57 -0
  4. package/dist/interfaces/AlarmAck.d.ts +62 -0
  5. package/dist/interfaces/AlarmAck.js +218 -0
  6. package/dist/interfaces/Configurable.d.ts +24 -18
  7. package/dist/interfaces/Configurable.js +24 -22
  8. package/dist/interfaces/Coordinate.d.ts +38 -0
  9. package/dist/interfaces/Coordinate.js +82 -0
  10. package/dist/interfaces/ErrorResponse.d.ts +1 -1
  11. package/dist/interfaces/ErrorResponse.js +1 -1
  12. package/dist/interfaces/MavlinkCommand.d.ts +24 -18
  13. package/dist/interfaces/MavlinkCommand.js +24 -22
  14. package/dist/interfaces/Mission.d.ts +128 -0
  15. package/dist/interfaces/Mission.js +800 -0
  16. package/dist/interfaces/NetworkPingPong.d.ts +16 -16
  17. package/dist/interfaces/NetworkPingPong.js +16 -16
  18. package/dist/interfaces/ReplayControl.d.ts +72 -30
  19. package/dist/interfaces/ReplayControl.js +72 -58
  20. package/dist/interfaces/Route.d.ts +640 -0
  21. package/dist/interfaces/Route.js +4180 -0
  22. package/dist/interfaces/RoutePlanner.d.ts +152 -0
  23. package/dist/interfaces/RoutePlanner.js +268 -0
  24. package/dist/interfaces/ScenarioCheckpoint.d.ts +154 -0
  25. package/dist/interfaces/ScenarioCheckpoint.js +694 -0
  26. package/dist/interfaces/ScenarioControl.d.ts +144 -0
  27. package/dist/interfaces/ScenarioControl.js +552 -0
  28. package/dist/interfaces/Severity.d.ts +22 -0
  29. package/dist/interfaces/Severity.js +72 -0
  30. package/dist/interfaces/SimulationControl.d.ts +69 -0
  31. package/dist/interfaces/SimulationControl.js +153 -0
  32. package/dist/interfaces/Subscriber.d.ts +24 -18
  33. package/dist/interfaces/Subscriber.js +24 -22
  34. package/dist/interfaces/VehicleCommon.d.ts +1 -32
  35. package/dist/interfaces/VehicleCommon.js +2 -74
  36. package/dist/interfaces/VehicleControl.d.ts +34 -28
  37. package/dist/interfaces/VehicleControl.js +34 -22
  38. package/dist/interfaces/VehicleGeofence.d.ts +26 -19
  39. package/dist/interfaces/VehicleGeofence.js +40 -37
  40. package/dist/interfaces/VehicleLifecycle.d.ts +32 -20
  41. package/dist/interfaces/VehicleLifecycle.js +32 -28
  42. package/dist/interfaces/VehicleMission.d.ts +42 -97
  43. package/dist/interfaces/VehicleMission.js +41 -696
  44. package/dist/interfaces/VehicleNavigation.d.ts +30 -24
  45. package/dist/interfaces/VehicleNavigation.js +30 -22
  46. package/dist/interfaces/VehicleParam.d.ts +48 -24
  47. package/dist/interfaces/VehicleParam.js +48 -40
  48. package/dist/interfaces/VehicleSimulatorControl.d.ts +57 -0
  49. package/dist/interfaces/VehicleSimulatorControl.js +155 -0
  50. package/dist/interfaces/WHEPProxy.d.ts +16 -16
  51. package/dist/interfaces/WHEPProxy.js +16 -16
  52. package/dist/interfaces/foxglove/GeoJSON.d.ts +27 -0
  53. package/dist/interfaces/foxglove/GeoJSON.js +65 -0
  54. package/dist/interfaces/foxglove/LocationFix.d.ts +49 -0
  55. package/dist/interfaces/foxglove/LocationFix.js +246 -0
  56. package/dist/interfaces/google/protobuf/any.d.ts +144 -0
  57. package/dist/interfaces/google/protobuf/any.js +107 -0
  58. package/dist/interfaces/google/protobuf/duration.d.ts +99 -0
  59. package/dist/interfaces/google/protobuf/duration.js +92 -0
  60. package/dist/interfaces/serviceRegistry.d.ts +520 -0
  61. package/dist/interfaces/serviceRegistry.js +40 -0
  62. package/dist/interfaces.json +19 -0
  63. package/dist/payloads/Alarm.d.ts +7 -12
  64. package/dist/payloads/Alarm.js +4 -54
  65. package/dist/payloads/ChecklistEvent.d.ts +152 -0
  66. package/dist/payloads/ChecklistEvent.js +524 -0
  67. package/dist/payloads/ChecklistEvidence.d.ts +79 -0
  68. package/dist/payloads/ChecklistEvidence.js +287 -0
  69. package/dist/payloads/ChecklistPresence.d.ts +68 -0
  70. package/dist/payloads/ChecklistPresence.js +286 -0
  71. package/dist/payloads/ChecklistProcedure.d.ts +81 -0
  72. package/dist/payloads/ChecklistProcedure.js +364 -0
  73. package/dist/payloads/ChecklistState.d.ts +178 -0
  74. package/dist/payloads/ChecklistState.js +838 -0
  75. package/dist/payloads/CommandAuthority.d.ts +82 -0
  76. package/dist/payloads/CommandAuthority.js +364 -0
  77. package/dist/payloads/Coordinate.d.ts +39 -0
  78. package/dist/payloads/Coordinate.js +85 -0
  79. package/dist/payloads/EntityHealth.d.ts +9 -0
  80. package/dist/payloads/EntityHealth.js +14 -0
  81. package/dist/payloads/Mission.d.ts +137 -0
  82. package/dist/payloads/Mission.js +826 -0
  83. package/dist/payloads/OperationalAuthority.d.ts +172 -5
  84. package/dist/payloads/OperationalAuthority.js +525 -6
  85. package/dist/payloads/Route.d.ts +662 -0
  86. package/dist/payloads/Route.js +4289 -0
  87. package/dist/payloads/RouteChangeEvent.d.ts +42 -0
  88. package/dist/payloads/RouteChangeEvent.js +223 -0
  89. package/dist/payloads/RouteEditAuthority.d.ts +87 -0
  90. package/dist/payloads/RouteEditAuthority.js +380 -0
  91. package/dist/payloads/RouteExecution.d.ts +64 -0
  92. package/dist/payloads/RouteExecution.js +310 -0
  93. package/dist/payloads/ScenarioStatus.d.ts +160 -0
  94. package/dist/payloads/ScenarioStatus.js +654 -0
  95. package/dist/payloads/Severity.d.ts +13 -6
  96. package/dist/payloads/Severity.js +30 -18
  97. package/dist/payloads/SimulationStatus.d.ts +3 -4
  98. package/dist/payloads/SimulationStatus.js +12 -18
  99. package/dist/payloads/TestObjectStatus.d.ts +154 -0
  100. package/dist/payloads/TestObjectStatus.js +580 -0
  101. package/dist/payloads/VesselType.d.ts +2 -1
  102. package/dist/payloads/VesselType.js +1 -1
  103. package/dist/payloads/Voyage.d.ts +154 -0
  104. package/dist/payloads/Voyage.js +866 -0
  105. package/dist/payloads/WarrantRecord.d.ts +168 -0
  106. package/dist/payloads/WarrantRecord.js +781 -0
  107. package/dist/payloads/foxglove/CompressedPointCloud.d.ts +37 -0
  108. package/dist/payloads/foxglove/CompressedPointCloud.js +185 -0
  109. package/dist/payloads/google/protobuf/any.d.ts +145 -0
  110. package/dist/payloads/google/protobuf/any.js +110 -0
  111. package/dist/payloads/google/protobuf/empty.d.ts +34 -0
  112. package/dist/payloads/google/protobuf/empty.js +50 -0
  113. package/dist/payloads/index.foxglove.d.ts +1 -0
  114. package/dist/payloads/index.foxglove.js +1 -0
  115. package/dist/payloads/index.google.protobuf.d.ts +2 -0
  116. package/dist/payloads/index.google.protobuf.js +2 -0
  117. package/dist/payloads/index.keelson.d.ts +17 -1
  118. package/dist/payloads/index.keelson.js +17 -1
  119. package/dist/qos.json +95 -0
  120. package/dist/subjects.json +38 -1
  121. package/package.json +2 -1
@@ -0,0 +1,37 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { Pose } from "./Pose";
3
+ /** A compressed point cloud */
4
+ export interface CompressedPointCloud {
5
+ $type: "foxglove.CompressedPointCloud";
6
+ /** Timestamp of point cloud */
7
+ timestamp: Date | undefined;
8
+ /** Frame of reference */
9
+ frameId: string;
10
+ /** The origin of the point cloud relative to the frame of reference */
11
+ pose: Pose | undefined;
12
+ /** Compression format (currently only "draco" is natively supported) */
13
+ format: string;
14
+ /** Compressed point cloud data */
15
+ data: Uint8Array;
16
+ }
17
+ export declare const CompressedPointCloud: MessageFns<CompressedPointCloud, "foxglove.CompressedPointCloud">;
18
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
19
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
20
+ [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
21
+ } : Partial<T>;
22
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
23
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
24
+ [K in keyof P]: Exact<P[K], I[K]>;
25
+ } & {
26
+ [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never;
27
+ };
28
+ interface MessageFns<T, V extends string> {
29
+ readonly $type: V;
30
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
31
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
32
+ fromJSON(object: any): T;
33
+ toJSON(message: T): unknown;
34
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
35
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
36
+ }
37
+ export {};
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.6.1
5
+ // protoc v6.30.2
6
+ // source: foxglove/CompressedPointCloud.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.CompressedPointCloud = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const timestamp_1 = require("../google/protobuf/timestamp");
12
+ const typeRegistry_1 = require("../typeRegistry");
13
+ const Pose_1 = require("./Pose");
14
+ function createBaseCompressedPointCloud() {
15
+ return {
16
+ $type: "foxglove.CompressedPointCloud",
17
+ timestamp: undefined,
18
+ frameId: "",
19
+ pose: undefined,
20
+ format: "",
21
+ data: new Uint8Array(0),
22
+ };
23
+ }
24
+ exports.CompressedPointCloud = {
25
+ $type: "foxglove.CompressedPointCloud",
26
+ encode(message, writer = new wire_1.BinaryWriter()) {
27
+ if (message.timestamp !== undefined) {
28
+ timestamp_1.Timestamp.encode(toTimestamp(message.timestamp), writer.uint32(10).fork()).join();
29
+ }
30
+ if (message.frameId !== "") {
31
+ writer.uint32(18).string(message.frameId);
32
+ }
33
+ if (message.pose !== undefined) {
34
+ Pose_1.Pose.encode(message.pose, writer.uint32(26).fork()).join();
35
+ }
36
+ if (message.format !== "") {
37
+ writer.uint32(34).string(message.format);
38
+ }
39
+ if (message.data.length !== 0) {
40
+ writer.uint32(42).bytes(message.data);
41
+ }
42
+ return writer;
43
+ },
44
+ decode(input, length) {
45
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
46
+ let end = length === undefined ? reader.len : reader.pos + length;
47
+ const message = createBaseCompressedPointCloud();
48
+ while (reader.pos < end) {
49
+ const tag = reader.uint32();
50
+ switch (tag >>> 3) {
51
+ case 1: {
52
+ if (tag !== 10) {
53
+ break;
54
+ }
55
+ message.timestamp = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
56
+ continue;
57
+ }
58
+ case 2: {
59
+ if (tag !== 18) {
60
+ break;
61
+ }
62
+ message.frameId = reader.string();
63
+ continue;
64
+ }
65
+ case 3: {
66
+ if (tag !== 26) {
67
+ break;
68
+ }
69
+ message.pose = Pose_1.Pose.decode(reader, reader.uint32());
70
+ continue;
71
+ }
72
+ case 4: {
73
+ if (tag !== 34) {
74
+ break;
75
+ }
76
+ message.format = reader.string();
77
+ continue;
78
+ }
79
+ case 5: {
80
+ if (tag !== 42) {
81
+ break;
82
+ }
83
+ message.data = reader.bytes();
84
+ continue;
85
+ }
86
+ }
87
+ if ((tag & 7) === 4 || tag === 0) {
88
+ break;
89
+ }
90
+ reader.skip(tag & 7);
91
+ }
92
+ return message;
93
+ },
94
+ fromJSON(object) {
95
+ return {
96
+ $type: exports.CompressedPointCloud.$type,
97
+ timestamp: isSet(object.timestamp) ? fromJsonTimestamp(object.timestamp) : undefined,
98
+ frameId: isSet(object.frameId) ? globalThis.String(object.frameId) : "",
99
+ pose: isSet(object.pose) ? Pose_1.Pose.fromJSON(object.pose) : undefined,
100
+ format: isSet(object.format) ? globalThis.String(object.format) : "",
101
+ data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
102
+ };
103
+ },
104
+ toJSON(message) {
105
+ const obj = {};
106
+ if (message.timestamp !== undefined) {
107
+ obj.timestamp = message.timestamp.toISOString();
108
+ }
109
+ if (message.frameId !== "") {
110
+ obj.frameId = message.frameId;
111
+ }
112
+ if (message.pose !== undefined) {
113
+ obj.pose = Pose_1.Pose.toJSON(message.pose);
114
+ }
115
+ if (message.format !== "") {
116
+ obj.format = message.format;
117
+ }
118
+ if (message.data.length !== 0) {
119
+ obj.data = base64FromBytes(message.data);
120
+ }
121
+ return obj;
122
+ },
123
+ create(base) {
124
+ return exports.CompressedPointCloud.fromPartial(base ?? {});
125
+ },
126
+ fromPartial(object) {
127
+ const message = createBaseCompressedPointCloud();
128
+ message.timestamp = object.timestamp ?? undefined;
129
+ message.frameId = object.frameId ?? "";
130
+ message.pose = (object.pose !== undefined && object.pose !== null) ? Pose_1.Pose.fromPartial(object.pose) : undefined;
131
+ message.format = object.format ?? "";
132
+ message.data = object.data ?? new Uint8Array(0);
133
+ return message;
134
+ },
135
+ };
136
+ typeRegistry_1.messageTypeRegistry.set(exports.CompressedPointCloud.$type, exports.CompressedPointCloud);
137
+ function bytesFromBase64(b64) {
138
+ if (globalThis.Buffer) {
139
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
140
+ }
141
+ else {
142
+ const bin = globalThis.atob(b64);
143
+ const arr = new Uint8Array(bin.length);
144
+ for (let i = 0; i < bin.length; ++i) {
145
+ arr[i] = bin.charCodeAt(i);
146
+ }
147
+ return arr;
148
+ }
149
+ }
150
+ function base64FromBytes(arr) {
151
+ if (globalThis.Buffer) {
152
+ return globalThis.Buffer.from(arr).toString("base64");
153
+ }
154
+ else {
155
+ const bin = [];
156
+ arr.forEach((byte) => {
157
+ bin.push(globalThis.String.fromCharCode(byte));
158
+ });
159
+ return globalThis.btoa(bin.join(""));
160
+ }
161
+ }
162
+ function toTimestamp(date) {
163
+ const seconds = Math.trunc(date.getTime() / 1000);
164
+ const nanos = (date.getTime() % 1000) * 1000000;
165
+ return { $type: "google.protobuf.Timestamp", seconds, nanos };
166
+ }
167
+ function fromTimestamp(t) {
168
+ let millis = (t.seconds || 0) * 1000;
169
+ millis += (t.nanos || 0) / 1000000;
170
+ return new globalThis.Date(millis);
171
+ }
172
+ function fromJsonTimestamp(o) {
173
+ if (o instanceof globalThis.Date) {
174
+ return o;
175
+ }
176
+ else if (typeof o === "string") {
177
+ return new globalThis.Date(o);
178
+ }
179
+ else {
180
+ return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
181
+ }
182
+ }
183
+ function isSet(value) {
184
+ return value !== null && value !== undefined;
185
+ }
@@ -0,0 +1,145 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ /**
3
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
4
+ * URL that describes the type of the serialized message.
5
+ *
6
+ * Protobuf library provides support to pack/unpack Any values in the form
7
+ * of utility functions or additional generated methods of the Any type.
8
+ *
9
+ * Example 1: Pack and unpack a message in C++.
10
+ *
11
+ * Foo foo = ...;
12
+ * Any any;
13
+ * any.PackFrom(foo);
14
+ * ...
15
+ * if (any.UnpackTo(&foo)) {
16
+ * ...
17
+ * }
18
+ *
19
+ * Example 2: Pack and unpack a message in Java.
20
+ *
21
+ * Foo foo = ...;
22
+ * Any any = Any.pack(foo);
23
+ * ...
24
+ * if (any.is(Foo.class)) {
25
+ * foo = any.unpack(Foo.class);
26
+ * }
27
+ * // or ...
28
+ * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
29
+ * foo = any.unpack(Foo.getDefaultInstance());
30
+ * }
31
+ *
32
+ * Example 3: Pack and unpack a message in Python.
33
+ *
34
+ * foo = Foo(...)
35
+ * any = Any()
36
+ * any.Pack(foo)
37
+ * ...
38
+ * if any.Is(Foo.DESCRIPTOR):
39
+ * any.Unpack(foo)
40
+ * ...
41
+ *
42
+ * Example 4: Pack and unpack a message in Go
43
+ *
44
+ * foo := &pb.Foo{...}
45
+ * any, err := anypb.New(foo)
46
+ * if err != nil {
47
+ * ...
48
+ * }
49
+ * ...
50
+ * foo := &pb.Foo{}
51
+ * if err := any.UnmarshalTo(foo); err != nil {
52
+ * ...
53
+ * }
54
+ *
55
+ * The pack methods provided by protobuf library will by default use
56
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
57
+ * methods only use the fully qualified type name after the last '/'
58
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
59
+ * name "y.z".
60
+ *
61
+ * JSON
62
+ * ====
63
+ * The JSON representation of an `Any` value uses the regular
64
+ * representation of the deserialized, embedded message, with an
65
+ * additional field `@type` which contains the type URL. Example:
66
+ *
67
+ * package google.profile;
68
+ * message Person {
69
+ * string first_name = 1;
70
+ * string last_name = 2;
71
+ * }
72
+ *
73
+ * {
74
+ * "@type": "type.googleapis.com/google.profile.Person",
75
+ * "firstName": <string>,
76
+ * "lastName": <string>
77
+ * }
78
+ *
79
+ * If the embedded message type is well-known and has a custom JSON
80
+ * representation, that representation will be embedded adding a field
81
+ * `value` which holds the custom JSON in addition to the `@type`
82
+ * field. Example (for message [google.protobuf.Duration][]):
83
+ *
84
+ * {
85
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
86
+ * "value": "1.212s"
87
+ * }
88
+ */
89
+ export interface Any {
90
+ $type: "google.protobuf.Any";
91
+ /**
92
+ * A URL/resource name that uniquely identifies the type of the serialized
93
+ * protocol buffer message. This string must contain at least
94
+ * one "/" character. The last segment of the URL's path must represent
95
+ * the fully qualified name of the type (as in
96
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
97
+ * (e.g., leading "." is not accepted).
98
+ *
99
+ * In practice, teams usually precompile into the binary all types that they
100
+ * expect it to use in the context of Any. However, for URLs which use the
101
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
102
+ * server that maps type URLs to message definitions as follows:
103
+ *
104
+ * * If no scheme is provided, `https` is assumed.
105
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
106
+ * value in binary format, or produce an error.
107
+ * * Applications are allowed to cache lookup results based on the
108
+ * URL, or have them precompiled into a binary to avoid any
109
+ * lookup. Therefore, binary compatibility needs to be preserved
110
+ * on changes to types. (Use versioned type names to manage
111
+ * breaking changes.)
112
+ *
113
+ * Note: this functionality is not currently available in the official
114
+ * protobuf release, and it is not used for type URLs beginning with
115
+ * type.googleapis.com. As of May 2023, there are no widely used type server
116
+ * implementations and no plans to implement one.
117
+ *
118
+ * Schemes other than `http`, `https` (or the empty scheme) might be
119
+ * used with implementation specific semantics.
120
+ */
121
+ typeUrl: string;
122
+ /** Must be a valid serialized protocol buffer of the above specified type. */
123
+ value: Uint8Array;
124
+ }
125
+ export declare const Any: MessageFns<Any, "google.protobuf.Any">;
126
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
127
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
128
+ [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
129
+ } : Partial<T>;
130
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
131
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
132
+ [K in keyof P]: Exact<P[K], I[K]>;
133
+ } & {
134
+ [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never;
135
+ };
136
+ interface MessageFns<T, V extends string> {
137
+ readonly $type: V;
138
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
139
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
140
+ fromJSON(object: any): T;
141
+ toJSON(message: T): unknown;
142
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
143
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
144
+ }
145
+ export {};
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.6.1
5
+ // protoc v6.30.2
6
+ // source: google/protobuf/any.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Any = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const typeRegistry_1 = require("../../typeRegistry");
12
+ function createBaseAny() {
13
+ return { $type: "google.protobuf.Any", typeUrl: "", value: new Uint8Array(0) };
14
+ }
15
+ exports.Any = {
16
+ $type: "google.protobuf.Any",
17
+ encode(message, writer = new wire_1.BinaryWriter()) {
18
+ if (message.typeUrl !== "") {
19
+ writer.uint32(10).string(message.typeUrl);
20
+ }
21
+ if (message.value.length !== 0) {
22
+ writer.uint32(18).bytes(message.value);
23
+ }
24
+ return writer;
25
+ },
26
+ decode(input, length) {
27
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
28
+ let end = length === undefined ? reader.len : reader.pos + length;
29
+ const message = createBaseAny();
30
+ while (reader.pos < end) {
31
+ const tag = reader.uint32();
32
+ switch (tag >>> 3) {
33
+ case 1: {
34
+ if (tag !== 10) {
35
+ break;
36
+ }
37
+ message.typeUrl = reader.string();
38
+ continue;
39
+ }
40
+ case 2: {
41
+ if (tag !== 18) {
42
+ break;
43
+ }
44
+ message.value = reader.bytes();
45
+ continue;
46
+ }
47
+ }
48
+ if ((tag & 7) === 4 || tag === 0) {
49
+ break;
50
+ }
51
+ reader.skip(tag & 7);
52
+ }
53
+ return message;
54
+ },
55
+ fromJSON(object) {
56
+ return {
57
+ $type: exports.Any.$type,
58
+ typeUrl: isSet(object.typeUrl) ? globalThis.String(object.typeUrl) : "",
59
+ value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
60
+ };
61
+ },
62
+ toJSON(message) {
63
+ const obj = {};
64
+ if (message.typeUrl !== "") {
65
+ obj.typeUrl = message.typeUrl;
66
+ }
67
+ if (message.value.length !== 0) {
68
+ obj.value = base64FromBytes(message.value);
69
+ }
70
+ return obj;
71
+ },
72
+ create(base) {
73
+ return exports.Any.fromPartial(base ?? {});
74
+ },
75
+ fromPartial(object) {
76
+ const message = createBaseAny();
77
+ message.typeUrl = object.typeUrl ?? "";
78
+ message.value = object.value ?? new Uint8Array(0);
79
+ return message;
80
+ },
81
+ };
82
+ typeRegistry_1.messageTypeRegistry.set(exports.Any.$type, exports.Any);
83
+ function bytesFromBase64(b64) {
84
+ if (globalThis.Buffer) {
85
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
86
+ }
87
+ else {
88
+ const bin = globalThis.atob(b64);
89
+ const arr = new Uint8Array(bin.length);
90
+ for (let i = 0; i < bin.length; ++i) {
91
+ arr[i] = bin.charCodeAt(i);
92
+ }
93
+ return arr;
94
+ }
95
+ }
96
+ function base64FromBytes(arr) {
97
+ if (globalThis.Buffer) {
98
+ return globalThis.Buffer.from(arr).toString("base64");
99
+ }
100
+ else {
101
+ const bin = [];
102
+ arr.forEach((byte) => {
103
+ bin.push(globalThis.String.fromCharCode(byte));
104
+ });
105
+ return globalThis.btoa(bin.join(""));
106
+ }
107
+ }
108
+ function isSet(value) {
109
+ return value !== null && value !== undefined;
110
+ }
@@ -0,0 +1,34 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ /**
3
+ * A generic empty message that you can re-use to avoid defining duplicated
4
+ * empty messages in your APIs. A typical example is to use it as the request
5
+ * or the response type of an API method. For instance:
6
+ *
7
+ * service Foo {
8
+ * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
9
+ * }
10
+ */
11
+ export interface Empty {
12
+ $type: "google.protobuf.Empty";
13
+ }
14
+ export declare const Empty: MessageFns<Empty, "google.protobuf.Empty">;
15
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
16
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
17
+ [K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
18
+ } : Partial<T>;
19
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
20
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
21
+ [K in keyof P]: Exact<P[K], I[K]>;
22
+ } & {
23
+ [K in Exclude<keyof I, KeysOfUnion<P> | "$type">]: never;
24
+ };
25
+ interface MessageFns<T, V extends string> {
26
+ readonly $type: V;
27
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
28
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
29
+ fromJSON(object: any): T;
30
+ toJSON(message: T): unknown;
31
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
32
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
33
+ }
34
+ export {};
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.6.1
5
+ // protoc v6.30.2
6
+ // source: google/protobuf/empty.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Empty = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ const typeRegistry_1 = require("../../typeRegistry");
12
+ function createBaseEmpty() {
13
+ return { $type: "google.protobuf.Empty" };
14
+ }
15
+ exports.Empty = {
16
+ $type: "google.protobuf.Empty",
17
+ encode(_, writer = new wire_1.BinaryWriter()) {
18
+ return writer;
19
+ },
20
+ decode(input, length) {
21
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
22
+ let end = length === undefined ? reader.len : reader.pos + length;
23
+ const message = createBaseEmpty();
24
+ while (reader.pos < end) {
25
+ const tag = reader.uint32();
26
+ switch (tag >>> 3) {
27
+ }
28
+ if ((tag & 7) === 4 || tag === 0) {
29
+ break;
30
+ }
31
+ reader.skip(tag & 7);
32
+ }
33
+ return message;
34
+ },
35
+ fromJSON(_) {
36
+ return { $type: exports.Empty.$type };
37
+ },
38
+ toJSON(_) {
39
+ const obj = {};
40
+ return obj;
41
+ },
42
+ create(base) {
43
+ return exports.Empty.fromPartial(base ?? {});
44
+ },
45
+ fromPartial(_) {
46
+ const message = createBaseEmpty();
47
+ return message;
48
+ },
49
+ };
50
+ typeRegistry_1.messageTypeRegistry.set(exports.Empty.$type, exports.Empty);
@@ -12,6 +12,7 @@ export * from "./foxglove/ArrowPrimitive";
12
12
  export * from "./foxglove/CameraCalibration";
13
13
  export * from "./foxglove/Point2";
14
14
  export * from "./foxglove/CircleAnnotation";
15
+ export * from "./foxglove/CompressedPointCloud";
15
16
  export * from "./foxglove/CubePrimitive";
16
17
  export * from "./foxglove/CylinderPrimitive";
17
18
  export * from "./foxglove/FrameTransform";
@@ -33,6 +33,7 @@ __exportStar(require("./foxglove/ArrowPrimitive"), exports);
33
33
  __exportStar(require("./foxglove/CameraCalibration"), exports);
34
34
  __exportStar(require("./foxglove/Point2"), exports);
35
35
  __exportStar(require("./foxglove/CircleAnnotation"), exports);
36
+ __exportStar(require("./foxglove/CompressedPointCloud"), exports);
36
37
  __exportStar(require("./foxglove/CubePrimitive"), exports);
37
38
  __exportStar(require("./foxglove/CylinderPrimitive"), exports);
38
39
  __exportStar(require("./foxglove/FrameTransform"), exports);
@@ -1,2 +1,4 @@
1
1
  export * from "./google/protobuf/timestamp";
2
+ export * from "./google/protobuf/empty";
2
3
  export * from "./google/protobuf/duration";
4
+ export * from "./google/protobuf/any";
@@ -20,4 +20,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  /* eslint-disable */
22
22
  __exportStar(require("./google/protobuf/timestamp"), exports);
23
+ __exportStar(require("./google/protobuf/empty"), exports);
23
24
  __exportStar(require("./google/protobuf/duration"), exports);
25
+ __exportStar(require("./google/protobuf/any"), exports);
@@ -1,21 +1,37 @@
1
1
  export * from "./Audio";
2
+ export * from "./Severity";
2
3
  export * from "./Alarm";
4
+ export * from "./ChecklistEvidence";
5
+ export * from "./ChecklistEvent";
6
+ export * from "./ChecklistPresence";
7
+ export * from "./ChecklistProcedure";
8
+ export * from "./ChecklistState";
9
+ export * from "./CommandAuthority";
10
+ export * from "./Coordinate";
3
11
  export * from "./Decomposed3DVector";
4
12
  export * from "./EntityHealth";
5
13
  export * from "./FlagCode";
6
14
  export * from "./Geojson";
7
15
  export * from "./LocationFixQuality";
16
+ export * from "./Mission";
8
17
  export * from "./NetworkStatus";
9
18
  export * from "./OperationalAuthority";
10
19
  export * from "./Primitives";
11
20
  export * from "./ROCStatus";
12
21
  export * from "./RadarReading";
13
22
  export * from "./ReplayStatus";
23
+ export * from "./Route";
24
+ export * from "./RouteChangeEvent";
25
+ export * from "./RouteEditAuthority";
26
+ export * from "./RouteExecution";
27
+ export * from "./ScenarioStatus";
14
28
  export * from "./SensorStatus";
15
- export * from "./Severity";
16
29
  export * from "./SimulationStatus";
17
30
  export * from "./TargetType";
31
+ export * from "./TestObjectStatus";
18
32
  export * from "./VehicleState";
19
33
  export * from "./VesselNavStatus";
20
34
  export * from "./VesselType";
35
+ export * from "./Voyage";
36
+ export * from "./WarrantRecord";
21
37
  export * from "./Weather";
@@ -20,23 +20,39 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  /* eslint-disable */
22
22
  __exportStar(require("./Audio"), exports);
23
+ __exportStar(require("./Severity"), exports);
23
24
  __exportStar(require("./Alarm"), exports);
25
+ __exportStar(require("./ChecklistEvidence"), exports);
26
+ __exportStar(require("./ChecklistEvent"), exports);
27
+ __exportStar(require("./ChecklistPresence"), exports);
28
+ __exportStar(require("./ChecklistProcedure"), exports);
29
+ __exportStar(require("./ChecklistState"), exports);
30
+ __exportStar(require("./CommandAuthority"), exports);
31
+ __exportStar(require("./Coordinate"), exports);
24
32
  __exportStar(require("./Decomposed3DVector"), exports);
25
33
  __exportStar(require("./EntityHealth"), exports);
26
34
  __exportStar(require("./FlagCode"), exports);
27
35
  __exportStar(require("./Geojson"), exports);
28
36
  __exportStar(require("./LocationFixQuality"), exports);
37
+ __exportStar(require("./Mission"), exports);
29
38
  __exportStar(require("./NetworkStatus"), exports);
30
39
  __exportStar(require("./OperationalAuthority"), exports);
31
40
  __exportStar(require("./Primitives"), exports);
32
41
  __exportStar(require("./ROCStatus"), exports);
33
42
  __exportStar(require("./RadarReading"), exports);
34
43
  __exportStar(require("./ReplayStatus"), exports);
44
+ __exportStar(require("./Route"), exports);
45
+ __exportStar(require("./RouteChangeEvent"), exports);
46
+ __exportStar(require("./RouteEditAuthority"), exports);
47
+ __exportStar(require("./RouteExecution"), exports);
48
+ __exportStar(require("./ScenarioStatus"), exports);
35
49
  __exportStar(require("./SensorStatus"), exports);
36
- __exportStar(require("./Severity"), exports);
37
50
  __exportStar(require("./SimulationStatus"), exports);
38
51
  __exportStar(require("./TargetType"), exports);
52
+ __exportStar(require("./TestObjectStatus"), exports);
39
53
  __exportStar(require("./VehicleState"), exports);
40
54
  __exportStar(require("./VesselNavStatus"), exports);
41
55
  __exportStar(require("./VesselType"), exports);
56
+ __exportStar(require("./Voyage"), exports);
57
+ __exportStar(require("./WarrantRecord"), exports);
42
58
  __exportStar(require("./Weather"), exports);