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
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import type { Auth, AuthToken } from './auth.gen';
|
|
4
|
-
import type {
|
|
5
|
-
BodySerializer,
|
|
6
|
-
QuerySerializer,
|
|
7
|
-
QuerySerializerOptions,
|
|
8
|
-
} from './bodySerializer.gen';
|
|
9
|
-
|
|
10
|
-
export type HttpMethod =
|
|
11
|
-
| 'connect'
|
|
12
|
-
| 'delete'
|
|
13
|
-
| 'get'
|
|
14
|
-
| 'head'
|
|
15
|
-
| 'options'
|
|
16
|
-
| 'patch'
|
|
17
|
-
| 'post'
|
|
18
|
-
| 'put'
|
|
19
|
-
| 'trace';
|
|
20
|
-
|
|
21
|
-
export type Client<
|
|
22
|
-
RequestFn = never,
|
|
23
|
-
Config = unknown,
|
|
24
|
-
MethodFn = never,
|
|
25
|
-
BuildUrlFn = never,
|
|
26
|
-
SseFn = never,
|
|
27
|
-
> = {
|
|
28
|
-
/**
|
|
29
|
-
* Returns the final request URL.
|
|
30
|
-
*/
|
|
31
|
-
buildUrl: BuildUrlFn;
|
|
32
|
-
getConfig: () => Config;
|
|
33
|
-
request: RequestFn;
|
|
34
|
-
setConfig: (config: Config) => Config;
|
|
35
|
-
} & {
|
|
36
|
-
[K in HttpMethod]: MethodFn;
|
|
37
|
-
} & ([SseFn] extends [never]
|
|
38
|
-
? { sse?: never }
|
|
39
|
-
: { sse: { [K in HttpMethod]: SseFn } });
|
|
40
|
-
|
|
41
|
-
export interface Config {
|
|
42
|
-
/**
|
|
43
|
-
* Auth token or a function returning auth token. The resolved value will be
|
|
44
|
-
* added to the request payload as defined by its `security` array.
|
|
45
|
-
*/
|
|
46
|
-
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
47
|
-
/**
|
|
48
|
-
* A function for serializing request body parameter. By default,
|
|
49
|
-
* {@link JSON.stringify()} will be used.
|
|
50
|
-
*/
|
|
51
|
-
bodySerializer?: BodySerializer | null;
|
|
52
|
-
/**
|
|
53
|
-
* An object containing any HTTP headers that you want to pre-populate your
|
|
54
|
-
* `Headers` object with.
|
|
55
|
-
*
|
|
56
|
-
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
57
|
-
*/
|
|
58
|
-
headers?:
|
|
59
|
-
| RequestInit['headers']
|
|
60
|
-
| Record<
|
|
61
|
-
string,
|
|
62
|
-
| string
|
|
63
|
-
| number
|
|
64
|
-
| boolean
|
|
65
|
-
| (string | number | boolean)[]
|
|
66
|
-
| null
|
|
67
|
-
| undefined
|
|
68
|
-
| unknown
|
|
69
|
-
>;
|
|
70
|
-
/**
|
|
71
|
-
* The request method.
|
|
72
|
-
*
|
|
73
|
-
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
74
|
-
*/
|
|
75
|
-
method?: Uppercase<HttpMethod>;
|
|
76
|
-
/**
|
|
77
|
-
* A function for serializing request query parameters. By default, arrays
|
|
78
|
-
* will be exploded in form style, objects will be exploded in deepObject
|
|
79
|
-
* style, and reserved characters are percent-encoded.
|
|
80
|
-
*
|
|
81
|
-
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
82
|
-
* API function is used.
|
|
83
|
-
*
|
|
84
|
-
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
85
|
-
*/
|
|
86
|
-
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
87
|
-
/**
|
|
88
|
-
* A function validating request data. This is useful if you want to ensure
|
|
89
|
-
* the request conforms to the desired shape, so it can be safely sent to
|
|
90
|
-
* the server.
|
|
91
|
-
*/
|
|
92
|
-
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
93
|
-
/**
|
|
94
|
-
* A function transforming response data before it's returned. This is useful
|
|
95
|
-
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
96
|
-
*/
|
|
97
|
-
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
98
|
-
/**
|
|
99
|
-
* A function validating response data. This is useful if you want to ensure
|
|
100
|
-
* the response conforms to the desired shape, so it can be safely passed to
|
|
101
|
-
* the transformers and returned to the user.
|
|
102
|
-
*/
|
|
103
|
-
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never]
|
|
107
|
-
? true
|
|
108
|
-
: [T] extends [never | undefined]
|
|
109
|
-
? [undefined] extends [T]
|
|
110
|
-
? false
|
|
111
|
-
: true
|
|
112
|
-
: false;
|
|
113
|
-
|
|
114
|
-
export type OmitNever<T extends Record<string, unknown>> = {
|
|
115
|
-
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true
|
|
116
|
-
? never
|
|
117
|
-
: K]: T[K];
|
|
118
|
-
};
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import type { Auth, AuthToken } from './auth.gen';
|
|
4
|
+
import type {
|
|
5
|
+
BodySerializer,
|
|
6
|
+
QuerySerializer,
|
|
7
|
+
QuerySerializerOptions,
|
|
8
|
+
} from './bodySerializer.gen';
|
|
9
|
+
|
|
10
|
+
export type HttpMethod =
|
|
11
|
+
| 'connect'
|
|
12
|
+
| 'delete'
|
|
13
|
+
| 'get'
|
|
14
|
+
| 'head'
|
|
15
|
+
| 'options'
|
|
16
|
+
| 'patch'
|
|
17
|
+
| 'post'
|
|
18
|
+
| 'put'
|
|
19
|
+
| 'trace';
|
|
20
|
+
|
|
21
|
+
export type Client<
|
|
22
|
+
RequestFn = never,
|
|
23
|
+
Config = unknown,
|
|
24
|
+
MethodFn = never,
|
|
25
|
+
BuildUrlFn = never,
|
|
26
|
+
SseFn = never,
|
|
27
|
+
> = {
|
|
28
|
+
/**
|
|
29
|
+
* Returns the final request URL.
|
|
30
|
+
*/
|
|
31
|
+
buildUrl: BuildUrlFn;
|
|
32
|
+
getConfig: () => Config;
|
|
33
|
+
request: RequestFn;
|
|
34
|
+
setConfig: (config: Config) => Config;
|
|
35
|
+
} & {
|
|
36
|
+
[K in HttpMethod]: MethodFn;
|
|
37
|
+
} & ([SseFn] extends [never]
|
|
38
|
+
? { sse?: never }
|
|
39
|
+
: { sse: { [K in HttpMethod]: SseFn } });
|
|
40
|
+
|
|
41
|
+
export interface Config {
|
|
42
|
+
/**
|
|
43
|
+
* Auth token or a function returning auth token. The resolved value will be
|
|
44
|
+
* added to the request payload as defined by its `security` array.
|
|
45
|
+
*/
|
|
46
|
+
auth?: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken;
|
|
47
|
+
/**
|
|
48
|
+
* A function for serializing request body parameter. By default,
|
|
49
|
+
* {@link JSON.stringify()} will be used.
|
|
50
|
+
*/
|
|
51
|
+
bodySerializer?: BodySerializer | null;
|
|
52
|
+
/**
|
|
53
|
+
* An object containing any HTTP headers that you want to pre-populate your
|
|
54
|
+
* `Headers` object with.
|
|
55
|
+
*
|
|
56
|
+
* {@link https://developer.mozilla.org/docs/Web/API/Headers/Headers#init See more}
|
|
57
|
+
*/
|
|
58
|
+
headers?:
|
|
59
|
+
| RequestInit['headers']
|
|
60
|
+
| Record<
|
|
61
|
+
string,
|
|
62
|
+
| string
|
|
63
|
+
| number
|
|
64
|
+
| boolean
|
|
65
|
+
| (string | number | boolean)[]
|
|
66
|
+
| null
|
|
67
|
+
| undefined
|
|
68
|
+
| unknown
|
|
69
|
+
>;
|
|
70
|
+
/**
|
|
71
|
+
* The request method.
|
|
72
|
+
*
|
|
73
|
+
* {@link https://developer.mozilla.org/docs/Web/API/fetch#method See more}
|
|
74
|
+
*/
|
|
75
|
+
method?: Uppercase<HttpMethod>;
|
|
76
|
+
/**
|
|
77
|
+
* A function for serializing request query parameters. By default, arrays
|
|
78
|
+
* will be exploded in form style, objects will be exploded in deepObject
|
|
79
|
+
* style, and reserved characters are percent-encoded.
|
|
80
|
+
*
|
|
81
|
+
* This method will have no effect if the native `paramsSerializer()` Axios
|
|
82
|
+
* API function is used.
|
|
83
|
+
*
|
|
84
|
+
* {@link https://swagger.io/docs/specification/serialization/#query View examples}
|
|
85
|
+
*/
|
|
86
|
+
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
87
|
+
/**
|
|
88
|
+
* A function validating request data. This is useful if you want to ensure
|
|
89
|
+
* the request conforms to the desired shape, so it can be safely sent to
|
|
90
|
+
* the server.
|
|
91
|
+
*/
|
|
92
|
+
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
93
|
+
/**
|
|
94
|
+
* A function transforming response data before it's returned. This is useful
|
|
95
|
+
* for post-processing data, e.g. converting ISO strings into Date objects.
|
|
96
|
+
*/
|
|
97
|
+
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
98
|
+
/**
|
|
99
|
+
* A function validating response data. This is useful if you want to ensure
|
|
100
|
+
* the response conforms to the desired shape, so it can be safely passed to
|
|
101
|
+
* the transformers and returned to the user.
|
|
102
|
+
*/
|
|
103
|
+
responseValidator?: (data: unknown) => Promise<unknown>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never]
|
|
107
|
+
? true
|
|
108
|
+
: [T] extends [never | undefined]
|
|
109
|
+
? [undefined] extends [T]
|
|
110
|
+
? false
|
|
111
|
+
: true
|
|
112
|
+
: false;
|
|
113
|
+
|
|
114
|
+
export type OmitNever<T extends Record<string, unknown>> = {
|
|
115
|
+
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true
|
|
116
|
+
? never
|
|
117
|
+
: K]: T[K];
|
|
118
|
+
};
|
|
@@ -1,143 +1,143 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import type { BodySerializer, QuerySerializer } from './bodySerializer.gen';
|
|
4
|
-
import {
|
|
5
|
-
type ArraySeparatorStyle,
|
|
6
|
-
serializeArrayParam,
|
|
7
|
-
serializeObjectParam,
|
|
8
|
-
serializePrimitiveParam,
|
|
9
|
-
} from './pathSerializer.gen';
|
|
10
|
-
|
|
11
|
-
export interface PathSerializer {
|
|
12
|
-
path: Record<string, unknown>;
|
|
13
|
-
url: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
17
|
-
|
|
18
|
-
export const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {
|
|
19
|
-
let url = _url;
|
|
20
|
-
const matches = _url.match(PATH_PARAM_RE);
|
|
21
|
-
if (matches) {
|
|
22
|
-
for (const match of matches) {
|
|
23
|
-
let explode = false;
|
|
24
|
-
let name = match.substring(1, match.length - 1);
|
|
25
|
-
let style: ArraySeparatorStyle = 'simple';
|
|
26
|
-
|
|
27
|
-
if (name.endsWith('*')) {
|
|
28
|
-
explode = true;
|
|
29
|
-
name = name.substring(0, name.length - 1);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (name.startsWith('.')) {
|
|
33
|
-
name = name.substring(1);
|
|
34
|
-
style = 'label';
|
|
35
|
-
} else if (name.startsWith(';')) {
|
|
36
|
-
name = name.substring(1);
|
|
37
|
-
style = 'matrix';
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const value = path[name];
|
|
41
|
-
|
|
42
|
-
if (value === undefined || value === null) {
|
|
43
|
-
continue;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
if (Array.isArray(value)) {
|
|
47
|
-
url = url.replace(
|
|
48
|
-
match,
|
|
49
|
-
serializeArrayParam({ explode, name, style, value }),
|
|
50
|
-
);
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
if (typeof value === 'object') {
|
|
55
|
-
url = url.replace(
|
|
56
|
-
match,
|
|
57
|
-
serializeObjectParam({
|
|
58
|
-
explode,
|
|
59
|
-
name,
|
|
60
|
-
style,
|
|
61
|
-
value: value as Record<string, unknown>,
|
|
62
|
-
valueOnly: true,
|
|
63
|
-
}),
|
|
64
|
-
);
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
if (style === 'matrix') {
|
|
69
|
-
url = url.replace(
|
|
70
|
-
match,
|
|
71
|
-
`;${serializePrimitiveParam({
|
|
72
|
-
name,
|
|
73
|
-
value: value as string,
|
|
74
|
-
})}`,
|
|
75
|
-
);
|
|
76
|
-
continue;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
const replaceValue = encodeURIComponent(
|
|
80
|
-
style === 'label' ? `.${value as string}` : (value as string),
|
|
81
|
-
);
|
|
82
|
-
url = url.replace(match, replaceValue);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
return url;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export const getUrl = ({
|
|
89
|
-
baseUrl,
|
|
90
|
-
path,
|
|
91
|
-
query,
|
|
92
|
-
querySerializer,
|
|
93
|
-
url: _url,
|
|
94
|
-
}: {
|
|
95
|
-
baseUrl?: string;
|
|
96
|
-
path?: Record<string, unknown>;
|
|
97
|
-
query?: Record<string, unknown>;
|
|
98
|
-
querySerializer: QuerySerializer;
|
|
99
|
-
url: string;
|
|
100
|
-
}) => {
|
|
101
|
-
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
102
|
-
let url = (baseUrl ?? '') + pathUrl;
|
|
103
|
-
if (path) {
|
|
104
|
-
url = defaultPathSerializer({ path, url });
|
|
105
|
-
}
|
|
106
|
-
let search = query ? querySerializer(query) : '';
|
|
107
|
-
if (search.startsWith('?')) {
|
|
108
|
-
search = search.substring(1);
|
|
109
|
-
}
|
|
110
|
-
if (search) {
|
|
111
|
-
url += `?${search}`;
|
|
112
|
-
}
|
|
113
|
-
return url;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export function getValidRequestBody(options: {
|
|
117
|
-
body?: unknown;
|
|
118
|
-
bodySerializer?: BodySerializer | null;
|
|
119
|
-
serializedBody?: unknown;
|
|
120
|
-
}) {
|
|
121
|
-
const hasBody = options.body !== undefined;
|
|
122
|
-
const isSerializedBody = hasBody && options.bodySerializer;
|
|
123
|
-
|
|
124
|
-
if (isSerializedBody) {
|
|
125
|
-
if ('serializedBody' in options) {
|
|
126
|
-
const hasSerializedBody =
|
|
127
|
-
options.serializedBody !== undefined && options.serializedBody !== '';
|
|
128
|
-
|
|
129
|
-
return hasSerializedBody ? options.serializedBody : null;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// not all clients implement a serializedBody property (i.e. client-axios)
|
|
133
|
-
return options.body !== '' ? options.body : null;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// plain/text body
|
|
137
|
-
if (hasBody) {
|
|
138
|
-
return options.body;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// no body was provided
|
|
142
|
-
return undefined;
|
|
143
|
-
}
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import type { BodySerializer, QuerySerializer } from './bodySerializer.gen';
|
|
4
|
+
import {
|
|
5
|
+
type ArraySeparatorStyle,
|
|
6
|
+
serializeArrayParam,
|
|
7
|
+
serializeObjectParam,
|
|
8
|
+
serializePrimitiveParam,
|
|
9
|
+
} from './pathSerializer.gen';
|
|
10
|
+
|
|
11
|
+
export interface PathSerializer {
|
|
12
|
+
path: Record<string, unknown>;
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
17
|
+
|
|
18
|
+
export const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {
|
|
19
|
+
let url = _url;
|
|
20
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
21
|
+
if (matches) {
|
|
22
|
+
for (const match of matches) {
|
|
23
|
+
let explode = false;
|
|
24
|
+
let name = match.substring(1, match.length - 1);
|
|
25
|
+
let style: ArraySeparatorStyle = 'simple';
|
|
26
|
+
|
|
27
|
+
if (name.endsWith('*')) {
|
|
28
|
+
explode = true;
|
|
29
|
+
name = name.substring(0, name.length - 1);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (name.startsWith('.')) {
|
|
33
|
+
name = name.substring(1);
|
|
34
|
+
style = 'label';
|
|
35
|
+
} else if (name.startsWith(';')) {
|
|
36
|
+
name = name.substring(1);
|
|
37
|
+
style = 'matrix';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const value = path[name];
|
|
41
|
+
|
|
42
|
+
if (value === undefined || value === null) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (Array.isArray(value)) {
|
|
47
|
+
url = url.replace(
|
|
48
|
+
match,
|
|
49
|
+
serializeArrayParam({ explode, name, style, value }),
|
|
50
|
+
);
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (typeof value === 'object') {
|
|
55
|
+
url = url.replace(
|
|
56
|
+
match,
|
|
57
|
+
serializeObjectParam({
|
|
58
|
+
explode,
|
|
59
|
+
name,
|
|
60
|
+
style,
|
|
61
|
+
value: value as Record<string, unknown>,
|
|
62
|
+
valueOnly: true,
|
|
63
|
+
}),
|
|
64
|
+
);
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (style === 'matrix') {
|
|
69
|
+
url = url.replace(
|
|
70
|
+
match,
|
|
71
|
+
`;${serializePrimitiveParam({
|
|
72
|
+
name,
|
|
73
|
+
value: value as string,
|
|
74
|
+
})}`,
|
|
75
|
+
);
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const replaceValue = encodeURIComponent(
|
|
80
|
+
style === 'label' ? `.${value as string}` : (value as string),
|
|
81
|
+
);
|
|
82
|
+
url = url.replace(match, replaceValue);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return url;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export const getUrl = ({
|
|
89
|
+
baseUrl,
|
|
90
|
+
path,
|
|
91
|
+
query,
|
|
92
|
+
querySerializer,
|
|
93
|
+
url: _url,
|
|
94
|
+
}: {
|
|
95
|
+
baseUrl?: string;
|
|
96
|
+
path?: Record<string, unknown>;
|
|
97
|
+
query?: Record<string, unknown>;
|
|
98
|
+
querySerializer: QuerySerializer;
|
|
99
|
+
url: string;
|
|
100
|
+
}) => {
|
|
101
|
+
const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
|
|
102
|
+
let url = (baseUrl ?? '') + pathUrl;
|
|
103
|
+
if (path) {
|
|
104
|
+
url = defaultPathSerializer({ path, url });
|
|
105
|
+
}
|
|
106
|
+
let search = query ? querySerializer(query) : '';
|
|
107
|
+
if (search.startsWith('?')) {
|
|
108
|
+
search = search.substring(1);
|
|
109
|
+
}
|
|
110
|
+
if (search) {
|
|
111
|
+
url += `?${search}`;
|
|
112
|
+
}
|
|
113
|
+
return url;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
export function getValidRequestBody(options: {
|
|
117
|
+
body?: unknown;
|
|
118
|
+
bodySerializer?: BodySerializer | null;
|
|
119
|
+
serializedBody?: unknown;
|
|
120
|
+
}) {
|
|
121
|
+
const hasBody = options.body !== undefined;
|
|
122
|
+
const isSerializedBody = hasBody && options.bodySerializer;
|
|
123
|
+
|
|
124
|
+
if (isSerializedBody) {
|
|
125
|
+
if ('serializedBody' in options) {
|
|
126
|
+
const hasSerializedBody =
|
|
127
|
+
options.serializedBody !== undefined && options.serializedBody !== '';
|
|
128
|
+
|
|
129
|
+
return hasSerializedBody ? options.serializedBody : null;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// not all clients implement a serializedBody property (i.e. client-axios)
|
|
133
|
+
return options.body !== '' ? options.body : null;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// plain/text body
|
|
137
|
+
if (hasBody) {
|
|
138
|
+
return options.body;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// no body was provided
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
package/src/mtgate_api/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
export type { Options } from './sdk.gen';
|
|
4
|
+
export type { ClientOptions } from './types.gen';
|
|
@@ -1,54 +1,17 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
|
|
3
|
-
import type { Client, Options as Options2, TDataShape } from './client';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
meta?: Record<string, unknown>;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const adkAgentRun = <ThrowOnError extends boolean = false>(options?: Options<AdkAgentRunData, ThrowOnError>) => (options?.client ?? client).post<AdkAgentRunResponses, unknown, ThrowOnError>({
|
|
22
|
-
url: '/api/cf/adk/run/sse',
|
|
23
|
-
...options,
|
|
24
|
-
headers: {
|
|
25
|
-
'Content-Type': 'application/json',
|
|
26
|
-
...options?.headers
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
export const browserOpen = <ThrowOnError extends boolean = false>(options?: Options<BrowserOpenData, ThrowOnError>) => (options?.client ?? client).post<BrowserOpenResponses, unknown, ThrowOnError>({
|
|
31
|
-
url: '/api/cf/demo/time',
|
|
32
|
-
...options,
|
|
33
|
-
headers: {
|
|
34
|
-
'Content-Type': 'application/json',
|
|
35
|
-
...options?.headers
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
export const agentChatList = <ThrowOnError extends boolean = false>(options?: Options<AgentChatListData, ThrowOnError>) => (options?.client ?? client).get<AgentChatListResponses, unknown, ThrowOnError>({ url: '/api/cf/agent/chat_list', ...options });
|
|
40
|
-
|
|
41
|
-
export const agentRun = <ThrowOnError extends boolean = false>(options?: Options<AgentRunData, ThrowOnError>) => (options?.client ?? client).post<AgentRunResponses, unknown, ThrowOnError>({
|
|
42
|
-
url: '/api/cf/agent/run',
|
|
43
|
-
...options,
|
|
44
|
-
headers: {
|
|
45
|
-
'Content-Type': 'application/json',
|
|
46
|
-
...options?.headers
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export const agentQuickAction = <ThrowOnError extends boolean = false>(options?: Options<AgentQuickActionData, ThrowOnError>) => (options?.client ?? client).get<AgentQuickActionResponses, unknown, ThrowOnError>({ url: '/api/cf/agent/quick_actions', ...options });
|
|
51
|
-
|
|
52
|
-
export const humanTasksList = <ThrowOnError extends boolean = false>(options?: Options<HumanTasksListData, ThrowOnError>) => (options?.client ?? client).get<HumanTasksListResponses, unknown, ThrowOnError>({ url: '/api/cf/human/tasks/list', ...options });
|
|
53
|
-
|
|
54
|
-
export const mcpApiHello = <ThrowOnError extends boolean = false>(options: Options<McpApiHelloData, ThrowOnError>) => (options.client ?? client).get<McpApiHelloResponses, unknown, ThrowOnError>({ url: '/api/cf/mcpapi/hello', ...options });
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
|
|
3
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
4
|
+
|
|
5
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
6
|
+
/**
|
|
7
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
8
|
+
* individual options. This might be also useful if you want to implement a
|
|
9
|
+
* custom client.
|
|
10
|
+
*/
|
|
11
|
+
client?: Client;
|
|
12
|
+
/**
|
|
13
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
14
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
15
|
+
*/
|
|
16
|
+
meta?: Record<string, unknown>;
|
|
17
|
+
};
|