@omnara/sdk 0.1.6 → 0.1.7

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-CnOxLjlL.js';
2
2
  export { b as bearerToken } from './auth-CnOxLjlL.js';
3
- import { fI as Config, fJ as Client, fK as StreamEventsData, fL as AgentEventStreamData, fM as PersonalAccessToken, fN as Error$1, fO as AgentConfigErrorIssue } from './sdk.gen-CN_lzVIk.js';
4
- export { A as AcceptInvitationData, b as AcceptInvitationError, fP as AcceptInvitationErrors, a as AcceptInvitationResponse, fQ as AcceptInvitationResponses, bG as Actor, fR as ActorId, fS as ActorProvider, fT as Agent, bJ as AgentConfig, fU as AgentConfigId, fV as AgentConfigModel, fW as AgentControlType, fX as AgentCount, fY as AgentCronTriggerTarget, fZ as AgentEvent, f_ as AgentEventId, f$ as AgentId, g0 as AgentInput, g1 as AgentInputContentBlock, g2 as AgentInputDeliveryMode, g3 as AgentInputEnvelope, g4 as AgentInputEvent, g5 as AgentInputId, g6 as AgentInputKind, g7 as AgentInteraction, g8 as AgentInteractionId, g9 as AgentInteractionKind, ga as AgentInteractionState, gb as AgentMachineBinding, gc as AgentMachineBindingId, gd as AgentMachineBindingKind, ge as AgentMachineBindingState, gf as AgentMcpConnection, gg as AgentModel, gh as AgentName, bP as AgentProfile, gi as AgentProfileCronTriggerTarget, gj as AgentProfileId, gk as AgentSequence, gl as AgentSequenceCursor, gm as AgentTurn, gn as AgentTurnId, c as ArchiveAgentData, e as ArchiveAgentError, go as ArchiveAgentErrors, d as ArchiveAgentResponse, gp as ArchiveAgentResponses, bU as Artifact, gq as ArtifactId, gr as AwsCredentialsSecretMaterial, B as BootstrapDaemonData, g as BootstrapDaemonError, gs as BootstrapDaemonErrors, gt as BootstrapDaemonResponse, f as BootstrapDaemonResponse2, gu as BootstrapDaemonResponses, C as CancelAgentData, i as CancelAgentError, gv as CancelAgentErrors, gw as CancelAgentRequest, gx as CancelAgentResponse, h as CancelAgentResponse2, gy as CancelAgentResponses, j as CancelQueuedBacklogInputData, l as CancelQueuedBacklogInputError, gz as CancelQueuedBacklogInputErrors, k as CancelQueuedBacklogInputResponse, gA as CancelQueuedBacklogInputResponses, gB as ClientErrorCode, gC as ClientOptions, gD as ConfiguredModel, gE as ConfiguredModelId, cP as ConfiguredModelList, gF as ConfiguredModelRevisionId, gG as ConfiguredModelSummary, m as ConnectByoMachineData, o as ConnectByoMachineError, gH as ConnectByoMachineErrors, gI as ConnectByoMachineRequest, gJ as ConnectByoMachineResponse, n as ConnectByoMachineResponse2, gK as ConnectByoMachineResponses, gL as ContentBlockMetadata, gM as ContextCheckpointEvent, gN as ContextCheckpointId, p as CreateAgentConfigData, r as CreateAgentConfigError, gO as CreateAgentConfigErrors, gP as CreateAgentConfigRequest, q as CreateAgentConfigResponse, gQ as CreateAgentConfigResponses, v as CreateAgentData, x as CreateAgentError, gR as CreateAgentErrors, gS as CreateAgentInputContentBlock, s as CreateAgentInputData, gT as CreateAgentInputDeliveryMode, u as CreateAgentInputError, gU as CreateAgentInputErrors, gV as CreateAgentInputRequest, t as CreateAgentInputResponse, gW as CreateAgentInputResponses, y as CreateAgentProfileData, D as CreateAgentProfileError, gX as CreateAgentProfileErrors, gY as CreateAgentProfileRequest, z as CreateAgentProfileResponse, gZ as CreateAgentProfileResponses, g_ as CreateAgentRequest, w as CreateAgentResponse, g$ as CreateAgentResponses, E as CreateByoMachineDaemonTokenData, G as CreateByoMachineDaemonTokenError, h0 as CreateByoMachineDaemonTokenErrors, F as CreateByoMachineDaemonTokenResponse, h1 as CreateByoMachineDaemonTokenResponses, H as CreateConfiguredModelData, J as CreateConfiguredModelError, h2 as CreateConfiguredModelErrors, h3 as CreateConfiguredModelRequest, I as CreateConfiguredModelResponse, h4 as CreateConfiguredModelResponses, K as CreateCronTriggerData, M as CreateCronTriggerError, h5 as CreateCronTriggerErrors, h6 as CreateCronTriggerRequest, L as CreateCronTriggerResponse, h7 as CreateCronTriggerResponses, N as CreateIntegrationOAuthSetupData, Q as CreateIntegrationOAuthSetupError, h8 as CreateIntegrationOAuthSetupErrors, h9 as CreateIntegrationOAuthSetupRequest, P as CreateIntegrationOAuthSetupResponse, ha as CreateIntegrationOAuthSetupResponses, hb as CreateMachineDaemonTokenRequest, hc as CreateMachineDaemonTokenResponse, R as CreateMachineData, T as CreateMachineError, hd as CreateMachineErrors, U as CreateMachinePoolData, W as CreateMachinePoolError, he as CreateMachinePoolErrors, hf as CreateMachinePoolRequest, hg as CreateMachinePoolRequestBase, V as CreateMachinePoolResponse, hh as CreateMachinePoolResponses, hi as CreateMachineRequest, S as CreateMachineResponse, hj as CreateMachineResponses, X as CreateModelProviderConfigData, Z as CreateModelProviderConfigError, hk as CreateModelProviderConfigErrors, hl as CreateModelProviderConfigRequest, hm as CreateModelProviderConfigResponse, Y as CreateModelProviderConfigResponse2, hn as CreateModelProviderConfigResponses, _ as CreateOrgApiKeyData, a0 as CreateOrgApiKeyError, ho as CreateOrgApiKeyErrors, hp as CreateOrgApiKeyRequest, hq as CreateOrgApiKeyResponse, $ as CreateOrgApiKeyResponse2, hr as CreateOrgApiKeyResponses, a1 as CreateOrgInvitationData, a3 as CreateOrgInvitationError, hs as CreateOrgInvitationErrors, ht as CreateOrgInvitationRequest, a2 as CreateOrgInvitationResponse, hu as CreateOrgInvitationResponses, a4 as CreateOrganizationData, a6 as CreateOrganizationError, hv as CreateOrganizationErrors, hw as CreateOrganizationRequest, hx as CreateOrganizationResponse, a5 as CreateOrganizationResponse2, hy as CreateOrganizationResponses, a7 as CreatePersonalAccessTokenData, a9 as CreatePersonalAccessTokenError, hz as CreatePersonalAccessTokenErrors, hA as CreatePersonalAccessTokenRequest, hB as CreatePersonalAccessTokenResponse, a8 as CreatePersonalAccessTokenResponse2, hC as CreatePersonalAccessTokenResponses, aj as CreateProjectData, al as CreateProjectError, hD as CreateProjectErrors, aa as CreateProjectMachineGrantData, ac as CreateProjectMachineGrantError, hE as CreateProjectMachineGrantErrors, hF as CreateProjectMachineGrantRequest, hG as CreateProjectMachineGrantResponse, ab as CreateProjectMachineGrantResponse2, hH as CreateProjectMachineGrantResponses, ad as CreateProjectMachinePoolGrantData, af as CreateProjectMachinePoolGrantError, hI as CreateProjectMachinePoolGrantErrors, hJ as CreateProjectMachinePoolGrantRequest, ae as CreateProjectMachinePoolGrantResponse, hK as CreateProjectMachinePoolGrantResponses, ag as CreateProjectModelGrantData, ai as CreateProjectModelGrantError, hL as CreateProjectModelGrantErrors, hM as CreateProjectModelGrantRequest, ah as CreateProjectModelGrantResponse, hN as CreateProjectModelGrantResponses, hO as CreateProjectRequest, ak as CreateProjectResponse, hP as CreateProjectResponses, ap as CreateSecretData, ar as CreateSecretError, hQ as CreateSecretErrors, am as CreateSecretGrantData, ao as CreateSecretGrantError, hR as CreateSecretGrantErrors, an as CreateSecretGrantResponse, hS as CreateSecretGrantResponses, hT as CreateSecretRequest, aq as CreateSecretResponse, hU as CreateSecretResponses, as as CreateSecretVersionData, au as CreateSecretVersionError, hV as CreateSecretVersionErrors, at as CreateSecretVersionResponse, hW as CreateSecretVersionResponses, ay as CreateSkillData, aA as CreateSkillError, hX as CreateSkillErrors, av as CreateSkillGrantData, ax as CreateSkillGrantError, hY as CreateSkillGrantErrors, aw as CreateSkillGrantResponse, hZ as CreateSkillGrantResponses, h_ as CreateSkillRequest, az as CreateSkillResponse, h$ as CreateSkillResponses, aB as CreateSlackSetupData, aD as CreateSlackSetupError, i0 as CreateSlackSetupErrors, i1 as CreateSlackSetupRequest, aC as CreateSlackSetupResponse, i2 as CreateSlackSetupResponses, i3 as CreatedResourceListSort, i4 as CronExpression, i5 as CronMessageTemplate, i6 as CronTimezone, bX as CronTrigger, i7 as CronTriggerFailureReport, i8 as CronTriggerId, i9 as CronTriggerTarget, ia as CurrentAgentResponse, b_ as CurrentUser, ib as CurrentUserIdentity, ic as CurrentUserOrg, id as DaemonRuntime, ie as DaemonRuntimeId, ig as DaemonRuntimeReconciliation, ih as DaemonRuntimeState, aE as DeclineInvitationData, aG as DeclineInvitationError, ii as DeclineInvitationErrors, aF as DeclineInvitationResponse, ij as DeclineInvitationResponses, aH as DeleteAgentProfileData, aJ as DeleteAgentProfileError, ik as DeleteAgentProfileErrors, aI as DeleteAgentProfileResponse, il as DeleteAgentProfileResponses, aK as DeleteConfiguredModelData, aM as DeleteConfiguredModelError, im as DeleteConfiguredModelErrors, aL as DeleteConfiguredModelResponse, io as DeleteConfiguredModelResponses, aN as DeleteCronTriggerData, aP as DeleteCronTriggerError, ip as DeleteCronTriggerErrors, aO as DeleteCronTriggerResponse, iq as DeleteCronTriggerResponses, aQ as DeleteCurrentUserData, aS as DeleteCurrentUserError, ir as DeleteCurrentUserErrors, aR as DeleteCurrentUserResponse, is as DeleteCurrentUserResponses, aT as DeleteIntegrationInstallData, aV as DeleteIntegrationInstallError, it as DeleteIntegrationInstallErrors, aU as DeleteIntegrationInstallResponse, iu as DeleteIntegrationInstallResponses, aW as DeleteMachineData, aY as DeleteMachineError, iv as DeleteMachineErrors, aZ as DeleteMachinePoolData, a$ as DeleteMachinePoolError, iw as DeleteMachinePoolErrors, a_ as DeleteMachinePoolResponse, ix as DeleteMachinePoolResponses, aX as DeleteMachineResponse, iy as DeleteMachineResponses, b0 as DeleteModelProviderConfigData, b2 as DeleteModelProviderConfigError, iz as DeleteModelProviderConfigErrors, b1 as DeleteModelProviderConfigResponse, iA as DeleteModelProviderConfigResponses, b3 as DeleteOrgInvitationData, b5 as DeleteOrgInvitationError, iB as DeleteOrgInvitationErrors, b4 as DeleteOrgInvitationResponse, iC as DeleteOrgInvitationResponses, b6 as DeleteOrganizationData, b8 as DeleteOrganizationError, iD as DeleteOrganizationErrors, b7 as DeleteOrganizationResponse, iE as DeleteOrganizationResponses, bi as DeleteProjectData, bk as DeleteProjectError, iF as DeleteProjectErrors, b9 as DeleteProjectMachineGrantData, bb as DeleteProjectMachineGrantError, iG as DeleteProjectMachineGrantErrors, ba as DeleteProjectMachineGrantResponse, iH as DeleteProjectMachineGrantResponses, bc as DeleteProjectMachinePoolGrantData, be as DeleteProjectMachinePoolGrantError, iI as DeleteProjectMachinePoolGrantErrors, bd as DeleteProjectMachinePoolGrantResponse, iJ as DeleteProjectMachinePoolGrantResponses, bf as DeleteProjectModelGrantData, bh as DeleteProjectModelGrantError, iK as DeleteProjectModelGrantErrors, bg as DeleteProjectModelGrantResponse, iL as DeleteProjectModelGrantResponses, bj as DeleteProjectResponse, iM as DeleteProjectResponses, bo as DeleteSecretData, bq as DeleteSecretError, iN as DeleteSecretErrors, bl as DeleteSecretGrantData, bn as DeleteSecretGrantError, iO as DeleteSecretGrantErrors, bm as DeleteSecretGrantResponse, iP as DeleteSecretGrantResponses, bp as DeleteSecretResponse, iQ as DeleteSecretResponses, bu as DeleteSkillData, bw as DeleteSkillError, iR as DeleteSkillErrors, br as DeleteSkillGrantData, bt as DeleteSkillGrantError, iS as DeleteSkillGrantErrors, bs as DeleteSkillGrantResponse, iT as DeleteSkillGrantResponses, bv as DeleteSkillResponse, iU as DeleteSkillResponses, bx as DemoteSteeringInputToQueuedData, bz as DemoteSteeringInputToQueuedError, iV as DemoteSteeringInputToQueuedErrors, by as DemoteSteeringInputToQueuedResponse, iW as DemoteSteeringInputToQueuedResponses, iX as DirectSecretAvailability, iY as DirectSkillAvailability, iZ as DiscoveredProviderModel, bA as DownloadDaemonArtifactData, bB as DownloadDaemonArtifactError, i_ as DownloadDaemonArtifactErrors, i$ as DownloadDaemonArtifactResponse, j0 as DownloadDaemonArtifactResponses, bC as EndMachineDaemonRuntimeData, bE as EndMachineDaemonRuntimeError, j1 as EndMachineDaemonRuntimeErrors, bD as EndMachineDaemonRuntimeResponse, j2 as EndMachineDaemonRuntimeResponses, j3 as ErrorContentBlock, j4 as ExternalActorParams, j5 as GenericSecretMaterial, bF as GetActorData, bH as GetActorError, j6 as GetActorErrors, j7 as GetActorResponse, j8 as GetActorResponses, bI as GetAgentConfigData, bK as GetAgentConfigError, j9 as GetAgentConfigErrors, ja as GetAgentConfigResponse, jb as GetAgentConfigResponses, bL as GetAgentData, bN as GetAgentError, jc as GetAgentErrors, bO as GetAgentProfileData, bQ as GetAgentProfileError, jd as GetAgentProfileErrors, je as GetAgentProfileResponse, jf as GetAgentProfileResponses, bM as GetAgentResponse, jg as GetAgentResponse2, jh as GetAgentResponses, bR as GetArtifactContentData, bS as GetArtifactContentError, ji as GetArtifactContentErrors, jj as GetArtifactContentResponse, jk as GetArtifactContentResponses, bT as GetArtifactData, bV as GetArtifactError, jl as GetArtifactErrors, jm as GetArtifactResponse, jn as GetArtifactResponses, bW as GetCronTriggerData, bY as GetCronTriggerError, jo as GetCronTriggerErrors, jp as GetCronTriggerResponse, jq as GetCronTriggerResponses, bZ as GetCurrentUserData, b$ as GetCurrentUserError, jr as GetCurrentUserErrors, js as GetCurrentUserResponse, jt as GetCurrentUserResponses, c0 as GetDaemonSkillArchiveData, c1 as GetDaemonSkillArchiveError, ju as GetDaemonSkillArchiveErrors, jv as GetDaemonSkillArchiveResponse, jw as GetDaemonSkillArchiveResponses, c2 as GetMachineData, c4 as GetMachineError, jx as GetMachineErrors, c5 as GetMachinePoolData, c7 as GetMachinePoolError, jy as GetMachinePoolErrors, jz as GetMachinePoolResponse, jA as GetMachinePoolResponses, jB as GetMachineResponse, jC as GetMachineResponses, c8 as GetModelCatalogData, ca as GetModelCatalogError, jD as GetModelCatalogErrors, jE as GetModelCatalogResponse, jF as GetModelCatalogResponses, cb as GetModelProviderConfigData, cd as GetModelProviderConfigError, jG as GetModelProviderConfigErrors, jH as GetModelProviderConfigResponse, jI as GetModelProviderConfigResponses, ce as GetOrgApiKeyData, cg as GetOrgApiKeyError, jJ as GetOrgApiKeyErrors, jK as GetOrgApiKeyResponse, jL as GetOrgApiKeyResponses, ch as GetOrgOverviewData, cj as GetOrgOverviewError, jM as GetOrgOverviewErrors, jN as GetOrgOverviewResponse, jO as GetOrgOverviewResponses, ck as GetProjectAvailableSecretData, cm as GetProjectAvailableSecretError, jP as GetProjectAvailableSecretErrors, jQ as GetProjectAvailableSecretResponse, jR as GetProjectAvailableSecretResponses, cn as GetProjectMachinePoolGrantData, cp as GetProjectMachinePoolGrantError, jS as GetProjectMachinePoolGrantErrors, jT as GetProjectMachinePoolGrantResponse, jU as GetProjectMachinePoolGrantResponses, cq as GetSecretData, cs as GetSecretError, jV as GetSecretErrors, jW as GetSecretResponse, jX as GetSecretResponses, ct as GetSkillData, cv as GetSkillError, jY as GetSkillErrors, jZ as GetSkillResponse, j_ as GetSkillResponses, cw as GetToolCatalogData, cy as GetToolCatalogError, j$ as GetToolCatalogErrors, k0 as GetToolCatalogResponse, k1 as GetToolCatalogResponses, k2 as GrantedSecretAvailability, k3 as GrantedSkillAvailability, k4 as IdempotencyKey, k5 as InlineMediaContentBlock, k6 as InstallationId, k7 as IntegrationInstall, k8 as IntegrationInstallAgentProfileFilter, k9 as IntegrationInstallId, ka as IntegrationInstallOAuthFlowIdFilter, kb as IntegrationOAuthFlowId, kc as IntegrationOAuthSetup, kd as IntegrationTarget, ke as InteractionAnswer, kf as InteractionForm, kg as InteractionFormContextItem, kh as InteractionFormOption, ki as InteractionFormQuestion, kj as InteractionResolution, kk as JsonBlob, kl as LaunchAgentResponse, cz as ListActorsData, cB as ListActorsError, km as ListActorsErrors, cA as ListActorsResponse, kn as ListActorsResponse2, ko as ListActorsResponses, cV as ListAgentEventsResponse, dK as ListAgentInputsResponse, cC as ListAgentInteractionsData, cE as ListAgentInteractionsError, kp as ListAgentInteractionsErrors, cD as ListAgentInteractionsResponse, kq as ListAgentInteractionsResponse2, kr as ListAgentInteractionsResponses, cF as ListAgentProfilesData, cH as ListAgentProfilesError, ks as ListAgentProfilesErrors, cG as ListAgentProfilesResponse, kt as ListAgentProfilesResponse2, ku as ListAgentProfilesResponses, e3 as ListAgentTurnsResponse, cI as ListAgentsData, cK as ListAgentsError, kv as ListAgentsErrors, cJ as ListAgentsResponse, kw as ListAgentsResponse2, kx as ListAgentsResponses, cL as ListByoMachineDaemonTokensData, cN as ListByoMachineDaemonTokensError, ky as ListByoMachineDaemonTokensErrors, kz as ListByoMachineDaemonTokensResponse, kA as ListByoMachineDaemonTokensResponses, cO as ListConfiguredModelsData, cQ as ListConfiguredModelsError, kB as ListConfiguredModelsErrors, kC as ListConfiguredModelsResponse, kD as ListConfiguredModelsResponses, cR as ListCronTriggersData, cT as ListCronTriggersError, kE as ListCronTriggersErrors, cS as ListCronTriggersResponse, kF as ListCronTriggersResponse2, kG as ListCronTriggersResponses, cU as ListEventsData, cW as ListEventsError, kH as ListEventsErrors, kI as ListEventsResponse, kJ as ListEventsResponses, cX as ListIntegrationInstallsData, cZ as ListIntegrationInstallsError, kK as ListIntegrationInstallsErrors, cY as ListIntegrationInstallsResponse, kL as ListIntegrationInstallsResponse2, kM as ListIntegrationInstallsResponses, cM as ListMachineDaemonTokensResponse, c_ as ListMachinePoolsData, d0 as ListMachinePoolsError, kN as ListMachinePoolsErrors, c$ as ListMachinePoolsResponse, kO as ListMachinePoolsResponse2, kP as ListMachinePoolsResponses, d1 as ListMcpServerToolsData, d3 as ListMcpServerToolsError, kQ as ListMcpServerToolsErrors, d2 as ListMcpServerToolsResponse, kR as ListMcpServerToolsResponses, d4 as ListMcpServersData, d6 as ListMcpServersError, kS as ListMcpServersErrors, d5 as ListMcpServersResponse, kT as ListMcpServersResponse2, kU as ListMcpServersResponses, d7 as ListMemberProjectAccessData, d9 as ListMemberProjectAccessError, kV as ListMemberProjectAccessErrors, kW as ListMemberProjectAccessResponse, kX as ListMemberProjectAccessResponses, da as ListModelProviderConfigsData, dc as ListModelProviderConfigsError, kY as ListModelProviderConfigsErrors, kZ as ListModelProviderConfigsResponse, k_ as ListModelProviderConfigsResponses, dd as ListOrgApiKeyProjectAccessData, de as ListOrgApiKeyProjectAccessError, k$ as ListOrgApiKeyProjectAccessErrors, l0 as ListOrgApiKeyProjectAccessResponse, l1 as ListOrgApiKeyProjectAccessResponses, df as ListOrgApiKeysData, dh as ListOrgApiKeysError, l2 as ListOrgApiKeysErrors, dg as ListOrgApiKeysResponse, l3 as ListOrgApiKeysResponse2, l4 as ListOrgApiKeysResponses, di as ListOrgInvitationsData, dk as ListOrgInvitationsError, l5 as ListOrgInvitationsErrors, dj as ListOrgInvitationsResponse, l6 as ListOrgInvitationsResponse2, l7 as ListOrgInvitationsResponses, dl as ListOrgMembersData, dn as ListOrgMembersError, l8 as ListOrgMembersErrors, dm as ListOrgMembersResponse, l9 as ListOrgMembersResponse2, la as ListOrgMembersResponses, dp as ListPendingInvitationsData, dq as ListPendingInvitationsError, lb as ListPendingInvitationsErrors, lc as ListPendingInvitationsResponse, ld as ListPendingInvitationsResponses, dr as ListPersonalAccessTokensData, dt as ListPersonalAccessTokensError, le as ListPersonalAccessTokensErrors, ds as ListPersonalAccessTokensResponse, lf as ListPersonalAccessTokensResponse2, lg as ListPersonalAccessTokensResponses, du as ListProjectAvailableSecretsData, dw as ListProjectAvailableSecretsError, lh as ListProjectAvailableSecretsErrors, li as ListProjectAvailableSecretsResponse, lj as ListProjectAvailableSecretsResponses, dx as ListProjectAvailableSkillsData, dz as ListProjectAvailableSkillsError, lk as ListProjectAvailableSkillsErrors, ll as ListProjectAvailableSkillsResponse, lm as ListProjectAvailableSkillsResponses, dA as ListProjectMachineGrantsData, dC as ListProjectMachineGrantsError, ln as ListProjectMachineGrantsErrors, dB as ListProjectMachineGrantsResponse, lo as ListProjectMachineGrantsResponse2, lp as ListProjectMachineGrantsResponses, dD as ListProjectMachinePoolGrantsData, dF as ListProjectMachinePoolGrantsError, lq as ListProjectMachinePoolGrantsErrors, dE as ListProjectMachinePoolGrantsResponse, lr as ListProjectMachinePoolGrantsResponse2, ls as ListProjectMachinePoolGrantsResponses, d8 as ListProjectMembershipGrantsResponse, dG as ListProjectModelGrantsData, dI as ListProjectModelGrantsError, lt as ListProjectModelGrantsErrors, dH as ListProjectModelGrantsResponse, lu as ListProjectModelGrantsResponse2, lv as ListProjectModelGrantsResponses, dv as ListProjectSecretAccessesResponse, dy as ListProjectSkillAccessesResponse, eb as ListProjectsResponse, dJ as ListQueuedBacklogInputsData, dL as ListQueuedBacklogInputsError, lw as ListQueuedBacklogInputsErrors, lx as ListQueuedBacklogInputsResponse, ly as ListQueuedBacklogInputsResponses, dM as ListSecretGrantsData, dO as ListSecretGrantsError, lz as ListSecretGrantsErrors, dN as ListSecretGrantsResponse, lA as ListSecretGrantsResponse2, lB as ListSecretGrantsResponses, dP as ListSecretsData, dR as ListSecretsError, lC as ListSecretsErrors, dQ as ListSecretsResponse, lD as ListSecretsResponse2, lE as ListSecretsResponses, dS as ListSkillGrantsData, dU as ListSkillGrantsError, lF as ListSkillGrantsErrors, dT as ListSkillGrantsResponse, lG as ListSkillGrantsResponse2, lH as ListSkillGrantsResponses, dV as ListSkillsData, dX as ListSkillsError, lI as ListSkillsErrors, dW as ListSkillsResponse, lJ as ListSkillsResponse2, lK as ListSkillsResponses, dY as ListToolCallsData, d_ as ListToolCallsError, lL as ListToolCallsErrors, dZ as ListToolCallsResponse, lM as ListToolCallsResponse2, lN as ListToolCallsResponses, d$ as ListTurnEventsData, e1 as ListTurnEventsError, lO as ListTurnEventsErrors, e0 as ListTurnEventsResponse, lP as ListTurnEventsResponse2, lQ as ListTurnEventsResponses, e2 as ListTurnsData, e4 as ListTurnsError, lR as ListTurnsErrors, lS as ListTurnsResponse, lT as ListTurnsResponses, e5 as ListVisibleMachinesData, e7 as ListVisibleMachinesError, lU as ListVisibleMachinesErrors, e6 as ListVisibleMachinesResponse, lV as ListVisibleMachinesResponse2, lW as ListVisibleMachinesResponses, e8 as ListVisibleProjectMachinesData, e9 as ListVisibleProjectMachinesError, lX as ListVisibleProjectMachinesErrors, lY as ListVisibleProjectMachinesResponse, lZ as ListVisibleProjectMachinesResponses, ea as ListVisibleProjectsData, ec as ListVisibleProjectsError, l_ as ListVisibleProjectsErrors, l$ as ListVisibleProjectsResponse, m0 as ListVisibleProjectsResponses, c3 as Machine, m1 as MachineAccess, m2 as MachineAccessSource, m3 as MachineAccessSourceKind, m4 as MachineConnectionState, m5 as MachineDaemonToken, m6 as MachineDaemonTokenId, m7 as MachineFailureReport, m8 as MachineId, m9 as MachineLifecycleState, ma as MachineMetadata, c6 as MachinePool, mb as MachinePoolId, mc as MachinePoolSummary, md as MachinePoolUsage, me as MachineSourceKind, mf as MachineSourceKindFilter, mg as MachineSummary, mh as MachineSummaryFields, mi as ManagementKind, mj as McpRegistryHeader, mk as McpRegistryIcon, ml as McpRegistryRemote, mm as McpRegistryServer, mn as McpServerAuth, mo as McpServerAuthBearer, mp as McpServerAuthHint, mq as McpServerAuthNone, mr as McpServerAuthOAuth, ms as McpServerAuthRequiredError, mt as McpServerAuthSigV4, mu as McpServerInfo, mv as McpServerTool, mw as McpServerToolAnnotations, mx as McpServerToolsRequest, my as McpServerToolsResponse, mz as McpoAuthFlowId, mA as McpoAuthStartMetadata, mB as McpoAuthStartRequest, mC as McpoAuthStartResponse, mD as MediaRefContentBlock, mE as Metadata, mF as ModelApiFormat, mG as ModelApiVariantOptions, mH as ModelCacheRetention, mI as ModelCallContextId, c9 as ModelCatalog, mJ as ModelOutputBlockStartDelta, mK as ModelOutputBlockStopDelta, mL as ModelOutputContentBlock, mM as ModelOutputDelta, mN as ModelOutputErrorDelta, mO as ModelOutputEvent, mP as ModelOutputMessageStopDelta, mQ as ModelOutputStopReason, mR as ModelOutputStreamBlock, mS as ModelOutputStreamDelta, mT as ModelOutputTextDelta, mU as ModelOutputTextStreamBlock, mV as ModelOutputThinkingDelta, mW as ModelOutputThinkingStreamBlock, mX as ModelOutputToolArgumentsDelta, mY as ModelOutputToolUseStreamBlock, mZ as ModelProviderApiVariant, m_ as ModelProviderApiVariantResponse, m$ as ModelProviderAuthKind, cc as ModelProviderConfig, n0 as ModelProviderConfigId, db as ModelProviderConfigList, n1 as ModelStopReason, n2 as ModelToolCallContentBlock, n3 as ModelUsage, ed as MoveQueuedBacklogInputData, ef as MoveQueuedBacklogInputError, n4 as MoveQueuedBacklogInputErrors, n5 as MoveQueuedBacklogInputRequest, ee as MoveQueuedBacklogInputResponse, n6 as MoveQueuedBacklogInputResponses, n7 as OAuthRefreshSecretMaterial, n8 as OAuthTokenSetSecretMaterial, n9 as OkResponse, cf as OrgApiKey, na as OrgApiKeyId, nb as OrgApiKeyRole, nc as OrgInvitation, nd as OrgInvitationId, ne as OrgMember, ci as OrgOverviewResponse, nf as OrgSecretOwner, ng as OrgSecretOwnerInput, nh as OrgSkillOwner, ni as OrgSkillOwnerInput, nj as Organization, nk as OrganizationId, nl as OrganizationMembership, nm as PageCursor, nn as PageLimit, no as PersonalAccessTokenId, np as ProcessActionId, nq as ProcessActionReconciliationClaim, nr as ProcessActionReconciliationDirective, ns as ProcessId, nt as ProcessReconciliationClaim, nu as ProcessReconciliationDirective, nv as Project, nw as ProjectAccess, nx as ProjectFields, ny as ProjectId, nz as ProjectMachineGrant, nA as ProjectMachineGrantId, nB as ProjectMachineGrantListItem, nC as ProjectMachineGrantSourceKind, co as ProjectMachinePoolGrant, nD as ProjectMachinePoolGrantId, nE as ProjectMachinePoolGrantListItem, nF as ProjectMembershipGrant, nG as ProjectModelGrant, nH as ProjectModelGrantEnvelope, nI as ProjectModelGrantId, nJ as ProjectModelGrantListItem, cl as ProjectSecretAccess, nK as ProjectSecretOwner, nL as ProjectSecretOwnerInput, nM as ProjectSkillAccess, nN as ProjectSkillOwner, nO as ProjectSkillOwnerInput, eg as PromoteQueuedInputToSteeringData, ei as PromoteQueuedInputToSteeringError, nP as PromoteQueuedInputToSteeringErrors, nQ as PromoteQueuedInputToSteeringRequest, eh as PromoteQueuedInputToSteeringResponse, nR as PromoteQueuedInputToSteeringResponses, ej as PutActorData, el as PutActorError, nS as PutActorErrors, ek as PutActorResponse, nT as PutActorResponses, nU as ReasoningContentBlock, em as RecordMachineFailureData, eo as RecordMachineFailureError, nV as RecordMachineFailureErrors, en as RecordMachineFailureResponse, nW as RecordMachineFailureResponses, nX as RegisterDaemonRuntimeRequest, nY as RegisterDaemonRuntimeResponse, ep as RegisterMachineDaemonRuntimeData, er as RegisterMachineDaemonRuntimeError, nZ as RegisterMachineDaemonRuntimeErrors, eq as RegisterMachineDaemonRuntimeResponse, n_ as RegisterMachineDaemonRuntimeResponses, es as RemoveMemberProjectAccessData, eu as RemoveMemberProjectAccessError, n$ as RemoveMemberProjectAccessErrors, et as RemoveMemberProjectAccessResponse, o0 as RemoveMemberProjectAccessResponses, ev as RemoveOrgApiKeyProjectRoleData, ex as RemoveOrgApiKeyProjectRoleError, o1 as RemoveOrgApiKeyProjectRoleErrors, ew as RemoveOrgApiKeyProjectRoleResponse, o2 as RemoveOrgApiKeyProjectRoleResponses, ey as RemoveOrgMemberData, eA as RemoveOrgMemberError, o3 as RemoveOrgMemberErrors, ez as RemoveOrgMemberResponse, o4 as RemoveOrgMemberResponses, eB as RenameAgentProfileData, eD as RenameAgentProfileError, o5 as RenameAgentProfileErrors, o6 as RenameAgentProfileRequest, eC as RenameAgentProfileResponse, o7 as RenameAgentProfileResponses, eE as ResolveAgentInteractionData, eG as ResolveAgentInteractionError, o8 as ResolveAgentInteractionErrors, o9 as ResolveAgentInteractionRequest, eF as ResolveAgentInteractionResponse, oa as ResolveAgentInteractionResponses, ob as ResourceListSort, oc as ResourceName, od as ResourceNameFilter, eH as RevokeMachineDaemonTokenData, eJ as RevokeMachineDaemonTokenError, oe as RevokeMachineDaemonTokenErrors, eI as RevokeMachineDaemonTokenResponse, of as RevokeMachineDaemonTokenResponses, eK as RevokeOrgApiKeyData, eM as RevokeOrgApiKeyError, og as RevokeOrgApiKeyErrors, eL as RevokeOrgApiKeyResponse, oh as RevokeOrgApiKeyResponses, eN as RevokePersonalAccessTokenData, eP as RevokePersonalAccessTokenError, oi as RevokePersonalAccessTokenErrors, eO as RevokePersonalAccessTokenResponse, oj as RevokePersonalAccessTokenResponses, cr as Secret, ok as SecretAvailability, ol as SecretAvailabilitySourceFilter, om as SecretGrant, on as SecretGrantCreateRequest, oo as SecretGrantId, op as SecretGrantListItem, oq as SecretId, or as SecretKind, os as SecretKindFilter, ot as SecretMaterial, ou as SecretMcpoAuthFlowIdFilter, ov as SecretMetadataFilter, ow as SecretOwner, ox as SecretOwnerInput, oy as SecretOwnerKindFilter, oz as SecretOwnerProjectIdFilter, oA as SecretVersionRequest, oB as ServerErrorCode, eQ as SetMemberProjectAccessData, eS as SetMemberProjectAccessError, oC as SetMemberProjectAccessErrors, eR as SetMemberProjectAccessResponse, oD as SetMemberProjectAccessResponses, eT as SetOrgApiKeyProjectRoleData, eV as SetOrgApiKeyProjectRoleError, oE as SetOrgApiKeyProjectRoleErrors, eU as SetOrgApiKeyProjectRoleResponse, oF as SetOrgApiKeyProjectRoleResponses, oG as SetProjectMembershipRequest, cu as Skill, oH as SkillAvailability, oI as SkillAvailabilitySourceFilter, oJ as SkillGrant, oK as SkillGrantCreateRequest, oL as SkillGrantId, oM as SkillGrantListItem, oN as SkillId, oO as SkillName, oP as SkillOwner, oQ as SkillOwnerInput, oR as SkillOwnerKindFilter, oS as SkillOwnerProjectIdFilter, oT as SkillRevisionId, oU as SlackSetup, oV as SlackSetupIcon, eW as SleepMachineDaemonRuntimeData, eY as SleepMachineDaemonRuntimeError, oW as SleepMachineDaemonRuntimeErrors, eX as SleepMachineDaemonRuntimeResponse, oX as SleepMachineDaemonRuntimeResponses, eZ as SocketMachineDaemonRuntimeData, e_ as SocketMachineDaemonRuntimeError, oY as SocketMachineDaemonRuntimeErrors, e$ as StartSecretMcpoAuthData, f1 as StartSecretMcpoAuthError, oZ as StartSecretMcpoAuthErrors, f0 as StartSecretMcpoAuthResponse, o_ as StartSecretMcpoAuthResponses, o$ as StreamEventsError, p0 as StreamEventsErrors, p1 as StreamEventsResponse, p2 as StreamEventsResponses, p3 as StructuredDataContentBlock, f2 as SubmitToolCallResultData, f4 as SubmitToolCallResultError, p4 as SubmitToolCallResultErrors, p5 as SubmitToolCallResultRequest, p6 as SubmitToolCallResultResponse, f3 as SubmitToolCallResultResponse2, p7 as SubmitToolCallResultResponses, p8 as SubmitToolResultContentBlock, p9 as TextContentBlock, pa as Timestamp, pb as ToolCall, pc as ToolCallId, pd as ToolCallOutcome, pe as ToolCallState, pf as ToolCallType, pg as ToolCallUpdate, cx as ToolCatalog, ph as ToolCatalogEntry, pi as ToolInput, pj as ToolPermissionMode, pk as ToolPermissionProfile, pl as ToolPermissionSelection, pm as ToolResult, pn as ToolResultContentBlock, po as ToolResultEvent, f5 as UpdateAgentConfigData, f7 as UpdateAgentConfigError, pp as UpdateAgentConfigErrors, pq as UpdateAgentConfigRequest, pr as UpdateAgentConfigResponse, f6 as UpdateAgentConfigResponse2, ps as UpdateAgentConfigResponses, f8 as UpdateAgentProfileData, fa as UpdateAgentProfileError, pt as UpdateAgentProfileErrors, pu as UpdateAgentProfileRequest, f9 as UpdateAgentProfileResponse, pv as UpdateAgentProfileResponses, fb as UpdateConfiguredModelData, fd as UpdateConfiguredModelError, pw as UpdateConfiguredModelErrors, px as UpdateConfiguredModelRequest, fc as UpdateConfiguredModelResponse, py as UpdateConfiguredModelResponses, fe as UpdateCronTriggerData, fg as UpdateCronTriggerError, pz as UpdateCronTriggerErrors, pA as UpdateCronTriggerRequest, ff as UpdateCronTriggerResponse, pB as UpdateCronTriggerResponses, fh as UpdateMachineData, fj as UpdateMachineError, pC as UpdateMachineErrors, fk as UpdateMachinePoolData, fm as UpdateMachinePoolError, pD as UpdateMachinePoolErrors, pE as UpdateMachinePoolRequest, fl as UpdateMachinePoolResponse, pF as UpdateMachinePoolResponses, pG as UpdateMachineRequest, fi as UpdateMachineResponse, pH as UpdateMachineResponses, fn as UpdateModelProviderConfigData, fp as UpdateModelProviderConfigError, pI as UpdateModelProviderConfigErrors, pJ as UpdateModelProviderConfigRequest, fo as UpdateModelProviderConfigResponse, pK as UpdateModelProviderConfigResponses, fq as UpdateOrgApiKeyData, fs as UpdateOrgApiKeyError, pL as UpdateOrgApiKeyErrors, pM as UpdateOrgApiKeyRequest, fr as UpdateOrgApiKeyResponse, pN as UpdateOrgApiKeyResponses, ft as UpdateOrgMemberData, fv as UpdateOrgMemberError, pO as UpdateOrgMemberErrors, pP as UpdateOrgMemberRequest, fu as UpdateOrgMemberResponse, pQ as UpdateOrgMemberResponses, fw as UpdateProjectMachinePoolGrantData, fy as UpdateProjectMachinePoolGrantError, pR as UpdateProjectMachinePoolGrantErrors, pS as UpdateProjectMachinePoolGrantRequest, fx as UpdateProjectMachinePoolGrantResponse, pT as UpdateProjectMachinePoolGrantResponses, fz as UpdateProjectModelGrantData, fB as UpdateProjectModelGrantError, pU as UpdateProjectModelGrantErrors, pV as UpdateProjectModelGrantRequest, fA as UpdateProjectModelGrantResponse, pW as UpdateProjectModelGrantResponses, fC as UpdateSecretData, fE as UpdateSecretError, pX as UpdateSecretErrors, pY as UpdateSecretRequest, fD as UpdateSecretResponse, pZ as UpdateSecretResponses, p_ as UploadArtifactResponse, fF as UploadDaemonArtifactData, fH as UploadDaemonArtifactError, p$ as UploadDaemonArtifactErrors, fG as UploadDaemonArtifactResponse, q0 as UploadDaemonArtifactResponses, q1 as UserId, q2 as UserSecretOwner, q3 as UserSecretOwnerInput, q4 as UserSkillOwner, q5 as UserSkillOwnerInput, q6 as VisibleMachine, q7 as VisibleProject, q8 as Warning, q9 as sdk } from './sdk.gen-CN_lzVIk.js';
5
- import * as z from 'zod';
6
- export { z as schemas } from './zod.gen-DVudJxD1.js';
3
+ import { fL as Config, fM as Client, fN as StreamEventsData, fO as AgentEventStreamData, fP as PersonalAccessToken, fQ as Error$1, fR as AgentConfigErrorIssue } from './sdk.gen-qOnMVktp.js';
4
+ export { A as AcceptInvitationData, b as AcceptInvitationError, fS as AcceptInvitationErrors, a as AcceptInvitationResponse, fT as AcceptInvitationResponses, bG as Actor, fU as ActorId, fV as ActorProvider, fW as Agent, bJ as AgentConfig, fX as AgentConfigId, fY as AgentConfigModel, fZ as AgentControlType, f_ as AgentCount, f$ as AgentCronTriggerTarget, g0 as AgentEvent, g1 as AgentEventId, g2 as AgentId, g3 as AgentInput, g4 as AgentInputContentBlock, g5 as AgentInputDeliveryMode, g6 as AgentInputEnvelope, g7 as AgentInputEvent, g8 as AgentInputId, g9 as AgentInputKind, ga as AgentInteraction, gb as AgentInteractionId, gc as AgentInteractionKind, gd as AgentInteractionState, ge as AgentMachineBinding, gf as AgentMachineBindingId, gg as AgentMachineBindingKind, gh as AgentMachineBindingState, gi as AgentMcpConnection, gj as AgentModel, gk as AgentName, bP as AgentProfile, gl as AgentProfileCronTriggerTarget, gm as AgentProfileId, gn as AgentSequence, go as AgentSequenceCursor, gp as AgentTurn, gq as AgentTurnId, c as ArchiveAgentData, e as ArchiveAgentError, gr as ArchiveAgentErrors, d as ArchiveAgentResponse, gs as ArchiveAgentResponses, bU as Artifact, gt as ArtifactId, gu as AwsCredentialsSecretMaterial, B as BootstrapDaemonData, g as BootstrapDaemonError, gv as BootstrapDaemonErrors, gw as BootstrapDaemonResponse, f as BootstrapDaemonResponse2, gx as BootstrapDaemonResponses, C as CancelAgentData, i as CancelAgentError, gy as CancelAgentErrors, gz as CancelAgentRequest, gA as CancelAgentResponse, h as CancelAgentResponse2, gB as CancelAgentResponses, j as CancelQueuedBacklogInputData, l as CancelQueuedBacklogInputError, gC as CancelQueuedBacklogInputErrors, k as CancelQueuedBacklogInputResponse, gD as CancelQueuedBacklogInputResponses, gE as ClientErrorCode, gF as ClientOptions, gG as ConfiguredModel, gH as ConfiguredModelId, cP as ConfiguredModelList, gI as ConfiguredModelRevisionId, gJ as ConfiguredModelSummary, m as ConnectByoMachineData, o as ConnectByoMachineError, gK as ConnectByoMachineErrors, gL as ConnectByoMachineRequest, gM as ConnectByoMachineResponse, n as ConnectByoMachineResponse2, gN as ConnectByoMachineResponses, gO as ContentBlockMetadata, gP as ContextCheckpointEvent, gQ as ContextCheckpointId, p as CreateAgentConfigData, r as CreateAgentConfigError, gR as CreateAgentConfigErrors, gS as CreateAgentConfigRequest, q as CreateAgentConfigResponse, gT as CreateAgentConfigResponses, v as CreateAgentData, x as CreateAgentError, gU as CreateAgentErrors, gV as CreateAgentInputContentBlock, s as CreateAgentInputData, gW as CreateAgentInputDeliveryMode, u as CreateAgentInputError, gX as CreateAgentInputErrors, gY as CreateAgentInputRequest, t as CreateAgentInputResponse, gZ as CreateAgentInputResponses, y as CreateAgentProfileData, D as CreateAgentProfileError, g_ as CreateAgentProfileErrors, g$ as CreateAgentProfileRequest, z as CreateAgentProfileResponse, h0 as CreateAgentProfileResponses, h1 as CreateAgentRequest, w as CreateAgentResponse, h2 as CreateAgentResponses, E as CreateByoMachineDaemonTokenData, G as CreateByoMachineDaemonTokenError, h3 as CreateByoMachineDaemonTokenErrors, F as CreateByoMachineDaemonTokenResponse, h4 as CreateByoMachineDaemonTokenResponses, H as CreateConfiguredModelData, J as CreateConfiguredModelError, h5 as CreateConfiguredModelErrors, h6 as CreateConfiguredModelRequest, I as CreateConfiguredModelResponse, h7 as CreateConfiguredModelResponses, K as CreateCronTriggerData, M as CreateCronTriggerError, h8 as CreateCronTriggerErrors, h9 as CreateCronTriggerRequest, L as CreateCronTriggerResponse, ha as CreateCronTriggerResponses, N as CreateIntegrationOAuthSetupData, Q as CreateIntegrationOAuthSetupError, hb as CreateIntegrationOAuthSetupErrors, hc as CreateIntegrationOAuthSetupRequest, P as CreateIntegrationOAuthSetupResponse, hd as CreateIntegrationOAuthSetupResponses, he as CreateMachineDaemonTokenRequest, hf as CreateMachineDaemonTokenResponse, R as CreateMachineData, T as CreateMachineError, hg as CreateMachineErrors, U as CreateMachinePoolData, W as CreateMachinePoolError, hh as CreateMachinePoolErrors, hi as CreateMachinePoolRequest, hj as CreateMachinePoolRequestBase, V as CreateMachinePoolResponse, hk as CreateMachinePoolResponses, hl as CreateMachineRequest, S as CreateMachineResponse, hm as CreateMachineResponses, X as CreateModelProviderConfigData, Z as CreateModelProviderConfigError, hn as CreateModelProviderConfigErrors, ho as CreateModelProviderConfigRequest, hp as CreateModelProviderConfigResponse, Y as CreateModelProviderConfigResponse2, hq as CreateModelProviderConfigResponses, _ as CreateOrgApiKeyData, a0 as CreateOrgApiKeyError, hr as CreateOrgApiKeyErrors, hs as CreateOrgApiKeyRequest, ht as CreateOrgApiKeyResponse, $ as CreateOrgApiKeyResponse2, hu as CreateOrgApiKeyResponses, a1 as CreateOrgInvitationData, a3 as CreateOrgInvitationError, hv as CreateOrgInvitationErrors, hw as CreateOrgInvitationRequest, a2 as CreateOrgInvitationResponse, hx as CreateOrgInvitationResponses, a4 as CreateOrganizationData, a6 as CreateOrganizationError, hy as CreateOrganizationErrors, hz as CreateOrganizationRequest, hA as CreateOrganizationResponse, a5 as CreateOrganizationResponse2, hB as CreateOrganizationResponses, a7 as CreatePersonalAccessTokenData, a9 as CreatePersonalAccessTokenError, hC as CreatePersonalAccessTokenErrors, hD as CreatePersonalAccessTokenRequest, hE as CreatePersonalAccessTokenResponse, a8 as CreatePersonalAccessTokenResponse2, hF as CreatePersonalAccessTokenResponses, aj as CreateProjectData, al as CreateProjectError, hG as CreateProjectErrors, aa as CreateProjectMachineGrantData, ac as CreateProjectMachineGrantError, hH as CreateProjectMachineGrantErrors, hI as CreateProjectMachineGrantRequest, hJ as CreateProjectMachineGrantResponse, ab as CreateProjectMachineGrantResponse2, hK as CreateProjectMachineGrantResponses, ad as CreateProjectMachinePoolGrantData, af as CreateProjectMachinePoolGrantError, hL as CreateProjectMachinePoolGrantErrors, hM as CreateProjectMachinePoolGrantRequest, ae as CreateProjectMachinePoolGrantResponse, hN as CreateProjectMachinePoolGrantResponses, ag as CreateProjectModelGrantData, ai as CreateProjectModelGrantError, hO as CreateProjectModelGrantErrors, hP as CreateProjectModelGrantRequest, ah as CreateProjectModelGrantResponse, hQ as CreateProjectModelGrantResponses, hR as CreateProjectRequest, ak as CreateProjectResponse, hS as CreateProjectResponses, ap as CreateSecretData, ar as CreateSecretError, hT as CreateSecretErrors, am as CreateSecretGrantData, ao as CreateSecretGrantError, hU as CreateSecretGrantErrors, an as CreateSecretGrantResponse, hV as CreateSecretGrantResponses, hW as CreateSecretRequest, aq as CreateSecretResponse, hX as CreateSecretResponses, as as CreateSecretVersionData, au as CreateSecretVersionError, hY as CreateSecretVersionErrors, at as CreateSecretVersionResponse, hZ as CreateSecretVersionResponses, ay as CreateSkillData, aA as CreateSkillError, h_ as CreateSkillErrors, av as CreateSkillGrantData, ax as CreateSkillGrantError, h$ as CreateSkillGrantErrors, aw as CreateSkillGrantResponse, i0 as CreateSkillGrantResponses, i1 as CreateSkillRequest, az as CreateSkillResponse, i2 as CreateSkillResponses, aB as CreateSlackSetupData, aD as CreateSlackSetupError, i3 as CreateSlackSetupErrors, i4 as CreateSlackSetupRequest, aC as CreateSlackSetupResponse, i5 as CreateSlackSetupResponses, i6 as CreatedResourceListSort, i7 as CronExpression, i8 as CronMessageTemplate, i9 as CronTimezone, bX as CronTrigger, ia as CronTriggerFailureReport, ib as CronTriggerId, ic as CronTriggerTarget, id as CurrentAgentResponse, b_ as CurrentUser, ie as CurrentUserIdentity, ig as CurrentUserOrg, ih as DaemonRuntime, ii as DaemonRuntimeId, ij as DaemonRuntimeReconciliation, ik as DaemonRuntimeState, aE as DeclineInvitationData, aG as DeclineInvitationError, il as DeclineInvitationErrors, aF as DeclineInvitationResponse, im as DeclineInvitationResponses, aH as DeleteAgentProfileData, aJ as DeleteAgentProfileError, io as DeleteAgentProfileErrors, aI as DeleteAgentProfileResponse, ip as DeleteAgentProfileResponses, aK as DeleteConfiguredModelData, aM as DeleteConfiguredModelError, iq as DeleteConfiguredModelErrors, aL as DeleteConfiguredModelResponse, ir as DeleteConfiguredModelResponses, aN as DeleteCronTriggerData, aP as DeleteCronTriggerError, is as DeleteCronTriggerErrors, aO as DeleteCronTriggerResponse, it as DeleteCronTriggerResponses, aQ as DeleteCurrentUserData, aS as DeleteCurrentUserError, iu as DeleteCurrentUserErrors, aR as DeleteCurrentUserResponse, iv as DeleteCurrentUserResponses, aT as DeleteIntegrationInstallData, aV as DeleteIntegrationInstallError, iw as DeleteIntegrationInstallErrors, aU as DeleteIntegrationInstallResponse, ix as DeleteIntegrationInstallResponses, aW as DeleteMachineData, aY as DeleteMachineError, iy as DeleteMachineErrors, aZ as DeleteMachinePoolData, a$ as DeleteMachinePoolError, iz as DeleteMachinePoolErrors, a_ as DeleteMachinePoolResponse, iA as DeleteMachinePoolResponses, aX as DeleteMachineResponse, iB as DeleteMachineResponses, b0 as DeleteModelProviderConfigData, b2 as DeleteModelProviderConfigError, iC as DeleteModelProviderConfigErrors, b1 as DeleteModelProviderConfigResponse, iD as DeleteModelProviderConfigResponses, b3 as DeleteOrgInvitationData, b5 as DeleteOrgInvitationError, iE as DeleteOrgInvitationErrors, b4 as DeleteOrgInvitationResponse, iF as DeleteOrgInvitationResponses, b6 as DeleteOrganizationData, b8 as DeleteOrganizationError, iG as DeleteOrganizationErrors, b7 as DeleteOrganizationResponse, iH as DeleteOrganizationResponses, bi as DeleteProjectData, bk as DeleteProjectError, iI as DeleteProjectErrors, b9 as DeleteProjectMachineGrantData, bb as DeleteProjectMachineGrantError, iJ as DeleteProjectMachineGrantErrors, ba as DeleteProjectMachineGrantResponse, iK as DeleteProjectMachineGrantResponses, bc as DeleteProjectMachinePoolGrantData, be as DeleteProjectMachinePoolGrantError, iL as DeleteProjectMachinePoolGrantErrors, bd as DeleteProjectMachinePoolGrantResponse, iM as DeleteProjectMachinePoolGrantResponses, bf as DeleteProjectModelGrantData, bh as DeleteProjectModelGrantError, iN as DeleteProjectModelGrantErrors, bg as DeleteProjectModelGrantResponse, iO as DeleteProjectModelGrantResponses, bj as DeleteProjectResponse, iP as DeleteProjectResponses, bo as DeleteSecretData, bq as DeleteSecretError, iQ as DeleteSecretErrors, bl as DeleteSecretGrantData, bn as DeleteSecretGrantError, iR as DeleteSecretGrantErrors, bm as DeleteSecretGrantResponse, iS as DeleteSecretGrantResponses, bp as DeleteSecretResponse, iT as DeleteSecretResponses, bu as DeleteSkillData, bw as DeleteSkillError, iU as DeleteSkillErrors, br as DeleteSkillGrantData, bt as DeleteSkillGrantError, iV as DeleteSkillGrantErrors, bs as DeleteSkillGrantResponse, iW as DeleteSkillGrantResponses, bv as DeleteSkillResponse, iX as DeleteSkillResponses, bx as DemoteSteeringInputToQueuedData, bz as DemoteSteeringInputToQueuedError, iY as DemoteSteeringInputToQueuedErrors, by as DemoteSteeringInputToQueuedResponse, iZ as DemoteSteeringInputToQueuedResponses, i_ as DirectSecretAvailability, i$ as DirectSkillAvailability, j0 as DiscoveredProviderModel, bA as DownloadDaemonArtifactData, bB as DownloadDaemonArtifactError, j1 as DownloadDaemonArtifactErrors, j2 as DownloadDaemonArtifactResponse, j3 as DownloadDaemonArtifactResponses, bC as EndMachineDaemonRuntimeData, bE as EndMachineDaemonRuntimeError, j4 as EndMachineDaemonRuntimeErrors, bD as EndMachineDaemonRuntimeResponse, j5 as EndMachineDaemonRuntimeResponses, j6 as ErrorContentBlock, j7 as ExternalActorParams, j8 as GenericSecretMaterial, bF as GetActorData, bH as GetActorError, j9 as GetActorErrors, ja as GetActorResponse, jb as GetActorResponses, bI as GetAgentConfigData, bK as GetAgentConfigError, jc as GetAgentConfigErrors, jd as GetAgentConfigResponse, je as GetAgentConfigResponses, bL as GetAgentData, bN as GetAgentError, jf as GetAgentErrors, bO as GetAgentProfileData, bQ as GetAgentProfileError, jg as GetAgentProfileErrors, jh as GetAgentProfileResponse, ji as GetAgentProfileResponses, bM as GetAgentResponse, jj as GetAgentResponse2, jk as GetAgentResponses, bR as GetArtifactContentData, bS as GetArtifactContentError, jl as GetArtifactContentErrors, jm as GetArtifactContentResponse, jn as GetArtifactContentResponses, bT as GetArtifactData, bV as GetArtifactError, jo as GetArtifactErrors, jp as GetArtifactResponse, jq as GetArtifactResponses, bW as GetCronTriggerData, bY as GetCronTriggerError, jr as GetCronTriggerErrors, js as GetCronTriggerResponse, jt as GetCronTriggerResponses, bZ as GetCurrentUserData, b$ as GetCurrentUserError, ju as GetCurrentUserErrors, jv as GetCurrentUserResponse, jw as GetCurrentUserResponses, c0 as GetDaemonSkillArchiveData, c1 as GetDaemonSkillArchiveError, jx as GetDaemonSkillArchiveErrors, jy as GetDaemonSkillArchiveResponse, jz as GetDaemonSkillArchiveResponses, c2 as GetMachineData, c4 as GetMachineError, jA as GetMachineErrors, c5 as GetMachinePoolData, c7 as GetMachinePoolError, jB as GetMachinePoolErrors, jC as GetMachinePoolResponse, jD as GetMachinePoolResponses, jE as GetMachineResponse, jF as GetMachineResponses, c8 as GetModelCatalogData, ca as GetModelCatalogError, jG as GetModelCatalogErrors, jH as GetModelCatalogResponse, jI as GetModelCatalogResponses, cb as GetModelProviderConfigData, cd as GetModelProviderConfigError, jJ as GetModelProviderConfigErrors, jK as GetModelProviderConfigResponse, jL as GetModelProviderConfigResponses, ce as GetOrgApiKeyData, cg as GetOrgApiKeyError, jM as GetOrgApiKeyErrors, jN as GetOrgApiKeyResponse, jO as GetOrgApiKeyResponses, ch as GetOrgOverviewData, cj as GetOrgOverviewError, jP as GetOrgOverviewErrors, jQ as GetOrgOverviewResponse, jR as GetOrgOverviewResponses, ck as GetProjectAvailableSecretData, cm as GetProjectAvailableSecretError, jS as GetProjectAvailableSecretErrors, jT as GetProjectAvailableSecretResponse, jU as GetProjectAvailableSecretResponses, cn as GetProjectMachinePoolGrantData, cp as GetProjectMachinePoolGrantError, jV as GetProjectMachinePoolGrantErrors, jW as GetProjectMachinePoolGrantResponse, jX as GetProjectMachinePoolGrantResponses, cq as GetSecretData, cs as GetSecretError, jY as GetSecretErrors, jZ as GetSecretResponse, j_ as GetSecretResponses, ct as GetSkillData, cv as GetSkillError, j$ as GetSkillErrors, k0 as GetSkillResponse, k1 as GetSkillResponses, cw as GetToolCatalogData, cy as GetToolCatalogError, k2 as GetToolCatalogErrors, k3 as GetToolCatalogResponse, k4 as GetToolCatalogResponses, k5 as GrantedSecretAvailability, k6 as GrantedSkillAvailability, k7 as IdempotencyKey, k8 as InlineMediaContentBlock, k9 as InstallationId, ka as IntegrationInstall, kb as IntegrationInstallAgentProfileFilter, kc as IntegrationInstallId, kd as IntegrationInstallOAuthFlowIdFilter, ke as IntegrationOAuthFlowId, kf as IntegrationOAuthSetup, kg as IntegrationTarget, kh as InteractionAnswer, ki as InteractionForm, kj as InteractionFormContextItem, kk as InteractionFormOption, kl as InteractionFormQuestion, km as InteractionResolution, kn as JsonBlob, ko as LaunchAgentResponse, cz as ListActorsData, cB as ListActorsError, kp as ListActorsErrors, cA as ListActorsResponse, kq as ListActorsResponse2, kr as ListActorsResponses, cV as ListAgentEventsResponse, dK as ListAgentInputsResponse, cC as ListAgentInteractionsData, cE as ListAgentInteractionsError, ks as ListAgentInteractionsErrors, cD as ListAgentInteractionsResponse, kt as ListAgentInteractionsResponse2, ku as ListAgentInteractionsResponses, cF as ListAgentProfilesData, cH as ListAgentProfilesError, kv as ListAgentProfilesErrors, cG as ListAgentProfilesResponse, kw as ListAgentProfilesResponse2, kx as ListAgentProfilesResponses, e3 as ListAgentTurnsResponse, cI as ListAgentsData, cK as ListAgentsError, ky as ListAgentsErrors, cJ as ListAgentsResponse, kz as ListAgentsResponse2, kA as ListAgentsResponses, cL as ListByoMachineDaemonTokensData, cN as ListByoMachineDaemonTokensError, kB as ListByoMachineDaemonTokensErrors, kC as ListByoMachineDaemonTokensResponse, kD as ListByoMachineDaemonTokensResponses, cO as ListConfiguredModelsData, cQ as ListConfiguredModelsError, kE as ListConfiguredModelsErrors, kF as ListConfiguredModelsResponse, kG as ListConfiguredModelsResponses, cR as ListCronTriggersData, cT as ListCronTriggersError, kH as ListCronTriggersErrors, cS as ListCronTriggersResponse, kI as ListCronTriggersResponse2, kJ as ListCronTriggersResponses, cU as ListEventsData, cW as ListEventsError, kK as ListEventsErrors, kL as ListEventsResponse, kM as ListEventsResponses, cX as ListIntegrationInstallsData, cZ as ListIntegrationInstallsError, kN as ListIntegrationInstallsErrors, cY as ListIntegrationInstallsResponse, kO as ListIntegrationInstallsResponse2, kP as ListIntegrationInstallsResponses, cM as ListMachineDaemonTokensResponse, c_ as ListMachinePoolsData, d0 as ListMachinePoolsError, kQ as ListMachinePoolsErrors, c$ as ListMachinePoolsResponse, kR as ListMachinePoolsResponse2, kS as ListMachinePoolsResponses, d1 as ListMcpServerToolsData, d3 as ListMcpServerToolsError, kT as ListMcpServerToolsErrors, d2 as ListMcpServerToolsResponse, kU as ListMcpServerToolsResponses, d4 as ListMcpServersData, d6 as ListMcpServersError, kV as ListMcpServersErrors, d5 as ListMcpServersResponse, kW as ListMcpServersResponse2, kX as ListMcpServersResponses, d7 as ListMemberProjectAccessData, d9 as ListMemberProjectAccessError, kY as ListMemberProjectAccessErrors, kZ as ListMemberProjectAccessResponse, k_ as ListMemberProjectAccessResponses, da as ListModelProviderConfigsData, dc as ListModelProviderConfigsError, k$ as ListModelProviderConfigsErrors, l0 as ListModelProviderConfigsResponse, l1 as ListModelProviderConfigsResponses, dd as ListOrgApiKeyProjectAccessData, de as ListOrgApiKeyProjectAccessError, l2 as ListOrgApiKeyProjectAccessErrors, l3 as ListOrgApiKeyProjectAccessResponse, l4 as ListOrgApiKeyProjectAccessResponses, df as ListOrgApiKeysData, dh as ListOrgApiKeysError, l5 as ListOrgApiKeysErrors, dg as ListOrgApiKeysResponse, l6 as ListOrgApiKeysResponse2, l7 as ListOrgApiKeysResponses, di as ListOrgInvitationsData, dk as ListOrgInvitationsError, l8 as ListOrgInvitationsErrors, dj as ListOrgInvitationsResponse, l9 as ListOrgInvitationsResponse2, la as ListOrgInvitationsResponses, dl as ListOrgMembersData, dn as ListOrgMembersError, lb as ListOrgMembersErrors, dm as ListOrgMembersResponse, lc as ListOrgMembersResponse2, ld as ListOrgMembersResponses, dp as ListPendingInvitationsData, dq as ListPendingInvitationsError, le as ListPendingInvitationsErrors, lf as ListPendingInvitationsResponse, lg as ListPendingInvitationsResponses, dr as ListPersonalAccessTokensData, dt as ListPersonalAccessTokensError, lh as ListPersonalAccessTokensErrors, ds as ListPersonalAccessTokensResponse, li as ListPersonalAccessTokensResponse2, lj as ListPersonalAccessTokensResponses, du as ListProjectAvailableSecretsData, dw as ListProjectAvailableSecretsError, lk as ListProjectAvailableSecretsErrors, ll as ListProjectAvailableSecretsResponse, lm as ListProjectAvailableSecretsResponses, dx as ListProjectAvailableSkillsData, dz as ListProjectAvailableSkillsError, ln as ListProjectAvailableSkillsErrors, lo as ListProjectAvailableSkillsResponse, lp as ListProjectAvailableSkillsResponses, dA as ListProjectMachineGrantsData, dC as ListProjectMachineGrantsError, lq as ListProjectMachineGrantsErrors, dB as ListProjectMachineGrantsResponse, lr as ListProjectMachineGrantsResponse2, ls as ListProjectMachineGrantsResponses, dD as ListProjectMachinePoolGrantsData, dF as ListProjectMachinePoolGrantsError, lt as ListProjectMachinePoolGrantsErrors, dE as ListProjectMachinePoolGrantsResponse, lu as ListProjectMachinePoolGrantsResponse2, lv as ListProjectMachinePoolGrantsResponses, d8 as ListProjectMembershipGrantsResponse, dG as ListProjectModelGrantsData, dI as ListProjectModelGrantsError, lw as ListProjectModelGrantsErrors, dH as ListProjectModelGrantsResponse, lx as ListProjectModelGrantsResponse2, ly as ListProjectModelGrantsResponses, dv as ListProjectSecretAccessesResponse, dy as ListProjectSkillAccessesResponse, eb as ListProjectsResponse, dJ as ListQueuedBacklogInputsData, dL as ListQueuedBacklogInputsError, lz as ListQueuedBacklogInputsErrors, lA as ListQueuedBacklogInputsResponse, lB as ListQueuedBacklogInputsResponses, dM as ListSecretGrantsData, dO as ListSecretGrantsError, lC as ListSecretGrantsErrors, dN as ListSecretGrantsResponse, lD as ListSecretGrantsResponse2, lE as ListSecretGrantsResponses, dP as ListSecretsData, dR as ListSecretsError, lF as ListSecretsErrors, dQ as ListSecretsResponse, lG as ListSecretsResponse2, lH as ListSecretsResponses, dS as ListSkillGrantsData, dU as ListSkillGrantsError, lI as ListSkillGrantsErrors, dT as ListSkillGrantsResponse, lJ as ListSkillGrantsResponse2, lK as ListSkillGrantsResponses, dV as ListSkillsData, dX as ListSkillsError, lL as ListSkillsErrors, dW as ListSkillsResponse, lM as ListSkillsResponse2, lN as ListSkillsResponses, dY as ListToolCallsData, d_ as ListToolCallsError, lO as ListToolCallsErrors, dZ as ListToolCallsResponse, lP as ListToolCallsResponse2, lQ as ListToolCallsResponses, d$ as ListTurnEventsData, e1 as ListTurnEventsError, lR as ListTurnEventsErrors, e0 as ListTurnEventsResponse, lS as ListTurnEventsResponse2, lT as ListTurnEventsResponses, e2 as ListTurnsData, e4 as ListTurnsError, lU as ListTurnsErrors, lV as ListTurnsResponse, lW as ListTurnsResponses, e5 as ListVisibleMachinesData, e7 as ListVisibleMachinesError, lX as ListVisibleMachinesErrors, e6 as ListVisibleMachinesResponse, lY as ListVisibleMachinesResponse2, lZ as ListVisibleMachinesResponses, e8 as ListVisibleProjectMachinesData, e9 as ListVisibleProjectMachinesError, l_ as ListVisibleProjectMachinesErrors, l$ as ListVisibleProjectMachinesResponse, m0 as ListVisibleProjectMachinesResponses, ea as ListVisibleProjectsData, ec as ListVisibleProjectsError, m1 as ListVisibleProjectsErrors, m2 as ListVisibleProjectsResponse, m3 as ListVisibleProjectsResponses, c3 as Machine, m4 as MachineAccess, m5 as MachineAccessSource, m6 as MachineAccessSourceKind, m7 as MachineConnectionState, m8 as MachineDaemonToken, m9 as MachineDaemonTokenId, ma as MachineFailureReport, mb as MachineId, mc as MachineLifecycleState, md as MachineMetadata, c6 as MachinePool, me as MachinePoolId, mf as MachinePoolSummary, mg as MachinePoolUsage, mh as MachineSourceKind, mi as MachineSourceKindFilter, mj as MachineSummary, mk as MachineSummaryFields, ml as ManagementKind, mm as McpRegistryHeader, mn as McpRegistryIcon, mo as McpRegistryRemote, mp as McpRegistryServer, mq as McpServerAuth, mr as McpServerAuthBearer, ms as McpServerAuthHint, mt as McpServerAuthNone, mu as McpServerAuthOAuth, mv as McpServerAuthRequiredError, mw as McpServerAuthSigV4, mx as McpServerInfo, my as McpServerTool, mz as McpServerToolAnnotations, mA as McpServerToolsRequest, mB as McpServerToolsResponse, mC as McpoAuthFlowId, mD as McpoAuthStartMetadata, mE as McpoAuthStartRequest, mF as McpoAuthStartResponse, mG as MediaRefContentBlock, mH as Metadata, mI as ModelApiFormat, mJ as ModelApiVariantOptions, mK as ModelCacheRetention, mL as ModelCallContextId, c9 as ModelCatalog, mM as ModelOutputBlockStartDelta, mN as ModelOutputBlockStopDelta, mO as ModelOutputContentBlock, mP as ModelOutputDelta, mQ as ModelOutputErrorDelta, mR as ModelOutputEvent, mS as ModelOutputMessageStopDelta, mT as ModelOutputStopReason, mU as ModelOutputStreamBlock, mV as ModelOutputStreamDelta, mW as ModelOutputTextDelta, mX as ModelOutputTextStreamBlock, mY as ModelOutputThinkingDelta, mZ as ModelOutputThinkingStreamBlock, m_ as ModelOutputToolArgumentsDelta, m$ as ModelOutputToolUseStreamBlock, n0 as ModelProviderApiVariant, n1 as ModelProviderApiVariantResponse, n2 as ModelProviderAuthKind, cc as ModelProviderConfig, n3 as ModelProviderConfigId, db as ModelProviderConfigList, n4 as ModelStopReason, n5 as ModelToolCallContentBlock, n6 as ModelUsage, ed as MoveQueuedBacklogInputData, ef as MoveQueuedBacklogInputError, n7 as MoveQueuedBacklogInputErrors, n8 as MoveQueuedBacklogInputRequest, ee as MoveQueuedBacklogInputResponse, n9 as MoveQueuedBacklogInputResponses, na as OAuthRefreshSecretMaterial, nb as OAuthTokenSetSecretMaterial, nc as OkResponse, cf as OrgApiKey, nd as OrgApiKeyId, ne as OrgApiKeyRole, nf as OrgInvitation, ng as OrgInvitationId, nh as OrgMember, ci as OrgOverviewResponse, ni as OrgSecretOwner, nj as OrgSecretOwnerInput, nk as OrgSkillOwner, nl as OrgSkillOwnerInput, nm as Organization, nn as OrganizationId, no as OrganizationMembership, np as PageCursor, nq as PageLimit, nr as PersonalAccessTokenId, ns as ProcessActionId, nt as ProcessActionReconciliationClaim, nu as ProcessActionReconciliationDirective, nv as ProcessId, nw as ProcessReconciliationClaim, nx as ProcessReconciliationDirective, ny as Project, nz as ProjectAccess, nA as ProjectFields, nB as ProjectId, nC as ProjectMachineGrant, nD as ProjectMachineGrantId, nE as ProjectMachineGrantListItem, nF as ProjectMachineGrantSourceKind, co as ProjectMachinePoolGrant, nG as ProjectMachinePoolGrantId, nH as ProjectMachinePoolGrantListItem, nI as ProjectMembershipGrant, nJ as ProjectModelGrant, nK as ProjectModelGrantEnvelope, nL as ProjectModelGrantId, nM as ProjectModelGrantListItem, cl as ProjectSecretAccess, nN as ProjectSecretOwner, nO as ProjectSecretOwnerInput, nP as ProjectSkillAccess, nQ as ProjectSkillOwner, nR as ProjectSkillOwnerInput, eg as PromoteQueuedInputToSteeringData, ei as PromoteQueuedInputToSteeringError, nS as PromoteQueuedInputToSteeringErrors, nT as PromoteQueuedInputToSteeringRequest, eh as PromoteQueuedInputToSteeringResponse, nU as PromoteQueuedInputToSteeringResponses, ej as PutActorData, el as PutActorError, nV as PutActorErrors, ek as PutActorResponse, nW as PutActorResponses, nX as ReasoningContentBlock, em as RecordMachineFailureData, eo as RecordMachineFailureError, nY as RecordMachineFailureErrors, en as RecordMachineFailureResponse, nZ as RecordMachineFailureResponses, n_ as RegisterDaemonRuntimeRequest, n$ as RegisterDaemonRuntimeResponse, ep as RegisterMachineDaemonRuntimeData, er as RegisterMachineDaemonRuntimeError, o0 as RegisterMachineDaemonRuntimeErrors, eq as RegisterMachineDaemonRuntimeResponse, o1 as RegisterMachineDaemonRuntimeResponses, es as RemoveMemberProjectAccessData, eu as RemoveMemberProjectAccessError, o2 as RemoveMemberProjectAccessErrors, et as RemoveMemberProjectAccessResponse, o3 as RemoveMemberProjectAccessResponses, ev as RemoveOrgApiKeyProjectRoleData, ex as RemoveOrgApiKeyProjectRoleError, o4 as RemoveOrgApiKeyProjectRoleErrors, ew as RemoveOrgApiKeyProjectRoleResponse, o5 as RemoveOrgApiKeyProjectRoleResponses, ey as RemoveOrgMemberData, eA as RemoveOrgMemberError, o6 as RemoveOrgMemberErrors, ez as RemoveOrgMemberResponse, o7 as RemoveOrgMemberResponses, eB as RenameAgentProfileData, eD as RenameAgentProfileError, o8 as RenameAgentProfileErrors, o9 as RenameAgentProfileRequest, eC as RenameAgentProfileResponse, oa as RenameAgentProfileResponses, eE as ResolveAgentInteractionData, eG as ResolveAgentInteractionError, ob as ResolveAgentInteractionErrors, oc as ResolveAgentInteractionRequest, eF as ResolveAgentInteractionResponse, od as ResolveAgentInteractionResponses, oe as ResourceListSort, of as ResourceName, og as ResourceNameFilter, eH as RevokeMachineDaemonTokenData, eJ as RevokeMachineDaemonTokenError, oh as RevokeMachineDaemonTokenErrors, eI as RevokeMachineDaemonTokenResponse, oi as RevokeMachineDaemonTokenResponses, eK as RevokeOrgApiKeyData, eM as RevokeOrgApiKeyError, oj as RevokeOrgApiKeyErrors, eL as RevokeOrgApiKeyResponse, ok as RevokeOrgApiKeyResponses, eN as RevokePersonalAccessTokenData, eP as RevokePersonalAccessTokenError, ol as RevokePersonalAccessTokenErrors, eO as RevokePersonalAccessTokenResponse, om as RevokePersonalAccessTokenResponses, cr as Secret, on as SecretAvailability, oo as SecretAvailabilitySourceFilter, op as SecretGrant, oq as SecretGrantCreateRequest, or as SecretGrantId, os as SecretGrantListItem, ot as SecretId, ou as SecretKind, ov as SecretKindFilter, ow as SecretMaterial, ox as SecretMcpoAuthFlowIdFilter, oy as SecretMetadataFilter, oz as SecretOwner, oA as SecretOwnerInput, oB as SecretOwnerKindFilter, oC as SecretOwnerProjectIdFilter, oD as SecretVersionRequest, oE as ServerErrorCode, eQ as SetMemberProjectAccessData, eS as SetMemberProjectAccessError, oF as SetMemberProjectAccessErrors, eR as SetMemberProjectAccessResponse, oG as SetMemberProjectAccessResponses, eT as SetOrgApiKeyProjectRoleData, eV as SetOrgApiKeyProjectRoleError, oH as SetOrgApiKeyProjectRoleErrors, eU as SetOrgApiKeyProjectRoleResponse, oI as SetOrgApiKeyProjectRoleResponses, oJ as SetProjectMembershipRequest, cu as Skill, oK as SkillAvailability, oL as SkillAvailabilitySourceFilter, oM as SkillFile, oN as SkillGrant, oO as SkillGrantCreateRequest, oP as SkillGrantId, oQ as SkillGrantListItem, oR as SkillId, oS as SkillName, oT as SkillOwner, oU as SkillOwnerInput, oV as SkillOwnerKindFilter, oW as SkillOwnerProjectIdFilter, oX as SkillRevisionId, oY as SlackSetup, oZ as SlackSetupIcon, eW as SleepMachineDaemonRuntimeData, eY as SleepMachineDaemonRuntimeError, o_ as SleepMachineDaemonRuntimeErrors, eX as SleepMachineDaemonRuntimeResponse, o$ as SleepMachineDaemonRuntimeResponses, eZ as SocketMachineDaemonRuntimeData, e_ as SocketMachineDaemonRuntimeError, p0 as SocketMachineDaemonRuntimeErrors, e$ as StartSecretMcpoAuthData, f1 as StartSecretMcpoAuthError, p1 as StartSecretMcpoAuthErrors, f0 as StartSecretMcpoAuthResponse, p2 as StartSecretMcpoAuthResponses, p3 as StreamEventsError, p4 as StreamEventsErrors, p5 as StreamEventsResponse, p6 as StreamEventsResponses, p7 as StructuredDataContentBlock, f2 as SubmitToolCallResultData, f4 as SubmitToolCallResultError, p8 as SubmitToolCallResultErrors, p9 as SubmitToolCallResultRequest, pa as SubmitToolCallResultResponse, f3 as SubmitToolCallResultResponse2, pb as SubmitToolCallResultResponses, pc as SubmitToolResultContentBlock, pd as TextContentBlock, pe as Timestamp, pf as ToolCall, pg as ToolCallId, ph as ToolCallOutcome, pi as ToolCallState, pj as ToolCallType, pk as ToolCallUpdate, cx as ToolCatalog, pl as ToolCatalogEntry, pm as ToolInput, pn as ToolPermissionMode, po as ToolPermissionProfile, pp as ToolPermissionSelection, pq as ToolResult, pr as ToolResultContentBlock, ps as ToolResultEvent, f5 as UpdateAgentConfigData, f7 as UpdateAgentConfigError, pt as UpdateAgentConfigErrors, pu as UpdateAgentConfigRequest, pv as UpdateAgentConfigResponse, f6 as UpdateAgentConfigResponse2, pw as UpdateAgentConfigResponses, f8 as UpdateAgentProfileData, fa as UpdateAgentProfileError, px as UpdateAgentProfileErrors, py as UpdateAgentProfileRequest, f9 as UpdateAgentProfileResponse, pz as UpdateAgentProfileResponses, fb as UpdateConfiguredModelData, fd as UpdateConfiguredModelError, pA as UpdateConfiguredModelErrors, pB as UpdateConfiguredModelRequest, fc as UpdateConfiguredModelResponse, pC as UpdateConfiguredModelResponses, fe as UpdateCronTriggerData, fg as UpdateCronTriggerError, pD as UpdateCronTriggerErrors, pE as UpdateCronTriggerRequest, ff as UpdateCronTriggerResponse, pF as UpdateCronTriggerResponses, fh as UpdateMachineData, fj as UpdateMachineError, pG as UpdateMachineErrors, fk as UpdateMachinePoolData, fm as UpdateMachinePoolError, pH as UpdateMachinePoolErrors, pI as UpdateMachinePoolRequest, fl as UpdateMachinePoolResponse, pJ as UpdateMachinePoolResponses, pK as UpdateMachineRequest, fi as UpdateMachineResponse, pL as UpdateMachineResponses, fn as UpdateModelProviderConfigData, fp as UpdateModelProviderConfigError, pM as UpdateModelProviderConfigErrors, pN as UpdateModelProviderConfigRequest, fo as UpdateModelProviderConfigResponse, pO as UpdateModelProviderConfigResponses, fq as UpdateOrgApiKeyData, fs as UpdateOrgApiKeyError, pP as UpdateOrgApiKeyErrors, pQ as UpdateOrgApiKeyRequest, fr as UpdateOrgApiKeyResponse, pR as UpdateOrgApiKeyResponses, ft as UpdateOrgMemberData, fv as UpdateOrgMemberError, pS as UpdateOrgMemberErrors, pT as UpdateOrgMemberRequest, fu as UpdateOrgMemberResponse, pU as UpdateOrgMemberResponses, fw as UpdateProjectMachinePoolGrantData, fy as UpdateProjectMachinePoolGrantError, pV as UpdateProjectMachinePoolGrantErrors, pW as UpdateProjectMachinePoolGrantRequest, fx as UpdateProjectMachinePoolGrantResponse, pX as UpdateProjectMachinePoolGrantResponses, fz as UpdateProjectModelGrantData, fB as UpdateProjectModelGrantError, pY as UpdateProjectModelGrantErrors, pZ as UpdateProjectModelGrantRequest, fA as UpdateProjectModelGrantResponse, p_ as UpdateProjectModelGrantResponses, fC as UpdateSecretData, fE as UpdateSecretError, p$ as UpdateSecretErrors, q0 as UpdateSecretRequest, fD as UpdateSecretResponse, q1 as UpdateSecretResponses, fF as UpdateSkillData, fH as UpdateSkillError, q2 as UpdateSkillErrors, q3 as UpdateSkillRequest, fG as UpdateSkillResponse, q4 as UpdateSkillResponses, q5 as UploadArtifactResponse, fI as UploadDaemonArtifactData, fK as UploadDaemonArtifactError, q6 as UploadDaemonArtifactErrors, fJ as UploadDaemonArtifactResponse, q7 as UploadDaemonArtifactResponses, q8 as UserId, q9 as UserSecretOwner, qa as UserSecretOwnerInput, qb as UserSkillOwner, qc as UserSkillOwnerInput, qd as VisibleMachine, qe as VisibleProject, qf as Warning, qg as sdk } from './sdk.gen-qOnMVktp.js';
5
+ export { z as schemas } from './zod.gen-ClvDjqAD.js';
6
+ import 'zod';
7
7
 
