import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Samsara from "../../../index.js"; export declare namespace AssetsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class AssetsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: AssetsClient.Options); /** * List all assets. Up to 300 assets will be returned per page. * * Rate limit: 5 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Assets** under the Assets category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.ListAssetsRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.assets.list() */ list(request?: Samsara.ListAssetsRequest, requestOptions?: AssetsClient.RequestOptions): Promise>; /** * Create a new asset. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.AssetsCreateAssetRequestBody} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.assets.createAsset() */ createAsset(request?: Samsara.AssetsCreateAssetRequestBody, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __createAsset; /** * Delete an existing asset. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.DeleteAssetRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.assets.deleteAsset({ * id: "id" * }) */ deleteAsset(request: Samsara.DeleteAssetRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __deleteAsset; /** * Update an existing asset. * * Rate limit: 100 requests/min (learn more about rate limits here). * * To use this endpoint, select **Write Assets** under the Assets category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.AssetsUpdateAssetRequestBody} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.assets.updateAsset({ * id: "id" * }) */ updateAsset(request: Samsara.AssetsUpdateAssetRequestBody, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __updateAsset; /** * > 🚧 This endpoint is still on our legacy API. * * Fetch current locations of all assets. * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * To use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. Learn More. * * @param {Samsara.V1GetAllAssetCurrentLocationsRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.assets.v1GetAllAssetCurrentLocations() */ v1GetAllAssetCurrentLocations(request?: Samsara.V1GetAllAssetCurrentLocationsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __v1GetAllAssetCurrentLocations; /** * > 🚧 This endpoint is still on our legacy API. * * Fetches all reefers and reefer-specific stats. * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * To use this endpoint, select **Read Trailers** under the Trailers category when creating or editing an API token. Learn More. * * @param {Samsara.V1GetAssetsReefersRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.assets.v1GetAssetsReefers({ * startMs: 1000000, * endMs: 1000000 * }) */ v1GetAssetsReefers(request: Samsara.V1GetAssetsReefersRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __v1GetAssetsReefers; /** * * * * This endpoint is still on our legacy API. * * * * List historical locations for a given asset. * * Rate limit: 25 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.GetAssetLocationRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.assets.getAssetLocation({ * assetId: 1000000 * }) */ getAssetLocation(request: Samsara.GetAssetLocationRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __getAssetLocation; /** * Fetch the reefer-specific stats of an asset. * * Rate limit: 25 requests/sec (learn more about rate limits here). * * To use this endpoint, select **Read Trailers** under the Trailers category when creating or editing an API token. Learn More. * * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * @param {Samsara.GetAssetReeferRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Samsara.UnauthorizedError} * @throws {@link Samsara.NotFoundError} * @throws {@link Samsara.MethodNotAllowedError} * @throws {@link Samsara.ContentTooLargeError} * @throws {@link Samsara.TooManyRequestsError} * @throws {@link Samsara.InternalServerError} * @throws {@link Samsara.NotImplementedError} * @throws {@link Samsara.BadGatewayError} * @throws {@link Samsara.ServiceUnavailableError} * @throws {@link Samsara.GatewayTimeoutError} * * @example * await client.assets.getAssetReefer({ * assetId: 1000000, * startMs: 1000000, * endMs: 1000000 * }) */ getAssetReefer(request: Samsara.GetAssetReeferRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __getAssetReefer; /** * > 🚧 This endpoint is still on our legacy API. * * List historical locations for a given asset. * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * To use this endpoint, select **Read Equipment Statistics** under the Equipment category when creating or editing an API token. Learn More. * * @param {Samsara.V1GetAssetLocationRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.assets.v1GetAssetLocation({ * asset_id: 1000000, * startMs: 1000000, * endMs: 1000000 * }) */ v1GetAssetLocation(request: Samsara.V1GetAssetLocationRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __v1GetAssetLocation; /** * > 🚧 This endpoint is still on our legacy API. * * Fetch the reefer-specific stats of an asset. * * **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team. * * To use this endpoint, select **Read Trailers** under the Trailers category when creating or editing an API token. Learn More. * * @param {Samsara.V1GetAssetReeferRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.assets.v1GetAssetReefer({ * asset_id: 1000000, * startMs: 1000000, * endMs: 1000000 * }) */ v1GetAssetReefer(request: Samsara.V1GetAssetReeferRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __v1GetAssetReefer; /** * @param {Samsara.GetAssetsRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.assets.get({ * id: "id" * }) */ get(request: Samsara.GetAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __get; /** * @param {Samsara.UpdateAssetsRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.assets.update({ * id: "id" * }) */ update(request: Samsara.UpdateAssetsRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __update; }