@omnara/sdk 0.1.24 → 0.1.26

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 { go as Config, gp as Client, gq as ErrorCode, gr as AgentConfigErrorIssue, gs as AgentEventStreamData, gt as Error$1, gu as StreamEventsData, gv as PersonalAccessToken } from './sdk.gen-Dxv4CHxJ.js';
4
- export { A as AcceptInvitationData, b as AcceptInvitationError, gw as AcceptInvitationErrors, a as AcceptInvitationResponse, gx as AcceptInvitationResponses, bR as Actor, gy as ActorId, gz as ActorProvider, gA as Agent, gB as AgentActivity, bU as AgentConfig, gC as AgentConfigId, gD as AgentConfigModel, gE as AgentConfigSummary, gF as AgentControlType, gG as AgentCount, gH as AgentCronTriggerTarget, gI as AgentEvent, gJ as AgentEventId, gK as AgentId, gL as AgentInput, gM as AgentInputContentBlock, gN as AgentInputDeliveryMode, gO as AgentInputEnvelope, gP as AgentInputEvent, gQ as AgentInputId, gR as AgentInputKind, gS as AgentInteraction, gT as AgentInteractionId, gU as AgentInteractionKind, gV as AgentInteractionState, gW as AgentMachineBinding, gX as AgentMachineBindingId, gY as AgentMachineBindingKind, gZ as AgentMachineBindingState, g_ as AgentMcpConnection, g$ as AgentModel, h0 as AgentName, b_ as AgentProfile, h1 as AgentProfileCronTriggerTarget, h2 as AgentProfileId, h3 as AgentProfileSummary, h4 as AgentSequence, h5 as AgentSequenceCursor, h6 as AgentTurn, h7 as AgentTurnId, c as ArchiveAgentData, e as ArchiveAgentError, h8 as ArchiveAgentErrors, d as ArchiveAgentResponse, h9 as ArchiveAgentResponses, c8 as Artifact, ha as ArtifactId, hb as AwsCredentialsSecretMaterial, B as BootstrapDaemonData, g as BootstrapDaemonError, hc as BootstrapDaemonErrors, hd as BootstrapDaemonResponse, f as BootstrapDaemonResponse2, he as BootstrapDaemonResponses, C as CancelAgentData, i as CancelAgentError, hf as CancelAgentErrors, hg as CancelAgentRequest, hh as CancelAgentResponse, h as CancelAgentResponse2, hi as CancelAgentResponses, j as CancelQueuedBacklogInputData, l as CancelQueuedBacklogInputError, hj as CancelQueuedBacklogInputErrors, k as CancelQueuedBacklogInputResponse, hk as CancelQueuedBacklogInputResponses, hl as ClientErrorCode, hm as ClientOptions, hn as CompiledAgentConfig, ho as CompiledAgentModel, hp as CompiledEventWebhook, hq as CompiledMachineSource, hr as CompiledMcpAuth, hs as CompiledMcpAuthBearer, ht as CompiledMcpAuthOAuth, hu as CompiledMcpAuthSigV4, hv as CompiledMcpServer, hw as CompiledMcpTool, hx as CompiledMemoryStore, hy as CompiledModelReasoning, hz as CompiledProfileSubagent, hA as CompiledSelfSubagent, hB as CompiledSkill, hC as CompiledSubagent, hD as CompiledSubagentModel, hE as CompiledTool, hF as ConfiguredModel, hG as ConfiguredModelId, da as ConfiguredModelList, hH as ConfiguredModelRevisionId, hI as ConfiguredModelSummary, m as ConnectByoMachineData, o as ConnectByoMachineError, hJ as ConnectByoMachineErrors, hK as ConnectByoMachineRequest, hL as ConnectByoMachineResponse, n as ConnectByoMachineResponse2, hM as ConnectByoMachineResponses, hN as ContentBlockMetadata, hO as ContextCheckpointEvent, hP as ContextCheckpointId, p as CreateAgentConfigData, r as CreateAgentConfigError, hQ as CreateAgentConfigErrors, hR as CreateAgentConfigRequest, q as CreateAgentConfigResponse, hS as CreateAgentConfigResponses, v as CreateAgentData, x as CreateAgentError, hT as CreateAgentErrors, hU as CreateAgentInputContentBlock, s as CreateAgentInputData, hV as CreateAgentInputDeliveryMode, u as CreateAgentInputError, hW as CreateAgentInputErrors, hX as CreateAgentInputRequest, t as CreateAgentInputResponse, hY as CreateAgentInputResponses, y as CreateAgentProfileData, D as CreateAgentProfileError, hZ as CreateAgentProfileErrors, h_ as CreateAgentProfileRequest, z as CreateAgentProfileResponse, h$ as CreateAgentProfileResponses, i0 as CreateAgentRequest, w as CreateAgentResponse, i1 as CreateAgentResponses, E as CreateByoMachineDaemonTokenData, G as CreateByoMachineDaemonTokenError, i2 as CreateByoMachineDaemonTokenErrors, F as CreateByoMachineDaemonTokenResponse, i3 as CreateByoMachineDaemonTokenResponses, H as CreateConfiguredModelData, J as CreateConfiguredModelError, i4 as CreateConfiguredModelErrors, i5 as CreateConfiguredModelRequest, I as CreateConfiguredModelResponse, i6 as CreateConfiguredModelResponses, K as CreateCronTriggerData, M as CreateCronTriggerError, i7 as CreateCronTriggerErrors, i8 as CreateCronTriggerRequest, L as CreateCronTriggerResponse, i9 as CreateCronTriggerResponses, N as CreateIntegrationOAuthSetupData, Q as CreateIntegrationOAuthSetupError, ia as CreateIntegrationOAuthSetupErrors, ib as CreateIntegrationOAuthSetupRequest, P as CreateIntegrationOAuthSetupResponse, ic as CreateIntegrationOAuthSetupResponses, id as CreateMachineDaemonTokenRequest, ie as CreateMachineDaemonTokenResponse, R as CreateMachineData, T as CreateMachineError, ig as CreateMachineErrors, U as CreateMachinePoolData, W as CreateMachinePoolError, ih as CreateMachinePoolErrors, ii as CreateMachinePoolRequest, ij as CreateMachinePoolRequestBase, V as CreateMachinePoolResponse, ik as CreateMachinePoolResponses, il as CreateMachineRequest, S as CreateMachineResponse, im as CreateMachineResponses, io as CreateMemoryStore, X as CreateMemoryStoreData, Z as CreateMemoryStoreError, ip as CreateMemoryStoreErrors, Y as CreateMemoryStoreResponse, iq as CreateMemoryStoreResponses, _ as CreateModelProviderConfigData, a0 as CreateModelProviderConfigError, ir as CreateModelProviderConfigErrors, is as CreateModelProviderConfigRequest, it as CreateModelProviderConfigResponse, $ as CreateModelProviderConfigResponse2, iu as CreateModelProviderConfigResponses, a1 as CreateOrgApiKeyData, a3 as CreateOrgApiKeyError, iv as CreateOrgApiKeyErrors, iw as CreateOrgApiKeyRequest, ix as CreateOrgApiKeyResponse, a2 as CreateOrgApiKeyResponse2, iy as CreateOrgApiKeyResponses, a4 as CreateOrgInvitationData, a6 as CreateOrgInvitationError, iz as CreateOrgInvitationErrors, iA as CreateOrgInvitationRequest, a5 as CreateOrgInvitationResponse, iB as CreateOrgInvitationResponses, a7 as CreateOrganizationData, a9 as CreateOrganizationError, iC as CreateOrganizationErrors, iD as CreateOrganizationRequest, iE as CreateOrganizationResponse, a8 as CreateOrganizationResponse2, iF as CreateOrganizationResponses, aa as CreatePersonalAccessTokenData, ac as CreatePersonalAccessTokenError, iG as CreatePersonalAccessTokenErrors, iH as CreatePersonalAccessTokenRequest, iI as CreatePersonalAccessTokenResponse, ab as CreatePersonalAccessTokenResponse2, iJ as CreatePersonalAccessTokenResponses, am as CreateProjectData, ao as CreateProjectError, iK as CreateProjectErrors, ad as CreateProjectMachineGrantData, af as CreateProjectMachineGrantError, iL as CreateProjectMachineGrantErrors, iM as CreateProjectMachineGrantRequest, iN as CreateProjectMachineGrantResponse, ae as CreateProjectMachineGrantResponse2, iO as CreateProjectMachineGrantResponses, ag as CreateProjectMachinePoolGrantData, ai as CreateProjectMachinePoolGrantError, iP as CreateProjectMachinePoolGrantErrors, iQ as CreateProjectMachinePoolGrantRequest, ah as CreateProjectMachinePoolGrantResponse, iR as CreateProjectMachinePoolGrantResponses, aj as CreateProjectModelGrantData, al as CreateProjectModelGrantError, iS as CreateProjectModelGrantErrors, iT as CreateProjectModelGrantRequest, ak as CreateProjectModelGrantResponse, iU as CreateProjectModelGrantResponses, iV as CreateProjectRequest, an as CreateProjectResponse, iW as CreateProjectResponses, as as CreateSecretData, au as CreateSecretError, iX as CreateSecretErrors, ap as CreateSecretGrantData, ar as CreateSecretGrantError, iY as CreateSecretGrantErrors, aq as CreateSecretGrantResponse, iZ as CreateSecretGrantResponses, i_ as CreateSecretRequest, at as CreateSecretResponse, i$ as CreateSecretResponses, av as CreateSecretVersionData, ax as CreateSecretVersionError, j0 as CreateSecretVersionErrors, aw as CreateSecretVersionResponse, j1 as CreateSecretVersionResponses, aB as CreateSkillData, aD as CreateSkillError, j2 as CreateSkillErrors, ay as CreateSkillGrantData, aA as CreateSkillGrantError, j3 as CreateSkillGrantErrors, az as CreateSkillGrantResponse, j4 as CreateSkillGrantResponses, j5 as CreateSkillRequest, aC as CreateSkillResponse, j6 as CreateSkillResponses, aE as CreateSlackSetupData, aG as CreateSlackSetupError, j7 as CreateSlackSetupErrors, j8 as CreateSlackSetupRequest, aF as CreateSlackSetupResponse, j9 as CreateSlackSetupResponses, ja as CreatedResourceListSort, jb as CronExpression, jc as CronMessageTemplate, jd as CronTimezone, cb as CronTrigger, je as CronTriggerDeliveryMode, jf as CronTriggerFailureReport, jg as CronTriggerId, jh as CronTriggerTarget, ji as CurrentAgentResponse, ce as CurrentUser, jj as CurrentUserIdentity, jk as CurrentUserOrg, jl as DaemonRuntime, jm as DaemonRuntimeId, jn as DaemonRuntimeReconciliation, jo as DaemonRuntimeState, aH as DeclineInvitationData, aJ as DeclineInvitationError, jp as DeclineInvitationErrors, aI as DeclineInvitationResponse, jq as DeclineInvitationResponses, aK as DeleteAgentProfileData, aM as DeleteAgentProfileError, jr as DeleteAgentProfileErrors, aL as DeleteAgentProfileResponse, js as DeleteAgentProfileResponses, aN as DeleteConfiguredModelData, aP as DeleteConfiguredModelError, jt as DeleteConfiguredModelErrors, aO as DeleteConfiguredModelResponse, ju as DeleteConfiguredModelResponses, aQ as DeleteCronTriggerData, aS as DeleteCronTriggerError, jv as DeleteCronTriggerErrors, aR as DeleteCronTriggerResponse, jw as DeleteCronTriggerResponses, aT as DeleteCurrentUserData, aV as DeleteCurrentUserError, jx as DeleteCurrentUserErrors, aU as DeleteCurrentUserResponse, jy as DeleteCurrentUserResponses, aW as DeleteIntegrationInstallData, aY as DeleteIntegrationInstallError, jz as DeleteIntegrationInstallErrors, aX as DeleteIntegrationInstallResponse, jA as DeleteIntegrationInstallResponses, aZ as DeleteMachineData, a$ as DeleteMachineError, jB as DeleteMachineErrors, b0 as DeleteMachinePoolData, b2 as DeleteMachinePoolError, jC as DeleteMachinePoolErrors, b1 as DeleteMachinePoolResponse, jD as DeleteMachinePoolResponses, a_ as DeleteMachineResponse, jE as DeleteMachineResponses, b3 as DeleteMemoryFileData, b5 as DeleteMemoryFileError, jF as DeleteMemoryFileErrors, b4 as DeleteMemoryFileResponse, jG as DeleteMemoryFileResponses, b6 as DeleteMemoryStoreData, b8 as DeleteMemoryStoreError, jH as DeleteMemoryStoreErrors, b7 as DeleteMemoryStoreResponse, jI as DeleteMemoryStoreResponses, b9 as DeleteModelProviderConfigData, bb as DeleteModelProviderConfigError, jJ as DeleteModelProviderConfigErrors, ba as DeleteModelProviderConfigResponse, jK as DeleteModelProviderConfigResponses, bc as DeleteOrgInvitationData, be as DeleteOrgInvitationError, jL as DeleteOrgInvitationErrors, bd as DeleteOrgInvitationResponse, jM as DeleteOrgInvitationResponses, bf as DeleteOrganizationData, bh as DeleteOrganizationError, jN as DeleteOrganizationErrors, bg as DeleteOrganizationResponse, jO as DeleteOrganizationResponses, br as DeleteProjectData, bt as DeleteProjectError, jP as DeleteProjectErrors, bi as DeleteProjectMachineGrantData, bk as DeleteProjectMachineGrantError, jQ as DeleteProjectMachineGrantErrors, bj as DeleteProjectMachineGrantResponse, jR as DeleteProjectMachineGrantResponses, bl as DeleteProjectMachinePoolGrantData, bn as DeleteProjectMachinePoolGrantError, jS as DeleteProjectMachinePoolGrantErrors, bm as DeleteProjectMachinePoolGrantResponse, jT as DeleteProjectMachinePoolGrantResponses, bo as DeleteProjectModelGrantData, bq as DeleteProjectModelGrantError, jU as DeleteProjectModelGrantErrors, bp as DeleteProjectModelGrantResponse, jV as DeleteProjectModelGrantResponses, bs as DeleteProjectResponse, jW as DeleteProjectResponses, bx as DeleteSecretData, bz as DeleteSecretError, jX as DeleteSecretErrors, bu as DeleteSecretGrantData, bw as DeleteSecretGrantError, jY as DeleteSecretGrantErrors, bv as DeleteSecretGrantResponse, jZ as DeleteSecretGrantResponses, by as DeleteSecretResponse, j_ as DeleteSecretResponses, bD as DeleteSkillData, bF as DeleteSkillError, j$ as DeleteSkillErrors, bA as DeleteSkillGrantData, bC as DeleteSkillGrantError, k0 as DeleteSkillGrantErrors, bB as DeleteSkillGrantResponse, k1 as DeleteSkillGrantResponses, bE as DeleteSkillResponse, k2 as DeleteSkillResponses, bG as DemoteSteeringInputToQueuedData, bI as DemoteSteeringInputToQueuedError, k3 as DemoteSteeringInputToQueuedErrors, bH as DemoteSteeringInputToQueuedResponse, k4 as DemoteSteeringInputToQueuedResponses, k5 as DirectSecretAvailability, k6 as DirectSkillAvailability, k7 as DiscoveredModelPricing, k8 as DiscoveredProviderModel, bJ as DownloadDaemonFileData, bK as DownloadDaemonFileError, k9 as DownloadDaemonFileErrors, ka as DownloadDaemonFileResponse, kb as DownloadDaemonFileResponses, bL as DownloadMemoryFileData, bM as DownloadMemoryFileError, kc as DownloadMemoryFileErrors, kd as DownloadMemoryFileResponse, ke as DownloadMemoryFileResponses, bN as EndMachineDaemonRuntimeData, bP as EndMachineDaemonRuntimeError, kf as EndMachineDaemonRuntimeErrors, bO as EndMachineDaemonRuntimeResponse, kg as EndMachineDaemonRuntimeResponses, kh as ErrorContentBlock, ki as EventWebhookAgentInputEvent, kj as EventWebhookContextCheckpointEvent, kk as EventWebhookModelOutputEvent, kl as EventWebhookPayload, km as EventWebhookToolCallUpdate, kn as EventWebhookToolResultEvent, ko as ExternalActorParams, kp as GenericSecretMaterial, bQ as GetActorData, bS as GetActorError, kq as GetActorErrors, kr as GetActorResponse, ks as GetActorResponses, bT as GetAgentConfigData, bV as GetAgentConfigError, kt as GetAgentConfigErrors, ku as GetAgentConfigResponse, kv as GetAgentConfigResponses, bW as GetAgentData, bY as GetAgentError, kw as GetAgentErrors, bZ as GetAgentProfileData, b$ as GetAgentProfileError, kx as GetAgentProfileErrors, ky as GetAgentProfileResponse, kz as GetAgentProfileResponses, c0 as GetAgentProfileUsageData, c2 as GetAgentProfileUsageError, kA as GetAgentProfileUsageErrors, kB as GetAgentProfileUsageResponse, kC as GetAgentProfileUsageResponses, bX as GetAgentResponse, kD as GetAgentResponse2, kE as GetAgentResponses, c3 as GetAgentUsageData, c4 as GetAgentUsageError, kF as GetAgentUsageErrors, kG as GetAgentUsageResponse, kH as GetAgentUsageResponses, c5 as GetArtifactContentData, c6 as GetArtifactContentError, kI as GetArtifactContentErrors, kJ as GetArtifactContentResponse, kK as GetArtifactContentResponses, c7 as GetArtifactData, c9 as GetArtifactError, kL as GetArtifactErrors, kM as GetArtifactResponse, kN as GetArtifactResponses, ca as GetCronTriggerData, cc as GetCronTriggerError, kO as GetCronTriggerErrors, kP as GetCronTriggerResponse, kQ as GetCronTriggerResponses, cd as GetCurrentUserData, cf as GetCurrentUserError, kR as GetCurrentUserErrors, kS as GetCurrentUserResponse, kT as GetCurrentUserResponses, cg as GetDaemonSkillArchiveData, ch as GetDaemonSkillArchiveError, kU as GetDaemonSkillArchiveErrors, kV as GetDaemonSkillArchiveResponse, kW as GetDaemonSkillArchiveResponses, ci as GetMachineData, ck as GetMachineError, kX as GetMachineErrors, cl as GetMachinePoolData, cn as GetMachinePoolError, kY as GetMachinePoolErrors, kZ as GetMachinePoolResponse, k_ as GetMachinePoolResponses, k$ as GetMachineResponse, l0 as GetMachineResponses, co as GetMemoryStoreData, cq as GetMemoryStoreError, l1 as GetMemoryStoreErrors, l2 as GetMemoryStoreResponse, l3 as GetMemoryStoreResponses, cr as GetModelCatalogData, ct as GetModelCatalogError, l4 as GetModelCatalogErrors, l5 as GetModelCatalogResponse, l6 as GetModelCatalogResponses, cu as GetModelProviderConfigData, cw as GetModelProviderConfigError, l7 as GetModelProviderConfigErrors, l8 as GetModelProviderConfigResponse, l9 as GetModelProviderConfigResponses, cx as GetOrgApiKeyData, cz as GetOrgApiKeyError, la as GetOrgApiKeyErrors, lb as GetOrgApiKeyResponse, lc as GetOrgApiKeyResponses, cA as GetOrgOverviewData, cC as GetOrgOverviewError, ld as GetOrgOverviewErrors, le as GetOrgOverviewResponse, lf as GetOrgOverviewResponses, cD as GetOrgUsageData, cE as GetOrgUsageError, lg as GetOrgUsageErrors, lh as GetOrgUsageResponse, li as GetOrgUsageResponses, cF as GetProjectAvailableSecretData, cH as GetProjectAvailableSecretError, lj as GetProjectAvailableSecretErrors, lk as GetProjectAvailableSecretResponse, ll as GetProjectAvailableSecretResponses, cI as GetProjectMachinePoolGrantData, cK as GetProjectMachinePoolGrantError, lm as GetProjectMachinePoolGrantErrors, ln as GetProjectMachinePoolGrantResponse, lo as GetProjectMachinePoolGrantResponses, cL as GetProjectUsageData, cM as GetProjectUsageError, lp as GetProjectUsageErrors, lq as GetProjectUsageResponse, lr as GetProjectUsageResponses, cN as GetSecretData, cP as GetSecretError, ls as GetSecretErrors, lt as GetSecretResponse, lu as GetSecretResponses, cQ as GetSkillData, cS as GetSkillError, lv as GetSkillErrors, lw as GetSkillResponse, lx as GetSkillResponses, cT as GetToolCatalogData, cV as GetToolCatalogError, ly as GetToolCatalogErrors, lz as GetToolCatalogResponse, lA as GetToolCatalogResponses, lB as GrantedSecretAvailability, lC as GrantedSkillAvailability, lD as IdempotencyKey, lE as InlineMediaContentBlock, lF as InstallationId, lG as IntegrationInstall, lH as IntegrationInstallAgentProfileFilter, lI as IntegrationInstallId, lJ as IntegrationInstallOAuthFlowIdFilter, lK as IntegrationOAuthFlowId, lL as IntegrationOAuthSetup, lM as IntegrationTarget, lN as InteractionAnswer, lO as InteractionForm, lP as InteractionFormContextItem, lQ as InteractionFormOption, lR as InteractionFormQuestion, lS as InteractionResolution, lT as JsonBlob, lU as LaunchAgentResponse, cW as ListActorsData, cY as ListActorsError, lV as ListActorsErrors, cX as ListActorsResponse, lW as ListActorsResponse2, lX as ListActorsResponses, dg as ListAgentEventsResponse, ee as ListAgentInputsResponse, cZ as ListAgentInteractionsData, c$ as ListAgentInteractionsError, lY as ListAgentInteractionsErrors, c_ as ListAgentInteractionsResponse, lZ as ListAgentInteractionsResponse2, l_ as ListAgentInteractionsResponses, d0 as ListAgentProfilesData, d2 as ListAgentProfilesError, l$ as ListAgentProfilesErrors, d1 as ListAgentProfilesResponse, m0 as ListAgentProfilesResponse2, m1 as ListAgentProfilesResponses, ez as ListAgentTurnsResponse, d3 as ListAgentsData, d5 as ListAgentsError, m2 as ListAgentsErrors, d4 as ListAgentsResponse, m3 as ListAgentsResponse2, m4 as ListAgentsResponses, d6 as ListByoMachineDaemonTokensData, d8 as ListByoMachineDaemonTokensError, m5 as ListByoMachineDaemonTokensErrors, m6 as ListByoMachineDaemonTokensResponse, m7 as ListByoMachineDaemonTokensResponses, d9 as ListConfiguredModelsData, db as ListConfiguredModelsError, m8 as ListConfiguredModelsErrors, m9 as ListConfiguredModelsResponse, ma as ListConfiguredModelsResponses, dc as ListCronTriggersData, de as ListCronTriggersError, mb as ListCronTriggersErrors, dd as ListCronTriggersResponse, mc as ListCronTriggersResponse2, md as ListCronTriggersResponses, df as ListEventsData, dh as ListEventsError, me as ListEventsErrors, mf as ListEventsResponse, mg as ListEventsResponses, di as ListIntegrationInstallsData, dk as ListIntegrationInstallsError, mh as ListIntegrationInstallsErrors, dj as ListIntegrationInstallsResponse, mi as ListIntegrationInstallsResponse2, mj as ListIntegrationInstallsResponses, d7 as ListMachineDaemonTokensResponse, dl as ListMachinePoolsData, dn as ListMachinePoolsError, mk as ListMachinePoolsErrors, dm as ListMachinePoolsResponse, ml as ListMachinePoolsResponse2, mm as ListMachinePoolsResponses, dp as ListMcpServerToolsData, dr as ListMcpServerToolsError, mn as ListMcpServerToolsErrors, dq as ListMcpServerToolsResponse, mo as ListMcpServerToolsResponses, ds as ListMcpServersData, du as ListMcpServersError, mp as ListMcpServersErrors, dt as ListMcpServersResponse, mq as ListMcpServersResponse2, mr as ListMcpServersResponses, dv as ListMemberProjectAccessData, dx as ListMemberProjectAccessError, ms as ListMemberProjectAccessErrors, mt as ListMemberProjectAccessResponse, mu as ListMemberProjectAccessResponses, dy as ListMemoryFilesData, dA as ListMemoryFilesError, mv as ListMemoryFilesErrors, mw as ListMemoryFilesResponse, mx as ListMemoryFilesResponses, dB as ListMemoryStoresData, dD as ListMemoryStoresError, my as ListMemoryStoresErrors, mz as ListMemoryStoresResponse, mA as ListMemoryStoresResponses, dE as ListModelProviderConfigsData, dG as ListModelProviderConfigsError, mB as ListModelProviderConfigsErrors, mC as ListModelProviderConfigsResponse, mD as ListModelProviderConfigsResponses, dH as ListOrgApiKeyProjectAccessData, dI as ListOrgApiKeyProjectAccessError, mE as ListOrgApiKeyProjectAccessErrors, mF as ListOrgApiKeyProjectAccessResponse, mG as ListOrgApiKeyProjectAccessResponses, dJ as ListOrgApiKeysData, dL as ListOrgApiKeysError, mH as ListOrgApiKeysErrors, dK as ListOrgApiKeysResponse, mI as ListOrgApiKeysResponse2, mJ as ListOrgApiKeysResponses, dM as ListOrgInvitationsData, dO as ListOrgInvitationsError, mK as ListOrgInvitationsErrors, dN as ListOrgInvitationsResponse, mL as ListOrgInvitationsResponse2, mM as ListOrgInvitationsResponses, dP as ListOrgMembersData, dR as ListOrgMembersError, mN as ListOrgMembersErrors, dQ as ListOrgMembersResponse, mO as ListOrgMembersResponse2, mP as ListOrgMembersResponses, dS as ListOrganizationsData, dU as ListOrganizationsError, mQ as ListOrganizationsErrors, dT as ListOrganizationsResponse, mR as ListOrganizationsResponse2, mS as ListOrganizationsResponses, dV as ListPendingInvitationsData, dW as ListPendingInvitationsError, mT as ListPendingInvitationsErrors, mU as ListPendingInvitationsResponse, mV as ListPendingInvitationsResponses, dX as ListPersonalAccessTokensData, dZ as ListPersonalAccessTokensError, mW as ListPersonalAccessTokensErrors, dY as ListPersonalAccessTokensResponse, mX as ListPersonalAccessTokensResponse2, mY as ListPersonalAccessTokensResponses, d_ as ListProjectAvailableSecretsData, e0 as ListProjectAvailableSecretsError, mZ as ListProjectAvailableSecretsErrors, m_ as ListProjectAvailableSecretsResponse, m$ as ListProjectAvailableSecretsResponses, e1 as ListProjectAvailableSkillsData, e3 as ListProjectAvailableSkillsError, n0 as ListProjectAvailableSkillsErrors, n1 as ListProjectAvailableSkillsResponse, n2 as ListProjectAvailableSkillsResponses, e4 as ListProjectMachineGrantsData, e6 as ListProjectMachineGrantsError, n3 as ListProjectMachineGrantsErrors, e5 as ListProjectMachineGrantsResponse, n4 as ListProjectMachineGrantsResponse2, n5 as ListProjectMachineGrantsResponses, e7 as ListProjectMachinePoolGrantsData, e9 as ListProjectMachinePoolGrantsError, n6 as ListProjectMachinePoolGrantsErrors, e8 as ListProjectMachinePoolGrantsResponse, n7 as ListProjectMachinePoolGrantsResponse2, n8 as ListProjectMachinePoolGrantsResponses, dw as ListProjectMembershipGrantsResponse, ea as ListProjectModelGrantsData, ec as ListProjectModelGrantsError, n9 as ListProjectModelGrantsErrors, eb as ListProjectModelGrantsResponse, na as ListProjectModelGrantsResponse2, nb as ListProjectModelGrantsResponses, d$ as ListProjectSecretAccessesResponse, e2 as ListProjectSkillAccessesResponse, eH as ListProjectsResponse, ed as ListQueuedBacklogInputsData, ef as ListQueuedBacklogInputsError, nc as ListQueuedBacklogInputsErrors, nd as ListQueuedBacklogInputsResponse, ne as ListQueuedBacklogInputsResponses, eg as ListSecretGrantsData, ei as ListSecretGrantsError, nf as ListSecretGrantsErrors, eh as ListSecretGrantsResponse, ng as ListSecretGrantsResponse2, nh as ListSecretGrantsResponses, ej as ListSecretsData, el as ListSecretsError, ni as ListSecretsErrors, ek as ListSecretsResponse, nj as ListSecretsResponse2, nk as ListSecretsResponses, em as ListSkillGrantsData, eo as ListSkillGrantsError, nl as ListSkillGrantsErrors, en as ListSkillGrantsResponse, nm as ListSkillGrantsResponse2, nn as ListSkillGrantsResponses, ep as ListSkillsData, er as ListSkillsError, no as ListSkillsErrors, eq as ListSkillsResponse, np as ListSkillsResponse2, nq as ListSkillsResponses, es as ListToolCallsData, eu as ListToolCallsError, nr as ListToolCallsErrors, et as ListToolCallsResponse, ns as ListToolCallsResponse2, nt as ListToolCallsResponses, ev as ListTurnEventsData, ex as ListTurnEventsError, nu as ListTurnEventsErrors, ew as ListTurnEventsResponse, nv as ListTurnEventsResponse2, nw as ListTurnEventsResponses, ey as ListTurnsData, eA as ListTurnsError, nx as ListTurnsErrors, ny as ListTurnsResponse, nz as ListTurnsResponses, eB as ListVisibleMachinesData, eD as ListVisibleMachinesError, nA as ListVisibleMachinesErrors, eC as ListVisibleMachinesResponse, nB as ListVisibleMachinesResponse2, nC as ListVisibleMachinesResponses, eE as ListVisibleProjectMachinesData, eF as ListVisibleProjectMachinesError, nD as ListVisibleProjectMachinesErrors, nE as ListVisibleProjectMachinesResponse, nF as ListVisibleProjectMachinesResponses, eG as ListVisibleProjectsData, eI as ListVisibleProjectsError, nG as ListVisibleProjectsErrors, nH as ListVisibleProjectsResponse, nI as ListVisibleProjectsResponses, cj as Machine, nJ as MachineAccess, nK as MachineAccessSource, nL as MachineAccessSourceKind, nM as MachineConnectionState, nN as MachineDaemonToken, nO as MachineDaemonTokenId, nP as MachineFailureReport, nQ as MachineId, nR as MachineLifecycleState, nS as MachineMetadata, cm as MachinePool, nT as MachinePoolId, nU as MachinePoolSummary, nV as MachinePoolUsage, nW as MachineSourceKind, nX as MachineSourceKindFilter, nY as MachineSummary, nZ as MachineSummaryFields, n_ as ManagementKind, n$ as McpRegistryHeader, o0 as McpRegistryIcon, o1 as McpRegistryRemote, o2 as McpRegistryServer, o3 as McpServerAuth, o4 as McpServerAuthBearer, o5 as McpServerAuthHint, o6 as McpServerAuthNone, o7 as McpServerAuthOAuth, o8 as McpServerAuthRequiredError, o9 as McpServerAuthSigV4, oa as McpServerInfo, ob as McpServerTool, oc as McpServerToolAnnotations, od as McpServerToolsRequest, oe as McpServerToolsResponse, of as McpoAuthFlowId, og as McpoAuthStartMetadata, oh as McpoAuthStartRequest, oi as McpoAuthStartResponse, oj as MediaRefContentBlock, ok as MemoryDirectory, ol as MemoryFile, dz as MemoryFileList, om as MemoryRegularFile, cp as MemoryStore, on as MemoryStoreAccess, oo as MemoryStoreId, dC as MemoryStoreList, op as MemoryStoreName, oq as Metadata, or as ModelApiFormat, os as ModelApiVariantOptions, ot as ModelCacheRetention, ou as ModelCallContextId, cs as ModelCatalog, ov as ModelOutputBlockStartDelta, ow as ModelOutputBlockStopDelta, ox as ModelOutputContentBlock, oy as ModelOutputDelta, oz as ModelOutputErrorDelta, oA as ModelOutputEvent, oB as ModelOutputMessageStopDelta, oC as ModelOutputStopReason, oD as ModelOutputStreamBlock, oE as ModelOutputStreamDelta, oF as ModelOutputTextDelta, oG as ModelOutputTextStreamBlock, oH as ModelOutputThinkingDelta, oI as ModelOutputThinkingStreamBlock, oJ as ModelOutputToolArgumentsDelta, oK as ModelOutputToolUseStreamBlock, oL as ModelProviderApiVariant, oM as ModelProviderApiVariantResponse, oN as ModelProviderAuthKind, oO as ModelProviderAuthKindResponse, cv as ModelProviderConfig, oP as ModelProviderConfigId, dF as ModelProviderConfigList, oQ as ModelStopReason, oR as ModelToolCallContentBlock, oS as ModelUsage, oT as ModelUsageTotals, eJ as MoveQueuedBacklogInputData, eL as MoveQueuedBacklogInputError, oU as MoveQueuedBacklogInputErrors, oV as MoveQueuedBacklogInputRequest, eK as MoveQueuedBacklogInputResponse, oW as MoveQueuedBacklogInputResponses, oX as OAuthRefreshSecretMaterial, oY as OAuthTokenSetSecretMaterial, oZ as OkResponse, cy as OrgApiKey, o_ as OrgApiKeyId, o$ as OrgApiKeyRole, p0 as OrgInvitation, p1 as OrgInvitationId, p2 as OrgMember, p3 as OrgOverviewAgentProfileReference, cB as OrgOverviewResponse, p4 as OrgOverviewToday, p5 as OrgOverviewUsage, p6 as OrgOverviewUsageDay, p7 as OrgOverviewUsageDayModel, p8 as OrgOverviewUsageDayProfile, p9 as OrgOverviewUsageModel, pa as OrgOverviewUsageProfile, pb as OrgSecretOwner, pc as OrgSecretOwnerInput, pd as OrgSkillOwner, pe as OrgSkillOwnerInput, pf as Organization, pg as OrganizationId, ph as OrganizationMembership, pi as PageCursor, pj as PageLimit, pk as PersonalAccessTokenId, pl as ProcessActionId, pm as ProcessActionReconciliationClaim, pn as ProcessActionReconciliationDirective, po as ProcessId, pp as ProcessReconciliationClaim, pq as ProcessReconciliationDirective, pr as Project, ps as ProjectAccess, pt as ProjectFields, pu as ProjectId, pv as ProjectMachineGrant, pw as ProjectMachineGrantId, px as ProjectMachineGrantListItem, py as ProjectMachineGrantSourceKind, cJ as ProjectMachinePoolGrant, pz as ProjectMachinePoolGrantId, pA as ProjectMachinePoolGrantListItem, pB as ProjectMembershipGrant, pC as ProjectModelGrant, pD as ProjectModelGrantEffectiveReasoning, pE as ProjectModelGrantEnvelope, pF as ProjectModelGrantId, pG as ProjectModelGrantListItem, cG as ProjectSecretAccess, pH as ProjectSecretOwner, pI as ProjectSecretOwnerInput, pJ as ProjectSkillAccess, pK as ProjectSkillOwner, pL as ProjectSkillOwnerInput, eM as PromoteQueuedInputToSteeringData, eO as PromoteQueuedInputToSteeringError, pM as PromoteQueuedInputToSteeringErrors, pN as PromoteQueuedInputToSteeringRequest, eN as PromoteQueuedInputToSteeringResponse, pO as PromoteQueuedInputToSteeringResponses, eP as PutActorData, eR as PutActorError, pP as PutActorErrors, eQ as PutActorResponse, pQ as PutActorResponses, pR as ReasoningContentBlock, eS as RecordMachineFailureData, eU as RecordMachineFailureError, pS as RecordMachineFailureErrors, eT as RecordMachineFailureResponse, pT as RecordMachineFailureResponses, pU as RegisterDaemonRuntimeRequest, pV as RegisterDaemonRuntimeResponse, eV as RegisterMachineDaemonRuntimeData, eX as RegisterMachineDaemonRuntimeError, pW as RegisterMachineDaemonRuntimeErrors, eW as RegisterMachineDaemonRuntimeResponse, pX as RegisterMachineDaemonRuntimeResponses, eY as RemoveMemberProjectAccessData, e_ as RemoveMemberProjectAccessError, pY as RemoveMemberProjectAccessErrors, eZ as RemoveMemberProjectAccessResponse, pZ as RemoveMemberProjectAccessResponses, e$ as RemoveOrgApiKeyProjectRoleData, f1 as RemoveOrgApiKeyProjectRoleError, p_ as RemoveOrgApiKeyProjectRoleErrors, f0 as RemoveOrgApiKeyProjectRoleResponse, p$ as RemoveOrgApiKeyProjectRoleResponses, f2 as RemoveOrgMemberData, f4 as RemoveOrgMemberError, q0 as RemoveOrgMemberErrors, f3 as RemoveOrgMemberResponse, q1 as RemoveOrgMemberResponses, f5 as RenameAgentProfileData, f7 as RenameAgentProfileError, q2 as RenameAgentProfileErrors, q3 as RenameAgentProfileRequest, f6 as RenameAgentProfileResponse, q4 as RenameAgentProfileResponses, f8 as ResolveAgentConfigToolsData, fa as ResolveAgentConfigToolsError, q5 as ResolveAgentConfigToolsErrors, q6 as ResolveAgentConfigToolsRequest, f9 as ResolveAgentConfigToolsResponse, q7 as ResolveAgentConfigToolsResponses, fb as ResolveAgentInteractionData, fd as ResolveAgentInteractionError, q8 as ResolveAgentInteractionErrors, q9 as ResolveAgentInteractionRequest, fc as ResolveAgentInteractionResponse, qa as ResolveAgentInteractionResponses, qb as ResolvedAgentConfigTool, qc as ResolvedAgentConfigTools, qd as ResourceListSort, qe as ResourceName, qf as ResourceNameFilter, fe as RevokeMachineDaemonTokenData, fg as RevokeMachineDaemonTokenError, qg as RevokeMachineDaemonTokenErrors, ff as RevokeMachineDaemonTokenResponse, qh as RevokeMachineDaemonTokenResponses, fh as RevokeOrgApiKeyData, fj as RevokeOrgApiKeyError, qi as RevokeOrgApiKeyErrors, fi as RevokeOrgApiKeyResponse, qj as RevokeOrgApiKeyResponses, fk as RevokePersonalAccessTokenData, fm as RevokePersonalAccessTokenError, qk as RevokePersonalAccessTokenErrors, fl as RevokePersonalAccessTokenResponse, ql as RevokePersonalAccessTokenResponses, cO as Secret, qm as SecretAvailability, qn as SecretAvailabilitySourceFilter, qo as SecretGrant, qp as SecretGrantCreateRequest, qq as SecretGrantId, qr as SecretGrantListItem, qs as SecretId, qt as SecretKind, qu as SecretKindFilter, qv as SecretMaterial, qw as SecretMcpoAuthFlowIdFilter, qx as SecretMetadataFilter, qy as SecretOwner, qz as SecretOwnerInput, qA as SecretOwnerKindFilter, qB as SecretOwnerProjectIdFilter, qC as SecretVersionRequest, qD as ServerErrorCode, fn as SetMemberProjectAccessData, fp as SetMemberProjectAccessError, qE as SetMemberProjectAccessErrors, fo as SetMemberProjectAccessResponse, qF as SetMemberProjectAccessResponses, fq as SetOrgApiKeyProjectRoleData, fs as SetOrgApiKeyProjectRoleError, qG as SetOrgApiKeyProjectRoleErrors, fr as SetOrgApiKeyProjectRoleResponse, qH as SetOrgApiKeyProjectRoleResponses, qI as SetProjectMembershipRequest, cR as Skill, qJ as SkillAvailability, qK as SkillAvailabilitySourceFilter, qL as SkillFile, qM as SkillGrant, qN as SkillGrantCreateRequest, qO as SkillGrantId, qP as SkillGrantListItem, qQ as SkillId, qR as SkillName, qS as SkillOwner, qT as SkillOwnerInput, qU as SkillOwnerKindFilter, qV as SkillOwnerProjectIdFilter, qW as SkillRevisionId, qX as SlackSetup, qY as SlackSetupIcon, ft as SleepMachineDaemonRuntimeData, fv as SleepMachineDaemonRuntimeError, qZ as SleepMachineDaemonRuntimeErrors, fu as SleepMachineDaemonRuntimeResponse, q_ as SleepMachineDaemonRuntimeResponses, fw as SocketMachineDaemonRuntimeData, fx as SocketMachineDaemonRuntimeError, q$ as SocketMachineDaemonRuntimeErrors, fy as StartSecretMcpoAuthData, fA as StartSecretMcpoAuthError, r0 as StartSecretMcpoAuthErrors, fz as StartSecretMcpoAuthResponse, r1 as StartSecretMcpoAuthResponses, r2 as StreamEventsError, r3 as StreamEventsErrors, r4 as StreamEventsResponse, r5 as StreamEventsResponses, r6 as StructuredDataContentBlock, fB as SubmitToolCallResultData, fD as SubmitToolCallResultError, r7 as SubmitToolCallResultErrors, r8 as SubmitToolCallResultRequest, r9 as SubmitToolCallResultResponse, fC as SubmitToolCallResultResponse2, ra as SubmitToolCallResultResponses, rb as SubmitToolResultContentBlock, rc as TextContentBlock, rd as Timestamp, re as ToolCall, rf as ToolCallId, rg as ToolCallOutcome, rh as ToolCallState, ri as ToolCallType, rj as ToolCallUpdate, cU as ToolCatalog, rk as ToolCatalogEntry, rl as ToolInput, rm as ToolPermissionMode, rn as ToolPermissionProfile, ro as ToolPermissionSelection, rp as ToolResult, rq as ToolResultContentBlock, rr as ToolResultEvent, fE as UpdateAgentConfigData, fG as UpdateAgentConfigError, rs as UpdateAgentConfigErrors, rt as UpdateAgentConfigRequest, ru as UpdateAgentConfigResponse, fF as UpdateAgentConfigResponse2, rv as UpdateAgentConfigResponses, fH as UpdateAgentProfileData, fJ as UpdateAgentProfileError, rw as UpdateAgentProfileErrors, rx as UpdateAgentProfileRequest, fI as UpdateAgentProfileResponse, ry as UpdateAgentProfileResponses, fK as UpdateConfiguredModelData, fM as UpdateConfiguredModelError, rz as UpdateConfiguredModelErrors, rA as UpdateConfiguredModelRequest, fL as UpdateConfiguredModelResponse, rB as UpdateConfiguredModelResponses, fN as UpdateCronTriggerData, fP as UpdateCronTriggerError, rC as UpdateCronTriggerErrors, rD as UpdateCronTriggerRequest, fO as UpdateCronTriggerResponse, rE as UpdateCronTriggerResponses, fQ as UpdateMachineData, fS as UpdateMachineError, rF as UpdateMachineErrors, fT as UpdateMachinePoolData, fV as UpdateMachinePoolError, rG as UpdateMachinePoolErrors, rH as UpdateMachinePoolRequest, fU as UpdateMachinePoolResponse, rI as UpdateMachinePoolResponses, rJ as UpdateMachineRequest, fR as UpdateMachineResponse, rK as UpdateMachineResponses, rL as UpdateMemoryStore, fW as UpdateMemoryStoreData, fY as UpdateMemoryStoreError, rM as UpdateMemoryStoreErrors, fX as UpdateMemoryStoreResponse, rN as UpdateMemoryStoreResponses, fZ as UpdateModelProviderConfigData, f$ as UpdateModelProviderConfigError, rO as UpdateModelProviderConfigErrors, rP as UpdateModelProviderConfigRequest, f_ as UpdateModelProviderConfigResponse, rQ as UpdateModelProviderConfigResponses, g0 as UpdateOrgApiKeyData, g2 as UpdateOrgApiKeyError, rR as UpdateOrgApiKeyErrors, rS as UpdateOrgApiKeyRequest, g1 as UpdateOrgApiKeyResponse, rT as UpdateOrgApiKeyResponses, g3 as UpdateOrgMemberData, g5 as UpdateOrgMemberError, rU as UpdateOrgMemberErrors, rV as UpdateOrgMemberRequest, g4 as UpdateOrgMemberResponse, rW as UpdateOrgMemberResponses, g6 as UpdateProjectMachinePoolGrantData, g8 as UpdateProjectMachinePoolGrantError, rX as UpdateProjectMachinePoolGrantErrors, rY as UpdateProjectMachinePoolGrantRequest, g7 as UpdateProjectMachinePoolGrantResponse, rZ as UpdateProjectMachinePoolGrantResponses, g9 as UpdateProjectModelGrantData, gb as UpdateProjectModelGrantError, r_ as UpdateProjectModelGrantErrors, r$ as UpdateProjectModelGrantRequest, ga as UpdateProjectModelGrantResponse, s0 as UpdateProjectModelGrantResponses, gc as UpdateSecretData, ge as UpdateSecretError, s1 as UpdateSecretErrors, s2 as UpdateSecretRequest, gd as UpdateSecretResponse, s3 as UpdateSecretResponses, gf as UpdateSkillData, gh as UpdateSkillError, s4 as UpdateSkillErrors, s5 as UpdateSkillRequest, gg as UpdateSkillResponse, s6 as UpdateSkillResponses, gi as UploadDaemonFileData, gk as UploadDaemonFileError, s7 as UploadDaemonFileErrors, gj as UploadDaemonFileResponse, s8 as UploadDaemonFileResponses, s9 as UploadFileResponse, sa as UsageCostTotals, sb as UsageExcludeProjectIds, sc as UsageIncludeProjectIds, sd as UsageModel, c1 as UsageReport, se as UsageSince, sf as UsageTokenTotals, sg as UsageTotals, sh as UsageUntil, si as UserId, sj as UserSecretOwner, sk as UserSecretOwnerInput, sl as UserSkillOwner, sm as UserSkillOwnerInput, sn as VisibleMachine, so as VisibleProject, gl as WriteMemoryFileData, gn as WriteMemoryFileError, sp as WriteMemoryFileErrors, gm as WriteMemoryFileResponse, sq as WriteMemoryFileResponses, sr as sdk } from './sdk.gen-Dxv4CHxJ.js';
3
+ import { h3 as Config, h4 as Client, h5 as ErrorCode, h6 as AgentConfigErrorIssue, h7 as AgentEventStreamData, h8 as Error$1, h9 as StreamEventsData, ha as PersonalAccessToken, hb as IntegrationSettings, hc as IntegrationKind, hd as IntegrationProviderConfig, he as CreateIntegrationRequest, hf as UpdateIntegrationRequest } from './sdk.gen-CgYY8k0E.js';
4
+ export { A as AcceptInvitationData, b as AcceptInvitationError, hg as AcceptInvitationErrors, a as AcceptInvitationResponse, hh as AcceptInvitationResponses, c7 as Actor, hi as ActorId, hj as ActorProvider, hk as Agent, hl as AgentActivity, ca as AgentConfig, hm as AgentConfigId, hn as AgentConfigModel, ho as AgentConfigSummary, hp as AgentControlType, hq as AgentCount, hr as AgentCronTriggerTarget, hs as AgentEvent, ht as AgentEventId, hu as AgentId, hv as AgentIncludeUsage, hw as AgentInput, hx as AgentInputContentBlock, hy as AgentInputDeliveryMode, hz as AgentInputEnvelope, hA as AgentInputEvent, hB as AgentInputId, hC as AgentInputKind, hD as AgentInteraction, hE as AgentInteractionDestination, hF as AgentInteractionId, hG as AgentInteractionKind, hH as AgentInteractionState, hI as AgentLaunchInitialInput, hJ as AgentMachineBinding, hK as AgentMachineBindingId, hL as AgentMachineBindingKind, hM as AgentMachineBindingState, hN as AgentMcpConnection, hO as AgentModel, hP as AgentName, cg as AgentProfile, hQ as AgentProfileCronTriggerTarget, hR as AgentProfileId, hS as AgentProfileIncludeStats, hT as AgentProfileStats, hU as AgentProfileStatsSince, hV as AgentProfileSummary, hW as AgentSequence, hX as AgentSequenceCursor, hY as AgentTurn, hZ as AgentTurnId, c as ArchiveAgentData, e as ArchiveAgentError, h_ as ArchiveAgentErrors, d as ArchiveAgentResponse, h$ as ArchiveAgentResponses, cq as Artifact, i0 as ArtifactId, i1 as AwsCredentialsSecretMaterial, B as BootstrapDaemonData, g as BootstrapDaemonError, i2 as BootstrapDaemonErrors, i3 as BootstrapDaemonResponse, f as BootstrapDaemonResponse2, i4 as BootstrapDaemonResponses, C as CancelAgentData, i as CancelAgentError, i5 as CancelAgentErrors, i6 as CancelAgentRequest, i7 as CancelAgentResponse, h as CancelAgentResponse2, i8 as CancelAgentResponses, j as CancelQueuedBacklogInputData, l as CancelQueuedBacklogInputError, i9 as CancelQueuedBacklogInputErrors, k as CancelQueuedBacklogInputResponse, ia as CancelQueuedBacklogInputResponses, ib as ClientErrorCode, ic as ClientOptions, id as CompiledAgentConfig, ie as CompiledAgentModel, ig as CompiledEventWebhook, ih as CompiledGitCredentials, ii as CompiledIntegrationCapability, ij as CompiledMachineSource, ik as CompiledMcpAuth, il as CompiledMcpAuthBearer, im as CompiledMcpAuthOAuth, io as CompiledMcpAuthSigV4, ip as CompiledMcpServer, iq as CompiledMcpTool, ir as CompiledMemoryStore, is as CompiledModelReasoning, it as CompiledProfileSubagent, iu as CompiledSelfSubagent, iv as CompiledSkill, iw as CompiledSubagent, ix as CompiledSubagentModel, iy as CompiledTool, iz as ConfigAgentToolInputSchema, iA as ConfigIntegrationCapabilitySource, iB as ConfigToolPermissionSelection, iC as ConfigToolSource, m as ConfigureIntegrationData, o as ConfigureIntegrationError, iD as ConfigureIntegrationErrors, iE as ConfigureIntegrationRequest, n as ConfigureIntegrationResponse, iF as ConfigureIntegrationResponses, iG as ConfiguredModel, iH as ConfiguredModelId, dF as ConfiguredModelList, iI as ConfiguredModelRevisionId, iJ as ConfiguredModelSummary, p as ConnectByoMachineData, r as ConnectByoMachineError, iK as ConnectByoMachineErrors, iL as ConnectByoMachineRequest, iM as ConnectByoMachineResponse, q as ConnectByoMachineResponse2, iN as ConnectByoMachineResponses, iO as ContentBlockMetadata, iP as ContextCheckpointEvent, iQ as ContextCheckpointId, s as CreateAgentConfigData, u as CreateAgentConfigError, iR as CreateAgentConfigErrors, iS as CreateAgentConfigRequest, t as CreateAgentConfigResponse, iT as CreateAgentConfigResponses, y as CreateAgentData, D as CreateAgentError, iU as CreateAgentErrors, iV as CreateAgentInputContentBlock, v as CreateAgentInputData, iW as CreateAgentInputDeliveryMode, x as CreateAgentInputError, iX as CreateAgentInputErrors, iY as CreateAgentInputRequest, w as CreateAgentInputResponse, iZ as CreateAgentInputResponses, E as CreateAgentProfileData, G as CreateAgentProfileError, i_ as CreateAgentProfileErrors, i$ as CreateAgentProfileRequest, F as CreateAgentProfileResponse, j0 as CreateAgentProfileResponses, j1 as CreateAgentRequest, z as CreateAgentResponse, j2 as CreateAgentResponses, H as CreateByoMachineDaemonTokenData, J as CreateByoMachineDaemonTokenError, j3 as CreateByoMachineDaemonTokenErrors, I as CreateByoMachineDaemonTokenResponse, j4 as CreateByoMachineDaemonTokenResponses, K as CreateConfiguredModelData, M as CreateConfiguredModelError, j5 as CreateConfiguredModelErrors, j6 as CreateConfiguredModelRequest, L as CreateConfiguredModelResponse, j7 as CreateConfiguredModelResponses, N as CreateCronTriggerData, Q as CreateCronTriggerError, j8 as CreateCronTriggerErrors, j9 as CreateCronTriggerRequest, P as CreateCronTriggerResponse, ja as CreateCronTriggerResponses, jb as CreateGitHubSetupRequest, U as CreateIntegrationData, W as CreateIntegrationError, jc as CreateIntegrationErrors, R as CreateIntegrationGitHubSetupData, T as CreateIntegrationGitHubSetupError, jd as CreateIntegrationGitHubSetupErrors, S as CreateIntegrationGitHubSetupResponse, je as CreateIntegrationGitHubSetupResponses, X as CreateIntegrationOAuthSetupData, Z as CreateIntegrationOAuthSetupError, jf as CreateIntegrationOAuthSetupErrors, jg as CreateIntegrationOAuthSetupRequest, Y as CreateIntegrationOAuthSetupResponse, jh as CreateIntegrationOAuthSetupResponses, V as CreateIntegrationResponse, ji as CreateIntegrationResponses, _ as CreateIntegrationSlackSetupData, a0 as CreateIntegrationSlackSetupError, jj as CreateIntegrationSlackSetupErrors, $ as CreateIntegrationSlackSetupResponse, jk as CreateIntegrationSlackSetupResponses, a1 as CreateIntegrationSubscriptionData, a3 as CreateIntegrationSubscriptionError, jl as CreateIntegrationSubscriptionErrors, jm as CreateIntegrationSubscriptionRequest, a2 as CreateIntegrationSubscriptionResponse, jn as CreateIntegrationSubscriptionResponses, jo as CreateMachineDaemonTokenRequest, jp as CreateMachineDaemonTokenResponse, a4 as CreateMachineData, a6 as CreateMachineError, jq as CreateMachineErrors, a7 as CreateMachinePoolData, a9 as CreateMachinePoolError, jr as CreateMachinePoolErrors, js as CreateMachinePoolRequest, jt as CreateMachinePoolRequestBase, a8 as CreateMachinePoolResponse, ju as CreateMachinePoolResponses, jv as CreateMachineRequest, a5 as CreateMachineResponse, jw as CreateMachineResponses, jx as CreateMemoryStore, aa as CreateMemoryStoreData, ac as CreateMemoryStoreError, jy as CreateMemoryStoreErrors, ab as CreateMemoryStoreResponse, jz as CreateMemoryStoreResponses, ad as CreateModelProviderConfigData, af as CreateModelProviderConfigError, jA as CreateModelProviderConfigErrors, jB as CreateModelProviderConfigRequest, jC as CreateModelProviderConfigResponse, ae as CreateModelProviderConfigResponse2, jD as CreateModelProviderConfigResponses, ag as CreateOrgApiKeyData, ai as CreateOrgApiKeyError, jE as CreateOrgApiKeyErrors, jF as CreateOrgApiKeyRequest, jG as CreateOrgApiKeyResponse, ah as CreateOrgApiKeyResponse2, jH as CreateOrgApiKeyResponses, aj as CreateOrgInvitationData, al as CreateOrgInvitationError, jI as CreateOrgInvitationErrors, jJ as CreateOrgInvitationRequest, ak as CreateOrgInvitationResponse, jK as CreateOrgInvitationResponses, am as CreateOrganizationData, ao as CreateOrganizationError, jL as CreateOrganizationErrors, jM as CreateOrganizationRequest, jN as CreateOrganizationResponse, an as CreateOrganizationResponse2, jO as CreateOrganizationResponses, ap as CreatePersonalAccessTokenData, ar as CreatePersonalAccessTokenError, jP as CreatePersonalAccessTokenErrors, jQ as CreatePersonalAccessTokenRequest, jR as CreatePersonalAccessTokenResponse, aq as CreatePersonalAccessTokenResponse2, jS as CreatePersonalAccessTokenResponses, aB as CreateProjectData, aD as CreateProjectError, jT as CreateProjectErrors, as as CreateProjectMachineGrantData, au as CreateProjectMachineGrantError, jU as CreateProjectMachineGrantErrors, jV as CreateProjectMachineGrantRequest, jW as CreateProjectMachineGrantResponse, at as CreateProjectMachineGrantResponse2, jX as CreateProjectMachineGrantResponses, av as CreateProjectMachinePoolGrantData, ax as CreateProjectMachinePoolGrantError, jY as CreateProjectMachinePoolGrantErrors, jZ as CreateProjectMachinePoolGrantRequest, aw as CreateProjectMachinePoolGrantResponse, j_ as CreateProjectMachinePoolGrantResponses, ay as CreateProjectModelGrantData, aA as CreateProjectModelGrantError, j$ as CreateProjectModelGrantErrors, k0 as CreateProjectModelGrantRequest, az as CreateProjectModelGrantResponse, k1 as CreateProjectModelGrantResponses, k2 as CreateProjectRequest, aC as CreateProjectResponse, k3 as CreateProjectResponses, aH as CreateSecretData, aJ as CreateSecretError, k4 as CreateSecretErrors, aE as CreateSecretGrantData, aG as CreateSecretGrantError, k5 as CreateSecretGrantErrors, aF as CreateSecretGrantResponse, k6 as CreateSecretGrantResponses, k7 as CreateSecretRequest, aI as CreateSecretResponse, k8 as CreateSecretResponses, aK as CreateSecretVersionData, aM as CreateSecretVersionError, k9 as CreateSecretVersionErrors, aL as CreateSecretVersionResponse, ka as CreateSecretVersionResponses, aQ as CreateSkillData, aS as CreateSkillError, kb as CreateSkillErrors, aN as CreateSkillGrantData, aP as CreateSkillGrantError, kc as CreateSkillGrantErrors, aO as CreateSkillGrantResponse, kd as CreateSkillGrantResponses, ke as CreateSkillRequest, aR as CreateSkillResponse, kf as CreateSkillResponses, kg as CreateSlackSetupRequest, kh as CreatedResourceListSort, ki as CronExpression, kj as CronMessageTemplate, kk as CronTimezone, ct as CronTrigger, kl as CronTriggerDeliveryMode, km as CronTriggerFailureReport, kn as CronTriggerId, ko as CronTriggerLastRun, kp as CronTriggerLastRunState, kq as CronTriggerTarget, kr as CurrentAgentResponse, cw as CurrentUser, ks as CurrentUserIdentity, kt as CurrentUserOrg, ku as DaemonRuntime, kv as DaemonRuntimeId, kw as DaemonRuntimeReconciliation, kx as DaemonRuntimeState, aT as DeclineInvitationData, aV as DeclineInvitationError, ky as DeclineInvitationErrors, aU as DeclineInvitationResponse, kz as DeclineInvitationResponses, aW as DeleteAgentProfileData, aY as DeleteAgentProfileError, kA as DeleteAgentProfileErrors, aX as DeleteAgentProfileResponse, kB as DeleteAgentProfileResponses, aZ as DeleteConfiguredModelData, a$ as DeleteConfiguredModelError, kC as DeleteConfiguredModelErrors, a_ as DeleteConfiguredModelResponse, kD as DeleteConfiguredModelResponses, b0 as DeleteCronTriggerData, b2 as DeleteCronTriggerError, kE as DeleteCronTriggerErrors, b1 as DeleteCronTriggerResponse, kF as DeleteCronTriggerResponses, b3 as DeleteCurrentUserData, b5 as DeleteCurrentUserError, kG as DeleteCurrentUserErrors, b4 as DeleteCurrentUserResponse, kH as DeleteCurrentUserResponses, b6 as DeleteIntegrationData, b8 as DeleteIntegrationError, kI as DeleteIntegrationErrors, b7 as DeleteIntegrationResponse, kJ as DeleteIntegrationResponses, b9 as DeleteIntegrationSubscriptionData, bb as DeleteIntegrationSubscriptionError, kK as DeleteIntegrationSubscriptionErrors, ba as DeleteIntegrationSubscriptionResponse, kL as DeleteIntegrationSubscriptionResponses, bc as DeleteMachineData, be as DeleteMachineError, kM as DeleteMachineErrors, bf as DeleteMachinePoolData, bh as DeleteMachinePoolError, kN as DeleteMachinePoolErrors, bg as DeleteMachinePoolResponse, kO as DeleteMachinePoolResponses, bd as DeleteMachineResponse, kP as DeleteMachineResponses, bi as DeleteMemoryFileData, bk as DeleteMemoryFileError, kQ as DeleteMemoryFileErrors, bj as DeleteMemoryFileResponse, kR as DeleteMemoryFileResponses, bl as DeleteMemoryStoreData, bn as DeleteMemoryStoreError, kS as DeleteMemoryStoreErrors, bm as DeleteMemoryStoreResponse, kT as DeleteMemoryStoreResponses, bo as DeleteModelProviderConfigData, bq as DeleteModelProviderConfigError, kU as DeleteModelProviderConfigErrors, bp as DeleteModelProviderConfigResponse, kV as DeleteModelProviderConfigResponses, br as DeleteOrgInvitationData, bt as DeleteOrgInvitationError, kW as DeleteOrgInvitationErrors, bs as DeleteOrgInvitationResponse, kX as DeleteOrgInvitationResponses, bu as DeleteOrganizationData, bw as DeleteOrganizationError, kY as DeleteOrganizationErrors, bv as DeleteOrganizationResponse, kZ as DeleteOrganizationResponses, bG as DeleteProjectData, bI as DeleteProjectError, k_ as DeleteProjectErrors, bx as DeleteProjectMachineGrantData, bz as DeleteProjectMachineGrantError, k$ as DeleteProjectMachineGrantErrors, by as DeleteProjectMachineGrantResponse, l0 as DeleteProjectMachineGrantResponses, bA as DeleteProjectMachinePoolGrantData, bC as DeleteProjectMachinePoolGrantError, l1 as DeleteProjectMachinePoolGrantErrors, bB as DeleteProjectMachinePoolGrantResponse, l2 as DeleteProjectMachinePoolGrantResponses, bD as DeleteProjectModelGrantData, bF as DeleteProjectModelGrantError, l3 as DeleteProjectModelGrantErrors, bE as DeleteProjectModelGrantResponse, l4 as DeleteProjectModelGrantResponses, bH as DeleteProjectResponse, l5 as DeleteProjectResponses, bM as DeleteSecretData, bO as DeleteSecretError, l6 as DeleteSecretErrors, bJ as DeleteSecretGrantData, bL as DeleteSecretGrantError, l7 as DeleteSecretGrantErrors, bK as DeleteSecretGrantResponse, l8 as DeleteSecretGrantResponses, bN as DeleteSecretResponse, l9 as DeleteSecretResponses, bS as DeleteSkillData, bU as DeleteSkillError, la as DeleteSkillErrors, bP as DeleteSkillGrantData, bR as DeleteSkillGrantError, lb as DeleteSkillGrantErrors, bQ as DeleteSkillGrantResponse, lc as DeleteSkillGrantResponses, bT as DeleteSkillResponse, ld as DeleteSkillResponses, bV as DemoteSteeringInputToQueuedData, bX as DemoteSteeringInputToQueuedError, le as DemoteSteeringInputToQueuedErrors, bW as DemoteSteeringInputToQueuedResponse, lf as DemoteSteeringInputToQueuedResponses, lg as DirectSecretAvailability, lh as DirectSkillAvailability, bY as DisconnectIntegrationData, b_ as DisconnectIntegrationError, li as DisconnectIntegrationErrors, bZ as DisconnectIntegrationResponse, lj as DisconnectIntegrationResponses, lk as DiscoveredModelPricing, ll as DiscoveredProviderModel, b$ as DownloadDaemonFileData, c0 as DownloadDaemonFileError, lm as DownloadDaemonFileErrors, ln as DownloadDaemonFileResponse, lo as DownloadDaemonFileResponses, c1 as DownloadMemoryFileData, c2 as DownloadMemoryFileError, lp as DownloadMemoryFileErrors, lq as DownloadMemoryFileResponse, lr as DownloadMemoryFileResponses, c3 as EndMachineDaemonRuntimeData, c5 as EndMachineDaemonRuntimeError, ls as EndMachineDaemonRuntimeErrors, c4 as EndMachineDaemonRuntimeResponse, lt as EndMachineDaemonRuntimeResponses, lu as ErrorContentBlock, lv as EventWebhookAgentInputEvent, lw as EventWebhookContextCheckpointEvent, lx as EventWebhookModelOutputEvent, ly as EventWebhookPayload, lz as EventWebhookToolCallUpdate, lA as EventWebhookToolResultEvent, lB as ExternalActorParams, lC as GenericSecretMaterial, c6 as GetActorData, c8 as GetActorError, lD as GetActorErrors, lE as GetActorResponse, lF as GetActorResponses, c9 as GetAgentConfigData, cb as GetAgentConfigError, lG as GetAgentConfigErrors, lH as GetAgentConfigResponse, lI as GetAgentConfigResponses, cc as GetAgentData, ce as GetAgentError, lJ as GetAgentErrors, cf as GetAgentProfileData, ch as GetAgentProfileError, lK as GetAgentProfileErrors, lL as GetAgentProfileResponse, lM as GetAgentProfileResponses, ci as GetAgentProfileUsageData, ck as GetAgentProfileUsageError, lN as GetAgentProfileUsageErrors, lO as GetAgentProfileUsageResponse, lP as GetAgentProfileUsageResponses, cd as GetAgentResponse, lQ as GetAgentResponse2, lR as GetAgentResponses, cl as GetAgentUsageData, cm as GetAgentUsageError, lS as GetAgentUsageErrors, lT as GetAgentUsageResponse, lU as GetAgentUsageResponses, cn as GetArtifactContentData, co as GetArtifactContentError, lV as GetArtifactContentErrors, lW as GetArtifactContentResponse, lX as GetArtifactContentResponses, cp as GetArtifactData, cr as GetArtifactError, lY as GetArtifactErrors, lZ as GetArtifactResponse, l_ as GetArtifactResponses, cs as GetCronTriggerData, cu as GetCronTriggerError, l$ as GetCronTriggerErrors, m0 as GetCronTriggerResponse, m1 as GetCronTriggerResponses, cv as GetCurrentUserData, cx as GetCurrentUserError, m2 as GetCurrentUserErrors, m3 as GetCurrentUserResponse, m4 as GetCurrentUserResponses, cy as GetDaemonGitCredentialsData, cA as GetDaemonGitCredentialsError, m5 as GetDaemonGitCredentialsErrors, cz as GetDaemonGitCredentialsResponse, m6 as GetDaemonGitCredentialsResponses, cB as GetDaemonSkillArchiveData, cC as GetDaemonSkillArchiveError, m7 as GetDaemonSkillArchiveErrors, m8 as GetDaemonSkillArchiveResponse, m9 as GetDaemonSkillArchiveResponses, cD as GetIntegrationData, cF as GetIntegrationError, ma as GetIntegrationErrors, mb as GetIntegrationResponse, mc as GetIntegrationResponses, cG as GetMachineData, cI as GetMachineError, md as GetMachineErrors, cJ as GetMachinePoolData, cL as GetMachinePoolError, me as GetMachinePoolErrors, mf as GetMachinePoolResponse, mg as GetMachinePoolResponses, mh as GetMachineResponse, mi as GetMachineResponses, cM as GetMemoryStoreData, cO as GetMemoryStoreError, mj as GetMemoryStoreErrors, mk as GetMemoryStoreResponse, ml as GetMemoryStoreResponses, cP as GetModelCatalogData, cR as GetModelCatalogError, mm as GetModelCatalogErrors, mn as GetModelCatalogResponse, mo as GetModelCatalogResponses, cS as GetModelProviderConfigData, cU as GetModelProviderConfigError, mp as GetModelProviderConfigErrors, mq as GetModelProviderConfigResponse, mr as GetModelProviderConfigResponses, cV as GetOrgApiKeyData, cX as GetOrgApiKeyError, ms as GetOrgApiKeyErrors, mt as GetOrgApiKeyResponse, mu as GetOrgApiKeyResponses, cY as GetOrgOverviewData, c_ as GetOrgOverviewError, mv as GetOrgOverviewErrors, mw as GetOrgOverviewResponse, mx as GetOrgOverviewResponses, c$ as GetOrgUsageData, d0 as GetOrgUsageError, my as GetOrgUsageErrors, mz as GetOrgUsageResponse, mA as GetOrgUsageResponses, d1 as GetOrgUsageTimeseriesData, d3 as GetOrgUsageTimeseriesError, mB as GetOrgUsageTimeseriesErrors, mC as GetOrgUsageTimeseriesResponse, mD as GetOrgUsageTimeseriesResponses, d4 as GetProjectAvailableSecretData, d6 as GetProjectAvailableSecretError, mE as GetProjectAvailableSecretErrors, mF as GetProjectAvailableSecretResponse, mG as GetProjectAvailableSecretResponses, d7 as GetProjectMachinePoolGrantData, d9 as GetProjectMachinePoolGrantError, mH as GetProjectMachinePoolGrantErrors, mI as GetProjectMachinePoolGrantResponse, mJ as GetProjectMachinePoolGrantResponses, da as GetProjectUsageData, db as GetProjectUsageError, mK as GetProjectUsageErrors, mL as GetProjectUsageResponse, mM as GetProjectUsageResponses, dc as GetSecretData, de as GetSecretError, mN as GetSecretErrors, mO as GetSecretResponse, mP as GetSecretResponses, df as GetSkillData, dh as GetSkillError, mQ as GetSkillErrors, mR as GetSkillResponse, mS as GetSkillResponses, di as GetToolCatalogData, dk as GetToolCatalogError, mT as GetToolCatalogErrors, mU as GetToolCatalogResponse, mV as GetToolCatalogResponses, mW as GitHubAppCredentialsSecretMaterial, mX as GitHubInstallations, mY as GitHubSetup, mZ as GitHubSetupInstallation, m_ as GrantedSecretAvailability, m$ as GrantedSkillAvailability, n0 as IdempotencyKey, n1 as InlineMediaContentBlock, n2 as InspectGitHubInstallationsRequest, dl as InspectIntegrationGitHubInstallationsData, dn as InspectIntegrationGitHubInstallationsError, n3 as InspectIntegrationGitHubInstallationsErrors, dm as InspectIntegrationGitHubInstallationsResponse, n4 as InspectIntegrationGitHubInstallationsResponses, n5 as InstallationId, cE as Integration, n6 as IntegrationCapabilities, n7 as IntegrationCapabilityDefinition, n8 as IntegrationConversation, n9 as IntegrationCronTriggerTarget, na as IntegrationDefinition, nb as IntegrationId, nc as IntegrationName, nd as IntegrationOAuthFlowId, ne as IntegrationOAuthSetup, nf as IntegrationProviderDisplayName, ng as IntegrationRuntimeFailure, nh as IntegrationState, ni as IntegrationSubscription, nj as IntegrationSubscriptionAttachment, nk as IntegrationSubscriptionDefinition, nl as IntegrationSubscriptionId, nm as IntegrationTarget, nn as IntegrationTargetId, no as InteractionAnswer, np as InteractionForm, nq as InteractionFormContextItem, nr as InteractionFormOption, ns as InteractionFormQuestion, nt as InteractionPresentationReceipt, nu as InteractionResolution, nv as JsonBlob, nw as LaunchAgentResponse, dp as ListActorsData, dr as ListActorsError, nx as ListActorsErrors, dq as ListActorsResponse, ny as ListActorsResponse2, nz as ListActorsResponses, dL as ListAgentEventsResponse, eS as ListAgentInputsResponse, ds as ListAgentInteractionsData, du as ListAgentInteractionsError, nA as ListAgentInteractionsErrors, dt as ListAgentInteractionsResponse, nB as ListAgentInteractionsResponse2, nC as ListAgentInteractionsResponses, dv as ListAgentProfilesData, dx as ListAgentProfilesError, nD as ListAgentProfilesErrors, dw as ListAgentProfilesResponse, nE as ListAgentProfilesResponse2, nF as ListAgentProfilesResponses, fb as ListAgentTurnsResponse, dy as ListAgentsData, dA as ListAgentsError, nG as ListAgentsErrors, dz as ListAgentsResponse, nH as ListAgentsResponse2, nI as ListAgentsResponses, dB as ListByoMachineDaemonTokensData, dD as ListByoMachineDaemonTokensError, nJ as ListByoMachineDaemonTokensErrors, nK as ListByoMachineDaemonTokensResponse, nL as ListByoMachineDaemonTokensResponses, dE as ListConfiguredModelsData, dG as ListConfiguredModelsError, nM as ListConfiguredModelsErrors, nN as ListConfiguredModelsResponse, nO as ListConfiguredModelsResponses, dH as ListCronTriggersData, dJ as ListCronTriggersError, nP as ListCronTriggersErrors, dI as ListCronTriggersResponse, nQ as ListCronTriggersResponse2, nR as ListCronTriggersResponses, dK as ListEventsData, dM as ListEventsError, nS as ListEventsErrors, nT as ListEventsResponse, nU as ListEventsResponses, dN as ListIntegrationDefinitionsData, dP as ListIntegrationDefinitionsError, nV as ListIntegrationDefinitionsErrors, dO as ListIntegrationDefinitionsResponse, nW as ListIntegrationDefinitionsResponse2, nX as ListIntegrationDefinitionsResponses, dQ as ListIntegrationSubscriptionsData, dS as ListIntegrationSubscriptionsError, nY as ListIntegrationSubscriptionsErrors, dR as ListIntegrationSubscriptionsResponse, nZ as ListIntegrationSubscriptionsResponse2, n_ as ListIntegrationSubscriptionsResponses, dT as ListIntegrationsData, dV as ListIntegrationsError, n$ as ListIntegrationsErrors, dU as ListIntegrationsResponse, o0 as ListIntegrationsResponse2, o1 as ListIntegrationsResponses, dC as ListMachineDaemonTokensResponse, dW as ListMachinePoolsData, dY as ListMachinePoolsError, o2 as ListMachinePoolsErrors, dX as ListMachinePoolsResponse, o3 as ListMachinePoolsResponse2, o4 as ListMachinePoolsResponses, dZ as ListMcpServerToolsData, d$ as ListMcpServerToolsError, o5 as ListMcpServerToolsErrors, d_ as ListMcpServerToolsResponse, o6 as ListMcpServerToolsResponses, e0 as ListMcpServersData, e2 as ListMcpServersError, o7 as ListMcpServersErrors, e1 as ListMcpServersResponse, o8 as ListMcpServersResponse2, o9 as ListMcpServersResponses, e3 as ListMemberProjectAccessData, e5 as ListMemberProjectAccessError, oa as ListMemberProjectAccessErrors, ob as ListMemberProjectAccessResponse, oc as ListMemberProjectAccessResponses, e6 as ListMemoryFilesData, e8 as ListMemoryFilesError, od as ListMemoryFilesErrors, oe as ListMemoryFilesResponse, of as ListMemoryFilesResponses, e9 as ListMemoryStoresData, eb as ListMemoryStoresError, og as ListMemoryStoresErrors, oh as ListMemoryStoresResponse, oi as ListMemoryStoresResponses, ec as ListModelProviderConfigsData, ee as ListModelProviderConfigsError, oj as ListModelProviderConfigsErrors, ok as ListModelProviderConfigsResponse, ol as ListModelProviderConfigsResponses, ef as ListOrgAgentProfilesData, eg as ListOrgAgentProfilesError, om as ListOrgAgentProfilesErrors, on as ListOrgAgentProfilesResponse, oo as ListOrgAgentProfilesResponses, eh as ListOrgAgentsData, ei as ListOrgAgentsError, op as ListOrgAgentsErrors, oq as ListOrgAgentsResponse, or as ListOrgAgentsResponses, ej as ListOrgApiKeyProjectAccessData, ek as ListOrgApiKeyProjectAccessError, os as ListOrgApiKeyProjectAccessErrors, ot as ListOrgApiKeyProjectAccessResponse, ou as ListOrgApiKeyProjectAccessResponses, el as ListOrgApiKeysData, en as ListOrgApiKeysError, ov as ListOrgApiKeysErrors, em as ListOrgApiKeysResponse, ow as ListOrgApiKeysResponse2, ox as ListOrgApiKeysResponses, eo as ListOrgInvitationsData, eq as ListOrgInvitationsError, oy as ListOrgInvitationsErrors, ep as ListOrgInvitationsResponse, oz as ListOrgInvitationsResponse2, oA as ListOrgInvitationsResponses, er as ListOrgMembersData, et as ListOrgMembersError, oB as ListOrgMembersErrors, es as ListOrgMembersResponse, oC as ListOrgMembersResponse2, oD as ListOrgMembersResponses, eu as ListOrganizationsData, ew as ListOrganizationsError, oE as ListOrganizationsErrors, ev as ListOrganizationsResponse, oF as ListOrganizationsResponse2, oG as ListOrganizationsResponses, ex as ListPendingInvitationsData, ey as ListPendingInvitationsError, oH as ListPendingInvitationsErrors, oI as ListPendingInvitationsResponse, oJ as ListPendingInvitationsResponses, ez as ListPersonalAccessTokensData, eB as ListPersonalAccessTokensError, oK as ListPersonalAccessTokensErrors, eA as ListPersonalAccessTokensResponse, oL as ListPersonalAccessTokensResponse2, oM as ListPersonalAccessTokensResponses, eC as ListProjectAvailableSecretsData, eE as ListProjectAvailableSecretsError, oN as ListProjectAvailableSecretsErrors, oO as ListProjectAvailableSecretsResponse, oP as ListProjectAvailableSecretsResponses, eF as ListProjectAvailableSkillsData, eH as ListProjectAvailableSkillsError, oQ as ListProjectAvailableSkillsErrors, oR as ListProjectAvailableSkillsResponse, oS as ListProjectAvailableSkillsResponses, eI as ListProjectMachineGrantsData, eK as ListProjectMachineGrantsError, oT as ListProjectMachineGrantsErrors, eJ as ListProjectMachineGrantsResponse, oU as ListProjectMachineGrantsResponse2, oV as ListProjectMachineGrantsResponses, eL as ListProjectMachinePoolGrantsData, eN as ListProjectMachinePoolGrantsError, oW as ListProjectMachinePoolGrantsErrors, eM as ListProjectMachinePoolGrantsResponse, oX as ListProjectMachinePoolGrantsResponse2, oY as ListProjectMachinePoolGrantsResponses, e4 as ListProjectMembershipGrantsResponse, eO as ListProjectModelGrantsData, eQ as ListProjectModelGrantsError, oZ as ListProjectModelGrantsErrors, eP as ListProjectModelGrantsResponse, o_ as ListProjectModelGrantsResponse2, o$ as ListProjectModelGrantsResponses, eD as ListProjectSecretAccessesResponse, eG as ListProjectSkillAccessesResponse, fj as ListProjectsResponse, eR as ListQueuedBacklogInputsData, eT as ListQueuedBacklogInputsError, p0 as ListQueuedBacklogInputsErrors, p1 as ListQueuedBacklogInputsResponse, p2 as ListQueuedBacklogInputsResponses, eU as ListSecretGrantsData, eW as ListSecretGrantsError, p3 as ListSecretGrantsErrors, eV as ListSecretGrantsResponse, p4 as ListSecretGrantsResponse2, p5 as ListSecretGrantsResponses, eX as ListSecretsData, eZ as ListSecretsError, p6 as ListSecretsErrors, eY as ListSecretsResponse, p7 as ListSecretsResponse2, p8 as ListSecretsResponses, e_ as ListSkillGrantsData, f0 as ListSkillGrantsError, p9 as ListSkillGrantsErrors, e$ as ListSkillGrantsResponse, pa as ListSkillGrantsResponse2, pb as ListSkillGrantsResponses, f1 as ListSkillsData, f3 as ListSkillsError, pc as ListSkillsErrors, f2 as ListSkillsResponse, pd as ListSkillsResponse2, pe as ListSkillsResponses, f4 as ListToolCallsData, f6 as ListToolCallsError, pf as ListToolCallsErrors, f5 as ListToolCallsResponse, pg as ListToolCallsResponse2, ph as ListToolCallsResponses, f7 as ListTurnEventsData, f9 as ListTurnEventsError, pi as ListTurnEventsErrors, f8 as ListTurnEventsResponse, pj as ListTurnEventsResponse2, pk as ListTurnEventsResponses, fa as ListTurnsData, fc as ListTurnsError, pl as ListTurnsErrors, pm as ListTurnsResponse, pn as ListTurnsResponses, fd as ListVisibleMachinesData, ff as ListVisibleMachinesError, po as ListVisibleMachinesErrors, fe as ListVisibleMachinesResponse, pp as ListVisibleMachinesResponse2, pq as ListVisibleMachinesResponses, fg as ListVisibleProjectMachinesData, fh as ListVisibleProjectMachinesError, pr as ListVisibleProjectMachinesErrors, ps as ListVisibleProjectMachinesResponse, pt as ListVisibleProjectMachinesResponses, fi as ListVisibleProjectsData, fk as ListVisibleProjectsError, pu as ListVisibleProjectsErrors, pv as ListVisibleProjectsResponse, pw as ListVisibleProjectsResponses, cH as Machine, px as MachineAccess, py as MachineAccessSource, pz as MachineAccessSourceKind, pA as MachineConnectionState, pB as MachineDaemonToken, pC as MachineDaemonTokenId, pD as MachineFailureReport, pE as MachineId, pF as MachineLifecycleState, pG as MachineMetadata, cK as MachinePool, pH as MachinePoolId, pI as MachinePoolSummary, pJ as MachinePoolUsage, pK as MachineSourceKind, pL as MachineSourceKindFilter, pM as MachineSummary, pN as MachineSummaryFields, pO as ManagementKind, pP as McpRegistryHeader, pQ as McpRegistryIcon, pR as McpRegistryRemote, pS as McpRegistryServer, pT as McpServerAuth, pU as McpServerAuthBearer, pV as McpServerAuthHint, pW as McpServerAuthNone, pX as McpServerAuthOAuth, pY as McpServerAuthRequiredError, pZ as McpServerAuthSigV4, p_ as McpServerInfo, p$ as McpServerTool, q0 as McpServerToolAnnotations, q1 as McpServerToolsRequest, q2 as McpServerToolsResponse, q3 as McpoAuthFlowId, q4 as McpoAuthStartMetadata, q5 as McpoAuthStartRequest, q6 as McpoAuthStartResponse, q7 as MediaRefContentBlock, q8 as MemoryDirectory, q9 as MemoryFile, e7 as MemoryFileList, qa as MemoryRegularFile, cN as MemoryStore, qb as MemoryStoreAccess, qc as MemoryStoreId, ea as MemoryStoreList, qd as MemoryStoreName, qe as Metadata, qf as ModelApiFormat, qg as ModelApiVariantOptions, qh as ModelCacheRetention, qi as ModelCallContextId, cQ as ModelCatalog, qj as ModelOutputBlockStartDelta, qk as ModelOutputBlockStopDelta, ql as ModelOutputContentBlock, qm as ModelOutputDelta, qn as ModelOutputErrorDelta, qo as ModelOutputEvent, qp as ModelOutputMessageStopDelta, qq as ModelOutputStopReason, qr as ModelOutputStreamBlock, qs as ModelOutputStreamDelta, qt as ModelOutputTextDelta, qu as ModelOutputTextStreamBlock, qv as ModelOutputThinkingDelta, qw as ModelOutputThinkingStreamBlock, qx as ModelOutputToolArgumentsDelta, qy as ModelOutputToolUseStreamBlock, qz as ModelProviderApiVariant, qA as ModelProviderApiVariantResponse, qB as ModelProviderAuthKind, qC as ModelProviderAuthKindResponse, cT as ModelProviderConfig, qD as ModelProviderConfigId, ed as ModelProviderConfigList, qE as ModelStopReason, qF as ModelToolCallContentBlock, qG as ModelUsage, qH as ModelUsageTotals, fl as MoveQueuedBacklogInputData, fn as MoveQueuedBacklogInputError, qI as MoveQueuedBacklogInputErrors, qJ as MoveQueuedBacklogInputRequest, fm as MoveQueuedBacklogInputResponse, qK as MoveQueuedBacklogInputResponses, qL as OAuthRefreshSecretMaterial, qM as OAuthTokenSetSecretMaterial, qN as OkResponse, cW as OrgApiKey, qO as OrgApiKeyId, qP as OrgApiKeyRole, qQ as OrgInvitation, qR as OrgInvitationId, qS as OrgMember, qT as OrgOverviewAgentProfileReference, qU as OrgOverviewProjectActivity, cZ as OrgOverviewResponse, qV as OrgSecretOwner, qW as OrgSecretOwnerInput, qX as OrgSkillOwner, qY as OrgSkillOwnerInput, qZ as Organization, q_ as OrganizationId, q$ as OrganizationMembership, r0 as PageCursor, r1 as PageLimit, r2 as PersonalAccessTokenId, r3 as ProcessActionId, r4 as ProcessActionReconciliationClaim, r5 as ProcessActionReconciliationDirective, r6 as ProcessId, r7 as ProcessReconciliationClaim, r8 as ProcessReconciliationDirective, r9 as Project, ra as ProjectAccess, rb as ProjectFields, rc as ProjectId, rd as ProjectMachineGrant, re as ProjectMachineGrantId, rf as ProjectMachineGrantListItem, rg as ProjectMachineGrantSourceKind, d8 as ProjectMachinePoolGrant, rh as ProjectMachinePoolGrantId, ri as ProjectMachinePoolGrantListItem, rj as ProjectMembershipGrant, rk as ProjectModelGrant, rl as ProjectModelGrantEffectiveReasoning, rm as ProjectModelGrantEnvelope, rn as ProjectModelGrantId, ro as ProjectModelGrantListItem, d5 as ProjectSecretAccess, rp as ProjectSecretOwner, rq as ProjectSecretOwnerInput, rr as ProjectSkillAccess, rs as ProjectSkillOwner, rt as ProjectSkillOwnerInput, fo as PromoteQueuedInputToSteeringData, fq as PromoteQueuedInputToSteeringError, ru as PromoteQueuedInputToSteeringErrors, rv as PromoteQueuedInputToSteeringRequest, fp as PromoteQueuedInputToSteeringResponse, rw as PromoteQueuedInputToSteeringResponses, fr as PutActorData, ft as PutActorError, rx as PutActorErrors, fs as PutActorResponse, ry as PutActorResponses, rz as ReasoningContentBlock, fu as RecordMachineFailureData, fw as RecordMachineFailureError, rA as RecordMachineFailureErrors, fv as RecordMachineFailureResponse, rB as RecordMachineFailureResponses, rC as RegisterDaemonRuntimeRequest, rD as RegisterDaemonRuntimeResponse, fx as RegisterMachineDaemonRuntimeData, fz as RegisterMachineDaemonRuntimeError, rE as RegisterMachineDaemonRuntimeErrors, fy as RegisterMachineDaemonRuntimeResponse, rF as RegisterMachineDaemonRuntimeResponses, fA as RemoveMemberProjectAccessData, fC as RemoveMemberProjectAccessError, rG as RemoveMemberProjectAccessErrors, fB as RemoveMemberProjectAccessResponse, rH as RemoveMemberProjectAccessResponses, fD as RemoveOrgApiKeyProjectRoleData, fF as RemoveOrgApiKeyProjectRoleError, rI as RemoveOrgApiKeyProjectRoleErrors, fE as RemoveOrgApiKeyProjectRoleResponse, rJ as RemoveOrgApiKeyProjectRoleResponses, fG as RemoveOrgMemberData, fI as RemoveOrgMemberError, rK as RemoveOrgMemberErrors, fH as RemoveOrgMemberResponse, rL as RemoveOrgMemberResponses, fJ as RenameAgentProfileData, fL as RenameAgentProfileError, rM as RenameAgentProfileErrors, rN as RenameAgentProfileRequest, fK as RenameAgentProfileResponse, rO as RenameAgentProfileResponses, fM as ResolveAgentConfigToolsData, fO as ResolveAgentConfigToolsError, rP as ResolveAgentConfigToolsErrors, rQ as ResolveAgentConfigToolsRequest, fN as ResolveAgentConfigToolsResponse, rR as ResolveAgentConfigToolsResponses, fP as ResolveAgentInteractionData, fR as ResolveAgentInteractionError, rS as ResolveAgentInteractionErrors, rT as ResolveAgentInteractionRequest, fQ as ResolveAgentInteractionResponse, rU as ResolveAgentInteractionResponses, rV as ResolvedAgentConfigTool, rW as ResolvedAgentConfigTools, rX as ResourceListSort, rY as ResourceName, rZ as ResourceNameFilter, fS as RevokeMachineDaemonTokenData, fU as RevokeMachineDaemonTokenError, r_ as RevokeMachineDaemonTokenErrors, fT as RevokeMachineDaemonTokenResponse, r$ as RevokeMachineDaemonTokenResponses, fV as RevokeOrgApiKeyData, fX as RevokeOrgApiKeyError, s0 as RevokeOrgApiKeyErrors, fW as RevokeOrgApiKeyResponse, s1 as RevokeOrgApiKeyResponses, fY as RevokePersonalAccessTokenData, f_ as RevokePersonalAccessTokenError, s2 as RevokePersonalAccessTokenErrors, fZ as RevokePersonalAccessTokenResponse, s3 as RevokePersonalAccessTokenResponses, dd as Secret, s4 as SecretAvailability, s5 as SecretAvailabilitySourceFilter, s6 as SecretGrant, s7 as SecretGrantCreateRequest, s8 as SecretGrantId, s9 as SecretGrantListItem, sa as SecretId, sb as SecretKind, sc as SecretKindFilter, sd as SecretMaterial, se as SecretMcpoAuthFlowIdFilter, sf as SecretMetadataFilter, sg as SecretOwner, sh as SecretOwnerInput, si as SecretOwnerKindFilter, sj as SecretOwnerProjectIdFilter, sk as SecretVersionRequest, sl as ServerErrorCode, f$ as SetMemberProjectAccessData, g1 as SetMemberProjectAccessError, sm as SetMemberProjectAccessErrors, g0 as SetMemberProjectAccessResponse, sn as SetMemberProjectAccessResponses, g2 as SetOrgApiKeyProjectRoleData, g4 as SetOrgApiKeyProjectRoleError, so as SetOrgApiKeyProjectRoleErrors, g3 as SetOrgApiKeyProjectRoleResponse, sp as SetOrgApiKeyProjectRoleResponses, sq as SetProjectMembershipRequest, dg as Skill, sr as SkillAvailability, ss as SkillAvailabilitySourceFilter, st as SkillFile, su as SkillGrant, sv as SkillGrantCreateRequest, sw as SkillGrantId, sx as SkillGrantListItem, sy as SkillId, sz as SkillName, sA as SkillOwner, sB as SkillOwnerInput, sC as SkillOwnerKindFilter, sD as SkillOwnerProjectIdFilter, sE as SkillRevisionId, sF as SlackSetup, sG as SlackSetupIcon, g5 as SleepMachineDaemonRuntimeData, g7 as SleepMachineDaemonRuntimeError, sH as SleepMachineDaemonRuntimeErrors, g6 as SleepMachineDaemonRuntimeResponse, sI as SleepMachineDaemonRuntimeResponses, g8 as SocketMachineDaemonRuntimeData, g9 as SocketMachineDaemonRuntimeError, sJ as SocketMachineDaemonRuntimeErrors, ga as StartSecretMcpoAuthData, gc as StartSecretMcpoAuthError, sK as StartSecretMcpoAuthErrors, gb as StartSecretMcpoAuthResponse, sL as StartSecretMcpoAuthResponses, sM as StreamEventsError, sN as StreamEventsErrors, sO as StreamEventsResponse, sP as StreamEventsResponses, sQ as StructuredDataContentBlock, gd as SubmitToolCallResultData, gf as SubmitToolCallResultError, sR as SubmitToolCallResultErrors, sS as SubmitToolCallResultRequest, sT as SubmitToolCallResultResponse, ge as SubmitToolCallResultResponse2, sU as SubmitToolCallResultResponses, sV as SubmitToolResultContentBlock, sW as TextContentBlock, sX as Timestamp, sY as ToolCall, sZ as ToolCallId, s_ as ToolCallOutcome, s$ as ToolCallState, t0 as ToolCallType, t1 as ToolCallUpdate, dj as ToolCatalog, t2 as ToolCatalogEntry, t3 as ToolInput, t4 as ToolPermissionMode, t5 as ToolPermissionProfile, t6 as ToolPermissionSelection, t7 as ToolResult, t8 as ToolResultContentBlock, t9 as ToolResultEvent, gg as UpdateAgentConfigData, gi as UpdateAgentConfigError, ta as UpdateAgentConfigErrors, tb as UpdateAgentConfigRequest, tc as UpdateAgentConfigResponse, gh as UpdateAgentConfigResponse2, td as UpdateAgentConfigResponses, gj as UpdateAgentProfileData, gl as UpdateAgentProfileError, te as UpdateAgentProfileErrors, tf as UpdateAgentProfileRequest, gk as UpdateAgentProfileResponse, tg as UpdateAgentProfileResponses, gm as UpdateConfiguredModelData, go as UpdateConfiguredModelError, th as UpdateConfiguredModelErrors, ti as UpdateConfiguredModelRequest, gn as UpdateConfiguredModelResponse, tj as UpdateConfiguredModelResponses, gp as UpdateCronTriggerData, gr as UpdateCronTriggerError, tk as UpdateCronTriggerErrors, tl as UpdateCronTriggerRequest, gq as UpdateCronTriggerResponse, tm as UpdateCronTriggerResponses, gs as UpdateIntegrationData, gu as UpdateIntegrationError, tn as UpdateIntegrationErrors, gt as UpdateIntegrationResponse, to as UpdateIntegrationResponses, gv as UpdateMachineData, gx as UpdateMachineError, tp as UpdateMachineErrors, gy as UpdateMachinePoolData, gA as UpdateMachinePoolError, tq as UpdateMachinePoolErrors, tr as UpdateMachinePoolRequest, gz as UpdateMachinePoolResponse, ts as UpdateMachinePoolResponses, tt as UpdateMachineRequest, gw as UpdateMachineResponse, tu as UpdateMachineResponses, tv as UpdateMemoryStore, gB as UpdateMemoryStoreData, gD as UpdateMemoryStoreError, tw as UpdateMemoryStoreErrors, gC as UpdateMemoryStoreResponse, tx as UpdateMemoryStoreResponses, gE as UpdateModelProviderConfigData, gG as UpdateModelProviderConfigError, ty as UpdateModelProviderConfigErrors, tz as UpdateModelProviderConfigRequest, gF as UpdateModelProviderConfigResponse, tA as UpdateModelProviderConfigResponses, gH as UpdateOrgApiKeyData, gJ as UpdateOrgApiKeyError, tB as UpdateOrgApiKeyErrors, tC as UpdateOrgApiKeyRequest, gI as UpdateOrgApiKeyResponse, tD as UpdateOrgApiKeyResponses, gK as UpdateOrgMemberData, gM as UpdateOrgMemberError, tE as UpdateOrgMemberErrors, tF as UpdateOrgMemberRequest, gL as UpdateOrgMemberResponse, tG as UpdateOrgMemberResponses, gN as UpdateProjectMachinePoolGrantData, gP as UpdateProjectMachinePoolGrantError, tH as UpdateProjectMachinePoolGrantErrors, tI as UpdateProjectMachinePoolGrantRequest, gO as UpdateProjectMachinePoolGrantResponse, tJ as UpdateProjectMachinePoolGrantResponses, gQ as UpdateProjectModelGrantData, gS as UpdateProjectModelGrantError, tK as UpdateProjectModelGrantErrors, tL as UpdateProjectModelGrantRequest, gR as UpdateProjectModelGrantResponse, tM as UpdateProjectModelGrantResponses, gT as UpdateSecretData, gV as UpdateSecretError, tN as UpdateSecretErrors, tO as UpdateSecretRequest, gU as UpdateSecretResponse, tP as UpdateSecretResponses, gW as UpdateSkillData, gY as UpdateSkillError, tQ as UpdateSkillErrors, tR as UpdateSkillRequest, gX as UpdateSkillResponse, tS as UpdateSkillResponses, gZ as UploadDaemonFileData, g$ as UploadDaemonFileError, tT as UploadDaemonFileErrors, g_ as UploadDaemonFileResponse, tU as UploadDaemonFileResponses, tV as UploadFileResponse, tW as UsageCostTotals, tX as UsageExcludeProjectIds, tY as UsageIncludeProjectIds, tZ as UsageModel, cj as UsageReport, t_ as UsageSince, d2 as UsageTimeseries, t$ as UsageTimeseriesGroupBy, u0 as UsageTimeseriesInterval, u1 as UsageTimeseriesMetric, u2 as UsageTimeseriesSeries, u3 as UsageTokenTotals, u4 as UsageTotals, u5 as UsageUntil, u6 as UserId, u7 as UserSecretOwner, u8 as UserSecretOwnerInput, u9 as UserSkillOwner, ua as UserSkillOwnerInput, ub as VisibleMachine, uc as VisibleProject, h0 as WriteMemoryFileData, h2 as WriteMemoryFileError, ud as WriteMemoryFileErrors, h1 as WriteMemoryFileResponse, ue as WriteMemoryFileResponses, uf as sdk } from './sdk.gen-CgYY8k0E.js';
5
5
  import * as z from 'zod';
