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