@omnara/sdk 0.1.35 → 0.1.36

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.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { A as AuthStrategy } from './auth-ChKpCt8W.js';
2
2
  export { b as bearerToken } from './auth-ChKpCt8W.js';
3
- import { hd as Config, he as Client, hf as ErrorCode, hg as AgentConfigErrorIssue, hh as AgentEventStreamData, hi as Error$1, hj as StreamEventsData, hk as PersonalAccessToken, hl as IntegrationSettings, hm as IntegrationKind, hn as IntegrationProviderConfig, ho as CreateIntegrationRequest, hp as UpdateIntegrationRequest } from './sdk.gen-CsNXiNUE.js';
4
- export { A as AcceptInvitationData, b as AcceptInvitationError, hq as AcceptInvitationErrors, a as AcceptInvitationResponse, hr as AcceptInvitationResponses, ca as Actor, hs as ActorId, ht as ActorProvider, hu as Agent, hv as AgentActivity, cg as AgentConfig, hw as AgentConfigDefinition, hx as AgentConfigDefinitionEventWebhook, hy as AgentConfigDefinitionGitCredentials, hz as AgentConfigDefinitionInteractionHandler, hA as AgentConfigDefinitionInteractionHandlers, hB as AgentConfigDefinitionMachineSource, hC as AgentConfigDefinitionMachineSources, hD as AgentConfigDefinitionMcpAuth, hE as AgentConfigDefinitionMcpServer, hF as AgentConfigDefinitionMcpServers, hG as AgentConfigDefinitionMcpTool, hH as AgentConfigDefinitionMemoryStore, hI as AgentConfigDefinitionMemoryStores, hJ as AgentConfigDefinitionModel, hK as AgentConfigDefinitionSkills, hL as AgentConfigDefinitionSubagent, hM as AgentConfigDefinitionSubagentInstruction, hN as AgentConfigDefinitionSubagentModel, hO as AgentConfigDefinitionSubagents, hP as AgentConfigDefinitionTool, hQ as AgentConfigDefinitionToolInputSchema, hR as AgentConfigDefinitionToolPermission, hS as AgentConfigDefinitionTools, cd as AgentConfigGeneratedSource, hT as AgentConfigId, hU as AgentConfigModel, hV as AgentConfigSourceInput, hW as AgentConfigSummary, hX as AgentConfigToolsDefinition, hY as AgentControlType, hZ as AgentCount, h_ as AgentCronTriggerTarget, h$ as AgentEvent, i0 as AgentEventId, i1 as AgentId, i2 as AgentIncludeUsage, i3 as AgentInput, i4 as AgentInputContentBlock, i5 as AgentInputDeliveryMode, i6 as AgentInputEnvelope, i7 as AgentInputEvent, i8 as AgentInputId, i9 as AgentInputKind, ia as AgentInteraction, ib as AgentInteractionDestination, ic as AgentInteractionId, id as AgentInteractionKind, ie as AgentInteractionState, ig as AgentInteractionUpdate, ih as AgentLaunchInitialInput, ii as AgentMachineBinding, ij as AgentMachineBindingId, ik as AgentMachineBindingKind, il as AgentMachineBindingState, im as AgentMcpConnection, io as AgentModel, ip as AgentName, cm as AgentProfile, iq as AgentProfileCronTriggerTarget, ir as AgentProfileId, is as AgentProfileIncludeStats, it as AgentProfileStats, iu as AgentProfileStatsSince, iv as AgentProfileSummary, iw as AgentSequence, ix as AgentSequenceCursor, iy as AgentTurn, iz as AgentTurnId, c as ArchiveAgentData, e as ArchiveAgentError, iA as ArchiveAgentErrors, d as ArchiveAgentResponse, iB as ArchiveAgentResponses, cw as Artifact, iC as ArtifactId, iD as AwsCredentialsSecretMaterial, B as BootstrapDaemonData, g as BootstrapDaemonError, iE as BootstrapDaemonErrors, iF as BootstrapDaemonResponse, f as BootstrapDaemonResponse2, iG as BootstrapDaemonResponses, C as CancelAgentData, i as CancelAgentError, iH as CancelAgentErrors, iI as CancelAgentRequest, iJ as CancelAgentResponse, h as CancelAgentResponse2, iK as CancelAgentResponses, j as CancelQueuedBacklogInputData, l as CancelQueuedBacklogInputError, iL as CancelQueuedBacklogInputErrors, k as CancelQueuedBacklogInputResponse, iM as CancelQueuedBacklogInputResponses, m as CheckMachinePoolConnectionData, o as CheckMachinePoolConnectionError, iN as CheckMachinePoolConnectionErrors, iO as CheckMachinePoolConnectionRequest, n as CheckMachinePoolConnectionResponse, iP as CheckMachinePoolConnectionResponses, iQ as ClientErrorCode, iR as ClientOptions, iS as CompiledAgentConfig, iT as CompiledAgentModel, iU as CompiledEventWebhook, iV as CompiledGitCredentials, iW as CompiledIntegrationCapability, iX as CompiledMachineSource, iY as CompiledMcpAuth, iZ as CompiledMcpAuthBearer, i_ as CompiledMcpAuthOAuth, i$ as CompiledMcpAuthSigV4, j0 as CompiledMcpServer, j1 as CompiledMcpTool, j2 as CompiledMemoryStore, j3 as CompiledModelReasoning, j4 as CompiledProfileSubagent, j5 as CompiledSelfSubagent, j6 as CompiledSkill, j7 as CompiledSubagent, j8 as CompiledSubagentModel, j9 as CompiledTool, p as ConfigureIntegrationData, r as ConfigureIntegrationError, ja as ConfigureIntegrationErrors, jb as ConfigureIntegrationRequest, q as ConfigureIntegrationResponse, jc as ConfigureIntegrationResponses, jd as ConfiguredModel, je as ConfiguredModelId, dL as ConfiguredModelList, jf as ConfiguredModelRevisionId, jg as ConfiguredModelSummary, s as ConnectByoMachineData, u as ConnectByoMachineError, jh as ConnectByoMachineErrors, ji as ConnectByoMachineRequest, jj as ConnectByoMachineResponse, t as ConnectByoMachineResponse2, jk as ConnectByoMachineResponses, jl as ContentBlockMetadata, jm as ContextCheckpointEvent, jn as ContextCheckpointId, v as CreateAgentConfigData, x as CreateAgentConfigError, jo as CreateAgentConfigErrors, jp as CreateAgentConfigRequest, w as CreateAgentConfigResponse, jq as CreateAgentConfigResponses, E as CreateAgentData, G as CreateAgentError, jr as CreateAgentErrors, js as CreateAgentInputContentBlock, y as CreateAgentInputData, jt as CreateAgentInputDeliveryMode, D as CreateAgentInputError, ju as CreateAgentInputErrors, jv as CreateAgentInputRequest, z as CreateAgentInputResponse, jw as CreateAgentInputResponses, H as CreateAgentProfileData, J as CreateAgentProfileError, jx as CreateAgentProfileErrors, jy as CreateAgentProfileRequest, I as CreateAgentProfileResponse, jz as CreateAgentProfileResponses, jA as CreateAgentRequest, F as CreateAgentResponse, jB as CreateAgentResponses, K as CreateByoMachineDaemonTokenData, M as CreateByoMachineDaemonTokenError, jC as CreateByoMachineDaemonTokenErrors, L as CreateByoMachineDaemonTokenResponse, jD as CreateByoMachineDaemonTokenResponses, N as CreateConfiguredModelData, Q as CreateConfiguredModelError, jE as CreateConfiguredModelErrors, jF as CreateConfiguredModelRequest, P as CreateConfiguredModelResponse, jG as CreateConfiguredModelResponses, R as CreateCronTriggerData, T as CreateCronTriggerError, jH as CreateCronTriggerErrors, jI as CreateCronTriggerRequest, S as CreateCronTriggerResponse, jJ as CreateCronTriggerResponses, jK as CreateGitHubSetupRequest, X as CreateIntegrationData, Z as CreateIntegrationError, jL as CreateIntegrationErrors, U as CreateIntegrationGitHubSetupData, W as CreateIntegrationGitHubSetupError, jM as CreateIntegrationGitHubSetupErrors, V as CreateIntegrationGitHubSetupResponse, jN as CreateIntegrationGitHubSetupResponses, _ as CreateIntegrationOAuthSetupData, a0 as CreateIntegrationOAuthSetupError, jO as CreateIntegrationOAuthSetupErrors, jP as CreateIntegrationOAuthSetupRequest, $ as CreateIntegrationOAuthSetupResponse, jQ as CreateIntegrationOAuthSetupResponses, Y as CreateIntegrationResponse, jR as CreateIntegrationResponses, a1 as CreateIntegrationSlackSetupData, a3 as CreateIntegrationSlackSetupError, jS as CreateIntegrationSlackSetupErrors, a2 as CreateIntegrationSlackSetupResponse, jT as CreateIntegrationSlackSetupResponses, a4 as CreateIntegrationSubscriptionData, a6 as CreateIntegrationSubscriptionError, jU as CreateIntegrationSubscriptionErrors, jV as CreateIntegrationSubscriptionRequest, a5 as CreateIntegrationSubscriptionResponse, jW as CreateIntegrationSubscriptionResponses, jX as CreateMachineDaemonTokenRequest, jY as CreateMachineDaemonTokenResponse, a7 as CreateMachineData, a9 as CreateMachineError, jZ as CreateMachineErrors, aa as CreateMachinePoolData, ac as CreateMachinePoolError, j_ as CreateMachinePoolErrors, j$ as CreateMachinePoolRequest, k0 as CreateMachinePoolRequestBase, ab as CreateMachinePoolResponse, k1 as CreateMachinePoolResponses, k2 as CreateMachineRequest, a8 as CreateMachineResponse, k3 as CreateMachineResponses, k4 as CreateMemoryStore, ad as CreateMemoryStoreData, af as CreateMemoryStoreError, k5 as CreateMemoryStoreErrors, ae as CreateMemoryStoreResponse, k6 as CreateMemoryStoreResponses, ag as CreateModelProviderConfigData, ai as CreateModelProviderConfigError, k7 as CreateModelProviderConfigErrors, k8 as CreateModelProviderConfigRequest, k9 as CreateModelProviderConfigResponse, ah as CreateModelProviderConfigResponse2, ka as CreateModelProviderConfigResponses, aj as CreateOrgApiKeyData, al as CreateOrgApiKeyError, kb as CreateOrgApiKeyErrors, kc as CreateOrgApiKeyRequest, kd as CreateOrgApiKeyResponse, ak as CreateOrgApiKeyResponse2, ke as CreateOrgApiKeyResponses, am as CreateOrgInvitationData, ao as CreateOrgInvitationError, kf as CreateOrgInvitationErrors, kg as CreateOrgInvitationRequest, an as CreateOrgInvitationResponse, kh as CreateOrgInvitationResponses, ap as CreateOrganizationData, ar as CreateOrganizationError, ki as CreateOrganizationErrors, kj as CreateOrganizationRequest, kk as CreateOrganizationResponse, aq as CreateOrganizationResponse2, kl as CreateOrganizationResponses, as as CreatePersonalAccessTokenData, au as CreatePersonalAccessTokenError, km as CreatePersonalAccessTokenErrors, kn as CreatePersonalAccessTokenRequest, ko as CreatePersonalAccessTokenResponse, at as CreatePersonalAccessTokenResponse2, kp as CreatePersonalAccessTokenResponses, aE as CreateProjectData, aG as CreateProjectError, kq as CreateProjectErrors, av as CreateProjectMachineGrantData, ax as CreateProjectMachineGrantError, kr as CreateProjectMachineGrantErrors, ks as CreateProjectMachineGrantRequest, kt as CreateProjectMachineGrantResponse, aw as CreateProjectMachineGrantResponse2, ku as CreateProjectMachineGrantResponses, ay as CreateProjectMachinePoolGrantData, aA as CreateProjectMachinePoolGrantError, kv as CreateProjectMachinePoolGrantErrors, kw as CreateProjectMachinePoolGrantRequest, az as CreateProjectMachinePoolGrantResponse, kx as CreateProjectMachinePoolGrantResponses, aB as CreateProjectModelGrantData, aD as CreateProjectModelGrantError, ky as CreateProjectModelGrantErrors, kz as CreateProjectModelGrantRequest, aC as CreateProjectModelGrantResponse, kA as CreateProjectModelGrantResponses, kB as CreateProjectRequest, aF as CreateProjectResponse, kC as CreateProjectResponses, aK as CreateSecretData, aM as CreateSecretError, kD as CreateSecretErrors, aH as CreateSecretGrantData, aJ as CreateSecretGrantError, kE as CreateSecretGrantErrors, aI as CreateSecretGrantResponse, kF as CreateSecretGrantResponses, kG as CreateSecretRequest, aL as CreateSecretResponse, kH as CreateSecretResponses, aN as CreateSecretVersionData, aP as CreateSecretVersionError, kI as CreateSecretVersionErrors, aO as CreateSecretVersionResponse, kJ as CreateSecretVersionResponses, aT as CreateSkillData, aV as CreateSkillError, kK as CreateSkillErrors, aQ as CreateSkillGrantData, aS as CreateSkillGrantError, kL as CreateSkillGrantErrors, aR as CreateSkillGrantResponse, kM as CreateSkillGrantResponses, kN as CreateSkillRequest, aU as CreateSkillResponse, kO as CreateSkillResponses, kP as CreateSlackSetupRequest, kQ as CreatedResourceListSort, kR as CronExpression, kS as CronMessageTemplate, kT as CronTimezone, cz as CronTrigger, kU as CronTriggerDeliveryMode, kV as CronTriggerFailureReport, kW as CronTriggerId, kX as CronTriggerLastRun, kY as CronTriggerLastRunState, kZ as CronTriggerTarget, k_ as CurrentAgentResponse, cC as CurrentUser, k$ as CurrentUserIdentity, l0 as CurrentUserOrg, l1 as DaemonRuntime, l2 as DaemonRuntimeId, l3 as DaemonRuntimeReconciliation, l4 as DaemonRuntimeState, aW as DeclineInvitationData, aY as DeclineInvitationError, l5 as DeclineInvitationErrors, aX as DeclineInvitationResponse, l6 as DeclineInvitationResponses, aZ as DeleteAgentProfileData, a$ as DeleteAgentProfileError, l7 as DeleteAgentProfileErrors, a_ as DeleteAgentProfileResponse, l8 as DeleteAgentProfileResponses, b0 as DeleteConfiguredModelData, b2 as DeleteConfiguredModelError, l9 as DeleteConfiguredModelErrors, b1 as DeleteConfiguredModelResponse, la as DeleteConfiguredModelResponses, b3 as DeleteCronTriggerData, b5 as DeleteCronTriggerError, lb as DeleteCronTriggerErrors, b4 as DeleteCronTriggerResponse, lc as DeleteCronTriggerResponses, b6 as DeleteCurrentUserData, b8 as DeleteCurrentUserError, ld as DeleteCurrentUserErrors, b7 as DeleteCurrentUserResponse, le as DeleteCurrentUserResponses, b9 as DeleteIntegrationData, bb as DeleteIntegrationError, lf as DeleteIntegrationErrors, ba as DeleteIntegrationResponse, lg as DeleteIntegrationResponses, bc as DeleteIntegrationSubscriptionData, be as DeleteIntegrationSubscriptionError, lh as DeleteIntegrationSubscriptionErrors, bd as DeleteIntegrationSubscriptionResponse, li as DeleteIntegrationSubscriptionResponses, bf as DeleteMachineData, bh as DeleteMachineError, lj as DeleteMachineErrors, bi as DeleteMachinePoolData, bk as DeleteMachinePoolError, lk as DeleteMachinePoolErrors, bj as DeleteMachinePoolResponse, ll as DeleteMachinePoolResponses, bg as DeleteMachineResponse, lm as DeleteMachineResponses, bl as DeleteMemoryFileData, bn as DeleteMemoryFileError, ln as DeleteMemoryFileErrors, bm as DeleteMemoryFileResponse, lo as DeleteMemoryFileResponses, bo as DeleteMemoryStoreData, bq as DeleteMemoryStoreError, lp as DeleteMemoryStoreErrors, bp as DeleteMemoryStoreResponse, lq as DeleteMemoryStoreResponses, br as DeleteModelProviderConfigData, bt as DeleteModelProviderConfigError, lr as DeleteModelProviderConfigErrors, bs as DeleteModelProviderConfigResponse, ls as DeleteModelProviderConfigResponses, bu as DeleteOrgInvitationData, bw as DeleteOrgInvitationError, lt as DeleteOrgInvitationErrors, bv as DeleteOrgInvitationResponse, lu as DeleteOrgInvitationResponses, bx as DeleteOrganizationData, bz as DeleteOrganizationError, lv as DeleteOrganizationErrors, by as DeleteOrganizationResponse, lw as DeleteOrganizationResponses, bJ as DeleteProjectData, bL as DeleteProjectError, lx as DeleteProjectErrors, bA as DeleteProjectMachineGrantData, bC as DeleteProjectMachineGrantError, ly as DeleteProjectMachineGrantErrors, bB as DeleteProjectMachineGrantResponse, lz as DeleteProjectMachineGrantResponses, bD as DeleteProjectMachinePoolGrantData, bF as DeleteProjectMachinePoolGrantError, lA as DeleteProjectMachinePoolGrantErrors, bE as DeleteProjectMachinePoolGrantResponse, lB as DeleteProjectMachinePoolGrantResponses, bG as DeleteProjectModelGrantData, bI as DeleteProjectModelGrantError, lC as DeleteProjectModelGrantErrors, bH as DeleteProjectModelGrantResponse, lD as DeleteProjectModelGrantResponses, bK as DeleteProjectResponse, lE as DeleteProjectResponses, bP as DeleteSecretData, bR as DeleteSecretError, lF as DeleteSecretErrors, bM as DeleteSecretGrantData, bO as DeleteSecretGrantError, lG as DeleteSecretGrantErrors, bN as DeleteSecretGrantResponse, lH as DeleteSecretGrantResponses, bQ as DeleteSecretResponse, lI as DeleteSecretResponses, bV as DeleteSkillData, bX as DeleteSkillError, lJ as DeleteSkillErrors, bS as DeleteSkillGrantData, bU as DeleteSkillGrantError, lK as DeleteSkillGrantErrors, bT as DeleteSkillGrantResponse, lL as DeleteSkillGrantResponses, bW as DeleteSkillResponse, lM as DeleteSkillResponses, bY as DemoteSteeringInputToQueuedData, b_ as DemoteSteeringInputToQueuedError, lN as DemoteSteeringInputToQueuedErrors, bZ as DemoteSteeringInputToQueuedResponse, lO as DemoteSteeringInputToQueuedResponses, lP as DirectSecretAvailability, lQ as DirectSkillAvailability, b$ as DisconnectIntegrationData, c1 as DisconnectIntegrationError, lR as DisconnectIntegrationErrors, c0 as DisconnectIntegrationResponse, lS as DisconnectIntegrationResponses, lT as DiscoveredModelPricing, lU as DiscoveredProviderModel, c2 as DownloadDaemonFileData, c3 as DownloadDaemonFileError, lV as DownloadDaemonFileErrors, lW as DownloadDaemonFileResponse, lX as DownloadDaemonFileResponses, c4 as DownloadMemoryFileData, c5 as DownloadMemoryFileError, lY as DownloadMemoryFileErrors, lZ as DownloadMemoryFileResponse, l_ as DownloadMemoryFileResponses, c6 as EndMachineDaemonRuntimeData, c8 as EndMachineDaemonRuntimeError, l$ as EndMachineDaemonRuntimeErrors, c7 as EndMachineDaemonRuntimeResponse, m0 as EndMachineDaemonRuntimeResponses, m1 as EnvironmentVariableName, m2 as ErrorContentBlock, m3 as EventWebhookAgentInputEvent, m4 as EventWebhookContextCheckpointEvent, m5 as EventWebhookModelOutputEvent, m6 as EventWebhookPayload, m7 as EventWebhookToolCallUpdate, m8 as EventWebhookToolResultEvent, m9 as ExternalActorParams, ma as GenericSecretMaterial, c9 as GetActorData, cb as GetActorError, mb as GetActorErrors, mc as GetActorResponse, md as GetActorResponses, cf as GetAgentConfigData, ch as GetAgentConfigError, me as GetAgentConfigErrors, cc as GetAgentConfigGeneratedSourceData, ce as GetAgentConfigGeneratedSourceError, mf as GetAgentConfigGeneratedSourceErrors, mg as GetAgentConfigGeneratedSourceResponse, mh as GetAgentConfigGeneratedSourceResponses, mi as GetAgentConfigResponse, mj as GetAgentConfigResponses, ci as GetAgentData, ck as GetAgentError, mk as GetAgentErrors, cl as GetAgentProfileData, cn as GetAgentProfileError, ml as GetAgentProfileErrors, mm as GetAgentProfileResponse, mn as GetAgentProfileResponses, co as GetAgentProfileUsageData, cq as GetAgentProfileUsageError, mo as GetAgentProfileUsageErrors, mp as GetAgentProfileUsageResponse, mq as GetAgentProfileUsageResponses, cj as GetAgentResponse, mr as GetAgentResponse2, ms as GetAgentResponses, cr as GetAgentUsageData, cs as GetAgentUsageError, mt as GetAgentUsageErrors, mu as GetAgentUsageResponse, mv as GetAgentUsageResponses, ct as GetArtifactContentData, cu as GetArtifactContentError, mw as GetArtifactContentErrors, mx as GetArtifactContentResponse, my as GetArtifactContentResponses, cv as GetArtifactData, cx as GetArtifactError, mz as GetArtifactErrors, mA as GetArtifactResponse, mB as GetArtifactResponses, cy as GetCronTriggerData, cA as GetCronTriggerError, mC as GetCronTriggerErrors, mD as GetCronTriggerResponse, mE as GetCronTriggerResponses, cB as GetCurrentUserData, cD as GetCurrentUserError, mF as GetCurrentUserErrors, mG as GetCurrentUserResponse, mH as GetCurrentUserResponses, cE as GetDaemonGitCredentialsData, cG as GetDaemonGitCredentialsError, mI as GetDaemonGitCredentialsErrors, cF as GetDaemonGitCredentialsResponse, mJ as GetDaemonGitCredentialsResponses, cH as GetDaemonSkillArchiveData, cI as GetDaemonSkillArchiveError, mK as GetDaemonSkillArchiveErrors, mL as GetDaemonSkillArchiveResponse, mM as GetDaemonSkillArchiveResponses, cJ as GetIntegrationData, cL as GetIntegrationError, mN as GetIntegrationErrors, mO as GetIntegrationResponse, mP as GetIntegrationResponses, cM as GetMachineData, cO as GetMachineError, mQ as GetMachineErrors, cP as GetMachinePoolData, cR as GetMachinePoolError, mR as GetMachinePoolErrors, mS as GetMachinePoolResponse, mT as GetMachinePoolResponses, mU as GetMachineResponse, mV as GetMachineResponses, cS as GetMemoryStoreData, cU as GetMemoryStoreError, mW as GetMemoryStoreErrors, mX as GetMemoryStoreResponse, mY as GetMemoryStoreResponses, cV as GetModelCatalogData, cX as GetModelCatalogError, mZ as GetModelCatalogErrors, m_ as GetModelCatalogResponse, m$ as GetModelCatalogResponses, cY as GetModelProviderConfigData, c_ as GetModelProviderConfigError, n0 as GetModelProviderConfigErrors, n1 as GetModelProviderConfigResponse, n2 as GetModelProviderConfigResponses, c$ as GetOrgApiKeyData, d1 as GetOrgApiKeyError, n3 as GetOrgApiKeyErrors, n4 as GetOrgApiKeyResponse, n5 as GetOrgApiKeyResponses, d2 as GetOrgOverviewData, d4 as GetOrgOverviewError, n6 as GetOrgOverviewErrors, n7 as GetOrgOverviewResponse, n8 as GetOrgOverviewResponses, d5 as GetOrgUsageData, d6 as GetOrgUsageError, n9 as GetOrgUsageErrors, na as GetOrgUsageResponse, nb as GetOrgUsageResponses, d7 as GetOrgUsageTimeseriesData, d9 as GetOrgUsageTimeseriesError, nc as GetOrgUsageTimeseriesErrors, nd as GetOrgUsageTimeseriesResponse, ne as GetOrgUsageTimeseriesResponses, da as GetProjectAvailableSecretData, dc as GetProjectAvailableSecretError, nf as GetProjectAvailableSecretErrors, ng as GetProjectAvailableSecretResponse, nh as GetProjectAvailableSecretResponses, dd as GetProjectMachinePoolGrantData, df as GetProjectMachinePoolGrantError, ni as GetProjectMachinePoolGrantErrors, nj as GetProjectMachinePoolGrantResponse, nk as GetProjectMachinePoolGrantResponses, dg as GetProjectUsageData, dh as GetProjectUsageError, nl as GetProjectUsageErrors, nm as GetProjectUsageResponse, nn as GetProjectUsageResponses, di as GetSecretData, dk as GetSecretError, no as GetSecretErrors, np as GetSecretResponse, nq as GetSecretResponses, dl as GetSkillData, dn as GetSkillError, nr as GetSkillErrors, ns as GetSkillResponse, nt as GetSkillResponses, dp as GetToolCatalogData, dr as GetToolCatalogError, nu as GetToolCatalogErrors, nv as GetToolCatalogResponse, nw as GetToolCatalogResponses, nx as GitHubAppCredentialsSecretMaterial, ny as GitHubInstallations, nz as GitHubSetup, nA as GitHubSetupInstallation, nB as GrantedSecretAvailability, nC as GrantedSkillAvailability, nD as IdempotencyKey, nE as InlineMediaContentBlock, nF as InspectGitHubInstallationsRequest, ds as InspectIntegrationGitHubInstallationsData, du as InspectIntegrationGitHubInstallationsError, nG as InspectIntegrationGitHubInstallationsErrors, dt as InspectIntegrationGitHubInstallationsResponse, nH as InspectIntegrationGitHubInstallationsResponses, nI as InstallationId, cK as Integration, nJ as IntegrationCapabilities, nK as IntegrationCapabilityDefinition, nL as IntegrationConversation, nM as IntegrationCronTriggerTarget, nN as IntegrationDefinition, nO as IntegrationId, nP as IntegrationName, nQ as IntegrationOAuthFlowId, nR as IntegrationOAuthSetup, nS as IntegrationProviderDisplayName, nT as IntegrationRuntimeFailure, nU as IntegrationState, nV as IntegrationSubscription, nW as IntegrationSubscriptionAttachment, nX as IntegrationSubscriptionDefinition, nY as IntegrationSubscriptionId, nZ as IntegrationTarget, n_ as IntegrationTargetId, n$ as InteractionAnswer, o0 as InteractionForm, o1 as InteractionFormContextItem, o2 as InteractionFormOption, o3 as InteractionFormQuestion, o4 as InteractionPresentationReceipt, o5 as InteractionResolution, o6 as JsonBlob, o7 as LaunchAgentResponse, dv as ListActorsData, dx as ListActorsError, o8 as ListActorsErrors, dw as ListActorsResponse, o9 as ListActorsResponse2, oa as ListActorsResponses, dR as ListAgentEventsResponse, f0 as ListAgentInputsResponse, dy as ListAgentInteractionsData, dA as ListAgentInteractionsError, ob as ListAgentInteractionsErrors, dz as ListAgentInteractionsResponse, oc as ListAgentInteractionsResponse2, od as ListAgentInteractionsResponses, dB as ListAgentProfilesData, dD as ListAgentProfilesError, oe as ListAgentProfilesErrors, dC as ListAgentProfilesResponse, of as ListAgentProfilesResponse2, og as ListAgentProfilesResponses, fl as ListAgentTurnsResponse, dE as ListAgentsData, dG as ListAgentsError, oh as ListAgentsErrors, dF as ListAgentsResponse, oi as ListAgentsResponse2, oj as ListAgentsResponses, dH as ListByoMachineDaemonTokensData, dJ as ListByoMachineDaemonTokensError, ok as ListByoMachineDaemonTokensErrors, ol as ListByoMachineDaemonTokensResponse, om as ListByoMachineDaemonTokensResponses, dK as ListConfiguredModelsData, dM as ListConfiguredModelsError, on as ListConfiguredModelsErrors, oo as ListConfiguredModelsResponse, op as ListConfiguredModelsResponses, dN as ListCronTriggersData, dP as ListCronTriggersError, oq as ListCronTriggersErrors, dO as ListCronTriggersResponse, or as ListCronTriggersResponse2, os as ListCronTriggersResponses, dQ as ListEventsData, dS as ListEventsError, ot as ListEventsErrors, ou as ListEventsResponse, ov as ListEventsResponses, dT as ListIntegrationDefinitionsData, dV as ListIntegrationDefinitionsError, ow as ListIntegrationDefinitionsErrors, dU as ListIntegrationDefinitionsResponse, ox as ListIntegrationDefinitionsResponse2, oy as ListIntegrationDefinitionsResponses, dW as ListIntegrationSubscriptionsData, dY as ListIntegrationSubscriptionsError, oz as ListIntegrationSubscriptionsErrors, dX as ListIntegrationSubscriptionsResponse, oA as ListIntegrationSubscriptionsResponse2, oB as ListIntegrationSubscriptionsResponses, dZ as ListIntegrationsData, d$ as ListIntegrationsError, oC as ListIntegrationsErrors, d_ as ListIntegrationsResponse, oD as ListIntegrationsResponse2, oE as ListIntegrationsResponses, dI as ListMachineDaemonTokensResponse, e0 as ListMachinePoolsData, e2 as ListMachinePoolsError, oF as ListMachinePoolsErrors, e1 as ListMachinePoolsResponse, oG as ListMachinePoolsResponse2, oH as ListMachinePoolsResponses, e3 as ListMcpServerToolsData, e5 as ListMcpServerToolsError, oI as ListMcpServerToolsErrors, e4 as ListMcpServerToolsResponse, oJ as ListMcpServerToolsResponses, e6 as ListMcpServersData, e8 as ListMcpServersError, oK as ListMcpServersErrors, e7 as ListMcpServersResponse, oL as ListMcpServersResponse2, oM as ListMcpServersResponses, e9 as ListMemberProjectAccessData, eb as ListMemberProjectAccessError, oN as ListMemberProjectAccessErrors, oO as ListMemberProjectAccessResponse, oP as ListMemberProjectAccessResponses, ec as ListMemoryFilesData, ee as ListMemoryFilesError, oQ as ListMemoryFilesErrors, oR as ListMemoryFilesResponse, oS as ListMemoryFilesResponses, ef as ListMemoryStoresData, eh as ListMemoryStoresError, oT as ListMemoryStoresErrors, oU as ListMemoryStoresResponse, oV as ListMemoryStoresResponses, ei as ListModelProviderConfigsData, ek as ListModelProviderConfigsError, oW as ListModelProviderConfigsErrors, oX as ListModelProviderConfigsResponse, oY as ListModelProviderConfigsResponses, el as ListOrgAgentProfilesData, em as ListOrgAgentProfilesError, oZ as ListOrgAgentProfilesErrors, o_ as ListOrgAgentProfilesResponse, o$ as ListOrgAgentProfilesResponses, en as ListOrgAgentsData, eo as ListOrgAgentsError, p0 as ListOrgAgentsErrors, p1 as ListOrgAgentsResponse, p2 as ListOrgAgentsResponses, ep as ListOrgApiKeyProjectAccessData, eq as ListOrgApiKeyProjectAccessError, p3 as ListOrgApiKeyProjectAccessErrors, p4 as ListOrgApiKeyProjectAccessResponse, p5 as ListOrgApiKeyProjectAccessResponses, er as ListOrgApiKeysData, et as ListOrgApiKeysError, p6 as ListOrgApiKeysErrors, es as ListOrgApiKeysResponse, p7 as ListOrgApiKeysResponse2, p8 as ListOrgApiKeysResponses, eu as ListOrgIntegrationsData, ev as ListOrgIntegrationsError, p9 as ListOrgIntegrationsErrors, pa as ListOrgIntegrationsResponse, pb as ListOrgIntegrationsResponses, ew as ListOrgInvitationsData, ey as ListOrgInvitationsError, pc as ListOrgInvitationsErrors, ex as ListOrgInvitationsResponse, pd as ListOrgInvitationsResponse2, pe as ListOrgInvitationsResponses, ez as ListOrgMembersData, eB as ListOrgMembersError, pf as ListOrgMembersErrors, eA as ListOrgMembersResponse, pg as ListOrgMembersResponse2, ph as ListOrgMembersResponses, eC as ListOrgMemoryStoresData, eD as ListOrgMemoryStoresError, pi as ListOrgMemoryStoresErrors, pj as ListOrgMemoryStoresResponse, pk as ListOrgMemoryStoresResponses, eE as ListOrganizationsData, eG as ListOrganizationsError, pl as ListOrganizationsErrors, eF as ListOrganizationsResponse, pm as ListOrganizationsResponse2, pn as ListOrganizationsResponses, eH as ListPendingInvitationsData, eI as ListPendingInvitationsError, po as ListPendingInvitationsErrors, pp as ListPendingInvitationsResponse, pq as ListPendingInvitationsResponses, eJ as ListPersonalAccessTokensData, eL as ListPersonalAccessTokensError, pr as ListPersonalAccessTokensErrors, eK as ListPersonalAccessTokensResponse, ps as ListPersonalAccessTokensResponse2, pt as ListPersonalAccessTokensResponses, eM as ListProjectAvailableSecretsData, eO as ListProjectAvailableSecretsError, pu as ListProjectAvailableSecretsErrors, pv as ListProjectAvailableSecretsResponse, pw as ListProjectAvailableSecretsResponses, eP as ListProjectAvailableSkillsData, eR as ListProjectAvailableSkillsError, px as ListProjectAvailableSkillsErrors, py as ListProjectAvailableSkillsResponse, pz as ListProjectAvailableSkillsResponses, eS as ListProjectMachineGrantsData, eU as ListProjectMachineGrantsError, pA as ListProjectMachineGrantsErrors, eT as ListProjectMachineGrantsResponse, pB as ListProjectMachineGrantsResponse2, pC as ListProjectMachineGrantsResponses, eV as ListProjectMachinePoolGrantsData, eX as ListProjectMachinePoolGrantsError, pD as ListProjectMachinePoolGrantsErrors, eW as ListProjectMachinePoolGrantsResponse, pE as ListProjectMachinePoolGrantsResponse2, pF as ListProjectMachinePoolGrantsResponses, ea as ListProjectMembershipGrantsResponse, eY as ListProjectModelGrantsData, e_ as ListProjectModelGrantsError, pG as ListProjectModelGrantsErrors, eZ as ListProjectModelGrantsResponse, pH as ListProjectModelGrantsResponse2, pI as ListProjectModelGrantsResponses, eN as ListProjectSecretAccessesResponse, eQ as ListProjectSkillAccessesResponse, ft as ListProjectsResponse, e$ as ListQueuedBacklogInputsData, f1 as ListQueuedBacklogInputsError, pJ as ListQueuedBacklogInputsErrors, pK as ListQueuedBacklogInputsResponse, pL as ListQueuedBacklogInputsResponses, f2 as ListSecretGrantsData, f4 as ListSecretGrantsError, pM as ListSecretGrantsErrors, f3 as ListSecretGrantsResponse, pN as ListSecretGrantsResponse2, pO as ListSecretGrantsResponses, f5 as ListSecretsData, f7 as ListSecretsError, pP as ListSecretsErrors, f6 as ListSecretsResponse, pQ as ListSecretsResponse2, pR as ListSecretsResponses, f8 as ListSkillGrantsData, fa as ListSkillGrantsError, pS as ListSkillGrantsErrors, f9 as ListSkillGrantsResponse, pT as ListSkillGrantsResponse2, pU as ListSkillGrantsResponses, fb as ListSkillsData, fd as ListSkillsError, pV as ListSkillsErrors, fc as ListSkillsResponse, pW as ListSkillsResponse2, pX as ListSkillsResponses, fe as ListToolCallsData, fg as ListToolCallsError, pY as ListToolCallsErrors, ff as ListToolCallsResponse, pZ as ListToolCallsResponse2, p_ as ListToolCallsResponses, fh as ListTurnEventsData, fj as ListTurnEventsError, p$ as ListTurnEventsErrors, fi as ListTurnEventsResponse, q0 as ListTurnEventsResponse2, q1 as ListTurnEventsResponses, fk as ListTurnsData, fm as ListTurnsError, q2 as ListTurnsErrors, q3 as ListTurnsResponse, q4 as ListTurnsResponses, fn as ListVisibleMachinesData, fp as ListVisibleMachinesError, q5 as ListVisibleMachinesErrors, fo as ListVisibleMachinesResponse, q6 as ListVisibleMachinesResponse2, q7 as ListVisibleMachinesResponses, fq as ListVisibleProjectMachinesData, fr as ListVisibleProjectMachinesError, q8 as ListVisibleProjectMachinesErrors, q9 as ListVisibleProjectMachinesResponse, qa as ListVisibleProjectMachinesResponses, fs as ListVisibleProjectsData, fu as ListVisibleProjectsError, qb as ListVisibleProjectsErrors, qc as ListVisibleProjectsResponse, qd as ListVisibleProjectsResponses, cN as Machine, qe as MachineAccess, qf as MachineAccessSource, qg as MachineAccessSourceKind, qh as MachineConnectionState, qi as MachineDaemonToken, qj as MachineDaemonTokenId, qk as MachineFailureReport, ql as MachineId, qm as MachineLifecycleState, qn as MachineMetadata, cQ as MachinePool, qo as MachinePoolConnectionCheckError, qp as MachinePoolId, qq as MachinePoolSummary, qr as MachinePoolUsage, qs as MachineSourceKind, qt as MachineSourceKindFilter, qu as MachineSummary, qv as MachineSummaryFields, qw as ManagementKind, qx as McpRegistryHeader, qy as McpRegistryIcon, qz as McpRegistryRemote, qA as McpRegistryServer, qB as McpServerAuth, qC as McpServerAuthBearer, qD as McpServerAuthHint, qE as McpServerAuthNone, qF as McpServerAuthOAuth, qG as McpServerAuthRequiredError, qH as McpServerAuthSigV4, qI as McpServerInfo, qJ as McpServerTool, qK as McpServerToolAnnotations, qL as McpServerToolsRequest, qM as McpServerToolsResponse, qN as McpoAuthFlowId, qO as McpoAuthStartMetadata, qP as McpoAuthStartRequest, qQ as McpoAuthStartResponse, qR as MediaRefContentBlock, qS as MemoryDirectory, qT as MemoryFile, ed as MemoryFileList, qU as MemoryRegularFile, cT as MemoryStore, qV as MemoryStoreAccess, qW as MemoryStoreId, eg as MemoryStoreList, qX as MemoryStoreName, qY as Metadata, qZ as ModelApiFormat, q_ as ModelApiVariantOptions, q$ as ModelCacheRetention, r0 as ModelCallContextId, cW as ModelCatalog, r1 as ModelOutputBlockStartDelta, r2 as ModelOutputBlockStopDelta, r3 as ModelOutputContentBlock, r4 as ModelOutputDelta, r5 as ModelOutputErrorDelta, r6 as ModelOutputEvent, r7 as ModelOutputMessageStopDelta, r8 as ModelOutputStopReason, r9 as ModelOutputStreamBlock, ra as ModelOutputStreamDelta, rb as ModelOutputTextDelta, rc as ModelOutputTextStreamBlock, rd as ModelOutputThinkingDelta, re as ModelOutputThinkingStreamBlock, rf as ModelOutputToolArgumentsDelta, rg as ModelOutputToolUseStreamBlock, rh as ModelProviderApiVariant, ri as ModelProviderApiVariantResponse, rj as ModelProviderAuthKind, rk as ModelProviderAuthKindResponse, cZ as ModelProviderConfig, rl as ModelProviderConfigId, ej as ModelProviderConfigList, rm as ModelStopReason, rn as ModelToolCallContentBlock, ro as ModelUsage, rp as ModelUsageTotals, fv as MoveQueuedBacklogInputData, fx as MoveQueuedBacklogInputError, rq as MoveQueuedBacklogInputErrors, rr as MoveQueuedBacklogInputRequest, fw as MoveQueuedBacklogInputResponse, rs as MoveQueuedBacklogInputResponses, rt as OAuthRefreshSecretMaterial, ru as OAuthTokenSetSecretMaterial, rv as OkResponse, d0 as OrgApiKey, rw as OrgApiKeyId, rx as OrgApiKeyRole, ry as OrgInvitation, rz as OrgInvitationId, rA as OrgMember, rB as OrgOverviewAgentProfileReference, rC as OrgOverviewProjectActivity, d3 as OrgOverviewResponse, rD as OrgSecretOwner, rE as OrgSecretOwnerInput, rF as OrgSkillOwner, rG as OrgSkillOwnerInput, rH as Organization, rI as OrganizationId, rJ as OrganizationMembership, rK as PageCursor, rL as PageLimit, rM as PersonalAccessTokenId, rN as ProcessActionId, rO as ProcessActionReconciliationClaim, rP as ProcessActionReconciliationDirective, rQ as ProcessId, rR as ProcessReconciliationClaim, rS as ProcessReconciliationDirective, rT as Project, rU as ProjectAccess, rV as ProjectFields, rW as ProjectId, rX as ProjectMachineGrant, rY as ProjectMachineGrantId, rZ as ProjectMachineGrantListItem, r_ as ProjectMachineGrantSourceKind, de as ProjectMachinePoolGrant, r$ as ProjectMachinePoolGrantId, s0 as ProjectMachinePoolGrantListItem, s1 as ProjectMembershipGrant, s2 as ProjectModelGrant, s3 as ProjectModelGrantEffectiveReasoning, s4 as ProjectModelGrantEnvelope, s5 as ProjectModelGrantId, s6 as ProjectModelGrantListItem, db as ProjectSecretAccess, s7 as ProjectSecretOwner, s8 as ProjectSecretOwnerInput, s9 as ProjectSkillAccess, sa as ProjectSkillOwner, sb as ProjectSkillOwnerInput, fy as PromoteQueuedInputToSteeringData, fA as PromoteQueuedInputToSteeringError, sc as PromoteQueuedInputToSteeringErrors, sd as PromoteQueuedInputToSteeringRequest, fz as PromoteQueuedInputToSteeringResponse, se as PromoteQueuedInputToSteeringResponses, fB as PutActorData, fD as PutActorError, sf as PutActorErrors, fC as PutActorResponse, sg as PutActorResponses, sh as ReasoningContentBlock, fE as RecordMachineFailureData, fG as RecordMachineFailureError, si as RecordMachineFailureErrors, fF as RecordMachineFailureResponse, sj as RecordMachineFailureResponses, sk as RegisterDaemonRuntimeRequest, sl as RegisterDaemonRuntimeResponse, fH as RegisterMachineDaemonRuntimeData, fJ as RegisterMachineDaemonRuntimeError, sm as RegisterMachineDaemonRuntimeErrors, fI as RegisterMachineDaemonRuntimeResponse, sn as RegisterMachineDaemonRuntimeResponses, fK as RemoveMemberProjectAccessData, fM as RemoveMemberProjectAccessError, so as RemoveMemberProjectAccessErrors, fL as RemoveMemberProjectAccessResponse, sp as RemoveMemberProjectAccessResponses, fN as RemoveOrgApiKeyProjectRoleData, fP as RemoveOrgApiKeyProjectRoleError, sq as RemoveOrgApiKeyProjectRoleErrors, fO as RemoveOrgApiKeyProjectRoleResponse, sr as RemoveOrgApiKeyProjectRoleResponses, fQ as RemoveOrgMemberData, fS as RemoveOrgMemberError, ss as RemoveOrgMemberErrors, fR as RemoveOrgMemberResponse, st as RemoveOrgMemberResponses, fT as RenameAgentProfileData, fV as RenameAgentProfileError, su as RenameAgentProfileErrors, sv as RenameAgentProfileRequest, fU as RenameAgentProfileResponse, sw as RenameAgentProfileResponses, fW as ResolveAgentConfigToolsData, fY as ResolveAgentConfigToolsError, sx as ResolveAgentConfigToolsErrors, sy as ResolveAgentConfigToolsRequest, fX as ResolveAgentConfigToolsResponse, sz as ResolveAgentConfigToolsResponses, fZ as ResolveAgentInteractionData, f$ as ResolveAgentInteractionError, sA as ResolveAgentInteractionErrors, sB as ResolveAgentInteractionRequest, f_ as ResolveAgentInteractionResponse, sC as ResolveAgentInteractionResponses, sD as ResolvedAgentConfigTool, sE as ResolvedAgentConfigTools, sF as ResourceListSort, sG as ResourceName, sH as ResourceNameFilter, sI as ResourceNameReference, g0 as RevokeMachineDaemonTokenData, g2 as RevokeMachineDaemonTokenError, sJ as RevokeMachineDaemonTokenErrors, g1 as RevokeMachineDaemonTokenResponse, sK as RevokeMachineDaemonTokenResponses, g3 as RevokeOrgApiKeyData, g5 as RevokeOrgApiKeyError, sL as RevokeOrgApiKeyErrors, g4 as RevokeOrgApiKeyResponse, sM as RevokeOrgApiKeyResponses, g6 as RevokePersonalAccessTokenData, g8 as RevokePersonalAccessTokenError, sN as RevokePersonalAccessTokenErrors, g7 as RevokePersonalAccessTokenResponse, sO as RevokePersonalAccessTokenResponses, dj as Secret, sP as SecretAvailability, sQ as SecretAvailabilitySourceFilter, sR as SecretGrant, sS as SecretGrantCreateRequest, sT as SecretGrantId, sU as SecretGrantListItem, sV as SecretId, sW as SecretKind, sX as SecretKindFilter, sY as SecretMaterial, sZ as SecretMcpoAuthFlowIdFilter, s_ as SecretMetadataFilter, s$ as SecretOwner, t0 as SecretOwnerInput, t1 as SecretOwnerKindFilter, t2 as SecretOwnerProjectIdFilter, t3 as SecretVersionRequest, t4 as ServerErrorCode, g9 as SetMemberProjectAccessData, gb as SetMemberProjectAccessError, t5 as SetMemberProjectAccessErrors, ga as SetMemberProjectAccessResponse, t6 as SetMemberProjectAccessResponses, gc as SetOrgApiKeyProjectRoleData, ge as SetOrgApiKeyProjectRoleError, t7 as SetOrgApiKeyProjectRoleErrors, gd as SetOrgApiKeyProjectRoleResponse, t8 as SetOrgApiKeyProjectRoleResponses, t9 as SetProjectMembershipRequest, dm as Skill, ta as SkillAvailability, tb as SkillAvailabilitySourceFilter, tc as SkillFile, td as SkillGrant, te as SkillGrantCreateRequest, tf as SkillGrantId, tg as SkillGrantListItem, th as SkillId, ti as SkillName, tj as SkillOwner, tk as SkillOwnerInput, tl as SkillOwnerKindFilter, tm as SkillOwnerProjectIdFilter, tn as SkillRevisionId, to as SlackSetup, tp as SlackSetupIcon, gf as SleepMachineDaemonRuntimeData, gh as SleepMachineDaemonRuntimeError, tq as SleepMachineDaemonRuntimeErrors, gg as SleepMachineDaemonRuntimeResponse, tr as SleepMachineDaemonRuntimeResponses, gi as SocketMachineDaemonRuntimeData, gj as SocketMachineDaemonRuntimeError, ts as SocketMachineDaemonRuntimeErrors, gk as StartSecretMcpoAuthData, gm as StartSecretMcpoAuthError, tt as StartSecretMcpoAuthErrors, gl as StartSecretMcpoAuthResponse, tu as StartSecretMcpoAuthResponses, tv as StreamEventsError, tw as StreamEventsErrors, tx as StreamEventsResponse, ty as StreamEventsResponses, tz as StructuredDataContentBlock, gn as SubmitToolCallResultData, gp as SubmitToolCallResultError, tA as SubmitToolCallResultErrors, tB as SubmitToolCallResultRequest, tC as SubmitToolCallResultResponse, go as SubmitToolCallResultResponse2, tD as SubmitToolCallResultResponses, tE as SubmitToolResultContentBlock, tF as TextContentBlock, tG as Timestamp, tH as ToolCall, tI as ToolCallId, tJ as ToolCallOutcome, tK as ToolCallState, tL as ToolCallType, tM as ToolCallUpdate, dq as ToolCatalog, tN as ToolCatalogEntry, tO as ToolInput, tP as ToolPermissionMode, tQ as ToolPermissionProfile, tR as ToolPermissionSelection, tS as ToolResult, tT as ToolResultContentBlock, tU as ToolResultEvent, gq as UpdateAgentConfigData, gs as UpdateAgentConfigError, tV as UpdateAgentConfigErrors, tW as UpdateAgentConfigRequest, tX as UpdateAgentConfigResponse, gr as UpdateAgentConfigResponse2, tY as UpdateAgentConfigResponses, gt as UpdateAgentProfileData, gv as UpdateAgentProfileError, tZ as UpdateAgentProfileErrors, t_ as UpdateAgentProfileRequest, gu as UpdateAgentProfileResponse, t$ as UpdateAgentProfileResponses, gw as UpdateConfiguredModelData, gy as UpdateConfiguredModelError, u0 as UpdateConfiguredModelErrors, u1 as UpdateConfiguredModelRequest, gx as UpdateConfiguredModelResponse, u2 as UpdateConfiguredModelResponses, gz as UpdateCronTriggerData, gB as UpdateCronTriggerError, u3 as UpdateCronTriggerErrors, u4 as UpdateCronTriggerRequest, gA as UpdateCronTriggerResponse, u5 as UpdateCronTriggerResponses, gC as UpdateIntegrationData, gE as UpdateIntegrationError, u6 as UpdateIntegrationErrors, gD as UpdateIntegrationResponse, u7 as UpdateIntegrationResponses, gF as UpdateMachineData, gH as UpdateMachineError, u8 as UpdateMachineErrors, gI as UpdateMachinePoolData, gK as UpdateMachinePoolError, u9 as UpdateMachinePoolErrors, ua as UpdateMachinePoolRequest, gJ as UpdateMachinePoolResponse, ub as UpdateMachinePoolResponses, uc as UpdateMachineRequest, gG as UpdateMachineResponse, ud as UpdateMachineResponses, ue as UpdateMemoryStore, gL as UpdateMemoryStoreData, gN as UpdateMemoryStoreError, uf as UpdateMemoryStoreErrors, gM as UpdateMemoryStoreResponse, ug as UpdateMemoryStoreResponses, gO as UpdateModelProviderConfigData, gQ as UpdateModelProviderConfigError, uh as UpdateModelProviderConfigErrors, ui as UpdateModelProviderConfigRequest, gP as UpdateModelProviderConfigResponse, uj as UpdateModelProviderConfigResponses, gR as UpdateOrgApiKeyData, gT as UpdateOrgApiKeyError, uk as UpdateOrgApiKeyErrors, ul as UpdateOrgApiKeyRequest, gS as UpdateOrgApiKeyResponse, um as UpdateOrgApiKeyResponses, gU as UpdateOrgMemberData, gW as UpdateOrgMemberError, un as UpdateOrgMemberErrors, uo as UpdateOrgMemberRequest, gV as UpdateOrgMemberResponse, up as UpdateOrgMemberResponses, gX as UpdateProjectMachinePoolGrantData, gZ as UpdateProjectMachinePoolGrantError, uq as UpdateProjectMachinePoolGrantErrors, ur as UpdateProjectMachinePoolGrantRequest, gY as UpdateProjectMachinePoolGrantResponse, us as UpdateProjectMachinePoolGrantResponses, g_ as UpdateProjectModelGrantData, h0 as UpdateProjectModelGrantError, ut as UpdateProjectModelGrantErrors, uu as UpdateProjectModelGrantRequest, g$ as UpdateProjectModelGrantResponse, uv as UpdateProjectModelGrantResponses, h1 as UpdateSecretData, h3 as UpdateSecretError, uw as UpdateSecretErrors, ux as UpdateSecretRequest, h2 as UpdateSecretResponse, uy as UpdateSecretResponses, h4 as UpdateSkillData, h6 as UpdateSkillError, uz as UpdateSkillErrors, uA as UpdateSkillRequest, h5 as UpdateSkillResponse, uB as UpdateSkillResponses, h7 as UploadDaemonFileData, h9 as UploadDaemonFileError, uC as UploadDaemonFileErrors, h8 as UploadDaemonFileResponse, uD as UploadDaemonFileResponses, uE as UploadFileResponse, uF as UsageCostTotals, uG as UsageExcludeProjectIds, uH as UsageIncludeProjectIds, uI as UsageModel, cp as UsageReport, uJ as UsageSince, d8 as UsageTimeseries, uK as UsageTimeseriesGroupBy, uL as UsageTimeseriesInterval, uM as UsageTimeseriesMetric, uN as UsageTimeseriesSeries, uO as UsageTokenTotals, uP as UsageTotals, uQ as UsageUntil, uR as UserId, uS as UserSecretOwner, uT as UserSecretOwnerInput, uU as UserSkillOwner, uV as UserSkillOwnerInput, uW as VisibleMachine, uX as VisibleProject, ha as WriteMemoryFileData, hc as WriteMemoryFileError, uY as WriteMemoryFileErrors, hb as WriteMemoryFileResponse, uZ as WriteMemoryFileResponses, u_ as sdk } from './sdk.gen-CsNXiNUE.js';
3
+ import { hg as Config, hh as Client, hi as ErrorCode, hj as AgentConfigErrorIssue, hk as AgentEventStreamData, hl as Error$1, hm as StreamEventsData, hn as PersonalAccessToken, ho as IntegrationSettings, hp as IntegrationKind, hq as IntegrationProviderConfig, hr as CreateIntegrationRequest, hs as UpdateIntegrationRequest, ht as GitHubIntegrationLauncher } from './sdk.gen-CLCdwMLf.js';
4
+ export { A as AcceptInvitationData, b as AcceptInvitationError, hu as AcceptInvitationErrors, a as AcceptInvitationResponse, hv as AcceptInvitationResponses, ca as Actor, hw as ActorId, hx as ActorProvider, hy as Agent, hz as AgentActivity, cg as AgentConfig, hA as AgentConfigDefinition, hB as AgentConfigDefinitionEventWebhook, hC as AgentConfigDefinitionGitCredentials, hD as AgentConfigDefinitionInteractionHandler, hE as AgentConfigDefinitionInteractionHandlers, hF as AgentConfigDefinitionMachineSource, hG as AgentConfigDefinitionMachineSources, hH as AgentConfigDefinitionMcpAuth, hI as AgentConfigDefinitionMcpServer, hJ as AgentConfigDefinitionMcpServers, hK as AgentConfigDefinitionMcpTool, hL as AgentConfigDefinitionMemoryStore, hM as AgentConfigDefinitionMemoryStores, hN as AgentConfigDefinitionModel, hO as AgentConfigDefinitionSkills, hP as AgentConfigDefinitionSubagent, hQ as AgentConfigDefinitionSubagentInstruction, hR as AgentConfigDefinitionSubagentModel, hS as AgentConfigDefinitionSubagents, hT as AgentConfigDefinitionTool, hU as AgentConfigDefinitionToolInputSchema, hV as AgentConfigDefinitionToolPermission, hW as AgentConfigDefinitionTools, cd as AgentConfigGeneratedSource, hX as AgentConfigId, hY as AgentConfigModel, hZ as AgentConfigSourceInput, h_ as AgentConfigSummary, h$ as AgentConfigToolsDefinition, i0 as AgentControlType, i1 as AgentCount, i2 as AgentCronTriggerTarget, i3 as AgentEvent, i4 as AgentEventId, i5 as AgentId, i6 as AgentIncludeUsage, i7 as AgentInput, i8 as AgentInputContentBlock, i9 as AgentInputDeliveryMode, ia as AgentInputEnvelope, ib as AgentInputEvent, ic as AgentInputId, id as AgentInputKind, ie as AgentInteraction, ig as AgentInteractionDestination, ih as AgentInteractionId, ii as AgentInteractionKind, ij as AgentInteractionState, ik as AgentInteractionUpdate, il as AgentLaunchInitialInput, im as AgentMachineBinding, io as AgentMachineBindingId, ip as AgentMachineBindingKind, iq as AgentMachineBindingState, ir as AgentMcpConnection, is as AgentModel, it as AgentName, cm as AgentProfile, iu as AgentProfileCronTriggerTarget, iv as AgentProfileId, iw as AgentProfileIncludeStats, ix as AgentProfileStats, iy as AgentProfileStatsSince, iz as AgentProfileSummary, iA as AgentSequence, iB as AgentSequenceCursor, iC as AgentTurn, iD as AgentTurnId, c as ArchiveAgentData, e as ArchiveAgentError, iE as ArchiveAgentErrors, d as ArchiveAgentResponse, iF as ArchiveAgentResponses, cw as Artifact, iG as ArtifactId, iH as AwsCredentialsSecretMaterial, B as BootstrapDaemonData, g as BootstrapDaemonError, iI as BootstrapDaemonErrors, iJ as BootstrapDaemonResponse, f as BootstrapDaemonResponse2, iK as BootstrapDaemonResponses, C as CancelAgentData, i as CancelAgentError, iL as CancelAgentErrors, iM as CancelAgentRequest, iN as CancelAgentResponse, h as CancelAgentResponse2, iO as CancelAgentResponses, j as CancelQueuedBacklogInputData, l as CancelQueuedBacklogInputError, iP as CancelQueuedBacklogInputErrors, k as CancelQueuedBacklogInputResponse, iQ as CancelQueuedBacklogInputResponses, iR as ChatIntegrationLauncher, iS as ChatIntegrationSettings, m as CheckMachinePoolConnectionData, o as CheckMachinePoolConnectionError, iT as CheckMachinePoolConnectionErrors, iU as CheckMachinePoolConnectionRequest, n as CheckMachinePoolConnectionResponse, iV as CheckMachinePoolConnectionResponses, iW as ClientErrorCode, iX as ClientOptions, iY as CompiledAgentConfig, iZ as CompiledAgentModel, i_ as CompiledEventWebhook, i$ as CompiledGitCredentials, j0 as CompiledIntegrationCapability, j1 as CompiledMachineSource, j2 as CompiledMcpAuth, j3 as CompiledMcpAuthBearer, j4 as CompiledMcpAuthOAuth, j5 as CompiledMcpAuthSigV4, j6 as CompiledMcpServer, j7 as CompiledMcpTool, j8 as CompiledMemoryStore, j9 as CompiledModelReasoning, ja as CompiledProfileSubagent, jb as CompiledSelfSubagent, jc as CompiledSkill, jd as CompiledSubagent, je as CompiledSubagentModel, jf as CompiledTool, p as ConfigureIntegrationData, r as ConfigureIntegrationError, jg as ConfigureIntegrationErrors, jh as ConfigureIntegrationRequest, q as ConfigureIntegrationResponse, ji as ConfigureIntegrationResponses, jj as ConfiguredModel, jk as ConfiguredModelId, dL as ConfiguredModelList, jl as ConfiguredModelRevisionId, jm as ConfiguredModelSummary, s as ConnectByoMachineData, u as ConnectByoMachineError, jn as ConnectByoMachineErrors, jo as ConnectByoMachineRequest, jp as ConnectByoMachineResponse, t as ConnectByoMachineResponse2, jq as ConnectByoMachineResponses, jr as ContentBlockMetadata, js as ContextCheckpointEvent, jt as ContextCheckpointId, v as CreateAgentConfigData, x as CreateAgentConfigError, ju as CreateAgentConfigErrors, jv as CreateAgentConfigRequest, w as CreateAgentConfigResponse, jw as CreateAgentConfigResponses, E as CreateAgentData, G as CreateAgentError, jx as CreateAgentErrors, jy as CreateAgentInputContentBlock, y as CreateAgentInputData, jz as CreateAgentInputDeliveryMode, D as CreateAgentInputError, jA as CreateAgentInputErrors, jB as CreateAgentInputRequest, z as CreateAgentInputResponse, jC as CreateAgentInputResponses, H as CreateAgentProfileData, J as CreateAgentProfileError, jD as CreateAgentProfileErrors, jE as CreateAgentProfileRequest, I as CreateAgentProfileResponse, jF as CreateAgentProfileResponses, jG as CreateAgentRequest, F as CreateAgentResponse, jH as CreateAgentResponses, K as CreateByoMachineDaemonTokenData, M as CreateByoMachineDaemonTokenError, jI as CreateByoMachineDaemonTokenErrors, L as CreateByoMachineDaemonTokenResponse, jJ as CreateByoMachineDaemonTokenResponses, N as CreateConfiguredModelData, Q as CreateConfiguredModelError, jK as CreateConfiguredModelErrors, jL as CreateConfiguredModelRequest, P as CreateConfiguredModelResponse, jM as CreateConfiguredModelResponses, R as CreateCronTriggerData, T as CreateCronTriggerError, jN as CreateCronTriggerErrors, jO as CreateCronTriggerRequest, S as CreateCronTriggerResponse, jP as CreateCronTriggerResponses, jQ as CreateGitHubSetupRequest, X as CreateIntegrationData, Z as CreateIntegrationError, jR as CreateIntegrationErrors, U as CreateIntegrationGitHubSetupData, W as CreateIntegrationGitHubSetupError, jS as CreateIntegrationGitHubSetupErrors, V as CreateIntegrationGitHubSetupResponse, jT as CreateIntegrationGitHubSetupResponses, _ as CreateIntegrationOAuthSetupData, a0 as CreateIntegrationOAuthSetupError, jU as CreateIntegrationOAuthSetupErrors, jV as CreateIntegrationOAuthSetupRequest, $ as CreateIntegrationOAuthSetupResponse, jW as CreateIntegrationOAuthSetupResponses, Y as CreateIntegrationResponse, jX as CreateIntegrationResponses, a1 as CreateIntegrationSlackSetupData, a3 as CreateIntegrationSlackSetupError, jY as CreateIntegrationSlackSetupErrors, a2 as CreateIntegrationSlackSetupResponse, jZ as CreateIntegrationSlackSetupResponses, a4 as CreateIntegrationSubscriptionData, a6 as CreateIntegrationSubscriptionError, j_ as CreateIntegrationSubscriptionErrors, j$ as CreateIntegrationSubscriptionRequest, a5 as CreateIntegrationSubscriptionResponse, k0 as CreateIntegrationSubscriptionResponses, k1 as CreateMachineDaemonTokenRequest, k2 as CreateMachineDaemonTokenResponse, a7 as CreateMachineData, a9 as CreateMachineError, k3 as CreateMachineErrors, aa as CreateMachinePoolData, ac as CreateMachinePoolError, k4 as CreateMachinePoolErrors, k5 as CreateMachinePoolRequest, k6 as CreateMachinePoolRequestBase, ab as CreateMachinePoolResponse, k7 as CreateMachinePoolResponses, k8 as CreateMachineRequest, a8 as CreateMachineResponse, k9 as CreateMachineResponses, ka as CreateMemoryStore, ad as CreateMemoryStoreData, af as CreateMemoryStoreError, kb as CreateMemoryStoreErrors, ae as CreateMemoryStoreResponse, kc as CreateMemoryStoreResponses, ag as CreateModelProviderConfigData, ai as CreateModelProviderConfigError, kd as CreateModelProviderConfigErrors, ke as CreateModelProviderConfigRequest, kf as CreateModelProviderConfigResponse, ah as CreateModelProviderConfigResponse2, kg as CreateModelProviderConfigResponses, aj as CreateOrgApiKeyData, al as CreateOrgApiKeyError, kh as CreateOrgApiKeyErrors, ki as CreateOrgApiKeyRequest, kj as CreateOrgApiKeyResponse, ak as CreateOrgApiKeyResponse2, kk as CreateOrgApiKeyResponses, am as CreateOrgInvitationData, ao as CreateOrgInvitationError, kl as CreateOrgInvitationErrors, km as CreateOrgInvitationRequest, an as CreateOrgInvitationResponse, kn as CreateOrgInvitationResponses, ap as CreateOrganizationData, ar as CreateOrganizationError, ko as CreateOrganizationErrors, kp as CreateOrganizationRequest, kq as CreateOrganizationResponse, aq as CreateOrganizationResponse2, kr as CreateOrganizationResponses, as as CreatePersonalAccessTokenData, au as CreatePersonalAccessTokenError, ks as CreatePersonalAccessTokenErrors, kt as CreatePersonalAccessTokenRequest, ku as CreatePersonalAccessTokenResponse, at as CreatePersonalAccessTokenResponse2, kv as CreatePersonalAccessTokenResponses, aE as CreateProjectData, aG as CreateProjectError, kw as CreateProjectErrors, av as CreateProjectMachineGrantData, ax as CreateProjectMachineGrantError, kx as CreateProjectMachineGrantErrors, ky as CreateProjectMachineGrantRequest, kz as CreateProjectMachineGrantResponse, aw as CreateProjectMachineGrantResponse2, kA as CreateProjectMachineGrantResponses, ay as CreateProjectMachinePoolGrantData, aA as CreateProjectMachinePoolGrantError, kB as CreateProjectMachinePoolGrantErrors, kC as CreateProjectMachinePoolGrantRequest, az as CreateProjectMachinePoolGrantResponse, kD as CreateProjectMachinePoolGrantResponses, aB as CreateProjectModelGrantData, aD as CreateProjectModelGrantError, kE as CreateProjectModelGrantErrors, kF as CreateProjectModelGrantRequest, aC as CreateProjectModelGrantResponse, kG as CreateProjectModelGrantResponses, kH as CreateProjectRequest, aF as CreateProjectResponse, kI as CreateProjectResponses, aK as CreateSecretData, aM as CreateSecretError, kJ as CreateSecretErrors, aH as CreateSecretGrantData, aJ as CreateSecretGrantError, kK as CreateSecretGrantErrors, aI as CreateSecretGrantResponse, kL as CreateSecretGrantResponses, kM as CreateSecretRequest, aL as CreateSecretResponse, kN as CreateSecretResponses, aN as CreateSecretVersionData, aP as CreateSecretVersionError, kO as CreateSecretVersionErrors, aO as CreateSecretVersionResponse, kP as CreateSecretVersionResponses, aT as CreateSkillData, aV as CreateSkillError, kQ as CreateSkillErrors, aQ as CreateSkillGrantData, aS as CreateSkillGrantError, kR as CreateSkillGrantErrors, aR as CreateSkillGrantResponse, kS as CreateSkillGrantResponses, kT as CreateSkillRequest, aU as CreateSkillResponse, kU as CreateSkillResponses, kV as CreateSlackSetupRequest, kW as CreatedResourceListSort, kX as CronExpression, kY as CronMessageTemplate, kZ as CronTimezone, cz as CronTrigger, k_ as CronTriggerDeliveryMode, k$ as CronTriggerFailureReport, l0 as CronTriggerId, l1 as CronTriggerLastRun, l2 as CronTriggerLastRunState, l3 as CronTriggerTarget, l4 as CurrentAgentResponse, cC as CurrentUser, l5 as CurrentUserIdentity, l6 as CurrentUserOrg, l7 as DaemonRuntime, l8 as DaemonRuntimeId, l9 as DaemonRuntimeReconciliation, la as DaemonRuntimeState, aW as DeclineInvitationData, aY as DeclineInvitationError, lb as DeclineInvitationErrors, aX as DeclineInvitationResponse, lc as DeclineInvitationResponses, aZ as DeleteAgentProfileData, a$ as DeleteAgentProfileError, ld as DeleteAgentProfileErrors, a_ as DeleteAgentProfileResponse, le as DeleteAgentProfileResponses, b0 as DeleteConfiguredModelData, b2 as DeleteConfiguredModelError, lf as DeleteConfiguredModelErrors, b1 as DeleteConfiguredModelResponse, lg as DeleteConfiguredModelResponses, b3 as DeleteCronTriggerData, b5 as DeleteCronTriggerError, lh as DeleteCronTriggerErrors, b4 as DeleteCronTriggerResponse, li as DeleteCronTriggerResponses, b6 as DeleteCurrentUserData, b8 as DeleteCurrentUserError, lj as DeleteCurrentUserErrors, b7 as DeleteCurrentUserResponse, lk as DeleteCurrentUserResponses, b9 as DeleteIntegrationData, bb as DeleteIntegrationError, ll as DeleteIntegrationErrors, ba as DeleteIntegrationResponse, lm as DeleteIntegrationResponses, bc as DeleteIntegrationSubscriptionData, be as DeleteIntegrationSubscriptionError, ln as DeleteIntegrationSubscriptionErrors, bd as DeleteIntegrationSubscriptionResponse, lo as DeleteIntegrationSubscriptionResponses, bf as DeleteMachineData, bh as DeleteMachineError, lp as DeleteMachineErrors, bi as DeleteMachinePoolData, bk as DeleteMachinePoolError, lq as DeleteMachinePoolErrors, bj as DeleteMachinePoolResponse, lr as DeleteMachinePoolResponses, bg as DeleteMachineResponse, ls as DeleteMachineResponses, bl as DeleteMemoryFileData, bn as DeleteMemoryFileError, lt as DeleteMemoryFileErrors, bm as DeleteMemoryFileResponse, lu as DeleteMemoryFileResponses, bo as DeleteMemoryStoreData, bq as DeleteMemoryStoreError, lv as DeleteMemoryStoreErrors, bp as DeleteMemoryStoreResponse, lw as DeleteMemoryStoreResponses, br as DeleteModelProviderConfigData, bt as DeleteModelProviderConfigError, lx as DeleteModelProviderConfigErrors, bs as DeleteModelProviderConfigResponse, ly as DeleteModelProviderConfigResponses, bu as DeleteOrgInvitationData, bw as DeleteOrgInvitationError, lz as DeleteOrgInvitationErrors, bv as DeleteOrgInvitationResponse, lA as DeleteOrgInvitationResponses, bx as DeleteOrganizationData, bz as DeleteOrganizationError, lB as DeleteOrganizationErrors, by as DeleteOrganizationResponse, lC as DeleteOrganizationResponses, bJ as DeleteProjectData, bL as DeleteProjectError, lD as DeleteProjectErrors, bA as DeleteProjectMachineGrantData, bC as DeleteProjectMachineGrantError, lE as DeleteProjectMachineGrantErrors, bB as DeleteProjectMachineGrantResponse, lF as DeleteProjectMachineGrantResponses, bD as DeleteProjectMachinePoolGrantData, bF as DeleteProjectMachinePoolGrantError, lG as DeleteProjectMachinePoolGrantErrors, bE as DeleteProjectMachinePoolGrantResponse, lH as DeleteProjectMachinePoolGrantResponses, bG as DeleteProjectModelGrantData, bI as DeleteProjectModelGrantError, lI as DeleteProjectModelGrantErrors, bH as DeleteProjectModelGrantResponse, lJ as DeleteProjectModelGrantResponses, bK as DeleteProjectResponse, lK as DeleteProjectResponses, bP as DeleteSecretData, bR as DeleteSecretError, lL as DeleteSecretErrors, bM as DeleteSecretGrantData, bO as DeleteSecretGrantError, lM as DeleteSecretGrantErrors, bN as DeleteSecretGrantResponse, lN as DeleteSecretGrantResponses, bQ as DeleteSecretResponse, lO as DeleteSecretResponses, bV as DeleteSkillData, bX as DeleteSkillError, lP as DeleteSkillErrors, bS as DeleteSkillGrantData, bU as DeleteSkillGrantError, lQ as DeleteSkillGrantErrors, bT as DeleteSkillGrantResponse, lR as DeleteSkillGrantResponses, bW as DeleteSkillResponse, lS as DeleteSkillResponses, bY as DemoteSteeringInputToQueuedData, b_ as DemoteSteeringInputToQueuedError, lT as DemoteSteeringInputToQueuedErrors, bZ as DemoteSteeringInputToQueuedResponse, lU as DemoteSteeringInputToQueuedResponses, lV as DirectSecretAvailability, lW as DirectSkillAvailability, b$ as DisconnectIntegrationData, c1 as DisconnectIntegrationError, lX as DisconnectIntegrationErrors, c0 as DisconnectIntegrationResponse, lY as DisconnectIntegrationResponses, lZ as DiscoveredModelPricing, l_ as DiscoveredProviderModel, c2 as DownloadDaemonFileData, c3 as DownloadDaemonFileError, l$ as DownloadDaemonFileErrors, m0 as DownloadDaemonFileResponse, m1 as DownloadDaemonFileResponses, c4 as DownloadMemoryFileData, c5 as DownloadMemoryFileError, m2 as DownloadMemoryFileErrors, m3 as DownloadMemoryFileResponse, m4 as DownloadMemoryFileResponses, c6 as EndMachineDaemonRuntimeData, c8 as EndMachineDaemonRuntimeError, m5 as EndMachineDaemonRuntimeErrors, c7 as EndMachineDaemonRuntimeResponse, m6 as EndMachineDaemonRuntimeResponses, m7 as EnvironmentVariableName, m8 as ErrorContentBlock, m9 as EventWebhookAgentInputEvent, ma as EventWebhookContextCheckpointEvent, mb as EventWebhookModelOutputEvent, mc as EventWebhookPayload, md as EventWebhookToolCallUpdate, me as EventWebhookToolResultEvent, mf as ExternalActorParams, mg as GenericSecretMaterial, c9 as GetActorData, cb as GetActorError, mh as GetActorErrors, mi as GetActorResponse, mj as GetActorResponses, cf as GetAgentConfigData, ch as GetAgentConfigError, mk as GetAgentConfigErrors, cc as GetAgentConfigGeneratedSourceData, ce as GetAgentConfigGeneratedSourceError, ml as GetAgentConfigGeneratedSourceErrors, mm as GetAgentConfigGeneratedSourceResponse, mn as GetAgentConfigGeneratedSourceResponses, mo as GetAgentConfigResponse, mp as GetAgentConfigResponses, ci as GetAgentData, ck as GetAgentError, mq as GetAgentErrors, cl as GetAgentProfileData, cn as GetAgentProfileError, mr as GetAgentProfileErrors, ms as GetAgentProfileResponse, mt as GetAgentProfileResponses, co as GetAgentProfileUsageData, cq as GetAgentProfileUsageError, mu as GetAgentProfileUsageErrors, mv as GetAgentProfileUsageResponse, mw as GetAgentProfileUsageResponses, cj as GetAgentResponse, mx as GetAgentResponse2, my as GetAgentResponses, cr as GetAgentUsageData, cs as GetAgentUsageError, mz as GetAgentUsageErrors, mA as GetAgentUsageResponse, mB as GetAgentUsageResponses, ct as GetArtifactContentData, cu as GetArtifactContentError, mC as GetArtifactContentErrors, mD as GetArtifactContentResponse, mE as GetArtifactContentResponses, cv as GetArtifactData, cx as GetArtifactError, mF as GetArtifactErrors, mG as GetArtifactResponse, mH as GetArtifactResponses, cy as GetCronTriggerData, cA as GetCronTriggerError, mI as GetCronTriggerErrors, mJ as GetCronTriggerResponse, mK as GetCronTriggerResponses, cB as GetCurrentUserData, cD as GetCurrentUserError, mL as GetCurrentUserErrors, mM as GetCurrentUserResponse, mN as GetCurrentUserResponses, cE as GetDaemonGitCredentialsData, cG as GetDaemonGitCredentialsError, mO as GetDaemonGitCredentialsErrors, cF as GetDaemonGitCredentialsResponse, mP as GetDaemonGitCredentialsResponses, cH as GetDaemonSkillArchiveData, cI as GetDaemonSkillArchiveError, mQ as GetDaemonSkillArchiveErrors, mR as GetDaemonSkillArchiveResponse, mS as GetDaemonSkillArchiveResponses, cJ as GetIntegrationData, cL as GetIntegrationError, mT as GetIntegrationErrors, mU as GetIntegrationResponse, mV as GetIntegrationResponses, cM as GetMachineData, cO as GetMachineError, mW as GetMachineErrors, cP as GetMachinePoolData, cR as GetMachinePoolError, mX as GetMachinePoolErrors, mY as GetMachinePoolResponse, mZ as GetMachinePoolResponses, m_ as GetMachineResponse, m$ as GetMachineResponses, cS as GetMemoryStoreData, cU as GetMemoryStoreError, n0 as GetMemoryStoreErrors, n1 as GetMemoryStoreResponse, n2 as GetMemoryStoreResponses, cV as GetModelCatalogData, cX as GetModelCatalogError, n3 as GetModelCatalogErrors, n4 as GetModelCatalogResponse, n5 as GetModelCatalogResponses, cY as GetModelProviderConfigData, c_ as GetModelProviderConfigError, n6 as GetModelProviderConfigErrors, n7 as GetModelProviderConfigResponse, n8 as GetModelProviderConfigResponses, c$ as GetOrgApiKeyData, d1 as GetOrgApiKeyError, n9 as GetOrgApiKeyErrors, na as GetOrgApiKeyResponse, nb as GetOrgApiKeyResponses, d2 as GetOrgOverviewData, d4 as GetOrgOverviewError, nc as GetOrgOverviewErrors, nd as GetOrgOverviewResponse, ne as GetOrgOverviewResponses, d5 as GetOrgUsageData, d6 as GetOrgUsageError, nf as GetOrgUsageErrors, ng as GetOrgUsageResponse, nh as GetOrgUsageResponses, d7 as GetOrgUsageTimeseriesData, d9 as GetOrgUsageTimeseriesError, ni as GetOrgUsageTimeseriesErrors, nj as GetOrgUsageTimeseriesResponse, nk as GetOrgUsageTimeseriesResponses, da as GetProjectAvailableSecretData, dc as GetProjectAvailableSecretError, nl as GetProjectAvailableSecretErrors, nm as GetProjectAvailableSecretResponse, nn as GetProjectAvailableSecretResponses, dd as GetProjectMachinePoolGrantData, df as GetProjectMachinePoolGrantError, no as GetProjectMachinePoolGrantErrors, np as GetProjectMachinePoolGrantResponse, nq as GetProjectMachinePoolGrantResponses, dg as GetProjectUsageData, dh as GetProjectUsageError, nr as GetProjectUsageErrors, ns as GetProjectUsageResponse, nt as GetProjectUsageResponses, di as GetSecretData, dk as GetSecretError, nu as GetSecretErrors, nv as GetSecretResponse, nw as GetSecretResponses, dl as GetSkillData, dn as GetSkillError, nx as GetSkillErrors, ny as GetSkillResponse, nz as GetSkillResponses, dp as GetToolCatalogData, dr as GetToolCatalogError, nA as GetToolCatalogErrors, nB as GetToolCatalogResponse, nC as GetToolCatalogResponses, nD as GitHubAppCredentialsSecretMaterial, nE as GitHubInstallations, nF as GitHubIntegrationSettings, nG as GitHubRepository, nH as GitHubSetup, nI as GitHubSetupInstallation, nJ as GrantedSecretAvailability, nK as GrantedSkillAvailability, nL as IdempotencyKey, nM as InlineMediaContentBlock, nN as InspectGitHubInstallationsRequest, ds as InspectIntegrationGitHubInstallationsData, du as InspectIntegrationGitHubInstallationsError, nO as InspectIntegrationGitHubInstallationsErrors, dt as InspectIntegrationGitHubInstallationsResponse, nP as InspectIntegrationGitHubInstallationsResponses, nQ as InstallationId, cK as Integration, nR as IntegrationCapabilities, nS as IntegrationCapabilityDefinition, nT as IntegrationConversation, nU as IntegrationCronTriggerTarget, nV as IntegrationDefinition, nW as IntegrationId, nX as IntegrationName, nY as IntegrationOAuthFlowId, nZ as IntegrationOAuthSetup, n_ as IntegrationProviderDisplayName, n$ as IntegrationRuntimeFailure, o0 as IntegrationState, o1 as IntegrationSubscription, o2 as IntegrationSubscriptionAttachment, o3 as IntegrationSubscriptionDefinition, o4 as IntegrationSubscriptionId, o5 as IntegrationTarget, o6 as IntegrationTargetId, o7 as InteractionAnswer, o8 as InteractionForm, o9 as InteractionFormContextItem, oa as InteractionFormOption, ob as InteractionFormQuestion, oc as InteractionPresentationReceipt, od as InteractionResolution, oe as JsonBlob, of as LaunchAgentResponse, dv as ListActorsData, dx as ListActorsError, og as ListActorsErrors, dw as ListActorsResponse, oh as ListActorsResponse2, oi as ListActorsResponses, dR as ListAgentEventsResponse, f3 as ListAgentInputsResponse, dy as ListAgentInteractionsData, dA as ListAgentInteractionsError, oj as ListAgentInteractionsErrors, dz as ListAgentInteractionsResponse, ok as ListAgentInteractionsResponse2, ol as ListAgentInteractionsResponses, dB as ListAgentProfilesData, dD as ListAgentProfilesError, om as ListAgentProfilesErrors, dC as ListAgentProfilesResponse, on as ListAgentProfilesResponse2, oo as ListAgentProfilesResponses, fo as ListAgentTurnsResponse, dE as ListAgentsData, dG as ListAgentsError, op as ListAgentsErrors, dF as ListAgentsResponse, oq as ListAgentsResponse2, or as ListAgentsResponses, dH as ListByoMachineDaemonTokensData, dJ as ListByoMachineDaemonTokensError, os as ListByoMachineDaemonTokensErrors, ot as ListByoMachineDaemonTokensResponse, ou as ListByoMachineDaemonTokensResponses, dK as ListConfiguredModelsData, dM as ListConfiguredModelsError, ov as ListConfiguredModelsErrors, ow as ListConfiguredModelsResponse, ox as ListConfiguredModelsResponses, dN as ListCronTriggersData, dP as ListCronTriggersError, oy as ListCronTriggersErrors, dO as ListCronTriggersResponse, oz as ListCronTriggersResponse2, oA as ListCronTriggersResponses, dQ as ListEventsData, dS as ListEventsError, oB as ListEventsErrors, oC as ListEventsResponse, oD as ListEventsResponses, dX as ListGitHubRepositoriesResponse, dT as ListIntegrationDefinitionsData, dV as ListIntegrationDefinitionsError, oE as ListIntegrationDefinitionsErrors, dU as ListIntegrationDefinitionsResponse, oF as ListIntegrationDefinitionsResponse2, oG as ListIntegrationDefinitionsResponses, dW as ListIntegrationGitHubRepositoriesData, dY as ListIntegrationGitHubRepositoriesError, oH as ListIntegrationGitHubRepositoriesErrors, oI as ListIntegrationGitHubRepositoriesResponse, oJ as ListIntegrationGitHubRepositoriesResponses, dZ as ListIntegrationSubscriptionsData, d$ as ListIntegrationSubscriptionsError, oK as ListIntegrationSubscriptionsErrors, d_ as ListIntegrationSubscriptionsResponse, oL as ListIntegrationSubscriptionsResponse2, oM as ListIntegrationSubscriptionsResponses, e0 as ListIntegrationsData, e2 as ListIntegrationsError, oN as ListIntegrationsErrors, e1 as ListIntegrationsResponse, oO as ListIntegrationsResponse2, oP as ListIntegrationsResponses, dI as ListMachineDaemonTokensResponse, e3 as ListMachinePoolsData, e5 as ListMachinePoolsError, oQ as ListMachinePoolsErrors, e4 as ListMachinePoolsResponse, oR as ListMachinePoolsResponse2, oS as ListMachinePoolsResponses, e6 as ListMcpServerToolsData, e8 as ListMcpServerToolsError, oT as ListMcpServerToolsErrors, e7 as ListMcpServerToolsResponse, oU as ListMcpServerToolsResponses, e9 as ListMcpServersData, eb as ListMcpServersError, oV as ListMcpServersErrors, ea as ListMcpServersResponse, oW as ListMcpServersResponse2, oX as ListMcpServersResponses, ec as ListMemberProjectAccessData, ee as ListMemberProjectAccessError, oY as ListMemberProjectAccessErrors, oZ as ListMemberProjectAccessResponse, o_ as ListMemberProjectAccessResponses, ef as ListMemoryFilesData, eh as ListMemoryFilesError, o$ as ListMemoryFilesErrors, p0 as ListMemoryFilesResponse, p1 as ListMemoryFilesResponses, ei as ListMemoryStoresData, ek as ListMemoryStoresError, p2 as ListMemoryStoresErrors, p3 as ListMemoryStoresResponse, p4 as ListMemoryStoresResponses, el as ListModelProviderConfigsData, en as ListModelProviderConfigsError, p5 as ListModelProviderConfigsErrors, p6 as ListModelProviderConfigsResponse, p7 as ListModelProviderConfigsResponses, eo as ListOrgAgentProfilesData, ep as ListOrgAgentProfilesError, p8 as ListOrgAgentProfilesErrors, p9 as ListOrgAgentProfilesResponse, pa as ListOrgAgentProfilesResponses, eq as ListOrgAgentsData, er as ListOrgAgentsError, pb as ListOrgAgentsErrors, pc as ListOrgAgentsResponse, pd as ListOrgAgentsResponses, es as ListOrgApiKeyProjectAccessData, et as ListOrgApiKeyProjectAccessError, pe as ListOrgApiKeyProjectAccessErrors, pf as ListOrgApiKeyProjectAccessResponse, pg as ListOrgApiKeyProjectAccessResponses, eu as ListOrgApiKeysData, ew as ListOrgApiKeysError, ph as ListOrgApiKeysErrors, ev as ListOrgApiKeysResponse, pi as ListOrgApiKeysResponse2, pj as ListOrgApiKeysResponses, ex as ListOrgIntegrationsData, ey as ListOrgIntegrationsError, pk as ListOrgIntegrationsErrors, pl as ListOrgIntegrationsResponse, pm as ListOrgIntegrationsResponses, ez as ListOrgInvitationsData, eB as ListOrgInvitationsError, pn as ListOrgInvitationsErrors, eA as ListOrgInvitationsResponse, po as ListOrgInvitationsResponse2, pp as ListOrgInvitationsResponses, eC as ListOrgMembersData, eE as ListOrgMembersError, pq as ListOrgMembersErrors, eD as ListOrgMembersResponse, pr as ListOrgMembersResponse2, ps as ListOrgMembersResponses, eF as ListOrgMemoryStoresData, eG as ListOrgMemoryStoresError, pt as ListOrgMemoryStoresErrors, pu as ListOrgMemoryStoresResponse, pv as ListOrgMemoryStoresResponses, eH as ListOrganizationsData, eJ as ListOrganizationsError, pw as ListOrganizationsErrors, eI as ListOrganizationsResponse, px as ListOrganizationsResponse2, py as ListOrganizationsResponses, eK as ListPendingInvitationsData, eL as ListPendingInvitationsError, pz as ListPendingInvitationsErrors, pA as ListPendingInvitationsResponse, pB as ListPendingInvitationsResponses, eM as ListPersonalAccessTokensData, eO as ListPersonalAccessTokensError, pC as ListPersonalAccessTokensErrors, eN as ListPersonalAccessTokensResponse, pD as ListPersonalAccessTokensResponse2, pE as ListPersonalAccessTokensResponses, eP as ListProjectAvailableSecretsData, eR as ListProjectAvailableSecretsError, pF as ListProjectAvailableSecretsErrors, pG as ListProjectAvailableSecretsResponse, pH as ListProjectAvailableSecretsResponses, eS as ListProjectAvailableSkillsData, eU as ListProjectAvailableSkillsError, pI as ListProjectAvailableSkillsErrors, pJ as ListProjectAvailableSkillsResponse, pK as ListProjectAvailableSkillsResponses, eV as ListProjectMachineGrantsData, eX as ListProjectMachineGrantsError, pL as ListProjectMachineGrantsErrors, eW as ListProjectMachineGrantsResponse, pM as ListProjectMachineGrantsResponse2, pN as ListProjectMachineGrantsResponses, eY as ListProjectMachinePoolGrantsData, e_ as ListProjectMachinePoolGrantsError, pO as ListProjectMachinePoolGrantsErrors, eZ as ListProjectMachinePoolGrantsResponse, pP as ListProjectMachinePoolGrantsResponse2, pQ as ListProjectMachinePoolGrantsResponses, ed as ListProjectMembershipGrantsResponse, e$ as ListProjectModelGrantsData, f1 as ListProjectModelGrantsError, pR as ListProjectModelGrantsErrors, f0 as ListProjectModelGrantsResponse, pS as ListProjectModelGrantsResponse2, pT as ListProjectModelGrantsResponses, eQ as ListProjectSecretAccessesResponse, eT as ListProjectSkillAccessesResponse, fw as ListProjectsResponse, f2 as ListQueuedBacklogInputsData, f4 as ListQueuedBacklogInputsError, pU as ListQueuedBacklogInputsErrors, pV as ListQueuedBacklogInputsResponse, pW as ListQueuedBacklogInputsResponses, f5 as ListSecretGrantsData, f7 as ListSecretGrantsError, pX as ListSecretGrantsErrors, f6 as ListSecretGrantsResponse, pY as ListSecretGrantsResponse2, pZ as ListSecretGrantsResponses, f8 as ListSecretsData, fa as ListSecretsError, p_ as ListSecretsErrors, f9 as ListSecretsResponse, p$ as ListSecretsResponse2, q0 as ListSecretsResponses, fb as ListSkillGrantsData, fd as ListSkillGrantsError, q1 as ListSkillGrantsErrors, fc as ListSkillGrantsResponse, q2 as ListSkillGrantsResponse2, q3 as ListSkillGrantsResponses, fe as ListSkillsData, fg as ListSkillsError, q4 as ListSkillsErrors, ff as ListSkillsResponse, q5 as ListSkillsResponse2, q6 as ListSkillsResponses, fh as ListToolCallsData, fj as ListToolCallsError, q7 as ListToolCallsErrors, fi as ListToolCallsResponse, q8 as ListToolCallsResponse2, q9 as ListToolCallsResponses, fk as ListTurnEventsData, fm as ListTurnEventsError, qa as ListTurnEventsErrors, fl as ListTurnEventsResponse, qb as ListTurnEventsResponse2, qc as ListTurnEventsResponses, fn as ListTurnsData, fp as ListTurnsError, qd as ListTurnsErrors, qe as ListTurnsResponse, qf as ListTurnsResponses, fq as ListVisibleMachinesData, fs as ListVisibleMachinesError, qg as ListVisibleMachinesErrors, fr as ListVisibleMachinesResponse, qh as ListVisibleMachinesResponse2, qi as ListVisibleMachinesResponses, ft as ListVisibleProjectMachinesData, fu as ListVisibleProjectMachinesError, qj as ListVisibleProjectMachinesErrors, qk as ListVisibleProjectMachinesResponse, ql as ListVisibleProjectMachinesResponses, fv as ListVisibleProjectsData, fx as ListVisibleProjectsError, qm as ListVisibleProjectsErrors, qn as ListVisibleProjectsResponse, qo as ListVisibleProjectsResponses, cN as Machine, qp as MachineAccess, qq as MachineAccessSource, qr as MachineAccessSourceKind, qs as MachineConnectionState, qt as MachineDaemonToken, qu as MachineDaemonTokenId, qv as MachineFailureReport, qw as MachineId, qx as MachineLifecycleState, qy as MachineMetadata, cQ as MachinePool, qz as MachinePoolConnectionCheckError, qA as MachinePoolId, qB as MachinePoolSummary, qC as MachinePoolUsage, qD as MachineSourceKind, qE as MachineSourceKindFilter, qF as MachineSummary, qG as MachineSummaryFields, qH as ManagementKind, qI as McpRegistryHeader, qJ as McpRegistryIcon, qK as McpRegistryRemote, qL as McpRegistryServer, qM as McpServerAuth, qN as McpServerAuthBearer, qO as McpServerAuthHint, qP as McpServerAuthNone, qQ as McpServerAuthOAuth, qR as McpServerAuthRequiredError, qS as McpServerAuthSigV4, qT as McpServerInfo, qU as McpServerTool, qV as McpServerToolAnnotations, qW as McpServerToolsRequest, qX as McpServerToolsResponse, qY as McpoAuthFlowId, qZ as McpoAuthStartMetadata, q_ as McpoAuthStartRequest, q$ as McpoAuthStartResponse, r0 as MediaRefContentBlock, r1 as MemoryDirectory, r2 as MemoryFile, eg as MemoryFileList, r3 as MemoryRegularFile, cT as MemoryStore, r4 as MemoryStoreAccess, r5 as MemoryStoreId, ej as MemoryStoreList, r6 as MemoryStoreName, r7 as Metadata, r8 as ModelApiFormat, r9 as ModelApiVariantOptions, ra as ModelCacheRetention, rb as ModelCallContextId, cW as ModelCatalog, rc as ModelOutputBlockStartDelta, rd as ModelOutputBlockStopDelta, re as ModelOutputContentBlock, rf as ModelOutputDelta, rg as ModelOutputErrorDelta, rh as ModelOutputEvent, ri as ModelOutputMessageStopDelta, rj as ModelOutputStopReason, rk as ModelOutputStreamBlock, rl as ModelOutputStreamDelta, rm as ModelOutputTextDelta, rn as ModelOutputTextStreamBlock, ro as ModelOutputThinkingDelta, rp as ModelOutputThinkingStreamBlock, rq as ModelOutputToolArgumentsDelta, rr as ModelOutputToolUseStreamBlock, rs as ModelProviderApiVariant, rt as ModelProviderApiVariantResponse, ru as ModelProviderAuthKind, rv as ModelProviderAuthKindResponse, cZ as ModelProviderConfig, rw as ModelProviderConfigId, em as ModelProviderConfigList, rx as ModelStopReason, ry as ModelToolCallContentBlock, rz as ModelUsage, rA as ModelUsageTotals, fy as MoveQueuedBacklogInputData, fA as MoveQueuedBacklogInputError, rB as MoveQueuedBacklogInputErrors, rC as MoveQueuedBacklogInputRequest, fz as MoveQueuedBacklogInputResponse, rD as MoveQueuedBacklogInputResponses, rE as OAuthRefreshSecretMaterial, rF as OAuthTokenSetSecretMaterial, rG as OkResponse, d0 as OrgApiKey, rH as OrgApiKeyId, rI as OrgApiKeyRole, rJ as OrgInvitation, rK as OrgInvitationId, rL as OrgMember, rM as OrgOverviewAgentProfileReference, rN as OrgOverviewProjectActivity, d3 as OrgOverviewResponse, rO as OrgSecretOwner, rP as OrgSecretOwnerInput, rQ as OrgSkillOwner, rR as OrgSkillOwnerInput, rS as Organization, rT as OrganizationId, rU as OrganizationMembership, rV as PageCursor, rW as PageLimit, rX as PersonalAccessTokenId, rY as ProcessActionId, rZ as ProcessActionReconciliationClaim, r_ as ProcessActionReconciliationDirective, r$ as ProcessId, s0 as ProcessReconciliationClaim, s1 as ProcessReconciliationDirective, s2 as Project, s3 as ProjectAccess, s4 as ProjectFields, s5 as ProjectId, s6 as ProjectMachineGrant, s7 as ProjectMachineGrantId, s8 as ProjectMachineGrantListItem, s9 as ProjectMachineGrantSourceKind, de as ProjectMachinePoolGrant, sa as ProjectMachinePoolGrantId, sb as ProjectMachinePoolGrantListItem, sc as ProjectMembershipGrant, sd as ProjectModelGrant, se as ProjectModelGrantEffectiveReasoning, sf as ProjectModelGrantEnvelope, sg as ProjectModelGrantId, sh as ProjectModelGrantListItem, db as ProjectSecretAccess, si as ProjectSecretOwner, sj as ProjectSecretOwnerInput, sk as ProjectSkillAccess, sl as ProjectSkillOwner, sm as ProjectSkillOwnerInput, fB as PromoteQueuedInputToSteeringData, fD as PromoteQueuedInputToSteeringError, sn as PromoteQueuedInputToSteeringErrors, so as PromoteQueuedInputToSteeringRequest, fC as PromoteQueuedInputToSteeringResponse, sp as PromoteQueuedInputToSteeringResponses, fE as PutActorData, fG as PutActorError, sq as PutActorErrors, fF as PutActorResponse, sr as PutActorResponses, ss as ReasoningContentBlock, fH as RecordMachineFailureData, fJ as RecordMachineFailureError, st as RecordMachineFailureErrors, fI as RecordMachineFailureResponse, su as RecordMachineFailureResponses, sv as RegisterDaemonRuntimeRequest, sw as RegisterDaemonRuntimeResponse, fK as RegisterMachineDaemonRuntimeData, fM as RegisterMachineDaemonRuntimeError, sx as RegisterMachineDaemonRuntimeErrors, fL as RegisterMachineDaemonRuntimeResponse, sy as RegisterMachineDaemonRuntimeResponses, fN as RemoveMemberProjectAccessData, fP as RemoveMemberProjectAccessError, sz as RemoveMemberProjectAccessErrors, fO as RemoveMemberProjectAccessResponse, sA as RemoveMemberProjectAccessResponses, fQ as RemoveOrgApiKeyProjectRoleData, fS as RemoveOrgApiKeyProjectRoleError, sB as RemoveOrgApiKeyProjectRoleErrors, fR as RemoveOrgApiKeyProjectRoleResponse, sC as RemoveOrgApiKeyProjectRoleResponses, fT as RemoveOrgMemberData, fV as RemoveOrgMemberError, sD as RemoveOrgMemberErrors, fU as RemoveOrgMemberResponse, sE as RemoveOrgMemberResponses, fW as RenameAgentProfileData, fY as RenameAgentProfileError, sF as RenameAgentProfileErrors, sG as RenameAgentProfileRequest, fX as RenameAgentProfileResponse, sH as RenameAgentProfileResponses, fZ as ResolveAgentConfigToolsData, f$ as ResolveAgentConfigToolsError, sI as ResolveAgentConfigToolsErrors, sJ as ResolveAgentConfigToolsRequest, f_ as ResolveAgentConfigToolsResponse, sK as ResolveAgentConfigToolsResponses, g0 as ResolveAgentInteractionData, g2 as ResolveAgentInteractionError, sL as ResolveAgentInteractionErrors, sM as ResolveAgentInteractionRequest, g1 as ResolveAgentInteractionResponse, sN as ResolveAgentInteractionResponses, sO as ResolvedAgentConfigTool, sP as ResolvedAgentConfigTools, sQ as ResourceListSort, sR as ResourceName, sS as ResourceNameFilter, sT as ResourceNameReference, g3 as RevokeMachineDaemonTokenData, g5 as RevokeMachineDaemonTokenError, sU as RevokeMachineDaemonTokenErrors, g4 as RevokeMachineDaemonTokenResponse, sV as RevokeMachineDaemonTokenResponses, g6 as RevokeOrgApiKeyData, g8 as RevokeOrgApiKeyError, sW as RevokeOrgApiKeyErrors, g7 as RevokeOrgApiKeyResponse, sX as RevokeOrgApiKeyResponses, g9 as RevokePersonalAccessTokenData, gb as RevokePersonalAccessTokenError, sY as RevokePersonalAccessTokenErrors, ga as RevokePersonalAccessTokenResponse, sZ as RevokePersonalAccessTokenResponses, dj as Secret, s_ as SecretAvailability, s$ as SecretAvailabilitySourceFilter, t0 as SecretGrant, t1 as SecretGrantCreateRequest, t2 as SecretGrantId, t3 as SecretGrantListItem, t4 as SecretId, t5 as SecretKind, t6 as SecretKindFilter, t7 as SecretMaterial, t8 as SecretMcpoAuthFlowIdFilter, t9 as SecretMetadataFilter, ta as SecretOwner, tb as SecretOwnerInput, tc as SecretOwnerKindFilter, td as SecretOwnerProjectIdFilter, te as SecretVersionRequest, tf as ServerErrorCode, gc as SetMemberProjectAccessData, ge as SetMemberProjectAccessError, tg as SetMemberProjectAccessErrors, gd as SetMemberProjectAccessResponse, th as SetMemberProjectAccessResponses, gf as SetOrgApiKeyProjectRoleData, gh as SetOrgApiKeyProjectRoleError, ti as SetOrgApiKeyProjectRoleErrors, gg as SetOrgApiKeyProjectRoleResponse, tj as SetOrgApiKeyProjectRoleResponses, tk as SetProjectMembershipRequest, dm as Skill, tl as SkillAvailability, tm as SkillAvailabilitySourceFilter, tn as SkillFile, to as SkillGrant, tp as SkillGrantCreateRequest, tq as SkillGrantId, tr as SkillGrantListItem, ts as SkillId, tt as SkillName, tu as SkillOwner, tv as SkillOwnerInput, tw as SkillOwnerKindFilter, tx as SkillOwnerProjectIdFilter, ty as SkillRevisionId, tz as SlackSetup, tA as SlackSetupIcon, gi as SleepMachineDaemonRuntimeData, gk as SleepMachineDaemonRuntimeError, tB as SleepMachineDaemonRuntimeErrors, gj as SleepMachineDaemonRuntimeResponse, tC as SleepMachineDaemonRuntimeResponses, gl as SocketMachineDaemonRuntimeData, gm as SocketMachineDaemonRuntimeError, tD as SocketMachineDaemonRuntimeErrors, gn as StartSecretMcpoAuthData, gp as StartSecretMcpoAuthError, tE as StartSecretMcpoAuthErrors, go as StartSecretMcpoAuthResponse, tF as StartSecretMcpoAuthResponses, tG as StreamEventsError, tH as StreamEventsErrors, tI as StreamEventsResponse, tJ as StreamEventsResponses, tK as StructuredDataContentBlock, gq as SubmitToolCallResultData, gs as SubmitToolCallResultError, tL as SubmitToolCallResultErrors, tM as SubmitToolCallResultRequest, tN as SubmitToolCallResultResponse, gr as SubmitToolCallResultResponse2, tO as SubmitToolCallResultResponses, tP as SubmitToolResultContentBlock, tQ as TextContentBlock, tR as Timestamp, tS as ToolCall, tT as ToolCallId, tU as ToolCallOutcome, tV as ToolCallState, tW as ToolCallType, tX as ToolCallUpdate, dq as ToolCatalog, tY as ToolCatalogEntry, tZ as ToolInput, t_ as ToolPermissionMode, t$ as ToolPermissionProfile, u0 as ToolPermissionSelection, u1 as ToolResult, u2 as ToolResultContentBlock, u3 as ToolResultEvent, gt as UpdateAgentConfigData, gv as UpdateAgentConfigError, u4 as UpdateAgentConfigErrors, u5 as UpdateAgentConfigRequest, u6 as UpdateAgentConfigResponse, gu as UpdateAgentConfigResponse2, u7 as UpdateAgentConfigResponses, gw as UpdateAgentProfileData, gy as UpdateAgentProfileError, u8 as UpdateAgentProfileErrors, u9 as UpdateAgentProfileRequest, gx as UpdateAgentProfileResponse, ua as UpdateAgentProfileResponses, gz as UpdateConfiguredModelData, gB as UpdateConfiguredModelError, ub as UpdateConfiguredModelErrors, uc as UpdateConfiguredModelRequest, gA as UpdateConfiguredModelResponse, ud as UpdateConfiguredModelResponses, gC as UpdateCronTriggerData, gE as UpdateCronTriggerError, ue as UpdateCronTriggerErrors, uf as UpdateCronTriggerRequest, gD as UpdateCronTriggerResponse, ug as UpdateCronTriggerResponses, gF as UpdateIntegrationData, gH as UpdateIntegrationError, uh as UpdateIntegrationErrors, gG as UpdateIntegrationResponse, ui as UpdateIntegrationResponses, gI as UpdateMachineData, gK as UpdateMachineError, uj as UpdateMachineErrors, gL as UpdateMachinePoolData, gN as UpdateMachinePoolError, uk as UpdateMachinePoolErrors, ul as UpdateMachinePoolRequest, gM as UpdateMachinePoolResponse, um as UpdateMachinePoolResponses, un as UpdateMachineRequest, gJ as UpdateMachineResponse, uo as UpdateMachineResponses, up as UpdateMemoryStore, gO as UpdateMemoryStoreData, gQ as UpdateMemoryStoreError, uq as UpdateMemoryStoreErrors, gP as UpdateMemoryStoreResponse, ur as UpdateMemoryStoreResponses, gR as UpdateModelProviderConfigData, gT as UpdateModelProviderConfigError, us as UpdateModelProviderConfigErrors, ut as UpdateModelProviderConfigRequest, gS as UpdateModelProviderConfigResponse, uu as UpdateModelProviderConfigResponses, gU as UpdateOrgApiKeyData, gW as UpdateOrgApiKeyError, uv as UpdateOrgApiKeyErrors, uw as UpdateOrgApiKeyRequest, gV as UpdateOrgApiKeyResponse, ux as UpdateOrgApiKeyResponses, gX as UpdateOrgMemberData, gZ as UpdateOrgMemberError, uy as UpdateOrgMemberErrors, uz as UpdateOrgMemberRequest, gY as UpdateOrgMemberResponse, uA as UpdateOrgMemberResponses, g_ as UpdateProjectMachinePoolGrantData, h0 as UpdateProjectMachinePoolGrantError, uB as UpdateProjectMachinePoolGrantErrors, uC as UpdateProjectMachinePoolGrantRequest, g$ as UpdateProjectMachinePoolGrantResponse, uD as UpdateProjectMachinePoolGrantResponses, h1 as UpdateProjectModelGrantData, h3 as UpdateProjectModelGrantError, uE as UpdateProjectModelGrantErrors, uF as UpdateProjectModelGrantRequest, h2 as UpdateProjectModelGrantResponse, uG as UpdateProjectModelGrantResponses, h4 as UpdateSecretData, h6 as UpdateSecretError, uH as UpdateSecretErrors, uI as UpdateSecretRequest, h5 as UpdateSecretResponse, uJ as UpdateSecretResponses, h7 as UpdateSkillData, h9 as UpdateSkillError, uK as UpdateSkillErrors, uL as UpdateSkillRequest, h8 as UpdateSkillResponse, uM as UpdateSkillResponses, ha as UploadDaemonFileData, hc as UploadDaemonFileError, uN as UploadDaemonFileErrors, hb as UploadDaemonFileResponse, uO as UploadDaemonFileResponses, uP as UploadFileResponse, uQ as UsageCostTotals, uR as UsageExcludeProjectIds, uS as UsageIncludeProjectIds, uT as UsageModel, cp as UsageReport, uU as UsageSince, d8 as UsageTimeseries, uV as UsageTimeseriesGroupBy, uW as UsageTimeseriesInterval, uX as UsageTimeseriesMetric, uY as UsageTimeseriesSeries, uZ as UsageTokenTotals, u_ as UsageTotals, u$ as UsageUntil, v0 as UserId, v1 as UserSecretOwner, v2 as UserSecretOwnerInput, v3 as UserSkillOwner, v4 as UserSkillOwnerInput, v5 as VisibleMachine, v6 as VisibleProject, hd as WriteMemoryFileData, hf as WriteMemoryFileError, v7 as WriteMemoryFileErrors, he as WriteMemoryFileResponse, v8 as WriteMemoryFileResponses, v9 as sdk } from './sdk.gen-CLCdwMLf.js';
5
5
  import * as z from 'zod';
