@chrt-inc/typescript-sdk 0.0.183-b → 0.0.184

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 (96) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/dev/client/Client.d.ts +10 -10
  3. package/dist/cjs/api/resources/dev/client/Client.js +47 -47
  4. package/dist/cjs/api/resources/drivers/client/requests/DriverLastSeenReq.d.ts +1 -1
  5. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.ts +1 -1
  6. package/dist/cjs/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.ts +1 -1
  7. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.ts +1 -1
  8. package/dist/cjs/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.ts +1 -1
  9. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.ts +1 -1
  10. package/dist/cjs/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.ts +1 -1
  11. package/dist/cjs/api/resources/payments/client/Client.d.ts +41 -0
  12. package/dist/cjs/api/resources/payments/client/Client.js +174 -0
  13. package/dist/cjs/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.ts +12 -0
  14. package/dist/cjs/api/resources/payments/client/requests/CreateDirectChargeReq.d.ts +17 -0
  15. package/dist/cjs/api/resources/payments/client/requests/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.ts +1 -1
  17. package/dist/cjs/api/types/CourierOrgConnectionInfo1.d.ts +1 -1
  18. package/dist/cjs/api/types/{BaseModel.d.ts → CreateConnectAccountLinkRes.d.ts} +2 -1
  19. package/dist/cjs/api/types/CreateConnectAccountRes.d.ts +6 -0
  20. package/dist/cjs/api/types/CreateDirectChargeRes.d.ts +8 -0
  21. package/dist/cjs/api/types/CreateDirectChargeRes.js +5 -0
  22. package/dist/cjs/api/types/Driver1.d.ts +1 -1
  23. package/dist/cjs/api/types/LocationFeature.d.ts +17 -0
  24. package/dist/cjs/api/types/LocationFeature.js +5 -0
  25. package/dist/cjs/api/types/{FeatureInputGeometry.d.ts → LocationFeatureInputGeometry.d.ts} +2 -2
  26. package/dist/cjs/api/types/LocationFeatureInputGeometry.js +5 -0
  27. package/dist/cjs/api/types/{FeatureOutputGeometry.d.ts → LocationFeatureOutputGeometry.d.ts} +2 -2
  28. package/dist/cjs/api/types/LocationFeatureOutputGeometry.js +5 -0
  29. package/dist/cjs/api/types/LocationProperties.d.ts +11 -0
  30. package/dist/cjs/api/types/LocationProperties.js +5 -0
  31. package/dist/cjs/api/types/Milestone1.d.ts +1 -1
  32. package/dist/cjs/api/types/OffChrtShipperOrgConnectionInfo1.d.ts +1 -1
  33. package/dist/cjs/api/types/ShipperContactInfo1.d.ts +1 -1
  34. package/dist/cjs/api/types/ShipperContactInfoClientCreate1.d.ts +1 -1
  35. package/dist/cjs/api/types/ShipperOrgConnectionInfo1.d.ts +1 -1
  36. package/dist/cjs/api/types/Task1.d.ts +1 -1
  37. package/dist/cjs/api/types/TaskClientCreate1.d.ts +1 -1
  38. package/dist/cjs/api/types/UserPublicData6.d.ts +1 -0
  39. package/dist/cjs/api/types/index.d.ts +7 -4
  40. package/dist/cjs/api/types/index.js +7 -4
  41. package/dist/cjs/version.d.ts +1 -1
  42. package/dist/cjs/version.js +1 -1
  43. package/dist/esm/Client.mjs +2 -2
  44. package/dist/esm/api/resources/dev/client/Client.d.mts +10 -10
  45. package/dist/esm/api/resources/dev/client/Client.mjs +47 -47
  46. package/dist/esm/api/resources/drivers/client/requests/DriverLastSeenReq.d.mts +1 -1
  47. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientCreate1.d.mts +1 -1
  48. package/dist/esm/api/resources/offChrtShipperOrgConnectionInfo/client/requests/OffChrtShipperOrgConnectionInfoClientUpdate1.d.mts +1 -1
  49. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientCreate1.d.mts +1 -1
  50. package/dist/esm/api/resources/orgConnectionInfos/resources/courier/client/requests/CourierOrgConnectionInfoClientUpdate1.d.mts +1 -1
  51. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientCreate1.d.mts +1 -1
  52. package/dist/esm/api/resources/orgConnectionInfos/resources/shipper/client/requests/ShipperOrgConnectionInfoClientUpdate1.d.mts +1 -1
  53. package/dist/esm/api/resources/payments/client/Client.d.mts +41 -0
  54. package/dist/esm/api/resources/payments/client/Client.mjs +174 -0
  55. package/dist/esm/api/resources/payments/client/requests/CreateConnectAccountLinkReq.d.mts +12 -0
  56. package/dist/esm/api/resources/payments/client/requests/CreateDirectChargeReq.d.mts +17 -0
  57. package/dist/esm/api/resources/payments/client/requests/index.d.mts +2 -0
  58. package/dist/esm/api/resources/shipperContactInfo/client/requests/ShipperContactInfoClientUpdate1.d.mts +1 -1
  59. package/dist/esm/api/types/CourierOrgConnectionInfo1.d.mts +1 -1
  60. package/dist/esm/api/types/{BaseModel.d.mts → CreateConnectAccountLinkRes.d.mts} +2 -1
  61. package/dist/esm/api/types/CreateConnectAccountRes.d.mts +6 -0
  62. package/dist/esm/api/types/CreateDirectChargeRes.d.mts +8 -0
  63. package/dist/esm/api/types/CreateDirectChargeRes.mjs +4 -0
  64. package/dist/esm/api/types/Driver1.d.mts +1 -1
  65. package/dist/esm/api/types/LocationFeature.d.mts +17 -0
  66. package/dist/esm/api/types/LocationFeature.mjs +4 -0
  67. package/dist/esm/api/types/{FeatureInputGeometry.d.mts → LocationFeatureInputGeometry.d.mts} +2 -2
  68. package/dist/esm/api/types/LocationFeatureInputGeometry.mjs +4 -0
  69. package/dist/esm/api/types/{FeatureOutputGeometry.d.mts → LocationFeatureOutputGeometry.d.mts} +2 -2
  70. package/dist/esm/api/types/LocationFeatureOutputGeometry.mjs +4 -0
  71. package/dist/esm/api/types/LocationProperties.d.mts +11 -0
  72. package/dist/esm/api/types/LocationProperties.mjs +4 -0
  73. package/dist/esm/api/types/Milestone1.d.mts +1 -1
  74. package/dist/esm/api/types/OffChrtShipperOrgConnectionInfo1.d.mts +1 -1
  75. package/dist/esm/api/types/ShipperContactInfo1.d.mts +1 -1
  76. package/dist/esm/api/types/ShipperContactInfoClientCreate1.d.mts +1 -1
  77. package/dist/esm/api/types/ShipperOrgConnectionInfo1.d.mts +1 -1
  78. package/dist/esm/api/types/Task1.d.mts +1 -1
  79. package/dist/esm/api/types/TaskClientCreate1.d.mts +1 -1
  80. package/dist/esm/api/types/UserPublicData6.d.mts +1 -0
  81. package/dist/esm/api/types/index.d.mts +7 -4
  82. package/dist/esm/api/types/index.mjs +7 -4
  83. package/dist/esm/version.d.mts +1 -1
  84. package/dist/esm/version.mjs +1 -1
  85. package/package.json +1 -1
  86. package/reference.md +207 -21
  87. package/dist/cjs/api/types/Feature.d.ts +0 -18
  88. package/dist/esm/api/types/Feature.d.mts +0 -18
  89. /package/dist/cjs/api/{types/BaseModel.js → resources/payments/client/requests/CreateConnectAccountLinkReq.js} +0 -0
  90. /package/dist/cjs/api/{types/Feature.js → resources/payments/client/requests/CreateDirectChargeReq.js} +0 -0
  91. /package/dist/cjs/api/types/{FeatureInputGeometry.js → CreateConnectAccountLinkRes.js} +0 -0
  92. /package/dist/cjs/api/types/{FeatureOutputGeometry.js → CreateConnectAccountRes.js} +0 -0
  93. /package/dist/esm/api/{types/BaseModel.mjs → resources/payments/client/requests/CreateConnectAccountLinkReq.mjs} +0 -0
  94. /package/dist/esm/api/{types/Feature.mjs → resources/payments/client/requests/CreateDirectChargeReq.mjs} +0 -0
  95. /package/dist/esm/api/types/{FeatureInputGeometry.mjs → CreateConnectAccountLinkRes.mjs} +0 -0
  96. /package/dist/esm/api/types/{FeatureOutputGeometry.mjs → CreateConnectAccountRes.mjs} +0 -0
