@chrt-inc/typescript-sdk 1.455.1 → 1.466.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 (30) 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/types/SessionByDeviceDataPoint1.d.ts +1 -0
  7. package/dist/cjs/api/types/SessionByDeviceHistoryRes1.d.ts +8 -0
  8. package/dist/cjs/api/types/SessionByDeviceHistoryRes1.js +5 -0
  9. package/dist/cjs/api/types/StationaryCluster.d.ts +11 -0
  10. package/dist/cjs/api/types/StationaryCluster.js +5 -0
  11. package/dist/cjs/api/types/index.d.ts +2 -0
  12. package/dist/cjs/api/types/index.js +2 -0
  13. package/dist/cjs/version.d.ts +1 -1
  14. package/dist/cjs/version.js +1 -1
  15. package/dist/esm/Client.mjs +2 -2
  16. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.d.mts +10 -6
  17. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/Client.mjs +18 -10
  18. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsPublicV1Request.d.mts +6 -2
  19. package/dist/esm/api/resources/tracking/resources/timeseries/resources/sessionByDevice/client/requests/SessionByDeviceDataPointsV1Request.d.mts +6 -2
  20. package/dist/esm/api/types/SessionByDeviceDataPoint1.d.mts +1 -0
  21. package/dist/esm/api/types/SessionByDeviceHistoryRes1.d.mts +8 -0
  22. package/dist/esm/api/types/SessionByDeviceHistoryRes1.mjs +4 -0
  23. package/dist/esm/api/types/StationaryCluster.d.mts +11 -0
  24. package/dist/esm/api/types/StationaryCluster.mjs +4 -0
  25. package/dist/esm/api/types/index.d.mts +2 -0
  26. package/dist/esm/api/types/index.mjs +2 -0
  27. package/dist/esm/version.d.mts +1 -1
  28. package/dist/esm/version.mjs +1 -1
  29. package/package.json +1 -1
  30. package/reference.md +10 -6
