@promptlayer/mcp-server 1.13.0 → 1.16.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.
package/build/types.d.ts CHANGED
@@ -315,385 +315,6 @@ export declare const CreateSpansBulkArgsSchema: z.ZodObject<{
315
315
  spans: Record<string, unknown>[];
316
316
  api_key?: string | undefined;
317
317
  }>;
318
- export declare const ListDatasetsArgsSchema: z.ZodObject<{
319
- page: z.ZodOptional<z.ZodNumber>;
320
- per_page: z.ZodOptional<z.ZodNumber>;
321
- name: z.ZodOptional<z.ZodString>;
322
- status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
323
- dataset_group_id: z.ZodOptional<z.ZodNumber>;
324
- prompt_id: z.ZodOptional<z.ZodNumber>;
325
- prompt_version_id: z.ZodOptional<z.ZodNumber>;
326
- prompt_label_id: z.ZodOptional<z.ZodNumber>;
327
- report_id: z.ZodOptional<z.ZodNumber>;
328
- api_key: z.ZodOptional<z.ZodString>;
329
- }, "strip", z.ZodTypeAny, {
330
- status?: "active" | "deleted" | "all" | undefined;
331
- api_key?: string | undefined;
332
- page?: number | undefined;
333
- per_page?: number | undefined;
334
- name?: string | undefined;
335
- prompt_id?: number | undefined;
336
- prompt_version_id?: number | undefined;
337
- prompt_label_id?: number | undefined;
338
- dataset_group_id?: number | undefined;
339
- report_id?: number | undefined;
340
- }, {
341
- status?: "active" | "deleted" | "all" | undefined;
342
- api_key?: string | undefined;
343
- page?: number | undefined;
344
- per_page?: number | undefined;
345
- name?: string | undefined;
346
- prompt_id?: number | undefined;
347
- prompt_version_id?: number | undefined;
348
- prompt_label_id?: number | undefined;
349
- dataset_group_id?: number | undefined;
350
- report_id?: number | undefined;
351
- }>;
352
- export declare const CreateDatasetGroupArgsSchema: z.ZodObject<{
353
- name: z.ZodOptional<z.ZodString>;
354
- folder_id: z.ZodOptional<z.ZodNumber>;
355
- api_key: z.ZodOptional<z.ZodString>;
356
- }, "strip", z.ZodTypeAny, {
357
- api_key?: string | undefined;
358
- name?: string | undefined;
359
- folder_id?: number | undefined;
360
- }, {
361
- api_key?: string | undefined;
362
- name?: string | undefined;
363
- folder_id?: number | undefined;
364
- }>;
365
- export declare const CreateDatasetVersionFromFileArgsSchema: z.ZodObject<{
366
- dataset_group_id: z.ZodNumber;
367
- file_name: z.ZodString;
368
- file_content_base64: z.ZodString;
369
- api_key: z.ZodOptional<z.ZodString>;
370
- }, "strip", z.ZodTypeAny, {
371
- dataset_group_id: number;
372
- file_name: string;
373
- file_content_base64: string;
374
- api_key?: string | undefined;
375
- }, {
376
- dataset_group_id: number;
377
- file_name: string;
378
- file_content_base64: string;
379
- api_key?: string | undefined;
380
- }>;
381
- export declare const CreateDatasetVersionFromFilterParamsArgsSchema: z.ZodObject<{
382
- dataset_group_id: z.ZodNumber;
383
- request_log_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
384
- filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
385
- q: z.ZodOptional<z.ZodString>;
386
- sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
387
- sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
388
- variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
389
- api_key: z.ZodOptional<z.ZodString>;
390
- }, "strip", z.ZodTypeAny, {
391
- dataset_group_id: number;
392
- api_key?: string | undefined;
393
- request_log_ids?: number[] | undefined;
394
- filter_group?: any;
395
- q?: string | undefined;
396
- sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
397
- sort_order?: "asc" | "desc" | undefined;
398
- variables_to_parse?: string[] | undefined;
399
- }, {
400
- dataset_group_id: number;
401
- api_key?: string | undefined;
402
- request_log_ids?: number[] | undefined;
403
- filter_group?: any;
404
- q?: string | undefined;
405
- sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
406
- sort_order?: "asc" | "desc" | undefined;
407
- variables_to_parse?: string[] | undefined;
408
- }>;
409
- export declare const GetDatasetRowsArgsSchema: z.ZodObject<{
410
- dataset_id: z.ZodNumber;
411
- page: z.ZodOptional<z.ZodNumber>;
412
- per_page: z.ZodOptional<z.ZodNumber>;
413
- q: z.ZodOptional<z.ZodString>;
414
- api_key: z.ZodOptional<z.ZodString>;
415
- }, "strip", z.ZodTypeAny, {
416
- dataset_id: number;
417
- api_key?: string | undefined;
418
- page?: number | undefined;
419
- per_page?: number | undefined;
420
- q?: string | undefined;
421
- }, {
422
- dataset_id: number;
423
- api_key?: string | undefined;
424
- page?: number | undefined;
425
- per_page?: number | undefined;
426
- q?: string | undefined;
427
- }>;
428
- export declare const CreateDraftDatasetVersionArgsSchema: z.ZodObject<{
429
- dataset_group_id: z.ZodNumber;
430
- source_dataset_id: z.ZodOptional<z.ZodNumber>;
431
- api_key: z.ZodOptional<z.ZodString>;
432
- }, "strip", z.ZodTypeAny, {
433
- dataset_group_id: number;
434
- api_key?: string | undefined;
435
- source_dataset_id?: number | undefined;
436
- }, {
437
- dataset_group_id: number;
438
- api_key?: string | undefined;
439
- source_dataset_id?: number | undefined;
440
- }>;
441
- export declare const AddRequestLogToDatasetVersionArgsSchema: z.ZodObject<{
442
- dataset_group_id: z.ZodNumber;
443
- request_log_id: z.ZodNumber;
444
- api_key: z.ZodOptional<z.ZodString>;
445
- }, "strip", z.ZodTypeAny, {
446
- dataset_group_id: number;
447
- request_log_id: number;
448
- api_key?: string | undefined;
449
- }, {
450
- dataset_group_id: number;
451
- request_log_id: number;
452
- api_key?: string | undefined;
453
- }>;
454
- export declare const SaveDraftDatasetVersionArgsSchema: z.ZodObject<{
455
- dataset_group_id: z.ZodNumber;
456
- api_key: z.ZodOptional<z.ZodString>;
457
- }, "strip", z.ZodTypeAny, {
458
- dataset_group_id: number;
459
- api_key?: string | undefined;
460
- }, {
461
- dataset_group_id: number;
462
- api_key?: string | undefined;
463
- }>;
464
- export declare const AddTraceToDatasetVersionArgsSchema: z.ZodObject<{
465
- dataset_group_id: z.ZodNumber;
466
- trace_id: z.ZodString;
467
- span_id: z.ZodOptional<z.ZodString>;
468
- api_key: z.ZodOptional<z.ZodString>;
469
- }, "strip", z.ZodTypeAny, {
470
- dataset_group_id: number;
471
- trace_id: string;
472
- api_key?: string | undefined;
473
- span_id?: string | undefined;
474
- }, {
475
- dataset_group_id: number;
476
- trace_id: string;
477
- api_key?: string | undefined;
478
- span_id?: string | undefined;
479
- }>;
480
- export declare const ListEvaluationsArgsSchema: z.ZodObject<{
481
- page: z.ZodOptional<z.ZodNumber>;
482
- per_page: z.ZodOptional<z.ZodNumber>;
483
- name: z.ZodOptional<z.ZodString>;
484
- status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
485
- include_runs: z.ZodOptional<z.ZodBoolean>;
486
- api_key: z.ZodOptional<z.ZodString>;
487
- }, "strip", z.ZodTypeAny, {
488
- status?: "active" | "deleted" | "all" | undefined;
489
- api_key?: string | undefined;
490
- page?: number | undefined;
491
- per_page?: number | undefined;
492
- name?: string | undefined;
493
- include_runs?: boolean | undefined;
494
- }, {
495
- status?: "active" | "deleted" | "all" | undefined;
496
- api_key?: string | undefined;
497
- page?: number | undefined;
498
- per_page?: number | undefined;
499
- name?: string | undefined;
500
- include_runs?: boolean | undefined;
501
- }>;
502
- export declare const GetEvaluationRowsArgsSchema: z.ZodObject<{
503
- evaluation_id: z.ZodNumber;
504
- page: z.ZodOptional<z.ZodNumber>;
505
- per_page: z.ZodOptional<z.ZodNumber>;
506
- api_key: z.ZodOptional<z.ZodString>;
507
- }, "strip", z.ZodTypeAny, {
508
- evaluation_id: number;
509
- api_key?: string | undefined;
510
- page?: number | undefined;
511
- per_page?: number | undefined;
512
- }, {
513
- evaluation_id: number;
514
- api_key?: string | undefined;
515
- page?: number | undefined;
516
- per_page?: number | undefined;
517
- }>;
518
- export declare const CreateReportArgsSchema: z.ZodObject<{
519
- dataset_group_id: z.ZodNumber;
520
- name: z.ZodOptional<z.ZodString>;
521
- folder_id: z.ZodOptional<z.ZodNumber>;
522
- dataset_version_number: z.ZodOptional<z.ZodNumber>;
523
- columns: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
524
- score_configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
525
- api_key: z.ZodOptional<z.ZodString>;
526
- }, "strip", z.ZodTypeAny, {
527
- dataset_group_id: number;
528
- api_key?: string | undefined;
529
- name?: string | undefined;
530
- folder_id?: number | undefined;
531
- dataset_version_number?: number | undefined;
532
- columns?: Record<string, unknown>[] | undefined;
533
- score_configuration?: Record<string, unknown> | undefined;
534
- }, {
535
- dataset_group_id: number;
536
- api_key?: string | undefined;
537
- name?: string | undefined;
538
- folder_id?: number | undefined;
539
- dataset_version_number?: number | undefined;
540
- columns?: Record<string, unknown>[] | undefined;
541
- score_configuration?: Record<string, unknown> | undefined;
542
- }>;
543
- export declare const RunReportArgsSchema: z.ZodObject<{
544
- report_id: z.ZodNumber;
545
- name: z.ZodString;
546
- dataset_id: z.ZodOptional<z.ZodNumber>;
547
- refresh_dataset: z.ZodOptional<z.ZodBoolean>;
548
- api_key: z.ZodOptional<z.ZodString>;
549
- }, "strip", z.ZodTypeAny, {
550
- name: string;
551
- report_id: number;
552
- api_key?: string | undefined;
553
- dataset_id?: number | undefined;
554
- refresh_dataset?: boolean | undefined;
555
- }, {
556
- name: string;
557
- report_id: number;
558
- api_key?: string | undefined;
559
- dataset_id?: number | undefined;
560
- refresh_dataset?: boolean | undefined;
561
- }>;
562
- export declare const GetReportArgsSchema: z.ZodObject<{
563
- report_id: z.ZodNumber;
564
- api_key: z.ZodOptional<z.ZodString>;
565
- }, "strip", z.ZodTypeAny, {
566
- report_id: number;
567
- api_key?: string | undefined;
568
- }, {
569
- report_id: number;
570
- api_key?: string | undefined;
571
- }>;
572
- export declare const GetReportScoreArgsSchema: z.ZodObject<{
573
- report_id: z.ZodNumber;
574
- api_key: z.ZodOptional<z.ZodString>;
575
- }, "strip", z.ZodTypeAny, {
576
- report_id: number;
577
- api_key?: string | undefined;
578
- }, {
579
- report_id: number;
580
- api_key?: string | undefined;
581
- }>;
582
- export declare const UpdateReportScoreCardArgsSchema: z.ZodObject<{
583
- report_id: z.ZodNumber;
584
- column_names: z.ZodArray<z.ZodString, "many">;
585
- code: z.ZodOptional<z.ZodString>;
586
- code_language: z.ZodOptional<z.ZodEnum<["PYTHON", "JAVASCRIPT"]>>;
587
- api_key: z.ZodOptional<z.ZodString>;
588
- }, "strip", z.ZodTypeAny, {
589
- report_id: number;
590
- column_names: string[];
591
- code?: string | undefined;
592
- api_key?: string | undefined;
593
- code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
594
- }, {
595
- report_id: number;
596
- column_names: string[];
597
- code?: string | undefined;
598
- api_key?: string | undefined;
599
- code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
600
- }>;
601
- export declare const DeleteReportsByNameArgsSchema: z.ZodObject<{
602
- report_name: z.ZodString;
603
- api_key: z.ZodOptional<z.ZodString>;
604
- }, "strip", z.ZodTypeAny, {
605
- report_name: string;
606
- api_key?: string | undefined;
607
- }, {
608
- report_name: string;
609
- api_key?: string | undefined;
610
- }>;
611
- export declare const DeleteReportArgsSchema: z.ZodObject<{
612
- report_id: z.ZodNumber;
613
- api_key: z.ZodOptional<z.ZodString>;
614
- }, "strip", z.ZodTypeAny, {
615
- report_id: number;
616
- api_key?: string | undefined;
617
- }, {
618
- report_id: number;
619
- api_key?: string | undefined;
620
- }>;
621
- export declare const RenameReportArgsSchema: z.ZodObject<{
622
- report_id: z.ZodNumber;
623
- name: z.ZodOptional<z.ZodString>;
624
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
625
- api_key: z.ZodOptional<z.ZodString>;
626
- }, "strip", z.ZodTypeAny, {
627
- report_id: number;
628
- api_key?: string | undefined;
629
- name?: string | undefined;
630
- tags?: string[] | undefined;
631
- }, {
632
- report_id: number;
633
- api_key?: string | undefined;
634
- name?: string | undefined;
635
- tags?: string[] | undefined;
636
- }>;
637
- export declare const AddReportColumnArgsSchema: z.ZodObject<{
638
- report_id: z.ZodNumber;
639
- column_type: z.ZodString;
640
- name: z.ZodString;
641
- configuration: z.ZodRecord<z.ZodString, z.ZodUnknown>;
642
- position: z.ZodOptional<z.ZodNumber>;
643
- is_part_of_score: z.ZodOptional<z.ZodBoolean>;
644
- api_key: z.ZodOptional<z.ZodString>;
645
- }, "strip", z.ZodTypeAny, {
646
- name: string;
647
- report_id: number;
648
- column_type: string;
649
- configuration: Record<string, unknown>;
650
- api_key?: string | undefined;
651
- position?: number | undefined;
652
- is_part_of_score?: boolean | undefined;
653
- }, {
654
- name: string;
655
- report_id: number;
656
- column_type: string;
657
- configuration: Record<string, unknown>;
658
- api_key?: string | undefined;
659
- position?: number | undefined;
660
- is_part_of_score?: boolean | undefined;
661
- }>;
662
- export declare const EditReportColumnArgsSchema: z.ZodObject<{
663
- report_column_id: z.ZodNumber;
664
- report_id: z.ZodNumber;
665
- column_type: z.ZodString;
666
- configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
667
- name: z.ZodOptional<z.ZodString>;
668
- position: z.ZodOptional<z.ZodNumber>;
669
- api_key: z.ZodOptional<z.ZodString>;
670
- }, "strip", z.ZodTypeAny, {
671
- report_id: number;
672
- column_type: string;
673
- report_column_id: number;
674
- api_key?: string | undefined;
675
- name?: string | undefined;
676
- configuration?: Record<string, unknown> | undefined;
677
- position?: number | undefined;
678
- }, {
679
- report_id: number;
680
- column_type: string;
681
- report_column_id: number;
682
- api_key?: string | undefined;
683
- name?: string | undefined;
684
- configuration?: Record<string, unknown> | undefined;
685
- position?: number | undefined;
686
- }>;
687
- export declare const DeleteReportColumnArgsSchema: z.ZodObject<{
688
- report_column_id: z.ZodNumber;
689
- api_key: z.ZodOptional<z.ZodString>;
690
- }, "strip", z.ZodTypeAny, {
691
- report_column_id: number;
692
- api_key?: string | undefined;
693
- }, {
694
- report_column_id: number;
695
- api_key?: string | undefined;
696
- }>;
697
318
  export declare const ListWorkflowsArgsSchema: z.ZodObject<{
698
319
  page: z.ZodOptional<z.ZodNumber>;
699
320
  per_page: z.ZodOptional<z.ZodNumber>;
@@ -1007,36 +628,76 @@ export declare const TestExecuteToolRegistryArgsSchema: z.ZodObject<{
1007
628
  } | undefined;
1008
629
  inputs?: Record<string, unknown> | undefined;
1009
630
  }>;
