@burdenoff/microfe-admin 2026.1123.1 → 2026.1124.1

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.
Files changed (66) hide show
  1. package/dist/admin/components/forms/SubscriptionForm.d.ts +19 -20
  2. package/dist/admin/components/forms/SubscriptionForm.js +6 -6
  3. package/dist/admin/components/forms/SubscriptionForm.js.map +1 -1
  4. package/dist/admin/components/forms/TenantForm.d.ts +4 -42
  5. package/dist/admin/components/forms/TenantForm.js +75 -75
  6. package/dist/admin/components/forms/TenantForm.js.map +1 -1
  7. package/dist/admin/components/forms/TicketForm.d.ts +21 -22
  8. package/dist/admin/components/forms/TicketForm.js +1 -1
  9. package/dist/admin/components/forms/TicketForm.js.map +1 -1
  10. package/dist/admin/components/forms/UserForm.d.ts +14 -20
  11. package/dist/admin/components/forms/UserForm.js +55 -55
  12. package/dist/admin/components/forms/UserForm.js.map +1 -1
  13. package/dist/admin/schemas/index.d.ts +128 -243
  14. package/dist/admin/schemas/index.js +58 -58
  15. package/dist/admin/schemas/index.js.map +1 -1
  16. package/dist/node_modules/zod/v4/classic/errors.js +44 -0
  17. package/dist/node_modules/zod/v4/classic/errors.js.map +1 -0
  18. package/dist/node_modules/zod/v4/classic/parse.js +7 -0
  19. package/dist/node_modules/zod/v4/classic/parse.js.map +1 -0
  20. package/dist/node_modules/zod/v4/classic/schemas.js +722 -0
  21. package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -0
  22. package/dist/node_modules/zod/v4/core/api.js +498 -0
  23. package/dist/node_modules/zod/v4/core/api.js.map +1 -0
  24. package/dist/node_modules/zod/v4/core/checks.js +245 -0
  25. package/dist/node_modules/zod/v4/core/checks.js.map +1 -0
  26. package/dist/node_modules/zod/v4/core/core.js +84 -0
  27. package/dist/node_modules/zod/v4/core/core.js.map +1 -0
  28. package/dist/node_modules/zod/v4/core/doc.js +29 -0
  29. package/dist/node_modules/zod/v4/core/doc.js.map +1 -0
  30. package/dist/node_modules/zod/v4/core/errors.js +90 -0
  31. package/dist/node_modules/zod/v4/core/errors.js.map +1 -0
  32. package/dist/node_modules/zod/v4/core/json-schema-processors.js +223 -0
  33. package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -0
  34. package/dist/node_modules/zod/v4/core/memoizer.js +188 -0
  35. package/dist/node_modules/zod/v4/core/memoizer.js.map +1 -0
  36. package/dist/node_modules/zod/v4/core/parse.js +159 -0
  37. package/dist/node_modules/zod/v4/core/parse.js.map +1 -0
  38. package/dist/node_modules/zod/v4/core/regexes.js +34 -0
  39. package/dist/node_modules/zod/v4/core/regexes.js.map +1 -0
  40. package/dist/node_modules/zod/v4/core/registries.js +41 -0
  41. package/dist/node_modules/zod/v4/core/registries.js.map +1 -0
  42. package/dist/node_modules/zod/v4/core/schemas.js +904 -0
  43. package/dist/node_modules/zod/v4/core/schemas.js.map +1 -0
  44. package/dist/node_modules/zod/v4/core/to-json-schema.js +330 -0
  45. package/dist/node_modules/zod/v4/core/to-json-schema.js.map +1 -0
  46. package/dist/node_modules/zod/v4/core/util.js +421 -0
  47. package/dist/node_modules/zod/v4/core/util.js.map +1 -0
  48. package/dist/node_modules/zod/v4/core/versions.js +9 -0
  49. package/dist/node_modules/zod/v4/core/versions.js.map +1 -0
  50. package/dist/node_modules/zod/v4/locales/en.js +96 -0
  51. package/dist/node_modules/zod/v4/locales/en.js.map +1 -0
  52. package/package.json +2 -2
  53. package/dist/node_modules/zod/v3/ZodError.js +0 -81
  54. package/dist/node_modules/zod/v3/ZodError.js.map +0 -1
  55. package/dist/node_modules/zod/v3/errors.js +0 -9
  56. package/dist/node_modules/zod/v3/errors.js.map +0 -1
  57. package/dist/node_modules/zod/v3/helpers/errorUtil.js +0 -8
  58. package/dist/node_modules/zod/v3/helpers/errorUtil.js.map +0 -1
  59. package/dist/node_modules/zod/v3/helpers/parseUtil.js +0 -92
  60. package/dist/node_modules/zod/v3/helpers/parseUtil.js.map +0 -1
  61. package/dist/node_modules/zod/v3/helpers/util.js +0 -75
  62. package/dist/node_modules/zod/v3/helpers/util.js.map +0 -1
  63. package/dist/node_modules/zod/v3/locales/en.js +0 -61
  64. package/dist/node_modules/zod/v3/locales/en.js.map +0 -1
  65. package/dist/node_modules/zod/v3/types.js +0 -2469
  66. package/dist/node_modules/zod/v3/types.js.map +0 -1
