@samsarahq/samsara 11.4.0 → 11.6.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.
Files changed (154) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +45 -40
  4. package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +65 -97
  5. package/dist/cjs/api/resources/betaApIs/client/Client.js +183 -287
  6. package/dist/cjs/api/resources/betaApIs/client/requests/DeletePlanOrdersRequest.d.ts +14 -0
  7. package/dist/cjs/api/resources/betaApIs/client/requests/ListPlanOrdersRequest.d.ts +16 -0
  8. package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +2 -3
  9. package/dist/cjs/api/resources/drivers/client/requests/CreateDriverRequest.d.ts +2 -0
  10. package/dist/cjs/api/resources/drivers/client/requests/UpdateDriverRequest.d.ts +2 -0
  11. package/dist/cjs/api/resources/index.d.ts +2 -0
  12. package/dist/cjs/api/resources/index.js +4 -2
  13. package/dist/cjs/api/resources/readings/client/Client.d.ts +109 -0
  14. package/dist/cjs/api/resources/readings/client/Client.js +345 -0
  15. package/dist/cjs/api/resources/readings/client/index.d.ts +1 -0
  16. package/dist/cjs/api/resources/readings/client/index.js +17 -0
  17. package/dist/cjs/api/resources/readings/client/requests/GetReadingsSnapshotRequest.js +3 -0
  18. package/dist/cjs/api/resources/readings/client/requests/ListReadingsDefinitionsRequest.js +3 -0
  19. package/dist/cjs/api/resources/readings/client/requests/index.d.ts +3 -0
  20. package/dist/cjs/api/resources/readings/client/requests/index.js +2 -0
  21. package/dist/cjs/api/resources/readings/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/readings/index.js +17 -0
  23. package/dist/cjs/api/types/Driver.d.ts +1 -0
  24. package/dist/cjs/api/types/DriverTrailerGroupTag.d.ts +11 -0
  25. package/dist/cjs/api/types/DriverTrailerGroupTag.js +3 -0
  26. package/dist/cjs/api/types/ListPlanOrdersResponsePaginationResponseBody.d.ts +9 -0
  27. package/dist/cjs/api/types/ListPlanOrdersResponsePaginationResponseBody.js +3 -0
  28. package/dist/cjs/api/types/OrderObjectResponseBody.d.ts +4 -2
  29. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersBadGatewayErrorResponseBody.d.ts +9 -0
  30. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersBadGatewayErrorResponseBody.js +3 -0
  31. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersGatewayTimeoutErrorResponseBody.d.ts +9 -0
  32. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersGatewayTimeoutErrorResponseBody.js +3 -0
  33. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersInternalServerErrorResponseBody.d.ts +9 -0
  34. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersInternalServerErrorResponseBody.js +3 -0
  35. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersMethodNotAllowedErrorResponseBody.d.ts +9 -0
  36. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersMethodNotAllowedErrorResponseBody.js +3 -0
  37. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersNotFoundErrorResponseBody.d.ts +9 -0
  38. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersNotFoundErrorResponseBody.js +3 -0
  39. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersNotImplementedErrorResponseBody.d.ts +9 -0
  40. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersNotImplementedErrorResponseBody.js +3 -0
  41. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersServiceUnavailableErrorResponseBody.d.ts +9 -0
  42. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersServiceUnavailableErrorResponseBody.js +3 -0
  43. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersTooManyRequestsErrorResponseBody.d.ts +9 -0
  44. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersTooManyRequestsErrorResponseBody.js +3 -0
  45. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersUnauthorizedErrorResponseBody.d.ts +9 -0
  46. package/dist/cjs/api/types/PlanOrdersDeletePlanOrdersUnauthorizedErrorResponseBody.js +3 -0
  47. package/dist/cjs/api/types/PlanOrdersListPlanOrdersBadGatewayErrorResponseBody.d.ts +9 -0
  48. package/dist/cjs/api/types/PlanOrdersListPlanOrdersBadGatewayErrorResponseBody.js +3 -0
  49. package/dist/cjs/api/types/PlanOrdersListPlanOrdersGatewayTimeoutErrorResponseBody.d.ts +9 -0
  50. package/dist/cjs/api/types/PlanOrdersListPlanOrdersGatewayTimeoutErrorResponseBody.js +3 -0
  51. package/dist/cjs/api/types/PlanOrdersListPlanOrdersInternalServerErrorResponseBody.d.ts +9 -0
  52. package/dist/cjs/api/types/PlanOrdersListPlanOrdersInternalServerErrorResponseBody.js +3 -0
  53. package/dist/cjs/api/types/PlanOrdersListPlanOrdersMethodNotAllowedErrorResponseBody.d.ts +9 -0
  54. package/dist/cjs/api/types/PlanOrdersListPlanOrdersMethodNotAllowedErrorResponseBody.js +3 -0
  55. package/dist/cjs/api/types/PlanOrdersListPlanOrdersNotFoundErrorResponseBody.d.ts +9 -0
  56. package/dist/cjs/api/types/PlanOrdersListPlanOrdersNotFoundErrorResponseBody.js +3 -0
  57. package/dist/cjs/api/types/PlanOrdersListPlanOrdersNotImplementedErrorResponseBody.d.ts +9 -0
  58. package/dist/cjs/api/types/PlanOrdersListPlanOrdersNotImplementedErrorResponseBody.js +3 -0
  59. package/dist/cjs/api/types/PlanOrdersListPlanOrdersResponseBody.d.ts +6 -0
  60. package/dist/cjs/api/types/PlanOrdersListPlanOrdersResponseBody.js +3 -0
  61. package/dist/cjs/api/types/PlanOrdersListPlanOrdersServiceUnavailableErrorResponseBody.d.ts +9 -0
  62. package/dist/cjs/api/types/PlanOrdersListPlanOrdersServiceUnavailableErrorResponseBody.js +3 -0
  63. package/dist/cjs/api/types/PlanOrdersListPlanOrdersTooManyRequestsErrorResponseBody.d.ts +9 -0
  64. package/dist/cjs/api/types/PlanOrdersListPlanOrdersTooManyRequestsErrorResponseBody.js +3 -0
  65. package/dist/cjs/api/types/PlanOrdersListPlanOrdersUnauthorizedErrorResponseBody.d.ts +9 -0
  66. package/dist/cjs/api/types/PlanOrdersListPlanOrdersUnauthorizedErrorResponseBody.js +3 -0
  67. package/dist/cjs/api/types/index.d.ts +21 -0
  68. package/dist/cjs/api/types/index.js +21 -0
  69. package/dist/cjs/version.d.ts +1 -1
  70. package/dist/cjs/version.js +1 -1
  71. package/dist/esm/BaseClient.mjs +2 -2
  72. package/dist/esm/Client.d.mts +3 -0
  73. package/dist/esm/Client.mjs +5 -0
  74. package/dist/esm/api/resources/betaApIs/client/Client.d.mts +65 -97
  75. package/dist/esm/api/resources/betaApIs/client/Client.mjs +183 -287
  76. package/dist/esm/api/resources/betaApIs/client/requests/DeletePlanOrdersRequest.d.mts +14 -0
  77. package/dist/esm/api/resources/betaApIs/client/requests/ListPlanOrdersRequest.d.mts +16 -0
  78. package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +2 -3
  79. package/dist/esm/api/resources/drivers/client/requests/CreateDriverRequest.d.mts +2 -0
  80. package/dist/esm/api/resources/drivers/client/requests/UpdateDriverRequest.d.mts +2 -0
  81. package/dist/esm/api/resources/index.d.mts +2 -0
  82. package/dist/esm/api/resources/index.mjs +2 -0
  83. package/dist/esm/api/resources/readings/client/Client.d.mts +109 -0
  84. package/dist/esm/api/resources/readings/client/Client.mjs +308 -0
  85. package/dist/esm/api/resources/readings/client/index.d.mts +1 -0
  86. package/dist/esm/api/resources/readings/client/index.mjs +1 -0
  87. package/dist/esm/api/resources/readings/client/requests/GetReadingsSnapshotRequest.mjs +2 -0
  88. package/dist/esm/api/resources/readings/client/requests/ListReadingsDefinitionsRequest.mjs +2 -0
  89. package/dist/esm/api/resources/readings/client/requests/index.d.mts +3 -0
  90. package/dist/esm/api/resources/readings/client/requests/index.mjs +1 -0
  91. package/dist/esm/api/resources/readings/index.d.mts +1 -0
  92. package/dist/esm/api/resources/readings/index.mjs +1 -0
  93. package/dist/esm/api/types/Driver.d.mts +1 -0
  94. package/dist/esm/api/types/DriverTrailerGroupTag.d.mts +11 -0
  95. package/dist/esm/api/types/DriverTrailerGroupTag.mjs +2 -0
  96. package/dist/esm/api/types/ListPlanOrdersResponsePaginationResponseBody.d.mts +9 -0
  97. package/dist/esm/api/types/ListPlanOrdersResponsePaginationResponseBody.mjs +2 -0
  98. package/dist/esm/api/types/OrderObjectResponseBody.d.mts +4 -2
  99. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersBadGatewayErrorResponseBody.d.mts +9 -0
  100. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersBadGatewayErrorResponseBody.mjs +2 -0
  101. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersGatewayTimeoutErrorResponseBody.d.mts +9 -0
  102. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersGatewayTimeoutErrorResponseBody.mjs +2 -0
  103. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersInternalServerErrorResponseBody.d.mts +9 -0
  104. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersInternalServerErrorResponseBody.mjs +2 -0
  105. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersMethodNotAllowedErrorResponseBody.d.mts +9 -0
  106. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersMethodNotAllowedErrorResponseBody.mjs +2 -0
  107. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersNotFoundErrorResponseBody.d.mts +9 -0
  108. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersNotFoundErrorResponseBody.mjs +2 -0
  109. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersNotImplementedErrorResponseBody.d.mts +9 -0
  110. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersNotImplementedErrorResponseBody.mjs +2 -0
  111. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersServiceUnavailableErrorResponseBody.d.mts +9 -0
  112. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersServiceUnavailableErrorResponseBody.mjs +2 -0
  113. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersTooManyRequestsErrorResponseBody.d.mts +9 -0
  114. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersTooManyRequestsErrorResponseBody.mjs +2 -0
  115. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersUnauthorizedErrorResponseBody.d.mts +9 -0
  116. package/dist/esm/api/types/PlanOrdersDeletePlanOrdersUnauthorizedErrorResponseBody.mjs +2 -0
  117. package/dist/esm/api/types/PlanOrdersListPlanOrdersBadGatewayErrorResponseBody.d.mts +9 -0
  118. package/dist/esm/api/types/PlanOrdersListPlanOrdersBadGatewayErrorResponseBody.mjs +2 -0
  119. package/dist/esm/api/types/PlanOrdersListPlanOrdersGatewayTimeoutErrorResponseBody.d.mts +9 -0
  120. package/dist/esm/api/types/PlanOrdersListPlanOrdersGatewayTimeoutErrorResponseBody.mjs +2 -0
  121. package/dist/esm/api/types/PlanOrdersListPlanOrdersInternalServerErrorResponseBody.d.mts +9 -0
  122. package/dist/esm/api/types/PlanOrdersListPlanOrdersInternalServerErrorResponseBody.mjs +2 -0
  123. package/dist/esm/api/types/PlanOrdersListPlanOrdersMethodNotAllowedErrorResponseBody.d.mts +9 -0
  124. package/dist/esm/api/types/PlanOrdersListPlanOrdersMethodNotAllowedErrorResponseBody.mjs +2 -0
  125. package/dist/esm/api/types/PlanOrdersListPlanOrdersNotFoundErrorResponseBody.d.mts +9 -0
  126. package/dist/esm/api/types/PlanOrdersListPlanOrdersNotFoundErrorResponseBody.mjs +2 -0
  127. package/dist/esm/api/types/PlanOrdersListPlanOrdersNotImplementedErrorResponseBody.d.mts +9 -0
  128. package/dist/esm/api/types/PlanOrdersListPlanOrdersNotImplementedErrorResponseBody.mjs +2 -0
  129. package/dist/esm/api/types/PlanOrdersListPlanOrdersResponseBody.d.mts +6 -0
  130. package/dist/esm/api/types/PlanOrdersListPlanOrdersResponseBody.mjs +2 -0
  131. package/dist/esm/api/types/PlanOrdersListPlanOrdersServiceUnavailableErrorResponseBody.d.mts +9 -0
  132. package/dist/esm/api/types/PlanOrdersListPlanOrdersServiceUnavailableErrorResponseBody.mjs +2 -0
  133. package/dist/esm/api/types/PlanOrdersListPlanOrdersTooManyRequestsErrorResponseBody.d.mts +9 -0
  134. package/dist/esm/api/types/PlanOrdersListPlanOrdersTooManyRequestsErrorResponseBody.mjs +2 -0
  135. package/dist/esm/api/types/PlanOrdersListPlanOrdersUnauthorizedErrorResponseBody.d.mts +9 -0
  136. package/dist/esm/api/types/PlanOrdersListPlanOrdersUnauthorizedErrorResponseBody.mjs +2 -0
  137. package/dist/esm/api/types/index.d.mts +21 -0
  138. package/dist/esm/api/types/index.mjs +21 -0
  139. package/dist/esm/version.d.mts +1 -1
  140. package/dist/esm/version.mjs +1 -1
  141. package/package.json +1 -1
  142. package/reference.md +324 -175
  143. /package/dist/cjs/api/resources/betaApIs/client/requests/{GetReadingsHistoryRequest.js → DeletePlanOrdersRequest.js} +0 -0
  144. /package/dist/cjs/api/resources/betaApIs/client/requests/{GetReadingsSnapshotRequest.js → ListPlanOrdersRequest.js} +0 -0
  145. /package/dist/cjs/api/resources/{betaApIs → readings}/client/requests/GetReadingsHistoryRequest.d.ts +0 -0
  146. /package/dist/cjs/api/resources/{betaApIs/client/requests/ListReadingsDefinitionsRequest.js → readings/client/requests/GetReadingsHistoryRequest.js} +0 -0
  147. /package/dist/cjs/api/resources/{betaApIs → readings}/client/requests/GetReadingsSnapshotRequest.d.ts +0 -0
  148. /package/dist/cjs/api/resources/{betaApIs → readings}/client/requests/ListReadingsDefinitionsRequest.d.ts +0 -0
  149. /package/dist/esm/api/resources/betaApIs/client/requests/{GetReadingsHistoryRequest.mjs → DeletePlanOrdersRequest.mjs} +0 -0
  150. /package/dist/esm/api/resources/betaApIs/client/requests/{GetReadingsSnapshotRequest.mjs → ListPlanOrdersRequest.mjs} +0 -0
  151. /package/dist/esm/api/resources/{betaApIs → readings}/client/requests/GetReadingsHistoryRequest.d.mts +0 -0
  152. /package/dist/esm/api/resources/{betaApIs/client/requests/ListReadingsDefinitionsRequest.mjs → readings/client/requests/GetReadingsHistoryRequest.mjs} +0 -0
  153. /package/dist/esm/api/resources/{betaApIs → readings}/client/requests/GetReadingsSnapshotRequest.d.mts +0 -0
  154. /package/dist/esm/api/resources/{betaApIs → readings}/client/requests/ListReadingsDefinitionsRequest.d.mts +0 -0
