mtmsdk 0.0.15 → 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 +114 -687
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +418 -1026
- 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 -8
- package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/index.js +5 -5
- 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 +3 -3
- package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/utils.gen.js +34 -34
- 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 +1 -1
- package/dist/gomtmapi_v2/core/bodySerializer.gen.js +3 -3
- 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.js +11 -11
- 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 +50 -381
- package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/sdk.gen.js +201 -795
- 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 +145 -1698
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +212 -1872
- 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 -8
- package/dist/mtgate_api/client/index.d.ts.map +1 -1
- package/dist/mtgate_api/client/index.js +5 -5
- 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 +3 -3
- package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client/utils.gen.js +34 -34
- 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 +1 -1
- package/dist/mtgate_api/core/bodySerializer.gen.js +3 -3
- 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.js +11 -11
- 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 +377 -3070
- package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
- package/dist/mtgate_api/schemas.gen.js +590 -3332
- package/dist/mtgate_api/schemas.gen.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +25 -205
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +97 -1097
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +435 -4744
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/types.gen.js +1 -10
- package/dist/mtgate_api/types.gen.js.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +989 -5722
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +340 -2939
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +82 -82
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.js +416 -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 -8
- package/dist/mtmai_api/client/index.d.ts.map +1 -1
- package/dist/mtmai_api/client/index.js +5 -5
- 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 +3 -3
- package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -1
- package/dist/mtmai_api/client/utils.gen.js +34 -34
- 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 +1 -1
- package/dist/mtmai_api/core/bodySerializer.gen.js +3 -3
- 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.js +11 -11
- 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 +2 -2
- package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtmai_api/sdk.gen.js +188 -391
- package/dist/mtmai_api/sdk.gen.js.map +1 -1
- package/dist/mtmai_api/types.gen.d.ts +93 -81
- package/dist/mtmai_api/types.gen.d.ts.map +1 -1
- package/dist/mtmai_api/types.gen.js +97 -103
- package/dist/mtmai_api/types.gen.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +794 -794
- package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
- package/dist/mtmai_api/zod.gen.js +2530 -876
- 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 +59 -91
- 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/{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,33 +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
|
|
171
158
|
*
|
|
172
159
|
* Lists all eval sets for the given app.
|
|
173
160
|
*/
|
|
174
|
-
export const evaluationListEvalSetsOptions = (options) => {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
});
|
|
187
|
-
};
|
|
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
|
+
});
|
|
188
173
|
/**
|
|
189
174
|
* Create Eval Set
|
|
190
175
|
*/
|
|
@@ -194,10 +179,10 @@ export const evaluationCreateEvalSetMutation = (options) => {
|
|
|
194
179
|
const { data } = await evaluationCreateEvalSet({
|
|
195
180
|
...options,
|
|
196
181
|
...fnOptions,
|
|
197
|
-
throwOnError: true
|
|
182
|
+
throwOnError: true
|
|
198
183
|
});
|
|
199
184
|
return data;
|
|
200
|
-
}
|
|
185
|
+
}
|
|
201
186
|
};
|
|
202
187
|
return mutationOptions;
|
|
203
188
|
};
|
|
@@ -212,31 +197,29 @@ export const evaluationCreateEvalSetLegacyMutation = (options) => {
|
|
|
212
197
|
const { data } = await evaluationCreateEvalSetLegacy({
|
|
213
198
|
...options,
|
|
214
199
|
...fnOptions,
|
|
215
|
-
throwOnError: true
|
|
200
|
+
throwOnError: true
|
|
216
201
|
});
|
|
217
202
|
return data;
|
|
218
|
-
}
|
|
203
|
+
}
|
|
219
204
|
};
|
|
220
205
|
return mutationOptions;
|
|
221
206
|
};
|
|
222
|
-
export const evaluationListEvalSetsLegacyQueryKey = (options) => createQueryKey(
|
|
207
|
+
export const evaluationListEvalSetsLegacyQueryKey = (options) => createQueryKey('evaluationListEvalSetsLegacy', options);
|
|
223
208
|
/**
|
|
224
209
|
* List Eval Sets Legacy
|
|
225
210
|
*/
|
|
226
|
-
export const evaluationListEvalSetsLegacyOptions = (options) => {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
});
|
|
239
|
-
};
|
|
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
|
+
});
|
|
240
223
|
/**
|
|
241
224
|
* Add Session To Eval Set
|
|
242
225
|
*/
|
|
@@ -246,33 +229,31 @@ export const evaluationAddSessionToEvalSetMutation = (options) => {
|
|
|
246
229
|
const { data } = await evaluationAddSessionToEvalSet({
|
|
247
230
|
...options,
|
|
248
231
|
...fnOptions,
|
|
249
|
-
throwOnError: true
|
|
232
|
+
throwOnError: true
|
|
250
233
|
});
|
|
251
234
|
return data;
|
|
252
|
-
}
|
|
235
|
+
}
|
|
253
236
|
};
|
|
254
237
|
return mutationOptions;
|
|
255
238
|
};
|
|
256
|
-
export const evaluationListEvalsInEvalSetQueryKey = (options) => createQueryKey(
|
|
239
|
+
export const evaluationListEvalsInEvalSetQueryKey = (options) => createQueryKey('evaluationListEvalsInEvalSet', options);
|
|
257
240
|
/**
|
|
258
241
|
* List Evals In Eval Set
|
|
259
242
|
*
|
|
260
243
|
* Lists all evals in an eval set.
|
|
261
244
|
*/
|
|
262
|
-
export const evaluationListEvalsInEvalSetOptions = (options) => {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
});
|
|
275
|
-
};
|
|
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
|
+
});
|
|
276
257
|
/**
|
|
277
258
|
* Delete Eval
|
|
278
259
|
*/
|
|
@@ -282,33 +263,31 @@ export const evaluationDeleteEvalMutation = (options) => {
|
|
|
282
263
|
const { data } = await evaluationDeleteEval({
|
|
283
264
|
...options,
|
|
284
265
|
...fnOptions,
|
|
285
|
-
throwOnError: true
|
|
266
|
+
throwOnError: true
|
|
286
267
|
});
|
|
287
268
|
return data;
|
|
288
|
-
}
|
|
269
|
+
}
|
|
289
270
|
};
|
|
290
271
|
return mutationOptions;
|
|
291
272
|
};
|
|
292
|
-
export const evaluationGetEvalQueryKey = (options) => createQueryKey(
|
|
273
|
+
export const evaluationGetEvalQueryKey = (options) => createQueryKey('evaluationGetEval', options);
|
|
293
274
|
/**
|
|
294
275
|
* Get Eval
|
|
295
276
|
*
|
|
296
277
|
* Gets an eval case in an eval set.
|
|
297
278
|
*/
|
|
298
|
-
export const evaluationGetEvalOptions = (options) => {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
});
|
|
311
|
-
};
|
|
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
|
+
});
|
|
312
291
|
/**
|
|
313
292
|
* Update Eval
|
|
314
293
|
*/
|
|
@@ -318,10 +297,10 @@ export const evaluationUpdateEvalMutation = (options) => {
|
|
|
318
297
|
const { data } = await evaluationUpdateEval({
|
|
319
298
|
...options,
|
|
320
299
|
...fnOptions,
|
|
321
|
-
throwOnError: true
|
|
300
|
+
throwOnError: true
|
|
322
301
|
});
|
|
323
302
|
return data;
|
|
324
|
-
}
|
|
303
|
+
}
|
|
325
304
|
};
|
|
326
305
|
return mutationOptions;
|
|
327
306
|
};
|
|
@@ -334,10 +313,10 @@ export const evaluationRunEvalLegacyMutation = (options) => {
|
|
|
334
313
|
const { data } = await evaluationRunEvalLegacy({
|
|
335
314
|
...options,
|
|
336
315
|
...fnOptions,
|
|
337
|
-
throwOnError: true
|
|
316
|
+
throwOnError: true
|
|
338
317
|
});
|
|
339
318
|
return data;
|
|
340
|
-
}
|
|
319
|
+
}
|
|
341
320
|
};
|
|
342
321
|
return mutationOptions;
|
|
343
322
|
};
|
|
@@ -352,109 +331,99 @@ export const evaluationRunEvalMutation = (options) => {
|
|
|
352
331
|
const { data } = await evaluationRunEval({
|
|
353
332
|
...options,
|
|
354
333
|
...fnOptions,
|
|
355
|
-
throwOnError: true
|
|
334
|
+
throwOnError: true
|
|
356
335
|
});
|
|
357
336
|
return data;
|
|
358
|
-
}
|
|
337
|
+
}
|
|
359
338
|
};
|
|
360
339
|
return mutationOptions;
|
|
361
340
|
};
|
|
362
|
-
export const evaluationGetEvalResultQueryKey = (options) => createQueryKey(
|
|
341
|
+
export const evaluationGetEvalResultQueryKey = (options) => createQueryKey('evaluationGetEvalResult', options);
|
|
363
342
|
/**
|
|
364
343
|
* Get Eval Result
|
|
365
344
|
*
|
|
366
345
|
* Gets the eval result for the given eval id.
|
|
367
346
|
*/
|
|
368
|
-
export const evaluationGetEvalResultOptions = (options) => {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
};
|
|
382
|
-
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);
|
|
383
360
|
/**
|
|
384
361
|
* Get Eval Result Legacy
|
|
385
362
|
*/
|
|
386
|
-
export const evaluationGetEvalResultLegacyOptions = (options) => {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
};
|
|
400
|
-
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);
|
|
401
376
|
/**
|
|
402
377
|
* List Eval Results
|
|
403
378
|
*
|
|
404
379
|
* Lists all eval results for the given app.
|
|
405
380
|
*/
|
|
406
|
-
export const evaluationListEvalResultsOptions = (options) => {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
};
|
|
420
|
-
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);
|
|
421
394
|
/**
|
|
422
395
|
* List Eval Results Legacy
|
|
423
396
|
*/
|
|
424
|
-
export const evaluationListEvalResultsLegacyOptions = (options) => {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
};
|
|
438
|
-
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);
|
|
439
410
|
/**
|
|
440
411
|
* List Metrics Info
|
|
441
412
|
*
|
|
442
413
|
* Lists all eval metrics for the given app.
|
|
443
414
|
*/
|
|
444
|
-
export const evaluationListMetricsInfoOptions = (options) => {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
});
|
|
457
|
-
};
|
|
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
|
+
});
|
|
458
427
|
/**
|
|
459
428
|
* Delete Artifact
|
|
460
429
|
*/
|
|
@@ -464,85 +433,77 @@ export const deleteArtifactMutation = (options) => {
|
|
|
464
433
|
const { data } = await deleteArtifact({
|
|
465
434
|
...options,
|
|
466
435
|
...fnOptions,
|
|
467
|
-
throwOnError: true
|
|
436
|
+
throwOnError: true
|
|
468
437
|
});
|
|
469
438
|
return data;
|
|
470
|
-
}
|
|
439
|
+
}
|
|
471
440
|
};
|
|
472
441
|
return mutationOptions;
|
|
473
442
|
};
|
|
474
|
-
export const loadArtifactQueryKey = (options) => createQueryKey(
|
|
443
|
+
export const loadArtifactQueryKey = (options) => createQueryKey('loadArtifact', options);
|
|
475
444
|
/**
|
|
476
445
|
* Load Artifact
|
|
477
446
|
*/
|
|
478
|
-
export const loadArtifactOptions = (options) => {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
};
|
|
492
|
-
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);
|
|
493
460
|
/**
|
|
494
461
|
* Load Artifact Version
|
|
495
462
|
*/
|
|
496
|
-
export const loadArtifactVersionOptions = (options) => {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
};
|
|
510
|
-
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);
|
|
511
476
|
/**
|
|
512
477
|
* List Artifact Names
|
|
513
478
|
*/
|
|
514
|
-
export const listArtifactNamesOptions = (options) => {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
};
|
|
528
|
-
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);
|
|
529
492
|
/**
|
|
530
493
|
* List Artifact Versions
|
|
531
494
|
*/
|
|
532
|
-
export const listArtifactVersionsOptions = (options) => {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
});
|
|
545
|
-
};
|
|
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
|
+
});
|
|
546
507
|
/**
|
|
547
508
|
* Run Agent
|
|
548
509
|
*/
|
|
@@ -552,10 +513,10 @@ export const runAgentMutation = (options) => {
|
|
|
552
513
|
const { data } = await runAgent({
|
|
553
514
|
...options,
|
|
554
515
|
...fnOptions,
|
|
555
|
-
throwOnError: true
|
|
516
|
+
throwOnError: true
|
|
556
517
|
});
|
|
557
518
|
return data;
|
|
558
|
-
}
|
|
519
|
+
}
|
|
559
520
|
};
|
|
560
521
|
return mutationOptions;
|
|
561
522
|
};
|
|
@@ -568,67 +529,61 @@ export const runAgentSseMutation = (options) => {
|
|
|
568
529
|
const { data } = await runAgentSse({
|
|
569
530
|
...options,
|
|
570
531
|
...fnOptions,
|
|
571
|
-
throwOnError: true
|
|
532
|
+
throwOnError: true
|
|
572
533
|
});
|
|
573
534
|
return data;
|
|
574
|
-
}
|
|
535
|
+
}
|
|
575
536
|
};
|
|
576
537
|
return mutationOptions;
|
|
577
538
|
};
|
|
578
|
-
export const debugGetEventGraphQueryKey = (options) => createQueryKey(
|
|
539
|
+
export const debugGetEventGraphQueryKey = (options) => createQueryKey('debugGetEventGraph', options);
|
|
579
540
|
/**
|
|
580
541
|
* Get Event Graph
|
|
581
542
|
*/
|
|
582
|
-
export const debugGetEventGraphOptions = (options) => {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
};
|
|
596
|
-
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);
|
|
597
556
|
/**
|
|
598
557
|
* Redirect Root To Dev Ui
|
|
599
558
|
*/
|
|
600
|
-
export const redirectRootToDevUiOptions = (options) => {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
};
|
|
614
|
-
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);
|
|
615
572
|
/**
|
|
616
573
|
* Redirect Dev Ui Add Slash
|
|
617
574
|
*/
|
|
618
|
-
export const redirectDevUiAddSlashOptions = (options) => {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
});
|
|
631
|
-
};
|
|
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
|
+
});
|
|
632
587
|
/**
|
|
633
588
|
* Builder Build
|
|
634
589
|
*/
|
|
@@ -638,51 +593,47 @@ export const builderBuildMutation = (options) => {
|
|
|
638
593
|
const { data } = await builderBuild({
|
|
639
594
|
...options,
|
|
640
595
|
...fnOptions,
|
|
641
|
-
throwOnError: true
|
|
596
|
+
throwOnError: true
|
|
642
597
|
});
|
|
643
598
|
return data;
|
|
644
|
-
}
|
|
599
|
+
}
|
|
645
600
|
};
|
|
646
601
|
return mutationOptions;
|
|
647
602
|
};
|
|
648
|
-
export const getAgentBuilderQueryKey = (options) => createQueryKey(
|
|
603
|
+
export const getAgentBuilderQueryKey = (options) => createQueryKey('getAgentBuilder', options);
|
|
649
604
|
/**
|
|
650
605
|
* Get Agent Builder
|
|
651
606
|
*/
|
|
652
|
-
export const getAgentBuilderOptions = (options) => {
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
};
|
|
666
|
-
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);
|
|
667
620
|
/**
|
|
668
621
|
* Get Chat Config
|
|
669
622
|
*
|
|
670
623
|
* 获取当前聊天配置
|
|
671
624
|
*/
|
|
672
|
-
export const chatAgentGetChatConfigOptions = (options) => {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
});
|
|
685
|
-
};
|
|
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
|
+
});
|
|
686
637
|
/**
|
|
687
638
|
* Update Chat Config
|
|
688
639
|
*
|
|
@@ -694,33 +645,31 @@ export const chatAgentUpdateChatConfigMutation = (options) => {
|
|
|
694
645
|
const { data } = await chatAgentUpdateChatConfig({
|
|
695
646
|
...options,
|
|
696
647
|
...fnOptions,
|
|
697
|
-
throwOnError: true
|
|
648
|
+
throwOnError: true
|
|
698
649
|
});
|
|
699
650
|
return data;
|
|
700
|
-
}
|
|
651
|
+
}
|
|
701
652
|
};
|
|
702
653
|
return mutationOptions;
|
|
703
654
|
};
|
|
704
|
-
export const chatAgentGetProvidersQueryKey = (options) => createQueryKey(
|
|
655
|
+
export const chatAgentGetProvidersQueryKey = (options) => createQueryKey('chatAgentGetProviders', options);
|
|
705
656
|
/**
|
|
706
657
|
* Get Providers
|
|
707
658
|
*
|
|
708
659
|
* 获取所有可用的AI提供商
|
|
709
660
|
*/
|
|
710
|
-
export const chatAgentGetProvidersOptions = (options) => {
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
});
|
|
723
|
-
};
|
|
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
|
+
});
|
|
724
673
|
/**
|
|
725
674
|
* Validate Api Key
|
|
726
675
|
*
|
|
@@ -732,33 +681,31 @@ export const chatAgentValidateApiKeyMutation = (options) => {
|
|
|
732
681
|
const { data } = await chatAgentValidateApiKey({
|
|
733
682
|
...options,
|
|
734
683
|
...fnOptions,
|
|
735
|
-
throwOnError: true
|
|
684
|
+
throwOnError: true
|
|
736
685
|
});
|
|
737
686
|
return data;
|
|
738
|
-
}
|
|
687
|
+
}
|
|
739
688
|
};
|
|
740
689
|
return mutationOptions;
|
|
741
690
|
};
|
|
742
|
-
export const chatAgentExportConfigQueryKey = (options) => createQueryKey(
|
|
691
|
+
export const chatAgentExportConfigQueryKey = (options) => createQueryKey('chatAgentExportConfig', options);
|
|
743
692
|
/**
|
|
744
693
|
* Export Config
|
|
745
694
|
*
|
|
746
695
|
* 导出AI配置
|
|
747
696
|
*/
|
|
748
|
-
export const chatAgentExportConfigOptions = (options) => {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
});
|
|
761
|
-
};
|
|
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
|
+
});
|
|
762
709
|
/**
|
|
763
710
|
* Import Config
|
|
764
711
|
*
|
|
@@ -770,10 +717,10 @@ export const chatAgentImportConfigMutation = (options) => {
|
|
|
770
717
|
const { data } = await chatAgentImportConfig({
|
|
771
718
|
...options,
|
|
772
719
|
...fnOptions,
|
|
773
|
-
throwOnError: true
|
|
720
|
+
throwOnError: true
|
|
774
721
|
});
|
|
775
722
|
return data;
|
|
776
|
-
}
|
|
723
|
+
}
|
|
777
724
|
};
|
|
778
725
|
return mutationOptions;
|
|
779
726
|
};
|
|
@@ -788,14 +735,14 @@ export const chatAgentChatMutation = (options) => {
|
|
|
788
735
|
const { data } = await chatAgentChat({
|
|
789
736
|
...options,
|
|
790
737
|
...fnOptions,
|
|
791
|
-
throwOnError: true
|
|
738
|
+
throwOnError: true
|
|
792
739
|
});
|
|
793
740
|
return data;
|
|
794
|
-
}
|
|
741
|
+
}
|
|
795
742
|
};
|
|
796
743
|
return mutationOptions;
|
|
797
744
|
};
|
|
798
|
-
export const listItemsQueryKey = (options) => createQueryKey(
|
|
745
|
+
export const listItemsQueryKey = (options) => createQueryKey('listItems', options);
|
|
799
746
|
/**
|
|
800
747
|
* List Items
|
|
801
748
|
*
|
|
@@ -803,20 +750,18 @@ export const listItemsQueryKey = (options) => createQueryKey("listItems", option
|
|
|
803
750
|
*
|
|
804
751
|
* Returns a list of items, with pagination support.
|
|
805
752
|
*/
|
|
806
|
-
export const listItemsOptions = (options) => {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
});
|
|
819
|
-
};
|
|
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
|
+
});
|
|
820
765
|
/**
|
|
821
766
|
* Create Item
|
|
822
767
|
*
|
|
@@ -830,10 +775,10 @@ export const createItemMutation = (options) => {
|
|
|
830
775
|
const { data } = await createItem({
|
|
831
776
|
...options,
|
|
832
777
|
...fnOptions,
|
|
833
|
-
throwOnError: true
|
|
778
|
+
throwOnError: true
|
|
834
779
|
});
|
|
835
780
|
return data;
|
|
836
|
-
}
|
|
781
|
+
}
|
|
837
782
|
};
|
|
838
783
|
return mutationOptions;
|
|
839
784
|
};
|
|
@@ -850,14 +795,14 @@ export const deleteItemMutation = (options) => {
|
|
|
850
795
|
const { data } = await deleteItem({
|
|
851
796
|
...options,
|
|
852
797
|
...fnOptions,
|
|
853
|
-
throwOnError: true
|
|
798
|
+
throwOnError: true
|
|
854
799
|
});
|
|
855
800
|
return data;
|
|
856
|
-
}
|
|
801
|
+
}
|
|
857
802
|
};
|
|
858
803
|
return mutationOptions;
|
|
859
804
|
};
|
|
860
|
-
export const getItemQueryKey = (options) => createQueryKey(
|
|
805
|
+
export const getItemQueryKey = (options) => createQueryKey('getItem', options);
|
|
861
806
|
/**
|
|
862
807
|
* Read Item
|
|
863
808
|
*
|
|
@@ -865,20 +810,18 @@ export const getItemQueryKey = (options) => createQueryKey("getItem", options);
|
|
|
865
810
|
*
|
|
866
811
|
* Raises a 404 error if the item does not exist.
|
|
867
812
|
*/
|
|
868
|
-
export const getItemOptions = (options) => {
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
});
|
|
881
|
-
};
|
|
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
|
+
});
|
|
882
825
|
/**
|
|
883
826
|
* Update Item
|
|
884
827
|
*
|
|
@@ -892,14 +835,14 @@ export const updateItemMutation = (options) => {
|
|
|
892
835
|
const { data } = await updateItem({
|
|
893
836
|
...options,
|
|
894
837
|
...fnOptions,
|
|
895
|
-
throwOnError: true
|
|
838
|
+
throwOnError: true
|
|
896
839
|
});
|
|
897
840
|
return data;
|
|
898
|
-
}
|
|
841
|
+
}
|
|
899
842
|
};
|
|
900
843
|
return mutationOptions;
|
|
901
844
|
};
|
|
902
|
-
export const searchItemsQueryKey = (options) => createQueryKey(
|
|
845
|
+
export const searchItemsQueryKey = (options) => createQueryKey('searchItems', options);
|
|
903
846
|
/**
|
|
904
847
|
* Search Items
|
|
905
848
|
*
|
|
@@ -907,20 +850,18 @@ export const searchItemsQueryKey = (options) => createQueryKey("searchItems", op
|
|
|
907
850
|
*
|
|
908
851
|
* Returns a list of items that match the search criteria.
|
|
909
852
|
*/
|
|
910
|
-
export const searchItemsOptions = (options) => {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
});
|
|
923
|
-
};
|
|
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
|
+
});
|
|
924
865
|
/**
|
|
925
866
|
* Agentrun
|
|
926
867
|
*/
|
|
@@ -930,10 +871,10 @@ export const agentsAgentrunMutation = (options) => {
|
|
|
930
871
|
const { data } = await agentsAgentrun({
|
|
931
872
|
...options,
|
|
932
873
|
...fnOptions,
|
|
933
|
-
throwOnError: true
|
|
874
|
+
throwOnError: true
|
|
934
875
|
});
|
|
935
876
|
return data;
|
|
936
|
-
}
|
|
877
|
+
}
|
|
937
878
|
};
|
|
938
879
|
return mutationOptions;
|
|
939
880
|
};
|
|
@@ -948,10 +889,10 @@ export const sandboxStartNapcatSandboxMutation = (options) => {
|
|
|
948
889
|
const { data } = await sandboxStartNapcatSandbox({
|
|
949
890
|
...options,
|
|
950
891
|
...fnOptions,
|
|
951
|
-
throwOnError: true
|
|
892
|
+
throwOnError: true
|
|
952
893
|
});
|
|
953
894
|
return data;
|
|
954
|
-
}
|
|
895
|
+
}
|
|
955
896
|
};
|
|
956
897
|
return mutationOptions;
|
|
957
898
|
};
|
|
@@ -966,10 +907,10 @@ export const sandboxCheckSandboxStatusMutation = (options) => {
|
|
|
966
907
|
const { data } = await sandboxCheckSandboxStatus({
|
|
967
908
|
...options,
|
|
968
909
|
...fnOptions,
|
|
969
|
-
throwOnError: true
|
|
910
|
+
throwOnError: true
|
|
970
911
|
});
|
|
971
912
|
return data;
|
|
972
|
-
}
|
|
913
|
+
}
|
|
973
914
|
};
|
|
974
915
|
return mutationOptions;
|
|
975
916
|
};
|