@tscircuit/fake-snippets 0.0.164 → 0.0.166
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 +43 -23
- package/dist/index.d.ts +10 -5
- package/dist/index.js +15 -8
- package/dist/schema.d.ts +19 -8
- package/dist/schema.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -752,6 +752,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
752
752
|
created_at: z.ZodString;
|
|
753
753
|
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
754
754
|
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
755
|
+
is_text: z.ZodOptional<z.ZodBoolean>;
|
|
755
756
|
}, "strip", z.ZodTypeAny, {
|
|
756
757
|
package_release_id: string;
|
|
757
758
|
created_at: string;
|
|
@@ -760,6 +761,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
760
761
|
content_text?: string | null | undefined;
|
|
761
762
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
762
763
|
content_mimetype?: string | null | undefined;
|
|
764
|
+
is_text?: boolean | undefined;
|
|
763
765
|
is_release_tarball?: boolean | undefined;
|
|
764
766
|
npm_pack_output?: any;
|
|
765
767
|
}, {
|
|
@@ -770,6 +772,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
770
772
|
content_text?: string | null | undefined;
|
|
771
773
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
772
774
|
content_mimetype?: string | null | undefined;
|
|
775
|
+
is_text?: boolean | undefined;
|
|
773
776
|
is_release_tarball?: boolean | undefined;
|
|
774
777
|
npm_pack_output?: any;
|
|
775
778
|
}>;
|
|
@@ -778,7 +781,7 @@ declare const packageSchema: z.ZodObject<{
|
|
|
778
781
|
package_id: z.ZodString;
|
|
779
782
|
creator_account_id: z.ZodString;
|
|
780
783
|
owner_org_id: z.ZodString;
|
|
781
|
-
owner_github_username: z.ZodNullable<z.ZodString
|
|
784
|
+
owner_github_username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
782
785
|
org_owner_tscircuit_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
783
786
|
github_repo_full_name: z.ZodNullable<z.ZodString>;
|
|
784
787
|
name: z.ZodString;
|
|
@@ -826,7 +829,6 @@ declare const packageSchema: z.ZodObject<{
|
|
|
826
829
|
license: string | null;
|
|
827
830
|
creator_account_id: string;
|
|
828
831
|
owner_org_id: string;
|
|
829
|
-
owner_github_username: string | null;
|
|
830
832
|
github_repo_full_name: string | null;
|
|
831
833
|
is_snippet: boolean;
|
|
832
834
|
is_board: boolean;
|
|
@@ -841,6 +843,7 @@ declare const packageSchema: z.ZodObject<{
|
|
|
841
843
|
latest_package_release_fs_sha: string | null;
|
|
842
844
|
is_starred?: boolean | undefined;
|
|
843
845
|
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
846
|
+
owner_github_username?: string | null | undefined;
|
|
844
847
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
845
848
|
latest_license?: string | null | undefined;
|
|
846
849
|
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
@@ -859,7 +862,6 @@ declare const packageSchema: z.ZodObject<{
|
|
|
859
862
|
license: string | null;
|
|
860
863
|
creator_account_id: string;
|
|
861
864
|
owner_org_id: string;
|
|
862
|
-
owner_github_username: string | null;
|
|
863
865
|
github_repo_full_name: string | null;
|
|
864
866
|
latest_package_release_id: string | null;
|
|
865
867
|
latest_version: string | null;
|
|
@@ -870,6 +872,7 @@ declare const packageSchema: z.ZodObject<{
|
|
|
870
872
|
is_private?: boolean | null | undefined;
|
|
871
873
|
is_public?: boolean | null | undefined;
|
|
872
874
|
is_unlisted?: boolean | null | undefined;
|
|
875
|
+
owner_github_username?: string | null | undefined;
|
|
873
876
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
874
877
|
is_snippet?: boolean | undefined;
|
|
875
878
|
is_board?: boolean | undefined;
|
|
@@ -1290,6 +1293,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1290
1293
|
content_text?: string | null | undefined;
|
|
1291
1294
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1292
1295
|
content_mimetype?: string | null | undefined;
|
|
1296
|
+
is_text?: boolean | undefined;
|
|
1293
1297
|
is_release_tarball?: boolean | undefined;
|
|
1294
1298
|
npm_pack_output?: any;
|
|
1295
1299
|
}[];
|
|
@@ -1343,7 +1347,6 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1343
1347
|
license: string | null;
|
|
1344
1348
|
creator_account_id: string;
|
|
1345
1349
|
owner_org_id: string;
|
|
1346
|
-
owner_github_username: string | null;
|
|
1347
1350
|
github_repo_full_name: string | null;
|
|
1348
1351
|
is_snippet: boolean;
|
|
1349
1352
|
is_board: boolean;
|
|
@@ -1358,6 +1361,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1358
1361
|
latest_package_release_fs_sha: string | null;
|
|
1359
1362
|
is_starred?: boolean | undefined;
|
|
1360
1363
|
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
1364
|
+
owner_github_username?: string | null | undefined;
|
|
1361
1365
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
1362
1366
|
latest_license?: string | null | undefined;
|
|
1363
1367
|
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
@@ -1912,6 +1916,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1912
1916
|
content_text?: string | null | undefined;
|
|
1913
1917
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1914
1918
|
content_mimetype?: string | null | undefined;
|
|
1919
|
+
is_text?: boolean | undefined;
|
|
1915
1920
|
is_release_tarball?: boolean | undefined;
|
|
1916
1921
|
npm_pack_output?: any;
|
|
1917
1922
|
}[];
|
|
@@ -1965,7 +1970,6 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1965
1970
|
license: string | null;
|
|
1966
1971
|
creator_account_id: string;
|
|
1967
1972
|
owner_org_id: string;
|
|
1968
|
-
owner_github_username: string | null;
|
|
1969
1973
|
github_repo_full_name: string | null;
|
|
1970
1974
|
is_snippet: boolean;
|
|
1971
1975
|
is_board: boolean;
|
|
@@ -1980,6 +1984,7 @@ declare const createDatabase: ({ seed }?: {
|
|
|
1980
1984
|
latest_package_release_fs_sha: string | null;
|
|
1981
1985
|
is_starred?: boolean | undefined;
|
|
1982
1986
|
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
1987
|
+
owner_github_username?: string | null | undefined;
|
|
1983
1988
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
1984
1989
|
latest_license?: string | null | undefined;
|
|
1985
1990
|
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
package/dist/index.js
CHANGED
|
@@ -285,7 +285,8 @@ var packageFileSchema = z.object({
|
|
|
285
285
|
content_mimetype: z.string().nullable().optional(),
|
|
286
286
|
created_at: z.string().datetime(),
|
|
287
287
|
is_release_tarball: z.boolean().optional(),
|
|
288
|
-
npm_pack_output: z.any().nullable().optional()
|
|
288
|
+
npm_pack_output: z.any().nullable().optional(),
|
|
289
|
+
is_text: z.boolean().optional()
|
|
289
290
|
});
|
|
290
291
|
var packageFileLiteSchema = packageFileSchema.omit({
|
|
291
292
|
content_text: true
|
|
@@ -294,7 +295,7 @@ var packageSchema = z.object({
|
|
|
294
295
|
package_id: z.string(),
|
|
295
296
|
creator_account_id: z.string(),
|
|
296
297
|
owner_org_id: z.string(),
|
|
297
|
-
owner_github_username: z.string().nullable(),
|
|
298
|
+
owner_github_username: z.string().nullable().optional(),
|
|
298
299
|
org_owner_tscircuit_handle: z.string().nullable().optional(),
|
|
299
300
|
github_repo_full_name: z.string().nullable(),
|
|
300
301
|
name: z.string(),
|
|
@@ -1286,7 +1287,8 @@ export const TestComponent = ({ name }: { name: string }) => (
|
|
|
1286
1287
|
<resistor name={name} resistance="10k" />
|
|
1287
1288
|
)
|
|
1288
1289
|
`.trim(),
|
|
1289
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
1290
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1291
|
+
is_text: true
|
|
1290
1292
|
});
|
|
1291
1293
|
db.addPackageFile({
|
|
1292
1294
|
package_release_id: test2PackageReleaseId,
|
|
@@ -1338,7 +1340,8 @@ export const TestComponent = ({ name }: { name: string }) => (
|
|
|
1338
1340
|
"material": "fr4"
|
|
1339
1341
|
}
|
|
1340
1342
|
]`.trim(),
|
|
1341
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
1343
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1344
|
+
is_text: true
|
|
1342
1345
|
});
|
|
1343
1346
|
db.addPackageBuild({
|
|
1344
1347
|
package_release_id: test2PackageReleaseId,
|
|
@@ -2564,7 +2567,8 @@ export const SquareWaveModule = () => (
|
|
|
2564
2567
|
<resistor name={name} resistance="10k" />
|
|
2565
2568
|
)
|
|
2566
2569
|
`.trim(),
|
|
2567
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2570
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2571
|
+
is_text: true
|
|
2568
2572
|
});
|
|
2569
2573
|
db.addPackageFile({
|
|
2570
2574
|
package_release_id: testOrgPackageReleaseId,
|
|
@@ -2616,7 +2620,8 @@ export const SquareWaveModule = () => (
|
|
|
2616
2620
|
"material": "fr4"
|
|
2617
2621
|
}
|
|
2618
2622
|
]`.trim(),
|
|
2619
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2623
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2624
|
+
is_text: true
|
|
2620
2625
|
});
|
|
2621
2626
|
db.addPackageBuild({
|
|
2622
2627
|
package_release_id: testOrgPackageReleaseId,
|
|
@@ -2796,7 +2801,8 @@ export default () => (
|
|
|
2796
2801
|
/>
|
|
2797
2802
|
</board>
|
|
2798
2803
|
)`,
|
|
2799
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2804
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2805
|
+
is_text: true
|
|
2800
2806
|
});
|
|
2801
2807
|
const glbFilePath = join(__dirname2, "assets", "test.glb");
|
|
2802
2808
|
const glbFileContent = readFileSync(glbFilePath);
|
|
@@ -2805,7 +2811,8 @@ export default () => (
|
|
|
2805
2811
|
file_path: "test.glb",
|
|
2806
2812
|
content_bytes: glbFileContent,
|
|
2807
2813
|
content_mimetype: "model/gltf-binary",
|
|
2808
|
-
created_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2814
|
+
created_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2815
|
+
is_text: false
|
|
2809
2816
|
});
|
|
2810
2817
|
db.addPackageBuild({
|
|
2811
2818
|
package_release_id: glbModelReleaseId,
|
package/dist/schema.d.ts
CHANGED
|
@@ -970,6 +970,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
970
970
|
created_at: z.ZodString;
|
|
971
971
|
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
972
972
|
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
973
|
+
is_text: z.ZodOptional<z.ZodBoolean>;
|
|
973
974
|
}, "strip", z.ZodTypeAny, {
|
|
974
975
|
package_release_id: string;
|
|
975
976
|
created_at: string;
|
|
@@ -978,6 +979,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
978
979
|
content_text?: string | null | undefined;
|
|
979
980
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
980
981
|
content_mimetype?: string | null | undefined;
|
|
982
|
+
is_text?: boolean | undefined;
|
|
981
983
|
is_release_tarball?: boolean | undefined;
|
|
982
984
|
npm_pack_output?: any;
|
|
983
985
|
}, {
|
|
@@ -988,6 +990,7 @@ declare const packageFileSchema: z.ZodObject<{
|
|
|
988
990
|
content_text?: string | null | undefined;
|
|
989
991
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
990
992
|
content_mimetype?: string | null | undefined;
|
|
993
|
+
is_text?: boolean | undefined;
|
|
991
994
|
is_release_tarball?: boolean | undefined;
|
|
992
995
|
npm_pack_output?: any;
|
|
993
996
|
}>;
|
|
@@ -1001,6 +1004,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
|
|
|
1001
1004
|
created_at: z.ZodString;
|
|
1002
1005
|
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
1003
1006
|
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1007
|
+
is_text: z.ZodOptional<z.ZodBoolean>;
|
|
1004
1008
|
}, "content_text">, "strip", z.ZodTypeAny, {
|
|
1005
1009
|
package_release_id: string;
|
|
1006
1010
|
created_at: string;
|
|
@@ -1008,6 +1012,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
|
|
|
1008
1012
|
package_file_id: string;
|
|
1009
1013
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1010
1014
|
content_mimetype?: string | null | undefined;
|
|
1015
|
+
is_text?: boolean | undefined;
|
|
1011
1016
|
is_release_tarball?: boolean | undefined;
|
|
1012
1017
|
npm_pack_output?: any;
|
|
1013
1018
|
}, {
|
|
@@ -1017,6 +1022,7 @@ declare const packageFileLiteSchema: z.ZodObject<Omit<{
|
|
|
1017
1022
|
package_file_id: string;
|
|
1018
1023
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1019
1024
|
content_mimetype?: string | null | undefined;
|
|
1025
|
+
is_text?: boolean | undefined;
|
|
1020
1026
|
is_release_tarball?: boolean | undefined;
|
|
1021
1027
|
npm_pack_output?: any;
|
|
1022
1028
|
}>;
|
|
@@ -1026,7 +1032,7 @@ declare const packageSchema: z.ZodObject<{
|
|
|
1026
1032
|
package_id: z.ZodString;
|
|
1027
1033
|
creator_account_id: z.ZodString;
|
|
1028
1034
|
owner_org_id: z.ZodString;
|
|
1029
|
-
owner_github_username: z.ZodNullable<z.ZodString
|
|
1035
|
+
owner_github_username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1030
1036
|
org_owner_tscircuit_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1031
1037
|
github_repo_full_name: z.ZodNullable<z.ZodString>;
|
|
1032
1038
|
name: z.ZodString;
|
|
@@ -1074,7 +1080,6 @@ declare const packageSchema: z.ZodObject<{
|
|
|
1074
1080
|
license: string | null;
|
|
1075
1081
|
creator_account_id: string;
|
|
1076
1082
|
owner_org_id: string;
|
|
1077
|
-
owner_github_username: string | null;
|
|
1078
1083
|
github_repo_full_name: string | null;
|
|
1079
1084
|
is_snippet: boolean;
|
|
1080
1085
|
is_board: boolean;
|
|
@@ -1089,6 +1094,7 @@ declare const packageSchema: z.ZodObject<{
|
|
|
1089
1094
|
latest_package_release_fs_sha: string | null;
|
|
1090
1095
|
is_starred?: boolean | undefined;
|
|
1091
1096
|
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
1097
|
+
owner_github_username?: string | null | undefined;
|
|
1092
1098
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
1093
1099
|
latest_license?: string | null | undefined;
|
|
1094
1100
|
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
@@ -1107,7 +1113,6 @@ declare const packageSchema: z.ZodObject<{
|
|
|
1107
1113
|
license: string | null;
|
|
1108
1114
|
creator_account_id: string;
|
|
1109
1115
|
owner_org_id: string;
|
|
1110
|
-
owner_github_username: string | null;
|
|
1111
1116
|
github_repo_full_name: string | null;
|
|
1112
1117
|
latest_package_release_id: string | null;
|
|
1113
1118
|
latest_version: string | null;
|
|
@@ -1118,6 +1123,7 @@ declare const packageSchema: z.ZodObject<{
|
|
|
1118
1123
|
is_private?: boolean | null | undefined;
|
|
1119
1124
|
is_public?: boolean | null | undefined;
|
|
1120
1125
|
is_unlisted?: boolean | null | undefined;
|
|
1126
|
+
owner_github_username?: string | null | undefined;
|
|
1121
1127
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
1122
1128
|
is_snippet?: boolean | undefined;
|
|
1123
1129
|
is_board?: boolean | undefined;
|
|
@@ -1765,6 +1771,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1765
1771
|
created_at: z.ZodString;
|
|
1766
1772
|
is_release_tarball: z.ZodOptional<z.ZodBoolean>;
|
|
1767
1773
|
npm_pack_output: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1774
|
+
is_text: z.ZodOptional<z.ZodBoolean>;
|
|
1768
1775
|
}, "strip", z.ZodTypeAny, {
|
|
1769
1776
|
package_release_id: string;
|
|
1770
1777
|
created_at: string;
|
|
@@ -1773,6 +1780,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1773
1780
|
content_text?: string | null | undefined;
|
|
1774
1781
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1775
1782
|
content_mimetype?: string | null | undefined;
|
|
1783
|
+
is_text?: boolean | undefined;
|
|
1776
1784
|
is_release_tarball?: boolean | undefined;
|
|
1777
1785
|
npm_pack_output?: any;
|
|
1778
1786
|
}, {
|
|
@@ -1783,6 +1791,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1783
1791
|
content_text?: string | null | undefined;
|
|
1784
1792
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
1785
1793
|
content_mimetype?: string | null | undefined;
|
|
1794
|
+
is_text?: boolean | undefined;
|
|
1786
1795
|
is_release_tarball?: boolean | undefined;
|
|
1787
1796
|
npm_pack_output?: any;
|
|
1788
1797
|
}>, "many">>;
|
|
@@ -1911,7 +1920,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1911
1920
|
package_id: z.ZodString;
|
|
1912
1921
|
creator_account_id: z.ZodString;
|
|
1913
1922
|
owner_org_id: z.ZodString;
|
|
1914
|
-
owner_github_username: z.ZodNullable<z.ZodString
|
|
1923
|
+
owner_github_username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1915
1924
|
org_owner_tscircuit_handle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1916
1925
|
github_repo_full_name: z.ZodNullable<z.ZodString>;
|
|
1917
1926
|
name: z.ZodString;
|
|
@@ -1959,7 +1968,6 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1959
1968
|
license: string | null;
|
|
1960
1969
|
creator_account_id: string;
|
|
1961
1970
|
owner_org_id: string;
|
|
1962
|
-
owner_github_username: string | null;
|
|
1963
1971
|
github_repo_full_name: string | null;
|
|
1964
1972
|
is_snippet: boolean;
|
|
1965
1973
|
is_board: boolean;
|
|
@@ -1974,6 +1982,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1974
1982
|
latest_package_release_fs_sha: string | null;
|
|
1975
1983
|
is_starred?: boolean | undefined;
|
|
1976
1984
|
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
1985
|
+
owner_github_username?: string | null | undefined;
|
|
1977
1986
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
1978
1987
|
latest_license?: string | null | undefined;
|
|
1979
1988
|
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
@@ -1992,7 +2001,6 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
1992
2001
|
license: string | null;
|
|
1993
2002
|
creator_account_id: string;
|
|
1994
2003
|
owner_org_id: string;
|
|
1995
|
-
owner_github_username: string | null;
|
|
1996
2004
|
github_repo_full_name: string | null;
|
|
1997
2005
|
latest_package_release_id: string | null;
|
|
1998
2006
|
latest_version: string | null;
|
|
@@ -2003,6 +2011,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2003
2011
|
is_private?: boolean | null | undefined;
|
|
2004
2012
|
is_public?: boolean | null | undefined;
|
|
2005
2013
|
is_unlisted?: boolean | null | undefined;
|
|
2014
|
+
owner_github_username?: string | null | undefined;
|
|
2006
2015
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
2007
2016
|
is_snippet?: boolean | undefined;
|
|
2008
2017
|
is_board?: boolean | undefined;
|
|
@@ -2801,6 +2810,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2801
2810
|
content_text?: string | null | undefined;
|
|
2802
2811
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
2803
2812
|
content_mimetype?: string | null | undefined;
|
|
2813
|
+
is_text?: boolean | undefined;
|
|
2804
2814
|
is_release_tarball?: boolean | undefined;
|
|
2805
2815
|
npm_pack_output?: any;
|
|
2806
2816
|
}[];
|
|
@@ -2854,7 +2864,6 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2854
2864
|
license: string | null;
|
|
2855
2865
|
creator_account_id: string;
|
|
2856
2866
|
owner_org_id: string;
|
|
2857
|
-
owner_github_username: string | null;
|
|
2858
2867
|
github_repo_full_name: string | null;
|
|
2859
2868
|
is_snippet: boolean;
|
|
2860
2869
|
is_board: boolean;
|
|
@@ -2869,6 +2878,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
2869
2878
|
latest_package_release_fs_sha: string | null;
|
|
2870
2879
|
is_starred?: boolean | undefined;
|
|
2871
2880
|
snippet_type?: "board" | "package" | "model" | "footprint" | undefined;
|
|
2881
|
+
owner_github_username?: string | null | undefined;
|
|
2872
2882
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
2873
2883
|
latest_license?: string | null | undefined;
|
|
2874
2884
|
default_view?: "files" | "3d" | "pcb" | "schematic" | undefined;
|
|
@@ -3197,6 +3207,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
3197
3207
|
content_text?: string | null | undefined;
|
|
3198
3208
|
content_bytes?: Buffer<ArrayBufferLike> | null | undefined;
|
|
3199
3209
|
content_mimetype?: string | null | undefined;
|
|
3210
|
+
is_text?: boolean | undefined;
|
|
3200
3211
|
is_release_tarball?: boolean | undefined;
|
|
3201
3212
|
npm_pack_output?: any;
|
|
3202
3213
|
}[] | undefined;
|
|
@@ -3246,7 +3257,6 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
3246
3257
|
license: string | null;
|
|
3247
3258
|
creator_account_id: string;
|
|
3248
3259
|
owner_org_id: string;
|
|
3249
|
-
owner_github_username: string | null;
|
|
3250
3260
|
github_repo_full_name: string | null;
|
|
3251
3261
|
latest_package_release_id: string | null;
|
|
3252
3262
|
latest_version: string | null;
|
|
@@ -3257,6 +3267,7 @@ declare const databaseSchema: z.ZodObject<{
|
|
|
3257
3267
|
is_private?: boolean | null | undefined;
|
|
3258
3268
|
is_public?: boolean | null | undefined;
|
|
3259
3269
|
is_unlisted?: boolean | null | undefined;
|
|
3270
|
+
owner_github_username?: string | null | undefined;
|
|
3260
3271
|
org_owner_tscircuit_handle?: string | null | undefined;
|
|
3261
3272
|
is_snippet?: boolean | undefined;
|
|
3262
3273
|
is_board?: boolean | undefined;
|
package/dist/schema.js
CHANGED
|
@@ -279,7 +279,8 @@ var packageFileSchema = z.object({
|
|
|
279
279
|
content_mimetype: z.string().nullable().optional(),
|
|
280
280
|
created_at: z.string().datetime(),
|
|
281
281
|
is_release_tarball: z.boolean().optional(),
|
|
282
|
-
npm_pack_output: z.any().nullable().optional()
|
|
282
|
+
npm_pack_output: z.any().nullable().optional(),
|
|
283
|
+
is_text: z.boolean().optional()
|
|
283
284
|
});
|
|
284
285
|
var packageFileLiteSchema = packageFileSchema.omit({
|
|
285
286
|
content_text: true
|
|
@@ -288,7 +289,7 @@ var packageSchema = z.object({
|
|
|
288
289
|
package_id: z.string(),
|
|
289
290
|
creator_account_id: z.string(),
|
|
290
291
|
owner_org_id: z.string(),
|
|
291
|
-
owner_github_username: z.string().nullable(),
|
|
292
|
+
owner_github_username: z.string().nullable().optional(),
|
|
292
293
|
org_owner_tscircuit_handle: z.string().nullable().optional(),
|
|
293
294
|
github_repo_full_name: z.string().nullable(),
|
|
294
295
|
name: z.string(),
|