@nextsparkjs/core 0.1.0-beta.103 → 0.1.0-beta.104

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.
@@ -1 +1 @@
1
- {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/lib/permissions/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBA6GrC,CAAA"}
1
+ {"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../src/lib/permissions/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAEpD;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,EAAE,qBAqJrC,CAAA"}
@@ -64,6 +64,36 @@ const CORE_PERMISSIONS_CONFIG = {
64
64
  description: "Can connect and configure external integrations",
65
65
  category: "Settings",
66
66
  roles: ["owner", "admin"]
67
+ },
68
+ // Media Library
69
+ {
70
+ id: "media.read",
71
+ label: "View Media",
72
+ description: "Can browse and view media files in the library",
73
+ category: "Media",
74
+ roles: ["owner", "admin", "member", "viewer"]
75
+ },
76
+ {
77
+ id: "media.upload",
78
+ label: "Upload Media",
79
+ description: "Can upload images, videos, and other media files",
80
+ category: "Media",
81
+ roles: ["owner", "admin", "member"]
82
+ },
83
+ {
84
+ id: "media.update",
85
+ label: "Edit Media",
86
+ description: "Can edit media metadata, tags, and captions",
87
+ category: "Media",
88
+ roles: ["owner", "admin"]
89
+ },
90
+ {
91
+ id: "media.delete",
92
+ label: "Delete Media",
93
+ description: "Can permanently delete media files",
94
+ category: "Media",
95
+ roles: ["owner", "admin"],
96
+ dangerous: true
67
97
  }
68
98
  ],
69
99
  /**
@@ -78,7 +108,10 @@ const CORE_PERMISSIONS_CONFIG = {
78
108
  "teams.change_roles",
79
109
  "teams.settings",
80
110
  "settings.api_keys",
81
- "settings.integrations"
111
+ "settings.integrations",
112
+ "media.read",
113
+ "media.upload",
114
+ "media.update"
82
115
  ],
83
116
  member: [],
84
117
  // Permissions come from entity configs
@@ -99,6 +132,12 @@ const CORE_PERMISSIONS_CONFIG = {
99
132
  label: "Settings",
100
133
  categories: ["Settings"]
101
134
  },
135
+ {
136
+ id: "media",
137
+ label: "Media",
138
+ description: "Media library management",
139
+ categories: ["Media"]
140
+ },
102
141
  {
103
142
  id: "entities",
104
143
  label: "Entities",
@@ -1,5 +1,5 @@
1
1
  {
2
- "generated": "2026-02-19T13:38:18.496Z",
2
+ "generated": "2026-02-24T02:27:03.923Z",
3
3
  "totalClasses": 1071,
4
4
  "classes": [
5
5
  "!text-2xl",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/core",
3
- "version": "0.1.0-beta.103",
3
+ "version": "0.1.0-beta.104",
4
4
  "description": "NextSpark - The complete SaaS framework for Next.js",
5
5
  "license": "MIT",
6
6
  "author": "NextSpark <hello@nextspark.dev>",
@@ -453,7 +453,7 @@
453
453
  "tailwind-merge": "^3.3.1",
454
454
  "uuid": "^13.0.0",
455
455
  "zod": "^4.1.5",
456
- "@nextsparkjs/testing": "0.1.0-beta.103"
456
+ "@nextsparkjs/testing": "0.1.0-beta.104"
457
457
  },
458
458
  "scripts": {
459
459
  "postinstall": "node scripts/postinstall.mjs || true",