@chrt-inc/typescript-sdk 1.384.0 → 1.390.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 (32) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.ts +2 -2
  3. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.js +3 -3
  4. package/dist/cjs/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost.d.ts +2 -2
  5. package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/Client.d.ts +2 -2
  6. package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/Client.js +3 -3
  7. package/dist/cjs/api/resources/taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.d.ts +2 -2
  8. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.d.ts +2 -2
  9. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/Client.js +3 -3
  10. package/dist/cjs/api/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost.d.ts +2 -2
  11. package/dist/cjs/api/types/LineItemGroupS3ObjectMetadata1.d.ts +4 -0
  12. package/dist/cjs/api/types/TaskArtifactS3ObjectMetadata1.d.ts +4 -0
  13. package/dist/cjs/api/types/TaskGroupS3ObjectMetadata1.d.ts +4 -0
  14. package/dist/cjs/version.d.ts +1 -1
  15. package/dist/cjs/version.js +1 -1
  16. package/dist/esm/Client.mjs +2 -2
  17. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.d.mts +2 -2
  18. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/Client.mjs +3 -3
  19. package/dist/esm/api/resources/billing/resources/lineItemGroups/resources/s3Objects/client/requests/BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost.d.mts +2 -2
  20. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/Client.d.mts +2 -2
  21. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/Client.mjs +3 -3
  22. package/dist/esm/api/resources/taskArtifacts/resources/s3Object/client/requests/BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost.d.mts +2 -2
  23. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.d.mts +2 -2
  24. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/Client.mjs +3 -3
  25. package/dist/esm/api/resources/taskGroups/resources/s3Object/client/requests/BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost.d.mts +2 -2
  26. package/dist/esm/api/types/LineItemGroupS3ObjectMetadata1.d.mts +4 -0
  27. package/dist/esm/api/types/TaskArtifactS3ObjectMetadata1.d.mts +4 -0
  28. package/dist/esm/api/types/TaskGroupS3ObjectMetadata1.d.mts +4 -0
  29. package/dist/esm/version.d.mts +1 -1
  30. package/dist/esm/version.mjs +1 -1
  31. package/package.json +1 -1
  32. package/reference.md +6 -6
