@agents24/node 0.5.22 → 0.5.23

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.
Files changed (39) hide show
  1. package/compatibility.json +6 -6
  2. package/dist/bff.cjs +314 -199
  3. package/dist/bff.cjs.map +1 -1
  4. package/dist/bff.d.cts +3 -1
  5. package/dist/bff.d.ts +3 -1
  6. package/dist/bff.js +314 -199
  7. package/dist/bff.js.map +1 -1
  8. package/dist/{client-CR3usQ8l.d.cts → client-BTqjlaCt.d.cts} +279 -185
  9. package/dist/{client-CR3usQ8l.d.ts → client-BTqjlaCt.d.ts} +279 -185
  10. package/dist/index.cjs +126 -18
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.d.cts +2 -2
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +126 -18
  15. package/dist/index.js.map +1 -1
  16. package/dist/types/bff-agent-resolution.d.ts +2 -0
  17. package/dist/types/bff-agent-resolution.d.ts.map +1 -1
  18. package/dist/types/bff-delegations.d.ts +5 -0
  19. package/dist/types/bff-delegations.d.ts.map +1 -0
  20. package/dist/types/bff-request.d.ts +36 -0
  21. package/dist/types/bff-request.d.ts.map +1 -0
  22. package/dist/types/bff.d.ts.map +1 -1
  23. package/dist/types/delegations.d.ts +1 -78
  24. package/dist/types/delegations.d.ts.map +1 -1
  25. package/dist/types/embed-types.d.ts +302 -0
  26. package/dist/types/embed-types.d.ts.map +1 -0
  27. package/dist/types/embed.d.ts +3 -2
  28. package/dist/types/embed.d.ts.map +1 -1
  29. package/dist/types/generated/delegation-types.d.ts +130 -0
  30. package/dist/types/generated/delegation-types.d.ts.map +1 -0
  31. package/dist/types/generated/embedDelegations.d.ts +12 -0
  32. package/dist/types/generated/embedDelegations.d.ts.map +1 -0
  33. package/dist/types/generated/ingestion-types.d.ts +5 -0
  34. package/dist/types/generated/ingestion-types.d.ts.map +1 -1
  35. package/dist/types/generated/manifest.d.ts +1 -1
  36. package/dist/types/generated/manifest.d.ts.map +1 -1
  37. package/dist/types/types.d.ts +7 -276
  38. package/dist/types/types.d.ts.map +1 -1
  39. package/package.json +2 -2
@@ -1,179 +1,6 @@
1
1
  import * as _agents24_client_protocol from '@agents24/client/protocol';
