@chrt-inc/typescript-sdk 1.285.0 → 1.288.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 (42) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/milestones/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/orders/client/Client.d.ts +3 -3
  4. package/dist/cjs/api/resources/orders/client/Client.js +6 -6
  5. package/dist/cjs/api/resources/orgs/client/Client.d.ts +1 -1
  6. package/dist/cjs/api/resources/payments/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/root/client/Client.d.ts +12 -12
  8. package/dist/cjs/api/resources/root/client/Client.js +24 -24
  9. package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
  10. package/dist/cjs/api/types/CreateConnectAccountRes.js +5 -0
  11. package/dist/cjs/api/types/TrackingCargoByDeviceDataPointMetadata1.d.ts +1 -0
  12. package/dist/cjs/api/types/TrackingCargoByDriverDataPointMetadata1.d.ts +1 -0
  13. package/dist/cjs/api/types/TrackingSessionByDeviceDataPointMetadata1.d.ts +1 -0
  14. package/dist/cjs/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.ts +1 -0
  15. package/dist/cjs/api/types/TrackingWebhookResponse.d.ts +7 -0
  16. package/dist/cjs/api/types/TrackingWebhookResponse.js +5 -0
  17. package/dist/cjs/api/types/index.d.ts +2 -0
  18. package/dist/cjs/api/types/index.js +2 -0
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/Client.mjs +2 -2
  22. package/dist/esm/api/resources/milestones/client/Client.d.mts +1 -1
  23. package/dist/esm/api/resources/orders/client/Client.d.mts +3 -3
  24. package/dist/esm/api/resources/orders/client/Client.mjs +6 -6
  25. package/dist/esm/api/resources/orgs/client/Client.d.mts +1 -1
  26. package/dist/esm/api/resources/payments/client/Client.d.mts +1 -1
  27. package/dist/esm/api/resources/root/client/Client.d.mts +12 -12
  28. package/dist/esm/api/resources/root/client/Client.mjs +24 -24
  29. package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
  30. package/dist/esm/api/types/CreateConnectAccountRes.mjs +4 -0
  31. package/dist/esm/api/types/TrackingCargoByDeviceDataPointMetadata1.d.mts +1 -0
  32. package/dist/esm/api/types/TrackingCargoByDriverDataPointMetadata1.d.mts +1 -0
  33. package/dist/esm/api/types/TrackingSessionByDeviceDataPointMetadata1.d.mts +1 -0
  34. package/dist/esm/api/types/TrackingTaskGroupByDriverDataPointMetadata1.d.mts +1 -0
  35. package/dist/esm/api/types/TrackingWebhookResponse.d.mts +7 -0
  36. package/dist/esm/api/types/TrackingWebhookResponse.mjs +4 -0
  37. package/dist/esm/api/types/index.d.mts +2 -0
  38. package/dist/esm/api/types/index.mjs +2 -0
  39. package/dist/esm/version.d.mts +1 -1
  40. package/dist/esm/version.mjs +1 -1
  41. package/package.json +1 -1
  42. package/reference.md +13 -13
@@ -68,8 +68,8 @@ class ChrtClient {
68
68
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
71
- "X-Fern-SDK-Version": "1.285.0",
72
- "User-Agent": "@chrt-inc/typescript-sdk/1.285.0",
71
+ "X-Fern-SDK-Version": "1.288.0",
72
+ "User-Agent": "@chrt-inc/typescript-sdk/1.288.0",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -65,7 +65,7 @@ export declare class Milestones {
65
65
  * type: "image"
66
66
  * })
67
67
  */
68
- addToTaskV1(request: Chrt.MilestoneAddToTaskReq, requestOptions?: Milestones.RequestOptions): core.HttpResponsePromise<boolean>;
68
+ addToTaskV1(request: Chrt.MilestoneAddToTaskReq, requestOptions?: Milestones.RequestOptions): core.HttpResponsePromise<string>;
69
69
  private __addToTaskV1;
70
70
  protected _getAuthorizationHeader(): Promise<string | undefined>;
71
71
  }