8
8
  declare const createClient: (config?: Config) => Client;
9
9
 
@@ -45,13 +45,9 @@ declare function cliLoginTokenName(hostName?: string): string;
45
45
  declare function isCliLoginToken(token: PersonalAccessToken): boolean;
46
46
  declare function cliLoginTokenHost(token: PersonalAccessToken): string;
47
47
 
48
- declare const zDeviceAuthFailureResponse: z.ZodObject<{
49
- error: z.ZodEnum<{
50
- access_denied: "access_denied";
51
- expired_token: "expired_token";
52
- }>;
53
- }, z.core.$strip>;
54
- type DeviceAuthFailureCode = z.infer<typeof zDeviceAuthFailureResponse>['error'];
48
+ declare const OMNARA_CLI_OAUTH_CLIENT_ID = "omnara-cli";
49
+ declare const OAUTH_DEVICE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
50
+ type DeviceAuthFailureCode = 'access_denied' | 'expired_token';
55
51
  declare class DeviceAuthError extends Error {
56
52
  readonly code: DeviceAuthFailureCode;
57
53
  constructor(code: DeviceAuthFailureCode);
@@ -63,16 +59,19 @@ interface DeviceAuthStart {
63
59
  verificationUriComplete: string;
64
60
  expiresInSeconds: number;
65
61
  intervalSeconds: number;
62
+ tokenEndpoint: string;
63
+ clientId: string;
66
64
  }
67
65
  interface StartDeviceAuthOptions {
68
- baseUrl: string;
69
- clientName: string;
70
- tokenName: string;
66
+ issuerUrl: string;
67
+ clientId: string;
68
+ tokenName?: string;
71
69
  fetch?: typeof fetch;
72
70
  }
73
71
  declare function startDeviceAuth(options: StartDeviceAuthOptions): Promise<DeviceAuthStart>;
74
72
  interface PollDeviceAuthTokenOptions {
75
- baseUrl: string;
73
+ tokenEndpoint: string;
74
+ clientId: string;
76
75
  deviceCode: string;
77
76
  intervalSeconds: number;
78
77
  fetch?: typeof fetch;
@@ -90,4 +89,4 @@ declare class ApiError extends Error {
90
89
  static fromResponse(response: Response): Promise<ApiError>;
91
90
  }
92
91
 
93
- export { AgentConfigErrorIssue, AgentEventStreamData, AgentEventStreamError, type AgentEventStreamErrorKind, ApiError, type ApiErrorCode, AuthStrategy, DeviceAuthError, type DeviceAuthFailureCode, type DeviceAuthStart, Error$1 as Error, type OmnaraClient, type OmnaraClientOptions, type OpenAgentEventStreamOptions, PersonalAccessToken, type PollDeviceAuthTokenOptions, type StartDeviceAuthOptions, StreamEventsData, cliLoginTokenHost, cliLoginTokenName, createOmnaraClient, isCliLoginToken, openAgentEventStream, pollDeviceAuthToken, startDeviceAuth };
92
+ export { AgentConfigErrorIssue, AgentEventStreamData, AgentEventStreamError, type AgentEventStreamErrorKind, ApiError, type ApiErrorCode, AuthStrategy, DeviceAuthError, type DeviceAuthFailureCode, type DeviceAuthStart, Error$1 as Error, 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 };
package/dist/index.js CHANGED
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  ApiError
3
- } from "./chunk-CWB3KJI5.js";
3
+ } from "./chunk-K5YXFYE4.js";
4
4
  import {
5
+ client,
5
6
  createClient,
6
7
  createConfig,
7
8
  isUnknownEnumError,
8
9
  sdk_gen_exports,
9
10
  streamEvents
10
- } from "./chunk-XQBAIV43.js";
11
+ } from "./chunk-T324MHWD.js";
11
12
  import {
12
13
  zStreamEventsResponse,
13
14
  zod_gen_exports
14
- } from "./chunk-6LZMFDIZ.js";
15
+ } from "./chunk-WR57Q743.js";
15
16
 
