@harnessio/react-rmg-service-client 0.69.0 → 0.69.1-beta.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.
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionActivitiesPaginatedQuery.d.ts +1 -1
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhaseInputsQuery.d.ts +27 -0
- package/dist/rmg-service/src/services/hooks/useGetOrchestrationExecutionPhaseInputsQuery.js +19 -0
- package/dist/rmg-service/src/services/hooks/useGetPhaseArtifactUpdatesQuery.d.ts +26 -0
- package/dist/rmg-service/src/services/hooks/useGetPhaseArtifactUpdatesQuery.js +15 -0
- package/dist/rmg-service/src/services/hooks/useGetPhaseRetryHistoryByIdentifiersQuery.d.ts +31 -0
- package/dist/rmg-service/src/services/hooks/useGetPhaseRetryHistoryByIdentifiersQuery.js +19 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseChangesetFacetsQuery.d.ts +29 -0
- package/dist/rmg-service/src/services/hooks/useGetReleaseChangesetFacetsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerServiceRefsQuery.d.ts +31 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerServiceRefsQuery.js +15 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.d.ts +34 -0
- package/dist/rmg-service/src/services/hooks/useListArtifactTrackerTagsByServiceMappingQuery.js +15 -0
- package/dist/rmg-service/src/services/hooks/useListReleaseChangesetCommitsQuery.d.ts +34 -0
- package/dist/rmg-service/src/services/hooks/useListReleaseChangesetCommitsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/useListReleaseChangesetsQuery.d.ts +39 -0
- package/dist/rmg-service/src/services/hooks/useListReleaseChangesetsQuery.js +14 -0
- package/dist/rmg-service/src/services/hooks/usePostPhaseActionMutation.d.ts +28 -0
- package/dist/rmg-service/src/services/hooks/usePostPhaseActionMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useRetryReleaseChangesetMutation.d.ts +26 -0
- package/dist/rmg-service/src/services/hooks/useRetryReleaseChangesetMutation.js +14 -0
- package/dist/rmg-service/src/services/hooks/useUpdateReleaseChangesetTagsMutation.d.ts +29 -0
- package/dist/rmg-service/src/services/hooks/useUpdateReleaseChangesetTagsMutation.js +14 -0
- package/dist/rmg-service/src/services/index.d.ts +49 -0
- package/dist/rmg-service/src/services/index.js +11 -0
- package/dist/rmg-service/src/services/requestBodies/PhaseActionRequestRequestBody.d.ts +2 -0
- package/dist/rmg-service/src/services/requestBodies/PhaseActionRequestRequestBody.js +1 -0
- package/dist/rmg-service/src/services/responses/PhaseActionResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/PhaseActionResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/responses/PhaseArtifactUpdatesResponseResponse.d.ts +2 -0
- package/dist/rmg-service/src/services/responses/PhaseArtifactUpdatesResponseResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/ActivityExecutionInputDto.d.ts +7 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTag.d.ts +14 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTag.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagList.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTagList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceMapping.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRef.d.ts +17 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRef.js +4 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRefList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerServiceRefList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ArtifactTrackerSettings.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/Changeset.d.ts +21 -0
- package/dist/rmg-service/src/services/schemas/Changeset.js +4 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommit.d.ts +22 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommit.js +1 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommitList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommitList.js +1 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommitTicket.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/ChangesetCommitTicket.js +4 -0
- package/dist/rmg-service/src/services/schemas/ChangesetFacets.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/ChangesetFacets.js +4 -0
- package/dist/rmg-service/src/services/schemas/ChangesetList.d.ts +8 -0
- package/dist/rmg-service/src/services/schemas/ChangesetList.js +1 -0
- package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerServiceMappingRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/CreateArtifactTrackerSettingsRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/ExecutionOutputDto.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/InputVariable.d.ts +2 -1
- package/dist/rmg-service/src/services/schemas/InputVariableType.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/OrchestrationExecutionPhase.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationPhaseYaml.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/OrchestrationStatus.d.ts +1 -1
- package/dist/rmg-service/src/services/schemas/OutputDataType.d.ts +6 -0
- package/dist/rmg-service/src/services/schemas/OutputDataType.js +4 -0
- package/dist/rmg-service/src/services/schemas/OutputVariable.d.ts +20 -3
- package/dist/rmg-service/src/services/schemas/OutputVariable.js +0 -3
- package/dist/rmg-service/src/services/schemas/PhaseActionRequest.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/PhaseActionRequest.js +1 -0
- package/dist/rmg-service/src/services/schemas/PhaseActionResponse.d.ts +10 -0
- package/dist/rmg-service/src/services/schemas/PhaseActionResponse.js +4 -0
- package/dist/rmg-service/src/services/schemas/PhaseArtifactUpdateDto.d.ts +21 -0
- package/dist/rmg-service/src/services/schemas/PhaseArtifactUpdateDto.js +4 -0
- package/dist/rmg-service/src/services/schemas/PhaseArtifactUpdatesResponse.d.ts +11 -0
- package/dist/rmg-service/src/services/schemas/PhaseArtifactUpdatesResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/PhaseExecutionInputDto.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/PhaseExecutionInputDto.js +1 -0
- package/dist/rmg-service/src/services/schemas/PhaseRetryHistoryResponse.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/PhaseRetryHistoryResponse.js +1 -0
- package/dist/rmg-service/src/services/schemas/PhaseRetryInfo.d.ts +47 -0
- package/dist/rmg-service/src/services/schemas/PhaseRetryInfo.js +1 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactInputVariable.d.ts +25 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactInputVariable.js +1 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactValue.d.ts +19 -0
- package/dist/rmg-service/src/services/schemas/ReleaseArtifactValue.js +4 -0
- package/dist/rmg-service/src/services/schemas/StatusInfo.d.ts +13 -0
- package/dist/rmg-service/src/services/schemas/StatusInfo.js +4 -0
- package/dist/rmg-service/src/services/schemas/UpdateArtifactTrackerServiceMappingRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/UpdateChangesetTagsRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/UpdateChangesetTagsRequest.js +4 -0
- package/dist/rmg-service/src/services/schemas/UpsertArtifactTrackerSettingsRequest.d.ts +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalArtifacts.d.ts +16 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalArtifacts.js +1 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalImage.d.ts +9 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalImage.js +4 -0
- package/dist/rmg-service/src/services/schemas/WebhookSignalRequest.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { OutputDataType } from '../schemas/OutputDataType';
|
|
2
|
+
import type { AnyValue } from '../schemas/AnyValue';
|
|
1
3
|
/**
|
|
2
|
-
* Output variable definition. Accepts either a plain string (legacy format) or an object with a `value` field and
|
|
4
|
+
* Output variable definition. Accepts either a plain string (legacy format) or an object with a `value` field and optional `type`, `items`, `description`, and `metadata`.
|
|
3
5
|
*
|
|
4
6
|
*/
|
|
5
7
|
export type OutputVariable = string | {
|
|
@@ -8,7 +10,22 @@ export type OutputVariable = string | {
|
|
|
8
10
|
*/
|
|
9
11
|
description?: string;
|
|
10
12
|
/**
|
|
11
|
-
*
|
|
13
|
+
* Element type when type is 'list'. Absent for non-list outputs.
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
items?: OutputDataType;
|
|
16
|
+
/**
|
|
17
|
+
* Additional metadata for the output variable.
|
|
18
|
+
*/
|
|
19
|
+
metadata?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Declared type of the output. Absent (empty) means the output has no declared type and is treated as 'string' for backward compatibility.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
type?: OutputDataType;
|
|
27
|
+
/**
|
|
28
|
+
* The output value or expression. Shape depends on the declared type.
|
|
29
|
+
*/
|
|
30
|
+
value: AnyValue;
|
|
14
31
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PhaseExecutionInputDto } from '../schemas/PhaseExecutionInputDto';
|
|
2
|
+
export interface PhaseActionRequest {
|
|
3
|
+
/**
|
|
4
|
+
* The action to perform on the paused phase. 'resume' proceeds the DAG; 'restart' re-runs the phase (optionally with changed inputs).
|
|
5
|
+
*/
|
|
6
|
+
action: 'restart' | 'resume';
|
|
7
|
+
/**
|
|
8
|
+
* Optional changed phase input overrides, applied only when action is 'restart'. Each entry carries the input name, type, and value (any JSON type).
|
|
9
|
+
*/
|
|
10
|
+
inputs?: PhaseExecutionInputDto[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single release-artifact input that has a newer tag available
|
|
3
|
+
*/
|
|
4
|
+
export interface PhaseArtifactUpdateDto {
|
|
5
|
+
/**
|
|
6
|
+
* The tag that was used when this phase run started
|
|
7
|
+
*/
|
|
8
|
+
currentTag: string;
|
|
9
|
+
/**
|
|
10
|
+
* The name of the input variable
|
|
11
|
+
*/
|
|
12
|
+
inputName: string;
|
|
13
|
+
/**
|
|
14
|
+
* The most recently ingested tag for this service mapping
|
|
15
|
+
*/
|
|
16
|
+
latestTag: string;
|
|
17
|
+
/**
|
|
18
|
+
* The service mapping identifier
|
|
19
|
+
*/
|
|
20
|
+
serviceMappingIdentifier: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PhaseArtifactUpdateDto } from '../schemas/PhaseArtifactUpdateDto';
|
|
2
|
+
export interface PhaseArtifactUpdatesResponse {
|
|
3
|
+
/**
|
|
4
|
+
* True if at least one release-artifact input has a newer tag available
|
|
5
|
+
*/
|
|
6
|
+
hasUpdates: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* List of inputs with available tag updates
|
|
9
|
+
*/
|
|
10
|
+
updates: PhaseArtifactUpdateDto[];
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { InputVariableType } from '../schemas/InputVariableType';
|
|
2
|
+
import type { AnyValue } from '../schemas/AnyValue';
|
|
3
|
+
/**
|
|
4
|
+
* Input value for a phase execution restart
|
|
5
|
+
*/
|
|
6
|
+
export interface PhaseExecutionInputDto {
|
|
7
|
+
/**
|
|
8
|
+
* Name of the input parameter
|
|
9
|
+
*/
|
|
10
|
+
name: string;
|
|
11
|
+
/**
|
|
12
|
+
* Type of an input variable for parameters and process inputs.
|
|
13
|
+
*/
|
|
14
|
+
type: InputVariableType;
|
|
15
|
+
/**
|
|
16
|
+
* Flexible type that accepts any JSON value (string, number, boolean, object, or array)
|
|
17
|
+
*/
|
|
18
|
+
value: AnyValue;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NextRequest } from '../schemas/NextRequest';
|
|
2
|
+
import type { PhaseRetryInfo } from '../schemas/PhaseRetryInfo';
|
|
3
|
+
/**
|
|
4
|
+
* Response containing the retry history for a phase execution
|
|
5
|
+
*/
|
|
6
|
+
export interface PhaseRetryHistoryResponse {
|
|
7
|
+
/**
|
|
8
|
+
* Whether this is the last page of results
|
|
9
|
+
*/
|
|
10
|
+
last: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Information for the next page request
|
|
13
|
+
*/
|
|
14
|
+
nextRequest: NextRequest;
|
|
15
|
+
/**
|
|
16
|
+
* List of retry attempts for the phase
|
|
17
|
+
*/
|
|
18
|
+
retries: PhaseRetryInfo[];
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { OrchestrationStatus } from '../schemas/OrchestrationStatus';
|
|
2
|
+
import type { StatusInfo } from '../schemas/StatusInfo';
|
|
3
|
+
/**
|
|
4
|
+
* Information about a single phase retry attempt
|
|
5
|
+
*/
|
|
6
|
+
export interface PhaseRetryInfo {
|
|
7
|
+
/**
|
|
8
|
+
* Creation timestamp in milliseconds
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
createdAt: number;
|
|
12
|
+
/**
|
|
13
|
+
* End timestamp in milliseconds
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
endTs?: number;
|
|
17
|
+
/**
|
|
18
|
+
* The identifier of the phase
|
|
19
|
+
*/
|
|
20
|
+
identifier: string;
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the phase execution
|
|
23
|
+
*/
|
|
24
|
+
phaseExecutionId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the phase
|
|
27
|
+
*/
|
|
28
|
+
phaseName: string;
|
|
29
|
+
/**
|
|
30
|
+
* The retry index (0 for original, 1+ for retries)
|
|
31
|
+
* @format int32
|
|
32
|
+
*/
|
|
33
|
+
retryIndex: number;
|
|
34
|
+
/**
|
|
35
|
+
* Start timestamp in milliseconds
|
|
36
|
+
* @format int64
|
|
37
|
+
*/
|
|
38
|
+
startTs?: number;
|
|
39
|
+
/**
|
|
40
|
+
* The status of this retry attempt
|
|
41
|
+
*/
|
|
42
|
+
status: OrchestrationStatus;
|
|
43
|
+
/**
|
|
44
|
+
* Status details for this phase execution attempt
|
|
45
|
+
*/
|
|
46
|
+
statusInfo?: StatusInfo;
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReleaseArtifactValue } from '../schemas/ReleaseArtifactValue';
|
|
2
|
+
/**
|
|
3
|
+
* Input variable for a release-artifact reference. The value is an object pointing to a specific artifact-tracker service mapping + tag. Populated by the UI via a cascade over the service-refs + tags APIs.
|
|
4
|
+
*
|
|
5
|
+
*/
|
|
6
|
+
export interface ReleaseArtifactInputVariable {
|
|
7
|
+
/**
|
|
8
|
+
* Default reference (service mapping identifier + tag).
|
|
9
|
+
*/
|
|
10
|
+
default?: ReleaseArtifactValue;
|
|
11
|
+
/**
|
|
12
|
+
* Description of the variable
|
|
13
|
+
*/
|
|
14
|
+
description?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional metadata bag. Reserved for future use; not validated in v1.
|
|
17
|
+
*/
|
|
18
|
+
metadata?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Type of the input variable
|
|
23
|
+
*/
|
|
24
|
+
type: 'release-artifact';
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Free-form object stored under a release-artifact input's value/default. Pass-through server-side — mirrors output-artifact's contract. Fields listed below are conventional but none are required, and `tag` can be a runtime expression (e.g. `<+input>`) rather than a literal string.
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export interface ReleaseArtifactValue {
|
|
6
|
+
/**
|
|
7
|
+
* Optional — carried through for display; not validated server-side.
|
|
8
|
+
*/
|
|
9
|
+
artifactPath?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The service mapping identifier (from /v1/artifact-tracker/service-refs).
|
|
12
|
+
*/
|
|
13
|
+
serviceMapping?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The artifact tag, or a runtime expression that resolves to one.
|
|
16
|
+
*/
|
|
17
|
+
tag?: string;
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
package/dist/rmg-service/src/services/schemas/UpdateArtifactTrackerServiceMappingRequest.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export interface UpdateArtifactTrackerServiceMappingRequest {
|
|
2
2
|
artifactPath?: string;
|
|
3
3
|
artifactRegistry?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Docker/container registry connector reference.
|
|
6
|
+
*/
|
|
7
|
+
dockerConnectorRefOverride?: string;
|
|
4
8
|
/**
|
|
5
9
|
* Optional override for the linked settings' default git connector. Required only when the linked settings has no defaultGitConnectorRef.
|
|
6
10
|
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WebhookSignalImage } from '../schemas/WebhookSignalImage';
|
|
2
|
+
/**
|
|
3
|
+
* Pre-resolved artifacts attached by the RO Notify step (auto-discovered from CI).
|
|
4
|
+
* Present iff eventType == "ARTIFACT_TRACKER_SIGNAL"; the handler treats absence
|
|
5
|
+
* as a no-op for any other event type.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
export interface WebhookSignalArtifacts {
|
|
9
|
+
files?: Array<{
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}>;
|
|
12
|
+
images?: WebhookSignalImage[];
|
|
13
|
+
sbom?: Array<{
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { WebhookSignalArtifacts } from '../schemas/WebhookSignalArtifacts';
|
|
1
2
|
import type { WebhookEventType } from '../schemas/WebhookEventType';
|
|
2
3
|
import type { WebhookSignalPipeline } from '../schemas/WebhookSignalPipeline';
|
|
3
4
|
export interface WebhookSignalRequest {
|
|
5
|
+
artifacts?: WebhookSignalArtifacts;
|
|
4
6
|
eventType: WebhookEventType;
|
|
5
7
|
/**
|
|
6
8
|
* Event metadata. Maximum size 10 KiB.
|