@deepnote/blocks 4.4.0 → 4.5.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/dist/index.d.ts CHANGED
@@ -343,8 +343,8 @@ declare const sqlBlockSchema: z.ZodObject<{
343
343
  last_executed_function_notebook_id?: string | undefined;
344
344
  last_function_run_started_at?: number | undefined;
345
345
  function_notebook_export_states?: Record<string, any> | undefined;
346
- deepnote_variable_name?: string | undefined;
347
346
  function_export_name?: string | undefined;
347
+ deepnote_variable_name?: string | undefined;
348
348
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
349
349
  sql_integration_id?: string | undefined;
350
350
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -944,8 +944,8 @@ declare const buttonBlockSchema: z.ZodObject<{
944
944
  executionStartedAt?: string | undefined;
945
945
  outputs?: any[] | undefined;
946
946
  }>;
947
- declare const agentBlockSchema: z.ZodObject<{
948
- type: z.ZodLiteral<"agent">;
947
+ declare const bigNumberBlockSchema: z.ZodObject<{
948
+ type: z.ZodLiteral<"big-number">;
949
949
  content: z.ZodOptional<z.ZodString>;
950
950
  metadata: z.ZodDefault<z.ZodObject<{
951
951
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -971,8 +971,14 @@ declare const agentBlockSchema: z.ZodObject<{
971
971
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
972
972
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
973
973
  } & {
974
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
975
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
974
+ deepnote_big_number_title: z.ZodDefault<z.ZodString>;
975
+ deepnote_big_number_value: z.ZodDefault<z.ZodString>;
976
+ deepnote_big_number_format: z.ZodDefault<z.ZodString>;
977
+ deepnote_big_number_comparison_enabled: z.ZodOptional<z.ZodBoolean>;
978
+ deepnote_big_number_comparison_title: z.ZodOptional<z.ZodString>;
979
+ deepnote_big_number_comparison_value: z.ZodOptional<z.ZodString>;
980
+ deepnote_big_number_comparison_type: z.ZodOptional<z.ZodString>;
981
+ deepnote_big_number_comparison_format: z.ZodOptional<z.ZodString>;
976
982
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
977
983
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
978
984
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -997,8 +1003,14 @@ declare const agentBlockSchema: z.ZodObject<{
997
1003
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
998
1004
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
999
1005
  } & {
1000
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
1001
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
1006
+ deepnote_big_number_title: z.ZodDefault<z.ZodString>;
1007
+ deepnote_big_number_value: z.ZodDefault<z.ZodString>;
1008
+ deepnote_big_number_format: z.ZodDefault<z.ZodString>;
1009
+ deepnote_big_number_comparison_enabled: z.ZodOptional<z.ZodBoolean>;
1010
+ deepnote_big_number_comparison_title: z.ZodOptional<z.ZodString>;
1011
+ deepnote_big_number_comparison_value: z.ZodOptional<z.ZodString>;
1012
+ deepnote_big_number_comparison_type: z.ZodOptional<z.ZodString>;
1013
+ deepnote_big_number_comparison_format: z.ZodOptional<z.ZodString>;
1002
1014
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1003
1015
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1004
1016
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -1023,8 +1035,14 @@ declare const agentBlockSchema: z.ZodObject<{
1023
1035
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1024
1036
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1025
1037
  } & {
1026
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
1027
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
1038
+ deepnote_big_number_title: z.ZodDefault<z.ZodString>;
1039
+ deepnote_big_number_value: z.ZodDefault<z.ZodString>;
1040
+ deepnote_big_number_format: z.ZodDefault<z.ZodString>;
1041
+ deepnote_big_number_comparison_enabled: z.ZodOptional<z.ZodBoolean>;
1042
+ deepnote_big_number_comparison_title: z.ZodOptional<z.ZodString>;
1043
+ deepnote_big_number_comparison_value: z.ZodOptional<z.ZodString>;
1044
+ deepnote_big_number_comparison_type: z.ZodOptional<z.ZodString>;
1045
+ deepnote_big_number_comparison_format: z.ZodOptional<z.ZodString>;
1028
1046
  }, z.ZodTypeAny, "passthrough">>>;
1029
1047
  executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1030
1048
  executionFinishedAt: z.ZodOptional<z.ZodString>;
@@ -1036,8 +1054,11 @@ declare const agentBlockSchema: z.ZodObject<{
1036
1054
  contentHash: z.ZodOptional<z.ZodString>;
1037
1055
  version: z.ZodOptional<z.ZodNumber>;
1038
1056
  }, "strip", z.ZodTypeAny, {
1039
- type: "agent";
1057
+ type: "big-number";
1040
1058
  metadata: {
1059
+ deepnote_big_number_title: string;
1060
+ deepnote_big_number_value: string;
1061
+ deepnote_big_number_format: string;
1041
1062
  deepnote_app_is_code_hidden?: boolean | undefined;
1042
1063
  deepnote_app_is_output_hidden?: boolean | undefined;
1043
1064
  deepnote_app_block_visible?: boolean | undefined;
@@ -1059,8 +1080,11 @@ declare const agentBlockSchema: z.ZodObject<{
1059
1080
  last_executed_function_notebook_id?: string | undefined;
1060
1081
  last_function_run_started_at?: number | undefined;
1061
1082
  function_notebook_export_states?: Record<string, any> | undefined;
1062
- deepnote_variable_name?: string | undefined;
1063
- deepnote_agent_model?: string | undefined;
1083
+ deepnote_big_number_comparison_enabled?: boolean | undefined;
1084
+ deepnote_big_number_comparison_title?: string | undefined;
1085
+ deepnote_big_number_comparison_value?: string | undefined;
1086
+ deepnote_big_number_comparison_type?: string | undefined;
1087
+ deepnote_big_number_comparison_format?: string | undefined;
1064
1088
  } & {
1065
1089
  [k: string]: unknown;
1066
1090
  };
@@ -1075,7 +1099,7 @@ declare const agentBlockSchema: z.ZodObject<{
1075
1099
  executionStartedAt?: string | undefined;
1076
1100
  outputs?: any[] | undefined;
1077
1101
  }, {
1078
- type: "agent";
1102
+ type: "big-number";
1079
1103
  id: string;
1080
1104
  blockGroup: string;
1081
1105
  sortingKey: string;
@@ -1104,8 +1128,14 @@ declare const agentBlockSchema: z.ZodObject<{
1104
1128
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1105
1129
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1106
1130
  } & {
1107
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
1108
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
1131
+ deepnote_big_number_title: z.ZodDefault<z.ZodString>;
1132
+ deepnote_big_number_value: z.ZodDefault<z.ZodString>;
1133
+ deepnote_big_number_format: z.ZodDefault<z.ZodString>;
1134
+ deepnote_big_number_comparison_enabled: z.ZodOptional<z.ZodBoolean>;
1135
+ deepnote_big_number_comparison_title: z.ZodOptional<z.ZodString>;
1136
+ deepnote_big_number_comparison_value: z.ZodOptional<z.ZodString>;
1137
+ deepnote_big_number_comparison_type: z.ZodOptional<z.ZodString>;
1138
+ deepnote_big_number_comparison_format: z.ZodOptional<z.ZodString>;
1109
1139
  }, z.ZodTypeAny, "passthrough"> | undefined;
1110
1140
  contentHash?: string | undefined;
1111
1141
  version?: number | undefined;
@@ -1114,8 +1144,25 @@ declare const agentBlockSchema: z.ZodObject<{
1114
1144
  executionStartedAt?: string | undefined;
1115
1145
  outputs?: any[] | undefined;
1116
1146
  }>;
1117
- declare const bigNumberBlockSchema: z.ZodObject<{
1118
- type: z.ZodLiteral<"big-number">;
1147
+ declare const mcpServerSchema: z.ZodObject<{
1148
+ name: z.ZodString;
1149
+ command: z.ZodString;
1150
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1151
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1152
+ }, "strip", z.ZodTypeAny, {
1153
+ name: string;
1154
+ command: string;
1155
+ args?: string[] | undefined;
1156
+ env?: Record<string, string> | undefined;
1157
+ }, {
1158
+ name: string;
1159
+ command: string;
1160
+ args?: string[] | undefined;
1161
+ env?: Record<string, string> | undefined;
1162
+ }>;
1163
+ type McpServerConfig = z.infer<typeof mcpServerSchema>;
1164
+ declare const agentBlockSchema: z.ZodObject<{
1165
+ type: z.ZodLiteral<"agent">;
1119
1166
  content: z.ZodOptional<z.ZodString>;
1120
1167
  metadata: z.ZodDefault<z.ZodObject<{
1121
1168
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -1141,14 +1188,23 @@ declare const bigNumberBlockSchema: z.ZodObject<{
1141
1188
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1142
1189
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1143
1190
  } & {
1144
- deepnote_big_number_title: z.ZodDefault<z.ZodString>;
1145
- deepnote_big_number_value: z.ZodDefault<z.ZodString>;
1146
- deepnote_big_number_format: z.ZodDefault<z.ZodString>;
1147
- deepnote_big_number_comparison_enabled: z.ZodOptional<z.ZodBoolean>;
1148
- deepnote_big_number_comparison_title: z.ZodOptional<z.ZodString>;
1149
- deepnote_big_number_comparison_value: z.ZodOptional<z.ZodString>;
1150
- deepnote_big_number_comparison_type: z.ZodOptional<z.ZodString>;
1151
- deepnote_big_number_comparison_format: z.ZodOptional<z.ZodString>;
1191
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
1192
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1193
+ name: z.ZodString;
1194
+ command: z.ZodString;
1195
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1196
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ name: string;
1199
+ command: string;
1200
+ args?: string[] | undefined;
1201
+ env?: Record<string, string> | undefined;
1202
+ }, {
1203
+ name: string;
1204
+ command: string;
1205
+ args?: string[] | undefined;
1206
+ env?: Record<string, string> | undefined;
1207
+ }>, "many">>;
1152
1208
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1153
1209
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1154
1210
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -1173,14 +1229,23 @@ declare const bigNumberBlockSchema: z.ZodObject<{
1173
1229
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1174
1230
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1175
1231
  } & {
1176
- deepnote_big_number_title: z.ZodDefault<z.ZodString>;
1177
- deepnote_big_number_value: z.ZodDefault<z.ZodString>;
1178
- deepnote_big_number_format: z.ZodDefault<z.ZodString>;
1179
- deepnote_big_number_comparison_enabled: z.ZodOptional<z.ZodBoolean>;
1180
- deepnote_big_number_comparison_title: z.ZodOptional<z.ZodString>;
1181
- deepnote_big_number_comparison_value: z.ZodOptional<z.ZodString>;
1182
- deepnote_big_number_comparison_type: z.ZodOptional<z.ZodString>;
1183
- deepnote_big_number_comparison_format: z.ZodOptional<z.ZodString>;
1232
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
1233
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1234
+ name: z.ZodString;
1235
+ command: z.ZodString;
1236
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1237
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1238
+ }, "strip", z.ZodTypeAny, {
1239
+ name: string;
1240
+ command: string;
1241
+ args?: string[] | undefined;
1242
+ env?: Record<string, string> | undefined;
1243
+ }, {
1244
+ name: string;
1245
+ command: string;
1246
+ args?: string[] | undefined;
1247
+ env?: Record<string, string> | undefined;
1248
+ }>, "many">>;
1184
1249
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1185
1250
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1186
1251
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -1205,14 +1270,23 @@ declare const bigNumberBlockSchema: z.ZodObject<{
1205
1270
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1206
1271
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1207
1272
  } & {
1208
- deepnote_big_number_title: z.ZodDefault<z.ZodString>;
1209
- deepnote_big_number_value: z.ZodDefault<z.ZodString>;
1210
- deepnote_big_number_format: z.ZodDefault<z.ZodString>;
1211
- deepnote_big_number_comparison_enabled: z.ZodOptional<z.ZodBoolean>;
1212
- deepnote_big_number_comparison_title: z.ZodOptional<z.ZodString>;
1213
- deepnote_big_number_comparison_value: z.ZodOptional<z.ZodString>;
1214
- deepnote_big_number_comparison_type: z.ZodOptional<z.ZodString>;
1215
- deepnote_big_number_comparison_format: z.ZodOptional<z.ZodString>;
1273
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
1274
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1275
+ name: z.ZodString;
1276
+ command: z.ZodString;
1277
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1278
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ name: string;
1281
+ command: string;
1282
+ args?: string[] | undefined;
1283
+ env?: Record<string, string> | undefined;
1284
+ }, {
1285
+ name: string;
1286
+ command: string;
1287
+ args?: string[] | undefined;
1288
+ env?: Record<string, string> | undefined;
1289
+ }>, "many">>;
1216
1290
  }, z.ZodTypeAny, "passthrough">>>;
1217
1291
  executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1218
1292
  executionFinishedAt: z.ZodOptional<z.ZodString>;
@@ -1224,11 +1298,9 @@ declare const bigNumberBlockSchema: z.ZodObject<{
1224
1298
  contentHash: z.ZodOptional<z.ZodString>;
1225
1299
  version: z.ZodOptional<z.ZodNumber>;
1226
1300
  }, "strip", z.ZodTypeAny, {
1227
- type: "big-number";
1301
+ type: "agent";
1228
1302
  metadata: {
1229
- deepnote_big_number_title: string;
1230
- deepnote_big_number_value: string;
1231
- deepnote_big_number_format: string;
1303
+ deepnote_agent_model: string;
1232
1304
  deepnote_app_is_code_hidden?: boolean | undefined;
1233
1305
  deepnote_app_is_output_hidden?: boolean | undefined;
1234
1306
  deepnote_app_block_visible?: boolean | undefined;
@@ -1250,11 +1322,12 @@ declare const bigNumberBlockSchema: z.ZodObject<{
1250
1322
  last_executed_function_notebook_id?: string | undefined;
1251
1323
  last_function_run_started_at?: number | undefined;
1252
1324
  function_notebook_export_states?: Record<string, any> | undefined;
1253
- deepnote_big_number_comparison_enabled?: boolean | undefined;
1254
- deepnote_big_number_comparison_title?: string | undefined;
1255
- deepnote_big_number_comparison_value?: string | undefined;
1256
- deepnote_big_number_comparison_type?: string | undefined;
1257
- deepnote_big_number_comparison_format?: string | undefined;
1325
+ deepnote_mcp_servers?: {
1326
+ name: string;
1327
+ command: string;
1328
+ args?: string[] | undefined;
1329
+ env?: Record<string, string> | undefined;
1330
+ }[] | undefined;
1258
1331
  } & {
1259
1332
  [k: string]: unknown;
1260
1333
  };
@@ -1269,7 +1342,7 @@ declare const bigNumberBlockSchema: z.ZodObject<{
1269
1342
  executionStartedAt?: string | undefined;
1270
1343
  outputs?: any[] | undefined;
1271
1344
  }, {
1272
- type: "big-number";
1345
+ type: "agent";
1273
1346
  id: string;
1274
1347
  blockGroup: string;
1275
1348
  sortingKey: string;
@@ -1298,14 +1371,23 @@ declare const bigNumberBlockSchema: z.ZodObject<{
1298
1371
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1299
1372
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1300
1373
  } & {
1301
- deepnote_big_number_title: z.ZodDefault<z.ZodString>;
1302
- deepnote_big_number_value: z.ZodDefault<z.ZodString>;
1303
- deepnote_big_number_format: z.ZodDefault<z.ZodString>;
1304
- deepnote_big_number_comparison_enabled: z.ZodOptional<z.ZodBoolean>;
1305
- deepnote_big_number_comparison_title: z.ZodOptional<z.ZodString>;
1306
- deepnote_big_number_comparison_value: z.ZodOptional<z.ZodString>;
1307
- deepnote_big_number_comparison_type: z.ZodOptional<z.ZodString>;
1308
- deepnote_big_number_comparison_format: z.ZodOptional<z.ZodString>;
1374
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
1375
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1376
+ name: z.ZodString;
1377
+ command: z.ZodString;
1378
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1379
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1380
+ }, "strip", z.ZodTypeAny, {
1381
+ name: string;
1382
+ command: string;
1383
+ args?: string[] | undefined;
1384
+ env?: Record<string, string> | undefined;
1385
+ }, {
1386
+ name: string;
1387
+ command: string;
1388
+ args?: string[] | undefined;
1389
+ env?: Record<string, string> | undefined;
1390
+ }>, "many">>;
1309
1391
  }, z.ZodTypeAny, "passthrough"> | undefined;
1310
1392
  contentHash?: string | undefined;
1311
1393
  version?: number | undefined;
@@ -3707,8 +3789,23 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
3707
3789
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
3708
3790
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3709
3791
  } & {
3710
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
3711
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
3792
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
3793
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3794
+ name: z.ZodString;
3795
+ command: z.ZodString;
3796
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3797
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3798
+ }, "strip", z.ZodTypeAny, {
3799
+ name: string;
3800
+ command: string;
3801
+ args?: string[] | undefined;
3802
+ env?: Record<string, string> | undefined;
3803
+ }, {
3804
+ name: string;
3805
+ command: string;
3806
+ args?: string[] | undefined;
3807
+ env?: Record<string, string> | undefined;
3808
+ }>, "many">>;
3712
3809
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3713
3810
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3714
3811
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -3733,8 +3830,23 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
3733
3830
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
3734
3831
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3735
3832
  } & {
3736
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
3737
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
3833
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
3834
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3835
+ name: z.ZodString;
3836
+ command: z.ZodString;
3837
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3838
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3839
+ }, "strip", z.ZodTypeAny, {
3840
+ name: string;
3841
+ command: string;
3842
+ args?: string[] | undefined;
3843
+ env?: Record<string, string> | undefined;
3844
+ }, {
3845
+ name: string;
3846
+ command: string;
3847
+ args?: string[] | undefined;
3848
+ env?: Record<string, string> | undefined;
3849
+ }>, "many">>;
3738
3850
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3739
3851
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3740
3852
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -3759,8 +3871,23 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
3759
3871
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
3760
3872
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3761
3873
  } & {
3762
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
3763
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
3874
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
3875
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3876
+ name: z.ZodString;
3877
+ command: z.ZodString;
3878
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3879
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3880
+ }, "strip", z.ZodTypeAny, {
3881
+ name: string;
3882
+ command: string;
3883
+ args?: string[] | undefined;
3884
+ env?: Record<string, string> | undefined;
3885
+ }, {
3886
+ name: string;
3887
+ command: string;
3888
+ args?: string[] | undefined;
3889
+ env?: Record<string, string> | undefined;
3890
+ }>, "many">>;
3764
3891
  }, z.ZodTypeAny, "passthrough">>>;
3765
3892
  executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3766
3893
  executionFinishedAt: z.ZodOptional<z.ZodString>;
@@ -3774,6 +3901,7 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
3774
3901
  }, "strip", z.ZodTypeAny, {
3775
3902
  type: "agent";
3776
3903
  metadata: {
3904
+ deepnote_agent_model: string;
3777
3905
  deepnote_app_is_code_hidden?: boolean | undefined;
3778
3906
  deepnote_app_is_output_hidden?: boolean | undefined;
3779
3907
  deepnote_app_block_visible?: boolean | undefined;
@@ -3795,8 +3923,12 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
3795
3923
  last_executed_function_notebook_id?: string | undefined;
3796
3924
  last_function_run_started_at?: number | undefined;
3797
3925
  function_notebook_export_states?: Record<string, any> | undefined;
3798
- deepnote_variable_name?: string | undefined;
3799
- deepnote_agent_model?: string | undefined;
3926
+ deepnote_mcp_servers?: {
3927
+ name: string;
3928
+ command: string;
3929
+ args?: string[] | undefined;
3930
+ env?: Record<string, string> | undefined;
3931
+ }[] | undefined;
3800
3932
  } & {
3801
3933
  [k: string]: unknown;
3802
3934
  };
@@ -3840,8 +3972,23 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
3840
3972
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
3841
3973
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3842
3974
  } & {
3843
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
3844
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
3975
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
3976
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3977
+ name: z.ZodString;
3978
+ command: z.ZodString;
3979
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3980
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3981
+ }, "strip", z.ZodTypeAny, {
3982
+ name: string;
3983
+ command: string;
3984
+ args?: string[] | undefined;
3985
+ env?: Record<string, string> | undefined;
3986
+ }, {
3987
+ name: string;
3988
+ command: string;
3989
+ args?: string[] | undefined;
3990
+ env?: Record<string, string> | undefined;
3991
+ }>, "many">>;
3845
3992
  }, z.ZodTypeAny, "passthrough"> | undefined;
3846
3993
  contentHash?: string | undefined;
3847
3994
  version?: number | undefined;
@@ -4137,8 +4284,8 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
4137
4284
  last_executed_function_notebook_id?: string | undefined;
4138
4285
  last_function_run_started_at?: number | undefined;
4139
4286
  function_notebook_export_states?: Record<string, any> | undefined;
4140
- deepnote_variable_name?: string | undefined;
4141
4287
  function_export_name?: string | undefined;
4288
+ deepnote_variable_name?: string | undefined;
4142
4289
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
4143
4290
  sql_integration_id?: string | undefined;
4144
4291
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -6535,12 +6682,12 @@ declare const executionErrorSchema: z.ZodOptional<z.ZodObject<{
6535
6682
  name: z.ZodOptional<z.ZodString>;
6536
6683
  traceback: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6537
6684
  }, "strip", z.ZodTypeAny, {
6538
- message?: string | undefined;
6539
6685
  name?: string | undefined;
6686
+ message?: string | undefined;
6540
6687
  traceback?: string[] | undefined;
6541
6688
  }, {
6542
- message?: string | undefined;
6543
6689
  name?: string | undefined;
6690
+ message?: string | undefined;
6544
6691
  traceback?: string[] | undefined;
6545
6692
  }>>;
6546
6693
  type ExecutionError = z.infer<typeof executionErrorSchema>;
@@ -6550,12 +6697,12 @@ declare const executionSchema: z.ZodOptional<z.ZodObject<{
6550
6697
  name: z.ZodOptional<z.ZodString>;
6551
6698
  traceback: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6552
6699
  }, "strip", z.ZodTypeAny, {
6553
- message?: string | undefined;
6554
6700
  name?: string | undefined;
6701
+ message?: string | undefined;
6555
6702
  traceback?: string[] | undefined;
6556
6703
  }, {
6557
- message?: string | undefined;
6558
6704
  name?: string | undefined;
6705
+ message?: string | undefined;
6559
6706
  traceback?: string[] | undefined;
6560
6707
  }>>;
6561
6708
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -6580,8 +6727,8 @@ declare const executionSchema: z.ZodOptional<z.ZodObject<{
6580
6727
  triggeredBy: z.ZodOptional<z.ZodEnum<["user", "schedule", "api", "ci"]>>;
6581
6728
  }, "strip", z.ZodTypeAny, {
6582
6729
  error?: {
6583
- message?: string | undefined;
6584
6730
  name?: string | undefined;
6731
+ message?: string | undefined;
6585
6732
  traceback?: string[] | undefined;
6586
6733
  } | undefined;
6587
6734
  finishedAt?: string | undefined;
@@ -6596,8 +6743,8 @@ declare const executionSchema: z.ZodOptional<z.ZodObject<{
6596
6743
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
6597
6744
  }, {
6598
6745
  error?: {
6599
- message?: string | undefined;
6600
6746
  name?: string | undefined;
6747
+ message?: string | undefined;
6601
6748
  traceback?: string[] | undefined;
6602
6749
  } | undefined;
6603
6750
  finishedAt?: string | undefined;
@@ -6653,12 +6800,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
6653
6800
  name: z.ZodOptional<z.ZodString>;
6654
6801
  traceback: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6655
6802
  }, "strip", z.ZodTypeAny, {
6656
- message?: string | undefined;
6657
6803
  name?: string | undefined;
6804
+ message?: string | undefined;
6658
6805
  traceback?: string[] | undefined;
6659
6806
  }, {
6660
- message?: string | undefined;
6661
6807
  name?: string | undefined;
6808
+ message?: string | undefined;
6662
6809
  traceback?: string[] | undefined;
6663
6810
  }>>;
6664
6811
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -6683,8 +6830,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
6683
6830
  triggeredBy: z.ZodOptional<z.ZodEnum<["user", "schedule", "api", "ci"]>>;
6684
6831
  }, "strip", z.ZodTypeAny, {
6685
6832
  error?: {
6686
- message?: string | undefined;
6687
6833
  name?: string | undefined;
6834
+ message?: string | undefined;
6688
6835
  traceback?: string[] | undefined;
6689
6836
  } | undefined;
6690
6837
  finishedAt?: string | undefined;
@@ -6699,8 +6846,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
6699
6846
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
6700
6847
  }, {
6701
6848
  error?: {
6702
- message?: string | undefined;
6703
6849
  name?: string | undefined;
6850
+ message?: string | undefined;
6704
6851
  traceback?: string[] | undefined;
6705
6852
  } | undefined;
6706
6853
  finishedAt?: string | undefined;
@@ -6738,13 +6885,13 @@ declare const deepnoteFileSchema: z.ZodObject<{
6738
6885
  name: z.ZodString;
6739
6886
  type: z.ZodString;
6740
6887
  }, "strip", z.ZodTypeAny, {
6888
+ name: string;
6741
6889
  type: string;
6742
6890
  id: string;
6743
- name: string;
6744
6891
  }, {
6892
+ name: string;
6745
6893
  type: string;
6746
6894
  id: string;
6747
- name: string;
6748
6895
  }>, "many">>;
6749
6896
  name: z.ZodString;
6750
6897
  notebooks: z.ZodArray<z.ZodObject<{
@@ -7609,8 +7756,23 @@ declare const deepnoteFileSchema: z.ZodObject<{
7609
7756
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
7610
7757
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7611
7758
  } & {
7612
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
7613
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
7759
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
7760
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7761
+ name: z.ZodString;
7762
+ command: z.ZodString;
7763
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7764
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7765
+ }, "strip", z.ZodTypeAny, {
7766
+ name: string;
7767
+ command: string;
7768
+ args?: string[] | undefined;
7769
+ env?: Record<string, string> | undefined;
7770
+ }, {
7771
+ name: string;
7772
+ command: string;
7773
+ args?: string[] | undefined;
7774
+ env?: Record<string, string> | undefined;
7775
+ }>, "many">>;
7614
7776
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7615
7777
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7616
7778
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -7635,8 +7797,23 @@ declare const deepnoteFileSchema: z.ZodObject<{
7635
7797
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
7636
7798
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7637
7799
  } & {
7638
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
7639
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
7800
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
7801
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7802
+ name: z.ZodString;
7803
+ command: z.ZodString;
7804
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7805
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7806
+ }, "strip", z.ZodTypeAny, {
7807
+ name: string;
7808
+ command: string;
7809
+ args?: string[] | undefined;
7810
+ env?: Record<string, string> | undefined;
7811
+ }, {
7812
+ name: string;
7813
+ command: string;
7814
+ args?: string[] | undefined;
7815
+ env?: Record<string, string> | undefined;
7816
+ }>, "many">>;
7640
7817
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7641
7818
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7642
7819
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -7661,8 +7838,23 @@ declare const deepnoteFileSchema: z.ZodObject<{
7661
7838
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
7662
7839
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7663
7840
  } & {
7664
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
7665
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
7841
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
7842
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7843
+ name: z.ZodString;
7844
+ command: z.ZodString;
7845
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7846
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7847
+ }, "strip", z.ZodTypeAny, {
7848
+ name: string;
7849
+ command: string;
7850
+ args?: string[] | undefined;
7851
+ env?: Record<string, string> | undefined;
7852
+ }, {
7853
+ name: string;
7854
+ command: string;
7855
+ args?: string[] | undefined;
7856
+ env?: Record<string, string> | undefined;
7857
+ }>, "many">>;
7666
7858
  }, z.ZodTypeAny, "passthrough">>>;
7667
7859
  executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7668
7860
  executionFinishedAt: z.ZodOptional<z.ZodString>;
@@ -7676,6 +7868,7 @@ declare const deepnoteFileSchema: z.ZodObject<{
7676
7868
  }, "strip", z.ZodTypeAny, {
7677
7869
  type: "agent";
7678
7870
  metadata: {
7871
+ deepnote_agent_model: string;
7679
7872
  deepnote_app_is_code_hidden?: boolean | undefined;
7680
7873
  deepnote_app_is_output_hidden?: boolean | undefined;
7681
7874
  deepnote_app_block_visible?: boolean | undefined;
@@ -7697,8 +7890,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
7697
7890
  last_executed_function_notebook_id?: string | undefined;
7698
7891
  last_function_run_started_at?: number | undefined;
7699
7892
  function_notebook_export_states?: Record<string, any> | undefined;
7700
- deepnote_variable_name?: string | undefined;
7701
- deepnote_agent_model?: string | undefined;
7893
+ deepnote_mcp_servers?: {
7894
+ name: string;
7895
+ command: string;
7896
+ args?: string[] | undefined;
7897
+ env?: Record<string, string> | undefined;
7898
+ }[] | undefined;
7702
7899
  } & {
7703
7900
  [k: string]: unknown;
7704
7901
  };
@@ -7742,8 +7939,23 @@ declare const deepnoteFileSchema: z.ZodObject<{
7742
7939
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
7743
7940
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7744
7941
  } & {
7745
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
7746
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
7942
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
7943
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
7944
+ name: z.ZodString;
7945
+ command: z.ZodString;
7946
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7947
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7948
+ }, "strip", z.ZodTypeAny, {
7949
+ name: string;
7950
+ command: string;
7951
+ args?: string[] | undefined;
7952
+ env?: Record<string, string> | undefined;
7953
+ }, {
7954
+ name: string;
7955
+ command: string;
7956
+ args?: string[] | undefined;
7957
+ env?: Record<string, string> | undefined;
7958
+ }>, "many">>;
7747
7959
  }, z.ZodTypeAny, "passthrough"> | undefined;
7748
7960
  contentHash?: string | undefined;
7749
7961
  version?: number | undefined;
@@ -8039,8 +8251,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
8039
8251
  last_executed_function_notebook_id?: string | undefined;
8040
8252
  last_function_run_started_at?: number | undefined;
8041
8253
  function_notebook_export_states?: Record<string, any> | undefined;
8042
- deepnote_variable_name?: string | undefined;
8043
8254
  function_export_name?: string | undefined;
8255
+ deepnote_variable_name?: string | undefined;
8044
8256
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
8045
8257
  sql_integration_id?: string | undefined;
8046
8258
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -10366,8 +10578,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
10366
10578
  name: z.ZodString;
10367
10579
  workingDirectory: z.ZodOptional<z.ZodString>;
10368
10580
  }, "strip", z.ZodTypeAny, {
10369
- id: string;
10370
10581
  name: string;
10582
+ id: string;
10371
10583
  blocks: ({
10372
10584
  type: "markdown";
10373
10585
  metadata: {
@@ -10581,6 +10793,7 @@ declare const deepnoteFileSchema: z.ZodObject<{
10581
10793
  } | {
10582
10794
  type: "agent";
10583
10795
  metadata: {
10796
+ deepnote_agent_model: string;
10584
10797
  deepnote_app_is_code_hidden?: boolean | undefined;
10585
10798
  deepnote_app_is_output_hidden?: boolean | undefined;
10586
10799
  deepnote_app_block_visible?: boolean | undefined;
@@ -10602,8 +10815,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
10602
10815
  last_executed_function_notebook_id?: string | undefined;
10603
10816
  last_function_run_started_at?: number | undefined;
10604
10817
  function_notebook_export_states?: Record<string, any> | undefined;
10605
- deepnote_variable_name?: string | undefined;
10606
- deepnote_agent_model?: string | undefined;
10818
+ deepnote_mcp_servers?: {
10819
+ name: string;
10820
+ command: string;
10821
+ args?: string[] | undefined;
10822
+ env?: Record<string, string> | undefined;
10823
+ }[] | undefined;
10607
10824
  } & {
10608
10825
  [k: string]: unknown;
10609
10826
  };
@@ -10679,8 +10896,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
10679
10896
  last_executed_function_notebook_id?: string | undefined;
10680
10897
  last_function_run_started_at?: number | undefined;
10681
10898
  function_notebook_export_states?: Record<string, any> | undefined;
10682
- deepnote_variable_name?: string | undefined;
10683
10899
  function_export_name?: string | undefined;
10900
+ deepnote_variable_name?: string | undefined;
10684
10901
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
10685
10902
  sql_integration_id?: string | undefined;
10686
10903
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -11210,8 +11427,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
11210
11427
  isModule?: boolean | undefined;
11211
11428
  workingDirectory?: string | undefined;
11212
11429
  }, {
11213
- id: string;
11214
11430
  name: string;
11431
+ id: string;
11215
11432
  blocks: ({
11216
11433
  type: "markdown";
11217
11434
  id: string;
@@ -11443,8 +11660,23 @@ declare const deepnoteFileSchema: z.ZodObject<{
11443
11660
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
11444
11661
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11445
11662
  } & {
11446
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
11447
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
11663
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
11664
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
11665
+ name: z.ZodString;
11666
+ command: z.ZodString;
11667
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11668
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11669
+ }, "strip", z.ZodTypeAny, {
11670
+ name: string;
11671
+ command: string;
11672
+ args?: string[] | undefined;
11673
+ env?: Record<string, string> | undefined;
11674
+ }, {
11675
+ name: string;
11676
+ command: string;
11677
+ args?: string[] | undefined;
11678
+ env?: Record<string, string> | undefined;
11679
+ }>, "many">>;
11448
11680
  }, z.ZodTypeAny, "passthrough"> | undefined;
11449
11681
  contentHash?: string | undefined;
11450
11682
  version?: number | undefined;
@@ -12068,6 +12300,22 @@ declare const deepnoteFileSchema: z.ZodObject<{
12068
12300
  customImage?: string | undefined;
12069
12301
  pythonVersion?: string | undefined;
12070
12302
  }>>;
12303
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
12304
+ name: z.ZodString;
12305
+ command: z.ZodString;
12306
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12307
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
12308
+ }, "strip", z.ZodTypeAny, {
12309
+ name: string;
12310
+ command: string;
12311
+ args?: string[] | undefined;
12312
+ env?: Record<string, string> | undefined;
12313
+ }, {
12314
+ name: string;
12315
+ command: string;
12316
+ args?: string[] | undefined;
12317
+ env?: Record<string, string> | undefined;
12318
+ }>, "many">>;
12071
12319
  requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12072
12320
  sqlCacheMaxAge: z.ZodOptional<z.ZodNumber>;
12073
12321
  }, "strip", z.ZodTypeAny, {
@@ -12075,6 +12323,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
12075
12323
  customImage?: string | undefined;
12076
12324
  pythonVersion?: string | undefined;
12077
12325
  } | undefined;
12326
+ mcpServers?: {
12327
+ name: string;
12328
+ command: string;
12329
+ args?: string[] | undefined;
12330
+ env?: Record<string, string> | undefined;
12331
+ }[] | undefined;
12078
12332
  requirements?: string[] | undefined;
12079
12333
  sqlCacheMaxAge?: number | undefined;
12080
12334
  }, {
@@ -12082,15 +12336,21 @@ declare const deepnoteFileSchema: z.ZodObject<{
12082
12336
  customImage?: string | undefined;
12083
12337
  pythonVersion?: string | undefined;
12084
12338
  } | undefined;
12339
+ mcpServers?: {
12340
+ name: string;
12341
+ command: string;
12342
+ args?: string[] | undefined;
12343
+ env?: Record<string, string> | undefined;
12344
+ }[] | undefined;
12085
12345
  requirements?: string[] | undefined;
12086
12346
  sqlCacheMaxAge?: number | undefined;
12087
12347
  }>>;
12088
12348
  }, "strip", z.ZodTypeAny, {
12089
- id: string;
12090
12349
  name: string;
12350
+ id: string;
12091
12351
  notebooks: {
12092
- id: string;
12093
12352
  name: string;
12353
+ id: string;
12094
12354
  blocks: ({
12095
12355
  type: "markdown";
12096
12356
  metadata: {
@@ -12304,6 +12564,7 @@ declare const deepnoteFileSchema: z.ZodObject<{
12304
12564
  } | {
12305
12565
  type: "agent";
12306
12566
  metadata: {
12567
+ deepnote_agent_model: string;
12307
12568
  deepnote_app_is_code_hidden?: boolean | undefined;
12308
12569
  deepnote_app_is_output_hidden?: boolean | undefined;
12309
12570
  deepnote_app_block_visible?: boolean | undefined;
@@ -12325,8 +12586,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
12325
12586
  last_executed_function_notebook_id?: string | undefined;
12326
12587
  last_function_run_started_at?: number | undefined;
12327
12588
  function_notebook_export_states?: Record<string, any> | undefined;
12328
- deepnote_variable_name?: string | undefined;
12329
- deepnote_agent_model?: string | undefined;
12589
+ deepnote_mcp_servers?: {
12590
+ name: string;
12591
+ command: string;
12592
+ args?: string[] | undefined;
12593
+ env?: Record<string, string> | undefined;
12594
+ }[] | undefined;
12330
12595
  } & {
12331
12596
  [k: string]: unknown;
12332
12597
  };
@@ -12402,8 +12667,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
12402
12667
  last_executed_function_notebook_id?: string | undefined;
12403
12668
  last_function_run_started_at?: number | undefined;
12404
12669
  function_notebook_export_states?: Record<string, any> | undefined;
12405
- deepnote_variable_name?: string | undefined;
12406
12670
  function_export_name?: string | undefined;
12671
+ deepnote_variable_name?: string | undefined;
12407
12672
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
12408
12673
  sql_integration_id?: string | undefined;
12409
12674
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -12935,24 +13200,30 @@ declare const deepnoteFileSchema: z.ZodObject<{
12935
13200
  }[];
12936
13201
  initNotebookId?: string | undefined;
12937
13202
  integrations?: {
13203
+ name: string;
12938
13204
  type: string;
12939
13205
  id: string;
12940
- name: string;
12941
13206
  }[] | undefined;
12942
13207
  settings?: {
12943
13208
  environment?: {
12944
13209
  customImage?: string | undefined;
12945
13210
  pythonVersion?: string | undefined;
12946
13211
  } | undefined;
13212
+ mcpServers?: {
13213
+ name: string;
13214
+ command: string;
13215
+ args?: string[] | undefined;
13216
+ env?: Record<string, string> | undefined;
13217
+ }[] | undefined;
12947
13218
  requirements?: string[] | undefined;
12948
13219
  sqlCacheMaxAge?: number | undefined;
12949
13220
  } | undefined;
12950
13221
  }, {
12951
- id: string;
12952
13222
  name: string;
13223
+ id: string;
12953
13224
  notebooks: {
12954
- id: string;
12955
13225
  name: string;
13226
+ id: string;
12956
13227
  blocks: ({
12957
13228
  type: "markdown";
12958
13229
  id: string;
@@ -13184,8 +13455,23 @@ declare const deepnoteFileSchema: z.ZodObject<{
13184
13455
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
13185
13456
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13186
13457
  } & {
13187
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
13188
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
13458
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
13459
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
13460
+ name: z.ZodString;
13461
+ command: z.ZodString;
13462
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13463
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13464
+ }, "strip", z.ZodTypeAny, {
13465
+ name: string;
13466
+ command: string;
13467
+ args?: string[] | undefined;
13468
+ env?: Record<string, string> | undefined;
13469
+ }, {
13470
+ name: string;
13471
+ command: string;
13472
+ args?: string[] | undefined;
13473
+ env?: Record<string, string> | undefined;
13474
+ }>, "many">>;
13189
13475
  }, z.ZodTypeAny, "passthrough"> | undefined;
13190
13476
  contentHash?: string | undefined;
13191
13477
  version?: number | undefined;
@@ -13796,15 +14082,21 @@ declare const deepnoteFileSchema: z.ZodObject<{
13796
14082
  }[];
13797
14083
  initNotebookId?: string | undefined;
13798
14084
  integrations?: {
14085
+ name: string;
13799
14086
  type: string;
13800
14087
  id: string;
13801
- name: string;
13802
14088
  }[] | undefined;
13803
14089
  settings?: {
13804
14090
  environment?: {
13805
14091
  customImage?: string | undefined;
13806
14092
  pythonVersion?: string | undefined;
13807
14093
  } | undefined;
14094
+ mcpServers?: {
14095
+ name: string;
14096
+ command: string;
14097
+ args?: string[] | undefined;
14098
+ env?: Record<string, string> | undefined;
14099
+ }[] | undefined;
13808
14100
  requirements?: string[] | undefined;
13809
14101
  sqlCacheMaxAge?: number | undefined;
13810
14102
  } | undefined;
@@ -13819,11 +14111,11 @@ declare const deepnoteFileSchema: z.ZodObject<{
13819
14111
  };
13820
14112
  version: string;
13821
14113
  project: {
13822
- id: string;
13823
14114
  name: string;
14115
+ id: string;
13824
14116
  notebooks: {
13825
- id: string;
13826
14117
  name: string;
14118
+ id: string;
13827
14119
  blocks: ({
13828
14120
  type: "markdown";
13829
14121
  metadata: {
@@ -14037,6 +14329,7 @@ declare const deepnoteFileSchema: z.ZodObject<{
14037
14329
  } | {
14038
14330
  type: "agent";
14039
14331
  metadata: {
14332
+ deepnote_agent_model: string;
14040
14333
  deepnote_app_is_code_hidden?: boolean | undefined;
14041
14334
  deepnote_app_is_output_hidden?: boolean | undefined;
14042
14335
  deepnote_app_block_visible?: boolean | undefined;
@@ -14058,8 +14351,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
14058
14351
  last_executed_function_notebook_id?: string | undefined;
14059
14352
  last_function_run_started_at?: number | undefined;
14060
14353
  function_notebook_export_states?: Record<string, any> | undefined;
14061
- deepnote_variable_name?: string | undefined;
14062
- deepnote_agent_model?: string | undefined;
14354
+ deepnote_mcp_servers?: {
14355
+ name: string;
14356
+ command: string;
14357
+ args?: string[] | undefined;
14358
+ env?: Record<string, string> | undefined;
14359
+ }[] | undefined;
14063
14360
  } & {
14064
14361
  [k: string]: unknown;
14065
14362
  };
@@ -14135,8 +14432,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
14135
14432
  last_executed_function_notebook_id?: string | undefined;
14136
14433
  last_function_run_started_at?: number | undefined;
14137
14434
  function_notebook_export_states?: Record<string, any> | undefined;
14138
- deepnote_variable_name?: string | undefined;
14139
14435
  function_export_name?: string | undefined;
14436
+ deepnote_variable_name?: string | undefined;
14140
14437
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
14141
14438
  sql_integration_id?: string | undefined;
14142
14439
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -14668,15 +14965,21 @@ declare const deepnoteFileSchema: z.ZodObject<{
14668
14965
  }[];
14669
14966
  initNotebookId?: string | undefined;
14670
14967
  integrations?: {
14968
+ name: string;
14671
14969
  type: string;
14672
14970
  id: string;
14673
- name: string;
14674
14971
  }[] | undefined;
14675
14972
  settings?: {
14676
14973
  environment?: {
14677
14974
  customImage?: string | undefined;
14678
14975
  pythonVersion?: string | undefined;
14679
14976
  } | undefined;
14977
+ mcpServers?: {
14978
+ name: string;
14979
+ command: string;
14980
+ args?: string[] | undefined;
14981
+ env?: Record<string, string> | undefined;
14982
+ }[] | undefined;
14680
14983
  requirements?: string[] | undefined;
14681
14984
  sqlCacheMaxAge?: number | undefined;
14682
14985
  } | undefined;
@@ -14693,8 +14996,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
14693
14996
  } | undefined;
14694
14997
  execution?: {
14695
14998
  error?: {
14696
- message?: string | undefined;
14697
14999
  name?: string | undefined;
15000
+ message?: string | undefined;
14698
15001
  traceback?: string[] | undefined;
14699
15002
  } | undefined;
14700
15003
  finishedAt?: string | undefined;
@@ -14717,11 +15020,11 @@ declare const deepnoteFileSchema: z.ZodObject<{
14717
15020
  };
14718
15021
  version: string;
14719
15022
  project: {
14720
- id: string;
14721
15023
  name: string;
15024
+ id: string;
14722
15025
  notebooks: {
14723
- id: string;
14724
15026
  name: string;
15027
+ id: string;
14725
15028
  blocks: ({
14726
15029
  type: "markdown";
14727
15030
  id: string;
@@ -14953,8 +15256,23 @@ declare const deepnoteFileSchema: z.ZodObject<{
14953
15256
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
14954
15257
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
14955
15258
  } & {
14956
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
14957
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
15259
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
15260
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
15261
+ name: z.ZodString;
15262
+ command: z.ZodString;
15263
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15264
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
15265
+ }, "strip", z.ZodTypeAny, {
15266
+ name: string;
15267
+ command: string;
15268
+ args?: string[] | undefined;
15269
+ env?: Record<string, string> | undefined;
15270
+ }, {
15271
+ name: string;
15272
+ command: string;
15273
+ args?: string[] | undefined;
15274
+ env?: Record<string, string> | undefined;
15275
+ }>, "many">>;
14958
15276
  }, z.ZodTypeAny, "passthrough"> | undefined;
14959
15277
  contentHash?: string | undefined;
14960
15278
  version?: number | undefined;
@@ -15565,15 +15883,21 @@ declare const deepnoteFileSchema: z.ZodObject<{
15565
15883
  }[];
15566
15884
  initNotebookId?: string | undefined;
15567
15885
  integrations?: {
15886
+ name: string;
15568
15887
  type: string;
15569
15888
  id: string;
15570
- name: string;
15571
15889
  }[] | undefined;
15572
15890
  settings?: {
15573
15891
  environment?: {
15574
15892
  customImage?: string | undefined;
15575
15893
  pythonVersion?: string | undefined;
15576
15894
  } | undefined;
15895
+ mcpServers?: {
15896
+ name: string;
15897
+ command: string;
15898
+ args?: string[] | undefined;
15899
+ env?: Record<string, string> | undefined;
15900
+ }[] | undefined;
15577
15901
  requirements?: string[] | undefined;
15578
15902
  sqlCacheMaxAge?: number | undefined;
15579
15903
  } | undefined;
@@ -15590,8 +15914,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
15590
15914
  } | undefined;
15591
15915
  execution?: {
15592
15916
  error?: {
15593
- message?: string | undefined;
15594
15917
  name?: string | undefined;
15918
+ message?: string | undefined;
15595
15919
  traceback?: string[] | undefined;
15596
15920
  } | undefined;
15597
15921
  finishedAt?: string | undefined;
@@ -15641,13 +15965,13 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
15641
15965
  name: z.ZodString;
15642
15966
  type: z.ZodString;
15643
15967
  }, "strip", z.ZodTypeAny, {
15968
+ name: string;
15644
15969
  type: string;
15645
15970
  id: string;
15646
- name: string;
15647
15971
  }, {
15972
+ name: string;
15648
15973
  type: string;
15649
15974
  id: string;
15650
- name: string;
15651
15975
  }>, "many">>;
15652
15976
  name: z.ZodString;
15653
15977
  notebooks: z.ZodArray<z.ZodObject<{
@@ -16512,8 +16836,23 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
16512
16836
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
16513
16837
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16514
16838
  } & {
16515
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
16516
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
16839
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
16840
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
16841
+ name: z.ZodString;
16842
+ command: z.ZodString;
16843
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16844
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16845
+ }, "strip", z.ZodTypeAny, {
16846
+ name: string;
16847
+ command: string;
16848
+ args?: string[] | undefined;
16849
+ env?: Record<string, string> | undefined;
16850
+ }, {
16851
+ name: string;
16852
+ command: string;
16853
+ args?: string[] | undefined;
16854
+ env?: Record<string, string> | undefined;
16855
+ }>, "many">>;
16517
16856
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
16518
16857
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
16519
16858
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -16538,8 +16877,23 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
16538
16877
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
16539
16878
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16540
16879
  } & {
16541
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
16542
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
16880
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
16881
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
16882
+ name: z.ZodString;
16883
+ command: z.ZodString;
16884
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16885
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16886
+ }, "strip", z.ZodTypeAny, {
16887
+ name: string;
16888
+ command: string;
16889
+ args?: string[] | undefined;
16890
+ env?: Record<string, string> | undefined;
16891
+ }, {
16892
+ name: string;
16893
+ command: string;
16894
+ args?: string[] | undefined;
16895
+ env?: Record<string, string> | undefined;
16896
+ }>, "many">>;
16543
16897
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
16544
16898
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
16545
16899
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -16564,8 +16918,23 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
16564
16918
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
16565
16919
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16566
16920
  } & {
16567
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
16568
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
16921
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
16922
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
16923
+ name: z.ZodString;
16924
+ command: z.ZodString;
16925
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16926
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
16927
+ }, "strip", z.ZodTypeAny, {
16928
+ name: string;
16929
+ command: string;
16930
+ args?: string[] | undefined;
16931
+ env?: Record<string, string> | undefined;
16932
+ }, {
16933
+ name: string;
16934
+ command: string;
16935
+ args?: string[] | undefined;
16936
+ env?: Record<string, string> | undefined;
16937
+ }>, "many">>;
16569
16938
  }, z.ZodTypeAny, "passthrough">>>;
16570
16939
  executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16571
16940
  executionFinishedAt: z.ZodOptional<z.ZodString>;
@@ -16579,6 +16948,7 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
16579
16948
  }, "strip", z.ZodTypeAny, {
16580
16949
  type: "agent";
16581
16950
  metadata: {
16951
+ deepnote_agent_model: string;
16582
16952
  deepnote_app_is_code_hidden?: boolean | undefined;
16583
16953
  deepnote_app_is_output_hidden?: boolean | undefined;
16584
16954
  deepnote_app_block_visible?: boolean | undefined;
@@ -16600,8 +16970,12 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
16600
16970
  last_executed_function_notebook_id?: string | undefined;
16601
16971
  last_function_run_started_at?: number | undefined;
16602
16972
  function_notebook_export_states?: Record<string, any> | undefined;
16603
- deepnote_variable_name?: string | undefined;
16604
- deepnote_agent_model?: string | undefined;
16973
+ deepnote_mcp_servers?: {
16974
+ name: string;
16975
+ command: string;
16976
+ args?: string[] | undefined;
16977
+ env?: Record<string, string> | undefined;
16978
+ }[] | undefined;
16605
16979
  } & {
16606
16980
  [k: string]: unknown;
16607
16981
  };
@@ -16645,8 +17019,23 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
16645
17019
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
16646
17020
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16647
17021
  } & {
16648
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
16649
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
17022
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
17023
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
17024
+ name: z.ZodString;
17025
+ command: z.ZodString;
17026
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
17027
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
17028
+ }, "strip", z.ZodTypeAny, {
17029
+ name: string;
17030
+ command: string;
17031
+ args?: string[] | undefined;
17032
+ env?: Record<string, string> | undefined;
17033
+ }, {
17034
+ name: string;
17035
+ command: string;
17036
+ args?: string[] | undefined;
17037
+ env?: Record<string, string> | undefined;
17038
+ }>, "many">>;
16650
17039
  }, z.ZodTypeAny, "passthrough"> | undefined;
16651
17040
  contentHash?: string | undefined;
16652
17041
  version?: number | undefined;
@@ -16942,8 +17331,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
16942
17331
  last_executed_function_notebook_id?: string | undefined;
16943
17332
  last_function_run_started_at?: number | undefined;
16944
17333
  function_notebook_export_states?: Record<string, any> | undefined;
16945
- deepnote_variable_name?: string | undefined;
16946
17334
  function_export_name?: string | undefined;
17335
+ deepnote_variable_name?: string | undefined;
16947
17336
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
16948
17337
  sql_integration_id?: string | undefined;
16949
17338
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -19269,8 +19658,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19269
19658
  name: z.ZodString;
19270
19659
  workingDirectory: z.ZodOptional<z.ZodString>;
19271
19660
  }, "strip", z.ZodTypeAny, {
19272
- id: string;
19273
19661
  name: string;
19662
+ id: string;
19274
19663
  blocks: ({
19275
19664
  type: "markdown";
19276
19665
  metadata: {
@@ -19484,6 +19873,7 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19484
19873
  } | {
19485
19874
  type: "agent";
19486
19875
  metadata: {
19876
+ deepnote_agent_model: string;
19487
19877
  deepnote_app_is_code_hidden?: boolean | undefined;
19488
19878
  deepnote_app_is_output_hidden?: boolean | undefined;
19489
19879
  deepnote_app_block_visible?: boolean | undefined;
@@ -19505,8 +19895,12 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19505
19895
  last_executed_function_notebook_id?: string | undefined;
19506
19896
  last_function_run_started_at?: number | undefined;
19507
19897
  function_notebook_export_states?: Record<string, any> | undefined;
19508
- deepnote_variable_name?: string | undefined;
19509
- deepnote_agent_model?: string | undefined;
19898
+ deepnote_mcp_servers?: {
19899
+ name: string;
19900
+ command: string;
19901
+ args?: string[] | undefined;
19902
+ env?: Record<string, string> | undefined;
19903
+ }[] | undefined;
19510
19904
  } & {
19511
19905
  [k: string]: unknown;
19512
19906
  };
@@ -19582,8 +19976,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19582
19976
  last_executed_function_notebook_id?: string | undefined;
19583
19977
  last_function_run_started_at?: number | undefined;
19584
19978
  function_notebook_export_states?: Record<string, any> | undefined;
19585
- deepnote_variable_name?: string | undefined;
19586
19979
  function_export_name?: string | undefined;
19980
+ deepnote_variable_name?: string | undefined;
19587
19981
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
19588
19982
  sql_integration_id?: string | undefined;
19589
19983
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -20113,8 +20507,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
20113
20507
  isModule?: boolean | undefined;
20114
20508
  workingDirectory?: string | undefined;
20115
20509
  }, {
20116
- id: string;
20117
20510
  name: string;
20511
+ id: string;
20118
20512
  blocks: ({
20119
20513
  type: "markdown";
20120
20514
  id: string;
@@ -20346,8 +20740,23 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
20346
20740
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
20347
20741
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20348
20742
  } & {
20349
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
20350
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
20743
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
20744
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
20745
+ name: z.ZodString;
20746
+ command: z.ZodString;
20747
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20748
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20749
+ }, "strip", z.ZodTypeAny, {
20750
+ name: string;
20751
+ command: string;
20752
+ args?: string[] | undefined;
20753
+ env?: Record<string, string> | undefined;
20754
+ }, {
20755
+ name: string;
20756
+ command: string;
20757
+ args?: string[] | undefined;
20758
+ env?: Record<string, string> | undefined;
20759
+ }>, "many">>;
20351
20760
  }, z.ZodTypeAny, "passthrough"> | undefined;
20352
20761
  contentHash?: string | undefined;
20353
20762
  version?: number | undefined;
@@ -20971,6 +21380,22 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
20971
21380
  customImage?: string | undefined;
20972
21381
  pythonVersion?: string | undefined;
20973
21382
  }>>;
21383
+ mcpServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
21384
+ name: z.ZodString;
21385
+ command: z.ZodString;
21386
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21387
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
21388
+ }, "strip", z.ZodTypeAny, {
21389
+ name: string;
21390
+ command: string;
21391
+ args?: string[] | undefined;
21392
+ env?: Record<string, string> | undefined;
21393
+ }, {
21394
+ name: string;
21395
+ command: string;
21396
+ args?: string[] | undefined;
21397
+ env?: Record<string, string> | undefined;
21398
+ }>, "many">>;
20974
21399
  requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20975
21400
  sqlCacheMaxAge: z.ZodOptional<z.ZodNumber>;
20976
21401
  }, "strip", z.ZodTypeAny, {
@@ -20978,6 +21403,12 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
20978
21403
  customImage?: string | undefined;
20979
21404
  pythonVersion?: string | undefined;
20980
21405
  } | undefined;
21406
+ mcpServers?: {
21407
+ name: string;
21408
+ command: string;
21409
+ args?: string[] | undefined;
21410
+ env?: Record<string, string> | undefined;
21411
+ }[] | undefined;
20981
21412
  requirements?: string[] | undefined;
20982
21413
  sqlCacheMaxAge?: number | undefined;
20983
21414
  }, {
@@ -20985,15 +21416,21 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
20985
21416
  customImage?: string | undefined;
20986
21417
  pythonVersion?: string | undefined;
20987
21418
  } | undefined;
21419
+ mcpServers?: {
21420
+ name: string;
21421
+ command: string;
21422
+ args?: string[] | undefined;
21423
+ env?: Record<string, string> | undefined;
21424
+ }[] | undefined;
20988
21425
  requirements?: string[] | undefined;
20989
21426
  sqlCacheMaxAge?: number | undefined;
20990
21427
  }>>;
20991
21428
  }, "strip", z.ZodTypeAny, {
20992
- id: string;
20993
21429
  name: string;
21430
+ id: string;
20994
21431
  notebooks: {
20995
- id: string;
20996
21432
  name: string;
21433
+ id: string;
20997
21434
  blocks: ({
20998
21435
  type: "markdown";
20999
21436
  metadata: {
@@ -21207,6 +21644,7 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21207
21644
  } | {
21208
21645
  type: "agent";
21209
21646
  metadata: {
21647
+ deepnote_agent_model: string;
21210
21648
  deepnote_app_is_code_hidden?: boolean | undefined;
21211
21649
  deepnote_app_is_output_hidden?: boolean | undefined;
21212
21650
  deepnote_app_block_visible?: boolean | undefined;
@@ -21228,8 +21666,12 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21228
21666
  last_executed_function_notebook_id?: string | undefined;
21229
21667
  last_function_run_started_at?: number | undefined;
21230
21668
  function_notebook_export_states?: Record<string, any> | undefined;
21231
- deepnote_variable_name?: string | undefined;
21232
- deepnote_agent_model?: string | undefined;
21669
+ deepnote_mcp_servers?: {
21670
+ name: string;
21671
+ command: string;
21672
+ args?: string[] | undefined;
21673
+ env?: Record<string, string> | undefined;
21674
+ }[] | undefined;
21233
21675
  } & {
21234
21676
  [k: string]: unknown;
21235
21677
  };
@@ -21305,8 +21747,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21305
21747
  last_executed_function_notebook_id?: string | undefined;
21306
21748
  last_function_run_started_at?: number | undefined;
21307
21749
  function_notebook_export_states?: Record<string, any> | undefined;
21308
- deepnote_variable_name?: string | undefined;
21309
21750
  function_export_name?: string | undefined;
21751
+ deepnote_variable_name?: string | undefined;
21310
21752
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
21311
21753
  sql_integration_id?: string | undefined;
21312
21754
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -21838,24 +22280,30 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21838
22280
  }[];
21839
22281
  initNotebookId?: string | undefined;
21840
22282
  integrations?: {
22283
+ name: string;
21841
22284
  type: string;
21842
22285
  id: string;
21843
- name: string;
21844
22286
  }[] | undefined;
21845
22287
  settings?: {
21846
22288
  environment?: {
21847
22289
  customImage?: string | undefined;
21848
22290
  pythonVersion?: string | undefined;
21849
22291
  } | undefined;
22292
+ mcpServers?: {
22293
+ name: string;
22294
+ command: string;
22295
+ args?: string[] | undefined;
22296
+ env?: Record<string, string> | undefined;
22297
+ }[] | undefined;
21850
22298
  requirements?: string[] | undefined;
21851
22299
  sqlCacheMaxAge?: number | undefined;
21852
22300
  } | undefined;
21853
22301
  }, {
21854
- id: string;
21855
22302
  name: string;
22303
+ id: string;
21856
22304
  notebooks: {
21857
- id: string;
21858
22305
  name: string;
22306
+ id: string;
21859
22307
  blocks: ({
21860
22308
  type: "markdown";
21861
22309
  id: string;
@@ -22087,8 +22535,23 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22087
22535
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
22088
22536
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
22089
22537
  } & {
22090
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
22091
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
22538
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
22539
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
22540
+ name: z.ZodString;
22541
+ command: z.ZodString;
22542
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22543
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
22544
+ }, "strip", z.ZodTypeAny, {
22545
+ name: string;
22546
+ command: string;
22547
+ args?: string[] | undefined;
22548
+ env?: Record<string, string> | undefined;
22549
+ }, {
22550
+ name: string;
22551
+ command: string;
22552
+ args?: string[] | undefined;
22553
+ env?: Record<string, string> | undefined;
22554
+ }>, "many">>;
22092
22555
  }, z.ZodTypeAny, "passthrough"> | undefined;
22093
22556
  contentHash?: string | undefined;
22094
22557
  version?: number | undefined;
@@ -22699,15 +23162,21 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22699
23162
  }[];
22700
23163
  initNotebookId?: string | undefined;
22701
23164
  integrations?: {
23165
+ name: string;
22702
23166
  type: string;
22703
23167
  id: string;
22704
- name: string;
22705
23168
  }[] | undefined;
22706
23169
  settings?: {
22707
23170
  environment?: {
22708
23171
  customImage?: string | undefined;
22709
23172
  pythonVersion?: string | undefined;
22710
23173
  } | undefined;
23174
+ mcpServers?: {
23175
+ name: string;
23176
+ command: string;
23177
+ args?: string[] | undefined;
23178
+ env?: Record<string, string> | undefined;
23179
+ }[] | undefined;
22711
23180
  requirements?: string[] | undefined;
22712
23181
  sqlCacheMaxAge?: number | undefined;
22713
23182
  } | undefined;
@@ -22754,12 +23223,12 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22754
23223
  name: z.ZodOptional<z.ZodString>;
22755
23224
  traceback: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22756
23225
  }, "strip", z.ZodTypeAny, {
22757
- message?: string | undefined;
22758
23226
  name?: string | undefined;
23227
+ message?: string | undefined;
22759
23228
  traceback?: string[] | undefined;
22760
23229
  }, {
22761
- message?: string | undefined;
22762
23230
  name?: string | undefined;
23231
+ message?: string | undefined;
22763
23232
  traceback?: string[] | undefined;
22764
23233
  }>>;
22765
23234
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -22784,8 +23253,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22784
23253
  triggeredBy: z.ZodOptional<z.ZodEnum<["user", "schedule", "api", "ci"]>>;
22785
23254
  }, "strip", z.ZodTypeAny, {
22786
23255
  error?: {
22787
- message?: string | undefined;
22788
23256
  name?: string | undefined;
23257
+ message?: string | undefined;
22789
23258
  traceback?: string[] | undefined;
22790
23259
  } | undefined;
22791
23260
  finishedAt?: string | undefined;
@@ -22800,8 +23269,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22800
23269
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
22801
23270
  }, {
22802
23271
  error?: {
22803
- message?: string | undefined;
22804
23272
  name?: string | undefined;
23273
+ message?: string | undefined;
22805
23274
  traceback?: string[] | undefined;
22806
23275
  } | undefined;
22807
23276
  finishedAt?: string | undefined;
@@ -22855,8 +23324,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22855
23324
  };
22856
23325
  execution: {
22857
23326
  error?: {
22858
- message?: string | undefined;
22859
23327
  name?: string | undefined;
23328
+ message?: string | undefined;
22860
23329
  traceback?: string[] | undefined;
22861
23330
  } | undefined;
22862
23331
  finishedAt?: string | undefined;
@@ -22871,11 +23340,11 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22871
23340
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
22872
23341
  };
22873
23342
  project: {
22874
- id: string;
22875
23343
  name: string;
23344
+ id: string;
22876
23345
  notebooks: {
22877
- id: string;
22878
23346
  name: string;
23347
+ id: string;
22879
23348
  blocks: ({
22880
23349
  type: "markdown";
22881
23350
  metadata: {
@@ -23089,6 +23558,7 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
23089
23558
  } | {
23090
23559
  type: "agent";
23091
23560
  metadata: {
23561
+ deepnote_agent_model: string;
23092
23562
  deepnote_app_is_code_hidden?: boolean | undefined;
23093
23563
  deepnote_app_is_output_hidden?: boolean | undefined;
23094
23564
  deepnote_app_block_visible?: boolean | undefined;
@@ -23110,8 +23580,12 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
23110
23580
  last_executed_function_notebook_id?: string | undefined;
23111
23581
  last_function_run_started_at?: number | undefined;
23112
23582
  function_notebook_export_states?: Record<string, any> | undefined;
23113
- deepnote_variable_name?: string | undefined;
23114
- deepnote_agent_model?: string | undefined;
23583
+ deepnote_mcp_servers?: {
23584
+ name: string;
23585
+ command: string;
23586
+ args?: string[] | undefined;
23587
+ env?: Record<string, string> | undefined;
23588
+ }[] | undefined;
23115
23589
  } & {
23116
23590
  [k: string]: unknown;
23117
23591
  };
@@ -23187,8 +23661,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
23187
23661
  last_executed_function_notebook_id?: string | undefined;
23188
23662
  last_function_run_started_at?: number | undefined;
23189
23663
  function_notebook_export_states?: Record<string, any> | undefined;
23190
- deepnote_variable_name?: string | undefined;
23191
23664
  function_export_name?: string | undefined;
23665
+ deepnote_variable_name?: string | undefined;
23192
23666
  deepnote_return_variable_type?: "dataframe" | "query_preview" | undefined;
23193
23667
  sql_integration_id?: string | undefined;
23194
23668
  is_compiled_sql_query_visible?: boolean | undefined;
@@ -23720,15 +24194,21 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
23720
24194
  }[];
23721
24195
  initNotebookId?: string | undefined;
23722
24196
  integrations?: {
24197
+ name: string;
23723
24198
  type: string;
23724
24199
  id: string;
23725
- name: string;
23726
24200
  }[] | undefined;
23727
24201
  settings?: {
23728
24202
  environment?: {
23729
24203
  customImage?: string | undefined;
23730
24204
  pythonVersion?: string | undefined;
23731
24205
  } | undefined;
24206
+ mcpServers?: {
24207
+ name: string;
24208
+ command: string;
24209
+ args?: string[] | undefined;
24210
+ env?: Record<string, string> | undefined;
24211
+ }[] | undefined;
23732
24212
  requirements?: string[] | undefined;
23733
24213
  sqlCacheMaxAge?: number | undefined;
23734
24214
  } | undefined;
@@ -23754,8 +24234,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
23754
24234
  };
23755
24235
  execution: {
23756
24236
  error?: {
23757
- message?: string | undefined;
23758
24237
  name?: string | undefined;
24238
+ message?: string | undefined;
23759
24239
  traceback?: string[] | undefined;
23760
24240
  } | undefined;
23761
24241
  finishedAt?: string | undefined;
@@ -23770,11 +24250,11 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
23770
24250
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
23771
24251
  };
23772
24252
  project: {
23773
- id: string;
23774
24253
  name: string;
24254
+ id: string;
23775
24255
  notebooks: {
23776
- id: string;
23777
24256
  name: string;
24257
+ id: string;
23778
24258
  blocks: ({
23779
24259
  type: "markdown";
23780
24260
  id: string;
@@ -24006,8 +24486,23 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
24006
24486
  last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
24007
24487
  function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
24008
24488
  } & {
24009
- deepnote_variable_name: z.ZodOptional<z.ZodString>;
24010
- deepnote_agent_model: z.ZodOptional<z.ZodString>;
24489
+ deepnote_agent_model: z.ZodDefault<z.ZodString>;
24490
+ deepnote_mcp_servers: z.ZodOptional<z.ZodArray<z.ZodObject<{
24491
+ name: z.ZodString;
24492
+ command: z.ZodString;
24493
+ args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
24494
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24495
+ }, "strip", z.ZodTypeAny, {
24496
+ name: string;
24497
+ command: string;
24498
+ args?: string[] | undefined;
24499
+ env?: Record<string, string> | undefined;
24500
+ }, {
24501
+ name: string;
24502
+ command: string;
24503
+ args?: string[] | undefined;
24504
+ env?: Record<string, string> | undefined;
24505
+ }>, "many">>;
24011
24506
  }, z.ZodTypeAny, "passthrough"> | undefined;
24012
24507
  contentHash?: string | undefined;
24013
24508
  version?: number | undefined;
@@ -24618,15 +25113,21 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
24618
25113
  }[];
24619
25114
  initNotebookId?: string | undefined;
24620
25115
  integrations?: {
25116
+ name: string;
24621
25117
  type: string;
24622
25118
  id: string;
24623
- name: string;
24624
25119
  }[] | undefined;
24625
25120
  settings?: {
24626
25121
  environment?: {
24627
25122
  customImage?: string | undefined;
24628
25123
  pythonVersion?: string | undefined;
24629
25124
  } | undefined;
25125
+ mcpServers?: {
25126
+ name: string;
25127
+ command: string;
25128
+ args?: string[] | undefined;
25129
+ env?: Record<string, string> | undefined;
25130
+ }[] | undefined;
24630
25131
  requirements?: string[] | undefined;
24631
25132
  sqlCacheMaxAge?: number | undefined;
24632
25133
  } | undefined;
@@ -24634,6 +25135,9 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
24634
25135
  }>;
24635
25136
  type DeepnoteSnapshot = z.infer<typeof deepnoteSnapshotSchema>;
24636
25137
  //#endregion
25138
+ //#region src/blocks/agent-blocks.d.ts
25139
+ declare function isAgentBlock(block: DeepnoteBlock): block is AgentBlock;
25140
+ //#endregion
24637
25141
  //#region src/blocks/executable-blocks.d.ts
24638
25142
  /**
24639
25143
  * Block types that represent user input widgets.
@@ -24730,6 +25234,22 @@ declare function serializeDeepnoteSnapshot(snapshot: DeepnoteSnapshot): string;
24730
25234
  declare function createMarkdown(block: DeepnoteBlock): string;
24731
25235
  declare function stripMarkdown(block: DeepnoteBlock): string;
24732
25236
  //#endregion
25237
+ //#region src/output-text.d.ts
25238
+ interface ExtractOutputTextOptions {
25239
+ /** Include traceback lines (with ANSI escapes stripped) for error outputs. */
25240
+ includeTraceback?: boolean;
25241
+ }
25242
+ /**
25243
+ * Extract a human-readable text string from a single Jupyter-style output object.
25244
+ * Returns null if the output type is unrecognized or has no textual representation.
25245
+ */
25246
+ declare function extractOutputText(output: unknown, options?: ExtractOutputTextOptions): string | null;
25247
+ /**
25248
+ * Extract human-readable text from an array of Jupyter-style output objects.
25249
+ * Joins non-null results with newlines.
25250
+ */
25251
+ declare function extractOutputsText(outputs: unknown[], options?: ExtractOutputTextOptions): string;
25252
+ //#endregion
24733
25253
  //#region src/blocks/button-blocks.d.ts
24734
25254
  interface ButtonExecutionContext {
24735
25255
  /**
@@ -24742,4 +25262,4 @@ interface ButtonExecutionContext {
24742
25262
  //#region src/python-code.d.ts
24743
25263
  declare function createPythonCode(block: DeepnoteBlock, executionContext?: ButtonExecutionContext): string;
24744
25264
  //#endregion
24745
- export { type DeepnoteBlock, DeepnoteError, type DeepnoteFile, type DeepnoteSnapshot, EncodingError, type Environment, type ExecutableBlock, type Execution, type ExecutionError, type ExecutionSummary, INPUT_BLOCK_TYPES, InvalidValueError, ParseError, ProhibitedYamlFeatureError, SchemaValidationError, type SnapshotHashInput, type TableState, UnsupportedBlockTypeError, YamlParseError, convertToEnvironmentVariableName, createMarkdown, createPythonCode, decodeUtf8NoBom, deepnoteBlockSchema, deepnoteFileSchema, deepnoteSnapshotSchema, deserializeDeepnoteFile, environmentSchema, executionErrorSchema, executionSchema, executionSummarySchema, generateSortingKey, getSqlEnvVarName, isExecutableBlock, isExecutableBlockType, parseYaml, serializeDeepnoteFile, serializeDeepnoteSnapshot, stripMarkdown };
25265
+ export { type AgentBlock, type DeepnoteBlock, DeepnoteError, type DeepnoteFile, type DeepnoteSnapshot, EncodingError, type Environment, type ExecutableBlock, type Execution, type ExecutionError, type ExecutionSummary, type ExtractOutputTextOptions, INPUT_BLOCK_TYPES, InvalidValueError, type McpServerConfig, ParseError, ProhibitedYamlFeatureError, SchemaValidationError, type SnapshotHashInput, type TableState, UnsupportedBlockTypeError, YamlParseError, convertToEnvironmentVariableName, createMarkdown, createPythonCode, decodeUtf8NoBom, deepnoteBlockSchema, deepnoteFileSchema, deepnoteSnapshotSchema, deserializeDeepnoteFile, environmentSchema, executionErrorSchema, executionSchema, executionSummarySchema, extractOutputText, extractOutputsText, generateSortingKey, getSqlEnvVarName, isAgentBlock, isExecutableBlock, isExecutableBlockType, mcpServerSchema, parseYaml, serializeDeepnoteFile, serializeDeepnoteSnapshot, stripMarkdown };