@meetkai/mka1 0.48.38 → 0.48.40
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/bin/mcp-server.js +1027 -746
- package/bin/mcp-server.js.map +53 -55
- package/dist/commonjs/funcs/budgetsApiKeyEvents.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsApiKeyEvents.js +1 -1
- package/dist/commonjs/funcs/budgetsDeleteApiKey.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsDeleteApiKey.js +1 -1
- package/dist/commonjs/funcs/budgetsGetApiKey.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsGetApiKey.js +1 -1
- package/dist/commonjs/funcs/budgetsList.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsList.js +1 -1
- package/dist/commonjs/funcs/budgetsSetApiKey.d.ts +1 -1
- package/dist/commonjs/funcs/budgetsSetApiKey.js +1 -1
- package/dist/commonjs/funcs/llmConversationsCreateItems.d.ts +1 -2
- package/dist/commonjs/funcs/llmConversationsCreateItems.d.ts.map +1 -1
- package/dist/commonjs/funcs/llmConversationsCreateItems.js +1 -2
- package/dist/commonjs/funcs/llmConversationsCreateItems.js.map +1 -1
- package/dist/commonjs/funcs/llmConversationsListItems.d.ts +1 -2
- package/dist/commonjs/funcs/llmConversationsListItems.d.ts.map +1 -1
- package/dist/commonjs/funcs/llmConversationsListItems.js +1 -2
- package/dist/commonjs/funcs/llmConversationsListItems.js.map +1 -1
- package/dist/commonjs/funcs/llmPromptsDelete.js +1 -2
- package/dist/commonjs/funcs/llmPromptsDelete.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsApiKeyEvents.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsApiKeyEvents.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsDeleteApiKey.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsDeleteApiKey.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsGetApiKey.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsGetApiKey.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsList.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsList.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js +1 -1
- package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js.map +1 -1
- package/dist/commonjs/models/components/conversationobject.d.ts +3 -0
- package/dist/commonjs/models/components/conversationobject.d.ts.map +1 -1
- package/dist/commonjs/models/components/conversationobject.js.map +1 -1
- package/dist/commonjs/models/components/createconversationrequest.d.ts +3 -0
- package/dist/commonjs/models/components/createconversationrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createconversationrequest.js.map +1 -1
- package/dist/commonjs/models/components/evalfewshotconfig.d.ts +4 -3
- package/dist/commonjs/models/components/evalfewshotconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/evalfewshotconfig.js +3 -2
- package/dist/commonjs/models/components/evalfewshotconfig.js.map +1 -1
- package/dist/commonjs/models/components/evalmetric.d.ts +37 -0
- package/dist/commonjs/models/components/evalmetric.d.ts.map +1 -0
- package/dist/commonjs/models/components/{itemlistobject.js → evalmetric.js} +37 -26
- package/dist/commonjs/models/components/evalmetric.js.map +1 -0
- package/dist/commonjs/models/components/evaltask.d.ts +3 -2
- package/dist/commonjs/models/components/evaltask.d.ts.map +1 -1
- package/dist/commonjs/models/components/evaltask.js +3 -2
- package/dist/commonjs/models/components/evaltask.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -3
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -3
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/livekittokenrequest.d.ts +3 -0
- package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
- package/dist/commonjs/models/components/responseobject.d.ts +2 -11
- package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
- package/dist/commonjs/models/components/responseobject.js +3 -15
- package/dist/commonjs/models/components/responseobject.js.map +1 -1
- package/dist/commonjs/models/components/responsescreaterequest.d.ts +3 -0
- package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
- package/dist/commonjs/models/components/update.d.ts +3 -0
- package/dist/commonjs/models/components/update.d.ts.map +1 -1
- package/dist/commonjs/models/components/update.js.map +1 -1
- package/dist/commonjs/models/components/updateresponserequest.d.ts +3 -0
- package/dist/commonjs/models/components/updateresponserequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updateresponserequest.js.map +1 -1
- package/dist/commonjs/models/operations/conversationsitemscreate.d.ts +123 -0
- package/dist/commonjs/models/operations/conversationsitemscreate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/conversationsitemscreate.js +219 -1
- package/dist/commonjs/models/operations/conversationsitemscreate.js.map +1 -1
- package/dist/commonjs/models/operations/conversationsitemslist.d.ts +123 -0
- package/dist/commonjs/models/operations/conversationsitemslist.d.ts.map +1 -1
- package/dist/commonjs/models/operations/conversationsitemslist.js +220 -1
- package/dist/commonjs/models/operations/conversationsitemslist.js.map +1 -1
- package/dist/commonjs/models/operations/conversationsitemsretrieve.d.ts +85 -2
- package/dist/commonjs/models/operations/conversationsitemsretrieve.d.ts.map +1 -1
- package/dist/commonjs/models/operations/conversationsitemsretrieve.js +73 -3
- package/dist/commonjs/models/operations/conversationsitemsretrieve.js.map +1 -1
- package/dist/commonjs/models/operations/deleteprompt.d.ts +0 -11
- package/dist/commonjs/models/operations/deleteprompt.d.ts.map +1 -1
- package/dist/commonjs/models/operations/deleteprompt.js +1 -17
- package/dist/commonjs/models/operations/deleteprompt.js.map +1 -1
- package/dist/commonjs/models/operations/getapikeybudgets.d.ts +2 -0
- package/dist/commonjs/models/operations/getapikeybudgets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getapikeybudgets.js +4 -0
- package/dist/commonjs/models/operations/getapikeybudgets.js.map +1 -1
- package/dist/commonjs/models/operations/getorgbudgets.d.ts +2 -0
- package/dist/commonjs/models/operations/getorgbudgets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getorgbudgets.js +4 -0
- package/dist/commonjs/models/operations/getorgbudgets.js.map +1 -1
- package/dist/commonjs/models/operations/listbudgets.d.ts +2 -0
- package/dist/commonjs/models/operations/listbudgets.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listbudgets.js +4 -0
- package/dist/commonjs/models/operations/listbudgets.js.map +1 -1
- package/dist/commonjs/models/operations/listevalsuiteversions.d.ts +8 -8
- package/dist/commonjs/models/operations/listevalsuiteversions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevalsuiteversions.js +11 -12
- package/dist/commonjs/models/operations/listevalsuiteversions.js.map +1 -1
- package/dist/commonjs/models/operations/setapikeybudget.d.ts +2 -0
- package/dist/commonjs/models/operations/setapikeybudget.d.ts.map +1 -1
- package/dist/commonjs/models/operations/setapikeybudget.js +4 -0
- package/dist/commonjs/models/operations/setapikeybudget.js.map +1 -1
- package/dist/commonjs/models/operations/setorgbudget.d.ts +2 -0
- package/dist/commonjs/models/operations/setorgbudget.d.ts.map +1 -1
- package/dist/commonjs/models/operations/setorgbudget.js +4 -0
- package/dist/commonjs/models/operations/setorgbudget.js.map +1 -1
- package/dist/commonjs/react-query/budgetsApiKeyEvents.d.ts +2 -2
- package/dist/commonjs/react-query/budgetsApiKeyEvents.js +2 -2
- package/dist/commonjs/react-query/budgetsDeleteApiKey.d.ts +1 -1
- package/dist/commonjs/react-query/budgetsDeleteApiKey.js +1 -1
- package/dist/commonjs/react-query/budgetsGetApiKey.d.ts +2 -2
- package/dist/commonjs/react-query/budgetsGetApiKey.js +2 -2
- package/dist/commonjs/react-query/budgetsList.d.ts +2 -2
- package/dist/commonjs/react-query/budgetsList.js +2 -2
- package/dist/commonjs/react-query/budgetsSetApiKey.d.ts +1 -1
- package/dist/commonjs/react-query/budgetsSetApiKey.js +1 -1
- package/dist/commonjs/react-query/llmConversationsCreateItems.d.ts +1 -2
- package/dist/commonjs/react-query/llmConversationsCreateItems.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmConversationsCreateItems.js.map +1 -1
- package/dist/commonjs/react-query/llmConversationsListItems.core.d.ts +1 -2
- package/dist/commonjs/react-query/llmConversationsListItems.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmConversationsListItems.core.js.map +1 -1
- package/dist/commonjs/sdk/budgets.d.ts +5 -5
- package/dist/commonjs/sdk/budgets.js +5 -5
- package/dist/commonjs/sdk/conversations.d.ts +2 -2
- package/dist/commonjs/sdk/conversations.d.ts.map +1 -1
- package/dist/esm/funcs/budgetsApiKeyEvents.d.ts +1 -1
- package/dist/esm/funcs/budgetsApiKeyEvents.js +1 -1
- package/dist/esm/funcs/budgetsDeleteApiKey.d.ts +1 -1
- package/dist/esm/funcs/budgetsDeleteApiKey.js +1 -1
- package/dist/esm/funcs/budgetsGetApiKey.d.ts +1 -1
- package/dist/esm/funcs/budgetsGetApiKey.js +1 -1
- package/dist/esm/funcs/budgetsList.d.ts +1 -1
- package/dist/esm/funcs/budgetsList.js +1 -1
- package/dist/esm/funcs/budgetsSetApiKey.d.ts +1 -1
- package/dist/esm/funcs/budgetsSetApiKey.js +1 -1
- package/dist/esm/funcs/llmConversationsCreateItems.d.ts +1 -2
- package/dist/esm/funcs/llmConversationsCreateItems.d.ts.map +1 -1
- package/dist/esm/funcs/llmConversationsCreateItems.js +1 -2
- package/dist/esm/funcs/llmConversationsCreateItems.js.map +1 -1
- package/dist/esm/funcs/llmConversationsListItems.d.ts +1 -2
- package/dist/esm/funcs/llmConversationsListItems.d.ts.map +1 -1
- package/dist/esm/funcs/llmConversationsListItems.js +1 -2
- package/dist/esm/funcs/llmConversationsListItems.js.map +1 -1
- package/dist/esm/funcs/llmPromptsDelete.js +2 -3
- package/dist/esm/funcs/llmPromptsDelete.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsApiKeyEvents.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsApiKeyEvents.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsDeleteApiKey.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsDeleteApiKey.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsGetApiKey.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsGetApiKey.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsList.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsList.js.map +1 -1
- package/dist/esm/mcp-server/tools/budgetsSetApiKey.js +1 -1
- package/dist/esm/mcp-server/tools/budgetsSetApiKey.js.map +1 -1
- package/dist/esm/models/components/conversationobject.d.ts +3 -0
- package/dist/esm/models/components/conversationobject.d.ts.map +1 -1
- package/dist/esm/models/components/conversationobject.js.map +1 -1
- package/dist/esm/models/components/createconversationrequest.d.ts +3 -0
- package/dist/esm/models/components/createconversationrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createconversationrequest.js.map +1 -1
- package/dist/esm/models/components/evalfewshotconfig.d.ts +4 -3
- package/dist/esm/models/components/evalfewshotconfig.d.ts.map +1 -1
- package/dist/esm/models/components/evalfewshotconfig.js +3 -2
- package/dist/esm/models/components/evalfewshotconfig.js.map +1 -1
- package/dist/esm/models/components/evalmetric.d.ts +37 -0
- package/dist/esm/models/components/evalmetric.d.ts.map +1 -0
- package/dist/esm/models/components/evalmetric.js +49 -0
- package/dist/esm/models/components/evalmetric.js.map +1 -0
- package/dist/esm/models/components/evaltask.d.ts +3 -2
- package/dist/esm/models/components/evaltask.d.ts.map +1 -1
- package/dist/esm/models/components/evaltask.js +3 -2
- package/dist/esm/models/components/evaltask.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -3
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -3
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/livekittokenrequest.d.ts +3 -0
- package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
- package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
- package/dist/esm/models/components/responseobject.d.ts +2 -11
- package/dist/esm/models/components/responseobject.d.ts.map +1 -1
- package/dist/esm/models/components/responseobject.js +2 -12
- package/dist/esm/models/components/responseobject.js.map +1 -1
- package/dist/esm/models/components/responsescreaterequest.d.ts +3 -0
- package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
- package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
- package/dist/esm/models/components/update.d.ts +3 -0
- package/dist/esm/models/components/update.d.ts.map +1 -1
- package/dist/esm/models/components/update.js.map +1 -1
- package/dist/esm/models/components/updateresponserequest.d.ts +3 -0
- package/dist/esm/models/components/updateresponserequest.d.ts.map +1 -1
- package/dist/esm/models/components/updateresponserequest.js.map +1 -1
- package/dist/esm/models/operations/conversationsitemscreate.d.ts +123 -0
- package/dist/esm/models/operations/conversationsitemscreate.d.ts.map +1 -1
- package/dist/esm/models/operations/conversationsitemscreate.js +210 -0
- package/dist/esm/models/operations/conversationsitemscreate.js.map +1 -1
- package/dist/esm/models/operations/conversationsitemslist.d.ts +123 -0
- package/dist/esm/models/operations/conversationsitemslist.d.ts.map +1 -1
- package/dist/esm/models/operations/conversationsitemslist.js +211 -0
- package/dist/esm/models/operations/conversationsitemslist.js.map +1 -1
- package/dist/esm/models/operations/conversationsitemsretrieve.d.ts +85 -2
- package/dist/esm/models/operations/conversationsitemsretrieve.d.ts.map +1 -1
- package/dist/esm/models/operations/conversationsitemsretrieve.js +68 -2
- package/dist/esm/models/operations/conversationsitemsretrieve.js.map +1 -1
- package/dist/esm/models/operations/deleteprompt.d.ts +0 -11
- package/dist/esm/models/operations/deleteprompt.d.ts.map +1 -1
- package/dist/esm/models/operations/deleteprompt.js +0 -14
- package/dist/esm/models/operations/deleteprompt.js.map +1 -1
- package/dist/esm/models/operations/getapikeybudgets.d.ts +2 -0
- package/dist/esm/models/operations/getapikeybudgets.d.ts.map +1 -1
- package/dist/esm/models/operations/getapikeybudgets.js +4 -0
- package/dist/esm/models/operations/getapikeybudgets.js.map +1 -1
- package/dist/esm/models/operations/getorgbudgets.d.ts +2 -0
- package/dist/esm/models/operations/getorgbudgets.d.ts.map +1 -1
- package/dist/esm/models/operations/getorgbudgets.js +4 -0
- package/dist/esm/models/operations/getorgbudgets.js.map +1 -1
- package/dist/esm/models/operations/listbudgets.d.ts +2 -0
- package/dist/esm/models/operations/listbudgets.d.ts.map +1 -1
- package/dist/esm/models/operations/listbudgets.js +4 -0
- package/dist/esm/models/operations/listbudgets.js.map +1 -1
- package/dist/esm/models/operations/listevalsuiteversions.d.ts +8 -8
- package/dist/esm/models/operations/listevalsuiteversions.d.ts.map +1 -1
- package/dist/esm/models/operations/listevalsuiteversions.js +8 -9
- package/dist/esm/models/operations/listevalsuiteversions.js.map +1 -1
- package/dist/esm/models/operations/setapikeybudget.d.ts +2 -0
- package/dist/esm/models/operations/setapikeybudget.d.ts.map +1 -1
- package/dist/esm/models/operations/setapikeybudget.js +4 -0
- package/dist/esm/models/operations/setapikeybudget.js.map +1 -1
- package/dist/esm/models/operations/setorgbudget.d.ts +2 -0
- package/dist/esm/models/operations/setorgbudget.d.ts.map +1 -1
- package/dist/esm/models/operations/setorgbudget.js +4 -0
- package/dist/esm/models/operations/setorgbudget.js.map +1 -1
- package/dist/esm/react-query/budgetsApiKeyEvents.d.ts +2 -2
- package/dist/esm/react-query/budgetsApiKeyEvents.js +2 -2
- package/dist/esm/react-query/budgetsDeleteApiKey.d.ts +1 -1
- package/dist/esm/react-query/budgetsDeleteApiKey.js +1 -1
- package/dist/esm/react-query/budgetsGetApiKey.d.ts +2 -2
- package/dist/esm/react-query/budgetsGetApiKey.js +2 -2
- package/dist/esm/react-query/budgetsList.d.ts +2 -2
- package/dist/esm/react-query/budgetsList.js +2 -2
- package/dist/esm/react-query/budgetsSetApiKey.d.ts +1 -1
- package/dist/esm/react-query/budgetsSetApiKey.js +1 -1
- package/dist/esm/react-query/llmConversationsCreateItems.d.ts +1 -2
- package/dist/esm/react-query/llmConversationsCreateItems.d.ts.map +1 -1
- package/dist/esm/react-query/llmConversationsCreateItems.js.map +1 -1
- package/dist/esm/react-query/llmConversationsListItems.core.d.ts +1 -2
- package/dist/esm/react-query/llmConversationsListItems.core.d.ts.map +1 -1
- package/dist/esm/react-query/llmConversationsListItems.core.js.map +1 -1
- package/dist/esm/sdk/budgets.d.ts +5 -5
- package/dist/esm/sdk/budgets.js +5 -5
- package/dist/esm/sdk/conversations.d.ts +2 -2
- package/dist/esm/sdk/conversations.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/budgetsApiKeyEvents.ts +1 -1
- package/src/funcs/budgetsDeleteApiKey.ts +1 -1
- package/src/funcs/budgetsGetApiKey.ts +1 -1
- package/src/funcs/budgetsList.ts +1 -1
- package/src/funcs/budgetsSetApiKey.ts +1 -1
- package/src/funcs/llmConversationsCreateItems.ts +4 -5
- package/src/funcs/llmConversationsListItems.ts +4 -5
- package/src/funcs/llmPromptsDelete.ts +2 -3
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/budgetsApiKeyEvents.ts +1 -1
- package/src/mcp-server/tools/budgetsDeleteApiKey.ts +1 -1
- package/src/mcp-server/tools/budgetsGetApiKey.ts +1 -1
- package/src/mcp-server/tools/budgetsList.ts +1 -1
- package/src/mcp-server/tools/budgetsSetApiKey.ts +1 -1
- package/src/models/components/conversationobject.ts +3 -0
- package/src/models/components/createconversationrequest.ts +3 -0
- package/src/models/components/evalfewshotconfig.ts +11 -5
- package/src/models/components/evalmetric.ts +96 -0
- package/src/models/components/evaltask.ts +10 -4
- package/src/models/components/index.ts +1 -3
- package/src/models/components/livekittokenrequest.ts +3 -0
- package/src/models/components/responseobject.ts +4 -47
- package/src/models/components/responsescreaterequest.ts +3 -0
- package/src/models/components/update.ts +3 -0
- package/src/models/components/updateresponserequest.ts +3 -0
- package/src/models/operations/conversationsitemscreate.ts +488 -0
- package/src/models/operations/conversationsitemslist.ts +496 -0
- package/src/models/operations/conversationsitemsretrieve.ts +168 -4
- package/src/models/operations/deleteprompt.ts +0 -41
- package/src/models/operations/getapikeybudgets.ts +6 -0
- package/src/models/operations/getorgbudgets.ts +6 -0
- package/src/models/operations/listbudgets.ts +6 -0
- package/src/models/operations/listevalsuiteversions.ts +54 -44
- package/src/models/operations/setapikeybudget.ts +6 -0
- package/src/models/operations/setorgbudget.ts +6 -0
- package/src/react-query/budgetsApiKeyEvents.ts +2 -2
- package/src/react-query/budgetsDeleteApiKey.ts +1 -1
- package/src/react-query/budgetsGetApiKey.ts +2 -2
- package/src/react-query/budgetsList.ts +2 -2
- package/src/react-query/budgetsSetApiKey.ts +1 -1
- package/src/react-query/llmConversationsCreateItems.ts +2 -2
- package/src/react-query/llmConversationsListItems.core.ts +2 -2
- package/src/sdk/budgets.ts +5 -5
- package/src/sdk/conversations.ts +2 -2
- package/dist/commonjs/models/components/inputmessagewithid.d.ts +0 -89
- package/dist/commonjs/models/components/inputmessagewithid.d.ts.map +0 -1
- package/dist/commonjs/models/components/inputmessagewithid.js +0 -106
- package/dist/commonjs/models/components/inputmessagewithid.js.map +0 -1
- package/dist/commonjs/models/components/itemlistobject.d.ts +0 -33
- package/dist/commonjs/models/components/itemlistobject.d.ts.map +0 -1
- package/dist/commonjs/models/components/itemlistobject.js.map +0 -1
- package/dist/commonjs/models/components/itemwithid.d.ts +0 -37
- package/dist/commonjs/models/components/itemwithid.d.ts.map +0 -1
- package/dist/commonjs/models/components/itemwithid.js +0 -128
- package/dist/commonjs/models/components/itemwithid.js.map +0 -1
- package/dist/esm/models/components/inputmessagewithid.d.ts +0 -89
- package/dist/esm/models/components/inputmessagewithid.d.ts.map +0 -1
- package/dist/esm/models/components/inputmessagewithid.js +0 -66
- package/dist/esm/models/components/inputmessagewithid.js.map +0 -1
- package/dist/esm/models/components/itemlistobject.d.ts +0 -33
- package/dist/esm/models/components/itemlistobject.d.ts.map +0 -1
- package/dist/esm/models/components/itemlistobject.js +0 -38
- package/dist/esm/models/components/itemlistobject.js.map +0 -1
- package/dist/esm/models/components/itemwithid.d.ts +0 -37
- package/dist/esm/models/components/itemwithid.d.ts.map +0 -1
- package/dist/esm/models/components/itemwithid.js +0 -90
- package/dist/esm/models/components/itemwithid.js.map +0 -1
- package/src/models/components/inputmessagewithid.ts +0 -183
- package/src/models/components/itemlistobject.ts +0 -85
- package/src/models/components/itemwithid.ts +0 -281
package/dist/esm/sdk/budgets.js
CHANGED
|
@@ -19,7 +19,7 @@ export class Budgets extends ClientSDK {
|
|
|
19
19
|
* List budgets
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
* Cluster admins see all budgets; org admins see their org's budgets.
|
|
22
|
+
* Cluster admins see all budgets; org admins see their org's budgets plus budgets on API keys in their org.
|
|
23
23
|
*/
|
|
24
24
|
async list(options) {
|
|
25
25
|
return unwrapAsync(budgetsList(this, options));
|
|
@@ -64,7 +64,7 @@ export class Budgets extends ClientSDK {
|
|
|
64
64
|
* List apikey budgets
|
|
65
65
|
*
|
|
66
66
|
* @remarks
|
|
67
|
-
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
67
|
+
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
68
68
|
*/
|
|
69
69
|
async getApiKey(request, options) {
|
|
70
70
|
return unwrapAsync(budgetsGetApiKey(this, request, options));
|
|
@@ -73,7 +73,7 @@ export class Budgets extends ClientSDK {
|
|
|
73
73
|
* Set a apikey budget
|
|
74
74
|
*
|
|
75
75
|
* @remarks
|
|
76
|
-
* Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
76
|
+
* Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
77
77
|
*/
|
|
78
78
|
async setApiKey(request, options) {
|
|
79
79
|
return unwrapAsync(budgetsSetApiKey(this, request, options));
|
|
@@ -82,7 +82,7 @@ export class Budgets extends ClientSDK {
|
|
|
82
82
|
* Delete a apikey budget
|
|
83
83
|
*
|
|
84
84
|
* @remarks
|
|
85
|
-
* Removes the apikey's budget for the given owner; enforcement and alerts stop.
|
|
85
|
+
* Removes the apikey's budget for the given owner; enforcement and alerts stop. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
86
86
|
*/
|
|
87
87
|
async deleteApiKey(request, options) {
|
|
88
88
|
return unwrapAsync(budgetsDeleteApiKey(this, request, options));
|
|
@@ -91,7 +91,7 @@ export class Budgets extends ClientSDK {
|
|
|
91
91
|
* List apikey budget events
|
|
92
92
|
*
|
|
93
93
|
* @remarks
|
|
94
|
-
* Returns recent threshold-alert and block events for the scope's budgets.
|
|
94
|
+
* Returns recent threshold-alert and block events for the scope's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
95
95
|
*/
|
|
96
96
|
async apiKeyEvents(request, options) {
|
|
97
97
|
return unwrapAsync(budgetsApiKeyEvents(this, request, options));
|
|
@@ -43,14 +43,14 @@ export declare class Conversations extends ClientSDK {
|
|
|
43
43
|
* @remarks
|
|
44
44
|
* List all items for a conversation with the given ID.
|
|
45
45
|
*/
|
|
46
|
-
listItems(request: operations.ConversationsItemsListRequest, options?: RequestOptions): Promise<
|
|
46
|
+
listItems(request: operations.ConversationsItemsListRequest, options?: RequestOptions): Promise<operations.ConversationsItemsListResponseBody>;
|
|
47
47
|
/**
|
|
48
48
|
* Create conversation items
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
51
|
* Create items in a conversation with the given ID.
|
|
52
52
|
*/
|
|
53
|
-
createItems(request: operations.ConversationsItemsCreateRequest, options?: RequestOptions): Promise<
|
|
53
|
+
createItems(request: operations.ConversationsItemsCreateRequest, options?: RequestOptions): Promise<operations.ConversationsItemsCreateResponseBody>;
|
|
54
54
|
/**
|
|
55
55
|
* Delete multiple conversation items
|
|
56
56
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../src/sdk/conversations.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../src/sdk/conversations.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;IAQ3D;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;IAQ7D;;;;;OAKG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;CAO1C"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* List apikey budget events
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Returns recent threshold-alert and block events for the scope's budgets.
|
|
32
|
+
* Returns recent threshold-alert and block events for the scope's budgets. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
33
33
|
*/
|
|
34
34
|
export function budgetsApiKeyEvents(
|
|
35
35
|
client: SDKCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Delete a apikey budget
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Removes the apikey's budget for the given owner; enforcement and alerts stop.
|
|
32
|
+
* Removes the apikey's budget for the given owner; enforcement and alerts stop. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
33
33
|
*/
|
|
34
34
|
export function budgetsDeleteApiKey(
|
|
35
35
|
client: SDKCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* List apikey budgets
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge.
|
|
32
|
+
* Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
33
33
|
*/
|
|
34
34
|
export function budgetsGetApiKey(
|
|
35
35
|
client: SDKCore,
|
package/src/funcs/budgetsList.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* List budgets
|
|
28
28
|
*
|
|
29
29
|
* @remarks
|
|
30
|
-
* Cluster admins see all budgets; org admins see their org's budgets.
|
|
30
|
+
* Cluster admins see all budgets; org admins see their org's budgets plus budgets on API keys in their org.
|
|
31
31
|
*/
|
|
32
32
|
export function budgetsList(
|
|
33
33
|
client: SDKCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Set a apikey budget
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend.
|
|
32
|
+
* Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend. Callable by cluster admins, or org admins for API keys in their own organization.
|
|
33
33
|
*/
|
|
34
34
|
export function budgetsSetApiKey(
|
|
35
35
|
client: SDKCore,
|
|
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
17
16
|
InvalidRequestError,
|
|
@@ -38,7 +37,7 @@ export function llmConversationsCreateItems(
|
|
|
38
37
|
options?: RequestOptions,
|
|
39
38
|
): APIPromise<
|
|
40
39
|
Result<
|
|
41
|
-
|
|
40
|
+
operations.ConversationsItemsCreateResponseBody,
|
|
42
41
|
| SDKError
|
|
43
42
|
| ResponseValidationError
|
|
44
43
|
| ConnectionError
|
|
@@ -63,7 +62,7 @@ async function $do(
|
|
|
63
62
|
): Promise<
|
|
64
63
|
[
|
|
65
64
|
Result<
|
|
66
|
-
|
|
65
|
+
operations.ConversationsItemsCreateResponseBody,
|
|
67
66
|
| SDKError
|
|
68
67
|
| ResponseValidationError
|
|
69
68
|
| ConnectionError
|
|
@@ -167,7 +166,7 @@ async function $do(
|
|
|
167
166
|
const response = doResult.value;
|
|
168
167
|
|
|
169
168
|
const [result] = await M.match<
|
|
170
|
-
|
|
169
|
+
operations.ConversationsItemsCreateResponseBody,
|
|
171
170
|
| SDKError
|
|
172
171
|
| ResponseValidationError
|
|
173
172
|
| ConnectionError
|
|
@@ -177,7 +176,7 @@ async function $do(
|
|
|
177
176
|
| UnexpectedClientError
|
|
178
177
|
| SDKValidationError
|
|
179
178
|
>(
|
|
180
|
-
M.json(200,
|
|
179
|
+
M.json(200, operations.ConversationsItemsCreateResponseBody$inboundSchema),
|
|
181
180
|
M.fail("4XX"),
|
|
182
181
|
M.fail("5XX"),
|
|
183
182
|
)(response, req);
|
|
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
17
16
|
InvalidRequestError,
|
|
@@ -38,7 +37,7 @@ export function llmConversationsListItems(
|
|
|
38
37
|
options?: RequestOptions,
|
|
39
38
|
): APIPromise<
|
|
40
39
|
Result<
|
|
41
|
-
|
|
40
|
+
operations.ConversationsItemsListResponseBody,
|
|
42
41
|
| SDKError
|
|
43
42
|
| ResponseValidationError
|
|
44
43
|
| ConnectionError
|
|
@@ -63,7 +62,7 @@ async function $do(
|
|
|
63
62
|
): Promise<
|
|
64
63
|
[
|
|
65
64
|
Result<
|
|
66
|
-
|
|
65
|
+
operations.ConversationsItemsListResponseBody,
|
|
67
66
|
| SDKError
|
|
68
67
|
| ResponseValidationError
|
|
69
68
|
| ConnectionError
|
|
@@ -172,7 +171,7 @@ async function $do(
|
|
|
172
171
|
const response = doResult.value;
|
|
173
172
|
|
|
174
173
|
const [result] = await M.match<
|
|
175
|
-
|
|
174
|
+
operations.ConversationsItemsListResponseBody,
|
|
176
175
|
| SDKError
|
|
177
176
|
| ResponseValidationError
|
|
178
177
|
| ConnectionError
|
|
@@ -182,7 +181,7 @@ async function $do(
|
|
|
182
181
|
| UnexpectedClientError
|
|
183
182
|
| SDKValidationError
|
|
184
183
|
>(
|
|
185
|
-
M.json(200,
|
|
184
|
+
M.json(200, operations.ConversationsItemsListResponseBody$inboundSchema),
|
|
186
185
|
M.fail("4XX"),
|
|
187
186
|
M.fail("5XX"),
|
|
188
187
|
)(response, req);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
|
-
import {
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -85,7 +85,7 @@ async function $do(
|
|
|
85
85
|
return [parsed, { status: "invalid" }];
|
|
86
86
|
}
|
|
87
87
|
const payload = parsed.value;
|
|
88
|
-
const body =
|
|
88
|
+
const body = null;
|
|
89
89
|
|
|
90
90
|
const pathParams = {
|
|
91
91
|
id: encodeSimple("id", payload.id, {
|
|
@@ -96,7 +96,6 @@ async function $do(
|
|
|
96
96
|
const path = pathToFunc("/api/v1/llm/prompts/{id}")(pathParams);
|
|
97
97
|
|
|
98
98
|
const headers = new Headers(compactMap({
|
|
99
|
-
"Content-Type": "application/json",
|
|
100
99
|
Accept: "application/json",
|
|
101
100
|
"X-On-Behalf-Of": encodeSimple(
|
|
102
101
|
"X-On-Behalf-Of",
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.48.
|
|
68
|
+
sdkVersion: "0.48.40",
|
|
69
69
|
genVersion: "2.916.2",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.48.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.48.40 2.916.2 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const tool$budgetsApiKeyEvents: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "budgets-api-key-events",
|
|
15
15
|
description: `List apikey budget events
|
|
16
16
|
|
|
17
|
-
Returns recent threshold-alert and block events for the scope's budgets.`,
|
|
17
|
+
Returns recent threshold-alert and block events for the scope's budgets. Callable by cluster admins, or org admins for API keys in their own organization.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await budgetsApiKeyEvents(
|
|
@@ -14,7 +14,7 @@ export const tool$budgetsDeleteApiKey: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "budgets-delete-api-key",
|
|
15
15
|
description: `Delete a apikey budget
|
|
16
16
|
|
|
17
|
-
Removes the apikey's budget for the given owner; enforcement and alerts stop.`,
|
|
17
|
+
Removes the apikey's budget for the given owner; enforcement and alerts stop. Callable by cluster admins, or org admins for API keys in their own organization.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await budgetsDeleteApiKey(
|
|
@@ -14,7 +14,7 @@ export const tool$budgetsGetApiKey: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "budgets-get-api-key",
|
|
15
15
|
description: `List apikey budgets
|
|
16
16
|
|
|
17
|
-
Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge.`,
|
|
17
|
+
Returns the apikey's budgets (self-budget and/or ceiling) with each one's live spend gauge. Callable by cluster admins, or org admins for API keys in their own organization.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await budgetsGetApiKey(
|
|
@@ -9,7 +9,7 @@ export const tool$budgetsList: ToolDefinition = {
|
|
|
9
9
|
name: "budgets-list",
|
|
10
10
|
description: `List budgets
|
|
11
11
|
|
|
12
|
-
Cluster admins see all budgets; org admins see their org's budgets.`,
|
|
12
|
+
Cluster admins see all budgets; org admins see their org's budgets plus budgets on API keys in their org.`,
|
|
13
13
|
tool: async (client, ctx) => {
|
|
14
14
|
const [result, apiCall] = await budgetsList(
|
|
15
15
|
client,
|
|
@@ -14,7 +14,7 @@ export const tool$budgetsSetApiKey: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "budgets-set-api-key",
|
|
15
15
|
description: `Set a apikey budget
|
|
16
16
|
|
|
17
|
-
Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend.`,
|
|
17
|
+
Creates or updates a budget for the apikey. One budget per (scope, owner); editing re-evaluates against live spend. Callable by cluster admins, or org admins for API keys in their own organization.`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await budgetsSetApiKey(
|
|
@@ -21,6 +21,9 @@ export type ConversationObject = {
|
|
|
21
21
|
* Unix timestamp of when the conversation was created
|
|
22
22
|
*/
|
|
23
23
|
createdAt: number;
|
|
24
|
+
/**
|
|
25
|
+
* Set of 16 key-value pairs. Keys max 64 chars, values max 512 chars.
|
|
26
|
+
*/
|
|
24
27
|
metadata?: { [k: string]: string } | null | undefined;
|
|
25
28
|
/**
|
|
26
29
|
* Identity of the conversation owner. Either a SHA256 hash or raw userId:externalUserId depending on IDENTITY_MODE.
|
|
@@ -18,6 +18,9 @@ export type CreateConversationRequest = {
|
|
|
18
18
|
* Initial items to include in the conversation context. Max 20 items at a time.
|
|
19
19
|
*/
|
|
20
20
|
items?: Array<Item> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Set of 16 key-value pairs for storing additional information.
|
|
23
|
+
*/
|
|
21
24
|
metadata?: { [k: string]: string } | undefined;
|
|
22
25
|
};
|
|
23
26
|
|
|
@@ -8,6 +8,12 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
EvalDataset,
|
|
13
|
+
EvalDataset$inboundSchema,
|
|
14
|
+
EvalDataset$Outbound,
|
|
15
|
+
EvalDataset$outboundSchema,
|
|
16
|
+
} from "./evaldataset.js";
|
|
11
17
|
|
|
12
18
|
export const Strategy = {
|
|
13
19
|
First: "first",
|
|
@@ -18,9 +24,9 @@ export type Strategy = ClosedEnum<typeof Strategy>;
|
|
|
18
24
|
export type EvalFewshotConfig = {
|
|
19
25
|
count?: number | undefined;
|
|
20
26
|
/**
|
|
21
|
-
*
|
|
27
|
+
* Dataset backing an eval task.
|
|
22
28
|
*/
|
|
23
|
-
dataset?:
|
|
29
|
+
dataset?: EvalDataset | undefined;
|
|
24
30
|
/**
|
|
25
31
|
* Optional prompt template for few-shot examples. Defaults to task prompt_template.
|
|
26
32
|
*/
|
|
@@ -55,7 +61,7 @@ export const EvalFewshotConfig$inboundSchema: z.ZodType<
|
|
|
55
61
|
unknown
|
|
56
62
|
> = z.object({
|
|
57
63
|
count: z.number().int().default(0),
|
|
58
|
-
dataset:
|
|
64
|
+
dataset: EvalDataset$inboundSchema.optional(),
|
|
59
65
|
prompt_template: z.string().optional(),
|
|
60
66
|
target_template: z.string().optional(),
|
|
61
67
|
example_template: z.string().default("{{prompt}}\n{{target}}"),
|
|
@@ -72,7 +78,7 @@ export const EvalFewshotConfig$inboundSchema: z.ZodType<
|
|
|
72
78
|
/** @internal */
|
|
73
79
|
export type EvalFewshotConfig$Outbound = {
|
|
74
80
|
count: number;
|
|
75
|
-
dataset?:
|
|
81
|
+
dataset?: EvalDataset$Outbound | undefined;
|
|
76
82
|
prompt_template?: string | undefined;
|
|
77
83
|
target_template?: string | undefined;
|
|
78
84
|
example_template: string;
|
|
@@ -88,7 +94,7 @@ export const EvalFewshotConfig$outboundSchema: z.ZodType<
|
|
|
88
94
|
EvalFewshotConfig
|
|
89
95
|
> = z.object({
|
|
90
96
|
count: z.number().int().default(0),
|
|
91
|
-
dataset:
|
|
97
|
+
dataset: EvalDataset$outboundSchema.optional(),
|
|
92
98
|
promptTemplate: z.string().optional(),
|
|
93
99
|
targetTemplate: z.string().optional(),
|
|
94
100
|
exampleTemplate: z.string().default("{{prompt}}\n{{target}}"),
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
12
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
13
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
14
|
+
|
|
15
|
+
export const Aggregation = {
|
|
16
|
+
Mean: "mean",
|
|
17
|
+
None: "none",
|
|
18
|
+
} as const;
|
|
19
|
+
export type Aggregation = ClosedEnum<typeof Aggregation>;
|
|
20
|
+
|
|
21
|
+
export type EvalMetric = {
|
|
22
|
+
id: string;
|
|
23
|
+
aggregation?: Aggregation | undefined;
|
|
24
|
+
higherIsBetter?: boolean | undefined;
|
|
25
|
+
description?: string | undefined;
|
|
26
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const Aggregation$inboundSchema: z.ZodNativeEnum<typeof Aggregation> = z
|
|
31
|
+
.nativeEnum(Aggregation);
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const Aggregation$outboundSchema: z.ZodNativeEnum<typeof Aggregation> =
|
|
34
|
+
Aggregation$inboundSchema;
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const EvalMetric$inboundSchema: z.ZodType<
|
|
38
|
+
EvalMetric,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = collectExtraKeys$(
|
|
42
|
+
z.object({
|
|
43
|
+
id: z.string(),
|
|
44
|
+
aggregation: Aggregation$inboundSchema.default("mean"),
|
|
45
|
+
higher_is_better: z.boolean().default(true),
|
|
46
|
+
description: z.string().optional(),
|
|
47
|
+
}).catchall(z.any()),
|
|
48
|
+
"additionalProperties",
|
|
49
|
+
true,
|
|
50
|
+
).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"higher_is_better": "higherIsBetter",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type EvalMetric$Outbound = {
|
|
57
|
+
id: string;
|
|
58
|
+
aggregation: string;
|
|
59
|
+
higher_is_better: boolean;
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
[additionalProperties: string]: unknown;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const EvalMetric$outboundSchema: z.ZodType<
|
|
66
|
+
EvalMetric$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
EvalMetric
|
|
69
|
+
> = z.object({
|
|
70
|
+
id: z.string(),
|
|
71
|
+
aggregation: Aggregation$outboundSchema.default("mean"),
|
|
72
|
+
higherIsBetter: z.boolean().default(true),
|
|
73
|
+
description: z.string().optional(),
|
|
74
|
+
additionalProperties: z.record(z.any()).optional(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return {
|
|
77
|
+
...v.additionalProperties,
|
|
78
|
+
...remap$(v, {
|
|
79
|
+
higherIsBetter: "higher_is_better",
|
|
80
|
+
additionalProperties: null,
|
|
81
|
+
}),
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
export function evalMetricToJSON(evalMetric: EvalMetric): string {
|
|
86
|
+
return JSON.stringify(EvalMetric$outboundSchema.parse(evalMetric));
|
|
87
|
+
}
|
|
88
|
+
export function evalMetricFromJSON(
|
|
89
|
+
jsonString: string,
|
|
90
|
+
): SafeParseResult<EvalMetric, SDKValidationError> {
|
|
91
|
+
return safeParse(
|
|
92
|
+
jsonString,
|
|
93
|
+
(x) => EvalMetric$inboundSchema.parse(JSON.parse(x)),
|
|
94
|
+
`Failed to parse 'EvalMetric' from JSON`,
|
|
95
|
+
);
|
|
96
|
+
}
|
|
@@ -19,6 +19,12 @@ import {
|
|
|
19
19
|
EvalFewshotConfig$Outbound,
|
|
20
20
|
EvalFewshotConfig$outboundSchema,
|
|
21
21
|
} from "./evalfewshotconfig.js";
|
|
22
|
+
import {
|
|
23
|
+
EvalMetric,
|
|
24
|
+
EvalMetric$inboundSchema,
|
|
25
|
+
EvalMetric$Outbound,
|
|
26
|
+
EvalMetric$outboundSchema,
|
|
27
|
+
} from "./evalmetric.js";
|
|
22
28
|
import {
|
|
23
29
|
EvalOutputExtraction,
|
|
24
30
|
EvalOutputExtraction$inboundSchema,
|
|
@@ -58,7 +64,7 @@ export type EvalTask = {
|
|
|
58
64
|
targetTemplate?: string | undefined;
|
|
59
65
|
choices?: Array<string> | undefined;
|
|
60
66
|
outputExtraction?: EvalOutputExtraction | undefined;
|
|
61
|
-
metrics?: Array<
|
|
67
|
+
metrics?: Array<EvalMetric> | undefined;
|
|
62
68
|
grader: EvalPythonGrader;
|
|
63
69
|
preprocess?: EvalPythonPreprocessor | undefined;
|
|
64
70
|
fewshot?: EvalFewshotConfig | undefined;
|
|
@@ -83,7 +89,7 @@ export const EvalTask$inboundSchema: z.ZodType<
|
|
|
83
89
|
target_template: z.string().optional(),
|
|
84
90
|
choices: z.array(z.string()).optional(),
|
|
85
91
|
output_extraction: EvalOutputExtraction$inboundSchema.optional(),
|
|
86
|
-
metrics: z.array(
|
|
92
|
+
metrics: z.array(EvalMetric$inboundSchema).optional(),
|
|
87
93
|
grader: EvalPythonGrader$inboundSchema,
|
|
88
94
|
preprocess: EvalPythonPreprocessor$inboundSchema.optional(),
|
|
89
95
|
fewshot: EvalFewshotConfig$inboundSchema.optional(),
|
|
@@ -107,7 +113,7 @@ export type EvalTask$Outbound = {
|
|
|
107
113
|
target_template?: string | undefined;
|
|
108
114
|
choices?: Array<string> | undefined;
|
|
109
115
|
output_extraction?: EvalOutputExtraction$Outbound | undefined;
|
|
110
|
-
metrics?: Array<
|
|
116
|
+
metrics?: Array<EvalMetric$Outbound> | undefined;
|
|
111
117
|
grader: EvalPythonGrader$Outbound;
|
|
112
118
|
preprocess?: EvalPythonPreprocessor$Outbound | undefined;
|
|
113
119
|
fewshot?: EvalFewshotConfig$Outbound | undefined;
|
|
@@ -129,7 +135,7 @@ export const EvalTask$outboundSchema: z.ZodType<
|
|
|
129
135
|
targetTemplate: z.string().optional(),
|
|
130
136
|
choices: z.array(z.string()).optional(),
|
|
131
137
|
outputExtraction: EvalOutputExtraction$outboundSchema.optional(),
|
|
132
|
-
metrics: z.array(
|
|
138
|
+
metrics: z.array(EvalMetric$outboundSchema).optional(),
|
|
133
139
|
grader: EvalPythonGrader$outboundSchema,
|
|
134
140
|
preprocess: EvalPythonPreprocessor$outboundSchema.optional(),
|
|
135
141
|
fewshot: EvalFewshotConfig$outboundSchema.optional(),
|
|
@@ -167,6 +167,7 @@ export * from "./evaldatasetformat.js";
|
|
|
167
167
|
export * from "./evalfewshotconfig.js";
|
|
168
168
|
export * from "./evalgenerationconfig.js";
|
|
169
169
|
export * from "./evalhistoricalimportobject.js";
|
|
170
|
+
export * from "./evalmetric.js";
|
|
170
171
|
export * from "./evaloutputextraction.js";
|
|
171
172
|
export * from "./evalpythongrader.js";
|
|
172
173
|
export * from "./evalpythongradercontract.js";
|
|
@@ -272,7 +273,6 @@ export * from "./inputimagemask.js";
|
|
|
272
273
|
export * from "./inputitemlistobject.js";
|
|
273
274
|
export * from "./inputmessage.js";
|
|
274
275
|
export * from "./inputmessagecontent.js";
|
|
275
|
-
export * from "./inputmessagewithid.js";
|
|
276
276
|
export * from "./inputtext.js";
|
|
277
277
|
export * from "./inputtokensdetails.js";
|
|
278
278
|
export * from "./insertdatarequest.js";
|
|
@@ -280,10 +280,8 @@ export * from "./insertdataresponse.js";
|
|
|
280
280
|
export * from "./integrationobject.js";
|
|
281
281
|
export * from "./intfield.js";
|
|
282
282
|
export * from "./item.js";
|
|
283
|
-
export * from "./itemlistobject.js";
|
|
284
283
|
export * from "./itemreference.js";
|
|
285
284
|
export * from "./itemreferencewithid.js";
|
|
286
|
-
export * from "./itemwithid.js";
|
|
287
285
|
export * from "./ivfflatindexconfig.js";
|
|
288
286
|
export * from "./ivfpqindexconfig.js";
|
|
289
287
|
export * from "./jobevent.js";
|
|
@@ -267,6 +267,9 @@ export type Llm = {
|
|
|
267
267
|
* Specifies the processing tier for serving the request. 'auto' lets the system choose, 'default' uses standard processing, 'flex' allows flexible scheduling for lower priority, 'priority' provides faster processing. Defaults to 'auto'.
|
|
268
268
|
*/
|
|
269
269
|
serviceTier?: LivekitTokenRequestServiceTier | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* Custom metadata to attach to this response as key-value pairs. Keys must be strings up to 64 characters, values must be strings up to 512 characters. Maximum 16 pairs. Useful for tracking, categorization, or passing custom identifiers through your system.
|
|
272
|
+
*/
|
|
270
273
|
metadata?: { [k: string]: string } | undefined;
|
|
271
274
|
text?: TextConfiguration | undefined;
|
|
272
275
|
};
|