@agents24/node 0.5.23 → 0.5.24
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/compatibility.json +7 -7
- package/dist/bff.d.cts +1 -1
- package/dist/bff.d.ts +1 -1
- package/dist/{client-BTqjlaCt.d.cts → client-DMkQFCYV.d.cts} +198 -7
- package/dist/{client-BTqjlaCt.d.ts → client-DMkQFCYV.d.ts} +198 -7
- package/dist/index.cjs +85 -1
- 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 +85 -1
- package/dist/index.js.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +150 -3
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/generated/ingestionJobs.d.ts +6 -1
- package/dist/types/generated/ingestionJobs.d.ts.map +1 -1
- package/dist/types/generated/knowledgeStores.d.ts +8 -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 +31 -0
- package/dist/types/generated/model-capabilities.d.ts.map +1 -0
- package/dist/types/generated/resourcePackages.d.ts.map +1 -1
- package/dist/types/types.d.ts +6 -3
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -471,6 +471,37 @@ declare class DelegationsNamespace {
|
|
|
471
471
|
act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
472
472
|
}
|
|
473
473
|
|
|
474
|
+
type ModelCapabilityFeatures = {
|
|
475
|
+
tool_calling: boolean;
|
|
476
|
+
structured_output: boolean;
|
|
477
|
+
reasoning: boolean;
|
|
478
|
+
segment_timestamps: boolean;
|
|
479
|
+
word_timestamps: boolean;
|
|
480
|
+
};
|
|
481
|
+
type ModelCapabilityLimits = {
|
|
482
|
+
context_tokens?: number | null;
|
|
483
|
+
input_tokens?: number | null;
|
|
484
|
+
output_tokens?: number | null;
|
|
485
|
+
tools_per_request?: number | null;
|
|
486
|
+
images_per_request?: number | null;
|
|
487
|
+
audio_seconds_per_request?: number | null;
|
|
488
|
+
audio_bytes_per_request?: number | null;
|
|
489
|
+
};
|
|
490
|
+
type ModelInputModality = "text" | "image" | "audio" | "video" | "pdf";
|
|
491
|
+
type ModelOutputModality = "text" | "image" | "audio" | "video" | "embedding" | "ranking" | "transcription";
|
|
492
|
+
type ModelCapabilitiesV1 = {
|
|
493
|
+
schema_version: "agents24.model-capabilities.v1";
|
|
494
|
+
input_modalities: Array<ModelInputModality>;
|
|
495
|
+
output_modalities: Array<ModelOutputModality>;
|
|
496
|
+
features: ModelCapabilityFeatures;
|
|
497
|
+
limits: ModelCapabilityLimits;
|
|
498
|
+
};
|
|
499
|
+
type ModelRequirements = {
|
|
500
|
+
input_modalities?: Array<ModelInputModality>;
|
|
501
|
+
output_modalities?: Array<ModelOutputModality>;
|
|
502
|
+
required_features?: Array<"tool_calling" | "structured_output" | "reasoning" | "segment_timestamps" | "word_timestamps">;
|
|
503
|
+
};
|
|
504
|
+
|
|
474
505
|
type Agents24NodeOptions = {
|
|
475
506
|
baseUrl: string;
|
|
476
507
|
apiKey: string;
|
|
@@ -1065,7 +1096,7 @@ type ResourcePackageDependency = {
|
|
|
1065
1096
|
required: boolean;
|
|
1066
1097
|
bundled: boolean;
|
|
1067
1098
|
included?: boolean;
|
|
1068
|
-
required_capability?: "chat" | "embedding";
|
|
1099
|
+
required_capability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
1069
1100
|
status?: "bundled" | "mapped" | "unresolved";
|
|
1070
1101
|
mapped_id?: string | null;
|
|
1071
1102
|
suggested_mapping?: {
|
|
@@ -1087,7 +1118,7 @@ type ResourcePackageExportPlan = {
|
|
|
1087
1118
|
kind: string;
|
|
1088
1119
|
name?: string | null;
|
|
1089
1120
|
required: boolean;
|
|
1090
|
-
required_capability?: "chat" | "embedding";
|
|
1121
|
+
required_capability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
1091
1122
|
}>;
|
|
1092
1123
|
warnings: string[];
|
|
1093
1124
|
blockers: Array<{
|
|
@@ -1147,12 +1178,14 @@ type ResourceCandidateList = {
|
|
|
1147
1178
|
}>;
|
|
1148
1179
|
total: number;
|
|
1149
1180
|
};
|
|
1181
|
+
|
|
1150
1182
|
type ResourcePackageCandidateOptions = {
|
|
1183
|
+
modelRequirements?: ModelRequirements;
|
|
1151
1184
|
kind: string;
|
|
1152
1185
|
query?: string;
|
|
1153
1186
|
limit?: number;
|
|
1154
1187
|
offset?: number;
|
|
1155
|
-
requiredCapability?: "chat" | "embedding";
|
|
1188
|
+
requiredCapability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
1156
1189
|
};
|
|
1157
1190
|
type ResourceInstallationBinding = {
|
|
1158
1191
|
resource_key: string;
|
|
@@ -1827,11 +1860,12 @@ type IngestionBatch = {
|
|
|
1827
1860
|
input_count?: number;
|
|
1828
1861
|
output_count?: number;
|
|
1829
1862
|
attempt_count?: number;
|
|
1863
|
+
sources?: Array<SourceOutcome>;
|
|
1830
1864
|
};
|
|
1831
1865
|
type IngestionJob = {
|
|
1832
1866
|
id: string;
|
|
1833
1867
|
name?: string | null;
|
|
1834
|
-
executable_pipeline_id: string;
|
|
1868
|
+
executable_pipeline_id: string | null;
|
|
1835
1869
|
visual_pipeline_id?: string | null;
|
|
1836
1870
|
pipeline_name?: string | null;
|
|
1837
1871
|
pipeline_type?: string | null;
|
|
@@ -1852,6 +1886,7 @@ type IngestionJob = {
|
|
|
1852
1886
|
started_at?: string | null;
|
|
1853
1887
|
completed_at?: string | null;
|
|
1854
1888
|
knowledge_namespaces?: Record<string, string>;
|
|
1889
|
+
job_kind?: "pipeline" | "indexed_cleanup";
|
|
1855
1890
|
};
|
|
1856
1891
|
type IngestionJobPage = {
|
|
1857
1892
|
items: Array<IngestionJob>;
|
|
@@ -1871,7 +1906,7 @@ type KnowledgeStoreCreate = {
|
|
|
1871
1906
|
description?: string | null;
|
|
1872
1907
|
embedding_model_id: string;
|
|
1873
1908
|
chunking_strategy?: KnowledgeStoreChunking | null;
|
|
1874
|
-
retrieval_policy?: "semantic_only" | "hybrid"
|
|
1909
|
+
retrieval_policy?: "semantic_only" | "hybrid";
|
|
1875
1910
|
create_default_pipelines?: "both" | "ingestion" | "retrieval" | "none";
|
|
1876
1911
|
backend?: "pgvector" | "pinecone" | "qdrant";
|
|
1877
1912
|
backend_config?: Record<string, unknown>;
|
|
@@ -1880,7 +1915,7 @@ type KnowledgeStoreCreate = {
|
|
|
1880
1915
|
type KnowledgeStoreUpdate = {
|
|
1881
1916
|
name?: string | null;
|
|
1882
1917
|
description?: string | null;
|
|
1883
|
-
retrieval_policy?: "semantic_only" | "hybrid" |
|
|
1918
|
+
retrieval_policy?: "semantic_only" | "hybrid" | null;
|
|
1884
1919
|
credentials_ref?: string | null;
|
|
1885
1920
|
};
|
|
1886
1921
|
type KnowledgeStore = {
|
|
@@ -1971,6 +2006,151 @@ type KnowledgeStoreChunking = {
|
|
|
1971
2006
|
chunk_size?: number;
|
|
1972
2007
|
chunk_overlap?: number;
|
|
1973
2008
|
};
|
|
2009
|
+
type SourceDescriptor = {
|
|
2010
|
+
content_id: string;
|
|
2011
|
+
revision_id: string;
|
|
2012
|
+
identity_owner?: "application" | "provider";
|
|
2013
|
+
title?: string | null;
|
|
2014
|
+
external_ref?: string | null;
|
|
2015
|
+
filename?: string | null;
|
|
2016
|
+
mime_type?: string | null;
|
|
2017
|
+
byte_size?: number | null;
|
|
2018
|
+
sha256?: string | null;
|
|
2019
|
+
};
|
|
2020
|
+
type FileAssetReference = {
|
|
2021
|
+
input_ref: string;
|
|
2022
|
+
source: SourceDescriptor;
|
|
2023
|
+
};
|
|
2024
|
+
type EvidenceLocation = {
|
|
2025
|
+
kind: "pdf" | "docx" | "media" | "text" | "record";
|
|
2026
|
+
page_number?: number | null;
|
|
2027
|
+
total_pages?: number | null;
|
|
2028
|
+
bbox?: Array<number> | null;
|
|
2029
|
+
reference?: string | null;
|
|
2030
|
+
start_ms?: number | null;
|
|
2031
|
+
end_ms?: number | null;
|
|
2032
|
+
timing_granularity?: "segment" | "word" | null;
|
|
2033
|
+
};
|
|
2034
|
+
type ContentSegment = {
|
|
2035
|
+
id: string;
|
|
2036
|
+
text: string;
|
|
2037
|
+
locations?: Array<EvidenceLocation>;
|
|
2038
|
+
structure_kind?: "text" | "heading" | "table";
|
|
2039
|
+
};
|
|
2040
|
+
type ProcessedContent = {
|
|
2041
|
+
schema_version?: "agents24.processed-content.v1";
|
|
2042
|
+
source: SourceDescriptor;
|
|
2043
|
+
processing_fingerprint: string;
|
|
2044
|
+
physical_page_count?: number | null;
|
|
2045
|
+
language?: string | null;
|
|
2046
|
+
duration_ms?: number | null;
|
|
2047
|
+
completeness?: "complete" | "partial" | "blank";
|
|
2048
|
+
warnings?: Array<string>;
|
|
2049
|
+
segments?: Array<ContentSegment>;
|
|
2050
|
+
};
|
|
2051
|
+
type ProcessedContentReference = {
|
|
2052
|
+
processed_ref: string;
|
|
2053
|
+
source: SourceDescriptor;
|
|
2054
|
+
completeness: "complete" | "partial" | "blank";
|
|
2055
|
+
segment_count: number;
|
|
2056
|
+
physical_page_count?: number | null;
|
|
2057
|
+
language?: string | null;
|
|
2058
|
+
duration_ms?: number | null;
|
|
2059
|
+
};
|
|
2060
|
+
type ContentChunk = {
|
|
2061
|
+
id: string;
|
|
2062
|
+
text: string;
|
|
2063
|
+
source: SourceDescriptor;
|
|
2064
|
+
segment_ids: Array<string>;
|
|
2065
|
+
locations: Array<EvidenceLocation>;
|
|
2066
|
+
processing_fingerprint: string;
|
|
2067
|
+
metadata?: Record<string, unknown>;
|
|
2068
|
+
};
|
|
2069
|
+
type RetrievalEvidence = {
|
|
2070
|
+
schema_version?: "agents24.retrieval-evidence.v1";
|
|
2071
|
+
id: string;
|
|
2072
|
+
knowledge_store_id: string;
|
|
2073
|
+
content_id: string;
|
|
2074
|
+
revision_id: string;
|
|
2075
|
+
generation_id: string;
|
|
2076
|
+
chunk_id: string;
|
|
2077
|
+
segment_ids?: Array<string>;
|
|
2078
|
+
title?: string | null;
|
|
2079
|
+
external_ref?: string | null;
|
|
2080
|
+
locations?: Array<EvidenceLocation>;
|
|
2081
|
+
};
|
|
2082
|
+
type UploadSessionStart = {
|
|
2083
|
+
filename: string;
|
|
2084
|
+
mime_type: string;
|
|
2085
|
+
byte_size: number;
|
|
2086
|
+
};
|
|
2087
|
+
type UploadPart = {
|
|
2088
|
+
part_number: number;
|
|
2089
|
+
upload_url: string;
|
|
2090
|
+
completed: boolean;
|
|
2091
|
+
};
|
|
2092
|
+
type UploadPartAck = {
|
|
2093
|
+
part_number: number;
|
|
2094
|
+
status: "uploaded";
|
|
2095
|
+
};
|
|
2096
|
+
type UploadSession = {
|
|
2097
|
+
id: string;
|
|
2098
|
+
status: "uploading" | "completing" | "completed" | "aborted" | "expired";
|
|
2099
|
+
part_bytes: number;
|
|
2100
|
+
parts: Array<UploadPart>;
|
|
2101
|
+
input_ref: string | null;
|
|
2102
|
+
};
|
|
2103
|
+
type IndexedContent = {
|
|
2104
|
+
id: string;
|
|
2105
|
+
knowledge_store_id: string;
|
|
2106
|
+
namespace: string;
|
|
2107
|
+
content_id: string;
|
|
2108
|
+
revision_id: string;
|
|
2109
|
+
generation_id: string;
|
|
2110
|
+
processing_fingerprint: string;
|
|
2111
|
+
status: "writing" | "complete" | "deleting" | "deleted";
|
|
2112
|
+
chunk_count: number;
|
|
2113
|
+
created_at: string;
|
|
2114
|
+
updated_at: string;
|
|
2115
|
+
};
|
|
2116
|
+
type IndexedContentPage = {
|
|
2117
|
+
items: Array<IndexedContent>;
|
|
2118
|
+
limit: number;
|
|
2119
|
+
skip: number;
|
|
2120
|
+
has_more: boolean;
|
|
2121
|
+
};
|
|
2122
|
+
type IndexedContentListOptions = {
|
|
2123
|
+
namespace: string;
|
|
2124
|
+
contentId?: string;
|
|
2125
|
+
revisionId?: string;
|
|
2126
|
+
limit?: number;
|
|
2127
|
+
skip?: number;
|
|
2128
|
+
};
|
|
2129
|
+
type IndexedCleanupAck = {
|
|
2130
|
+
indexed_content_id: string;
|
|
2131
|
+
status: string;
|
|
2132
|
+
job_id: string | null;
|
|
2133
|
+
};
|
|
2134
|
+
type ProcessingInputSource = {
|
|
2135
|
+
content_id?: string | null;
|
|
2136
|
+
revision_id?: string | null;
|
|
2137
|
+
title?: string | null;
|
|
2138
|
+
external_ref?: string | null;
|
|
2139
|
+
};
|
|
2140
|
+
type ProcessingInput = {
|
|
2141
|
+
input_ref: string;
|
|
2142
|
+
source?: ProcessingInputSource;
|
|
2143
|
+
};
|
|
2144
|
+
type SourceOutcome = {
|
|
2145
|
+
input_ref: string;
|
|
2146
|
+
source: SourceDescriptor | ProcessingInputSource;
|
|
2147
|
+
status: "pending" | "running" | "completed" | "failed" | "skipped" | "cancelled";
|
|
2148
|
+
completeness?: "complete" | "partial" | "blank" | null;
|
|
2149
|
+
segment_count?: number | null;
|
|
2150
|
+
physical_page_count?: number | null;
|
|
2151
|
+
language?: string | null;
|
|
2152
|
+
duration_ms?: number | null;
|
|
2153
|
+
};
|
|
1974
2154
|
|
|
1975
2155
|
declare class PipelinesNamespace {
|
|
1976
2156
|
protected readonly http: Agents24HttpClient;
|
|
@@ -1991,6 +2171,11 @@ declare class IngestionJobsNamespace {
|
|
|
1991
2171
|
listBatches(jobId: string, options?: IngestionBatchListOptions): Promise<IngestionBatchPage>;
|
|
1992
2172
|
resume(jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
1993
2173
|
cancel(jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
2174
|
+
createUpload(request: UploadSessionStart, options?: RequestOptions): Promise<UploadSession>;
|
|
2175
|
+
getUpload(sessionId: string): Promise<UploadSession>;
|
|
2176
|
+
putUploadPart(sessionId: string, partNumber: string, data: Blob): Promise<UploadPartAck>;
|
|
2177
|
+
completeUpload(sessionId: string, options?: RequestOptions): Promise<UploadSession>;
|
|
2178
|
+
abortUpload(sessionId: string, options?: RequestOptions): Promise<UploadSession>;
|
|
1994
2179
|
}
|
|
1995
2180
|
|
|
1996
2181
|
declare class KnowledgeStoresNamespace {
|
|
@@ -2002,6 +2187,12 @@ declare class KnowledgeStoresNamespace {
|
|
|
2002
2187
|
update(storeId: string, request: KnowledgeStoreUpdate): Promise<KnowledgeStore>;
|
|
2003
2188
|
stats(storeId: string): Promise<KnowledgeStoreStats>;
|
|
2004
2189
|
archive(storeId: string): Promise<void>;
|
|
2190
|
+
listIndexedContent(storeId: string, options: IndexedContentListOptions): Promise<IndexedContentPage>;
|
|
2191
|
+
getIndexedContent(storeId: string, indexedId: string): Promise<IndexedContent>;
|
|
2192
|
+
deleteIndexedContent(storeId: string, indexedId: string, options?: RequestOptions): Promise<IndexedCleanupAck>;
|
|
2193
|
+
getCleanupJob(storeId: string, jobId: string): Promise<IngestionJob>;
|
|
2194
|
+
resumeCleanupJob(storeId: string, jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
2195
|
+
cancelCleanupJob(storeId: string, jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
2005
2196
|
}
|
|
2006
2197
|
|
|
2007
2198
|
declare class GeneratedIntegrationNamespaces {
|
|
@@ -2029,4 +2220,4 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
2029
2220
|
graph(): GraphBuilder;
|
|
2030
2221
|
}
|
|
2031
2222
|
|
|
2032
|
-
export { type
|
|
2223
|
+
export { type CustomerResourcePolicyAssignment as $, Agents24 as A, type BackendSessionRequestOptions as B, type ClearCustomerResourcePolicyAssignmentResult as C, type ClientDeploymentListQuery as D, type ClientDeploymentListResponse as E, type ClientNativeProfile as F, type ClientRuntimeNativeProfileInput as G, type ClientRuntimeOidcConfig as H, type ClientRuntimePolicyInput as I, type ClientSessionCredentials as J, type ContentChunk as K, type ContentSegment as L, type ControlPlaneAgentRunRequest as M, type ControlPlaneRunEventsResponse as N, type ConversationRunRequest as O, type ConversationRunResult as P, type ConversationRuntimeSelectionRequest as Q, type ConversationRuntimeSelectionResult as R, type ConversationThreadOptions as S, type CreateBackendClientSessionRequest as T, type CreateClientDeploymentRequest as U, type CustomerIdentityRequest as V, type CustomerPrincipalRefRequest as W, type CustomerProfile as X, type CustomerProfileList as Y, type CustomerProfilePatch as Z, type CustomerProfileSearchOptions as _, type AgentCreateRequest as a, type McpAuthStartRequest as a$, type DelegationAction as a0, type DelegationActionReceipt as a1, type DelegationActionRequest as a2, type DelegationEvents as a3, type DelegationHistory as a4, type DelegationHistoryTurn as a5, type DelegationStatus as a6, type DelegationTask as a7, type DelegationTaskList as a8, type EffectiveCustomerResourcePolicyRequest as a9, type GraphValueRef as aA, type HitlAction as aB, type HitlAnswer as aC, type HostedArtifactDraft as aD, HostedArtifactsNamespace as aE, type IndexedCleanupAck as aF, type IndexedContent as aG, type IndexedContentListOptions as aH, type IndexedContentPage as aI, type IngestionBatch as aJ, type IngestionBatchListOptions as aK, type IngestionBatchPage as aL, type IngestionJob as aM, type IngestionJobAcknowledgment as aN, type IngestionJobGetOptions as aO, type IngestionJobListOptions as aP, type IngestionJobPage as aQ, type IngestionJobStart as aR, type KnowledgeStore as aS, type KnowledgeStoreChunking as aT, type KnowledgeStoreCreate as aU, type KnowledgeStoreListOptions as aV, type KnowledgeStoreNamespace as aW, type KnowledgeStorePage as aX, type KnowledgeStoreStats as aY, type KnowledgeStoreUpdate as aZ, type LatestOrPinnedPolicy as a_, type EffectiveResourcePolicy as aa, type EmbedAgentAliasResolution as ab, type EmbedAttachmentContentAccessRequest as ac, type EmbedCustomerPrincipalResolveRequest as ad, type EmbedCustomerPrincipalResolveResponse as ae, type EmbedDelegationOptions as af, type EmbedResourcePolicyRequest as ag, type EmbedRunCancelOptions as ah, type EmbedRunStartRequest as ai, type EmbedRuntimeBootstrap as aj, type EmbedStreamRequest as ak, type EmbedThreadMessageEdit as al, type EmbedThreadMessageScope as am, type EmbedThreadMessageSubmit as an, type EmbeddedResponseFeedbackInput as ao, type EvidenceLocation as ap, type FailureCategory as aq, type FailureView as ar, type FeedbackRating as as, type FeedbackReason as at, type FileAssetReference as au, GraphBuilder as av, type GraphDefinition as aw, type GraphEdge as ax, type GraphHints as ay, type GraphNode as az, AgentDefinitionBuilder as b, type ResourcePolicySummary as b$, type McpAuthStartResult as b0, type ModelCapabilitiesV1 as b1, type ModelRequirements as b2, type MultiAgentThreadListRequest as b3, type MultiAgentThreadSummaryEventOptions as b4, type NativePlatform as b5, type NodeAuthoringSpec as b6, type NodeCatalogItem as b7, type NodeCatalogResponse as b8, type NodeSchemaResponse as b9, type ResourceInstallationOperation as bA, type ResourceInstallationPlan as bB, type ResourceInstallationPlanUpload as bC, type ResourceInstallationPublication as bD, type ResourceInstallationPublishRequest as bE, type ResourceInstallationPullAcceptRequest as bF, type ResourceInstallationPullChange as bG, type ResourceInstallationPullPayload as bH, type ResourceInstallationPullPlan as bI, type ResourceInstallationResourceListOptions as bJ, type ResourceInstallationSecretStatus as bK, type ResourceInstallationSecretsRequest as bL, type ResourcePackageArchive as bM, type ResourcePackageCandidateOptions as bN, type ResourcePackageDependency as bO, type ResourcePackageDiagnostic as bP, type ResourcePackageExportPlan as bQ, type ResourcePackageExportRequest as bR, type ResourcePackageImportPreview as bS, type ResourcePackageImportResult as bT, type ResourcePackageImportUpload as bU, type ResourcePackageUpload as bV, type ResourcePackageValidationResult as bW, type ResourcePolicyList as bX, type ResourcePolicyQuotaSchedule as bY, type ResourcePolicyQuotaScheduleResult as bZ, type ResourcePolicySubjectRef as b_, type PipelineInputField as ba, type PipelineInputSchema as bb, type PipelineInputStep as bc, type PipelineInputUpload as bd, type PipelineListOptions as be, type PipelinePage as bf, type PipelineSummary as bg, type PortableResourceKind as bh, type ProcessedContent as bi, type ProcessedContentReference as bj, type ProcessingInput as bk, type ProcessingInputSource as bl, type PublishedExecutable as bm, type RequestOptions as bn, type ResetResourcePolicyQuotaRequest as bo, type ResourceCallableBinding as bp, type ResourceCallableBindingStatus as bq, type ResourceCandidateList as br, type ResourceInstallation as bs, type ResourceInstallationApplication as bt, type ResourceInstallationApplyRequest as bu, type ResourceInstallationBinding as bv, type ResourceInstallationCreateRequest as bw, type ResourceInstallationDeploymentRequest as bx, type ResourceInstallationLinkRequest as by, type ResourceInstallationList as bz, type AgentDefinitionOptions as c, type ResourceSelector as c0, type ResourceToolExport as c1, type ResponseFeedback as c2, type ResponseFeedbackResult as c3, type ResumeRunRequest as c4, type RetrievalEvidence as c5, type RunCancelOptions as c6, type RunContextOptions as c7, type RunStatus as c8, type RunTrace as c9, type UpdateClientDeploymentRequest as cA, type UploadPart as cB, type UploadPartAck as cC, type UploadSession as cD, type UploadSessionStart as cE, type WorkflowInputDefinition as cF, type ServerAttachmentUploadOptions as ca, type ServerEmbedAttachmentUploadOptions as cb, type SetCustomerResourcePolicyAssignmentRequest as cc, type SetResourcePolicyQuotaScheduleRequest as cd, type SourceDescriptor as ce, type SourceOutcome as cf, type StartRunResult as cg, type StateVariableDefinition as ch, type StreamRequestOptions as ci, type StreamResult as cj, type ThreadComputerContentAccess as ck, type ThreadComputerFile as cl, type ThreadComputerFileOptions as cm, type ThreadComputerFileText as cn, type ThreadComputerFiles as co, type ThreadComputerStatus as cp, type ThreadDeleteOptions as cq, type ThreadDetailOptions as cr, type ThreadListOptions as cs, type ThreadSummaryEventOptions as ct, type TraceContent as cu, type TraceError as cv, type TraceSpan as cw, type TraceSpanKind as cx, type TraceSpanStatus as cy, type TraceView as cz, type AgentListResponse as d, type AgentRef as e, type AgentResponse as f, type AgentStreamRequest as g, type AgentSummary as h, type AgentToolsetAttachment as i, type AgentUpdateRequest as j, type AgentValidationIssue as k, type AgentValidationResult as l, Agents24SDKError as m, type Agents24NodeErrorKind as n, type Agents24NodeOptions as o, type Agents24Options as p, type Agents24SDKErrorKind as q, type Agents24SDKSerializedError as r, type ArtifactDevelopmentSession as s, type ArtifactDevelopmentSessionAdmission as t, type ArtifactDevelopmentSessionPrepareRequest as u, type AttachRunRequest as v, type AttachmentContentAccessRequest as w, type BranchingHint as x, type ClientAuthMode as y, type ClientDeployment as z };
|
package/dist/index.cjs
CHANGED
|
@@ -1046,7 +1046,8 @@ var ResourcePackagesNamespace = class {
|
|
|
1046
1046
|
q: options.query,
|
|
1047
1047
|
limit: options.limit,
|
|
1048
1048
|
offset: options.offset,
|
|
1049
|
-
required_capability: options.requiredCapability
|
|
1049
|
+
required_capability: options.requiredCapability,
|
|
1050
|
+
model_requirements: options.modelRequirements === void 0 ? void 0 : JSON.stringify(options.modelRequirements)
|
|
1050
1051
|
}
|
|
1051
1052
|
});
|
|
1052
1053
|
}
|
|
@@ -1497,6 +1498,40 @@ var IngestionJobsNamespace = class {
|
|
|
1497
1498
|
mutation: true
|
|
1498
1499
|
});
|
|
1499
1500
|
}
|
|
1501
|
+
createUpload(request, options) {
|
|
1502
|
+
return this.http.requestJson("/admin/pipelines/pipeline-inputs/uploads", {
|
|
1503
|
+
method: "POST",
|
|
1504
|
+
body: request,
|
|
1505
|
+
options,
|
|
1506
|
+
mutation: true
|
|
1507
|
+
});
|
|
1508
|
+
}
|
|
1509
|
+
getUpload(sessionId) {
|
|
1510
|
+
return this.http.requestJson(`/admin/pipelines/pipeline-inputs/uploads/${encodeURIComponent(sessionId)}`);
|
|
1511
|
+
}
|
|
1512
|
+
async putUploadPart(sessionId, partNumber, data) {
|
|
1513
|
+
const response = await this.http.fetchOrThrow(
|
|
1514
|
+
this.http.url(`/admin/pipelines/pipeline-inputs/uploads/${encodeURIComponent(sessionId)}/parts/${encodeURIComponent(partNumber)}`),
|
|
1515
|
+
{ method: "PUT", headers: { ...this.http.multipartHeaders(), "Content-Type": "application/octet-stream" }, body: data },
|
|
1516
|
+
"Failed to upload managed input part."
|
|
1517
|
+
);
|
|
1518
|
+
await assertOk(response);
|
|
1519
|
+
return await response.json();
|
|
1520
|
+
}
|
|
1521
|
+
completeUpload(sessionId, options) {
|
|
1522
|
+
return this.http.requestJson(`/admin/pipelines/pipeline-inputs/uploads/${encodeURIComponent(sessionId)}/complete`, {
|
|
1523
|
+
method: "POST",
|
|
1524
|
+
options,
|
|
1525
|
+
mutation: true
|
|
1526
|
+
});
|
|
1527
|
+
}
|
|
1528
|
+
abortUpload(sessionId, options) {
|
|
1529
|
+
return this.http.requestJson(`/admin/pipelines/pipeline-inputs/uploads/${encodeURIComponent(sessionId)}/abort`, {
|
|
1530
|
+
method: "POST",
|
|
1531
|
+
options,
|
|
1532
|
+
mutation: true
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1500
1535
|
};
|
|
1501
1536
|
|
|
1502
1537
|
// src/generated/knowledgeStores.ts
|
|
@@ -1537,6 +1572,44 @@ var KnowledgeStoresNamespace = class {
|
|
|
1537
1572
|
method: "DELETE"
|
|
1538
1573
|
});
|
|
1539
1574
|
}
|
|
1575
|
+
listIndexedContent(storeId, options) {
|
|
1576
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content`, {
|
|
1577
|
+
query: {
|
|
1578
|
+
namespace: options.namespace,
|
|
1579
|
+
content_id: options.contentId,
|
|
1580
|
+
revision_id: options.revisionId,
|
|
1581
|
+
skip: options.skip,
|
|
1582
|
+
limit: options.limit
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
getIndexedContent(storeId, indexedId) {
|
|
1587
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content/${encodeURIComponent(indexedId)}`);
|
|
1588
|
+
}
|
|
1589
|
+
deleteIndexedContent(storeId, indexedId, options) {
|
|
1590
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content/${encodeURIComponent(indexedId)}/delete`, {
|
|
1591
|
+
method: "POST",
|
|
1592
|
+
options,
|
|
1593
|
+
mutation: true
|
|
1594
|
+
});
|
|
1595
|
+
}
|
|
1596
|
+
getCleanupJob(storeId, jobId) {
|
|
1597
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content/jobs/${encodeURIComponent(jobId)}`);
|
|
1598
|
+
}
|
|
1599
|
+
resumeCleanupJob(storeId, jobId, options) {
|
|
1600
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content/jobs/${encodeURIComponent(jobId)}/resume`, {
|
|
1601
|
+
method: "POST",
|
|
1602
|
+
options,
|
|
1603
|
+
mutation: true
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
cancelCleanupJob(storeId, jobId, options) {
|
|
1607
|
+
return this.http.requestJson(`/admin/knowledge-stores/${encodeURIComponent(storeId)}/indexed-content/jobs/${encodeURIComponent(jobId)}/cancel`, {
|
|
1608
|
+
method: "POST",
|
|
1609
|
+
options,
|
|
1610
|
+
mutation: true
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1540
1613
|
};
|
|
1541
1614
|
|
|
1542
1615
|
// src/generated/integration-namespaces.ts
|
|
@@ -1697,18 +1770,29 @@ var SDK_OPERATION_IDS = [
|
|
|
1697
1770
|
"embed_delegations.history",
|
|
1698
1771
|
"embed_delegations.inspect",
|
|
1699
1772
|
"embed_delegations.list",
|
|
1773
|
+
"ingestionJobs.abort_upload",
|
|
1700
1774
|
"ingestionJobs.cancel",
|
|
1775
|
+
"ingestionJobs.complete_upload",
|
|
1776
|
+
"ingestionJobs.create_upload",
|
|
1701
1777
|
"ingestionJobs.get",
|
|
1778
|
+
"ingestionJobs.get_upload",
|
|
1702
1779
|
"ingestionJobs.list",
|
|
1703
1780
|
"ingestionJobs.list_batches",
|
|
1781
|
+
"ingestionJobs.put_upload_part",
|
|
1704
1782
|
"ingestionJobs.resume",
|
|
1705
1783
|
"ingestionJobs.start",
|
|
1706
1784
|
"ingestionJobs.upload_input",
|
|
1707
1785
|
"instructions.publish",
|
|
1708
1786
|
"knowledgeStores.archive",
|
|
1787
|
+
"knowledgeStores.cancel_cleanup_job",
|
|
1709
1788
|
"knowledgeStores.create",
|
|
1789
|
+
"knowledgeStores.delete_indexed_content",
|
|
1710
1790
|
"knowledgeStores.get",
|
|
1791
|
+
"knowledgeStores.get_cleanup_job",
|
|
1792
|
+
"knowledgeStores.get_indexed_content",
|
|
1711
1793
|
"knowledgeStores.list",
|
|
1794
|
+
"knowledgeStores.list_indexed_content",
|
|
1795
|
+
"knowledgeStores.resume_cleanup_job",
|
|
1712
1796
|
"knowledgeStores.stats",
|
|
1713
1797
|
"knowledgeStores.update",
|
|
1714
1798
|
"pipelines.get",
|