@@ -1,106 +1,106 @@
1
- import { boolean as e, enum as t, literal as n, number as r, object as i, string as a } from "../../node_modules/zod/v3/types.js";
1
+ import { boolean as e, email as t, enum as n, literal as r, number as i, object as a, string as o, url as s } from "../../node_modules/zod/v4/classic/schemas.js";
2
2
  // src/admin/schemas/index.ts
3
- var o = [
3
+ var c = [
4
4
  "active",
5
5
  "suspended",
6
6
  "pending",
7
7
  "churned"
8
- ], s = a(), c = [
8
+ ], l = o(), u = [
9
9
  "Free",
10
10
  "Starter",
11
11
  "Professional",
12
12
  "Enterprise",
13
13
  "Custom"
14
- ], l = a(), u = i({
14
+ ], d = o(), f = a({
15
15
  allowSignup: e().default(!0),
16
16
  ssoEnabled: e().default(!1),
17
17
  mfaRequired: e().default(!1),
18
- dataRetentionDays: r().int().min(30).max(3650).default(365)
19
- }), d = i({
20
- name: a().min(2, "Name must be at least 2 characters").max(100, "Name must be less than 100 characters"),
21
- slug: a().min(2, "Slug must be at least 2 characters").max(50, "Slug must be less than 50 characters").regex(/^[a-z0-9-]+$/, "Slug can only contain lowercase letters, numbers, and hyphens"),
22
- domain: a().optional(),
23
- ownerEmail: a().email("Invalid email address"),
24
- billingEmail: a().email("Invalid email address").optional(),
25
- plan: l.default("Free"),
26
- settings: u.optional()
27
- }), f = d.partial().extend({
28
- id: a(),
29
- status: s.optional()
30
- }), p = t([
18
+ dataRetentionDays: i().int().min(30).max(3650).default(365)
19
+ }), p = a({
20
+ name: o().min(2, "Name must be at least 2 characters").max(100, "Name must be less than 100 characters"),
21
+ slug: o().min(2, "Slug must be at least 2 characters").max(50, "Slug must be less than 50 characters").regex(/^[a-z0-9-]+$/, "Slug can only contain lowercase letters, numbers, and hyphens"),
22
+ domain: o().optional(),
23
+ ownerEmail: t("Invalid email address"),
24
+ billingEmail: t("Invalid email address").optional(),
25
+ plan: d.default("Free"),
26
+ settings: f.optional()
27
+ }), m = p.partial().extend({
28
+ id: o(),
29
+ status: l.optional()
30
+ }), h = n([
31
31
  "active",
32
32
  "inactive",
33
33
  "pending",
34
34
  "suspended"
35
- ]), m = t([
35
+ ]), g = n([
36
36
  "admin",
37
37
  "member",
38
38
  "viewer",
39
39
  "owner"
40
- ]), h = i({
41
- email: a().email("Invalid email address"),
42
- firstName: a().min(1, "First name is required").max(50, "First name must be less than 50 characters"),
43
- lastName: a().min(1, "Last name is required").max(50, "Last name must be less than 50 characters"),
44
- role: m.default("member"),
45
- tenantId: a().optional(),
40
+ ]), _ = a({
41
+ email: t("Invalid email address"),
42
+ firstName: o().min(1, "First name is required").max(50, "First name must be less than 50 characters"),
43
+ lastName: o().min(1, "Last name is required").max(50, "Last name must be less than 50 characters"),
44
+ role: g.default("member"),
45
+ tenantId: o().optional(),
46
46
  sendInvite: e().default(!0)
47
- }), g = h.partial().extend({
48
- id: a(),
49
- status: p.optional()
50
- }), _ = t([
47
+ }), v = _.partial().extend({
48
+ id: o(),
49
+ status: h.optional()
50
+ }), y = n([
51
51
  "active",
52
52
  "cancelled",
53
53
  "past_due",
54
54
  "trialing",
55
55
  "paused"
56
- ]), v = t(["monthly", "yearly"]), y = i({
57
- tenantId: a().min(1, "Tenant is required"),
58
- plan: l,
59
- billingCycle: v.default("monthly"),
60
- seats: r().int().min(1, "At least 1 seat is required").default(1),
61
- startDate: a().optional(),
62
- trialEndDate: a().optional()
63
- }), b = y.partial().extend({
64
- id: a(),
65
- status: _.optional()
66
- }), x = t([
56
+ ]), b = n(["monthly", "yearly"]), x = a({
57
+ tenantId: o().min(1, "Tenant is required"),
58
+ plan: d,
59
+ billingCycle: b.default("monthly"),
60
+ seats: i().int().min(1, "At least 1 seat is required").default(1),
61
+ startDate: o().optional(),
62
+ trialEndDate: o().optional()
63
+ }), S = x.partial().extend({
64
+ id: o(),
65
+ status: y.optional()
66
+ }), C = n([
67
67
  "low",
68
68
  "medium",
69
69
  "high",
70
70
  "urgent"
71
- ]), S = t([
71
+ ]), w = n([
72
72
  "open",
73
73
  "in_progress",
74
74
  "waiting",
75
75
  "resolved",
76
76
  "closed"
77
- ]), C = t([
77
+ ]), T = n([
78
78
  "billing",
79
79
  "technical",
80
80
  "account",
81
81
  "feature_request",
82
82
  "other"
83
- ]), w = i({
84
- subject: a().min(5, "Subject must be at least 5 characters").max(200, "Subject must be less than 200 characters"),
85
- description: a().min(10, "Description must be at least 10 characters").max(5e3, "Description must be less than 5000 characters"),
86
- category: C.default("other"),
87
- priority: x.default("medium"),
88
- tenantId: a().optional(),
89
- userId: a().optional()
90
- }), T = w.partial().extend({
91
- id: a(),
92
- status: S.optional(),
93
- assigneeId: a().optional()
94
- }), E = i({
83
+ ]), E = a({
84
+ subject: o().min(5, "Subject must be at least 5 characters").max(200, "Subject must be less than 200 characters"),
85
+ description: o().min(10, "Description must be at least 10 characters").max(5e3, "Description must be less than 5000 characters"),
86
+ category: T.default("other"),
87
+ priority: C.default("medium"),
88
+ tenantId: o().optional(),
89
+ userId: o().optional()
90
+ }), D = E.partial().extend({
91
+ id: o(),
92
+ status: w.optional(),
93
+ assigneeId: o().optional()
94
+ }), O = a({
95
95
  maintenanceMode: e().default(!1),
96
96
  allowNewSignups: e().default(!0),
97
- defaultTenantPlan: l.default("Free"),
98
- maxUsersPerTenant: r().int().min(1).max(1e4).default(100),
99
- maxStoragePerTenant: r().int().min(1).default(10),
97
+ defaultTenantPlan: d.default("Free"),
98
+ maxUsersPerTenant: i().int().min(1).max(1e4).default(100),
99
+ maxStoragePerTenant: i().int().min(1).default(10),
100
100
  emailNotifications: e().default(!0),
101
101
  slackNotifications: e().default(!1),
102
- slackWebhookUrl: a().url().optional().or(n(""))
102
+ slackWebhookUrl: s().optional().or(r(""))
103
103
  });
104
- export { c as TENANT_PLAN_VALUES, o as TENANT_STATUS_VALUES, v as billingCycleSchema, y as createSubscriptionSchema, d as createTenantSchema, w as createTicketSchema, h as createUserSchema, E as platformSettingsSchema, _ as subscriptionStatusSchema, l as tenantPlanSchema, u as tenantSettingsSchema, s as tenantStatusSchema, C as ticketCategorySchema, x as ticketPrioritySchema, S as ticketStatusSchema, b as updateSubscriptionSchema, f as updateTenantSchema, T as updateTicketSchema, g as updateUserSchema, m as userRoleSchema, p as userStatusSchema };
104
+ export { u as TENANT_PLAN_VALUES, c as TENANT_STATUS_VALUES, b as billingCycleSchema, x as createSubscriptionSchema, p as createTenantSchema, E as createTicketSchema, _ as createUserSchema, O as platformSettingsSchema, y as subscriptionStatusSchema, d as tenantPlanSchema, f as tenantSettingsSchema, l as tenantStatusSchema, T as ticketCategorySchema, C as ticketPrioritySchema, w as ticketStatusSchema, S as updateSubscriptionSchema, m as updateTenantSchema, D as updateTicketSchema, v as updateUserSchema, g as userRoleSchema, h as userStatusSchema };
105
105
 
106
106
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["z.string","z.object","z.boolean","z.number","z.enum","z.literal","booleanType","enumType","literalType","numberType","objectType","stringType","TENANT_STATUS_VALUES","tenantStatusSchema","TENANT_PLAN_VALUES","tenantPlanSchema","tenantSettingsSchema","createTenantSchema","updateTenantSchema","userStatusSchema","userRoleSchema","createUserSchema","updateUserSchema","subscriptionStatusSchema","billingCycleSchema","createSubscriptionSchema","updateSubscriptionSchema","ticketPrioritySchema","ticketStatusSchema","ticketCategorySchema","createTicketSchema","updateTicketSchema","platformSettingsSchema"],"sources":["../../../src/admin/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\n\n// ============================================================================\n// Tenant Schemas\n// ============================================================================\n\n// Known status values the UI offers as picker options. The schema accepts\n// any non-empty string so a tenant carrying a backend-introduced status\n// (e.g. 'deleted', 'trial', 'provisioning' — see mappers.ts) can flow\n// through the edit form without the form silently rewriting it. Validation\n// of \"is this a real status\" lives at the backend, not the form.\nexport const TENANT_STATUS_VALUES = ['active', 'suspended', 'pending', 'churned'] as const;\nexport const tenantStatusSchema = z.string();\nexport type TenantStatus = (typeof TENANT_STATUS_VALUES)[number];\n\nexport const TENANT_PLAN_VALUES = [\n 'Free',\n 'Starter',\n 'Professional',\n 'Enterprise',\n 'Custom',\n] as const;\nexport const tenantPlanSchema = z.string();\nexport type TenantPlan = (typeof TENANT_PLAN_VALUES)[number];\n\nexport const tenantSettingsSchema = z.object({\n allowSignup: z.boolean().default(true),\n ssoEnabled: z.boolean().default(false),\n mfaRequired: z.boolean().default(false),\n dataRetentionDays: z.number().int().min(30).max(3650).default(365),\n});\n\nexport const createTenantSchema = z.object({\n name: z\n .string()\n .min(2, 'Name must be at least 2 characters')\n .max(100, 'Name must be less than 100 characters'),\n slug: z\n .string()\n .min(2, 'Slug must be at least 2 characters')\n .max(50, 'Slug must be less than 50 characters')\n .regex(/^[a-z0-9-]+$/, 'Slug can only contain lowercase letters, numbers, and hyphens'),\n domain: z.string().optional(),\n ownerEmail: z.string().email('Invalid email address'),\n billingEmail: z.string().email('Invalid email address').optional(),\n plan: tenantPlanSchema.default('Free'),\n settings: tenantSettingsSchema.optional(),\n});\n\nexport type CreateTenantInput = z.infer<typeof createTenantSchema>;\n\nexport const updateTenantSchema = createTenantSchema.partial().extend({\n id: z.string(),\n status: tenantStatusSchema.optional(),\n});\n\nexport type UpdateTenantInput = z.infer<typeof updateTenantSchema>;\n\n// ============================================================================\n// User Schemas\n// ============================================================================\n\nexport const userStatusSchema = z.enum(['active', 'inactive', 'pending', 'suspended']);\nexport type UserStatus = z.infer<typeof userStatusSchema>;\n\nexport const userRoleSchema = z.enum(['admin', 'member', 'viewer', 'owner']);\nexport type UserRole = z.infer<typeof userRoleSchema>;\n\nexport const createUserSchema = z.object({\n email: z.string().email('Invalid email address'),\n firstName: z\n .string()\n .min(1, 'First name is required')\n .max(50, 'First name must be less than 50 characters'),\n lastName: z\n .string()\n .min(1, 'Last name is required')\n .max(50, 'Last name must be less than 50 characters'),\n role: userRoleSchema.default('member'),\n tenantId: z.string().optional(),\n sendInvite: z.boolean().default(true),\n});\n\nexport type CreateUserInput = z.infer<typeof createUserSchema>;\n\nexport const updateUserSchema = createUserSchema.partial().extend({\n id: z.string(),\n status: userStatusSchema.optional(),\n});\n\nexport type UpdateUserInput = z.infer<typeof updateUserSchema>;\n\n// ============================================================================\n// Subscription Schemas\n// ============================================================================\n\nexport const subscriptionStatusSchema = z.enum([\n 'active',\n 'cancelled',\n 'past_due',\n 'trialing',\n 'paused',\n]);\nexport type SubscriptionStatus = z.infer<typeof subscriptionStatusSchema>;\n\nexport const billingCycleSchema = z.enum(['monthly', 'yearly']);\nexport type BillingCycle = z.infer<typeof billingCycleSchema>;\n\nexport const createSubscriptionSchema = z.object({\n tenantId: z.string().min(1, 'Tenant is required'),\n plan: tenantPlanSchema,\n billingCycle: billingCycleSchema.default('monthly'),\n seats: z.number().int().min(1, 'At least 1 seat is required').default(1),\n startDate: z.string().optional(),\n trialEndDate: z.string().optional(),\n});\n\nexport type CreateSubscriptionInput = z.infer<typeof createSubscriptionSchema>;\n\nexport const updateSubscriptionSchema = createSubscriptionSchema.partial().extend({\n id: z.string(),\n status: subscriptionStatusSchema.optional(),\n});\n\nexport type UpdateSubscriptionInput = z.infer<typeof updateSubscriptionSchema>;\n\n// ============================================================================\n// Support Ticket Schemas\n// ============================================================================\n\nexport const ticketPrioritySchema = z.enum(['low', 'medium', 'high', 'urgent']);\nexport type TicketPriority = z.infer<typeof ticketPrioritySchema>;\n\nexport const ticketStatusSchema = z.enum(['open', 'in_progress', 'waiting', 'resolved', 'closed']);\nexport type TicketStatus = z.infer<typeof ticketStatusSchema>;\n\nexport const ticketCategorySchema = z.enum([\n 'billing',\n 'technical',\n 'account',\n 'feature_request',\n 'other',\n]);\nexport type TicketCategory = z.infer<typeof ticketCategorySchema>;\n\nexport const createTicketSchema = z.object({\n subject: z\n .string()\n .min(5, 'Subject must be at least 5 characters')\n .max(200, 'Subject must be less than 200 characters'),\n description: z\n .string()\n .min(10, 'Description must be at least 10 characters')\n .max(5000, 'Description must be less than 5000 characters'),\n category: ticketCategorySchema.default('other'),\n priority: ticketPrioritySchema.default('medium'),\n tenantId: z.string().optional(),\n userId: z.string().optional(),\n});\n\nexport type CreateTicketInput = z.infer<typeof createTicketSchema>;\n\nexport const updateTicketSchema = createTicketSchema.partial().extend({\n id: z.string(),\n status: ticketStatusSchema.optional(),\n assigneeId: z.string().optional(),\n});\n\nexport type UpdateTicketInput = z.infer<typeof updateTicketSchema>;\n\n// ============================================================================\n// Settings Schemas\n// ============================================================================\n\nexport const platformSettingsSchema = z.object({\n maintenanceMode: z.boolean().default(false),\n allowNewSignups: z.boolean().default(true),\n defaultTenantPlan: tenantPlanSchema.default('Free'),\n maxUsersPerTenant: z.number().int().min(1).max(10000).default(100),\n maxStoragePerTenant: z.number().int().min(1).default(10), // GB\n emailNotifications: z.boolean().default(true),\n slackNotifications: z.boolean().default(false),\n slackWebhookUrl: z.string().url().optional().or(z.literal('')),\n});\n\nexport type PlatformSettingsInput = z.infer<typeof platformSettingsSchema>;\n"],"mappings":";;AAWA,IAAaY,IAAuB;CAAC;CAAU;CAAa;CAAW;AAAS,GACnEC,IAAqBb,EAAS,GAG9Bc,IAAqB;CAChC;CACA;CACA;CACA;CACA;AACF,GACaC,IAAmBf,EAAS,GAG5BgB,IAAuBf,EAAS;CAC3C,aAAaC,EAAU,CAAC,CAAC,QAAQ,EAAI;CACrC,YAAYA,EAAU,CAAC,CAAC,QAAQ,EAAK;CACrC,aAAaA,EAAU,CAAC,CAAC,QAAQ,EAAK;CACtC,mBAAmBC,EAAS,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,QAAQ,GAAG;AACnE,CAAC,GAEYc,IAAqBhB,EAAS;CACzC,MAAMD,EACI,CAAC,CACR,IAAI,GAAG,oCAAoC,CAAC,CAC5C,IA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CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAK,CAAC,CAAC,QAAQ,GAAG;CACjE,qBAAqBA,EAAS,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvD,oBAAoBD,EAAU,CAAC,CAAC,QAAQ,EAAI;CAC5C,oBAAoBA,EAAU,CAAC,CAAC,QAAQ,EAAK;CAC7C,iBAAiBF,EAAS,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,GAAGK,EAAU,EAAE,CAAC;AAC/D,CAAC"}
1
+ {"version":3,"file":"index.js","names":["z.string","z.object","z.boolean","z.number","z.email","z.enum","z.url","z.literal","_enum","TENANT_STATUS_VALUES","tenantStatusSchema","string","TENANT_PLAN_VALUES","tenantPlanSchema","tenantSettingsSchema","object","boolean","number","createTenantSchema","email","updateTenantSchema","userStatusSchema","userRoleSchema","createUserSchema","updateUserSchema","subscriptionStatusSchema","billingCycleSchema","createSubscriptionSchema","updateSubscriptionSchema","ticketPrioritySchema","ticketStatusSchema","ticketCategorySchema","createTicketSchema","updateTicketSchema","platformSettingsSchema","url","literal"],"sources":["../../../src/admin/schemas/index.ts"],"sourcesContent":["import { z } from 'zod';\n\n// ============================================================================\n// Tenant Schemas\n// ============================================================================\n\n// Known status values the UI offers as picker options. The schema accepts\n// any non-empty string so a tenant carrying a backend-introduced status\n// (e.g. 'deleted', 'trial', 'provisioning' — see mappers.ts) can flow\n// through the edit form without the form silently rewriting it. Validation\n// of \"is this a real status\" lives at the backend, not the form.\nexport const TENANT_STATUS_VALUES = ['active', 'suspended', 'pending', 'churned'] as const;\nexport const tenantStatusSchema = z.string();\nexport type TenantStatus = (typeof TENANT_STATUS_VALUES)[number];\n\nexport const TENANT_PLAN_VALUES = [\n 'Free',\n 'Starter',\n 'Professional',\n 'Enterprise',\n 'Custom',\n] as const;\nexport const tenantPlanSchema = z.string();\nexport type TenantPlan = (typeof TENANT_PLAN_VALUES)[number];\n\nexport const tenantSettingsSchema = z.object({\n allowSignup: z.boolean().default(true),\n ssoEnabled: z.boolean().default(false),\n mfaRequired: z.boolean().default(false),\n dataRetentionDays: z.number().int().min(30).max(3650).default(365),\n});\n\nexport const createTenantSchema = z.object({\n name: z\n .string()\n .min(2, 'Name must be at least 2 characters')\n .max(100, 'Name must be less than 100 characters'),\n slug: z\n .string()\n .min(2, 'Slug must be at least 2 characters')\n .max(50, 'Slug must be less than 50 characters')\n .regex(/^[a-z0-9-]+$/, 'Slug can only contain lowercase letters, numbers, and hyphens'),\n domain: z.string().optional(),\n ownerEmail: z.email('Invalid email address'),\n billingEmail: z.email('Invalid email address').optional(),\n plan: tenantPlanSchema.default('Free'),\n settings: tenantSettingsSchema.optional(),\n});\n\nexport type CreateTenantInput = z.infer<typeof createTenantSchema>;\n\nexport const updateTenantSchema = createTenantSchema.partial().extend({\n id: z.string(),\n status: tenantStatusSchema.optional(),\n});\n\nexport type UpdateTenantInput = z.infer<typeof updateTenantSchema>;\n\n// ============================================================================\n// User Schemas\n// ============================================================================\n\nexport const userStatusSchema = z.enum(['active', 'inactive', 'pending', 'suspended']);\nexport type UserStatus = z.infer<typeof userStatusSchema>;\n\nexport const userRoleSchema = z.enum(['admin', 'member', 'viewer', 'owner']);\nexport type UserRole = z.infer<typeof userRoleSchema>;\n\nexport const createUserSchema = z.object({\n email: z.email('Invalid email address'),\n firstName: z\n .string()\n .min(1, 'First name is required')\n .max(50, 'First name must be less than 50 characters'),\n lastName: z\n .string()\n .min(1, 'Last name is required')\n .max(50, 'Last name must be less than 50 characters'),\n role: userRoleSchema.default('member'),\n tenantId: z.string().optional(),\n sendInvite: z.boolean().default(true),\n});\n\nexport type CreateUserInput = z.infer<typeof createUserSchema>;\n\nexport const updateUserSchema = createUserSchema.partial().extend({\n id: z.string(),\n status: userStatusSchema.optional(),\n});\n\nexport type UpdateUserInput = z.infer<typeof updateUserSchema>;\n\n// ============================================================================\n// Subscription Schemas\n// ============================================================================\n\nexport const subscriptionStatusSchema = z.enum([\n 'active',\n 'cancelled',\n 'past_due',\n 'trialing',\n 'paused',\n]);\nexport type SubscriptionStatus = z.infer<typeof subscriptionStatusSchema>;\n\nexport const billingCycleSchema = z.enum(['monthly', 'yearly']);\nexport type BillingCycle = z.infer<typeof billingCycleSchema>;\n\nexport const createSubscriptionSchema = z.object({\n tenantId: z.string().min(1, 'Tenant is required'),\n plan: tenantPlanSchema,\n billingCycle: billingCycleSchema.default('monthly'),\n seats: z.number().int().min(1, 'At least 1 seat is required').default(1),\n startDate: z.string().optional(),\n trialEndDate: z.string().optional(),\n});\n\nexport type CreateSubscriptionInput = z.infer<typeof createSubscriptionSchema>;\n\nexport const updateSubscriptionSchema = createSubscriptionSchema.partial().extend({\n id: z.string(),\n status: subscriptionStatusSchema.optional(),\n});\n\nexport type UpdateSubscriptionInput = z.infer<typeof updateSubscriptionSchema>;\n\n// ============================================================================\n// Support Ticket Schemas\n// ============================================================================\n\nexport const ticketPrioritySchema = z.enum(['low', 'medium', 'high', 'urgent']);\nexport type TicketPriority = z.infer<typeof ticketPrioritySchema>;\n\nexport const ticketStatusSchema = z.enum(['open', 'in_progress', 'waiting', 'resolved', 'closed']);\nexport type TicketStatus = z.infer<typeof ticketStatusSchema>;\n\nexport const ticketCategorySchema = z.enum([\n 'billing',\n 'technical',\n 'account',\n 'feature_request',\n 'other',\n]);\nexport type TicketCategory = z.infer<typeof ticketCategorySchema>;\n\nexport const createTicketSchema = z.object({\n subject: z\n .string()\n .min(5, 'Subject must be at least 5 characters')\n .max(200, 'Subject must be less than 200 characters'),\n description: z\n .string()\n .min(10, 'Description must be at least 10 characters')\n .max(5000, 'Description must be less than 5000 characters'),\n category: ticketCategorySchema.default('other'),\n priority: ticketPrioritySchema.default('medium'),\n tenantId: z.string().optional(),\n userId: z.string().optional(),\n});\n\nexport type CreateTicketInput = z.infer<typeof createTicketSchema>;\n\nexport const updateTicketSchema = createTicketSchema.partial().extend({\n id: z.string(),\n status: ticketStatusSchema.optional(),\n assigneeId: z.string().optional(),\n});\n\nexport type UpdateTicketInput = z.infer<typeof updateTicketSchema>;\n\n// ============================================================================\n// Settings Schemas\n// ============================================================================\n\nexport const platformSettingsSchema = z.object({\n maintenanceMode: z.boolean().default(false),\n allowNewSignups: z.boolean().default(true),\n defaultTenantPlan: tenantPlanSchema.default('Free'),\n maxUsersPerTenant: z.number().int().min(1).max(10000).default(100),\n maxStoragePerTenant: z.number().int().min(1).default(10), // GB\n emailNotifications: z.boolean().default(true),\n slackNotifications: z.boolean().default(false),\n slackWebhookUrl: z.url().optional().or(z.literal('')),\n});\n\nexport type PlatformSettingsInput = z.infer<typeof platformSettingsSchema>;\n"],"mappings":";;AAWA,IAAaS,IAAuB;CAAC;CAAU;CAAa;CAAW;AAAS,GACnEC,IAAqBV,EAAS,GAG9BY,IAAqB;CAChC;CACA;CACA;CACA;CACA;AACF,GACaC,IAAmBb,EAAS,GAG5Bc,IAAuBb,EAAS;CAC3C,aAAaC,EAAU,CAAC,CAAC,QAAQ,EAAI;CACrC,YAAYA,EAAU,CAAC,CAAC,QAAQ,EAAK;CACrC,aAAaA,EAAU,CAAC,CAAC,QAAQ,EAAK;CACtC,mBAAmBC,EAAS,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,QAAQ,GAAG;AACnE,CAAC,GAEYe,IAAqBjB,EAAS;CACzC,MAAMD,EACI,CAAC,CACR,IAAI,GAAG,oCAAoC,CAAC,CAC5C,IAAI,KAAK,uCAAuC;CACnD,MAAMA,EACI,CAAC,CACR,IAAI,GAAG,oCAAoC,CAAC,CAC5C,IAAI,IAAI,sCAAsC,CAAC,CAC/C,MAAM,gBAAgB,+DAA+D;CACxF,QAAQA,EAAS,CAAC,CAAC,SAAS;CAC5B,YAAYI,EAAQ,uBAAuB;CAC3C,cAAcA,EAAQ,uBAAuB,CAAC,CAAC,SAAS;CACxD,MAAMS,EAAiB,QAAQ,M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AU,EAAE,CAAC;AACtD,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { $ZodError as e, flattenError as t, formatError as n } from "../core/errors.js";
2
+ import { $constructor as r } from "../core/core.js";
3
+ import { jsonStringifyReplacer as i } from "../core/util.js";
4
+ // node_modules/zod/v4/classic/errors.js
5
+ var a = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
6
+ function o(e, t, n) {
7
+ Object.defineProperty(e, t, {
8
+ configurable: !0,
9
+ enumerable: !1,
10
+ get() {
11
+ let e = n(this);
12
+ return Object.defineProperty(this, t, {
13
+ value: e,
14
+ configurable: !0,
15
+ writable: !0
16
+ }), e;
17
+ },
18
+ set(e) {
19
+ Object.defineProperty(this, t, {
20
+ value: e,
21
+ configurable: !0,
22
+ writable: !0
23
+ });
24
+ }
25
+ });
26
+ }
27
+ var s = /*@__PURE__*/ r("ZodError", (r, s) => {
28
+ e.init(r, s), r.name = "ZodError";
29
+ let c = Object.getPrototypeOf(r);
30
+ a.has(c) || (a.add(c), o(c, "format", (e) => (t) => n(e, t)), o(c, "flatten", (e) => (n) => t(e, n)), o(c, "addIssue", (e) => (t) => {
31
+ e.issues.push(t), e.message = JSON.stringify(e.issues, i, 2);
32
+ }), o(c, "addIssues", (e) => (t) => {
33
+ e.issues.push(...t), e.message = JSON.stringify(e.issues, i, 2);
34
+ }), Object.defineProperty(c, "isEmpty", {
35
+ configurable: !0,
36
+ enumerable: !1,
37
+ get() {
38
+ return this.issues.length === 0;
39
+ }
40
+ }));
41
+ }, void 0, { Parent: Error });
42
+ export { s as ZodRealError };
43
+
44
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","names":["core.formatError","core.flattenError","util.jsonStringifyReplacer","_installedErrorProtos","_lazyMethod","proto","key","value","make","ZodRealError","$ZodError","inst","issues","formatError","self","mapper","flattenError","issue","jsonStringifyReplacer"],"sources":["../../../../../node_modules/zod/v4/classic/errors.js"],"sourcesContent":["import * as core from \"../core/index.js\";\nimport { $ZodError } from \"../core/index.js\";\nimport * as util from \"../core/util.js\";\n/* Prototypes that already carry the lazy helper methods. Seeded with the\n * intrinsics so that `init` on a foreign object — it accepts any object —\n * can never install an accessor onto a prototype we do not own. */\nconst _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);\n/* Helper methods live as non-enumerable lazy getters on the shared\n * prototype instead of own properties on every instance. On first\n * access the getter allocates the per-instance closure and caches it\n * as a non-enumerable own property, so detached usage still works and\n * the allocation only happens for methods actually touched. */\nfunction _lazyMethod(proto, key, make) {\n Object.defineProperty(proto, key, {\n configurable: true,\n enumerable: false,\n get() {\n const value = make(this);\n Object.defineProperty(this, key, { value, configurable: true, writable: true });\n return value;\n },\n set(value) {\n Object.defineProperty(this, key, { value, configurable: true, writable: true });\n },\n });\n}\nconst initializer = (inst, issues) => {\n $ZodError.init(inst, issues);\n inst.name = \"ZodError\";\n const proto = Object.getPrototypeOf(inst);\n if (_installedErrorProtos.has(proto))\n return;\n _installedErrorProtos.add(proto);\n _lazyMethod(proto, \"format\", (self) => (mapper) => core.formatError(self, mapper));\n _lazyMethod(proto, \"flatten\", (self) => (mapper) => core.flattenError(self, mapper));\n _lazyMethod(proto, \"addIssue\", (self) => (issue) => {\n self.issues.push(issue);\n self.message = JSON.stringify(self.issues, util.jsonStringifyReplacer, 2);\n });\n _lazyMethod(proto, \"addIssues\", (self) => (issues) => {\n self.issues.push(...issues);\n self.message = JSON.stringify(self.issues, util.jsonStringifyReplacer, 2);\n });\n Object.defineProperty(proto, \"isEmpty\", {\n configurable: true,\n enumerable: false,\n get() {\n return this.issues.length === 0;\n },\n });\n};\nexport const ZodError = /*@__PURE__*/ core.$constructor(\"ZodError\", initializer);\nexport const ZodRealError = /*@__PURE__*/ core.$constructor(\"ZodError\", initializer, undefined, {\n Parent: Error,\n});\n// /** @deprecated Use `z.core.$ZodErrorMapCtx` instead. */\n// export type ErrorMapCtx = core.$ZodErrorMapCtx;\n"],"igno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ACZ,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ZodRealError as e } from "./errors.js";
2
+ import { _decode as t, _decodeAsync as n, _encode as r, _encodeAsync as i, _parse as a, _parseAsync as o, _safeDecode as s, _safeDecodeAsync as c, _safeEncode as l, _safeEncodeAsync as u, _safeParse as d, _safeParseAsync as f } from "../core/parse.js";
3
+ // node_modules/zod/v4/classic/parse.js
4
+ var p = /* @__PURE__ */ a(e), m = /* @__PURE__ */ o(e), h = /* @__PURE__ */ d(e), g = /* @__PURE__ */ f(e), _ = /* @__PURE__ */ r(e), v = /* @__PURE__ */ t(e), y = /* @__PURE__ */ i(e), b = /* @__PURE__ */ n(e), x = /* @__PURE__ */ l(e), S = /* @__PURE__ */ s(e), C = /* @__PURE__ */ u(e), w = /* @__PURE__ */ c(e);
5
+ export { v as decode, b as decodeAsync, _ as encode, y as encodeAsync, p as parse, m as parseAsync, S as safeDecode, w as safeDecodeAsync, x as safeEncode, C as safeEncodeAsync, h as safeParse, g as safeParseAsync };
6
+
7
+ //# sourceMappingURL=parse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.js","names":["parse","ZodRealError","parseAsync","safeParse","safeParseAsync","encode","decode","encodeAsync","decodeAsync","safeEncode","safeDecode","safeEncodeAsync","safeDecodeAsync"],"sources":["../../../../../node_modules/zod/v4/classic/parse.js"],"sourcesContent":["import * as core from \"../core/index.js\";\nimport { ZodRealError } from \"./errors.js\";\nexport const parse = /* @__PURE__ */ core._parse(ZodRealError);\nexport const parseAsync = /* @__PURE__ */ core._parseAsync(ZodRealError);\nexport const safeParse = /* @__PURE__ */ core._safeParse(ZodRealError);\nexport const safeParseAsync = /* @__PURE__ */ core._safeParseAsync(ZodRealError);\nexport { validate, validateAsync } from \"../core/index.js\";\n// Codec functions\nexport const encode = /* @__PURE__ */ core._encode(ZodRealError);\nexport const decode = /* @__PURE__ */ core._decode(ZodRealError);\nexport const encodeAsync = /* @__PURE__ */ core._encodeAsync(ZodRealError);\nexport const decodeAsync = /* @__PURE__ */ core._decodeAsync(ZodRealError);\nexport const safeEncode = /* @__PURE__ */ core._safeEncode(ZodRealError);\nexport const safeDecode = /* @__PURE__ */ core._safeDecode(ZodRealError);\nexport const safeEncodeAsync = /* @__PURE__ */ core._safeEncodeAsync(ZodRealError);\nexport const safeDecodeAsync = /* @__PURE__ */ core._safeDecodeAsync(ZodRealError);\n"],"ignoreList":[0],"mappings":";;;AAEA,IAAaA,IAAwB,kBAAYC,CAAY,GAChDC,IAA6B,kBAAiBD,CAAY,GAC1DE,IAA4B,kBAAgBF,CAAY,GACxDG,IAAiC,kBAAqBH,CAAY,GAGlEI,IAAyB,kBAAaJ,CAAY,GAClDK,IAAyB,kBAAaL,CAAY,GAClDM,IAA8B,kBAAkBN,CAAY,GAC5DO,IAA8B,kBAAkBP,CAAY,GAC5DQ,IAA6B,kBAAiBR,CAAY,GAC1DS,IAA6B,kBAAiBT,CAAY,GAC1DU,IAAkC,kBAAsBV,CAAY,GACpEW,IAAkC,kBAAsBX,CAAY"}