@fleetless/contracts 11.1.0-next.1 → 12.0.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.
package/CHANGELOG.md CHANGED
@@ -9,11 +9,14 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
- ### Added
12
+ ## [12.0.0] — 2026-11-02
13
+
14
+ ### Changed
13
15
 
14
- - `file_limit` on a `refused` asset sync failure carries the enforced per-file
15
- limit and known file size through Bridge progress and Cloud sync status.
16
- Store-full `details` stays separate; failure kinds are unchanged.
16
+ - **Breaking (major):** The public `GET /api/client/providers` response now
17
+ requires `two_factor: off | optional | required`, the app's two-factor
18
+ policy. It does not describe a person's enrollment state. Older responses
19
+ without this field no longer satisfy the contract.
17
20
 
18
21
  ### Fixed
19
22
 
@@ -12306,10 +12306,10 @@
12306
12306
  "upload_failed",
12307
12307
  "refused"
12308
12308
  ],
12309
- "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
12309
+ "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot's asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit."
12310
12310
  },
12311
12311
  "details": {
12312
- "description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
12312
+ "description": "The three numbers behind a `refused` entry the robot's store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer's own ceiling is the other half of that kind, and no store number describes it.",
12313
12313
  "anyOf": [
12314
12314
  {
12315
12315
  "type": "object",
@@ -12344,93 +12344,13 @@
12344
12344
  "type": "null"
12345
12345
  }
12346
12346
  ]
12347
- },
12348
- "file_limit": {
12349
- "description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
12350
- "anyOf": [
12351
- {
12352
- "type": "object",
12353
- "properties": {
12354
- "max_bytes": {
12355
- "type": "integer",
12356
- "exclusiveMinimum": 0,
12357
- "maximum": 9007199254740991,
12358
- "description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
12359
- },
12360
- "size_bytes": {
12361
- "anyOf": [
12362
- {
12363
- "type": "integer",
12364
- "exclusiveMinimum": 0,
12365
- "maximum": 9007199254740991
12366
- },
12367
- {
12368
- "type": "null"
12369
- }
12370
- ],
12371
- "description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
12372
- }
12373
- },
12374
- "required": [
12375
- "max_bytes",
12376
- "size_bytes"
12377
- ],
12378
- "additionalProperties": false
12379
- },
12380
- {
12381
- "type": "null"
12382
- }
12383
- ]
12384
12347
  }
12385
12348
  },
12386
12349
  "required": [
12387
12350
  "reference",
12388
12351
  "kind"
12389
12352
  ],
12390
- "additionalProperties": false,
12391
- "allOf": [
12392
- {
12393
- "if": {
12394
- "properties": {
12395
- "details": {
12396
- "type": "object"
12397
- }
12398
- },
12399
- "required": [
12400
- "details"
12401
- ]
12402
- },
12403
- "then": {
12404
- "properties": {
12405
- "kind": {
12406
- "const": "refused"
12407
- }
12408
- }
12409
- }
12410
- },
12411
- {
12412
- "if": {
12413
- "properties": {
12414
- "file_limit": {
12415
- "type": "object"
12416
- }
12417
- },
12418
- "required": [
12419
- "file_limit"
12420
- ]
12421
- },
12422
- "then": {
12423
- "properties": {
12424
- "kind": {
12425
- "const": "refused"
12426
- },
12427
- "details": {
12428
- "type": "null"
12429
- }
12430
- }
12431
- }
12432
- }
12433
- ]
12353
+ "additionalProperties": false
12434
12354
  },
12435
12355
  "description": "What could not be provided, one entry per reference, each saying why. Required rather than optional: a sync that quietly drops three meshes and reports success moves the failure into somebody's renderer, where it shows up as a robot with missing limbs and no cause. At most `1000` entries — a producer at its own ceiling reports one entry saying so rather than growing the list."
12436
12356
  },
@@ -12694,10 +12614,10 @@
12694
12614
  "upload_failed",
12695
12615
  "refused"
12696
12616
  ],
12697
- "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
12617
+ "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot's asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit."
12698
12618
  },
12699
12619
  "details": {
12700
- "description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
12620
+ "description": "The three numbers behind a `refused` entry the robot's store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer's own ceiling is the other half of that kind, and no store number describes it.",
12701
12621
  "anyOf": [
12702
12622
  {
12703
12623
  "type": "object",
@@ -12732,93 +12652,13 @@
12732
12652
  "type": "null"
12733
12653
  }
12734
12654
  ]
12735
- },
12736
- "file_limit": {
12737
- "description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
12738
- "anyOf": [
12739
- {
12740
- "type": "object",
12741
- "properties": {
12742
- "max_bytes": {
12743
- "type": "integer",
12744
- "exclusiveMinimum": 0,
12745
- "maximum": 9007199254740991,
12746
- "description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
12747
- },
12748
- "size_bytes": {
12749
- "anyOf": [
12750
- {
12751
- "type": "integer",
12752
- "exclusiveMinimum": 0,
12753
- "maximum": 9007199254740991
12754
- },
12755
- {
12756
- "type": "null"
12757
- }
12758
- ],
12759
- "description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
12760
- }
12761
- },
12762
- "required": [
12763
- "max_bytes",
12764
- "size_bytes"
12765
- ],
12766
- "additionalProperties": false
12767
- },
12768
- {
12769
- "type": "null"
12770
- }
12771
- ]
12772
12655
  }