@@ -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.4.0",
48
- "User-Agent": "@samsarahq/samsara/11.4.0",
47
+ "X-Fern-SDK-Version": "11.6.0",
48
+ "User-Agent": "@samsarahq/samsara/11.6.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",
@@ -34,6 +34,7 @@ import { MessagesClient } from "./api/resources/messages/client/Client.js";
34
34
  import { OrganizationInfoClient } from "./api/resources/organizationInfo/client/Client.js";
35
35
  import { PlansClient } from "./api/resources/plans/client/Client.js";
36
36
  import { PreviewApIsClient } from "./api/resources/previewApIs/client/Client.js";
37
+ import { ReadingsClient } from "./api/resources/readings/client/Client.js";
37
38
  import { RouteEventsClient } from "./api/resources/routeEvents/client/Client.js";
38
39
  import { RoutesClient } from "./api/resources/routes/client/Client.js";
39
40
  import { SafetyClient } from "./api/resources/safety/client/Client.js";
@@ -104,6 +105,7 @@ export declare class SamsaraClient {
104
105
  protected _workOrders: WorkOrdersClient | undefined;
105
106
  protected _organizationInfo: OrganizationInfoClient | undefined;
106
107
  protected _previewApIs: PreviewApIsClient | undefined;
108
+ protected _readings: ReadingsClient | undefined;
107
109
  protected _routeEvents: RouteEventsClient | undefined;
108
110
  protected _safety: SafetyClient | undefined;
109
111
  protected _safetyScores: SafetyScoresClient | undefined;
@@ -161,6 +163,7 @@ export declare class SamsaraClient {
161
163
  get workOrders(): WorkOrdersClient;
162
164
  get organizationInfo(): OrganizationInfoClient;
163
165
  get previewApIs(): PreviewApIsClient;
166
+ get readings(): ReadingsClient;
164
167
  get routeEvents(): RouteEventsClient;
165
168
  get safety(): SafetyClient;
166
169
  get safetyScores(): SafetyScoresClient;
@@ -38,26 +38,27 @@ const Client_js_33 = require("./api/resources/messages/client/Client.js");
38
38
  const Client_js_34 = require("./api/resources/organizationInfo/client/Client.js");
39
39
  const Client_js_35 = require("./api/resources/plans/client/Client.js");
40
40
  const Client_js_36 = require("./api/resources/previewApIs/client/Client.js");
41
- const Client_js_37 = require("./api/resources/routeEvents/client/Client.js");
42
- const Client_js_38 = require("./api/resources/routes/client/Client.js");
43
- const Client_js_39 = require("./api/resources/safety/client/Client.js");
44
- const Client_js_40 = require("./api/resources/safetyScores/client/Client.js");
45
- const Client_js_41 = require("./api/resources/sensors/client/Client.js");
46
- const Client_js_42 = require("./api/resources/settings/client/Client.js");
47
- const Client_js_43 = require("./api/resources/speedingIntervals/client/Client.js");
48
- const Client_js_44 = require("./api/resources/tachographEuOnly/client/Client.js");
49
- const Client_js_45 = require("./api/resources/tags/client/Client.js");
50
- const Client_js_46 = require("./api/resources/trailerAssignments/client/Client.js");
51
- const Client_js_47 = require("./api/resources/trailers/client/Client.js");
52
- const Client_js_48 = require("./api/resources/trainingAssignments/client/Client.js");
53
- const Client_js_49 = require("./api/resources/trainingCourses/client/Client.js");
54
- const Client_js_50 = require("./api/resources/trips/client/Client.js");
55
- const Client_js_51 = require("./api/resources/users/client/Client.js");
56
- const Client_js_52 = require("./api/resources/vehicleLocations/client/Client.js");
57
- const Client_js_53 = require("./api/resources/vehicleStats/client/Client.js");
58
- const Client_js_54 = require("./api/resources/vehicles/client/Client.js");
59
- const Client_js_55 = require("./api/resources/webhooks/client/Client.js");
60
- const Client_js_56 = require("./api/resources/workOrders/client/Client.js");
41
+ const Client_js_37 = require("./api/resources/readings/client/Client.js");
42
+ const Client_js_38 = require("./api/resources/routeEvents/client/Client.js");
43
+ const Client_js_39 = require("./api/resources/routes/client/Client.js");
44
+ const Client_js_40 = require("./api/resources/safety/client/Client.js");
45
+ const Client_js_41 = require("./api/resources/safetyScores/client/Client.js");
46
+ const Client_js_42 = require("./api/resources/sensors/client/Client.js");
47
+ const Client_js_43 = require("./api/resources/settings/client/Client.js");
48
+ const Client_js_44 = require("./api/resources/speedingIntervals/client/Client.js");
49
+ const Client_js_45 = require("./api/resources/tachographEuOnly/client/Client.js");
50
+ const Client_js_46 = require("./api/resources/tags/client/Client.js");
51
+ const Client_js_47 = require("./api/resources/trailerAssignments/client/Client.js");
52
+ const Client_js_48 = require("./api/resources/trailers/client/Client.js");
53
+ const Client_js_49 = require("./api/resources/trainingAssignments/client/Client.js");
54
+ const Client_js_50 = require("./api/resources/trainingCourses/client/Client.js");
55
+ const Client_js_51 = require("./api/resources/trips/client/Client.js");
56
+ const Client_js_52 = require("./api/resources/users/client/Client.js");
57
+ const Client_js_53 = require("./api/resources/vehicleLocations/client/Client.js");
58
+ const Client_js_54 = require("./api/resources/vehicleStats/client/Client.js");
59
+ const Client_js_55 = require("./api/resources/vehicles/client/Client.js");
60
+ const Client_js_56 = require("./api/resources/webhooks/client/Client.js");
61
+ const Client_js_57 = require("./api/resources/workOrders/client/Client.js");
61
62
  const BaseClient_js_1 = require("./BaseClient.js");
62
63
  class SamsaraClient {
63
64
  constructor(options = {}) {
@@ -145,7 +146,7 @@ class SamsaraClient {
145
146
  }
146
147
  get tachographEuOnly() {
147
148
  var _a;
148
- return ((_a = this._tachographEuOnly) !== null && _a !== void 0 ? _a : (this._tachographEuOnly = new Client_js_44.TachographEuOnlyClient(this._options)));
149
+ return ((_a = this._tachographEuOnly) !== null && _a !== void 0 ? _a : (this._tachographEuOnly = new Client_js_45.TachographEuOnlyClient(this._options)));
149
150
  }
150
151
  get equipment() {
151
152
  var _a;
@@ -161,27 +162,27 @@ class SamsaraClient {
161
162
  }
162
163
  get routes() {
163
164
  var _a;
164
- return ((_a = this._routes) !== null && _a !== void 0 ? _a : (this._routes = new Client_js_38.RoutesClient(this._options)));
165
+ return ((_a = this._routes) !== null && _a !== void 0 ? _a : (this._routes = new Client_js_39.RoutesClient(this._options)));
165
166
  }
166
167
  get settings() {
167
168
  var _a;
168
- return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_js_42.SettingsClient(this._options)));
169
+ return ((_a = this._settings) !== null && _a !== void 0 ? _a : (this._settings = new Client_js_43.SettingsClient(this._options)));
169
170
  }
170
171
  get trailers() {
171
172
  var _a;
172
- return ((_a = this._trailers) !== null && _a !== void 0 ? _a : (this._trailers = new Client_js_47.TrailersClient(this._options)));
173
+ return ((_a = this._trailers) !== null && _a !== void 0 ? _a : (this._trailers = new Client_js_48.TrailersClient(this._options)));
173
174
  }
174
175
  get vehicles() {
175
176
  var _a;
176
- return ((_a = this._vehicles) !== null && _a !== void 0 ? _a : (this._vehicles = new Client_js_54.VehiclesClient(this._options)));
177
+ return ((_a = this._vehicles) !== null && _a !== void 0 ? _a : (this._vehicles = new Client_js_55.VehiclesClient(this._options)));
177
178
  }
178
179
  get vehicleLocations() {
179
180
  var _a;
180
- return ((_a = this._vehicleLocations) !== null && _a !== void 0 ? _a : (this._vehicleLocations = new Client_js_52.VehicleLocationsClient(this._options)));
181
+ return ((_a = this._vehicleLocations) !== null && _a !== void 0 ? _a : (this._vehicleLocations = new Client_js_53.VehicleLocationsClient(this._options)));
181
182
  }
182
183
  get vehicleStats() {
183
184
  var _a;
184
- return ((_a = this._vehicleStats) !== null && _a !== void 0 ? _a : (this._vehicleStats = new Client_js_53.VehicleStatsClient(this._options)));
185
+ return ((_a = this._vehicleStats) !== null && _a !== void 0 ? _a : (this._vehicleStats = new Client_js_54.VehicleStatsClient(this._options)));
185
186
  }
186
187
  get forms() {
187
188
  var _a;
@@ -217,7 +218,7 @@ class SamsaraClient {
217
218
  }
218
219
  get workOrders() {
219
220
  var _a;
220
- return ((_a = this._workOrders) !== null && _a !== void 0 ? _a : (this._workOrders = new Client_js_56.WorkOrdersClient(this._options)));
221
+ return ((_a = this._workOrders) !== null && _a !== void 0 ? _a : (this._workOrders = new Client_js_57.WorkOrdersClient(this._options)));
221
222
  }
222
223
  get organizationInfo() {
223
224
  var _a;
@@ -227,41 +228,45 @@ class SamsaraClient {
227
228
  var _a;
228
229
  return ((_a = this._previewApIs) !== null && _a !== void 0 ? _a : (this._previewApIs = new Client_js_36.PreviewApIsClient(this._options)));
229
230
  }
231
+ get readings() {
232
+ var _a;
233
+ return ((_a = this._readings) !== null && _a !== void 0 ? _a : (this._readings = new Client_js_37.ReadingsClient(this._options)));
234
+ }
230
235
  get routeEvents() {
231
236
  var _a;
232
- return ((_a = this._routeEvents) !== null && _a !== void 0 ? _a : (this._routeEvents = new Client_js_37.RouteEventsClient(this._options)));
237
+ return ((_a = this._routeEvents) !== null && _a !== void 0 ? _a : (this._routeEvents = new Client_js_38.RouteEventsClient(this._options)));
233
238
  }
234
239
  get safety() {
235
240
  var _a;
236
- return ((_a = this._safety) !== null && _a !== void 0 ? _a : (this._safety = new Client_js_39.SafetyClient(this._options)));
241
+ return ((_a = this._safety) !== null && _a !== void 0 ? _a : (this._safety = new Client_js_40.SafetyClient(this._options)));
237
242
  }
238
243
  get safetyScores() {
239
244
  var _a;
240
- return ((_a = this._safetyScores) !== null && _a !== void 0 ? _a : (this._safetyScores = new Client_js_40.SafetyScoresClient(this._options)));
245
+ return ((_a = this._safetyScores) !== null && _a !== void 0 ? _a : (this._safetyScores = new Client_js_41.SafetyScoresClient(this._options)));
241
246
  }
242
247
  get speedingIntervals() {
243
248
  var _a;
244
- return ((_a = this._speedingIntervals) !== null && _a !== void 0 ? _a : (this._speedingIntervals = new Client_js_43.SpeedingIntervalsClient(this._options)));
249
+ return ((_a = this._speedingIntervals) !== null && _a !== void 0 ? _a : (this._speedingIntervals = new Client_js_44.SpeedingIntervalsClient(this._options)));
245
250
  }
246
251
  get tags() {
247
252
  var _a;
248
- return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_45.TagsClient(this._options)));
253
+ return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_46.TagsClient(this._options)));
249
254
  }
250
255
  get trainingAssignments() {
251
256
  var _a;
252
- return ((_a = this._trainingAssignments) !== null && _a !== void 0 ? _a : (this._trainingAssignments = new Client_js_48.TrainingAssignmentsClient(this._options)));
257
+ return ((_a = this._trainingAssignments) !== null && _a !== void 0 ? _a : (this._trainingAssignments = new Client_js_49.TrainingAssignmentsClient(this._options)));
253
258
  }
254
259
  get trainingCourses() {
255
260
  var _a;
256
- return ((_a = this._trainingCourses) !== null && _a !== void 0 ? _a : (this._trainingCourses = new Client_js_49.TrainingCoursesClient(this._options)));
261
+ return ((_a = this._trainingCourses) !== null && _a !== void 0 ? _a : (this._trainingCourses = new Client_js_50.TrainingCoursesClient(this._options)));
257
262
  }
258
263
  get trips() {
259
264
  var _a;
260
- return ((_a = this._trips) !== null && _a !== void 0 ? _a : (this._trips = new Client_js_50.TripsClient(this._options)));
265
+ return ((_a = this._trips) !== null && _a !== void 0 ? _a : (this._trips = new Client_js_51.TripsClient(this._options)));
261
266
  }
262
267
  get users() {
263
268
  var _a;
264
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_51.UsersClient(this._options)));
269
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_52.UsersClient(this._options)));
265
270
  }
