braintrust 3.26.0 → 3.28.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.
Files changed (61) hide show
  1. package/dev/dist/index.d.mts +519 -186
  2. package/dev/dist/index.d.ts +519 -186
  3. package/dev/dist/index.js +3727 -1526
  4. package/dev/dist/index.mjs +2815 -614
  5. package/dist/apply-auto-instrumentation.js +372 -261
  6. package/dist/apply-auto-instrumentation.mjs +171 -60
  7. package/dist/auto-instrumentations/bundler/esbuild.cjs +458 -61
  8. package/dist/auto-instrumentations/bundler/esbuild.mjs +5 -4
  9. package/dist/auto-instrumentations/bundler/next.cjs +460 -63
  10. package/dist/auto-instrumentations/bundler/next.mjs +6 -5
  11. package/dist/auto-instrumentations/bundler/rollup.cjs +458 -61
  12. package/dist/auto-instrumentations/bundler/rollup.mjs +5 -4
  13. package/dist/auto-instrumentations/bundler/vite.cjs +487 -62
  14. package/dist/auto-instrumentations/bundler/vite.mjs +34 -5
  15. package/dist/auto-instrumentations/bundler/webpack-loader.cjs +444 -61
  16. package/dist/auto-instrumentations/bundler/webpack.cjs +458 -61
  17. package/dist/auto-instrumentations/bundler/webpack.mjs +6 -5
  18. package/dist/auto-instrumentations/{chunk-6E22MYSW.mjs → chunk-26PKVUKB.mjs} +109 -5
  19. package/dist/auto-instrumentations/{chunk-AKKPLXTP.mjs → chunk-2AMDGD65.mjs} +160 -57
  20. package/dist/auto-instrumentations/{chunk-V5LEODRX.mjs → chunk-HD35AM3M.mjs} +1 -1
  21. package/dist/auto-instrumentations/{chunk-XYN63IG5.mjs → chunk-I55G56ZL.mjs} +21 -58
  22. package/dist/auto-instrumentations/{chunk-NRE4QUQR.mjs → chunk-JPUFNW7X.mjs} +140 -0
  23. package/dist/auto-instrumentations/{chunk-XZHHE4Y3.mjs → chunk-NP7V4XB2.mjs} +157 -3
  24. package/dist/auto-instrumentations/hook.mjs +396 -32
  25. package/dist/auto-instrumentations/index.cjs +298 -2
  26. package/dist/auto-instrumentations/index.d.mts +5 -1
  27. package/dist/auto-instrumentations/index.d.ts +5 -1
  28. package/dist/auto-instrumentations/index.mjs +6 -2
  29. package/dist/auto-instrumentations/loader/cjs-patch.cjs +105 -57
  30. package/dist/auto-instrumentations/loader/cjs-patch.mjs +2 -2
  31. package/dist/auto-instrumentations/loader/esm-hook.mjs +1 -1
  32. package/dist/browser.d.mts +683 -56
  33. package/dist/browser.d.ts +683 -56
  34. package/dist/browser.js +4242 -655
  35. package/dist/browser.mjs +4242 -655
  36. package/dist/{chunk-VYNNEKSA.js → chunk-BBE7SNRV.js} +248 -10
  37. package/dist/{chunk-VRZZQPAA.js → chunk-OBBWQW6K.js} +3351 -1392
  38. package/dist/{chunk-XIZOM2HO.mjs → chunk-UPFNQCGB.mjs} +2419 -460
  39. package/dist/{chunk-PN7EWK66.mjs → chunk-ZHUHZWFY.mjs} +241 -3
  40. package/dist/cli.js +2867 -668
  41. package/dist/edge-light.d.mts +1 -1
  42. package/dist/edge-light.d.ts +1 -1
  43. package/dist/edge-light.js +4242 -655
  44. package/dist/edge-light.mjs +4242 -655
  45. package/dist/index.d.mts +1267 -640
  46. package/dist/index.d.ts +1267 -640
  47. package/dist/index.js +2107 -630
  48. package/dist/index.mjs +1649 -172
  49. package/dist/instrumentation/index.d.mts +198 -6
  50. package/dist/instrumentation/index.d.ts +198 -6
  51. package/dist/instrumentation/index.js +2661 -581
  52. package/dist/instrumentation/index.mjs +2661 -581
  53. package/dist/vitest-evals-reporter.js +45 -43
  54. package/dist/vitest-evals-reporter.mjs +5 -3
  55. package/dist/workerd.d.mts +1 -1
  56. package/dist/workerd.d.ts +1 -1
  57. package/dist/workerd.js +4242 -655
  58. package/dist/workerd.mjs +4242 -655
  59. package/package.json +2 -3
  60. package/util/dist/index.d.mts +1545 -100
  61. package/util/dist/index.d.ts +1545 -100
@@ -27,16 +27,108 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
27
27
  token: z.ZodString;
28
28
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
29
29
  skip_logging: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodNull]>>;
30
+ triggered_functions: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
31
+ triggered_xact_id: z.ZodString;
32
+ completed_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
33
+ idempotency_key: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
34
+ attempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
35
+ scope: z.ZodUnion<[z.ZodObject<{
36
+ type: z.ZodLiteral<"span">;
37
+ }, "strip", z.ZodTypeAny, {
38
+ type: "span";
39
+ }, {
40
+ type: "span";
41
+ }>, z.ZodObject<{
42
+ type: z.ZodLiteral<"trace">;
43
+ }, "strip", z.ZodTypeAny, {
44
+ type: "trace";
45
+ }, {
46
+ type: "trace";
47
+ }>, z.ZodObject<{
48
+ type: z.ZodLiteral<"group">;
49
+ key: z.ZodString;
50
+ value: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ value: string;
53
+ type: "group";
54
+ key: string;
55
+ }, {
56
+ value: string;
57
+ type: "group";
58
+ key: string;
59
+ }>]>;
60
+ }, "strip", z.ZodTypeAny, {
61
+ triggered_xact_id: string;
62
+ attempts: number;
63
+ scope: {
64
+ type: "span";
65
+ } | {
66
+ type: "trace";
67
+ } | {
68
+ value: string;
69
+ type: "group";
70
+ key: string;
71
+ };
72
+ completed_xact_id?: string | null | undefined;
73
+ idempotency_key?: string | null | undefined;
74
+ }, {
75
+ triggered_xact_id: string;
76
+ scope: {
77
+ type: "span";
78
+ } | {
79
+ type: "trace";
80
+ } | {
81
+ value: string;
82
+ type: "group";
83
+ key: string;
84
+ };
85
+ completed_xact_id?: string | null | undefined;
86
+ idempotency_key?: string | null | undefined;
87
+ attempts?: number | undefined;
88
+ }>>, z.ZodNull]>>;
89
+ last_triggered_xact_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodNull]>>;
30
90
  }, "strip", z.ZodTypeAny, {
31
91
  status: "enabled";
32
92
  token: string;
33
93
  function_ids: unknown[];
34
94
  skip_logging?: boolean | null | undefined;
95
+ triggered_functions?: Record<string, {
96
+ triggered_xact_id: string;
97
+ attempts: number;
98
+ scope: {
99
+ type: "span";
100
+ } | {
101
+ type: "trace";
102
+ } | {
103
+ value: string;
104
+ type: "group";
105
+ key: string;
106
+ };
107
+ completed_xact_id?: string | null | undefined;
108
+ idempotency_key?: string | null | undefined;
109
+ }> | null | undefined;
110
+ last_triggered_xact_id?: string | number | null | undefined;
35
111
  }, {
36
112
  status: "enabled";
37
113
  token: string;
38
114
  function_ids: unknown[];
39
115
  skip_logging?: boolean | null | undefined;
116
+ triggered_functions?: Record<string, {
117
+ triggered_xact_id: string;
118
+ scope: {
119
+ type: "span";
120
+ } | {
121
+ type: "trace";
122
+ } | {
123
+ value: string;
124
+ type: "group";
125
+ key: string;
126
+ };
127
+ completed_xact_id?: string | null | undefined;
128
+ idempotency_key?: string | null | undefined;
129
+ attempts?: number | undefined;
130
+ }> | null | undefined;
131
+ last_triggered_xact_id?: string | number | null | undefined;
40
132
  }>, z.ZodObject<{
41
133
  status: z.ZodLiteral<"disabled">;
42
134
  }, "strip", z.ZodTypeAny, {
@@ -51,6 +143,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
51
143
  token: string;
52
144
  function_ids: unknown[];
53
145
  skip_logging?: boolean | null | undefined;
146
+ triggered_functions?: Record<string, {
147
+ triggered_xact_id: string;
148
+ attempts: number;
149
+ scope: {
150
+ type: "span";
151
+ } | {
152
+ type: "trace";
153
+ } | {
154
+ value: string;
155
+ type: "group";
156
+ key: string;
157
+ };
158
+ completed_xact_id?: string | null | undefined;
159
+ idempotency_key?: string | null | undefined;
160
+ }> | null | undefined;
161
+ last_triggered_xact_id?: string | number | null | undefined;
54
162
  } | {
55
163
  status: "disabled";
56
164
  } | null;
