@agents24/node 0.5.30 → 0.5.31
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 +3 -3
- package/dist/bff.cjs +4 -0
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +6 -2
- package/dist/bff.d.ts +6 -2
- package/dist/bff.js +4 -0
- package/dist/bff.js.map +1 -1
- package/dist/{client-BIn7miCx.d.cts → client-vFBe6Sfx.d.cts} +58 -3
- package/dist/{client-BIn7miCx.d.ts → client-vFBe6Sfx.d.ts} +58 -3
- package/dist/index.cjs +10 -4
- 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 +10 -4
- package/dist/index.js.map +1 -1
- package/dist/types/agents.d.ts.map +1 -1
- package/dist/types/bff-agent-resolution.d.ts +16 -0
- package/dist/types/bff-agent-resolution.d.ts.map +1 -1
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/embed-types.d.ts +12 -0
- package/dist/types/embed-types.d.ts.map +1 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +20 -0
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/types.d.ts +23 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as _agents24_client from '@agents24/client';
|
|
2
|
+
import { ClientInputFeature } from '@agents24/client';
|
|
1
3
|
import * as _agents24_client_protocol from '@agents24/client/protocol';
|
|
2
4
|
import { ToolInputOverrides, PublicResponseBlock, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
3
|
-
import { ClientInputFeature } from '@agents24/client';
|
|
4
5
|
|
|
5
6
|
type RunUsage = {
|
|
6
7
|
source?: "exact" | "estimated" | "unknown";
|
|
@@ -15,6 +16,14 @@ type RunUsage = {
|
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
type EmbedStreamRequest = {
|
|
19
|
+
customer_tenant?: {
|
|
20
|
+
issuer: string;
|
|
21
|
+
subject: string;
|
|
22
|
+
};
|
|
23
|
+
customerTenant?: {
|
|
24
|
+
issuer: string;
|
|
25
|
+
subject: string;
|
|
26
|
+
};
|
|
18
27
|
relay_client_id?: string | null;
|
|
19
28
|
execution_limits?: RunExecutionLimits;
|
|
20
29
|
client_submission_id?: string;
|
|
@@ -145,6 +154,10 @@ type EmbedThreadMessageScope = {
|
|
|
145
154
|
chatScope?: string;
|
|
146
155
|
};
|
|
147
156
|
type EmbedThreadMessageSubmit = {
|
|
157
|
+
customerTenant?: {
|
|
158
|
+
issuer: string;
|
|
159
|
+
subject: string;
|
|
160
|
+
};
|
|
148
161
|
relayClientId?: string | null;
|
|
149
162
|
executionLimits?: RunExecutionLimits;
|
|
150
163
|
knowledgeNamespaces?: Record<string, string>;
|
|
@@ -603,6 +616,14 @@ type StreamRequestOptions = RequestOptions & {
|
|
|
603
616
|
onControl?: (control: _agents24_client_protocol.ObservationControl) => void | Promise<void>;
|
|
604
617
|
};
|
|
605
618
|
type AgentStreamRequest = {
|
|
619
|
+
customer_tenant?: {
|
|
620
|
+
issuer: string;
|
|
621
|
+
subject: string;
|
|
622
|
+
};
|
|
623
|
+
customerTenant?: {
|
|
624
|
+
issuer: string;
|
|
625
|
+
subject: string;
|
|
626
|
+
};
|
|
606
627
|
relay_client_id?: string | null;
|
|
607
628
|
client_submission_id?: string;
|
|
608
629
|
input?: string;
|
|
@@ -619,6 +640,14 @@ type AgentStreamRequest = {
|
|
|
619
640
|
agent_version_id?: string;
|
|
620
641
|
};
|
|
621
642
|
type ControlPlaneAgentRunRequest = {
|
|
643
|
+
customer_tenant?: {
|
|
644
|
+
issuer: string;
|
|
645
|
+
subject: string;
|
|
646
|
+
};
|
|
647
|
+
customerTenant?: {
|
|
648
|
+
issuer: string;
|
|
649
|
+
subject: string;
|
|
650
|
+
};
|
|
622
651
|
relay_client_id?: string | null;
|
|
623
652
|
execution_limits?: RunExecutionLimits;
|
|
624
653
|
knowledge_namespaces?: Record<string, string>;
|
|
@@ -828,6 +857,7 @@ type FailureView = {
|
|
|
828
857
|
details: Record<string, unknown>;
|
|
829
858
|
};
|
|
830
859
|
type RunStatus = {
|
|
860
|
+
capacity_wait?: _agents24_client.CapacityWait;
|
|
831
861
|
execution_budget?: {
|
|
832
862
|
max_tool_calls_per_run: number;
|
|
833
863
|
tool_calls_used: number;
|
|
@@ -1064,6 +1094,10 @@ type ClientDeploymentListResponse = {
|
|
|
1064
1094
|
next_cursor: string | null;
|
|
1065
1095
|
};
|
|
1066
1096
|
type CreateBackendClientSessionRequest = {
|
|
1097
|
+
customer_tenant?: {
|
|
1098
|
+
issuer: string;
|
|
1099
|
+
subject: string;
|
|
1100
|
+
};
|
|
1067
1101
|
subject: string;
|
|
1068
1102
|
subject_issuer?: string;
|
|
1069
1103
|
browser_origin?: string;
|
|
@@ -1557,7 +1591,8 @@ type ResourcePolicyQuotaScheduleResult = {
|
|
|
1557
1591
|
type EmbeddedRunSnapshot = {
|
|
1558
1592
|
run_id: string;
|
|
1559
1593
|
thread_id: string | null;
|
|
1560
|
-
status: "queued" | "pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "paused";
|
|
1594
|
+
status: "queued" | "pending" | "running" | "waiting" | "interrupted" | "cancelling" | "completed" | "failed" | "cancelled" | "paused";
|
|
1595
|
+
capacity_wait?: _agents24_client.CapacityWait;
|
|
1561
1596
|
final_output: unknown;
|
|
1562
1597
|
final_output_available: boolean;
|
|
1563
1598
|
failure: FailureView | null;
|
|
@@ -2093,8 +2128,16 @@ type IngestionJobStart = {
|
|
|
2093
2128
|
name?: string | null;
|
|
2094
2129
|
knowledge_namespaces?: Record<string, string>;
|
|
2095
2130
|
scheduling_group?: string;
|
|
2131
|
+
customer_tenant?: {
|
|
2132
|
+
issuer: string;
|
|
2133
|
+
subject: string;
|
|
2134
|
+
};
|
|
2096
2135
|
} & {
|
|
2097
2136
|
knowledgeNamespaces?: Record<string, string>;
|
|
2137
|
+
customerTenant?: {
|
|
2138
|
+
issuer: string;
|
|
2139
|
+
subject: string;
|
|
2140
|
+
};
|
|
2098
2141
|
};
|
|
2099
2142
|
type IngestionJobAcknowledgment = {
|
|
2100
2143
|
job_id: string;
|
|
@@ -2143,6 +2186,7 @@ type IngestionJob = {
|
|
|
2143
2186
|
retention?: RagRetention;
|
|
2144
2187
|
input_params?: Record<string, unknown>;
|
|
2145
2188
|
input_availability?: PayloadAvailability;
|
|
2189
|
+
progress?: ProcessingProgress;
|
|
2146
2190
|
};
|
|
2147
2191
|
type IngestionJobPage = {
|
|
2148
2192
|
items: Array<IngestionJob>;
|
|
@@ -2621,6 +2665,17 @@ type PipelineResultPage = {
|
|
|
2621
2665
|
result_limit: number;
|
|
2622
2666
|
truncated: false;
|
|
2623
2667
|
};
|
|
2668
|
+
type CapacityWait = {
|
|
2669
|
+
reason: "local_capacity" | "provider_capacity" | "provider_budget";
|
|
2670
|
+
retry_at: string;
|
|
2671
|
+
deadline: string | null;
|
|
2672
|
+
};
|
|
2673
|
+
type ProcessingProgress = {
|
|
2674
|
+
stage: string;
|
|
2675
|
+
completed_units: number;
|
|
2676
|
+
total_units: number;
|
|
2677
|
+
capacity_wait?: CapacityWait;
|
|
2678
|
+
};
|
|
2624
2679
|
|
|
2625
2680
|
declare class PipelinesNamespace {
|
|
2626
2681
|
protected readonly http: Agents24HttpClient;
|
|
@@ -2712,4 +2767,4 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
2712
2767
|
graph(): GraphBuilder;
|
|
2713
2768
|
}
|
|
2714
2769
|
|
|
2715
|
-
export { type
|
|
2770
|
+
export { type ConversationThreadOptions as $, Agents24 as A, type ArtifactRelayTicketRequest as B, type AttachRunRequest as C, type AttachmentContentAccessRequest as D, type EmbeddedRunSnapshot as E, type BackendSessionRequestOptions as F, type BranchingHint as G, type CapacityWait as H, type ClearCustomerResourcePolicyAssignmentResult as I, type ClientAuthMode as J, type ClientDeployment as K, type ClientDeploymentListQuery as L, type ClientDeploymentListResponse as M, type ClientNativeProfile as N, type ClientRuntimeNativeProfileInput as O, type ClientRuntimeOidcConfig as P, type ClientRuntimePolicyInput as Q, type RelayOptions as R, type ClientSessionCredentials as S, type ContentChunk as T, type ContentSegment as U, type ControlPlaneAgentRunRequest as V, type ControlPlaneRunEventsResponse as W, type ConversationRunRequest as X, type ConversationRunResult as Y, type ConversationRuntimeSelectionRequest as Z, type ConversationRuntimeSelectionResult as _, type AgentCreateRequest as a, type IngestionJobPage as a$, type CreateBackendClientSessionRequest as a0, type CreateClientDeploymentRequest as a1, type CustomerIdentityRequest as a2, type CustomerPrincipalRefRequest as a3, type CustomerProfile as a4, type CustomerProfileList as a5, type CustomerProfilePatch as a6, type CustomerProfileSearchOptions as a7, type CustomerResourcePolicyAssignment as a8, type DelegationAction as a9, type FailureView as aA, type FeedbackRating as aB, type FeedbackReason as aC, type FileAssetReference as aD, GraphBuilder as aE, type GraphDefinition as aF, type GraphEdge as aG, type GraphHints as aH, type GraphNode as aI, type GraphValueRef as aJ, type HitlAction as aK, type HitlAnswer as aL, type HostedArtifactDraft as aM, HostedArtifactsNamespace as aN, type IndexedCleanupAck as aO, type IndexedContent as aP, type IndexedContentListOptions as aQ, type IndexedContentPage as aR, type IndexedRecordIdListOptions as aS, type IndexedRecordIdPage as aT, type IngestionBatch as aU, type IngestionBatchListOptions as aV, type IngestionBatchPage as aW, type IngestionJob as aX, type IngestionJobAcknowledgment as aY, type IngestionJobGetOptions as aZ, type IngestionJobListOptions as a_, type DelegationActionReceipt as aa, type DelegationActionRequest as ab, type DelegationEvents as ac, type DelegationHistory as ad, type DelegationHistoryTurn as ae, type DelegationStatus as af, type DelegationTask as ag, type DelegationTaskList as ah, type EffectiveCustomerResourcePolicyRequest as ai, type EffectiveResourcePolicy as aj, type EmbedAgentAliasResolution as ak, type EmbedAttachmentContentAccessRequest as al, type EmbedCustomerPrincipalResolveRequest as am, type EmbedCustomerPrincipalResolveResponse as an, type EmbedDelegationOptions as ao, type EmbedResourcePolicyRequest as ap, type EmbedRunCancelOptions as aq, type EmbedRunStartRequest as ar, type EmbedRuntimeBootstrap as as, type EmbedStreamRequest as at, type EmbedThreadMessageEdit as au, type EmbedThreadMessageScope as av, type EmbedThreadMessageSubmit as aw, type EmbeddedResponseFeedbackInput as ax, type EvidenceLocation as ay, type FailureCategory as az, AgentDefinitionBuilder as b, type RawVectorRecord as b$, type IngestionJobStart as b0, type JobFieldData as b1, type JobPayloadDownload as b2, type JobResult as b3, type JobResultOptions as b4, type JobStep as b5, type JobStepData as b6, type JobStepDataOptions as b7, type JobStepDownloadOptions as b8, type JobStepFieldOptions as b9, type NamespacePage as bA, type NamespaceSummary as bB, type NativePlatform as bC, type NodeAuthoringSpec as bD, type NodeCatalogItem as bE, type NodeCatalogResponse as bF, type NodeSchemaResponse as bG, type OCROptions as bH, type PayloadAvailability as bI, type PipelineInputField as bJ, type PipelineInputSchema as bK, type PipelineInputStep as bL, type PipelineInputUpload as bM, type PipelineListOptions as bN, type PipelinePage as bO, type PipelineResultPage as bP, type PipelineSummary as bQ, type PortableResourceKind as bR, type ProcessedContent as bS, type ProcessedContentOptions as bT, type ProcessedContentReference as bU, type ProcessingInput as bV, type ProcessingInputSource as bW, type ProcessingProgress as bX, type PublishedExecutable as bY, type RagRetention as bZ, type RawVectorMatch as b_, type JobSteps as ba, type KnowledgeStore as bb, type KnowledgeStoreChunking as bc, type KnowledgeStoreCreate as bd, type KnowledgeStoreListOptions as be, type KnowledgeStoreNamespace as bf, type KnowledgeStorePage as bg, type KnowledgeStoreStats as bh, type KnowledgeStoreUpdate as bi, type LatestOrPinnedPolicy as bj, type McpAuthStartRequest as bk, type McpAuthStartResult as bl, type ModelCapabilitiesV1 as bm, type ModelOffering as bn, type ModelPricingDimension as bo, type ModelProviderCreate as bp, type ModelProviderRoute as bq, type ModelRequirements as br, type ModelRuntimeKind as bs, type ModelSummary as bt, ModelsNamespace as bu, type MultiAgentThreadListRequest as bv, type MultiAgentThreadSummaryEventOptions as bw, type NamespaceDataStats as bx, type NamespaceInput as by, type NamespaceListOptions as bz, type AgentDefinitionOptions as c, type RunTrace as c$, type RecordBatchResult as c0, type RecordCapabilities as c1, type RecordDeleteRequest as c2, type RecordFetchRequest as c3, type RecordFetchResult as c4, type RecordListRequest as c5, type RecordMutationAck as c6, type RecordPage as c7, type RecordQueryRequest as c8, type RecordQueryResult as c9, type ResourceInstallationSecretsRequest as cA, type ResourcePackageArchive as cB, type ResourcePackageCandidateOptions as cC, type ResourcePackageDependency as cD, type ResourcePackageDiagnostic as cE, type ResourcePackageExportPlan as cF, type ResourcePackageExportRequest as cG, type ResourcePackageImportPreview as cH, type ResourcePackageImportResult as cI, type ResourcePackageImportUpload as cJ, type ResourcePackageUpload as cK, type ResourcePackageValidationResult as cL, type ResourcePolicyList as cM, type ResourcePolicyQuotaSchedule as cN, type ResourcePolicyQuotaScheduleResult as cO, type ResourcePolicySubjectRef as cP, type ResourcePolicySummary as cQ, type ResourceSelector as cR, type ResourceToolExport as cS, type ResponseFeedback as cT, type ResponseFeedbackResult as cU, type ResumeRunRequest as cV, type RetrievalEvidence as cW, type RunCancelOptions as cX, type RunContextOptions as cY, type RunExecutionLimits as cZ, type RunStatus as c_, type RecordUpdateRequest as ca, type RecordUpsertRequest as cb, type RequestOptions as cc, type ResetResourcePolicyQuotaRequest as cd, type ResourceCallableBinding as ce, type ResourceCallableBindingStatus as cf, type ResourceCandidateList as cg, type ResourceInstallation as ch, type ResourceInstallationApplication as ci, type ResourceInstallationApplyRequest as cj, type ResourceInstallationBinding as ck, type ResourceInstallationCreateRequest as cl, type ResourceInstallationDeploymentRequest as cm, type ResourceInstallationLinkRequest as cn, type ResourceInstallationList as co, type ResourceInstallationOperation as cp, type ResourceInstallationPlan as cq, type ResourceInstallationPlanUpload as cr, type ResourceInstallationPublication as cs, type ResourceInstallationPublishRequest as ct, type ResourceInstallationPullAcceptRequest as cu, type ResourceInstallationPullChange as cv, type ResourceInstallationPullPayload as cw, type ResourceInstallationPullPlan as cx, type ResourceInstallationResourceListOptions as cy, type ResourceInstallationSecretStatus as cz, type AgentListResponse as d, type RunUsage as d0, type ServerAttachmentUploadOptions as d1, type ServerEmbedAttachmentUploadOptions as d2, type SetCustomerResourcePolicyAssignmentRequest as d3, type SetResourcePolicyQuotaScheduleRequest as d4, type SourceDescriptor as d5, type SourceOutcome as d6, type StartRunResult as d7, type StateVariableDefinition as d8, type StreamRequestOptions as d9, type StreamResult as da, type ThreadComputerContentAccess as db, type ThreadComputerFile as dc, type ThreadComputerFileOptions as dd, type ThreadComputerFileText as de, type ThreadComputerFiles as df, type ThreadComputerStatus as dg, type ThreadDeleteOptions as dh, type ThreadDetailOptions as di, type ThreadListOptions as dj, type ThreadSummaryEventOptions as dk, type TraceContent as dl, type TraceError as dm, type TraceSpan as dn, type TraceSpanKind as dp, type TraceSpanStatus as dq, type TraceView as dr, type UpdateClientDeploymentRequest as ds, type UploadPart as dt, type UploadPartAck as du, type UploadSession as dv, type UploadSessionStart as dw, type WaitForAgentRunOptions as dx, type WorkflowInputDefinition as dy, 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 ArtifactRelayClientCreate as v, type ArtifactRelayClientList as w, type ArtifactRelayClientStatus as x, type ArtifactRelayConnectionTicket as y, type ArtifactRelayOptionsQuery as z };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import * as _agents24_client from '@agents24/client';
|
|
2
|
+
import { ClientInputFeature } from '@agents24/client';
|
|
1
3
|
import * as _agents24_client_protocol from '@agents24/client/protocol';
|
|
2
4
|
import { ToolInputOverrides, PublicResponseBlock, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
|
|
3
|
-
import { ClientInputFeature } from '@agents24/client';
|
|
4
5
|
|
|
5
6
|
type RunUsage = {
|
|
6
7
|
source?: "exact" | "estimated" | "unknown";
|
|
@@ -15,6 +16,14 @@ type RunUsage = {
|
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
type EmbedStreamRequest = {
|
|
19
|
+
customer_tenant?: {
|
|
20
|
+
issuer: string;
|
|
21
|
+
subject: string;
|
|
22
|
+
};
|
|
23
|
+
customerTenant?: {
|
|
24
|
+
issuer: string;
|
|
25
|
+
subject: string;
|
|
26
|
+
};
|
|
18
27
|
relay_client_id?: string | null;
|
|
19
28
|
execution_limits?: RunExecutionLimits;
|
|
20
29
|
client_submission_id?: string;
|
|
@@ -145,6 +154,10 @@ type EmbedThreadMessageScope = {
|
|
|
145
154
|
chatScope?: string;
|
|
146
155
|
};
|
|
147
156
|
type EmbedThreadMessageSubmit = {
|
|
157
|
+
customerTenant?: {
|
|
158
|
+
issuer: string;
|
|
159
|
+
subject: string;
|
|
160
|
+
};
|
|
148
161
|
relayClientId?: string | null;
|
|
149
162
|
executionLimits?: RunExecutionLimits;
|
|
150
163
|
knowledgeNamespaces?: Record<string, string>;
|
|
@@ -603,6 +616,14 @@ type StreamRequestOptions = RequestOptions & {
|
|
|
603
616
|
onControl?: (control: _agents24_client_protocol.ObservationControl) => void | Promise<void>;
|
|
604
617
|
};
|
|
605
618
|
type AgentStreamRequest = {
|
|
619
|
+
customer_tenant?: {
|
|
620
|
+
issuer: string;
|
|
621
|
+
subject: string;
|
|
622
|
+
};
|
|
623
|
+
customerTenant?: {
|
|
624
|
+
issuer: string;
|
|
625
|
+
subject: string;
|
|
626
|
+
};
|
|
606
627
|
relay_client_id?: string | null;
|
|
607
628
|
client_submission_id?: string;
|
|
608
629
|
input?: string;
|
|
@@ -619,6 +640,14 @@ type AgentStreamRequest = {
|
|
|
619
640
|
agent_version_id?: string;
|
|
620
641
|
};
|
|
621
642
|
type ControlPlaneAgentRunRequest = {
|
|
643
|
+
customer_tenant?: {
|
|
644
|
+
issuer: string;
|
|
645
|
+
subject: string;
|
|
646
|
+
};
|
|
647
|
+
customerTenant?: {
|
|
648
|
+
issuer: string;
|
|
649
|
+
subject: string;
|
|
650
|
+
};
|
|
622
651
|
relay_client_id?: string | null;
|
|
623
652
|
execution_limits?: RunExecutionLimits;
|
|
624
653
|
knowledge_namespaces?: Record<string, string>;
|
|
@@ -828,6 +857,7 @@ type FailureView = {
|
|
|
828
857
|
details: Record<string, unknown>;
|
|
829
858
|
};
|
|
830
859
|
type RunStatus = {
|
|
860
|
+
capacity_wait?: _agents24_client.CapacityWait;
|
|
831
861
|
execution_budget?: {
|
|
832
862
|
max_tool_calls_per_run: number;
|
|
833
863
|
tool_calls_used: number;
|
|
@@ -1064,6 +1094,10 @@ type ClientDeploymentListResponse = {
|
|
|
1064
1094
|
next_cursor: string | null;
|
|
1065
1095
|
};
|
|
1066
1096
|
type CreateBackendClientSessionRequest = {
|
|
1097
|
+
customer_tenant?: {
|
|
1098
|
+
issuer: string;
|
|
1099
|
+
subject: string;
|
|
1100
|
+
};
|
|
1067
1101
|
subject: string;
|
|
1068
1102
|
subject_issuer?: string;
|
|
1069
1103
|
browser_origin?: string;
|
|
@@ -1557,7 +1591,8 @@ type ResourcePolicyQuotaScheduleResult = {
|
|
|
1557
1591
|
type EmbeddedRunSnapshot = {
|
|
1558
1592
|
run_id: string;
|
|
1559
1593
|
thread_id: string | null;
|
|
1560
|
-
status: "queued" | "pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "paused";
|
|
1594
|
+
status: "queued" | "pending" | "running" | "waiting" | "interrupted" | "cancelling" | "completed" | "failed" | "cancelled" | "paused";
|
|
1595
|
+
capacity_wait?: _agents24_client.CapacityWait;
|
|
1561
1596
|
final_output: unknown;
|
|
1562
1597
|
final_output_available: boolean;
|
|
1563
1598
|
failure: FailureView | null;
|
|
@@ -2093,8 +2128,16 @@ type IngestionJobStart = {
|
|
|
2093
2128
|
name?: string | null;
|
|
2094
2129
|
knowledge_namespaces?: Record<string, string>;
|
|
2095
2130
|
scheduling_group?: string;
|
|
2131
|
+
customer_tenant?: {
|
|
2132
|
+
issuer: string;
|
|
2133
|
+
subject: string;
|
|
2134
|
+
};
|
|
2096
2135
|
} & {
|
|
2097
2136
|
knowledgeNamespaces?: Record<string, string>;
|
|
2137
|
+
customerTenant?: {
|
|
2138
|
+
issuer: string;
|
|
2139
|
+
subject: string;
|
|
2140
|
+
};
|
|
2098
2141
|
};
|
|
2099
2142
|
type IngestionJobAcknowledgment = {
|
|
2100
2143
|
job_id: string;
|
|
@@ -2143,6 +2186,7 @@ type IngestionJob = {
|
|
|
2143
2186
|
retention?: RagRetention;
|
|
2144
2187
|
input_params?: Record<string, unknown>;
|
|
2145
2188
|
input_availability?: PayloadAvailability;
|
|
2189
|
+
progress?: ProcessingProgress;
|
|
2146
2190
|
};
|
|
2147
2191
|
type IngestionJobPage = {
|
|
2148
2192
|
items: Array<IngestionJob>;
|
|
@@ -2621,6 +2665,17 @@ type PipelineResultPage = {
|
|
|
2621
2665
|
result_limit: number;
|
|
2622
2666
|
truncated: false;
|
|
2623
2667
|
};
|
|
2668
|
+
type CapacityWait = {
|
|
2669
|
+
reason: "local_capacity" | "provider_capacity" | "provider_budget";
|
|
2670
|
+
retry_at: string;
|
|
2671
|
+
deadline: string | null;
|
|
2672
|
+
};
|
|
2673
|
+
type ProcessingProgress = {
|
|
2674
|
+
stage: string;
|
|
2675
|
+
completed_units: number;
|
|
2676
|
+
total_units: number;
|
|
2677
|
+
capacity_wait?: CapacityWait;
|
|
2678
|
+
};
|
|
2624
2679
|
|
|
2625
2680
|
declare class PipelinesNamespace {
|
|
2626
2681
|
protected readonly http: Agents24HttpClient;
|
|
@@ -2712,4 +2767,4 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
2712
2767
|
graph(): GraphBuilder;
|
|
2713
2768
|
}
|
|
2714
2769
|
|
|
2715
|
-
export { type
|
|
2770
|
+
export { type ConversationThreadOptions as $, Agents24 as A, type ArtifactRelayTicketRequest as B, type AttachRunRequest as C, type AttachmentContentAccessRequest as D, type EmbeddedRunSnapshot as E, type BackendSessionRequestOptions as F, type BranchingHint as G, type CapacityWait as H, type ClearCustomerResourcePolicyAssignmentResult as I, type ClientAuthMode as J, type ClientDeployment as K, type ClientDeploymentListQuery as L, type ClientDeploymentListResponse as M, type ClientNativeProfile as N, type ClientRuntimeNativeProfileInput as O, type ClientRuntimeOidcConfig as P, type ClientRuntimePolicyInput as Q, type RelayOptions as R, type ClientSessionCredentials as S, type ContentChunk as T, type ContentSegment as U, type ControlPlaneAgentRunRequest as V, type ControlPlaneRunEventsResponse as W, type ConversationRunRequest as X, type ConversationRunResult as Y, type ConversationRuntimeSelectionRequest as Z, type ConversationRuntimeSelectionResult as _, type AgentCreateRequest as a, type IngestionJobPage as a$, type CreateBackendClientSessionRequest as a0, type CreateClientDeploymentRequest as a1, type CustomerIdentityRequest as a2, type CustomerPrincipalRefRequest as a3, type CustomerProfile as a4, type CustomerProfileList as a5, type CustomerProfilePatch as a6, type CustomerProfileSearchOptions as a7, type CustomerResourcePolicyAssignment as a8, type DelegationAction as a9, type FailureView as aA, type FeedbackRating as aB, type FeedbackReason as aC, type FileAssetReference as aD, GraphBuilder as aE, type GraphDefinition as aF, type GraphEdge as aG, type GraphHints as aH, type GraphNode as aI, type GraphValueRef as aJ, type HitlAction as aK, type HitlAnswer as aL, type HostedArtifactDraft as aM, HostedArtifactsNamespace as aN, type IndexedCleanupAck as aO, type IndexedContent as aP, type IndexedContentListOptions as aQ, type IndexedContentPage as aR, type IndexedRecordIdListOptions as aS, type IndexedRecordIdPage as aT, type IngestionBatch as aU, type IngestionBatchListOptions as aV, type IngestionBatchPage as aW, type IngestionJob as aX, type IngestionJobAcknowledgment as aY, type IngestionJobGetOptions as aZ, type IngestionJobListOptions as a_, type DelegationActionReceipt as aa, type DelegationActionRequest as ab, type DelegationEvents as ac, type DelegationHistory as ad, type DelegationHistoryTurn as ae, type DelegationStatus as af, type DelegationTask as ag, type DelegationTaskList as ah, type EffectiveCustomerResourcePolicyRequest as ai, type EffectiveResourcePolicy as aj, type EmbedAgentAliasResolution as ak, type EmbedAttachmentContentAccessRequest as al, type EmbedCustomerPrincipalResolveRequest as am, type EmbedCustomerPrincipalResolveResponse as an, type EmbedDelegationOptions as ao, type EmbedResourcePolicyRequest as ap, type EmbedRunCancelOptions as aq, type EmbedRunStartRequest as ar, type EmbedRuntimeBootstrap as as, type EmbedStreamRequest as at, type EmbedThreadMessageEdit as au, type EmbedThreadMessageScope as av, type EmbedThreadMessageSubmit as aw, type EmbeddedResponseFeedbackInput as ax, type EvidenceLocation as ay, type FailureCategory as az, AgentDefinitionBuilder as b, type RawVectorRecord as b$, type IngestionJobStart as b0, type JobFieldData as b1, type JobPayloadDownload as b2, type JobResult as b3, type JobResultOptions as b4, type JobStep as b5, type JobStepData as b6, type JobStepDataOptions as b7, type JobStepDownloadOptions as b8, type JobStepFieldOptions as b9, type NamespacePage as bA, type NamespaceSummary as bB, type NativePlatform as bC, type NodeAuthoringSpec as bD, type NodeCatalogItem as bE, type NodeCatalogResponse as bF, type NodeSchemaResponse as bG, type OCROptions as bH, type PayloadAvailability as bI, type PipelineInputField as bJ, type PipelineInputSchema as bK, type PipelineInputStep as bL, type PipelineInputUpload as bM, type PipelineListOptions as bN, type PipelinePage as bO, type PipelineResultPage as bP, type PipelineSummary as bQ, type PortableResourceKind as bR, type ProcessedContent as bS, type ProcessedContentOptions as bT, type ProcessedContentReference as bU, type ProcessingInput as bV, type ProcessingInputSource as bW, type ProcessingProgress as bX, type PublishedExecutable as bY, type RagRetention as bZ, type RawVectorMatch as b_, type JobSteps as ba, type KnowledgeStore as bb, type KnowledgeStoreChunking as bc, type KnowledgeStoreCreate as bd, type KnowledgeStoreListOptions as be, type KnowledgeStoreNamespace as bf, type KnowledgeStorePage as bg, type KnowledgeStoreStats as bh, type KnowledgeStoreUpdate as bi, type LatestOrPinnedPolicy as bj, type McpAuthStartRequest as bk, type McpAuthStartResult as bl, type ModelCapabilitiesV1 as bm, type ModelOffering as bn, type ModelPricingDimension as bo, type ModelProviderCreate as bp, type ModelProviderRoute as bq, type ModelRequirements as br, type ModelRuntimeKind as bs, type ModelSummary as bt, ModelsNamespace as bu, type MultiAgentThreadListRequest as bv, type MultiAgentThreadSummaryEventOptions as bw, type NamespaceDataStats as bx, type NamespaceInput as by, type NamespaceListOptions as bz, type AgentDefinitionOptions as c, type RunTrace as c$, type RecordBatchResult as c0, type RecordCapabilities as c1, type RecordDeleteRequest as c2, type RecordFetchRequest as c3, type RecordFetchResult as c4, type RecordListRequest as c5, type RecordMutationAck as c6, type RecordPage as c7, type RecordQueryRequest as c8, type RecordQueryResult as c9, type ResourceInstallationSecretsRequest as cA, type ResourcePackageArchive as cB, type ResourcePackageCandidateOptions as cC, type ResourcePackageDependency as cD, type ResourcePackageDiagnostic as cE, type ResourcePackageExportPlan as cF, type ResourcePackageExportRequest as cG, type ResourcePackageImportPreview as cH, type ResourcePackageImportResult as cI, type ResourcePackageImportUpload as cJ, type ResourcePackageUpload as cK, type ResourcePackageValidationResult as cL, type ResourcePolicyList as cM, type ResourcePolicyQuotaSchedule as cN, type ResourcePolicyQuotaScheduleResult as cO, type ResourcePolicySubjectRef as cP, type ResourcePolicySummary as cQ, type ResourceSelector as cR, type ResourceToolExport as cS, type ResponseFeedback as cT, type ResponseFeedbackResult as cU, type ResumeRunRequest as cV, type RetrievalEvidence as cW, type RunCancelOptions as cX, type RunContextOptions as cY, type RunExecutionLimits as cZ, type RunStatus as c_, type RecordUpdateRequest as ca, type RecordUpsertRequest as cb, type RequestOptions as cc, type ResetResourcePolicyQuotaRequest as cd, type ResourceCallableBinding as ce, type ResourceCallableBindingStatus as cf, type ResourceCandidateList as cg, type ResourceInstallation as ch, type ResourceInstallationApplication as ci, type ResourceInstallationApplyRequest as cj, type ResourceInstallationBinding as ck, type ResourceInstallationCreateRequest as cl, type ResourceInstallationDeploymentRequest as cm, type ResourceInstallationLinkRequest as cn, type ResourceInstallationList as co, type ResourceInstallationOperation as cp, type ResourceInstallationPlan as cq, type ResourceInstallationPlanUpload as cr, type ResourceInstallationPublication as cs, type ResourceInstallationPublishRequest as ct, type ResourceInstallationPullAcceptRequest as cu, type ResourceInstallationPullChange as cv, type ResourceInstallationPullPayload as cw, type ResourceInstallationPullPlan as cx, type ResourceInstallationResourceListOptions as cy, type ResourceInstallationSecretStatus as cz, type AgentListResponse as d, type RunUsage as d0, type ServerAttachmentUploadOptions as d1, type ServerEmbedAttachmentUploadOptions as d2, type SetCustomerResourcePolicyAssignmentRequest as d3, type SetResourcePolicyQuotaScheduleRequest as d4, type SourceDescriptor as d5, type SourceOutcome as d6, type StartRunResult as d7, type StateVariableDefinition as d8, type StreamRequestOptions as d9, type StreamResult as da, type ThreadComputerContentAccess as db, type ThreadComputerFile as dc, type ThreadComputerFileOptions as dd, type ThreadComputerFileText as de, type ThreadComputerFiles as df, type ThreadComputerStatus as dg, type ThreadDeleteOptions as dh, type ThreadDetailOptions as di, type ThreadListOptions as dj, type ThreadSummaryEventOptions as dk, type TraceContent as dl, type TraceError as dm, type TraceSpan as dn, type TraceSpanKind as dp, type TraceSpanStatus as dq, type TraceView as dr, type UpdateClientDeploymentRequest as ds, type UploadPart as dt, type UploadPartAck as du, type UploadSession as dv, type UploadSessionStart as dw, type WaitForAgentRunOptions as dx, type WorkflowInputDefinition as dy, 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 ArtifactRelayClientCreate as v, type ArtifactRelayClientList as w, type ArtifactRelayClientStatus as x, type ArtifactRelayConnectionTicket as y, type ArtifactRelayOptionsQuery as z };
|
package/dist/index.cjs
CHANGED
|
@@ -208,6 +208,10 @@ async function consumeThreadSummaryEventStream(response, onEvent, signal, onCont
|
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
// src/agents.ts
|
|
211
|
+
function runBody(payload) {
|
|
212
|
+
const { customerTenant, ...wire } = payload;
|
|
213
|
+
return { ...wire, ...customerTenant === void 0 ? {} : { customer_tenant: customerTenant } };
|
|
214
|
+
}
|
|
211
215
|
var AgentsNamespace = class {
|
|
212
216
|
constructor(http) {
|
|
213
217
|
this.http = http;
|
|
@@ -244,7 +248,7 @@ var AgentsNamespace = class {
|
|
|
244
248
|
return this.http.requestJson(`/agents/${agentId}/publish`, { method: "POST", body: {}, options, mutation: true });
|
|
245
249
|
}
|
|
246
250
|
startRun(agentId, payload, options) {
|
|
247
|
-
return this.http.requestJson(`/agents/${agentId}/run`, { method: "POST", body: payload, options, mutation: true });
|
|
251
|
+
return this.http.requestJson(`/agents/${agentId}/run`, { method: "POST", body: runBody(payload), options, mutation: true });
|
|
248
252
|
}
|
|
249
253
|
listThreadMessages(agentId, threadId, query) {
|
|
250
254
|
return this.http.requestJson(`/agents/${encodeURIComponent(agentId)}/threads/${encodeURIComponent(threadId)}/messages`, { query });
|
|
@@ -296,7 +300,7 @@ var AgentsNamespace = class {
|
|
|
296
300
|
const response = await this.http.fetchOrThrow(this.http.url(`/agents/${agentId}/stream`, { mode, stream_features: "assistant-completion-v1" }), {
|
|
297
301
|
method: "POST",
|
|
298
302
|
headers: this.http.streamHeaders(),
|
|
299
|
-
body: JSON.stringify(payload),
|
|
303
|
+
body: JSON.stringify(runBody(payload)),
|
|
300
304
|
signal: options.signal
|
|
301
305
|
}, "Failed to connect to the agent stream endpoint.");
|
|
302
306
|
await assertOk(response);
|
|
@@ -666,9 +670,10 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
|
|
|
666
670
|
}
|
|
667
671
|
namespacePayload(payload) {
|
|
668
672
|
if (!payload || typeof payload !== "object") return payload;
|
|
669
|
-
const { knowledgeNamespaces, chatScope, ...wire } = payload;
|
|
673
|
+
const { knowledgeNamespaces, chatScope, customerTenant, ...wire } = payload;
|
|
670
674
|
return {
|
|
671
675
|
...wire,
|
|
676
|
+
...customerTenant === void 0 ? {} : { customer_tenant: customerTenant },
|
|
672
677
|
...knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: knowledgeNamespaces },
|
|
673
678
|
...chatScope === void 0 ? {} : { chat_scope: chatScope }
|
|
674
679
|
};
|
|
@@ -805,6 +810,7 @@ var EmbedNamespace = class extends EmbedDelegationsNamespace {
|
|
|
805
810
|
attachment_ids: payload.attachmentIds ?? [],
|
|
806
811
|
requested_model_id: payload.requestedModelId,
|
|
807
812
|
knowledge_namespaces: payload.knowledgeNamespaces,
|
|
813
|
+
customer_tenant: payload.customerTenant,
|
|
808
814
|
execution_limits: payload.executionLimits,
|
|
809
815
|
tool_inputs: payload.toolInputs ?? {},
|
|
810
816
|
...payload.metadata === void 0 ? {} : { metadata: payload.metadata }
|
|
@@ -1590,7 +1596,7 @@ var IngestionJobsNamespace = class {
|
|
|
1590
1596
|
start(request, options) {
|
|
1591
1597
|
return this.http.requestJson("/admin/pipelines/jobs", {
|
|
1592
1598
|
method: "POST",
|
|
1593
|
-
body: (({ knowledgeNamespaces, ...wire }) => ({ ...wire, ...knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: knowledgeNamespaces } }))(request),
|
|
1599
|
+
body: (({ knowledgeNamespaces, customerTenant, ...wire }) => ({ ...wire, ...knowledgeNamespaces === void 0 ? {} : { knowledge_namespaces: knowledgeNamespaces }, ...customerTenant === void 0 ? {} : { customer_tenant: customerTenant } }))(request),
|
|
1594
1600
|
options,
|
|
1595
1601
|
mutation: true
|
|
1596
1602
|
});
|