12773
12656
  },
12774
12657
  "required": [
12775
12658
  "reference",
12776
12659
  "kind"
12777
12660
  ],
12778
- "additionalProperties": false,
12779
- "allOf": [
12780
- {
12781
- "if": {
12782
- "properties": {
12783
- "details": {
12784
- "type": "object"
12785
- }
12786
- },
12787
- "required": [
12788
- "details"
12789
- ]
12790
- },
12791
- "then": {
12792
- "properties": {
12793
- "kind": {
12794
- "const": "refused"
12795
- }
12796
- }
12797
- }
12798
- },
12799
- {
12800
- "if": {
12801
- "properties": {
12802
- "file_limit": {
12803
- "type": "object"
12804
- }
12805
- },
12806
- "required": [
12807
- "file_limit"
12808
- ]
12809
- },
12810
- "then": {
12811
- "properties": {
12812
- "kind": {
12813
- "const": "refused"
12814
- },
12815
- "details": {
12816
- "type": "null"
12817
- }
12818
- }
12819
- }
12820
- }
12821
- ]
12661
+ "additionalProperties": false
12822
12662
  },
12823
12663
  "description": "What could not be provided, one entry per reference, each saying why. Required rather than optional: a sync that quietly drops three meshes and reports success moves the failure into somebody's renderer, where it shows up as a robot with missing limbs and no cause. At most `1000` entries — a producer at its own ceiling reports one entry saying so rather than growing the list."
12824
12664
  },
@@ -21848,11 +21688,21 @@
21848
21688
  ],
21849
21689
  "additionalProperties": false,
21850
21690
  "description": "Which of password and emailed code the app accepts, so its sign-in page draws the right fields without guessing. The same value the developer set; public, like the provider buttons."
21691
+ },
21692
+ "two_factor": {
21693
+ "type": "string",
21694
+ "enum": [
21695
+ "off",
21696
+ "optional",
21697
+ "required"
21698
+ ],
21699
+ "description": "The app's off, optional or required two-factor policy; not the caller's enrollment state."
21851
21700
  }
21852
21701
  },
21853
21702
  "required": [
21854
21703
  "providers",
21855
- "sign_in_methods"
21704
+ "sign_in_methods",
21705
+ "two_factor"
21856
21706
  ],
21857
21707
  "additionalProperties": false
21858
21708
  },
@@ -129,10 +129,10 @@
129
129
  "upload_failed",
130
130
  "refused"
131
131
  ],
132
- "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
132
+ "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot's asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit."
133
133
  },
134
134
  "details": {
135
- "description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
135
+ "description": "The three numbers behind a `refused` entry the robot's store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer's own ceiling is the other half of that kind, and no store number describes it.",
136
136
  "anyOf": [
137
137
  {
138
138
  "type": "object",
@@ -167,93 +167,13 @@
167
167
  "type": "null"
168
168
  }
169
169
  ]
170
- },
171
- "file_limit": {
172
- "description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
173
- "anyOf": [
174
- {
175
- "type": "object",
176
- "properties": {
177
- "max_bytes": {
178
- "type": "integer",
179
- "exclusiveMinimum": 0,
180
- "maximum": 9007199254740991,
181
- "description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
182
- },
183
- "size_bytes": {
184
- "anyOf": [
185
- {
186
- "type": "integer",
187
- "exclusiveMinimum": 0,
188
- "maximum": 9007199254740991
189
- },
190
- {
191
- "type": "null"
192
- }
193
- ],
194
- "description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
195
- }
196
- },
197
- "required": [
198
- "max_bytes",
199
- "size_bytes"
200
- ],
201
- "additionalProperties": false
202
- },
203
- {
204
- "type": "null"
205
- }
206
- ]
207
170
  }
208
171
  },
209
172
  "required": [
210
173
  "reference",
211
174
  "kind"
212
175
  ],
213
- "additionalProperties": false,
214
- "allOf": [
215
- {
216
- "if": {
217
- "properties": {
218
- "details": {
219
- "type": "object"
220
- }
221
- },
222
- "required": [
223
- "details"
224
- ]
225
- },
226
- "then": {
227
- "properties": {
228
- "kind": {
229
- "const": "refused"
230
- }
231
- }
232
- }
233
- },
234
- {
235
- "if": {
236
- "properties": {
237
- "file_limit": {
238
- "type": "object"
239
- }
240
- },
241
- "required": [
242
- "file_limit"
243
- ]
244
- },
245
- "then": {
246
- "properties": {
247
- "kind": {
248
- "const": "refused"
249
- },
250
- "details": {
251
- "type": "null"
252
- }
253
- }
254
- }
255
- }
256
- ]
176
+ "additionalProperties": false
257
177
  },