6
- export { z as schemas } from './zod.gen-C1ZrfBZ0.js';
6
+ export { z as schemas } from './zod.gen-Cyl8w-ZW.js';
7
7
 
8
8
  declare const createClient: (config?: Config) => Client;
9
9
 
@@ -28,9 +28,10 @@ declare class ApiError extends Error {
28
28
  readonly body: JsonBody | undefined;
29
29
  readonly issues: AgentConfigErrorIssue[];
30
30
  readonly currentDigest: string | undefined;
31
- constructor(status: number, message: string, code?: ApiErrorCode, body?: JsonBody);
31
+ readonly retryAfterMs: number | undefined;
32
+ constructor(status: number, message: string, code?: ApiErrorCode, body?: JsonBody, retryAfterMs?: number);
32
33
  static fromResponse(response: Response): Promise<ApiError>;
33
- static fromBody(status: number, body: JsonBody | undefined): ApiError;
34
+ static fromBody(status: number, body: JsonBody | undefined, retryAfterMs?: number): ApiError;
34
35
  }
35
36
 
36
37
  type AgentEventStreamFrame = Exclude<AgentEventStreamData, Error$1>;
@@ -109,16 +110,6 @@ declare function pollDeviceAuthToken(options: PollDeviceAuthTokenOptions): Promi
109
110
  declare const MAX_MEMORY_FILE_BYTES: number;
