@uipath/uipath-typescript 1.3.10 → 1.4.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.
- package/dist/agent-memory/index.cjs +1765 -0
- package/dist/agent-memory/index.d.ts +588 -0
- package/dist/agent-memory/index.mjs +1763 -0
- package/dist/agents/index.cjs +1726 -0
- package/dist/agents/index.d.ts +502 -0
- package/dist/agents/index.mjs +1724 -0
- package/dist/assets/index.cjs +155 -30
- package/dist/assets/index.d.ts +84 -5
- package/dist/assets/index.mjs +155 -30
- package/dist/attachments/index.cjs +37 -6
- package/dist/attachments/index.d.ts +1 -0
- package/dist/attachments/index.mjs +37 -6
- package/dist/buckets/index.cjs +37 -6
- package/dist/buckets/index.d.ts +1 -0
- package/dist/buckets/index.mjs +37 -6
- package/dist/cases/index.cjs +192 -10
- package/dist/cases/index.d.ts +208 -7
- package/dist/cases/index.mjs +192 -11
- package/dist/conversational-agent/index.cjs +124 -57
- package/dist/conversational-agent/index.d.ts +190 -122
- package/dist/conversational-agent/index.mjs +124 -57
- package/dist/core/index.cjs +413 -105
- package/dist/core/index.d.ts +15 -0
- package/dist/core/index.mjs +413 -105
- package/dist/entities/index.cjs +135 -70
- package/dist/entities/index.d.ts +146 -45
- package/dist/entities/index.mjs +135 -70
- package/dist/feedback/index.cjs +37 -6
- package/dist/feedback/index.d.ts +1 -0
- package/dist/feedback/index.mjs +37 -6
- package/dist/governance/index.cjs +1782 -0
- package/dist/governance/index.d.ts +598 -0
- package/dist/governance/index.mjs +1780 -0
- package/dist/index.cjs +1050 -291
- package/dist/index.d.ts +1313 -134
- package/dist/index.mjs +1050 -292
- package/dist/index.umd.js +4546 -3770
- package/dist/jobs/index.cjs +37 -6
- package/dist/jobs/index.d.ts +1 -0
- package/dist/jobs/index.mjs +37 -6
- package/dist/maestro-processes/index.cjs +224 -18
- package/dist/maestro-processes/index.d.ts +221 -9
- package/dist/maestro-processes/index.mjs +224 -18
- package/dist/processes/index.cjs +37 -6
- package/dist/processes/index.d.ts +1 -0
- package/dist/processes/index.mjs +37 -6
- package/dist/queues/index.cjs +37 -6
- package/dist/queues/index.d.ts +1 -0
- package/dist/queues/index.mjs +37 -6
- package/dist/tasks/index.cjs +37 -6
- package/dist/tasks/index.d.ts +1 -0
- package/dist/tasks/index.mjs +37 -6
- package/dist/traces/index.cjs +1933 -0
- package/dist/traces/index.d.ts +566 -0
- package/dist/traces/index.mjs +1931 -0
- package/package.json +42 -2
package/dist/feedback/index.mjs
CHANGED
|
@@ -718,6 +718,32 @@ function filterUndefined(obj) {
|
|
|
718
718
|
*/
|
|
719
719
|
const isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
720
720
|
isBrowser && window.self != window.top && window.location.href.includes('source=ActionCenter');
|
|
721
|
+
const _params = isBrowser ? new URLSearchParams(window.location.search) : null;
|
|
722
|
+
/**
|
|
723
|
+
* True when the coded app has been loaded inside a host frame that explicitly
|
|
724
|
+
* opted into token delegation by adding `?host=embed` to the iframe src URL.
|
|
725
|
+
*/
|
|
726
|
+
const isHostEmbedded = isBrowser && window.self !== window.top && _params?.get('host') === 'embed';
|
|
727
|
+
/**
|
|
728
|
+
* The validated parent origin, read from the `?basedomain=` query param set
|
|
729
|
+
* by the embedding host in the iframe src URL.
|
|
730
|
+
* Mirrors the same mechanism used by ActionCenterTokenManager.
|
|
731
|
+
* Non-null only when `?host=embed` is present and `?basedomain=` is a valid URL.
|
|
732
|
+
*/
|
|
733
|
+
(() => {
|
|
734
|
+
if (!isHostEmbedded)
|
|
735
|
+
return null;
|
|
736
|
+
const basedomain = _params?.get('basedomain');
|
|
737
|
+
if (!basedomain)
|
|
738
|
+
return null;
|
|
739
|
+
try {
|
|
740
|
+
return new URL(basedomain).origin;
|
|
741
|
+
}
|
|
742
|
+
catch {
|
|
743
|
+
console.warn('embeddingOrigin: basedomain query param is not a valid URL', basedomain);
|
|
744
|
+
return null;
|
|
745
|
+
}
|
|
746
|
+
})();
|
|
721
747
|
|
|
722
748
|
/**
|
|
723
749
|
* Base64 encoding/decoding
|
|
@@ -1207,8 +1233,9 @@ class PaginationHelpers {
|
|
|
1207
1233
|
});
|
|
1208
1234
|
}
|
|
1209
1235
|
// Extract and transform items from response
|
|
1210
|
-
// Handle both plain array responses and envelope responses ({ value: [...], totalRecordCount: N })
|
|
1211
|
-
|
|
1236
|
+
// Handle both plain array responses and envelope responses ({ value: [...], totalRecordCount: N }).
|
|
1237
|
+
// itemsField may be a dotted path (e.g. 'data.agents') for nested envelopes.
|
|
1238
|
+
const rawItems = Array.isArray(response.data) ? response.data : resolveNestedField(response.data, itemsField);
|
|
1212
1239
|
const rawTotalCount = Array.isArray(response.data) ? undefined : resolveNestedField(response.data, totalCountField);
|
|
1213
1240
|
const totalCount = typeof rawTotalCount === 'number' ? rawTotalCount : undefined;
|
|
1214
1241
|
// Parse items - automatically handle JSON string responses
|
|
@@ -1254,7 +1281,7 @@ class PaginationHelpers {
|
|
|
1254
1281
|
getEndpoint: config.getEndpoint,
|
|
1255
1282
|
folderId,
|
|
1256
1283
|
headers: config.headers,
|
|
1257
|
-
paginationParams: cursor ? { cursor, pageSize } : jumpToPage ? { jumpToPage, pageSize } : { pageSize },
|
|
1284
|
+
paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
|
|
1258
1285
|
additionalParams: prefixedOptions,
|
|
1259
1286
|
transformFn: config.transformFn,
|
|
1260
1287
|
method: config.method,
|
|
@@ -1512,6 +1539,8 @@ class BaseService {
|
|
|
1512
1539
|
// When true (default), converts pageNumber to a skip/offset value (e.g., page 3 with pageSize 10 → skip 20).
|
|
1513
1540
|
// When false, passes pageNumber directly as the offset param — used by APIs that accept a page number instead of a record offset.
|
|
1514
1541
|
const convertToSkip = paginationParams?.convertToSkip ?? true;
|
|
1542
|
+
// When true, sends pageNumber - 1 (for 0-based APIs). Default false (1-based).
|
|
1543
|
+
const zeroBased = paginationParams?.zeroBased ?? false;
|
|
1515
1544
|
requestParams[pageSizeParam] = limitedPageSize;
|
|
1516
1545
|
if (convertToSkip) {
|
|
1517
1546
|
if (params.pageNumber && params.pageNumber > 1) {
|
|
@@ -1519,7 +1548,8 @@ class BaseService {
|
|
|
1519
1548
|
}
|
|
1520
1549
|
}
|
|
1521
1550
|
else {
|
|
1522
|
-
|
|
1551
|
+
const sdkPageNumber = params.pageNumber || 1;
|
|
1552
|
+
requestParams[offsetParam] = zeroBased ? sdkPageNumber - 1 : sdkPageNumber;
|
|
1523
1553
|
}
|
|
1524
1554
|
{
|
|
1525
1555
|
requestParams[countParam] = true;
|
|
@@ -1548,8 +1578,9 @@ class BaseService {
|
|
|
1548
1578
|
const totalCountField = fields.totalCountField || 'totalRecordCount';
|
|
1549
1579
|
const continuationTokenField = fields.continuationTokenField || 'continuationToken';
|
|
1550
1580
|
// Extract items and metadata
|
|
1551
|
-
// Handle both plain array responses and envelope responses ({ value: [...], totalRecordCount: N })
|
|
1552
|
-
|
|
1581
|
+
// Handle both plain array responses and envelope responses ({ value: [...], totalRecordCount: N }).
|
|
1582
|
+
// itemsField may be a dotted path (e.g. 'data.agents') for nested envelopes.
|
|
1583
|
+
const items = Array.isArray(response.data) ? response.data : (resolveNestedField(response.data, itemsField) || []);
|
|
1553
1584
|
const rawTotalCount = Array.isArray(response.data) ? undefined : resolveNestedField(response.data, totalCountField);
|
|
1554
1585
|
const totalCount = typeof rawTotalCount === 'number' ? rawTotalCount : undefined;
|
|
1555
1586
|
const continuationToken = response.data[continuationTokenField];
|