@tscircuit/fake-snippets 0.0.148 → 0.0.150

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.js CHANGED
@@ -384,8 +384,7 @@ var orgSchema = z.object({
384
384
  created_at: z.string().datetime(),
385
385
  org_display_name: z.string().optional(),
386
386
  github_handle: z.string().nullable(),
387
- tscircuit_handle: z.string().nullable(),
388
- org_name: z.string()
387
+ tscircuit_handle: z.string().nullable()
389
388
  });
390
389
  var orgAccountSchema = z.object({
391
390
  org_account_id: z.string(),
@@ -395,6 +394,22 @@ var orgAccountSchema = z.object({
395
394
  created_at: z.string().datetime(),
396
395
  can_manage_org: z.boolean().default(false)
397
396
  });
397
+ var orgInvitationSchema = z.object({
398
+ org_invitation_id: z.string(),
399
+ org_id: z.string(),
400
+ invitee_email: z.string().email().nullable(),
401
+ inviter_account_id: z.string(),
402
+ invitation_token: z.string(),
403
+ is_link_invite: z.boolean().default(false),
404
+ is_pending: z.boolean().default(true),
405
+ is_accepted: z.boolean().default(false),
406
+ is_expired: z.boolean().default(false),
407
+ is_revoked: z.boolean().default(false),
408
+ created_at: z.string().datetime(),
409
+ expires_at: z.string().datetime(),
410
+ accepted_at: z.string().datetime().nullable(),
411
+ accepted_by_account_id: z.string().nullable()
412
+ });
398
413
  var userPermissionsSchema = z.object({
399
414
  can_manage_org: z.boolean().optional(),
400
415
  can_manage_package: z.boolean().optional()
@@ -426,6 +441,7 @@ var databaseSchema = z.object({
426
441
  orders: z.array(orderSchema).default([]),
427
442
  organizations: z.array(orgSchema).default([]),
428
443
  orgAccounts: z.array(orgAccountSchema).default([]),
444
+ orgInvitations: z.array(orgInvitationSchema).default([]),
429
445
  orderFiles: z.array(orderFileSchema).default([]),
430
446
  accountSnippets: z.array(accountSnippetSchema).default([]),
431
447
  accountPackages: z.array(accountPackageSchema).default([]),
@@ -439,9 +455,9 @@ var databaseSchema = z.object({
439
455
  bugReports: z.array(bugReportSchema).default([]),
440
456
  bugReportFiles: z.array(bugReportFileSchema).default([])
441
457
  });
442
- var tscircuitHandleSchema = z.string().min(1).max(40).regex(
443
- /^[0-9A-Za-z_-]+$/,
444
- "tscircuit_handle may only contain letters, numbers, underscores, and hyphens"
458
+ var tscircuitHandleSchema = z.string().min(5).max(40).regex(
459
+ /^[0-9A-Za-z][0-9A-Za-z_-]*[0-9A-Za-z]$/,
460
+ "tscircuit_handle must start and end with a letter or number, and may only contain letters, numbers, underscores, and hyphens"
445
461
  );
446
462
  export {
447
463
  accountPackageSchema,
@@ -464,6 +480,7 @@ export {
464
480
  orderQuoteSchema,
465
481
  orderSchema,
466
482
  orgAccountSchema,
483
+ orgInvitationSchema,
467
484
  orgSchema,
468
485
  packageBuildSchema,
469
486
  packageFileSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fake-snippets",
3
- "version": "0.0.148",
3
+ "version": "0.0.150",
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.476",
87
+ "@tscircuit/eval": "^0.0.481",
88
88
  "@tscircuit/layout": "^0.0.29",
89
89
  "@tscircuit/mm": "^0.0.8",
90
90
  "@tscircuit/pcb-viewer": "^1.11.256",