check in lexicons

This commit is contained in:
Samuel Newman
2025-04-30 21:15:55 +03:00
parent 727a696970
commit d5b5b21617
259 changed files with 13100 additions and 0 deletions
@@ -0,0 +1,49 @@
{
"lexicon": 1,
"id": "tools.ozone.communication.createTemplate",
"defs": {
"main": {
"type": "procedure",
"description": "Administrative action to create a new, re-usable communication (email for now) template.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["subject", "contentMarkdown", "name"],
"properties": {
"name": {
"type": "string",
"description": "Name of the template."
},
"contentMarkdown": {
"type": "string",
"description": "Content of the template, markdown supported, can contain variable placeholders."
},
"subject": {
"type": "string",
"description": "Subject of the message, used in emails."
},
"lang": {
"type": "string",
"format": "language",
"description": "Message language."
},
"createdBy": {
"type": "string",
"format": "did",
"description": "DID of the user who is creating the template."
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "ref",
"ref": "tools.ozone.communication.defs#templateView"
}
},
"errors": [{ "name": "DuplicateTemplateName" }]
}
}
}
@@ -0,0 +1,43 @@
{
"lexicon": 1,
"id": "tools.ozone.communication.defs",
"defs": {
"templateView": {
"type": "object",
"required": [
"id",
"name",
"contentMarkdown",
"disabled",
"lastUpdatedBy",
"createdAt",
"updatedAt"
],
"properties": {
"id": { "type": "string" },
"name": { "type": "string", "description": "Name of the template." },
"subject": {
"type": "string",
"description": "Content of the template, can contain markdown and variable placeholders."
},
"contentMarkdown": {
"type": "string",
"description": "Subject of the message, used in emails."
},
"disabled": { "type": "boolean" },
"lang": {
"type": "string",
"format": "language",
"description": "Message language."
},
"lastUpdatedBy": {
"type": "string",
"format": "did",
"description": "DID of the user who last updated the template."
},
"createdAt": { "type": "string", "format": "datetime" },
"updatedAt": { "type": "string", "format": "datetime" }
}
}
}
}
@@ -0,0 +1,20 @@
{
"lexicon": 1,
"id": "tools.ozone.communication.deleteTemplate",
"defs": {
"main": {
"type": "procedure",
"description": "Delete a communication template.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["id"],
"properties": {
"id": { "type": "string" }
}
}
}
}
}
}
@@ -0,0 +1,26 @@
{
"lexicon": 1,
"id": "tools.ozone.communication.listTemplates",
"defs": {
"main": {
"type": "query",
"description": "Get list of all communication templates.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["communicationTemplates"],
"properties": {
"communicationTemplates": {
"type": "array",
"items": {
"type": "ref",
"ref": "tools.ozone.communication.defs#templateView"
}
}
}
}
}
}
}
}
@@ -0,0 +1,56 @@
{
"lexicon": 1,
"id": "tools.ozone.communication.updateTemplate",
"defs": {
"main": {
"type": "procedure",
"description": "Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["id"],
"properties": {
"id": {
"type": "string",
"description": "ID of the template to be updated."
},
"name": {
"type": "string",
"description": "Name of the template."
},
"lang": {
"type": "string",
"format": "language",
"description": "Message language."
},
"contentMarkdown": {
"type": "string",
"description": "Content of the template, markdown supported, can contain variable placeholders."
},
"subject": {
"type": "string",
"description": "Subject of the message, used in emails."
},
"updatedBy": {
"type": "string",
"format": "did",
"description": "DID of the user who is updating the template."
},
"disabled": {
"type": "boolean"
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "ref",
"ref": "tools.ozone.communication.defs#templateView"
}
},
"errors": [{ "name": "DuplicateTemplateName" }]
}
}
}