Skip to content

Commit de550fa

Browse files
SDK regeneration
1 parent 55c66f9 commit de550fa

File tree

43 files changed

+1372
-41
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1372
-41
lines changed

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"namespaceExport": "Samsara",
77
"generateWireTests": true
88
},
9-
"sdkVersion": "7.0.0"
9+
"sdkVersion": "7.1.0"
1010
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@samsarahq/samsara",
3-
"version": "7.0.0",
3+
"version": "7.1.0",
44
"private": false,
55
"repository": {
66
"type": "git",

reference.md

Lines changed: 158 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6893,7 +6893,7 @@ To use this endpoint, select **Write Media Retrieval** under the Safety & Camera
68936893
```typescript
68946894
await client.media.postMediaRetrieval({
68956895
endTime: "2019-06-13T19:08:55Z",
6896-
inputs: ["dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing"],
6896+
inputs: ["dashcamRoadFacing", "dashcamRoadFacing"],
68976897
mediaType: "image",
68986898
startTime: "2019-06-13T19:08:25Z",
68996899
vehicleId: "1234"
@@ -18019,6 +18019,85 @@ await client.organizationInfo.getOrganizationInfo();
1801918019
</details>
1802018020

1802118021
## Preview APIs
18022+
<details><summary><code>client.previewApIs.<a href="/src/api/resources/previewApIs/client/Client.ts">listAssociations</a>({ ...params }) -> Samsara.AssociationsListAssociationsResponseBody</code></summary>
18023+
<dl>
18024+
<dd>
18025+
18026+
#### 📝 Description
18027+
18028+
<dl>
18029+
<dd>
18030+
18031+
<dl>
18032+
<dd>
18033+
18034+
List associations between vehicles and peripheral devices within a given time range. Associations represent the relationship between a central device (vehicle) and a peripheral device (e.g. asset tag). An association with a null endTime is still active.
18035+
18036+
<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>).
18037+
18038+
To use this endpoint, select **Read Assets** under the Assets 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>
18039+
18040+
Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
18041+
18042+
- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
18043+
18044+
- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
18045+
18046+
18047+
**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.
18048+
</dd>
18049+
</dl>
18050+
</dd>
18051+
</dl>
18052+
18053+
#### 🔌 Usage
18054+
18055+
<dl>
18056+
<dd>
18057+
18058+
<dl>
18059+
<dd>
18060+
18061+
```typescript
18062+
await client.previewApIs.listAssociations({
18063+
startTime: "startTime",
18064+
endTime: "endTime"
18065+
});
18066+
18067+
```
18068+
</dd>
18069+
</dl>
18070+
</dd>
18071+
</dl>
18072+
18073+
#### ⚙️ Parameters
18074+
18075+
<dl>
18076+
<dd>
18077+
18078+
<dl>
18079+
<dd>
18080+
18081+
**request:** `Samsara.ListAssociationsRequest`
18082+
18083+
</dd>
18084+
</dl>
18085+
18086+
<dl>
18087+
<dd>
18088+
18089+
**requestOptions:** `PreviewApIsClient.RequestOptions`
18090+
18091+
</dd>
18092+
</dl>
18093+
</dd>
18094+
</dl>
18095+
18096+
18097+
</dd>
18098+
</dl>
18099+
</details>
18100+
1802218101
<details><summary><code>client.previewApIs.<a href="/src/api/resources/previewApIs/client/Client.ts">createDriverAuthToken</a>({ ...params }) -> Samsara.DriversAuthTokenCreateDriverAuthTokenResponseBody</code></summary>
1802318102
<dl>
1802418103
<dd>
@@ -18249,6 +18328,84 @@ await client.previewApIs.unlockVehicle({
1824918328
</dl>
1825018329

1825118330

18331+
</dd>
18332+
</dl>
18333+
</details>
18334+
18335+
<details><summary><code>client.previewApIs.<a href="/src/api/resources/previewApIs/client/Client.ts">patchSafetyEventsV2Batch</a>({ ...params }) -> Samsara.SafetyEventsV2PatchSafetyEventsV2BatchResponseBody</code></summary>
18336+
<dl>
18337+
<dd>
18338+
18339+
#### 📝 Description
18340+
18341+
<dl>
18342+
<dd>
18343+
18344+
<dl>
18345+
<dd>
18346+
18347+
Asynchronously update eventState and/or context labels for one or more Safety Events. Returns 202 Accepted immediately. State changes propagate asynchronously; use GET /safety-events to confirm updated state. If any safetyEventIds are not found, the entire request fails with 404 before any mutations are executed. If both eventState and label fields are provided, the two mutations execute serially and are not transactional — a label mutation failure will not roll back a successful state change.
18348+
18349+
<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>).
18350+
18351+
To use this endpoint, select **Write Safety Events & Scores** under the Safety & Cameras 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>
18352+
18353+
Endpoints in this section are in Preview. These APIs are not functional and are instead for soliciting feedback from our API users on the intended design of this API. Additionally, it is not guaranteed that we will be releasing an endpoint included in this section to production. This means that developers should **NOT** rely on these APIs to build business critical applications
18354+
18355+
- Samsara may change the structure of a preview API's interface without versioning or any notice to API users.
18356+
18357+
- When an endpoint becomes generally available, it will be announced in the API [changelog](https://developers.samsara.com/changelog).
18358+
18359+
18360+
**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.
18361+
</dd>
18362+
</dl>
18363+
</dd>
18364+
</dl>
18365+
18366+
#### 🔌 Usage
18367+
18368+
<dl>
18369+
<dd>
18370+
18371+
<dl>
18372+
<dd>
18373+
18374+
```typescript
18375+
await client.previewApIs.patchSafetyEventsV2Batch({
18376+
safetyEventIds: ["bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590", "bb2ff5ab-30ad-49ec-9d2d-55ec30bbf590"]
18377+
});
18378+
18379+
```
18380+
</dd>
18381+
</dl>
18382+
</dd>
18383+
</dl>
18384+
18385+
#### ⚙️ Parameters
18386+
18387+
<dl>
18388+
<dd>
18389+
18390+
<dl>
18391+
<dd>
18392+
18393+
**request:** `Samsara.SafetyEventsV2PatchSafetyEventsV2BatchRequestBody`
18394+
18395+
</dd>
18396+
</dl>
18397+
18398+
<dl>
18399+
<dd>
18400+
18401+
**requestOptions:** `PreviewApIsClient.RequestOptions`
18402+
18403+
</dd>
18404+
</dl>
18405+
</dd>
18406+
</dl>
18407+
18408+
1825218409
</dd>
1825318410
</dl>
1825418411
</details>

src/BaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
5555
{
5656
"X-Fern-Language": "JavaScript",
5757
"X-Fern-SDK-Name": "@samsarahq/samsara",
58-
"X-Fern-SDK-Version": "7.0.0",
59-
"User-Agent": "@samsarahq/samsara/7.0.0",
58+
"X-Fern-SDK-Version": "7.1.0",
59+
"User-Agent": "@samsarahq/samsara/7.1.0",
6060
"X-Fern-Runtime": core.RUNTIME.type,
6161
"X-Fern-Runtime-Version": core.RUNTIME.version,
6262
"X-Samsara-Version": options?.version ?? "2025-06-11",

src/api/resources/media/client/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export class MediaClient {
276276
* @example
277277
* await client.media.postMediaRetrieval({
278278
* endTime: "2019-06-13T19:08:55Z",
279-
* inputs: ["dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing"],
279+
* inputs: ["dashcamRoadFacing", "dashcamRoadFacing"],
280280
* mediaType: "image",
281281
* startTime: "2019-06-13T19:08:25Z",
282282
* vehicleId: "1234"

src/api/resources/media/client/requests/MediaRetrievalPostMediaRetrievalRequestBody.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @example
55
* {
66
* endTime: "2019-06-13T19:08:55Z",
7-
* inputs: ["dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing", "dashcamRoadFacing"],
7+
* inputs: ["dashcamRoadFacing", "dashcamRoadFacing"],
88
* mediaType: "image",
99
* startTime: "2019-06-13T19:08:25Z",
1010
* vehicleId: "1234"

0 commit comments

Comments
 (0)