110
111
  declare const FILE_DIGEST_HEADER = "X-Omnara-File-Digest";
111
112
 
112
- declare const githubLauncherSchema: z.ZodObject<{
113
- profile: z.ZodString;
114
- trigger: z.ZodEnum<{
115
- mention: "mention";
116
- pull_request_opened: "pull_request_opened";
117
- both: "both";
118
- }>;
119
- repository_id: z.ZodOptional<z.ZodString>;
120
- }, z.core.$strict>;
121
- type GitHubIntegrationLauncher = z.output<typeof githubLauncherSchema>;
122
113
  declare function chatIntegrationLauncher(settings: IntegrationSettings): {
123
114
  profiles: string[];
124
115
  } | undefined;
@@ -155,4 +146,4 @@ declare function profileIntegrationSetup(input: {
155
146
  }): CreateIntegrationRequest;
156
147
  declare function profileIntegrationProfileUpdate(integration: Pick<CreateIntegrationRequest, 'integration_kind' | 'settings'>, profileIds: readonly string[]): UpdateIntegrationRequest;
157
148
 
158
- export { AgentConfigErrorIssue, type AgentEventStreamConnectionState, AgentEventStreamData, AgentEventStreamError, type AgentEventStreamErrorKind, type AgentEventStreamFrame, ApiError, type ApiErrorCode, AuthStrategy, CreateIntegrationRequest, DeviceAuthError, type DeviceAuthFailureCode, type DeviceAuthStart, Error$1 as Error, ErrorCode, FILE_DIGEST_HEADER, type GitHubIntegrationLauncher, IntegrationKind, IntegrationProviderConfig, IntegrationSettings, type JsonBody, MAX_MEMORY_FILE_BYTES, OAUTH_DEVICE_GRANT_TYPE, OMNARA_CLI_OAUTH_CLIENT_ID, type OmnaraClient, type OmnaraClientOptions, type OpenAgentEventStreamOptions, PersonalAccessToken, type PollDeviceAuthTokenOptions, type StartDeviceAuthOptions, StreamEventsData, UpdateIntegrationRequest, chatIntegrationLauncher, cliLoginTokenHost, cliLoginTokenName, createOmnaraClient, githubIntegrationSettings, isCliLoginToken, openAgentEventStream, pollDeviceAuthToken, profileIntegrationDiscordKeyStatus, profileIntegrationProfileUpdate, profileIntegrationProfiles, profileIntegrationSetup, startDeviceAuth, zJsonText };
149
+ export { AgentConfigErrorIssue, type AgentEventStreamConnectionState, AgentEventStreamData, AgentEventStreamError, type AgentEventStreamErrorKind, type AgentEventStreamFrame, ApiError, type ApiErrorCode, AuthStrategy, CreateIntegrationRequest, DeviceAuthError, type DeviceAuthFailureCode, type DeviceAuthStart, Error$1 as Error, ErrorCode, FILE_DIGEST_HEADER, GitHubIntegrationLauncher, IntegrationKind, IntegrationProviderConfig, IntegrationSettings, type JsonBody, MAX_MEMORY_FILE_BYTES, OAUTH_DEVICE_GRANT_TYPE, OMNARA_CLI_OAUTH_CLIENT_ID, type OmnaraClient, type OmnaraClientOptions, type OpenAgentEventStreamOptions, PersonalAccessToken, type PollDeviceAuthTokenOptions, type StartDeviceAuthOptions, StreamEventsData, UpdateIntegrationRequest, chatIntegrationLauncher, cliLoginTokenHost, cliLoginTokenName, createOmnaraClient, githubIntegrationSettings, isCliLoginToken, openAgentEventStream, pollDeviceAuthToken, profileIntegrationDiscordKeyStatus, profileIntegrationProfileUpdate, profileIntegrationProfiles, profileIntegrationSetup, startDeviceAuth, zJsonText };
package/dist/index.js CHANGED
@@ -2,24 +2,26 @@ import {
2
2
  ApiError,
3
3
  zErrorResponse,
4
4
  zJsonText
5
- } from "./chunk-QMEPMMXM.js";
5
+ } from "./chunk-5VXC3YQG.js";
6
6
  import {
7
7
  client,
8
8
  createClient,
9
9
  createConfig,
10
10
  formDataBodySerializer,
11
11
  sdk_gen_exports
12
- } from "./chunk-2HFBQL53.js";
12
+ } from "./chunk-O3N2UQVS.js";
13
13
  import {
14
14
  relaxedSchema
15
15
  } from "./chunk-NZCMY3BC.js";
