@kortyx/telemetry-contracts 0.15.0 → 0.17.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/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.17.0](https://github.com/kortyx-io/kortyx/compare/telemetry-contracts-v0.16.0...telemetry-contracts-v0.17.0) (2026-10-11)
4
+
5
+
6
+ ### Features
7
+
8
+ * add shared SDK and Studio usage telemetry ([#313](https://github.com/kortyx-io/kortyx/issues/313)) ([7d5f0c0](https://github.com/kortyx-io/kortyx/commit/7d5f0c005bd7721dc6a529554e75c14573d76a0f))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **website:** reconcile credibility branch with current main ([60199f9](https://github.com/kortyx-io/kortyx/commit/60199f992242eb7c409a95bc7a6898d31bac601d))
14
+
15
+
16
+ ### Dependencies
17
+
18
+ * The following workspace dependencies were updated
19
+ * dependencies
20
+ * @kortyx/prompts bumped to 0.2.0
21
+
22
+ ## [0.16.0](https://github.com/kortyx-io/kortyx/compare/telemetry-contracts-v0.15.0...telemetry-contracts-v0.16.0) (2026-10-10)
23
+
24
+
25
+ ### Features
26
+
27
+ * version, evaluate, serve and migrate Studio prompts ([#288](https://github.com/kortyx-io/kortyx/issues/288)) ([0802f8b](https://github.com/kortyx-io/kortyx/commit/0802f8b91c4a541d176dd8a75c659063e2c28c8c))
28
+
29
+
30
+ ### Dependencies
31
+
32
+ * The following workspace dependencies were updated
33
+ * dependencies
34
+ * @kortyx/prompts bumped to 0.1.0
35
+
3
36
  ## [0.15.0](https://github.com/kortyx-io/kortyx/compare/telemetry-contracts-v0.14.0...telemetry-contracts-v0.15.0) (2026-10-08)
4
37
 
5
38
 
package/dist/index.d.ts CHANGED
@@ -517,6 +517,623 @@ declare const StudioToolSchema: z.ZodObject<{
517
517
  type WorkflowTool = z.infer<typeof WorkflowToolSchema>;
518
518
  type StudioTool = z.infer<typeof StudioToolSchema>;
519
519
 
520
+ declare const PromptCategorySchema: z.ZodObject<{
521
+ id: z.ZodUUID;
522
+ name: z.ZodString;
523
+ parentId: z.ZodNullable<z.ZodUUID>;
524
+ revision: z.ZodNumber;
525
+ }, z.core.$strip>;
526
+ declare const PromptGroupSchema: z.ZodObject<{
527
+ id: z.ZodUUID;
528
+ name: z.ZodString;
529
+ revision: z.ZodNumber;
530
+ members: z.ZodArray<z.ZodObject<{
531
+ promptId: z.ZodUUID;
532
+ version: z.ZodNumber;
533
+ key: z.ZodOptional<z.ZodString>;
534
+ name: z.ZodOptional<z.ZodString>;
535
+ archived: z.ZodOptional<z.ZodBoolean>;
536
+ }, z.core.$strip>>;
537
+ updatedAt: z.ZodString;
538
+ }, z.core.$strip>;
539
+ declare const PromptAssignmentSchema: z.ZodObject<{
540
+ tag: z.ZodString;
541
+ version: z.ZodNumber;
542
+ revision: z.ZodNumber;
543
+ updatedAt: z.ZodString;
544
+ }, z.core.$strip>;
545
+ declare const PromptAssetSchema: z.ZodObject<{
546
+ id: z.ZodUUID;
547
+ key: z.ZodString;
548
+ name: z.ZodString;
549
+ categoryId: z.ZodNullable<z.ZodUUID>;
550
+ latestVersion: z.ZodNumber;
551
+ revision: z.ZodNumber;
552
+ archived: z.ZodBoolean;
553
+ updatedAt: z.ZodString;
554
+ assignments: z.ZodArray<z.ZodObject<{
555
+ tag: z.ZodString;
556
+ version: z.ZodNumber;
557
+ revision: z.ZodNumber;
558
+ updatedAt: z.ZodString;
559
+ }, z.core.$strip>>;
560
+ }, z.core.$strip>;
561
+ declare const PromptLibrarySchema: z.ZodObject<{
562
+ schemaVersion: z.ZodLiteral<1>;
563
+ assets: z.ZodArray<z.ZodObject<{
564
+ id: z.ZodUUID;
565
+ key: z.ZodString;
566
+ name: z.ZodString;
567
+ categoryId: z.ZodNullable<z.ZodUUID>;
568
+ latestVersion: z.ZodNumber;
569
+ revision: z.ZodNumber;
570
+ archived: z.ZodBoolean;
571
+ updatedAt: z.ZodString;
572
+ assignments: z.ZodArray<z.ZodObject<{
573
+ tag: z.ZodString;
574
+ version: z.ZodNumber;
575
+ revision: z.ZodNumber;
576
+ updatedAt: z.ZodString;
577
+ }, z.core.$strip>>;
578
+ }, z.core.$strip>>;
579
+ categories: z.ZodArray<z.ZodObject<{
580
+ id: z.ZodUUID;
581
+ name: z.ZodString;
582
+ parentId: z.ZodNullable<z.ZodUUID>;
583
+ revision: z.ZodNumber;
584
+ }, z.core.$strip>>;
585
+ groups: z.ZodArray<z.ZodObject<{
586
+ id: z.ZodUUID;
587
+ name: z.ZodString;
588
+ revision: z.ZodNumber;
589
+ members: z.ZodArray<z.ZodObject<{
590
+ promptId: z.ZodUUID;
591
+ version: z.ZodNumber;
592
+ key: z.ZodOptional<z.ZodString>;
593
+ name: z.ZodOptional<z.ZodString>;
594
+ archived: z.ZodOptional<z.ZodBoolean>;
595
+ }, z.core.$strip>>;
596
+ updatedAt: z.ZodString;
597
+ }, z.core.$strip>>;
598
+ totalCount: z.ZodNumber;
599
+ nextCursor: z.ZodNullable<z.ZodString>;
600
+ permissions: z.ZodObject<{
601
+ edit: z.ZodBoolean;
602
+ promote: z.ZodBoolean;
603
+ review: z.ZodBoolean;
604
+ settings: z.ZodBoolean;
605
+ }, z.core.$strip>;
606
+ }, z.core.$strip>;
607
+ declare const PromptStoredVersionSchema: z.ZodObject<{
608
+ id: z.ZodString;
609
+ version: z.ZodNumber;
610
+ hash: z.ZodString;
611
+ content: z.ZodObject<{
612
+ format: z.ZodEnum<{
613
+ "system-user": "system-user";
614
+ chat: "chat";
615
+ }>;
616
+ messages: z.ZodArray<z.ZodObject<{
617
+ role: z.ZodEnum<{
618
+ system: "system";
619
+ user: "user";
620
+ assistant: "assistant";
621
+ }>;
622
+ content: z.ZodString;
623
+ }, z.core.$strict>>;
624
+ variablesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
625
+ configSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
626
+ config: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
627
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
628
+ id: z.ZodString;
629
+ version: z.ZodNumber;
630
+ hash: z.ZodString;
631
+ }, z.core.$strict>>>;
632
+ }, z.core.$strict>;
633
+ promptId: z.ZodUUID;
634
+ note: z.ZodString;
635
+ author: z.ZodString;
636
+ createdAt: z.ZodString;
637
+ origin: z.ZodNullable<z.ZodObject<{
638
+ apiUrl: z.ZodString;
639
+ projectId: z.ZodString;
640
+ key: z.ZodString;
641
+ version: z.ZodNumber;
642
+ hash: z.ZodString;
643
+ }, z.core.$strip>>;
644
+ }, z.core.$strip>;
645
+ declare const PromptPolicySchema: z.ZodObject<{
646
+ revision: z.ZodNumber;
647
+ requireTest: z.ZodBoolean;
648
+ requireChangeNote: z.ZodDefault<z.ZodBoolean>;
649
+ requiredSuites: z.ZodArray<z.ZodObject<{
650
+ targetId: z.ZodString;
651
+ suiteId: z.ZodString;
652
+ }, z.core.$strip>>;
653
+ requiredReviews: z.ZodNumber;
654
+ allowException: z.ZodBoolean;
655
+ }, z.core.$strip>;
656
+ declare const PromptEvidenceSchema: z.ZodObject<{
657
+ environment: z.ZodString;
658
+ runId: z.ZodString;
659
+ evaluationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ targetId: z.ZodString;
661
+ suiteId: z.ZodString;
662
+ suiteRevision: z.ZodOptional<z.ZodString>;
663
+ status: z.ZodString;
664
+ version: z.ZodNumber;
665
+ fullSuite: z.ZodBoolean;
666
+ usage: z.ZodEnum<{
667
+ pending: "pending";
668
+ verified: "verified";
669
+ "not-used": "not-used";
670
+ mismatch: "mismatch";
671
+ "context-differs": "context-differs";
672
+ }>;
673
+ groupName: z.ZodNullable<z.ZodString>;
674
+ createdAt: z.ZodString;
675
+ companions: z.ZodArray<z.ZodObject<{
676
+ key: z.ZodString;
677
+ version: z.ZodNumber;
678
+ }, z.core.$strip>>;
679
+ }, z.core.$strip>;
680
+ declare const PromptUsageSchema: z.ZodObject<{
681
+ eventId: z.ZodString;
682
+ runId: z.ZodString;
683
+ sessionId: z.ZodNullable<z.ZodString>;
684
+ nodeId: z.ZodNullable<z.ZodString>;
685
+ version: z.ZodNumber;
686
+ hash: z.ZodNullable<z.ZodString>;
687
+ source: z.ZodNullable<z.ZodString>;
688
+ model: z.ZodNullable<z.ZodString>;
689
+ environment: z.ZodString;
690
+ occurredAt: z.ZodString;
691
+ captured: z.ZodBoolean;
692
+ }, z.core.$strip>;
693
+ declare const PromptDetailSchema: z.ZodObject<{
694
+ asset: z.ZodObject<{
695
+ id: z.ZodUUID;
696
+ key: z.ZodString;
697
+ name: z.ZodString;
698
+ categoryId: z.ZodNullable<z.ZodUUID>;
699
+ latestVersion: z.ZodNumber;
700
+ revision: z.ZodNumber;
701
+ archived: z.ZodBoolean;
702
+ updatedAt: z.ZodString;
703
+ assignments: z.ZodArray<z.ZodObject<{
704
+ tag: z.ZodString;
705
+ version: z.ZodNumber;
706
+ revision: z.ZodNumber;
707
+ updatedAt: z.ZodString;
708
+ }, z.core.$strip>>;
709
+ }, z.core.$strip>;
710
+ versions: z.ZodArray<z.ZodObject<{
711
+ id: z.ZodString;
712
+ version: z.ZodNumber;
713
+ hash: z.ZodString;
714
+ content: z.ZodObject<{
715
+ format: z.ZodEnum<{
716
+ "system-user": "system-user";
717
+ chat: "chat";
718
+ }>;
719
+ messages: z.ZodArray<z.ZodObject<{
720
+ role: z.ZodEnum<{
721
+ system: "system";
722
+ user: "user";
723
+ assistant: "assistant";
724
+ }>;
725
+ content: z.ZodString;
726
+ }, z.core.$strict>>;
727
+ variablesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
728
+ configSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
729
+ config: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
730
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
731
+ id: z.ZodString;
732
+ version: z.ZodNumber;
733
+ hash: z.ZodString;
734
+ }, z.core.$strict>>>;
735
+ }, z.core.$strict>;
736
+ promptId: z.ZodUUID;
737
+ note: z.ZodString;
738
+ author: z.ZodString;
739
+ createdAt: z.ZodString;
740
+ origin: z.ZodNullable<z.ZodObject<{
741
+ apiUrl: z.ZodString;
742
+ projectId: z.ZodString;
743
+ key: z.ZodString;
744
+ version: z.ZodNumber;
745
+ hash: z.ZodString;
746
+ }, z.core.$strip>>;
747
+ }, z.core.$strip>>;
748
+ versionsNextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ draft: z.ZodNullable<z.ZodObject<{
750
+ format: z.ZodEnum<{
751
+ "system-user": "system-user";
752
+ chat: "chat";
753
+ }>;
754
+ messages: z.ZodArray<z.ZodObject<{
755
+ role: z.ZodEnum<{
756
+ system: "system";
757
+ user: "user";
758
+ assistant: "assistant";
759
+ }>;
760
+ content: z.ZodString;
761
+ }, z.core.$strict>>;
762
+ variablesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
763
+ configSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
764
+ config: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
765
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
766
+ id: z.ZodString;
767
+ version: z.ZodNumber;
768
+ hash: z.ZodString;
769
+ }, z.core.$strict>>>;
770
+ }, z.core.$strict>>;
771
+ draftBase: z.ZodNullable<z.ZodNumber>;
772
+ draftRevision: z.ZodNumber;
773
+ evidence: z.ZodArray<z.ZodObject<{
774
+ environment: z.ZodString;
775
+ runId: z.ZodString;
776
+ evaluationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
+ targetId: z.ZodString;
778
+ suiteId: z.ZodString;
779
+ suiteRevision: z.ZodOptional<z.ZodString>;
780
+ status: z.ZodString;
781
+ version: z.ZodNumber;
782
+ fullSuite: z.ZodBoolean;
783
+ usage: z.ZodEnum<{
784
+ pending: "pending";
785
+ verified: "verified";
786
+ "not-used": "not-used";
787
+ mismatch: "mismatch";
788
+ "context-differs": "context-differs";
789
+ }>;
790
+ groupName: z.ZodNullable<z.ZodString>;
791
+ createdAt: z.ZodString;
792
+ companions: z.ZodArray<z.ZodObject<{
793
+ key: z.ZodString;
794
+ version: z.ZodNumber;
795
+ }, z.core.$strip>>;
796
+ }, z.core.$strip>>;
797
+ usage: z.ZodArray<z.ZodObject<{
798
+ eventId: z.ZodString;
799
+ runId: z.ZodString;
800
+ sessionId: z.ZodNullable<z.ZodString>;
801
+ nodeId: z.ZodNullable<z.ZodString>;
802
+ version: z.ZodNumber;
803
+ hash: z.ZodNullable<z.ZodString>;
804
+ source: z.ZodNullable<z.ZodString>;
805
+ model: z.ZodNullable<z.ZodString>;
806
+ environment: z.ZodString;
807
+ occurredAt: z.ZodString;
808
+ captured: z.ZodBoolean;
809
+ }, z.core.$strip>>;
810
+ activity: z.ZodArray<z.ZodObject<{
811
+ id: z.ZodString;
812
+ action: z.ZodString;
813
+ actor: z.ZodString;
814
+ details: z.ZodRecord<z.ZodString, z.ZodUnknown>;
815
+ createdAt: z.ZodString;
816
+ }, z.core.$strip>>;
817
+ policies: z.ZodArray<z.ZodObject<{
818
+ revision: z.ZodNumber;
819
+ requireTest: z.ZodBoolean;
820
+ requireChangeNote: z.ZodDefault<z.ZodBoolean>;
821
+ requiredSuites: z.ZodArray<z.ZodObject<{
822
+ targetId: z.ZodString;
823
+ suiteId: z.ZodString;
824
+ }, z.core.$strip>>;
825
+ requiredReviews: z.ZodNumber;
826
+ allowException: z.ZodBoolean;
827
+ }, z.core.$strip>>;
828
+ reviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
829
+ version: z.ZodNumber;
830
+ hash: z.ZodString;
831
+ independent: z.ZodBoolean;
832
+ reviewer: z.ZodString;
833
+ note: z.ZodString;
834
+ createdAt: z.ZodString;
835
+ }, z.core.$strip>>>;
836
+ }, z.core.$strip>;
837
+ declare const PromptMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
838
+ action: z.ZodLiteral<"tag-set">;
839
+ id: z.ZodUUID;
840
+ tag: z.ZodString;
841
+ version: z.ZodNumber;
842
+ expectedRevision: z.ZodNumber;
843
+ }, z.core.$strict>, z.ZodObject<{
844
+ action: z.ZodLiteral<"tag-remove">;
845
+ id: z.ZodUUID;
846
+ tag: z.ZodString;
847
+ expectedRevision: z.ZodNumber;
848
+ }, z.core.$strict>, z.ZodObject<{
849
+ action: z.ZodLiteral<"bulk-update">;
850
+ assets: z.ZodArray<z.ZodObject<{
851
+ id: z.ZodUUID;
852
+ expectedRevision: z.ZodNumber;
853
+ }, z.core.$strip>>;
854
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
855
+ archived: z.ZodOptional<z.ZodBoolean>;
856
+ }, z.core.$strict>, z.ZodObject<{
857
+ action: z.ZodLiteral<"create">;
858
+ key: z.ZodString;
859
+ name: z.ZodString;
860
+ categoryId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
861
+ content: z.ZodObject<{
862
+ format: z.ZodEnum<{
863
+ "system-user": "system-user";
864
+ chat: "chat";
865
+ }>;
866
+ messages: z.ZodArray<z.ZodObject<{
867
+ role: z.ZodEnum<{
868
+ system: "system";
869
+ user: "user";
870
+ assistant: "assistant";
871
+ }>;
872
+ content: z.ZodString;
873
+ }, z.core.$strict>>;
874
+ variablesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
875
+ configSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
876
+ config: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
877
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
878
+ id: z.ZodString;
879
+ version: z.ZodNumber;
880
+ hash: z.ZodString;
881
+ }, z.core.$strict>>>;
882
+ }, z.core.$strict>;
883
+ note: z.ZodDefault<z.ZodString>;
884
+ idempotencyKey: z.ZodOptional<z.ZodUUID>;
885
+ }, z.core.$strict>, z.ZodObject<{
886
+ action: z.ZodLiteral<"draft">;
887
+ id: z.ZodUUID;
888
+ content: z.ZodObject<{
889
+ format: z.ZodEnum<{
890
+ "system-user": "system-user";
891
+ chat: "chat";
892
+ }>;
893
+ messages: z.ZodArray<z.ZodObject<{
894
+ role: z.ZodEnum<{
895
+ system: "system";
896
+ user: "user";
897
+ assistant: "assistant";
898
+ }>;
899
+ content: z.ZodString;
900
+ }, z.core.$strict>>;
901
+ variablesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
902
+ configSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
903
+ config: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
904
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
905
+ id: z.ZodString;
906
+ version: z.ZodNumber;
907
+ hash: z.ZodString;
908
+ }, z.core.$strict>>>;
909
+ }, z.core.$strict>;
910
+ baseVersion: z.ZodNumber;
911
+ expectedRevision: z.ZodNumber;
912
+ }, z.core.$strict>, z.ZodObject<{
913
+ action: z.ZodLiteral<"discard-draft">;
914
+ id: z.ZodUUID;
915
+ expectedRevision: z.ZodNumber;
916
+ }, z.core.$strict>, z.ZodObject<{
917
+ action: z.ZodLiteral<"save">;
918
+ id: z.ZodUUID;
919
+ content: z.ZodObject<{
920
+ format: z.ZodEnum<{
921
+ "system-user": "system-user";
922
+ chat: "chat";
923
+ }>;
924
+ messages: z.ZodArray<z.ZodObject<{
925
+ role: z.ZodEnum<{
926
+ system: "system";
927
+ user: "user";
928
+ assistant: "assistant";
929
+ }>;
930
+ content: z.ZodString;
931
+ }, z.core.$strict>>;
932
+ variablesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
933
+ configSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
934
+ config: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
935
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
936
+ id: z.ZodString;
937
+ version: z.ZodNumber;
938
+ hash: z.ZodString;
939
+ }, z.core.$strict>>>;
940
+ }, z.core.$strict>;
941
+ baseVersion: z.ZodNumber;
942
+ expectedHash: z.ZodString;
943
+ expectedDraftRevision: z.ZodOptional<z.ZodNumber>;
944
+ note: z.ZodDefault<z.ZodString>;
945
+ idempotencyKey: z.ZodUUID;
946
+ }, z.core.$strict>, z.ZodObject<{
947
+ action: z.ZodLiteral<"update">;
948
+ id: z.ZodUUID;
949
+ expectedRevision: z.ZodNumber;
950
+ name: z.ZodOptional<z.ZodString>;
951
+ categoryId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
952
+ archived: z.ZodOptional<z.ZodBoolean>;
953
+ }, z.core.$strict>, z.ZodObject<{
954
+ action: z.ZodLiteral<"category-create">;
955
+ path: z.ZodString;
956
+ }, z.core.$strict>, z.ZodObject<{
957
+ action: z.ZodLiteral<"category-update">;
958
+ id: z.ZodUUID;
959
+ expectedRevision: z.ZodNumber;
960
+ name: z.ZodOptional<z.ZodString>;
961
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
962
+ }, z.core.$strict>, z.ZodObject<{
963
+ action: z.ZodLiteral<"category-delete">;
964
+ id: z.ZodUUID;
965
+ expectedRevision: z.ZodNumber;
966
+ destinationId: z.ZodNullable<z.ZodUUID>;
967
+ }, z.core.$strict>, z.ZodObject<{
968
+ action: z.ZodLiteral<"group-create">;
969
+ name: z.ZodString;
970
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
971
+ promptId: z.ZodUUID;
972
+ version: z.ZodNumber;
973
+ }, z.core.$strip>>>;
974
+ }, z.core.$strict>, z.ZodObject<{
975
+ action: z.ZodLiteral<"group-update">;
976
+ id: z.ZodUUID;
977
+ expectedRevision: z.ZodNumber;
978
+ name: z.ZodOptional<z.ZodString>;
979
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
980
+ promptId: z.ZodUUID;
981
+ version: z.ZodNumber;
982
+ }, z.core.$strip>>>;
983
+ }, z.core.$strict>, z.ZodObject<{
984
+ action: z.ZodLiteral<"group-delete">;
985
+ id: z.ZodUUID;
986
+ expectedRevision: z.ZodNumber;
987
+ }, z.core.$strict>, z.ZodObject<{
988
+ action: z.ZodLiteral<"promote">;
989
+ id: z.ZodUUID;
990
+ version: z.ZodNumber;
991
+ expectedRevision: z.ZodNumber;
992
+ exceptionReason: z.ZodOptional<z.ZodString>;
993
+ rollback: z.ZodDefault<z.ZodBoolean>;
994
+ }, z.core.$strict>, z.ZodObject<{
995
+ action: z.ZodLiteral<"review">;
996
+ id: z.ZodUUID;
997
+ version: z.ZodNumber;
998
+ note: z.ZodString;
999
+ }, z.core.$strict>, z.ZodObject<{
1000
+ action: z.ZodLiteral<"policy">;
1001
+ id: z.ZodUUID;
1002
+ policy: z.ZodObject<{
1003
+ revision: z.ZodNumber;
1004
+ requireTest: z.ZodBoolean;
1005
+ requireChangeNote: z.ZodDefault<z.ZodBoolean>;
1006
+ requiredSuites: z.ZodArray<z.ZodObject<{
1007
+ targetId: z.ZodString;
1008
+ suiteId: z.ZodString;
1009
+ }, z.core.$strip>>;
1010
+ requiredReviews: z.ZodNumber;
1011
+ allowException: z.ZodBoolean;
1012
+ }, z.core.$strip>;
1013
+ }, z.core.$strict>], "action">;
1014
+ type PromptLibrary = z.infer<typeof PromptLibrarySchema>;
1015
+ type PromptDetail = z.infer<typeof PromptDetailSchema>;
1016
+ type PromptMutation = z.input<typeof PromptMutationSchema>;
1017
+ type PromptCategory = z.infer<typeof PromptCategorySchema>;
1018
+ type PromptGroup = z.infer<typeof PromptGroupSchema>;
1019
+ type PromptEvidence = z.infer<typeof PromptEvidenceSchema>;
1020
+ declare const PromptSelectionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1021
+ type: z.ZodLiteral<"live">;
1022
+ }, z.core.$strict>, z.ZodObject<{
1023
+ type: z.ZodLiteral<"single">;
1024
+ id: z.ZodString;
1025
+ version: z.ZodNumber;
1026
+ }, z.core.$strict>, z.ZodObject<{
1027
+ type: z.ZodLiteral<"group">;
1028
+ groupId: z.ZodUUID;
1029
+ }, z.core.$strict>], "type">;
1030
+ type PromptSelection = z.infer<typeof PromptSelectionSchema>;
1031
+ declare const PromptBundleSchema: z.ZodObject<{
1032
+ schemaVersion: z.ZodLiteral<1>;
1033
+ origin: z.ZodObject<{
1034
+ apiUrl: z.ZodURL;
1035
+ projectId: z.ZodString;
1036
+ }, z.core.$strict>;
1037
+ prompts: z.ZodArray<z.ZodObject<{
1038
+ key: z.ZodString;
1039
+ name: z.ZodString;
1040
+ categoryPath: z.ZodOptional<z.ZodString>;
1041
+ versions: z.ZodArray<z.ZodObject<{
1042
+ id: z.ZodString;
1043
+ version: z.ZodNumber;
1044
+ hash: z.ZodString;
1045
+ content: z.ZodObject<{
1046
+ format: z.ZodEnum<{
1047
+ "system-user": "system-user";
1048
+ chat: "chat";
1049
+ }>;
1050
+ messages: z.ZodArray<z.ZodObject<{
1051
+ role: z.ZodEnum<{
1052
+ system: "system";
1053
+ user: "user";
1054
+ assistant: "assistant";
1055
+ }>;
1056
+ content: z.ZodString;
1057
+ }, z.core.$strict>>;
1058
+ variablesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1059
+ configSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1060
+ config: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1061
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1062
+ id: z.ZodString;
1063
+ version: z.ZodNumber;
1064
+ hash: z.ZodString;
1065
+ }, z.core.$strict>>>;
1066
+ }, z.core.$strict>;
1067
+ note: z.ZodString;
1068
+ }, z.core.$strip>>;
1069
+ }, z.core.$strict>>;
1070
+ groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
1071
+ name: z.ZodString;
1072
+ members: z.ZodArray<z.ZodObject<{
1073
+ key: z.ZodString;
1074
+ version: z.ZodNumber;
1075
+ }, z.core.$strip>>;
1076
+ }, z.core.$strict>>>;
1077
+ }, z.core.$strict>;
1078
+ declare const PromptTransferRequestSchema: z.ZodObject<{
1079
+ bundle: z.ZodObject<{
1080
+ schemaVersion: z.ZodLiteral<1>;
1081
+ origin: z.ZodObject<{
1082
+ apiUrl: z.ZodURL;
1083
+ projectId: z.ZodString;
1084
+ }, z.core.$strict>;
1085
+ prompts: z.ZodArray<z.ZodObject<{
1086
+ key: z.ZodString;
1087
+ name: z.ZodString;
1088
+ categoryPath: z.ZodOptional<z.ZodString>;
1089
+ versions: z.ZodArray<z.ZodObject<{
1090
+ id: z.ZodString;
1091
+ version: z.ZodNumber;
1092
+ hash: z.ZodString;
1093
+ content: z.ZodObject<{
1094
+ format: z.ZodEnum<{
1095
+ "system-user": "system-user";
1096
+ chat: "chat";
1097
+ }>;
1098
+ messages: z.ZodArray<z.ZodObject<{
1099
+ role: z.ZodEnum<{
1100
+ system: "system";
1101
+ user: "user";
1102
+ assistant: "assistant";
1103
+ }>;
1104
+ content: z.ZodString;
1105
+ }, z.core.$strict>>;
1106
+ variablesSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1107
+ configSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1108
+ config: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
1109
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodObject<{
1110
+ id: z.ZodString;
1111
+ version: z.ZodNumber;
1112
+ hash: z.ZodString;
1113
+ }, z.core.$strict>>>;
1114
+ }, z.core.$strict>;
1115
+ note: z.ZodString;
1116
+ }, z.core.$strip>>;
1117
+ }, z.core.$strict>>;
1118
+ groups: z.ZodDefault<z.ZodArray<z.ZodObject<{
1119
+ name: z.ZodString;
1120
+ members: z.ZodArray<z.ZodObject<{
1121
+ key: z.ZodString;
1122
+ version: z.ZodNumber;
1123
+ }, z.core.$strip>>;
1124
+ }, z.core.$strict>>>;
1125
+ }, z.core.$strict>;
1126
+ conflicts: z.ZodDefault<z.ZodEnum<{
1127
+ error: "error";
1128
+ append: "append";
1129
+ }>>;
1130
+ rename: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1131
+ categories: z.ZodDefault<z.ZodBoolean>;
1132
+ groups: z.ZodDefault<z.ZodBoolean>;
1133
+ }, z.core.$strict>;
1134
+ type PromptBundle = z.infer<typeof PromptBundleSchema>;
1135
+ type PromptTransferRequest = z.infer<typeof PromptTransferRequestSchema>;
1136
+
520
1137
  declare const StudioReleaseVersionSchema: z.ZodString;
