@uipath/solution-sdk 1.203.0-preview.212 → 1.204.0-preview.211
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/THIRD-PARTY-NOTICES.md +2 -2
- package/dist/{embedded-file-reader-xxqe8vs8.js → embedded-file-reader-rf2g1kfj.js} +2 -2
- package/dist/generated/src/apis/DeploymentsApi.d.ts +27 -23
- package/dist/generated/src/models/DeploymentResourceInfo.d.ts +109 -0
- package/dist/generated/src/models/DeploymentResourceReplacementDto.d.ts +50 -0
- package/dist/generated/src/models/DeploymentUpgradeState.d.ts +27 -0
- package/dist/generated/src/models/PageInfoDtoOfDeploymentResourceInfo.d.ts +39 -0
- package/dist/generated/src/models/ResetConfigurationSource.d.ts +25 -0
- package/dist/generated/src/models/index.d.ts +5 -2
- package/dist/{index-y8tgscfm.js → index-6gp5j7j5.js} +22 -6
- package/dist/{index-4zqv4bn2.js → index-bdpp6dsk.js} +565 -92
- package/dist/index.js +345 -209
- package/dist/resources/index.js +418 -82
- package/dist/scripts/generate-sdk.js +14 -7
- package/dist/solution-auth.js +1 -1
- package/dist/src/index.d.ts +0 -1
- package/dist/src/resources/index.d.ts +2 -0
- package/dist/src/resources/providers/resource-builder-init.d.ts +1 -1
- package/dist/src/resources/services/remote-resources.d.ts +45 -0
- package/dist/src/resources/services/resource-name.d.ts +28 -0
- package/dist/src/resources/services/sync-resources-from-bindings.d.ts +17 -5
- package/dist/src/solution-auth.d.ts +3 -0
- package/dist/src/zip-utils.d.ts +8 -0
- package/package.json +2 -2
- package/dist/generated/src/models/DeploymentRunResponse.d.ts +0 -51
- package/dist/generated/src/models/DeploymentUpgradeRequest.d.ts +0 -38
- package/dist/src/deployments-auto-install.d.ts +0 -55
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { DeploymentAutoRequest, DeploymentDto, DeploymentItemDto, DeploymentRequest,
|
|
13
|
+
import type { DeploymentAutoRequest, DeploymentDto, DeploymentItemDto, DeploymentRequest, DeploymentValidationResultDto, PageInfoDtoOfDeploymentResourceInfo, SolutionDeploymentAction } from '../models/index';
|
|
14
|
+
export interface DeploymentsDeleteRequest {
|
|
15
|
+
deploymentKey: string;
|
|
16
|
+
xUipathAsVersion?: string;
|
|
17
|
+
}
|
|
14
18
|
export interface DeploymentsDeployRequest {
|
|
15
19
|
deploymentAutoRequest: DeploymentAutoRequest;
|
|
16
20
|
xUIPATHFolderKey?: string | null;
|
|
@@ -20,6 +24,14 @@ export interface DeploymentsGetByKeyRequest {
|
|
|
20
24
|
deploymentKey: string;
|
|
21
25
|
xUipathAsVersion?: string;
|
|
22
26
|
}
|
|
27
|
+
export interface DeploymentsGetDeploymentResourcesRequest {
|
|
28
|
+
deploymentKey: string;
|
|
29
|
+
folderKey?: string | null;
|
|
30
|
+
kind?: string | null;
|
|
31
|
+
skip?: number | null;
|
|
32
|
+
take?: number | null;
|
|
33
|
+
xUipathAsVersion?: string;
|
|
34
|
+
}
|
|
23
35
|
export interface DeploymentsGetValidationResultRequest {
|
|
24
36
|
deploymentKey: string;
|
|
25
37
|
deploymentAction?: SolutionDeploymentAction;
|
|
@@ -29,54 +41,46 @@ export interface DeploymentsPostRequest {
|
|
|
29
41
|
deploymentRequest: DeploymentRequest;
|
|
30
42
|
xUipathAsVersion?: string;
|
|
31
43
|
}
|
|
32
|
-
export interface DeploymentsRunRequest {
|
|
33
|
-
deploymentKey: string;
|
|
34
|
-
xUipathAsVersion?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface DeploymentsUpgradeRequest {
|
|
37
|
-
deploymentKey: string;
|
|
38
|
-
packageVersionKey?: string;
|
|
39
|
-
xUipathAsVersion?: string;
|
|
40
|
-
deploymentUpgradeRequest?: DeploymentUpgradeRequest;
|
|
41
|
-
}
|
|
42
44
|
/**
|
|
43
45
|
*
|
|
44
46
|
*/
|
|
45
47
|
export declare class DeploymentsApi extends runtime.BaseAPI {
|
|
46
48
|
/**
|
|
47
49
|
*/
|
|
48
|
-
|
|
50
|
+
deploymentsDeleteRaw(requestParameters: DeploymentsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
49
51
|
/**
|
|
50
52
|
*/
|
|
51
|
-
|
|
53
|
+
deploymentsDelete(requestParameters: DeploymentsDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
52
54
|
/**
|
|
53
55
|
*/
|
|
54
|
-
|
|
56
|
+
deploymentsDeployRaw(requestParameters: DeploymentsDeployRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeploymentDto>>;
|
|
55
57
|
/**
|
|
56
58
|
*/
|
|
57
|
-
|
|
59
|
+
deploymentsDeploy(requestParameters: DeploymentsDeployRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeploymentDto>;
|
|
58
60
|
/**
|
|
59
61
|
*/
|
|
60
|
-
|
|
62
|
+
deploymentsGetByKeyRaw(requestParameters: DeploymentsGetByKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeploymentItemDto>>;
|
|
61
63
|
/**
|
|
62
64
|
*/
|
|
63
|
-
|
|
65
|
+
deploymentsGetByKey(requestParameters: DeploymentsGetByKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeploymentItemDto>;
|
|
64
66
|
/**
|
|
67
|
+
* @deprecated
|
|
65
68
|
*/
|
|
66
|
-
|
|
69
|
+
deploymentsGetDeploymentResourcesRaw(requestParameters: DeploymentsGetDeploymentResourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageInfoDtoOfDeploymentResourceInfo>>;
|
|
67
70
|
/**
|
|
71
|
+
* @deprecated
|
|
68
72
|
*/
|
|
69
|
-
|
|
73
|
+
deploymentsGetDeploymentResources(requestParameters: DeploymentsGetDeploymentResourcesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageInfoDtoOfDeploymentResourceInfo>;
|
|
70
74
|
/**
|
|
71
75
|
*/
|
|
72
|
-
|
|
76
|
+
deploymentsGetValidationResultRaw(requestParameters: DeploymentsGetValidationResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeploymentValidationResultDto>>;
|
|
73
77
|
/**
|
|
74
78
|
*/
|
|
75
|
-
|
|
79
|
+
deploymentsGetValidationResult(requestParameters: DeploymentsGetValidationResultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeploymentValidationResultDto>;
|
|
76
80
|
/**
|
|
77
81
|
*/
|
|
78
|
-
|
|
82
|
+
deploymentsPostRaw(requestParameters: DeploymentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeploymentItemDto>>;
|
|
79
83
|
/**
|
|
80
84
|
*/
|
|
81
|
-
|
|
85
|
+
deploymentsPost(requestParameters: DeploymentsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeploymentItemDto>;
|
|
82
86
|
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UiPath.AutomationSolutionsService.WebApi 1.0
|
|
3
|
+
* Solutions API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DeploymentResourceValidationAction } from './DeploymentResourceValidationAction';
|
|
13
|
+
import type { ResetConfigurationSource } from './ResetConfigurationSource';
|
|
14
|
+
import type { DeploymentUpgradeState } from './DeploymentUpgradeState';
|
|
15
|
+
import type { DeploymentResourceReplacementDto } from './DeploymentResourceReplacementDto';
|
|
16
|
+
import type { FolderInfo } from './FolderInfo';
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface DeploymentResourceInfo
|
|
21
|
+
*/
|
|
22
|
+
export interface DeploymentResourceInfo {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof DeploymentResourceInfo
|
|
27
|
+
*/
|
|
28
|
+
key: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DeploymentResourceInfo
|
|
33
|
+
*/
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DeploymentResourceInfo
|
|
39
|
+
*/
|
|
40
|
+
kind: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof DeploymentResourceInfo
|
|
45
|
+
*/
|
|
46
|
+
type?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof DeploymentResourceInfo
|
|
51
|
+
*/
|
|
52
|
+
apiVersion: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<FolderInfo>}
|
|
56
|
+
* @memberof DeploymentResourceInfo
|
|
57
|
+
*/
|
|
58
|
+
folders: Array<FolderInfo>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof DeploymentResourceInfo
|
|
63
|
+
*/
|
|
64
|
+
requiresConfiguration: boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof DeploymentResourceInfo
|
|
69
|
+
*/
|
|
70
|
+
isOverridable: boolean;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof DeploymentResourceInfo
|
|
75
|
+
*/
|
|
76
|
+
hasWarnings: boolean;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {DeploymentUpgradeState}
|
|
80
|
+
* @memberof DeploymentResourceInfo
|
|
81
|
+
*/
|
|
82
|
+
upgradeState?: DeploymentUpgradeState;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {ResetConfigurationSource}
|
|
86
|
+
* @memberof DeploymentResourceInfo
|
|
87
|
+
*/
|
|
88
|
+
upgradeConfigurationSource?: ResetConfigurationSource;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {DeploymentResourceReplacementDto}
|
|
92
|
+
* @memberof DeploymentResourceInfo
|
|
93
|
+
*/
|
|
94
|
+
resourceReplacement?: DeploymentResourceReplacementDto;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {DeploymentResourceValidationAction}
|
|
98
|
+
* @memberof DeploymentResourceInfo
|
|
99
|
+
*/
|
|
100
|
+
selectedAction?: DeploymentResourceValidationAction;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the DeploymentResourceInfo interface.
|
|
104
|
+
*/
|
|
105
|
+
export declare function instanceOfDeploymentResourceInfo(value: object): value is DeploymentResourceInfo;
|
|
106
|
+
export declare function DeploymentResourceInfoFromJSON(json: any): DeploymentResourceInfo;
|
|
107
|
+
export declare function DeploymentResourceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeploymentResourceInfo;
|
|
108
|
+
export declare function DeploymentResourceInfoToJSON(json: any): DeploymentResourceInfo;
|
|
109
|
+
export declare function DeploymentResourceInfoToJSONTyped(value?: DeploymentResourceInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UiPath.AutomationSolutionsService.WebApi 1.0
|
|
3
|
+
* Solutions API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DeploymentResourceReplacementDto
|
|
16
|
+
*/
|
|
17
|
+
export interface DeploymentResourceReplacementDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DeploymentResourceReplacementDto
|
|
22
|
+
*/
|
|
23
|
+
serviceResourceKey: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DeploymentResourceReplacementDto
|
|
28
|
+
*/
|
|
29
|
+
serviceResourceName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DeploymentResourceReplacementDto
|
|
34
|
+
*/
|
|
35
|
+
serviceFolderPath?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof DeploymentResourceReplacementDto
|
|
40
|
+
*/
|
|
41
|
+
solutionResourceKey: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the DeploymentResourceReplacementDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfDeploymentResourceReplacementDto(value: object): value is DeploymentResourceReplacementDto;
|
|
47
|
+
export declare function DeploymentResourceReplacementDtoFromJSON(json: any): DeploymentResourceReplacementDto;
|
|
48
|
+
export declare function DeploymentResourceReplacementDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeploymentResourceReplacementDto;
|
|
49
|
+
export declare function DeploymentResourceReplacementDtoToJSON(json: any): DeploymentResourceReplacementDto;
|
|
50
|
+
export declare function DeploymentResourceReplacementDtoToJSONTyped(value?: DeploymentResourceReplacementDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UiPath.AutomationSolutionsService.WebApi 1.0
|
|
3
|
+
* Solutions API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const DeploymentUpgradeState: {
|
|
17
|
+
readonly Unchanged: 'Unchanged';
|
|
18
|
+
readonly Updated: 'Updated';
|
|
19
|
+
readonly New: 'New';
|
|
20
|
+
readonly Removed: 'Removed';
|
|
21
|
+
};
|
|
22
|
+
export type DeploymentUpgradeState = typeof DeploymentUpgradeState[keyof typeof DeploymentUpgradeState];
|
|
23
|
+
export declare function instanceOfDeploymentUpgradeState(value: any): boolean;
|
|
24
|
+
export declare function DeploymentUpgradeStateFromJSON(json: any): DeploymentUpgradeState;
|
|
25
|
+
export declare function DeploymentUpgradeStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeploymentUpgradeState;
|
|
26
|
+
export declare function DeploymentUpgradeStateToJSON(value?: DeploymentUpgradeState | null): any;
|
|
27
|
+
export declare function DeploymentUpgradeStateToJSONTyped(value: any, ignoreDiscriminator: boolean): DeploymentUpgradeState;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UiPath.AutomationSolutionsService.WebApi 1.0
|
|
3
|
+
* Solutions API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { DeploymentResourceInfo } from './DeploymentResourceInfo';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PageInfoDtoOfDeploymentResourceInfo
|
|
17
|
+
*/
|
|
18
|
+
export interface PageInfoDtoOfDeploymentResourceInfo {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof PageInfoDtoOfDeploymentResourceInfo
|
|
23
|
+
*/
|
|
24
|
+
count: number;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<DeploymentResourceInfo>}
|
|
28
|
+
* @memberof PageInfoDtoOfDeploymentResourceInfo
|
|
29
|
+
*/
|
|
30
|
+
values: Array<DeploymentResourceInfo>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PageInfoDtoOfDeploymentResourceInfo interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPageInfoDtoOfDeploymentResourceInfo(value: object): value is PageInfoDtoOfDeploymentResourceInfo;
|
|
36
|
+
export declare function PageInfoDtoOfDeploymentResourceInfoFromJSON(json: any): PageInfoDtoOfDeploymentResourceInfo;
|
|
37
|
+
export declare function PageInfoDtoOfDeploymentResourceInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageInfoDtoOfDeploymentResourceInfo;
|
|
38
|
+
export declare function PageInfoDtoOfDeploymentResourceInfoToJSON(json: any): PageInfoDtoOfDeploymentResourceInfo;
|
|
39
|
+
export declare function PageInfoDtoOfDeploymentResourceInfoToJSONTyped(value?: PageInfoDtoOfDeploymentResourceInfo | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UiPath.AutomationSolutionsService.WebApi 1.0
|
|
3
|
+
* Solutions API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ResetConfigurationSource: {
|
|
17
|
+
readonly Package: 'Package';
|
|
18
|
+
readonly PreviousDeployment: 'PreviousDeployment';
|
|
19
|
+
};
|
|
20
|
+
export type ResetConfigurationSource = typeof ResetConfigurationSource[keyof typeof ResetConfigurationSource];
|
|
21
|
+
export declare function instanceOfResetConfigurationSource(value: any): boolean;
|
|
22
|
+
export declare function ResetConfigurationSourceFromJSON(json: any): ResetConfigurationSource;
|
|
23
|
+
export declare function ResetConfigurationSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResetConfigurationSource;
|
|
24
|
+
export declare function ResetConfigurationSourceToJSON(value?: ResetConfigurationSource | null): any;
|
|
25
|
+
export declare function ResetConfigurationSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): ResetConfigurationSource;
|
|
@@ -7,14 +7,15 @@ export * from './DeploymentItemDto';
|
|
|
7
7
|
export * from './DeploymentOperation';
|
|
8
8
|
export * from './DeploymentOperationStatus';
|
|
9
9
|
export * from './DeploymentRequest';
|
|
10
|
+
export * from './DeploymentResourceInfo';
|
|
11
|
+
export * from './DeploymentResourceReplacementDto';
|
|
10
12
|
export * from './DeploymentResourceValidationAction';
|
|
11
13
|
export * from './DeploymentResourceValidationErrorKind';
|
|
12
14
|
export * from './DeploymentResourceValidationErrorLevel';
|
|
13
|
-
export * from './DeploymentRunResponse';
|
|
14
15
|
export * from './DeploymentSearchItemDto2';
|
|
15
16
|
export * from './DeploymentStatus';
|
|
16
17
|
export * from './DeploymentType';
|
|
17
|
-
export * from './
|
|
18
|
+
export * from './DeploymentUpgradeState';
|
|
18
19
|
export * from './DeploymentUpgradeType';
|
|
19
20
|
export * from './DeploymentValidationResultDto';
|
|
20
21
|
export * from './DeploymentsSearchRequest2';
|
|
@@ -29,12 +30,14 @@ export * from './PackageVersionComponentsDto';
|
|
|
29
30
|
export * from './PackageVersionInfoDto';
|
|
30
31
|
export * from './PackageVersionOrigin';
|
|
31
32
|
export * from './PackageVersionResourceDto';
|
|
33
|
+
export * from './PageInfoDtoOfDeploymentResourceInfo';
|
|
32
34
|
export * from './PageInfoDtoOfDeploymentSearchItemDto2';
|
|
33
35
|
export * from './PageInfoDtoOfPackageInfo';
|
|
34
36
|
export * from './ProblemDetails';
|
|
35
37
|
export * from './ProjectCreateRequest';
|
|
36
38
|
export * from './ProjectDto';
|
|
37
39
|
export * from './ProjectImportStatus';
|
|
40
|
+
export * from './ResetConfigurationSource';
|
|
38
41
|
export * from './ResourceOverwrite';
|
|
39
42
|
export * from './ResourceStats';
|
|
40
43
|
export * from './ResourceValidationDto';
|
|
@@ -316,6 +316,11 @@ var pickName = (claims) => {
|
|
|
316
316
|
const username = asString(claims?.preferred_username);
|
|
317
317
|
return asString(claims?.name) ?? (looksLikeEmail(username) ? undefined : username);
|
|
318
318
|
};
|
|
319
|
+
var pickScopes = (claims) => {
|
|
320
|
+
const raw = claims?.scope;
|
|
321
|
+
const scopes = Array.isArray(raw) ? raw.filter((entry) => asString(entry) !== undefined) : typeof raw === "string" ? raw.split(/\s+/).filter(Boolean) : [];
|
|
322
|
+
return scopes.length > 0 ? scopes : undefined;
|
|
323
|
+
};
|
|
319
324
|
var resolveSessionIdentity = (accessToken, authFlow) => {
|
|
320
325
|
const claims = accessToken ? decodeClaims(accessToken) : undefined;
|
|
321
326
|
const email = pickEmail(claims);
|
|
@@ -341,6 +346,7 @@ var resolveSessionIdentity = (accessToken, authFlow) => {
|
|
|
341
346
|
identity.clientId = clientId;
|
|
342
347
|
return identity;
|
|
343
348
|
};
|
|
349
|
+
var readTokenScopes = (accessToken) => accessToken ? pickScopes(decodeClaims(accessToken)) : undefined;
|
|
344
350
|
|
|
345
351
|
// ../auth/src/envAuth.ts
|
|
346
352
|
var ENV_AUTH_ENABLE_VAR = "UIPATH_CLI_ENABLE_ENV_AUTH";
|
|
@@ -413,6 +419,7 @@ var readAuthFromEnv = () => {
|
|
|
413
419
|
const expiration = getTokenExpiration(accessToken);
|
|
414
420
|
const loginStatus = expiration && expiration <= new Date ? "Expired" : "Logged in";
|
|
415
421
|
const identity = resolveSessionIdentity(accessToken);
|
|
422
|
+
const scopes = readTokenScopes(accessToken);
|
|
416
423
|
return {
|
|
417
424
|
loginStatus,
|
|
418
425
|
accessToken,
|
|
@@ -423,7 +430,8 @@ var readAuthFromEnv = () => {
|
|
|
423
430
|
tenantId,
|
|
424
431
|
expiration,
|
|
425
432
|
source: "env-vars" /* EnvironmentVariables */,
|
|
426
|
-
...identity ? { identity } : {}
|
|
433
|
+
...identity ? { identity } : {},
|
|
434
|
+
...scopes ? { scopes } : {}
|
|
427
435
|
};
|
|
428
436
|
};
|
|
429
437
|
|
|
@@ -1061,10 +1069,15 @@ async function buildFileStatus(tokens, credentials, globalHint) {
|
|
|
1061
1069
|
}
|
|
1062
1070
|
function identityFields(accessToken, credentials) {
|
|
1063
1071
|
const identity = resolveSessionIdentity(accessToken, parseAuthFlow(credentials[AUTH_FLOW_ENV_VAR]));
|
|
1064
|
-
|
|
1072
|
+
const scopes = readTokenScopes(accessToken);
|
|
1073
|
+
return {
|
|
1074
|
+
...identity ? { identity } : {},
|
|
1075
|
+
...scopes ? { scopes } : {}
|
|
1076
|
+
};
|
|
1065
1077
|
}
|
|
1066
1078
|
function buildRobotStatus(robotCreds) {
|
|
1067
1079
|
const identity = resolveSessionIdentity(robotCreds.accessToken);
|
|
1080
|
+
const scopes = readTokenScopes(robotCreds.accessToken);
|
|
1068
1081
|
return {
|
|
1069
1082
|
loginStatus: "Logged in",
|
|
1070
1083
|
accessToken: robotCreds.accessToken,
|
|
@@ -1076,7 +1089,8 @@ function buildRobotStatus(robotCreds) {
|
|
|
1076
1089
|
issuer: robotCreds.issuer,
|
|
1077
1090
|
expiration: getTokenExpiration(robotCreds.accessToken),
|
|
1078
1091
|
source: "robot" /* Robot */,
|
|
1079
|
-
...identity ? { identity } : {}
|
|
1092
|
+
...identity ? { identity } : {},
|
|
1093
|
+
...scopes ? { scopes } : {}
|
|
1080
1094
|
};
|
|
1081
1095
|
}
|
|
1082
1096
|
var isFileNotFoundError = (error) => {
|
|
@@ -1343,7 +1357,8 @@ var getAuthContext = async (options = {}) => {
|
|
|
1343
1357
|
organizationId: status.organizationId,
|
|
1344
1358
|
organizationName: status.organizationName,
|
|
1345
1359
|
tenantId: status.tenantId,
|
|
1346
|
-
tenantName
|
|
1360
|
+
tenantName,
|
|
1361
|
+
identity: status.identity
|
|
1347
1362
|
};
|
|
1348
1363
|
};
|
|
1349
1364
|
// ../auth/src/tenantSelection.ts
|
|
@@ -1372,10 +1387,11 @@ async function getSolutionAuthContext(options) {
|
|
|
1372
1387
|
accessToken: ctx.accessToken,
|
|
1373
1388
|
basePath,
|
|
1374
1389
|
organizationId,
|
|
1375
|
-
tenantName
|
|
1390
|
+
tenantName,
|
|
1391
|
+
identity: ctx.identity
|
|
1376
1392
|
};
|
|
1377
1393
|
}
|
|
1378
1394
|
|
|
1379
1395
|
export { getLoginStatusAsync, getAuthContext, getSolutionAuthContext };
|
|
1380
1396
|
|
|
1381
|
-
//# debugId=
|
|
1397
|
+
//# debugId=53AA4FC2388EF7C664756E2164756E21
|