@@ -52,8 +52,8 @@ class ChrtClient {
52
52
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
55
- "X-Fern-SDK-Version": "1.455.1",
56
- "User-Agent": "@chrt-inc/typescript-sdk/1.455.1",
55
+ "X-Fern-SDK-Version": "1.466.0",
56
+ "User-Agent": "@chrt-inc/typescript-sdk/1.466.0",
57
57
  "X-Fern-Runtime": core.RUNTIME.type,
58
58
  "X-Fern-Runtime-Version": core.RUNTIME.version,
59
59
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -46,7 +46,7 @@ export declare class SessionByDevice {
46
46
  lastSeenV1(request: Chrt.tracking.timeseries.SessionByDeviceLastSeenV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<(Chrt.SessionByDeviceDataPoint1 | null) | undefined>;
47
47
  private __lastSeenV1;
48
48
  /**
49
- * Returns up to the specified number of data points for a session, intelligently sampled across the time range. Excludes outliers. | () -> (list[SessionByDeviceDataPoint1])
49
+ * 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
50
50
  *
51
51
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
52
52
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,10 +56,12 @@ export declare class SessionByDevice {
56
56
  * @example
57
57
  * await client.tracking.timeseries.sessionByDevice.dataPointsV1({
58
58
  * session_id: "session_id",
59
- * limit: 1
59
+ * start_timestamp: "2024-01-15T09:30:00Z",
60
+ * end_timestamp: "2024-01-15T09:30:00Z",
61
+ * bucket_seconds: 1
60
62
  * })
61
63
  */
62
- dataPointsV1(request: Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceDataPoint1[]>;
64
+ dataPointsV1(request: Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceHistoryRes1>;
63
65
  private __dataPointsV1;
64
66
  /**
65
67
  * Marks data points as outliers or non-outliers. Uses atomic delete and reinsert strategy for time-series collection updates. | (SessionByDeviceMarkOutliersRequest1) -> (SessionByDeviceMarkOutliersResponse1)
@@ -93,7 +95,7 @@ export declare class SessionByDevice {
93
95
  lastSeenPublicV1(request: Chrt.tracking.timeseries.SessionByDeviceLastSeenPublicV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<(Chrt.SessionByDeviceDataPoint1 | null) | undefined>;
94
96
  private __lastSeenPublicV1;
95
97
  /**
96
- * 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])
98
+ * 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
97
99
  *
98
100
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request} request
99
101
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -103,10 +105,12 @@ export declare class SessionByDevice {
103
105
  * @example
104
106
  * await client.tracking.timeseries.sessionByDevice.dataPointsPublicV1({
105
107
  * session_id: "session_id",
106
- * limit: 1
108
+ * start_timestamp: "2024-01-15T09:30:00Z",
109
+ * end_timestamp: "2024-01-15T09:30:00Z",
110
+ * bucket_seconds: 1
107
111
  * })
108
112
  */
109
- dataPointsPublicV1(request: Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceDataPoint1[]>;
113
+ dataPointsPublicV1(request: Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceHistoryRes1>;
110
114
  private __dataPointsPublicV1;
111
115
  protected _getAuthorizationHeader(): Promise<string | undefined>;
112
116
  }
@@ -123,7 +123,7 @@ class SessionByDevice {
123
123
  });
124
124
  }
125
125
  /**
126
- * Returns up to the specified number of data points for a session, intelligently sampled across the time range. Excludes outliers. | () -> (list[SessionByDeviceDataPoint1])
126
+ * 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
127
127
  *
128
128
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
129
129
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -133,7 +133,9 @@ class SessionByDevice {
133
133
  * @example
134
134
  * await client.tracking.timeseries.sessionByDevice.dataPointsV1({
135
135
  * session_id: "session_id",
136
- * limit: 1
136
+ * start_timestamp: "2024-01-15T09:30:00Z",
137
+ * end_timestamp: "2024-01-15T09:30:00Z",
138
+ * bucket_seconds: 1
137
139
  * })
138
140
  */
139
141
  dataPointsV1(request, requestOptions) {
@@ -142,11 +144,13 @@ class SessionByDevice {
142
144
  __dataPointsV1(request, requestOptions) {
143
145
  return __awaiter(this, void 0, void 0, function* () {
144
146
  var _a, _b, _c, _d, _e;
145
- const { session_id: sessionId, limit } = request;
147
+ const { session_id: sessionId, start_timestamp: startTimestamp, end_timestamp: endTimestamp, bucket_seconds: bucketSeconds, } = request;
146
148
  const _queryParams = {};
147
149
  _queryParams["session_id"] = sessionId;
148
- if (limit !== undefined) {
149
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
150
+ _queryParams["start_timestamp"] = startTimestamp;
151
+ _queryParams["end_timestamp"] = endTimestamp;
152
+ if (bucketSeconds !== undefined) {
153
+ _queryParams["bucket_seconds"] = (_a = bucketSeconds === null || bucketSeconds === void 0 ? void 0 : bucketSeconds.toString()) !== null && _a !== void 0 ? _a : null;
150
154
  }
151
155
  let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
152
156
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
@@ -326,7 +330,7 @@ class SessionByDevice {
326
330
  });
327
331
  }
328
332
  /**
329
- * 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])
333
+ * 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
330
334
  *
331
335
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request} request
332
336
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -336,7 +340,9 @@ class SessionByDevice {
336
340
  * @example
337
341
  * await client.tracking.timeseries.sessionByDevice.dataPointsPublicV1({
338
342
  * session_id: "session_id",
339
- * limit: 1
343
+ * start_timestamp: "2024-01-15T09:30:00Z",
344
+ * end_timestamp: "2024-01-15T09:30:00Z",
345
+ * bucket_seconds: 1
340
346
  * })
341
347
  */
342
348
  dataPointsPublicV1(request, requestOptions) {
@@ -345,11 +351,13 @@ class SessionByDevice {
345
351
  __dataPointsPublicV1(request, requestOptions) {
346
352
  return __awaiter(this, void 0, void 0, function* () {
347
353
  var _a, _b, _c, _d, _e;
348
- const { session_id: sessionId, limit } = request;
354
+ const { session_id: sessionId, start_timestamp: startTimestamp, end_timestamp: endTimestamp, bucket_seconds: bucketSeconds, } = request;
349
355
  const _queryParams = {};
350
356
  _queryParams["session_id"] = sessionId;
351
- if (limit !== undefined) {
352
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
357
+ _queryParams["start_timestamp"] = startTimestamp;
358
+ _queryParams["end_timestamp"] = endTimestamp;
359
+ if (bucketSeconds !== undefined) {
360
+ _queryParams["bucket_seconds"] = (_a = bucketSeconds === null || bucketSeconds === void 0 ? void 0 : bucketSeconds.toString()) !== null && _a !== void 0 ? _a : null;
353
361
  }
354
362
  let _headers = (0, headers_js_1.mergeHeaders)((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
355
363
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
@@ -5,10 +5,14 @@
5
5
  * @example
6
6
  * {
7
7
  * session_id: "session_id",
8
- * limit: 1
8
+ * start_timestamp: "2024-01-15T09:30:00Z",
9
+ * end_timestamp: "2024-01-15T09:30:00Z",
10
+ * bucket_seconds: 1
9
11
  * }
10
12
  */
11
13
  export interface SessionByDeviceDataPointsPublicV1Request {
12
14
  session_id: string;
13
- limit?: number | null;
15
+ start_timestamp: string;
16
+ end_timestamp: string;
17
+ bucket_seconds?: number | null;
14
18
  }
@@ -5,10 +5,14 @@
5
5
  * @example
6
6
  * {
7
7
  * session_id: "session_id",
8
- * limit: 1
8
+ * start_timestamp: "2024-01-15T09:30:00Z",
9
+ * end_timestamp: "2024-01-15T09:30:00Z",
10
+ * bucket_seconds: 1
9
11
  * }
10
12
  */
11
13
  export interface SessionByDeviceDataPointsV1Request {
12
14
  session_id: string;
13
- limit?: number | null;
15
+ start_timestamp: string;
16
+ end_timestamp: string;
17
+ bucket_seconds?: number | null;
14
18
  }
@@ -5,6 +5,7 @@ import * as Chrt from "../index.js";
5
5
  export interface SessionByDeviceDataPoint1 {
6
6
  schema_version: number;
7
7
  timestamp: string;
8
+ received_at_timestamp?: string | null;
8
9
  metadata: Chrt.SessionByDeviceDataPointMetadata1;
9
10
  location: Chrt.LocationFeature;
10
11
  temperature?: number | null;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface SessionByDeviceHistoryRes1 {
6
+ data_points: Chrt.SessionByDeviceDataPoint1[];
7
+ stationary_clusters: Chrt.StationaryCluster[];
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.js";
5
+ export interface StationaryCluster {
6
+ start_timestamp: string;
7
+ end_timestamp: string;
8
+ centroid_location: Chrt.LocationFeature;
9
+ radius_miles: number;
10
+ point_count: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -110,6 +110,7 @@ export * from "./ServiceTypeEnum1.js";
110
110
  export * from "./Session1.js";
111
111
  export * from "./SessionByDeviceDataPoint1.js";
112
112
  export * from "./SessionByDeviceDataPointMetadata1.js";
113
+ export * from "./SessionByDeviceHistoryRes1.js";
113
114
  export * from "./SessionByDeviceMarkOutliersResponse1.js";
114
115
  export * from "./SessionListRes.js";
115
116
  export * from "./SessionSearchRes.js";
@@ -142,6 +143,7 @@ export * from "./StatementExpandedRes.js";
142
143
  export * from "./StatementSortByEnum.js";
143
144
  export * from "./StatementStatusEnum1.js";
144
145
  export * from "./StatementsListRes.js";
146
+ export * from "./StationaryCluster.js";
145
147
  export * from "./StripeConnectAccountOnboardingLinkRes.js";
146
148
  export * from "./StripeConnectInvoiceStatusEnum.js";
147
149
  export * from "./Task1.js";
@@ -126,6 +126,7 @@ __exportStar(require("./ServiceTypeEnum1.js"), exports);
126
126
  __exportStar(require("./Session1.js"), exports);
127
127
  __exportStar(require("./SessionByDeviceDataPoint1.js"), exports);
128
128
  __exportStar(require("./SessionByDeviceDataPointMetadata1.js"), exports);
129
+ __exportStar(require("./SessionByDeviceHistoryRes1.js"), exports);
129
130
  __exportStar(require("./SessionByDeviceMarkOutliersResponse1.js"), exports);
130
131
  __exportStar(require("./SessionListRes.js"), exports);
131
132
  __exportStar(require("./SessionSearchRes.js"), exports);
@@ -158,6 +159,7 @@ __exportStar(require("./StatementExpandedRes.js"), exports);
158
159
  __exportStar(require("./StatementSortByEnum.js"), exports);
159
160
  __exportStar(require("./StatementStatusEnum1.js"), exports);
160
161
  __exportStar(require("./StatementsListRes.js"), exports);
162
+ __exportStar(require("./StationaryCluster.js"), exports);
161
163
  __exportStar(require("./StripeConnectAccountOnboardingLinkRes.js"), exports);
162
164
  __exportStar(require("./StripeConnectInvoiceStatusEnum.js"), exports);
163
165
  __exportStar(require("./Task1.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.455.1";
1
+ export declare const SDK_VERSION = "1.466.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.455.1";
4
+ exports.SDK_VERSION = "1.466.0";
@@ -16,8 +16,8 @@ export class ChrtClient {
16
16
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
17
17
  "X-Fern-Language": "JavaScript",
18
18
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
19
- "X-Fern-SDK-Version": "1.455.1",
20
- "User-Agent": "@chrt-inc/typescript-sdk/1.455.1",
19
+ "X-Fern-SDK-Version": "1.466.0",
20
+ "User-Agent": "@chrt-inc/typescript-sdk/1.466.0",
21
21
  "X-Fern-Runtime": core.RUNTIME.type,
22
22
  "X-Fern-Runtime-Version": core.RUNTIME.version,
23
23
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -46,7 +46,7 @@ export declare class SessionByDevice {
46
46
  lastSeenV1(request: Chrt.tracking.timeseries.SessionByDeviceLastSeenV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<(Chrt.SessionByDeviceDataPoint1 | null) | undefined>;
47
47
  private __lastSeenV1;
48
48
  /**
49
- * Returns up to the specified number of data points for a session, intelligently sampled across the time range. Excludes outliers. | () -> (list[SessionByDeviceDataPoint1])
49
+ * 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
50
50
  *
51
51
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
52
52
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -56,10 +56,12 @@ export declare class SessionByDevice {
56
56
  * @example
57
57
  * await client.tracking.timeseries.sessionByDevice.dataPointsV1({
58
58
  * session_id: "session_id",
59
- * limit: 1
59
+ * start_timestamp: "2024-01-15T09:30:00Z",
60
+ * end_timestamp: "2024-01-15T09:30:00Z",
61
+ * bucket_seconds: 1
60
62
  * })
61
63
  */
62
- dataPointsV1(request: Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceDataPoint1[]>;
64
+ dataPointsV1(request: Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceHistoryRes1>;
63
65
  private __dataPointsV1;
64
66
  /**
65
67
  * Marks data points as outliers or non-outliers. Uses atomic delete and reinsert strategy for time-series collection updates. | (SessionByDeviceMarkOutliersRequest1) -> (SessionByDeviceMarkOutliersResponse1)
@@ -93,7 +95,7 @@ export declare class SessionByDevice {
93
95
  lastSeenPublicV1(request: Chrt.tracking.timeseries.SessionByDeviceLastSeenPublicV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<(Chrt.SessionByDeviceDataPoint1 | null) | undefined>;
94
96
  private __lastSeenPublicV1;
95
97
  /**
96
- * 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])
98
+ * 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
97
99
  *
98
100
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request} request
99
101
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -103,10 +105,12 @@ export declare class SessionByDevice {
103
105
  * @example
104
106
  * await client.tracking.timeseries.sessionByDevice.dataPointsPublicV1({
105
107
  * session_id: "session_id",
106
- * limit: 1
108
+ * start_timestamp: "2024-01-15T09:30:00Z",
109
+ * end_timestamp: "2024-01-15T09:30:00Z",
110
+ * bucket_seconds: 1
107
111
  * })
108
112
  */
109
- dataPointsPublicV1(request: Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceDataPoint1[]>;
113
+ dataPointsPublicV1(request: Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request, requestOptions?: SessionByDevice.RequestOptions): core.HttpResponsePromise<Chrt.SessionByDeviceHistoryRes1>;
110
114
  private __dataPointsPublicV1;
111
115
  protected _getAuthorizationHeader(): Promise<string | undefined>;
112
116
  }
@@ -87,7 +87,7 @@ export class SessionByDevice {
87
87
  });
88
88
  }
89
89
  /**
90
- * Returns up to the specified number of data points for a session, intelligently sampled across the time range. Excludes outliers. | () -> (list[SessionByDeviceDataPoint1])
90
+ * 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
91
91
  *
92
92
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsV1Request} request
93
93
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -97,7 +97,9 @@ export class SessionByDevice {
97
97
  * @example
98
98
  * await client.tracking.timeseries.sessionByDevice.dataPointsV1({
99
99
  * session_id: "session_id",
100
- * limit: 1
100
+ * start_timestamp: "2024-01-15T09:30:00Z",
101
+ * end_timestamp: "2024-01-15T09:30:00Z",
102
+ * bucket_seconds: 1
101
103
  * })
102
104
  */
103
105
  dataPointsV1(request, requestOptions) {
@@ -106,11 +108,13 @@ export class SessionByDevice {
106
108
  __dataPointsV1(request, requestOptions) {
107
109
  return __awaiter(this, void 0, void 0, function* () {
108
110
  var _a, _b, _c, _d, _e;
109
- const { session_id: sessionId, limit } = request;
111
+ const { session_id: sessionId, start_timestamp: startTimestamp, end_timestamp: endTimestamp, bucket_seconds: bucketSeconds, } = request;
110
112
  const _queryParams = {};
111
113
  _queryParams["session_id"] = sessionId;
112
- if (limit !== undefined) {
113
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
114
+ _queryParams["start_timestamp"] = startTimestamp;
115
+ _queryParams["end_timestamp"] = endTimestamp;
116
+ if (bucketSeconds !== undefined) {
117
+ _queryParams["bucket_seconds"] = (_a = bucketSeconds === null || bucketSeconds === void 0 ? void 0 : bucketSeconds.toString()) !== null && _a !== void 0 ? _a : null;
114
118
  }
115
119
  let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
116
120
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
@@ -290,7 +294,7 @@ export class SessionByDevice {
290
294
  });
291
295
  }
292
296
  /**
293
- * 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])
297
+ * 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
294
298
  *
295
299
  * @param {Chrt.tracking.timeseries.SessionByDeviceDataPointsPublicV1Request} request
296
300
  * @param {SessionByDevice.RequestOptions} requestOptions - Request-specific configuration.
@@ -300,7 +304,9 @@ export class SessionByDevice {
300
304
  * @example
301
305
  * await client.tracking.timeseries.sessionByDevice.dataPointsPublicV1({
302
306
  * session_id: "session_id",
303
- * limit: 1
307
+ * start_timestamp: "2024-01-15T09:30:00Z",
308
+ * end_timestamp: "2024-01-15T09:30:00Z",
309
+ * bucket_seconds: 1
304
310
  * })
305
311
  */
306
312
  dataPointsPublicV1(request, requestOptions) {
@@ -309,11 +315,13 @@ export class SessionByDevice {
309
315
  __dataPointsPublicV1(request, requestOptions) {
310
316
  return __awaiter(this, void 0, void 0, function* () {
311
317
  var _a, _b, _c, _d, _e;
312
- const { session_id: sessionId, limit } = request;
318
+ const { session_id: sessionId, start_timestamp: startTimestamp, end_timestamp: endTimestamp, bucket_seconds: bucketSeconds, } = request;
313
319
  const _queryParams = {};
314
320
  _queryParams["session_id"] = sessionId;
315
- if (limit !== undefined) {
316
- _queryParams["limit"] = (_a = limit === null || limit === void 0 ? void 0 : limit.toString()) !== null && _a !== void 0 ? _a : null;
321
+ _queryParams["start_timestamp"] = startTimestamp;
322
+ _queryParams["end_timestamp"] = endTimestamp;
323
+ if (bucketSeconds !== undefined) {
324
+ _queryParams["bucket_seconds"] = (_a = bucketSeconds === null || bucketSeconds === void 0 ? void 0 : bucketSeconds.toString()) !== null && _a !== void 0 ? _a : null;
317
325
  }
318
326
  let _headers = mergeHeaders((_b = this._options) === null || _b === void 0 ? void 0 : _b.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
319
327
  const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
@@ -5,10 +5,14 @@
5
5
  * @example
6
6
  * {
7
7
  * session_id: "session_id",
8
- * limit: 1
8
+ * start_timestamp: "2024-01-15T09:30:00Z",
9
+ * end_timestamp: "2024-01-15T09:30:00Z",
10
+ * bucket_seconds: 1
9
11
  * }
10
12
  */
11
13
  export interface SessionByDeviceDataPointsPublicV1Request {
12
14
  session_id: string;
13
- limit?: number | null;
15
+ start_timestamp: string;
16
+ end_timestamp: string;
17
+ bucket_seconds?: number | null;
14
18
  }
@@ -5,10 +5,14 @@
5
5
  * @example
6
6
  * {
7
7
  * session_id: "session_id",
8
- * limit: 1
8
+ * start_timestamp: "2024-01-15T09:30:00Z",
9
+ * end_timestamp: "2024-01-15T09:30:00Z",
10
+ * bucket_seconds: 1
9
11
  * }
10
12
  */
11
13
  export interface SessionByDeviceDataPointsV1Request {
12
14
  session_id: string;
13
- limit?: number | null;
15
+ start_timestamp: string;
16
+ end_timestamp: string;
17
+ bucket_seconds?: number | null;
14
18
  }
@@ -5,6 +5,7 @@ import * as Chrt from "../index.mjs";
5
5
  export interface SessionByDeviceDataPoint1 {
6
6
  schema_version: number;
7
7
  timestamp: string;
8
+ received_at_timestamp?: string | null;
8
9
  metadata: Chrt.SessionByDeviceDataPointMetadata1;
9
10
  location: Chrt.LocationFeature;
10
11
  temperature?: number | null;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface SessionByDeviceHistoryRes1 {
6
+ data_points: Chrt.SessionByDeviceDataPoint1[];
7
+ stationary_clusters: Chrt.StationaryCluster[];
8
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Chrt from "../index.mjs";
5
+ export interface StationaryCluster {
6
+ start_timestamp: string;
7
+ end_timestamp: string;
8
+ centroid_location: Chrt.LocationFeature;
9
+ radius_miles: number;
10
+ point_count: number;
11
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -110,6 +110,7 @@ export * from "./ServiceTypeEnum1.mjs";
110
110
  export * from "./Session1.mjs";
111
111
  export * from "./SessionByDeviceDataPoint1.mjs";
112
112
  export * from "./SessionByDeviceDataPointMetadata1.mjs";
113
+ export * from "./SessionByDeviceHistoryRes1.mjs";
113
114
  export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
114
115
  export * from "./SessionListRes.mjs";
115
116
  export * from "./SessionSearchRes.mjs";
@@ -142,6 +143,7 @@ export * from "./StatementExpandedRes.mjs";
142
143
  export * from "./StatementSortByEnum.mjs";
143
144
  export * from "./StatementStatusEnum1.mjs";
144
145
  export * from "./StatementsListRes.mjs";
146
+ export * from "./StationaryCluster.mjs";
145
147
  export * from "./StripeConnectAccountOnboardingLinkRes.mjs";
146
148
  export * from "./StripeConnectInvoiceStatusEnum.mjs";
147
149
  export * from "./Task1.mjs";
@@ -110,6 +110,7 @@ export * from "./ServiceTypeEnum1.mjs";
110
110
  export * from "./Session1.mjs";
111
111
  export * from "./SessionByDeviceDataPoint1.mjs";
112
112
  export * from "./SessionByDeviceDataPointMetadata1.mjs";
113
+ export * from "./SessionByDeviceHistoryRes1.mjs";
113
114
  export * from "./SessionByDeviceMarkOutliersResponse1.mjs";
114
115
  export * from "./SessionListRes.mjs";
115
116
  export * from "./SessionSearchRes.mjs";
@@ -142,6 +143,7 @@ export * from "./StatementExpandedRes.mjs";
142
143
  export * from "./StatementSortByEnum.mjs";
143
144
  export * from "./StatementStatusEnum1.mjs";
144
145
  export * from "./StatementsListRes.mjs";
146
+ export * from "./StationaryCluster.mjs";
145
147
  export * from "./StripeConnectAccountOnboardingLinkRes.mjs";
146
148
  export * from "./StripeConnectInvoiceStatusEnum.mjs";
147
149
  export * from "./Task1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.455.1";
1
+ export declare const SDK_VERSION = "1.466.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.455.1";
1
+ export const SDK_VERSION = "1.466.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.455.1",
3
+ "version": "1.466.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
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