mtmsdk 0.0.14 → 0.0.16
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/dist/adk/api/client.d.ts +9 -0
- package/dist/adk/api/client.d.ts.map +1 -0
- package/dist/adk/api/client.js +39 -0
- package/dist/adk/api/client.js.map +1 -0
- package/dist/adk/core/constants/tool-icons.d.ts +21 -0
- package/dist/adk/core/constants/tool-icons.d.ts.map +1 -0
- package/dist/adk/core/constants/tool-icons.js +47 -0
- package/dist/adk/core/constants/tool-icons.js.map +1 -0
- package/dist/adk/core/models/AgentBuilder.d.ts +77 -0
- package/dist/adk/core/models/AgentBuilder.d.ts.map +1 -0
- package/dist/adk/core/models/AgentBuilder.js +18 -0
- package/dist/adk/core/models/AgentBuilder.js.map +1 -0
- package/dist/adk/core/models/AgentRunRequest.d.ts +37 -0
- package/dist/adk/core/models/AgentRunRequest.d.ts.map +1 -0
- package/dist/adk/core/models/AgentRunRequest.js +18 -0
- package/dist/adk/core/models/AgentRunRequest.js.map +1 -0
- package/dist/adk/core/models/Eval.d.ts +55 -0
- package/dist/adk/core/models/Eval.d.ts.map +1 -0
- package/dist/adk/core/models/Eval.js +27 -0
- package/dist/adk/core/models/Eval.js.map +1 -0
- package/dist/adk/core/models/LiveRequest.d.ts +23 -0
- package/dist/adk/core/models/LiveRequest.d.ts.map +1 -0
- package/dist/adk/core/models/LiveRequest.js +18 -0
- package/dist/adk/core/models/LiveRequest.js.map +1 -0
- package/dist/adk/core/models/RuntimeConfig.d.ts +32 -0
- package/dist/adk/core/models/RuntimeConfig.d.ts.map +1 -0
- package/dist/adk/core/models/RuntimeConfig.js +18 -0
- package/dist/adk/core/models/RuntimeConfig.js.map +1 -0
- package/dist/adk/core/models/Session.d.ts +117 -0
- package/dist/adk/core/models/Session.d.ts.map +1 -0
- package/dist/adk/core/models/Session.js +31 -0
- package/dist/adk/core/models/Session.js.map +1 -0
- package/dist/adk/core/models/Trace.d.ts +40 -0
- package/dist/adk/core/models/Trace.d.ts.map +1 -0
- package/dist/adk/core/models/Trace.js +2 -0
- package/dist/adk/core/models/Trace.js.map +1 -0
- package/dist/adk/core/models/types.d.ts +338 -0
- package/dist/adk/core/models/types.d.ts.map +1 -0
- package/dist/adk/core/models/types.js +189 -0
- package/dist/adk/core/models/types.js.map +1 -0
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +3017 -0
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/api_hatchet/@tanstack/react-query.gen.js +2776 -0
- package/dist/api_hatchet/@tanstack/react-query.gen.js.map +1 -0
- package/dist/api_hatchet/client/client.gen.d.ts +3 -0
- package/dist/api_hatchet/client/client.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/client/client.gen.js +70 -46
- package/dist/api_hatchet/client/client.gen.js.map +1 -0
- package/dist/api_hatchet/client/index.d.ts +9 -0
- package/dist/api_hatchet/client/index.d.ts.map +1 -0
- package/dist/api_hatchet/client/index.js +7 -0
- package/dist/api_hatchet/client/index.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/client/types.gen.d.ts +19 -26
- package/dist/api_hatchet/client/types.gen.d.ts.map +1 -0
- package/dist/api_hatchet/client/types.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/client/utils.gen.d.ts +4 -4
- package/dist/api_hatchet/client/utils.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/client/utils.gen.js +41 -40
- package/dist/api_hatchet/client/utils.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/client.gen.d.ts +2 -2
- package/dist/api_hatchet/client.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/client.gen.js +1 -1
- package/dist/api_hatchet/client.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/auth.gen.d.ts +3 -3
- package/dist/api_hatchet/core/auth.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/auth.gen.js +3 -3
- package/dist/api_hatchet/core/auth.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/bodySerializer.gen.d.ts +13 -5
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/bodySerializer.gen.js +3 -3
- package/dist/api_hatchet/core/bodySerializer.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/params.gen.d.ts +13 -3
- package/dist/api_hatchet/core/params.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/params.gen.js +24 -12
- package/dist/api_hatchet/core/params.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/pathSerializer.gen.d.ts +3 -3
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/pathSerializer.gen.js +36 -36
- package/dist/api_hatchet/core/pathSerializer.gen.js.map +1 -0
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/api_hatchet/core/queryKeySerializer.gen.js +100 -0
- package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/serverSentEvents.gen.d.ts +3 -3
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/serverSentEvents.gen.js +20 -18
- package/dist/api_hatchet/core/serverSentEvents.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/types.gen.d.ts +4 -4
- package/dist/api_hatchet/core/types.gen.d.ts.map +1 -0
- package/dist/api_hatchet/core/types.gen.js.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/utils.gen.d.ts +1 -1
- package/dist/api_hatchet/core/utils.gen.d.ts.map +1 -0
- package/dist/{gomtmapi → api_hatchet}/core/utils.gen.js +17 -17
- package/dist/api_hatchet/core/utils.gen.js.map +1 -0
- package/dist/api_hatchet/index.d.ts +3 -0
- package/dist/api_hatchet/index.d.ts.map +1 -0
- package/dist/api_hatchet/index.js +4 -0
- package/dist/api_hatchet/index.js.map +1 -0
- package/dist/api_hatchet/schemas.gen.d.ts +4068 -0
- package/dist/api_hatchet/schemas.gen.d.ts.map +1 -0
- package/dist/api_hatchet/schemas.gen.js +4743 -0
- package/dist/api_hatchet/schemas.gen.js.map +1 -0
- package/dist/api_hatchet/sdk.gen.d.ts +784 -0
- package/dist/api_hatchet/sdk.gen.d.ts.map +1 -0
- package/dist/api_hatchet/sdk.gen.js +1849 -0
- package/dist/api_hatchet/sdk.gen.js.map +1 -0
- package/dist/api_hatchet/types.gen.d.ts +6861 -0
- package/dist/api_hatchet/types.gen.d.ts.map +1 -0
- package/dist/api_hatchet/types.gen.js +209 -0
- package/dist/api_hatchet/types.gen.js.map +1 -0
- package/dist/api_hatchet/zod.gen.d.ts +10429 -0
- package/dist/api_hatchet/zod.gen.d.ts.map +1 -0
- package/dist/api_hatchet/zod.gen.js +2766 -0
- package/dist/api_hatchet/zod.gen.js.map +1 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +156 -668
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +460 -1007
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi_v2/client/client.gen.d.ts +1 -1
- package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/client.gen.js +70 -46
- package/dist/gomtmapi_v2/client/client.gen.js.map +1 -1
- package/dist/gomtmapi_v2/client/index.d.ts +8 -7
- package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/index.js +5 -4
- package/dist/gomtmapi_v2/client/index.js.map +1 -1
- package/dist/gomtmapi_v2/client/types.gen.d.ts +19 -26
- package/dist/gomtmapi_v2/client/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/utils.gen.d.ts +4 -4
- package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/utils.gen.js +41 -40
- package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -1
- package/dist/gomtmapi_v2/client.gen.d.ts +2 -2
- package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client.gen.js +1 -1
- package/dist/gomtmapi_v2/client.gen.js.map +1 -1
- package/dist/gomtmapi_v2/core/auth.gen.d.ts +3 -3
- package/dist/gomtmapi_v2/core/auth.gen.js +3 -3
- package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts +13 -5
- package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/core/bodySerializer.gen.js +3 -3
- package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +1 -1
- package/dist/gomtmapi_v2/core/params.gen.d.ts +13 -3
- package/dist/gomtmapi_v2/core/params.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/core/params.gen.js +24 -12
- package/dist/gomtmapi_v2/core/params.gen.js.map +1 -1
- package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts +3 -3
- package/dist/gomtmapi_v2/core/pathSerializer.gen.js +36 -36
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js +100 -0
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts +3 -3
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.js +20 -18
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +1 -1
- package/dist/gomtmapi_v2/core/types.gen.d.ts +4 -4
- package/dist/gomtmapi_v2/core/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/core/utils.gen.d.ts +1 -1
- package/dist/gomtmapi_v2/core/utils.gen.js +17 -17
- package/dist/gomtmapi_v2/index.d.ts +2 -2
- package/dist/gomtmapi_v2/index.js +1 -1
- package/dist/gomtmapi_v2/schemas.gen.d.ts +51 -727
- package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/schemas.gen.js +752 -1392
- package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
- package/dist/gomtmapi_v2/sdk.gen.d.ts +90 -362
- package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/sdk.gen.js +241 -776
- package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
- package/dist/gomtmapi_v2/types.gen.d.ts +132 -917
- package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/zod.gen.d.ts +40 -734
- package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/zod.gen.js +191 -651
- package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
- package/dist/lib/aisdk/types.d.ts +3 -0
- package/dist/lib/aisdk/types.d.ts.map +1 -0
- package/dist/lib/aisdk/types.js +5 -0
- package/dist/lib/aisdk/types.js.map +1 -0
- package/dist/lib/logger/index.d.ts +19 -0
- package/dist/lib/logger/index.d.ts.map +1 -0
- package/dist/lib/logger/index.js +7 -0
- package/dist/lib/logger/index.js.map +1 -0
- package/dist/lib/schema.d.ts +41 -0
- package/dist/lib/schema.d.ts.map +1 -0
- package/dist/lib/schema.js +37 -0
- package/dist/lib/schema.js.map +1 -0
- package/dist/lib/utils.d.ts +14 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +45 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +194 -1693
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +234 -1405
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtgate_api/client/client.gen.d.ts +1 -1
- package/dist/mtgate_api/client/client.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client/client.gen.js +70 -46
- package/dist/mtgate_api/client/client.gen.js.map +1 -1
- package/dist/mtgate_api/client/index.d.ts +8 -7
- package/dist/mtgate_api/client/index.d.ts.map +1 -1
- package/dist/mtgate_api/client/index.js +5 -4
- package/dist/mtgate_api/client/index.js.map +1 -1
- package/dist/mtgate_api/client/types.gen.d.ts +19 -26
- package/dist/mtgate_api/client/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client/utils.gen.d.ts +4 -4
- package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client/utils.gen.js +41 -40
- package/dist/mtgate_api/client/utils.gen.js.map +1 -1
- package/dist/mtgate_api/client.gen.d.ts +2 -2
- package/dist/mtgate_api/client.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client.gen.js +2 -4
- package/dist/mtgate_api/client.gen.js.map +1 -1
- package/dist/mtgate_api/core/auth.gen.d.ts +3 -3
- package/dist/mtgate_api/core/auth.gen.js +3 -3
- package/dist/mtgate_api/core/bodySerializer.gen.d.ts +13 -5
- package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/mtgate_api/core/bodySerializer.gen.js +3 -3
- package/dist/mtgate_api/core/bodySerializer.gen.js.map +1 -1
- package/dist/mtgate_api/core/params.gen.d.ts +13 -3
- package/dist/mtgate_api/core/params.gen.d.ts.map +1 -1
- package/dist/mtgate_api/core/params.gen.js +24 -12
- package/dist/mtgate_api/core/params.gen.js.map +1 -1
- package/dist/mtgate_api/core/pathSerializer.gen.d.ts +3 -3
- package/dist/mtgate_api/core/pathSerializer.gen.js +36 -36
- package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/mtgate_api/core/queryKeySerializer.gen.js +100 -0
- package/dist/mtgate_api/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +3 -3
- package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/mtgate_api/core/serverSentEvents.gen.js +20 -18
- package/dist/mtgate_api/core/serverSentEvents.gen.js.map +1 -1
- package/dist/mtgate_api/core/types.gen.d.ts +4 -4
- package/dist/mtgate_api/core/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/core/utils.gen.d.ts +1 -1
- package/dist/mtgate_api/core/utils.gen.js +17 -17
- package/dist/mtgate_api/index.d.ts +2 -2
- package/dist/mtgate_api/index.d.ts.map +1 -1
- package/dist/mtgate_api/index.js +1 -2
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/schemas.gen.d.ts +384 -1302
- package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
- package/dist/mtgate_api/schemas.gen.js +595 -1485
- package/dist/mtgate_api/schemas.gen.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +25 -137
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +97 -643
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +432 -2300
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/types.gen.js +1 -7
- package/dist/mtgate_api/types.gen.js.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +985 -2672
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +322 -1472
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +105 -82
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.js +439 -475
- package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtmai_api/client/client.gen.d.ts +1 -1
- package/dist/mtmai_api/client/client.gen.d.ts.map +1 -1
- package/dist/mtmai_api/client/client.gen.js +70 -46
- package/dist/mtmai_api/client/client.gen.js.map +1 -1
- package/dist/mtmai_api/client/index.d.ts +8 -7
- package/dist/mtmai_api/client/index.d.ts.map +1 -1
- package/dist/mtmai_api/client/index.js +5 -4
- package/dist/mtmai_api/client/index.js.map +1 -1
- package/dist/mtmai_api/client/types.gen.d.ts +19 -26
- package/dist/mtmai_api/client/types.gen.d.ts.map +1 -1
- package/dist/mtmai_api/client/utils.gen.d.ts +4 -4
- package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -1
- package/dist/mtmai_api/client/utils.gen.js +41 -40
- package/dist/mtmai_api/client/utils.gen.js.map +1 -1
- package/dist/mtmai_api/client.gen.d.ts +2 -2
- package/dist/mtmai_api/client.gen.d.ts.map +1 -1
- package/dist/mtmai_api/client.gen.js +1 -1
- package/dist/mtmai_api/client.gen.js.map +1 -1
- package/dist/mtmai_api/core/auth.gen.d.ts +3 -3
- package/dist/mtmai_api/core/auth.gen.js +3 -3
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts +13 -5
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/mtmai_api/core/bodySerializer.gen.js +3 -3
- package/dist/mtmai_api/core/bodySerializer.gen.js.map +1 -1
- package/dist/mtmai_api/core/params.gen.d.ts +13 -3
- package/dist/mtmai_api/core/params.gen.d.ts.map +1 -1
- package/dist/mtmai_api/core/params.gen.js +24 -12
- package/dist/mtmai_api/core/params.gen.js.map +1 -1
- package/dist/mtmai_api/core/pathSerializer.gen.d.ts +3 -3
- package/dist/mtmai_api/core/pathSerializer.gen.js +36 -36
- package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/mtmai_api/core/queryKeySerializer.gen.js +100 -0
- package/dist/mtmai_api/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +3 -3
- package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/mtmai_api/core/serverSentEvents.gen.js +20 -18
- package/dist/mtmai_api/core/serverSentEvents.gen.js.map +1 -1
- package/dist/mtmai_api/core/types.gen.d.ts +4 -4
- package/dist/mtmai_api/core/types.gen.d.ts.map +1 -1
- package/dist/mtmai_api/core/utils.gen.d.ts +1 -1
- package/dist/mtmai_api/core/utils.gen.js +17 -17
- package/dist/mtmai_api/index.d.ts +2 -2
- package/dist/mtmai_api/index.js +2 -2
- package/dist/mtmai_api/schemas.gen.d.ts.map +1 -1
- package/dist/mtmai_api/schemas.gen.js +4363 -4616
- package/dist/mtmai_api/schemas.gen.js.map +1 -1
- package/dist/mtmai_api/sdk.gen.d.ts +25 -2
- package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtmai_api/sdk.gen.js +211 -391
- package/dist/mtmai_api/sdk.gen.js.map +1 -1
- package/dist/mtmai_api/types.gen.d.ts +645 -81
- package/dist/mtmai_api/types.gen.d.ts.map +1 -1
- package/dist/mtmai_api/types.gen.js +116 -103
- package/dist/mtmai_api/types.gen.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +17408 -17216
- package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
- package/dist/mtmai_api/zod.gen.js +3741 -1895
- package/dist/mtmai_api/zod.gen.js.map +1 -1
- package/dist/sbapi/@tanstack/react-query.gen.d.ts +35 -0
- package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/sbapi/@tanstack/react-query.gen.js +40 -0
- package/dist/sbapi/@tanstack/react-query.gen.js.map +1 -0
- package/dist/sbapi/client/client.gen.d.ts +3 -0
- package/dist/sbapi/client/client.gen.d.ts.map +1 -0
- package/dist/sbapi/client/client.gen.js +229 -0
- package/dist/sbapi/client/client.gen.js.map +1 -0
- package/dist/sbapi/client/index.d.ts +9 -0
- package/dist/sbapi/client/index.d.ts.map +1 -0
- package/dist/sbapi/client/index.js +7 -0
- package/dist/sbapi/client/index.js.map +1 -0
- package/dist/sbapi/client/types.gen.d.ts +118 -0
- package/dist/sbapi/client/types.gen.d.ts.map +1 -0
- package/dist/sbapi/client/types.gen.js +3 -0
- package/dist/sbapi/client/types.gen.js.map +1 -0
- package/dist/sbapi/client/utils.gen.d.ts +34 -0
- package/dist/sbapi/client/utils.gen.d.ts.map +1 -0
- package/dist/sbapi/client/utils.gen.js +232 -0
- package/dist/sbapi/client/utils.gen.js.map +1 -0
- package/dist/sbapi/client.gen.d.ts +13 -0
- package/dist/sbapi/client.gen.d.ts.map +1 -0
- package/dist/sbapi/client.gen.js +4 -0
- package/dist/sbapi/client.gen.js.map +1 -0
- package/dist/sbapi/core/auth.gen.d.ts +19 -0
- package/dist/sbapi/core/auth.gen.d.ts.map +1 -0
- package/dist/sbapi/core/auth.gen.js +15 -0
- package/dist/sbapi/core/auth.gen.js.map +1 -0
- package/dist/sbapi/core/bodySerializer.gen.d.ts +26 -0
- package/dist/sbapi/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/sbapi/core/bodySerializer.gen.js +58 -0
- package/dist/sbapi/core/bodySerializer.gen.js.map +1 -0
- package/dist/sbapi/core/params.gen.d.ts +44 -0
- package/dist/sbapi/core/params.gen.d.ts.map +1 -0
- package/dist/sbapi/core/params.gen.js +101 -0
- package/dist/sbapi/core/params.gen.js.map +1 -0
- package/dist/sbapi/core/pathSerializer.gen.d.ts +34 -0
- package/dist/sbapi/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/sbapi/core/pathSerializer.gen.js +115 -0
- package/dist/sbapi/core/pathSerializer.gen.js.map +1 -0
- package/dist/sbapi/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/sbapi/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/sbapi/core/queryKeySerializer.gen.js +100 -0
- package/dist/sbapi/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/sbapi/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/sbapi/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/sbapi/core/serverSentEvents.gen.js +138 -0
- package/dist/sbapi/core/serverSentEvents.gen.js.map +1 -0
- package/dist/sbapi/core/types.gen.d.ts +79 -0
- package/dist/sbapi/core/types.gen.d.ts.map +1 -0
- package/dist/sbapi/core/types.gen.js +3 -0
- package/dist/sbapi/core/types.gen.js.map +1 -0
- package/dist/sbapi/core/utils.gen.d.ts +20 -0
- package/dist/sbapi/core/utils.gen.d.ts.map +1 -0
- package/dist/sbapi/core/utils.gen.js +88 -0
- package/dist/sbapi/core/utils.gen.js.map +1 -0
- package/dist/sbapi/index.d.ts +3 -0
- package/dist/sbapi/index.d.ts.map +1 -0
- package/dist/sbapi/index.js +3 -0
- package/dist/sbapi/index.js.map +1 -0
- package/dist/sbapi/schemas.gen.d.ts +38 -0
- package/dist/sbapi/schemas.gen.d.ts.map +1 -0
- package/dist/sbapi/schemas.gen.js +48 -0
- package/dist/sbapi/schemas.gen.js.map +1 -0
- package/dist/sbapi/sdk.gen.d.ts +17 -0
- package/dist/sbapi/sdk.gen.d.ts.map +1 -0
- package/dist/sbapi/sdk.gen.js +4 -0
- package/dist/sbapi/sdk.gen.js.map +1 -0
- package/dist/sbapi/types.gen.d.ts +54 -0
- package/dist/sbapi/types.gen.d.ts.map +1 -0
- package/dist/sbapi/types.gen.js +3 -0
- package/dist/sbapi/types.gen.js.map +1 -0
- package/dist/sbapi/zod.gen.d.ts +39 -0
- package/dist/sbapi/zod.gen.d.ts.map +1 -0
- package/dist/sbapi/zod.gen.js +31 -0
- package/dist/sbapi/zod.gen.js.map +1 -0
- package/dist/schema/browser.d.ts +29 -0
- package/dist/schema/browser.d.ts.map +1 -0
- package/dist/schema/browser.js +41 -0
- package/dist/schema/browser.js.map +1 -0
- package/dist/supabase/supabase-browser.d.ts +4 -0
- package/dist/supabase/supabase-browser.d.ts.map +1 -0
- package/dist/supabase/supabase-browser.js +20 -0
- package/dist/supabase/supabase-browser.js.map +1 -0
- package/dist/supabase/supabase-client.d.ts +1941 -0
- package/dist/supabase/supabase-client.d.ts.map +1 -0
- package/dist/supabase/supabase-client.js +23 -0
- package/dist/supabase/supabase-client.js.map +1 -0
- package/dist/supabase/supabase.d.ts +3881 -0
- package/dist/supabase/supabase.d.ts.map +1 -0
- package/dist/supabase/supabase.js +89 -0
- package/dist/supabase/supabase.js.map +1 -0
- package/dist/supabase/use-sb-query/build-query-opts.d.ts +6 -0
- package/dist/supabase/use-sb-query/build-query-opts.d.ts.map +1 -0
- package/dist/supabase/use-sb-query/build-query-opts.js +33 -0
- package/dist/supabase/use-sb-query/build-query-opts.js.map +1 -0
- package/dist/supabase/use-sb-query/key.d.ts +10 -0
- package/dist/supabase/use-sb-query/key.d.ts.map +1 -0
- package/dist/supabase/use-sb-query/key.js +46 -0
- package/dist/supabase/use-sb-query/key.js.map +1 -0
- package/dist/supabase/use-sb-query/prefetch.d.ts +10 -0
- package/dist/supabase/use-sb-query/prefetch.d.ts.map +1 -0
- package/dist/supabase/use-sb-query/prefetch.js +14 -0
- package/dist/supabase/use-sb-query/prefetch.js.map +1 -0
- package/dist/supabase/use-sb-query/use-query.d.ts +133 -0
- package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -0
- package/dist/supabase/use-sb-query/use-query.js +117 -0
- package/dist/supabase/use-sb-query/use-query.js.map +1 -0
- package/dist/supabase/utils.d.ts +21 -0
- package/dist/supabase/utils.d.ts.map +1 -0
- package/dist/supabase/utils.js +46 -0
- package/dist/supabase/utils.js.map +1 -0
- package/dist/types/database.types.d.ts +2018 -0
- package/dist/types/database.types.d.ts.map +1 -0
- package/dist/types/database.types.js +6 -0
- package/dist/types/database.types.js.map +1 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +61 -70
- package/dist/components/MustAdmin.d.ts +0 -14
- package/dist/components/MustAdmin.d.ts.map +0 -1
- package/dist/components/MustAdmin.js +0 -37
- package/dist/components/MustAdmin.js.map +0 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +0 -947
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +0 -1023
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +0 -1
- package/dist/gomtmapi/client/client.gen.d.ts +0 -3
- package/dist/gomtmapi/client/client.gen.d.ts.map +0 -1
- package/dist/gomtmapi/client/client.gen.js.map +0 -1
- package/dist/gomtmapi/client/index.d.ts +0 -8
- package/dist/gomtmapi/client/index.d.ts.map +0 -1
- package/dist/gomtmapi/client/index.js +0 -6
- package/dist/gomtmapi/client/index.js.map +0 -1
- package/dist/gomtmapi/client/types.gen.d.ts.map +0 -1
- package/dist/gomtmapi/client/types.gen.js.map +0 -1
- package/dist/gomtmapi/client/utils.gen.d.ts.map +0 -1
- package/dist/gomtmapi/client/utils.gen.js.map +0 -1
- package/dist/gomtmapi/client.gen.d.ts.map +0 -1
- package/dist/gomtmapi/client.gen.js.map +0 -1
- package/dist/gomtmapi/core/auth.gen.d.ts.map +0 -1
- package/dist/gomtmapi/core/auth.gen.js.map +0 -1
- package/dist/gomtmapi/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/gomtmapi/core/bodySerializer.gen.js.map +0 -1
- package/dist/gomtmapi/core/params.gen.d.ts.map +0 -1
- package/dist/gomtmapi/core/params.gen.js.map +0 -1
- package/dist/gomtmapi/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/gomtmapi/core/pathSerializer.gen.js.map +0 -1
- package/dist/gomtmapi/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/gomtmapi/core/serverSentEvents.gen.js.map +0 -1
- package/dist/gomtmapi/core/types.gen.d.ts.map +0 -1
- package/dist/gomtmapi/core/types.gen.js.map +0 -1
- package/dist/gomtmapi/core/utils.gen.d.ts.map +0 -1
- package/dist/gomtmapi/core/utils.gen.js.map +0 -1
- package/dist/gomtmapi/index.d.ts +0 -3
- package/dist/gomtmapi/index.d.ts.map +0 -1
- package/dist/gomtmapi/index.js +0 -4
- package/dist/gomtmapi/index.js.map +0 -1
- package/dist/gomtmapi/schemas.gen.d.ts +0 -1445
- package/dist/gomtmapi/schemas.gen.d.ts.map +0 -1
- package/dist/gomtmapi/schemas.gen.js +0 -1474
- package/dist/gomtmapi/schemas.gen.js.map +0 -1
- package/dist/gomtmapi/sdk.gen.d.ts +0 -271
- package/dist/gomtmapi/sdk.gen.d.ts.map +0 -1
- package/dist/gomtmapi/sdk.gen.js +0 -974
- package/dist/gomtmapi/sdk.gen.js.map +0 -1
- package/dist/gomtmapi/types.gen.d.ts +0 -2302
- package/dist/gomtmapi/types.gen.d.ts.map +0 -1
- package/dist/gomtmapi/types.gen.js +0 -33
- package/dist/gomtmapi/types.gen.js.map +0 -1
- package/dist/gomtmapi/zod.gen.d.ts +0 -2067
- package/dist/gomtmapi/zod.gen.d.ts.map +0 -1
- package/dist/gomtmapi/zod.gen.js +0 -875
- package/dist/gomtmapi/zod.gen.js.map +0 -1
- package/dist/lib/adk-utils.d.ts +0 -19
- package/dist/lib/adk-utils.d.ts.map +0 -1
- package/dist/lib/adk-utils.js +0 -50
- package/dist/lib/adk-utils.js.map +0 -1
- package/dist/lib/auth-client.d.ts +0 -5965
- package/dist/lib/auth-client.d.ts.map +0 -1
- package/dist/lib/auth-client.js +0 -29
- package/dist/lib/auth-client.js.map +0 -1
- package/dist/lib/get-query-client.d.ts +0 -3
- package/dist/lib/get-query-client.d.ts.map +0 -1
- package/dist/lib/get-query-client.js +0 -23
- package/dist/lib/get-query-client.js.map +0 -1
- package/dist/lib/mtgate_client_ss.d.ts +0 -10
- package/dist/lib/mtgate_client_ss.d.ts.map +0 -1
- package/dist/lib/mtgate_client_ss.js +0 -24
- package/dist/lib/mtgate_client_ss.js.map +0 -1
- package/dist/store/AuthProviders.d.ts +0 -8
- package/dist/store/AuthProviders.d.ts.map +0 -1
- package/dist/store/AuthProviders.js +0 -34
- package/dist/store/AuthProviders.js.map +0 -1
- package/dist/store/GomtmProvider.d.ts +0 -10
- package/dist/store/GomtmProvider.d.ts.map +0 -1
- package/dist/store/GomtmProvider.js +0 -24
- package/dist/store/GomtmProvider.js.map +0 -1
- package/dist/store/GomtmV1Provider.d.ts +0 -10
- package/dist/store/GomtmV1Provider.d.ts.map +0 -1
- package/dist/store/GomtmV1Provider.js +0 -24
- package/dist/store/GomtmV1Provider.js.map +0 -1
- package/dist/store/MtgateProvider.d.ts +0 -6015
- package/dist/store/MtgateProvider.d.ts.map +0 -1
- package/dist/store/MtgateProvider.js +0 -76
- package/dist/store/MtgateProvider.js.map +0 -1
- package/dist/store/MtmsdkProvider.d.ts +0 -16
- package/dist/store/MtmsdkProvider.d.ts.map +0 -1
- package/dist/store/MtmsdkProvider.js +0 -47
- package/dist/store/MtmsdkProvider.js.map +0 -1
- package/dist/store/ReactQueryMtmaiApiProvider.d.ts +0 -10
- package/dist/store/ReactQueryMtmaiApiProvider.d.ts.map +0 -1
- package/dist/store/ReactQueryMtmaiApiProvider.js +0 -23
- package/dist/store/ReactQueryMtmaiApiProvider.js.map +0 -1
- /package/dist/{gomtmapi → api_hatchet}/client/types.gen.js +0 -0
- /package/dist/{gomtmapi → api_hatchet}/core/types.gen.js +0 -0
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { queryOptions } from
|
|
3
|
-
import { client } from
|
|
4
|
-
import { agentsAgentrun, builderBuild, chatAgentChat, chatAgentExportConfig, chatAgentGetChatConfig, chatAgentGetProviders, chatAgentImportConfig, chatAgentUpdateChatConfig, chatAgentValidateApiKey, createItem, createSession, createSessionWithId, debugGetEventGraph, debugGetSessionTrace, debugGetTraceDict, deleteArtifact, deleteItem, deleteSession, evaluationAddSessionToEvalSet, evaluationCreateEvalSet, evaluationCreateEvalSetLegacy, evaluationDeleteEval, evaluationGetEval, evaluationGetEvalResult, evaluationGetEvalResultLegacy, evaluationListEvalResults, evaluationListEvalResultsLegacy, evaluationListEvalSets, evaluationListEvalSetsLegacy, evaluationListEvalsInEvalSet, evaluationListMetricsInfo, evaluationRunEval, evaluationRunEvalLegacy, evaluationUpdateEval, getAgentBuilder, getItem, getSession, listApps, listArtifactNames, listArtifactVersions, listItems, listSessions, loadArtifact, loadArtifactVersion, redirectDevUiAddSlash, redirectRootToDevUi, runAgent, runAgentSse, sandboxCheckSandboxStatus, sandboxStartNapcatSandbox, searchItems, updateItem
|
|
2
|
+
import { queryOptions } from '@tanstack/react-query';
|
|
3
|
+
import { client } from '../client.gen';
|
|
4
|
+
import { agentsAgentrun, builderBuild, chatAgentChat, chatAgentExportConfig, chatAgentGetChatConfig, chatAgentGetProviders, chatAgentImportConfig, chatAgentUpdateChatConfig, chatAgentValidateApiKey, createItem, createSession, createSessionWithId, debugGetEventGraph, debugGetSessionTrace, debugGetTraceDict, deleteArtifact, deleteItem, deleteSession, evaluationAddSessionToEvalSet, evaluationCreateEvalSet, evaluationCreateEvalSetLegacy, evaluationDeleteEval, evaluationGetEval, evaluationGetEvalResult, evaluationGetEvalResultLegacy, evaluationListEvalResults, evaluationListEvalResultsLegacy, evaluationListEvalSets, evaluationListEvalSetsLegacy, evaluationListEvalsInEvalSet, evaluationListMetricsInfo, evaluationRunEval, evaluationRunEvalLegacy, evaluationUpdateEval, getAgentBuilder, getItem, getSession, listApps, listArtifactNames, listArtifactVersions, listItems, listSessions, loadArtifact, loadArtifactVersion, redirectDevUiAddSlash, redirectRootToDevUi, runAgent, runAgentSse, sandboxCheckSandboxStatus, sandboxStartNapcatSandbox, searchItems, updateItem } from '../sdk.gen';
|
|
5
5
|
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
|
-
const params = {
|
|
7
|
-
_id: id,
|
|
8
|
-
baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl,
|
|
9
|
-
};
|
|
6
|
+
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
10
7
|
if (infinite) {
|
|
11
8
|
params._infinite = infinite;
|
|
12
9
|
}
|
|
@@ -27,60 +24,54 @@ const createQueryKey = (id, options, infinite, tags) => {
|
|
|
27
24
|
}
|
|
28
25
|
return [params];
|
|
29
26
|
};
|
|
30
|
-
export const listAppsQueryKey = (options) => createQueryKey(
|
|
27
|
+
export const listAppsQueryKey = (options) => createQueryKey('listApps', options);
|
|
31
28
|
/**
|
|
32
29
|
* List Apps
|
|
33
30
|
*/
|
|
34
|
-
export const listAppsOptions = (options) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
48
|
-
export const debugGetTraceDictQueryKey = (options) => createQueryKey("debugGetTraceDict", options);
|
|
31
|
+
export const listAppsOptions = (options) => queryOptions({
|
|
32
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
33
|
+
const { data } = await listApps({
|
|
34
|
+
...options,
|
|
35
|
+
...queryKey[0],
|
|
36
|
+
signal,
|
|
37
|
+
throwOnError: true
|
|
38
|
+
});
|
|
39
|
+
return data;
|
|
40
|
+
},
|
|
41
|
+
queryKey: listAppsQueryKey(options)
|
|
42
|
+
});
|
|
43
|
+
export const debugGetTraceDictQueryKey = (options) => createQueryKey('debugGetTraceDict', options);
|
|
49
44
|
/**
|
|
50
45
|
* Get Trace Dict
|
|
51
46
|
*/
|
|
52
|
-
export const debugGetTraceDictOptions = (options) => {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
export const debugGetSessionTraceQueryKey = (options) => createQueryKey("debugGetSessionTrace", options);
|
|
47
|
+
export const debugGetTraceDictOptions = (options) => queryOptions({
|
|
48
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
49
|
+
const { data } = await debugGetTraceDict({
|
|
50
|
+
...options,
|
|
51
|
+
...queryKey[0],
|
|
52
|
+
signal,
|
|
53
|
+
throwOnError: true
|
|
54
|
+
});
|
|
55
|
+
return data;
|
|
56
|
+
},
|
|
57
|
+
queryKey: debugGetTraceDictQueryKey(options)
|
|
58
|
+
});
|
|
59
|
+
export const debugGetSessionTraceQueryKey = (options) => createQueryKey('debugGetSessionTrace', options);
|
|
67
60
|
/**
|
|
68
61
|
* Get Session Trace
|
|
69
62
|
*/
|
|
70
|
-
export const debugGetSessionTraceOptions = (options) => {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
});
|
|
83
|
-
};
|
|
63
|
+
export const debugGetSessionTraceOptions = (options) => queryOptions({
|
|
64
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
65
|
+
const { data } = await debugGetSessionTrace({
|
|
66
|
+
...options,
|
|
67
|
+
...queryKey[0],
|
|
68
|
+
signal,
|
|
69
|
+
throwOnError: true
|
|
70
|
+
});
|
|
71
|
+
return data;
|
|
72
|
+
},
|
|
73
|
+
queryKey: debugGetSessionTraceQueryKey(options)
|
|
74
|
+
});
|
|
84
75
|
/**
|
|
85
76
|
* Delete Session
|
|
86
77
|
*/
|
|
@@ -90,31 +81,29 @@ export const deleteSessionMutation = (options) => {
|
|
|
90
81
|
const { data } = await deleteSession({
|
|
91
82
|
...options,
|
|
92
83
|
...fnOptions,
|
|
93
|
-
throwOnError: true
|
|
84
|
+
throwOnError: true
|
|
94
85
|
});
|
|
95
86
|
return data;
|
|
96
|
-
}
|
|
87
|
+
}
|
|
97
88
|
};
|
|
98
89
|
return mutationOptions;
|
|
99
90
|
};
|
|
100
|
-
export const getSessionQueryKey = (options) => createQueryKey(
|
|
91
|
+
export const getSessionQueryKey = (options) => createQueryKey('getSession', options);
|
|
101
92
|
/**
|
|
102
93
|
* Get Session
|
|
103
94
|
*/
|
|
104
|
-
export const getSessionOptions = (options) => {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
});
|
|
117
|
-
};
|
|
95
|
+
export const getSessionOptions = (options) => queryOptions({
|
|
96
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
97
|
+
const { data } = await getSession({
|
|
98
|
+
...options,
|
|
99
|
+
...queryKey[0],
|
|
100
|
+
signal,
|
|
101
|
+
throwOnError: true
|
|
102
|
+
});
|
|
103
|
+
return data;
|
|
104
|
+
},
|
|
105
|
+
queryKey: getSessionQueryKey(options)
|
|
106
|
+
});
|
|
118
107
|
/**
|
|
119
108
|
* Create Session With Id
|
|
120
109
|
*/
|
|
@@ -124,31 +113,29 @@ export const createSessionWithIdMutation = (options) => {
|
|
|
124
113
|
const { data } = await createSessionWithId({
|
|
125
114
|
...options,
|
|
126
115
|
...fnOptions,
|
|
127
|
-
throwOnError: true
|
|
116
|
+
throwOnError: true
|
|
128
117
|
});
|
|
129
118
|
return data;
|
|
130
|
-
}
|
|
119
|
+
}
|
|
131
120
|
};
|
|
132
121
|
return mutationOptions;
|
|
133
122
|
};
|
|
134
|
-
export const listSessionsQueryKey = (options) => createQueryKey(
|
|
123
|
+
export const listSessionsQueryKey = (options) => createQueryKey('listSessions', options);
|
|
135
124
|
/**
|
|
136
125
|
* List Sessions
|
|
137
126
|
*/
|
|
138
|
-
export const listSessionsOptions = (options) => {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
});
|
|
151
|
-
};
|
|
127
|
+
export const listSessionsOptions = (options) => queryOptions({
|
|
128
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
129
|
+
const { data } = await listSessions({
|
|
130
|
+
...options,
|
|
131
|
+
...queryKey[0],
|
|
132
|
+
signal,
|
|
133
|
+
throwOnError: true
|
|
134
|
+
});
|
|
135
|
+
return data;
|
|
136
|
+
},
|
|
137
|
+
queryKey: listSessionsQueryKey(options)
|
|
138
|
+
});
|
|
152
139
|
/**
|
|
153
140
|
* Create Session
|
|
154
141
|
*/
|
|
@@ -158,32 +145,31 @@ export const createSessionMutation = (options) => {
|
|
|
158
145
|
const { data } = await createSession({
|
|
159
146
|
...options,
|
|
160
147
|
...fnOptions,
|
|
161
|
-
throwOnError: true
|
|
148
|
+
throwOnError: true
|
|
162
149
|
});
|
|
163
150
|
return data;
|
|
164
|
-
}
|
|
151
|
+
}
|
|
165
152
|
};
|
|
166
153
|
return mutationOptions;
|
|
167
154
|
};
|
|
168
|
-
export const evaluationListEvalSetsQueryKey = (options) => createQueryKey(
|
|
155
|
+
export const evaluationListEvalSetsQueryKey = (options) => createQueryKey('evaluationListEvalSets', options);
|
|
169
156
|
/**
|
|
170
157
|
* List Eval Sets
|
|
158
|
+
*
|
|
171
159
|
* Lists all eval sets for the given app.
|
|
172
160
|
*/
|
|
173
|
-
export const evaluationListEvalSetsOptions = (options) => {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
});
|
|
186
|
-
};
|
|
161
|
+
export const evaluationListEvalSetsOptions = (options) => queryOptions({
|
|
162
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
163
|
+
const { data } = await evaluationListEvalSets({
|
|
164
|
+
...options,
|
|
165
|
+
...queryKey[0],
|
|
166
|
+
signal,
|
|
167
|
+
throwOnError: true
|
|
168
|
+
});
|
|
169
|
+
return data;
|
|
170
|
+
},
|
|
171
|
+
queryKey: evaluationListEvalSetsQueryKey(options)
|
|
172
|
+
});
|
|
187
173
|
/**
|
|
188
174
|
* Create Eval Set
|
|
189
175
|
*/
|
|
@@ -193,15 +179,16 @@ export const evaluationCreateEvalSetMutation = (options) => {
|
|
|
193
179
|
const { data } = await evaluationCreateEvalSet({
|
|
194
180
|
...options,
|
|
195
181
|
...fnOptions,
|
|
196
|
-
throwOnError: true
|
|
182
|
+
throwOnError: true
|
|
197
183
|
});
|
|
198
184
|
return data;
|
|
199
|
-
}
|
|
185
|
+
}
|
|
200
186
|
};
|
|
201
187
|
return mutationOptions;
|
|
202
188
|
};
|
|
203
189
|
/**
|
|
204
190
|
* Create Eval Set Legacy
|
|
191
|
+
*
|
|
205
192
|
* Creates an eval set, given the id.
|
|
206
193
|
*/
|
|
207
194
|
export const evaluationCreateEvalSetLegacyMutation = (options) => {
|
|
@@ -210,31 +197,29 @@ export const evaluationCreateEvalSetLegacyMutation = (options) => {
|
|
|
210
197
|
const { data } = await evaluationCreateEvalSetLegacy({
|
|
211
198
|
...options,
|
|
212
199
|
...fnOptions,
|
|
213
|
-
throwOnError: true
|
|
200
|
+
throwOnError: true
|
|
214
201
|
});
|
|
215
202
|
return data;
|
|
216
|
-
}
|
|
203
|
+
}
|
|
217
204
|
};
|
|
218
205
|
return mutationOptions;
|
|
219
206
|
};
|
|
220
|
-
export const evaluationListEvalSetsLegacyQueryKey = (options) => createQueryKey(
|
|
207
|
+
export const evaluationListEvalSetsLegacyQueryKey = (options) => createQueryKey('evaluationListEvalSetsLegacy', options);
|
|
221
208
|
/**
|
|
222
209
|
* List Eval Sets Legacy
|
|
223
210
|
*/
|
|
224
|
-
export const evaluationListEvalSetsLegacyOptions = (options) => {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
});
|
|
237
|
-
};
|
|
211
|
+
export const evaluationListEvalSetsLegacyOptions = (options) => queryOptions({
|
|
212
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
213
|
+
const { data } = await evaluationListEvalSetsLegacy({
|
|
214
|
+
...options,
|
|
215
|
+
...queryKey[0],
|
|
216
|
+
signal,
|
|
217
|
+
throwOnError: true
|
|
218
|
+
});
|
|
219
|
+
return data;
|
|
220
|
+
},
|
|
221
|
+
queryKey: evaluationListEvalSetsLegacyQueryKey(options)
|
|
222
|
+
});
|
|
238
223
|
/**
|
|
239
224
|
* Add Session To Eval Set
|
|
240
225
|
*/
|
|
@@ -244,32 +229,31 @@ export const evaluationAddSessionToEvalSetMutation = (options) => {
|
|
|
244
229
|
const { data } = await evaluationAddSessionToEvalSet({
|
|
245
230
|
...options,
|
|
246
231
|
...fnOptions,
|
|
247
|
-
throwOnError: true
|
|
232
|
+
throwOnError: true
|
|
248
233
|
});
|
|
249
234
|
return data;
|
|
250
|
-
}
|
|
235
|
+
}
|
|
251
236
|
};
|
|
252
237
|
return mutationOptions;
|
|
253
238
|
};
|
|
254
|
-
export const evaluationListEvalsInEvalSetQueryKey = (options) => createQueryKey(
|
|
239
|
+
export const evaluationListEvalsInEvalSetQueryKey = (options) => createQueryKey('evaluationListEvalsInEvalSet', options);
|
|
255
240
|
/**
|
|
256
241
|
* List Evals In Eval Set
|
|
242
|
+
*
|
|
257
243
|
* Lists all evals in an eval set.
|
|
258
244
|
*/
|
|
259
|
-
export const evaluationListEvalsInEvalSetOptions = (options) => {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
});
|
|
272
|
-
};
|
|
245
|
+
export const evaluationListEvalsInEvalSetOptions = (options) => queryOptions({
|
|
246
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
247
|
+
const { data } = await evaluationListEvalsInEvalSet({
|
|
248
|
+
...options,
|
|
249
|
+
...queryKey[0],
|
|
250
|
+
signal,
|
|
251
|
+
throwOnError: true
|
|
252
|
+
});
|
|
253
|
+
return data;
|
|
254
|
+
},
|
|
255
|
+
queryKey: evaluationListEvalsInEvalSetQueryKey(options)
|
|
256
|
+
});
|
|
273
257
|
/**
|
|
274
258
|
* Delete Eval
|
|
275
259
|
*/
|
|
@@ -279,32 +263,31 @@ export const evaluationDeleteEvalMutation = (options) => {
|
|
|
279
263
|
const { data } = await evaluationDeleteEval({
|
|
280
264
|
...options,
|
|
281
265
|
...fnOptions,
|
|
282
|
-
throwOnError: true
|
|
266
|
+
throwOnError: true
|
|
283
267
|
});
|
|
284
268
|
return data;
|
|
285
|
-
}
|
|
269
|
+
}
|
|
286
270
|
};
|
|
287
271
|
return mutationOptions;
|
|
288
272
|
};
|
|
289
|
-
export const evaluationGetEvalQueryKey = (options) => createQueryKey(
|
|
273
|
+
export const evaluationGetEvalQueryKey = (options) => createQueryKey('evaluationGetEval', options);
|
|
290
274
|
/**
|
|
291
275
|
* Get Eval
|
|
276
|
+
*
|
|
292
277
|
* Gets an eval case in an eval set.
|
|
293
278
|
*/
|
|
294
|
-
export const evaluationGetEvalOptions = (options) => {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
});
|
|
307
|
-
};
|
|
279
|
+
export const evaluationGetEvalOptions = (options) => queryOptions({
|
|
280
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
281
|
+
const { data } = await evaluationGetEval({
|
|
282
|
+
...options,
|
|
283
|
+
...queryKey[0],
|
|
284
|
+
signal,
|
|
285
|
+
throwOnError: true
|
|
286
|
+
});
|
|
287
|
+
return data;
|
|
288
|
+
},
|
|
289
|
+
queryKey: evaluationGetEvalQueryKey(options)
|
|
290
|
+
});
|
|
308
291
|
/**
|
|
309
292
|
* Update Eval
|
|
310
293
|
*/
|
|
@@ -314,10 +297,10 @@ export const evaluationUpdateEvalMutation = (options) => {
|
|
|
314
297
|
const { data } = await evaluationUpdateEval({
|
|
315
298
|
...options,
|
|
316
299
|
...fnOptions,
|
|
317
|
-
throwOnError: true
|
|
300
|
+
throwOnError: true
|
|
318
301
|
});
|
|
319
302
|
return data;
|
|
320
|
-
}
|
|
303
|
+
}
|
|
321
304
|
};
|
|
322
305
|
return mutationOptions;
|
|
323
306
|
};
|
|
@@ -330,15 +313,16 @@ export const evaluationRunEvalLegacyMutation = (options) => {
|
|
|
330
313
|
const { data } = await evaluationRunEvalLegacy({
|
|
331
314
|
...options,
|
|
332
315
|
...fnOptions,
|
|
333
|
-
throwOnError: true
|
|
316
|
+
throwOnError: true
|
|
334
317
|
});
|
|
335
318
|
return data;
|
|
336
|
-
}
|
|
319
|
+
}
|
|
337
320
|
};
|
|
338
321
|
return mutationOptions;
|
|
339
322
|
};
|
|
340
323
|
/**
|
|
341
324
|
* Run Eval
|
|
325
|
+
*
|
|
342
326
|
* Runs an eval given the details in the eval request.
|
|
343
327
|
*/
|
|
344
328
|
export const evaluationRunEvalMutation = (options) => {
|
|
@@ -347,106 +331,99 @@ export const evaluationRunEvalMutation = (options) => {
|
|
|
347
331
|
const { data } = await evaluationRunEval({
|
|
348
332
|
...options,
|
|
349
333
|
...fnOptions,
|
|
350
|
-
throwOnError: true
|
|
334
|
+
throwOnError: true
|
|
351
335
|
});
|
|
352
336
|
return data;
|
|
353
|
-
}
|
|
337
|
+
}
|
|
354
338
|
};
|
|
355
339
|
return mutationOptions;
|
|
356
340
|
};
|
|
357
|
-
export const evaluationGetEvalResultQueryKey = (options) => createQueryKey(
|
|
341
|
+
export const evaluationGetEvalResultQueryKey = (options) => createQueryKey('evaluationGetEvalResult', options);
|
|
358
342
|
/**
|
|
359
343
|
* Get Eval Result
|
|
344
|
+
*
|
|
360
345
|
* Gets the eval result for the given eval id.
|
|
361
346
|
*/
|
|
362
|
-
export const evaluationGetEvalResultOptions = (options) => {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
};
|
|
376
|
-
export const evaluationGetEvalResultLegacyQueryKey = (options) => createQueryKey("evaluationGetEvalResultLegacy", options);
|
|
347
|
+
export const evaluationGetEvalResultOptions = (options) => queryOptions({
|
|
348
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
349
|
+
const { data } = await evaluationGetEvalResult({
|
|
350
|
+
...options,
|
|
351
|
+
...queryKey[0],
|
|
352
|
+
signal,
|
|
353
|
+
throwOnError: true
|
|
354
|
+
});
|
|
355
|
+
return data;
|
|
356
|
+
},
|
|
357
|
+
queryKey: evaluationGetEvalResultQueryKey(options)
|
|
358
|
+
});
|
|
359
|
+
export const evaluationGetEvalResultLegacyQueryKey = (options) => createQueryKey('evaluationGetEvalResultLegacy', options);
|
|
377
360
|
/**
|
|
378
361
|
* Get Eval Result Legacy
|
|
379
362
|
*/
|
|
380
|
-
export const evaluationGetEvalResultLegacyOptions = (options) => {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
};
|
|
394
|
-
export const evaluationListEvalResultsQueryKey = (options) => createQueryKey("evaluationListEvalResults", options);
|
|
363
|
+
export const evaluationGetEvalResultLegacyOptions = (options) => queryOptions({
|
|
364
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
365
|
+
const { data } = await evaluationGetEvalResultLegacy({
|
|
366
|
+
...options,
|
|
367
|
+
...queryKey[0],
|
|
368
|
+
signal,
|
|
369
|
+
throwOnError: true
|
|
370
|
+
});
|
|
371
|
+
return data;
|
|
372
|
+
},
|
|
373
|
+
queryKey: evaluationGetEvalResultLegacyQueryKey(options)
|
|
374
|
+
});
|
|
375
|
+
export const evaluationListEvalResultsQueryKey = (options) => createQueryKey('evaluationListEvalResults', options);
|
|
395
376
|
/**
|
|
396
377
|
* List Eval Results
|
|
378
|
+
*
|
|
397
379
|
* Lists all eval results for the given app.
|
|
398
380
|
*/
|
|
399
|
-
export const evaluationListEvalResultsOptions = (options) => {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
};
|
|
413
|
-
export const evaluationListEvalResultsLegacyQueryKey = (options) => createQueryKey("evaluationListEvalResultsLegacy", options);
|
|
381
|
+
export const evaluationListEvalResultsOptions = (options) => queryOptions({
|
|
382
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
383
|
+
const { data } = await evaluationListEvalResults({
|
|
384
|
+
...options,
|
|
385
|
+
...queryKey[0],
|
|
386
|
+
signal,
|
|
387
|
+
throwOnError: true
|
|
388
|
+
});
|
|
389
|
+
return data;
|
|
390
|
+
},
|
|
391
|
+
queryKey: evaluationListEvalResultsQueryKey(options)
|
|
392
|
+
});
|
|
393
|
+
export const evaluationListEvalResultsLegacyQueryKey = (options) => createQueryKey('evaluationListEvalResultsLegacy', options);
|
|
414
394
|
/**
|
|
415
395
|
* List Eval Results Legacy
|
|
416
396
|
*/
|
|
417
|
-
export const evaluationListEvalResultsLegacyOptions = (options) => {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
};
|
|
431
|
-
export const evaluationListMetricsInfoQueryKey = (options) => createQueryKey("evaluationListMetricsInfo", options);
|
|
397
|
+
export const evaluationListEvalResultsLegacyOptions = (options) => queryOptions({
|
|
398
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
399
|
+
const { data } = await evaluationListEvalResultsLegacy({
|
|
400
|
+
...options,
|
|
401
|
+
...queryKey[0],
|
|
402
|
+
signal,
|
|
403
|
+
throwOnError: true
|
|
404
|
+
});
|
|
405
|
+
return data;
|
|
406
|
+
},
|
|
407
|
+
queryKey: evaluationListEvalResultsLegacyQueryKey(options)
|
|
408
|
+
});
|
|
409
|
+
export const evaluationListMetricsInfoQueryKey = (options) => createQueryKey('evaluationListMetricsInfo', options);
|
|
432
410
|
/**
|
|
433
411
|
* List Metrics Info
|
|
412
|
+
*
|
|
434
413
|
* Lists all eval metrics for the given app.
|
|
435
414
|
*/
|
|
436
|
-
export const evaluationListMetricsInfoOptions = (options) => {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
});
|
|
449
|
-
};
|
|
415
|
+
export const evaluationListMetricsInfoOptions = (options) => queryOptions({
|
|
416
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
417
|
+
const { data } = await evaluationListMetricsInfo({
|
|
418
|
+
...options,
|
|
419
|
+
...queryKey[0],
|
|
420
|
+
signal,
|
|
421
|
+
throwOnError: true
|
|
422
|
+
});
|
|
423
|
+
return data;
|
|
424
|
+
},
|
|
425
|
+
queryKey: evaluationListMetricsInfoQueryKey(options)
|
|
426
|
+
});
|
|
450
427
|
/**
|
|
451
428
|
* Delete Artifact
|
|
452
429
|
*/
|
|
@@ -456,85 +433,77 @@ export const deleteArtifactMutation = (options) => {
|
|
|
456
433
|
const { data } = await deleteArtifact({
|
|
457
434
|
...options,
|
|
458
435
|
...fnOptions,
|
|
459
|
-
throwOnError: true
|
|
436
|
+
throwOnError: true
|
|
460
437
|
});
|
|
461
438
|
return data;
|
|
462
|
-
}
|
|
439
|
+
}
|
|
463
440
|
};
|
|
464
441
|
return mutationOptions;
|
|
465
442
|
};
|
|
466
|
-
export const loadArtifactQueryKey = (options) => createQueryKey(
|
|
443
|
+
export const loadArtifactQueryKey = (options) => createQueryKey('loadArtifact', options);
|
|
467
444
|
/**
|
|
468
445
|
* Load Artifact
|
|
469
446
|
*/
|
|
470
|
-
export const loadArtifactOptions = (options) => {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
};
|
|
484
|
-
export const loadArtifactVersionQueryKey = (options) => createQueryKey("loadArtifactVersion", options);
|
|
447
|
+
export const loadArtifactOptions = (options) => queryOptions({
|
|
448
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
449
|
+
const { data } = await loadArtifact({
|
|
450
|
+
...options,
|
|
451
|
+
...queryKey[0],
|
|
452
|
+
signal,
|
|
453
|
+
throwOnError: true
|
|
454
|
+
});
|
|
455
|
+
return data;
|
|
456
|
+
},
|
|
457
|
+
queryKey: loadArtifactQueryKey(options)
|
|
458
|
+
});
|
|
459
|
+
export const loadArtifactVersionQueryKey = (options) => createQueryKey('loadArtifactVersion', options);
|
|
485
460
|
/**
|
|
486
461
|
* Load Artifact Version
|
|
487
462
|
*/
|
|
488
|
-
export const loadArtifactVersionOptions = (options) => {
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
};
|
|
502
|
-
export const listArtifactNamesQueryKey = (options) => createQueryKey("listArtifactNames", options);
|
|
463
|
+
export const loadArtifactVersionOptions = (options) => queryOptions({
|
|
464
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
465
|
+
const { data } = await loadArtifactVersion({
|
|
466
|
+
...options,
|
|
467
|
+
...queryKey[0],
|
|
468
|
+
signal,
|
|
469
|
+
throwOnError: true
|
|
470
|
+
});
|
|
471
|
+
return data;
|
|
472
|
+
},
|
|
473
|
+
queryKey: loadArtifactVersionQueryKey(options)
|
|
474
|
+
});
|
|
475
|
+
export const listArtifactNamesQueryKey = (options) => createQueryKey('listArtifactNames', options);
|
|
503
476
|
/**
|
|
504
477
|
* List Artifact Names
|
|
505
478
|
*/
|
|
506
|
-
export const listArtifactNamesOptions = (options) => {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
};
|
|
520
|
-
export const listArtifactVersionsQueryKey = (options) => createQueryKey("listArtifactVersions", options);
|
|
479
|
+
export const listArtifactNamesOptions = (options) => queryOptions({
|
|
480
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
481
|
+
const { data } = await listArtifactNames({
|
|
482
|
+
...options,
|
|
483
|
+
...queryKey[0],
|
|
484
|
+
signal,
|
|
485
|
+
throwOnError: true
|
|
486
|
+
});
|
|
487
|
+
return data;
|
|
488
|
+
},
|
|
489
|
+
queryKey: listArtifactNamesQueryKey(options)
|
|
490
|
+
});
|
|
491
|
+
export const listArtifactVersionsQueryKey = (options) => createQueryKey('listArtifactVersions', options);
|
|
521
492
|
/**
|
|
522
493
|
* List Artifact Versions
|
|
523
494
|
*/
|
|
524
|
-
export const listArtifactVersionsOptions = (options) => {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
});
|
|
537
|
-
};
|
|
495
|
+
export const listArtifactVersionsOptions = (options) => queryOptions({
|
|
496
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
497
|
+
const { data } = await listArtifactVersions({
|
|
498
|
+
...options,
|
|
499
|
+
...queryKey[0],
|
|
500
|
+
signal,
|
|
501
|
+
throwOnError: true
|
|
502
|
+
});
|
|
503
|
+
return data;
|
|
504
|
+
},
|
|
505
|
+
queryKey: listArtifactVersionsQueryKey(options)
|
|
506
|
+
});
|
|
538
507
|
/**
|
|
539
508
|
* Run Agent
|
|
540
509
|
*/
|
|
@@ -544,10 +513,10 @@ export const runAgentMutation = (options) => {
|
|
|
544
513
|
const { data } = await runAgent({
|
|
545
514
|
...options,
|
|
546
515
|
...fnOptions,
|
|
547
|
-
throwOnError: true
|
|
516
|
+
throwOnError: true
|
|
548
517
|
});
|
|
549
518
|
return data;
|
|
550
|
-
}
|
|
519
|
+
}
|
|
551
520
|
};
|
|
552
521
|
return mutationOptions;
|
|
553
522
|
};
|
|
@@ -560,67 +529,61 @@ export const runAgentSseMutation = (options) => {
|
|
|
560
529
|
const { data } = await runAgentSse({
|
|
561
530
|
...options,
|
|
562
531
|
...fnOptions,
|
|
563
|
-
throwOnError: true
|
|
532
|
+
throwOnError: true
|
|
564
533
|
});
|
|
565
534
|
return data;
|
|
566
|
-
}
|
|
535
|
+
}
|
|
567
536
|
};
|
|
568
537
|
return mutationOptions;
|
|
569
538
|
};
|
|
570
|
-
export const debugGetEventGraphQueryKey = (options) => createQueryKey(
|
|
539
|
+
export const debugGetEventGraphQueryKey = (options) => createQueryKey('debugGetEventGraph', options);
|
|
571
540
|
/**
|
|
572
541
|
* Get Event Graph
|
|
573
542
|
*/
|
|
574
|
-
export const debugGetEventGraphOptions = (options) => {
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
};
|
|
588
|
-
export const redirectRootToDevUiQueryKey = (options) => createQueryKey("redirectRootToDevUi", options);
|
|
543
|
+
export const debugGetEventGraphOptions = (options) => queryOptions({
|
|
544
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
545
|
+
const { data } = await debugGetEventGraph({
|
|
546
|
+
...options,
|
|
547
|
+
...queryKey[0],
|
|
548
|
+
signal,
|
|
549
|
+
throwOnError: true
|
|
550
|
+
});
|
|
551
|
+
return data;
|
|
552
|
+
},
|
|
553
|
+
queryKey: debugGetEventGraphQueryKey(options)
|
|
554
|
+
});
|
|
555
|
+
export const redirectRootToDevUiQueryKey = (options) => createQueryKey('redirectRootToDevUi', options);
|
|
589
556
|
/**
|
|
590
557
|
* Redirect Root To Dev Ui
|
|
591
558
|
*/
|
|
592
|
-
export const redirectRootToDevUiOptions = (options) => {
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
};
|
|
606
|
-
export const redirectDevUiAddSlashQueryKey = (options) => createQueryKey("redirectDevUiAddSlash", options);
|
|
559
|
+
export const redirectRootToDevUiOptions = (options) => queryOptions({
|
|
560
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
561
|
+
const { data } = await redirectRootToDevUi({
|
|
562
|
+
...options,
|
|
563
|
+
...queryKey[0],
|
|
564
|
+
signal,
|
|
565
|
+
throwOnError: true
|
|
566
|
+
});
|
|
567
|
+
return data;
|
|
568
|
+
},
|
|
569
|
+
queryKey: redirectRootToDevUiQueryKey(options)
|
|
570
|
+
});
|
|
571
|
+
export const redirectDevUiAddSlashQueryKey = (options) => createQueryKey('redirectDevUiAddSlash', options);
|
|
607
572
|
/**
|
|
608
573
|
* Redirect Dev Ui Add Slash
|
|
609
574
|
*/
|
|
610
|
-
export const redirectDevUiAddSlashOptions = (options) => {
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
});
|
|
623
|
-
};
|
|
575
|
+
export const redirectDevUiAddSlashOptions = (options) => queryOptions({
|
|
576
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
577
|
+
const { data } = await redirectDevUiAddSlash({
|
|
578
|
+
...options,
|
|
579
|
+
...queryKey[0],
|
|
580
|
+
signal,
|
|
581
|
+
throwOnError: true
|
|
582
|
+
});
|
|
583
|
+
return data;
|
|
584
|
+
},
|
|
585
|
+
queryKey: redirectDevUiAddSlashQueryKey(options)
|
|
586
|
+
});
|
|
624
587
|
/**
|
|
625
588
|
* Builder Build
|
|
626
589
|
*/
|
|
@@ -630,52 +593,50 @@ export const builderBuildMutation = (options) => {
|
|
|
630
593
|
const { data } = await builderBuild({
|
|
631
594
|
...options,
|
|
632
595
|
...fnOptions,
|
|
633
|
-
throwOnError: true
|
|
596
|
+
throwOnError: true
|
|
634
597
|
});
|
|
635
598
|
return data;
|
|
636
|
-
}
|
|
599
|
+
}
|
|
637
600
|
};
|
|
638
601
|
return mutationOptions;
|
|
639
602
|
};
|
|
640
|
-
export const getAgentBuilderQueryKey = (options) => createQueryKey(
|
|
603
|
+
export const getAgentBuilderQueryKey = (options) => createQueryKey('getAgentBuilder', options);
|
|
641
604
|
/**
|
|
642
605
|
* Get Agent Builder
|
|
643
606
|
*/
|
|
644
|
-
export const getAgentBuilderOptions = (options) => {
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
};
|
|
658
|
-
export const chatAgentGetChatConfigQueryKey = (options) => createQueryKey("chatAgentGetChatConfig", options);
|
|
607
|
+
export const getAgentBuilderOptions = (options) => queryOptions({
|
|
608
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
609
|
+
const { data } = await getAgentBuilder({
|
|
610
|
+
...options,
|
|
611
|
+
...queryKey[0],
|
|
612
|
+
signal,
|
|
613
|
+
throwOnError: true
|
|
614
|
+
});
|
|
615
|
+
return data;
|
|
616
|
+
},
|
|
617
|
+
queryKey: getAgentBuilderQueryKey(options)
|
|
618
|
+
});
|
|
619
|
+
export const chatAgentGetChatConfigQueryKey = (options) => createQueryKey('chatAgentGetChatConfig', options);
|
|
659
620
|
/**
|
|
660
621
|
* Get Chat Config
|
|
622
|
+
*
|
|
661
623
|
* 获取当前聊天配置
|
|
662
624
|
*/
|
|
663
|
-
export const chatAgentGetChatConfigOptions = (options) => {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
});
|
|
676
|
-
};
|
|
625
|
+
export const chatAgentGetChatConfigOptions = (options) => queryOptions({
|
|
626
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
627
|
+
const { data } = await chatAgentGetChatConfig({
|
|
628
|
+
...options,
|
|
629
|
+
...queryKey[0],
|
|
630
|
+
signal,
|
|
631
|
+
throwOnError: true
|
|
632
|
+
});
|
|
633
|
+
return data;
|
|
634
|
+
},
|
|
635
|
+
queryKey: chatAgentGetChatConfigQueryKey(options)
|
|
636
|
+
});
|
|
677
637
|
/**
|
|
678
638
|
* Update Chat Config
|
|
639
|
+
*
|
|
679
640
|
* 更新聊天配置
|
|
680
641
|
*/
|
|
681
642
|
export const chatAgentUpdateChatConfigMutation = (options) => {
|
|
@@ -684,34 +645,34 @@ export const chatAgentUpdateChatConfigMutation = (options) => {
|
|
|
684
645
|
const { data } = await chatAgentUpdateChatConfig({
|
|
685
646
|
...options,
|
|
686
647
|
...fnOptions,
|
|
687
|
-
throwOnError: true
|
|
648
|
+
throwOnError: true
|
|
688
649
|
});
|
|
689
650
|
return data;
|
|
690
|
-
}
|
|
651
|
+
}
|
|
691
652
|
};
|
|
692
653
|
return mutationOptions;
|
|
693
654
|
};
|
|
694
|
-
export const chatAgentGetProvidersQueryKey = (options) => createQueryKey(
|
|
655
|
+
export const chatAgentGetProvidersQueryKey = (options) => createQueryKey('chatAgentGetProviders', options);
|
|
695
656
|
/**
|
|
696
657
|
* Get Providers
|
|
658
|
+
*
|
|
697
659
|
* 获取所有可用的AI提供商
|
|
698
660
|
*/
|
|
699
|
-
export const chatAgentGetProvidersOptions = (options) => {
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
});
|
|
712
|
-
};
|
|
661
|
+
export const chatAgentGetProvidersOptions = (options) => queryOptions({
|
|
662
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
663
|
+
const { data } = await chatAgentGetProviders({
|
|
664
|
+
...options,
|
|
665
|
+
...queryKey[0],
|
|
666
|
+
signal,
|
|
667
|
+
throwOnError: true
|
|
668
|
+
});
|
|
669
|
+
return data;
|
|
670
|
+
},
|
|
671
|
+
queryKey: chatAgentGetProvidersQueryKey(options)
|
|
672
|
+
});
|
|
713
673
|
/**
|
|
714
674
|
* Validate Api Key
|
|
675
|
+
*
|
|
715
676
|
* 验证API密钥
|
|
716
677
|
*/
|
|
717
678
|
export const chatAgentValidateApiKeyMutation = (options) => {
|
|
@@ -720,34 +681,34 @@ export const chatAgentValidateApiKeyMutation = (options) => {
|
|
|
720
681
|
const { data } = await chatAgentValidateApiKey({
|
|
721
682
|
...options,
|
|
722
683
|
...fnOptions,
|
|
723
|
-
throwOnError: true
|
|
684
|
+
throwOnError: true
|
|
724
685
|
});
|
|
725
686
|
return data;
|
|
726
|
-
}
|
|
687
|
+
}
|
|
727
688
|
};
|
|
728
689
|
return mutationOptions;
|
|
729
690
|
};
|
|
730
|
-
export const chatAgentExportConfigQueryKey = (options) => createQueryKey(
|
|
691
|
+
export const chatAgentExportConfigQueryKey = (options) => createQueryKey('chatAgentExportConfig', options);
|
|
731
692
|
/**
|
|
732
693
|
* Export Config
|
|
694
|
+
*
|
|
733
695
|
* 导出AI配置
|
|
734
696
|
*/
|
|
735
|
-
export const chatAgentExportConfigOptions = (options) => {
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
});
|
|
748
|
-
};
|
|
697
|
+
export const chatAgentExportConfigOptions = (options) => queryOptions({
|
|
698
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
699
|
+
const { data } = await chatAgentExportConfig({
|
|
700
|
+
...options,
|
|
701
|
+
...queryKey[0],
|
|
702
|
+
signal,
|
|
703
|
+
throwOnError: true
|
|
704
|
+
});
|
|
705
|
+
return data;
|
|
706
|
+
},
|
|
707
|
+
queryKey: chatAgentExportConfigQueryKey(options)
|
|
708
|
+
});
|
|
749
709
|
/**
|
|
750
710
|
* Import Config
|
|
711
|
+
*
|
|
751
712
|
* 导入AI配置
|
|
752
713
|
*/
|
|
753
714
|
export const chatAgentImportConfigMutation = (options) => {
|
|
@@ -756,15 +717,16 @@ export const chatAgentImportConfigMutation = (options) => {
|
|
|
756
717
|
const { data } = await chatAgentImportConfig({
|
|
757
718
|
...options,
|
|
758
719
|
...fnOptions,
|
|
759
|
-
throwOnError: true
|
|
720
|
+
throwOnError: true
|
|
760
721
|
});
|
|
761
722
|
return data;
|
|
762
|
-
}
|
|
723
|
+
}
|
|
763
724
|
};
|
|
764
725
|
return mutationOptions;
|
|
765
726
|
};
|
|
766
727
|
/**
|
|
767
728
|
* Chat
|
|
729
|
+
*
|
|
768
730
|
* 处理聊天请求 - 使用新的Agent架构
|
|
769
731
|
*/
|
|
770
732
|
export const chatAgentChatMutation = (options) => {
|
|
@@ -773,36 +735,36 @@ export const chatAgentChatMutation = (options) => {
|
|
|
773
735
|
const { data } = await chatAgentChat({
|
|
774
736
|
...options,
|
|
775
737
|
...fnOptions,
|
|
776
|
-
throwOnError: true
|
|
738
|
+
throwOnError: true
|
|
777
739
|
});
|
|
778
740
|
return data;
|
|
779
|
-
}
|
|
741
|
+
}
|
|
780
742
|
};
|
|
781
743
|
return mutationOptions;
|
|
782
744
|
};
|
|
783
|
-
export const listItemsQueryKey = (options) => createQueryKey(
|
|
745
|
+
export const listItemsQueryKey = (options) => createQueryKey('listItems', options);
|
|
784
746
|
/**
|
|
785
747
|
* List Items
|
|
748
|
+
*
|
|
786
749
|
* List all items in the database.
|
|
787
750
|
*
|
|
788
751
|
* Returns a list of items, with pagination support.
|
|
789
752
|
*/
|
|
790
|
-
export const listItemsOptions = (options) => {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
});
|
|
803
|
-
};
|
|
753
|
+
export const listItemsOptions = (options) => queryOptions({
|
|
754
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
755
|
+
const { data } = await listItems({
|
|
756
|
+
...options,
|
|
757
|
+
...queryKey[0],
|
|
758
|
+
signal,
|
|
759
|
+
throwOnError: true
|
|
760
|
+
});
|
|
761
|
+
return data;
|
|
762
|
+
},
|
|
763
|
+
queryKey: listItemsQueryKey(options)
|
|
764
|
+
});
|
|
804
765
|
/**
|
|
805
766
|
* Create Item
|
|
767
|
+
*
|
|
806
768
|
* Create a new item in the database.
|
|
807
769
|
*
|
|
808
770
|
* Returns the created item with its assigned ID.
|
|
@@ -813,15 +775,16 @@ export const createItemMutation = (options) => {
|
|
|
813
775
|
const { data } = await createItem({
|
|
814
776
|
...options,
|
|
815
777
|
...fnOptions,
|
|
816
|
-
throwOnError: true
|
|
778
|
+
throwOnError: true
|
|
817
779
|
});
|
|
818
780
|
return data;
|
|
819
|
-
}
|
|
781
|
+
}
|
|
820
782
|
};
|
|
821
783
|
return mutationOptions;
|
|
822
784
|
};
|
|
823
785
|
/**
|
|
824
786
|
* Delete Item
|
|
787
|
+
*
|
|
825
788
|
* Delete an item from the database.
|
|
826
789
|
*
|
|
827
790
|
* Raises a 404 error if the item does not exist.
|
|
@@ -832,36 +795,36 @@ export const deleteItemMutation = (options) => {
|
|
|
832
795
|
const { data } = await deleteItem({
|
|
833
796
|
...options,
|
|
834
797
|
...fnOptions,
|
|
835
|
-
throwOnError: true
|
|
798
|
+
throwOnError: true
|
|
836
799
|
});
|
|
837
800
|
return data;
|
|
838
|
-
}
|
|
801
|
+
}
|
|
839
802
|
};
|
|
840
803
|
return mutationOptions;
|
|
841
804
|
};
|
|
842
|
-
export const getItemQueryKey = (options) => createQueryKey(
|
|
805
|
+
export const getItemQueryKey = (options) => createQueryKey('getItem', options);
|
|
843
806
|
/**
|
|
844
807
|
* Read Item
|
|
808
|
+
*
|
|
845
809
|
* Get a specific item by its ID.
|
|
846
810
|
*
|
|
847
811
|
* Raises a 404 error if the item does not exist.
|
|
848
812
|
*/
|
|
849
|
-
export const getItemOptions = (options) => {
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
});
|
|
862
|
-
};
|
|
813
|
+
export const getItemOptions = (options) => queryOptions({
|
|
814
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
815
|
+
const { data } = await getItem({
|
|
816
|
+
...options,
|
|
817
|
+
...queryKey[0],
|
|
818
|
+
signal,
|
|
819
|
+
throwOnError: true
|
|
820
|
+
});
|
|
821
|
+
return data;
|
|
822
|
+
},
|
|
823
|
+
queryKey: getItemQueryKey(options)
|
|
824
|
+
});
|
|
863
825
|
/**
|
|
864
826
|
* Update Item
|
|
827
|
+
*
|
|
865
828
|
* Update an existing item.
|
|
866
829
|
*
|
|
867
830
|
* Raises a 404 error if the item does not exist.
|
|
@@ -872,34 +835,33 @@ export const updateItemMutation = (options) => {
|
|
|
872
835
|
const { data } = await updateItem({
|
|
873
836
|
...options,
|
|
874
837
|
...fnOptions,
|
|
875
|
-
throwOnError: true
|
|
838
|
+
throwOnError: true
|
|
876
839
|
});
|
|
877
840
|
return data;
|
|
878
|
-
}
|
|
841
|
+
}
|
|
879
842
|
};
|
|
880
843
|
return mutationOptions;
|
|
881
844
|
};
|
|
882
|
-
export const searchItemsQueryKey = (options) => createQueryKey(
|
|
845
|
+
export const searchItemsQueryKey = (options) => createQueryKey('searchItems', options);
|
|
883
846
|
/**
|
|
884
847
|
* Search Items
|
|
848
|
+
*
|
|
885
849
|
* Search for items with various filters.
|
|
886
850
|
*
|
|
887
851
|
* Returns a list of items that match the search criteria.
|
|
888
852
|
*/
|
|
889
|
-
export const searchItemsOptions = (options) => {
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
});
|
|
902
|
-
};
|
|
853
|
+
export const searchItemsOptions = (options) => queryOptions({
|
|
854
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
855
|
+
const { data } = await searchItems({
|
|
856
|
+
...options,
|
|
857
|
+
...queryKey[0],
|
|
858
|
+
signal,
|
|
859
|
+
throwOnError: true
|
|
860
|
+
});
|
|
861
|
+
return data;
|
|
862
|
+
},
|
|
863
|
+
queryKey: searchItemsQueryKey(options)
|
|
864
|
+
});
|
|
903
865
|
/**
|
|
904
866
|
* Agentrun
|
|
905
867
|
*/
|
|
@@ -909,15 +871,16 @@ export const agentsAgentrunMutation = (options) => {
|
|
|
909
871
|
const { data } = await agentsAgentrun({
|
|
910
872
|
...options,
|
|
911
873
|
...fnOptions,
|
|
912
|
-
throwOnError: true
|
|
874
|
+
throwOnError: true
|
|
913
875
|
});
|
|
914
876
|
return data;
|
|
915
|
-
}
|
|
877
|
+
}
|
|
916
878
|
};
|
|
917
879
|
return mutationOptions;
|
|
918
880
|
};
|
|
919
881
|
/**
|
|
920
882
|
* Start Napcat Sandbox
|
|
883
|
+
*
|
|
921
884
|
* 启动 Napcat 沙箱(同步返回结果)
|
|
922
885
|
*/
|
|
923
886
|
export const sandboxStartNapcatSandboxMutation = (options) => {
|
|
@@ -926,15 +889,16 @@ export const sandboxStartNapcatSandboxMutation = (options) => {
|
|
|
926
889
|
const { data } = await sandboxStartNapcatSandbox({
|
|
927
890
|
...options,
|
|
928
891
|
...fnOptions,
|
|
929
|
-
throwOnError: true
|
|
892
|
+
throwOnError: true
|
|
930
893
|
});
|
|
931
894
|
return data;
|
|
932
|
-
}
|
|
895
|
+
}
|
|
933
896
|
};
|
|
934
897
|
return mutationOptions;
|
|
935
898
|
};
|
|
936
899
|
/**
|
|
937
900
|
* Check Sandbox Status
|
|
901
|
+
*
|
|
938
902
|
* 检查指定沙盒的状态
|
|
939
903
|
*/
|
|
940
904
|
export const sandboxCheckSandboxStatusMutation = (options) => {
|
|
@@ -943,10 +907,10 @@ export const sandboxCheckSandboxStatusMutation = (options) => {
|
|
|
943
907
|
const { data } = await sandboxCheckSandboxStatus({
|
|
944
908
|
...options,
|
|
945
909
|
...fnOptions,
|
|
946
|
-
throwOnError: true
|
|
910
|
+
throwOnError: true
|
|
947
911
|
});
|
|
948
912
|
return data;
|
|
949
|
-
}
|
|
913
|
+
}
|
|
950
914
|
};
|
|
951
915
|
return mutationOptions;
|
|
952
916
|
};
|