@chrt-inc/typescript-sdk 1.455.2 → 1.467.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 (52) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.ts +10 -6
  3. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.js +18 -10
  4. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.d.ts +6 -2
  5. package/dist/cjs/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.d.ts +6 -2
  6. package/dist/cjs/api/resources/utils/resources/dev/client/Client.d.ts +32 -1
  7. package/dist/cjs/api/resources/utils/resources/dev/client/Client.js +133 -1
  8. package/dist/cjs/api/resources/utils/resources/dev/client/requests/OrderBuilderReq.d.ts +14 -0
  9. package/dist/cjs/api/resources/utils/resources/dev/client/requests/OrderBuilderReq.js +5 -0
  10. package/dist/cjs/api/resources/utils/resources/dev/client/requests/ReadOrderAgentReq.d.ts +12 -0
  11. package/dist/cjs/api/resources/utils/resources/dev/client/requests/ReadOrderAgentReq.js +5 -0
  12. package/dist/cjs/api/resources/utils/resources/dev/client/requests/index.d.ts +2 -0
  13. package/dist/cjs/api/types/OrderBuilderRes.d.ts +9 -0
  14. package/dist/cjs/api/types/OrderBuilderRes.js +5 -0
  15. package/dist/cjs/api/types/ReadOrderAgentRes.d.ts +8 -0
  16. package/dist/cjs/api/types/ReadOrderAgentRes.js +5 -0
  17. package/dist/cjs/api/types/SessionByDeviceDataPoint1.d.ts +1 -0
  18. package/dist/cjs/api/types/SessionByDeviceHistoryRes1.d.ts +8 -0
  19. package/dist/cjs/api/types/SessionByDeviceHistoryRes1.js +5 -0
  20. package/dist/cjs/api/types/StationaryCluster.d.ts +11 -0
  21. package/dist/cjs/api/types/StationaryCluster.js +5 -0
  22. package/dist/cjs/api/types/index.d.ts +4 -0
  23. package/dist/cjs/api/types/index.js +4 -0
  24. package/dist/cjs/version.d.ts +1 -1
  25. package/dist/cjs/version.js +1 -1
  26. package/dist/esm/Client.mjs +2 -2
  27. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +10 -6
  28. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +18 -10
  29. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.d.mts +6 -2
  30. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.d.mts +6 -2
  31. package/dist/esm/api/resources/utils/resources/dev/client/Client.d.mts +32 -1
  32. package/dist/esm/api/resources/utils/resources/dev/client/Client.mjs +133 -1
  33. package/dist/esm/api/resources/utils/resources/dev/client/requests/OrderBuilderReq.d.mts +14 -0
  34. package/dist/esm/api/resources/utils/resources/dev/client/requests/OrderBuilderReq.mjs +4 -0
  35. package/dist/esm/api/resources/utils/resources/dev/client/requests/ReadOrderAgentReq.d.mts +12 -0
  36. package/dist/esm/api/resources/utils/resources/dev/client/requests/ReadOrderAgentReq.mjs +4 -0
  37. package/dist/esm/api/resources/utils/resources/dev/client/requests/index.d.mts +2 -0
  38. package/dist/esm/api/types/OrderBuilderRes.d.mts +9 -0
  39. package/dist/esm/api/types/OrderBuilderRes.mjs +4 -0
  40. package/dist/esm/api/types/ReadOrderAgentRes.d.mts +8 -0
  41. package/dist/esm/api/types/ReadOrderAgentRes.mjs +4 -0
  42. package/dist/esm/api/types/SessionByDeviceDataPoint1.d.mts +1 -0
  43. package/dist/esm/api/types/SessionByDeviceHistoryRes1.d.mts +8 -0
  44. package/dist/esm/api/types/SessionByDeviceHistoryRes1.mjs +4 -0
  45. package/dist/esm/api/types/StationaryCluster.d.mts +11 -0
  46. package/dist/esm/api/types/StationaryCluster.mjs +4 -0
  47. package/dist/esm/api/types/index.d.mts +4 -0
  48. package/dist/esm/api/types/index.mjs +4 -0
  49. package/dist/esm/version.d.mts +1 -1
  50. package/dist/esm/version.mjs +1 -1
  51. package/package.json +1 -1
  52. package/reference.md +142 -7