16
16
  import {
17
17
  zAgentProfileId,
18
18
  zAgentSequence,
19
+ zChatIntegrationLauncher,
20
+ zGitHubIntegrationLauncher,
19
21
  zIntegrationName,
20
22
  zStreamEventsResponse,
21
23
  zod_gen_exports
22
- } from "./chunk-ERORBZHC.js";
24
+ } from "./chunk-2LTFYXMO.js";
23
25
 
24
26
  // src/agent-event-stream.ts
25
27
  import * as z from "zod";
@@ -105,16 +107,6 @@ function retryable(error) {
105
107
  if (error.kind === "api") return error.code === "service_unavailable";
106
108
  return error.kind === "http" && (error.status === 408 || error.status === 429 || error.status != null && error.status >= 500);
107
109
  }
108
- function parseRetryAfter(value, now = Date.now()) {
109
- if (value == null) return void 0;
110
- const trimmed = value.trim();
111
- if (/^\d+$/.test(trimmed)) {
112
- return Math.min(Number.parseInt(trimmed, 10) * 1e3, retryAfterMaximumDelayMs);
113
- }
114
- const at = Date.parse(trimmed);
115
- if (Number.isNaN(at)) return void 0;
116
- return Math.min(Math.max(at - now, 0), retryAfterMaximumDelayMs);
117
- }
118
110
  function reconnectDelay(attempt) {
119
111
  const maximum = Math.min(retryBaseDelayMs * 2 ** Math.max(attempt - 1, 0), retryMaximumDelayMs);
120
112
  return Math.floor(Math.random() * maximum);
@@ -186,7 +178,7 @@ async function* openConnection(client2, { path, query, headers }, callerSignal)
186
178
  throw streamError("http", apiError.message, {
187
179
  status: response.status,
188
180
  code: apiError.code,
189
- retryAfterMs: parseRetryAfter(response.headers.get("Retry-After")),
181
+ retryAfterMs: apiError.retryAfterMs === void 0 ? void 0 : Math.min(apiError.retryAfterMs, retryAfterMaximumDelayMs),
190
182
  cause: apiError
191
183
  });
192
184
  }