1010
- export declare const CreateFolderArgsSchema: z.ZodObject<{
1011
- name: z.ZodString;
1012
- parent_id: z.ZodOptional<z.ZodNumber>;
631
+ export declare const ListWorkspaceEnvVarsArgsSchema: z.ZodObject<{
1013
632
  api_key: z.ZodOptional<z.ZodString>;
1014
633
  }, "strip", z.ZodTypeAny, {
1015
- name: string;
1016
634
  api_key?: string | undefined;
1017
- parent_id?: number | undefined;
1018
635
  }, {
1019
- name: string;
1020
636
  api_key?: string | undefined;
1021
- parent_id?: number | undefined;
1022
637
  }>;
1023
- export declare const EditFolderArgsSchema: z.ZodObject<{
1024
- folder_id: z.ZodNumber;
1025
- name: z.ZodString;
638
+ export declare const CreateWorkspaceEnvVarArgsSchema: z.ZodObject<{
639
+ key: z.ZodString;
1026
640
  api_key: z.ZodOptional<z.ZodString>;
1027
641
  }, "strip", z.ZodTypeAny, {
1028
- name: string;
1029
- folder_id: number;
642
+ key: string;
1030
643
  api_key?: string | undefined;
1031
644
  }, {
1032
- name: string;
1033
- folder_id: number;
645
+ key: string;
1034
646
  api_key?: string | undefined;
1035
647
  }>;
1036
- export declare const GetFolderEntitiesArgsSchema: z.ZodObject<{
1037
- folder_id: z.ZodOptional<z.ZodNumber>;
1038
- filter_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>, z.ZodArray<z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>, "many">]>>;
1039
- search_query: z.ZodOptional<z.ZodString>;
648
+ export declare const ListToolEnvVarsArgsSchema: z.ZodObject<{
649
+ identifier: z.ZodString;
650
+ api_key: z.ZodOptional<z.ZodString>;
651
+ }, "strip", z.ZodTypeAny, {
652
+ identifier: string;
653
+ api_key?: string | undefined;
654
+ }, {
655
+ identifier: string;
656
+ api_key?: string | undefined;
657
+ }>;
658
+ export declare const CreateToolEnvVarArgsSchema: z.ZodObject<{
659
+ identifier: z.ZodString;
660
+ key: z.ZodString;
661
+ api_key: z.ZodOptional<z.ZodString>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ identifier: string;
664
+ key: string;
665
+ api_key?: string | undefined;
666
+ }, {
667
+ identifier: string;
668
+ key: string;
669
+ api_key?: string | undefined;
670
+ }>;
671
+ export declare const CreateFolderArgsSchema: z.ZodObject<{
672
+ name: z.ZodString;
673
+ parent_id: z.ZodOptional<z.ZodNumber>;
674
+ api_key: z.ZodOptional<z.ZodString>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ name: string;
677
+ api_key?: string | undefined;
678
+ parent_id?: number | undefined;
679
+ }, {
680
+ name: string;
681
+ api_key?: string | undefined;
682
+ parent_id?: number | undefined;
683
+ }>;
684
+ export declare const EditFolderArgsSchema: z.ZodObject<{
685
+ folder_id: z.ZodNumber;
686
+ name: z.ZodString;
687
+ api_key: z.ZodOptional<z.ZodString>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ name: string;
690
+ folder_id: number;
691
+ api_key?: string | undefined;
692
+ }, {
693
+ name: string;
694
+ folder_id: number;
695
+ api_key?: string | undefined;
696
+ }>;
697
+ export declare const GetFolderEntitiesArgsSchema: z.ZodObject<{
698
+ folder_id: z.ZodOptional<z.ZodNumber>;
699
+ filter_type: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>, z.ZodArray<z.ZodEnum<["FOLDER", "PROMPT", "SNIPPET", "WORKFLOW", "DATASET", "REPORT", "AB_TEST", "INPUT_VARIABLE_SET"]>, "many">]>>;
700
+ search_query: z.ZodOptional<z.ZodString>;
1040
701
  semantic_search: z.ZodOptional<z.ZodBoolean>;
1041
702
  semantic_search_top_k: z.ZodOptional<z.ZodNumber>;
1042
703
  semantic_search_threshold: z.ZodOptional<z.ZodNumber>;
@@ -1239,168 +900,1178 @@ export declare const SaveSkillCollectionVersionArgsSchema: z.ZodObject<{
1239
900
  release_label: z.ZodOptional<z.ZodString>;
1240
901
  api_key: z.ZodOptional<z.ZodString>;
1241
902
  }, "strip", z.ZodTypeAny, {
1242
- identifier: string;
903
+ identifier: string;
904
+ api_key?: string | undefined;
905
+ commit_message?: string | undefined;
906
+ file_updates?: {
907
+ path: string;
908
+ content?: string | undefined;
909
+ }[] | undefined;
910
+ moves?: {
911
+ old_path: string;
912
+ new_path: string;
913
+ }[] | undefined;
914
+ deletes?: string[] | undefined;
915
+ release_label?: string | undefined;
916
+ }, {
917
+ identifier: string;
918
+ api_key?: string | undefined;
919
+ commit_message?: string | undefined;
920
+ file_updates?: {
921
+ path: string;
922
+ content?: string | undefined;
923
+ }[] | undefined;
924
+ moves?: {
925
+ old_path: string;
926
+ new_path: string;
927
+ }[] | undefined;
928
+ deletes?: string[] | undefined;
929
+ release_label?: string | undefined;
930
+ }>;
931
+ export declare const PatchPromptTemplateVersionArgsSchema: z.ZodObject<{
932
+ identifier: z.ZodString;
933
+ version: z.ZodOptional<z.ZodNumber>;
934
+ label: z.ZodOptional<z.ZodString>;
935
+ messages: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
936
+ tools: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodNull]>>;
937
+ functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodNull]>>;
938
+ function_call: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
939
+ tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
940
+ content: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
941
+ model_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
942
+ response_format: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
943
+ commit_message: z.ZodOptional<z.ZodString>;
944
+ release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
945
+ api_key: z.ZodOptional<z.ZodString>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ identifier: string;
948
+ version?: number | undefined;
949
+ label?: string | undefined;
950
+ api_key?: string | undefined;
951
+ commit_message?: string | undefined;
952
+ release_labels?: string[] | undefined;
953
+ content?: Record<string, unknown> | Record<string, unknown>[] | undefined;
954
+ messages?: Record<string, unknown> | Record<string, unknown>[] | undefined;
955
+ tools?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
956
+ functions?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
957
+ function_call?: string | Record<string, unknown> | null | undefined;
958
+ tool_choice?: string | Record<string, unknown> | null | undefined;
959
+ model_parameters?: Record<string, unknown> | undefined;
960
+ response_format?: Record<string, unknown> | null | undefined;
961
+ }, {
962
+ identifier: string;
963
+ version?: number | undefined;
964
+ label?: string | undefined;
965
+ api_key?: string | undefined;
966
+ commit_message?: string | undefined;
967
+ release_labels?: string[] | undefined;
968
+ content?: Record<string, unknown> | Record<string, unknown>[] | undefined;
969
+ messages?: Record<string, unknown> | Record<string, unknown>[] | undefined;
970
+ tools?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
971
+ functions?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
972
+ function_call?: string | Record<string, unknown> | null | undefined;
973
+ tool_choice?: string | Record<string, unknown> | null | undefined;
974
+ model_parameters?: Record<string, unknown> | undefined;
975
+ response_format?: Record<string, unknown> | null | undefined;
976
+ }>;
977
+ export declare const SearchRequestLogsArgsSchema: z.ZodObject<{
978
+ page: z.ZodOptional<z.ZodNumber>;
979
+ per_page: z.ZodOptional<z.ZodNumber>;
980
+ include_prompt_name: z.ZodOptional<z.ZodBoolean>;
981
+ api_key: z.ZodOptional<z.ZodString>;
982
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
983
+ q: z.ZodOptional<z.ZodString>;
984
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
985
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ api_key?: string | undefined;
988
+ page?: number | undefined;
989
+ per_page?: number | undefined;
990
+ include_prompt_name?: boolean | undefined;
991
+ filter_group?: any;
992
+ q?: string | undefined;
993
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
994
+ sort_order?: "asc" | "desc" | undefined;
995
+ }, {
996
+ api_key?: string | undefined;
997
+ page?: number | undefined;
998
+ per_page?: number | undefined;
999
+ include_prompt_name?: boolean | undefined;
1000
+ filter_group?: any;
1001
+ q?: string | undefined;
1002
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1003
+ sort_order?: "asc" | "desc" | undefined;
1004
+ }>;
1005
+ export declare const GetRequestAnalyticsArgsSchema: z.ZodObject<{
1006
+ api_key: z.ZodOptional<z.ZodString>;
1007
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1008
+ q: z.ZodOptional<z.ZodString>;
1009
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1010
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ api_key?: string | undefined;
1013
+ filter_group?: any;
1014
+ q?: string | undefined;
1015
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1016
+ sort_order?: "asc" | "desc" | undefined;
1017
+ }, {
1018
+ api_key?: string | undefined;
1019
+ filter_group?: any;
1020
+ q?: string | undefined;
1021
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1022
+ sort_order?: "asc" | "desc" | undefined;
1023
+ }>;
1024
+ export declare const GetRequestAnalyticsCustomAnalyticsArgsSchema: z.ZodObject<{
1025
+ customCharts: z.ZodArray<z.ZodObject<{
1026
+ id: z.ZodString;
1027
+ title: z.ZodOptional<z.ZodString>;
1028
+ chartType: z.ZodEnum<["bar", "line", "area"]>;
1029
+ metric: z.ZodOptional<z.ZodEnum<["count", "sum", "avg", "min", "max", "percentile"]>>;
1030
+ metricField: z.ZodOptional<z.ZodEnum<["input_tokens", "output_tokens", "cost", "latency_ms", "prompt_version_number", "turn_count", "tool_call_count", "cached_tokens", "thinking_tokens"]>>;
1031
+ percentile: z.ZodOptional<z.ZodNumber>;
1032
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
1033
+ key: z.ZodString;
1034
+ label: z.ZodString;
1035
+ metric: z.ZodEnum<["sum", "avg", "min", "max", "percentile"]>;
1036
+ metricField: z.ZodEnum<["input_tokens", "output_tokens", "cost", "latency_ms", "prompt_version_number", "turn_count", "tool_call_count", "cached_tokens", "thinking_tokens"]>;
1037
+ percentile: z.ZodOptional<z.ZodNumber>;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ label: string;
1040
+ key: string;
1041
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
1042
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
1043
+ percentile?: number | undefined;
1044
+ }, {
1045
+ label: string;
1046
+ key: string;
1047
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
1048
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
1049
+ percentile?: number | undefined;
1050
+ }>, "many">>;
1051
+ derivedInsights: z.ZodOptional<z.ZodArray<z.ZodObject<{
1052
+ label: z.ZodString;
1053
+ numeratorSeriesKey: z.ZodString;
1054
+ denominatorSeriesKey: z.ZodString;
1055
+ }, "strip", z.ZodTypeAny, {
1056
+ label: string;
1057
+ numeratorSeriesKey: string;
1058
+ denominatorSeriesKey: string;
1059
+ }, {
1060
+ label: string;
1061
+ numeratorSeriesKey: string;
1062
+ denominatorSeriesKey: string;
1063
+ }>, "many">>;
1064
+ groupByField: z.ZodOptional<z.ZodEnum<["engine", "provider_type", "prompt_id", "prompt_version_number", "status", "error_type", "tags", "metadata_keys", "output_keys", "input_variable_keys", "tool_names"]>>;
1065
+ groupByMetadataKey: z.ZodOptional<z.ZodString>;
1066
+ timeSeries: z.ZodOptional<z.ZodBoolean>;
1067
+ limit: z.ZodOptional<z.ZodNumber>;
1068
+ }, "strip", z.ZodTypeAny, {
1069
+ id: string;
1070
+ chartType: "bar" | "line" | "area";
1071
+ percentile?: number | undefined;
1072
+ metric?: "sum" | "avg" | "min" | "max" | "percentile" | "count" | undefined;
1073
+ metricField?: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens" | undefined;
1074
+ title?: string | undefined;
1075
+ series?: {
1076
+ label: string;
1077
+ key: string;
1078
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
1079
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
1080
+ percentile?: number | undefined;
1081
+ }[] | undefined;
1082
+ derivedInsights?: {
1083
+ label: string;
1084
+ numeratorSeriesKey: string;
1085
+ denominatorSeriesKey: string;
1086
+ }[] | undefined;
1087
+ groupByField?: "status" | "tags" | "prompt_id" | "prompt_version_number" | "error_type" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | undefined;
1088
+ groupByMetadataKey?: string | undefined;
1089
+ timeSeries?: boolean | undefined;
1090
+ limit?: number | undefined;
1091
+ }, {
1092
+ id: string;
1093
+ chartType: "bar" | "line" | "area";
1094
+ percentile?: number | undefined;
1095
+ metric?: "sum" | "avg" | "min" | "max" | "percentile" | "count" | undefined;
1096
+ metricField?: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens" | undefined;
1097
+ title?: string | undefined;
1098
+ series?: {
1099
+ label: string;
1100
+ key: string;
1101
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
1102
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
1103
+ percentile?: number | undefined;
1104
+ }[] | undefined;
1105
+ derivedInsights?: {
1106
+ label: string;
1107
+ numeratorSeriesKey: string;
1108
+ denominatorSeriesKey: string;
1109
+ }[] | undefined;
1110
+ groupByField?: "status" | "tags" | "prompt_id" | "prompt_version_number" | "error_type" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | undefined;
1111
+ groupByMetadataKey?: string | undefined;
1112
+ timeSeries?: boolean | undefined;
1113
+ limit?: number | undefined;
1114
+ }>, "many">;
1115
+ api_key: z.ZodOptional<z.ZodString>;
1116
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1117
+ q: z.ZodOptional<z.ZodString>;
1118
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1119
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ customCharts: {
1122
+ id: string;
1123
+ chartType: "bar" | "line" | "area";
1124
+ percentile?: number | undefined;
1125
+ metric?: "sum" | "avg" | "min" | "max" | "percentile" | "count" | undefined;
1126
+ metricField?: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens" | undefined;
1127
+ title?: string | undefined;
1128
+ series?: {
1129
+ label: string;
1130
+ key: string;
1131
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
1132
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
1133
+ percentile?: number | undefined;
1134
+ }[] | undefined;
1135
+ derivedInsights?: {
1136
+ label: string;
1137
+ numeratorSeriesKey: string;
1138
+ denominatorSeriesKey: string;
1139
+ }[] | undefined;
1140
+ groupByField?: "status" | "tags" | "prompt_id" | "prompt_version_number" | "error_type" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | undefined;
1141
+ groupByMetadataKey?: string | undefined;
1142
+ timeSeries?: boolean | undefined;
1143
+ limit?: number | undefined;
1144
+ }[];
1145
+ api_key?: string | undefined;
1146
+ filter_group?: any;
1147
+ q?: string | undefined;
1148
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1149
+ sort_order?: "asc" | "desc" | undefined;
1150
+ }, {
1151
+ customCharts: {
1152
+ id: string;
1153
+ chartType: "bar" | "line" | "area";
1154
+ percentile?: number | undefined;
1155
+ metric?: "sum" | "avg" | "min" | "max" | "percentile" | "count" | undefined;
1156
+ metricField?: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens" | undefined;
1157
+ title?: string | undefined;
1158
+ series?: {
1159
+ label: string;
1160
+ key: string;
1161
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
1162
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
1163
+ percentile?: number | undefined;
1164
+ }[] | undefined;
1165
+ derivedInsights?: {
1166
+ label: string;
1167
+ numeratorSeriesKey: string;
1168
+ denominatorSeriesKey: string;
1169
+ }[] | undefined;
1170
+ groupByField?: "status" | "tags" | "prompt_id" | "prompt_version_number" | "error_type" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | undefined;
1171
+ groupByMetadataKey?: string | undefined;
1172
+ timeSeries?: boolean | undefined;
1173
+ limit?: number | undefined;
1174
+ }[];
1175
+ api_key?: string | undefined;
1176
+ filter_group?: any;
1177
+ q?: string | undefined;
1178
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1179
+ sort_order?: "asc" | "desc" | undefined;
1180
+ }>;
1181
+ export declare const GetRequestArgsSchema: z.ZodObject<{
1182
+ request_id: z.ZodNumber;
1183
+ api_key: z.ZodOptional<z.ZodString>;
1184
+ }, "strip", z.ZodTypeAny, {
1185
+ request_id: number;
1186
+ api_key?: string | undefined;
1187
+ }, {
1188
+ request_id: number;
1189
+ api_key?: string | undefined;
1190
+ }>;
1191
+ export declare const GetTraceArgsSchema: z.ZodObject<{
1192
+ trace_id: z.ZodString;
1193
+ api_key: z.ZodOptional<z.ZodString>;
1194
+ }, "strip", z.ZodTypeAny, {
1195
+ trace_id: string;
1196
+ api_key?: string | undefined;
1197
+ }, {
1198
+ trace_id: string;
1199
+ api_key?: string | undefined;
1200
+ }>;
1201
+ export declare const GetRequestSearchSuggestionsArgsSchema: z.ZodObject<{
1202
+ field: z.ZodEnum<["engine", "provider_type", "prompt_id", "prompt", "tags", "metadata_keys", "status", "tool_names", "output_keys", "input_variable_keys", "metadata_values", "output_values", "input_variable_values"]>;
1203
+ prefix: z.ZodOptional<z.ZodString>;
1204
+ metadata_key: z.ZodOptional<z.ZodString>;
1205
+ prompt_id: z.ZodOptional<z.ZodNumber>;
1206
+ filter_group: z.ZodOptional<z.ZodString>;
1207
+ api_key: z.ZodOptional<z.ZodString>;
1208
+ }, "strip", z.ZodTypeAny, {
1209
+ field: "status" | "tags" | "prompt_id" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | "prompt" | "metadata_values" | "output_values" | "input_variable_values";
1210
+ api_key?: string | undefined;
1211
+ prompt_id?: number | undefined;
1212
+ filter_group?: string | undefined;
1213
+ prefix?: string | undefined;
1214
+ metadata_key?: string | undefined;
1215
+ }, {
1216
+ field: "status" | "tags" | "prompt_id" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | "prompt" | "metadata_values" | "output_values" | "input_variable_values";
1217
+ api_key?: string | undefined;
1218
+ prompt_id?: number | undefined;
1219
+ filter_group?: string | undefined;
1220
+ prefix?: string | undefined;
1221
+ metadata_key?: string | undefined;
1222
+ }>;
1223
+ export declare const ListSmartTablesArgsSchema: z.ZodObject<{
1224
+ api_key: z.ZodOptional<z.ZodString>;
1225
+ prompt_id: z.ZodOptional<z.ZodNumber>;
1226
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
1227
+ prompt_label_id: z.ZodOptional<z.ZodNumber>;
1228
+ sort: z.ZodOptional<z.ZodEnum<["created_at"]>>;
1229
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1230
+ cursor: z.ZodOptional<z.ZodString>;
1231
+ limit: z.ZodOptional<z.ZodNumber>;
1232
+ folder_id: z.ZodOptional<z.ZodNumber>;
1233
+ name: z.ZodOptional<z.ZodString>;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ sort?: "created_at" | undefined;
1236
+ api_key?: string | undefined;
1237
+ name?: string | undefined;
1238
+ folder_id?: number | undefined;
1239
+ prompt_id?: number | undefined;
1240
+ prompt_version_id?: number | undefined;
1241
+ prompt_label_id?: number | undefined;
1242
+ limit?: number | undefined;
1243
+ order?: "asc" | "desc" | undefined;
1244
+ cursor?: string | undefined;
1245
+ }, {
1246
+ sort?: "created_at" | undefined;
1247
+ api_key?: string | undefined;
1248
+ name?: string | undefined;
1249
+ folder_id?: number | undefined;
1250
+ prompt_id?: number | undefined;
1251
+ prompt_version_id?: number | undefined;
1252
+ prompt_label_id?: number | undefined;
1253
+ limit?: number | undefined;
1254
+ order?: "asc" | "desc" | undefined;
1255
+ cursor?: string | undefined;
1256
+ }>;
1257
+ export declare const CreateSmartTableArgsSchema: z.ZodObject<{
1258
+ title: z.ZodOptional<z.ZodString>;
1259
+ folder_id: z.ZodOptional<z.ZodNumber>;
1260
+ api_key: z.ZodOptional<z.ZodString>;
1261
+ }, "strip", z.ZodTypeAny, {
1262
+ api_key?: string | undefined;
1263
+ folder_id?: number | undefined;
1264
+ title?: string | undefined;
1265
+ }, {
1266
+ api_key?: string | undefined;
1267
+ folder_id?: number | undefined;
1268
+ title?: string | undefined;
1269
+ }>;
1270
+ export declare const GetSmartTableArgsSchema: z.ZodObject<{
1271
+ table_id: z.ZodString;
1272
+ api_key: z.ZodOptional<z.ZodString>;
1273
+ }, "strip", z.ZodTypeAny, {
1274
+ table_id: string;
1275
+ api_key?: string | undefined;
1276
+ }, {
1277
+ table_id: string;
1278
+ api_key?: string | undefined;
1279
+ }>;
1280
+ export declare const UpdateSmartTableArgsSchema: z.ZodObject<{
1281
+ table_id: z.ZodString;
1282
+ title: z.ZodOptional<z.ZodString>;
1283
+ folder_id: z.ZodOptional<z.ZodNumber>;
1284
+ api_key: z.ZodOptional<z.ZodString>;
1285
+ }, "strip", z.ZodTypeAny, {
1286
+ table_id: string;
1287
+ api_key?: string | undefined;
1288
+ folder_id?: number | undefined;
1289
+ title?: string | undefined;
1290
+ }, {
1291
+ table_id: string;
1292
+ api_key?: string | undefined;
1293
+ folder_id?: number | undefined;
1294
+ title?: string | undefined;
1295
+ }>;
1296
+ export declare const ListSmartTableSheetsArgsSchema: z.ZodObject<{
1297
+ api_key: z.ZodOptional<z.ZodString>;
1298
+ prompt_id: z.ZodOptional<z.ZodNumber>;
1299
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
1300
+ prompt_label_id: z.ZodOptional<z.ZodNumber>;
1301
+ sort: z.ZodOptional<z.ZodEnum<["index"]>>;
1302
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1303
+ cursor: z.ZodOptional<z.ZodString>;
1304
+ limit: z.ZodOptional<z.ZodNumber>;
1305
+ table_id: z.ZodString;
1306
+ }, "strip", z.ZodTypeAny, {
1307
+ table_id: string;
1308
+ sort?: "index" | undefined;
1309
+ api_key?: string | undefined;
1310
+ prompt_id?: number | undefined;
1311
+ prompt_version_id?: number | undefined;
1312
+ prompt_label_id?: number | undefined;
1313
+ limit?: number | undefined;
1314
+ order?: "asc" | "desc" | undefined;
1315
+ cursor?: string | undefined;
1316
+ }, {
1317
+ table_id: string;
1318
+ sort?: "index" | undefined;
1319
+ api_key?: string | undefined;
1320
+ prompt_id?: number | undefined;
1321
+ prompt_version_id?: number | undefined;
1322
+ prompt_label_id?: number | undefined;
1323
+ limit?: number | undefined;
1324
+ order?: "asc" | "desc" | undefined;
1325
+ cursor?: string | undefined;
1326
+ }>;
1327
+ export declare const CreateSmartTableSheetArgsSchema: z.ZodObject<{
1328
+ table_id: z.ZodString;
1329
+ title: z.ZodOptional<z.ZodString>;
1330
+ index: z.ZodOptional<z.ZodNumber>;
1331
+ operation_id: z.ZodOptional<z.ZodString>;
1332
+ source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1333
+ type: z.ZodLiteral<"file">;
1334
+ file_name: z.ZodString;
1335
+ file_content_base64: z.ZodString;
1336
+ }, "strip", z.ZodTypeAny, {
1337
+ type: "file";
1338
+ file_name: string;
1339
+ file_content_base64: string;
1340
+ }, {
1341
+ type: "file";
1342
+ file_name: string;
1343
+ file_content_base64: string;
1344
+ }>, z.ZodObject<{
1345
+ request_log_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1346
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1347
+ q: z.ZodOptional<z.ZodString>;
1348
+ sort_by: z.ZodOptional<z.ZodString>;
1349
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1350
+ metadata_cost_breakdown_key: z.ZodOptional<z.ZodString>;
1351
+ variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1352
+ include_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1353
+ limit: z.ZodOptional<z.ZodNumber>;
1354
+ type: z.ZodLiteral<"request_logs">;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ type: "request_logs";
1357
+ filter_group?: any;
1358
+ q?: string | undefined;
1359
+ sort_by?: string | undefined;
1360
+ sort_order?: "asc" | "desc" | undefined;
1361
+ limit?: number | undefined;
1362
+ request_log_ids?: number[] | undefined;
1363
+ metadata_cost_breakdown_key?: string | undefined;
1364
+ variables_to_parse?: string[] | undefined;
1365
+ include_fields?: string[] | undefined;
1366
+ }, {
1367
+ type: "request_logs";
1368
+ filter_group?: any;
1369
+ q?: string | undefined;
1370
+ sort_by?: string | undefined;
1371
+ sort_order?: "asc" | "desc" | undefined;
1372
+ limit?: number | undefined;
1373
+ request_log_ids?: number[] | undefined;
1374
+ metadata_cost_breakdown_key?: string | undefined;
1375
+ variables_to_parse?: string[] | undefined;
1376
+ include_fields?: string[] | undefined;
1377
+ }>]>;
1378
+ api_key: z.ZodOptional<z.ZodString>;
1379
+ }, "strip", z.ZodTypeAny, {
1380
+ table_id: string;
1381
+ source: {
1382
+ type: "file";
1383
+ file_name: string;
1384
+ file_content_base64: string;
1385
+ } | {
1386
+ type: "request_logs";
1387
+ filter_group?: any;
1388
+ q?: string | undefined;
1389
+ sort_by?: string | undefined;
1390
+ sort_order?: "asc" | "desc" | undefined;
1391
+ limit?: number | undefined;
1392
+ request_log_ids?: number[] | undefined;
1393
+ metadata_cost_breakdown_key?: string | undefined;
1394
+ variables_to_parse?: string[] | undefined;
1395
+ include_fields?: string[] | undefined;
1396
+ };
1397
+ api_key?: string | undefined;
1398
+ title?: string | undefined;
1399
+ index?: number | undefined;
1400
+ operation_id?: string | undefined;
1401
+ }, {
1402
+ table_id: string;
1403
+ source: {
1404
+ type: "file";
1405
+ file_name: string;
1406
+ file_content_base64: string;
1407
+ } | {
1408
+ type: "request_logs";
1409
+ filter_group?: any;
1410
+ q?: string | undefined;
1411
+ sort_by?: string | undefined;
1412
+ sort_order?: "asc" | "desc" | undefined;
1413
+ limit?: number | undefined;
1414
+ request_log_ids?: number[] | undefined;
1415
+ metadata_cost_breakdown_key?: string | undefined;
1416
+ variables_to_parse?: string[] | undefined;
1417
+ include_fields?: string[] | undefined;
1418
+ };
1419
+ api_key?: string | undefined;
1420
+ title?: string | undefined;
1421
+ index?: number | undefined;
1422
+ operation_id?: string | undefined;
1423
+ }>;
1424
+ export declare const GetSmartTableSheetArgsSchema: z.ZodObject<{
1425
+ table_id: z.ZodString;
1426
+ sheet_id: z.ZodString;
1427
+ api_key: z.ZodOptional<z.ZodString>;
1428
+ }, "strip", z.ZodTypeAny, {
1429
+ table_id: string;
1430
+ sheet_id: string;
1431
+ api_key?: string | undefined;
1432
+ }, {
1433
+ table_id: string;
1434
+ sheet_id: string;
1435
+ api_key?: string | undefined;
1436
+ }>;
1437
+ export declare const UpdateSmartTableSheetArgsSchema: z.ZodObject<{
1438
+ table_id: z.ZodString;
1439
+ sheet_id: z.ZodString;
1440
+ title: z.ZodOptional<z.ZodString>;
1441
+ index: z.ZodOptional<z.ZodNumber>;
1442
+ api_key: z.ZodOptional<z.ZodString>;
1443
+ }, "strip", z.ZodTypeAny, {
1444
+ table_id: string;
1445
+ sheet_id: string;
1446
+ api_key?: string | undefined;
1447
+ title?: string | undefined;
1448
+ index?: number | undefined;
1449
+ }, {
1450
+ table_id: string;
1451
+ sheet_id: string;
1452
+ api_key?: string | undefined;
1453
+ title?: string | undefined;
1454
+ index?: number | undefined;
1455
+ }>;
1456
+ export declare const GetSmartTableSheetImportOperationArgsSchema: z.ZodObject<{
1457
+ table_id: z.ZodString;
1458
+ operation_id: z.ZodString;
1459
+ api_key: z.ZodOptional<z.ZodString>;
1460
+ }, "strip", z.ZodTypeAny, {
1461
+ table_id: string;
1462
+ operation_id: string;
1463
+ api_key?: string | undefined;
1464
+ }, {
1465
+ table_id: string;
1466
+ operation_id: string;
1467
+ api_key?: string | undefined;
1468
+ }>;
1469
+ export declare const ImportSmartTableSheetFileArgsSchema: z.ZodObject<{
1470
+ table_id: z.ZodString;
1471
+ sheet_id: z.ZodString;
1472
+ operation_id: z.ZodOptional<z.ZodString>;
1473
+ file_name: z.ZodString;
1474
+ file_content_base64: z.ZodString;
1475
+ api_key: z.ZodOptional<z.ZodString>;
1476
+ }, "strip", z.ZodTypeAny, {
1477
+ file_name: string;
1478
+ file_content_base64: string;
1479
+ table_id: string;
1480
+ sheet_id: string;
1481
+ api_key?: string | undefined;
1482
+ operation_id?: string | undefined;
1483
+ }, {
1484
+ file_name: string;
1485
+ file_content_base64: string;
1486
+ table_id: string;
1487
+ sheet_id: string;
1488
+ api_key?: string | undefined;
1489
+ operation_id?: string | undefined;
1490
+ }>;
1491
+ export declare const ImportSmartTableSheetRequestLogsArgsSchema: z.ZodObject<{
1492
+ api_key: z.ZodOptional<z.ZodString>;
1493
+ request_log_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1494
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1495
+ q: z.ZodOptional<z.ZodString>;
1496
+ sort_by: z.ZodOptional<z.ZodString>;
1497
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1498
+ metadata_cost_breakdown_key: z.ZodOptional<z.ZodString>;
1499
+ variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1500
+ include_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1501
+ limit: z.ZodOptional<z.ZodNumber>;
1502
+ table_id: z.ZodString;
1503
+ sheet_id: z.ZodString;
1504
+ operation_id: z.ZodOptional<z.ZodString>;
1505
+ }, "strip", z.ZodTypeAny, {
1506
+ table_id: string;
1507
+ sheet_id: string;
1508
+ api_key?: string | undefined;
1509
+ filter_group?: any;
1510
+ q?: string | undefined;
1511
+ sort_by?: string | undefined;
1512
+ sort_order?: "asc" | "desc" | undefined;
1513
+ limit?: number | undefined;
1514
+ request_log_ids?: number[] | undefined;
1515
+ metadata_cost_breakdown_key?: string | undefined;
1516
+ variables_to_parse?: string[] | undefined;
1517
+ include_fields?: string[] | undefined;
1518
+ operation_id?: string | undefined;
1519
+ }, {
1520
+ table_id: string;
1521
+ sheet_id: string;
1522
+ api_key?: string | undefined;
1523
+ filter_group?: any;
1524
+ q?: string | undefined;
1525
+ sort_by?: string | undefined;
1526
+ sort_order?: "asc" | "desc" | undefined;
1527
+ limit?: number | undefined;
1528
+ request_log_ids?: number[] | undefined;
1529
+ metadata_cost_breakdown_key?: string | undefined;
1530
+ variables_to_parse?: string[] | undefined;
1531
+ include_fields?: string[] | undefined;
1532
+ operation_id?: string | undefined;
1533
+ }>;
1534
+ export declare const ListSmartTableColumnsArgsSchema: z.ZodObject<{
1535
+ sort: z.ZodOptional<z.ZodEnum<["position_rank"]>>;
1536
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1537
+ include_system_columns: z.ZodOptional<z.ZodBoolean>;
1538
+ api_key: z.ZodOptional<z.ZodString>;
1539
+ cursor: z.ZodOptional<z.ZodString>;
1540
+ limit: z.ZodOptional<z.ZodNumber>;
1541
+ table_id: z.ZodString;
1542
+ sheet_id: z.ZodString;
1543
+ }, "strip", z.ZodTypeAny, {
1544
+ table_id: string;
1545
+ sheet_id: string;
1546
+ sort?: "position_rank" | undefined;
1547
+ api_key?: string | undefined;
1548
+ limit?: number | undefined;
1549
+ order?: "asc" | "desc" | undefined;
1550
+ cursor?: string | undefined;
1551
+ include_system_columns?: boolean | undefined;
1552
+ }, {
1553
+ table_id: string;
1554
+ sheet_id: string;
1555
+ sort?: "position_rank" | undefined;
1556
+ api_key?: string | undefined;
1557
+ limit?: number | undefined;
1558
+ order?: "asc" | "desc" | undefined;
1559
+ cursor?: string | undefined;
1560
+ include_system_columns?: boolean | undefined;
1561
+ }>;
1562
+ export declare const CreateSmartTableColumnArgsSchema: z.ZodObject<{
1563
+ table_id: z.ZodString;
1564
+ sheet_id: z.ZodString;
1565
+ title: z.ZodString;
1566
+ type: z.ZodEnum<["TEXT", "ABSOLUTE_NUMERIC_DISTANCE", "AI_DATA_EXTRACTION", "APPLY_DIFF", "ASSERT_VALID", "COALESCE", "CONDITION", "CODE_EXECUTION", "COMBINE_COLUMNS", "COMPARE", "COMPOSITION", "CONTAINS", "CONVERSATION_SIMULATOR", "COSINE_SIMILARITY", "COUNT", "DATASET", "ENDPOINT", "FOR_LOOP", "HUMAN", "JSON_PATH", "LLM_ASSERTION", "MATH_OPERATOR", "MCP", "MIN_MAX", "PARSE_VALUE", "PROMPT_TEMPLATE", "REGEX", "REGEX_EXTRACTION", "VARIABLE", "WHILE_LOOP", "WORKFLOW", "XML_PATH"]>;
1567
+ config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1568
+ dependencies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1569
+ column_id: z.ZodString;
1570
+ reference_type: z.ZodOptional<z.ZodString>;
1571
+ config_key: z.ZodOptional<z.ZodString>;
1572
+ config_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1573
+ }, "strip", z.ZodTypeAny, {
1574
+ column_id: string;
1575
+ reference_type?: string | undefined;
1576
+ config_key?: string | undefined;
1577
+ config_meta?: Record<string, unknown> | undefined;
1578
+ }, {
1579
+ column_id: string;
1580
+ reference_type?: string | undefined;
1581
+ config_key?: string | undefined;
1582
+ config_meta?: Record<string, unknown> | undefined;
1583
+ }>, "many">>>;
1584
+ api_key: z.ZodOptional<z.ZodString>;
1585
+ }, "strip", z.ZodTypeAny, {
1586
+ type: "WORKFLOW" | "DATASET" | "TEXT" | "ABSOLUTE_NUMERIC_DISTANCE" | "AI_DATA_EXTRACTION" | "APPLY_DIFF" | "ASSERT_VALID" | "COALESCE" | "CONDITION" | "CODE_EXECUTION" | "COMBINE_COLUMNS" | "COMPARE" | "COMPOSITION" | "CONTAINS" | "CONVERSATION_SIMULATOR" | "COSINE_SIMILARITY" | "COUNT" | "ENDPOINT" | "FOR_LOOP" | "HUMAN" | "JSON_PATH" | "LLM_ASSERTION" | "MATH_OPERATOR" | "MCP" | "MIN_MAX" | "PARSE_VALUE" | "PROMPT_TEMPLATE" | "REGEX" | "REGEX_EXTRACTION" | "VARIABLE" | "WHILE_LOOP" | "XML_PATH";
1587
+ title: string;
1588
+ table_id: string;
1589
+ sheet_id: string;
1590
+ api_key?: string | undefined;
1591
+ config?: Record<string, unknown> | null | undefined;
1592
+ dependencies?: {
1593
+ column_id: string;
1594
+ reference_type?: string | undefined;
1595
+ config_key?: string | undefined;
1596
+ config_meta?: Record<string, unknown> | undefined;
1597
+ }[] | null | undefined;
1598
+ }, {
1599
+ type: "WORKFLOW" | "DATASET" | "TEXT" | "ABSOLUTE_NUMERIC_DISTANCE" | "AI_DATA_EXTRACTION" | "APPLY_DIFF" | "ASSERT_VALID" | "COALESCE" | "CONDITION" | "CODE_EXECUTION" | "COMBINE_COLUMNS" | "COMPARE" | "COMPOSITION" | "CONTAINS" | "CONVERSATION_SIMULATOR" | "COSINE_SIMILARITY" | "COUNT" | "ENDPOINT" | "FOR_LOOP" | "HUMAN" | "JSON_PATH" | "LLM_ASSERTION" | "MATH_OPERATOR" | "MCP" | "MIN_MAX" | "PARSE_VALUE" | "PROMPT_TEMPLATE" | "REGEX" | "REGEX_EXTRACTION" | "VARIABLE" | "WHILE_LOOP" | "XML_PATH";
1600
+ title: string;
1601
+ table_id: string;
1602
+ sheet_id: string;
1603
+ api_key?: string | undefined;
1604
+ config?: Record<string, unknown> | null | undefined;
1605
+ dependencies?: {
1606
+ column_id: string;
1607
+ reference_type?: string | undefined;
1608
+ config_key?: string | undefined;
1609
+ config_meta?: Record<string, unknown> | undefined;
1610
+ }[] | null | undefined;
1611
+ }>;
1612
+ export declare const UpdateSmartTableColumnArgsSchema: z.ZodObject<{
1613
+ table_id: z.ZodString;
1614
+ sheet_id: z.ZodString;
1615
+ column_id: z.ZodString;
1616
+ title: z.ZodOptional<z.ZodString>;
1617
+ config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1618
+ dependencies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1619
+ column_id: z.ZodString;
1620
+ reference_type: z.ZodOptional<z.ZodString>;
1621
+ config_key: z.ZodOptional<z.ZodString>;
1622
+ config_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1623
+ }, "strip", z.ZodTypeAny, {
1624
+ column_id: string;
1625
+ reference_type?: string | undefined;
1626
+ config_key?: string | undefined;
1627
+ config_meta?: Record<string, unknown> | undefined;
1628
+ }, {
1629
+ column_id: string;
1630
+ reference_type?: string | undefined;
1631
+ config_key?: string | undefined;
1632
+ config_meta?: Record<string, unknown> | undefined;
1633
+ }>, "many">>>;
1634
+ api_key: z.ZodOptional<z.ZodString>;
1635
+ }, "strip", z.ZodTypeAny, {
1636
+ column_id: string;
1637
+ table_id: string;
1638
+ sheet_id: string;
1639
+ api_key?: string | undefined;
1640
+ title?: string | undefined;
1641
+ config?: Record<string, unknown> | null | undefined;
1642
+ dependencies?: {
1643
+ column_id: string;
1644
+ reference_type?: string | undefined;
1645
+ config_key?: string | undefined;
1646
+ config_meta?: Record<string, unknown> | undefined;
1647
+ }[] | null | undefined;
1648
+ }, {
1649
+ column_id: string;
1650
+ table_id: string;
1651
+ sheet_id: string;
1652
+ api_key?: string | undefined;
1653
+ title?: string | undefined;
1654
+ config?: Record<string, unknown> | null | undefined;
1655
+ dependencies?: {
1656
+ column_id: string;
1657
+ reference_type?: string | undefined;
1658
+ config_key?: string | undefined;
1659
+ config_meta?: Record<string, unknown> | undefined;
1660
+ }[] | null | undefined;
1661
+ }>;
1662
+ export declare const ListSmartTableRowsArgsSchema: z.ZodObject<{
1663
+ sort: z.ZodOptional<z.ZodEnum<["row_index"]>>;
1664
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1665
+ include_columns: z.ZodOptional<z.ZodBoolean>;
1666
+ include_row_count: z.ZodOptional<z.ZodBoolean>;
1667
+ include_system_columns: z.ZodOptional<z.ZodBoolean>;
1668
+ include_execution_metadata_aggregates: z.ZodOptional<z.ZodBoolean>;
1669
+ api_key: z.ZodOptional<z.ZodString>;
1670
+ cursor: z.ZodOptional<z.ZodString>;
1671
+ limit: z.ZodOptional<z.ZodNumber>;
1672
+ table_id: z.ZodString;
1673
+ sheet_id: z.ZodString;
1674
+ }, "strip", z.ZodTypeAny, {
1675
+ table_id: string;
1676
+ sheet_id: string;
1677
+ sort?: "row_index" | undefined;
1678
+ api_key?: string | undefined;
1679
+ limit?: number | undefined;
1680
+ order?: "asc" | "desc" | undefined;
1681
+ cursor?: string | undefined;
1682
+ include_system_columns?: boolean | undefined;
1683
+ include_columns?: boolean | undefined;
1684
+ include_row_count?: boolean | undefined;
1685
+ include_execution_metadata_aggregates?: boolean | undefined;
1686
+ }, {
1687
+ table_id: string;
1688
+ sheet_id: string;
1689
+ sort?: "row_index" | undefined;
1690
+ api_key?: string | undefined;
1691
+ limit?: number | undefined;
1692
+ order?: "asc" | "desc" | undefined;
1693
+ cursor?: string | undefined;
1694
+ include_system_columns?: boolean | undefined;
1695
+ include_columns?: boolean | undefined;
1696
+ include_row_count?: boolean | undefined;
1697
+ include_execution_metadata_aggregates?: boolean | undefined;
1698
+ }>;
1699
+ export declare const AddSmartTableRowsArgsSchema: z.ZodObject<{
1700
+ table_id: z.ZodString;
1701
+ sheet_id: z.ZodString;
1702
+ count: z.ZodOptional<z.ZodNumber>;
1703
+ values: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1704
+ api_key: z.ZodOptional<z.ZodString>;
1705
+ }, "strip", z.ZodTypeAny, {
1706
+ table_id: string;
1707
+ sheet_id: string;
1708
+ values?: Record<string, unknown>[] | undefined;
1709
+ api_key?: string | undefined;
1710
+ count?: number | undefined;
1711
+ }, {
1712
+ table_id: string;
1713
+ sheet_id: string;
1714
+ values?: Record<string, unknown>[] | undefined;
1715
+ api_key?: string | undefined;
1716
+ count?: number | undefined;
1717
+ }>;
1718
+ export declare const GetSmartTableCellArgsSchema: z.ZodObject<{
1719
+ table_id: z.ZodString;
1720
+ sheet_id: z.ZodString;
1721
+ cell_id: z.ZodString;
1722
+ api_key: z.ZodOptional<z.ZodString>;
1723
+ }, "strip", z.ZodTypeAny, {
1724
+ table_id: string;
1725
+ sheet_id: string;
1726
+ cell_id: string;
1727
+ api_key?: string | undefined;
1728
+ }, {
1729
+ table_id: string;
1730
+ sheet_id: string;
1731
+ cell_id: string;
1732
+ api_key?: string | undefined;
1733
+ }>;
1734
+ export declare const UpdateSmartTableCellArgsSchema: z.ZodObject<{
1735
+ table_id: z.ZodString;
1736
+ sheet_id: z.ZodString;
1737
+ cell_id: z.ZodString;
1738
+ display_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1739
+ value: z.ZodOptional<z.ZodUnknown>;
1740
+ api_key: z.ZodOptional<z.ZodString>;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ table_id: string;
1743
+ sheet_id: string;
1744
+ cell_id: string;
1745
+ value?: unknown;
1746
+ api_key?: string | undefined;
1747
+ display_value?: string | null | undefined;
1748
+ }, {
1749
+ table_id: string;
1750
+ sheet_id: string;
1751
+ cell_id: string;
1752
+ value?: unknown;
1753
+ api_key?: string | undefined;
1754
+ display_value?: string | null | undefined;
1755
+ }>;
1756
+ export declare const RecalculateSmartTableCellArgsSchema: z.ZodObject<{
1757
+ table_id: z.ZodString;
1758
+ sheet_id: z.ZodString;
1759
+ cell_id: z.ZodString;
1760
+ api_key: z.ZodOptional<z.ZodString>;
1761
+ }, "strip", z.ZodTypeAny, {
1762
+ table_id: string;
1763
+ sheet_id: string;
1764
+ cell_id: string;
1765
+ api_key?: string | undefined;
1766
+ }, {
1767
+ table_id: string;
1768
+ sheet_id: string;
1769
+ cell_id: string;
1770
+ api_key?: string | undefined;
1771
+ }>;
1772
+ export declare const RecalculateSmartTableCellsArgsSchema: z.ZodObject<{
1773
+ table_id: z.ZodString;
1774
+ sheet_id: z.ZodString;
1775
+ cell_ids: z.ZodArray<z.ZodString, "many">;
1776
+ api_key: z.ZodOptional<z.ZodString>;
1777
+ }, "strip", z.ZodTypeAny, {
1778
+ table_id: string;
1779
+ sheet_id: string;
1780
+ cell_ids: string[];
1781
+ api_key?: string | undefined;
1782
+ }, {
1783
+ table_id: string;
1784
+ sheet_id: string;
1785
+ cell_ids: string[];
1786
+ api_key?: string | undefined;
1787
+ }>;
1788
+ export declare const ListSmartTableOperationsArgsSchema: z.ZodObject<{
1789
+ table_id: z.ZodString;
1790
+ sheet_id: z.ZodString;
1791
+ api_key: z.ZodOptional<z.ZodString>;
1792
+ }, "strip", z.ZodTypeAny, {
1793
+ table_id: string;
1794
+ sheet_id: string;
1795
+ api_key?: string | undefined;
1796
+ }, {
1797
+ table_id: string;
1798
+ sheet_id: string;
1799
+ api_key?: string | undefined;
1800
+ }>;
1801
+ export declare const CreateSmartTableOperationArgsSchema: z.ZodObject<{
1802
+ table_id: z.ZodString;
1803
+ sheet_id: z.ZodString;
1804
+ operation: z.ZodOptional<z.ZodEnum<["recalculate"]>>;
1805
+ column_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1806
+ row_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1807
+ statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["STALE", "QUEUED", "DISPATCHED", "RUNNING", "COMPLETED", "FAILED"]>, "many">>;
1808
+ api_key: z.ZodOptional<z.ZodString>;
1809
+ }, "strip", z.ZodTypeAny, {
1810
+ table_id: string;
1811
+ sheet_id: string;
1812
+ api_key?: string | undefined;
1813
+ operation?: "recalculate" | undefined;
1814
+ column_ids?: string[] | undefined;
1815
+ row_ids?: number[] | undefined;
1816
+ statuses?: ("STALE" | "QUEUED" | "DISPATCHED" | "RUNNING" | "COMPLETED" | "FAILED")[] | undefined;
1817
+ }, {
1818
+ table_id: string;
1819
+ sheet_id: string;
1820
+ api_key?: string | undefined;
1821
+ operation?: "recalculate" | undefined;
1822
+ column_ids?: string[] | undefined;
1823
+ row_ids?: number[] | undefined;
1824
+ statuses?: ("STALE" | "QUEUED" | "DISPATCHED" | "RUNNING" | "COMPLETED" | "FAILED")[] | undefined;
1825
+ }>;
1826
+ export declare const GetSmartTableOperationArgsSchema: z.ZodObject<{
1827
+ table_id: z.ZodString;
1828
+ sheet_id: z.ZodString;
1829
+ operation_id: z.ZodString;
1830
+ api_key: z.ZodOptional<z.ZodString>;
1831
+ }, "strip", z.ZodTypeAny, {
1832
+ table_id: string;
1833
+ operation_id: string;
1834
+ sheet_id: string;
1835
+ api_key?: string | undefined;
1836
+ }, {
1837
+ table_id: string;
1838
+ operation_id: string;
1839
+ sheet_id: string;
1840
+ api_key?: string | undefined;
1841
+ }>;
1842
+ export declare const CancelSmartTableOperationArgsSchema: z.ZodObject<{
1843
+ table_id: z.ZodString;
1844
+ sheet_id: z.ZodString;
1845
+ operation_id: z.ZodString;
1846
+ api_key: z.ZodOptional<z.ZodString>;
1847
+ }, "strip", z.ZodTypeAny, {
1848
+ table_id: string;
1849
+ operation_id: string;
1850
+ sheet_id: string;
1851
+ api_key?: string | undefined;
1852
+ }, {
1853
+ table_id: string;
1854
+ operation_id: string;
1855
+ sheet_id: string;
1856
+ api_key?: string | undefined;
1857
+ }>;
1858
+ export declare const GetSmartTableScoreArgsSchema: z.ZodObject<{
1859
+ table_id: z.ZodString;
1860
+ sheet_id: z.ZodString;
1861
+ api_key: z.ZodOptional<z.ZodString>;
1862
+ }, "strip", z.ZodTypeAny, {
1863
+ table_id: string;
1864
+ sheet_id: string;
1865
+ api_key?: string | undefined;
1866
+ }, {
1867
+ table_id: string;
1868
+ sheet_id: string;
1869
+ api_key?: string | undefined;
1870
+ }>;
1871
+ export declare const ConfigureSmartTableScoreArgsSchema: z.ZodObject<{
1872
+ table_id: z.ZodString;
1873
+ sheet_id: z.ZodString;
1874
+ score_type: z.ZodOptional<z.ZodEnum<["auto", "boolean", "numeric", "custom"]>>;
1875
+ score_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1876
+ column_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1877
+ column_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1878
+ code: z.ZodOptional<z.ZodString>;
1879
+ code_language: z.ZodOptional<z.ZodEnum<["PYTHON", "JAVASCRIPT"]>>;
1880
+ true_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1881
+ false_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1882
+ assertion_aggregation: z.ZodOptional<z.ZodEnum<["all", "any", "mean"]>>;
1883
+ api_key: z.ZodOptional<z.ZodString>;
1884
+ }, "strip", z.ZodTypeAny, {
1885
+ table_id: string;
1886
+ sheet_id: string;
1887
+ code?: string | undefined;
1888
+ api_key?: string | undefined;
1889
+ column_ids?: string[] | undefined;
1890
+ score_type?: "boolean" | "custom" | "auto" | "numeric" | undefined;
1891
+ score_config?: Record<string, unknown> | undefined;
1892
+ column_names?: string[] | undefined;
1893
+ code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
1894
+ true_values?: string[] | undefined;
1895
+ false_values?: string[] | undefined;
1896
+ assertion_aggregation?: "all" | "any" | "mean" | undefined;
1897
+ }, {
1898
+ table_id: string;
1899
+ sheet_id: string;
1900
+ code?: string | undefined;
1901
+ api_key?: string | undefined;
1902
+ column_ids?: string[] | undefined;
1903
+ score_type?: "boolean" | "custom" | "auto" | "numeric" | undefined;
1904
+ score_config?: Record<string, unknown> | undefined;
1905
+ column_names?: string[] | undefined;
1906
+ code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
1907
+ true_values?: string[] | undefined;
1908
+ false_values?: string[] | undefined;
1909
+ assertion_aggregation?: "all" | "any" | "mean" | undefined;
1910
+ }>;
1911
+ export declare const RecalculateSmartTableScoreArgsSchema: z.ZodObject<{
1912
+ table_id: z.ZodString;
1913
+ sheet_id: z.ZodString;
1914
+ api_key: z.ZodOptional<z.ZodString>;
1915
+ }, "strip", z.ZodTypeAny, {
1916
+ table_id: string;
1917
+ sheet_id: string;
1918
+ api_key?: string | undefined;
1919
+ }, {
1920
+ table_id: string;
1921
+ sheet_id: string;
1922
+ api_key?: string | undefined;
1923
+ }>;
1924
+ export declare const ListSmartTableVersionsArgsSchema: z.ZodObject<{
1925
+ sort: z.ZodOptional<z.ZodEnum<["version_number"]>>;
1926
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1927
+ api_key: z.ZodOptional<z.ZodString>;
1928
+ cursor: z.ZodOptional<z.ZodString>;
1929
+ limit: z.ZodOptional<z.ZodNumber>;
1930
+ table_id: z.ZodString;
1931
+ sheet_id: z.ZodString;
1932
+ }, "strip", z.ZodTypeAny, {
1933
+ table_id: string;
1934
+ sheet_id: string;
1935
+ sort?: "version_number" | undefined;
1243
1936
  api_key?: string | undefined;
1244
- commit_message?: string | undefined;
1245
- file_updates?: {
1246
- path: string;
1247
- content?: string | undefined;
1248
- }[] | undefined;
1249
- moves?: {
1250
- old_path: string;
1251
- new_path: string;
1252
- }[] | undefined;
1253
- deletes?: string[] | undefined;
1254
- release_label?: string | undefined;
1937
+ limit?: number | undefined;
1938
+ order?: "asc" | "desc" | undefined;
1939
+ cursor?: string | undefined;
1255
1940
  }, {
1256
- identifier: string;
1941
+ table_id: string;
1942
+ sheet_id: string;
1943
+ sort?: "version_number" | undefined;
1257
1944
  api_key?: string | undefined;
1258
- commit_message?: string | undefined;
1259
- file_updates?: {
1260
- path: string;
1261
- content?: string | undefined;
1262
- }[] | undefined;
1263
- moves?: {
1264
- old_path: string;
1265
- new_path: string;
1266
- }[] | undefined;
1267
- deletes?: string[] | undefined;
1268
- release_label?: string | undefined;
1945
+ limit?: number | undefined;
1946
+ order?: "asc" | "desc" | undefined;
1947
+ cursor?: string | undefined;
1269
1948
  }>;
