@uipath/uipath-typescript 1.4.1 → 1.5.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.
Files changed (46) hide show
  1. package/dist/agent-memory/index.d.ts +4 -1
  2. package/dist/agents/index.cjs +341 -6
  3. package/dist/agents/index.d.ts +717 -16
  4. package/dist/agents/index.mjs +342 -7
  5. package/dist/assets/index.cjs +25 -9
  6. package/dist/assets/index.mjs +25 -9
  7. package/dist/attachments/index.cjs +25 -9
  8. package/dist/attachments/index.mjs +25 -9
  9. package/dist/buckets/index.cjs +25 -9
  10. package/dist/buckets/index.mjs +25 -9
  11. package/dist/cases/index.cjs +621 -524
  12. package/dist/cases/index.d.ts +186 -43
  13. package/dist/cases/index.mjs +621 -524
  14. package/dist/conversational-agent/index.cjs +25 -9
  15. package/dist/conversational-agent/index.mjs +25 -9
  16. package/dist/core/index.cjs +1 -1
  17. package/dist/core/index.mjs +1 -1
  18. package/dist/document-understanding/index.cjs +84 -84
  19. package/dist/document-understanding/index.d.ts +2 -1
  20. package/dist/document-understanding/index.mjs +1 -1
  21. package/dist/entities/index.cjs +25 -9
  22. package/dist/entities/index.mjs +25 -9
  23. package/dist/feedback/index.cjs +25 -9
  24. package/dist/feedback/index.mjs +25 -9
  25. package/dist/index.cjs +332 -62
  26. package/dist/index.d.ts +827 -89
  27. package/dist/index.mjs +333 -63
  28. package/dist/index.umd.js +332 -62
  29. package/dist/jobs/index.cjs +129 -14
  30. package/dist/jobs/index.d.ts +10 -5
  31. package/dist/jobs/index.mjs +129 -14
  32. package/dist/maestro-processes/index.cjs +198 -100
  33. package/dist/maestro-processes/index.d.ts +188 -43
  34. package/dist/maestro-processes/index.mjs +198 -100
  35. package/dist/processes/index.cjs +25 -9
  36. package/dist/processes/index.d.ts +6 -1
  37. package/dist/processes/index.mjs +25 -9
  38. package/dist/queues/index.cjs +25 -9
  39. package/dist/queues/index.mjs +25 -9
  40. package/dist/tasks/index.cjs +25 -9
  41. package/dist/tasks/index.d.ts +4 -1
  42. package/dist/tasks/index.mjs +25 -9
  43. package/dist/traces/index.cjs +2 -2
  44. package/dist/traces/index.d.ts +3 -3
  45. package/dist/traces/index.mjs +2 -2
  46. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -3422,21 +3422,12 @@ interface GetTopDurationResponse extends GetTopBaseResponse {
3422
3422
  duration: number;
3423
3423
  }
3424
3424
  /**
3425
- * Element count by status for a BPMN element within a process or case
3425
+ * Duration percentile stats shared by Insights aggregate endpoints (per-element and per-process/case).
3426
+ *
3427
+ * For instance-level stats, durations are computed over terminal instances only
3428
+ * (Completed, Cancelled, Deleted) and default to `0` when no terminal instances exist.
3426
3429
  */
3427
- interface ElementStats {
3428
- /** BPMN element identifier */
3429
- elementId: string;
3430
- /** Number of successful executions */
3431
- successCount: number;
3432
- /** Number of failed executions */
3433
- failCount: number;
3434
- /** Number of terminated executions */
3435
- terminatedCount: number;
3436
- /** Number of paused executions */
3437
- pausedCount: number;
3438
- /** Number of in-progress executions */
3439
- inProgressCount: number;
3430
+ interface DurationStats {
3440
3431
  /** Minimum duration in milliseconds */
3441
3432
  minDurationMs: number;
3442
3433
  /** Maximum duration in milliseconds */
@@ -3450,6 +3441,65 @@ interface ElementStats {
3450
3441
  /** 99th percentile duration in milliseconds */
3451
3442
  p99DurationMs: number;
3452
3443
  }
3444
+ /**
3445
+ * Instance count and duration stats aggregated by status for a process or case within a time range.
3446
+ *
3447
+ * Duration fields are computed over terminal instances only (Completed, Cancelled, Deleted)
3448
+ * and default to `0` when no terminal instances exist in the time range.
3449
+ */
3450
+ interface InstanceStats extends DurationStats {
3451
+ /** Total number of instances across all statuses */
3452
+ totalCount: number;
3453
+ /** Number of currently running instances */
3454
+ runningCount: number;
3455
+ /** Number of instances in transitioning state */
3456
+ transitioningCount: number;
3457
+ /** Number of paused instances */
3458
+ pausedCount: number;
3459
+ /** Number of faulted instances */
3460
+ faultedCount: number;
3461
+ /** Number of completed instances */
3462
+ completedCount: number;
3463
+ /** Number of cancelled instances */
3464
+ cancelledCount: number;
3465
+ /** Number of deleted instances */
3466
+ deletedCount: number;
3467
+ }
3468
+ /**
3469
+ * Required request parameters for process-scoped insights stats endpoints
3470
+ * (`getElementStats`, `getInstanceStats`).
3471
+ *
3472
+ * Identifies a single process+package+version and the time range to aggregate over.
3473
+ */
3474
+ interface MaestroProcessStatsRequest {
3475
+ /** Process key to filter by */
3476
+ processKey: string;
3477
+ /** Package identifier */
3478
+ packageId: string;
3479
+ /** Package version to filter by */
3480
+ packageVersion: string;
3481
+ /** Start of the time range to query */
3482
+ startTime: Date;
3483
+ /** End of the time range to query */
3484
+ endTime: Date;
3485
+ }
3486
+ /**
3487
+ * Per-element execution counts and duration percentiles for a BPMN element within a process or case.
3488
+ */
3489
+ interface ElementStats extends DurationStats {
3490
+ /** BPMN element identifier */
3491
+ elementId: string;
3492
+ /** Number of successful executions */
3493
+ successCount: number;
3494
+ /** Number of failed executions */
3495
+ failCount: number;
3496
+ /** Number of terminated executions */
3497
+ terminatedCount: number;
3498
+ /** Number of paused executions */
3499
+ pausedCount: number;
3500
+ /** Number of in-progress executions */
3501
+ inProgressCount: number;
3502
+ }
3453
3503
 
3454
3504
  /**
3455
3505
  * Maestro Process Types
@@ -3842,22 +3892,22 @@ interface MaestroProcessesServiceModel {
3842
3892
  * Returns per-element execution counts (success, fail, terminated, paused, in-progress) and
3843
3893
  * duration percentile metrics (min, max, avg, p50, p95, p99) for BPMN elements within a process.
3844
3894
  *
3845
- * @param processKey - Process key to filter by
3846
- * @param packageId - Package identifier
3847
- * @param startTime - Start of the time range to query
3848
- * @param endTime - End of the time range to query
3849
- * @param packageVersion - Package version to filter by
3895
+ * @param request - Process scope + time range to aggregate over
3850
3896
  * @returns Promise resolving to an array of {@link ElementStats}
3851
3897
  * @example
3852
3898
  * ```typescript
3853
- * // Get element metrics for a process
3854
- * const elements = await maestroProcesses.getElementStats(
3855
- * '<processKey>',
3856
- * '<packageId>',
3857
- * new Date('2026-04-01'),
3858
- * new Date(),
3859
- * '1.0.1'
3860
- * );
3899
+ * // First, list processes to find the processKey, packageId, and available versions
3900
+ * const processes = await maestroProcesses.getAll();
3901
+ * const process = processes[0];
3902
+ *
3903
+ * // Get element metrics for that process
3904
+ * const elements = await maestroProcesses.getElementStats({
3905
+ * processKey: process.processKey,
3906
+ * packageId: process.packageId,
3907
+ * packageVersion: process.packageVersions[0],
3908
+ * startTime: new Date('2026-04-01'),
3909
+ * endTime: new Date(),
3910
+ * });
3861
3911
  *
3862
3912
  * // Analyze element performance
3863
3913
  * for (const element of elements) {
@@ -3865,9 +3915,52 @@ interface MaestroProcessesServiceModel {
3865
3915
  * console.log(` Success: ${element.successCount}, Failed: ${element.failCount}`);
3866
3916
  * console.log(` Avg duration: ${element.avgDurationMs}ms, P95: ${element.p95DurationMs}ms`);
3867
3917
  * }
3918
+ *
3919
+ * // Using bound method on a process — auto-fills processKey and packageId
3920
+ * const boundElements = await process.getElementStats(
3921
+ * new Date('2026-04-01'),
3922
+ * new Date(),
3923
+ * process.packageVersions[0]
3924
+ * );
3925
+ * ```
3926
+ */
3927
+ getElementStats(request: MaestroProcessStatsRequest): Promise<ElementStats[]>;
3928
+ /**
3929
+ * Get instance stats for a process.
3930
+ *
3931
+ * Returns total instance counts broken down by status (running, completed, faulted, etc.)
3932
+ * and the average execution duration for all instances of a process within a time range.
3933
+ *
3934
+ * @param request - Process scope + time range to aggregate over
3935
+ * @returns Promise resolving to {@link InstanceStats}
3936
+ * @example
3937
+ * ```typescript
3938
+ * // First, list processes to find the processKey, packageId, and available versions
3939
+ * const processes = await maestroProcesses.getAll();
3940
+ * const process = processes[0];
3941
+ *
3942
+ * // Get instance status breakdown for that process
3943
+ * const counts = await maestroProcesses.getInstanceStats({
3944
+ * processKey: process.processKey,
3945
+ * packageId: process.packageId,
3946
+ * packageVersion: process.packageVersions[0],
3947
+ * startTime: new Date('2026-04-01'),
3948
+ * endTime: new Date(),
3949
+ * });
3950
+ *
3951
+ * console.log(`Total: ${counts.totalCount}`);
3952
+ * console.log(`Running: ${counts.runningCount}, Completed: ${counts.completedCount}`);
3953
+ * console.log(`Faulted: ${counts.faultedCount}, Avg duration: ${counts.avgDurationMs}ms`);
3954
+ *
3955
+ * // Using bound method on a process — auto-fills processKey and packageId
3956
+ * const boundCounts = await process.getInstanceStats(
3957
+ * new Date('2026-04-01'),
3958
+ * new Date(),
3959
+ * process.packageVersions[0]
3960
+ * );
3868
3961
  * ```
3869
3962
  */
3870
- getElementStats(processKey: string, packageId: string, startTime: Date, endTime: Date, packageVersion: string): Promise<ElementStats[]>;
3963
+ getInstanceStats(request: MaestroProcessStatsRequest): Promise<InstanceStats>;
3871
3964
  }
3872
3965
  interface ProcessMethods {
3873
3966
  /**
@@ -3885,6 +3978,15 @@ interface ProcessMethods {
3885
3978
  * @returns Promise resolving to an array of {@link ElementStats}
3886
3979
  */
3887
3980
  getElementStats(startTime: Date, endTime: Date, packageVersion: string): Promise<ElementStats[]>;
3981
+ /**
3982
+ * Get instance stats for this process
3983
+ *
3984
+ * @param startTime - Start of the time range to query
3985
+ * @param endTime - End of the time range to query
3986
+ * @param packageVersion - Package version to filter by
3987
+ * @returns Promise resolving to {@link InstanceStats}
3988
+ */
3989
+ getInstanceStats(startTime: Date, endTime: Date, packageVersion: string): Promise<InstanceStats>;
3888
3990
  }
3889
3991
  type MaestroProcessGetAllResponse = RawMaestroProcessGetAllResponse & ProcessMethods;
3890
3992
  /**
@@ -4062,7 +4164,10 @@ declare enum JobState {
4062
4164
  Successful = "Successful",
4063
4165
  Stopped = "Stopped",
4064
4166
  Suspended = "Suspended",
4065
- Resumed = "Resumed"
4167
+ Resumed = "Resumed",
4168
+ Cancelled = "Cancelled",
4169
+ /** Server-side fallback for an unrecognized or missing job state. */
4170
+ Unknown = "Unknown"
4066
4171
  }
