@fleetless/contracts 13.2.0 → 13.3.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,6 +9,34 @@ version.
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [13.3.0] — 2026-11-05
13
+
14
+ ### Added
15
+
16
+ - `configAuthor`: a console team member by display name (the local part of the
17
+ email address when the member has none), never a full email address. The
18
+ config draft carries `updated_by` and each published version `published_by`,
19
+ both `configAuthor` or `null`: `null` when nobody has saved yet, when the
20
+ cloud itself rewrote the draft, when the member has since been removed, or
21
+ for rows older than the field. Both are optional on the wire: a consumer
22
+ reads an absent field as unknown, and the cloud always sends it.
23
+ - `hostedLogoShape` (`square` or `wide`) and `appAuthConfig.hosted_logo_shape`,
24
+ read-only and derived from the stored image: `wide` when the logo is more
25
+ than one and a half times as wide as it is high, otherwise `square`, and
26
+ `null` exactly when `hosted_logo_url` is `null`. The field is optional on the
27
+ wire: a consumer reads an absent field as unknown, and the cloud always sends
28
+ it.
29
+
30
+ ### Changed
31
+
32
+ - `HOSTED_LOGO_MAX_BYTES` rises from 100 KB to 512 KB (`524_288`). The logo
33
+ route's notes state the new limit.
34
+
35
+ ### Removed
36
+
37
+ - The internal route `GET /mcp/welcome` (audience `internal`) is no longer listed: the MCP landing page
38
+ moved to https://fleetless.dev/mcp/.
39
+
12
40
  ## [13.2.0] — 2026-11-05
13
41
 
14
42
  ### Changed
@@ -3594,7 +3594,7 @@
3594
3594
  }
3595
3595
  }
3596
3596
  },
3597
- "description": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (100 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
3597
+ "description": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (512 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
3598
3598
  },
3599
3599
  "delete": {
3600
3600
  "operationId": "delete_api_apps_id_auth_config_logo",
@@ -7214,7 +7214,7 @@
7214
7214
  }
7215
7215
  }
7216
7216
  },
7217
- "description": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses."
7217
+ "description": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses. `updated_by` names the team member who saved it last, and is `null` when nobody has, or when the cloud itself rewrote the draft."
7218
7218
  },
7219
7219
  "put": {
7220
7220
  "operationId": "put_api_robots_id_config_draft",
@@ -7365,7 +7365,8 @@
7365
7365
  }
7366
7366
  }
7367
7367
  }
7368
- }
7368
+ },
7369
+ "description": "Each version carries `published_by`, the team member who published it, or `null` for a version published before the cloud recorded authors or by a member who has since been removed."
7369
7370
  }
7370
7371
  },
7371
7372
  "/api/robots/{id}/config/versions/{v}": {
@@ -11509,6 +11510,21 @@
11509
11510
  ],
11510
11511
  "description": "Where the hosted pages load the app's logo from, `<portal>/app/<identifier>/logo`, or `null` when no logo is stored. **Read-only** — the logo is written through `PUT /api/apps/:id/auth-config/logo`."
11511
11512
  },
11513
+ "hosted_logo_shape": {
11514
+ "description": "How the hosted pages lay the logo out: `square` beside the app's name, `wide` in place of it. **Read-only** — derived from the stored image, and `null` exactly when `hosted_logo_url` is `null`. An image whose size cannot be read is `square`. Absent when the server predates this field: read an absent field as unknown, not as `square`. The cloud always sends it.",
11515
+ "anyOf": [
11516
+ {
11517
+ "type": "string",
11518
+ "enum": [
11519
+ "square",
11520
+ "wide"
11521
+ ]
11522
+ },
11523
+ {
11524
+ "type": "null"
11525
+ }
11526
+ ]
11527
+ },
11512
11528
  "hosted_accent": {
11513
11529
  "anyOf": [
11514
11530
  {
@@ -23806,6 +23822,36 @@
23806
23822
  }
23807
23823
  ]
23808
23824
  },