16
17
  // src/agent-event-stream.ts
17
18
  var AgentEventStreamError = class extends Error {
@@ -85,7 +86,7 @@ async function* validatedFrames(source, sourceError, signal) {
85
86
  if (error != null) throw error;
86
87
  }
87
88
  async function openAgentEventStream({
88
- client,
89
+ client: client2,
89
90
  path,
90
91
  query,
91
92
  headers,
@@ -94,7 +95,7 @@ async function openAgentEventStream({
94
95
  let connectionError;
95
96
  try {
96
97
  const result = await streamEvents({
97
- client,
98
+ client: client2,
98
99
  path,
99
100
  query,
100
101
  headers,
@@ -142,7 +143,7 @@ function cliLoginTokenHost(token) {
142
143
  }
143
144
 
144
145
  // src/client.ts
145
- function stripClientSelector(client) {
146
+ function stripClientSelector(client2) {
146
147
  const strip = (dispatch) => (options) => {
147
148
  if (options == null || !("client" in options)) return dispatch(options);
148
149
  const rest = { ...options };
@@ -165,37 +166,46 @@ function stripClientSelector(client) {
165
166
  const dispatches = target;
166
167
  for (const method of methods) dispatches[method] &&= strip(dispatches[method]);
167
168
  };
168
- wrap(client);
169
- wrap(client.sse);
169
+ wrap(client2);
170
+ wrap(client2.sse);
170
171
  }
171
172
  function createOmnaraClient(options = {}) {
172
- const client = createClient(
173
+ const client2 = createClient(
173
174
  createConfig({
174
175
  throwOnError: true
175
176
  })
176
177
  );
177
- client.setConfig({
178
- baseUrl: options.baseUrl ?? "",
178
+ client2.setConfig({
179
+ baseUrl: options.baseUrl ?? client.getConfig().baseUrl,
179
180
  credentials: options.credentials,
180
181
  headers: options.headers
181
182
  });
182
183
  const { auth } = options;
183
184
  if (auth) {
184
- client.interceptors.request.use(async (request) => {
185
+ client2.interceptors.request.use(async (request) => {
185
186
  await auth.authenticate(request);
186
187
  return request;
187
188
  });
188
189
  }
189
- client.interceptors.response.use(async (response) => {
190
+ client2.interceptors.response.use(async (response) => {
190
191
  if (!response.ok) throw await ApiError.fromResponse(response);
191
192
  return response;
192
193
  });
193
- stripClientSelector(client);
194
- return client;
194
+ stripClientSelector(client2);
195
+ return client2;
195
196
  }
196
197
 
197
198
  // src/device.ts
198
199
  import * as z from "zod";
200
+ var OMNARA_CLI_OAUTH_CLIENT_ID = "omnara-cli";
201
+ var OAUTH_DEVICE_GRANT_TYPE = "urn:ietf:params:oauth:grant-type:device_code";
202
+ var zAuthorizationServerMetadata = z.object({
203
+ issuer: z.url(),
204
+ device_authorization_endpoint: z.url(),
205
+ token_endpoint: z.url(),
206
+ grant_types_supported: z.array(z.string()),
207
+ token_endpoint_auth_methods_supported: z.array(z.string())
208
+ });
199
209
  var zDeviceAuthStartResponse = z.object({
200
210
  device_code: z.string().min(1),
201
211
  user_code: z.string().min(1),
@@ -204,11 +214,9 @@ var zDeviceAuthStartResponse = z.object({
204
214
  expires_in: z.number().int().positive(),
205
215
  interval: z.number().int().positive()
206
216
  });
207
- var zDeviceAuthWaitingResponse = z.object({
208
- interval: z.number().int().positive()
209
- });
210
- var zDeviceAuthFailureResponse = z.object({
211
- error: z.enum(["access_denied", "expired_token"])
217
+ var zDeviceAuthErrorResponse = z.object({
218
+ error: z.string().min(1),
219
+ error_description: z.string().optional()
212
220
  });
213
221
  var zDeviceAuthApprovedResponse = z.object({
214
222
  access_token: z.string().min(1),
@@ -226,29 +234,55 @@ var DeviceAuthError = class extends Error {
226
234
  this.code = code;
227
235
  }
228
236
  };
229
- async function postDeviceAuthJSON(fetchImpl, baseUrl, path, body) {
230
- return fetchImpl(`${baseUrl.replace(/\/+$/, "")}${path}`, {
237
+ async function postOAuthForm(fetchImpl, endpoint, body) {
238
+ return fetchImpl(endpoint, {
231
239
  method: "POST",
232
- headers: { "Content-Type": "application/json" },
233
- body: JSON.stringify(body)
240
+ headers: {
241
+ Accept: "application/json",
242
+ "Content-Type": "application/x-www-form-urlencoded"
243
+ },
244
+ body: new URLSearchParams(body).toString()
234
245
  });
235
246
  }
247
+ function normalizeIssuer(raw) {
248
+ const issuer = new URL(raw);
249
+ if (issuer.username !== "" || issuer.password !== "" || issuer.pathname !== "/" || issuer.search !== "" || issuer.hash !== "") {
250
+ throw new Error("authorization server issuer must be an origin");
251
+ }
252
+ return issuer.origin;
253
+ }
236
254
  async function startDeviceAuth(options) {
237
- const response = await postDeviceAuthJSON(
238
- options.fetch ?? fetch,
239
- options.baseUrl,
240
- "/api/auth/device/code",
241
- { client_name: options.clientName, token_name: options.tokenName }
242
- );
255
+ const fetchImpl = options.fetch ?? fetch;
256
+ const expectedIssuer = normalizeIssuer(options.issuerUrl);
257
+ const metadataUrl = new URL("/.well-known/oauth-authorization-server", `${expectedIssuer}/`);
258
+ const metadataResponse = await fetchImpl(metadataUrl, { headers: { Accept: "application/json" } });
259
+ if (!metadataResponse.ok) throw await ApiError.fromResponse(metadataResponse);
260
+ const metadata = zAuthorizationServerMetadata.parse(await metadataResponse.json());
261
+ if (normalizeIssuer(metadata.issuer) !== expectedIssuer) {
262
+ throw new Error(
263
+ `authorization server issuer mismatch: expected ${expectedIssuer}, received ${metadata.issuer}`
264
+ );
265
+ }
266
+ if (!metadata.grant_types_supported.includes(OAUTH_DEVICE_GRANT_TYPE)) {
267
+ throw new Error("authorization server does not support the OAuth device grant");
268
+ }
269
+ if (!metadata.token_endpoint_auth_methods_supported.includes("none")) {
270
+ throw new Error("authorization server does not support public OAuth clients");
271
+ }
272
+ const body = { client_id: options.clientId };
273
+ if (options.tokenName !== void 0) body.token_name = options.tokenName;
274
+ const response = await postOAuthForm(fetchImpl, metadata.device_authorization_endpoint, body);
243
275
  if (!response.ok) throw await ApiError.fromResponse(response);
244
276
  const data = zDeviceAuthStartResponse.parse(await response.json());
245
277
  return {
246
278
  deviceCode: data.device_code,
247
279
  userCode: data.user_code,
248
- verificationUri: new URL(data.verification_uri, options.baseUrl).toString(),
249
- verificationUriComplete: new URL(data.verification_uri_complete, options.baseUrl).toString(),
280
+ verificationUri: new URL(data.verification_uri, metadata.issuer).toString(),
281
+ verificationUriComplete: new URL(data.verification_uri_complete, metadata.issuer).toString(),
250
282
  expiresInSeconds: data.expires_in,
251
- intervalSeconds: data.interval
283
+ intervalSeconds: data.interval,
284
+ tokenEndpoint: metadata.token_endpoint,
285
+ clientId: options.clientId
252
286
  };
253
287
  }
254
288
  function defaultSleep(seconds) {
@@ -260,26 +294,28 @@ async function pollDeviceAuthToken(options) {
260
294
  let interval = options.intervalSeconds;
261
295
  while (true) {
262
296
  await sleep(interval);
263
- const response = await postDeviceAuthJSON(
264
- fetchImpl,
265
- options.baseUrl,
266
- "/api/auth/device/token",
267
- {
268
- device_code: options.deviceCode
269
- }
270
- );
297
+ const response = await postOAuthForm(fetchImpl, options.tokenEndpoint, {
298
+ grant_type: OAUTH_DEVICE_GRANT_TYPE,
299
+ device_code: options.deviceCode,
300
+ client_id: options.clientId
301
+ });
271
302
  if (response.status === 200) {
272
303
  return zDeviceAuthApprovedResponse.parse(await response.json()).access_token;
273
304
  }
274
- if (response.status === 202) {
275
- interval = zDeviceAuthWaitingResponse.parse(await response.json()).interval;
276
- continue;
277
- }
278
305
  if (response.status === 400) {
279
- const failure = zDeviceAuthFailureResponse.safeParse(
306
+ const failure = zDeviceAuthErrorResponse.safeParse(
280
307
  await response.clone().json().catch(() => void 0)
281
308
  );
282
- if (failure.success) throw new DeviceAuthError(failure.data.error);
309
+ if (failure.success) {
310
+ if (failure.data.error === "authorization_pending") continue;
311
+ if (failure.data.error === "slow_down") {
312
+ interval += 5;
313
+ continue;
314
+ }
315
+ if (failure.data.error === "access_denied" || failure.data.error === "expired_token") {
316
+ throw new DeviceAuthError(failure.data.error);
317
+ }
318
+ }
283
319
  }
284
320
  throw await ApiError.fromResponse(response);
285
321
  }
@@ -288,6 +324,8 @@ export {
288
324
  AgentEventStreamError,
289
325
  ApiError,
290
326
  DeviceAuthError,
327
+ OAUTH_DEVICE_GRANT_TYPE,
328
+ OMNARA_CLI_OAUTH_CLIENT_ID,
291
329
  bearerToken,
292
330
  cliLoginTokenHost,
293
331
  cliLoginTokenName,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/agent-event-stream.ts","../src/auth.ts","../src/cli-login-token.ts","../src/client.ts","../src/device.ts"],"sourcesContent":["import type { OmnaraClient } from './client'\nimport { streamEvents } from './generated/sdk.gen'\nimport type { AgentEventStreamData, StreamEventsData } from './generated/types.gen'\nimport { zStreamEventsResponse } from './generated/zod.gen'\nimport { isUnknownEnumError } from './validate-response'\n\nexport type AgentEventStreamErrorKind = 'aborted' | 'contract' | 'http' | 'transport'\n\nexport class AgentEventStreamError extends Error {\n readonly kind: AgentEventStreamErrorKind\n readonly retryable: boolean\n readonly status: number | undefined\n\n constructor({\n kind,\n message,\n retryable,\n status,\n cause,\n }: {\n kind: AgentEventStreamErrorKind\n message: string\n retryable: boolean\n status?: number\n cause?: unknown\n }) {\n super(message, { cause })\n this.name = 'AgentEventStreamError'\n this.kind = kind\n this.retryable = retryable\n this.status = status\n }\n}\n\nexport interface OpenAgentEventStreamOptions {\n client: OmnaraClient\n path: StreamEventsData['path']\n query?: StreamEventsData['query']\n headers?: StreamEventsData['headers']\n signal?: AbortSignal\n}\n\nexport interface AgentEventStream {\n stream: AsyncGenerator<AgentEventStreamData>\n}\n\nconst generatedHTTPError = /^SSE failed: (\\d{3})(?:\\s|$)/\n\nfunction classifyStreamError(error: unknown, signal?: AbortSignal): AgentEventStreamError {\n if (error instanceof AgentEventStreamError) return error\n if (signal?.aborted === true || (error instanceof Error && error.name === 'AbortError')) {\n return new AgentEventStreamError({\n kind: 'aborted',\n message: 'Agent event stream canceled',\n retryable: false,\n cause: error,\n })\n }\n const match = error instanceof Error ? generatedHTTPError.exec(error.message) : null\n const status = match?.[1] == null ? undefined : Number.parseInt(match[1], 10)\n if (status != null) {\n return new AgentEventStreamError({\n kind: 'http',\n message: `Agent event stream request failed with HTTP ${status}`,\n retryable: status === 408 || status === 429 || status >= 500,\n status,\n cause: error,\n })\n }\n return new AgentEventStreamError({\n kind: 'transport',\n message: 'Agent event stream disconnected',\n retryable: true,\n cause: error,\n })\n}\n\nasync function* validatedFrames(\n source: AsyncIterable<unknown>,\n sourceError: () => AgentEventStreamError | undefined,\n signal?: AbortSignal,\n): AsyncGenerator<AgentEventStreamData> {\n try {\n for await (const data of source) {\n const parsed = await zStreamEventsResponse.safeParseAsync(data)\n if (parsed.success) {\n yield parsed.data\n } else if (isUnknownEnumError(parsed.error, data)) {\n yield data as AgentEventStreamData\n } else {\n throw new AgentEventStreamError({\n kind: 'contract',\n message: 'Agent event stream received data that does not match the API contract',\n retryable: false,\n cause: parsed.error,\n })\n }\n }\n } catch (error) {\n throw classifyStreamError(error, signal)\n }\n const error = sourceError()\n if (error != null) throw error\n}\n\nexport async function openAgentEventStream({\n client,\n path,\n query,\n headers,\n signal,\n}: OpenAgentEventStreamOptions): Promise<AgentEventStream> {\n let connectionError: AgentEventStreamError | undefined\n try {\n const result = await streamEvents({\n client,\n path,\n query,\n headers,\n signal,\n responseValidator: undefined,\n sseMaxRetryAttempts: 1,\n onSseError: (error) => {\n connectionError = classifyStreamError(error, signal)\n },\n })\n return {\n stream: validatedFrames(result.stream, () => connectionError, signal),\n }\n } catch (error) {\n throw classifyStreamError(error, signal)\n }\n}\n","export interface AuthStrategy {\n authenticate(request: Request): void | Promise<void>\n}\n\nexport function bearerToken(token: string | (() => string | Promise<string>)): AuthStrategy {\n const resolve = typeof token === 'function' ? 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 type { AuthStrategy } from './auth'\nimport { ApiError } from './errors'\nimport { createClient, createConfig } from './generated/client'\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}\n\ntype Dispatch = (options?: Record<string, unknown>) => unknown\n\n// The generated client leaks per-call options — including the `client`\n// selector — into the Request init, which throws on Deno and Bun (they\n// reserve the `client` init key). Drop the key before dispatch.\n// TODO: remove once hey-api/hey-api#4177 is fixed and regenerated.\nfunction stripClientSelector(client: OmnaraClient): void {\n const strip =\n (dispatch: Dispatch): Dispatch =>\n (options) => {\n if (options == null || !('client' in options)) return dispatch(options)\n const rest = { ...options }\n delete rest.client\n return dispatch(rest)\n }\n const methods = [\n 'connect',\n 'delete',\n 'get',\n 'head',\n 'options',\n 'patch',\n 'post',\n 'put',\n 'request',\n 'trace',\n ] as const\n const wrap = (target: object) => {\n const dispatches = target as Partial<Record<(typeof methods)[number], Dispatch>>\n for (const method of methods) dispatches[method] &&= strip(dispatches[method])\n }\n wrap(client)\n wrap(client.sse)\n}\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 ?? '',\n credentials: options.credentials,\n headers: options.headers,\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 stripClientSelector(client)\n return client\n}\n","import * as z from 'zod'\n\nimport { ApiError } from './errors'\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 zDeviceAuthWaitingResponse = z.object({\n interval: z.number().int().positive(),\n})\n\nconst zDeviceAuthFailureResponse = z.object({\n error: z.enum(['access_denied', 'expired_token']),\n})\n\nconst zDeviceAuthApprovedResponse = z.object({\n access_token: z.string().min(1),\n token_type: z.string(),\n})\n\nexport type DeviceAuthFailureCode = z.infer<typeof zDeviceAuthFailureResponse>['error']\n\nconst DEVICE_AUTH_FAILURE_MESSAGES: Record<DeviceAuthFailureCode, string> = {\n access_denied: 'the login request was denied',\n expired_token: 'the login request expired before it was approved',\n}\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}\n\nasync function postDeviceAuthJSON(\n fetchImpl: typeof fetch,\n baseUrl: string,\n path: string,\n body: unknown,\n): Promise<Response> {\n return fetchImpl(`${baseUrl.replace(/\\/+$/, '')}${path}`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(body),\n })\n}\n\nexport interface StartDeviceAuthOptions {\n baseUrl: string\n clientName: string\n tokenName: string\n fetch?: typeof fetch\n}\n\nexport async function startDeviceAuth(options: StartDeviceAuthOptions): Promise<DeviceAuthStart> {\n const response = await postDeviceAuthJSON(\n options.fetch ?? fetch,\n options.baseUrl,\n '/api/auth/device/code',\n { client_name: options.clientName, token_name: options.tokenName },\n )\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, options.baseUrl).toString(),\n verificationUriComplete: new URL(data.verification_uri_complete, options.baseUrl).toString(),\n expiresInSeconds: data.expires_in,\n intervalSeconds: data.interval,\n }\n}\n\nfunction defaultSleep(seconds: number): Promise<void> {\n return new Promise((resolve) => setTimeout(resolve, seconds * 1000))\n}\n\nexport interface PollDeviceAuthTokenOptions {\n baseUrl: 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 postDeviceAuthJSON(\n fetchImpl,\n options.baseUrl,\n '/api/auth/device/token',\n {\n device_code: options.deviceCode,\n },\n )\n if (response.status === 200) {\n return zDeviceAuthApprovedResponse.parse(await response.json()).access_token\n }\n if (response.status === 202) {\n interval = zDeviceAuthWaitingResponse.parse(await response.json()).interval\n continue\n }\n if (response.status === 400) {\n const failure = zDeviceAuthFailureResponse.safeParse(\n await response\n .clone()\n .json()\n .catch((): unknown => undefined),\n )\n if (failure.success) throw new DeviceAuthError(failure.data.error)\n }\n throw await ApiError.fromResponse(response)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAQO,IAAM,wBAAN,cAAoC,MAAM;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAMG;AACD,UAAM,SAAS,EAAE,MAAM,CAAC;AACxB,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,YAAY;AACj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.ts","../src/cli-login-token.ts","../src/client.ts","../src/device.ts"],"sourcesContent":["import type { OmnaraClient } from './client'\nimport { streamEvents } from './generated/sdk.gen'\nimport type { AgentEventStreamData, StreamEventsData } from './generated/types.gen'\nimport { zStreamEventsResponse } from './generated/zod.gen'\nimport { isUnknownEnumError } from './validate-response'\n\nexport type AgentEventStreamErrorKind = 'aborted' | 'contract' | 'http' | 'transport'\n\nexport class AgentEventStreamError extends Error {\n readonly kind: AgentEventStreamErrorKind\n readonly retryable: boolean\n readonly status: number | undefined\n\n constructor({\n kind,\n message,\n retryable,\n status,\n cause,\n }: {\n kind: AgentEventStreamErrorKind\n message: string\n retryable: boolean\n status?: number\n cause?: unknown\n }) {\n super(message, { cause })\n this.name = 'AgentEventStreamError'\n this.kind = kind\n this.retryable = retryable\n this.status = status\n }\n}\n\nexport interface OpenAgentEventStreamOptions {\n client: OmnaraClient\n path: StreamEventsData['path']\n query?: StreamEventsData['query']\n headers?: StreamEventsData['headers']\n signal?: AbortSignal\n}\n\nexport interface AgentEventStream {\n stream: AsyncGenerator<AgentEventStreamData>\n}\n\nconst generatedHTTPError = /^SSE failed: (\\d{3})(?:\\s|$)/\n\nfunction classifyStreamError(error: unknown, signal?: AbortSignal): AgentEventStreamError {\n if (error instanceof AgentEventStreamError) return error\n if (signal?.aborted === true || (error instanceof Error && error.name === 'AbortError')) {\n return new AgentEventStreamError({\n kind: 'aborted',\n message: 'Agent event stream canceled',\n retryable: false,\n cause: error,\n })\n }\n const match = error instanceof Error ? generatedHTTPError.exec(error.message) : null\n const status = match?.[1] == null ? undefined : Number.parseInt(match[1], 10)\n if (status != null) {\n return new AgentEventStreamError({\n kind: 'http',\n message: `Agent event stream request failed with HTTP ${status}`,\n retryable: status === 408 || status === 429 || status >= 500,\n status,\n cause: error,\n })\n }\n return new AgentEventStreamError({\n kind: 'transport',\n message: 'Agent event stream disconnected',\n retryable: true,\n cause: error,\n })\n}\n\nasync function* validatedFrames(\n source: AsyncIterable<unknown>,\n sourceError: () => AgentEventStreamError | undefined,\n signal?: AbortSignal,\n): AsyncGenerator<AgentEventStreamData> {\n try {\n for await (const data of source) {\n const parsed = await zStreamEventsResponse.safeParseAsync(data)\n if (parsed.success) {\n yield parsed.data\n } else if (isUnknownEnumError(parsed.error, data)) {\n yield data as AgentEventStreamData\n } else {\n throw new AgentEventStreamError({\n kind: 'contract',\n message: 'Agent event stream received data that does not match the API contract',\n retryable: false,\n cause: parsed.error,\n })\n }\n }\n } catch (error) {\n throw classifyStreamError(error, signal)\n }\n const error = sourceError()\n if (error != null) throw error\n}\n\nexport async function openAgentEventStream({\n client,\n path,\n query,\n headers,\n signal,\n}: OpenAgentEventStreamOptions): Promise<AgentEventStream> {\n let connectionError: AgentEventStreamError | undefined\n try {\n const result = await streamEvents({\n client,\n path,\n query,\n headers,\n signal,\n responseValidator: undefined,\n sseMaxRetryAttempts: 1,\n onSseError: (error) => {\n connectionError = classifyStreamError(error, signal)\n },\n })\n return {\n stream: validatedFrames(result.stream, () => connectionError, signal),\n }\n } catch (error) {\n throw classifyStreamError(error, signal)\n }\n}\n","export interface AuthStrategy {\n authenticate(request: Request): void | Promise<void>\n}\n\nexport function bearerToken(token: string | (() => string | Promise<string>)): AuthStrategy {\n const resolve = typeof token === 'function' ? 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 type { AuthStrategy } from './auth'\nimport { ApiError } from './errors'\nimport { createClient, createConfig } from './generated/client'\nimport { client as specDefaultClient } from './generated/client.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}\n\ntype Dispatch = (options?: Record<string, unknown>) => unknown\n\n// The generated client leaks per-call options — including the `client`\n// selector — into the Request init, which throws on Deno and Bun (they\n// reserve the `client` init key). Drop the key before dispatch.\n// TODO: remove once hey-api/hey-api#4177 is fixed and regenerated.\nfunction stripClientSelector(client: OmnaraClient): void {\n const strip =\n (dispatch: Dispatch): Dispatch =>\n (options) => {\n if (options == null || !('client' in options)) return dispatch(options)\n const rest = { ...options }\n delete rest.client\n return dispatch(rest)\n }\n const methods = [\n 'connect',\n 'delete',\n 'get',\n 'head',\n 'options',\n 'patch',\n 'post',\n 'put',\n 'request',\n 'trace',\n ] as const\n const wrap = (target: object) => {\n const dispatches = target as Partial<Record<(typeof methods)[number], Dispatch>>\n for (const method of methods) dispatches[method] &&= strip(dispatches[method])\n }\n wrap(client)\n wrap(client.sse)\n}\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 })\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 stripClientSelector(client)\n return client\n}\n","import * as z from 'zod'\n\nimport { ApiError } from './errors'\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})\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: Record<DeviceAuthFailureCode, string> = {\n access_denied: 'the login request was denied',\n expired_token: 'the login request expired before it was approved',\n}\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: Record<string, string>,\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: new URLSearchParams(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: Record<string, string> = { client_id: options.clientId }\n if (options.tokenName !== undefined) body.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(fetchImpl, options.tokenEndpoint, {\n grant_type: OAUTH_DEVICE_GRANT_TYPE,\n device_code: options.deviceCode,\n client_id: options.clientId,\n })\n if (response.status === 200) {\n return zDeviceAuthApprovedResponse.parse(await response.json()).access_token\n }\n if (response.status === 400) {\n const failure = zDeviceAuthErrorResponse.safeParse(\n await response\n .clone()\n .json()\n .catch((): unknown => undefined),\n )\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"],"mappings":";;;;;;;;;;;;;;;;;AAQO,IAAM,wBAAN,cAAoC,MAAM;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EAET,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,GAMG;AACD,UAAM,SAAS,EAAE,MAAM,CAAC;AACxB,SAAK,OAAO;AACZ,SAAK,OAAO;AACZ,SAAK,YAAY;AACjB,SAAK,SAAS;AAAA,EAChB;AACF;AAcA,IAAM,qBAAqB;AAE3B,SAAS,oBAAoB,OAAgB,QAA6C;AACxF,MAAI,iBAAiB,sBAAuB,QAAO;AACnD,MAAI,QAAQ,YAAY,QAAS,iBAAiB,SAAS,MAAM,SAAS,cAAe;AACvF,WAAO,IAAI,sBAAsB;AAAA,MAC/B,MAAM;AAAA,MACN,SAAS;AAAA,MACT,WAAW;AAAA,MACX,OAAO;AAAA,IACT,CAAC;AAAA,EACH;AACA,QAAM,QAAQ,iBAAiB,QAAQ,mBAA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