@chrt-inc/typescript-sdk 1.1023.0 → 1.1025.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 (68) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.d.ts +18 -1
  3. package/dist/cjs/api/resources/orgs/resources/connections/client/Client.js +75 -6
  4. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.ts +4 -1
  5. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorUpdateKnownShipperReq.d.ts +12 -0
  6. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorUpdateKnownShipperReq.js +5 -0
  7. package/dist/cjs/api/resources/orgs/resources/connections/client/requests/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.d.ts +3 -0
  9. package/dist/cjs/api/resources/orgs/resources/publicData/client/Client.js +5 -0
  10. package/dist/cjs/api/resources/orgs/resources/publicData/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/orgs/resources/publicData/index.js +1 -0
  12. package/dist/cjs/api/resources/orgs/resources/publicData/resources/index.d.ts +2 -0
  13. package/dist/cjs/api/resources/orgs/resources/publicData/resources/index.js +41 -0
  14. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/Client.d.ts +86 -0
  15. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/Client.js +319 -0
  16. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/index.d.ts +2 -0
  17. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/index.js +17 -0
  18. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/BodyPostOrgPublicDataS3ObjectAddV1.d.ts +13 -0
  19. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/BodyPostOrgPublicDataS3ObjectAddV1.js +5 -0
  20. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/index.js +2 -0
  22. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/index.d.ts +1 -0
  23. package/dist/cjs/api/resources/orgs/resources/publicData/resources/s3Object/index.js +17 -0
  24. package/dist/cjs/api/types/OrgPublicData1.d.ts +1 -0
  25. package/dist/cjs/api/types/OrgPublicDataS3ObjectMetadata1.d.ts +21 -0
  26. package/dist/cjs/api/types/OrgPublicDataS3ObjectMetadata1.js +5 -0
  27. package/dist/cjs/api/types/ShipperCoordinatorConnection1.d.ts +4 -0
  28. package/dist/cjs/api/types/SpecialHandlingCodeEnum1.d.ts +63 -1
  29. package/dist/cjs/api/types/SpecialHandlingCodeEnum1.js +62 -0
  30. package/dist/cjs/api/types/index.d.ts +1 -0
  31. package/dist/cjs/api/types/index.js +1 -0
  32. package/dist/cjs/version.d.ts +1 -1
  33. package/dist/cjs/version.js +1 -1
  34. package/dist/esm/Client.mjs +2 -2
  35. package/dist/esm/api/resources/orgs/resources/connections/client/Client.d.mts +18 -1
  36. package/dist/esm/api/resources/orgs/resources/connections/client/Client.mjs +75 -6
  37. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ConnectionsListShippersForCoordinatorV1Request.d.mts +4 -1
  38. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorUpdateKnownShipperReq.d.mts +12 -0
  39. package/dist/esm/api/resources/orgs/resources/connections/client/requests/ShipperCoordinatorUpdateKnownShipperReq.mjs +4 -0
  40. package/dist/esm/api/resources/orgs/resources/connections/client/requests/index.d.mts +1 -0
  41. package/dist/esm/api/resources/orgs/resources/publicData/client/Client.d.mts +3 -0
  42. package/dist/esm/api/resources/orgs/resources/publicData/client/Client.mjs +5 -0
  43. package/dist/esm/api/resources/orgs/resources/publicData/index.d.mts +1 -0
  44. package/dist/esm/api/resources/orgs/resources/publicData/index.mjs +1 -0
  45. package/dist/esm/api/resources/orgs/resources/publicData/resources/index.d.mts +2 -0
  46. package/dist/esm/api/resources/orgs/resources/publicData/resources/index.mjs +2 -0
  47. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/Client.d.mts +86 -0
  48. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/Client.mjs +282 -0
  49. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/index.d.mts +2 -0
  50. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/index.mjs +1 -0
  51. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/BodyPostOrgPublicDataS3ObjectAddV1.d.mts +13 -0
  52. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/BodyPostOrgPublicDataS3ObjectAddV1.mjs +4 -0
  53. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/index.d.mts +1 -0
  54. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/client/requests/index.mjs +1 -0
  55. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/index.d.mts +1 -0
  56. package/dist/esm/api/resources/orgs/resources/publicData/resources/s3Object/index.mjs +1 -0
  57. package/dist/esm/api/types/OrgPublicData1.d.mts +1 -0
  58. package/dist/esm/api/types/OrgPublicDataS3ObjectMetadata1.d.mts +21 -0
  59. package/dist/esm/api/types/OrgPublicDataS3ObjectMetadata1.mjs +4 -0
  60. package/dist/esm/api/types/ShipperCoordinatorConnection1.d.mts +4 -0
  61. package/dist/esm/api/types/SpecialHandlingCodeEnum1.d.mts +63 -1
  62. package/dist/esm/api/types/SpecialHandlingCodeEnum1.mjs +62 -0
  63. package/dist/esm/api/types/index.d.mts +1 -0
  64. package/dist/esm/api/types/index.mjs +1 -0
  65. package/dist/esm/version.d.mts +1 -1
  66. package/dist/esm/version.mjs +1 -1
  67. package/package.json +1 -1
  68. package/reference.md +330 -0
