@agents24/node 0.5.25 → 0.5.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/README.md +18 -1
- package/compatibility.json +7 -7
- package/dist/bff.d.cts +1 -1
- package/dist/bff.d.ts +1 -1
- package/dist/{client-DMkQFCYV.d.cts → client-Dr0U2u5Q.d.cts} +230 -5
- package/dist/{client-DMkQFCYV.d.ts → client-Dr0U2u5Q.d.ts} +230 -5
- package/dist/index.cjs +171 -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 +171 -2
- package/dist/index.js.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +202 -1
- 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 +15 -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/model-capabilities.d.ts +4 -0
- package/dist/types/generated/model-capabilities.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/dist/types/types.d.ts +4 -4
- package/dist/types/types.d.ts.map +1 -1
- 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
|
|
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 IndexedRecordIdListOptions, aK as IndexedRecordIdPage, aL as IngestionBatch, aM as IngestionBatchListOptions, aN as IngestionBatchPage, aO as IngestionJob, aP as IngestionJobAcknowledgment, aQ as IngestionJobGetOptions, aR as IngestionJobListOptions, aS as IngestionJobPage, aT as IngestionJobStart, aU as JobFieldData, aV as JobPayloadDownload, aW as JobResult, aX as JobStep, aY as JobStepData, aZ as JobStepDataOptions, a_ as JobStepDownloadOptions, a$ as JobStepFieldOptions, b0 as JobSteps, b1 as KnowledgeStore, b2 as KnowledgeStoreChunking, b3 as KnowledgeStoreCreate, b4 as KnowledgeStoreListOptions, b5 as KnowledgeStoreNamespace, b6 as KnowledgeStorePage, b7 as KnowledgeStoreStats, b8 as KnowledgeStoreUpdate, b9 as LatestOrPinnedPolicy, ba as McpAuthStartRequest, bb as McpAuthStartResult, bc as ModelCapabilitiesV1, bd as ModelPricingDimension, be as ModelRequirements, bf as ModelRuntimeKind, bg as MultiAgentThreadListRequest, bh as MultiAgentThreadSummaryEventOptions, bi as NamespaceDataStats, bj as NamespaceInput, bk as NamespaceListOptions, bl as NamespacePage, bm as NamespaceSummary, bn as NativePlatform, bo as NodeAuthoringSpec, bp as NodeCatalogItem, bq as NodeCatalogResponse, br as NodeSchemaResponse, bs as OCROptions, bt as PayloadAvailability, bu as PipelineInputField, bv as PipelineInputSchema, bw as PipelineInputStep, bx as PipelineInputUpload, by as PipelineListOptions, bz as PipelinePage, bA as PipelineSummary, bB as PortableResourceKind, bC as ProcessedContent, bD as ProcessedContentOptions, bE as ProcessedContentReference, bF as ProcessingInput, bG as ProcessingInputSource, bH as PublishedExecutable, bI as RagRetention, bJ as RawVectorMatch, bK as RawVectorRecord, bL as RecordBatchResult, bM as RecordCapabilities, bN as RecordDeleteRequest, bO as RecordFetchRequest, bP as RecordFetchResult, bQ as RecordListRequest, bR as RecordMutationAck, bS as RecordPage, bT as RecordQueryRequest, bU as RecordQueryResult, bV as RecordUpdateRequest, bW as RecordUpsertRequest, bX as RequestOptions, bY as ResetResourcePolicyQuotaRequest, bZ as ResourceCallableBinding, b_ as ResourceCallableBindingStatus, b$ as ResourceCandidateList, c0 as ResourceInstallation, c1 as ResourceInstallationApplication, c2 as ResourceInstallationApplyRequest, c3 as ResourceInstallationBinding, c4 as ResourceInstallationCreateRequest, c5 as ResourceInstallationDeploymentRequest, c6 as ResourceInstallationLinkRequest, c7 as ResourceInstallationList, c8 as ResourceInstallationOperation, c9 as ResourceInstallationPlan, ca as ResourceInstallationPlanUpload, cb as ResourceInstallationPublication, cc as ResourceInstallationPublishRequest, cd as ResourceInstallationPullAcceptRequest, ce as ResourceInstallationPullChange, cf as ResourceInstallationPullPayload, cg as ResourceInstallationPullPlan, ch as ResourceInstallationResourceListOptions, ci as ResourceInstallationSecretStatus, cj as ResourceInstallationSecretsRequest, ck as ResourcePackageArchive, cl as ResourcePackageCandidateOptions, cm as ResourcePackageDependency, cn as ResourcePackageDiagnostic, co as ResourcePackageExportPlan, cp as ResourcePackageExportRequest, cq as ResourcePackageImportPreview, cr as ResourcePackageImportResult, cs as ResourcePackageImportUpload, ct as ResourcePackageUpload, cu as ResourcePackageValidationResult, cv as ResourcePolicyList, cw as ResourcePolicyQuotaSchedule, cx as ResourcePolicyQuotaScheduleResult, cy as ResourcePolicySubjectRef, cz as ResourcePolicySummary, cA as ResourceSelector, cB as ResourceToolExport, cC as ResponseFeedback, cD as ResponseFeedbackResult, cE as ResumeRunRequest, cF as RetrievalEvidence, cG as RunCancelOptions, cH as RunContextOptions, cI as RunStatus, cJ as RunTrace, cK as ServerAttachmentUploadOptions, cL as ServerEmbedAttachmentUploadOptions, cM as SetCustomerResourcePolicyAssignmentRequest, cN as SetResourcePolicyQuotaScheduleRequest, cO as SourceDescriptor, cP as SourceOutcome, cQ as StartRunResult, cR as StateVariableDefinition, cS as StreamRequestOptions, cT as StreamResult, cU as ThreadComputerContentAccess, cV as ThreadComputerFile, cW as ThreadComputerFileOptions, cX as ThreadComputerFileText, cY as ThreadComputerFiles, cZ as ThreadComputerStatus, c_ as ThreadDeleteOptions, c$ as ThreadDetailOptions, d0 as ThreadListOptions, d1 as ThreadSummaryEventOptions, d2 as TraceContent, d3 as TraceError, d4 as TraceSpan, d5 as TraceSpanKind, d6 as TraceSpanStatus, d7 as TraceView, d8 as UpdateClientDeploymentRequest, d9 as UploadPart, da as UploadPartAck, db as UploadSession, dc as UploadSessionStart, dd as WorkflowInputDefinition } from './client-Dr0U2u5Q.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_indexed_record_ids", "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
|
|
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 IndexedRecordIdListOptions, aK as IndexedRecordIdPage, aL as IngestionBatch, aM as IngestionBatchListOptions, aN as IngestionBatchPage, aO as IngestionJob, aP as IngestionJobAcknowledgment, aQ as IngestionJobGetOptions, aR as IngestionJobListOptions, aS as IngestionJobPage, aT as IngestionJobStart, aU as JobFieldData, aV as JobPayloadDownload, aW as JobResult, aX as JobStep, aY as JobStepData, aZ as JobStepDataOptions, a_ as JobStepDownloadOptions, a$ as JobStepFieldOptions, b0 as JobSteps, b1 as KnowledgeStore, b2 as KnowledgeStoreChunking, b3 as KnowledgeStoreCreate, b4 as KnowledgeStoreListOptions, b5 as KnowledgeStoreNamespace, b6 as KnowledgeStorePage, b7 as KnowledgeStoreStats, b8 as KnowledgeStoreUpdate, b9 as LatestOrPinnedPolicy, ba as McpAuthStartRequest, bb as McpAuthStartResult, bc as ModelCapabilitiesV1, bd as ModelPricingDimension, be as ModelRequirements, bf as ModelRuntimeKind, bg as MultiAgentThreadListRequest, bh as MultiAgentThreadSummaryEventOptions, bi as NamespaceDataStats, bj as NamespaceInput, bk as NamespaceListOptions, bl as NamespacePage, bm as NamespaceSummary, bn as NativePlatform, bo as NodeAuthoringSpec, bp as NodeCatalogItem, bq as NodeCatalogResponse, br as NodeSchemaResponse, bs as OCROptions, bt as PayloadAvailability, bu as PipelineInputField, bv as PipelineInputSchema, bw as PipelineInputStep, bx as PipelineInputUpload, by as PipelineListOptions, bz as PipelinePage, bA as PipelineSummary, bB as PortableResourceKind, bC as ProcessedContent, bD as ProcessedContentOptions, bE as ProcessedContentReference, bF as ProcessingInput, bG as ProcessingInputSource, bH as PublishedExecutable, bI as RagRetention, bJ as RawVectorMatch, bK as RawVectorRecord, bL as RecordBatchResult, bM as RecordCapabilities, bN as RecordDeleteRequest, bO as RecordFetchRequest, bP as RecordFetchResult, bQ as RecordListRequest, bR as RecordMutationAck, bS as RecordPage, bT as RecordQueryRequest, bU as RecordQueryResult, bV as RecordUpdateRequest, bW as RecordUpsertRequest, bX as RequestOptions, bY as ResetResourcePolicyQuotaRequest, bZ as ResourceCallableBinding, b_ as ResourceCallableBindingStatus, b$ as ResourceCandidateList, c0 as ResourceInstallation, c1 as ResourceInstallationApplication, c2 as ResourceInstallationApplyRequest, c3 as ResourceInstallationBinding, c4 as ResourceInstallationCreateRequest, c5 as ResourceInstallationDeploymentRequest, c6 as ResourceInstallationLinkRequest, c7 as ResourceInstallationList, c8 as ResourceInstallationOperation, c9 as ResourceInstallationPlan, ca as ResourceInstallationPlanUpload, cb as ResourceInstallationPublication, cc as ResourceInstallationPublishRequest, cd as ResourceInstallationPullAcceptRequest, ce as ResourceInstallationPullChange, cf as ResourceInstallationPullPayload, cg as ResourceInstallationPullPlan, ch as ResourceInstallationResourceListOptions, ci as ResourceInstallationSecretStatus, cj as ResourceInstallationSecretsRequest, ck as ResourcePackageArchive, cl as ResourcePackageCandidateOptions, cm as ResourcePackageDependency, cn as ResourcePackageDiagnostic, co as ResourcePackageExportPlan, cp as ResourcePackageExportRequest, cq as ResourcePackageImportPreview, cr as ResourcePackageImportResult, cs as ResourcePackageImportUpload, ct as ResourcePackageUpload, cu as ResourcePackageValidationResult, cv as ResourcePolicyList, cw as ResourcePolicyQuotaSchedule, cx as ResourcePolicyQuotaScheduleResult, cy as ResourcePolicySubjectRef, cz as ResourcePolicySummary, cA as ResourceSelector, cB as ResourceToolExport, cC as ResponseFeedback, cD as ResponseFeedbackResult, cE as ResumeRunRequest, cF as RetrievalEvidence, cG as RunCancelOptions, cH as RunContextOptions, cI as RunStatus, cJ as RunTrace, cK as ServerAttachmentUploadOptions, cL as ServerEmbedAttachmentUploadOptions, cM as SetCustomerResourcePolicyAssignmentRequest, cN as SetResourcePolicyQuotaScheduleRequest, cO as SourceDescriptor, cP as SourceOutcome, cQ as StartRunResult, cR as StateVariableDefinition, cS as StreamRequestOptions, cT as StreamResult, cU as ThreadComputerContentAccess, cV as ThreadComputerFile, cW as ThreadComputerFileOptions, cX as ThreadComputerFileText, cY as ThreadComputerFiles, cZ as ThreadComputerStatus, c_ as ThreadDeleteOptions, c$ as ThreadDetailOptions, d0 as ThreadListOptions, d1 as ThreadSummaryEventOptions, d2 as TraceContent, d3 as TraceError, d4 as TraceSpan, d5 as TraceSpanKind, d6 as TraceSpanStatus, d7 as TraceView, d8 as UpdateClientDeploymentRequest, d9 as UploadPart, da as UploadPartAck, db as UploadSession, dc as UploadSessionStart, dd as WorkflowInputDefinition } from './client-Dr0U2u5Q.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_indexed_record_ids", "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) {
|
|
@@ -1585,6 +1675,14 @@ var KnowledgeStoresNamespace = class {
|
|
|
1585
1675
|
getIndexedContent(storeId, indexedId) {
|
|
1586
1676
|
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content/${encodeURIComponent(indexedId)}`);
|
|
1587
1677
|
}
|
|
1678
|
+
listIndexedRecordIds(storeId, indexedId, options) {
|
|
1679
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content/${encodeURIComponent(indexedId)}/record-ids`, {
|
|
1680
|
+
query: {
|
|
1681
|
+
cursor: options.cursor,
|
|
1682
|
+
limit: options.limit
|
|
1683
|
+
}
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1588
1686
|
deleteIndexedContent(storeId, indexedId, options) {
|
|
1589
1687
|
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content/${encodeURIComponent(indexedId)}/delete`, {
|
|
1590
1688
|
method: "POST",
|
|
@@ -1609,6 +1707,62 @@ var KnowledgeStoresNamespace = class {
|
|
|
1609
1707
|
mutation: true
|
|
1610
1708
|
});
|
|
1611
1709
|
}
|
|
1710
|
+
upsertRecords(storeId, request) {
|
|
1711
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/upsert`, {
|
|
1712
|
+
method: "POST",
|
|
1713
|
+
body: request
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
fetchRecords(storeId, request) {
|
|
1717
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/fetch`, {
|
|
1718
|
+
method: "POST",
|
|
1719
|
+
body: request
|
|
1720
|
+
});
|
|
1721
|
+
}
|
|
1722
|
+
listRecords(storeId, request) {
|
|
1723
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/list`, {
|
|
1724
|
+
method: "POST",
|
|
1725
|
+
body: request
|
|
1726
|
+
});
|
|
1727
|
+
}
|
|
1728
|
+
queryRecords(storeId, request) {
|
|
1729
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/query`, {
|
|
1730
|
+
method: "POST",
|
|
1731
|
+
body: request
|
|
1732
|
+
});
|
|
1733
|
+
}
|
|
1734
|
+
updateRecord(storeId, request) {
|
|
1735
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/update`, {
|
|
1736
|
+
method: "POST",
|
|
1737
|
+
body: request
|
|
1738
|
+
});
|
|
1739
|
+
}
|
|
1740
|
+
deleteRecords(storeId, request) {
|
|
1741
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/records/delete`, {
|
|
1742
|
+
method: "POST",
|
|
1743
|
+
body: request
|
|
1744
|
+
});
|
|
1745
|
+
}
|
|
1746
|
+
listNamespaces(storeId, options = {}) {
|
|
1747
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/namespaces`, {
|
|
1748
|
+
query: {
|
|
1749
|
+
limit: options.limit ?? 100,
|
|
1750
|
+
cursor: options.cursor
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
}
|
|
1754
|
+
namespaceStats(storeId, request) {
|
|
1755
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/namespaces/stats`, {
|
|
1756
|
+
method: "POST",
|
|
1757
|
+
body: request
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1760
|
+
listRecordPages(storeId, request) {
|
|
1761
|
+
return recordPages(this, storeId, request);
|
|
1762
|
+
}
|
|
1763
|
+
upsertRecordsBatched(storeId, request, limits = {}) {
|
|
1764
|
+
return recordBatches(this, storeId, request, limits);
|
|
1765
|
+
}
|
|
1612
1766
|
};
|
|
1613
1767
|
|
|
1614
1768
|
// src/generated/integration-namespaces.ts
|
|
@@ -1773,10 +1927,16 @@ var SDK_OPERATION_IDS = [
|
|
|
1773
1927
|
"ingestionJobs.cancel",
|
|
1774
1928
|
"ingestionJobs.complete_upload",
|
|
1775
1929
|
"ingestionJobs.create_upload",
|
|
1930
|
+
"ingestionJobs.download_step_data",
|
|
1776
1931
|
"ingestionJobs.get",
|
|
1932
|
+
"ingestionJobs.get_processed_content",
|
|
1933
|
+
"ingestionJobs.get_result",
|
|
1934
|
+
"ingestionJobs.get_step_data",
|
|
1935
|
+
"ingestionJobs.get_step_field",
|
|
1777
1936
|
"ingestionJobs.get_upload",
|
|
1778
1937
|
"ingestionJobs.list",
|
|
1779
1938
|
"ingestionJobs.list_batches",
|
|
1939
|
+
"ingestionJobs.list_steps",
|
|
1780
1940
|
"ingestionJobs.put_upload_part",
|
|
1781
1941
|
"ingestionJobs.resume",
|
|
1782
1942
|
"ingestionJobs.start",
|
|
@@ -1786,14 +1946,23 @@ var SDK_OPERATION_IDS = [
|
|
|
1786
1946
|
"knowledgeStores.cancel_cleanup_job",
|
|
1787
1947
|
"knowledgeStores.create",
|
|
1788
1948
|
"knowledgeStores.delete_indexed_content",
|
|
1949
|
+
"knowledgeStores.delete_records",
|
|
1950
|
+
"knowledgeStores.fetch_records",
|
|
1789
1951
|
"knowledgeStores.get",
|
|
1790
1952
|
"knowledgeStores.get_cleanup_job",
|
|
1791
1953
|
"knowledgeStores.get_indexed_content",
|
|
1792
1954
|
"knowledgeStores.list",
|
|
1793
1955
|
"knowledgeStores.list_indexed_content",
|
|
1956
|
+
"knowledgeStores.list_indexed_record_ids",
|
|
1957
|
+
"knowledgeStores.list_namespaces",
|
|
1958
|
+
"knowledgeStores.list_records",
|
|
1959
|
+
"knowledgeStores.namespace_stats",
|
|
1960
|
+
"knowledgeStores.query_records",
|
|
1794
1961
|
"knowledgeStores.resume_cleanup_job",
|
|
1795
1962
|
"knowledgeStores.stats",
|
|
1796
1963
|
"knowledgeStores.update",
|
|
1964
|
+
"knowledgeStores.update_record",
|
|
1965
|
+
"knowledgeStores.upsert_records",
|
|
1797
1966
|
"pipelines.get",
|
|
1798
1967
|
"pipelines.get_input_schema",
|
|
1799
1968
|
"pipelines.get_published_executable",
|