mtmsdk 0.0.42 → 0.0.44
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/cloud-account/platform-configs.d.ts +64 -0
- package/dist/cloud-account/platform-configs.d.ts.map +1 -0
- package/dist/cloud-account/platform-configs.js +44 -0
- package/dist/cloud-account/platform-configs.js.map +1 -0
- package/dist/{gomtmapi_v2 → gomtmapi}/@tanstack/react-query.gen.d.ts +202 -8
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2 → gomtmapi}/@tanstack/react-query.gen.js +300 -10
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -0
- package/dist/{opencode → gomtmapi}/client/client.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/client/client.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/client/index.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/client/index.js.map +1 -1
- package/dist/{opencode → gomtmapi}/client/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/client/types.gen.js.map +1 -0
- package/dist/{opencode → gomtmapi}/client/utils.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/client/utils.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/client.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/client.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/core/auth.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/core/auth.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/core/bodySerializer.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/core/params.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/core/params.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/core/pathSerializer.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/core/pathSerializer.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/core/queryKeySerializer.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/core/queryKeySerializer.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/core/serverSentEvents.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/core/serverSentEvents.gen.js.map +1 -1
- package/dist/{opencode → gomtmapi}/core/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/core/types.gen.js.map +1 -0
- package/dist/{opencode → gomtmapi}/core/utils.gen.d.ts.map +1 -1
- package/dist/{opencode → gomtmapi}/core/utils.gen.js.map +1 -1
- package/dist/gomtmapi/index.d.ts +3 -0
- package/dist/gomtmapi/index.d.ts.map +1 -0
- package/dist/gomtmapi/index.js +3 -0
- package/dist/gomtmapi/index.js.map +1 -0
- package/dist/{gomtmapi_v2 → gomtmapi}/schemas.gen.d.ts +337 -50
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2 → gomtmapi}/schemas.gen.js +355 -50
- package/dist/gomtmapi/schemas.gen.js.map +1 -0
- package/dist/gomtmapi/sdk.gen.d.ts +378 -0
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2 → gomtmapi}/sdk.gen.js +234 -15
- package/dist/gomtmapi/sdk.gen.js.map +1 -0
- package/dist/{gomtmapi_v2 → gomtmapi}/types.gen.d.ts +494 -50
- package/dist/gomtmapi/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi/types.gen.js.map +1 -0
- package/dist/{gomtmapi_v2 → gomtmapi}/zod.gen.d.ts +391 -45
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2 → gomtmapi}/zod.gen.js +270 -31
- package/dist/gomtmapi/zod.gen.js.map +1 -0
- package/dist/lib/logger/index.d.ts +3 -0
- package/dist/lib/logger/index.d.ts.map +1 -1
- package/dist/lib/schema.d.ts +14 -2
- package/dist/lib/schema.d.ts.map +1 -1
- package/dist/lib/schema.js +1 -1
- package/dist/lib/schema.js.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +29 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +17 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- 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 -1
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/schemas.gen.d.ts +1 -0
- package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
- package/dist/mtgate_api/schemas.gen.js +8 -1
- package/dist/mtgate_api/schemas.gen.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +5 -1
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +4 -0
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +7 -1
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +26 -3
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +12 -1
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/openclaw/client-info.d.ts +56 -0
- package/dist/openclaw/client-info.d.ts.map +1 -0
- package/dist/openclaw/client-info.js +44 -0
- package/dist/openclaw/client-info.js.map +1 -0
- package/dist/openclaw/device-auth-utils.d.ts +13 -0
- package/dist/openclaw/device-auth-utils.d.ts.map +1 -0
- package/dist/openclaw/device-auth-utils.js +20 -0
- package/dist/openclaw/device-auth-utils.js.map +1 -0
- package/dist/openclaw/device-auth.d.ts +21 -0
- package/dist/openclaw/device-auth.d.ts.map +1 -0
- package/dist/openclaw/device-auth.js +84 -0
- package/dist/openclaw/device-auth.js.map +1 -0
- package/dist/openclaw/device-identity.d.ts +8 -0
- package/dist/openclaw/device-identity.d.ts.map +1 -0
- package/dist/openclaw/device-identity.js +87 -0
- package/dist/openclaw/device-identity.js.map +1 -0
- package/dist/openclaw/gateway.d.ts +86 -0
- package/dist/openclaw/gateway.d.ts.map +1 -0
- package/dist/openclaw/gateway.js +268 -0
- package/dist/openclaw/gateway.js.map +1 -0
- package/dist/openclaw/types.d.ts +473 -0
- package/dist/openclaw/types.d.ts.map +1 -0
- package/dist/openclaw/types.js +2 -0
- package/dist/openclaw/types.js.map +1 -0
- package/dist/openclaw/uuid.d.ts +6 -0
- package/dist/openclaw/uuid.d.ts.map +1 -0
- package/dist/openclaw/uuid.js +39 -0
- package/dist/openclaw/uuid.js.map +1 -0
- package/dist/sbapi/@tanstack/react-query.gen.d.ts +3251 -6
- package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbapi/@tanstack/react-query.gen.js +6050 -6
- package/dist/sbapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/sbapi/client.gen.d.ts.map +1 -1
- package/dist/sbapi/client.gen.js +1 -1
- package/dist/sbapi/client.gen.js.map +1 -1
- package/dist/sbapi/index.d.ts +2 -2
- package/dist/sbapi/index.d.ts.map +1 -1
- package/dist/sbapi/index.js +1 -1
- package/dist/sbapi/index.js.map +1 -1
- package/dist/sbapi/schemas.gen.d.ts +2320 -36
- package/dist/sbapi/schemas.gen.d.ts.map +1 -1
- package/dist/sbapi/schemas.gen.js +2593 -45
- package/dist/sbapi/schemas.gen.js.map +1 -1
- package/dist/sbapi/sdk.gen.d.ts +819 -2
- package/dist/sbapi/sdk.gen.d.ts.map +1 -1
- package/dist/sbapi/sdk.gen.js +2463 -1
- package/dist/sbapi/sdk.gen.js.map +1 -1
- package/dist/sbapi/types.gen.d.ts +11701 -29
- package/dist/sbapi/types.gen.d.ts.map +1 -1
- package/dist/sbapi/zod.gen.d.ts +8134 -26
- package/dist/sbapi/zod.gen.d.ts.map +1 -1
- package/dist/sbapi/zod.gen.js +6572 -18
- package/dist/sbapi/zod.gen.js.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.d.ts +253 -157
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +241 -145
- package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
- package/dist/sbmng/index.d.ts +2 -2
- package/dist/sbmng/index.d.ts.map +1 -1
- package/dist/sbmng/index.js +1 -1
- package/dist/sbmng/index.js.map +1 -1
- package/dist/sbmng/schemas.gen.d.ts +1035 -917
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +1219 -1067
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +62 -38
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +140 -84
- package/dist/sbmng/sdk.gen.js.map +1 -1
- package/dist/sbmng/types.gen.d.ts +1214 -991
- package/dist/sbmng/types.gen.d.ts.map +1 -1
- package/dist/supabase/auth-provider.d.ts +4 -0
- package/dist/supabase/auth-provider.d.ts.map +1 -0
- package/dist/supabase/auth-provider.js +45 -0
- package/dist/supabase/auth-provider.js.map +1 -0
- package/dist/supabase/cursor-pagination.d.ts +92 -0
- package/dist/supabase/cursor-pagination.d.ts.map +1 -0
- package/dist/supabase/cursor-pagination.js +116 -0
- package/dist/supabase/cursor-pagination.js.map +1 -0
- package/dist/supabase/schema/browser.d.ts.map +1 -0
- package/dist/supabase/schema/browser.js.map +1 -0
- package/dist/supabase/schema/index.d.ts +29 -0
- package/dist/supabase/schema/index.d.ts.map +1 -0
- package/dist/supabase/schema/index.js +38 -0
- package/dist/supabase/schema/index.js.map +1 -0
- package/dist/supabase/supabase-client.d.ts +1912 -1128
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +4466 -2898
- package/dist/supabase/supabase.d.ts.map +1 -1
- package/dist/supabase/supabase.js +7 -4
- package/dist/supabase/supabase.js.map +1 -1
- package/dist/supabase/use-sb-query/use-query.d.ts +1 -1
- package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-query.js +2 -6
- package/dist/supabase/use-sb-query/use-query.js.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-mutation.d.ts +61 -0
- package/dist/supabase/use-sb-query/use-rpc-mutation.d.ts.map +1 -0
- package/dist/supabase/use-sb-query/use-rpc-mutation.js +63 -0
- package/dist/supabase/use-sb-query/use-rpc-mutation.js.map +1 -0
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts +124 -0
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -0
- package/dist/supabase/use-sb-query/use-rpc-query.js +91 -0
- package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -0
- package/dist/supabase/utils.d.ts +1 -1
- package/dist/supabase/utils.d.ts.map +1 -1
- package/dist/types/database.schemas.d.ts +3911 -0
- package/dist/types/database.schemas.d.ts.map +1 -0
- package/dist/types/database.schemas.js +3180 -0
- package/dist/types/database.schemas.js.map +1 -0
- package/dist/types/database.types.d.ts +1923 -1134
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js +24 -0
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +47 -6
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +27 -1
- package/dist/types/index.js.map +1 -1
- package/dist/types/rpc.schemas.d.ts +64 -0
- package/dist/types/rpc.schemas.d.ts.map +1 -0
- package/dist/types/rpc.schemas.js +122 -0
- package/dist/types/rpc.schemas.js.map +1 -0
- package/package.json +48 -39
- package/src/adk/api/client.ts +46 -0
- package/src/adk/core/constants/tool-icons.ts +51 -0
- package/src/adk/core/models/AgentBuilder.ts +80 -0
- package/src/adk/core/models/AgentRunRequest.ts +33 -0
- package/src/adk/core/models/Eval.ts +70 -0
- package/src/adk/core/models/LiveRequest.ts +23 -0
- package/src/adk/core/models/RuntimeConfig.ts +33 -0
- package/src/adk/core/models/Session.ts +52 -0
- package/src/adk/core/models/Trace.ts +42 -0
- package/src/adk/core/models/types.ts +255 -0
- package/src/api_hatchet/@tanstack/react-query.gen.ts +3025 -0
- package/src/api_hatchet/client/client.gen.ts +311 -0
- package/src/api_hatchet/client/index.ts +25 -0
- package/src/api_hatchet/client/types.gen.ts +241 -0
- package/src/api_hatchet/client/utils.gen.ts +332 -0
- package/{dist/opencode/client.gen.d.ts → src/api_hatchet/client.gen.ts} +6 -3
- package/src/api_hatchet/core/auth.gen.ts +42 -0
- package/src/api_hatchet/core/bodySerializer.gen.ts +100 -0
- package/src/api_hatchet/core/params.gen.ts +176 -0
- package/src/api_hatchet/core/pathSerializer.gen.ts +181 -0
- package/src/api_hatchet/core/queryKeySerializer.gen.ts +136 -0
- package/src/api_hatchet/core/serverSentEvents.gen.ts +266 -0
- package/src/api_hatchet/core/types.gen.ts +118 -0
- package/src/api_hatchet/core/utils.gen.ts +143 -0
- package/src/api_hatchet/index.ts +4 -0
- package/src/api_hatchet/schemas.gen.ts +4961 -0
- package/src/api_hatchet/sdk.gen.ts +1994 -0
- package/src/api_hatchet/types.gen.ts +7688 -0
- package/src/api_hatchet/zod.gen.ts +3230 -0
- package/src/cloud-account/platform-configs.ts +73 -0
- package/src/gomtmapi/@tanstack/react-query.gen.ts +757 -0
- package/src/gomtmapi/client/client.gen.ts +311 -0
- package/src/gomtmapi/client/index.ts +25 -0
- package/src/gomtmapi/client/types.gen.ts +241 -0
- package/src/gomtmapi/client/utils.gen.ts +332 -0
- package/src/gomtmapi/client.gen.ts +16 -0
- package/src/gomtmapi/core/auth.gen.ts +42 -0
- package/src/gomtmapi/core/bodySerializer.gen.ts +100 -0
- package/src/gomtmapi/core/params.gen.ts +176 -0
- package/src/gomtmapi/core/pathSerializer.gen.ts +181 -0
- package/src/gomtmapi/core/queryKeySerializer.gen.ts +136 -0
- package/src/gomtmapi/core/serverSentEvents.gen.ts +266 -0
- package/src/gomtmapi/core/types.gen.ts +118 -0
- package/src/gomtmapi/core/utils.gen.ts +143 -0
- package/src/gomtmapi/index.ts +4 -0
- package/src/gomtmapi/schemas.gen.ts +904 -0
- package/src/gomtmapi/sdk.gen.ts +541 -0
- package/src/gomtmapi/types.gen.ts +1456 -0
- package/src/gomtmapi/zod.gen.ts +758 -0
- package/src/index.ts +5 -0
- package/src/lib/aisdk/types.ts +8 -0
- package/src/lib/logger/index.ts +8 -0
- package/src/lib/schema.ts +50 -0
- package/src/lib/utils.ts +54 -0
- package/src/mtgate_api/@tanstack/react-query.gen.ts +175 -0
- package/src/mtgate_api/client/client.gen.ts +311 -0
- package/src/mtgate_api/client/index.ts +25 -0
- package/src/mtgate_api/client/types.gen.ts +241 -0
- package/src/mtgate_api/client/utils.gen.ts +332 -0
- package/src/mtgate_api/client.gen.ts +16 -0
- package/src/mtgate_api/core/auth.gen.ts +42 -0
- package/src/mtgate_api/core/bodySerializer.gen.ts +100 -0
- package/src/mtgate_api/core/params.gen.ts +176 -0
- package/src/mtgate_api/core/pathSerializer.gen.ts +181 -0
- package/src/mtgate_api/core/queryKeySerializer.gen.ts +136 -0
- package/src/mtgate_api/core/serverSentEvents.gen.ts +266 -0
- package/src/mtgate_api/core/types.gen.ts +118 -0
- package/src/mtgate_api/core/utils.gen.ts +143 -0
- package/src/mtgate_api/index.ts +4 -0
- package/src/mtgate_api/schemas.gen.ts +337 -0
- package/src/mtgate_api/sdk.gen.ts +61 -0
- package/src/mtgate_api/types.gen.ts +324 -0
- package/src/mtgate_api/zod.gen.ts +234 -0
- package/src/mtmai_api/@tanstack/react-query.gen.ts +1010 -0
- package/src/mtmai_api/client/client.gen.ts +311 -0
- package/src/mtmai_api/client/index.ts +25 -0
- package/src/mtmai_api/client/types.gen.ts +241 -0
- package/src/mtmai_api/client/utils.gen.ts +332 -0
- package/src/mtmai_api/client.gen.ts +16 -0
- package/src/mtmai_api/core/auth.gen.ts +42 -0
- package/src/mtmai_api/core/bodySerializer.gen.ts +100 -0
- package/src/mtmai_api/core/params.gen.ts +176 -0
- package/src/mtmai_api/core/pathSerializer.gen.ts +181 -0
- package/src/mtmai_api/core/queryKeySerializer.gen.ts +136 -0
- package/src/mtmai_api/core/serverSentEvents.gen.ts +266 -0
- package/src/mtmai_api/core/types.gen.ts +118 -0
- package/src/mtmai_api/core/utils.gen.ts +143 -0
- package/src/mtmai_api/index.ts +4 -0
- package/src/mtmai_api/schemas.gen.ts +9980 -0
- package/src/mtmai_api/sdk.gen.ts +471 -0
- package/src/mtmai_api/types.gen.ts +7609 -0
- package/src/mtmai_api/zod.gen.ts +5101 -0
- package/src/openclaw/client-info.ts +63 -0
- package/src/openclaw/device-auth-utils.ts +31 -0
- package/src/openclaw/device-auth.ts +96 -0
- package/src/openclaw/device-identity.ts +108 -0
- package/src/openclaw/gateway.ts +351 -0
- package/src/openclaw/types.ts +518 -0
- package/src/openclaw/uuid.ts +48 -0
- package/src/sbapi/@tanstack/react-query.gen.ts +6591 -0
- package/src/sbapi/client/client.gen.ts +311 -0
- package/src/sbapi/client/index.ts +25 -0
- package/src/sbapi/client/types.gen.ts +241 -0
- package/src/sbapi/client/utils.gen.ts +332 -0
- package/src/sbapi/client.gen.ts +16 -0
- package/src/sbapi/core/auth.gen.ts +42 -0
- package/src/sbapi/core/bodySerializer.gen.ts +100 -0
- package/src/sbapi/core/params.gen.ts +176 -0
- package/src/sbapi/core/pathSerializer.gen.ts +181 -0
- package/src/sbapi/core/queryKeySerializer.gen.ts +136 -0
- package/src/sbapi/core/serverSentEvents.gen.ts +266 -0
- package/src/sbapi/core/types.gen.ts +118 -0
- package/src/sbapi/core/utils.gen.ts +143 -0
- package/src/sbapi/index.ts +4 -0
- package/src/sbapi/schemas.gen.ts +2643 -0
- package/src/sbapi/sdk.gen.ts +2822 -0
- package/src/sbapi/types.gen.ts +12503 -0
- package/src/sbapi/zod.gen.ts +7021 -0
- package/src/sbmng/@tanstack/react-query.gen.ts +2999 -0
- package/src/sbmng/client/client.gen.ts +311 -0
- package/src/sbmng/client/index.ts +25 -0
- package/src/sbmng/client/types.gen.ts +241 -0
- package/src/sbmng/client/utils.gen.ts +332 -0
- package/src/sbmng/client.gen.ts +16 -0
- package/src/sbmng/core/auth.gen.ts +42 -0
- package/src/sbmng/core/bodySerializer.gen.ts +100 -0
- package/src/sbmng/core/params.gen.ts +176 -0
- package/src/sbmng/core/pathSerializer.gen.ts +181 -0
- package/src/sbmng/core/queryKeySerializer.gen.ts +136 -0
- package/src/sbmng/core/serverSentEvents.gen.ts +266 -0
- package/src/sbmng/core/types.gen.ts +118 -0
- package/src/sbmng/core/utils.gen.ts +143 -0
- package/src/sbmng/index.ts +4 -0
- package/src/sbmng/schemas.gen.ts +9680 -0
- package/src/sbmng/sdk.gen.ts +1771 -0
- package/src/sbmng/types.gen.ts +7956 -0
- package/src/supabase/auth-provider.tsx +67 -0
- package/src/supabase/context.tsx +51 -0
- package/src/supabase/cursor-pagination.ts +155 -0
- package/src/supabase/schema/browser.ts +45 -0
- package/src/supabase/schema/index.ts +50 -0
- package/src/supabase/supabase-client.ts +30 -0
- package/src/supabase/supabase.ts +65 -0
- package/src/supabase/use-sb-query/build-query-opts.ts +56 -0
- package/src/supabase/use-sb-query/key.ts +57 -0
- package/src/supabase/use-sb-query/prefetch.ts +59 -0
- package/src/supabase/use-sb-query/use-query.ts +340 -0
- package/src/supabase/use-sb-query/use-rpc-mutation.ts +83 -0
- package/src/supabase/use-sb-query/use-rpc-query.ts +230 -0
- package/src/supabase/utils.ts +75 -0
- package/src/types/database.schemas.ts +3804 -0
- package/src/types/database.types.ts +3828 -0
- package/src/types/index.ts +119 -0
- package/src/types/rpc.schemas.ts +157 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +0 -1
- package/dist/gomtmapi_v2/client/client.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/client/client.gen.js.map +0 -1
- package/dist/gomtmapi_v2/client/index.d.ts.map +0 -1
- package/dist/gomtmapi_v2/client/index.js.map +0 -1
- package/dist/gomtmapi_v2/client/types.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/client/types.gen.js.map +0 -1
- package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/client/utils.gen.js.map +0 -1
- package/dist/gomtmapi_v2/client.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/client.gen.js.map +0 -1
- package/dist/gomtmapi_v2/core/auth.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/auth.gen.js.map +0 -1
- package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +0 -1
- package/dist/gomtmapi_v2/core/params.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/params.gen.js.map +0 -1
- package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/pathSerializer.gen.js.map +0 -1
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +0 -1
- package/dist/gomtmapi_v2/core/types.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/types.gen.js.map +0 -1
- package/dist/gomtmapi_v2/core/utils.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/utils.gen.js.map +0 -1
- package/dist/gomtmapi_v2/index.d.ts +0 -3
- package/dist/gomtmapi_v2/index.d.ts.map +0 -1
- package/dist/gomtmapi_v2/index.js +0 -3
- package/dist/gomtmapi_v2/index.js.map +0 -1
- package/dist/gomtmapi_v2/schemas.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/schemas.gen.js.map +0 -1
- package/dist/gomtmapi_v2/sdk.gen.d.ts +0 -208
- package/dist/gomtmapi_v2/sdk.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/sdk.gen.js.map +0 -1
- package/dist/gomtmapi_v2/types.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/types.gen.js.map +0 -1
- package/dist/gomtmapi_v2/zod.gen.d.ts.map +0 -1
- package/dist/gomtmapi_v2/zod.gen.js.map +0 -1
- package/dist/opencode/@tanstack/react-query.gen.d.ts +0 -1903
- package/dist/opencode/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/opencode/@tanstack/react-query.gen.js +0 -1696
- package/dist/opencode/@tanstack/react-query.gen.js.map +0 -1
- package/dist/opencode/client/client.gen.d.ts +0 -3
- package/dist/opencode/client/client.gen.js +0 -236
- package/dist/opencode/client/index.d.ts +0 -9
- package/dist/opencode/client/index.js +0 -7
- package/dist/opencode/client/types.gen.d.ts +0 -118
- package/dist/opencode/client/types.gen.js +0 -3
- package/dist/opencode/client/types.gen.js.map +0 -1
- package/dist/opencode/client/utils.gen.d.ts +0 -34
- package/dist/opencode/client/utils.gen.js +0 -232
- package/dist/opencode/client.gen.js +0 -4
- package/dist/opencode/core/auth.gen.d.ts +0 -19
- package/dist/opencode/core/auth.gen.js +0 -15
- package/dist/opencode/core/bodySerializer.gen.d.ts +0 -26
- package/dist/opencode/core/bodySerializer.gen.js +0 -58
- package/dist/opencode/core/params.gen.d.ts +0 -44
- package/dist/opencode/core/params.gen.js +0 -101
- package/dist/opencode/core/pathSerializer.gen.d.ts +0 -34
- package/dist/opencode/core/pathSerializer.gen.js +0 -115
- package/dist/opencode/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/opencode/core/queryKeySerializer.gen.js +0 -100
- package/dist/opencode/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/opencode/core/serverSentEvents.gen.js +0 -138
- package/dist/opencode/core/types.gen.d.ts +0 -79
- package/dist/opencode/core/types.gen.js +0 -3
- package/dist/opencode/core/types.gen.js.map +0 -1
- package/dist/opencode/core/utils.gen.d.ts +0 -20
- package/dist/opencode/core/utils.gen.js +0 -88
- package/dist/opencode/index.d.ts +0 -3
- package/dist/opencode/index.d.ts.map +0 -1
- package/dist/opencode/index.js +0 -4
- package/dist/opencode/index.js.map +0 -1
- package/dist/opencode/schemas.gen.d.ts +0 -4823
- package/dist/opencode/schemas.gen.d.ts.map +0 -1
- package/dist/opencode/schemas.gen.js +0 -5816
- package/dist/opencode/schemas.gen.js.map +0 -1
- package/dist/opencode/sdk.gen.d.ts +0 -562
- package/dist/opencode/sdk.gen.d.ts.map +0 -1
- package/dist/opencode/sdk.gen.js +0 -766
- package/dist/opencode/sdk.gen.js.map +0 -1
- package/dist/opencode/types.gen.d.ts +0 -4213
- package/dist/opencode/types.gen.d.ts.map +0 -1
- package/dist/opencode/types.gen.js +0 -25
- package/dist/opencode/types.gen.js.map +0 -1
- package/dist/opencode/zod.gen.d.ts +0 -17243
- package/dist/opencode/zod.gen.d.ts.map +0 -1
- package/dist/opencode/zod.gen.js +0 -2876
- package/dist/opencode/zod.gen.js.map +0 -1
- package/dist/schema/browser.d.ts.map +0 -1
- package/dist/schema/browser.js.map +0 -1
- /package/dist/{gomtmapi_v2 → gomtmapi}/client/client.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client/client.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client/index.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client/index.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client/types.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client/types.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client/utils.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client/utils.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/client.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/auth.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/auth.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/bodySerializer.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/bodySerializer.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/params.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/params.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/pathSerializer.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/pathSerializer.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/queryKeySerializer.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/queryKeySerializer.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/serverSentEvents.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/serverSentEvents.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/types.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/types.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/utils.gen.d.ts +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/core/utils.gen.js +0 -0
- /package/dist/{gomtmapi_v2 → gomtmapi}/types.gen.js +0 -0
- /package/dist/{schema → supabase/schema}/browser.d.ts +0 -0
- /package/dist/{schema → supabase/schema}/browser.js +0 -0
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import { type Client, formDataBodySerializer, type Options as Options2, type TDataShape } from './client';
|
|
4
|
+
import { client } from './client.gen';
|
|
5
|
+
import type { AgentsAgentrunData, AgentsAgentrunErrors, AgentsAgentrunResponses, BuilderBuildData, BuilderBuildErrors, BuilderBuildResponses, ChatAgentChatData, ChatAgentChatErrors, ChatAgentChatResponses, ChatAgentExportConfigData, ChatAgentExportConfigResponses, ChatAgentGetChatConfigData, ChatAgentGetChatConfigResponses, ChatAgentGetProvidersData, ChatAgentGetProvidersResponses, ChatAgentImportConfigData, ChatAgentImportConfigErrors, ChatAgentImportConfigResponses, ChatAgentUpdateChatConfigData, ChatAgentUpdateChatConfigErrors, ChatAgentUpdateChatConfigResponses, ChatAgentValidateApiKeyData, ChatAgentValidateApiKeyErrors, ChatAgentValidateApiKeyResponses, CreateItemData, CreateItemErrors, CreateItemResponses, CreateSessionData, CreateSessionErrors, CreateSessionResponses, CreateSessionWithIdData, CreateSessionWithIdErrors, CreateSessionWithIdResponses, DebugGetEventGraphData, DebugGetEventGraphErrors, DebugGetEventGraphResponses, DebugGetSessionTraceData, DebugGetSessionTraceErrors, DebugGetSessionTraceResponses, DebugGetTraceDictData, DebugGetTraceDictErrors, DebugGetTraceDictResponses, DeleteArtifactData, DeleteArtifactErrors, DeleteArtifactResponses, DeleteItemData, DeleteItemErrors, DeleteItemResponses, DeleteSessionData, DeleteSessionErrors, DeleteSessionResponses, EvaluationAddSessionToEvalSetData, EvaluationAddSessionToEvalSetErrors, EvaluationAddSessionToEvalSetResponses, EvaluationCreateEvalSetData, EvaluationCreateEvalSetErrors, EvaluationCreateEvalSetLegacyData, EvaluationCreateEvalSetLegacyErrors, EvaluationCreateEvalSetLegacyResponses, EvaluationCreateEvalSetResponses, EvaluationDeleteEvalData, EvaluationDeleteEvalErrors, EvaluationDeleteEvalResponses, EvaluationGetEvalData, EvaluationGetEvalErrors, EvaluationGetEvalResponses, EvaluationGetEvalResultData, EvaluationGetEvalResultErrors, EvaluationGetEvalResultLegacyData, EvaluationGetEvalResultLegacyErrors, EvaluationGetEvalResultLegacyResponses, EvaluationGetEvalResultResponses, EvaluationListEvalResultsData, EvaluationListEvalResultsErrors, EvaluationListEvalResultsLegacyData, EvaluationListEvalResultsLegacyErrors, EvaluationListEvalResultsLegacyResponses, EvaluationListEvalResultsResponses, EvaluationListEvalSetsData, EvaluationListEvalSetsErrors, EvaluationListEvalSetsLegacyData, EvaluationListEvalSetsLegacyErrors, EvaluationListEvalSetsLegacyResponses, EvaluationListEvalSetsResponses, EvaluationListEvalsInEvalSetData, EvaluationListEvalsInEvalSetErrors, EvaluationListEvalsInEvalSetResponses, EvaluationListMetricsInfoData, EvaluationListMetricsInfoErrors, EvaluationListMetricsInfoResponses, EvaluationRunEvalData, EvaluationRunEvalErrors, EvaluationRunEvalLegacyData, EvaluationRunEvalLegacyErrors, EvaluationRunEvalLegacyResponses, EvaluationRunEvalResponses, EvaluationUpdateEvalData, EvaluationUpdateEvalErrors, EvaluationUpdateEvalResponses, GetAgentBuilderData, GetAgentBuilderErrors, GetAgentBuilderResponses, GetItemData, GetItemErrors, GetItemResponses, GetSessionData, GetSessionErrors, GetSessionResponses, ListAppsData, ListAppsResponses, ListArtifactNamesData, ListArtifactNamesErrors, ListArtifactNamesResponses, ListArtifactVersionsData, ListArtifactVersionsErrors, ListArtifactVersionsResponses, ListItemsData, ListItemsErrors, ListItemsResponses, ListSessionsData, ListSessionsErrors, ListSessionsResponses, LoadArtifactData, LoadArtifactErrors, LoadArtifactResponses, LoadArtifactVersionData, LoadArtifactVersionErrors, LoadArtifactVersionResponses, RedirectDevUiAddSlashData, RedirectDevUiAddSlashResponses, RedirectRootToDevUiData, RedirectRootToDevUiResponses, RunAgentData, RunAgentErrors, RunAgentResponses, RunAgentSseData, RunAgentSseErrors, RunAgentSseResponses, SandboxCheckSandboxStatusData, SandboxCheckSandboxStatusErrors, SandboxCheckSandboxStatusResponses, SandboxStartNapcatSandboxData, SandboxStartNapcatSandboxErrors, SandboxStartNapcatSandboxResponses, SearchItemsData, SearchItemsErrors, SearchItemsResponses, UpdateItemData, UpdateItemErrors, UpdateItemResponses } from './types.gen';
|
|
6
|
+
|
|
7
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
8
|
+
/**
|
|
9
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
10
|
+
* individual options. This might be also useful if you want to implement a
|
|
11
|
+
* custom client.
|
|
12
|
+
*/
|
|
13
|
+
client?: Client;
|
|
14
|
+
/**
|
|
15
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
16
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
17
|
+
*/
|
|
18
|
+
meta?: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* List Apps
|
|
23
|
+
*/
|
|
24
|
+
export const listApps = <ThrowOnError extends boolean = false>(options?: Options<ListAppsData, ThrowOnError>) => (options?.client ?? client).get<ListAppsResponses, unknown, ThrowOnError>({ url: '/list-apps', ...options });
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Get Trace Dict
|
|
28
|
+
*/
|
|
29
|
+
export const debugGetTraceDict = <ThrowOnError extends boolean = false>(options: Options<DebugGetTraceDictData, ThrowOnError>) => (options.client ?? client).get<DebugGetTraceDictResponses, DebugGetTraceDictErrors, ThrowOnError>({ url: '/debug/trace/{event_id}', ...options });
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get Session Trace
|
|
33
|
+
*/
|
|
34
|
+
export const debugGetSessionTrace = <ThrowOnError extends boolean = false>(options: Options<DebugGetSessionTraceData, ThrowOnError>) => (options.client ?? client).get<DebugGetSessionTraceResponses, DebugGetSessionTraceErrors, ThrowOnError>({ url: '/debug/trace/session/{session_id}', ...options });
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Delete Session
|
|
38
|
+
*/
|
|
39
|
+
export const deleteSession = <ThrowOnError extends boolean = false>(options: Options<DeleteSessionData, ThrowOnError>) => (options.client ?? client).delete<DeleteSessionResponses, DeleteSessionErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}', ...options });
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Get Session
|
|
43
|
+
*/
|
|
44
|
+
export const getSession = <ThrowOnError extends boolean = false>(options: Options<GetSessionData, ThrowOnError>) => (options.client ?? client).get<GetSessionResponses, GetSessionErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}', ...options });
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Create Session With Id
|
|
48
|
+
*/
|
|
49
|
+
export const createSessionWithId = <ThrowOnError extends boolean = false>(options: Options<CreateSessionWithIdData, ThrowOnError>) => (options.client ?? client).post<CreateSessionWithIdResponses, CreateSessionWithIdErrors, ThrowOnError>({
|
|
50
|
+
url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}',
|
|
51
|
+
...options,
|
|
52
|
+
headers: {
|
|
53
|
+
'Content-Type': 'application/json',
|
|
54
|
+
...options.headers
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* List Sessions
|
|
60
|
+
*/
|
|
61
|
+
export const listSessions = <ThrowOnError extends boolean = false>(options: Options<ListSessionsData, ThrowOnError>) => (options.client ?? client).get<ListSessionsResponses, ListSessionsErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions', ...options });
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Create Session
|
|
65
|
+
*/
|
|
66
|
+
export const createSession = <ThrowOnError extends boolean = false>(options: Options<CreateSessionData, ThrowOnError>) => (options.client ?? client).post<CreateSessionResponses, CreateSessionErrors, ThrowOnError>({
|
|
67
|
+
url: '/apps/{app_name}/users/{user_id}/sessions',
|
|
68
|
+
...options,
|
|
69
|
+
headers: {
|
|
70
|
+
'Content-Type': 'application/json',
|
|
71
|
+
...options.headers
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* List Eval Sets
|
|
77
|
+
*
|
|
78
|
+
* Lists all eval sets for the given app.
|
|
79
|
+
*/
|
|
80
|
+
export const evaluationListEvalSets = <ThrowOnError extends boolean = false>(options: Options<EvaluationListEvalSetsData, ThrowOnError>) => (options.client ?? client).get<EvaluationListEvalSetsResponses, EvaluationListEvalSetsErrors, ThrowOnError>({ url: '/apps/{app_name}/eval-sets', ...options });
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Create Eval Set
|
|
84
|
+
*/
|
|
85
|
+
export const evaluationCreateEvalSet = <ThrowOnError extends boolean = false>(options: Options<EvaluationCreateEvalSetData, ThrowOnError>) => (options.client ?? client).post<EvaluationCreateEvalSetResponses, EvaluationCreateEvalSetErrors, ThrowOnError>({
|
|
86
|
+
url: '/apps/{app_name}/eval-sets',
|
|
87
|
+
...options,
|
|
88
|
+
headers: {
|
|
89
|
+
'Content-Type': 'application/json',
|
|
90
|
+
...options.headers
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Create Eval Set Legacy
|
|
96
|
+
*
|
|
97
|
+
* Creates an eval set, given the id.
|
|
98
|
+
*/
|
|
99
|
+
export const evaluationCreateEvalSetLegacy = <ThrowOnError extends boolean = false>(options: Options<EvaluationCreateEvalSetLegacyData, ThrowOnError>) => (options.client ?? client).post<EvaluationCreateEvalSetLegacyResponses, EvaluationCreateEvalSetLegacyErrors, ThrowOnError>({ url: '/apps/{app_name}/eval_sets/{eval_set_id}', ...options });
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* List Eval Sets Legacy
|
|
103
|
+
*/
|
|
104
|
+
export const evaluationListEvalSetsLegacy = <ThrowOnError extends boolean = false>(options: Options<EvaluationListEvalSetsLegacyData, ThrowOnError>) => (options.client ?? client).get<EvaluationListEvalSetsLegacyResponses, EvaluationListEvalSetsLegacyErrors, ThrowOnError>({ url: '/apps/{app_name}/eval_sets', ...options });
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Add Session To Eval Set
|
|
108
|
+
*/
|
|
109
|
+
export const evaluationAddSessionToEvalSet = <ThrowOnError extends boolean = false>(options: Options<EvaluationAddSessionToEvalSetData, ThrowOnError>) => (options.client ?? client).post<EvaluationAddSessionToEvalSetResponses, EvaluationAddSessionToEvalSetErrors, ThrowOnError>({
|
|
110
|
+
url: '/apps/{app_name}/eval-sets/{eval_set_id}/add-session',
|
|
111
|
+
...options,
|
|
112
|
+
headers: {
|
|
113
|
+
'Content-Type': 'application/json',
|
|
114
|
+
...options.headers
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* List Evals In Eval Set
|
|
120
|
+
*
|
|
121
|
+
* Lists all evals in an eval set.
|
|
122
|
+
*/
|
|
123
|
+
export const evaluationListEvalsInEvalSet = <ThrowOnError extends boolean = false>(options: Options<EvaluationListEvalsInEvalSetData, ThrowOnError>) => (options.client ?? client).get<EvaluationListEvalsInEvalSetResponses, EvaluationListEvalsInEvalSetErrors, ThrowOnError>({ url: '/apps/{app_name}/eval_sets/{eval_set_id}/evals', ...options });
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Delete Eval
|
|
127
|
+
*/
|
|
128
|
+
export const evaluationDeleteEval = <ThrowOnError extends boolean = false>(options: Options<EvaluationDeleteEvalData, ThrowOnError>) => (options.client ?? client).delete<EvaluationDeleteEvalResponses, EvaluationDeleteEvalErrors, ThrowOnError>({ url: '/apps/{app_name}/eval-sets/{eval_set_id}/eval-cases/{eval_case_id}', ...options });
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Get Eval
|
|
132
|
+
*
|
|
133
|
+
* Gets an eval case in an eval set.
|
|
134
|
+
*/
|
|
135
|
+
export const evaluationGetEval = <ThrowOnError extends boolean = false>(options: Options<EvaluationGetEvalData, ThrowOnError>) => (options.client ?? client).get<EvaluationGetEvalResponses, EvaluationGetEvalErrors, ThrowOnError>({ url: '/apps/{app_name}/eval-sets/{eval_set_id}/eval-cases/{eval_case_id}', ...options });
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Update Eval
|
|
139
|
+
*/
|
|
140
|
+
export const evaluationUpdateEval = <ThrowOnError extends boolean = false>(options: Options<EvaluationUpdateEvalData, ThrowOnError>) => (options.client ?? client).put<EvaluationUpdateEvalResponses, EvaluationUpdateEvalErrors, ThrowOnError>({
|
|
141
|
+
url: '/apps/{app_name}/eval-sets/{eval_set_id}/eval-cases/{eval_case_id}',
|
|
142
|
+
...options,
|
|
143
|
+
headers: {
|
|
144
|
+
'Content-Type': 'application/json',
|
|
145
|
+
...options.headers
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Run Eval Legacy
|
|
151
|
+
*/
|
|
152
|
+
export const evaluationRunEvalLegacy = <ThrowOnError extends boolean = false>(options: Options<EvaluationRunEvalLegacyData, ThrowOnError>) => (options.client ?? client).post<EvaluationRunEvalLegacyResponses, EvaluationRunEvalLegacyErrors, ThrowOnError>({
|
|
153
|
+
url: '/apps/{app_name}/eval_sets/{eval_set_id}/run_eval',
|
|
154
|
+
...options,
|
|
155
|
+
headers: {
|
|
156
|
+
'Content-Type': 'application/json',
|
|
157
|
+
...options.headers
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Run Eval
|
|
163
|
+
*
|
|
164
|
+
* Runs an eval given the details in the eval request.
|
|
165
|
+
*/
|
|
166
|
+
export const evaluationRunEval = <ThrowOnError extends boolean = false>(options: Options<EvaluationRunEvalData, ThrowOnError>) => (options.client ?? client).post<EvaluationRunEvalResponses, EvaluationRunEvalErrors, ThrowOnError>({
|
|
167
|
+
url: '/apps/{app_name}/eval-sets/{eval_set_id}/run',
|
|
168
|
+
...options,
|
|
169
|
+
headers: {
|
|
170
|
+
'Content-Type': 'application/json',
|
|
171
|
+
...options.headers
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Get Eval Result
|
|
177
|
+
*
|
|
178
|
+
* Gets the eval result for the given eval id.
|
|
179
|
+
*/
|
|
180
|
+
export const evaluationGetEvalResult = <ThrowOnError extends boolean = false>(options: Options<EvaluationGetEvalResultData, ThrowOnError>) => (options.client ?? client).get<EvaluationGetEvalResultResponses, EvaluationGetEvalResultErrors, ThrowOnError>({ url: '/apps/{app_name}/eval-results/{eval_result_id}', ...options });
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Get Eval Result Legacy
|
|
184
|
+
*/
|
|
185
|
+
export const evaluationGetEvalResultLegacy = <ThrowOnError extends boolean = false>(options: Options<EvaluationGetEvalResultLegacyData, ThrowOnError>) => (options.client ?? client).get<EvaluationGetEvalResultLegacyResponses, EvaluationGetEvalResultLegacyErrors, ThrowOnError>({ url: '/apps/{app_name}/eval_results/{eval_result_id}', ...options });
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* List Eval Results
|
|
189
|
+
*
|
|
190
|
+
* Lists all eval results for the given app.
|
|
191
|
+
*/
|
|
192
|
+
export const evaluationListEvalResults = <ThrowOnError extends boolean = false>(options: Options<EvaluationListEvalResultsData, ThrowOnError>) => (options.client ?? client).get<EvaluationListEvalResultsResponses, EvaluationListEvalResultsErrors, ThrowOnError>({ url: '/apps/{app_name}/eval-results', ...options });
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* List Eval Results Legacy
|
|
196
|
+
*/
|
|
197
|
+
export const evaluationListEvalResultsLegacy = <ThrowOnError extends boolean = false>(options: Options<EvaluationListEvalResultsLegacyData, ThrowOnError>) => (options.client ?? client).get<EvaluationListEvalResultsLegacyResponses, EvaluationListEvalResultsLegacyErrors, ThrowOnError>({ url: '/apps/{app_name}/eval_results', ...options });
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* List Metrics Info
|
|
201
|
+
*
|
|
202
|
+
* Lists all eval metrics for the given app.
|
|
203
|
+
*/
|
|
204
|
+
export const evaluationListMetricsInfo = <ThrowOnError extends boolean = false>(options: Options<EvaluationListMetricsInfoData, ThrowOnError>) => (options.client ?? client).get<EvaluationListMetricsInfoResponses, EvaluationListMetricsInfoErrors, ThrowOnError>({ url: '/apps/{app_name}/metrics-info', ...options });
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Delete Artifact
|
|
208
|
+
*/
|
|
209
|
+
export const deleteArtifact = <ThrowOnError extends boolean = false>(options: Options<DeleteArtifactData, ThrowOnError>) => (options.client ?? client).delete<DeleteArtifactResponses, DeleteArtifactErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}', ...options });
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Load Artifact
|
|
213
|
+
*/
|
|
214
|
+
export const loadArtifact = <ThrowOnError extends boolean = false>(options: Options<LoadArtifactData, ThrowOnError>) => (options.client ?? client).get<LoadArtifactResponses, LoadArtifactErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}', ...options });
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Load Artifact Version
|
|
218
|
+
*/
|
|
219
|
+
export const loadArtifactVersion = <ThrowOnError extends boolean = false>(options: Options<LoadArtifactVersionData, ThrowOnError>) => (options.client ?? client).get<LoadArtifactVersionResponses, LoadArtifactVersionErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}/versions/{version_id}', ...options });
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* List Artifact Names
|
|
223
|
+
*/
|
|
224
|
+
export const listArtifactNames = <ThrowOnError extends boolean = false>(options: Options<ListArtifactNamesData, ThrowOnError>) => (options.client ?? client).get<ListArtifactNamesResponses, ListArtifactNamesErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts', ...options });
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* List Artifact Versions
|
|
228
|
+
*/
|
|
229
|
+
export const listArtifactVersions = <ThrowOnError extends boolean = false>(options: Options<ListArtifactVersionsData, ThrowOnError>) => (options.client ?? client).get<ListArtifactVersionsResponses, ListArtifactVersionsErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}/versions', ...options });
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Run Agent
|
|
233
|
+
*/
|
|
234
|
+
export const runAgent = <ThrowOnError extends boolean = false>(options: Options<RunAgentData, ThrowOnError>) => (options.client ?? client).post<RunAgentResponses, RunAgentErrors, ThrowOnError>({
|
|
235
|
+
url: '/run',
|
|
236
|
+
...options,
|
|
237
|
+
headers: {
|
|
238
|
+
'Content-Type': 'application/json',
|
|
239
|
+
...options.headers
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Run Agent Sse
|
|
245
|
+
*/
|
|
246
|
+
export const runAgentSse = <ThrowOnError extends boolean = false>(options: Options<RunAgentSseData, ThrowOnError>) => (options.client ?? client).post<RunAgentSseResponses, RunAgentSseErrors, ThrowOnError>({
|
|
247
|
+
url: '/run_sse',
|
|
248
|
+
...options,
|
|
249
|
+
headers: {
|
|
250
|
+
'Content-Type': 'application/json',
|
|
251
|
+
...options.headers
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Get Event Graph
|
|
257
|
+
*/
|
|
258
|
+
export const debugGetEventGraph = <ThrowOnError extends boolean = false>(options: Options<DebugGetEventGraphData, ThrowOnError>) => (options.client ?? client).get<DebugGetEventGraphResponses, DebugGetEventGraphErrors, ThrowOnError>({ url: '/apps/{app_name}/users/{user_id}/sessions/{session_id}/events/{event_id}/graph', ...options });
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Redirect Root To Dev Ui
|
|
262
|
+
*/
|
|
263
|
+
export const redirectRootToDevUi = <ThrowOnError extends boolean = false>(options?: Options<RedirectRootToDevUiData, ThrowOnError>) => (options?.client ?? client).get<RedirectRootToDevUiResponses, unknown, ThrowOnError>({ url: '/', ...options });
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Redirect Dev Ui Add Slash
|
|
267
|
+
*/
|
|
268
|
+
export const redirectDevUiAddSlash = <ThrowOnError extends boolean = false>(options?: Options<RedirectDevUiAddSlashData, ThrowOnError>) => (options?.client ?? client).get<RedirectDevUiAddSlashResponses, unknown, ThrowOnError>({ url: '/dev-ui', ...options });
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Builder Build
|
|
272
|
+
*/
|
|
273
|
+
export const builderBuild = <ThrowOnError extends boolean = false>(options: Options<BuilderBuildData, ThrowOnError>) => (options.client ?? client).post<BuilderBuildResponses, BuilderBuildErrors, ThrowOnError>({
|
|
274
|
+
...formDataBodySerializer,
|
|
275
|
+
url: '/builder/save',
|
|
276
|
+
...options,
|
|
277
|
+
headers: {
|
|
278
|
+
'Content-Type': null,
|
|
279
|
+
...options.headers
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Get Agent Builder
|
|
285
|
+
*/
|
|
286
|
+
export const getAgentBuilder = <ThrowOnError extends boolean = false>(options: Options<GetAgentBuilderData, ThrowOnError>) => (options.client ?? client).get<GetAgentBuilderResponses, GetAgentBuilderErrors, ThrowOnError>({ url: '/builder/app/{app_name}', ...options });
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* Get Chat Config
|
|
290
|
+
*
|
|
291
|
+
* 获取当前聊天配置
|
|
292
|
+
*/
|
|
293
|
+
export const chatAgentGetChatConfig = <ThrowOnError extends boolean = false>(options?: Options<ChatAgentGetChatConfigData, ThrowOnError>) => (options?.client ?? client).get<ChatAgentGetChatConfigResponses, unknown, ThrowOnError>({ url: '/api/mtmai/chat/config', ...options });
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Update Chat Config
|
|
297
|
+
*
|
|
298
|
+
* 更新聊天配置
|
|
299
|
+
*/
|
|
300
|
+
export const chatAgentUpdateChatConfig = <ThrowOnError extends boolean = false>(options: Options<ChatAgentUpdateChatConfigData, ThrowOnError>) => (options.client ?? client).post<ChatAgentUpdateChatConfigResponses, ChatAgentUpdateChatConfigErrors, ThrowOnError>({
|
|
301
|
+
url: '/api/mtmai/chat/config',
|
|
302
|
+
...options,
|
|
303
|
+
headers: {
|
|
304
|
+
'Content-Type': 'application/json',
|
|
305
|
+
...options.headers
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Get Providers
|
|
311
|
+
*
|
|
312
|
+
* 获取所有可用的AI提供商
|
|
313
|
+
*/
|
|
314
|
+
export const chatAgentGetProviders = <ThrowOnError extends boolean = false>(options?: Options<ChatAgentGetProvidersData, ThrowOnError>) => (options?.client ?? client).get<ChatAgentGetProvidersResponses, unknown, ThrowOnError>({ url: '/api/mtmai/chat/providers', ...options });
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Validate Api Key
|
|
318
|
+
*
|
|
319
|
+
* 验证API密钥
|
|
320
|
+
*/
|
|
321
|
+
export const chatAgentValidateApiKey = <ThrowOnError extends boolean = false>(options: Options<ChatAgentValidateApiKeyData, ThrowOnError>) => (options.client ?? client).post<ChatAgentValidateApiKeyResponses, ChatAgentValidateApiKeyErrors, ThrowOnError>({
|
|
322
|
+
url: '/api/mtmai/chat/validate-key',
|
|
323
|
+
...options,
|
|
324
|
+
headers: {
|
|
325
|
+
'Content-Type': 'application/json',
|
|
326
|
+
...options.headers
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Export Config
|
|
332
|
+
*
|
|
333
|
+
* 导出AI配置
|
|
334
|
+
*/
|
|
335
|
+
export const chatAgentExportConfig = <ThrowOnError extends boolean = false>(options?: Options<ChatAgentExportConfigData, ThrowOnError>) => (options?.client ?? client).get<ChatAgentExportConfigResponses, unknown, ThrowOnError>({ url: '/api/mtmai/chat/export', ...options });
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Import Config
|
|
339
|
+
*
|
|
340
|
+
* 导入AI配置
|
|
341
|
+
*/
|
|
342
|
+
export const chatAgentImportConfig = <ThrowOnError extends boolean = false>(options: Options<ChatAgentImportConfigData, ThrowOnError>) => (options.client ?? client).post<ChatAgentImportConfigResponses, ChatAgentImportConfigErrors, ThrowOnError>({
|
|
343
|
+
url: '/api/mtmai/chat/import',
|
|
344
|
+
...options,
|
|
345
|
+
headers: {
|
|
346
|
+
'Content-Type': 'application/json',
|
|
347
|
+
...options.headers
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Chat
|
|
353
|
+
*
|
|
354
|
+
* 处理聊天请求 - 使用新的Agent架构
|
|
355
|
+
*/
|
|
356
|
+
export const chatAgentChat = <ThrowOnError extends boolean = false>(options: Options<ChatAgentChatData, ThrowOnError>) => (options.client ?? client).post<ChatAgentChatResponses, ChatAgentChatErrors, ThrowOnError>({
|
|
357
|
+
url: '/api/mtmai/chat/chat',
|
|
358
|
+
...options,
|
|
359
|
+
headers: {
|
|
360
|
+
'Content-Type': 'application/json',
|
|
361
|
+
...options.headers
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* List Items
|
|
367
|
+
*
|
|
368
|
+
* List all items in the database.
|
|
369
|
+
*
|
|
370
|
+
* Returns a list of items, with pagination support.
|
|
371
|
+
*/
|
|
372
|
+
export const listItems = <ThrowOnError extends boolean = false>(options?: Options<ListItemsData, ThrowOnError>) => (options?.client ?? client).get<ListItemsResponses, ListItemsErrors, ThrowOnError>({ url: '/items/', ...options });
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Create Item
|
|
376
|
+
*
|
|
377
|
+
* Create a new item in the database.
|
|
378
|
+
*
|
|
379
|
+
* Returns the created item with its assigned ID.
|
|
380
|
+
*/
|
|
381
|
+
export const createItem = <ThrowOnError extends boolean = false>(options: Options<CreateItemData, ThrowOnError>) => (options.client ?? client).post<CreateItemResponses, CreateItemErrors, ThrowOnError>({
|
|
382
|
+
url: '/items/',
|
|
383
|
+
...options,
|
|
384
|
+
headers: {
|
|
385
|
+
'Content-Type': 'application/json',
|
|
386
|
+
...options.headers
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Delete Item
|
|
392
|
+
*
|
|
393
|
+
* Delete an item from the database.
|
|
394
|
+
*
|
|
395
|
+
* Raises a 404 error if the item does not exist.
|
|
396
|
+
*/
|
|
397
|
+
export const deleteItem = <ThrowOnError extends boolean = false>(options: Options<DeleteItemData, ThrowOnError>) => (options.client ?? client).delete<DeleteItemResponses, DeleteItemErrors, ThrowOnError>({ url: '/items/{item_id}', ...options });
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* Read Item
|
|
401
|
+
*
|
|
402
|
+
* Get a specific item by its ID.
|
|
403
|
+
*
|
|
404
|
+
* Raises a 404 error if the item does not exist.
|
|
405
|
+
*/
|
|
406
|
+
export const getItem = <ThrowOnError extends boolean = false>(options: Options<GetItemData, ThrowOnError>) => (options.client ?? client).get<GetItemResponses, GetItemErrors, ThrowOnError>({ url: '/items/{item_id}', ...options });
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* Update Item
|
|
410
|
+
*
|
|
411
|
+
* Update an existing item.
|
|
412
|
+
*
|
|
413
|
+
* Raises a 404 error if the item does not exist.
|
|
414
|
+
*/
|
|
415
|
+
export const updateItem = <ThrowOnError extends boolean = false>(options: Options<UpdateItemData, ThrowOnError>) => (options.client ?? client).put<UpdateItemResponses, UpdateItemErrors, ThrowOnError>({
|
|
416
|
+
url: '/items/{item_id}',
|
|
417
|
+
...options,
|
|
418
|
+
headers: {
|
|
419
|
+
'Content-Type': 'application/json',
|
|
420
|
+
...options.headers
|
|
421
|
+
}
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Search Items
|
|
426
|
+
*
|
|
427
|
+
* Search for items with various filters.
|
|
428
|
+
*
|
|
429
|
+
* Returns a list of items that match the search criteria.
|
|
430
|
+
*/
|
|
431
|
+
export const searchItems = <ThrowOnError extends boolean = false>(options?: Options<SearchItemsData, ThrowOnError>) => (options?.client ?? client).get<SearchItemsResponses, SearchItemsErrors, ThrowOnError>({ url: '/items/search/', ...options });
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Agentrun
|
|
435
|
+
*/
|
|
436
|
+
export const agentsAgentrun = <ThrowOnError extends boolean = false>(options: Options<AgentsAgentrunData, ThrowOnError>) => (options.client ?? client).post<AgentsAgentrunResponses, AgentsAgentrunErrors, ThrowOnError>({
|
|
437
|
+
url: '/api/mtmai/agents/agent_run',
|
|
438
|
+
...options,
|
|
439
|
+
headers: {
|
|
440
|
+
'Content-Type': 'application/json',
|
|
441
|
+
...options.headers
|
|
442
|
+
}
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Start Napcat Sandbox
|
|
447
|
+
*
|
|
448
|
+
* 启动 Napcat 沙箱(同步返回结果)
|
|
449
|
+
*/
|
|
450
|
+
export const sandboxStartNapcatSandbox = <ThrowOnError extends boolean = false>(options: Options<SandboxStartNapcatSandboxData, ThrowOnError>) => (options.client ?? client).post<SandboxStartNapcatSandboxResponses, SandboxStartNapcatSandboxErrors, ThrowOnError>({
|
|
451
|
+
url: '/api/mtmai/sandbox/',
|
|
452
|
+
...options,
|
|
453
|
+
headers: {
|
|
454
|
+
'Content-Type': 'application/json',
|
|
455
|
+
...options.headers
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Check Sandbox Status
|
|
461
|
+
*
|
|
462
|
+
* 检查指定沙盒的状态
|
|
463
|
+
*/
|
|
464
|
+
export const sandboxCheckSandboxStatus = <ThrowOnError extends boolean = false>(options: Options<SandboxCheckSandboxStatusData, ThrowOnError>) => (options.client ?? client).post<SandboxCheckSandboxStatusResponses, SandboxCheckSandboxStatusErrors, ThrowOnError>({
|
|
465
|
+
url: '/api/mtmai/sandbox/check-status',
|
|
466
|
+
...options,
|
|
467
|
+
headers: {
|
|
468
|
+
'Content-Type': 'application/json',
|
|
469
|
+
...options.headers
|
|
470
|
+
}
|
|
471
|
+
});
|