@@ -6,58 +6,102 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.SpecialHandlingCodeEnum1 = void 0;
7
7
  exports.SpecialHandlingCodeEnum1 = {
8
8
  Act: "ACT",
9
+ Agc: "AGC",
10
+ Alo: "ALO",
9
11
  Aog: "AOG",
10
12
  Att: "ATT",
11
13
  Avi: "AVI",
14
+ Axa: "AXA",
12
15
  Big: "BIG",
16
+ Bsa: "BSA",
13
17
  Bup: "BUP",
14
18
  Cao: "CAO",
15
19
  Cat: "CAT",
20
+ Cc: "CC",
21
+ Cof: "COF",
16
22
  Col: "COL",
17
23
  Com: "COM",
24
+ Cou: "COU",
18
25
  Crt: "CRT",
26
+ Csl: "CSL",
27
+ Cur: "CUR",
28
+ Ddx: "DDX",
29
+ Dgd: "DGD",
30
+ Dgr: "DGR",
31
+ Dic: "DIC",
19
32
  Dip: "DIP",
33
+ Dir: "DIR",
34
+ Dns: "DNS",
20
35
  Eap: "EAP",
21
36
  Eat: "EAT",
22
37
  Eaw: "EAW",
38
+ Ebi: "EBI",
39
+ Ebm: "EBM",
23
40
  Ecc: "ECC",
24
41
  Ecp: "ECP",
25
42
  Eli: "ELI",
26
43
  Elm: "ELM",
27
44
  Emd: "EMD",
28
45
  Ert: "ERT",
46
+ Exc: "EXC",
29
47
  Fil: "FIL",
48
+ Fra: "FRA",
49
+ Frc: "FRC",
30
50
  Fri: "FRI",
31
51
  Fro: "FRO",
52
+ Ftr: "FTR",
53
+ Gcr: "GCR",
54
+ Gld: "GLD",
55
+ Gob: "GOB",
32
56
  Goh: "GOH",
33
57
  Hea: "HEA",
34
58
  Heg: "HEG",
59
+ Hnt: "HNT",
60
+ Hst: "HST",
35
61
  Hum: "HUM",
62
+ Iat: "IAT",
63
+ Ibs: "IBS",
36
64
  Ice: "ICE",
65
+ Imp: "IMP",
37
66
  Lho: "LHO",
38
67
  Lic: "LIC",
39
68
  Mag: "MAG",
40
69
  Mal: "MAL",
70
+ Mdc: "MDC",
71
+ Mex: "MEX",
41
72
  Muw: "MUW",
42
73
  Nsc: "NSC",
74
+ Nst: "NST",
43
75
  Nwp: "NWP",
44
76
  Obx: "OBX",
45
77
  Ohg: "OHG",
46
78
  Pac: "PAC",
79
+ Pax: "PAX",
47
80
  Pea: "PEA",
81
+ Peb: "PEB",
82
+ Ped: "PED",
48
83
  Pef: "PEF",
84
+ Pel: "PEL",
49
85
  Pem: "PEM",
50
86
  Pep: "PEP",
51
87
  Per: "PER",
52
88
  Pes: "PES",
89
+ Phy: "PHY",
53
90
  Pil: "PIL",
54
91
  Pip: "PIP",
92
+ Ppr: "PPR",
93
+ Pri: "PRI",
94
+ Pro: "PRO",
95
+ Pxd: "PXD",
96
+ Pxs: "PXS",
55
97
  Qrt: "QRT",
98
+ Qwt: "QWT",
56
99
  Rac: "RAC",
57
100
  Rbi: "RBI",
58
101
  Rbm: "RBM",
59
102
  Rcl: "RCL",
60
103
  Rcm: "RCM",
104
+ Rcs: "RCS",
61
105
  Rcx: "RCX",
62
106
  Rds: "RDS",
63
107
  Req: "REQ",
@@ -87,14 +131,32 @@ exports.SpecialHandlingCodeEnum1 = {
87
131
  Rxe: "RXE",
88
132
  Rxg: "RXG",
89
133
  Rxs: "RXS",
134
+ Sbu: "SBU",
90
135
  Sco: "SCO",
136
+ Sec: "SEC",
137
+ Sen: "SEN",
91
138
  Shl: "SHL",
92
139
  Shr: "SHR",
140
+ Smc: "SMC",
141
+ Sml: "SML",
142
+ Smu: "SMU",
93
143
  Spf: "SPF",
94
144
  Spx: "SPX",
145
+ Sss: "SSS",
95
146
  Sur: "SUR",
147
+ Svc: "SVC",
96
148
  Swp: "SWP",
149
+ Trc: "TRC",
150
+ Tru: "TRU",
151
+ Tts: "TTS",
152
+ Ttt: "TTT",
153
+ Ucb: "UCB",
154
+ Uks: "UKS",
155
+ Uld: "ULD",
156
+ Unkn: "UNKN",
97
157
  Val: "VAL",
158
+ Veh: "VEH",
159
+ Vic: "VIC",
98
160
  Vol: "VOL",
99
161
  Vun: "VUN",
100
162
  Wet: "WET",
@@ -591,6 +591,7 @@ export * from "./OrgMembersAndDrivers.js";
591
591
  export * from "./OrgMembersAndDriversListRes.js";
592
592
  export * from "./OrgPrivateData1.js";
593
593
  export * from "./OrgPublicData1.js";
594
+ export * from "./OrgPublicDataS3ObjectMetadata1.js";
594
595
  export * from "./OrgRoleEnum.js";
595
596
  export * from "./OrgShippingIntegrationEnum1.js";
596
597
  export * from "./OrgTypeEnum.js";
@@ -607,6 +607,7 @@ __exportStar(require("./OrgMembersAndDrivers.js"), exports);
607
607
  __exportStar(require("./OrgMembersAndDriversListRes.js"), exports);
608
608
  __exportStar(require("./OrgPrivateData1.js"), exports);
609
609
  __exportStar(require("./OrgPublicData1.js"), exports);
610
+ __exportStar(require("./OrgPublicDataS3ObjectMetadata1.js"), exports);
610
611
  __exportStar(require("./OrgRoleEnum.js"), exports);
611
612
  __exportStar(require("./OrgShippingIntegrationEnum1.js"), exports);
612
613
  __exportStar(require("./OrgTypeEnum.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.1023.0";
1
+ export declare const SDK_VERSION = "1.1025.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.1023.0";
4
+ exports.SDK_VERSION = "1.1025.0";
@@ -26,8 +26,8 @@ export class ChrtClient {
26
26
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
27
27
  "X-Fern-Language": "JavaScript",
28
28
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
29
- "X-Fern-SDK-Version": "1.1023.0",
30
- "User-Agent": "@chrt-inc/typescript-sdk/1.1023.0",
29
+ "X-Fern-SDK-Version": "1.1025.0",
30
+ "User-Agent": "@chrt-inc/typescript-sdk/1.1025.0",
31
31
  "X-Fern-Runtime": core.RUNTIME.type,
32
32
  "X-Fern-Runtime-Version": core.RUNTIME.version,
33
33
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -192,6 +192,22 @@ export declare class Connections {
192
192
  */
193
193
  setShipperCoordinatorDefaultDepartmentV1(connectionId: string, request?: Chrt.orgs.ShipperCoordinatorConnectionClientUpdate1, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<boolean>;
194
194
  private __setShipperCoordinatorDefaultDepartmentV1;
195
+ /**
196
+ * Sets the coordinator's known-shipper designation for an on- or off-CHRT shipper and records who changed it and when. | authz: allowed_org_types=[provider], min_org_role=operator | (ShipperCoordinatorUpdateKnownShipperReq) -> (bool)
197
+ *
198
+ * @param {string} connectionId
199
+ * @param {Chrt.orgs.ShipperCoordinatorUpdateKnownShipperReq} request
200
+ * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
201
+ *
202
+ * @throws {@link Chrt.UnprocessableEntityError}
203
+ *
204
+ * @example
205
+ * await client.orgs.connections.setShipperCoordinatorKnownShipperV1("connection_id", {
206
+ * known_shipper: true
207
+ * })
208
+ */
209
+ setShipperCoordinatorKnownShipperV1(connectionId: string, request: Chrt.orgs.ShipperCoordinatorUpdateKnownShipperReq, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<boolean>;
210
+ private __setShipperCoordinatorKnownShipperV1;
195
211
  /**
196
212
  * Lists the caller's shipper connections with filtering, pagination, and identity search. | authz: allowed_org_types=[provider] | () -> (ShipperCoordinatorConnectionsForCoordinatorListRes)
197
213
  *
@@ -206,7 +222,8 @@ export declare class Connections {
206
222
  * page: 1,
207
223
  * page_size: 1,
208
224
  * filter_connection_ids: ["filter_connection_ids"],
209
- * filter_connected: true
225
+ * filter_connected: true,
226
+ * filter_known_shipper: true
210
227
  * })
211
228
  */
212
229
  listShippersForCoordinatorV1(request?: Chrt.orgs.ConnectionsListShippersForCoordinatorV1Request, requestOptions?: Connections.RequestOptions): core.HttpResponsePromise<Chrt.ShipperCoordinatorConnectionsForCoordinatorListRes>;
@@ -724,6 +724,71 @@ export class Connections {
724
724
  }
725
725
  });
726
726
  }
727
+ /**
728
+ * Sets the coordinator's known-shipper designation for an on- or off-CHRT shipper and records who changed it and when. | authz: allowed_org_types=[provider], min_org_role=operator | (ShipperCoordinatorUpdateKnownShipperReq) -> (bool)
729
+ *
730
+ * @param {string} connectionId
731
+ * @param {Chrt.orgs.ShipperCoordinatorUpdateKnownShipperReq} request
732
+ * @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
733
+ *
734
+ * @throws {@link Chrt.UnprocessableEntityError}
735
+ *
736
+ * @example
737
+ * await client.orgs.connections.setShipperCoordinatorKnownShipperV1("connection_id", {
738
+ * known_shipper: true
739
+ * })
740
+ */
741
+ setShipperCoordinatorKnownShipperV1(connectionId, request, requestOptions) {
742
+ return core.HttpResponsePromise.fromPromise(this.__setShipperCoordinatorKnownShipperV1(connectionId, request, requestOptions));
743
+ }
744
+ __setShipperCoordinatorKnownShipperV1(connectionId, request, requestOptions) {
745
+ return __awaiter(this, void 0, void 0, function* () {
746
+ var _a, _b, _c, _d;
747
+ 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);
748
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
749
+ 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, `orgs/connections/set_shipper_coordinator_known_shipper/v1/${encodeURIComponent(connectionId)}`),
750
+ method: "PATCH",
751
+ headers: _headers,
752
+ contentType: "application/json",
753
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
754
+ requestType: "json",
755
+ body: request,
756
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
757
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
758
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
759
+ });
760
+ if (_response.ok) {
761
+ return { data: _response.body, rawResponse: _response.rawResponse };
762
+ }
763
+ if (_response.error.reason === "status-code") {
764
+ switch (_response.error.statusCode) {
765
+ case 422:
766
+ throw new Chrt.UnprocessableEntityError(_response.error.body, _response.rawResponse);
767
+ default:
768
+ throw new errors.ChrtError({
769
+ statusCode: _response.error.statusCode,
770
+ body: _response.error.body,
771
+ rawResponse: _response.rawResponse,
772
+ });
773
+ }
774
+ }
775
+ switch (_response.error.reason) {
776
+ case "non-json":
777
+ throw new errors.ChrtError({
778
+ statusCode: _response.error.statusCode,
779
+ body: _response.error.rawBody,
780
+ rawResponse: _response.rawResponse,
781
+ });
782
+ case "timeout":
783
+ throw new errors.ChrtTimeoutError("Timeout exceeded when calling PATCH /orgs/connections/set_shipper_coordinator_known_shipper/v1/{connection_id}.");
784
+ case "unknown":
785
+ throw new errors.ChrtError({
786
+ message: _response.error.errorMessage,
787
+ rawResponse: _response.rawResponse,
788
+ });
789
+ }
790
+ });
791
+ }
727
792
  /**
728
793
  * Lists the caller's shipper connections with filtering, pagination, and identity search. | authz: allowed_org_types=[provider] | () -> (ShipperCoordinatorConnectionsForCoordinatorListRes)
729
794
  *
@@ -738,7 +803,8 @@ export class Connections {
738
803
  * page: 1,
739
804
  * page_size: 1,
740
805
  * filter_connection_ids: ["filter_connection_ids"],
741
- * filter_connected: true
806
+ * filter_connected: true,
807
+ * filter_known_shipper: true
742
808
  * })
743
809
  */
744
810
  listShippersForCoordinatorV1(request = {}, requestOptions) {
@@ -746,8 +812,8 @@ export class Connections {
746
812
  }
747
813
  __listShippersForCoordinatorV1() {
748
814
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
749
- var _a, _b, _c, _d, _e, _f, _g;
750
- const { search, page, page_size: pageSize, filter_connection_ids: filterConnectionIds, filter_connected: filterConnected, } = request;
815
+ var _a, _b, _c, _d, _e, _f, _g, _h;
816
+ const { search, page, page_size: pageSize, filter_connection_ids: filterConnectionIds, filter_connected: filterConnected, filter_known_shipper: filterKnownShipper, } = request;
751
817
  const _queryParams = {};
752
818
  if (search !== undefined) {
753
819
  _queryParams["search"] = search;
@@ -769,9 +835,12 @@ export class Connections {
769
835
  if (filterConnected !== undefined) {
770
836
  _queryParams["filter_connected"] = (_c = filterConnected === null || filterConnected === void 0 ? void 0 : filterConnected.toString()) !== null && _c !== void 0 ? _c : null;
771
837
  }
772
- let _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);
773
- const _response = yield ((_e = this._options.fetcher) !== null && _e !== void 0 ? _e : core.fetcher)({
774
- url: core.url.join((_g = (_f = (yield core.Supplier.get(this._options.baseUrl))) !== null && _f !== void 0 ? _f : (yield core.Supplier.get(this._options.environment))) !== null && _g !== void 0 ? _g : environments.ChrtEnvironment.Local, "orgs/connections/shippers/list/for_coordinator/v1"),
838
+ if (filterKnownShipper !== undefined) {
839
+ _queryParams["filter_known_shipper"] = (_d = filterKnownShipper === null || filterKnownShipper === void 0 ? void 0 : filterKnownShipper.toString()) !== null && _d !== void 0 ? _d : null;
840
+ }
841
+ let _headers = mergeHeaders((_e = this._options) === null || _e === void 0 ? void 0 : _e.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
842
+ const _response = yield ((_f = this._options.fetcher) !== null && _f !== void 0 ? _f : core.fetcher)({
843
+ url: core.url.join((_h = (_g = (yield core.Supplier.get(this._options.baseUrl))) !== null && _g !== void 0 ? _g : (yield core.Supplier.get(this._options.environment))) !== null && _h !== void 0 ? _h : environments.ChrtEnvironment.Local, "orgs/connections/shippers/list/for_coordinator/v1"),
775
844
  method: "GET",
776
845
  headers: _headers,
777
846
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
@@ -8,7 +8,8 @@
8
8
  * page: 1,
9
9
  * page_size: 1,
10
10
  * filter_connection_ids: ["filter_connection_ids"],
11
- * filter_connected: true
11
+ * filter_connected: true,
12
+ * filter_known_shipper: true
12
13
  * }
13
14
  */
14
15
  export interface ConnectionsListShippersForCoordinatorV1Request {
@@ -20,4 +21,6 @@ export interface ConnectionsListShippersForCoordinatorV1Request {
20
21
  filter_connection_ids?: (string | null) | (string | null)[];
21
22
  /** Filter by connection status */
22
23
  filter_connected?: boolean | null;
24
+ /** Filter by the coordinator's known-shipper designation */
25
+ filter_known_shipper?: boolean | null;
23
26
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * known_shipper: true
8
+ * }
9
+ */
10
+ export interface ShipperCoordinatorUpdateKnownShipperReq {
11
+ known_shipper: boolean;
12
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -4,4 +4,5 @@ export { type ConnectionsListExecutorsGeoSearchForCoordinatorV1Request } from ".
4
4
  export { type ConnectionsListExecutorsForCoordinatorV1Request } from "./ConnectionsListExecutorsForCoordinatorV1Request.mjs";
5
5
  export { type CoordinatorExecutorUpdateAutoAssignReq } from "./CoordinatorExecutorUpdateAutoAssignReq.mjs";
6
6
  export { type ShipperCoordinatorConnectionClientUpdate1 } from "./ShipperCoordinatorConnectionClientUpdate1.mjs";
7
+ export { type ShipperCoordinatorUpdateKnownShipperReq } from "./ShipperCoordinatorUpdateKnownShipperReq.mjs";
7
8
  export { type ConnectionsListShippersForCoordinatorV1Request } from "./ConnectionsListShippersForCoordinatorV1Request.mjs";
@@ -4,6 +4,7 @@
4
4
  import * as environments from "../../../../../../environments.mjs";
5
5
  import * as core from "../../../../../../core/index.mjs";
6
6
  import * as Chrt from "../../../../../index.mjs";
7
+ import { S3Object } from "../resources/s3Object/client/Client.mjs";
7
8
  export declare namespace PublicData {
8
9
  interface Options {
9
10
  environment?: core.Supplier<environments.ChrtEnvironment | string>;
@@ -29,7 +30,9 @@ export declare namespace PublicData {
29
30
  }
30
31
  export declare class PublicData {
31
32
  protected readonly _options: PublicData.Options;
33
+ protected _s3Object: S3Object | undefined;
32
34
  constructor(_options?: PublicData.Options);
35
+ get s3Object(): S3Object;
33
36
  /**
34
37
  * Returns the organization avatar URL or a placeholder. | () -> (str)
35
38
  *
@@ -15,10 +15,15 @@ import * as core from "../../../../../../core/index.mjs";
15
15
  import * as Chrt from "../../../../../index.mjs";
16
16
  import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
17
17
  import * as errors from "../../../../../../errors/index.mjs";
18
+ import { S3Object } from "../resources/s3Object/client/Client.mjs";
18
19
  export class PublicData {
19
20
  constructor(_options = {}) {
20
21
  this._options = _options;
21
22
  }
23
+ get s3Object() {
24
+ var _a;
25
+ return ((_a = this._s3Object) !== null && _a !== void 0 ? _a : (this._s3Object = new S3Object(this._options)));
26
+ }
22
27
  /**
23
28
  * Returns the organization avatar URL or a placeholder. | () -> (str)
24
29
  *
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./resources/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as s3Object from "./s3Object/index.mjs";
2
+ export * from "./s3Object/client/requests/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * as s3Object from "./s3Object/index.mjs";
2
+ export * from "./s3Object/client/requests/index.mjs";
@@ -0,0 +1,86 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../../../environments.mjs";
5
+ import * as core from "../../../../../../../../core/index.mjs";
6
+ import * as Chrt from "../../../../../../../index.mjs";
7
+ export declare namespace S3Object {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.ChrtEnvironment | string>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
15
+ fetcher?: core.FetchFunction;
16
+ }
17
+ interface RequestOptions {
18
+ /** The maximum time to wait for a response in seconds. */
19
+ timeoutInSeconds?: number;
20
+ /** The number of times to retry the request. Defaults to 2. */
21
+ maxRetries?: number;
22
+ /** A hook to abort the request. */
23
+ abortSignal?: AbortSignal;
24
+ /** Additional query string parameters to include in the request. */
25
+ queryParams?: Record<string, unknown>;
26
+ /** Additional headers to include in the request. */
27
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
28
+ }
29
+ }
30
+ export declare class S3Object {
31
+ protected readonly _options: S3Object.Options;
32
+ constructor(_options?: S3Object.Options);
33
+ /**
34
+ * Uploads a file, such as a logo, to the caller's organization public data. Retains uploaded files; previews require a clean malware scan. | authz: min_org_role=operator | (UploadFile) -> (OrgPublicDataS3ObjectMetadata1)
35
+ *
36
+ * @param {Chrt.orgs.publicData.BodyPostOrgPublicDataS3ObjectAddV1} request
37
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @throws {@link Chrt.UnprocessableEntityError}
40
+ *
41
+ * @example
42
+ * import { createReadStream } from "fs";
43
+ * await client.orgs.publicData.s3Object.addV1({
44
+ * file: fs.createReadStream("/path/to/your/file")
45
+ * })
46
+ */
47
+ addV1(request: Chrt.orgs.publicData.BodyPostOrgPublicDataS3ObjectAddV1, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<Chrt.OrgPublicDataS3ObjectMetadata1>;
48
+ private __addV1;
49
+ /**
50
+ * Deletes an S3 object and its metadata from the caller's organization public data. | authz: min_org_role=operator | () -> (bool)
51
+ *
52
+ * @param {string} orgPublicDataS3ObjectMetadataId
53
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @throws {@link Chrt.UnprocessableEntityError}
56
+ *
57
+ * @example
58
+ * await client.orgs.publicData.s3Object.deleteV1("org_public_data_s3_object_metadata_id")
59
+ */
60
+ deleteV1(orgPublicDataS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
61
+ private __deleteV1;
62
+ /**
63
+ * Retrieves metadata for an organization public data S3 object. | () -> (OrgPublicDataS3ObjectMetadata1)
64
+ *
65
+ * @param {string} orgPublicDataS3ObjectMetadataId
66
+ * @param {S3Object.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Chrt.UnprocessableEntityError}
69
+ *
70
+ * @example
71
+ * await client.orgs.publicData.s3Object.getS3ObjectMetadataV1("org_public_data_s3_object_metadata_id")
72
+ */
73
+ getS3ObjectMetadataV1(orgPublicDataS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<Chrt.OrgPublicDataS3ObjectMetadata1>;
74
+ private __getS3ObjectMetadataV1;
75
+ /**
76
+ * Streams an organization public data S3 object file from storage. | () -> (binary)
77
+ * @throws {@link Chrt.ForbiddenError}
78
+ * @throws {@link Chrt.NotFoundError}
79
+ * @throws {@link Chrt.UnprocessableEntityError}
80
+ * @throws {@link Chrt.LockedError}
81
+ * @throws {@link Chrt.ServiceUnavailableError}
82
+ */
83
+ getV1(orgPublicDataS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
84
+ private __getV1;
85
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
86
+ }