4067
4172
  interface BaseOptions {
4068
4173
  expand?: string;
@@ -4715,31 +4820,73 @@ interface CasesServiceModel {
4715
4820
  * Returns per-element execution counts (success, fail, terminated, paused, in-progress) and
4716
4821
  * duration percentile metrics (min, max, avg, p50, p95, p99) for BPMN elements within a case.
4717
4822
  *
4718
- * @param processKey - Process key to filter by
4719
- * @param packageId - Package identifier
4720
- * @param startTime - Start of the time range to query
4721
- * @param endTime - End of the time range to query
4722
- * @param packageVersion - Package version to filter by
4823
+ * @param request - Process scope + time range to aggregate over
4723
4824
  * @returns Promise resolving to an array of {@link ElementStats}
4724
4825
  * @example
4725
4826
  * ```typescript
4726
- * // Get element metrics for a case
4727
- * const elements = await cases.getElementStats(
4728
- * '<processKey>',
4729
- * '<packageId>',
4730
- * new Date('2026-04-01'),
4731
- * new Date(),
4732
- * '1.0.1'
4733
- * );
4827
+ * // First, list cases to find the processKey, packageId, and available versions
4828
+ * const allCases = await cases.getAll();
4829
+ * const caseItem = allCases[0];
4830
+ *
4831
+ * // Get element metrics for that case
4832
+ * const elements = await cases.getElementStats({
4833
+ * processKey: caseItem.processKey,
4834
+ * packageId: caseItem.packageId,
4835
+ * packageVersion: caseItem.packageVersions[0],
4836
+ * startTime: new Date('2026-04-01'),
4837
+ * endTime: new Date(),
4838
+ * });
4734
4839
  *
4735
4840
  * // Find elements with failures
4736
4841
  * const failedElements = elements.filter(e => e.failCount > 0);
4737
4842
  * for (const element of failedElements) {
4738
4843
  * console.log(`Failed element: ${element.elementId}, failures: ${element.failCount}`);
4739
4844
  * }
4845
+ *
4846
+ * // Using bound method on a case — auto-fills processKey and packageId
4847
+ * const boundElements = await caseItem.getElementStats(
4848
+ * new Date('2026-04-01'),
4849
+ * new Date(),
4850
+ * caseItem.packageVersions[0]
4851
+ * );
4852
+ * ```
4853
+ */
4854
+ getElementStats(request: MaestroProcessStatsRequest): Promise<ElementStats[]>;
4855
+ /**
4856
+ * Get instance stats for a case.
4857
+ *
4858
+ * Returns total instance counts broken down by status (running, completed, faulted, etc.)
4859
+ * and the average execution duration for all instances of a case within a time range.
4860
+ *
4861
+ * @param request - Process scope + time range to aggregate over
4862
+ * @returns Promise resolving to {@link InstanceStats}
4863
+ * @example
4864
+ * ```typescript
4865
+ * // First, list cases to find the processKey, packageId, and available versions
4866
+ * const allCases = await cases.getAll();
4867
+ * const caseItem = allCases[0];
4868
+ *
4869
+ * // Get instance status breakdown for that case
4870
+ * const counts = await cases.getInstanceStats({
4871
+ * processKey: caseItem.processKey,
4872
+ * packageId: caseItem.packageId,
4873
+ * packageVersion: caseItem.packageVersions[0],
4874
+ * startTime: new Date('2026-04-01'),
4875
+ * endTime: new Date(),
4876
+ * });
4877
+ *
4878
+ * console.log(`Total: ${counts.totalCount}`);
4879
+ * console.log(`Completed: ${counts.completedCount}, Faulted: ${counts.faultedCount}`);
4880
+ *
4881
+ * // Using bound method on a case — auto-fills processKey and packageId
4882
+ * const boundCounts = await caseItem.getInstanceStats(
4883
+ * new Date('2026-04-01'),
4884
+ * new Date(),
4885
+ * caseItem.packageVersions[0]
4886
+ * );
4740
4887
  * ```
4741
4888
  */
4742
- getElementStats(processKey: string, packageId: string, startTime: Date, endTime: Date, packageVersion: string): Promise<ElementStats[]>;
4889
+ getInstanceStats(request: MaestroProcessStatsRequest): Promise<InstanceStats>;
4743
4890
  }
4744
4891
  interface CaseMethods {
4745
4892
  /**
@@ -4751,6 +4898,15 @@ interface CaseMethods {
4751
4898
  * @returns Promise resolving to an array of {@link ElementStats}
4752
4899
  */
4753
4900
  getElementStats(startTime: Date, endTime: Date, packageVersion: string): Promise<ElementStats[]>;
4901
+ /**
4902
+ * Get instance stats for this case
4903
+ *
4904
+ * @param startTime - Start of the time range to query
4905
+ * @param endTime - End of the time range to query
4906
+ * @param packageVersion - Package version to filter by
4907
+ * @returns Promise resolving to {@link InstanceStats}
4908
+ */
4909
+ getInstanceStats(startTime: Date, endTime: Date, packageVersion: string): Promise<InstanceStats>;
4754
4910
  }
4755
4911
  type CaseGetAllWithMethodsResponse = CaseGetAllResponse & CaseMethods;
4756
4912
  /**
@@ -6354,22 +6510,22 @@ declare class MaestroProcessesService extends BaseService implements MaestroProc
6354
6510
  * Returns per-element execution counts (success, fail, terminated, paused, in-progress) and
6355
6511
  * duration percentile metrics (min, max, avg, p50, p95, p99) for BPMN elements within a process.
6356
6512
  *
6357
- * @param processKey - Process key to filter by
6358
- * @param packageId - Package identifier
6359
- * @param startTime - Start of the time range to query
6360
- * @param endTime - End of the time range to query
6361
- * @param packageVersion - Package version to filter by
6513
+ * @param request - Process scope + time range to aggregate over
6362
6514
  * @returns Promise resolving to an array of {@link ElementStats}
6363
6515
  * @example
6364
6516
  * ```typescript
6365
- * // Get element metrics for a process
6366
- * const elements = await maestroProcesses.getElementStats(
6367
- * '<processKey>',
6368
- * '<packageId>',
6369
- * new Date('2026-04-01'),
6370
- * new Date(),
6371
- * '1.0.1'
6372
- * );
6517
+ * // First, list processes to find the processKey, packageId, and available versions
6518
+ * const processes = await maestroProcesses.getAll();
6519
+ * const process = processes[0];
6520
+ *
6521
+ * // Get element metrics for that process
6522
+ * const elements = await maestroProcesses.getElementStats({
6523
+ * processKey: process.processKey,
6524
+ * packageId: process.packageId,
6525
+ * packageVersion: process.packageVersions[0],
6526
+ * startTime: new Date('2026-04-01'),
6527
+ * endTime: new Date(),
6528
+ * });
6373
6529
  *
6374
6530
  * // Analyze element performance
6375
6531
  * for (const element of elements) {
@@ -6377,9 +6533,52 @@ declare class MaestroProcessesService extends BaseService implements MaestroProc
6377
6533
  * console.log(` Success: ${element.successCount}, Failed: ${element.failCount}`);
6378
6534
  * console.log(` Avg duration: ${element.avgDurationMs}ms, P95: ${element.p95DurationMs}ms`);
6379
6535
  * }
6536
+ *
6537
+ * // Using bound method on a process — auto-fills processKey and packageId
6538
+ * const boundElements = await process.getElementStats(
6539
+ * new Date('2026-04-01'),
6540
+ * new Date(),
6541
+ * process.packageVersions[0]
6542
+ * );
6543
+ * ```
6544
+ */
6545
+ getElementStats(request: MaestroProcessStatsRequest): Promise<ElementStats[]>;
6546
+ /**
6547
+ * Get instance stats for a process.
6548
+ *
6549
+ * Returns total instance counts broken down by status (running, completed, faulted, etc.)
6550
+ * and the average execution duration for all instances of a process within a time range.
6551
+ *
6552
+ * @param request - Process scope + time range to aggregate over
6553
+ * @returns Promise resolving to {@link InstanceStats}
6554
+ * @example
6555
+ * ```typescript
6556
+ * // First, list processes to find the processKey, packageId, and available versions
6557
+ * const processes = await maestroProcesses.getAll();
6558
+ * const process = processes[0];
6559
+ *
6560
+ * // Get instance status breakdown for that process
6561
+ * const counts = await maestroProcesses.getInstanceStats({
6562
+ * processKey: process.processKey,
6563
+ * packageId: process.packageId,
6564
+ * packageVersion: process.packageVersions[0],
6565
+ * startTime: new Date('2026-04-01'),
6566
+ * endTime: new Date(),
6567
+ * });
6568
+ *
6569
+ * console.log(`Total: ${counts.totalCount}`);
6570
+ * console.log(`Running: ${counts.runningCount}, Completed: ${counts.completedCount}`);
6571
+ * console.log(`Faulted: ${counts.faultedCount}, Avg duration: ${counts.avgDurationMs}ms`);
6572
+ *
6573
+ * // Using bound method on a process — auto-fills processKey and packageId
6574
+ * const boundCounts = await process.getInstanceStats(
6575
+ * new Date('2026-04-01'),
6576
+ * new Date(),
6577
+ * process.packageVersions[0]
6578
+ * );
6380
6579
  * ```
6381
6580
  */
6382
- getElementStats(processKey: string, packageId: string, startTime: Date, endTime: Date, packageVersion: string): Promise<ElementStats[]>;
6581
+ getInstanceStats(request: MaestroProcessStatsRequest): Promise<InstanceStats>;
6383
6582
  }
