|
19638 | 19638 | } |
19639 | 19639 | } |
19640 | 19640 | }, |
| 19641 | + "/v1/metadata/balance": { |
| 19642 | + "get": { |
| 19643 | + "description": "Retrieve the current usage balances for the organization.", |
| 19644 | + "summary": "Retrieve current organization balance", |
| 19645 | + "tags": ["metadata"], |
| 19646 | + "parameters": [], |
| 19647 | + "operationId": "metadata.retrieveCurrentBalances", |
| 19648 | + "responses": { |
| 19649 | + "200": { |
| 19650 | + "description": "200", |
| 19651 | + "content": { |
| 19652 | + "application/json": { |
| 19653 | + "schema": { |
| 19654 | + "type": "object", |
| 19655 | + "properties": { |
| 19656 | + "total_balance": { |
| 19657 | + "type": "number" |
| 19658 | + }, |
| 19659 | + "monthly_credit_balance": { |
| 19660 | + "type": "number" |
| 19661 | + }, |
| 19662 | + "purchased_credit_balance": { |
| 19663 | + "type": "number" |
| 19664 | + }, |
| 19665 | + "billing_tier": { |
| 19666 | + "type": "string" |
| 19667 | + } |
| 19668 | + }, |
| 19669 | + "required": [ |
| 19670 | + "total_balance", |
| 19671 | + "monthly_credit_balance", |
| 19672 | + "purchased_credit_balance", |
| 19673 | + "billing_tier" |
| 19674 | + ] |
| 19675 | + } |
| 19676 | + } |
| 19677 | + } |
| 19678 | + } |
| 19679 | + } |
| 19680 | + } |
| 19681 | + }, |
| 19682 | + "/v1/metadata/feedback": { |
| 19683 | + "post": { |
| 19684 | + "description": "Send feedback from users to improve our services.", |
| 19685 | + "summary": "Send user feedback", |
| 19686 | + "tags": ["metadata"], |
| 19687 | + "parameters": [], |
| 19688 | + "operationId": "metadata.sendFeedback", |
| 19689 | + "requestBody": { |
| 19690 | + "description": "Body", |
| 19691 | + "content": { |
| 19692 | + "application/json": { |
| 19693 | + "schema": { |
| 19694 | + "type": "object", |
| 19695 | + "properties": { |
| 19696 | + "message": { |
| 19697 | + "type": "string", |
| 19698 | + "minLength": 1, |
| 19699 | + "maxLength": 10000 |
| 19700 | + }, |
| 19701 | + "feature": { |
| 19702 | + "default": "letta-code", |
| 19703 | + "type": "string", |
| 19704 | + "enum": ["letta-code", "sdk"] |
| 19705 | + } |
| 19706 | + }, |
| 19707 | + "required": ["message"] |
| 19708 | + } |
| 19709 | + } |
| 19710 | + } |
| 19711 | + }, |
| 19712 | + "responses": { |
| 19713 | + "200": { |
| 19714 | + "description": "200", |
| 19715 | + "content": { |
| 19716 | + "application/json": { |
| 19717 | + "schema": { |
| 19718 | + "type": "object", |
| 19719 | + "properties": { |
| 19720 | + "success": { |
| 19721 | + "type": "boolean" |
| 19722 | + } |
| 19723 | + }, |
| 19724 | + "required": ["success"] |
| 19725 | + } |
| 19726 | + } |
| 19727 | + } |
| 19728 | + } |
| 19729 | + } |
| 19730 | + } |
| 19731 | + }, |
19641 | 19732 | "/v1/scheduled-messages/{scheduled_message_id}": { |
19642 | 19733 | "delete": { |
19643 | 19734 | "description": "Delete a scheduled message by its ID for a specific agent.", |
|
21952 | 22043 | "title": "Content", |
21953 | 22044 | "description": "The message content sent by the assistant (can be a string or an array of content parts)" |
21954 | 22045 | }, |
| 22046 | + "message_id": { |
| 22047 | + "type": "string", |
| 22048 | + "title": "Message Id", |
| 22049 | + "description": "The unique identifier of the message." |
| 22050 | + }, |
21955 | 22051 | "agent_id": { |
21956 | 22052 | "anyOf": [ |
21957 | 22053 | { |
|
21972 | 22068 | } |
21973 | 22069 | }, |
21974 | 22070 | "type": "object", |
21975 | | - "required": ["content", "created_at"], |
| 22071 | + "required": ["content", "message_id", "created_at"], |
21976 | 22072 | "title": "AssistantMessageListResult", |
21977 | | - "description": "Assistant message list result with agent context.\n\nShape is identical to UpdateAssistantMessage but includes the owning agent_id." |
| 22073 | + "description": "Assistant message list result with agent context.\n\nShape is identical to UpdateAssistantMessage but includes the owning agent_id and message id." |
21978 | 22074 | }, |
21979 | 22075 | "Audio": { |
21980 | 22076 | "properties": { |
|
34376 | 34472 | "title": "Message Type", |
34377 | 34473 | "default": "reasoning_message" |
34378 | 34474 | }, |
| 34475 | + "message_id": { |
| 34476 | + "type": "string", |
| 34477 | + "title": "Message Id", |
| 34478 | + "description": "The unique identifier of the message." |
| 34479 | + }, |
34379 | 34480 | "agent_id": { |
34380 | 34481 | "anyOf": [ |
34381 | 34482 | { |
|
34396 | 34497 | } |
34397 | 34498 | }, |
34398 | 34499 | "type": "object", |
34399 | | - "required": ["reasoning", "created_at"], |
| 34500 | + "required": ["reasoning", "message_id", "created_at"], |
34400 | 34501 | "title": "ReasoningMessageListResult", |
34401 | | - "description": "Reasoning message list result with agent context.\n\nShape is identical to UpdateReasoningMessage but includes the owning agent_id." |
| 34502 | + "description": "Reasoning message list result with agent context.\n\nShape is identical to UpdateReasoningMessage but includes the owning agent_id and message id." |
34402 | 34503 | }, |
34403 | 34504 | "RedactedReasoningContent": { |
34404 | 34505 | "properties": { |
|
36870 | 36971 | "title": "Content", |
36871 | 36972 | "description": "The message content sent by the system (can be a string or an array of multi-modal content parts)" |
36872 | 36973 | }, |
| 36974 | + "message_id": { |
| 36975 | + "type": "string", |
| 36976 | + "title": "Message Id", |
| 36977 | + "description": "The unique identifier of the message." |
| 36978 | + }, |
36873 | 36979 | "agent_id": { |
36874 | 36980 | "anyOf": [ |
36875 | 36981 | { |
|
36890 | 36996 | } |
36891 | 36997 | }, |
36892 | 36998 | "type": "object", |
36893 | | - "required": ["content", "created_at"], |
| 36999 | + "required": ["content", "message_id", "created_at"], |
36894 | 37000 | "title": "SystemMessageListResult", |
36895 | | - "description": "System message list result with agent context.\n\nShape is identical to UpdateSystemMessage but includes the owning agent_id." |
| 37001 | + "description": "System message list result with agent context.\n\nShape is identical to UpdateSystemMessage but includes the owning agent_id and message id." |
36896 | 37002 | }, |
36897 | 37003 | "TagSchema": { |
36898 | 37004 | "properties": { |
|
39541 | 39647 | "title": "Content", |
39542 | 39648 | "description": "The message content sent by the user (can be a string or an array of multi-modal content parts)" |
39543 | 39649 | }, |
| 39650 | + "message_id": { |
| 39651 | + "type": "string", |
| 39652 | + "title": "Message Id", |
| 39653 | + "description": "The unique identifier of the message." |
| 39654 | + }, |
39544 | 39655 | "agent_id": { |
39545 | 39656 | "anyOf": [ |
39546 | 39657 | { |
|
39561 | 39672 | } |
39562 | 39673 | }, |
39563 | 39674 | "type": "object", |
39564 | | - "required": ["content", "created_at"], |
| 39675 | + "required": ["content", "message_id", "created_at"], |
39565 | 39676 | "title": "UserMessageListResult", |
39566 | | - "description": "User message list result with agent context.\n\nShape is identical to UpdateUserMessage but includes the owning agent_id." |
| 39677 | + "description": "User message list result with agent context.\n\nShape is identical to UpdateUserMessage but includes the owning agent_id and message id." |
39567 | 39678 | }, |
39568 | 39679 | "UserUpdate": { |
39569 | 39680 | "properties": { |
|
0 commit comments