@samsarahq/samsara 8.1.0 → 8.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.
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_js_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "@samsarahq/samsara",
47
- "X-Fern-SDK-Version": "8.1.0",
48
- "User-Agent": "@samsarahq/samsara/8.1.0",
47
+ "X-Fern-SDK-Version": "8.1.1",
48
+ "User-Agent": "@samsarahq/samsara/8.1.1",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
@@ -1367,7 +1367,7 @@ export declare class BetaApIsClient {
1367
1367
  listReadingsDefinitions(request?: Samsara.ListReadingsDefinitionsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.ReadingsListReadingsDefinitionsResponseBody>;
1368
1368
  private __listReadingsDefinitions;
1369
1369
  /**
1370
- * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. End time of null implies endTime is infinite and all known readings are returned.
1370
+ * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime.
1371
1371
  *
1372
1372
  * <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1373
1373
  *
@@ -4013,7 +4013,7 @@ class BetaApIsClient {
4013
4013
  });
4014
4014
  }
4015
4015
  /**
4016
- * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. End time of null implies endTime is infinite and all known readings are returned.
4016
+ * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime.
4017
4017
  *
4018
4018
  * <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4019
4019
  *
@@ -234,13 +234,13 @@ export interface GetReadingsHistoryRequest {
234
234
  * **Note:** This is not an exhaustive list. Your organization may have access to additional readings based on enabled features or custom configurations. Use the `/readings/definitions` endpoint to retrieve all available reading IDs for your organization.
235
235
  */
236
236
  readingId: string;
237
- /** A filter on the data based on this comma-separated list of entity IDs or external IDs. If not set, all entities are returned. */
237
+ /** A filter on the data based on this comma-separated list of entity IDs. If not set, all entities are returned. */
238
238
  entityIds?: string;
239
- /** A entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
239
+ /** The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
240
240
  entityType: string;
241
241
  /** A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM) */
242
242
  externalIds?: string;
243
- /** A filter on the data that returns the last known data points with timestamps greater than or equal to this value. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
243
+ /** A filter on the data that returns data points with timestamps greater than or equal to this value. Required when feed mode is not enabled. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
244
244
  startTime?: string;
245
245
  /** A filter on the data that returns the last known data points with timestamps less than or equal to this value. If not set, the time of the request is considered the endTime. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
246
246
  endTime?: string;
@@ -9,7 +9,7 @@ export interface GetReadingsSnapshotRequest {
9
9
  /** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
10
10
  after?: string;
11
11
  /**
12
- * A collection of comma separated reading IDs. Include up to 3 readings IDs. Use /readings/definitions endpoint to get a list of valid reading IDs. (Examples: engineRpm,fuelLevel)
12
+ * A collection of comma separated reading IDs. Include up to 5 readings IDs. Use /readings/definitions endpoint to get a list of valid reading IDs. (Examples: engineRpm,fuelLevel)
13
13
  *
14
14
  * Available reading IDs (by category):
15
15
  *
@@ -234,13 +234,13 @@ export interface GetReadingsSnapshotRequest {
234
234
  * **Note:** This is not an exhaustive list. Your organization may have access to additional readings based on enabled features or custom configurations. Use the `/readings/definitions` endpoint to retrieve all available reading IDs for your organization.
235
235
  */
236
236
  readingIds: string;
237
- /** A filter on the data based on this comma-separated list of entity IDs or external IDs. If not set, all entities are returned. */
237
+ /** A filter on the data based on this comma-separated list of entity IDs. If not set, all entities are returned. */
238
238
  entityIds?: string;
239
239
  /** A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM) */
240
240
  externalIds?: string;
241
241
  /** A filter on the data that returns the last known data points with timestamps less than or equal to this value. Defaults to now if not provided. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
242
242
  asOfTime?: string;
243
- /** A entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
243
+ /** The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
244
244
  entityType: string;
245
245
  /** Optional boolean indicating whether to return external IDs on supported entities */
246
246
  includeExternalIds?: boolean;
@@ -7,6 +7,6 @@ export interface ListReadingsDefinitionsRequest {
7
7
  after?: string;
8
8
  /** A String of comma separated reading IDs. Include up to 50 readings IDs. If not set, all readings are returned. */
9
9
  ids?: string;
10
- /** A list of entity type to return readings for. (Examples: asset, sensor) */
10
+ /** A list of entity types to return readings for. (Examples: asset, sensor) */
11
11
  entityTypes?: string;
12
12
  }
@@ -2,7 +2,7 @@
2
2
  * A history of reading values for an entity.
3
3
  */
4
4
  export interface ReadingHistoryResponseBody {
5
- /** The ID of the entity this readings is for. */
5
+ /** The ID of the entity this reading is for. */
6
6
  entityId: string;
7
7
  /** A map of external ids */
8
8
  externalIds?: Record<string, string> | undefined;
@@ -2,7 +2,7 @@
2
2
  * A snapshot of a reading value at a point in time.
3
3
  */
4
4
  export interface ReadingSnapshotResponseBody {
5
- /** The ID of the entity this readings is for. */
5
+ /** The ID of the entity this reading is for. */
6
6
  entityId: string;
7
7
  /** A map of external ids */
8
8
  externalIds?: Record<string, string> | undefined;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "8.1.0";
1
+ export declare const SDK_VERSION = "8.1.1";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "8.1.0";
4
+ exports.SDK_VERSION = "8.1.1";
@@ -7,8 +7,8 @@ export function normalizeClientOptions(options) {
7
7
  const headers = mergeHeaders({
8
8
  "X-Fern-Language": "JavaScript",
9
9
  "X-Fern-SDK-Name": "@samsarahq/samsara",
10
- "X-Fern-SDK-Version": "8.1.0",
11
- "User-Agent": "@samsarahq/samsara/8.1.0",
10
+ "X-Fern-SDK-Version": "8.1.1",
11
+ "User-Agent": "@samsarahq/samsara/8.1.1",
12
12
  "X-Fern-Runtime": core.RUNTIME.type,
13
13
  "X-Fern-Runtime-Version": core.RUNTIME.version,
14
14
  "X-Samsara-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-06-11",
@@ -1367,7 +1367,7 @@ export declare class BetaApIsClient {
1367
1367
  listReadingsDefinitions(request?: Samsara.ListReadingsDefinitionsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.ReadingsListReadingsDefinitionsResponseBody>;
1368
1368
  private __listReadingsDefinitions;
1369
1369
  /**
1370
- * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. End time of null implies endTime is infinite and all known readings are returned.
1370
+ * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime.
1371
1371
  *
1372
1372
  * <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1373
1373
  *
@@ -3977,7 +3977,7 @@ export class BetaApIsClient {
3977
3977
  });
3978
3978
  }
3979
3979
  /**
3980
- * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. End time of null implies endTime is infinite and all known readings are returned.
3980
+ * Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime.
3981
3981
  *
3982
3982
  * <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
3983
3983
  *
@@ -234,13 +234,13 @@ export interface GetReadingsHistoryRequest {
234
234
  * **Note:** This is not an exhaustive list. Your organization may have access to additional readings based on enabled features or custom configurations. Use the `/readings/definitions` endpoint to retrieve all available reading IDs for your organization.
235
235
  */
236
236
  readingId: string;
237
- /** A filter on the data based on this comma-separated list of entity IDs or external IDs. If not set, all entities are returned. */
237
+ /** A filter on the data based on this comma-separated list of entity IDs. If not set, all entities are returned. */
238
238
  entityIds?: string;
239
- /** A entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
239
+ /** The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
240
240
  entityType: string;
241
241
  /** A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM) */
242
242
  externalIds?: string;
243
- /** A filter on the data that returns the last known data points with timestamps greater than or equal to this value. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
243
+ /** A filter on the data that returns data points with timestamps greater than or equal to this value. Required when feed mode is not enabled. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
244
244
  startTime?: string;
245
245
  /** A filter on the data that returns the last known data points with timestamps less than or equal to this value. If not set, the time of the request is considered the endTime. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
246
246
  endTime?: string;
@@ -9,7 +9,7 @@ export interface GetReadingsSnapshotRequest {
9
9
  /** If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results. */
10
10
  after?: string;
11
11
  /**
12
- * A collection of comma separated reading IDs. Include up to 3 readings IDs. Use /readings/definitions endpoint to get a list of valid reading IDs. (Examples: engineRpm,fuelLevel)
12
+ * A collection of comma separated reading IDs. Include up to 5 readings IDs. Use /readings/definitions endpoint to get a list of valid reading IDs. (Examples: engineRpm,fuelLevel)
13
13
  *
14
14
  * Available reading IDs (by category):
15
15
  *
@@ -234,13 +234,13 @@ export interface GetReadingsSnapshotRequest {
234
234
  * **Note:** This is not an exhaustive list. Your organization may have access to additional readings based on enabled features or custom configurations. Use the `/readings/definitions` endpoint to retrieve all available reading IDs for your organization.
235
235
  */
236
236
  readingIds: string;
237
- /** A filter on the data based on this comma-separated list of entity IDs or external IDs. If not set, all entities are returned. */
237
+ /** A filter on the data based on this comma-separated list of entity IDs. If not set, all entities are returned. */
238
238
  entityIds?: string;
239
239
  /** A filter on the data based on this comma-separated list of external IDs. (Examples: samsara.serial:ZPXKLMN7VJ, samsara.serial:ABXKIMN4NM) */
240
240
  externalIds?: string;
241
241
  /** A filter on the data that returns the last known data points with timestamps less than or equal to this value. Defaults to now if not provided. Must be a string in RFC 3339 format. Millisecond precision and timezones are supported. (Examples: 2020-01-27T07:06:25Z) */
242
242
  asOfTime?: string;
243
- /** A entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
243
+ /** The entity type of the entityIds or externalIds to fetch readings for. Use /readings/definitions endpoint to get a list of valid entity types. (Examples: asset, sensor) */
244
244
  entityType: string;
245
245
  /** Optional boolean indicating whether to return external IDs on supported entities */
246
246
  includeExternalIds?: boolean;
@@ -7,6 +7,6 @@ export interface ListReadingsDefinitionsRequest {
7
7
  after?: string;
8
8
  /** A String of comma separated reading IDs. Include up to 50 readings IDs. If not set, all readings are returned. */
9
9
  ids?: string;
10
- /** A list of entity type to return readings for. (Examples: asset, sensor) */
10
+ /** A list of entity types to return readings for. (Examples: asset, sensor) */
11
11
  entityTypes?: string;
12
12
  }
@@ -2,7 +2,7 @@
2
2
  * A history of reading values for an entity.
3
3
  */
4
4
  export interface ReadingHistoryResponseBody {
5
- /** The ID of the entity this readings is for. */
5
+ /** The ID of the entity this reading is for. */
6
6
  entityId: string;
7
7
  /** A map of external ids */
8
8
  externalIds?: Record<string, string> | undefined;
@@ -2,7 +2,7 @@
2
2
  * A snapshot of a reading value at a point in time.
3
3
  */
4
4
  export interface ReadingSnapshotResponseBody {
5
- /** The ID of the entity this readings is for. */
5
+ /** The ID of the entity this reading is for. */
6
6
  entityId: string;
7
7
  /** A map of external ids */
8
8
  externalIds?: Record<string, string> | undefined;
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "8.1.0";
1
+ export declare const SDK_VERSION = "8.1.1";
@@ -1 +1 @@
1
- export const SDK_VERSION = "8.1.0";
1
+ export const SDK_VERSION = "8.1.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samsarahq/samsara",
3
- "version": "8.1.0",
3
+ "version": "8.1.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -4706,7 +4706,7 @@ await client.betaApIs.listReadingsDefinitions();
4706
4706
  <dl>
4707
4707
  <dd>
4708
4708
 
4709
- Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. End time of null implies endTime is infinite and all known readings are returned.
4709
+ Get the values of a reading for a set of entities within the specified time range. Returns a paginated response with data for the specified resource IDs where startTime <= happenedAtTime < endTime. If endTime is not set, the time of the request is used as the endTime.
4710
4710
 
4711
4711
  <b>Rate limit:</b> 10 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
4712
4712