@pipeline-builder/api-core 7.4.5 → 7.4.6

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The cross-account pipeline runner CONTRACT — the one vocabulary the pipeline
3
3
  * service (signer + dispatcher), the runner Lambda (verifier + responder), the
4
- * `pipeline-manager infra setup-runner` CLI and the dashboard all speak.
4
+ * `pipeline-manager infra setup-account` CLI and the dashboard all speak.
5
5
  *
6
6
  * Dependency-free on purpose (type-only imports at most): the browser imports it
7
7
  * through the `@pipeline-builder/api-core/pipeline-runners` subpath, and the
@@ -43,19 +43,19 @@ export type TerminalRunRequestStatus = (typeof TERMINAL_RUN_REQUEST_STATUSES)[nu
43
43
  /** Whether `s` is a terminal request status (false for anything unknown). */
44
44
  export declare function isTerminalRunRequestStatus(s: unknown): s is TerminalRunRequestStatus;
45
45
  /** What a signed request asks the runner to do. */
46
- export declare const RUNNER_ACTIONS: readonly ['start', 'stop', 'probe', 'ping', 'status', 'deploy', 'deploy_status', 'deploy_cancel', 'undeploy', 'list_sources', 'check_source', 'inspect_repository'];
46
+ export declare const RUNNER_ACTIONS: readonly ['start', 'stop', 'probe', 'ping', 'status', 'deploy', 'deploy_status', 'deploy_cancel', 'undeploy', 'list_sources', 'check_source', 'inspect_repository', 'inspect_connection_start', 'inspect_connection_status'];
47
47
  export type RunnerAction = (typeof RUNNER_ACTIONS)[number];
48
48
  /** The actions recorded as a run request row (a `ping`, a `status` / `deploy_status` read, a `deploy_cancel` and the source actions never are). */
49
49
  export declare const RUN_REQUEST_ACTIONS: readonly ["start", "stop", "probe", "deploy", "undeploy"];
50
50
  export type RunRequestAction = (typeof RUN_REQUEST_ACTIONS)[number];
51
51
  /** A runner's successful answers (`outcome` of a 200). */
52
- export declare const RUNNER_OUTCOMES: readonly ['started', 'stopped', 'match', 'no_match', 'pong', 'status', 'deploying', 'deploy_status', 'deploy_cancelled', 'undeploying', 'sources', 'source_ok', 'repository_reads'];
52
+ export declare const RUNNER_OUTCOMES: readonly ['started', 'stopped', 'match', 'no_match', 'pong', 'status', 'deploying', 'deploy_status', 'deploy_cancelled', 'undeploying', 'sources', 'source_ok', 'repository_reads', 'inspection_started', 'inspection_status'];
53
53
  export type RunnerOutcome = (typeof RUNNER_OUTCOMES)[number];
54
54
  /** The outcome a successful answer to each action must carry. */
55
55
  export declare const EXPECTED_OUTCOMES: Readonly<Record<RunnerAction, readonly RunnerOutcome[]>>;
56
56
  /**
57
57
  * What a runner bundle can do beyond start/stop/probe/ping/status. `deploy:1`:
58
- * the stack was set up with `--enable-deploy` (EnableDeploy=true) and the
58
+ * the stack was set up with `--deploy` (EnableDeploy=true) and the
59
59
  * bundle speaks deploy, deploy_status, deploy_cancel and undeploy. One
60
60
  * capability covers undeploy too: it runs the same CodeBuild project.
61
61
  * `sources:1`: the bundle speaks list_sources and check_source and its role may
@@ -65,12 +65,24 @@ export declare const EXPECTED_OUTCOMES: Readonly<Record<RunnerAction, readonly R
65
65
  * org's GitHub token secrets' VALUES (GetSecretValue on
66
66
  * `pipeline-builder/<any org>/github-token[/<owner>]`) to read a private repository for
67
67
  * Generate from Git — the token never leaves the account.
68
+ * `inspect_connection:1`: the bundle speaks inspect_connection_start /
69
+ * inspect_connection_status and its stack has the inspect CodeBuild project and
70
+ * results bucket — a repository read through a CodeConnections connection.
71
+ * `identity:1`: every reply the bundle sends after verifying a request echoes
72
+ * `identity` — the connector id, the request id (`jti`), the AWS account id and
73
+ * the connector's name (informational) — so the platform can refuse a reply
74
+ * from the wrong connector and pin the connector to one AWS account.
75
+ * `events:1`: the stack has EventBridge reporting, and a pong carries its
76
+ * health (`reporting`: failed events in the dead-letter queue, last event time).
68
77
  */
69
- export declare const RUNNER_CAPABILITIES: readonly ['deploy:1', 'sources:1', 'inspect:1'];
78
+ export declare const RUNNER_CAPABILITIES: readonly ['deploy:1', 'sources:1', 'inspect:1', 'inspect_connection:1', 'identity:1', 'events:1'];
70
79
  export type RunnerCapability = (typeof RUNNER_CAPABILITIES)[number];
71
80
  export declare const DEPLOY_CAPABILITY: "deploy:1";
72
81
  export declare const SOURCES_CAPABILITY: "sources:1";
73
82
  export declare const INSPECT_CAPABILITY: "inspect:1";
83
+ export declare const INSPECT_CONNECTION_CAPABILITY: "inspect_connection:1";
84
+ export declare const IDENTITY_CAPABILITY: "identity:1";
85
+ export declare const EVENTS_CAPABILITY: "events:1";
74
86
  /**
75
87
  * The capability each gated action needs. The platform checks it BEFORE
76
88
  * signing: a bundle without it answers an unknown action 401
@@ -91,6 +103,11 @@ export declare const SOURCE_ACTION_CAPABILITY: {
91
103
  export declare const INSPECT_ACTION_CAPABILITY: {
92
104
  readonly inspect_repository: "inspect:1";
93
105
  };
106
+ /** The connection-inspection actions' capability. */
107
+ export declare const INSPECT_CONNECTION_ACTION_CAPABILITY: {
108
+ readonly inspect_connection_start: "inspect_connection:1";
109
+ readonly inspect_connection_status: "inspect_connection:1";
110
+ };
94
111
  /** Whether a runner reporting `capabilities` may be sent `action`. */
95
112
  export declare function runnerSupportsAction(capabilities: readonly string[], action: RunnerAction): boolean;
96
113
  /** A pong's `capabilities`, kept to the known ones (deduplicated, catalog order); [] for anything malformed. */
@@ -106,21 +123,27 @@ export declare function pipelineNameMatchesPrefixes(pipelineName: string, prefix
106
123
  /** An AWS region name (`us-east-1`, `us-gov-west-1`). */
107
124
  export declare const AWS_REGION_PATTERN: RegExp;
108
125
  /**
109
- * A runner's label: ONE rule for `setup-runner --label`, the register / rename
110
- * API and the dashboard's rename. 1-32 lowercase letters, digits or '-',
111
- * starting with a letter or digit — what the CLI can type back to find the
112
- * runner (its by-label lookup), so a rename can never strand a runner from it.
113
- * Unique per org among non-revoked runners (409 RUNNER_LABEL_TAKEN; a partial
114
- * unique index in the database).
126
+ * A connector's NAME (the `label` column / field): free text the dashboard edits
127
+ * at any time — 1-64 characters after trimming, any language, no control or
128
+ * format characters (line breaks, NUL, bidi overrides). Unique per org among
129
+ * non-revoked connectors, ignoring case (409 RUNNER_LABEL_TAKEN; a partial
130
+ * unique index on lower(label)). The CLI finds a connector by its id or name.
115
131
  */
116
- export declare const RUNNER_LABEL_PATTERN: RegExp;
117
- /** {@link RUNNER_LABEL_PATTERN}'s length limit. */
118
- export declare const RUNNER_LABEL_MAX_LENGTH = 32;
119
- /** What a label breaking {@link RUNNER_LABEL_PATTERN} is told (after `label "<value>" `). */
120
- export declare const RUNNER_LABEL_MESSAGE = "must be 1-32 lowercase letters, digits or '-' (starting with a letter or digit)";
121
- /** Why `label` is not a valid runner label (`label "<label>" must be …`), or null when it is. */
132
+ export declare const RUNNER_LABEL_MAX_LENGTH = 64;
133
+ /** What a name breaking the rule is told (after `name `). */
134
+ export declare const RUNNER_LABEL_MESSAGE = "must be 1-64 characters, with no line breaks or other control characters";
135
+ /** The stored form of a typed name: trimmed. */
136
+ export declare function normalizeRunnerLabel(raw: string): string;
137
+ /** Why `label` is not a valid connector name (`name must be …`), or null when it is. Never echoes the value. */
122
138
  export declare function runnerLabelError(label: string): string | null;
123
- /** Every runner stack's name starts with this (setup-runner lists the account's stacks by it). */
139
+ /**
140
+ * A name fit to LOG or show, from an untrusted source (a signed claim, a
141
+ * runner's reply): control/format characters removed, whitespace runs
142
+ * collapsed, capped at {@link RUNNER_LABEL_MAX_LENGTH}. Undefined when nothing
143
+ * is left. Informational only — never compared, never a metric label.
144
+ */
145
+ export declare function displayRunnerName(raw: unknown): string | undefined;
146
+ /** Every account connector stack WITH a runner starts with this (setup-account lists the account's stacks by it). */
124
147
  export declare const RUNNER_STACK_PREFIX = "pipeline-builder-runner-";
125
148
  /**
126
149
  * CloudFormation stack name for a runner: `pipeline-builder-runner-<runnerId>`.
@@ -128,6 +151,10 @@ export declare const RUNNER_STACK_PREFIX = "pipeline-builder-runner-";
128
151
  * AWS account never collide.
129
152
  */
130
153
  export declare function runnerStackName(runnerId: string): string;
154
+ /** A reporting-only account connector's stack (`setup-account --no-runner`): one per account and organization. */
155
+ export declare const REPORTING_STACK_PREFIX = "pipeline-builder-reporting-";
156
+ /** The stack of a reporting-only account connector: `pipeline-builder-reporting-<orgId>`. */
157
+ export declare function reportingStackName(orgId: string): string;
131
158
  /**
132
159
  * The region a runner's stack lives in, read from its endpoint (a Lambda
133
160
  * Function URL `https://<id>.lambda-url.<region>.on.aws/` or an API Gateway
@@ -137,7 +164,7 @@ export declare function runnerStackName(runnerId: string): string;
137
164
  export declare function runnerStackRegion(endpointUrl: string | null | undefined): string | null;
138
165
  /** The secret (in the stack region) holding an org's registry pull credential, as `infra store-token --scope registry:push` names it. */
139
166
  export declare function registryPullSecretName(orgId: string): string;
140
- /** The command that stores an org's registry pull credential in a region (what `setup-runner --enable-deploy` checks first). */
167
+ /** The command that stores an org's registry pull credential in a region (what `setup-account --deploy` checks first). */
141
168
  export declare function registryPullCredentialCommand(region: string): string;
142
169
  /**
143
170
  * The oldest CDK bootstrap a deploy through a runner works with: version 21
@@ -152,7 +179,7 @@ export declare function cdkBootstrapCommand(region: string, qualifier?: string):
152
179
  * How to turn deploys on for one of the caller's own runners without the CLI
153
180
  * (`enableDeploy` on a runner without `deploy:1`): the CloudFormation console
154
181
  * page that updates its stack, the parameters it sets, and what
155
- * `setup-runner --enable-deploy` would check first — the registry pull
182
+ * `setup-account --deploy` would check first — the registry pull
156
183
  * credential in the stack region and a current CDK bootstrap in every region
157
184
  * the runner deploys to. Null for another org's runner (its owner's admins
158
185
  * update it) and when the stack's region can't be told.
@@ -167,7 +194,7 @@ export interface EnableDeployLinkDto {
167
194
  /** Each needs a CDK bootstrap of {@link MIN_CDK_BOOTSTRAP_VERSION}+. */
168
195
  bootstrapRegions: string[];
169
196
  }
170
- /** The registry pull host (`host` or `host:port`) for a platform base URL, as setup-runner derives it; null for no / a malformed URL. */
197
+ /** The registry pull host (`host` or `host:port`) for a platform base URL, as setup-account derives it; null for no / a malformed URL. */
171
198
  export declare function registryPullHostOf(platformBaseUrl: string | null | undefined): string | null;
172
199
  /** {@link EnableDeployLinkDto} for a runner, or null when its stack's region can't be told (or there is no platform URL). */
173
200
  export declare function enableDeployLink(a: {
@@ -177,7 +204,7 @@ export declare function enableDeployLink(a: {
177
204
  regions: readonly string[];
178
205
  platformBaseUrl: string | null | undefined;
179
206
  }): EnableDeployLinkDto | null;
180
- /** The stack parameters `setup-runner --enable-deploy` sets to turn deploys on (the rest keep their defaults). */
207
+ /** The stack parameters `setup-account --deploy` sets to turn deploys on (the rest keep their defaults). */
181
208
  export declare function enableDeployStackParameters(a: {
182
209
  orgId: string;
183
210
  registryPullHost: string;
@@ -205,7 +232,54 @@ export interface RunnerPongDetails {
205
232
  runnerVersion?: unknown;
206
233
  capabilities?: unknown;
207
234
  pipelinePrefixes?: unknown;
235
+ /** `events:1` only: {@link parseRunnerReporting}. */
236
+ reporting?: unknown;
208
237
  }
238
+ /** A 12-digit AWS account id. Stored and shown in plain form (pinning, not secrecy). */
239
+ export declare const AWS_ACCOUNT_ID_PATTERN: RegExp;
240
+ /**
241
+ * What an `identity:1` runner echoes in every reply to a request it verified:
242
+ * its connector id (the request's `aud`), the request id (`jti`), its AWS
243
+ * account id and its name. The platform refuses a reply whose `runnerId` or
244
+ * `requestId` is not the request's, and pins the connector to `accountId`.
245
+ * `name` is informational (shown in logs), never checked.
246
+ */
247
+ export interface RunnerReplyIdentity {
248
+ runnerId: string;
249
+ requestId: string;
250
+ accountId?: string;
251
+ /** The connector's home region (its stack's, the Lambda's AWS_REGION): pinned together with the account. */
252
+ homeRegion?: string;
253
+ /** The region the action acted in — echoed for an action whose signed claim names one ({@link claimRegion}). */
254
+ region?: string;
255
+ name?: string;
256
+ }
257
+ /** The region a signed request names (source listing/check, stored-token / connection inspect, deploy / undeploy), else undefined. */
258
+ export declare function claimRegion(c: {
259
+ sources?: {
260
+ region: string;
261
+ };
262
+ inspect?: {
263
+ region: string;
264
+ };
265
+ inspectConnection?: {
266
+ region: string;
267
+ };
268
+ deploy?: {
269
+ region: string;
270
+ };
271
+ }): string | undefined;
272
+ /** A reply's `identity`: undefined when absent, null when malformed. */
273
+ export declare function parseRunnerReplyIdentity(raw: unknown): RunnerReplyIdentity | null | undefined;
274
+ /** The reporting health an `events:1` pong carries. */
275
+ export interface RunnerReportingHealth {
276
+ /** Events waiting in the dead-letter queue (failed 3 times). */
277
+ failedEvents: number;
278
+ /** When the events Lambda last delivered an event to the platform (ISO), null when never. */
279
+ lastEventAt: string | null;
280
+ }
281
+ /** A pong's `reporting`, or undefined when absent or malformed. */
282
+ export declare function parseRunnerReporting(raw: unknown): RunnerReportingHealth | undefined;
209
283
  /**
210
284
  * Where a code comes from:
211
285
  * - `platform` — the pipeline service answers with it (`code` of the error envelope);
@@ -273,6 +347,16 @@ export declare const RUNNER_ERRORS: {
273
347
  readonly retryable: false;
274
348
  readonly category: 'platform';
275
349
  };
350
+ /**
351
+ * The connector answered from a different AWS account than the one it was
352
+ * pinned to: nothing is delivered to it until an admin confirms the new
353
+ * account (POST …/runners/:id/confirm-account).
354
+ */
355
+ readonly RUNNER_ACCOUNT_CHANGED: {
356
+ readonly httpStatus: 409;
357
+ readonly retryable: false;
358
+ readonly category: 'platform';
359
+ };
276
360
  readonly RUN_REQUEST_RATE_LIMITED: {
277
361
  readonly httpStatus: 429;
278
362
  readonly retryable: false;
@@ -347,7 +431,7 @@ export declare const RUNNER_ERRORS: {
347
431
  readonly retryable: false;
348
432
  readonly category: 'platform';
349
433
  };
350
- /** The runner does not list the `deploy:1` capability (an old bundle, or a stack without --enable-deploy): update it with {@link DEPLOY_SETUP_COMMAND}. */
434
+ /** The runner does not list the `deploy:1` capability (an old bundle, or a stack without --deploy): update it with {@link DEPLOY_SETUP_COMMAND}. */
351
435
  readonly RUNNER_DEPLOY_UNSUPPORTED: {
352
436
  readonly httpStatus: 409;
353
437
  readonly retryable: false;
@@ -476,7 +560,7 @@ export declare const RUNNER_ERRORS: {
476
560
  readonly retryable: false;
477
561
  readonly category: 'runner';
478
562
  };
479
- /** The stack was not set up with --enable-deploy (the platform clears the runner's stored capabilities). */
563
+ /** The stack was not set up with --deploy (the platform clears the runner's stored capabilities). */
480
564
  readonly DEPLOY_NOT_ENABLED: {
481
565
  readonly httpStatus: 403;
482
566
  readonly retryable: false;
@@ -542,7 +626,31 @@ export declare const RUNNER_ERRORS: {
542
626
  readonly retryable: false;
543
627
  readonly category: 'runner';
544
628
  };
629
+ /** inspect_connection_status: no such build in the runner's own inspect project. */
630
+ readonly INSPECT_BUILD_NOT_FOUND: {
631
+ readonly httpStatus: 404;
632
+ readonly retryable: false;
633
+ readonly category: 'runner';
634
+ };
635
+ /** The inspect project lives in the runner stack's own region; the connection must be there too. */
636
+ readonly INSPECT_REGION_UNSUPPORTED: {
637
+ readonly httpStatus: 409;
638
+ readonly retryable: false;
639
+ readonly category: 'runner';
640
+ };
641
+ /** The inspect project is at its concurrent build limit. */
642
+ readonly INSPECT_BUSY: {
643
+ readonly httpStatus: 409;
644
+ readonly retryable: false;
645
+ readonly category: 'runner';
646
+ };
545
647
  /** Not delivered within the request's lifetime. */
648
+ /** A reply whose echoed connector id or request id is not the request's (or an identity:1 reply without one). */
649
+ readonly RUNNER_IDENTITY_MISMATCH: {
650
+ readonly httpStatus: null;
651
+ readonly retryable: false;
652
+ readonly category: 'recorded';
653
+ };
546
654
  readonly RUN_REQUEST_EXPIRED: {
547
655
  readonly httpStatus: null;
548
656
  readonly retryable: false;
@@ -642,6 +750,10 @@ export interface RunClaims {
642
750
  sources?: RunSourcesClaim;
643
751
  /** inspect_repository only. */
644
752
  inspect?: RunInspectClaim;
753
+ /** inspect_connection_start and inspect_connection_status only. */
754
+ inspectConnection?: RunInspectConnectionClaim;
755
+ /** The connector's current name — informational (logs), never checked by the runner. */
756
+ name?: string;
645
757
  requestedBy: string;
646
758
  }
647
759
  /**
@@ -756,6 +868,55 @@ export declare const INSPECT_MAX_REPLY_BYTES: number;
756
868
  export declare const INSPECT_MAX_LISTING_ENTRIES = 1000;
757
869
  /** A repository name segment. */
758
870
  export declare const INSPECT_REPO_PATTERN: RegExp;
871
+ /**
872
+ * The `inspectConnection` claim block. Start: clone `repository` on `branch`
873
+ * through `connectionArn` (which must be AVAILABLE, in the runner's account and
874
+ * in `region` — the runner stack's own region, where its inspect project is) and
875
+ * collect a bounded snapshot. Status: how build `buildId` (one of this runner's
876
+ * inspect builds) is doing, with the snapshot once it succeeded. The runner
877
+ * builds the clone URL from the validated host and path only.
878
+ */
879
+ export type RunInspectConnectionClaim = {
880
+ kind: 'start';
881
+ region: string;
882
+ connectionArn: string;
883
+ repository: InspectConnectionRepository;
884
+ /** '' = the repository's default branch. */
885
+ branch: string;
886
+ /** '' = the root. */
887
+ subdirectory: string;
888
+ } | {
889
+ kind: 'status';
890
+ region: string;
891
+ buildId: string;
892
+ };
893
+ /** The repository a connection inspection clones: its host (lowercased) and its `owner/…/repo` path. */
894
+ export interface InspectConnectionRepository {
895
+ host: string;
896
+ path: string;
897
+ }
898
+ /** Why `raw` is not a repository a connection inspection may clone, or null. */
899
+ export declare function inspectConnectionRepositoryProblem(raw: unknown): string | null;
900
+ /** A connection inspection's state, as inspect_connection_status answers it. */
901
+ export declare const INSPECT_CONNECTION_STATES: readonly ['queued', 'running', 'succeeded', 'failed', 'timed_out'];
902
+ export type InspectConnectionState = (typeof INSPECT_CONNECTION_STATES)[number];
903
+ /**
904
+ * Where a failed inspection failed: `source` — the clone (the connection can't
905
+ * read the repository, or the branch isn't there); `build` — collecting the
906
+ * snapshot; `other` — anything else.
907
+ */
908
+ export declare const INSPECT_CONNECTION_FAILED_PHASES: readonly ['source', 'build', 'other'];
909
+ export type InspectConnectionFailedPhase = (typeof INSPECT_CONNECTION_FAILED_PHASES)[number];
910
+ /** How often the platform asks how an inspect build is doing. */
911
+ export declare const INSPECT_CONNECTION_POLL_MS = 5000;
912
+ /** How long the platform waits for an inspect build in all, starting it included. */
913
+ export declare const INSPECT_CONNECTION_DEADLINE_MS: number;
914
+ /** The inspect project's build timeout (runner-stack.json): CodeBuild stops a build past it. */
915
+ export declare const INSPECT_BUILD_TIMEOUT_MINUTES = 10;
916
+ /** The inspect project's name before the runner's name suffix (`pipeline-builder-inspect-<runnerId>`). */
917
+ export declare const INSPECT_PROJECT_PREFIX = "pipeline-builder-inspect";
918
+ /** One of a runner's inspect builds: `pipeline-builder-inspect<suffix>:<uuid>`. */
919
+ export declare const INSPECT_BUILD_ID_PATTERN: RegExp;
759
920
  /**
760
921
  * Why the source options could not be listed (the picker falls back to pasting
761
922
  * an ARN and says why) — also why a stored-token read can't run:
@@ -1211,13 +1372,13 @@ export interface DeployLogHint {
1211
1372
  }
1212
1373
  export declare function deployLogHint(runnerId: string, buildId: string | null): DeployLogHint;
1213
1374
  /** The command that turns deploys on for a runner. */
1214
- export declare const DEPLOY_SETUP_COMMAND = "pipeline-manager infra setup-runner --enable-deploy";
1375
+ export declare const DEPLOY_SETUP_COMMAND = "pipeline-manager infra setup-account --deploy";
1215
1376
  /**
1216
1377
  * The command that updates a runner without deploys to the current bundle and
1217
1378
  * role (`sources:1` and its read-only grants). A runner WITH deploys is updated
1218
1379
  * with {@link DEPLOY_SETUP_COMMAND}, so the update keeps them on.
1219
1380
  */
1220
- export declare const SOURCES_SETUP_COMMAND = "pipeline-manager infra setup-runner";
1381
+ export declare const SOURCES_SETUP_COMMAND = "pipeline-manager infra setup-account";
1221
1382
  /** The facade routes under `/api/pipelines/runner/deploys/:requestId/`. `session` exchanges the grant; the rest take the session token. */
1222
1383
  export declare const DEPLOY_SESSION_LEAVES: readonly ['session', 'pipeline', 'plugin-lookup', 'progress', 'registry', 'result'];
1223
1384
  export type DeploySessionLeaf = (typeof DEPLOY_SESSION_LEAVES)[number];
@@ -1372,6 +1533,18 @@ export interface PipelineRunnerDto {
1372
1533
  pipelinePrefixes: string[];
1373
1534
  /** For the owning org's admins, on an active runner without `deploy:1`: turn deploys on in the AWS console. */
1374
1535
  enableDeploy: EnableDeployLinkDto | null;
1536
+ /** The AWS account the connector is pinned to (plain form); null until its first identity reply. */
1537
+ awsAccountId: string | null;
1538
+ /** Its home region, pinned together with the account. */
1539
+ awsHomeRegion: string | null;
1540
+ /** A DIFFERENT account (or home region) a later reply came from: nothing is delivered until an admin confirms it (confirm-account). */
1541
+ accountMismatchId: string | null;
1542
+ homeRegionMismatch: string | null;
1543
+ /** EventBridge reporting health from its last events:1 pong; null when reporting is off (or unknown). */
1544
+ reporting: {
1545
+ failedEvents: number;
1546
+ lastEventAt: string | null;
1547
+ } | null;
1375
1548
  }
1376
1549
  /** A parent org's runner shared with this team (signed with the parent's effective key). */
1377
1550
  export interface InheritedPipelineRunnerDto extends PipelineRunnerDto {
@@ -1523,6 +1696,9 @@ export interface RegisterRunnersDto {
1523
1696
  export interface DeployTargetRunnerDto {
1524
1697
  id: string;
1525
1698
  label: string;
1699
+ /** The AWS account and home region the connector is pinned to (its secondary line); null until known. */
1700
+ awsAccountId: string | null;
1701
+ awsHomeRegion: string | null;
1526
1702
  /** The caller's org owns it (false for an ancestor's shared runner). */
1527
1703
  isOwn: boolean;
1528
1704
  /** Set for every runner that is not the caller's own. */