@chrt-inc/typescript-sdk 1.432.0 → 1.435.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.
@@ -67,8 +67,8 @@ class ChrtClient {
67
67
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
68
68
  "X-Fern-Language": "JavaScript",
69
69
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
70
- "X-Fern-SDK-Version": "1.432.0",
71
- "User-Agent": "@chrt-inc/typescript-sdk/1.432.0",
70
+ "X-Fern-SDK-Version": "1.435.0",
71
+ "User-Agent": "@chrt-inc/typescript-sdk/1.435.0",
72
72
  "X-Fern-Runtime": core.RUNTIME.type,
73
73
  "X-Fern-Runtime-Version": core.RUNTIME.version,
74
74
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -113,7 +113,7 @@ export declare class Sessions {
113
113
  searchV1(request: Chrt.tracking.SessionsSearchV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.SessionSearchRes>;
114
114
  private __searchV1;
115
115
  /**
116
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner always remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. | (SessionClientCreate1) -> (PydanticObjectId)
116
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
117
117
  *
118
118
  * @param {Chrt.tracking.SessionClientCreate1} request
119
119
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -123,14 +123,14 @@ export declare class Sessions {
123
123
  * @example
124
124
  * await client.tracking.sessions.createSessionV1({
125
125
  * device_id: "device_id",
126
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
126
+ * no_auto_termination: true,
127
127
  * schema_version: 1
128
128
  * })
129
129
  */
130
130
  createSessionV1(request: Chrt.tracking.SessionClientCreate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<string>;
131
131
  private __createSessionV1;
132
132
  /**
133
- * Updates a session's metadata and/or termination_scheduled_for_timestamp. | (SessionClientUpdate1) -> (bool)
133
+ * Updates a session's metadata. | (SessionClientUpdate1) -> (bool)
134
134
  *
135
135
  * @param {Chrt.tracking.SessionClientUpdate1} request
136
136
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -139,8 +139,7 @@ export declare class Sessions {
139
139
  *
140
140
  * @example
141
141
  * await client.tracking.sessions.updateV1({
142
- * session_id: "session_id",
143
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z"
142
+ * session_id: "session_id"
144
143
  * })
145
144
  */
146
145
  updateV1(request: Chrt.tracking.SessionClientUpdate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<boolean>;
@@ -413,7 +413,7 @@ class Sessions {
413
413
  });
414
414
  }
415
415
  /**
416
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner always remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. | (SessionClientCreate1) -> (PydanticObjectId)
416
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
417
417
  *
418
418
  * @param {Chrt.tracking.SessionClientCreate1} request
419
419
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -423,7 +423,7 @@ class Sessions {
423
423
  * @example
424
424
  * await client.tracking.sessions.createSessionV1({
425
425
  * device_id: "device_id",
426
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
426
+ * no_auto_termination: true,
427
427
  * schema_version: 1
428
428
  * })
429
429
  */
@@ -432,16 +432,16 @@ class Sessions {
432
432
  }
433
433
  __createSessionV1(request, requestOptions) {
434
434
  return __awaiter(this, void 0, void 0, function* () {
435
- var _a, _b, _c, _d;
436
- const { device_id: deviceId, termination_scheduled_for_timestamp: terminationScheduledForTimestamp } = request, _body = __rest(request, ["device_id", "termination_scheduled_for_timestamp"]);
435
+ var _a, _b, _c, _d, _e;
436
+ const { device_id: deviceId, no_auto_termination: noAutoTermination } = request, _body = __rest(request, ["device_id", "no_auto_termination"]);
437
437
  const _queryParams = {};
438
438
  _queryParams["device_id"] = deviceId;
439
- if (terminationScheduledForTimestamp !== undefined) {
440
- _queryParams["termination_scheduled_for_timestamp"] = terminationScheduledForTimestamp;
439
+ if (noAutoTermination !== undefined) {
440
+ _queryParams["no_auto_termination"] = (_a = noAutoTermination === null || noAutoTermination === void 0 ? void 0 : noAutoTermination.toString()) !== null && _a !== void 0 ? _a : null;
441
441
  }
442
- let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
443
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
444
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/sessions/create_session/v1"),
442
+ 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);
443
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
444
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/sessions/create_session/v1"),
445
445
  method: "POST",
446
446
  headers: _headers,
447
447
  contentType: "application/json",
@@ -485,7 +485,7 @@ class Sessions {
485
485
  });
486
486
  }
487
487
  /**
488
- * Updates a session's metadata and/or termination_scheduled_for_timestamp. | (SessionClientUpdate1) -> (bool)
488
+ * Updates a session's metadata. | (SessionClientUpdate1) -> (bool)
489
489
  *
490
490
  * @param {Chrt.tracking.SessionClientUpdate1} request
491
491
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -494,8 +494,7 @@ class Sessions {
494
494
  *
495
495
  * @example
496
496
  * await client.tracking.sessions.updateV1({
497
- * session_id: "session_id",
498
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z"
497
+ * session_id: "session_id"
499
498
  * })
500
499
  */
501
500
  updateV1(request, requestOptions) {
@@ -504,12 +503,9 @@ class Sessions {
504
503
  __updateV1(request, requestOptions) {
505
504
  return __awaiter(this, void 0, void 0, function* () {
506
505
  var _a, _b, _c, _d;
507
- const { session_id: sessionId, termination_scheduled_for_timestamp: terminationScheduledForTimestamp } = request, _body = __rest(request, ["session_id", "termination_scheduled_for_timestamp"]);
506
+ const { session_id: sessionId } = request, _body = __rest(request, ["session_id"]);
508
507
  const _queryParams = {};
509
508
  _queryParams["session_id"] = sessionId;
510
- if (terminationScheduledForTimestamp !== undefined) {
511
- _queryParams["termination_scheduled_for_timestamp"] = terminationScheduledForTimestamp;
512
- }
513
509
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
514
510
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
515
511
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/sessions/update/v1"),
@@ -5,18 +5,19 @@
5
5
  * @example
6
6
  * {
7
7
  * device_id: "device_id",
8
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
8
+ * no_auto_termination: true,
9
9
  * schema_version: 1
10
10
  * }
11
11
  */
12
12
  export interface SessionClientCreate1 {
13
13
  device_id: string;
14
- termination_scheduled_for_timestamp?: string | null;
14
+ no_auto_termination?: boolean | null;
15
15
  schema_version: number;
16
16
  off_chrt_reference_id?: string | null;
17
17
  comments?: string | null;
18
18
  public?: boolean;
19
19
  off_chrt_shipper_org_id?: string | null;
20
+ termination_scheduled_for_timestamp?: string | null;
20
21
  flight_numbers?: string[];
21
22
  fa_flight_ids?: string[];
22
23
  }
@@ -4,16 +4,16 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * session_id: "session_id",
8
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z"
7
+ * session_id: "session_id"
9
8
  * }
10
9
  */
11
10
  export interface SessionClientUpdate1 {
12
11
  session_id: string;
13
- termination_scheduled_for_timestamp?: string | null;
14
12
  off_chrt_reference_id?: string | null;
15
13
  comments?: string | null;
16
14
  public?: boolean | null;
15
+ termination_scheduled_for_timestamp?: string | null;
17
16
  off_chrt_reference_id__set_to_None?: boolean;
18
17
  comments__set_to_None?: boolean;
18
+ termination_scheduled_for_timestamp__set_to_None?: boolean;
19
19
  }
@@ -8,6 +8,7 @@ export interface Session1 {
8
8
  comments?: string | null;
9
9
  public?: boolean;
10
10
  off_chrt_shipper_org_id?: string | null;
11
+ termination_scheduled_for_timestamp?: string | null;
11
12
  flight_numbers?: string[];
12
13
  fa_flight_ids?: string[];
13
14
  device_id: string;
@@ -17,7 +18,6 @@ export interface Session1 {
17
18
  shared_with_org_ids?: string[];
18
19
  created_at_timestamp: string;
19
20
  terminated?: boolean;
20
- termination_scheduled_for_timestamp?: string | null;
21
21
  terminated_at_timestamp?: string | null;
22
22
  fa_alert_ids?: number[];
23
23
  flight_loaded_statuses?: string[];
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.432.0";
1
+ export declare const SDK_VERSION = "1.435.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.432.0";
4
+ exports.SDK_VERSION = "1.435.0";
@@ -31,8 +31,8 @@ export class ChrtClient {
31
31
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
32
32
  "X-Fern-Language": "JavaScript",
33
33
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
34
- "X-Fern-SDK-Version": "1.432.0",
35
- "User-Agent": "@chrt-inc/typescript-sdk/1.432.0",
34
+ "X-Fern-SDK-Version": "1.435.0",
35
+ "User-Agent": "@chrt-inc/typescript-sdk/1.435.0",
36
36
  "X-Fern-Runtime": core.RUNTIME.type,
37
37
  "X-Fern-Runtime-Version": core.RUNTIME.version,
38
38
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -113,7 +113,7 @@ export declare class Sessions {
113
113
  searchV1(request: Chrt.tracking.SessionsSearchV1Request, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<Chrt.SessionSearchRes>;
114
114
  private __searchV1;
115
115
  /**
116
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner always remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. | (SessionClientCreate1) -> (PydanticObjectId)
116
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
117
117
  *
118
118
  * @param {Chrt.tracking.SessionClientCreate1} request
119
119
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -123,14 +123,14 @@ export declare class Sessions {
123
123
  * @example
124
124
  * await client.tracking.sessions.createSessionV1({
125
125
  * device_id: "device_id",
126
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
126
+ * no_auto_termination: true,
127
127
  * schema_version: 1
128
128
  * })
129
129
  */
130
130
  createSessionV1(request: Chrt.tracking.SessionClientCreate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<string>;
131
131
  private __createSessionV1;
132
132
  /**
133
- * Updates a session's metadata and/or termination_scheduled_for_timestamp. | (SessionClientUpdate1) -> (bool)
133
+ * Updates a session's metadata. | (SessionClientUpdate1) -> (bool)
134
134
  *
135
135
  * @param {Chrt.tracking.SessionClientUpdate1} request
136
136
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -139,8 +139,7 @@ export declare class Sessions {
139
139
  *
140
140
  * @example
141
141
  * await client.tracking.sessions.updateV1({
142
- * session_id: "session_id",
143
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z"
142
+ * session_id: "session_id"
144
143
  * })
145
144
  */
146
145
  updateV1(request: Chrt.tracking.SessionClientUpdate1, requestOptions?: Sessions.RequestOptions): core.HttpResponsePromise<boolean>;
@@ -377,7 +377,7 @@ export class Sessions {
377
377
  });
378
378
  }
379
379
  /**
380
- * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner always remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. | (SessionClientCreate1) -> (PydanticObjectId)
380
+ * Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
381
381
  *
382
382
  * @param {Chrt.tracking.SessionClientCreate1} request
383
383
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -387,7 +387,7 @@ export class Sessions {
387
387
  * @example
388
388
  * await client.tracking.sessions.createSessionV1({
389
389
  * device_id: "device_id",
390
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
390
+ * no_auto_termination: true,
391
391
  * schema_version: 1
392
392
  * })
393
393
  */
@@ -396,16 +396,16 @@ export class Sessions {
396
396
  }
397
397
  __createSessionV1(request, requestOptions) {
398
398
  return __awaiter(this, void 0, void 0, function* () {
399
- var _a, _b, _c, _d;
400
- const { device_id: deviceId, termination_scheduled_for_timestamp: terminationScheduledForTimestamp } = request, _body = __rest(request, ["device_id", "termination_scheduled_for_timestamp"]);
399
+ var _a, _b, _c, _d, _e;
400
+ const { device_id: deviceId, no_auto_termination: noAutoTermination } = request, _body = __rest(request, ["device_id", "no_auto_termination"]);
401
401
  const _queryParams = {};
402
402
  _queryParams["device_id"] = deviceId;
403
- if (terminationScheduledForTimestamp !== undefined) {
404
- _queryParams["termination_scheduled_for_timestamp"] = terminationScheduledForTimestamp;
403
+ if (noAutoTermination !== undefined) {
404
+ _queryParams["no_auto_termination"] = (_a = noAutoTermination === null || noAutoTermination === void 0 ? void 0 : noAutoTermination.toString()) !== null && _a !== void 0 ? _a : null;
405
405
  }
406
- let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
407
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
408
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/sessions/create_session/v1"),
406
+ 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);
407
+ const _response = yield ((_c = this._options.fetcher) !== null && _c !== void 0 ? _c : core.fetcher)({
408
+ url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.ChrtEnvironment.Local, "tracking/sessions/create_session/v1"),
409
409
  method: "POST",
410
410
  headers: _headers,
411
411
  contentType: "application/json",
@@ -449,7 +449,7 @@ export class Sessions {
449
449
  });
450
450
  }
451
451
  /**
452
- * Updates a session's metadata and/or termination_scheduled_for_timestamp. | (SessionClientUpdate1) -> (bool)
452
+ * Updates a session's metadata. | (SessionClientUpdate1) -> (bool)
453
453
  *
454
454
  * @param {Chrt.tracking.SessionClientUpdate1} request
455
455
  * @param {Sessions.RequestOptions} requestOptions - Request-specific configuration.
@@ -458,8 +458,7 @@ export class Sessions {
458
458
  *
459
459
  * @example
460
460
  * await client.tracking.sessions.updateV1({
461
- * session_id: "session_id",
462
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z"
461
+ * session_id: "session_id"
463
462
  * })
464
463
  */
465
464
  updateV1(request, requestOptions) {
@@ -468,12 +467,9 @@ export class Sessions {
468
467
  __updateV1(request, requestOptions) {
469
468
  return __awaiter(this, void 0, void 0, function* () {
470
469
  var _a, _b, _c, _d;
471
- const { session_id: sessionId, termination_scheduled_for_timestamp: terminationScheduledForTimestamp } = request, _body = __rest(request, ["session_id", "termination_scheduled_for_timestamp"]);
470
+ const { session_id: sessionId } = request, _body = __rest(request, ["session_id"]);
472
471
  const _queryParams = {};
473
472
  _queryParams["session_id"] = sessionId;
474
- if (terminationScheduledForTimestamp !== undefined) {
475
- _queryParams["termination_scheduled_for_timestamp"] = terminationScheduledForTimestamp;
476
- }
477
473
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
478
474
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
479
475
  url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "tracking/sessions/update/v1"),
@@ -5,18 +5,19 @@
5
5
  * @example
6
6
  * {
7
7
  * device_id: "device_id",
8
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
8
+ * no_auto_termination: true,
9
9
  * schema_version: 1
10
10
  * }
11
11
  */
12
12
  export interface SessionClientCreate1 {
13
13
  device_id: string;
14
- termination_scheduled_for_timestamp?: string | null;
14
+ no_auto_termination?: boolean | null;
15
15
  schema_version: number;
16
16
  off_chrt_reference_id?: string | null;
17
17
  comments?: string | null;
18
18
  public?: boolean;
19
19
  off_chrt_shipper_org_id?: string | null;
20
+ termination_scheduled_for_timestamp?: string | null;
20
21
  flight_numbers?: string[];
21
22
  fa_flight_ids?: string[];
22
23
  }
@@ -4,16 +4,16 @@
4
4
  /**
5
5
  * @example
6
6
  * {
7
- * session_id: "session_id",
8
- * termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z"
7
+ * session_id: "session_id"
9
8
  * }
10
9
  */
11
10
  export interface SessionClientUpdate1 {
12
11
  session_id: string;
13
- termination_scheduled_for_timestamp?: string | null;
14
12
  off_chrt_reference_id?: string | null;
15
13
  comments?: string | null;
16
14
  public?: boolean | null;
15
+ termination_scheduled_for_timestamp?: string | null;
17
16
  off_chrt_reference_id__set_to_None?: boolean;
18
17
  comments__set_to_None?: boolean;
18
+ termination_scheduled_for_timestamp__set_to_None?: boolean;
19
19
  }
@@ -8,6 +8,7 @@ export interface Session1 {
8
8
  comments?: string | null;
9
9
  public?: boolean;
10
10
  off_chrt_shipper_org_id?: string | null;
11
+ termination_scheduled_for_timestamp?: string | null;
11
12
  flight_numbers?: string[];
12
13
  fa_flight_ids?: string[];
13
14
  device_id: string;
@@ -17,7 +18,6 @@ export interface Session1 {
17
18
  shared_with_org_ids?: string[];
18
19
  created_at_timestamp: string;
19
20
  terminated?: boolean;
20
- termination_scheduled_for_timestamp?: string | null;
21
21
  terminated_at_timestamp?: string | null;
22
22
  fa_alert_ids?: number[];
23
23
  flight_loaded_statuses?: string[];
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.432.0";
1
+ export declare const SDK_VERSION = "1.435.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.432.0";
1
+ export const SDK_VERSION = "1.435.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.432.0",
3
+ "version": "1.435.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -13951,7 +13951,7 @@ await client.tracking.sessions.searchV1({
13951
13951
  <dl>
13952
13952
  <dd>
13953
13953
 
13954
- Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner always remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. | (SessionClientCreate1) -> (PydanticObjectId)
13954
+ Creates a new tracking session for a device and automatically starts recording data points. The caller must be the device owner or belong to an org the device is shared with. The device owner remains the session owner (org_id). The device's shared_with_org_ids are copied to the session. The device must not have an active session. Auto-termination is scheduled for ~3 days out at 8 PM PT. Prevent auto termination with `no_auto_termination=True` | (SessionClientCreate1) -> (PydanticObjectId)
13955
13955
 
13956
13956
  </dd>
13957
13957
  </dl>
@@ -13969,7 +13969,7 @@ Creates a new tracking session for a device and automatically starts recording d
13969
13969
  ```typescript
13970
13970
  await client.tracking.sessions.createSessionV1({
13971
13971
  device_id: "device_id",
13972
- termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
13972
+ no_auto_termination: true,
13973
13973
  schema_version: 1,
13974
13974
  });
13975
13975
  ```
@@ -14018,7 +14018,7 @@ await client.tracking.sessions.createSessionV1({
14018
14018
  <dl>
14019
14019
  <dd>
14020
14020
 
14021
- Updates a session's metadata and/or termination_scheduled_for_timestamp. | (SessionClientUpdate1) -> (bool)
14021
+ Updates a session's metadata. | (SessionClientUpdate1) -> (bool)
14022
14022
 
14023
14023
  </dd>
14024
14024
  </dl>
@@ -14036,7 +14036,6 @@ Updates a session's metadata and/or termination_scheduled_for_timestamp. | (Sess
14036
14036
  ```typescript
14037
14037
  await client.tracking.sessions.updateV1({
14038
14038
  session_id: "session_id",
14039
- termination_scheduled_for_timestamp: "2024-01-15T09:30:00Z",
14040
14039
  });
14041
14040
  ```
14042
14041