@deepnote/blocks 4.3.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.cts CHANGED
@@ -1144,6 +1144,258 @@ declare const bigNumberBlockSchema: z.ZodObject<{
1144
1144
  executionStartedAt?: string | undefined;
1145
1145
  outputs?: any[] | undefined;
1146
1146
  }>;
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">;
1166
+ content: z.ZodOptional<z.ZodString>;
1167
+ metadata: z.ZodDefault<z.ZodObject<{
1168
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1169
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
1170
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
1171
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
1172
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
1174
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
1175
+ } & {
1176
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
1177
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1178
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
1179
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
1180
+ execution_start: z.ZodOptional<z.ZodNumber>;
1181
+ execution_millis: z.ZodOptional<z.ZodNumber>;
1182
+ source_hash: z.ZodOptional<z.ZodString>;
1183
+ execution_context_id: z.ZodOptional<z.ZodString>;
1184
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
1185
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
1186
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1187
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
1188
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1189
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1190
+ } & {
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">>;
1208
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1209
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1210
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
1211
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
1212
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
1213
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1214
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
1215
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
1216
+ } & {
1217
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
1218
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1219
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
1220
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
1221
+ execution_start: z.ZodOptional<z.ZodNumber>;
1222
+ execution_millis: z.ZodOptional<z.ZodNumber>;
1223
+ source_hash: z.ZodOptional<z.ZodString>;
1224
+ execution_context_id: z.ZodOptional<z.ZodString>;
1225
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
1226
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
1227
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1228
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
1229
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1230
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1231
+ } & {
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">>;
1249
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1250
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1251
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
1252
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
1253
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
1254
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1255
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
1256
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
1257
+ } & {
1258
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
1259
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1260
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
1261
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
1262
+ execution_start: z.ZodOptional<z.ZodNumber>;
1263
+ execution_millis: z.ZodOptional<z.ZodNumber>;
1264
+ source_hash: z.ZodOptional<z.ZodString>;
1265
+ execution_context_id: z.ZodOptional<z.ZodString>;
1266
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
1267
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
1268
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1269
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
1270
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1271
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1272
+ } & {
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">>;
1290
+ }, z.ZodTypeAny, "passthrough">>>;
1291
+ executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1292
+ executionFinishedAt: z.ZodOptional<z.ZodString>;
1293
+ executionStartedAt: z.ZodOptional<z.ZodString>;
1294
+ outputs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
1295
+ id: z.ZodString;
1296
+ blockGroup: z.ZodString;
1297
+ sortingKey: z.ZodString;
1298
+ contentHash: z.ZodOptional<z.ZodString>;
1299
+ version: z.ZodOptional<z.ZodNumber>;
1300
+ }, "strip", z.ZodTypeAny, {
1301
+ type: "agent";
1302
+ metadata: {
1303
+ deepnote_agent_model: string;
1304
+ deepnote_app_is_code_hidden?: boolean | undefined;
1305
+ deepnote_app_is_output_hidden?: boolean | undefined;
1306
+ deepnote_app_block_visible?: boolean | undefined;
1307
+ deepnote_app_block_width?: number | undefined;
1308
+ deepnote_app_block_group_id?: string | null | undefined;
1309
+ deepnote_app_block_subgroup_id?: string | undefined;
1310
+ deepnote_app_block_order?: number | undefined;
1311
+ deepnote_cell_height?: number | undefined;
1312
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
1313
+ is_code_hidden?: boolean | undefined;
1314
+ is_output_hidden?: boolean | undefined;
1315
+ output_cleared?: boolean | undefined;
1316
+ execution_start?: number | undefined;
1317
+ execution_millis?: number | undefined;
1318
+ source_hash?: string | undefined;
1319
+ execution_context_id?: string | undefined;
1320
+ deepnote_output_heights?: (number | null)[] | undefined;
1321
+ deepnote_table_state?: Record<string, any> | undefined;
1322
+ last_executed_function_notebook_id?: string | undefined;
1323
+ last_function_run_started_at?: number | undefined;
1324
+ function_notebook_export_states?: Record<string, any> | undefined;
1325
+ deepnote_mcp_servers?: {
1326
+ name: string;
1327
+ command: string;
1328
+ args?: string[] | undefined;
1329
+ env?: Record<string, string> | undefined;
1330
+ }[] | undefined;
1331
+ } & {
1332
+ [k: string]: unknown;
1333
+ };
1334
+ id: string;
1335
+ blockGroup: string;
1336
+ sortingKey: string;
1337
+ content?: string | undefined;
1338
+ contentHash?: string | undefined;
1339
+ version?: number | undefined;
1340
+ executionCount?: number | null | undefined;
1341
+ executionFinishedAt?: string | undefined;
1342
+ executionStartedAt?: string | undefined;
1343
+ outputs?: any[] | undefined;
1344
+ }, {
1345
+ type: "agent";
1346
+ id: string;
1347
+ blockGroup: string;
1348
+ sortingKey: string;
1349
+ content?: string | undefined;
1350
+ metadata?: z.objectInputType<{
1351
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1352
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
1353
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
1354
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
1355
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1356
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
1357
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
1358
+ } & {
1359
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
1360
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
1361
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
1362
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
1363
+ execution_start: z.ZodOptional<z.ZodNumber>;
1364
+ execution_millis: z.ZodOptional<z.ZodNumber>;
1365
+ source_hash: z.ZodOptional<z.ZodString>;
1366
+ execution_context_id: z.ZodOptional<z.ZodString>;
1367
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
1368
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
1369
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1370
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
1371
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
1372
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1373
+ } & {
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">>;
1391
+ }, z.ZodTypeAny, "passthrough"> | undefined;
1392
+ contentHash?: string | undefined;
1393
+ version?: number | undefined;
1394
+ executionCount?: number | null | undefined;
1395
+ executionFinishedAt?: string | undefined;
1396
+ executionStartedAt?: string | undefined;
1397
+ outputs?: any[] | undefined;
1398
+ }>;
1147
1399
  declare const inputTextBlockSchema: z.ZodObject<{
1148
1400
  type: z.ZodLiteral<"input-text">;
1149
1401
  content: z.ZodOptional<z.ZodString>;
@@ -3510,6 +3762,240 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
3510
3762
  }, z.ZodTypeAny, "passthrough"> | undefined;
3511
3763
  contentHash?: string | undefined;
3512
3764
  version?: number | undefined;
3765
+ }>, z.ZodObject<{
3766
+ type: z.ZodLiteral<"agent">;
3767
+ content: z.ZodOptional<z.ZodString>;
3768
+ metadata: z.ZodDefault<z.ZodObject<{
3769
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3770
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
3771
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
3772
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
3773
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3774
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
3775
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
3776
+ } & {
3777
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
3778
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3779
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
3780
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
3781
+ execution_start: z.ZodOptional<z.ZodNumber>;
3782
+ execution_millis: z.ZodOptional<z.ZodNumber>;
3783
+ source_hash: z.ZodOptional<z.ZodString>;
3784
+ execution_context_id: z.ZodOptional<z.ZodString>;
3785
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
3786
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
3787
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3788
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
3789
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
3790
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3791
+ } & {
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">>;
3809
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3810
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3811
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
3812
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
3813
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
3814
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3815
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
3816
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
3817
+ } & {
3818
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
3819
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3820
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
3821
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
3822
+ execution_start: z.ZodOptional<z.ZodNumber>;
3823
+ execution_millis: z.ZodOptional<z.ZodNumber>;
3824
+ source_hash: z.ZodOptional<z.ZodString>;
3825
+ execution_context_id: z.ZodOptional<z.ZodString>;
3826
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
3827
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
3828
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3829
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
3830
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
3831
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3832
+ } & {
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">>;
3850
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3851
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3852
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
3853
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
3854
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
3855
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3856
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
3857
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
3858
+ } & {
3859
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
3860
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3861
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
3862
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
3863
+ execution_start: z.ZodOptional<z.ZodNumber>;
3864
+ execution_millis: z.ZodOptional<z.ZodNumber>;
3865
+ source_hash: z.ZodOptional<z.ZodString>;
3866
+ execution_context_id: z.ZodOptional<z.ZodString>;
3867
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
3868
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
3869
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3870
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
3871
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
3872
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3873
+ } & {
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">>;
3891
+ }, z.ZodTypeAny, "passthrough">>>;
3892
+ executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3893
+ executionFinishedAt: z.ZodOptional<z.ZodString>;
3894
+ executionStartedAt: z.ZodOptional<z.ZodString>;
3895
+ outputs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
3896
+ id: z.ZodString;
3897
+ blockGroup: z.ZodString;
3898
+ sortingKey: z.ZodString;
3899
+ contentHash: z.ZodOptional<z.ZodString>;
3900
+ version: z.ZodOptional<z.ZodNumber>;
3901
+ }, "strip", z.ZodTypeAny, {
3902
+ type: "agent";
3903
+ metadata: {
3904
+ deepnote_agent_model: string;
3905
+ deepnote_app_is_code_hidden?: boolean | undefined;
3906
+ deepnote_app_is_output_hidden?: boolean | undefined;
3907
+ deepnote_app_block_visible?: boolean | undefined;
3908
+ deepnote_app_block_width?: number | undefined;
3909
+ deepnote_app_block_group_id?: string | null | undefined;
3910
+ deepnote_app_block_subgroup_id?: string | undefined;
3911
+ deepnote_app_block_order?: number | undefined;
3912
+ deepnote_cell_height?: number | undefined;
3913
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
3914
+ is_code_hidden?: boolean | undefined;
3915
+ is_output_hidden?: boolean | undefined;
3916
+ output_cleared?: boolean | undefined;
3917
+ execution_start?: number | undefined;
3918
+ execution_millis?: number | undefined;
3919
+ source_hash?: string | undefined;
3920
+ execution_context_id?: string | undefined;
3921
+ deepnote_output_heights?: (number | null)[] | undefined;
3922
+ deepnote_table_state?: Record<string, any> | undefined;
3923
+ last_executed_function_notebook_id?: string | undefined;
3924
+ last_function_run_started_at?: number | undefined;
3925
+ function_notebook_export_states?: Record<string, any> | undefined;
3926
+ deepnote_mcp_servers?: {
3927
+ name: string;
3928
+ command: string;
3929
+ args?: string[] | undefined;
3930
+ env?: Record<string, string> | undefined;
3931
+ }[] | undefined;
3932
+ } & {
3933
+ [k: string]: unknown;
3934
+ };
3935
+ id: string;
3936
+ blockGroup: string;
3937
+ sortingKey: string;
3938
+ content?: string | undefined;
3939
+ contentHash?: string | undefined;
3940
+ version?: number | undefined;
3941
+ executionCount?: number | null | undefined;
3942
+ executionFinishedAt?: string | undefined;
3943
+ executionStartedAt?: string | undefined;
3944
+ outputs?: any[] | undefined;
3945
+ }, {
3946
+ type: "agent";
3947
+ id: string;
3948
+ blockGroup: string;
3949
+ sortingKey: string;
3950
+ content?: string | undefined;
3951
+ metadata?: z.objectInputType<{
3952
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3953
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
3954
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
3955
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
3956
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3957
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
3958
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
3959
+ } & {
3960
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
3961
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
3962
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
3963
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
3964
+ execution_start: z.ZodOptional<z.ZodNumber>;
3965
+ execution_millis: z.ZodOptional<z.ZodNumber>;
3966
+ source_hash: z.ZodOptional<z.ZodString>;
3967
+ execution_context_id: z.ZodOptional<z.ZodString>;
3968
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
3969
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
3970
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3971
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
3972
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
3973
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
3974
+ } & {
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">>;
3992
+ }, z.ZodTypeAny, "passthrough"> | undefined;
3993
+ contentHash?: string | undefined;
3994
+ version?: number | undefined;
3995
+ executionCount?: number | null | undefined;
3996
+ executionFinishedAt?: string | undefined;
3997
+ executionStartedAt?: string | undefined;
3998
+ outputs?: any[] | undefined;
3513
3999
  }>, z.ZodObject<{
3514
4000
  type: z.ZodLiteral<"code">;
3515
4001
  content: z.ZodOptional<z.ZodString>;
@@ -6120,6 +6606,7 @@ declare const deepnoteBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<
6120
6606
  outputs?: any[] | undefined;
6121
6607
  }>]>;
