@usecortex_ai/node 0.3.2 → 0.3.3
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.
|
@@ -1480,12 +1480,15 @@ class Upload {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
async __verifyProcessing(request, requestOptions) {
|
|
1482
1482
|
var _a, _b, _c;
|
|
1483
|
-
const { file_id: fileId, tenant_id: tenantId } = request;
|
|
1483
|
+
const { file_id: fileId, tenant_id: tenantId, sub_tenant_id: subTenantId } = request;
|
|
1484
1484
|
const _queryParams = {};
|
|
1485
1485
|
_queryParams["file_id"] = fileId;
|
|
1486
1486
|
if (tenantId != null) {
|
|
1487
1487
|
_queryParams["tenant_id"] = tenantId;
|
|
1488
1488
|
}
|
|
1489
|
+
if (subTenantId != null) {
|
|
1490
|
+
_queryParams["sub_tenant_id"] = subTenantId;
|
|
1491
|
+
}
|
|
1489
1492
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: await this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1490
1493
|
const _response = await core.fetcher({
|
|
1491
1494
|
url: core.url.join((_c = (_b = (await core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (await core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CortexAIEnvironment.CortexProd, "upload/verify_processing"),
|
|
@@ -13,4 +13,6 @@ export interface UploadVerifyProcessingRequest {
|
|
|
13
13
|
file_id: string;
|
|
14
14
|
/** Unique identifier for the tenant/organization */
|
|
15
15
|
tenant_id?: string;
|
|
16
|
+
/** Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used. */
|
|
17
|
+
sub_tenant_id?: string;
|
|
16
18
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usecortex_ai/node",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "The official TypeScript SDK for the Cortex AI platform.",
|
|
5
5
|
"author": "Nishkarsh Shrivastava <nishkarsh@usecortex.ai>",
|
|
6
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
7
6
|
"main": "./dist/index.js",
|
|
8
7
|
"types": "./dist/index.d.ts",
|
|
9
8
|
"files": [
|