mtmsdk 0.0.12 → 0.0.14
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/components/MustAdmin.d.ts +14 -0
- package/dist/components/MustAdmin.d.ts.map +1 -0
- package/dist/components/MustAdmin.js +37 -0
- package/dist/components/MustAdmin.js.map +1 -0
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +137 -2073
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +118 -2085
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi/client/client.gen.d.ts +3 -0
- package/dist/gomtmapi/client/client.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2/client/client.js → gomtmapi/client/client.gen.js} +82 -23
- package/dist/gomtmapi/client/client.gen.js.map +1 -0
- package/dist/gomtmapi/client/index.d.ts +7 -7
- package/dist/gomtmapi/client/index.d.ts.map +1 -1
- package/dist/gomtmapi/client/index.js +5 -4
- package/dist/gomtmapi/client/index.js.map +1 -1
- package/dist/gomtmapi/client/{types.d.ts → types.gen.d.ts} +19 -14
- package/dist/gomtmapi/client/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi/client/types.gen.js +3 -0
- package/dist/gomtmapi/client/types.gen.js.map +1 -0
- package/dist/gomtmapi/client/{utils.d.ts → utils.gen.d.ts} +9 -21
- package/dist/gomtmapi/client/utils.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2/client/utils.js → gomtmapi/client/utils.gen.js} +56 -110
- package/dist/gomtmapi/client/utils.gen.js.map +1 -0
- package/dist/gomtmapi/client.gen.d.ts +3 -3
- package/dist/gomtmapi/client.gen.d.ts.map +1 -1
- package/dist/gomtmapi/client.gen.js.map +1 -1
- package/dist/gomtmapi/core/{auth.d.ts → auth.gen.d.ts} +1 -1
- package/dist/gomtmapi/core/auth.gen.d.ts.map +1 -0
- package/dist/gomtmapi/core/{auth.js → auth.gen.js} +2 -1
- package/dist/gomtmapi/core/auth.gen.js.map +1 -0
- package/dist/{mtgate_api/core/bodySerializer.d.ts → gomtmapi/core/bodySerializer.gen.d.ts} +2 -2
- package/dist/gomtmapi/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/{mtgate_api/core/bodySerializer.js → gomtmapi/core/bodySerializer.gen.js} +5 -1
- package/dist/gomtmapi/core/bodySerializer.gen.js.map +1 -0
- package/dist/{mtgate_api/core/params.d.ts → gomtmapi/core/params.gen.d.ts} +11 -1
- package/dist/gomtmapi/core/params.gen.d.ts.map +1 -0
- package/dist/gomtmapi/core/{params.js → params.gen.js} +2 -1
- package/dist/gomtmapi/core/params.gen.js.map +1 -0
- package/dist/{mtgate_api/core/pathSerializer.d.ts → gomtmapi/core/pathSerializer.gen.d.ts} +1 -1
- package/dist/gomtmapi/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/gomtmapi/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
- package/dist/gomtmapi/core/pathSerializer.gen.js.map +1 -0
- package/dist/gomtmapi/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/gomtmapi/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/gomtmapi/core/serverSentEvents.gen.js +136 -0
- package/dist/gomtmapi/core/serverSentEvents.gen.js.map +1 -0
- package/dist/{mtgate_api/core/types.d.ts → gomtmapi/core/types.gen.d.ts} +20 -15
- package/dist/gomtmapi/core/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi/core/types.gen.js +3 -0
- package/dist/gomtmapi/core/types.gen.js.map +1 -0
- package/dist/gomtmapi/core/utils.gen.d.ts +20 -0
- package/dist/gomtmapi/core/utils.gen.d.ts.map +1 -0
- package/dist/gomtmapi/core/utils.gen.js +88 -0
- package/dist/gomtmapi/core/utils.gen.js.map +1 -0
- package/dist/gomtmapi/index.d.ts.map +1 -1
- package/dist/gomtmapi/index.js.map +1 -1
- package/dist/gomtmapi/schemas.gen.d.ts +806 -3746
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +780 -3827
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +3 -306
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +53 -1338
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +1186 -5364
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/types.gen.js +8 -45
- package/dist/gomtmapi/types.gen.js.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +1371 -4628
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +565 -2224
- package/dist/gomtmapi/zod.gen.js.map +1 -1
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +286 -823
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +226 -787
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi_v2/client/client.gen.d.ts +3 -0
- package/dist/gomtmapi_v2/client/client.gen.d.ts.map +1 -0
- package/dist/{mtgate_api/client/client.js → gomtmapi_v2/client/client.gen.js} +82 -23
- package/dist/gomtmapi_v2/client/client.gen.js.map +1 -0
- package/dist/gomtmapi_v2/client/index.d.ts +7 -7
- package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/index.js +5 -4
- package/dist/gomtmapi_v2/client/index.js.map +1 -1
- package/dist/{mtgate_api/client/types.d.ts → gomtmapi_v2/client/types.gen.d.ts} +19 -14
- package/dist/gomtmapi_v2/client/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/types.gen.js +3 -0
- package/dist/gomtmapi_v2/client/types.gen.js.map +1 -0
- package/dist/{mtgate_api/client/utils.d.ts → gomtmapi_v2/client/utils.gen.d.ts} +9 -21
- package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -0
- package/dist/{gomtmapi/client/utils.js → gomtmapi_v2/client/utils.gen.js} +56 -110
- package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -0
- package/dist/gomtmapi_v2/client.gen.d.ts +3 -3
- package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client.gen.js.map +1 -1
- package/dist/{mtmai_api/core/auth.d.ts → gomtmapi_v2/core/auth.gen.d.ts} +1 -1
- package/dist/gomtmapi_v2/core/auth.gen.d.ts.map +1 -0
- package/dist/{mtmai_api/core/auth.js → gomtmapi_v2/core/auth.gen.js} +2 -1
- package/dist/gomtmapi_v2/core/auth.gen.js.map +1 -0
- package/dist/gomtmapi_v2/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
- package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/{gomtmapi/core/bodySerializer.js → gomtmapi_v2/core/bodySerializer.gen.js} +5 -1
- package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +1 -0
- package/dist/gomtmapi_v2/core/{params.d.ts → params.gen.d.ts} +11 -1
- package/dist/gomtmapi_v2/core/params.gen.d.ts.map +1 -0
- package/dist/{mtgate_api/core/params.js → gomtmapi_v2/core/params.gen.js} +2 -1
- package/dist/gomtmapi_v2/core/params.gen.js.map +1 -0
- package/dist/{mtmai_api/core/pathSerializer.d.ts → gomtmapi_v2/core/pathSerializer.gen.d.ts} +1 -1
- package/dist/gomtmapi_v2/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/{mtgate_api/core/pathSerializer.js → gomtmapi_v2/core/pathSerializer.gen.js} +2 -1
- package/dist/gomtmapi_v2/core/pathSerializer.gen.js.map +1 -0
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.js +136 -0
- package/dist/gomtmapi_v2/core/serverSentEvents.gen.js.map +1 -0
- package/dist/{mtmai_api/core/types.d.ts → gomtmapi_v2/core/types.gen.d.ts} +20 -15
- package/dist/gomtmapi_v2/core/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/types.gen.js +3 -0
- package/dist/gomtmapi_v2/core/types.gen.js.map +1 -0
- package/dist/gomtmapi_v2/core/utils.gen.d.ts +20 -0
- package/dist/gomtmapi_v2/core/utils.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/utils.gen.js +88 -0
- package/dist/gomtmapi_v2/core/utils.gen.js.map +1 -0
- package/dist/gomtmapi_v2/index.d.ts +1 -1
- package/dist/gomtmapi_v2/index.d.ts.map +1 -1
- package/dist/gomtmapi_v2/index.js +0 -1
- package/dist/gomtmapi_v2/index.js.map +1 -1
- package/dist/gomtmapi_v2/schemas.gen.d.ts +317 -222
- package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/schemas.gen.js +317 -222
- package/dist/gomtmapi_v2/schemas.gen.js.map +1 -1
- package/dist/gomtmapi_v2/sdk.gen.d.ts +142 -156
- package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/sdk.gen.js +210 -233
- package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
- package/dist/gomtmapi_v2/types.gen.d.ts +188 -195
- package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/zod.gen.d.ts +474 -428
- package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/zod.gen.js +892 -1054
- package/dist/gomtmapi_v2/zod.gen.js.map +1 -1
- package/dist/lib/adk-utils.d.ts +0 -5
- package/dist/lib/adk-utils.d.ts.map +1 -1
- package/dist/lib/adk-utils.js +31 -32
- package/dist/lib/adk-utils.js.map +1 -1
- package/dist/lib/auth-client.d.ts +5965 -0
- package/dist/lib/auth-client.d.ts.map +1 -0
- package/dist/lib/auth-client.js +29 -0
- package/dist/lib/auth-client.js.map +1 -0
- package/dist/lib/get-query-client.d.ts.map +1 -1
- package/dist/lib/get-query-client.js +1 -21
- package/dist/lib/get-query-client.js.map +1 -1
- package/dist/lib/mtgate_client_ss.d.ts +10 -0
- package/dist/lib/mtgate_client_ss.d.ts.map +1 -0
- package/dist/lib/mtgate_client_ss.js +24 -0
- package/dist/lib/mtgate_client_ss.js.map +1 -0
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +367 -2123
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +142 -1018
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtgate_api/client/client.gen.d.ts +3 -0
- package/dist/mtgate_api/client/client.gen.d.ts.map +1 -0
- package/dist/{gomtmapi/client/client.js → mtgate_api/client/client.gen.js} +82 -23
- package/dist/mtgate_api/client/client.gen.js.map +1 -0
- package/dist/mtgate_api/client/index.d.ts +7 -7
- package/dist/mtgate_api/client/index.d.ts.map +1 -1
- package/dist/mtgate_api/client/index.js +5 -4
- package/dist/mtgate_api/client/index.js.map +1 -1
- package/dist/{gomtmapi_v2/client/types.d.ts → mtgate_api/client/types.gen.d.ts} +19 -14
- package/dist/mtgate_api/client/types.gen.d.ts.map +1 -0
- package/dist/mtgate_api/client/types.gen.js +3 -0
- package/dist/mtgate_api/client/types.gen.js.map +1 -0
- package/dist/{mtmai_api/client/utils.d.ts → mtgate_api/client/utils.gen.d.ts} +9 -21
- package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -0
- package/dist/mtgate_api/client/{utils.js → utils.gen.js} +56 -110
- package/dist/mtgate_api/client/utils.gen.js.map +1 -0
- package/dist/mtgate_api/client.gen.d.ts +3 -3
- package/dist/mtgate_api/client.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client.gen.js.map +1 -1
- package/dist/{gomtmapi_v2/core/auth.d.ts → mtgate_api/core/auth.gen.d.ts} +1 -1
- package/dist/mtgate_api/core/auth.gen.d.ts.map +1 -0
- package/dist/mtgate_api/core/{auth.js → auth.gen.js} +2 -1
- package/dist/mtgate_api/core/auth.gen.js.map +1 -0
- package/dist/{gomtmapi/core/bodySerializer.d.ts → mtgate_api/core/bodySerializer.gen.d.ts} +2 -2
- package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/{mtmai_api/core/bodySerializer.js → mtgate_api/core/bodySerializer.gen.js} +5 -1
- package/dist/mtgate_api/core/bodySerializer.gen.js.map +1 -0
- package/dist/{mtmai_api/core/params.d.ts → mtgate_api/core/params.gen.d.ts} +11 -1
- package/dist/mtgate_api/core/params.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2/core/params.js → mtgate_api/core/params.gen.js} +2 -1
- package/dist/mtgate_api/core/params.gen.js.map +1 -0
- package/dist/{gomtmapi_v2/core/pathSerializer.d.ts → mtgate_api/core/pathSerializer.gen.d.ts} +1 -1
- package/dist/mtgate_api/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2/core/pathSerializer.js → mtgate_api/core/pathSerializer.gen.js} +2 -1
- package/dist/mtgate_api/core/pathSerializer.gen.js.map +1 -0
- package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/mtgate_api/core/serverSentEvents.gen.js +136 -0
- package/dist/mtgate_api/core/serverSentEvents.gen.js.map +1 -0
- package/dist/{gomtmapi/core/types.d.ts → mtgate_api/core/types.gen.d.ts} +20 -15
- package/dist/mtgate_api/core/types.gen.d.ts.map +1 -0
- package/dist/mtgate_api/core/types.gen.js +3 -0
- package/dist/mtgate_api/core/types.gen.js.map +1 -0
- package/dist/mtgate_api/core/utils.gen.d.ts +20 -0
- package/dist/mtgate_api/core/utils.gen.d.ts.map +1 -0
- package/dist/mtgate_api/core/utils.gen.js +88 -0
- package/dist/mtgate_api/core/utils.gen.js.map +1 -0
- package/dist/mtgate_api/index.d.ts.map +1 -1
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/schemas.gen.d.ts +206 -289
- package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
- package/dist/mtgate_api/schemas.gen.js +230 -307
- package/dist/mtgate_api/schemas.gen.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +20 -43
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +88 -234
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +383 -862
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/types.gen.js.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +607 -978
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +718 -1215
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +115 -475
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.js +55 -423
- package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtmai_api/client/client.gen.d.ts +3 -0
- package/dist/mtmai_api/client/client.gen.d.ts.map +1 -0
- package/dist/mtmai_api/client/{client.js → client.gen.js} +82 -23
- package/dist/mtmai_api/client/client.gen.js.map +1 -0
- package/dist/mtmai_api/client/index.d.ts +7 -7
- package/dist/mtmai_api/client/index.d.ts.map +1 -1
- package/dist/mtmai_api/client/index.js +5 -4
- package/dist/mtmai_api/client/index.js.map +1 -1
- package/dist/mtmai_api/client/{types.d.ts → types.gen.d.ts} +19 -14
- package/dist/mtmai_api/client/types.gen.d.ts.map +1 -0
- package/dist/mtmai_api/client/types.gen.js +3 -0
- package/dist/mtmai_api/client/types.gen.js.map +1 -0
- package/dist/{gomtmapi_v2/client/utils.d.ts → mtmai_api/client/utils.gen.d.ts} +9 -21
- package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -0
- package/dist/mtmai_api/client/{utils.js → utils.gen.js} +56 -110
- package/dist/mtmai_api/client/utils.gen.js.map +1 -0
- package/dist/mtmai_api/client.gen.d.ts +3 -3
- package/dist/mtmai_api/client.gen.d.ts.map +1 -1
- package/dist/mtmai_api/client.gen.js.map +1 -1
- package/dist/{mtgate_api/core/auth.d.ts → mtmai_api/core/auth.gen.d.ts} +1 -1
- package/dist/mtmai_api/core/auth.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2/core/auth.js → mtmai_api/core/auth.gen.js} +2 -1
- package/dist/mtmai_api/core/auth.gen.js.map +1 -0
- package/dist/mtmai_api/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +2 -2
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/{gomtmapi_v2/core/bodySerializer.js → mtmai_api/core/bodySerializer.gen.js} +5 -1
- package/dist/mtmai_api/core/bodySerializer.gen.js.map +1 -0
- package/dist/{gomtmapi/core/params.d.ts → mtmai_api/core/params.gen.d.ts} +11 -1
- package/dist/mtmai_api/core/params.gen.d.ts.map +1 -0
- package/dist/mtmai_api/core/{params.js → params.gen.js} +2 -1
- package/dist/mtmai_api/core/params.gen.js.map +1 -0
- package/dist/{gomtmapi/core/pathSerializer.d.ts → mtmai_api/core/pathSerializer.gen.d.ts} +1 -1
- package/dist/mtmai_api/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/mtmai_api/core/{pathSerializer.js → pathSerializer.gen.js} +2 -1
- package/dist/mtmai_api/core/pathSerializer.gen.js.map +1 -0
- package/dist/mtmai_api/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/mtmai_api/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/mtmai_api/core/serverSentEvents.gen.js +136 -0
- package/dist/mtmai_api/core/serverSentEvents.gen.js.map +1 -0
- package/dist/{gomtmapi_v2/core/types.d.ts → mtmai_api/core/types.gen.d.ts} +20 -15
- package/dist/mtmai_api/core/types.gen.d.ts.map +1 -0
- package/dist/mtmai_api/core/types.gen.js +3 -0
- package/dist/mtmai_api/core/types.gen.js.map +1 -0
- package/dist/mtmai_api/core/utils.gen.d.ts +20 -0
- package/dist/mtmai_api/core/utils.gen.d.ts.map +1 -0
- package/dist/mtmai_api/core/utils.gen.js +88 -0
- package/dist/mtmai_api/core/utils.gen.js.map +1 -0
- package/dist/mtmai_api/index.d.ts.map +1 -1
- package/dist/mtmai_api/index.js.map +1 -1
- package/dist/mtmai_api/schemas.gen.d.ts +447 -90
- package/dist/mtmai_api/schemas.gen.d.ts.map +1 -1
- package/dist/mtmai_api/schemas.gen.js +561 -108
- package/dist/mtmai_api/schemas.gen.js.map +1 -1
- package/dist/mtmai_api/sdk.gen.d.ts +3 -8
- package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtmai_api/sdk.gen.js +53 -67
- package/dist/mtmai_api/sdk.gen.js.map +1 -1
- package/dist/mtmai_api/types.gen.d.ts +420 -208
- package/dist/mtmai_api/types.gen.d.ts.map +1 -1
- package/dist/mtmai_api/types.gen.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +26092 -5524
- package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
- package/dist/mtmai_api/zod.gen.js +1391 -1362
- package/dist/mtmai_api/zod.gen.js.map +1 -1
- package/dist/store/AuthProviders.d.ts +8 -0
- package/dist/store/AuthProviders.d.ts.map +1 -0
- package/dist/store/AuthProviders.js +34 -0
- package/dist/store/AuthProviders.js.map +1 -0
- package/dist/store/{ReactQueryApiV2Provider.d.ts → GomtmProvider.d.ts} +1 -1
- package/dist/store/GomtmProvider.d.ts.map +1 -0
- package/dist/store/{ReactQueryApiV2Provider.js → GomtmProvider.js} +2 -2
- package/dist/store/GomtmProvider.js.map +1 -0
- package/dist/store/{ReactQueryProvider.d.ts → GomtmV1Provider.d.ts} +1 -1
- package/dist/store/GomtmV1Provider.d.ts.map +1 -0
- package/dist/store/{ReactQueryProvider.js → GomtmV1Provider.js} +2 -2
- package/dist/store/GomtmV1Provider.js.map +1 -0
- package/dist/store/MtgateProvider.d.ts +6015 -0
- package/dist/store/MtgateProvider.d.ts.map +1 -0
- package/dist/store/MtgateProvider.js +76 -0
- package/dist/store/MtgateProvider.js.map +1 -0
- package/dist/store/MtmsdkProvider.d.ts.map +1 -1
- package/dist/store/MtmsdkProvider.js +9 -12
- package/dist/store/MtmsdkProvider.js.map +1 -1
- package/package.json +68 -72
- package/dist/gomtmapi/client/client.d.ts +0 -3
- package/dist/gomtmapi/client/client.d.ts.map +0 -1
- package/dist/gomtmapi/client/client.js.map +0 -1
- package/dist/gomtmapi/client/types.d.ts.map +0 -1
- package/dist/gomtmapi/client/types.js +0 -2
- package/dist/gomtmapi/client/types.js.map +0 -1
- package/dist/gomtmapi/client/utils.d.ts.map +0 -1
- package/dist/gomtmapi/client/utils.js.map +0 -1
- package/dist/gomtmapi/core/auth.d.ts.map +0 -1
- package/dist/gomtmapi/core/auth.js.map +0 -1
- package/dist/gomtmapi/core/bodySerializer.d.ts.map +0 -1
- package/dist/gomtmapi/core/bodySerializer.js.map +0 -1
- package/dist/gomtmapi/core/params.d.ts.map +0 -1
- package/dist/gomtmapi/core/params.js.map +0 -1
- package/dist/gomtmapi/core/pathSerializer.d.ts.map +0 -1
- package/dist/gomtmapi/core/pathSerializer.js.map +0 -1
- package/dist/gomtmapi/core/types.d.ts.map +0 -1
- package/dist/gomtmapi/core/types.js +0 -2
- package/dist/gomtmapi/core/types.js.map +0 -1
- package/dist/gomtmapi_v2/client/client.d.ts +0 -3
- package/dist/gomtmapi_v2/client/client.d.ts.map +0 -1
- package/dist/gomtmapi_v2/client/client.js.map +0 -1
- package/dist/gomtmapi_v2/client/types.d.ts.map +0 -1
- package/dist/gomtmapi_v2/client/types.js +0 -2
- package/dist/gomtmapi_v2/client/types.js.map +0 -1
- package/dist/gomtmapi_v2/client/utils.d.ts.map +0 -1
- package/dist/gomtmapi_v2/client/utils.js.map +0 -1
- package/dist/gomtmapi_v2/core/auth.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/auth.js.map +0 -1
- package/dist/gomtmapi_v2/core/bodySerializer.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/bodySerializer.js.map +0 -1
- package/dist/gomtmapi_v2/core/params.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/params.js.map +0 -1
- package/dist/gomtmapi_v2/core/pathSerializer.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/pathSerializer.js.map +0 -1
- package/dist/gomtmapi_v2/core/types.d.ts.map +0 -1
- package/dist/gomtmapi_v2/core/types.js +0 -2
- package/dist/gomtmapi_v2/core/types.js.map +0 -1
- package/dist/lib/ai-types.d.ts +0 -61
- package/dist/lib/ai-types.d.ts.map +0 -1
- package/dist/lib/ai-types.js +0 -15
- package/dist/lib/ai-types.js.map +0 -1
- package/dist/lib/constants.d.ts +0 -40
- package/dist/lib/constants.d.ts.map +0 -1
- package/dist/lib/constants.js +0 -40
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/d1-utils.d.ts +0 -5
- package/dist/lib/d1-utils.d.ts.map +0 -1
- package/dist/lib/d1-utils.js +0 -36
- package/dist/lib/d1-utils.js.map +0 -1
- package/dist/lib/mtmutils.d.ts +0 -2
- package/dist/lib/mtmutils.d.ts.map +0 -1
- package/dist/lib/mtmutils.js +0 -9
- package/dist/lib/mtmutils.js.map +0 -1
- package/dist/mtgate_api/client/client.d.ts +0 -3
- package/dist/mtgate_api/client/client.d.ts.map +0 -1
- package/dist/mtgate_api/client/client.js.map +0 -1
- package/dist/mtgate_api/client/types.d.ts.map +0 -1
- package/dist/mtgate_api/client/types.js +0 -2
- package/dist/mtgate_api/client/types.js.map +0 -1
- package/dist/mtgate_api/client/utils.d.ts.map +0 -1
- package/dist/mtgate_api/client/utils.js.map +0 -1
- package/dist/mtgate_api/core/auth.d.ts.map +0 -1
- package/dist/mtgate_api/core/auth.js.map +0 -1
- package/dist/mtgate_api/core/bodySerializer.d.ts.map +0 -1
- package/dist/mtgate_api/core/bodySerializer.js.map +0 -1
- package/dist/mtgate_api/core/params.d.ts.map +0 -1
- package/dist/mtgate_api/core/params.js.map +0 -1
- package/dist/mtgate_api/core/pathSerializer.d.ts.map +0 -1
- package/dist/mtgate_api/core/pathSerializer.js.map +0 -1
- package/dist/mtgate_api/core/types.d.ts.map +0 -1
- package/dist/mtgate_api/core/types.js +0 -2
- package/dist/mtgate_api/core/types.js.map +0 -1
- package/dist/mtmai_api/client/client.d.ts +0 -3
- package/dist/mtmai_api/client/client.d.ts.map +0 -1
- package/dist/mtmai_api/client/client.js.map +0 -1
- package/dist/mtmai_api/client/types.d.ts.map +0 -1
- package/dist/mtmai_api/client/types.js +0 -2
- package/dist/mtmai_api/client/types.js.map +0 -1
- package/dist/mtmai_api/client/utils.d.ts.map +0 -1
- package/dist/mtmai_api/client/utils.js.map +0 -1
- package/dist/mtmai_api/core/auth.d.ts.map +0 -1
- package/dist/mtmai_api/core/auth.js.map +0 -1
- package/dist/mtmai_api/core/bodySerializer.d.ts.map +0 -1
- package/dist/mtmai_api/core/bodySerializer.js.map +0 -1
- package/dist/mtmai_api/core/params.d.ts.map +0 -1
- package/dist/mtmai_api/core/params.js.map +0 -1
- package/dist/mtmai_api/core/pathSerializer.d.ts.map +0 -1
- package/dist/mtmai_api/core/pathSerializer.js.map +0 -1
- package/dist/mtmai_api/core/types.d.ts.map +0 -1
- package/dist/mtmai_api/core/types.js +0 -2
- package/dist/mtmai_api/core/types.js.map +0 -1
- package/dist/store/ReactQueryApiV2Provider.d.ts.map +0 -1
- package/dist/store/ReactQueryApiV2Provider.js.map +0 -1
- package/dist/store/ReactQueryCfApiProvider.d.ts +0 -9
- package/dist/store/ReactQueryCfApiProvider.d.ts.map +0 -1
- package/dist/store/ReactQueryCfApiProvider.js +0 -26
- package/dist/store/ReactQueryCfApiProvider.js.map +0 -1
- package/dist/store/ReactQueryProvider.d.ts.map +0 -1
- package/dist/store/ReactQueryProvider.js.map +0 -1
package/dist/gomtmapi/sdk.gen.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import {
|
|
3
|
-
import { client as _heyApiClient } from "./client.gen";
|
|
2
|
+
import { client } from "./client.gen";
|
|
4
3
|
/**
|
|
5
4
|
* Get readiness
|
|
6
5
|
* Gets the readiness status
|
|
7
6
|
*/
|
|
8
7
|
export const readinessGet = (options) => {
|
|
9
|
-
return (options?.client ??
|
|
8
|
+
return (options?.client ?? client).get({
|
|
10
9
|
url: "/api/ready",
|
|
11
10
|
...options,
|
|
12
11
|
});
|
|
@@ -16,7 +15,7 @@ export const readinessGet = (options) => {
|
|
|
16
15
|
* Gets the liveness status
|
|
17
16
|
*/
|
|
18
17
|
export const livenessGet = (options) => {
|
|
19
|
-
return (options?.client ??
|
|
18
|
+
return (options?.client ?? client).get({
|
|
20
19
|
url: "/api/live",
|
|
21
20
|
...options,
|
|
22
21
|
});
|
|
@@ -26,7 +25,7 @@ export const livenessGet = (options) => {
|
|
|
26
25
|
* Gets the health status of the API service
|
|
27
26
|
*/
|
|
28
27
|
export const healthGet = (options) => {
|
|
29
|
-
return (options?.client ??
|
|
28
|
+
return (options?.client ?? client).get({
|
|
30
29
|
url: "/api/v1/health",
|
|
31
30
|
...options,
|
|
32
31
|
});
|
|
@@ -36,7 +35,7 @@ export const healthGet = (options) => {
|
|
|
36
35
|
* Gets metadata for the Hatchet instance
|
|
37
36
|
*/
|
|
38
37
|
export const metadataGet = (options) => {
|
|
39
|
-
return (options?.client ??
|
|
38
|
+
return (options?.client ?? client).get({
|
|
40
39
|
url: "/api/v1/meta",
|
|
41
40
|
...options,
|
|
42
41
|
});
|
|
@@ -46,7 +45,7 @@ export const metadataGet = (options) => {
|
|
|
46
45
|
* List all integrations
|
|
47
46
|
*/
|
|
48
47
|
export const metadataListIntegrations = (options) => {
|
|
49
|
-
return (options?.client ??
|
|
48
|
+
return (options?.client ?? client).get({
|
|
50
49
|
security: [
|
|
51
50
|
{
|
|
52
51
|
scheme: "bearer",
|
|
@@ -67,7 +66,7 @@ export const metadataListIntegrations = (options) => {
|
|
|
67
66
|
* Logs in a user.
|
|
68
67
|
*/
|
|
69
68
|
export const userUpdateLogin = (options) => {
|
|
70
|
-
return (options?.client ??
|
|
69
|
+
return (options?.client ?? client).post({
|
|
71
70
|
url: "/api/v1/users/login",
|
|
72
71
|
...options,
|
|
73
72
|
headers: {
|
|
@@ -81,7 +80,7 @@ export const userUpdateLogin = (options) => {
|
|
|
81
80
|
* Starts the OAuth flow
|
|
82
81
|
*/
|
|
83
82
|
export const userUpdateGoogleOauthStart = (options) => {
|
|
84
|
-
return (options?.client ??
|
|
83
|
+
return (options?.client ?? client).get({
|
|
85
84
|
url: "/api/v1/users/google/start",
|
|
86
85
|
...options,
|
|
87
86
|
});
|
|
@@ -91,7 +90,7 @@ export const userUpdateGoogleOauthStart = (options) => {
|
|
|
91
90
|
* Completes the OAuth flow
|
|
92
91
|
*/
|
|
93
92
|
export const userUpdateGoogleOauthCallback = (options) => {
|
|
94
|
-
return (options?.client ??
|
|
93
|
+
return (options?.client ?? client).get({
|
|
95
94
|
url: "/api/v1/users/google/callback",
|
|
96
95
|
...options,
|
|
97
96
|
});
|
|
@@ -101,7 +100,7 @@ export const userUpdateGoogleOauthCallback = (options) => {
|
|
|
101
100
|
* Starts the OAuth flow
|
|
102
101
|
*/
|
|
103
102
|
export const userUpdateGithubOauthStart = (options) => {
|
|
104
|
-
return (options?.client ??
|
|
103
|
+
return (options?.client ?? client).get({
|
|
105
104
|
url: "/api/v1/users/github/start",
|
|
106
105
|
...options,
|
|
107
106
|
});
|
|
@@ -111,7 +110,7 @@ export const userUpdateGithubOauthStart = (options) => {
|
|
|
111
110
|
* Completes the OAuth flow
|
|
112
111
|
*/
|
|
113
112
|
export const userUpdateGithubOauthCallback = (options) => {
|
|
114
|
-
return (options?.client ??
|
|
113
|
+
return (options?.client ?? client).get({
|
|
115
114
|
url: "/api/v1/users/github/callback",
|
|
116
115
|
...options,
|
|
117
116
|
});
|
|
@@ -121,7 +120,7 @@ export const userUpdateGithubOauthCallback = (options) => {
|
|
|
121
120
|
* Gets a list of tenant alert email groups
|
|
122
121
|
*/
|
|
123
122
|
export const alertEmailGroupList = (options) => {
|
|
124
|
-
return (options.client ??
|
|
123
|
+
return (options.client ?? client).get({
|
|
125
124
|
security: [
|
|
126
125
|
{
|
|
127
126
|
scheme: "bearer",
|
|
@@ -142,7 +141,7 @@ export const alertEmailGroupList = (options) => {
|
|
|
142
141
|
* Creates a new tenant alert email group
|
|
143
142
|
*/
|
|
144
143
|
export const alertEmailGroupCreate = (options) => {
|
|
145
|
-
return (options.client ??
|
|
144
|
+
return (options.client ?? client).post({
|
|
146
145
|
security: [
|
|
147
146
|
{
|
|
148
147
|
scheme: "bearer",
|
|
@@ -167,7 +166,7 @@ export const alertEmailGroupCreate = (options) => {
|
|
|
167
166
|
* Gets the resource policy for a tenant
|
|
168
167
|
*/
|
|
169
168
|
export const tenantResourcePolicyGet = (options) => {
|
|
170
|
-
return (options.client ??
|
|
169
|
+
return (options.client ?? client).get({
|
|
171
170
|
security: [
|
|
172
171
|
{
|
|
173
172
|
scheme: "bearer",
|
|
@@ -188,7 +187,7 @@ export const tenantResourcePolicyGet = (options) => {
|
|
|
188
187
|
* Deletes a tenant alert email group
|
|
189
188
|
*/
|
|
190
189
|
export const alertEmailGroupDelete = (options) => {
|
|
191
|
-
return (options.client ??
|
|
190
|
+
return (options.client ?? client).delete({
|
|
192
191
|
security: [
|
|
193
192
|
{
|
|
194
193
|
scheme: "bearer",
|
|
@@ -209,7 +208,7 @@ export const alertEmailGroupDelete = (options) => {
|
|
|
209
208
|
* Updates a tenant alert email group
|
|
210
209
|
*/
|
|
211
210
|
export const alertEmailGroupUpdate = (options) => {
|
|
212
|
-
return (options.client ??
|
|
211
|
+
return (options.client ?? client).patch({
|
|
213
212
|
security: [
|
|
214
213
|
{
|
|
215
214
|
scheme: "bearer",
|
|
@@ -234,7 +233,7 @@ export const alertEmailGroupUpdate = (options) => {
|
|
|
234
233
|
* Update a user password.
|
|
235
234
|
*/
|
|
236
235
|
export const userUpdatePassword = (options) => {
|
|
237
|
-
return (options?.client ??
|
|
236
|
+
return (options?.client ?? client).post({
|
|
238
237
|
security: [
|
|
239
238
|
{
|
|
240
239
|
in: "cookie",
|
|
@@ -255,7 +254,7 @@ export const userUpdatePassword = (options) => {
|
|
|
255
254
|
* Registers a user.
|
|
256
255
|
*/
|
|
257
256
|
export const userCreate = (options) => {
|
|
258
|
-
return (options?.client ??
|
|
257
|
+
return (options?.client ?? client).post({
|
|
259
258
|
url: "/api/v1/users/register",
|
|
260
259
|
...options,
|
|
261
260
|
headers: {
|
|
@@ -269,7 +268,7 @@ export const userCreate = (options) => {
|
|
|
269
268
|
* Logs out a user.
|
|
270
269
|
*/
|
|
271
270
|
export const userUpdateLogout = (options) => {
|
|
272
|
-
return (options?.client ??
|
|
271
|
+
return (options?.client ?? client).post({
|
|
273
272
|
security: [
|
|
274
273
|
{
|
|
275
274
|
in: "cookie",
|
|
@@ -286,7 +285,7 @@ export const userUpdateLogout = (options) => {
|
|
|
286
285
|
* Lists all tenant memberships for the current user
|
|
287
286
|
*/
|
|
288
287
|
export const tenantMembershipsList = (options) => {
|
|
289
|
-
return (options?.client ??
|
|
288
|
+
return (options?.client ?? client).get({
|
|
290
289
|
security: [
|
|
291
290
|
{
|
|
292
291
|
in: "cookie",
|
|
@@ -303,7 +302,7 @@ export const tenantMembershipsList = (options) => {
|
|
|
303
302
|
* Lists all tenant invites for the current user
|
|
304
303
|
*/
|
|
305
304
|
export const userListTenantInvites = (options) => {
|
|
306
|
-
return (options?.client ??
|
|
305
|
+
return (options?.client ?? client).get({
|
|
307
306
|
security: [
|
|
308
307
|
{
|
|
309
308
|
in: "cookie",
|
|
@@ -320,7 +319,7 @@ export const userListTenantInvites = (options) => {
|
|
|
320
319
|
* Accepts a tenant invite
|
|
321
320
|
*/
|
|
322
321
|
export const tenantInviteAccept = (options) => {
|
|
323
|
-
return (options?.client ??
|
|
322
|
+
return (options?.client ?? client).post({
|
|
324
323
|
security: [
|
|
325
324
|
{
|
|
326
325
|
scheme: "bearer",
|
|
@@ -345,7 +344,7 @@ export const tenantInviteAccept = (options) => {
|
|
|
345
344
|
* Rejects a tenant invite
|
|
346
345
|
*/
|
|
347
346
|
export const tenantInviteReject = (options) => {
|
|
348
|
-
return (options?.client ??
|
|
347
|
+
return (options?.client ?? client).post({
|
|
349
348
|
security: [
|
|
350
349
|
{
|
|
351
350
|
scheme: "bearer",
|
|
@@ -370,7 +369,7 @@ export const tenantInviteReject = (options) => {
|
|
|
370
369
|
* Gets the current user's GitHub repositories
|
|
371
370
|
*/
|
|
372
371
|
export const userGetGithubRepos = (options) => {
|
|
373
|
-
return (options?.client ??
|
|
372
|
+
return (options?.client ?? client).get({
|
|
374
373
|
security: [
|
|
375
374
|
{
|
|
376
375
|
in: "cookie",
|
|
@@ -387,7 +386,7 @@ export const userGetGithubRepos = (options) => {
|
|
|
387
386
|
* Lists all users in the system (admin only)
|
|
388
387
|
*/
|
|
389
388
|
export const adminUsersList = (options) => {
|
|
390
|
-
return (options?.client ??
|
|
389
|
+
return (options?.client ?? client).get({
|
|
391
390
|
security: [
|
|
392
391
|
{
|
|
393
392
|
in: "cookie",
|
|
@@ -404,7 +403,7 @@ export const adminUsersList = (options) => {
|
|
|
404
403
|
* Creates a new user (admin only)
|
|
405
404
|
*/
|
|
406
405
|
export const adminUserCreate = (options) => {
|
|
407
|
-
return (options?.client ??
|
|
406
|
+
return (options?.client ?? client).post({
|
|
408
407
|
security: [
|
|
409
408
|
{
|
|
410
409
|
in: "cookie",
|
|
@@ -425,7 +424,7 @@ export const adminUserCreate = (options) => {
|
|
|
425
424
|
* Gets a specific user by ID (admin only)
|
|
426
425
|
*/
|
|
427
426
|
export const adminUserGet = (options) => {
|
|
428
|
-
return (options.client ??
|
|
427
|
+
return (options.client ?? client).get({
|
|
429
428
|
security: [
|
|
430
429
|
{
|
|
431
430
|
in: "cookie",
|
|
@@ -442,7 +441,7 @@ export const adminUserGet = (options) => {
|
|
|
442
441
|
* Updates a user (admin only)
|
|
443
442
|
*/
|
|
444
443
|
export const adminUserUpdate = (options) => {
|
|
445
|
-
return (options.client ??
|
|
444
|
+
return (options.client ?? client).put({
|
|
446
445
|
security: [
|
|
447
446
|
{
|
|
448
447
|
in: "cookie",
|
|
@@ -463,7 +462,7 @@ export const adminUserUpdate = (options) => {
|
|
|
463
462
|
* Deletes a user (admin only)
|
|
464
463
|
*/
|
|
465
464
|
export const adminUserDelete = (options) => {
|
|
466
|
-
return (options.client ??
|
|
465
|
+
return (options.client ?? client).delete({
|
|
467
466
|
security: [
|
|
468
467
|
{
|
|
469
468
|
in: "cookie",
|
|
@@ -480,7 +479,7 @@ export const adminUserDelete = (options) => {
|
|
|
480
479
|
* Lists all system roles (admin only)
|
|
481
480
|
*/
|
|
482
481
|
export const adminRolesList = (options) => {
|
|
483
|
-
return (options?.client ??
|
|
482
|
+
return (options?.client ?? client).get({
|
|
484
483
|
security: [
|
|
485
484
|
{
|
|
486
485
|
in: "cookie",
|
|
@@ -497,7 +496,7 @@ export const adminRolesList = (options) => {
|
|
|
497
496
|
* Lists all roles of a specific user (admin only)
|
|
498
497
|
*/
|
|
499
498
|
export const adminUserRoles = (options) => {
|
|
500
|
-
return (options.client ??
|
|
499
|
+
return (options.client ?? client).get({
|
|
501
500
|
security: [
|
|
502
501
|
{
|
|
503
502
|
in: "cookie",
|
|
@@ -514,7 +513,7 @@ export const adminUserRoles = (options) => {
|
|
|
514
513
|
* Assigns a role to a user (admin only)
|
|
515
514
|
*/
|
|
516
515
|
export const adminUserAssignRole = (options) => {
|
|
517
|
-
return (options.client ??
|
|
516
|
+
return (options.client ?? client).post({
|
|
518
517
|
security: [
|
|
519
518
|
{
|
|
520
519
|
in: "cookie",
|
|
@@ -535,7 +534,7 @@ export const adminUserAssignRole = (options) => {
|
|
|
535
534
|
* Removes a role from a user (admin only)
|
|
536
535
|
*/
|
|
537
536
|
export const adminUserRemoveRole = (options) => {
|
|
538
|
-
return (options.client ??
|
|
537
|
+
return (options.client ?? client).delete({
|
|
539
538
|
security: [
|
|
540
539
|
{
|
|
541
540
|
in: "cookie",
|
|
@@ -551,7 +550,7 @@ export const adminUserRemoveRole = (options) => {
|
|
|
551
550
|
* Get user settings for the current user and tenant
|
|
552
551
|
*/
|
|
553
552
|
export const userSettingsGet = (options) => {
|
|
554
|
-
return (options.client ??
|
|
553
|
+
return (options.client ?? client).get({
|
|
555
554
|
security: [
|
|
556
555
|
{
|
|
557
556
|
scheme: "bearer",
|
|
@@ -571,7 +570,7 @@ export const userSettingsGet = (options) => {
|
|
|
571
570
|
* Create user settings for the current user and tenant
|
|
572
571
|
*/
|
|
573
572
|
export const userSettingsCreate = (options) => {
|
|
574
|
-
return (options.client ??
|
|
573
|
+
return (options.client ?? client).post({
|
|
575
574
|
security: [
|
|
576
575
|
{
|
|
577
576
|
scheme: "bearer",
|
|
@@ -595,7 +594,7 @@ export const userSettingsCreate = (options) => {
|
|
|
595
594
|
* Update user settings for the current user and tenant
|
|
596
595
|
*/
|
|
597
596
|
export const userSettingsUpdate = (options) => {
|
|
598
|
-
return (options.client ??
|
|
597
|
+
return (options.client ?? client).put({
|
|
599
598
|
security: [
|
|
600
599
|
{
|
|
601
600
|
scheme: "bearer",
|
|
@@ -619,7 +618,7 @@ export const userSettingsUpdate = (options) => {
|
|
|
619
618
|
* Export user settings as YAML for the current user and tenant
|
|
620
619
|
*/
|
|
621
620
|
export const userSettingsExport = (options) => {
|
|
622
|
-
return (options.client ??
|
|
621
|
+
return (options.client ?? client).get({
|
|
623
622
|
security: [
|
|
624
623
|
{
|
|
625
624
|
scheme: "bearer",
|
|
@@ -639,7 +638,7 @@ export const userSettingsExport = (options) => {
|
|
|
639
638
|
* Import user settings from YAML for the current user and tenant
|
|
640
639
|
*/
|
|
641
640
|
export const userSettingsImport = (options) => {
|
|
642
|
-
return (options.client ??
|
|
641
|
+
return (options.client ?? client).post({
|
|
643
642
|
security: [
|
|
644
643
|
{
|
|
645
644
|
scheme: "bearer",
|
|
@@ -659,180 +658,12 @@ export const userSettingsImport = (options) => {
|
|
|
659
658
|
},
|
|
660
659
|
});
|
|
661
660
|
};
|
|
662
|
-
/**
|
|
663
|
-
* Get list of all services and their status
|
|
664
|
-
*/
|
|
665
|
-
export const serviceList = (options) => {
|
|
666
|
-
return (options.client ?? _heyApiClient).get({
|
|
667
|
-
security: [
|
|
668
|
-
{
|
|
669
|
-
scheme: "bearer",
|
|
670
|
-
type: "http",
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
in: "cookie",
|
|
674
|
-
name: "access_token",
|
|
675
|
-
type: "apiKey",
|
|
676
|
-
},
|
|
677
|
-
],
|
|
678
|
-
url: "/api/v1/tenants/{tenant}/services",
|
|
679
|
-
...options,
|
|
680
|
-
});
|
|
681
|
-
};
|
|
682
|
-
/**
|
|
683
|
-
* Get specific service status
|
|
684
|
-
*/
|
|
685
|
-
export const serviceGet = (options) => {
|
|
686
|
-
return (options.client ?? _heyApiClient).get({
|
|
687
|
-
security: [
|
|
688
|
-
{
|
|
689
|
-
scheme: "bearer",
|
|
690
|
-
type: "http",
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
in: "cookie",
|
|
694
|
-
name: "access_token",
|
|
695
|
-
type: "apiKey",
|
|
696
|
-
},
|
|
697
|
-
],
|
|
698
|
-
url: "/api/v1/tenants/{tenant}/services/{service}",
|
|
699
|
-
...options,
|
|
700
|
-
});
|
|
701
|
-
};
|
|
702
|
-
/**
|
|
703
|
-
* Start a service
|
|
704
|
-
*/
|
|
705
|
-
export const serviceStart = (options) => {
|
|
706
|
-
return (options.client ?? _heyApiClient).post({
|
|
707
|
-
security: [
|
|
708
|
-
{
|
|
709
|
-
scheme: "bearer",
|
|
710
|
-
type: "http",
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
in: "cookie",
|
|
714
|
-
name: "access_token",
|
|
715
|
-
type: "apiKey",
|
|
716
|
-
},
|
|
717
|
-
],
|
|
718
|
-
url: "/api/v1/tenants/{tenant}/services/{service}/start",
|
|
719
|
-
...options,
|
|
720
|
-
headers: {
|
|
721
|
-
"Content-Type": "application/json",
|
|
722
|
-
...options.headers,
|
|
723
|
-
},
|
|
724
|
-
});
|
|
725
|
-
};
|
|
726
|
-
/**
|
|
727
|
-
* Stop a service
|
|
728
|
-
*/
|
|
729
|
-
export const serviceStop = (options) => {
|
|
730
|
-
return (options.client ?? _heyApiClient).post({
|
|
731
|
-
security: [
|
|
732
|
-
{
|
|
733
|
-
scheme: "bearer",
|
|
734
|
-
type: "http",
|
|
735
|
-
},
|
|
736
|
-
{
|
|
737
|
-
in: "cookie",
|
|
738
|
-
name: "access_token",
|
|
739
|
-
type: "apiKey",
|
|
740
|
-
},
|
|
741
|
-
],
|
|
742
|
-
url: "/api/v1/tenants/{tenant}/services/{service}/stop",
|
|
743
|
-
...options,
|
|
744
|
-
});
|
|
745
|
-
};
|
|
746
|
-
/**
|
|
747
|
-
* Get service logs
|
|
748
|
-
*/
|
|
749
|
-
export const serviceGetLogs = (options) => {
|
|
750
|
-
return (options.client ?? _heyApiClient).get({
|
|
751
|
-
security: [
|
|
752
|
-
{
|
|
753
|
-
scheme: "bearer",
|
|
754
|
-
type: "http",
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
in: "cookie",
|
|
758
|
-
name: "access_token",
|
|
759
|
-
type: "apiKey",
|
|
760
|
-
},
|
|
761
|
-
],
|
|
762
|
-
url: "/api/v1/tenants/{tenant}/services/{service}/logs",
|
|
763
|
-
...options,
|
|
764
|
-
});
|
|
765
|
-
};
|
|
766
|
-
/**
|
|
767
|
-
* Get service diagnostics information
|
|
768
|
-
*/
|
|
769
|
-
export const serviceGetDiagnostics = (options) => {
|
|
770
|
-
return (options.client ?? _heyApiClient).get({
|
|
771
|
-
security: [
|
|
772
|
-
{
|
|
773
|
-
scheme: "bearer",
|
|
774
|
-
type: "http",
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
in: "cookie",
|
|
778
|
-
name: "access_token",
|
|
779
|
-
type: "apiKey",
|
|
780
|
-
},
|
|
781
|
-
],
|
|
782
|
-
url: "/api/v1/tenants/{tenant}/services/{service}/diagnostics",
|
|
783
|
-
...options,
|
|
784
|
-
});
|
|
785
|
-
};
|
|
786
|
-
/**
|
|
787
|
-
* Get service configuration
|
|
788
|
-
*/
|
|
789
|
-
export const serviceGetConfig = (options) => {
|
|
790
|
-
return (options.client ?? _heyApiClient).get({
|
|
791
|
-
security: [
|
|
792
|
-
{
|
|
793
|
-
scheme: "bearer",
|
|
794
|
-
type: "http",
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
in: "cookie",
|
|
798
|
-
name: "access_token",
|
|
799
|
-
type: "apiKey",
|
|
800
|
-
},
|
|
801
|
-
],
|
|
802
|
-
url: "/api/v1/tenants/{tenant}/services/{service}/config",
|
|
803
|
-
...options,
|
|
804
|
-
});
|
|
805
|
-
};
|
|
806
|
-
/**
|
|
807
|
-
* Update service configuration
|
|
808
|
-
*/
|
|
809
|
-
export const serviceUpdateConfig = (options) => {
|
|
810
|
-
return (options.client ?? _heyApiClient).put({
|
|
811
|
-
security: [
|
|
812
|
-
{
|
|
813
|
-
scheme: "bearer",
|
|
814
|
-
type: "http",
|
|
815
|
-
},
|
|
816
|
-
{
|
|
817
|
-
in: "cookie",
|
|
818
|
-
name: "access_token",
|
|
819
|
-
type: "apiKey",
|
|
820
|
-
},
|
|
821
|
-
],
|
|
822
|
-
url: "/api/v1/tenants/{tenant}/services/{service}/config",
|
|
823
|
-
...options,
|
|
824
|
-
headers: {
|
|
825
|
-
"Content-Type": "application/json",
|
|
826
|
-
...options.headers,
|
|
827
|
-
},
|
|
828
|
-
});
|
|
829
|
-
};
|
|
830
661
|
/**
|
|
831
662
|
* Create tenant
|
|
832
663
|
* Creates a new tenant
|
|
833
664
|
*/
|
|
834
665
|
export const tenantCreate = (options) => {
|
|
835
|
-
return (options.client ??
|
|
666
|
+
return (options.client ?? client).post({
|
|
836
667
|
security: [
|
|
837
668
|
{
|
|
838
669
|
scheme: "bearer",
|
|
@@ -857,7 +688,7 @@ export const tenantCreate = (options) => {
|
|
|
857
688
|
* Update an existing tenant
|
|
858
689
|
*/
|
|
859
690
|
export const tenantUpdate = (options) => {
|
|
860
|
-
return (options.client ??
|
|
691
|
+
return (options.client ?? client).patch({
|
|
861
692
|
security: [
|
|
862
693
|
{
|
|
863
694
|
scheme: "bearer",
|
|
@@ -882,7 +713,7 @@ export const tenantUpdate = (options) => {
|
|
|
882
713
|
* Gets the alerting settings for a tenant
|
|
883
714
|
*/
|
|
884
715
|
export const tenantAlertingSettingsGet = (options) => {
|
|
885
|
-
return (options.client ??
|
|
716
|
+
return (options.client ?? client).get({
|
|
886
717
|
security: [
|
|
887
718
|
{
|
|
888
719
|
scheme: "bearer",
|
|
@@ -903,7 +734,7 @@ export const tenantAlertingSettingsGet = (options) => {
|
|
|
903
734
|
* Gets a list of tenant invites
|
|
904
735
|
*/
|
|
905
736
|
export const tenantInviteList = (options) => {
|
|
906
|
-
return (options.client ??
|
|
737
|
+
return (options.client ?? client).get({
|
|
907
738
|
security: [
|
|
908
739
|
{
|
|
909
740
|
scheme: "bearer",
|
|
@@ -924,7 +755,7 @@ export const tenantInviteList = (options) => {
|
|
|
924
755
|
* Creates a new tenant invite
|
|
925
756
|
*/
|
|
926
757
|
export const tenantInviteCreate = (options) => {
|
|
927
|
-
return (options.client ??
|
|
758
|
+
return (options.client ?? client).post({
|
|
928
759
|
security: [
|
|
929
760
|
{
|
|
930
761
|
scheme: "bearer",
|
|
@@ -949,7 +780,7 @@ export const tenantInviteCreate = (options) => {
|
|
|
949
780
|
* Deletes a tenant invite
|
|
950
781
|
*/
|
|
951
782
|
export const tenantInviteDelete = (options) => {
|
|
952
|
-
return (options.client ??
|
|
783
|
+
return (options.client ?? client).delete({
|
|
953
784
|
security: [
|
|
954
785
|
{
|
|
955
786
|
scheme: "bearer",
|
|
@@ -970,7 +801,7 @@ export const tenantInviteDelete = (options) => {
|
|
|
970
801
|
* Updates a tenant invite
|
|
971
802
|
*/
|
|
972
803
|
export const tenantInviteUpdate = (options) => {
|
|
973
|
-
return (options.client ??
|
|
804
|
+
return (options.client ?? client).patch({
|
|
974
805
|
security: [
|
|
975
806
|
{
|
|
976
807
|
scheme: "bearer",
|
|
@@ -995,7 +826,7 @@ export const tenantInviteUpdate = (options) => {
|
|
|
995
826
|
* List API tokens for a tenant
|
|
996
827
|
*/
|
|
997
828
|
export const apiTokenList = (options) => {
|
|
998
|
-
return (options.client ??
|
|
829
|
+
return (options.client ?? client).get({
|
|
999
830
|
security: [
|
|
1000
831
|
{
|
|
1001
832
|
scheme: "bearer",
|
|
@@ -1016,7 +847,7 @@ export const apiTokenList = (options) => {
|
|
|
1016
847
|
* Create an API token for a tenant
|
|
1017
848
|
*/
|
|
1018
849
|
export const apiTokenCreate = (options) => {
|
|
1019
|
-
return (options.client ??
|
|
850
|
+
return (options.client ?? client).post({
|
|
1020
851
|
security: [
|
|
1021
852
|
{
|
|
1022
853
|
scheme: "bearer",
|
|
@@ -1041,7 +872,7 @@ export const apiTokenCreate = (options) => {
|
|
|
1041
872
|
* Revoke an API token for a tenant
|
|
1042
873
|
*/
|
|
1043
874
|
export const apiTokenUpdateRevoke = (options) => {
|
|
1044
|
-
return (options.client ??
|
|
875
|
+
return (options.client ?? client).post({
|
|
1045
876
|
security: [
|
|
1046
877
|
{
|
|
1047
878
|
scheme: "bearer",
|
|
@@ -1062,7 +893,7 @@ export const apiTokenUpdateRevoke = (options) => {
|
|
|
1062
893
|
* Gets a list of tenant members
|
|
1063
894
|
*/
|
|
1064
895
|
export const tenantMemberList = (options) => {
|
|
1065
|
-
return (options.client ??
|
|
896
|
+
return (options.client ?? client).get({
|
|
1066
897
|
security: [
|
|
1067
898
|
{
|
|
1068
899
|
scheme: "bearer",
|
|
@@ -1083,7 +914,7 @@ export const tenantMemberList = (options) => {
|
|
|
1083
914
|
* Delete a member from a tenant
|
|
1084
915
|
*/
|
|
1085
916
|
export const tenantMemberDelete = (options) => {
|
|
1086
|
-
return (options.client ??
|
|
917
|
+
return (options.client ?? client).delete({
|
|
1087
918
|
security: [
|
|
1088
919
|
{
|
|
1089
920
|
scheme: "bearer",
|
|
@@ -1104,7 +935,7 @@ export const tenantMemberDelete = (options) => {
|
|
|
1104
935
|
* Export tenant information including basic info and members
|
|
1105
936
|
*/
|
|
1106
937
|
export const tenantExport = (options) => {
|
|
1107
|
-
return (options.client ??
|
|
938
|
+
return (options.client ?? client).get({
|
|
1108
939
|
security: [
|
|
1109
940
|
{
|
|
1110
941
|
scheme: "bearer",
|
|
@@ -1125,7 +956,7 @@ export const tenantExport = (options) => {
|
|
|
1125
956
|
* Get the version of the server
|
|
1126
957
|
*/
|
|
1127
958
|
export const infoGetVersion = (options) => {
|
|
1128
|
-
return (options?.client ??
|
|
959
|
+
return (options?.client ?? client).get({
|
|
1129
960
|
url: "/api/v1/version",
|
|
1130
961
|
...options,
|
|
1131
962
|
});
|
|
@@ -1135,1125 +966,9 @@ export const infoGetVersion = (options) => {
|
|
|
1135
966
|
* Get public server information
|
|
1136
967
|
*/
|
|
1137
968
|
export const infoGet = (options) => {
|
|
1138
|
-
return (options?.client ??
|
|
969
|
+
return (options?.client ?? client).get({
|
|
1139
970
|
url: "/api/v1/info",
|
|
1140
971
|
...options,
|
|
1141
972
|
});
|
|
1142
973
|
};
|
|
1143
|
-
/**
|
|
1144
|
-
* Get the sites for the tenant
|
|
1145
|
-
*/
|
|
1146
|
-
export const siteList = (options) => {
|
|
1147
|
-
return (options.client ?? _heyApiClient).get({
|
|
1148
|
-
security: [
|
|
1149
|
-
{
|
|
1150
|
-
scheme: "bearer",
|
|
1151
|
-
type: "http",
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
in: "cookie",
|
|
1155
|
-
name: "access_token",
|
|
1156
|
-
type: "apiKey",
|
|
1157
|
-
},
|
|
1158
|
-
],
|
|
1159
|
-
url: "/api/v1/tenants/{tenant}/sites",
|
|
1160
|
-
...options,
|
|
1161
|
-
});
|
|
1162
|
-
};
|
|
1163
|
-
/**
|
|
1164
|
-
* create site
|
|
1165
|
-
*/
|
|
1166
|
-
export const siteCreate = (options) => {
|
|
1167
|
-
return (options.client ?? _heyApiClient).post({
|
|
1168
|
-
security: [
|
|
1169
|
-
{
|
|
1170
|
-
scheme: "bearer",
|
|
1171
|
-
type: "http",
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
in: "cookie",
|
|
1175
|
-
name: "access_token",
|
|
1176
|
-
type: "apiKey",
|
|
1177
|
-
},
|
|
1178
|
-
],
|
|
1179
|
-
url: "/api/v1/tenants/{tenant}/sites",
|
|
1180
|
-
...options,
|
|
1181
|
-
headers: {
|
|
1182
|
-
"Content-Type": "application/json",
|
|
1183
|
-
...options.headers,
|
|
1184
|
-
},
|
|
1185
|
-
});
|
|
1186
|
-
};
|
|
1187
|
-
/**
|
|
1188
|
-
* Delete site
|
|
1189
|
-
* Delete a site
|
|
1190
|
-
*/
|
|
1191
|
-
export const siteDelete = (options) => {
|
|
1192
|
-
return (options.client ?? _heyApiClient).delete({
|
|
1193
|
-
security: [
|
|
1194
|
-
{
|
|
1195
|
-
scheme: "bearer",
|
|
1196
|
-
type: "http",
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
in: "cookie",
|
|
1200
|
-
name: "access_token",
|
|
1201
|
-
type: "apiKey",
|
|
1202
|
-
},
|
|
1203
|
-
],
|
|
1204
|
-
url: "/api/v1/tenants/{tenant}/sites/{site}",
|
|
1205
|
-
...options,
|
|
1206
|
-
});
|
|
1207
|
-
};
|
|
1208
|
-
/**
|
|
1209
|
-
* Get the site for the tenant
|
|
1210
|
-
*/
|
|
1211
|
-
export const siteGet = (options) => {
|
|
1212
|
-
return (options.client ?? _heyApiClient).get({
|
|
1213
|
-
security: [
|
|
1214
|
-
{
|
|
1215
|
-
scheme: "bearer",
|
|
1216
|
-
type: "http",
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
in: "cookie",
|
|
1220
|
-
name: "access_token",
|
|
1221
|
-
type: "apiKey",
|
|
1222
|
-
},
|
|
1223
|
-
],
|
|
1224
|
-
url: "/api/v1/tenants/{tenant}/sites/{site}",
|
|
1225
|
-
...options,
|
|
1226
|
-
});
|
|
1227
|
-
};
|
|
1228
|
-
/**
|
|
1229
|
-
* Update site
|
|
1230
|
-
* Update an existing site
|
|
1231
|
-
*/
|
|
1232
|
-
export const siteUpdate = (options) => {
|
|
1233
|
-
return (options.client ?? _heyApiClient).patch({
|
|
1234
|
-
security: [
|
|
1235
|
-
{
|
|
1236
|
-
scheme: "bearer",
|
|
1237
|
-
type: "http",
|
|
1238
|
-
},
|
|
1239
|
-
{
|
|
1240
|
-
in: "cookie",
|
|
1241
|
-
name: "access_token",
|
|
1242
|
-
type: "apiKey",
|
|
1243
|
-
},
|
|
1244
|
-
],
|
|
1245
|
-
url: "/api/v1/tenants/{tenant}/sites/{site}",
|
|
1246
|
-
...options,
|
|
1247
|
-
headers: {
|
|
1248
|
-
"Content-Type": "application/json",
|
|
1249
|
-
...options.headers,
|
|
1250
|
-
},
|
|
1251
|
-
});
|
|
1252
|
-
};
|
|
1253
|
-
/**
|
|
1254
|
-
* 前端根据域名获取site公开数据
|
|
1255
|
-
*/
|
|
1256
|
-
export const siteGetByHost = (options) => {
|
|
1257
|
-
return (options.client ?? _heyApiClient).get({
|
|
1258
|
-
security: [
|
|
1259
|
-
{
|
|
1260
|
-
scheme: "bearer",
|
|
1261
|
-
type: "http",
|
|
1262
|
-
},
|
|
1263
|
-
{
|
|
1264
|
-
in: "cookie",
|
|
1265
|
-
name: "access_token",
|
|
1266
|
-
type: "apiKey",
|
|
1267
|
-
},
|
|
1268
|
-
],
|
|
1269
|
-
url: "/api/v1/tenants/{tenant}/sites/byHost/{host}",
|
|
1270
|
-
...options,
|
|
1271
|
-
});
|
|
1272
|
-
};
|
|
1273
|
-
/**
|
|
1274
|
-
* Get the site-hosts for the tenant
|
|
1275
|
-
*/
|
|
1276
|
-
export const siteHostList = (options) => {
|
|
1277
|
-
return (options.client ?? _heyApiClient).get({
|
|
1278
|
-
security: [
|
|
1279
|
-
{
|
|
1280
|
-
scheme: "bearer",
|
|
1281
|
-
type: "http",
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
in: "cookie",
|
|
1285
|
-
name: "access_token",
|
|
1286
|
-
type: "apiKey",
|
|
1287
|
-
},
|
|
1288
|
-
],
|
|
1289
|
-
url: "/api/v1/tenants/{tenant}/sites/{site}/site-hosts",
|
|
1290
|
-
...options,
|
|
1291
|
-
});
|
|
1292
|
-
};
|
|
1293
|
-
/**
|
|
1294
|
-
* create site-host
|
|
1295
|
-
*/
|
|
1296
|
-
export const siteHostCreate = (options) => {
|
|
1297
|
-
return (options.client ?? _heyApiClient).post({
|
|
1298
|
-
security: [
|
|
1299
|
-
{
|
|
1300
|
-
scheme: "bearer",
|
|
1301
|
-
type: "http",
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
in: "cookie",
|
|
1305
|
-
name: "access_token",
|
|
1306
|
-
type: "apiKey",
|
|
1307
|
-
},
|
|
1308
|
-
],
|
|
1309
|
-
url: "/api/v1/tenants/{tenant}/sites/{site}/site-hosts",
|
|
1310
|
-
...options,
|
|
1311
|
-
headers: {
|
|
1312
|
-
"Content-Type": "application/json",
|
|
1313
|
-
...options.headers,
|
|
1314
|
-
},
|
|
1315
|
-
});
|
|
1316
|
-
};
|
|
1317
|
-
/**
|
|
1318
|
-
* Get the site-host for the tenant
|
|
1319
|
-
*/
|
|
1320
|
-
export const siteHostGet = (options) => {
|
|
1321
|
-
return (options.client ?? _heyApiClient).get({
|
|
1322
|
-
security: [
|
|
1323
|
-
{
|
|
1324
|
-
scheme: "bearer",
|
|
1325
|
-
type: "http",
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
in: "cookie",
|
|
1329
|
-
name: "access_token",
|
|
1330
|
-
type: "apiKey",
|
|
1331
|
-
},
|
|
1332
|
-
],
|
|
1333
|
-
url: "/api/v1/tenants/{tenant}/sites/{site}/site-hosts/{host}",
|
|
1334
|
-
...options,
|
|
1335
|
-
});
|
|
1336
|
-
};
|
|
1337
|
-
/**
|
|
1338
|
-
* Update tenant
|
|
1339
|
-
* Update an existing site-host
|
|
1340
|
-
*/
|
|
1341
|
-
export const siteHostUpdate = (options) => {
|
|
1342
|
-
return (options.client ?? _heyApiClient).patch({
|
|
1343
|
-
security: [
|
|
1344
|
-
{
|
|
1345
|
-
scheme: "bearer",
|
|
1346
|
-
type: "http",
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
in: "cookie",
|
|
1350
|
-
name: "access_token",
|
|
1351
|
-
type: "apiKey",
|
|
1352
|
-
},
|
|
1353
|
-
],
|
|
1354
|
-
url: "/api/v1/tenants/{tenant}/sites/{site}/site-hosts/{host}",
|
|
1355
|
-
...options,
|
|
1356
|
-
headers: {
|
|
1357
|
-
"Content-Type": "application/json",
|
|
1358
|
-
...options.headers,
|
|
1359
|
-
},
|
|
1360
|
-
});
|
|
1361
|
-
};
|
|
1362
|
-
export const frontendGetConfig = (options) => {
|
|
1363
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1364
|
-
url: "/api/v1/frontend/config",
|
|
1365
|
-
...options,
|
|
1366
|
-
});
|
|
1367
|
-
};
|
|
1368
|
-
export const endpointList = (options) => {
|
|
1369
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1370
|
-
security: [
|
|
1371
|
-
{
|
|
1372
|
-
scheme: "bearer",
|
|
1373
|
-
type: "http",
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
in: "cookie",
|
|
1377
|
-
name: "access_token",
|
|
1378
|
-
type: "apiKey",
|
|
1379
|
-
},
|
|
1380
|
-
],
|
|
1381
|
-
url: "/api/v1/endpoint",
|
|
1382
|
-
...options,
|
|
1383
|
-
});
|
|
1384
|
-
};
|
|
1385
|
-
/**
|
|
1386
|
-
* Update endpoint
|
|
1387
|
-
* Update an endpoint
|
|
1388
|
-
*/
|
|
1389
|
-
export const endpointUpdate = (options) => {
|
|
1390
|
-
return (options.client ?? _heyApiClient).patch({
|
|
1391
|
-
security: [
|
|
1392
|
-
{
|
|
1393
|
-
scheme: "bearer",
|
|
1394
|
-
type: "http",
|
|
1395
|
-
},
|
|
1396
|
-
{
|
|
1397
|
-
in: "cookie",
|
|
1398
|
-
name: "access_token",
|
|
1399
|
-
type: "apiKey",
|
|
1400
|
-
},
|
|
1401
|
-
],
|
|
1402
|
-
url: "/api/v1/endpoint",
|
|
1403
|
-
...options,
|
|
1404
|
-
headers: {
|
|
1405
|
-
"Content-Type": "application/json",
|
|
1406
|
-
...options.headers,
|
|
1407
|
-
},
|
|
1408
|
-
});
|
|
1409
|
-
};
|
|
1410
|
-
/**
|
|
1411
|
-
* 获取mtworker任务
|
|
1412
|
-
* 获取mtworker任务
|
|
1413
|
-
*/
|
|
1414
|
-
export const mtworkerGetTasks = (options) => {
|
|
1415
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1416
|
-
security: [
|
|
1417
|
-
{
|
|
1418
|
-
scheme: "bearer",
|
|
1419
|
-
type: "http",
|
|
1420
|
-
},
|
|
1421
|
-
{
|
|
1422
|
-
in: "cookie",
|
|
1423
|
-
name: "access_token",
|
|
1424
|
-
type: "apiKey",
|
|
1425
|
-
},
|
|
1426
|
-
],
|
|
1427
|
-
url: "/api/v1/mtworker/tasks",
|
|
1428
|
-
...options,
|
|
1429
|
-
});
|
|
1430
|
-
};
|
|
1431
|
-
/**
|
|
1432
|
-
* 获取工作流Worker列表
|
|
1433
|
-
* 获取当前运行的工作流Worker列表
|
|
1434
|
-
*/
|
|
1435
|
-
export const workflowGetWorkers = (options) => {
|
|
1436
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1437
|
-
security: [
|
|
1438
|
-
{
|
|
1439
|
-
scheme: "bearer",
|
|
1440
|
-
type: "http",
|
|
1441
|
-
},
|
|
1442
|
-
{
|
|
1443
|
-
in: "cookie",
|
|
1444
|
-
name: "access_token",
|
|
1445
|
-
type: "apiKey",
|
|
1446
|
-
},
|
|
1447
|
-
],
|
|
1448
|
-
url: "/api/v1/workflow/workers",
|
|
1449
|
-
...options,
|
|
1450
|
-
});
|
|
1451
|
-
};
|
|
1452
|
-
/**
|
|
1453
|
-
* 启动工作流Worker
|
|
1454
|
-
* 启动一个新的工作流Worker实例
|
|
1455
|
-
*/
|
|
1456
|
-
export const workflowStartWorker = (options) => {
|
|
1457
|
-
return (options.client ?? _heyApiClient).post({
|
|
1458
|
-
security: [
|
|
1459
|
-
{
|
|
1460
|
-
scheme: "bearer",
|
|
1461
|
-
type: "http",
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
in: "cookie",
|
|
1465
|
-
name: "access_token",
|
|
1466
|
-
type: "apiKey",
|
|
1467
|
-
},
|
|
1468
|
-
],
|
|
1469
|
-
url: "/api/v1/workflow/workers/start",
|
|
1470
|
-
...options,
|
|
1471
|
-
headers: {
|
|
1472
|
-
"Content-Type": "application/json",
|
|
1473
|
-
...options.headers,
|
|
1474
|
-
},
|
|
1475
|
-
});
|
|
1476
|
-
};
|
|
1477
|
-
/**
|
|
1478
|
-
* 停止工作流Worker
|
|
1479
|
-
* 停止指定的工作流Worker实例
|
|
1480
|
-
*/
|
|
1481
|
-
export const workflowStopWorker = (options) => {
|
|
1482
|
-
return (options.client ?? _heyApiClient).post({
|
|
1483
|
-
security: [
|
|
1484
|
-
{
|
|
1485
|
-
scheme: "bearer",
|
|
1486
|
-
type: "http",
|
|
1487
|
-
},
|
|
1488
|
-
{
|
|
1489
|
-
in: "cookie",
|
|
1490
|
-
name: "access_token",
|
|
1491
|
-
type: "apiKey",
|
|
1492
|
-
},
|
|
1493
|
-
],
|
|
1494
|
-
url: "/api/v1/workflow/workers/stop",
|
|
1495
|
-
...options,
|
|
1496
|
-
headers: {
|
|
1497
|
-
"Content-Type": "application/json",
|
|
1498
|
-
...options.headers,
|
|
1499
|
-
},
|
|
1500
|
-
});
|
|
1501
|
-
};
|
|
1502
|
-
/**
|
|
1503
|
-
* 获取Worker状态
|
|
1504
|
-
* 获取所有Worker的运行状态
|
|
1505
|
-
*/
|
|
1506
|
-
export const workflowGetWorkerStatus = (options) => {
|
|
1507
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1508
|
-
security: [
|
|
1509
|
-
{
|
|
1510
|
-
scheme: "bearer",
|
|
1511
|
-
type: "http",
|
|
1512
|
-
},
|
|
1513
|
-
{
|
|
1514
|
-
in: "cookie",
|
|
1515
|
-
name: "access_token",
|
|
1516
|
-
type: "apiKey",
|
|
1517
|
-
},
|
|
1518
|
-
],
|
|
1519
|
-
url: "/api/v1/workflow/workers/status",
|
|
1520
|
-
...options,
|
|
1521
|
-
});
|
|
1522
|
-
};
|
|
1523
|
-
/**
|
|
1524
|
-
* 获取可用工作流列表
|
|
1525
|
-
* 获取本机可用的工作流组件列表
|
|
1526
|
-
*/
|
|
1527
|
-
export const workflowGetAvailableWorkflows = (options) => {
|
|
1528
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1529
|
-
security: [
|
|
1530
|
-
{
|
|
1531
|
-
scheme: "bearer",
|
|
1532
|
-
type: "http",
|
|
1533
|
-
},
|
|
1534
|
-
{
|
|
1535
|
-
in: "cookie",
|
|
1536
|
-
name: "access_token",
|
|
1537
|
-
type: "apiKey",
|
|
1538
|
-
},
|
|
1539
|
-
],
|
|
1540
|
-
url: "/api/v1/workflow/available",
|
|
1541
|
-
...options,
|
|
1542
|
-
});
|
|
1543
|
-
};
|
|
1544
|
-
/**
|
|
1545
|
-
* 运行工作流
|
|
1546
|
-
* 触发执行指定的工作流
|
|
1547
|
-
*/
|
|
1548
|
-
export const workflowRunWorkflow = (options) => {
|
|
1549
|
-
return (options.client ?? _heyApiClient).post({
|
|
1550
|
-
security: [
|
|
1551
|
-
{
|
|
1552
|
-
scheme: "bearer",
|
|
1553
|
-
type: "http",
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
in: "cookie",
|
|
1557
|
-
name: "access_token",
|
|
1558
|
-
type: "apiKey",
|
|
1559
|
-
},
|
|
1560
|
-
],
|
|
1561
|
-
url: "/api/v1/workflow/run",
|
|
1562
|
-
...options,
|
|
1563
|
-
headers: {
|
|
1564
|
-
"Content-Type": "application/json",
|
|
1565
|
-
...options.headers,
|
|
1566
|
-
},
|
|
1567
|
-
});
|
|
1568
|
-
};
|
|
1569
|
-
/**
|
|
1570
|
-
* Run a container with specified configuration
|
|
1571
|
-
*/
|
|
1572
|
-
export const toolsRunContainer = (options) => {
|
|
1573
|
-
return (options.client ?? _heyApiClient).post({
|
|
1574
|
-
url: "/api/v1/tenants/{tenant}/tools/container/run",
|
|
1575
|
-
...options,
|
|
1576
|
-
headers: {
|
|
1577
|
-
"Content-Type": "application/json",
|
|
1578
|
-
...options.headers,
|
|
1579
|
-
},
|
|
1580
|
-
});
|
|
1581
|
-
};
|
|
1582
|
-
/**
|
|
1583
|
-
* Get the posts for the site
|
|
1584
|
-
*/
|
|
1585
|
-
export const postListPublic = (options) => {
|
|
1586
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1587
|
-
url: "/api/v1/posts/public",
|
|
1588
|
-
...options,
|
|
1589
|
-
});
|
|
1590
|
-
};
|
|
1591
|
-
/**
|
|
1592
|
-
* Delete post
|
|
1593
|
-
*/
|
|
1594
|
-
export const postDelete = (options) => {
|
|
1595
|
-
return (options.client ?? _heyApiClient).delete({
|
|
1596
|
-
security: [
|
|
1597
|
-
{
|
|
1598
|
-
scheme: "bearer",
|
|
1599
|
-
type: "http",
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
in: "cookie",
|
|
1603
|
-
name: "access_token",
|
|
1604
|
-
type: "apiKey",
|
|
1605
|
-
},
|
|
1606
|
-
],
|
|
1607
|
-
url: "/api/v1/tenants/{tenant}/posts/{post}",
|
|
1608
|
-
...options,
|
|
1609
|
-
});
|
|
1610
|
-
};
|
|
1611
|
-
/**
|
|
1612
|
-
* Get the post for the tenant
|
|
1613
|
-
*/
|
|
1614
|
-
export const postGet = (options) => {
|
|
1615
|
-
return (options.client ?? _heyApiClient).get({
|
|
1616
|
-
security: [
|
|
1617
|
-
{
|
|
1618
|
-
scheme: "bearer",
|
|
1619
|
-
type: "http",
|
|
1620
|
-
},
|
|
1621
|
-
{
|
|
1622
|
-
in: "cookie",
|
|
1623
|
-
name: "access_token",
|
|
1624
|
-
type: "apiKey",
|
|
1625
|
-
},
|
|
1626
|
-
],
|
|
1627
|
-
url: "/api/v1/tenants/{tenant}/posts/{post}",
|
|
1628
|
-
...options,
|
|
1629
|
-
});
|
|
1630
|
-
};
|
|
1631
|
-
/**
|
|
1632
|
-
* Update post
|
|
1633
|
-
*/
|
|
1634
|
-
export const postUpdate = (options) => {
|
|
1635
|
-
return (options.client ?? _heyApiClient).put({
|
|
1636
|
-
security: [
|
|
1637
|
-
{
|
|
1638
|
-
scheme: "bearer",
|
|
1639
|
-
type: "http",
|
|
1640
|
-
},
|
|
1641
|
-
{
|
|
1642
|
-
in: "cookie",
|
|
1643
|
-
name: "access_token",
|
|
1644
|
-
type: "apiKey",
|
|
1645
|
-
},
|
|
1646
|
-
],
|
|
1647
|
-
url: "/api/v1/tenants/{tenant}/posts/{post}",
|
|
1648
|
-
...options,
|
|
1649
|
-
headers: {
|
|
1650
|
-
"Content-Type": "application/json",
|
|
1651
|
-
...options.headers,
|
|
1652
|
-
},
|
|
1653
|
-
});
|
|
1654
|
-
};
|
|
1655
|
-
/**
|
|
1656
|
-
* Get the posts for the site
|
|
1657
|
-
*/
|
|
1658
|
-
export const postList = (options) => {
|
|
1659
|
-
return (options.client ?? _heyApiClient).get({
|
|
1660
|
-
security: [
|
|
1661
|
-
{
|
|
1662
|
-
scheme: "bearer",
|
|
1663
|
-
type: "http",
|
|
1664
|
-
},
|
|
1665
|
-
{
|
|
1666
|
-
in: "cookie",
|
|
1667
|
-
name: "access_token",
|
|
1668
|
-
type: "apiKey",
|
|
1669
|
-
},
|
|
1670
|
-
],
|
|
1671
|
-
url: "/api/v1/tenants/{tenant}/posts",
|
|
1672
|
-
...options,
|
|
1673
|
-
});
|
|
1674
|
-
};
|
|
1675
|
-
/**
|
|
1676
|
-
* create post
|
|
1677
|
-
*/
|
|
1678
|
-
export const postCreate = (options) => {
|
|
1679
|
-
return (options.client ?? _heyApiClient).post({
|
|
1680
|
-
security: [
|
|
1681
|
-
{
|
|
1682
|
-
scheme: "bearer",
|
|
1683
|
-
type: "http",
|
|
1684
|
-
},
|
|
1685
|
-
{
|
|
1686
|
-
in: "cookie",
|
|
1687
|
-
name: "access_token",
|
|
1688
|
-
type: "apiKey",
|
|
1689
|
-
},
|
|
1690
|
-
],
|
|
1691
|
-
url: "/api/v1/tenants/{tenant}/posts",
|
|
1692
|
-
...options,
|
|
1693
|
-
headers: {
|
|
1694
|
-
"Content-Type": "application/json",
|
|
1695
|
-
...options.headers,
|
|
1696
|
-
},
|
|
1697
|
-
});
|
|
1698
|
-
};
|
|
1699
|
-
/**
|
|
1700
|
-
* Get a script by name
|
|
1701
|
-
* Get a script by name
|
|
1702
|
-
*/
|
|
1703
|
-
export const scriptsByName = (options) => {
|
|
1704
|
-
return (options.client ?? _heyApiClient).get({
|
|
1705
|
-
security: [
|
|
1706
|
-
{
|
|
1707
|
-
scheme: "bearer",
|
|
1708
|
-
type: "http",
|
|
1709
|
-
},
|
|
1710
|
-
{
|
|
1711
|
-
in: "cookie",
|
|
1712
|
-
name: "access_token",
|
|
1713
|
-
type: "apiKey",
|
|
1714
|
-
},
|
|
1715
|
-
],
|
|
1716
|
-
url: "/api/v1/scripts/scripts/{name}",
|
|
1717
|
-
...options,
|
|
1718
|
-
});
|
|
1719
|
-
};
|
|
1720
|
-
/**
|
|
1721
|
-
* 获取sing-box worker profile
|
|
1722
|
-
* 获取sing-box worker profile
|
|
1723
|
-
*/
|
|
1724
|
-
export const singboxGetWorkerProfile = (options) => {
|
|
1725
|
-
return (options.client ?? _heyApiClient).get({
|
|
1726
|
-
url: "/api/v1/singbox/workerProfile/{profileType}/{profile}",
|
|
1727
|
-
...options,
|
|
1728
|
-
});
|
|
1729
|
-
};
|
|
1730
|
-
/**
|
|
1731
|
-
* 获取sing-box订阅
|
|
1732
|
-
* 获取sing-box订阅
|
|
1733
|
-
*/
|
|
1734
|
-
export const singboxSubscribe = (options) => {
|
|
1735
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1736
|
-
url: "/api/v1/singbox/subscribe/{group}/{profile}",
|
|
1737
|
-
...options,
|
|
1738
|
-
});
|
|
1739
|
-
};
|
|
1740
|
-
/**
|
|
1741
|
-
* 获取sing-box geoip-cn.srs文件
|
|
1742
|
-
* 获取sing-box geoip-cn.srs文件
|
|
1743
|
-
*/
|
|
1744
|
-
export const singboxGeoipCnSrs = (options) => {
|
|
1745
|
-
return (options.client ?? _heyApiClient).get({
|
|
1746
|
-
url: "/api/v1/singbox/srs/{file}",
|
|
1747
|
-
...options,
|
|
1748
|
-
});
|
|
1749
|
-
};
|
|
1750
|
-
/**
|
|
1751
|
-
* 获取所有sing-box outbound
|
|
1752
|
-
* 获取所有sing-box outbound配置
|
|
1753
|
-
*/
|
|
1754
|
-
export const singboxGetOutbounds = (options) => {
|
|
1755
|
-
return (options?.client ?? _heyApiClient).get({
|
|
1756
|
-
url: "/api/v1/singbox/outbounds",
|
|
1757
|
-
...options,
|
|
1758
|
-
});
|
|
1759
|
-
};
|
|
1760
|
-
/**
|
|
1761
|
-
* 创建sing-box outbound
|
|
1762
|
-
* 创建新的sing-box outbound配置
|
|
1763
|
-
*/
|
|
1764
|
-
export const singboxCreateOutbound = (options) => {
|
|
1765
|
-
return (options?.client ?? _heyApiClient).post({
|
|
1766
|
-
url: "/api/v1/singbox/outbounds",
|
|
1767
|
-
...options,
|
|
1768
|
-
headers: {
|
|
1769
|
-
"Content-Type": "application/json",
|
|
1770
|
-
...options?.headers,
|
|
1771
|
-
},
|
|
1772
|
-
});
|
|
1773
|
-
};
|
|
1774
|
-
/**
|
|
1775
|
-
* 删除指定sing-box outbound
|
|
1776
|
-
* 删除指定的sing-box outbound配置
|
|
1777
|
-
*/
|
|
1778
|
-
export const singboxDeleteOutbound = (options) => {
|
|
1779
|
-
return (options.client ?? _heyApiClient).delete({
|
|
1780
|
-
url: "/api/v1/singbox/outbounds/{id}",
|
|
1781
|
-
...options,
|
|
1782
|
-
});
|
|
1783
|
-
};
|
|
1784
|
-
/**
|
|
1785
|
-
* 获取指定sing-box outbound
|
|
1786
|
-
* 获取指定的sing-box outbound配置
|
|
1787
|
-
*/
|
|
1788
|
-
export const singboxGetOutbound = (options) => {
|
|
1789
|
-
return (options.client ?? _heyApiClient).get({
|
|
1790
|
-
url: "/api/v1/singbox/outbounds/{id}",
|
|
1791
|
-
...options,
|
|
1792
|
-
});
|
|
1793
|
-
};
|
|
1794
|
-
/**
|
|
1795
|
-
* 更新指定sing-box outbound
|
|
1796
|
-
* 更新指定的sing-box outbound配置
|
|
1797
|
-
*/
|
|
1798
|
-
export const singboxUpdateOutbound = (options) => {
|
|
1799
|
-
return (options.client ?? _heyApiClient).put({
|
|
1800
|
-
url: "/api/v1/singbox/outbounds/{id}",
|
|
1801
|
-
...options,
|
|
1802
|
-
headers: {
|
|
1803
|
-
"Content-Type": "application/json",
|
|
1804
|
-
...options.headers,
|
|
1805
|
-
},
|
|
1806
|
-
});
|
|
1807
|
-
};
|
|
1808
|
-
/**
|
|
1809
|
-
* 导入sing-box outbound
|
|
1810
|
-
* 导入sing-box outbound
|
|
1811
|
-
*/
|
|
1812
|
-
export const singboxImportOutbounds = (options) => {
|
|
1813
|
-
return (options?.client ?? _heyApiClient).post({
|
|
1814
|
-
url: "/api/v1/singbox/import",
|
|
1815
|
-
...options,
|
|
1816
|
-
headers: {
|
|
1817
|
-
"Content-Type": "application/json",
|
|
1818
|
-
...options?.headers,
|
|
1819
|
-
},
|
|
1820
|
-
});
|
|
1821
|
-
};
|
|
1822
|
-
/**
|
|
1823
|
-
* 获取浏览器配置列表
|
|
1824
|
-
*/
|
|
1825
|
-
export const browserList = (options) => {
|
|
1826
|
-
return (options.client ?? _heyApiClient).get({
|
|
1827
|
-
security: [
|
|
1828
|
-
{
|
|
1829
|
-
scheme: "bearer",
|
|
1830
|
-
type: "http",
|
|
1831
|
-
},
|
|
1832
|
-
{
|
|
1833
|
-
in: "cookie",
|
|
1834
|
-
name: "access_token",
|
|
1835
|
-
type: "apiKey",
|
|
1836
|
-
},
|
|
1837
|
-
],
|
|
1838
|
-
url: "/api/v1/tenants/{tenant}/browsers",
|
|
1839
|
-
...options,
|
|
1840
|
-
});
|
|
1841
|
-
};
|
|
1842
|
-
/**
|
|
1843
|
-
* 创建新的浏览器配置
|
|
1844
|
-
*/
|
|
1845
|
-
export const browserCreate = (options) => {
|
|
1846
|
-
return (options.client ?? _heyApiClient).post({
|
|
1847
|
-
security: [
|
|
1848
|
-
{
|
|
1849
|
-
scheme: "bearer",
|
|
1850
|
-
type: "http",
|
|
1851
|
-
},
|
|
1852
|
-
{
|
|
1853
|
-
in: "cookie",
|
|
1854
|
-
name: "access_token",
|
|
1855
|
-
type: "apiKey",
|
|
1856
|
-
},
|
|
1857
|
-
],
|
|
1858
|
-
url: "/api/v1/tenants/{tenant}/browsers",
|
|
1859
|
-
...options,
|
|
1860
|
-
headers: {
|
|
1861
|
-
"Content-Type": "application/json",
|
|
1862
|
-
...options.headers,
|
|
1863
|
-
},
|
|
1864
|
-
});
|
|
1865
|
-
};
|
|
1866
|
-
/**
|
|
1867
|
-
* 导出租户的所有浏览器配置,支持完整数据导出
|
|
1868
|
-
*/
|
|
1869
|
-
export const browserExport = (options) => {
|
|
1870
|
-
return (options.client ?? _heyApiClient).get({
|
|
1871
|
-
security: [
|
|
1872
|
-
{
|
|
1873
|
-
scheme: "bearer",
|
|
1874
|
-
type: "http",
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
in: "cookie",
|
|
1878
|
-
name: "access_token",
|
|
1879
|
-
type: "apiKey",
|
|
1880
|
-
},
|
|
1881
|
-
],
|
|
1882
|
-
url: "/api/v1/tenants/{tenant}/browsers/_export",
|
|
1883
|
-
...options,
|
|
1884
|
-
});
|
|
1885
|
-
};
|
|
1886
|
-
/**
|
|
1887
|
-
* 导入浏览器配置
|
|
1888
|
-
*/
|
|
1889
|
-
export const browserImport = (options) => {
|
|
1890
|
-
return (options.client ?? _heyApiClient).post({
|
|
1891
|
-
security: [
|
|
1892
|
-
{
|
|
1893
|
-
scheme: "bearer",
|
|
1894
|
-
type: "http",
|
|
1895
|
-
},
|
|
1896
|
-
{
|
|
1897
|
-
in: "cookie",
|
|
1898
|
-
name: "access_token",
|
|
1899
|
-
type: "apiKey",
|
|
1900
|
-
},
|
|
1901
|
-
],
|
|
1902
|
-
url: "/api/v1/tenants/{tenant}/browsers/_import",
|
|
1903
|
-
...options,
|
|
1904
|
-
headers: {
|
|
1905
|
-
"Content-Type": "application/json",
|
|
1906
|
-
...options.headers,
|
|
1907
|
-
},
|
|
1908
|
-
});
|
|
1909
|
-
};
|
|
1910
|
-
/**
|
|
1911
|
-
* 删除浏览器配置
|
|
1912
|
-
*/
|
|
1913
|
-
export const browserDelete = (options) => {
|
|
1914
|
-
return (options.client ?? _heyApiClient).delete({
|
|
1915
|
-
security: [
|
|
1916
|
-
{
|
|
1917
|
-
scheme: "bearer",
|
|
1918
|
-
type: "http",
|
|
1919
|
-
},
|
|
1920
|
-
{
|
|
1921
|
-
in: "cookie",
|
|
1922
|
-
name: "access_token",
|
|
1923
|
-
type: "apiKey",
|
|
1924
|
-
},
|
|
1925
|
-
],
|
|
1926
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}",
|
|
1927
|
-
...options,
|
|
1928
|
-
});
|
|
1929
|
-
};
|
|
1930
|
-
/**
|
|
1931
|
-
* 获取指定的浏览器配置
|
|
1932
|
-
*/
|
|
1933
|
-
export const browserGet = (options) => {
|
|
1934
|
-
return (options.client ?? _heyApiClient).get({
|
|
1935
|
-
security: [
|
|
1936
|
-
{
|
|
1937
|
-
scheme: "bearer",
|
|
1938
|
-
type: "http",
|
|
1939
|
-
},
|
|
1940
|
-
{
|
|
1941
|
-
in: "cookie",
|
|
1942
|
-
name: "access_token",
|
|
1943
|
-
type: "apiKey",
|
|
1944
|
-
},
|
|
1945
|
-
],
|
|
1946
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}",
|
|
1947
|
-
...options,
|
|
1948
|
-
});
|
|
1949
|
-
};
|
|
1950
|
-
/**
|
|
1951
|
-
* 更新浏览器配置
|
|
1952
|
-
*/
|
|
1953
|
-
export const browserUpdate = (options) => {
|
|
1954
|
-
return (options.client ?? _heyApiClient).put({
|
|
1955
|
-
security: [
|
|
1956
|
-
{
|
|
1957
|
-
scheme: "bearer",
|
|
1958
|
-
type: "http",
|
|
1959
|
-
},
|
|
1960
|
-
{
|
|
1961
|
-
in: "cookie",
|
|
1962
|
-
name: "access_token",
|
|
1963
|
-
type: "apiKey",
|
|
1964
|
-
},
|
|
1965
|
-
],
|
|
1966
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}",
|
|
1967
|
-
...options,
|
|
1968
|
-
headers: {
|
|
1969
|
-
"Content-Type": "application/json",
|
|
1970
|
-
...options.headers,
|
|
1971
|
-
},
|
|
1972
|
-
});
|
|
1973
|
-
};
|
|
1974
|
-
/**
|
|
1975
|
-
* 启动指定的浏览器配置
|
|
1976
|
-
*/
|
|
1977
|
-
export const browserLaunch = (options) => {
|
|
1978
|
-
return (options.client ?? _heyApiClient).post({
|
|
1979
|
-
security: [
|
|
1980
|
-
{
|
|
1981
|
-
scheme: "bearer",
|
|
1982
|
-
type: "http",
|
|
1983
|
-
},
|
|
1984
|
-
{
|
|
1985
|
-
in: "cookie",
|
|
1986
|
-
name: "access_token",
|
|
1987
|
-
type: "apiKey",
|
|
1988
|
-
},
|
|
1989
|
-
],
|
|
1990
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}/_launch",
|
|
1991
|
-
...options,
|
|
1992
|
-
headers: {
|
|
1993
|
-
"Content-Type": "application/json",
|
|
1994
|
-
...options.headers,
|
|
1995
|
-
},
|
|
1996
|
-
});
|
|
1997
|
-
};
|
|
1998
|
-
/**
|
|
1999
|
-
* 关闭指定的浏览器实例
|
|
2000
|
-
*/
|
|
2001
|
-
export const browserClose = (options) => {
|
|
2002
|
-
return (options.client ?? _heyApiClient).post({
|
|
2003
|
-
security: [
|
|
2004
|
-
{
|
|
2005
|
-
scheme: "bearer",
|
|
2006
|
-
type: "http",
|
|
2007
|
-
},
|
|
2008
|
-
{
|
|
2009
|
-
in: "cookie",
|
|
2010
|
-
name: "access_token",
|
|
2011
|
-
type: "apiKey",
|
|
2012
|
-
},
|
|
2013
|
-
],
|
|
2014
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}/_close",
|
|
2015
|
-
...options,
|
|
2016
|
-
});
|
|
2017
|
-
};
|
|
2018
|
-
/**
|
|
2019
|
-
* 获取指定浏览器实例的运行状态
|
|
2020
|
-
*/
|
|
2021
|
-
export const browserStatus = (options) => {
|
|
2022
|
-
return (options.client ?? _heyApiClient).get({
|
|
2023
|
-
security: [
|
|
2024
|
-
{
|
|
2025
|
-
scheme: "bearer",
|
|
2026
|
-
type: "http",
|
|
2027
|
-
},
|
|
2028
|
-
{
|
|
2029
|
-
in: "cookie",
|
|
2030
|
-
name: "access_token",
|
|
2031
|
-
type: "apiKey",
|
|
2032
|
-
},
|
|
2033
|
-
],
|
|
2034
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}/_status",
|
|
2035
|
-
...options,
|
|
2036
|
-
});
|
|
2037
|
-
};
|
|
2038
|
-
/**
|
|
2039
|
-
* 获取指定浏览器实例的cookies信息,按域名分组
|
|
2040
|
-
*/
|
|
2041
|
-
export const browserCookies = (options) => {
|
|
2042
|
-
return (options.client ?? _heyApiClient).get({
|
|
2043
|
-
security: [
|
|
2044
|
-
{
|
|
2045
|
-
scheme: "bearer",
|
|
2046
|
-
type: "http",
|
|
2047
|
-
},
|
|
2048
|
-
{
|
|
2049
|
-
in: "cookie",
|
|
2050
|
-
name: "access_token",
|
|
2051
|
-
type: "apiKey",
|
|
2052
|
-
},
|
|
2053
|
-
],
|
|
2054
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}/_cookies",
|
|
2055
|
-
...options,
|
|
2056
|
-
});
|
|
2057
|
-
};
|
|
2058
|
-
/**
|
|
2059
|
-
* 更新指定浏览器实例的cookies
|
|
2060
|
-
*/
|
|
2061
|
-
export const browserUpdateCookies = (options) => {
|
|
2062
|
-
return (options.client ?? _heyApiClient).put({
|
|
2063
|
-
security: [
|
|
2064
|
-
{
|
|
2065
|
-
scheme: "bearer",
|
|
2066
|
-
type: "http",
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
in: "cookie",
|
|
2070
|
-
name: "access_token",
|
|
2071
|
-
type: "apiKey",
|
|
2072
|
-
},
|
|
2073
|
-
],
|
|
2074
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}/_cookies",
|
|
2075
|
-
...options,
|
|
2076
|
-
headers: {
|
|
2077
|
-
"Content-Type": "application/json",
|
|
2078
|
-
...options.headers,
|
|
2079
|
-
},
|
|
2080
|
-
});
|
|
2081
|
-
};
|
|
2082
|
-
/**
|
|
2083
|
-
* 获取浏览器的持久化状态信息
|
|
2084
|
-
*/
|
|
2085
|
-
export const browserGetState = (options) => {
|
|
2086
|
-
return (options.client ?? _heyApiClient).get({
|
|
2087
|
-
security: [
|
|
2088
|
-
{
|
|
2089
|
-
scheme: "bearer",
|
|
2090
|
-
type: "http",
|
|
2091
|
-
},
|
|
2092
|
-
{
|
|
2093
|
-
in: "cookie",
|
|
2094
|
-
name: "access_token",
|
|
2095
|
-
type: "apiKey",
|
|
2096
|
-
},
|
|
2097
|
-
],
|
|
2098
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}/_state",
|
|
2099
|
-
...options,
|
|
2100
|
-
});
|
|
2101
|
-
};
|
|
2102
|
-
/**
|
|
2103
|
-
* 更新浏览器的持久化状态信息
|
|
2104
|
-
*/
|
|
2105
|
-
export const browserUpdateState = (options) => {
|
|
2106
|
-
return (options.client ?? _heyApiClient).put({
|
|
2107
|
-
security: [
|
|
2108
|
-
{
|
|
2109
|
-
scheme: "bearer",
|
|
2110
|
-
type: "http",
|
|
2111
|
-
},
|
|
2112
|
-
{
|
|
2113
|
-
in: "cookie",
|
|
2114
|
-
name: "access_token",
|
|
2115
|
-
type: "apiKey",
|
|
2116
|
-
},
|
|
2117
|
-
],
|
|
2118
|
-
url: "/api/v1/tenants/{tenant}/browsers/{browserId}/_state",
|
|
2119
|
-
...options,
|
|
2120
|
-
headers: {
|
|
2121
|
-
"Content-Type": "application/json",
|
|
2122
|
-
...options.headers,
|
|
2123
|
-
},
|
|
2124
|
-
});
|
|
2125
|
-
};
|
|
2126
|
-
/**
|
|
2127
|
-
* Get bot list for a tenant.
|
|
2128
|
-
*/
|
|
2129
|
-
export const botList = (options) => {
|
|
2130
|
-
return (options?.client ?? _heyApiClient).get({
|
|
2131
|
-
url: "/api/v1/bot/list",
|
|
2132
|
-
...options,
|
|
2133
|
-
});
|
|
2134
|
-
};
|
|
2135
|
-
/**
|
|
2136
|
-
* Get bot by id.
|
|
2137
|
-
*/
|
|
2138
|
-
export const botGet = (options) => {
|
|
2139
|
-
return (options.client ?? _heyApiClient).get({
|
|
2140
|
-
url: "/api/v1/bot/{bot}",
|
|
2141
|
-
...options,
|
|
2142
|
-
});
|
|
2143
|
-
};
|
|
2144
|
-
/**
|
|
2145
|
-
* Heartbeat
|
|
2146
|
-
* Heartbeat for bot.
|
|
2147
|
-
*/
|
|
2148
|
-
export const botHeartbeat = (options) => {
|
|
2149
|
-
return (options?.client ?? _heyApiClient).post({
|
|
2150
|
-
url: "/api/v1/bot/heartbeat",
|
|
2151
|
-
...options,
|
|
2152
|
-
headers: {
|
|
2153
|
-
"Content-Type": "application/json",
|
|
2154
|
-
...options?.headers,
|
|
2155
|
-
},
|
|
2156
|
-
});
|
|
2157
|
-
};
|
|
2158
|
-
/**
|
|
2159
|
-
* Unified system setup (SSE)
|
|
2160
|
-
* Initialize system with database URL and super admin password.
|
|
2161
|
-
* Returns progress via Server-Sent Events (SSE).
|
|
2162
|
-
*
|
|
2163
|
-
*/
|
|
2164
|
-
export const systemSetup = (options) => {
|
|
2165
|
-
return (options.client ?? _heyApiClient).post({
|
|
2166
|
-
url: "/api/v1/setup",
|
|
2167
|
-
...options,
|
|
2168
|
-
headers: {
|
|
2169
|
-
"Content-Type": "application/json",
|
|
2170
|
-
...options.headers,
|
|
2171
|
-
},
|
|
2172
|
-
});
|
|
2173
|
-
};
|
|
2174
|
-
/**
|
|
2175
|
-
* Get system logs with filtering options
|
|
2176
|
-
*/
|
|
2177
|
-
export const systemGetLogs = (options) => {
|
|
2178
|
-
return (options?.client ?? _heyApiClient).get({
|
|
2179
|
-
url: "/api/v1/system/logs",
|
|
2180
|
-
...options,
|
|
2181
|
-
});
|
|
2182
|
-
};
|
|
2183
|
-
/**
|
|
2184
|
-
* Get OAuth configuration
|
|
2185
|
-
*/
|
|
2186
|
-
export const systemGetOAuthConfig = (options) => {
|
|
2187
|
-
return (options?.client ?? _heyApiClient).get({
|
|
2188
|
-
url: "/api/v1/system/oauth-config",
|
|
2189
|
-
...options,
|
|
2190
|
-
});
|
|
2191
|
-
};
|
|
2192
|
-
/**
|
|
2193
|
-
* Update OAuth configuration
|
|
2194
|
-
*/
|
|
2195
|
-
export const systemUpdateOAuthConfig = (options) => {
|
|
2196
|
-
return (options.client ?? _heyApiClient).post({
|
|
2197
|
-
url: "/api/v1/system/oauth-config",
|
|
2198
|
-
...options,
|
|
2199
|
-
headers: {
|
|
2200
|
-
"Content-Type": "application/json",
|
|
2201
|
-
...options.headers,
|
|
2202
|
-
},
|
|
2203
|
-
});
|
|
2204
|
-
};
|
|
2205
|
-
/**
|
|
2206
|
-
* Get system performance metrics including CPU, memory, and disk usage
|
|
2207
|
-
*/
|
|
2208
|
-
export const systemGetPerformanceMetrics = (options) => {
|
|
2209
|
-
return (options?.client ?? _heyApiClient).get({
|
|
2210
|
-
url: "/api/v1/system/performance-metrics",
|
|
2211
|
-
...options,
|
|
2212
|
-
});
|
|
2213
|
-
};
|
|
2214
|
-
/**
|
|
2215
|
-
* Get system settings
|
|
2216
|
-
*/
|
|
2217
|
-
export const systemGetSystemSettings = (options) => {
|
|
2218
|
-
return (options?.client ?? _heyApiClient).get({
|
|
2219
|
-
url: "/api/v1/system/system-settings",
|
|
2220
|
-
...options,
|
|
2221
|
-
});
|
|
2222
|
-
};
|
|
2223
|
-
/**
|
|
2224
|
-
* Update system settings
|
|
2225
|
-
*/
|
|
2226
|
-
export const systemUpdateSystemSettings = (options) => {
|
|
2227
|
-
return (options?.client ?? _heyApiClient).post({
|
|
2228
|
-
url: "/api/v1/system/system-settings",
|
|
2229
|
-
...options,
|
|
2230
|
-
headers: {
|
|
2231
|
-
"Content-Type": "application/json",
|
|
2232
|
-
...options?.headers,
|
|
2233
|
-
},
|
|
2234
|
-
});
|
|
2235
|
-
};
|
|
2236
|
-
/**
|
|
2237
|
-
* Export system settings as YAML
|
|
2238
|
-
*/
|
|
2239
|
-
export const systemExportSystemSettings = (options) => {
|
|
2240
|
-
return (options?.client ?? _heyApiClient).get({
|
|
2241
|
-
url: "/api/v1/system/system-settings/export",
|
|
2242
|
-
...options,
|
|
2243
|
-
});
|
|
2244
|
-
};
|
|
2245
|
-
/**
|
|
2246
|
-
* Import system settings from YAML
|
|
2247
|
-
*/
|
|
2248
|
-
export const systemImportSystemSettings = (options) => {
|
|
2249
|
-
return (options?.client ?? _heyApiClient).post({
|
|
2250
|
-
...formDataBodySerializer,
|
|
2251
|
-
url: "/api/v1/system/system-settings/import",
|
|
2252
|
-
...options,
|
|
2253
|
-
headers: {
|
|
2254
|
-
"Content-Type": null,
|
|
2255
|
-
...options?.headers,
|
|
2256
|
-
},
|
|
2257
|
-
});
|
|
2258
|
-
};
|
|
2259
974
|
//# sourceMappingURL=sdk.gen.js.map
|