@fleetless/contracts 6.4.0-next.1 → 6.4.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.
@@ -1,641 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "id": {
6
- "type": "string",
7
- "format": "uuid",
8
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
9
- },
10
- "name": {
11
- "type": "string"
12
- },
13
- "created_at": {
14
- "type": "string",
15
- "format": "date-time",
16
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
17
- },
18
- "owner": {
19
- "anyOf": [
20
- {
21
- "type": "object",
22
- "properties": {
23
- "user_id": {
24
- "type": "string",
25
- "format": "uuid",
26
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
27
- },
28
- "email": {
29
- "type": "string"
30
- },
31
- "display_name": {
32
- "anyOf": [
33
- {
34
- "type": "string"
35
- },
36
- {
37
- "type": "null"
38
- }
39
- ]
40
- }
41
- },
42
- "required": [
43
- "user_id",
44
- "email",
45
- "display_name"
46
- ],
47
- "additionalProperties": false
48
- },
49
- {
50
- "type": "null"
51
- }
52
- ]
53
- },
54
- "plan": {
55
- "type": "object",
56
- "properties": {
57
- "plan": {
58
- "type": "string",
59
- "enum": [
60
- "basic",
61
- "plus",
62
- "pro",
63
- "enterprise"
64
- ],
65
- "description": "The org's current plan."
66
- },
67
- "currency": {
68
- "type": "string",
69
- "enum": [
70
- "eur",
71
- "usd"
72
- ],
73
- "description": "The currency the org's prices are shown and billed in."
74
- },
75
- "period_ends_at": {
76
- "type": "string",
77
- "format": "date-time",
78
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
79
- "description": "The end of the organization's current billing period; while no payment period exists yet, the end of the current UTC calendar month. A pending downward plan change normally takes effect at this exact instant — except one chosen while the org was locked, which lands at once, and the platform's own move off the beta, which lands at its switch date instead."
80
- },
81
- "addons": {
82
- "type": "object",
83
- "properties": {
84
- "seats": {
85
- "type": "integer",
86
- "minimum": 0,
87
- "maximum": 9007199254740991,
88
- "description": "Extra developer seats, one each."
89
- },
90
- "robots": {
91
- "type": "integer",
92
- "minimum": 0,
93
- "maximum": 9007199254740991,
94
- "description": "Extra robots, one each."
95
- },
96
- "apps": {
97
- "type": "integer",
98
- "minimum": 0,
99
- "maximum": 9007199254740991,
100
- "description": "Extra apps, one each."
101
- },
102
- "app_user_packs": {
103
- "type": "integer",
104
- "minimum": 0,
105
- "maximum": 9007199254740991,
106
- "description": "Packs of five extra app users."
107
- },
108
- "live_video_packs": {
109
- "type": "integer",
110
- "minimum": 0,
111
- "maximum": 9007199254740991,
112
- "description": "Packs of 250 extra hours of app-user live video per month."
113
- }
114
- },
115
- "required": [
116
- "seats",
117
- "robots",
118
- "apps",
119
- "app_user_packs",
120
- "live_video_packs"
121
- ],
122
- "additionalProperties": false,
123
- "description": "The add-ons the org has bought. All zero on a plan without the `addons` feature."
124
- },
125
- "limits": {
126
- "type": "object",
127
- "properties": {
128
- "seats": {
129
- "anyOf": [
130
- {
131
- "type": "integer",
132
- "exclusiveMinimum": 0,
133
- "maximum": 9007199254740991
134
- },
135
- {
136
- "type": "null"
137
- }
138
- ],
139
- "description": "Developers, owners included, plus pending team invitations."
140
- },
141
- "robots": {
142
- "anyOf": [
143
- {
144
- "type": "integer",
145
- "exclusiveMinimum": 0,
146
- "maximum": 9007199254740991
147
- },
148
- {
149
- "type": "null"
150
- }
151
- ],
152
- "description": "Robots in the org."
153
- },
154
- "apps": {
155
- "anyOf": [
156
- {
157
- "type": "integer",
158
- "exclusiveMinimum": 0,
159
- "maximum": 9007199254740991
160
- },
161
- {
162
- "type": "null"
163
- }
164
- ],
165
- "description": "Apps in the org."
166
- },
167
- "app_users": {
168
- "anyOf": [
169
- {
170
- "type": "integer",
171
- "exclusiveMinimum": 0,
172
- "maximum": 9007199254740991
173
- },
174
- {
175
- "type": "null"
176
- }
177
- ],
178
- "description": "App users across every app of the org, plus pending app-user invitations."
179
- },
180
- "live_video_ms_per_month": {
181
- "anyOf": [
182
- {
183
- "type": "integer",
184
- "exclusiveMinimum": 0,
185
- "maximum": 9007199254740991
186
- },
187
- {
188
- "type": "null"
189
- }
190
- ],
191
- "description": "Live video watched by app users in one UTC calendar month, in milliseconds, across the org. Console sessions do not count."
192
- },
193
- "asset_bytes_per_robot": {
194
- "anyOf": [
195
- {
196
- "type": "integer",
197
- "exclusiveMinimum": 0,
198
- "maximum": 9007199254740991
199
- },
200
- {
201
- "type": "null"
202
- }
203
- ],
204
- "description": "Asset storage per robot, in bytes (decimal: 1 GB = 1,000,000,000). The org stores up to robots × this value in total."
205
- },
206
- "history_days": {
207
- "anyOf": [
208
- {
209
- "type": "integer",
210
- "exclusiveMinimum": 0,
211
- "maximum": 9007199254740991
212
- },
213
- {
214
- "type": "null"
215
- }
216
- ],
217
- "description": "Days the org's robot history is kept."
218
- },
219
- "audit_days": {
220
- "anyOf": [
221
- {
222
- "type": "integer",
223
- "exclusiveMinimum": 0,
224
- "maximum": 9007199254740991
225
- },
226
- {
227
- "type": "null"
228
- }
229
- ],
230
- "description": "Days the org's audit log is kept."
231
- }
232
- },
233
- "required": [
234
- "seats",
235
- "robots",
236
- "apps",
237
- "app_users",
238
- "live_video_ms_per_month",
239
- "asset_bytes_per_robot",
240
- "history_days",
241
- "audit_days"
242
- ],
243
- "additionalProperties": false,
244
- "description": "The org's effective limits: the plan's, raised by its add-ons, or an operator's override in their place. `null` means unlimited for a count, and 90 days for `history_days` and `audit_days`."
245
- },
246
- "features": {
247
- "type": "object",
248
- "properties": {
249
- "app_mcp": {
250
- "type": "boolean",
251
- "description": "An app's own MCP endpoint, for its app users."
252
- },
253
- "two_factor": {
254
- "type": "boolean",
255
- "description": "Two-factor sign-in for developers."
256
- },
257
- "require_two_factor": {
258
- "type": "boolean",
259
- "description": "An owner may require two-factor sign-in for every developer of the org."
260
- },
261
- "app_oidc": {
262
- "type": "boolean",
263
- "description": "An app may let its users sign in through an OpenID Connect identity provider."
264
- },
265
- "hosted_logo": {
266
- "type": "boolean",
267
- "description": "An app's hosted pages show its logo and accent colour, not only its name."
268
- },
269
- "audit_export": {
270
- "type": "boolean",
271
- "description": "The audit log can be exported as CSV."
272
- },
273
- "addons": {
274
- "type": "boolean",
275
- "description": "Add-ons can be bought on top of the plan."
276
- }
277
- },
278
- "required": [
279
- "app_mcp",
280
- "two_factor",
281
- "require_two_factor",
282
- "app_oidc",
283
- "hosted_logo",
284
- "audit_export",
285
- "addons"
286
- ],
287
- "additionalProperties": false,
288
- "description": "What the org's plan unlocks."
289
- },
290
- "usage": {
291
- "type": "object",
292
- "properties": {
293
- "seats": {
294
- "type": "integer",
295
- "minimum": 0,
296
- "maximum": 9007199254740991,
297
- "description": "Developers, owners included, plus pending team invitations."
298
- },
299
- "robots": {
300
- "type": "integer",
301
- "minimum": 0,
302
- "maximum": 9007199254740991,
303
- "description": "Robots in the org."
304
- },
305
- "apps": {
306
- "type": "integer",
307
- "minimum": 0,
308
- "maximum": 9007199254740991,
309
- "description": "Apps in the org."
310
- },
311
- "app_users": {
312
- "type": "integer",
313
- "minimum": 0,
314
- "maximum": 9007199254740991,
315
- "description": "App users across every app, plus pending app-user invitations."
316
- },
317
- "live_video_ms_this_month": {
318
- "type": "integer",
319
- "minimum": 0,
320
- "maximum": 9007199254740991,
321
- "description": "Live video watched by app users in the current UTC calendar month, in milliseconds. Console sessions do not count."
322
- },
323
- "asset_bytes": {
324
- "type": "integer",
325
- "minimum": 0,
326
- "maximum": 9007199254740991,
327
- "description": "Bytes the assets of every robot of the org occupy, together."
328
- }
329
- },
330
- "required": [
331
- "seats",
332
- "robots",
333
- "apps",
334
- "app_users",
335
- "live_video_ms_this_month",
336
- "asset_bytes"
337
- ],
338
- "additionalProperties": false,
339
- "description": "What the org uses now, counted the way each limit counts it."
340
- },
341
- "pending_change": {
342
- "anyOf": [
343
- {
344
- "type": "object",
345
- "properties": {
346
- "target_plan": {
347
- "type": "string",
348
- "enum": [
349
- "basic",
350
- "plus",
351
- "pro",
352
- "enterprise"
353
- ],
354
- "description": "The plan the org moves to."
355
- },
356
- "reason": {
357
- "type": "string",
358
- "enum": [
359
- "downgrade",
360
- "cancel",
361
- "migration",
362
- "lock"
363
- ],
364
- "description": "Why the change is pending: `downgrade`, `cancel`, `migration` or `lock`."
365
- },
366
- "effective_at": {
367
- "anyOf": [
368
- {
369
- "type": "string",
370
- "format": "date-time",
371
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
372
- },
373
- {
374
- "type": "null"
375
- }
376
- ],
377
- "description": "When the change takes effect. `null` only for a move off the beta whose date is not set yet."
378
- },
379
- "keep": {
380
- "anyOf": [
381
- {
382
- "type": "object",
383
- "properties": {
384
- "robots": {
385
- "type": "array",
386
- "items": {
387
- "type": "string",
388
- "format": "uuid",
389
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
390
- },
391
- "description": "The robots that stay, by id. Every other robot is deleted when the change takes effect."
392
- },
393
- "apps": {
394
- "type": "array",
395
- "items": {
396
- "type": "string",
397
- "format": "uuid",
398
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
399
- },
400
- "description": "The apps that stay, by id. Every other app is deleted when the change takes effect."
401
- },
402
- "app_users": {
403
- "type": "array",
404
- "items": {
405
- "type": "string",
406
- "format": "uuid",
407
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
408
- },
409
- "description": "The app users that stay, by id, across every app. Every other app user is deleted when the change takes effect."
410
- },
411
- "developers": {
412
- "type": "array",
413
- "items": {
414
- "type": "string",
415
- "format": "uuid",
416
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
417
- },
418
- "description": "The developers that stay, by user id, owners never among them: every owner stays. Every other developer is removed from the org when the change takes effect."
419
- }
420
- },
421
- "required": [
422
- "robots",
423
- "apps",
424
- "app_users",
425
- "developers"
426
- ],
427
- "additionalProperties": false
428
- },
429
- {
430
- "type": "null"
431
- }
432
- ],
433
- "description": "What stays. `null` when the org already fits the target plan and nothing is deleted."
434
- },
435
- "history_days_after": {
436
- "type": "integer",
437
- "exclusiveMinimum": 0,
438
- "maximum": 9007199254740991,
439
- "description": "Days of history and audit log the org keeps on the target plan."
440
- },
441
- "chosen_by": {
442
- "type": "string",
443
- "format": "uuid",
444
- "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
445
- "description": "The user id of the owner who chose the change, or the nil UUID when Fleetless queued it."
446
- },
447
- "chosen_at": {
448
- "type": "string",
449
- "format": "date-time",
450
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
451
- "description": "When the change was chosen."
452
- }
453
- },
454
- "required": [
455
- "target_plan",
456
- "reason",
457
- "effective_at",
458
- "keep",
459
- "history_days_after",
460
- "chosen_by",
461
- "chosen_at"
462
- ],
463
- "additionalProperties": false
464
- },
465
- {
466
- "type": "null"
467
- }
468
- ],
469
- "description": "A move to a lower plan that has not taken effect yet, or `null`."
470
- },
471
- "lock": {
472
- "anyOf": [
473
- {
474
- "type": "object",
475
- "properties": {
476
- "reason": {
477
- "type": "string",
478
- "enum": [
479
- "payment",
480
- "migration"
481
- ],
482
- "description": "`payment`: a payment is missing. `migration`: the org did not choose what stays when the beta ended."
483
- },
484
- "since": {
485
- "type": "string",
486
- "format": "date-time",
487
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
488
- "description": "When the org was locked."
489
- }
490
- },
491
- "required": [
492
- "reason",
493
- "since"
494
- ],
495
- "additionalProperties": false
496
- },
497
- {
498
- "type": "null"
499
- }
500
- ],
501
- "description": "Why and since when the org is locked, or `null` when it is not."
502
- },
503
- "switch": {
504
- "anyOf": [
505
- {
506
- "type": "object",
507
- "properties": {
508
- "at": {
509
- "anyOf": [
510
- {
511
- "type": "string",
512
- "format": "date-time",
513
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
514
- },
515
- {
516
- "type": "null"
517
- }
518
- ],
519
- "description": "When the org moves from the beta onto its plan. `null` while the date is not set."
520
- },
521
- "needs_choice": {
522
- "type": "boolean",
523
- "description": "Whether the org uses more than Basic allows, so an owner has to choose what stays before `at`."
524
- }
525
- },
526
- "required": [
527
- "at",
528
- "needs_choice"
529
- ],
530
- "additionalProperties": false
531
- },
532
- {
533
- "type": "null"
534
- }
535
- ],
536
- "description": "Set only while the org is still on the beta; `null` for every other org."
537
- }
538
- },
539
- "required": [
540
- "plan",
541
- "currency",
542
- "period_ends_at",
543
- "addons",
544
- "limits",
545
- "features",
546
- "usage",
547
- "pending_change",
548
- "lock",
549
- "switch"
550
- ],
551
- "additionalProperties": false
552
- },
553
- "billing": {
554
- "type": "object",
555
- "properties": {
556
- "state": {
557
- "type": "string",
558
- "enum": [
559
- "none",
560
- "pending",
561
- "active",
562
- "past_due",
563
- "canceled"
564
- ]
565
- },
566
- "next_charge_at": {
567
- "anyOf": [
568
- {
569
- "type": "string",
570
- "format": "date-time",
571
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
572
- },
573
- {
574
- "type": "null"
575
- }
576
- ]
577
- }
578
- },
579
- "required": [
580
- "state",
581
- "next_charge_at"
582
- ],
583
- "additionalProperties": false
584
- },
585
- "counts": {
586
- "type": "object",
587
- "properties": {
588
- "members": {
589
- "type": "integer",
590
- "minimum": 0,
591
- "maximum": 9007199254740991
592
- },
593
- "robots": {
594
- "type": "integer",
595
- "minimum": 0,
596
- "maximum": 9007199254740991
597
- },
598
- "robots_online": {
599
- "type": "integer",
600
- "minimum": 0,
601
- "maximum": 9007199254740991
602
- },
603
- "apps": {
604
- "type": "integer",
605
- "minimum": 0,
606
- "maximum": 9007199254740991
607
- }
608
- },
609
- "required": [
610
- "members",
611
- "robots",
612
- "robots_online",
613
- "apps"
614
- ],
615
- "additionalProperties": false
616
- },
617
- "last_activity_at": {
618
- "anyOf": [
619
- {
620
- "type": "string",
621
- "format": "date-time",
622
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
623
- },
624
- {
625
- "type": "null"
626
- }
627
- ]
628
- }
629
- },
630
- "required": [
631
- "id",
632
- "name",
633
- "created_at",
634
- "owner",
635
- "plan",
636
- "billing",
637
- "counts",
638
- "last_activity_at"
639
- ],
640
- "additionalProperties": false
641
- }
@@ -1,14 +0,0 @@
1
- {
2
- "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "type": "object",
4
- "properties": {
5
- "q": {
6
- "type": "string",
7
- "minLength": 2,
8
- "maxLength": 200
9
- }
10
- },
11
- "required": [
12
- "q"
13
- ]
14
- }