@fleetless/sdk 3.1.0 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to `@fleetless/sdk`. The format follows Keep a Changelog; th
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [3.1.1] — 2026-09-17
8
+
9
+ ### Fixed
10
+
11
+ - Every field of `JobHistoryOptions` carries its description, and `McpExposure` and `McpCapabilities` are documented aliases rather than bare re-exports, so the generated reference describes them. No behaviour changes.
12
+
7
13
  ## [3.1.0] — 2026-09-17
8
14
 
9
15
  ### Added
package/dist/index.d.cts CHANGED
@@ -26,13 +26,13 @@ declare const mcpExposure: z.ZodObject<{
26
26
  decimals: z.ZodNullable<z.ZodNumber>;
27
27
  input_schema: z.ZodNullable<z.ZodUnknown>;
28
28
  }, z.core.$strip>;
29
- type McpExposure = z.infer<typeof mcpExposure>;
29
+ type McpExposure$1 = z.infer<typeof mcpExposure>;
30
30
  /** The two role capabilities a robot tool can need beyond a slug grant. `presence` is a stream and has no tool. */
31
31
  declare const mcpCapabilities: z.ZodObject<{
32
32
  action_history: z.ZodBoolean;
33
33
  assets: z.ZodBoolean;
34
34
  }, z.core.$strip>;
35
- type McpCapabilities = z.infer<typeof mcpCapabilities>;
35
+ type McpCapabilities$1 = z.infer<typeof mcpCapabilities>;
36
36
  /**
37
37
  * What one caller may do on one robot — the answer to `robot_describe`, and
38
38
  * since 1.1.0 to `GET /api/robots/:id/datasheet` as well. One schema for both
@@ -2049,13 +2049,19 @@ interface DatapointsApi {
2049
2049
  * `validation_error`, not quietly reduced.
2050
2050
  */
2051
2051
  interface JobHistoryOptions {
2052
+ /** Only runs of this action or service. */
2052
2053
  slug?: string;
2054
+ /** Only runs in this state: `running`, `succeeded`, `failed`, `cancelled` or `lost`. */
2053
2055
  state?: JobState;
2056
+ /** Only `action` runs, or only `service` runs. */
2054
2057
  kind?: 'action' | 'service';
2058
+ /** How many runs to return, 1 to 200; absent means 100. Above the cap the platform refuses with `validation_error` rather than trimming. */
2055
2059
  limit?: number;
2056
2060
  /** The previous page's `next_cursor`. Send it back rather than computing one. */
2057
2061
  beforeSeq?: number;
2062
+ /** Only runs that started at or after this unix timestamp in milliseconds; with `toMs` the window is half-open, `[from, to)`. */
2058
2063
  fromMs?: number;
2064
+ /** Only runs that started before this unix timestamp in milliseconds. */
2059
2065
  toMs?: number;
2060
2066
  }
2061
2067
  /**
@@ -2139,6 +2145,20 @@ interface PublishersApi {
2139
2145
  publish(robotId: string, slug: string, message: Record<string, unknown>, options?: SendCommandOptions): Promise<void>;
2140
2146
  }
2141
2147
 
2148
+ /**
2149
+ * One row of a datasheet's `exposures`: a granted datapoint, action, service,
2150
+ * publisher or camera, with its `slug`, `kind`, `description` (or `null`),
2151
+ * a datapoint's `unit` and `decimals`, and for anything that takes
2152
+ * parameters the JSON Schema under `input_schema`. The wire shape is
2153
+ * contracts' `mcpExposure`; the alias exists so the reference can describe it.
2154
+ */
2155
+ type McpExposure = McpExposure$1;
2156
+ /**
2157
+ * The two role capabilities a datasheet names beyond slugs: `action_history`
2158
+ * (may `jobs.history` be read) and `assets` (may the URDF and meshes be read).
2159
+ * The wire shape is contracts' `mcpCapabilities`.
2160
+ */
2161
+ type McpCapabilities = McpCapabilities$1;
2142
2162
  /**
2143
2163
  * Discovery, reachable as `client.robots`: which robots may I name at all,
2144
2164
  * and what may I do on one. The two calls every app screen starts from;
package/dist/index.d.ts CHANGED
@@ -26,13 +26,13 @@ declare const mcpExposure: z.ZodObject<{
26
26
  decimals: z.ZodNullable<z.ZodNumber>;
27
27
  input_schema: z.ZodNullable<z.ZodUnknown>;
28
28
  }, z.core.$strip>;
29
- type McpExposure = z.infer<typeof mcpExposure>;
29
+ type McpExposure$1 = z.infer<typeof mcpExposure>;
30
30
  /** The two role capabilities a robot tool can need beyond a slug grant. `presence` is a stream and has no tool. */