258
178
  "description": "What could not be provided, one entry per reference, each saying why. Required rather than optional: a sync that quietly drops three meshes and reports success moves the failure into somebody's renderer, where it shows up as a robot with missing limbs and no cause. At most `1000` entries — a producer at its own ceiling reports one entry saying so rather than growing the list."
259
179
  },
@@ -54,10 +54,10 @@
54
54
  "upload_failed",
55
55
  "refused"
56
56
  ],
57
- "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
57
+ "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot's asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit."
58
58
  },
59
59
  "details": {
60
- "description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
60
+ "description": "The three numbers behind a `refused` entry the robot's store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer's own ceiling is the other half of that kind, and no store number describes it.",
61
61
  "anyOf": [
62
62
  {
63
63
  "type": "object",
@@ -92,93 +92,13 @@
92
92
  "type": "null"
93
93
  }
94
94
  ]
95
- },
96
- "file_limit": {
97
- "description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
98
- "anyOf": [
99
- {
100
- "type": "object",
101
- "properties": {
102
- "max_bytes": {
103
- "type": "integer",
104
- "exclusiveMinimum": 0,
105
- "maximum": 9007199254740991,
106
- "description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
107
- },
108
- "size_bytes": {
109
- "anyOf": [
110
- {
111
- "type": "integer",
112
- "exclusiveMinimum": 0,
113
- "maximum": 9007199254740991
114
- },
115
- {
116
- "type": "null"
117
- }
118
- ],
119
- "description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
120
- }
121
- },
122
- "required": [
123
- "max_bytes",
124
- "size_bytes"
125
- ],
126
- "additionalProperties": false
127
- },
128
- {
129
- "type": "null"
130
- }
131
- ]
132
95
  }
133
96
  },
134
97
  "required": [
135
98
  "reference",
136
99
  "kind"
137
100
  ],
138
- "additionalProperties": false,
139
- "allOf": [
140
- {
141
- "if": {
142
- "properties": {
143
- "details": {
144
- "type": "object"
145
- }
146
- },
147
- "required": [
148
- "details"
149
- ]
150
- },
151
- "then": {
152
- "properties": {
153
- "kind": {
154
- "const": "refused"
155
- }
156
- }
157
- }
158
- },
159
- {
160
- "if": {
161
- "properties": {
162
- "file_limit": {
163
- "type": "object"
164
- }
165
- },
166
- "required": [
167
- "file_limit"
168
- ]
169
- },
170
- "then": {
171
- "properties": {
172
- "kind": {
173
- "const": "refused"
174
- },
175
- "details": {
176
- "type": "null"
177
- }
178
- }
179
- }
180
- }
181
- ]
101
+ "additionalProperties": false
182
102
  },
183
103
  "description": "What could not be provided, one entry per reference, each saying why. Required rather than optional: a sync that quietly drops three meshes and reports success moves the failure into somebody's renderer, where it shows up as a robot with missing limbs and no cause. At most `1000` entries — a producer at its own ceiling reports one entry saying so rather than growing the list."
184
104
  },
@@ -40,10 +40,10 @@
40
40
  "upload_failed",
41
41
  "refused"
42
42
  ],
43
- "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
43
+ "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot's asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit."
44
44
  },
45
45
  "details": {
46
- "description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
46
+ "description": "The three numbers behind a `refused` entry the robot's store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer's own ceiling is the other half of that kind, and no store number describes it.",
47
47
  "anyOf": [
48
48
  {
49
49
  "type": "object",
@@ -77,90 +77,11 @@
77
77
  "type": "null"
78
78
  }
79
79
  ]
80
- },
81
- "file_limit": {
82
- "description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
83
- "anyOf": [
84
- {
85
- "type": "object",
86
- "properties": {
87
- "max_bytes": {
88
- "type": "integer",
89
- "exclusiveMinimum": 0,
90
- "maximum": 9007199254740991,
91
- "description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
92
- },
93
- "size_bytes": {
94
- "anyOf": [
95
- {
96
- "type": "integer",
97
- "exclusiveMinimum": 0,
98
- "maximum": 9007199254740991
99
- },
100
- {
101
- "type": "null"
102
- }
103
- ],
104
- "description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
105
- }
106
- },
107
- "required": [
108
- "max_bytes",
109
- "size_bytes"
110
- ]
111
- },
112
- {
113
- "type": "null"
114
- }
115
- ]
116
80
  }
117
81
  },
