@kici-dev/engine 0.14.2 → 0.15.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/index.js +5 -5
- package/dist/protocol/messages/auth.d.ts +2 -0
- package/dist/protocol/messages/auth.js +10 -1
- package/dist/protocol/messages/capabilities.d.ts +6 -0
- package/dist/protocol/messages/capabilities.js +10 -2
- package/dist/protocol/messages/dashboard.d.ts +46 -0
- package/dist/protocol/messages/dashboard.js +26 -4
- package/dist/protocol/messages/join.d.ts +73 -2
- package/dist/protocol/messages/join.js +101 -12
- package/dist/protocol/messages/peer.d.ts +55 -8
- package/dist/protocol/messages/peer.js +31 -11
- package/dist/protocol/messages/platform-orchestrator.d.ts +4 -0
- package/dist/webhook/webhook-url-format.d.ts +2 -2
- package/dist/webhook/webhook-url-format.js +2 -2
- package/package.json +1 -1
- package/sbom.spdx.json +5 -5
package/dist/index.js
CHANGED
|
@@ -33,8 +33,8 @@ import { HostTargetSelector, HostTargetValue, LabelMatcher, canonicalizeMatcher,
|
|
|
33
33
|
import { ConcurrencyStrategy, DEFAULT_CONCURRENCY_STRATEGY } from "./context/concurrency-strategy.js";
|
|
34
34
|
import { HostInventoryEntry, HostPropertyValue, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, coerceHostPropertyValue, parseHostPropertyAssignments } from "./inventory.js";
|
|
35
35
|
import { REGEX_NEGATIVE_ASSERTION, isNegatedPattern, negatedPatternReason } from "./repo/pattern-negation.js";
|
|
36
|
-
import { ContextDeleteErrorCode, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, HeldRunQueueType, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, trustPolicyResponseSchema } from "./protocol/messages/dashboard.js";
|
|
37
|
-
import { AGENT_CAPABILITIES, AgentCapabilityFlag, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, OrchRole, PLATFORM_CAPABILITIES, agentCapabilitiesSchema, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, platformCapabilitiesSchema } from "./protocol/messages/capabilities.js";
|
|
36
|
+
import { ContextDeleteErrorCode, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, FleetHostWriteRefusal, HeldRunQueueType, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostEntrySchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, trustPolicyResponseSchema } from "./protocol/messages/dashboard.js";
|
|
37
|
+
import { AGENT_CAPABILITIES, AgentCapabilityFlag, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, OrchCapabilityFlag, OrchRole, PLATFORM_CAPABILITIES, agentCapabilitiesSchema, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, platformCapabilitiesSchema } from "./protocol/messages/capabilities.js";
|
|
38
38
|
import { authFailureSchema, authRequestSchema, authSuccessSchema } from "./protocol/messages/auth.js";
|
|
39
39
|
import { LogStream } from "./protocol/messages/log-stream.js";
|
|
40
40
|
import { CLUSTER_MEMBERSHIP_MAX_WORKERS, CiTrustLevel, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_APPROVAL_EXPIRY_SECONDS, ForkPolicy, MAX_APPROVAL_EXPIRY_HOURS, MAX_APPROVAL_EXPIRY_SECONDS, MIN_APPROVAL_EXPIRY_SECONDS, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OrchLogPhase, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, SECONDS_PER_HOUR, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WebhookRelayResult, approvalExpiryHoursOf, approvalExpirySecondsOf, cacheStatsSchema, clusterMembershipSchema, collectDiscriminatorTypes, executionEventSchema, logChunkSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToPlatformMessageSchema, peerDiscoverSchema, peerUpdateSchema, planHeadroomSchema, platformCapabilitiesMessageSchema, platformToOrchestratorMessageSchema, staleCheckrunCleanupSchema, trustPolicySchema, trustPolicyUpdateSchema, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema } from "./protocol/messages/platform-orchestrator.js";
|
|
@@ -48,8 +48,8 @@ import { ActivityFilterSource, ActivityRowSource, activityCursorSchema, activity
|
|
|
48
48
|
import { logPullOrchToPlatformSchema, logPullPlatformToOrchSchema } from "./protocol/messages/log-pull.js";
|
|
49
49
|
import { EVENT_LOG_PAYLOAD_CHUNK_BYTES } from "./protocol/event-log-payload.js";
|
|
50
50
|
import { browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, platformToBrowserMessageSchema } from "./protocol/messages/browser.js";
|
|
51
|
-
import { joinRequestSchema, joinResponseSchema } from "./protocol/messages/join.js";
|
|
52
|
-
import { PeerForgetOutcome, ScalerOrphansAction, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rerouteSpawnRetrySchema, scalerLiveVmSchema, scalerVmStopResultSchema, workerClusterSettingsSchema } from "./protocol/messages/peer.js";
|
|
51
|
+
import { INVALID_JOIN_REQUEST_MESSAGE, JOIN_PROTOCOL_UNSUPPORTED_MESSAGE, JOIN_PROTOCOL_UPGRADE_TOKEN, JOIN_PROTOCOL_V1_REMOVED_MESSAGE, JOIN_PROTOCOL_VERSION, JoinErrorCode, JoinRequestKind, LEGACY_JOINER_AUTH_MESSAGE, buildJoinRefusal, classifyJoinRequest, isJoinRequestFrame, joinRequestSchema, joinResponseSchema, joinRoutingSchema } from "./protocol/messages/join.js";
|
|
52
|
+
import { PEER_MUTUAL_AUTH_REQUIRED_REASON, PeerAuthMode, PeerAuthScheme, PeerForgetOutcome, ScalerOrphansAction, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rerouteSpawnRetrySchema, scalerLiveVmSchema, scalerVmStopResultSchema, workerClusterSettingsSchema } from "./protocol/messages/peer.js";
|
|
53
53
|
import { AGENT_API_REQUEST_TIMEOUT_MS, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactRejectReason, ArtifactUploadOutcome, CacheRefScope, JobRejectReason, StepApprovalOutcome, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, configAckSchema, eventEmitResponseSchema, eventEmitSchema, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetLogsRequestSchema, gitAuthSchema, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, invokeResultSchema, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, rateLimitWarningSchema, registerAckSchema, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
|
|
54
54
|
import { KNOWN_LINUX_CAPABILITIES, canonicalizeCapability, isKnownCapability } from "./sandbox/capabilities.js";
|
|
55
55
|
import { compileSafeRegex, describeTextMatch, evaluateTextMatch, textMatchHasQuery } from "./trigger/text-match.js";
|
|
@@ -96,4 +96,4 @@ import { ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, ArtifactNameSch
|
|
|
96
96
|
import { PLAN_TYPES, PaidPlanType, PlanType, isPaidTier, planRank } from "./billing/plan-type.js";
|
|
97
97
|
import { SUBSCRIPTION_EXISTS_CODE, StripeSubscriptionStatus, blocksNewCheckout } from "./billing/subscription-status.js";
|
|
98
98
|
import { INFRA_ALERT_TYPES, InfraAlertSeverity, InfraAlertType, normalizeInfraAlertSeverity } from "./diagnostics/infra-alert.js";
|
|
99
|
-
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, ACTOR_AGENT_SUFFIX, AGENT_API_REQUEST_TIMEOUT_MS, AGENT_CAPABILITIES, AGENT_FEATURE_LABELS, AGENT_FEATURE_LABEL_PREFIX, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentCapabilityFlag, AgentFailureCategory, AgentFeature, ApprovalDecision, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactNameSchema, ArtifactRejectReason, ArtifactUploadOutcome, AttestationOrigin, BREAKING_FLOOR, CANONICAL_STATUSES, CAPABILITY_LABEL_PREFIX, CLUSTER_MEMBERSHIP_MAX_WORKERS, CONTAINER_BUILD_RUNTIME_LABEL, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, CiTrustLevel, ConcurrencyStrategy, ConfigPathsSchema, ContextDeleteErrorCode, ContextGateRejectReason, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_APPROVAL_EXPIRY_SECONDS, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, DEFERRED_PATHS_SUMMARY_SUFFIX, DEVELOPER_OPERATIONS, DashboardResponseErrorCode, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, DispatchInputError, DispatchInputType, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutCause, FanoutError, FleetHostDisposition, ForkPolicy, GLOBAL_APPROVAL_MIN_READER, GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL, HEARTBEAT_CLOSE_MS, HEARTBEAT_DEGRADED_MS, HEARTBEAT_FRESH_MS, HEARTBEAT_STALE_THRESHOLD_SECONDS, HEARTBEAT_UNHEALTHY_MARK_MS, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HoldType, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, ID_TOKEN_CLAIM_NAMES, INFRA_ALERT_TYPES, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, INSTALL_JOB_ID_PREFIX, INTERNAL_EVENT_NAME_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JOB_IMAGE_RUNTIME_LABEL, JobKind, JobRejectReason, KICI_AGENT_ENV_PREFIX, KICI_EVENT_NAME_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_APPROVAL_EXPIRY_HOURS, MAX_APPROVAL_EXPIRY_SECONDS, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_APPROVAL_EXPIRY_SECONDS, MIN_PROTOCOL_VERSION, MatrixShapeError, MinimumTrustSchema, NACK_EXEMPT_MESSAGE_TYPES, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OWN_INGRESS_MODES, OnUnreachableMode, OrchLogPhase, OrchRole, OrchestratorMode, PING_EVENT_TYPE, PLAN_TYPES, PLATFORM_CAPABILITIES, PLATFORM_CONNECTED_MODES, PLATFORM_TAINT_LABELS, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, POLICY_BY_ACTION, PRIVILEGED_ROOT_LABEL, PROTOCOL_VERSION, PULL_REQUEST_FAMILY_TRIGGER_EVENTS, PaidPlanType, PatKind, PayloadOmittedReason, PeerForgetOutcome, PlanType, REDACTED_TRACE_FIELD, REGEX_NEGATIVE_ASSERTION, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RUNTIME_LABEL_PREFIX, RegisterableTriggerType, RunFailureClass, RunsOnPick, RuntimeFact, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCALER_EVENT_NAMES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECONDS_PER_HOUR, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, STATE_REPLAY_MAX_RUNS, STATUS_EPOCH_MAX, STATUS_FAILURE_CLASS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, STATUS_PRECEDENCE, SUBSCRIBABLE_WEBHOOK_EVENT_TYPES, SUBSCRIPTION_EXISTS_CODE, ScaleDownReason, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOrphansAction, ScalerOs, ScalerScaleDownPayload, ScalerScaleUpPayload, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, ScopeNameError, SecretKeyError, SetupStepType, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, StripeSubscriptionStatus, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRACE_TEXT_MAX, TRACE_TRUNCATION_WORKFLOW_NAME, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TraceCheck, TraceVerdict, TriggerSource, TrustTierSchema, UNRESOLVED_CLAIM, UnavailablePathsTrace, UnsupportedDispatchInputError, VariantKind, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WORKFLOW_MODIFICATION_JOB_ID, WS_CLOSE_AGENT_AUTH_FAILED, WS_CLOSE_AUTH_TIMEOUT, WS_CLOSE_CLUSTER_NAME_CONFLICT, WS_CLOSE_DISPATCH_ACK_TIMEOUT, WS_CLOSE_GOING_AWAY, WS_CLOSE_HEARTBEAT_TIMEOUT, WS_CLOSE_INTERNAL_ERROR, WS_CLOSE_INVALID_MESSAGE, WS_CLOSE_PLAN_LIMIT, WS_CLOSE_PROTOCOL_ERROR, WS_CLOSE_REBALANCE, WS_CLOSE_SUPERSEDED_BY_RECONNECT, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookEventType, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentCapabilitiesSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentFeatureLabel, agentJobResultSchema, agentLabelOf, agentLogChunkSchema, agentMetricsSchema, agentOrchestratorSummarySchema, agentOrgSummarySchema, agentRegisterSchema, agentRunListItemSchema, agentRunResultSchema, agentSecretScopeSchema, agentStatusSchema, agentStepLogsSchema, agentStepResultSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, agentWorkflowSummarySchema, apiKeyActorSchema, appendChecks, applyIncludeExclude, approvalExpiryHoursOf, approvalExpirySecondsOf, approvalRequirementSchema, approvalTimeoutSecondsSchema, approveRunToolSchema, approverClauseSchema, artifactInvalidNameError, artifactListItemSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, assertScheduleInputsSatisfiable, assertValidScopeName, assertValidSecretKey, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, blocksNewCheckout, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, buildEventClaims, buildIdTokenSubject, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, canonicalizeLabel, canonicalizeLabelSet, canonicalizeLabels, canonicalizeMatcher, capabilityLabel, changedFilesStatusSchema, checkArtifactName, clusterMembershipSchema, coerceDispatchInputs, coerceHostPropertyValue, collectDiscriminatorTypes, compileRegexMatcher, compileSafeRegex, configAckSchema, connectionHealthStatusSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, createCommitMessageTraceEntry, createContentRequirementsTraceEntry, createDispatchFailureTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createTraceTruncationMarker, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, decodeActivityCursor, deriveOsArchLabels, derivePlatformTaints, describeTextMatch, developerOpsForEntrypoint, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, diffRangeKindSchema, encodeActivityCursor, errorSchema, evaluateTextMatch, eventEmitResponseSchema, eventEmitSchema, eventLogActivityCountsSchema, eventLogListItemSchema, executionEventSchema, executionStatusSchema, expandMatrix, expandMultiDimension, expandSingleDimension, extractInputDescriptor, extractInputsDescriptorMap, fanoutEnvelopeFields, findDuplicateCombination, flattenActor, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetLogsRequestSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, fleetSelectionSchema, fnv1a32, formatExpandedJobName, formatMatrixSuffix, getAccessLogColdDays, getAccessLogWarmDays, getAuditLogColdDays, getAuditLogWarmDays, getDiagnosticsToolSchema, getRepoGlobMatcher, getRunToolSchema, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, getStepLogsToolSchema, gitAuthSchema, githubIngressPath, githubWebhookPath, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, invokeResultSchema, isDeferrableRange, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, isMintedRef, isNegatedPattern, isPaidTier, isPullRequestFamilyTriggerEvent, isSecurityHoldJobId, isSelfReportedLabel, isSetupStepType, isTrustedEnvScrubbed, isZeroSha, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobContextMessageSchema, jobDispatchSchema, jobProgressAckSchema, jobProgressSchema, jobRejectSchema, jobRerouteAckSchema, jobRerouteSchema, jobStatusForwardSchema, jobStatusSchema, joinRequestSchema, joinResponseSchema, listOrchestratorsToolSchema, listOrgsToolSchema, listRunsToolSchema, listSecretsToolSchema, listWorkflowsToolSchema, logChunkSchema, logPullOrchToPlatformSchema, logPullPlatformToOrchSchema, manualScheduleRequestSchema, matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchScopePattern, matchTrigger, matchWorkflowTriggers, matchWorkflowsForEvent, matcherMatches, matcherSatisfiedBy, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixCombinationCount, matrixEnvelopeFields, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, mergeAutoLabels, mergeOrderedMaps, minAccessLogWarmDays, minAuditLogWarmDays, minSecretAuditLogWarmDays, nackSchema, negatedPatternReason, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, normalizeRegexFlags, normalizeRunsOn, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseInputPairs, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, peerUpdateSchema, persistedHoldTypeSpellings, planHeadroomSchema, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceContextSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rateLimitWarningSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerouteSpawnRetrySchema, rerunRunToolSchema, reservedEventNamePrefix, resolveContentFormat, resolveDiffRange, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, runtimeLabel, scalerAgentLabels, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, scalerLabel, scalerLiveVmSchema, scalerPlatformSchema, scalerVmStopResultSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, stripStatefulRegexFlags, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, textMatchHasQuery, toCanonicalStatus, triggerRunToolSchema, truncateDecisionsToByteBudget, truncateTraceText, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, utf8ByteLength, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
|
|
99
|
+
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, ACTOR_AGENT_SUFFIX, AGENT_API_REQUEST_TIMEOUT_MS, AGENT_CAPABILITIES, AGENT_FEATURE_LABELS, AGENT_FEATURE_LABEL_PREFIX, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentCapabilityFlag, AgentFailureCategory, AgentFeature, ApprovalDecision, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactNameSchema, ArtifactRejectReason, ArtifactUploadOutcome, AttestationOrigin, BREAKING_FLOOR, CANONICAL_STATUSES, CAPABILITY_LABEL_PREFIX, CLUSTER_MEMBERSHIP_MAX_WORKERS, CONTAINER_BUILD_RUNTIME_LABEL, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, CiTrustLevel, ConcurrencyStrategy, ConfigPathsSchema, ContextDeleteErrorCode, ContextGateRejectReason, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_APPROVAL_EXPIRY_SECONDS, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, DEFERRED_PATHS_SUMMARY_SUFFIX, DEVELOPER_OPERATIONS, DashboardResponseErrorCode, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, DispatchInputError, DispatchInputType, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutCause, FanoutError, FleetHostDisposition, FleetHostWriteRefusal, ForkPolicy, GLOBAL_APPROVAL_MIN_READER, GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL, HEARTBEAT_CLOSE_MS, HEARTBEAT_DEGRADED_MS, HEARTBEAT_FRESH_MS, HEARTBEAT_STALE_THRESHOLD_SECONDS, HEARTBEAT_UNHEALTHY_MARK_MS, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HoldType, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, ID_TOKEN_CLAIM_NAMES, INFRA_ALERT_TYPES, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, INSTALL_JOB_ID_PREFIX, INTERNAL_EVENT_NAME_PREFIX, INVALID_JOIN_REQUEST_MESSAGE, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JOB_IMAGE_RUNTIME_LABEL, JOIN_PROTOCOL_UNSUPPORTED_MESSAGE, JOIN_PROTOCOL_UPGRADE_TOKEN, JOIN_PROTOCOL_V1_REMOVED_MESSAGE, JOIN_PROTOCOL_VERSION, JobKind, JobRejectReason, JoinErrorCode, JoinRequestKind, KICI_AGENT_ENV_PREFIX, KICI_EVENT_NAME_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_JOINER_AUTH_MESSAGE, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_APPROVAL_EXPIRY_HOURS, MAX_APPROVAL_EXPIRY_SECONDS, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_APPROVAL_EXPIRY_SECONDS, MIN_PROTOCOL_VERSION, MatrixShapeError, MinimumTrustSchema, NACK_EXEMPT_MESSAGE_TYPES, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OWN_INGRESS_MODES, OnUnreachableMode, OrchCapabilityFlag, OrchLogPhase, OrchRole, OrchestratorMode, PEER_MUTUAL_AUTH_REQUIRED_REASON, PING_EVENT_TYPE, PLAN_TYPES, PLATFORM_CAPABILITIES, PLATFORM_CONNECTED_MODES, PLATFORM_TAINT_LABELS, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, POLICY_BY_ACTION, PRIVILEGED_ROOT_LABEL, PROTOCOL_VERSION, PULL_REQUEST_FAMILY_TRIGGER_EVENTS, PaidPlanType, PatKind, PayloadOmittedReason, PeerAuthMode, PeerAuthScheme, PeerForgetOutcome, PlanType, REDACTED_TRACE_FIELD, REGEX_NEGATIVE_ASSERTION, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RUNTIME_LABEL_PREFIX, RegisterableTriggerType, RunFailureClass, RunsOnPick, RuntimeFact, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCALER_EVENT_NAMES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECONDS_PER_HOUR, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, STATE_REPLAY_MAX_RUNS, STATUS_EPOCH_MAX, STATUS_FAILURE_CLASS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, STATUS_PRECEDENCE, SUBSCRIBABLE_WEBHOOK_EVENT_TYPES, SUBSCRIPTION_EXISTS_CODE, ScaleDownReason, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOrphansAction, ScalerOs, ScalerScaleDownPayload, ScalerScaleUpPayload, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, ScopeNameError, SecretKeyError, SetupStepType, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, StripeSubscriptionStatus, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRACE_TEXT_MAX, TRACE_TRUNCATION_WORKFLOW_NAME, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TraceCheck, TraceVerdict, TriggerSource, TrustTierSchema, UNRESOLVED_CLAIM, UnavailablePathsTrace, UnsupportedDispatchInputError, VariantKind, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WORKFLOW_MODIFICATION_JOB_ID, WS_CLOSE_AGENT_AUTH_FAILED, WS_CLOSE_AUTH_TIMEOUT, WS_CLOSE_CLUSTER_NAME_CONFLICT, WS_CLOSE_DISPATCH_ACK_TIMEOUT, WS_CLOSE_GOING_AWAY, WS_CLOSE_HEARTBEAT_TIMEOUT, WS_CLOSE_INTERNAL_ERROR, WS_CLOSE_INVALID_MESSAGE, WS_CLOSE_PLAN_LIMIT, WS_CLOSE_PROTOCOL_ERROR, WS_CLOSE_REBALANCE, WS_CLOSE_SUPERSEDED_BY_RECONNECT, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookEventType, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentCapabilitiesSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentFeatureLabel, agentJobResultSchema, agentLabelOf, agentLogChunkSchema, agentMetricsSchema, agentOrchestratorSummarySchema, agentOrgSummarySchema, agentRegisterSchema, agentRunListItemSchema, agentRunResultSchema, agentSecretScopeSchema, agentStatusSchema, agentStepLogsSchema, agentStepResultSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, agentWorkflowSummarySchema, apiKeyActorSchema, appendChecks, applyIncludeExclude, approvalExpiryHoursOf, approvalExpirySecondsOf, approvalRequirementSchema, approvalTimeoutSecondsSchema, approveRunToolSchema, approverClauseSchema, artifactInvalidNameError, artifactListItemSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, assertScheduleInputsSatisfiable, assertValidScopeName, assertValidSecretKey, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, blocksNewCheckout, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, buildEventClaims, buildIdTokenSubject, buildJoinRefusal, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, canonicalizeLabel, canonicalizeLabelSet, canonicalizeLabels, canonicalizeMatcher, capabilityLabel, changedFilesStatusSchema, checkArtifactName, classifyJoinRequest, clusterMembershipSchema, coerceDispatchInputs, coerceHostPropertyValue, collectDiscriminatorTypes, compileRegexMatcher, compileSafeRegex, configAckSchema, connectionHealthStatusSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, createCommitMessageTraceEntry, createContentRequirementsTraceEntry, createDispatchFailureTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createTraceTruncationMarker, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, decodeActivityCursor, deriveOsArchLabels, derivePlatformTaints, describeTextMatch, developerOpsForEntrypoint, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, diffRangeKindSchema, encodeActivityCursor, errorSchema, evaluateTextMatch, eventEmitResponseSchema, eventEmitSchema, eventLogActivityCountsSchema, eventLogListItemSchema, executionEventSchema, executionStatusSchema, expandMatrix, expandMultiDimension, expandSingleDimension, extractInputDescriptor, extractInputsDescriptorMap, fanoutEnvelopeFields, findDuplicateCombination, flattenActor, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostEntrySchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetLogsRequestSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, fleetSelectionSchema, fnv1a32, formatExpandedJobName, formatMatrixSuffix, getAccessLogColdDays, getAccessLogWarmDays, getAuditLogColdDays, getAuditLogWarmDays, getDiagnosticsToolSchema, getRepoGlobMatcher, getRunToolSchema, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, getStepLogsToolSchema, gitAuthSchema, githubIngressPath, githubWebhookPath, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, invokeResultSchema, isDeferrableRange, isFailureStatus, isInputSatisfiableFromDefaults, isJoinRequestFrame, isKnownCapability, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, isMintedRef, isNegatedPattern, isPaidTier, isPullRequestFamilyTriggerEvent, isSecurityHoldJobId, isSelfReportedLabel, isSetupStepType, isTrustedEnvScrubbed, isZeroSha, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobContextMessageSchema, jobDispatchSchema, jobProgressAckSchema, jobProgressSchema, jobRejectSchema, jobRerouteAckSchema, jobRerouteSchema, jobStatusForwardSchema, jobStatusSchema, joinRequestSchema, joinResponseSchema, joinRoutingSchema, listOrchestratorsToolSchema, listOrgsToolSchema, listRunsToolSchema, listSecretsToolSchema, listWorkflowsToolSchema, logChunkSchema, logPullOrchToPlatformSchema, logPullPlatformToOrchSchema, manualScheduleRequestSchema, matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchScopePattern, matchTrigger, matchWorkflowTriggers, matchWorkflowsForEvent, matcherMatches, matcherSatisfiedBy, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixCombinationCount, matrixEnvelopeFields, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, mergeAutoLabels, mergeOrderedMaps, minAccessLogWarmDays, minAuditLogWarmDays, minSecretAuditLogWarmDays, nackSchema, negatedPatternReason, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, normalizeRegexFlags, normalizeRunsOn, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseInputPairs, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, peerUpdateSchema, persistedHoldTypeSpellings, planHeadroomSchema, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceContextSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rateLimitWarningSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerouteSpawnRetrySchema, rerunRunToolSchema, reservedEventNamePrefix, resolveContentFormat, resolveDiffRange, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, runtimeLabel, scalerAgentLabels, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, scalerLabel, scalerLiveVmSchema, scalerPlatformSchema, scalerVmStopResultSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, stripStatefulRegexFlags, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, textMatchHasQuery, toCanonicalStatus, triggerRunToolSchema, truncateDecisionsToByteBudget, truncateTraceText, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, utf8ByteLength, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
|
|
@@ -51,6 +51,7 @@ export declare const authRequestSchema: z.ZodObject<{
|
|
|
51
51
|
use: z.ZodOptional<z.ZodLiteral<"enc">>;
|
|
52
52
|
}, z.core.$loose>>;
|
|
53
53
|
dashboardVerifiedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
clusterJoinV2: z.ZodOptional<z.ZodBoolean>;
|
|
54
55
|
}, z.core.$loose>>;
|
|
55
56
|
}, z.core.$strip>;
|
|
56
57
|
/** Auth success response sent by Platform to orchestrator after successful authentication. */
|
|
@@ -60,6 +61,7 @@ export declare const authSuccessSchema: z.ZodObject<{
|
|
|
60
61
|
orgPublicAlias: z.ZodOptional<z.ZodString>;
|
|
61
62
|
orgId: z.ZodOptional<z.ZodString>;
|
|
62
63
|
provenanceIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
githubWebhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
65
|
}, z.core.$strip>;
|
|
64
66
|
/** Auth failure response sent by Platform to orchestrator when authentication fails. */
|
|
65
67
|
export declare const authFailureSchema: z.ZodObject<{
|
|
@@ -41,7 +41,16 @@ const authSuccessSchema = z.object({
|
|
|
41
41
|
* the orchestrator records each attestation's verdict as `unverifiable`
|
|
42
42
|
* rather than silently `verified`.
|
|
43
43
|
*/
|
|
44
|
-
provenanceIssuer: z.string().nullable().optional()
|
|
44
|
+
provenanceIssuer: z.string().nullable().optional(),
|
|
45
|
+
/**
|
|
46
|
+
* The Platform's org-scoped GitHub App webhook URL
|
|
47
|
+
* (`<WEBHOOK_PUBLIC_URL>/webhook/<orgId>/github`). It is known before any
|
|
48
|
+
* App exists, so the orchestrator's manifest flow bakes it into a new App in
|
|
49
|
+
* platform and hybrid mode. `null` when the Platform has no public webhook
|
|
50
|
+
* base. Absent from a Platform that does not send it; the orchestrator then
|
|
51
|
+
* reports the URL as unknown.
|
|
52
|
+
*/
|
|
53
|
+
githubWebhookUrl: z.string().nullable().optional()
|
|
45
54
|
});
|
|
46
55
|
/** Auth failure response sent by Platform to orchestrator when authentication fails. */
|
|
47
56
|
const authFailureSchema = z.object({
|
|
@@ -78,6 +78,7 @@ export declare const orchCapabilitiesSchema: z.ZodObject<{
|
|
|
78
78
|
use: z.ZodOptional<z.ZodLiteral<"enc">>;
|
|
79
79
|
}, z.core.$loose>>;
|
|
80
80
|
dashboardVerifiedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
clusterJoinV2: z.ZodOptional<z.ZodBoolean>;
|
|
81
82
|
}, z.core.$loose>;
|
|
82
83
|
/** Inferred type for orchestrator capabilities. */
|
|
83
84
|
export type OrchCapabilities = z.infer<typeof orchCapabilitiesSchema>;
|
|
@@ -94,6 +95,11 @@ export declare const ORCH_CAPABILITIES: Readonly<{
|
|
|
94
95
|
* orchestrator) or the flag is missing/false.
|
|
95
96
|
*/
|
|
96
97
|
export declare function hasOrchCapability(capabilities: OrchCapabilities | undefined, flag: string): boolean;
|
|
98
|
+
/** Flag names of {@link orchCapabilitiesSchema}, for {@link hasOrchCapability} lookups. */
|
|
99
|
+
export declare const OrchCapabilityFlag: z.ZodEnum<{
|
|
100
|
+
clusterJoinV2: "clusterJoinV2";
|
|
101
|
+
}>;
|
|
102
|
+
export type OrchCapabilityFlag = z.infer<typeof OrchCapabilityFlag>;
|
|
97
103
|
/**
|
|
98
104
|
* Platform-advertised capabilities sent to the orchestrator after auth.
|
|
99
105
|
* Uses .passthrough() so a newer Platform's unknown flags are preserved.
|
|
@@ -68,7 +68,13 @@ const orchCapabilitiesSchema = z.object({
|
|
|
68
68
|
* `dashboard_verified_issuer` cluster setting. Null/absent ⇒ the Verified
|
|
69
69
|
* tier is not offered and the Convenient tier applies.
|
|
70
70
|
*/
|
|
71
|
-
dashboardVerifiedIssuer: z.string().nullable().optional()
|
|
71
|
+
dashboardVerifiedIssuer: z.string().nullable().optional(),
|
|
72
|
+
/**
|
|
73
|
+
* The orchestrator answers join protocol v2 `join.request` frames. The Platform
|
|
74
|
+
* relays a join only to an orchestrator that advertises this, because an older
|
|
75
|
+
* build drops a v2 frame without a reply.
|
|
76
|
+
*/
|
|
77
|
+
clusterJoinV2: z.boolean().optional()
|
|
72
78
|
}).passthrough();
|
|
73
79
|
/** Default orchestrator capabilities sent in auth.request. */
|
|
74
80
|
const ORCH_CAPABILITIES = Object.freeze({
|
|
@@ -85,6 +91,8 @@ const ORCH_CAPABILITIES = Object.freeze({
|
|
|
85
91
|
function hasOrchCapability(capabilities, flag) {
|
|
86
92
|
return capabilities?.[flag] === true;
|
|
87
93
|
}
|
|
94
|
+
/** Flag names of {@link orchCapabilitiesSchema}, for {@link hasOrchCapability} lookups. */
|
|
95
|
+
const OrchCapabilityFlag = z.enum(["clusterJoinV2"]);
|
|
88
96
|
/**
|
|
89
97
|
* Platform-advertised capabilities sent to the orchestrator after auth.
|
|
90
98
|
* Uses .passthrough() so a newer Platform's unknown flags are preserved.
|
|
@@ -172,6 +180,6 @@ function hasAgentCapability(capabilities, flag) {
|
|
|
172
180
|
return capabilities?.[flag] === true;
|
|
173
181
|
}
|
|
174
182
|
//#endregion
|
|
175
|
-
export { AGENT_CAPABILITIES, AgentCapabilityFlag, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, OrchRole, PLATFORM_CAPABILITIES, agentCapabilitiesSchema, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, platformCapabilitiesSchema };
|
|
183
|
+
export { AGENT_CAPABILITIES, AgentCapabilityFlag, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, OrchCapabilityFlag, OrchRole, PLATFORM_CAPABILITIES, agentCapabilitiesSchema, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, platformCapabilitiesSchema };
|
|
176
184
|
|
|
177
185
|
//# sourceMappingURL=capabilities.js.map
|
|
@@ -3214,6 +3214,32 @@ export declare const fleetPreviewHostSchema: z.ZodObject<{
|
|
|
3214
3214
|
}>;
|
|
3215
3215
|
}, z.core.$strip>;
|
|
3216
3216
|
export type FleetPreviewHost = z.infer<typeof fleetPreviewHostSchema>;
|
|
3217
|
+
/**
|
|
3218
|
+
* A roster host as the dashboard sees it: the SDK inventory entry plus whether
|
|
3219
|
+
* an agent registration or an operator declaration confirmed it. An
|
|
3220
|
+
* unconfirmed host was created from the dashboard and is not a fan-out or
|
|
3221
|
+
* inventory target. Optional so an older orchestrator's frames still parse.
|
|
3222
|
+
*/
|
|
3223
|
+
export declare const fleetHostEntrySchema: z.ZodObject<{
|
|
3224
|
+
agentId: z.ZodString;
|
|
3225
|
+
labels: z.ZodArray<z.ZodString>;
|
|
3226
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
3227
|
+
hostname: z.ZodNullable<z.ZodString>;
|
|
3228
|
+
platform: z.ZodNullable<z.ZodString>;
|
|
3229
|
+
arch: z.ZodNullable<z.ZodString>;
|
|
3230
|
+
lifecycleClass: z.ZodEnum<{
|
|
3231
|
+
ephemeral: "ephemeral";
|
|
3232
|
+
static: "static";
|
|
3233
|
+
}>;
|
|
3234
|
+
status: z.ZodEnum<{
|
|
3235
|
+
ready: "ready";
|
|
3236
|
+
stale: "stale";
|
|
3237
|
+
unreachable: "unreachable";
|
|
3238
|
+
}>;
|
|
3239
|
+
lastSeen: z.ZodString;
|
|
3240
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
3241
|
+
}, z.core.$strip>;
|
|
3242
|
+
export type FleetHostEntry = z.infer<typeof fleetHostEntrySchema>;
|
|
3217
3243
|
export declare const dashboardFleetHostsRequestSchema: z.ZodObject<{
|
|
3218
3244
|
type: z.ZodLiteral<"dashboard.fleet.hosts">;
|
|
3219
3245
|
requestId: z.ZodString;
|
|
@@ -3326,6 +3352,7 @@ export declare const dashboardFleetHostsResponseSchema: z.ZodObject<{
|
|
|
3326
3352
|
unreachable: "unreachable";
|
|
3327
3353
|
}>;
|
|
3328
3354
|
lastSeen: z.ZodString;
|
|
3355
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
3329
3356
|
}, z.core.$strip>>;
|
|
3330
3357
|
}, z.core.$strip>;
|
|
3331
3358
|
export declare const dashboardFleetHostResponseSchema: z.ZodObject<{
|
|
@@ -3348,6 +3375,7 @@ export declare const dashboardFleetHostResponseSchema: z.ZodObject<{
|
|
|
3348
3375
|
unreachable: "unreachable";
|
|
3349
3376
|
}>;
|
|
3350
3377
|
lastSeen: z.ZodString;
|
|
3378
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
3351
3379
|
}, z.core.$strip>>;
|
|
3352
3380
|
runs: z.ZodArray<z.ZodObject<{
|
|
3353
3381
|
runId: z.ZodString;
|
|
@@ -3467,6 +3495,20 @@ export declare const dashboardFleetWorkflowsForHostResponseSchema: z.ZodObject<{
|
|
|
3467
3495
|
}, z.core.$strip>;
|
|
3468
3496
|
export type DashboardFleetWorkflowsForHostRequest = z.infer<typeof dashboardFleetWorkflowsForHostRequestSchema>;
|
|
3469
3497
|
export type DashboardFleetWorkflowsForHostResponse = z.infer<typeof dashboardFleetWorkflowsForHostResponseSchema>;
|
|
3498
|
+
/**
|
|
3499
|
+
* Why the orchestrator refused a Platform-relayed fleet host write. Travels in
|
|
3500
|
+
* the response `error` field, as `operation_disabled` does.
|
|
3501
|
+
*
|
|
3502
|
+
* - `reserved_property` — a label or property key is in the reserved `kici:` namespace.
|
|
3503
|
+
* - `host_exists` — a dashboard declare named a host that already exists.
|
|
3504
|
+
* - `host_confirmed` — a dashboard remove named a host an agent or operator confirmed.
|
|
3505
|
+
*/
|
|
3506
|
+
export declare const FleetHostWriteRefusal: z.ZodEnum<{
|
|
3507
|
+
host_confirmed: "host_confirmed";
|
|
3508
|
+
host_exists: "host_exists";
|
|
3509
|
+
reserved_property: "reserved_property";
|
|
3510
|
+
}>;
|
|
3511
|
+
export type FleetHostWriteRefusal = z.infer<typeof FleetHostWriteRefusal>;
|
|
3470
3512
|
/** Declare a static host into the roster (wraps HostRosterStore.declareStatic). */
|
|
3471
3513
|
export declare const fleetHostDeclareRequestSchema: z.ZodObject<{
|
|
3472
3514
|
type: z.ZodLiteral<"dashboard.fleet.host.declare">;
|
|
@@ -3508,6 +3550,7 @@ export declare const fleetHostDeclareResponseSchema: z.ZodObject<{
|
|
|
3508
3550
|
declared: z.ZodOptional<z.ZodBoolean>;
|
|
3509
3551
|
created: z.ZodOptional<z.ZodBoolean>;
|
|
3510
3552
|
error: z.ZodOptional<z.ZodString>;
|
|
3553
|
+
reservedKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3511
3554
|
}, z.core.$strip>;
|
|
3512
3555
|
/** Remove a host from the roster by agent id (HostRosterStore.removeStatic). */
|
|
3513
3556
|
export declare const fleetHostRemoveRequestSchema: z.ZodObject<{
|
|
@@ -8151,6 +8194,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8151
8194
|
unreachable: "unreachable";
|
|
8152
8195
|
}>;
|
|
8153
8196
|
lastSeen: z.ZodString;
|
|
8197
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
8154
8198
|
}, z.core.$strip>>;
|
|
8155
8199
|
}, z.core.$strip>, z.ZodObject<{
|
|
8156
8200
|
type: z.ZodLiteral<"dashboard.fleet.host.response">;
|
|
@@ -8172,6 +8216,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8172
8216
|
unreachable: "unreachable";
|
|
8173
8217
|
}>;
|
|
8174
8218
|
lastSeen: z.ZodString;
|
|
8219
|
+
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
8175
8220
|
}, z.core.$strip>>;
|
|
8176
8221
|
runs: z.ZodArray<z.ZodObject<{
|
|
8177
8222
|
runId: z.ZodString;
|
|
@@ -8237,6 +8282,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
8237
8282
|
declared: z.ZodOptional<z.ZodBoolean>;
|
|
8238
8283
|
created: z.ZodOptional<z.ZodBoolean>;
|
|
8239
8284
|
error: z.ZodOptional<z.ZodString>;
|
|
8285
|
+
reservedKeys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
8240
8286
|
}, z.core.$strip>, z.ZodObject<{
|
|
8241
8287
|
type: z.ZodLiteral<"dashboard.fleet.host.remove.response">;
|
|
8242
8288
|
requestId: z.ZodString;
|
|
@@ -1512,6 +1512,13 @@ const fleetPreviewHostSchema = z.object({
|
|
|
1512
1512
|
entry: HostInventoryEntry,
|
|
1513
1513
|
disposition: FleetHostDisposition
|
|
1514
1514
|
});
|
|
1515
|
+
/**
|
|
1516
|
+
* A roster host as the dashboard sees it: the SDK inventory entry plus whether
|
|
1517
|
+
* an agent registration or an operator declaration confirmed it. An
|
|
1518
|
+
* unconfirmed host was created from the dashboard and is not a fan-out or
|
|
1519
|
+
* inventory target. Optional so an older orchestrator's frames still parse.
|
|
1520
|
+
*/
|
|
1521
|
+
const fleetHostEntrySchema = HostInventoryEntry.extend({ confirmed: z.boolean().optional() });
|
|
1515
1522
|
const dashboardFleetHostsRequestSchema = z.object({
|
|
1516
1523
|
type: z.literal("dashboard.fleet.hosts"),
|
|
1517
1524
|
requestId: z.string(),
|
|
@@ -1532,12 +1539,12 @@ const dashboardFleetPreviewRequestSchema = z.object({
|
|
|
1532
1539
|
const dashboardFleetHostsResponseSchema = z.object({
|
|
1533
1540
|
type: z.literal("dashboard.fleet.hosts.response"),
|
|
1534
1541
|
requestId: z.string(),
|
|
1535
|
-
hosts: z.array(
|
|
1542
|
+
hosts: z.array(fleetHostEntrySchema)
|
|
1536
1543
|
});
|
|
1537
1544
|
const dashboardFleetHostResponseSchema = z.object({
|
|
1538
1545
|
type: z.literal("dashboard.fleet.host.response"),
|
|
1539
1546
|
requestId: z.string(),
|
|
1540
|
-
host:
|
|
1547
|
+
host: fleetHostEntrySchema.nullable(),
|
|
1541
1548
|
runs: z.array(fleetPinnedRunSchema)
|
|
1542
1549
|
});
|
|
1543
1550
|
const dashboardFleetPreviewResponseSchema = z.object({
|
|
@@ -1567,6 +1574,19 @@ const dashboardFleetWorkflowsForHostResponseSchema = z.object({
|
|
|
1567
1574
|
requestId: z.string(),
|
|
1568
1575
|
workflows: z.array(fleetHostWorkflowSchema)
|
|
1569
1576
|
});
|
|
1577
|
+
/**
|
|
1578
|
+
* Why the orchestrator refused a Platform-relayed fleet host write. Travels in
|
|
1579
|
+
* the response `error` field, as `operation_disabled` does.
|
|
1580
|
+
*
|
|
1581
|
+
* - `reserved_property` — a label or property key is in the reserved `kici:` namespace.
|
|
1582
|
+
* - `host_exists` — a dashboard declare named a host that already exists.
|
|
1583
|
+
* - `host_confirmed` — a dashboard remove named a host an agent or operator confirmed.
|
|
1584
|
+
*/
|
|
1585
|
+
const FleetHostWriteRefusal = z.enum([
|
|
1586
|
+
"reserved_property",
|
|
1587
|
+
"host_exists",
|
|
1588
|
+
"host_confirmed"
|
|
1589
|
+
]);
|
|
1570
1590
|
/** Declare a static host into the roster (wraps HostRosterStore.declareStatic). */
|
|
1571
1591
|
const fleetHostDeclareRequestSchema = z.object({
|
|
1572
1592
|
type: z.literal("dashboard.fleet.host.declare"),
|
|
@@ -1586,7 +1606,9 @@ const fleetHostDeclareResponseSchema = z.object({
|
|
|
1586
1606
|
requestId: z.string(),
|
|
1587
1607
|
declared: z.boolean().optional(),
|
|
1588
1608
|
created: z.boolean().optional(),
|
|
1589
|
-
error: z.string().optional()
|
|
1609
|
+
error: z.string().optional(),
|
|
1610
|
+
/** The reserved keys behind a `reserved_property` refusal. */
|
|
1611
|
+
reservedKeys: z.array(z.string()).optional()
|
|
1590
1612
|
});
|
|
1591
1613
|
/** Remove a host from the roster by agent id (HostRosterStore.removeStatic). */
|
|
1592
1614
|
const fleetHostRemoveRequestSchema = z.object({
|
|
@@ -2603,6 +2625,6 @@ const DashboardResponseErrorCode = z.enum([
|
|
|
2603
2625
|
"internal_error"
|
|
2604
2626
|
]);
|
|
2605
2627
|
//#endregion
|
|
2606
|
-
export { ContextDeleteErrorCode, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, HeldRunQueueType, HeldRunStatus, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, trustPolicyResponseSchema };
|
|
2628
|
+
export { ContextDeleteErrorCode, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, FleetHostWriteRefusal, HeldRunQueueType, HeldRunStatus, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostEntrySchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, trustPolicyResponseSchema };
|
|
2607
2629
|
|
|
2608
2630
|
//# sourceMappingURL=dashboard.js.map
|
|
@@ -1,18 +1,89 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
export declare const JOIN_PROTOCOL_VERSION: 2;
|
|
3
|
+
/** `Upgrade` header value on the HTTP 426 that refuses a version-1 join. */
|
|
4
|
+
export declare const JOIN_PROTOCOL_UPGRADE_TOKEN = "kici-join-v2";
|
|
5
|
+
export declare const JOIN_PROTOCOL_V1_REMOVED_MESSAGE = "This kici-admin uses join protocol v1, which orchestrators no longer accept. Upgrade kici-admin, then run kici-admin join again.";
|
|
6
|
+
export declare const JOIN_PROTOCOL_UNSUPPORTED_MESSAGE = "The cluster's orchestrators predate join protocol v2. Upgrade them, then join again.";
|
|
7
|
+
export declare const LEGACY_JOINER_AUTH_MESSAGE = "This kici-admin cannot join through the Platform. Upgrade kici-admin, then run kici-admin join again.";
|
|
8
|
+
export declare const INVALID_JOIN_REQUEST_MESSAGE = "Invalid join request";
|
|
9
|
+
/** Why a join was refused. Every refusal on the Platform, the orchestrator and the HTTP route sets one. */
|
|
10
|
+
export declare const JoinErrorCode: z.ZodEnum<{
|
|
11
|
+
invalid_request: "invalid_request";
|
|
12
|
+
invalid_token: "invalid_token";
|
|
13
|
+
join_protocol_unsupported: "join_protocol_unsupported";
|
|
14
|
+
join_protocol_v1_removed: "join_protocol_v1_removed";
|
|
15
|
+
no_target: "no_target";
|
|
16
|
+
org_mismatch: "org_mismatch";
|
|
17
|
+
relay_timeout: "relay_timeout";
|
|
18
|
+
token_already_used: "token_already_used";
|
|
19
|
+
token_expired: "token_expired";
|
|
20
|
+
}>;
|
|
21
|
+
export type JoinErrorCode = z.infer<typeof JoinErrorCode>;
|
|
22
|
+
export declare const JoinRequestKind: z.ZodEnum<{
|
|
23
|
+
invalid: "invalid";
|
|
24
|
+
v1_removed: "v1_removed";
|
|
25
|
+
v2: "v2";
|
|
26
|
+
}>;
|
|
27
|
+
export type JoinRequestKind = z.infer<typeof JoinRequestKind>;
|
|
28
|
+
/** The decoded routing part of a join token. A lookup key only: the orchestrator trusts its stored row. */
|
|
29
|
+
export declare const joinRoutingSchema: z.ZodObject<{
|
|
30
|
+
orgId: z.ZodString;
|
|
31
|
+
routingKey: z.ZodString;
|
|
32
|
+
expiry: z.ZodNumber;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
export type JoinRouting = z.infer<typeof joinRoutingSchema>;
|
|
35
|
+
/** Join request sent by a new orchestrator (through the Platform relay or directly to a peer). */
|
|
3
36
|
export declare const joinRequestSchema: z.ZodObject<{
|
|
4
37
|
type: z.ZodLiteral<"join.request">;
|
|
5
38
|
messageId: z.ZodOptional<z.ZodString>;
|
|
6
|
-
|
|
39
|
+
joinProtocol: z.ZodLiteral<2>;
|
|
40
|
+
routing: z.ZodString;
|
|
41
|
+
joinerPublicKey: z.ZodString;
|
|
42
|
+
joinerNonce: z.ZodString;
|
|
43
|
+
joinerProof: z.ZodString;
|
|
7
44
|
}, z.core.$strip>;
|
|
8
45
|
/** Join response from an existing orchestrator back to the joiner. */
|
|
9
46
|
export declare const joinResponseSchema: z.ZodObject<{
|
|
10
47
|
type: z.ZodLiteral<"join.response">;
|
|
11
48
|
messageId: z.ZodOptional<z.ZodString>;
|
|
12
49
|
success: z.ZodBoolean;
|
|
50
|
+
joinProtocol: z.ZodOptional<z.ZodLiteral<2>>;
|
|
51
|
+
serverPublicKey: z.ZodOptional<z.ZodString>;
|
|
52
|
+
serverNonce: z.ZodOptional<z.ZodString>;
|
|
53
|
+
serverProof: z.ZodOptional<z.ZodString>;
|
|
13
54
|
encryptedBundle: z.ZodOptional<z.ZodString>;
|
|
14
55
|
error: z.ZodOptional<z.ZodString>;
|
|
56
|
+
errorCode: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
invalid_request: "invalid_request";
|
|
58
|
+
invalid_token: "invalid_token";
|
|
59
|
+
join_protocol_unsupported: "join_protocol_unsupported";
|
|
60
|
+
join_protocol_v1_removed: "join_protocol_v1_removed";
|
|
61
|
+
no_target: "no_target";
|
|
62
|
+
org_mismatch: "org_mismatch";
|
|
63
|
+
relay_timeout: "relay_timeout";
|
|
64
|
+
token_already_used: "token_already_used";
|
|
65
|
+
token_expired: "token_expired";
|
|
66
|
+
}>>;
|
|
15
67
|
}, z.core.$strip>;
|
|
16
68
|
export type JoinRequest = z.infer<typeof joinRequestSchema>;
|
|
17
69
|
export type JoinResponse = z.infer<typeof joinResponseSchema>;
|
|
70
|
+
export type ClassifiedJoinRequest = {
|
|
71
|
+
kind: typeof JoinRequestKind.enum.v2;
|
|
72
|
+
request: JoinRequest;
|
|
73
|
+
} | {
|
|
74
|
+
kind: typeof JoinRequestKind.enum.v1_removed;
|
|
75
|
+
messageId?: string;
|
|
76
|
+
} | {
|
|
77
|
+
kind: typeof JoinRequestKind.enum.invalid;
|
|
78
|
+
messageId?: string;
|
|
79
|
+
};
|
|
80
|
+
/** True for an object whose `type` is `join.request`, whatever else it carries. */
|
|
81
|
+
export declare function isJoinRequestFrame(raw: unknown): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Classify a join.request frame. A frame that carries `token` is version 1 even when
|
|
84
|
+
* v2 fields are present too: it is checked before the parse, which would strip it.
|
|
85
|
+
*/
|
|
86
|
+
export declare function classifyJoinRequest(raw: unknown): ClassifiedJoinRequest;
|
|
87
|
+
/** A refused join.response carrying its error code. */
|
|
88
|
+
export declare function buildJoinRefusal(messageId: string | undefined, errorCode: JoinErrorCode, error: string): JoinResponse;
|
|
18
89
|
//# sourceMappingURL=join.d.ts.map
|
|
@@ -1,28 +1,117 @@
|
|
|
1
1
|
import "../../rolldown-runtime-ClRpJifh.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/protocol/messages/join.ts
|
|
4
|
-
|
|
4
|
+
const JOIN_PROTOCOL_VERSION = 2;
|
|
5
|
+
/** `Upgrade` header value on the HTTP 426 that refuses a version-1 join. */
|
|
6
|
+
const JOIN_PROTOCOL_UPGRADE_TOKEN = "kici-join-v2";
|
|
7
|
+
const JOIN_PROTOCOL_V1_REMOVED_MESSAGE = "This kici-admin uses join protocol v1, which orchestrators no longer accept. Upgrade kici-admin, then run kici-admin join again.";
|
|
8
|
+
const JOIN_PROTOCOL_UNSUPPORTED_MESSAGE = "The cluster's orchestrators predate join protocol v2. Upgrade them, then join again.";
|
|
9
|
+
const LEGACY_JOINER_AUTH_MESSAGE = "This kici-admin cannot join through the Platform. Upgrade kici-admin, then run kici-admin join again.";
|
|
10
|
+
const INVALID_JOIN_REQUEST_MESSAGE = "Invalid join request";
|
|
11
|
+
const BASE64URL = /^[A-Za-z0-9_-]+$/;
|
|
12
|
+
const BASE64 = /^[A-Za-z0-9+/]+={0,2}$/;
|
|
13
|
+
const HEX_PROOF = /^[0-9a-f]{64}$/;
|
|
14
|
+
const MAX_MESSAGE_ID = 256;
|
|
15
|
+
/** Why a join was refused. Every refusal on the Platform, the orchestrator and the HTTP route sets one. */
|
|
16
|
+
const JoinErrorCode = z.enum([
|
|
17
|
+
"join_protocol_v1_removed",
|
|
18
|
+
"join_protocol_unsupported",
|
|
19
|
+
"invalid_request",
|
|
20
|
+
"invalid_token",
|
|
21
|
+
"token_expired",
|
|
22
|
+
"token_already_used",
|
|
23
|
+
"org_mismatch",
|
|
24
|
+
"no_target",
|
|
25
|
+
"relay_timeout"
|
|
26
|
+
]);
|
|
27
|
+
const JoinRequestKind = z.enum([
|
|
28
|
+
"v2",
|
|
29
|
+
"v1_removed",
|
|
30
|
+
"invalid"
|
|
31
|
+
]);
|
|
32
|
+
/** The decoded routing part of a join token. A lookup key only: the orchestrator trusts its stored row. */
|
|
33
|
+
const joinRoutingSchema = z.object({
|
|
34
|
+
orgId: z.string().min(1),
|
|
35
|
+
routingKey: z.string().min(1),
|
|
36
|
+
expiry: z.number().finite()
|
|
37
|
+
}).passthrough();
|
|
38
|
+
/** Join request sent by a new orchestrator (through the Platform relay or directly to a peer). */
|
|
5
39
|
const joinRequestSchema = z.object({
|
|
6
40
|
type: z.literal("join.request"),
|
|
7
|
-
/** Correlation ID
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
41
|
+
/** Correlation ID the Platform injects on relay to route the response back. */
|
|
42
|
+
messageId: z.string().max(MAX_MESSAGE_ID).optional(),
|
|
43
|
+
joinProtocol: z.literal(2),
|
|
44
|
+
/** The token's base64url routing part, exactly as it appears in the token. */
|
|
45
|
+
routing: z.string().max(2048).regex(BASE64URL),
|
|
46
|
+
/** The joiner's one-time X25519 public key, DER SPKI, base64. */
|
|
47
|
+
joinerPublicKey: z.string().max(128).regex(BASE64),
|
|
48
|
+
/** 32 random bytes, base64. */
|
|
49
|
+
joinerNonce: z.string().max(64).regex(BASE64),
|
|
50
|
+
/** HMAC-SHA256 over the request transcript, lowercase hex. */
|
|
51
|
+
joinerProof: z.string().regex(HEX_PROOF)
|
|
13
52
|
});
|
|
14
53
|
/** Join response from an existing orchestrator back to the joiner. */
|
|
15
54
|
const joinResponseSchema = z.object({
|
|
16
55
|
type: z.literal("join.response"),
|
|
17
56
|
/** Correlation ID echoed from join.request for Platform relay routing. */
|
|
18
|
-
messageId: z.string().optional(),
|
|
57
|
+
messageId: z.string().max(MAX_MESSAGE_ID).optional(),
|
|
19
58
|
success: z.boolean(),
|
|
20
|
-
|
|
59
|
+
joinProtocol: z.literal(2).optional(),
|
|
60
|
+
/** The existing orchestrator's one-time X25519 public key, DER SPKI, base64. */
|
|
61
|
+
serverPublicKey: z.string().max(128).regex(BASE64).optional(),
|
|
62
|
+
/** 32 random bytes, base64. */
|
|
63
|
+
serverNonce: z.string().max(64).regex(BASE64).optional(),
|
|
64
|
+
/** HMAC-SHA256 over the response transcript, lowercase hex. */
|
|
65
|
+
serverProof: z.string().regex(HEX_PROOF).optional(),
|
|
66
|
+
/** Base64 AES-256-GCM sealed configuration bundle (on success). */
|
|
21
67
|
encryptedBundle: z.string().optional(),
|
|
22
|
-
/** Error message (
|
|
23
|
-
error: z.string().optional()
|
|
68
|
+
/** Error message (on failure). */
|
|
69
|
+
error: z.string().optional(),
|
|
70
|
+
errorCode: JoinErrorCode.optional()
|
|
24
71
|
});
|
|
72
|
+
function isRecord(raw) {
|
|
73
|
+
return typeof raw === "object" && raw !== null && !Array.isArray(raw);
|
|
74
|
+
}
|
|
75
|
+
function messageIdOf(raw) {
|
|
76
|
+
if (!isRecord(raw)) return void 0;
|
|
77
|
+
const id = raw.messageId;
|
|
78
|
+
return typeof id === "string" && id.length <= MAX_MESSAGE_ID ? id : void 0;
|
|
79
|
+
}
|
|
80
|
+
/** True for an object whose `type` is `join.request`, whatever else it carries. */
|
|
81
|
+
function isJoinRequestFrame(raw) {
|
|
82
|
+
return isRecord(raw) && raw.type === "join.request";
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Classify a join.request frame. A frame that carries `token` is version 1 even when
|
|
86
|
+
* v2 fields are present too: it is checked before the parse, which would strip it.
|
|
87
|
+
*/
|
|
88
|
+
function classifyJoinRequest(raw) {
|
|
89
|
+
const messageId = messageIdOf(raw);
|
|
90
|
+
if (isJoinRequestFrame(raw) && Object.prototype.hasOwnProperty.call(raw, "token")) return {
|
|
91
|
+
kind: JoinRequestKind.enum.v1_removed,
|
|
92
|
+
messageId
|
|
93
|
+
};
|
|
94
|
+
const parsed = joinRequestSchema.safeParse(raw);
|
|
95
|
+
if (parsed.success) return {
|
|
96
|
+
kind: JoinRequestKind.enum.v2,
|
|
97
|
+
request: parsed.data
|
|
98
|
+
};
|
|
99
|
+
return {
|
|
100
|
+
kind: JoinRequestKind.enum.invalid,
|
|
101
|
+
messageId
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/** A refused join.response carrying its error code. */
|
|
105
|
+
function buildJoinRefusal(messageId, errorCode, error) {
|
|
106
|
+
return {
|
|
107
|
+
type: "join.response",
|
|
108
|
+
messageId,
|
|
109
|
+
success: false,
|
|
110
|
+
errorCode,
|
|
111
|
+
error
|
|
112
|
+
};
|
|
113
|
+
}
|
|
25
114
|
//#endregion
|
|
26
|
-
export { joinRequestSchema, joinResponseSchema };
|
|
115
|
+
export { INVALID_JOIN_REQUEST_MESSAGE, JOIN_PROTOCOL_UNSUPPORTED_MESSAGE, JOIN_PROTOCOL_UPGRADE_TOKEN, JOIN_PROTOCOL_V1_REMOVED_MESSAGE, JOIN_PROTOCOL_VERSION, JoinErrorCode, JoinRequestKind, LEGACY_JOINER_AUTH_MESSAGE, buildJoinRefusal, classifyJoinRequest, isJoinRequestFrame, joinRequestSchema, joinResponseSchema, joinRoutingSchema };
|
|
27
116
|
|
|
28
117
|
//# sourceMappingURL=join.js.map
|
|
@@ -22,29 +22,54 @@ declare const scalerCapacitySummarySchema: z.ZodObject<{
|
|
|
22
22
|
spawnsOnLocalHost: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
labelSetMandatoryLabels: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
24
24
|
}, z.core.$strict>;
|
|
25
|
-
/** Peer
|
|
25
|
+
/** Peer authentication schemes. A server lists the ones it accepts in `peer.hello`. */
|
|
26
|
+
export declare const PeerAuthScheme: z.ZodEnum<{
|
|
27
|
+
"mutual-v2": "mutual-v2";
|
|
28
|
+
}>;
|
|
29
|
+
export type PeerAuthScheme = z.infer<typeof PeerAuthScheme>;
|
|
30
|
+
/** How a peer proves itself: with its persisted credential, or with a join token on first join. */
|
|
31
|
+
export declare const PeerAuthMode: z.ZodEnum<{
|
|
32
|
+
credential: "credential";
|
|
33
|
+
token: "token";
|
|
34
|
+
}>;
|
|
35
|
+
export type PeerAuthMode = z.infer<typeof PeerAuthMode>;
|
|
36
|
+
/**
|
|
37
|
+
* The reason a server gives a peer that authenticates without mutual-v2 (a
|
|
38
|
+
* proof or token field, or no scheme). It is none of the credential-divergence
|
|
39
|
+
* reasons, so that peer keeps its credential file.
|
|
40
|
+
*/
|
|
41
|
+
export declare const PEER_MUTUAL_AUTH_REQUIRED_REASON = "Mutual peer authentication required";
|
|
42
|
+
/** Peer hello: the server sends its ephemeral X25519 public key, a nonce and its schemes. */
|
|
26
43
|
export declare const peerHelloSchema: z.ZodObject<{
|
|
27
44
|
type: z.ZodLiteral<"peer.hello">;
|
|
28
45
|
ephemeralPublicKey: z.ZodString;
|
|
29
46
|
nonce: z.ZodString;
|
|
47
|
+
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
48
|
}, z.core.$strip>;
|
|
31
49
|
/** Peer hello response: responder sends their ephemeral X25519 public key. */
|
|
32
50
|
export declare const peerHelloResponseSchema: z.ZodObject<{
|
|
33
51
|
type: z.ZodLiteral<"peer.hello.response">;
|
|
34
52
|
ephemeralPublicKey: z.ZodString;
|
|
35
53
|
}, z.core.$strip>;
|
|
36
|
-
/** Peer auth request sent after ECDH handshake
|
|
54
|
+
/** Peer auth request sent after the ECDH handshake, under the handshake key. */
|
|
37
55
|
export declare const peerAuthRequestSchema: z.ZodObject<{
|
|
38
56
|
type: z.ZodLiteral<"peer.auth.request">;
|
|
39
57
|
instanceId: z.ZodString;
|
|
40
|
-
token: z.ZodOptional<z.ZodString>;
|
|
41
|
-
proof: z.ZodOptional<z.ZodString>;
|
|
42
58
|
protocolVersion: z.ZodNumber;
|
|
43
59
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
44
60
|
role: z.ZodOptional<z.ZodEnum<{
|
|
45
61
|
coordinator: "coordinator";
|
|
46
62
|
worker: "worker";
|
|
47
63
|
}>>;
|
|
64
|
+
scheme: z.ZodEnum<{
|
|
65
|
+
"mutual-v2": "mutual-v2";
|
|
66
|
+
}>;
|
|
67
|
+
mode: z.ZodEnum<{
|
|
68
|
+
credential: "credential";
|
|
69
|
+
token: "token";
|
|
70
|
+
}>;
|
|
71
|
+
clientProof: z.ZodString;
|
|
72
|
+
tokenRouting: z.ZodOptional<z.ZodString>;
|
|
48
73
|
}, z.core.$strip>;
|
|
49
74
|
/** Peer auth response indicating whether the connection was accepted. */
|
|
50
75
|
export declare const peerAuthResponseSchema: z.ZodObject<{
|
|
@@ -52,6 +77,7 @@ export declare const peerAuthResponseSchema: z.ZodObject<{
|
|
|
52
77
|
accepted: z.ZodBoolean;
|
|
53
78
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
54
79
|
reason: z.ZodOptional<z.ZodString>;
|
|
80
|
+
serverProof: z.ZodOptional<z.ZodString>;
|
|
55
81
|
sessionCredential: z.ZodOptional<z.ZodString>;
|
|
56
82
|
role: z.ZodOptional<z.ZodString>;
|
|
57
83
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -646,25 +672,34 @@ export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
646
672
|
type: z.ZodLiteral<"peer.hello">;
|
|
647
673
|
ephemeralPublicKey: z.ZodString;
|
|
648
674
|
nonce: z.ZodString;
|
|
675
|
+
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
649
676
|
}, z.core.$strip>, z.ZodObject<{
|
|
650
677
|
type: z.ZodLiteral<"peer.hello.response">;
|
|
651
678
|
ephemeralPublicKey: z.ZodString;
|
|
652
679
|
}, z.core.$strip>, z.ZodObject<{
|
|
653
680
|
type: z.ZodLiteral<"peer.auth.request">;
|
|
654
681
|
instanceId: z.ZodString;
|
|
655
|
-
token: z.ZodOptional<z.ZodString>;
|
|
656
|
-
proof: z.ZodOptional<z.ZodString>;
|
|
657
682
|
protocolVersion: z.ZodNumber;
|
|
658
683
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
659
684
|
role: z.ZodOptional<z.ZodEnum<{
|
|
660
685
|
coordinator: "coordinator";
|
|
661
686
|
worker: "worker";
|
|
662
687
|
}>>;
|
|
688
|
+
scheme: z.ZodEnum<{
|
|
689
|
+
"mutual-v2": "mutual-v2";
|
|
690
|
+
}>;
|
|
691
|
+
mode: z.ZodEnum<{
|
|
692
|
+
credential: "credential";
|
|
693
|
+
token: "token";
|
|
694
|
+
}>;
|
|
695
|
+
clientProof: z.ZodString;
|
|
696
|
+
tokenRouting: z.ZodOptional<z.ZodString>;
|
|
663
697
|
}, z.core.$strip>, z.ZodObject<{
|
|
664
698
|
type: z.ZodLiteral<"peer.auth.response">;
|
|
665
699
|
accepted: z.ZodBoolean;
|
|
666
700
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
667
701
|
reason: z.ZodOptional<z.ZodString>;
|
|
702
|
+
serverProof: z.ZodOptional<z.ZodString>;
|
|
668
703
|
sessionCredential: z.ZodOptional<z.ZodString>;
|
|
669
704
|
role: z.ZodOptional<z.ZodString>;
|
|
670
705
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -1031,25 +1066,34 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1031
1066
|
type: z.ZodLiteral<"peer.hello">;
|
|
1032
1067
|
ephemeralPublicKey: z.ZodString;
|
|
1033
1068
|
nonce: z.ZodString;
|
|
1069
|
+
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1034
1070
|
}, z.core.$strip>, z.ZodObject<{
|
|
1035
1071
|
type: z.ZodLiteral<"peer.hello.response">;
|
|
1036
1072
|
ephemeralPublicKey: z.ZodString;
|
|
1037
1073
|
}, z.core.$strip>, z.ZodObject<{
|
|
1038
1074
|
type: z.ZodLiteral<"peer.auth.request">;
|
|
1039
1075
|
instanceId: z.ZodString;
|
|
1040
|
-
token: z.ZodOptional<z.ZodString>;
|
|
1041
|
-
proof: z.ZodOptional<z.ZodString>;
|
|
1042
1076
|
protocolVersion: z.ZodNumber;
|
|
1043
1077
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
1044
1078
|
role: z.ZodOptional<z.ZodEnum<{
|
|
1045
1079
|
coordinator: "coordinator";
|
|
1046
1080
|
worker: "worker";
|
|
1047
1081
|
}>>;
|
|
1082
|
+
scheme: z.ZodEnum<{
|
|
1083
|
+
"mutual-v2": "mutual-v2";
|
|
1084
|
+
}>;
|
|
1085
|
+
mode: z.ZodEnum<{
|
|
1086
|
+
credential: "credential";
|
|
1087
|
+
token: "token";
|
|
1088
|
+
}>;
|
|
1089
|
+
clientProof: z.ZodString;
|
|
1090
|
+
tokenRouting: z.ZodOptional<z.ZodString>;
|
|
1048
1091
|
}, z.core.$strip>, z.ZodObject<{
|
|
1049
1092
|
type: z.ZodLiteral<"peer.auth.response">;
|
|
1050
1093
|
accepted: z.ZodBoolean;
|
|
1051
1094
|
instanceId: z.ZodOptional<z.ZodString>;
|
|
1052
1095
|
reason: z.ZodOptional<z.ZodString>;
|
|
1096
|
+
serverProof: z.ZodOptional<z.ZodString>;
|
|
1053
1097
|
sessionCredential: z.ZodOptional<z.ZodString>;
|
|
1054
1098
|
role: z.ZodOptional<z.ZodString>;
|
|
1055
1099
|
softwareVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -1414,6 +1458,9 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1414
1458
|
export type PeerCapabilities = z.infer<typeof peerCapabilitiesSchema>;
|
|
1415
1459
|
export type ScalerCapacitySummary = z.infer<typeof scalerCapacitySummarySchema>;
|
|
1416
1460
|
export type PeerHeartbeat = z.infer<typeof peerHeartbeatSchema>;
|
|
1461
|
+
export type PeerHello = z.infer<typeof peerHelloSchema>;
|
|
1462
|
+
export type PeerAuthRequest = z.infer<typeof peerAuthRequestSchema>;
|
|
1463
|
+
export type PeerAuthResponse = z.infer<typeof peerAuthResponseSchema>;
|
|
1417
1464
|
export type JobReroute = z.infer<typeof jobRerouteSchema>;
|
|
1418
1465
|
export type RerouteSpawnRetry = z.infer<typeof rerouteSpawnRetrySchema>;
|
|
1419
1466
|
export type JobProgress = z.infer<typeof jobProgressSchema>;
|
|
@@ -67,13 +67,29 @@ const scalerCapacitySummarySchema = z.object({
|
|
|
67
67
|
*/
|
|
68
68
|
labelSetMandatoryLabels: z.array(z.array(z.string()))
|
|
69
69
|
}).strict();
|
|
70
|
-
/** Peer
|
|
70
|
+
/** Peer authentication schemes. A server lists the ones it accepts in `peer.hello`. */
|
|
71
|
+
const PeerAuthScheme = z.enum(["mutual-v2"]);
|
|
72
|
+
/** How a peer proves itself: with its persisted credential, or with a join token on first join. */
|
|
73
|
+
const PeerAuthMode = z.enum(["credential", "token"]);
|
|
74
|
+
/**
|
|
75
|
+
* The reason a server gives a peer that authenticates without mutual-v2 (a
|
|
76
|
+
* proof or token field, or no scheme). It is none of the credential-divergence
|
|
77
|
+
* reasons, so that peer keeps its credential file.
|
|
78
|
+
*/
|
|
79
|
+
const PEER_MUTUAL_AUTH_REQUIRED_REASON = "Mutual peer authentication required";
|
|
80
|
+
/** Peer hello: the server sends its ephemeral X25519 public key, a nonce and its schemes. */
|
|
71
81
|
const peerHelloSchema = z.object({
|
|
72
82
|
type: z.literal("peer.hello"),
|
|
73
83
|
/** Base64-encoded X25519 DER SPKI ephemeral public key. */
|
|
74
84
|
ephemeralPublicKey: z.string(),
|
|
75
85
|
/** Base64-encoded 32-byte random nonce (HKDF salt). */
|
|
76
|
-
nonce: z.string()
|
|
86
|
+
nonce: z.string(),
|
|
87
|
+
/**
|
|
88
|
+
* The authentication schemes this server accepts. Strings rather than an
|
|
89
|
+
* enum, so a hello naming a scheme this build does not know still parses.
|
|
90
|
+
* Optional so a hello naming none reaches the client's explicit refusal.
|
|
91
|
+
*/
|
|
92
|
+
authSchemes: z.array(z.string()).optional()
|
|
77
93
|
});
|
|
78
94
|
/** Peer hello response: responder sends their ephemeral X25519 public key. */
|
|
79
95
|
const peerHelloResponseSchema = z.object({
|
|
@@ -81,19 +97,21 @@ const peerHelloResponseSchema = z.object({
|
|
|
81
97
|
/** Base64-encoded X25519 DER SPKI ephemeral public key. */
|
|
82
98
|
ephemeralPublicKey: z.string()
|
|
83
99
|
});
|
|
84
|
-
/** Peer auth request sent after ECDH handshake
|
|
100
|
+
/** Peer auth request sent after the ECDH handshake, under the handshake key. */
|
|
85
101
|
const peerAuthRequestSchema = z.object({
|
|
86
102
|
type: z.literal("peer.auth.request"),
|
|
87
103
|
instanceId: z.string(),
|
|
88
|
-
/** Join token (first connection via token-based auth). */
|
|
89
|
-
token: z.string().optional(),
|
|
90
|
-
/** HMAC proof of credential ownership (reconnection). */
|
|
91
|
-
proof: z.string().optional(),
|
|
92
104
|
protocolVersion: z.number(),
|
|
93
|
-
/** Software version of the connecting peer (
|
|
105
|
+
/** Software version of the connecting peer (logged). */
|
|
94
106
|
softwareVersion: z.string().optional(),
|
|
95
|
-
/** Role of the connecting peer. */
|
|
96
|
-
role: z.enum(["coordinator", "worker"]).optional()
|
|
107
|
+
/** Role of the connecting peer, as it declares it. */
|
|
108
|
+
role: z.enum(["coordinator", "worker"]).optional(),
|
|
109
|
+
scheme: PeerAuthScheme,
|
|
110
|
+
mode: PeerAuthMode,
|
|
111
|
+
/** Hex HMAC-SHA256 proof bound to the handshake transcript. */
|
|
112
|
+
clientProof: z.string(),
|
|
113
|
+
/** The join token's base64url routing segment. The server requires it in token mode. */
|
|
114
|
+
tokenRouting: z.string().optional()
|
|
97
115
|
});
|
|
98
116
|
/** Peer auth response indicating whether the connection was accepted. */
|
|
99
117
|
const peerAuthResponseSchema = z.object({
|
|
@@ -101,6 +119,8 @@ const peerAuthResponseSchema = z.object({
|
|
|
101
119
|
accepted: z.boolean(),
|
|
102
120
|
instanceId: z.string().optional(),
|
|
103
121
|
reason: z.string().optional(),
|
|
122
|
+
/** Hex proof that the server holds the same credential or token; present on every acceptance. */
|
|
123
|
+
serverProof: z.string().optional(),
|
|
104
124
|
/** Session credential issued on first join (worker stores for reconnection). */
|
|
105
125
|
sessionCredential: z.string().optional(),
|
|
106
126
|
/** Assigned role echoed back to the connecting peer. */
|
|
@@ -650,6 +670,6 @@ const peerFromPeerMessageSchema = z.discriminatedUnion("type", [
|
|
|
650
670
|
peerScalerEventSchema
|
|
651
671
|
]);
|
|
652
672
|
//#endregion
|
|
653
|
-
export { PeerForgetOutcome, ScalerOrphansAction, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rerouteSpawnRetrySchema, scalerLiveVmSchema, scalerVmStopResultSchema, workerClusterSettingsSchema };
|
|
673
|
+
export { PEER_MUTUAL_AUTH_REQUIRED_REASON, PeerAuthMode, PeerAuthScheme, PeerForgetOutcome, ScalerOrphansAction, ScalerVmStatus, ScalerVmStopOutcome, ScalerVmTracker, fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerForgetRequestSchema, peerForgetResponseSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerScalerOrphansRequestSchema, peerScalerOrphansResponseSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rerouteSpawnRetrySchema, scalerLiveVmSchema, scalerVmStopResultSchema, workerClusterSettingsSchema };
|
|
654
674
|
|
|
655
675
|
//# sourceMappingURL=peer.js.map
|
|
@@ -544,6 +544,7 @@ export declare const orchCapabilitiesUpdateSchema: z.ZodObject<{
|
|
|
544
544
|
use: z.ZodOptional<z.ZodLiteral<"enc">>;
|
|
545
545
|
}, z.core.$loose>>;
|
|
546
546
|
dashboardVerifiedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
547
|
+
clusterJoinV2: z.ZodOptional<z.ZodBoolean>;
|
|
547
548
|
}, z.core.$loose>;
|
|
548
549
|
}, z.core.$strip>;
|
|
549
550
|
export type OrchCapabilitiesUpdate = z.infer<typeof orchCapabilitiesUpdateSchema>;
|
|
@@ -633,6 +634,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
633
634
|
orgPublicAlias: z.ZodOptional<z.ZodString>;
|
|
634
635
|
orgId: z.ZodOptional<z.ZodString>;
|
|
635
636
|
provenanceIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
637
|
+
githubWebhookUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
636
638
|
}, z.core.$strip>, z.ZodObject<{
|
|
637
639
|
type: z.ZodLiteral<"auth.failure">;
|
|
638
640
|
reason: z.ZodString;
|
|
@@ -3568,6 +3570,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3568
3570
|
use: z.ZodOptional<z.ZodLiteral<"enc">>;
|
|
3569
3571
|
}, z.core.$loose>>;
|
|
3570
3572
|
dashboardVerifiedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3573
|
+
clusterJoinV2: z.ZodOptional<z.ZodBoolean>;
|
|
3571
3574
|
}, z.core.$loose>;
|
|
3572
3575
|
}, z.core.$strip>, z.ZodObject<{
|
|
3573
3576
|
type: z.ZodLiteral<"source.register">;
|
|
@@ -3686,6 +3689,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3686
3689
|
use: z.ZodOptional<z.ZodLiteral<"enc">>;
|
|
3687
3690
|
}, z.core.$loose>>;
|
|
3688
3691
|
dashboardVerifiedIssuer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3692
|
+
clusterJoinV2: z.ZodOptional<z.ZodBoolean>;
|
|
3689
3693
|
}, z.core.$loose>>;
|
|
3690
3694
|
}, z.core.$strip>, z.ZodObject<{
|
|
3691
3695
|
type: z.ZodLiteral<"heartbeat">;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Route shape for a GitHub App webhook. Org-scoped, NOT app-scoped — the app
|
|
3
3
|
* id does not appear, so the URL is resolvable before the App exists (the
|
|
4
4
|
* manifest setup flow needs it up front to bake into the App manifest). Shared
|
|
5
|
-
* by the Platform's
|
|
6
|
-
*
|
|
5
|
+
* by the Platform's relay route and the orchestrator's org-scoped direct route,
|
|
6
|
+
* and by both sides' URL builders, so they never drift.
|
|
7
7
|
*/
|
|
8
8
|
export declare function githubWebhookPath(orgId: string): string;
|
|
9
9
|
/**
|
|
@@ -4,8 +4,8 @@ import "../rolldown-runtime-ClRpJifh.js";
|
|
|
4
4
|
* Route shape for a GitHub App webhook. Org-scoped, NOT app-scoped — the app
|
|
5
5
|
* id does not appear, so the URL is resolvable before the App exists (the
|
|
6
6
|
* manifest setup flow needs it up front to bake into the App manifest). Shared
|
|
7
|
-
* by the Platform's
|
|
8
|
-
*
|
|
7
|
+
* by the Platform's relay route and the orchestrator's org-scoped direct route,
|
|
8
|
+
* and by both sides' URL builders, so they never drift.
|
|
9
9
|
*/
|
|
10
10
|
function githubWebhookPath(orgId) {
|
|
11
11
|
return `/webhook/${orgId}/github`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
package/sbom.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@kici-dev/engine@0.
|
|
6
|
-
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.
|
|
5
|
+
"name": "@kici-dev/engine@0.15.0",
|
|
6
|
+
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.15.0/24481e55-dbc5-4970-be42-91b11ccfadb8",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-10-
|
|
8
|
+
"created": "2026-10-04T12:25:10Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: kici-sbom-generator"
|
|
11
11
|
]
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
{
|
|
55
55
|
"SPDXID": "SPDXRef-RootPackage",
|
|
56
56
|
"name": "@kici-dev/engine",
|
|
57
|
-
"versionInfo": "0.
|
|
57
|
+
"versionInfo": "0.15.0",
|
|
58
58
|
"downloadLocation": "NOASSERTION",
|
|
59
59
|
"filesAnalyzed": false,
|
|
60
60
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{
|
|
66
66
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
67
67
|
"referenceType": "purl",
|
|
68
|
-
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.
|
|
68
|
+
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.15.0"
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
71
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|