@@ -61,6 +169,22 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
61
169
  token: string;
62
170
  function_ids: unknown[];
63
171
  skip_logging?: boolean | null | undefined;
172
+ triggered_functions?: Record<string, {
173
+ triggered_xact_id: string;
174
+ scope: {
175
+ type: "span";
176
+ } | {
177
+ type: "trace";
178
+ } | {
179
+ value: string;
180
+ type: "group";
181
+ key: string;
182
+ };
183
+ completed_xact_id?: string | null | undefined;
184
+ idempotency_key?: string | null | undefined;
185
+ attempts?: number | undefined;
186
+ }> | null | undefined;
187
+ last_triggered_xact_id?: string | number | null | undefined;
64
188
  } | {
65
189
  status: "disabled";
66
190
  } | null;
@@ -77,26 +201,83 @@ declare const AsyncScoringControl: z.ZodUnion<[z.ZodObject<{
77
201
  }, {
78
202
  kind: "state_enabled_force_rescore";
79
203
  }>, z.ZodObject<{
80
- kind: z.ZodLiteral<"add_triggered_functions">;
81
- triggered_function_ids: z.ZodArray<z.ZodUnknown, "many">;
204
+ kind: z.ZodLiteral<"trigger_functions">;
205
+ triggered_functions: z.ZodArray<z.ZodObject<{
206
+ function_id: z.ZodOptional<z.ZodUnknown>;
207
+ scope: z.ZodUnion<[z.ZodObject<{
208
+ type: z.ZodLiteral<"span">;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: "span";
211
+ }, {
212
+ type: "span";
213
+ }>, z.ZodObject<{
214
+ type: z.ZodLiteral<"trace">;
215
+ }, "strip", z.ZodTypeAny, {
216
+ type: "trace";
217
+ }, {
218
+ type: "trace";
219
+ }>]>;
220
+ idempotency_key: z.ZodOptional<z.ZodString>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ scope: {
223
+ type: "span";
224
+ } | {
225
+ type: "trace";
226
+ };
227
+ idempotency_key?: string | undefined;
228
+ function_id?: unknown;
229
+ }, {
230
+ scope: {
231
+ type: "span";
232
+ } | {
233
+ type: "trace";
234
+ };
235
+ idempotency_key?: string | undefined;
236
+ function_id?: unknown;
237
+ }>, "many">;
82
238
  }, "strip", z.ZodTypeAny, {
83
- kind: "add_triggered_functions";
84
- triggered_function_ids: unknown[];
239
+ kind: "trigger_functions";
240
+ triggered_functions: {
241
+ scope: {
242
+ type: "span";
243
+ } | {
244
+ type: "trace";
245
+ };
246
+ idempotency_key?: string | undefined;
247
+ function_id?: unknown;
248
+ }[];
85
249
  }, {
86
- kind: "add_triggered_functions";
87
- triggered_function_ids: unknown[];
250
+ kind: "trigger_functions";
251
+ triggered_functions: {
252
+ scope: {
253
+ type: "span";
254
+ } | {
255
+ type: "trace";
256
+ };
257
+ idempotency_key?: string | undefined;
258
+ function_id?: unknown;
259
+ }[];
88
260
  }>, z.ZodObject<{
89
261
  kind: z.ZodLiteral<"complete_triggered_functions">;
90
262
  function_ids: z.ZodArray<z.ZodUnknown, "many">;
91
263
  triggered_xact_id: z.ZodString;
92
264
  }, "strip", z.ZodTypeAny, {
93
- function_ids: unknown[];
94
265
  kind: "complete_triggered_functions";
95
266
  triggered_xact_id: string;
96
- }, {
97
267
  function_ids: unknown[];
268
+ }, {
98
269
  kind: "complete_triggered_functions";
99
270
  triggered_xact_id: string;
271
+ function_ids: unknown[];
272
+ }>, z.ZodObject<{
273
+ kind: z.ZodLiteral<"mark_attempt_failed">;
274
+ function_ids: z.ZodArray<z.ZodUnknown, "many">;
275
+ }, "strip", z.ZodTypeAny, {
276
+ kind: "mark_attempt_failed";
277
+ function_ids: unknown[];
278
+ }, {
279
+ kind: "mark_attempt_failed";
280
+ function_ids: unknown[];
100
281
  }>]>;
101
282
  type AsyncScoringControlType = z.infer<typeof AsyncScoringControl>;
