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,22 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { infiniteQueryOptions, queryOptions
|
|
3
|
-
import { client } from
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { infiniteQueryOptions, queryOptions } from '@tanstack/react-query';
|
|
3
|
+
import { client } from '../client.gen';
|
|
4
|
+
import { adkAgentRun, adkEventList, adkEventsAppend, adkSessionCreate, adkSessionGet, agentChatList, agentChatMessageList, agentQuickAction, agentRun, browserList, browserOpen, browserUpsert, humanTasksList, mcpApiHello, queueAck, queuePull, workerCheck, workerUp } from '../sdk.gen';
|
|
5
|
+
export const workerUpMutation = (options) => {
|
|
6
|
+
const mutationOptions = {
|
|
7
|
+
mutationFn: async (fnOptions) => {
|
|
8
|
+
const { data } = await workerUp({
|
|
9
|
+
...options,
|
|
10
|
+
...fnOptions,
|
|
11
|
+
throwOnError: true
|
|
12
|
+
});
|
|
13
|
+
return data;
|
|
14
|
+
}
|
|
9
15
|
};
|
|
16
|
+
return mutationOptions;
|
|
17
|
+
};
|
|
18
|
+
const createQueryKey = (id, options, infinite, tags) => {
|
|
19
|
+
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
10
20
|
if (infinite) {
|
|
11
21
|
params._infinite = infinite;
|
|
12
22
|
}
|
|
@@ -27,1471 +37,290 @@ const createQueryKey = (id, options, infinite, tags) => {
|
|
|
27
37
|
}
|
|
28
38
|
return [params];
|
|
29
39
|
};
|
|
30
|
-
export const
|
|
31
|
-
export const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
...queryKey[0],
|
|
48
|
-
};
|
|
49
|
-
if (page.body) {
|
|
50
|
-
params.body = {
|
|
51
|
-
...queryKey[0].body,
|
|
52
|
-
...page.body,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
if (page.headers) {
|
|
56
|
-
params.headers = {
|
|
57
|
-
...queryKey[0].headers,
|
|
58
|
-
...page.headers,
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
if (page.path) {
|
|
62
|
-
params.path = {
|
|
63
|
-
...queryKey[0].path,
|
|
64
|
-
...page.path,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
if (page.query) {
|
|
68
|
-
params.query = {
|
|
69
|
-
...queryKey[0].query,
|
|
70
|
-
...page.query,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
return params;
|
|
74
|
-
};
|
|
75
|
-
export const agentChatbotListInfiniteQueryKey = (options) => createQueryKey("agentChatbotList", options, true);
|
|
76
|
-
export const agentChatbotListInfiniteOptions = (options) => {
|
|
77
|
-
return infiniteQueryOptions(
|
|
78
|
-
// @ts-ignore
|
|
79
|
-
{
|
|
80
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
const page = typeof pageParam === "object"
|
|
83
|
-
? pageParam
|
|
84
|
-
: {
|
|
85
|
-
query: {
|
|
86
|
-
offset: pageParam,
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
const params = createInfiniteParams(queryKey, page);
|
|
90
|
-
const { data } = await agentChatbotList({
|
|
91
|
-
...options,
|
|
92
|
-
...params,
|
|
93
|
-
signal,
|
|
94
|
-
throwOnError: true,
|
|
95
|
-
});
|
|
96
|
-
return data;
|
|
97
|
-
},
|
|
98
|
-
queryKey: agentChatbotListInfiniteQueryKey(options),
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
export const agentChatbotCreateMutation = (options) => {
|
|
102
|
-
const mutationOptions = {
|
|
103
|
-
mutationFn: async (fnOptions) => {
|
|
104
|
-
const { data } = await agentChatbotCreate({
|
|
105
|
-
...options,
|
|
106
|
-
...fnOptions,
|
|
107
|
-
throwOnError: true,
|
|
108
|
-
});
|
|
109
|
-
return data;
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
return mutationOptions;
|
|
113
|
-
};
|
|
114
|
-
export const agentChatbotDeleteMutation = (options) => {
|
|
115
|
-
const mutationOptions = {
|
|
116
|
-
mutationFn: async (fnOptions) => {
|
|
117
|
-
const { data } = await agentChatbotDelete({
|
|
118
|
-
...options,
|
|
119
|
-
...fnOptions,
|
|
120
|
-
throwOnError: true,
|
|
121
|
-
});
|
|
122
|
-
return data;
|
|
123
|
-
},
|
|
124
|
-
};
|
|
125
|
-
return mutationOptions;
|
|
126
|
-
};
|
|
127
|
-
export const agentChatbotGetQueryKey = (options) => createQueryKey("agentChatbotGet", options);
|
|
128
|
-
export const agentChatbotGetOptions = (options) => {
|
|
129
|
-
return queryOptions({
|
|
130
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
131
|
-
const { data } = await agentChatbotGet({
|
|
132
|
-
...options,
|
|
133
|
-
...queryKey[0],
|
|
134
|
-
signal,
|
|
135
|
-
throwOnError: true,
|
|
136
|
-
});
|
|
137
|
-
return data;
|
|
138
|
-
},
|
|
139
|
-
queryKey: agentChatbotGetQueryKey(options),
|
|
140
|
-
});
|
|
141
|
-
};
|
|
142
|
-
export const agentChatbotUpdateMutation = (options) => {
|
|
143
|
-
const mutationOptions = {
|
|
144
|
-
mutationFn: async (fnOptions) => {
|
|
145
|
-
const { data } = await agentChatbotUpdate({
|
|
146
|
-
...options,
|
|
147
|
-
...fnOptions,
|
|
148
|
-
throwOnError: true,
|
|
149
|
-
});
|
|
150
|
-
return data;
|
|
151
|
-
},
|
|
152
|
-
};
|
|
153
|
-
return mutationOptions;
|
|
154
|
-
};
|
|
155
|
-
export const workerAgentStartNapcatQueryKey = (options) => createQueryKey("workerAgentStartNapcat", options);
|
|
156
|
-
export const workerAgentStartNapcatOptions = (options) => {
|
|
157
|
-
return queryOptions({
|
|
158
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
159
|
-
const { data } = await workerAgentStartNapcat({
|
|
160
|
-
...options,
|
|
161
|
-
...queryKey[0],
|
|
162
|
-
signal,
|
|
163
|
-
throwOnError: true,
|
|
164
|
-
});
|
|
165
|
-
return data;
|
|
166
|
-
},
|
|
167
|
-
queryKey: workerAgentStartNapcatQueryKey(options),
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
|
-
export const workerAgentStartNapcatInfiniteQueryKey = (options) => createQueryKey("workerAgentStartNapcat", options, true);
|
|
171
|
-
export const workerAgentStartNapcatInfiniteOptions = (options) => {
|
|
172
|
-
return infiniteQueryOptions(
|
|
173
|
-
// @ts-ignore
|
|
174
|
-
{
|
|
175
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
176
|
-
// @ts-ignore
|
|
177
|
-
const page = typeof pageParam === "object"
|
|
178
|
-
? pageParam
|
|
179
|
-
: {
|
|
180
|
-
query: {
|
|
181
|
-
offset: pageParam,
|
|
182
|
-
},
|
|
183
|
-
};
|
|
184
|
-
const params = createInfiniteParams(queryKey, page);
|
|
185
|
-
const { data } = await workerAgentStartNapcat({
|
|
186
|
-
...options,
|
|
187
|
-
...params,
|
|
188
|
-
signal,
|
|
189
|
-
throwOnError: true,
|
|
190
|
-
});
|
|
191
|
-
return data;
|
|
192
|
-
},
|
|
193
|
-
queryKey: workerAgentStartNapcatInfiniteQueryKey(options),
|
|
194
|
-
});
|
|
195
|
-
};
|
|
196
|
-
export const agentHandlerGetInfoMutation = (options) => {
|
|
197
|
-
const mutationOptions = {
|
|
198
|
-
mutationFn: async (fnOptions) => {
|
|
199
|
-
const { data } = await agentHandlerGetInfo({
|
|
200
|
-
...options,
|
|
201
|
-
...fnOptions,
|
|
202
|
-
throwOnError: true,
|
|
203
|
-
});
|
|
204
|
-
return data;
|
|
205
|
-
},
|
|
206
|
-
};
|
|
207
|
-
return mutationOptions;
|
|
208
|
-
};
|
|
209
|
-
export const a2aGetAgentCardQueryKey = (options) => createQueryKey("a2aGetAgentCard", options);
|
|
210
|
-
export const a2aGetAgentCardOptions = (options) => {
|
|
211
|
-
return queryOptions({
|
|
212
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
213
|
-
const { data } = await a2aGetAgentCard({
|
|
214
|
-
...options,
|
|
215
|
-
...queryKey[0],
|
|
216
|
-
signal,
|
|
217
|
-
throwOnError: true,
|
|
218
|
-
});
|
|
219
|
-
return data;
|
|
220
|
-
},
|
|
221
|
-
queryKey: a2aGetAgentCardQueryKey(options),
|
|
222
|
-
});
|
|
223
|
-
};
|
|
224
|
-
export const a2aRpcMutation = (options) => {
|
|
225
|
-
const mutationOptions = {
|
|
226
|
-
mutationFn: async (fnOptions) => {
|
|
227
|
-
const { data } = await a2aRpc({
|
|
228
|
-
...options,
|
|
229
|
-
...fnOptions,
|
|
230
|
-
throwOnError: true,
|
|
231
|
-
});
|
|
232
|
-
return data;
|
|
233
|
-
},
|
|
234
|
-
};
|
|
235
|
-
return mutationOptions;
|
|
236
|
-
};
|
|
237
|
-
export const browsersListQueryKey = (options) => createQueryKey("browsersList", options);
|
|
238
|
-
export const browsersListOptions = (options) => {
|
|
239
|
-
return queryOptions({
|
|
240
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
241
|
-
const { data } = await browsersList({
|
|
242
|
-
...options,
|
|
243
|
-
...queryKey[0],
|
|
244
|
-
signal,
|
|
245
|
-
throwOnError: true,
|
|
246
|
-
});
|
|
247
|
-
return data;
|
|
248
|
-
},
|
|
249
|
-
queryKey: browsersListQueryKey(options),
|
|
250
|
-
});
|
|
251
|
-
};
|
|
252
|
-
export const browsersListInfiniteQueryKey = (options) => createQueryKey("browsersList", options, true);
|
|
253
|
-
export const browsersListInfiniteOptions = (options) => {
|
|
254
|
-
return infiniteQueryOptions(
|
|
255
|
-
// @ts-ignore
|
|
256
|
-
{
|
|
257
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
258
|
-
// @ts-ignore
|
|
259
|
-
const page = typeof pageParam === "object"
|
|
260
|
-
? pageParam
|
|
261
|
-
: {
|
|
262
|
-
query: {
|
|
263
|
-
offset: pageParam,
|
|
264
|
-
},
|
|
265
|
-
};
|
|
266
|
-
const params = createInfiniteParams(queryKey, page);
|
|
267
|
-
const { data } = await browsersList({
|
|
268
|
-
...options,
|
|
269
|
-
...params,
|
|
270
|
-
signal,
|
|
271
|
-
throwOnError: true,
|
|
272
|
-
});
|
|
273
|
-
return data;
|
|
274
|
-
},
|
|
275
|
-
queryKey: browsersListInfiniteQueryKey(options),
|
|
276
|
-
});
|
|
277
|
-
};
|
|
278
|
-
export const browsersCreateMutation = (options) => {
|
|
279
|
-
const mutationOptions = {
|
|
280
|
-
mutationFn: async (fnOptions) => {
|
|
281
|
-
const { data } = await browsersCreate({
|
|
282
|
-
...options,
|
|
283
|
-
...fnOptions,
|
|
284
|
-
throwOnError: true,
|
|
285
|
-
});
|
|
286
|
-
return data;
|
|
287
|
-
},
|
|
288
|
-
};
|
|
289
|
-
return mutationOptions;
|
|
290
|
-
};
|
|
291
|
-
export const browsersDeleteMutation = (options) => {
|
|
292
|
-
const mutationOptions = {
|
|
293
|
-
mutationFn: async (fnOptions) => {
|
|
294
|
-
const { data } = await browsersDelete({
|
|
295
|
-
...options,
|
|
296
|
-
...fnOptions,
|
|
297
|
-
throwOnError: true,
|
|
298
|
-
});
|
|
299
|
-
return data;
|
|
300
|
-
},
|
|
301
|
-
};
|
|
302
|
-
return mutationOptions;
|
|
303
|
-
};
|
|
304
|
-
export const browsersGetQueryKey = (options) => createQueryKey("browsersGet", options);
|
|
305
|
-
export const browsersGetOptions = (options) => {
|
|
306
|
-
return queryOptions({
|
|
307
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
308
|
-
const { data } = await browsersGet({
|
|
309
|
-
...options,
|
|
310
|
-
...queryKey[0],
|
|
311
|
-
signal,
|
|
312
|
-
throwOnError: true,
|
|
313
|
-
});
|
|
314
|
-
return data;
|
|
315
|
-
},
|
|
316
|
-
queryKey: browsersGetQueryKey(options),
|
|
317
|
-
});
|
|
318
|
-
};
|
|
319
|
-
export const browsersUpdateMutation = (options) => {
|
|
320
|
-
const mutationOptions = {
|
|
321
|
-
mutationFn: async (fnOptions) => {
|
|
322
|
-
const { data } = await browsersUpdate({
|
|
323
|
-
...options,
|
|
324
|
-
...fnOptions,
|
|
325
|
-
throwOnError: true,
|
|
326
|
-
});
|
|
327
|
-
return data;
|
|
328
|
-
},
|
|
329
|
-
};
|
|
330
|
-
return mutationOptions;
|
|
331
|
-
};
|
|
332
|
-
export const pAccountsListQueryKey = (options) => createQueryKey("pAccountsList", options);
|
|
333
|
-
export const pAccountsListOptions = (options) => {
|
|
334
|
-
return queryOptions({
|
|
335
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
336
|
-
const { data } = await pAccountsList({
|
|
337
|
-
...options,
|
|
338
|
-
...queryKey[0],
|
|
339
|
-
signal,
|
|
340
|
-
throwOnError: true,
|
|
341
|
-
});
|
|
342
|
-
return data;
|
|
343
|
-
},
|
|
344
|
-
queryKey: pAccountsListQueryKey(options),
|
|
345
|
-
});
|
|
346
|
-
};
|
|
347
|
-
export const pAccountsListInfiniteQueryKey = (options) => createQueryKey("pAccountsList", options, true);
|
|
348
|
-
export const pAccountsListInfiniteOptions = (options) => {
|
|
349
|
-
return infiniteQueryOptions(
|
|
350
|
-
// @ts-ignore
|
|
351
|
-
{
|
|
352
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
353
|
-
// @ts-ignore
|
|
354
|
-
const page = typeof pageParam === "object"
|
|
355
|
-
? pageParam
|
|
356
|
-
: {
|
|
357
|
-
query: {
|
|
358
|
-
offset: pageParam,
|
|
359
|
-
},
|
|
360
|
-
};
|
|
361
|
-
const params = createInfiniteParams(queryKey, page);
|
|
362
|
-
const { data } = await pAccountsList({
|
|
363
|
-
...options,
|
|
364
|
-
...params,
|
|
365
|
-
signal,
|
|
366
|
-
throwOnError: true,
|
|
367
|
-
});
|
|
368
|
-
return data;
|
|
369
|
-
},
|
|
370
|
-
queryKey: pAccountsListInfiniteQueryKey(options),
|
|
371
|
-
});
|
|
372
|
-
};
|
|
373
|
-
export const pAccountsCreateMutation = (options) => {
|
|
374
|
-
const mutationOptions = {
|
|
375
|
-
mutationFn: async (fnOptions) => {
|
|
376
|
-
const { data } = await pAccountsCreate({
|
|
377
|
-
...options,
|
|
378
|
-
...fnOptions,
|
|
379
|
-
throwOnError: true,
|
|
380
|
-
});
|
|
381
|
-
return data;
|
|
382
|
-
},
|
|
383
|
-
};
|
|
384
|
-
return mutationOptions;
|
|
385
|
-
};
|
|
386
|
-
export const pAccountsDeleteMutation = (options) => {
|
|
387
|
-
const mutationOptions = {
|
|
388
|
-
mutationFn: async (fnOptions) => {
|
|
389
|
-
const { data } = await pAccountsDelete({
|
|
390
|
-
...options,
|
|
391
|
-
...fnOptions,
|
|
392
|
-
throwOnError: true,
|
|
393
|
-
});
|
|
394
|
-
return data;
|
|
395
|
-
},
|
|
396
|
-
};
|
|
397
|
-
return mutationOptions;
|
|
398
|
-
};
|
|
399
|
-
export const pAccountsGetQueryKey = (options) => createQueryKey("pAccountsGet", options);
|
|
400
|
-
export const pAccountsGetOptions = (options) => {
|
|
401
|
-
return queryOptions({
|
|
402
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
403
|
-
const { data } = await pAccountsGet({
|
|
404
|
-
...options,
|
|
405
|
-
...queryKey[0],
|
|
406
|
-
signal,
|
|
407
|
-
throwOnError: true,
|
|
408
|
-
});
|
|
409
|
-
return data;
|
|
410
|
-
},
|
|
411
|
-
queryKey: pAccountsGetQueryKey(options),
|
|
412
|
-
});
|
|
413
|
-
};
|
|
414
|
-
export const pAccountsUpdateMutation = (options) => {
|
|
415
|
-
const mutationOptions = {
|
|
416
|
-
mutationFn: async (fnOptions) => {
|
|
417
|
-
const { data } = await pAccountsUpdate({
|
|
418
|
-
...options,
|
|
419
|
-
...fnOptions,
|
|
420
|
-
throwOnError: true,
|
|
421
|
-
});
|
|
422
|
-
return data;
|
|
423
|
-
},
|
|
424
|
-
};
|
|
425
|
-
return mutationOptions;
|
|
426
|
-
};
|
|
427
|
-
export const platformsListQueryKey = (options) => createQueryKey("platformsList", options);
|
|
428
|
-
export const platformsListOptions = (options) => {
|
|
429
|
-
return queryOptions({
|
|
430
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
431
|
-
const { data } = await platformsList({
|
|
432
|
-
...options,
|
|
433
|
-
...queryKey[0],
|
|
434
|
-
signal,
|
|
435
|
-
throwOnError: true,
|
|
436
|
-
});
|
|
437
|
-
return data;
|
|
438
|
-
},
|
|
439
|
-
queryKey: platformsListQueryKey(options),
|
|
440
|
-
});
|
|
441
|
-
};
|
|
442
|
-
export const platformsListInfiniteQueryKey = (options) => createQueryKey("platformsList", options, true);
|
|
443
|
-
export const platformsListInfiniteOptions = (options) => {
|
|
444
|
-
return infiniteQueryOptions(
|
|
445
|
-
// @ts-ignore
|
|
446
|
-
{
|
|
447
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
448
|
-
// @ts-ignore
|
|
449
|
-
const page = typeof pageParam === "object"
|
|
450
|
-
? pageParam
|
|
451
|
-
: {
|
|
452
|
-
query: {
|
|
453
|
-
offset: pageParam,
|
|
454
|
-
},
|
|
455
|
-
};
|
|
456
|
-
const params = createInfiniteParams(queryKey, page);
|
|
457
|
-
const { data } = await platformsList({
|
|
458
|
-
...options,
|
|
459
|
-
...params,
|
|
460
|
-
signal,
|
|
461
|
-
throwOnError: true,
|
|
462
|
-
});
|
|
463
|
-
return data;
|
|
464
|
-
},
|
|
465
|
-
queryKey: platformsListInfiniteQueryKey(options),
|
|
466
|
-
});
|
|
467
|
-
};
|
|
468
|
-
export const platformsCreateMutation = (options) => {
|
|
40
|
+
export const workerCheckQueryKey = (options) => createQueryKey('workerCheck', options);
|
|
41
|
+
export const workerCheckOptions = (options) => queryOptions({
|
|
42
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
43
|
+
const { data } = await workerCheck({
|
|
44
|
+
...options,
|
|
45
|
+
...queryKey[0],
|
|
46
|
+
signal,
|
|
47
|
+
throwOnError: true
|
|
48
|
+
});
|
|
49
|
+
return data;
|
|
50
|
+
},
|
|
51
|
+
queryKey: workerCheckQueryKey(options)
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Worker Pull Messages
|
|
55
|
+
*/
|
|
56
|
+
export const queuePullMutation = (options) => {
|
|
469
57
|
const mutationOptions = {
|
|
470
58
|
mutationFn: async (fnOptions) => {
|
|
471
|
-
const { data } = await
|
|
59
|
+
const { data } = await queuePull({
|
|
472
60
|
...options,
|
|
473
61
|
...fnOptions,
|
|
474
|
-
throwOnError: true
|
|
62
|
+
throwOnError: true
|
|
475
63
|
});
|
|
476
64
|
return data;
|
|
477
|
-
}
|
|
65
|
+
}
|
|
478
66
|
};
|
|
479
67
|
return mutationOptions;
|
|
480
68
|
};
|
|
481
|
-
|
|
69
|
+
/**
|
|
70
|
+
* Worker Acknowledge Message
|
|
71
|
+
*/
|
|
72
|
+
export const queueAckMutation = (options) => {
|
|
482
73
|
const mutationOptions = {
|
|
483
74
|
mutationFn: async (fnOptions) => {
|
|
484
|
-
const { data } = await
|
|
75
|
+
const { data } = await queueAck({
|
|
485
76
|
...options,
|
|
486
77
|
...fnOptions,
|
|
487
|
-
throwOnError: true
|
|
78
|
+
throwOnError: true
|
|
488
79
|
});
|
|
489
80
|
return data;
|
|
490
|
-
}
|
|
81
|
+
}
|
|
491
82
|
};
|
|
492
83
|
return mutationOptions;
|
|
493
84
|
};
|
|
494
|
-
export const
|
|
495
|
-
export const platformsGetOptions = (options) => {
|
|
496
|
-
return queryOptions({
|
|
497
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
498
|
-
const { data } = await platformsGet({
|
|
499
|
-
...options,
|
|
500
|
-
...queryKey[0],
|
|
501
|
-
signal,
|
|
502
|
-
throwOnError: true,
|
|
503
|
-
});
|
|
504
|
-
return data;
|
|
505
|
-
},
|
|
506
|
-
queryKey: platformsGetQueryKey(options),
|
|
507
|
-
});
|
|
508
|
-
};
|
|
509
|
-
export const platformsUpdateMutation = (options) => {
|
|
85
|
+
export const adkAgentRunMutation = (options) => {
|
|
510
86
|
const mutationOptions = {
|
|
511
87
|
mutationFn: async (fnOptions) => {
|
|
512
|
-
const { data } = await
|
|
88
|
+
const { data } = await adkAgentRun({
|
|
513
89
|
...options,
|
|
514
90
|
...fnOptions,
|
|
515
|
-
throwOnError: true
|
|
91
|
+
throwOnError: true
|
|
516
92
|
});
|
|
517
93
|
return data;
|
|
518
|
-
}
|
|
94
|
+
}
|
|
519
95
|
};
|
|
520
96
|
return mutationOptions;
|
|
521
97
|
};
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
const { data } = await proxiesList({
|
|
527
|
-
...options,
|
|
528
|
-
...queryKey[0],
|
|
529
|
-
signal,
|
|
530
|
-
throwOnError: true,
|
|
531
|
-
});
|
|
532
|
-
return data;
|
|
533
|
-
},
|
|
534
|
-
queryKey: proxiesListQueryKey(options),
|
|
535
|
-
});
|
|
536
|
-
};
|
|
537
|
-
export const proxiesListInfiniteQueryKey = (options) => createQueryKey("proxiesList", options, true);
|
|
538
|
-
export const proxiesListInfiniteOptions = (options) => {
|
|
539
|
-
return infiniteQueryOptions(
|
|
540
|
-
// @ts-ignore
|
|
541
|
-
{
|
|
542
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
543
|
-
// @ts-ignore
|
|
544
|
-
const page = typeof pageParam === "object"
|
|
545
|
-
? pageParam
|
|
546
|
-
: {
|
|
547
|
-
query: {
|
|
548
|
-
offset: pageParam,
|
|
549
|
-
},
|
|
550
|
-
};
|
|
551
|
-
const params = createInfiniteParams(queryKey, page);
|
|
552
|
-
const { data } = await proxiesList({
|
|
553
|
-
...options,
|
|
554
|
-
...params,
|
|
555
|
-
signal,
|
|
556
|
-
throwOnError: true,
|
|
557
|
-
});
|
|
558
|
-
return data;
|
|
559
|
-
},
|
|
560
|
-
queryKey: proxiesListInfiniteQueryKey(options),
|
|
561
|
-
});
|
|
562
|
-
};
|
|
563
|
-
export const proxiesDeleteMutation = (options) => {
|
|
98
|
+
/**
|
|
99
|
+
* Create or Update ADK Session
|
|
100
|
+
*/
|
|
101
|
+
export const adkSessionCreateMutation = (options) => {
|
|
564
102
|
const mutationOptions = {
|
|
565
103
|
mutationFn: async (fnOptions) => {
|
|
566
|
-
const { data } = await
|
|
104
|
+
const { data } = await adkSessionCreate({
|
|
567
105
|
...options,
|
|
568
106
|
...fnOptions,
|
|
569
|
-
throwOnError: true
|
|
107
|
+
throwOnError: true
|
|
570
108
|
});
|
|
571
109
|
return data;
|
|
572
|
-
}
|
|
110
|
+
}
|
|
573
111
|
};
|
|
574
112
|
return mutationOptions;
|
|
575
113
|
};
|
|
576
|
-
export const
|
|
577
|
-
export const
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
114
|
+
export const adkSessionGetQueryKey = (options) => createQueryKey('adkSessionGet', options);
|
|
115
|
+
export const adkSessionGetOptions = (options) => queryOptions({
|
|
116
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
117
|
+
const { data } = await adkSessionGet({
|
|
118
|
+
...options,
|
|
119
|
+
...queryKey[0],
|
|
120
|
+
signal,
|
|
121
|
+
throwOnError: true
|
|
122
|
+
});
|
|
123
|
+
return data;
|
|
124
|
+
},
|
|
125
|
+
queryKey: adkSessionGetQueryKey(options)
|
|
126
|
+
});
|
|
127
|
+
export const adkEventListQueryKey = (options) => createQueryKey('adkEventList', options);
|
|
128
|
+
/**
|
|
129
|
+
* List Events
|
|
130
|
+
*/
|
|
131
|
+
export const adkEventListOptions = (options) => queryOptions({
|
|
132
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
133
|
+
const { data } = await adkEventList({
|
|
134
|
+
...options,
|
|
135
|
+
...queryKey[0],
|
|
136
|
+
signal,
|
|
137
|
+
throwOnError: true
|
|
138
|
+
});
|
|
139
|
+
return data;
|
|
140
|
+
},
|
|
141
|
+
queryKey: adkEventListQueryKey(options)
|
|
142
|
+
});
|
|
143
|
+
/**
|
|
144
|
+
* Append Event
|
|
145
|
+
*/
|
|
146
|
+
export const adkEventsAppendMutation = (options) => {
|
|
592
147
|
const mutationOptions = {
|
|
593
148
|
mutationFn: async (fnOptions) => {
|
|
594
|
-
const { data } = await
|
|
149
|
+
const { data } = await adkEventsAppend({
|
|
595
150
|
...options,
|
|
596
151
|
...fnOptions,
|
|
597
|
-
throwOnError: true
|
|
152
|
+
throwOnError: true
|
|
598
153
|
});
|
|
599
154
|
return data;
|
|
600
|
-
}
|
|
155
|
+
}
|
|
601
156
|
};
|
|
602
157
|
return mutationOptions;
|
|
603
158
|
};
|
|
604
|
-
export const
|
|
605
|
-
export const sandboxListOptions = (options) => {
|
|
606
|
-
return queryOptions({
|
|
607
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
608
|
-
const { data } = await sandboxList({
|
|
609
|
-
...options,
|
|
610
|
-
...queryKey[0],
|
|
611
|
-
signal,
|
|
612
|
-
throwOnError: true,
|
|
613
|
-
});
|
|
614
|
-
return data;
|
|
615
|
-
},
|
|
616
|
-
queryKey: sandboxListQueryKey(options),
|
|
617
|
-
});
|
|
618
|
-
};
|
|
619
|
-
export const sandboxListInfiniteQueryKey = (options) => createQueryKey("sandboxList", options, true);
|
|
620
|
-
export const sandboxListInfiniteOptions = (options) => {
|
|
621
|
-
return infiniteQueryOptions(
|
|
622
|
-
// @ts-ignore
|
|
623
|
-
{
|
|
624
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
625
|
-
// @ts-ignore
|
|
626
|
-
const page = typeof pageParam === "object"
|
|
627
|
-
? pageParam
|
|
628
|
-
: {
|
|
629
|
-
query: {
|
|
630
|
-
offset: pageParam,
|
|
631
|
-
},
|
|
632
|
-
};
|
|
633
|
-
const params = createInfiniteParams(queryKey, page);
|
|
634
|
-
const { data } = await sandboxList({
|
|
635
|
-
...options,
|
|
636
|
-
...params,
|
|
637
|
-
signal,
|
|
638
|
-
throwOnError: true,
|
|
639
|
-
});
|
|
640
|
-
return data;
|
|
641
|
-
},
|
|
642
|
-
queryKey: sandboxListInfiniteQueryKey(options),
|
|
643
|
-
});
|
|
644
|
-
};
|
|
645
|
-
export const sandboxCreateMutation = (options) => {
|
|
159
|
+
export const browserOpenMutation = (options) => {
|
|
646
160
|
const mutationOptions = {
|
|
647
161
|
mutationFn: async (fnOptions) => {
|
|
648
|
-
const { data } = await
|
|
162
|
+
const { data } = await browserOpen({
|
|
649
163
|
...options,
|
|
650
164
|
...fnOptions,
|
|
651
|
-
throwOnError: true
|
|
165
|
+
throwOnError: true
|
|
652
166
|
});
|
|
653
167
|
return data;
|
|
654
|
-
}
|
|
168
|
+
}
|
|
655
169
|
};
|
|
656
170
|
return mutationOptions;
|
|
657
171
|
};
|
|
658
|
-
export const
|
|
172
|
+
export const agentChatListQueryKey = (options) => createQueryKey('agentChatList', options);
|
|
173
|
+
export const agentChatListOptions = (options) => queryOptions({
|
|
174
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
175
|
+
const { data } = await agentChatList({
|
|
176
|
+
...options,
|
|
177
|
+
...queryKey[0],
|
|
178
|
+
signal,
|
|
179
|
+
throwOnError: true
|
|
180
|
+
});
|
|
181
|
+
return data;
|
|
182
|
+
},
|
|
183
|
+
queryKey: agentChatListQueryKey(options)
|
|
184
|
+
});
|
|
185
|
+
export const agentRunMutation = (options) => {
|
|
659
186
|
const mutationOptions = {
|
|
660
187
|
mutationFn: async (fnOptions) => {
|
|
661
|
-
const { data } = await
|
|
188
|
+
const { data } = await agentRun({
|
|
662
189
|
...options,
|
|
663
190
|
...fnOptions,
|
|
664
|
-
throwOnError: true
|
|
191
|
+
throwOnError: true
|
|
665
192
|
});
|
|
666
193
|
return data;
|
|
667
|
-
}
|
|
194
|
+
}
|
|
668
195
|
};
|
|
669
196
|
return mutationOptions;
|
|
670
197
|
};
|
|
671
|
-
export const
|
|
672
|
-
export const
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
198
|
+
export const agentQuickActionQueryKey = (options) => createQueryKey('agentQuickAction', options);
|
|
199
|
+
export const agentQuickActionOptions = (options) => queryOptions({
|
|
200
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
201
|
+
const { data } = await agentQuickAction({
|
|
202
|
+
...options,
|
|
203
|
+
...queryKey[0],
|
|
204
|
+
signal,
|
|
205
|
+
throwOnError: true
|
|
206
|
+
});
|
|
207
|
+
return data;
|
|
208
|
+
},
|
|
209
|
+
queryKey: agentQuickActionQueryKey(options)
|
|
210
|
+
});
|
|
211
|
+
export const agentChatMessageListQueryKey = (options) => createQueryKey('agentChatMessageList', options);
|
|
212
|
+
export const agentChatMessageListOptions = (options) => queryOptions({
|
|
213
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
214
|
+
const { data } = await agentChatMessageList({
|
|
215
|
+
...options,
|
|
216
|
+
...queryKey[0],
|
|
217
|
+
signal,
|
|
218
|
+
throwOnError: true
|
|
219
|
+
});
|
|
220
|
+
return data;
|
|
221
|
+
},
|
|
222
|
+
queryKey: agentChatMessageListQueryKey(options)
|
|
223
|
+
});
|
|
224
|
+
export const humanTasksListQueryKey = (options) => createQueryKey('humanTasksList', options);
|
|
225
|
+
export const humanTasksListOptions = (options) => queryOptions({
|
|
226
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
227
|
+
const { data } = await humanTasksList({
|
|
228
|
+
...options,
|
|
229
|
+
...queryKey[0],
|
|
230
|
+
signal,
|
|
231
|
+
throwOnError: true
|
|
232
|
+
});
|
|
233
|
+
return data;
|
|
234
|
+
},
|
|
235
|
+
queryKey: humanTasksListQueryKey(options)
|
|
236
|
+
});
|
|
237
|
+
export const mcpApiHelloQueryKey = (options) => createQueryKey('mcpApiHello', options);
|
|
238
|
+
export const mcpApiHelloOptions = (options) => queryOptions({
|
|
239
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
240
|
+
const { data } = await mcpApiHello({
|
|
241
|
+
...options,
|
|
242
|
+
...queryKey[0],
|
|
243
|
+
signal,
|
|
244
|
+
throwOnError: true
|
|
245
|
+
});
|
|
246
|
+
return data;
|
|
247
|
+
},
|
|
248
|
+
queryKey: mcpApiHelloQueryKey(options)
|
|
249
|
+
});
|
|
250
|
+
export const browserUpsertMutation = (options) => {
|
|
687
251
|
const mutationOptions = {
|
|
688
252
|
mutationFn: async (fnOptions) => {
|
|
689
|
-
const { data } = await
|
|
253
|
+
const { data } = await browserUpsert({
|
|
690
254
|
...options,
|
|
691
255
|
...fnOptions,
|
|
692
|
-
throwOnError: true
|
|
256
|
+
throwOnError: true
|
|
693
257
|
});
|
|
694
|
-
return data;
|
|
695
|
-
}
|
|
696
|
-
};
|
|
697
|
-
return mutationOptions;
|
|
698
|
-
};
|
|
699
|
-
export const
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
};
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
}
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
};
|
|
740
|
-
export const sysConfigQueryKey = (options) => createQueryKey("sysConfig", options);
|
|
741
|
-
export const sysConfigOptions = (options) => {
|
|
742
|
-
return queryOptions({
|
|
743
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
744
|
-
const { data } = await sysConfig({
|
|
745
|
-
...options,
|
|
746
|
-
...queryKey[0],
|
|
747
|
-
signal,
|
|
748
|
-
throwOnError: true,
|
|
749
|
-
});
|
|
750
|
-
return data;
|
|
751
|
-
},
|
|
752
|
-
queryKey: sysConfigQueryKey(options),
|
|
753
|
-
});
|
|
754
|
-
};
|
|
755
|
-
export const setupStatusQueryKey = (options) => createQueryKey("setupStatus", options);
|
|
756
|
-
export const setupStatusOptions = (options) => {
|
|
757
|
-
return queryOptions({
|
|
758
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
759
|
-
const { data } = await setupStatus({
|
|
760
|
-
...options,
|
|
761
|
-
...queryKey[0],
|
|
762
|
-
signal,
|
|
763
|
-
throwOnError: true,
|
|
764
|
-
});
|
|
765
|
-
return data;
|
|
766
|
-
},
|
|
767
|
-
queryKey: setupStatusQueryKey(options),
|
|
768
|
-
});
|
|
769
|
-
};
|
|
770
|
-
export const setupInitializeMutation = (options) => {
|
|
771
|
-
const mutationOptions = {
|
|
772
|
-
mutationFn: async (fnOptions) => {
|
|
773
|
-
const { data } = await setupInitialize({
|
|
774
|
-
...options,
|
|
775
|
-
...fnOptions,
|
|
776
|
-
throwOnError: true,
|
|
777
|
-
});
|
|
778
|
-
return data;
|
|
779
|
-
},
|
|
780
|
-
};
|
|
781
|
-
return mutationOptions;
|
|
782
|
-
};
|
|
783
|
-
export const configGomtmGetQueryKey = (options) => createQueryKey("configGomtmGet", options);
|
|
784
|
-
export const configGomtmGetOptions = (options) => {
|
|
785
|
-
return queryOptions({
|
|
786
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
787
|
-
const { data } = await configGomtmGet({
|
|
788
|
-
...options,
|
|
789
|
-
...queryKey[0],
|
|
790
|
-
signal,
|
|
791
|
-
throwOnError: true,
|
|
792
|
-
});
|
|
793
|
-
return data;
|
|
794
|
-
},
|
|
795
|
-
queryKey: configGomtmGetQueryKey(options),
|
|
796
|
-
});
|
|
797
|
-
};
|
|
798
|
-
export const singboxConfigGetQueryKey = (options) => createQueryKey("singboxConfigGet", options);
|
|
799
|
-
export const singboxConfigGetOptions = (options) => {
|
|
800
|
-
return queryOptions({
|
|
801
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
802
|
-
const { data } = await singboxConfigGet({
|
|
803
|
-
...options,
|
|
804
|
-
...queryKey[0],
|
|
805
|
-
signal,
|
|
806
|
-
throwOnError: true,
|
|
807
|
-
});
|
|
808
|
-
return data;
|
|
809
|
-
},
|
|
810
|
-
queryKey: singboxConfigGetQueryKey(options),
|
|
811
|
-
});
|
|
812
|
-
};
|
|
813
|
-
export const siteListQueryKey = (options) => createQueryKey("siteList", options);
|
|
814
|
-
export const siteListOptions = (options) => {
|
|
815
|
-
return queryOptions({
|
|
816
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
817
|
-
const { data } = await siteList({
|
|
818
|
-
...options,
|
|
819
|
-
...queryKey[0],
|
|
820
|
-
signal,
|
|
821
|
-
throwOnError: true,
|
|
822
|
-
});
|
|
823
|
-
return data;
|
|
824
|
-
},
|
|
825
|
-
queryKey: siteListQueryKey(options),
|
|
826
|
-
});
|
|
827
|
-
};
|
|
828
|
-
export const siteListInfiniteQueryKey = (options) => createQueryKey("siteList", options, true);
|
|
829
|
-
export const siteListInfiniteOptions = (options) => {
|
|
830
|
-
return infiniteQueryOptions(
|
|
831
|
-
// @ts-ignore
|
|
832
|
-
{
|
|
833
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
834
|
-
// @ts-ignore
|
|
835
|
-
const page = typeof pageParam === "object"
|
|
836
|
-
? pageParam
|
|
837
|
-
: {
|
|
838
|
-
query: {
|
|
839
|
-
offset: pageParam,
|
|
840
|
-
},
|
|
841
|
-
};
|
|
842
|
-
const params = createInfiniteParams(queryKey, page);
|
|
843
|
-
const { data } = await siteList({
|
|
844
|
-
...options,
|
|
845
|
-
...params,
|
|
846
|
-
signal,
|
|
847
|
-
throwOnError: true,
|
|
848
|
-
});
|
|
849
|
-
return data;
|
|
850
|
-
},
|
|
851
|
-
queryKey: siteListInfiniteQueryKey(options),
|
|
852
|
-
});
|
|
853
|
-
};
|
|
854
|
-
export const siteCreateMutation = (options) => {
|
|
855
|
-
const mutationOptions = {
|
|
856
|
-
mutationFn: async (fnOptions) => {
|
|
857
|
-
const { data } = await siteCreate({
|
|
858
|
-
...options,
|
|
859
|
-
...fnOptions,
|
|
860
|
-
throwOnError: true,
|
|
861
|
-
});
|
|
862
|
-
return data;
|
|
863
|
-
},
|
|
864
|
-
};
|
|
865
|
-
return mutationOptions;
|
|
866
|
-
};
|
|
867
|
-
export const siteDeleteMutation = (options) => {
|
|
868
|
-
const mutationOptions = {
|
|
869
|
-
mutationFn: async (fnOptions) => {
|
|
870
|
-
const { data } = await siteDelete({
|
|
871
|
-
...options,
|
|
872
|
-
...fnOptions,
|
|
873
|
-
throwOnError: true,
|
|
874
|
-
});
|
|
875
|
-
return data;
|
|
876
|
-
},
|
|
877
|
-
};
|
|
878
|
-
return mutationOptions;
|
|
879
|
-
};
|
|
880
|
-
export const siteGetQueryKey = (options) => createQueryKey("siteGet", options);
|
|
881
|
-
export const siteGetOptions = (options) => {
|
|
882
|
-
return queryOptions({
|
|
883
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
884
|
-
const { data } = await siteGet({
|
|
885
|
-
...options,
|
|
886
|
-
...queryKey[0],
|
|
887
|
-
signal,
|
|
888
|
-
throwOnError: true,
|
|
889
|
-
});
|
|
890
|
-
return data;
|
|
891
|
-
},
|
|
892
|
-
queryKey: siteGetQueryKey(options),
|
|
893
|
-
});
|
|
894
|
-
};
|
|
895
|
-
export const siteUpdateMutation = (options) => {
|
|
896
|
-
const mutationOptions = {
|
|
897
|
-
mutationFn: async (fnOptions) => {
|
|
898
|
-
const { data } = await siteUpdate({
|
|
899
|
-
...options,
|
|
900
|
-
...fnOptions,
|
|
901
|
-
throwOnError: true,
|
|
902
|
-
});
|
|
903
|
-
return data;
|
|
904
|
-
},
|
|
905
|
-
};
|
|
906
|
-
return mutationOptions;
|
|
907
|
-
};
|
|
908
|
-
export const blogPostsListQueryKey = (options) => createQueryKey("blogPostsList", options);
|
|
909
|
-
export const blogPostsListOptions = (options) => {
|
|
910
|
-
return queryOptions({
|
|
911
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
912
|
-
const { data } = await blogPostsList({
|
|
913
|
-
...options,
|
|
914
|
-
...queryKey[0],
|
|
915
|
-
signal,
|
|
916
|
-
throwOnError: true,
|
|
917
|
-
});
|
|
918
|
-
return data;
|
|
919
|
-
},
|
|
920
|
-
queryKey: blogPostsListQueryKey(options),
|
|
921
|
-
});
|
|
922
|
-
};
|
|
923
|
-
export const blogPostsListInfiniteQueryKey = (options) => createQueryKey("blogPostsList", options, true);
|
|
924
|
-
export const blogPostsListInfiniteOptions = (options) => {
|
|
925
|
-
return infiniteQueryOptions(
|
|
926
|
-
// @ts-ignore
|
|
927
|
-
{
|
|
928
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
929
|
-
// @ts-ignore
|
|
930
|
-
const page = typeof pageParam === "object"
|
|
931
|
-
? pageParam
|
|
932
|
-
: {
|
|
933
|
-
query: {
|
|
934
|
-
offset: pageParam,
|
|
935
|
-
},
|
|
936
|
-
};
|
|
937
|
-
const params = createInfiniteParams(queryKey, page);
|
|
938
|
-
const { data } = await blogPostsList({
|
|
939
|
-
...options,
|
|
940
|
-
...params,
|
|
941
|
-
signal,
|
|
942
|
-
throwOnError: true,
|
|
943
|
-
});
|
|
944
|
-
return data;
|
|
945
|
-
},
|
|
946
|
-
queryKey: blogPostsListInfiniteQueryKey(options),
|
|
947
|
-
});
|
|
948
|
-
};
|
|
949
|
-
export const blogPostsCreateMutation = (options) => {
|
|
950
|
-
const mutationOptions = {
|
|
951
|
-
mutationFn: async (fnOptions) => {
|
|
952
|
-
const { data } = await blogPostsCreate({
|
|
953
|
-
...options,
|
|
954
|
-
...fnOptions,
|
|
955
|
-
throwOnError: true,
|
|
956
|
-
});
|
|
957
|
-
return data;
|
|
958
|
-
},
|
|
959
|
-
};
|
|
960
|
-
return mutationOptions;
|
|
961
|
-
};
|
|
962
|
-
export const blogPostsDeleteMutation = (options) => {
|
|
963
|
-
const mutationOptions = {
|
|
964
|
-
mutationFn: async (fnOptions) => {
|
|
965
|
-
const { data } = await blogPostsDelete({
|
|
966
|
-
...options,
|
|
967
|
-
...fnOptions,
|
|
968
|
-
throwOnError: true,
|
|
969
|
-
});
|
|
970
|
-
return data;
|
|
971
|
-
},
|
|
972
|
-
};
|
|
973
|
-
return mutationOptions;
|
|
974
|
-
};
|
|
975
|
-
export const blogPostsGetByIdQueryKey = (options) => createQueryKey("blogPostsGetById", options);
|
|
976
|
-
export const blogPostsGetByIdOptions = (options) => {
|
|
977
|
-
return queryOptions({
|
|
978
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
979
|
-
const { data } = await blogPostsGetById({
|
|
980
|
-
...options,
|
|
981
|
-
...queryKey[0],
|
|
982
|
-
signal,
|
|
983
|
-
throwOnError: true,
|
|
984
|
-
});
|
|
985
|
-
return data;
|
|
986
|
-
},
|
|
987
|
-
queryKey: blogPostsGetByIdQueryKey(options),
|
|
988
|
-
});
|
|
989
|
-
};
|
|
990
|
-
export const blogPostsUpdateMutation = (options) => {
|
|
991
|
-
const mutationOptions = {
|
|
992
|
-
mutationFn: async (fnOptions) => {
|
|
993
|
-
const { data } = await blogPostsUpdate({
|
|
994
|
-
...options,
|
|
995
|
-
...fnOptions,
|
|
996
|
-
throwOnError: true,
|
|
997
|
-
});
|
|
998
|
-
return data;
|
|
999
|
-
},
|
|
1000
|
-
};
|
|
1001
|
-
return mutationOptions;
|
|
1002
|
-
};
|
|
1003
|
-
export const blogPostsGetBySlugQueryKey = (options) => createQueryKey("blogPostsGetBySlug", options);
|
|
1004
|
-
export const blogPostsGetBySlugOptions = (options) => {
|
|
1005
|
-
return queryOptions({
|
|
1006
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1007
|
-
const { data } = await blogPostsGetBySlug({
|
|
1008
|
-
...options,
|
|
1009
|
-
...queryKey[0],
|
|
1010
|
-
signal,
|
|
1011
|
-
throwOnError: true,
|
|
1012
|
-
});
|
|
1013
|
-
return data;
|
|
1014
|
-
},
|
|
1015
|
-
queryKey: blogPostsGetBySlugQueryKey(options),
|
|
1016
|
-
});
|
|
1017
|
-
};
|
|
1018
|
-
export const sitehostListQueryKey = (options) => createQueryKey("sitehostList", options);
|
|
1019
|
-
export const sitehostListOptions = (options) => {
|
|
1020
|
-
return queryOptions({
|
|
1021
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1022
|
-
const { data } = await sitehostList({
|
|
1023
|
-
...options,
|
|
1024
|
-
...queryKey[0],
|
|
1025
|
-
signal,
|
|
1026
|
-
throwOnError: true,
|
|
1027
|
-
});
|
|
1028
|
-
return data;
|
|
1029
|
-
},
|
|
1030
|
-
queryKey: sitehostListQueryKey(options),
|
|
1031
|
-
});
|
|
1032
|
-
};
|
|
1033
|
-
export const sitehostCreateMutation = (options) => {
|
|
1034
|
-
const mutationOptions = {
|
|
1035
|
-
mutationFn: async (fnOptions) => {
|
|
1036
|
-
const { data } = await sitehostCreate({
|
|
1037
|
-
...options,
|
|
1038
|
-
...fnOptions,
|
|
1039
|
-
throwOnError: true,
|
|
1040
|
-
});
|
|
1041
|
-
return data;
|
|
1042
|
-
},
|
|
1043
|
-
};
|
|
1044
|
-
return mutationOptions;
|
|
1045
|
-
};
|
|
1046
|
-
export const sitehostDeleteMutation = (options) => {
|
|
1047
|
-
const mutationOptions = {
|
|
1048
|
-
mutationFn: async (fnOptions) => {
|
|
1049
|
-
const { data } = await sitehostDelete({
|
|
1050
|
-
...options,
|
|
1051
|
-
...fnOptions,
|
|
1052
|
-
throwOnError: true,
|
|
1053
|
-
});
|
|
1054
|
-
return data;
|
|
1055
|
-
},
|
|
1056
|
-
};
|
|
1057
|
-
return mutationOptions;
|
|
1058
|
-
};
|
|
1059
|
-
/**
|
|
1060
|
-
* 创建ADK会话
|
|
1061
|
-
* 创建新的ADK会话实例
|
|
1062
|
-
*/
|
|
1063
|
-
export const adkSessionCreateMutation = (options) => {
|
|
1064
|
-
const mutationOptions = {
|
|
1065
|
-
mutationFn: async (fnOptions) => {
|
|
1066
|
-
const { data } = await adkSessionCreate({
|
|
1067
|
-
...options,
|
|
1068
|
-
...fnOptions,
|
|
1069
|
-
throwOnError: true,
|
|
1070
|
-
});
|
|
1071
|
-
return data;
|
|
1072
|
-
},
|
|
1073
|
-
};
|
|
1074
|
-
return mutationOptions;
|
|
1075
|
-
};
|
|
1076
|
-
/**
|
|
1077
|
-
* 获取ADK会话
|
|
1078
|
-
* 根据会话ID获取ADK会话详情
|
|
1079
|
-
*/
|
|
1080
|
-
export const adkSessionGetMutation = (options) => {
|
|
1081
|
-
const mutationOptions = {
|
|
1082
|
-
mutationFn: async (fnOptions) => {
|
|
1083
|
-
const { data } = await adkSessionGet({
|
|
1084
|
-
...options,
|
|
1085
|
-
...fnOptions,
|
|
1086
|
-
throwOnError: true,
|
|
1087
|
-
});
|
|
1088
|
-
return data;
|
|
1089
|
-
},
|
|
1090
|
-
};
|
|
1091
|
-
return mutationOptions;
|
|
1092
|
-
};
|
|
1093
|
-
export const adkSessionListQueryKey = (options) => createQueryKey("adkSessionList", options);
|
|
1094
|
-
/**
|
|
1095
|
-
* 列出ADK会话
|
|
1096
|
-
* 获取指定应用和用户的所有ADK会话列表
|
|
1097
|
-
*/
|
|
1098
|
-
export const adkSessionListOptions = (options) => {
|
|
1099
|
-
return queryOptions({
|
|
1100
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1101
|
-
const { data } = await adkSessionList({
|
|
1102
|
-
...options,
|
|
1103
|
-
...queryKey[0],
|
|
1104
|
-
signal,
|
|
1105
|
-
throwOnError: true,
|
|
1106
|
-
});
|
|
1107
|
-
return data;
|
|
1108
|
-
},
|
|
1109
|
-
queryKey: adkSessionListQueryKey(options),
|
|
1110
|
-
});
|
|
1111
|
-
};
|
|
1112
|
-
export const adkSessionListInfiniteQueryKey = (options) => createQueryKey("adkSessionList", options, true);
|
|
1113
|
-
/**
|
|
1114
|
-
* 列出ADK会话
|
|
1115
|
-
* 获取指定应用和用户的所有ADK会话列表
|
|
1116
|
-
*/
|
|
1117
|
-
export const adkSessionListInfiniteOptions = (options) => {
|
|
1118
|
-
return infiniteQueryOptions(
|
|
1119
|
-
// @ts-ignore
|
|
1120
|
-
{
|
|
1121
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1122
|
-
// @ts-ignore
|
|
1123
|
-
const page = typeof pageParam === "object"
|
|
1124
|
-
? pageParam
|
|
1125
|
-
: {
|
|
1126
|
-
query: {
|
|
1127
|
-
offset: pageParam,
|
|
1128
|
-
},
|
|
1129
|
-
};
|
|
1130
|
-
const params = createInfiniteParams(queryKey, page);
|
|
1131
|
-
const { data } = await adkSessionList({
|
|
1132
|
-
...options,
|
|
1133
|
-
...params,
|
|
1134
|
-
signal,
|
|
1135
|
-
throwOnError: true,
|
|
1136
|
-
});
|
|
1137
|
-
return data;
|
|
1138
|
-
},
|
|
1139
|
-
queryKey: adkSessionListInfiniteQueryKey(options),
|
|
1140
|
-
});
|
|
1141
|
-
};
|
|
1142
|
-
/**
|
|
1143
|
-
* 删除ADK会话
|
|
1144
|
-
* 删除指定的ADK会话
|
|
1145
|
-
*/
|
|
1146
|
-
export const adkSessionDeleteMutation = (options) => {
|
|
1147
|
-
const mutationOptions = {
|
|
1148
|
-
mutationFn: async (fnOptions) => {
|
|
1149
|
-
const { data } = await adkSessionDelete({
|
|
1150
|
-
...options,
|
|
1151
|
-
...fnOptions,
|
|
1152
|
-
throwOnError: true,
|
|
1153
|
-
});
|
|
1154
|
-
return data;
|
|
1155
|
-
},
|
|
1156
|
-
};
|
|
1157
|
-
return mutationOptions;
|
|
1158
|
-
};
|
|
1159
|
-
/**
|
|
1160
|
-
* 向ADK会话添加事件
|
|
1161
|
-
* 向指定的ADK会话添加新事件
|
|
1162
|
-
*/
|
|
1163
|
-
export const adkSessionAppendEventMutation = (options) => {
|
|
1164
|
-
const mutationOptions = {
|
|
1165
|
-
mutationFn: async (fnOptions) => {
|
|
1166
|
-
const { data } = await adkSessionAppendEvent({
|
|
1167
|
-
...options,
|
|
1168
|
-
...fnOptions,
|
|
1169
|
-
throwOnError: true,
|
|
1170
|
-
});
|
|
1171
|
-
return data;
|
|
1172
|
-
},
|
|
1173
|
-
};
|
|
1174
|
-
return mutationOptions;
|
|
1175
|
-
};
|
|
1176
|
-
/**
|
|
1177
|
-
* 保存ADK Artifact
|
|
1178
|
-
* 保存新的ADK Artifact版本
|
|
1179
|
-
*/
|
|
1180
|
-
export const adkArtifactSaveMutation = (options) => {
|
|
1181
|
-
const mutationOptions = {
|
|
1182
|
-
mutationFn: async (fnOptions) => {
|
|
1183
|
-
const { data } = await adkArtifactSave({
|
|
1184
|
-
...options,
|
|
1185
|
-
...fnOptions,
|
|
1186
|
-
throwOnError: true,
|
|
1187
|
-
});
|
|
1188
|
-
return data;
|
|
1189
|
-
},
|
|
1190
|
-
};
|
|
1191
|
-
return mutationOptions;
|
|
1192
|
-
};
|
|
1193
|
-
/**
|
|
1194
|
-
* 加载ADK Artifact
|
|
1195
|
-
* 根据参数加载ADK Artifact
|
|
1196
|
-
*/
|
|
1197
|
-
export const adkArtifactLoadMutation = (options) => {
|
|
1198
|
-
const mutationOptions = {
|
|
1199
|
-
mutationFn: async (fnOptions) => {
|
|
1200
|
-
const { data } = await adkArtifactLoad({
|
|
1201
|
-
...options,
|
|
1202
|
-
...fnOptions,
|
|
1203
|
-
throwOnError: true,
|
|
1204
|
-
});
|
|
1205
|
-
return data;
|
|
1206
|
-
},
|
|
1207
|
-
};
|
|
1208
|
-
return mutationOptions;
|
|
1209
|
-
};
|
|
1210
|
-
export const adkArtifactListQueryKey = (options) => createQueryKey("adkArtifactList", options);
|
|
1211
|
-
/**
|
|
1212
|
-
* 列出ADK Artifacts
|
|
1213
|
-
* 获取ADK artifacts列表(包含完整信息)
|
|
1214
|
-
*/
|
|
1215
|
-
export const adkArtifactListOptions = (options) => {
|
|
1216
|
-
return queryOptions({
|
|
1217
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1218
|
-
const { data } = await adkArtifactList({
|
|
1219
|
-
...options,
|
|
1220
|
-
...queryKey[0],
|
|
1221
|
-
signal,
|
|
1222
|
-
throwOnError: true,
|
|
1223
|
-
});
|
|
1224
|
-
return data;
|
|
1225
|
-
},
|
|
1226
|
-
queryKey: adkArtifactListQueryKey(options),
|
|
1227
|
-
});
|
|
1228
|
-
};
|
|
1229
|
-
export const adkArtifactListInfiniteQueryKey = (options) => createQueryKey("adkArtifactList", options, true);
|
|
1230
|
-
/**
|
|
1231
|
-
* 列出ADK Artifacts
|
|
1232
|
-
* 获取ADK artifacts列表(包含完整信息)
|
|
1233
|
-
*/
|
|
1234
|
-
export const adkArtifactListInfiniteOptions = (options) => {
|
|
1235
|
-
return infiniteQueryOptions(
|
|
1236
|
-
// @ts-ignore
|
|
1237
|
-
{
|
|
1238
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1239
|
-
// @ts-ignore
|
|
1240
|
-
const page = typeof pageParam === "object"
|
|
1241
|
-
? pageParam
|
|
1242
|
-
: {
|
|
1243
|
-
query: {
|
|
1244
|
-
offset: pageParam,
|
|
1245
|
-
},
|
|
1246
|
-
};
|
|
1247
|
-
const params = createInfiniteParams(queryKey, page);
|
|
1248
|
-
const { data } = await adkArtifactList({
|
|
1249
|
-
...options,
|
|
1250
|
-
...params,
|
|
1251
|
-
signal,
|
|
1252
|
-
throwOnError: true,
|
|
1253
|
-
});
|
|
1254
|
-
return data;
|
|
1255
|
-
},
|
|
1256
|
-
queryKey: adkArtifactListInfiniteQueryKey(options),
|
|
1257
|
-
});
|
|
1258
|
-
};
|
|
1259
|
-
export const adkArtifactListKeysQueryKey = (options) => createQueryKey("adkArtifactListKeys", options);
|
|
1260
|
-
/**
|
|
1261
|
-
* 列出ADK Artifact文件名
|
|
1262
|
-
* 获取指定会话的所有artifact文件名列表
|
|
1263
|
-
*/
|
|
1264
|
-
export const adkArtifactListKeysOptions = (options) => {
|
|
1265
|
-
return queryOptions({
|
|
1266
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1267
|
-
const { data } = await adkArtifactListKeys({
|
|
1268
|
-
...options,
|
|
1269
|
-
...queryKey[0],
|
|
1270
|
-
signal,
|
|
1271
|
-
throwOnError: true,
|
|
1272
|
-
});
|
|
1273
|
-
return data;
|
|
1274
|
-
},
|
|
1275
|
-
queryKey: adkArtifactListKeysQueryKey(options),
|
|
1276
|
-
});
|
|
1277
|
-
};
|
|
1278
|
-
/**
|
|
1279
|
-
* 删除ADK Artifact
|
|
1280
|
-
* 删除指定的ADK Artifact
|
|
1281
|
-
*/
|
|
1282
|
-
export const adkArtifactDeleteMutation = (options) => {
|
|
1283
|
-
const mutationOptions = {
|
|
1284
|
-
mutationFn: async (fnOptions) => {
|
|
1285
|
-
const { data } = await adkArtifactDelete({
|
|
1286
|
-
...options,
|
|
1287
|
-
...fnOptions,
|
|
1288
|
-
throwOnError: true,
|
|
1289
|
-
});
|
|
1290
|
-
return data;
|
|
1291
|
-
},
|
|
1292
|
-
};
|
|
1293
|
-
return mutationOptions;
|
|
1294
|
-
};
|
|
1295
|
-
export const adkArtifactListVersionsQueryKey = (options) => createQueryKey("adkArtifactListVersions", options);
|
|
1296
|
-
/**
|
|
1297
|
-
* 列出ADK Artifact版本
|
|
1298
|
-
* 获取指定artifact的所有版本列表
|
|
1299
|
-
*/
|
|
1300
|
-
export const adkArtifactListVersionsOptions = (options) => {
|
|
1301
|
-
return queryOptions({
|
|
1302
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1303
|
-
const { data } = await adkArtifactListVersions({
|
|
1304
|
-
...options,
|
|
1305
|
-
...queryKey[0],
|
|
1306
|
-
signal,
|
|
1307
|
-
throwOnError: true,
|
|
1308
|
-
});
|
|
1309
|
-
return data;
|
|
1310
|
-
},
|
|
1311
|
-
queryKey: adkArtifactListVersionsQueryKey(options),
|
|
1312
|
-
});
|
|
1313
|
-
};
|
|
1314
|
-
/**
|
|
1315
|
-
* 添加会话到内存
|
|
1316
|
-
* 将会话及其事件添加到内存服务中
|
|
1317
|
-
*/
|
|
1318
|
-
export const adkMemoryAddSessionMutation = (options) => {
|
|
1319
|
-
const mutationOptions = {
|
|
1320
|
-
mutationFn: async (fnOptions) => {
|
|
1321
|
-
const { data } = await adkMemoryAddSession({
|
|
1322
|
-
...options,
|
|
1323
|
-
...fnOptions,
|
|
1324
|
-
throwOnError: true,
|
|
1325
|
-
});
|
|
1326
|
-
return data;
|
|
1327
|
-
},
|
|
1328
|
-
};
|
|
1329
|
-
return mutationOptions;
|
|
1330
|
-
};
|
|
1331
|
-
export const adkMemoryListQueryKey = (options) => createQueryKey("adkMemoryList", options);
|
|
1332
|
-
/**
|
|
1333
|
-
* 列出ADK记忆
|
|
1334
|
-
* 获取ADK记忆列表
|
|
1335
|
-
*/
|
|
1336
|
-
export const adkMemoryListOptions = (options) => {
|
|
1337
|
-
return queryOptions({
|
|
1338
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1339
|
-
const { data } = await adkMemoryList({
|
|
1340
|
-
...options,
|
|
1341
|
-
...queryKey[0],
|
|
1342
|
-
signal,
|
|
1343
|
-
throwOnError: true,
|
|
1344
|
-
});
|
|
1345
|
-
return data;
|
|
1346
|
-
},
|
|
1347
|
-
queryKey: adkMemoryListQueryKey(options),
|
|
1348
|
-
});
|
|
1349
|
-
};
|
|
1350
|
-
export const adkMemoryListInfiniteQueryKey = (options) => createQueryKey("adkMemoryList", options, true);
|
|
1351
|
-
/**
|
|
1352
|
-
* 列出ADK记忆
|
|
1353
|
-
* 获取ADK记忆列表
|
|
1354
|
-
*/
|
|
1355
|
-
export const adkMemoryListInfiniteOptions = (options) => {
|
|
1356
|
-
return infiniteQueryOptions(
|
|
1357
|
-
// @ts-ignore
|
|
1358
|
-
{
|
|
1359
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1360
|
-
// @ts-ignore
|
|
1361
|
-
const page = typeof pageParam === "object"
|
|
1362
|
-
? pageParam
|
|
1363
|
-
: {
|
|
1364
|
-
query: {
|
|
1365
|
-
offset: pageParam,
|
|
1366
|
-
},
|
|
1367
|
-
};
|
|
1368
|
-
const params = createInfiniteParams(queryKey, page);
|
|
1369
|
-
const { data } = await adkMemoryList({
|
|
1370
|
-
...options,
|
|
1371
|
-
...params,
|
|
1372
|
-
signal,
|
|
1373
|
-
throwOnError: true,
|
|
1374
|
-
});
|
|
1375
|
-
return data;
|
|
1376
|
-
},
|
|
1377
|
-
queryKey: adkMemoryListInfiniteQueryKey(options),
|
|
1378
|
-
});
|
|
1379
|
-
};
|
|
1380
|
-
/**
|
|
1381
|
-
* 搜索内存
|
|
1382
|
-
* 根据查询条件搜索内存中的相关内容
|
|
1383
|
-
*/
|
|
1384
|
-
export const adkMemorySearchMutation = (options) => {
|
|
1385
|
-
const mutationOptions = {
|
|
1386
|
-
mutationFn: async (fnOptions) => {
|
|
1387
|
-
const { data } = await adkMemorySearch({
|
|
1388
|
-
...options,
|
|
1389
|
-
...fnOptions,
|
|
1390
|
-
throwOnError: true,
|
|
1391
|
-
});
|
|
1392
|
-
return data;
|
|
1393
|
-
},
|
|
1394
|
-
};
|
|
1395
|
-
return mutationOptions;
|
|
1396
|
-
};
|
|
1397
|
-
/**
|
|
1398
|
-
* 保存ADK任务
|
|
1399
|
-
* 保存或更新ADK任务实例
|
|
1400
|
-
*/
|
|
1401
|
-
export const adkTaskSaveMutation = (options) => {
|
|
1402
|
-
const mutationOptions = {
|
|
1403
|
-
mutationFn: async (fnOptions) => {
|
|
1404
|
-
const { data } = await adkTaskSave({
|
|
1405
|
-
...options,
|
|
1406
|
-
...fnOptions,
|
|
1407
|
-
throwOnError: true,
|
|
1408
|
-
});
|
|
1409
|
-
return data;
|
|
1410
|
-
},
|
|
1411
|
-
};
|
|
1412
|
-
return mutationOptions;
|
|
1413
|
-
};
|
|
1414
|
-
/**
|
|
1415
|
-
* 获取ADK任务
|
|
1416
|
-
* 根据任务ID获取ADK任务详情
|
|
1417
|
-
*/
|
|
1418
|
-
export const adkTaskGetMutation = (options) => {
|
|
1419
|
-
const mutationOptions = {
|
|
1420
|
-
mutationFn: async (fnOptions) => {
|
|
1421
|
-
const { data } = await adkTaskGet({
|
|
1422
|
-
...options,
|
|
1423
|
-
...fnOptions,
|
|
1424
|
-
throwOnError: true,
|
|
1425
|
-
});
|
|
1426
|
-
return data;
|
|
1427
|
-
},
|
|
1428
|
-
};
|
|
1429
|
-
return mutationOptions;
|
|
1430
|
-
};
|
|
1431
|
-
export const adkTaskListQueryKey = (options) => createQueryKey("adkTaskList", options);
|
|
1432
|
-
/**
|
|
1433
|
-
* 列出ADK任务
|
|
1434
|
-
* 获取ADK任务列表
|
|
1435
|
-
*/
|
|
1436
|
-
export const adkTaskListOptions = (options) => {
|
|
1437
|
-
return queryOptions({
|
|
1438
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1439
|
-
const { data } = await adkTaskList({
|
|
1440
|
-
...options,
|
|
1441
|
-
...queryKey[0],
|
|
1442
|
-
signal,
|
|
1443
|
-
throwOnError: true,
|
|
1444
|
-
});
|
|
1445
|
-
return data;
|
|
1446
|
-
},
|
|
1447
|
-
queryKey: adkTaskListQueryKey(options),
|
|
1448
|
-
});
|
|
1449
|
-
};
|
|
1450
|
-
export const adkTaskListInfiniteQueryKey = (options) => createQueryKey("adkTaskList", options, true);
|
|
1451
|
-
/**
|
|
1452
|
-
* 列出ADK任务
|
|
1453
|
-
* 获取ADK任务列表
|
|
1454
|
-
*/
|
|
1455
|
-
export const adkTaskListInfiniteOptions = (options) => {
|
|
1456
|
-
return infiniteQueryOptions(
|
|
1457
|
-
// @ts-ignore
|
|
1458
|
-
{
|
|
1459
|
-
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
1460
|
-
// @ts-ignore
|
|
1461
|
-
const page = typeof pageParam === "object"
|
|
1462
|
-
? pageParam
|
|
1463
|
-
: {
|
|
1464
|
-
query: {
|
|
1465
|
-
offset: pageParam,
|
|
1466
|
-
},
|
|
1467
|
-
};
|
|
1468
|
-
const params = createInfiniteParams(queryKey, page);
|
|
1469
|
-
const { data } = await adkTaskList({
|
|
1470
|
-
...options,
|
|
1471
|
-
...params,
|
|
1472
|
-
signal,
|
|
1473
|
-
throwOnError: true,
|
|
1474
|
-
});
|
|
1475
|
-
return data;
|
|
1476
|
-
},
|
|
1477
|
-
queryKey: adkTaskListInfiniteQueryKey(options),
|
|
1478
|
-
});
|
|
1479
|
-
};
|
|
1480
|
-
/**
|
|
1481
|
-
* 删除ADK任务
|
|
1482
|
-
* 删除指定的ADK任务
|
|
1483
|
-
*/
|
|
1484
|
-
export const adkTaskDeleteMutation = (options) => {
|
|
1485
|
-
const mutationOptions = {
|
|
1486
|
-
mutationFn: async (fnOptions) => {
|
|
1487
|
-
const { data } = await adkTaskDelete({
|
|
1488
|
-
...options,
|
|
1489
|
-
...fnOptions,
|
|
1490
|
-
throwOnError: true,
|
|
1491
|
-
});
|
|
1492
|
-
return data;
|
|
1493
|
-
},
|
|
1494
|
-
};
|
|
1495
|
-
return mutationOptions;
|
|
258
|
+
return data;
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
return mutationOptions;
|
|
262
|
+
};
|
|
263
|
+
export const browserListQueryKey = (options) => createQueryKey('browserList', options);
|
|
264
|
+
export const browserListOptions = (options) => queryOptions({
|
|
265
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
266
|
+
const { data } = await browserList({
|
|
267
|
+
...options,
|
|
268
|
+
...queryKey[0],
|
|
269
|
+
signal,
|
|
270
|
+
throwOnError: true
|
|
271
|
+
});
|
|
272
|
+
return data;
|
|
273
|
+
},
|
|
274
|
+
queryKey: browserListQueryKey(options)
|
|
275
|
+
});
|
|
276
|
+
const createInfiniteParams = (queryKey, page) => {
|
|
277
|
+
const params = { ...queryKey[0] };
|
|
278
|
+
if (page.body) {
|
|
279
|
+
params.body = {
|
|
280
|
+
...queryKey[0].body,
|
|
281
|
+
...page.body
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
if (page.headers) {
|
|
285
|
+
params.headers = {
|
|
286
|
+
...queryKey[0].headers,
|
|
287
|
+
...page.headers
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
if (page.path) {
|
|
291
|
+
params.path = {
|
|
292
|
+
...queryKey[0].path,
|
|
293
|
+
...page.path
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
if (page.query) {
|
|
297
|
+
params.query = {
|
|
298
|
+
...queryKey[0].query,
|
|
299
|
+
...page.query
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
return params;
|
|
1496
303
|
};
|
|
304
|
+
export const browserListInfiniteQueryKey = (options) => createQueryKey('browserList', options, true);
|
|
305
|
+
export const browserListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
306
|
+
// @ts-ignore
|
|
307
|
+
{
|
|
308
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
309
|
+
// @ts-ignore
|
|
310
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
311
|
+
query: {
|
|
312
|
+
page: pageParam
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
const params = createInfiniteParams(queryKey, page);
|
|
316
|
+
const { data } = await browserList({
|
|
317
|
+
...options,
|
|
318
|
+
...params,
|
|
319
|
+
signal,
|
|
320
|
+
throwOnError: true
|
|
321
|
+
});
|
|
322
|
+
return data;
|
|
323
|
+
},
|
|
324
|
+
queryKey: browserListInfiniteQueryKey(options)
|
|
325
|
+
});
|
|
1497
326
|
//# sourceMappingURL=react-query.gen.js.map
|