23825
+ "updated_by": {
23826
+ "description": "Who saved the draft last. `null` when nobody has saved it yet, when the cloud itself rewrote it (a slug rename), when the member has since been removed, or when the draft is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
23827
+ "anyOf": [
23828
+ {
23829
+ "type": "object",
23830
+ "properties": {
23831
+ "id": {
23832
+ "type": "string",
23833
+ "format": "uuid",
23834
+ "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)$",
23835
+ "description": "The team member's id."
23836
+ },
23837
+ "name": {
23838
+ "type": "string",
23839
+ "minLength": 1,
23840
+ "maxLength": 200,
23841
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
23842
+ }
23843
+ },
23844
+ "required": [
23845
+ "id",
23846
+ "name"
23847
+ ],
23848
+ "additionalProperties": false
23849
+ },
23850
+ {
23851
+ "type": "null"
23852
+ }
23853
+ ]
23854
+ },
23809
23855
  "issues": {
23810
23856
  "type": "array",
23811
23857
  "items": {
@@ -23873,6 +23919,36 @@
23873
23919
  "format": "date-time",
23874
23920
  "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))$"
23875
23921
  },
23922
+ "published_by": {
23923
+ "description": "Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
23924
+ "anyOf": [
23925
+ {
23926
+ "type": "object",
23927
+ "properties": {
23928
+ "id": {
23929
+ "type": "string",
23930
+ "format": "uuid",
23931
+ "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)$",
23932
+ "description": "The team member's id."
23933
+ },
23934
+ "name": {
23935
+ "type": "string",
23936
+ "minLength": 1,
23937
+ "maxLength": 200,
23938
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
23939
+ }
23940
+ },
23941
+ "required": [
23942
+ "id",
23943
+ "name"
23944
+ ],
23945
+ "additionalProperties": false
23946
+ },
23947
+ {
23948
+ "type": "null"
23949
+ }
23950
+ ]
23951
+ },
23876
23952
  "doc": {
23877
23953
  "type": "object",
23878
23954
  "properties": {
@@ -24977,6 +25053,36 @@
24977
25053
  "type": "string",
24978
25054
  "format": "date-time",
24979
25055
  "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))$"
25056
+ },
25057
+ "published_by": {
25058
+ "description": "Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
25059
+ "anyOf": [
25060
+ {
25061
+ "type": "object",
25062
+ "properties": {
25063
+ "id": {
25064
+ "type": "string",
25065
+ "format": "uuid",
25066
+ "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)$",
25067
+ "description": "The team member's id."
25068
+ },
25069
+ "name": {
25070
+ "type": "string",
25071
+ "minLength": 1,
25072
+ "maxLength": 200,
25073
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
25074
+ }
25075
+ },
25076
+ "required": [
25077
+ "id",
25078
+ "name"
25079
+ ],
25080
+ "additionalProperties": false
25081
+ },
25082
+ {
25083
+ "type": "null"
25084
+ }
25085
+ ]
24980
25086
  }
24981
25087
  },
24982
25088
  "required": [
@@ -416,7 +416,7 @@
416
416
  "method": "GET",
417
417
  "path": "/favicon.svg",
418
418
  "section": "client-auth",
419
- "summary": "Serves the Fleetless icon for the auth portal's and the MCP welcome page's browser tab.",
419
+ "summary": "Serves the Fleetless icon for the auth portal's browser tab.",
420
420
  "audience": "internal",
421
421
  "auth": "none",
422
422
  "rateLimited": false,
@@ -2012,7 +2012,7 @@
2012
2012
  "unsupported_media_type"
2013
2013
  ],
2014
2014
  "transport": "http",
2015
- "notes": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (100 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
2015
+ "notes": "The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, `image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (512 KB); a larger body, or one that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from `hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs."
2016
2016
  },
2017
2017
  {
2018
2018
  "method": "DELETE",
@@ -4075,24 +4075,6 @@
4075
4075
  "transport": "http",
4076
4076
  "notes": "HTML: the next page on success, the same page with the problem named on a refusal. Spends the token as `POST /api/client/verify-email` does; the two-factor setup follows when the app requires it, then the done page."
4077
4077
  },
4078
- {
4079
- "method": "GET",
4080
- "path": "/mcp/welcome",
4081
- "section": "mcp",
4082
- "summary": "Serves the page that tells a person which URL to paste into their MCP client.",
4083
- "audience": "internal",
4084
- "auth": "none",
4085
- "rateLimited": false,
4086
- "ownerTier": false,
4087
- "status": 200,
4088
- "params": [],
4089
- "query": null,
4090
- "request": null,
4091
- "response": null,
4092
- "errors": [],
4093
- "transport": "http",
4094
- "notes": "HTML, one fixed document rendered once at startup — its inputs are process configuration, not request state. Cached for five minutes rather than a day, because the URLs it names can change with a deployment. Its content security policy admits the page's own inline style and script by SHA-256 rather than by `unsafe-inline`, and forbids every external fetch outright. A configured friendly URL that is not a usable absolute http(s) URL is ignored rather than rendered: a typo in a deployment variable must not put a broken URL in front of every end user."
4095
- },
4096
4078
  {
4097
4079
  "method": "POST",
4098
4080
  "path": "/mcp",
@@ -5383,7 +5365,7 @@
5383
5365
  "not_found"
5384
5366
  ],
5385
5367
  "transport": "http",
5386
- "notes": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses."
5368
+ "notes": "Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses. `updated_by` names the team member who saved it last, and is `null` when nobody has, or when the cloud itself rewrote the draft."
5387
5369
  },
5388
5370
  {
5389
5371
  "method": "PUT",
@@ -5474,7 +5456,8 @@
5474
5456
  "invalid_uuid",
5475
5457
  "not_found"
5476
5458
  ],
5477
- "transport": "http"
5459
+ "transport": "http",
5460
+ "notes": "Each version carries `published_by`, the team member who published it, or `null` for a version published before the cloud recorded authors or by a member who has since been removed."
5478
5461
  },
5479
5462
  {
5480
5463
  "method": "GET",
@@ -159,6 +159,21 @@
159
159
  ],
160
160
  "description": "Where the hosted pages load the app's logo from, `<portal>/app/<identifier>/logo`, or `null` when no logo is stored. **Read-only** — the logo is written through `PUT /api/apps/:id/auth-config/logo`."
161
161
  },
162
+ "hosted_logo_shape": {
163
+ "description": "How the hosted pages lay the logo out: `square` beside the app's name, `wide` in place of it. **Read-only** — derived from the stored image, and `null` exactly when `hosted_logo_url` is `null`. An image whose size cannot be read is `square`. Absent when the server predates this field: read an absent field as unknown, not as `square`. The cloud always sends it.",
164
+ "anyOf": [
165
+ {
166
+ "type": "string",
167
+ "enum": [
168
+ "square",
169
+ "wide"
170
+ ]
171
+ },
172
+ {
173
+ "type": "null"
174
+ }
175
+ ]
176
+ },
162
177
  "hosted_accent": {
163
178
  "anyOf": [
164
179
  {
@@ -1724,6 +1724,36 @@
1724
1724
  }
1725
1725
  ]
1726
1726
  },
