@uipath/uipath-typescript 1.4.0 → 1.4.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.
Files changed (48) hide show
  1. package/dist/agent-memory/index.cjs +16 -9
  2. package/dist/agent-memory/index.mjs +16 -9
  3. package/dist/agents/index.cjs +278 -9
  4. package/dist/agents/index.d.ts +465 -6
  5. package/dist/agents/index.mjs +279 -10
  6. package/dist/assets/index.cjs +16 -9
  7. package/dist/assets/index.mjs +16 -9
  8. package/dist/attachments/index.cjs +16 -9
  9. package/dist/attachments/index.mjs +16 -9
  10. package/dist/buckets/index.cjs +114 -124
  11. package/dist/buckets/index.d.ts +197 -84
  12. package/dist/buckets/index.mjs +114 -124
  13. package/dist/cases/index.cjs +79 -13
  14. package/dist/cases/index.d.ts +30 -3
  15. package/dist/cases/index.mjs +79 -13
  16. package/dist/conversational-agent/index.cjs +16 -9
  17. package/dist/conversational-agent/index.mjs +16 -9
  18. package/dist/core/index.cjs +35 -6
  19. package/dist/core/index.mjs +35 -6
  20. package/dist/entities/index.cjs +253 -69
  21. package/dist/entities/index.d.ts +343 -116
  22. package/dist/entities/index.mjs +253 -69
  23. package/dist/feedback/index.cjs +16 -9
  24. package/dist/feedback/index.mjs +16 -9
  25. package/dist/governance/index.cjs +16 -9
  26. package/dist/governance/index.mjs +16 -9
  27. package/dist/index.cjs +529 -193
  28. package/dist/index.d.ts +2141 -750
  29. package/dist/index.mjs +529 -194
  30. package/dist/index.umd.js +529 -193
  31. package/dist/jobs/index.cjs +16 -9
  32. package/dist/jobs/index.mjs +16 -9
  33. package/dist/maestro-processes/index.cjs +16 -9
  34. package/dist/maestro-processes/index.mjs +16 -9
  35. package/dist/orchestrator-du-module/index.cjs +1788 -0
  36. package/dist/orchestrator-du-module/index.d.ts +757 -0
  37. package/dist/orchestrator-du-module/index.mjs +1785 -0
  38. package/dist/processes/index.cjs +16 -9
  39. package/dist/processes/index.mjs +16 -9
  40. package/dist/queues/index.cjs +16 -9
  41. package/dist/queues/index.mjs +16 -9
  42. package/dist/tasks/index.cjs +79 -13
  43. package/dist/tasks/index.d.ts +109 -4
  44. package/dist/tasks/index.mjs +80 -14
  45. package/dist/traces/index.cjs +303 -9
  46. package/dist/traces/index.d.ts +482 -2
  47. package/dist/traces/index.mjs +302 -10
  48. package/package.json +11 -1