6
- export { z as schemas } from './zod.gen-B8yDGmd3.js';
6
+ export { z as schemas } from './zod.gen-CGV1WHNJ.js';
7
7
 
8
8
  declare const createClient: (config?: Config) => Client;
9
9
 
@@ -109,4 +109,49 @@ declare function pollDeviceAuthToken(options: PollDeviceAuthTokenOptions): Promi
109
109
  declare const MAX_MEMORY_FILE_BYTES: number;
110
110
  declare const FILE_DIGEST_HEADER = "X-Omnara-File-Digest";
111
111
 
112
- export { AgentConfigErrorIssue, type AgentEventStreamConnectionState, AgentEventStreamData, AgentEventStreamError, type AgentEventStreamErrorKind, type AgentEventStreamFrame, ApiError, type ApiErrorCode, AuthStrategy, DeviceAuthError, type DeviceAuthFailureCode, type DeviceAuthStart, Error$1 as Error, ErrorCode, FILE_DIGEST_HEADER, 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, cliLoginTokenHost, cliLoginTokenName, createOmnaraClient, isCliLoginToken, openAgentEventStream, pollDeviceAuthToken, startDeviceAuth, zJsonText };
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
+ declare function chatIntegrationLauncher(settings: IntegrationSettings): {
123
+ profiles: string[];
124
+ } | undefined;
125
+ declare function githubIntegrationSettings(settings: IntegrationSettings): {
126
+ launcher: {
127
+ profile: string;
128
+ trigger: "mention" | "pull_request_opened" | "both";
129
+ repository_id?: string | undefined;
130
+ } | undefined;
131
+ };
132
+ declare function profileIntegrationProfiles(integration: {
133
+ integration_kind: IntegrationKind;
134
+ settings: IntegrationSettings;
135
+ }): string[];
136
+ declare function profileIntegrationDiscordKeyStatus(input: {
137
+ integrationKind?: IntegrationKind;
138
+ launcher: boolean;
139
+ interactions: boolean;
140
+ providerConfig?: IntegrationProviderConfig;
141
+ }): {
142
+ required: boolean;
143
+ missing: boolean;
144
+ pattern: string;
145
+ };
146
+ declare function profileIntegrationSetup(input: {
147
+ integrationKind: IntegrationKind;
148
+ name: string;
149
+ profileId?: string;
150
+ profileIds?: readonly string[];
151
+ launcher?: boolean;
152
+ repositoryId?: string;
153
+ trigger?: GitHubIntegrationLauncher['trigger'];
154
+ }): CreateIntegrationRequest;
155
+ declare function profileIntegrationProfileUpdate(integration: Pick<CreateIntegrationRequest, 'integration_kind' | 'settings'>, profileIds: readonly string[]): UpdateIntegrationRequest;
156
+
157
+ 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 };
package/dist/index.js CHANGED
@@ -2,22 +2,24 @@ import {
2
2
  ApiError,
3
3
  zErrorResponse,
4
4
  zJsonText
5
- } from "./chunk-Y2BIF75C.js";
5
+ } from "./chunk-IOMLNLUZ.js";
6
6
  import {
7
7
  client,
8
8
  createClient,
9
9
  createConfig,
10
10
  formDataBodySerializer,
11
11
  sdk_gen_exports
12
- } from "./chunk-PWJRR6EE.js";
12
+ } from "./chunk-MFYTIZB5.js";
13
13
  import {
14
14
  relaxedSchema
15
15
  } from "./chunk-NZCMY3BC.js";
