@tscircuit/fake-snippets 0.0.150 → 0.0.152
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/bundle.js +39 -16
- package/dist/index.d.ts +46 -17
- package/dist/index.js +12 -4
- package/dist/schema.d.ts +66 -25
- package/dist/schema.js +11 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -988,17 +988,17 @@ declare const packageBuildSchema: z.ZodObject<{
|
|
|
988
988
|
transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
989
989
|
transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
990
990
|
transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
991
|
-
transpilation_logs: z.
|
|
991
|
+
transpilation_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
992
992
|
transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
993
993
|
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
994
994
|
circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
995
995
|
circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
996
|
-
circuit_json_build_logs: z.
|
|
996
|
+
circuit_json_build_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
997
997
|
circuit_json_build_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
998
998
|
image_generation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
999
999
|
image_generation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1000
1000
|
image_generation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1001
|
-
image_generation_logs: z.
|
|
1001
|
+
image_generation_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
1002
1002
|
image_generation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1003
1003
|
build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
1004
1004
|
build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1007,15 +1007,21 @@ declare const packageBuildSchema: z.ZodObject<{
|
|
|
1007
1007
|
build_error_last_updated_at: z.ZodString;
|
|
1008
1008
|
preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1009
1009
|
build_logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1010
|
+
user_code_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1011
|
+
user_code_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1012
|
+
user_code_error: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1013
|
+
user_code_build_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
1014
|
+
user_code_log_stream_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1010
1015
|
}, "strip", z.ZodTypeAny, {
|
|
1011
1016
|
package_release_id: string;
|
|
1012
1017
|
created_at: string;
|
|
1013
1018
|
transpilation_in_progress: boolean;
|
|
1014
|
-
transpilation_logs: any[];
|
|
1019
|
+
transpilation_logs: any[] | null;
|
|
1020
|
+
user_code_build_logs: any[] | null;
|
|
1015
1021
|
circuit_json_build_in_progress: boolean;
|
|
1016
|
-
circuit_json_build_logs: any[];
|
|
1022
|
+
circuit_json_build_logs: any[] | null;
|
|
1017
1023
|
image_generation_in_progress: boolean;
|
|
1018
|
-
image_generation_logs: any[];
|
|
1024
|
+
image_generation_logs: any[] | null;
|
|
1019
1025
|
package_build_id: string;
|
|
1020
1026
|
build_in_progress: boolean;
|
|
1021
1027
|
build_error_last_updated_at: string;
|
|
@@ -1023,6 +1029,10 @@ declare const packageBuildSchema: z.ZodObject<{
|
|
|
1023
1029
|
transpilation_error?: string | null | undefined;
|
|
1024
1030
|
transpilation_started_at?: string | null | undefined;
|
|
1025
1031
|
transpilation_completed_at?: string | null | undefined;
|
|
1032
|
+
user_code_started_at?: string | null | undefined;
|
|
1033
|
+
user_code_completed_at?: string | null | undefined;
|
|
1034
|
+
user_code_error?: any;
|
|
1035
|
+
user_code_log_stream_url?: string | null | undefined;
|
|
1026
1036
|
circuit_json_build_started_at?: string | null | undefined;
|
|
1027
1037
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
1028
1038
|
image_generation_started_at?: string | null | undefined;
|
|
@@ -1036,6 +1046,10 @@ declare const packageBuildSchema: z.ZodObject<{
|
|
|
1036
1046
|
}, {
|
|
1037
1047
|
package_release_id: string;
|
|
1038
1048
|
created_at: string;
|
|
1049
|
+
transpilation_logs: any[] | null;
|
|
1050
|
+
user_code_build_logs: any[] | null;
|
|
1051
|
+
circuit_json_build_logs: any[] | null;
|
|
1052
|
+
image_generation_logs: any[] | null;
|
|
1039
1053
|
package_build_id: string;
|
|
1040
1054
|
build_error_last_updated_at: string;
|
|
1041
1055
|
circuit_json_build_error?: string | null | undefined;
|
|
@@ -1043,15 +1057,16 @@ declare const packageBuildSchema: z.ZodObject<{
|
|
|
1043
1057
|
transpilation_in_progress?: boolean | undefined;
|
|
1044
1058
|
transpilation_started_at?: string | null | undefined;
|
|
1045
1059
|
transpilation_completed_at?: string | null | undefined;
|
|
1046
|
-
|
|
1060
|
+
user_code_started_at?: string | null | undefined;
|
|
1061
|
+
user_code_completed_at?: string | null | undefined;
|
|
1062
|
+
user_code_error?: any;
|
|
1063
|
+
user_code_log_stream_url?: string | null | undefined;
|
|
1047
1064
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
1048
1065
|
circuit_json_build_started_at?: string | null | undefined;
|
|
1049
1066
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
1050
|
-
circuit_json_build_logs?: any[] | undefined;
|
|
1051
1067
|
image_generation_in_progress?: boolean | undefined;
|
|
1052
1068
|
image_generation_started_at?: string | null | undefined;
|
|
1053
1069
|
image_generation_completed_at?: string | null | undefined;
|
|
1054
|
-
image_generation_logs?: any[] | undefined;
|
|
1055
1070
|
image_generation_error?: string | null | undefined;
|
|
1056
1071
|
build_in_progress?: boolean | undefined;
|
|
1057
1072
|
build_started_at?: string | null | undefined;
|
|
@@ -1517,11 +1532,12 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1517
1532
|
package_release_id: string;
|
|
1518
1533
|
created_at: string;
|
|
1519
1534
|
transpilation_in_progress: boolean;
|
|
1520
|
-
transpilation_logs: any[];
|
|
1535
|
+
transpilation_logs: any[] | null;
|
|
1536
|
+
user_code_build_logs: any[] | null;
|
|
1521
1537
|
circuit_json_build_in_progress: boolean;
|
|
1522
|
-
circuit_json_build_logs: any[];
|
|
1538
|
+
circuit_json_build_logs: any[] | null;
|
|
1523
1539
|
image_generation_in_progress: boolean;
|
|
1524
|
-
image_generation_logs: any[];
|
|
1540
|
+
image_generation_logs: any[] | null;
|
|
1525
1541
|
package_build_id: string;
|
|
1526
1542
|
build_in_progress: boolean;
|
|
1527
1543
|
build_error_last_updated_at: string;
|
|
@@ -1529,6 +1545,10 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1529
1545
|
transpilation_error?: string | null | undefined;
|
|
1530
1546
|
transpilation_started_at?: string | null | undefined;
|
|
1531
1547
|
transpilation_completed_at?: string | null | undefined;
|
|
1548
|
+
user_code_started_at?: string | null | undefined;
|
|
1549
|
+
user_code_completed_at?: string | null | undefined;
|
|
1550
|
+
user_code_error?: any;
|
|
1551
|
+
user_code_log_stream_url?: string | null | undefined;
|
|
1532
1552
|
circuit_json_build_started_at?: string | null | undefined;
|
|
1533
1553
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
1534
1554
|
image_generation_started_at?: string | null | undefined;
|
|
@@ -1680,7 +1700,9 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1680
1700
|
is_popular?: boolean;
|
|
1681
1701
|
}) => Datasheet[];
|
|
1682
1702
|
updateDatasheet: (datasheetId: string, updates: Partial<Datasheet>) => Datasheet | undefined;
|
|
1683
|
-
addPackageBuild: (packageBuild: Omit<z.input<typeof packageBuildSchema>, "package_build_id"
|
|
1703
|
+
addPackageBuild: (packageBuild: Partial<Omit<z.input<typeof packageBuildSchema>, "package_build_id">> & {
|
|
1704
|
+
package_release_id: string;
|
|
1705
|
+
}) => PackageBuild;
|
|
1684
1706
|
getPackageBuildById: (packageBuildId: string) => PackageBuild | undefined;
|
|
1685
1707
|
getPackageBuildsByReleaseId: (packageReleaseId: string) => PackageBuild[];
|
|
1686
1708
|
updatePackageBuild: (packageBuildId: string, updates: Partial<PackageBuild>) => PackageBuild | undefined;
|
|
@@ -2125,11 +2147,12 @@ declare const createDatabase: ({ seed }?: {
|
|
|
2125
2147
|
package_release_id: string;
|
|
2126
2148
|
created_at: string;
|
|
2127
2149
|
transpilation_in_progress: boolean;
|
|
2128
|
-
transpilation_logs: any[];
|
|
2150
|
+
transpilation_logs: any[] | null;
|
|
2151
|
+
user_code_build_logs: any[] | null;
|
|
2129
2152
|
circuit_json_build_in_progress: boolean;
|
|
2130
|
-
circuit_json_build_logs: any[];
|
|
2153
|
+
circuit_json_build_logs: any[] | null;
|
|
2131
2154
|
image_generation_in_progress: boolean;
|
|
2132
|
-
image_generation_logs: any[];
|
|
2155
|
+
image_generation_logs: any[] | null;
|
|
2133
2156
|
package_build_id: string;
|
|
2134
2157
|
build_in_progress: boolean;
|
|
2135
2158
|
build_error_last_updated_at: string;
|
|
@@ -2137,6 +2160,10 @@ declare const createDatabase: ({ seed }?: {
|
|
|
2137
2160
|
transpilation_error?: string | null | undefined;
|
|
2138
2161
|
transpilation_started_at?: string | null | undefined;
|
|
2139
2162
|
transpilation_completed_at?: string | null | undefined;
|
|
2163
|
+
user_code_started_at?: string | null | undefined;
|
|
2164
|
+
user_code_completed_at?: string | null | undefined;
|
|
2165
|
+
user_code_error?: any;
|
|
2166
|
+
user_code_log_stream_url?: string | null | undefined;
|
|
2140
2167
|
circuit_json_build_started_at?: string | null | undefined;
|
|
2141
2168
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
2142
2169
|
image_generation_started_at?: string | null | undefined;
|
|
@@ -2288,7 +2315,9 @@ declare const createDatabase: ({ seed }?: {
|
|
|
2288
2315
|
is_popular?: boolean;
|
|
2289
2316
|
}) => Datasheet[];
|
|
2290
2317
|
updateDatasheet: (datasheetId: string, updates: Partial<Datasheet>) => Datasheet | undefined;
|
|
2291
|
-
addPackageBuild: (packageBuild: Omit<z.input<typeof packageBuildSchema>, "package_build_id"
|
|
2318
|
+
addPackageBuild: (packageBuild: Partial<Omit<z.input<typeof packageBuildSchema>, "package_build_id">> & {
|
|
2319
|
+
package_release_id: string;
|
|
2320
|
+
}) => PackageBuild;
|
|
2292
2321
|
getPackageBuildById: (packageBuildId: string) => PackageBuild | undefined;
|
|
2293
2322
|
getPackageBuildsByReleaseId: (packageReleaseId: string) => PackageBuild[];
|
|
2294
2323
|
updatePackageBuild: (packageBuildId: string, updates: Partial<PackageBuild>) => PackageBuild | undefined;
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,7 @@ var errorSchema = z.object({
|
|
|
13
13
|
var errorResponseSchema = z.object({
|
|
14
14
|
error: errorSchema
|
|
15
15
|
});
|
|
16
|
+
var log = z.any();
|
|
16
17
|
var snippetSchema = z.object({
|
|
17
18
|
snippet_id: z.string(),
|
|
18
19
|
package_release_id: z.string(),
|
|
@@ -363,17 +364,17 @@ var packageBuildSchema = z.object({
|
|
|
363
364
|
transpilation_in_progress: z.boolean().default(false),
|
|
364
365
|
transpilation_started_at: z.string().datetime().nullable().optional(),
|
|
365
366
|
transpilation_completed_at: z.string().datetime().nullable().optional(),
|
|
366
|
-
transpilation_logs: z.array(
|
|
367
|
+
transpilation_logs: z.array(log).nullable(),
|
|
367
368
|
transpilation_error: z.string().nullable().optional(),
|
|
368
369
|
circuit_json_build_in_progress: z.boolean().default(false),
|
|
369
370
|
circuit_json_build_started_at: z.string().datetime().nullable().optional(),
|
|
370
371
|
circuit_json_build_completed_at: z.string().datetime().nullable().optional(),
|
|
371
|
-
circuit_json_build_logs: z.array(
|
|
372
|
+
circuit_json_build_logs: z.array(log).nullable(),
|
|
372
373
|
circuit_json_build_error: z.string().nullable().optional(),
|
|
373
374
|
image_generation_in_progress: z.boolean().default(false),
|
|
374
375
|
image_generation_started_at: z.string().datetime().nullable().optional(),
|
|
375
376
|
image_generation_completed_at: z.string().datetime().nullable().optional(),
|
|
376
|
-
image_generation_logs: z.array(
|
|
377
|
+
image_generation_logs: z.array(log).nullable(),
|
|
377
378
|
image_generation_error: z.string().nullable().optional(),
|
|
378
379
|
build_in_progress: z.boolean().default(false),
|
|
379
380
|
build_started_at: z.string().datetime().nullable().optional(),
|
|
@@ -381,7 +382,12 @@ var packageBuildSchema = z.object({
|
|
|
381
382
|
build_error: z.string().nullable().optional(),
|
|
382
383
|
build_error_last_updated_at: z.string().datetime(),
|
|
383
384
|
preview_url: z.string().nullable().optional(),
|
|
384
|
-
build_logs: z.string().nullable().optional()
|
|
385
|
+
build_logs: z.string().nullable().optional(),
|
|
386
|
+
user_code_started_at: z.string().datetime().nullable().optional(),
|
|
387
|
+
user_code_completed_at: z.string().datetime().nullable().optional(),
|
|
388
|
+
user_code_error: z.any().nullable().optional(),
|
|
389
|
+
user_code_build_logs: z.array(log).nullable(),
|
|
390
|
+
user_code_log_stream_url: z.string().nullable().optional()
|
|
385
391
|
});
|
|
386
392
|
var orgSchema = z.object({
|
|
387
393
|
org_id: z.string(),
|
|
@@ -3820,6 +3826,8 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
|
|
|
3820
3826
|
addPackageBuild: (packageBuild) => {
|
|
3821
3827
|
const newPackageBuild = packageBuildSchema.parse({
|
|
3822
3828
|
package_build_id: crypto.randomUUID(),
|
|
3829
|
+
user_code_build_logs: null,
|
|
3830
|
+
image_generation_logs: null,
|
|
3823
3831
|
...packageBuild
|
|
3824
3832
|
});
|
|
3825
3833
|
set((state) => ({
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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;
|
|
@@ -2499,17 +2515,17 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2499
2515
|
transpilation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
2500
2516
|
transpilation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2501
2517
|
transpilation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2502
|
-
transpilation_logs: z.
|
|
2518
|
+
transpilation_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
2503
2519
|
transpilation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2504
2520
|
circuit_json_build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
2505
2521
|
circuit_json_build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2506
2522
|
circuit_json_build_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2507
|
-
circuit_json_build_logs: z.
|
|
2523
|
+
circuit_json_build_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
2508
2524
|
circuit_json_build_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2509
2525
|
image_generation_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
2510
2526
|
image_generation_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2511
2527
|
image_generation_completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2512
|
-
image_generation_logs: z.
|
|
2528
|
+
image_generation_logs: z.ZodNullable<z.ZodArray<z.ZodAny, "many">>;
|
|
2513
2529
|
image_generation_error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2514
2530
|
build_in_progress: z.ZodDefault<z.ZodBoolean>;
|
|
2515
2531
|
build_started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2518,15 +2534,21 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2518
2534
|
build_error_last_updated_at: z.ZodString;
|
|
2519
2535
|
preview_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2520
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>>;
|
|
2521
2542
|
}, "strip", z.ZodTypeAny, {
|
|
2522
2543
|
package_release_id: string;
|
|
2523
2544
|
created_at: string;
|
|
2524
2545
|
transpilation_in_progress: boolean;
|
|
2525
|
-
transpilation_logs: any[];
|
|
2546
|
+
transpilation_logs: any[] | null;
|
|
2547
|
+
user_code_build_logs: any[] | null;
|
|
2526
2548
|
circuit_json_build_in_progress: boolean;
|
|
2527
|
-
circuit_json_build_logs: any[];
|
|
2549
|
+
circuit_json_build_logs: any[] | null;
|
|
2528
2550
|
image_generation_in_progress: boolean;
|
|
2529
|
-
image_generation_logs: any[];
|
|
2551
|
+
image_generation_logs: any[] | null;
|
|
2530
2552
|
package_build_id: string;
|
|
2531
2553
|
build_in_progress: boolean;
|
|
2532
2554
|
build_error_last_updated_at: string;
|
|
@@ -2534,6 +2556,10 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2534
2556
|
transpilation_error?: string | null | undefined;
|
|
2535
2557
|
transpilation_started_at?: string | null | undefined;
|
|
2536
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;
|
|
2537
2563
|
circuit_json_build_started_at?: string | null | undefined;
|
|
2538
2564
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
2539
2565
|
image_generation_started_at?: string | null | undefined;
|
|
@@ -2547,6 +2573,10 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2547
2573
|
}, {
|
|
2548
2574
|
package_release_id: string;
|
|
2549
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;
|
|
2550
2580
|
package_build_id: string;
|
|
2551
2581
|
build_error_last_updated_at: string;
|
|
2552
2582
|
circuit_json_build_error?: string | null | undefined;
|
|
@@ -2554,15 +2584,16 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2554
2584
|
transpilation_in_progress?: boolean | undefined;
|
|
2555
2585
|
transpilation_started_at?: string | null | undefined;
|
|
2556
2586
|
transpilation_completed_at?: string | null | undefined;
|
|
2557
|
-
|
|
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;
|
|
2558
2591
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
2559
2592
|
circuit_json_build_started_at?: string | null | undefined;
|
|
2560
2593
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
2561
|
-
circuit_json_build_logs?: any[] | undefined;
|
|
2562
2594
|
image_generation_in_progress?: boolean | undefined;
|
|
2563
2595
|
image_generation_started_at?: string | null | undefined;
|
|
2564
2596
|
image_generation_completed_at?: string | null | undefined;
|
|
2565
|
-
image_generation_logs?: any[] | undefined;
|
|
2566
2597
|
image_generation_error?: string | null | undefined;
|
|
2567
2598
|
build_in_progress?: boolean | undefined;
|
|
2568
2599
|
build_started_at?: string | null | undefined;
|
|
@@ -2970,11 +3001,12 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2970
3001
|
package_release_id: string;
|
|
2971
3002
|
created_at: string;
|
|
2972
3003
|
transpilation_in_progress: boolean;
|
|
2973
|
-
transpilation_logs: any[];
|
|
3004
|
+
transpilation_logs: any[] | null;
|
|
3005
|
+
user_code_build_logs: any[] | null;
|
|
2974
3006
|
circuit_json_build_in_progress: boolean;
|
|
2975
|
-
circuit_json_build_logs: any[];
|
|
3007
|
+
circuit_json_build_logs: any[] | null;
|
|
2976
3008
|
image_generation_in_progress: boolean;
|
|
2977
|
-
image_generation_logs: any[];
|
|
3009
|
+
image_generation_logs: any[] | null;
|
|
2978
3010
|
package_build_id: string;
|
|
2979
3011
|
build_in_progress: boolean;
|
|
2980
3012
|
build_error_last_updated_at: string;
|
|
@@ -2982,6 +3014,10 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2982
3014
|
transpilation_error?: string | null | undefined;
|
|
2983
3015
|
transpilation_started_at?: string | null | undefined;
|
|
2984
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;
|
|
2985
3021
|
circuit_json_build_started_at?: string | null | undefined;
|
|
2986
3022
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
2987
3023
|
image_generation_started_at?: string | null | undefined;
|
|
@@ -3357,6 +3393,10 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
3357
3393
|
packageBuilds?: {
|
|
3358
3394
|
package_release_id: string;
|
|
3359
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;
|
|
3360
3400
|
package_build_id: string;
|
|
3361
3401
|
build_error_last_updated_at: string;
|
|
3362
3402
|
circuit_json_build_error?: string | null | undefined;
|
|
@@ -3364,15 +3404,16 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
3364
3404
|
transpilation_in_progress?: boolean | undefined;
|
|
3365
3405
|
transpilation_started_at?: string | null | undefined;
|
|
3366
3406
|
transpilation_completed_at?: string | null | undefined;
|
|
3367
|
-
|
|
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;
|
|
3368
3411
|
circuit_json_build_in_progress?: boolean | undefined;
|
|
3369
3412
|
circuit_json_build_started_at?: string | null | undefined;
|
|
3370
3413
|
circuit_json_build_completed_at?: string | null | undefined;
|
|
3371
|
-
circuit_json_build_logs?: any[] | undefined;
|
|
3372
3414
|
image_generation_in_progress?: boolean | undefined;
|
|
3373
3415
|
image_generation_started_at?: string | null | undefined;
|
|
3374
3416
|
image_generation_completed_at?: string | null | undefined;
|
|
3375
|
-
image_generation_logs?: any[] | undefined;
|
|
3376
3417
|
image_generation_error?: string | null | undefined;
|
|
3377
3418
|
build_in_progress?: boolean | undefined;
|
|
3378
3419
|
build_started_at?: string | null | undefined;
|
|
@@ -3404,4 +3445,4 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
3404
3445
|
type DatabaseSchema = z.infer<typeof databaseSchema>;
|
|
3405
3446
|
declare const tscircuitHandleSchema: z.ZodString;
|
|
3406
3447
|
|
|
3407
|
-
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, loginPageSchema, orderFileSchema, orderQuoteSchema, orderSchema, orgAccountSchema, orgInvitationSchema, 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(
|
|
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(
|
|
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(
|
|
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(),
|
|
@@ -475,6 +481,7 @@ export {
|
|
|
475
481
|
githubInstallationSchema,
|
|
476
482
|
jlcpcbOrderStateSchema,
|
|
477
483
|
jlcpcbOrderStepRunSchema,
|
|
484
|
+
log,
|
|
478
485
|
loginPageSchema,
|
|
479
486
|
orderFileSchema,
|
|
480
487
|
orderQuoteSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/fake-snippets",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.152",
|
|
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.
|
|
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",
|