package/reference.md CHANGED
@@ -13975,7 +13975,7 @@ await client.tracking.timeseries.sessionByDevice.lastSeenV1({
13975
13975
  </dl>
13976
13976
  </details>
13977
13977
 
13978
- <details><summary><code>client.tracking.timeseries.sessionByDevice.<a href="/src/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.ts">dataPointsV1</a>({ ...params }) -> Chrt.SessionByDeviceDataPoint1[]</code></summary>
13978
+ <details><summary><code>client.tracking.timeseries.sessionByDevice.<a href="/src/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.ts">dataPointsV1</a>({ ...params }) -> Chrt.SessionByDeviceHistoryRes1</code></summary>
13979
13979
  <dl>
13980
13980
  <dd>
13981
13981
 
@@ -13987,7 +13987,7 @@ await client.tracking.timeseries.sessionByDevice.lastSeenV1({
13987
13987
  <dl>
13988
13988
  <dd>
13989
13989
 
13990
- Returns up to the specified number of data points for a session, intelligently sampled across the time range. Excludes outliers. | () -> (list[SessionByDeviceDataPoint1])
13990
+ Returns time-bucketed data points and stationary clusters for a session within the given time range. start_timestamp and end_timestamp are required. | authz: min_org_role=operator | () -> SessionByDeviceHistoryRes1
13991
13991
 
13992
13992
  </dd>
13993
13993
  </dl>
@@ -14005,7 +14005,9 @@ Returns up to the specified number of data points for a session, intelligently s
14005
14005
  ```typescript
14006
14006
  await client.tracking.timeseries.sessionByDevice.dataPointsV1({
14007
14007
  session_id: "session_id",
14008
- limit: 1,
14008
+ start_timestamp: "2024-01-15T09:30:00Z",
14009
+ end_timestamp: "2024-01-15T09:30:00Z",
14010
+ bucket_seconds: 1,
14009
14011
  });
14010
14012
  ```
14011
14013
 
@@ -14172,7 +14174,7 @@ await client.tracking.timeseries.sessionByDevice.lastSeenPublicV1({
14172
14174
  </dl>
14173
14175
  </details>
14174
14176
 
14175
- <details><summary><code>client.tracking.timeseries.sessionByDevice.<a href="/src/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.ts">dataPointsPublicV1</a>({ ...params }) -> Chrt.SessionByDeviceDataPoint1[]</code></summary>
14177
+ <details><summary><code>client.tracking.timeseries.sessionByDevice.<a href="/src/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.ts">dataPointsPublicV1</a>({ ...params }) -> Chrt.SessionByDeviceHistoryRes1</code></summary>
14176
14178
  <dl>
14177
14179
  <dd>
14178
14180
 
@@ -14184,7 +14186,7 @@ await client.tracking.timeseries.sessionByDevice.lastSeenPublicV1({
14184
14186
  <dl>
14185
14187
  <dd>
14186
14188
 
14187
- Returns up to the specified number of data points for a public session, intelligently sampled across the time range. Excludes outliers. No authentication required if session has public visibility enabled. | () -> (list[SessionByDeviceDataPoint1])
14189
+ Returns time-bucketed data points and stationary clusters for a public session within the given time range. start_timestamp and end_timestamp are required. No authentication required if session has public visibility enabled. | () -> SessionByDeviceHistoryRes1
14188
14190
 
14189
14191
  </dd>
14190
14192
  </dl>
@@ -14202,7 +14204,9 @@ Returns up to the specified number of data points for a public session, intellig
14202
14204
  ```typescript
14203
14205
  await client.tracking.timeseries.sessionByDevice.dataPointsPublicV1({
14204
14206
  session_id: "session_id",
14205
- limit: 1,
14207
+ start_timestamp: "2024-01-15T09:30:00Z",
14208
+ end_timestamp: "2024-01-15T09:30:00Z",
14209
+ bucket_seconds: 1,
14206
14210
  });
14207
14211
  ```
14208
14212
 
@@ -15193,6 +15197,137 @@ await client.utils.dev.postAgentV1();
15193
15197
  </dl>
15194
15198
  </details>
15195
15199
 
15200
+ <details><summary><code>client.utils.dev.<a href="/src/api/resources/utils/resources/dev/client/Client.ts">postAgentOrderV1</a>({ ...params }) -> Chrt.ReadOrderAgentRes</code></summary>
15201
+ <dl>
15202
+ <dd>
15203
+
15204
+ #### 📝 Description
15205
+
15206
+ <dl>
15207
+ <dd>
15208
+
15209
+ <dl>
15210
+ <dd>
15211
+
15212
+ Fetches expanded order data and returns an AI-generated natural-language summary. | (ReadOrderAgentReq) -> (ReadOrderAgentRes)
15213
+
15214
+ </dd>
15215
+ </dl>
15216
+ </dd>
15217
+ </dl>
15218
+
15219
+ #### 🔌 Usage
15220
+
15221
+ <dl>
15222
+ <dd>
15223
+
15224
+ <dl>
15225
+ <dd>
15226
+
15227
+ ```typescript
15228
+ await client.utils.dev.postAgentOrderV1({
15229
+ order_id: "order_id",
15230
+ });
15231
+ ```
15232
+
15233
+ </dd>
15234
+ </dl>
15235
+ </dd>
15236
+ </dl>
15237
+
15238
+ #### ⚙️ Parameters
15239
+
15240
+ <dl>
15241
+ <dd>
15242
+
15243
+ <dl>
15244
+ <dd>
15245
+
15246
+ **request:** `Chrt.utils.ReadOrderAgentReq`
15247
+
15248
+ </dd>
15249
+ </dl>
15250
+
15251
+ <dl>
15252
+ <dd>
15253
+
15254
+ **requestOptions:** `Dev.RequestOptions`
15255
+
15256
+ </dd>
15257
+ </dl>
15258
+ </dd>
15259
+ </dl>
15260
+
15261
+ </dd>
15262
+ </dl>
15263
+ </details>
15264
+
15265
+ <details><summary><code>client.utils.dev.<a href="/src/api/resources/utils/resources/dev/client/Client.ts">postAgentOrderBuilderV1</a>({ ...params }) -> Chrt.OrderBuilderRes</code></summary>
15266
+ <dl>
15267
+ <dd>
15268
+
15269
+ #### 📝 Description
15270
+
15271
+ <dl>
15272
+ <dd>
15273
+
15274
+ <dl>
15275
+ <dd>
15276
+
15277
+ Populates an existing order draft with cargo, task groups, and tasks parsed from natural language. The frontend must create the draft first via /shipping/order_drafts/new/v1. | (OrderBuilderReq) -> (OrderBuilderRes)
15278
+
15279
+ </dd>
15280
+ </dl>
15281
+ </dd>
15282
+ </dl>
15283
+
15284
+ #### 🔌 Usage
15285
+
15286
+ <dl>
15287
+ <dd>
15288
+
15289
+ <dl>
15290
+ <dd>
15291
+
15292
+ ```typescript
15293
+ await client.utils.dev.postAgentOrderBuilderV1({
15294
+ order_short_id: "order_short_id",
15295
+ text: "text",
15296
+ });
15297
+ ```
15298
+
15299
+ </dd>
15300
+ </dl>
15301
+ </dd>
15302
+ </dl>
15303
+
15304
+ #### ⚙️ Parameters
15305
+
15306
+ <dl>
15307
+ <dd>
15308
+
15309
+ <dl>
15310
+ <dd>
15311
+
15312
+ **request:** `Chrt.utils.OrderBuilderReq`
15313
+
15314
+ </dd>
15315
+ </dl>
15316
+
15317
+ <dl>
15318
+ <dd>
15319
+
15320
+ **requestOptions:** `Dev.RequestOptions`
15321
+
15322
+ </dd>
15323
+ </dl>
15324
+ </dd>
15325
+ </dl>
15326
+
15327
+ </dd>
15328
+ </dl>
15329
+ </details>
15330
+
15196
15331
  <details><summary><code>client.utils.dev.<a href="/src/api/resources/utils/resources/dev/client/Client.ts">getUserIdV1</a>() -> string</code></summary>
15197
15332
  <dl>
15198
15333
  <dd>
@@ -15535,7 +15670,7 @@ await client.utils.dev.createTemplateV1({
15535
15670
  </dl>
15536
15671
  </details>
15537
15672
 
15538
- <details><summary><code>client.utils.dev.<a href="/src/api/resources/utils/resources/dev/client/Client.ts">getGitInfoV1</a>() -> Record&lt;string, string&gt;</code></summary>
15673
+ <details><summary><code>client.utils.dev.<a href="/src/api/resources/utils/resources/dev/client/Client.ts">getGitInfoV1</a>() -> Record&lt;string, (string | null) | undefined&gt;</code></summary>
15539
15674
  <dl>
15540
15675
  <dd>
15541
15676