118
82
  "required": [
119
83
  "reference",
120
84
  "kind"
121
- ],
122
- "allOf": [
123
- {
124
- "if": {
125
- "properties": {
126
- "details": {
127
- "type": "object"
128
- }
129
- },
130
- "required": [
131
- "details"
132
- ]
133
- },
134
- "then": {
135
- "properties": {
136
- "kind": {
137
- "const": "refused"
138
- }
139
- }
140
- }
141
- },
142
- {
143
- "if": {
144
- "properties": {
145
- "file_limit": {
146
- "type": "object"
147
- }
148
- },
149
- "required": [
150
- "file_limit"
151
- ]
152
- },
153
- "then": {
154
- "properties": {
155
- "kind": {
156
- "const": "refused"
157
- },
158
- "details": {
159
- "type": "null"
160
- }
161
- }
162
- }
163
- }
164
85
  ]
165
86
  }
166
87
  },
@@ -44,11 +44,21 @@
44
44
  ],
45
45
  "additionalProperties": false,
46
46
  "description": "Which of password and emailed code the app accepts, so its sign-in page draws the right fields without guessing. The same value the developer set; public, like the provider buttons."
47
+ },
48
+ "two_factor": {
49
+ "type": "string",
50
+ "enum": [
51
+ "off",
52
+ "optional",
53
+ "required"
54
+ ],
55
+ "description": "The app's off, optional or required two-factor policy; not the caller's enrollment state."
47
56
  }
48
57
  },
49
58
  "required": [
50
59
  "providers",
51
- "sign_in_methods"
60
+ "sign_in_methods",
61
+ "two_factor"
52
62
  ],
53
63
  "additionalProperties": false
54
64
  }
@@ -40,10 +40,10 @@
40
40
  "upload_failed",
41
41
  "refused"
42
42
  ],
43
- "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation."
43
+ "description": "Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot's asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit."
44
44
  },
45
45
  "details": {
46
- "description": "The three numbers behind a `refused` entry the robot's store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.",
46
+ "description": "The three numbers behind a `refused` entry the robot's store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer's own ceiling is the other half of that kind, and no store number describes it.",
47
47
  "anyOf": [
48
48
  {
49
49
  "type": "object",
@@ -78,93 +78,13 @@
78
78
  "type": "null"
79
79
  }
80
80
  ]
81
- },
82
- "file_limit": {
83
- "description": "The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.",
84
- "anyOf": [
85
- {
86
- "type": "object",
87
- "properties": {
88
- "max_bytes": {
89
- "type": "integer",
90
- "exclusiveMinimum": 0,
91
- "maximum": 9007199254740991,
92
- "description": "The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan."
93
- },
94
- "size_bytes": {
95
- "anyOf": [
96
- {
97
- "type": "integer",
98
- "exclusiveMinimum": 0,
99
- "maximum": 9007199254740991
100
- },
101
- {
102
- "type": "null"
103
- }
104
- ],
105
- "description": "The refused file's size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes."
106
- }
107
- },
108
- "required": [
109
- "max_bytes",
110
- "size_bytes"
111
- ],
112
- "additionalProperties": false
113
- },
114
- {
115
- "type": "null"
116
- }
117
- ]
118
81
  }
119
82
  },
120
83
  "required": [
121
84
  "reference",
122
85
  "kind"
123
86
  ],
124
- "additionalProperties": false,
125
- "allOf": [
126
- {
127
- "if": {
128
- "properties": {
129
- "details": {
130
- "type": "object"
131
- }
132
- },
133
- "required": [
134
- "details"
135
- ]
136
- },
137
- "then": {
138
- "properties": {
139
- "kind": {
140
- "const": "refused"
141
- }
142
- }
143
- }
144
- },
145
- {
146
- "if": {
147
- "properties": {
148
- "file_limit": {
149
- "type": "object"
150
- }
151
- },
152
- "required": [
153
- "file_limit"
154
- ]
155
- },
156
- "then": {
157
- "properties": {
158
- "kind": {
159
- "const": "refused"
160
- },
161
- "details": {
162
- "type": "null"
163
- }
164
- }
165
- }
166
- }
167
- ]
87
+ "additionalProperties": false
168
88
  }
169
89
  },