6122
6608
  type DeepnoteBlock = z.infer<typeof deepnoteBlockSchema>;
6609
+ type AgentBlock = z.infer<typeof agentBlockSchema>;
6123
6610
  type CodeBlock = z.infer<typeof codeBlockSchema>;
6124
6611
  type SqlBlock = z.infer<typeof sqlBlockSchema>;
6125
6612
  type NotebookFunctionBlock = z.infer<typeof notebookFunctionBlockSchema>;
@@ -6137,7 +6624,7 @@ type InputFileBlock = z.infer<typeof inputFileBlockSchema>;
6137
6624
  /** Union of all input block types */
6138
6625
  type InputBlock = InputTextBlock | InputTextareaBlock | InputCheckboxBlock | InputSelectBlock | InputSliderBlock | InputDateBlock | InputDateRangeBlock | InputFileBlock;
6139
6626
  /** Union of all executable block types */
6140
- type ExecutableBlock = CodeBlock | SqlBlock | NotebookFunctionBlock | VisualizationBlock | ButtonBlock | BigNumberBlock | InputBlock;
6627
+ type ExecutableBlock = AgentBlock | CodeBlock | SqlBlock | NotebookFunctionBlock | VisualizationBlock | ButtonBlock | BigNumberBlock | InputBlock;
6141
6628
  declare const environmentSchema: z.ZodOptional<z.ZodObject<{
6142
6629
  customImage: z.ZodOptional<z.ZodString>;
6143
6630
  hash: z.ZodOptional<z.ZodString>;
@@ -6195,12 +6682,12 @@ declare const executionErrorSchema: z.ZodOptional<z.ZodObject<{
6195
6682
  name: z.ZodOptional<z.ZodString>;
6196
6683
  traceback: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6197
6684
  }, "strip", z.ZodTypeAny, {
6198
- message?: string | undefined;
6199
6685
  name?: string | undefined;
6686
+ message?: string | undefined;
6200
6687
  traceback?: string[] | undefined;
6201
6688
  }, {
6202
- message?: string | undefined;
6203
6689
  name?: string | undefined;
6690
+ message?: string | undefined;
6204
6691
  traceback?: string[] | undefined;
6205
6692
  }>>;
6206
6693
  type ExecutionError = z.infer<typeof executionErrorSchema>;
@@ -6210,12 +6697,12 @@ declare const executionSchema: z.ZodOptional<z.ZodObject<{
6210
6697
  name: z.ZodOptional<z.ZodString>;
6211
6698
  traceback: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6212
6699
  }, "strip", z.ZodTypeAny, {
6213
- message?: string | undefined;
6214
6700
  name?: string | undefined;
6701
+ message?: string | undefined;
6215
6702
  traceback?: string[] | undefined;
6216
6703
  }, {
6217
- message?: string | undefined;
6218
6704
  name?: string | undefined;
6705
+ message?: string | undefined;
6219
6706
  traceback?: string[] | undefined;
6220
6707
  }>>;
6221
6708
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -6240,8 +6727,8 @@ declare const executionSchema: z.ZodOptional<z.ZodObject<{
6240
6727
  triggeredBy: z.ZodOptional<z.ZodEnum<["user", "schedule", "api", "ci"]>>;
6241
6728
  }, "strip", z.ZodTypeAny, {
6242
6729
  error?: {
6243
- message?: string | undefined;
6244
6730
  name?: string | undefined;
6731
+ message?: string | undefined;
6245
6732
  traceback?: string[] | undefined;
6246
6733
  } | undefined;
6247
6734
  finishedAt?: string | undefined;
@@ -6256,8 +6743,8 @@ declare const executionSchema: z.ZodOptional<z.ZodObject<{
6256
6743
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
6257
6744
  }, {
6258
6745
  error?: {
6259
- message?: string | undefined;
6260
6746
  name?: string | undefined;
6747
+ message?: string | undefined;
6261
6748
  traceback?: string[] | undefined;
6262
6749
  } | undefined;
6263
6750
  finishedAt?: string | undefined;
@@ -6313,12 +6800,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
6313
6800
  name: z.ZodOptional<z.ZodString>;
6314
6801
  traceback: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6315
6802
  }, "strip", z.ZodTypeAny, {
6316
- message?: string | undefined;
6317
6803
  name?: string | undefined;
6804
+ message?: string | undefined;
6318
6805
  traceback?: string[] | undefined;
6319
6806
  }, {
6320
- message?: string | undefined;
6321
6807
  name?: string | undefined;
6808
+ message?: string | undefined;
6322
6809
  traceback?: string[] | undefined;
6323
6810
  }>>;
6324
6811
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -6343,8 +6830,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
6343
6830
  triggeredBy: z.ZodOptional<z.ZodEnum<["user", "schedule", "api", "ci"]>>;
6344
6831
  }, "strip", z.ZodTypeAny, {
6345
6832
  error?: {
6346
- message?: string | undefined;
6347
6833
  name?: string | undefined;
6834
+ message?: string | undefined;
6348
6835
  traceback?: string[] | undefined;
6349
6836
  } | undefined;
6350
6837
  finishedAt?: string | undefined;
@@ -6359,8 +6846,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
6359
6846
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
6360
6847
  }, {
6361
6848
  error?: {
6362
- message?: string | undefined;
6363
6849
  name?: string | undefined;
6850
+ message?: string | undefined;
6364
6851
  traceback?: string[] | undefined;
6365
6852
  } | undefined;
6366
6853
  finishedAt?: string | undefined;
@@ -6398,13 +6885,13 @@ declare const deepnoteFileSchema: z.ZodObject<{
6398
6885
  name: z.ZodString;
6399
6886
  type: z.ZodString;
6400
6887
  }, "strip", z.ZodTypeAny, {
6888
+ name: string;
6401
6889
  type: string;
6402
6890
  id: string;
6403
- name: string;
6404
6891
  }, {
6892
+ name: string;
6405
6893
  type: string;
6406
6894
  id: string;
6407
- name: string;
6408
6895
  }>, "many">>;
6409
6896
  name: z.ZodString;
6410
6897
  notebooks: z.ZodArray<z.ZodObject<{
@@ -7178,7 +7665,155 @@ declare const deepnoteFileSchema: z.ZodObject<{
7178
7665
  is_collapsed: z.ZodOptional<z.ZodBoolean>;
7179
7666
  formattedRanges: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7180
7667
  } & {
7181
- color: z.ZodOptional<z.ZodEnum<["blue", "green", "yellow", "red", "purple"]>>;
7668
+ color: z.ZodOptional<z.ZodEnum<["blue", "green", "yellow", "red", "purple"]>>;
7669
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7670
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7671
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
7672
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
7673
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
7674
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7675
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
7676
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
7677
+ } & {
7678
+ is_collapsed: z.ZodOptional<z.ZodBoolean>;
7679
+ formattedRanges: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7680
+ } & {
7681
+ color: z.ZodOptional<z.ZodEnum<["blue", "green", "yellow", "red", "purple"]>>;
7682
+ }, z.ZodTypeAny, "passthrough">>>;
7683
+ id: z.ZodString;
7684
+ blockGroup: z.ZodString;
7685
+ sortingKey: z.ZodString;
7686
+ contentHash: z.ZodOptional<z.ZodString>;
7687
+ version: z.ZodOptional<z.ZodNumber>;
7688
+ }, "strip", z.ZodTypeAny, {
7689
+ type: "text-cell-callout";
7690
+ metadata: {
7691
+ deepnote_app_is_code_hidden?: boolean | undefined;
7692
+ deepnote_app_is_output_hidden?: boolean | undefined;
7693
+ deepnote_app_block_visible?: boolean | undefined;
7694
+ deepnote_app_block_width?: number | undefined;
7695
+ deepnote_app_block_group_id?: string | null | undefined;
7696
+ deepnote_app_block_subgroup_id?: string | undefined;
7697
+ deepnote_app_block_order?: number | undefined;
7698
+ is_collapsed?: boolean | undefined;
7699
+ formattedRanges?: any[] | undefined;
7700
+ color?: "blue" | "green" | "yellow" | "red" | "purple" | undefined;
7701
+ } & {
7702
+ [k: string]: unknown;
7703
+ };
7704
+ id: string;
7705
+ blockGroup: string;
7706
+ sortingKey: string;
7707
+ content?: string | undefined;
7708
+ contentHash?: string | undefined;
7709
+ version?: number | undefined;
7710
+ }, {
7711
+ type: "text-cell-callout";
7712
+ id: string;
7713
+ blockGroup: string;
7714
+ sortingKey: string;
7715
+ content?: string | undefined;
7716
+ metadata?: z.objectInputType<{
7717
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7718
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
7719
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
7720
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
7721
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7722
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
7723
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
7724
+ } & {
7725
+ is_collapsed: z.ZodOptional<z.ZodBoolean>;
7726
+ formattedRanges: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7727
+ } & {
7728
+ color: z.ZodOptional<z.ZodEnum<["blue", "green", "yellow", "red", "purple"]>>;
7729
+ }, z.ZodTypeAny, "passthrough"> | undefined;
7730
+ contentHash?: string | undefined;
7731
+ version?: number | undefined;
7732
+ }>, z.ZodObject<{
7733
+ type: z.ZodLiteral<"agent">;
7734
+ content: z.ZodOptional<z.ZodString>;
7735
+ metadata: z.ZodDefault<z.ZodObject<{
7736
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7737
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
7738
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
7739
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
7740
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7741
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
7742
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
7743
+ } & {
7744
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
7745
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7746
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
7747
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
7748
+ execution_start: z.ZodOptional<z.ZodNumber>;
7749
+ execution_millis: z.ZodOptional<z.ZodNumber>;
7750
+ source_hash: z.ZodOptional<z.ZodString>;
7751
+ execution_context_id: z.ZodOptional<z.ZodString>;
7752
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
7753
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
7754
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7755
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
7756
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
7757
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7758
+ } & {
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">>;
7776
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7777
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7778
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
7779
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
7780
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
7781
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7782
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
7783
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
7784
+ } & {
7785
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
7786
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7787
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
7788
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
7789
+ execution_start: z.ZodOptional<z.ZodNumber>;
7790
+ execution_millis: z.ZodOptional<z.ZodNumber>;
7791
+ source_hash: z.ZodOptional<z.ZodString>;
7792
+ execution_context_id: z.ZodOptional<z.ZodString>;
7793
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
7794
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
7795
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7796
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
7797
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
7798
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7799
+ } & {
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">>;
7182
7817
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7183
7818
  deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7184
7819
  deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
@@ -7188,19 +7823,52 @@ declare const deepnoteFileSchema: z.ZodObject<{
7188
7823
  deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
7189
7824
  deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
7190
7825
  } & {
7191
- is_collapsed: z.ZodOptional<z.ZodBoolean>;
7192
- formattedRanges: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7826
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
7827
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7828
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
7829
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
7830
+ execution_start: z.ZodOptional<z.ZodNumber>;
7831
+ execution_millis: z.ZodOptional<z.ZodNumber>;
7832
+ source_hash: z.ZodOptional<z.ZodString>;
7833
+ execution_context_id: z.ZodOptional<z.ZodString>;
7834
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
7835
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
7836
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7837
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
7838
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
7839
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7193
7840
  } & {
7194
- color: z.ZodOptional<z.ZodEnum<["blue", "green", "yellow", "red", "purple"]>>;
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">>;
7195
7858
  }, z.ZodTypeAny, "passthrough">>>;
7859
+ executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7860
+ executionFinishedAt: z.ZodOptional<z.ZodString>;
7861
+ executionStartedAt: z.ZodOptional<z.ZodString>;
7862
+ outputs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7196
7863
  id: z.ZodString;
7197
7864
  blockGroup: z.ZodString;
7198
7865
  sortingKey: z.ZodString;
7199
7866
  contentHash: z.ZodOptional<z.ZodString>;
7200
7867
  version: z.ZodOptional<z.ZodNumber>;
7201
7868
  }, "strip", z.ZodTypeAny, {
7202
- type: "text-cell-callout";
7869
+ type: "agent";
7203
7870
  metadata: {
7871
+ deepnote_agent_model: string;
7204
7872
  deepnote_app_is_code_hidden?: boolean | undefined;
7205
7873
  deepnote_app_is_output_hidden?: boolean | undefined;
7206
7874
  deepnote_app_block_visible?: boolean | undefined;
@@ -7208,9 +7876,26 @@ declare const deepnoteFileSchema: z.ZodObject<{
7208
7876
  deepnote_app_block_group_id?: string | null | undefined;
7209
7877
  deepnote_app_block_subgroup_id?: string | undefined;
7210
7878
  deepnote_app_block_order?: number | undefined;
7211
- is_collapsed?: boolean | undefined;
7212
- formattedRanges?: any[] | undefined;
7213
- color?: "blue" | "green" | "yellow" | "red" | "purple" | undefined;
7879
+ deepnote_cell_height?: number | undefined;
7880
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
7881
+ is_code_hidden?: boolean | undefined;
7882
+ is_output_hidden?: boolean | undefined;
7883
+ output_cleared?: boolean | undefined;
7884
+ execution_start?: number | undefined;
7885
+ execution_millis?: number | undefined;
7886
+ source_hash?: string | undefined;
7887
+ execution_context_id?: string | undefined;
7888
+ deepnote_output_heights?: (number | null)[] | undefined;
7889
+ deepnote_table_state?: Record<string, any> | undefined;
7890
+ last_executed_function_notebook_id?: string | undefined;
7891
+ last_function_run_started_at?: number | undefined;
7892
+ function_notebook_export_states?: Record<string, any> | undefined;
7893
+ deepnote_mcp_servers?: {
7894
+ name: string;
7895
+ command: string;
7896
+ args?: string[] | undefined;
7897
+ env?: Record<string, string> | undefined;
7898
+ }[] | undefined;
7214
7899
  } & {
7215
7900
  [k: string]: unknown;
7216
7901
  };
@@ -7220,8 +7905,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
7220
7905
  content?: string | undefined;
7221
7906
  contentHash?: string | undefined;
7222
7907
  version?: number | undefined;
7908
+ executionCount?: number | null | undefined;
7909
+ executionFinishedAt?: string | undefined;
7910
+ executionStartedAt?: string | undefined;
7911
+ outputs?: any[] | undefined;
7223
7912
  }, {
7224
- type: "text-cell-callout";
7913
+ type: "agent";
7225
7914
  id: string;
7226
7915
  blockGroup: string;
7227
7916
  sortingKey: string;
@@ -7235,13 +7924,45 @@ declare const deepnoteFileSchema: z.ZodObject<{
7235
7924
  deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
7236
7925
  deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
7237
7926
  } & {
7238
- is_collapsed: z.ZodOptional<z.ZodBoolean>;
7239
- formattedRanges: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
7927
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
7928
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
7929
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
7930
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
7931
+ execution_start: z.ZodOptional<z.ZodNumber>;
7932
+ execution_millis: z.ZodOptional<z.ZodNumber>;
7933
+ source_hash: z.ZodOptional<z.ZodString>;
7934
+ execution_context_id: z.ZodOptional<z.ZodString>;
7935
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
7936
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
7937
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7938
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
7939
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
7940
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7240
7941
  } & {
7241
- color: z.ZodOptional<z.ZodEnum<["blue", "green", "yellow", "red", "purple"]>>;
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">>;
7242
7959
  }, z.ZodTypeAny, "passthrough"> | undefined;
7243
7960
  contentHash?: string | undefined;
7244
7961
  version?: number | undefined;
7962
+ executionCount?: number | null | undefined;
7963
+ executionFinishedAt?: string | undefined;
7964
+ executionStartedAt?: string | undefined;
7965
+ outputs?: any[] | undefined;
7245
7966
  }>, z.ZodObject<{
7246
7967
  type: z.ZodLiteral<"code">;
7247
7968
  content: z.ZodOptional<z.ZodString>;
@@ -9857,8 +10578,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
9857
10578
  name: z.ZodString;
9858
10579
  workingDirectory: z.ZodOptional<z.ZodString>;
9859
10580
  }, "strip", z.ZodTypeAny, {
9860
- id: string;
9861
10581
  name: string;
10582
+ id: string;
9862
10583
  blocks: ({
9863
10584
  type: "markdown";
9864
10585
  metadata: {
@@ -10069,6 +10790,50 @@ declare const deepnoteFileSchema: z.ZodObject<{
10069
10790
  content?: string | undefined;
10070
10791
  contentHash?: string | undefined;
10071
10792
  version?: number | undefined;
10793
+ } | {
10794
+ type: "agent";
10795
+ metadata: {
10796
+ deepnote_agent_model: string;
10797
+ deepnote_app_is_code_hidden?: boolean | undefined;
10798
+ deepnote_app_is_output_hidden?: boolean | undefined;
10799
+ deepnote_app_block_visible?: boolean | undefined;
10800
+ deepnote_app_block_width?: number | undefined;
10801
+ deepnote_app_block_group_id?: string | null | undefined;
10802
+ deepnote_app_block_subgroup_id?: string | undefined;
10803
+ deepnote_app_block_order?: number | undefined;
10804
+ deepnote_cell_height?: number | undefined;
10805
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
10806
+ is_code_hidden?: boolean | undefined;
10807
+ is_output_hidden?: boolean | undefined;
10808
+ output_cleared?: boolean | undefined;
10809
+ execution_start?: number | undefined;
10810
+ execution_millis?: number | undefined;
10811
+ source_hash?: string | undefined;
10812
+ execution_context_id?: string | undefined;
10813
+ deepnote_output_heights?: (number | null)[] | undefined;
10814
+ deepnote_table_state?: Record<string, any> | undefined;
10815
+ last_executed_function_notebook_id?: string | undefined;
10816
+ last_function_run_started_at?: number | undefined;
10817
+ function_notebook_export_states?: Record<string, any> | undefined;
10818
+ deepnote_mcp_servers?: {
10819
+ name: string;
10820
+ command: string;
10821
+ args?: string[] | undefined;
10822
+ env?: Record<string, string> | undefined;
10823
+ }[] | undefined;
10824
+ } & {
10825
+ [k: string]: unknown;
10826
+ };
10827
+ id: string;
10828
+ blockGroup: string;
10829
+ sortingKey: string;
10830
+ content?: string | undefined;
10831
+ contentHash?: string | undefined;
10832
+ version?: number | undefined;
10833
+ executionCount?: number | null | undefined;
10834
+ executionFinishedAt?: string | undefined;
10835
+ executionStartedAt?: string | undefined;
10836
+ outputs?: any[] | undefined;
10072
10837
  } | {
10073
10838
  type: "code";
10074
10839
  metadata: {
@@ -10662,8 +11427,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
10662
11427
  isModule?: boolean | undefined;
10663
11428
  workingDirectory?: string | undefined;
10664
11429
  }, {
10665
- id: string;
10666
11430
  name: string;
11431
+ id: string;
10667
11432
  blocks: ({
10668
11433
  type: "markdown";
10669
11434
  id: string;
@@ -10865,6 +11630,60 @@ declare const deepnoteFileSchema: z.ZodObject<{
10865
11630
  }, z.ZodTypeAny, "passthrough"> | undefined;
10866
11631
  contentHash?: string | undefined;
10867
11632
  version?: number | undefined;
11633
+ } | {
11634
+ type: "agent";
11635
+ id: string;
11636
+ blockGroup: string;
11637
+ sortingKey: string;
11638
+ content?: string | undefined;
11639
+ metadata?: z.objectInputType<{
11640
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
11641
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
11642
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
11643
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
11644
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11645
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
11646
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
11647
+ } & {
11648
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
11649
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
11650
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
11651
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
11652
+ execution_start: z.ZodOptional<z.ZodNumber>;
11653
+ execution_millis: z.ZodOptional<z.ZodNumber>;
11654
+ source_hash: z.ZodOptional<z.ZodString>;
11655
+ execution_context_id: z.ZodOptional<z.ZodString>;
11656
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
11657
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
11658
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11659
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
11660
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
11661
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11662
+ } & {
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">>;
11680
+ }, z.ZodTypeAny, "passthrough"> | undefined;
11681
+ contentHash?: string | undefined;
11682
+ version?: number | undefined;
11683
+ executionCount?: number | null | undefined;
11684
+ executionFinishedAt?: string | undefined;
11685
+ executionStartedAt?: string | undefined;
11686
+ outputs?: any[] | undefined;
10868
11687
  } | {
10869
11688
  type: "code";
10870
11689
  id: string;
@@ -11481,6 +12300,22 @@ declare const deepnoteFileSchema: z.ZodObject<{
11481
12300
  customImage?: string | undefined;
11482
12301
  pythonVersion?: string | undefined;
11483
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">>;
11484
12319
  requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11485
12320
  sqlCacheMaxAge: z.ZodOptional<z.ZodNumber>;
11486
12321
  }, "strip", z.ZodTypeAny, {
@@ -11488,6 +12323,12 @@ declare const deepnoteFileSchema: z.ZodObject<{
11488
12323
  customImage?: string | undefined;
11489
12324
  pythonVersion?: string | undefined;
11490
12325
  } | undefined;
12326
+ mcpServers?: {
12327
+ name: string;
12328
+ command: string;
12329
+ args?: string[] | undefined;
12330
+ env?: Record<string, string> | undefined;
12331
+ }[] | undefined;
11491
12332
  requirements?: string[] | undefined;
11492
12333
  sqlCacheMaxAge?: number | undefined;
11493
12334
  }, {
@@ -11495,15 +12336,21 @@ declare const deepnoteFileSchema: z.ZodObject<{
11495
12336
  customImage?: string | undefined;
11496
12337
  pythonVersion?: string | undefined;
11497
12338
  } | undefined;
12339
+ mcpServers?: {
12340
+ name: string;
12341
+ command: string;
12342
+ args?: string[] | undefined;
12343
+ env?: Record<string, string> | undefined;
12344
+ }[] | undefined;
11498
12345
  requirements?: string[] | undefined;
11499
12346
  sqlCacheMaxAge?: number | undefined;
11500
12347
  }>>;
11501
12348
  }, "strip", z.ZodTypeAny, {
11502
- id: string;
11503
12349
  name: string;
12350
+ id: string;
11504
12351
  notebooks: {
11505
- id: string;
11506
12352
  name: string;
12353
+ id: string;
11507
12354
  blocks: ({
11508
12355
  type: "markdown";
11509
12356
  metadata: {
@@ -11714,6 +12561,50 @@ declare const deepnoteFileSchema: z.ZodObject<{
11714
12561
  content?: string | undefined;
11715
12562
  contentHash?: string | undefined;
11716
12563
  version?: number | undefined;
12564
+ } | {
12565
+ type: "agent";
12566
+ metadata: {
12567
+ deepnote_agent_model: string;
12568
+ deepnote_app_is_code_hidden?: boolean | undefined;
12569
+ deepnote_app_is_output_hidden?: boolean | undefined;
12570
+ deepnote_app_block_visible?: boolean | undefined;
12571
+ deepnote_app_block_width?: number | undefined;
12572
+ deepnote_app_block_group_id?: string | null | undefined;
12573
+ deepnote_app_block_subgroup_id?: string | undefined;
12574
+ deepnote_app_block_order?: number | undefined;
12575
+ deepnote_cell_height?: number | undefined;
12576
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
12577
+ is_code_hidden?: boolean | undefined;
12578
+ is_output_hidden?: boolean | undefined;
12579
+ output_cleared?: boolean | undefined;
12580
+ execution_start?: number | undefined;
12581
+ execution_millis?: number | undefined;
12582
+ source_hash?: string | undefined;
12583
+ execution_context_id?: string | undefined;
12584
+ deepnote_output_heights?: (number | null)[] | undefined;
12585
+ deepnote_table_state?: Record<string, any> | undefined;
12586
+ last_executed_function_notebook_id?: string | undefined;
12587
+ last_function_run_started_at?: number | undefined;
12588
+ function_notebook_export_states?: Record<string, any> | undefined;
12589
+ deepnote_mcp_servers?: {
12590
+ name: string;
12591
+ command: string;
12592
+ args?: string[] | undefined;
12593
+ env?: Record<string, string> | undefined;
12594
+ }[] | undefined;
12595
+ } & {
12596
+ [k: string]: unknown;
12597
+ };
12598
+ id: string;
12599
+ blockGroup: string;
12600
+ sortingKey: string;
12601
+ content?: string | undefined;
12602
+ contentHash?: string | undefined;
12603
+ version?: number | undefined;
12604
+ executionCount?: number | null | undefined;
12605
+ executionFinishedAt?: string | undefined;
12606
+ executionStartedAt?: string | undefined;
12607
+ outputs?: any[] | undefined;
11717
12608
  } | {
11718
12609
  type: "code";
11719
12610
  metadata: {
@@ -12309,24 +13200,30 @@ declare const deepnoteFileSchema: z.ZodObject<{
12309
13200
  }[];
12310
13201
  initNotebookId?: string | undefined;
12311
13202
  integrations?: {
13203
+ name: string;
12312
13204
  type: string;
12313
13205
  id: string;
12314
- name: string;
12315
13206
  }[] | undefined;
12316
13207
  settings?: {
12317
13208
  environment?: {
12318
13209
  customImage?: string | undefined;
12319
13210
  pythonVersion?: string | undefined;
12320
13211
  } | undefined;
13212
+ mcpServers?: {
13213
+ name: string;
13214
+ command: string;
13215
+ args?: string[] | undefined;
13216
+ env?: Record<string, string> | undefined;
13217
+ }[] | undefined;
12321
13218
  requirements?: string[] | undefined;
12322
13219
  sqlCacheMaxAge?: number | undefined;
12323
13220
  } | undefined;
12324
13221
  }, {
12325
- id: string;
12326
13222
  name: string;
13223
+ id: string;
12327
13224
  notebooks: {
12328
- id: string;
12329
13225
  name: string;
13226
+ id: string;
12330
13227
  blocks: ({
12331
13228
  type: "markdown";
12332
13229
  id: string;
@@ -12528,6 +13425,60 @@ declare const deepnoteFileSchema: z.ZodObject<{
12528
13425
  }, z.ZodTypeAny, "passthrough"> | undefined;
12529
13426
  contentHash?: string | undefined;
12530
13427
  version?: number | undefined;
13428
+ } | {
13429
+ type: "agent";
13430
+ id: string;
13431
+ blockGroup: string;
13432
+ sortingKey: string;
13433
+ content?: string | undefined;
13434
+ metadata?: z.objectInputType<{
13435
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
13436
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
13437
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
13438
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
13439
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13440
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
13441
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
13442
+ } & {
13443
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
13444
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
13445
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
13446
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
13447
+ execution_start: z.ZodOptional<z.ZodNumber>;
13448
+ execution_millis: z.ZodOptional<z.ZodNumber>;
13449
+ source_hash: z.ZodOptional<z.ZodString>;
13450
+ execution_context_id: z.ZodOptional<z.ZodString>;
13451
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
13452
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
13453
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13454
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
13455
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
13456
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
13457
+ } & {
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">>;
13475
+ }, z.ZodTypeAny, "passthrough"> | undefined;
13476
+ contentHash?: string | undefined;
13477
+ version?: number | undefined;
13478
+ executionCount?: number | null | undefined;
13479
+ executionFinishedAt?: string | undefined;
13480
+ executionStartedAt?: string | undefined;
13481
+ outputs?: any[] | undefined;
12531
13482
  } | {
12532
13483
  type: "code";
12533
13484
  id: string;
@@ -13131,15 +14082,21 @@ declare const deepnoteFileSchema: z.ZodObject<{
13131
14082
  }[];
13132
14083
  initNotebookId?: string | undefined;
13133
14084
  integrations?: {
14085
+ name: string;
13134
14086
  type: string;
13135
14087
  id: string;
13136
- name: string;
13137
14088
  }[] | undefined;
13138
14089
  settings?: {
13139
14090
  environment?: {
13140
14091
  customImage?: string | undefined;
13141
14092
  pythonVersion?: string | undefined;
13142
14093
  } | undefined;
14094
+ mcpServers?: {
14095
+ name: string;
14096
+ command: string;
14097
+ args?: string[] | undefined;
14098
+ env?: Record<string, string> | undefined;
14099
+ }[] | undefined;
13143
14100
  requirements?: string[] | undefined;
13144
14101
  sqlCacheMaxAge?: number | undefined;
13145
14102
  } | undefined;
@@ -13154,11 +14111,11 @@ declare const deepnoteFileSchema: z.ZodObject<{
13154
14111
  };
13155
14112
  version: string;
13156
14113
  project: {
13157
- id: string;
13158
14114
  name: string;
14115
+ id: string;
13159
14116
  notebooks: {
13160
- id: string;
13161
14117
  name: string;
14118
+ id: string;
13162
14119
  blocks: ({
13163
14120
  type: "markdown";
13164
14121
  metadata: {
@@ -13337,7 +14294,29 @@ declare const deepnoteFileSchema: z.ZodObject<{
13337
14294
  deepnote_app_block_order?: number | undefined;
13338
14295
  is_collapsed?: boolean | undefined;
13339
14296
  formattedRanges?: any[] | undefined;
13340
- checked?: boolean | undefined;
14297
+ checked?: boolean | undefined;
14298
+ } & {
14299
+ [k: string]: unknown;
14300
+ };
14301
+ id: string;
14302
+ blockGroup: string;
14303
+ sortingKey: string;
14304
+ content?: string | undefined;
14305
+ contentHash?: string | undefined;
14306
+ version?: number | undefined;
14307
+ } | {
14308
+ type: "text-cell-callout";
14309
+ metadata: {
14310
+ deepnote_app_is_code_hidden?: boolean | undefined;
14311
+ deepnote_app_is_output_hidden?: boolean | undefined;
14312
+ deepnote_app_block_visible?: boolean | undefined;
14313
+ deepnote_app_block_width?: number | undefined;
14314
+ deepnote_app_block_group_id?: string | null | undefined;
14315
+ deepnote_app_block_subgroup_id?: string | undefined;
14316
+ deepnote_app_block_order?: number | undefined;
14317
+ is_collapsed?: boolean | undefined;
14318
+ formattedRanges?: any[] | undefined;
14319
+ color?: "blue" | "green" | "yellow" | "red" | "purple" | undefined;
13341
14320
  } & {
13342
14321
  [k: string]: unknown;
13343
14322
  };
@@ -13348,8 +14327,9 @@ declare const deepnoteFileSchema: z.ZodObject<{
13348
14327
  contentHash?: string | undefined;
13349
14328
  version?: number | undefined;
13350
14329
  } | {
13351
- type: "text-cell-callout";
14330
+ type: "agent";
13352
14331
  metadata: {
14332
+ deepnote_agent_model: string;
13353
14333
  deepnote_app_is_code_hidden?: boolean | undefined;
13354
14334
  deepnote_app_is_output_hidden?: boolean | undefined;
13355
14335
  deepnote_app_block_visible?: boolean | undefined;
@@ -13357,9 +14337,26 @@ declare const deepnoteFileSchema: z.ZodObject<{
13357
14337
  deepnote_app_block_group_id?: string | null | undefined;
13358
14338
  deepnote_app_block_subgroup_id?: string | undefined;
13359
14339
  deepnote_app_block_order?: number | undefined;
13360
- is_collapsed?: boolean | undefined;
13361
- formattedRanges?: any[] | undefined;
13362
- color?: "blue" | "green" | "yellow" | "red" | "purple" | undefined;
14340
+ deepnote_cell_height?: number | undefined;
14341
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
14342
+ is_code_hidden?: boolean | undefined;
14343
+ is_output_hidden?: boolean | undefined;
14344
+ output_cleared?: boolean | undefined;
14345
+ execution_start?: number | undefined;
14346
+ execution_millis?: number | undefined;
14347
+ source_hash?: string | undefined;
14348
+ execution_context_id?: string | undefined;
14349
+ deepnote_output_heights?: (number | null)[] | undefined;
14350
+ deepnote_table_state?: Record<string, any> | undefined;
14351
+ last_executed_function_notebook_id?: string | undefined;
14352
+ last_function_run_started_at?: number | undefined;
14353
+ function_notebook_export_states?: Record<string, any> | undefined;
14354
+ deepnote_mcp_servers?: {
14355
+ name: string;
14356
+ command: string;
14357
+ args?: string[] | undefined;
14358
+ env?: Record<string, string> | undefined;
14359
+ }[] | undefined;
13363
14360
  } & {
13364
14361
  [k: string]: unknown;
13365
14362
  };
@@ -13369,6 +14366,10 @@ declare const deepnoteFileSchema: z.ZodObject<{
13369
14366
  content?: string | undefined;
13370
14367
  contentHash?: string | undefined;
13371
14368
  version?: number | undefined;
14369
+ executionCount?: number | null | undefined;
14370
+ executionFinishedAt?: string | undefined;
14371
+ executionStartedAt?: string | undefined;
14372
+ outputs?: any[] | undefined;
13372
14373
  } | {
13373
14374
  type: "code";
13374
14375
  metadata: {
@@ -13964,15 +14965,21 @@ declare const deepnoteFileSchema: z.ZodObject<{
13964
14965
  }[];
13965
14966
  initNotebookId?: string | undefined;
13966
14967
  integrations?: {
14968
+ name: string;
13967
14969
  type: string;
13968
14970
  id: string;
13969
- name: string;
13970
14971
  }[] | undefined;
13971
14972
  settings?: {
13972
14973
  environment?: {
13973
14974
  customImage?: string | undefined;
13974
14975
  pythonVersion?: string | undefined;
13975
14976
  } | undefined;
14977
+ mcpServers?: {
14978
+ name: string;
14979
+ command: string;
14980
+ args?: string[] | undefined;
14981
+ env?: Record<string, string> | undefined;
14982
+ }[] | undefined;
13976
14983
  requirements?: string[] | undefined;
13977
14984
  sqlCacheMaxAge?: number | undefined;
13978
14985
  } | undefined;
@@ -13989,8 +14996,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
13989
14996
  } | undefined;
13990
14997
  execution?: {
13991
14998
  error?: {
13992
- message?: string | undefined;
13993
14999
  name?: string | undefined;
15000
+ message?: string | undefined;
13994
15001
  traceback?: string[] | undefined;
13995
15002
  } | undefined;
13996
15003
  finishedAt?: string | undefined;
@@ -14013,11 +15020,11 @@ declare const deepnoteFileSchema: z.ZodObject<{
14013
15020
  };
14014
15021
  version: string;
14015
15022
  project: {
14016
- id: string;
14017
15023
  name: string;
15024
+ id: string;
14018
15025
  notebooks: {
14019
- id: string;
14020
15026
  name: string;
15027
+ id: string;
14021
15028
  blocks: ({
14022
15029
  type: "markdown";
14023
15030
  id: string;
@@ -14219,6 +15226,60 @@ declare const deepnoteFileSchema: z.ZodObject<{
14219
15226
  }, z.ZodTypeAny, "passthrough"> | undefined;
14220
15227
  contentHash?: string | undefined;
14221
15228
  version?: number | undefined;
15229
+ } | {
15230
+ type: "agent";
15231
+ id: string;
15232
+ blockGroup: string;
15233
+ sortingKey: string;
15234
+ content?: string | undefined;
15235
+ metadata?: z.objectInputType<{
15236
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
15237
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
15238
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
15239
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
15240
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15241
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
15242
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
15243
+ } & {
15244
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
15245
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
15246
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
15247
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
15248
+ execution_start: z.ZodOptional<z.ZodNumber>;
15249
+ execution_millis: z.ZodOptional<z.ZodNumber>;
15250
+ source_hash: z.ZodOptional<z.ZodString>;
15251
+ execution_context_id: z.ZodOptional<z.ZodString>;
15252
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
15253
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
15254
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15255
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
15256
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
15257
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
15258
+ } & {
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">>;
15276
+ }, z.ZodTypeAny, "passthrough"> | undefined;
15277
+ contentHash?: string | undefined;
15278
+ version?: number | undefined;
15279
+ executionCount?: number | null | undefined;
15280
+ executionFinishedAt?: string | undefined;
15281
+ executionStartedAt?: string | undefined;
15282
+ outputs?: any[] | undefined;
14222
15283
  } | {
14223
15284
  type: "code";
14224
15285
  id: string;
@@ -14822,15 +15883,21 @@ declare const deepnoteFileSchema: z.ZodObject<{
14822
15883
  }[];
14823
15884
  initNotebookId?: string | undefined;
14824
15885
  integrations?: {
15886
+ name: string;
14825
15887
  type: string;
14826
15888
  id: string;
14827
- name: string;
14828
15889
  }[] | undefined;
14829
15890
  settings?: {
14830
15891
  environment?: {
14831
15892
  customImage?: string | undefined;
14832
15893
  pythonVersion?: string | undefined;
14833
15894
  } | undefined;
15895
+ mcpServers?: {
15896
+ name: string;
15897
+ command: string;
15898
+ args?: string[] | undefined;
15899
+ env?: Record<string, string> | undefined;
15900
+ }[] | undefined;
14834
15901
  requirements?: string[] | undefined;
14835
15902
  sqlCacheMaxAge?: number | undefined;
14836
15903
  } | undefined;
@@ -14847,8 +15914,8 @@ declare const deepnoteFileSchema: z.ZodObject<{
14847
15914
  } | undefined;
14848
15915
  execution?: {
14849
15916
  error?: {
14850
- message?: string | undefined;
14851
15917
  name?: string | undefined;
15918
+ message?: string | undefined;
14852
15919
  traceback?: string[] | undefined;
14853
15920
  } | undefined;
14854
15921
  finishedAt?: string | undefined;
@@ -14898,13 +15965,13 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
14898
15965
  name: z.ZodString;
14899
15966
  type: z.ZodString;
14900
15967
  }, "strip", z.ZodTypeAny, {
15968
+ name: string;
14901
15969
  type: string;
14902
15970
  id: string;
14903
- name: string;
14904
15971
  }, {
15972
+ name: string;
14905
15973
  type: string;
14906
15974
  id: string;
14907
- name: string;
14908
15975
  }>, "many">>;
14909
15976
  name: z.ZodString;
14910
15977
  notebooks: z.ZodArray<z.ZodObject<{
@@ -15742,6 +16809,240 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
15742
16809
  }, z.ZodTypeAny, "passthrough"> | undefined;
15743
16810
  contentHash?: string | undefined;
15744
16811
  version?: number | undefined;
16812
+ }>, z.ZodObject<{
16813
+ type: z.ZodLiteral<"agent">;
16814
+ content: z.ZodOptional<z.ZodString>;
16815
+ metadata: z.ZodDefault<z.ZodObject<{
16816
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
16817
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
16818
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
16819
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
16820
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16821
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
16822
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
16823
+ } & {
16824
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
16825
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
16826
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
16827
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
16828
+ execution_start: z.ZodOptional<z.ZodNumber>;
16829
+ execution_millis: z.ZodOptional<z.ZodNumber>;
16830
+ source_hash: z.ZodOptional<z.ZodString>;
16831
+ execution_context_id: z.ZodOptional<z.ZodString>;
16832
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
16833
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
16834
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16835
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
16836
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
16837
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16838
+ } & {
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">>;
16856
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
16857
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
16858
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
16859
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
16860
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
16861
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16862
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
16863
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
16864
+ } & {
16865
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
16866
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
16867
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
16868
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
16869
+ execution_start: z.ZodOptional<z.ZodNumber>;
16870
+ execution_millis: z.ZodOptional<z.ZodNumber>;
16871
+ source_hash: z.ZodOptional<z.ZodString>;
16872
+ execution_context_id: z.ZodOptional<z.ZodString>;
16873
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
16874
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
16875
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16876
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
16877
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
16878
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16879
+ } & {
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">>;
16897
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
16898
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
16899
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
16900
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
16901
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
16902
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16903
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
16904
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
16905
+ } & {
16906
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
16907
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
16908
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
16909
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
16910
+ execution_start: z.ZodOptional<z.ZodNumber>;
16911
+ execution_millis: z.ZodOptional<z.ZodNumber>;
16912
+ source_hash: z.ZodOptional<z.ZodString>;
16913
+ execution_context_id: z.ZodOptional<z.ZodString>;
16914
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
16915
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
16916
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16917
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
16918
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
16919
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
16920
+ } & {
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">>;
16938
+ }, z.ZodTypeAny, "passthrough">>>;
16939
+ executionCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16940
+ executionFinishedAt: z.ZodOptional<z.ZodString>;
16941
+ executionStartedAt: z.ZodOptional<z.ZodString>;
16942
+ outputs: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
16943
+ id: z.ZodString;
16944
+ blockGroup: z.ZodString;
16945
+ sortingKey: z.ZodString;
16946
+ contentHash: z.ZodOptional<z.ZodString>;
16947
+ version: z.ZodOptional<z.ZodNumber>;
16948
+ }, "strip", z.ZodTypeAny, {
16949
+ type: "agent";
16950
+ metadata: {
16951
+ deepnote_agent_model: string;
16952
+ deepnote_app_is_code_hidden?: boolean | undefined;
16953
+ deepnote_app_is_output_hidden?: boolean | undefined;
16954
+ deepnote_app_block_visible?: boolean | undefined;
16955
+ deepnote_app_block_width?: number | undefined;
16956
+ deepnote_app_block_group_id?: string | null | undefined;
16957
+ deepnote_app_block_subgroup_id?: string | undefined;
16958
+ deepnote_app_block_order?: number | undefined;
16959
+ deepnote_cell_height?: number | undefined;
16960
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
16961
+ is_code_hidden?: boolean | undefined;
16962
+ is_output_hidden?: boolean | undefined;
16963
+ output_cleared?: boolean | undefined;
16964
+ execution_start?: number | undefined;
16965
+ execution_millis?: number | undefined;
16966
+ source_hash?: string | undefined;
16967
+ execution_context_id?: string | undefined;
16968
+ deepnote_output_heights?: (number | null)[] | undefined;
16969
+ deepnote_table_state?: Record<string, any> | undefined;
16970
+ last_executed_function_notebook_id?: string | undefined;
16971
+ last_function_run_started_at?: number | undefined;
16972
+ function_notebook_export_states?: Record<string, any> | undefined;
16973
+ deepnote_mcp_servers?: {
16974
+ name: string;
16975
+ command: string;
16976
+ args?: string[] | undefined;
16977
+ env?: Record<string, string> | undefined;
16978
+ }[] | undefined;
16979
+ } & {
16980
+ [k: string]: unknown;
16981
+ };
16982
+ id: string;
16983
+ blockGroup: string;
16984
+ sortingKey: string;
16985
+ content?: string | undefined;
16986
+ contentHash?: string | undefined;
16987
+ version?: number | undefined;
16988
+ executionCount?: number | null | undefined;
16989
+ executionFinishedAt?: string | undefined;
16990
+ executionStartedAt?: string | undefined;
16991
+ outputs?: any[] | undefined;
16992
+ }, {
16993
+ type: "agent";
16994
+ id: string;
16995
+ blockGroup: string;
16996
+ sortingKey: string;
16997
+ content?: string | undefined;
16998
+ metadata?: z.objectInputType<{
16999
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
17000
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
17001
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
17002
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
17003
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17004
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
17005
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
17006
+ } & {
17007
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
17008
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
17009
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
17010
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
17011
+ execution_start: z.ZodOptional<z.ZodNumber>;
17012
+ execution_millis: z.ZodOptional<z.ZodNumber>;
17013
+ source_hash: z.ZodOptional<z.ZodString>;
17014
+ execution_context_id: z.ZodOptional<z.ZodString>;
17015
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
17016
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
17017
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17018
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
17019
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
17020
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
17021
+ } & {
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">>;
17039
+ }, z.ZodTypeAny, "passthrough"> | undefined;
17040
+ contentHash?: string | undefined;
17041
+ version?: number | undefined;
17042
+ executionCount?: number | null | undefined;
17043
+ executionFinishedAt?: string | undefined;
17044
+ executionStartedAt?: string | undefined;
17045
+ outputs?: any[] | undefined;
15745
17046
  }>, z.ZodObject<{
15746
17047
  type: z.ZodLiteral<"code">;
15747
17048
  content: z.ZodOptional<z.ZodString>;
@@ -18357,8 +19658,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
18357
19658
  name: z.ZodString;
18358
19659
  workingDirectory: z.ZodOptional<z.ZodString>;
18359
19660
  }, "strip", z.ZodTypeAny, {
18360
- id: string;
18361
19661
  name: string;
19662
+ id: string;
18362
19663
  blocks: ({
18363
19664
  type: "markdown";
18364
19665
  metadata: {
@@ -18505,7 +19806,28 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
18505
19806
  contentHash?: string | undefined;
18506
19807
  version?: number | undefined;
18507
19808
  } | {
18508
- type: "text-cell-bullet";
19809
+ type: "text-cell-bullet";
19810
+ metadata: {
19811
+ deepnote_app_is_code_hidden?: boolean | undefined;
19812
+ deepnote_app_is_output_hidden?: boolean | undefined;
19813
+ deepnote_app_block_visible?: boolean | undefined;
19814
+ deepnote_app_block_width?: number | undefined;
19815
+ deepnote_app_block_group_id?: string | null | undefined;
19816
+ deepnote_app_block_subgroup_id?: string | undefined;
19817
+ deepnote_app_block_order?: number | undefined;
19818
+ is_collapsed?: boolean | undefined;
19819
+ formattedRanges?: any[] | undefined;
19820
+ } & {
19821
+ [k: string]: unknown;
19822
+ };
19823
+ id: string;
19824
+ blockGroup: string;
19825
+ sortingKey: string;
19826
+ content?: string | undefined;
19827
+ contentHash?: string | undefined;
19828
+ version?: number | undefined;
19829
+ } | {
19830
+ type: "text-cell-todo";
18509
19831
  metadata: {
18510
19832
  deepnote_app_is_code_hidden?: boolean | undefined;
18511
19833
  deepnote_app_is_output_hidden?: boolean | undefined;
@@ -18516,6 +19838,7 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
18516
19838
  deepnote_app_block_order?: number | undefined;
18517
19839
  is_collapsed?: boolean | undefined;
18518
19840
  formattedRanges?: any[] | undefined;
19841
+ checked?: boolean | undefined;
18519
19842
  } & {
18520
19843
  [k: string]: unknown;
18521
19844
  };
@@ -18526,7 +19849,7 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
18526
19849
  contentHash?: string | undefined;
18527
19850
  version?: number | undefined;
18528
19851
  } | {
18529
- type: "text-cell-todo";
19852
+ type: "text-cell-callout";
18530
19853
  metadata: {
18531
19854
  deepnote_app_is_code_hidden?: boolean | undefined;
18532
19855
  deepnote_app_is_output_hidden?: boolean | undefined;
@@ -18537,7 +19860,7 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
18537
19860
  deepnote_app_block_order?: number | undefined;
18538
19861
  is_collapsed?: boolean | undefined;
18539
19862
  formattedRanges?: any[] | undefined;
18540
- checked?: boolean | undefined;
19863
+ color?: "blue" | "green" | "yellow" | "red" | "purple" | undefined;
18541
19864
  } & {
18542
19865
  [k: string]: unknown;
18543
19866
  };
@@ -18548,8 +19871,9 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
18548
19871
  contentHash?: string | undefined;
18549
19872
  version?: number | undefined;
18550
19873
  } | {
18551
- type: "text-cell-callout";
19874
+ type: "agent";
18552
19875
  metadata: {
19876
+ deepnote_agent_model: string;
18553
19877
  deepnote_app_is_code_hidden?: boolean | undefined;
18554
19878
  deepnote_app_is_output_hidden?: boolean | undefined;
18555
19879
  deepnote_app_block_visible?: boolean | undefined;
@@ -18557,9 +19881,26 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
18557
19881
  deepnote_app_block_group_id?: string | null | undefined;
18558
19882
  deepnote_app_block_subgroup_id?: string | undefined;
18559
19883
  deepnote_app_block_order?: number | undefined;
18560
- is_collapsed?: boolean | undefined;
18561
- formattedRanges?: any[] | undefined;
18562
- color?: "blue" | "green" | "yellow" | "red" | "purple" | undefined;
19884
+ deepnote_cell_height?: number | undefined;
19885
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
19886
+ is_code_hidden?: boolean | undefined;
19887
+ is_output_hidden?: boolean | undefined;
19888
+ output_cleared?: boolean | undefined;
19889
+ execution_start?: number | undefined;
19890
+ execution_millis?: number | undefined;
19891
+ source_hash?: string | undefined;
19892
+ execution_context_id?: string | undefined;
19893
+ deepnote_output_heights?: (number | null)[] | undefined;
19894
+ deepnote_table_state?: Record<string, any> | undefined;
19895
+ last_executed_function_notebook_id?: string | undefined;
19896
+ last_function_run_started_at?: number | undefined;
19897
+ function_notebook_export_states?: Record<string, any> | undefined;
19898
+ deepnote_mcp_servers?: {
19899
+ name: string;
19900
+ command: string;
19901
+ args?: string[] | undefined;
19902
+ env?: Record<string, string> | undefined;
19903
+ }[] | undefined;
18563
19904
  } & {
18564
19905
  [k: string]: unknown;
18565
19906
  };
@@ -18569,6 +19910,10 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
18569
19910
  content?: string | undefined;
18570
19911
  contentHash?: string | undefined;
18571
19912
  version?: number | undefined;
19913
+ executionCount?: number | null | undefined;
19914
+ executionFinishedAt?: string | undefined;
19915
+ executionStartedAt?: string | undefined;
19916
+ outputs?: any[] | undefined;
18572
19917
  } | {
18573
19918
  type: "code";
18574
19919
  metadata: {
@@ -19162,8 +20507,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19162
20507
  isModule?: boolean | undefined;
19163
20508
  workingDirectory?: string | undefined;
19164
20509
  }, {
19165
- id: string;
19166
20510
  name: string;
20511
+ id: string;
19167
20512
  blocks: ({
19168
20513
  type: "markdown";
19169
20514
  id: string;
@@ -19365,6 +20710,60 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19365
20710
  }, z.ZodTypeAny, "passthrough"> | undefined;
19366
20711
  contentHash?: string | undefined;
19367
20712
  version?: number | undefined;
20713
+ } | {
20714
+ type: "agent";
20715
+ id: string;
20716
+ blockGroup: string;
20717
+ sortingKey: string;
20718
+ content?: string | undefined;
20719
+ metadata?: z.objectInputType<{
20720
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
20721
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
20722
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
20723
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
20724
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20725
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
20726
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
20727
+ } & {
20728
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
20729
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
20730
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
20731
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
20732
+ execution_start: z.ZodOptional<z.ZodNumber>;
20733
+ execution_millis: z.ZodOptional<z.ZodNumber>;
20734
+ source_hash: z.ZodOptional<z.ZodString>;
20735
+ execution_context_id: z.ZodOptional<z.ZodString>;
20736
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
20737
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
20738
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20739
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
20740
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
20741
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
20742
+ } & {
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">>;
20760
+ }, z.ZodTypeAny, "passthrough"> | undefined;
20761
+ contentHash?: string | undefined;
20762
+ version?: number | undefined;
20763
+ executionCount?: number | null | undefined;
20764
+ executionFinishedAt?: string | undefined;
20765
+ executionStartedAt?: string | undefined;
20766
+ outputs?: any[] | undefined;
19368
20767
  } | {
19369
20768
  type: "code";
19370
20769
  id: string;
@@ -19981,6 +21380,22 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19981
21380
  customImage?: string | undefined;
19982
21381
  pythonVersion?: string | undefined;
19983
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">>;
19984
21399
  requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
19985
21400
  sqlCacheMaxAge: z.ZodOptional<z.ZodNumber>;
19986
21401
  }, "strip", z.ZodTypeAny, {
@@ -19988,6 +21403,12 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19988
21403
  customImage?: string | undefined;
19989
21404
  pythonVersion?: string | undefined;
19990
21405
  } | undefined;
21406
+ mcpServers?: {
21407
+ name: string;
21408
+ command: string;
21409
+ args?: string[] | undefined;
21410
+ env?: Record<string, string> | undefined;
21411
+ }[] | undefined;
19991
21412
  requirements?: string[] | undefined;
19992
21413
  sqlCacheMaxAge?: number | undefined;
19993
21414
  }, {
@@ -19995,15 +21416,21 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
19995
21416
  customImage?: string | undefined;
19996
21417
  pythonVersion?: string | undefined;
19997
21418
  } | undefined;
21419
+ mcpServers?: {
21420
+ name: string;
21421
+ command: string;
21422
+ args?: string[] | undefined;
21423
+ env?: Record<string, string> | undefined;
21424
+ }[] | undefined;
19998
21425
  requirements?: string[] | undefined;
19999
21426
  sqlCacheMaxAge?: number | undefined;
20000
21427
  }>>;
20001
21428
  }, "strip", z.ZodTypeAny, {
20002
- id: string;
20003
21429
  name: string;
21430
+ id: string;
20004
21431
  notebooks: {
20005
- id: string;
20006
21432
  name: string;
21433
+ id: string;
20007
21434
  blocks: ({
20008
21435
  type: "markdown";
20009
21436
  metadata: {
@@ -20214,6 +21641,50 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
20214
21641
  content?: string | undefined;
20215
21642
  contentHash?: string | undefined;
20216
21643
  version?: number | undefined;
21644
+ } | {
21645
+ type: "agent";
21646
+ metadata: {
21647
+ deepnote_agent_model: string;
21648
+ deepnote_app_is_code_hidden?: boolean | undefined;
21649
+ deepnote_app_is_output_hidden?: boolean | undefined;
21650
+ deepnote_app_block_visible?: boolean | undefined;
21651
+ deepnote_app_block_width?: number | undefined;
21652
+ deepnote_app_block_group_id?: string | null | undefined;
21653
+ deepnote_app_block_subgroup_id?: string | undefined;
21654
+ deepnote_app_block_order?: number | undefined;
21655
+ deepnote_cell_height?: number | undefined;
21656
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
21657
+ is_code_hidden?: boolean | undefined;
21658
+ is_output_hidden?: boolean | undefined;
21659
+ output_cleared?: boolean | undefined;
21660
+ execution_start?: number | undefined;
21661
+ execution_millis?: number | undefined;
21662
+ source_hash?: string | undefined;
21663
+ execution_context_id?: string | undefined;
21664
+ deepnote_output_heights?: (number | null)[] | undefined;
21665
+ deepnote_table_state?: Record<string, any> | undefined;
21666
+ last_executed_function_notebook_id?: string | undefined;
21667
+ last_function_run_started_at?: number | undefined;
21668
+ function_notebook_export_states?: Record<string, any> | undefined;
21669
+ deepnote_mcp_servers?: {
21670
+ name: string;
21671
+ command: string;
21672
+ args?: string[] | undefined;
21673
+ env?: Record<string, string> | undefined;
21674
+ }[] | undefined;
21675
+ } & {
21676
+ [k: string]: unknown;
21677
+ };
21678
+ id: string;
21679
+ blockGroup: string;
21680
+ sortingKey: string;
21681
+ content?: string | undefined;
21682
+ contentHash?: string | undefined;
21683
+ version?: number | undefined;
21684
+ executionCount?: number | null | undefined;
21685
+ executionFinishedAt?: string | undefined;
21686
+ executionStartedAt?: string | undefined;
21687
+ outputs?: any[] | undefined;
20217
21688
  } | {
20218
21689
  type: "code";
20219
21690
  metadata: {
@@ -20809,24 +22280,30 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
20809
22280
  }[];
20810
22281
  initNotebookId?: string | undefined;
20811
22282
  integrations?: {
22283
+ name: string;
20812
22284
  type: string;
20813
22285
  id: string;
20814
- name: string;
20815
22286
  }[] | undefined;
20816
22287
  settings?: {
20817
22288
  environment?: {
20818
22289
  customImage?: string | undefined;
20819
22290
  pythonVersion?: string | undefined;
20820
22291
  } | undefined;
22292
+ mcpServers?: {
22293
+ name: string;
22294
+ command: string;
22295
+ args?: string[] | undefined;
22296
+ env?: Record<string, string> | undefined;
22297
+ }[] | undefined;
20821
22298
  requirements?: string[] | undefined;
20822
22299
  sqlCacheMaxAge?: number | undefined;
20823
22300
  } | undefined;
20824
22301
  }, {
20825
- id: string;
20826
22302
  name: string;
22303
+ id: string;
20827
22304
  notebooks: {
20828
- id: string;
20829
22305
  name: string;
22306
+ id: string;
20830
22307
  blocks: ({
20831
22308
  type: "markdown";
20832
22309
  id: string;
@@ -21028,6 +22505,60 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21028
22505
  }, z.ZodTypeAny, "passthrough"> | undefined;
21029
22506
  contentHash?: string | undefined;
21030
22507
  version?: number | undefined;
22508
+ } | {
22509
+ type: "agent";
22510
+ id: string;
22511
+ blockGroup: string;
22512
+ sortingKey: string;
22513
+ content?: string | undefined;
22514
+ metadata?: z.objectInputType<{
22515
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
22516
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
22517
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
22518
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
22519
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22520
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
22521
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
22522
+ } & {
22523
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
22524
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
22525
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
22526
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
22527
+ execution_start: z.ZodOptional<z.ZodNumber>;
22528
+ execution_millis: z.ZodOptional<z.ZodNumber>;
22529
+ source_hash: z.ZodOptional<z.ZodString>;
22530
+ execution_context_id: z.ZodOptional<z.ZodString>;
22531
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
22532
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
22533
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
22534
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
22535
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
22536
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
22537
+ } & {
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">>;
22555
+ }, z.ZodTypeAny, "passthrough"> | undefined;
22556
+ contentHash?: string | undefined;
22557
+ version?: number | undefined;
22558
+ executionCount?: number | null | undefined;
22559
+ executionFinishedAt?: string | undefined;
22560
+ executionStartedAt?: string | undefined;
22561
+ outputs?: any[] | undefined;
21031
22562
  } | {
21032
22563
  type: "code";
21033
22564
  id: string;
@@ -21631,15 +23162,21 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21631
23162
  }[];
21632
23163
  initNotebookId?: string | undefined;
21633
23164
  integrations?: {
23165
+ name: string;
21634
23166
  type: string;
21635
23167
  id: string;
21636
- name: string;
21637
23168
  }[] | undefined;
21638
23169
  settings?: {
21639
23170
  environment?: {
21640
23171
  customImage?: string | undefined;
21641
23172
  pythonVersion?: string | undefined;
21642
23173
  } | undefined;
23174
+ mcpServers?: {
23175
+ name: string;
23176
+ command: string;
23177
+ args?: string[] | undefined;
23178
+ env?: Record<string, string> | undefined;
23179
+ }[] | undefined;
21643
23180
  requirements?: string[] | undefined;
21644
23181
  sqlCacheMaxAge?: number | undefined;
21645
23182
  } | undefined;
@@ -21686,12 +23223,12 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21686
23223
  name: z.ZodOptional<z.ZodString>;
21687
23224
  traceback: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21688
23225
  }, "strip", z.ZodTypeAny, {
21689
- message?: string | undefined;
21690
23226
  name?: string | undefined;
23227
+ message?: string | undefined;
21691
23228
  traceback?: string[] | undefined;
21692
23229
  }, {
21693
- message?: string | undefined;
21694
23230
  name?: string | undefined;
23231
+ message?: string | undefined;
21695
23232
  traceback?: string[] | undefined;
21696
23233
  }>>;
21697
23234
  finishedAt: z.ZodOptional<z.ZodString>;
@@ -21716,8 +23253,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21716
23253
  triggeredBy: z.ZodOptional<z.ZodEnum<["user", "schedule", "api", "ci"]>>;
21717
23254
  }, "strip", z.ZodTypeAny, {
21718
23255
  error?: {
21719
- message?: string | undefined;
21720
23256
  name?: string | undefined;
23257
+ message?: string | undefined;
21721
23258
  traceback?: string[] | undefined;
21722
23259
  } | undefined;
21723
23260
  finishedAt?: string | undefined;
@@ -21732,8 +23269,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21732
23269
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
21733
23270
  }, {
21734
23271
  error?: {
21735
- message?: string | undefined;
21736
23272
  name?: string | undefined;
23273
+ message?: string | undefined;
21737
23274
  traceback?: string[] | undefined;
21738
23275
  } | undefined;
21739
23276
  finishedAt?: string | undefined;
@@ -21787,8 +23324,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21787
23324
  };
21788
23325
  execution: {
21789
23326
  error?: {
21790
- message?: string | undefined;
21791
23327
  name?: string | undefined;
23328
+ message?: string | undefined;
21792
23329
  traceback?: string[] | undefined;
21793
23330
  } | undefined;
21794
23331
  finishedAt?: string | undefined;
@@ -21803,11 +23340,11 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
21803
23340
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
21804
23341
  };
21805
23342
  project: {
21806
- id: string;
21807
23343
  name: string;
23344
+ id: string;
21808
23345
  notebooks: {
21809
- id: string;
21810
23346
  name: string;
23347
+ id: string;
21811
23348
  blocks: ({
21812
23349
  type: "markdown";
21813
23350
  metadata: {
@@ -22018,6 +23555,50 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22018
23555
  content?: string | undefined;
22019
23556
  contentHash?: string | undefined;
22020
23557
  version?: number | undefined;
23558
+ } | {
23559
+ type: "agent";
23560
+ metadata: {
23561
+ deepnote_agent_model: string;
23562
+ deepnote_app_is_code_hidden?: boolean | undefined;
23563
+ deepnote_app_is_output_hidden?: boolean | undefined;
23564
+ deepnote_app_block_visible?: boolean | undefined;
23565
+ deepnote_app_block_width?: number | undefined;
23566
+ deepnote_app_block_group_id?: string | null | undefined;
23567
+ deepnote_app_block_subgroup_id?: string | undefined;
23568
+ deepnote_app_block_order?: number | undefined;
23569
+ deepnote_cell_height?: number | undefined;
23570
+ allow_embed?: boolean | "code" | "code_output" | "output" | undefined;
23571
+ is_code_hidden?: boolean | undefined;
23572
+ is_output_hidden?: boolean | undefined;
23573
+ output_cleared?: boolean | undefined;
23574
+ execution_start?: number | undefined;
23575
+ execution_millis?: number | undefined;
23576
+ source_hash?: string | undefined;
23577
+ execution_context_id?: string | undefined;
23578
+ deepnote_output_heights?: (number | null)[] | undefined;
23579
+ deepnote_table_state?: Record<string, any> | undefined;
23580
+ last_executed_function_notebook_id?: string | undefined;
23581
+ last_function_run_started_at?: number | undefined;
23582
+ function_notebook_export_states?: Record<string, any> | undefined;
23583
+ deepnote_mcp_servers?: {
23584
+ name: string;
23585
+ command: string;
23586
+ args?: string[] | undefined;
23587
+ env?: Record<string, string> | undefined;
23588
+ }[] | undefined;
23589
+ } & {
23590
+ [k: string]: unknown;
23591
+ };
23592
+ id: string;
23593
+ blockGroup: string;
23594
+ sortingKey: string;
23595
+ content?: string | undefined;
23596
+ contentHash?: string | undefined;
23597
+ version?: number | undefined;
23598
+ executionCount?: number | null | undefined;
23599
+ executionFinishedAt?: string | undefined;
23600
+ executionStartedAt?: string | undefined;
23601
+ outputs?: any[] | undefined;
22021
23602
  } | {
22022
23603
  type: "code";
22023
23604
  metadata: {
@@ -22613,15 +24194,21 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22613
24194
  }[];
22614
24195
  initNotebookId?: string | undefined;
22615
24196
  integrations?: {
24197
+ name: string;
22616
24198
  type: string;
22617
24199
  id: string;
22618
- name: string;
22619
24200
  }[] | undefined;
22620
24201
  settings?: {
22621
24202
  environment?: {
22622
24203
  customImage?: string | undefined;
22623
24204
  pythonVersion?: string | undefined;
22624
24205
  } | undefined;
24206
+ mcpServers?: {
24207
+ name: string;
24208
+ command: string;
24209
+ args?: string[] | undefined;
24210
+ env?: Record<string, string> | undefined;
24211
+ }[] | undefined;
22625
24212
  requirements?: string[] | undefined;
22626
24213
  sqlCacheMaxAge?: number | undefined;
22627
24214
  } | undefined;
@@ -22647,8 +24234,8 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22647
24234
  };
22648
24235
  execution: {
22649
24236
  error?: {
22650
- message?: string | undefined;
22651
24237
  name?: string | undefined;
24238
+ message?: string | undefined;
22652
24239
  traceback?: string[] | undefined;
22653
24240
  } | undefined;
22654
24241
  finishedAt?: string | undefined;
@@ -22663,11 +24250,11 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22663
24250
  triggeredBy?: "user" | "schedule" | "api" | "ci" | undefined;
22664
24251
  };
22665
24252
  project: {
22666
- id: string;
22667
24253
  name: string;
24254
+ id: string;
22668
24255
  notebooks: {
22669
- id: string;
22670
24256
  name: string;
24257
+ id: string;
22671
24258
  blocks: ({
22672
24259
  type: "markdown";
22673
24260
  id: string;
@@ -22869,6 +24456,60 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
22869
24456
  }, z.ZodTypeAny, "passthrough"> | undefined;
22870
24457
  contentHash?: string | undefined;
22871
24458
  version?: number | undefined;
24459
+ } | {
24460
+ type: "agent";
24461
+ id: string;
24462
+ blockGroup: string;
24463
+ sortingKey: string;
24464
+ content?: string | undefined;
24465
+ metadata?: z.objectInputType<{
24466
+ deepnote_app_is_code_hidden: z.ZodOptional<z.ZodBoolean>;
24467
+ deepnote_app_is_output_hidden: z.ZodOptional<z.ZodBoolean>;
24468
+ deepnote_app_block_visible: z.ZodOptional<z.ZodBoolean>;
24469
+ deepnote_app_block_width: z.ZodOptional<z.ZodNumber>;
24470
+ deepnote_app_block_group_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24471
+ deepnote_app_block_subgroup_id: z.ZodOptional<z.ZodString>;
24472
+ deepnote_app_block_order: z.ZodOptional<z.ZodNumber>;
24473
+ } & {
24474
+ allow_embed: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodEnum<["code_output", "code", "output"]>]>>;
24475
+ is_code_hidden: z.ZodOptional<z.ZodBoolean>;
24476
+ is_output_hidden: z.ZodOptional<z.ZodBoolean>;
24477
+ output_cleared: z.ZodOptional<z.ZodBoolean>;
24478
+ execution_start: z.ZodOptional<z.ZodNumber>;
24479
+ execution_millis: z.ZodOptional<z.ZodNumber>;
24480
+ source_hash: z.ZodOptional<z.ZodString>;
24481
+ execution_context_id: z.ZodOptional<z.ZodString>;
24482
+ deepnote_cell_height: z.ZodOptional<z.ZodNumber>;
24483
+ deepnote_output_heights: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodNumber>, "many">>;
24484
+ deepnote_table_state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
24485
+ last_executed_function_notebook_id: z.ZodOptional<z.ZodString>;
24486
+ last_function_run_started_at: z.ZodOptional<z.ZodNumber>;
24487
+ function_notebook_export_states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
24488
+ } & {
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">>;
24506
+ }, z.ZodTypeAny, "passthrough"> | undefined;
24507
+ contentHash?: string | undefined;
24508
+ version?: number | undefined;
24509
+ executionCount?: number | null | undefined;
24510
+ executionFinishedAt?: string | undefined;
24511
+ executionStartedAt?: string | undefined;
24512
+ outputs?: any[] | undefined;
22872
24513
  } | {
22873
24514
  type: "code";
22874
24515
  id: string;
@@ -23472,15 +25113,21 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
23472
25113
  }[];
23473
25114
  initNotebookId?: string | undefined;
23474
25115
  integrations?: {
25116
+ name: string;
23475
25117
  type: string;
23476
25118
  id: string;
23477
- name: string;
23478
25119
  }[] | undefined;
23479
25120
  settings?: {
23480
25121
  environment?: {
23481
25122
  customImage?: string | undefined;
23482
25123
  pythonVersion?: string | undefined;
23483
25124
  } | undefined;
25125
+ mcpServers?: {
25126
+ name: string;
25127
+ command: string;
25128
+ args?: string[] | undefined;
25129
+ env?: Record<string, string> | undefined;
25130
+ }[] | undefined;
23484
25131
  requirements?: string[] | undefined;
23485
25132
  sqlCacheMaxAge?: number | undefined;
23486
25133
  } | undefined;
@@ -23488,6 +25135,9 @@ declare const deepnoteSnapshotSchema: z.ZodObject<{
23488
25135
  }>;
23489
25136
  type DeepnoteSnapshot = z.infer<typeof deepnoteSnapshotSchema>;
23490
25137
  //#endregion
25138
+ //#region src/blocks/agent-blocks.d.ts
25139
+ declare function isAgentBlock(block: DeepnoteBlock): block is AgentBlock;
25140
+ //#endregion
23491
25141
  //#region src/blocks/executable-blocks.d.ts
23492
25142
  /**
23493
25143
  * Block types that represent user input widgets.
@@ -23584,6 +25234,22 @@ declare function serializeDeepnoteSnapshot(snapshot: DeepnoteSnapshot): string;
23584
25234
  declare function createMarkdown(block: DeepnoteBlock): string;
23585
25235
  declare function stripMarkdown(block: DeepnoteBlock): string;
23586
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
23587
25253
  //#region src/blocks/button-blocks.d.ts
23588
25254
  interface ButtonExecutionContext {
23589
25255
  /**
@@ -23596,4 +25262,4 @@ interface ButtonExecutionContext {
23596
25262
  //#region src/python-code.d.ts
23597
25263
  declare function createPythonCode(block: DeepnoteBlock, executionContext?: ButtonExecutionContext): string;
23598
25264
  //#endregion
23599
- 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 };