@friggframework/schemas 2.0.0--canary.685.a13fdab.0 → 2.0.0--canary.686.219e1e7.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friggframework/schemas",
|
|
3
|
-
"version": "2.0.0--canary.
|
|
3
|
+
"version": "2.0.0--canary.686.219e1e7.0",
|
|
4
4
|
"description": "Canonical JSON Schema definitions for Frigg Framework",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"middleware/",
|
|
42
42
|
"index.js"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "219e1e7c2a387b3ddf1fa20ca10d0b87093bd38e"
|
|
45
45
|
}
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
},
|
|
17
17
|
"provider": {
|
|
18
18
|
"type": "string",
|
|
19
|
-
"description": "
|
|
20
|
-
"enum": ["aws"],
|
|
19
|
+
"description": "Deployment provider. Determines which @friggframework/provider-{name} package handles config generation and deploy. Built-in providers: 'aws' (default, serverless/Lambda), 'netlify' (Netlify Functions).",
|
|
20
|
+
"enum": ["aws", "netlify"],
|
|
21
21
|
"default": "aws"
|
|
22
22
|
},
|
|
23
23
|
"label": {
|
|
@@ -933,6 +933,61 @@
|
|
|
933
933
|
}
|
|
934
934
|
},
|
|
935
935
|
"additionalProperties": true
|
|
936
|
+
},
|
|
937
|
+
"extensions": {
|
|
938
|
+
"type": "array",
|
|
939
|
+
"description": "Extensions that add custom Prisma models, encrypted fields, admin routes, and bootstrap lifecycle hooks to a Frigg app. Each extension can declare a schema fragment, encryption config, route handler, and bootstrap function. App-level; distinct from an integration's Definition.extensions (Tier 3 integration extensions).",
|
|
940
|
+
"items": {
|
|
941
|
+
"type": "object",
|
|
942
|
+
"required": ["name"],
|
|
943
|
+
"properties": {
|
|
944
|
+
"name": {
|
|
945
|
+
"type": "string",
|
|
946
|
+
"description": "Unique identifier for this extension",
|
|
947
|
+
"minLength": 1,
|
|
948
|
+
"examples": ["db-credentials", "audit-log"]
|
|
949
|
+
},
|
|
950
|
+
"schema": {
|
|
951
|
+
"type": "string",
|
|
952
|
+
"description": "Absolute path to a .prisma schema fragment. Models/enums from this file are composed into the main Prisma schema at build time.",
|
|
953
|
+
"pattern": "\\.prisma$"
|
|
954
|
+
},
|
|
955
|
+
"encryption": {
|
|
956
|
+
"type": "object",
|
|
957
|
+
"description": "Encryption schema additions. Maps model names to arrays of field paths that should be encrypted at rest.",
|
|
958
|
+
"patternProperties": {
|
|
959
|
+
"^[A-Z][a-zA-Z0-9]*$": {
|
|
960
|
+
"type": "object",
|
|
961
|
+
"required": ["fields"],
|
|
962
|
+
"properties": {
|
|
963
|
+
"fields": {
|
|
964
|
+
"type": "array",
|
|
965
|
+
"items": { "type": "string" },
|
|
966
|
+
"minItems": 1
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"additionalProperties": false
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
"additionalProperties": false
|
|
973
|
+
},
|
|
974
|
+
"routes": {
|
|
975
|
+
"type": "object",
|
|
976
|
+
"description": "Express router to mount on the app. The handler factory receives (prisma, appDefinition) and returns an Express Router. Routes are protected by admin auth middleware.",
|
|
977
|
+
"required": ["path"],
|
|
978
|
+
"properties": {
|
|
979
|
+
"path": {
|
|
980
|
+
"type": "string",
|
|
981
|
+
"description": "Base URL path for the extension routes",
|
|
982
|
+
"pattern": "^/",
|
|
983
|
+
"examples": ["/api/admin/oauth-credentials"]
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
"additionalProperties": true
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
"additionalProperties": true
|
|
990
|
+
}
|
|
936
991
|
}
|
|
937
992
|
},
|
|
938
993
|
"additionalProperties": false,
|