521
1138
  declare const StudioReleaseDeploymentSchema: z.ZodObject<{
522
1139
  strategy: z.ZodEnum<{
@@ -2880,4 +3497,4 @@ type StudioWorkflowsResponse = z.infer<typeof StudioWorkflowsResponseSchema>;
2880
3497
  type StudioCatalogsResponse = z.infer<typeof StudioCatalogsResponseSchema>;
2881
3498
  type StudioContextResponse = z.infer<typeof StudioContextResponseSchema>;
2882
3499
 
2883
- export { ClearScoreResponseSchema, ClearUserFeedbackRequestSchema, DIAGNOSTIC_LIMITS, type DiagnosticContent, DiagnosticContentSchema, DiagnosticCorrelationSchema, type DiagnosticManifest, DiagnosticManifestSchema, type DiagnosticNote, DiagnosticNoteSchema, DiagnosticPartSchema, type DiagnosticResponse, DiagnosticResponseSchema, type EnsureWorkflowTopologyRequest, EnsureWorkflowTopologyRequestSchema, type EnsureWorkflowTopologyResponse, EnsureWorkflowTopologyResponseSchema, FEEDBACK_FILTERS, FeedbackReasonSchema, type FeedbackSummary, FeedbackSummarySchema, type KortyxTelemetryEvent, type KortyxTelemetryEventType, type KortyxTelemetryService, type KortyxWorkflowTopologyEdge, type KortyxWorkflowTopologyNode, type KortyxWorkflowTopologyTransition, ReviewVerdictSchema, STUDIO_API_PROTOCOL_VERSION, STUDIO_TIME_RANGES, type StudioCatalogsResponse, StudioCatalogsResponseSchema, type StudioChange, type StudioChangeResource, StudioChangeResourceSchema, StudioChangeSchema, type StudioContextResponse, StudioContextResponseSchema, type StudioDetailEvent, StudioDetailEventSchema, type StudioInterrupt, type StudioInterruptDetailResponse, StudioInterruptDetailResponseSchema, type StudioInterruptInteractionMode, StudioInterruptInteractionModeSchema, type StudioInterruptOption, StudioInterruptOptionSchema, StudioInterruptSchema, type StudioInterruptStatus, StudioInterruptStatusSchema, type StudioInterruptType, StudioInterruptTypeSchema, StudioInterruptValueSchema, type StudioInterruptsResponse, StudioInterruptsResponseSchema, type StudioMetric, StudioMetricSchema, type StudioPricingSource, StudioPricingSourceSchema, type StudioPricingStatus, StudioPricingStatusSchema, type StudioRelease, StudioReleaseDeploymentSchema, StudioReleaseSchema, StudioReleaseVersionSchema, type StudioResumeOutcome, StudioResumeOutcomeSchema, type StudioReviewRequest, StudioReviewRequestSchema, type StudioRun, type StudioRunDetailResponse, StudioRunDetailResponseSchema, StudioRunSchema, type StudioRunStatus, StudioRunStatusSchema, type StudioRunsResponse, StudioRunsResponseSchema, type StudioScore, StudioScoreResponseSchema, StudioScoreSchema, type StudioSession, type StudioSessionDetailResponse, StudioSessionDetailResponseSchema, StudioSessionSchema, type StudioSessionsResponse, StudioSessionsResponseSchema, type StudioTimeRange, type StudioTimeRangeContext, StudioTimeRangeContextSchema, StudioTimeRangeQuerySchema, type StudioTimeRangeResolution, StudioTimeRangeSchema, type StudioTool, StudioToolSchema, type StudioUpdateOperation, StudioUpdateOperationSchema, type StudioUpdateSettings, StudioUpdateSettingsSchema, type StudioUpdateStatus, StudioUpdateStatusSchema, type StudioWorkflow, type StudioWorkflowCall, type StudioWorkflowHealth, StudioWorkflowHealthSchema, type StudioWorkflowInternalEdge, StudioWorkflowInternalEdgeSchema, type StudioWorkflowNode, StudioWorkflowNodeSchema, StudioWorkflowSchema, type StudioWorkflowTransition, StudioWorkflowTransitionSchema, type StudioWorkflowsResponse, StudioWorkflowsResponseSchema, TELEMETRY_EVENT_TYPES, type TelemetryEventBatch, type TelemetryEventBatchResponse, TelemetryEventBatchResponseSchema, TelemetryEventBatchSchema, TelemetryEventSchema, TelemetryEventTypeSchema, type TelemetryPricingHint, TelemetryPricingHintSchema, type TelemetryPricingLineItem, TelemetryPricingLineItemSchema, type TelemetryPricingSource, TelemetryPricingSourceSchema, type TelemetryPricingUnit, TelemetryPricingUnitSchema, type TelemetryPricingUsageType, TelemetryPricingUsageTypeSchema, TelemetryServiceSchema, type TelemetryUnitPrice, TelemetryUnitPriceSchema, type TelemetryUsageItem, TelemetryUsageItemSchema, ToolDiscoverySchema, ToolObservationSchema, ToolOutcomeSchema, type UserFeedbackRequest, UserFeedbackRequestSchema, type WorkflowTool, WorkflowToolSchema, WorkflowTopologyCallSchema, WorkflowTopologyEdgeSchema, WorkflowTopologyNodeSchema, WorkflowTopologyTransitionSchema, isPrivateDiagnosticField, newerStudioVersion, projectWorkflowCalls, redactDiagnosticContent, redactDiagnosticText, resolveStudioInterruptStatus, resolveStudioTimeRange, studioUpdateRunning, summarizeDiagnostic, summarizeUserFeedback };
3500
+ export { ClearScoreResponseSchema, ClearUserFeedbackRequestSchema, DIAGNOSTIC_LIMITS, type DiagnosticContent, DiagnosticContentSchema, DiagnosticCorrelationSchema, type DiagnosticManifest, DiagnosticManifestSchema, type DiagnosticNote, DiagnosticNoteSchema, DiagnosticPartSchema, type DiagnosticResponse, DiagnosticResponseSchema, type EnsureWorkflowTopologyRequest, EnsureWorkflowTopologyRequestSchema, type EnsureWorkflowTopologyResponse, EnsureWorkflowTopologyResponseSchema, FEEDBACK_FILTERS, FeedbackReasonSchema, type FeedbackSummary, FeedbackSummarySchema, type KortyxTelemetryEvent, type KortyxTelemetryEventType, type KortyxTelemetryService, type KortyxWorkflowTopologyEdge, type KortyxWorkflowTopologyNode, type KortyxWorkflowTopologyTransition, PromptAssetSchema, PromptAssignmentSchema, type PromptBundle, PromptBundleSchema, type PromptCategory, PromptCategorySchema, type PromptDetail, PromptDetailSchema, type PromptEvidence, PromptEvidenceSchema, type PromptGroup, PromptGroupSchema, type PromptLibrary, PromptLibrarySchema, type PromptMutation, PromptMutationSchema, PromptPolicySchema, type PromptSelection, PromptSelectionSchema, PromptStoredVersionSchema, type PromptTransferRequest, PromptTransferRequestSchema, PromptUsageSchema, ReviewVerdictSchema, STUDIO_API_PROTOCOL_VERSION, STUDIO_TIME_RANGES, type StudioCatalogsResponse, StudioCatalogsResponseSchema, type StudioChange, type StudioChangeResource, StudioChangeResourceSchema, StudioChangeSchema, type StudioContextResponse, StudioContextResponseSchema, type StudioDetailEvent, StudioDetailEventSchema, type StudioInterrupt, type StudioInterruptDetailResponse, StudioInterruptDetailResponseSchema, type StudioInterruptInteractionMode, StudioInterruptInteractionModeSchema, type StudioInterruptOption, StudioInterruptOptionSchema, StudioInterruptSchema, type StudioInterruptStatus, StudioInterruptStatusSchema, type StudioInterruptType, StudioInterruptTypeSchema, StudioInterruptValueSchema, type StudioInterruptsResponse, StudioInterruptsResponseSchema, type StudioMetric, StudioMetricSchema, type StudioPricingSource, StudioPricingSourceSchema, type StudioPricingStatus, StudioPricingStatusSchema, type StudioRelease, StudioReleaseDeploymentSchema, StudioReleaseSchema, StudioReleaseVersionSchema, type StudioResumeOutcome, StudioResumeOutcomeSchema, type StudioReviewRequest, StudioReviewRequestSchema, type StudioRun, type StudioRunDetailResponse, StudioRunDetailResponseSchema, StudioRunSchema, type StudioRunStatus, StudioRunStatusSchema, type StudioRunsResponse, StudioRunsResponseSchema, type StudioScore, StudioScoreResponseSchema, StudioScoreSchema, type StudioSession, type StudioSessionDetailResponse, StudioSessionDetailResponseSchema, StudioSessionSchema, type StudioSessionsResponse, StudioSessionsResponseSchema, type StudioTimeRange, type StudioTimeRangeContext, StudioTimeRangeContextSchema, StudioTimeRangeQuerySchema, type StudioTimeRangeResolution, StudioTimeRangeSchema, type StudioTool, StudioToolSchema, type StudioUpdateOperation, StudioUpdateOperationSchema, type StudioUpdateSettings, StudioUpdateSettingsSchema, type StudioUpdateStatus, StudioUpdateStatusSchema, type StudioWorkflow, type StudioWorkflowCall, type StudioWorkflowHealth, StudioWorkflowHealthSchema, type StudioWorkflowInternalEdge, StudioWorkflowInternalEdgeSchema, type StudioWorkflowNode, StudioWorkflowNodeSchema, StudioWorkflowSchema, type StudioWorkflowTransition, StudioWorkflowTransitionSchema, type StudioWorkflowsResponse, StudioWorkflowsResponseSchema, TELEMETRY_EVENT_TYPES, type TelemetryEventBatch, type TelemetryEventBatchResponse, TelemetryEventBatchResponseSchema, TelemetryEventBatchSchema, TelemetryEventSchema, TelemetryEventTypeSchema, type TelemetryPricingHint, TelemetryPricingHintSchema, type TelemetryPricingLineItem, TelemetryPricingLineItemSchema, type TelemetryPricingSource, TelemetryPricingSourceSchema, type TelemetryPricingUnit, TelemetryPricingUnitSchema, type TelemetryPricingUsageType, TelemetryPricingUsageTypeSchema, TelemetryServiceSchema, type TelemetryUnitPrice, TelemetryUnitPriceSchema, type TelemetryUsageItem, TelemetryUsageItemSchema, ToolDiscoverySchema, ToolObservationSchema, ToolOutcomeSchema, type UserFeedbackRequest, UserFeedbackRequestSchema, type WorkflowTool, WorkflowToolSchema, WorkflowTopologyCallSchema, WorkflowTopologyEdgeSchema, WorkflowTopologyNodeSchema, WorkflowTopologyTransitionSchema, isPrivateDiagnosticField, newerStudioVersion, projectWorkflowCalls, redactDiagnosticContent, redactDiagnosticText, resolveStudioInterruptStatus, resolveStudioTimeRange, studioUpdateRunning, summarizeDiagnostic, summarizeUserFeedback };