@@ -1186,12 +1186,18 @@ class PaginationHelpers {
1186
1186
  * @returns Promise resolving to a paginated result
1187
1187
  */
1188
1188
  static async getAllPaginated(params) {
1189
- const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1189
+ const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, queryParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1190
1190
  const endpoint = getEndpoint(folderId);
1191
1191
  const headers = providedHeaders ?? (folderId ? createHeaders({ [FOLDER_ID]: folderId }) : {});
1192
+ // On POST, the caller's options go in the body; queryParams stays in the URL.
1193
+ // On GET, everything is URL — queryParams merges with additionalParams.
1194
+ const isPost = method === HTTP_METHODS.POST;
1195
+ const requestSpec = isPost
1196
+ ? { body: additionalParams, params: queryParams }
1197
+ : { params: { ...additionalParams, ...queryParams } };
1192
1198
  const paginatedResponse = await serviceAccess.requestWithPagination(method, endpoint, paginationParams, {
1193
1199
  headers,
1194
- params: additionalParams,
1200
+ ...requestSpec,
1195
1201
  pagination: {
1196
1202
  paginationType: options.paginationType || PaginationType.OFFSET,
1197
1203
  itemsField: options.itemsField || DEFAULT_ITEMS_FIELD,
@@ -1216,7 +1222,7 @@ class PaginationHelpers {
1216
1222
  * @returns Promise resolving to an object with data and totalCount
1217
1223
  */
1218
1224
  static async getAllNonPaginated(params) {
1219
- const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1225
+ const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, queryParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1220
1226
  // Set default field names
1221
1227
  const itemsField = options.itemsField || DEFAULT_ITEMS_FIELD;
1222
1228
  const totalCountField = options.totalCountField || DEFAULT_TOTAL_COUNT_FIELD;
@@ -1226,11 +1232,11 @@ class PaginationHelpers {
1226
1232
  // Make the API call based on method
1227
1233
  let response;
1228
1234
  if (method === HTTP_METHODS.POST) {
1229
- response = await serviceAccess.post(endpoint, additionalParams, { headers });
1235
+ response = await serviceAccess.post(endpoint, additionalParams, { headers, params: queryParams });
1230
1236
  }
1231
1237
  else {
1232
1238
  response = await serviceAccess.get(endpoint, {
1233
- params: additionalParams,
1239
+ params: { ...additionalParams, ...queryParams },
1234
1240
  headers
1235
1241
  });
1236
1242
  }
@@ -1285,6 +1291,7 @@ class PaginationHelpers {
1285
1291
  headers: config.headers,
1286
1292
  paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
1287
1293
  additionalParams: prefixedOptions,
1294
+ queryParams: config.queryParams,
1288
1295
  transformFn: config.transformFn,
1289
1296
  method: config.method,
1290
1297
  options: {
@@ -1302,6 +1309,7 @@ class PaginationHelpers {
1302
1309
  folderId,
1303
1310
  headers: config.headers,
1304
1311
  additionalParams: prefixedOptions,
1312
+ queryParams: config.queryParams,
1305
1313
  transformFn: config.transformFn,
1306
1314
  method: config.method,
1307
1315
  options: {
@@ -1493,18 +1501,17 @@ class BaseService {
1493
1501
  const params = this.validateAndPreparePaginationParams(paginationType, paginationOptions);
1494
1502
  // Prepare request parameters based on pagination type
1495
1503
  const requestParams = this.preparePaginationRequestParams(paginationType, params, options.pagination);
1496
- // For POST requests, merge pagination params into body and set params to undefined; for GET, use query params
1504
+ // Route pagination state to wherever the API expects it (body for POST, URL for GET).
1505
+ // Caller-supplied options.body / options.params are respected as-is — the api-client
1506
+ // already handles params (URL) and body (request body) independently for every method.
1497
1507
  if (method.toUpperCase() === 'POST') {
1498
1508
  const existingBody = (options.body && typeof options.body === 'object') ? options.body : {};
1499
1509
  options.body = {
1500
1510
  ...existingBody,
1501
- ...options.params,
1502
1511
  ...requestParams
1503
1512
  };
1504
- options.params = undefined;
1505
1513
  }
1506
1514
  else {
1507
- // Merge pagination parameters with existing parameters
1508
1515
  options.params = {
1509
1516
  ...options.params,
1510
1517
  ...requestParams
@@ -1184,12 +1184,18 @@ class PaginationHelpers {
1184
1184
  * @returns Promise resolving to a paginated result
1185
1185
  */
1186
1186
  static async getAllPaginated(params) {
1187
- const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1187
+ const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, queryParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1188
1188
  const endpoint = getEndpoint(folderId);
1189
1189
  const headers = providedHeaders ?? (folderId ? createHeaders({ [FOLDER_ID]: folderId }) : {});
1190
+ // On POST, the caller's options go in the body; queryParams stays in the URL.
1191
+ // On GET, everything is URL — queryParams merges with additionalParams.
1192
+ const isPost = method === HTTP_METHODS.POST;
1193
+ const requestSpec = isPost
1194
+ ? { body: additionalParams, params: queryParams }
1195
+ : { params: { ...additionalParams, ...queryParams } };
1190
1196
  const paginatedResponse = await serviceAccess.requestWithPagination(method, endpoint, paginationParams, {
1191
1197
  headers,
1192
- params: additionalParams,
1198
+ ...requestSpec,
1193
1199
  pagination: {
1194
1200
  paginationType: options.paginationType || PaginationType.OFFSET,
1195
1201
  itemsField: options.itemsField || DEFAULT_ITEMS_FIELD,
@@ -1214,7 +1220,7 @@ class PaginationHelpers {
1214
1220
  * @returns Promise resolving to an object with data and totalCount
1215
1221
  */
1216
1222
  static async getAllNonPaginated(params) {
1217
- const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1223
+ const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, queryParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1218
1224
  // Set default field names
1219
1225
  const itemsField = options.itemsField || DEFAULT_ITEMS_FIELD;
1220
1226
  const totalCountField = options.totalCountField || DEFAULT_TOTAL_COUNT_FIELD;
@@ -1224,11 +1230,11 @@ class PaginationHelpers {
1224
1230
  // Make the API call based on method
1225
1231
  let response;
1226
1232
  if (method === HTTP_METHODS.POST) {
1227
- response = await serviceAccess.post(endpoint, additionalParams, { headers });
1233
+ response = await serviceAccess.post(endpoint, additionalParams, { headers, params: queryParams });
1228
1234
  }
1229
1235
  else {
1230
1236
  response = await serviceAccess.get(endpoint, {
1231
- params: additionalParams,
1237
+ params: { ...additionalParams, ...queryParams },
1232
1238
  headers
1233
1239
  });
1234
1240
  }
@@ -1283,6 +1289,7 @@ class PaginationHelpers {
1283
1289
  headers: config.headers,
1284
1290
  paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
1285
1291
  additionalParams: prefixedOptions,
1292
+ queryParams: config.queryParams,
1286
1293
  transformFn: config.transformFn,
1287
1294
  method: config.method,
1288
1295
  options: {
@@ -1300,6 +1307,7 @@ class PaginationHelpers {
1300
1307
  folderId,
1301
1308
  headers: config.headers,
1302
1309
  additionalParams: prefixedOptions,
1310
+ queryParams: config.queryParams,
1303
1311
  transformFn: config.transformFn,
1304
1312
  method: config.method,
1305
1313
  options: {
@@ -1491,18 +1499,17 @@ class BaseService {
1491
1499
  const params = this.validateAndPreparePaginationParams(paginationType, paginationOptions);
1492
1500
  // Prepare request parameters based on pagination type
1493
1501
  const requestParams = this.preparePaginationRequestParams(paginationType, params, options.pagination);
1494
- // For POST requests, merge pagination params into body and set params to undefined; for GET, use query params
1502
+ // Route pagination state to wherever the API expects it (body for POST, URL for GET).
1503
+ // Caller-supplied options.body / options.params are respected as-is — the api-client
1504
+ // already handles params (URL) and body (request body) independently for every method.
1495
1505
  if (method.toUpperCase() === 'POST') {
1496
1506
  const existingBody = (options.body && typeof options.body === 'object') ? options.body : {};
1497
1507
  options.body = {
1498
1508
  ...existingBody,
1499
- ...options.params,
1500
1509
  ...requestParams
1501
1510
  };
1502
- options.params = undefined;
1503
1511
  }
1504
1512
  else {
1505
- // Merge pagination parameters with existing parameters
1506
1513
  options.params = {
1507
1514
  ...options.params,
1508
1515
  ...requestParams
@@ -1141,12 +1141,18 @@ class PaginationHelpers {
1141
1141
  * @returns Promise resolving to a paginated result
1142
1142
  */
1143
1143
  static async getAllPaginated(params) {
1144
- const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1144
+ const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, queryParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1145
1145
  const endpoint = getEndpoint(folderId);
1146
1146
  const headers = providedHeaders ?? (folderId ? createHeaders({ [FOLDER_ID]: folderId }) : {});
1147
+ // On POST, the caller's options go in the body; queryParams stays in the URL.
1148
+ // On GET, everything is URL — queryParams merges with additionalParams.
1149
+ const isPost = method === HTTP_METHODS.POST;
1150
+ const requestSpec = isPost
1151
+ ? { body: additionalParams, params: queryParams }
1152
+ : { params: { ...additionalParams, ...queryParams } };
1147
1153
  const paginatedResponse = await serviceAccess.requestWithPagination(method, endpoint, paginationParams, {
1148
1154
  headers,
1149
- params: additionalParams,
1155
+ ...requestSpec,
1150
1156
  pagination: {
1151
1157
  paginationType: options.paginationType || PaginationType.OFFSET,
1152
1158
  itemsField: options.itemsField || DEFAULT_ITEMS_FIELD,
@@ -1171,7 +1177,7 @@ class PaginationHelpers {
1171
1177
  * @returns Promise resolving to an object with data and totalCount
1172
1178
  */
1173
1179
  static async getAllNonPaginated(params) {
1174
- const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1180
+ const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, queryParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1175
1181
  // Set default field names
1176
1182
  const itemsField = options.itemsField || DEFAULT_ITEMS_FIELD;
1177
1183
  const totalCountField = options.totalCountField || DEFAULT_TOTAL_COUNT_FIELD;
@@ -1181,11 +1187,11 @@ class PaginationHelpers {
1181
1187
  // Make the API call based on method
1182
1188
  let response;
1183
1189
  if (method === HTTP_METHODS.POST) {
1184
- response = await serviceAccess.post(endpoint, additionalParams, { headers });
1190
+ response = await serviceAccess.post(endpoint, additionalParams, { headers, params: queryParams });
1185
1191
  }
1186
1192
  else {
1187
1193
  response = await serviceAccess.get(endpoint, {
1188
- params: additionalParams,
1194
+ params: { ...additionalParams, ...queryParams },
1189
1195
  headers
1190
1196
  });
1191
1197
  }
@@ -1240,6 +1246,7 @@ class PaginationHelpers {
1240
1246
  headers: config.headers,
1241
1247
  paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
1242
1248
  additionalParams: prefixedOptions,
1249
+ queryParams: config.queryParams,
1243
1250
  transformFn: config.transformFn,
1244
1251
  method: config.method,
1245
1252
  options: {
@@ -1257,6 +1264,7 @@ class PaginationHelpers {
1257
1264
  folderId,
1258
1265
  headers: config.headers,
1259
1266
  additionalParams: prefixedOptions,
1267
+ queryParams: config.queryParams,
1260
1268
  transformFn: config.transformFn,
1261
1269
  method: config.method,
1262
1270
  options: {
@@ -1448,18 +1456,17 @@ class BaseService {
1448
1456
  const params = this.validateAndPreparePaginationParams(paginationType, paginationOptions);
1449
1457
  // Prepare request parameters based on pagination type
1450
1458
  const requestParams = this.preparePaginationRequestParams(paginationType, params, options.pagination);
1451
- // For POST requests, merge pagination params into body and set params to undefined; for GET, use query params
1459
+ // Route pagination state to wherever the API expects it (body for POST, URL for GET).
1460
+ // Caller-supplied options.body / options.params are respected as-is — the api-client
1461
+ // already handles params (URL) and body (request body) independently for every method.
1452
1462
  if (method.toUpperCase() === 'POST') {
1453
1463
  const existingBody = (options.body && typeof options.body === 'object') ? options.body : {};
1454
1464
  options.body = {
1455
1465
  ...existingBody,
1456
- ...options.params,
1457
1466
  ...requestParams
1458
1467
  };
1459
- options.params = undefined;
1460
1468
  }
1461
1469
  else {
1462
- // Merge pagination parameters with existing parameters
1463
1470
  options.params = {
1464
1471
  ...options.params,
1465
1472
  ...requestParams
@@ -1139,12 +1139,18 @@ class PaginationHelpers {
1139
1139
  * @returns Promise resolving to a paginated result
1140
1140
  */
1141
1141
  static async getAllPaginated(params) {
1142
- const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1142
+ const { serviceAccess, getEndpoint, folderId, headers: providedHeaders, paginationParams, additionalParams, queryParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1143
1143
  const endpoint = getEndpoint(folderId);
1144
1144
  const headers = providedHeaders ?? (folderId ? createHeaders({ [FOLDER_ID]: folderId }) : {});
1145
+ // On POST, the caller's options go in the body; queryParams stays in the URL.
1146
+ // On GET, everything is URL — queryParams merges with additionalParams.
1147
+ const isPost = method === HTTP_METHODS.POST;
1148
+ const requestSpec = isPost
1149
+ ? { body: additionalParams, params: queryParams }
1150
+ : { params: { ...additionalParams, ...queryParams } };
1145
1151
  const paginatedResponse = await serviceAccess.requestWithPagination(method, endpoint, paginationParams, {
1146
1152
  headers,
1147
- params: additionalParams,
1153
+ ...requestSpec,
1148
1154
  pagination: {
1149
1155
  paginationType: options.paginationType || PaginationType.OFFSET,
1150
1156
  itemsField: options.itemsField || DEFAULT_ITEMS_FIELD,
@@ -1169,7 +1175,7 @@ class PaginationHelpers {
1169
1175
  * @returns Promise resolving to an object with data and totalCount
1170
1176
  */
1171
1177
  static async getAllNonPaginated(params) {
1172
- const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1178
+ const { serviceAccess, getAllEndpoint, getByFolderEndpoint, folderId, headers: providedHeaders, additionalParams, queryParams, transformFn, method = HTTP_METHODS.GET, options = {} } = params;
1173
1179
  // Set default field names
1174
1180
  const itemsField = options.itemsField || DEFAULT_ITEMS_FIELD;
1175
1181
  const totalCountField = options.totalCountField || DEFAULT_TOTAL_COUNT_FIELD;
@@ -1179,11 +1185,11 @@ class PaginationHelpers {
1179
1185
  // Make the API call based on method
1180
1186
  let response;
1181
1187
  if (method === HTTP_METHODS.POST) {
1182
- response = await serviceAccess.post(endpoint, additionalParams, { headers });
1188
+ response = await serviceAccess.post(endpoint, additionalParams, { headers, params: queryParams });
1183
1189
  }
1184
1190
  else {
1185
1191
  response = await serviceAccess.get(endpoint, {
1186
- params: additionalParams,
1192
+ params: { ...additionalParams, ...queryParams },
1187
1193
  headers
1188
1194
  });
1189
1195
  }
@@ -1238,6 +1244,7 @@ class PaginationHelpers {
1238
1244
  headers: config.headers,
1239
1245
  paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
1240
1246
  additionalParams: prefixedOptions,
1247
+ queryParams: config.queryParams,
1241
1248
  transformFn: config.transformFn,
1242
1249
  method: config.method,
1243
1250
  options: {
@@ -1255,6 +1262,7 @@ class PaginationHelpers {
1255
1262
  folderId,
1256
1263
  headers: config.headers,
1257
1264
  additionalParams: prefixedOptions,
1265
+ queryParams: config.queryParams,
1258
1266
  transformFn: config.transformFn,
1259
1267
  method: config.method,
1260
1268
  options: {
@@ -1446,18 +1454,17 @@ class BaseService {
1446
1454
  const params = this.validateAndPreparePaginationParams(paginationType, paginationOptions);
1447
1455
  // Prepare request parameters based on pagination type
1448
1456
  const requestParams = this.preparePaginationRequestParams(paginationType, params, options.pagination);
1449
- // For POST requests, merge pagination params into body and set params to undefined; for GET, use query params
1457
+ // Route pagination state to wherever the API expects it (body for POST, URL for GET).
1458
+ // Caller-supplied options.body / options.params are respected as-is — the api-client
1459
+ // already handles params (URL) and body (request body) independently for every method.
1450
1460
  if (method.toUpperCase() === 'POST') {
1451
1461
  const existingBody = (options.body && typeof options.body === 'object') ? options.body : {};
1452
1462
  options.body = {
1453
1463
  ...existingBody,
1454
- ...options.params,
1455
1464
  ...requestParams
1456
1465
  };
1457
- options.params = undefined;
1458
1466
  }
1459
1467
  else {
1460
- // Merge pagination parameters with existing parameters
1461
1468
  options.params = {
1462
1469
  ...options.params,
1463
1470
  ...requestParams