mtmsdk 0.0.51 → 0.0.53
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 +21 -185
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +39 -215
- 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 +67 -138
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +68 -142
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +15 -107
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +22 -128
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +66 -303
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +48 -183
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +36 -150
- 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/sbmng/@tanstack/react-query.gen.d.ts +183 -209
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +25 -71
- 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 +10 -99
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +11 -143
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +13 -23
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +16 -38
- 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/auth-provider.d.ts +8 -1
- package/dist/supabase/auth-provider.d.ts.map +1 -1
- package/dist/supabase/context.d.ts +3844 -1
- package/dist/supabase/context.d.ts.map +1 -1
- package/dist/supabase/cursor-pagination.d.ts +4 -4
- package/dist/supabase/cursor-pagination.js +4 -4
- package/dist/supabase/schema/index.d.ts +1 -11
- package/dist/supabase/schema/index.d.ts.map +1 -1
- package/dist/supabase/schema/index.js +1 -19
- package/dist/supabase/schema/index.js.map +1 -1
- package/dist/supabase/schema/system-config.d.ts +12 -0
- package/dist/supabase/schema/system-config.d.ts.map +1 -0
- package/dist/supabase/schema/system-config.js +22 -0
- package/dist/supabase/schema/system-config.js.map +1 -0
- package/dist/supabase/supabase-client.d.ts +25 -591
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +59 -1191
- 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-mutation.d.ts +8 -8
- package/dist/supabase/use-sb-query/use-rpc-mutation.js +8 -8
- 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/contracts.d.ts +63 -0
- package/dist/types/contracts.d.ts.map +1 -0
- package/dist/types/contracts.js +17 -0
- package/dist/types/contracts.js.map +1 -0
- package/dist/types/database.schemas.d.ts +94 -786
- package/dist/types/database.schemas.d.ts.map +1 -1
- package/dist/types/database.schemas.js +30 -474
- package/dist/types/database.schemas.js.map +1 -1
- package/dist/types/database.types.d.ts +25 -596
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js +0 -10
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +22 -67
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +16 -5
- package/dist/types/index.js.map +1 -1
- package/package.json +17 -26
- 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/cloud-account/platform-configs.d.ts +0 -64
- package/dist/cloud-account/platform-configs.d.ts.map +0 -1
- package/dist/cloud-account/platform-configs.js +0 -44
- package/dist/cloud-account/platform-configs.js.map +0 -1
- package/dist/lib/aisdk/types.d.ts +0 -3
- package/dist/lib/aisdk/types.d.ts.map +0 -1
- package/dist/lib/aisdk/types.js +0 -5
- package/dist/lib/aisdk/types.js.map +0 -1
- package/dist/lib/logger/index.d.ts +0 -22
- package/dist/lib/logger/index.d.ts.map +0 -1
- package/dist/lib/logger/index.js +0 -7
- package/dist/lib/logger/index.js.map +0 -1
- package/dist/lib/schema.d.ts +0 -53
- package/dist/lib/schema.d.ts.map +0 -1
- package/dist/lib/schema.js +0 -37
- package/dist/lib/schema.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/client/client.gen.d.ts +0 -3
- package/dist/mtgate_api/client/client.gen.d.ts.map +0 -1
- package/dist/mtgate_api/client/client.gen.js +0 -236
- package/dist/mtgate_api/client/client.gen.js.map +0 -1
- package/dist/mtgate_api/client/index.d.ts +0 -9
- package/dist/mtgate_api/client/index.d.ts.map +0 -1
- package/dist/mtgate_api/client/index.js +0 -7
- package/dist/mtgate_api/client/index.js.map +0 -1
- package/dist/mtgate_api/client/types.gen.d.ts +0 -118
- package/dist/mtgate_api/client/types.gen.d.ts.map +0 -1
- package/dist/mtgate_api/client/types.gen.js +0 -3
- package/dist/mtgate_api/client/types.gen.js.map +0 -1
- package/dist/mtgate_api/client/utils.gen.d.ts +0 -34
- package/dist/mtgate_api/client/utils.gen.d.ts.map +0 -1
- package/dist/mtgate_api/client/utils.gen.js +0 -232
- package/dist/mtgate_api/client/utils.gen.js.map +0 -1
- package/dist/mtgate_api/client.gen.d.ts +0 -13
- package/dist/mtgate_api/client.gen.d.ts.map +0 -1
- package/dist/mtgate_api/client.gen.js +0 -4
- package/dist/mtgate_api/client.gen.js.map +0 -1
- package/dist/mtgate_api/core/auth.gen.d.ts +0 -19
- package/dist/mtgate_api/core/auth.gen.d.ts.map +0 -1
- package/dist/mtgate_api/core/auth.gen.js +0 -15
- package/dist/mtgate_api/core/auth.gen.js.map +0 -1
- package/dist/mtgate_api/core/bodySerializer.gen.d.ts +0 -26
- package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/mtgate_api/core/bodySerializer.gen.js +0 -58
- package/dist/mtgate_api/core/bodySerializer.gen.js.map +0 -1
- package/dist/mtgate_api/core/params.gen.d.ts +0 -44
- package/dist/mtgate_api/core/params.gen.d.ts.map +0 -1
- package/dist/mtgate_api/core/params.gen.js +0 -101
- package/dist/mtgate_api/core/params.gen.js.map +0 -1
- package/dist/mtgate_api/core/pathSerializer.gen.d.ts +0 -34
- package/dist/mtgate_api/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/mtgate_api/core/pathSerializer.gen.js +0 -115
- package/dist/mtgate_api/core/pathSerializer.gen.js.map +0 -1
- package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/mtgate_api/core/queryKeySerializer.gen.js +0 -100
- package/dist/mtgate_api/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/mtgate_api/core/serverSentEvents.gen.js +0 -138
- package/dist/mtgate_api/core/serverSentEvents.gen.js.map +0 -1
- package/dist/mtgate_api/core/types.gen.d.ts +0 -79
- package/dist/mtgate_api/core/types.gen.d.ts.map +0 -1
- package/dist/mtgate_api/core/types.gen.js +0 -3
- package/dist/mtgate_api/core/types.gen.js.map +0 -1
- package/dist/mtgate_api/core/utils.gen.d.ts +0 -20
- package/dist/mtgate_api/core/utils.gen.d.ts.map +0 -1
- package/dist/mtgate_api/core/utils.gen.js +0 -88
- package/dist/mtgate_api/core/utils.gen.js.map +0 -1
- package/dist/mtgate_api/index.d.ts +0 -3
- package/dist/mtgate_api/index.d.ts.map +0 -1
- package/dist/mtgate_api/index.js +0 -3
- package/dist/mtgate_api/index.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/sdk.gen.d.ts +0 -23
- package/dist/mtgate_api/sdk.gen.d.ts.map +0 -1
- package/dist/mtgate_api/sdk.gen.js +0 -31
- package/dist/mtgate_api/sdk.gen.js.map +0 -1
- package/dist/mtgate_api/types.gen.d.ts +0 -203
- package/dist/mtgate_api/types.gen.d.ts.map +0 -1
- package/dist/mtgate_api/types.gen.js +0 -3
- package/dist/mtgate_api/types.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/openclaw/client-info.d.ts +0 -38
- package/dist/openclaw/client-info.d.ts.map +0 -1
- package/dist/openclaw/client-info.js +0 -38
- package/dist/openclaw/client-info.js.map +0 -1
- package/dist/openclaw/device-auth-utils.d.ts +0 -12
- package/dist/openclaw/device-auth-utils.d.ts.map +0 -1
- package/dist/openclaw/device-auth-utils.js +0 -16
- package/dist/openclaw/device-auth-utils.js.map +0 -1
- package/dist/openclaw/device-auth.d.ts +0 -21
- package/dist/openclaw/device-auth.d.ts.map +0 -1
- package/dist/openclaw/device-auth.js +0 -87
- package/dist/openclaw/device-auth.js.map +0 -1
- package/dist/openclaw/device-identity.d.ts +0 -8
- package/dist/openclaw/device-identity.d.ts.map +0 -1
- package/dist/openclaw/device-identity.js +0 -87
- package/dist/openclaw/device-identity.js.map +0 -1
- package/dist/openclaw/gateway.d.ts +0 -100
- package/dist/openclaw/gateway.d.ts.map +0 -1
- package/dist/openclaw/gateway.js +0 -302
- package/dist/openclaw/gateway.js.map +0 -1
- package/dist/openclaw/types.d.ts +0 -473
- package/dist/openclaw/types.d.ts.map +0 -1
- package/dist/openclaw/types.js +0 -2
- package/dist/openclaw/types.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/cloud-account/platform-configs.ts +0 -73
- package/src/gomtmapi/@tanstack/react-query.gen.ts +0 -575
- package/src/gomtmapi/client/client.gen.ts +0 -311
- package/src/gomtmapi/client/index.ts +0 -25
- package/src/gomtmapi/client/types.gen.ts +0 -241
- package/src/gomtmapi/client/utils.gen.ts +0 -332
- package/src/gomtmapi/client.gen.ts +0 -16
- package/src/gomtmapi/core/auth.gen.ts +0 -42
- package/src/gomtmapi/core/bodySerializer.gen.ts +0 -100
- package/src/gomtmapi/core/params.gen.ts +0 -176
- package/src/gomtmapi/core/pathSerializer.gen.ts +0 -181
- package/src/gomtmapi/core/queryKeySerializer.gen.ts +0 -136
- package/src/gomtmapi/core/serverSentEvents.gen.ts +0 -266
- package/src/gomtmapi/core/types.gen.ts +0 -118
- package/src/gomtmapi/core/utils.gen.ts +0 -143
- package/src/gomtmapi/index.ts +0 -4
- package/src/gomtmapi/schemas.gen.ts +0 -596
- package/src/gomtmapi/sdk.gen.ts +0 -399
- package/src/gomtmapi/types.gen.ts +0 -962
- package/src/gomtmapi/zod.gen.ts +0 -507
- package/src/index.ts +0 -5
- package/src/lib/aisdk/types.ts +0 -8
- package/src/lib/logger/index.ts +0 -8
- package/src/lib/schema.ts +0 -50
- package/src/lib/utils.ts +0 -54
- package/src/mtgate_api/@tanstack/react-query.gen.ts +0 -142
- package/src/mtgate_api/client/client.gen.ts +0 -311
- package/src/mtgate_api/client/index.ts +0 -25
- package/src/mtgate_api/client/types.gen.ts +0 -241
- package/src/mtgate_api/client/utils.gen.ts +0 -332
- package/src/mtgate_api/client.gen.ts +0 -16
- package/src/mtgate_api/core/auth.gen.ts +0 -42
- package/src/mtgate_api/core/bodySerializer.gen.ts +0 -100
- package/src/mtgate_api/core/params.gen.ts +0 -176
- package/src/mtgate_api/core/pathSerializer.gen.ts +0 -181
- package/src/mtgate_api/core/queryKeySerializer.gen.ts +0 -136
- package/src/mtgate_api/core/serverSentEvents.gen.ts +0 -266
- package/src/mtgate_api/core/types.gen.ts +0 -118
- package/src/mtgate_api/core/utils.gen.ts +0 -143
- package/src/mtgate_api/index.ts +0 -4
- package/src/mtgate_api/schemas.gen.ts +0 -290
- package/src/mtgate_api/sdk.gen.ts +0 -54
- package/src/mtgate_api/types.gen.ts +0 -239
- 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/openclaw/client-info.ts +0 -54
- package/src/openclaw/device-auth-utils.ts +0 -26
- package/src/openclaw/device-auth.ts +0 -99
- package/src/openclaw/device-identity.ts +0 -108
- package/src/openclaw/gateway.ts +0 -392
- package/src/openclaw/types.ts +0 -518
- package/src/sbmng/@tanstack/react-query.gen.ts +0 -3017
- package/src/sbmng/client/client.gen.ts +0 -311
- package/src/sbmng/client/index.ts +0 -25
- package/src/sbmng/client/types.gen.ts +0 -241
- package/src/sbmng/client/utils.gen.ts +0 -332
- package/src/sbmng/client.gen.ts +0 -16
- package/src/sbmng/core/auth.gen.ts +0 -42
- package/src/sbmng/core/bodySerializer.gen.ts +0 -100
- package/src/sbmng/core/params.gen.ts +0 -176
- package/src/sbmng/core/pathSerializer.gen.ts +0 -181
- package/src/sbmng/core/queryKeySerializer.gen.ts +0 -136
- package/src/sbmng/core/serverSentEvents.gen.ts +0 -266
- package/src/sbmng/core/types.gen.ts +0 -118
- package/src/sbmng/core/utils.gen.ts +0 -143
- package/src/sbmng/index.ts +0 -4
- package/src/sbmng/schemas.gen.ts +0 -9805
- package/src/sbmng/sdk.gen.ts +0 -1780
- package/src/sbmng/types.gen.ts +0 -8016
- package/src/supabase/auth-provider.tsx +0 -67
- package/src/supabase/context.tsx +0 -51
- package/src/supabase/cursor-pagination.ts +0 -155
- package/src/supabase/schema/browser.ts +0 -45
- package/src/supabase/schema/index.ts +0 -25
- package/src/supabase/supabase-client.ts +0 -30
- package/src/supabase/supabase.ts +0 -67
- package/src/supabase/use-sb-query/build-query-opts.ts +0 -56
- package/src/supabase/use-sb-query/key.ts +0 -57
- package/src/supabase/use-sb-query/prefetch.ts +0 -59
- package/src/supabase/use-sb-query/use-query.ts +0 -340
- package/src/supabase/use-sb-query/use-rpc-mutation.ts +0 -83
- package/src/supabase/use-sb-query/use-rpc-query.ts +0 -231
- package/src/supabase/utils.ts +0 -75
- package/src/types/database.schemas.ts +0 -4378
- package/src/types/database.types.ts +0 -4288
- package/src/types/index.ts +0 -102
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import { type DefaultError, queryOptions, type UseMutationOptions } from '@tanstack/react-query';
|
|
4
|
-
|
|
5
|
-
import { client } from '../client.gen';
|
|
6
|
-
import { adkAgentRun, agentChatList, agentQuickAction, agentRun, browserOpen, humanTasksList, mcpApiHello, type Options } from '../sdk.gen';
|
|
7
|
-
import type { AdkAgentRunData, AdkAgentRunResponse, AgentChatListData, AgentChatListResponse, AgentQuickActionData, AgentQuickActionResponse, AgentRunData, AgentRunResponse, BrowserOpenData, BrowserOpenResponse, HumanTasksListData, HumanTasksListResponse, McpApiHelloData } from '../types.gen';
|
|
8
|
-
|
|
9
|
-
export const adkAgentRunMutation = (options?: Partial<Options<AdkAgentRunData>>): UseMutationOptions<AdkAgentRunResponse, DefaultError, Options<AdkAgentRunData>> => {
|
|
10
|
-
const mutationOptions: UseMutationOptions<AdkAgentRunResponse, DefaultError, Options<AdkAgentRunData>> = {
|
|
11
|
-
mutationFn: async (fnOptions) => {
|
|
12
|
-
const { data } = await adkAgentRun({
|
|
13
|
-
...options,
|
|
14
|
-
...fnOptions,
|
|
15
|
-
throwOnError: true
|
|
16
|
-
});
|
|
17
|
-
return data;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
return mutationOptions;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const browserOpenMutation = (options?: Partial<Options<BrowserOpenData>>): UseMutationOptions<BrowserOpenResponse, DefaultError, Options<BrowserOpenData>> => {
|
|
24
|
-
const mutationOptions: UseMutationOptions<BrowserOpenResponse, DefaultError, Options<BrowserOpenData>> = {
|
|
25
|
-
mutationFn: async (fnOptions) => {
|
|
26
|
-
const { data } = await browserOpen({
|
|
27
|
-
...options,
|
|
28
|
-
...fnOptions,
|
|
29
|
-
throwOnError: true
|
|
30
|
-
});
|
|
31
|
-
return data;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
return mutationOptions;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type QueryKey<TOptions extends Options> = [
|
|
38
|
-
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
39
|
-
_id: string;
|
|
40
|
-
_infinite?: boolean;
|
|
41
|
-
tags?: ReadonlyArray<string>;
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
|
|
45
|
-
const createQueryKey = <TOptions extends Options>(id: string, options?: TOptions, infinite?: boolean, tags?: ReadonlyArray<string>): [
|
|
46
|
-
QueryKey<TOptions>[0]
|
|
47
|
-
] => {
|
|
48
|
-
const params: QueryKey<TOptions>[0] = { _id: id, baseUrl: options?.baseUrl || (options?.client ?? client).getConfig().baseUrl } as QueryKey<TOptions>[0];
|
|
49
|
-
if (infinite) {
|
|
50
|
-
params._infinite = infinite;
|
|
51
|
-
}
|
|
52
|
-
if (tags) {
|
|
53
|
-
params.tags = tags;
|
|
54
|
-
}
|
|
55
|
-
if (options?.body) {
|
|
56
|
-
params.body = options.body;
|
|
57
|
-
}
|
|
58
|
-
if (options?.headers) {
|
|
59
|
-
params.headers = options.headers;
|
|
60
|
-
}
|
|
61
|
-
if (options?.path) {
|
|
62
|
-
params.path = options.path;
|
|
63
|
-
}
|
|
64
|
-
if (options?.query) {
|
|
65
|
-
params.query = options.query;
|
|
66
|
-
}
|
|
67
|
-
return [params];
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export const agentChatListQueryKey = (options?: Options<AgentChatListData>) => createQueryKey('agentChatList', options);
|
|
71
|
-
|
|
72
|
-
export const agentChatListOptions = (options?: Options<AgentChatListData>) => queryOptions<AgentChatListResponse, DefaultError, AgentChatListResponse, ReturnType<typeof agentChatListQueryKey>>({
|
|
73
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
74
|
-
const { data } = await agentChatList({
|
|
75
|
-
...options,
|
|
76
|
-
...queryKey[0],
|
|
77
|
-
signal,
|
|
78
|
-
throwOnError: true
|
|
79
|
-
});
|
|
80
|
-
return data;
|
|
81
|
-
},
|
|
82
|
-
queryKey: agentChatListQueryKey(options)
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
export const agentRunMutation = (options?: Partial<Options<AgentRunData>>): UseMutationOptions<AgentRunResponse, DefaultError, Options<AgentRunData>> => {
|
|
86
|
-
const mutationOptions: UseMutationOptions<AgentRunResponse, DefaultError, Options<AgentRunData>> = {
|
|
87
|
-
mutationFn: async (fnOptions) => {
|
|
88
|
-
const { data } = await agentRun({
|
|
89
|
-
...options,
|
|
90
|
-
...fnOptions,
|
|
91
|
-
throwOnError: true
|
|
92
|
-
});
|
|
93
|
-
return data;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
return mutationOptions;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export const agentQuickActionQueryKey = (options?: Options<AgentQuickActionData>) => createQueryKey('agentQuickAction', options);
|
|
100
|
-
|
|
101
|
-
export const agentQuickActionOptions = (options?: Options<AgentQuickActionData>) => queryOptions<AgentQuickActionResponse, DefaultError, AgentQuickActionResponse, ReturnType<typeof agentQuickActionQueryKey>>({
|
|
102
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
103
|
-
const { data } = await agentQuickAction({
|
|
104
|
-
...options,
|
|
105
|
-
...queryKey[0],
|
|
106
|
-
signal,
|
|
107
|
-
throwOnError: true
|
|
108
|
-
});
|
|
109
|
-
return data;
|
|
110
|
-
},
|
|
111
|
-
queryKey: agentQuickActionQueryKey(options)
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
export const humanTasksListQueryKey = (options?: Options<HumanTasksListData>) => createQueryKey('humanTasksList', options);
|
|
115
|
-
|
|
116
|
-
export const humanTasksListOptions = (options?: Options<HumanTasksListData>) => queryOptions<HumanTasksListResponse, DefaultError, HumanTasksListResponse, ReturnType<typeof humanTasksListQueryKey>>({
|
|
117
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
118
|
-
const { data } = await humanTasksList({
|
|
119
|
-
...options,
|
|
120
|
-
...queryKey[0],
|
|
121
|
-
signal,
|
|
122
|
-
throwOnError: true
|
|
123
|
-
});
|
|
124
|
-
return data;
|
|
125
|
-
},
|
|
126
|
-
queryKey: humanTasksListQueryKey(options)
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
export const mcpApiHelloQueryKey = (options: Options<McpApiHelloData>) => createQueryKey('mcpApiHello', options);
|
|
130
|
-
|
|
131
|
-
export const mcpApiHelloOptions = (options: Options<McpApiHelloData>) => queryOptions<unknown, DefaultError, unknown, ReturnType<typeof mcpApiHelloQueryKey>>({
|
|
132
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
133
|
-
const { data } = await mcpApiHello({
|
|
134
|
-
...options,
|
|
135
|
-
...queryKey[0],
|
|
136
|
-
signal,
|
|
137
|
-
throwOnError: true
|
|
138
|
-
});
|
|
139
|
-
return data;
|
|
140
|
-
},
|
|
141
|
-
queryKey: mcpApiHelloQueryKey(options)
|
|
142
|
-
});
|
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import { createSseClient } from '../core/serverSentEvents.gen';
|
|
4
|
-
import type { HttpMethod } from '../core/types.gen';
|
|
5
|
-
import { getValidRequestBody } from '../core/utils.gen';
|
|
6
|
-
import type {
|
|
7
|
-
Client,
|
|
8
|
-
Config,
|
|
9
|
-
RequestOptions,
|
|
10
|
-
ResolvedRequestOptions,
|
|
11
|
-
} from './types.gen';
|
|
12
|
-
import {
|
|
13
|
-
buildUrl,
|
|
14
|
-
createConfig,
|
|
15
|
-
createInterceptors,
|
|
16
|
-
getParseAs,
|
|
17
|
-
mergeConfigs,
|
|
18
|
-
mergeHeaders,
|
|
19
|
-
setAuthParams,
|
|
20
|
-
} from './utils.gen';
|
|
21
|
-
|
|
22
|
-
type ReqInit = Omit<RequestInit, 'body' | 'headers'> & {
|
|
23
|
-
body?: any;
|
|
24
|
-
headers: ReturnType<typeof mergeHeaders>;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const createClient = (config: Config = {}): Client => {
|
|
28
|
-
let _config = mergeConfigs(createConfig(), config);
|
|
29
|
-
|
|
30
|
-
const getConfig = (): Config => ({ ..._config });
|
|
31
|
-
|
|
32
|
-
const setConfig = (config: Config): Config => {
|
|
33
|
-
_config = mergeConfigs(_config, config);
|
|
34
|
-
return getConfig();
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const interceptors = createInterceptors<
|
|
38
|
-
Request,
|
|
39
|
-
Response,
|
|
40
|
-
unknown,
|
|
41
|
-
ResolvedRequestOptions
|
|
42
|
-
>();
|
|
43
|
-
|
|
44
|
-
const beforeRequest = async (options: RequestOptions) => {
|
|
45
|
-
const opts = {
|
|
46
|
-
..._config,
|
|
47
|
-
...options,
|
|
48
|
-
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
49
|
-
headers: mergeHeaders(_config.headers, options.headers),
|
|
50
|
-
serializedBody: undefined,
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
if (opts.security) {
|
|
54
|
-
await setAuthParams({
|
|
55
|
-
...opts,
|
|
56
|
-
security: opts.security,
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
if (opts.requestValidator) {
|
|
61
|
-
await opts.requestValidator(opts);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
if (opts.body !== undefined && opts.bodySerializer) {
|
|
65
|
-
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// remove Content-Type header if body is empty to avoid sending invalid requests
|
|
69
|
-
if (opts.body === undefined || opts.serializedBody === '') {
|
|
70
|
-
opts.headers.delete('Content-Type');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
const url = buildUrl(opts);
|
|
74
|
-
|
|
75
|
-
return { opts, url };
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
const request: Client['request'] = async (options) => {
|
|
79
|
-
// @ts-expect-error
|
|
80
|
-
const { opts, url } = await beforeRequest(options);
|
|
81
|
-
const requestInit: ReqInit = {
|
|
82
|
-
redirect: 'follow',
|
|
83
|
-
...opts,
|
|
84
|
-
body: getValidRequestBody(opts),
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
let request = new Request(url, requestInit);
|
|
88
|
-
|
|
89
|
-
for (const fn of interceptors.request.fns) {
|
|
90
|
-
if (fn) {
|
|
91
|
-
request = await fn(request, opts);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// fetch must be assigned here, otherwise it would throw the error:
|
|
96
|
-
// TypeError: Failed to execute 'fetch' on 'Window': Illegal invocation
|
|
97
|
-
const _fetch = opts.fetch!;
|
|
98
|
-
let response: Response;
|
|
99
|
-
|
|
100
|
-
try {
|
|
101
|
-
response = await _fetch(request);
|
|
102
|
-
} catch (error) {
|
|
103
|
-
// Handle fetch exceptions (AbortError, network errors, etc.)
|
|
104
|
-
let finalError = error;
|
|
105
|
-
|
|
106
|
-
for (const fn of interceptors.error.fns) {
|
|
107
|
-
if (fn) {
|
|
108
|
-
finalError = (await fn(
|
|
109
|
-
error,
|
|
110
|
-
undefined as any,
|
|
111
|
-
request,
|
|
112
|
-
opts,
|
|
113
|
-
)) as unknown;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
finalError = finalError || ({} as unknown);
|
|
118
|
-
|
|
119
|
-
if (opts.throwOnError) {
|
|
120
|
-
throw finalError;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Return error response
|
|
124
|
-
return opts.responseStyle === 'data'
|
|
125
|
-
? undefined
|
|
126
|
-
: {
|
|
127
|
-
error: finalError,
|
|
128
|
-
request,
|
|
129
|
-
response: undefined as any,
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
for (const fn of interceptors.response.fns) {
|
|
134
|
-
if (fn) {
|
|
135
|
-
response = await fn(response, request, opts);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
const result = {
|
|
140
|
-
request,
|
|
141
|
-
response,
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
if (response.ok) {
|
|
145
|
-
const parseAs =
|
|
146
|
-
(opts.parseAs === 'auto'
|
|
147
|
-
? getParseAs(response.headers.get('Content-Type'))
|
|
148
|
-
: opts.parseAs) ?? 'json';
|
|
149
|
-
|
|
150
|
-
if (
|
|
151
|
-
response.status === 204 ||
|
|
152
|
-
response.headers.get('Content-Length') === '0'
|
|
153
|
-
) {
|
|
154
|
-
let emptyData: any;
|
|
155
|
-
switch (parseAs) {
|
|
156
|
-
case 'arrayBuffer':
|
|
157
|
-
case 'blob':
|
|
158
|
-
case 'text':
|
|
159
|
-
emptyData = await response[parseAs]();
|
|
160
|
-
break;
|
|
161
|
-
case 'formData':
|
|
162
|
-
emptyData = new FormData();
|
|
163
|
-
break;
|
|
164
|
-
case 'stream':
|
|
165
|
-
emptyData = response.body;
|
|
166
|
-
break;
|
|
167
|
-
case 'json':
|
|
168
|
-
default:
|
|
169
|
-
emptyData = {};
|
|
170
|
-
break;
|
|
171
|
-
}
|
|
172
|
-
return opts.responseStyle === 'data'
|
|
173
|
-
? emptyData
|
|
174
|
-
: {
|
|
175
|
-
data: emptyData,
|
|
176
|
-
...result,
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
let data: any;
|
|
181
|
-
switch (parseAs) {
|
|
182
|
-
case 'arrayBuffer':
|
|
183
|
-
case 'blob':
|
|
184
|
-
case 'formData':
|
|
185
|
-
case 'text':
|
|
186
|
-
data = await response[parseAs]();
|
|
187
|
-
break;
|
|
188
|
-
case 'json': {
|
|
189
|
-
// Some servers return 200 with no Content-Length and empty body.
|
|
190
|
-
// response.json() would throw; read as text and parse if non-empty.
|
|
191
|
-
const text = await response.text();
|
|
192
|
-
data = text ? JSON.parse(text) : {};
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
case 'stream':
|
|
196
|
-
return opts.responseStyle === 'data'
|
|
197
|
-
? response.body
|
|
198
|
-
: {
|
|
199
|
-
data: response.body,
|
|
200
|
-
...result,
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
if (parseAs === 'json') {
|
|
205
|
-
if (opts.responseValidator) {
|
|
206
|
-
await opts.responseValidator(data);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
if (opts.responseTransformer) {
|
|
210
|
-
data = await opts.responseTransformer(data);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
return opts.responseStyle === 'data'
|
|
215
|
-
? data
|
|
216
|
-
: {
|
|
217
|
-
data,
|
|
218
|
-
...result,
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
const textError = await response.text();
|
|
223
|
-
let jsonError: unknown;
|
|
224
|
-
|
|
225
|
-
try {
|
|
226
|
-
jsonError = JSON.parse(textError);
|
|
227
|
-
} catch {
|
|
228
|
-
// noop
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
const error = jsonError ?? textError;
|
|
232
|
-
let finalError = error;
|
|
233
|
-
|
|
234
|
-
for (const fn of interceptors.error.fns) {
|
|
235
|
-
if (fn) {
|
|
236
|
-
finalError = (await fn(error, response, request, opts)) as string;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
finalError = finalError || ({} as string);
|
|
241
|
-
|
|
242
|
-
if (opts.throwOnError) {
|
|
243
|
-
throw finalError;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
// TODO: we probably want to return error and improve types
|
|
247
|
-
return opts.responseStyle === 'data'
|
|
248
|
-
? undefined
|
|
249
|
-
: {
|
|
250
|
-
error: finalError,
|
|
251
|
-
...result,
|
|
252
|
-
};
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
const makeMethodFn =
|
|
256
|
-
(method: Uppercase<HttpMethod>) => (options: RequestOptions) =>
|
|
257
|
-
request({ ...options, method });
|
|
258
|
-
|
|
259
|
-
const makeSseFn =
|
|
260
|
-
(method: Uppercase<HttpMethod>) => async (options: RequestOptions) => {
|
|
261
|
-
const { opts, url } = await beforeRequest(options);
|
|
262
|
-
return createSseClient({
|
|
263
|
-
...opts,
|
|
264
|
-
body: opts.body as BodyInit | null | undefined,
|
|
265
|
-
headers: opts.headers as unknown as Record<string, string>,
|
|
266
|
-
method,
|
|
267
|
-
onRequest: async (url, init) => {
|
|
268
|
-
let request = new Request(url, init);
|
|
269
|
-
for (const fn of interceptors.request.fns) {
|
|
270
|
-
if (fn) {
|
|
271
|
-
request = await fn(request, opts);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
return request;
|
|
275
|
-
},
|
|
276
|
-
serializedBody: getValidRequestBody(opts) as
|
|
277
|
-
| BodyInit
|
|
278
|
-
| null
|
|
279
|
-
| undefined,
|
|
280
|
-
url,
|
|
281
|
-
});
|
|
282
|
-
};
|
|
283
|
-
|
|
284
|
-
return {
|
|
285
|
-
buildUrl,
|
|
286
|
-
connect: makeMethodFn('CONNECT'),
|
|
287
|
-
delete: makeMethodFn('DELETE'),
|
|
288
|
-
get: makeMethodFn('GET'),
|
|
289
|
-
getConfig,
|
|
290
|
-
head: makeMethodFn('HEAD'),
|
|
291
|
-
interceptors,
|
|
292
|
-
options: makeMethodFn('OPTIONS'),
|
|
293
|
-
patch: makeMethodFn('PATCH'),
|
|
294
|
-
post: makeMethodFn('POST'),
|
|
295
|
-
put: makeMethodFn('PUT'),
|
|
296
|
-
request,
|
|
297
|
-
setConfig,
|
|
298
|
-
sse: {
|
|
299
|
-
connect: makeSseFn('CONNECT'),
|
|
300
|
-
delete: makeSseFn('DELETE'),
|
|
301
|
-
get: makeSseFn('GET'),
|
|
302
|
-
head: makeSseFn('HEAD'),
|
|
303
|
-
options: makeSseFn('OPTIONS'),
|
|
304
|
-
patch: makeSseFn('PATCH'),
|
|
305
|
-
post: makeSseFn('POST'),
|
|
306
|
-
put: makeSseFn('PUT'),
|
|
307
|
-
trace: makeSseFn('TRACE'),
|
|
308
|
-
},
|
|
309
|
-
trace: makeMethodFn('TRACE'),
|
|
310
|
-
} as Client;
|
|
311
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
export type { Auth } from '../core/auth.gen';
|
|
4
|
-
export type { QuerySerializerOptions } from '../core/bodySerializer.gen';
|
|
5
|
-
export {
|
|
6
|
-
formDataBodySerializer,
|
|
7
|
-
jsonBodySerializer,
|
|
8
|
-
urlSearchParamsBodySerializer,
|
|
9
|
-
} from '../core/bodySerializer.gen';
|
|
10
|
-
export { buildClientParams } from '../core/params.gen';
|
|
11
|
-
export { serializeQueryKeyValue } from '../core/queryKeySerializer.gen';
|
|
12
|
-
export { createClient } from './client.gen';
|
|
13
|
-
export type {
|
|
14
|
-
Client,
|
|
15
|
-
ClientOptions,
|
|
16
|
-
Config,
|
|
17
|
-
CreateClientConfig,
|
|
18
|
-
Options,
|
|
19
|
-
RequestOptions,
|
|
20
|
-
RequestResult,
|
|
21
|
-
ResolvedRequestOptions,
|
|
22
|
-
ResponseStyle,
|
|
23
|
-
TDataShape,
|
|
24
|
-
} from './types.gen';
|
|
25
|
-
export { createConfig, mergeHeaders } from './utils.gen';
|