@tai42/studio-sdk 8.1.0 → 9.1.0

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.
@@ -3,32 +3,32 @@ export declare const ApiProvider: import("react").Provider<{
3
3
  readonly baseUrl: string;
4
4
  readonly listTools: (signal?: AbortSignal) => Promise<string[]>;
5
5
  readonly getToolSchema: (name: string, signal?: AbortSignal) => Promise<{
6
- description: string | null;
7
6
  input: Record<string, unknown>;
8
7
  output: Record<string, unknown> | null;
8
+ description: string | null;
9
9
  }>;
10
10
  readonly getAllToolSchemas: (signal?: AbortSignal) => Promise<Record<string, {
11
- description: string | null;
12
11
  input: Record<string, unknown>;
13
12
  output: Record<string, unknown> | null;
13
+ description: string | null;
14
14
  }>>;
15
15
  readonly runTool: (args: import("@tai42/api-client").RunToolArgs, signal?: AbortSignal) => Promise<unknown>;
16
16
  readonly submitToolRun: (args: import("@tai42/api-client").SubmitToolRunArgs, signal?: AbortSignal) => Promise<{
17
17
  run_id: string;
18
18
  }>;
19
19
  readonly getToolRun: (runId: string, signal?: AbortSignal) => Promise<{
20
+ run_id: string;
20
21
  tool_name: string;
21
22
  status: "running" | "succeeded" | "failed" | "lost";
22
- run_id: string;
23
23
  started_at: string;
24
- error?: string | undefined;
25
- result?: unknown;
26
24
  finished_at?: string | undefined;
25
+ result?: unknown;
26
+ error?: string | undefined;
27
27
  }>;
28
28
  readonly listToolRuns: (toolName: string, signal?: AbortSignal) => Promise<{
29
+ run_id: string;
29
30
  tool_name: string;
30
31
  status: "running" | "succeeded" | "failed" | "lost";
31
- run_id: string;
32
32
  started_at: string;
33
33
  finished_at?: string | undefined;
34
34
  }[]>;
@@ -40,8 +40,8 @@ export declare const ApiProvider: import("react").Provider<{
40
40
  }[]>;
41
41
  readonly listPresets: (signal?: AbortSignal) => Promise<{
42
42
  name: string;
43
- description: string;
44
43
  base_tool: string;
44
+ description: string;
45
45
  active_version: number;
46
46
  extensions: (string | {
47
47
  name: string;
@@ -55,8 +55,8 @@ export declare const ApiProvider: import("react").Provider<{
55
55
  }[]>;
56
56
  readonly createPreset: (body: import("@tai42/api-client").CreatePresetBody) => Promise<{
57
57
  name: string;
58
- description: string;
59
58
  base_tool: string;
59
+ description: string;
60
60
  active_version: number;
61
61
  extensions: (string | {
62
62
  name: string;
@@ -70,8 +70,8 @@ export declare const ApiProvider: import("react").Provider<{
70
70
  }>;
71
71
  readonly getPreset: (name: string, signal?: AbortSignal) => Promise<{
72
72
  name: string;
73
- description: string;
74
73
  base_tool: string;
74
+ description: string;
75
75
  active_version: number;
76
76
  extensions: (string | {
77
77
  name: string;
@@ -85,50 +85,50 @@ export declare const ApiProvider: import("react").Provider<{
85
85
  fixed_kwargs: Record<string, unknown>;
86
86
  }>;
87
87
  readonly listPresetVersions: (name: string, signal?: AbortSignal) => Promise<{
88
- tags: string[];
89
88
  version: number;
90
89
  body: {
91
- description: string;
92
90
  base_tool: string;
91
+ description: string;
92
+ fixed_kwargs: Record<string, unknown>;
93
93
  extensions: (string | {
94
94
  name: string;
95
95
  config: Record<string, unknown>;
96
96
  })[][];
97
97
  output_schema: Record<string, unknown> | null;
98
- fixed_kwargs: Record<string, unknown>;
99
98
  };
99
+ tags: string[];
100
100
  created_at: string;
101
101
  is_current: boolean;
102
102
  }[]>;
103
103
  readonly getPresetVersion: (name: string, version: number, signal?: AbortSignal) => Promise<{
104
- tags: string[];
105
104
  version: number;
106
105
  body: {
107
- description: string;
108
106
  base_tool: string;
107
+ description: string;
108
+ fixed_kwargs: Record<string, unknown>;
109
109
  extensions: (string | {
110
110
  name: string;
111
111
  config: Record<string, unknown>;
112
112
  })[][];
113
113
  output_schema: Record<string, unknown> | null;
114
- fixed_kwargs: Record<string, unknown>;
115
114
  };
115
+ tags: string[];
116
116
  created_at: string;
117
117
  is_current: boolean;
118
118
  }>;
119
119
  readonly savePresetVersion: (name: string, body: import("@tai42/api-client").SavePresetVersionBody) => Promise<{
120
- tags: string[];
121
120
  version: number;
122
121
  body: {
123
- description: string;
124
122
  base_tool: string;
123
+ description: string;
124
+ fixed_kwargs: Record<string, unknown>;
125
125
  extensions: (string | {
126
126
  name: string;
127
127
  config: Record<string, unknown>;
128
128
  })[][];
129
129
  output_schema: Record<string, unknown> | null;
130
- fixed_kwargs: Record<string, unknown>;
131
130
  };
131
+ tags: string[];
132
132
  created_at: string;
133
133
  is_current: boolean;
134
134
  }>;
@@ -142,67 +142,67 @@ export declare const ApiProvider: import("react").Provider<{
142
142
  }>;
143
143
  readonly renamePreset: (name: string, newName: string) => Promise<{
144
144
  name: string;
145
- active_version: number;
146
145
  renamed_from: string;
146
+ active_version: number;
147
147
  }>;
148
148
  readonly getPresetReferees: (name: string, signal?: AbortSignal) => Promise<{
149
149
  name: string;
150
150
  referees: string[];
151
151
  }>;
152
152
  readonly validatePreset: (body: import("@tai42/api-client").ValidatePresetBody) => Promise<{
153
- error: string | null;
154
153
  valid: boolean;
154
+ error: string | null;
155
155
  }>;
156
156
  readonly setPresetVersionTags: (name: string, version: number, tags: readonly string[]) => Promise<{
157
157
  name: string;
158
- tags: string[];
159
158
  version: number;
159
+ tags: string[];
160
160
  }>;
161
161
  readonly listToolMeta: (signal?: AbortSignal) => Promise<{
162
162
  folders: {
163
- name: string;
164
163
  id: string;
164
+ name: string;
165
165
  parent_id: string | null;
166
166
  }[];
167
167
  meta: {
168
168
  tool_name: string;
169
+ display_name: string | null;
170
+ folder_id: string | null;
169
171
  tags: string[];
170
172
  badges: string[];
171
173
  hidden: boolean | null;
172
- display_name: string | null;
173
- folder_id: string | null;
174
174
  }[];
175
175
  }>;
176
176
  readonly upsertToolMeta: (toolName: string, patch: import("@tai42/api-client").ToolMetaPatch) => Promise<{
177
177
  tool_name: string;
178
+ display_name: string | null;
179
+ folder_id: string | null;
178
180
  tags: string[];
179
181
  badges: string[];
180
182
  hidden: boolean | null;
181
- display_name: string | null;
182
- folder_id: string | null;
183
183
  }>;
184
184
  readonly deleteToolMeta: (toolName: string) => Promise<{
185
185
  tool_name: string;
186
186
  deleted: true;
187
187
  }>;
188
188
  readonly createFolder: (name: string, parentId?: string | null) => Promise<{
189
- name: string;
190
189
  id: string;
190
+ name: string;
191
191
  parent_id: string | null;
192
192
  }>;
193
193
  readonly renameFolder: (folderId: string, name: string) => Promise<{
194
- name: string;
195
194
  id: string;
195
+ name: string;
196
196
  parent_id: string | null;
197
197
  }>;
198
198
  readonly moveFolder: (folderId: string, parentId: string | null) => Promise<{
199
- name: string;
200
199
  id: string;
200
+ name: string;
201
201
  parent_id: string | null;
202
202
  }>;
203
203
  readonly deleteFolder: (folderId: string) => Promise<{
204
- deleted: true;
205
204
  folder_id: string;
205
+ deleted: true;
206
206
  }>;
207
207
  readonly getStorageInfo: (signal?: AbortSignal) => Promise<{
208
208
  present: boolean;
@@ -222,17 +222,17 @@ export declare const ApiProvider: import("react").Provider<{
222
222
  stored: true;
223
223
  }>;
224
224
  readonly deleteStorageResource: (id: string) => Promise<{
225
- deleted: true;
226
225
  id: string;
226
+ deleted: true;
227
227
  }>;
228
228
  readonly deleteStorageDir: (path: string) => Promise<{
229
- deleted: true;
230
229
  dir: string;
230
+ deleted: true;
231
231
  }>;
232
232
  readonly getBackendInfo: (signal?: AbortSignal) => Promise<{
233
233
  present: boolean;
234
- module: string | null;
235
234
  backend: string | null;
235
+ module: string | null;
236
236
  }>;
237
237
  readonly listFleetWorkers: (signal?: AbortSignal) => Promise<{
238
238
  workers: {
@@ -245,24 +245,24 @@ export declare const ApiProvider: import("react").Provider<{
245
245
  state: "ready" | "resyncing" | "recycling";
246
246
  stale: boolean;
247
247
  last_op: {
248
- at: string;
249
248
  op: string;
250
249
  outcome: string;
250
+ at: string;
251
251
  } | null;
252
252
  }[];
253
253
  }>;
254
254
  readonly reloadFleetConfig: (targets: string[] | null) => Promise<{
255
- error: string | null;
256
255
  op: string;
257
256
  reachable: boolean;
258
257
  local_only: boolean;
259
258
  results: {
260
- error: string | null;
261
259
  name: string;
262
260
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
261
+ payload: unknown;
262
+ error: string | null;
263
263
  detail: string | null;
264
- payload?: unknown;
265
264
  }[];
265
+ error: string | null;
266
266
  }>;
267
267
  readonly listExtensions: (signal?: AbortSignal) => Promise<{
268
268
  name: string;
@@ -285,30 +285,30 @@ export declare const ApiProvider: import("react").Provider<{
285
285
  mode: "local-only";
286
286
  note: string;
287
287
  } | {
288
- error: string | null;
289
288
  op: string;
290
289
  reachable: boolean;
291
290
  local_only: boolean;
292
291
  results: {
293
- error: string | null;
294
292
  name: string;
295
293
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
294
+ payload: unknown;
295
+ error: string | null;
296
296
  detail: string | null;
297
- payload?: unknown;
298
297
  }[];
298
+ error: string | null;
299
299
  mode: "fleet";
300
300
  } | {
301
- error: string | null;
302
301
  op: string;
303
302
  reachable: boolean;
304
303
  local_only: boolean;
305
304
  results: {
306
- error: string | null;
307
305
  name: string;
308
306
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
307
+ payload: unknown;
308
+ error: string | null;
309
309
  detail: string | null;
310
- payload?: unknown;
311
310
  }[];
311
+ error: string | null;
312
312
  mode: "unreachable";
313
313
  };
314
314
  }>;
@@ -336,21 +336,14 @@ export declare const ApiProvider: import("react").Provider<{
336
336
  cleared: true;
337
337
  }>;
338
338
  readonly getManifest: (signal?: AbortSignal) => Promise<{
339
- mcp: import("zod").objectOutputType<{
340
- managed: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
341
- connection_id: import("zod").ZodString;
342
- provider_id: import("zod").ZodString;
343
- sub_service: import("zod").ZodString;
344
- }, "strip", import("zod").ZodTypeAny, {
339
+ mcp: {
340
+ [x: string]: unknown;
341
+ managed?: {
345
342
  connection_id: string;
346
343
  provider_id: string;
347
344
  sub_service: string;
348
- }, {
349
- connection_id: string;
350
- provider_id: string;
351
- sub_service: string;
352
- }>>>;
353
- }, import("zod").ZodTypeAny, "passthrough">[];
345
+ } | null | undefined;
346
+ }[];
354
347
  user_tools: string[];
355
348
  }>;
356
349
  readonly setMcpConfig: (mcp: unknown[]) => Promise<{
@@ -360,61 +353,61 @@ export declare const ApiProvider: import("react").Provider<{
360
353
  mode: "local-only";
361
354
  note: string;
362
355
  } | {
363
- error: string | null;
364
356
  op: string;
365
357
  reachable: boolean;
366
358
  local_only: boolean;
367
359
  results: {
368
- error: string | null;
369
360
  name: string;
370
361
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
362
+ payload: unknown;
363
+ error: string | null;
371
364
  detail: string | null;
372
- payload?: unknown;
373
365
  }[];
366
+ error: string | null;
374
367
  mode: "fleet";
375
368
  } | {
376
- error: string | null;
377
369
  op: string;
378
370
  reachable: boolean;
379
371
  local_only: boolean;
380
372
  results: {
381
- error: string | null;
382
373
  name: string;
383
374
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
375
+ payload: unknown;
376
+ error: string | null;
384
377
  detail: string | null;
385
- payload?: unknown;
386
378
  }[];
379
+ error: string | null;
387
380
  mode: "unreachable";
388
381
  };
389
382
  }>;
390
383
  readonly getMcpStatus: (signal?: AbortSignal) => Promise<{
384
+ bound: Record<string, string[]>;
391
385
  failed: {
392
- status: string;
393
386
  title: string;
387
+ status: string;
394
388
  }[];
395
- bound: Record<string, string[]>;
396
389
  }>;
397
390
  readonly reloadMcp: (title: string) => Promise<{
398
- error: string | null;
399
391
  op: string;
400
392
  reachable: boolean;
401
393
  local_only: boolean;
402
394
  results: {
403
- error: string | null;
404
395
  name: string;
405
396
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
397
+ payload: unknown;
398
+ error: string | null;
406
399
  detail: string | null;
407
- payload?: unknown;
408
400
  }[];
401
+ error: string | null;
409
402
  }>;
410
403
  readonly listSubMcp: (signal?: AbortSignal) => Promise<Record<string, {
411
404
  tools: string[];
412
405
  transport: string;
413
406
  }>>;
414
407
  readonly createSubMcp: (slug: string, tools: string[], transport?: string) => Promise<{
408
+ slug: string;
415
409
  tools: string[];
416
410
  transport: string;
417
- slug: string;
418
411
  }>;
419
412
  readonly deleteSubMcp: (slug: string) => Promise<{
420
413
  slug: string;
@@ -431,30 +424,30 @@ export declare const ApiProvider: import("react").Provider<{
431
424
  mode: "local-only";
432
425
  note: string;
433
426
  } | {
434
- error: string | null;
435
427
  op: string;
436
428
  reachable: boolean;
437
429
  local_only: boolean;
438
430
  results: {
439
- error: string | null;
440
431
  name: string;
441
432
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
433
+ payload: unknown;
434
+ error: string | null;
442
435
  detail: string | null;
443
- payload?: unknown;
444
436
  }[];
437
+ error: string | null;
445
438
  mode: "fleet";
446
439
  } | {
447
- error: string | null;
448
440
  op: string;
449
441
  reachable: boolean;
450
442
  local_only: boolean;
451
443
  results: {
452
- error: string | null;
453
444
  name: string;
454
445
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
446
+ payload: unknown;
447
+ error: string | null;
455
448
  detail: string | null;
456
- payload?: unknown;
457
449
  }[];
450
+ error: string | null;
458
451
  mode: "unreachable";
459
452
  };
460
453
  }>;
@@ -479,8 +472,8 @@ export declare const ApiProvider: import("react").Provider<{
479
472
  ok: true;
480
473
  }>;
481
474
  readonly diffSettingsProfile: (name: string) => Promise<{
482
- removed: string[];
483
475
  added: string[];
476
+ removed: string[];
484
477
  changed: {
485
478
  key: string;
486
479
  old: string;
@@ -490,73 +483,73 @@ export declare const ApiProvider: import("react").Provider<{
490
483
  refused_keys: string[];
491
484
  }>;
492
485
  readonly applySettingsProfile: (name: string) => Promise<{
486
+ hot: string[];
487
+ recycle: {
488
+ name: string;
489
+ kind: string;
490
+ status: string;
491
+ generation_before: number;
492
+ }[];
493
+ fresh: {
494
+ name: string;
495
+ kind: string;
496
+ generation: number;
497
+ }[];
498
+ refused: {
499
+ key: string;
500
+ reason: string;
501
+ }[];
493
502
  fanout: {
494
503
  mode: "local-only";
495
504
  note: string;
496
505
  } | {
497
- error: string | null;
498
506
  op: string;
499
507
  reachable: boolean;
500
508
  local_only: boolean;
501
509
  results: {
502
- error: string | null;
503
510
  name: string;
504
511
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
512
+ payload: unknown;
513
+ error: string | null;
505
514
  detail: string | null;
506
- payload?: unknown;
507
515
  }[];
516
+ error: string | null;
508
517
  mode: "fleet";
509
518
  } | {
510
- error: string | null;
511
519
  op: string;
512
520
  reachable: boolean;
513
521
  local_only: boolean;
514
522
  results: {
515
- error: string | null;
516
523
  name: string;
517
524
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
525
+ payload: unknown;
526
+ error: string | null;
518
527
  detail: string | null;
519
- payload?: unknown;
520
528
  }[];
529
+ error: string | null;
521
530
  mode: "unreachable";
522
531
  };
523
- hot: string[];
524
- recycle: {
525
- name: string;
526
- status: string;
527
- kind: string;
528
- generation_before: number;
529
- }[];
530
- fresh: {
531
- name: string;
532
- kind: string;
533
- generation: number;
534
- }[];
535
- refused: {
536
- key: string;
537
- reason: string;
538
- }[];
539
532
  }>;
540
533
  readonly listSettingsProfileVersions: (name: string, signal?: AbortSignal) => Promise<{
541
- tags: string[];
542
534
  version: number;
535
+ tags: string[];
543
536
  created_at: string;
544
537
  is_current: boolean;
545
538
  }[]>;
546
539
  readonly getSettingsProfileVersion: (name: string, version: number, signal?: AbortSignal) => Promise<{
547
- tags: string[];
548
540
  version: number;
541
+ tags: string[];
542
+ created_at: string;
543
+ is_current: boolean;
549
544
  body: {
550
545
  description: string;
551
546
  env: Record<string, string>;
552
547
  secret_keys: string[];
553
548
  };
554
- created_at: string;
555
- is_current: boolean;
556
549
  }>;
557
550
  readonly rollbackSettingsProfile: (name: string, version: number) => Promise<{
558
- version: number;
559
551
  ok: true;
552
+ version: number;
560
553
  }>;
561
554
  readonly setMcpSecretEnv: (body: import("../../../api-client/dist/client").SetMcpSecretEnvBody) => Promise<{
562
555
  status: string;
@@ -565,77 +558,70 @@ export declare const ApiProvider: import("react").Provider<{
565
558
  mode: "local-only";
566
559
  note: string;
567
560
  } | {
568
- error: string | null;
569
561
  op: string;
570
562
  reachable: boolean;
571
563
  local_only: boolean;
572
564
  results: {
573
- error: string | null;
574
565
  name: string;
575
566
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
567
+ payload: unknown;
568
+ error: string | null;
576
569
  detail: string | null;
577
- payload?: unknown;
578
570
  }[];
571
+ error: string | null;
579
572
  mode: "fleet";
580
573
  } | {
581
- error: string | null;
582
574
  op: string;
583
575
  reachable: boolean;
584
576
  local_only: boolean;
585
577
  results: {
586
- error: string | null;
587
578
  name: string;
588
579
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
580
+ payload: unknown;
581
+ error: string | null;
589
582
  detail: string | null;
590
- payload?: unknown;
591
583
  }[];
584
+ error: string | null;
592
585
  mode: "unreachable";
593
586
  };
594
587
  }>;
595
588
  readonly getManifestPreserved: (signal?: AbortSignal) => Promise<{
596
- mcp: import("zod").objectOutputType<{
597
- managed: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
598
- connection_id: import("zod").ZodString;
599
- provider_id: import("zod").ZodString;
600
- sub_service: import("zod").ZodString;
601
- }, "strip", import("zod").ZodTypeAny, {
602
- connection_id: string;
603
- provider_id: string;
604
- sub_service: string;
605
- }, {
589
+ mcp: {
590
+ [x: string]: unknown;
591
+ managed?: {
606
592
  connection_id: string;
607
593
  provider_id: string;
608
594
  sub_service: string;
609
- }>>>;
610
- }, import("zod").ZodTypeAny, "passthrough">[];
595
+ } | null | undefined;
596
+ }[];
611
597
  user_tools: string[];
612
598
  }>;
613
599
  readonly getMcpEnvRefs: (signal?: AbortSignal) => Promise<{
614
- set: boolean;
615
600
  var: string;
616
601
  pointer: string;
617
602
  has_default: boolean;
603
+ set: boolean;
618
604
  }[]>;
619
605
  readonly listProviders: (signal?: AbortSignal) => Promise<{
620
606
  providers: {
621
- description: string;
622
- kind: "oauth" | "none";
623
607
  id: string;
624
608
  display_name: string;
609
+ description: string;
625
610
  icon_url: string;
611
+ kind: "oauth" | "none";
626
612
  origin: "system" | "community";
627
613
  category: string;
628
614
  sub_services: {
629
- description: string;
630
615
  id: string;
631
616
  display_name: string;
617
+ description: string;
632
618
  scopes: string[];
633
619
  }[];
634
620
  config_fields: {
635
621
  key: string;
636
- required: boolean;
637
622
  label: string;
638
623
  target: "env" | "header";
624
+ required: boolean;
639
625
  secret: boolean;
640
626
  }[];
641
627
  }[];
@@ -647,104 +633,104 @@ export declare const ApiProvider: import("react").Provider<{
647
633
  }>;
648
634
  readonly listConnections: (signal?: AbortSignal) => Promise<{
649
635
  items: {
650
- kind: "oauth" | "none";
651
- created_at: string;
652
636
  connection_id: string;
653
637
  provider_id: string;
654
638
  alias: string;
639
+ kind: "oauth" | "none";
655
640
  account_identity: string | null;
656
641
  enabled_sub_services: string[];
657
642
  granted_scopes: string[];
658
643
  unreachable_sub_services: string[];
659
644
  auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
645
+ created_at: string;
660
646
  }[];
661
647
  total: number;
662
648
  unhealthy?: number | undefined;
663
649
  }>;
664
650
  readonly getConnection: (id: string, signal?: AbortSignal) => Promise<{
665
- kind: "oauth" | "none";
666
- created_at: string;
667
651
  connection_id: string;
668
652
  provider_id: string;
669
653
  alias: string;
654
+ kind: "oauth" | "none";
670
655
  account_identity: string | null;
671
656
  enabled_sub_services: string[];
672
657
  granted_scopes: string[];
673
658
  unreachable_sub_services: string[];
674
659
  auth_health_state: "healthy" | "reconnect_required" | "refresh_failing";
660
+ created_at: string;
675
661
  }>;
676
662
  readonly startConnect: (args: import("@tai42/api-client").StartConnectArgs) => Promise<{
677
663
  flow_id: string;
678
664
  authorize_url: string;
679
665
  } | {
680
666
  connection_id: string;
667
+ added_manifest_entries: string[];
681
668
  fanout: {
682
669
  mode: "local-only";
683
670
  note: string;
684
671
  } | {
685
- error: string | null;
686
672
  op: string;
687
673
  reachable: boolean;
688
674
  local_only: boolean;
689
675
  results: {
690
- error: string | null;
691
676
  name: string;
692
677
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
678
+ payload: unknown;
679
+ error: string | null;
693
680
  detail: string | null;
694
- payload?: unknown;
695
681
  }[];
682
+ error: string | null;
696
683
  mode: "fleet";
697
684
  } | {
698
- error: string | null;
699
685
  op: string;
700
686
  reachable: boolean;
701
687
  local_only: boolean;
702
688
  results: {
703
- error: string | null;
704
689
  name: string;
705
690
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
691
+ payload: unknown;
692
+ error: string | null;
706
693
  detail: string | null;
707
- payload?: unknown;
708
694
  }[];
695
+ error: string | null;
709
696
  mode: "unreachable";
710
697
  } | null;
711
- added_manifest_entries: string[];
712
698
  }>;
713
699
  readonly disconnect: (id: string) => Promise<{
714
700
  connection_id: string;
701
+ upstream_revoke_outcome: "success" | "failed" | "skipped";
702
+ upstream_revoke_status: number | null;
703
+ removed_manifest_entries: string[];
715
704
  fanout: {
716
705
  mode: "local-only";
717
706
  note: string;
718
707
  } | {
719
- error: string | null;
720
708
  op: string;
721
709
  reachable: boolean;
722
710
  local_only: boolean;
723
711
  results: {
724
- error: string | null;
725
712
  name: string;
726
713
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
714
+ payload: unknown;
715
+ error: string | null;
727
716
  detail: string | null;
728
- payload?: unknown;
729
717
  }[];
718
+ error: string | null;
730
719
  mode: "fleet";
731
720
  } | {
732
- error: string | null;
733
721
  op: string;
734
722
  reachable: boolean;
735
723
  local_only: boolean;
736
724
  results: {
737
- error: string | null;
738
725
  name: string;
739
726
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
727
+ payload: unknown;
728
+ error: string | null;
740
729
  detail: string | null;
741
- payload?: unknown;
742
730
  }[];
731
+ error: string | null;
743
732
  mode: "unreachable";
744
733
  } | null;
745
- upstream_revoke_outcome: "failed" | "success" | "skipped";
746
- upstream_revoke_status: number | null;
747
- removed_manifest_entries: string[];
748
734
  }>;
749
735
  readonly reconnect: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
750
736
  flow_id: string;
@@ -752,83 +738,83 @@ export declare const ApiProvider: import("react").Provider<{
752
738
  }>;
753
739
  readonly patchSubServices: (id: string, enabled_sub_services: string[], return_url?: string) => Promise<{
754
740
  connection_id: string;
741
+ enabled_sub_services: string[];
742
+ consent_required: boolean;
743
+ flow_id: string | null;
744
+ authorize_url: string | null;
745
+ added_manifest_entries: string[];
746
+ removed_manifest_entries: string[];
755
747
  fanout: {
756
748
  mode: "local-only";
757
749
  note: string;
758
750
  } | {
759
- error: string | null;
760
751
  op: string;
761
752
  reachable: boolean;
762
753
  local_only: boolean;
763
754
  results: {
764
- error: string | null;
765
755
  name: string;
766
756
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
757
+ payload: unknown;
758
+ error: string | null;
767
759
  detail: string | null;
768
- payload?: unknown;
769
760
  }[];
761
+ error: string | null;
770
762
  mode: "fleet";
771
763
  } | {
772
- error: string | null;
773
764
  op: string;
774
765
  reachable: boolean;
775
766
  local_only: boolean;
776
767
  results: {
777
- error: string | null;
778
768
  name: string;
779
769
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
770
+ payload: unknown;
771
+ error: string | null;
780
772
  detail: string | null;
781
- payload?: unknown;
782
773
  }[];
774
+ error: string | null;
783
775
  mode: "unreachable";
784
776
  } | null;
785
- enabled_sub_services: string[];
786
- flow_id: string | null;
787
- authorize_url: string | null;
788
- added_manifest_entries: string[];
789
- removed_manifest_entries: string[];
790
- consent_required: boolean;
791
777
  }>;
792
778
  readonly completeOAuth: (state: string, code: string, error?: string) => Promise<{
793
779
  kind: "success";
794
780
  connection_id: string;
781
+ return_url: string;
795
782
  fanout: {
796
783
  mode: "local-only";
797
784
  note: string;
798
785
  } | {
799
- error: string | null;
800
786
  op: string;
801
787
  reachable: boolean;
802
788
  local_only: boolean;
803
789
  results: {
804
- error: string | null;
805
790
  name: string;
806
791
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
792
+ payload: unknown;
793
+ error: string | null;
807
794
  detail: string | null;
808
- payload?: unknown;
809
795
  }[];
796
+ error: string | null;
810
797
  mode: "fleet";
811
798
  } | {
812
- error: string | null;
813
799
  op: string;
814
800
  reachable: boolean;
815
801
  local_only: boolean;
816
802
  results: {
817
- error: string | null;
818
803
  name: string;
819
804
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
805
+ payload: unknown;
806
+ error: string | null;
820
807
  detail: string | null;
821
- payload?: unknown;
822
808
  }[];
809
+ error: string | null;
823
810
  mode: "unreachable";
824
811
  } | null;
825
- return_url: string;
826
812
  } | {
827
- reason: string;
828
813
  kind: "failed";
814
+ reason: string;
829
815
  } | {
830
- message: string;
831
816
  kind: "cancelled";
817
+ message: string;
832
818
  }>;
833
819
  readonly listStudioPlugins: (signal?: AbortSignal) => Promise<{
834
820
  name: string;
@@ -844,38 +830,37 @@ export declare const ApiProvider: import("react").Provider<{
844
830
  };
845
831
  }[]>;
846
832
  readonly listInteractions: (page: number, pageSize: number, signal?: AbortSignal) => Promise<{
833
+ total: number;
834
+ page: number;
835
+ page_size: number;
836
+ next_page: number | null;
837
+ truncated: boolean;
847
838
  items: {
848
- created_at: string;
849
839
  interaction_id: string;
850
840
  group_id: string;
851
841
  question: string;
852
- answer_format: "text" | "confirm" | "select" | "form" | "external";
842
+ answer_format: "text" | "external" | "confirm" | "select" | "form";
853
843
  format_payload: Record<string, unknown>;
844
+ created_at: string;
854
845
  timeout_at: string;
855
846
  sensitive: boolean;
856
- origin?: string | undefined;
857
847
  server_verified?: boolean | undefined;
858
848
  channel?: string | undefined;
859
849
  recipient?: string | undefined;
850
+ origin?: string | undefined;
860
851
  audience?: string | undefined;
861
852
  media?: unknown[] | undefined;
862
853
  }[];
863
- total: number;
864
- page: number;
865
- page_size: number;
866
- next_page: number | null;
867
- truncated: boolean;
868
854
  }>;
869
855
  readonly answerInteraction: (interactionId: string, answer: unknown) => Promise<{
870
- status: string;
871
856
  interaction_id: string;
857
+ status: string;
872
858
  }>;
873
859
  readonly listChannels: (signal?: AbortSignal) => Promise<{
874
860
  channels: string[];
875
861
  }>;
876
862
  readonly listConversationRoutes: (signal?: AbortSignal) => Promise<{
877
863
  items: {
878
- channel: string | null;
879
864
  route_name: string;
880
865
  door: "channel" | "api";
881
866
  target_kind: "tool" | "agent";
@@ -883,6 +868,7 @@ export declare const ApiProvider: import("react").Provider<{
883
868
  payload_expr: string | null;
884
869
  reply_expr: string | null;
885
870
  execution_key: string;
871
+ channel: string | null;
886
872
  our_identity: string | null;
887
873
  callback_url: string | null;
888
874
  execution_key_fingerprint: string;
@@ -890,6 +876,11 @@ export declare const ApiProvider: import("react").Provider<{
890
876
  total: number;
891
877
  }>;
892
878
  readonly listConversationThreads: (routeName: string, page: number, pageSize: number, filters?: import("@tai42/api-client").ConversationThreadFilters, signal?: AbortSignal) => Promise<{
879
+ total: number;
880
+ page: number;
881
+ page_size: number;
882
+ next_page: number | null;
883
+ truncated: boolean;
893
884
  items: {
894
885
  thread_id: string;
895
886
  client_address: string;
@@ -897,74 +888,69 @@ export declare const ApiProvider: import("react").Provider<{
897
888
  message_count: number;
898
889
  last_delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
899
890
  }[];
891
+ }>;
892
+ readonly readConversationTranscript: (query: import("@tai42/api-client").ConversationTranscriptQuery, signal?: AbortSignal) => Promise<{
893
+ order: "asc" | "desc";
900
894
  total: number;
901
895
  page: number;
902
896
  page_size: number;
903
897
  next_page: number | null;
904
898
  truncated: boolean;
905
- }>;
906
- readonly readConversationTranscript: (query: import("@tai42/api-client").ConversationTranscriptQuery, signal?: AbortSignal) => Promise<{
907
899
  items: {
908
- created_at: number;
909
- origin: "client" | "operator";
900
+ message_id: string;
910
901
  route_name: string;
911
902
  door: "channel" | "api";
912
903
  thread_id: string;
913
904
  client_address: string;
914
- message_id: string;
915
905
  caller_principal: string | null;
916
906
  inbound_text: string;
917
907
  answer_status: "error" | "silent" | "answered" | null;
918
908
  answer: string | null;
909
+ origin: "client" | "operator";
919
910
  delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
911
+ created_at: number;
920
912
  updated_at: number;
921
- error?: string | null | undefined;
922
913
  channel?: string | null | undefined;
923
914
  our_identity?: string | null | undefined;
924
- callback_url?: string | null | undefined;
925
915
  provider_message_id?: string | null | undefined;
916
+ callback_url?: string | null | undefined;
917
+ error?: string | null | undefined;
926
918
  outbound_message_ids?: string[] | undefined;
927
919
  attempts?: number | undefined;
928
920
  }[];
921
+ }>;
922
+ readonly searchConversationMessages: (query: import("@tai42/api-client").ConversationMessageSearchQuery, signal?: AbortSignal) => Promise<{
929
923
  total: number;
930
924
  page: number;
931
925
  page_size: number;
932
926
  next_page: number | null;
933
927
  truncated: boolean;
934
- order: "asc" | "desc";
935
- }>;
936
- readonly searchConversationMessages: (query: import("@tai42/api-client").ConversationMessageSearchQuery, signal?: AbortSignal) => Promise<{
937
928
  items: {
938
- created_at: number;
939
- origin: "client" | "operator";
929
+ message_id: string;
940
930
  route_name: string;
941
931
  door: "channel" | "api";
942
932
  thread_id: string;
943
933
  client_address: string;
944
- message_id: string;
945
934
  caller_principal: string | null;
946
935
  inbound_text: string;
947
936
  answer_status: "error" | "silent" | "answered" | null;
948
937
  answer: string | null;
938
+ origin: "client" | "operator";
949
939
  delivery_status: "failed" | "accepted" | "pending_delivery" | "provisional" | "delivered" | "shed" | "silent";
940
+ created_at: number;
950
941
  updated_at: number;
951
- error?: string | null | undefined;
952
942
  channel?: string | null | undefined;
953
943
  our_identity?: string | null | undefined;
954
- callback_url?: string | null | undefined;
955
944
  provider_message_id?: string | null | undefined;
945
+ callback_url?: string | null | undefined;
946
+ error?: string | null | undefined;
956
947
  outbound_message_ids?: string[] | undefined;
957
948
  attempts?: number | undefined;
958
949
  }[];
959
- total: number;
960
- page: number;
961
- page_size: number;
962
- next_page: number | null;
963
- truncated: boolean;
964
950
  }>;
965
951
  readonly sendConversationThreadMessage: (routeName: string, body: import("@tai42/api-client").ConversationThreadMessageBody) => Promise<{
966
- thread_id: string;
967
952
  message_id: string;
953
+ thread_id: string;
968
954
  }>;
969
955
  readonly getConversationThreadMode: (routeName: string, threadId: string, signal?: AbortSignal) => Promise<{
970
956
  mode: "agent" | "manual";
@@ -977,9 +963,9 @@ export declare const ApiProvider: import("react").Provider<{
977
963
  readonly getWebEntryGate: (identity: string, signal?: AbortSignal) => Promise<{
978
964
  enabled: boolean;
979
965
  codes: {
980
- created_at: string;
981
- label: string | null;
982
966
  code_id: string;
967
+ label: string | null;
968
+ created_at: string;
983
969
  expires_at: string | null;
984
970
  }[];
985
971
  }>;
@@ -996,18 +982,18 @@ export declare const ApiProvider: import("react").Provider<{
996
982
  }>;
997
983
  readonly listNotifications: (signal?: AbortSignal) => Promise<{
998
984
  notifications: {
999
- message: string;
1000
- created_at: string;
1001
985
  id: string;
986
+ message: string;
1002
987
  recipient: string | null;
1003
- options?: string[] | null | undefined;
988
+ created_at: string;
989
+ audience?: string | null | undefined;
990
+ media?: unknown[] | null | undefined;
1004
991
  template?: {
1005
992
  name: string;
1006
993
  language: string;
1007
994
  parameters: string[];
1008
995
  } | null | undefined;
1009
- audience?: string | null | undefined;
1010
- media?: unknown[] | null | undefined;
996
+ options?: string[] | null | undefined;
1011
997
  }[];
1012
998
  }>;
1013
999
  readonly listAgents: (signal?: AbortSignal) => Promise<{
@@ -1035,9 +1021,9 @@ export declare const ApiProvider: import("react").Provider<{
1035
1021
  readonly listHooks: (topic?: string, signal?: AbortSignal) => Promise<{
1036
1022
  items: {
1037
1023
  name: string;
1024
+ topic: string;
1038
1025
  tool: string;
1039
1026
  execution_key: string;
1040
- topic: string;
1041
1027
  tool_kwargs: Record<string, unknown>;
1042
1028
  condition: string | null;
1043
1029
  condition_id: string | null;
@@ -1048,23 +1034,23 @@ export declare const ApiProvider: import("react").Provider<{
1048
1034
  }[];
1049
1035
  total: number;
1050
1036
  topic_verifiers: Record<string, {
1051
- config: Record<string, unknown>;
1052
1037
  verifier: string;
1038
+ config: Record<string, unknown>;
1053
1039
  }>;
1054
1040
  trigger_auth: Record<string, "public" | "verifier" | "token" | "token+api_key" | "out-of-service">;
1055
1041
  }>;
1056
1042
  readonly registerHook: (params: import("@tai42/api-client").HookParams) => Promise<{
1057
- name: string;
1058
1043
  registered: boolean;
1044
+ name: string;
1059
1045
  }>;
1060
1046
  readonly unregisterHook: (name: string) => Promise<{
1061
- name: string;
1062
1047
  removed: boolean;
1048
+ name: string;
1063
1049
  }>;
1064
1050
  readonly listHookVerifiers: (signal?: AbortSignal) => Promise<string[]>;
1065
1051
  readonly setTopicVerifier: (topic: string, body: import("@tai42/api-client").TopicVerifierBody) => Promise<{
1066
- verifier: string;
1067
1052
  topic: string;
1053
+ verifier: string;
1068
1054
  }>;
1069
1055
  readonly deleteTopicVerifier: (topic: string) => Promise<{
1070
1056
  removed: boolean;
@@ -1072,28 +1058,28 @@ export declare const ApiProvider: import("react").Provider<{
1072
1058
  }>;
1073
1059
  readonly createTriggerLink: (body: import("@tai42/api-client").TriggerLinkCreateBody) => Promise<{
1074
1060
  name: string;
1075
- expires_at: string | null;
1061
+ trigger_path: string;
1076
1062
  token: string;
1077
1063
  topic: string;
1078
- trigger_path: string;
1064
+ expires_at: string | null;
1079
1065
  }>;
1080
1066
  readonly listTriggerLinks: (signal?: AbortSignal) => Promise<{
1081
1067
  items: {
1082
1068
  name: string;
1083
- created_at: string;
1084
- execution_key: string;
1085
- expires_at: string | null;
1086
1069
  topic: string;
1087
- tool_kwargs: Record<string, unknown> | null;
1070
+ execution_key: string;
1088
1071
  trigger_auth: "public" | "verifier" | "token" | "token+api_key" | "out-of-service";
1072
+ tool_kwargs: Record<string, unknown> | null;
1089
1073
  created_by: string | null;
1074
+ created_at: string;
1075
+ expires_at: string | null;
1090
1076
  token_hash_prefix: string;
1091
1077
  }[];
1092
1078
  total: number;
1093
1079
  }>;
1094
1080
  readonly deleteTriggerLink: (name: string) => Promise<{
1095
- name: string;
1096
1081
  removed: boolean;
1082
+ name: string;
1097
1083
  }>;
1098
1084
  readonly getMcpConfigSchema: (signal?: AbortSignal) => Promise<Record<string, unknown>>;
1099
1085
  readonly getSettingsSchema: (signal?: AbortSignal) => Promise<{
@@ -1103,22 +1089,22 @@ export declare const ApiProvider: import("react").Provider<{
1103
1089
  qualname: string;
1104
1090
  fields: {
1105
1091
  name: string;
1106
- description: string | null;
1092
+ env_var: string;
1107
1093
  type: string;
1094
+ default: unknown;
1108
1095
  required: boolean;
1109
1096
  secret: boolean;
1110
- env_var: string;
1097
+ description: string | null;
1111
1098
  nested_group: string | null;
1112
1099
  default_namespace_var: string | null;
1113
- value?: unknown;
1114
- default?: unknown;
1100
+ value: unknown;
1115
1101
  }[];
1116
1102
  }[];
1117
1103
  }>;
1118
1104
  readonly listScopes: (signal?: AbortSignal) => Promise<Record<string, string>>;
1119
1105
  readonly addUrlToScope: (body: import("@tai42/api-client").AddUrlToScopeBody) => Promise<{
1120
- url: string;
1121
1106
  scope_id: string;
1107
+ url: string;
1122
1108
  }>;
1123
1109
  readonly removeUrlFromScope: (body: {
1124
1110
  url: string;
@@ -1131,9 +1117,9 @@ export declare const ApiProvider: import("react").Provider<{
1131
1117
  }>;
1132
1118
  readonly listAuthRoutes: (signal?: AbortSignal) => Promise<{
1133
1119
  path: string;
1134
- tags: string[];
1135
1120
  methods: string[];
1136
1121
  mapped: string | null;
1122
+ tags: string[];
1137
1123
  summary: string;
1138
1124
  action: "secret" | "read" | "write" | "fenced" | null;
1139
1125
  }[]>;
@@ -1150,10 +1136,10 @@ export declare const ApiProvider: import("react").Provider<{
1150
1136
  scopes: string[];
1151
1137
  condition: string | null;
1152
1138
  condition_id: string | null;
1139
+ condition_kwargs: unknown;
1153
1140
  base_tier: string | null;
1154
1141
  allow_all: boolean;
1155
1142
  grants: Record<string, "none" | "read" | "write">;
1156
- condition_kwargs?: unknown;
1157
1143
  }[]>;
1158
1144
  readonly createRole: (body: import("@tai42/api-client").RoleCreateBody) => Promise<{
1159
1145
  name: string;
@@ -1161,10 +1147,10 @@ export declare const ApiProvider: import("react").Provider<{
1161
1147
  scopes: string[];
1162
1148
  condition: string | null;
1163
1149
  condition_id: string | null;
1150
+ condition_kwargs: unknown;
1164
1151
  base_tier: string | null;
1165
1152
  allow_all: boolean;
1166
1153
  grants: Record<string, "none" | "read" | "write">;
1167
- condition_kwargs?: unknown;
1168
1154
  }>;
1169
1155
  readonly updateRole: (name: string, body: import("@tai42/api-client").RoleUpdateBody) => Promise<{
1170
1156
  name: string;
@@ -1172,10 +1158,10 @@ export declare const ApiProvider: import("react").Provider<{
1172
1158
  scopes: string[];
1173
1159
  condition: string | null;
1174
1160
  condition_id: string | null;
1161
+ condition_kwargs: unknown;
1175
1162
  base_tier: string | null;
1176
1163
  allow_all: boolean;
1177
1164
  grants: Record<string, "none" | "read" | "write">;
1178
- condition_kwargs?: unknown;
1179
1165
  }>;
1180
1166
  readonly deleteRole: (name: string) => Promise<{
1181
1167
  name: string;
@@ -1183,7 +1169,6 @@ export declare const ApiProvider: import("react").Provider<{
1183
1169
  }>;
1184
1170
  readonly listRoleVersions: (name: string, signal?: AbortSignal) => Promise<{
1185
1171
  versions: {
1186
- tags: string[];
1187
1172
  version: number;
1188
1173
  body: {
1189
1174
  name: string;
@@ -1191,23 +1176,24 @@ export declare const ApiProvider: import("react").Provider<{
1191
1176
  scopes: string[];
1192
1177
  condition: string | null;
1193
1178
  condition_id: string | null;
1179
+ condition_kwargs: unknown;
1194
1180
  base_tier: string | null;
1195
1181
  allow_all: boolean;
1196
1182
  grants: Record<string, "none" | "read" | "write">;
1197
- condition_kwargs?: unknown;
1198
1183
  };
1184
+ tags: string[];
1199
1185
  created_at: string;
1200
1186
  is_current: boolean;
1201
1187
  }[];
1202
1188
  audit: {
1203
- tags: string[];
1204
1189
  version: number;
1205
1190
  body: {
1206
1191
  action: string;
1207
1192
  actor: string | null;
1208
- before?: unknown;
1209
- after?: unknown;
1193
+ before: unknown;
1194
+ after: unknown;
1210
1195
  };
1196
+ tags: string[];
1211
1197
  created_at: string;
1212
1198
  is_current: boolean;
1213
1199
  }[];
@@ -1218,19 +1204,19 @@ export declare const ApiProvider: import("react").Provider<{
1218
1204
  scopes: string[];
1219
1205
  condition: string | null;
1220
1206
  condition_id: string | null;
1207
+ condition_kwargs: unknown;
1221
1208
  base_tier: string | null;
1222
1209
  allow_all: boolean;
1223
1210
  grants: Record<string, "none" | "read" | "write">;
1224
- condition_kwargs?: unknown;
1225
1211
  }>;
1226
1212
  readonly listTokensPayload: (signal?: AbortSignal) => Promise<{
1213
+ user_id: string;
1227
1214
  description: string;
1228
1215
  scopes: string[];
1229
- user_id: string;
1216
+ policy_data: unknown;
1230
1217
  condition?: string | null | undefined;
1231
1218
  condition_id?: string | null | undefined;
1232
1219
  condition_kwargs?: unknown;
1233
- policy_data?: unknown;
1234
1220
  }[]>;
1235
1221
  readonly createApiKey: (body: import("@tai42/api-client").ApiKeyBody) => Promise<string>;
1236
1222
  readonly editApiKey: (userId: string, body: Omit<import("@tai42/api-client").ApiKeyBody, "user_id">) => Promise<{
@@ -1238,33 +1224,33 @@ export declare const ApiProvider: import("react").Provider<{
1238
1224
  updated: boolean;
1239
1225
  }>;
1240
1226
  readonly revokeApiKey: (userId: string) => Promise<{
1241
- revoked: boolean;
1242
1227
  user_id: string;
1228
+ revoked: boolean;
1243
1229
  }>;
1244
1230
  readonly createClaimLink: (body: import("@tai42/api-client").ClaimLinkBody) => Promise<{
1245
- expires_at: string;
1246
- token: string;
1247
1231
  claim_path: string;
1232
+ token: string;
1233
+ expires_at: string;
1248
1234
  }>;
1249
1235
  readonly getMe: (signal?: AbortSignal) => Promise<{
1250
- tools: string[];
1251
- scopes: string[];
1252
1236
  user_id: string;
1253
1237
  owner_user_id: string | null;
1254
1238
  admin: boolean;
1239
+ scopes: string[];
1255
1240
  routes: {
1256
1241
  path: string;
1257
1242
  methods: string[];
1258
1243
  }[];
1259
1244
  route_patterns: {
1260
- scope_id: string;
1261
1245
  pattern: string;
1246
+ scope_id: string;
1262
1247
  }[];
1263
1248
  sub_mcp: {
1264
1249
  tools: string[];
1265
1250
  transport: string;
1266
1251
  slug: string;
1267
1252
  }[];
1253
+ tools: string[];
1268
1254
  agents: string[];
1269
1255
  mintable: boolean;
1270
1256
  }>;
@@ -1275,13 +1261,13 @@ export declare const ApiProvider: import("react").Provider<{
1275
1261
  shape: "form";
1276
1262
  id: string;
1277
1263
  title: string;
1264
+ purpose: "login" | "bootstrap" | "invite";
1278
1265
  fields: {
1279
1266
  name: string;
1280
1267
  label: string;
1281
1268
  secret: boolean;
1282
1269
  autocomplete?: string | undefined;
1283
1270
  }[];
1284
- purpose: "login" | "bootstrap" | "invite";
1285
1271
  submit_path: string;
1286
1272
  } | {
1287
1273
  shape: "button";
@@ -1307,35 +1293,35 @@ export declare const ApiProvider: import("react").Provider<{
1307
1293
  user_id: string;
1308
1294
  }>;
1309
1295
  readonly getAuthCapabilities: (signal?: AbortSignal) => Promise<{
1296
+ mintable: boolean;
1310
1297
  providers: {
1311
1298
  name: string;
1312
1299
  mintable: boolean;
1313
1300
  }[];
1314
- mintable: boolean;
1315
1301
  }>;
1316
1302
  readonly logout: () => Promise<{
1317
1303
  revoked: boolean;
1318
1304
  }>;
1319
1305
  readonly validateCondition: (body: import("@tai42/api-client").ValidateConditionBody) => Promise<{
1320
- result: boolean | null;
1321
1306
  ok: boolean;
1307
+ result: boolean | null;
1322
1308
  }>;
1323
1309
  readonly listPolicyVersions: (userId: string, signal?: AbortSignal) => Promise<{
1324
- tags: string[];
1325
1310
  version: number;
1326
1311
  body: {
1327
1312
  scopes: string[];
1313
+ policy_data: unknown;
1328
1314
  condition: string | null;
1329
1315
  condition_id: string | null;
1330
- condition_kwargs?: unknown;
1331
- policy_data?: unknown;
1316
+ condition_kwargs: unknown;
1332
1317
  };
1318
+ tags: string[];
1333
1319
  created_at: string;
1334
1320
  is_current: boolean;
1335
1321
  }[]>;
1336
1322
  readonly rollbackPolicy: (userId: string, version: number) => Promise<{
1337
- active_version: number;
1338
1323
  user_id: string;
1324
+ active_version: number;
1339
1325
  }>;
1340
1326
  readonly listBackupSections: (signal?: AbortSignal) => Promise<{
1341
1327
  name: string;
@@ -1348,60 +1334,62 @@ export declare const ApiProvider: import("react").Provider<{
1348
1334
  }) => Promise<{
1349
1335
  ok: boolean;
1350
1336
  sections: Record<string, {
1351
- skipped: number;
1337
+ created: number;
1352
1338
  updated: number;
1339
+ skipped: number;
1353
1340
  errors: string[];
1354
- created: number;
1341
+ new_api_keys?: {
1342
+ user_id: string;
1343
+ description: string;
1344
+ api_key: string;
1345
+ }[] | undefined;
1355
1346
  fanout?: {
1356
1347
  mode: "local-only";
1357
1348
  note: string;
1358
1349
  } | {
1359
- error: string | null;
1360
1350
  op: string;
1361
1351
  reachable: boolean;
1362
1352
  local_only: boolean;
1363
1353
  results: {
1364
- error: string | null;
1365
1354
  name: string;
1366
1355
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1356
+ payload: unknown;
1357
+ error: string | null;
1367
1358
  detail: string | null;
1368
- payload?: unknown;
1369
1359
  }[];
1360
+ error: string | null;
1370
1361
  mode: "fleet";
1371
1362
  } | {
1372
- error: string | null;
1373
1363
  op: string;
1374
1364
  reachable: boolean;
1375
1365
  local_only: boolean;
1376
1366
  results: {
1377
- error: string | null;
1378
1367
  name: string;
1379
1368
  outcome: "failed" | "resyncing" | "recycling" | "stale" | "applied" | "missing" | "departed" | "timed_out";
1369
+ payload: unknown;
1370
+ error: string | null;
1380
1371
  detail: string | null;
1381
- payload?: unknown;
1382
1372
  }[];
1373
+ error: string | null;
1383
1374
  mode: "unreachable";
1384
1375
  } | undefined;
1385
- new_api_keys?: {
1386
- description: string;
1387
- user_id: string;
1388
- api_key: string;
1389
- }[] | undefined;
1390
1376
  }>;
1391
1377
  }>;
1392
- readonly listSchedules: (signal?: AbortSignal) => Promise<import("zod").objectOutputType<{
1393
- name: import("zod").ZodString;
1394
- enabled: import("zod").ZodOptional<import("zod").ZodBoolean>;
1395
- schedule: import("zod").ZodOptional<import("zod").ZodType<unknown, import("zod").ZodTypeDef, unknown>>;
1396
- target: import("zod").ZodOptional<import("zod").ZodType<unknown, import("zod").ZodTypeDef, unknown>>;
1397
- args: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodType<unknown, import("zod").ZodTypeDef, unknown>, "many">>;
1398
- kwargs: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodType<unknown, import("zod").ZodTypeDef, unknown>>>;
1399
- }, import("zod").ZodTypeAny, "passthrough">[]>;
1400
- readonly getServerDateTime: (signal?: AbortSignal) => Promise<import("zod").objectOutputType<{
1401
- utc: import("zod").ZodType<unknown, import("zod").ZodTypeDef, unknown>;
1402
- local: import("zod").ZodOptional<import("zod").ZodType<unknown, import("zod").ZodTypeDef, unknown>>;
1403
- system: import("zod").ZodOptional<import("zod").ZodType<unknown, import("zod").ZodTypeDef, unknown>>;
1404
- }, import("zod").ZodTypeAny, "passthrough">>;
1378
+ readonly listSchedules: (signal?: AbortSignal) => Promise<{
1379
+ [x: string]: unknown;
1380
+ name: string;
1381
+ enabled?: boolean | undefined;
1382
+ schedule?: unknown;
1383
+ target?: unknown;
1384
+ args?: unknown[] | undefined;
1385
+ kwargs?: Record<string, unknown> | undefined;
1386
+ }[]>;
1387
+ readonly getServerDateTime: (signal?: AbortSignal) => Promise<{
1388
+ [x: string]: unknown;
1389
+ utc: unknown;
1390
+ local?: unknown;
1391
+ system?: unknown;
1392
+ }>;
1405
1393
  readonly addSchedule: (body: {
1406
1394
  tool_name: string;
1407
1395
  tool_kwargs: Record<string, unknown>;
@@ -1419,134 +1407,131 @@ export declare const ApiProvider: import("react").Provider<{
1419
1407
  timeToFirstTokenMs: number | null;
1420
1408
  };
1421
1409
  timeSeries: {
1422
- totalTokens: number;
1423
1410
  bucket: string | null;
1424
1411
  runs: number;
1425
1412
  cost: number;
1426
1413
  avgLatencyMs: number;
1414
+ totalTokens: number;
1427
1415
  }[];
1428
1416
  byModel: {
1429
1417
  model: string;
1430
- totalTokens: number;
1418
+ calls: number;
1431
1419
  cost: number;
1420
+ totalTokens: number;
1432
1421
  avgLatencyMs: number;
1433
- calls: number;
1434
1422
  }[];
1435
1423
  granularity: "hour" | "day" | "week";
1436
1424
  }>;
1437
1425
  readonly listRuns: (params?: import("@tai42/api-client").RunsQuery, signal?: AbortSignal) => Promise<{
1438
1426
  items: {
1439
- status: "error" | "success";
1440
- tags: string[];
1441
1427
  id: string;
1442
- totalTokens: number | null;
1443
- cost: number | null;
1444
1428
  traceId: string;
1445
1429
  createdAt: string | null;
1430
+ tags: string[];
1431
+ status: "error" | "success";
1432
+ cost: number | null;
1446
1433
  latencyMs: number | null;
1447
- inputPreview?: unknown;
1448
- outputPreview?: unknown;
1434
+ totalTokens: number | null;
1435
+ inputPreview: unknown;
1436
+ outputPreview: unknown;
1449
1437
  }[];
1450
1438
  page: number;
1451
1439
  nextPage: number | null;
1452
1440
  }>;
1453
1441
  readonly getRunTrace: (traceId: string, signal?: AbortSignal) => Promise<{
1454
- tags: string[];
1455
- totalCost: number | null;
1456
1442
  traceId: string;
1457
1443
  timestamp: string | null;
1444
+ tags: string[];
1445
+ totalCost: number | null;
1446
+ input: unknown;
1447
+ output: unknown;
1448
+ metadata: unknown;
1458
1449
  spans: {
1459
- name: string | null;
1460
- type: string | null;
1461
- model: string | null;
1462
1450
  id: string;
1463
- traceId: string | null;
1464
1451
  parentId: string | null;
1452
+ traceId: string | null;
1453
+ name: string | null;
1454
+ type: string | null;
1465
1455
  level: string | null;
1466
1456
  statusMessage: string | null;
1467
1457
  start: string | null;
1468
1458
  end: string | null;
1459
+ model: string | null;
1460
+ usage: unknown;
1461
+ metadata: unknown;
1462
+ input: unknown;
1463
+ output: unknown;
1469
1464
  nodeId: string | null;
1470
- input?: unknown;
1471
- output?: unknown;
1472
- usage?: unknown;
1473
- metadata?: unknown;
1474
1465
  }[];
1475
- input?: unknown;
1476
- output?: unknown;
1477
- metadata?: unknown;
1478
1466
  }>;
1479
1467
  readonly exportTrace: (traceId: string, signal?: AbortSignal) => Promise<Blob>;
1480
1468
  readonly exportRuns: (params: import("@tai42/api-client").RunsQuery & {
1481
1469
  format: "csv" | "json";
1482
1470
  }, signal?: AbortSignal) => Promise<Blob>;
1483
1471
  readonly searchMarketplace: (query?: import("@tai42/api-client").MarketplaceSearchQuery, signal?: AbortSignal) => Promise<{
1484
- total: number;
1485
- page: number;
1486
- page_size: number;
1487
1472
  listings: {
1473
+ ref: string;
1474
+ namespace: string;
1488
1475
  name: string;
1489
- description: string;
1490
- tags: string[];
1491
1476
  display_name: string | null;
1492
1477
  icon_url: string | null;
1493
- categories: string[];
1494
- updated_at: string;
1495
- groups: {
1496
- name: string;
1497
- count: number;
1498
- }[];
1499
1478
  package: string | null;
1500
- ref: string;
1501
- namespace: string;
1479
+ description: string;
1480
+ categories: string[];
1481
+ tags: string[];
1502
1482
  trust_tier: string;
1503
1483
  pricing: string;
1504
1484
  latest_version: string | null;
1505
1485
  downloads: number;
1486
+ updated_at: string;
1506
1487
  kinds: {
1507
1488
  kind: string;
1508
1489
  count: number;
1509
1490
  names: string[];
1510
1491
  }[];
1492
+ groups: {
1493
+ name: string;
1494
+ count: number;
1495
+ }[];
1511
1496
  premium?: boolean | null | undefined;
1512
1497
  }[];
1498
+ total: number;
1499
+ page: number;
1500
+ page_size: number;
1513
1501
  }>;
1514
1502
  readonly getMarketplacePlugin: (namespace: string, name: string, signal?: AbortSignal) => Promise<{
1503
+ namespace: string;
1515
1504
  name: string;
1516
- description: string;
1517
- tags: string[];
1518
1505
  display_name: string | null;
1519
1506
  icon_url: string | null;
1520
- categories: string[];
1521
- versions: {
1522
- status: string;
1523
- version: string;
1524
- contract_range: string | null;
1525
- published_at: string | null;
1526
- }[];
1527
1507
  package: string | null;
1528
- namespace: string;
1529
- trust_tier: string;
1530
- pricing: string;
1531
- downloads: number;
1508
+ description: string;
1532
1509
  readme_md: string | null;
1533
1510
  license: string | null;
1534
1511
  homepage_url: string | null;
1535
1512
  repository_url: string | null;
1513
+ categories: string[];
1514
+ tags: string[];
1515
+ trust_tier: string;
1516
+ pricing: string;
1517
+ downloads: number;
1536
1518
  latest: {
1519
+ version: string;
1520
+ contract_range: string | null;
1537
1521
  status: string;
1522
+ published_at: string | null;
1538
1523
  items: {
1524
+ kind: string;
1539
1525
  name: string;
1540
1526
  description: string;
1541
1527
  tags: string[];
1542
- kind: string;
1543
1528
  group: string | null;
1544
1529
  routes?: {
1545
1530
  base: string;
1546
1531
  paths: {
1547
1532
  path: string;
1548
- public: boolean;
1549
1533
  methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1534
+ public: boolean;
1550
1535
  }[];
1551
1536
  } | null | undefined;
1552
1537
  required_env?: {
@@ -1554,28 +1539,27 @@ export declare const ApiProvider: import("react").Provider<{
1554
1539
  secret: boolean;
1555
1540
  }[] | undefined;
1556
1541
  }[];
1542
+ } | null;
1543
+ versions: {
1557
1544
  version: string;
1558
1545
  contract_range: string | null;
1546
+ status: string;
1559
1547
  published_at: string | null;
1560
- } | null;
1548
+ }[];
1561
1549
  source?: "pypi" | "github" | "spec" | null | undefined;
1562
- premium?: boolean | null | undefined;
1563
1550
  docs_url?: string | null | undefined;
1551
+ premium?: boolean | null | undefined;
1564
1552
  }>;
1565
1553
  readonly listMarketplaceCategories: (signal?: AbortSignal) => Promise<string[]>;
1566
1554
  readonly listMarketplaceKinds: (signal?: AbortSignal) => Promise<string[]>;
1567
1555
  readonly listInstalledMarketplacePlugins: (signal?: AbortSignal) => Promise<{
1568
1556
  installed: {
1569
- items: {
1570
- name: string;
1571
- kind: string;
1572
- }[];
1557
+ ref: string;
1573
1558
  version: string;
1574
1559
  source: string;
1575
- ref: string;
1576
- latest: string | null;
1577
1560
  delivery: "package" | "descriptor";
1578
1561
  installed_at: string;
1562
+ latest: string | null;
1579
1563
  update_available: boolean;
1580
1564
  incompatible_newer: string | null;
1581
1565
  missing_upstream: boolean;
@@ -1583,6 +1567,10 @@ export declare const ApiProvider: import("react").Provider<{
1583
1567
  status: "unknown" | "compatible" | "incompatible";
1584
1568
  reason: string | null;
1585
1569
  };
1570
+ items: {
1571
+ name: string;
1572
+ kind: string;
1573
+ }[];
1586
1574
  route_mounts: Record<string, string>;
1587
1575
  }[];
1588
1576
  quarantined: {
@@ -1591,105 +1579,105 @@ export declare const ApiProvider: import("react").Provider<{
1591
1579
  }[];
1592
1580
  }>;
1593
1581
  readonly previewMarketplaceInstall: (body: import("@tai42/api-client").MarketplaceInstallPreviewBody, signal?: AbortSignal) => Promise<{
1582
+ ref: string;
1583
+ version: string;
1594
1584
  items: {
1585
+ item: string;
1595
1586
  kind: string;
1587
+ base: string;
1588
+ default_base: string;
1596
1589
  routes: {
1597
1590
  path: string;
1598
- public: boolean;
1599
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1600
1591
  full_path: string;
1592
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1593
+ public: boolean;
1601
1594
  }[];
1602
- base: string;
1603
- item: string;
1604
- default_base: string;
1605
- }[];
1606
- version: string;
1607
- required_env: {
1608
- name: string;
1609
- secret: boolean;
1610
1595
  }[];
1611
- ref: string;
1612
- delivery: "package" | "descriptor";
1613
1596
  collisions: {
1614
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1615
1597
  item: string;
1616
1598
  full_path: string;
1599
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1617
1600
  conflict_owner: string;
1618
1601
  conflict_path: string;
1619
1602
  }[];
1620
1603
  public_routes: {
1621
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1622
1604
  item: string;
1623
1605
  full_path: string;
1606
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1624
1607
  }[];
1625
1608
  new_public_routes: {
1626
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1627
1609
  item: string;
1628
1610
  full_path: string;
1611
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1629
1612
  }[];
1630
1613
  requires_public_acceptance: boolean;
1614
+ required_env: {
1615
+ name: string;
1616
+ secret: boolean;
1617
+ }[];
1631
1618
  missing_env: string[];
1619
+ delivery: "package" | "descriptor";
1632
1620
  }>;
1633
1621
  readonly installMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceInstallBody) => Promise<{
1634
- version: string;
1635
- routes: {
1636
- public: boolean;
1637
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1638
- item: string;
1639
- full_path: string;
1640
- }[];
1641
1622
  ref: string;
1623
+ version: string;
1624
+ notes: string[];
1642
1625
  advisories: {
1643
- created_at: string;
1644
1626
  id: number;
1645
- summary: string;
1646
1627
  listing: string;
1647
1628
  affected_versions: string;
1648
1629
  severity: string;
1630
+ summary: string;
1631
+ created_at: string;
1649
1632
  withdrawn_at: string | null;
1650
1633
  }[];
1651
- notes: string[];
1634
+ routes: {
1635
+ item: string;
1636
+ full_path: string;
1637
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1638
+ public: boolean;
1639
+ }[];
1652
1640
  }>;
1653
1641
  readonly uninstallMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceUninstallBody) => Promise<{
1654
1642
  ref: string;
1655
- notes: string[];
1656
1643
  uninstalled: true;
1644
+ notes: string[];
1657
1645
  }>;
1658
1646
  readonly updateMarketplacePlugin: (body: import("@tai42/api-client").MarketplaceInstallBody) => Promise<{
1659
- version: string;
1660
- routes: {
1661
- public: boolean;
1662
- methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1663
- item: string;
1664
- full_path: string;
1665
- }[];
1666
1647
  ref: string;
1648
+ version: string;
1649
+ notes: string[];
1667
1650
  advisories: {
1668
- created_at: string;
1669
1651
  id: number;
1670
- summary: string;
1671
1652
  listing: string;
1672
1653
  affected_versions: string;
1673
1654
  severity: string;
1655
+ summary: string;
1656
+ created_at: string;
1674
1657
  withdrawn_at: string | null;
1675
1658
  }[];
1676
- notes: string[];
1659
+ routes: {
1660
+ item: string;
1661
+ full_path: string;
1662
+ methods: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE")[];
1663
+ public: boolean;
1664
+ }[];
1677
1665
  }>;
1678
1666
  readonly upgradeAllMarketplacePlugins: () => Promise<{
1679
1667
  results: {
1668
+ ref: string;
1680
1669
  outcome: "failed" | "upgraded" | "up-to-date" | "no-compatible-version";
1681
1670
  detail: string;
1682
- ref: string;
1683
1671
  }[];
1684
1672
  }>;
1685
1673
  readonly getMarketplaceAdvisories: (signal?: AbortSignal) => Promise<{
1686
1674
  advisories: {
1687
- created_at: string;
1688
1675
  id: number;
1689
- summary: string;
1690
1676
  listing: string;
1691
1677
  affected_versions: string;
1692
1678
  severity: string;
1679
+ summary: string;
1680
+ created_at: string;
1693
1681
  withdrawn_at: string | null;
1694
1682
  }[];
1695
1683
  fetched_at: string;
@@ -1697,9 +1685,9 @@ export declare const ApiProvider: import("react").Provider<{
1697
1685
  readonly getHealth: (signal?: AbortSignal) => Promise<string>;
1698
1686
  readonly getSystemKinds: (signal?: AbortSignal) => Promise<{
1699
1687
  kind: string;
1700
- state: "active" | "default" | "off";
1701
- detail: string;
1688
+ state: "default" | "active" | "off";
1702
1689
  plugin: string | null;
1690
+ detail: string;
1703
1691
  }[]>;
1704
1692
  readonly streamInteractions: (signal?: AbortSignal) => Promise<AsyncGenerator<import("@tai42/api-client").SseFrame, any, any>>;
1705
1693
  } | null>;