31
31
  declare const mcpCapabilities: z.ZodObject<{
32
32
  action_history: z.ZodBoolean;
33
33
  assets: z.ZodBoolean;
34
34
  }, z.core.$strip>;
35
- type McpCapabilities = z.infer<typeof mcpCapabilities>;
35
+ type McpCapabilities$1 = z.infer<typeof mcpCapabilities>;
36
36
  /**
37
37
  * What one caller may do on one robot — the answer to `robot_describe`, and
38
38
  * since 1.1.0 to `GET /api/robots/:id/datasheet` as well. One schema for both
@@ -2049,13 +2049,19 @@ interface DatapointsApi {
2049
2049
  * `validation_error`, not quietly reduced.
2050
2050
  */
2051
2051
  interface JobHistoryOptions {
2052
+ /** Only runs of this action or service. */
2052
2053
  slug?: string;
2054
+ /** Only runs in this state: `running`, `succeeded`, `failed`, `cancelled` or `lost`. */
2053
2055
  state?: JobState;
2056
+ /** Only `action` runs, or only `service` runs. */
2054
2057
  kind?: 'action' | 'service';
2058
+ /** How many runs to return, 1 to 200; absent means 100. Above the cap the platform refuses with `validation_error` rather than trimming. */
2055
2059
  limit?: number;
2056
2060
  /** The previous page's `next_cursor`. Send it back rather than computing one. */
2057
2061
  beforeSeq?: number;
2062
+ /** Only runs that started at or after this unix timestamp in milliseconds; with `toMs` the window is half-open, `[from, to)`. */
2058
2063
  fromMs?: number;
2064
+ /** Only runs that started before this unix timestamp in milliseconds. */
2059
2065
  toMs?: number;
2060
2066
  }
2061
2067
  /**
@@ -2139,6 +2145,20 @@ interface PublishersApi {
2139
2145
  publish(robotId: string, slug: string, message: Record<string, unknown>, options?: SendCommandOptions): Promise<void>;
2140
2146
  }
2141
2147
 
2148
+ /**
2149
+ * One row of a datasheet's `exposures`: a granted datapoint, action, service,
2150
+ * publisher or camera, with its `slug`, `kind`, `description` (or `null`),
2151
+ * a datapoint's `unit` and `decimals`, and for anything that takes
2152
+ * parameters the JSON Schema under `input_schema`. The wire shape is
2153
+ * contracts' `mcpExposure`; the alias exists so the reference can describe it.
2154
+ */
2155
+ type McpExposure = McpExposure$1;
2156
+ /**
2157
+ * The two role capabilities a datasheet names beyond slugs: `action_history`
2158
+ * (may `jobs.history` be read) and `assets` (may the URDF and meshes be read).
2159
+ * The wire shape is contracts' `mcpCapabilities`.
2160
+ */
2161
+ type McpCapabilities = McpCapabilities$1;
2142
2162
  /**
2143
2163
  * Discovery, reachable as `client.robots`: which robots may I name at all,
2144
2164
  * and what may I do on one. The two calls every app screen starts from;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fleetless/sdk",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "The official TypeScript SDK for Fleetless client apps — a ROS 2 robot as a REST and realtime API, cameras, jobs, and the app's own user accounts, federated sign-in and MCP consent.",
5
5
  "license": "MIT",
6
6
  "author": {