@samsarahq/samsara 11.1.0 → 11.2.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.2.0",
48
+ "User-Agent": "@samsarahq/samsara/11.2.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",
@@ -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` */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.1.0";
1
+ export declare const SDK_VERSION = "11.2.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.2.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.2.0",
11
+ "User-Agent": "@samsarahq/samsara/11.2.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",
@@ -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` */
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.1.0";
1
+ export declare const SDK_VERSION = "11.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "11.1.0";
1
+ export const SDK_VERSION = "11.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samsarahq/samsara",
3
- "version": "11.1.0",
3
+ "version": "11.2.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",