@samsarahq/samsara 9.0.0 → 9.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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/betaApIs/client/Client.d.ts +60 -1
- package/dist/cjs/api/resources/betaApIs/client/Client.js +177 -1
- package/dist/cjs/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.ts +1 -1
- package/dist/cjs/api/resources/betaApIs/client/requests/GetFunctionRunRequest.d.ts +13 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetFunctionRunRequest.js +3 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.ts +30 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.ts +30 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListTachographLiveDataRequest.d.ts +16 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/ListTachographLiveDataRequest.js +3 -0
- package/dist/cjs/api/resources/betaApIs/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/media/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/media/client/Client.js +1 -1
- package/dist/cjs/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.ts +1 -1
- package/dist/cjs/api/resources/previewApIs/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/previewApIs/client/Client.js +1 -1
- package/dist/cjs/api/resources/previewApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.ts +1 -1
- package/dist/cjs/api/types/EntityListTachographLiveDataTypeResponseBody.d.ts +67 -0
- package/dist/cjs/api/types/EntityListTachographLiveDataTypeResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionRunContextResponseBody.d.ts +11 -0
- package/dist/cjs/api/types/FunctionRunContextResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunBadGatewayErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunBadGatewayErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunGatewayTimeoutErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunGatewayTimeoutErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunInternalServerErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunInternalServerErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunNotFoundErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunNotFoundErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunNotImplementedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunNotImplementedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunResponseBody.d.ts +4 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunServiceUnavailableErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunServiceUnavailableErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunTooManyRequestsErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunTooManyRequestsErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunUnauthorizedErrorResponseBody.d.ts +9 -0
- package/dist/cjs/api/types/FunctionsGetFunctionRunUnauthorizedErrorResponseBody.js +3 -0
- package/dist/cjs/api/types/GetFunctionRunDetailResponseBody.d.ts +28 -0
- package/dist/cjs/api/types/GetFunctionRunDetailResponseBody.js +15 -0
- package/dist/cjs/api/types/index.d.ts +23 -0
- package/dist/cjs/api/types/index.js +23 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/betaApIs/client/Client.d.mts +60 -1
- package/dist/esm/api/resources/betaApIs/client/Client.mjs +177 -1
- package/dist/esm/api/resources/betaApIs/client/requests/EngineImmobilizerUpdateEngineImmobilizerStateRequestBody.d.mts +1 -1
- package/dist/esm/api/resources/betaApIs/client/requests/GetFunctionRunRequest.d.mts +13 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetFunctionRunRequest.mjs +2 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsHistoryRequest.d.mts +30 -0
- package/dist/esm/api/resources/betaApIs/client/requests/GetReadingsSnapshotRequest.d.mts +30 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListTachographLiveDataRequest.d.mts +16 -0
- package/dist/esm/api/resources/betaApIs/client/requests/ListTachographLiveDataRequest.mjs +2 -0
- package/dist/esm/api/resources/betaApIs/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/media/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/media/client/Client.mjs +1 -1
- package/dist/esm/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.d.mts +1 -1
- package/dist/esm/api/resources/previewApIs/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/previewApIs/client/Client.mjs +1 -1
- package/dist/esm/api/resources/previewApIs/client/requests/SafetyEventsV2PatchSafetyEventsV2BatchRequestBody.d.mts +1 -1
- package/dist/esm/api/types/EntityListTachographLiveDataTypeResponseBody.d.mts +67 -0
- package/dist/esm/api/types/EntityListTachographLiveDataTypeResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.d.mts +6 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionRunContextResponseBody.d.mts +11 -0
- package/dist/esm/api/types/FunctionRunContextResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunBadGatewayErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunBadGatewayErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunGatewayTimeoutErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunGatewayTimeoutErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunInternalServerErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunInternalServerErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunNotFoundErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunNotFoundErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunNotImplementedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunNotImplementedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunResponseBody.d.mts +4 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunServiceUnavailableErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunServiceUnavailableErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunTooManyRequestsErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunTooManyRequestsErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunUnauthorizedErrorResponseBody.d.mts +9 -0
- package/dist/esm/api/types/FunctionsGetFunctionRunUnauthorizedErrorResponseBody.mjs +2 -0
- package/dist/esm/api/types/GetFunctionRunDetailResponseBody.d.mts +28 -0
- package/dist/esm/api/types/GetFunctionRunDetailResponseBody.mjs +12 -0
- package/dist/esm/api/types/index.d.mts +23 -0
- package/dist/esm/api/types/index.mjs +23 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +146 -3
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Method not allowed
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resource not found
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requested endpoint is not yet implemented
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as Samsara from "../index.js";
|
|
2
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody {
|
|
3
|
+
/** An array of TachographLiveDataRecords */
|
|
4
|
+
data: Samsara.EntityListTachographLiveDataTypeResponseBody[];
|
|
5
|
+
pagination: Samsara.GoaPaginationResponseResponseBody;
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service unavailable
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Too many requests
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unauthorized
|
|
3
|
+
*/
|
|
4
|
+
export interface EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Context details of the Function run execution.
|
|
3
|
+
*/
|
|
4
|
+
export interface FunctionRunContextResponseBody {
|
|
5
|
+
/** Unique request identifier for the execution. */
|
|
6
|
+
requestId: string;
|
|
7
|
+
/** The request payload sent to the Function. */
|
|
8
|
+
requestPayload?: Record<string, unknown> | undefined;
|
|
9
|
+
/** The response payload returned by the Function. */
|
|
10
|
+
responsePayload?: Record<string, unknown> | undefined;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An internal server error occurred
|
|
3
|
+
*/
|
|
4
|
+
export interface FunctionsGetFunctionRunInternalServerErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Method not allowed
|
|
3
|
+
*/
|
|
4
|
+
export interface FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requested endpoint is not yet implemented
|
|
3
|
+
*/
|
|
4
|
+
export interface FunctionsGetFunctionRunNotImplementedErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Service unavailable
|
|
3
|
+
*/
|
|
4
|
+
export interface FunctionsGetFunctionRunServiceUnavailableErrorResponseBody {
|
|
5
|
+
/** Message of error */
|
|
6
|
+
message: string;
|
|
7
|
+
/** The request ID; used when reaching out to support for issues with requests. */
|
|
8
|
+
requestId: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type * as Samsara from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Details of a specific Function run.
|
|
4
|
+
*/
|
|
5
|
+
export interface GetFunctionRunDetailResponseBody {
|
|
6
|
+
/** RFC 3339 timestamp when the Function run completed. Absent while the run is in progress. */
|
|
7
|
+
completedAtTime?: string | undefined;
|
|
8
|
+
context: Samsara.FunctionRunContextResponseBody;
|
|
9
|
+
/** Unique identifier for this Function run. */
|
|
10
|
+
correlationId: string;
|
|
11
|
+
/** Name of the Function. */
|
|
12
|
+
name: string;
|
|
13
|
+
/** RFC 3339 timestamp when the Function run started. */
|
|
14
|
+
startedAtTime: string;
|
|
15
|
+
/** Execution status of the Function run. Valid values: `started`, `timeout`, `error`, `success`, `dropped` */
|
|
16
|
+
status: GetFunctionRunDetailResponseBody.Status;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace GetFunctionRunDetailResponseBody {
|
|
19
|
+
/** Execution status of the Function run. Valid values: `started`, `timeout`, `error`, `success`, `dropped` */
|
|
20
|
+
const Status: {
|
|
21
|
+
readonly Started: "started";
|
|
22
|
+
readonly Timeout: "timeout";
|
|
23
|
+
readonly Error: "error";
|
|
24
|
+
readonly Success: "success";
|
|
25
|
+
readonly Dropped: "dropped";
|
|
26
|
+
};
|
|
27
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GetFunctionRunDetailResponseBody = void 0;
|
|
5
|
+
var GetFunctionRunDetailResponseBody;
|
|
6
|
+
(function (GetFunctionRunDetailResponseBody) {
|
|
7
|
+
/** Execution status of the Function run. Valid values: `started`, `timeout`, `error`, `success`, `dropped` */
|
|
8
|
+
GetFunctionRunDetailResponseBody.Status = {
|
|
9
|
+
Started: "started",
|
|
10
|
+
Timeout: "timeout",
|
|
11
|
+
Error: "error",
|
|
12
|
+
Success: "success",
|
|
13
|
+
Dropped: "dropped",
|
|
14
|
+
};
|
|
15
|
+
})(GetFunctionRunDetailResponseBody || (exports.GetFunctionRunDetailResponseBody = GetFunctionRunDetailResponseBody = {}));
|
|
@@ -797,6 +797,17 @@ export * from "./EngineOnDetailsObjectRequestBody.js";
|
|
|
797
797
|
export * from "./EngineOnDetailsObjectResponseBody.js";
|
|
798
798
|
export * from "./EngineOnResponseBody.js";
|
|
799
799
|
export * from "./EngineStatusResponseBody.js";
|
|
800
|
+
export * from "./EntityListTachographLiveDataTypeResponseBody.js";
|
|
801
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.js";
|
|
802
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.js";
|
|
803
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.js";
|
|
804
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.js";
|
|
805
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.js";
|
|
806
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.js";
|
|
807
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.js";
|
|
808
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.js";
|
|
809
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.js";
|
|
810
|
+
export * from "./EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.js";
|
|
800
811
|
export * from "./EnumReadingAlertThresholdResponseBody.js";
|
|
801
812
|
export * from "./EnumValueResponseBody.js";
|
|
802
813
|
export * from "./EquipmentEngineRpm.js";
|
|
@@ -1029,6 +1040,7 @@ export * from "./FuelVolumeResponseBody.js";
|
|
|
1029
1040
|
export * from "./FunctionCodePackageResponseBody.js";
|
|
1030
1041
|
export * from "./FunctionConfigResponseBody.js";
|
|
1031
1042
|
export * from "./FunctionEffectsResponseBody.js";
|
|
1043
|
+
export * from "./FunctionRunContextResponseBody.js";
|
|
1032
1044
|
export * from "./FunctionScheduleEntryRequestBody.js";
|
|
1033
1045
|
export * from "./FunctionScheduleEntryResponseBody.js";
|
|
1034
1046
|
export * from "./FunctionScheduleRequestBody.js";
|
|
@@ -1060,6 +1072,16 @@ export * from "./FunctionsGetFunctionMethodNotAllowedErrorResponseBody.js";
|
|
|
1060
1072
|
export * from "./FunctionsGetFunctionNotFoundErrorResponseBody.js";
|
|
1061
1073
|
export * from "./FunctionsGetFunctionNotImplementedErrorResponseBody.js";
|
|
1062
1074
|
export * from "./FunctionsGetFunctionResponseBody.js";
|
|
1075
|
+
export * from "./FunctionsGetFunctionRunBadGatewayErrorResponseBody.js";
|
|
1076
|
+
export * from "./FunctionsGetFunctionRunGatewayTimeoutErrorResponseBody.js";
|
|
1077
|
+
export * from "./FunctionsGetFunctionRunInternalServerErrorResponseBody.js";
|
|
1078
|
+
export * from "./FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody.js";
|
|
1079
|
+
export * from "./FunctionsGetFunctionRunNotFoundErrorResponseBody.js";
|
|
1080
|
+
export * from "./FunctionsGetFunctionRunNotImplementedErrorResponseBody.js";
|
|
1081
|
+
export * from "./FunctionsGetFunctionRunResponseBody.js";
|
|
1082
|
+
export * from "./FunctionsGetFunctionRunServiceUnavailableErrorResponseBody.js";
|
|
1083
|
+
export * from "./FunctionsGetFunctionRunTooManyRequestsErrorResponseBody.js";
|
|
1084
|
+
export * from "./FunctionsGetFunctionRunUnauthorizedErrorResponseBody.js";
|
|
1063
1085
|
export * from "./FunctionsGetFunctionServiceUnavailableErrorResponseBody.js";
|
|
1064
1086
|
export * from "./FunctionsGetFunctionTooManyRequestsErrorResponseBody.js";
|
|
1065
1087
|
export * from "./FunctionsGetFunctionUnauthorizedErrorResponseBody.js";
|
|
@@ -1132,6 +1154,7 @@ export * from "./GetAttributesByEntityTypeResponse.js";
|
|
|
1132
1154
|
export * from "./GetDocumentTypeResponseObjectResponseBody.js";
|
|
1133
1155
|
export * from "./GetDriverTrailerAssignmentsResponseBodyResponseBody.js";
|
|
1134
1156
|
export * from "./GetFunctionDetailResponseBody.js";
|
|
1157
|
+
export * from "./GetFunctionRunDetailResponseBody.js";
|
|
1135
1158
|
export * from "./GetMediaRetrievalObjectResponseBody.js";
|
|
1136
1159
|
export * from "./GetReportRunsDataObjectResponseBody.js";
|
|
1137
1160
|
export * from "./GetResponseWorkflowConfigurationObjectResponseBody.js";
|
|
@@ -813,6 +813,17 @@ __exportStar(require("./EngineOnDetailsObjectRequestBody.js"), exports);
|
|
|
813
813
|
__exportStar(require("./EngineOnDetailsObjectResponseBody.js"), exports);
|
|
814
814
|
__exportStar(require("./EngineOnResponseBody.js"), exports);
|
|
815
815
|
__exportStar(require("./EngineStatusResponseBody.js"), exports);
|
|
816
|
+
__exportStar(require("./EntityListTachographLiveDataTypeResponseBody.js"), exports);
|
|
817
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataBadGatewayErrorResponseBody.js"), exports);
|
|
818
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataGatewayTimeoutErrorResponseBody.js"), exports);
|
|
819
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataInternalServerErrorResponseBody.js"), exports);
|
|
820
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataMethodNotAllowedErrorResponseBody.js"), exports);
|
|
821
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataNotFoundErrorResponseBody.js"), exports);
|
|
822
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataNotImplementedErrorResponseBody.js"), exports);
|
|
823
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody.js"), exports);
|
|
824
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataServiceUnavailableErrorResponseBody.js"), exports);
|
|
825
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataTooManyRequestsErrorResponseBody.js"), exports);
|
|
826
|
+
__exportStar(require("./EntityTachographLiveDataRecordsServiceListTachographLiveDataUnauthorizedErrorResponseBody.js"), exports);
|
|
816
827
|
__exportStar(require("./EnumReadingAlertThresholdResponseBody.js"), exports);
|
|
817
828
|
__exportStar(require("./EnumValueResponseBody.js"), exports);
|
|
818
829
|
__exportStar(require("./EquipmentEngineRpm.js"), exports);
|
|
@@ -1045,6 +1056,7 @@ __exportStar(require("./FuelVolumeResponseBody.js"), exports);
|
|
|
1045
1056
|
__exportStar(require("./FunctionCodePackageResponseBody.js"), exports);
|
|
1046
1057
|
__exportStar(require("./FunctionConfigResponseBody.js"), exports);
|
|
1047
1058
|
__exportStar(require("./FunctionEffectsResponseBody.js"), exports);
|
|
1059
|
+
__exportStar(require("./FunctionRunContextResponseBody.js"), exports);
|
|
1048
1060
|
__exportStar(require("./FunctionScheduleEntryRequestBody.js"), exports);
|
|
1049
1061
|
__exportStar(require("./FunctionScheduleEntryResponseBody.js"), exports);
|
|
1050
1062
|
__exportStar(require("./FunctionScheduleRequestBody.js"), exports);
|
|
@@ -1076,6 +1088,16 @@ __exportStar(require("./FunctionsGetFunctionMethodNotAllowedErrorResponseBody.js
|
|
|
1076
1088
|
__exportStar(require("./FunctionsGetFunctionNotFoundErrorResponseBody.js"), exports);
|
|
1077
1089
|
__exportStar(require("./FunctionsGetFunctionNotImplementedErrorResponseBody.js"), exports);
|
|
1078
1090
|
__exportStar(require("./FunctionsGetFunctionResponseBody.js"), exports);
|
|
1091
|
+
__exportStar(require("./FunctionsGetFunctionRunBadGatewayErrorResponseBody.js"), exports);
|
|
1092
|
+
__exportStar(require("./FunctionsGetFunctionRunGatewayTimeoutErrorResponseBody.js"), exports);
|
|
1093
|
+
__exportStar(require("./FunctionsGetFunctionRunInternalServerErrorResponseBody.js"), exports);
|
|
1094
|
+
__exportStar(require("./FunctionsGetFunctionRunMethodNotAllowedErrorResponseBody.js"), exports);
|
|
1095
|
+
__exportStar(require("./FunctionsGetFunctionRunNotFoundErrorResponseBody.js"), exports);
|
|
1096
|
+
__exportStar(require("./FunctionsGetFunctionRunNotImplementedErrorResponseBody.js"), exports);
|
|
1097
|
+
__exportStar(require("./FunctionsGetFunctionRunResponseBody.js"), exports);
|
|
1098
|
+
__exportStar(require("./FunctionsGetFunctionRunServiceUnavailableErrorResponseBody.js"), exports);
|
|
1099
|
+
__exportStar(require("./FunctionsGetFunctionRunTooManyRequestsErrorResponseBody.js"), exports);
|
|
1100
|
+
__exportStar(require("./FunctionsGetFunctionRunUnauthorizedErrorResponseBody.js"), exports);
|
|
1079
1101
|
__exportStar(require("./FunctionsGetFunctionServiceUnavailableErrorResponseBody.js"), exports);
|
|
1080
1102
|
__exportStar(require("./FunctionsGetFunctionTooManyRequestsErrorResponseBody.js"), exports);
|
|
1081
1103
|
__exportStar(require("./FunctionsGetFunctionUnauthorizedErrorResponseBody.js"), exports);
|
|
@@ -1148,6 +1170,7 @@ __exportStar(require("./GetAttributesByEntityTypeResponse.js"), exports);
|
|
|
1148
1170
|
__exportStar(require("./GetDocumentTypeResponseObjectResponseBody.js"), exports);
|
|
1149
1171
|
__exportStar(require("./GetDriverTrailerAssignmentsResponseBodyResponseBody.js"), exports);
|
|
1150
1172
|
__exportStar(require("./GetFunctionDetailResponseBody.js"), exports);
|
|
1173
|
+
__exportStar(require("./GetFunctionRunDetailResponseBody.js"), exports);
|
|
1151
1174
|
__exportStar(require("./GetMediaRetrievalObjectResponseBody.js"), exports);
|
|
1152
1175
|
__exportStar(require("./GetReportRunsDataObjectResponseBody.js"), exports);
|
|
1153
1176
|
__exportStar(require("./GetResponseWorkflowConfigurationObjectResponseBody.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "9.
|
|
1
|
+
export declare const SDK_VERSION = "9.2.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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": "9.
|
|
11
|
-
"User-Agent": "@samsarahq/samsara/9.
|
|
10
|
+
"X-Fern-SDK-Version": "9.2.0",
|
|
11
|
+
"User-Agent": "@samsarahq/samsara/9.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",
|
|
@@ -307,7 +307,7 @@ export declare class BetaApIsClient {
|
|
|
307
307
|
* id: 1000000,
|
|
308
308
|
* relayStates: [{
|
|
309
309
|
* id: "relay1",
|
|
310
|
-
* isOpen:
|
|
310
|
+
* isOpen: true
|
|
311
311
|
* }]
|
|
312
312
|
* })
|
|
313
313
|
*/
|
|
@@ -699,6 +699,34 @@ export declare class BetaApIsClient {
|
|
|
699
699
|
*/
|
|
700
700
|
listMaintenanceVendors(request?: Samsara.ListMaintenanceVendorsRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.MaintenanceVendorsListMaintenanceVendorsResponseBody>;
|
|
701
701
|
private __listMaintenanceVendors;
|
|
702
|
+
/**
|
|
703
|
+
* Returns the latest live tachograph data for drivers, including working state and driving rest times, sourced from real-time telemetry.
|
|
704
|
+
*
|
|
705
|
+
* <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>).
|
|
706
|
+
*
|
|
707
|
+
* To use this endpoint, select **Read Tachograph (EU)** under the Compliance 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>
|
|
708
|
+
*
|
|
709
|
+
*
|
|
710
|
+
* **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.
|
|
711
|
+
*
|
|
712
|
+
* @param {Samsara.ListTachographLiveDataRequest} request
|
|
713
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
714
|
+
*
|
|
715
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
716
|
+
* @throws {@link Samsara.NotFoundError}
|
|
717
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
718
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
719
|
+
* @throws {@link Samsara.InternalServerError}
|
|
720
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
721
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
722
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
723
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
724
|
+
*
|
|
725
|
+
* @example
|
|
726
|
+
* await client.betaApIs.listTachographLiveData()
|
|
727
|
+
*/
|
|
728
|
+
listTachographLiveData(request?: Samsara.ListTachographLiveDataRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.EntityTachographLiveDataRecordsServiceListTachographLiveDataResponseBody>;
|
|
729
|
+
private __listTachographLiveData;
|
|
702
730
|
/**
|
|
703
731
|
* Get the engine immobilizer states of the queried vehicles. If a vehicle has never had an engine immobilizer connected, there won't be any state returned for that vehicle.
|
|
704
732
|
*
|
|
@@ -885,6 +913,37 @@ export declare class BetaApIsClient {
|
|
|
885
913
|
*/
|
|
886
914
|
startFunctionRun(request: Samsara.FunctionsStartFunctionRunRequestBody, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsStartFunctionRunResponseBody>;
|
|
887
915
|
private __startFunctionRun;
|
|
916
|
+
/**
|
|
917
|
+
* Retrieve the execution summary for a specific Function run, identified by the correlationId returned from the start run endpoint.
|
|
918
|
+
*
|
|
919
|
+
* <b>Rate limit:</b> 100 requests/min (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).
|
|
920
|
+
*
|
|
921
|
+
* To use this endpoint, select **Read Functions** 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>
|
|
922
|
+
*
|
|
923
|
+
*
|
|
924
|
+
* **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.
|
|
925
|
+
*
|
|
926
|
+
* @param {Samsara.GetFunctionRunRequest} request
|
|
927
|
+
* @param {BetaApIsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
928
|
+
*
|
|
929
|
+
* @throws {@link Samsara.UnauthorizedError}
|
|
930
|
+
* @throws {@link Samsara.NotFoundError}
|
|
931
|
+
* @throws {@link Samsara.MethodNotAllowedError}
|
|
932
|
+
* @throws {@link Samsara.TooManyRequestsError}
|
|
933
|
+
* @throws {@link Samsara.InternalServerError}
|
|
934
|
+
* @throws {@link Samsara.NotImplementedError}
|
|
935
|
+
* @throws {@link Samsara.BadGatewayError}
|
|
936
|
+
* @throws {@link Samsara.ServiceUnavailableError}
|
|
937
|
+
* @throws {@link Samsara.GatewayTimeoutError}
|
|
938
|
+
*
|
|
939
|
+
* @example
|
|
940
|
+
* await client.betaApIs.getFunctionRun({
|
|
941
|
+
* name: "name",
|
|
942
|
+
* correlationId: "correlationId"
|
|
943
|
+
* })
|
|
944
|
+
*/
|
|
945
|
+
getFunctionRun(request: Samsara.GetFunctionRunRequest, requestOptions?: BetaApIsClient.RequestOptions): core.HttpResponsePromise<Samsara.FunctionsGetFunctionRunResponseBody>;
|
|
946
|
+
private __getFunctionRun;
|
|
888
947
|
/**
|
|
889
948
|
* Update the shippingDocs field of an existing assignment.
|
|
890
949
|
*
|