From 79a1798a67e962fafd1d01f59770a16f9d95b807 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Thu, 5 Nov 2026 23:19:33 +0330 Subject: [PATCH] last update ... --- Documents/Resources/Json/Requests.md | 594 +++++++++++++-------------- Modules/xAiService | 2 +- Modules/xIdentityService | 2 +- xAiApi | 2 +- xAiMcpServer | 2 +- xApi | 2 +- xIds | 2 +- 7 files changed, 303 insertions(+), 303 deletions(-) diff --git a/Documents/Resources/Json/Requests.md b/Documents/Resources/Json/Requests.md index b79c8a0..aa19b81 100644 --- a/Documents/Resources/Json/Requests.md +++ b/Documents/Resources/Json/Requests.md @@ -6,8 +6,8 @@ Request: ```json { - "password": "s@H@1694056", - "userSelectBy": "admin" + "password": "s@H@1694056", + "userSelectBy": "admin" } ``` @@ -15,9 +15,9 @@ Response: ```json { - "accessToken": "A6590CF564437A98E8F74C72E8F2EBDD8ECCFFB345D23AAC47784350E61A0140", - "refreshToken": "C2A8FEBCCFF737397F83F2A76CF8511EF323C7F1F4733AB882B66D51AEDFB733", - "expiresAt": 1793628969 + "accessToken": "D1A26228AA59CBD5D7E6705FFB2DF9003B630DFF87C33FD6871FB236B471712A", + "refreshToken": "4BECF35FFC67D67B859E6239EF2EE24EB2C74FED7E3C91ADAE6EF884C79CD15B", + "expiresAt": 1793908550 } ``` @@ -43,12 +43,12 @@ Response: ```json { - "sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d", - "filesCount": 9, - "chunksCount": 208, - "totalVectorsCount": 208, - "skippedFiles": [], - "expiresAtUtc": "2026-11-02T13:48:15.7779591Z" + "sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d", + "filesCount": 9, + "chunksCount": 208, + "totalVectorsCount": 208, + "skippedFiles": [], + "expiresAtUtc": "2026-11-02T13:48:15.7779591Z" } ``` @@ -58,10 +58,10 @@ Request: ```json { - "sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d", - "prompt": "give me an overview of an ai system architecture", - "topK": 5, - "minScore": 0.35 + "sessionId": "36e4d6e4-768f-4622-90d7-f79af449df9d", + "prompt": "give me an overview of an ai system architecture", + "topK": 5, + "minScore": 0.35 } ``` @@ -85,106 +85,106 @@ Response: ```json [ - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "1-ParsaPolimer-RFP-Analythic.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 18, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "2-ParsaPolimer-BigArchitecture.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 21, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "3-ParsaPolimer-BPMN2.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 9, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "4-ParsaPolimer-Roadmap.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 28, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "5-RoadmapSH.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 24, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "6-ParsaPolimer-TechnicalRoadmap.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 28, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "AI Proposal 1.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 26, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "AI Proposal 2.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 28, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "AI Proposal 3.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 26, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - }, - { - "scope": 2, - "scopeId": null, - "type": "XAiKnowledge", - "fileName": "AirLLM-Document.html", - "mimeType": "text/html", - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "chunksCount": 8, - "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" - } + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "1-ParsaPolimer-RFP-Analythic.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 18, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "2-ParsaPolimer-BigArchitecture.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 21, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "3-ParsaPolimer-BPMN2.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 9, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "4-ParsaPolimer-Roadmap.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 28, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "5-RoadmapSH.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 24, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "6-ParsaPolimer-TechnicalRoadmap.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 28, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "AI Proposal 1.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 26, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "AI Proposal 2.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 28, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "AI Proposal 3.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 26, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + }, + { + "scope": 2, + "scopeId": null, + "type": "XAiKnowledge", + "fileName": "AirLLM-Document.html", + "mimeType": "text/html", + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "chunksCount": 8, + "ingestedAtUtc": "2026-11-02T05:48:59.5176187Z" + } ] ``` @@ -196,14 +196,14 @@ Request: ```json { - "scope": 1, - "headers": "", - "enabled": true, - "timeoutSeconds": 30, - "name": "XAiMcpServer", - "environmentVariables": "", - "description": "a Simple MCP Server ...", - "endpoint": "https://localhost:7001/mcp" + "scope": 1, + "headers": "", + "enabled": true, + "timeoutSeconds": 30, + "name": "XAiMcpServer", + "environmentVariables": "", + "description": "a Simple MCP Server ...", + "endpoint": "https://localhost:7001/mcp" } ``` @@ -211,26 +211,26 @@ Response: ```json { - "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "owner": { - "avatar": null, - "userId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", - "username": "admin", - "lastname": "Khazaee Asl", - "firstname": "Hadi" - }, - "scope": 1, - "name": "XAiMcpServer", - "description": "a Simple MCP Server ...", - "enabled": true, - "environmentVariables": "", - "endpoint": "https://localhost:7001/mcp", - "headers": "", - "timeoutSeconds": 30, - "createdOn": "2026-11-05T09:30:12.3783202Z", - "updatedAt": "0001-01-01T00:00:00", - "id": "fc583f76-ae11-4f63-8d4c-72927345e4e4", - "deleted": false + "ownerId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "owner": { + "avatar": null, + "userId": "b5713f9f-34f4-49b2-9680-b71e2b2de969", + "username": "admin", + "lastname": "Khazaee Asl", + "firstname": "Hadi" + }, + "scope": 1, + "name": "XAiMcpServer", + "description": "a Simple MCP Server ...", + "enabled": true, + "environmentVariables": "", + "endpoint": "https://localhost:7001/mcp", + "headers": "", + "timeoutSeconds": 30, + "createdOn": "2026-11-05T09:30:12.3783202Z", + "updatedAt": "0001-01-01T00:00:00", + "id": "fc583f76-ae11-4f63-8d4c-72927345e4e4", + "deleted": false } ``` @@ -242,10 +242,10 @@ Request: ```json { - "jsonrpc": "2.0", - "id": 2, - "method": "tools/list", - "params": {} + "jsonrpc": "2.0", + "id": 2, + "method": "tools/list", + "params": {} } ``` @@ -253,155 +253,155 @@ Response: ```json { - "jsonrpc": "2.0", - "id": 2, - "result": { - "tools": [ - { - "name": "GetCurrentDateTime", - "description": "Get the CURRENT date and time right now. Use this tool whenever the user asks about 'today', 'now', 'current date', 'current time', or when you need the current date/time for any relative calculation (like 'three days ago', 'next week', 'how many days until...'). Returns Gregorian, Persian (Jalali), day-of-week, and Unix timestamp.", - "inputSchema": { - "type": "object", - "required": [], - "properties": { - "timezone": { - "type": "string", - "description": "Optional IANA timezone (e.g. 'Asia/Tehran', 'UTC', 'Europe/London'). Defaults to 'Asia/Tehran'." - } - } - } - }, - { - "name": "DetectDates", - "description": "Detect and extract all date-like patterns from a free text. Supports Gregorian (2024-11-05), Persian (1403/08/15), Hijri (1446/05/03), ISO 8601, and month-name forms.", - "inputSchema": { - "type": "object", - "required": ["text"], - "properties": { - "text": { - "type": "string", - "description": "Free text that may contain dates." - }, - "calendarHint": { - "type": "string", - "description": "Optional: hint for the primary calendar (Gregorian, Persian, Hijri). Leave empty for auto-detection." - } - } - } - }, - { - "name": "ParseDate", - "description": "Parse a single date string. Returns the detected calendar, plus normalized Gregorian (ISO 8601), Persian, Hijri representations, and Unix timestamp.", - "inputSchema": { - "type": "object", - "required": ["date"], - "properties": { - "date": { - "type": "string", - "description": "Date string like '1403/08/15' or '2024-11-05'." - }, - "calendarHint": { - "type": "string", - "description": "Optional: calendar hint (Gregorian, Persian, Hijri). Leave empty for auto-detect." - } - } - } - }, - { - "name": "ConvertDate", - "description": "Convert a date from one calendar to another. Supported calendars: Gregorian, Persian (Jalali/Shamsi), Hijri (Islamic).", - "inputSchema": { - "type": "object", - "required": ["date", "fromCalendar", "toCalendar"], - "properties": { - "date": { - "type": "string", - "description": "Date string in the source calendar." - }, - "fromCalendar": { - "type": "string", - "description": "Source calendar: Gregorian, Persian, or Hijri." - }, - "toCalendar": { - "type": "string", - "description": "Target calendar: Gregorian, Persian, or Hijri." - } - } - } - }, - { - "name": "DateDifference", - "description": "Calculate the difference between two dates. Returns total days, and a breakdown into years/months/days.", - "inputSchema": { - "type": "object", - "required": ["date1", "date2"], - "properties": { - "date1": { - "type": "string", - "description": "First date string." - }, - "date2": { - "type": "string", - "description": "Second date string." - }, - "calendarHint": { - "type": "string", - "description": "Optional: calendar hint for both dates." - } - } - } - }, - { - "name": "ToUnixTimestamp", - "description": "Convert a date string to Unix timestamp (seconds since 1970-01-01 UTC).", - "inputSchema": { - "type": "object", - "required": ["date"], - "properties": { - "date": { - "type": "string", - "description": "Date string." - }, - "calendarHint": { - "type": "string", - "description": "Optional: calendar hint (Gregorian, Persian, Hijri)." - } - } - } - }, - { - "name": "FromUnixTimestamp", - "description": "Convert a Unix timestamp (seconds since 1970-01-01 UTC) back to a date string in the specified calendar.", - "inputSchema": { - "type": "object", - "required": ["timestamp"], - "properties": { - "timestamp": { - "type": "integer", - "description": "Unix timestamp in seconds." - }, - "targetCalendar": { - "type": "string", - "description": "Optional: target calendar (Gregorian, Persian, Hijri). Defaults to Gregorian." - } - } - } - }, - { - "name": "Echo", - "description": "Echoes the string back to the client give message in string", - "inputSchema": { - "type": "object", - "required": ["message"], - "properties": { - "message": { - "type": "string", - "description": "string value which specified message" - } - } - } - } - ] - } + "jsonrpc": "2.0", + "id": 2, + "result": { + "tools": [ + { + "name": "GetCurrentDateTime", + "description": "Get the CURRENT date and time right now. Use this tool whenever the user asks about 'today', 'now', 'current date', 'current time', or when you need the current date/time for any relative calculation (like 'three days ago', 'next week', 'how many days until...'). Returns Gregorian, Persian (Jalali), day-of-week, and Unix timestamp.", + "inputSchema": { + "type": "object", + "required": [], + "properties": { + "timezone": { + "type": "string", + "description": "Optional IANA timezone (e.g. 'Asia/Tehran', 'UTC', 'Europe/London'). Defaults to 'Asia/Tehran'." + } + } + } + }, + { + "name": "DetectDates", + "description": "Detect and extract all date-like patterns from a free text. Supports Gregorian (2024-11-05), Persian (1403/08/15), Hijri (1446/05/03), ISO 8601, and month-name forms.", + "inputSchema": { + "type": "object", + "required": ["text"], + "properties": { + "text": { + "type": "string", + "description": "Free text that may contain dates." + }, + "calendarHint": { + "type": "string", + "description": "Optional: hint for the primary calendar (Gregorian, Persian, Hijri). Leave empty for auto-detection." + } + } + } + }, + { + "name": "ParseDate", + "description": "Parse a single date string. Returns the detected calendar, plus normalized Gregorian (ISO 8601), Persian, Hijri representations, and Unix timestamp.", + "inputSchema": { + "type": "object", + "required": ["date"], + "properties": { + "date": { + "type": "string", + "description": "Date string like '1403/08/15' or '2024-11-05'." + }, + "calendarHint": { + "type": "string", + "description": "Optional: calendar hint (Gregorian, Persian, Hijri). Leave empty for auto-detect." + } + } + } + }, + { + "name": "ConvertDate", + "description": "Convert a date from one calendar to another. Supported calendars: Gregorian, Persian (Jalali/Shamsi), Hijri (Islamic).", + "inputSchema": { + "type": "object", + "required": ["date", "fromCalendar", "toCalendar"], + "properties": { + "date": { + "type": "string", + "description": "Date string in the source calendar." + }, + "fromCalendar": { + "type": "string", + "description": "Source calendar: Gregorian, Persian, or Hijri." + }, + "toCalendar": { + "type": "string", + "description": "Target calendar: Gregorian, Persian, or Hijri." + } + } + } + }, + { + "name": "DateDifference", + "description": "Calculate the difference between two dates. Returns total days, and a breakdown into years/months/days.", + "inputSchema": { + "type": "object", + "required": ["date1", "date2"], + "properties": { + "date1": { + "type": "string", + "description": "First date string." + }, + "date2": { + "type": "string", + "description": "Second date string." + }, + "calendarHint": { + "type": "string", + "description": "Optional: calendar hint for both dates." + } + } + } + }, + { + "name": "ToUnixTimestamp", + "description": "Convert a date string to Unix timestamp (seconds since 1970-01-01 UTC).", + "inputSchema": { + "type": "object", + "required": ["date"], + "properties": { + "date": { + "type": "string", + "description": "Date string." + }, + "calendarHint": { + "type": "string", + "description": "Optional: calendar hint (Gregorian, Persian, Hijri)." + } + } + } + }, + { + "name": "FromUnixTimestamp", + "description": "Convert a Unix timestamp (seconds since 1970-01-01 UTC) back to a date string in the specified calendar.", + "inputSchema": { + "type": "object", + "required": ["timestamp"], + "properties": { + "timestamp": { + "type": "integer", + "description": "Unix timestamp in seconds." + }, + "targetCalendar": { + "type": "string", + "description": "Optional: target calendar (Gregorian, Persian, Hijri). Defaults to Gregorian." + } + } + } + }, + { + "name": "Echo", + "description": "Echoes the string back to the client give message in string", + "inputSchema": { + "type": "object", + "required": ["message"], + "properties": { + "message": { + "type": "string", + "description": "string value which specified message" + } + } + } + } + ] + } } ``` diff --git a/Modules/xAiService b/Modules/xAiService index 357bf22..fafc983 160000 --- a/Modules/xAiService +++ b/Modules/xAiService @@ -1 +1 @@ -Subproject commit 357bf221faa39ffd9bee9e613753f178387e78d0 +Subproject commit fafc9836a22aa747c645dce6f54285337272e6ae diff --git a/Modules/xIdentityService b/Modules/xIdentityService index 6888c73..dc34e0f 160000 --- a/Modules/xIdentityService +++ b/Modules/xIdentityService @@ -1 +1 @@ -Subproject commit 6888c73fb8a35c2d72d3908c12e07795a66bd90b +Subproject commit dc34e0f8097a23be6cd4f8b7eb61979678530835 diff --git a/xAiApi b/xAiApi index ae7f592..5307fe4 160000 --- a/xAiApi +++ b/xAiApi @@ -1 +1 @@ -Subproject commit ae7f5920c18c91f1030d884b7635d604e39678d6 +Subproject commit 5307fe4d2f566797d9fed59b0acc2e20b81c6421 diff --git a/xAiMcpServer b/xAiMcpServer index 9b82aca..2c9b10f 160000 --- a/xAiMcpServer +++ b/xAiMcpServer @@ -1 +1 @@ -Subproject commit 9b82acaf550bf9961065ffc8f5fd53db0c2db2f5 +Subproject commit 2c9b10f643bb163e40b48cf59641b7d5d43663bf diff --git a/xApi b/xApi index 30a54fa..8bbd05d 160000 --- a/xApi +++ b/xApi @@ -1 +1 @@ -Subproject commit 30a54fac8b5214f5f15c3c92be8025eb0ac6ba34 +Subproject commit 8bbd05d2c0c1c84c9605c98496495ea519e8bf5d diff --git a/xIds b/xIds index 3b099a3..73a59f9 160000 --- a/xIds +++ b/xIds @@ -1 +1 @@ -Subproject commit 3b099a308981f71aac6f1235a5b7c3fec5e8803d +Subproject commit 73a59f9181222be0ac40667aa0626ca68a35f630