@agents24/node 0.5.26 → 0.5.28
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 +7 -1
- package/compatibility.json +7 -7
- package/dist/artifacts.cjs +2 -1
- package/dist/artifacts.cjs.map +1 -1
- package/dist/artifacts.d.cts +23 -2
- package/dist/artifacts.d.ts +23 -2
- package/dist/artifacts.js +2 -1
- package/dist/artifacts.js.map +1 -1
- package/dist/bff.cjs +60 -11
- package/dist/bff.cjs.map +1 -1
- package/dist/bff.d.cts +2 -1
- package/dist/bff.d.ts +2 -1
- package/dist/bff.js +60 -11
- package/dist/bff.js.map +1 -1
- package/dist/{client-yYT9UnqF.d.cts → client-yHQmkcMz.d.cts} +269 -12
- package/dist/{client-yYT9UnqF.d.ts → client-yHQmkcMz.d.ts} +269 -12
- package/dist/index.cjs +174 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +173 -15
- package/dist/index.js.map +1 -1
- package/dist/relay.cjs +514 -0
- package/dist/relay.cjs.map +1 -0
- package/dist/relay.d.cts +98 -0
- package/dist/relay.d.ts +98 -0
- package/dist/relay.js +511 -0
- package/dist/relay.js.map +1 -0
- package/dist/server.cjs +80 -10
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +3 -0
- package/dist/server.d.ts +3 -0
- package/dist/server.js +80 -10
- package/dist/server.js.map +1 -1
- package/dist/types/agents.d.ts +1 -0
- package/dist/types/agents.d.ts.map +1 -1
- package/dist/types/artifacts.d.ts +22 -1
- package/dist/types/artifacts.d.ts.map +1 -1
- package/dist/types/bff-request.d.ts +5 -3
- package/dist/types/bff-request.d.ts.map +1 -1
- package/dist/types/bff.d.ts.map +1 -1
- package/dist/types/client.d.ts +4 -0
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/embed-run-wait.d.ts +9 -0
- package/dist/types/embed-run-wait.d.ts.map +1 -0
- package/dist/types/embed-types.d.ts +15 -2
- package/dist/types/embed-types.d.ts.map +1 -1
- package/dist/types/embed.d.ts +5 -1
- package/dist/types/embed.d.ts.map +1 -1
- package/dist/types/generated/delegation-types.d.ts +3 -2
- package/dist/types/generated/delegation-types.d.ts.map +1 -1
- package/dist/types/generated/ingestion-types.d.ts +33 -1
- package/dist/types/generated/ingestion-types.d.ts.map +1 -1
- package/dist/types/generated/ingestionJobs.d.ts +2 -2
- package/dist/types/generated/ingestionJobs.d.ts.map +1 -1
- package/dist/types/generated/knowledgeStores.d.ts +2 -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/relayClients.d.ts +13 -0
- package/dist/types/generated/relayClients.d.ts.map +1 -0
- package/dist/types/generated/resourceInstallations.d.ts +1 -2
- package/dist/types/generated/resourceInstallations.d.ts.map +1 -1
- package/dist/types/generated/run-usage.d.ts +12 -0
- package/dist/types/generated/run-usage.d.ts.map +1 -0
- package/dist/types/http.d.ts +1 -0
- package/dist/types/http.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/models.d.ts +92 -0
- package/dist/types/models.d.ts.map +1 -0
- package/dist/types/relay-http.d.ts +14 -0
- package/dist/types/relay-http.d.ts.map +1 -0
- package/dist/types/relay.d.ts +89 -0
- package/dist/types/relay.d.ts.map +1 -0
- package/dist/types/server.d.ts +3 -0
- package/dist/types/server.d.ts.map +1 -1
- package/dist/types/types.d.ts +95 -6
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +9 -3
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import * as _agents24_client_protocol from '@agents24/client/protocol';
|
|
2
2
|
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
|
+
type RunUsage = {
|
|
6
|
+
source?: "exact" | "estimated" | "unknown";
|
|
7
|
+
input_tokens?: number | null;
|
|
8
|
+
output_tokens?: number | null;
|
|
9
|
+
total_tokens?: number;
|
|
10
|
+
cached_input_tokens?: number | null;
|
|
11
|
+
cache_write_input_tokens?: number | null;
|
|
12
|
+
cache_write_input_tokens_by_ttl?: Record<string, number>;
|
|
13
|
+
cached_output_tokens?: number | null;
|
|
14
|
+
reasoning_tokens?: number | null;
|
|
15
|
+
};
|
|
3
16
|
|
|
4
17
|
type EmbedStreamRequest = {
|
|
18
|
+
relay_client_id?: string | null;
|
|
19
|
+
execution_limits?: RunExecutionLimits;
|
|
5
20
|
client_submission_id?: string;
|
|
6
21
|
agent_version_id?: string;
|
|
7
22
|
input?: string;
|
|
@@ -90,7 +105,9 @@ type EmbedRuntimeBootstrap = {
|
|
|
90
105
|
agent_aliases: string[];
|
|
91
106
|
agent_version_id?: string;
|
|
92
107
|
agent_version_number?: number;
|
|
93
|
-
features: Record<string, unknown
|
|
108
|
+
features: Record<string, unknown> & {
|
|
109
|
+
inputs: ClientInputFeature;
|
|
110
|
+
};
|
|
94
111
|
thread_events_path?: string | null;
|
|
95
112
|
thread_events_url?: string | null;
|
|
96
113
|
};
|
|
@@ -128,6 +145,8 @@ type EmbedThreadMessageScope = {
|
|
|
128
145
|
chatScope?: string;
|
|
129
146
|
};
|
|
130
147
|
type EmbedThreadMessageSubmit = {
|
|
148
|
+
relayClientId?: string | null;
|
|
149
|
+
executionLimits?: RunExecutionLimits;
|
|
131
150
|
knowledgeNamespaces?: Record<string, string>;
|
|
132
151
|
} & EmbedThreadMessageScope & {
|
|
133
152
|
agentVersionId?: string | null;
|
|
@@ -148,6 +167,7 @@ type EmbedThreadMessageEdit = EmbedThreadMessageScope & {
|
|
|
148
167
|
attachmentIds?: string[];
|
|
149
168
|
requestedModelId?: string;
|
|
150
169
|
mode?: "steer";
|
|
170
|
+
metadata?: Record<string, unknown>;
|
|
151
171
|
};
|
|
152
172
|
type ThreadComputerStatus = {
|
|
153
173
|
available: boolean;
|
|
@@ -242,6 +262,7 @@ type ConversationThreadOptions = ThreadDetailOptions & {
|
|
|
242
262
|
chatScope?: string;
|
|
243
263
|
};
|
|
244
264
|
type ConversationRuntimeSelectionRequest = {
|
|
265
|
+
relay_client_id?: string | null;
|
|
245
266
|
agent_ids: string[];
|
|
246
267
|
preferred_agent_id: string;
|
|
247
268
|
preferred_model_id?: string | null;
|
|
@@ -256,6 +277,7 @@ type ConversationRuntimeSelectionResult = {
|
|
|
256
277
|
runtime_selection: {
|
|
257
278
|
agent_id: string;
|
|
258
279
|
model_id: string | null;
|
|
280
|
+
relay_client_id?: string | null;
|
|
259
281
|
};
|
|
260
282
|
models: {
|
|
261
283
|
default_id: string | null;
|
|
@@ -295,6 +317,9 @@ type EmbedAttachmentContentAccessRequest = AttachmentContentAccessRequest & {
|
|
|
295
317
|
chatScope?: string;
|
|
296
318
|
};
|
|
297
319
|
type ServerEmbedAttachmentUploadOptions = ServerAttachmentUploadOptions & {
|
|
320
|
+
/** Bind tool-produced media to the executing run/version. */
|
|
321
|
+
runId?: string;
|
|
322
|
+
signal?: AbortSignal;
|
|
298
323
|
externalUserId: string;
|
|
299
324
|
externalSessionId?: string;
|
|
300
325
|
runtimeTarget?: "draft" | "published";
|
|
@@ -315,7 +340,7 @@ interface DelegationResult {
|
|
|
315
340
|
interface DelegationInvocation {
|
|
316
341
|
run_id: string;
|
|
317
342
|
status: string;
|
|
318
|
-
usage:
|
|
343
|
+
usage: RunUsage;
|
|
319
344
|
}
|
|
320
345
|
interface DelegationQuestionOption {
|
|
321
346
|
id: string;
|
|
@@ -389,7 +414,7 @@ interface DelegationHistoryTurn {
|
|
|
389
414
|
response_blocks: Array<PublicResponseBlock>;
|
|
390
415
|
completed_at?: string | null;
|
|
391
416
|
final_output?: unknown;
|
|
392
|
-
run_usage?:
|
|
417
|
+
run_usage?: RunUsage | null;
|
|
393
418
|
exchanges?: Array<DelegationExchange>;
|
|
394
419
|
}
|
|
395
420
|
interface DelegationHistoryPaging {
|
|
@@ -471,6 +496,8 @@ declare class DelegationsNamespace {
|
|
|
471
496
|
act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
|
|
472
497
|
}
|
|
473
498
|
|
|
499
|
+
type ModelRuntimeKind = "chat" | "embedding" | "speech_to_text" | "image_generation" | "rerank" | "ocr";
|
|
500
|
+
type ModelPricingDimension = "audio_input_second" | "audio_input_token" | "audio_output_token" | "cache_write_input_token" | "cached_input_token" | "image_output" | "input_token" | "ocr_page" | "output_token" | "reasoning_token" | "request" | "search_request";
|
|
474
501
|
type ModelCapabilityFeatures = {
|
|
475
502
|
tool_calling: boolean;
|
|
476
503
|
structured_output: boolean;
|
|
@@ -500,6 +527,14 @@ type ModelRequirements = {
|
|
|
500
527
|
input_modalities?: Array<ModelInputModality>;
|
|
501
528
|
output_modalities?: Array<ModelOutputModality>;
|
|
502
529
|
required_features?: Array<"tool_calling" | "structured_output" | "reasoning" | "segment_timestamps" | "word_timestamps">;
|
|
530
|
+
providers?: Array<string>;
|
|
531
|
+
runtime_kinds?: Array<"chat" | "embedding" | "speech_to_text" | "image_generation" | "rerank" | "ocr">;
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
type RunExecutionLimits = {
|
|
535
|
+
max_tool_calls_per_run?: number;
|
|
536
|
+
max_run_seconds?: number;
|
|
537
|
+
deadline_at?: string;
|
|
503
538
|
};
|
|
504
539
|
|
|
505
540
|
type Agents24NodeOptions = {
|
|
@@ -510,6 +545,7 @@ type Agents24NodeOptions = {
|
|
|
510
545
|
/** @deprecated Use Agents24NodeOptions. */
|
|
511
546
|
type Agents24Options = Agents24NodeOptions;
|
|
512
547
|
type RequestOptions = {
|
|
548
|
+
signal?: AbortSignal;
|
|
513
549
|
idempotencyKey?: string;
|
|
514
550
|
dryRun?: boolean;
|
|
515
551
|
validateOnly?: boolean;
|
|
@@ -524,6 +560,7 @@ type StreamRequestOptions = RequestOptions & {
|
|
|
524
560
|
onControl?: (control: _agents24_client_protocol.ObservationControl) => void | Promise<void>;
|
|
525
561
|
};
|
|
526
562
|
type AgentStreamRequest = {
|
|
563
|
+
relay_client_id?: string | null;
|
|
527
564
|
client_submission_id?: string;
|
|
528
565
|
input?: string;
|
|
529
566
|
messages?: Array<Record<string, unknown>>;
|
|
@@ -539,6 +576,9 @@ type AgentStreamRequest = {
|
|
|
539
576
|
agent_version_id?: string;
|
|
540
577
|
};
|
|
541
578
|
type ControlPlaneAgentRunRequest = {
|
|
579
|
+
relay_client_id?: string | null;
|
|
580
|
+
execution_limits?: RunExecutionLimits;
|
|
581
|
+
knowledge_namespaces?: Record<string, string>;
|
|
542
582
|
input?: string;
|
|
543
583
|
messages?: Array<Record<string, unknown>>;
|
|
544
584
|
thread_id?: string;
|
|
@@ -745,6 +785,11 @@ type FailureView = {
|
|
|
745
785
|
details: Record<string, unknown>;
|
|
746
786
|
};
|
|
747
787
|
type RunStatus = {
|
|
788
|
+
execution_budget?: {
|
|
789
|
+
max_tool_calls_per_run: number;
|
|
790
|
+
tool_calls_used: number;
|
|
791
|
+
deadline_at: string;
|
|
792
|
+
} | null;
|
|
748
793
|
id: string;
|
|
749
794
|
status: string;
|
|
750
795
|
result?: unknown;
|
|
@@ -756,7 +801,7 @@ type RunStatus = {
|
|
|
756
801
|
model_context_summary?: Record<string, unknown>;
|
|
757
802
|
failure?: FailureView | null;
|
|
758
803
|
checkpoint?: Record<string, unknown> | null;
|
|
759
|
-
run_usage?:
|
|
804
|
+
run_usage?: RunUsage;
|
|
760
805
|
context_window?: ContextWindow | null;
|
|
761
806
|
lineage?: Record<string, unknown>;
|
|
762
807
|
pending_interrupts?: Array<Record<string, unknown>>;
|
|
@@ -1096,7 +1141,7 @@ type ResourcePackageDependency = {
|
|
|
1096
1141
|
required: boolean;
|
|
1097
1142
|
bundled: boolean;
|
|
1098
1143
|
included?: boolean;
|
|
1099
|
-
required_capability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
1144
|
+
required_capability?: "chat" | "embedding" | "speech_to_text" | "rerank" | "ocr";
|
|
1100
1145
|
status?: "bundled" | "mapped" | "unresolved";
|
|
1101
1146
|
mapped_id?: string | null;
|
|
1102
1147
|
suggested_mapping?: {
|
|
@@ -1118,7 +1163,7 @@ type ResourcePackageExportPlan = {
|
|
|
1118
1163
|
kind: string;
|
|
1119
1164
|
name?: string | null;
|
|
1120
1165
|
required: boolean;
|
|
1121
|
-
required_capability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
1166
|
+
required_capability?: "chat" | "embedding" | "speech_to_text" | "rerank" | "ocr";
|
|
1122
1167
|
}>;
|
|
1123
1168
|
warnings: string[];
|
|
1124
1169
|
blockers: Array<{
|
|
@@ -1185,7 +1230,7 @@ type ResourcePackageCandidateOptions = {
|
|
|
1185
1230
|
query?: string;
|
|
1186
1231
|
limit?: number;
|
|
1187
1232
|
offset?: number;
|
|
1188
|
-
requiredCapability?: "chat" | "embedding" | "speech_to_text" | "rerank";
|
|
1233
|
+
requiredCapability?: "chat" | "embedding" | "speech_to_text" | "rerank" | "ocr";
|
|
1189
1234
|
};
|
|
1190
1235
|
type ResourceInstallationBinding = {
|
|
1191
1236
|
resource_key: string;
|
|
@@ -1236,13 +1281,14 @@ type ResourceInstallation = {
|
|
|
1236
1281
|
publication_state?: "never_published" | "current" | "draft_changes";
|
|
1237
1282
|
bindings?: ResourceInstallationBinding[];
|
|
1238
1283
|
callable_bindings?: ResourceCallableBindingStatus[];
|
|
1239
|
-
|
|
1284
|
+
relay_clients?: ArtifactRelayClientStatus[];
|
|
1240
1285
|
remote_artifact_stages?: Array<{
|
|
1241
1286
|
resource_key: string;
|
|
1242
1287
|
artifact_id: string;
|
|
1243
1288
|
target: "development" | "production";
|
|
1244
1289
|
status: string;
|
|
1245
1290
|
manifest_hash: string;
|
|
1291
|
+
transport: "http" | "relay";
|
|
1246
1292
|
base_url?: string | null;
|
|
1247
1293
|
}>;
|
|
1248
1294
|
latest_apply?: ResourceInstallationOperation | null;
|
|
@@ -1463,6 +1509,76 @@ type ResourcePolicyQuotaScheduleResult = {
|
|
|
1463
1509
|
subject_ref: ResourcePolicySubjectRef;
|
|
1464
1510
|
quota_schedule: ResourcePolicyQuotaSchedule;
|
|
1465
1511
|
};
|
|
1512
|
+
/** Authorized result of one embedded workflow; no model or checkpoint internals. */
|
|
1513
|
+
type EmbeddedRunSnapshot = {
|
|
1514
|
+
run_id: string;
|
|
1515
|
+
thread_id: string | null;
|
|
1516
|
+
status: "queued" | "pending" | "running" | "cancelling" | "completed" | "failed" | "cancelled" | "paused";
|
|
1517
|
+
final_output: unknown;
|
|
1518
|
+
final_output_available: boolean;
|
|
1519
|
+
failure: FailureView | null;
|
|
1520
|
+
};
|
|
1521
|
+
type WaitForAgentRunOptions = {
|
|
1522
|
+
signal?: AbortSignal;
|
|
1523
|
+
timeoutMs?: number;
|
|
1524
|
+
};
|
|
1525
|
+
type ArtifactRelayClientCreate = {
|
|
1526
|
+
id: string;
|
|
1527
|
+
name: string;
|
|
1528
|
+
runtime_principal_id?: string | null;
|
|
1529
|
+
};
|
|
1530
|
+
type ArtifactRelayTicketRequest = {
|
|
1531
|
+
registrations: Array<{
|
|
1532
|
+
artifact_id: string;
|
|
1533
|
+
target: "draft" | "published";
|
|
1534
|
+
authoring?: boolean;
|
|
1535
|
+
installation_id?: string;
|
|
1536
|
+
resource_key?: string;
|
|
1537
|
+
}>;
|
|
1538
|
+
};
|
|
1539
|
+
type ArtifactRelayConnectionTicket = {
|
|
1540
|
+
client_id: string;
|
|
1541
|
+
relay_token: string;
|
|
1542
|
+
relay_path: string;
|
|
1543
|
+
protocol: string;
|
|
1544
|
+
expires_in_seconds: number;
|
|
1545
|
+
};
|
|
1546
|
+
type ArtifactRelayClientStatus = {
|
|
1547
|
+
selectable: boolean;
|
|
1548
|
+
id: string;
|
|
1549
|
+
name: string;
|
|
1550
|
+
runtime_principal_id: string | null;
|
|
1551
|
+
status: "connected" | "disconnected" | "revoked";
|
|
1552
|
+
registrations: Array<{
|
|
1553
|
+
id: string;
|
|
1554
|
+
artifact_id: string;
|
|
1555
|
+
target: "draft" | "published";
|
|
1556
|
+
manifest_hash: string | null;
|
|
1557
|
+
contract_status: string;
|
|
1558
|
+
ready: boolean;
|
|
1559
|
+
}>;
|
|
1560
|
+
};
|
|
1561
|
+
type ArtifactRelayClientList = {
|
|
1562
|
+
items: ArtifactRelayClientStatus[];
|
|
1563
|
+
};
|
|
1564
|
+
type ArtifactRelayOptionsQuery = {
|
|
1565
|
+
runtimeTarget?: "draft" | "published";
|
|
1566
|
+
agentVersionId?: string;
|
|
1567
|
+
};
|
|
1568
|
+
type ArtifactRelayOptions = {
|
|
1569
|
+
runtime_target: "draft" | "published";
|
|
1570
|
+
dependencies_ready: boolean;
|
|
1571
|
+
http_artifacts: Array<{
|
|
1572
|
+
artifact_id: string;
|
|
1573
|
+
ready: boolean;
|
|
1574
|
+
}>;
|
|
1575
|
+
required_artifact_ids: string[];
|
|
1576
|
+
clients: Array<{
|
|
1577
|
+
client: ArtifactRelayClientStatus;
|
|
1578
|
+
ready: boolean;
|
|
1579
|
+
missing_artifact_ids: string[];
|
|
1580
|
+
}>;
|
|
1581
|
+
};
|
|
1466
1582
|
|
|
1467
1583
|
type RequestConfig = {
|
|
1468
1584
|
method?: string;
|
|
@@ -1471,6 +1587,7 @@ type RequestConfig = {
|
|
|
1471
1587
|
headers?: HeadersInit;
|
|
1472
1588
|
options?: RequestOptions;
|
|
1473
1589
|
mutation?: boolean;
|
|
1590
|
+
signal?: AbortSignal;
|
|
1474
1591
|
};
|
|
1475
1592
|
declare class Agents24HttpClient {
|
|
1476
1593
|
private readonly base;
|
|
@@ -1515,6 +1632,7 @@ declare class AgentsNamespace {
|
|
|
1515
1632
|
attachmentIds?: string[];
|
|
1516
1633
|
requestedAgentId?: string;
|
|
1517
1634
|
requestedModelId?: string;
|
|
1635
|
+
relayClientId?: string | null;
|
|
1518
1636
|
}, options?: RequestOptions): Promise<ThreadMessageSubmission>;
|
|
1519
1637
|
editPendingMessage(agentId: string, message: ThreadMessage, payload: {
|
|
1520
1638
|
input: string;
|
|
@@ -1650,6 +1768,10 @@ declare class EmbedNamespace extends EmbedDelegationsNamespace {
|
|
|
1650
1768
|
download?: boolean;
|
|
1651
1769
|
}): Promise<ThreadComputerContentAccess>;
|
|
1652
1770
|
deleteAgentThread(agentId: string, threadId: string, options: ThreadDeleteOptions, requestOptions?: RequestOptions): Promise<ThreadDeleteResult>;
|
|
1771
|
+
getAgentRun(agentId: string, runId: string, scope: RunContextOptions, options?: {
|
|
1772
|
+
signal?: AbortSignal;
|
|
1773
|
+
}): Promise<EmbeddedRunSnapshot>;
|
|
1774
|
+
waitForAgentRun(agentId: string, runId: string, scope: RunContextOptions, options?: WaitForAgentRunOptions): Promise<EmbeddedRunSnapshot>;
|
|
1653
1775
|
getAgentRunContext(agentId: string, runId: string, options: RunContextOptions): Promise<RunContext>;
|
|
1654
1776
|
cancelAgentRun(agentId: string, runId: string, options: EmbedRunCancelOptions, requestOptions?: RequestOptions): Promise<RunCancelResult>;
|
|
1655
1777
|
setAgentRunFeedback(agentId: string, runId: string, payload: EmbeddedResponseFeedbackInput): Promise<ResponseFeedbackResult>;
|
|
@@ -1669,6 +1791,17 @@ declare class ResourcePackagesNamespace {
|
|
|
1669
1791
|
candidates(options: ResourcePackageCandidateOptions): Promise<ResourceCandidateList>;
|
|
1670
1792
|
}
|
|
1671
1793
|
|
|
1794
|
+
declare class RelayClientsNamespace {
|
|
1795
|
+
protected readonly http: Agents24HttpClient;
|
|
1796
|
+
constructor(http: Agents24HttpClient);
|
|
1797
|
+
create(request: ArtifactRelayClientCreate, options?: RequestOptions): Promise<ArtifactRelayClientStatus>;
|
|
1798
|
+
list(): Promise<ArtifactRelayClientList>;
|
|
1799
|
+
get(clientId: string): Promise<ArtifactRelayClientStatus>;
|
|
1800
|
+
revoke(clientId: string, options?: RequestOptions): Promise<ArtifactRelayClientStatus>;
|
|
1801
|
+
createTicket(clientId: string, request: ArtifactRelayTicketRequest, options?: RequestOptions): Promise<ArtifactRelayConnectionTicket>;
|
|
1802
|
+
agentOptions(agentId: string, options?: ArtifactRelayOptionsQuery): Promise<ArtifactRelayOptions>;
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1672
1805
|
declare class ResourceInstallationsNamespace {
|
|
1673
1806
|
protected readonly http: Agents24HttpClient;
|
|
1674
1807
|
constructor(http: Agents24HttpClient);
|
|
@@ -1685,7 +1818,6 @@ declare class ResourceInstallationsNamespace {
|
|
|
1685
1818
|
apply(operationId: string, request: ResourceInstallationApplyRequest, options?: RequestOptions): Promise<ResourceInstallationOperation>;
|
|
1686
1819
|
operationStatus(operationId: string): Promise<ResourceInstallationOperation>;
|
|
1687
1820
|
publish(installationId: string, request: ResourceInstallationPublishRequest, options?: RequestOptions): Promise<ResourceInstallationPublication>;
|
|
1688
|
-
prepareDevelopmentSession(installationId: string, request: ArtifactDevelopmentSessionPrepareRequest, options?: RequestOptions): Promise<ArtifactDevelopmentSessionAdmission>;
|
|
1689
1821
|
developmentSessionStatus(installationId: string, resourceKey: string): Promise<ArtifactDevelopmentSession>;
|
|
1690
1822
|
revokeDevelopmentSession(installationId: string, sessionId: string, options?: RequestOptions): Promise<ArtifactDevelopmentSession>;
|
|
1691
1823
|
bindDeployment(installationId: string, request: ResourceInstallationDeploymentRequest, options?: RequestOptions): Promise<ResourceInstallation>;
|
|
@@ -1771,6 +1903,96 @@ declare class CustomerProfilesNamespace {
|
|
|
1771
1903
|
search(options: CustomerProfileSearchOptions): Promise<CustomerProfileList>;
|
|
1772
1904
|
}
|
|
1773
1905
|
|
|
1906
|
+
type ModelProviderRoute = {
|
|
1907
|
+
id: string;
|
|
1908
|
+
route_kind: "agents24" | "byok";
|
|
1909
|
+
provider: string;
|
|
1910
|
+
offering_id: string | null;
|
|
1911
|
+
provider_model_id: string | null;
|
|
1912
|
+
is_enabled: boolean;
|
|
1913
|
+
is_ready: boolean;
|
|
1914
|
+
capability_compatible: boolean;
|
|
1915
|
+
unavailable_reason: string | null;
|
|
1916
|
+
config: Record<string, unknown>;
|
|
1917
|
+
credentials_ref: string | null;
|
|
1918
|
+
credential: {
|
|
1919
|
+
id: string;
|
|
1920
|
+
display_name: string;
|
|
1921
|
+
} | null;
|
|
1922
|
+
route_set_revision: number;
|
|
1923
|
+
is_selected: boolean;
|
|
1924
|
+
};
|
|
1925
|
+
type ModelSummary = {
|
|
1926
|
+
id: string;
|
|
1927
|
+
name: string;
|
|
1928
|
+
description: string | null;
|
|
1929
|
+
runtime_kind: string;
|
|
1930
|
+
capabilities: Record<string, unknown>;
|
|
1931
|
+
status: string;
|
|
1932
|
+
is_active: boolean;
|
|
1933
|
+
catalog_model_id: string | null;
|
|
1934
|
+
providers?: ModelProviderRoute[];
|
|
1935
|
+
};
|
|
1936
|
+
type ModelOffering = {
|
|
1937
|
+
id: string;
|
|
1938
|
+
canonical_model_id: string;
|
|
1939
|
+
canonical_name: string;
|
|
1940
|
+
provider: string;
|
|
1941
|
+
provider_model_id: string;
|
|
1942
|
+
runtime_kind: string;
|
|
1943
|
+
capabilities: Record<string, unknown>;
|
|
1944
|
+
};
|
|
1945
|
+
type ModelProviderCreate = {
|
|
1946
|
+
offering_id: string;
|
|
1947
|
+
config?: Record<string, unknown>;
|
|
1948
|
+
} & ({
|
|
1949
|
+
credentials_ref: string;
|
|
1950
|
+
new_credential?: never;
|
|
1951
|
+
} | {
|
|
1952
|
+
credentials_ref?: never;
|
|
1953
|
+
new_credential: {
|
|
1954
|
+
api_key: string;
|
|
1955
|
+
};
|
|
1956
|
+
});
|
|
1957
|
+
/** Organization-scoped model catalog and exact BYOK routes. No model creation or fallback. */
|
|
1958
|
+
declare class ModelsNamespace {
|
|
1959
|
+
private readonly http;
|
|
1960
|
+
constructor(http: Agents24HttpClient);
|
|
1961
|
+
list(query?: {
|
|
1962
|
+
q?: string;
|
|
1963
|
+
runtime_kind?: string;
|
|
1964
|
+
include_inactive?: boolean;
|
|
1965
|
+
skip?: number;
|
|
1966
|
+
limit?: number;
|
|
1967
|
+
view?: "summary" | "full";
|
|
1968
|
+
}): Promise<{
|
|
1969
|
+
items: ModelSummary[];
|
|
1970
|
+
total: number;
|
|
1971
|
+
has_more: boolean;
|
|
1972
|
+
}>;
|
|
1973
|
+
get(modelId: string): Promise<ModelSummary>;
|
|
1974
|
+
listOfferings(query?: {
|
|
1975
|
+
model_id?: string;
|
|
1976
|
+
runtime_kind?: string;
|
|
1977
|
+
provider?: string;
|
|
1978
|
+
search?: string;
|
|
1979
|
+
}): Promise<{
|
|
1980
|
+
items: ModelOffering[];
|
|
1981
|
+
}>;
|
|
1982
|
+
addProvider(modelId: string, request: ModelProviderCreate, options?: RequestOptions): Promise<ModelProviderRoute[]>;
|
|
1983
|
+
selectProvider(modelId: string, request: {
|
|
1984
|
+
route_id: string;
|
|
1985
|
+
expected_revision?: number;
|
|
1986
|
+
}, options?: RequestOptions): Promise<ModelProviderRoute[]>;
|
|
1987
|
+
updateProvider(modelId: string, providerId: string, request: {
|
|
1988
|
+
offering_id?: string;
|
|
1989
|
+
is_enabled?: boolean;
|
|
1990
|
+
config?: Record<string, unknown>;
|
|
1991
|
+
credentials_ref?: string | null;
|
|
1992
|
+
}, options?: RequestOptions): Promise<ModelProviderRoute[]>;
|
|
1993
|
+
removeProvider(modelId: string, providerId: string, options?: RequestOptions): Promise<ModelProviderRoute[]>;
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1774
1996
|
type PipelineSummary = {
|
|
1775
1997
|
id: string;
|
|
1776
1998
|
name: string;
|
|
@@ -1888,6 +2110,8 @@ type IngestionJob = {
|
|
|
1888
2110
|
knowledge_namespaces?: Record<string, string>;
|
|
1889
2111
|
job_kind?: "pipeline" | "indexed_cleanup";
|
|
1890
2112
|
retention?: RagRetention;
|
|
2113
|
+
input_params?: Record<string, unknown>;
|
|
2114
|
+
input_availability?: PayloadAvailability;
|
|
1891
2115
|
};
|
|
1892
2116
|
type IngestionJobPage = {
|
|
1893
2117
|
items: Array<IngestionJob>;
|
|
@@ -2023,7 +2247,7 @@ type FileAssetReference = {
|
|
|
2023
2247
|
source: SourceDescriptor;
|
|
2024
2248
|
};
|
|
2025
2249
|
type EvidenceLocation = {
|
|
2026
|
-
kind: "pdf" | "docx" | "media" | "text" | "record";
|
|
2250
|
+
kind: "pdf" | "docx" | "media" | "text" | "record" | "image";
|
|
2027
2251
|
page_number?: number | null;
|
|
2028
2252
|
total_pages?: number | null;
|
|
2029
2253
|
bbox?: Array<number> | null;
|
|
@@ -2174,6 +2398,8 @@ type JobStep = {
|
|
|
2174
2398
|
completed_at?: string | null;
|
|
2175
2399
|
has_input_data?: boolean;
|
|
2176
2400
|
has_output_data?: boolean;
|
|
2401
|
+
input_availability?: PayloadAvailability;
|
|
2402
|
+
output_availability?: PayloadAvailability;
|
|
2177
2403
|
};
|
|
2178
2404
|
type JobSteps = {
|
|
2179
2405
|
steps: Array<JobStep>;
|
|
@@ -2331,6 +2557,34 @@ type RecordBatchResult = {
|
|
|
2331
2557
|
unknown_ids: Array<string>;
|
|
2332
2558
|
failure?: FailureView;
|
|
2333
2559
|
};
|
|
2560
|
+
type PayloadAvailability = {
|
|
2561
|
+
availability: "available" | "unavailable";
|
|
2562
|
+
reason?: string;
|
|
2563
|
+
expires_at?: string;
|
|
2564
|
+
};
|
|
2565
|
+
type OCROptions = {
|
|
2566
|
+
model_id: string;
|
|
2567
|
+
language_hints?: Array<string>;
|
|
2568
|
+
};
|
|
2569
|
+
type IndexedRecordIdPage = {
|
|
2570
|
+
ids: Array<string>;
|
|
2571
|
+
next_cursor: string | null;
|
|
2572
|
+
};
|
|
2573
|
+
type IndexedRecordIdListOptions = {
|
|
2574
|
+
cursor?: string;
|
|
2575
|
+
limit?: number;
|
|
2576
|
+
};
|
|
2577
|
+
type JobResultOptions = {
|
|
2578
|
+
page_size?: number;
|
|
2579
|
+
cursor?: string;
|
|
2580
|
+
};
|
|
2581
|
+
type PipelineResultPage = {
|
|
2582
|
+
results: Array<unknown>;
|
|
2583
|
+
count: number;
|
|
2584
|
+
next_cursor: string | null;
|
|
2585
|
+
result_limit: number;
|
|
2586
|
+
truncated: false;
|
|
2587
|
+
};
|
|
2334
2588
|
|
|
2335
2589
|
declare class PipelinesNamespace {
|
|
2336
2590
|
protected readonly http: Agents24HttpClient;
|
|
@@ -2360,7 +2614,7 @@ declare class IngestionJobsNamespace {
|
|
|
2360
2614
|
getStepData(jobId: string, stepId: string, options: JobStepDataOptions): Promise<JobStepData>;
|
|
2361
2615
|
getStepField(jobId: string, stepId: string, options: JobStepFieldOptions): Promise<JobFieldData>;
|
|
2362
2616
|
downloadStepData(jobId: string, stepId: string, options: JobStepDownloadOptions): Promise<JobPayloadDownload>;
|
|
2363
|
-
getResult(jobId: string): Promise<JobResult>;
|
|
2617
|
+
getResult(jobId: string, options?: JobResultOptions): Promise<JobResult>;
|
|
2364
2618
|
getProcessedContent(jobId: string, options: ProcessedContentOptions): Promise<JobResult>;
|
|
2365
2619
|
}
|
|
2366
2620
|
|
|
@@ -2375,6 +2629,7 @@ declare class KnowledgeStoresNamespace {
|
|
|
2375
2629
|
archive(storeId: string): Promise<void>;
|
|
2376
2630
|
listIndexedContent(storeId: string, options: IndexedContentListOptions): Promise<IndexedContentPage>;
|
|
2377
2631
|
getIndexedContent(storeId: string, indexedId: string): Promise<IndexedContent>;
|
|
2632
|
+
listIndexedRecordIds(storeId: string, indexedId: string, options: IndexedRecordIdListOptions): Promise<IndexedRecordIdPage>;
|
|
2378
2633
|
deleteIndexedContent(storeId: string, indexedId: string, options?: RequestOptions): Promise<IndexedCleanupAck>;
|
|
2379
2634
|
getCleanupJob(storeId: string, jobId: string): Promise<IngestionJob>;
|
|
2380
2635
|
resumeCleanupJob(storeId: string, jobId: string, options?: RequestOptions): Promise<IngestionJob>;
|
|
@@ -2403,6 +2658,7 @@ declare class GeneratedIntegrationNamespaces {
|
|
|
2403
2658
|
|
|
2404
2659
|
declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
2405
2660
|
readonly agents: AgentsNamespace;
|
|
2661
|
+
readonly relayClients: RelayClientsNamespace;
|
|
2406
2662
|
readonly embed: EmbedNamespace;
|
|
2407
2663
|
readonly runs: RunsNamespace;
|
|
2408
2664
|
readonly delegations: DelegationsNamespace;
|
|
@@ -2414,9 +2670,10 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
|
|
|
2414
2670
|
readonly hostedArtifacts: HostedArtifactsNamespace;
|
|
2415
2671
|
readonly resourcePolicies: ResourcePoliciesNamespace;
|
|
2416
2672
|
readonly customerProfiles: CustomerProfilesNamespace;
|
|
2673
|
+
readonly models: ModelsNamespace;
|
|
2417
2674
|
constructor(options: Agents24NodeOptions);
|
|
2418
2675
|
agent(options: AgentDefinitionOptions): AgentDefinitionBuilder;
|
|
2419
2676
|
graph(): GraphBuilder;
|
|
2420
2677
|
}
|
|
2421
2678
|
|
|
2422
|
-
export { type
|
|
2679
|
+
export { type CreateBackendClientSessionRequest as $, Agents24 as A, type ArtifactRelayOptionsQuery as B, type ArtifactRelayTicketRequest as C, type AttachRunRequest as D, type EmbeddedRunSnapshot as E, type AttachmentContentAccessRequest as F, type BackendSessionRequestOptions as G, type BranchingHint 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 ClientSessionCredentials as R, type ContentChunk as S, type ContentSegment as T, type ControlPlaneAgentRunRequest as U, type ControlPlaneRunEventsResponse as V, type ConversationRunRequest as W, type ConversationRunResult as X, type ConversationRuntimeSelectionRequest as Y, type ConversationRuntimeSelectionResult as Z, type ConversationThreadOptions as _, type AgentCreateRequest as a, type IngestionJobStart as a$, type CreateClientDeploymentRequest as a0, type CustomerIdentityRequest as a1, type CustomerPrincipalRefRequest as a2, type CustomerProfile as a3, type CustomerProfileList as a4, type CustomerProfilePatch as a5, type CustomerProfileSearchOptions as a6, type CustomerResourcePolicyAssignment as a7, type DelegationAction as a8, type DelegationActionReceipt as a9, type FeedbackRating as aA, type FeedbackReason as aB, type FileAssetReference as aC, GraphBuilder as aD, type GraphDefinition as aE, type GraphEdge as aF, type GraphHints as aG, type GraphNode as aH, type GraphValueRef as aI, type HitlAction as aJ, type HitlAnswer as aK, type HostedArtifactDraft as aL, HostedArtifactsNamespace as aM, type IndexedCleanupAck as aN, type IndexedContent as aO, type IndexedContentListOptions as aP, type IndexedContentPage as aQ, type IndexedRecordIdListOptions as aR, type IndexedRecordIdPage as aS, type IngestionBatch as aT, type IngestionBatchListOptions as aU, type IngestionBatchPage as aV, type IngestionJob as aW, type IngestionJobAcknowledgment as aX, type IngestionJobGetOptions as aY, type IngestionJobListOptions as aZ, type IngestionJobPage as a_, type DelegationActionRequest as aa, type DelegationEvents as ab, type DelegationHistory as ac, type DelegationHistoryTurn as ad, type DelegationStatus as ae, type DelegationTask as af, type DelegationTaskList as ag, type EffectiveCustomerResourcePolicyRequest as ah, type EffectiveResourcePolicy as ai, type EmbedAgentAliasResolution as aj, type EmbedAttachmentContentAccessRequest as ak, type EmbedCustomerPrincipalResolveRequest as al, type EmbedCustomerPrincipalResolveResponse as am, type EmbedDelegationOptions as an, type EmbedResourcePolicyRequest as ao, type EmbedRunCancelOptions as ap, type EmbedRunStartRequest as aq, type EmbedRuntimeBootstrap as ar, type EmbedStreamRequest as as, type EmbedThreadMessageEdit as at, type EmbedThreadMessageScope as au, type EmbedThreadMessageSubmit as av, type EmbeddedResponseFeedbackInput as aw, type EvidenceLocation as ax, type FailureCategory as ay, type FailureView as az, AgentDefinitionBuilder as b, type RecordCapabilities as b$, type JobFieldData as b0, type JobPayloadDownload as b1, type JobResult as b2, type JobResultOptions as b3, type JobStep as b4, type JobStepData as b5, type JobStepDataOptions as b6, type JobStepDownloadOptions as b7, type JobStepFieldOptions as b8, type JobSteps as b9, type NamespaceSummary as bA, type NativePlatform as bB, type NodeAuthoringSpec as bC, type NodeCatalogItem as bD, type NodeCatalogResponse as bE, type NodeSchemaResponse as bF, type OCROptions as bG, type PayloadAvailability as bH, type PipelineInputField as bI, type PipelineInputSchema as bJ, type PipelineInputStep as bK, type PipelineInputUpload as bL, type PipelineListOptions as bM, type PipelinePage as bN, type PipelineResultPage as bO, type PipelineSummary as bP, type PortableResourceKind as bQ, type ProcessedContent as bR, type ProcessedContentOptions as bS, type ProcessedContentReference as bT, type ProcessingInput as bU, type ProcessingInputSource as bV, type PublishedExecutable as bW, type RagRetention as bX, type RawVectorMatch as bY, type RawVectorRecord as bZ, type RecordBatchResult as b_, type KnowledgeStore as ba, type KnowledgeStoreChunking as bb, type KnowledgeStoreCreate as bc, type KnowledgeStoreListOptions as bd, type KnowledgeStoreNamespace as be, type KnowledgeStorePage as bf, type KnowledgeStoreStats as bg, type KnowledgeStoreUpdate as bh, type LatestOrPinnedPolicy as bi, type McpAuthStartRequest as bj, type McpAuthStartResult as bk, type ModelCapabilitiesV1 as bl, type ModelOffering as bm, type ModelPricingDimension as bn, type ModelProviderCreate as bo, type ModelProviderRoute as bp, type ModelRequirements as bq, type ModelRuntimeKind as br, type ModelSummary as bs, ModelsNamespace as bt, type MultiAgentThreadListRequest as bu, type MultiAgentThreadSummaryEventOptions as bv, type NamespaceDataStats as bw, type NamespaceInput as bx, type NamespaceListOptions as by, type NamespacePage as bz, type AgentDefinitionOptions as c, type ServerAttachmentUploadOptions as c$, type RecordDeleteRequest as c0, type RecordFetchRequest as c1, type RecordFetchResult as c2, type RecordListRequest as c3, type RecordMutationAck as c4, type RecordPage as c5, type RecordQueryRequest as c6, type RecordQueryResult as c7, type RecordUpdateRequest as c8, type RecordUpsertRequest as c9, type ResourcePackageCandidateOptions as cA, type ResourcePackageDependency as cB, type ResourcePackageDiagnostic as cC, type ResourcePackageExportPlan as cD, type ResourcePackageExportRequest as cE, type ResourcePackageImportPreview as cF, type ResourcePackageImportResult as cG, type ResourcePackageImportUpload as cH, type ResourcePackageUpload as cI, type ResourcePackageValidationResult as cJ, type ResourcePolicyList as cK, type ResourcePolicyQuotaSchedule as cL, type ResourcePolicyQuotaScheduleResult as cM, type ResourcePolicySubjectRef as cN, type ResourcePolicySummary as cO, type ResourceSelector as cP, type ResourceToolExport as cQ, type ResponseFeedback as cR, type ResponseFeedbackResult as cS, type ResumeRunRequest as cT, type RetrievalEvidence as cU, type RunCancelOptions as cV, type RunContextOptions as cW, type RunExecutionLimits as cX, type RunStatus as cY, type RunTrace as cZ, type RunUsage as c_, type RequestOptions as ca, type ResetResourcePolicyQuotaRequest as cb, type ResourceCallableBinding as cc, type ResourceCallableBindingStatus as cd, type ResourceCandidateList as ce, type ResourceInstallation as cf, type ResourceInstallationApplication as cg, type ResourceInstallationApplyRequest as ch, type ResourceInstallationBinding as ci, type ResourceInstallationCreateRequest as cj, type ResourceInstallationDeploymentRequest as ck, type ResourceInstallationLinkRequest as cl, type ResourceInstallationList as cm, type ResourceInstallationOperation as cn, type ResourceInstallationPlan as co, type ResourceInstallationPlanUpload as cp, type ResourceInstallationPublication as cq, type ResourceInstallationPublishRequest as cr, type ResourceInstallationPullAcceptRequest as cs, type ResourceInstallationPullChange as ct, type ResourceInstallationPullPayload as cu, type ResourceInstallationPullPlan as cv, type ResourceInstallationResourceListOptions as cw, type ResourceInstallationSecretStatus as cx, type ResourceInstallationSecretsRequest as cy, type ResourcePackageArchive as cz, type AgentListResponse as d, type ServerEmbedAttachmentUploadOptions as d0, type SetCustomerResourcePolicyAssignmentRequest as d1, type SetResourcePolicyQuotaScheduleRequest as d2, type SourceDescriptor as d3, type SourceOutcome as d4, type StartRunResult as d5, type StateVariableDefinition as d6, type StreamRequestOptions as d7, type StreamResult as d8, type ThreadComputerContentAccess as d9, type ThreadComputerFile as da, type ThreadComputerFileOptions as db, type ThreadComputerFileText as dc, type ThreadComputerFiles as dd, type ThreadComputerStatus as de, type ThreadDeleteOptions as df, type ThreadDetailOptions as dg, type ThreadListOptions as dh, type ThreadSummaryEventOptions as di, type TraceContent as dj, type TraceError as dk, type TraceSpan as dl, type TraceSpanKind as dm, type TraceSpanStatus as dn, type TraceView as dp, type UpdateClientDeploymentRequest as dq, type UploadPart as dr, type UploadPartAck as ds, type UploadSession as dt, type UploadSessionStart as du, type WaitForAgentRunOptions as dv, type WorkflowInputDefinition as dw, 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 ArtifactRelayOptions as z };
|