@@ -66,8 +66,8 @@ class ChrtClient {
66
66
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
69
- "X-Fern-SDK-Version": "1.384.0",
70
- "User-Agent": "@chrt-inc/typescript-sdk/1.384.0",
69
+ "X-Fern-SDK-Version": "1.390.0",
70
+ "User-Agent": "@chrt-inc/typescript-sdk/1.390.0",
71
71
  "X-Fern-Runtime": core.RUNTIME.type,
72
72
  "X-Fern-Runtime-Version": core.RUNTIME.version,
73
73
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -50,7 +50,7 @@ export declare class S3Objects {
50
50
  getV1(lineItemGroupS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
51
  private __getV1;
52
52
  /**
53
- * Uploads an image file to a line item group with automatic blurhash generation. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
53
+ * Uploads a file (image, PDF, etc.) to a line item group. Automatic blurhash generation for images. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
54
54
  *
55
55
  * @param {string} lineItemGroupId
56
56
  * @param {Chrt.billing.lineItemGroups.BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost} request
@@ -61,7 +61,7 @@ export declare class S3Objects {
61
61
  * @example
62
62
  * import { createReadStream } from "fs";
63
63
  * await client.billing.lineItemGroups.s3Objects.addV1("line_item_group_id", {
64
- * image: fs.createReadStream("/path/to/your/file")
64
+ * file: fs.createReadStream("/path/to/your/file")
65
65
  * })
66
66
  */
67
67
  addV1(lineItemGroupId: string, request: Chrt.billing.lineItemGroups.BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<boolean>;
@@ -168,7 +168,7 @@ class S3Objects {
168
168
  });
169
169
  }
170
170
  /**
171
- * Uploads an image file to a line item group with automatic blurhash generation. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
171
+ * Uploads a file (image, PDF, etc.) to a line item group. Automatic blurhash generation for images. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
172
172
  *
173
173
  * @param {string} lineItemGroupId
174
174
  * @param {Chrt.billing.lineItemGroups.BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost} request
@@ -179,7 +179,7 @@ class S3Objects {
179
179
  * @example
180
180
  * import { createReadStream } from "fs";
181
181
  * await client.billing.lineItemGroups.s3Objects.addV1("line_item_group_id", {
182
- * image: fs.createReadStream("/path/to/your/file")
182
+ * file: fs.createReadStream("/path/to/your/file")
183
183
  * })
184
184
  */
185
185
  addV1(lineItemGroupId, request, requestOptions) {
@@ -189,7 +189,7 @@ class S3Objects {
189
189
  return __awaiter(this, void 0, void 0, function* () {
190
190
  var _a, _b, _c, _d;
191
191
  const _request = yield core.newFormData();
192
- yield _request.appendFile("image", request.image);
192
+ yield _request.appendFile("file", request.file);
193
193
  const _maybeEncodedRequest = yield _request.getRequest();
194
194
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
195
195
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,9 +5,9 @@ import * as core from "../../../../../../../../../core/index.js";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * image: fs.createReadStream("/path/to/your/file")
8
+ * file: fs.createReadStream("/path/to/your/file")
9
9
  * }
10
10
  */
11
11
  export interface BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost {
12
- image: core.file.Uploadable.FileLike;
12
+ file: core.file.Uploadable.FileLike;
13
13
  }
@@ -50,7 +50,7 @@ export declare class S3Object {
50
50
  getV1(taskArtifactS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
51
  private __getV1;
52
52
  /**
53
- * Uploads an image file to a task artifact with automatic blurhash generation. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
53
+ * Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
54
54
  *
55
55
  * @param {string} taskArtifactId
56
56
  * @param {Chrt.taskArtifacts.BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost} request
@@ -61,7 +61,7 @@ export declare class S3Object {
61
61
  * @example
62
62
  * import { createReadStream } from "fs";
63
63
  * await client.taskArtifacts.s3Object.addV1("task_artifact_id", {
64
- * image: fs.createReadStream("/path/to/your/file")
64
+ * file: fs.createReadStream("/path/to/your/file")
65
65
  * })
66
66
  */
67
67
  addV1(taskArtifactId: string, request: Chrt.taskArtifacts.BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
@@ -168,7 +168,7 @@ class S3Object {
168
168
  });
169
169
  }
170
170
  /**
171
- * Uploads an image file to a task artifact with automatic blurhash generation. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
171
+ * Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
172
172
  *
173
173
  * @param {string} taskArtifactId
174
174
  * @param {Chrt.taskArtifacts.BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost} request
@@ -179,7 +179,7 @@ class S3Object {
179
179
  * @example
180
180
  * import { createReadStream } from "fs";
181
181
  * await client.taskArtifacts.s3Object.addV1("task_artifact_id", {
182
- * image: fs.createReadStream("/path/to/your/file")
182
+ * file: fs.createReadStream("/path/to/your/file")
183
183
  * })
184
184
  */
185
185
  addV1(taskArtifactId, request, requestOptions) {
@@ -189,7 +189,7 @@ class S3Object {
189
189
  return __awaiter(this, void 0, void 0, function* () {
190
190
  var _a, _b, _c, _d;
191
191
  const _request = yield core.newFormData();
192
- yield _request.appendFile("image", request.image);
192
+ yield _request.appendFile("file", request.file);
193
193
  const _maybeEncodedRequest = yield _request.getRequest();
194
194
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
195
195
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,9 +5,9 @@ import * as core from "../../../../../../../core/index.js";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * image: fs.createReadStream("/path/to/your/file")
8
+ * file: fs.createReadStream("/path/to/your/file")
9
9
  * }
10
10
  */
11
11
  export interface BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost {
12
- image: core.file.Uploadable.FileLike;
12
+ file: core.file.Uploadable.FileLike;
13
13
  }
@@ -50,7 +50,7 @@ export declare class S3Object {
50
50
  getV1(taskGroupS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
51
  private __getV1;
52
52
  /**
53
- * Uploads an image file to a task group with automatic blurhash generation. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
53
+ * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
54
54
  *
55
55
  * @param {string} taskGroupId
56
56
  * @param {Chrt.taskGroups.BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost} request
@@ -61,7 +61,7 @@ export declare class S3Object {
61
61
  * @example
62
62
  * import { createReadStream } from "fs";
63
63
  * await client.taskGroups.s3Object.addV1("task_group_id", {
64
- * image: fs.createReadStream("/path/to/your/file")
64
+ * file: fs.createReadStream("/path/to/your/file")
65
65
  * })
66
66
  */
67
67
  addV1(taskGroupId: string, request: Chrt.taskGroups.BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
@@ -168,7 +168,7 @@ class S3Object {
168
168
  });
169
169
  }
170
170
  /**
171
- * Uploads an image file to a task group with automatic blurhash generation. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
171
+ * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
172
172
  *
173
173
  * @param {string} taskGroupId
174
174
  * @param {Chrt.taskGroups.BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost} request
@@ -179,7 +179,7 @@ class S3Object {
179
179
  * @example
180
180
  * import { createReadStream } from "fs";
181
181
  * await client.taskGroups.s3Object.addV1("task_group_id", {
182
- * image: fs.createReadStream("/path/to/your/file")
182
+ * file: fs.createReadStream("/path/to/your/file")
183
183
  * })
184
184
  */
185
185
  addV1(taskGroupId, request, requestOptions) {
@@ -189,7 +189,7 @@ class S3Object {
189
189
  return __awaiter(this, void 0, void 0, function* () {
190
190
  var _a, _b, _c, _d;
191
191
  const _request = yield core.newFormData();
192
- yield _request.appendFile("image", request.image);
192
+ yield _request.appendFile("file", request.file);
193
193
  const _maybeEncodedRequest = yield _request.getRequest();
194
194
  let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
195
195
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,9 +5,9 @@ import * as core from "../../../../../../../core/index.js";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * image: fs.createReadStream("/path/to/your/file")
8
+ * file: fs.createReadStream("/path/to/your/file")
9
9
  * }
10
10
  */
11
11
  export interface BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost {
12
- image: core.file.Uploadable.FileLike;
12
+ file: core.file.Uploadable.FileLike;
13
13
  }
@@ -12,4 +12,8 @@ export interface LineItemGroupS3ObjectMetadata1 {
12
12
  uploaded_by_org_id: string;
13
13
  s3_key_prefix?: "billing/line_item_group_s3_object_metadata";
14
14
  blurhash?: string | null;
15
+ /** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
16
+ content_type?: string | null;
17
+ /** Original filename of the uploaded file */
18
+ filename?: string | null;
15
19
  }
@@ -12,4 +12,8 @@ export interface TaskArtifactS3ObjectMetadata1 {
12
12
  uploaded_by_org_id: string;
13
13
  s3_key_prefix?: "oort/task_artifact_s3_object_metadata";
14
14
  blurhash?: string | null;
15
+ /** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
16
+ content_type?: string | null;
17
+ /** Original filename of the uploaded file */
18
+ filename?: string | null;
15
19
  }
@@ -12,4 +12,8 @@ export interface TaskGroupS3ObjectMetadata1 {
12
12
  uploaded_by_org_id: string;
13
13
  s3_key_prefix?: "oort/task_group_s3_object_metadata";
14
14
  blurhash?: string | null;
15
+ /** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
16
+ content_type?: string | null;
17
+ /** Original filename of the uploaded file */
18
+ filename?: string | null;
15
19
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.384.0";
1
+ export declare const SDK_VERSION = "1.390.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.384.0";
4
+ exports.SDK_VERSION = "1.390.0";
@@ -30,8 +30,8 @@ export class ChrtClient {
30
30
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
31
31
  "X-Fern-Language": "JavaScript",
32
32
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
33
- "X-Fern-SDK-Version": "1.384.0",
34
- "User-Agent": "@chrt-inc/typescript-sdk/1.384.0",
33
+ "X-Fern-SDK-Version": "1.390.0",
34
+ "User-Agent": "@chrt-inc/typescript-sdk/1.390.0",
35
35
  "X-Fern-Runtime": core.RUNTIME.type,
36
36
  "X-Fern-Runtime-Version": core.RUNTIME.version,
37
37
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -50,7 +50,7 @@ export declare class S3Objects {
50
50
  getV1(lineItemGroupS3ObjectMetadataId: string, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
51
  private __getV1;
52
52
  /**
53
- * Uploads an image file to a line item group with automatic blurhash generation. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
53
+ * Uploads a file (image, PDF, etc.) to a line item group. Automatic blurhash generation for images. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
54
54
  *
55
55
  * @param {string} lineItemGroupId
56
56
  * @param {Chrt.billing.lineItemGroups.BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost} request
@@ -61,7 +61,7 @@ export declare class S3Objects {
61
61
  * @example
62
62
  * import { createReadStream } from "fs";
63
63
  * await client.billing.lineItemGroups.s3Objects.addV1("line_item_group_id", {
64
- * image: fs.createReadStream("/path/to/your/file")
64
+ * file: fs.createReadStream("/path/to/your/file")
65
65
  * })
66
66
  */
67
67
  addV1(lineItemGroupId: string, request: Chrt.billing.lineItemGroups.BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost, requestOptions?: S3Objects.RequestOptions): core.HttpResponsePromise<boolean>;
@@ -132,7 +132,7 @@ export class S3Objects {
132
132
  });
133
133
  }
134
134
  /**
135
- * Uploads an image file to a line item group with automatic blurhash generation. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
135
+ * Uploads a file (image, PDF, etc.) to a line item group. Automatic blurhash generation for images. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
136
136
  *
137
137
  * @param {string} lineItemGroupId
138
138
  * @param {Chrt.billing.lineItemGroups.BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost} request
@@ -143,7 +143,7 @@ export class S3Objects {
143
143
  * @example
144
144
  * import { createReadStream } from "fs";
145
145
  * await client.billing.lineItemGroups.s3Objects.addV1("line_item_group_id", {
146
- * image: fs.createReadStream("/path/to/your/file")
146
+ * file: fs.createReadStream("/path/to/your/file")
147
147
  * })
148
148
  */
149
149
  addV1(lineItemGroupId, request, requestOptions) {
@@ -153,7 +153,7 @@ export class S3Objects {
153
153
  return __awaiter(this, void 0, void 0, function* () {
154
154
  var _a, _b, _c, _d;
155
155
  const _request = yield core.newFormData();
156
- yield _request.appendFile("image", request.image);
156
+ yield _request.appendFile("file", request.file);
157
157
  const _maybeEncodedRequest = yield _request.getRequest();
158
158
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
159
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,9 +5,9 @@ import * as core from "../../../../../../../../../core/index.mjs";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * image: fs.createReadStream("/path/to/your/file")
8
+ * file: fs.createReadStream("/path/to/your/file")
9
9
  * }
10
10
  */
11
11
  export interface BodyLineItemGroupsS3ObjectPostAddV1BillingLineItemGroupsS3ObjectsAddV1LineItemGroupIdPost {
12
- image: core.file.Uploadable.FileLike;
12
+ file: core.file.Uploadable.FileLike;
13
13
  }
@@ -50,7 +50,7 @@ export declare class S3Object {
50
50
  getV1(taskArtifactS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
51
  private __getV1;
52
52
  /**
53
- * Uploads an image file to a task artifact with automatic blurhash generation. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
53
+ * Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
54
54
  *
55
55
  * @param {string} taskArtifactId
56
56
  * @param {Chrt.taskArtifacts.BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost} request
@@ -61,7 +61,7 @@ export declare class S3Object {
61
61
  * @example
62
62
  * import { createReadStream } from "fs";
63
63
  * await client.taskArtifacts.s3Object.addV1("task_artifact_id", {
64
- * image: fs.createReadStream("/path/to/your/file")
64
+ * file: fs.createReadStream("/path/to/your/file")
65
65
  * })
66
66
  */
67
67
  addV1(taskArtifactId: string, request: Chrt.taskArtifacts.BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
@@ -132,7 +132,7 @@ export class S3Object {
132
132
  });
133
133
  }
134
134
  /**
135
- * Uploads an image file to a task artifact with automatic blurhash generation. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
135
+ * Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
136
136
  *
137
137
  * @param {string} taskArtifactId
138
138
  * @param {Chrt.taskArtifacts.BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost} request
@@ -143,7 +143,7 @@ export class S3Object {
143
143
  * @example
144
144
  * import { createReadStream } from "fs";
145
145
  * await client.taskArtifacts.s3Object.addV1("task_artifact_id", {
146
- * image: fs.createReadStream("/path/to/your/file")
146
+ * file: fs.createReadStream("/path/to/your/file")
147
147
  * })
148
148
  */
149
149
  addV1(taskArtifactId, request, requestOptions) {
@@ -153,7 +153,7 @@ export class S3Object {
153
153
  return __awaiter(this, void 0, void 0, function* () {
154
154
  var _a, _b, _c, _d;
155
155
  const _request = yield core.newFormData();
156
- yield _request.appendFile("image", request.image);
156
+ yield _request.appendFile("file", request.file);
157
157
  const _maybeEncodedRequest = yield _request.getRequest();
158
158
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
159
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,9 +5,9 @@ import * as core from "../../../../../../../core/index.mjs";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * image: fs.createReadStream("/path/to/your/file")
8
+ * file: fs.createReadStream("/path/to/your/file")
9
9
  * }
10
10
  */
11
11
  export interface BodyPostTaskArtifactsS3ObjectAddV1OortTaskArtifactsS3ObjectAddV1TaskArtifactIdPost {
12
- image: core.file.Uploadable.FileLike;
12
+ file: core.file.Uploadable.FileLike;
13
13
  }
@@ -50,7 +50,7 @@ export declare class S3Object {
50
50
  getV1(taskGroupS3ObjectMetadataId: string, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<core.BinaryResponse>;
51
51
  private __getV1;
52
52
  /**
53
- * Uploads an image file to a task group with automatic blurhash generation. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
53
+ * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
54
54
  *
55
55
  * @param {string} taskGroupId
56
56
  * @param {Chrt.taskGroups.BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost} request
@@ -61,7 +61,7 @@ export declare class S3Object {
61
61
  * @example
62
62
  * import { createReadStream } from "fs";
63
63
  * await client.taskGroups.s3Object.addV1("task_group_id", {
64
- * image: fs.createReadStream("/path/to/your/file")
64
+ * file: fs.createReadStream("/path/to/your/file")
65
65
  * })
66
66
  */
67
67
  addV1(taskGroupId: string, request: Chrt.taskGroups.BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost, requestOptions?: S3Object.RequestOptions): core.HttpResponsePromise<boolean>;
@@ -132,7 +132,7 @@ export class S3Object {
132
132
  });
133
133
  }
134
134
  /**
135
- * Uploads an image file to a task group with automatic blurhash generation. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
135
+ * Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
136
136
  *
137
137
  * @param {string} taskGroupId
138
138
  * @param {Chrt.taskGroups.BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost} request
@@ -143,7 +143,7 @@ export class S3Object {
143
143
  * @example
144
144
  * import { createReadStream } from "fs";
145
145
  * await client.taskGroups.s3Object.addV1("task_group_id", {
146
- * image: fs.createReadStream("/path/to/your/file")
146
+ * file: fs.createReadStream("/path/to/your/file")
147
147
  * })
148
148
  */
149
149
  addV1(taskGroupId, request, requestOptions) {
@@ -153,7 +153,7 @@ export class S3Object {
153
153
  return __awaiter(this, void 0, void 0, function* () {
154
154
  var _a, _b, _c, _d;
155
155
  const _request = yield core.newFormData();
156
- yield _request.appendFile("image", request.image);
156
+ yield _request.appendFile("file", request.file);
157
157
  const _maybeEncodedRequest = yield _request.getRequest();
158
158
  let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({ Authorization: yield this._getAuthorizationHeader() }, _maybeEncodedRequest.headers)), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
159
159
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,9 +5,9 @@ import * as core from "../../../../../../../core/index.mjs";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * image: fs.createReadStream("/path/to/your/file")
8
+ * file: fs.createReadStream("/path/to/your/file")
9
9
  * }
10
10
  */
11
11
  export interface BodyPostTaskGroupsS3ObjectAddV1OortTaskGroupsS3ObjectAddV1TaskGroupIdPost {
12
- image: core.file.Uploadable.FileLike;
12
+ file: core.file.Uploadable.FileLike;
13
13
  }
@@ -12,4 +12,8 @@ export interface LineItemGroupS3ObjectMetadata1 {
12
12
  uploaded_by_org_id: string;
13
13
  s3_key_prefix?: "billing/line_item_group_s3_object_metadata";
14
14
  blurhash?: string | null;
15
+ /** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
16
+ content_type?: string | null;
17
+ /** Original filename of the uploaded file */
18
+ filename?: string | null;
15
19
  }
@@ -12,4 +12,8 @@ export interface TaskArtifactS3ObjectMetadata1 {
12
12
  uploaded_by_org_id: string;
13
13
  s3_key_prefix?: "oort/task_artifact_s3_object_metadata";
14
14
  blurhash?: string | null;
15
+ /** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
16
+ content_type?: string | null;
17
+ /** Original filename of the uploaded file */
18
+ filename?: string | null;
15
19
  }
@@ -12,4 +12,8 @@ export interface TaskGroupS3ObjectMetadata1 {
12
12
  uploaded_by_org_id: string;
13
13
  s3_key_prefix?: "oort/task_group_s3_object_metadata";
14
14
  blurhash?: string | null;
15
+ /** MIME type of the uploaded file (e.g., 'image/jpeg', 'application/pdf') */
16
+ content_type?: string | null;
17
+ /** Original filename of the uploaded file */
18
+ filename?: string | null;
15
19
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.384.0";
1
+ export declare const SDK_VERSION = "1.390.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.384.0";
1
+ export const SDK_VERSION = "1.390.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.384.0",
3
+ "version": "1.390.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -7661,7 +7661,7 @@ await client.billing.lineItemGroups.s3Objects.getV1("line_item_group_s3_object_m
7661
7661
  <dl>
7662
7662
  <dd>
7663
7663
 
7664
- Uploads an image file to a line item group with automatic blurhash generation. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
7664
+ Uploads a file (image, PDF, etc.) to a line item group. Automatic blurhash generation for images. | authz_personas=[lig_org_operators, lig_driver] | (UploadFile) -> (bool)
7665
7665
 
7666
7666
  </dd>
7667
7667
  </dl>
@@ -7678,7 +7678,7 @@ Uploads an image file to a line item group with automatic blurhash generation. |
7678
7678
 
7679
7679
  ```typescript
7680
7680
  await client.billing.lineItemGroups.s3Objects.addV1("line_item_group_id", {
7681
- image: fs.createReadStream("/path/to/your/file"),
7681
+ file: fs.createReadStream("/path/to/your/file"),
7682
7682
  });
7683
7683
  ```
7684
7684
 
@@ -11806,7 +11806,7 @@ await client.taskArtifacts.s3Object.getV1("task_artifact_s3_object_metadata_id")
11806
11806
  <dl>
11807
11807
  <dd>
11808
11808
 
11809
- Uploads an image file to a task artifact with automatic blurhash generation. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
11809
+ Uploads a file (image, PDF, etc.) to a task artifact. Automatic blurhash generation for images. | authz_personas=[courier_driver, forwarder_org_operators, courier_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
11810
11810
 
11811
11811
  </dd>
11812
11812
  </dl>
@@ -11823,7 +11823,7 @@ Uploads an image file to a task artifact with automatic blurhash generation. | a
11823
11823
 
11824
11824
  ```typescript
11825
11825
  await client.taskArtifacts.s3Object.addV1("task_artifact_id", {
11826
- image: fs.createReadStream("/path/to/your/file"),
11826
+ file: fs.createReadStream("/path/to/your/file"),
11827
11827
  });
11828
11828
  ```
11829
11829
 
@@ -12198,7 +12198,7 @@ await client.taskGroups.s3Object.getV1("task_group_s3_object_metadata_id");
12198
12198
  <dl>
12199
12199
  <dd>
12200
12200
 
12201
- Uploads an image file to a task group with automatic blurhash generation. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
12201
+ Uploads a file (image, PDF, etc.) to a task group. Automatic blurhash generation for images. | authz_personas=[courier_driver, courier_org_operators, forwarder_org_operators, shipper_org_operators] | (UploadFile) -> (bool)
12202
12202
 
12203
12203
  </dd>
12204
12204
  </dl>
@@ -12215,7 +12215,7 @@ Uploads an image file to a task group with automatic blurhash generation. | auth
12215
12215
 
12216
12216
  ```typescript
12217
12217
  await client.taskGroups.s3Object.addV1("task_group_id", {
12218
- image: fs.createReadStream("/path/to/your/file"),
12218
+ file: fs.createReadStream("/path/to/your/file"),
12219
12219
  });
12220
12220
  ```
12221
12221