16
16
  import {
17
+ zAgentProfileId,
17
18
  zAgentSequence,
19
+ zIntegrationName,
18
20
  zStreamEventsResponse,
19
21
  zod_gen_exports
20
- } from "./chunk-LEXWVGES.js";
22
+ } from "./chunk-U75SRNGF.js";
21
23
 
22
24
  // src/agent-event-stream.ts
23
25
  import * as z from "zod";
@@ -533,6 +535,74 @@ async function pollDeviceAuthToken(options) {
533
535
  // src/memory.ts
534
536
  var MAX_MEMORY_FILE_BYTES = 10 * 1024 * 1024;
535
537
  var FILE_DIGEST_HEADER = "X-Omnara-File-Digest";
538
+
539
+ // src/profile-integration.ts
540
+ import * as z4 from "zod";
541
+ var discordPublicKeyPattern = "[a-fA-F0-9]{64}";
542
+ var discordPublicKey = z4.string().regex(new RegExp(`^${discordPublicKeyPattern}$`));
543
+ 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();
552
+ function chatIntegrationLauncher(settings) {
553
+ return settings.launcher === void 0 ? void 0 : chatLauncherSchema.parse(settings.launcher);
554
+ }
555
+ function githubIntegrationSettings(settings) {
556
+ return {
557
+ launcher: settings.launcher === void 0 ? void 0 : githubLauncherSchema.parse(settings.launcher)
558
+ };
559
+ }
560
+ function profileIntegrationProfiles(integration) {
561
+ if (integration.integration_kind === "github_pr") {
562
+ const launcher = githubIntegrationSettings(integration.settings).launcher;
563
+ return launcher ? [launcher.profile] : [];
564
+ }
565
+ return chatIntegrationLauncher(integration.settings)?.profiles ?? [];
566
+ }
567
+ function profileIntegrationDiscordKeyStatus(input) {
568
+ const required = input.integrationKind === "discord_thread" && (input.launcher || input.interactions);
569
+ return {
570
+ required,
571
+ missing: required && !discordPublicKey.safeParse(input.providerConfig?.public_key).success,
572
+ pattern: discordPublicKeyPattern
573
+ };
574
+ }
575
+ function profileIntegrationSetup(input) {
576
+ const settings = {};
577
+ if (input.launcher !== false) {
578
+ const profiles = profilesSchema.min(1, "Choose at least one profile.").parse(input.profileIds ?? (input.profileId ? [input.profileId] : []));
579
+ if (input.integrationKind === "github_pr") {
580
+ if (profiles.length !== 1) throw new Error("GitHub requires exactly one profile.");
581
+ settings.launcher = githubLauncherSchema.parse({
582
+ profile: profiles[0],
583
+ trigger: input.trigger ?? "both",
584
+ repository_id: input.repositoryId === "" ? void 0 : input.repositoryId
585
+ });
586
+ } else {
587
+ if (input.repositoryId || input.trigger && input.trigger !== "mention")
588
+ throw new Error("Chat launchers start from mentions.");
589
+ settings.launcher = chatLauncherSchema.parse({ profiles });
590
+ }
591
+ }
592
+ const name = zIntegrationName.safeParse(input.name.trim());
593
+ if (!name.success)
594
+ throw new Error("Use 1\u201332 letters, numbers or hyphens, starting with a letter.");
595
+ return { name: name.data, integration_kind: input.integrationKind, settings };
596
+ }
597
+ function profileIntegrationProfileUpdate(integration, profileIds) {
598
+ if (!["slack_thread", "discord_thread"].includes(integration.integration_kind))
599
+ throw new Error("Profile editing requires a Slack or Discord integration.");
600
+ const profiles = profilesSchema.parse(profileIds);
601
+ const settings = { ...integration.settings };
602
+ if (profiles.length === 0) delete settings.launcher;
603
+ else settings.launcher = { profiles };
604
+ return { settings };
605
+ }
536
606
  export {
537
607
  AgentEventStreamError,
538
608
  ApiError,
@@ -542,12 +612,18 @@ export {
542
612
  OAUTH_DEVICE_GRANT_TYPE,
543
613
  OMNARA_CLI_OAUTH_CLIENT_ID,
544
614
  bearerToken,
615
+ chatIntegrationLauncher,
545
616
  cliLoginTokenHost,
546
617
  cliLoginTokenName,
547
618
  createOmnaraClient,
619
+ githubIntegrationSettings,
548
620
  isCliLoginToken,
549
621
  openAgentEventStream,
550
622
  pollDeviceAuthToken,
623
+ profileIntegrationDiscordKeyStatus,
624
+ profileIntegrationProfileUpdate,
625
+ profileIntegrationProfiles,
626
+ profileIntegrationSetup,
551
627
  zod_gen_exports as schemas,
552
628
  sdk_gen_exports as sdk,
553
629
  startDeviceAuth,
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"],"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'\n | 'delete'\n | 'get'\n | 'head'\n | 'options'\n | 'patch'\n | 'post'\n | 'put'\n | '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// Drops the leaked `client` init key, which throws on Deno and Bun (TODO:\n// remove once hey-api/hey-api#4177 is fixed and regenerated), and sends object\n// multipart fields as JSON parts. The default client is patched too because\n// generated operations fall back to it when no `client` is passed.\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"],"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,E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KAAK,UAAU,mBAAmB,QAAQ,KAAK,UAAU,iBAAiB;AACpF,gBAAM,IAAI,gBAAgB,QAAQ,KAAK,KAAK;AAAA,QAC9C;AAAA,MACF;AAAA,IACF;AACA,UAAM,MAAM,SAAS,aAAa,QAAQ;AAAA,EAC5C;AACF;;;ACrLO,IAAM,wBAAwB,KAAK,OAAO;AAC1C,IAAM,qBAAqB;","names":["client","z","date","client","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 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'\n | 'delete'\n | 'get'\n | 'head'\n | 'options'\n | 'patch'\n | 'post'\n | 'put'\n | '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 }\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,OAA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