@@ -541,14 +533,8 @@ import * as z4 from "zod";
541
533
  var discordPublicKeyPattern = "[a-fA-F0-9]{64}";
542
534
  var discordPublicKey = z4.string().regex(new RegExp(`^${discordPublicKeyPattern}$`));
543
535
  var profilesSchema = z4.array(zAgentProfileId).max(16).refine((ids) => new Set(ids).size === ids.length, "Choose each profile only once.");
544
- var repositorySchema = z4.string().trim().regex(/^[1-9][0-9]*$/, "Enter a positive repository ID without leading zeros.").refine((id) => BigInt(id) <= 9223372036854775807n, "The repository ID is too large.");
545
- var triggerSchema = z4.enum(["mention", "pull_request_opened", "both"]);
546
- var chatLauncherSchema = z4.object({ profiles: profilesSchema.min(1) }).strict();
547
- var githubLauncherSchema = z4.object({
548
- profile: zAgentProfileId,
549
- trigger: triggerSchema,
550
- repository_id: repositorySchema.optional()
551
- }).strict();
536
+ var chatLauncherSchema = z4.strictObject(zChatIntegrationLauncher.shape);
537
+ var githubLauncherSchema = z4.strictObject(zGitHubIntegrationLauncher.shape);
552
538
  function chatIntegrationLauncher(settings) {
553
539
  return settings.launcher === void 0 ? void 0 : chatLauncherSchema.parse(settings.launcher);
554
540
  }