2
- import { ToolInputOverrides, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
2
+ import { ToolInputOverrides, PublicResponseBlock, ContextWindow, RuntimeEvent, ThreadMessagesPage, ThreadMessageSubmission, ThreadMessage, RunCancelResult, AttachmentUploadResult, AttachmentContentAccess, RunResumeResult, ThreadsResponse, ThreadSummaryEvent, ThreadDetail, ThreadDeleteResult, RunContext } from '@agents24/client/protocol';
3
3
 
4
- type Agents24SDKErrorKind = "protocol" | "network" | "http";
5
- type Agents24NodeErrorKind = Agents24SDKErrorKind;
6
-
7
- declare class Agents24SDKError extends Error {
8
- readonly kind: Agents24SDKErrorKind;
9
- readonly status?: number;
10
- readonly failure?: FailureView;
11
- readonly responseHeaders?: Readonly<Record<string, string>>;
12
- constructor(message: string, options: {
13
- kind: Agents24SDKErrorKind;
14
- status?: number;
15
- failure?: FailureView;
16
- responseHeaders?: Readonly<Record<string, string>>;
17
- cause?: unknown;
18
- });
19
- get code(): string | undefined;
20
- get category(): string | undefined;
21
- get failureId(): string | undefined;
22
- get requestId(): string | undefined;
23
- get retryable(): boolean;
24
- get retryAfterMs(): number | undefined;
25
- get details(): Readonly<Record<string, unknown>>;
26
- }
27
-
28
- declare class DelegationsNamespace {
29
- protected readonly http: Agents24HttpClient;
30
- constructor(http: Agents24HttpClient);
31
- history(runId: string, handle: string, options?: {
32
- before?: number;
33
- limit?: number;
34
- }): Promise<DelegationHistory>;
35
- list(runId: string): Promise<DelegationTaskList>;
36
- inspect(runId: string, handle: string): Promise<DelegationTask>;
37
- events(runId: string, options?: {
38
- after?: number;
39
- limit?: number;
40
- }): Promise<DelegationEvents>;
41
- act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
42
- }
43
-
44
- type DelegationStatus = "queued" | "running" | "waiting" | "paused" | "interrupt_requested" | "interrupted" | "completed" | "failed" | "cancelling" | "cancelled";
45
- interface DelegationTask {
46
- handle: string;
47
- name: string;
48
- path: string;
49
- status: DelegationStatus;
50
- background: boolean;
51
- depth: number;
52
- parent_node_id: string;
53
- ownership_generation: number;
54
- owner_run_id: string;
55
- root_run_id: string;
56
- origin: Record<string, unknown>;
57
- run_id: string | null;
58
- thread_id: string | null;
59
- result_run_id: string | null;
60
- updated_at: string;
61
- capabilities: {
62
- cancel: boolean;
63
- interrupt: boolean;
64
- };
65
- result?: {
66
- text: string;
67
- failure_id: string | null;
68
- };
69
- invocations?: Array<{
70
- run_id: string;
71
- status: string;
72
- usage: Record<string, unknown>;
73
- }>;
74
- pending_questions?: Array<{
75
- interrupt_id: string;
76
- kind: string;
77
- can_answer: boolean;
78
- request: Record<string, unknown>;
79
- }>;
80
- }
81
- type DelegationAction = {
82
- action: "interrupt" | "cancel";
83
- };
84
- type DelegationActionRequest = DelegationAction & {
85
- operation_id: string;
86
- };
87
- interface DelegationTaskList {
88
- tasks: DelegationTask[];
89
- }
90
- interface DelegationHistoryTurn {
91
- id: string;
92
- run_id: string;
93
- turn_index: number;
94
- status: DelegationStatus;
95
- assignment_instruction: string;
96
- sender: "parent";
97
- created_at: string;
98
- user_input_text: string | null;
99
- assistant_output_text: string | null;
100
- response_blocks: Array<Record<string, unknown>>;
101
- }
102
- interface DelegationHistory {
103
- handle: string;
104
- parent_agent_id: string;
105
- kind: string;
106
- turns: DelegationHistoryTurn[];
107
- paging: {
108
- has_more: boolean;
109
- next_before_turn_index: number | null;
110
- };
111
- }
112
- interface DelegationEvents {
113
- schema_version: "agents24.delegation.events.v1";
114
- cursor: number;
115
- events: Array<{
116
- seq: number;
117
- kind: string;
118
- task: DelegationTask;
119
- }>;
120
- snapshot: DelegationTask[];
121
- }
122
-
123
- type Agents24NodeOptions = {
124
- baseUrl: string;
125
- apiKey: string;
126
- fetchImpl?: typeof fetch;
127
- };
128
- /** @deprecated Use Agents24NodeOptions. */
129
- type Agents24Options = Agents24NodeOptions;
130
- type RequestOptions = {
131
- idempotencyKey?: string;
132
- dryRun?: boolean;
133
- validateOnly?: boolean;
134
- requestMetadata?: Record<string, unknown>;
135
- };
136
- type BackendSessionRequestOptions = RequestOptions & {
137
- dpopProof?: string;
138
- };
139
- type StreamRequestOptions = RequestOptions & {
140
- signal?: AbortSignal;
141
- leaseSeconds?: number;
142
- onControl?: (control: _agents24_client_protocol.ObservationControl) => void | Promise<void>;
143
- };
144
- type AgentStreamRequest = {
145
- client_submission_id?: string;
146
- input?: string;
147
- messages?: Array<Record<string, unknown>>;
148
- attachment_ids?: string[];
149
- thread_id?: string;
150
- runtime_context?: Record<string, unknown>;
151
- tool_inputs?: ToolInputOverrides;
152
- requested_model_id?: string;
153
- requested_model_node_id?: string;
154
- client?: Record<string, unknown>;
155
- node_state?: Record<string, unknown>;
156
- runtime_target?: "draft" | "published";
157
- agent_version_id?: string;
158
- };
159
- type ControlPlaneAgentRunRequest = {
160
- input?: string;
161
- messages?: Array<Record<string, unknown>>;
162
- thread_id?: string;
163
- runtime_context?: Record<string, unknown>;
164
- tool_inputs?: ToolInputOverrides;
165
- requested_model_id?: string;
166
- requested_model_node_id?: string;
167
- runtime_target?: "draft" | "published";
168
- agent_version_id?: string;
169
- };
170
- type StreamResult = {
171
- threadId: string | null;
172
- runId: string | null;
173
- messageId?: string;
174
- messageStatus?: "queued" | "blocked" | "steer_pending";
175
- queuePosition?: number | null;
176
- };
177
4
  type EmbedStreamRequest = {
178
5
  client_submission_id?: string;
179
6
  agent_version_id?: string;
@@ -181,6 +8,8 @@ type EmbedStreamRequest = {
181
8
  messages?: Array<Record<string, unknown>>;
182
9
  attachment_ids?: string[];
183
10
  thread_id?: string;
11
+ knowledge_namespaces?: Record<string, string>;
12
+ knowledgeNamespaces?: Record<string, string>;
184
13
  tool_inputs?: ToolInputOverrides;
185
14
  requested_model_id?: string;
186
15
  requested_model_node_id?: string;
@@ -190,6 +19,8 @@ type EmbedStreamRequest = {
190
19
  client?: Record<string, unknown>;
191
20
  runtime_target?: "draft" | "published";
192
21
  integration_id: string;
22
+ chat_scope?: string;
23
+ chatScope?: string;
193
24
  };
194
25
  type EmbedRunStartRequest = Omit<EmbedStreamRequest, "thread_id"> & {
195
26
  thread_id?: string;
@@ -202,6 +33,8 @@ type AttachRunRequest = {
202
33
  cursor?: number;
203
34
  runtime_target?: "draft" | "published";
204
35
  integration_id: string;
36
+ chat_scope?: string;
37
+ chatScope?: string;
205
38
  };
206
39
  type FeedbackRating = "like" | "dislike";
207
40
  type FeedbackReason = "incorrect" | "irrelevant" | "incomplete" | "unsafe" | "citation_issue" | "other";
@@ -224,6 +57,8 @@ type EmbeddedResponseFeedbackInput = {
224
57
  comment?: string | null;
225
58
  runtime_target?: "draft" | "published";
226
59
  integration_id: string;
60
+ chat_scope?: string;
61
+ chatScope?: string;
227
62
  };
228
63
  type HitlAction = "approve" | "reject" | "connect" | "skip" | "respond";
229
64
  type HitlAnswer = {
@@ -271,6 +106,8 @@ type MultiAgentThreadListRequest = {
271
106
  external_session_id?: string | null;
272
107
  runtime_target?: "draft" | "published";
273
108
  integration_id: string;
109
+ chat_scope?: string;
110
+ chatScope?: string;
274
111
  skip?: number;
275
112
  limit?: number;
276
113
  };
@@ -279,6 +116,7 @@ type ThreadListOptions = {
279
116
  externalSessionId?: string;
280
117
  runtimeTarget?: "draft" | "published";
281
118
  integrationId: string;
119
+ chatScope?: string;
282
120
  skip?: number;
283
121
  limit?: number;
284
122
  };
@@ -287,8 +125,13 @@ type EmbedThreadMessageScope = {
287
125
  externalSessionId?: string;
288
126
  runtimeTarget?: "draft" | "published";
289
127
  integrationId: string;
128
+ chatScope?: string;
290
129
  };
291
- type EmbedThreadMessageSubmit = EmbedThreadMessageScope & {
130
+ type EmbedThreadMessageSubmit = {
131
+ knowledgeNamespaces?: Record<string, string>;
132
+ } & EmbedThreadMessageScope & {
133
+ agentVersionId?: string | null;
134
+ requestedAgentId?: string;
292
135
  clientSubmissionId?: string;
293
136
  mode: "queue" | "steer";
294
137
  input: string;
@@ -298,6 +141,8 @@ type EmbedThreadMessageSubmit = EmbedThreadMessageScope & {
298
141
  metadata?: Record<string, unknown>;
299
142
  };
300
143
  type EmbedThreadMessageEdit = EmbedThreadMessageScope & {
144
+ agentVersionId?: string | null;
145
+ requestedAgentId?: string;
301
146
  revision: number;
302
147
  input: string;
303
148
  attachmentIds?: string[];
@@ -348,12 +193,14 @@ type ThreadDetailOptions = {
348
193
  subthreadTurnLimit?: number;
349
194
  subthreadChildLimit?: number;
350
195
  integrationId: string;
196
+ chatScope?: string;
351
197
  };
352
198
  type RunContextOptions = {
353
199
  externalUserId: string;
354
200
  externalSessionId?: string;
355
201
  runtimeTarget?: "draft" | "published";
356
202
  integrationId: string;
203
+ chatScope?: string;
357
204
  };
358
205
  type RunCancelOptions = {
359
206
  externalUserId?: string;
@@ -365,12 +212,14 @@ type EmbedRunCancelOptions = {
365
212
  externalSessionId?: string;
366
213
  runtimeTarget?: "draft" | "published";
367
214
  integrationId: string;
215
+ chatScope?: string;
368
216
  };
369
217
  type ThreadDeleteOptions = {
370
218
  externalUserId: string;
371
219
  externalSessionId?: string;
372
220
  runtimeTarget?: "draft" | "published";
373
221
  integrationId: string;
222
+ chatScope?: string;
374
223
  };
375
224
  type ThreadSummaryEventOptions = {
376
225
  threadId?: string;
@@ -382,6 +231,7 @@ type ThreadSummaryEventOptions = {
382
231
  signal?: AbortSignal;
383
232
  runtimeTarget?: "draft" | "published";
384
233
  integrationId: string;
234
+ chatScope?: string;
385
235
  };
386
236
  type MultiAgentThreadSummaryEventOptions = ThreadSummaryEventOptions & {
387
237
  agentIds: string[];
@@ -389,6 +239,7 @@ type MultiAgentThreadSummaryEventOptions = ThreadSummaryEventOptions & {
389
239
  type ConversationThreadOptions = ThreadDetailOptions & {
390
240
  agentIds: string[];
391
241
  integrationId: string;
242
+ chatScope?: string;
392
243
  };
393
244
  type ConversationRuntimeSelectionRequest = {
394
245
  agent_ids: string[];
@@ -397,6 +248,8 @@ type ConversationRuntimeSelectionRequest = {
397
248
  external_user_id: string;
398
249
  external_session_id?: string | null;
399
250
  integration_id: string;
251
+ chat_scope?: string;
252
+ chatScope?: string;
400
253
  runtime_target?: "draft" | "published";
401
254
  };
402
255
  type ConversationRuntimeSelectionResult = {
@@ -417,6 +270,8 @@ type ConversationRunRequest = {
417
270
  external_user_id: string;
418
271
  external_session_id?: string | null;
419
272
  integration_id: string;
273
+ chat_scope?: string;
274
+ chatScope?: string;
420
275
  runtime_target?: "draft" | "published";
421
276
  };
422
277
  type ConversationRunResult = {
@@ -436,12 +291,239 @@ type EmbedAttachmentContentAccessRequest = AttachmentContentAccessRequest & {
436
291
  external_session_id?: string | null;
437
292
  runtime_target?: "draft" | "published";
438
293
  integration_id: string;
294
+ chat_scope?: string;
295
+ chatScope?: string;
439
296
  };
440
297
  type ServerEmbedAttachmentUploadOptions = ServerAttachmentUploadOptions & {
441
298
  externalUserId: string;
442
299
  externalSessionId?: string;
443
300
  runtimeTarget?: "draft" | "published";
444
301
  integrationId: string;
302
+ chatScope?: string;
303
+ };
304
+
305
+ type DelegationStatus = "queued" | "running" | "waiting" | "paused" | "interrupt_requested" | "interrupted" | "completed" | "failed" | "cancelling" | "cancelled";
306
+ interface DelegationCapabilities {
307
+ cancel: boolean;
308
+ interrupt: boolean;
309
+ }
310
+ interface DelegationResult {
311
+ text: string | null;
312
+ output: unknown;
313
+ failure_id: string | null;
314
+ }
315
+ interface DelegationInvocation {
316
+ run_id: string;
317
+ status: string;
318
+ usage: Record<string, unknown>;
319
+ }
320
+ interface DelegationQuestionOption {
321
+ id: string;
322
+ label: string;
323
+ }
324
+ interface DelegationQuestion {
325
+ id: string;
326
+ question: string;
327
+ multi_select?: boolean;
328
+ options: Array<DelegationQuestionOption>;
329
+ }
330
+ interface DelegationQuestionPresentation {
331
+ questions?: Array<DelegationQuestion>;
332
+ }
333
+ interface DelegationQuestionRequest {
334
+ message?: string;
335
+ presentation?: DelegationQuestionPresentation;
336
+ }
337
+ interface DelegationPendingQuestion {
338
+ interrupt_id: string;
339
+ kind: string;
340
+ can_answer: boolean;
341
+ request: DelegationQuestionRequest;
342
+ }
343
+ interface DelegationTask {
344
+ handle: string;
345
+ name: string;
346
+ path: string;
347
+ status: DelegationStatus;
348
+ background: boolean;
349
+ depth: number;
350
+ parent_node_id: string;
351
+ ownership_generation: number;
352
+ owner_run_id: string;
353
+ root_run_id: string;
354
+ origin: Record<string, unknown>;
355
+ run_id: string | null;
356
+ thread_id: string | null;
357
+ result_run_id: string | null;
358
+ updated_at: string;
359
+ capabilities: DelegationCapabilities;
360
+ result?: DelegationResult;
361
+ invocations?: Array<DelegationInvocation>;
362
+ pending_questions?: Array<DelegationPendingQuestion>;
363
+ }
364
+ interface DelegationTaskList {
365
+ tasks: Array<DelegationTask>;
366
+ }
367
+ interface DelegationAction {
368
+ action: "interrupt" | "cancel";
369
+ }
370
+ interface DelegationActionRequest {
371
+ action: "interrupt" | "cancel";
372
+ operation_id: string;
373
+ }
374
+ interface DelegationActionReceipt {
375
+ operation_id: string;
376
+ handle: string;
377
+ status: DelegationStatus;
378
+ }
379
+ interface DelegationHistoryTurn {
380
+ id: string;
381
+ run_id: string;
382
+ turn_index: number;
383
+ status: string;
384
+ assignment_instruction: string;
385
+ sender: "parent";
386
+ created_at: string;
387
+ user_input_text: string | null;
388
+ assistant_output_text: string | null;
389
+ response_blocks: Array<PublicResponseBlock>;
390
+ completed_at?: string | null;
391
+ final_output?: unknown;
392
+ run_usage?: Record<string, unknown>;
393
+ exchanges?: Array<DelegationExchange>;
394
+ }
395
+ interface DelegationHistoryPaging {
396
+ has_more: boolean;
397
+ next_before_turn_index: number | null;
398
+ }
399
+ interface DelegationHistory {
400
+ handle: string;
401
+ parent_agent_id: string;
402
+ kind: string;
403
+ turns: Array<DelegationHistoryTurn>;
404
+ paging: DelegationHistoryPaging;
405
+ }
406
+ interface DelegationEvent {
407
+ seq: number;
408
+ kind: string;
409
+ task: DelegationTask;
410
+ }
411
+ interface DelegationEvents {
412
+ schema_version: "agents24.delegation.events.v1";
413
+ cursor: number;
414
+ events: Array<DelegationEvent>;
415
+ snapshot: Array<DelegationTask>;
416
+ }
417
+ interface EmbedDelegationOptions {
418
+ externalUserId: string;
419
+ integrationId: string;
420
+ externalSessionId?: string;
421
+ runtimeTarget?: "draft" | "published";
422
+ after?: number;
423
+ before?: number;
424
+ limit?: number;
425
+ chatScope?: string;
426
+ }
427
+ interface DelegationExchange {
428
+ id: string;
429
+ sender: "parent" | "child";
430
+ text: string;
431
+ created_at: string;
432
+ }
433
+
434
+ type Agents24SDKErrorKind = "protocol" | "network" | "http";
435
+ type Agents24NodeErrorKind = Agents24SDKErrorKind;
436
+
437
+ declare class Agents24SDKError extends Error {
438
+ readonly kind: Agents24SDKErrorKind;
439
+ readonly status?: number;
440
+ readonly failure?: FailureView;
441
+ readonly responseHeaders?: Readonly<Record<string, string>>;
442
+ constructor(message: string, options: {
443
+ kind: Agents24SDKErrorKind;
444
+ status?: number;
445
+ failure?: FailureView;
446
+ responseHeaders?: Readonly<Record<string, string>>;
447
+ cause?: unknown;
448
+ });
449
+ get code(): string | undefined;
450
+ get category(): string | undefined;
451
+ get failureId(): string | undefined;
452
+ get requestId(): string | undefined;
453
+ get retryable(): boolean;
454
+ get retryAfterMs(): number | undefined;
455
+ get details(): Readonly<Record<string, unknown>>;
456
+ }
457
+
458
+ declare class DelegationsNamespace {
459
+ protected readonly http: Agents24HttpClient;
460
+ constructor(http: Agents24HttpClient);
461
+ history(runId: string, handle: string, options?: {
462
+ before?: number;
463
+ limit?: number;
464
+ }): Promise<DelegationHistory>;
465
+ list(runId: string): Promise<DelegationTaskList>;
466
+ inspect(runId: string, handle: string): Promise<DelegationTask>;
467
+ events(runId: string, options?: {
468
+ after?: number;
469
+ limit?: number;
470
+ }): Promise<DelegationEvents>;
471
+ act(runId: string, handle: string, request: DelegationActionRequest, options?: RequestOptions): Promise<Record<string, unknown>>;
472
+ }
473
+
474
+ type Agents24NodeOptions = {
475
+ baseUrl: string;
476
+ apiKey: string;
477
+ fetchImpl?: typeof fetch;
478
+ };
479
+ /** @deprecated Use Agents24NodeOptions. */
480
+ type Agents24Options = Agents24NodeOptions;
481
+ type RequestOptions = {
482
+ idempotencyKey?: string;
483
+ dryRun?: boolean;
484
+ validateOnly?: boolean;
485
+ requestMetadata?: Record<string, unknown>;
486
+ };
487
+ type BackendSessionRequestOptions = RequestOptions & {
488
+ dpopProof?: string;
489
+ };
490
+ type StreamRequestOptions = RequestOptions & {
491
+ signal?: AbortSignal;
492
+ leaseSeconds?: number;
493
+ onControl?: (control: _agents24_client_protocol.ObservationControl) => void | Promise<void>;
494
+ };
495
+ type AgentStreamRequest = {
496
+ client_submission_id?: string;
497
+ input?: string;
498
+ messages?: Array<Record<string, unknown>>;
499
+ attachment_ids?: string[];
500
+ thread_id?: string;
501
+ runtime_context?: Record<string, unknown>;
502
+ tool_inputs?: ToolInputOverrides;
503
+ requested_model_id?: string;
504
+ requested_model_node_id?: string;
505
+ client?: Record<string, unknown>;
506
+ node_state?: Record<string, unknown>;
507
+ runtime_target?: "draft" | "published";
508
+ agent_version_id?: string;
509
+ };
510
+ type ControlPlaneAgentRunRequest = {
511
+ input?: string;
512
+ messages?: Array<Record<string, unknown>>;
513
+ thread_id?: string;
514
+ runtime_context?: Record<string, unknown>;
515
+ tool_inputs?: ToolInputOverrides;
516
+ requested_model_id?: string;
517
+ requested_model_node_id?: string;
518
+ runtime_target?: "draft" | "published";
519
+ agent_version_id?: string;
520
+ };
521
+ type StreamResult = {
522
+ threadId: string | null;
523
+ runId: string | null;
524
+ messageId?: string;
525
+ messageStatus?: "queued" | "blocked" | "steer_pending";
526
+ queuePosition?: number | null;
445
527
  };
446
528
  type GraphValueRef = {
447
529
  namespace: "workflow_input" | "state" | "node_output";
@@ -595,8 +677,6 @@ type AgentSummary = {
595
677
  share_theme: "soft" | "sharp";
596
678
  share_client_deployment_id?: string | null;
597
679
  resource_policy_set_id?: string | null;
598
- tool_binding_status?: string | null;
599
- is_tool_enabled: boolean;
600
680
  created_at: string;
601
681
  updated_at: string;
602
682
  published_at?: string | null;
@@ -881,7 +961,7 @@ type ClientSessionCredentials = {
881
961
  refresh_expires_at: string | null;
882
962
  dpop_nonce: string | null;
883
963
  };
884
- type PortableResourceKind = "agent" | "rag_pipeline" | "instruction" | "knowledge_store" | "artifact";
964
+ type PortableResourceKind = "rag_pipeline" | "instruction" | "knowledge_store" | "artifact";
885
965
  type ResourceSelector = {
886
966
  kind: PortableResourceKind;
887
967
  id: string;
@@ -942,19 +1022,18 @@ type ResourcePackageDiagnostic = {
942
1022
  };
943
1023
  type ResourceToolExport = {
944
1024
  source_resource_key: string;
945
- source_kind: "agent" | "rag_pipeline";
1025
+ source_kind: "rag_pipeline";
946
1026
  key?: string;
947
1027
  name: string;
948
1028
  description: string;
949
1029
  input_schema: Record<string, unknown>;
950
1030
  output_schema: Record<string, unknown>;
951
- session?: "fresh" | "persistent" | "shared";
952
1031
  };
953
1032
  type ResourceCallableBinding = {
954
1033
  consumer_resource_key: string;
955
1034
  consumer_node_id: string;
956
1035
  source_resource_key: string;
957
- source_kind: "agent" | "rag_pipeline" | "artifact";
1036
+ source_kind: "rag_pipeline" | "artifact";
958
1037
  tool_title?: string;
959
1038
  description?: string;
960
1039
  source_tool_id?: string;
@@ -1086,7 +1165,7 @@ type ResourceCallableBindingStatus = {
1086
1165
  consumer_resource_key: string;
1087
1166
  consumer_node_id: string;
1088
1167
  source_resource_key: string;
1089
- source_kind: "agent" | "rag_pipeline" | "artifact";
1168
+ source_kind: "rag_pipeline" | "artifact";
1090
1169
  registry_kind: "tool" | "toolset" | null;
1091
1170
  tool_id: string | null;
1092
1171
  tool_key: string | null;
@@ -1469,12 +1548,22 @@ declare class ClientSessionsNamespace {
1469
1548
  createBackendSession(deploymentId: string, request: CreateBackendClientSessionRequest, options?: BackendSessionRequestOptions): Promise<ClientSessionCredentials>;
1470
1549
  }
1471
1550
 
1472
- declare class EmbedNamespace {
1473
- private readonly http;
1551
+ declare class EmbedDelegationsNamespace {
1552
+ protected readonly http: Agents24HttpClient;
1553
+ constructor(http: Agents24HttpClient);
1554
+ listAgentDelegations(agentId: string, threadId: string, options: EmbedDelegationOptions): Promise<DelegationTaskList>;
1555
+ eventsAgentDelegations(agentId: string, threadId: string, options: EmbedDelegationOptions): Promise<DelegationEvents>;
1556
+ inspectAgentDelegation(agentId: string, threadId: string, handle: string, options: EmbedDelegationOptions): Promise<DelegationTask>;
1557
+ historyAgentDelegation(agentId: string, threadId: string, handle: string, options: EmbedDelegationOptions): Promise<DelegationHistory>;
1558
+ actAgentDelegation(agentId: string, threadId: string, handle: string, request: DelegationActionRequest, options: EmbedDelegationOptions): Promise<DelegationActionReceipt>;
1559
+ }
1560
+
1561
+ declare class EmbedNamespace extends EmbedDelegationsNamespace {
1474
1562
  constructor(http: Agents24HttpClient);
1475
1563
  streamAgent(agentId: string, payload: EmbedStreamRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, options?: StreamRequestOptions): Promise<StreamResult>;
1476
1564
  startAgentRun(agentId: string, payload: EmbedRunStartRequest, options?: RequestOptions): Promise<StartRunResult>;
1477
1565
  attachAgentRun(agentId: string, runId: string, payload: AttachRunRequest, onEvent?: (event: RuntimeEvent) => void | Promise<void>, options?: StreamRequestOptions): Promise<StreamResult>;
1566
+ private namespacePayload;
1478
1567
  private stream;
1479
1568
  resumeAgentRun(agentId: string, runId: string, payload: ResumeRunRequest, options?: RequestOptions): Promise<RunResumeResult>;
1480
1569
  startAgentRunMcpAuth(agentId: string, runId: string, serverId: string, payload: McpAuthStartRequest, options?: RequestOptions): Promise<McpAuthStartResult>;
@@ -1706,6 +1795,7 @@ type PipelineInputStep = {
1706
1795
  type PipelineInputSchema = {
1707
1796
  pipeline_type: string;
1708
1797
  steps: Array<PipelineInputStep>;
1798
+ knowledge_namespace_inputs?: Array<Record<string, unknown>>;
1709
1799
  };
1710
1800
  type PipelineInputUpload = {
1711
1801
  input_ref: string;
@@ -1716,6 +1806,9 @@ type IngestionJobStart = {
1716
1806
  executable_pipeline_id: string;
1717
1807
  input_params: Record<string, unknown>;
1718
1808
  name?: string | null;
1809
+ knowledge_namespaces?: Record<string, string>;
1810
+ } & {
1811
+ knowledgeNamespaces?: Record<string, string>;
1719
1812
  };
1720
1813
  type IngestionJobAcknowledgment = {
1721
1814
  job_id: string;
@@ -1758,6 +1851,7 @@ type IngestionJob = {
1758
1851
  updated_at?: string | null;
1759
1852
  started_at?: string | null;
1760
1853
  completed_at?: string | null;
1854
+ knowledge_namespaces?: Record<string, string>;
1761
1855
  };
1762
1856
  type IngestionJobPage = {
1763
1857
  items: Array<IngestionJob>;
@@ -1935,4 +2029,4 @@ declare class Agents24 extends GeneratedIntegrationNamespaces {
1935
2029
  graph(): GraphBuilder;
1936
2030
  }
1937
2031
 
1938
- export { type DelegationActionRequest 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 ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type DelegationAction as _, type AgentCreateRequest as a, type PipelineInputSchema as a$, type DelegationEvents as a0, type DelegationHistory as a1, type DelegationHistoryTurn as a2, type DelegationStatus as a3, type DelegationTask as a4, type DelegationTaskList as a5, type EffectiveCustomerResourcePolicyRequest as a6, type EffectiveResourcePolicy as a7, type EmbedAgentAliasResolution as a8, type EmbedAttachmentContentAccessRequest as a9, type IngestionBatchListOptions as aA, type IngestionBatchPage as aB, type IngestionJob as aC, type IngestionJobAcknowledgment as aD, type IngestionJobGetOptions as aE, type IngestionJobListOptions as aF, type IngestionJobPage as aG, type IngestionJobStart as aH, type KnowledgeStore as aI, type KnowledgeStoreChunking as aJ, type KnowledgeStoreCreate as aK, type KnowledgeStoreListOptions as aL, type KnowledgeStoreNamespace as aM, type KnowledgeStorePage as aN, type KnowledgeStoreStats as aO, type KnowledgeStoreUpdate as aP, type LatestOrPinnedPolicy as aQ, type McpAuthStartRequest as aR, type McpAuthStartResult as aS, type MultiAgentThreadListRequest as aT, type MultiAgentThreadSummaryEventOptions as aU, type NativePlatform as aV, type NodeAuthoringSpec as aW, type NodeCatalogItem as aX, type NodeCatalogResponse as aY, type NodeSchemaResponse as aZ, type PipelineInputField as a_, type EmbedCustomerPrincipalResolveRequest as aa, type EmbedCustomerPrincipalResolveResponse as ab, type EmbedResourcePolicyRequest as ac, type EmbedRunCancelOptions as ad, type EmbedRunStartRequest as ae, type EmbedRuntimeBootstrap as af, type EmbedStreamRequest as ag, type EmbedThreadMessageEdit as ah, type EmbedThreadMessageScope as ai, type EmbedThreadMessageSubmit as aj, type EmbeddedResponseFeedbackInput as ak, type FailureCategory as al, type FailureView as am, type FeedbackRating as an, type FeedbackReason as ao, GraphBuilder as ap, type GraphDefinition as aq, type GraphEdge as ar, type GraphHints as as, type GraphNode as at, type GraphValueRef as au, type HitlAction as av, type HitlAnswer as aw, type HostedArtifactDraft as ax, HostedArtifactsNamespace as ay, type IngestionBatch as az, AgentDefinitionBuilder as b, type StreamRequestOptions as b$, type PipelineInputStep as b0, type PipelineInputUpload as b1, type PipelineListOptions as b2, type PipelinePage as b3, type PipelineSummary as b4, type PortableResourceKind as b5, type PublishedExecutable as b6, type RequestOptions as b7, type ResetResourcePolicyQuotaRequest as b8, type ResourceCallableBinding as b9, type ResourcePackageExportPlan as bA, type ResourcePackageExportRequest as bB, type ResourcePackageImportPreview as bC, type ResourcePackageImportResult as bD, type ResourcePackageImportUpload as bE, type ResourcePackageUpload as bF, type ResourcePackageValidationResult as bG, type ResourcePolicyList as bH, type ResourcePolicyQuotaSchedule as bI, type ResourcePolicyQuotaScheduleResult as bJ, type ResourcePolicySubjectRef as bK, type ResourcePolicySummary as bL, type ResourceSelector as bM, type ResourceToolExport as bN, type ResponseFeedback as bO, type ResponseFeedbackResult as bP, type ResumeRunRequest as bQ, type RunCancelOptions as bR, type RunContextOptions as bS, type RunStatus as bT, type RunTrace as bU, type ServerAttachmentUploadOptions as bV, type ServerEmbedAttachmentUploadOptions as bW, type SetCustomerResourcePolicyAssignmentRequest as bX, type SetResourcePolicyQuotaScheduleRequest as bY, type StartRunResult as bZ, type StateVariableDefinition as b_, type ResourceCallableBindingStatus as ba, type ResourceCandidateList as bb, type ResourceInstallation as bc, type ResourceInstallationApplication as bd, type ResourceInstallationApplyRequest as be, type ResourceInstallationBinding as bf, type ResourceInstallationCreateRequest as bg, type ResourceInstallationDeploymentRequest as bh, type ResourceInstallationLinkRequest as bi, type ResourceInstallationList as bj, type ResourceInstallationOperation as bk, type ResourceInstallationPlan as bl, type ResourceInstallationPlanUpload as bm, type ResourceInstallationPublication as bn, type ResourceInstallationPublishRequest as bo, type ResourceInstallationPullAcceptRequest as bp, type ResourceInstallationPullChange as bq, type ResourceInstallationPullPayload as br, type ResourceInstallationPullPlan as bs, type ResourceInstallationResourceListOptions as bt, type ResourceInstallationSecretStatus as bu, type ResourceInstallationSecretsRequest as bv, type ResourcePackageArchive as bw, type ResourcePackageCandidateOptions as bx, type ResourcePackageDependency as by, type ResourcePackageDiagnostic as bz, type AgentDefinitionOptions as c, type StreamResult as c0, type ThreadComputerContentAccess as c1, type ThreadComputerFile as c2, type ThreadComputerFileOptions as c3, type ThreadComputerFileText as c4, type ThreadComputerFiles as c5, type ThreadComputerStatus as c6, type ThreadDeleteOptions as c7, type ThreadDetailOptions as c8, type ThreadListOptions as c9, type ThreadSummaryEventOptions as ca, type TraceContent as cb, type TraceError as cc, type TraceSpan as cd, type TraceSpanKind as ce, type TraceSpanStatus as cf, type TraceView as cg, type UpdateClientDeploymentRequest as ch, type WorkflowInputDefinition as ci, 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 };
2032
+ export { type DelegationActionReceipt 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 ControlPlaneAgentRunRequest as K, type ControlPlaneRunEventsResponse as L, type ConversationRunRequest as M, type ConversationRunResult as N, type ConversationRuntimeSelectionRequest as O, type ConversationRuntimeSelectionResult as P, type ConversationThreadOptions as Q, type CreateBackendClientSessionRequest as R, type CreateClientDeploymentRequest as S, type CustomerIdentityRequest as T, type CustomerPrincipalRefRequest as U, type CustomerProfile as V, type CustomerProfileList as W, type CustomerProfilePatch as X, type CustomerProfileSearchOptions as Y, type CustomerResourcePolicyAssignment as Z, type DelegationAction as _, type AgentCreateRequest as a, type NodeSchemaResponse as a$, type DelegationActionRequest as a0, type DelegationEvents as a1, type DelegationHistory as a2, type DelegationHistoryTurn as a3, type DelegationStatus as a4, type DelegationTask as a5, type DelegationTaskList as a6, type EffectiveCustomerResourcePolicyRequest as a7, type EffectiveResourcePolicy as a8, type EmbedAgentAliasResolution as a9, HostedArtifactsNamespace as aA, type IngestionBatch as aB, type IngestionBatchListOptions as aC, type IngestionBatchPage as aD, type IngestionJob as aE, type IngestionJobAcknowledgment as aF, type IngestionJobGetOptions as aG, type IngestionJobListOptions as aH, type IngestionJobPage as aI, type IngestionJobStart as aJ, type KnowledgeStore as aK, type KnowledgeStoreChunking as aL, type KnowledgeStoreCreate as aM, type KnowledgeStoreListOptions as aN, type KnowledgeStoreNamespace as aO, type KnowledgeStorePage as aP, type KnowledgeStoreStats as aQ, type KnowledgeStoreUpdate as aR, type LatestOrPinnedPolicy as aS, type McpAuthStartRequest as aT, type McpAuthStartResult as aU, type MultiAgentThreadListRequest as aV, type MultiAgentThreadSummaryEventOptions as aW, type NativePlatform as aX, type NodeAuthoringSpec as aY, type NodeCatalogItem as aZ, type NodeCatalogResponse as a_, type EmbedAttachmentContentAccessRequest as aa, type EmbedCustomerPrincipalResolveRequest as ab, type EmbedCustomerPrincipalResolveResponse as ac, type EmbedDelegationOptions as ad, type EmbedResourcePolicyRequest as ae, type EmbedRunCancelOptions as af, type EmbedRunStartRequest as ag, type EmbedRuntimeBootstrap as ah, type EmbedStreamRequest as ai, type EmbedThreadMessageEdit as aj, type EmbedThreadMessageScope as ak, type EmbedThreadMessageSubmit as al, type EmbeddedResponseFeedbackInput as am, type FailureCategory as an, type FailureView as ao, type FeedbackRating as ap, type FeedbackReason as aq, GraphBuilder as ar, type GraphDefinition as as, type GraphEdge as at, type GraphHints as au, type GraphNode as av, type GraphValueRef as aw, type HitlAction as ax, type HitlAnswer as ay, type HostedArtifactDraft as az, AgentDefinitionBuilder as b, type StartRunResult as b$, type PipelineInputField as b0, type PipelineInputSchema as b1, type PipelineInputStep as b2, type PipelineInputUpload as b3, type PipelineListOptions as b4, type PipelinePage as b5, type PipelineSummary as b6, type PortableResourceKind as b7, type PublishedExecutable as b8, type RequestOptions as b9, type ResourcePackageDependency as bA, type ResourcePackageDiagnostic as bB, type ResourcePackageExportPlan as bC, type ResourcePackageExportRequest as bD, type ResourcePackageImportPreview as bE, type ResourcePackageImportResult as bF, type ResourcePackageImportUpload as bG, type ResourcePackageUpload as bH, type ResourcePackageValidationResult as bI, type ResourcePolicyList as bJ, type ResourcePolicyQuotaSchedule as bK, type ResourcePolicyQuotaScheduleResult as bL, type ResourcePolicySubjectRef as bM, type ResourcePolicySummary as bN, type ResourceSelector as bO, type ResourceToolExport as bP, type ResponseFeedback as bQ, type ResponseFeedbackResult as bR, type ResumeRunRequest as bS, type RunCancelOptions as bT, type RunContextOptions as bU, type RunStatus as bV, type RunTrace as bW, type ServerAttachmentUploadOptions as bX, type ServerEmbedAttachmentUploadOptions as bY, type SetCustomerResourcePolicyAssignmentRequest as bZ, type SetResourcePolicyQuotaScheduleRequest as b_, type ResetResourcePolicyQuotaRequest as ba, type ResourceCallableBinding as bb, type ResourceCallableBindingStatus as bc, type ResourceCandidateList as bd, type ResourceInstallation as be, type ResourceInstallationApplication as bf, type ResourceInstallationApplyRequest as bg, type ResourceInstallationBinding as bh, type ResourceInstallationCreateRequest as bi, type ResourceInstallationDeploymentRequest as bj, type ResourceInstallationLinkRequest as bk, type ResourceInstallationList as bl, type ResourceInstallationOperation as bm, type ResourceInstallationPlan as bn, type ResourceInstallationPlanUpload as bo, type ResourceInstallationPublication as bp, type ResourceInstallationPublishRequest as bq, type ResourceInstallationPullAcceptRequest as br, type ResourceInstallationPullChange as bs, type ResourceInstallationPullPayload as bt, type ResourceInstallationPullPlan as bu, type ResourceInstallationResourceListOptions as bv, type ResourceInstallationSecretStatus as bw, type ResourceInstallationSecretsRequest as bx, type ResourcePackageArchive as by, type ResourcePackageCandidateOptions as bz, type AgentDefinitionOptions as c, type StateVariableDefinition as c0, type StreamRequestOptions as c1, type StreamResult as c2, type ThreadComputerContentAccess as c3, type ThreadComputerFile as c4, type ThreadComputerFileOptions as c5, type ThreadComputerFileText as c6, type ThreadComputerFiles as c7, type ThreadComputerStatus as c8, type ThreadDeleteOptions as c9, type ThreadDetailOptions as ca, type ThreadListOptions as cb, type ThreadSummaryEventOptions as cc, type TraceContent as cd, type TraceError as ce, type TraceSpan as cf, type TraceSpanKind as cg, type TraceSpanStatus as ch, type TraceView as ci, type UpdateClientDeploymentRequest as cj, type WorkflowInputDefinition as ck, 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 };