@samsarahq/samsara 11.1.0 → 11.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.
@@ -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": "11.1.0",
48
- "User-Agent": "@samsarahq/samsara/11.1.0",
47
+ "X-Fern-SDK-Version": "11.3.0",
48
+ "User-Agent": "@samsarahq/samsara/11.3.0",
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",
@@ -1323,7 +1323,6 @@ export declare class BetaApIsClient {
1323
1323
  * @example
1324
1324
  * await client.betaApIs.postReadings({
1325
1325
  * data: [{
1326
- * entityId: "123451234512345",
1327
1326
  * entityType: "asset",
1328
1327
  * happenedAtTime: "2023-10-27T10:00:00Z",
1329
1328
  * readingId: "airInletPressure",
@@ -3826,7 +3826,6 @@ class BetaApIsClient {
3826
3826
  * @example
3827
3827
  * await client.betaApIs.postReadings({
3828
3828
  * data: [{
3829
- * entityId: "123451234512345",
3830
3829
  * entityType: "asset",
3831
3830
  * happenedAtTime: "2023-10-27T10:00:00Z",
3832
3831
  * readingId: "airInletPressure",
@@ -3,7 +3,6 @@ import type * as Samsara from "../../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * data: [{
6
- * entityId: "123451234512345",
7
6
  * entityType: "asset",
8
7
  * happenedAtTime: "2023-10-27T10:00:00Z",
9
8
  * readingId: "airInletPressure",
@@ -19,9 +19,8 @@ export interface SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
19
19
  export declare namespace SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
20
20
  type ContextLabelsToAdd = ContextLabelsToAdd.Item[];
21
21
  namespace ContextLabelsToAdd {
22
- /** A context label to add. Valid values: `Animal Collision`, `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road` */
22
+ /** A context label to add. Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road`, `Wildlife` */
23
23
  const Item: {
24
- readonly AnimalCollision: "Animal Collision";
25
24
  readonly Congested: "Congested";
26
25
  readonly Construction: "Construction";
27
26
  readonly CouplingUncoupling: "Coupling/Uncoupling";
@@ -47,14 +46,14 @@ export declare namespace SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
47
46
  readonly SpeedSignVerified: "Speed Sign Verified";
48
47
  readonly VeryDrowsy: "Very Drowsy";
49
48
  readonly WetRoad: "Wet Road";
49
+ readonly Wildlife: "Wildlife";
50
50
  };
51
51
  type Item = (typeof Item)[keyof typeof Item];
52
52
  }
53
53
  type ContextLabelsToRemove = ContextLabelsToRemove.Item[];
54
54
  namespace ContextLabelsToRemove {
55
- /** A context label to remove. Valid values: `Animal Collision`, `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road` */
55
+ /** A context label to remove. Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road`, `Wildlife` */
56
56
  const Item: {
57
- readonly AnimalCollision: "Animal Collision";
58
57
  readonly Congested: "Congested";
59
58
  readonly Construction: "Construction";
60
59
  readonly CouplingUncoupling: "Coupling/Uncoupling";
@@ -80,6 +79,7 @@ export declare namespace SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
80
79
  readonly SpeedSignVerified: "Speed Sign Verified";
81
80
  readonly VeryDrowsy: "Very Drowsy";
82
81
  readonly WetRoad: "Wet Road";
82
+ readonly Wildlife: "Wildlife";
83
83
  };
84
84
  type Item = (typeof Item)[keyof typeof Item];
85
85
  }
@@ -6,9 +6,8 @@ var SafetyEventsV2PatchSafetyEventsV2BatchRequestBody;
6
6
  (function (SafetyEventsV2PatchSafetyEventsV2BatchRequestBody) {
7
7
  let ContextLabelsToAdd;
8
8
  (function (ContextLabelsToAdd) {
9
- /** A context label to add. Valid values: `Animal Collision`, `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road` */
9
+ /** A context label to add. Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road`, `Wildlife` */
10
10
  ContextLabelsToAdd.Item = {
11
- AnimalCollision: "Animal Collision",
12
11
  Congested: "Congested",
13
12
  Construction: "Construction",
14
13
  CouplingUncoupling: "Coupling/Uncoupling",
@@ -34,13 +33,13 @@ var SafetyEventsV2PatchSafetyEventsV2BatchRequestBody;
34
33
  SpeedSignVerified: "Speed Sign Verified",
35
34
  VeryDrowsy: "Very Drowsy",
36
35
  WetRoad: "Wet Road",
36
+ Wildlife: "Wildlife",
37
37
  };
38
38
  })(ContextLabelsToAdd = SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.ContextLabelsToAdd || (SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.ContextLabelsToAdd = {}));
39
39
  let ContextLabelsToRemove;
40
40
  (function (ContextLabelsToRemove) {
41
- /** A context label to remove. Valid values: `Animal Collision`, `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road` */
41
+ /** A context label to remove. Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road`, `Wildlife` */
42
42
  ContextLabelsToRemove.Item = {
43
- AnimalCollision: "Animal Collision",
44
43
  Congested: "Congested",
45
44
  Construction: "Construction",
46
45
  CouplingUncoupling: "Coupling/Uncoupling",
@@ -66,6 +65,7 @@ var SafetyEventsV2PatchSafetyEventsV2BatchRequestBody;
66
65
  SpeedSignVerified: "Speed Sign Verified",
67
66
  VeryDrowsy: "Very Drowsy",
68
67
  WetRoad: "Wet Road",
68
+ Wildlife: "Wildlife",
69
69
  };
70
70
  })(ContextLabelsToRemove = SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.ContextLabelsToRemove || (SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.ContextLabelsToRemove = {}));
71
71
  /** The new state to apply to all specified Safety Events. Valid values: `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized` */
@@ -2,10 +2,12 @@
2
2
  * A single reading data point to be created.
3
3
  */
4
4
  export interface ReadingDatapointRequestBody {
5
- /** Samsara entity ID. In case of an asset, it’s the assetId. If the asset is not yet present in the system, it is required to create a new one via the /assets endpoint. */
6
- entityId: string;
5
+ /** Samsara entity ID. Required if externalId is not provided. In case of an asset, it’s the assetId. If the asset is not yet present in the system, it is required to create a new one via the /assets endpoint. */
6
+ entityId?: string | undefined;
7
7
  /** The type of the entity (e.g., asset). Valid values: `asset` */
8
8
  entityType: ReadingDatapointRequestBody.EntityType;
9
+ /** An external ID in key:value format. Required if entityId is not provided. Use this to reference an asset by its external ID instead of the Samsara entity ID. */
10
+ externalId?: string | undefined;
9
11
  /** The timestamp of when the reading happened in RFC 3339 format. happenedAtTime must not be older than the last known reading for the same series. */
10
12
  happenedAtTime: string;
11
13
  /** The ID of the reading, you can get it from the /readings/definitions endpoint. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.1.0";
1
+ export declare const SDK_VERSION = "11.3.0";
@@ -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 = "11.1.0";
4
+ exports.SDK_VERSION = "11.3.0";
@@ -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": "11.1.0",
11
- "User-Agent": "@samsarahq/samsara/11.1.0",
10
+ "X-Fern-SDK-Version": "11.3.0",
11
+ "User-Agent": "@samsarahq/samsara/11.3.0",
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",
@@ -1323,7 +1323,6 @@ export declare class BetaApIsClient {
1323
1323
  * @example
1324
1324
  * await client.betaApIs.postReadings({
1325
1325
  * data: [{
1326
- * entityId: "123451234512345",
1327
1326
  * entityType: "asset",
1328
1327
  * happenedAtTime: "2023-10-27T10:00:00Z",
1329
1328
  * readingId: "airInletPressure",
@@ -3790,7 +3790,6 @@ export class BetaApIsClient {
3790
3790
  * @example
3791
3791
  * await client.betaApIs.postReadings({
3792
3792
  * data: [{
3793
- * entityId: "123451234512345",
3794
3793
  * entityType: "asset",
3795
3794
  * happenedAtTime: "2023-10-27T10:00:00Z",
3796
3795
  * readingId: "airInletPressure",
@@ -3,7 +3,6 @@ import type * as Samsara from "../../../../index.mjs";
3
3
  * @example
4
4
  * {
5
5
  * data: [{
6
- * entityId: "123451234512345",
7
6
  * entityType: "asset",
8
7
  * happenedAtTime: "2023-10-27T10:00:00Z",
9
8
  * readingId: "airInletPressure",
@@ -19,9 +19,8 @@ export interface SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
19
19
  export declare namespace SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
20
20
  type ContextLabelsToAdd = ContextLabelsToAdd.Item[];
21
21
  namespace ContextLabelsToAdd {
22
- /** A context label to add. Valid values: `Animal Collision`, `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road` */
22
+ /** A context label to add. Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road`, `Wildlife` */
23
23
  const Item: {
24
- readonly AnimalCollision: "Animal Collision";
25
24
  readonly Congested: "Congested";
26
25
  readonly Construction: "Construction";
27
26
  readonly CouplingUncoupling: "Coupling/Uncoupling";
@@ -47,14 +46,14 @@ export declare namespace SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
47
46
  readonly SpeedSignVerified: "Speed Sign Verified";
48
47
  readonly VeryDrowsy: "Very Drowsy";
49
48
  readonly WetRoad: "Wet Road";
49
+ readonly Wildlife: "Wildlife";
50
50
  };
51
51
  type Item = (typeof Item)[keyof typeof Item];
52
52
  }
53
53
  type ContextLabelsToRemove = ContextLabelsToRemove.Item[];
54
54
  namespace ContextLabelsToRemove {
55
- /** A context label to remove. Valid values: `Animal Collision`, `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road` */
55
+ /** A context label to remove. Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road`, `Wildlife` */
56
56
  const Item: {
57
- readonly AnimalCollision: "Animal Collision";
58
57
  readonly Congested: "Congested";
59
58
  readonly Construction: "Construction";
60
59
  readonly CouplingUncoupling: "Coupling/Uncoupling";
@@ -80,6 +79,7 @@ export declare namespace SafetyEventsV2PatchSafetyEventsV2BatchRequestBody {
80
79
  readonly SpeedSignVerified: "Speed Sign Verified";
81
80
  readonly VeryDrowsy: "Very Drowsy";
82
81
  readonly WetRoad: "Wet Road";
82
+ readonly Wildlife: "Wildlife";
83
83
  };
84
84
  type Item = (typeof Item)[keyof typeof Item];
85
85
  }
@@ -3,9 +3,8 @@ export var SafetyEventsV2PatchSafetyEventsV2BatchRequestBody;
3
3
  (function (SafetyEventsV2PatchSafetyEventsV2BatchRequestBody) {
4
4
  let ContextLabelsToAdd;
5
5
  (function (ContextLabelsToAdd) {
6
- /** A context label to add. Valid values: `Animal Collision`, `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road` */
6
+ /** A context label to add. Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road`, `Wildlife` */
7
7
  ContextLabelsToAdd.Item = {
8
- AnimalCollision: "Animal Collision",
9
8
  Congested: "Congested",
10
9
  Construction: "Construction",
11
10
  CouplingUncoupling: "Coupling/Uncoupling",
@@ -31,13 +30,13 @@ export var SafetyEventsV2PatchSafetyEventsV2BatchRequestBody;
31
30
  SpeedSignVerified: "Speed Sign Verified",
32
31
  VeryDrowsy: "Very Drowsy",
33
32
  WetRoad: "Wet Road",
33
+ Wildlife: "Wildlife",
34
34
  };
35
35
  })(ContextLabelsToAdd = SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.ContextLabelsToAdd || (SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.ContextLabelsToAdd = {}));
36
36
  let ContextLabelsToRemove;
37
37
  (function (ContextLabelsToRemove) {
38
- /** A context label to remove. Valid values: `Animal Collision`, `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road` */
38
+ /** A context label to remove. Valid values: `Congested`, `Construction`, `Coupling/Uncoupling`, `Cyclist/Motorcyclist`, `Defensive`, `Fog`, `Improper Seat Belt`, `Light Traffic`, `Moderate Traffic`, `Moderately Drowsy`, `Mounted Phone`, `Night`, `Parking Lot`, `Passenger Mobile Usage`, `Passenger Sleeping`, `Passengers`, `Pedestrians`, `Raining`, `Sensitive Media`, `Slightly Drowsy`, `Snowing`, `Snowy Road`, `Speed Sign Verified`, `Very Drowsy`, `Wet Road`, `Wildlife` */
39
39
  ContextLabelsToRemove.Item = {
40
- AnimalCollision: "Animal Collision",
41
40
  Congested: "Congested",
42
41
  Construction: "Construction",
43
42
  CouplingUncoupling: "Coupling/Uncoupling",
@@ -63,6 +62,7 @@ export var SafetyEventsV2PatchSafetyEventsV2BatchRequestBody;
63
62
  SpeedSignVerified: "Speed Sign Verified",
64
63
  VeryDrowsy: "Very Drowsy",
65
64
  WetRoad: "Wet Road",
65
+ Wildlife: "Wildlife",
66
66
  };
67
67
  })(ContextLabelsToRemove = SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.ContextLabelsToRemove || (SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.ContextLabelsToRemove = {}));
68
68
  /** The new state to apply to all specified Safety Events. Valid values: `needsReview`, `reviewed`, `needsCoaching`, `coached`, `dismissed`, `needsRecognition`, `recognized` */
@@ -2,10 +2,12 @@
2
2
  * A single reading data point to be created.
3
3
  */
4
4
  export interface ReadingDatapointRequestBody {
5
- /** Samsara entity ID. In case of an asset, it’s the assetId. If the asset is not yet present in the system, it is required to create a new one via the /assets endpoint. */
6
- entityId: string;
5
+ /** Samsara entity ID. Required if externalId is not provided. In case of an asset, it’s the assetId. If the asset is not yet present in the system, it is required to create a new one via the /assets endpoint. */
6
+ entityId?: string | undefined;
7
7
  /** The type of the entity (e.g., asset). Valid values: `asset` */
8
8
  entityType: ReadingDatapointRequestBody.EntityType;
9
+ /** An external ID in key:value format. Required if entityId is not provided. Use this to reference an asset by its external ID instead of the Samsara entity ID. */
10
+ externalId?: string | undefined;
9
11
  /** The timestamp of when the reading happened in RFC 3339 format. happenedAtTime must not be older than the last known reading for the same series. */
10
12
  happenedAtTime: string;
11
13
  /** The ID of the reading, you can get it from the /readings/definitions endpoint. */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.1.0";
1
+ export declare const SDK_VERSION = "11.3.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "11.1.0";
1
+ export const SDK_VERSION = "11.3.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samsarahq/samsara",
3
- "version": "11.1.0",
3
+ "version": "11.3.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -4577,7 +4577,6 @@ To use this endpoint, select **Write Readings** under the Closed Beta category w
4577
4577
  ```typescript
4578
4578
  await client.betaApIs.postReadings({
4579
4579
  data: [{
4580
- entityId: "123451234512345",
4581
4580
  entityType: "asset",
4582
4581
  happenedAtTime: "2023-10-27T10:00:00Z",
4583
4582
  readingId: "airInletPressure",