@agents24/node 0.5.24 → 0.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/compatibility.json +5 -5
- package/dist/bff.d.cts +1 -1
- package/dist/bff.d.ts +1 -1
- package/dist/{client-DMkQFCYV.d.cts → client-yYT9UnqF.d.cts} +200 -1
- package/dist/{client-DMkQFCYV.d.ts → client-yYT9UnqF.d.ts} +200 -1
- package/dist/index.cjs +162 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +162 -2
- package/dist/index.js.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +180 -0
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/generated/ingestionJobs.d.ts +7 -1
- package/dist/types/generated/ingestionJobs.d.ts.map +1 -1
- package/dist/types/generated/knowledgeStores.d.ts +14 -1
- package/dist/types/generated/knowledgeStores.d.ts.map +1 -1
- package/dist/types/generated/manifest.d.ts +1 -1
- package/dist/types/generated/manifest.d.ts.map +1 -1
- package/dist/types/generated/resourceInstallations.d.ts.map +1 -1
- package/dist/types/knowledge-record-helpers.d.ts +12 -0
- package/dist/types/knowledge-record-helpers.d.ts.map +1 -0
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ContentChunk, L as ContentSegment, M as ControlPlaneAgentRunRequest, N as ControlPlaneRunEventsResponse, O as ConversationRunRequest, P as ConversationRunResult, Q as ConversationRuntimeSelectionRequest, R as ConversationRuntimeSelectionResult, S as ConversationThreadOptions, T as CreateBackendClientSessionRequest, U as CreateClientDeploymentRequest, V as CustomerIdentityRequest, W as CustomerPrincipalRefRequest, X as CustomerProfile, Y as CustomerProfileList, Z as CustomerProfilePatch, _ as CustomerProfileSearchOptions, $ as CustomerResourcePolicyAssignment, a0 as DelegationAction, a1 as DelegationActionReceipt, a2 as DelegationActionRequest, a3 as DelegationEvents, a4 as DelegationHistory, a5 as DelegationHistoryTurn, a6 as DelegationStatus, a7 as DelegationTask, a8 as DelegationTaskList, a9 as EffectiveCustomerResourcePolicyRequest, aa as EffectiveResourcePolicy, ab as EmbedAgentAliasResolution, ac as EmbedAttachmentContentAccessRequest, ad as EmbedCustomerPrincipalResolveRequest, ae as EmbedCustomerPrincipalResolveResponse, af as EmbedDelegationOptions, ag as EmbedResourcePolicyRequest, ah as EmbedRunCancelOptions, ai as EmbedRunStartRequest, aj as EmbedRuntimeBootstrap, ak as EmbedStreamRequest, al as EmbedThreadMessageEdit, am as EmbedThreadMessageScope, an as EmbedThreadMessageSubmit, ao as EmbeddedResponseFeedbackInput, ap as EvidenceLocation, aq as FailureCategory, ar as FailureView, as as FeedbackRating, at as FeedbackReason, au as FileAssetReference, av as GraphBuilder, aw as GraphDefinition, ax as GraphEdge, ay as GraphHints, az as GraphNode, aA as GraphValueRef, aB as HitlAction, aC as HitlAnswer, aD as HostedArtifactDraft, aE as HostedArtifactsNamespace, aF as IndexedCleanupAck, aG as IndexedContent, aH as IndexedContentListOptions, aI as IndexedContentPage, aJ as IngestionBatch, aK as IngestionBatchListOptions, aL as IngestionBatchPage, aM as IngestionJob, aN as IngestionJobAcknowledgment, aO as IngestionJobGetOptions, aP as IngestionJobListOptions, aQ as IngestionJobPage, aR as IngestionJobStart, aS as
|
|
1
|
+
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ContentChunk, L as ContentSegment, M as ControlPlaneAgentRunRequest, N as ControlPlaneRunEventsResponse, O as ConversationRunRequest, P as ConversationRunResult, Q as ConversationRuntimeSelectionRequest, R as ConversationRuntimeSelectionResult, S as ConversationThreadOptions, T as CreateBackendClientSessionRequest, U as CreateClientDeploymentRequest, V as CustomerIdentityRequest, W as CustomerPrincipalRefRequest, X as CustomerProfile, Y as CustomerProfileList, Z as CustomerProfilePatch, _ as CustomerProfileSearchOptions, $ as CustomerResourcePolicyAssignment, a0 as DelegationAction, a1 as DelegationActionReceipt, a2 as DelegationActionRequest, a3 as DelegationEvents, a4 as DelegationHistory, a5 as DelegationHistoryTurn, a6 as DelegationStatus, a7 as DelegationTask, a8 as DelegationTaskList, a9 as EffectiveCustomerResourcePolicyRequest, aa as EffectiveResourcePolicy, ab as EmbedAgentAliasResolution, ac as EmbedAttachmentContentAccessRequest, ad as EmbedCustomerPrincipalResolveRequest, ae as EmbedCustomerPrincipalResolveResponse, af as EmbedDelegationOptions, ag as EmbedResourcePolicyRequest, ah as EmbedRunCancelOptions, ai as EmbedRunStartRequest, aj as EmbedRuntimeBootstrap, ak as EmbedStreamRequest, al as EmbedThreadMessageEdit, am as EmbedThreadMessageScope, an as EmbedThreadMessageSubmit, ao as EmbeddedResponseFeedbackInput, ap as EvidenceLocation, aq as FailureCategory, ar as FailureView, as as FeedbackRating, at as FeedbackReason, au as FileAssetReference, av as GraphBuilder, aw as GraphDefinition, ax as GraphEdge, ay as GraphHints, az as GraphNode, aA as GraphValueRef, aB as HitlAction, aC as HitlAnswer, aD as HostedArtifactDraft, aE as HostedArtifactsNamespace, aF as IndexedCleanupAck, aG as IndexedContent, aH as IndexedContentListOptions, aI as IndexedContentPage, aJ as IngestionBatch, aK as IngestionBatchListOptions, aL as IngestionBatchPage, aM as IngestionJob, aN as IngestionJobAcknowledgment, aO as IngestionJobGetOptions, aP as IngestionJobListOptions, aQ as IngestionJobPage, aR as IngestionJobStart, aS as JobFieldData, aT as JobPayloadDownload, aU as JobResult, aV as JobStep, aW as JobStepData, aX as JobStepDataOptions, aY as JobStepDownloadOptions, aZ as JobStepFieldOptions, a_ as JobSteps, a$ as KnowledgeStore, b0 as KnowledgeStoreChunking, b1 as KnowledgeStoreCreate, b2 as KnowledgeStoreListOptions, b3 as KnowledgeStoreNamespace, b4 as KnowledgeStorePage, b5 as KnowledgeStoreStats, b6 as KnowledgeStoreUpdate, b7 as LatestOrPinnedPolicy, b8 as McpAuthStartRequest, b9 as McpAuthStartResult, ba as ModelCapabilitiesV1, bb as ModelRequirements, bc as MultiAgentThreadListRequest, bd as MultiAgentThreadSummaryEventOptions, be as NamespaceDataStats, bf as NamespaceInput, bg as NamespaceListOptions, bh as NamespacePage, bi as NamespaceSummary, bj as NativePlatform, bk as NodeAuthoringSpec, bl as NodeCatalogItem, bm as NodeCatalogResponse, bn as NodeSchemaResponse, bo as PipelineInputField, bp as PipelineInputSchema, bq as PipelineInputStep, br as PipelineInputUpload, bs as PipelineListOptions, bt as PipelinePage, bu as PipelineSummary, bv as PortableResourceKind, bw as ProcessedContent, bx as ProcessedContentOptions, by as ProcessedContentReference, bz as ProcessingInput, bA as ProcessingInputSource, bB as PublishedExecutable, bC as RagRetention, bD as RawVectorMatch, bE as RawVectorRecord, bF as RecordBatchResult, bG as RecordCapabilities, bH as RecordDeleteRequest, bI as RecordFetchRequest, bJ as RecordFetchResult, bK as RecordListRequest, bL as RecordMutationAck, bM as RecordPage, bN as RecordQueryRequest, bO as RecordQueryResult, bP as RecordUpdateRequest, bQ as RecordUpsertRequest, bR as RequestOptions, bS as ResetResourcePolicyQuotaRequest, bT as ResourceCallableBinding, bU as ResourceCallableBindingStatus, bV as ResourceCandidateList, bW as ResourceInstallation, bX as ResourceInstallationApplication, bY as ResourceInstallationApplyRequest, bZ as ResourceInstallationBinding, b_ as ResourceInstallationCreateRequest, b$ as ResourceInstallationDeploymentRequest, c0 as ResourceInstallationLinkRequest, c1 as ResourceInstallationList, c2 as ResourceInstallationOperation, c3 as ResourceInstallationPlan, c4 as ResourceInstallationPlanUpload, c5 as ResourceInstallationPublication, c6 as ResourceInstallationPublishRequest, c7 as ResourceInstallationPullAcceptRequest, c8 as ResourceInstallationPullChange, c9 as ResourceInstallationPullPayload, ca as ResourceInstallationPullPlan, cb as ResourceInstallationResourceListOptions, cc as ResourceInstallationSecretStatus, cd as ResourceInstallationSecretsRequest, ce as ResourcePackageArchive, cf as ResourcePackageCandidateOptions, cg as ResourcePackageDependency, ch as ResourcePackageDiagnostic, ci as ResourcePackageExportPlan, cj as ResourcePackageExportRequest, ck as ResourcePackageImportPreview, cl as ResourcePackageImportResult, cm as ResourcePackageImportUpload, cn as ResourcePackageUpload, co as ResourcePackageValidationResult, cp as ResourcePolicyList, cq as ResourcePolicyQuotaSchedule, cr as ResourcePolicyQuotaScheduleResult, cs as ResourcePolicySubjectRef, ct as ResourcePolicySummary, cu as ResourceSelector, cv as ResourceToolExport, cw as ResponseFeedback, cx as ResponseFeedbackResult, cy as ResumeRunRequest, cz as RetrievalEvidence, cA as RunCancelOptions, cB as RunContextOptions, cC as RunStatus, cD as RunTrace, cE as ServerAttachmentUploadOptions, cF as ServerEmbedAttachmentUploadOptions, cG as SetCustomerResourcePolicyAssignmentRequest, cH as SetResourcePolicyQuotaScheduleRequest, cI as SourceDescriptor, cJ as SourceOutcome, cK as StartRunResult, cL as StateVariableDefinition, cM as StreamRequestOptions, cN as StreamResult, cO as ThreadComputerContentAccess, cP as ThreadComputerFile, cQ as ThreadComputerFileOptions, cR as ThreadComputerFileText, cS as ThreadComputerFiles, cT as ThreadComputerStatus, cU as ThreadDeleteOptions, cV as ThreadDetailOptions, cW as ThreadListOptions, cX as ThreadSummaryEventOptions, cY as TraceContent, cZ as TraceError, c_ as TraceSpan, c$ as TraceSpanKind, d0 as TraceSpanStatus, d1 as TraceView, d2 as UpdateClientDeploymentRequest, d3 as UploadPart, d4 as UploadPartAck, d5 as UploadSession, d6 as UploadSessionStart, d7 as WorkflowInputDefinition } from './client-yYT9UnqF.cjs';
|
|
2
2
|
export { ActiveThreadRun, Attachment, AttachmentContentAccess, AttachmentUploadResult, CONTRACT_HASH, ContextCompression, ContextWindow, ContextWindowConfidence, ContextWindowSource, ContextWindowStage, ContextWindowTracker, JsonScalar, JsonValue, ModelTurnEventName, ModelTurnKind, ModelTurnOutcome, ModelTurnPayload, ModelTurnRuntimeEvent, ModelTurnStatus, ProtocolErrorCategory, PublicResponseBlock, RUNTIME_PROTOCOL_VERSION, PublicResponseBlock as ResponseBlock, RunCancelResult, RunContext, RunResumeResult, RuntimeEvent, THREAD_SUMMARY_PROTOCOL_VERSION, ThreadDeleteResult, ThreadDetail, ThreadMessage, ThreadMessageSubmission, ThreadMessagesPage, ThreadSummary, ThreadSummaryEvent, ThreadTurn, ThreadsResponse, ToolInputOverrides, compressionFromContextWindow, createContextWindowTracker, mergeContextWindow, mergeContextWindowUpdate, normalizeContextCompression, normalizeContextWindow, parseRuntimeEvent, parseRuntimeSsePayload, parseThreadSummarySsePayload, validateResponseBlock, validateRuntimeEvent, validateThreadSummaryEvent } from '@agents24/client/protocol';
|
|
3
3
|
|
|
4
|
-
declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.thread_messages.edit", "agents.thread_messages.list", "agents.thread_messages.remove", "agents.thread_messages.resume_queue", "agents.thread_messages.submit", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.computer.create_content_access", "client.threads.computer.get", "client.threads.computer.list", "client.threads.computer.read", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "client.threads.messages.edit", "client.threads.messages.list", "client.threads.messages.remove", "client.threads.messages.submit", "client.threads.queue.resume", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "delegations.act", "delegations.events", "delegations.history", "delegations.inspect", "delegations.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_agent_computer_content_access", "embed.create_attachment_content_access", "embed.create_conversation_computer_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_computer", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_computer", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_computer_files", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.list_conversation_computer_files", "embed.read_agent_computer_file", "embed.read_conversation_computer_file", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.thread_messages.edit", "embed.thread_messages.list", "embed.thread_messages.remove", "embed.thread_messages.resume_queue", "embed.thread_messages.submit", "embed.upload_agent_attachments", "embed_delegations.act", "embed_delegations.events", "embed_delegations.history", "embed_delegations.inspect", "embed_delegations.list", "ingestionJobs.abort_upload", "ingestionJobs.cancel", "ingestionJobs.complete_upload", "ingestionJobs.create_upload", "ingestionJobs.get", "ingestionJobs.get_upload", "ingestionJobs.list", "ingestionJobs.list_batches", "ingestionJobs.put_upload_part", "ingestionJobs.resume", "ingestionJobs.start", "ingestionJobs.upload_input", "instructions.publish", "knowledgeStores.archive", "knowledgeStores.cancel_cleanup_job", "knowledgeStores.create", "knowledgeStores.delete_indexed_content", "knowledgeStores.get", "knowledgeStores.get_cleanup_job", "knowledgeStores.get_indexed_content", "knowledgeStores.list", "knowledgeStores.list_indexed_content", "knowledgeStores.resume_cleanup_job", "knowledgeStores.stats", "knowledgeStores.update", "pipelines.get", "pipelines.get_input_schema", "pipelines.get_published_executable", "pipelines.list", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
|
4
|
+
declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.thread_messages.edit", "agents.thread_messages.list", "agents.thread_messages.remove", "agents.thread_messages.resume_queue", "agents.thread_messages.submit", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.computer.create_content_access", "client.threads.computer.get", "client.threads.computer.list", "client.threads.computer.read", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "client.threads.messages.edit", "client.threads.messages.list", "client.threads.messages.remove", "client.threads.messages.submit", "client.threads.queue.resume", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "delegations.act", "delegations.events", "delegations.history", "delegations.inspect", "delegations.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_agent_computer_content_access", "embed.create_attachment_content_access", "embed.create_conversation_computer_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_computer", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_computer", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_computer_files", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.list_conversation_computer_files", "embed.read_agent_computer_file", "embed.read_conversation_computer_file", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.thread_messages.edit", "embed.thread_messages.list", "embed.thread_messages.remove", "embed.thread_messages.resume_queue", "embed.thread_messages.submit", "embed.upload_agent_attachments", "embed_delegations.act", "embed_delegations.events", "embed_delegations.history", "embed_delegations.inspect", "embed_delegations.list", "ingestionJobs.abort_upload", "ingestionJobs.cancel", "ingestionJobs.complete_upload", "ingestionJobs.create_upload", "ingestionJobs.download_step_data", "ingestionJobs.get", "ingestionJobs.get_processed_content", "ingestionJobs.get_result", "ingestionJobs.get_step_data", "ingestionJobs.get_step_field", "ingestionJobs.get_upload", "ingestionJobs.list", "ingestionJobs.list_batches", "ingestionJobs.list_steps", "ingestionJobs.put_upload_part", "ingestionJobs.resume", "ingestionJobs.start", "ingestionJobs.upload_input", "instructions.publish", "knowledgeStores.archive", "knowledgeStores.cancel_cleanup_job", "knowledgeStores.create", "knowledgeStores.delete_indexed_content", "knowledgeStores.delete_records", "knowledgeStores.fetch_records", "knowledgeStores.get", "knowledgeStores.get_cleanup_job", "knowledgeStores.get_indexed_content", "knowledgeStores.list", "knowledgeStores.list_indexed_content", "knowledgeStores.list_namespaces", "knowledgeStores.list_records", "knowledgeStores.namespace_stats", "knowledgeStores.query_records", "knowledgeStores.resume_cleanup_job", "knowledgeStores.stats", "knowledgeStores.update", "knowledgeStores.update_record", "knowledgeStores.upsert_records", "pipelines.get", "pipelines.get_input_schema", "pipelines.get_published_executable", "pipelines.list", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
|
5
5
|
type SDKOperationId = (typeof SDK_OPERATION_IDS)[number];
|
|
6
6
|
|
|
7
7
|
export { type SDKOperationId, SDK_OPERATION_IDS };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ContentChunk, L as ContentSegment, M as ControlPlaneAgentRunRequest, N as ControlPlaneRunEventsResponse, O as ConversationRunRequest, P as ConversationRunResult, Q as ConversationRuntimeSelectionRequest, R as ConversationRuntimeSelectionResult, S as ConversationThreadOptions, T as CreateBackendClientSessionRequest, U as CreateClientDeploymentRequest, V as CustomerIdentityRequest, W as CustomerPrincipalRefRequest, X as CustomerProfile, Y as CustomerProfileList, Z as CustomerProfilePatch, _ as CustomerProfileSearchOptions, $ as CustomerResourcePolicyAssignment, a0 as DelegationAction, a1 as DelegationActionReceipt, a2 as DelegationActionRequest, a3 as DelegationEvents, a4 as DelegationHistory, a5 as DelegationHistoryTurn, a6 as DelegationStatus, a7 as DelegationTask, a8 as DelegationTaskList, a9 as EffectiveCustomerResourcePolicyRequest, aa as EffectiveResourcePolicy, ab as EmbedAgentAliasResolution, ac as EmbedAttachmentContentAccessRequest, ad as EmbedCustomerPrincipalResolveRequest, ae as EmbedCustomerPrincipalResolveResponse, af as EmbedDelegationOptions, ag as EmbedResourcePolicyRequest, ah as EmbedRunCancelOptions, ai as EmbedRunStartRequest, aj as EmbedRuntimeBootstrap, ak as EmbedStreamRequest, al as EmbedThreadMessageEdit, am as EmbedThreadMessageScope, an as EmbedThreadMessageSubmit, ao as EmbeddedResponseFeedbackInput, ap as EvidenceLocation, aq as FailureCategory, ar as FailureView, as as FeedbackRating, at as FeedbackReason, au as FileAssetReference, av as GraphBuilder, aw as GraphDefinition, ax as GraphEdge, ay as GraphHints, az as GraphNode, aA as GraphValueRef, aB as HitlAction, aC as HitlAnswer, aD as HostedArtifactDraft, aE as HostedArtifactsNamespace, aF as IndexedCleanupAck, aG as IndexedContent, aH as IndexedContentListOptions, aI as IndexedContentPage, aJ as IngestionBatch, aK as IngestionBatchListOptions, aL as IngestionBatchPage, aM as IngestionJob, aN as IngestionJobAcknowledgment, aO as IngestionJobGetOptions, aP as IngestionJobListOptions, aQ as IngestionJobPage, aR as IngestionJobStart, aS as
|
|
1
|
+
export { a as AgentCreateRequest, b as AgentDefinitionBuilder, c as AgentDefinitionOptions, d as AgentListResponse, e as AgentRef, f as AgentResponse, g as AgentStreamRequest, h as AgentSummary, i as AgentToolsetAttachment, j as AgentUpdateRequest, k as AgentValidationIssue, l as AgentValidationResult, A as Agents24, m as Agents24NodeError, n as Agents24NodeErrorKind, o as Agents24NodeOptions, p as Agents24Options, m as Agents24SDKError, q as Agents24SDKErrorKind, r as Agents24SDKSerializedError, s as ArtifactDevelopmentSession, t as ArtifactDevelopmentSessionAdmission, u as ArtifactDevelopmentSessionPrepareRequest, v as AttachRunRequest, w as AttachmentContentAccessRequest, B as BackendSessionRequestOptions, x as BranchingHint, C as ClearCustomerResourcePolicyAssignmentResult, y as ClientAuthMode, z as ClientDeployment, D as ClientDeploymentListQuery, E as ClientDeploymentListResponse, F as ClientNativeProfile, G as ClientRuntimeNativeProfileInput, H as ClientRuntimeOidcConfig, I as ClientRuntimePolicyInput, J as ClientSessionCredentials, K as ContentChunk, L as ContentSegment, M as ControlPlaneAgentRunRequest, N as ControlPlaneRunEventsResponse, O as ConversationRunRequest, P as ConversationRunResult, Q as ConversationRuntimeSelectionRequest, R as ConversationRuntimeSelectionResult, S as ConversationThreadOptions, T as CreateBackendClientSessionRequest, U as CreateClientDeploymentRequest, V as CustomerIdentityRequest, W as CustomerPrincipalRefRequest, X as CustomerProfile, Y as CustomerProfileList, Z as CustomerProfilePatch, _ as CustomerProfileSearchOptions, $ as CustomerResourcePolicyAssignment, a0 as DelegationAction, a1 as DelegationActionReceipt, a2 as DelegationActionRequest, a3 as DelegationEvents, a4 as DelegationHistory, a5 as DelegationHistoryTurn, a6 as DelegationStatus, a7 as DelegationTask, a8 as DelegationTaskList, a9 as EffectiveCustomerResourcePolicyRequest, aa as EffectiveResourcePolicy, ab as EmbedAgentAliasResolution, ac as EmbedAttachmentContentAccessRequest, ad as EmbedCustomerPrincipalResolveRequest, ae as EmbedCustomerPrincipalResolveResponse, af as EmbedDelegationOptions, ag as EmbedResourcePolicyRequest, ah as EmbedRunCancelOptions, ai as EmbedRunStartRequest, aj as EmbedRuntimeBootstrap, ak as EmbedStreamRequest, al as EmbedThreadMessageEdit, am as EmbedThreadMessageScope, an as EmbedThreadMessageSubmit, ao as EmbeddedResponseFeedbackInput, ap as EvidenceLocation, aq as FailureCategory, ar as FailureView, as as FeedbackRating, at as FeedbackReason, au as FileAssetReference, av as GraphBuilder, aw as GraphDefinition, ax as GraphEdge, ay as GraphHints, az as GraphNode, aA as GraphValueRef, aB as HitlAction, aC as HitlAnswer, aD as HostedArtifactDraft, aE as HostedArtifactsNamespace, aF as IndexedCleanupAck, aG as IndexedContent, aH as IndexedContentListOptions, aI as IndexedContentPage, aJ as IngestionBatch, aK as IngestionBatchListOptions, aL as IngestionBatchPage, aM as IngestionJob, aN as IngestionJobAcknowledgment, aO as IngestionJobGetOptions, aP as IngestionJobListOptions, aQ as IngestionJobPage, aR as IngestionJobStart, aS as JobFieldData, aT as JobPayloadDownload, aU as JobResult, aV as JobStep, aW as JobStepData, aX as JobStepDataOptions, aY as JobStepDownloadOptions, aZ as JobStepFieldOptions, a_ as JobSteps, a$ as KnowledgeStore, b0 as KnowledgeStoreChunking, b1 as KnowledgeStoreCreate, b2 as KnowledgeStoreListOptions, b3 as KnowledgeStoreNamespace, b4 as KnowledgeStorePage, b5 as KnowledgeStoreStats, b6 as KnowledgeStoreUpdate, b7 as LatestOrPinnedPolicy, b8 as McpAuthStartRequest, b9 as McpAuthStartResult, ba as ModelCapabilitiesV1, bb as ModelRequirements, bc as MultiAgentThreadListRequest, bd as MultiAgentThreadSummaryEventOptions, be as NamespaceDataStats, bf as NamespaceInput, bg as NamespaceListOptions, bh as NamespacePage, bi as NamespaceSummary, bj as NativePlatform, bk as NodeAuthoringSpec, bl as NodeCatalogItem, bm as NodeCatalogResponse, bn as NodeSchemaResponse, bo as PipelineInputField, bp as PipelineInputSchema, bq as PipelineInputStep, br as PipelineInputUpload, bs as PipelineListOptions, bt as PipelinePage, bu as PipelineSummary, bv as PortableResourceKind, bw as ProcessedContent, bx as ProcessedContentOptions, by as ProcessedContentReference, bz as ProcessingInput, bA as ProcessingInputSource, bB as PublishedExecutable, bC as RagRetention, bD as RawVectorMatch, bE as RawVectorRecord, bF as RecordBatchResult, bG as RecordCapabilities, bH as RecordDeleteRequest, bI as RecordFetchRequest, bJ as RecordFetchResult, bK as RecordListRequest, bL as RecordMutationAck, bM as RecordPage, bN as RecordQueryRequest, bO as RecordQueryResult, bP as RecordUpdateRequest, bQ as RecordUpsertRequest, bR as RequestOptions, bS as ResetResourcePolicyQuotaRequest, bT as ResourceCallableBinding, bU as ResourceCallableBindingStatus, bV as ResourceCandidateList, bW as ResourceInstallation, bX as ResourceInstallationApplication, bY as ResourceInstallationApplyRequest, bZ as ResourceInstallationBinding, b_ as ResourceInstallationCreateRequest, b$ as ResourceInstallationDeploymentRequest, c0 as ResourceInstallationLinkRequest, c1 as ResourceInstallationList, c2 as ResourceInstallationOperation, c3 as ResourceInstallationPlan, c4 as ResourceInstallationPlanUpload, c5 as ResourceInstallationPublication, c6 as ResourceInstallationPublishRequest, c7 as ResourceInstallationPullAcceptRequest, c8 as ResourceInstallationPullChange, c9 as ResourceInstallationPullPayload, ca as ResourceInstallationPullPlan, cb as ResourceInstallationResourceListOptions, cc as ResourceInstallationSecretStatus, cd as ResourceInstallationSecretsRequest, ce as ResourcePackageArchive, cf as ResourcePackageCandidateOptions, cg as ResourcePackageDependency, ch as ResourcePackageDiagnostic, ci as ResourcePackageExportPlan, cj as ResourcePackageExportRequest, ck as ResourcePackageImportPreview, cl as ResourcePackageImportResult, cm as ResourcePackageImportUpload, cn as ResourcePackageUpload, co as ResourcePackageValidationResult, cp as ResourcePolicyList, cq as ResourcePolicyQuotaSchedule, cr as ResourcePolicyQuotaScheduleResult, cs as ResourcePolicySubjectRef, ct as ResourcePolicySummary, cu as ResourceSelector, cv as ResourceToolExport, cw as ResponseFeedback, cx as ResponseFeedbackResult, cy as ResumeRunRequest, cz as RetrievalEvidence, cA as RunCancelOptions, cB as RunContextOptions, cC as RunStatus, cD as RunTrace, cE as ServerAttachmentUploadOptions, cF as ServerEmbedAttachmentUploadOptions, cG as SetCustomerResourcePolicyAssignmentRequest, cH as SetResourcePolicyQuotaScheduleRequest, cI as SourceDescriptor, cJ as SourceOutcome, cK as StartRunResult, cL as StateVariableDefinition, cM as StreamRequestOptions, cN as StreamResult, cO as ThreadComputerContentAccess, cP as ThreadComputerFile, cQ as ThreadComputerFileOptions, cR as ThreadComputerFileText, cS as ThreadComputerFiles, cT as ThreadComputerStatus, cU as ThreadDeleteOptions, cV as ThreadDetailOptions, cW as ThreadListOptions, cX as ThreadSummaryEventOptions, cY as TraceContent, cZ as TraceError, c_ as TraceSpan, c$ as TraceSpanKind, d0 as TraceSpanStatus, d1 as TraceView, d2 as UpdateClientDeploymentRequest, d3 as UploadPart, d4 as UploadPartAck, d5 as UploadSession, d6 as UploadSessionStart, d7 as WorkflowInputDefinition } from './client-yYT9UnqF.js';
|
|
2
2
|
export { ActiveThreadRun, Attachment, AttachmentContentAccess, AttachmentUploadResult, CONTRACT_HASH, ContextCompression, ContextWindow, ContextWindowConfidence, ContextWindowSource, ContextWindowStage, ContextWindowTracker, JsonScalar, JsonValue, ModelTurnEventName, ModelTurnKind, ModelTurnOutcome, ModelTurnPayload, ModelTurnRuntimeEvent, ModelTurnStatus, ProtocolErrorCategory, PublicResponseBlock, RUNTIME_PROTOCOL_VERSION, PublicResponseBlock as ResponseBlock, RunCancelResult, RunContext, RunResumeResult, RuntimeEvent, THREAD_SUMMARY_PROTOCOL_VERSION, ThreadDeleteResult, ThreadDetail, ThreadMessage, ThreadMessageSubmission, ThreadMessagesPage, ThreadSummary, ThreadSummaryEvent, ThreadTurn, ThreadsResponse, ToolInputOverrides, compressionFromContextWindow, createContextWindowTracker, mergeContextWindow, mergeContextWindowUpdate, normalizeContextCompression, normalizeContextWindow, parseRuntimeEvent, parseRuntimeSsePayload, parseThreadSummarySsePayload, validateResponseBlock, validateRuntimeEvent, validateThreadSummaryEvent } from '@agents24/client/protocol';
|
|
3
3
|
|
|
4
|
-
declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.thread_messages.edit", "agents.thread_messages.list", "agents.thread_messages.remove", "agents.thread_messages.resume_queue", "agents.thread_messages.submit", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.computer.create_content_access", "client.threads.computer.get", "client.threads.computer.list", "client.threads.computer.read", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "client.threads.messages.edit", "client.threads.messages.list", "client.threads.messages.remove", "client.threads.messages.submit", "client.threads.queue.resume", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "delegations.act", "delegations.events", "delegations.history", "delegations.inspect", "delegations.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_agent_computer_content_access", "embed.create_attachment_content_access", "embed.create_conversation_computer_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_computer", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_computer", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_computer_files", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.list_conversation_computer_files", "embed.read_agent_computer_file", "embed.read_conversation_computer_file", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.thread_messages.edit", "embed.thread_messages.list", "embed.thread_messages.remove", "embed.thread_messages.resume_queue", "embed.thread_messages.submit", "embed.upload_agent_attachments", "embed_delegations.act", "embed_delegations.events", "embed_delegations.history", "embed_delegations.inspect", "embed_delegations.list", "ingestionJobs.abort_upload", "ingestionJobs.cancel", "ingestionJobs.complete_upload", "ingestionJobs.create_upload", "ingestionJobs.get", "ingestionJobs.get_upload", "ingestionJobs.list", "ingestionJobs.list_batches", "ingestionJobs.put_upload_part", "ingestionJobs.resume", "ingestionJobs.start", "ingestionJobs.upload_input", "instructions.publish", "knowledgeStores.archive", "knowledgeStores.cancel_cleanup_job", "knowledgeStores.create", "knowledgeStores.delete_indexed_content", "knowledgeStores.get", "knowledgeStores.get_cleanup_job", "knowledgeStores.get_indexed_content", "knowledgeStores.list", "knowledgeStores.list_indexed_content", "knowledgeStores.resume_cleanup_job", "knowledgeStores.stats", "knowledgeStores.update", "pipelines.get", "pipelines.get_input_schema", "pipelines.get_published_executable", "pipelines.list", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
|
4
|
+
declare const SDK_OPERATION_IDS: readonly ["agents.cancel_run", "agents.catalog", "agents.create", "agents.create_attachment_content_access", "agents.delete", "agents.get", "agents.list", "agents.publish", "agents.resume_run", "agents.schema", "agents.start_run", "agents.stream", "agents.thread_messages.edit", "agents.thread_messages.list", "agents.thread_messages.remove", "agents.thread_messages.resume_queue", "agents.thread_messages.submit", "agents.update", "agents.update_graph", "agents.upload_attachments", "agents.validate", "client.attachments.create_content_access", "client.attachments.upload", "client.bootstrap", "client.chat.stream", "client.deployments.create", "client.deployments.delete", "client.deployments.get", "client.deployments.list", "client.deployments.update", "client.hitl.resume", "client.jwks", "client.mcp.redeem", "client.mcp.start", "client.resource_policy", "client.runs.attach", "client.runs.cancel", "client.runs.set_feedback", "client.sessions.anonymous", "client.sessions.backendExchange", "client.sessions.refresh", "client.sessions.revoke", "client.threads.computer.create_content_access", "client.threads.computer.get", "client.threads.computer.list", "client.threads.computer.read", "client.threads.delete", "client.threads.events", "client.threads.get", "client.threads.list", "client.threads.messages.edit", "client.threads.messages.list", "client.threads.messages.remove", "client.threads.messages.submit", "client.threads.queue.resume", "customer_profiles.clear", "customer_profiles.get", "customer_profiles.search", "customer_profiles.upsert", "delegations.act", "delegations.events", "delegations.history", "delegations.inspect", "delegations.list", "embed.attach_agent_run", "embed.cancel_agent_run", "embed.create_agent_computer_content_access", "embed.create_attachment_content_access", "embed.create_conversation_computer_content_access", "embed.delete_agent_thread", "embed.delete_conversation_thread", "embed.get_agent_computer", "embed.get_agent_run_context", "embed.get_agent_thread", "embed.get_conversation_computer", "embed.get_conversation_thread", "embed.get_resource_policy", "embed.get_runtime_bootstrap", "embed.list_agent_computer_files", "embed.list_agent_threads", "embed.list_agent_threads_multi", "embed.list_conversation_computer_files", "embed.read_agent_computer_file", "embed.read_conversation_computer_file", "embed.resolve_agent_alias", "embed.resolve_conversation_run", "embed.resolve_customer_principal", "embed.resume_agent_run", "embed.set_agent_run_feedback", "embed.set_conversation_runtime_selection", "embed.start_agent_run", "embed.start_agent_run_mcp_auth", "embed.stream_agent", "embed.stream_agent_thread_events", "embed.stream_agent_thread_events_multi", "embed.thread_messages.edit", "embed.thread_messages.list", "embed.thread_messages.remove", "embed.thread_messages.resume_queue", "embed.thread_messages.submit", "embed.upload_agent_attachments", "embed_delegations.act", "embed_delegations.events", "embed_delegations.history", "embed_delegations.inspect", "embed_delegations.list", "ingestionJobs.abort_upload", "ingestionJobs.cancel", "ingestionJobs.complete_upload", "ingestionJobs.create_upload", "ingestionJobs.download_step_data", "ingestionJobs.get", "ingestionJobs.get_processed_content", "ingestionJobs.get_result", "ingestionJobs.get_step_data", "ingestionJobs.get_step_field", "ingestionJobs.get_upload", "ingestionJobs.list", "ingestionJobs.list_batches", "ingestionJobs.list_steps", "ingestionJobs.put_upload_part", "ingestionJobs.resume", "ingestionJobs.start", "ingestionJobs.upload_input", "instructions.publish", "knowledgeStores.archive", "knowledgeStores.cancel_cleanup_job", "knowledgeStores.create", "knowledgeStores.delete_indexed_content", "knowledgeStores.delete_records", "knowledgeStores.fetch_records", "knowledgeStores.get", "knowledgeStores.get_cleanup_job", "knowledgeStores.get_indexed_content", "knowledgeStores.list", "knowledgeStores.list_indexed_content", "knowledgeStores.list_namespaces", "knowledgeStores.list_records", "knowledgeStores.namespace_stats", "knowledgeStores.query_records", "knowledgeStores.resume_cleanup_job", "knowledgeStores.stats", "knowledgeStores.update", "knowledgeStores.update_record", "knowledgeStores.upsert_records", "pipelines.get", "pipelines.get_input_schema", "pipelines.get_published_executable", "pipelines.list", "resource_installations.accept_pull", "resource_installations.apply", "resource_installations.bind_deployment", "resource_installations.configure_secrets", "resource_installations.create", "resource_installations.development_session_status", "resource_installations.download_pull", "resource_installations.get", "resource_installations.get_by_package_id", "resource_installations.link", "resource_installations.list", "resource_installations.operation_status", "resource_installations.plan", "resource_installations.plan_pull", "resource_installations.prepare_development_session", "resource_installations.publish", "resource_installations.resources", "resource_installations.revoke_development_session", "resource_packages.candidates", "resource_packages.export", "resource_packages.export_plan", "resource_packages.exportability", "resource_packages.import", "resource_packages.import_preview", "resource_packages.validate", "resource_policies.clear_customer_assignment", "resource_policies.get_customer_assignment", "resource_policies.get_effective_customer_policy", "resource_policies.list", "resource_policies.reset_quota_now", "resource_policies.set_customer_assignment", "resource_policies.set_quota_schedule", "runs.get", "runs.get_context", "runs.get_events", "runs.get_trace", "runs.get_tree"];
|
|
5
5
|
type SDKOperationId = (typeof SDK_OPERATION_IDS)[number];
|
|
6
6
|
|
|
7
7
|
export { type SDKOperationId, SDK_OPERATION_IDS };
|
package/dist/index.js
CHANGED
|
@@ -1157,8 +1157,7 @@ var ResourceInstallationsNamespace = class {
|
|
|
1157
1157
|
return this.http.requestJson(`/resource-installations/${encodeURIComponent(installationId)}/artifact-development-sessions`, {
|
|
1158
1158
|
method: "POST",
|
|
1159
1159
|
body: request,
|
|
1160
|
-
options
|
|
1161
|
-
mutation: true
|
|
1160
|
+
options
|
|
1162
1161
|
});
|
|
1163
1162
|
}
|
|
1164
1163
|
developmentSessionStatus(installationId, resourceKey) {
|
|
@@ -1531,8 +1530,99 @@ var IngestionJobsNamespace = class {
|
|
|
1531
1530
|
mutation: true
|
|
1532
1531
|
});
|
|
1533
1532
|
}
|
|
1533
|
+
listSteps(jobId) {
|
|
1534
|
+
return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/steps`);
|
|
1535
|
+
}
|
|
1536
|
+
getStepData(jobId, stepId, options) {
|
|
1537
|
+
return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/steps/${encodeURIComponent(stepId)}/data`, {
|
|
1538
|
+
query: {
|
|
1539
|
+
type: options.type,
|
|
1540
|
+
page: options.page,
|
|
1541
|
+
limit: options.limit,
|
|
1542
|
+
reference_id: options.reference_id
|
|
1543
|
+
}
|
|
1544
|
+
});
|
|
1545
|
+
}
|
|
1546
|
+
getStepField(jobId, stepId, options) {
|
|
1547
|
+
return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/steps/${encodeURIComponent(stepId)}/field`, {
|
|
1548
|
+
query: {
|
|
1549
|
+
type: options.type,
|
|
1550
|
+
path: options.path,
|
|
1551
|
+
offset: options.offset,
|
|
1552
|
+
limit: options.limit,
|
|
1553
|
+
reference_id: options.reference_id
|
|
1554
|
+
}
|
|
1555
|
+
});
|
|
1556
|
+
}
|
|
1557
|
+
downloadStepData(jobId, stepId, options) {
|
|
1558
|
+
return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/steps/${encodeURIComponent(stepId)}/download`, {
|
|
1559
|
+
query: {
|
|
1560
|
+
type: options.type,
|
|
1561
|
+
reference_id: options.reference_id
|
|
1562
|
+
}
|
|
1563
|
+
});
|
|
1564
|
+
}
|
|
1565
|
+
getResult(jobId) {
|
|
1566
|
+
return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/result`);
|
|
1567
|
+
}
|
|
1568
|
+
getProcessedContent(jobId, options) {
|
|
1569
|
+
return this.http.requestJson(`/admin/pipelines/jobs/${encodeURIComponent(jobId)}/processed-content`, {
|
|
1570
|
+
query: {
|
|
1571
|
+
reference: options.reference
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
}
|
|
1534
1575
|
};
|
|
1535
1576
|
|
|
1577
|
+
// src/knowledge-record-helpers.ts
|
|
1578
|
+
async function* recordPages(client, storeId, request) {
|
|
1579
|
+
let cursor = request.cursor;
|
|
1580
|
+
do {
|
|
1581
|
+
const page = await client.listRecords(storeId, { ...request, ...cursor ? { cursor } : {} });
|
|
1582
|
+
yield page;
|
|
1583
|
+
if (page.next_cursor && page.next_cursor === cursor) throw new Error("Record cursor did not advance");
|
|
1584
|
+
cursor = page.next_cursor;
|
|
1585
|
+
} while (cursor);
|
|
1586
|
+
}
|
|
1587
|
+
async function recordBatches(client, storeId, request, limits = {}) {
|
|
1588
|
+
const maxRecords = Math.min(limits.maxRecords ?? 100, 100);
|
|
1589
|
+
const maxBytes = Math.min(limits.maxBytes ?? 2 * 1024 * 1024, 2 * 1024 * 1024);
|
|
1590
|
+
if (!Number.isInteger(maxRecords) || maxRecords < 1 || !Number.isInteger(maxBytes) || maxBytes < 1) throw new Error("Invalid batching limits");
|
|
1591
|
+
if (!request.records.length) throw new Error("At least one record is required");
|
|
1592
|
+
if (new Set(request.records.map((record) => record.id)).size !== request.records.length) throw new Error("Duplicate record IDs");
|
|
1593
|
+
const batches = [];
|
|
1594
|
+
let records = [];
|
|
1595
|
+
const size = (items) => new TextEncoder().encode(JSON.stringify({ namespace: request.namespace, records: items })).byteLength;
|
|
1596
|
+
for (const record of request.records) {
|
|
1597
|
+
if (size([record]) > maxBytes) throw new Error("A record exceeds the request byte limit");
|
|
1598
|
+
if (records.length === maxRecords || size([...records, record]) > maxBytes) {
|
|
1599
|
+
batches.push({ namespace: request.namespace, records });
|
|
1600
|
+
records = [];
|
|
1601
|
+
}
|
|
1602
|
+
records.push(record);
|
|
1603
|
+
}
|
|
1604
|
+
if (records.length) batches.push({ namespace: request.namespace, records });
|
|
1605
|
+
const result = { acknowledged_ids: [], failed_ids: [], unknown_ids: [] };
|
|
1606
|
+
for (let index = 0; index < batches.length; index++) {
|
|
1607
|
+
const batch = batches[index];
|
|
1608
|
+
try {
|
|
1609
|
+
const receipt = await client.upsertRecords(storeId, batch);
|
|
1610
|
+
const ids = batch.records.map((record) => record.id);
|
|
1611
|
+
if (!receipt.acknowledged || !receipt.acknowledged_ids || receipt.acknowledged_ids.length !== ids.length || new Set(receipt.acknowledged_ids).size !== ids.length || ids.some((id) => !receipt.acknowledged_ids.includes(id))) {
|
|
1612
|
+
throw new Agents24SDKError("Incomplete record acknowledgement", { kind: "protocol" });
|
|
1613
|
+
}
|
|
1614
|
+
result.acknowledged_ids.push(...ids);
|
|
1615
|
+
} catch (error) {
|
|
1616
|
+
const rejected = error instanceof Agents24SDKError && error.kind === "http" && error.failure && (error.status ?? 500) < 500 && error.code !== "KNOWLEDGE_STORE_OPERATION_UNKNOWN";
|
|
1617
|
+
result[rejected ? "failed_ids" : "unknown_ids"].push(...batch.records.map((record) => record.id));
|
|
1618
|
+
result.failed_ids.push(...batches.slice(index + 1).flatMap((item) => item.records.map((record) => record.id)));
|
|
1619
|
+
if (error instanceof Agents24SDKError && error.failure) result.failure = error.failure;
|
|
1620
|
+
break;
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
return result;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1536
1626
|
// src/generated/knowledgeStores.ts
|
|
1537
1627
|
var KnowledgeStoresNamespace = class {
|
|
1538
1628
|
constructor(http) {
|
|
@@ -1609,6 +1699,62 @@ var KnowledgeStoresNamespace = class {
|
|
|
1609
1699
|
mutation: true
|
|
1610
1700
|
});
|
|
1611
1701
|
}
|
|
1702
|
+
upsertRecords(storeId, request) {
|
|
1703
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/upsert`, {
|
|
1704
|
+
method: "POST",
|
|
1705
|
+
body: request
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
fetchRecords(storeId, request) {
|
|
1709
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/fetch`, {
|
|
1710
|
+
method: "POST",
|
|
1711
|
+
body: request
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
listRecords(storeId, request) {
|
|
1715
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/list`, {
|
|
1716
|
+
method: "POST",
|
|
1717
|
+
body: request
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
queryRecords(storeId, request) {
|
|
1721
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/query`, {
|
|
1722
|
+
method: "POST",
|
|
1723
|
+
body: request
|
|
1724
|
+
});
|
|
1725
|
+
}
|
|
1726
|
+
updateRecord(storeId, request) {
|
|
1727
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/update`, {
|
|
1728
|
+
method: "POST",
|
|
1729
|
+
body: request
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1732
|
+
deleteRecords(storeId, request) {
|
|
1733
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/delete`, {
|
|
1734
|
+
method: "POST",
|
|
1735
|
+
body: request
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
listNamespaces(storeId, options = {}) {
|
|
1739
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/namespaces`, {
|
|
1740
|
+
query: {
|
|
1741
|
+
limit: options.limit ?? 100,
|
|
1742
|
+
cursor: options.cursor
|
|
1743
|
+
}
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1746
|
+
namespaceStats(storeId, request) {
|
|
1747
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/namespaces/stats`, {
|
|
1748
|
+
method: "POST",
|
|
1749
|
+
body: request
|
|
1750
|
+
});
|
|
1751
|
+
}
|
|
1752
|
+
listRecordPages(storeId, request) {
|
|
1753
|
+
return recordPages(this, storeId, request);
|
|
1754
|
+
}
|
|
1755
|
+
upsertRecordsBatched(storeId, request, limits = {}) {
|
|
1756
|
+
return recordBatches(this, storeId, request, limits);
|
|
1757
|
+
}
|
|
1612
1758
|
};
|
|
1613
1759
|
|
|
1614
1760
|
// src/generated/integration-namespaces.ts
|
|
@@ -1773,10 +1919,16 @@ var SDK_OPERATION_IDS = [
|
|
|
1773
1919
|
"ingestionJobs.cancel",
|
|
1774
1920
|
"ingestionJobs.complete_upload",
|
|
1775
1921
|
"ingestionJobs.create_upload",
|
|
1922
|
+
"ingestionJobs.download_step_data",
|
|
1776
1923
|
"ingestionJobs.get",
|
|
1924
|
+
"ingestionJobs.get_processed_content",
|
|
1925
|
+
"ingestionJobs.get_result",
|
|
1926
|
+
"ingestionJobs.get_step_data",
|
|
1927
|
+
"ingestionJobs.get_step_field",
|
|
1777
1928
|
"ingestionJobs.get_upload",
|
|
1778
1929
|
"ingestionJobs.list",
|
|
1779
1930
|
"ingestionJobs.list_batches",
|
|
1931
|
+
"ingestionJobs.list_steps",
|
|
1780
1932
|
"ingestionJobs.put_upload_part",
|
|
1781
1933
|
"ingestionJobs.resume",
|
|
1782
1934
|
"ingestionJobs.start",
|
|
@@ -1786,14 +1938,22 @@ var SDK_OPERATION_IDS = [
|
|
|
1786
1938
|
"knowledgeStores.cancel_cleanup_job",
|
|
1787
1939
|
"knowledgeStores.create",
|
|
1788
1940
|
"knowledgeStores.delete_indexed_content",
|
|
1941
|
+
"knowledgeStores.delete_records",
|
|
1942
|
+
"knowledgeStores.fetch_records",
|
|
1789
1943
|
"knowledgeStores.get",
|
|
1790
1944
|
"knowledgeStores.get_cleanup_job",
|
|
1791
1945
|
"knowledgeStores.get_indexed_content",
|
|
1792
1946
|
"knowledgeStores.list",
|
|
1793
1947
|
"knowledgeStores.list_indexed_content",
|
|
1948
|
+
"knowledgeStores.list_namespaces",
|
|
1949
|
+
"knowledgeStores.list_records",
|
|
1950
|
+
"knowledgeStores.namespace_stats",
|
|
1951
|
+
"knowledgeStores.query_records",
|
|
1794
1952
|
"knowledgeStores.resume_cleanup_job",
|
|
1795
1953
|
"knowledgeStores.stats",
|
|
1796
1954
|
"knowledgeStores.update",
|
|
1955
|
+
"knowledgeStores.update_record",
|
|
1956
|
+
"knowledgeStores.upsert_records",
|
|
1797
1957
|
"pipelines.get",
|
|
1798
1958
|
"pipelines.get_input_schema",
|
|
1799
1959
|
"pipelines.get_published_executable",
|