6384
6583
 
6385
6584
  declare class ProcessInstancesService extends BaseService implements ProcessInstancesServiceModel {
@@ -6776,31 +6975,73 @@ declare class CasesService extends BaseService implements CasesServiceModel {
6776
6975
  * Returns per-element execution counts (success, fail, terminated, paused, in-progress) and
6777
6976
  * duration percentile metrics (min, max, avg, p50, p95, p99) for BPMN elements within a case.
6778
6977
  *
6779
- * @param processKey - Process key to filter by
6780
- * @param packageId - Package identifier
6781
- * @param startTime - Start of the time range to query
6782
- * @param endTime - End of the time range to query
6783
- * @param packageVersion - Package version to filter by
6978
+ * @param request - Process scope + time range to aggregate over
6784
6979
  * @returns Promise resolving to an array of {@link ElementStats}
6785
6980
  * @example
6786
6981
  * ```typescript
6787
- * // Get element metrics for a case
6788
- * const elements = await cases.getElementStats(
6789
- * '<processKey>',
6790
- * '<packageId>',
6791
- * new Date('2026-04-01'),
6792
- * new Date(),
6793
- * '1.0.1'
6794
- * );
6982
+ * // First, list cases to find the processKey, packageId, and available versions
6983
+ * const allCases = await cases.getAll();
6984
+ * const caseItem = allCases[0];
6985
+ *
6986
+ * // Get element metrics for that case
6987
+ * const elements = await cases.getElementStats({
6988
+ * processKey: caseItem.processKey,
6989
+ * packageId: caseItem.packageId,
6990
+ * packageVersion: caseItem.packageVersions[0],
6991
+ * startTime: new Date('2026-04-01'),
6992
+ * endTime: new Date(),
6993
+ * });
6795
6994
  *
6796
6995
  * // Find elements with failures
6797
6996
  * const failedElements = elements.filter(e => e.failCount > 0);
6798
6997
  * for (const element of failedElements) {
6799
6998
  * console.log(`Failed element: ${element.elementId}, failures: ${element.failCount}`);
6800
6999
  * }
7000
+ *
7001
+ * // Using bound method on a case — auto-fills processKey and packageId
7002
+ * const boundElements = await caseItem.getElementStats(
7003
+ * new Date('2026-04-01'),
7004
+ * new Date(),
7005
+ * caseItem.packageVersions[0]
7006
+ * );
6801
7007
  * ```
6802
7008
  */
6803
- getElementStats(processKey: string, packageId: string, startTime: Date, endTime: Date, packageVersion: string): Promise<ElementStats[]>;
7009
+ getElementStats(request: MaestroProcessStatsRequest): Promise<ElementStats[]>;
7010
+ /**
7011
+ * Get instance stats for a case.
7012
+ *
7013
+ * Returns total instance counts broken down by status (running, completed, faulted, etc.)
7014
+ * and the average execution duration for all instances of a case within a time range.
7015
+ *
7016
+ * @param request - Process scope + time range to aggregate over
7017
+ * @returns Promise resolving to {@link InstanceStats}
7018
+ * @example
7019
+ * ```typescript
7020
+ * // First, list cases to find the processKey, packageId, and available versions
7021
+ * const allCases = await cases.getAll();
7022
+ * const caseItem = allCases[0];
7023
+ *
7024
+ * // Get instance status breakdown for that case
7025
+ * const counts = await cases.getInstanceStats({
7026
+ * processKey: caseItem.processKey,
7027
+ * packageId: caseItem.packageId,
7028
+ * packageVersion: caseItem.packageVersions[0],
7029
+ * startTime: new Date('2026-04-01'),
7030
+ * endTime: new Date(),
7031
+ * });
7032
+ *
7033
+ * console.log(`Total: ${counts.totalCount}`);
7034
+ * console.log(`Completed: ${counts.completedCount}, Faulted: ${counts.faultedCount}`);
7035
+ *
7036
+ * // Using bound method on a case — auto-fills processKey and packageId
7037
+ * const boundCounts = await caseItem.getInstanceStats(
7038
+ * new Date('2026-04-01'),
7039
+ * new Date(),
7040
+ * caseItem.packageVersions[0]
7041
+ * );
7042
+ * ```
7043
+ */
7044
+ getInstanceStats(request: MaestroProcessStatsRequest): Promise<InstanceStats>;
6804
7045
  /**
6805
7046
  * Extract a readable case name from the packageId
6806
7047
  * @param packageId - The full package identifier
@@ -8525,6 +8766,8 @@ interface ProcessStartResponse extends ProcessProperties, FolderProperties {
8525
8766
  createdTime: string;
8526
8767
  startingScheduleId: number | null;
8527
8768
  processName: string;
8769
+ /** Key of the process this job was started from. */
8770
+ processKey: string;
8528
8771
  type: JobType;
8529
8772
  inputFile: string | null;
8530
8773
  outputArguments: string | null;
@@ -8824,8 +9067,9 @@ interface JobServiceModel {
8824
9067
  * const folderJobs = await jobs.getAll({ folderId: <folderId> });
8825
9068
  *
8826
9069
  * // With filtering
8827
- * const runningJobs = await jobs.getAll({
8828
- * filter: "state eq 'Running'"
9070
+ * const recentInvoiceJobs = await jobs.getAll({
9071
+ * filter: "processName eq 'InvoiceBot'",
9072
+ * orderby: 'createdTime desc',
8829
9073
  * });
8830
9074
  *
8831
9075
  * // First page with pagination
@@ -15638,9 +15882,9 @@ declare enum AgentListSortColumn {
15638
15882
  HealthScore = "HealthScore",
15639
15883
  LastIncident = "LastIncident",
15640
15884
  FolderName = "FolderName",
15641
- /** Quantity of AGU (Agent Units) consumed */
15885
+ /** Quantity of Agent Units consumed */
15642
15886
  QuantityAGU = "QuantityAGU",
15643
- /** Quantity of PLTU (Platform Units) consumed */
15887
+ /** Quantity of Platform Units consumed */
15644
15888
  QuantityPLTU = "QuantityPLTU",
15645
15889
  FolderPath = "FolderPath"
15646
15890
  }
@@ -15650,7 +15894,10 @@ declare enum AgentListSortColumn {
15650
15894
  interface AgentListOrderBy {
15651
15895
  /** Column to sort by */
15652
15896
  column: AgentListSortColumn;
15653
- /** Sort descending. Defaults to false. */
15897
+ /**
15898
+ * Sort descending.
15899
+ * @default false
15900
+ */
15654
15901
  desc?: boolean;
15655
15902
  }
15656
15903
  /**
@@ -15684,9 +15931,9 @@ interface AgentListItem {
15684
15931
  unitsQuantity: number;
15685
15932
  /** Display name of the units (if any). May be `null` or `""`. */
15686
15933
  unitsName: string | null;
15687
- /** Quantity of AGU (Agent Units) consumed by this agent */
15934
+ /** Quantity of Agent Units consumed by this agent */
15688
15935
  quantityAGU: number;
15689
- /** Quantity of PLTU (Platform Units) consumed by this agent */
15936
+ /** Quantity of Platform Units consumed by this agent */
15690
15937
  quantityPLTU: number;
15691
15938
  }
15692
15939
  /**
@@ -15741,7 +15988,10 @@ declare enum AgentErrorSortColumn {
15741
15988
  interface AgentErrorOrderBy {
15742
15989
  /** Column to sort by */
15743
15990
  column: AgentErrorSortColumn;
15744
- /** Sort descending. Defaults to false (ascending) server-side. */
15991
+ /**
15992
+ * Sort descending.
15993
+ * @default false
15994
+ */
15745
15995
  desc?: boolean;
15746
15996
  }
15747
15997
  /**
@@ -15802,7 +16052,10 @@ interface AgentGetErrorsTimelineResponse {
15802
16052
  * Options for getting the agent errors timeline.
15803
16053
  */
15804
16054
  interface AgentGetErrorsTimelineOptions extends AgentFilterOptions {
15805
- /** Max number of agents to return. Defaults to 10 server-side. */
16055
+ /**
16056
+ * Max number of agents to return.
16057
+ * @default 10
16058
+ */
15806
16059
  limit?: number;
15807
16060
  }
15808
16061
  /**
@@ -15811,7 +16064,7 @@ interface AgentGetErrorsTimelineOptions extends AgentFilterOptions {
15811
16064
  interface AgentGetConsumptionTimelineResponse {
15812
16065
  /** Bucket timestamp (ISO 8601, UTC) */
15813
16066
  timeSlice: string;
15814
- /** AGU quantity consumed in this time bucket */
16067
+ /** Agent Units quantity consumed in this time bucket */
15815
16068
  aguConsumption: number;
15816
16069
  }
15817
16070
  /**
@@ -15837,6 +16090,296 @@ interface AgentGetLatencyTimelineResponse {
15837
16090
  */
15838
16091
  interface AgentGetLatencyTimelineOptions extends AgentFilterOptions {
15839
16092
  }
16093
+ /**
16094
+ * A single agent's error count over the requested window, with the first and
16095
+ * last jobs where errors were observed.
16096
+ */
16097
+ interface AgentTopErrorCount {
16098
+ /** Agent name */
16099
+ name: string;
16100
+ /** Error count for this agent over the requested window */
16101
+ count: number;
16102
+ /** Agent ID (GUID) */
16103
+ agentId: string;
16104
+ /** First job in the window where this agent reported errors */
16105
+ firstSeenJob: AgentJobInfo;
16106
+ /** Last job in the window where this agent reported errors */
16107
+ lastSeenJob: AgentJobInfo;
16108
+ }
16109
+ /**
16110
+ * Response from getting the top agents by error count.
16111
+ */
16112
+ interface AgentGetTopErrorCountResponse {
16113
+ /** Total error count across all agents in the window. */
16114
+ totalErrors: number;
16115
+ /** Top-N agents ranked by error count. */
16116
+ data: AgentTopErrorCount[];
16117
+ }
16118
+ /**
16119
+ * Options for getting the top agents by error count.
16120
+ */
16121
+ interface AgentGetTopErrorCountOptions extends AgentFilterOptions {
16122
+ /**
16123
+ * Max number of agents to return. Defaults to 10 server-side.
16124
+ * @default 10
16125
+ */
16126
+ limit?: number;
16127
+ }
16128
+ /**
16129
+ * Agent type, used to filter consumption results.
16130
+ *
16131
+ * Wire format is the string name, per the API's `StringEnumConverter` serialization.
16132
+ */
16133
+ declare enum AgentType {
16134
+ Autonomous = "Autonomous",
16135
+ Conversational = "Conversational",
16136
+ Coded = "Coded"
16137
+ }
16138
+ /**
16139
+ * A single agent's unit consumption over the requested window, with the first
16140
+ * and last jobs where consumption was recorded.
16141
+ */
16142
+ interface AgentConsumption {
16143
+ /** Agent ID (GUID) */
16144
+ agentId: string;
16145
+ /** Agent display name */
16146
+ agentName: string;
16147
+ /** Total quantity consumed by this agent. `null` if no consumption is recorded. */
16148
+ consumedQuantity: number | null;
16149
+ /** Agent Units quantity consumed. `null` if no consumption is recorded. */
16150
+ consumedAGUQuantity: number | null;
16151
+ /** Platform Units quantity consumed. `null` if no consumption is recorded. */
16152
+ consumedPLTUQuantity: number | null;
16153
+ /** First job in the window where this agent recorded consumption */
16154
+ firstSeenJob: AgentJobInfo;
16155
+ /** Last job in the window where this agent recorded consumption */
16156
+ lastSeenJob: AgentJobInfo;
16157
+ }
16158
+ /**
16159
+ * Response from getting the top agents by consumption.
16160
+ */
16161
+ interface AgentGetTopConsumptionResponse {
16162
+ /** Window start date. */
16163
+ startDate: string;
16164
+ /** Window end date. */
16165
+ endDate: string;
16166
+ /** Total quantity consumed across all matching agents in the window. */
16167
+ totalConsumed: number;
16168
+ /** Total Agent Units quantity consumed. */
16169
+ totalAGUConsumed: number;
16170
+ /** Total Platform Units quantity consumed. */
16171
+ totalPLTUConsumed: number;
16172
+ /** Limit applied (echoed from the request). */
16173
+ limit: number;
16174
+ /** Top-N agents ranked by consumption. Empty array when no agents matched. */
16175
+ agents: AgentConsumption[];
16176
+ }
16177
+ /**
16178
+ * Options for getting the top agents by consumption.
16179
+ */
16180
+ interface AgentGetTopConsumptionOptions extends AgentFilterOptions {
16181
+ /**
16182
+ * Max number of agents to return. Defaults to 10 server-side.
16183
+ * @default 10
16184
+ */
16185
+ limit?: number;
16186
+ /**
16187
+ * Health-based filter. `true` returns only healthy agents, `false` only
16188
+ * unhealthy. Omit to include both.
16189
+ */
16190
+ healthy?: boolean;
16191
+ /**
16192
+ * Health-score cutoff used when `healthy` is set. Defaults to 75.0
16193
+ * server-side.
16194
+ * @default 75.0
16195
+ */
16196
+ healthThreshold?: number;
16197
+ /**
16198
+ * Filter to specific agent types. Multiple types are combined with `OR` and
16199
+ * sent to the API as a comma-separated string.
16200
+ */
16201
+ agentTypes?: AgentType[];
16202
+ }
16203
+ /**
16204
+ * Distribution of incidents across types over the requested window.
16205
+ */
16206
+ interface AgentGetIncidentDistributionResponse {
16207
+ /** Number of error-type incidents in the window */
16208
+ errorCount: number;
16209
+ /** Number of escalation-type incidents in the window */
16210
+ escalationCount: number;
16211
+ /** Number of policy-type incidents in the window */
16212
+ policyCount: number;
16213
+ }
16214
+ /**
16215
+ * Options for getting the incident distribution.
16216
+ *
16217
+ * Currently identical to {@link AgentFilterOptions}; named distinctly so that
16218
+ * future per-method filters can be added without a breaking change.
16219
+ */
16220
+ interface AgentGetIncidentDistributionOptions extends AgentFilterOptions {
16221
+ }
16222
+ /**
16223
+ * Per-agent (process + folder) stats within an {@link AgentSummaryPeriod}.
16224
+ */
16225
+ interface AgentSummaryEntry {
16226
+ /** Process key (GUID) */
16227
+ processKey: string;
16228
+ /** Folder key (GUID) the agent ran in */
16229
+ folderKey: string;
16230
+ /** Process version */
16231
+ processVersion: string;
16232
+ /** Total job runs in the period */
16233
+ totalJobs: number;
16234
+ /** Number of successful runs in the period */
16235
+ successfulJobs: number;
16236
+ /** Success rate as a percentage (0-100) */
16237
+ successRate: number;
16238
+ /** Average run duration in seconds */
16239
+ averageDurationSeconds: number;
16240
+ /** First job completion timestamp (ISO 8601, UTC) */
16241
+ firstJobFinished: string;
16242
+ /** Last job completion timestamp (ISO 8601, UTC) */
16243
+ lastJobFinished: string;
16244
+ /**
16245
+ * Status of the most recent run, normalized to {@link JobState}. The API's
16246
+ * `Success` label maps to {@link JobState.Successful}; any unrecognized value
16247
+ * becomes {@link JobState.Unknown}.
16248
+ */
16249
+ lastJobStatus: JobState;
16250
+ }
16251
+ /**
16252
+ * Aggregate stats for a single period within an {@link AgentGetSummaryResponse}
16253
+ * — covers the requested window for either the current period or an optional
16254
+ * lookback period.
16255
+ */
16256
+ interface AgentSummaryPeriod {
16257
+ /** Total job runs across all agents in the period */
16258
+ totalJobs: number;
16259
+ /** Number of successful runs across all agents in the period */
16260
+ successfulJobs: number;
16261
+ /** Overall success rate as a percentage (0-100) */
16262
+ successRate: number;
16263
+ /** Average run duration in seconds across all agents in the period */
16264
+ averageDurationSeconds: number;
16265
+ /** Period start time (ISO 8601, UTC) */
16266
+ startTime: string;
16267
+ /** Period end time (ISO 8601, UTC) */
16268
+ endTime: string;
16269
+ /** Per-agent breakdown */
16270
+ agents: AgentSummaryEntry[];
16271
+ }
16272
+ /**
16273
+ * Response from getting the agent summary.
16274
+ */
16275
+ interface AgentGetSummaryResponse {
16276
+ /** Aggregate stats for the requested window. Always present. */
16277
+ currentPeriodSummary: AgentSummaryPeriod;
16278
+ /** Aggregate stats for the prior window of equal length. Only present when `lookbackPeriodAnalysis: true` was sent. */
16279
+ lookbackPeriodSummary?: AgentSummaryPeriod;
16280
+ }
16281
+ /**
16282
+ * Job execution mode filter accepted by the summary endpoints.
16283
+ *
16284
+ * Wire format is the string name (`"Debug"` / `"Runtime"`), per the API's
16285
+ * `StringEnumConverter` serialization.
16286
+ */
16287
+ declare enum AgentExecutionType {
16288
+ /** Test runs */
16289
+ Debug = "Debug",
16290
+ /** Production runs */
16291
+ Runtime = "Runtime"
16292
+ }
16293
+ /**
16294
+ * Options for getting the agent summary.
16295
+ */
16296
+ interface AgentGetSummaryOptions extends AgentFilterOptions {
16297
+ /**
16298
+ * When `true`, it also computes a `lookbackPeriodSummary` for the
16299
+ * prior window of equal length. Defaults to `false` server-side.
16300
+ * @default false
16301
+ */
16302
+ lookbackPeriodAnalysis?: boolean;
16303
+ /** Filter to a specific process by key (GUID). */
16304
+ processKey?: string;
16305
+ /**
16306
+ * Filter to a specific folder by key (GUID).
16307
+ *
16308
+ * The summary endpoint accepts both — `folderKey` selects a
16309
+ * single folder, `folderKeys` filters the lookup to a list of folders.
16310
+ */
16311
+ folderKey?: string;
16312
+ /**
16313
+ * Filter to a specific execution type — `Debug` (test runs) or
16314
+ * `Runtime` (production runs).
16315
+ */
16316
+ executionType?: AgentExecutionType;
16317
+ }
16318
+ /**
16319
+ * Job-type breakdown of unit consumption — completed jobs vs jobs still in
16320
+ * progress at query time.
16321
+ */
16322
+ interface AgentJobConsumptionSummary {
16323
+ /** Units consumed by jobs that have completed in the period */
16324
+ completeJobs: number;
16325
+ /** Units consumed by jobs still in progress at query time */
16326
+ incompleteJobs: number;
16327
+ }
16328
+ /**
16329
+ * Per-agent (process + folder) unit consumption entry within an
16330
+ * {@link AgentUnitConsumptionPeriod}.
16331
+ */
16332
+ interface AgentUnitConsumptionEntry {
16333
+ /** Folder key (GUID) the agent ran in */
16334
+ folderKey: string;
16335
+ /** Process key (GUID) */
16336
+ processKey: string;
16337
+ /** Process version */
16338
+ processVersion: string;
16339
+ /** First job completion timestamp (ISO 8601). `"0001-01-01T00:00:00"` if no completion in the period. */
16340
+ firstJobFinished: string;
16341
+ /** Last job completion timestamp (ISO 8601). `"0001-01-01T00:00:00"` if no completion in the period. */
16342
+ lastJobFinished: string;
16343
+ /** Agent Units consumption for this agent, split by job completion status */
16344
+ agentUnitConsumption: AgentJobConsumptionSummary;
16345
+ /** Platform Units consumption for this agent, split by job completion status */
16346
+ platformUnitConsumption: AgentJobConsumptionSummary;
16347
+ }
16348
+ /**
16349
+ * Aggregate Agent Units and Platform Units consumption for a single period within an
16350
+ * {@link AgentGetUnitConsumptionSummaryResponse} — covers the requested window
16351
+ * for either the current period or an optional lookback period.
16352
+ */
16353
+ interface AgentUnitConsumptionPeriod {
16354
+ /** Total Agent Units consumed across all agents in the period, split by job completion */
16355
+ totalAgentUnitConsumption: AgentJobConsumptionSummary;
16356
+ /** Total Platform Units consumed across all agents in the period, split by job completion */
16357
+ totalPlatformUnitConsumption: AgentJobConsumptionSummary;
16358
+ /** Period start time (ISO 8601, UTC) */
16359
+ startTime: string;
16360
+ /** Period end time (ISO 8601, UTC) */
16361
+ endTime: string;
16362
+ /** Per-agent consumption breakdown */
16363
+ agentConsumption: AgentUnitConsumptionEntry[];
16364
+ }
16365
+ /**
16366
+ * Response from getting the agent unit consumption summary.
16367
+ */
16368
+ interface AgentGetUnitConsumptionSummaryResponse {
16369
+ /** Aggregate consumption for the requested window. Always present. */
16370
+ currentPeriodSummary: AgentUnitConsumptionPeriod;
16371
+ /** Aggregate consumption for the prior window of equal length. Only present when `lookbackPeriodAnalysis: true` was sent. */
16372
+ lookbackPeriodSummary?: AgentUnitConsumptionPeriod;
16373
+ }
16374
+ /**
16375
+ * Options for getting the agent unit consumption summary.
16376
+ *
16377
+ * Currently identical to {@link AgentGetSummaryOptions} (the API uses the same
16378
+ * `AgentsSummaryRequest` schema for both endpoints); named distinctly so that
16379
+ * future per-method filters can be added without a breaking change.
16380
+ */
16381
+ interface AgentGetUnitConsumptionSummaryOptions extends AgentGetSummaryOptions {
16382
+ }
15840
16383
 
15841
16384
  /**
15842
16385
  * Service for retrieving runtime data for UiPath Agents.
@@ -15978,7 +16521,7 @@ interface AgentServiceModel {
15978
16521
  */
15979
16522
  getErrorsTimeline(startTime: Date, endTime: Date, options?: AgentGetErrorsTimelineOptions): Promise<AgentGetErrorsTimelineResponse[]>;
15980
16523
  /**
15981
- * Retrieves a time-series of AGU (Agent Units) consumption over the requested window.
16524
+ * Retrieves a time-series of Agent Units consumption over the requested window.
15982
16525
  *
15983
16526
  * @param startTime - Inclusive lower bound for the query window
15984
16527
  * @param endTime - Exclusive upper bound for the query window
@@ -15990,13 +16533,13 @@ interface AgentServiceModel {
15990
16533
  *
15991
16534
  * const agents = new Agents(sdk);
15992
16535
  *
15993
- * // AGU consumption timeline in May 2025
16536
+ * // Agent Units consumption timeline in May 2025
15994
16537
  * const result = await agents.getConsumptionTimeline(
15995
16538
  * new Date('2025-05-01T00:00:00Z'),
15996
16539
  * new Date('2025-06-01T00:00:00Z'),
15997
16540
  * );
15998
16541
  * result.forEach((point) => {
15999
- * console.log(`${point.timeSlice}: ${point.aguConsumption} AGU`);
16542
+ * console.log(`${point.timeSlice}: ${point.aguConsumption} Agent Units`);
16000
16543
  * });
16001
16544
  * ```
16002
16545
  * @example
@@ -16050,6 +16593,198 @@ interface AgentServiceModel {
16050
16593
  * ```
16051
16594
  */
16052
16595
  getLatencyTimeline(startTime: Date, endTime: Date, options?: AgentGetLatencyTimelineOptions): Promise<AgentGetLatencyTimelineResponse[]>;
16596
+ /**
16597
+ * Retrieves the top-N agents ranked by error count over the requested window.
16598
+ *
16599
+ * @param startTime - Inclusive lower bound for the query window
16600
+ * @param endTime - Exclusive upper bound for the query window
16601
+ * @param options - Optional filters
16602
+ * @returns Promise resolving to {@link AgentGetTopErrorCountResponse}
16603
+ * @example
16604
+ * ```typescript
16605
+ * import { Agents } from '@uipath/uipath-typescript/agents';
16606
+ *
16607
+ * const agents = new Agents(sdk);
16608
+ *
16609
+ * // Top agents by error count in May 2025
16610
+ * const result = await agents.getTopErrorCount(
16611
+ * new Date('2025-05-01T00:00:00Z'),
16612
+ * new Date('2025-06-01T00:00:00Z'),
16613
+ * );
16614
+ * result.data.forEach((agent) => {
16615
+ * console.log(`${agent.name}: ${agent.count} errors`);
16616
+ * });
16617
+ * ```
16618
+ * @example
16619
+ * ```typescript
16620
+ * // Scope to specific folders and top 5 agents
16621
+ * const result = await agents.getTopErrorCount(
16622
+ * new Date('2025-05-01T00:00:00Z'),
16623
+ * new Date('2025-06-01T00:00:00Z'),
16624
+ * {
16625
+ * folderKeys: ['<folderKey1>'],
16626
+ * limit: 5,
16627
+ * },
16628
+ * );
16629
+ * ```
16630
+ */
16631
+ getTopErrorCount(startTime: Date, endTime: Date, options?: AgentGetTopErrorCountOptions): Promise<AgentGetTopErrorCountResponse>;
16632
+ /**
16633
+ * Retrieves the top-N agents ranked by unit consumption over the requested window.
16634
+ *
16635
+ * @param startTime - Inclusive lower bound for the query window
16636
+ * @param endTime - Exclusive upper bound for the query window
16637
+ * @param options - Optional filters
16638
+ * @returns Promise resolving to {@link AgentGetTopConsumptionResponse}
16639
+ * @example
16640
+ * ```typescript
16641
+ * import { Agents } from '@uipath/uipath-typescript/agents';
16642
+ *
16643
+ * const agents = new Agents(sdk);
16644
+ *
16645
+ * // Top agents by consumption in May 2025
16646
+ * const result = await agents.getTopConsumption(
16647
+ * new Date('2025-05-01T00:00:00Z'),
16648
+ * new Date('2025-06-01T00:00:00Z'),
16649
+ * );
16650
+ * console.log(`Total consumed: ${result.totalConsumed}`);
16651
+ * result.agents.forEach((agent) => {
16652
+ * console.log(`${agent.agentName}: ${agent.consumedQuantity}`);
16653
+ * });
16654
+ * ```
16655
+ * @example
16656
+ * ```typescript
16657
+ * import { Agents, AgentType } from '@uipath/uipath-typescript/agents';
16658
+ *
16659
+ * const agents = new Agents(sdk);
16660
+ *
16661
+ * // Top 5 healthy autonomous agents by consumption
16662
+ * const result = await agents.getTopConsumption(
16663
+ * new Date('2025-05-01T00:00:00Z'),
16664
+ * new Date('2025-06-01T00:00:00Z'),
16665
+ * {
16666
+ * limit: 5,
16667
+ * healthy: true,
16668
+ * agentTypes: [AgentType.Autonomous],
16669
+ * },
16670
+ * );
16671
+ * ```
16672
+ */
16673
+ getTopConsumption(startTime: Date, endTime: Date, options?: AgentGetTopConsumptionOptions): Promise<AgentGetTopConsumptionResponse>;
16674
+ /**
16675
+ * Retrieves breakdown of agent incidents count — errors, escalations,
16676
+ * and policy violations over a requested window.
16677
+ *
16678
+ * @param startTime - Inclusive lower bound for the query window
16679
+ * @param endTime - Exclusive upper bound for the query window
16680
+ * @param options - Optional filters
16681
+ * @returns Promise resolving to {@link AgentGetIncidentDistributionResponse}
16682
+ * @example
16683
+ * ```typescript
16684
+ * import { Agents } from '@uipath/uipath-typescript/agents';
16685
+ *
16686
+ * const agents = new Agents(sdk);
16687
+ *
16688
+ * // Incident distribution in May 2025
16689
+ * const result = await agents.getIncidentDistribution(
16690
+ * new Date('2025-05-01T00:00:00Z'),
16691
+ * new Date('2025-06-01T00:00:00Z'),
16692
+ * );
16693
+ * console.log(`Errors: ${result.errorCount}, Escalations: ${result.escalationCount}, Policy: ${result.policyCount}`);
16694
+ * ```
16695
+ * @example
16696
+ * ```typescript
16697
+ * // Scope to specific folders
16698
+ * const result = await agents.getIncidentDistribution(
16699
+ * new Date('2025-05-01T00:00:00Z'),
16700
+ * new Date('2025-06-01T00:00:00Z'),
16701
+ * {
16702
+ * folderKeys: ['<folderKey1>'],
16703
+ * },
16704
+ * );
16705
+ * ```
16706
+ */
16707
+ getIncidentDistribution(startTime: Date, endTime: Date, options?: AgentGetIncidentDistributionOptions): Promise<AgentGetIncidentDistributionResponse>;
16708
+ /**
16709
+ * Retrieves a job-execution summary for the requested window: overall totals
16710
+ * (total jobs, successful jobs, success rate, average duration) alongside a
16711
+ * per-agent breakdown. When `lookbackPeriodAnalysis` is enabled, a comparable
16712
+ * summary for the preceding window of equal length is included too.
16713
+ *
16714
+ * @param startTime - Inclusive lower bound for the query window
16715
+ * @param endTime - Exclusive upper bound for the query window
16716
+ * @param options - Optional filters
16717
+ * @returns Promise resolving to {@link AgentGetSummaryResponse}
16718
+ * @example
16719
+ * ```typescript
16720
+ * import { Agents } from '@uipath/uipath-typescript/agents';
16721
+ *
16722
+ * const agents = new Agents(sdk);
16723
+ *
16724
+ * // Summary for May 2025
16725
+ * const result = await agents.getSummary(
16726
+ * new Date('2025-05-01T00:00:00Z'),
16727
+ * new Date('2025-06-01T00:00:00Z'),
16728
+ * );
16729
+ * console.log(`Success rate: ${result.currentPeriodSummary.successRate}%`);
16730
+ * ```
16731
+ * @example
16732
+ * ```typescript
16733
+ * import { Agents, AgentExecutionType } from '@uipath/uipath-typescript/agents';
16734
+ *
16735
+ * const agents = new Agents(sdk);
16736
+ *
16737
+ * // Runtime-only summary with lookback comparison
16738
+ * const result = await agents.getSummary(
16739
+ * new Date('2025-05-01T00:00:00Z'),
16740
+ * new Date('2025-06-01T00:00:00Z'),
16741
+ * {
16742
+ * lookbackPeriodAnalysis: true,
16743
+ * executionType: AgentExecutionType.Runtime,
16744
+ * },
16745
+ * );
16746
+ * ```
16747
+ */
16748
+ getSummary(startTime: Date, endTime: Date, options?: AgentGetSummaryOptions): Promise<AgentGetSummaryResponse>;
16749
+ /**
16750
+ * Retrieves an aggregate Agent Units and Platform Units consumption summary per agent over the
16751
+ * requested window.
16752
+ *
16753
+ * @param startTime - Inclusive lower bound for the query window
16754
+ * @param endTime - Exclusive upper bound for the query window
16755
+ * @param options - Optional filters
16756
+ * @returns Promise resolving to {@link AgentGetUnitConsumptionSummaryResponse}
16757
+ * @example
16758
+ * ```typescript
16759
+ * import { Agents } from '@uipath/uipath-typescript/agents';
16760
+ *
16761
+ * const agents = new Agents(sdk);
16762
+ *
16763
+ * // Unit consumption summary for May 2025
16764
+ * const result = await agents.getUnitConsumptionSummary(
16765
+ * new Date('2025-05-01T00:00:00Z'),
16766
+ * new Date('2025-06-01T00:00:00Z'),
16767
+ * );
16768
+ * console.log(`Agent Units complete jobs: ${result.currentPeriodSummary.totalAgentUnitConsumption.completeJobs}`);
16769
+ * ```
16770
+ * @example
16771
+ * ```typescript
16772
+ * import { Agents, AgentExecutionType } from '@uipath/uipath-typescript/agents';
16773
+ *
16774
+ * const agents = new Agents(sdk);
16775
+ *
16776
+ * // Runtime-only summary with lookback comparison
16777
+ * const result = await agents.getUnitConsumptionSummary(
16778
+ * new Date('2025-05-01T00:00:00Z'),
16779
+ * new Date('2025-06-01T00:00:00Z'),
16780
+ * {
16781
+ * lookbackPeriodAnalysis: true,
16782
+ * executionType: AgentExecutionType.Runtime,
16783
+ * },
16784
+ * );
16785
+ * ```
16786
+ */
16787
+ getUnitConsumptionSummary(startTime: Date, endTime: Date, options?: AgentGetUnitConsumptionSummaryOptions): Promise<AgentGetUnitConsumptionSummaryResponse>;
16053
16788
  }
16054
16789
 
16055
16790
  /**
@@ -16099,7 +16834,10 @@ interface AgentMemoryGetCallsTimelineOptions extends AgentMemoryFilterOptions {
16099
16834
  * Options for retrieving the top memory spaces.
16100
16835
  */
16101
16836
  interface AgentMemoryGetTopSpacesOptions extends AgentMemoryFilterOptions {
16102
- /** Maximum number of memory spaces to return, ranked by memory count. Defaults to 5 when omitted. */
16837
+ /**
16838
+ * Maximum number of memory spaces to return, ranked by memory count.
16839
+ * @default 5
16840
+ */
16103
16841
  limit?: number;
16104
16842
  }
16105
16843
  /**
@@ -17597,7 +18335,7 @@ interface AgentTraceGetLatencyTimelineOptions extends AgentTraceFilterOptions {
17597
18335
  }
17598
18336
  /**
17599
18337
  * Per-agent unit consumption totals over the requested window (trace-level) —
17600
- * a flat per-(agent, version, folder) breakdown of AGU and PLTU consumed.
18338
+ * a flat per-(agent, version, folder) breakdown of Agent Units and Platform Units consumed.
17601
18339
  */
17602
18340
  interface AgentTraceGetUnitConsumptionResponse {
17603
18341
  /** Agent ID these totals belong to. */
@@ -17769,7 +18507,7 @@ interface AgentTracesServiceModel {
17769
18507
  * // Get per-agent unit consumption
17770
18508
  * const result = await trace.getUnitConsumption();
17771
18509
  * result.forEach((row) => {
17772
- * console.log(`${row.agentId}: ${row.agentUnitsConsumed} AGU, ${row.platformUnitsConsumed} PLTU`);
18510
+ * console.log(`${row.agentId}: ${row.agentUnitsConsumed} Agent Units, ${row.platformUnitsConsumed} Platform Units`);
17773
18511
  * });
17774
18512
  * ```
17775
18513
  * @example
@@ -18119,5 +18857,5 @@ declare const telemetryClient: {
18119
18857
  setUserId(userId: string): void;
18120
18858
  };
18121
18859
 
18122
- export { AgentErrorSortColumn, AgentListSortColumn, AgentMap, AgentMemoryExecutionType, SpanExecutionType as AgentTraceExecutionType, AssetValueScope, AssetValueType, AuthenticationError, AuthorizationError, BucketOptions, CitationErrorType, ConversationGetAllFilterMap, ConversationMap, DEFAULT_ITEMS_FIELD, DEFAULT_PAGE_SIZE, DEFAULT_TOTAL_COUNT_FIELD, DataDirectionType, DebugMode, index as DuFramework, EntityAggregateFunction, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FeedbackStatus, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InstanceFinalStatus, InstanceStatus, InterruptType, JobPriority, JobSourceType, JobState, JobSubState, JobType, JoinType, LogicalOperator$1 as LogicalOperator, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, PolicyEvaluationResult, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, QueryFilterOperator, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, RuntimeType, SLADurationUnit, ServerError, ServerlessJobType, SlaSummaryStatus, SortOrder, SpanAttachmentDirection, SpanAttachmentProvider, SpanExecutionType, SpanPermissionStatus, SpanSource, SpanStatus, SpanVerbosityLevel, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskAssignmentCriteria, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, TaskUserType, TimeInterval, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createCaseWithMethods, createConversationWithMethods, createEntityWithMethods, createJobWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
18123
- export type { AgentAppearance, AgentConversationServiceModel, AgentCreateConversationOptions, AgentError, AgentErrorOrderBy, AgentFilterOptions, AgentGetAllOptions, AgentGetByIdResponse, AgentGetConsumptionTimelineOptions, AgentGetConsumptionTimelineResponse, AgentGetErrorsOptions, AgentGetErrorsTimelineOptions, AgentGetErrorsTimelineResponse, AgentGetLatencyTimelineOptions, AgentGetLatencyTimelineResponse, AgentGetResponse, AgentInput, AgentJobInfo, AgentListItem, AgentListOrderBy, AgentMemoryFilterOptions, AgentMemoryGetCallsTimelineOptions, AgentMemoryGetCallsTimelineResponse, AgentMemoryGetTimelineOptions, AgentMemoryGetTimelineResponse, AgentMemoryGetTopSpacesOptions, AgentMemoryGetTopSpacesResponse, AgentMemoryServiceModel, AgentMethods, AgentServiceModel, AgentSpanGetResponse, AgentStartingPrompt, AgentTraceFilterOptions, AgentTraceGetErrorsTimelineOptions, AgentTraceGetErrorsTimelineResponse, AgentTraceGetLatencyTimelineOptions, AgentTraceGetLatencyTimelineResponse, AgentTraceGetSpansByReferenceOptions, AgentTraceGetUnitConsumptionOptions, AgentTraceGetUnitConsumptionResponse, AgentTracesServiceModel, ArgumentMetadata, AssetGetAllOptions, AssetGetByIdOptions, AssetGetByNameOptions, AssetGetResponse, AssetNewValue, AssetServiceModel, AssetUpdateValueByIdOptions, AsyncInputStream, AsyncInputStreamChunkEvent, AsyncInputStreamEndEvent, AsyncInputStreamEvent, AsyncInputStreamStartEvent, AsyncToolCallStream, AttachmentGetByIdOptions, AttachmentResponse, AttachmentServiceModel, BaseConfig, BaseOptions, BaseProcessStartRequest, BlobItem, BodyOptions, BpmnXmlString, BucketDeleteFileOptions, BucketFile, BucketGetAllOptions, BucketGetByIdOptions, BucketGetByNameOptions, BucketGetFileMetaDataOptions, BucketGetFileMetaDataResponse, BucketGetFileMetaDataWithPaginationOptions, BucketGetFilesOptions, BucketGetReadUriOptions, BucketGetReadUriRequestOptions, BucketGetResponse, BucketGetUriOptions, BucketGetUriResponse, BucketServiceModel, BucketUploadFileOptions, BucketUploadFileRequestOptions, BucketUploadResponse, CaseAppConfig, CaseAppOverview, CaseGetAllResponse, CaseGetAllWithMethodsResponse, CaseGetStageResponse, CaseGetTopDurationResponse, CaseGetTopFaultedCountResponse, CaseGetTopRunCountResponse, CaseInstanceExecutionHistoryResponse, CaseInstanceGetAllOptions, CaseInstanceGetAllWithPaginationOptions, CaseInstanceGetResponse, CaseInstanceMethods, CaseInstanceOperationOptions, CaseInstanceOperationResponse, CaseInstanceReopenOptions, CaseInstanceRun, CaseInstanceSlaSummaryOptions, CaseInstanceStageSLAOptions, CaseInstanceStageSLAResponse, CaseInstanceStageSLAStage, CaseInstancesServiceModel, CaseMethods, CasesServiceModel, ChoiceSetCreateOptions, ChoiceSetDeleteByIdOptions, ChoiceSetGetAllOptions, ChoiceSetGetAllResponse, ChoiceSetGetByIdOptions, ChoiceSetGetResponse, ChoiceSetServiceModel, ChoiceSetUpdateOptions, ChoiceSetValueDeleteOptions, ChoiceSetValueInsertOptions, ChoiceSetValueInsertResponse, ChoiceSetValueUpdateOptions, ChoiceSetValueUpdateResponse, Citation, CitationEndEvent, CitationError, CitationEvent, CitationOptions, CitationSource, CitationSourceBase, CitationSourceMedia, CitationSourceUrl, CitationStartEvent, CollectionResponse, CompletedContentPart, CompletedMessage, CompletedToolCall, ContentPart, ContentPartChunkEvent, ContentPartData, ContentPartEndEvent, ContentPartEvent, ContentPartGetResponse, ContentPartInterrupted, ContentPartStartEvent, ContentPartStartMetaData, ContentPartStream, ConversationAttachmentCreateResponse, ConversationAttachmentUploadResponse, ConversationCreateOptions, ConversationCreateResponse, ConversationDeleteResponse, ConversationEvent, ConversationExchangeServiceModel, ConversationGetAllOptions, ConversationGetResponse, ConversationJobStartOverrides, ConversationMethods, ConversationServiceModel, ConversationSessionMethods, ConversationSessionOptions, ConversationUpdateOptions, ConversationUpdateResponse, ConversationalAgentOptions, ConversationalAgentServiceModel, CreateFeedbackOptions, CustomKeyValuePair, ElementExecutionMetadata, ElementGetTopFailedCountResponse, ElementMetaData, ElementRunMetadata, ElementStats, EntityAggregate, EntityBatchInsertOptions, EntityBatchInsertResponse, EntityCreateFieldOptions, EntityCreateOptions, EntityDeleteAttachmentOptions, EntityDeleteAttachmentResponse, EntityDeleteByIdOptions, EntityDeleteOptions, EntityDeleteRecordByIdOptions, EntityDeleteRecordsOptions, EntityDeleteResponse, EntityDownloadAttachmentOptions, EntityFieldBase, EntityFieldUpdateOptions, EntityFileType, EntityFolderScopedOptions, EntityGetAllOptions, EntityGetAllRecordsOptions, EntityGetByIdOptions, EntityGetRecordByIdOptions, EntityGetRecordsByIdOptions, EntityGetResponse, EntityImportRecordsByIdOptions, EntityImportRecordsResponse, EntityInsertOptions, EntityInsertRecordOptions, EntityInsertRecordsOptions, EntityInsertResponse, EntityMethods, EntityOperationOptions, EntityOperationResponse, EntityQueryFilter, EntityQueryFilterGroup, EntityQueryRecordsOptions, EntityQueryRecordsResponse, EntityQuerySortOption, EntityRecord, EntityRemoveFieldOptions, EntityServiceModel, EntityUpdateByIdOptions, EntityUpdateOptions, EntityUpdateRecordOptions, EntityUpdateRecordResponse, EntityUpdateRecordsOptions, EntityUpdateResponse, EntityUploadAttachmentOptions, EntityUploadAttachmentResponse, ErrorEndEvent, ErrorEvent, ErrorStartEvent, EscalationAction, EscalationRecipient, EscalationRule, EscalationTriggerMetadata, ExceptionReportSubmitResult, Exchange, ExchangeEndEvent, ExchangeEvent, ExchangeGetAllOptions, ExchangeGetByIdOptions, ExchangeGetResponse, ExchangeServiceModel, ExchangeStartEvent, ExchangeStream, ExternalConnection, ExternalField, ExternalFieldMapping, ExternalObject, ExternalSourceFields, ExternalValue, FailureRecord, FeatureFlags, FeedbackCategory, FeedbackCategoryInput, FeedbackCategoryResponse, FeedbackCreateCategoryOptions, FeedbackCreateResponse, FeedbackDeleteCategoryOptions, FeedbackGetAllOptions, FeedbackGetCategoriesOptions, FeedbackGetResponse, FeedbackOptions, FeedbackResponse, FeedbackServiceModel, FeedbackSubmitOptions, FeedbackUpdateOptions, Field$1 as Field, FieldDataType, FieldMetaData, FileUploadAccess, FolderProperties, FolderScopedOptions, GenericInterruptStartEvent, GetTopBaseResponse, GetTopDurationResponse, GetTopFaultedCountResponse, GetTopRunCountResponse, GlobalVariableMetaData, GovernanceFilterOptions, GovernanceOperationSummary, GovernancePolicyTrace, GovernancePolicyTraceGetAllOptions, GovernanceServiceModel, HasPaginationOptions, Headers, HttpMethod, InlineOrExternalValue, InlineValue, InstanceStatusTimelineResponse, Interrupt, InterruptEndEvent, InterruptEvent, InterruptStartEvent, JSONArray, JSONObject, JSONPrimitive, JSONValue, JobAttachment, JobError, JobGetAllOptions, JobGetByIdOptions, JobGetResponse, JobMethods, JobResumeOptions, JobServiceModel, JobStopOptions, LabelUpdatedEvent, Machine, MaestroProcessGetAllResponse, MaestroProcessesServiceModel, MakeOptional, MakeRequired, Message, MessageEndEvent, MessageEvent, MessageGetResponse, MessageServiceModel, MessageStartEvent, MessageStream, MetaData, MetaEvent, NonPaginatedResponse, OAuthFields, OperationResponse, OrchestratorDuModuleServiceModel, PaginatedResponse, PaginationCursor, PaginationMetadata, PaginationMethodUnion, PaginationOptions, PartialUiPathConfig, ProcessExtractedDataOptions, ProcessExtractedDataRequest, ProcessGetAllOptions, ProcessGetByIdOptions, ProcessGetByNameOptions, ProcessGetResponse, ProcessGetTopDurationResponse, ProcessGetTopFaultedCountResponse, ProcessGetTopRunCountResponse, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessIncidentsServiceModel, ProcessInstanceExecutionHistoryResponse, ProcessInstanceGetAllOptions, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceGetResponse, ProcessInstanceGetVariablesOptions, ProcessInstanceGetVariablesResponse, ProcessInstanceMethods, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessInstancesServiceModel, ProcessMetadata, ProcessMethods, ProcessProperties, ProcessServiceModel, ProcessStartOptions, ProcessStartRequest, ProcessStartRequestWithKey, ProcessStartRequestWithName, ProcessStartResponse, QueryParams, QueueGetAllOptions, QueueGetByIdOptions, QueueGetResponse, QueueServiceModel, RawAgentGetByIdResponse, RawAgentGetResponse, RawCaseInstanceGetResponse, RawConversationGetResponse, RawEntityGetResponse, RawJobGetResponse, RawMaestroProcessGetAllResponse, RawProcessInstanceGetResponse, RawTaskCreateResponse, RawTaskGetResponse, RequestOptions, RequestSpec, ResponseDictionary, ResponseType, RetryOptions, RobotMetadata, SessionCapabilities, SessionEndEvent, SessionEndingEvent, SessionStartEvent, SessionStartedEvent, SessionStream, Simplify, SlaSummaryResponse, SourceJoinCriteria, SpanAttachment, SpanContext, SpanGetResponse, SpanReferenceHierarchyEntry, SqlType, StageSLA, StageTask, SubmitExceptionReportOptions, SubmitExceptionReportResponse, Tag, TaskActivity, TaskAssignOptions, TaskAssignment, TaskAssignmentOptions, TaskAssignmentResponse, TaskBaseResponse, TaskCompleteOptions, TaskCompletionOptions, TaskCreateOptions, TaskCreateResponse, TaskGetAllOptions, TaskGetByIdOptions, TaskGetResponse, TaskGetUsersOptions, TaskMethods, TaskServiceModel, TaskSlaDetail, TaskSource, TasksUnassignOptions, TimelineOptions, TimeoutOptions, ToolCall, ToolCallConfirmationEndValue, ToolCallConfirmationEvent, ToolCallConfirmationInterruptStartEvent, ToolCallConfirmationValue, ToolCallEndEvent, ToolCallEvent, ToolCallInputValue, ToolCallOutputValue, ToolCallResult, ToolCallStartEvent, ToolCallStream, TopQueryOptions, TracesGetByIdOptions, TracesServiceModel, UiPathSDKConfig, UserLoginInfo, UserSettingsGetResponse, UserSettingsServiceModel, UserSettingsUpdateOptions, UserSettingsUpdateResponse };
18860
+ export { AgentErrorSortColumn, AgentExecutionType, AgentListSortColumn, AgentMap, AgentMemoryExecutionType, SpanExecutionType as AgentTraceExecutionType, AgentType, AssetValueScope, AssetValueType, AuthenticationError, AuthorizationError, BucketOptions, CitationErrorType, ConversationGetAllFilterMap, ConversationMap, DEFAULT_ITEMS_FIELD, DEFAULT_PAGE_SIZE, DEFAULT_TOTAL_COUNT_FIELD, DataDirectionType, DebugMode, index as DuFramework, EntityAggregateFunction, EntityFieldDataType, EntityType, ErrorType, EscalationActionType, EscalationRecipientScope, EscalationTriggerType, ExchangeMap, FeedbackRating, FeedbackStatus, FieldDisplayType, HttpStatus, InputStreamSpeechSensitivity, InstanceFinalStatus, InstanceStatus, InterruptType, JobPriority, JobSourceType, JobState, JobSubState, JobType, JoinType, LogicalOperator$1 as LogicalOperator, MAX_PAGE_SIZE, MessageMap, MessageRole, NetworkError, NotFoundError, PackageSourceType, PackageType, PolicyEvaluationResult, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, QueryFilterOperator, RateLimitError, ReferenceType, RemoteControlAccess, RobotSize, RuntimeType, SLADurationUnit, ServerError, ServerlessJobType, SlaSummaryStatus, SortOrder, SpanAttachmentDirection, SpanAttachmentProvider, SpanExecutionType, SpanPermissionStatus, SpanSource, SpanStatus, SpanVerbosityLevel, StageTaskType, StartStrategy, StopStrategy, TargetFramework, TaskActivityType, TaskAssignmentCriteria, TaskPriority, TaskSlaCriteria, TaskSlaStatus, TaskSourceName, TaskStatus, TaskType, TaskUserType, TimeInterval, UiPath, UiPathError, UiPathMetaTags, UserSettingsMap, ValidationError, createAgentWithMethods, createCaseInstanceWithMethods, createCaseWithMethods, createConversationWithMethods, createEntityWithMethods, createJobWithMethods, createProcessInstanceWithMethods, createProcessWithMethods, createTaskWithMethods, getAppBase, getAsset, getErrorDetails, getLimitedPageSize, isAuthenticationError, isAuthorizationError, isNetworkError, isNotFoundError, isRateLimitError, isServerError, isUiPathError, isValidationError, loadFromMetaTags, telemetryClient, track, trackEvent };
18861
+ export type { AgentAppearance, AgentConsumption, AgentConversationServiceModel, AgentCreateConversationOptions, AgentError, AgentErrorOrderBy, AgentFilterOptions, AgentGetAllOptions, AgentGetByIdResponse, AgentGetConsumptionTimelineOptions, AgentGetConsumptionTimelineResponse, AgentGetErrorsOptions, AgentGetErrorsTimelineOptions, AgentGetErrorsTimelineResponse, AgentGetIncidentDistributionOptions, AgentGetIncidentDistributionResponse, AgentGetLatencyTimelineOptions, AgentGetLatencyTimelineResponse, AgentGetResponse, AgentGetSummaryOptions, AgentGetSummaryResponse, AgentGetTopConsumptionOptions, AgentGetTopConsumptionResponse, AgentGetTopErrorCountOptions, AgentGetTopErrorCountResponse, AgentGetUnitConsumptionSummaryOptions, AgentGetUnitConsumptionSummaryResponse, AgentInput, AgentJobConsumptionSummary, AgentJobInfo, AgentListItem, AgentListOrderBy, AgentMemoryFilterOptions, AgentMemoryGetCallsTimelineOptions, AgentMemoryGetCallsTimelineResponse, AgentMemoryGetTimelineOptions, AgentMemoryGetTimelineResponse, AgentMemoryGetTopSpacesOptions, AgentMemoryGetTopSpacesResponse, AgentMemoryServiceModel, AgentMethods, AgentServiceModel, AgentSpanGetResponse, AgentStartingPrompt, AgentSummaryEntry, AgentSummaryPeriod, AgentTopErrorCount, AgentTraceFilterOptions, AgentTraceGetErrorsTimelineOptions, AgentTraceGetErrorsTimelineResponse, AgentTraceGetLatencyTimelineOptions, AgentTraceGetLatencyTimelineResponse, AgentTraceGetSpansByReferenceOptions, AgentTraceGetUnitConsumptionOptions, AgentTraceGetUnitConsumptionResponse, AgentTracesServiceModel, AgentUnitConsumptionEntry, AgentUnitConsumptionPeriod, ArgumentMetadata, AssetGetAllOptions, AssetGetByIdOptions, AssetGetByNameOptions, AssetGetResponse, AssetNewValue, AssetServiceModel, AssetUpdateValueByIdOptions, AsyncInputStream, AsyncInputStreamChunkEvent, AsyncInputStreamEndEvent, AsyncInputStreamEvent, AsyncInputStreamStartEvent, AsyncToolCallStream, AttachmentGetByIdOptions, AttachmentResponse, AttachmentServiceModel, BaseConfig, BaseOptions, BaseProcessStartRequest, BlobItem, BodyOptions, BpmnXmlString, BucketDeleteFileOptions, BucketFile, BucketGetAllOptions, BucketGetByIdOptions, BucketGetByNameOptions, BucketGetFileMetaDataOptions, BucketGetFileMetaDataResponse, BucketGetFileMetaDataWithPaginationOptions, BucketGetFilesOptions, BucketGetReadUriOptions, BucketGetReadUriRequestOptions, BucketGetResponse, BucketGetUriOptions, BucketGetUriResponse, BucketServiceModel, BucketUploadFileOptions, BucketUploadFileRequestOptions, BucketUploadResponse, CaseAppConfig, CaseAppOverview, CaseGetAllResponse, CaseGetAllWithMethodsResponse, CaseGetStageResponse, CaseGetTopDurationResponse, CaseGetTopFaultedCountResponse, CaseGetTopRunCountResponse, CaseInstanceExecutionHistoryResponse, CaseInstanceGetAllOptions, CaseInstanceGetAllWithPaginationOptions, CaseInstanceGetResponse, CaseInstanceMethods, CaseInstanceOperationOptions, CaseInstanceOperationResponse, CaseInstanceReopenOptions, CaseInstanceRun, CaseInstanceSlaSummaryOptions, CaseInstanceStageSLAOptions, CaseInstanceStageSLAResponse, CaseInstanceStageSLAStage, CaseInstancesServiceModel, CaseMethods, CasesServiceModel, ChoiceSetCreateOptions, ChoiceSetDeleteByIdOptions, ChoiceSetGetAllOptions, ChoiceSetGetAllResponse, ChoiceSetGetByIdOptions, ChoiceSetGetResponse, ChoiceSetServiceModel, ChoiceSetUpdateOptions, ChoiceSetValueDeleteOptions, ChoiceSetValueInsertOptions, ChoiceSetValueInsertResponse, ChoiceSetValueUpdateOptions, ChoiceSetValueUpdateResponse, Citation, CitationEndEvent, CitationError, CitationEvent, CitationOptions, CitationSource, CitationSourceBase, CitationSourceMedia, CitationSourceUrl, CitationStartEvent, CollectionResponse, CompletedContentPart, CompletedMessage, CompletedToolCall, ContentPart, ContentPartChunkEvent, ContentPartData, ContentPartEndEvent, ContentPartEvent, ContentPartGetResponse, ContentPartInterrupted, ContentPartStartEvent, ContentPartStartMetaData, ContentPartStream, ConversationAttachmentCreateResponse, ConversationAttachmentUploadResponse, ConversationCreateOptions, ConversationCreateResponse, ConversationDeleteResponse, ConversationEvent, ConversationExchangeServiceModel, ConversationGetAllOptions, ConversationGetResponse, ConversationJobStartOverrides, ConversationMethods, ConversationServiceModel, ConversationSessionMethods, ConversationSessionOptions, ConversationUpdateOptions, ConversationUpdateResponse, ConversationalAgentOptions, ConversationalAgentServiceModel, CreateFeedbackOptions, CustomKeyValuePair, DurationStats, ElementExecutionMetadata, ElementGetTopFailedCountResponse, ElementMetaData, ElementRunMetadata, ElementStats, EntityAggregate, EntityBatchInsertOptions, EntityBatchInsertResponse, EntityCreateFieldOptions, EntityCreateOptions, EntityDeleteAttachmentOptions, EntityDeleteAttachmentResponse, EntityDeleteByIdOptions, EntityDeleteOptions, EntityDeleteRecordByIdOptions, EntityDeleteRecordsOptions, EntityDeleteResponse, EntityDownloadAttachmentOptions, EntityFieldBase, EntityFieldUpdateOptions, EntityFileType, EntityFolderScopedOptions, EntityGetAllOptions, EntityGetAllRecordsOptions, EntityGetByIdOptions, EntityGetRecordByIdOptions, EntityGetRecordsByIdOptions, EntityGetResponse, EntityImportRecordsByIdOptions, EntityImportRecordsResponse, EntityInsertOptions, EntityInsertRecordOptions, EntityInsertRecordsOptions, EntityInsertResponse, EntityMethods, EntityOperationOptions, EntityOperationResponse, EntityQueryFilter, EntityQueryFilterGroup, EntityQueryRecordsOptions, EntityQueryRecordsResponse, EntityQuerySortOption, EntityRecord, EntityRemoveFieldOptions, EntityServiceModel, EntityUpdateByIdOptions, EntityUpdateOptions, EntityUpdateRecordOptions, EntityUpdateRecordResponse, EntityUpdateRecordsOptions, EntityUpdateResponse, EntityUploadAttachmentOptions, EntityUploadAttachmentResponse, ErrorEndEvent, ErrorEvent, ErrorStartEvent, EscalationAction, EscalationRecipient, EscalationRule, EscalationTriggerMetadata, ExceptionReportSubmitResult, Exchange, ExchangeEndEvent, ExchangeEvent, ExchangeGetAllOptions, ExchangeGetByIdOptions, ExchangeGetResponse, ExchangeServiceModel, ExchangeStartEvent, ExchangeStream, ExternalConnection, ExternalField, ExternalFieldMapping, ExternalObject, ExternalSourceFields, ExternalValue, FailureRecord, FeatureFlags, FeedbackCategory, FeedbackCategoryInput, FeedbackCategoryResponse, FeedbackCreateCategoryOptions, FeedbackCreateResponse, FeedbackDeleteCategoryOptions, FeedbackGetAllOptions, FeedbackGetCategoriesOptions, FeedbackGetResponse, FeedbackOptions, FeedbackResponse, FeedbackServiceModel, FeedbackSubmitOptions, FeedbackUpdateOptions, Field$1 as Field, FieldDataType, FieldMetaData, FileUploadAccess, FolderProperties, FolderScopedOptions, GenericInterruptStartEvent, GetTopBaseResponse, GetTopDurationResponse, GetTopFaultedCountResponse, GetTopRunCountResponse, GlobalVariableMetaData, GovernanceFilterOptions, GovernanceOperationSummary, GovernancePolicyTrace, GovernancePolicyTraceGetAllOptions, GovernanceServiceModel, HasPaginationOptions, Headers, HttpMethod, InlineOrExternalValue, InlineValue, InstanceStats, InstanceStatusTimelineResponse, Interrupt, InterruptEndEvent, InterruptEvent, InterruptStartEvent, JSONArray, JSONObject, JSONPrimitive, JSONValue, JobAttachment, JobError, JobGetAllOptions, JobGetByIdOptions, JobGetResponse, JobMethods, JobResumeOptions, JobServiceModel, JobStopOptions, LabelUpdatedEvent, Machine, MaestroProcessGetAllResponse, MaestroProcessStatsRequest, MaestroProcessesServiceModel, MakeOptional, MakeRequired, Message, MessageEndEvent, MessageEvent, MessageGetResponse, MessageServiceModel, MessageStartEvent, MessageStream, MetaData, MetaEvent, NonPaginatedResponse, OAuthFields, OperationResponse, OrchestratorDuModuleServiceModel, PaginatedResponse, PaginationCursor, PaginationMetadata, PaginationMethodUnion, PaginationOptions, PartialUiPathConfig, ProcessExtractedDataOptions, ProcessExtractedDataRequest, ProcessGetAllOptions, ProcessGetByIdOptions, ProcessGetByNameOptions, ProcessGetResponse, ProcessGetTopDurationResponse, ProcessGetTopFaultedCountResponse, ProcessGetTopRunCountResponse, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessIncidentsServiceModel, ProcessInstanceExecutionHistoryResponse, ProcessInstanceGetAllOptions, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceGetResponse, ProcessInstanceGetVariablesOptions, ProcessInstanceGetVariablesResponse, ProcessInstanceMethods, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessInstancesServiceModel, ProcessMetadata, ProcessMethods, ProcessProperties, ProcessServiceModel, ProcessStartOptions, ProcessStartRequest, ProcessStartRequestWithKey, ProcessStartRequestWithName, ProcessStartResponse, QueryParams, QueueGetAllOptions, QueueGetByIdOptions, QueueGetResponse, QueueServiceModel, RawAgentGetByIdResponse, RawAgentGetResponse, RawCaseInstanceGetResponse, RawConversationGetResponse, RawEntityGetResponse, RawJobGetResponse, RawMaestroProcessGetAllResponse, RawProcessInstanceGetResponse, RawTaskCreateResponse, RawTaskGetResponse, RequestOptions, RequestSpec, ResponseDictionary, ResponseType, RetryOptions, RobotMetadata, SessionCapabilities, SessionEndEvent, SessionEndingEvent, SessionStartEvent, SessionStartedEvent, SessionStream, Simplify, SlaSummaryResponse, SourceJoinCriteria, SpanAttachment, SpanContext, SpanGetResponse, SpanReferenceHierarchyEntry, SqlType, StageSLA, StageTask, SubmitExceptionReportOptions, SubmitExceptionReportResponse, Tag, TaskActivity, TaskAssignOptions, TaskAssignment, TaskAssignmentOptions, TaskAssignmentResponse, TaskBaseResponse, TaskCompleteOptions, TaskCompletionOptions, TaskCreateOptions, TaskCreateResponse, TaskGetAllOptions, TaskGetByIdOptions, TaskGetResponse, TaskGetUsersOptions, TaskMethods, TaskServiceModel, TaskSlaDetail, TaskSource, TasksUnassignOptions, TimelineOptions, TimeoutOptions, ToolCall, ToolCallConfirmationEndValue, ToolCallConfirmationEvent, ToolCallConfirmationInterruptStartEvent, ToolCallConfirmationValue, ToolCallEndEvent, ToolCallEvent, ToolCallInputValue, ToolCallOutputValue, ToolCallResult, ToolCallStartEvent, ToolCallStream, TopQueryOptions, TracesGetByIdOptions, TracesServiceModel, UiPathSDKConfig, UserLoginInfo, UserSettingsGetResponse, UserSettingsServiceModel, UserSettingsUpdateOptions, UserSettingsUpdateResponse };