102
283
  declare const ObjectReference$1: z.ZodObject<{
@@ -552,13 +733,13 @@ declare const AnyModelParams: z.ZodObject<{
552
733
  verbosity?: "low" | "medium" | "high" | undefined;
553
734
  top_k?: number | undefined;
554
735
  stop_sequences?: string[] | undefined;
736
+ reasoning_enabled?: boolean | undefined;
737
+ reasoning_budget?: number | undefined;
555
738
  max_tokens_to_sample?: number | undefined;
556
739
  maxOutputTokens?: number | undefined;
557
740
  topP?: number | undefined;
558
741
  topK?: number | undefined;
559
742
  use_cache?: boolean | undefined;
560
- reasoning_enabled?: boolean | undefined;
561
- reasoning_budget?: number | undefined;
562
743
  }, {
563
744
  max_tokens: number;
564
745
  temperature?: number | undefined;
@@ -594,17 +775,43 @@ declare const AnyModelParams: z.ZodObject<{
594
775
  verbosity?: "low" | "medium" | "high" | undefined;
595
776
  top_k?: number | undefined;
596
777
  stop_sequences?: string[] | undefined;
778
+ reasoning_enabled?: boolean | undefined;
779
+ reasoning_budget?: number | undefined;
597
780
  max_tokens_to_sample?: number | undefined;
598
781
  maxOutputTokens?: number | undefined;
599
782
  topP?: number | undefined;
600
783
  topK?: number | undefined;
601
784
  use_cache?: boolean | undefined;
602
- reasoning_enabled?: boolean | undefined;
603
- reasoning_budget?: number | undefined;
604
785
  }>;
605
786
  type AnyModelParamsType = z.infer<typeof AnyModelParams>;
606
787
  declare const FunctionTypeEnum: z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>;
607
788
  type FunctionTypeEnumType = z.infer<typeof FunctionTypeEnum>;
789
+ declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
790
+ type: z.ZodLiteral<"function">;
791
+ id: z.ZodString;
792
+ version: z.ZodOptional<z.ZodString>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ id: string;
795
+ type: "function";
796
+ version?: string | undefined;
797
+ }, {
798
+ id: string;
799
+ type: "function";
800
+ version?: string | undefined;
801
+ }>, z.ZodObject<{
802
+ type: z.ZodLiteral<"global">;
803
+ name: z.ZodString;
804
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
805
+ }, "strip", z.ZodTypeAny, {
806
+ type: "global";
807
+ name: string;
808
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
809
+ }, {
810
+ type: "global";
811
+ name: string;
812
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
813
+ }>]>;
814
+ type SavedFunctionIdType = z.infer<typeof SavedFunctionId>;
608
815
  declare const ChatCompletionMessageParam: z.ZodUnion<[z.ZodObject<{
609
816
  content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodObject<{
610
817
  text: z.ZodDefault<z.ZodString>;
@@ -1631,32 +1838,6 @@ declare const ChatCompletionTool: z.ZodObject<{
1631
1838
  type: "function";
1632
1839
  }>;
1633
1840
  type ChatCompletionToolType = z.infer<typeof ChatCompletionTool>;
1634
- declare const SavedFunctionId: z.ZodUnion<[z.ZodObject<{
1635
- type: z.ZodLiteral<"function">;
1636
- id: z.ZodString;
1637
- version: z.ZodOptional<z.ZodString>;
1638
- }, "strip", z.ZodTypeAny, {
1639
- id: string;
1640
- type: "function";
1641
- version?: string | undefined;
1642
- }, {
1643
- id: string;
1644
- type: "function";
1645
- version?: string | undefined;
1646
- }>, z.ZodObject<{
1647
- type: z.ZodLiteral<"global">;
1648
- name: z.ZodString;
1649
- function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
1650
- }, "strip", z.ZodTypeAny, {
1651
- type: "global";
1652
- name: string;
1653
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
1654
- }, {
1655
- type: "global";
1656
- name: string;
1657
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
1658
- }>]>;
1659
- type SavedFunctionIdType = z.infer<typeof SavedFunctionId>;
1660
1841
  declare const DatasetSnapshot: z.ZodObject<{
1661
1842
  id: z.ZodString;
1662
1843
  dataset_id: z.ZodString;
@@ -1692,9 +1873,9 @@ declare const RepoInfo: z.ZodUnion<[z.ZodObject<{
1692
1873
  git_diff: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
1693
1874
  }, "strip", z.ZodTypeAny, {
1694
1875
  dirty?: boolean | null | undefined;
1876
+ tag?: string | null | undefined;
1695
1877
  commit?: string | null | undefined;
1696
1878
  branch?: string | null | undefined;
1697
- tag?: string | null | undefined;
1698
1879
  author_name?: string | null | undefined;
1699
1880
  author_email?: string | null | undefined;
1700
1881
  commit_message?: string | null | undefined;
@@ -1702,9 +1883,9 @@ declare const RepoInfo: z.ZodUnion<[z.ZodObject<{
1702
1883
  git_diff?: string | null | undefined;
1703
1884
  }, {
1704
1885
  dirty?: boolean | null | undefined;
1886
+ tag?: string | null | undefined;
1705
1887
  commit?: string | null | undefined;
1706
1888
  branch?: string | null | undefined;
1707
- tag?: string | null | undefined;
1708
1889
  author_name?: string | null | undefined;
1709
1890
  author_email?: string | null | undefined;
1710
1891
  commit_message?: string | null | undefined;
@@ -2454,11 +2635,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2454
2635
  runtime: z.ZodEnum<["node", "python", "browser", "quickjs"]>;
2455
2636
  version: z.ZodString;
2456
2637
  }, "strip", z.ZodTypeAny, {
2457
- runtime: "node" | "python" | "browser" | "quickjs";
2458
2638
  version: string;
2459
- }, {
2460
2639
  runtime: "node" | "python" | "browser" | "quickjs";
2640
+ }, {
2461
2641
  version: string;
2642
+ runtime: "node" | "python" | "browser" | "quickjs";
2462
2643
  }>;
2463
2644
  location: z.ZodUnion<[z.ZodObject<{
2464
2645
  type: z.ZodLiteral<"experiment">;
@@ -2572,8 +2753,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2572
2753
  preview: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
2573
2754
  }, "strip", z.ZodTypeAny, {
2574
2755
  runtime_context: {
2575
- runtime: "node" | "python" | "browser" | "quickjs";
2576
2756
  version: string;
2757
+ runtime: "node" | "python" | "browser" | "quickjs";
2577
2758
  };
2578
2759
  location: {
2579
2760
  type: "experiment";
@@ -2607,8 +2788,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2607
2788
  preview?: string | null | undefined;
2608
2789
  }, {
2609
2790
  runtime_context: {
2610
- runtime: "node" | "python" | "browser" | "quickjs";
2611
2791
  version: string;
2792
+ runtime: "node" | "python" | "browser" | "quickjs";
2612
2793
  };
2613
2794
  location: {
2614
2795
  type: "experiment";
@@ -2646,11 +2827,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2646
2827
  runtime: z.ZodEnum<["node", "python", "browser", "quickjs"]>;
2647
2828
  version: z.ZodString;
2648
2829
  }, "strip", z.ZodTypeAny, {
2649
- runtime: "node" | "python" | "browser" | "quickjs";
2650
2830
  version: string;
2651
- }, {
2652
2831
  runtime: "node" | "python" | "browser" | "quickjs";
2832
+ }, {
2653
2833
  version: string;
2834
+ runtime: "node" | "python" | "browser" | "quickjs";
2654
2835
  }>;
2655
2836
  code: z.ZodString;
2656
2837
  code_hash: z.ZodOptional<z.ZodString>;
@@ -2658,16 +2839,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2658
2839
  code: string;
2659
2840
  type: "inline";
2660
2841
  runtime_context: {
2661
- runtime: "node" | "python" | "browser" | "quickjs";
2662
2842
  version: string;
2843
+ runtime: "node" | "python" | "browser" | "quickjs";
2663
2844
  };
2664
2845
  code_hash?: string | undefined;
2665
2846
  }, {
2666
2847
  code: string;
2667
2848
  type: "inline";
2668
2849
  runtime_context: {
2669
- runtime: "node" | "python" | "browser" | "quickjs";
2670
2850
  version: string;
2851
+ runtime: "node" | "python" | "browser" | "quickjs";
2671
2852
  };
2672
2853
  code_hash?: string | undefined;
2673
2854
  }>]>;
@@ -2677,8 +2858,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2677
2858
  type: "bundle";
2678
2859
  } & {
2679
2860
  runtime_context: {
2680
- runtime: "node" | "python" | "browser" | "quickjs";
2681
2861
  version: string;
2862
+ runtime: "node" | "python" | "browser" | "quickjs";
2682
2863
  };
2683
2864
  location: {
2684
2865
  type: "experiment";
@@ -2714,8 +2895,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2714
2895
  code: string;
2715
2896
  type: "inline";
2716
2897
  runtime_context: {
2717
- runtime: "node" | "python" | "browser" | "quickjs";
2718
2898
  version: string;
2899
+ runtime: "node" | "python" | "browser" | "quickjs";
2719
2900
  };
2720
2901
  code_hash?: string | undefined;
2721
2902
  };
@@ -2725,8 +2906,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2725
2906
  type: "bundle";
2726
2907
  } & {
2727
2908
  runtime_context: {
2728
- runtime: "node" | "python" | "browser" | "quickjs";
2729
2909
  version: string;
2910
+ runtime: "node" | "python" | "browser" | "quickjs";
2730
2911
  };
2731
2912
  location: {
2732
2913
  type: "experiment";
@@ -2762,8 +2943,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
2762
2943
  code: string;
2763
2944
  type: "inline";
2764
2945
  runtime_context: {
2765
- runtime: "node" | "python" | "browser" | "quickjs";
2766
2946
  version: string;
2947
+ runtime: "node" | "python" | "browser" | "quickjs";
2767
2948
  };
2768
2949
  code_hash?: string | undefined;
2769
2950
  };
@@ -3967,21 +4148,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
3967
4148
  node: string;
3968
4149
  variable: string;
3969
4150
  };
4151
+ purpose: "data" | "messages" | "control";
3970
4152
  target: {
3971
4153
  node: string;
3972
4154
  variable: string;
3973
4155
  };
3974
- purpose: "data" | "messages" | "control";
3975
4156
  }, {
3976
4157
  source: {
3977
4158
  node: string;
3978
4159
  variable: string;
3979
4160
  };
4161
+ purpose: "data" | "messages" | "control";
3980
4162
  target: {
3981
4163
  node: string;
3982
4164
  variable: string;
3983
4165
  };
3984
- purpose: "data" | "messages" | "control";
3985
4166
  }>>;
3986
4167
  }, "strip", z.ZodTypeAny, {
3987
4168
  type: "graph";
@@ -4161,11 +4342,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4161
4342
  node: string;
4162
4343
  variable: string;
4163
4344
  };
4345
+ purpose: "data" | "messages" | "control";
4164
4346
  target: {
4165
4347
  node: string;
4166
4348
  variable: string;
4167
4349
  };
4168
- purpose: "data" | "messages" | "control";
4169
4350
  }>;
4170
4351
  }, {
4171
4352
  type: "graph";
@@ -4345,11 +4526,11 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4345
4526
  node: string;
4346
4527
  variable: string;
4347
4528
  };
4529
+ purpose: "data" | "messages" | "control";
4348
4530
  target: {
4349
4531
  node: string;
4350
4532
  variable: string;
4351
4533
  };
4352
- purpose: "data" | "messages" | "control";
4353
4534
  }>;
4354
4535
  }>, z.ZodObject<{
4355
4536
  type: z.ZodLiteral<"remote_eval">;
@@ -4381,16 +4562,16 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4381
4562
  }, "strip", z.ZodTypeAny, {
4382
4563
  type: "global";
4383
4564
  name: string;
4384
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
4565
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4385
4566
  config?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4386
4567
  }, {
4387
4568
  type: "global";
4388
4569
  name: string;
4389
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
4570
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4390
4571
  config?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
4391
4572
  }>, z.ZodObject<{
4392
4573
  type: z.ZodLiteral<"facet">;
4393
- preprocessor: z.ZodOptional<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4574
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4394
4575
  type: z.ZodLiteral<"function">;
4395
4576
  id: z.ZodString;
4396
4577
  version: z.ZodOptional<z.ZodString>;
@@ -4409,12 +4590,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4409
4590
  }, "strip", z.ZodTypeAny, {
4410
4591
  type: "global";
4411
4592
  name: string;
4412
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
4593
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4413
4594
  }, {
4414
4595
  type: "global";
4415
4596
  name: string;
4416
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
4417
- }>, z.ZodNull]>, z.ZodUnknown>>;
4597
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4598
+ }>, z.ZodObject<{
4599
+ type: z.ZodLiteral<"inline">;
4600
+ code: z.ZodString;
4601
+ }, "strip", z.ZodTypeAny, {
4602
+ code: string;
4603
+ type: "inline";
4604
+ }, {
4605
+ code: string;
4606
+ type: "inline";
4607
+ }>, z.ZodNull]>>;
4418
4608
  prompt: z.ZodString;
