@tscircuit/fake-snippets 0.0.149 → 0.0.151

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/schema.d.ts CHANGED
@@ -36,6 +36,7 @@ declare const errorResponseSchema: z.ZodObject<{
36
36
  [k: string]: unknown;
37
37
  };
38
38
  }>;
39
+ declare const log: z.ZodAny;
39
40
  declare const snippetSchema: z.ZodObject<{
40
41
  snippet_id: z.ZodString;
41
42
  package_release_id: z.ZodString;
@@ -1205,17 +1206,17 @@ declare const packageBuildSchema: z.ZodObject<{
1205
1206
  transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
1206
1207
  transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1207
1208
  transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1208
- transpilation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1209
+ transpilation_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
1209
1210
  transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1210
1211
  circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
1211
1212
  circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1212
1213
  circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1213
- circuit_json_build_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1214
+ circuit_json_build_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
1214
1215
  circuit_json_build_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1215
1216
  image_generation_in_progress: z.ZodDefault<z.ZodBoolean>;
1216
1217
  image_generation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1217
1218
  image_generation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1218
- image_generation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
1219
+ image_generation_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
1219
1220
  image_generation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
1221
  build_in_progress: z.ZodDefault<z.ZodBoolean>;
1221
1222
  build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1224,15 +1225,21 @@ declare const packageBuildSchema: z.ZodObject<{
1224
1225
  build_error_last_updated_at: z.ZodString;
1225
1226
  preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1226
1227
  build_logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1228
+ user_code_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1229
+ user_code_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1230
+ user_code_error: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
1231
+ user_code_build_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
1232
+ user_code_log_stream_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1227
1233
  }, "strip", z.ZodTypeAny, {
1228
1234
  package_release_id: string;
1229
1235
  created_at: string;
1230
1236
  transpilation_in_progress: boolean;
1231
- transpilation_logs: any[];
1237
+ transpilation_logs: any[] | null;
1238
+ user_code_build_logs: any[] | null;
1232
1239
  circuit_json_build_in_progress: boolean;
1233
- circuit_json_build_logs: any[];
1240
+ circuit_json_build_logs: any[] | null;
1234
1241
  image_generation_in_progress: boolean;
1235
- image_generation_logs: any[];
1242
+ image_generation_logs: any[] | null;
1236
1243
  package_build_id: string;
1237
1244
  build_in_progress: boolean;
1238
1245
  build_error_last_updated_at: string;
@@ -1240,6 +1247,10 @@ declare const packageBuildSchema: z.ZodObject<{
1240
1247
  transpilation_error?: string | null | undefined;
1241
1248
  transpilation_started_at?: string | null | undefined;
1242
1249
  transpilation_completed_at?: string | null | undefined;
1250
+ user_code_started_at?: string | null | undefined;
1251
+ user_code_completed_at?: string | null | undefined;
1252
+ user_code_error?: any;
1253
+ user_code_log_stream_url?: string | null | undefined;
1243
1254
  circuit_json_build_started_at?: string | null | undefined;
1244
1255
  circuit_json_build_completed_at?: string | null | undefined;
1245
1256
  image_generation_started_at?: string | null | undefined;
@@ -1253,6 +1264,10 @@ declare const packageBuildSchema: z.ZodObject<{
1253
1264
  }, {
1254
1265
  package_release_id: string;
1255
1266
  created_at: string;
1267
+ transpilation_logs: any[] | null;
1268
+ user_code_build_logs: any[] | null;
1269
+ circuit_json_build_logs: any[] | null;
1270
+ image_generation_logs: any[] | null;
1256
1271
  package_build_id: string;
1257
1272
  build_error_last_updated_at: string;
1258
1273
  circuit_json_build_error?: string | null | undefined;
@@ -1260,15 +1275,16 @@ declare const packageBuildSchema: z.ZodObject<{
1260
1275
  transpilation_in_progress?: boolean | undefined;
1261
1276
  transpilation_started_at?: string | null | undefined;
1262
1277
  transpilation_completed_at?: string | null | undefined;
1263
- transpilation_logs?: any[] | undefined;
1278
+ user_code_started_at?: string | null | undefined;
1279
+ user_code_completed_at?: string | null | undefined;
1280
+ user_code_error?: any;
1281
+ user_code_log_stream_url?: string | null | undefined;
1264
1282
  circuit_json_build_in_progress?: boolean | undefined;
1265
1283
  circuit_json_build_started_at?: string | null | undefined;
1266
1284
  circuit_json_build_completed_at?: string | null | undefined;
1267
- circuit_json_build_logs?: any[] | undefined;
1268
1285
  image_generation_in_progress?: boolean | undefined;
1269
1286
  image_generation_started_at?: string | null | undefined;
1270
1287
  image_generation_completed_at?: string | null | undefined;
1271
- image_generation_logs?: any[] | undefined;
1272
1288
  image_generation_error?: string | null | undefined;
1273
1289
  build_in_progress?: boolean | undefined;
1274
1290
  build_started_at?: string | null | undefined;
@@ -1327,6 +1343,53 @@ declare const orgAccountSchema: z.ZodObject<{
1327
1343
  can_manage_org?: boolean | undefined;
1328
1344
  }>;
1329
1345
  type OrgAccount = z.infer<typeof orgAccountSchema>;
1346
+ declare const orgInvitationSchema: z.ZodObject<{
1347
+ org_invitation_id: z.ZodString;
1348
+ org_id: z.ZodString;
1349
+ invitee_email: z.ZodNullable<z.ZodString>;
1350
+ inviter_account_id: z.ZodString;
1351
+ invitation_token: z.ZodString;
1352
+ is_link_invite: z.ZodDefault<z.ZodBoolean>;
1353
+ is_pending: z.ZodDefault<z.ZodBoolean>;
1354
+ is_accepted: z.ZodDefault<z.ZodBoolean>;
1355
+ is_expired: z.ZodDefault<z.ZodBoolean>;
1356
+ is_revoked: z.ZodDefault<z.ZodBoolean>;
1357
+ created_at: z.ZodString;
1358
+ expires_at: z.ZodString;
1359
+ accepted_at: z.ZodNullable<z.ZodString>;
1360
+ accepted_by_account_id: z.ZodNullable<z.ZodString>;
1361
+ }, "strip", z.ZodTypeAny, {
1362
+ created_at: string;
1363
+ expires_at: string;
1364
+ org_id: string;
1365
+ org_invitation_id: string;
1366
+ invitee_email: string | null;
1367
+ inviter_account_id: string;
1368
+ invitation_token: string;
1369
+ is_link_invite: boolean;
1370
+ is_pending: boolean;
1371
+ is_accepted: boolean;
1372
+ is_expired: boolean;
1373
+ is_revoked: boolean;
1374
+ accepted_at: string | null;
1375
+ accepted_by_account_id: string | null;
1376
+ }, {
1377
+ created_at: string;
1378
+ expires_at: string;
1379
+ org_id: string;
1380
+ org_invitation_id: string;
1381
+ invitee_email: string | null;
1382
+ inviter_account_id: string;
1383
+ invitation_token: string;
1384
+ accepted_at: string | null;
1385
+ accepted_by_account_id: string | null;
1386
+ is_link_invite?: boolean | undefined;
1387
+ is_pending?: boolean | undefined;
1388
+ is_accepted?: boolean | undefined;
1389
+ is_expired?: boolean | undefined;
1390
+ is_revoked?: boolean | undefined;
1391
+ }>;
1392
+ type OrgInvitation = z.infer<typeof orgInvitationSchema>;
1330
1393
  declare const userPermissionsSchema: z.ZodObject<{
1331
1394
  can_manage_org: z.ZodOptional<z.ZodBoolean>;
1332
1395
  can_manage_package: z.ZodOptional<z.ZodBoolean>;
@@ -2007,6 +2070,52 @@ declare const databaseSchema: z.ZodObject<{
2007
2070
  is_owner?: boolean | undefined;
2008
2071
  can_manage_org?: boolean | undefined;
2009
2072
  }>, "many">>;
2073
+ orgInvitations: z.ZodDefault<z.ZodArray<z.ZodObject<{
2074
+ org_invitation_id: z.ZodString;
2075
+ org_id: z.ZodString;
2076
+ invitee_email: z.ZodNullable<z.ZodString>;
2077
+ inviter_account_id: z.ZodString;
2078
+ invitation_token: z.ZodString;
2079
+ is_link_invite: z.ZodDefault<z.ZodBoolean>;
2080
+ is_pending: z.ZodDefault<z.ZodBoolean>;
2081
+ is_accepted: z.ZodDefault<z.ZodBoolean>;
2082
+ is_expired: z.ZodDefault<z.ZodBoolean>;
2083
+ is_revoked: z.ZodDefault<z.ZodBoolean>;
2084
+ created_at: z.ZodString;
2085
+ expires_at: z.ZodString;
2086
+ accepted_at: z.ZodNullable<z.ZodString>;
2087
+ accepted_by_account_id: z.ZodNullable<z.ZodString>;
2088
+ }, "strip", z.ZodTypeAny, {
2089
+ created_at: string;
2090
+ expires_at: string;
2091
+ org_id: string;
2092
+ org_invitation_id: string;
2093
+ invitee_email: string | null;
2094
+ inviter_account_id: string;
2095
+ invitation_token: string;
2096
+ is_link_invite: boolean;
2097
+ is_pending: boolean;
2098
+ is_accepted: boolean;
2099
+ is_expired: boolean;
2100
+ is_revoked: boolean;
2101
+ accepted_at: string | null;
2102
+ accepted_by_account_id: string | null;
2103
+ }, {
2104
+ created_at: string;
2105
+ expires_at: string;
2106
+ org_id: string;
2107
+ org_invitation_id: string;
2108
+ invitee_email: string | null;
2109
+ inviter_account_id: string;
2110
+ invitation_token: string;
2111
+ accepted_at: string | null;
2112
+ accepted_by_account_id: string | null;
2113
+ is_link_invite?: boolean | undefined;
2114
+ is_pending?: boolean | undefined;
2115
+ is_accepted?: boolean | undefined;
2116
+ is_expired?: boolean | undefined;
2117
+ is_revoked?: boolean | undefined;
2118
+ }>, "many">>;
2010
2119
  orderFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
2011
2120
  order_file_id: z.ZodString;
2012
2121
  order_id: z.ZodString;
@@ -2406,17 +2515,17 @@ declare const databaseSchema: z.ZodObject<{
2406
2515
  transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
2407
2516
  transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2408
2517
  transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2409
- transpilation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
2518
+ transpilation_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
2410
2519
  transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2411
2520
  circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
2412
2521
  circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2413
2522
  circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2414
- circuit_json_build_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
2523
+ circuit_json_build_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
2415
2524
  circuit_json_build_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2416
2525
  image_generation_in_progress: z.ZodDefault<z.ZodBoolean>;
2417
2526
  image_generation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2418
2527
  image_generation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2419
- image_generation_logs: z.ZodDefault<z.ZodArray<z.ZodAny, "many">>;
2528
+ image_generation_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
2420
2529
  image_generation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2421
2530
  build_in_progress: z.ZodDefault<z.ZodBoolean>;
2422
2531
  build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -2425,15 +2534,21 @@ declare const databaseSchema: z.ZodObject<{
2425
2534
  build_error_last_updated_at: z.ZodString;
2426
2535
  preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2427
2536
  build_logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2537
+ user_code_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2538
+ user_code_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2539
+ user_code_error: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
2540
+ user_code_build_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
2541
+ user_code_log_stream_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2428
2542
  }, "strip", z.ZodTypeAny, {
2429
2543
  package_release_id: string;
2430
2544
  created_at: string;
2431
2545
  transpilation_in_progress: boolean;
2432
- transpilation_logs: any[];
2546
+ transpilation_logs: any[] | null;
2547
+ user_code_build_logs: any[] | null;
2433
2548
  circuit_json_build_in_progress: boolean;
2434
- circuit_json_build_logs: any[];
2549
+ circuit_json_build_logs: any[] | null;
2435
2550
  image_generation_in_progress: boolean;
2436
- image_generation_logs: any[];
2551
+ image_generation_logs: any[] | null;
2437
2552
  package_build_id: string;
2438
2553
  build_in_progress: boolean;
2439
2554
  build_error_last_updated_at: string;
@@ -2441,6 +2556,10 @@ declare const databaseSchema: z.ZodObject<{
2441
2556
  transpilation_error?: string | null | undefined;
2442
2557
  transpilation_started_at?: string | null | undefined;
2443
2558
  transpilation_completed_at?: string | null | undefined;
2559
+ user_code_started_at?: string | null | undefined;
2560
+ user_code_completed_at?: string | null | undefined;
2561
+ user_code_error?: any;
2562
+ user_code_log_stream_url?: string | null | undefined;
2444
2563
  circuit_json_build_started_at?: string | null | undefined;
2445
2564
  circuit_json_build_completed_at?: string | null | undefined;
2446
2565
  image_generation_started_at?: string | null | undefined;
@@ -2454,6 +2573,10 @@ declare const databaseSchema: z.ZodObject<{
2454
2573
  }, {
2455
2574
  package_release_id: string;
2456
2575
  created_at: string;
2576
+ transpilation_logs: any[] | null;
2577
+ user_code_build_logs: any[] | null;
2578
+ circuit_json_build_logs: any[] | null;
2579
+ image_generation_logs: any[] | null;
2457
2580
  package_build_id: string;
2458
2581
  build_error_last_updated_at: string;
2459
2582
  circuit_json_build_error?: string | null | undefined;
@@ -2461,15 +2584,16 @@ declare const databaseSchema: z.ZodObject<{
2461
2584
  transpilation_in_progress?: boolean | undefined;
2462
2585
  transpilation_started_at?: string | null | undefined;
2463
2586
  transpilation_completed_at?: string | null | undefined;
2464
- transpilation_logs?: any[] | undefined;
2587
+ user_code_started_at?: string | null | undefined;
2588
+ user_code_completed_at?: string | null | undefined;
2589
+ user_code_error?: any;
2590
+ user_code_log_stream_url?: string | null | undefined;
2465
2591
  circuit_json_build_in_progress?: boolean | undefined;
2466
2592
  circuit_json_build_started_at?: string | null | undefined;
2467
2593
  circuit_json_build_completed_at?: string | null | undefined;
2468
- circuit_json_build_logs?: any[] | undefined;
2469
2594
  image_generation_in_progress?: boolean | undefined;
2470
2595
  image_generation_started_at?: string | null | undefined;
2471
2596
  image_generation_completed_at?: string | null | undefined;
2472
- image_generation_logs?: any[] | undefined;
2473
2597
  image_generation_error?: string | null | undefined;
2474
2598
  build_in_progress?: boolean | undefined;
2475
2599
  build_started_at?: string | null | undefined;
@@ -2733,6 +2857,22 @@ declare const databaseSchema: z.ZodObject<{
2733
2857
  is_owner: boolean;
2734
2858
  can_manage_org: boolean;
2735
2859
  }[];
2860
+ orgInvitations: {
2861
+ created_at: string;
2862
+ expires_at: string;
2863
+ org_id: string;
2864
+ org_invitation_id: string;
2865
+ invitee_email: string | null;
2866
+ inviter_account_id: string;
2867
+ invitation_token: string;
2868
+ is_link_invite: boolean;
2869
+ is_pending: boolean;
2870
+ is_accepted: boolean;
2871
+ is_expired: boolean;
2872
+ is_revoked: boolean;
2873
+ accepted_at: string | null;
2874
+ accepted_by_account_id: string | null;
2875
+ }[];
2736
2876
  orderFiles: {
2737
2877
  order_id: string;
2738
2878
  order_file_id: string;
@@ -2861,11 +3001,12 @@ declare const databaseSchema: z.ZodObject<{
2861
3001
  package_release_id: string;
2862
3002
  created_at: string;
2863
3003
  transpilation_in_progress: boolean;
2864
- transpilation_logs: any[];
3004
+ transpilation_logs: any[] | null;
3005
+ user_code_build_logs: any[] | null;
2865
3006
  circuit_json_build_in_progress: boolean;
2866
- circuit_json_build_logs: any[];
3007
+ circuit_json_build_logs: any[] | null;
2867
3008
  image_generation_in_progress: boolean;
2868
- image_generation_logs: any[];
3009
+ image_generation_logs: any[] | null;
2869
3010
  package_build_id: string;
2870
3011
  build_in_progress: boolean;
2871
3012
  build_error_last_updated_at: string;
@@ -2873,6 +3014,10 @@ declare const databaseSchema: z.ZodObject<{
2873
3014
  transpilation_error?: string | null | undefined;
2874
3015
  transpilation_started_at?: string | null | undefined;
2875
3016
  transpilation_completed_at?: string | null | undefined;
3017
+ user_code_started_at?: string | null | undefined;
3018
+ user_code_completed_at?: string | null | undefined;
3019
+ user_code_error?: any;
3020
+ user_code_log_stream_url?: string | null | undefined;
2876
3021
  circuit_json_build_started_at?: string | null | undefined;
2877
3022
  circuit_json_build_completed_at?: string | null | undefined;
2878
3023
  image_generation_started_at?: string | null | undefined;
@@ -3105,6 +3250,22 @@ declare const databaseSchema: z.ZodObject<{
3105
3250
  is_owner?: boolean | undefined;
3106
3251
  can_manage_org?: boolean | undefined;
3107
3252
  }[] | undefined;
3253
+ orgInvitations?: {
3254
+ created_at: string;
3255
+ expires_at: string;
3256
+ org_id: string;
3257
+ org_invitation_id: string;
3258
+ invitee_email: string | null;
3259
+ inviter_account_id: string;
3260
+ invitation_token: string;
3261
+ accepted_at: string | null;
3262
+ accepted_by_account_id: string | null;
3263
+ is_link_invite?: boolean | undefined;
3264
+ is_pending?: boolean | undefined;
3265
+ is_accepted?: boolean | undefined;
3266
+ is_expired?: boolean | undefined;
3267
+ is_revoked?: boolean | undefined;
3268
+ }[] | undefined;
3108
3269
  orderFiles?: {
3109
3270
  order_id: string;
3110
3271
  order_file_id: string;
@@ -3232,6 +3393,10 @@ declare const databaseSchema: z.ZodObject<{
3232
3393
  packageBuilds?: {
3233
3394
  package_release_id: string;
3234
3395
  created_at: string;
3396
+ transpilation_logs: any[] | null;
3397
+ user_code_build_logs: any[] | null;
3398
+ circuit_json_build_logs: any[] | null;
3399
+ image_generation_logs: any[] | null;
3235
3400
  package_build_id: string;
3236
3401
  build_error_last_updated_at: string;
3237
3402
  circuit_json_build_error?: string | null | undefined;
@@ -3239,15 +3404,16 @@ declare const databaseSchema: z.ZodObject<{
3239
3404
  transpilation_in_progress?: boolean | undefined;
3240
3405
  transpilation_started_at?: string | null | undefined;
3241
3406
  transpilation_completed_at?: string | null | undefined;
3242
- transpilation_logs?: any[] | undefined;
3407
+ user_code_started_at?: string | null | undefined;
3408
+ user_code_completed_at?: string | null | undefined;
3409
+ user_code_error?: any;
3410
+ user_code_log_stream_url?: string | null | undefined;
3243
3411
  circuit_json_build_in_progress?: boolean | undefined;
3244
3412
  circuit_json_build_started_at?: string | null | undefined;
3245
3413
  circuit_json_build_completed_at?: string | null | undefined;
3246
- circuit_json_build_logs?: any[] | undefined;
3247
3414
  image_generation_in_progress?: boolean | undefined;
3248
3415
  image_generation_started_at?: string | null | undefined;
3249
3416
  image_generation_completed_at?: string | null | undefined;
3250
- image_generation_logs?: any[] | undefined;
3251
3417
  image_generation_error?: string | null | undefined;
3252
3418
  build_in_progress?: boolean | undefined;
3253
3419
  build_started_at?: string | null | undefined;
@@ -3279,4 +3445,4 @@ declare const databaseSchema: z.ZodObject<{
3279
3445
  type DatabaseSchema = z.infer<typeof databaseSchema>;
3280
3446
  declare const tscircuitHandleSchema: z.ZodString;
3281
3447
 
3282
- export { type Account, type AccountPackage, type AccountSnippet, type AiReview, type BugReport, type BugReportFile, type DatabaseSchema, type Datasheet, type GithubInstallation, type JlcpcbOrderState, type JlcpcbOrderStepRun, type LoginPage, type Order, type OrderFile, type OrderQuote, type OrgAccount, type Organization, type Package, type PackageBuild, type PackageFile, type PackageRelease, type PublicAccount, type PublicOrgSchema, type QuotedComponent, type Session, type ShippingOption, type Snippet, type UserPermissions, accountPackageSchema, accountSchema, accountSnippetSchema, aiReviewSchema, bugReportFileResponseSchema, bugReportFileSchema, bugReportSchema, databaseSchema, datasheetPinInformationSchema, datasheetSchema, errorResponseSchema, errorSchema, githubInstallationSchema, jlcpcbOrderStateSchema, jlcpcbOrderStepRunSchema, loginPageSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgSchema, packageBuildSchema, packageFileSchema, packageReleaseSchema, packageSchema, publicAccountSchema, publicOrgSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema, tscircuitHandleSchema, userPermissionsSchema };
3448
+ export { type Account, type AccountPackage, type AccountSnippet, type AiReview, type BugReport, type BugReportFile, type DatabaseSchema, type Datasheet, type GithubInstallation, type JlcpcbOrderState, type JlcpcbOrderStepRun, type LoginPage, type Order, type OrderFile, type OrderQuote, type OrgAccount, type OrgInvitation, type Organization, type Package, type PackageBuild, type PackageFile, type PackageRelease, type PublicAccount, type PublicOrgSchema, type QuotedComponent, type Session, type ShippingOption, type Snippet, type UserPermissions, accountPackageSchema, accountSchema, accountSnippetSchema, aiReviewSchema, bugReportFileResponseSchema, bugReportFileSchema, bugReportSchema, databaseSchema, datasheetPinInformationSchema, datasheetSchema, errorResponseSchema, errorSchema, githubInstallationSchema, jlcpcbOrderStateSchema, jlcpcbOrderStepRunSchema, log, loginPageSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgInvitationSchema, orgSchema, packageBuildSchema, packageFileSchema, packageReleaseSchema, packageSchema, publicAccountSchema, publicOrgSchema, quotedComponentSchema, sessionSchema, shippingInfoSchema, snippetSchema, tscircuitHandleSchema, userPermissionsSchema };
package/dist/schema.js CHANGED
@@ -7,6 +7,7 @@ var errorSchema = z.object({
7
7
  var errorResponseSchema = z.object({
8
8
  error: errorSchema
9
9
  });
10
+ var log = z.any();
10
11
  var snippetSchema = z.object({
11
12
  snippet_id: z.string(),
12
13
  package_release_id: z.string(),
@@ -357,17 +358,17 @@ var packageBuildSchema = z.object({
357
358
  transpilation_in_progress: z.boolean().default(false),
358
359
  transpilation_started_at: z.string().datetime().nullable().optional(),
359
360
  transpilation_completed_at: z.string().datetime().nullable().optional(),
360
- transpilation_logs: z.array(z.any()).default([]),
361
+ transpilation_logs: z.array(log).nullable(),
361
362
  transpilation_error: z.string().nullable().optional(),
362
363
  circuit_json_build_in_progress: z.boolean().default(false),
363
364
  circuit_json_build_started_at: z.string().datetime().nullable().optional(),
364
365
  circuit_json_build_completed_at: z.string().datetime().nullable().optional(),
365
- circuit_json_build_logs: z.array(z.any()).default([]),
366
+ circuit_json_build_logs: z.array(log).nullable(),
366
367
  circuit_json_build_error: z.string().nullable().optional(),
367
368
  image_generation_in_progress: z.boolean().default(false),
368
369
  image_generation_started_at: z.string().datetime().nullable().optional(),
369
370
  image_generation_completed_at: z.string().datetime().nullable().optional(),
370
- image_generation_logs: z.array(z.any()).default([]),
371
+ image_generation_logs: z.array(log).nullable(),
371
372
  image_generation_error: z.string().nullable().optional(),
372
373
  build_in_progress: z.boolean().default(false),
373
374
  build_started_at: z.string().datetime().nullable().optional(),
@@ -375,7 +376,12 @@ var packageBuildSchema = z.object({
375
376
  build_error: z.string().nullable().optional(),
376
377
  build_error_last_updated_at: z.string().datetime(),
377
378
  preview_url: z.string().nullable().optional(),
378
- build_logs: z.string().nullable().optional()
379
+ build_logs: z.string().nullable().optional(),
380
+ user_code_started_at: z.string().datetime().nullable().optional(),
381
+ user_code_completed_at: z.string().datetime().nullable().optional(),
382
+ user_code_error: z.any().nullable().optional(),
383
+ user_code_build_logs: z.array(log).nullable(),
384
+ user_code_log_stream_url: z.string().nullable().optional()
379
385
  });
380
386
  var orgSchema = z.object({
381
387
  org_id: z.string(),
@@ -394,6 +400,22 @@ var orgAccountSchema = z.object({
394
400
  created_at: z.string().datetime(),
395
401
  can_manage_org: z.boolean().default(false)
396
402
  });
403
+ var orgInvitationSchema = z.object({
404
+ org_invitation_id: z.string(),
405
+ org_id: z.string(),
406
+ invitee_email: z.string().email().nullable(),
407
+ inviter_account_id: z.string(),
408
+ invitation_token: z.string(),
409
+ is_link_invite: z.boolean().default(false),
410
+ is_pending: z.boolean().default(true),
411
+ is_accepted: z.boolean().default(false),
412
+ is_expired: z.boolean().default(false),
413
+ is_revoked: z.boolean().default(false),
414
+ created_at: z.string().datetime(),
415
+ expires_at: z.string().datetime(),
416
+ accepted_at: z.string().datetime().nullable(),
417
+ accepted_by_account_id: z.string().nullable()
418
+ });
397
419
  var userPermissionsSchema = z.object({
398
420
  can_manage_org: z.boolean().optional(),
399
421
  can_manage_package: z.boolean().optional()
@@ -425,6 +447,7 @@ var databaseSchema = z.object({
425
447
  orders: z.array(orderSchema).default([]),
426
448
  organizations: z.array(orgSchema).default([]),
427
449
  orgAccounts: z.array(orgAccountSchema).default([]),
450
+ orgInvitations: z.array(orgInvitationSchema).default([]),
428
451
  orderFiles: z.array(orderFileSchema).default([]),
429
452
  accountSnippets: z.array(accountSnippetSchema).default([]),
430
453
  accountPackages: z.array(accountPackageSchema).default([]),
@@ -458,11 +481,13 @@ export {
458
481
  githubInstallationSchema,
459
482
  jlcpcbOrderStateSchema,
460
483
  jlcpcbOrderStepRunSchema,
484
+ log,
461
485
  loginPageSchema,
462
486
  orderFileSchema,
463
487
  orderQuoteSchema,
464
488
  orderSchema,
465
489
  orgAccountSchema,
490
+ orgInvitationSchema,
466
491
  orgSchema,
467
492
  packageBuildSchema,
468
493
  packageFileSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fake-snippets",
3
- "version": "0.0.149",
3
+ "version": "0.0.151",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -84,7 +84,7 @@
84
84
  "@tscircuit/3d-viewer": "^0.0.435",
85
85
  "@tscircuit/assembly-viewer": "^0.0.5",
86
86
  "@tscircuit/create-snippet-url": "^0.0.8",
87
- "@tscircuit/eval": "^0.0.479",
87
+ "@tscircuit/eval": "^0.0.482",
88
88
  "@tscircuit/layout": "^0.0.29",
89
89
  "@tscircuit/mm": "^0.0.8",
90
90
  "@tscircuit/pcb-viewer": "^1.11.256",