fix __dirapi by conf.dirapi
This commit is contained in:
5
adminapi/schema/conf.json
Normal file
5
adminapi/schema/conf.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"schema":"schema/",
|
||||
"objects":[{"name":"nations","lastversion":0},{"name":"paganss","lastversion":0},{"name":"towns","lastversion":0},{"name":"tribes","lastversion":0}],
|
||||
"comment":"schema are in english to get translate part a /lg/schemaname_lg.json allow to replace by lg language the relevant key. Each time a modification is done in schema lastupdate take a timestamp"
|
||||
}
|
19
adminapi/schema/lg/nations_fr.json
Normal file
19
adminapi/schema/lg/nations_fr.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"title": "Description d'une nation",
|
||||
"description":"Nation schema in the apxtrib world",
|
||||
"$comment":"",
|
||||
"properties":{
|
||||
"nationId":{
|
||||
"title":"Nom de nation",
|
||||
"description":"Nom unique idenbtifiant une nation composé de a-z et de 0-9 permet de fereder des règles de fonctionnement"
|
||||
},
|
||||
"dtcreate":{
|
||||
"title":"Date de creation",
|
||||
"description":"Creation de la nation"
|
||||
},
|
||||
"contracts":{
|
||||
"title":"Le contrat social",
|
||||
"description":"Indique l'emplacement du contrat qu'accepte toutes les villes"
|
||||
}
|
||||
}
|
||||
}
|
14
adminapi/schema/lg/pagans_fr.json
Normal file
14
adminapi/schema/lg/pagans_fr.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"title": "L'identité d'un pagan",
|
||||
"description": "Decrit les informations de l'identité numérique public",
|
||||
"properties": {
|
||||
"publickey": {
|
||||
"title": "Clé public associés à l'alias",
|
||||
"description": "Cle public généré par openpgp.js lors de la creation d'un compte"
|
||||
},
|
||||
"alias": {
|
||||
"title": "Alias",
|
||||
"description": "Chaine de texte memnotechnique qui se retiens plus facilement qu'une clé public"
|
||||
}
|
||||
}
|
||||
}
|
15
adminapi/schema/lg/person_fr.json
Normal file
15
adminapi/schema/lg/person_fr.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"title": "Une Personne au niveau d'une tribut avec des informations personnelle",
|
||||
"description": "Un alias peut se stoquer comme un objet Person avec des informations supplémentaire permettant de qualifier son profil",
|
||||
"properties": {
|
||||
"alias": {"title":"Une identité numérique d'apxtrib"},
|
||||
"dt_create": {"title":"Date de creation de cette personne"},
|
||||
"dt_update": { "title":"Date de derniére mise à jour"},
|
||||
"dt_lastlogin": { "title":"Date de derniere authentification" },
|
||||
"dt_close": { "title": "Date de fermeture de compte" },
|
||||
"recoveryauth":{"title":"Information pour recuperer ses codes d'accès"},
|
||||
"biography": {"title":"Description courte"},
|
||||
"imgavatar": {"title":"Url de l'image utilisée comme avatar"},
|
||||
"accessrights": {"title":"Droits d'accès"}
|
||||
}
|
||||
}
|
10
adminapi/schema/lg/recoveryauth_fr.json
Normal file
10
adminapi/schema/lg/recoveryauth_fr.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"title": "Contiens la cle privée avec un email de recovery",
|
||||
"description": "Cs trouve au niveau d'une person (sous la responsabilité d'une tribut et permet pour un alias de recevoir par email une clé privée",
|
||||
"properties":{
|
||||
"email": { "title":"email de recuperation" },
|
||||
"alias": {"title": "Alias qui doit exister comme une Person dans une tribu"},
|
||||
"privatekey": { "title": "Private key link to alias" },
|
||||
"passphrase": {"title":"Passphrase to uncipher privatekey"}
|
||||
}
|
||||
}
|
34
adminapi/schema/nations.json
Normal file
34
adminapi/schema/nations.json
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"$schema":"http://json-schema.org/schema#",
|
||||
"$id":"schema/nations",
|
||||
"title": "Nation definition",
|
||||
"description": "A nation from apXtrib world",
|
||||
"$comment":"see ./lg/nations_lg.json for description in your languange lg",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nationId": {
|
||||
"title":"Unique nation name",
|
||||
"description":"A unique string that define a nation a-z and 0-9 onlyin a social world",
|
||||
"type": "string",
|
||||
"pattern":"^[a-z0-9]*$"
|
||||
},
|
||||
"dtcreate": {
|
||||
"title":"Creation date",
|
||||
"description":"Nation date of creation",
|
||||
"type": "string",
|
||||
"format":"date-time"
|
||||
},
|
||||
"contracts":{
|
||||
"title":"Social contract of the nation",
|
||||
"description":"A uri of the signed js contract that rules this nation",
|
||||
"type": "string",
|
||||
"format":"uri"
|
||||
}
|
||||
},
|
||||
"required": ["nationId", "dtcreate","contracts"],
|
||||
"additionalProperties":false,
|
||||
"apxprimarykey":["nationId"],
|
||||
"apxsearchindex": [
|
||||
{ "key": "nationId", "value": [] }
|
||||
]
|
||||
}
|
29
adminapi/schema/pagans.json
Normal file
29
adminapi/schema/pagans.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"$id": "https://smatchit.io/schema/pagan",
|
||||
"$comment": "To create account bin apxtrib",
|
||||
"title": "Pagans identity",
|
||||
"description": "A numeric id in the nationchains world",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"publickey": {
|
||||
"title": "Alias's publickey",
|
||||
"description": "Public key generate with openpgp.js",
|
||||
"type": "string",
|
||||
"format": "pgpAE256"
|
||||
},
|
||||
"alias": {
|
||||
"title": "Alias",
|
||||
"description": "text to remember easiky a public key",
|
||||
"type": "string",
|
||||
"minLength": 5,
|
||||
"pattern": "^[a-z0-9]*$"
|
||||
}
|
||||
},
|
||||
"required": ["publickey", "alias"],
|
||||
"apxprimarykey": ["alias"],
|
||||
"apxsecondarykey": ["publickey"],
|
||||
"apxsearchindex": [
|
||||
{ "key": "alias", "val": "publickey" },
|
||||
{ "key": "publickey", "val": "alias" }
|
||||
]
|
||||
}
|
85
adminapi/schema/person.json
Executable file
85
adminapi/schema/person.json
Executable file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "/schema/person",
|
||||
"title": "Person minimum definition to link a person to a pagan identity",
|
||||
"description": "A person is a human with a apxtrib identity (Public Private Key. Information stored (not cipher) for a person are only visible from the town's Mayor and the tribe's Druid. You need at least trus the druid that trust the mayor (for sensitive data Mayor and Druid can be the same apx Identity.) Only a pagan that have the privateKey can read cipher data. The purpose of this sschema is to link a person to a tribe and manage basic activities, profil will be a tribe object if need more personnal information",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"alias": {
|
||||
"type": "string",
|
||||
"minLength": 5,
|
||||
"pattern": "^[a-z0-9]*$"
|
||||
},
|
||||
"owner": {
|
||||
"title": "Alias that own this object",
|
||||
"type": "string",
|
||||
"format": "Alias"
|
||||
},
|
||||
"dt_create": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"default": "dayjs.now()"
|
||||
},
|
||||
"dt_update": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"dt_lastlogin": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"dt_close": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"recoveryauth": {
|
||||
"type": "object",
|
||||
"$ref": "schema/recoveryauth.json"
|
||||
},
|
||||
"firstname": {
|
||||
"type": "string"
|
||||
},
|
||||
"lastname": {
|
||||
"type": "string"
|
||||
},
|
||||
"dt_birth":{
|
||||
"type":"string",
|
||||
"format":"date"
|
||||
},
|
||||
"gender":{
|
||||
"type":"string",
|
||||
"enum":[ "M","MME","OTHER"]
|
||||
},
|
||||
"emailcom":{"type":"string","format":"email"},
|
||||
"biography": {
|
||||
"type": "string",
|
||||
"pattern": "^.{O,150}$"
|
||||
},
|
||||
"imgavatar": {
|
||||
"type": "string"
|
||||
},
|
||||
"accessrights": {
|
||||
"title": "Accessright per Object or per Object.key belonging to tribe",
|
||||
"description": "A Person has to exist and want to create read update delete, if Own means if owner = alias of user requested some CRUD action to owner then he can act on this object or object.key List of Object with CRUDO value like {Person:'RUDO',"Person.recoveryauth":'O',...}",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"alias",
|
||||
"accessright"
|
||||
],
|
||||
"apxprimarykey": "alias",
|
||||
"apxunique": [
|
||||
""
|
||||
],
|
||||
"apxsearchindex": [
|
||||
{
|
||||
"key": "alias",
|
||||
"value": []
|
||||
},
|
||||
{
|
||||
"key": "recovery.email",
|
||||
"value": "alias"
|
||||
}
|
||||
]
|
||||
}
|
11
adminapi/schema/recoveryauth.json
Normal file
11
adminapi/schema/recoveryauth.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "/schema/recoveryauth",
|
||||
"title": "Store numeric identity to recover it by email",
|
||||
"description": "This object store numeric identity alias with an email mainly used at Person level to recover by email a private and passphrase key associate to alias",
|
||||
"properties":{
|
||||
"email": { "type": "string", "format": "email" },
|
||||
"alias": {"type": "string", "format":"Pagan"},
|
||||
"privatekey": { "type": "string", "format": "eccCorve25519armored" }
|
||||
}
|
||||
}
|
8
adminapi/schema/recruiter.json
Normal file
8
adminapi/schema/recruiter.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "/schema/person",
|
||||
"title": "Person minimum definition to link a person to a pagan identity",
|
||||
"description": "A person is a human with a apxtrib identity (Public Private Key. Information stored (not cipher) for a person are only visible from the town's Mayor and the tribe's Druid. You need at least trus the druid that trust the mayor (for sensitive data Mayor and Druid can be the same apx Identity.) Only a pagan that have the privateKey can read cipher data. The purpose of this sschema is to link a person to a tribe and manage basic activities, profil will be a tribe object if need more personnal information",
|
||||
"type": "object",
|
||||
"properties": {}
|
||||
}
|
18
adminapi/schema/seeker.json
Normal file
18
adminapi/schema/seeker.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "/schema/seeker",
|
||||
"title": "Data Profil of a person that is in a seek process",
|
||||
"description": "All those data have to store any useffull logistical data and profil about a seeker (skill, ...) ",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"emailseek":{"type":"string","format":"email"},
|
||||
"mainlivinglocation":{"type":"object","$ref":"https://schema.org/PostalAddress"},
|
||||
"secondlivinglocation":{"type":"object","$ref":"https://schema.org/PostalAddress"},
|
||||
"thirdlivinglocation":{"type":"object","$ref":"https://schema.org/PostalAddress"},
|
||||
"fourthlivinglocation":{"type":"object","$ref":"https://schema.org/PostalAddress"},
|
||||
"seekcriterias":{"type":"array","$ref":"schema/seekcriteria.json"},
|
||||
"skills":{"type":"array","$ref":"schema/skills.json"},
|
||||
"educations":{"type":"array","$ref":"schema/educations.json"},
|
||||
"experiences":{"type":"array","$ref":"schema/experiences.json"}
|
||||
}
|
||||
}
|
36
adminapi/schema/towns.json
Normal file
36
adminapi/schema/towns.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "schema/towns",
|
||||
"title": "Town",
|
||||
"description": "A town belonging to a nation from apXtrib world",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"townId": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9]*$"
|
||||
},
|
||||
"nationId": {
|
||||
"type": "string",
|
||||
"$apxenumkey": "socialworld/objects/nations/searchindex/nations_uuid_uuid.json"
|
||||
},
|
||||
"mayorId": {
|
||||
"type": "string",
|
||||
"$apxenumkey": "socialworld/objects/nations/searchindex/nations_uuid_uuid.json"
|
||||
},
|
||||
"status": {
|
||||
"default": "active",
|
||||
"type": "string",
|
||||
"enum":["chain","unchain","tochain"]
|
||||
},
|
||||
"dns": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["townId", "status", "nationId", "dns"],
|
||||
"apxprimarykey": "townId",
|
||||
"apxsearchindex": [
|
||||
{ "key": "status", "value": "townId" },
|
||||
{ "key": "nationId", "value": "townId" },
|
||||
{ "key": "townId", "value": [] }
|
||||
]
|
||||
}
|
36
adminapi/schema/tribes.json
Normal file
36
adminapi/schema/tribes.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "nationchains/schema/tribes",
|
||||
"title": "Tribes",
|
||||
"description": "A tribe belonging to a town",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tribeId":{
|
||||
"type":"string",
|
||||
"pattern":"^[a-z0-9]*$"
|
||||
},
|
||||
"townId": {
|
||||
"type": "string",
|
||||
"$ref": "nationchains/towns/idx/towns_uuid_uuid.json"
|
||||
},
|
||||
"nationId": {
|
||||
"type": "string",
|
||||
"$ref": "nationchains/nations/idx/nations_uuid_uuid.json"
|
||||
},
|
||||
"druidId": {
|
||||
"type": "string",
|
||||
"$ref": "nationchains/pagans/idx/alias_all.json"
|
||||
},
|
||||
"dns": {
|
||||
"type": "array",
|
||||
"items":{"type":"string", "uniqueItems":true}
|
||||
|
||||
}
|
||||
},
|
||||
"required": ["townId", "status", "nationId", "dns"],
|
||||
"apxprimarykey": ["tribeId"],
|
||||
"apxsearchindex": [
|
||||
{ "key": "status", "value": "tribeId" },
|
||||
{ "key": "tribeId", "value": [] }
|
||||
]
|
||||
}
|
45
adminapi/schema/www.json
Normal file
45
adminapi/schema/www.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "nationchains/schema/www",
|
||||
"title": "Town",
|
||||
"description": "A pace web available for a domaine, with accessright",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"townId": {
|
||||
"description": "|Towns|townnamedesc",
|
||||
"desclong": "|Townss|townnamedesclong",
|
||||
"info": "|Towns|townnameinfo",
|
||||
"type": "string",
|
||||
"pattern":"^[a-z0-9]*$"
|
||||
},
|
||||
"nationId": {
|
||||
"description": "|Towns|nationdesc",
|
||||
"desclong": "|Townss|nationdesclong",
|
||||
"type": "string",
|
||||
"$apxenumkey": "socialworld/objects/nations/searchindex/nations_uuid_uuid.json"
|
||||
},
|
||||
"status": {
|
||||
"desc": "|Towns|statusdesc",
|
||||
"default": "active",
|
||||
"type": "string",
|
||||
"$apxenumkey": "data",
|
||||
"data": {
|
||||
"chain": { "desc": "|Towns|statuschain" },
|
||||
"tochain": { "desc": "|Towns|statustosync" },
|
||||
"unchain": { "desc": "|Towns|statusunchain" }
|
||||
}
|
||||
},
|
||||
"url": {
|
||||
"desc": "|Towns|urldesc",
|
||||
"type": "string",
|
||||
"apxtype":"url"
|
||||
}
|
||||
},
|
||||
"required": ["townId", "status", "nationId", "url"],
|
||||
"apxprimarykey": "townId",
|
||||
"apxsearchindex": [
|
||||
{ "key": "status", "value": "townId" },
|
||||
{ "key": "nationId", "value": "townId" },
|
||||
{ "key": "townId", "value": [] }
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user