@uipath/uipath-typescript 1.3.3 → 1.3.5
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 +8 -1
- package/dist/assets/index.mjs +8 -1
- package/dist/attachments/index.cjs +8 -1
- package/dist/attachments/index.mjs +8 -1
- package/dist/buckets/index.cjs +8 -1
- package/dist/buckets/index.mjs +8 -1
- package/dist/cases/index.cjs +8 -1
- package/dist/cases/index.mjs +8 -1
- package/dist/conversational-agent/index.cjs +8 -1
- package/dist/conversational-agent/index.d.ts +29 -2
- package/dist/conversational-agent/index.mjs +8 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/document-understanding/index.cjs +257 -0
- package/dist/document-understanding/index.d.ts +1185 -0
- package/dist/document-understanding/index.mjs +255 -0
- package/dist/entities/index.cjs +277 -15
- package/dist/entities/index.d.ts +135 -0
- package/dist/entities/index.mjs +277 -15
- package/dist/feedback/index.cjs +8 -1
- package/dist/feedback/index.mjs +8 -1
- package/dist/index.cjs +578 -15
- package/dist/index.d.ts +1384 -9
- package/dist/index.mjs +580 -18
- package/dist/index.umd.js +578 -15
- package/dist/jobs/index.cjs +54 -1
- package/dist/jobs/index.d.ts +52 -0
- package/dist/jobs/index.mjs +54 -1
- package/dist/maestro-processes/index.cjs +8 -1
- package/dist/maestro-processes/index.mjs +8 -1
- package/dist/processes/index.cjs +8 -1
- package/dist/processes/index.mjs +8 -1
- package/dist/queues/index.cjs +8 -1
- package/dist/queues/index.mjs +8 -1
- package/dist/tasks/index.cjs +8 -1
- package/dist/tasks/index.mjs +8 -1
- package/package.json +12 -2
package/dist/assets/index.cjs
CHANGED
|
@@ -506,6 +506,8 @@ class ErrorFactory {
|
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
509
|
+
const TRACEPARENT = 'traceparent';
|
|
510
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
509
511
|
/**
|
|
510
512
|
* Content type constants for HTTP requests/responses
|
|
511
513
|
*/
|
|
@@ -559,8 +561,13 @@ class ApiClient {
|
|
|
559
561
|
if (isFormData) {
|
|
560
562
|
delete defaultHeaders['Content-Type'];
|
|
561
563
|
}
|
|
564
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
565
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
566
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
562
567
|
const headers = {
|
|
563
568
|
...defaultHeaders,
|
|
569
|
+
[TRACEPARENT]: traceparentValue,
|
|
570
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
564
571
|
...options.headers
|
|
565
572
|
};
|
|
566
573
|
// Convert params to URLSearchParams
|
|
@@ -1678,7 +1685,7 @@ const AssetMap = {
|
|
|
1678
1685
|
// Connection string placeholder that will be replaced during build
|
|
1679
1686
|
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";
|
|
1680
1687
|
// SDK Version placeholder
|
|
1681
|
-
const SDK_VERSION = "1.3.
|
|
1688
|
+
const SDK_VERSION = "1.3.5";
|
|
1682
1689
|
const VERSION = "Version";
|
|
1683
1690
|
const SERVICE = "Service";
|
|
1684
1691
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/assets/index.mjs
CHANGED
|
@@ -504,6 +504,8 @@ class ErrorFactory {
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
507
|
+
const TRACEPARENT = 'traceparent';
|
|
508
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
507
509
|
/**
|
|
508
510
|
* Content type constants for HTTP requests/responses
|
|
509
511
|
*/
|
|
@@ -557,8 +559,13 @@ class ApiClient {
|
|
|
557
559
|
if (isFormData) {
|
|
558
560
|
delete defaultHeaders['Content-Type'];
|
|
559
561
|
}
|
|
562
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
563
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
564
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
560
565
|
const headers = {
|
|
561
566
|
...defaultHeaders,
|
|
567
|
+
[TRACEPARENT]: traceparentValue,
|
|
568
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
562
569
|
...options.headers
|
|
563
570
|
};
|
|
564
571
|
// Convert params to URLSearchParams
|
|
@@ -1676,7 +1683,7 @@ const AssetMap = {
|
|
|
1676
1683
|
// Connection string placeholder that will be replaced during build
|
|
1677
1684
|
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";
|
|
1678
1685
|
// SDK Version placeholder
|
|
1679
|
-
const SDK_VERSION = "1.3.
|
|
1686
|
+
const SDK_VERSION = "1.3.5";
|
|
1680
1687
|
const VERSION = "Version";
|
|
1681
1688
|
const SERVICE = "Service";
|
|
1682
1689
|
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.3.
|
|
479
|
+
const SDK_VERSION = "1.3.5";
|
|
480
480
|
const VERSION = "Version";
|
|
481
481
|
const SERVICE = "Service";
|
|
482
482
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -985,6 +985,8 @@ class ErrorFactory {
|
|
|
985
985
|
}
|
|
986
986
|
|
|
987
987
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
988
|
+
const TRACEPARENT = 'traceparent';
|
|
989
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
988
990
|
/**
|
|
989
991
|
* Content type constants for HTTP requests/responses
|
|
990
992
|
*/
|
|
@@ -1038,8 +1040,13 @@ class ApiClient {
|
|
|
1038
1040
|
if (isFormData) {
|
|
1039
1041
|
delete defaultHeaders['Content-Type'];
|
|
1040
1042
|
}
|
|
1043
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
1044
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
1045
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
1041
1046
|
const headers = {
|
|
1042
1047
|
...defaultHeaders,
|
|
1048
|
+
[TRACEPARENT]: traceparentValue,
|
|
1049
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
1043
1050
|
...options.headers
|
|
1044
1051
|
};
|
|
1045
1052
|
// Convert params to URLSearchParams
|
|
@@ -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.3.
|
|
477
|
+
const SDK_VERSION = "1.3.5";
|
|
478
478
|
const VERSION = "Version";
|
|
479
479
|
const SERVICE = "Service";
|
|
480
480
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -983,6 +983,8 @@ class ErrorFactory {
|
|
|
983
983
|
}
|
|
984
984
|
|
|
985
985
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
986
|
+
const TRACEPARENT = 'traceparent';
|
|
987
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
986
988
|
/**
|
|
987
989
|
* Content type constants for HTTP requests/responses
|
|
988
990
|
*/
|
|
@@ -1036,8 +1038,13 @@ class ApiClient {
|
|
|
1036
1038
|
if (isFormData) {
|
|
1037
1039
|
delete defaultHeaders['Content-Type'];
|
|
1038
1040
|
}
|
|
1041
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
1042
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
1043
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
1039
1044
|
const headers = {
|
|
1040
1045
|
...defaultHeaders,
|
|
1046
|
+
[TRACEPARENT]: traceparentValue,
|
|
1047
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
1041
1048
|
...options.headers
|
|
1042
1049
|
};
|
|
1043
1050
|
// Convert params to URLSearchParams
|
package/dist/buckets/index.cjs
CHANGED
|
@@ -506,6 +506,8 @@ class ErrorFactory {
|
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
509
|
+
const TRACEPARENT = 'traceparent';
|
|
510
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
509
511
|
/**
|
|
510
512
|
* Content type constants for HTTP requests/responses
|
|
511
513
|
*/
|
|
@@ -559,8 +561,13 @@ class ApiClient {
|
|
|
559
561
|
if (isFormData) {
|
|
560
562
|
delete defaultHeaders['Content-Type'];
|
|
561
563
|
}
|
|
564
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
565
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
566
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
562
567
|
const headers = {
|
|
563
568
|
...defaultHeaders,
|
|
569
|
+
[TRACEPARENT]: traceparentValue,
|
|
570
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
564
571
|
...options.headers
|
|
565
572
|
};
|
|
566
573
|
// Convert params to URLSearchParams
|
|
@@ -1725,7 +1732,7 @@ const BucketMap = {
|
|
|
1725
1732
|
// Connection string placeholder that will be replaced during build
|
|
1726
1733
|
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";
|
|
1727
1734
|
// SDK Version placeholder
|
|
1728
|
-
const SDK_VERSION = "1.3.
|
|
1735
|
+
const SDK_VERSION = "1.3.5";
|
|
1729
1736
|
const VERSION = "Version";
|
|
1730
1737
|
const SERVICE = "Service";
|
|
1731
1738
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/buckets/index.mjs
CHANGED
|
@@ -504,6 +504,8 @@ class ErrorFactory {
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
507
|
+
const TRACEPARENT = 'traceparent';
|
|
508
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
507
509
|
/**
|
|
508
510
|
* Content type constants for HTTP requests/responses
|
|
509
511
|
*/
|
|
@@ -557,8 +559,13 @@ class ApiClient {
|
|
|
557
559
|
if (isFormData) {
|
|
558
560
|
delete defaultHeaders['Content-Type'];
|
|
559
561
|
}
|
|
562
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
563
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
564
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
560
565
|
const headers = {
|
|
561
566
|
...defaultHeaders,
|
|
567
|
+
[TRACEPARENT]: traceparentValue,
|
|
568
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
562
569
|
...options.headers
|
|
563
570
|
};
|
|
564
571
|
// Convert params to URLSearchParams
|
|
@@ -1723,7 +1730,7 @@ const BucketMap = {
|
|
|
1723
1730
|
// Connection string placeholder that will be replaced during build
|
|
1724
1731
|
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";
|
|
1725
1732
|
// SDK Version placeholder
|
|
1726
|
-
const SDK_VERSION = "1.3.
|
|
1733
|
+
const SDK_VERSION = "1.3.5";
|
|
1727
1734
|
const VERSION = "Version";
|
|
1728
1735
|
const SERVICE = "Service";
|
|
1729
1736
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/cases/index.cjs
CHANGED
|
@@ -519,6 +519,8 @@ class ErrorFactory {
|
|
|
519
519
|
|
|
520
520
|
const FOLDER_KEY = 'X-UIPATH-FolderKey';
|
|
521
521
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
522
|
+
const TRACEPARENT = 'traceparent';
|
|
523
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
522
524
|
/**
|
|
523
525
|
* Content type constants for HTTP requests/responses
|
|
524
526
|
*/
|
|
@@ -572,8 +574,13 @@ class ApiClient {
|
|
|
572
574
|
if (isFormData) {
|
|
573
575
|
delete defaultHeaders['Content-Type'];
|
|
574
576
|
}
|
|
577
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
578
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
579
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
575
580
|
const headers = {
|
|
576
581
|
...defaultHeaders,
|
|
582
|
+
[TRACEPARENT]: traceparentValue,
|
|
583
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
577
584
|
...options.headers
|
|
578
585
|
};
|
|
579
586
|
// Convert params to URLSearchParams
|
|
@@ -1835,7 +1842,7 @@ const MAESTRO_ENDPOINTS = {
|
|
|
1835
1842
|
// Connection string placeholder that will be replaced during build
|
|
1836
1843
|
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";
|
|
1837
1844
|
// SDK Version placeholder
|
|
1838
|
-
const SDK_VERSION = "1.3.
|
|
1845
|
+
const SDK_VERSION = "1.3.5";
|
|
1839
1846
|
const VERSION = "Version";
|
|
1840
1847
|
const SERVICE = "Service";
|
|
1841
1848
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/cases/index.mjs
CHANGED
|
@@ -517,6 +517,8 @@ class ErrorFactory {
|
|
|
517
517
|
|
|
518
518
|
const FOLDER_KEY = 'X-UIPATH-FolderKey';
|
|
519
519
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
520
|
+
const TRACEPARENT = 'traceparent';
|
|
521
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
520
522
|
/**
|
|
521
523
|
* Content type constants for HTTP requests/responses
|
|
522
524
|
*/
|
|
@@ -570,8 +572,13 @@ class ApiClient {
|
|
|
570
572
|
if (isFormData) {
|
|
571
573
|
delete defaultHeaders['Content-Type'];
|
|
572
574
|
}
|
|
575
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
576
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
577
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
573
578
|
const headers = {
|
|
574
579
|
...defaultHeaders,
|
|
580
|
+
[TRACEPARENT]: traceparentValue,
|
|
581
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
575
582
|
...options.headers
|
|
576
583
|
};
|
|
577
584
|
// Convert params to URLSearchParams
|
|
@@ -1833,7 +1840,7 @@ const MAESTRO_ENDPOINTS = {
|
|
|
1833
1840
|
// Connection string placeholder that will be replaced during build
|
|
1834
1841
|
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";
|
|
1835
1842
|
// SDK Version placeholder
|
|
1836
|
-
const SDK_VERSION = "1.3.
|
|
1843
|
+
const SDK_VERSION = "1.3.5";
|
|
1837
1844
|
const VERSION = "Version";
|
|
1838
1845
|
const SERVICE = "Service";
|
|
1839
1846
|
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.3.
|
|
54
|
+
const SDK_VERSION = "1.3.5";
|
|
55
55
|
const VERSION = "Version";
|
|
56
56
|
const SERVICE = "Service";
|
|
57
57
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -781,6 +781,8 @@ class ErrorFactory {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
784
|
+
const TRACEPARENT = 'traceparent';
|
|
785
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
784
786
|
/**
|
|
785
787
|
* Content type constants for HTTP requests/responses
|
|
786
788
|
*/
|
|
@@ -847,8 +849,13 @@ class ApiClient {
|
|
|
847
849
|
if (isFormData) {
|
|
848
850
|
delete defaultHeaders['Content-Type'];
|
|
849
851
|
}
|
|
852
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
853
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
854
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
850
855
|
const headers = {
|
|
851
856
|
...defaultHeaders,
|
|
857
|
+
[TRACEPARENT]: traceparentValue,
|
|
858
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
852
859
|
...options.headers
|
|
853
860
|
};
|
|
854
861
|
// Convert params to URLSearchParams
|
|
@@ -429,6 +429,12 @@ interface ExternalValue {
|
|
|
429
429
|
* from which the data can be downloaded.
|
|
430
430
|
*/
|
|
431
431
|
type InlineOrExternalValue<T> = InlineValue<T> | ExternalValue;
|
|
432
|
+
/**
|
|
433
|
+
* Input arguments passed in to the execution of the agent on each exchange. The input arguments are
|
|
434
|
+
* expected to match the input-schema defined in the Agent definition. Currently, only inline values
|
|
435
|
+
* are supported and the total serialized JSON payload must be less than 4,000 characters.
|
|
436
|
+
*/
|
|
437
|
+
type AgentInput = InlineValue<JSONObject>;
|
|
432
438
|
/**
|
|
433
439
|
* Tool call input value type.
|
|
434
440
|
*/
|
|
@@ -800,6 +806,10 @@ interface RawConversationGetResponse {
|
|
|
800
806
|
* Whether the conversation's job is running locally.
|
|
801
807
|
*/
|
|
802
808
|
isLocalJobExecution?: boolean;
|
|
809
|
+
/**
|
|
810
|
+
* Optional agent input arguments for the conversation.
|
|
811
|
+
*/
|
|
812
|
+
agentInput?: AgentInput;
|
|
803
813
|
}
|
|
804
814
|
|
|
805
815
|
/**
|
|
@@ -3689,7 +3699,7 @@ interface ConversationServiceModel {
|
|
|
3689
3699
|
* @param options - Optional settings for the conversation
|
|
3690
3700
|
* @returns Promise resolving to {@link ConversationCreateResponse} with bound methods
|
|
3691
3701
|
*
|
|
3692
|
-
* @example
|
|
3702
|
+
* @example Basic usage
|
|
3693
3703
|
* ```typescript
|
|
3694
3704
|
* const conversation = await conversationalAgent.conversations.create(
|
|
3695
3705
|
* agentId,
|
|
@@ -3706,6 +3716,19 @@ interface ConversationServiceModel {
|
|
|
3706
3716
|
* // Delete the conversation
|
|
3707
3717
|
* await conversation.delete();
|
|
3708
3718
|
* ```
|
|
3719
|
+
*
|
|
3720
|
+
* @example With agent input arguments
|
|
3721
|
+
* ```typescript
|
|
3722
|
+
* const conversation = await conversationalAgent.conversations.create(
|
|
3723
|
+
* agentId,
|
|
3724
|
+
* folderId,
|
|
3725
|
+
* {
|
|
3726
|
+
* agentInput: {
|
|
3727
|
+
* inline: { userId: 'user-123', language: 'en' }
|
|
3728
|
+
* }
|
|
3729
|
+
* }
|
|
3730
|
+
* );
|
|
3731
|
+
* ```
|
|
3709
3732
|
*/
|
|
3710
3733
|
create(agentId: number, folderId: number, options?: ConversationCreateOptions): Promise<ConversationCreateResponse>;
|
|
3711
3734
|
/**
|
|
@@ -4117,6 +4140,8 @@ interface ConversationCreateOptions {
|
|
|
4117
4140
|
traceId?: string;
|
|
4118
4141
|
/** Optional configuration for job start behavior */
|
|
4119
4142
|
jobStartOverrides?: ConversationJobStartOverrides;
|
|
4143
|
+
/** Input arguments for the agent */
|
|
4144
|
+
agentInput?: AgentInput;
|
|
4120
4145
|
}
|
|
4121
4146
|
interface ConversationUpdateOptions {
|
|
4122
4147
|
/** Human-readable label for the conversation */
|
|
@@ -4127,6 +4152,8 @@ interface ConversationUpdateOptions {
|
|
|
4127
4152
|
jobKey?: string;
|
|
4128
4153
|
/** Whether the conversation's job is running locally */
|
|
4129
4154
|
isLocalJobExecution?: boolean;
|
|
4155
|
+
/** Input arguments for the agent */
|
|
4156
|
+
agentInput?: AgentInput;
|
|
4130
4157
|
}
|
|
4131
4158
|
type ConversationGetAllOptions = PaginationOptions & {
|
|
4132
4159
|
/** Sort order for conversations */
|
|
@@ -6690,4 +6717,4 @@ declare class UserService extends BaseService implements UserServiceModel {
|
|
|
6690
6717
|
}
|
|
6691
6718
|
|
|
6692
6719
|
export { AgentMap, AsyncInputStreamEventHelper, AsyncInputStreamEventHelperImpl, AsyncToolCallEventHelper, AsyncToolCallEventHelperImpl, CitationErrorType, ContentPartEventHelper, ContentPartEventHelperImpl, ContentPartHelper, ConversationEventHelperBase, ConversationEventHelperManager, ConversationEventHelperManagerImpl, ConversationEventInvalidOperationError, ConversationEventValidationError, ConversationMap, ConversationalAgentService as ConversationalAgent, ConversationalAgentService, EventErrorId, ExchangeEventHelper, ExchangeEventHelperImpl, ExchangeMap, ExchangeService, ExchangeService as Exchanges, FeedbackRating, InputStreamSpeechSensitivity, InterruptType, MessageEventHelper, MessageEventHelperImpl, MessageMap, MessageRole, MessageService, MessageService as Messages, SessionEventHelper, SessionEventHelperImpl, SortOrder, ToolCallEventHelper, ToolCallEventHelperImpl, UserService as User, UserService, UserSettingsMap, assertCitationSourceMedia, assertCitationSourceUrl, assertExternalValue, assertInlineValue, createAgentWithMethods, createConversationWithMethods, isCitationSourceMedia, isCitationSourceUrl, isExternalValue, isInlineValue, transformExchange, transformExchanges, transformMessage };
|
|
6693
|
-
export type { AgentAppearance, AgentConversationServiceModel, AgentCreateConversationOptions, AgentGetByIdResponse, AgentGetResponse, AgentMethods, AgentStartingPrompt, AnyErrorEndHandler, AnyErrorEndHandlerArgs, AnyErrorStartHandler, AnyErrorStartHandlerArgs, AsyncInputStream, AsyncInputStreamChunkEvent, AsyncInputStreamChunkHandler, AsyncInputStreamEndEvent, AsyncInputStreamEndHandler, AsyncInputStreamEvent, AsyncInputStreamStartEvent, AsyncToolCallStartHandler, AsyncToolCallStartHandlerAsync, AsyncToolCallStream, ChunkHandler, Citation, CitationEndEvent, CitationError, CitationEvent, CitationOptions, CitationSource, CitationSourceBase, CitationSourceMedia, CitationSourceUrl, CitationStartEvent, CompletedContentPart, CompletedMessage, CompletedToolCall, ContentPart, ContentPartChunkEvent, ContentPartCompletedHandler, ContentPartData, ContentPartEndEvent, ContentPartEndHandler, ContentPartEvent, ContentPartGetResponse, ContentPartInterrupted, ContentPartStartEvent, ContentPartStartEventOptions, ContentPartStartEventWithData, ContentPartStartHandler, ContentPartStartHandlerAsync, ContentPartStartMetaData, ContentPartStream, ConversationAttachmentCreateResponse, ConversationAttachmentUploadResponse, ConversationCreateOptions, ConversationCreateResponse, ConversationDeleteResponse, ConversationEvent, ConversationEventEmitter, ConversationEventErrorSource, ConversationEventHandler, ConversationEventHelperManagerConfig, ConversationEventHelperProperties, ConversationExchangeServiceModel, ConversationGetAllOptions, ConversationGetResponse, ConversationJobStartOverrides, ConversationMethods, ConversationServiceModel, ConversationSessionMethods, ConversationSessionOptions, ConversationUpdateOptions, ConversationUpdateResponse, ConversationalAgentOptions, ConversationalAgentServiceModel, CreateFeedbackOptions, DeletedHandler, ErrorEndEvent, ErrorEndEventOptions, ErrorEndHandler, ErrorEndHandlerArgs, ErrorEvent, ErrorStartEvent, ErrorStartEventOptions, ErrorStartHandler, ErrorStartHandlerArgs, Exchange, ExchangeEndEvent, ExchangeEndHandler, ExchangeEvent, ExchangeGetAllOptions, ExchangeGetByIdOptions, ExchangeGetResponse, ExchangeServiceModel, ExchangeStartEvent, ExchangeStartEventOptions, ExchangeStartHandler, ExchangeStartHandlerAsync, ExchangeStream, ExternalValue, FeatureFlags, FeedbackCreateResponse, FileUploadAccess, GenericInterruptStartEvent, InlineOrExternalValue, InlineValue, InputStreamStartEventOptions, InputStreamStartHandler, Interrupt, InterruptCompletedHandler, InterruptCompletedHandlerArgs, InterruptEndEvent, InterruptEndHandler, InterruptEndHandlerArgs, InterruptEvent, InterruptStartEvent, InterruptStartHandler, InterruptStartHandlerArgs, JSONArray, JSONObject, JSONPrimitive, JSONValue, LabelUpdatedEvent, LabelUpdatedHandler, MakeOptional, MakeRequired, Message, MessageCompletedHandler, MessageEndEvent, MessageEndHandler, MessageEvent, MessageGetResponse, MessageServiceModel, MessageStartEvent, MessageStartEventOptions, MessageStartHandler, MessageStartHandlerAsync, MessageStream, MetaData, MetaEvent, MetaEventHandler, RawAgentGetByIdResponse, RawAgentGetResponse, RawConversationGetResponse, SendMessageWithContentPartOptions, SessionCapabilities, SessionEndEvent, SessionEndHandler, SessionEndingEvent, SessionEndingHandler, SessionStartEvent, SessionStartEventOptions, SessionStartHandler, SessionStartHandlerAsync, SessionStartedEvent, SessionStartedHandler, SessionStream, Simplify, ToolCall, ToolCallCompletedHandler, ToolCallConfirmationEndValue, ToolCallConfirmationInterruptStartEvent, ToolCallConfirmationValue, ToolCallEndEvent, ToolCallEndHandler, ToolCallEvent, ToolCallInputValue, ToolCallOutputValue, ToolCallResult, ToolCallStartEvent, ToolCallStartEventWithId, ToolCallStartHandler, ToolCallStartHandlerAsync, ToolCallStream, UnhandledErrorEndHandler, UnhandledErrorEndHandlerArgs, UnhandledErrorStartHandler, UnhandledErrorStartHandlerArgs, UserServiceModel, UserSettingsGetResponse, UserSettingsUpdateOptions, UserSettingsUpdateResponse };
|
|
6720
|
+
export type { AgentAppearance, AgentConversationServiceModel, AgentCreateConversationOptions, AgentGetByIdResponse, AgentGetResponse, AgentInput, AgentMethods, AgentStartingPrompt, AnyErrorEndHandler, AnyErrorEndHandlerArgs, AnyErrorStartHandler, AnyErrorStartHandlerArgs, AsyncInputStream, AsyncInputStreamChunkEvent, AsyncInputStreamChunkHandler, AsyncInputStreamEndEvent, AsyncInputStreamEndHandler, AsyncInputStreamEvent, AsyncInputStreamStartEvent, AsyncToolCallStartHandler, AsyncToolCallStartHandlerAsync, AsyncToolCallStream, ChunkHandler, Citation, CitationEndEvent, CitationError, CitationEvent, CitationOptions, CitationSource, CitationSourceBase, CitationSourceMedia, CitationSourceUrl, CitationStartEvent, CompletedContentPart, CompletedMessage, CompletedToolCall, ContentPart, ContentPartChunkEvent, ContentPartCompletedHandler, ContentPartData, ContentPartEndEvent, ContentPartEndHandler, ContentPartEvent, ContentPartGetResponse, ContentPartInterrupted, ContentPartStartEvent, ContentPartStartEventOptions, ContentPartStartEventWithData, ContentPartStartHandler, ContentPartStartHandlerAsync, ContentPartStartMetaData, ContentPartStream, ConversationAttachmentCreateResponse, ConversationAttachmentUploadResponse, ConversationCreateOptions, ConversationCreateResponse, ConversationDeleteResponse, ConversationEvent, ConversationEventEmitter, ConversationEventErrorSource, ConversationEventHandler, ConversationEventHelperManagerConfig, ConversationEventHelperProperties, ConversationExchangeServiceModel, ConversationGetAllOptions, ConversationGetResponse, ConversationJobStartOverrides, ConversationMethods, ConversationServiceModel, ConversationSessionMethods, ConversationSessionOptions, ConversationUpdateOptions, ConversationUpdateResponse, ConversationalAgentOptions, ConversationalAgentServiceModel, CreateFeedbackOptions, DeletedHandler, ErrorEndEvent, ErrorEndEventOptions, ErrorEndHandler, ErrorEndHandlerArgs, ErrorEvent, ErrorStartEvent, ErrorStartEventOptions, ErrorStartHandler, ErrorStartHandlerArgs, Exchange, ExchangeEndEvent, ExchangeEndHandler, ExchangeEvent, ExchangeGetAllOptions, ExchangeGetByIdOptions, ExchangeGetResponse, ExchangeServiceModel, ExchangeStartEvent, ExchangeStartEventOptions, ExchangeStartHandler, ExchangeStartHandlerAsync, ExchangeStream, ExternalValue, FeatureFlags, FeedbackCreateResponse, FileUploadAccess, GenericInterruptStartEvent, InlineOrExternalValue, InlineValue, InputStreamStartEventOptions, InputStreamStartHandler, Interrupt, InterruptCompletedHandler, InterruptCompletedHandlerArgs, InterruptEndEvent, InterruptEndHandler, InterruptEndHandlerArgs, InterruptEvent, InterruptStartEvent, InterruptStartHandler, InterruptStartHandlerArgs, JSONArray, JSONObject, JSONPrimitive, JSONValue, LabelUpdatedEvent, LabelUpdatedHandler, MakeOptional, MakeRequired, Message, MessageCompletedHandler, MessageEndEvent, MessageEndHandler, MessageEvent, MessageGetResponse, MessageServiceModel, MessageStartEvent, MessageStartEventOptions, MessageStartHandler, MessageStartHandlerAsync, MessageStream, MetaData, MetaEvent, MetaEventHandler, RawAgentGetByIdResponse, RawAgentGetResponse, RawConversationGetResponse, SendMessageWithContentPartOptions, SessionCapabilities, SessionEndEvent, SessionEndHandler, SessionEndingEvent, SessionEndingHandler, SessionStartEvent, SessionStartEventOptions, SessionStartHandler, SessionStartHandlerAsync, SessionStartedEvent, SessionStartedHandler, SessionStream, Simplify, ToolCall, ToolCallCompletedHandler, ToolCallConfirmationEndValue, ToolCallConfirmationInterruptStartEvent, ToolCallConfirmationValue, ToolCallEndEvent, ToolCallEndHandler, ToolCallEvent, ToolCallInputValue, ToolCallOutputValue, ToolCallResult, ToolCallStartEvent, ToolCallStartEventWithId, ToolCallStartHandler, ToolCallStartHandlerAsync, ToolCallStream, UnhandledErrorEndHandler, UnhandledErrorEndHandlerArgs, UnhandledErrorStartHandler, UnhandledErrorStartHandlerArgs, UserServiceModel, UserSettingsGetResponse, UserSettingsUpdateOptions, UserSettingsUpdateResponse };
|
|
@@ -49,7 +49,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
49
49
|
// Connection string placeholder that will be replaced during build
|
|
50
50
|
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";
|
|
51
51
|
// SDK Version placeholder
|
|
52
|
-
const SDK_VERSION = "1.3.
|
|
52
|
+
const SDK_VERSION = "1.3.5";
|
|
53
53
|
const VERSION = "Version";
|
|
54
54
|
const SERVICE = "Service";
|
|
55
55
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
|
@@ -779,6 +779,8 @@ class ErrorFactory {
|
|
|
779
779
|
}
|
|
780
780
|
|
|
781
781
|
const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
782
|
+
const TRACEPARENT = 'traceparent';
|
|
783
|
+
const UIPATH_TRACEPARENT_ID = 'x-uipath-traceparent-id';
|
|
782
784
|
/**
|
|
783
785
|
* Content type constants for HTTP requests/responses
|
|
784
786
|
*/
|
|
@@ -845,8 +847,13 @@ class ApiClient {
|
|
|
845
847
|
if (isFormData) {
|
|
846
848
|
delete defaultHeaders['Content-Type'];
|
|
847
849
|
}
|
|
850
|
+
const traceId = crypto.randomUUID().replace(/-/g, '');
|
|
851
|
+
const spanId = crypto.randomUUID().replace(/-/g, '').slice(0, 16);
|
|
852
|
+
const traceparentValue = `00-${traceId}-${spanId}-01`;
|
|
848
853
|
const headers = {
|
|
849
854
|
...defaultHeaders,
|
|
855
|
+
[TRACEPARENT]: traceparentValue,
|
|
856
|
+
[UIPATH_TRACEPARENT_ID]: traceparentValue,
|
|
850
857
|
...options.headers
|
|
851
858
|
};
|
|
852
859
|
// Convert params to URLSearchParams
|
package/dist/core/index.cjs
CHANGED
|
@@ -5295,7 +5295,7 @@ function normalizeBaseUrl(url) {
|
|
|
5295
5295
|
// Connection string placeholder that will be replaced during build
|
|
5296
5296
|
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";
|
|
5297
5297
|
// SDK Version placeholder
|
|
5298
|
-
const SDK_VERSION = "1.3.
|
|
5298
|
+
const SDK_VERSION = "1.3.5";
|
|
5299
5299
|
const VERSION = "Version";
|
|
5300
5300
|
const SERVICE = "Service";
|
|
5301
5301
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/core/index.d.ts
CHANGED
|
@@ -519,7 +519,7 @@ declare const telemetryClient: TelemetryClient;
|
|
|
519
519
|
* SDK Telemetry constants
|
|
520
520
|
*/
|
|
521
521
|
declare 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";
|
|
522
|
-
declare const SDK_VERSION = "1.3.
|
|
522
|
+
declare const SDK_VERSION = "1.3.5";
|
|
523
523
|
declare const VERSION = "Version";
|
|
524
524
|
declare const SERVICE = "Service";
|
|
525
525
|
declare const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|
package/dist/core/index.mjs
CHANGED
|
@@ -5293,7 +5293,7 @@ function normalizeBaseUrl(url) {
|
|
|
5293
5293
|
// Connection string placeholder that will be replaced during build
|
|
5294
5294
|
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";
|
|
5295
5295
|
// SDK Version placeholder
|
|
5296
|
-
const SDK_VERSION = "1.3.
|
|
5296
|
+
const SDK_VERSION = "1.3.5";
|
|
5297
5297
|
const VERSION = "Version";
|
|
5298
5298
|
const SERVICE = "Service";
|
|
5299
5299
|
const CLOUD_ORGANIZATION_NAME = "CloudOrganizationName";
|