1727
+ "updated_by": {
1728
+ "description": "Who saved the draft last. `null` when nobody has saved it yet, when the cloud itself rewrote it (a slug rename), when the member has since been removed, or when the draft is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
1729
+ "anyOf": [
1730
+ {
1731
+ "type": "object",
1732
+ "properties": {
1733
+ "id": {
1734
+ "type": "string",
1735
+ "format": "uuid",
1736
+ "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)$",
1737
+ "description": "The team member's id."
1738
+ },
1739
+ "name": {
1740
+ "type": "string",
1741
+ "minLength": 1,
1742
+ "maxLength": 200,
1743
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
1744
+ }
1745
+ },
1746
+ "required": [
1747
+ "id",
1748
+ "name"
1749
+ ],
1750
+ "additionalProperties": false
1751
+ },
1752
+ {
1753
+ "type": "null"
1754
+ }
1755
+ ]
1756
+ },
1727
1757
  "issues": {
1728
1758
  "type": "array",
1729
1759
  "items": {
@@ -12,6 +12,36 @@
12
12
  "format": "date-time",
13
13
  "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))$"
14
14
  },
15
+ "published_by": {
16
+ "description": "Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
17
+ "anyOf": [
18
+ {
19
+ "type": "object",
20
+ "properties": {
21
+ "id": {
22
+ "type": "string",
23
+ "format": "uuid",
24
+ "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)$",
25
+ "description": "The team member's id."
26
+ },
27
+ "name": {
28
+ "type": "string",
29
+ "minLength": 1,
30
+ "maxLength": 200,
31
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
32
+ }
33
+ },
34
+ "required": [
35
+ "id",
36
+ "name"
37
+ ],
38
+ "additionalProperties": false
39
+ },
40
+ {
41
+ "type": "null"
42
+ }
43
+ ]
44
+ },
15
45
  "doc": {
16
46
  "type": "object",
17
47
  "properties": {
@@ -16,6 +16,36 @@
16
16
  "type": "string",
17
17
  "format": "date-time",
18
18
  "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))$"
19
+ },
20
+ "published_by": {
21
+ "description": "Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.",
22
+ "anyOf": [
23
+ {
24
+ "type": "object",
25
+ "properties": {
26
+ "id": {
27
+ "type": "string",
28
+ "format": "uuid",
29
+ "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)$",
30
+ "description": "The team member's id."
31
+ },
32
+ "name": {
33
+ "type": "string",
34
+ "minLength": 1,
35
+ "maxLength": 200,
36
+ "description": "The member's display name, or the local part of the email address when the member has none. Never a full email address."
37
+ }
38
+ },
39
+ "required": [
40
+ "id",
41
+ "name"
42
+ ],
43
+ "additionalProperties": false
44
+ },
45
+ {
46
+ "type": "null"
47
+ }
48
+ ]
19
49
  }
20
50
  },
21
51
  "required": [
@@ -424,10 +424,23 @@ export type AppTwoFactorPolicy = z.infer<typeof appTwoFactorPolicy>;
424
424
  export declare const appHomeUrl: z.ZodURL;
425
425
  /** The accent colour of the hosted pages: `#rrggbb`, lowercase, the one spelling the renderer compares against. */
426
426
  export declare const hostedAccent: z.ZodString;
427
- /** The largest logo the hosted pages take, in bytes: 100 KB. */
428
- export declare const HOSTED_LOGO_MAX_BYTES = 102400;
427
+ /** The largest logo the hosted pages take, in bytes: 512 KB. */
428
+ export declare const HOSTED_LOGO_MAX_BYTES = 524288;
429
429
  /** The logo types the hosted pages take. An SVG is served sandboxed and embedded only as an image. */
430
430
  export declare const HOSTED_LOGO_TYPES: readonly ["image/png", "image/svg+xml"];
431
+ /**
432
+ * **How a stored logo is laid out on the hosted pages.**
433
+ *
434
+ * `wide` is a wordmark: it replaces the app's name. `square` is a mark: it
435
+ * sits beside the name. The cloud reads it from the stored image (its width
436
+ * and height, or an SVG's `viewBox`) and calls an image `wide` when it is more
437
+ * than one and a half times as wide as it is high.
438
+ */
439
+ export declare const hostedLogoShape: z.ZodEnum<{
440
+ square: "square";
441
+ wide: "wide";
442
+ }>;
443
+ export type HostedLogoShape = z.infer<typeof hostedLogoShape>;
431
444
  /**
432
445
  * **The Fleetless-hosted pages an unset URL falls back to**, one per URL
433
446
  * field, as templates with the same placeholder the field takes. Read-only:
@@ -481,6 +494,10 @@ export declare const appAuthConfig: z.ZodObject<{
481
494
  off: "off";
482
495
  }>;
483
496
  hosted_logo_url: z.ZodNullable<z.ZodURL>;
497
+ hosted_logo_shape: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
498
+ square: "square";
499
+ wide: "wide";
500
+ }>>>;
484
501
  hosted_accent: z.ZodNullable<z.ZodString>;
485
502
  hosted_pages: z.ZodObject<{
486
503
  invite_url: z.ZodURL;
package/dist/app-users.js CHANGED
@@ -507,10 +507,19 @@ export const appHomeUrl = z
507
507
  }, { message: 'An https URL (http only on localhost) without a placeholder.' });
508
508
  /** The accent colour of the hosted pages: `#rrggbb`, lowercase, the one spelling the renderer compares against. */
509
509
  export const hostedAccent = z.string().regex(/^#[0-9a-f]{6}$/, 'must be a lowercase hex colour, #rrggbb');
510
- /** The largest logo the hosted pages take, in bytes: 100 KB. */
511
- export const HOSTED_LOGO_MAX_BYTES = 102_400;
510
+ /** The largest logo the hosted pages take, in bytes: 512 KB. */
511
+ export const HOSTED_LOGO_MAX_BYTES = 524_288;
512
512
  /** The logo types the hosted pages take. An SVG is served sandboxed and embedded only as an image. */
513
513
  export const HOSTED_LOGO_TYPES = ['image/png', 'image/svg+xml'];
514
+ /**
515
+ * **How a stored logo is laid out on the hosted pages.**
516
+ *
517
+ * `wide` is a wordmark: it replaces the app's name. `square` is a mark: it
518
+ * sits beside the name. The cloud reads it from the stored image (its width
519
+ * and height, or an SVG's `viewBox`) and calls an image `wide` when it is more
520
+ * than one and a half times as wide as it is high.
521
+ */
522
+ export const hostedLogoShape = z.enum(['square', 'wide']);
514
523
  /**
515
524
  * **The Fleetless-hosted pages an unset URL falls back to**, one per URL
516
525
  * field, as templates with the same placeholder the field takes. Read-only:
@@ -584,6 +593,9 @@ export const appAuthConfig = z.object({
584
593
  hosted_logo_url: z.url().nullable().meta({
585
594
  description: 'Where the hosted pages load the app\'s logo from, `<portal>/app/<identifier>/logo`, or `null` when no logo is stored. **Read-only** — the logo is written through `PUT /api/apps/:id/auth-config/logo`.',
586
595
  }),
596
+ hosted_logo_shape: hostedLogoShape.nullable().optional().meta({
597
+ description: 'How the hosted pages lay the logo out: `square` beside the app\'s name, `wide` in place of it. **Read-only** — derived from the stored image, and `null` exactly when `hosted_logo_url` is `null`. An image whose size cannot be read is `square`. Absent when the server predates this field: read an absent field as unknown, not as `square`. The cloud always sends it.',
598
+ }),
587
599
  hosted_accent: hostedAccent.nullable().meta({
588
600
  description: 'The accent colour of the hosted pages, `#rrggbb` in lowercase, or `null` for the neutral shell\'s own.',
589
601
  }),
package/dist/index.d.ts CHANGED
@@ -33,12 +33,12 @@ export { DOCUMENT_ROOT_PATH, EXPOSURE_SECTIONS, schemaIssues, formatPath, splitF
33
33
  export type { SchemaIssue, ExposureSection } from './config-issues.js';
34
34
  export { rosGraphEntry, rosGraph, typeField, typeDefinition, parameterFieldsOf } from './introspection.js';
35
35
  export type { RosGraphEntry, RosGraph, TypeField, TypeDefinition } from './introspection.js';
36
- export { robot, patchRobotResponse, robotToken, createRobotRequest, createRobotResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, exposureCounts, protocolStatusValue, robotListItem, robotListResponse, datapointValue, robotDetailResponse, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse, robotDetailsDoc, putRobotDetailsResponse, putRobotDetailsRequest, invokeRequest, invokeResponse, cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, releaseLiveQuery, serviceCallResponse, invokeOrServiceResponse, publishRequest, jobResponse, robotJobsResponse, rateLimitDetails, exposure, exposureListResponse, SNAPSHOT_HEADERS, ASSET_UPLOAD_HEADERS, cameraDescriptor, cameraListResponse, liveSessionResponse, snapshotMetaResponse, historyQuery, historySamplesResponse, historyBucketsResponse, historyResponse, orgQuotas, orgQuotaUsage, orgQuotaUsageCounts, robotDeletionSummary, RESOURCE_HEALTH_STATES, resourceHealthState, resourceHealthListResponse, orgHealthQuery, robotDeleteQuery, patchRobotRequest, renameSlugRequest, renameSlugResponse, slugUsageResponse, } from './rest.js';
36
+ export { robot, patchRobotResponse, robotToken, createRobotRequest, createRobotResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, exposureCounts, protocolStatusValue, robotListItem, robotListResponse, datapointValue, robotDetailResponse, configAuthor, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse, robotDetailsDoc, putRobotDetailsResponse, putRobotDetailsRequest, invokeRequest, invokeResponse, cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, releaseLiveQuery, serviceCallResponse, invokeOrServiceResponse, publishRequest, jobResponse, robotJobsResponse, rateLimitDetails, exposure, exposureListResponse, SNAPSHOT_HEADERS, ASSET_UPLOAD_HEADERS, cameraDescriptor, cameraListResponse, liveSessionResponse, snapshotMetaResponse, historyQuery, historySamplesResponse, historyBucketsResponse, historyResponse, orgQuotas, orgQuotaUsage, orgQuotaUsageCounts, robotDeletionSummary, RESOURCE_HEALTH_STATES, resourceHealthState, resourceHealthListResponse, orgHealthQuery, robotDeleteQuery, patchRobotRequest, renameSlugRequest, renameSlugResponse, slugUsageResponse, } from './rest.js';
37
37
  export type { HistoryQuery, HistorySamplesResponse, HistoryResponse, HistoryBucketsResponse, OrgQuotas, OrgQuotaUsage, OrgQuotaUsageCounts, RobotDeletionSummary, ResourceHealthState, ResourceHealthListResponse, OrgHealthQuery, RobotDeleteQuery, PatchRobotRequest, RenameSlugRequest, RenameSlugResponse, SlugUsageResponse, } from './rest.js';
38
38
  export { LATENCY_BUCKET_MS, BRIDGE_LATENCY_RETENTION_DAYS, MAX_LATENCY_BUCKETS_PER_RESPONSE, latencyBucket, robotLatencySeries, orgLatencyQuery, orgLatencyResponse, USAGE_WINDOW_MAX_DAYS, usageMetric, usageDay, orgUsageQuery, usageRow, orgUsageResponse, } from './rest.js';
39
39
  export type { LatencyBucket, RobotLatencySeries, OrgLatencyResponse } from './rest.js';
40
40
  export type { UsageMetric, OrgUsageQuery, UsageRow, OrgUsageResponse } from './rest.js';
41
- export type { Robot, PatchRobotResponse, CreateRobotRequest, CreateRobotResponse, RobotTokenRotateResponse, JointStatePutRequest, JointStatePutResponse, ExposureCounts, ProtocolStatusValue, RobotListItem, RobotListResponse, DatapointValue, RobotDetailResponse, ConfigDraftResponse, PutConfigDraftRequest, PublishConfigResponse, ConfigVersionsResponse, ConfigVersionResponse, IntrospectionResponse, TypesResponse, FetchTypesRequest, FetchTypesResponse, DatapointDescriptor, DatapointListResponse, RobotDetailsDoc, PutRobotDetailsResponse, PutRobotDetailsRequest, InvokeRequest, InvokeResponse, CancelRequest, RecoverHeldJobRequest, RecoverHeldJobResponse, ReleaseLiveQuery, ServiceCallResponse, InvokeOrServiceResponse, PublishRequest, JobResponse, RobotJobsResponse, RateLimitDetails, Exposure, ExposureListResponse, CameraDescriptor, CameraListResponse, LiveSessionResponse, SnapshotMetaResponse, } from './rest.js';
41
+ export type { Robot, PatchRobotResponse, CreateRobotRequest, CreateRobotResponse, RobotTokenRotateResponse, JointStatePutRequest, JointStatePutResponse, ExposureCounts, ProtocolStatusValue, RobotListItem, RobotListResponse, DatapointValue, RobotDetailResponse, ConfigAuthor, ConfigDraftResponse, PutConfigDraftRequest, PublishConfigResponse, ConfigVersionsResponse, ConfigVersionResponse, IntrospectionResponse, TypesResponse, FetchTypesRequest, FetchTypesResponse, DatapointDescriptor, DatapointListResponse, RobotDetailsDoc, PutRobotDetailsResponse, PutRobotDetailsRequest, InvokeRequest, InvokeResponse, CancelRequest, RecoverHeldJobRequest, RecoverHeldJobResponse, ReleaseLiveQuery, ServiceCallResponse, InvokeOrServiceResponse, PublishRequest, JobResponse, RobotJobsResponse, RateLimitDetails, Exposure, ExposureListResponse, CameraDescriptor, CameraListResponse, LiveSessionResponse, SnapshotMetaResponse, } from './rest.js';
42
42
  export { clientAuth, authOk, authError, clientInvoke, clientCancel, clientPublish, commandResult, errorFrame, clientSubscribe, clientUnsubscribe, subscribeError, datapointEvent, resourceHealthEvent, resourceHealthCleared, liveSessionEndReason, liveSessionEvent, ORG_EVENT_SAMPLE_INTERVAL_MS, ORG_EVENT_ORG_CEILING_PER_SECOND, ORG_EVENT_BUFFER_SIZE, ORG_EVENT_BUFFER_IDLE_MS, ORG_EVENT_DETAIL_MAX_BYTES, orgEventKind, orgEventSeverity, orgEvent, orgEventSubscribe, orgEventUnsubscribe, orgEventReplay, orgEventDropped, } from './realtime.js';
43
43
  export type { ClientAuth, AuthOk, AuthError, ClientInvoke, ClientCancel, ClientPublish, CommandResult, ErrorFrame, ClientSubscribe, ClientUnsubscribe, SubscribeError, DatapointEvent, ResourceHealthEvent, ResourceHealthCleared, LiveSessionEndReason, LiveSessionEvent, OrgEventKind, OrgEventSeverity, OrgEvent, OrgEventSubscribe, OrgEventUnsubscribe, OrgEventReplay, OrgEventDropped, } from './realtime.js';
44
44
  export { password, org, patchOrgResponse, sessionTokens, refreshRequest, WAITLIST_F1_TEXT_VERSION, waitlistRequest, USER_DISPLAY_NAME_MAX, orgAdminTier, fleetlessUser, fleetlessUserListResponse, createTeamInviteRequest, teamInvite, pendingTeamInvite, pendingTeamInviteListResponse, acceptTeamInviteRequest, patchFleetlessUserRequest, tierChangeRequest, mailStatus, tierRequiredDetails, passwordChangeRequest, idpIssuer, loginCode, totpCode, recoveryCode, recoveryCodesList, twoFactorSetupResponse, webauthnJson, webauthnOptionsResponse, developerPasskey, developerTwoFactor, createPasskeyRequest, createPasskeyResponse, renamePasskeyRequest, totpConfirmRequest, totpConfirmResponse, recoveryCodesResponse, authMeResponse, patchOrgRequest, patchAuthMeRequest, } from './identity.js';
@@ -57,8 +57,8 @@ export { httpsLegalUrl, legalDocumentReference, legalTextReferences, TERMS_VERSI
57
57
  export type { LegalDocumentReference, LegalTextReferences } from './legal.js';
58
58
  export { legalAcceptanceListQuery, legalAcceptanceVersionRow, legalAcceptanceListResponse } from './legal-acceptances.js';
59
59
  export type { LegalAcceptanceListQuery, LegalAcceptanceVersionRow, LegalAcceptanceListResponse } from './legal-acceptances.js';
60
- export { APP_USER_DISPLAY_NAME_MAX, APP_URL_PLACEHOLDERS, MAIL_TEMPLATE_VARIABLES, DEFAULT_MAIL_TEMPLATES, providerSlug, appUserStatus, appUser, appUserListResponse, createAppUserRequest, patchAppUserRequest, createAppInvitationRequest, appInvitation, pendingAppInvitation, appInvitationListResponse, appOidcProvider, appOidcProviderListResponse, createAppOidcProviderRequest, patchAppOidcProviderRequest, appUrlTemplate, allowedOrigin, emailDomain, appAuthConfig, appSignInMethods, appTwoFactorPolicy, appHomeUrl, hostedAccent, HOSTED_LOGO_MAX_BYTES, HOSTED_LOGO_TYPES, appHostedPages, putAppAuthRegistrationRequest, putAppAuthSignInRequest, putAppAuthUrlsRequest, putAppAuthMcpRequest, putAppAuthLookRequest, mailTemplateKind, appMailTemplate, appMailTemplateListResponse, putAppMailTemplateRequest, mailTemplatePreviewRequest, mailTemplatePreviewResponse, mailTemplateProblemDetails, mailOutcome, } from './app-users.js';
61
- export type { AppUserStatus, AppUser, AppUserListResponse, CreateAppUserRequest, PatchAppUserRequest, CreateAppInvitationRequest, AppInvitation, PendingAppInvitation, AppInvitationListResponse, AppOidcProvider, AppOidcProviderListResponse, CreateAppOidcProviderRequest, PatchAppOidcProviderRequest, AppAuthConfig, AppSignInMethods, AppTwoFactorPolicy, AppHostedPages, PutAppAuthRegistrationRequest, PutAppAuthSignInRequest, PutAppAuthUrlsRequest, PutAppAuthMcpRequest, PutAppAuthLookRequest, MailTemplateKind, AppMailTemplate, AppMailTemplateListResponse, PutAppMailTemplateRequest, MailTemplatePreviewRequest, MailTemplatePreviewResponse, MailTemplateProblemDetails, MailOutcome, } from './app-users.js';
60
+ export { APP_USER_DISPLAY_NAME_MAX, APP_URL_PLACEHOLDERS, MAIL_TEMPLATE_VARIABLES, DEFAULT_MAIL_TEMPLATES, providerSlug, appUserStatus, appUser, appUserListResponse, createAppUserRequest, patchAppUserRequest, createAppInvitationRequest, appInvitation, pendingAppInvitation, appInvitationListResponse, appOidcProvider, appOidcProviderListResponse, createAppOidcProviderRequest, patchAppOidcProviderRequest, appUrlTemplate, allowedOrigin, emailDomain, appAuthConfig, appSignInMethods, appTwoFactorPolicy, appHomeUrl, hostedAccent, hostedLogoShape, HOSTED_LOGO_MAX_BYTES, HOSTED_LOGO_TYPES, appHostedPages, putAppAuthRegistrationRequest, putAppAuthSignInRequest, putAppAuthUrlsRequest, putAppAuthMcpRequest, putAppAuthLookRequest, mailTemplateKind, appMailTemplate, appMailTemplateListResponse, putAppMailTemplateRequest, mailTemplatePreviewRequest, mailTemplatePreviewResponse, mailTemplateProblemDetails, mailOutcome, } from './app-users.js';
61
+ export type { AppUserStatus, AppUser, AppUserListResponse, CreateAppUserRequest, PatchAppUserRequest, CreateAppInvitationRequest, AppInvitation, PendingAppInvitation, AppInvitationListResponse, AppOidcProvider, AppOidcProviderListResponse, CreateAppOidcProviderRequest, PatchAppOidcProviderRequest, AppAuthConfig, AppSignInMethods, AppTwoFactorPolicy, AppHostedPages, HostedLogoShape, PutAppAuthRegistrationRequest, PutAppAuthSignInRequest, PutAppAuthUrlsRequest, PutAppAuthMcpRequest, PutAppAuthLookRequest, MailTemplateKind, AppMailTemplate, AppMailTemplateListResponse, PutAppMailTemplateRequest, MailTemplatePreviewRequest, MailTemplatePreviewResponse, MailTemplateProblemDetails, MailOutcome, } from './app-users.js';
62
62
  export { assetKind, URDF_ASSET_NAME, asset, urdfCompleteness, assetListResponse, assetsClearResponse, missingAssetQuery, assetSyncRequest, assetSyncResponse, assetSyncState, assetSyncStatus, assetFailure, assetFailureKind, assetStoreRefusedDetails, assetSyncBusyDetails, ROBOT_ASSET_STORE_BYTES, ASSET_FILE_MAX_BYTES, } from './assets.js';
63
63
  export type { AssetKind, Asset, UrdfCompleteness, AssetListResponse, AssetsClearResponse, MissingAssetQuery, AssetSyncRequest, AssetSyncResponse, AssetSyncState, AssetSyncStatus, AssetFailure, AssetFailureKind, AssetStoreRefusedDetails, AssetSyncBusyDetails, } from './assets.js';
64
64
  export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS } from './audit.js';
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ cameraSource, cameraCredentials, } from './config.js';
26
26
  */
27
27
  export { DOCUMENT_ROOT_PATH, EXPOSURE_SECTIONS, schemaIssues, formatPath, splitFormatPath, configSchemaHash, } from './config-issues.js';
28
28
  export { rosGraphEntry, rosGraph, typeField, typeDefinition, parameterFieldsOf } from './introspection.js';
29
- export { robot, patchRobotResponse, robotToken, createRobotRequest, createRobotResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, exposureCounts, protocolStatusValue, robotListItem, robotListResponse, datapointValue, robotDetailResponse, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse, robotDetailsDoc, putRobotDetailsResponse, putRobotDetailsRequest, invokeRequest, invokeResponse,
29
+ export { robot, patchRobotResponse, robotToken, createRobotRequest, createRobotResponse, robotTokenRotateResponse, jointStatePutRequest, jointStatePutResponse, exposureCounts, protocolStatusValue, robotListItem, robotListResponse, datapointValue, robotDetailResponse, configAuthor, configDraftResponse, putConfigDraftRequest, publishConfigResponse, configVersionsResponse, configVersionResponse, introspectionResponse, typesResponse, fetchTypesRequest, fetchTypesResponse, datapointDescriptor, datapointListResponse, robotDetailsDoc, putRobotDetailsResponse, putRobotDetailsRequest, invokeRequest, invokeResponse,
30
30
  // Addressing.
31
31
  cancelRequest, recoverHeldJobRequest, recoverHeldJobResponse, releaseLiveQuery, serviceCallResponse, invokeOrServiceResponse, publishRequest, jobResponse, robotJobsResponse, rateLimitDetails, exposure, exposureListResponse, SNAPSHOT_HEADERS, ASSET_UPLOAD_HEADERS, cameraDescriptor, cameraListResponse, liveSessionResponse, snapshotMetaResponse,
32
32
  // Retention, history, quotas.
@@ -58,7 +58,7 @@ export { clientRobotListItem, clientRobotListResponse } from './client-robots.js
58
58
  export { httpsLegalUrl, legalDocumentReference, legalTextReferences, TERMS_VERSION, TERMS_VERSION_DATE, TERMS_VERSION_URL, DPA_VERSION, DPA_VERSION_DATE, DPA_VERSION_URL, } from './legal.js';
59
59
  export { legalAcceptanceListQuery, legalAcceptanceVersionRow, legalAcceptanceListResponse } from './legal-acceptances.js';
60
60
  // The per-app identity space.
61
- export { APP_USER_DISPLAY_NAME_MAX, APP_URL_PLACEHOLDERS, MAIL_TEMPLATE_VARIABLES, DEFAULT_MAIL_TEMPLATES, providerSlug, appUserStatus, appUser, appUserListResponse, createAppUserRequest, patchAppUserRequest, createAppInvitationRequest, appInvitation, pendingAppInvitation, appInvitationListResponse, appOidcProvider, appOidcProviderListResponse, createAppOidcProviderRequest, patchAppOidcProviderRequest, appUrlTemplate, allowedOrigin, emailDomain, appAuthConfig, appSignInMethods, appTwoFactorPolicy, appHomeUrl, hostedAccent, HOSTED_LOGO_MAX_BYTES, HOSTED_LOGO_TYPES, appHostedPages, putAppAuthRegistrationRequest, putAppAuthSignInRequest, putAppAuthUrlsRequest, putAppAuthMcpRequest, putAppAuthLookRequest, mailTemplateKind, appMailTemplate, appMailTemplateListResponse, putAppMailTemplateRequest, mailTemplatePreviewRequest, mailTemplatePreviewResponse, mailTemplateProblemDetails, mailOutcome, } from './app-users.js';
61
+ export { APP_USER_DISPLAY_NAME_MAX, APP_URL_PLACEHOLDERS, MAIL_TEMPLATE_VARIABLES, DEFAULT_MAIL_TEMPLATES, providerSlug, appUserStatus, appUser, appUserListResponse, createAppUserRequest, patchAppUserRequest, createAppInvitationRequest, appInvitation, pendingAppInvitation, appInvitationListResponse, appOidcProvider, appOidcProviderListResponse, createAppOidcProviderRequest, patchAppOidcProviderRequest, appUrlTemplate, allowedOrigin, emailDomain, appAuthConfig, appSignInMethods, appTwoFactorPolicy, appHomeUrl, hostedAccent, hostedLogoShape, HOSTED_LOGO_MAX_BYTES, HOSTED_LOGO_TYPES, appHostedPages, putAppAuthRegistrationRequest, putAppAuthSignInRequest, putAppAuthUrlsRequest, putAppAuthMcpRequest, putAppAuthLookRequest, mailTemplateKind, appMailTemplate, appMailTemplateListResponse, putAppMailTemplateRequest, mailTemplatePreviewRequest, mailTemplatePreviewResponse, mailTemplateProblemDetails, mailOutcome, } from './app-users.js';
62
62
  export { assetKind, URDF_ASSET_NAME, asset, urdfCompleteness, assetListResponse, assetsClearResponse, missingAssetQuery, assetSyncRequest, assetSyncResponse, assetSyncState, assetSyncStatus, assetFailure, assetFailureKind, assetStoreRefusedDetails, assetSyncBusyDetails, ROBOT_ASSET_STORE_BYTES, ASSET_FILE_MAX_BYTES, } from './assets.js';
63
63
  export { auditActor, auditEvent, auditQuery, auditListResponse, AUDIT_CSV_COLUMNS, AUDIT_RETENTION_DAYS } from './audit.js';
64
64
  export { alertRowCondition, alertSeverity, alertState, datapointAlertRow, alertListResponse, orgFiringAlertsResponse, orgAlertsQuery, datapointDisplay, putDatapointDisplayRequest, } from './alerts.js';
package/dist/rest.d.ts CHANGED
@@ -244,6 +244,22 @@ export declare const robotDetailResponse: z.ZodObject<{
244
244
  created_at: z.ZodISODateTime;
245
245
  }, z.core.$strip>;
246
246
  export type RobotDetailResponse = z.infer<typeof robotDetailResponse>;
247
+ /**
248
+ * **Who did it**: a console team member, by the name the team sees.
249
+ *
250
+ * `name` is the member's display name, or the local part of the member's email
251
+ * address when the member has set none. It is never an email address, so
252
+ * a response that carries authors can be shown to everyone who can read
253
+ * the configuration. `id` is the member's id, stable across renames.
254
+ *
255
+ * A member who has since been removed has no name to show, so the author is
256
+ * `null` wherever this shape is nullable.
257
+ */
258
+ export declare const configAuthor: z.ZodObject<{
259
+ id: z.ZodUUID;
260
+ name: z.ZodString;
261
+ }, z.core.$strip>;
262
+ export type ConfigAuthor = z.infer<typeof configAuthor>;
247
263
  /**
248
264
  * The editable configuration. `issues` is recomputed on every read and
249
265
  * write, so the editor never has to guess whether it may publish.
@@ -471,6 +487,10 @@ export declare const configDraftResponse: z.ZodObject<{
471
487
  }, z.core.$strict>>;
472
488
  source: z.ZodString;
473
489
  updated_at: z.ZodNullable<z.ZodISODateTime>;
490
+ updated_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
491
+ id: z.ZodUUID;
492
+ name: z.ZodString;
493
+ }, z.core.$strip>>>;
474
494
  issues: z.ZodArray<z.ZodObject<{
475
495
  path: z.ZodString;
476
496
  slug: z.ZodNullable<z.ZodString>;
@@ -516,6 +536,10 @@ export declare const configVersionsResponse: z.ZodObject<{
516
536
  versions: z.ZodArray<z.ZodObject<{
517
537
  version: z.ZodNumber;
518
538
  published_at: z.ZodISODateTime;
539
+ published_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
540
+ id: z.ZodUUID;
541
+ name: z.ZodString;
542
+ }, z.core.$strip>>>;
519
543
  }, z.core.$strip>>;
520
544
  }, z.core.$strip>;
521
545
  export type ConfigVersionsResponse = z.infer<typeof configVersionsResponse>;
@@ -530,6 +554,10 @@ export type ConfigVersionsResponse = z.infer<typeof configVersionsResponse>;
530
554
  export declare const configVersionResponse: z.ZodObject<{
531
555
  version: z.ZodNumber;
532
556
  published_at: z.ZodISODateTime;
557
+ published_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
558
+ id: z.ZodUUID;
559
+ name: z.ZodString;
560
+ }, z.core.$strip>>>;
533
561
  doc: z.ZodObject<{
534
562
  fleetless: z.ZodLiteral<1>;
535
563
  messages: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
package/dist/rest.js CHANGED
@@ -174,6 +174,23 @@ export const robotDetailResponse = z.object({
174
174
  .nullable(),
175
175
  config: configState,
176
176
  });
177
+ /**
178
+ * **Who did it**: a console team member, by the name the team sees.
179
+ *
180
+ * `name` is the member's display name, or the local part of the member's email
181
+ * address when the member has set none. It is never an email address, so
182
+ * a response that carries authors can be shown to everyone who can read
183
+ * the configuration. `id` is the member's id, stable across renames.
184
+ *
185
+ * A member who has since been removed has no name to show, so the author is
186
+ * `null` wherever this shape is nullable.
187
+ */
188
+ export const configAuthor = z.object({
189
+ id: z.uuid().meta({ description: 'The team member\'s id.' }),
190
+ name: z.string().min(1).max(200).meta({
191
+ description: 'The member\'s display name, or the local part of the email address when the member has none. Never a full email address.',
192
+ }),
193
+ });
177
194
  /**
178
195
  * The editable configuration. `issues` is recomputed on every read and
179
196
  * write, so the editor never has to guess whether it may publish.
@@ -209,6 +226,9 @@ export const configDraftResponse = z.object({
209
226
  doc: robotConfigDoc.nullable(),
210
227
  source: z.string(),
211
228
  updated_at: z.iso.datetime().nullable(),
229
+ updated_by: configAuthor.nullable().optional().meta({
230
+ description: 'Who saved the draft last. `null` when nobody has saved it yet, when the cloud itself rewrote it (a slug rename), when the member has since been removed, or when the draft is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.',
231
+ }),
212
232
  issues: z.array(validationIssue),
213
233
  });
214
234
  /**
@@ -240,6 +260,9 @@ export const configVersionsResponse = z.object({
240
260
  versions: z.array(z.object({
241
261
  version: z.number().int().positive(),
242
262
  published_at: z.iso.datetime(),
263
+ published_by: configAuthor.nullable().optional().meta({
264
+ description: 'Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.',
265
+ }),
243
266
  })),
244
267
  });
245
268
  /**
@@ -253,6 +276,9 @@ export const configVersionsResponse = z.object({
253
276
  export const configVersionResponse = z.object({
254
277
  version: z.number().int().positive(),
255
278
  published_at: z.iso.datetime(),
279
+ published_by: configAuthor.nullable().optional().meta({
280
+ description: 'Who published the version. `null` when the member has since been removed, or when the version is older than this field. Absent when the server predates this field: read an absent field as unknown, the same as `null`. The cloud always sends it.',
281
+ }),
256
282
  doc: robotConfigDoc,
257
283
  source: z.string(),
258
284
  });
package/dist/routes.js CHANGED
@@ -452,7 +452,7 @@ export const ROUTES = [
452
452
  /* ------------------------------------------- client auth (portal pages) */
453
453
  {
454
454
  method: 'GET', path: '/favicon.svg', section: 'client-auth',
455
- summary: 'Serves the Fleetless icon for the auth portal\'s and the MCP welcome page\'s browser tab.',
455
+ summary: 'Serves the Fleetless icon for the auth portal\'s browser tab.',
456
456
  audience: 'internal', auth: 'none', rateLimited: false, ownerTier: false, status: 200,
457
457
  params: [], query: null, request: null, response: null, errors: [], transport: 'http',
458
458
  notes: 'An SVG, not JSON. Those pages carry a Content-Security-Policy that admits no `data:` image, so the icon is a file on their own ' +
@@ -1141,7 +1141,7 @@ export const ROUTES = [
1141
1141
  query: null, request: null, response: appAuthConfig,
1142
1142
  errors: [...DEVELOPER_GUARD, 'invalid_uuid', 'validation_error', 'not_found', 'unsupported_media_type'], transport: 'http',
1143
1143
  notes: 'The body is the **raw image**, not JSON, so it has no request schema: `Content-Type` is one of `HOSTED_LOGO_TYPES` (`image/png`, ' +
1144
- '`image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (100 KB); a larger body, or one ' +
1144
+ '`image/svg+xml`) and anything else is `415 unsupported_media_type`. At most `HOSTED_LOGO_MAX_BYTES` (512 KB); a larger body, or one ' +
1145
1145
  'that is not the image its type names, is `400 validation_error`. A new logo replaces the stored one. The hosted pages load it from ' +
1146
1146
  '`hosted_logo_url` as an image only, and the cloud serves an SVG sandboxed, so a script inside one never runs.',
1147
1147
  },
@@ -1625,17 +1625,6 @@ export const ROUTES = [
1625
1625
  /* --------------------------------- the Fleetless-hosted app pages */
1626
1626
  ...HOSTED_APP_ROUTES,
1627
1627
  /* ---------------------------------------------------- mcp (the endpoint) */
1628
- {
1629
- method: 'GET', path: '/mcp/welcome', section: 'mcp',
1630
- summary: 'Serves the page that tells a person which URL to paste into their MCP client.',
1631
- audience: 'internal', auth: 'none', rateLimited: false, ownerTier: false, status: 200,
1632
- params: [], query: null, request: null, response: null, errors: [], transport: 'http',
1633
- notes: 'HTML, one fixed document rendered once at startup — its inputs are process configuration, not request state. Cached for five minutes ' +
1634
- 'rather than a day, because the URLs it names can change with a deployment. Its content security policy admits the page\'s own inline ' +
1635
- 'style and script by SHA-256 rather than by `unsafe-inline`, and forbids every external fetch outright. A configured friendly URL that ' +
1636
- 'is not a usable absolute http(s) URL is ignored rather than rendered: a typo in a deployment variable must not put a broken URL in ' +
1637
- 'front of every end user.',
1638
- },
1639
1628
  {
1640
1629
  method: 'POST', path: '/mcp', section: 'mcp',
1641
1630
  summary: 'The central MCP endpoint: a stateless Streamable HTTP transport carrying the robot and console tool catalogs.',
@@ -2423,7 +2412,8 @@ export const ROUTES = [
2423
2412
  query: null, request: null, response: configDraftResponse,
2424
2413
  errors: [...DEVELOPER_GUARD, 'invalid_uuid', 'not_found'], transport: 'http',
2425
2414
  notes: 'Issues are recomputed on every read and every write, so an editor never has to guess whether it may publish. `doc` is `null` for a ' +
2426
- 'draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses.',
2415
+ 'draft that is valid YAML but not a Fleetless configuration — a state the format admits and the publish route refuses. `updated_by` ' +
2416
+ 'names the team member who saved it last, and is `null` when nobody has, or when the cloud itself rewrote the draft.',
2427
2417
  },
2428
2418
  {
2429
2419
  method: 'PUT', path: '/api/robots/:id/config/draft', section: 'config',
@@ -2456,6 +2446,7 @@ export const ROUTES = [
2456
2446
  params: [{ name: 'id', description: 'The robot\'s uuid, as returned by `POST /api/robots` or listed by `GET /api/robots`.' }],
2457
2447
  query: null, request: null, response: configVersionsResponse,
2458
2448
  errors: [...DEVELOPER_GUARD, 'invalid_uuid', 'not_found'], transport: 'http',
2449
+ notes: 'Each version carries `published_by`, the team member who published it, or `null` for a version published before the cloud recorded authors or by a member who has since been removed.',
2459
2450
  },
2460
2451
  {
2461
2452
  method: 'GET', path: '/api/robots/:id/config/versions/:v', section: 'config',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetless/contracts",
3
- "version": "13.2.0",
3
+ "version": "13.3.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",