@@ -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 });
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export type FeatureInputGeometry = Chrt.FeatureInputGeometry.GeometryCollection | Chrt.FeatureInputGeometry.LineString | Chrt.FeatureInputGeometry.MultiLineString | Chrt.FeatureInputGeometry.MultiPoint | Chrt.FeatureInputGeometry.MultiPolygon | Chrt.FeatureInputGeometry.Point | Chrt.FeatureInputGeometry.Polygon;
6
- export declare namespace FeatureInputGeometry {
5
+ export type LocationFeatureInputGeometry = Chrt.LocationFeatureInputGeometry.GeometryCollection | Chrt.LocationFeatureInputGeometry.LineString | Chrt.LocationFeatureInputGeometry.MultiLineString | Chrt.LocationFeatureInputGeometry.MultiPoint | Chrt.LocationFeatureInputGeometry.MultiPolygon | Chrt.LocationFeatureInputGeometry.Point | Chrt.LocationFeatureInputGeometry.Polygon;
6
+ export declare namespace LocationFeatureInputGeometry {
7
7
  interface GeometryCollection extends Chrt.GeometryCollection {
8
8
  type: "GeometryCollection";
9
9
  }
@@ -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 });
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Chrt from "../index.js";
5
- export type FeatureOutputGeometry = Chrt.FeatureOutputGeometry.GeometryCollection | Chrt.FeatureOutputGeometry.LineString | Chrt.FeatureOutputGeometry.MultiLineString | Chrt.FeatureOutputGeometry.MultiPoint | Chrt.FeatureOutputGeometry.MultiPolygon | Chrt.FeatureOutputGeometry.Point | Chrt.FeatureOutputGeometry.Polygon;
6
- export declare namespace FeatureOutputGeometry {
5
+ export type LocationFeatureOutputGeometry = Chrt.LocationFeatureOutputGeometry.GeometryCollection | Chrt.LocationFeatureOutputGeometry.LineString | Chrt.LocationFeatureOutputGeometry.MultiLineString | Chrt.LocationFeatureOutputGeometry.MultiPoint | Chrt.LocationFeatureOutputGeometry.MultiPolygon | Chrt.LocationFeatureOutputGeometry.Point | Chrt.LocationFeatureOutputGeometry.Polygon;
6
+ export declare namespace LocationFeatureOutputGeometry {
7
7
  interface GeometryCollection extends Chrt.GeometryCollection {
8
8
  type: "GeometryCollection";
9
9
  }
@@ -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
+ /**
5
+ * Properties for GeoJSON Feature objects
6
+ */
7
+ export interface LocationProperties {
8
+ address?: string | null;
9
+ name?: string | null;
10
+ mapbox_id?: string | null;
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 });
@@ -11,7 +11,7 @@ export interface Milestone1 {
11
11
  order_short_id: string;
12
12
  task_id: string;
13
13
  completed_at_timestamp?: string | null;
14
- completed_at_geojson_feature?: Chrt.Feature | null;
14
+ completed_at_geojson_feature?: Chrt.LocationFeature | null;
15
15
  /** Must be a string starting with `user_` */
16
16
  completed_by_user_id?: string | null;
17
17
  completed: boolean;
@@ -5,7 +5,7 @@ import * as Chrt from "../index.js";
5
5
  export interface OffChrtShipperOrgConnectionInfo1 {
6
6
  schema_version: number;
7
7
  industry?: string | null;
8
- street_address?: Chrt.Feature | null;
8
+ street_address?: Chrt.LocationFeature | null;
9
9
  contact_first_name?: string | null;
10
10
  contact_last_name?: string | null;
11
11
  phone_number_primary?: string | null;
@@ -6,7 +6,7 @@ export interface ShipperContactInfo1 {
6
6
  schema_version: number;
7
7
  company_name?: string | null;
8
8
  industry?: string | null;
9
- street_address?: Chrt.Feature | null;
9
+ street_address?: Chrt.LocationFeature | null;
10
10
  contact_first_name?: string | null;
11
11
  contact_last_name?: string | null;
12
12
  phone_number_primary?: string | null;
@@ -6,7 +6,7 @@ export interface ShipperContactInfoClientCreate1 {
6
6
  schema_version: number;
7
7
  company_name?: string | null;
8
8
  industry?: string | null;
9
- street_address?: Chrt.Feature | null;
9
+ street_address?: Chrt.LocationFeature | null;
10
10
  contact_first_name?: string | null;
11
11
  contact_last_name?: string | null;
12
12
  phone_number_primary?: string | null;
@@ -5,7 +5,7 @@ import * as Chrt from "../index.js";
5
5
  export interface ShipperOrgConnectionInfo1 {
6
6
  schema_version: number;
7
7
  industry?: string | null;
8
- street_address?: Chrt.Feature | null;
8
+ street_address?: Chrt.LocationFeature | null;
9
9
  contact_first_name?: string | null;
10
10
  contact_last_name?: string | null;
11
11
  phone_number_primary?: string | null;
@@ -4,7 +4,7 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface Task1 {
6
6
  schema_version: number;
7
- location?: Chrt.Feature | null;
7
+ location?: Chrt.LocationFeature | null;
8
8
  action?: Task1.Action | null;
9
9
  shipper_contact_info_ids?: string[] | null;
10
10
  arrive_by?: string | null;
@@ -4,7 +4,7 @@
4
4
  import * as Chrt from "../index.js";
5
5
  export interface TaskClientCreate1 {
6
6
  schema_version: number;
7
- location?: Chrt.Feature | null;
7
+ location?: Chrt.LocationFeature | null;
8
8
  action?: TaskClientCreate1.Action | null;
9
9
  shipper_contact_info_ids?: string[] | null;
10
10
  arrive_by?: string | null;
@@ -8,6 +8,7 @@ export interface UserPublicData6 {
8
8
  courier_profile_is_public: boolean;
9
9
  user_id: string;
10
10
  customer_id?: string | null;
11
+ connect_account_id?: string | null;
11
12
  primary_email_address?: string | null;
12
13
  notes?: Record<string, unknown> | null;
13
14
  _id: string;
@@ -1,4 +1,3 @@
1
- export * from "./BaseModel.js";
2
1
  export * from "./Cargo1.js";
3
2
  export * from "./CargoClientCreate1.js";
4
3
  export * from "./CargoTypeEnum1.js";
@@ -10,14 +9,14 @@ export * from "./CourierPayDriverLineItemGroup1.js";
10
9
  export * from "./CourierPayDriverLineItemGroupClientCreate1.js";
11
10
  export * from "./CourierPayDriverRateSheet1.js";
12
11
  export * from "./CreateCheckoutSessionRes2.js";
12
+ export * from "./CreateConnectAccountLinkRes.js";
13
+ export * from "./CreateConnectAccountRes.js";
14
+ export * from "./CreateDirectChargeRes.js";
13
15
  export * from "./CreateOrderRes.js";
14
16
  export * from "./DecodedJwtWithOrgAndUserId.js";
15
17
  export * from "./Driver1.js";
16
18
  export * from "./DriverStatusEnum.js";
17
19
  export * from "./Expense1.js";
18
- export * from "./FeatureInputGeometry.js";
19
- export * from "./Feature.js";
20
- export * from "./FeatureOutputGeometry.js";
21
20
  export * from "./GeometryCollectionInputGeometriesItem.js";
22
21
  export * from "./GeometryCollection.js";
23
22
  export * from "./GeometryCollectionOutputGeometriesItem.js";
@@ -30,6 +29,10 @@ export * from "./Insurance1.js";
30
29
  export * from "./LineItem1.js";
31
30
  export * from "./LineItemEnum1.js";
32
31
  export * from "./LineString.js";
32
+ export * from "./LocationFeatureInputGeometry.js";
33
+ export * from "./LocationFeature.js";
34
+ export * from "./LocationFeatureOutputGeometry.js";
35
+ export * from "./LocationProperties.js";
33
36
  export * from "./Milestone1.js";
34
37
  export * from "./MilestoneClientCreate1.js";
35
38
  export * from "./MilestoneNotificationPreferences1.js";
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./BaseModel.js"), exports);
18
17
  __exportStar(require("./Cargo1.js"), exports);
19
18
  __exportStar(require("./CargoClientCreate1.js"), exports);
20
19
  __exportStar(require("./CargoTypeEnum1.js"), exports);
@@ -26,14 +25,14 @@ __exportStar(require("./CourierPayDriverLineItemGroup1.js"), exports);
26
25
  __exportStar(require("./CourierPayDriverLineItemGroupClientCreate1.js"), exports);
27
26
  __exportStar(require("./CourierPayDriverRateSheet1.js"), exports);
28
27
  __exportStar(require("./CreateCheckoutSessionRes2.js"), exports);
28
+ __exportStar(require("./CreateConnectAccountLinkRes.js"), exports);
29
+ __exportStar(require("./CreateConnectAccountRes.js"), exports);
30
+ __exportStar(require("./CreateDirectChargeRes.js"), exports);
29
31
  __exportStar(require("./CreateOrderRes.js"), exports);
30
32
  __exportStar(require("./DecodedJwtWithOrgAndUserId.js"), exports);
31
33
  __exportStar(require("./Driver1.js"), exports);
32
34
  __exportStar(require("./DriverStatusEnum.js"), exports);
33
35
  __exportStar(require("./Expense1.js"), exports);
34
- __exportStar(require("./FeatureInputGeometry.js"), exports);
35
- __exportStar(require("./Feature.js"), exports);
36
- __exportStar(require("./FeatureOutputGeometry.js"), exports);
37
36
  __exportStar(require("./GeometryCollectionInputGeometriesItem.js"), exports);
38
37
  __exportStar(require("./GeometryCollection.js"), exports);
39
38
  __exportStar(require("./GeometryCollectionOutputGeometriesItem.js"), exports);
@@ -46,6 +45,10 @@ __exportStar(require("./Insurance1.js"), exports);
46
45
  __exportStar(require("./LineItem1.js"), exports);
47
46
  __exportStar(require("./LineItemEnum1.js"), exports);
48
47
  __exportStar(require("./LineString.js"), exports);
48
+ __exportStar(require("./LocationFeatureInputGeometry.js"), exports);
49
+ __exportStar(require("./LocationFeature.js"), exports);
50
+ __exportStar(require("./LocationFeatureOutputGeometry.js"), exports);
51
+ __exportStar(require("./LocationProperties.js"), exports);
49
52
  __exportStar(require("./Milestone1.js"), exports);
50
53
  __exportStar(require("./MilestoneClientCreate1.js"), exports);
51
54
  __exportStar(require("./MilestoneNotificationPreferences1.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.183-b";
1
+ export declare const SDK_VERSION = "0.0.184";
@@ -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 = "0.0.183-b";
4
+ exports.SDK_VERSION = "0.0.184";
@@ -27,8 +27,8 @@ export class ChrtClient {
27
27
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
28
28
  "X-Fern-Language": "JavaScript",
29
29
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
30
- "X-Fern-SDK-Version": "0.0.183-b",
31
- "User-Agent": "@chrt-inc/typescript-sdk/0.0.183-b",
30
+ "X-Fern-SDK-Version": "0.0.184",
31
+ "User-Agent": "@chrt-inc/typescript-sdk/0.0.184",
32
32
  "X-Fern-Runtime": core.RUNTIME.type,
33
33
  "X-Fern-Runtime-Version": core.RUNTIME.version,
34
34
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -58,16 +58,6 @@ export declare class Dev {
58
58
  */
59
59
  getEmail(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<string>;
60
60
  private __getEmail;
61
- /**
62
- * Returns the current GitHub PR number and commit hash for the deployment.
63
- *
64
- * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
65
- *
66
- * @example
67
- * await client.dev.getGitInfo()
68
- */
69
- getGitInfo(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
70
- private __getGitInfo;
71
61
  /**
72
62
  * Development template endpoint that returns the authenticated user's ID for testing.
73
63
  *
@@ -95,5 +85,15 @@ export declare class Dev {
95
85
  */
96
86
  createTemplate(request: Chrt.TemplateReq, requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Chrt.TemplateRes>;
97
87
  private __createTemplate;
88
+ /**
89
+ * Returns the current GitHub PR number and commit hash for the deployment.
90
+ *
91
+ * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
92
+ *
93
+ * @example
94
+ * await client.dev.getGitInfo()
95
+ */
96
+ getGitInfo(requestOptions?: Dev.RequestOptions): core.HttpResponsePromise<Record<string, string>>;
97
+ private __getGitInfo;
98
98
  protected _getAuthorizationHeader(): Promise<string | undefined>;
99
99
  }
@@ -167,21 +167,21 @@ export class Dev {
167
167
  });
168
168
  }
169
169
  /**
170
- * Returns the current GitHub PR number and commit hash for the deployment.
170
+ * Development template endpoint that returns the authenticated user's ID for testing.
171
171
  *
172
172
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
173
173
  *
174
174
  * @example
175
- * await client.dev.getGitInfo()
175
+ * await client.dev.getTemplate()
176
176
  */
177
- getGitInfo(requestOptions) {
178
- return core.HttpResponsePromise.fromPromise(this.__getGitInfo(requestOptions));
177
+ getTemplate(requestOptions) {
178
+ return core.HttpResponsePromise.fromPromise(this.__getTemplate(requestOptions));
179
179
  }
180
- __getGitInfo(requestOptions) {
180
+ __getTemplate(requestOptions) {
181
181
  return __awaiter(this, void 0, void 0, function* () {
182
182
  var _a, _b, _c, _d;
183
183
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
184
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/git_info"),
184
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
185
185
  method: "GET",
186
186
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
187
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -206,7 +206,7 @@ export class Dev {
206
206
  rawResponse: _response.rawResponse,
207
207
  });
208
208
  case "timeout":
209
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/git_info.");
209
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/template.");
210
210
  case "unknown":
211
211
  throw new errors.ChrtError({
212
212
  message: _response.error.errorMessage,
@@ -216,23 +216,33 @@ export class Dev {
216
216
  });
217
217
  }
218
218
  /**
219
- * Development template endpoint that returns the authenticated user's ID for testing.
219
+ * Development template endpoint that demonstrates transaction handling and request mirroring.
220
220
  *
221
+ * @param {Chrt.TemplateReq} request
221
222
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
222
223
  *
224
+ * @throws {@link Chrt.UnprocessableEntityError}
225
+ *
223
226
  * @example
224
- * await client.dev.getTemplate()
227
+ * await client.dev.createTemplate({
228
+ * message: "message",
229
+ * number: 1,
230
+ * timestamp: "2024-01-15T09:30:00Z"
231
+ * })
225
232
  */
226
- getTemplate(requestOptions) {
227
- return core.HttpResponsePromise.fromPromise(this.__getTemplate(requestOptions));
233
+ createTemplate(request, requestOptions) {
234
+ return core.HttpResponsePromise.fromPromise(this.__createTemplate(request, requestOptions));
228
235
  }
229
- __getTemplate(requestOptions) {
236
+ __createTemplate(request, requestOptions) {
230
237
  return __awaiter(this, void 0, void 0, function* () {
231
238
  var _a, _b, _c, _d;
232
239
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
233
240
  url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
234
- method: "GET",
241
+ method: "POST",
235
242
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
+ contentType: "application/json",
244
+ requestType: "json",
245
+ body: request,
236
246
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
237
247
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
238
248
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -241,11 +251,16 @@ export class Dev {
241
251
  return { data: _response.body, rawResponse: _response.rawResponse };
242
252
  }
243
253
  if (_response.error.reason === "status-code") {
244
- throw new errors.ChrtError({
245
- statusCode: _response.error.statusCode,
246
- body: _response.error.body,
247
- rawResponse: _response.rawResponse,
248
- });
254
+ switch (_response.error.statusCode) {
255
+ case 422:
256
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
257
+ default:
258
+ throw new errors.ChrtError({
259
+ statusCode: _response.error.statusCode,
260
+ body: _response.error.body,
261
+ rawResponse: _response.rawResponse,
262
+ });
263
+ }
249
264
  }
250
265
  switch (_response.error.reason) {
251
266
  case "non-json":
@@ -255,7 +270,7 @@ export class Dev {
255
270
  rawResponse: _response.rawResponse,
256
271
  });
257
272
  case "timeout":
258
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/template.");
273
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/template.");
259
274
  case "unknown":
260
275
  throw new errors.ChrtError({
261
276
  message: _response.error.errorMessage,
@@ -265,33 +280,23 @@ export class Dev {
265
280
  });
266
281
  }
267
282
  /**
268
- * Development template endpoint that demonstrates transaction handling and request mirroring.
283
+ * Returns the current GitHub PR number and commit hash for the deployment.
269
284
  *
270
- * @param {Chrt.TemplateReq} request
271
285
  * @param {Dev.RequestOptions} requestOptions - Request-specific configuration.
272
286
  *
273
- * @throws {@link Chrt.UnprocessableEntityError}
274
- *
275
287
  * @example
276
- * await client.dev.createTemplate({
277
- * message: "message",
278
- * number: 1,
279
- * timestamp: "2024-01-15T09:30:00Z"
280
- * })
288
+ * await client.dev.getGitInfo()
281
289
  */
282
- createTemplate(request, requestOptions) {
283
- return core.HttpResponsePromise.fromPromise(this.__createTemplate(request, requestOptions));
290
+ getGitInfo(requestOptions) {
291
+ return core.HttpResponsePromise.fromPromise(this.__getGitInfo(requestOptions));
284
292
  }
285
- __createTemplate(request, requestOptions) {
293
+ __getGitInfo(requestOptions) {
286
294
  return __awaiter(this, void 0, void 0, function* () {
287
295
  var _a, _b, _c, _d;
288
296
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
289
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/template"),
290
- method: "POST",
297
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ChrtEnvironment.Local, "dev/git_info"),
298
+ method: "GET",
291
299
  headers: mergeHeaders((_d = this._options) === null || _d === void 0 ? void 0 : _d.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
292
- contentType: "application/json",
293
- requestType: "json",
294
- body: request,
295
300
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
296
301
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
297
302
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -300,16 +305,11 @@ export class Dev {
300
305
  return { data: _response.body, rawResponse: _response.rawResponse };
301
306
  }
302
307
  if (_response.error.reason === "status-code") {
303
- switch (_response.error.statusCode) {
304
- case 422:
305
- throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
306
- default:
307
- throw new errors.ChrtError({
308
- statusCode: _response.error.statusCode,
309
- body: _response.error.body,
310
- rawResponse: _response.rawResponse,
311
- });
312
- }
308
+ throw new errors.ChrtError({
309
+ statusCode: _response.error.statusCode,
310
+ body: _response.error.body,
311
+ rawResponse: _response.rawResponse,
312
+ });
313
313
  }
314
314
  switch (_response.error.reason) {
315
315
  case "non-json":
@@ -319,7 +319,7 @@ export class Dev {
319
319
  rawResponse: _response.rawResponse,
320
320
  });
321
321
  case "timeout":
322
- throw new errors.ChrtTimeoutError("Timeout exceeded when calling POST /dev/template.");
322
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /dev/git_info.");
323
323
  case "unknown":
324
324
  throw new errors.ChrtError({
325
325
  message: _response.error.errorMessage,
@@ -11,5 +11,5 @@ import * as Chrt from "../../../../index.mjs";
11
11
  * }
12
12
  */
13
13
  export interface DriverLastSeenReq {
14
- location: Chrt.Feature;
14
+ location: Chrt.LocationFeature;
15
15
  }
@@ -12,7 +12,7 @@ import * as Chrt from "../../../../index.mjs";
12
12
  export interface OffChrtShipperOrgConnectionInfoClientCreate1 {
13
13
  schema_version: number;
14
14
  industry?: string | null;
15
- street_address?: Chrt.Feature | null;
15
+ street_address?: Chrt.LocationFeature | null;
16
16
  contact_first_name?: string | null;
17
17
  contact_last_name?: string | null;
18
18
  phone_number_primary?: string | null;
@@ -8,7 +8,7 @@ import * as Chrt from "../../../../index.mjs";
8
8
  */
9
9
  export interface OffChrtShipperOrgConnectionInfoClientUpdate1 {
10
10
  industry?: string | null;
11
- street_address?: Chrt.Feature | null;
11
+ street_address?: Chrt.LocationFeature | null;
12
12
  contact_first_name?: string | null;
13
13
  contact_last_name?: string | null;
14
14
  phone_number_primary?: string | null;
@@ -12,7 +12,7 @@ import * as Chrt from "../../../../../../index.mjs";
12
12
  export interface CourierOrgConnectionInfoClientCreate1 {
13
13
  schema_version: number;
14
14
  industry?: string | null;
15
- street_address?: Chrt.Feature | null;
15
+ street_address?: Chrt.LocationFeature | null;
16
16
  contact_first_name?: string | null;
17
17
  contact_last_name?: string | null;
18
18
  phone_number_primary?: string | null;
@@ -8,7 +8,7 @@ import * as Chrt from "../../../../../../index.mjs";
8
8
  */
9
9
  export interface CourierOrgConnectionInfoClientUpdate1 {
10
10
  industry?: string | null;
11
- street_address?: Chrt.Feature | null;
11
+ street_address?: Chrt.LocationFeature | null;
12
12
  contact_first_name?: string | null;
13
13
  contact_last_name?: string | null;
14
14
  phone_number_primary?: string | null;
@@ -12,7 +12,7 @@ import * as Chrt from "../../../../../../index.mjs";
12
12
  export interface ShipperOrgConnectionInfoClientCreate1 {
13
13
  schema_version: number;
14
14
  industry?: string | null;
15
- street_address?: Chrt.Feature | null;
15
+ street_address?: Chrt.LocationFeature | null;
16
16
  contact_first_name?: string | null;
17
17
  contact_last_name?: string | null;
18
18
  phone_number_primary?: string | null;
@@ -8,7 +8,7 @@ import * as Chrt from "../../../../../../index.mjs";
8
8
  */
9
9
  export interface ShipperOrgConnectionInfoClientUpdate1 {
10
10
  industry?: string | null;
11
- street_address?: Chrt.Feature | null;
11
+ street_address?: Chrt.LocationFeature | null;
12
12
  contact_first_name?: string | null;
13
13
  contact_last_name?: string | null;
14
14
  phone_number_primary?: string | null;
@@ -43,6 +43,47 @@ export declare class Payments {
43
43
  */
44
44
  createCheckoutSession(request: Chrt.CreateCheckoutSessionReq2, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateCheckoutSessionRes2>;
45
45
  private __createCheckoutSession;
46
+ /**
47
+ * Create a Stripe Connect account for receiving payments
48
+ *
49
+ * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @example
52
+ * await client.payments.createConnectAccount()
53
+ */
54
+ createConnectAccount(requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountRes>;
55
+ private __createConnectAccount;
56
+ /**
57
+ * Create an onboarding link for a Stripe Connect account
58
+ *
59
+ * @param {Chrt.CreateConnectAccountLinkReq} request
60
+ * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @throws {@link Chrt.UnprocessableEntityError}
63
+ *
64
+ * @example
65
+ * await client.payments.createConnectAccountLink({
66
+ * account_id: "account_id"
67
+ * })
68
+ */
69
+ createConnectAccountLink(request: Chrt.CreateConnectAccountLinkReq, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateConnectAccountLinkRes>;
70
+ private __createConnectAccountLink;
71
+ /**
72
+ * Create a direct charge checkout session to a Connect account
73
+ *
74
+ * @param {Chrt.CreateDirectChargeReq} request
75
+ * @param {Payments.RequestOptions} requestOptions - Request-specific configuration.
76
+ *
77
+ * @throws {@link Chrt.UnprocessableEntityError}
78
+ *
79
+ * @example
80
+ * await client.payments.createDirectCharge({
81
+ * amount: 1,
82
+ * connect_account_id: "connect_account_id"
83
+ * })
84
+ */
85
+ createDirectCharge(request: Chrt.CreateDirectChargeReq, requestOptions?: Payments.RequestOptions): core.HttpResponsePromise<Chrt.CreateDirectChargeRes>;
86
+ private __createDirectCharge;
46
87
  /**
47
88
  * Synchronizes subscription data from Stripe to the authentication service for the current user.
48
89
  *