@uipath/uipath-typescript 1.2.2 → 1.3.1
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.
- package/dist/assets/index.cjs +5 -8
- package/dist/assets/index.d.ts +3 -1
- package/dist/assets/index.mjs +5 -8
- package/dist/attachments/index.cjs +5 -8
- package/dist/attachments/index.d.ts +3 -1
- package/dist/attachments/index.mjs +5 -8
- package/dist/buckets/index.cjs +5 -8
- package/dist/buckets/index.d.ts +3 -1
- package/dist/buckets/index.mjs +5 -8
- package/dist/cases/index.cjs +5 -8
- package/dist/cases/index.d.ts +3 -1
- package/dist/cases/index.mjs +5 -8
- package/dist/conversational-agent/index.cjs +38 -16
- package/dist/conversational-agent/index.d.ts +26 -4
- package/dist/conversational-agent/index.mjs +38 -16
- package/dist/core/index.cjs +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.mjs +2 -2
- package/dist/entities/index.cjs +697 -317
- package/dist/entities/index.d.ts +572 -58
- package/dist/entities/index.mjs +698 -318
- package/dist/index.cjs +727 -161
- package/dist/index.d.ts +697 -69
- package/dist/index.mjs +727 -162
- package/dist/index.umd.js +727 -161
- package/dist/jobs/index.cjs +278 -20
- package/dist/jobs/index.d.ts +214 -19
- package/dist/jobs/index.mjs +278 -21
- package/dist/maestro-processes/index.cjs +5 -8
- package/dist/maestro-processes/index.d.ts +3 -1
- package/dist/maestro-processes/index.mjs +5 -8
- package/dist/processes/index.cjs +5 -8
- package/dist/processes/index.d.ts +3 -1
- package/dist/processes/index.mjs +5 -8
- package/dist/queues/index.cjs +5 -8
- package/dist/queues/index.d.ts +3 -1
- package/dist/queues/index.mjs +5 -8
- package/dist/tasks/index.cjs +5 -8
- package/dist/tasks/index.d.ts +3 -1
- package/dist/tasks/index.mjs +5 -8
- package/package.json +1 -1
package/dist/assets/index.cjs
CHANGED
|
@@ -526,15 +526,11 @@ const RESPONSE_TYPES = {
|
|
|
526
526
|
|
|
527
527
|
class ApiClient {
|
|
528
528
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
529
|
-
this.defaultHeaders = {};
|
|
530
529
|
this.config = config;
|
|
531
530
|
this.executionContext = executionContext;
|
|
532
531
|
this.clientConfig = clientConfig;
|
|
533
532
|
this.tokenManager = tokenManager;
|
|
534
533
|
}
|
|
535
|
-
setDefaultHeaders(headers) {
|
|
536
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
537
|
-
}
|
|
538
534
|
/**
|
|
539
535
|
* Gets a valid authentication token, refreshing if necessary.
|
|
540
536
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -550,7 +546,6 @@ class ApiClient {
|
|
|
550
546
|
return {
|
|
551
547
|
'Authorization': `Bearer ${token}`,
|
|
552
548
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
553
|
-
...this.defaultHeaders,
|
|
554
549
|
...this.clientConfig.headers
|
|
555
550
|
};
|
|
556
551
|
}
|
|
@@ -1390,6 +1385,8 @@ class BaseService {
|
|
|
1390
1385
|
*
|
|
1391
1386
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1392
1387
|
* Services receive this via dependency injection in the modular pattern.
|
|
1388
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1389
|
+
* CAS external-app auth)
|
|
1393
1390
|
*
|
|
1394
1391
|
* @example
|
|
1395
1392
|
* ```typescript
|
|
@@ -1409,11 +1406,11 @@ class BaseService {
|
|
|
1409
1406
|
* const entities = new Entities(sdk);
|
|
1410
1407
|
* ```
|
|
1411
1408
|
*/
|
|
1412
|
-
constructor(instance) {
|
|
1409
|
+
constructor(instance, headers) {
|
|
1413
1410
|
// Private field - not visible via Object.keys() or any reflection
|
|
1414
1411
|
_BaseService_apiClient.set(this, void 0);
|
|
1415
1412
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1416
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1413
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1417
1414
|
}
|
|
1418
1415
|
/**
|
|
1419
1416
|
* Gets a valid authentication token, refreshing if necessary.
|
|
@@ -1675,7 +1672,7 @@ const AssetMap = {
|
|
|
1675
1672
|
// Connection string placeholder that will be replaced during build
|
|
1676
1673
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
1677
1674
|
// SDK Version placeholder
|
|
1678
|
-
const SDK_VERSION = "1.
|
|
1675
|
+
const SDK_VERSION = "1.3.1";
|
|
1679
1676
|
const VERSION = "Version";
|
|
1680
1677
|
const SERVICE = "Service";
|
|
1681
1678
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/assets/index.d.ts
CHANGED
|
@@ -227,6 +227,8 @@ declare class BaseService {
|
|
|
227
227
|
*
|
|
228
228
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
229
229
|
* Services receive this via dependency injection in the modular pattern.
|
|
230
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
231
|
+
* CAS external-app auth)
|
|
230
232
|
*
|
|
231
233
|
* @example
|
|
232
234
|
* ```typescript
|
|
@@ -246,7 +248,7 @@ declare class BaseService {
|
|
|
246
248
|
* const entities = new Entities(sdk);
|
|
247
249
|
* ```
|
|
248
250
|
*/
|
|
249
|
-
constructor(instance: IUiPath);
|
|
251
|
+
constructor(instance: IUiPath, headers?: Record<string, string>);
|
|
250
252
|
/**
|
|
251
253
|
* Gets a valid authentication token, refreshing if necessary.
|
|
252
254
|
* Use this when you need to manually add Authorization headers (e.g., direct uploads).
|
package/dist/assets/index.mjs
CHANGED
|
@@ -524,15 +524,11 @@ const RESPONSE_TYPES = {
|
|
|
524
524
|
|
|
525
525
|
class ApiClient {
|
|
526
526
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
527
|
-
this.defaultHeaders = {};
|
|
528
527
|
this.config = config;
|
|
529
528
|
this.executionContext = executionContext;
|
|
530
529
|
this.clientConfig = clientConfig;
|
|
531
530
|
this.tokenManager = tokenManager;
|
|
532
531
|
}
|
|
533
|
-
setDefaultHeaders(headers) {
|
|
534
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
535
|
-
}
|
|
536
532
|
/**
|
|
537
533
|
* Gets a valid authentication token, refreshing if necessary.
|
|
538
534
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -548,7 +544,6 @@ class ApiClient {
|
|
|
548
544
|
return {
|
|
549
545
|
'Authorization': `Bearer ${token}`,
|
|
550
546
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
551
|
-
...this.defaultHeaders,
|
|
552
547
|
...this.clientConfig.headers
|
|
553
548
|
};
|
|
554
549
|
}
|
|
@@ -1388,6 +1383,8 @@ class BaseService {
|
|
|
1388
1383
|
*
|
|
1389
1384
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1390
1385
|
* Services receive this via dependency injection in the modular pattern.
|
|
1386
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1387
|
+
* CAS external-app auth)
|
|
1391
1388
|
*
|
|
1392
1389
|
* @example
|
|
1393
1390
|
* ```typescript
|
|
@@ -1407,11 +1404,11 @@ class BaseService {
|
|
|
1407
1404
|
* const entities = new Entities(sdk);
|
|
1408
1405
|
* ```
|
|
1409
1406
|
*/
|
|
1410
|
-
constructor(instance) {
|
|
1407
|
+
constructor(instance, headers) {
|
|
1411
1408
|
// Private field - not visible via Object.keys() or any reflection
|
|
1412
1409
|
_BaseService_apiClient.set(this, void 0);
|
|
1413
1410
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1414
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1411
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1415
1412
|
}
|
|
1416
1413
|
/**
|
|
1417
1414
|
* Gets a valid authentication token, refreshing if necessary.
|
|
@@ -1673,7 +1670,7 @@ const AssetMap = {
|
|
|
1673
1670
|
// Connection string placeholder that will be replaced during build
|
|
1674
1671
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
1675
1672
|
// SDK Version placeholder
|
|
1676
|
-
const SDK_VERSION = "1.
|
|
1673
|
+
const SDK_VERSION = "1.3.1";
|
|
1677
1674
|
const VERSION = "Version";
|
|
1678
1675
|
const SERVICE = "Service";
|
|
1679
1676
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -476,7 +476,7 @@ const BUCKET_TOKEN_PARAMS = {
|
|
|
476
476
|
// Connection string placeholder that will be replaced during build
|
|
477
477
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
478
478
|
// SDK Version placeholder
|
|
479
|
-
const SDK_VERSION = "1.
|
|
479
|
+
const SDK_VERSION = "1.3.1";
|
|
480
480
|
const VERSION = "Version";
|
|
481
481
|
const SERVICE = "Service";
|
|
482
482
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -1005,15 +1005,11 @@ const RESPONSE_TYPES = {
|
|
|
1005
1005
|
|
|
1006
1006
|
class ApiClient {
|
|
1007
1007
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
1008
|
-
this.defaultHeaders = {};
|
|
1009
1008
|
this.config = config;
|
|
1010
1009
|
this.executionContext = executionContext;
|
|
1011
1010
|
this.clientConfig = clientConfig;
|
|
1012
1011
|
this.tokenManager = tokenManager;
|
|
1013
1012
|
}
|
|
1014
|
-
setDefaultHeaders(headers) {
|
|
1015
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
1016
|
-
}
|
|
1017
1013
|
/**
|
|
1018
1014
|
* Gets a valid authentication token, refreshing if necessary.
|
|
1019
1015
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -1029,7 +1025,6 @@ class ApiClient {
|
|
|
1029
1025
|
return {
|
|
1030
1026
|
'Authorization': `Bearer ${token}`,
|
|
1031
1027
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
1032
|
-
...this.defaultHeaders,
|
|
1033
1028
|
...this.clientConfig.headers
|
|
1034
1029
|
};
|
|
1035
1030
|
}
|
|
@@ -1677,6 +1672,8 @@ class BaseService {
|
|
|
1677
1672
|
*
|
|
1678
1673
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1679
1674
|
* Services receive this via dependency injection in the modular pattern.
|
|
1675
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1676
|
+
* CAS external-app auth)
|
|
1680
1677
|
*
|
|
1681
1678
|
* @example
|
|
1682
1679
|
* ```typescript
|
|
@@ -1696,11 +1693,11 @@ class BaseService {
|
|
|
1696
1693
|
* const entities = new Entities(sdk);
|
|
1697
1694
|
* ```
|
|
1698
1695
|
*/
|
|
1699
|
-
constructor(instance) {
|
|
1696
|
+
constructor(instance, headers) {
|
|
1700
1697
|
// Private field - not visible via Object.keys() or any reflection
|
|
1701
1698
|
_BaseService_apiClient.set(this, void 0);
|
|
1702
1699
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1703
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1700
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1704
1701
|
}
|
|
1705
1702
|
/**
|
|
1706
1703
|
* Gets a valid authentication token, refreshing if necessary.
|
|
@@ -315,6 +315,8 @@ declare class BaseService {
|
|
|
315
315
|
*
|
|
316
316
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
317
317
|
* Services receive this via dependency injection in the modular pattern.
|
|
318
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
319
|
+
* CAS external-app auth)
|
|
318
320
|
*
|
|
319
321
|
* @example
|
|
320
322
|
* ```typescript
|
|
@@ -334,7 +336,7 @@ declare class BaseService {
|
|
|
334
336
|
* const entities = new Entities(sdk);
|
|
335
337
|
* ```
|
|
336
338
|
*/
|
|
337
|
-
constructor(instance: IUiPath);
|
|
339
|
+
constructor(instance: IUiPath, headers?: Record<string, string>);
|
|
338
340
|
/**
|
|
339
341
|
* Gets a valid authentication token, refreshing if necessary.
|
|
340
342
|
* Use this when you need to manually add Authorization headers (e.g., direct uploads).
|
|
@@ -474,7 +474,7 @@ const BUCKET_TOKEN_PARAMS = {
|
|
|
474
474
|
// Connection string placeholder that will be replaced during build
|
|
475
475
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
476
476
|
// SDK Version placeholder
|
|
477
|
-
const SDK_VERSION = "1.
|
|
477
|
+
const SDK_VERSION = "1.3.1";
|
|
478
478
|
const VERSION = "Version";
|
|
479
479
|
const SERVICE = "Service";
|
|
480
480
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -1003,15 +1003,11 @@ const RESPONSE_TYPES = {
|
|
|
1003
1003
|
|
|
1004
1004
|
class ApiClient {
|
|
1005
1005
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
1006
|
-
this.defaultHeaders = {};
|
|
1007
1006
|
this.config = config;
|
|
1008
1007
|
this.executionContext = executionContext;
|
|
1009
1008
|
this.clientConfig = clientConfig;
|
|
1010
1009
|
this.tokenManager = tokenManager;
|
|
1011
1010
|
}
|
|
1012
|
-
setDefaultHeaders(headers) {
|
|
1013
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
1014
|
-
}
|
|
1015
1011
|
/**
|
|
1016
1012
|
* Gets a valid authentication token, refreshing if necessary.
|
|
1017
1013
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -1027,7 +1023,6 @@ class ApiClient {
|
|
|
1027
1023
|
return {
|
|
1028
1024
|
'Authorization': `Bearer ${token}`,
|
|
1029
1025
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
1030
|
-
...this.defaultHeaders,
|
|
1031
1026
|
...this.clientConfig.headers
|
|
1032
1027
|
};
|
|
1033
1028
|
}
|
|
@@ -1675,6 +1670,8 @@ class BaseService {
|
|
|
1675
1670
|
*
|
|
1676
1671
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1677
1672
|
* Services receive this via dependency injection in the modular pattern.
|
|
1673
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1674
|
+
* CAS external-app auth)
|
|
1678
1675
|
*
|
|
1679
1676
|
* @example
|
|
1680
1677
|
* ```typescript
|
|
@@ -1694,11 +1691,11 @@ class BaseService {
|
|
|
1694
1691
|
* const entities = new Entities(sdk);
|
|
1695
1692
|
* ```
|
|
1696
1693
|
*/
|
|
1697
|
-
constructor(instance) {
|
|
1694
|
+
constructor(instance, headers) {
|
|
1698
1695
|
// Private field - not visible via Object.keys() or any reflection
|
|
1699
1696
|
_BaseService_apiClient.set(this, void 0);
|
|
1700
1697
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1701
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1698
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1702
1699
|
}
|
|
1703
1700
|
/**
|
|
1704
1701
|
* Gets a valid authentication token, refreshing if necessary.
|
package/dist/buckets/index.cjs
CHANGED
|
@@ -526,15 +526,11 @@ const RESPONSE_TYPES = {
|
|
|
526
526
|
|
|
527
527
|
class ApiClient {
|
|
528
528
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
529
|
-
this.defaultHeaders = {};
|
|
530
529
|
this.config = config;
|
|
531
530
|
this.executionContext = executionContext;
|
|
532
531
|
this.clientConfig = clientConfig;
|
|
533
532
|
this.tokenManager = tokenManager;
|
|
534
533
|
}
|
|
535
|
-
setDefaultHeaders(headers) {
|
|
536
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
537
|
-
}
|
|
538
534
|
/**
|
|
539
535
|
* Gets a valid authentication token, refreshing if necessary.
|
|
540
536
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -550,7 +546,6 @@ class ApiClient {
|
|
|
550
546
|
return {
|
|
551
547
|
'Authorization': `Bearer ${token}`,
|
|
552
548
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
553
|
-
...this.defaultHeaders,
|
|
554
549
|
...this.clientConfig.headers
|
|
555
550
|
};
|
|
556
551
|
}
|
|
@@ -1433,6 +1428,8 @@ class BaseService {
|
|
|
1433
1428
|
*
|
|
1434
1429
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1435
1430
|
* Services receive this via dependency injection in the modular pattern.
|
|
1431
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1432
|
+
* CAS external-app auth)
|
|
1436
1433
|
*
|
|
1437
1434
|
* @example
|
|
1438
1435
|
* ```typescript
|
|
@@ -1452,11 +1449,11 @@ class BaseService {
|
|
|
1452
1449
|
* const entities = new Entities(sdk);
|
|
1453
1450
|
* ```
|
|
1454
1451
|
*/
|
|
1455
|
-
constructor(instance) {
|
|
1452
|
+
constructor(instance, headers) {
|
|
1456
1453
|
// Private field - not visible via Object.keys() or any reflection
|
|
1457
1454
|
_BaseService_apiClient.set(this, void 0);
|
|
1458
1455
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1459
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1456
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1460
1457
|
}
|
|
1461
1458
|
/**
|
|
1462
1459
|
* Gets a valid authentication token, refreshing if necessary.
|
|
@@ -1722,7 +1719,7 @@ const BucketMap = {
|
|
|
1722
1719
|
// Connection string placeholder that will be replaced during build
|
|
1723
1720
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
1724
1721
|
// SDK Version placeholder
|
|
1725
|
-
const SDK_VERSION = "1.
|
|
1722
|
+
const SDK_VERSION = "1.3.1";
|
|
1726
1723
|
const VERSION = "Version";
|
|
1727
1724
|
const SERVICE = "Service";
|
|
1728
1725
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/buckets/index.d.ts
CHANGED
|
@@ -227,6 +227,8 @@ declare class BaseService {
|
|
|
227
227
|
*
|
|
228
228
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
229
229
|
* Services receive this via dependency injection in the modular pattern.
|
|
230
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
231
|
+
* CAS external-app auth)
|
|
230
232
|
*
|
|
231
233
|
* @example
|
|
232
234
|
* ```typescript
|
|
@@ -246,7 +248,7 @@ declare class BaseService {
|
|
|
246
248
|
* const entities = new Entities(sdk);
|
|
247
249
|
* ```
|
|
248
250
|
*/
|
|
249
|
-
constructor(instance: IUiPath);
|
|
251
|
+
constructor(instance: IUiPath, headers?: Record<string, string>);
|
|
250
252
|
/**
|
|
251
253
|
* Gets a valid authentication token, refreshing if necessary.
|
|
252
254
|
* Use this when you need to manually add Authorization headers (e.g., direct uploads).
|
package/dist/buckets/index.mjs
CHANGED
|
@@ -524,15 +524,11 @@ const RESPONSE_TYPES = {
|
|
|
524
524
|
|
|
525
525
|
class ApiClient {
|
|
526
526
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
527
|
-
this.defaultHeaders = {};
|
|
528
527
|
this.config = config;
|
|
529
528
|
this.executionContext = executionContext;
|
|
530
529
|
this.clientConfig = clientConfig;
|
|
531
530
|
this.tokenManager = tokenManager;
|
|
532
531
|
}
|
|
533
|
-
setDefaultHeaders(headers) {
|
|
534
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
535
|
-
}
|
|
536
532
|
/**
|
|
537
533
|
* Gets a valid authentication token, refreshing if necessary.
|
|
538
534
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -548,7 +544,6 @@ class ApiClient {
|
|
|
548
544
|
return {
|
|
549
545
|
'Authorization': `Bearer ${token}`,
|
|
550
546
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
551
|
-
...this.defaultHeaders,
|
|
552
547
|
...this.clientConfig.headers
|
|
553
548
|
};
|
|
554
549
|
}
|
|
@@ -1431,6 +1426,8 @@ class BaseService {
|
|
|
1431
1426
|
*
|
|
1432
1427
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1433
1428
|
* Services receive this via dependency injection in the modular pattern.
|
|
1429
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1430
|
+
* CAS external-app auth)
|
|
1434
1431
|
*
|
|
1435
1432
|
* @example
|
|
1436
1433
|
* ```typescript
|
|
@@ -1450,11 +1447,11 @@ class BaseService {
|
|
|
1450
1447
|
* const entities = new Entities(sdk);
|
|
1451
1448
|
* ```
|
|
1452
1449
|
*/
|
|
1453
|
-
constructor(instance) {
|
|
1450
|
+
constructor(instance, headers) {
|
|
1454
1451
|
// Private field - not visible via Object.keys() or any reflection
|
|
1455
1452
|
_BaseService_apiClient.set(this, void 0);
|
|
1456
1453
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1457
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1454
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1458
1455
|
}
|
|
1459
1456
|
/**
|
|
1460
1457
|
* Gets a valid authentication token, refreshing if necessary.
|
|
@@ -1720,7 +1717,7 @@ const BucketMap = {
|
|
|
1720
1717
|
// Connection string placeholder that will be replaced during build
|
|
1721
1718
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
1722
1719
|
// SDK Version placeholder
|
|
1723
|
-
const SDK_VERSION = "1.
|
|
1720
|
+
const SDK_VERSION = "1.3.1";
|
|
1724
1721
|
const VERSION = "Version";
|
|
1725
1722
|
const SERVICE = "Service";
|
|
1726
1723
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/cases/index.cjs
CHANGED
|
@@ -539,15 +539,11 @@ const RESPONSE_TYPES = {
|
|
|
539
539
|
|
|
540
540
|
class ApiClient {
|
|
541
541
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
542
|
-
this.defaultHeaders = {};
|
|
543
542
|
this.config = config;
|
|
544
543
|
this.executionContext = executionContext;
|
|
545
544
|
this.clientConfig = clientConfig;
|
|
546
545
|
this.tokenManager = tokenManager;
|
|
547
546
|
}
|
|
548
|
-
setDefaultHeaders(headers) {
|
|
549
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
550
|
-
}
|
|
551
547
|
/**
|
|
552
548
|
* Gets a valid authentication token, refreshing if necessary.
|
|
553
549
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -563,7 +559,6 @@ class ApiClient {
|
|
|
563
559
|
return {
|
|
564
560
|
'Authorization': `Bearer ${token}`,
|
|
565
561
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
566
|
-
...this.defaultHeaders,
|
|
567
562
|
...this.clientConfig.headers
|
|
568
563
|
};
|
|
569
564
|
}
|
|
@@ -1545,6 +1540,8 @@ class BaseService {
|
|
|
1545
1540
|
*
|
|
1546
1541
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1547
1542
|
* Services receive this via dependency injection in the modular pattern.
|
|
1543
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1544
|
+
* CAS external-app auth)
|
|
1548
1545
|
*
|
|
1549
1546
|
* @example
|
|
1550
1547
|
* ```typescript
|
|
@@ -1564,11 +1561,11 @@ class BaseService {
|
|
|
1564
1561
|
* const entities = new Entities(sdk);
|
|
1565
1562
|
* ```
|
|
1566
1563
|
*/
|
|
1567
|
-
constructor(instance) {
|
|
1564
|
+
constructor(instance, headers) {
|
|
1568
1565
|
// Private field - not visible via Object.keys() or any reflection
|
|
1569
1566
|
_BaseService_apiClient.set(this, void 0);
|
|
1570
1567
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1571
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1568
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1572
1569
|
}
|
|
1573
1570
|
/**
|
|
1574
1571
|
* Gets a valid authentication token, refreshing if necessary.
|
|
@@ -1832,7 +1829,7 @@ const MAESTRO_ENDPOINTS = {
|
|
|
1832
1829
|
// Connection string placeholder that will be replaced during build
|
|
1833
1830
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
1834
1831
|
// SDK Version placeholder
|
|
1835
|
-
const SDK_VERSION = "1.
|
|
1832
|
+
const SDK_VERSION = "1.3.1";
|
|
1836
1833
|
const VERSION = "Version";
|
|
1837
1834
|
const SERVICE = "Service";
|
|
1838
1835
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/cases/index.d.ts
CHANGED
|
@@ -1144,6 +1144,8 @@ declare class BaseService {
|
|
|
1144
1144
|
*
|
|
1145
1145
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1146
1146
|
* Services receive this via dependency injection in the modular pattern.
|
|
1147
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1148
|
+
* CAS external-app auth)
|
|
1147
1149
|
*
|
|
1148
1150
|
* @example
|
|
1149
1151
|
* ```typescript
|
|
@@ -1163,7 +1165,7 @@ declare class BaseService {
|
|
|
1163
1165
|
* const entities = new Entities(sdk);
|
|
1164
1166
|
* ```
|
|
1165
1167
|
*/
|
|
1166
|
-
constructor(instance: IUiPath);
|
|
1168
|
+
constructor(instance: IUiPath, headers?: Record<string, string>);
|
|
1167
1169
|
/**
|
|
1168
1170
|
* Gets a valid authentication token, refreshing if necessary.
|
|
1169
1171
|
* Use this when you need to manually add Authorization headers (e.g., direct uploads).
|
package/dist/cases/index.mjs
CHANGED
|
@@ -537,15 +537,11 @@ const RESPONSE_TYPES = {
|
|
|
537
537
|
|
|
538
538
|
class ApiClient {
|
|
539
539
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
540
|
-
this.defaultHeaders = {};
|
|
541
540
|
this.config = config;
|
|
542
541
|
this.executionContext = executionContext;
|
|
543
542
|
this.clientConfig = clientConfig;
|
|
544
543
|
this.tokenManager = tokenManager;
|
|
545
544
|
}
|
|
546
|
-
setDefaultHeaders(headers) {
|
|
547
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
548
|
-
}
|
|
549
545
|
/**
|
|
550
546
|
* Gets a valid authentication token, refreshing if necessary.
|
|
551
547
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -561,7 +557,6 @@ class ApiClient {
|
|
|
561
557
|
return {
|
|
562
558
|
'Authorization': `Bearer ${token}`,
|
|
563
559
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
564
|
-
...this.defaultHeaders,
|
|
565
560
|
...this.clientConfig.headers
|
|
566
561
|
};
|
|
567
562
|
}
|
|
@@ -1543,6 +1538,8 @@ class BaseService {
|
|
|
1543
1538
|
*
|
|
1544
1539
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1545
1540
|
* Services receive this via dependency injection in the modular pattern.
|
|
1541
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1542
|
+
* CAS external-app auth)
|
|
1546
1543
|
*
|
|
1547
1544
|
* @example
|
|
1548
1545
|
* ```typescript
|
|
@@ -1562,11 +1559,11 @@ class BaseService {
|
|
|
1562
1559
|
* const entities = new Entities(sdk);
|
|
1563
1560
|
* ```
|
|
1564
1561
|
*/
|
|
1565
|
-
constructor(instance) {
|
|
1562
|
+
constructor(instance, headers) {
|
|
1566
1563
|
// Private field - not visible via Object.keys() or any reflection
|
|
1567
1564
|
_BaseService_apiClient.set(this, void 0);
|
|
1568
1565
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1569
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1566
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1570
1567
|
}
|
|
1571
1568
|
/**
|
|
1572
1569
|
* Gets a valid authentication token, refreshing if necessary.
|
|
@@ -1830,7 +1827,7 @@ const MAESTRO_ENDPOINTS = {
|
|
|
1830
1827
|
// Connection string placeholder that will be replaced during build
|
|
1831
1828
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
1832
1829
|
// SDK Version placeholder
|
|
1833
|
-
const SDK_VERSION = "1.
|
|
1830
|
+
const SDK_VERSION = "1.3.1";
|
|
1834
1831
|
const VERSION = "Version";
|
|
1835
1832
|
const SERVICE = "Service";
|
|
1836
1833
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -51,7 +51,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
51
51
|
// Connection string placeholder that will be replaced during build
|
|
52
52
|
const CONNECTION_STRING = "InstrumentationKey=a6efa11d-1feb-4508-9738-e13e12dcae5e;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com/;LiveEndpoint=https://westeurope.livediagnostics.monitor.azure.com/;ApplicationId=7c58eb1c-9581-4ba6-839e-11725848a037";
|
|
53
53
|
// SDK Version placeholder
|
|
54
|
-
const SDK_VERSION = "1.
|
|
54
|
+
const SDK_VERSION = "1.3.1";
|
|
55
55
|
const VERSION = "Version";
|
|
56
56
|
const SERVICE = "Service";
|
|
57
57
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -798,26 +798,27 @@ const RESPONSE_TYPES = {
|
|
|
798
798
|
BLOB: 'blob',
|
|
799
799
|
ARRAYBUFFER: 'arraybuffer'
|
|
800
800
|
};
|
|
801
|
+
/**
|
|
802
|
+
* Header key for external user ID (used in both HTTP and WebSocket for external app auth
|
|
803
|
+
* in Conversational Agents Service)
|
|
804
|
+
*/
|
|
805
|
+
const EXTERNAL_USER_ID = 'x-uipath-external-user-id';
|
|
801
806
|
/**
|
|
802
807
|
* Query parameter keys sent during WebSocket connection
|
|
803
808
|
*/
|
|
804
809
|
const WEBSOCKET_QUERY_PARAMS = {
|
|
805
810
|
ORGANIZATION_ID: 'x-uipath-internal-accountid',
|
|
806
811
|
TENANT_ID: 'x-uipath-internal-tenantid',
|
|
807
|
-
EXTERNAL_USER_ID
|
|
812
|
+
EXTERNAL_USER_ID,
|
|
808
813
|
};
|
|
809
814
|
|
|
810
815
|
class ApiClient {
|
|
811
816
|
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
812
|
-
this.defaultHeaders = {};
|
|
813
817
|
this.config = config;
|
|
814
818
|
this.executionContext = executionContext;
|
|
815
819
|
this.clientConfig = clientConfig;
|
|
816
820
|
this.tokenManager = tokenManager;
|
|
817
821
|
}
|
|
818
|
-
setDefaultHeaders(headers) {
|
|
819
|
-
this.defaultHeaders = { ...this.defaultHeaders, ...headers };
|
|
820
|
-
}
|
|
821
822
|
/**
|
|
822
823
|
* Gets a valid authentication token, refreshing if necessary.
|
|
823
824
|
* Used internally for API requests and exposed for services that need manual auth headers.
|
|
@@ -833,7 +834,6 @@ class ApiClient {
|
|
|
833
834
|
return {
|
|
834
835
|
'Authorization': `Bearer ${token}`,
|
|
835
836
|
'Content-Type': CONTENT_TYPES.JSON,
|
|
836
|
-
...this.defaultHeaders,
|
|
837
837
|
...this.clientConfig.headers
|
|
838
838
|
};
|
|
839
839
|
}
|
|
@@ -1697,6 +1697,8 @@ class BaseService {
|
|
|
1697
1697
|
*
|
|
1698
1698
|
* @param instance - UiPath SDK instance providing authentication and configuration.
|
|
1699
1699
|
* Services receive this via dependency injection in the modular pattern.
|
|
1700
|
+
* @param headers - Optional default headers to include in every request (e.g. `x-uipath-external-user-id` for
|
|
1701
|
+
* CAS external-app auth)
|
|
1700
1702
|
*
|
|
1701
1703
|
* @example
|
|
1702
1704
|
* ```typescript
|
|
@@ -1716,11 +1718,11 @@ class BaseService {
|
|
|
1716
1718
|
* const entities = new Entities(sdk);
|
|
1717
1719
|
* ```
|
|
1718
1720
|
*/
|
|
1719
|
-
constructor(instance) {
|
|
1721
|
+
constructor(instance, headers) {
|
|
1720
1722
|
// Private field - not visible via Object.keys() or any reflection
|
|
1721
1723
|
_BaseService_apiClient.set(this, void 0);
|
|
1722
1724
|
const { config, context, tokenManager } = SDKInternalsRegistry.get(instance);
|
|
1723
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager), "f");
|
|
1725
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
1724
1726
|
}
|
|
1725
1727
|
/**
|
|
1726
1728
|
* Gets a valid authentication token, refreshing if necessary.
|
|
@@ -5011,6 +5013,15 @@ function transformMessage(message) {
|
|
|
5011
5013
|
* ```
|
|
5012
5014
|
*/
|
|
5013
5015
|
class ExchangeService extends BaseService {
|
|
5016
|
+
/**
|
|
5017
|
+
* Creates an instance of the ExchangeService.
|
|
5018
|
+
*
|
|
5019
|
+
* @param instance - UiPath SDK instance providing authentication and configuration
|
|
5020
|
+
* @param options - Optional configuration (e.g. externalUserId for external app auth)
|
|
5021
|
+
*/
|
|
5022
|
+
constructor(instance, options) {
|
|
5023
|
+
super(instance, options?.externalUserId ? { [EXTERNAL_USER_ID]: options.externalUserId } : undefined);
|
|
5024
|
+
}
|
|
5014
5025
|
/**
|
|
5015
5026
|
* Gets all exchanges for a conversation with optional filtering and pagination
|
|
5016
5027
|
*
|
|
@@ -5983,13 +5994,14 @@ class ConversationService extends BaseService {
|
|
|
5983
5994
|
* Creates an instance of the Conversations service.
|
|
5984
5995
|
*
|
|
5985
5996
|
* @param instance - UiPath SDK instance providing authentication and configuration
|
|
5997
|
+
* @param options - Optional configuration (e.g. externalUserId for external app auth)
|
|
5986
5998
|
*/
|
|
5987
|
-
constructor(instance) {
|
|
5988
|
-
super(instance);
|
|
5999
|
+
constructor(instance, options) {
|
|
6000
|
+
super(instance, options?.externalUserId ? { [EXTERNAL_USER_ID]: options.externalUserId } : undefined);
|
|
5989
6001
|
/** Event helper for conversation events */
|
|
5990
6002
|
this._eventHelper = null;
|
|
5991
|
-
this._sessionManager = new SessionManager(instance);
|
|
5992
|
-
this._exchangeService = new ExchangeService(instance);
|
|
6003
|
+
this._sessionManager = new SessionManager(instance, options);
|
|
6004
|
+
this._exchangeService = new ExchangeService(instance, options);
|
|
5993
6005
|
}
|
|
5994
6006
|
// ==================== Conversation CRUD Operations ====================
|
|
5995
6007
|
/**
|
|
@@ -6371,6 +6383,15 @@ __decorate([
|
|
|
6371
6383
|
* ```
|
|
6372
6384
|
*/
|
|
6373
6385
|
class MessageService extends BaseService {
|
|
6386
|
+
/**
|
|
6387
|
+
* Creates an instance of the MessageService.
|
|
6388
|
+
*
|
|
6389
|
+
* @param instance - UiPath SDK instance providing authentication and configuration
|
|
6390
|
+
* @param options - Optional configuration (e.g. externalUserId for external app auth)
|
|
6391
|
+
*/
|
|
6392
|
+
constructor(instance, options) {
|
|
6393
|
+
super(instance, options?.externalUserId ? { [EXTERNAL_USER_ID]: options.externalUserId } : undefined);
|
|
6394
|
+
}
|
|
6374
6395
|
/**
|
|
6375
6396
|
* Gets a message by ID
|
|
6376
6397
|
*
|
|
@@ -6441,11 +6462,12 @@ class ConversationalAgentService extends BaseService {
|
|
|
6441
6462
|
* Creates an instance of the ConversationalAgent service.
|
|
6442
6463
|
*
|
|
6443
6464
|
* @param instance - UiPath SDK instance providing authentication and configuration
|
|
6465
|
+
* @param options - Optional configuration (e.g. externalUserId for external app auth)
|
|
6444
6466
|
*/
|
|
6445
|
-
constructor(instance) {
|
|
6446
|
-
super(instance);
|
|
6467
|
+
constructor(instance, options) {
|
|
6468
|
+
super(instance, options?.externalUserId ? { [EXTERNAL_USER_ID]: options.externalUserId } : undefined);
|
|
6447
6469
|
// Create conversation service with WebSocket support
|
|
6448
|
-
this.conversations = new ConversationService(instance);
|
|
6470
|
+
this.conversations = new ConversationService(instance, options);
|
|
6449
6471
|
}
|
|
6450
6472
|
/**
|
|
6451
6473
|
* Registers a handler that is called whenever the WebSocket connection status changes.
|