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,314 +1,95 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { infiniteQueryOptions, queryOptions
|
|
3
|
-
import { client } from
|
|
4
|
-
import {
|
|
5
|
-
const createQueryKey = (id, options, infinite, tags) => {
|
|
6
|
-
const params = {
|
|
7
|
-
_id: id,
|
|
8
|
-
baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl,
|
|
9
|
-
};
|
|
10
|
-
if (infinite) {
|
|
11
|
-
params._infinite = infinite;
|
|
12
|
-
}
|
|
13
|
-
if (tags) {
|
|
14
|
-
params.tags = tags;
|
|
15
|
-
}
|
|
16
|
-
if (options?.body) {
|
|
17
|
-
params.body = options.body;
|
|
18
|
-
}
|
|
19
|
-
if (options?.headers) {
|
|
20
|
-
params.headers = options.headers;
|
|
21
|
-
}
|
|
22
|
-
if (options?.path) {
|
|
23
|
-
params.path = options.path;
|
|
24
|
-
}
|
|
25
|
-
if (options?.query) {
|
|
26
|
-
params.query = options.query;
|
|
27
|
-
}
|
|
28
|
-
return [params];
|
|
29
|
-
};
|
|
30
|
-
export const agentListQueryKey = (options) => createQueryKey("agentList", options);
|
|
31
|
-
/**
|
|
32
|
-
* List agents
|
|
33
|
-
*
|
|
34
|
-
* #### Controller:
|
|
35
|
-
*
|
|
36
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).listAgents`
|
|
37
|
-
*
|
|
38
|
-
* #### Middlewares:
|
|
39
|
-
*
|
|
40
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
41
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
42
|
-
*
|
|
43
|
-
* ---
|
|
44
|
-
*
|
|
45
|
-
* Get a paginated list of agents for the current tenant
|
|
46
|
-
*/
|
|
47
|
-
export const agentListOptions = (options) => {
|
|
48
|
-
return queryOptions({
|
|
49
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
50
|
-
const { data } = await agentList({
|
|
51
|
-
...options,
|
|
52
|
-
...queryKey[0],
|
|
53
|
-
signal,
|
|
54
|
-
throwOnError: true,
|
|
55
|
-
});
|
|
56
|
-
return data;
|
|
57
|
-
},
|
|
58
|
-
queryKey: agentListQueryKey(options),
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Create agent
|
|
63
|
-
*
|
|
64
|
-
* #### Controller:
|
|
65
|
-
*
|
|
66
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).createAgent`
|
|
67
|
-
*
|
|
68
|
-
* #### Middlewares:
|
|
69
|
-
*
|
|
70
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
71
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
72
|
-
*
|
|
73
|
-
* ---
|
|
74
|
-
*
|
|
75
|
-
* Create a new agent
|
|
76
|
-
*/
|
|
77
|
-
export const agentCreateMutation = (options) => {
|
|
78
|
-
const mutationOptions = {
|
|
79
|
-
mutationFn: async (fnOptions) => {
|
|
80
|
-
const { data } = await agentCreate({
|
|
81
|
-
...options,
|
|
82
|
-
...fnOptions,
|
|
83
|
-
throwOnError: true,
|
|
84
|
-
});
|
|
85
|
-
return data;
|
|
86
|
-
},
|
|
87
|
-
};
|
|
88
|
-
return mutationOptions;
|
|
89
|
-
};
|
|
90
|
-
export const getApiV2AgentsDemoChatQueryKey = (options) => createQueryKey("getApiV2AgentsDemoChat", options);
|
|
91
|
-
/**
|
|
92
|
-
* demo chat
|
|
93
|
-
*
|
|
94
|
-
* #### Controller:
|
|
95
|
-
*
|
|
96
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).demoChat`
|
|
97
|
-
*
|
|
98
|
-
* #### Middlewares:
|
|
99
|
-
*
|
|
100
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
101
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
102
|
-
*
|
|
103
|
-
* ---
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*/
|
|
107
|
-
export const getApiV2AgentsDemoChatOptions = (options) => {
|
|
108
|
-
return queryOptions({
|
|
109
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
110
|
-
const { data } = await getApiV2AgentsDemoChat({
|
|
111
|
-
...options,
|
|
112
|
-
...queryKey[0],
|
|
113
|
-
signal,
|
|
114
|
-
throwOnError: true,
|
|
115
|
-
});
|
|
116
|
-
return data;
|
|
117
|
-
},
|
|
118
|
-
queryKey: getApiV2AgentsDemoChatQueryKey(options),
|
|
119
|
-
});
|
|
120
|
-
};
|
|
121
|
-
/**
|
|
122
|
-
* agent 事件提交
|
|
123
|
-
*
|
|
124
|
-
* #### Controller:
|
|
125
|
-
*
|
|
126
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).event`
|
|
127
|
-
*
|
|
128
|
-
* #### Middlewares:
|
|
129
|
-
*
|
|
130
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
131
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
132
|
-
*
|
|
133
|
-
* ---
|
|
134
|
-
*
|
|
135
|
-
* agen 事件提交
|
|
136
|
-
*/
|
|
137
|
-
export const agentEventMutation = (options) => {
|
|
138
|
-
const mutationOptions = {
|
|
139
|
-
mutationFn: async (fnOptions) => {
|
|
140
|
-
const { data } = await agentEvent({
|
|
141
|
-
...options,
|
|
142
|
-
...fnOptions,
|
|
143
|
-
throwOnError: true,
|
|
144
|
-
});
|
|
145
|
-
return data;
|
|
146
|
-
},
|
|
147
|
-
};
|
|
148
|
-
return mutationOptions;
|
|
149
|
-
};
|
|
150
|
-
export const agentScheduleQueryKey = (options) => createQueryKey("agentSchedule", options);
|
|
151
|
-
/**
|
|
152
|
-
* agent 事件提交
|
|
153
|
-
*
|
|
154
|
-
* #### Controller:
|
|
155
|
-
*
|
|
156
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).listAgentSchedule`
|
|
157
|
-
*
|
|
158
|
-
* #### Middlewares:
|
|
159
|
-
*
|
|
160
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
161
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
162
|
-
*
|
|
163
|
-
* ---
|
|
164
|
-
*
|
|
165
|
-
* agen 事件提交
|
|
166
|
-
*/
|
|
167
|
-
export const agentScheduleOptions = (options) => {
|
|
168
|
-
return queryOptions({
|
|
169
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
170
|
-
const { data } = await agentSchedule({
|
|
171
|
-
...options,
|
|
172
|
-
...queryKey[0],
|
|
173
|
-
signal,
|
|
174
|
-
throwOnError: true,
|
|
175
|
-
});
|
|
176
|
-
return data;
|
|
177
|
-
},
|
|
178
|
-
queryKey: agentScheduleQueryKey(options),
|
|
179
|
-
});
|
|
180
|
-
};
|
|
2
|
+
import { infiniteQueryOptions, queryOptions } from '@tanstack/react-query';
|
|
3
|
+
import { client } from '../client.gen';
|
|
4
|
+
import { codeRun, langchatChatbotsDelete, langchatChatbotsGet, langchatChatbotsList, langchatChatbotsLogin, langchatChatbotsMessagesGet, langchatChatbotsMessagesList, langchatChatbotsRun, langchatChatbotsSessionsList, langchatChatbotsUpdate, langchatChatbotsUpsert, langchatPlatformTypes, napcatGetStatus, napcatProxyOneBot11Get, napcatProxyOneBot11Post, napcatProxyWebUiget, napcatProxyWebUipost, napcatStart, pAccountCreate, pAccountCreateBrowserConfig, pAccountCreateSession, pAccountDelete, pAccountDeleteSession, pAccountExport, pAccountGet, pAccountGetSession, pAccountImport, pAccountLaunchBrowser, pAccountList, pAccountListBrowserConfigs, pAccountListSessions, pAccountUpdate, pAccountUpdateSession, platformCreate, platformDelete, platformExport, platformGet, platformImport, platformList, platformUpdate, taskRun, userGetCurrent } from '../sdk.gen';
|
|
181
5
|
/**
|
|
182
|
-
*
|
|
6
|
+
* run code
|
|
183
7
|
*
|
|
184
8
|
* #### Controller:
|
|
185
9
|
*
|
|
186
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
10
|
+
* `github.com/codeh007/gomtm/pkg/handlers/code.(*CodeService).RunCode`
|
|
187
11
|
*
|
|
188
12
|
* #### Middlewares:
|
|
189
13
|
*
|
|
190
14
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
191
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
192
15
|
*
|
|
193
16
|
* ---
|
|
194
17
|
*
|
|
195
|
-
*
|
|
18
|
+
* run code
|
|
196
19
|
*/
|
|
197
|
-
export const
|
|
20
|
+
export const codeRunMutation = (options) => {
|
|
198
21
|
const mutationOptions = {
|
|
199
22
|
mutationFn: async (fnOptions) => {
|
|
200
|
-
const { data } = await
|
|
23
|
+
const { data } = await codeRun({
|
|
201
24
|
...options,
|
|
202
25
|
...fnOptions,
|
|
203
|
-
throwOnError: true
|
|
26
|
+
throwOnError: true
|
|
204
27
|
});
|
|
205
28
|
return data;
|
|
206
|
-
}
|
|
29
|
+
}
|
|
207
30
|
};
|
|
208
31
|
return mutationOptions;
|
|
209
32
|
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
...options,
|
|
232
|
-
...queryKey[0],
|
|
233
|
-
signal,
|
|
234
|
-
throwOnError: true,
|
|
235
|
-
});
|
|
236
|
-
return data;
|
|
237
|
-
},
|
|
238
|
-
queryKey: agentGetQueryKey(options),
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
/**
|
|
242
|
-
* Update agent
|
|
243
|
-
*
|
|
244
|
-
* #### Controller:
|
|
245
|
-
*
|
|
246
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/agent.(*AgentService).updateAgent`
|
|
247
|
-
*
|
|
248
|
-
* #### Middlewares:
|
|
249
|
-
*
|
|
250
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
251
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
252
|
-
*
|
|
253
|
-
* ---
|
|
254
|
-
*
|
|
255
|
-
* Update an existing agent
|
|
256
|
-
*/
|
|
257
|
-
export const agentUpdateMutation = (options) => {
|
|
258
|
-
const mutationOptions = {
|
|
259
|
-
mutationFn: async (fnOptions) => {
|
|
260
|
-
const { data } = await agentUpdate({
|
|
261
|
-
...options,
|
|
262
|
-
...fnOptions,
|
|
263
|
-
throwOnError: true,
|
|
264
|
-
});
|
|
265
|
-
return data;
|
|
266
|
-
},
|
|
267
|
-
};
|
|
268
|
-
return mutationOptions;
|
|
33
|
+
const createQueryKey = (id, options, infinite, tags) => {
|
|
34
|
+
const params = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl };
|
|
35
|
+
if (infinite) {
|
|
36
|
+
params._infinite = infinite;
|
|
37
|
+
}
|
|
38
|
+
if (tags) {
|
|
39
|
+
params.tags = tags;
|
|
40
|
+
}
|
|
41
|
+
if (options?.body) {
|
|
42
|
+
params.body = options.body;
|
|
43
|
+
}
|
|
44
|
+
if (options?.headers) {
|
|
45
|
+
params.headers = options.headers;
|
|
46
|
+
}
|
|
47
|
+
if (options?.path) {
|
|
48
|
+
params.path = options.path;
|
|
49
|
+
}
|
|
50
|
+
if (options?.query) {
|
|
51
|
+
params.query = options.query;
|
|
52
|
+
}
|
|
53
|
+
return [params];
|
|
269
54
|
};
|
|
270
|
-
export const langchatChatbotsListQueryKey = (options) => createQueryKey(
|
|
55
|
+
export const langchatChatbotsListQueryKey = (options) => createQueryKey('langchatChatbotsList', options);
|
|
271
56
|
/**
|
|
272
57
|
* List chatbots
|
|
273
58
|
*
|
|
274
59
|
* #### Controller:
|
|
275
60
|
*
|
|
276
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
61
|
+
* `github.com/codeh007/gomtm/pkg/handlers/langchat.(*LangchatService).listChatbots`
|
|
277
62
|
*
|
|
278
63
|
* #### Middlewares:
|
|
279
64
|
*
|
|
280
65
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
281
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
282
66
|
*
|
|
283
67
|
* ---
|
|
284
68
|
*
|
|
285
69
|
* Get a paginated list of chatbots for the current tenant
|
|
286
70
|
*/
|
|
287
|
-
export const langchatChatbotsListOptions = (options) => {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
});
|
|
300
|
-
};
|
|
71
|
+
export const langchatChatbotsListOptions = (options) => queryOptions({
|
|
72
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
73
|
+
const { data } = await langchatChatbotsList({
|
|
74
|
+
...options,
|
|
75
|
+
...queryKey[0],
|
|
76
|
+
signal,
|
|
77
|
+
throwOnError: true
|
|
78
|
+
});
|
|
79
|
+
return data;
|
|
80
|
+
},
|
|
81
|
+
queryKey: langchatChatbotsListQueryKey(options)
|
|
82
|
+
});
|
|
301
83
|
/**
|
|
302
84
|
* Create or update chatbot
|
|
303
85
|
*
|
|
304
86
|
* #### Controller:
|
|
305
87
|
*
|
|
306
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
88
|
+
* `github.com/codeh007/gomtm/pkg/handlers/langchat.(*LangchatService).upsertChatbot`
|
|
307
89
|
*
|
|
308
90
|
* #### Middlewares:
|
|
309
91
|
*
|
|
310
92
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
311
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
312
93
|
*
|
|
313
94
|
* ---
|
|
314
95
|
*
|
|
@@ -320,10 +101,10 @@ export const langchatChatbotsUpsertMutation = (options) => {
|
|
|
320
101
|
const { data } = await langchatChatbotsUpsert({
|
|
321
102
|
...options,
|
|
322
103
|
...fnOptions,
|
|
323
|
-
throwOnError: true
|
|
104
|
+
throwOnError: true
|
|
324
105
|
});
|
|
325
106
|
return data;
|
|
326
|
-
}
|
|
107
|
+
}
|
|
327
108
|
};
|
|
328
109
|
return mutationOptions;
|
|
329
110
|
};
|
|
@@ -332,12 +113,11 @@ export const langchatChatbotsUpsertMutation = (options) => {
|
|
|
332
113
|
*
|
|
333
114
|
* #### Controller:
|
|
334
115
|
*
|
|
335
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
116
|
+
* `github.com/codeh007/gomtm/pkg/handlers/langchat.(*LangchatService).loginChatbot`
|
|
336
117
|
*
|
|
337
118
|
* #### Middlewares:
|
|
338
119
|
*
|
|
339
120
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
340
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
341
121
|
*
|
|
342
122
|
* ---
|
|
343
123
|
*
|
|
@@ -349,10 +129,10 @@ export const langchatChatbotsLoginMutation = (options) => {
|
|
|
349
129
|
const { data } = await langchatChatbotsLogin({
|
|
350
130
|
...options,
|
|
351
131
|
...fnOptions,
|
|
352
|
-
throwOnError: true
|
|
132
|
+
throwOnError: true
|
|
353
133
|
});
|
|
354
134
|
return data;
|
|
355
|
-
}
|
|
135
|
+
}
|
|
356
136
|
};
|
|
357
137
|
return mutationOptions;
|
|
358
138
|
};
|
|
@@ -361,12 +141,11 @@ export const langchatChatbotsLoginMutation = (options) => {
|
|
|
361
141
|
*
|
|
362
142
|
* #### Controller:
|
|
363
143
|
*
|
|
364
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
144
|
+
* `github.com/codeh007/gomtm/pkg/handlers/langchat.(*LangchatService).runChatbot`
|
|
365
145
|
*
|
|
366
146
|
* #### Middlewares:
|
|
367
147
|
*
|
|
368
148
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
369
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
370
149
|
*
|
|
371
150
|
* ---
|
|
372
151
|
*
|
|
@@ -378,10 +157,10 @@ export const langchatChatbotsRunMutation = (options) => {
|
|
|
378
157
|
const { data } = await langchatChatbotsRun({
|
|
379
158
|
...options,
|
|
380
159
|
...fnOptions,
|
|
381
|
-
throwOnError: true
|
|
160
|
+
throwOnError: true
|
|
382
161
|
});
|
|
383
162
|
return data;
|
|
384
|
-
}
|
|
163
|
+
}
|
|
385
164
|
};
|
|
386
165
|
return mutationOptions;
|
|
387
166
|
};
|
|
@@ -390,12 +169,11 @@ export const langchatChatbotsRunMutation = (options) => {
|
|
|
390
169
|
*
|
|
391
170
|
* #### Controller:
|
|
392
171
|
*
|
|
393
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
172
|
+
* `github.com/codeh007/gomtm/pkg/handlers/langchat.(*LangchatService).deleteChatbot`
|
|
394
173
|
*
|
|
395
174
|
* #### Middlewares:
|
|
396
175
|
*
|
|
397
176
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
398
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
399
177
|
*
|
|
400
178
|
* ---
|
|
401
179
|
*
|
|
@@ -407,55 +185,51 @@ export const langchatChatbotsDeleteMutation = (options) => {
|
|
|
407
185
|
const { data } = await langchatChatbotsDelete({
|
|
408
186
|
...options,
|
|
409
187
|
...fnOptions,
|
|
410
|
-
throwOnError: true
|
|
188
|
+
throwOnError: true
|
|
411
189
|
});
|
|
412
190
|
return data;
|
|
413
|
-
}
|
|
191
|
+
}
|
|
414
192
|
};
|
|
415
193
|
return mutationOptions;
|
|
416
194
|
};
|
|
417
|
-
export const langchatChatbotsGetQueryKey = (options) => createQueryKey(
|
|
195
|
+
export const langchatChatbotsGetQueryKey = (options) => createQueryKey('langchatChatbotsGet', options);
|
|
418
196
|
/**
|
|
419
197
|
* Get chatbot
|
|
420
198
|
*
|
|
421
199
|
* #### Controller:
|
|
422
200
|
*
|
|
423
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
201
|
+
* `github.com/codeh007/gomtm/pkg/handlers/langchat.(*LangchatService).getChatbot`
|
|
424
202
|
*
|
|
425
203
|
* #### Middlewares:
|
|
426
204
|
*
|
|
427
205
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
428
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
429
206
|
*
|
|
430
207
|
* ---
|
|
431
208
|
*
|
|
432
209
|
* Get a specific chatbot by ID
|
|
433
210
|
*/
|
|
434
|
-
export const langchatChatbotsGetOptions = (options) => {
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
});
|
|
447
|
-
};
|
|
211
|
+
export const langchatChatbotsGetOptions = (options) => queryOptions({
|
|
212
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
213
|
+
const { data } = await langchatChatbotsGet({
|
|
214
|
+
...options,
|
|
215
|
+
...queryKey[0],
|
|
216
|
+
signal,
|
|
217
|
+
throwOnError: true
|
|
218
|
+
});
|
|
219
|
+
return data;
|
|
220
|
+
},
|
|
221
|
+
queryKey: langchatChatbotsGetQueryKey(options)
|
|
222
|
+
});
|
|
448
223
|
/**
|
|
449
224
|
* Update chatbot
|
|
450
225
|
*
|
|
451
226
|
* #### Controller:
|
|
452
227
|
*
|
|
453
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
228
|
+
* `github.com/codeh007/gomtm/pkg/handlers/langchat.(*LangchatService).upsertChatbotByPath`
|
|
454
229
|
*
|
|
455
230
|
* #### Middlewares:
|
|
456
231
|
*
|
|
457
232
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
458
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
459
233
|
*
|
|
460
234
|
* ---
|
|
461
235
|
*
|
|
@@ -467,55 +241,51 @@ export const langchatChatbotsUpdateMutation = (options) => {
|
|
|
467
241
|
const { data } = await langchatChatbotsUpdate({
|
|
468
242
|
...options,
|
|
469
243
|
...fnOptions,
|
|
470
|
-
throwOnError: true
|
|
244
|
+
throwOnError: true
|
|
471
245
|
});
|
|
472
246
|
return data;
|
|
473
|
-
}
|
|
247
|
+
}
|
|
474
248
|
};
|
|
475
249
|
return mutationOptions;
|
|
476
250
|
};
|
|
477
|
-
export const langchatPlatformTypesQueryKey = (options) => createQueryKey(
|
|
251
|
+
export const langchatPlatformTypesQueryKey = (options) => createQueryKey('langchatPlatformTypes', options);
|
|
478
252
|
/**
|
|
479
253
|
* List platform types
|
|
480
254
|
*
|
|
481
255
|
* #### Controller:
|
|
482
256
|
*
|
|
483
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
257
|
+
* `github.com/codeh007/gomtm/pkg/handlers/langchat.(*LangchatService).listPlatformTypes`
|
|
484
258
|
*
|
|
485
259
|
* #### Middlewares:
|
|
486
260
|
*
|
|
487
261
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
488
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
489
262
|
*
|
|
490
263
|
* ---
|
|
491
264
|
*
|
|
492
265
|
* Get available platform types
|
|
493
266
|
*/
|
|
494
|
-
export const langchatPlatformTypesOptions = (options) => {
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
});
|
|
507
|
-
};
|
|
267
|
+
export const langchatPlatformTypesOptions = (options) => queryOptions({
|
|
268
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
269
|
+
const { data } = await langchatPlatformTypes({
|
|
270
|
+
...options,
|
|
271
|
+
...queryKey[0],
|
|
272
|
+
signal,
|
|
273
|
+
throwOnError: true
|
|
274
|
+
});
|
|
275
|
+
return data;
|
|
276
|
+
},
|
|
277
|
+
queryKey: langchatPlatformTypesQueryKey(options)
|
|
278
|
+
});
|
|
508
279
|
/**
|
|
509
280
|
* Start napcat service
|
|
510
281
|
*
|
|
511
282
|
* #### Controller:
|
|
512
283
|
*
|
|
513
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
284
|
+
* `github.com/codeh007/gomtm/pkg/handlers/napcat.(*NapcatService).StartNapcat`
|
|
514
285
|
*
|
|
515
286
|
* #### Middlewares:
|
|
516
287
|
*
|
|
517
288
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
518
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
519
289
|
*
|
|
520
290
|
* ---
|
|
521
291
|
*
|
|
@@ -527,86 +297,79 @@ export const napcatStartMutation = (options) => {
|
|
|
527
297
|
const { data } = await napcatStart({
|
|
528
298
|
...options,
|
|
529
299
|
...fnOptions,
|
|
530
|
-
throwOnError: true
|
|
300
|
+
throwOnError: true
|
|
531
301
|
});
|
|
532
302
|
return data;
|
|
533
|
-
}
|
|
303
|
+
}
|
|
534
304
|
};
|
|
535
305
|
return mutationOptions;
|
|
536
306
|
};
|
|
537
|
-
export const napcatGetStatusQueryKey = (options) => createQueryKey(
|
|
307
|
+
export const napcatGetStatusQueryKey = (options) => createQueryKey('napcatGetStatus', options);
|
|
538
308
|
/**
|
|
539
309
|
* Get napcat status
|
|
540
310
|
*
|
|
541
311
|
* #### Controller:
|
|
542
312
|
*
|
|
543
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
313
|
+
* `github.com/codeh007/gomtm/pkg/handlers/napcat.(*NapcatService).GetStatus`
|
|
544
314
|
*
|
|
545
315
|
* #### Middlewares:
|
|
546
316
|
*
|
|
547
317
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
548
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
549
318
|
*
|
|
550
319
|
* ---
|
|
551
320
|
*
|
|
552
321
|
* Get current napcat running status
|
|
553
322
|
*/
|
|
554
|
-
export const napcatGetStatusOptions = (options) => {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
};
|
|
568
|
-
export const napcatProxyOneBot11GetQueryKey = (options) => createQueryKey("napcatProxyOneBot11Get", options);
|
|
323
|
+
export const napcatGetStatusOptions = (options) => queryOptions({
|
|
324
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
325
|
+
const { data } = await napcatGetStatus({
|
|
326
|
+
...options,
|
|
327
|
+
...queryKey[0],
|
|
328
|
+
signal,
|
|
329
|
+
throwOnError: true
|
|
330
|
+
});
|
|
331
|
+
return data;
|
|
332
|
+
},
|
|
333
|
+
queryKey: napcatGetStatusQueryKey(options)
|
|
334
|
+
});
|
|
335
|
+
export const napcatProxyOneBot11GetQueryKey = (options) => createQueryKey('napcatProxyOneBot11Get', options);
|
|
569
336
|
/**
|
|
570
337
|
* Proxy OneBot11 API GET requests
|
|
571
338
|
*
|
|
572
339
|
* #### Controller:
|
|
573
340
|
*
|
|
574
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
341
|
+
* `github.com/codeh007/gomtm/pkg/handlers/napcat.(*NapcatService).ProxyToNapcat`
|
|
575
342
|
*
|
|
576
343
|
* #### Middlewares:
|
|
577
344
|
*
|
|
578
345
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
579
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
580
346
|
*
|
|
581
347
|
* ---
|
|
582
348
|
*
|
|
583
349
|
* Proxy all OneBot11 API GET requests to napcat HTTP server
|
|
584
350
|
*/
|
|
585
|
-
export const napcatProxyOneBot11GetOptions = (options) => {
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
});
|
|
598
|
-
};
|
|
351
|
+
export const napcatProxyOneBot11GetOptions = (options) => queryOptions({
|
|
352
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
353
|
+
const { data } = await napcatProxyOneBot11Get({
|
|
354
|
+
...options,
|
|
355
|
+
...queryKey[0],
|
|
356
|
+
signal,
|
|
357
|
+
throwOnError: true
|
|
358
|
+
});
|
|
359
|
+
return data;
|
|
360
|
+
},
|
|
361
|
+
queryKey: napcatProxyOneBot11GetQueryKey(options)
|
|
362
|
+
});
|
|
599
363
|
/**
|
|
600
364
|
* Proxy OneBot11 API POST requests
|
|
601
365
|
*
|
|
602
366
|
* #### Controller:
|
|
603
367
|
*
|
|
604
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
368
|
+
* `github.com/codeh007/gomtm/pkg/handlers/napcat.(*NapcatService).ProxyToNapcat`
|
|
605
369
|
*
|
|
606
370
|
* #### Middlewares:
|
|
607
371
|
*
|
|
608
372
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
609
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
610
373
|
*
|
|
611
374
|
* ---
|
|
612
375
|
*
|
|
@@ -618,262 +381,237 @@ export const napcatProxyOneBot11PostMutation = (options) => {
|
|
|
618
381
|
const { data } = await napcatProxyOneBot11Post({
|
|
619
382
|
...options,
|
|
620
383
|
...fnOptions,
|
|
621
|
-
throwOnError: true
|
|
384
|
+
throwOnError: true
|
|
622
385
|
});
|
|
623
386
|
return data;
|
|
624
|
-
}
|
|
387
|
+
}
|
|
625
388
|
};
|
|
626
389
|
return mutationOptions;
|
|
627
390
|
};
|
|
628
|
-
export const langchatChatbotsMessagesListQueryKey = (options) => createQueryKey(
|
|
391
|
+
export const langchatChatbotsMessagesListQueryKey = (options) => createQueryKey('langchatChatbotsMessagesList', options);
|
|
629
392
|
/**
|
|
630
393
|
* List OneBot11 messages
|
|
631
394
|
*
|
|
632
395
|
* #### Controller:
|
|
633
396
|
*
|
|
634
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
397
|
+
* `github.com/codeh007/gomtm/pkg/handlers/onebot11.(*OneBot11Service).ListMessages`
|
|
635
398
|
*
|
|
636
399
|
* #### Middlewares:
|
|
637
400
|
*
|
|
638
401
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
639
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
640
402
|
*
|
|
641
403
|
* ---
|
|
642
404
|
*
|
|
643
405
|
* Get a list of OneBot11 messages with optional filtering
|
|
644
406
|
*/
|
|
645
|
-
export const langchatChatbotsMessagesListOptions = (options) => {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
});
|
|
658
|
-
};
|
|
407
|
+
export const langchatChatbotsMessagesListOptions = (options) => queryOptions({
|
|
408
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
409
|
+
const { data } = await langchatChatbotsMessagesList({
|
|
410
|
+
...options,
|
|
411
|
+
...queryKey[0],
|
|
412
|
+
signal,
|
|
413
|
+
throwOnError: true
|
|
414
|
+
});
|
|
415
|
+
return data;
|
|
416
|
+
},
|
|
417
|
+
queryKey: langchatChatbotsMessagesListQueryKey(options)
|
|
418
|
+
});
|
|
659
419
|
const createInfiniteParams = (queryKey, page) => {
|
|
660
|
-
const params = {
|
|
661
|
-
...queryKey[0],
|
|
662
|
-
};
|
|
420
|
+
const params = { ...queryKey[0] };
|
|
663
421
|
if (page.body) {
|
|
664
422
|
params.body = {
|
|
665
423
|
...queryKey[0].body,
|
|
666
|
-
...page.body
|
|
424
|
+
...page.body
|
|
667
425
|
};
|
|
668
426
|
}
|
|
669
427
|
if (page.headers) {
|
|
670
428
|
params.headers = {
|
|
671
429
|
...queryKey[0].headers,
|
|
672
|
-
...page.headers
|
|
430
|
+
...page.headers
|
|
673
431
|
};
|
|
674
432
|
}
|
|
675
433
|
if (page.path) {
|
|
676
434
|
params.path = {
|
|
677
435
|
...queryKey[0].path,
|
|
678
|
-
...page.path
|
|
436
|
+
...page.path
|
|
679
437
|
};
|
|
680
438
|
}
|
|
681
439
|
if (page.query) {
|
|
682
440
|
params.query = {
|
|
683
441
|
...queryKey[0].query,
|
|
684
|
-
...page.query
|
|
442
|
+
...page.query
|
|
685
443
|
};
|
|
686
444
|
}
|
|
687
445
|
return params;
|
|
688
446
|
};
|
|
689
|
-
export const langchatChatbotsMessagesListInfiniteQueryKey = (options) => createQueryKey(
|
|
447
|
+
export const langchatChatbotsMessagesListInfiniteQueryKey = (options) => createQueryKey('langchatChatbotsMessagesList', options, true);
|
|
690
448
|
/**
|
|
691
449
|
* List OneBot11 messages
|
|
692
450
|
*
|
|
693
451
|
* #### Controller:
|
|
694
452
|
*
|
|
695
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
453
|
+
* `github.com/codeh007/gomtm/pkg/handlers/onebot11.(*OneBot11Service).ListMessages`
|
|
696
454
|
*
|
|
697
455
|
* #### Middlewares:
|
|
698
456
|
*
|
|
699
457
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
700
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
701
458
|
*
|
|
702
459
|
* ---
|
|
703
460
|
*
|
|
704
461
|
* Get a list of OneBot11 messages with optional filtering
|
|
705
462
|
*/
|
|
706
|
-
export const langchatChatbotsMessagesListInfiniteOptions = (options) =>
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
{
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
queryKey: langchatChatbotsMessagesListInfiniteQueryKey(options),
|
|
729
|
-
});
|
|
730
|
-
};
|
|
731
|
-
export const langchatChatbotsMessagesGetQueryKey = (options) => createQueryKey("langchatChatbotsMessagesGet", options);
|
|
463
|
+
export const langchatChatbotsMessagesListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
464
|
+
// @ts-ignore
|
|
465
|
+
{
|
|
466
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
467
|
+
// @ts-ignore
|
|
468
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
469
|
+
query: {
|
|
470
|
+
page: pageParam
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
const params = createInfiniteParams(queryKey, page);
|
|
474
|
+
const { data } = await langchatChatbotsMessagesList({
|
|
475
|
+
...options,
|
|
476
|
+
...params,
|
|
477
|
+
signal,
|
|
478
|
+
throwOnError: true
|
|
479
|
+
});
|
|
480
|
+
return data;
|
|
481
|
+
},
|
|
482
|
+
queryKey: langchatChatbotsMessagesListInfiniteQueryKey(options)
|
|
483
|
+
});
|
|
484
|
+
export const langchatChatbotsMessagesGetQueryKey = (options) => createQueryKey('langchatChatbotsMessagesGet', options);
|
|
732
485
|
/**
|
|
733
486
|
* Get OneBot11 message
|
|
734
487
|
*
|
|
735
488
|
* #### Controller:
|
|
736
489
|
*
|
|
737
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
490
|
+
* `github.com/codeh007/gomtm/pkg/handlers/onebot11.(*OneBot11Service).GetMessage`
|
|
738
491
|
*
|
|
739
492
|
* #### Middlewares:
|
|
740
493
|
*
|
|
741
494
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
742
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
743
495
|
*
|
|
744
496
|
* ---
|
|
745
497
|
*
|
|
746
498
|
* Get a specific OneBot11 message by ID
|
|
747
499
|
*/
|
|
748
|
-
export const langchatChatbotsMessagesGetOptions = (options) => {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
};
|
|
762
|
-
export const langchatChatbotsSessionsListQueryKey = (options) => createQueryKey("langchatChatbotsSessionsList", options);
|
|
500
|
+
export const langchatChatbotsMessagesGetOptions = (options) => queryOptions({
|
|
501
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
502
|
+
const { data } = await langchatChatbotsMessagesGet({
|
|
503
|
+
...options,
|
|
504
|
+
...queryKey[0],
|
|
505
|
+
signal,
|
|
506
|
+
throwOnError: true
|
|
507
|
+
});
|
|
508
|
+
return data;
|
|
509
|
+
},
|
|
510
|
+
queryKey: langchatChatbotsMessagesGetQueryKey(options)
|
|
511
|
+
});
|
|
512
|
+
export const langchatChatbotsSessionsListQueryKey = (options) => createQueryKey('langchatChatbotsSessionsList', options);
|
|
763
513
|
/**
|
|
764
514
|
* List OneBot11 sessions
|
|
765
515
|
*
|
|
766
516
|
* #### Controller:
|
|
767
517
|
*
|
|
768
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
518
|
+
* `github.com/codeh007/gomtm/pkg/handlers/onebot11.(*OneBot11Service).ListSessions`
|
|
769
519
|
*
|
|
770
520
|
* #### Middlewares:
|
|
771
521
|
*
|
|
772
522
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
773
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
774
523
|
*
|
|
775
524
|
* ---
|
|
776
525
|
*
|
|
777
526
|
* Get a list of OneBot11 sessions with optional filtering
|
|
778
527
|
*/
|
|
779
|
-
export const langchatChatbotsSessionsListOptions = (options) => {
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
};
|
|
793
|
-
export const langchatChatbotsSessionsListInfiniteQueryKey = (options) => createQueryKey("langchatChatbotsSessionsList", options, true);
|
|
528
|
+
export const langchatChatbotsSessionsListOptions = (options) => queryOptions({
|
|
529
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
530
|
+
const { data } = await langchatChatbotsSessionsList({
|
|
531
|
+
...options,
|
|
532
|
+
...queryKey[0],
|
|
533
|
+
signal,
|
|
534
|
+
throwOnError: true
|
|
535
|
+
});
|
|
536
|
+
return data;
|
|
537
|
+
},
|
|
538
|
+
queryKey: langchatChatbotsSessionsListQueryKey(options)
|
|
539
|
+
});
|
|
540
|
+
export const langchatChatbotsSessionsListInfiniteQueryKey = (options) => createQueryKey('langchatChatbotsSessionsList', options, true);
|
|
794
541
|
/**
|
|
795
542
|
* List OneBot11 sessions
|
|
796
543
|
*
|
|
797
544
|
* #### Controller:
|
|
798
545
|
*
|
|
799
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
546
|
+
* `github.com/codeh007/gomtm/pkg/handlers/onebot11.(*OneBot11Service).ListSessions`
|
|
800
547
|
*
|
|
801
548
|
* #### Middlewares:
|
|
802
549
|
*
|
|
803
550
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
804
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
805
551
|
*
|
|
806
552
|
* ---
|
|
807
553
|
*
|
|
808
554
|
* Get a list of OneBot11 sessions with optional filtering
|
|
809
555
|
*/
|
|
810
|
-
export const langchatChatbotsSessionsListInfiniteOptions = (options) =>
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
{
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
queryKey: langchatChatbotsSessionsListInfiniteQueryKey(options),
|
|
833
|
-
});
|
|
834
|
-
};
|
|
835
|
-
export const pAccountListQueryKey = (options) => createQueryKey("pAccountList", options);
|
|
556
|
+
export const langchatChatbotsSessionsListInfiniteOptions = (options) => infiniteQueryOptions(
|
|
557
|
+
// @ts-ignore
|
|
558
|
+
{
|
|
559
|
+
queryFn: async ({ pageParam, queryKey, signal }) => {
|
|
560
|
+
// @ts-ignore
|
|
561
|
+
const page = typeof pageParam === 'object' ? pageParam : {
|
|
562
|
+
query: {
|
|
563
|
+
page: pageParam
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
const params = createInfiniteParams(queryKey, page);
|
|
567
|
+
const { data } = await langchatChatbotsSessionsList({
|
|
568
|
+
...options,
|
|
569
|
+
...params,
|
|
570
|
+
signal,
|
|
571
|
+
throwOnError: true
|
|
572
|
+
});
|
|
573
|
+
return data;
|
|
574
|
+
},
|
|
575
|
+
queryKey: langchatChatbotsSessionsListInfiniteQueryKey(options)
|
|
576
|
+
});
|
|
577
|
+
export const pAccountListQueryKey = (options) => createQueryKey('pAccountList', options);
|
|
836
578
|
/**
|
|
837
579
|
* List platform accounts
|
|
838
580
|
*
|
|
839
581
|
* #### Controller:
|
|
840
582
|
*
|
|
841
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
583
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).listPAccounts`
|
|
842
584
|
*
|
|
843
585
|
* #### Middlewares:
|
|
844
586
|
*
|
|
845
587
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
846
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
847
588
|
*
|
|
848
589
|
* ---
|
|
849
590
|
*
|
|
850
591
|
* Get list of platform accounts with pagination
|
|
851
592
|
*/
|
|
852
|
-
export const pAccountListOptions = (options) => {
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
});
|
|
865
|
-
};
|
|
593
|
+
export const pAccountListOptions = (options) => queryOptions({
|
|
594
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
595
|
+
const { data } = await pAccountList({
|
|
596
|
+
...options,
|
|
597
|
+
...queryKey[0],
|
|
598
|
+
signal,
|
|
599
|
+
throwOnError: true
|
|
600
|
+
});
|
|
601
|
+
return data;
|
|
602
|
+
},
|
|
603
|
+
queryKey: pAccountListQueryKey(options)
|
|
604
|
+
});
|
|
866
605
|
/**
|
|
867
606
|
* Create platform account
|
|
868
607
|
*
|
|
869
608
|
* #### Controller:
|
|
870
609
|
*
|
|
871
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
610
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).createPAccount`
|
|
872
611
|
*
|
|
873
612
|
* #### Middlewares:
|
|
874
613
|
*
|
|
875
614
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
876
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
877
615
|
*
|
|
878
616
|
* ---
|
|
879
617
|
*
|
|
@@ -885,55 +623,51 @@ export const pAccountCreateMutation = (options) => {
|
|
|
885
623
|
const { data } = await pAccountCreate({
|
|
886
624
|
...options,
|
|
887
625
|
...fnOptions,
|
|
888
|
-
throwOnError: true
|
|
626
|
+
throwOnError: true
|
|
889
627
|
});
|
|
890
628
|
return data;
|
|
891
|
-
}
|
|
629
|
+
}
|
|
892
630
|
};
|
|
893
631
|
return mutationOptions;
|
|
894
632
|
};
|
|
895
|
-
export const pAccountExportQueryKey = (options) => createQueryKey(
|
|
633
|
+
export const pAccountExportQueryKey = (options) => createQueryKey('pAccountExport', options);
|
|
896
634
|
/**
|
|
897
635
|
* Export platform accounts
|
|
898
636
|
*
|
|
899
637
|
* #### Controller:
|
|
900
638
|
*
|
|
901
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
639
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).exportPAccounts`
|
|
902
640
|
*
|
|
903
641
|
* #### Middlewares:
|
|
904
642
|
*
|
|
905
643
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
906
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
907
644
|
*
|
|
908
645
|
* ---
|
|
909
646
|
*
|
|
910
647
|
* Export all platform accounts data
|
|
911
648
|
*/
|
|
912
|
-
export const pAccountExportOptions = (options) => {
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
});
|
|
925
|
-
};
|
|
649
|
+
export const pAccountExportOptions = (options) => queryOptions({
|
|
650
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
651
|
+
const { data } = await pAccountExport({
|
|
652
|
+
...options,
|
|
653
|
+
...queryKey[0],
|
|
654
|
+
signal,
|
|
655
|
+
throwOnError: true
|
|
656
|
+
});
|
|
657
|
+
return data;
|
|
658
|
+
},
|
|
659
|
+
queryKey: pAccountExportQueryKey(options)
|
|
660
|
+
});
|
|
926
661
|
/**
|
|
927
662
|
* Import platform accounts
|
|
928
663
|
*
|
|
929
664
|
* #### Controller:
|
|
930
665
|
*
|
|
931
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
666
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).importPAccounts`
|
|
932
667
|
*
|
|
933
668
|
* #### Middlewares:
|
|
934
669
|
*
|
|
935
670
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
936
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
937
671
|
*
|
|
938
672
|
* ---
|
|
939
673
|
*
|
|
@@ -945,10 +679,10 @@ export const pAccountImportMutation = (options) => {
|
|
|
945
679
|
const { data } = await pAccountImport({
|
|
946
680
|
...options,
|
|
947
681
|
...fnOptions,
|
|
948
|
-
throwOnError: true
|
|
682
|
+
throwOnError: true
|
|
949
683
|
});
|
|
950
684
|
return data;
|
|
951
|
-
}
|
|
685
|
+
}
|
|
952
686
|
};
|
|
953
687
|
return mutationOptions;
|
|
954
688
|
};
|
|
@@ -957,12 +691,11 @@ export const pAccountImportMutation = (options) => {
|
|
|
957
691
|
*
|
|
958
692
|
* #### Controller:
|
|
959
693
|
*
|
|
960
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
694
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).deletePAccount`
|
|
961
695
|
*
|
|
962
696
|
* #### Middlewares:
|
|
963
697
|
*
|
|
964
698
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
965
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
966
699
|
*
|
|
967
700
|
* ---
|
|
968
701
|
*
|
|
@@ -974,55 +707,51 @@ export const pAccountDeleteMutation = (options) => {
|
|
|
974
707
|
const { data } = await pAccountDelete({
|
|
975
708
|
...options,
|
|
976
709
|
...fnOptions,
|
|
977
|
-
throwOnError: true
|
|
710
|
+
throwOnError: true
|
|
978
711
|
});
|
|
979
712
|
return data;
|
|
980
|
-
}
|
|
713
|
+
}
|
|
981
714
|
};
|
|
982
715
|
return mutationOptions;
|
|
983
716
|
};
|
|
984
|
-
export const pAccountGetQueryKey = (options) => createQueryKey(
|
|
717
|
+
export const pAccountGetQueryKey = (options) => createQueryKey('pAccountGet', options);
|
|
985
718
|
/**
|
|
986
719
|
* Get platform account
|
|
987
720
|
*
|
|
988
721
|
* #### Controller:
|
|
989
722
|
*
|
|
990
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
723
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).getPAccount`
|
|
991
724
|
*
|
|
992
725
|
* #### Middlewares:
|
|
993
726
|
*
|
|
994
727
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
995
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
996
728
|
*
|
|
997
729
|
* ---
|
|
998
730
|
*
|
|
999
731
|
* Get platform account by ID
|
|
1000
732
|
*/
|
|
1001
|
-
export const pAccountGetOptions = (options) => {
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
});
|
|
1014
|
-
};
|
|
733
|
+
export const pAccountGetOptions = (options) => queryOptions({
|
|
734
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
735
|
+
const { data } = await pAccountGet({
|
|
736
|
+
...options,
|
|
737
|
+
...queryKey[0],
|
|
738
|
+
signal,
|
|
739
|
+
throwOnError: true
|
|
740
|
+
});
|
|
741
|
+
return data;
|
|
742
|
+
},
|
|
743
|
+
queryKey: pAccountGetQueryKey(options)
|
|
744
|
+
});
|
|
1015
745
|
/**
|
|
1016
746
|
* Update platform account
|
|
1017
747
|
*
|
|
1018
748
|
* #### Controller:
|
|
1019
749
|
*
|
|
1020
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
750
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).updatePAccount`
|
|
1021
751
|
*
|
|
1022
752
|
* #### Middlewares:
|
|
1023
753
|
*
|
|
1024
754
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1025
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1026
755
|
*
|
|
1027
756
|
* ---
|
|
1028
757
|
*
|
|
@@ -1034,55 +763,51 @@ export const pAccountUpdateMutation = (options) => {
|
|
|
1034
763
|
const { data } = await pAccountUpdate({
|
|
1035
764
|
...options,
|
|
1036
765
|
...fnOptions,
|
|
1037
|
-
throwOnError: true
|
|
766
|
+
throwOnError: true
|
|
1038
767
|
});
|
|
1039
768
|
return data;
|
|
1040
|
-
}
|
|
769
|
+
}
|
|
1041
770
|
};
|
|
1042
771
|
return mutationOptions;
|
|
1043
772
|
};
|
|
1044
|
-
export const pAccountListBrowserConfigsQueryKey = (options) => createQueryKey(
|
|
773
|
+
export const pAccountListBrowserConfigsQueryKey = (options) => createQueryKey('pAccountListBrowserConfigs', options);
|
|
1045
774
|
/**
|
|
1046
775
|
* List browser configs
|
|
1047
776
|
*
|
|
1048
777
|
* #### Controller:
|
|
1049
778
|
*
|
|
1050
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
779
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).listBrowserConfigs`
|
|
1051
780
|
*
|
|
1052
781
|
* #### Middlewares:
|
|
1053
782
|
*
|
|
1054
783
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1055
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1056
784
|
*
|
|
1057
785
|
* ---
|
|
1058
786
|
*
|
|
1059
787
|
* List browser configurations for platform account
|
|
1060
788
|
*/
|
|
1061
|
-
export const pAccountListBrowserConfigsOptions = (options) => {
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
});
|
|
1074
|
-
};
|
|
789
|
+
export const pAccountListBrowserConfigsOptions = (options) => queryOptions({
|
|
790
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
791
|
+
const { data } = await pAccountListBrowserConfigs({
|
|
792
|
+
...options,
|
|
793
|
+
...queryKey[0],
|
|
794
|
+
signal,
|
|
795
|
+
throwOnError: true
|
|
796
|
+
});
|
|
797
|
+
return data;
|
|
798
|
+
},
|
|
799
|
+
queryKey: pAccountListBrowserConfigsQueryKey(options)
|
|
800
|
+
});
|
|
1075
801
|
/**
|
|
1076
802
|
* Create browser config
|
|
1077
803
|
*
|
|
1078
804
|
* #### Controller:
|
|
1079
805
|
*
|
|
1080
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
806
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).createBrowserConfig`
|
|
1081
807
|
*
|
|
1082
808
|
* #### Middlewares:
|
|
1083
809
|
*
|
|
1084
810
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1085
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1086
811
|
*
|
|
1087
812
|
* ---
|
|
1088
813
|
*
|
|
@@ -1094,10 +819,10 @@ export const pAccountCreateBrowserConfigMutation = (options) => {
|
|
|
1094
819
|
const { data } = await pAccountCreateBrowserConfig({
|
|
1095
820
|
...options,
|
|
1096
821
|
...fnOptions,
|
|
1097
|
-
throwOnError: true
|
|
822
|
+
throwOnError: true
|
|
1098
823
|
});
|
|
1099
824
|
return data;
|
|
1100
|
-
}
|
|
825
|
+
}
|
|
1101
826
|
};
|
|
1102
827
|
return mutationOptions;
|
|
1103
828
|
};
|
|
@@ -1106,12 +831,11 @@ export const pAccountCreateBrowserConfigMutation = (options) => {
|
|
|
1106
831
|
*
|
|
1107
832
|
* #### Controller:
|
|
1108
833
|
*
|
|
1109
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
834
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).launchBrowser`
|
|
1110
835
|
*
|
|
1111
836
|
* #### Middlewares:
|
|
1112
837
|
*
|
|
1113
838
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1114
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1115
839
|
*
|
|
1116
840
|
* ---
|
|
1117
841
|
*
|
|
@@ -1123,55 +847,51 @@ export const pAccountLaunchBrowserMutation = (options) => {
|
|
|
1123
847
|
const { data } = await pAccountLaunchBrowser({
|
|
1124
848
|
...options,
|
|
1125
849
|
...fnOptions,
|
|
1126
|
-
throwOnError: true
|
|
850
|
+
throwOnError: true
|
|
1127
851
|
});
|
|
1128
852
|
return data;
|
|
1129
|
-
}
|
|
853
|
+
}
|
|
1130
854
|
};
|
|
1131
855
|
return mutationOptions;
|
|
1132
856
|
};
|
|
1133
|
-
export const pAccountListSessionsQueryKey = (options) => createQueryKey(
|
|
857
|
+
export const pAccountListSessionsQueryKey = (options) => createQueryKey('pAccountListSessions', options);
|
|
1134
858
|
/**
|
|
1135
859
|
* List sessions
|
|
1136
860
|
*
|
|
1137
861
|
* #### Controller:
|
|
1138
862
|
*
|
|
1139
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
863
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).listSessions`
|
|
1140
864
|
*
|
|
1141
865
|
* #### Middlewares:
|
|
1142
866
|
*
|
|
1143
867
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1144
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1145
868
|
*
|
|
1146
869
|
* ---
|
|
1147
870
|
*
|
|
1148
871
|
* List sessions for platform account
|
|
1149
872
|
*/
|
|
1150
|
-
export const pAccountListSessionsOptions = (options) => {
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
});
|
|
1163
|
-
};
|
|
873
|
+
export const pAccountListSessionsOptions = (options) => queryOptions({
|
|
874
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
875
|
+
const { data } = await pAccountListSessions({
|
|
876
|
+
...options,
|
|
877
|
+
...queryKey[0],
|
|
878
|
+
signal,
|
|
879
|
+
throwOnError: true
|
|
880
|
+
});
|
|
881
|
+
return data;
|
|
882
|
+
},
|
|
883
|
+
queryKey: pAccountListSessionsQueryKey(options)
|
|
884
|
+
});
|
|
1164
885
|
/**
|
|
1165
886
|
* Create session
|
|
1166
887
|
*
|
|
1167
888
|
* #### Controller:
|
|
1168
889
|
*
|
|
1169
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
890
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).createSession`
|
|
1170
891
|
*
|
|
1171
892
|
* #### Middlewares:
|
|
1172
893
|
*
|
|
1173
894
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1174
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1175
895
|
*
|
|
1176
896
|
* ---
|
|
1177
897
|
*
|
|
@@ -1183,10 +903,10 @@ export const pAccountCreateSessionMutation = (options) => {
|
|
|
1183
903
|
const { data } = await pAccountCreateSession({
|
|
1184
904
|
...options,
|
|
1185
905
|
...fnOptions,
|
|
1186
|
-
throwOnError: true
|
|
906
|
+
throwOnError: true
|
|
1187
907
|
});
|
|
1188
908
|
return data;
|
|
1189
|
-
}
|
|
909
|
+
}
|
|
1190
910
|
};
|
|
1191
911
|
return mutationOptions;
|
|
1192
912
|
};
|
|
@@ -1195,12 +915,11 @@ export const pAccountCreateSessionMutation = (options) => {
|
|
|
1195
915
|
*
|
|
1196
916
|
* #### Controller:
|
|
1197
917
|
*
|
|
1198
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
918
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).deleteSession`
|
|
1199
919
|
*
|
|
1200
920
|
* #### Middlewares:
|
|
1201
921
|
*
|
|
1202
922
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1203
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1204
923
|
*
|
|
1205
924
|
* ---
|
|
1206
925
|
*
|
|
@@ -1212,55 +931,51 @@ export const pAccountDeleteSessionMutation = (options) => {
|
|
|
1212
931
|
const { data } = await pAccountDeleteSession({
|
|
1213
932
|
...options,
|
|
1214
933
|
...fnOptions,
|
|
1215
|
-
throwOnError: true
|
|
934
|
+
throwOnError: true
|
|
1216
935
|
});
|
|
1217
936
|
return data;
|
|
1218
|
-
}
|
|
937
|
+
}
|
|
1219
938
|
};
|
|
1220
939
|
return mutationOptions;
|
|
1221
940
|
};
|
|
1222
|
-
export const pAccountGetSessionQueryKey = (options) => createQueryKey(
|
|
941
|
+
export const pAccountGetSessionQueryKey = (options) => createQueryKey('pAccountGetSession', options);
|
|
1223
942
|
/**
|
|
1224
943
|
* Get session
|
|
1225
944
|
*
|
|
1226
945
|
* #### Controller:
|
|
1227
946
|
*
|
|
1228
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
947
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).getSession`
|
|
1229
948
|
*
|
|
1230
949
|
* #### Middlewares:
|
|
1231
950
|
*
|
|
1232
951
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1233
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1234
952
|
*
|
|
1235
953
|
* ---
|
|
1236
954
|
*
|
|
1237
955
|
* Get session by ID
|
|
1238
956
|
*/
|
|
1239
|
-
export const pAccountGetSessionOptions = (options) => {
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
});
|
|
1252
|
-
};
|
|
957
|
+
export const pAccountGetSessionOptions = (options) => queryOptions({
|
|
958
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
959
|
+
const { data } = await pAccountGetSession({
|
|
960
|
+
...options,
|
|
961
|
+
...queryKey[0],
|
|
962
|
+
signal,
|
|
963
|
+
throwOnError: true
|
|
964
|
+
});
|
|
965
|
+
return data;
|
|
966
|
+
},
|
|
967
|
+
queryKey: pAccountGetSessionQueryKey(options)
|
|
968
|
+
});
|
|
1253
969
|
/**
|
|
1254
970
|
* Update session
|
|
1255
971
|
*
|
|
1256
972
|
* #### Controller:
|
|
1257
973
|
*
|
|
1258
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
974
|
+
* `github.com/codeh007/gomtm/pkg/handlers/paccount.(*PAccountService).updateSession`
|
|
1259
975
|
*
|
|
1260
976
|
* #### Middlewares:
|
|
1261
977
|
*
|
|
1262
978
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1263
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1264
979
|
*
|
|
1265
980
|
* ---
|
|
1266
981
|
*
|
|
@@ -1272,55 +987,51 @@ export const pAccountUpdateSessionMutation = (options) => {
|
|
|
1272
987
|
const { data } = await pAccountUpdateSession({
|
|
1273
988
|
...options,
|
|
1274
989
|
...fnOptions,
|
|
1275
|
-
throwOnError: true
|
|
990
|
+
throwOnError: true
|
|
1276
991
|
});
|
|
1277
992
|
return data;
|
|
1278
|
-
}
|
|
993
|
+
}
|
|
1279
994
|
};
|
|
1280
995
|
return mutationOptions;
|
|
1281
996
|
};
|
|
1282
|
-
export const platformListQueryKey = (options) => createQueryKey(
|
|
997
|
+
export const platformListQueryKey = (options) => createQueryKey('platformList', options);
|
|
1283
998
|
/**
|
|
1284
999
|
* List platforms
|
|
1285
1000
|
*
|
|
1286
1001
|
* #### Controller:
|
|
1287
1002
|
*
|
|
1288
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1003
|
+
* `github.com/codeh007/gomtm/pkg/handlers/platform.(*PlatformService).listPlatforms`
|
|
1289
1004
|
*
|
|
1290
1005
|
* #### Middlewares:
|
|
1291
1006
|
*
|
|
1292
1007
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1293
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1294
1008
|
*
|
|
1295
1009
|
* ---
|
|
1296
1010
|
*
|
|
1297
1011
|
* Get list of platforms with pagination
|
|
1298
1012
|
*/
|
|
1299
|
-
export const platformListOptions = (options) => {
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
});
|
|
1312
|
-
};
|
|
1013
|
+
export const platformListOptions = (options) => queryOptions({
|
|
1014
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1015
|
+
const { data } = await platformList({
|
|
1016
|
+
...options,
|
|
1017
|
+
...queryKey[0],
|
|
1018
|
+
signal,
|
|
1019
|
+
throwOnError: true
|
|
1020
|
+
});
|
|
1021
|
+
return data;
|
|
1022
|
+
},
|
|
1023
|
+
queryKey: platformListQueryKey(options)
|
|
1024
|
+
});
|
|
1313
1025
|
/**
|
|
1314
1026
|
* Create platform
|
|
1315
1027
|
*
|
|
1316
1028
|
* #### Controller:
|
|
1317
1029
|
*
|
|
1318
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1030
|
+
* `github.com/codeh007/gomtm/pkg/handlers/platform.(*PlatformService).createPlatform`
|
|
1319
1031
|
*
|
|
1320
1032
|
* #### Middlewares:
|
|
1321
1033
|
*
|
|
1322
1034
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1323
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1324
1035
|
*
|
|
1325
1036
|
* ---
|
|
1326
1037
|
*
|
|
@@ -1332,55 +1043,51 @@ export const platformCreateMutation = (options) => {
|
|
|
1332
1043
|
const { data } = await platformCreate({
|
|
1333
1044
|
...options,
|
|
1334
1045
|
...fnOptions,
|
|
1335
|
-
throwOnError: true
|
|
1046
|
+
throwOnError: true
|
|
1336
1047
|
});
|
|
1337
1048
|
return data;
|
|
1338
|
-
}
|
|
1049
|
+
}
|
|
1339
1050
|
};
|
|
1340
1051
|
return mutationOptions;
|
|
1341
1052
|
};
|
|
1342
|
-
export const platformExportQueryKey = (options) => createQueryKey(
|
|
1053
|
+
export const platformExportQueryKey = (options) => createQueryKey('platformExport', options);
|
|
1343
1054
|
/**
|
|
1344
1055
|
* Export platforms
|
|
1345
1056
|
*
|
|
1346
1057
|
* #### Controller:
|
|
1347
1058
|
*
|
|
1348
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1059
|
+
* `github.com/codeh007/gomtm/pkg/handlers/platform.(*PlatformService).exportPlatforms`
|
|
1349
1060
|
*
|
|
1350
1061
|
* #### Middlewares:
|
|
1351
1062
|
*
|
|
1352
1063
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1353
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1354
1064
|
*
|
|
1355
1065
|
* ---
|
|
1356
1066
|
*
|
|
1357
1067
|
* Export all platforms data
|
|
1358
1068
|
*/
|
|
1359
|
-
export const platformExportOptions = (options) => {
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
});
|
|
1372
|
-
};
|
|
1069
|
+
export const platformExportOptions = (options) => queryOptions({
|
|
1070
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1071
|
+
const { data } = await platformExport({
|
|
1072
|
+
...options,
|
|
1073
|
+
...queryKey[0],
|
|
1074
|
+
signal,
|
|
1075
|
+
throwOnError: true
|
|
1076
|
+
});
|
|
1077
|
+
return data;
|
|
1078
|
+
},
|
|
1079
|
+
queryKey: platformExportQueryKey(options)
|
|
1080
|
+
});
|
|
1373
1081
|
/**
|
|
1374
1082
|
* Import platforms
|
|
1375
1083
|
*
|
|
1376
1084
|
* #### Controller:
|
|
1377
1085
|
*
|
|
1378
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1086
|
+
* `github.com/codeh007/gomtm/pkg/handlers/platform.(*PlatformService).importPlatforms`
|
|
1379
1087
|
*
|
|
1380
1088
|
* #### Middlewares:
|
|
1381
1089
|
*
|
|
1382
1090
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1383
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1384
1091
|
*
|
|
1385
1092
|
* ---
|
|
1386
1093
|
*
|
|
@@ -1392,10 +1099,10 @@ export const platformImportMutation = (options) => {
|
|
|
1392
1099
|
const { data } = await platformImport({
|
|
1393
1100
|
...options,
|
|
1394
1101
|
...fnOptions,
|
|
1395
|
-
throwOnError: true
|
|
1102
|
+
throwOnError: true
|
|
1396
1103
|
});
|
|
1397
1104
|
return data;
|
|
1398
|
-
}
|
|
1105
|
+
}
|
|
1399
1106
|
};
|
|
1400
1107
|
return mutationOptions;
|
|
1401
1108
|
};
|
|
@@ -1404,12 +1111,11 @@ export const platformImportMutation = (options) => {
|
|
|
1404
1111
|
*
|
|
1405
1112
|
* #### Controller:
|
|
1406
1113
|
*
|
|
1407
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1114
|
+
* `github.com/codeh007/gomtm/pkg/handlers/platform.(*PlatformService).deletePlatform`
|
|
1408
1115
|
*
|
|
1409
1116
|
* #### Middlewares:
|
|
1410
1117
|
*
|
|
1411
1118
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1412
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1413
1119
|
*
|
|
1414
1120
|
* ---
|
|
1415
1121
|
*
|
|
@@ -1421,55 +1127,51 @@ export const platformDeleteMutation = (options) => {
|
|
|
1421
1127
|
const { data } = await platformDelete({
|
|
1422
1128
|
...options,
|
|
1423
1129
|
...fnOptions,
|
|
1424
|
-
throwOnError: true
|
|
1130
|
+
throwOnError: true
|
|
1425
1131
|
});
|
|
1426
1132
|
return data;
|
|
1427
|
-
}
|
|
1133
|
+
}
|
|
1428
1134
|
};
|
|
1429
1135
|
return mutationOptions;
|
|
1430
1136
|
};
|
|
1431
|
-
export const platformGetQueryKey = (options) => createQueryKey(
|
|
1137
|
+
export const platformGetQueryKey = (options) => createQueryKey('platformGet', options);
|
|
1432
1138
|
/**
|
|
1433
1139
|
* Get platform
|
|
1434
1140
|
*
|
|
1435
1141
|
* #### Controller:
|
|
1436
1142
|
*
|
|
1437
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1143
|
+
* `github.com/codeh007/gomtm/pkg/handlers/platform.(*PlatformService).getPlatform`
|
|
1438
1144
|
*
|
|
1439
1145
|
* #### Middlewares:
|
|
1440
1146
|
*
|
|
1441
1147
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1442
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1443
1148
|
*
|
|
1444
1149
|
* ---
|
|
1445
1150
|
*
|
|
1446
1151
|
* Get platform by ID
|
|
1447
1152
|
*/
|
|
1448
|
-
export const platformGetOptions = (options) => {
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
});
|
|
1461
|
-
};
|
|
1153
|
+
export const platformGetOptions = (options) => queryOptions({
|
|
1154
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1155
|
+
const { data } = await platformGet({
|
|
1156
|
+
...options,
|
|
1157
|
+
...queryKey[0],
|
|
1158
|
+
signal,
|
|
1159
|
+
throwOnError: true
|
|
1160
|
+
});
|
|
1161
|
+
return data;
|
|
1162
|
+
},
|
|
1163
|
+
queryKey: platformGetQueryKey(options)
|
|
1164
|
+
});
|
|
1462
1165
|
/**
|
|
1463
1166
|
* Update platform
|
|
1464
1167
|
*
|
|
1465
1168
|
* #### Controller:
|
|
1466
1169
|
*
|
|
1467
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1170
|
+
* `github.com/codeh007/gomtm/pkg/handlers/platform.(*PlatformService).updatePlatform`
|
|
1468
1171
|
*
|
|
1469
1172
|
* #### Middlewares:
|
|
1470
1173
|
*
|
|
1471
1174
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1472
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1473
1175
|
*
|
|
1474
1176
|
* ---
|
|
1475
1177
|
*
|
|
@@ -1481,417 +1183,107 @@ export const platformUpdateMutation = (options) => {
|
|
|
1481
1183
|
const { data } = await platformUpdate({
|
|
1482
1184
|
...options,
|
|
1483
1185
|
...fnOptions,
|
|
1484
|
-
throwOnError: true
|
|
1485
|
-
});
|
|
1486
|
-
return data;
|
|
1487
|
-
},
|
|
1488
|
-
};
|
|
1489
|
-
return mutationOptions;
|
|
1490
|
-
};
|
|
1491
|
-
export const proxyListQueryKey = (options) => createQueryKey("proxyList", options);
|
|
1492
|
-
/**
|
|
1493
|
-
* List proxies
|
|
1494
|
-
*
|
|
1495
|
-
* #### Controller:
|
|
1496
|
-
*
|
|
1497
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).ListProxies`
|
|
1498
|
-
*
|
|
1499
|
-
* #### Middlewares:
|
|
1500
|
-
*
|
|
1501
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1502
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1503
|
-
*
|
|
1504
|
-
* ---
|
|
1505
|
-
*
|
|
1506
|
-
* Get a paginated list of proxies for the current tenant
|
|
1507
|
-
*/
|
|
1508
|
-
export const proxyListOptions = (options) => {
|
|
1509
|
-
return queryOptions({
|
|
1510
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1511
|
-
const { data } = await proxyList({
|
|
1512
|
-
...options,
|
|
1513
|
-
...queryKey[0],
|
|
1514
|
-
signal,
|
|
1515
|
-
throwOnError: true,
|
|
1516
|
-
});
|
|
1517
|
-
return data;
|
|
1518
|
-
},
|
|
1519
|
-
queryKey: proxyListQueryKey(options),
|
|
1520
|
-
});
|
|
1521
|
-
};
|
|
1522
|
-
/**
|
|
1523
|
-
* Upsert proxy
|
|
1524
|
-
*
|
|
1525
|
-
* #### Controller:
|
|
1526
|
-
*
|
|
1527
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).UpsertProxy`
|
|
1528
|
-
*
|
|
1529
|
-
* #### Middlewares:
|
|
1530
|
-
*
|
|
1531
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1532
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1533
|
-
*
|
|
1534
|
-
* ---
|
|
1535
|
-
*
|
|
1536
|
-
* Create or update a proxy
|
|
1537
|
-
*/
|
|
1538
|
-
export const proxyUpsertMutation = (options) => {
|
|
1539
|
-
const mutationOptions = {
|
|
1540
|
-
mutationFn: async (fnOptions) => {
|
|
1541
|
-
const { data } = await proxyUpsert({
|
|
1542
|
-
...options,
|
|
1543
|
-
...fnOptions,
|
|
1544
|
-
throwOnError: true,
|
|
1545
|
-
});
|
|
1546
|
-
return data;
|
|
1547
|
-
},
|
|
1548
|
-
};
|
|
1549
|
-
return mutationOptions;
|
|
1550
|
-
};
|
|
1551
|
-
/**
|
|
1552
|
-
* Delete proxy
|
|
1553
|
-
*
|
|
1554
|
-
* #### Controller:
|
|
1555
|
-
*
|
|
1556
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).DeleteProxy`
|
|
1557
|
-
*
|
|
1558
|
-
* #### Middlewares:
|
|
1559
|
-
*
|
|
1560
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1561
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1562
|
-
*
|
|
1563
|
-
* ---
|
|
1564
|
-
*
|
|
1565
|
-
* Delete a proxy
|
|
1566
|
-
*/
|
|
1567
|
-
export const proxyDeleteMutation = (options) => {
|
|
1568
|
-
const mutationOptions = {
|
|
1569
|
-
mutationFn: async (fnOptions) => {
|
|
1570
|
-
const { data } = await proxyDelete({
|
|
1571
|
-
...options,
|
|
1572
|
-
...fnOptions,
|
|
1573
|
-
throwOnError: true,
|
|
1574
|
-
});
|
|
1575
|
-
return data;
|
|
1576
|
-
},
|
|
1577
|
-
};
|
|
1578
|
-
return mutationOptions;
|
|
1579
|
-
};
|
|
1580
|
-
export const proxyGetQueryKey = (options) => createQueryKey("proxyGet", options);
|
|
1581
|
-
/**
|
|
1582
|
-
* Get proxy
|
|
1583
|
-
*
|
|
1584
|
-
* #### Controller:
|
|
1585
|
-
*
|
|
1586
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/proxy.(*ProxyService).GetProxy`
|
|
1587
|
-
*
|
|
1588
|
-
* #### Middlewares:
|
|
1589
|
-
*
|
|
1590
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1591
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1592
|
-
*
|
|
1593
|
-
* ---
|
|
1594
|
-
*
|
|
1595
|
-
* Get a specific proxy by ID
|
|
1596
|
-
*/
|
|
1597
|
-
export const proxyGetOptions = (options) => {
|
|
1598
|
-
return queryOptions({
|
|
1599
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1600
|
-
const { data } = await proxyGet({
|
|
1601
|
-
...options,
|
|
1602
|
-
...queryKey[0],
|
|
1603
|
-
signal,
|
|
1604
|
-
throwOnError: true,
|
|
1605
|
-
});
|
|
1606
|
-
return data;
|
|
1607
|
-
},
|
|
1608
|
-
queryKey: proxyGetQueryKey(options),
|
|
1609
|
-
});
|
|
1610
|
-
};
|
|
1611
|
-
export const termsHealthCheckQueryKey = (options) => createQueryKey("termsHealthCheck", options);
|
|
1612
|
-
/**
|
|
1613
|
-
* Health check
|
|
1614
|
-
*
|
|
1615
|
-
* #### Controller:
|
|
1616
|
-
*
|
|
1617
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).HealthCheckHandler`
|
|
1618
|
-
*
|
|
1619
|
-
* #### Middlewares:
|
|
1620
|
-
*
|
|
1621
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1622
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1623
|
-
*
|
|
1624
|
-
* ---
|
|
1625
|
-
*
|
|
1626
|
-
* Check the health status of the terminal service
|
|
1627
|
-
*/
|
|
1628
|
-
export const termsHealthCheckOptions = (options) => {
|
|
1629
|
-
return queryOptions({
|
|
1630
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1631
|
-
const { data } = await termsHealthCheck({
|
|
1632
|
-
...options,
|
|
1633
|
-
...queryKey[0],
|
|
1634
|
-
signal,
|
|
1635
|
-
throwOnError: true,
|
|
1636
|
-
});
|
|
1637
|
-
return data;
|
|
1638
|
-
},
|
|
1639
|
-
queryKey: termsHealthCheckQueryKey(options),
|
|
1640
|
-
});
|
|
1641
|
-
};
|
|
1642
|
-
export const termsListTerminalsQueryKey = (options) => createQueryKey("termsListTerminals", options);
|
|
1643
|
-
/**
|
|
1644
|
-
* List terminals
|
|
1645
|
-
*
|
|
1646
|
-
* #### Controller:
|
|
1647
|
-
*
|
|
1648
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).ListTerminalsHandler`
|
|
1649
|
-
*
|
|
1650
|
-
* #### Middlewares:
|
|
1651
|
-
*
|
|
1652
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1653
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1654
|
-
*
|
|
1655
|
-
* ---
|
|
1656
|
-
*
|
|
1657
|
-
* List all terminal sessions
|
|
1658
|
-
*/
|
|
1659
|
-
export const termsListTerminalsOptions = (options) => {
|
|
1660
|
-
return queryOptions({
|
|
1661
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1662
|
-
const { data } = await termsListTerminals({
|
|
1663
|
-
...options,
|
|
1664
|
-
...queryKey[0],
|
|
1665
|
-
signal,
|
|
1666
|
-
throwOnError: true,
|
|
1667
|
-
});
|
|
1668
|
-
return data;
|
|
1669
|
-
},
|
|
1670
|
-
queryKey: termsListTerminalsQueryKey(options),
|
|
1671
|
-
});
|
|
1672
|
-
};
|
|
1673
|
-
/**
|
|
1674
|
-
* Create terminal
|
|
1675
|
-
*
|
|
1676
|
-
* #### Controller:
|
|
1677
|
-
*
|
|
1678
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).CreateTerminalHandler`
|
|
1679
|
-
*
|
|
1680
|
-
* #### Middlewares:
|
|
1681
|
-
*
|
|
1682
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1683
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1684
|
-
*
|
|
1685
|
-
* ---
|
|
1686
|
-
*
|
|
1687
|
-
* Create a new terminal session
|
|
1688
|
-
*/
|
|
1689
|
-
export const termsCreateTerminalMutation = (options) => {
|
|
1690
|
-
const mutationOptions = {
|
|
1691
|
-
mutationFn: async (fnOptions) => {
|
|
1692
|
-
const { data } = await termsCreateTerminal({
|
|
1693
|
-
...options,
|
|
1694
|
-
...fnOptions,
|
|
1695
|
-
throwOnError: true,
|
|
1186
|
+
throwOnError: true
|
|
1696
1187
|
});
|
|
1697
1188
|
return data;
|
|
1698
|
-
}
|
|
1189
|
+
}
|
|
1699
1190
|
};
|
|
1700
1191
|
return mutationOptions;
|
|
1701
1192
|
};
|
|
1702
1193
|
/**
|
|
1703
|
-
*
|
|
1194
|
+
* 运行通用任务
|
|
1704
1195
|
*
|
|
1705
1196
|
* #### Controller:
|
|
1706
1197
|
*
|
|
1707
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1198
|
+
* `github.com/codeh007/gomtm/pkg/handlers/task.(*TaskService).handleTaskRun`
|
|
1708
1199
|
*
|
|
1709
1200
|
* #### Middlewares:
|
|
1710
1201
|
*
|
|
1711
1202
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1712
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1713
1203
|
*
|
|
1714
1204
|
* ---
|
|
1715
1205
|
*
|
|
1716
|
-
*
|
|
1206
|
+
* 接收来自数据库的任务推送,异步执行并回调结果
|
|
1717
1207
|
*/
|
|
1718
|
-
export const
|
|
1208
|
+
export const taskRunMutation = (options) => {
|
|
1719
1209
|
const mutationOptions = {
|
|
1720
1210
|
mutationFn: async (fnOptions) => {
|
|
1721
|
-
const { data } = await
|
|
1211
|
+
const { data } = await taskRun({
|
|
1722
1212
|
...options,
|
|
1723
1213
|
...fnOptions,
|
|
1724
|
-
throwOnError: true
|
|
1214
|
+
throwOnError: true
|
|
1725
1215
|
});
|
|
1726
1216
|
return data;
|
|
1727
|
-
}
|
|
1217
|
+
}
|
|
1728
1218
|
};
|
|
1729
1219
|
return mutationOptions;
|
|
1730
1220
|
};
|
|
1731
|
-
|
|
1732
|
-
* Send input to terminal
|
|
1733
|
-
*
|
|
1734
|
-
* #### Controller:
|
|
1735
|
-
*
|
|
1736
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).SendInputHandler`
|
|
1737
|
-
*
|
|
1738
|
-
* #### Middlewares:
|
|
1739
|
-
*
|
|
1740
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1741
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1742
|
-
*
|
|
1743
|
-
* ---
|
|
1744
|
-
*
|
|
1745
|
-
* Send input to a terminal session
|
|
1746
|
-
*/
|
|
1747
|
-
export const termsSendInputMutation = (options) => {
|
|
1748
|
-
const mutationOptions = {
|
|
1749
|
-
mutationFn: async (fnOptions) => {
|
|
1750
|
-
const { data } = await termsSendInput({
|
|
1751
|
-
...options,
|
|
1752
|
-
...fnOptions,
|
|
1753
|
-
throwOnError: true,
|
|
1754
|
-
});
|
|
1755
|
-
return data;
|
|
1756
|
-
},
|
|
1757
|
-
};
|
|
1758
|
-
return mutationOptions;
|
|
1759
|
-
};
|
|
1760
|
-
export const termsReadOutputQueryKey = (options) => createQueryKey("termsReadOutput", options);
|
|
1761
|
-
/**
|
|
1762
|
-
* Read terminal output
|
|
1763
|
-
*
|
|
1764
|
-
* #### Controller:
|
|
1765
|
-
*
|
|
1766
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).ReadOutputHandler`
|
|
1767
|
-
*
|
|
1768
|
-
* #### Middlewares:
|
|
1769
|
-
*
|
|
1770
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1771
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1772
|
-
*
|
|
1773
|
-
* ---
|
|
1774
|
-
*
|
|
1775
|
-
* Read output from a terminal session
|
|
1776
|
-
*/
|
|
1777
|
-
export const termsReadOutputOptions = (options) => {
|
|
1778
|
-
return queryOptions({
|
|
1779
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1780
|
-
const { data } = await termsReadOutput({
|
|
1781
|
-
...options,
|
|
1782
|
-
...queryKey[0],
|
|
1783
|
-
signal,
|
|
1784
|
-
throwOnError: true,
|
|
1785
|
-
});
|
|
1786
|
-
return data;
|
|
1787
|
-
},
|
|
1788
|
-
queryKey: termsReadOutputQueryKey(options),
|
|
1789
|
-
});
|
|
1790
|
-
};
|
|
1791
|
-
export const termsGetStatsQueryKey = (options) => createQueryKey("termsGetStats", options);
|
|
1792
|
-
/**
|
|
1793
|
-
* Get terminal stats
|
|
1794
|
-
*
|
|
1795
|
-
* #### Controller:
|
|
1796
|
-
*
|
|
1797
|
-
* `github.com/codeh007/gomtm/pkg/api/v2/handlers/terms.(*TermsService).GetStatsHandler`
|
|
1798
|
-
*
|
|
1799
|
-
* #### Middlewares:
|
|
1800
|
-
*
|
|
1801
|
-
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1802
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1803
|
-
*
|
|
1804
|
-
* ---
|
|
1805
|
-
*
|
|
1806
|
-
* Get statistics for a terminal session
|
|
1807
|
-
*/
|
|
1808
|
-
export const termsGetStatsOptions = (options) => {
|
|
1809
|
-
return queryOptions({
|
|
1810
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1811
|
-
const { data } = await termsGetStats({
|
|
1812
|
-
...options,
|
|
1813
|
-
...queryKey[0],
|
|
1814
|
-
signal,
|
|
1815
|
-
throwOnError: true,
|
|
1816
|
-
});
|
|
1817
|
-
return data;
|
|
1818
|
-
},
|
|
1819
|
-
queryKey: termsGetStatsQueryKey(options),
|
|
1820
|
-
});
|
|
1821
|
-
};
|
|
1822
|
-
export const userGetCurrentQueryKey = (options) => createQueryKey("userGetCurrent", options);
|
|
1221
|
+
export const userGetCurrentQueryKey = (options) => createQueryKey('userGetCurrent', options);
|
|
1823
1222
|
/**
|
|
1824
1223
|
* Get current user
|
|
1825
1224
|
*
|
|
1826
1225
|
* #### Controller:
|
|
1827
1226
|
*
|
|
1828
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1227
|
+
* `github.com/codeh007/gomtm/pkg/handlers/users.(*UserService).getCurrentUser`
|
|
1829
1228
|
*
|
|
1830
1229
|
* #### Middlewares:
|
|
1831
1230
|
*
|
|
1832
1231
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1833
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1834
1232
|
*
|
|
1835
1233
|
* ---
|
|
1836
1234
|
*
|
|
1837
1235
|
* Get current user information
|
|
1838
1236
|
*/
|
|
1839
|
-
export const userGetCurrentOptions = (options) => {
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
};
|
|
1853
|
-
export const napcatProxyWebUigetQueryKey = (options) => createQueryKey("napcatProxyWebUiget", options);
|
|
1237
|
+
export const userGetCurrentOptions = (options) => queryOptions({
|
|
1238
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1239
|
+
const { data } = await userGetCurrent({
|
|
1240
|
+
...options,
|
|
1241
|
+
...queryKey[0],
|
|
1242
|
+
signal,
|
|
1243
|
+
throwOnError: true
|
|
1244
|
+
});
|
|
1245
|
+
return data;
|
|
1246
|
+
},
|
|
1247
|
+
queryKey: userGetCurrentQueryKey(options)
|
|
1248
|
+
});
|
|
1249
|
+
export const napcatProxyWebUigetQueryKey = (options) => createQueryKey('napcatProxyWebUiget', options);
|
|
1854
1250
|
/**
|
|
1855
1251
|
* Proxy WebUI GET requests
|
|
1856
1252
|
*
|
|
1857
1253
|
* #### Controller:
|
|
1858
1254
|
*
|
|
1859
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1255
|
+
* `github.com/codeh007/gomtm/pkg/handlers/napcat.(*NapcatService).ProxyToWebUI`
|
|
1860
1256
|
*
|
|
1861
1257
|
* #### Middlewares:
|
|
1862
1258
|
*
|
|
1863
1259
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1864
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1865
1260
|
*
|
|
1866
1261
|
* ---
|
|
1867
1262
|
*
|
|
1868
1263
|
* Proxy all WebUI GET requests to napcat WebUI server
|
|
1869
1264
|
*/
|
|
1870
|
-
export const napcatProxyWebUigetOptions = (options) => {
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
});
|
|
1883
|
-
};
|
|
1265
|
+
export const napcatProxyWebUigetOptions = (options) => queryOptions({
|
|
1266
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1267
|
+
const { data } = await napcatProxyWebUiget({
|
|
1268
|
+
...options,
|
|
1269
|
+
...queryKey[0],
|
|
1270
|
+
signal,
|
|
1271
|
+
throwOnError: true
|
|
1272
|
+
});
|
|
1273
|
+
return data;
|
|
1274
|
+
},
|
|
1275
|
+
queryKey: napcatProxyWebUigetQueryKey(options)
|
|
1276
|
+
});
|
|
1884
1277
|
/**
|
|
1885
1278
|
* Proxy WebUI POST requests
|
|
1886
1279
|
*
|
|
1887
1280
|
* #### Controller:
|
|
1888
1281
|
*
|
|
1889
|
-
* `github.com/codeh007/gomtm/pkg/
|
|
1282
|
+
* `github.com/codeh007/gomtm/pkg/handlers/napcat.(*NapcatService).ProxyToWebUI`
|
|
1890
1283
|
*
|
|
1891
1284
|
* #### Middlewares:
|
|
1892
1285
|
*
|
|
1893
1286
|
* - `github.com/go-fuego/fuego.defaultLogger.middleware`
|
|
1894
|
-
* - `github.com/codeh007/gomtm/pkg/api/v2.NewServer.AuthMiddleware.func4`
|
|
1895
1287
|
*
|
|
1896
1288
|
* ---
|
|
1897
1289
|
*
|
|
@@ -1903,10 +1295,10 @@ export const napcatProxyWebUipostMutation = (options) => {
|
|
|
1903
1295
|
const { data } = await napcatProxyWebUipost({
|
|
1904
1296
|
...options,
|
|
1905
1297
|
...fnOptions,
|
|
1906
|
-
throwOnError: true
|
|
1298
|
+
throwOnError: true
|
|
1907
1299
|
});
|
|
1908
1300
|
return data;
|
|
1909
|
-
}
|
|
1301
|
+
}
|
|
1910
1302
|
};
|
|
1911
1303
|
return mutationOptions;
|
|
1912
1304
|
};
|