@myrobotaxi/contracts 0.1.0

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.
@@ -0,0 +1,615 @@
1
+ export { AuthOkPayload, AuthPayload, ConnectivityPayload, DriveEndedPayload, DriveStartedPayload, ErrorPayload, HeartbeatPayload, MessageType, PingPayload, PongPayload, SubscribePayload, UnsubscribePayload, VehicleState, VehicleUpdatePayload, WebSocketEnvelope, WebSocketMessages } from './types.cjs';
2
+
3
+ declare const schemas: {
4
+ readonly vehicleState: {
5
+ $schema: string;
6
+ $id: string;
7
+ title: string;
8
+ description: string;
9
+ type: string;
10
+ required: string[];
11
+ properties: {
12
+ vehicleId: {
13
+ type: string;
14
+ description: string;
15
+ "x-classification": string;
16
+ examples: string[];
17
+ };
18
+ name: {
19
+ type: string;
20
+ description: string;
21
+ "x-classification": string;
22
+ examples: string[];
23
+ };
24
+ model: {
25
+ type: string;
26
+ description: string;
27
+ "x-classification": string;
28
+ examples: string[];
29
+ };
30
+ year: {
31
+ type: string;
32
+ description: string;
33
+ "x-classification": string;
34
+ examples: number[];
35
+ };
36
+ color: {
37
+ type: string;
38
+ description: string;
39
+ "x-classification": string;
40
+ examples: string[];
41
+ };
42
+ status: {
43
+ type: string;
44
+ enum: string[];
45
+ description: string;
46
+ "x-classification": string;
47
+ "x-atomic-group": string;
48
+ };
49
+ speed: {
50
+ type: string;
51
+ description: string;
52
+ "x-unit": string;
53
+ "x-classification": string;
54
+ minimum: number;
55
+ };
56
+ heading: {
57
+ type: string;
58
+ description: string;
59
+ "x-unit": string;
60
+ "x-classification": string;
61
+ minimum: number;
62
+ maximum: number;
63
+ "x-atomic-group": string;
64
+ };
65
+ latitude: {
66
+ type: string;
67
+ description: string;
68
+ "x-unit": string;
69
+ "x-classification": string;
70
+ "x-encrypted": boolean;
71
+ minimum: number;
72
+ maximum: number;
73
+ "x-atomic-group": string;
74
+ };
75
+ longitude: {
76
+ type: string;
77
+ description: string;
78
+ "x-unit": string;
79
+ "x-classification": string;
80
+ "x-encrypted": boolean;
81
+ minimum: number;
82
+ maximum: number;
83
+ "x-atomic-group": string;
84
+ };
85
+ locationName: {
86
+ type: string;
87
+ description: string;
88
+ "x-classification": string;
89
+ };
90
+ locationAddress: {
91
+ type: string;
92
+ description: string;
93
+ "x-classification": string;
94
+ };
95
+ gearPosition: {
96
+ type: string[];
97
+ enum: (string | null)[];
98
+ description: string;
99
+ "x-classification": string;
100
+ "x-atomic-group": string;
101
+ };
102
+ chargeLevel: {
103
+ type: string;
104
+ description: string;
105
+ "x-unit": string;
106
+ "x-classification": string;
107
+ minimum: number;
108
+ maximum: number;
109
+ "x-atomic-group": string;
110
+ };
111
+ chargeState: {
112
+ type: string[];
113
+ description: string;
114
+ enum: (string | null)[];
115
+ "x-classification": string;
116
+ "x-atomic-group": string;
117
+ "x-tesla-proto-field": number;
118
+ };
119
+ estimatedRange: {
120
+ type: string;
121
+ description: string;
122
+ "x-unit": string;
123
+ "x-classification": string;
124
+ minimum: number;
125
+ "x-atomic-group": string;
126
+ };
127
+ timeToFull: {
128
+ type: string[];
129
+ description: string;
130
+ "x-unit": string;
131
+ "x-classification": string;
132
+ minimum: number;
133
+ "x-atomic-group": string;
134
+ "x-tesla-proto-field": number;
135
+ };
136
+ interiorTemp: {
137
+ type: string;
138
+ description: string;
139
+ "x-unit": string;
140
+ "x-classification": string;
141
+ };
142
+ exteriorTemp: {
143
+ type: string;
144
+ description: string;
145
+ "x-unit": string;
146
+ "x-classification": string;
147
+ };
148
+ odometerMiles: {
149
+ type: string;
150
+ description: string;
151
+ "x-unit": string;
152
+ "x-classification": string;
153
+ minimum: number;
154
+ };
155
+ fsdMilesSinceReset: {
156
+ type: string;
157
+ description: string;
158
+ "x-unit": string;
159
+ "x-classification": string;
160
+ minimum: number;
161
+ };
162
+ destinationName: {
163
+ type: string[];
164
+ description: string;
165
+ "x-classification": string;
166
+ "x-atomic-group": string;
167
+ examples: string[];
168
+ };
169
+ destinationAddress: {
170
+ type: string[];
171
+ description: string;
172
+ "x-classification": string;
173
+ "x-atomic-group": string;
174
+ };
175
+ destinationLatitude: {
176
+ type: string[];
177
+ description: string;
178
+ "x-unit": string;
179
+ "x-classification": string;
180
+ "x-encrypted": boolean;
181
+ minimum: number;
182
+ maximum: number;
183
+ "x-atomic-group": string;
184
+ };
185
+ destinationLongitude: {
186
+ type: string[];
187
+ description: string;
188
+ "x-unit": string;
189
+ "x-classification": string;
190
+ "x-encrypted": boolean;
191
+ minimum: number;
192
+ maximum: number;
193
+ "x-atomic-group": string;
194
+ };
195
+ originLatitude: {
196
+ type: string[];
197
+ description: string;
198
+ "x-unit": string;
199
+ "x-classification": string;
200
+ "x-encrypted": boolean;
201
+ minimum: number;
202
+ maximum: number;
203
+ "x-atomic-group": string;
204
+ };
205
+ originLongitude: {
206
+ type: string[];
207
+ description: string;
208
+ "x-unit": string;
209
+ "x-classification": string;
210
+ "x-encrypted": boolean;
211
+ minimum: number;
212
+ maximum: number;
213
+ "x-atomic-group": string;
214
+ };
215
+ etaMinutes: {
216
+ type: string[];
217
+ description: string;
218
+ "x-unit": string;
219
+ "x-classification": string;
220
+ minimum: number;
221
+ "x-atomic-group": string;
222
+ };
223
+ tripDistanceRemaining: {
224
+ type: string[];
225
+ description: string;
226
+ "x-unit": string;
227
+ "x-classification": string;
228
+ minimum: number;
229
+ "x-atomic-group": string;
230
+ };
231
+ navRouteCoordinates: {
232
+ type: string[];
233
+ description: string;
234
+ "x-classification": string;
235
+ "x-encrypted": boolean;
236
+ "x-atomic-group": string;
237
+ items: {
238
+ type: string;
239
+ items: {
240
+ type: string;
241
+ };
242
+ minItems: number;
243
+ maxItems: number;
244
+ description: string;
245
+ };
246
+ };
247
+ lastUpdated: {
248
+ type: string;
249
+ format: string;
250
+ description: string;
251
+ "x-classification": string;
252
+ };
253
+ };
254
+ "x-atomic-groups": {
255
+ navigation: {
256
+ description: string;
257
+ fields: string[];
258
+ "consistency-predicates": string[];
259
+ nullability: string;
260
+ };
261
+ charge: {
262
+ description: string;
263
+ fields: string[];
264
+ "consistency-predicates": string[];
265
+ nullability: string;
266
+ };
267
+ gps: {
268
+ description: string;
269
+ fields: string[];
270
+ "consistency-predicates": string[];
271
+ nullability: string;
272
+ };
273
+ gear: {
274
+ description: string;
275
+ fields: string[];
276
+ "consistency-predicates": string[];
277
+ nullability: string;
278
+ };
279
+ };
280
+ dependentRequired: {
281
+ destinationLatitude: string[];
282
+ destinationLongitude: string[];
283
+ originLatitude: string[];
284
+ originLongitude: string[];
285
+ };
286
+ };
287
+ readonly wsMessages: {
288
+ $schema: string;
289
+ $id: string;
290
+ title: string;
291
+ description: string;
292
+ $defs: {
293
+ AuthPayload: {
294
+ type: string;
295
+ description: string;
296
+ required: string[];
297
+ additionalProperties: boolean;
298
+ properties: {
299
+ token: {
300
+ type: string;
301
+ minLength: number;
302
+ description: string;
303
+ "x-classification": string;
304
+ };
305
+ };
306
+ };
307
+ AuthOkPayload: {
308
+ type: string;
309
+ description: string;
310
+ required: string[];
311
+ additionalProperties: boolean;
312
+ properties: {
313
+ userId: {
314
+ type: string;
315
+ description: string;
316
+ "x-classification": string;
317
+ };
318
+ vehicleCount: {
319
+ type: string;
320
+ minimum: number;
321
+ description: string;
322
+ "x-classification": string;
323
+ };
324
+ issuedAt: {
325
+ type: string;
326
+ format: string;
327
+ description: string;
328
+ "x-classification": string;
329
+ };
330
+ };
331
+ };
332
+ VehicleUpdatePayload: {
333
+ type: string;
334
+ description: string;
335
+ required: string[];
336
+ additionalProperties: boolean;
337
+ properties: {
338
+ vehicleId: {
339
+ type: string;
340
+ description: string;
341
+ "x-classification": string;
342
+ };
343
+ fields: {
344
+ type: string;
345
+ description: string;
346
+ additionalProperties: boolean;
347
+ "x-classification": string;
348
+ };
349
+ timestamp: {
350
+ type: string;
351
+ format: string;
352
+ description: string;
353
+ "x-classification": string;
354
+ };
355
+ };
356
+ };
357
+ DriveStartedPayload: {
358
+ type: string;
359
+ description: string;
360
+ required: string[];
361
+ additionalProperties: boolean;
362
+ properties: {
363
+ vehicleId: {
364
+ type: string;
365
+ description: string;
366
+ "x-classification": string;
367
+ };
368
+ driveId: {
369
+ type: string;
370
+ description: string;
371
+ "x-classification": string;
372
+ };
373
+ startLocation: {
374
+ type: string;
375
+ description: string;
376
+ required: string[];
377
+ additionalProperties: boolean;
378
+ properties: {
379
+ latitude: {
380
+ type: string;
381
+ minimum: number;
382
+ maximum: number;
383
+ "x-classification": string;
384
+ "x-encrypted-at-rest": boolean;
385
+ };
386
+ longitude: {
387
+ type: string;
388
+ minimum: number;
389
+ maximum: number;
390
+ "x-classification": string;
391
+ "x-encrypted-at-rest": boolean;
392
+ };
393
+ };
394
+ };
395
+ startedAt: {
396
+ type: string;
397
+ format: string;
398
+ description: string;
399
+ "x-classification": string;
400
+ };
401
+ timestamp: {
402
+ type: string;
403
+ format: string;
404
+ description: string;
405
+ "x-classification": string;
406
+ };
407
+ };
408
+ };
409
+ DriveEndedPayload: {
410
+ type: string;
411
+ description: string;
412
+ required: string[];
413
+ additionalProperties: boolean;
414
+ properties: {
415
+ vehicleId: {
416
+ type: string;
417
+ description: string;
418
+ "x-classification": string;
419
+ };
420
+ driveId: {
421
+ type: string;
422
+ description: string;
423
+ "x-classification": string;
424
+ };
425
+ distance: {
426
+ type: string;
427
+ minimum: number;
428
+ description: string;
429
+ "x-unit": string;
430
+ "x-classification": string;
431
+ };
432
+ durationSeconds: {
433
+ type: string;
434
+ minimum: number;
435
+ description: string;
436
+ "x-unit": string;
437
+ "x-classification": string;
438
+ };
439
+ avgSpeed: {
440
+ type: string;
441
+ minimum: number;
442
+ "x-unit": string;
443
+ "x-classification": string;
444
+ };
445
+ maxSpeed: {
446
+ type: string;
447
+ minimum: number;
448
+ "x-unit": string;
449
+ "x-classification": string;
450
+ };
451
+ timestamp: {
452
+ type: string;
453
+ format: string;
454
+ description: string;
455
+ "x-classification": string;
456
+ };
457
+ };
458
+ };
459
+ ConnectivityPayload: {
460
+ type: string;
461
+ description: string;
462
+ required: string[];
463
+ additionalProperties: boolean;
464
+ properties: {
465
+ vehicleId: {
466
+ type: string;
467
+ "x-classification": string;
468
+ };
469
+ online: {
470
+ type: string;
471
+ description: string;
472
+ "x-classification": string;
473
+ };
474
+ timestamp: {
475
+ type: string;
476
+ format: string;
477
+ "x-classification": string;
478
+ };
479
+ };
480
+ };
481
+ HeartbeatPayload: {
482
+ type: string;
483
+ description: string;
484
+ additionalProperties: boolean;
485
+ properties: {
486
+ timestamp: {
487
+ type: string;
488
+ format: string;
489
+ description: string;
490
+ "x-classification": string;
491
+ };
492
+ };
493
+ };
494
+ ErrorPayload: {
495
+ type: string;
496
+ description: string;
497
+ required: string[];
498
+ additionalProperties: boolean;
499
+ properties: {
500
+ code: {
501
+ type: string;
502
+ description: string;
503
+ enum: string[];
504
+ "x-classification": string;
505
+ };
506
+ message: {
507
+ type: string;
508
+ description: string;
509
+ "x-classification": string;
510
+ };
511
+ subCode: {
512
+ type: string;
513
+ description: string;
514
+ enum: string[];
515
+ "x-classification": string;
516
+ };
517
+ };
518
+ };
519
+ SubscribePayload: {
520
+ type: string;
521
+ description: string;
522
+ required: string[];
523
+ additionalProperties: boolean;
524
+ properties: {
525
+ vehicleId: {
526
+ type: string;
527
+ "x-classification": string;
528
+ };
529
+ sinceSeq: {
530
+ type: string;
531
+ minimum: number;
532
+ description: string;
533
+ "x-classification": string;
534
+ };
535
+ };
536
+ };
537
+ UnsubscribePayload: {
538
+ type: string;
539
+ description: string;
540
+ required: string[];
541
+ additionalProperties: boolean;
542
+ properties: {
543
+ vehicleId: {
544
+ type: string;
545
+ "x-classification": string;
546
+ };
547
+ };
548
+ };
549
+ PingPayload: {
550
+ type: string;
551
+ description: string;
552
+ additionalProperties: boolean;
553
+ properties: {
554
+ nonce: {
555
+ type: string;
556
+ description: string;
557
+ "x-classification": string;
558
+ };
559
+ };
560
+ };
561
+ PongPayload: {
562
+ type: string;
563
+ description: string;
564
+ additionalProperties: boolean;
565
+ properties: {
566
+ nonce: {
567
+ type: string;
568
+ "x-classification": string;
569
+ };
570
+ };
571
+ };
572
+ };
573
+ };
574
+ readonly wsEnvelope: {
575
+ $schema: string;
576
+ $id: string;
577
+ title: string;
578
+ description: string;
579
+ type: string;
580
+ required: string[];
581
+ additionalProperties: boolean;
582
+ properties: {
583
+ type: {
584
+ type: string;
585
+ description: string;
586
+ enum: string[];
587
+ "x-classification": string;
588
+ };
589
+ payload: {
590
+ description: string;
591
+ "x-classification": string;
592
+ };
593
+ seq: {
594
+ type: string;
595
+ minimum: number;
596
+ description: string;
597
+ "x-classification": string;
598
+ };
599
+ ts: {
600
+ type: string;
601
+ format: string;
602
+ description: string;
603
+ "x-classification": string;
604
+ };
605
+ };
606
+ $defs: {
607
+ MessageType: {
608
+ type: string;
609
+ enum: string[];
610
+ };
611
+ };
612
+ };
613
+ };
614
+
615
+ export { schemas };