mtmsdk 0.0.41 → 0.0.43
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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,MAAM,MAAM,mBAAmB,G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,MAAM,WAAW;;;;;;;;;;;;;;;;iBAgBtB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAGrD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAC7C,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;IAC9C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B"}
|
package/dist/types/index.js
CHANGED
|
@@ -1,2 +1,28 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export * from "./database.schemas";
|
|
3
|
+
// Type Aliases for RPC Return Values and Zod Schemas are now in rpc.schemas.ts
|
|
4
|
+
export * from "./rpc.schemas";
|
|
5
|
+
// export type LinkedAccount = Database["public"]["Tables"]["linked_accounts"]["Row"] & {
|
|
6
|
+
// platform?: Database["public"]["Tables"]["platforms"]["Row"] | null;
|
|
7
|
+
// };
|
|
8
|
+
/**
|
|
9
|
+
* TrafficLog Schema
|
|
10
|
+
*/
|
|
11
|
+
export const zTrafficLog = z.object({
|
|
12
|
+
id: z.string(),
|
|
13
|
+
method: z.string(),
|
|
14
|
+
scheme: z.string(),
|
|
15
|
+
host: z.string(),
|
|
16
|
+
path: z.string(),
|
|
17
|
+
status: z.number(),
|
|
18
|
+
size: z.string(),
|
|
19
|
+
duration: z.string(),
|
|
20
|
+
timestamp: z.string(),
|
|
21
|
+
tags: z.array(z.string()),
|
|
22
|
+
request_headers: z.record(z.string(), z.any()).optional(),
|
|
23
|
+
response_headers: z.record(z.string(), z.any()).optional(),
|
|
24
|
+
request_body: z.string().optional(),
|
|
25
|
+
response_body: z.string().optional(),
|
|
26
|
+
client_ip: z.string().optional(),
|
|
27
|
+
});
|
|
2
28
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,cAAc,oBAAoB,CAAC;AAiBnC,+EAA+E;AAC/E,cAAc,eAAe,CAAC;AA6C9B,yFAAyF;AACzF,wEAAwE;AACxE,KAAK;AAQL;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzD,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const publicServerStatusSchema: z.ZodEnum<{
|
|
3
|
+
running: "running";
|
|
4
|
+
starting: "starting";
|
|
5
|
+
stopping: "stopping";
|
|
6
|
+
stopped: "stopped";
|
|
7
|
+
offline: "offline";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const publicServerTypeSchema: z.ZodEnum<{
|
|
10
|
+
manual: "manual";
|
|
11
|
+
worker: "worker";
|
|
12
|
+
ssh: "ssh";
|
|
13
|
+
cloud: "cloud";
|
|
14
|
+
}>;
|
|
15
|
+
export declare const publicServerRuntimeSchema: z.ZodEnum<{
|
|
16
|
+
docker: "docker";
|
|
17
|
+
executable: "executable";
|
|
18
|
+
container: "container";
|
|
19
|
+
}>;
|
|
20
|
+
import type { Database } from "./database.types";
|
|
21
|
+
type SBFunctions = Database["public"]["Functions"];
|
|
22
|
+
export type ServerInstanceGetReturns = SBFunctions["server_instance_get"]["Returns"][number];
|
|
23
|
+
export type ServerInstanceListReturns = SBFunctions["server_instance_list"]["Returns"][number];
|
|
24
|
+
export type ComputeNodeListReturns = SBFunctions["compute_node_list"]["Returns"][number];
|
|
25
|
+
export type BrowserListReturns = SBFunctions["browser_list"]["Returns"][number];
|
|
26
|
+
export type AuditProjectListReturns = SBFunctions["audit_project_list"]["Returns"][number];
|
|
27
|
+
export type ProxyListReturns = SBFunctions["proxy_list"]["Returns"][number];
|
|
28
|
+
type Relaxed<T> = {
|
|
29
|
+
[P in keyof T]?: T[P] | null;
|
|
30
|
+
} & {
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* server_instance_get 函数返回值的 Schema
|
|
35
|
+
* 统一为包含所有表字段及计算后的 status
|
|
36
|
+
*/
|
|
37
|
+
export declare const serverInstanceGetResultSchema: z.ZodType<Relaxed<ServerInstanceGetReturns>>;
|
|
38
|
+
/**
|
|
39
|
+
* server_instance_list 函数返回的数组项 Schema
|
|
40
|
+
* 该函数返回 TABLE 类型
|
|
41
|
+
*/
|
|
42
|
+
export declare const serverInstanceListItemSchema: z.ZodType<Relaxed<ServerInstanceListReturns>>;
|
|
43
|
+
/**
|
|
44
|
+
* compute_node_list 函数返回值的 Item Schema
|
|
45
|
+
* 允许部分字段为 null (宽松模式)
|
|
46
|
+
*/
|
|
47
|
+
export declare const computeNodeListItemSchema: z.ZodType<Relaxed<ComputeNodeListReturns>>;
|
|
48
|
+
/**
|
|
49
|
+
* browser_list 函数返回值的 Item Schema
|
|
50
|
+
* 包含 table 字段及计算字段 (vnc_url, is_running 等)
|
|
51
|
+
*/
|
|
52
|
+
export declare const browserListItemSchema: z.ZodType<Relaxed<BrowserListReturns>>;
|
|
53
|
+
/**
|
|
54
|
+
* audit_project_list 返回值的 Item Schema
|
|
55
|
+
* 复用 publicAuditProjectsRowSchema (Generated)
|
|
56
|
+
*/
|
|
57
|
+
export declare const auditProjectListItemSchema: z.ZodType<Relaxed<AuditProjectListReturns>>;
|
|
58
|
+
/**
|
|
59
|
+
* proxy_list 返回值的 Item Schema
|
|
60
|
+
* 复用 publicProxiesRowSchema (Generated)
|
|
61
|
+
*/
|
|
62
|
+
export declare const proxyListItemSchema: z.ZodType<Relaxed<ProxyListReturns>>;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=rpc.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.schemas.d.ts","sourceRoot":"","sources":["../../src/types/rpc.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,wBAAwB;;;;;;EAA2B,CAAC;AAGjE,eAAO,MAAM,sBAAsB;;;;;EAA+C,CAAC;AACnF,eAAO,MAAM,yBAAyB;;;;EAAgD,CAAC;AAEvF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjD,KAAK,WAAW,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,CAAC;AAEnD,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAAC,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7F,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAC,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/F,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACzF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,WAAW,CAAC,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAC3F,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAI5E,KAAK,OAAO,CAAC,CAAC,IAAI;KACf,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;CAC7B,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnB;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC,CA2BvE,CAAC;AAEjB;;;GAGG;AAEH,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAyBrF,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAa/E,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAqBvE,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,uBAAuB,CAAC,CACe,CAAC;AAEnG;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,CACgB,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { jsonSchema, publicAuditProjectsRowSchema, publicComputeNodeStatusSchema, publicProxiesRowSchema, publicWorkerStatusSchema, } from "./database.schemas";
|
|
3
|
+
export const publicServerStatusSchema = publicWorkerStatusSchema;
|
|
4
|
+
// Manually defined schemas for columns that converted from Enum to Text+Check
|
|
5
|
+
export const publicServerTypeSchema = z.enum(["worker", "manual", "ssh", "cloud"]);
|
|
6
|
+
export const publicServerRuntimeSchema = z.enum(["docker", "executable", "container"]);
|
|
7
|
+
/**
|
|
8
|
+
* server_instance_get 函数返回值的 Schema
|
|
9
|
+
* 统一为包含所有表字段及计算后的 status
|
|
10
|
+
*/
|
|
11
|
+
export const serverInstanceGetResultSchema = z
|
|
12
|
+
.object({
|
|
13
|
+
id: z.string(),
|
|
14
|
+
name: z.string().nullable().optional(),
|
|
15
|
+
updated_at: z.string().nullable().optional(),
|
|
16
|
+
config: z
|
|
17
|
+
.lazy(() => jsonSchema)
|
|
18
|
+
.nullable()
|
|
19
|
+
.optional(),
|
|
20
|
+
status: publicWorkerStatusSchema.nullable().optional(),
|
|
21
|
+
host_id: z.string().nullable().optional(),
|
|
22
|
+
// is_public removed
|
|
23
|
+
state: z
|
|
24
|
+
.lazy(() => jsonSchema)
|
|
25
|
+
.nullable()
|
|
26
|
+
.optional(),
|
|
27
|
+
created_at: z.string().nullable().optional(),
|
|
28
|
+
user_id: z.string().nullable().optional(),
|
|
29
|
+
container_id: z.string().nullable().optional(),
|
|
30
|
+
// is_managed removed
|
|
31
|
+
// public_domain removed
|
|
32
|
+
// public_domain removed
|
|
33
|
+
type: publicServerTypeSchema.nullable().optional(),
|
|
34
|
+
runtime: publicServerRuntimeSchema.nullable().optional(),
|
|
35
|
+
is_shared: z.boolean().nullable().optional(),
|
|
36
|
+
})
|
|
37
|
+
.passthrough(); // Allow unknown keys at runtime, but TS will constrain known keys.
|
|
38
|
+
/**
|
|
39
|
+
* server_instance_list 函数返回的数组项 Schema
|
|
40
|
+
* 该函数返回 TABLE 类型
|
|
41
|
+
*/
|
|
42
|
+
export const serverInstanceListItemSchema = z.object({
|
|
43
|
+
id: z.string(),
|
|
44
|
+
name: z.string().nullable().optional(),
|
|
45
|
+
updated_at: z.string().nullable().optional(),
|
|
46
|
+
config: z
|
|
47
|
+
.lazy(() => jsonSchema)
|
|
48
|
+
.nullable()
|
|
49
|
+
.optional(),
|
|
50
|
+
status: publicWorkerStatusSchema.nullable().optional(),
|
|
51
|
+
host_id: z.string().nullable().optional(),
|
|
52
|
+
// is_public removed as it is not in servers table
|
|
53
|
+
state: z
|
|
54
|
+
.lazy(() => jsonSchema)
|
|
55
|
+
.nullable()
|
|
56
|
+
.optional(),
|
|
57
|
+
latest_pull_at: z.string().nullable().optional(),
|
|
58
|
+
created_at: z.string().nullable().optional(),
|
|
59
|
+
user_id: z.string().nullable().optional(),
|
|
60
|
+
container_id: z.string().nullable().optional(),
|
|
61
|
+
// is_managed removed
|
|
62
|
+
// public_domain removed
|
|
63
|
+
// public_domain removed
|
|
64
|
+
type: publicServerTypeSchema.nullable().optional(),
|
|
65
|
+
runtime: publicServerRuntimeSchema.nullable().optional(),
|
|
66
|
+
is_shared: z.boolean().nullable().optional(),
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* compute_node_list 函数返回值的 Item Schema
|
|
70
|
+
* 允许部分字段为 null (宽松模式)
|
|
71
|
+
*/
|
|
72
|
+
export const computeNodeListItemSchema = z.object({
|
|
73
|
+
auth_secret: z.string().nullable().optional(),
|
|
74
|
+
host: z.string().nullable().optional(),
|
|
75
|
+
id: z.string(),
|
|
76
|
+
is_public: z.boolean().nullable().optional(),
|
|
77
|
+
name: z.string().nullable().optional(),
|
|
78
|
+
port: z.number().nullable().optional(),
|
|
79
|
+
provider: z.string().nullable().optional(),
|
|
80
|
+
status: publicComputeNodeStatusSchema.nullable().optional(),
|
|
81
|
+
updated_at: z.string().nullable().optional(),
|
|
82
|
+
user_id: z.string().nullable().optional(),
|
|
83
|
+
username: z.string().nullable().optional(),
|
|
84
|
+
worker_count: z.number().nullable().optional(),
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* browser_list 函数返回值的 Item Schema
|
|
88
|
+
* 包含 table 字段及计算字段 (vnc_url, is_running 等)
|
|
89
|
+
*/
|
|
90
|
+
export const browserListItemSchema = z.object({
|
|
91
|
+
id: z.string(),
|
|
92
|
+
created_at: z.string().nullable().optional(),
|
|
93
|
+
updated_at: z.string().nullable().optional(),
|
|
94
|
+
title: z.string().nullable().optional(),
|
|
95
|
+
description: z.string().nullable().optional(),
|
|
96
|
+
profile_id: z.string().nullable().optional(),
|
|
97
|
+
provider: z.string().nullable().optional(),
|
|
98
|
+
provider_config: z
|
|
99
|
+
.lazy(() => jsonSchema)
|
|
100
|
+
.nullable()
|
|
101
|
+
.optional(),
|
|
102
|
+
config: z
|
|
103
|
+
.lazy(() => jsonSchema)
|
|
104
|
+
.nullable()
|
|
105
|
+
.optional(),
|
|
106
|
+
sandbox_id: z.string().nullable().optional(),
|
|
107
|
+
// vnc_url: z.string().nullable().optional(),
|
|
108
|
+
// browser_api_url: z.string().nullable().optional(),
|
|
109
|
+
worker_name: z.string().nullable().optional(),
|
|
110
|
+
is_running: z.boolean().nullable().optional(),
|
|
111
|
+
});
|
|
112
|
+
/**
|
|
113
|
+
* audit_project_list 返回值的 Item Schema
|
|
114
|
+
* 复用 publicAuditProjectsRowSchema (Generated)
|
|
115
|
+
*/
|
|
116
|
+
export const auditProjectListItemSchema = publicAuditProjectsRowSchema.partial();
|
|
117
|
+
/**
|
|
118
|
+
* proxy_list 返回值的 Item Schema
|
|
119
|
+
* 复用 publicProxiesRowSchema (Generated)
|
|
120
|
+
*/
|
|
121
|
+
export const proxyListItemSchema = publicProxiesRowSchema.partial();
|
|
122
|
+
//# sourceMappingURL=rpc.schemas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.schemas.js","sourceRoot":"","sources":["../../src/types/rpc.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACH,UAAU,EACV,4BAA4B,EAC5B,6BAA6B,EAC7B,sBAAsB,EACtB,wBAAwB,GAC3B,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,wBAAwB,GAAG,wBAAwB,CAAC;AAEjE,8EAA8E;AAC9E,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;AACnF,MAA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
|
"keywords": [],
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.43",
|
|
7
7
|
"author": "MTM Team",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "bun run tsc",
|
|
10
|
-
"typecheck": "
|
|
10
|
+
"typecheck": "tsc --noEmit",
|
|
11
11
|
"lint": "echo 'lint skipped'",
|
|
12
12
|
"format": "echo 'format skipped'",
|
|
13
|
-
"check": "
|
|
13
|
+
"check": "bun run typecheck",
|
|
14
14
|
"clean": "rm -rf dist",
|
|
15
|
-
"gen": "bun gen:openapi:sb && bun gen:openapi:gomtm && bun gen:openapi:mtmai && bun gen:openapi:mtgate && bun gen:openapi:hatchet && bun gen:openapi:mtmng
|
|
15
|
+
"gen": "bun gen:openapi:sb && bun gen:openapi:gomtm && bun gen:openapi:mtmai && bun gen:openapi:mtgate && bun gen:openapi:hatchet && bun gen:openapi:mtmng",
|
|
16
16
|
"gen:openapi:gomtm": "openapi-ts --file=openapi-ts.gomtm.config.ts",
|
|
17
17
|
"gen:openapi:hatchet": "openapi-ts --file=openapi-ts.hatchet.config.ts",
|
|
18
18
|
"gen:openapi:mtgate": "openapi-ts --file=openapi-ts.mtgate.config.ts",
|
|
19
19
|
"gen:openapi:mtmai": "openapi-ts --file=openapi-ts.mtmai.config.ts",
|
|
20
20
|
"gen:openapi:sb": "openapi-ts --file=openapi-ts.sb.config.ts",
|
|
21
21
|
"gen:openapi:mtmng": "openapi-ts --file=openapi-ts.sbmng.config.ts",
|
|
22
|
-
"gen:openapi:opencode": "openapi-ts --file=openapi-ts.opencode.config.ts",
|
|
23
22
|
"prepublishOnly": "bun run clean && bun run build"
|
|
24
23
|
},
|
|
25
24
|
"type": "module",
|
|
@@ -38,15 +37,15 @@
|
|
|
38
37
|
}
|
|
39
38
|
},
|
|
40
39
|
"dependencies": {
|
|
40
|
+
"@noble/ed25519": "3.0.0",
|
|
41
41
|
"@supabase-cache-helpers/postgrest-core": "^0.12.4",
|
|
42
|
-
"@supabase/postgrest-js": "
|
|
43
|
-
"@supabase/ssr": "
|
|
44
|
-
"@tanstack/react-query": "
|
|
45
|
-
"@tanstack/react-query-next-experimental": "
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"zustand": "^5"
|
|
42
|
+
"@supabase/postgrest-js": "catalog:",
|
|
43
|
+
"@supabase/ssr": "catalog:",
|
|
44
|
+
"@tanstack/react-query": "catalog:",
|
|
45
|
+
"@tanstack/react-query-next-experimental": "catalog:",
|
|
46
|
+
|
|
47
|
+
"zod": "catalog:",
|
|
48
|
+
"zustand": "catalog:"
|
|
50
49
|
},
|
|
51
50
|
"description": "SDK and API client for MTM project with OpenAPI generated types",
|
|
52
51
|
"devDependencies": {
|
|
@@ -56,46 +55,56 @@
|
|
|
56
55
|
"@hono/zod-openapi": "^1.1",
|
|
57
56
|
"@types/mime-types": "^2.1.4",
|
|
58
57
|
"@types/textract": "^2.4.5",
|
|
59
|
-
"supabase": "
|
|
58
|
+
"supabase": "catalog:",
|
|
59
|
+
"supazod": "4.5.0"
|
|
60
60
|
},
|
|
61
61
|
"exports": {
|
|
62
|
-
".":
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
"types":
|
|
69
|
-
|
|
70
|
-
"./src/index.ts"
|
|
71
|
-
]
|
|
62
|
+
".": "./src/index.ts",
|
|
63
|
+
"./*.ts": {
|
|
64
|
+
"types": "./src/*.ts",
|
|
65
|
+
"default": "./src/*.ts"
|
|
66
|
+
},
|
|
67
|
+
"./*.tsx": {
|
|
68
|
+
"types": "./src/*.tsx",
|
|
69
|
+
"default": "./src/*.tsx"
|
|
72
70
|
},
|
|
73
71
|
"./*": {
|
|
74
|
-
"
|
|
75
|
-
"./dist/*.js",
|
|
72
|
+
"types": [
|
|
76
73
|
"./src/*.ts",
|
|
77
74
|
"./src/*.tsx",
|
|
78
75
|
"./src/*/index.ts",
|
|
79
76
|
"./src/*/index.tsx",
|
|
80
|
-
"./src
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
"./dist/*"
|
|
84
|
-
]
|
|
77
|
+
"./src/index.ts"
|
|
78
|
+
],
|
|
79
|
+
"default": "./src/*"
|
|
85
80
|
}
|
|
86
81
|
},
|
|
87
82
|
"files": [
|
|
88
|
-
"dist"
|
|
83
|
+
"dist",
|
|
84
|
+
"src"
|
|
89
85
|
],
|
|
90
86
|
"peerDependencies": {
|
|
91
|
-
"@supabase/supabase-js": "
|
|
92
|
-
"ai": "
|
|
93
|
-
"hono": "
|
|
94
|
-
"next": "
|
|
95
|
-
"react": "
|
|
96
|
-
"react-dom": "
|
|
87
|
+
"@supabase/supabase-js": "catalog:",
|
|
88
|
+
"ai": "catalog:",
|
|
89
|
+
"hono": "catalog:",
|
|
90
|
+
"next": "catalog:",
|
|
91
|
+
"react": "catalog:",
|
|
92
|
+
"react-dom": "catalog:"
|
|
97
93
|
},
|
|
98
94
|
"publishConfig": {
|
|
99
|
-
"access": "public"
|
|
95
|
+
"access": "public",
|
|
96
|
+
"exports": {
|
|
97
|
+
".": {
|
|
98
|
+
"types": "./dist/index.d.ts",
|
|
99
|
+
"import": "./dist/index.js"
|
|
100
|
+
},
|
|
101
|
+
"./*": {
|
|
102
|
+
"types": "./dist/*.d.ts",
|
|
103
|
+
"import": "./dist/*.js"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"other":{
|
|
108
|
+
"jose": "^6.1.0"
|
|
100
109
|
}
|
|
101
110
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { Session } from "../../adk/core/models/Session";
|
|
2
|
+
export class AdkClient {
|
|
3
|
+
public url?: string;
|
|
4
|
+
constructor(url?: string) {
|
|
5
|
+
this.url = url;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const createAdkSession = async (
|
|
10
|
+
client: AdkClient,
|
|
11
|
+
agentName: string,
|
|
12
|
+
session: Session,
|
|
13
|
+
user?: string,
|
|
14
|
+
) => {
|
|
15
|
+
const endpoint = `${client.url}/apps/${agentName}/users/${user || "user"}/sessions`;
|
|
16
|
+
const res = await fetch(endpoint, {
|
|
17
|
+
method: "POST",
|
|
18
|
+
headers: {
|
|
19
|
+
"Content-Type": "application/json",
|
|
20
|
+
},
|
|
21
|
+
body: JSON.stringify(session),
|
|
22
|
+
});
|
|
23
|
+
const data = await res.json();
|
|
24
|
+
return data as Session;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const listSessions = async (client: AdkClient,agentName:string, user:string)=>{
|
|
28
|
+
const endpoint = `${client.url}/apps/${agentName}/users/${user || "user"}/sessions`;
|
|
29
|
+
const res = await fetch(endpoint, {
|
|
30
|
+
headers: {
|
|
31
|
+
"Content-Type": "application/json",
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
const data = await res.json();
|
|
35
|
+
return data as Session[]
|
|
36
|
+
}
|
|
37
|
+
export const getSession = async (client: AdkClient,agentName:string, user:string,sessionId:string)=>{
|
|
38
|
+
const endpoint = `${client.url}/apps/${agentName}/users/${user || "user"}/sessions/${sessionId}`;
|
|
39
|
+
const res = await fetch(endpoint, {
|
|
40
|
+
headers: {
|
|
41
|
+
"Content-Type": "application/json",
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
const data = await res.json();
|
|
45
|
+
return data as Session
|
|
46
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export const TOOL_ICONS: { [key: string]: string } = {
|
|
19
|
+
'google_search': 'search',
|
|
20
|
+
'EnterpriseWebSearchTool': 'web',
|
|
21
|
+
'VertexAiSearchTool': 'search',
|
|
22
|
+
'FilesRetrieval': 'find_in_page',
|
|
23
|
+
'load_memory': 'memory',
|
|
24
|
+
'preload_memory': 'memory',
|
|
25
|
+
'url_context': 'link',
|
|
26
|
+
'VertexAiRagRetrieval': 'find_in_page',
|
|
27
|
+
'exit_loop': 'sync',
|
|
28
|
+
'get_user_choice': 'how_to_reg',
|
|
29
|
+
'load_artifacts': 'image',
|
|
30
|
+
'LongRunningFunctionTool': 'data_object'
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export function getToolIcon(toolName: string, toolType?: string): string {
|
|
34
|
+
// For Agent Tools, return smart_toy icon
|
|
35
|
+
if (toolType === 'Agent Tool') {
|
|
36
|
+
return 'smart_toy';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// For Built-in tools, use the specific icon mapping
|
|
40
|
+
if (toolType === 'Built-in tool') {
|
|
41
|
+
return TOOL_ICONS[toolName] || 'build';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// For Function tools, return data_object
|
|
45
|
+
if (toolType === 'Function tool') {
|
|
46
|
+
return 'data_object';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Default fallback
|
|
50
|
+
return 'build';
|
|
51
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export interface AgentNode {
|
|
19
|
+
isRoot: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
agent_class: string;
|
|
22
|
+
model: string;
|
|
23
|
+
instruction: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
output_key?: string;
|
|
26
|
+
max_iterations?: number;
|
|
27
|
+
sub_agents: AgentNode[];
|
|
28
|
+
tools?: ToolNode[];
|
|
29
|
+
callbacks?: CallbackNode[];
|
|
30
|
+
config_path?: string;
|
|
31
|
+
isAgentTool?: boolean;
|
|
32
|
+
skip_summarization?: boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface ToolNode {
|
|
36
|
+
name: string;
|
|
37
|
+
toolType: string;
|
|
38
|
+
toolAgentName?: string;
|
|
39
|
+
args?: {[key: string]: any};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface CallbackNode {
|
|
43
|
+
name: string;
|
|
44
|
+
type: 'before_agent' | 'after_agent' | 'before_model' | 'after_model' | 'before_tool' | 'after_tool';
|
|
45
|
+
code?: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface YamlConfig {
|
|
50
|
+
name: string;
|
|
51
|
+
model: string;
|
|
52
|
+
agent_class: string;
|
|
53
|
+
description?: string;
|
|
54
|
+
instruction?: string;
|
|
55
|
+
max_iterations?: number;
|
|
56
|
+
sub_agents: any;
|
|
57
|
+
tools?: any[];
|
|
58
|
+
callbacks?: any[];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface DiagramNode {
|
|
62
|
+
id: string;
|
|
63
|
+
type: 'agent' | 'tool';
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
label: string;
|
|
67
|
+
color: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
data: AgentNode | ToolNode;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface DiagramConnection {
|
|
73
|
+
id: string;
|
|
74
|
+
fromNodeId: string;
|
|
75
|
+
toNodeId: string;
|
|
76
|
+
fromX: number;
|
|
77
|
+
fromY: number;
|
|
78
|
+
toX: number;
|
|
79
|
+
toY: number;
|
|
80
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
export declare interface AgentRunRequest {
|
|
19
|
+
appName: string;
|
|
20
|
+
userId: string;
|
|
21
|
+
sessionId: string | undefined;
|
|
22
|
+
newMessage: {
|
|
23
|
+
parts: Array<{
|
|
24
|
+
text?: string,
|
|
25
|
+
'function_response'?: {id?: string; name?: string; response?: any}
|
|
26
|
+
}>,
|
|
27
|
+
role: string,
|
|
28
|
+
};
|
|
29
|
+
functionCallEventId?: string;
|
|
30
|
+
streaming?: boolean;
|
|
31
|
+
stateDelta?: any;
|
|
32
|
+
invocationId?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Google LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @interface EvalMetric
|
|
20
|
+
* @description Represents a single evaluation metric and its associated
|
|
21
|
+
* threshold.
|
|
22
|
+
*/
|
|
23
|
+
export declare interface EvalMetric {
|
|
24
|
+
metricName: string;
|
|
25
|
+
threshold: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export const DEFAULT_EVAL_METRICS: EvalMetric[] = [
|
|
29
|
+
{
|
|
30
|
+
metricName: 'tool_trajectory_avg_score',
|
|
31
|
+
threshold: 1,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
metricName: 'response_match_score',
|
|
35
|
+
threshold: 0.7,
|
|
36
|
+
}
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
export declare interface Invocation {
|
|
40
|
+
invocationId: string;
|
|
41
|
+
userContent: Content;
|
|
42
|
+
finalResponse?: Content;
|
|
43
|
+
intermediateData?: IntermediateData;
|
|
44
|
+
creationTimestamp: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare interface Content {
|
|
48
|
+
parts?: any[];
|
|
49
|
+
role?: string|null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export declare interface IntermediateData {
|
|
53
|
+
toolUses: any[];
|
|
54
|
+
intermediateResponses: any[];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare interface EvalCase {
|
|
58
|
+
evalId: string;
|
|
59
|
+
conversation: Invocation[];
|
|
60
|
+
sessionInput: any;
|
|
61
|
+
creationTimestamp: number;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare interface EvalSet {
|
|
65
|
+
evalSetId: string;
|
|
66
|
+
name?: string;
|
|
67
|
+
description?: string;
|
|
68
|
+
evalCases: EvalCase[];
|
|
69
|
+
creationTimestamp: number;
|
|
70
|
+
}
|