@@ -579,10 +565,11 @@ function profileIntegrationSetup(input) {
579
565
  const profiles = profilesSchema.min(1, "Choose at least one profile.").parse(input.profileIds ?? (input.profileId ? [input.profileId] : []));
580
566
  if (input.integrationKind === "github_pr") {
581
567
  if (profiles.length !== 1) throw new Error("GitHub requires exactly one profile.");
568
+ const repositoryId = input.repositoryId?.trim();
582
569
  settings.launcher = githubLauncherSchema.parse({
583
570
  profile: profiles[0],
584
571
  trigger: input.trigger ?? "both",
585
- repository_id: input.repositoryId === "" ? void 0 : input.repositoryId
572
+ repository_id: repositoryId === "" ? void 0 : repositoryId
586
573
  });
587
574
  } else {
588
575
  if (input.repositoryId || input.trigger && input.trigger !== "mention")
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/agent-event-stream.ts","../src/server-sent-events.ts","../src/auth.ts","../src/cli-login-token.ts","../src/client.ts","../src/device.ts","../src/memory.ts","../src/profile-integration.ts"],"sourcesContent":["import * as z from 'zod'\n\nimport type { OmnaraClient } from './client'\nimport { ApiError, type ApiErrorCode, zErrorResponse } from './errors'\nimport type {\n AgentEventStreamData,\n Error as ApiErrorBody,\n StreamEventsData,\n} from './generated/types.gen'\nimport { zAgentSequence, zStreamEventsResponse } from './generated/zod.gen'\nimport { zJsonText } from './json-body'\nimport { createServerSentEventParser } from './server-sent-events'\nimport { relaxedSchema } from './validate-response'\n\nexport type AgentEventStreamFrame = Exclude<AgentEventStreamData, ApiErrorBody>\nexport type AgentEventStreamErrorKind = 'api' | 'client' | 'contract' | 'http' | 'transport'\n\nexport class AgentEventStreamError extends Error {\n readonly kind: AgentEventStreamErrorKind\n readonly status: number | undefined\n readonly code: ApiErrorCode | undefined\n readonly retryAfterMs: number | undefined\n\n constructor({\n kind,\n message,\n status,\n code,\n retryAfterMs,\n cause,\n }: {\n kind: AgentEventStreamErrorKind\n message: string\n status?: number\n code?: ApiErrorCode\n retryAfterMs?: number\n cause?: unknown\n }) {\n super(message, { cause })\n this.name = 'AgentEventStreamError'\n this.kind = kind\n this.status = status\n this.code = code\n this.retryAfterMs = retryAfterMs\n }\n}\n\nexport type AgentEventStreamConnectionState =\n | { state: 'connected'; reconnected: boolean }\n | {\n state: 'reconnecting'\n attempt: number\n delayMs: number\n error: AgentEventStreamError\n }\n\nexport interface OpenAgentEventStreamOptions {\n client: OmnaraClient\n path: StreamEventsData['path']\n query?: StreamEventsData['query']\n headers?: StreamEventsData['headers']\n signal?: AbortSignal\n onConnectionStateChange?: (state: AgentEventStreamConnectionState) => void\n}\n\nconst streamUrl: StreamEventsData['url'] =\n '/orgs/{orgID}/projects/{projectID}/agents/{agentID}/events/stream'\nconst retryBaseDelayMs = 1_000\nconst retryMaximumDelayMs = 30_000\nconst retryAfterMaximumDelayMs = 60_000\nconst stableConnectionResetMs = 10_000\n// Must stay above the server heartbeat interval (agentEventStreamHeartbeatInterval in\n// internal/httpapi/agent_runtime_routes.go); a quieter server would look stalled.\nconst stallTimeoutMs = 35_000\n\n// event_kind stays open so kinds newer than this SDK still advance the cursor.\nconst zDurableCursor = z.object({\n event_kind: z.string(),\n sequence: zAgentSequence,\n})\nconst relaxedStreamEvent = relaxedSchema(zStreamEventsResponse)\nconst zStreamFrame = zJsonText.pipe(relaxedStreamEvent)\n\nfunction streamError(\n kind: AgentEventStreamErrorKind,\n message: string,\n options: { status?: number; code?: ApiErrorCode; retryAfterMs?: number; cause?: unknown } = {},\n): AgentEventStreamError {\n return new AgentEventStreamError({ kind, message, ...options })\n}\n\nfunction retryable(error: AgentEventStreamError): boolean {\n if (error.kind === 'transport') return true\n if (error.kind === 'api') return error.code === 'service_unavailable'\n return (\n error.kind === 'http' &&\n (error.status === 408 || error.status === 429 || (error.status != null && error.status >= 500))\n )\n}\n\nfunction parseRetryAfter(value: string | null, now = Date.now()): number | undefined {\n if (value == null) return undefined\n const trimmed = value.trim()\n if (/^\\d+$/.test(trimmed)) {\n return Math.min(Number.parseInt(trimmed, 10) * 1_000, retryAfterMaximumDelayMs)\n }\n const at = Date.parse(trimmed)\n if (Number.isNaN(at)) return undefined\n return Math.min(Math.max(at - now, 0), retryAfterMaximumDelayMs)\n}\n\nfunction reconnectDelay(attempt: number): number {\n const maximum = Math.min(retryBaseDelayMs * 2 ** Math.max(attempt - 1, 0), retryMaximumDelayMs)\n return Math.floor(Math.random() * maximum)\n}\n\nfunction abortableDelay(ms: number, signal?: AbortSignal): Promise<boolean> {\n if (signal?.aborted === true) return Promise.resolve(false)\n return new Promise((resolve) => {\n const timeout = globalThis.setTimeout(() => {\n finish(true)\n }, ms)\n const onAbort = () => {\n finish(false)\n }\n function finish(completed: boolean) {\n globalThis.clearTimeout(timeout)\n signal?.removeEventListener('abort', onAbort)\n resolve(completed)\n }\n signal?.addEventListener('abort', onAbort, { once: true })\n })\n}\n\ntype ConnectionEvent = { kind: 'connected' } | { kind: 'message'; data: string }\ntype ConnectionOptions = Pick<OpenAgentEventStreamOptions, 'path' | 'query' | 'headers'>\n\nasync function settleWithin<T>(\n pending: Promise<T>,\n ms: number,\n attempt: AbortController,\n): Promise<T> {\n let timer: ReturnType<typeof globalThis.setTimeout> | undefined\n const deadline = new Promise<never>((_, reject) => {\n timer = globalThis.setTimeout(() => {\n const error = streamError('transport', 'Agent event stream stalled')\n attempt.abort(error)\n reject(error)\n }, ms)\n })\n try {\n return await Promise.race([pending, deadline])\n } finally {\n globalThis.clearTimeout(timer)\n }\n}\n\nasync function* openConnection(\n client: OmnaraClient,\n { path, query, headers }: ConnectionOptions,\n callerSignal: AbortSignal | undefined,\n): AsyncGenerator<ConnectionEvent, never> {\n const attempt = new AbortController()\n const signal =\n callerSignal == null ? attempt.signal : AbortSignal.any([callerSignal, attempt.signal])\n let reader: ReadableStreamDefaultReader<Uint8Array> | undefined\n try {\n const dispatch = { started: false }\n const { error, response }: { error?: unknown; response?: Response } = await settleWithin(\n client.request({\n method: 'GET',\n url: streamUrl,\n path,\n query,\n headers: { Accept: 'text/event-stream', ...headers },\n parseAs: 'stream',\n signal,\n throwOnError: false,\n fetch: (input, init) => {\n dispatch.started = true\n return (client.getConfig().fetch ?? globalThis.fetch)(input, init)\n },\n }),\n stallTimeoutMs,\n attempt,\n )\n if (response == null) {\n throw dispatch.started\n ? streamError('transport', 'Agent event stream disconnected', { cause: error })\n : streamError('client', 'Agent event stream request could not be prepared', {\n cause: error,\n })\n }\n if (response.status !== 200) {\n const apiError = await ApiError.fromResponse(response)\n await response.body?.cancel().catch(() => undefined)\n throw streamError('http', apiError.message, {\n status: response.status,\n code: apiError.code,\n retryAfterMs: parseRetryAfter(response.headers.get('Retry-After')),\n cause: apiError,\n })\n }\n if (error !== undefined) {\n throw streamError('client', 'Agent event stream response was rejected', { cause: error })\n }\n const mediaType = response.headers.get('Content-Type')?.split(';', 1)[0]?.trim().toLowerCase()\n if (mediaType !== 'text/event-stream') {\n await response.body?.cancel().catch(() => undefined)\n throw streamError('contract', 'Agent event stream response is not text/event-stream')\n }\n if (response.body == null) {\n throw streamError('contract', 'Agent event stream response has no body')\n }\n reader = response.body.getReader()\n signal.throwIfAborted()\n yield { kind: 'connected' }\n const parser = createServerSentEventParser()\n const decoder = new TextDecoder()\n while (true) {\n signal.throwIfAborted()\n const chunk = await settleWithin(reader.read(), stallTimeoutMs, attempt)\n if (chunk.done) throw streamError('transport', 'Agent event stream ended unexpectedly')\n for (const data of parser.push(decoder.decode(chunk.value, { stream: true }))) {\n yield { kind: 'message', data }\n }\n }\n } catch (error) {\n throw error instanceof AgentEventStreamError\n ? error\n : streamError('transport', 'Agent event stream disconnected', { cause: error })\n } finally {\n await reader?.cancel().catch(() => undefined)\n }\n}\n\nfunction decodeFrame(text: string): AgentEventStreamData {\n const frame = zStreamFrame.safeParse(text)\n if (!frame.success) {\n throw streamError('contract', 'Agent event stream received data outside its API contract', {\n cause: frame.error,\n })\n }\n return frame.data\n}\n\nfunction isErrorFrame(data: AgentEventStreamData): data is ApiErrorBody {\n return zErrorResponse.safeParse(data).success\n}\n\nfunction durableSequence(data: AgentEventStreamData): number | undefined {\n const cursor = zDurableCursor.safeParse(data)\n return cursor.success ? cursor.data.sequence : undefined\n}\n\nexport async function* openAgentEventStream({\n client,\n path,\n query,\n headers,\n signal,\n onConnectionStateChange,\n}: OpenAgentEventStreamOptions): AsyncGenerator<AgentEventStreamFrame> {\n let cursor: number | undefined\n let consecutiveFailures = 0\n let hasRetried = false\n\n while (true) {\n let connectedAt: number | undefined\n try {\n const connection = openConnection(\n client,\n {\n path,\n query,\n headers: cursor == null ? headers : { ...headers, 'Last-Event-ID': cursor },\n },\n signal,\n )\n for await (const event of connection) {\n if (event.kind === 'connected') {\n connectedAt = Date.now()\n onConnectionStateChange?.({ state: 'connected', reconnected: hasRetried })\n continue\n }\n const data = decodeFrame(event.data)\n signal?.throwIfAborted()\n if (isErrorFrame(data)) throw streamError('api', data.error, { code: data.code })\n const sequence = durableSequence(data)\n if (sequence != null && cursor != null && sequence <= cursor) continue\n yield data\n consecutiveFailures = 0\n if (sequence != null) cursor = sequence\n }\n } catch (error) {\n if (signal?.aborted === true) return\n if (!(error instanceof AgentEventStreamError) || !retryable(error)) throw error\n if (connectedAt != null && Date.now() - connectedAt >= stableConnectionResetMs) {\n consecutiveFailures = 0\n }\n consecutiveFailures += 1\n const delayMs = Math.max(reconnectDelay(consecutiveFailures), error.retryAfterMs ?? 0)\n onConnectionStateChange?.({\n state: 'reconnecting',\n attempt: consecutiveFailures,\n delayMs,\n error,\n })\n hasRetried = true\n if (!(await abortableDelay(delayMs, signal))) return\n }\n }\n}\n","export interface ServerSentEventParser {\n push(chunk: string): string[]\n}\n\n// Dispatch rules: https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation\nexport function createServerSentEventParser(): ServerSentEventParser {\n // The message in progress is kept as chunks so a large frame is never rescanned or recopied.\n let parts: string[] = []\n let pendingCarriageReturn = false\n return {\n push(chunk) {\n if (chunk === '') return []\n // A CR that ended the previous chunk already counted as a line ending; drop the LF that pairs with it.\n let text = pendingCarriageReturn && chunk.startsWith('\\n') ? chunk.slice(1) : chunk\n pendingCarriageReturn = chunk.endsWith('\\r')\n text = text.replaceAll(/\\r\\n?/g, '\\n')\n // A blank line can straddle chunks: move a buffered trailing LF into this chunk so one scan sees it.\n const last = parts.at(-1)\n if (last?.endsWith('\\n') === true) {\n parts[parts.length - 1] = last.slice(0, -1)\n text = `\\n${text}`\n }\n const messages: string[] = []\n let from = 0\n for (let end = text.indexOf('\\n\\n'); end !== -1; end = text.indexOf('\\n\\n', from)) {\n const data = messageData(parts.join('') + text.slice(from, end))\n parts = []\n if (data != null) messages.push(data)\n from = end + 2\n }\n if (from < text.length) parts.push(text.slice(from))\n return messages\n },\n }\n}\n\nfunction messageData(block: string): string | undefined {\n const data: string[] = []\n for (const line of block.split('\\n')) {\n if (line !== 'data' && !line.startsWith('data:')) continue\n const value = line.slice('data:'.length)\n data.push(value.startsWith(' ') ? value.slice(1) : value)\n }\n return data.length === 0 ? undefined : data.join('\\n')\n}\n","export interface AuthStrategy {\n authenticate(request: Request): void | Promise<void>\n}\n\ntype TokenResolver = () => string | Promise<string>\n\nfunction isTokenResolver(token: string | TokenResolver): token is TokenResolver {\n return typeof token === 'function'\n}\n\nexport function bearerToken(token: string | TokenResolver): AuthStrategy {\n const resolve = isTokenResolver(token) ? token : () => token\n return {\n async authenticate(request) {\n const value = await resolve()\n if (value) request.headers.set('Authorization', `Bearer ${value}`)\n },\n }\n}\n","import type { PersonalAccessToken } from './generated/types.gen'\n\nconst cliLoginTokenPrefix = 'Omnara CLI'\nconst cliLoginTokenHostSeparator = ' on '\n\nexport function cliLoginTokenName(hostName?: string): string {\n if (hostName === undefined) return cliLoginTokenPrefix\n return `${cliLoginTokenPrefix}${cliLoginTokenHostSeparator}${hostName}`\n}\n\nexport function isCliLoginToken(token: PersonalAccessToken): boolean {\n return token.revoked_at == null && token.name.startsWith(cliLoginTokenPrefix)\n}\n\nexport function cliLoginTokenHost(token: PersonalAccessToken): string {\n const rest = token.name.slice(cliLoginTokenPrefix.length)\n if (!rest.startsWith(cliLoginTokenHostSeparator)) return token.name\n const host = rest.slice(cliLoginTokenHostSeparator.length).trim()\n return host === '' ? token.name : host\n}\n","import * as z from 'zod'\n\nimport type { AuthStrategy } from './auth'\nimport { ApiError } from './errors'\nimport { createClient, createConfig, formDataBodySerializer } from './generated/client'\nimport { client as specDefaultClient } from './generated/client.gen'\nimport type { BodySerializer } from './generated/core/bodySerializer.gen'\n\nexport type OmnaraClient = ReturnType<typeof createClient>\n\nexport interface OmnaraClientOptions {\n baseUrl?: string\n credentials?: RequestCredentials\n auth?: AuthStrategy\n headers?: Record<string, string>\n fetch?: typeof fetch\n}\n\ntype HttpMethod =\n 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace'\n\nconst httpMethods = [\n 'connect',\n 'delete',\n 'get',\n 'head',\n 'options',\n 'patch',\n 'post',\n 'put',\n 'trace',\n] satisfies HttpMethod[]\n\nconst zMultipartPart = z.union([\n z.string(),\n z.instanceof(Blob),\n z.date().transform((date) => date.toISOString()),\n z.union([z.number(), z.boolean(), z.bigint()]).transform(String),\n z.json().transform((value) => new Blob([JSON.stringify(value)], { type: 'application/json' })),\n])\n\nconst zMultipartBody = z.record(\n z.string(),\n z.union([z.array(zMultipartPart), zMultipartPart]).nullish(),\n)\n\nconst serializeMultipartBody = ((body) => {\n const form = new FormData()\n for (const [key, value] of Object.entries(zMultipartBody.parse(body))) {\n if (value === null || value === undefined) continue\n for (const part of Array.isArray(value) ? value : [value]) form.append(key, part)\n }\n return form\n}) satisfies BodySerializer\n\nfunction normalizeRequestOptions<O extends object>(options: O): O {\n const normalized: O & { bodySerializer?: unknown } = { ...options }\n Reflect.deleteProperty(normalized, 'client')\n if (normalized.bodySerializer === formDataBodySerializer.bodySerializer) {\n normalized.bodySerializer = serializeMultipartBody\n }\n return normalized\n}\n\n// Drop the reserved Request init key until https://github.com/hey-api/hey-api/issues/4177\n// is fixed upstream. Generated operations can bypass createOmnaraClient via the default client.\nfunction patchGeneratedRequests(client: OmnaraClient): void {\n const { request } = client\n client.request = (options) => request(normalizeRequestOptions(options))\n for (const method of httpMethods) {\n const dispatch = client[method]\n client[method] = (options) => dispatch(normalizeRequestOptions(options))\n const sseDispatch = client.sse[method]\n client.sse[method] = (options) => sseDispatch(normalizeRequestOptions(options))\n }\n}\n\npatchGeneratedRequests(specDefaultClient)\n\nexport function createOmnaraClient(options: OmnaraClientOptions = {}): OmnaraClient {\n const client = createClient(\n createConfig({\n throwOnError: true,\n }),\n )\n client.setConfig({\n baseUrl: options.baseUrl ?? specDefaultClient.getConfig().baseUrl,\n credentials: options.credentials,\n headers: options.headers,\n fetch: options.fetch,\n })\n const { auth } = options\n if (auth) {\n client.interceptors.request.use(async (request) => {\n await auth.authenticate(request)\n return request\n })\n }\n client.interceptors.response.use(async (response) => {\n if (!response.ok) throw await ApiError.fromResponse(response)\n return response\n })\n patchGeneratedRequests(client)\n return client\n}\n","import * as z from 'zod'\n\nimport { ApiError } from './errors'\nimport { zJsonText } from './json-body'\n\nexport const OMNARA_CLI_OAUTH_CLIENT_ID = 'omnara-cli'\nexport const OAUTH_DEVICE_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:device_code'\n\nconst zAuthorizationServerMetadata = z.object({\n issuer: z.url(),\n device_authorization_endpoint: z.url(),\n token_endpoint: z.url(),\n grant_types_supported: z.array(z.string()),\n token_endpoint_auth_methods_supported: z.array(z.string()),\n})\n\nconst zDeviceAuthStartResponse = z.object({\n device_code: z.string().min(1),\n user_code: z.string().min(1),\n verification_uri: z.string().min(1),\n verification_uri_complete: z.string().min(1),\n expires_in: z.number().int().positive(),\n interval: z.number().int().positive(),\n})\n\nconst zDeviceAuthErrorResponse = z.object({\n error: z.string().min(1),\n error_description: z.string().optional(),\n})\nconst zDeviceAuthFailure = zJsonText.pipe(zDeviceAuthErrorResponse)\n\nconst zDeviceAuthApprovedResponse = z.object({\n access_token: z.string().min(1),\n token_type: z.string(),\n})\n\nexport type DeviceAuthFailureCode = 'access_denied' | 'expired_token'\n\nconst DEVICE_AUTH_FAILURE_MESSAGES = {\n access_denied: 'the login request was denied',\n expired_token: 'the login request expired before it was approved',\n} satisfies Record<DeviceAuthFailureCode, string>\n\nexport class DeviceAuthError extends Error {\n readonly code: DeviceAuthFailureCode\n\n constructor(code: DeviceAuthFailureCode) {\n super(DEVICE_AUTH_FAILURE_MESSAGES[code])\n this.name = 'DeviceAuthError'\n this.code = code\n }\n}\n\nexport interface DeviceAuthStart {\n deviceCode: string\n userCode: string\n verificationUri: string\n verificationUriComplete: string\n expiresInSeconds: number\n intervalSeconds: number\n tokenEndpoint: string\n clientId: string\n}\n\nasync function postOAuthForm(\n fetchImpl: typeof fetch,\n endpoint: string,\n body: URLSearchParams,\n): Promise<Response> {\n return fetchImpl(endpoint, {\n method: 'POST',\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n body: body.toString(),\n })\n}\n\nexport interface StartDeviceAuthOptions {\n issuerUrl: string\n clientId: string\n tokenName?: string\n fetch?: typeof fetch\n}\n\nfunction normalizeIssuer(raw: string): string {\n const issuer = new URL(raw)\n if (\n issuer.username !== '' ||\n issuer.password !== '' ||\n issuer.pathname !== '/' ||\n issuer.search !== '' ||\n issuer.hash !== ''\n ) {\n throw new Error('authorization server issuer must be an origin')\n }\n return issuer.origin\n}\n\nexport async function startDeviceAuth(options: StartDeviceAuthOptions): Promise<DeviceAuthStart> {\n const fetchImpl = options.fetch ?? fetch\n const expectedIssuer = normalizeIssuer(options.issuerUrl)\n const metadataUrl = new URL('/.well-known/oauth-authorization-server', `${expectedIssuer}/`)\n const metadataResponse = await fetchImpl(metadataUrl, { headers: { Accept: 'application/json' } })\n if (!metadataResponse.ok) throw await ApiError.fromResponse(metadataResponse)\n const metadata = zAuthorizationServerMetadata.parse(await metadataResponse.json())\n if (normalizeIssuer(metadata.issuer) !== expectedIssuer) {\n throw new Error(\n `authorization server issuer mismatch: expected ${expectedIssuer}, received ${metadata.issuer}`,\n )\n }\n if (!metadata.grant_types_supported.includes(OAUTH_DEVICE_GRANT_TYPE)) {\n throw new Error('authorization server does not support the OAuth device grant')\n }\n if (!metadata.token_endpoint_auth_methods_supported.includes('none')) {\n throw new Error('authorization server does not support public OAuth clients')\n }\n const body = new URLSearchParams({ client_id: options.clientId })\n if (options.tokenName !== undefined) body.set('token_name', options.tokenName)\n const response = await postOAuthForm(fetchImpl, metadata.device_authorization_endpoint, body)\n if (!response.ok) throw await ApiError.fromResponse(response)\n const data = zDeviceAuthStartResponse.parse(await response.json())\n return {\n deviceCode: data.device_code,\n userCode: data.user_code,\n verificationUri: new URL(data.verification_uri, metadata.issuer).toString(),\n verificationUriComplete: new URL(data.verification_uri_complete, metadata.issuer).toString(),\n expiresInSeconds: data.expires_in,\n intervalSeconds: data.interval,\n tokenEndpoint: metadata.token_endpoint,\n clientId: options.clientId,\n }\n}\n\nfunction defaultSleep(seconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, seconds * 1000))\n}\n\nexport interface PollDeviceAuthTokenOptions {\n tokenEndpoint: string\n clientId: string\n deviceCode: string\n intervalSeconds: number\n fetch?: typeof fetch\n sleep?: (seconds: number) => Promise<void>\n}\n\nexport async function pollDeviceAuthToken(options: PollDeviceAuthTokenOptions): Promise<string> {\n const fetchImpl = options.fetch ?? fetch\n const sleep = options.sleep ?? defaultSleep\n let interval = options.intervalSeconds\n while (true) {\n await sleep(interval)\n const response = await postOAuthForm(\n fetchImpl,\n options.tokenEndpoint,\n new URLSearchParams({\n grant_type: OAUTH_DEVICE_GRANT_TYPE,\n device_code: options.deviceCode,\n client_id: options.clientId,\n }),\n )\n if (response.status === 200) {\n return zDeviceAuthApprovedResponse.parse(await response.json()).access_token\n }\n if (response.status === 400) {\n const failure = zDeviceAuthFailure.safeParse(await response.clone().text())\n if (failure.success) {\n if (failure.data.error === 'authorization_pending') continue\n if (failure.data.error === 'slow_down') {\n interval += 5\n continue\n }\n if (failure.data.error === 'access_denied' || failure.data.error === 'expired_token') {\n throw new DeviceAuthError(failure.data.error)\n }\n }\n }\n throw await ApiError.fromResponse(response)\n }\n}\n","export const MAX_MEMORY_FILE_BYTES = 10 * 1024 * 1024\nexport const FILE_DIGEST_HEADER = 'X-Omnara-File-Digest'\n","import * as z from 'zod'\n\nimport type {\n CreateIntegrationRequest,\n IntegrationKind,\n IntegrationProviderConfig,\n IntegrationSettings,\n UpdateIntegrationRequest,\n} from './generated/types.gen'\nimport { zAgentProfileId, zIntegrationName } from './generated/zod.gen'\n\nconst discordPublicKeyPattern = '[a-fA-F0-9]{64}'\nconst discordPublicKey = z.string().regex(new RegExp(`^${discordPublicKeyPattern}$`))\nconst profilesSchema = z\n .array(zAgentProfileId)\n .max(16)\n .refine((ids) => new Set(ids).size === ids.length, 'Choose each profile only once.')\nconst repositorySchema = z\n .string()\n .trim()\n .regex(/^[1-9][0-9]*$/, 'Enter a positive repository ID without leading zeros.')\n .refine((id) => BigInt(id) <= 9223372036854775807n, 'The repository ID is too large.')\nconst triggerSchema = z.enum(['mention', 'pull_request_opened', 'both'])\nconst chatLauncherSchema = z.object({ profiles: profilesSchema.min(1) }).strict()\nconst githubLauncherSchema = z\n .object({\n profile: zAgentProfileId,\n trigger: triggerSchema,\n repository_id: repositorySchema.optional(),\n })\n .strict()\n\nexport type ChatIntegrationLauncher = z.output<typeof chatLauncherSchema>\nexport type GitHubIntegrationLauncher = z.output<typeof githubLauncherSchema>\n\nexport function chatIntegrationLauncher(settings: IntegrationSettings) {\n return settings.launcher === undefined ? undefined : chatLauncherSchema.parse(settings.launcher)\n}\n\nexport function githubIntegrationSettings(settings: IntegrationSettings) {\n return {\n launcher:\n settings.launcher === undefined ? undefined : githubLauncherSchema.parse(settings.launcher),\n code_write: settings.code_write === true,\n }\n}\n\nexport function profileIntegrationProfiles(integration: {\n integration_kind: IntegrationKind\n settings: IntegrationSettings\n}) {\n if (integration.integration_kind === 'github_pr') {\n const launcher = githubIntegrationSettings(integration.settings).launcher\n return launcher ? [launcher.profile] : []\n }\n return chatIntegrationLauncher(integration.settings)?.profiles ?? []\n}\n\nexport function profileIntegrationDiscordKeyStatus(input: {\n integrationKind?: IntegrationKind\n launcher: boolean\n interactions: boolean\n providerConfig?: IntegrationProviderConfig\n}) {\n const required =\n input.integrationKind === 'discord_thread' && (input.launcher || input.interactions)\n return {\n required,\n missing: required && !discordPublicKey.safeParse(input.providerConfig?.public_key).success,\n pattern: discordPublicKeyPattern,\n }\n}\n\nexport function profileIntegrationSetup(input: {\n integrationKind: IntegrationKind\n name: string\n profileId?: string\n profileIds?: readonly string[]\n launcher?: boolean\n repositoryId?: string\n trigger?: GitHubIntegrationLauncher['trigger']\n}): CreateIntegrationRequest {\n const settings: IntegrationSettings = {}\n if (input.launcher !== false) {\n const profiles = profilesSchema\n .min(1, 'Choose at least one profile.')\n .parse(input.profileIds ?? (input.profileId ? [input.profileId] : []))\n if (input.integrationKind === 'github_pr') {\n if (profiles.length !== 1) throw new Error('GitHub requires exactly one profile.')\n settings.launcher = githubLauncherSchema.parse({\n profile: profiles[0],\n trigger: input.trigger ?? 'both',\n repository_id: input.repositoryId === '' ? undefined : input.repositoryId,\n })\n } else {\n if (input.repositoryId || (input.trigger && input.trigger !== 'mention'))\n throw new Error('Chat launchers start from mentions.')\n settings.launcher = chatLauncherSchema.parse({ profiles })\n }\n }\n const name = zIntegrationName.safeParse(input.name.trim())\n if (!name.success)\n throw new Error('Use 1–32 letters, numbers or hyphens, starting with a letter.')\n return { name: name.data, integration_kind: input.integrationKind, settings }\n}\n\nexport function profileIntegrationProfileUpdate(\n integration: Pick<CreateIntegrationRequest, 'integration_kind' | 'settings'>,\n profileIds: readonly string[],\n): UpdateIntegrationRequest {\n if (!['slack_thread', 'discord_thread'].includes(integration.integration_kind))\n throw new Error('Profile editing requires a Slack or Discord integration.')\n const profiles = profilesSchema.parse(profileIds)\n const settings = { ...integration.settings }\n if (profiles.length === 0) delete settings.launcher\n else settings.launcher = { profiles }\n return { settings }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY,OAAO;;;ACKZ,SAAS,8BAAqD;AAEnE,MAAI,QAAkB,CAAC;AACvB,MAAI,wBAAwB;AAC5B,SAAO;AAAA,IACL,KAAK,OAAO;AACV,UAAI,UAAU,GAAI,QAAO,CAAC;AAE1B,UAAI,OAAO,yBAAyB,MAAM,WAAW,IAAI,IAAI,MAAM,MAAM,CAAC,IAAI;AAC9E,8BAAwB,MAAM,SAAS,IAAI;AAC3C,aAAO,KAAK,WAAW,UAAU,IAAI;AAErC,YAAM,OAAO,MAAM,GAAG,EAAE;AACxB,UAAI,MAAM,SAAS,IAAI,MAAM,MAAM;AACjC,cAAM,MAAM,SAAS,CAAC,IAAI,KAAK,MAAM,GAAG,EAAE;AAC1C,eAAO;AAAA,EAAK,IAAI;AAAA,MAClB;AACA,YAAM,WAAqB,CAAC;AAC5B,UAAI,OAAO;AACX,eAAS,MAAM,KAAK,QAAQ,MAAM,GAAG,QAAQ,IAAI,MAAM,KAAK,QAAQ,QAAQ,IAAI,GAAG;AACjF,cAAM,OAAO,YAAY,MAAM,KAAK,EAAE,IAAI,KAAK,MAAM,MAAM,GAAG,CAAC;AAC/D,gBAAQ,CAAC;AACT,YAAI,QAAQ,KAAM,UAAS,KAAK,IAAI;AACpC,eAAO,MAAM;AAAA,MACf;AACA,UAAI,OAAO,KAAK,OAAQ,OAAM,KAAK,KAAK,MAAM,IAAI,CAAC;AACnD,aAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,SAAS,YAAY,OAAmC;AACtD,QAAM,OAAiB,CAAC;AACxB,aAAW,QAAQ,MAAM,MAAM,IAAI,GAAG;AACpC,QAAI,SAAS,UAAU,CAAC,KAAK,WAAW,OAAO,EAAG;AAClD,UAAM,QAAQ,KAAK,MAAM,QAAQ,MAAM;AACvC,SAAK,KAAK,MAAM,WAAW,GAAG,I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,UAAI,MAAM,gBAAiB,MAAM,WAAW,MAAM,YAAY;AAC5D,cAAM,IAAI,MAAM,qCAAqC;AACvD,eAAS,WAAW,mBAAmB,MAAM,EAAE,SAAS,CAAC;AAAA,IAC3D;AAAA,EACF;AACA,QAAM,OAAO,iBAAiB,UAAU,MAAM,KAAK,KAAK,CAAC;AACzD,MAAI,CAAC,KAAK;AACR,UAAM,IAAI,MAAM,oEAA+D;AACjF,SAAO,EAAE,MAAM,KAAK,MAAM,kBAAkB,MAAM,iBAAiB,SAAS;AAC9E;AAEO,SAAS,gCACd,aACA,YAC0B;AAC1B,MAAI,CAAC,CAAC,gBAAgB,gBAAgB,EAAE,SAAS,YAAY,gBAAgB;AAC3E,UAAM,IAAI,MAAM,0DAA0D;AAC5E,QAAM,WAAW,eAAe,MAAM,UAAU;AAChD,QAAM,WAAW,EAAE,GAAG,YAAY,SAAS;AAC3C,MAAI,SAAS,WAAW,EAAG,QAAO,SAAS;AAAA,MACtC,UAAS,WAAW,EAAE,SAAS;AACpC,SAAO,EAAE,SAAS;AACpB;","names":["client","z","date","client","z","z"]}
1
+ {"version":3,"sources":["../src/agent-event-stream.ts","../src/server-sent-events.ts","../src/auth.ts","../src/cli-login-token.ts","../src/client.ts","../src/device.ts","../src/memory.ts","../src/profile-integration.ts"],"sourcesContent":["import * as z from 'zod'\n\nimport type { OmnaraClient } from './client'\nimport { ApiError, type ApiErrorCode, zErrorResponse } from './errors'\nimport type {\n AgentEventStreamData,\n Error as ApiErrorBody,\n StreamEventsData,\n} from './generated/types.gen'\nimport { zAgentSequence, zStreamEventsResponse } from './generated/zod.gen'\nimport { zJsonText } from './json-body'\nimport { createServerSentEventParser } from './server-sent-events'\nimport { relaxedSchema } from './validate-response'\n\nexport type AgentEventStreamFrame = Exclude<AgentEventStreamData, ApiErrorBody>\nexport type AgentEventStreamErrorKind = 'api' | 'client' | 'contract' | 'http' | 'transport'\n\nexport class AgentEventStreamError extends Error {\n readonly kind: AgentEventStreamErrorKind\n readonly status: number | undefined\n readonly code: ApiErrorCode | undefined\n readonly retryAfterMs: number | undefined\n\n constructor({\n kind,\n message,\n status,\n code,\n retryAfterMs,\n cause,\n }: {\n kind: AgentEventStreamErrorKind\n message: string\n status?: number\n code?: ApiErrorCode\n retryAfterMs?: number\n cause?: unknown\n }) {\n super(message, { cause })\n this.name = 'AgentEventStreamError'\n this.kind = kind\n this.status = status\n this.code = code\n this.retryAfterMs = retryAfterMs\n }\n}\n\nexport type AgentEventStreamConnectionState =\n | { state: 'connected'; reconnected: boolean }\n | {\n state: 'reconnecting'\n attempt: number\n delayMs: number\n error: AgentEventStreamError\n }\n\nexport interface OpenAgentEventStreamOptions {\n client: OmnaraClient\n path: StreamEventsData['path']\n query?: StreamEventsData['query']\n headers?: StreamEventsData['headers']\n signal?: AbortSignal\n onConnectionStateChange?: (state: AgentEventStreamConnectionState) => void\n}\n\nconst streamUrl: StreamEventsData['url'] =\n '/orgs/{orgID}/projects/{projectID}/agents/{agentID}/events/stream'\nconst retryBaseDelayMs = 1_000\nconst retryMaximumDelayMs = 30_000\nconst retryAfterMaximumDelayMs = 60_000\nconst stableConnectionResetMs = 10_000\n// Must stay above the server heartbeat interval (agentEventStreamHeartbeatInterval in\n// internal/httpapi/agent_runtime_routes.go); a quieter server would look stalled.\nconst stallTimeoutMs = 35_000\n\n// event_kind stays open so kinds newer than this SDK still advance the cursor.\nconst zDurableCursor = z.object({\n event_kind: z.string(),\n sequence: zAgentSequence,\n})\nconst relaxedStreamEvent = relaxedSchema(zStreamEventsResponse)\nconst zStreamFrame = zJsonText.pipe(relaxedStreamEvent)\n\nfunction streamError(\n kind: AgentEventStreamErrorKind,\n message: string,\n options: { status?: number; code?: ApiErrorCode; retryAfterMs?: number; cause?: unknown } = {},\n): AgentEventStreamError {\n return new AgentEventStreamError({ kind, message, ...options })\n}\n\nfunction retryable(error: AgentEventStreamError): boolean {\n if (error.kind === 'transport') return true\n if (error.kind === 'api') return error.code === 'service_unavailable'\n return (\n error.kind === 'http' &&\n (error.status === 408 || error.status === 429 || (error.status != null && error.status >= 500))\n )\n}\n\nfunction reconnectDelay(attempt: number): number {\n const maximum = Math.min(retryBaseDelayMs * 2 ** Math.max(attempt - 1, 0), retryMaximumDelayMs)\n return Math.floor(Math.random() * maximum)\n}\n\nfunction abortableDelay(ms: number, signal?: AbortSignal): Promise<boolean> {\n if (signal?.aborted === true) return Promise.resolve(false)\n return new Promise((resolve) => {\n const timeout = globalThis.setTimeout(() => {\n finish(true)\n }, ms)\n const onAbort = () => {\n finish(false)\n }\n function finish(completed: boolean) {\n globalThis.clearTimeout(timeout)\n signal?.removeEventListener('abort', onAbort)\n resolve(completed)\n }\n signal?.addEventListener('abort', onAbort, { once: true })\n })\n}\n\ntype ConnectionEvent = { kind: 'connected' } | { kind: 'message'; data: string }\ntype ConnectionOptions = Pick<OpenAgentEventStreamOptions, 'path' | 'query' | 'headers'>\n\nasync function settleWithin<T>(\n pending: Promise<T>,\n ms: number,\n attempt: AbortController,\n): Promise<T> {\n let timer: ReturnType<typeof globalThis.setTimeout> | undefined\n const deadline = new Promise<never>((_, reject) => {\n timer = globalThis.setTimeout(() => {\n const error = streamError('transport', 'Agent event stream stalled')\n attempt.abort(error)\n reject(error)\n }, ms)\n })\n try {\n return await Promise.race([pending, deadline])\n } finally {\n globalThis.clearTimeout(timer)\n }\n}\n\nasync function* openConnection(\n client: OmnaraClient,\n { path, query, headers }: ConnectionOptions,\n callerSignal: AbortSignal | undefined,\n): AsyncGenerator<ConnectionEvent, never> {\n const attempt = new AbortController()\n const signal =\n callerSignal == null ? attempt.signal : AbortSignal.any([callerSignal, attempt.signal])\n let reader: ReadableStreamDefaultReader<Uint8Array> | undefined\n try {\n const dispatch = { started: false }\n const { error, response }: { error?: unknown; response?: Response } = await settleWithin(\n client.request({\n method: 'GET',\n url: streamUrl,\n path,\n query,\n headers: { Accept: 'text/event-stream', ...headers },\n parseAs: 'stream',\n signal,\n throwOnError: false,\n fetch: (input, init) => {\n dispatch.started = true\n return (client.getConfig().fetch ?? globalThis.fetch)(input, init)\n },\n }),\n stallTimeoutMs,\n attempt,\n )\n if (response == null) {\n throw dispatch.started\n ? streamError('transport', 'Agent event stream disconnected', { cause: error })\n : streamError('client', 'Agent event stream request could not be prepared', {\n cause: error,\n })\n }\n if (response.status !== 200) {\n const apiError = await ApiError.fromResponse(response)\n await response.body?.cancel().catch(() => undefined)\n throw streamError('http', apiError.message, {\n status: response.status,\n code: apiError.code,\n retryAfterMs:\n apiError.retryAfterMs === undefined\n ? undefined\n : Math.min(apiError.retryAfterMs, retryAfterMaximumDelayMs),\n cause: apiError,\n })\n }\n if (error !== undefined) {\n throw streamError('client', 'Agent event stream response was rejected', { cause: error })\n }\n const mediaType = response.headers.get('Content-Type')?.split(';', 1)[0]?.trim().toLowerCase()\n if (mediaType !== 'text/event-stream') {\n await response.body?.cancel().catch(() => undefined)\n throw streamError('contract', 'Agent event stream response is not text/event-stream')\n }\n if (response.body == null) {\n throw streamError('contract', 'Agent event stream response has no body')\n }\n reader = response.body.getReader()\n signal.throwIfAborted()\n yield { kind: 'connected' }\n const parser = createServerSentEventParser()\n const decoder = new TextDecoder()\n while (true) {\n signal.throwIfAborted()\n const chunk = await settleWithin(reader.read(), stallTimeoutMs, attempt)\n if (chunk.done) throw streamError('transport', 'Agent event stream ended unexpectedly')\n for (const data of parser.push(decoder.decode(chunk.value, { stream: true }))) {\n yield { kind: 'message', data }\n }\n }\n } catch (error) {\n throw error instanceof AgentEventStreamError\n ? error\n : streamError('transport', 'Agent event stream disconnected', { cause: error })\n } finally {\n await reader?.cancel().catch(() => undefined)\n }\n}\n\nfunction decodeFrame(text: string): AgentEventStreamData {\n const frame = zStreamFrame.safeParse(text)\n if (!frame.success) {\n throw streamError('contract', 'Agent event stream received data outside its API contract', {\n cause: frame.error,\n })\n }\n return frame.data\n}\n\nfunction isErrorFrame(data: AgentEventStreamData): data is ApiErrorBody {\n return zErrorResponse.safeParse(data).success\n}\n\nfunction durableSequence(data: AgentEventStreamData): number | undefined {\n const cursor = zDurableCursor.safeParse(data)\n return cursor.success ? cursor.data.sequence : undefined\n}\n\nexport async function* openAgentEventStream({\n client,\n path,\n query,\n headers,\n signal,\n onConnectionStateChange,\n}: OpenAgentEventStreamOptions): AsyncGenerator<AgentEventStreamFrame> {\n let cursor: number | undefined\n let consecutiveFailures = 0\n let hasRetried = false\n\n while (true) {\n let connectedAt: number | undefined\n try {\n const connection = openConnection(\n client,\n {\n path,\n query,\n headers: cursor == null ? headers : { ...headers, 'Last-Event-ID': cursor },\n },\n signal,\n )\n for await (const event of connection) {\n if (event.kind === 'connected') {\n connectedAt = Date.now()\n onConnectionStateChange?.({ state: 'connected', reconnected: hasRetried })\n continue\n }\n const data = decodeFrame(event.data)\n signal?.throwIfAborted()\n if (isErrorFrame(data)) throw streamError('api', data.error, { code: data.code })\n const sequence = durableSequence(data)\n if (sequence != null && cursor != null && sequence <= cursor) continue\n yield data\n consecutiveFailures = 0\n if (sequence != null) cursor = sequence\n }\n } catch (error) {\n if (signal?.aborted === true) return\n if (!(error instanceof AgentEventStreamError) || !retryable(error)) throw error\n if (connectedAt != null && Date.now() - connectedAt >= stableConnectionResetMs) {\n consecutiveFailures = 0\n }\n consecutiveFailures += 1\n const delayMs = Math.max(reconnectDelay(consecutiveFailures), error.retryAfterMs ?? 0)\n onConnectionStateChange?.({\n state: 'reconnecting',\n attempt: consecutiveFailures,\n delayMs,\n error,\n })\n hasRetried = true\n if (!(await abortableDelay(delayMs, signal))) return\n }\n }\n}\n","export interface ServerSentEventParser {\n push(chunk: string): string[]\n}\n\n// Dispatch rules: https://html.spec.whatwg.org/multipage/server-sent-events.html#event-stream-interpretation\nexport function createServerSentEventParser(): ServerSentEventParser {\n // The message in progress is kept as chunks so a large frame is never rescanned or recopied.\n let parts: string[] = []\n let pendingCarriageReturn = false\n return {\n push(chunk) {\n if (chunk === '') return []\n // A CR that ended the previous chunk already counted as a line ending; drop the LF that pairs with it.\n let text = pendingCarriageReturn && chunk.startsWith('\\n') ? chunk.slice(1) : chunk\n pendingCarriageReturn = chunk.endsWith('\\r')\n text = text.replaceAll(/\\r\\n?/g, '\\n')\n // A blank line can straddle chunks: move a buffered trailing LF into this chunk so one scan sees it.\n const last = parts.at(-1)\n if (last?.endsWith('\\n') === true) {\n parts[parts.length - 1] = last.slice(0, -1)\n text = `\\n${text}`\n }\n const messages: string[] = []\n let from = 0\n for (let end = text.indexOf('\\n\\n'); end !== -1; end = text.indexOf('\\n\\n', from)) {\n const data = messageData(parts.join('') + text.slice(from, end))\n parts = []\n if (data != null) messages.push(data)\n from = end + 2\n }\n if (from < text.length) parts.push(text.slice(from))\n return messages\n },\n }\n}\n\nfunction messageData(block: string): string | undefined {\n const data: string[] = []\n for (const line of block.split('\\n')) {\n if (line !== 'data' && !line.startsWith('data:')) continue\n const value = line.slice('data:'.length)\n data.push(value.startsWith(' ') ? value.slice(1) : value)\n }\n return data.length === 0 ? undefined : data.join('\\n')\n}\n","export interface AuthStrategy {\n authenticate(request: Request): void | Promise<void>\n}\n\ntype TokenResolver = () => string | Promise<string>\n\nfunction isTokenResolver(token: string | TokenResolver): token is TokenResolver {\n return typeof token === 'function'\n}\n\nexport function bearerToken(token: string | TokenResolver): AuthStrategy {\n const resolve = isTokenResolver(token) ? token : () => token\n return {\n async authenticate(request) {\n const value = await resolve()\n if (value) request.headers.set('Authorization', `Bearer ${value}`)\n },\n }\n}\n","import type { PersonalAccessToken } from './generated/types.gen'\n\nconst cliLoginTokenPrefix = 'Omnara CLI'\nconst cliLoginTokenHostSeparator = ' on '\n\nexport function cliLoginTokenName(hostName?: string): string {\n if (hostName === undefined) return cliLoginTokenPrefix\n return `${cliLoginTokenPrefix}${cliLoginTokenHostSeparator}${hostName}`\n}\n\nexport function isCliLoginToken(token: PersonalAccessToken): boolean {\n return token.revoked_at == null && token.name.startsWith(cliLoginTokenPrefix)\n}\n\nexport function cliLoginTokenHost(token: PersonalAccessToken): string {\n const rest = token.name.slice(cliLoginTokenPrefix.length)\n if (!rest.startsWith(cliLoginTokenHostSeparator)) return token.name\n const host = rest.slice(cliLoginTokenHostSeparator.length).trim()\n return host === '' ? token.name : host\n}\n","import * as z from 'zod'\n\nimport type { AuthStrategy } from './auth'\nimport { ApiError } from './errors'\nimport { createClient, createConfig, formDataBodySerializer } from './generated/client'\nimport { client as specDefaultClient } from './generated/client.gen'\nimport type { BodySerializer } from './generated/core/bodySerializer.gen'\n\nexport type OmnaraClient = ReturnType<typeof createClient>\n\nexport interface OmnaraClientOptions {\n baseUrl?: string\n credentials?: RequestCredentials\n auth?: AuthStrategy\n headers?: Record<string, string>\n fetch?: typeof fetch\n}\n\ntype HttpMethod =\n 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace'\n\nconst httpMethods = [\n 'connect',\n 'delete',\n 'get',\n 'head',\n 'options',\n 'patch',\n 'post',\n 'put',\n 'trace',\n] satisfies HttpMethod[]\n\nconst zMultipartPart = z.union([\n z.string(),\n z.instanceof(Blob),\n z.date().transform((date) => date.toISOString()),\n z.union([z.number(), z.boolean(), z.bigint()]).transform(String),\n z.json().transform((value) => new Blob([JSON.stringify(value)], { type: 'application/json' })),\n])\n\nconst zMultipartBody = z.record(\n z.string(),\n z.union([z.array(zMultipartPart), zMultipartPart]).nullish(),\n)\n\nconst serializeMultipartBody = ((body) => {\n const form = new FormData()\n for (const [key, value] of Object.entries(zMultipartBody.parse(body))) {\n if (value === null || value === undefined) continue\n for (const part of Array.isArray(value) ? value : [value]) form.append(key, part)\n }\n return form\n}) satisfies BodySerializer\n\nfunction normalizeRequestOptions<O extends object>(options: O): O {\n const normalized: O & { bodySerializer?: unknown } = { ...options }\n Reflect.deleteProperty(normalized, 'client')\n if (normalized.bodySerializer === formDataBodySerializer.bodySerializer) {\n normalized.bodySerializer = serializeMultipartBody\n }\n return normalized\n}\n\n// Drop the reserved Request init key until https://github.com/hey-api/hey-api/issues/4177\n// is fixed upstream. Generated operations can bypass createOmnaraClient via the default client.\nfunction patchGeneratedRequests(client: OmnaraClient): void {\n const { request } = client\n client.request = (options) => request(normalizeRequestOptions(options))\n for (const method of httpMethods) {\n const dispatch = client[method]\n client[method] = (options) => dispatch(normalizeRequestOptions(options))\n const sseDispatch = client.sse[method]\n client.sse[method] = (options) => sseDispatch(normalizeRequestOptions(options))\n }\n}\n\npatchGeneratedRequests(specDefaultClient)\n\nexport function createOmnaraClient(options: OmnaraClientOptions = {}): OmnaraClient {\n const client = createClient(\n createConfig({\n throwOnError: true,\n }),\n )\n client.setConfig({\n baseUrl: options.baseUrl ?? specDefaultClient.getConfig().baseUrl,\n credentials: options.credentials,\n headers: options.headers,\n fetch: options.fetch,\n })\n const { auth } = options\n if (auth) {\n client.interceptors.request.use(async (request) => {\n await auth.authenticate(request)\n return request\n })\n }\n client.interceptors.response.use(async (response) => {\n if (!response.ok) throw await ApiError.fromResponse(response)\n return response\n })\n patchGeneratedRequests(client)\n return client\n}\n","import * as z from 'zod'\n\nimport { ApiError } from './errors'\nimport { zJsonText } from './json-body'\n\nexport const OMNARA_CLI_OAUTH_CLIENT_ID = 'omnara-cli'\nexport const OAUTH_DEVICE_GRANT_TYPE = 'urn:ietf:params:oauth:grant-type:device_code'\n\nconst zAuthorizationServerMetadata = z.object({\n issuer: z.url(),\n device_authorization_endpoint: z.url(),\n token_endpoint: z.url(),\n grant_types_supported: z.array(z.string()),\n token_endpoint_auth_methods_supported: z.array(z.string()),\n})\n\nconst zDeviceAuthStartResponse = z.object({\n device_code: z.string().min(1),\n user_code: z.string().min(1),\n verification_uri: z.string().min(1),\n verification_uri_complete: z.string().min(1),\n expires_in: z.number().int().positive(),\n interval: z.number().int().positive(),\n})\n\nconst zDeviceAuthErrorResponse = z.object({\n error: z.string().min(1),\n error_description: z.string().optional(),\n})\nconst zDeviceAuthFailure = zJsonText.pipe(zDeviceAuthErrorResponse)\n\nconst zDeviceAuthApprovedResponse = z.object({\n access_token: z.string().min(1),\n token_type: z.string(),\n})\n\nexport type DeviceAuthFailureCode = 'access_denied' | 'expired_token'\n\nconst DEVICE_AUTH_FAILURE_MESSAGES = {\n access_denied: 'the login request was denied',\n expired_token: 'the login request expired before it was approved',\n} satisfies Record<DeviceAuthFailureCode, string>\n\nexport class DeviceAuthError extends Error {\n readonly code: DeviceAuthFailureCode\n\n constructor(code: DeviceAuthFailureCode) {\n super(DEVICE_AUTH_FAILURE_MESSAGES[code])\n this.name = 'DeviceAuthError'\n this.code = code\n }\n}\n\nexport interface DeviceAuthStart {\n deviceCode: string\n userCode: string\n verificationUri: string\n verificationUriComplete: string\n expiresInSeconds: number\n intervalSeconds: number\n tokenEndpoint: string\n clientId: string\n}\n\nasync function postOAuthForm(\n fetchImpl: typeof fetch,\n endpoint: string,\n body: URLSearchParams,\n): Promise<Response> {\n return fetchImpl(endpoint, {\n method: 'POST',\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/x-www-form-urlencoded',\n },\n body: body.toString(),\n })\n}\n\nexport interface StartDeviceAuthOptions {\n issuerUrl: string\n clientId: string\n tokenName?: string\n fetch?: typeof fetch\n}\n\nfunction normalizeIssuer(raw: string): string {\n const issuer = new URL(raw)\n if (\n issuer.username !== '' ||\n issuer.password !== '' ||\n issuer.pathname !== '/' ||\n issuer.search !== '' ||\n issuer.hash !== ''\n ) {\n throw new Error('authorization server issuer must be an origin')\n }\n return issuer.origin\n}\n\nexport async function startDeviceAuth(options: StartDeviceAuthOptions): Promise<DeviceAuthStart> {\n const fetchImpl = options.fetch ?? fetch\n const expectedIssuer = normalizeIssuer(options.issuerUrl)\n const metadataUrl = new URL('/.well-known/oauth-authorization-server', `${expectedIssuer}/`)\n const metadataResponse = await fetchImpl(metadataUrl, { headers: { Accept: 'application/json' } })\n if (!metadataResponse.ok) throw await ApiError.fromResponse(metadataResponse)\n const metadata = zAuthorizationServerMetadata.parse(await metadataResponse.json())\n if (normalizeIssuer(metadata.issuer) !== expectedIssuer) {\n throw new Error(\n `authorization server issuer mismatch: expected ${expectedIssuer}, received ${metadata.issuer}`,\n )\n }\n if (!metadata.grant_types_supported.includes(OAUTH_DEVICE_GRANT_TYPE)) {\n throw new Error('authorization server does not support the OAuth device grant')\n }\n if (!metadata.token_endpoint_auth_methods_supported.includes('none')) {\n throw new Error('authorization server does not support public OAuth clients')\n }\n const body = new URLSearchParams({ client_id: options.clientId })\n if (options.tokenName !== undefined) body.set('token_name', options.tokenName)\n const response = await postOAuthForm(fetchImpl, metadata.device_authorization_endpoint, body)\n if (!response.ok) throw await ApiError.fromResponse(response)\n const data = zDeviceAuthStartResponse.parse(await response.json())\n return {\n deviceCode: data.device_code,\n userCode: data.user_code,\n verificationUri: new URL(data.verification_uri, metadata.issuer).toString(),\n verificationUriComplete: new URL(data.verification_uri_complete, metadata.issuer).toString(),\n expiresInSeconds: data.expires_in,\n intervalSeconds: data.interval,\n tokenEndpoint: metadata.token_endpoint,\n clientId: options.clientId,\n }\n}\n\nfunction defaultSleep(seconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, seconds * 1000))\n}\n\nexport interface PollDeviceAuthTokenOptions {\n tokenEndpoint: string\n clientId: string\n deviceCode: string\n intervalSeconds: number\n fetch?: typeof fetch\n sleep?: (seconds: number) => Promise<void>\n}\n\nexport async function pollDeviceAuthToken(options: PollDeviceAuthTokenOptions): Promise<string> {\n const fetchImpl = options.fetch ?? fetch\n const sleep = options.sleep ?? defaultSleep\n let interval = options.intervalSeconds\n while (true) {\n await sleep(interval)\n const response = await postOAuthForm(\n fetchImpl,\n options.tokenEndpoint,\n new URLSearchParams({\n grant_type: OAUTH_DEVICE_GRANT_TYPE,\n device_code: options.deviceCode,\n client_id: options.clientId,\n }),\n )\n if (response.status === 200) {\n return zDeviceAuthApprovedResponse.parse(await response.json()).access_token\n }\n if (response.status === 400) {\n const failure = zDeviceAuthFailure.safeParse(await response.clone().text())\n if (failure.success) {\n if (failure.data.error === 'authorization_pending') continue\n if (failure.data.error === 'slow_down') {\n interval += 5\n continue\n }\n if (failure.data.error === 'access_denied' || failure.data.error === 'expired_token') {\n throw new DeviceAuthError(failure.data.error)\n }\n }\n }\n throw await ApiError.fromResponse(response)\n }\n}\n","export const MAX_MEMORY_FILE_BYTES = 10 * 1024 * 1024\nexport const FILE_DIGEST_HEADER = 'X-Omnara-File-Digest'\n","import * as z from 'zod'\n\nimport type {\n CreateIntegrationRequest,\n GitHubIntegrationLauncher,\n IntegrationKind,\n IntegrationProviderConfig,\n IntegrationSettings,\n UpdateIntegrationRequest,\n} from './generated/types.gen'\nimport {\n zAgentProfileId,\n zChatIntegrationLauncher,\n zGitHubIntegrationLauncher,\n zIntegrationName,\n} from './generated/zod.gen'\n\nconst discordPublicKeyPattern = '[a-fA-F0-9]{64}'\nconst discordPublicKey = z.string().regex(new RegExp(`^${discordPublicKeyPattern}$`))\nconst profilesSchema = z\n .array(zAgentProfileId)\n .max(16)\n .refine((ids) => new Set(ids).size === ids.length, 'Choose each profile only once.')\nconst chatLauncherSchema = z.strictObject(zChatIntegrationLauncher.shape)\nconst githubLauncherSchema = z.strictObject(zGitHubIntegrationLauncher.shape)\n\nexport function chatIntegrationLauncher(settings: IntegrationSettings) {\n return settings.launcher === undefined ? undefined : chatLauncherSchema.parse(settings.launcher)\n}\n\nexport function githubIntegrationSettings(settings: IntegrationSettings) {\n return {\n launcher:\n settings.launcher === undefined ? undefined : githubLauncherSchema.parse(settings.launcher),\n code_write: settings.code_write === true,\n }\n}\n\nexport function profileIntegrationProfiles(integration: {\n integration_kind: IntegrationKind\n settings: IntegrationSettings\n}) {\n if (integration.integration_kind === 'github_pr') {\n const launcher = githubIntegrationSettings(integration.settings).launcher\n return launcher ? [launcher.profile] : []\n }\n return chatIntegrationLauncher(integration.settings)?.profiles ?? []\n}\n\nexport function profileIntegrationDiscordKeyStatus(input: {\n integrationKind?: IntegrationKind\n launcher: boolean\n interactions: boolean\n providerConfig?: IntegrationProviderConfig\n}) {\n const required =\n input.integrationKind === 'discord_thread' && (input.launcher || input.interactions)\n return {\n required,\n missing: required && !discordPublicKey.safeParse(input.providerConfig?.public_key).success,\n pattern: discordPublicKeyPattern,\n }\n}\n\nexport function profileIntegrationSetup(input: {\n integrationKind: IntegrationKind\n name: string\n profileId?: string\n profileIds?: readonly string[]\n launcher?: boolean\n repositoryId?: string\n trigger?: GitHubIntegrationLauncher['trigger']\n}): CreateIntegrationRequest {\n const settings: IntegrationSettings = {}\n if (input.launcher !== false) {\n const profiles = profilesSchema\n .min(1, 'Choose at least one profile.')\n .parse(input.profileIds ?? (input.profileId ? [input.profileId] : []))\n if (input.integrationKind === 'github_pr') {\n if (profiles.length !== 1) throw new Error('GitHub requires exactly one profile.')\n const repositoryId = input.repositoryId?.trim()\n settings.launcher = githubLauncherSchema.parse({\n profile: profiles[0],\n trigger: input.trigger ?? 'both',\n repository_id: repositoryId === '' ? undefined : repositoryId,\n })\n } else {\n if (input.repositoryId || (input.trigger && input.trigger !== 'mention'))\n throw new Error('Chat launchers start from mentions.')\n settings.launcher = chatLauncherSchema.parse({ profiles })\n }\n }\n const name = zIntegrationName.safeParse(input.name.trim())\n if (!name.success)\n throw new Error('Use 1–32 letters, numbers or hyphens, starting with a letter.')\n return { name: name.data, integration_kind: input.integrationKind, settings }\n}\n\nexport function profileIntegrationProfileUpdate(\n integration: Pick<CreateIntegrationRequest, 'integration_kind' | 'settings'>,\n profileIds: readonly string[],\n): UpdateIntegrationRequest {\n if (!['slack_thread', 'discord_thread'].includes(integration.integration_kind))\n throw new Error('Profile editing requires a Slack or Discord integration.')\n const profiles = profilesSchema.parse(profileIds)\n const settings = { ...integration.settings }\n if (profiles.length === 0) delete settings.launcher\n else settings.launcher = { profiles }\n return { settings }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAY,OAAO;;;ACKZ,SAAS,8BAAqD;AAEnE,MAAI,QAAkB,CAAC;AACvB,MAAI,wBAAwB;AAC5B,SAAO;AAAA,IACL,KAAK,OAAO;AACV,UAAI,UAAU,GAAI,QAAO,CAAC;AAE1B,UAAI,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