/** * `@run402/sdk/node` — zero-config Node entry point. * * Wires the isomorphic SDK kernel with: * - default API base from `RUN402_API_BASE` (via core/config) * - {@link NodeCredentialsProvider} backed by the local keystore + wallet * - an x402-wrapped fetch built lazily on first request * - {@link NodeSites}: the `sites` namespace enriched with `deployDir(dir)` * * Usage: * ```ts * import { run402 } from "@run402/sdk/node"; * const r = run402(); * const project = await r.projects.provision({ tier: "prototype" }); * await r.sites.deployDir({ project: project.project_id, dir: "./my-site" }); * ``` * * `deployDir` is a thin wrapper over `r.project(id).apply` — bytes ride through * the unified CAS substrate, so only files the gateway doesn't already have * are uploaded. Re-deploying an unchanged tree issues no S3 PUTs. */ export { fundingRecovery, fundingBlocksBootstrap, type FundingRecovery } from "./funding-recovery.js"; import { Run402, type PayExecutor } from "../index.js"; import type { CredentialsProvider } from "../credentials.js"; import type { Run402ClientMetadata } from "../kernel.js"; import type { AuthMode, CredentialSurface } from "./credentials.js"; import { type EvmPaymentSignerProvider, type PaymentPayerProvenance } from "./paid-fetch.js"; import { NodeSites } from "./sites-node.js"; import { NodeAssets } from "./assets-node.js"; import { NodeArchives } from "./archives-node.js"; import { NodeActions } from "./actions-node.js"; import { NodeWallets } from "./wallets.js"; import { NodeOrgs } from "./org-context.js"; import { Diagnostics } from "./diagnostics.js"; import { NodeBuzz } from "./buzz-doctor.js"; import { type DoctorOptions, type DoctorReport } from "./doctor.js"; import { type InitOptions, type InitSummary, type InitTargetSummary } from "./init.js"; import { type StatusResult } from "./status.js"; export interface NodeRun402Options { /** Override the API base URL. Defaults to `getApiBase()` (env var or production URL). */ apiBase?: string; /** Override the local project-key cache path. Defaults to credentials/project-keys.v1.json. */ keystorePath?: string; /** Override the non-secret profile state path. Defaults to state.json. */ profileStatePath?: string; /** Override the wallet file path. Defaults to the standard location. */ walletPath?: string; /** Override the credentials provider. Defaults to the local Node keystore + wallet provider. */ credentials?: CredentialsProvider; /** * A grant-key bearer minted by a project owner (`run402 grants create --key`). * When set — here or via `RUN402_GRANT_KEY` — it becomes the sole * credential class, so a process with no wallet and no cached project keys * can still deploy. See `../grant-key-credentials.ts`. */ grantKey?: string; /** * Explicit async x402 signer (for example KMS/HSM backed). The provider * exposes only a public address plus signing operations, never a raw key. * Mutually exclusive with `walletPath`. Auth still comes from * `credentials`, so the authenticated principal and payer may differ. */ paymentSigner?: EvmPaymentSignerProvider; /** * Which surface is constructing the client — selects the default credential * mode, the client metadata `surface`, and the client capabilities. `"cli"` * opts into `auto` (wallet, else the sign-in session); `"mcp"` / `"sdk"` / * `"sandbox"` stay `wallet`-only so a human's approval never leaks into * agent tool calls (credential mode is ignored when `credentials` is * supplied). `"sandbox"` (an MCP `run` snippet) also sets * `capabilities.returnSecrets: false`, so every method that would return or * consume a one-time secret refuses with `SECRET_REQUIRES_CLI`. */ surface?: CredentialSurface; /** Explicit credential mode override (otherwise derived from `surface`). */ authMode?: AuthMode; /** * Skip x402 payment wrapping and use `globalThis.fetch` directly. Useful in * tests or when the caller pre-wraps fetch with a custom scheme. */ disablePaidFetch?: boolean; /** Fully custom fetch implementation. Takes precedence over `disablePaidFetch`. */ fetch?: typeof globalThis.fetch; /** Override the arbitrary-URL x402 buyer used by `pay.fetch`. */ payExecutor?: PayExecutor; /** Override or disable the bounded Run402-Client metadata header. */ clientMetadata?: Run402ClientMetadata | false; /** Client package version to report; defaults to the SDK package version. */ clientVersion?: string; /** SDK package version to report; defaults to the SDK package version. */ sdkVersion?: string; } /** Run402 instance with Node-only helpers wired in: `sites.deployDir` * (v1.34 unified-deploy convenience) and `assets.uploadDir` / * `assets.syncDir` / `assets.prepareDir` / `assets.putMany` * (v1.48 unified-apply ergonomics). */ export type NodeRun402 = Omit & { sites: NodeSites; assets: NodeAssets; archives: NodeArchives; /** The local wallet, its server-side label, and the named-wallet (profile) management verbs. */ wallets: NodeWallets; /** The org collection and identity, plus the local organization context and its one resolver. */ orgs: NodeOrgs; /** Buzz workflows, plus the zero-mutation setup preflight `doctor()`. */ buzz: NodeBuzz; /** Anonymous reachability probes (`probeOrigin`). */ diagnostics: Diagnostics; /** Local health and configuration diagnostics: `{ ok, blocking[], warnings[], checks[] }`. */ doctor(opts?: DoctorOptions): Promise; /** * Set up this machine: wallet on its rail, funding, voucher, Lightning, * tier, projects, vault remote, orgs, next step. With `apiBase`, configure * the API target instead and return. */ init(opts: InitOptions & { apiBase: string; }): Promise; init(opts?: InitOptions): Promise; /** The organization's state as the active wallet sees it (the local view; never key material). */ status(): Promise; actions: NodeActions; up: NodeActions["up"]; /** Public address/source selected for automatic payment; never includes keys or signed proofs. */ paymentPayer(): Promise; }; /** * Construct a Run402 client wired with Node defaults. * * Behavior matches today's `run402-mcp` / `run402` CLI: reads keystore and * wallet from disk, signs SIWX headers, and retries 402 responses via * `@x402/fetch` when the wallet has USDC balance. * * The returned instance's `sites` namespace is a {@link NodeSites}, which * exposes the `deployDir({ dir })` helper. */ export declare function run402(opts?: NodeRun402Options): NodeRun402; export { NodeSites } from "./sites-node.js"; export type { DeployDirOptions, DeployEvent as DeployDirEvent, } from "./sites-node.js"; export { fileSetFromDir, normalizeRelPath } from "./files.js"; export type { FileSetFromDirOptions } from "./files.js"; export { NodeAssets, dir, PruneConfirmationRequired } from "./assets-node.js"; export type { AssetManifest, AssetManifestEntry, AssetManifestTotals, DirOptions, LocalDirRef, PutManyItem, UploadDirOptions, SyncDirOptions, PrepareDirOptions, } from "./assets-node.js"; export { assertLocalFileReferencesExist, collectLocalFileReferences, findMissingLocalFileReferences, loadDeployManifest, loadExecutableDeployConfig, manifestFileMissingError, manifestNotFoundError, normalizeDeployManifest, } from "./deploy-manifest.js"; export { defineConfig, emailTrigger, file, nodeFunction, scheduleTrigger, sqlFile, } from "../config.js"; export type { Run402ConfigContext, Run402DirConfigOptions, Run402EmailTriggerOptions, Run402ExecutableConfigExport, Run402ExecutionMode, Run402FileConfigOptions, Run402FileConfigSource, Run402NodeFunctionConfigOptions, Run402ReleaseConfig, Run402ReviewedPlanRequirement, Run402ScheduleTriggerOptions, Run402SqlFileConfigMigration, Run402SqlFileConfigOptions, } from "../config.js"; export type { DeployManifestDatabaseSpec, DeployManifestFileEntry, DeployManifestFileSet, DeployManifestFunctionsSpec, DeployManifestFunctionSpec, DeployManifestInput, DeployManifestMigrationSpec, DeployManifestSiteSpec, DeployManifestVerifyHttpCheck, DeployManifestVerifySpec, LoadDeployManifestOptions, LocalFileReference, LocalFileReferenceKind, MissingLocalFileReference, NormalizedDeployManifest, NormalizedDeployManifestVerify, NormalizeDeployManifestOptions, } from "./deploy-manifest.js"; export { resolveRun402TargetProfile } from "./target-profile.js"; export type { ResolveRun402TargetProfileOptions, Run402TargetKind, Run402TargetProfile, Run402TargetProfileEnvAliases, Run402TargetProfileSources, Run402TargetRequirement, } from "./target-profile.js"; export { VaultKeystore, getVaultKeystoreRoot, readFileNoFollow, writeFileAtomic0600, } from "./vault-keystore.js"; export type { VaultAuditEntry, VaultAuditEvent, VaultHeadPin, VaultIdentityFile, VaultKeystoreOptions, VaultKeystoreState, VaultLockOptions, VaultPermissionFinding, VaultRepoFile, } from "./vault-keystore.js"; export { VAULT_CREATION_STAGES, VaultCreation, createVault, findResumableVaultJournal, findResumablePushToCreateJournal, vaultDoctorRecoveryText, vaultJournalPath, listIncompleteVaultJournals, readVaultJournal, } from "./vault-creation-journal.js"; export type { VaultAdmitGenesisRequest, VaultAdmitGenesisResult, VaultAllocateRequest, VaultCreationJournal, VaultCreationOptions, VaultCreationResult, VaultCreationStage, VaultCreationTransport, VaultDoctorRecoveryText, VaultJournaledObject, VaultObjectReceipt, VaultPushToCreateAddress, VaultPutObjectRequest, } from "./vault-creation-journal.js"; export { VAULT_DEPLOY_REF, VAULT_HANDOFF_SENSITIVE_DENYLIST, VAULT_MAX_GIT_OBJECT_BYTES, VAULT_MIN_GIT_VERSION, HARDENED_GIT_ARGV_PREFIX, captureHandoffSnapshot, captureSnapshot, capturedSetDigest, capturedSetUnchanged, deriveCapturedSet, detectActiveFilters, diffCapturedSets, discoverGlobalExcludes, findOversizeObjects, vaultCommitLine, globMatchesGitPath, hardenedGit, hardenedGitEnv, run402PassthroughEnv, hasObject, inspectRepository, isAncestor, isHandoffSensitivePath, materializeSnapshot, parseGitConfigAsData, probeGitVersion, resolveGitInvocationRepo, snapshotCommitment, } from "./vault-snapshot.js"; export type { GitConfigDiscoveryEnv, GitInvocationRepo, VaultCapturedFile, VaultCapturedSetDrift, VaultHandoffCaptureOptions, VaultHandoffCaptureStats, VaultHandoffSnapshot, VaultRepositoryInspection, VaultRepositoryRefusalCode, VaultSnapshot, VaultSnapshotOptions, VaultSnapshotRefusalPath, GlobalExcludesDiscovery, GlobalExcludesRefusal, HardenedGitOptions, HardenedGitResult, ParsedGitConfigEntry, } from "./vault-snapshot.js"; export { VAULT_INLINE_UPLOAD_MAX_OBJECT_BYTES, VAULT_INLINE_UPLOAD_MAX_REQUEST_BYTES, VAULT_MAX_CANONICAL_REFS, VAULT_MAX_CHECKPOINT_PACKS, VAULT_MAX_CHECKPOINT_TOTAL_STORED_BYTES, VAULT_MAX_HEADS_PER_LISTING_PAGE, VAULT_MAX_REF_STATE_OBJECT_BYTES, VAULT_MAX_REF_UPDATES_PER_TRANSACTION, VAULT_MAX_REPAIR_ADDED_ROOTS, VAULT_MAX_RETENTION_ROOT_ENTRIES, VAULT_MAX_WAL_RECEIPTS_PER_HEAD, VAULT_MULTI_OBJECT_PACK_TARGET_BYTES, VAULT_PUSH_CONFLICT_RETRIES, VAULT_R402_REF_NAMESPACE, VAULT_RETAIN_REF_PREFIX, VAULT_RETENTION_MIN_DAYS, VAULT_VERIFICATION_BUDGET_HEADS, Vault, assertNoTransition, assertRefMapCardinality, bigIntToGeneration, captureBinding, checkChainLink, checkClaimSetEquality, checkGenerationRegression, checkOpenBinding, compareRoots, createVaultHttpTransport, deployRefTransaction, effectiveAdmittedAt, evaluateRefTransaction, evolveRetentionRoots, generationToBigInt, vaultInlineUploadEligible, vaultPaths, vaultRetainedRefName, isRootEligibleForRemoval, nextGeneration, nextListingRequest, vaultLedgerId, vaultManifestEntry, vaultWireRefForPath, openBindingDigest, reconcileRetainedTipRefs, validateHeadsListingRequest, verifyHeadsListingPage, readVaultRestoreMarker, VAULT_AUTO_GC_GENERATIONS_DEFAULT, readVaultAutoGcThreshold, writeVaultAutoGcThreshold, } from "./vault-publication.js"; export type { VaultAdmitHeadRequest, VaultAdmitHeadResult, VaultBuiltCheckpoint, VaultChainLinkInput, VaultCutoffOptions, VaultDroppedTip, VaultEvaluateRefTransactionOptions, VaultEvolveRootsOptions, VaultHttpTransportOptions, VaultListingProgress, VaultMaintenanceLease, VaultMaintenanceLeaseRequest, VaultObjectReadRequest, VaultResourceBinding, VaultRecord, VaultState, VaultWireRef, VaultMaterializedState, VaultOpenBindingRecord, VaultPublishResult, VaultPushOptions, VaultPushPlan, VaultRefMap, VaultRefTransactionEvaluation, VaultRefUpdateFailure, VaultRestoreMarker, VaultRetainedRefsReconcileResult, VaultRetentionCutoffIssued, VaultTransport, VaultUploadObject, VaultUploadReceipt, VaultOptions, VaultVerifiedState, VaultCompactionGrant, } from "./vault-publication.js"; export { VAULT_DEPLOY_OUTCOMES, SNAPSHOT_MOVED_DURING_DEPLOY, checkActivationTokenBinding, checkAuthorizationEpoch, drainOverrideJournals, listPendingOverrideJournals, matchCaptureReceipt, overrideJournalDir, overrideJournalPath, readOverrideJournal, runVaultDeploy, writeOverrideJournal, } from "./vault-deploy.js"; export type { VaultCaptureReceiptMatch, VaultDeployError, VaultDeployLane, VaultDeployLaneCommitInput, VaultDeployLanePlan, VaultDeployLanePlanInput, VaultDeployNextAction, VaultDeployOptions, VaultDeployOutcome, VaultDeployResult, VaultOverrideDrainReport, VaultOverrideJournal, VaultSnapshotMovedDetails, } from "./vault-deploy.js"; export { HANDOFF_ENVELOPE_KIND, HANDOFF_KEY_PREFIXES, HANDOFF_ENVELOPE_V2_KIND, INVITE_ENVELOPE_V2_KIND, assembleHandoffKey, assembleInviteKey, assertHandoffNoteHasNoSecret, assertInviteNoteHasNoSecret, deriveHandoffSecrets, deriveInviteSecrets, isKygitHandoffNote, isKygitInviteNote, openHandoffEnvelope, openHandoffEnvelopeV2, openInviteEnvelope, parseRedeemKey, parseHandoffKey, parseInviteKey, scanHandoffNoteForSecrets, scanInviteNoteForSecrets, sealHandoffEnvelope, sealHandoffEnvelopeV2, sealInviteEnvelope, uuidToBytes, } from "./vault-handoff.js"; export { assembleRoomInviteKey, computeRoomInviteAuthHash, deriveRoomInviteAuthSecret, parseRoomInviteKey, randomRedeemId, } from "./bearer-redeem-key.js"; export type { RoomInviteKeyParts } from "./bearer-redeem-key.js"; export type { RedeemKeyParts, RedeemKind, HandoffEnvelopePayload, HandoffEnvelopePayloadV2, HandoffKeyParts, HandoffKeyPrefixEntry, HandoffNoteSecretFinding, HandoffSecrets, InviteEnvelopePayloadV2, InviteKeyParts, KygitHandoffNote, KygitHandoffNoteCapture, KygitInviteNote, } from "./vault-handoff.js"; export { HANDOFF_WRITER_ACCEPT_DOMAIN, buildWriterAcceptance, buildWriterAdmissionGrant, deriveRedeemWriterAdmissionSeed, deriveInviteWriterAdmissionSeed, deriveWriterAdmissionSeed, verifyWriterAcceptance, verifyWriterAdmissionGrant, } from "./vault-handoff.js"; export type { BuildWriterAcceptanceInput, BuildWriterAdmissionGrantInput, VaultWriterMintedRole, HandoffWriterAcceptStatement, WriterAcceptance, WriterAdmissionGrant, } from "./vault-handoff.js"; export { MAX_VAULT_WRITERS, ORG_ROLE_RANK, WRITER_ELIGIBLE_ROLE_RANK, applyAddWriterKey, applyWriterSetUpdate, buildAddWriterKeyActivationPayload, buildWriterDoorAddWriterKeyPayload, initialWriterState, meetsWriterEligibleRole, predictMintedRole, replayWriterState, resolveActiveWriter, validateAddWriterKeyPayload, validateWriterSetUpdate, writerKeyIdOf, writerSetSha256, } from "./vault-writer-state.js"; export type { AddWriterKeyPayload, AdmittedWriterTransition, WriterChainState, WriterKeyEntry, WriterSetUpdatePayload, WriterStateRefusalCode, WriterStateVerdict, } from "./vault-writer-state.js"; export { applyHandoffCheckpoint, cloneVaultRemote, excludeMessagingCacheFromGit, isMessagingCacheExcludedFromGit, readGitCommitMessage, resolveResumeTargetDir } from "./vault-restore.js"; export type { VaultHandoffRestoreOptions, VaultHandoffRestoreResult } from "./vault-restore.js"; export { openOrCreateVault } from "./vault-open-or-create.js"; export type { OpenOrCreateVaultOptions, OpenOrCreateVaultResult } from "./vault-open-or-create.js"; export { pushToCreateVault } from "./vault-push-to-create.js"; export type { PushToCreateVaultOptions, PushToCreateVaultResult } from "./vault-push-to-create.js"; export { readPinnedVaultRepo, pinVaultRepo, resolveVaultAddress, pinRoomBinding, readPinnedRoomBinding } from "./vault-address.js"; export type { VaultPinnedRepo, VaultAddressResolution, ResolveVaultAddressOptions } from "./vault-address.js"; export { prewarmVaultConnection, predialVaultObjectStore } from "./vault-prewarm.js"; export { findLocalProfilesHoldingVaultRepo, crossProfileVaultHint } from "./vault-profile-scan.js"; export { applyWithVault, createApplyDeployLane } from "./vault-apply.js"; export type { ApplyDeployLane, ApplyDeployLaneOptions, ApplyWithVaultOptions, ApplyWithVaultResult, VaultApplyMode, } from "./vault-apply.js"; export * from "../namespaces/vault.crypto.js"; export { signCiDelegation } from "./ci.js"; export type { SignCiDelegationOptions } from "./ci.js"; export { signOrgAdopt, adoptOrg } from "./org-adopt.js"; export type { SignOrgAdoptOptions, AdoptOrgOptions } from "./org-adopt.js"; export { importArchiveToCore, inspectArchive, NodeArchives, readEnvFile, verifyArchive, } from "./archives-node.js"; export { NodeCredentialsProvider } from "./credentials.js"; export { ACTIVE_WALLET_CONTEXT_ENV, NodeWallets, WalletSelectionError, assertWalletExists, findWalletBinding, readActiveWalletContext, resolveWalletSelection, selectWallet, } from "./wallets.js"; export { Diagnostics, classifyTransportFailure } from "./diagnostics.js"; export type { OriginClassification, OriginProbeResult, ProbeOriginOptions } from "./diagnostics.js"; export { BUZZ_DOCTOR_MAX_RESPONSE_BYTES, BUZZ_DOCTOR_MIN_NODE_MAJOR, BUZZ_DOCTOR_MIN_RUN402_VERSION, BUZZ_DOCTOR_REPAIR_MATRIX, BUZZ_DOCTOR_TIMEOUT_MS, NodeBuzz, buildBuzzDoctorReport, defaultPinnedRelayRead, isPublicAddress, normalizeNostrSubject, pinnedLookup, } from "./buzz-doctor.js"; export type { BuzzDoctorOptions, BuzzDoctorRun402CliHooks } from "./buzz-doctor.js"; export { BUZZ_CLI_CAPABILITIES, BUZZ_DOCTOR_ACTION_SURFACES, BUZZ_DOCTOR_CHECK_ORDER, BUZZ_DOCTOR_CONTRACT, BUZZ_DOCTOR_CONTRACT_ID, BUZZ_DOCTOR_MAX_AGE_MS, BUZZ_DOCTOR_STATUSES, validateBuzzDoctorAction, validateBuzzDoctorReport, } from "./buzz-doctor-contract.js"; export { initApiTarget, resolveScaffoldProject, runInit } from "./init.js"; export type { InitOptions, InitRail, InitSummary, InitTargetSummary, InitWalletSummary } from "./init.js"; export { runStatus } from "./status.js"; export type { LocalOnlyStatus, StatusResult, StatusTarget, WalletStatus } from "./status.js"; export { LIGHTNING_MINT_TIMEOUT_MS, describeLightning, ensureLightningWallet, readLightningBalance, revokeLightningWallet, } from "./lightning-wallet.js"; export type { EnsureLightningResult, LightningBalance, LightningDescription, LightningOutcome } from "./lightning-wallet.js"; export { DOCTOR_CHECK_NAMES, assertDoctorCheckNames, buildDoctorReport, runDoctor } from "./doctor.js"; export type { DoctorCheck, DoctorCheckName, DoctorOptions, DoctorReport, DoctorReportCheck, DoctorSeverity } from "./doctor.js"; export { repoOwnVaultTarget, resolveVaultTarget } from "./vault-target.js"; export type { RepoOwnVaultTarget, VaultTarget } from "./vault-target.js"; export { NodeOrgs, ORG_ENV, ORG_ID_RE, PROJECT_ENV, ROOM_ENV, assertOrgIdShape, listOrgsAction, orgProvenance, orgRequiredActions, orgRequiredError, } from "./org-context.js"; export type { CurrentOrgResult, OrgBindResult, OrgProvenance, OrgSource, OrgUnbindResult, ResolveOrgInput, ResolveOrgOptions, ResolvedOrg, } from "./org-context.js"; export type { ActiveWalletContext, CreatedWalletProfile, CurrentWalletResult, ResolveWalletSelectionOptions, SelectWalletOptions, WalletBindResult, WalletDescriptor, WalletFlag, WalletRail, WalletSelection, WalletSelectionSource, WalletUnbindResult, WalletWarning, } from "./wallets.js"; export type { AuthMode, CredentialSurface, NodeCredentialsOptions } from "./credentials.js"; export { NodeActions, resolveDeploymentTarget } from "./actions-node.js"; export type { NodeActionTargetKind, NodeActionsOptions } from "./actions-node.js"; export { setupPaidFetch, createLazyPaidFetch, X402BalanceError } from "./paid-fetch.js"; export type { EvmPaymentSigner, EvmPaymentSignerProvider, ConfiguredPaidFetch, LazyPaidFetch, PaidFetchOptions, PaymentPayerProvenance, PaymentPayerSource, PaymentPublicClient, X402BalanceErrorCode, X402PaymentNetwork, } from "./paid-fetch.js"; export { listPaymentAttempts, readPaymentAttempt, PAYMENT_ATTEMPT_HEADER, } from "./payment-attempts.js"; export type { PaymentAttemptJournalState, PaymentAttemptRecord, } from "./payment-attempts.js"; export { Run402Action } from "../actions.js"; export * from "../app-up.js"; export type * from "../index.js"; export { Run402, Run402Error, PaymentRequired, ProjectCredentialNotFound, ProjectNotFound, Unauthorized, NotAuthorizedError, StepUpRequiredError, ApiError, NetworkError, PaymentAttemptError, PaymentBuyerError, PaymentPolicyError, X402_COMMERCE_RESULT_SCHEMA_VERSION, X402_EVIDENCE_STATUSES, X402_GATEWAY_AVAILABILITY_ERROR_CODE, X402_MUTATION_STATES, X402_PAYMENT_POLICY_ERROR_CODES, X402_RECOVERY_ACTIONS, LocalError, SecretRequiresCliError, Run402DeployError, EMPTY_STATIC_MANIFEST_METADATA, ROUTE_HTTP_METHODS, Ci, Deploy, CI_SESSION_CREDENTIALS, Orgs, ScopedOrg, Grants, PROJECT_CREDENTIAL_ERROR_CODES, PROJECT_OPERATION_AUTH_CLASSIFICATIONS, files, CI_AUDIENCE, CI_GITHUB_ACTIONS_ISSUER, CI_GITHUB_ACTIONS_PROVIDER, DEFAULT_CI_DELEGATION_CHAIN_ID, V1_CI_ALLOWED_ACTIONS, V1_CI_ALLOWED_EVENTS_DEFAULT, assertCiDeployableSpec, buildCiDelegationResourceUri, buildCiDelegationStatement, buildDeployResolveSummary, createCiSessionCredentials, githubActionsCredentials, isRun402Error, isPaymentRequired, isProjectCredentialError, isProjectCredentialExpired, isProjectCredentialInvalid, isProjectCredentialNotFound, isProjectCredentialProjectMismatch, isProjectNotFound, isUnauthorized, isNotAuthorized, isStepUpRequired, isWriteApprovalRequired, isApiError, isNetworkError, isPaymentAttemptError, isPaymentBuyerError, isPaymentPolicyError, isLocalError, isSecretRequiresCli, SECRET_RETURNING_METHODS, isDeployError, isRetryableRun402Error, isCiSessionCredentials, isGrantKeyCredentials, grantKeyFromEnv, GRANT_KEY_ENV, projectOperationAuthClassification, isDeployResolveRouteHit, isDeployResolveStaticHit, normalizeCiRouteScopes, normalizeCiDelegationValues, normalizeDeployResolveRequest, normalizeStaticManifestMetadata, summarizeDeployResult, validateCiNonce, validateCiRouteScope, validateCiSubjectMatch, withRetry, } from "../index.js"; export { NwcWallet, NwcError, closeNwcConnections, parseNwcUri } from "./nwc.js"; export type { NwcConnection } from "./nwc.js"; export { createLightningFetch, readLightningChallenge, isLightningChargedRequest, LightningPaymentError, RUN402_MPP_LIGHTNING_PROFILE, LIGHTNING_MAX_DEBIT_SATS, } from "./lightning-paid-fetch.js"; export type { LightningFetchOptions, LightningWalletLike } from "./lightning-paid-fetch.js"; export { scanFileContent, scanSourceTree, scanSourceFiles, resolveScanRoot, readDeclaredCapabilities, SCAN_SEVERITY, _testOnly_hallucinatedNames, _testOnly_authProperties } from "./source-scan.js"; export { resolveApplicationScope, loadApplicationScanInput } from "./app-scope.js"; export { scanDeploymentSources } from "./source-scan.js"; export { describeLocalPreflight } from "./preflight.js"; export { serializeDeployManifest } from "./manifest-export.js"; export { prepareWorkflowOutput } from "./workflow-output.js"; export { readRemoteStatus } from "./remote-status.js"; //# sourceMappingURL=index.d.ts.map