mtmsdk 0.0.50 → 0.0.52
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/gomtmapi/@tanstack/react-query.gen.d.ts +1 -13
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +1 -37
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi/index.d.ts +2 -2
- package/dist/gomtmapi/index.d.ts.map +1 -1
- package/dist/gomtmapi/index.js +1 -1
- package/dist/gomtmapi/index.js.map +1 -1
- package/dist/gomtmapi/schemas.gen.d.ts +0 -57
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +0 -60
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +1 -13
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +0 -26
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +0 -94
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +0 -62
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +0 -51
- package/dist/gomtmapi/zod.gen.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/lib/schema.d.ts +1 -11
- package/dist/lib/schema.d.ts.map +1 -1
- package/dist/lib/schema.js +0 -9
- package/dist/lib/schema.js.map +1 -1
- package/dist/mtgate_api/client.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client.gen.js +1 -1
- package/dist/mtgate_api/client.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/sdk.gen.d.ts +0 -8
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +1 -29
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +1 -200
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/openclaw/gateway.d.ts.map +1 -1
- package/dist/openclaw/gateway.js +1 -1
- package/dist/openclaw/gateway.js.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.d.ts +39 -65
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +19 -65
- 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 +6 -95
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +7 -139
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +7 -17
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +10 -32
- package/dist/sbmng/sdk.gen.js.map +1 -1
- package/dist/sbmng/types.gen.d.ts +41 -157
- package/dist/sbmng/types.gen.d.ts.map +1 -1
- package/dist/supabase/supabase-client.d.ts +85 -181
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +170 -362
- package/dist/supabase/supabase.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/build-query-opts.d.ts +6 -2
- package/dist/supabase/use-sb-query/build-query-opts.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/build-query-opts.js +8 -4
- package/dist/supabase/use-sb-query/build-query-opts.js.map +1 -1
- package/dist/supabase/use-sb-query/use-query.d.ts +9 -6
- package/dist/supabase/use-sb-query/use-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-query.js.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts +25 -17
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js +48 -26
- package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
- package/dist/types/database.schemas.d.ts +129 -222
- package/dist/types/database.schemas.d.ts.map +1 -1
- package/dist/types/database.schemas.js +112 -124
- package/dist/types/database.schemas.js.map +1 -1
- package/dist/types/database.types.d.ts +85 -181
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +30 -59
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +16 -3
- package/dist/types/index.js.map +1 -1
- package/package.json +105 -110
- package/src/cloud-account/platform-configs.ts +73 -73
- package/src/gomtmapi/@tanstack/react-query.gen.ts +537 -575
- package/src/gomtmapi/client/client.gen.ts +311 -311
- package/src/gomtmapi/client/index.ts +25 -25
- package/src/gomtmapi/client/types.gen.ts +241 -241
- package/src/gomtmapi/client/utils.gen.ts +332 -332
- package/src/gomtmapi/client.gen.ts +16 -16
- package/src/gomtmapi/core/auth.gen.ts +42 -42
- package/src/gomtmapi/core/bodySerializer.gen.ts +100 -100
- package/src/gomtmapi/core/params.gen.ts +176 -176
- package/src/gomtmapi/core/pathSerializer.gen.ts +181 -181
- package/src/gomtmapi/core/queryKeySerializer.gen.ts +136 -136
- package/src/gomtmapi/core/serverSentEvents.gen.ts +266 -266
- package/src/gomtmapi/core/types.gen.ts +118 -118
- package/src/gomtmapi/core/utils.gen.ts +143 -143
- package/src/gomtmapi/index.ts +4 -4
- package/src/gomtmapi/schemas.gen.ts +532 -596
- package/src/gomtmapi/sdk.gen.ts +371 -399
- package/src/gomtmapi/types.gen.ts +854 -962
- package/src/gomtmapi/zod.gen.ts +448 -507
- package/src/index.ts +4 -5
- package/src/lib/aisdk/types.ts +7 -7
- package/src/lib/logger/index.ts +8 -8
- package/src/lib/schema.ts +37 -50
- package/src/mtgate_api/client/client.gen.ts +311 -311
- package/src/mtgate_api/client/index.ts +25 -25
- package/src/mtgate_api/client/types.gen.ts +241 -241
- package/src/mtgate_api/client/utils.gen.ts +332 -332
- package/src/mtgate_api/client.gen.ts +16 -16
- package/src/mtgate_api/core/auth.gen.ts +42 -42
- package/src/mtgate_api/core/bodySerializer.gen.ts +100 -100
- package/src/mtgate_api/core/params.gen.ts +176 -176
- package/src/mtgate_api/core/pathSerializer.gen.ts +181 -181
- package/src/mtgate_api/core/queryKeySerializer.gen.ts +136 -136
- package/src/mtgate_api/core/serverSentEvents.gen.ts +266 -266
- package/src/mtgate_api/core/types.gen.ts +118 -118
- package/src/mtgate_api/core/utils.gen.ts +143 -143
- package/src/mtgate_api/index.ts +4 -4
- package/src/mtgate_api/sdk.gen.ts +17 -54
- package/src/mtgate_api/types.gen.ts +5 -239
- package/src/openclaw/client-info.ts +54 -54
- package/src/openclaw/device-auth-utils.ts +26 -26
- package/src/openclaw/device-auth.ts +99 -99
- package/src/openclaw/device-identity.ts +108 -108
- package/src/openclaw/gateway.ts +392 -392
- package/src/openclaw/types.ts +518 -518
- package/src/sbmng/@tanstack/react-query.gen.ts +2967 -3017
- package/src/sbmng/client/client.gen.ts +311 -311
- package/src/sbmng/client/index.ts +25 -25
- package/src/sbmng/client/types.gen.ts +241 -241
- package/src/sbmng/client/utils.gen.ts +332 -332
- package/src/sbmng/client.gen.ts +16 -16
- package/src/sbmng/core/auth.gen.ts +42 -42
- package/src/sbmng/core/bodySerializer.gen.ts +100 -100
- package/src/sbmng/core/params.gen.ts +176 -176
- package/src/sbmng/core/pathSerializer.gen.ts +181 -181
- package/src/sbmng/core/queryKeySerializer.gen.ts +136 -136
- package/src/sbmng/core/serverSentEvents.gen.ts +266 -266
- package/src/sbmng/core/types.gen.ts +118 -118
- package/src/sbmng/core/utils.gen.ts +143 -143
- package/src/sbmng/index.ts +4 -4
- package/src/sbmng/schemas.gen.ts +9671 -9805
- package/src/sbmng/sdk.gen.ts +1755 -1780
- package/src/sbmng/types.gen.ts +7886 -8016
- package/src/supabase/auth-provider.tsx +67 -67
- package/src/supabase/context.tsx +51 -51
- package/src/supabase/cursor-pagination.ts +155 -155
- package/src/supabase/schema/browser.ts +44 -44
- package/src/supabase/schema/index.ts +25 -25
- package/src/supabase/supabase-client.ts +30 -30
- package/src/supabase/supabase.ts +67 -67
- package/src/supabase/use-sb-query/build-query-opts.ts +68 -56
- package/src/supabase/use-sb-query/key.ts +57 -57
- package/src/supabase/use-sb-query/use-query.ts +352 -340
- package/src/supabase/use-sb-query/use-rpc-mutation.ts +83 -83
- package/src/supabase/use-sb-query/use-rpc-query.ts +267 -231
- package/src/supabase/utils.ts +75 -75
- package/src/types/database.schemas.ts +4359 -4378
- package/src/types/database.types.ts +4182 -4288
- package/src/types/index.ts +85 -102
- package/dist/adk/api/client.d.ts +0 -9
- package/dist/adk/api/client.d.ts.map +0 -1
- package/dist/adk/api/client.js +0 -39
- package/dist/adk/api/client.js.map +0 -1
- package/dist/adk/core/constants/tool-icons.d.ts +0 -21
- package/dist/adk/core/constants/tool-icons.d.ts.map +0 -1
- package/dist/adk/core/constants/tool-icons.js +0 -47
- package/dist/adk/core/constants/tool-icons.js.map +0 -1
- package/dist/adk/core/models/AgentBuilder.d.ts +0 -77
- package/dist/adk/core/models/AgentBuilder.d.ts.map +0 -1
- package/dist/adk/core/models/AgentBuilder.js +0 -18
- package/dist/adk/core/models/AgentBuilder.js.map +0 -1
- package/dist/adk/core/models/AgentRunRequest.d.ts +0 -37
- package/dist/adk/core/models/AgentRunRequest.d.ts.map +0 -1
- package/dist/adk/core/models/AgentRunRequest.js +0 -18
- package/dist/adk/core/models/AgentRunRequest.js.map +0 -1
- package/dist/adk/core/models/Eval.d.ts +0 -55
- package/dist/adk/core/models/Eval.d.ts.map +0 -1
- package/dist/adk/core/models/Eval.js +0 -27
- package/dist/adk/core/models/Eval.js.map +0 -1
- package/dist/adk/core/models/LiveRequest.d.ts +0 -23
- package/dist/adk/core/models/LiveRequest.d.ts.map +0 -1
- package/dist/adk/core/models/LiveRequest.js +0 -18
- package/dist/adk/core/models/LiveRequest.js.map +0 -1
- package/dist/adk/core/models/RuntimeConfig.d.ts +0 -32
- package/dist/adk/core/models/RuntimeConfig.d.ts.map +0 -1
- package/dist/adk/core/models/RuntimeConfig.js +0 -18
- package/dist/adk/core/models/RuntimeConfig.js.map +0 -1
- package/dist/adk/core/models/Session.d.ts +0 -117
- package/dist/adk/core/models/Session.d.ts.map +0 -1
- package/dist/adk/core/models/Session.js +0 -31
- package/dist/adk/core/models/Session.js.map +0 -1
- package/dist/adk/core/models/Trace.d.ts +0 -40
- package/dist/adk/core/models/Trace.d.ts.map +0 -1
- package/dist/adk/core/models/Trace.js +0 -2
- package/dist/adk/core/models/Trace.js.map +0 -1
- package/dist/adk/core/models/types.d.ts +0 -338
- package/dist/adk/core/models/types.d.ts.map +0 -1
- package/dist/adk/core/models/types.js +0 -189
- package/dist/adk/core/models/types.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -14
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -45
- package/dist/lib/utils.js.map +0 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +0 -166
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +0 -118
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +0 -1
- package/dist/mtgate_api/schemas.gen.d.ts +0 -233
- package/dist/mtgate_api/schemas.gen.d.ts.map +0 -1
- package/dist/mtgate_api/schemas.gen.js +0 -277
- package/dist/mtgate_api/schemas.gen.js.map +0 -1
- package/dist/mtgate_api/zod.gen.d.ts +0 -321
- package/dist/mtgate_api/zod.gen.d.ts.map +0 -1
- package/dist/mtgate_api/zod.gen.js +0 -148
- package/dist/mtgate_api/zod.gen.js.map +0 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +0 -949
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.js +0 -917
- package/dist/mtmai_api/@tanstack/react-query.gen.js.map +0 -1
- package/dist/mtmai_api/client/client.gen.d.ts +0 -3
- package/dist/mtmai_api/client/client.gen.d.ts.map +0 -1
- package/dist/mtmai_api/client/client.gen.js +0 -236
- package/dist/mtmai_api/client/client.gen.js.map +0 -1
- package/dist/mtmai_api/client/index.d.ts +0 -9
- package/dist/mtmai_api/client/index.d.ts.map +0 -1
- package/dist/mtmai_api/client/index.js +0 -7
- package/dist/mtmai_api/client/index.js.map +0 -1
- package/dist/mtmai_api/client/types.gen.d.ts +0 -118
- package/dist/mtmai_api/client/types.gen.d.ts.map +0 -1
- package/dist/mtmai_api/client/types.gen.js +0 -3
- package/dist/mtmai_api/client/types.gen.js.map +0 -1
- package/dist/mtmai_api/client/utils.gen.d.ts +0 -34
- package/dist/mtmai_api/client/utils.gen.d.ts.map +0 -1
- package/dist/mtmai_api/client/utils.gen.js +0 -232
- package/dist/mtmai_api/client/utils.gen.js.map +0 -1
- package/dist/mtmai_api/client.gen.d.ts +0 -13
- package/dist/mtmai_api/client.gen.d.ts.map +0 -1
- package/dist/mtmai_api/client.gen.js +0 -4
- package/dist/mtmai_api/client.gen.js.map +0 -1
- package/dist/mtmai_api/core/auth.gen.d.ts +0 -19
- package/dist/mtmai_api/core/auth.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/auth.gen.js +0 -15
- package/dist/mtmai_api/core/auth.gen.js.map +0 -1
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts +0 -26
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/bodySerializer.gen.js +0 -58
- package/dist/mtmai_api/core/bodySerializer.gen.js.map +0 -1
- package/dist/mtmai_api/core/params.gen.d.ts +0 -44
- package/dist/mtmai_api/core/params.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/params.gen.js +0 -101
- package/dist/mtmai_api/core/params.gen.js.map +0 -1
- package/dist/mtmai_api/core/pathSerializer.gen.d.ts +0 -34
- package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/pathSerializer.gen.js +0 -115
- package/dist/mtmai_api/core/pathSerializer.gen.js.map +0 -1
- package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/queryKeySerializer.gen.js +0 -100
- package/dist/mtmai_api/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/serverSentEvents.gen.js +0 -138
- package/dist/mtmai_api/core/serverSentEvents.gen.js.map +0 -1
- package/dist/mtmai_api/core/types.gen.d.ts +0 -79
- package/dist/mtmai_api/core/types.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/types.gen.js +0 -3
- package/dist/mtmai_api/core/types.gen.js.map +0 -1
- package/dist/mtmai_api/core/utils.gen.d.ts +0 -20
- package/dist/mtmai_api/core/utils.gen.d.ts.map +0 -1
- package/dist/mtmai_api/core/utils.gen.js +0 -88
- package/dist/mtmai_api/core/utils.gen.js.map +0 -1
- package/dist/mtmai_api/index.d.ts +0 -3
- package/dist/mtmai_api/index.d.ts.map +0 -1
- package/dist/mtmai_api/index.js +0 -4
- package/dist/mtmai_api/index.js.map +0 -1
- package/dist/mtmai_api/schemas.gen.d.ts +0 -7721
- package/dist/mtmai_api/schemas.gen.d.ts.map +0 -1
- package/dist/mtmai_api/schemas.gen.js +0 -9774
- package/dist/mtmai_api/schemas.gen.js.map +0 -1
- package/dist/mtmai_api/sdk.gen.d.ts +0 -282
- package/dist/mtmai_api/sdk.gen.d.ts.map +0 -1
- package/dist/mtmai_api/sdk.gen.js +0 -404
- package/dist/mtmai_api/sdk.gen.js.map +0 -1
- package/dist/mtmai_api/types.gen.d.ts +0 -7152
- package/dist/mtmai_api/types.gen.d.ts.map +0 -1
- package/dist/mtmai_api/types.gen.js +0 -253
- package/dist/mtmai_api/types.gen.js.map +0 -1
- package/dist/mtmai_api/zod.gen.d.ts +0 -55827
- package/dist/mtmai_api/zod.gen.d.ts.map +0 -1
- package/dist/mtmai_api/zod.gen.js +0 -4805
- package/dist/mtmai_api/zod.gen.js.map +0 -1
- package/dist/supabase/use-sb-query/prefetch.d.ts +0 -10
- package/dist/supabase/use-sb-query/prefetch.d.ts.map +0 -1
- package/dist/supabase/use-sb-query/prefetch.js +0 -14
- package/dist/supabase/use-sb-query/prefetch.js.map +0 -1
- package/src/adk/api/client.ts +0 -46
- package/src/adk/core/constants/tool-icons.ts +0 -51
- package/src/adk/core/models/AgentBuilder.ts +0 -80
- package/src/adk/core/models/AgentRunRequest.ts +0 -33
- package/src/adk/core/models/Eval.ts +0 -70
- package/src/adk/core/models/LiveRequest.ts +0 -23
- package/src/adk/core/models/RuntimeConfig.ts +0 -33
- package/src/adk/core/models/Session.ts +0 -52
- package/src/adk/core/models/Trace.ts +0 -42
- package/src/adk/core/models/types.ts +0 -255
- package/src/lib/utils.ts +0 -54
- package/src/mtgate_api/@tanstack/react-query.gen.ts +0 -142
- package/src/mtgate_api/schemas.gen.ts +0 -290
- package/src/mtgate_api/zod.gen.ts +0 -176
- package/src/mtmai_api/@tanstack/react-query.gen.ts +0 -1010
- package/src/mtmai_api/client/client.gen.ts +0 -311
- package/src/mtmai_api/client/index.ts +0 -25
- package/src/mtmai_api/client/types.gen.ts +0 -241
- package/src/mtmai_api/client/utils.gen.ts +0 -332
- package/src/mtmai_api/client.gen.ts +0 -16
- package/src/mtmai_api/core/auth.gen.ts +0 -42
- package/src/mtmai_api/core/bodySerializer.gen.ts +0 -100
- package/src/mtmai_api/core/params.gen.ts +0 -176
- package/src/mtmai_api/core/pathSerializer.gen.ts +0 -181
- package/src/mtmai_api/core/queryKeySerializer.gen.ts +0 -136
- package/src/mtmai_api/core/serverSentEvents.gen.ts +0 -266
- package/src/mtmai_api/core/types.gen.ts +0 -118
- package/src/mtmai_api/core/utils.gen.ts +0 -143
- package/src/mtmai_api/index.ts +0 -4
- package/src/mtmai_api/schemas.gen.ts +0 -9980
- package/src/mtmai_api/sdk.gen.ts +0 -471
- package/src/mtmai_api/types.gen.ts +0 -7609
- package/src/mtmai_api/zod.gen.ts +0 -5101
- package/src/supabase/use-sb-query/prefetch.ts +0 -59
package/src/openclaw/types.ts
CHANGED
|
@@ -1,518 +1,518 @@
|
|
|
1
|
-
export type ChannelsStatusSnapshot = {
|
|
2
|
-
ts: number;
|
|
3
|
-
channelOrder: string[];
|
|
4
|
-
channelLabels: Record<string, string>;
|
|
5
|
-
channelDetailLabels?: Record<string, string>;
|
|
6
|
-
channelSystemImages?: Record<string, string>;
|
|
7
|
-
channelMeta?: ChannelUiMetaEntry[];
|
|
8
|
-
channels: Record<string, unknown>;
|
|
9
|
-
channelAccounts: Record<string, ChannelAccountSnapshot[]>;
|
|
10
|
-
channelDefaultAccountId: Record<string, string>;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export type ChannelUiMetaEntry = {
|
|
14
|
-
id: string;
|
|
15
|
-
label: string;
|
|
16
|
-
detailLabel: string;
|
|
17
|
-
systemImage?: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const CRON_CHANNEL_LAST = "last";
|
|
21
|
-
|
|
22
|
-
export type ChannelAccountSnapshot = {
|
|
23
|
-
accountId: string;
|
|
24
|
-
name?: string | null;
|
|
25
|
-
enabled?: boolean | null;
|
|
26
|
-
configured?: boolean | null;
|
|
27
|
-
linked?: boolean | null;
|
|
28
|
-
running?: boolean | null;
|
|
29
|
-
connected?: boolean | null;
|
|
30
|
-
reconnectAttempts?: number | null;
|
|
31
|
-
lastConnectedAt?: number | null;
|
|
32
|
-
lastError?: string | null;
|
|
33
|
-
lastStartAt?: number | null;
|
|
34
|
-
lastStopAt?: number | null;
|
|
35
|
-
lastInboundAt?: number | null;
|
|
36
|
-
lastOutboundAt?: number | null;
|
|
37
|
-
lastProbeAt?: number | null;
|
|
38
|
-
mode?: string | null;
|
|
39
|
-
dmPolicy?: string | null;
|
|
40
|
-
allowFrom?: string[] | null;
|
|
41
|
-
tokenSource?: string | null;
|
|
42
|
-
botTokenSource?: string | null;
|
|
43
|
-
appTokenSource?: string | null;
|
|
44
|
-
credentialSource?: string | null;
|
|
45
|
-
audienceType?: string | null;
|
|
46
|
-
audience?: string | null;
|
|
47
|
-
webhookPath?: string | null;
|
|
48
|
-
webhookUrl?: string | null;
|
|
49
|
-
baseUrl?: string | null;
|
|
50
|
-
allowUnmentionedGroups?: boolean | null;
|
|
51
|
-
cliPath?: string | null;
|
|
52
|
-
dbPath?: string | null;
|
|
53
|
-
port?: number | null;
|
|
54
|
-
probe?: unknown;
|
|
55
|
-
audit?: unknown;
|
|
56
|
-
application?: unknown;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export type WhatsAppSelf = {
|
|
60
|
-
e164?: string | null;
|
|
61
|
-
jid?: string | null;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export type WhatsAppDisconnect = {
|
|
65
|
-
at: number;
|
|
66
|
-
status?: number | null;
|
|
67
|
-
error?: string | null;
|
|
68
|
-
loggedOut?: boolean | null;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export type WhatsAppStatus = {
|
|
72
|
-
configured: boolean;
|
|
73
|
-
linked: boolean;
|
|
74
|
-
authAgeMs?: number | null;
|
|
75
|
-
self?: WhatsAppSelf | null;
|
|
76
|
-
running: boolean;
|
|
77
|
-
connected: boolean;
|
|
78
|
-
lastConnectedAt?: number | null;
|
|
79
|
-
lastDisconnect?: WhatsAppDisconnect | null;
|
|
80
|
-
reconnectAttempts: number;
|
|
81
|
-
lastMessageAt?: number | null;
|
|
82
|
-
lastEventAt?: number | null;
|
|
83
|
-
lastError?: string | null;
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
export type TelegramBot = {
|
|
87
|
-
id?: number | null;
|
|
88
|
-
username?: string | null;
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
export type TelegramWebhook = {
|
|
92
|
-
url?: string | null;
|
|
93
|
-
hasCustomCert?: boolean | null;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export type TelegramProbe = {
|
|
97
|
-
ok: boolean;
|
|
98
|
-
status?: number | null;
|
|
99
|
-
error?: string | null;
|
|
100
|
-
elapsedMs?: number | null;
|
|
101
|
-
bot?: TelegramBot | null;
|
|
102
|
-
webhook?: TelegramWebhook | null;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export type TelegramStatus = {
|
|
106
|
-
configured: boolean;
|
|
107
|
-
tokenSource?: string | null;
|
|
108
|
-
running: boolean;
|
|
109
|
-
mode?: string | null;
|
|
110
|
-
lastStartAt?: number | null;
|
|
111
|
-
lastStopAt?: number | null;
|
|
112
|
-
lastError?: string | null;
|
|
113
|
-
probe?: TelegramProbe | null;
|
|
114
|
-
lastProbeAt?: number | null;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export type DiscordBot = {
|
|
118
|
-
id?: string | null;
|
|
119
|
-
username?: string | null;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
export type DiscordProbe = {
|
|
123
|
-
ok: boolean;
|
|
124
|
-
status?: number | null;
|
|
125
|
-
error?: string | null;
|
|
126
|
-
elapsedMs?: number | null;
|
|
127
|
-
bot?: DiscordBot | null;
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
export type DiscordStatus = {
|
|
131
|
-
configured: boolean;
|
|
132
|
-
tokenSource?: string | null;
|
|
133
|
-
running: boolean;
|
|
134
|
-
lastStartAt?: number | null;
|
|
135
|
-
lastStopAt?: number | null;
|
|
136
|
-
lastError?: string | null;
|
|
137
|
-
probe?: DiscordProbe | null;
|
|
138
|
-
lastProbeAt?: number | null;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
export type GoogleChatProbe = {
|
|
142
|
-
ok: boolean;
|
|
143
|
-
status?: number | null;
|
|
144
|
-
error?: string | null;
|
|
145
|
-
elapsedMs?: number | null;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
export type GoogleChatStatus = {
|
|
149
|
-
configured: boolean;
|
|
150
|
-
credentialSource?: string | null;
|
|
151
|
-
audienceType?: string | null;
|
|
152
|
-
audience?: string | null;
|
|
153
|
-
webhookPath?: string | null;
|
|
154
|
-
webhookUrl?: string | null;
|
|
155
|
-
running: boolean;
|
|
156
|
-
lastStartAt?: number | null;
|
|
157
|
-
lastStopAt?: number | null;
|
|
158
|
-
lastError?: string | null;
|
|
159
|
-
probe?: GoogleChatProbe | null;
|
|
160
|
-
lastProbeAt?: number | null;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export type SlackBot = {
|
|
164
|
-
id?: string | null;
|
|
165
|
-
name?: string | null;
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
export type SlackTeam = {
|
|
169
|
-
id?: string | null;
|
|
170
|
-
name?: string | null;
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
export type SlackProbe = {
|
|
174
|
-
ok: boolean;
|
|
175
|
-
status?: number | null;
|
|
176
|
-
error?: string | null;
|
|
177
|
-
elapsedMs?: number | null;
|
|
178
|
-
bot?: SlackBot | null;
|
|
179
|
-
team?: SlackTeam | null;
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
export type SlackStatus = {
|
|
183
|
-
configured: boolean;
|
|
184
|
-
botTokenSource?: string | null;
|
|
185
|
-
appTokenSource?: string | null;
|
|
186
|
-
running: boolean;
|
|
187
|
-
lastStartAt?: number | null;
|
|
188
|
-
lastStopAt?: number | null;
|
|
189
|
-
lastError?: string | null;
|
|
190
|
-
probe?: SlackProbe | null;
|
|
191
|
-
lastProbeAt?: number | null;
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
export type SignalProbe = {
|
|
195
|
-
ok: boolean;
|
|
196
|
-
status?: number | null;
|
|
197
|
-
error?: string | null;
|
|
198
|
-
elapsedMs?: number | null;
|
|
199
|
-
version?: string | null;
|
|
200
|
-
};
|
|
201
|
-
|
|
202
|
-
export type SignalStatus = {
|
|
203
|
-
configured: boolean;
|
|
204
|
-
baseUrl: string;
|
|
205
|
-
running: boolean;
|
|
206
|
-
lastStartAt?: number | null;
|
|
207
|
-
lastStopAt?: number | null;
|
|
208
|
-
lastError?: string | null;
|
|
209
|
-
probe?: SignalProbe | null;
|
|
210
|
-
lastProbeAt?: number | null;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
export type IMessageProbe = {
|
|
214
|
-
ok: boolean;
|
|
215
|
-
error?: string | null;
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
export type IMessageStatus = {
|
|
219
|
-
configured: boolean;
|
|
220
|
-
running: boolean;
|
|
221
|
-
lastStartAt?: number | null;
|
|
222
|
-
lastStopAt?: number | null;
|
|
223
|
-
lastError?: string | null;
|
|
224
|
-
cliPath?: string | null;
|
|
225
|
-
dbPath?: string | null;
|
|
226
|
-
probe?: IMessageProbe | null;
|
|
227
|
-
lastProbeAt?: number | null;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
export type NostrProfile = {
|
|
231
|
-
name?: string | null;
|
|
232
|
-
displayName?: string | null;
|
|
233
|
-
about?: string | null;
|
|
234
|
-
picture?: string | null;
|
|
235
|
-
banner?: string | null;
|
|
236
|
-
website?: string | null;
|
|
237
|
-
nip05?: string | null;
|
|
238
|
-
lud16?: string | null;
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
export type NostrStatus = {
|
|
242
|
-
configured: boolean;
|
|
243
|
-
publicKey?: string | null;
|
|
244
|
-
running: boolean;
|
|
245
|
-
lastStartAt?: number | null;
|
|
246
|
-
lastStopAt?: number | null;
|
|
247
|
-
lastError?: string | null;
|
|
248
|
-
profile?: NostrProfile | null;
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
export type MSTeamsProbe = {
|
|
252
|
-
ok: boolean;
|
|
253
|
-
error?: string | null;
|
|
254
|
-
appId?: string | null;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
export type MSTeamsStatus = {
|
|
258
|
-
configured: boolean;
|
|
259
|
-
running: boolean;
|
|
260
|
-
lastStartAt?: number | null;
|
|
261
|
-
lastStopAt?: number | null;
|
|
262
|
-
lastError?: string | null;
|
|
263
|
-
port?: number | null;
|
|
264
|
-
probe?: MSTeamsProbe | null;
|
|
265
|
-
lastProbeAt?: number | null;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
export type ConfigSnapshotIssue = {
|
|
269
|
-
path: string;
|
|
270
|
-
message: string;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
export type ConfigSnapshot = {
|
|
274
|
-
path?: string | null;
|
|
275
|
-
exists?: boolean | null;
|
|
276
|
-
raw?: string | null;
|
|
277
|
-
hash?: string | null;
|
|
278
|
-
parsed?: unknown;
|
|
279
|
-
valid?: boolean | null;
|
|
280
|
-
config?: Record<string, unknown> | null;
|
|
281
|
-
issues?: ConfigSnapshotIssue[] | null;
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
export type ConfigUiHint = {
|
|
285
|
-
label?: string;
|
|
286
|
-
help?: string;
|
|
287
|
-
group?: string;
|
|
288
|
-
order?: number;
|
|
289
|
-
advanced?: boolean;
|
|
290
|
-
sensitive?: boolean;
|
|
291
|
-
placeholder?: string;
|
|
292
|
-
itemTemplate?: unknown;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
export type ConfigUiHints = Record<string, ConfigUiHint>;
|
|
296
|
-
|
|
297
|
-
export type ConfigSchemaResponse = {
|
|
298
|
-
schema: unknown;
|
|
299
|
-
uiHints: ConfigUiHints;
|
|
300
|
-
version: string;
|
|
301
|
-
generatedAt: string;
|
|
302
|
-
};
|
|
303
|
-
|
|
304
|
-
export type PresenceEntry = {
|
|
305
|
-
instanceId?: string | null;
|
|
306
|
-
host?: string | null;
|
|
307
|
-
ip?: string | null;
|
|
308
|
-
version?: string | null;
|
|
309
|
-
platform?: string | null;
|
|
310
|
-
deviceFamily?: string | null;
|
|
311
|
-
modelIdentifier?: string | null;
|
|
312
|
-
mode?: string | null;
|
|
313
|
-
lastInputSeconds?: number | null;
|
|
314
|
-
reason?: string | null;
|
|
315
|
-
text?: string | null;
|
|
316
|
-
ts?: number | null;
|
|
317
|
-
};
|
|
318
|
-
|
|
319
|
-
export type GatewaySessionsDefaults = {
|
|
320
|
-
model: string | null;
|
|
321
|
-
contextTokens: number | null;
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
export type GatewayAgentRow = {
|
|
325
|
-
id: string;
|
|
326
|
-
name?: string;
|
|
327
|
-
identity?: {
|
|
328
|
-
name?: string;
|
|
329
|
-
theme?: string;
|
|
330
|
-
emoji?: string;
|
|
331
|
-
avatar?: string;
|
|
332
|
-
avatarUrl?: string;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
|
|
336
|
-
export type AgentsListResult = {
|
|
337
|
-
defaultId: string;
|
|
338
|
-
mainKey: string;
|
|
339
|
-
scope: string;
|
|
340
|
-
agents: GatewayAgentRow[];
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
export type GatewaySessionRow = {
|
|
344
|
-
key: string;
|
|
345
|
-
kind: "direct" | "group" | "global" | "unknown";
|
|
346
|
-
label?: string;
|
|
347
|
-
displayName?: string;
|
|
348
|
-
surface?: string;
|
|
349
|
-
subject?: string;
|
|
350
|
-
room?: string;
|
|
351
|
-
space?: string;
|
|
352
|
-
updatedAt: number | null;
|
|
353
|
-
sessionId?: string;
|
|
354
|
-
systemSent?: boolean;
|
|
355
|
-
abortedLastRun?: boolean;
|
|
356
|
-
thinkingLevel?: string;
|
|
357
|
-
verboseLevel?: string;
|
|
358
|
-
reasoningLevel?: string;
|
|
359
|
-
elevatedLevel?: string;
|
|
360
|
-
inputTokens?: number;
|
|
361
|
-
outputTokens?: number;
|
|
362
|
-
totalTokens?: number;
|
|
363
|
-
model?: string;
|
|
364
|
-
modelProvider?: string;
|
|
365
|
-
contextTokens?: number;
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
export type SessionsListResult = {
|
|
369
|
-
ts: number;
|
|
370
|
-
path: string;
|
|
371
|
-
count: number;
|
|
372
|
-
defaults: GatewaySessionsDefaults;
|
|
373
|
-
sessions: GatewaySessionRow[];
|
|
374
|
-
};
|
|
375
|
-
|
|
376
|
-
export type SessionsPatchResult = {
|
|
377
|
-
ok: true;
|
|
378
|
-
path: string;
|
|
379
|
-
key: string;
|
|
380
|
-
entry: {
|
|
381
|
-
sessionId: string;
|
|
382
|
-
updatedAt?: number;
|
|
383
|
-
thinkingLevel?: string;
|
|
384
|
-
verboseLevel?: string;
|
|
385
|
-
reasoningLevel?: string;
|
|
386
|
-
elevatedLevel?: string;
|
|
387
|
-
};
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export type CronSchedule =
|
|
391
|
-
| { kind: "at"; atMs: number }
|
|
392
|
-
| { kind: "every"; everyMs: number; anchorMs?: number }
|
|
393
|
-
| { kind: "cron"; expr: string; tz?: string };
|
|
394
|
-
|
|
395
|
-
export type CronSessionTarget = "main" | "isolated";
|
|
396
|
-
export type CronWakeMode = "next-heartbeat" | "now";
|
|
397
|
-
|
|
398
|
-
export type CronPayload =
|
|
399
|
-
| { kind: "systemEvent"; text: string }
|
|
400
|
-
| {
|
|
401
|
-
kind: "agentTurn";
|
|
402
|
-
message: string;
|
|
403
|
-
thinking?: string;
|
|
404
|
-
timeoutSeconds?: number;
|
|
405
|
-
deliver?: boolean;
|
|
406
|
-
provider?: "last" | "whatsapp" | "telegram" | "discord" | "slack" | "signal" | "imessage" | "msteams";
|
|
407
|
-
to?: string;
|
|
408
|
-
bestEffortDeliver?: boolean;
|
|
409
|
-
};
|
|
410
|
-
|
|
411
|
-
export type CronIsolation = {
|
|
412
|
-
postToMainPrefix?: string;
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
export type CronJobState = {
|
|
416
|
-
nextRunAtMs?: number;
|
|
417
|
-
runningAtMs?: number;
|
|
418
|
-
lastRunAtMs?: number;
|
|
419
|
-
lastStatus?: "ok" | "error" | "skipped";
|
|
420
|
-
lastError?: string;
|
|
421
|
-
lastDurationMs?: number;
|
|
422
|
-
};
|
|
423
|
-
|
|
424
|
-
export type CronJob = {
|
|
425
|
-
id: string;
|
|
426
|
-
agentId?: string;
|
|
427
|
-
name: string;
|
|
428
|
-
description?: string;
|
|
429
|
-
enabled: boolean;
|
|
430
|
-
deleteAfterRun?: boolean;
|
|
431
|
-
createdAtMs: number;
|
|
432
|
-
updatedAtMs: number;
|
|
433
|
-
schedule: CronSchedule;
|
|
434
|
-
sessionTarget: CronSessionTarget;
|
|
435
|
-
wakeMode: CronWakeMode;
|
|
436
|
-
payload: CronPayload;
|
|
437
|
-
isolation?: CronIsolation;
|
|
438
|
-
state?: CronJobState;
|
|
439
|
-
};
|
|
440
|
-
|
|
441
|
-
export type CronStatus = {
|
|
442
|
-
enabled: boolean;
|
|
443
|
-
jobs: number;
|
|
444
|
-
nextWakeAtMs?: number | null;
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
export type CronRunLogEntry = {
|
|
448
|
-
ts: number;
|
|
449
|
-
jobId: string;
|
|
450
|
-
status: "ok" | "error" | "skipped";
|
|
451
|
-
durationMs?: number;
|
|
452
|
-
error?: string;
|
|
453
|
-
summary?: string;
|
|
454
|
-
};
|
|
455
|
-
|
|
456
|
-
export type SkillsStatusConfigCheck = {
|
|
457
|
-
path: string;
|
|
458
|
-
value: unknown;
|
|
459
|
-
satisfied: boolean;
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
export type SkillInstallOption = {
|
|
463
|
-
id: string;
|
|
464
|
-
kind: "brew" | "node" | "go" | "uv";
|
|
465
|
-
label: string;
|
|
466
|
-
bins: string[];
|
|
467
|
-
};
|
|
468
|
-
|
|
469
|
-
export type SkillStatusEntry = {
|
|
470
|
-
name: string;
|
|
471
|
-
description: string;
|
|
472
|
-
source: string;
|
|
473
|
-
filePath: string;
|
|
474
|
-
baseDir: string;
|
|
475
|
-
skillKey: string;
|
|
476
|
-
primaryEnv?: string;
|
|
477
|
-
emoji?: string;
|
|
478
|
-
homepage?: string;
|
|
479
|
-
always: boolean;
|
|
480
|
-
disabled: boolean;
|
|
481
|
-
blockedByAllowlist: boolean;
|
|
482
|
-
eligible: boolean;
|
|
483
|
-
requirements: {
|
|
484
|
-
bins: string[];
|
|
485
|
-
env: string[];
|
|
486
|
-
config: string[];
|
|
487
|
-
os: string[];
|
|
488
|
-
};
|
|
489
|
-
missing: {
|
|
490
|
-
bins: string[];
|
|
491
|
-
env: string[];
|
|
492
|
-
config: string[];
|
|
493
|
-
os: string[];
|
|
494
|
-
};
|
|
495
|
-
configChecks: SkillsStatusConfigCheck[];
|
|
496
|
-
install: SkillInstallOption[];
|
|
497
|
-
};
|
|
498
|
-
|
|
499
|
-
export type SkillStatusReport = {
|
|
500
|
-
workspaceDir: string;
|
|
501
|
-
managedSkillsDir: string;
|
|
502
|
-
skills: SkillStatusEntry[];
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
export type StatusSummary = Record<string, unknown>;
|
|
506
|
-
|
|
507
|
-
export type HealthSnapshot = Record<string, unknown>;
|
|
508
|
-
|
|
509
|
-
export type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
510
|
-
|
|
511
|
-
export type LogEntry = {
|
|
512
|
-
raw: string;
|
|
513
|
-
time?: string | null;
|
|
514
|
-
level?: LogLevel | null;
|
|
515
|
-
subsystem?: string | null;
|
|
516
|
-
message?: string | null;
|
|
517
|
-
meta?: Record<string, unknown> | null;
|
|
518
|
-
};
|
|
1
|
+
export type ChannelsStatusSnapshot = {
|
|
2
|
+
ts: number;
|
|
3
|
+
channelOrder: string[];
|
|
4
|
+
channelLabels: Record<string, string>;
|
|
5
|
+
channelDetailLabels?: Record<string, string>;
|
|
6
|
+
channelSystemImages?: Record<string, string>;
|
|
7
|
+
channelMeta?: ChannelUiMetaEntry[];
|
|
8
|
+
channels: Record<string, unknown>;
|
|
9
|
+
channelAccounts: Record<string, ChannelAccountSnapshot[]>;
|
|
10
|
+
channelDefaultAccountId: Record<string, string>;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export type ChannelUiMetaEntry = {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
detailLabel: string;
|
|
17
|
+
systemImage?: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export const CRON_CHANNEL_LAST = "last";
|
|
21
|
+
|
|
22
|
+
export type ChannelAccountSnapshot = {
|
|
23
|
+
accountId: string;
|
|
24
|
+
name?: string | null;
|
|
25
|
+
enabled?: boolean | null;
|
|
26
|
+
configured?: boolean | null;
|
|
27
|
+
linked?: boolean | null;
|
|
28
|
+
running?: boolean | null;
|
|
29
|
+
connected?: boolean | null;
|
|
30
|
+
reconnectAttempts?: number | null;
|
|
31
|
+
lastConnectedAt?: number | null;
|
|
32
|
+
lastError?: string | null;
|
|
33
|
+
lastStartAt?: number | null;
|
|
34
|
+
lastStopAt?: number | null;
|
|
35
|
+
lastInboundAt?: number | null;
|
|
36
|
+
lastOutboundAt?: number | null;
|
|
37
|
+
lastProbeAt?: number | null;
|
|
38
|
+
mode?: string | null;
|
|
39
|
+
dmPolicy?: string | null;
|
|
40
|
+
allowFrom?: string[] | null;
|
|
41
|
+
tokenSource?: string | null;
|
|
42
|
+
botTokenSource?: string | null;
|
|
43
|
+
appTokenSource?: string | null;
|
|
44
|
+
credentialSource?: string | null;
|
|
45
|
+
audienceType?: string | null;
|
|
46
|
+
audience?: string | null;
|
|
47
|
+
webhookPath?: string | null;
|
|
48
|
+
webhookUrl?: string | null;
|
|
49
|
+
baseUrl?: string | null;
|
|
50
|
+
allowUnmentionedGroups?: boolean | null;
|
|
51
|
+
cliPath?: string | null;
|
|
52
|
+
dbPath?: string | null;
|
|
53
|
+
port?: number | null;
|
|
54
|
+
probe?: unknown;
|
|
55
|
+
audit?: unknown;
|
|
56
|
+
application?: unknown;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type WhatsAppSelf = {
|
|
60
|
+
e164?: string | null;
|
|
61
|
+
jid?: string | null;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type WhatsAppDisconnect = {
|
|
65
|
+
at: number;
|
|
66
|
+
status?: number | null;
|
|
67
|
+
error?: string | null;
|
|
68
|
+
loggedOut?: boolean | null;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export type WhatsAppStatus = {
|
|
72
|
+
configured: boolean;
|
|
73
|
+
linked: boolean;
|
|
74
|
+
authAgeMs?: number | null;
|
|
75
|
+
self?: WhatsAppSelf | null;
|
|
76
|
+
running: boolean;
|
|
77
|
+
connected: boolean;
|
|
78
|
+
lastConnectedAt?: number | null;
|
|
79
|
+
lastDisconnect?: WhatsAppDisconnect | null;
|
|
80
|
+
reconnectAttempts: number;
|
|
81
|
+
lastMessageAt?: number | null;
|
|
82
|
+
lastEventAt?: number | null;
|
|
83
|
+
lastError?: string | null;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export type TelegramBot = {
|
|
87
|
+
id?: number | null;
|
|
88
|
+
username?: string | null;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export type TelegramWebhook = {
|
|
92
|
+
url?: string | null;
|
|
93
|
+
hasCustomCert?: boolean | null;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export type TelegramProbe = {
|
|
97
|
+
ok: boolean;
|
|
98
|
+
status?: number | null;
|
|
99
|
+
error?: string | null;
|
|
100
|
+
elapsedMs?: number | null;
|
|
101
|
+
bot?: TelegramBot | null;
|
|
102
|
+
webhook?: TelegramWebhook | null;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export type TelegramStatus = {
|
|
106
|
+
configured: boolean;
|
|
107
|
+
tokenSource?: string | null;
|
|
108
|
+
running: boolean;
|
|
109
|
+
mode?: string | null;
|
|
110
|
+
lastStartAt?: number | null;
|
|
111
|
+
lastStopAt?: number | null;
|
|
112
|
+
lastError?: string | null;
|
|
113
|
+
probe?: TelegramProbe | null;
|
|
114
|
+
lastProbeAt?: number | null;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export type DiscordBot = {
|
|
118
|
+
id?: string | null;
|
|
119
|
+
username?: string | null;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type DiscordProbe = {
|
|
123
|
+
ok: boolean;
|
|
124
|
+
status?: number | null;
|
|
125
|
+
error?: string | null;
|
|
126
|
+
elapsedMs?: number | null;
|
|
127
|
+
bot?: DiscordBot | null;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export type DiscordStatus = {
|
|
131
|
+
configured: boolean;
|
|
132
|
+
tokenSource?: string | null;
|
|
133
|
+
running: boolean;
|
|
134
|
+
lastStartAt?: number | null;
|
|
135
|
+
lastStopAt?: number | null;
|
|
136
|
+
lastError?: string | null;
|
|
137
|
+
probe?: DiscordProbe | null;
|
|
138
|
+
lastProbeAt?: number | null;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export type GoogleChatProbe = {
|
|
142
|
+
ok: boolean;
|
|
143
|
+
status?: number | null;
|
|
144
|
+
error?: string | null;
|
|
145
|
+
elapsedMs?: number | null;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export type GoogleChatStatus = {
|
|
149
|
+
configured: boolean;
|
|
150
|
+
credentialSource?: string | null;
|
|
151
|
+
audienceType?: string | null;
|
|
152
|
+
audience?: string | null;
|
|
153
|
+
webhookPath?: string | null;
|
|
154
|
+
webhookUrl?: string | null;
|
|
155
|
+
running: boolean;
|
|
156
|
+
lastStartAt?: number | null;
|
|
157
|
+
lastStopAt?: number | null;
|
|
158
|
+
lastError?: string | null;
|
|
159
|
+
probe?: GoogleChatProbe | null;
|
|
160
|
+
lastProbeAt?: number | null;
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export type SlackBot = {
|
|
164
|
+
id?: string | null;
|
|
165
|
+
name?: string | null;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export type SlackTeam = {
|
|
169
|
+
id?: string | null;
|
|
170
|
+
name?: string | null;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export type SlackProbe = {
|
|
174
|
+
ok: boolean;
|
|
175
|
+
status?: number | null;
|
|
176
|
+
error?: string | null;
|
|
177
|
+
elapsedMs?: number | null;
|
|
178
|
+
bot?: SlackBot | null;
|
|
179
|
+
team?: SlackTeam | null;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
export type SlackStatus = {
|
|
183
|
+
configured: boolean;
|
|
184
|
+
botTokenSource?: string | null;
|
|
185
|
+
appTokenSource?: string | null;
|
|
186
|
+
running: boolean;
|
|
187
|
+
lastStartAt?: number | null;
|
|
188
|
+
lastStopAt?: number | null;
|
|
189
|
+
lastError?: string | null;
|
|
190
|
+
probe?: SlackProbe | null;
|
|
191
|
+
lastProbeAt?: number | null;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export type SignalProbe = {
|
|
195
|
+
ok: boolean;
|
|
196
|
+
status?: number | null;
|
|
197
|
+
error?: string | null;
|
|
198
|
+
elapsedMs?: number | null;
|
|
199
|
+
version?: string | null;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
export type SignalStatus = {
|
|
203
|
+
configured: boolean;
|
|
204
|
+
baseUrl: string;
|
|
205
|
+
running: boolean;
|
|
206
|
+
lastStartAt?: number | null;
|
|
207
|
+
lastStopAt?: number | null;
|
|
208
|
+
lastError?: string | null;
|
|
209
|
+
probe?: SignalProbe | null;
|
|
210
|
+
lastProbeAt?: number | null;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export type IMessageProbe = {
|
|
214
|
+
ok: boolean;
|
|
215
|
+
error?: string | null;
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
export type IMessageStatus = {
|
|
219
|
+
configured: boolean;
|
|
220
|
+
running: boolean;
|
|
221
|
+
lastStartAt?: number | null;
|
|
222
|
+
lastStopAt?: number | null;
|
|
223
|
+
lastError?: string | null;
|
|
224
|
+
cliPath?: string | null;
|
|
225
|
+
dbPath?: string | null;
|
|
226
|
+
probe?: IMessageProbe | null;
|
|
227
|
+
lastProbeAt?: number | null;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
export type NostrProfile = {
|
|
231
|
+
name?: string | null;
|
|
232
|
+
displayName?: string | null;
|
|
233
|
+
about?: string | null;
|
|
234
|
+
picture?: string | null;
|
|
235
|
+
banner?: string | null;
|
|
236
|
+
website?: string | null;
|
|
237
|
+
nip05?: string | null;
|
|
238
|
+
lud16?: string | null;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type NostrStatus = {
|
|
242
|
+
configured: boolean;
|
|
243
|
+
publicKey?: string | null;
|
|
244
|
+
running: boolean;
|
|
245
|
+
lastStartAt?: number | null;
|
|
246
|
+
lastStopAt?: number | null;
|
|
247
|
+
lastError?: string | null;
|
|
248
|
+
profile?: NostrProfile | null;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
export type MSTeamsProbe = {
|
|
252
|
+
ok: boolean;
|
|
253
|
+
error?: string | null;
|
|
254
|
+
appId?: string | null;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
export type MSTeamsStatus = {
|
|
258
|
+
configured: boolean;
|
|
259
|
+
running: boolean;
|
|
260
|
+
lastStartAt?: number | null;
|
|
261
|
+
lastStopAt?: number | null;
|
|
262
|
+
lastError?: string | null;
|
|
263
|
+
port?: number | null;
|
|
264
|
+
probe?: MSTeamsProbe | null;
|
|
265
|
+
lastProbeAt?: number | null;
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
export type ConfigSnapshotIssue = {
|
|
269
|
+
path: string;
|
|
270
|
+
message: string;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export type ConfigSnapshot = {
|
|
274
|
+
path?: string | null;
|
|
275
|
+
exists?: boolean | null;
|
|
276
|
+
raw?: string | null;
|
|
277
|
+
hash?: string | null;
|
|
278
|
+
parsed?: unknown;
|
|
279
|
+
valid?: boolean | null;
|
|
280
|
+
config?: Record<string, unknown> | null;
|
|
281
|
+
issues?: ConfigSnapshotIssue[] | null;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
export type ConfigUiHint = {
|
|
285
|
+
label?: string;
|
|
286
|
+
help?: string;
|
|
287
|
+
group?: string;
|
|
288
|
+
order?: number;
|
|
289
|
+
advanced?: boolean;
|
|
290
|
+
sensitive?: boolean;
|
|
291
|
+
placeholder?: string;
|
|
292
|
+
itemTemplate?: unknown;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
export type ConfigUiHints = Record<string, ConfigUiHint>;
|
|
296
|
+
|
|
297
|
+
export type ConfigSchemaResponse = {
|
|
298
|
+
schema: unknown;
|
|
299
|
+
uiHints: ConfigUiHints;
|
|
300
|
+
version: string;
|
|
301
|
+
generatedAt: string;
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
export type PresenceEntry = {
|
|
305
|
+
instanceId?: string | null;
|
|
306
|
+
host?: string | null;
|
|
307
|
+
ip?: string | null;
|
|
308
|
+
version?: string | null;
|
|
309
|
+
platform?: string | null;
|
|
310
|
+
deviceFamily?: string | null;
|
|
311
|
+
modelIdentifier?: string | null;
|
|
312
|
+
mode?: string | null;
|
|
313
|
+
lastInputSeconds?: number | null;
|
|
314
|
+
reason?: string | null;
|
|
315
|
+
text?: string | null;
|
|
316
|
+
ts?: number | null;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
export type GatewaySessionsDefaults = {
|
|
320
|
+
model: string | null;
|
|
321
|
+
contextTokens: number | null;
|
|
322
|
+
};
|
|
323
|
+
|
|
324
|
+
export type GatewayAgentRow = {
|
|
325
|
+
id: string;
|
|
326
|
+
name?: string;
|
|
327
|
+
identity?: {
|
|
328
|
+
name?: string;
|
|
329
|
+
theme?: string;
|
|
330
|
+
emoji?: string;
|
|
331
|
+
avatar?: string;
|
|
332
|
+
avatarUrl?: string;
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
export type AgentsListResult = {
|
|
337
|
+
defaultId: string;
|
|
338
|
+
mainKey: string;
|
|
339
|
+
scope: string;
|
|
340
|
+
agents: GatewayAgentRow[];
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
export type GatewaySessionRow = {
|
|
344
|
+
key: string;
|
|
345
|
+
kind: "direct" | "group" | "global" | "unknown";
|
|
346
|
+
label?: string;
|
|
347
|
+
displayName?: string;
|
|
348
|
+
surface?: string;
|
|
349
|
+
subject?: string;
|
|
350
|
+
room?: string;
|
|
351
|
+
space?: string;
|
|
352
|
+
updatedAt: number | null;
|
|
353
|
+
sessionId?: string;
|
|
354
|
+
systemSent?: boolean;
|
|
355
|
+
abortedLastRun?: boolean;
|
|
356
|
+
thinkingLevel?: string;
|
|
357
|
+
verboseLevel?: string;
|
|
358
|
+
reasoningLevel?: string;
|
|
359
|
+
elevatedLevel?: string;
|
|
360
|
+
inputTokens?: number;
|
|
361
|
+
outputTokens?: number;
|
|
362
|
+
totalTokens?: number;
|
|
363
|
+
model?: string;
|
|
364
|
+
modelProvider?: string;
|
|
365
|
+
contextTokens?: number;
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
export type SessionsListResult = {
|
|
369
|
+
ts: number;
|
|
370
|
+
path: string;
|
|
371
|
+
count: number;
|
|
372
|
+
defaults: GatewaySessionsDefaults;
|
|
373
|
+
sessions: GatewaySessionRow[];
|
|
374
|
+
};
|
|
375
|
+
|
|
376
|
+
export type SessionsPatchResult = {
|
|
377
|
+
ok: true;
|
|
378
|
+
path: string;
|
|
379
|
+
key: string;
|
|
380
|
+
entry: {
|
|
381
|
+
sessionId: string;
|
|
382
|
+
updatedAt?: number;
|
|
383
|
+
thinkingLevel?: string;
|
|
384
|
+
verboseLevel?: string;
|
|
385
|
+
reasoningLevel?: string;
|
|
386
|
+
elevatedLevel?: string;
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
export type CronSchedule =
|
|
391
|
+
| { kind: "at"; atMs: number }
|
|
392
|
+
| { kind: "every"; everyMs: number; anchorMs?: number }
|
|
393
|
+
| { kind: "cron"; expr: string; tz?: string };
|
|
394
|
+
|
|
395
|
+
export type CronSessionTarget = "main" | "isolated";
|
|
396
|
+
export type CronWakeMode = "next-heartbeat" | "now";
|
|
397
|
+
|
|
398
|
+
export type CronPayload =
|
|
399
|
+
| { kind: "systemEvent"; text: string }
|
|
400
|
+
| {
|
|
401
|
+
kind: "agentTurn";
|
|
402
|
+
message: string;
|
|
403
|
+
thinking?: string;
|
|
404
|
+
timeoutSeconds?: number;
|
|
405
|
+
deliver?: boolean;
|
|
406
|
+
provider?: "last" | "whatsapp" | "telegram" | "discord" | "slack" | "signal" | "imessage" | "msteams";
|
|
407
|
+
to?: string;
|
|
408
|
+
bestEffortDeliver?: boolean;
|
|
409
|
+
};
|
|
410
|
+
|
|
411
|
+
export type CronIsolation = {
|
|
412
|
+
postToMainPrefix?: string;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
export type CronJobState = {
|
|
416
|
+
nextRunAtMs?: number;
|
|
417
|
+
runningAtMs?: number;
|
|
418
|
+
lastRunAtMs?: number;
|
|
419
|
+
lastStatus?: "ok" | "error" | "skipped";
|
|
420
|
+
lastError?: string;
|
|
421
|
+
lastDurationMs?: number;
|
|
422
|
+
};
|
|
423
|
+
|
|
424
|
+
export type CronJob = {
|
|
425
|
+
id: string;
|
|
426
|
+
agentId?: string;
|
|
427
|
+
name: string;
|
|
428
|
+
description?: string;
|
|
429
|
+
enabled: boolean;
|
|
430
|
+
deleteAfterRun?: boolean;
|
|
431
|
+
createdAtMs: number;
|
|
432
|
+
updatedAtMs: number;
|
|
433
|
+
schedule: CronSchedule;
|
|
434
|
+
sessionTarget: CronSessionTarget;
|
|
435
|
+
wakeMode: CronWakeMode;
|
|
436
|
+
payload: CronPayload;
|
|
437
|
+
isolation?: CronIsolation;
|
|
438
|
+
state?: CronJobState;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
export type CronStatus = {
|
|
442
|
+
enabled: boolean;
|
|
443
|
+
jobs: number;
|
|
444
|
+
nextWakeAtMs?: number | null;
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
export type CronRunLogEntry = {
|
|
448
|
+
ts: number;
|
|
449
|
+
jobId: string;
|
|
450
|
+
status: "ok" | "error" | "skipped";
|
|
451
|
+
durationMs?: number;
|
|
452
|
+
error?: string;
|
|
453
|
+
summary?: string;
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
export type SkillsStatusConfigCheck = {
|
|
457
|
+
path: string;
|
|
458
|
+
value: unknown;
|
|
459
|
+
satisfied: boolean;
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
export type SkillInstallOption = {
|
|
463
|
+
id: string;
|
|
464
|
+
kind: "brew" | "node" | "go" | "uv";
|
|
465
|
+
label: string;
|
|
466
|
+
bins: string[];
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
export type SkillStatusEntry = {
|
|
470
|
+
name: string;
|
|
471
|
+
description: string;
|
|
472
|
+
source: string;
|
|
473
|
+
filePath: string;
|
|
474
|
+
baseDir: string;
|
|
475
|
+
skillKey: string;
|
|
476
|
+
primaryEnv?: string;
|
|
477
|
+
emoji?: string;
|
|
478
|
+
homepage?: string;
|
|
479
|
+
always: boolean;
|
|
480
|
+
disabled: boolean;
|
|
481
|
+
blockedByAllowlist: boolean;
|
|
482
|
+
eligible: boolean;
|
|
483
|
+
requirements: {
|
|
484
|
+
bins: string[];
|
|
485
|
+
env: string[];
|
|
486
|
+
config: string[];
|
|
487
|
+
os: string[];
|
|
488
|
+
};
|
|
489
|
+
missing: {
|
|
490
|
+
bins: string[];
|
|
491
|
+
env: string[];
|
|
492
|
+
config: string[];
|
|
493
|
+
os: string[];
|
|
494
|
+
};
|
|
495
|
+
configChecks: SkillsStatusConfigCheck[];
|
|
496
|
+
install: SkillInstallOption[];
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
export type SkillStatusReport = {
|
|
500
|
+
workspaceDir: string;
|
|
501
|
+
managedSkillsDir: string;
|
|
502
|
+
skills: SkillStatusEntry[];
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
export type StatusSummary = Record<string, unknown>;
|
|
506
|
+
|
|
507
|
+
export type HealthSnapshot = Record<string, unknown>;
|
|
508
|
+
|
|
509
|
+
export type LogLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
510
|
+
|
|
511
|
+
export type LogEntry = {
|
|
512
|
+
raw: string;
|
|
513
|
+
time?: string | null;
|
|
514
|
+
level?: LogLevel | null;
|
|
515
|
+
subsystem?: string | null;
|
|
516
|
+
message?: string | null;
|
|
517
|
+
meta?: Record<string, unknown> | null;
|
|
518
|
+
};
|