4419
4609
  model: z.ZodOptional<z.ZodString>;
4420
4610
  embedding_model: z.ZodOptional<z.ZodString>;
@@ -4422,7 +4612,6 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4422
4612
  }, "strip", z.ZodTypeAny, {
4423
4613
  type: "facet";
4424
4614
  prompt: string;
4425
- model?: string | undefined;
4426
4615
  preprocessor?: {
4427
4616
  id: string;
4428
4617
  type: "function";
@@ -4430,14 +4619,17 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4430
4619
  } | {
4431
4620
  type: "global";
4432
4621
  name: string;
4433
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
4622
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4623
+ } | {
4624
+ code: string;
4625
+ type: "inline";
4434
4626
  } | null | undefined;
4435
4627
  embedding_model?: string | undefined;
4628
+ model?: string | undefined;
4436
4629
  no_match_pattern?: string | undefined;
4437
4630
  }, {
4438
4631
  type: "facet";
4439
4632
  prompt: string;
4440
- model?: string | undefined;
4441
4633
  preprocessor?: {
4442
4634
  id: string;
4443
4635
  type: "function";
@@ -4445,13 +4637,17 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4445
4637
  } | {
4446
4638
  type: "global";
4447
4639
  name: string;
4448
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
4640
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4641
+ } | {
4642
+ code: string;
4643
+ type: "inline";
4449
4644
  } | null | undefined;
4450
4645
  embedding_model?: string | undefined;
4646
+ model?: string | undefined;
4451
4647
  no_match_pattern?: string | undefined;
4452
4648
  }>, z.ZodObject<{
4453
4649
  type: z.ZodLiteral<"batched_facet">;
4454
- preprocessor: z.ZodOptional<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4650
+ preprocessor: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
4455
4651
  type: z.ZodLiteral<"function">;
4456
4652
  id: z.ZodString;
4457
4653
  version: z.ZodOptional<z.ZodString>;
@@ -4470,12 +4666,21 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4470
4666
  }, "strip", z.ZodTypeAny, {
4471
4667
  type: "global";
4472
4668
  name: string;
4473
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
4669
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4474
4670
  }, {
4475
4671
  type: "global";
4476
4672
  name: string;
4477
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
4478
- }>, z.ZodNull]>, z.ZodUnknown>>;
4673
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4674
+ }>, z.ZodObject<{
4675
+ type: z.ZodLiteral<"inline">;
4676
+ code: z.ZodString;
4677
+ }, "strip", z.ZodTypeAny, {
4678
+ code: string;
4679
+ type: "inline";
4680
+ }, {
4681
+ code: string;
4682
+ type: "inline";
4683
+ }>, z.ZodNull]>>;
4479
4684
  facets: z.ZodArray<z.ZodObject<{
4480
4685
  name: z.ZodString;
4481
4686
  prompt: z.ZodString;
@@ -4485,14 +4690,14 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4485
4690
  }, "strip", z.ZodTypeAny, {
4486
4691
  prompt: string;
4487
4692
  name: string;
4488
- model?: string | undefined;
4489
4693
  embedding_model?: string | undefined;
4694
+ model?: string | undefined;
4490
4695
  no_match_pattern?: string | undefined;
4491
4696
  }, {
4492
4697
  prompt: string;
4493
4698
  name: string;
4494
- model?: string | undefined;
4495
4699
  embedding_model?: string | undefined;
4700
+ model?: string | undefined;
4496
4701
  no_match_pattern?: string | undefined;
4497
4702
  }>, "many">;
4498
4703
  topic_maps: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
@@ -4501,12 +4706,37 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4501
4706
  topic_map_data: z.ZodObject<{
4502
4707
  type: z.ZodLiteral<"topic_map">;
4503
4708
  source_facet: z.ZodString;
4709
+ source_facet_function: z.ZodOptional<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
4710
+ type: z.ZodLiteral<"function">;
4711
+ id: z.ZodString;
4712
+ version: z.ZodOptional<z.ZodString>;
4713
+ }, "strip", z.ZodTypeAny, {
4714
+ id: string;
4715
+ type: "function";
4716
+ version?: string | undefined;
4717
+ }, {
4718
+ id: string;
4719
+ type: "function";
4720
+ version?: string | undefined;
4721
+ }>, z.ZodObject<{
4722
+ type: z.ZodLiteral<"global">;
4723
+ name: z.ZodString;
4724
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
4725
+ }, "strip", z.ZodTypeAny, {
4726
+ type: "global";
4727
+ name: string;
4728
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4729
+ }, {
4730
+ type: "global";
4731
+ name: string;
4732
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4733
+ }>]>, z.ZodUnknown>>;
4504
4734
  embedding_model: z.ZodString;
4505
4735
  bundle_key: z.ZodOptional<z.ZodString>;
4506
4736
  report_key: z.ZodOptional<z.ZodString>;
4507
4737
  topic_names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4508
