@uipath/uipath-typescript 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/assets/index.cjs +107 -6
- package/dist/assets/index.d.ts +12 -1
- package/dist/assets/index.mjs +107 -6
- package/dist/attachments/index.cjs +95 -3
- package/dist/attachments/index.mjs +95 -3
- package/dist/buckets/index.cjs +111 -6
- package/dist/buckets/index.d.ts +12 -1
- package/dist/buckets/index.mjs +111 -6
- package/dist/cases/index.cjs +434 -266
- package/dist/cases/index.d.ts +140 -3
- package/dist/cases/index.mjs +434 -266
- package/dist/conversational-agent/index.cjs +23 -1
- package/dist/conversational-agent/index.d.ts +117 -6
- package/dist/conversational-agent/index.mjs +23 -1
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/entities/index.cjs +423 -0
- package/dist/entities/index.d.ts +441 -1
- package/dist/entities/index.mjs +422 -1
- package/dist/index.cjs +974 -293
- package/dist/index.d.ts +1150 -43
- package/dist/index.mjs +975 -294
- package/dist/index.umd.js +974 -293
- package/dist/jobs/index.cjs +12 -5
- package/dist/jobs/index.d.ts +12 -1
- package/dist/jobs/index.mjs +12 -5
- package/dist/maestro-processes/index.cjs +344 -243
- package/dist/maestro-processes/index.d.ts +189 -5
- package/dist/maestro-processes/index.mjs +344 -243
- package/dist/notifications/index.cjs +2012 -0
- package/dist/notifications/index.d.ts +615 -0
- package/dist/notifications/index.mjs +2010 -0
- package/dist/processes/index.cjs +93 -9
- package/dist/processes/index.d.ts +12 -1
- package/dist/processes/index.mjs +93 -9
- package/dist/queues/index.cjs +106 -5
- package/dist/queues/index.d.ts +12 -1
- package/dist/queues/index.mjs +106 -5
- package/dist/tasks/index.cjs +100 -4
- package/dist/tasks/index.mjs +100 -4
- package/dist/traces/index.cjs +218 -4
- package/dist/traces/index.d.ts +357 -22
- package/dist/traces/index.mjs +219 -5
- package/package.json +14 -4
|
@@ -75,6 +75,12 @@ interface TimelineOptions {
|
|
|
75
75
|
* @default TimeInterval.Day
|
|
76
76
|
*/
|
|
77
77
|
groupBy?: TimeInterval;
|
|
78
|
+
/** Filter by package identifier */
|
|
79
|
+
packageId?: string;
|
|
80
|
+
/** Filter by package version */
|
|
81
|
+
version?: string;
|
|
82
|
+
/** Filter by one or more process keys. Pass `['<processKey>']` for a single process. */
|
|
83
|
+
processKeys?: string[];
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
80
86
|
* Final instance statuses returned by the instance status timeline endpoint.
|
|
@@ -102,6 +108,17 @@ interface InstanceStatusTimelineResponse {
|
|
|
102
108
|
/** Number of instances with this status in the time bucket */
|
|
103
109
|
count: number;
|
|
104
110
|
}
|
|
111
|
+
/**
|
|
112
|
+
* Incident count within a specific time bucket.
|
|
113
|
+
*/
|
|
114
|
+
interface IncidentTimelineResponse {
|
|
115
|
+
/** Start of the time bucket in local timezone (ISO 8601, e.g. `"2026-05-04T00:00:00"`) */
|
|
116
|
+
startTime: string;
|
|
117
|
+
/** End of the time bucket in local timezone (ISO 8601, e.g. `"2026-05-11T00:00:00"`) */
|
|
118
|
+
endTime: string;
|
|
119
|
+
/** Number of incidents that occurred within this time bucket */
|
|
120
|
+
count: number;
|
|
121
|
+
}
|
|
105
122
|
/**
|
|
106
123
|
* Response for the top duration Insights endpoint
|
|
107
124
|
*/
|
|
@@ -504,7 +521,7 @@ interface MaestroProcessesServiceModel {
|
|
|
504
521
|
*
|
|
505
522
|
* @param startTime - Start of the time range to query
|
|
506
523
|
* @param endTime - End of the time range to query
|
|
507
|
-
* @param options - Optional settings for time
|
|
524
|
+
* @param options - Optional settings for filtering and time bucket granularity
|
|
508
525
|
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
509
526
|
*
|
|
510
527
|
* @example
|
|
@@ -531,11 +548,62 @@ interface MaestroProcessesServiceModel {
|
|
|
531
548
|
*
|
|
532
549
|
* @example
|
|
533
550
|
* ```typescript
|
|
551
|
+
* // Filter to a specific process
|
|
552
|
+
* const filtered = await maestroProcesses.getInstanceStatusTimeline(startTime, endTime, {
|
|
553
|
+
* processKeys: ['<processKey>'],
|
|
554
|
+
* });
|
|
555
|
+
* ```
|
|
556
|
+
*
|
|
557
|
+
* @example
|
|
558
|
+
* ```typescript
|
|
534
559
|
* // Get all-time data (from Unix epoch to now)
|
|
535
560
|
* const allTime = await maestroProcesses.getInstanceStatusTimeline(new Date(0), new Date());
|
|
536
561
|
* ```
|
|
537
562
|
*/
|
|
538
563
|
getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<InstanceStatusTimelineResponse[]>;
|
|
564
|
+
/**
|
|
565
|
+
* Get incident counts aggregated by time bucket for maestro processes.
|
|
566
|
+
*
|
|
567
|
+
* Returns time-grouped counts of incidents that occurred within each bucket,
|
|
568
|
+
* useful for rendering incident time-series charts. Use `groupBy` to control
|
|
569
|
+
* the time bucket size (hour, day, or week) — defaults to day if not provided.
|
|
570
|
+
*
|
|
571
|
+
* @param startTime - Start of the time range to query
|
|
572
|
+
* @param endTime - End of the time range to query
|
|
573
|
+
* @param options - Optional settings for filtering and time bucket granularity
|
|
574
|
+
* @returns Promise resolving to an array of {@link IncidentTimelineResponse}
|
|
575
|
+
*
|
|
576
|
+
* @example
|
|
577
|
+
* ```typescript
|
|
578
|
+
* // Get daily incident counts for the last 7 days
|
|
579
|
+
* const now = new Date();
|
|
580
|
+
* const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
|
581
|
+
* const incidents = await maestroProcesses.getIncidentsTimeline(sevenDaysAgo, now);
|
|
582
|
+
*
|
|
583
|
+
* for (const incident of incidents) {
|
|
584
|
+
* console.log(`${incident.startTime} → ${incident.endTime}: ${incident.count} incidents`);
|
|
585
|
+
* }
|
|
586
|
+
* ```
|
|
587
|
+
*
|
|
588
|
+
* @example
|
|
589
|
+
* ```typescript
|
|
590
|
+
* import { TimeInterval } from '@uipath/uipath-typescript/maestro-processes';
|
|
591
|
+
*
|
|
592
|
+
* // Get weekly breakdown
|
|
593
|
+
* const incidents = await maestroProcesses.getIncidentsTimeline(startTime, endTime, {
|
|
594
|
+
* groupBy: TimeInterval.Week,
|
|
595
|
+
* });
|
|
596
|
+
* ```
|
|
597
|
+
*
|
|
598
|
+
* @example
|
|
599
|
+
* ```typescript
|
|
600
|
+
* // Filter to a specific process
|
|
601
|
+
* const filtered = await maestroProcesses.getIncidentsTimeline(startTime, endTime, {
|
|
602
|
+
* processKeys: ['<processKey>'],
|
|
603
|
+
* });
|
|
604
|
+
* ```
|
|
605
|
+
*/
|
|
606
|
+
getIncidentsTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<IncidentTimelineResponse[]>;
|
|
539
607
|
/**
|
|
540
608
|
* Get the top 5 processes ranked by total duration within a time range.
|
|
541
609
|
*
|
|
@@ -675,6 +743,24 @@ interface ProcessMethods {
|
|
|
675
743
|
* @returns Promise resolving to {@link InstanceStats}
|
|
676
744
|
*/
|
|
677
745
|
getInstanceStats(startTime: Date, endTime: Date, packageVersion: string): Promise<InstanceStats>;
|
|
746
|
+
/**
|
|
747
|
+
* Get instance status counts aggregated by date for this process.
|
|
748
|
+
*
|
|
749
|
+
* @param startTime - Start of the time range to query
|
|
750
|
+
* @param endTime - End of the time range to query
|
|
751
|
+
* @param options - Optional settings for filtering and time bucket granularity (processKey is auto-captured from this process)
|
|
752
|
+
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
753
|
+
*/
|
|
754
|
+
getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: Omit<TimelineOptions, 'processKeys'>): Promise<InstanceStatusTimelineResponse[]>;
|
|
755
|
+
/**
|
|
756
|
+
* Get incident counts aggregated by time bucket for this process.
|
|
757
|
+
*
|
|
758
|
+
* @param startTime - Start of the time range to query
|
|
759
|
+
* @param endTime - End of the time range to query
|
|
760
|
+
* @param options - Optional settings for filtering and time bucket granularity (processKey is auto-captured from this process)
|
|
761
|
+
* @returns Promise resolving to an array of {@link IncidentTimelineResponse}
|
|
762
|
+
*/
|
|
763
|
+
getIncidentsTimeline(startTime: Date, endTime: Date, options?: Omit<TimelineOptions, 'processKeys'>): Promise<IncidentTimelineResponse[]>;
|
|
678
764
|
}
|
|
679
765
|
type MaestroProcessGetAllResponse = RawMaestroProcessGetAllResponse & ProcessMethods;
|
|
680
766
|
/**
|
|
@@ -943,7 +1029,7 @@ interface ProcessInstancesServiceModel {
|
|
|
943
1029
|
*/
|
|
944
1030
|
getAll<T extends ProcessInstanceGetAllWithPaginationOptions = ProcessInstanceGetAllWithPaginationOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ProcessInstanceGetResponse> : NonPaginatedResponse<ProcessInstanceGetResponse>>;
|
|
945
1031
|
/**
|
|
946
|
-
* Get a process instance by ID with operation methods (cancel, pause, resume)
|
|
1032
|
+
* Get a process instance by ID with operation methods (cancel, pause, resume, retry)
|
|
947
1033
|
* @param id The ID of the instance to retrieve
|
|
948
1034
|
* @param folderKey The folder key for authorization
|
|
949
1035
|
* @returns Promise resolving to a process instance
|
|
@@ -1062,6 +1148,35 @@ interface ProcessInstancesServiceModel {
|
|
|
1062
1148
|
* @returns Promise resolving to operation result with instance data
|
|
1063
1149
|
*/
|
|
1064
1150
|
resume(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
1151
|
+
/**
|
|
1152
|
+
* Retry a faulted process instance
|
|
1153
|
+
*
|
|
1154
|
+
* Re-runs the failed elements of the instance (and the elements that follow) within the
|
|
1155
|
+
* same instance, spawning new jobs. Use to recover from transient/flaky failures.
|
|
1156
|
+
* @param instanceId The ID of the instance to retry
|
|
1157
|
+
* @param folderKey The folder key for authorization
|
|
1158
|
+
* @param options Optional retry options with comment
|
|
1159
|
+
* @returns Promise resolving to operation result with instance data
|
|
1160
|
+
* @example
|
|
1161
|
+
* ```typescript
|
|
1162
|
+
* // Retry a faulted process instance
|
|
1163
|
+
* const result = await processInstances.retry(
|
|
1164
|
+
* <instanceId>,
|
|
1165
|
+
* <folderKey>
|
|
1166
|
+
* );
|
|
1167
|
+
*
|
|
1168
|
+
* // Or using instance method
|
|
1169
|
+
* const instance = await processInstances.getById(
|
|
1170
|
+
* <instanceId>,
|
|
1171
|
+
* <folderKey>
|
|
1172
|
+
* );
|
|
1173
|
+
* if (instance.latestRunStatus === 'Faulted') {
|
|
1174
|
+
* const result = await instance.retry({ comment: 'Retrying flaky failure' });
|
|
1175
|
+
* console.log(`Retried: ${result.success}`);
|
|
1176
|
+
* }
|
|
1177
|
+
* ```
|
|
1178
|
+
*/
|
|
1179
|
+
retry(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
1065
1180
|
/**
|
|
1066
1181
|
* Get global variables for a process instance
|
|
1067
1182
|
*
|
|
@@ -1142,6 +1257,13 @@ interface ProcessInstanceMethods {
|
|
|
1142
1257
|
* @returns Promise resolving to operation result
|
|
1143
1258
|
*/
|
|
1144
1259
|
resume(options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Retries this faulted process instance
|
|
1262
|
+
*
|
|
1263
|
+
* @param options - Optional retry options with comment
|
|
1264
|
+
* @returns Promise resolving to operation result
|
|
1265
|
+
*/
|
|
1266
|
+
retry(options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
1145
1267
|
/**
|
|
1146
1268
|
* Gets incidents for this process instance
|
|
1147
1269
|
*
|
|
@@ -1562,7 +1684,7 @@ declare class MaestroProcessesService extends BaseService implements MaestroProc
|
|
|
1562
1684
|
*
|
|
1563
1685
|
* @param startTime - Start of the time range to query
|
|
1564
1686
|
* @param endTime - End of the time range to query
|
|
1565
|
-
* @param options - Optional settings for time
|
|
1687
|
+
* @param options - Optional settings for filtering and time bucket granularity
|
|
1566
1688
|
* @returns Promise resolving to an array of {@link InstanceStatusTimelineResponse}
|
|
1567
1689
|
*
|
|
1568
1690
|
* @example
|
|
@@ -1589,11 +1711,62 @@ declare class MaestroProcessesService extends BaseService implements MaestroProc
|
|
|
1589
1711
|
*
|
|
1590
1712
|
* @example
|
|
1591
1713
|
* ```typescript
|
|
1714
|
+
* // Filter to a specific process
|
|
1715
|
+
* const filtered = await maestroProcesses.getInstanceStatusTimeline(startTime, endTime, {
|
|
1716
|
+
* processKeys: ['<processKey>'],
|
|
1717
|
+
* });
|
|
1718
|
+
* ```
|
|
1719
|
+
*
|
|
1720
|
+
* @example
|
|
1721
|
+
* ```typescript
|
|
1592
1722
|
* // Get all-time data (from Unix epoch to now)
|
|
1593
1723
|
* const allTime = await maestroProcesses.getInstanceStatusTimeline(new Date(0), new Date());
|
|
1594
1724
|
* ```
|
|
1595
1725
|
*/
|
|
1596
1726
|
getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<InstanceStatusTimelineResponse[]>;
|
|
1727
|
+
/**
|
|
1728
|
+
* Get incident counts aggregated by time bucket for maestro processes.
|
|
1729
|
+
*
|
|
1730
|
+
* Returns time-grouped counts of incidents that occurred within each bucket,
|
|
1731
|
+
* useful for rendering incident time-series charts. Use `groupBy` to control
|
|
1732
|
+
* the time bucket size (hour, day, or week) — defaults to day if not provided.
|
|
1733
|
+
*
|
|
1734
|
+
* @param startTime - Start of the time range to query
|
|
1735
|
+
* @param endTime - End of the time range to query
|
|
1736
|
+
* @param options - Optional settings for filtering and time bucket granularity
|
|
1737
|
+
* @returns Promise resolving to an array of {@link IncidentTimelineResponse}
|
|
1738
|
+
*
|
|
1739
|
+
* @example
|
|
1740
|
+
* ```typescript
|
|
1741
|
+
* // Get daily incident counts for the last 7 days
|
|
1742
|
+
* const now = new Date();
|
|
1743
|
+
* const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
|
|
1744
|
+
* const incidents = await maestroProcesses.getIncidentsTimeline(sevenDaysAgo, now);
|
|
1745
|
+
*
|
|
1746
|
+
* for (const incident of incidents) {
|
|
1747
|
+
* console.log(`${incident.startTime} → ${incident.endTime}: ${incident.count} incidents`);
|
|
1748
|
+
* }
|
|
1749
|
+
* ```
|
|
1750
|
+
*
|
|
1751
|
+
* @example
|
|
1752
|
+
* ```typescript
|
|
1753
|
+
* import { TimeInterval } from '@uipath/uipath-typescript/maestro-processes';
|
|
1754
|
+
*
|
|
1755
|
+
* // Get weekly breakdown
|
|
1756
|
+
* const incidents = await maestroProcesses.getIncidentsTimeline(startTime, endTime, {
|
|
1757
|
+
* groupBy: TimeInterval.Week,
|
|
1758
|
+
* });
|
|
1759
|
+
* ```
|
|
1760
|
+
*
|
|
1761
|
+
* @example
|
|
1762
|
+
* ```typescript
|
|
1763
|
+
* // Filter to a specific process
|
|
1764
|
+
* const filtered = await maestroProcesses.getIncidentsTimeline(startTime, endTime, {
|
|
1765
|
+
* processKeys: ['<processKey>'],
|
|
1766
|
+
* });
|
|
1767
|
+
* ```
|
|
1768
|
+
*/
|
|
1769
|
+
getIncidentsTimeline(startTime: Date, endTime: Date, options?: TimelineOptions): Promise<IncidentTimelineResponse[]>;
|
|
1597
1770
|
/**
|
|
1598
1771
|
* Get the top 10 processes ranked by failure count within a time range.
|
|
1599
1772
|
*
|
|
@@ -1790,7 +1963,7 @@ declare class ProcessInstancesService extends BaseService implements ProcessInst
|
|
|
1790
1963
|
*/
|
|
1791
1964
|
getAll<T extends ProcessInstanceGetAllWithPaginationOptions = ProcessInstanceGetAllWithPaginationOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ProcessInstanceGetResponse> : NonPaginatedResponse<ProcessInstanceGetResponse>>;
|
|
1792
1965
|
/**
|
|
1793
|
-
* Get a process instance by ID with operation methods (cancel, pause, resume)
|
|
1966
|
+
* Get a process instance by ID with operation methods (cancel, pause, resume, retry)
|
|
1794
1967
|
* @param id The ID of the instance to retrieve
|
|
1795
1968
|
* @param folderKey The folder key for authorization
|
|
1796
1969
|
* @returns Promise<ProcessInstanceGetResponse>
|
|
@@ -1851,6 +2024,17 @@ declare class ProcessInstancesService extends BaseService implements ProcessInst
|
|
|
1851
2024
|
* @returns Promise resolving to operation result with updated instance data
|
|
1852
2025
|
*/
|
|
1853
2026
|
resume(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
2027
|
+
/**
|
|
2028
|
+
* Retry a faulted process instance
|
|
2029
|
+
*
|
|
2030
|
+
* Re-runs the failed elements of the instance (and the elements that follow) within
|
|
2031
|
+
* the same instance, spawning new jobs. Use to recover from transient/flaky failures.
|
|
2032
|
+
* @param instanceId The ID of the instance to retry
|
|
2033
|
+
* @param folderKey The folder key for authorization
|
|
2034
|
+
* @param options Optional retry options with comment
|
|
2035
|
+
* @returns Promise resolving to operation result with updated instance data
|
|
2036
|
+
*/
|
|
2037
|
+
retry(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
1854
2038
|
/**
|
|
1855
2039
|
* Parses BPMN XML to extract variable metadata from uipath:inputOutput elements
|
|
1856
2040
|
* @private
|
|
@@ -1919,4 +2103,4 @@ declare class ProcessIncidentsService extends BaseService implements ProcessInci
|
|
|
1919
2103
|
}
|
|
1920
2104
|
|
|
1921
2105
|
export { DebugMode, InstanceFinalStatus, MaestroProcessesService as MaestroProcesses, MaestroProcessesService, ProcessIncidentSeverity, ProcessIncidentStatus, ProcessIncidentType, ProcessIncidentsService as ProcessIncidents, ProcessIncidentsService, ProcessInstancesService as ProcessInstances, ProcessInstancesService, TimeInterval, createProcessInstanceWithMethods, createProcessWithMethods };
|
|
1922
|
-
export type { BpmnXmlString, DurationStats, ElementGetTopFailedCountResponse, ElementMetaData, ElementStats, GetTopBaseResponse, GetTopDurationResponse, GetTopFaultedCountResponse, GetTopRunCountResponse, GlobalVariableMetaData, InstanceStats, InstanceStatusTimelineResponse, MaestroProcessGetAllResponse, MaestroProcessStatsRequest, MaestroProcessesServiceModel, ProcessGetTopDurationResponse, ProcessGetTopFaultedCountResponse, ProcessGetTopRunCountResponse, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessIncidentsServiceModel, ProcessInstanceExecutionHistoryResponse, ProcessInstanceGetAllOptions, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceGetResponse, ProcessInstanceGetVariablesOptions, ProcessInstanceGetVariablesResponse, ProcessInstanceMethods, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessInstancesServiceModel, ProcessMethods, RawMaestroProcessGetAllResponse, RawProcessInstanceGetResponse, TimelineOptions, TopQueryOptions };
|
|
2106
|
+
export type { BpmnXmlString, DurationStats, ElementGetTopFailedCountResponse, ElementMetaData, ElementStats, GetTopBaseResponse, GetTopDurationResponse, GetTopFaultedCountResponse, GetTopRunCountResponse, GlobalVariableMetaData, IncidentTimelineResponse, InstanceStats, InstanceStatusTimelineResponse, MaestroProcessGetAllResponse, MaestroProcessStatsRequest, MaestroProcessesServiceModel, ProcessGetTopDurationResponse, ProcessGetTopFaultedCountResponse, ProcessGetTopRunCountResponse, ProcessIncidentGetAllResponse, ProcessIncidentGetResponse, ProcessIncidentsServiceModel, ProcessInstanceExecutionHistoryResponse, ProcessInstanceGetAllOptions, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceGetResponse, ProcessInstanceGetVariablesOptions, ProcessInstanceGetVariablesResponse, ProcessInstanceMethods, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceRun, ProcessInstancesServiceModel, ProcessMethods, RawMaestroProcessGetAllResponse, RawProcessInstanceGetResponse, TimelineOptions, TopQueryOptions };
|