|
|
@@ -7062,6 +7062,96 @@
|
|
|
},
|
|
|
"required": ["type", "properties"]
|
|
|
},
|
|
|
+ "PermissionRequest": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "id": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^per.*"
|
|
|
+ },
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses.*"
|
|
|
+ },
|
|
|
+ "permission": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "patterns": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "metadata": {
|
|
|
+ "type": "object",
|
|
|
+ "propertyNames": {
|
|
|
+ "type": "string"
|
|
|
+ },
|
|
|
+ "additionalProperties": {}
|
|
|
+ },
|
|
|
+ "always": {
|
|
|
+ "type": "array",
|
|
|
+ "items": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "tool": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "messageID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^msg.*"
|
|
|
+ },
|
|
|
+ "callID": {
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["messageID", "callID"]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"]
|
|
|
+ },
|
|
|
+ "Event.permission.asked": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "const": "permission.asked"
|
|
|
+ },
|
|
|
+ "properties": {
|
|
|
+ "$ref": "#/components/schemas/PermissionRequest"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["type", "properties"]
|
|
|
+ },
|
|
|
+ "Event.permission.replied": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "type": {
|
|
|
+ "type": "string",
|
|
|
+ "const": "permission.replied"
|
|
|
+ },
|
|
|
+ "properties": {
|
|
|
+ "type": "object",
|
|
|
+ "properties": {
|
|
|
+ "sessionID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^ses.*"
|
|
|
+ },
|
|
|
+ "requestID": {
|
|
|
+ "type": "string",
|
|
|
+ "pattern": "^per.*"
|
|
|
+ },
|
|
|
+ "reply": {
|
|
|
+ "type": "string",
|
|
|
+ "enum": ["once", "always", "reject"]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["sessionID", "requestID", "reply"]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "required": ["type", "properties"]
|
|
|
+ },
|
|
|
"QuestionOption": {
|
|
|
"type": "object",
|
|
|
"properties": {
|
|
|
@@ -8670,96 +8760,6 @@
|
|
|
},
|
|
|
"required": ["type", "properties"]
|
|
|
},
|
|
|
- "PermissionRequest": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "id": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^per.*"
|
|
|
- },
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses.*"
|
|
|
- },
|
|
|
- "permission": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "patterns": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "metadata": {
|
|
|
- "type": "object",
|
|
|
- "propertyNames": {
|
|
|
- "type": "string"
|
|
|
- },
|
|
|
- "additionalProperties": {}
|
|
|
- },
|
|
|
- "always": {
|
|
|
- "type": "array",
|
|
|
- "items": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "tool": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "messageID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^msg.*"
|
|
|
- },
|
|
|
- "callID": {
|
|
|
- "type": "string"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["messageID", "callID"]
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["id", "sessionID", "permission", "patterns", "metadata", "always"]
|
|
|
- },
|
|
|
- "Event.permission.asked": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "const": "permission.asked"
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "$ref": "#/components/schemas/PermissionRequest"
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["type", "properties"]
|
|
|
- },
|
|
|
- "Event.permission.replied": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "type": {
|
|
|
- "type": "string",
|
|
|
- "const": "permission.replied"
|
|
|
- },
|
|
|
- "properties": {
|
|
|
- "type": "object",
|
|
|
- "properties": {
|
|
|
- "sessionID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^ses.*"
|
|
|
- },
|
|
|
- "requestID": {
|
|
|
- "type": "string",
|
|
|
- "pattern": "^per.*"
|
|
|
- },
|
|
|
- "reply": {
|
|
|
- "type": "string",
|
|
|
- "enum": ["once", "always", "reject"]
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["sessionID", "requestID", "reply"]
|
|
|
- }
|
|
|
- },
|
|
|
- "required": ["type", "properties"]
|
|
|
- },
|
|
|
"SessionStatus": {
|
|
|
"anyOf": [
|
|
|
{
|
|
|
@@ -9611,6 +9611,12 @@
|
|
|
{
|
|
|
"$ref": "#/components/schemas/Event.server.instance.disposed"
|
|
|
},
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/Event.permission.asked"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "$ref": "#/components/schemas/Event.permission.replied"
|
|
|
+ },
|
|
|
{
|
|
|
"$ref": "#/components/schemas/Event.question.asked"
|
|
|
},
|
|
|
@@ -9650,12 +9656,6 @@
|
|
|
{
|
|
|
"$ref": "#/components/schemas/Event.message.part.removed"
|
|
|
},
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/Event.permission.asked"
|
|
|
- },
|
|
|
- {
|
|
|
- "$ref": "#/components/schemas/Event.permission.replied"
|
|
|
- },
|
|
|
{
|
|
|
"$ref": "#/components/schemas/Event.session.status"
|
|
|
},
|