170
90
  "state": {
package/dist/assets.d.ts CHANGED
@@ -239,17 +239,19 @@ export type AssetStoreRefusedDetails = z.infer<typeof assetStoreRefusedDetails>;
239
239
  * reconciliation may treat as gone.
240
240
  * - **`upload_failed`** — the bytes exist and the transfer did not succeed.
241
241
  * **Transient.** The asset is still wanted; a later sync will carry it.
242
- * - **`refused`** — the receiver refused this file because the robot's store
243
- * was full (`details`) or its per-file limit was exceeded (`file_limit`),
244
- * or the producer never examined it. A `.dae` with too many internal
245
- * references is one example of the latter. **Transient in the same
246
- * sense**: reconciliation must not delete an asset still wanted.
242
+ * - **`refused`** — never attempted. Either the robot's asset store had no
243
+ * room for it, in which case `details` carries the three numbers, or a
244
+ * producer-side ceiling was hit (a `.dae` carrying more internal references
245
+ * than one file or one sync will report), in which case it does not.
246
+ * **Transient in the same sense**: nothing is known to be missing, only
247
+ * unexamined.
247
248
  *
248
249
  * There was a fourth, `too_large`, for a file over a per-file ceiling. That
249
250
  * ceiling is gone from this enum, not from the cloud: a file over
250
- * `ASSET_FILE_MAX_BYTES` is refused by the cloud as `413 file_too_large`;
251
- * a producer that relays it reports `refused` with `file_limit`, without a
252
- * fourth kind.
251
+ * `ASSET_FILE_MAX_BYTES` is refused by the cloud as `413 file_too_large`; a
252
+ * producer that relays it reports `refused` with no details — so the kind
253
+ * had no producer left here and one fewer thing to branch on is the whole of
254
+ * the gain.
253
255
  *
254
256
  * A consumer that cannot act on the distinction may still print `reference`
255
257
  * alone and lose nothing it had before.
@@ -272,10 +274,6 @@ export declare const assetFailure: z.ZodObject<{
272
274
  used_bytes: z.ZodNumber;
273
275
  size_bytes: z.ZodNumber;
274
276
  }, z.core.$strip>>>;
275
- file_limit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
276
- max_bytes: z.ZodNumber;
277
- size_bytes: z.ZodNullable<z.ZodNumber>;
278
- }, z.core.$strip>>>;
279
277
  }, z.core.$strip>;
280
278
  export type AssetFailure = z.infer<typeof assetFailure>;
281
279
  export declare const assetSyncState: z.ZodEnum<{
@@ -306,10 +304,6 @@ export declare const assetSyncStatus: z.ZodObject<{
306
304
  used_bytes: z.ZodNumber;
307
305
  size_bytes: z.ZodNumber;
308
306
  }, z.core.$strip>>>;
309
- file_limit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
310
- max_bytes: z.ZodNumber;
311
- size_bytes: z.ZodNullable<z.ZodNumber>;
312
- }, z.core.$strip>>>;
313
307
  }, z.core.$strip>>;
314
308
  reason: z.ZodNullable<z.ZodString>;
315
309
  stored: z.ZodNullable<z.ZodNumber>;
@@ -355,10 +349,6 @@ export declare const assetListResponse: z.ZodObject<{
355
349
  used_bytes: z.ZodNumber;
356
350
  size_bytes: z.ZodNumber;
357
351
  }, z.core.$strip>>>;
358
- file_limit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
359
- max_bytes: z.ZodNumber;
360
- size_bytes: z.ZodNullable<z.ZodNumber>;
361
- }, z.core.$strip>>>;
362
352
  }, z.core.$strip>>;
363
353
  reason: z.ZodNullable<z.ZodString>;
364
354
  stored: z.ZodNullable<z.ZodNumber>;
package/dist/assets.js CHANGED
@@ -1,7 +1,6 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import { z } from 'zod';
3
3
  import { slug } from './common.js';
4
- import { fileTooLargeDetails } from './file-too-large-details.js';
5
4
  /**
6
5
  * The asset store.
7
6
  *
@@ -300,17 +299,19 @@ export const assetStoreRefusedDetails = z.object({
300
299
  * reconciliation may treat as gone.
301
300
  * - **`upload_failed`** — the bytes exist and the transfer did not succeed.
302
301
  * **Transient.** The asset is still wanted; a later sync will carry it.
303
- * - **`refused`** — the receiver refused this file because the robot's store
304
- * was full (`details`) or its per-file limit was exceeded (`file_limit`),
305
- * or the producer never examined it. A `.dae` with too many internal
306
- * references is one example of the latter. **Transient in the same
307
- * sense**: reconciliation must not delete an asset still wanted.
302
+ * - **`refused`** — never attempted. Either the robot's asset store had no
303
+ * room for it, in which case `details` carries the three numbers, or a
304
+ * producer-side ceiling was hit (a `.dae` carrying more internal references
305
+ * than one file or one sync will report), in which case it does not.
306
+ * **Transient in the same sense**: nothing is known to be missing, only
307
+ * unexamined.
308
308
  *
309
309
  * There was a fourth, `too_large`, for a file over a per-file ceiling. That
310
310
  * ceiling is gone from this enum, not from the cloud: a file over
311
- * `ASSET_FILE_MAX_BYTES` is refused by the cloud as `413 file_too_large`;
312
- * a producer that relays it reports `refused` with `file_limit`, without a
313
- * fourth kind.
311
+ * `ASSET_FILE_MAX_BYTES` is refused by the cloud as `413 file_too_large`; a
312
+ * producer that relays it reports `refused` with no details — so the kind
313
+ * had no producer left here and one fewer thing to branch on is the whole of
314
+ * the gain.
314
315
  *
315
316
  * A consumer that cannot act on the distinction may still print `reference`
316
317
  * alone and lose nothing it had before.
@@ -328,7 +329,7 @@ export const assetFailure = z.object({
328
329
  description: 'What could not be provided, verbatim — the same string the asset would have been stored under, so a developer can match it against their own workspace by eye. For a failed URDF upload it is `robot_description`, which is **not** a mesh URI: a consumer must not assume every entry is one.',
329
330
  }),
330
331
  kind: assetFailureKind.meta({
331
- description: 'Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed. `refused` means the store or per-file limit refused the upload, or the producer did not examine the reference; it remains transient for reconciliation.',
332
+ description: 'Why it failed. `unresolvable` means the reference names nothing the producer can find or may read, and is **permanent** — the only kind reconciliation may treat as gone. `upload_failed` means the bytes exist and the transfer did not succeed, and `refused` means it was never attempted, either because the robot\'s asset store had no room — then `details` carries the three numbers — or because a producer-side ceiling was hit.',
332
333
  }),
333
334
  /**
334
335
  * **The three numbers behind a full store.**
@@ -337,17 +338,15 @@ export const assetFailure = z.object({
337
338
  * not answer whether to delete an old sync or shrink the mesh;
338
339
  * `store_bytes`, `used_bytes` and `size_bytes` do.
339
340
  *
340
- * **Present only on store-full `refused` entries.** A per-file refusal
341
- * uses `file_limit`, while a producer that stops naming individual
342
- * failures carries neither set of numbers. Requiring store details for
343
- * either would mean inventing them. A forced `details: null` on every
344
- * `unresolvable` buys nothing.
341
+ * **Present only on `refused`, and not on every `refused`.** The other half
342
+ * of that kind is the single collective entry a sync emits when it stops
343
+ * naming individual failures, and no store number describes it — requiring
344
+ * details there would mean inventing them. So the enforcement below is the
345
+ * half that can be enforced: details belong to `refused` and to nothing
346
+ * else. A forced `details: null` on every `unresolvable` buys nothing.
345
347
  */