@@ -68,7 +68,7 @@ export declare class Orders {
68
68
  * @throws {@link Chrt.UnprocessableEntityError}
69
69
  *
70
70
  * @example
71
- * await client.orders.create({
71
+ * await client.orders.createV1({
72
72
  * order_client_create: {
73
73
  * schema_version: 1
74
74
  * },
@@ -88,8 +88,8 @@ export declare class Orders {
88
88
  * transport_type: "ground_only"
89
89
  * })
90
90
  */
91
- create(request: Chrt.CreateOrderReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrderRes>;
92
- private __create;
91
+ createV1(request: Chrt.CreateOrderReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrderRes>;
92
+ private __createV1;
93
93
  /**
94
94
  * Lists all orders for the authenticated shipper organization.
95
95
  *
@@ -187,7 +187,7 @@ class Orders {
187
187
  * @throws {@link Chrt.UnprocessableEntityError}
188
188
  *
189
189
  * @example
190
- * await client.orders.create({
190
+ * await client.orders.createV1({
191
191
  * order_client_create: {
192
192
  * schema_version: 1
193
193
  * },
@@ -207,15 +207,15 @@ class Orders {
207
207
  * transport_type: "ground_only"
208
208
  * })
209
209
  */
210
- create(request, requestOptions) {
211
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
210
+ createV1(request, requestOptions) {
211
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
212
212
  }
213
- __create(request, requestOptions) {
213
+ __createV1(request, requestOptions) {
214
214
  return __awaiter(this, void 0, void 0, function* () {
215
215
  var _a, _b, _c, _d;
216
216
  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);
217
217
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
218
- 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, "oort/orders/create"),
218
+ 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, "oort/orders/create/v1"),
219
219
  method: "POST",
220
220
  headers: _headers,
221
221
  contentType: "application/json",
@@ -249,7 +249,7 @@ class Orders {
249
249
  rawResponse: _response.rawResponse,
250
250
  });
251
251
  case "timeout":
252
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
252
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create/v1.");
253
253
  case "unknown":
254
254
  throw new errors.ChrtError({
255
255
  message: _response.error.errorMessage,
@@ -110,7 +110,7 @@ export declare class Orgs {
110
110
  * company_name: "company_name"
111
111
  * })
112
112
  */
113
- createPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<boolean>;
113
+ createPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<string>;
114
114
  private __createPublicDataV1;
115
115
  /**
116
116
  * Updates the organization handle or company name for the authenticated organization.
@@ -63,7 +63,7 @@ export declare class Payments {
63
63
  * @example
64
64
  * await client.payments.createConnectAccountV1()
65
65
  */
66
- createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<boolean>;
66
+ createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountRes>;
67
67
  private __createConnectAccountV1;
68
68
  /**
69
69
  * Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup.
@@ -35,30 +35,30 @@ export declare class Root {
35
35
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
36
36
  *
37
37
  * @example
38
- * await client.root.pingAuthdV1()
38
+ * await client.root.pingAuthd()
39
39
  */
40
- pingAuthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
41
- private __pingAuthdV1;
40
+ pingAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
41
+ private __pingAuthd;
42
42
  /**
43
43
  * Test endpoint for optionally authenticated requests that works with or without authentication.
44
44
  *
45
45
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
46
46
  *
47
47
  * @example
48
- * await client.root.pingOptionallyAuthdV1()
48
+ * await client.root.pingOptionallyAuthd()
49
49
  */
50
- pingOptionallyAuthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
51
- private __pingOptionallyAuthdV1;
50
+ pingOptionallyAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
51
+ private __pingOptionallyAuthd;
52
52
  /**
53
53
  * Returns a greeting message to verify the API is accessible.
54
54
  *
55
55
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
56
56
  *
57
57
  * @example
58
- * await client.root.pingUnauthdV1()
58
+ * await client.root.pingUnauthd()
59
59
  */
60
- pingUnauthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
61
- private __pingUnauthdV1;
60
+ pingUnauthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
61
+ private __pingUnauthd;
62
62
  /**
63
63
  * Returns a health status message used for monitoring system availability and uptime.
64
64
  *
@@ -75,9 +75,9 @@ export declare class Root {
75
75
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
77
77
  * @example
78
- * await client.root.failureV1()
78
+ * await client.root.failure()
79
79
  */
80
- failureV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
81
- private __failureV1;
80
+ failure(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
81
+ private __failure;
82
82
  protected _getAuthorizationHeader(): Promise<string | undefined>;
83
83
  }
@@ -60,17 +60,17 @@ class Root {
60
60
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
61
61
  *
62
62
  * @example
63
- * await client.root.pingAuthdV1()
63
+ * await client.root.pingAuthd()
64
64
  */
65
- pingAuthdV1(requestOptions) {
66
- return core.HttpResponsePromise.fromPromise(this.__pingAuthdV1(requestOptions));
65
+ pingAuthd(requestOptions) {
66
+ return core.HttpResponsePromise.fromPromise(this.__pingAuthd(requestOptions));
67
67
  }
68
- __pingAuthdV1(requestOptions) {
68
+ __pingAuthd(requestOptions) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
70
  var _a, _b, _c, _d;
71
71
  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);
72
72
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
73
- 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, "authd/v1"),
73
+ 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, "authd"),
74
74
  method: "GET",
75
75
  headers: _headers,
76
76
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -96,7 +96,7 @@ class Root {
96
96
  rawResponse: _response.rawResponse,
97
97
  });
98
98
  case "timeout":
99
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd/v1.");
99
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd.");
100
100
  case "unknown":
101
101
  throw new errors.ChrtError({
102
102
  message: _response.error.errorMessage,
@@ -111,17 +111,17 @@ class Root {
111
111
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
112
112
  *
113
113
  * @example
114
- * await client.root.pingOptionallyAuthdV1()
114
+ * await client.root.pingOptionallyAuthd()
115
115
  */
116
- pingOptionallyAuthdV1(requestOptions) {
117
- return core.HttpResponsePromise.fromPromise(this.__pingOptionallyAuthdV1(requestOptions));
116
+ pingOptionallyAuthd(requestOptions) {
117
+ return core.HttpResponsePromise.fromPromise(this.__pingOptionallyAuthd(requestOptions));
118
118
  }
119
- __pingOptionallyAuthdV1(requestOptions) {
119
+ __pingOptionallyAuthd(requestOptions) {
120
120
  return __awaiter(this, void 0, void 0, function* () {
121
121
  var _a, _b, _c, _d;
122
122
  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);
123
123
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
124
- 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, "optionally_authd/v1"),
124
+ 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, "optionally_authd"),
125
125
  method: "GET",
126
126
  headers: _headers,
127
127
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -147,7 +147,7 @@ class Root {
147
147
  rawResponse: _response.rawResponse,
148
148
  });
149
149
  case "timeout":
150
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd/v1.");
150
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd.");
151
151
  case "unknown":
152
152
  throw new errors.ChrtError({
153
153
  message: _response.error.errorMessage,
@@ -162,17 +162,17 @@ class Root {
162
162
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
163
163
  *
164
164
  * @example
165
- * await client.root.pingUnauthdV1()
165
+ * await client.root.pingUnauthd()
166
166
  */
167
- pingUnauthdV1(requestOptions) {
168
- return core.HttpResponsePromise.fromPromise(this.__pingUnauthdV1(requestOptions));
167
+ pingUnauthd(requestOptions) {
168
+ return core.HttpResponsePromise.fromPromise(this.__pingUnauthd(requestOptions));
169
169
  }
170
- __pingUnauthdV1(requestOptions) {
170
+ __pingUnauthd(requestOptions) {
171
171
  return __awaiter(this, void 0, void 0, function* () {
172
172
  var _a, _b, _c, _d;
173
173
  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);
174
174
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
175
- 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, "v1"),
175
+ url: (_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,
176
176
  method: "GET",
177
177
  headers: _headers,
178
178
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -198,7 +198,7 @@ class Root {
198
198
  rawResponse: _response.rawResponse,
199
199
  });
200
200
  case "timeout":
201
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /v1.");
201
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /.");
202
202
  case "unknown":
203
203
  throw new errors.ChrtError({
204
204
  message: _response.error.errorMessage,
@@ -264,17 +264,17 @@ class Root {
264
264
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
265
265
  *
266
266
  * @example
267
- * await client.root.failureV1()
267
+ * await client.root.failure()
268
268
  */
269
- failureV1(requestOptions) {
270
- return core.HttpResponsePromise.fromPromise(this.__failureV1(requestOptions));
269
+ failure(requestOptions) {
270
+ return core.HttpResponsePromise.fromPromise(this.__failure(requestOptions));
271
271
  }
272
- __failureV1(requestOptions) {
272
+ __failure(requestOptions) {
273
273
  return __awaiter(this, void 0, void 0, function* () {
274
274
  var _a, _b, _c, _d;
275
275
  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);
276
276
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
277
- 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, "failure/v1"),
277
+ 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, "failure"),
278
278
  method: "GET",
279
279
  headers: _headers,
280
280
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -300,7 +300,7 @@ class Root {
300
300
  rawResponse: _response.rawResponse,
301
301
  });
302
302
  case "timeout":
303
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure/v1.");
303
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure.");
304
304
  case "unknown":
305
305
  throw new errors.ChrtError({
306
306
  message: _response.error.errorMessage,
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateConnectAccountRes {
5
+ stripe_connect_account_id: string;
6
+ }
@@ -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 });
@@ -8,4 +8,5 @@ export interface TrackingCargoByDeviceDataPointMetadata1 {
8
8
  task_group_id: string;
9
9
  outlier?: boolean | null;
10
10
  outlier_labeller?: Chrt.OutlierLabellerEnum | null;
11
+ pytest?: boolean | null;
11
12
  }
@@ -8,4 +8,5 @@ export interface TrackingCargoByDriverDataPointMetadata1 {
8
8
  task_group_id: string;
9
9
  outlier?: boolean | null;
10
10
  outlier_labeller?: Chrt.OutlierLabellerEnum | null;
11
+ pytest?: boolean | null;
11
12
  }
@@ -6,4 +6,5 @@ export interface TrackingSessionByDeviceDataPointMetadata1 {
6
6
  session_id: string;
7
7
  outlier?: boolean | null;
8
8
  outlier_labeller?: Chrt.OutlierLabellerEnum | null;
9
+ pytest?: boolean | null;
9
10
  }
@@ -7,4 +7,5 @@ export interface TrackingTaskGroupByDriverDataPointMetadata1 {
7
7
  task_group_id: string;
8
8
  outlier?: boolean | null;
9
9
  outlier_labeller?: Chrt.OutlierLabellerEnum | null;
10
+ pytest?: boolean | null;
10
11
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TrackingWebhookResponse {
5
+ success: boolean;
6
+ message: string;
7
+ }
@@ -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 });
@@ -14,6 +14,7 @@ export * from "./CourierPayDriverPayout1.js";
14
14
  export * from "./CourierPayDriverRateSheet1.js";
15
15
  export * from "./CreateCheckoutSessionRes.js";
16
16
  export * from "./CreateConnectAccountLinkRes.js";
17
+ export * from "./CreateConnectAccountRes.js";
17
18
  export * from "./CreateOrderRes.js";
18
19
  export * from "./CreateShipperPayCourierPaymentReq.js";
19
20
  export * from "./DecodedJwtWithOrgAndUserId.js";
@@ -106,6 +107,7 @@ export * from "./TrackingSessionByDeviceDataPoint1.js";
106
107
  export * from "./TrackingSessionByDeviceDataPointMetadata1.js";
107
108
  export * from "./TrackingTaskGroupByDriverDataPoint1.js";
108
109
  export * from "./TrackingTaskGroupByDriverDataPointMetadata1.js";
110
+ export * from "./TrackingWebhookResponse.js";
109
111
  export * from "./TransportTypeEnum.js";
110
112
  export * from "./UpdateTaskGroupRes.js";
111
113
  export * from "./UserPublicData1.js";
@@ -30,6 +30,7 @@ __exportStar(require("./CourierPayDriverPayout1.js"), exports);
30
30
  __exportStar(require("./CourierPayDriverRateSheet1.js"), exports);
31
31
  __exportStar(require("./CreateCheckoutSessionRes.js"), exports);
32
32
  __exportStar(require("./CreateConnectAccountLinkRes.js"), exports);
33
+ __exportStar(require("./CreateConnectAccountRes.js"), exports);
33
34
  __exportStar(require("./CreateOrderRes.js"), exports);
34
35
  __exportStar(require("./CreateShipperPayCourierPaymentReq.js"), exports);
35
36
  __exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
@@ -122,6 +123,7 @@ __exportStar(require("./TrackingSessionByDeviceDataPoint1.js"), exports);
122
123
  __exportStar(require("./TrackingSessionByDeviceDataPointMetadata1.js"), exports);
123
124
  __exportStar(require("./TrackingTaskGroupByDriverDataPoint1.js"), exports);
124
125
  __exportStar(require("./TrackingTaskGroupByDriverDataPointMetadata1.js"), exports);
126
+ __exportStar(require("./TrackingWebhookResponse.js"), exports);
125
127
  __exportStar(require("./TransportTypeEnum.js"), exports);
126
128
  __exportStar(require("./UpdateTaskGroupRes.js"), exports);
127
129
  __exportStar(require("./UserPublicData1.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.285.0";
1
+ export declare const SDK_VERSION = "1.288.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.285.0";
4
+ exports.SDK_VERSION = "1.288.0";
@@ -32,8 +32,8 @@ export class ChrtClient {
32
32
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
33
33
  "X-Fern-Language": "JavaScript",
34
34
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
35
- "X-Fern-SDK-Version": "1.285.0",
36
- "User-Agent": "@chrt-inc/typescript-sdk/1.285.0",
35
+ "X-Fern-SDK-Version": "1.288.0",
36
+ "User-Agent": "@chrt-inc/typescript-sdk/1.288.0",
37
37
  "X-Fern-Runtime": core.RUNTIME.type,
38
38
  "X-Fern-Runtime-Version": core.RUNTIME.version,
39
39
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -65,7 +65,7 @@ export declare class Milestones {
65
65
  * type: "image"
66
66
  * })
67
67
  */
68
- addToTaskV1(request: Chrt.MilestoneAddToTaskReq, requestOptions?: Milestones.RequestOptions): core.HttpResponsePromise<boolean>;
68
+ addToTaskV1(request: Chrt.MilestoneAddToTaskReq, requestOptions?: Milestones.RequestOptions): core.HttpResponsePromise<string>;
69
69
  private __addToTaskV1;
70
70
  protected _getAuthorizationHeader(): Promise<string | undefined>;
71
71
  }
@@ -68,7 +68,7 @@ export declare class Orders {
68
68
  * @throws {@link Chrt.UnprocessableEntityError}
69
69
  *
70
70
  * @example
71
- * await client.orders.create({
71
+ * await client.orders.createV1({
72
72
  * order_client_create: {
73
73
  * schema_version: 1
74
74
  * },
@@ -88,8 +88,8 @@ export declare class Orders {
88
88
  * transport_type: "ground_only"
89
89
  * })
90
90
  */
91
- create(request: Chrt.CreateOrderReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrderRes>;
92
- private __create;
91
+ createV1(request: Chrt.CreateOrderReq, requestOptions?: Orders.RequestOptions): core.HttpResponsePromise<Chrt.CreateOrderRes>;
92
+ private __createV1;
93
93
  /**
94
94
  * Lists all orders for the authenticated shipper organization.
95
95
  *
@@ -151,7 +151,7 @@ export class Orders {
151
151
  * @throws {@link Chrt.UnprocessableEntityError}
152
152
  *
153
153
  * @example
154
- * await client.orders.create({
154
+ * await client.orders.createV1({
155
155
  * order_client_create: {
156
156
  * schema_version: 1
157
157
  * },
@@ -171,15 +171,15 @@ export class Orders {
171
171
  * transport_type: "ground_only"
172
172
  * })
173
173
  */
174
- create(request, requestOptions) {
175
- return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
174
+ createV1(request, requestOptions) {
175
+ return core.HttpResponsePromise.fromPromise(this.__createV1(request, requestOptions));
176
176
  }
177
- __create(request, requestOptions) {
177
+ __createV1(request, requestOptions) {
178
178
  return __awaiter(this, void 0, void 0, function* () {
179
179
  var _a, _b, _c, _d;
180
180
  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);
181
181
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
182
- 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, "oort/orders/create"),
182
+ 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, "oort/orders/create/v1"),
183
183
  method: "POST",
184
184
  headers: _headers,
185
185
  contentType: "application/json",
@@ -213,7 +213,7 @@ export class Orders {
213
213
  rawResponse: _response.rawResponse,
214
214
  });
215
215
  case "timeout":
216
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create.");
216
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /oort/orders/create/v1.");
217
217
  case "unknown":
218
218
  throw new errors.ChrtError({
219
219
  message: _response.error.errorMessage,
@@ -110,7 +110,7 @@ export declare class Orgs {
110
110
  * company_name: "company_name"
111
111
  * })
112
112
  */
113
- createPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<boolean>;
113
+ createPublicDataV1(request: Chrt.CreateOrgPublicDataReq, requestOptions?: Orgs.RequestOptions): core.HttpResponsePromise<string>;
114
114
  private __createPublicDataV1;
115
115
  /**
116
116
  * Updates the organization handle or company name for the authenticated organization.
@@ -63,7 +63,7 @@ export declare class Payments {
63
63
  * @example
64
64
  * await client.payments.createConnectAccountV1()
65
65
  */
66
- createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<boolean>;
66
+ createConnectAccountV1(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountRes>;
67
67
  private __createConnectAccountV1;
68
68
  /**
69
69
  * Creates an onboarding link for a Stripe Connect account. Used to complete or update account setup.
@@ -35,30 +35,30 @@ export declare class Root {
35
35
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
36
36
  *
37
37
  * @example
38
- * await client.root.pingAuthdV1()
38
+ * await client.root.pingAuthd()
39
39
  */
40
- pingAuthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
41
- private __pingAuthdV1;
40
+ pingAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
41
+ private __pingAuthd;
42
42
  /**
43
43
  * Test endpoint for optionally authenticated requests that works with or without authentication.
44
44
  *
45
45
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
46
46
  *
47
47
  * @example
48
- * await client.root.pingOptionallyAuthdV1()
48
+ * await client.root.pingOptionallyAuthd()
49
49
  */
50
- pingOptionallyAuthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
51
- private __pingOptionallyAuthdV1;
50
+ pingOptionallyAuthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
51
+ private __pingOptionallyAuthd;
52
52
  /**
53
53
  * Returns a greeting message to verify the API is accessible.
54
54
  *
55
55
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
56
56
  *
57
57
  * @example
58
- * await client.root.pingUnauthdV1()
58
+ * await client.root.pingUnauthd()
59
59
  */
60
- pingUnauthdV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
61
- private __pingUnauthdV1;
60
+ pingUnauthd(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
61
+ private __pingUnauthd;
62
62
  /**
63
63
  * Returns a health status message used for monitoring system availability and uptime.
64
64
  *
@@ -75,9 +75,9 @@ export declare class Root {
75
75
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
77
77
  * @example
78
- * await client.root.failureV1()
78
+ * await client.root.failure()
79
79
  */
80
- failureV1(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
81
- private __failureV1;
80
+ failure(requestOptions?: Root.RequestOptions): core.HttpResponsePromise<unknown>;
81
+ private __failure;
82
82
  protected _getAuthorizationHeader(): Promise<string | undefined>;
83
83
  }
@@ -24,17 +24,17 @@ export class Root {
24
24
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
25
25
  *
26
26
  * @example
27
- * await client.root.pingAuthdV1()
27
+ * await client.root.pingAuthd()
28
28
  */
29
- pingAuthdV1(requestOptions) {
30
- return core.HttpResponsePromise.fromPromise(this.__pingAuthdV1(requestOptions));
29
+ pingAuthd(requestOptions) {
30
+ return core.HttpResponsePromise.fromPromise(this.__pingAuthd(requestOptions));
31
31
  }
32
- __pingAuthdV1(requestOptions) {
32
+ __pingAuthd(requestOptions) {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  var _a, _b, _c, _d;
35
35
  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);
36
36
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
37
- 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, "authd/v1"),
37
+ 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, "authd"),
38
38
  method: "GET",
39
39
  headers: _headers,
40
40
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -60,7 +60,7 @@ export class Root {
60
60
  rawResponse: _response.rawResponse,
61
61
  });
62
62
  case "timeout":
63
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd/v1.");
63
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /authd.");
64
64
  case "unknown":
65
65
  throw new errors.ChrtError({
66
66
  message: _response.error.errorMessage,
@@ -75,17 +75,17 @@ export class Root {
75
75
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
76
76
  *
77
77
  * @example
78
- * await client.root.pingOptionallyAuthdV1()
78
+ * await client.root.pingOptionallyAuthd()
79
79
  */
80
- pingOptionallyAuthdV1(requestOptions) {
81
- return core.HttpResponsePromise.fromPromise(this.__pingOptionallyAuthdV1(requestOptions));
80
+ pingOptionallyAuthd(requestOptions) {
81
+ return core.HttpResponsePromise.fromPromise(this.__pingOptionallyAuthd(requestOptions));
82
82
  }
83
- __pingOptionallyAuthdV1(requestOptions) {
83
+ __pingOptionallyAuthd(requestOptions) {
84
84
  return __awaiter(this, void 0, void 0, function* () {
85
85
  var _a, _b, _c, _d;
86
86
  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);
87
87
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
88
- 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, "optionally_authd/v1"),
88
+ 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, "optionally_authd"),
89
89
  method: "GET",
90
90
  headers: _headers,
91
91
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -111,7 +111,7 @@ export class Root {
111
111
  rawResponse: _response.rawResponse,
112
112
  });
113
113
  case "timeout":
114
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd/v1.");
114
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /optionally_authd.");
115
115
  case "unknown":
116
116
  throw new errors.ChrtError({
117
117
  message: _response.error.errorMessage,
@@ -126,17 +126,17 @@ export class Root {
126
126
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
127
127
  *
128
128
  * @example
129
- * await client.root.pingUnauthdV1()
129
+ * await client.root.pingUnauthd()
130
130
  */
131
- pingUnauthdV1(requestOptions) {
132
- return core.HttpResponsePromise.fromPromise(this.__pingUnauthdV1(requestOptions));
131
+ pingUnauthd(requestOptions) {
132
+ return core.HttpResponsePromise.fromPromise(this.__pingUnauthd(requestOptions));
133
133
  }
134
- __pingUnauthdV1(requestOptions) {
134
+ __pingUnauthd(requestOptions) {
135
135
  return __awaiter(this, void 0, void 0, function* () {
136
136
  var _a, _b, _c, _d;
137
137
  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);
138
138
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
139
- 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, "v1"),
139
+ url: (_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,
140
140
  method: "GET",
141
141
  headers: _headers,
142
142
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -162,7 +162,7 @@ export class Root {
162
162
  rawResponse: _response.rawResponse,
163
163
  });
164
164
  case "timeout":
165
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /v1.");
165
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /.");
166
166
  case "unknown":
167
167
  throw new errors.ChrtError({
168
168
  message: _response.error.errorMessage,
@@ -228,17 +228,17 @@ export class Root {
228
228
  * @param {Root.RequestOptions} requestOptions - Request-specific configuration.
229
229
  *
230
230
  * @example
231
- * await client.root.failureV1()
231
+ * await client.root.failure()
232
232
  */
233
- failureV1(requestOptions) {
234
- return core.HttpResponsePromise.fromPromise(this.__failureV1(requestOptions));
233
+ failure(requestOptions) {
234
+ return core.HttpResponsePromise.fromPromise(this.__failure(requestOptions));
235
235
  }
236
- __failureV1(requestOptions) {
236
+ __failure(requestOptions) {
237
237
  return __awaiter(this, void 0, void 0, function* () {
238
238
  var _a, _b, _c, _d;
239
239
  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);
240
240
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
241
- 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, "failure/v1"),
241
+ 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, "failure"),
242
242
  method: "GET",
243
243
  headers: _headers,
244
244
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
@@ -264,7 +264,7 @@ export class Root {
264
264
  rawResponse: _response.rawResponse,
265
265
  });
266
266
  case "timeout":
267
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure/v1.");
267
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /failure.");
268
268
  case "unknown":
269
269
  throw new errors.ChrtError({
270
270
  message: _response.error.errorMessage,
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface CreateConnectAccountRes {
5
+ stripe_connect_account_id: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -8,4 +8,5 @@ export interface TrackingCargoByDeviceDataPointMetadata1 {
8
8
  task_group_id: string;
9
9
  outlier?: boolean | null;
10
10
  outlier_labeller?: Chrt.OutlierLabellerEnum | null;
11
+ pytest?: boolean | null;
11
12
  }
@@ -8,4 +8,5 @@ export interface TrackingCargoByDriverDataPointMetadata1 {
8
8
  task_group_id: string;
9
9
  outlier?: boolean | null;
10
10
  outlier_labeller?: Chrt.OutlierLabellerEnum | null;
11
+ pytest?: boolean | null;
11
12
  }
@@ -6,4 +6,5 @@ export interface TrackingSessionByDeviceDataPointMetadata1 {
6
6
  session_id: string;
7
7
  outlier?: boolean | null;
8
8
  outlier_labeller?: Chrt.OutlierLabellerEnum | null;
9
+ pytest?: boolean | null;
9
10
  }
@@ -7,4 +7,5 @@ export interface TrackingTaskGroupByDriverDataPointMetadata1 {
7
7
  task_group_id: string;
8
8
  outlier?: boolean | null;
9
9
  outlier_labeller?: Chrt.OutlierLabellerEnum | null;
10
+ pytest?: boolean | null;
10
11
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TrackingWebhookResponse {
5
+ success: boolean;
6
+ message: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -14,6 +14,7 @@ export * from "./CourierPayDriverPayout1.mjs";
14
14
  export * from "./CourierPayDriverRateSheet1.mjs";
15
15
  export * from "./CreateCheckoutSessionRes.mjs";
16
16
  export * from "./CreateConnectAccountLinkRes.mjs";
17
+ export * from "./CreateConnectAccountRes.mjs";
17
18
  export * from "./CreateOrderRes.mjs";
18
19
  export * from "./CreateShipperPayCourierPaymentReq.mjs";
19
20
  export * from "./DecodedJwtWithOrgAndUserId.mjs";
@@ -106,6 +107,7 @@ export * from "./TrackingSessionByDeviceDataPoint1.mjs";
106
107
  export * from "./TrackingSessionByDeviceDataPointMetadata1.mjs";
107
108
  export * from "./TrackingTaskGroupByDriverDataPoint1.mjs";
108
109
  export * from "./TrackingTaskGroupByDriverDataPointMetadata1.mjs";
110
+ export * from "./TrackingWebhookResponse.mjs";
109
111
  export * from "./TransportTypeEnum.mjs";
110
112
  export * from "./UpdateTaskGroupRes.mjs";
111
113
  export * from "./UserPublicData1.mjs";
@@ -14,6 +14,7 @@ export * from "./CourierPayDriverPayout1.mjs";
14
14
  export * from "./CourierPayDriverRateSheet1.mjs";
15
15
  export * from "./CreateCheckoutSessionRes.mjs";
16
16
  export * from "./CreateConnectAccountLinkRes.mjs";
17
+ export * from "./CreateConnectAccountRes.mjs";
17
18
  export * from "./CreateOrderRes.mjs";
18
19
  export * from "./CreateShipperPayCourierPaymentReq.mjs";
19
20
  export * from "./DecodedJwtWithOrgAndUserId.mjs";
@@ -106,6 +107,7 @@ export * from "./TrackingSessionByDeviceDataPoint1.mjs";
106
107
  export * from "./TrackingSessionByDeviceDataPointMetadata1.mjs";
107
108
  export * from "./TrackingTaskGroupByDriverDataPoint1.mjs";
108
109
  export * from "./TrackingTaskGroupByDriverDataPointMetadata1.mjs";
110
+ export * from "./TrackingWebhookResponse.mjs";
109
111
  export * from "./TransportTypeEnum.mjs";
110
112
  export * from "./UpdateTaskGroupRes.mjs";
111
113
  export * from "./UserPublicData1.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.285.0";
1
+ export declare const SDK_VERSION = "1.288.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.285.0";
1
+ export const SDK_VERSION = "1.288.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.285.0",
3
+ "version": "1.288.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -1199,7 +1199,7 @@ await client.milestones.updateV1({
1199
1199
  </dl>
1200
1200
  </details>
1201
1201
 
1202
- <details><summary><code>client.milestones.<a href="/src/api/resources/milestones/client/Client.ts">addToTaskV1</a>({ ...params }) -> boolean</code></summary>
1202
+ <details><summary><code>client.milestones.<a href="/src/api/resources/milestones/client/Client.ts">addToTaskV1</a>({ ...params }) -> string</code></summary>
1203
1203
  <dl>
1204
1204
  <dd>
1205
1205
 
@@ -2027,7 +2027,7 @@ await client.orders.cancelByOrderIdOrShortIdV1("order_id_or_short_id");
2027
2027
  </dl>
2028
2028
  </details>
2029
2029
 
2030
- <details><summary><code>client.orders.<a href="/src/api/resources/orders/client/Client.ts">create</a>({ ...params }) -> Chrt.CreateOrderRes</code></summary>
2030
+ <details><summary><code>client.orders.<a href="/src/api/resources/orders/client/Client.ts">createV1</a>({ ...params }) -> Chrt.CreateOrderRes</code></summary>
2031
2031
  <dl>
2032
2032
  <dd>
2033
2033
 
@@ -2055,7 +2055,7 @@ Creates a comprehensive order with task groups, tasks, milestones, and cargo.
2055
2055
  <dd>
2056
2056
 
2057
2057
  ```typescript
2058
- await client.orders.create({
2058
+ await client.orders.createV1({
2059
2059
  order_client_create: {
2060
2060
  schema_version: 1,
2061
2061
  },
@@ -5780,7 +5780,7 @@ await client.orgs.getHandleAvailabilityV1("handle");
5780
5780
  </dl>
5781
5781
  </details>
5782
5782
 
5783
- <details><summary><code>client.orgs.<a href="/src/api/resources/orgs/client/Client.ts">createPublicDataV1</a>({ ...params }) -> boolean</code></summary>
5783
+ <details><summary><code>client.orgs.<a href="/src/api/resources/orgs/client/Client.ts">createPublicDataV1</a>({ ...params }) -> string</code></summary>
5784
5784
  <dl>
5785
5785
  <dd>
5786
5786
 
@@ -6031,7 +6031,7 @@ await client.payments.syncStripeToClerkV1();
6031
6031
  </dl>
6032
6032
  </details>
6033
6033
 
6034
- <details><summary><code>client.payments.<a href="/src/api/resources/payments/client/Client.ts">createConnectAccountV1</a>() -> boolean</code></summary>
6034
+ <details><summary><code>client.payments.<a href="/src/api/resources/payments/client/Client.ts">createConnectAccountV1</a>() -> Chrt.CreateConnectAccountRes</code></summary>
6035
6035
  <dl>
6036
6036
  <dd>
6037
6037
 
@@ -6208,7 +6208,7 @@ await client.payments.generateInvoiceV1({
6208
6208
 
6209
6209
  ## Root
6210
6210
 
6211
- <details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingAuthdV1</a>() -> Record<string, string></code></summary>
6211
+ <details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingAuthd</a>() -> Record<string, string></code></summary>
6212
6212
  <dl>
6213
6213
  <dd>
6214
6214
 
@@ -6236,7 +6236,7 @@ Test endpoint for authenticated requests that requires valid authentication toke
6236
6236
  <dd>
6237
6237
 
6238
6238
  ```typescript
6239
- await client.root.pingAuthdV1();
6239
+ await client.root.pingAuthd();
6240
6240
  ```
6241
6241
 
6242
6242
  </dd>
@@ -6263,7 +6263,7 @@ await client.root.pingAuthdV1();
6263
6263
  </dl>
6264
6264
  </details>
6265
6265
 
6266
- <details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingOptionallyAuthdV1</a>() -> unknown</code></summary>
6266
+ <details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingOptionallyAuthd</a>() -> unknown</code></summary>
6267
6267
  <dl>
6268
6268
  <dd>
6269
6269
 
@@ -6291,7 +6291,7 @@ Test endpoint for optionally authenticated requests that works with or without a
6291
6291
  <dd>
6292
6292
 
6293
6293
  ```typescript
6294
- await client.root.pingOptionallyAuthdV1();
6294
+ await client.root.pingOptionallyAuthd();
6295
6295
  ```
6296
6296
 
6297
6297
  </dd>
@@ -6318,7 +6318,7 @@ await client.root.pingOptionallyAuthdV1();
6318
6318
  </dl>
6319
6319
  </details>
6320
6320
 
6321
- <details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingUnauthdV1</a>() -> unknown</code></summary>
6321
+ <details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">pingUnauthd</a>() -> unknown</code></summary>
6322
6322
  <dl>
6323
6323
  <dd>
6324
6324
 
@@ -6346,7 +6346,7 @@ Returns a greeting message to verify the API is accessible.
6346
6346
  <dd>
6347
6347
 
6348
6348
  ```typescript
6349
- await client.root.pingUnauthdV1();
6349
+ await client.root.pingUnauthd();
6350
6350
  ```
6351
6351
 
6352
6352
  </dd>
@@ -6428,7 +6428,7 @@ await client.root.health();
6428
6428
  </dl>
6429
6429
  </details>
6430
6430
 
6431
- <details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">failureV1</a>() -> unknown</code></summary>
6431
+ <details><summary><code>client.root.<a href="/src/api/resources/root/client/Client.ts">failure</a>() -> unknown</code></summary>
6432
6432
  <dl>
6433
6433
  <dd>
6434
6434
 
@@ -6456,7 +6456,7 @@ Test endpoint that intentionally fails for error handling validation and monitor
6456
6456
  <dd>
6457
6457
 
6458
6458
  ```typescript
6459
- await client.root.failureV1();
6459
+ await client.root.failure();
6460
6460
  ```
6461
6461
 
6462
6462
  </dd>