1270
- export declare const PatchPromptTemplateVersionArgsSchema: z.ZodObject<{
1271
- identifier: z.ZodString;
1272
- version: z.ZodOptional<z.ZodNumber>;
1273
- label: z.ZodOptional<z.ZodString>;
1274
- messages: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
1275
- tools: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodNull]>>;
1276
- functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">, z.ZodNull]>>;
1277
- function_call: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1278
- tool_choice: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1279
- content: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">]>>;
1280
- model_parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1281
- response_format: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>>;
1282
- commit_message: z.ZodOptional<z.ZodString>;
1283
- release_labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1949
+ export declare const GetSmartTableVersionArgsSchema: z.ZodObject<{
1950
+ table_id: z.ZodString;
1951
+ sheet_id: z.ZodString;
1952
+ version_id: z.ZodString;
1284
1953
  api_key: z.ZodOptional<z.ZodString>;
1285
1954
  }, "strip", z.ZodTypeAny, {
1286
- identifier: string;
1287
- version?: number | undefined;
1288
- label?: string | undefined;
1955
+ table_id: string;
1956
+ sheet_id: string;
1957
+ version_id: string;
1289
1958
  api_key?: string | undefined;
1290
- commit_message?: string | undefined;
1291
- release_labels?: string[] | undefined;
1292
- content?: Record<string, unknown> | Record<string, unknown>[] | undefined;
1293
- messages?: Record<string, unknown> | Record<string, unknown>[] | undefined;
1294
- tools?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1295
- functions?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1296
- function_call?: string | Record<string, unknown> | null | undefined;
1297
- tool_choice?: string | Record<string, unknown> | null | undefined;
1298
- model_parameters?: Record<string, unknown> | undefined;
1299
- response_format?: Record<string, unknown> | null | undefined;
1300
1959
  }, {
1301
- identifier: string;
1302
- version?: number | undefined;
1303
- label?: string | undefined;
1960
+ table_id: string;
1961
+ sheet_id: string;
1962
+ version_id: string;
1304
1963
  api_key?: string | undefined;
1305
- commit_message?: string | undefined;
1306
- release_labels?: string[] | undefined;
1307
- content?: Record<string, unknown> | Record<string, unknown>[] | undefined;
1308
- messages?: Record<string, unknown> | Record<string, unknown>[] | undefined;
1309
- tools?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1310
- functions?: Record<string, unknown> | Record<string, unknown>[] | null | undefined;
1311
- function_call?: string | Record<string, unknown> | null | undefined;
1312
- tool_choice?: string | Record<string, unknown> | null | undefined;
1313
- model_parameters?: Record<string, unknown> | undefined;
1314
- response_format?: Record<string, unknown> | null | undefined;
1315
1964
  }>;
