@uipath/uipath-typescript 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-memory/index.cjs +16 -9
- package/dist/agent-memory/index.mjs +16 -9
- package/dist/agents/index.cjs +278 -9
- package/dist/agents/index.d.ts +465 -6
- package/dist/agents/index.mjs +279 -10
- package/dist/assets/index.cjs +16 -9
- package/dist/assets/index.mjs +16 -9
- package/dist/attachments/index.cjs +16 -9
- package/dist/attachments/index.mjs +16 -9
- package/dist/buckets/index.cjs +114 -124
- package/dist/buckets/index.d.ts +197 -84
- package/dist/buckets/index.mjs +114 -124
- package/dist/cases/index.cjs +79 -13
- package/dist/cases/index.d.ts +30 -3
- package/dist/cases/index.mjs +79 -13
- package/dist/conversational-agent/index.cjs +16 -9
- package/dist/conversational-agent/index.mjs +16 -9
- package/dist/core/index.cjs +35 -6
- package/dist/core/index.mjs +35 -6
- package/dist/document-understanding/index.cjs +84 -84
- package/dist/document-understanding/index.d.ts +2 -1
- package/dist/document-understanding/index.mjs +1 -1
- package/dist/entities/index.cjs +253 -69
- package/dist/entities/index.d.ts +343 -116
- package/dist/entities/index.mjs +253 -69
- package/dist/feedback/index.cjs +16 -9
- package/dist/feedback/index.mjs +16 -9
- package/dist/governance/index.cjs +16 -9
- package/dist/governance/index.mjs +16 -9
- package/dist/index.cjs +529 -193
- package/dist/index.d.ts +2141 -750
- package/dist/index.mjs +529 -194
- package/dist/index.umd.js +529 -193
- package/dist/jobs/index.cjs +16 -9
- package/dist/jobs/index.mjs +16 -9
- package/dist/maestro-processes/index.cjs +16 -9
- package/dist/maestro-processes/index.mjs +16 -9
- package/dist/orchestrator-du-module/index.cjs +1788 -0
- package/dist/orchestrator-du-module/index.d.ts +757 -0
- package/dist/orchestrator-du-module/index.mjs +1785 -0
- package/dist/processes/index.cjs +16 -9
- package/dist/processes/index.mjs +16 -9
- package/dist/queues/index.cjs +16 -9
- package/dist/queues/index.mjs +16 -9
- package/dist/tasks/index.cjs +79 -13
- package/dist/tasks/index.d.ts +109 -4
- package/dist/tasks/index.mjs +80 -14
- package/dist/traces/index.cjs +303 -9
- package/dist/traces/index.d.ts +482 -2
- package/dist/traces/index.mjs +302 -10
- package/package.json +11 -1
package/dist/agents/index.d.ts
CHANGED
|
@@ -378,14 +378,153 @@ interface AgentListItem {
|
|
|
378
378
|
quantityPLTU: number;
|
|
379
379
|
}
|
|
380
380
|
/**
|
|
381
|
-
* Options for
|
|
381
|
+
* Options for getting the list of agents.
|
|
382
382
|
*
|
|
383
383
|
* Composes filter, pagination, and sort options.
|
|
384
384
|
*/
|
|
385
|
-
type
|
|
385
|
+
type AgentGetAllOptions = AgentFilterOptions & PaginationOptions & {
|
|
386
386
|
/** Sort order for the result set. */
|
|
387
387
|
orderBy?: AgentListOrderBy;
|
|
388
388
|
};
|
|
389
|
+
/**
|
|
390
|
+
* Summary information about a single job execution — included on every
|
|
391
|
+
* error entry to anchor the window.
|
|
392
|
+
*/
|
|
393
|
+
interface AgentJobInfo {
|
|
394
|
+
/** Job key */
|
|
395
|
+
jobKey: string;
|
|
396
|
+
/** Folder key the job ran in */
|
|
397
|
+
folderKey: string;
|
|
398
|
+
/** Display name of the folder */
|
|
399
|
+
folderName: string;
|
|
400
|
+
/** Fully qualified folder path */
|
|
401
|
+
folderPath: string;
|
|
402
|
+
/** Job start time */
|
|
403
|
+
startTime: string;
|
|
404
|
+
/** Job end time. `null` while the job is still running. */
|
|
405
|
+
endTime: string | null;
|
|
406
|
+
/** Process key the job was launched from. `null` for ad-hoc jobs. */
|
|
407
|
+
processKey: string | null;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Columns available for ordering / grouping the agent errors list.
|
|
411
|
+
*/
|
|
412
|
+
declare enum AgentErrorSortColumn {
|
|
413
|
+
AgentId = "AgentId",
|
|
414
|
+
AgentName = "AgentName",
|
|
415
|
+
ParentProcessName = "ParentProcessName",
|
|
416
|
+
ErrorTitle = "ErrorTitle",
|
|
417
|
+
FirstSeenStartTime = "FirstSeenStartTime",
|
|
418
|
+
ExecutionCount = "ExecutionCount",
|
|
419
|
+
Type = "Type",
|
|
420
|
+
FirstSeenFolderName = "FirstSeenFolderName",
|
|
421
|
+
FirstSeenFolderPath = "FirstSeenFolderPath",
|
|
422
|
+
LastSeenStartTime = "LastSeenStartTime",
|
|
423
|
+
LastSeenFolderName = "LastSeenFolderName",
|
|
424
|
+
LastSeenFolderPath = "LastSeenFolderPath"
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Ordering directive for the agent errors list.
|
|
428
|
+
*/
|
|
429
|
+
interface AgentErrorOrderBy {
|
|
430
|
+
/** Column to sort by */
|
|
431
|
+
column: AgentErrorSortColumn;
|
|
432
|
+
/** Sort descending. Defaults to false (ascending) server-side. */
|
|
433
|
+
desc?: boolean;
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* One error in the agent errors list — an error/error-class observed
|
|
437
|
+
* for an agent over the requested window.
|
|
438
|
+
*/
|
|
439
|
+
interface AgentError {
|
|
440
|
+
/** Error type */
|
|
441
|
+
type: string;
|
|
442
|
+
/** Error description */
|
|
443
|
+
description: string;
|
|
444
|
+
/** Agent ID */
|
|
445
|
+
agentId: string;
|
|
446
|
+
/** Agent display name. `null` if the agent has no display name set. */
|
|
447
|
+
agentName: string | null;
|
|
448
|
+
/** Job key where the error was first seen */
|
|
449
|
+
jobKey: string;
|
|
450
|
+
/** Parent process name. `null` for jobs not bound to a parent process. */
|
|
451
|
+
parentProcess: string | null;
|
|
452
|
+
/** First-seen timestamp */
|
|
453
|
+
firstSeen: string;
|
|
454
|
+
/** Folder key where the error was first observed */
|
|
455
|
+
folderKey: string;
|
|
456
|
+
/** Folder display name */
|
|
457
|
+
folderName: string;
|
|
458
|
+
/** Fully qualified folder path */
|
|
459
|
+
folderPath: string;
|
|
460
|
+
/** Number of error executions counted for this error */
|
|
461
|
+
count: number;
|
|
462
|
+
/** First job in the window where this error was observed */
|
|
463
|
+
firstSeenJob: AgentJobInfo;
|
|
464
|
+
/** Last job in the window where this error was observed */
|
|
465
|
+
lastSeenJob: AgentJobInfo;
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Options for the agent errors list.
|
|
469
|
+
*
|
|
470
|
+
* Composes filter, pagination, and sort/group options.
|
|
471
|
+
*/
|
|
472
|
+
type AgentGetErrorsOptions = AgentFilterOptions & PaginationOptions & {
|
|
473
|
+
/** Sort order for the result set. */
|
|
474
|
+
orderBy?: AgentErrorOrderBy;
|
|
475
|
+
/** Group results by one or more columns. */
|
|
476
|
+
groupBy?: AgentErrorSortColumn[];
|
|
477
|
+
};
|
|
478
|
+
/**
|
|
479
|
+
* A single point on the agent errors timeline
|
|
480
|
+
*/
|
|
481
|
+
interface AgentGetErrorsTimelineResponse {
|
|
482
|
+
/** Agent name */
|
|
483
|
+
name: string;
|
|
484
|
+
/** Error count in this time bucket */
|
|
485
|
+
value: number;
|
|
486
|
+
/** Bucket timestamp (ISO 8601, UTC) */
|
|
487
|
+
date: string;
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Options for getting the agent errors timeline.
|
|
491
|
+
*/
|
|
492
|
+
interface AgentGetErrorsTimelineOptions extends AgentFilterOptions {
|
|
493
|
+
/** Max number of agents to return. Defaults to 10 server-side. */
|
|
494
|
+
limit?: number;
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* A single point on the agent consumption timeline
|
|
498
|
+
*/
|
|
499
|
+
interface AgentGetConsumptionTimelineResponse {
|
|
500
|
+
/** Bucket timestamp (ISO 8601, UTC) */
|
|
501
|
+
timeSlice: string;
|
|
502
|
+
/** AGU quantity consumed in this time bucket */
|
|
503
|
+
aguConsumption: number;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Options for getting the agent consumption timeline.
|
|
507
|
+
*/
|
|
508
|
+
interface AgentGetConsumptionTimelineOptions extends AgentFilterOptions {
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* A single point on the agent latency timeline
|
|
512
|
+
*/
|
|
513
|
+
interface AgentGetLatencyTimelineResponse {
|
|
514
|
+
/**
|
|
515
|
+
* Percentile label for this point — observed values: `"P50"`, `"P95"`.
|
|
516
|
+
*/
|
|
517
|
+
name: string;
|
|
518
|
+
/** Latency value in milliseconds. */
|
|
519
|
+
value: number;
|
|
520
|
+
/** Bucket timestamp (ISO 8601, UTC) */
|
|
521
|
+
date: string;
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Options for getting the agent latency timeline.
|
|
525
|
+
*/
|
|
526
|
+
interface AgentGetLatencyTimelineOptions extends AgentFilterOptions {
|
|
527
|
+
}
|
|
389
528
|
|
|
390
529
|
/**
|
|
391
530
|
* Service for retrieving runtime data for UiPath Agents.
|
|
@@ -441,7 +580,164 @@ interface AgentServiceModel {
|
|
|
441
580
|
* }
|
|
442
581
|
* ```
|
|
443
582
|
*/
|
|
444
|
-
getAll<T extends
|
|
583
|
+
getAll<T extends AgentGetAllOptions = AgentGetAllOptions>(startTime: Date, endTime: Date, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<AgentListItem> : NonPaginatedResponse<AgentListItem>>;
|
|
584
|
+
/**
|
|
585
|
+
* Retrieves agent errors (error-classes observed for agents) over the
|
|
586
|
+
* requested window.
|
|
587
|
+
*
|
|
588
|
+
* Returns a {@link PaginatedResponse} when pagination options (`pageSize`,
|
|
589
|
+
* `cursor`, or `jumpToPage`) are provided, otherwise a
|
|
590
|
+
* {@link NonPaginatedResponse}.
|
|
591
|
+
*
|
|
592
|
+
* @param startTime - Inclusive lower bound for the query window
|
|
593
|
+
* @param endTime - Exclusive upper bound for the query window
|
|
594
|
+
* @param options - Optional pagination, sort/group, and filters
|
|
595
|
+
* @returns Promise resolving to a paginated or non-paginated list of {@link AgentError}
|
|
596
|
+
* @example
|
|
597
|
+
* ```typescript
|
|
598
|
+
* import { Agents, AgentErrorSortColumn } from '@uipath/uipath-typescript/agents';
|
|
599
|
+
*
|
|
600
|
+
* const agents = new Agents(sdk);
|
|
601
|
+
*
|
|
602
|
+
* // Non-paginated — errors in the window
|
|
603
|
+
* const result = await agents.getErrors(
|
|
604
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
605
|
+
* new Date('2026-05-14T00:00:00Z'),
|
|
606
|
+
* );
|
|
607
|
+
* result.items.forEach((error) => {
|
|
608
|
+
* console.log(`${error.type}: ${error.description} (count=${error.count})`);
|
|
609
|
+
* });
|
|
610
|
+
*
|
|
611
|
+
* // Paginated — sorted by execution count descending
|
|
612
|
+
* const page = await agents.getErrors(
|
|
613
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
614
|
+
* new Date('2026-05-14T00:00:00Z'),
|
|
615
|
+
* {
|
|
616
|
+
* pageSize: 25,
|
|
617
|
+
* orderBy: { column: AgentErrorSortColumn.ExecutionCount, desc: true },
|
|
618
|
+
* },
|
|
619
|
+
* );
|
|
620
|
+
*
|
|
621
|
+
* if (page.hasNextPage && page.nextCursor) {
|
|
622
|
+
* const next = await agents.getErrors(
|
|
623
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
624
|
+
* new Date('2026-05-14T00:00:00Z'),
|
|
625
|
+
* { cursor: page.nextCursor },
|
|
626
|
+
* );
|
|
627
|
+
* }
|
|
628
|
+
* ```
|
|
629
|
+
*/
|
|
630
|
+
getErrors<T extends AgentGetErrorsOptions = AgentGetErrorsOptions>(startTime: Date, endTime: Date, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<AgentError> : NonPaginatedResponse<AgentError>>;
|
|
631
|
+
/**
|
|
632
|
+
* Retrieves a time-series of error counts grouped by agent over the requested window.
|
|
633
|
+
*
|
|
634
|
+
* @param startTime - Inclusive lower bound for the query window
|
|
635
|
+
* @param endTime - Exclusive upper bound for the query window
|
|
636
|
+
* @param options - Optional filters
|
|
637
|
+
* @returns Promise resolving to an array of {@link AgentGetErrorsTimelineResponse}
|
|
638
|
+
* @example
|
|
639
|
+
* ```typescript
|
|
640
|
+
* import { Agents } from '@uipath/uipath-typescript/agents';
|
|
641
|
+
*
|
|
642
|
+
* const agents = new Agents(sdk);
|
|
643
|
+
*
|
|
644
|
+
* // All errors in May 2025
|
|
645
|
+
* const result = await agents.getErrorsTimeline(
|
|
646
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
647
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
648
|
+
* );
|
|
649
|
+
* result.forEach((point) => {
|
|
650
|
+
* console.log(`${point.date} ${point.name}: ${point.value} errors`);
|
|
651
|
+
* });
|
|
652
|
+
* ```
|
|
653
|
+
* @example
|
|
654
|
+
* ```typescript
|
|
655
|
+
* // Scope to specific folders and top 5 agents
|
|
656
|
+
* const result = await agents.getErrorsTimeline(
|
|
657
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
658
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
659
|
+
* {
|
|
660
|
+
* folderKeys: ['<folderKey1>'],
|
|
661
|
+
* agentNames: ['JokeAgent', 'StoryAgent'],
|
|
662
|
+
* limit: 5,
|
|
663
|
+
* },
|
|
664
|
+
* );
|
|
665
|
+
* ```
|
|
666
|
+
*/
|
|
667
|
+
getErrorsTimeline(startTime: Date, endTime: Date, options?: AgentGetErrorsTimelineOptions): Promise<AgentGetErrorsTimelineResponse[]>;
|
|
668
|
+
/**
|
|
669
|
+
* Retrieves a time-series of AGU (Agent Units) consumption over the requested window.
|
|
670
|
+
*
|
|
671
|
+
* @param startTime - Inclusive lower bound for the query window
|
|
672
|
+
* @param endTime - Exclusive upper bound for the query window
|
|
673
|
+
* @param options - Optional filters
|
|
674
|
+
* @returns Promise resolving to an array of {@link AgentGetConsumptionTimelineResponse}
|
|
675
|
+
* @example
|
|
676
|
+
* ```typescript
|
|
677
|
+
* import { Agents } from '@uipath/uipath-typescript/agents';
|
|
678
|
+
*
|
|
679
|
+
* const agents = new Agents(sdk);
|
|
680
|
+
*
|
|
681
|
+
* // AGU consumption timeline in May 2025
|
|
682
|
+
* const result = await agents.getConsumptionTimeline(
|
|
683
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
684
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
685
|
+
* );
|
|
686
|
+
* result.forEach((point) => {
|
|
687
|
+
* console.log(`${point.timeSlice}: ${point.aguConsumption} AGU`);
|
|
688
|
+
* });
|
|
689
|
+
* ```
|
|
690
|
+
* @example
|
|
691
|
+
* ```typescript
|
|
692
|
+
* // Scope to specific folders and agents
|
|
693
|
+
* const result = await agents.getConsumptionTimeline(
|
|
694
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
695
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
696
|
+
* {
|
|
697
|
+
* folderKeys: ['<folderKey1>'],
|
|
698
|
+
* agentNames: ['JokeAgent'],
|
|
699
|
+
* },
|
|
700
|
+
* );
|
|
701
|
+
* ```
|
|
702
|
+
*/
|
|
703
|
+
getConsumptionTimeline(startTime: Date, endTime: Date, options?: AgentGetConsumptionTimelineOptions): Promise<AgentGetConsumptionTimelineResponse[]>;
|
|
704
|
+
/**
|
|
705
|
+
* Retrieves a time-series of agent latency (milliseconds) over the requested
|
|
706
|
+
* window.
|
|
707
|
+
*
|
|
708
|
+
* @param startTime - Inclusive lower bound for the query window
|
|
709
|
+
* @param endTime - Exclusive upper bound for the query window
|
|
710
|
+
* @param options - Optional filters
|
|
711
|
+
* @returns Promise resolving to an array of {@link AgentGetLatencyTimelineResponse}
|
|
712
|
+
* @example
|
|
713
|
+
* ```typescript
|
|
714
|
+
* import { Agents } from '@uipath/uipath-typescript/agents';
|
|
715
|
+
*
|
|
716
|
+
* const agents = new Agents(sdk);
|
|
717
|
+
*
|
|
718
|
+
* // Latency timeline in May 2025
|
|
719
|
+
* const result = await agents.getLatencyTimeline(
|
|
720
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
721
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
722
|
+
* );
|
|
723
|
+
* result.forEach((point) => {
|
|
724
|
+
* console.log(`${point.date} ${point.name}: ${point.value} ms`);
|
|
725
|
+
* });
|
|
726
|
+
* ```
|
|
727
|
+
* @example
|
|
728
|
+
* ```typescript
|
|
729
|
+
* // Scope to specific folders and a single agent
|
|
730
|
+
* const result = await agents.getLatencyTimeline(
|
|
731
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
732
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
733
|
+
* {
|
|
734
|
+
* folderKeys: ['<folderKey1>'],
|
|
735
|
+
* agentId: '<agentId>',
|
|
736
|
+
* },
|
|
737
|
+
* );
|
|
738
|
+
* ```
|
|
739
|
+
*/
|
|
740
|
+
getLatencyTimeline(startTime: Date, endTime: Date, options?: AgentGetLatencyTimelineOptions): Promise<AgentGetLatencyTimelineResponse[]>;
|
|
445
741
|
}
|
|
446
742
|
|
|
447
743
|
/**
|
|
@@ -495,8 +791,171 @@ declare class AgentService extends BaseService implements AgentServiceModel {
|
|
|
495
791
|
* }
|
|
496
792
|
* ```
|
|
497
793
|
*/
|
|
498
|
-
getAll<T extends
|
|
794
|
+
getAll<T extends AgentGetAllOptions = AgentGetAllOptions>(startTime: Date, endTime: Date, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<AgentListItem> : NonPaginatedResponse<AgentListItem>>;
|
|
795
|
+
/**
|
|
796
|
+
* Retrieves agent errors (error-classes observed for agents) over the
|
|
797
|
+
* requested window.
|
|
798
|
+
*
|
|
799
|
+
* Returns a {@link PaginatedResponse} when pagination options (`pageSize`,
|
|
800
|
+
* `cursor`, or `jumpToPage`) are provided, otherwise a
|
|
801
|
+
* {@link NonPaginatedResponse}.
|
|
802
|
+
*
|
|
803
|
+
* @param startTime - Inclusive lower bound for the query window
|
|
804
|
+
* @param endTime - Exclusive upper bound for the query window
|
|
805
|
+
* @param options - Optional pagination, sort/group, and filters
|
|
806
|
+
* @returns Promise resolving to a paginated or non-paginated list of {@link AgentError}
|
|
807
|
+
* @example
|
|
808
|
+
* ```typescript
|
|
809
|
+
* import { Agents, AgentErrorSortColumn } from '@uipath/uipath-typescript/agents';
|
|
810
|
+
*
|
|
811
|
+
* const agents = new Agents(sdk);
|
|
812
|
+
*
|
|
813
|
+
* // Non-paginated — errors in the window
|
|
814
|
+
* const result = await agents.getErrors(
|
|
815
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
816
|
+
* new Date('2026-05-14T00:00:00Z'),
|
|
817
|
+
* );
|
|
818
|
+
* result.items.forEach((error) => {
|
|
819
|
+
* console.log(`${error.type}: ${error.description} (count=${error.count})`);
|
|
820
|
+
* });
|
|
821
|
+
*
|
|
822
|
+
* // Paginated — sorted by execution count descending
|
|
823
|
+
* const page = await agents.getErrors(
|
|
824
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
825
|
+
* new Date('2026-05-14T00:00:00Z'),
|
|
826
|
+
* {
|
|
827
|
+
* pageSize: 25,
|
|
828
|
+
* orderBy: { column: AgentErrorSortColumn.ExecutionCount, desc: true },
|
|
829
|
+
* },
|
|
830
|
+
* );
|
|
831
|
+
*
|
|
832
|
+
* if (page.hasNextPage && page.nextCursor) {
|
|
833
|
+
* const next = await agents.getErrors(
|
|
834
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
835
|
+
* new Date('2026-05-14T00:00:00Z'),
|
|
836
|
+
* { cursor: page.nextCursor },
|
|
837
|
+
* );
|
|
838
|
+
* }
|
|
839
|
+
* ```
|
|
840
|
+
*/
|
|
841
|
+
getErrors<T extends AgentGetErrorsOptions = AgentGetErrorsOptions>(startTime: Date, endTime: Date, options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<AgentError> : NonPaginatedResponse<AgentError>>;
|
|
842
|
+
/**
|
|
843
|
+
* Retrieves a time-series of error counts grouped by agent over the requested window.
|
|
844
|
+
*
|
|
845
|
+
* @param startTime - Inclusive lower bound for the query window
|
|
846
|
+
* @param endTime - Exclusive upper bound for the query window
|
|
847
|
+
* @param options - Optional filters
|
|
848
|
+
* @returns Promise resolving to an array of {@link AgentGetErrorsTimelineResponse}
|
|
849
|
+
* @example
|
|
850
|
+
* ```typescript
|
|
851
|
+
* import { Agents } from '@uipath/uipath-typescript/agents';
|
|
852
|
+
*
|
|
853
|
+
* const agents = new Agents(sdk);
|
|
854
|
+
*
|
|
855
|
+
* // All errors in May 2025
|
|
856
|
+
* const result = await agents.getErrorsTimeline(
|
|
857
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
858
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
859
|
+
* );
|
|
860
|
+
* result.forEach((point) => {
|
|
861
|
+
* console.log(`${point.date} ${point.name}: ${point.value} errors`);
|
|
862
|
+
* });
|
|
863
|
+
* ```
|
|
864
|
+
* @example
|
|
865
|
+
* ```typescript
|
|
866
|
+
* // Scope to specific folders and top 5 agents
|
|
867
|
+
* const result = await agents.getErrorsTimeline(
|
|
868
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
869
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
870
|
+
* {
|
|
871
|
+
* folderKeys: ['<folderKey1>'],
|
|
872
|
+
* agentNames: ['JokeAgent', 'StoryAgent'],
|
|
873
|
+
* limit: 5,
|
|
874
|
+
* },
|
|
875
|
+
* );
|
|
876
|
+
* ```
|
|
877
|
+
*/
|
|
878
|
+
getErrorsTimeline(startTime: Date, endTime: Date, options?: AgentGetErrorsTimelineOptions): Promise<AgentGetErrorsTimelineResponse[]>;
|
|
879
|
+
/**
|
|
880
|
+
* Retrieves a time-series of AGU (Agent Units) consumption over the requested window.
|
|
881
|
+
*
|
|
882
|
+
* @param startTime - Inclusive lower bound for the query window
|
|
883
|
+
* @param endTime - Exclusive upper bound for the query window
|
|
884
|
+
* @param options - Optional filters
|
|
885
|
+
* @returns Promise resolving to an array of {@link AgentGetConsumptionTimelineResponse}
|
|
886
|
+
* @example
|
|
887
|
+
* ```typescript
|
|
888
|
+
* import { Agents } from '@uipath/uipath-typescript/agents';
|
|
889
|
+
*
|
|
890
|
+
* const agents = new Agents(sdk);
|
|
891
|
+
*
|
|
892
|
+
* // AGU consumption timeline in May 2025
|
|
893
|
+
* const result = await agents.getConsumptionTimeline(
|
|
894
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
895
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
896
|
+
* );
|
|
897
|
+
* result.forEach((point) => {
|
|
898
|
+
* console.log(`${point.timeSlice}: ${point.aguConsumption} AGU`);
|
|
899
|
+
* });
|
|
900
|
+
* ```
|
|
901
|
+
* @example
|
|
902
|
+
* ```typescript
|
|
903
|
+
* // Scope to specific folders and agents
|
|
904
|
+
* const result = await agents.getConsumptionTimeline(
|
|
905
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
906
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
907
|
+
* {
|
|
908
|
+
* folderKeys: ['<folderKey1>'],
|
|
909
|
+
* agentNames: ['JokeAgent'],
|
|
910
|
+
* },
|
|
911
|
+
* );
|
|
912
|
+
* ```
|
|
913
|
+
*/
|
|
914
|
+
getConsumptionTimeline(startTime: Date, endTime: Date, options?: AgentGetConsumptionTimelineOptions): Promise<AgentGetConsumptionTimelineResponse[]>;
|
|
915
|
+
/**
|
|
916
|
+
* Retrieves a time-series of agent latency (milliseconds) over the requested
|
|
917
|
+
* window.
|
|
918
|
+
*
|
|
919
|
+
* @param startTime - Inclusive lower bound for the query window
|
|
920
|
+
* @param endTime - Exclusive upper bound for the query window
|
|
921
|
+
* @param options - Optional filters
|
|
922
|
+
* @returns Promise resolving to an array of {@link AgentGetLatencyTimelineResponse}
|
|
923
|
+
* @example
|
|
924
|
+
* ```typescript
|
|
925
|
+
* import { Agents } from '@uipath/uipath-typescript/agents';
|
|
926
|
+
*
|
|
927
|
+
* const agents = new Agents(sdk);
|
|
928
|
+
*
|
|
929
|
+
* // Latency timeline in May 2025
|
|
930
|
+
* const result = await agents.getLatencyTimeline(
|
|
931
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
932
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
933
|
+
* );
|
|
934
|
+
* result.forEach((point) => {
|
|
935
|
+
* console.log(`${point.date} ${point.name}: ${point.value} ms`);
|
|
936
|
+
* });
|
|
937
|
+
* ```
|
|
938
|
+
* @example
|
|
939
|
+
* ```typescript
|
|
940
|
+
* // Scope to specific folders and a single agent
|
|
941
|
+
* const result = await agents.getLatencyTimeline(
|
|
942
|
+
* new Date('2025-05-01T00:00:00Z'),
|
|
943
|
+
* new Date('2025-06-01T00:00:00Z'),
|
|
944
|
+
* {
|
|
945
|
+
* folderKeys: ['<folderKey1>'],
|
|
946
|
+
* agentId: '<agentId>',
|
|
947
|
+
* },
|
|
948
|
+
* );
|
|
949
|
+
* ```
|
|
950
|
+
*/
|
|
951
|
+
getLatencyTimeline(startTime: Date, endTime: Date, options?: AgentGetLatencyTimelineOptions): Promise<AgentGetLatencyTimelineResponse[]>;
|
|
952
|
+
/**
|
|
953
|
+
* Builds the common POST request body shared by the agent filter endpoints —
|
|
954
|
+
* the required time window plus any optional folder/agent/project/process
|
|
955
|
+
* filters. Undefined options are omitted so the server applies its defaults.
|
|
956
|
+
*/
|
|
957
|
+
private buildAgentFilterBody;
|
|
499
958
|
}
|
|
500
959
|
|
|
501
|
-
export { AgentListSortColumn, AgentService as Agents };
|
|
502
|
-
export type { AgentFilterOptions,
|
|
960
|
+
export { AgentErrorSortColumn, AgentListSortColumn, AgentService as Agents };
|
|
961
|
+
export type { AgentError, AgentErrorOrderBy, AgentFilterOptions, AgentGetAllOptions, AgentGetConsumptionTimelineOptions, AgentGetConsumptionTimelineResponse, AgentGetErrorsOptions, AgentGetErrorsTimelineOptions, AgentGetErrorsTimelineResponse, AgentGetLatencyTimelineOptions, AgentGetLatencyTimelineResponse, AgentJobInfo, AgentListItem, AgentListOrderBy, AgentServiceModel };
|