266
271
  get legacy() {
267
272
  var _a;
@@ -273,15 +278,15 @@ class SamsaraClient {
273
278
  }
274
279
  get trailerAssignments() {
275
280
  var _a;
276
- return ((_a = this._trailerAssignments) !== null && _a !== void 0 ? _a : (this._trailerAssignments = new Client_js_46.TrailerAssignmentsClient(this._options)));
281
+ return ((_a = this._trailerAssignments) !== null && _a !== void 0 ? _a : (this._trailerAssignments = new Client_js_47.TrailerAssignmentsClient(this._options)));
277
282
  }
278
283
  get sensors() {
279
284
  var _a;
280
- return ((_a = this._sensors) !== null && _a !== void 0 ? _a : (this._sensors = new Client_js_41.SensorsClient(this._options)));
285
+ return ((_a = this._sensors) !== null && _a !== void 0 ? _a : (this._sensors = new Client_js_42.SensorsClient(this._options)));
281
286
  }
282
287
  get webhooks() {
283
288
  var _a;
284
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_55.WebhooksClient(this._options)));
289
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_56.WebhooksClient(this._options)));
285
290
  }
286
291
  get fleet() {
287
292
  var _a;
@@ -1002,6 +1002,38 @@ export declare class BetaApIsClient {
1002
1002
  */
1003
1003
  listHubCustomProperties(request: Samsara.ListHubCustomPropertiesRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.HubCustomPropertiesListHubCustomPropertiesResponseBody>;
1004
1004
  private __listHubCustomProperties;
1005
+ /**
1006
+ * Retrieve all orders for a specific plan, including both assigned and unassigned orders.
1007
+ *
1008
+ * **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.
1009
+ *
1010
+ * <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>).
1011
+ *
1012
+ * To use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1013
+ *
1014
+ *
1015
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1016
+ *
1017
+ * @param {Samsara.ListPlanOrdersRequest} request
1018
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1019
+ *
1020
+ * @throws {@link Samsara.UnauthorizedError}
1021
+ * @throws {@link Samsara.NotFoundError}
1022
+ * @throws {@link Samsara.MethodNotAllowedError}
1023
+ * @throws {@link Samsara.TooManyRequestsError}
1024
+ * @throws {@link Samsara.InternalServerError}
1025
+ * @throws {@link Samsara.NotImplementedError}
1026
+ * @throws {@link Samsara.BadGatewayError}
1027
+ * @throws {@link Samsara.ServiceUnavailableError}
1028
+ * @throws {@link Samsara.GatewayTimeoutError}
1029
+ *
1030
+ * @example
1031
+ * await client.betaApIs.listPlanOrders({
1032
+ * planId: "planId"
1033
+ * })
1034
+ */
1035
+ listPlanOrders(request: Samsara.ListPlanOrdersRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.PlanOrdersListPlanOrdersResponseBody>;
1036
+ private __listPlanOrders;
1005
1037
  /**
1006
1038
  * Create one or more orders (bulk upsert). Pass an array of order objects; any object whose customerOrderId already exists will be updated, otherwise a new order is created. Functions can return JSON arrays in this Order POST format. Orders are initially created at the plan level but will migrate to hub-level entities, with planId becoming optional in future versions.
1007
1039
  *
@@ -1038,6 +1070,38 @@ export declare class BetaApIsClient {
1038
1070
  */
1039
1071
  createPlanOrders(request: Samsara.PlanOrdersCreatePlanOrdersRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.PlanOrdersCreatePlanOrdersResponseBody>;
1040
1072
  private __createPlanOrders;
1073
+ /**
1074
+ * Delete one or more orders from a plan. Pass either `orderIds` (a comma-separated list) or `deleteAll=true`; exactly one is required. Orders are automatically unassigned from their routes before deletion.
1075
+ *
1076
+ * **Beta:** This endpoint is in beta and is likely to change before being broadly available. Reach out to your Samsara Representative to have RoutePlanning APIs enabled for your organization.
1077
+ *
1078
+ * <b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
1079
+ *
1080
+ * To use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1081
+ *
1082
+ *
1083
+ * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1084
+ *
1085
+ * @param {Samsara.DeletePlanOrdersRequest} request
1086
+ * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1087
+ *
1088
+ * @throws {@link Samsara.UnauthorizedError}
1089
+ * @throws {@link Samsara.NotFoundError}
1090
+ * @throws {@link Samsara.MethodNotAllowedError}
1091
+ * @throws {@link Samsara.TooManyRequestsError}
1092
+ * @throws {@link Samsara.InternalServerError}
1093
+ * @throws {@link Samsara.NotImplementedError}
1094
+ * @throws {@link Samsara.BadGatewayError}
1095
+ * @throws {@link Samsara.ServiceUnavailableError}
1096
+ * @throws {@link Samsara.GatewayTimeoutError}
1097
+ *
1098
+ * @example
1099
+ * await client.betaApIs.deletePlanOrders({
1100
+ * planId: "planId"
1101
+ * })
1102
+ */
1103
+ deletePlanOrders(request: Samsara.DeletePlanOrdersRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
1104
+ private __deletePlanOrders;
1041
1105
  /**
1042
1106
  * Returns qualification records for the specified list of IDs.
1043
1107
  *
@@ -1302,7 +1366,7 @@ export declare class BetaApIsClient {
1302
1366
  *
1303
1367
  * <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>).
1304
1368
  *
1305
- * To use this endpoint, select **Write Readings** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1369
+ * To use this endpoint, select **Write Readings** under the Readings category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1306
1370
  *
1307
1371
  *
1308
1372
  * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
@@ -1334,102 +1398,6 @@ export declare class BetaApIsClient {
1334
1398
  */
1335
1399
  postReadings(request: Samsara.ReadingsPostReadingsRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<void>;
1336
1400
  private __postReadings;
1337
- /**
1338
- * An introspection endpoint for discovering the set of readings including their name, description, data type, unit, and other metadata.
1339
- *
1340
- * Related guide: [Readings](https://developers.samsara.com/docs/readings).
1341
- *
1342
- * <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>).
1343
- *
1344
- * To use this endpoint, select **Read Readings** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1345
- *
1346
- *
1347
- * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1348
- *
1349
- * @param {Samsara.ListReadingsDefinitionsRequest} request
1350
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1351
- *
1352
- * @throws {@link Samsara.UnauthorizedError}
1353
- * @throws {@link Samsara.NotFoundError}
1354
- * @throws {@link Samsara.MethodNotAllowedError}
1355
- * @throws {@link Samsara.TooManyRequestsError}
1356
- * @throws {@link Samsara.InternalServerError}
1357
- * @throws {@link Samsara.NotImplementedError}
1358
- * @throws {@link Samsara.BadGatewayError}
1359
- * @throws {@link Samsara.ServiceUnavailableError}
1360
- * @throws {@link Samsara.GatewayTimeoutError}
1361
- *
1362
- * @example
1363
- * await client.betaApIs.listReadingsDefinitions()
1364
- */
1365
- listReadingsDefinitions(request?: Samsara.ListReadingsDefinitionsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.ReadingsListReadingsDefinitionsResponseBody>;
1366
- private __listReadingsDefinitions;
1367
- /**
1368
- * 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.
1369
- *
1370
- * Related guide: [Readings](https://developers.samsara.com/docs/readings).
1371
- *
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
- *
1374
- * To use this endpoint, select **Read Readings** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1375
- *
1376
- *
1377
- * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1378
- *
1379
- * @param {Samsara.GetReadingsHistoryRequest} request
1380
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1381
- *
1382
- * @throws {@link Samsara.UnauthorizedError}
1383
- * @throws {@link Samsara.NotFoundError}
1384
- * @throws {@link Samsara.MethodNotAllowedError}
1385
- * @throws {@link Samsara.TooManyRequestsError}
1386
- * @throws {@link Samsara.InternalServerError}
1387
- * @throws {@link Samsara.NotImplementedError}
1388
- * @throws {@link Samsara.BadGatewayError}
1389
- * @throws {@link Samsara.ServiceUnavailableError}
1390
- * @throws {@link Samsara.GatewayTimeoutError}
1391
- *
1392
- * @example
1393
- * await client.betaApIs.getReadingsHistory({
1394
- * readingId: "readingId",
1395
- * entityType: "entityType"
1396
- * })
1397
- */
1398
- getReadingsHistory(request: Samsara.GetReadingsHistoryRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.ReadingsGetReadingsHistoryResponseBody>;
1399
- private __getReadingsHistory;
1400
- /**
1401
- * An endpoint to get the last value of a reading for a set of entities at the specified time.
1402
- *
1403
- * Related guide: [Readings](https://developers.samsara.com/docs/readings).
1404
- *
1405
- * <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>).
1406
- *
1407
- * To use this endpoint, select **Read Readings** under the Closed Beta category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
1408
- *
1409
- *
1410
- * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
1411
- *
1412
- * @param {Samsara.GetReadingsSnapshotRequest} request
1413
- * @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
1414
- *
1415
- * @throws {@link Samsara.UnauthorizedError}
1416
- * @throws {@link Samsara.NotFoundError}
1417
- * @throws {@link Samsara.MethodNotAllowedError}
1418
- * @throws {@link Samsara.TooManyRequestsError}
1419
- * @throws {@link Samsara.InternalServerError}
1420
- * @throws {@link Samsara.NotImplementedError}
1421
- * @throws {@link Samsara.BadGatewayError}
1422
- * @throws {@link Samsara.ServiceUnavailableError}
1423
- * @throws {@link Samsara.GatewayTimeoutError}
1424
- *
1425
- * @example
1426
- * await client.betaApIs.getReadingsSnapshot({
1427
- * readingIds: "readingIds",
1428
- * entityType: "entityType"
1429
- * })
1430
- */
1431
- getReadingsSnapshot(request: Samsara.GetReadingsSnapshotRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.ReadingsGetReadingsSnapshotResponseBody>;
1432
- private __getReadingsSnapshot;
1433
1401
  /**
1434
1402
  * Get report configs created in the organization.
1435
1403
  *