346
348
  details: assetStoreRefusedDetails.nullish().meta({
347
- description: 'The three numbers behind a `refused` entry the robot\'s store had no room for. Absent for every other kind and exclusive with `file_limit`; a forced `null` on every other entry buys nothing.',
348
- }),
349
- file_limit: fileTooLargeDetails.nullish().meta({
350
- description: 'The enforced per-file limit and refused file size, if known, for a `refused` upload that received `413 file_too_large`. Exclusive with store-full `details`; absent on bare refusals and every other kind.',
349
+ description: 'The three numbers behind a `refused` entry the robot\'s store had no room for, and absent for every other kind — a forced `null` on every `unresolvable` entry buys nothing. A `refused` entry may also carry no details: the producer\'s own ceiling is the other half of that kind, and no store number describes it.',
351
350
  }),
352
351
  }).superRefine((f, ctx) => {
353
352
  // Enforced here, not merely described above — a rule that lives only in a
@@ -355,25 +354,6 @@ export const assetFailure = z.object({
355
354
  if (f.kind !== 'refused' && f.details != null) {
356
355
  ctx.addIssue({ code: 'custom', path: ['details'], message: 'store details belong to `refused` only' });
357
356
  }
358
- if (f.file_limit != null && f.kind !== 'refused') {
359
- ctx.addIssue({ code: 'custom', path: ['file_limit'], message: 'file limit belongs to `refused` only' });
360
- }
361
- if (f.file_limit != null && f.details != null) {
362
- ctx.addIssue({ code: 'custom', path: ['file_limit'], message: 'file limit and store details are exclusive' });
363
- }
364
- }).meta({
365
- // Zod refinements do not survive JSON Schema export. Keep the same
366
- // cross-field rules on the entry so every enclosing wire artifact gets them.
367
- allOf: [
368
- {
369
- if: { properties: { details: { type: 'object' } }, required: ['details'] },
370
- then: { properties: { kind: { const: 'refused' } } },
371
- },
372
- {
373
- if: { properties: { file_limit: { type: 'object' } }, required: ['file_limit'] },
374
- then: { properties: { kind: { const: 'refused' }, details: { type: 'null' } } },
375
- },
376
- ],
377
357
  });
378
358
  export const assetSyncState = z.enum(['running', 'succeeded', 'failed']);
379
359
  export const assetSyncStatus = z.object({
@@ -271,10 +271,11 @@ export declare const clientProviderListQuery: z.ZodObject<{
271
271
  }, z.core.$strip>;
272
272
  export type ClientProviderListQuery = z.infer<typeof clientProviderListQuery>;
273
273
  /**
274
- * What the developer's login page needs to draw its provider buttons and its
275
- * password or code fields, and **nothing more**. This route is public and unauthenticated: the issuer, the
276
- * client id, the scopes and the linking policy are all management-side facts
277
- * that would tell a stranger how the app's federation is configured.
274
+ * What the developer's login page needs to draw its provider buttons,
275
+ * password or code fields, and two-factor policy. This route is public and
276
+ * unauthenticated: the issuer, the client id, the scopes and the linking
277
+ * policy are all management-side facts that would tell a stranger how the
278
+ * app's federation is configured. The policy says nothing about a person.
278
279
  *
279
280
  * Only **enabled** providers appear. A disabled one is not a button that
280
281
  * refuses; it is a button that is not there.
@@ -288,6 +289,11 @@ export declare const clientProviderListResponse: z.ZodObject<{
288
289
  password: z.ZodBoolean;
289
290
  email_code: z.ZodBoolean;
290
291
  }, z.core.$strict>;
292
+ two_factor: z.ZodEnum<{
293
+ optional: "optional";
294
+ required: "required";
295
+ off: "off";
296
+ }>;
291
297
  }, z.core.$strip>;
292
298
  export type ClientProviderListResponse = z.infer<typeof clientProviderListResponse>;
293
299
  /**
@@ -1,7 +1,7 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import { z } from 'zod';
3
3
  import { appIdentifier } from './apps.js';
4
- import { APP_USER_DISPLAY_NAME_MAX, appSignInMethods, providerSlug } from './app-users.js';
4
+ import { APP_USER_DISPLAY_NAME_MAX, appSignInMethods, appTwoFactorPolicy, providerSlug } from './app-users.js';
5
5
  import { loginCode, password, recoveryCode, recoveryCodesList, sessionTokens, totpCode } from './identity.js';
6
6
  /**
7
7
  * **The client auth API: the whole of what an app user's browser talks to.**
@@ -314,10 +314,11 @@ export const clientProviderListQuery = z
314
314
  })
315
315
  .meta({ description: 'The one parameter of the public provider listing.' });
316
316
  /**
317
- * What the developer's login page needs to draw its provider buttons and its
318
- * password or code fields, and **nothing more**. This route is public and unauthenticated: the issuer, the
319
- * client id, the scopes and the linking policy are all management-side facts
320
- * that would tell a stranger how the app's federation is configured.
317
+ * What the developer's login page needs to draw its provider buttons,
318
+ * password or code fields, and two-factor policy. This route is public and
319
+ * unauthenticated: the issuer, the client id, the scopes and the linking
320
+ * policy are all management-side facts that would tell a stranger how the
321
+ * app's federation is configured. The policy says nothing about a person.
321
322
  *
322
323
  * Only **enabled** providers appear. A disabled one is not a button that
323
324
  * refuses; it is a button that is not there.
@@ -334,6 +335,9 @@ export const clientProviderListResponse = z.object({
334
335
  sign_in_methods: appSignInMethods.meta({
335
336
  description: 'Which of password and emailed code the app accepts, so its sign-in page draws the right fields without guessing. The same value the developer set; public, like the provider buttons.',
336
337
  }),
338
+ two_factor: appTwoFactorPolicy.meta({
339
+ description: "The app's off, optional or required two-factor policy; not the caller's enrollment state.",
340
+ }),
337
341
  });
338
342
  /**
339
343
  * The query of `GET /api/client/oidc/:slug/start`.
package/dist/errors.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import { z } from 'zod';
3
- export { fileTooLargeDetails } from './file-too-large-details.js';
4
- export type { FileTooLargeDetails } from './file-too-large-details.js';
5
3
  /**
6
4
  * The one error shape of the REST and realtime APIs: a stable
7
5
  * machine-readable code plus a human message; validation errors name the
@@ -211,6 +209,22 @@ export declare const orgLockedDetails: z.ZodObject<{
211
209
  }>;
212
210
  }, z.core.$strip>;
213
211
  export type OrgLockedDetails = z.infer<typeof orgLockedDetails>;
212
+ /**
213
+ * The `details` of a `413 file_too_large` refusal (2026-10-03,
214
+ * fleetless/fleetless#136): one file is larger than `ASSET_FILE_MAX_BYTES`.
215
+ * Not a store and not a plan limit — those are `409 plan_limit` and
216
+ * `409 quota_exceeded`, and mean only "the store is full". `size_bytes` is
217
+ * the file's size: the announced one when the refusal came before the body
218
+ * was read, or the bytes that arrived when no size (or a false one) was
219
+ * announced and the body still fit the server's body limit. It is `null` only
220
+ * when the body limit stopped the upload, because then nobody counted the
221
+ * bytes.
222
+ */
223
+ export declare const fileTooLargeDetails: z.ZodObject<{
224
+ max_bytes: z.ZodNumber;
225
+ size_bytes: z.ZodNullable<z.ZodNumber>;
226
+ }, z.core.$strip>;
227
+ export type FileTooLargeDetails = z.infer<typeof fileTooLargeDetails>;
214
228
  /**
215
229
  * The `details` of a `502 payment_provider_unavailable` refusal (2026-10-04,
216
230
  * fleetless/fleetless#104): Mollie did not answer, or answered with an
package/dist/errors.js CHANGED
@@ -3,7 +3,6 @@ import { z } from 'zod';
3
3
  import { assetStoreRefusedDetails } from './assets.js';
4
4
  import { addonKey, planFeature, planId, planLimitKey } from './plans.js';
5
5
  import { bridgeCancelResultEntry } from './protocol.js';
6
- export { fileTooLargeDetails } from './file-too-large-details.js';
7
6
  /**
8
7
  * The one error shape of the REST and realtime APIs: a stable
9
8
  * machine-readable code plus a human message; validation errors name the
@@ -136,6 +135,25 @@ export const orgLockedDetails = z.object({
136
135
  description: '`payment`: a payment is missing. `migration`: the org did not choose what stays when the beta ended.',
137
136
  }),
138
137
  });
138
+ /**
139
+ * The `details` of a `413 file_too_large` refusal (2026-10-03,
140
+ * fleetless/fleetless#136): one file is larger than `ASSET_FILE_MAX_BYTES`.
141
+ * Not a store and not a plan limit — those are `409 plan_limit` and
142
+ * `409 quota_exceeded`, and mean only "the store is full". `size_bytes` is
143
+ * the file's size: the announced one when the refusal came before the body
144
+ * was read, or the bytes that arrived when no size (or a false one) was
145
+ * announced and the body still fit the server's body limit. It is `null` only
146
+ * when the body limit stopped the upload, because then nobody counted the
147
+ * bytes.
148
+ */
149
+ export const fileTooLargeDetails = z.object({
150
+ max_bytes: z.number().int().positive().meta({
151
+ description: 'The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan.',
152
+ }),
153
+ size_bytes: z.number().int().positive().nullable().meta({
154
+ description: 'The refused file\'s size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes.',
155
+ }),
156
+ });
139
157
  /**
140
158
  * The `details` of a `502 payment_provider_unavailable` refusal (2026-10-04,
141
159
  * fleetless/fleetless#104): Mollie did not answer, or answered with an
@@ -1073,10 +1073,6 @@ export declare const bridgeAssetProgress: z.ZodObject<{
1073
1073
  used_bytes: z.ZodNumber;
1074
1074
  size_bytes: z.ZodNumber;
1075
1075
  }, z.core.$strip>>>;
1076
- file_limit: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1077
- max_bytes: z.ZodNumber;
1078
- size_bytes: z.ZodNullable<z.ZodNumber>;
1079
- }, z.core.$strip>>>;
1080
1076
  }, z.core.$strip>>;
1081
1077
  state: z.ZodEnum<{
1082
1078
  running: "running";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetless/contracts",
3
- "version": "11.1.0-next.1",
3
+ "version": "12.0.0",
4
4
  "description": "Fleetless wire contracts: the bridge-cloud protocol, the REST API schemas and the error codes, as zod schemas with generated JSON Schema and OpenAPI artifacts.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Dehne Robotik GmbH",
@@ -1,18 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- import { z } from 'zod';
3
- /**
4
- * The `details` of a `413 file_too_large` refusal (2026-10-03,
5
- * fleetless/fleetless#136): one file is larger than `ASSET_FILE_MAX_BYTES`.
6
- * Not a store and not a plan limit — those are `409 plan_limit` and
7
- * `409 quota_exceeded`, and mean only "the store is full". `size_bytes` is
8
- * the file's size: the announced one when the refusal came before the body
9
- * was read, or the bytes that arrived when no size (or a false one) was
10
- * announced and the body still fit the server's body limit. It is `null` only
11
- * when the body limit stopped the upload, because then nobody counted the
12
- * bytes.
13
- */
14
- export declare const fileTooLargeDetails: z.ZodObject<{
15
- max_bytes: z.ZodNumber;
16
- size_bytes: z.ZodNullable<z.ZodNumber>;
17
- }, z.core.$strip>;
18
- export type FileTooLargeDetails = z.infer<typeof fileTooLargeDetails>;
@@ -1,21 +0,0 @@
1
- // SPDX-License-Identifier: Apache-2.0
2
- import { z } from 'zod';
3
- /**
4
- * The `details` of a `413 file_too_large` refusal (2026-10-03,
5
- * fleetless/fleetless#136): one file is larger than `ASSET_FILE_MAX_BYTES`.
6
- * Not a store and not a plan limit — those are `409 plan_limit` and
7
- * `409 quota_exceeded`, and mean only "the store is full". `size_bytes` is
8
- * the file's size: the announced one when the refusal came before the body
9
- * was read, or the bytes that arrived when no size (or a false one) was
10
- * announced and the body still fit the server's body limit. It is `null` only
11
- * when the body limit stopped the upload, because then nobody counted the
12
- * bytes.
13
- */
14
- export const fileTooLargeDetails = z.object({
15
- max_bytes: z.number().int().positive().meta({
16
- description: 'The most one asset file can be, in bytes: `ASSET_FILE_MAX_BYTES`, the same on every plan.',
17
- }),
18
- size_bytes: z.number().int().positive().nullable().meta({
19
- description: 'The refused file\'s size, in bytes: the announced size, or the bytes that arrived when none (or a false one) was announced; `null` only when the body limit stopped the upload and nobody counted the bytes.',
20
- }),
21
- });