mtmsdk 0.0.7 → 0.0.9
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 +2883 -0
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/gomtmapi/@tanstack/react-query.gen.js +2990 -0
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -0
- package/dist/gomtmapi/client/client.d.ts +3 -0
- package/dist/gomtmapi/client/client.d.ts.map +1 -0
- package/dist/gomtmapi/client/client.js +146 -0
- package/dist/gomtmapi/client/client.js.map +1 -0
- package/dist/gomtmapi/client/index.d.ts +8 -0
- package/dist/gomtmapi/client/index.d.ts.map +1 -0
- package/dist/gomtmapi/client/index.js +5 -0
- package/dist/gomtmapi/client/index.js.map +1 -0
- package/dist/gomtmapi/client/types.d.ts +120 -0
- package/dist/gomtmapi/client/types.d.ts.map +1 -0
- package/dist/gomtmapi/client/types.js +2 -0
- package/dist/gomtmapi/client/types.js.map +1 -0
- package/dist/gomtmapi/client/utils.d.ts +46 -0
- package/dist/gomtmapi/client/utils.d.ts.map +1 -0
- package/dist/gomtmapi/client/utils.js +285 -0
- package/dist/gomtmapi/client/utils.js.map +1 -0
- package/dist/gomtmapi/client.gen.d.ts +13 -0
- package/dist/gomtmapi/client.gen.d.ts.map +1 -0
- package/dist/gomtmapi/client.gen.js +4 -0
- package/dist/gomtmapi/client.gen.js.map +1 -0
- package/dist/gomtmapi/core/auth.d.ts +19 -0
- package/dist/gomtmapi/core/auth.d.ts.map +1 -0
- package/dist/gomtmapi/core/auth.js +14 -0
- package/dist/gomtmapi/core/auth.js.map +1 -0
- package/dist/gomtmapi/core/bodySerializer.d.ts +18 -0
- package/dist/gomtmapi/core/bodySerializer.d.ts.map +1 -0
- package/dist/gomtmapi/core/bodySerializer.js +54 -0
- package/dist/gomtmapi/core/bodySerializer.js.map +1 -0
- package/dist/gomtmapi/core/params.d.ts +24 -0
- package/dist/gomtmapi/core/params.d.ts.map +1 -0
- package/dist/gomtmapi/core/params.js +88 -0
- package/dist/gomtmapi/core/params.js.map +1 -0
- package/dist/gomtmapi/core/pathSerializer.d.ts +34 -0
- package/dist/gomtmapi/core/pathSerializer.d.ts.map +1 -0
- package/dist/gomtmapi/core/pathSerializer.js +114 -0
- package/dist/gomtmapi/core/pathSerializer.js.map +1 -0
- package/dist/gomtmapi/core/types.d.ts +74 -0
- package/dist/gomtmapi/core/types.d.ts.map +1 -0
- package/dist/gomtmapi/core/types.js +2 -0
- package/dist/gomtmapi/core/types.js.map +1 -0
- package/dist/gomtmapi/index.d.ts +3 -0
- package/dist/gomtmapi/index.d.ts.map +1 -0
- package/dist/gomtmapi/index.js +4 -0
- package/dist/gomtmapi/index.js.map +1 -0
- package/dist/gomtmapi/schemas.gen.d.ts +4385 -0
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -0
- package/dist/gomtmapi/schemas.gen.js +4521 -0
- package/dist/gomtmapi/schemas.gen.js.map +1 -0
- package/dist/gomtmapi/sdk.gen.d.ts +574 -0
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -0
- package/dist/gomtmapi/sdk.gen.js +2259 -0
- package/dist/gomtmapi/sdk.gen.js.map +1 -0
- package/dist/gomtmapi/types.gen.d.ts +6480 -0
- package/dist/gomtmapi/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi/types.gen.js +70 -0
- package/dist/gomtmapi/types.gen.js.map +1 -0
- package/dist/gomtmapi/zod.gen.d.ts +5324 -0
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -0
- package/dist/gomtmapi/zod.gen.js +2534 -0
- package/dist/gomtmapi/zod.gen.js.map +1 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +2260 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +2413 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -0
- package/dist/gomtmapi_v2/client/client.d.ts +3 -0
- package/dist/gomtmapi_v2/client/client.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/client.js +146 -0
- package/dist/gomtmapi_v2/client/client.js.map +1 -0
- package/dist/gomtmapi_v2/client/index.d.ts +8 -0
- package/dist/gomtmapi_v2/client/index.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/index.js +5 -0
- package/dist/gomtmapi_v2/client/index.js.map +1 -0
- package/dist/gomtmapi_v2/client/types.d.ts +120 -0
- package/dist/gomtmapi_v2/client/types.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/types.js +2 -0
- package/dist/gomtmapi_v2/client/types.js.map +1 -0
- package/dist/gomtmapi_v2/client/utils.d.ts +46 -0
- package/dist/gomtmapi_v2/client/utils.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/utils.js +285 -0
- package/dist/gomtmapi_v2/client/utils.js.map +1 -0
- package/dist/gomtmapi_v2/client.gen.d.ts +13 -0
- package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client.gen.js +4 -0
- package/dist/gomtmapi_v2/client.gen.js.map +1 -0
- package/dist/gomtmapi_v2/core/auth.d.ts +19 -0
- package/dist/gomtmapi_v2/core/auth.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/auth.js +14 -0
- package/dist/gomtmapi_v2/core/auth.js.map +1 -0
- package/dist/gomtmapi_v2/core/bodySerializer.d.ts +18 -0
- package/dist/gomtmapi_v2/core/bodySerializer.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/bodySerializer.js +54 -0
- package/dist/gomtmapi_v2/core/bodySerializer.js.map +1 -0
- package/dist/gomtmapi_v2/core/params.d.ts +24 -0
- package/dist/gomtmapi_v2/core/params.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/params.js +88 -0
- package/dist/gomtmapi_v2/core/params.js.map +1 -0
- package/dist/gomtmapi_v2/core/pathSerializer.d.ts +34 -0
- package/dist/gomtmapi_v2/core/pathSerializer.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/pathSerializer.js +114 -0
- package/dist/gomtmapi_v2/core/pathSerializer.js.map +1 -0
- package/dist/gomtmapi_v2/core/types.d.ts +74 -0
- package/dist/gomtmapi_v2/core/types.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/types.js +2 -0
- package/dist/gomtmapi_v2/core/types.js.map +1 -0
- package/dist/gomtmapi_v2/index.d.ts +3 -0
- package/dist/gomtmapi_v2/index.d.ts.map +1 -0
- package/dist/gomtmapi_v2/index.js +4 -0
- package/dist/gomtmapi_v2/index.js.map +1 -0
- package/dist/gomtmapi_v2/schemas.gen.d.ts +2371 -0
- package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/schemas.gen.js +2372 -0
- package/dist/gomtmapi_v2/schemas.gen.js.map +1 -0
- package/dist/gomtmapi_v2/sdk.gen.d.ts +974 -0
- package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/sdk.gen.js +1345 -0
- package/dist/gomtmapi_v2/sdk.gen.js.map +1 -0
- package/dist/gomtmapi_v2/types.gen.d.ts +2964 -0
- package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/types.gen.js +3 -0
- package/dist/gomtmapi_v2/types.gen.js.map +1 -0
- package/dist/gomtmapi_v2/zod.gen.d.ts +2327 -0
- package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/zod.gen.js +1768 -0
- package/dist/gomtmapi_v2/zod.gen.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/adk-utils.d.ts +24 -0
- package/dist/lib/adk-utils.d.ts.map +1 -0
- package/dist/lib/adk-utils.js +51 -0
- package/dist/lib/adk-utils.js.map +1 -0
- package/dist/lib/constants.d.ts +40 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +40 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/d1-utils.d.ts +5 -0
- package/dist/lib/d1-utils.d.ts.map +1 -0
- package/dist/lib/d1-utils.js +36 -0
- package/dist/lib/d1-utils.js.map +1 -0
- package/dist/lib/get-query-client.d.ts +3 -0
- package/dist/lib/get-query-client.d.ts.map +1 -0
- package/dist/lib/get-query-client.js +43 -0
- package/dist/lib/get-query-client.js.map +1 -0
- package/dist/lib/mtmutils.d.ts +2 -0
- package/dist/lib/mtmutils.d.ts.map +1 -0
- package/dist/lib/mtmutils.js +9 -0
- package/dist/lib/mtmutils.js.map +1 -0
- package/dist/mtgate_api/zod.gen.d.ts +48 -48
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +1286 -0
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/mtmai_api/@tanstack/react-query.gen.js +1321 -0
- package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -0
- package/dist/mtmai_api/client/client.d.ts +3 -0
- package/dist/mtmai_api/client/client.d.ts.map +1 -0
- package/dist/mtmai_api/client/client.js +146 -0
- package/dist/mtmai_api/client/client.js.map +1 -0
- package/dist/mtmai_api/client/index.d.ts +8 -0
- package/dist/mtmai_api/client/index.d.ts.map +1 -0
- package/dist/mtmai_api/client/index.js +5 -0
- package/dist/mtmai_api/client/index.js.map +1 -0
- package/dist/mtmai_api/client/types.d.ts +120 -0
- package/dist/mtmai_api/client/types.d.ts.map +1 -0
- package/dist/mtmai_api/client/types.js +2 -0
- package/dist/mtmai_api/client/types.js.map +1 -0
- package/dist/mtmai_api/client/utils.d.ts +46 -0
- package/dist/mtmai_api/client/utils.d.ts.map +1 -0
- package/dist/mtmai_api/client/utils.js +285 -0
- package/dist/mtmai_api/client/utils.js.map +1 -0
- package/dist/mtmai_api/client.gen.d.ts +13 -0
- package/dist/mtmai_api/client.gen.d.ts.map +1 -0
- package/dist/mtmai_api/client.gen.js +4 -0
- package/dist/mtmai_api/client.gen.js.map +1 -0
- package/dist/mtmai_api/core/auth.d.ts +19 -0
- package/dist/mtmai_api/core/auth.d.ts.map +1 -0
- package/dist/mtmai_api/core/auth.js +14 -0
- package/dist/mtmai_api/core/auth.js.map +1 -0
- package/dist/mtmai_api/core/bodySerializer.d.ts +18 -0
- package/dist/mtmai_api/core/bodySerializer.d.ts.map +1 -0
- package/dist/mtmai_api/core/bodySerializer.js +54 -0
- package/dist/mtmai_api/core/bodySerializer.js.map +1 -0
- package/dist/mtmai_api/core/params.d.ts +24 -0
- package/dist/mtmai_api/core/params.d.ts.map +1 -0
- package/dist/mtmai_api/core/params.js +88 -0
- package/dist/mtmai_api/core/params.js.map +1 -0
- package/dist/mtmai_api/core/pathSerializer.d.ts +34 -0
- package/dist/mtmai_api/core/pathSerializer.d.ts.map +1 -0
- package/dist/mtmai_api/core/pathSerializer.js +114 -0
- package/dist/mtmai_api/core/pathSerializer.js.map +1 -0
- package/dist/mtmai_api/core/types.d.ts +74 -0
- package/dist/mtmai_api/core/types.d.ts.map +1 -0
- package/dist/mtmai_api/core/types.js +2 -0
- package/dist/mtmai_api/core/types.js.map +1 -0
- package/dist/mtmai_api/index.d.ts +3 -0
- package/dist/mtmai_api/index.d.ts.map +1 -0
- package/dist/mtmai_api/index.js +4 -0
- package/dist/mtmai_api/index.js.map +1 -0
- package/dist/mtmai_api/schemas.gen.d.ts +7364 -0
- package/dist/mtmai_api/schemas.gen.d.ts.map +1 -0
- package/dist/mtmai_api/schemas.gen.js +9574 -0
- package/dist/mtmai_api/schemas.gen.js.map +1 -0
- package/dist/mtmai_api/sdk.gen.d.ts +264 -0
- package/dist/mtmai_api/sdk.gen.d.ts.map +1 -0
- package/dist/mtmai_api/sdk.gen.js +598 -0
- package/dist/mtmai_api/sdk.gen.js.map +1 -0
- package/dist/mtmai_api/types.gen.d.ts +6376 -0
- package/dist/mtmai_api/types.gen.d.ts.map +1 -0
- package/dist/mtmai_api/types.gen.js +240 -0
- package/dist/mtmai_api/types.gen.js.map +1 -0
- package/dist/mtmai_api/zod.gen.d.ts +35067 -0
- package/dist/mtmai_api/zod.gen.d.ts.map +1 -0
- package/dist/mtmai_api/zod.gen.js +2930 -0
- package/dist/mtmai_api/zod.gen.js.map +1 -0
- package/dist/store/MtmsdkProvider.d.ts +15 -0
- package/dist/store/MtmsdkProvider.d.ts.map +1 -0
- package/dist/store/MtmsdkProvider.js +50 -0
- package/dist/store/MtmsdkProvider.js.map +1 -0
- package/dist/store/ReactQueryApiV2Provider.d.ts +10 -0
- package/dist/store/ReactQueryApiV2Provider.d.ts.map +1 -0
- package/dist/store/ReactQueryApiV2Provider.js +24 -0
- package/dist/store/ReactQueryApiV2Provider.js.map +1 -0
- package/dist/store/ReactQueryCfApiProvider.d.ts +9 -0
- package/dist/store/ReactQueryCfApiProvider.d.ts.map +1 -0
- package/dist/store/ReactQueryCfApiProvider.js +26 -0
- package/dist/store/ReactQueryCfApiProvider.js.map +1 -0
- package/dist/store/ReactQueryMtmaiApiProvider.d.ts +10 -0
- package/dist/store/ReactQueryMtmaiApiProvider.d.ts.map +1 -0
- package/dist/store/ReactQueryMtmaiApiProvider.js +23 -0
- package/dist/store/ReactQueryMtmaiApiProvider.js.map +1 -0
- package/dist/store/ReactQueryProvider.d.ts +10 -0
- package/dist/store/ReactQueryProvider.d.ts.map +1 -0
- package/dist/store/ReactQueryProvider.js +24 -0
- package/dist/store/ReactQueryProvider.js.map +1 -0
- package/package.json +69 -15
|
@@ -0,0 +1,2259 @@
|
|
|
1
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
+
import { formDataBodySerializer, } from "./client";
|
|
3
|
+
import { client as _heyApiClient } from "./client.gen";
|
|
4
|
+
/**
|
|
5
|
+
* Get readiness
|
|
6
|
+
* Gets the readiness status
|
|
7
|
+
*/
|
|
8
|
+
export const readinessGet = (options) => {
|
|
9
|
+
return (options?.client ?? _heyApiClient).get({
|
|
10
|
+
url: "/api/ready",
|
|
11
|
+
...options,
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Get liveness
|
|
16
|
+
* Gets the liveness status
|
|
17
|
+
*/
|
|
18
|
+
export const livenessGet = (options) => {
|
|
19
|
+
return (options?.client ?? _heyApiClient).get({
|
|
20
|
+
url: "/api/live",
|
|
21
|
+
...options,
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Get health status
|
|
26
|
+
* Gets the health status of the API service
|
|
27
|
+
*/
|
|
28
|
+
export const healthGet = (options) => {
|
|
29
|
+
return (options?.client ?? _heyApiClient).get({
|
|
30
|
+
url: "/api/v1/health",
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Get metadata
|
|
36
|
+
* Gets metadata for the Hatchet instance
|
|
37
|
+
*/
|
|
38
|
+
export const metadataGet = (options) => {
|
|
39
|
+
return (options?.client ?? _heyApiClient).get({
|
|
40
|
+
url: "/api/v1/meta",
|
|
41
|
+
...options,
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* List integrations
|
|
46
|
+
* List all integrations
|
|
47
|
+
*/
|
|
48
|
+
export const metadataListIntegrations = (options) => {
|
|
49
|
+
return (options?.client ?? _heyApiClient).get({
|
|
50
|
+
security: [
|
|
51
|
+
{
|
|
52
|
+
scheme: "bearer",
|
|
53
|
+
type: "http",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
in: "cookie",
|
|
57
|
+
name: "access_token",
|
|
58
|
+
type: "apiKey",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
url: "/api/v1/meta/integrations",
|
|
62
|
+
...options,
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Login user
|
|
67
|
+
* Logs in a user.
|
|
68
|
+
*/
|
|
69
|
+
export const userUpdateLogin = (options) => {
|
|
70
|
+
return (options?.client ?? _heyApiClient).post({
|
|
71
|
+
url: "/api/v1/users/login",
|
|
72
|
+
...options,
|
|
73
|
+
headers: {
|
|
74
|
+
"Content-Type": "application/json",
|
|
75
|
+
...options?.headers,
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Start OAuth flow
|
|
81
|
+
* Starts the OAuth flow
|
|
82
|
+
*/
|
|
83
|
+
export const userUpdateGoogleOauthStart = (options) => {
|
|
84
|
+
return (options?.client ?? _heyApiClient).get({
|
|
85
|
+
url: "/api/v1/users/google/start",
|
|
86
|
+
...options,
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Complete OAuth flow
|
|
91
|
+
* Completes the OAuth flow
|
|
92
|
+
*/
|
|
93
|
+
export const userUpdateGoogleOauthCallback = (options) => {
|
|
94
|
+
return (options?.client ?? _heyApiClient).get({
|
|
95
|
+
url: "/api/v1/users/google/callback",
|
|
96
|
+
...options,
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Start OAuth flow
|
|
101
|
+
* Starts the OAuth flow
|
|
102
|
+
*/
|
|
103
|
+
export const userUpdateGithubOauthStart = (options) => {
|
|
104
|
+
return (options?.client ?? _heyApiClient).get({
|
|
105
|
+
url: "/api/v1/users/github/start",
|
|
106
|
+
...options,
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Complete OAuth flow
|
|
111
|
+
* Completes the OAuth flow
|
|
112
|
+
*/
|
|
113
|
+
export const userUpdateGithubOauthCallback = (options) => {
|
|
114
|
+
return (options?.client ?? _heyApiClient).get({
|
|
115
|
+
url: "/api/v1/users/github/callback",
|
|
116
|
+
...options,
|
|
117
|
+
});
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* List tenant alert email groups
|
|
121
|
+
* Gets a list of tenant alert email groups
|
|
122
|
+
*/
|
|
123
|
+
export const alertEmailGroupList = (options) => {
|
|
124
|
+
return (options.client ?? _heyApiClient).get({
|
|
125
|
+
security: [
|
|
126
|
+
{
|
|
127
|
+
scheme: "bearer",
|
|
128
|
+
type: "http",
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
in: "cookie",
|
|
132
|
+
name: "access_token",
|
|
133
|
+
type: "apiKey",
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
url: "/api/v1/tenants/{tenant}/alerting-email-groups",
|
|
137
|
+
...options,
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Create tenant alert email group
|
|
142
|
+
* Creates a new tenant alert email group
|
|
143
|
+
*/
|
|
144
|
+
export const alertEmailGroupCreate = (options) => {
|
|
145
|
+
return (options.client ?? _heyApiClient).post({
|
|
146
|
+
security: [
|
|
147
|
+
{
|
|
148
|
+
scheme: "bearer",
|
|
149
|
+
type: "http",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
in: "cookie",
|
|
153
|
+
name: "access_token",
|
|
154
|
+
type: "apiKey",
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
url: "/api/v1/tenants/{tenant}/alerting-email-groups",
|
|
158
|
+
...options,
|
|
159
|
+
headers: {
|
|
160
|
+
"Content-Type": "application/json",
|
|
161
|
+
...options.headers,
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Create tenant alert email group
|
|
167
|
+
* Gets the resource policy for a tenant
|
|
168
|
+
*/
|
|
169
|
+
export const tenantResourcePolicyGet = (options) => {
|
|
170
|
+
return (options.client ?? _heyApiClient).get({
|
|
171
|
+
security: [
|
|
172
|
+
{
|
|
173
|
+
scheme: "bearer",
|
|
174
|
+
type: "http",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
in: "cookie",
|
|
178
|
+
name: "access_token",
|
|
179
|
+
type: "apiKey",
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
url: "/api/v1/tenants/{tenant}/resource-policy",
|
|
183
|
+
...options,
|
|
184
|
+
});
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Delete tenant alert email group
|
|
188
|
+
* Deletes a tenant alert email group
|
|
189
|
+
*/
|
|
190
|
+
export const alertEmailGroupDelete = (options) => {
|
|
191
|
+
return (options.client ?? _heyApiClient).delete({
|
|
192
|
+
security: [
|
|
193
|
+
{
|
|
194
|
+
scheme: "bearer",
|
|
195
|
+
type: "http",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
in: "cookie",
|
|
199
|
+
name: "access_token",
|
|
200
|
+
type: "apiKey",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
url: "/api/v1/alerting-email-groups/{alert-email-group}",
|
|
204
|
+
...options,
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Update tenant alert email group
|
|
209
|
+
* Updates a tenant alert email group
|
|
210
|
+
*/
|
|
211
|
+
export const alertEmailGroupUpdate = (options) => {
|
|
212
|
+
return (options.client ?? _heyApiClient).patch({
|
|
213
|
+
security: [
|
|
214
|
+
{
|
|
215
|
+
scheme: "bearer",
|
|
216
|
+
type: "http",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
in: "cookie",
|
|
220
|
+
name: "access_token",
|
|
221
|
+
type: "apiKey",
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
url: "/api/v1/alerting-email-groups/{alert-email-group}",
|
|
225
|
+
...options,
|
|
226
|
+
headers: {
|
|
227
|
+
"Content-Type": "application/json",
|
|
228
|
+
...options.headers,
|
|
229
|
+
},
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* Change user password
|
|
234
|
+
* Update a user password.
|
|
235
|
+
*/
|
|
236
|
+
export const userUpdatePassword = (options) => {
|
|
237
|
+
return (options?.client ?? _heyApiClient).post({
|
|
238
|
+
security: [
|
|
239
|
+
{
|
|
240
|
+
in: "cookie",
|
|
241
|
+
name: "access_token",
|
|
242
|
+
type: "apiKey",
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
url: "/api/v1/users/password",
|
|
246
|
+
...options,
|
|
247
|
+
headers: {
|
|
248
|
+
"Content-Type": "application/json",
|
|
249
|
+
...options?.headers,
|
|
250
|
+
},
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Register user
|
|
255
|
+
* Registers a user.
|
|
256
|
+
*/
|
|
257
|
+
export const userCreate = (options) => {
|
|
258
|
+
return (options?.client ?? _heyApiClient).post({
|
|
259
|
+
url: "/api/v1/users/register",
|
|
260
|
+
...options,
|
|
261
|
+
headers: {
|
|
262
|
+
"Content-Type": "application/json",
|
|
263
|
+
...options?.headers,
|
|
264
|
+
},
|
|
265
|
+
});
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Logout user
|
|
269
|
+
* Logs out a user.
|
|
270
|
+
*/
|
|
271
|
+
export const userUpdateLogout = (options) => {
|
|
272
|
+
return (options?.client ?? _heyApiClient).post({
|
|
273
|
+
security: [
|
|
274
|
+
{
|
|
275
|
+
in: "cookie",
|
|
276
|
+
name: "access_token",
|
|
277
|
+
type: "apiKey",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
url: "/api/v1/users/logout",
|
|
281
|
+
...options,
|
|
282
|
+
});
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* List tenant memberships
|
|
286
|
+
* Lists all tenant memberships for the current user
|
|
287
|
+
*/
|
|
288
|
+
export const tenantMembershipsList = (options) => {
|
|
289
|
+
return (options?.client ?? _heyApiClient).get({
|
|
290
|
+
security: [
|
|
291
|
+
{
|
|
292
|
+
in: "cookie",
|
|
293
|
+
name: "access_token",
|
|
294
|
+
type: "apiKey",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
url: "/api/v1/users/memberships",
|
|
298
|
+
...options,
|
|
299
|
+
});
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* List tenant invites
|
|
303
|
+
* Lists all tenant invites for the current user
|
|
304
|
+
*/
|
|
305
|
+
export const userListTenantInvites = (options) => {
|
|
306
|
+
return (options?.client ?? _heyApiClient).get({
|
|
307
|
+
security: [
|
|
308
|
+
{
|
|
309
|
+
in: "cookie",
|
|
310
|
+
name: "access_token",
|
|
311
|
+
type: "apiKey",
|
|
312
|
+
},
|
|
313
|
+
],
|
|
314
|
+
url: "/api/v1/users/invites",
|
|
315
|
+
...options,
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* Accept tenant invite
|
|
320
|
+
* Accepts a tenant invite
|
|
321
|
+
*/
|
|
322
|
+
export const tenantInviteAccept = (options) => {
|
|
323
|
+
return (options?.client ?? _heyApiClient).post({
|
|
324
|
+
security: [
|
|
325
|
+
{
|
|
326
|
+
scheme: "bearer",
|
|
327
|
+
type: "http",
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
in: "cookie",
|
|
331
|
+
name: "access_token",
|
|
332
|
+
type: "apiKey",
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
url: "/api/v1/users/invites/accept",
|
|
336
|
+
...options,
|
|
337
|
+
headers: {
|
|
338
|
+
"Content-Type": "application/json",
|
|
339
|
+
...options?.headers,
|
|
340
|
+
},
|
|
341
|
+
});
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Reject tenant invite
|
|
345
|
+
* Rejects a tenant invite
|
|
346
|
+
*/
|
|
347
|
+
export const tenantInviteReject = (options) => {
|
|
348
|
+
return (options?.client ?? _heyApiClient).post({
|
|
349
|
+
security: [
|
|
350
|
+
{
|
|
351
|
+
scheme: "bearer",
|
|
352
|
+
type: "http",
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
in: "cookie",
|
|
356
|
+
name: "access_token",
|
|
357
|
+
type: "apiKey",
|
|
358
|
+
},
|
|
359
|
+
],
|
|
360
|
+
url: "/api/v1/users/invites/reject",
|
|
361
|
+
...options,
|
|
362
|
+
headers: {
|
|
363
|
+
"Content-Type": "application/json",
|
|
364
|
+
...options?.headers,
|
|
365
|
+
},
|
|
366
|
+
});
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Get user's GitHub repositories
|
|
370
|
+
* Gets the current user's GitHub repositories
|
|
371
|
+
*/
|
|
372
|
+
export const userGetGithubRepos = (options) => {
|
|
373
|
+
return (options?.client ?? _heyApiClient).get({
|
|
374
|
+
security: [
|
|
375
|
+
{
|
|
376
|
+
in: "cookie",
|
|
377
|
+
name: "access_token",
|
|
378
|
+
type: "apiKey",
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
url: "/api/v1/users/github/repos",
|
|
382
|
+
...options,
|
|
383
|
+
});
|
|
384
|
+
};
|
|
385
|
+
/**
|
|
386
|
+
* List all users (admin only)
|
|
387
|
+
* Lists all users in the system (admin only)
|
|
388
|
+
*/
|
|
389
|
+
export const adminUsersList = (options) => {
|
|
390
|
+
return (options?.client ?? _heyApiClient).get({
|
|
391
|
+
security: [
|
|
392
|
+
{
|
|
393
|
+
in: "cookie",
|
|
394
|
+
name: "access_token",
|
|
395
|
+
type: "apiKey",
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
url: "/api/v1/admin/users",
|
|
399
|
+
...options,
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Create new user (admin only)
|
|
404
|
+
* Creates a new user (admin only)
|
|
405
|
+
*/
|
|
406
|
+
export const adminUserCreate = (options) => {
|
|
407
|
+
return (options?.client ?? _heyApiClient).post({
|
|
408
|
+
security: [
|
|
409
|
+
{
|
|
410
|
+
in: "cookie",
|
|
411
|
+
name: "access_token",
|
|
412
|
+
type: "apiKey",
|
|
413
|
+
},
|
|
414
|
+
],
|
|
415
|
+
url: "/api/v1/admin/users/create",
|
|
416
|
+
...options,
|
|
417
|
+
headers: {
|
|
418
|
+
"Content-Type": "application/json",
|
|
419
|
+
...options?.headers,
|
|
420
|
+
},
|
|
421
|
+
});
|
|
422
|
+
};
|
|
423
|
+
/**
|
|
424
|
+
* Get user by ID (admin only)
|
|
425
|
+
* Gets a specific user by ID (admin only)
|
|
426
|
+
*/
|
|
427
|
+
export const adminUserGet = (options) => {
|
|
428
|
+
return (options.client ?? _heyApiClient).get({
|
|
429
|
+
security: [
|
|
430
|
+
{
|
|
431
|
+
in: "cookie",
|
|
432
|
+
name: "access_token",
|
|
433
|
+
type: "apiKey",
|
|
434
|
+
},
|
|
435
|
+
],
|
|
436
|
+
url: "/api/v1/admin/users/{userId}",
|
|
437
|
+
...options,
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* Update user (admin only)
|
|
442
|
+
* Updates a user (admin only)
|
|
443
|
+
*/
|
|
444
|
+
export const adminUserUpdate = (options) => {
|
|
445
|
+
return (options.client ?? _heyApiClient).put({
|
|
446
|
+
security: [
|
|
447
|
+
{
|
|
448
|
+
in: "cookie",
|
|
449
|
+
name: "access_token",
|
|
450
|
+
type: "apiKey",
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
url: "/api/v1/admin/users/{userId}/update",
|
|
454
|
+
...options,
|
|
455
|
+
headers: {
|
|
456
|
+
"Content-Type": "application/json",
|
|
457
|
+
...options.headers,
|
|
458
|
+
},
|
|
459
|
+
});
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Delete user (admin only)
|
|
463
|
+
* Deletes a user (admin only)
|
|
464
|
+
*/
|
|
465
|
+
export const adminUserDelete = (options) => {
|
|
466
|
+
return (options.client ?? _heyApiClient).delete({
|
|
467
|
+
security: [
|
|
468
|
+
{
|
|
469
|
+
in: "cookie",
|
|
470
|
+
name: "access_token",
|
|
471
|
+
type: "apiKey",
|
|
472
|
+
},
|
|
473
|
+
],
|
|
474
|
+
url: "/api/v1/admin/users/{userId}/delete",
|
|
475
|
+
...options,
|
|
476
|
+
});
|
|
477
|
+
};
|
|
478
|
+
/**
|
|
479
|
+
* List all roles (admin only)
|
|
480
|
+
* Lists all system roles (admin only)
|
|
481
|
+
*/
|
|
482
|
+
export const adminRolesList = (options) => {
|
|
483
|
+
return (options?.client ?? _heyApiClient).get({
|
|
484
|
+
security: [
|
|
485
|
+
{
|
|
486
|
+
in: "cookie",
|
|
487
|
+
name: "access_token",
|
|
488
|
+
type: "apiKey",
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
url: "/api/v1/admin/roles",
|
|
492
|
+
...options,
|
|
493
|
+
});
|
|
494
|
+
};
|
|
495
|
+
/**
|
|
496
|
+
* List roles of a user (admin only)
|
|
497
|
+
* Lists all roles of a specific user (admin only)
|
|
498
|
+
*/
|
|
499
|
+
export const adminUserRoles = (options) => {
|
|
500
|
+
return (options.client ?? _heyApiClient).get({
|
|
501
|
+
security: [
|
|
502
|
+
{
|
|
503
|
+
in: "cookie",
|
|
504
|
+
name: "access_token",
|
|
505
|
+
type: "apiKey",
|
|
506
|
+
},
|
|
507
|
+
],
|
|
508
|
+
url: "/api/v1/admin/users/{userId}/roles",
|
|
509
|
+
...options,
|
|
510
|
+
});
|
|
511
|
+
};
|
|
512
|
+
/**
|
|
513
|
+
* Assign role to user (admin only)
|
|
514
|
+
* Assigns a role to a user (admin only)
|
|
515
|
+
*/
|
|
516
|
+
export const adminUserAssignRole = (options) => {
|
|
517
|
+
return (options.client ?? _heyApiClient).post({
|
|
518
|
+
security: [
|
|
519
|
+
{
|
|
520
|
+
in: "cookie",
|
|
521
|
+
name: "access_token",
|
|
522
|
+
type: "apiKey",
|
|
523
|
+
},
|
|
524
|
+
],
|
|
525
|
+
url: "/api/v1/admin/users/{userId}/roles/assign",
|
|
526
|
+
...options,
|
|
527
|
+
headers: {
|
|
528
|
+
"Content-Type": "application/json",
|
|
529
|
+
...options.headers,
|
|
530
|
+
},
|
|
531
|
+
});
|
|
532
|
+
};
|
|
533
|
+
/**
|
|
534
|
+
* Remove role from user (admin only)
|
|
535
|
+
* Removes a role from a user (admin only)
|
|
536
|
+
*/
|
|
537
|
+
export const adminUserRemoveRole = (options) => {
|
|
538
|
+
return (options.client ?? _heyApiClient).delete({
|
|
539
|
+
security: [
|
|
540
|
+
{
|
|
541
|
+
in: "cookie",
|
|
542
|
+
name: "access_token",
|
|
543
|
+
type: "apiKey",
|
|
544
|
+
},
|
|
545
|
+
],
|
|
546
|
+
url: "/api/v1/admin/users/{userId}/roles/remove",
|
|
547
|
+
...options,
|
|
548
|
+
});
|
|
549
|
+
};
|
|
550
|
+
/**
|
|
551
|
+
* Get user settings for the current user and tenant
|
|
552
|
+
*/
|
|
553
|
+
export const userSettingsGet = (options) => {
|
|
554
|
+
return (options.client ?? _heyApiClient).get({
|
|
555
|
+
security: [
|
|
556
|
+
{
|
|
557
|
+
scheme: "bearer",
|
|
558
|
+
type: "http",
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
in: "cookie",
|
|
562
|
+
name: "access_token",
|
|
563
|
+
type: "apiKey",
|
|
564
|
+
},
|
|
565
|
+
],
|
|
566
|
+
url: "/api/v1/tenants/{tenant}/user-settings",
|
|
567
|
+
...options,
|
|
568
|
+
});
|
|
569
|
+
};
|
|
570
|
+
/**
|
|
571
|
+
* Create user settings for the current user and tenant
|
|
572
|
+
*/
|
|
573
|
+
export const userSettingsCreate = (options) => {
|
|
574
|
+
return (options.client ?? _heyApiClient).post({
|
|
575
|
+
security: [
|
|
576
|
+
{
|
|
577
|
+
scheme: "bearer",
|
|
578
|
+
type: "http",
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
in: "cookie",
|
|
582
|
+
name: "access_token",
|
|
583
|
+
type: "apiKey",
|
|
584
|
+
},
|
|
585
|
+
],
|
|
586
|
+
url: "/api/v1/tenants/{tenant}/user-settings",
|
|
587
|
+
...options,
|
|
588
|
+
headers: {
|
|
589
|
+
"Content-Type": "application/json",
|
|
590
|
+
...options.headers,
|
|
591
|
+
},
|
|
592
|
+
});
|
|
593
|
+
};
|
|
594
|
+
/**
|
|
595
|
+
* Update user settings for the current user and tenant
|
|
596
|
+
*/
|
|
597
|
+
export const userSettingsUpdate = (options) => {
|
|
598
|
+
return (options.client ?? _heyApiClient).put({
|
|
599
|
+
security: [
|
|
600
|
+
{
|
|
601
|
+
scheme: "bearer",
|
|
602
|
+
type: "http",
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
in: "cookie",
|
|
606
|
+
name: "access_token",
|
|
607
|
+
type: "apiKey",
|
|
608
|
+
},
|
|
609
|
+
],
|
|
610
|
+
url: "/api/v1/tenants/{tenant}/user-settings",
|
|
611
|
+
...options,
|
|
612
|
+
headers: {
|
|
613
|
+
"Content-Type": "application/json",
|
|
614
|
+
...options.headers,
|
|
615
|
+
},
|
|
616
|
+
});
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* Export user settings as YAML for the current user and tenant
|
|
620
|
+
*/
|
|
621
|
+
export const userSettingsExport = (options) => {
|
|
622
|
+
return (options.client ?? _heyApiClient).get({
|
|
623
|
+
security: [
|
|
624
|
+
{
|
|
625
|
+
scheme: "bearer",
|
|
626
|
+
type: "http",
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
in: "cookie",
|
|
630
|
+
name: "access_token",
|
|
631
|
+
type: "apiKey",
|
|
632
|
+
},
|
|
633
|
+
],
|
|
634
|
+
url: "/api/v1/tenants/{tenant}/user-settings/export",
|
|
635
|
+
...options,
|
|
636
|
+
});
|
|
637
|
+
};
|
|
638
|
+
/**
|
|
639
|
+
* Import user settings from YAML for the current user and tenant
|
|
640
|
+
*/
|
|
641
|
+
export const userSettingsImport = (options) => {
|
|
642
|
+
return (options.client ?? _heyApiClient).post({
|
|
643
|
+
security: [
|
|
644
|
+
{
|
|
645
|
+
scheme: "bearer",
|
|
646
|
+
type: "http",
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
in: "cookie",
|
|
650
|
+
name: "access_token",
|
|
651
|
+
type: "apiKey",
|
|
652
|
+
},
|
|
653
|
+
],
|
|
654
|
+
url: "/api/v1/tenants/{tenant}/user-settings/import",
|
|
655
|
+
...options,
|
|
656
|
+
headers: {
|
|
657
|
+
"Content-Type": "application/x-yaml",
|
|
658
|
+
...options.headers,
|
|
659
|
+
},
|
|
660
|
+
});
|
|
661
|
+
};
|
|
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
|
+
/**
|
|
831
|
+
* Create tenant
|
|
832
|
+
* Creates a new tenant
|
|
833
|
+
*/
|
|
834
|
+
export const tenantCreate = (options) => {
|
|
835
|
+
return (options.client ?? _heyApiClient).post({
|
|
836
|
+
security: [
|
|
837
|
+
{
|
|
838
|
+
scheme: "bearer",
|
|
839
|
+
type: "http",
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
in: "cookie",
|
|
843
|
+
name: "access_token",
|
|
844
|
+
type: "apiKey",
|
|
845
|
+
},
|
|
846
|
+
],
|
|
847
|
+
url: "/api/v1/tenants",
|
|
848
|
+
...options,
|
|
849
|
+
headers: {
|
|
850
|
+
"Content-Type": "application/json",
|
|
851
|
+
...options.headers,
|
|
852
|
+
},
|
|
853
|
+
});
|
|
854
|
+
};
|
|
855
|
+
/**
|
|
856
|
+
* Update tenant
|
|
857
|
+
* Update an existing tenant
|
|
858
|
+
*/
|
|
859
|
+
export const tenantUpdate = (options) => {
|
|
860
|
+
return (options.client ?? _heyApiClient).patch({
|
|
861
|
+
security: [
|
|
862
|
+
{
|
|
863
|
+
scheme: "bearer",
|
|
864
|
+
type: "http",
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
in: "cookie",
|
|
868
|
+
name: "access_token",
|
|
869
|
+
type: "apiKey",
|
|
870
|
+
},
|
|
871
|
+
],
|
|
872
|
+
url: "/api/v1/tenants/{tenant}",
|
|
873
|
+
...options,
|
|
874
|
+
headers: {
|
|
875
|
+
"Content-Type": "application/json",
|
|
876
|
+
...options.headers,
|
|
877
|
+
},
|
|
878
|
+
});
|
|
879
|
+
};
|
|
880
|
+
/**
|
|
881
|
+
* Get tenant alerting settings
|
|
882
|
+
* Gets the alerting settings for a tenant
|
|
883
|
+
*/
|
|
884
|
+
export const tenantAlertingSettingsGet = (options) => {
|
|
885
|
+
return (options.client ?? _heyApiClient).get({
|
|
886
|
+
security: [
|
|
887
|
+
{
|
|
888
|
+
scheme: "bearer",
|
|
889
|
+
type: "http",
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
in: "cookie",
|
|
893
|
+
name: "access_token",
|
|
894
|
+
type: "apiKey",
|
|
895
|
+
},
|
|
896
|
+
],
|
|
897
|
+
url: "/api/v1/tenants/{tenant}/alerting/settings",
|
|
898
|
+
...options,
|
|
899
|
+
});
|
|
900
|
+
};
|
|
901
|
+
/**
|
|
902
|
+
* List tenant invites
|
|
903
|
+
* Gets a list of tenant invites
|
|
904
|
+
*/
|
|
905
|
+
export const tenantInviteList = (options) => {
|
|
906
|
+
return (options.client ?? _heyApiClient).get({
|
|
907
|
+
security: [
|
|
908
|
+
{
|
|
909
|
+
scheme: "bearer",
|
|
910
|
+
type: "http",
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
in: "cookie",
|
|
914
|
+
name: "access_token",
|
|
915
|
+
type: "apiKey",
|
|
916
|
+
},
|
|
917
|
+
],
|
|
918
|
+
url: "/api/v1/tenants/{tenant}/invites",
|
|
919
|
+
...options,
|
|
920
|
+
});
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
* Create tenant invite
|
|
924
|
+
* Creates a new tenant invite
|
|
925
|
+
*/
|
|
926
|
+
export const tenantInviteCreate = (options) => {
|
|
927
|
+
return (options.client ?? _heyApiClient).post({
|
|
928
|
+
security: [
|
|
929
|
+
{
|
|
930
|
+
scheme: "bearer",
|
|
931
|
+
type: "http",
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
in: "cookie",
|
|
935
|
+
name: "access_token",
|
|
936
|
+
type: "apiKey",
|
|
937
|
+
},
|
|
938
|
+
],
|
|
939
|
+
url: "/api/v1/tenants/{tenant}/invites",
|
|
940
|
+
...options,
|
|
941
|
+
headers: {
|
|
942
|
+
"Content-Type": "application/json",
|
|
943
|
+
...options.headers,
|
|
944
|
+
},
|
|
945
|
+
});
|
|
946
|
+
};
|
|
947
|
+
/**
|
|
948
|
+
* Delete invite
|
|
949
|
+
* Deletes a tenant invite
|
|
950
|
+
*/
|
|
951
|
+
export const tenantInviteDelete = (options) => {
|
|
952
|
+
return (options.client ?? _heyApiClient).delete({
|
|
953
|
+
security: [
|
|
954
|
+
{
|
|
955
|
+
scheme: "bearer",
|
|
956
|
+
type: "http",
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
in: "cookie",
|
|
960
|
+
name: "access_token",
|
|
961
|
+
type: "apiKey",
|
|
962
|
+
},
|
|
963
|
+
],
|
|
964
|
+
url: "/api/v1/tenants/{tenant}/invites/{tenant-invite}",
|
|
965
|
+
...options,
|
|
966
|
+
});
|
|
967
|
+
};
|
|
968
|
+
/**
|
|
969
|
+
* Update invite
|
|
970
|
+
* Updates a tenant invite
|
|
971
|
+
*/
|
|
972
|
+
export const tenantInviteUpdate = (options) => {
|
|
973
|
+
return (options.client ?? _heyApiClient).patch({
|
|
974
|
+
security: [
|
|
975
|
+
{
|
|
976
|
+
scheme: "bearer",
|
|
977
|
+
type: "http",
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
in: "cookie",
|
|
981
|
+
name: "access_token",
|
|
982
|
+
type: "apiKey",
|
|
983
|
+
},
|
|
984
|
+
],
|
|
985
|
+
url: "/api/v1/tenants/{tenant}/invites/{tenant-invite}",
|
|
986
|
+
...options,
|
|
987
|
+
headers: {
|
|
988
|
+
"Content-Type": "application/json",
|
|
989
|
+
...options.headers,
|
|
990
|
+
},
|
|
991
|
+
});
|
|
992
|
+
};
|
|
993
|
+
/**
|
|
994
|
+
* List API Tokens
|
|
995
|
+
* List API tokens for a tenant
|
|
996
|
+
*/
|
|
997
|
+
export const apiTokenList = (options) => {
|
|
998
|
+
return (options.client ?? _heyApiClient).get({
|
|
999
|
+
security: [
|
|
1000
|
+
{
|
|
1001
|
+
scheme: "bearer",
|
|
1002
|
+
type: "http",
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
in: "cookie",
|
|
1006
|
+
name: "access_token",
|
|
1007
|
+
type: "apiKey",
|
|
1008
|
+
},
|
|
1009
|
+
],
|
|
1010
|
+
url: "/api/v1/tenants/{tenant}/api-tokens",
|
|
1011
|
+
...options,
|
|
1012
|
+
});
|
|
1013
|
+
};
|
|
1014
|
+
/**
|
|
1015
|
+
* Create API Token
|
|
1016
|
+
* Create an API token for a tenant
|
|
1017
|
+
*/
|
|
1018
|
+
export const apiTokenCreate = (options) => {
|
|
1019
|
+
return (options.client ?? _heyApiClient).post({
|
|
1020
|
+
security: [
|
|
1021
|
+
{
|
|
1022
|
+
scheme: "bearer",
|
|
1023
|
+
type: "http",
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
in: "cookie",
|
|
1027
|
+
name: "access_token",
|
|
1028
|
+
type: "apiKey",
|
|
1029
|
+
},
|
|
1030
|
+
],
|
|
1031
|
+
url: "/api/v1/tenants/{tenant}/api-tokens",
|
|
1032
|
+
...options,
|
|
1033
|
+
headers: {
|
|
1034
|
+
"Content-Type": "application/json",
|
|
1035
|
+
...options.headers,
|
|
1036
|
+
},
|
|
1037
|
+
});
|
|
1038
|
+
};
|
|
1039
|
+
/**
|
|
1040
|
+
* Revoke API Token
|
|
1041
|
+
* Revoke an API token for a tenant
|
|
1042
|
+
*/
|
|
1043
|
+
export const apiTokenUpdateRevoke = (options) => {
|
|
1044
|
+
return (options.client ?? _heyApiClient).post({
|
|
1045
|
+
security: [
|
|
1046
|
+
{
|
|
1047
|
+
scheme: "bearer",
|
|
1048
|
+
type: "http",
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
in: "cookie",
|
|
1052
|
+
name: "access_token",
|
|
1053
|
+
type: "apiKey",
|
|
1054
|
+
},
|
|
1055
|
+
],
|
|
1056
|
+
url: "/api/v1/api-tokens/{api-token}",
|
|
1057
|
+
...options,
|
|
1058
|
+
});
|
|
1059
|
+
};
|
|
1060
|
+
/**
|
|
1061
|
+
* List tenant members
|
|
1062
|
+
* Gets a list of tenant members
|
|
1063
|
+
*/
|
|
1064
|
+
export const tenantMemberList = (options) => {
|
|
1065
|
+
return (options.client ?? _heyApiClient).get({
|
|
1066
|
+
security: [
|
|
1067
|
+
{
|
|
1068
|
+
scheme: "bearer",
|
|
1069
|
+
type: "http",
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
in: "cookie",
|
|
1073
|
+
name: "access_token",
|
|
1074
|
+
type: "apiKey",
|
|
1075
|
+
},
|
|
1076
|
+
],
|
|
1077
|
+
url: "/api/v1/tenants/{tenant}/members",
|
|
1078
|
+
...options,
|
|
1079
|
+
});
|
|
1080
|
+
};
|
|
1081
|
+
/**
|
|
1082
|
+
* Delete a tenant member
|
|
1083
|
+
* Delete a member from a tenant
|
|
1084
|
+
*/
|
|
1085
|
+
export const tenantMemberDelete = (options) => {
|
|
1086
|
+
return (options.client ?? _heyApiClient).delete({
|
|
1087
|
+
security: [
|
|
1088
|
+
{
|
|
1089
|
+
scheme: "bearer",
|
|
1090
|
+
type: "http",
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
in: "cookie",
|
|
1094
|
+
name: "access_token",
|
|
1095
|
+
type: "apiKey",
|
|
1096
|
+
},
|
|
1097
|
+
],
|
|
1098
|
+
url: "/api/v1/tenants/{tenant}/members/{member}",
|
|
1099
|
+
...options,
|
|
1100
|
+
});
|
|
1101
|
+
};
|
|
1102
|
+
/**
|
|
1103
|
+
* Export tenant information
|
|
1104
|
+
* Export tenant information including basic info and members
|
|
1105
|
+
*/
|
|
1106
|
+
export const tenantExport = (options) => {
|
|
1107
|
+
return (options.client ?? _heyApiClient).get({
|
|
1108
|
+
security: [
|
|
1109
|
+
{
|
|
1110
|
+
scheme: "bearer",
|
|
1111
|
+
type: "http",
|
|
1112
|
+
},
|
|
1113
|
+
{
|
|
1114
|
+
in: "cookie",
|
|
1115
|
+
name: "access_token",
|
|
1116
|
+
type: "apiKey",
|
|
1117
|
+
},
|
|
1118
|
+
],
|
|
1119
|
+
url: "/api/v1/tenants/{tenant}/export",
|
|
1120
|
+
...options,
|
|
1121
|
+
});
|
|
1122
|
+
};
|
|
1123
|
+
/**
|
|
1124
|
+
* We return the version for the currently running server
|
|
1125
|
+
* Get the version of the server
|
|
1126
|
+
*/
|
|
1127
|
+
export const infoGetVersion = (options) => {
|
|
1128
|
+
return (options?.client ?? _heyApiClient).get({
|
|
1129
|
+
url: "/api/v1/version",
|
|
1130
|
+
...options,
|
|
1131
|
+
});
|
|
1132
|
+
};
|
|
1133
|
+
/**
|
|
1134
|
+
* Returns public server information including frontend configuration
|
|
1135
|
+
* Get public server information
|
|
1136
|
+
*/
|
|
1137
|
+
export const infoGet = (options) => {
|
|
1138
|
+
return (options?.client ?? _heyApiClient).get({
|
|
1139
|
+
url: "/api/v1/info",
|
|
1140
|
+
...options,
|
|
1141
|
+
});
|
|
1142
|
+
};
|
|
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
|
+
//# sourceMappingURL=sdk.gen.js.map
|