4738
  generation_settings: z.ZodOptional<z.ZodObject<{
4509
- algorithm: z.ZodEnum<["hdbscan", "kmeans"]>;
4739
+ algorithm: z.ZodEnum<["hdbscan", "kmeans", "community"]>;
4510
4740
  dimension_reduction: z.ZodEnum<["umap", "pca", "none"]>;
4511
4741
  sample_size: z.ZodOptional<z.ZodNumber>;
4512
4742
  n_clusters: z.ZodOptional<z.ZodNumber>;
@@ -4515,7 +4745,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4515
4745
  hierarchy_threshold: z.ZodOptional<z.ZodNumber>;
4516
4746
  naming_model: z.ZodOptional<z.ZodString>;
4517
4747
  }, "strip", z.ZodTypeAny, {
4518
- algorithm: "hdbscan" | "kmeans";
4748
+ algorithm: "hdbscan" | "kmeans" | "community";
4519
4749
  dimension_reduction: "none" | "umap" | "pca";
4520
4750
  sample_size?: number | undefined;
4521
4751
  n_clusters?: number | undefined;
@@ -4524,7 +4754,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4524
4754
  hierarchy_threshold?: number | undefined;
4525
4755
  naming_model?: string | undefined;
4526
4756
  }, {
4527
- algorithm: "hdbscan" | "kmeans";
4757
+ algorithm: "hdbscan" | "kmeans" | "community";
4528
4758
  dimension_reduction: "none" | "umap" | "pca";
4529
4759
  sample_size?: number | undefined;
4530
4760
  n_clusters?: number | undefined;
@@ -4542,12 +4772,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4542
4772
  type: "topic_map";
4543
4773
  source_facet: string;
4544
4774
  embedding_model: string;
4545
- btql_filter?: string | undefined;
4775
+ source_facet_function?: {
4776
+ id: string;
4777
+ type: "function";
4778
+ version?: string | undefined;
4779
+ } | {
4780
+ type: "global";
4781
+ name: string;
4782
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4783
+ } | undefined;
4546
4784
  bundle_key?: string | undefined;
4547
4785
  report_key?: string | undefined;
4548
4786
  topic_names?: Record<string, string> | undefined;
4549
4787
  generation_settings?: {
4550
- algorithm: "hdbscan" | "kmeans";
4788
+ algorithm: "hdbscan" | "kmeans" | "community";
4551
4789
  dimension_reduction: "none" | "umap" | "pca";
4552
4790
  sample_size?: number | undefined;
4553
4791
  n_clusters?: number | undefined;
@@ -4559,17 +4797,26 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4559
4797
  disable_reconciliation?: boolean | undefined;
4560
4798
  reconcile_mode?: "evolve" | "names_only" | undefined;
4561
4799
  distance_threshold?: number | undefined;
4800
+ btql_filter?: string | undefined;
4562
4801
  automation_btql_filter?: string | undefined;
4563
4802
  }, {
4564
4803
  type: "topic_map";
4565
4804
  source_facet: string;
4566
4805
  embedding_model: string;
4567
- btql_filter?: string | undefined;
4806
+ source_facet_function?: {
4807
+ id: string;
4808
+ type: "function";
4809
+ version?: string | undefined;
4810
+ } | {
4811
+ type: "global";
4812
+ name: string;
4813
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4814
+ } | undefined;
4568
4815
  bundle_key?: string | undefined;
4569
4816
  report_key?: string | undefined;
4570
4817
  topic_names?: Record<string, string> | undefined;
4571
4818
  generation_settings?: {
4572
- algorithm: "hdbscan" | "kmeans";
4819
+ algorithm: "hdbscan" | "kmeans" | "community";
4573
4820
  dimension_reduction: "none" | "umap" | "pca";
4574
4821
  sample_size?: number | undefined;
4575
4822
  n_clusters?: number | undefined;
@@ -4581,6 +4828,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4581
4828
  disable_reconciliation?: boolean | undefined;
4582
4829
  reconcile_mode?: "evolve" | "names_only" | undefined;
4583
4830
  distance_threshold?: number | undefined;
4831
+ btql_filter?: string | undefined;
4584
4832
  automation_btql_filter?: string | undefined;
4585
4833
  }>;
4586
4834
  }, "strip", z.ZodTypeAny, {
@@ -4589,12 +4837,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4589
4837
  type: "topic_map";
4590
4838
  source_facet: string;
4591
4839
  embedding_model: string;
4592
- btql_filter?: string | undefined;
4840
+ source_facet_function?: {
4841
+ id: string;
4842
+ type: "function";
4843
+ version?: string | undefined;
4844
+ } | {
4845
+ type: "global";
4846
+ name: string;
4847
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4848
+ } | undefined;
4593
4849
  bundle_key?: string | undefined;
4594
4850
  report_key?: string | undefined;
4595
4851
  topic_names?: Record<string, string> | undefined;
4596
4852
  generation_settings?: {
4597
- algorithm: "hdbscan" | "kmeans";
4853
+ algorithm: "hdbscan" | "kmeans" | "community";
4598
4854
  dimension_reduction: "none" | "umap" | "pca";
4599
4855
  sample_size?: number | undefined;
4600
4856
  n_clusters?: number | undefined;
@@ -4606,6 +4862,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4606
4862
  disable_reconciliation?: boolean | undefined;
4607
4863
  reconcile_mode?: "evolve" | "names_only" | undefined;
4608
4864
  distance_threshold?: number | undefined;
4865
+ btql_filter?: string | undefined;
4609
4866
  automation_btql_filter?: string | undefined;
4610
4867
  };
4611
4868
  topic_map_id?: string | undefined;
@@ -4615,12 +4872,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4615
4872
  type: "topic_map";
4616
4873
  source_facet: string;
4617
4874
  embedding_model: string;
4618
- btql_filter?: string | undefined;
4875
+ source_facet_function?: {
4876
+ id: string;
4877
+ type: "function";
4878
+ version?: string | undefined;
4879
+ } | {
4880
+ type: "global";
4881
+ name: string;
4882
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4883
+ } | undefined;
4619
4884
  bundle_key?: string | undefined;
4620
4885
  report_key?: string | undefined;
4621
4886
  topic_names?: Record<string, string> | undefined;
4622
4887
  generation_settings?: {
4623
- algorithm: "hdbscan" | "kmeans";
4888
+ algorithm: "hdbscan" | "kmeans" | "community";
4624
4889
  dimension_reduction: "none" | "umap" | "pca";
4625
4890
  sample_size?: number | undefined;
4626
4891
  n_clusters?: number | undefined;
@@ -4632,6 +4897,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4632
4897
  disable_reconciliation?: boolean | undefined;
4633
4898
  reconcile_mode?: "evolve" | "names_only" | undefined;
4634
4899
  distance_threshold?: number | undefined;
4900
+ btql_filter?: string | undefined;
4635
4901
  automation_btql_filter?: string | undefined;
4636
4902
  };
4637
4903
  topic_map_id?: string | undefined;
@@ -4641,8 +4907,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4641
4907
  facets: {
4642
4908
  prompt: string;
4643
4909
  name: string;
4644
- model?: string | undefined;
4645
4910
  embedding_model?: string | undefined;
4911
+ model?: string | undefined;
4646
4912
  no_match_pattern?: string | undefined;
4647
4913
  }[];
4648
4914
  preprocessor?: {
@@ -4652,7 +4918,10 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4652
4918
  } | {
4653
4919
  type: "global";
4654
4920
  name: string;
4655
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
4921
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4922
+ } | {
4923
+ code: string;
4924
+ type: "inline";
4656
4925
  } | null | undefined;
4657
4926
  topic_maps?: Record<string, {
4658
4927
  function_name: string;
@@ -4660,12 +4929,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4660
4929
  type: "topic_map";
4661
4930
  source_facet: string;
4662
4931
  embedding_model: string;
4663
- btql_filter?: string | undefined;
4932
+ source_facet_function?: {
4933
+ id: string;
4934
+ type: "function";
4935
+ version?: string | undefined;
4936
+ } | {
4937
+ type: "global";
4938
+ name: string;
4939
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
4940
+ } | undefined;
4664
4941
  bundle_key?: string | undefined;
4665
4942
  report_key?: string | undefined;
4666
4943
  topic_names?: Record<string, string> | undefined;
4667
4944
  generation_settings?: {
4668
- algorithm: "hdbscan" | "kmeans";
4945
+ algorithm: "hdbscan" | "kmeans" | "community";
4669
4946
  dimension_reduction: "none" | "umap" | "pca";
4670
4947
  sample_size?: number | undefined;
4671
4948
  n_clusters?: number | undefined;
@@ -4677,6 +4954,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4677
4954
  disable_reconciliation?: boolean | undefined;
4678
4955
  reconcile_mode?: "evolve" | "names_only" | undefined;
4679
4956
  distance_threshold?: number | undefined;
4957
+ btql_filter?: string | undefined;
4680
4958
  automation_btql_filter?: string | undefined;
4681
4959
  };
4682
4960
  topic_map_id?: string | undefined;
@@ -4686,8 +4964,8 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4686
4964
  facets: {
4687
4965
  prompt: string;
4688
4966
  name: string;
4689
- model?: string | undefined;
4690
4967
  embedding_model?: string | undefined;
4968
+ model?: string | undefined;
4691
4969
  no_match_pattern?: string | undefined;
4692
4970
  }[];
4693
4971
  preprocessor?: {
@@ -4697,7 +4975,10 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4697
4975
  } | {
4698
4976
  type: "global";
4699
4977
  name: string;
4700
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
4978
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4979
+ } | {
4980
+ code: string;
4981
+ type: "inline";
4701
4982
  } | null | undefined;
4702
4983
  topic_maps?: Record<string, {
4703
4984
  function_name: string;
@@ -4705,12 +4986,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4705
4986
  type: "topic_map";
4706
4987
  source_facet: string;
4707
4988
  embedding_model: string;
4708
- btql_filter?: string | undefined;
4989
+ source_facet_function?: {
4990
+ id: string;
4991
+ type: "function";
4992
+ version?: string | undefined;
4993
+ } | {
4994
+ type: "global";
4995
+ name: string;
4996
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
4997
+ } | undefined;
4709
4998
  bundle_key?: string | undefined;
4710
4999
  report_key?: string | undefined;
4711
5000
  topic_names?: Record<string, string> | undefined;
4712
5001
  generation_settings?: {
4713
- algorithm: "hdbscan" | "kmeans";
5002
+ algorithm: "hdbscan" | "kmeans" | "community";
4714
5003
  dimension_reduction: "none" | "umap" | "pca";
4715
5004
  sample_size?: number | undefined;
4716
5005
  n_clusters?: number | undefined;
@@ -4722,6 +5011,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4722
5011
  disable_reconciliation?: boolean | undefined;
4723
5012
  reconcile_mode?: "evolve" | "names_only" | undefined;
4724
5013
  distance_threshold?: number | undefined;
5014
+ btql_filter?: string | undefined;
4725
5015
  automation_btql_filter?: string | undefined;
4726
5016
  };
4727
5017
  topic_map_id?: string | undefined;
@@ -4770,12 +5060,37 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4770
5060
  }>, z.ZodIntersection<z.ZodObject<{
4771
5061
  type: z.ZodLiteral<"topic_map">;
4772
5062
  source_facet: z.ZodString;
5063
+ source_facet_function: z.ZodOptional<z.ZodIntersection<z.ZodUnion<[z.ZodObject<{
5064
+ type: z.ZodLiteral<"function">;
5065
+ id: z.ZodString;
5066
+ version: z.ZodOptional<z.ZodString>;
5067
+ }, "strip", z.ZodTypeAny, {
5068
+ id: string;
5069
+ type: "function";
5070
+ version?: string | undefined;
5071
+ }, {
5072
+ id: string;
5073
+ type: "function";
5074
+ version?: string | undefined;
5075
+ }>, z.ZodObject<{
5076
+ type: z.ZodLiteral<"global">;
5077
+ name: z.ZodString;
5078
+ function_type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["llm", "scorer", "task", "tool", "custom_view", "preprocessor", "facet", "classifier", "tag", "parameters", "sandbox"]>>>;
5079
+ }, "strip", z.ZodTypeAny, {
5080
+ type: "global";
5081
+ name: string;
5082
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
5083
+ }, {
5084
+ type: "global";
5085
+ name: string;
5086
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
5087
+ }>]>, z.ZodUnknown>>;
4773
5088
  embedding_model: z.ZodString;
4774
5089
  bundle_key: z.ZodOptional<z.ZodString>;
4775
5090
  report_key: z.ZodOptional<z.ZodString>;
4776
5091
  topic_names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4777
5092
  generation_settings: z.ZodOptional<z.ZodObject<{
4778
- algorithm: z.ZodEnum<["hdbscan", "kmeans"]>;
5093
+ algorithm: z.ZodEnum<["hdbscan", "kmeans", "community"]>;
4779
5094
  dimension_reduction: z.ZodEnum<["umap", "pca", "none"]>;
4780
5095
  sample_size: z.ZodOptional<z.ZodNumber>;
4781
5096
  n_clusters: z.ZodOptional<z.ZodNumber>;
@@ -4784,7 +5099,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4784
5099
  hierarchy_threshold: z.ZodOptional<z.ZodNumber>;
4785
5100
  naming_model: z.ZodOptional<z.ZodString>;
4786
5101
  }, "strip", z.ZodTypeAny, {
4787
- algorithm: "hdbscan" | "kmeans";
5102
+ algorithm: "hdbscan" | "kmeans" | "community";
4788
5103
  dimension_reduction: "none" | "umap" | "pca";
4789
5104
  sample_size?: number | undefined;
4790
5105
  n_clusters?: number | undefined;
@@ -4793,7 +5108,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4793
5108
  hierarchy_threshold?: number | undefined;
4794
5109
  naming_model?: string | undefined;
4795
5110
  }, {
4796
- algorithm: "hdbscan" | "kmeans";
5111
+ algorithm: "hdbscan" | "kmeans" | "community";
4797
5112
  dimension_reduction: "none" | "umap" | "pca";
4798
5113
  sample_size?: number | undefined;
4799
5114
  n_clusters?: number | undefined;
@@ -4811,12 +5126,20 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4811
5126
  type: "topic_map";
4812
5127
  source_facet: string;
4813
5128
  embedding_model: string;
4814
- btql_filter?: string | undefined;
5129
+ source_facet_function?: {
5130
+ id: string;
5131
+ type: "function";
5132
+ version?: string | undefined;
5133
+ } | {
5134
+ type: "global";
5135
+ name: string;
5136
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
5137
+ } | undefined;
4815
5138
  bundle_key?: string | undefined;
4816
5139
  report_key?: string | undefined;
4817
5140
  topic_names?: Record<string, string> | undefined;
4818
5141
  generation_settings?: {
4819
- algorithm: "hdbscan" | "kmeans";
5142
+ algorithm: "hdbscan" | "kmeans" | "community";
4820
5143
  dimension_reduction: "none" | "umap" | "pca";
4821
5144
  sample_size?: number | undefined;
4822
5145
  n_clusters?: number | undefined;
@@ -4828,17 +5151,26 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4828
5151
  disable_reconciliation?: boolean | undefined;
4829
5152
  reconcile_mode?: "evolve" | "names_only" | undefined;
4830
5153
  distance_threshold?: number | undefined;
5154
+ btql_filter?: string | undefined;
4831
5155
  automation_btql_filter?: string | undefined;
4832
5156
  }, {
4833
5157
  type: "topic_map";
4834
5158
  source_facet: string;
4835
5159
  embedding_model: string;
4836
- btql_filter?: string | undefined;
5160
+ source_facet_function?: {
5161
+ id: string;
5162
+ type: "function";
5163
+ version?: string | undefined;
5164
+ } | {
5165
+ type: "global";
5166
+ name: string;
5167
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
5168
+ } | undefined;
4837
5169
  bundle_key?: string | undefined;
4838
5170
  report_key?: string | undefined;
4839
5171
  topic_names?: Record<string, string> | undefined;
4840
5172
  generation_settings?: {
4841
- algorithm: "hdbscan" | "kmeans";
5173
+ algorithm: "hdbscan" | "kmeans" | "community";
4842
5174
  dimension_reduction: "none" | "umap" | "pca";
4843
5175
  sample_size?: number | undefined;
4844
5176
  n_clusters?: number | undefined;
@@ -4850,6 +5182,7 @@ declare const FunctionData: z.ZodUnion<[z.ZodObject<{
4850
5182
  disable_reconciliation?: boolean | undefined;
4851
5183
  reconcile_mode?: "evolve" | "names_only" | undefined;
4852
5184
  distance_threshold?: number | undefined;
5185
+ btql_filter?: string | undefined;
4853
5186
  automation_btql_filter?: string | undefined;
4854
5187
  }>, z.ZodUnknown>]>;
4855
5188
  declare const PromptData: z.ZodObject<{
@@ -6237,11 +6570,11 @@ declare const PromptData: z.ZodObject<{
6237
6570
  }, "strip", z.ZodTypeAny, {
6238
6571
  type: "global";
6239
6572
  name: string;
6240
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
6573
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
6241
6574
  }, {
6242
6575
  type: "global";
6243
6576
  name: string;
6244
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
6577
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
6245
6578
  }>]>, "many">, z.ZodNull]>>;
6246
6579
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
6247
6580
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -6519,6 +6852,15 @@ declare const PromptData: z.ZodObject<{
6519
6852
  type: "completion";
6520
6853
  content: string;
6521
6854
  } | null | undefined;
6855
+ preprocessor?: {
6856
+ id: string;
6857
+ type: "function";
6858
+ version?: string | undefined;
6859
+ } | {
6860
+ type: "global";
6861
+ name: string;
6862
+ function_type: "preprocessor";
6863
+ } | null | undefined;
6522
6864
  origin?: {
6523
6865
  project_id?: string | undefined;
6524
6866
  prompt_id?: string | undefined;
@@ -6539,17 +6881,8 @@ declare const PromptData: z.ZodObject<{
6539
6881
  } | {
6540
6882
  type: "global";
6541
6883
  name: string;
6542
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
6884
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
6543
6885
  })[] | null | undefined;
6544
- preprocessor?: {
6545
- id: string;
6546
- type: "function";
6547
- version?: string | undefined;
6548
- } | {
6549
- type: "global";
6550
- name: string;
6551
- function_type: "preprocessor";
6552
- } | null | undefined;
6553
6886
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
6554
6887
  mcp?: Record<string, {
6555
6888
  id: string;
@@ -6793,6 +7126,15 @@ declare const PromptData: z.ZodObject<{
6793
7126
  type: "completion";
6794
7127
  content: string;
6795
7128
  } | null | undefined;
7129
+ preprocessor?: {
7130
+ id: string;
7131
+ type: "function";
7132
+ version?: string | undefined;
7133
+ } | {
7134
+ type: "global";
7135
+ name: string;
7136
+ function_type?: "preprocessor" | undefined;
7137
+ } | null | undefined;
6796
7138
  origin?: {
6797
7139
  project_id?: string | undefined;
6798
7140
  prompt_id?: string | undefined;
@@ -6813,17 +7155,8 @@ declare const PromptData: z.ZodObject<{
6813
7155
  } | {
6814
7156
  type: "global";
6815
7157
  name: string;
6816
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
7158
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
6817
7159
  })[] | null | undefined;
6818
- preprocessor?: {
6819
- id: string;
6820
- type: "function";
6821
- version?: string | undefined;
6822
- } | {
6823
- type: "global";
6824
- name: string;
6825
- function_type?: "preprocessor" | undefined;
6826
- } | null | undefined;
6827
7160
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
6828
7161
  mcp?: Record<string, {
6829
7162
  id: string;
@@ -6843,10 +7176,10 @@ declare const GitMetadataSettings: z.ZodObject<{
6843
7176
  fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
6844
7177
  }, "strip", z.ZodTypeAny, {
6845
7178
  collect: "some" | "none" | "all";
6846
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
7179
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
6847
7180
  }, {
6848
7181
  collect: "some" | "none" | "all";
6849
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
7182
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
6850
7183
  }>;
6851
7184
  type GitMetadataSettingsType = z.infer<typeof GitMetadataSettings>;
6852
7185
  declare const IfExists: z.ZodEnum<["error", "ignore", "replace"]>;
@@ -8266,11 +8599,11 @@ declare const Prompt$1: z.ZodObject<{
8266
8599
  }, "strip", z.ZodTypeAny, {
8267
8600
  type: "global";
8268
8601
  name: string;
8269
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
8602
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8270
8603
  }, {
8271
8604
  type: "global";
8272
8605
  name: string;
8273
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
8606
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8274
8607
  }>]>, "many">, z.ZodNull]>>;
8275
8608
  template_format: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["mustache", "nunjucks", "none"]>, z.ZodNull]>>;
8276
8609
  mcp: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -8548,6 +8881,15 @@ declare const Prompt$1: z.ZodObject<{
8548
8881
  type: "completion";
8549
8882
  content: string;
8550
8883
  } | null | undefined;
8884
+ preprocessor?: {
8885
+ id: string;
8886
+ type: "function";
8887
+ version?: string | undefined;
8888
+ } | {
8889
+ type: "global";
8890
+ name: string;
8891
+ function_type: "preprocessor";
8892
+ } | null | undefined;
8551
8893
  origin?: {
8552
8894
  project_id?: string | undefined;
8553
8895
  prompt_id?: string | undefined;
@@ -8568,17 +8910,8 @@ declare const Prompt$1: z.ZodObject<{
8568
8910
  } | {
8569
8911
  type: "global";
8570
8912
  name: string;
8571
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
8913
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
8572
8914
  })[] | null | undefined;
8573
- preprocessor?: {
8574
- id: string;
8575
- type: "function";
8576
- version?: string | undefined;
8577
- } | {
8578
- type: "global";
8579
- name: string;
8580
- function_type: "preprocessor";
8581
- } | null | undefined;
8582
8915
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
8583
8916
  mcp?: Record<string, {
8584
8917
  id: string;
@@ -8822,6 +9155,15 @@ declare const Prompt$1: z.ZodObject<{
8822
9155
  type: "completion";
8823
9156
  content: string;
8824
9157
  } | null | undefined;
9158
+ preprocessor?: {
9159
+ id: string;
9160
+ type: "function";
9161
+ version?: string | undefined;
9162
+ } | {
9163
+ type: "global";
9164
+ name: string;
9165
+ function_type?: "preprocessor" | undefined;
9166
+ } | null | undefined;
8825
9167
  origin?: {
8826
9168
  project_id?: string | undefined;
8827
9169
  prompt_id?: string | undefined;
@@ -8842,17 +9184,8 @@ declare const Prompt$1: z.ZodObject<{
8842
9184
  } | {
8843
9185
  type: "global";
8844
9186
  name: string;
8845
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
9187
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
8846
9188
  })[] | null | undefined;
8847
- preprocessor?: {
8848
- id: string;
8849
- type: "function";
8850
- version?: string | undefined;
8851
- } | {
8852
- type: "global";
8853
- name: string;
8854
- function_type?: "preprocessor" | undefined;
8855
- } | null | undefined;
8856
9189
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
8857
9190
  mcp?: Record<string, {
8858
9191
  id: string;
@@ -8874,12 +9207,13 @@ declare const Prompt$1: z.ZodObject<{
8874
9207
  id: string;
8875
9208
  project_id: string;
8876
9209
  log_id: "p";
8877
- org_id: string;
8878
9210
  name: string;
8879
9211
  slug: string;
9212
+ org_id: string;
8880
9213
  created?: string | null | undefined;
8881
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
8882
9214
  description?: string | null | undefined;
9215
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
9216
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
8883
9217
  tags?: string[] | null | undefined;
8884
9218
  prompt_data?: {
8885
9219
  options?: {
@@ -9112,6 +9446,15 @@ declare const Prompt$1: z.ZodObject<{
9112
9446
  type: "completion";
9113
9447
  content: string;
9114
9448
  } | null | undefined;
9449
+ preprocessor?: {
9450
+ id: string;
9451
+ type: "function";
9452
+ version?: string | undefined;
9453
+ } | {
9454
+ type: "global";
9455
+ name: string;
9456
+ function_type: "preprocessor";
9457
+ } | null | undefined;
9115
9458
  origin?: {
9116
9459
  project_id?: string | undefined;
9117
9460
  prompt_id?: string | undefined;
@@ -9132,17 +9475,8 @@ declare const Prompt$1: z.ZodObject<{
9132
9475
  } | {
9133
9476
  type: "global";
9134
9477
  name: string;
9135
- function_type: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox";
9478
+ function_type: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox";
9136
9479
  })[] | null | undefined;
9137
- preprocessor?: {
9138
- id: string;
9139
- type: "function";
9140
- version?: string | undefined;
9141
- } | {
9142
- type: "global";
9143
- name: string;
9144
- function_type: "preprocessor";
9145
- } | null | undefined;
9146
9480
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
9147
9481
  mcp?: Record<string, {
9148
9482
  id: string;
@@ -9156,18 +9490,18 @@ declare const Prompt$1: z.ZodObject<{
9156
9490
  enabled_tools?: string[] | null | undefined;
9157
9491
  }> | null | undefined;
9158
9492
  } | null | undefined;
9159
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
9160
9493
  }, {
9161
9494
  _xact_id: string;
9162
9495
  id: string;
9163
9496
  project_id: string;
9164
9497
  log_id: "p";
9165
- org_id: string;
9166
9498
  name: string;
9167
9499
  slug: string;
9500
+ org_id: string;
9168
9501
  created?: string | null | undefined;
9169
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
9170
9502
  description?: string | null | undefined;
9503
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
9504
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
9171
9505
  tags?: string[] | null | undefined;
9172
9506
  prompt_data?: {
9173
9507
  options?: {
@@ -9400,6 +9734,15 @@ declare const Prompt$1: z.ZodObject<{
9400
9734
  type: "completion";
9401
9735
  content: string;
9402
9736
  } | null | undefined;
9737
+ preprocessor?: {
9738
+ id: string;
9739
+ type: "function";
9740
+ version?: string | undefined;
9741
+ } | {
9742
+ type: "global";
9743
+ name: string;
9744
+ function_type?: "preprocessor" | undefined;
9745
+ } | null | undefined;
9403
9746
  origin?: {
9404
9747
  project_id?: string | undefined;
9405
9748
  prompt_id?: string | undefined;
@@ -9420,17 +9763,8 @@ declare const Prompt$1: z.ZodObject<{
9420
9763
  } | {
9421
9764
  type: "global";
9422
9765
  name: string;
9423
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | undefined;
9766
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | undefined;
9424
9767
  })[] | null | undefined;
9425
- preprocessor?: {
9426
- id: string;
9427
- type: "function";
9428
- version?: string | undefined;
9429
- } | {
9430
- type: "global";
9431
- name: string;
9432
- function_type?: "preprocessor" | undefined;
9433
- } | null | undefined;
9434
9768
  template_format?: "none" | "mustache" | "nunjucks" | null | undefined;
9435
9769
  mcp?: Record<string, {
9436
9770
  id: string;
@@ -9444,7 +9778,6 @@ declare const Prompt$1: z.ZodObject<{
9444
9778
  enabled_tools?: string[] | null | undefined;
9445
9779
  }> | null | undefined;
9446
9780
  } | null | undefined;
9447
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
9448
9781
  }>;
9449
9782
  type PromptType = z.infer<typeof Prompt$1>;
9450
9783
  declare const PromptSessionEvent: z.ZodObject<{
@@ -9468,11 +9801,11 @@ declare const PromptSessionEvent: z.ZodObject<{
9468
9801
  prompt_session_id: string;
9469
9802
  project_id: string;
9470
9803
  function_data?: unknown;
9471
- _pagination_key?: string | null | undefined;
9804
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
9472
9805
  tags?: string[] | null | undefined;
9806
+ _pagination_key?: string | null | undefined;
9473
9807
  completion?: unknown;
9474
9808
  prompt_data?: unknown;
9475
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
9476
9809
  prompt_session_data?: unknown;
9477
9810
  object_data?: unknown;
9478
9811
  }, {
@@ -9482,11 +9815,11 @@ declare const PromptSessionEvent: z.ZodObject<{
9482
9815
  prompt_session_id: string;
9483
9816
  project_id: string;
9484
9817
  function_data?: unknown;
9485
- _pagination_key?: string | null | undefined;
9818
+ function_type?: "llm" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "tag" | "parameters" | "sandbox" | null | undefined;
9486
9819
  tags?: string[] | null | undefined;
9820
+ _pagination_key?: string | null | undefined;
9487
9821
  completion?: unknown;
9488
9822
  prompt_data?: unknown;
9489
- function_type?: "tool" | "parameters" | "task" | "scorer" | "tag" | "llm" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | null | undefined;
9490
9823
  prompt_session_data?: unknown;
9491
9824
  object_data?: unknown;
9492
9825
  }>;
@@ -9520,12 +9853,12 @@ declare const SSEProgressEventData: z.ZodObject<{
9520
9853
  data: z.ZodString;
9521
9854
  }, "strip", z.ZodTypeAny, {
9522
9855
  id: string;
9523
- object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
9856
+ object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
9524
9857
  name: string;
9525
9858
  data: string;
9526
9859
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
9527
- format: "code" | "llm" | "global" | "graph" | "topic_map";
9528
- output_type: "score" | "completion" | "any" | "facet" | "classification";
9860
+ format: "code" | "llm" | "global" | "topic_map" | "graph";
9861
+ output_type: "facet" | "score" | "completion" | "classification" | "any";
9529
9862
  origin?: {
9530
9863
  id: string;
9531
9864
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
@@ -9535,12 +9868,12 @@ declare const SSEProgressEventData: z.ZodObject<{
9535
9868
  } | null | undefined;
9536
9869
  }, {
9537
9870
  id: string;
9538
- object_type: "prompt" | "tool" | "parameters" | "task" | "scorer" | "custom_view" | "facet" | "preprocessor" | "classifier" | "sandbox" | "workflow";
9871
+ object_type: "prompt" | "scorer" | "task" | "tool" | "custom_view" | "preprocessor" | "facet" | "classifier" | "parameters" | "sandbox" | "workflow";
9539
9872
  name: string;
9540
9873
  data: string;
9541
9874
  event: "done" | "error" | "text_delta" | "reasoning_delta" | "json_delta" | "progress" | "console" | "start";
9542
- format: "code" | "llm" | "global" | "graph" | "topic_map";
9543
- output_type: "score" | "completion" | "any" | "facet" | "classification";
9875
+ format: "code" | "llm" | "global" | "topic_map" | "graph";
9876
+ output_type: "facet" | "score" | "completion" | "classification" | "any";
9544
9877
  origin?: {
9545
9878
  id: string;
9546
9879
  object_type: "function" | "experiment" | "dataset" | "prompt" | "prompt_session" | "project_logs";
@@ -11934,8 +12267,8 @@ declare const parametersRowSchema: z.ZodObject<{
11934
12267
  name: string;
11935
12268
  slug: string;
11936
12269
  function_type: "parameters";
11937
- metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
11938
12270
  description?: string | null | undefined;
12271
+ metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
11939
12272
  }, {
11940
12273
  _xact_id: string;
11941
12274
  id: string;
@@ -11948,8 +12281,8 @@ declare const parametersRowSchema: z.ZodObject<{
11948
12281
  name: string;
11949
12282
  slug: string;
11950
12283
  function_type: "parameters";
11951
- metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
11952
12284
  description?: string | null | undefined;
12285
+ metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
11953
12286
  }>;
11954
12287
  type ParametersRow = z.infer<typeof parametersRowSchema>;
11955
12288
 
@@ -12199,10 +12532,10 @@ declare const loginSchema: z.ZodObject<{
12199
12532
  fields: z.ZodOptional<z.ZodArray<z.ZodEnum<["commit", "branch", "tag", "dirty", "author_name", "author_email", "commit_message", "commit_time", "git_diff"]>, "many">>;
12200
12533
  }, "strip", z.ZodTypeAny, {
12201
12534
  collect: "some" | "none" | "all";
12202
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
12535
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
12203
12536
  }, {
12204
12537
  collect: "some" | "none" | "all";
12205
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
12538
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
12206
12539
  }>>>;
12207
12540
  debugLogLevel: z.ZodOptional<z.ZodEnum<["error", "warn", "info", "debug"]>>;
12208
12541
  debugLogLevelDisabled: z.ZodOptional<z.ZodBoolean>;
@@ -12216,7 +12549,7 @@ declare const loginSchema: z.ZodObject<{
12216
12549
  orgId?: string | null | undefined;
12217
12550
  gitMetadataSettings?: {
12218
12551
  collect: "some" | "none" | "all";
12219
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
12552
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
12220
12553
  } | null | undefined;
12221
12554
  debugLogLevel?: "error" | "warn" | "info" | "debug" | undefined;
12222
12555
  debugLogLevelDisabled?: boolean | undefined;
@@ -12230,7 +12563,7 @@ declare const loginSchema: z.ZodObject<{
12230
12563
  orgId?: string | null | undefined;
12231
12564
  gitMetadataSettings?: {
12232
12565
  collect: "some" | "none" | "all";
12233
- fields?: ("dirty" | "commit" | "branch" | "tag" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
12566
+ fields?: ("dirty" | "tag" | "commit" | "branch" | "author_name" | "author_email" | "commit_message" | "commit_time" | "git_diff")[] | undefined;
12234
12567
  } | null | undefined;
12235
12568
  debugLogLevel?: "error" | "warn" | "info" | "debug" | undefined;
12236
12569
  debugLogLevelDisabled?: boolean | undefined;