@snokam/mcp-api 0.139.0 → 0.140.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": "@snokam/mcp-api",
3
- "version": "0.139.0",
3
+ "version": "0.140.0",
4
4
  "description": "MCP server exposing Snokam backend APIs as tools for Claude Code and other MCP clients",
5
5
  "type": "module",
6
6
  "bin": {
@@ -712,6 +712,48 @@
712
712
  ]
713
713
  }
714
714
  },
715
+ "/v1.0/protected/realtime/usage-report": {
716
+ "post": {
717
+ "tags": [
718
+ "Realtime"
719
+ ],
720
+ "summary": "Report token usage for a realtime session",
721
+ "description": "Records cumulative token totals streamed to the client by the realtime API. Reports are validated against the session registry; unknown, expired or already-recorded reports are acknowledged without recording.",
722
+ "operationId": "ReportRealtimeUsage",
723
+ "requestBody": {
724
+ "description": "Cumulative session token totals",
725
+ "content": {
726
+ "application/json": {
727
+ "schema": {
728
+ "$ref": "#/components/schemas/realtimeUsageReport"
729
+ }
730
+ }
731
+ },
732
+ "required": true
733
+ },
734
+ "responses": {
735
+ "200": {
736
+ "description": "Payload of RealtimeUsageAck",
737
+ "content": {
738
+ "application/json": {
739
+ "schema": {
740
+ "$ref": "#/components/schemas/realtimeUsageAck"
741
+ }
742
+ }
743
+ },
744
+ "x-ms-summary": "Report acknowledged"
745
+ }
746
+ },
747
+ "security": [
748
+ {
749
+ "Implicit": []
750
+ },
751
+ {
752
+ "ApiKey": []
753
+ }
754
+ ]
755
+ }
756
+ },
715
757
  "/v1.0/realtime/agents": {
716
758
  "get": {
717
759
  "tags": [
@@ -1580,6 +1622,10 @@
1580
1622
  "type": "string",
1581
1623
  "nullable": true
1582
1624
  },
1625
+ "session_id": {
1626
+ "type": "string",
1627
+ "nullable": true
1628
+ },
1583
1629
  "include": {
1584
1630
  "type": "object",
1585
1631
  "nullable": true
@@ -1629,6 +1675,39 @@
1629
1675
  }
1630
1676
  }
1631
1677
  },
1678
+ "realtimeUsageAck": {
1679
+ "type": "object",
1680
+ "properties": {
1681
+ "accepted": {
1682
+ "type": "boolean",
1683
+ "nullable": true
1684
+ }
1685
+ }
1686
+ },
1687
+ "realtimeUsageReport": {
1688
+ "type": "object",
1689
+ "properties": {
1690
+ "session_id": {
1691
+ "type": "string",
1692
+ "nullable": true
1693
+ },
1694
+ "input_tokens": {
1695
+ "type": "integer",
1696
+ "format": "int64",
1697
+ "nullable": true
1698
+ },
1699
+ "output_tokens": {
1700
+ "type": "integer",
1701
+ "format": "int64",
1702
+ "nullable": true
1703
+ },
1704
+ "cached_tokens": {
1705
+ "type": "integer",
1706
+ "format": "int64",
1707
+ "nullable": true
1708
+ }
1709
+ }
1710
+ },
1632
1711
  "simpleResponseDto": {
1633
1712
  "type": "object",
1634
1713
  "properties": {
@@ -712,6 +712,48 @@
712
712
  ]
713
713
  }
714
714
  },
715
+ "/v1.0/protected/realtime/usage-report": {
716
+ "post": {
717
+ "tags": [
718
+ "Realtime"
719
+ ],
720
+ "summary": "Report token usage for a realtime session",
721
+ "description": "Records cumulative token totals streamed to the client by the realtime API. Reports are validated against the session registry; unknown, expired or already-recorded reports are acknowledged without recording.",
722
+ "operationId": "ReportRealtimeUsage",
723
+ "requestBody": {
724
+ "description": "Cumulative session token totals",
725
+ "content": {
726
+ "application/json": {
727
+ "schema": {
728
+ "$ref": "#/components/schemas/realtimeUsageReport"
729
+ }
730
+ }
731
+ },
732
+ "required": true
733
+ },
734
+ "responses": {
735
+ "200": {
736
+ "description": "Payload of RealtimeUsageAck",
737
+ "content": {
738
+ "application/json": {
739
+ "schema": {
740
+ "$ref": "#/components/schemas/realtimeUsageAck"
741
+ }
742
+ }
743
+ },
744
+ "x-ms-summary": "Report acknowledged"
745
+ }
746
+ },
747
+ "security": [
748
+ {
749
+ "Implicit": []
750
+ },
751
+ {
752
+ "ApiKey": []
753
+ }
754
+ ]
755
+ }
756
+ },
715
757
  "/v1.0/realtime/agents": {
716
758
  "get": {
717
759
  "tags": [
@@ -1580,6 +1622,10 @@
1580
1622
  "type": "string",
1581
1623
  "nullable": true
1582
1624
  },
1625
+ "session_id": {
1626
+ "type": "string",
1627
+ "nullable": true
1628
+ },
1583
1629
  "include": {
1584
1630
  "type": "object",
1585
1631
  "nullable": true
@@ -1629,6 +1675,39 @@
1629
1675
  }
1630
1676
  }
1631
1677
  },
1678
+ "realtimeUsageAck": {
1679
+ "type": "object",
1680
+ "properties": {
1681
+ "accepted": {
1682
+ "type": "boolean",
1683
+ "nullable": true
1684
+ }
1685
+ }
1686
+ },
1687
+ "realtimeUsageReport": {
1688
+ "type": "object",
1689
+ "properties": {
1690
+ "session_id": {
1691
+ "type": "string",
1692
+ "nullable": true
1693
+ },
1694
+ "input_tokens": {
1695
+ "type": "integer",
1696
+ "format": "int64",
1697
+ "nullable": true
1698
+ },
1699
+ "output_tokens": {
1700
+ "type": "integer",
1701
+ "format": "int64",
1702
+ "nullable": true
1703
+ },
1704
+ "cached_tokens": {
1705
+ "type": "integer",
1706
+ "format": "int64",
1707
+ "nullable": true
1708
+ }
1709
+ }
1710
+ },
1632
1711
  "simpleResponseDto": {
1633
1712
  "type": "object",
1634
1713
  "properties": {