@tscircuit/fake-snippets 0.0.135 → 0.0.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -116,6 +116,7 @@ type LoginPage = z.infer<typeof loginPageSchema>;
116
116
  declare const accountSchema: z.ZodObject<{
117
117
  account_id: z.ZodString;
118
118
  github_username: z.ZodString;
119
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
119
120
  shippingInfo: z.ZodOptional<z.ZodObject<{
120
121
  firstName: z.ZodString;
121
122
  lastName: z.ZodString;
@@ -155,6 +156,7 @@ declare const accountSchema: z.ZodObject<{
155
156
  }, "strip", z.ZodTypeAny, {
156
157
  account_id: string;
157
158
  github_username: string;
159
+ tscircuit_handle: string | null;
158
160
  is_tscircuit_staff: boolean;
159
161
  shippingInfo?: {
160
162
  firstName: string;
@@ -172,6 +174,7 @@ declare const accountSchema: z.ZodObject<{
172
174
  }, {
173
175
  account_id: string;
174
176
  github_username: string;
177
+ tscircuit_handle: string | null;
175
178
  shippingInfo?: {
176
179
  firstName: string;
177
180
  lastName: string;
@@ -1054,26 +1057,29 @@ declare const packageBuildSchema: z.ZodObject<{
1054
1057
  type PackageBuild = z.infer<typeof packageBuildSchema>;
1055
1058
  declare const orgSchema: z.ZodObject<{
1056
1059
  org_id: z.ZodString;
1057
- github_handle: z.ZodOptional<z.ZodString>;
1058
1060
  owner_account_id: z.ZodString;
1059
1061
  is_personal_org: z.ZodDefault<z.ZodBoolean>;
1060
1062
  created_at: z.ZodString;
1061
1063
  org_display_name: z.ZodOptional<z.ZodString>;
1064
+ github_handle: z.ZodNullable<z.ZodString>;
1065
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
1062
1066
  org_name: z.ZodString;
1063
1067
  }, "strip", z.ZodTypeAny, {
1064
1068
  created_at: string;
1069
+ tscircuit_handle: string | null;
1065
1070
  org_id: string;
1066
1071
  owner_account_id: string;
1067
1072
  is_personal_org: boolean;
1073
+ github_handle: string | null;
1068
1074
  org_name: string;
1069
- github_handle?: string | undefined;
1070
1075
  org_display_name?: string | undefined;
1071
1076
  }, {
1072
1077
  created_at: string;
1078
+ tscircuit_handle: string | null;
1073
1079
  org_id: string;
1074
1080
  owner_account_id: string;
1081
+ github_handle: string | null;
1075
1082
  org_name: string;
1076
- github_handle?: string | undefined;
1077
1083
  is_personal_org?: boolean | undefined;
1078
1084
  org_display_name?: string | undefined;
1079
1085
  }>;
@@ -1229,6 +1235,7 @@ declare const createDatabase: ({ seed }?: {
1229
1235
  accounts: {
1230
1236
  account_id: string;
1231
1237
  github_username: string;
1238
+ tscircuit_handle: string | null;
1232
1239
  is_tscircuit_staff: boolean;
1233
1240
  shippingInfo?: {
1234
1241
  firstName: string;
@@ -1299,11 +1306,12 @@ declare const createDatabase: ({ seed }?: {
1299
1306
  }[];
1300
1307
  organizations: {
1301
1308
  created_at: string;
1309
+ tscircuit_handle: string | null;
1302
1310
  org_id: string;
1303
1311
  owner_account_id: string;
1304
1312
  is_personal_org: boolean;
1313
+ github_handle: string | null;
1305
1314
  org_name: string;
1306
- github_handle?: string | undefined;
1307
1315
  org_display_name?: string | undefined;
1308
1316
  }[];
1309
1317
  orgAccounts: {
@@ -1520,6 +1528,7 @@ declare const createDatabase: ({ seed }?: {
1520
1528
  addAccount: (account: Omit<Account, "account_id" | "is_tscircuit_staff"> & Partial<Pick<Account, "account_id" | "is_tscircuit_staff">>) => {
1521
1529
  is_tscircuit_staff: boolean;
1522
1530
  github_username: string;
1531
+ tscircuit_handle: string | null;
1523
1532
  shippingInfo?: {
1524
1533
  firstName: string;
1525
1534
  lastName: string;
@@ -1613,18 +1622,21 @@ declare const createDatabase: ({ seed }?: {
1613
1622
  owner_account_id: string;
1614
1623
  github_handle?: string;
1615
1624
  org_display_name?: string;
1625
+ tscircuit_handle?: string;
1616
1626
  }) => {
1617
1627
  created_at: string;
1628
+ tscircuit_handle: string | null;
1618
1629
  org_id: string;
1619
1630
  owner_account_id: string;
1620
1631
  is_personal_org: boolean;
1632
+ github_handle: string | null;
1621
1633
  org_name: string;
1622
- github_handle?: string | undefined;
1623
1634
  org_display_name?: string | undefined;
1624
1635
  };
1625
1636
  getOrgs: (filters?: {
1626
1637
  owner_account_id?: string;
1627
1638
  github_handle?: string;
1639
+ tscircuit_handle?: string;
1628
1640
  name?: string;
1629
1641
  }, auth?: {
1630
1642
  account_id?: string;
@@ -1633,17 +1645,19 @@ declare const createDatabase: ({ seed }?: {
1633
1645
  package_count: number;
1634
1646
  can_manage_org: boolean;
1635
1647
  created_at: string;
1648
+ tscircuit_handle: string | null;
1636
1649
  org_id: string;
1637
1650
  owner_account_id: string;
1638
1651
  is_personal_org: boolean;
1652
+ github_handle: string | null;
1639
1653
  org_name: string;
1640
- github_handle?: string | undefined;
1641
1654
  org_display_name?: string | undefined;
1642
1655
  }[];
1643
1656
  getOrg: (filters: {
1644
1657
  org_id?: string;
1645
1658
  org_name?: string;
1646
1659
  github_handle?: string;
1660
+ tscircuit_handle?: string;
1647
1661
  }, auth?: {
1648
1662
  account_id: string;
1649
1663
  }) => {
@@ -1651,11 +1665,12 @@ declare const createDatabase: ({ seed }?: {
1651
1665
  package_count: number;
1652
1666
  can_manage_org: boolean;
1653
1667
  created_at: string;
1668
+ tscircuit_handle: string | null;
1654
1669
  org_id: string;
1655
1670
  owner_account_id: string;
1656
1671
  is_personal_org: boolean;
1672
+ github_handle: string | null;
1657
1673
  org_name: string;
1658
- github_handle?: string | undefined;
1659
1674
  org_display_name?: string | undefined;
1660
1675
  } | null;
1661
1676
  addOrganizationAccount: (organizationAccount: {
@@ -1803,6 +1818,7 @@ declare const createDatabase: ({ seed }?: {
1803
1818
  accounts: {
1804
1819
  account_id: string;
1805
1820
  github_username: string;
1821
+ tscircuit_handle: string | null;
1806
1822
  is_tscircuit_staff: boolean;
1807
1823
  shippingInfo?: {
1808
1824
  firstName: string;
@@ -1873,11 +1889,12 @@ declare const createDatabase: ({ seed }?: {
1873
1889
  }[];
1874
1890
  organizations: {
1875
1891
  created_at: string;
1892
+ tscircuit_handle: string | null;
1876
1893
  org_id: string;
1877
1894
  owner_account_id: string;
1878
1895
  is_personal_org: boolean;
1896
+ github_handle: string | null;
1879
1897
  org_name: string;
1880
- github_handle?: string | undefined;
1881
1898
  org_display_name?: string | undefined;
1882
1899
  }[];
1883
1900
  orgAccounts: {
@@ -2094,6 +2111,7 @@ declare const createDatabase: ({ seed }?: {
2094
2111
  addAccount: (account: Omit<Account, "account_id" | "is_tscircuit_staff"> & Partial<Pick<Account, "account_id" | "is_tscircuit_staff">>) => {
2095
2112
  is_tscircuit_staff: boolean;
2096
2113
  github_username: string;
2114
+ tscircuit_handle: string | null;
2097
2115
  shippingInfo?: {
2098
2116
  firstName: string;
2099
2117
  lastName: string;
@@ -2187,18 +2205,21 @@ declare const createDatabase: ({ seed }?: {
2187
2205
  owner_account_id: string;
2188
2206
  github_handle?: string;
2189
2207
  org_display_name?: string;
2208
+ tscircuit_handle?: string;
2190
2209
  }) => {
2191
2210
  created_at: string;
2211
+ tscircuit_handle: string | null;
2192
2212
  org_id: string;
2193
2213
  owner_account_id: string;
2194
2214
  is_personal_org: boolean;
2215
+ github_handle: string | null;
2195
2216
  org_name: string;
2196
- github_handle?: string | undefined;
2197
2217
  org_display_name?: string | undefined;
2198
2218
  };
2199
2219
  getOrgs: (filters?: {
2200
2220
  owner_account_id?: string;
2201
2221
  github_handle?: string;
2222
+ tscircuit_handle?: string;
2202
2223
  name?: string;
2203
2224
  }, auth?: {
2204
2225
  account_id?: string;
@@ -2207,17 +2228,19 @@ declare const createDatabase: ({ seed }?: {
2207
2228
  package_count: number;
2208
2229
  can_manage_org: boolean;
2209
2230
  created_at: string;
2231
+ tscircuit_handle: string | null;
2210
2232
  org_id: string;
2211
2233
  owner_account_id: string;
2212
2234
  is_personal_org: boolean;
2235
+ github_handle: string | null;
2213
2236
  org_name: string;
2214
- github_handle?: string | undefined;
2215
2237
  org_display_name?: string | undefined;
2216
2238
  }[];
2217
2239
  getOrg: (filters: {
2218
2240
  org_id?: string;
2219
2241
  org_name?: string;
2220
2242
  github_handle?: string;
2243
+ tscircuit_handle?: string;
2221
2244
  }, auth?: {
2222
2245
  account_id: string;
2223
2246
  }) => {
@@ -2225,11 +2248,12 @@ declare const createDatabase: ({ seed }?: {
2225
2248
  package_count: number;
2226
2249
  can_manage_org: boolean;
2227
2250
  created_at: string;
2251
+ tscircuit_handle: string | null;
2228
2252
  org_id: string;
2229
2253
  owner_account_id: string;
2230
2254
  is_personal_org: boolean;
2255
+ github_handle: string | null;
2231
2256
  org_name: string;
2232
- github_handle?: string | undefined;
2233
2257
  org_display_name?: string | undefined;
2234
2258
  } | null;
2235
2259
  addOrganizationAccount: (organizationAccount: {
package/dist/index.js CHANGED
@@ -66,6 +66,7 @@ var shippingInfoSchema = z.object({
66
66
  var accountSchema = z.object({
67
67
  account_id: z.string(),
68
68
  github_username: z.string(),
69
+ tscircuit_handle: z.string().nullable(),
69
70
  shippingInfo: shippingInfoSchema.optional(),
70
71
  personal_org_id: z.string().optional(),
71
72
  is_tscircuit_staff: z.boolean().default(false)
@@ -375,11 +376,12 @@ var packageBuildSchema = z.object({
375
376
  });
376
377
  var orgSchema = z.object({
377
378
  org_id: z.string(),
378
- github_handle: z.string().optional(),
379
379
  owner_account_id: z.string(),
380
380
  is_personal_org: z.boolean().default(false),
381
381
  created_at: z.string().datetime(),
382
382
  org_display_name: z.string().optional(),
383
+ github_handle: z.string().nullable(),
384
+ tscircuit_handle: z.string().nullable(),
383
385
  org_name: z.string()
384
386
  });
385
387
  var orgAccountSchema = z.object({
@@ -404,7 +406,8 @@ var publicOrgSchema = z.object({
404
406
  is_personal_org: z.boolean(),
405
407
  display_name: z.string().optional(),
406
408
  package_count: z.number(),
407
- github_handle: z.string().optional(),
409
+ github_handle: z.string().nullable(),
410
+ tscircuit_handle: z.string().nullable(),
408
411
  created_at: z.string(),
409
412
  user_permissions: userPermissionsSchema.optional()
410
413
  });
@@ -623,6 +626,7 @@ var seed = (db) => {
623
626
  account_id: "account-1234",
624
627
  personal_org_id: "org-1234",
625
628
  github_username: "testuser",
629
+ tscircuit_handle: "testuser",
626
630
  shippingInfo: {
627
631
  firstName: "Test",
628
632
  lastName: "User",
@@ -637,7 +641,8 @@ var seed = (db) => {
637
641
  }
638
642
  });
639
643
  const seveibarAcc = db.addAccount({
640
- github_username: "seveibar"
644
+ github_username: "seveibar",
645
+ tscircuit_handle: "seveibar"
641
646
  });
642
647
  if (process.env.AUTOLOAD_PACKAGES === "true") {
643
648
  loadAutoloadPackages(db);
@@ -3388,7 +3393,7 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
3388
3393
  if (!accountsWithPublicPackages.has(account.account_id)) {
3389
3394
  return false;
3390
3395
  }
3391
- return account.github_username.toLowerCase().includes(lowercaseQuery);
3396
+ return account.github_username.toLowerCase().includes(lowercaseQuery) || (account.tscircuit_handle?.toLowerCase().includes(lowercaseQuery) ?? false);
3392
3397
  }).slice(0, limit || 50);
3393
3398
  return matchingAccounts;
3394
3399
  },
@@ -3824,10 +3829,11 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
3824
3829
  const newOrganization = {
3825
3830
  org_name: organization.name,
3826
3831
  org_id: organization.org_id || `org_${get().idCounter + 1}`,
3827
- github_handle: organization.github_handle,
3832
+ github_handle: organization.github_handle ?? null,
3828
3833
  is_personal_org: organization.is_personal_org || false,
3829
3834
  created_at: (/* @__PURE__ */ new Date()).toISOString(),
3830
3835
  org_display_name: organization.org_display_name ?? organization.name,
3836
+ tscircuit_handle: organization.tscircuit_handle ?? null,
3831
3837
  ...organization
3832
3838
  };
3833
3839
  set((state) => ({
@@ -3841,6 +3847,7 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
3841
3847
  return newOrganization;
3842
3848
  },
3843
3849
  getOrgs: (filters, auth) => {
3850
+ console.log(filters);
3844
3851
  let orgs = get().organizations;
3845
3852
  if (filters?.owner_account_id) {
3846
3853
  orgs = orgs.filter(
@@ -3855,8 +3862,15 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
3855
3862
  return account?.github_username === filters.github_handle;
3856
3863
  });
3857
3864
  }
3865
+ if (filters?.tscircuit_handle) {
3866
+ orgs = orgs.filter(
3867
+ (org) => org.tscircuit_handle === filters.tscircuit_handle
3868
+ );
3869
+ }
3858
3870
  if (filters?.name) {
3859
- orgs = orgs.filter((org) => org.github_handle === filters.name);
3871
+ orgs = orgs.filter(
3872
+ (org) => org.github_handle === filters.name || org.tscircuit_handle === filters.name
3873
+ );
3860
3874
  }
3861
3875
  return orgs.map((org) => {
3862
3876
  const member_count = get().accounts.filter(
@@ -3885,6 +3899,11 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
3885
3899
  if (filters?.github_handle) {
3886
3900
  orgs = orgs.filter((org2) => org2.github_handle === filters.github_handle);
3887
3901
  }
3902
+ if (filters?.tscircuit_handle) {
3903
+ orgs = orgs.filter(
3904
+ (org2) => org2.tscircuit_handle === filters.tscircuit_handle
3905
+ );
3906
+ }
3888
3907
  if (orgs.length === 0) {
3889
3908
  return null;
3890
3909
  }
package/dist/schema.d.ts CHANGED
@@ -184,6 +184,7 @@ declare const shippingInfoSchema: z.ZodObject<{
184
184
  declare const accountSchema: z.ZodObject<{
185
185
  account_id: z.ZodString;
186
186
  github_username: z.ZodString;
187
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
187
188
  shippingInfo: z.ZodOptional<z.ZodObject<{
188
189
  firstName: z.ZodString;
189
190
  lastName: z.ZodString;
@@ -223,6 +224,7 @@ declare const accountSchema: z.ZodObject<{
223
224
  }, "strip", z.ZodTypeAny, {
224
225
  account_id: string;
225
226
  github_username: string;
227
+ tscircuit_handle: string | null;
226
228
  is_tscircuit_staff: boolean;
227
229
  shippingInfo?: {
228
230
  firstName: string;
@@ -240,6 +242,7 @@ declare const accountSchema: z.ZodObject<{
240
242
  }, {
241
243
  account_id: string;
242
244
  github_username: string;
245
+ tscircuit_handle: string | null;
243
246
  shippingInfo?: {
244
247
  firstName: string;
245
248
  lastName: string;
@@ -1251,26 +1254,29 @@ declare const packageBuildSchema: z.ZodObject<{
1251
1254
  type PackageBuild = z.infer<typeof packageBuildSchema>;
1252
1255
  declare const orgSchema: z.ZodObject<{
1253
1256
  org_id: z.ZodString;
1254
- github_handle: z.ZodOptional<z.ZodString>;
1255
1257
  owner_account_id: z.ZodString;
1256
1258
  is_personal_org: z.ZodDefault<z.ZodBoolean>;
1257
1259
  created_at: z.ZodString;
1258
1260
  org_display_name: z.ZodOptional<z.ZodString>;
1261
+ github_handle: z.ZodNullable<z.ZodString>;
1262
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
1259
1263
  org_name: z.ZodString;
1260
1264
  }, "strip", z.ZodTypeAny, {
1261
1265
  created_at: string;
1266
+ tscircuit_handle: string | null;
1262
1267
  org_id: string;
1263
1268
  owner_account_id: string;
1264
1269
  is_personal_org: boolean;
1270
+ github_handle: string | null;
1265
1271
  org_name: string;
1266
- github_handle?: string | undefined;
1267
1272
  org_display_name?: string | undefined;
1268
1273
  }, {
1269
1274
  created_at: string;
1275
+ tscircuit_handle: string | null;
1270
1276
  org_id: string;
1271
1277
  owner_account_id: string;
1278
+ github_handle: string | null;
1272
1279
  org_name: string;
1273
- github_handle?: string | undefined;
1274
1280
  is_personal_org?: boolean | undefined;
1275
1281
  org_display_name?: string | undefined;
1276
1282
  }>;
@@ -1317,7 +1323,8 @@ declare const publicOrgSchema: z.ZodObject<{
1317
1323
  is_personal_org: z.ZodBoolean;
1318
1324
  display_name: z.ZodOptional<z.ZodString>;
1319
1325
  package_count: z.ZodNumber;
1320
- github_handle: z.ZodOptional<z.ZodString>;
1326
+ github_handle: z.ZodNullable<z.ZodString>;
1327
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
1321
1328
  created_at: z.ZodString;
1322
1329
  user_permissions: z.ZodOptional<z.ZodObject<{
1323
1330
  can_manage_org: z.ZodOptional<z.ZodBoolean>;
@@ -1332,12 +1339,13 @@ declare const publicOrgSchema: z.ZodObject<{
1332
1339
  }, "strip", z.ZodTypeAny, {
1333
1340
  name: string | null;
1334
1341
  created_at: string;
1342
+ tscircuit_handle: string | null;
1335
1343
  org_id: string;
1336
1344
  owner_account_id: string;
1337
1345
  is_personal_org: boolean;
1346
+ github_handle: string | null;
1338
1347
  member_count: number;
1339
1348
  package_count: number;
1340
- github_handle?: string | undefined;
1341
1349
  display_name?: string | undefined;
1342
1350
  user_permissions?: {
1343
1351
  can_manage_org?: boolean | undefined;
@@ -1346,12 +1354,13 @@ declare const publicOrgSchema: z.ZodObject<{
1346
1354
  }, {
1347
1355
  name: string | null;
1348
1356
  created_at: string;
1357
+ tscircuit_handle: string | null;
1349
1358
  org_id: string;
1350
1359
  owner_account_id: string;
1351
1360
  is_personal_org: boolean;
1361
+ github_handle: string | null;
1352
1362
  member_count: number;
1353
1363
  package_count: number;
1354
- github_handle?: string | undefined;
1355
1364
  display_name?: string | undefined;
1356
1365
  user_permissions?: {
1357
1366
  can_manage_org?: boolean | undefined;
@@ -1687,6 +1696,7 @@ declare const databaseSchema: z.ZodObject<{
1687
1696
  accounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
1688
1697
  account_id: z.ZodString;
1689
1698
  github_username: z.ZodString;
1699
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
1690
1700
  shippingInfo: z.ZodOptional<z.ZodObject<{
1691
1701
  firstName: z.ZodString;
1692
1702
  lastName: z.ZodString;
@@ -1726,6 +1736,7 @@ declare const databaseSchema: z.ZodObject<{
1726
1736
  }, "strip", z.ZodTypeAny, {
1727
1737
  account_id: string;
1728
1738
  github_username: string;
1739
+ tscircuit_handle: string | null;
1729
1740
  is_tscircuit_staff: boolean;
1730
1741
  shippingInfo?: {
1731
1742
  firstName: string;
@@ -1743,6 +1754,7 @@ declare const databaseSchema: z.ZodObject<{
1743
1754
  }, {
1744
1755
  account_id: string;
1745
1756
  github_username: string;
1757
+ tscircuit_handle: string | null;
1746
1758
  shippingInfo?: {
1747
1759
  firstName: string;
1748
1760
  lastName: string;
@@ -1921,26 +1933,29 @@ declare const databaseSchema: z.ZodObject<{
1921
1933
  }>, "many">>;
1922
1934
  organizations: z.ZodDefault<z.ZodArray<z.ZodObject<{
1923
1935
  org_id: z.ZodString;
1924
- github_handle: z.ZodOptional<z.ZodString>;
1925
1936
  owner_account_id: z.ZodString;
1926
1937
  is_personal_org: z.ZodDefault<z.ZodBoolean>;
1927
1938
  created_at: z.ZodString;
1928
1939
  org_display_name: z.ZodOptional<z.ZodString>;
1940
+ github_handle: z.ZodNullable<z.ZodString>;
1941
+ tscircuit_handle: z.ZodNullable<z.ZodString>;
1929
1942
  org_name: z.ZodString;
1930
1943
  }, "strip", z.ZodTypeAny, {
1931
1944
  created_at: string;
1945
+ tscircuit_handle: string | null;
1932
1946
  org_id: string;
1933
1947
  owner_account_id: string;
1934
1948
  is_personal_org: boolean;
1949
+ github_handle: string | null;
1935
1950
  org_name: string;
1936
- github_handle?: string | undefined;
1937
1951
  org_display_name?: string | undefined;
1938
1952
  }, {
1939
1953
  created_at: string;
1954
+ tscircuit_handle: string | null;
1940
1955
  org_id: string;
1941
1956
  owner_account_id: string;
1957
+ github_handle: string | null;
1942
1958
  org_name: string;
1943
- github_handle?: string | undefined;
1944
1959
  is_personal_org?: boolean | undefined;
1945
1960
  org_display_name?: string | undefined;
1946
1961
  }>, "many">>;
@@ -2604,6 +2619,7 @@ declare const databaseSchema: z.ZodObject<{
2604
2619
  accounts: {
2605
2620
  account_id: string;
2606
2621
  github_username: string;
2622
+ tscircuit_handle: string | null;
2607
2623
  is_tscircuit_staff: boolean;
2608
2624
  shippingInfo?: {
2609
2625
  firstName: string;
@@ -2674,11 +2690,12 @@ declare const databaseSchema: z.ZodObject<{
2674
2690
  }[];
2675
2691
  organizations: {
2676
2692
  created_at: string;
2693
+ tscircuit_handle: string | null;
2677
2694
  org_id: string;
2678
2695
  owner_account_id: string;
2679
2696
  is_personal_org: boolean;
2697
+ github_handle: string | null;
2680
2698
  org_name: string;
2681
- github_handle?: string | undefined;
2682
2699
  org_display_name?: string | undefined;
2683
2700
  }[];
2684
2701
  orgAccounts: {
@@ -2973,6 +2990,7 @@ declare const databaseSchema: z.ZodObject<{
2973
2990
  accounts?: {
2974
2991
  account_id: string;
2975
2992
  github_username: string;
2993
+ tscircuit_handle: string | null;
2976
2994
  shippingInfo?: {
2977
2995
  firstName: string;
2978
2996
  lastName: string;
@@ -3043,10 +3061,11 @@ declare const databaseSchema: z.ZodObject<{
3043
3061
  }[] | undefined;
3044
3062
  organizations?: {
3045
3063
  created_at: string;
3064
+ tscircuit_handle: string | null;
3046
3065
  org_id: string;
3047
3066
  owner_account_id: string;
3067
+ github_handle: string | null;
3048
3068
  org_name: string;
3049
- github_handle?: string | undefined;
3050
3069
  is_personal_org?: boolean | undefined;
3051
3070
  org_display_name?: string | undefined;
3052
3071
  }[] | undefined;
package/dist/schema.js CHANGED
@@ -60,6 +60,7 @@ var shippingInfoSchema = z.object({
60
60
  var accountSchema = z.object({
61
61
  account_id: z.string(),
62
62
  github_username: z.string(),
63
+ tscircuit_handle: z.string().nullable(),
63
64
  shippingInfo: shippingInfoSchema.optional(),
64
65
  personal_org_id: z.string().optional(),
65
66
  is_tscircuit_staff: z.boolean().default(false)
@@ -369,11 +370,12 @@ var packageBuildSchema = z.object({
369
370
  });
370
371
  var orgSchema = z.object({
371
372
  org_id: z.string(),
372
- github_handle: z.string().optional(),
373
373
  owner_account_id: z.string(),
374
374
  is_personal_org: z.boolean().default(false),
375
375
  created_at: z.string().datetime(),
376
376
  org_display_name: z.string().optional(),
377
+ github_handle: z.string().nullable(),
378
+ tscircuit_handle: z.string().nullable(),
377
379
  org_name: z.string()
378
380
  });
379
381
  var orgAccountSchema = z.object({
@@ -398,7 +400,8 @@ var publicOrgSchema = z.object({
398
400
  is_personal_org: z.boolean(),
399
401
  display_name: z.string().optional(),
400
402
  package_count: z.number(),
401
- github_handle: z.string().optional(),
403
+ github_handle: z.string().nullable(),
404
+ tscircuit_handle: z.string().nullable(),
402
405
  created_at: z.string(),
403
406
  user_permissions: userPermissionsSchema.optional()
404
407
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fake-snippets",
3
- "version": "0.0.135",
3
+ "version": "0.0.136",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -84,7 +84,7 @@
84
84
  "@tscircuit/3d-viewer": "^0.0.407",
85
85
  "@tscircuit/assembly-viewer": "^0.0.5",
86
86
  "@tscircuit/create-snippet-url": "^0.0.8",
87
- "@tscircuit/eval": "^0.0.438",
87
+ "@tscircuit/eval": "^0.0.444",
88
88
  "@tscircuit/layout": "^0.0.29",
89
89
  "@tscircuit/mm": "^0.0.8",
90
90
  "@tscircuit/pcb-viewer": "^1.11.218",