1316
- export declare const SearchRequestLogsArgsSchema: z.ZodObject<{
1317
- page: z.ZodOptional<z.ZodNumber>;
1318
- per_page: z.ZodOptional<z.ZodNumber>;
1319
- include_prompt_name: z.ZodOptional<z.ZodBoolean>;
1965
+ export declare const CreateSmartTableVersionArgsSchema: z.ZodObject<{
1966
+ table_id: z.ZodString;
1967
+ sheet_id: z.ZodString;
1968
+ name: z.ZodOptional<z.ZodString>;
1969
+ source_version_id: z.ZodOptional<z.ZodString>;
1320
1970
  api_key: z.ZodOptional<z.ZodString>;
1321
- filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1322
- q: z.ZodOptional<z.ZodString>;
1323
- sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1324
- sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1325
1971
  }, "strip", z.ZodTypeAny, {
1972
+ table_id: string;
1973
+ sheet_id: string;
1326
1974
  api_key?: string | undefined;
1327
- page?: number | undefined;
1328
- per_page?: number | undefined;
1329
- filter_group?: any;
1330
- q?: string | undefined;
1331
- sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1332
- sort_order?: "asc" | "desc" | undefined;
1333
- include_prompt_name?: boolean | undefined;
1975
+ name?: string | undefined;
1976
+ source_version_id?: string | undefined;
1334
1977
  }, {
1978
+ table_id: string;
1979
+ sheet_id: string;
1335
1980
  api_key?: string | undefined;
1336
- page?: number | undefined;
1337
- per_page?: number | undefined;
1338
- filter_group?: any;
1339
- q?: string | undefined;
1340
- sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1341
- sort_order?: "asc" | "desc" | undefined;
1342
- include_prompt_name?: boolean | undefined;
1981
+ name?: string | undefined;
1982
+ source_version_id?: string | undefined;
1343
1983
  }>;
1344
- export declare const GetRequestAnalyticsArgsSchema: z.ZodObject<{
1984
+ export declare const GetSmartTableScoreHistoryArgsSchema: z.ZodObject<{
1985
+ table_id: z.ZodString;
1986
+ sheet_id: z.ZodString;
1987
+ max_points: z.ZodOptional<z.ZodNumber>;
1988
+ range: z.ZodOptional<z.ZodString>;
1989
+ resolution: z.ZodOptional<z.ZodString>;
1345
1990
  api_key: z.ZodOptional<z.ZodString>;
1346
- filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1347
- q: z.ZodOptional<z.ZodString>;
1348
- sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
1349
- sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
1350
1991
  }, "strip", z.ZodTypeAny, {
1992
+ table_id: string;
1993
+ sheet_id: string;
1351
1994
  api_key?: string | undefined;
1352
- filter_group?: any;
1353
- q?: string | undefined;
1354
- sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1355
- sort_order?: "asc" | "desc" | undefined;
1995
+ max_points?: number | undefined;
1996
+ range?: string | undefined;
1997
+ resolution?: string | undefined;
1356
1998
  }, {
1999
+ table_id: string;
2000
+ sheet_id: string;
1357
2001
  api_key?: string | undefined;
1358
- filter_group?: any;
1359
- q?: string | undefined;
1360
- sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1361
- sort_order?: "asc" | "desc" | undefined;
2002
+ max_points?: number | undefined;
2003
+ range?: string | undefined;
2004
+ resolution?: string | undefined;
1362
2005
  }>;
1363
- export declare const GetRequestArgsSchema: z.ZodObject<{
1364
- request_id: z.ZodNumber;
2006
+ export declare const ListLegacySmartTableMigrationsArgsSchema: z.ZodObject<{
2007
+ source_type: z.ZodOptional<z.ZodEnum<["dataset_group", "dataset", "report"]>>;
2008
+ source_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
1365
2009
  api_key: z.ZodOptional<z.ZodString>;
1366
2010
  }, "strip", z.ZodTypeAny, {
1367
- request_id: number;
1368
2011
  api_key?: string | undefined;
2012
+ source_type?: "dataset_group" | "dataset" | "report" | undefined;
2013
+ source_id?: number | number[] | undefined;
1369
2014
  }, {
1370
- request_id: number;
1371
2015
  api_key?: string | undefined;
2016
+ source_type?: "dataset_group" | "dataset" | "report" | undefined;
2017
+ source_id?: number | number[] | undefined;
1372
2018
  }>;
1373
- export declare const GetTraceArgsSchema: z.ZodObject<{
1374
- trace_id: z.ZodString;
2019
+ export declare const PreviewLegacySmartTableMigrationArgsSchema: z.ZodObject<{
2020
+ source_type: z.ZodEnum<["dataset_group", "dataset", "report"]>;
2021
+ source_id: z.ZodNumber;
1375
2022
  api_key: z.ZodOptional<z.ZodString>;
1376
2023
  }, "strip", z.ZodTypeAny, {
1377
- trace_id: string;
2024
+ source_type: "dataset_group" | "dataset" | "report";
2025
+ source_id: number;
1378
2026
  api_key?: string | undefined;
1379
2027
  }, {
1380
- trace_id: string;
2028
+ source_type: "dataset_group" | "dataset" | "report";
2029
+ source_id: number;
1381
2030
  api_key?: string | undefined;
1382
2031
  }>;
1383
- export declare const GetRequestSearchSuggestionsArgsSchema: z.ZodObject<{
1384
- field: z.ZodEnum<["engine", "provider_type", "prompt_id", "prompt", "tags", "metadata_keys", "status", "tool_names", "output_keys", "input_variable_keys", "metadata_values", "output_values", "input_variable_values"]>;
1385
- prefix: z.ZodOptional<z.ZodString>;
1386
- metadata_key: z.ZodOptional<z.ZodString>;
1387
- prompt_id: z.ZodOptional<z.ZodNumber>;
1388
- filter_group: z.ZodOptional<z.ZodString>;
2032
+ export declare const MigrateLegacyToSmartTableArgsSchema: z.ZodObject<{
2033
+ source_type: z.ZodEnum<["dataset_group", "dataset", "report"]>;
2034
+ source_id: z.ZodNumber;
2035
+ force: z.ZodOptional<z.ZodBoolean>;
2036
+ dry_run: z.ZodOptional<z.ZodBoolean>;
2037
+ resume: z.ZodOptional<z.ZodBoolean>;
2038
+ continue_on_error: z.ZodOptional<z.ZodBoolean>;
2039
+ include_reports_with_missing_datasets: z.ZodOptional<z.ZodBoolean>;
2040
+ max_version_snapshot_cells: z.ZodOptional<z.ZodNumber>;
2041
+ report_preview_row_limit: z.ZodOptional<z.ZodNumber>;
1389
2042
  api_key: z.ZodOptional<z.ZodString>;
1390
2043
  }, "strip", z.ZodTypeAny, {
1391
- field: "status" | "tags" | "prompt_id" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | "prompt" | "metadata_values" | "output_values" | "input_variable_values";
2044
+ source_type: "dataset_group" | "dataset" | "report";
2045
+ source_id: number;
1392
2046
  api_key?: string | undefined;
1393
- prompt_id?: number | undefined;
1394
- filter_group?: string | undefined;
1395
- prefix?: string | undefined;
1396
- metadata_key?: string | undefined;
2047
+ force?: boolean | undefined;
2048
+ dry_run?: boolean | undefined;
2049
+ resume?: boolean | undefined;
2050
+ continue_on_error?: boolean | undefined;
2051
+ include_reports_with_missing_datasets?: boolean | undefined;
2052
+ max_version_snapshot_cells?: number | undefined;
2053
+ report_preview_row_limit?: number | undefined;
1397
2054
  }, {
1398
- field: "status" | "tags" | "prompt_id" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | "prompt" | "metadata_values" | "output_values" | "input_variable_values";
2055
+ source_type: "dataset_group" | "dataset" | "report";
2056
+ source_id: number;
2057
+ api_key?: string | undefined;
2058
+ force?: boolean | undefined;
2059
+ dry_run?: boolean | undefined;
2060
+ resume?: boolean | undefined;
2061
+ continue_on_error?: boolean | undefined;
2062
+ include_reports_with_missing_datasets?: boolean | undefined;
2063
+ max_version_snapshot_cells?: number | undefined;
2064
+ report_preview_row_limit?: number | undefined;
2065
+ }>;
2066
+ export declare const GetLegacySmartTableMigrationJobArgsSchema: z.ZodObject<{
2067
+ job_id: z.ZodString;
2068
+ api_key: z.ZodOptional<z.ZodString>;
2069
+ }, "strip", z.ZodTypeAny, {
2070
+ job_id: string;
2071
+ api_key?: string | undefined;
2072
+ }, {
2073
+ job_id: string;
1399
2074
  api_key?: string | undefined;
1400
- prompt_id?: number | undefined;
1401
- filter_group?: string | undefined;
1402
- prefix?: string | undefined;
1403
- metadata_key?: string | undefined;
1404
2075
  }>;
1405
2076
  export type GetPromptTemplateParams = Omit<z.infer<typeof GetPromptTemplateArgsSchema>, "prompt_name" | "api_key">;
1406
2077
  export type ListPromptTemplatesParams = Omit<z.infer<typeof ListPromptTemplatesArgsSchema>, "api_key">;
@@ -1709,20 +2380,20 @@ export declare const TOOL_DEFINITIONS: {
1709
2380
  api_key?: string | undefined;
1710
2381
  page?: number | undefined;
1711
2382
  per_page?: number | undefined;
2383
+ include_prompt_name?: boolean | undefined;
1712
2384
  filter_group?: any;
1713
2385
  q?: string | undefined;
1714
2386
  sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1715
2387
  sort_order?: "asc" | "desc" | undefined;
1716
- include_prompt_name?: boolean | undefined;
1717
2388
  }, {
1718
2389
  api_key?: string | undefined;
1719
2390
  page?: number | undefined;
1720
2391
  per_page?: number | undefined;
2392
+ include_prompt_name?: boolean | undefined;
1721
2393
  filter_group?: any;
1722
2394
  q?: string | undefined;
1723
2395
  sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
1724
2396
  sort_order?: "asc" | "desc" | undefined;
1725
- include_prompt_name?: boolean | undefined;
1726
2397
  }>;
1727
2398
  readonly annotations: {
1728
2399
  readonly readOnlyHint: true;
@@ -1888,542 +2559,1107 @@ export declare const TOOL_DEFINITIONS: {
1888
2559
  api_key?: string | undefined;
1889
2560
  }>;
1890
2561
  readonly annotations: {
1891
- readonly readOnlyHint: false;
2562
+ readonly readOnlyHint: false;
2563
+ };
2564
+ };
2565
+ readonly "list-smart-tables": {
2566
+ readonly name: "list-smart-tables";
2567
+ readonly description: string;
2568
+ readonly inputSchema: z.ZodObject<{
2569
+ api_key: z.ZodOptional<z.ZodString>;
2570
+ prompt_id: z.ZodOptional<z.ZodNumber>;
2571
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
2572
+ prompt_label_id: z.ZodOptional<z.ZodNumber>;
2573
+ sort: z.ZodOptional<z.ZodEnum<["created_at"]>>;
2574
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2575
+ cursor: z.ZodOptional<z.ZodString>;
2576
+ limit: z.ZodOptional<z.ZodNumber>;
2577
+ folder_id: z.ZodOptional<z.ZodNumber>;
2578
+ name: z.ZodOptional<z.ZodString>;
2579
+ }, "strip", z.ZodTypeAny, {
2580
+ sort?: "created_at" | undefined;
2581
+ api_key?: string | undefined;
2582
+ name?: string | undefined;
2583
+ folder_id?: number | undefined;
2584
+ prompt_id?: number | undefined;
2585
+ prompt_version_id?: number | undefined;
2586
+ prompt_label_id?: number | undefined;
2587
+ limit?: number | undefined;
2588
+ order?: "asc" | "desc" | undefined;
2589
+ cursor?: string | undefined;
2590
+ }, {
2591
+ sort?: "created_at" | undefined;
2592
+ api_key?: string | undefined;
2593
+ name?: string | undefined;
2594
+ folder_id?: number | undefined;
2595
+ prompt_id?: number | undefined;
2596
+ prompt_version_id?: number | undefined;
2597
+ prompt_label_id?: number | undefined;
2598
+ limit?: number | undefined;
2599
+ order?: "asc" | "desc" | undefined;
2600
+ cursor?: string | undefined;
2601
+ }>;
2602
+ readonly annotations: {
2603
+ readonly readOnlyHint: true;
2604
+ };
2605
+ };
2606
+ readonly "create-smart-table": {
2607
+ readonly name: "create-smart-table";
2608
+ readonly description: string;
2609
+ readonly inputSchema: z.ZodObject<{
2610
+ title: z.ZodOptional<z.ZodString>;
2611
+ folder_id: z.ZodOptional<z.ZodNumber>;
2612
+ api_key: z.ZodOptional<z.ZodString>;
2613
+ }, "strip", z.ZodTypeAny, {
2614
+ api_key?: string | undefined;
2615
+ folder_id?: number | undefined;
2616
+ title?: string | undefined;
2617
+ }, {
2618
+ api_key?: string | undefined;
2619
+ folder_id?: number | undefined;
2620
+ title?: string | undefined;
2621
+ }>;
2622
+ readonly annotations: {
2623
+ readonly readOnlyHint: false;
2624
+ };
2625
+ };
2626
+ readonly "get-smart-table": {
2627
+ readonly name: "get-smart-table";
2628
+ readonly description: "Get a Smart Table by UUID, including sheet counts and row counts.";
2629
+ readonly inputSchema: z.ZodObject<{
2630
+ table_id: z.ZodString;
2631
+ api_key: z.ZodOptional<z.ZodString>;
2632
+ }, "strip", z.ZodTypeAny, {
2633
+ table_id: string;
2634
+ api_key?: string | undefined;
2635
+ }, {
2636
+ table_id: string;
2637
+ api_key?: string | undefined;
2638
+ }>;
2639
+ readonly annotations: {
2640
+ readonly readOnlyHint: true;
2641
+ };
2642
+ };
2643
+ readonly "update-smart-table": {
2644
+ readonly name: "update-smart-table";
2645
+ readonly description: "Update a Smart Table title or folder.";
2646
+ readonly inputSchema: z.ZodObject<{
2647
+ table_id: z.ZodString;
2648
+ title: z.ZodOptional<z.ZodString>;
2649
+ folder_id: z.ZodOptional<z.ZodNumber>;
2650
+ api_key: z.ZodOptional<z.ZodString>;
2651
+ }, "strip", z.ZodTypeAny, {
2652
+ table_id: string;
2653
+ api_key?: string | undefined;
2654
+ folder_id?: number | undefined;
2655
+ title?: string | undefined;
2656
+ }, {
2657
+ table_id: string;
2658
+ api_key?: string | undefined;
2659
+ folder_id?: number | undefined;
2660
+ title?: string | undefined;
2661
+ }>;
2662
+ readonly annotations: {
2663
+ readonly readOnlyHint: false;
2664
+ };
2665
+ };
2666
+ readonly "list-smart-table-sheets": {
2667
+ readonly name: "list-smart-table-sheets";
2668
+ readonly description: "List sheets in a Smart Table with cursor pagination.";
2669
+ readonly inputSchema: z.ZodObject<{
2670
+ api_key: z.ZodOptional<z.ZodString>;
2671
+ prompt_id: z.ZodOptional<z.ZodNumber>;
2672
+ prompt_version_id: z.ZodOptional<z.ZodNumber>;
2673
+ prompt_label_id: z.ZodOptional<z.ZodNumber>;
2674
+ sort: z.ZodOptional<z.ZodEnum<["index"]>>;
2675
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2676
+ cursor: z.ZodOptional<z.ZodString>;
2677
+ limit: z.ZodOptional<z.ZodNumber>;
2678
+ table_id: z.ZodString;
2679
+ }, "strip", z.ZodTypeAny, {
2680
+ table_id: string;
2681
+ sort?: "index" | undefined;
2682
+ api_key?: string | undefined;
2683
+ prompt_id?: number | undefined;
2684
+ prompt_version_id?: number | undefined;
2685
+ prompt_label_id?: number | undefined;
2686
+ limit?: number | undefined;
2687
+ order?: "asc" | "desc" | undefined;
2688
+ cursor?: string | undefined;
2689
+ }, {
2690
+ table_id: string;
2691
+ sort?: "index" | undefined;
2692
+ api_key?: string | undefined;
2693
+ prompt_id?: number | undefined;
2694
+ prompt_version_id?: number | undefined;
2695
+ prompt_label_id?: number | undefined;
2696
+ limit?: number | undefined;
2697
+ order?: "asc" | "desc" | undefined;
2698
+ cursor?: string | undefined;
2699
+ }>;
2700
+ readonly annotations: {
2701
+ readonly readOnlyHint: true;
2702
+ };
2703
+ };
2704
+ readonly "create-smart-table-sheet": {
2705
+ readonly name: "create-smart-table-sheet";
2706
+ readonly description: string;
2707
+ readonly inputSchema: z.ZodObject<{
2708
+ table_id: z.ZodString;
2709
+ title: z.ZodOptional<z.ZodString>;
2710
+ index: z.ZodOptional<z.ZodNumber>;
2711
+ operation_id: z.ZodOptional<z.ZodString>;
2712
+ source: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2713
+ type: z.ZodLiteral<"file">;
2714
+ file_name: z.ZodString;
2715
+ file_content_base64: z.ZodString;
2716
+ }, "strip", z.ZodTypeAny, {
2717
+ type: "file";
2718
+ file_name: string;
2719
+ file_content_base64: string;
2720
+ }, {
2721
+ type: "file";
2722
+ file_name: string;
2723
+ file_content_base64: string;
2724
+ }>, z.ZodObject<{
2725
+ request_log_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2726
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
2727
+ q: z.ZodOptional<z.ZodString>;
2728
+ sort_by: z.ZodOptional<z.ZodString>;
2729
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2730
+ metadata_cost_breakdown_key: z.ZodOptional<z.ZodString>;
2731
+ variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2732
+ include_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2733
+ limit: z.ZodOptional<z.ZodNumber>;
2734
+ type: z.ZodLiteral<"request_logs">;
2735
+ }, "strip", z.ZodTypeAny, {
2736
+ type: "request_logs";
2737
+ filter_group?: any;
2738
+ q?: string | undefined;
2739
+ sort_by?: string | undefined;
2740
+ sort_order?: "asc" | "desc" | undefined;
2741
+ limit?: number | undefined;
2742
+ request_log_ids?: number[] | undefined;
2743
+ metadata_cost_breakdown_key?: string | undefined;
2744
+ variables_to_parse?: string[] | undefined;
2745
+ include_fields?: string[] | undefined;
2746
+ }, {
2747
+ type: "request_logs";
2748
+ filter_group?: any;
2749
+ q?: string | undefined;
2750
+ sort_by?: string | undefined;
2751
+ sort_order?: "asc" | "desc" | undefined;
2752
+ limit?: number | undefined;
2753
+ request_log_ids?: number[] | undefined;
2754
+ metadata_cost_breakdown_key?: string | undefined;
2755
+ variables_to_parse?: string[] | undefined;
2756
+ include_fields?: string[] | undefined;
2757
+ }>]>;
2758
+ api_key: z.ZodOptional<z.ZodString>;
2759
+ }, "strip", z.ZodTypeAny, {
2760
+ table_id: string;
2761
+ source: {
2762
+ type: "file";
2763
+ file_name: string;
2764
+ file_content_base64: string;
2765
+ } | {
2766
+ type: "request_logs";
2767
+ filter_group?: any;
2768
+ q?: string | undefined;
2769
+ sort_by?: string | undefined;
2770
+ sort_order?: "asc" | "desc" | undefined;
2771
+ limit?: number | undefined;
2772
+ request_log_ids?: number[] | undefined;
2773
+ metadata_cost_breakdown_key?: string | undefined;
2774
+ variables_to_parse?: string[] | undefined;
2775
+ include_fields?: string[] | undefined;
2776
+ };
2777
+ api_key?: string | undefined;
2778
+ title?: string | undefined;
2779
+ index?: number | undefined;
2780
+ operation_id?: string | undefined;
2781
+ }, {
2782
+ table_id: string;
2783
+ source: {
2784
+ type: "file";
2785
+ file_name: string;
2786
+ file_content_base64: string;
2787
+ } | {
2788
+ type: "request_logs";
2789
+ filter_group?: any;
2790
+ q?: string | undefined;
2791
+ sort_by?: string | undefined;
2792
+ sort_order?: "asc" | "desc" | undefined;
2793
+ limit?: number | undefined;
2794
+ request_log_ids?: number[] | undefined;
2795
+ metadata_cost_breakdown_key?: string | undefined;
2796
+ variables_to_parse?: string[] | undefined;
2797
+ include_fields?: string[] | undefined;
2798
+ };
2799
+ api_key?: string | undefined;
2800
+ title?: string | undefined;
2801
+ index?: number | undefined;
2802
+ operation_id?: string | undefined;
2803
+ }>;
2804
+ readonly annotations: {
2805
+ readonly readOnlyHint: false;
2806
+ };
2807
+ };
2808
+ readonly "get-smart-table-sheet": {
2809
+ readonly name: "get-smart-table-sheet";
2810
+ readonly description: "Get a single Smart Table sheet.";
2811
+ readonly inputSchema: z.ZodObject<{
2812
+ table_id: z.ZodString;
2813
+ sheet_id: z.ZodString;
2814
+ api_key: z.ZodOptional<z.ZodString>;
2815
+ }, "strip", z.ZodTypeAny, {
2816
+ table_id: string;
2817
+ sheet_id: string;
2818
+ api_key?: string | undefined;
2819
+ }, {
2820
+ table_id: string;
2821
+ sheet_id: string;
2822
+ api_key?: string | undefined;
2823
+ }>;
2824
+ readonly annotations: {
2825
+ readonly readOnlyHint: true;
1892
2826
  };
1893
2827
  };
1894
- readonly "list-datasets": {
1895
- readonly name: "list-datasets";
1896
- readonly description: "List datasets with pagination. Filter by name, status, dataset_group_id, prompt_id, report_id, etc.";
2828
+ readonly "update-smart-table-sheet": {
2829
+ readonly name: "update-smart-table-sheet";
2830
+ readonly description: "Update a Smart Table sheet title or index.";
1897
2831
  readonly inputSchema: z.ZodObject<{
1898
- page: z.ZodOptional<z.ZodNumber>;
1899
- per_page: z.ZodOptional<z.ZodNumber>;
1900
- name: z.ZodOptional<z.ZodString>;
1901
- status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
1902
- dataset_group_id: z.ZodOptional<z.ZodNumber>;
1903
- prompt_id: z.ZodOptional<z.ZodNumber>;
1904
- prompt_version_id: z.ZodOptional<z.ZodNumber>;
1905
- prompt_label_id: z.ZodOptional<z.ZodNumber>;
1906
- report_id: z.ZodOptional<z.ZodNumber>;
2832
+ table_id: z.ZodString;
2833
+ sheet_id: z.ZodString;
2834
+ title: z.ZodOptional<z.ZodString>;
2835
+ index: z.ZodOptional<z.ZodNumber>;
1907
2836
  api_key: z.ZodOptional<z.ZodString>;
1908
2837
  }, "strip", z.ZodTypeAny, {
1909
- status?: "active" | "deleted" | "all" | undefined;
2838
+ table_id: string;
2839
+ sheet_id: string;
1910
2840
  api_key?: string | undefined;
1911
- page?: number | undefined;
1912
- per_page?: number | undefined;
1913
- name?: string | undefined;
1914
- prompt_id?: number | undefined;
1915
- prompt_version_id?: number | undefined;
1916
- prompt_label_id?: number | undefined;
1917
- dataset_group_id?: number | undefined;
1918
- report_id?: number | undefined;
2841
+ title?: string | undefined;
2842
+ index?: number | undefined;
1919
2843
  }, {
1920
- status?: "active" | "deleted" | "all" | undefined;
2844
+ table_id: string;
2845
+ sheet_id: string;
1921
2846
  api_key?: string | undefined;
1922
- page?: number | undefined;
1923
- per_page?: number | undefined;
1924
- name?: string | undefined;
1925
- prompt_id?: number | undefined;
1926
- prompt_version_id?: number | undefined;
1927
- prompt_label_id?: number | undefined;
1928
- dataset_group_id?: number | undefined;
1929
- report_id?: number | undefined;
2847
+ title?: string | undefined;
2848
+ index?: number | undefined;
1930
2849
  }>;
1931
2850
  readonly annotations: {
1932
- readonly readOnlyHint: true;
2851
+ readonly readOnlyHint: false;
1933
2852
  };
1934
2853
  };
1935
- readonly "create-dataset-group": {
1936
- readonly name: "create-dataset-group";
1937
- readonly description: "Create a dataset group. An empty draft version (version_number=-1) is created automatically. Names must be unique per workspace.";
2854
+ readonly "get-smart-table-sheet-import-operation": {
2855
+ readonly name: "get-smart-table-sheet-import-operation";
2856
+ readonly description: "Get status for a Smart Table sheet import operation.";
1938
2857
  readonly inputSchema: z.ZodObject<{
1939
- name: z.ZodOptional<z.ZodString>;
1940
- folder_id: z.ZodOptional<z.ZodNumber>;
2858
+ table_id: z.ZodString;
2859
+ operation_id: z.ZodString;
1941
2860
  api_key: z.ZodOptional<z.ZodString>;
1942
2861
  }, "strip", z.ZodTypeAny, {
2862
+ table_id: string;
2863
+ operation_id: string;
1943
2864
  api_key?: string | undefined;
1944
- name?: string | undefined;
1945
- folder_id?: number | undefined;
1946
2865
  }, {
2866
+ table_id: string;
2867
+ operation_id: string;
1947
2868
  api_key?: string | undefined;
1948
- name?: string | undefined;
1949
- folder_id?: number | undefined;
1950
2869
  }>;
1951
2870
  readonly annotations: {
1952
- readonly readOnlyHint: false;
2871
+ readonly readOnlyHint: true;
1953
2872
  };
1954
2873
  };
1955
- readonly "create-dataset-version-from-file": {
1956
- readonly name: "create-dataset-version-from-file";
1957
- readonly description: "Create a dataset version by uploading base64-encoded CSV/JSON content. Processed asynchronously. Max 100MB.";
2874
+ readonly "import-smart-table-sheet-file": {
2875
+ readonly name: "import-smart-table-sheet-file";
2876
+ readonly description: "Import base64 CSV content into an existing Smart Table sheet.";
1958
2877
  readonly inputSchema: z.ZodObject<{
1959
- dataset_group_id: z.ZodNumber;
2878
+ table_id: z.ZodString;
2879
+ sheet_id: z.ZodString;
2880
+ operation_id: z.ZodOptional<z.ZodString>;
1960
2881
  file_name: z.ZodString;
1961
2882
  file_content_base64: z.ZodString;
1962
2883
  api_key: z.ZodOptional<z.ZodString>;
1963
2884
  }, "strip", z.ZodTypeAny, {
1964
- dataset_group_id: number;
1965
2885
  file_name: string;
1966
2886
  file_content_base64: string;
2887
+ table_id: string;
2888
+ sheet_id: string;
1967
2889
  api_key?: string | undefined;
2890
+ operation_id?: string | undefined;
1968
2891
  }, {
1969
- dataset_group_id: number;
1970
2892
  file_name: string;
1971
2893
  file_content_base64: string;
2894
+ table_id: string;
2895
+ sheet_id: string;
1972
2896
  api_key?: string | undefined;
2897
+ operation_id?: string | undefined;
1973
2898
  }>;
1974
2899
  readonly annotations: {
1975
2900
  readonly readOnlyHint: false;
1976
2901
  };
1977
2902
  };
1978
- readonly "create-dataset-version-from-filter-params": {
1979
- readonly name: "create-dataset-version-from-filter-params";
2903
+ readonly "import-smart-table-sheet-request-logs": {
2904
+ readonly name: "import-smart-table-sheet-request-logs";
1980
2905
  readonly description: string;
1981
2906
  readonly inputSchema: z.ZodObject<{
1982
- dataset_group_id: z.ZodNumber;
2907
+ api_key: z.ZodOptional<z.ZodString>;
1983
2908
  request_log_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
1984
2909
  filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
1985
2910
  q: z.ZodOptional<z.ZodString>;
1986
- sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
2911
+ sort_by: z.ZodOptional<z.ZodString>;
1987
2912
  sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2913
+ metadata_cost_breakdown_key: z.ZodOptional<z.ZodString>;
1988
2914
  variables_to_parse: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1989
- api_key: z.ZodOptional<z.ZodString>;
2915
+ include_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2916
+ limit: z.ZodOptional<z.ZodNumber>;
2917
+ table_id: z.ZodString;
2918
+ sheet_id: z.ZodString;
2919
+ operation_id: z.ZodOptional<z.ZodString>;
1990
2920
  }, "strip", z.ZodTypeAny, {
1991
- dataset_group_id: number;
2921
+ table_id: string;
2922
+ sheet_id: string;
1992
2923
  api_key?: string | undefined;
1993
- request_log_ids?: number[] | undefined;
1994
2924
  filter_group?: any;
1995
2925
  q?: string | undefined;
1996
- sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
2926
+ sort_by?: string | undefined;
1997
2927
  sort_order?: "asc" | "desc" | undefined;
2928
+ limit?: number | undefined;
2929
+ request_log_ids?: number[] | undefined;
2930
+ metadata_cost_breakdown_key?: string | undefined;
1998
2931
  variables_to_parse?: string[] | undefined;
2932
+ include_fields?: string[] | undefined;
2933
+ operation_id?: string | undefined;
1999
2934
  }, {
2000
- dataset_group_id: number;
2935
+ table_id: string;
2936
+ sheet_id: string;
2001
2937
  api_key?: string | undefined;
2002
- request_log_ids?: number[] | undefined;
2003
2938
  filter_group?: any;
2004
2939
  q?: string | undefined;
2005
- sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
2940
+ sort_by?: string | undefined;
2006
2941
  sort_order?: "asc" | "desc" | undefined;
2942
+ limit?: number | undefined;
2943
+ request_log_ids?: number[] | undefined;
2944
+ metadata_cost_breakdown_key?: string | undefined;
2007
2945
  variables_to_parse?: string[] | undefined;
2946
+ include_fields?: string[] | undefined;
2947
+ operation_id?: string | undefined;
2008
2948
  }>;
2009
2949
  readonly annotations: {
2010
2950
  readonly readOnlyHint: false;
2011
2951
  };
2012
2952
  };
2013
- readonly "get-dataset-rows": {
2014
- readonly name: "get-dataset-rows";
2015
- readonly description: "Get paginated rows from a dataset. Each row is an array of cells with {type: 'dataset', value: ...}. Supports search via the q parameter.";
2953
+ readonly "list-smart-table-columns": {
2954
+ readonly name: "list-smart-table-columns";
2955
+ readonly description: "List columns in a Smart Table sheet.";
2016
2956
  readonly inputSchema: z.ZodObject<{
2017
- dataset_id: z.ZodNumber;
2018
- page: z.ZodOptional<z.ZodNumber>;
2019
- per_page: z.ZodOptional<z.ZodNumber>;
2020
- q: z.ZodOptional<z.ZodString>;
2957
+ sort: z.ZodOptional<z.ZodEnum<["position_rank"]>>;
2958
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2959
+ include_system_columns: z.ZodOptional<z.ZodBoolean>;
2021
2960
  api_key: z.ZodOptional<z.ZodString>;
2961
+ cursor: z.ZodOptional<z.ZodString>;
2962
+ limit: z.ZodOptional<z.ZodNumber>;
2963
+ table_id: z.ZodString;
2964
+ sheet_id: z.ZodString;
2022
2965
  }, "strip", z.ZodTypeAny, {
2023
- dataset_id: number;
2966
+ table_id: string;
2967
+ sheet_id: string;
2968
+ sort?: "position_rank" | undefined;
2024
2969
  api_key?: string | undefined;
2025
- page?: number | undefined;
2026
- per_page?: number | undefined;
2027
- q?: string | undefined;
2970
+ limit?: number | undefined;
2971
+ order?: "asc" | "desc" | undefined;
2972
+ cursor?: string | undefined;
2973
+ include_system_columns?: boolean | undefined;
2028
2974
  }, {
2029
- dataset_id: number;
2975
+ table_id: string;
2976
+ sheet_id: string;
2977
+ sort?: "position_rank" | undefined;
2030
2978
  api_key?: string | undefined;
2031
- page?: number | undefined;
2032
- per_page?: number | undefined;
2033
- q?: string | undefined;
2979
+ limit?: number | undefined;
2980
+ order?: "asc" | "desc" | undefined;
2981
+ cursor?: string | undefined;
2982
+ include_system_columns?: boolean | undefined;
2034
2983
  }>;
2035
2984
  readonly annotations: {
2036
2985
  readonly readOnlyHint: true;
2037
2986
  };
2038
2987
  };
2039
- readonly "create-draft-dataset-version": {
2040
- readonly name: "create-draft-dataset-version";
2041
- readonly description: "Create a draft dataset version for a dataset group. Optionally copy rows from an existing version. Only one draft can exist per group.";
2988
+ readonly "create-smart-table-column": {
2989
+ readonly name: "create-smart-table-column";
2990
+ readonly description: string;
2042
2991
  readonly inputSchema: z.ZodObject<{
2043
- dataset_group_id: z.ZodNumber;
2044
- source_dataset_id: z.ZodOptional<z.ZodNumber>;
2992
+ table_id: z.ZodString;
2993
+ sheet_id: z.ZodString;
2994
+ title: z.ZodString;
2995
+ type: z.ZodEnum<["TEXT", "ABSOLUTE_NUMERIC_DISTANCE", "AI_DATA_EXTRACTION", "APPLY_DIFF", "ASSERT_VALID", "COALESCE", "CONDITION", "CODE_EXECUTION", "COMBINE_COLUMNS", "COMPARE", "COMPOSITION", "CONTAINS", "CONVERSATION_SIMULATOR", "COSINE_SIMILARITY", "COUNT", "DATASET", "ENDPOINT", "FOR_LOOP", "HUMAN", "JSON_PATH", "LLM_ASSERTION", "MATH_OPERATOR", "MCP", "MIN_MAX", "PARSE_VALUE", "PROMPT_TEMPLATE", "REGEX", "REGEX_EXTRACTION", "VARIABLE", "WHILE_LOOP", "WORKFLOW", "XML_PATH"]>;
2996
+ config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2997
+ dependencies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2998
+ column_id: z.ZodString;
2999
+ reference_type: z.ZodOptional<z.ZodString>;
3000
+ config_key: z.ZodOptional<z.ZodString>;
3001
+ config_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3002
+ }, "strip", z.ZodTypeAny, {
3003
+ column_id: string;
3004
+ reference_type?: string | undefined;
3005
+ config_key?: string | undefined;
3006
+ config_meta?: Record<string, unknown> | undefined;
3007
+ }, {
3008
+ column_id: string;
3009
+ reference_type?: string | undefined;
3010
+ config_key?: string | undefined;
3011
+ config_meta?: Record<string, unknown> | undefined;
3012
+ }>, "many">>>;
2045
3013
  api_key: z.ZodOptional<z.ZodString>;
2046
3014
  }, "strip", z.ZodTypeAny, {
2047
- dataset_group_id: number;
3015
+ type: "WORKFLOW" | "DATASET" | "TEXT" | "ABSOLUTE_NUMERIC_DISTANCE" | "AI_DATA_EXTRACTION" | "APPLY_DIFF" | "ASSERT_VALID" | "COALESCE" | "CONDITION" | "CODE_EXECUTION" | "COMBINE_COLUMNS" | "COMPARE" | "COMPOSITION" | "CONTAINS" | "CONVERSATION_SIMULATOR" | "COSINE_SIMILARITY" | "COUNT" | "ENDPOINT" | "FOR_LOOP" | "HUMAN" | "JSON_PATH" | "LLM_ASSERTION" | "MATH_OPERATOR" | "MCP" | "MIN_MAX" | "PARSE_VALUE" | "PROMPT_TEMPLATE" | "REGEX" | "REGEX_EXTRACTION" | "VARIABLE" | "WHILE_LOOP" | "XML_PATH";
3016
+ title: string;
3017
+ table_id: string;
3018
+ sheet_id: string;
2048
3019
  api_key?: string | undefined;
2049
- source_dataset_id?: number | undefined;
3020
+ config?: Record<string, unknown> | null | undefined;
3021
+ dependencies?: {
3022
+ column_id: string;
3023
+ reference_type?: string | undefined;
3024
+ config_key?: string | undefined;
3025
+ config_meta?: Record<string, unknown> | undefined;
3026
+ }[] | null | undefined;
2050
3027
  }, {
2051
- dataset_group_id: number;
3028
+ type: "WORKFLOW" | "DATASET" | "TEXT" | "ABSOLUTE_NUMERIC_DISTANCE" | "AI_DATA_EXTRACTION" | "APPLY_DIFF" | "ASSERT_VALID" | "COALESCE" | "CONDITION" | "CODE_EXECUTION" | "COMBINE_COLUMNS" | "COMPARE" | "COMPOSITION" | "CONTAINS" | "CONVERSATION_SIMULATOR" | "COSINE_SIMILARITY" | "COUNT" | "ENDPOINT" | "FOR_LOOP" | "HUMAN" | "JSON_PATH" | "LLM_ASSERTION" | "MATH_OPERATOR" | "MCP" | "MIN_MAX" | "PARSE_VALUE" | "PROMPT_TEMPLATE" | "REGEX" | "REGEX_EXTRACTION" | "VARIABLE" | "WHILE_LOOP" | "XML_PATH";
3029
+ title: string;
3030
+ table_id: string;
3031
+ sheet_id: string;
2052
3032
  api_key?: string | undefined;
2053
- source_dataset_id?: number | undefined;
3033
+ config?: Record<string, unknown> | null | undefined;
3034
+ dependencies?: {
3035
+ column_id: string;
3036
+ reference_type?: string | undefined;
3037
+ config_key?: string | undefined;
3038
+ config_meta?: Record<string, unknown> | undefined;
3039
+ }[] | null | undefined;
2054
3040
  }>;
2055
3041
  readonly annotations: {
2056
3042
  readonly readOnlyHint: false;
2057
3043
  };
2058
3044
  };
2059
- readonly "add-request-log-to-dataset": {
2060
- readonly name: "add-request-log-to-dataset";
2061
- readonly description: "Add a request log as a row to the draft dataset version. Extracts input variables, metadata, scores, tags, prompt, and response. Requires create-draft first.";
3045
+ readonly "update-smart-table-column": {
3046
+ readonly name: "update-smart-table-column";
3047
+ readonly description: "Update a Smart Table column title, config, or dependencies. Column type and position are not changed by this tool.";
2062
3048
  readonly inputSchema: z.ZodObject<{
2063
- dataset_group_id: z.ZodNumber;
2064
- request_log_id: z.ZodNumber;
3049
+ table_id: z.ZodString;
3050
+ sheet_id: z.ZodString;
3051
+ column_id: z.ZodString;
3052
+ title: z.ZodOptional<z.ZodString>;
3053
+ config: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
3054
+ dependencies: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
3055
+ column_id: z.ZodString;
3056
+ reference_type: z.ZodOptional<z.ZodString>;
3057
+ config_key: z.ZodOptional<z.ZodString>;
3058
+ config_meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3059
+ }, "strip", z.ZodTypeAny, {
3060
+ column_id: string;
3061
+ reference_type?: string | undefined;
3062
+ config_key?: string | undefined;
3063
+ config_meta?: Record<string, unknown> | undefined;
3064
+ }, {
3065
+ column_id: string;
3066
+ reference_type?: string | undefined;
3067
+ config_key?: string | undefined;
3068
+ config_meta?: Record<string, unknown> | undefined;
3069
+ }>, "many">>>;
2065
3070
  api_key: z.ZodOptional<z.ZodString>;
2066
3071
  }, "strip", z.ZodTypeAny, {
2067
- dataset_group_id: number;
2068
- request_log_id: number;
3072
+ column_id: string;
3073
+ table_id: string;
3074
+ sheet_id: string;
2069
3075
  api_key?: string | undefined;
3076
+ title?: string | undefined;
3077
+ config?: Record<string, unknown> | null | undefined;
3078
+ dependencies?: {
3079
+ column_id: string;
3080
+ reference_type?: string | undefined;
3081
+ config_key?: string | undefined;
3082
+ config_meta?: Record<string, unknown> | undefined;
3083
+ }[] | null | undefined;
2070
3084
  }, {
2071
- dataset_group_id: number;
2072
- request_log_id: number;
3085
+ column_id: string;
3086
+ table_id: string;
3087
+ sheet_id: string;
2073
3088
  api_key?: string | undefined;
3089
+ title?: string | undefined;
3090
+ config?: Record<string, unknown> | null | undefined;
3091
+ dependencies?: {
3092
+ column_id: string;
3093
+ reference_type?: string | undefined;
3094
+ config_key?: string | undefined;
3095
+ config_meta?: Record<string, unknown> | undefined;
3096
+ }[] | null | undefined;
2074
3097
  }>;
2075
3098
  readonly annotations: {
2076
3099
  readonly readOnlyHint: false;
2077
3100
  };
2078
3101
  };
2079
- readonly "save-draft-dataset-version": {
2080
- readonly name: "save-draft-dataset-version";
2081
- readonly description: "Publish a draft dataset version by assigning it a real version number. Processed asynchronously.";
3102
+ readonly "list-smart-table-rows": {
3103
+ readonly name: "list-smart-table-rows";
3104
+ readonly description: "List rows in a Smart Table sheet with optional column metadata and row counts.";
2082
3105
  readonly inputSchema: z.ZodObject<{
2083
- dataset_group_id: z.ZodNumber;
3106
+ sort: z.ZodOptional<z.ZodEnum<["row_index"]>>;
3107
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
3108
+ include_columns: z.ZodOptional<z.ZodBoolean>;
3109
+ include_row_count: z.ZodOptional<z.ZodBoolean>;
3110
+ include_system_columns: z.ZodOptional<z.ZodBoolean>;
3111
+ include_execution_metadata_aggregates: z.ZodOptional<z.ZodBoolean>;
2084
3112
  api_key: z.ZodOptional<z.ZodString>;
3113
+ cursor: z.ZodOptional<z.ZodString>;
3114
+ limit: z.ZodOptional<z.ZodNumber>;
3115
+ table_id: z.ZodString;
3116
+ sheet_id: z.ZodString;
2085
3117
  }, "strip", z.ZodTypeAny, {
2086
- dataset_group_id: number;
3118
+ table_id: string;
3119
+ sheet_id: string;
3120
+ sort?: "row_index" | undefined;
2087
3121
  api_key?: string | undefined;
3122
+ limit?: number | undefined;
3123
+ order?: "asc" | "desc" | undefined;
3124
+ cursor?: string | undefined;
3125
+ include_system_columns?: boolean | undefined;
3126
+ include_columns?: boolean | undefined;
3127
+ include_row_count?: boolean | undefined;
3128
+ include_execution_metadata_aggregates?: boolean | undefined;
2088
3129
  }, {
2089
- dataset_group_id: number;
3130
+ table_id: string;
3131
+ sheet_id: string;
3132
+ sort?: "row_index" | undefined;
2090
3133
  api_key?: string | undefined;
3134
+ limit?: number | undefined;
3135
+ order?: "asc" | "desc" | undefined;
3136
+ cursor?: string | undefined;
3137
+ include_system_columns?: boolean | undefined;
3138
+ include_columns?: boolean | undefined;
3139
+ include_row_count?: boolean | undefined;
3140
+ include_execution_metadata_aggregates?: boolean | undefined;
2091
3141
  }>;
2092
3142
  readonly annotations: {
2093
- readonly readOnlyHint: false;
3143
+ readonly readOnlyHint: true;
2094
3144
  };
2095
3145
  };
2096
- readonly "add-trace-to-dataset": {
2097
- readonly name: "add-trace-to-dataset";
2098
- readonly description: "Add a trace as a row to the draft dataset version. Pass span_id to anchor on a specific span subtree instead of the full trace root. Requires create-draft first.";
3146
+ readonly "add-smart-table-rows": {
3147
+ readonly name: "add-smart-table-rows";
3148
+ readonly description: "Add up to 100 rows to a Smart Table sheet, optionally with values keyed by column UUID.";
2099
3149
  readonly inputSchema: z.ZodObject<{
2100
- dataset_group_id: z.ZodNumber;
2101
- trace_id: z.ZodString;
2102
- span_id: z.ZodOptional<z.ZodString>;
3150
+ table_id: z.ZodString;
3151
+ sheet_id: z.ZodString;
3152
+ count: z.ZodOptional<z.ZodNumber>;
3153
+ values: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
2103
3154
  api_key: z.ZodOptional<z.ZodString>;
2104
3155
  }, "strip", z.ZodTypeAny, {
2105
- dataset_group_id: number;
2106
- trace_id: string;
3156
+ table_id: string;
3157
+ sheet_id: string;
3158
+ values?: Record<string, unknown>[] | undefined;
2107
3159
  api_key?: string | undefined;
2108
- span_id?: string | undefined;
3160
+ count?: number | undefined;
2109
3161
  }, {
2110
- dataset_group_id: number;
2111
- trace_id: string;
3162
+ table_id: string;
3163
+ sheet_id: string;
3164
+ values?: Record<string, unknown>[] | undefined;
2112
3165
  api_key?: string | undefined;
2113
- span_id?: string | undefined;
3166
+ count?: number | undefined;
2114
3167
  }>;
2115
3168
  readonly annotations: {
2116
3169
  readonly readOnlyHint: false;
2117
3170
  };
2118
3171
  };
2119
- readonly "list-evaluations": {
2120
- readonly name: "list-evaluations";
2121
- readonly description: "List evaluation pipelines (called 'reports' in the API) with pagination. Filter by name, status. Set include_runs=true to include batch runs nested under each evaluation.";
3172
+ readonly "get-smart-table-cell": {
3173
+ readonly name: "get-smart-table-cell";
3174
+ readonly description: "Get a Smart Table cell by UUID.";
2122
3175
  readonly inputSchema: z.ZodObject<{
2123
- page: z.ZodOptional<z.ZodNumber>;
2124
- per_page: z.ZodOptional<z.ZodNumber>;
2125
- name: z.ZodOptional<z.ZodString>;
2126
- status: z.ZodOptional<z.ZodEnum<["active", "deleted", "all"]>>;
2127
- include_runs: z.ZodOptional<z.ZodBoolean>;
3176
+ table_id: z.ZodString;
3177
+ sheet_id: z.ZodString;
3178
+ cell_id: z.ZodString;
2128
3179
  api_key: z.ZodOptional<z.ZodString>;
2129
3180
  }, "strip", z.ZodTypeAny, {
2130
- status?: "active" | "deleted" | "all" | undefined;
3181
+ table_id: string;
3182
+ sheet_id: string;
3183
+ cell_id: string;
2131
3184
  api_key?: string | undefined;
2132
- page?: number | undefined;
2133
- per_page?: number | undefined;
2134
- name?: string | undefined;
2135
- include_runs?: boolean | undefined;
2136
3185
  }, {
2137
- status?: "active" | "deleted" | "all" | undefined;
3186
+ table_id: string;
3187
+ sheet_id: string;
3188
+ cell_id: string;
2138
3189
  api_key?: string | undefined;
2139
- page?: number | undefined;
2140
- per_page?: number | undefined;
2141
- name?: string | undefined;
2142
- include_runs?: boolean | undefined;
2143
3190
  }>;
2144
3191
  readonly annotations: {
2145
3192
  readonly readOnlyHint: true;
2146
3193
  };
2147
3194
  };
2148
- readonly "get-evaluation-rows": {
2149
- readonly name: "get-evaluation-rows";
2150
- readonly description: "Get paginated evaluation results with dataset inputs and eval outcomes. Each row has dataset cells ({type: 'dataset', value: ...}) followed by eval cells ({type: 'eval', status: 'PASSED'|'FAILED', value: ...}).";
3195
+ readonly "update-smart-table-cell": {
3196
+ readonly name: "update-smart-table-cell";
3197
+ readonly description: "Update a Smart Table text cell. Computed cells should be recalculated instead.";
2151
3198
  readonly inputSchema: z.ZodObject<{
2152
- evaluation_id: z.ZodNumber;
2153
- page: z.ZodOptional<z.ZodNumber>;
2154
- per_page: z.ZodOptional<z.ZodNumber>;
3199
+ table_id: z.ZodString;
3200
+ sheet_id: z.ZodString;
3201
+ cell_id: z.ZodString;
3202
+ display_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3203
+ value: z.ZodOptional<z.ZodUnknown>;
2155
3204
  api_key: z.ZodOptional<z.ZodString>;
2156
3205
  }, "strip", z.ZodTypeAny, {
2157
- evaluation_id: number;
3206
+ table_id: string;
3207
+ sheet_id: string;
3208
+ cell_id: string;
3209
+ value?: unknown;
2158
3210
  api_key?: string | undefined;
2159
- page?: number | undefined;
2160
- per_page?: number | undefined;
3211
+ display_value?: string | null | undefined;
2161
3212
  }, {
2162
- evaluation_id: number;
3213
+ table_id: string;
3214
+ sheet_id: string;
3215
+ cell_id: string;
3216
+ value?: unknown;
2163
3217
  api_key?: string | undefined;
2164
- page?: number | undefined;
2165
- per_page?: number | undefined;
3218
+ display_value?: string | null | undefined;
2166
3219
  }>;
2167
3220
  readonly annotations: {
2168
- readonly readOnlyHint: true;
3221
+ readonly readOnlyHint: false;
2169
3222
  };
2170
3223
  };
2171
- readonly "create-report": {
2172
- readonly name: "create-report";
2173
- readonly description: "Create an evaluation pipeline (called 'report' in the API) linked to a dataset group. The recommended approach is to add LLM assertion columns that use a language model to score each row. For all available column types, search the PromptLayer docs or visit https://docs.promptlayer.com/features/evaluations/column-types.";
3224
+ readonly "recalculate-smart-table-cell": {
3225
+ readonly name: "recalculate-smart-table-cell";
3226
+ readonly description: "Queue recalculation for one Smart Table computed cell.";
2174
3227
  readonly inputSchema: z.ZodObject<{
2175
- dataset_group_id: z.ZodNumber;
2176
- name: z.ZodOptional<z.ZodString>;
2177
- folder_id: z.ZodOptional<z.ZodNumber>;
2178
- dataset_version_number: z.ZodOptional<z.ZodNumber>;
2179
- columns: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
2180
- score_configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3228
+ table_id: z.ZodString;
3229
+ sheet_id: z.ZodString;
3230
+ cell_id: z.ZodString;
2181
3231
  api_key: z.ZodOptional<z.ZodString>;
2182
3232
  }, "strip", z.ZodTypeAny, {
2183
- dataset_group_id: number;
3233
+ table_id: string;
3234
+ sheet_id: string;
3235
+ cell_id: string;
2184
3236
  api_key?: string | undefined;
2185
- name?: string | undefined;
2186
- folder_id?: number | undefined;
2187
- dataset_version_number?: number | undefined;
2188
- columns?: Record<string, unknown>[] | undefined;
2189
- score_configuration?: Record<string, unknown> | undefined;
2190
3237
  }, {
2191
- dataset_group_id: number;
3238
+ table_id: string;
3239
+ sheet_id: string;
3240
+ cell_id: string;
2192
3241
  api_key?: string | undefined;
2193
- name?: string | undefined;
2194
- folder_id?: number | undefined;
2195
- dataset_version_number?: number | undefined;
2196
- columns?: Record<string, unknown>[] | undefined;
2197
- score_configuration?: Record<string, unknown> | undefined;
2198
3242
  }>;
2199
3243
  readonly annotations: {
2200
3244
  readonly readOnlyHint: false;
2201
3245
  };
2202
3246
  };
2203
- readonly "run-report": {
2204
- readonly name: "run-report";
2205
- readonly description: "Execute an evaluation pipeline. Runs all columns against the dataset and produces scores. Name is required.";
3247
+ readonly "recalculate-smart-table-cells": {
3248
+ readonly name: "recalculate-smart-table-cells";
3249
+ readonly description: "Queue recalculation for multiple Smart Table computed cells.";
2206
3250
  readonly inputSchema: z.ZodObject<{
2207
- report_id: z.ZodNumber;
2208
- name: z.ZodString;
2209
- dataset_id: z.ZodOptional<z.ZodNumber>;
2210
- refresh_dataset: z.ZodOptional<z.ZodBoolean>;
3251
+ table_id: z.ZodString;
3252
+ sheet_id: z.ZodString;
3253
+ cell_ids: z.ZodArray<z.ZodString, "many">;
2211
3254
  api_key: z.ZodOptional<z.ZodString>;
2212
3255
  }, "strip", z.ZodTypeAny, {
2213
- name: string;
2214
- report_id: number;
3256
+ table_id: string;
3257
+ sheet_id: string;
3258
+ cell_ids: string[];
2215
3259
  api_key?: string | undefined;
2216
- dataset_id?: number | undefined;
2217
- refresh_dataset?: boolean | undefined;
2218
3260
  }, {
2219
- name: string;
2220
- report_id: number;
3261
+ table_id: string;
3262
+ sheet_id: string;
3263
+ cell_ids: string[];
3264
+ api_key?: string | undefined;
3265
+ }>;
3266
+ readonly annotations: {
3267
+ readonly readOnlyHint: false;
3268
+ };
3269
+ };
3270
+ readonly "list-smart-table-operations": {
3271
+ readonly name: "list-smart-table-operations";
3272
+ readonly description: "List active Smart Table sheet operations and cell status counts.";
3273
+ readonly inputSchema: z.ZodObject<{
3274
+ table_id: z.ZodString;
3275
+ sheet_id: z.ZodString;
3276
+ api_key: z.ZodOptional<z.ZodString>;
3277
+ }, "strip", z.ZodTypeAny, {
3278
+ table_id: string;
3279
+ sheet_id: string;
3280
+ api_key?: string | undefined;
3281
+ }, {
3282
+ table_id: string;
3283
+ sheet_id: string;
3284
+ api_key?: string | undefined;
3285
+ }>;
3286
+ readonly annotations: {
3287
+ readonly readOnlyHint: true;
3288
+ };
3289
+ };
3290
+ readonly "create-smart-table-operation": {
3291
+ readonly name: "create-smart-table-operation";
3292
+ readonly description: string;
3293
+ readonly inputSchema: z.ZodObject<{
3294
+ table_id: z.ZodString;
3295
+ sheet_id: z.ZodString;
3296
+ operation: z.ZodOptional<z.ZodEnum<["recalculate"]>>;
3297
+ column_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3298
+ row_ids: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
3299
+ statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["STALE", "QUEUED", "DISPATCHED", "RUNNING", "COMPLETED", "FAILED"]>, "many">>;
3300
+ api_key: z.ZodOptional<z.ZodString>;
3301
+ }, "strip", z.ZodTypeAny, {
3302
+ table_id: string;
3303
+ sheet_id: string;
3304
+ api_key?: string | undefined;
3305
+ operation?: "recalculate" | undefined;
3306
+ column_ids?: string[] | undefined;
3307
+ row_ids?: number[] | undefined;
3308
+ statuses?: ("STALE" | "QUEUED" | "DISPATCHED" | "RUNNING" | "COMPLETED" | "FAILED")[] | undefined;
3309
+ }, {
3310
+ table_id: string;
3311
+ sheet_id: string;
2221
3312
  api_key?: string | undefined;
2222
- dataset_id?: number | undefined;
2223
- refresh_dataset?: boolean | undefined;
3313
+ operation?: "recalculate" | undefined;
3314
+ column_ids?: string[] | undefined;
3315
+ row_ids?: number[] | undefined;
3316
+ statuses?: ("STALE" | "QUEUED" | "DISPATCHED" | "RUNNING" | "COMPLETED" | "FAILED")[] | undefined;
2224
3317
  }>;
2225
3318
  readonly annotations: {
2226
3319
  readonly readOnlyHint: false;
2227
3320
  };
2228
3321
  };
2229
- readonly "get-report": {
2230
- readonly name: "get-report";
2231
- readonly description: "Get evaluation pipeline details including columns and configuration. Use get-report-score for the computed score.";
3322
+ readonly "get-smart-table-operation": {
3323
+ readonly name: "get-smart-table-operation";
3324
+ readonly description: "Get status for a Smart Table sheet operation.";
2232
3325
  readonly inputSchema: z.ZodObject<{
2233
- report_id: z.ZodNumber;
3326
+ table_id: z.ZodString;
3327
+ sheet_id: z.ZodString;
3328
+ operation_id: z.ZodString;
2234
3329
  api_key: z.ZodOptional<z.ZodString>;
2235
3330
  }, "strip", z.ZodTypeAny, {
2236
- report_id: number;
3331
+ table_id: string;
3332
+ operation_id: string;
3333
+ sheet_id: string;
2237
3334
  api_key?: string | undefined;
2238
3335
  }, {
2239
- report_id: number;
3336
+ table_id: string;
3337
+ operation_id: string;
3338
+ sheet_id: string;
2240
3339
  api_key?: string | undefined;
2241
3340
  }>;
2242
3341
  readonly annotations: {
2243
3342
  readonly readOnlyHint: true;
2244
3343
  };
2245
3344
  };
2246
- readonly "get-report-score": {
2247
- readonly name: "get-report-score";
2248
- readonly description: "Get the computed score for an evaluation pipeline.";
3345
+ readonly "cancel-smart-table-operation": {
3346
+ readonly name: "cancel-smart-table-operation";
3347
+ readonly description: "Cancel an active Smart Table sheet operation.";
3348
+ readonly inputSchema: z.ZodObject<{
3349
+ table_id: z.ZodString;
3350
+ sheet_id: z.ZodString;
3351
+ operation_id: z.ZodString;
3352
+ api_key: z.ZodOptional<z.ZodString>;
3353
+ }, "strip", z.ZodTypeAny, {
3354
+ table_id: string;
3355
+ operation_id: string;
3356
+ sheet_id: string;
3357
+ api_key?: string | undefined;
3358
+ }, {
3359
+ table_id: string;
3360
+ operation_id: string;
3361
+ sheet_id: string;
3362
+ api_key?: string | undefined;
3363
+ }>;
3364
+ readonly annotations: {
3365
+ readonly readOnlyHint: false;
3366
+ };
3367
+ };
3368
+ readonly "get-smart-table-score": {
3369
+ readonly name: "get-smart-table-score";
3370
+ readonly description: string;
2249
3371
  readonly inputSchema: z.ZodObject<{
2250
- report_id: z.ZodNumber;
3372
+ table_id: z.ZodString;
3373
+ sheet_id: z.ZodString;
2251
3374
  api_key: z.ZodOptional<z.ZodString>;
2252
3375
  }, "strip", z.ZodTypeAny, {
2253
- report_id: number;
3376
+ table_id: string;
3377
+ sheet_id: string;
2254
3378
  api_key?: string | undefined;
2255
3379
  }, {
2256
- report_id: number;
3380
+ table_id: string;
3381
+ sheet_id: string;
2257
3382
  api_key?: string | undefined;
2258
3383
  }>;
2259
3384
  readonly annotations: {
2260
3385
  readonly readOnlyHint: true;
2261
3386
  };
2262
3387
  };
2263
- readonly "update-report-score-card": {
2264
- readonly name: "update-report-score-card";
2265
- readonly description: "Configure custom scoring for an evaluation pipeline. Specify which column_names contribute to the score, with optional custom code.";
3388
+ readonly "configure-smart-table-score": {
3389
+ readonly name: "configure-smart-table-score";
3390
+ readonly description: string;
2266
3391
  readonly inputSchema: z.ZodObject<{
2267
- report_id: z.ZodNumber;
2268
- column_names: z.ZodArray<z.ZodString, "many">;
3392
+ table_id: z.ZodString;
3393
+ sheet_id: z.ZodString;
3394
+ score_type: z.ZodOptional<z.ZodEnum<["auto", "boolean", "numeric", "custom"]>>;
3395
+ score_config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3396
+ column_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3397
+ column_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2269
3398
  code: z.ZodOptional<z.ZodString>;
2270
3399
  code_language: z.ZodOptional<z.ZodEnum<["PYTHON", "JAVASCRIPT"]>>;
3400
+ true_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3401
+ false_values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3402
+ assertion_aggregation: z.ZodOptional<z.ZodEnum<["all", "any", "mean"]>>;
2271
3403
  api_key: z.ZodOptional<z.ZodString>;
2272
3404
  }, "strip", z.ZodTypeAny, {
2273
- report_id: number;
2274
- column_names: string[];
3405
+ table_id: string;
3406
+ sheet_id: string;
2275
3407
  code?: string | undefined;
2276
3408
  api_key?: string | undefined;
3409
+ column_ids?: string[] | undefined;
3410
+ score_type?: "boolean" | "custom" | "auto" | "numeric" | undefined;
3411
+ score_config?: Record<string, unknown> | undefined;
3412
+ column_names?: string[] | undefined;
2277
3413
  code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
3414
+ true_values?: string[] | undefined;
3415
+ false_values?: string[] | undefined;
3416
+ assertion_aggregation?: "all" | "any" | "mean" | undefined;
2278
3417
  }, {
2279
- report_id: number;
2280
- column_names: string[];
3418
+ table_id: string;
3419
+ sheet_id: string;
2281
3420
  code?: string | undefined;
2282
3421
  api_key?: string | undefined;
3422
+ column_ids?: string[] | undefined;
3423
+ score_type?: "boolean" | "custom" | "auto" | "numeric" | undefined;
3424
+ score_config?: Record<string, unknown> | undefined;
3425
+ column_names?: string[] | undefined;
2283
3426
  code_language?: "PYTHON" | "JAVASCRIPT" | undefined;
3427
+ true_values?: string[] | undefined;
3428
+ false_values?: string[] | undefined;
3429
+ assertion_aggregation?: "all" | "any" | "mean" | undefined;
2284
3430
  }>;
2285
3431
  readonly annotations: {
2286
3432
  readonly readOnlyHint: false;
2287
3433
  };
2288
3434
  };
2289
- readonly "delete-reports-by-name": {
2290
- readonly name: "delete-reports-by-name";
2291
- readonly description: "Archive all evaluation pipelines matching the given name.";
3435
+ readonly "recalculate-smart-table-score": {
3436
+ readonly name: "recalculate-smart-table-score";
3437
+ readonly description: "Recompute the aggregate score for a Smart Table sheet.";
2292
3438
  readonly inputSchema: z.ZodObject<{
2293
- report_name: z.ZodString;
3439
+ table_id: z.ZodString;
3440
+ sheet_id: z.ZodString;
2294
3441
  api_key: z.ZodOptional<z.ZodString>;
2295
3442
  }, "strip", z.ZodTypeAny, {
2296
- report_name: string;
3443
+ table_id: string;
3444
+ sheet_id: string;
2297
3445
  api_key?: string | undefined;
2298
3446
  }, {
2299
- report_name: string;
3447
+ table_id: string;
3448
+ sheet_id: string;
2300
3449
  api_key?: string | undefined;
2301
3450
  }>;
2302
3451
  readonly annotations: {
2303
3452
  readonly readOnlyHint: false;
2304
3453
  };
2305
3454
  };
2306
- readonly "delete-report": {
2307
- readonly name: "delete-report";
2308
- readonly description: "Archive a single evaluation pipeline by ID. Prefer this over delete-reports-by-name when you have the report_id, since names can collide.";
3455
+ readonly "list-smart-table-versions": {
3456
+ readonly name: "list-smart-table-versions";
3457
+ readonly description: string;
2309
3458
  readonly inputSchema: z.ZodObject<{
2310
- report_id: z.ZodNumber;
3459
+ sort: z.ZodOptional<z.ZodEnum<["version_number"]>>;
3460
+ order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
2311
3461
  api_key: z.ZodOptional<z.ZodString>;
3462
+ cursor: z.ZodOptional<z.ZodString>;
3463
+ limit: z.ZodOptional<z.ZodNumber>;
3464
+ table_id: z.ZodString;
3465
+ sheet_id: z.ZodString;
2312
3466
  }, "strip", z.ZodTypeAny, {
2313
- report_id: number;
3467
+ table_id: string;
3468
+ sheet_id: string;
3469
+ sort?: "version_number" | undefined;
2314
3470
  api_key?: string | undefined;
3471
+ limit?: number | undefined;
3472
+ order?: "asc" | "desc" | undefined;
3473
+ cursor?: string | undefined;
2315
3474
  }, {
2316
- report_id: number;
3475
+ table_id: string;
3476
+ sheet_id: string;
3477
+ sort?: "version_number" | undefined;
2317
3478
  api_key?: string | undefined;
3479
+ limit?: number | undefined;
3480
+ order?: "asc" | "desc" | undefined;
3481
+ cursor?: string | undefined;
2318
3482
  }>;
2319
3483
  readonly annotations: {
2320
- readonly readOnlyHint: false;
3484
+ readonly readOnlyHint: true;
3485
+ };
3486
+ };
3487
+ readonly "get-smart-table-version": {
3488
+ readonly name: "get-smart-table-version";
3489
+ readonly description: "Get a saved Smart Table sheet version, including its full snapshot of cell values.";
3490
+ readonly inputSchema: z.ZodObject<{
3491
+ table_id: z.ZodString;
3492
+ sheet_id: z.ZodString;
3493
+ version_id: z.ZodString;
3494
+ api_key: z.ZodOptional<z.ZodString>;
3495
+ }, "strip", z.ZodTypeAny, {
3496
+ table_id: string;
3497
+ sheet_id: string;
3498
+ version_id: string;
3499
+ api_key?: string | undefined;
3500
+ }, {
3501
+ table_id: string;
3502
+ sheet_id: string;
3503
+ version_id: string;
3504
+ api_key?: string | undefined;
3505
+ }>;
3506
+ readonly annotations: {
3507
+ readonly readOnlyHint: true;
2321
3508
  };
2322
3509
  };
2323
- readonly "rename-report": {
2324
- readonly name: "rename-report";
2325
- readonly description: "Rename or retag an evaluation pipeline. Provide name, tags, or both. Use this instead of recreating a misnamed pipeline.";
3510
+ readonly "create-smart-table-version": {
3511
+ readonly name: "create-smart-table-version";
3512
+ readonly description: string;
2326
3513
  readonly inputSchema: z.ZodObject<{
2327
- report_id: z.ZodNumber;
3514
+ table_id: z.ZodString;
3515
+ sheet_id: z.ZodString;
2328
3516
  name: z.ZodOptional<z.ZodString>;
2329
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3517
+ source_version_id: z.ZodOptional<z.ZodString>;
2330
3518
  api_key: z.ZodOptional<z.ZodString>;
2331
3519
  }, "strip", z.ZodTypeAny, {
2332
- report_id: number;
3520
+ table_id: string;
3521
+ sheet_id: string;
2333
3522
  api_key?: string | undefined;
2334
3523
  name?: string | undefined;
2335
- tags?: string[] | undefined;
3524
+ source_version_id?: string | undefined;
2336
3525
  }, {
2337
- report_id: number;
3526
+ table_id: string;
3527
+ sheet_id: string;
2338
3528
  api_key?: string | undefined;
2339
3529
  name?: string | undefined;
2340
- tags?: string[] | undefined;
3530
+ source_version_id?: string | undefined;
2341
3531
  }>;
2342
3532
  readonly annotations: {
2343
3533
  readonly readOnlyHint: false;
2344
3534
  };
2345
3535
  };
2346
- readonly "add-report-column": {
2347
- readonly name: "add-report-column";
2348
- readonly description: "Add a single column to an existing evaluation pipeline. Use this to extend a pipeline incrementally instead of recreating the entire report. Column names must be unique within the pipeline. For column types and configuration, see https://docs.promptlayer.com/features/evaluations/column-types.";
3536
+ readonly "get-smart-table-score-history": {
3537
+ readonly name: "get-smart-table-score-history";
3538
+ readonly description: string;
2349
3539
  readonly inputSchema: z.ZodObject<{
2350
- report_id: z.ZodNumber;
2351
- column_type: z.ZodString;
2352
- name: z.ZodString;
2353
- configuration: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2354
- position: z.ZodOptional<z.ZodNumber>;
2355
- is_part_of_score: z.ZodOptional<z.ZodBoolean>;
3540
+ table_id: z.ZodString;
3541
+ sheet_id: z.ZodString;
3542
+ max_points: z.ZodOptional<z.ZodNumber>;
3543
+ range: z.ZodOptional<z.ZodString>;
3544
+ resolution: z.ZodOptional<z.ZodString>;
2356
3545
  api_key: z.ZodOptional<z.ZodString>;
2357
3546
  }, "strip", z.ZodTypeAny, {
2358
- name: string;
2359
- report_id: number;
2360
- column_type: string;
2361
- configuration: Record<string, unknown>;
3547
+ table_id: string;
3548
+ sheet_id: string;
2362
3549
  api_key?: string | undefined;
2363
- position?: number | undefined;
2364
- is_part_of_score?: boolean | undefined;
3550
+ max_points?: number | undefined;
3551
+ range?: string | undefined;
3552
+ resolution?: string | undefined;
2365
3553
  }, {
2366
- name: string;
2367
- report_id: number;
2368
- column_type: string;
2369
- configuration: Record<string, unknown>;
3554
+ table_id: string;
3555
+ sheet_id: string;
2370
3556
  api_key?: string | undefined;
2371
- position?: number | undefined;
2372
- is_part_of_score?: boolean | undefined;
3557
+ max_points?: number | undefined;
3558
+ range?: string | undefined;
3559
+ resolution?: string | undefined;
2373
3560
  }>;
2374
3561
  readonly annotations: {
2375
- readonly readOnlyHint: false;
3562
+ readonly readOnlyHint: true;
2376
3563
  };
2377
3564
  };
2378
- readonly "edit-report-column": {
2379
- readonly name: "edit-report-column";
2380
- readonly description: "Update an existing evaluation column's type, configuration, name, or position. Use this to fix a bug in a CODE_EXECUTION script or change a column's settings without recreating the whole pipeline. Cannot edit DATASET columns.";
3565
+ readonly "list-legacy-smart-table-migrations": {
3566
+ readonly name: "list-legacy-smart-table-migrations";
3567
+ readonly description: "List successful legacy dataset/evaluation to Smart Table migration mappings.";
2381
3568
  readonly inputSchema: z.ZodObject<{
2382
- report_column_id: z.ZodNumber;
2383
- report_id: z.ZodNumber;
2384
- column_type: z.ZodString;
2385
- configuration: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2386
- name: z.ZodOptional<z.ZodString>;
2387
- position: z.ZodOptional<z.ZodNumber>;
3569
+ source_type: z.ZodOptional<z.ZodEnum<["dataset_group", "dataset", "report"]>>;
3570
+ source_id: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodArray<z.ZodNumber, "many">]>>;
2388
3571
  api_key: z.ZodOptional<z.ZodString>;
2389
3572
  }, "strip", z.ZodTypeAny, {
2390
- report_id: number;
2391
- column_type: string;
2392
- report_column_id: number;
2393
3573
  api_key?: string | undefined;
2394
- name?: string | undefined;
2395
- configuration?: Record<string, unknown> | undefined;
2396
- position?: number | undefined;
3574
+ source_type?: "dataset_group" | "dataset" | "report" | undefined;
3575
+ source_id?: number | number[] | undefined;
2397
3576
  }, {
2398
- report_id: number;
2399
- column_type: string;
2400
- report_column_id: number;
2401
3577
  api_key?: string | undefined;
2402
- name?: string | undefined;
2403
- configuration?: Record<string, unknown> | undefined;
2404
- position?: number | undefined;
3578
+ source_type?: "dataset_group" | "dataset" | "report" | undefined;
3579
+ source_id?: number | number[] | undefined;
2405
3580
  }>;
2406
3581
  readonly annotations: {
2407
- readonly readOnlyHint: false;
3582
+ readonly readOnlyHint: true;
3583
+ };
3584
+ };
3585
+ readonly "preview-legacy-smart-table-migration": {
3586
+ readonly name: "preview-legacy-smart-table-migration";
3587
+ readonly description: "Preview conversion of a legacy dataset group, dataset, or report into a Smart Table.";
3588
+ readonly inputSchema: z.ZodObject<{
3589
+ source_type: z.ZodEnum<["dataset_group", "dataset", "report"]>;
3590
+ source_id: z.ZodNumber;
3591
+ api_key: z.ZodOptional<z.ZodString>;
3592
+ }, "strip", z.ZodTypeAny, {
3593
+ source_type: "dataset_group" | "dataset" | "report";
3594
+ source_id: number;
3595
+ api_key?: string | undefined;
3596
+ }, {
3597
+ source_type: "dataset_group" | "dataset" | "report";
3598
+ source_id: number;
3599
+ api_key?: string | undefined;
3600
+ }>;
3601
+ readonly annotations: {
3602
+ readonly readOnlyHint: true;
2408
3603
  };
2409
3604
  };
2410
- readonly "delete-report-column": {
2411
- readonly name: "delete-report-column";
2412
- readonly description: "Delete a single column from an evaluation pipeline. Cannot delete DATASET columns. Surrounding columns shift left to fill the gap.";
3605
+ readonly "migrate-legacy-to-smart-table": {
3606
+ readonly name: "migrate-legacy-to-smart-table";
3607
+ readonly description: "Start or dry-run conversion of a legacy dataset group, dataset, or report into a Smart Table.";
2413
3608
  readonly inputSchema: z.ZodObject<{
2414
- report_column_id: z.ZodNumber;
3609
+ source_type: z.ZodEnum<["dataset_group", "dataset", "report"]>;
3610
+ source_id: z.ZodNumber;
3611
+ force: z.ZodOptional<z.ZodBoolean>;
3612
+ dry_run: z.ZodOptional<z.ZodBoolean>;
3613
+ resume: z.ZodOptional<z.ZodBoolean>;
3614
+ continue_on_error: z.ZodOptional<z.ZodBoolean>;
3615
+ include_reports_with_missing_datasets: z.ZodOptional<z.ZodBoolean>;
3616
+ max_version_snapshot_cells: z.ZodOptional<z.ZodNumber>;
3617
+ report_preview_row_limit: z.ZodOptional<z.ZodNumber>;
2415
3618
  api_key: z.ZodOptional<z.ZodString>;
2416
3619
  }, "strip", z.ZodTypeAny, {
2417
- report_column_id: number;
3620
+ source_type: "dataset_group" | "dataset" | "report";
3621
+ source_id: number;
2418
3622
  api_key?: string | undefined;
3623
+ force?: boolean | undefined;
3624
+ dry_run?: boolean | undefined;
3625
+ resume?: boolean | undefined;
3626
+ continue_on_error?: boolean | undefined;
3627
+ include_reports_with_missing_datasets?: boolean | undefined;
3628
+ max_version_snapshot_cells?: number | undefined;
3629
+ report_preview_row_limit?: number | undefined;
2419
3630
  }, {
2420
- report_column_id: number;
3631
+ source_type: "dataset_group" | "dataset" | "report";
3632
+ source_id: number;
2421
3633
  api_key?: string | undefined;
3634
+ force?: boolean | undefined;
3635
+ dry_run?: boolean | undefined;
3636
+ resume?: boolean | undefined;
3637
+ continue_on_error?: boolean | undefined;
3638
+ include_reports_with_missing_datasets?: boolean | undefined;
3639
+ max_version_snapshot_cells?: number | undefined;
3640
+ report_preview_row_limit?: number | undefined;
2422
3641
  }>;
2423
3642
  readonly annotations: {
2424
3643
  readonly readOnlyHint: false;
2425
3644
  };
2426
3645
  };
3646
+ readonly "get-legacy-smart-table-migration-job": {
3647
+ readonly name: "get-legacy-smart-table-migration-job";
3648
+ readonly description: "Get status and result details for a legacy Smart Table migration job.";
3649
+ readonly inputSchema: z.ZodObject<{
3650
+ job_id: z.ZodString;
3651
+ api_key: z.ZodOptional<z.ZodString>;
3652
+ }, "strip", z.ZodTypeAny, {
3653
+ job_id: string;
3654
+ api_key?: string | undefined;
3655
+ }, {
3656
+ job_id: string;
3657
+ api_key?: string | undefined;
3658
+ }>;
3659
+ readonly annotations: {
3660
+ readonly readOnlyHint: true;
3661
+ };
3662
+ };
2427
3663
  readonly "list-workflows": {
2428
3664
  readonly name: "list-workflows";
2429
3665
  readonly description: "List all agents (called 'workflows' in the API) in the workspace with pagination.";
@@ -2808,6 +4044,74 @@ export declare const TOOL_DEFINITIONS: {
2808
4044
  readonly readOnlyHint: false;
2809
4045
  };
2810
4046
  };
4047
+ readonly "list-workspace-env-vars": {
4048
+ readonly name: "list-workspace-env-vars";
4049
+ readonly description: "List workspace-scoped environment variables. Returned values are masked (only `value_suffix` — last 4 chars). Workspace vars auto-inject into every auto-executing tool in this workspace; tool-scoped vars override them on the same key.";
4050
+ readonly inputSchema: z.ZodObject<{
4051
+ api_key: z.ZodOptional<z.ZodString>;
4052
+ }, "strip", z.ZodTypeAny, {
4053
+ api_key?: string | undefined;
4054
+ }, {
4055
+ api_key?: string | undefined;
4056
+ }>;
4057
+ readonly annotations: {
4058
+ readonly readOnlyHint: true;
4059
+ };
4060
+ };
4061
+ readonly "create-workspace-env-var": {
4062
+ readonly name: "create-workspace-env-var";
4063
+ readonly description: "Scaffold a workspace-scoped environment variable placeholder. Auto-injected into every auto-executing tool in this workspace. The value is always created empty; the user fills in the real value via Settings, Environment Variables. Key must match ^[A-Za-z_][A-Za-z0-9_]*$ and not collide with reserved runtime names.";
4064
+ readonly inputSchema: z.ZodObject<{
4065
+ key: z.ZodString;
4066
+ api_key: z.ZodOptional<z.ZodString>;
4067
+ }, "strip", z.ZodTypeAny, {
4068
+ key: string;
4069
+ api_key?: string | undefined;
4070
+ }, {
4071
+ key: string;
4072
+ api_key?: string | undefined;
4073
+ }>;
4074
+ readonly annotations: {
4075
+ readonly readOnlyHint: false;
4076
+ };
4077
+ };
4078
+ readonly "list-tool-env-vars": {
4079
+ readonly name: "list-tool-env-vars";
4080
+ readonly description: "List tool-scoped environment variables for a specific tool (by ID or name). Returned values are masked (only `value_suffix`). Tool-scoped vars override workspace-scoped vars on the same key during sandbox execution.";
4081
+ readonly inputSchema: z.ZodObject<{
4082
+ identifier: z.ZodString;
4083
+ api_key: z.ZodOptional<z.ZodString>;
4084
+ }, "strip", z.ZodTypeAny, {
4085
+ identifier: string;
4086
+ api_key?: string | undefined;
4087
+ }, {
4088
+ identifier: string;
4089
+ api_key?: string | undefined;
4090
+ }>;
4091
+ readonly annotations: {
4092
+ readonly readOnlyHint: true;
4093
+ };
4094
+ };
4095
+ readonly "create-tool-env-var": {
4096
+ readonly name: "create-tool-env-var";
4097
+ readonly description: "Scaffold a tool-scoped environment variable placeholder on a specific tool. Auto-injected only into THIS tool's sandbox execution and overrides any workspace-scoped var with the same key. The value is always created empty; the user fills in the real value via Settings.";
4098
+ readonly inputSchema: z.ZodObject<{
4099
+ identifier: z.ZodString;
4100
+ key: z.ZodString;
4101
+ api_key: z.ZodOptional<z.ZodString>;
4102
+ }, "strip", z.ZodTypeAny, {
4103
+ identifier: string;
4104
+ key: string;
4105
+ api_key?: string | undefined;
4106
+ }, {
4107
+ identifier: string;
4108
+ key: string;
4109
+ api_key?: string | undefined;
4110
+ }>;
4111
+ readonly annotations: {
4112
+ readonly readOnlyHint: false;
4113
+ };
4114
+ };
2811
4115
  readonly "create-folder": {
2812
4116
  readonly name: "create-folder";
2813
4117
  readonly description: "Create a folder for organizing resources. Nest with parent_id. Names unique within parent.";
@@ -3171,6 +4475,170 @@ export declare const TOOL_DEFINITIONS: {
3171
4475
  readonly readOnlyHint: true;
3172
4476
  };
3173
4477
  };
4478
+ readonly "get-request-analytics-custom-analytics": {
4479
+ readonly name: "get-request-analytics-custom-analytics";
4480
+ readonly description: string;
4481
+ readonly inputSchema: z.ZodObject<{
4482
+ customCharts: z.ZodArray<z.ZodObject<{
4483
+ id: z.ZodString;
4484
+ title: z.ZodOptional<z.ZodString>;
4485
+ chartType: z.ZodEnum<["bar", "line", "area"]>;
4486
+ metric: z.ZodOptional<z.ZodEnum<["count", "sum", "avg", "min", "max", "percentile"]>>;
4487
+ metricField: z.ZodOptional<z.ZodEnum<["input_tokens", "output_tokens", "cost", "latency_ms", "prompt_version_number", "turn_count", "tool_call_count", "cached_tokens", "thinking_tokens"]>>;
4488
+ percentile: z.ZodOptional<z.ZodNumber>;
4489
+ series: z.ZodOptional<z.ZodArray<z.ZodObject<{
4490
+ key: z.ZodString;
4491
+ label: z.ZodString;
4492
+ metric: z.ZodEnum<["sum", "avg", "min", "max", "percentile"]>;
4493
+ metricField: z.ZodEnum<["input_tokens", "output_tokens", "cost", "latency_ms", "prompt_version_number", "turn_count", "tool_call_count", "cached_tokens", "thinking_tokens"]>;
4494
+ percentile: z.ZodOptional<z.ZodNumber>;
4495
+ }, "strip", z.ZodTypeAny, {
4496
+ label: string;
4497
+ key: string;
4498
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
4499
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
4500
+ percentile?: number | undefined;
4501
+ }, {
4502
+ label: string;
4503
+ key: string;
4504
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
4505
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
4506
+ percentile?: number | undefined;
4507
+ }>, "many">>;
4508
+ derivedInsights: z.ZodOptional<z.ZodArray<z.ZodObject<{
4509
+ label: z.ZodString;
4510
+ numeratorSeriesKey: z.ZodString;
4511
+ denominatorSeriesKey: z.ZodString;
4512
+ }, "strip", z.ZodTypeAny, {
4513
+ label: string;
4514
+ numeratorSeriesKey: string;
4515
+ denominatorSeriesKey: string;
4516
+ }, {
4517
+ label: string;
4518
+ numeratorSeriesKey: string;
4519
+ denominatorSeriesKey: string;
4520
+ }>, "many">>;
4521
+ groupByField: z.ZodOptional<z.ZodEnum<["engine", "provider_type", "prompt_id", "prompt_version_number", "status", "error_type", "tags", "metadata_keys", "output_keys", "input_variable_keys", "tool_names"]>>;
4522
+ groupByMetadataKey: z.ZodOptional<z.ZodString>;
4523
+ timeSeries: z.ZodOptional<z.ZodBoolean>;
4524
+ limit: z.ZodOptional<z.ZodNumber>;
4525
+ }, "strip", z.ZodTypeAny, {
4526
+ id: string;
4527
+ chartType: "bar" | "line" | "area";
4528
+ percentile?: number | undefined;
4529
+ metric?: "sum" | "avg" | "min" | "max" | "percentile" | "count" | undefined;
4530
+ metricField?: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens" | undefined;
4531
+ title?: string | undefined;
4532
+ series?: {
4533
+ label: string;
4534
+ key: string;
4535
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
4536
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
4537
+ percentile?: number | undefined;
4538
+ }[] | undefined;
4539
+ derivedInsights?: {
4540
+ label: string;
4541
+ numeratorSeriesKey: string;
4542
+ denominatorSeriesKey: string;
4543
+ }[] | undefined;
4544
+ groupByField?: "status" | "tags" | "prompt_id" | "prompt_version_number" | "error_type" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | undefined;
4545
+ groupByMetadataKey?: string | undefined;
4546
+ timeSeries?: boolean | undefined;
4547
+ limit?: number | undefined;
4548
+ }, {
4549
+ id: string;
4550
+ chartType: "bar" | "line" | "area";
4551
+ percentile?: number | undefined;
4552
+ metric?: "sum" | "avg" | "min" | "max" | "percentile" | "count" | undefined;
4553
+ metricField?: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens" | undefined;
4554
+ title?: string | undefined;
4555
+ series?: {
4556
+ label: string;
4557
+ key: string;
4558
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
4559
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
4560
+ percentile?: number | undefined;
4561
+ }[] | undefined;
4562
+ derivedInsights?: {
4563
+ label: string;
4564
+ numeratorSeriesKey: string;
4565
+ denominatorSeriesKey: string;
4566
+ }[] | undefined;
4567
+ groupByField?: "status" | "tags" | "prompt_id" | "prompt_version_number" | "error_type" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | undefined;
4568
+ groupByMetadataKey?: string | undefined;
4569
+ timeSeries?: boolean | undefined;
4570
+ limit?: number | undefined;
4571
+ }>, "many">;
4572
+ api_key: z.ZodOptional<z.ZodString>;
4573
+ filter_group: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
4574
+ q: z.ZodOptional<z.ZodString>;
4575
+ sort_by: z.ZodOptional<z.ZodEnum<["request_start_time", "input_tokens", "output_tokens", "cost", "latency_ms", "status", "turn_count", "tool_call_count"]>>;
4576
+ sort_order: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
4577
+ }, "strip", z.ZodTypeAny, {
4578
+ customCharts: {
4579
+ id: string;
4580
+ chartType: "bar" | "line" | "area";
4581
+ percentile?: number | undefined;
4582
+ metric?: "sum" | "avg" | "min" | "max" | "percentile" | "count" | undefined;
4583
+ metricField?: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens" | undefined;
4584
+ title?: string | undefined;
4585
+ series?: {
4586
+ label: string;
4587
+ key: string;
4588
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
4589
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
4590
+ percentile?: number | undefined;
4591
+ }[] | undefined;
4592
+ derivedInsights?: {
4593
+ label: string;
4594
+ numeratorSeriesKey: string;
4595
+ denominatorSeriesKey: string;
4596
+ }[] | undefined;
4597
+ groupByField?: "status" | "tags" | "prompt_id" | "prompt_version_number" | "error_type" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | undefined;
4598
+ groupByMetadataKey?: string | undefined;
4599
+ timeSeries?: boolean | undefined;
4600
+ limit?: number | undefined;
4601
+ }[];
4602
+ api_key?: string | undefined;
4603
+ filter_group?: any;
4604
+ q?: string | undefined;
4605
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
4606
+ sort_order?: "asc" | "desc" | undefined;
4607
+ }, {
4608
+ customCharts: {
4609
+ id: string;
4610
+ chartType: "bar" | "line" | "area";
4611
+ percentile?: number | undefined;
4612
+ metric?: "sum" | "avg" | "min" | "max" | "percentile" | "count" | undefined;
4613
+ metricField?: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens" | undefined;
4614
+ title?: string | undefined;
4615
+ series?: {
4616
+ label: string;
4617
+ key: string;
4618
+ metric: "sum" | "avg" | "min" | "max" | "percentile";
4619
+ metricField: "prompt_version_number" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | "cached_tokens" | "thinking_tokens";
4620
+ percentile?: number | undefined;
4621
+ }[] | undefined;
4622
+ derivedInsights?: {
4623
+ label: string;
4624
+ numeratorSeriesKey: string;
4625
+ denominatorSeriesKey: string;
4626
+ }[] | undefined;
4627
+ groupByField?: "status" | "tags" | "prompt_id" | "prompt_version_number" | "error_type" | "engine" | "provider_type" | "metadata_keys" | "tool_names" | "output_keys" | "input_variable_keys" | undefined;
4628
+ groupByMetadataKey?: string | undefined;
4629
+ timeSeries?: boolean | undefined;
4630
+ limit?: number | undefined;
4631
+ }[];
4632
+ api_key?: string | undefined;
4633
+ filter_group?: any;
4634
+ q?: string | undefined;
4635
+ sort_by?: "status" | "request_start_time" | "input_tokens" | "output_tokens" | "cost" | "latency_ms" | "turn_count" | "tool_call_count" | undefined;
4636
+ sort_order?: "asc" | "desc" | undefined;
4637
+ }>;
4638
+ readonly annotations: {
4639
+ readonly readOnlyHint: true;
4640
+ };
4641
+ };
3174
4642
  readonly "patch-prompt-template-version": {
3175
4643
  readonly name: "patch-prompt-template-version";
3176
4644
  readonly description: string;