mtmsdk 0.0.14 → 0.0.15
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/zod.gen.d.ts +17 -17
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +61 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +61 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi_v2/client/index.d.ts +1 -0
- package/dist/gomtmapi_v2/client/index.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/index.js +1 -0
- package/dist/gomtmapi_v2/client/index.js.map +1 -1
- package/dist/gomtmapi_v2/client/utils.gen.d.ts +1 -1
- package/dist/gomtmapi_v2/client/utils.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/client/utils.gen.js +7 -6
- package/dist/gomtmapi_v2/client/utils.gen.js.map +1 -1
- package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts +12 -4
- package/dist/gomtmapi_v2/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/core/bodySerializer.gen.js.map +1 -1
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js +100 -0
- package/dist/gomtmapi_v2/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/gomtmapi_v2/sdk.gen.d.ts +59 -0
- package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi_v2/sdk.gen.js +59 -0
- package/dist/gomtmapi_v2/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +983 -929
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +876 -387
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtgate_api/client/index.d.ts +1 -0
- package/dist/mtgate_api/client/index.d.ts.map +1 -1
- package/dist/mtgate_api/client/index.js +1 -0
- package/dist/mtgate_api/client/index.js.map +1 -1
- package/dist/mtgate_api/client/utils.gen.d.ts +1 -1
- package/dist/mtgate_api/client/utils.gen.d.ts.map +1 -1
- package/dist/mtgate_api/client/utils.gen.js +7 -6
- package/dist/mtgate_api/client/utils.gen.js.map +1 -1
- package/dist/mtgate_api/core/bodySerializer.gen.d.ts +12 -4
- package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/mtgate_api/core/bodySerializer.gen.js.map +1 -1
- package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/mtgate_api/core/queryKeySerializer.gen.js +100 -0
- package/dist/mtgate_api/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/mtgate_api/schemas.gen.d.ts +2258 -483
- package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
- package/dist/mtgate_api/schemas.gen.js +2344 -492
- package/dist/mtgate_api/schemas.gen.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +94 -26
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +554 -100
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +3608 -1167
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/types.gen.js +3 -0
- package/dist/mtgate_api/types.gen.js.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +4374 -1328
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +2078 -629
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +23 -0
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtmai_api/@tanstack/react-query.gen.js +23 -0
- package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtmai_api/client/index.d.ts +1 -0
- package/dist/mtmai_api/client/index.d.ts.map +1 -1
- package/dist/mtmai_api/client/index.js +1 -0
- package/dist/mtmai_api/client/index.js.map +1 -1
- package/dist/mtmai_api/client/utils.gen.d.ts +1 -1
- package/dist/mtmai_api/client/utils.gen.d.ts.map +1 -1
- package/dist/mtmai_api/client/utils.gen.js +7 -6
- package/dist/mtmai_api/client/utils.gen.js.map +1 -1
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts +12 -4
- package/dist/mtmai_api/core/bodySerializer.gen.d.ts.map +1 -1
- package/dist/mtmai_api/core/bodySerializer.gen.js.map +1 -1
- package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/mtmai_api/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/mtmai_api/core/queryKeySerializer.gen.js +100 -0
- package/dist/mtmai_api/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/mtmai_api/sdk.gen.d.ts +23 -0
- package/dist/mtmai_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtmai_api/sdk.gen.js +23 -0
- package/dist/mtmai_api/sdk.gen.js.map +1 -1
- package/dist/mtmai_api/types.gen.d.ts +552 -0
- package/dist/mtmai_api/types.gen.d.ts.map +1 -1
- package/dist/mtmai_api/types.gen.js +19 -0
- package/dist/mtmai_api/types.gen.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +18866 -18674
- package/dist/mtmai_api/zod.gen.d.ts.map +1 -1
- package/dist/mtmai_api/zod.gen.js +1826 -1634
- package/dist/mtmai_api/zod.gen.js.map +1 -1
- package/package.json +28 -5
- package/dist/components/MustAdmin.d.ts +0 -14
- package/dist/components/MustAdmin.d.ts.map +0 -1
- package/dist/components/MustAdmin.js +0 -37
- package/dist/components/MustAdmin.js.map +0 -1
- package/dist/lib/adk-utils.d.ts +0 -19
- package/dist/lib/adk-utils.d.ts.map +0 -1
- package/dist/lib/adk-utils.js +0 -50
- package/dist/lib/adk-utils.js.map +0 -1
- package/dist/lib/auth-client.d.ts +0 -5965
- package/dist/lib/auth-client.d.ts.map +0 -1
- package/dist/lib/auth-client.js +0 -29
- package/dist/lib/auth-client.js.map +0 -1
- package/dist/lib/get-query-client.d.ts +0 -3
- package/dist/lib/get-query-client.d.ts.map +0 -1
- package/dist/lib/get-query-client.js +0 -23
- package/dist/lib/get-query-client.js.map +0 -1
- package/dist/lib/mtgate_client_ss.d.ts +0 -10
- package/dist/lib/mtgate_client_ss.d.ts.map +0 -1
- package/dist/lib/mtgate_client_ss.js +0 -24
- package/dist/lib/mtgate_client_ss.js.map +0 -1
- package/dist/store/AuthProviders.d.ts +0 -8
- package/dist/store/AuthProviders.d.ts.map +0 -1
- package/dist/store/AuthProviders.js +0 -34
- package/dist/store/AuthProviders.js.map +0 -1
- package/dist/store/GomtmProvider.d.ts +0 -10
- package/dist/store/GomtmProvider.d.ts.map +0 -1
- package/dist/store/GomtmProvider.js +0 -24
- package/dist/store/GomtmProvider.js.map +0 -1
- package/dist/store/GomtmV1Provider.d.ts +0 -10
- package/dist/store/GomtmV1Provider.d.ts.map +0 -1
- package/dist/store/GomtmV1Provider.js +0 -24
- package/dist/store/GomtmV1Provider.js.map +0 -1
- package/dist/store/MtgateProvider.d.ts +0 -6015
- package/dist/store/MtgateProvider.d.ts.map +0 -1
- package/dist/store/MtgateProvider.js +0 -76
- package/dist/store/MtgateProvider.js.map +0 -1
- package/dist/store/MtmsdkProvider.d.ts +0 -16
- package/dist/store/MtmsdkProvider.d.ts.map +0 -1
- package/dist/store/MtmsdkProvider.js +0 -47
- package/dist/store/MtmsdkProvider.js.map +0 -1
- package/dist/store/ReactQueryMtmaiApiProvider.d.ts +0 -10
- package/dist/store/ReactQueryMtmaiApiProvider.d.ts.map +0 -1
- package/dist/store/ReactQueryMtmaiApiProvider.js +0 -23
- package/dist/store/ReactQueryMtmaiApiProvider.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export const
|
|
2
|
+
export const PgAgentSchema = {
|
|
3
|
+
description: "PgAgent",
|
|
3
4
|
type: "object",
|
|
4
5
|
properties: {
|
|
5
6
|
id: {
|
|
@@ -7,15 +8,18 @@ export const AgentSchema = {
|
|
|
7
8
|
},
|
|
8
9
|
createdAt: {
|
|
9
10
|
type: "string",
|
|
10
|
-
format: "date",
|
|
11
|
+
format: "date-time",
|
|
12
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
11
13
|
},
|
|
12
14
|
updatedAt: {
|
|
13
15
|
type: "string",
|
|
14
|
-
format: "date",
|
|
16
|
+
format: "date-time",
|
|
17
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
15
18
|
},
|
|
16
19
|
deletedAt: {
|
|
17
20
|
type: "string",
|
|
18
|
-
format: "date",
|
|
21
|
+
format: "date-time",
|
|
22
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
19
23
|
},
|
|
20
24
|
organizationId: {
|
|
21
25
|
type: "string",
|
|
@@ -23,6 +27,9 @@ export const AgentSchema = {
|
|
|
23
27
|
name: {
|
|
24
28
|
type: "string",
|
|
25
29
|
},
|
|
30
|
+
agentType: {
|
|
31
|
+
type: "string",
|
|
32
|
+
},
|
|
26
33
|
description: {
|
|
27
34
|
type: "string",
|
|
28
35
|
},
|
|
@@ -31,14 +38,25 @@ export const AgentSchema = {
|
|
|
31
38
|
},
|
|
32
39
|
config: {
|
|
33
40
|
type: "object",
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
propertyNames: {
|
|
42
|
+
type: "string",
|
|
36
43
|
},
|
|
44
|
+
additionalProperties: {},
|
|
37
45
|
},
|
|
38
46
|
state: {
|
|
39
47
|
type: "object",
|
|
48
|
+
propertyNames: {
|
|
49
|
+
type: "string",
|
|
50
|
+
},
|
|
51
|
+
additionalProperties: {},
|
|
52
|
+
},
|
|
53
|
+
envs: {
|
|
54
|
+
type: "object",
|
|
55
|
+
propertyNames: {
|
|
56
|
+
type: "string",
|
|
57
|
+
},
|
|
40
58
|
additionalProperties: {
|
|
41
|
-
|
|
59
|
+
type: "string",
|
|
42
60
|
},
|
|
43
61
|
},
|
|
44
62
|
},
|
|
@@ -48,16 +66,18 @@ export const AgentSchema = {
|
|
|
48
66
|
"updatedAt",
|
|
49
67
|
"organizationId",
|
|
50
68
|
"name",
|
|
69
|
+
"agentType",
|
|
51
70
|
"status",
|
|
52
71
|
],
|
|
53
72
|
};
|
|
54
|
-
export const
|
|
73
|
+
export const PgAgentListRespSchema = {
|
|
74
|
+
description: "PgAgentListResp",
|
|
55
75
|
type: "object",
|
|
56
76
|
properties: {
|
|
57
77
|
agents: {
|
|
58
78
|
type: "array",
|
|
59
79
|
items: {
|
|
60
|
-
$ref: "#/components/schemas/
|
|
80
|
+
$ref: "#/components/schemas/PgAgent",
|
|
61
81
|
},
|
|
62
82
|
},
|
|
63
83
|
total: {
|
|
@@ -66,15 +86,43 @@ export const AgentListResponseSchema = {
|
|
|
66
86
|
},
|
|
67
87
|
required: ["agents", "total"],
|
|
68
88
|
};
|
|
69
|
-
export const
|
|
89
|
+
export const PgAgentGetRespSchema = {
|
|
90
|
+
description: "PgAgentGetResp",
|
|
70
91
|
type: "object",
|
|
71
92
|
properties: {
|
|
72
93
|
agent: {
|
|
73
|
-
$ref: "#/components/schemas/
|
|
94
|
+
$ref: "#/components/schemas/PgAgent",
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
export const DeleteRespSchema = {
|
|
99
|
+
description: "删除响应",
|
|
100
|
+
type: "object",
|
|
101
|
+
properties: {
|
|
102
|
+
success: {
|
|
103
|
+
type: "boolean",
|
|
104
|
+
},
|
|
105
|
+
error: {
|
|
106
|
+
type: "string",
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
required: ["success"],
|
|
110
|
+
};
|
|
111
|
+
export const DeleteReqSchema = {
|
|
112
|
+
description: "删除请求",
|
|
113
|
+
type: "object",
|
|
114
|
+
properties: {
|
|
115
|
+
ids: {
|
|
116
|
+
type: "array",
|
|
117
|
+
items: {
|
|
118
|
+
type: "string",
|
|
119
|
+
},
|
|
74
120
|
},
|
|
75
121
|
},
|
|
122
|
+
required: ["ids"],
|
|
76
123
|
};
|
|
77
124
|
export const AgentCreateRequestSchema = {
|
|
125
|
+
description: "AgentCreateRequest",
|
|
78
126
|
type: "object",
|
|
79
127
|
properties: {
|
|
80
128
|
name: {
|
|
@@ -82,33 +130,19 @@ export const AgentCreateRequestSchema = {
|
|
|
82
130
|
minLength: 1,
|
|
83
131
|
maxLength: 255,
|
|
84
132
|
},
|
|
85
|
-
|
|
86
|
-
type: "string",
|
|
87
|
-
},
|
|
88
|
-
status: {
|
|
133
|
+
agentType: {
|
|
89
134
|
type: "string",
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
93
|
-
config: {
|
|
94
|
-
type: "object",
|
|
95
|
-
additionalProperties: {
|
|
96
|
-
nullable: true,
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
state: {
|
|
100
|
-
type: "object",
|
|
101
|
-
additionalProperties: {
|
|
102
|
-
nullable: true,
|
|
103
|
-
},
|
|
135
|
+
minLength: 1,
|
|
136
|
+
maxLength: 255,
|
|
104
137
|
},
|
|
105
|
-
|
|
138
|
+
description: {
|
|
106
139
|
type: "string",
|
|
107
140
|
},
|
|
108
141
|
},
|
|
109
|
-
required: ["name", "
|
|
142
|
+
required: ["name", "agentType"],
|
|
110
143
|
};
|
|
111
144
|
export const AgentChatbotUpdateBodyConfigSchema = {
|
|
145
|
+
description: "AgentChatbotUpdateBodyConfig",
|
|
112
146
|
type: "object",
|
|
113
147
|
properties: {
|
|
114
148
|
name: {
|
|
@@ -116,6 +150,11 @@ export const AgentChatbotUpdateBodyConfigSchema = {
|
|
|
116
150
|
minLength: 1,
|
|
117
151
|
maxLength: 255,
|
|
118
152
|
},
|
|
153
|
+
agentType: {
|
|
154
|
+
type: "string",
|
|
155
|
+
minLength: 1,
|
|
156
|
+
maxLength: 255,
|
|
157
|
+
},
|
|
119
158
|
description: {
|
|
120
159
|
type: "string",
|
|
121
160
|
},
|
|
@@ -125,470 +164,1965 @@ export const AgentChatbotUpdateBodyConfigSchema = {
|
|
|
125
164
|
},
|
|
126
165
|
config: {
|
|
127
166
|
type: "object",
|
|
128
|
-
|
|
129
|
-
|
|
167
|
+
propertyNames: {
|
|
168
|
+
type: "string",
|
|
130
169
|
},
|
|
170
|
+
additionalProperties: {},
|
|
131
171
|
},
|
|
132
172
|
state: {
|
|
133
173
|
type: "object",
|
|
174
|
+
propertyNames: {
|
|
175
|
+
type: "string",
|
|
176
|
+
},
|
|
177
|
+
additionalProperties: {},
|
|
178
|
+
},
|
|
179
|
+
envs: {
|
|
180
|
+
type: "object",
|
|
181
|
+
propertyNames: {
|
|
182
|
+
type: "string",
|
|
183
|
+
},
|
|
134
184
|
additionalProperties: {
|
|
135
|
-
|
|
185
|
+
type: "string",
|
|
136
186
|
},
|
|
137
187
|
},
|
|
138
188
|
},
|
|
139
189
|
};
|
|
140
|
-
export const
|
|
190
|
+
export const CfTunnelSettingsSchema = {
|
|
191
|
+
description: "Cloudflare隧道设置",
|
|
141
192
|
type: "object",
|
|
142
193
|
properties: {
|
|
143
|
-
|
|
194
|
+
CfToken: {
|
|
144
195
|
type: "string",
|
|
145
|
-
description: "Agent name",
|
|
146
196
|
},
|
|
147
|
-
|
|
197
|
+
accountId: {
|
|
148
198
|
type: "string",
|
|
149
|
-
description: "Agent ID",
|
|
150
199
|
},
|
|
151
|
-
|
|
200
|
+
apiToken: {
|
|
152
201
|
type: "string",
|
|
153
|
-
description: "Agent state",
|
|
154
202
|
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
};
|
|
158
|
-
export const ApiErrorSchema = {
|
|
159
|
-
type: "object",
|
|
160
|
-
properties: {
|
|
161
|
-
error: {
|
|
162
|
-
type: "object",
|
|
163
|
-
properties: {
|
|
164
|
-
code: {
|
|
165
|
-
type: "string",
|
|
166
|
-
enum: [
|
|
167
|
-
"VALIDATION_ERROR",
|
|
168
|
-
"NOT_FOUND",
|
|
169
|
-
"UNAUTHORIZED",
|
|
170
|
-
"FORBIDDEN",
|
|
171
|
-
"INTERNAL_ERROR",
|
|
172
|
-
"CONFLICT",
|
|
173
|
-
"BAD_REQUEST",
|
|
174
|
-
"UNPROCESSABLE_ENTITY",
|
|
175
|
-
],
|
|
176
|
-
},
|
|
177
|
-
message: {
|
|
178
|
-
type: "string",
|
|
179
|
-
},
|
|
180
|
-
details: {
|
|
181
|
-
type: "string",
|
|
182
|
-
},
|
|
183
|
-
field: {
|
|
184
|
-
type: "string",
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
required: ["message"],
|
|
203
|
+
zoneName: {
|
|
204
|
+
type: "string",
|
|
188
205
|
},
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
};
|
|
192
|
-
export const AgentHandlerGetInfoBodySchema = {
|
|
193
|
-
type: "object",
|
|
194
|
-
properties: {
|
|
195
|
-
agentId: {
|
|
206
|
+
mainDomain: {
|
|
207
|
+
default: "yuepa8.com",
|
|
196
208
|
type: "string",
|
|
197
|
-
description: "Agent ID",
|
|
198
209
|
},
|
|
199
210
|
},
|
|
200
|
-
required: ["agentId"],
|
|
201
211
|
};
|
|
202
|
-
export const
|
|
212
|
+
export const VncSchema = {
|
|
213
|
+
description: "VNC服务配置",
|
|
203
214
|
type: "object",
|
|
204
215
|
properties: {
|
|
205
|
-
|
|
206
|
-
type: "
|
|
216
|
+
enabled: {
|
|
217
|
+
type: "boolean",
|
|
207
218
|
},
|
|
208
|
-
|
|
219
|
+
error: {
|
|
209
220
|
type: "string",
|
|
210
221
|
},
|
|
211
|
-
|
|
212
|
-
type: "
|
|
222
|
+
lastUpdated: {
|
|
223
|
+
type: "number",
|
|
213
224
|
},
|
|
214
|
-
|
|
215
|
-
|
|
225
|
+
port: {
|
|
226
|
+
default: 5900,
|
|
227
|
+
type: "number",
|
|
216
228
|
},
|
|
217
|
-
|
|
229
|
+
password: {
|
|
230
|
+
default: "mtworker",
|
|
218
231
|
type: "string",
|
|
219
232
|
},
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
additionalProperties: {
|
|
223
|
-
nullable: true,
|
|
224
|
-
},
|
|
225
|
-
default: {},
|
|
226
|
-
},
|
|
227
|
-
tags: {
|
|
228
|
-
type: "array",
|
|
229
|
-
items: {
|
|
230
|
-
type: "string",
|
|
231
|
-
},
|
|
232
|
-
},
|
|
233
|
-
lastUsedAt: {
|
|
233
|
+
display: {
|
|
234
|
+
default: ":1",
|
|
234
235
|
type: "string",
|
|
235
|
-
format: "date",
|
|
236
236
|
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
},
|
|
238
|
+
required: ["enabled"],
|
|
239
|
+
};
|
|
240
|
+
export const MainApiSchema = {
|
|
241
|
+
description: "主API服务配置",
|
|
242
|
+
type: "object",
|
|
243
|
+
properties: {
|
|
244
|
+
enabled: {
|
|
245
|
+
type: "boolean",
|
|
240
246
|
},
|
|
241
|
-
|
|
247
|
+
error: {
|
|
242
248
|
type: "string",
|
|
243
|
-
format: "date",
|
|
244
249
|
},
|
|
245
|
-
|
|
246
|
-
type: "
|
|
250
|
+
lastUpdated: {
|
|
251
|
+
type: "number",
|
|
247
252
|
},
|
|
248
|
-
|
|
249
|
-
|
|
253
|
+
port: {
|
|
254
|
+
default: 8080,
|
|
255
|
+
type: "number",
|
|
250
256
|
},
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
nullable: true,
|
|
255
|
-
},
|
|
256
|
-
default: {},
|
|
257
|
+
host: {
|
|
258
|
+
default: "0.0.0.0",
|
|
259
|
+
type: "string",
|
|
257
260
|
},
|
|
258
261
|
},
|
|
259
|
-
required: ["
|
|
262
|
+
required: ["enabled"],
|
|
260
263
|
};
|
|
261
|
-
export const
|
|
264
|
+
export const MtproxyServiceSchema = {
|
|
265
|
+
description: "MtproxyService",
|
|
262
266
|
type: "object",
|
|
263
267
|
properties: {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
$ref: "#/components/schemas/BrowserGetResponse",
|
|
268
|
-
},
|
|
268
|
+
enabled: {
|
|
269
|
+
default: false,
|
|
270
|
+
type: "boolean",
|
|
269
271
|
},
|
|
270
|
-
|
|
272
|
+
port: {
|
|
273
|
+
default: 10801,
|
|
271
274
|
type: "number",
|
|
272
275
|
},
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
limit: {
|
|
277
|
-
type: "number",
|
|
278
|
-
},
|
|
279
|
-
offset: {
|
|
280
|
-
type: "number",
|
|
281
|
-
},
|
|
282
|
-
total_count: {
|
|
283
|
-
type: "number",
|
|
284
|
-
},
|
|
285
|
-
},
|
|
286
|
-
required: ["limit", "offset", "total_count"],
|
|
276
|
+
bindAddr: {
|
|
277
|
+
default: "0.0.0.0",
|
|
278
|
+
type: "string",
|
|
287
279
|
},
|
|
288
280
|
},
|
|
289
|
-
required: ["browsers", "total"],
|
|
290
281
|
};
|
|
291
|
-
export const
|
|
282
|
+
export const HelloOnionWebSchema = {
|
|
283
|
+
description: "HelloOnionWeb服务配置",
|
|
292
284
|
type: "object",
|
|
293
285
|
properties: {
|
|
294
|
-
|
|
295
|
-
type: "
|
|
296
|
-
minLength: 1,
|
|
297
|
-
},
|
|
298
|
-
description: {
|
|
299
|
-
type: "string",
|
|
300
|
-
},
|
|
301
|
-
url: {
|
|
302
|
-
type: "string",
|
|
303
|
-
format: "uri",
|
|
304
|
-
},
|
|
305
|
-
properties: {
|
|
306
|
-
type: "object",
|
|
307
|
-
additionalProperties: {
|
|
308
|
-
nullable: true,
|
|
309
|
-
},
|
|
310
|
-
default: {},
|
|
311
|
-
},
|
|
312
|
-
tags: {
|
|
313
|
-
type: "array",
|
|
314
|
-
items: {
|
|
315
|
-
type: "string",
|
|
316
|
-
},
|
|
286
|
+
enabled: {
|
|
287
|
+
type: "boolean",
|
|
317
288
|
},
|
|
318
|
-
|
|
289
|
+
error: {
|
|
319
290
|
type: "string",
|
|
320
291
|
},
|
|
321
|
-
|
|
322
|
-
type: "
|
|
292
|
+
lastUpdated: {
|
|
293
|
+
type: "number",
|
|
323
294
|
},
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
nullable: true,
|
|
328
|
-
},
|
|
329
|
-
default: {},
|
|
295
|
+
port: {
|
|
296
|
+
default: 8081,
|
|
297
|
+
type: "number",
|
|
330
298
|
},
|
|
331
299
|
},
|
|
332
|
-
required: ["
|
|
300
|
+
required: ["enabled"],
|
|
333
301
|
};
|
|
334
|
-
export const
|
|
302
|
+
export const NstbrowserApiSchema = {
|
|
303
|
+
description: "Nstbrowser API状态",
|
|
335
304
|
type: "object",
|
|
336
305
|
properties: {
|
|
337
|
-
|
|
306
|
+
enabled: {
|
|
307
|
+
type: "boolean",
|
|
308
|
+
},
|
|
309
|
+
error: {
|
|
338
310
|
type: "string",
|
|
339
311
|
},
|
|
340
|
-
|
|
312
|
+
lastUpdated: {
|
|
313
|
+
type: "number",
|
|
314
|
+
},
|
|
315
|
+
token: {
|
|
316
|
+
default: "",
|
|
341
317
|
type: "string",
|
|
342
318
|
},
|
|
343
319
|
},
|
|
320
|
+
required: ["enabled"],
|
|
344
321
|
};
|
|
345
|
-
export const
|
|
322
|
+
export const GomtmAgentStateSchema = {
|
|
323
|
+
description: "Gomtm Agent状态",
|
|
346
324
|
type: "object",
|
|
347
325
|
properties: {
|
|
348
|
-
|
|
326
|
+
title: {
|
|
349
327
|
type: "string",
|
|
350
328
|
},
|
|
351
|
-
|
|
329
|
+
error: {
|
|
352
330
|
type: "string",
|
|
353
331
|
},
|
|
354
|
-
|
|
332
|
+
mcpServerUrl: {
|
|
355
333
|
type: "string",
|
|
356
334
|
},
|
|
357
|
-
|
|
358
|
-
|
|
335
|
+
enabledDebug: {
|
|
336
|
+
default: false,
|
|
337
|
+
type: "boolean",
|
|
359
338
|
},
|
|
360
|
-
|
|
361
|
-
|
|
339
|
+
enabledAutoDispatch: {
|
|
340
|
+
default: false,
|
|
341
|
+
type: "boolean",
|
|
362
342
|
},
|
|
363
|
-
|
|
364
|
-
|
|
343
|
+
counter: {
|
|
344
|
+
default: 0,
|
|
345
|
+
type: "number",
|
|
365
346
|
},
|
|
366
|
-
|
|
367
|
-
|
|
347
|
+
tasks: {
|
|
348
|
+
default: {},
|
|
349
|
+
type: "object",
|
|
350
|
+
propertyNames: {
|
|
351
|
+
type: "string",
|
|
352
|
+
},
|
|
353
|
+
additionalProperties: {
|
|
354
|
+
type: "object",
|
|
355
|
+
properties: {
|
|
356
|
+
id: {
|
|
357
|
+
type: "string",
|
|
358
|
+
},
|
|
359
|
+
kind: {
|
|
360
|
+
type: "string",
|
|
361
|
+
const: "task",
|
|
362
|
+
},
|
|
363
|
+
contextId: {
|
|
364
|
+
type: "string",
|
|
365
|
+
},
|
|
366
|
+
status: {
|
|
367
|
+
type: "object",
|
|
368
|
+
properties: {
|
|
369
|
+
state: {
|
|
370
|
+
type: "string",
|
|
371
|
+
enum: [
|
|
372
|
+
"submitted",
|
|
373
|
+
"working",
|
|
374
|
+
"input-required",
|
|
375
|
+
"completed",
|
|
376
|
+
"canceled",
|
|
377
|
+
"failed",
|
|
378
|
+
"rejected",
|
|
379
|
+
"auth-required",
|
|
380
|
+
"unknown",
|
|
381
|
+
],
|
|
382
|
+
},
|
|
383
|
+
timestamp: {
|
|
384
|
+
type: "string",
|
|
385
|
+
},
|
|
386
|
+
message: {
|
|
387
|
+
type: "object",
|
|
388
|
+
properties: {
|
|
389
|
+
kind: {
|
|
390
|
+
type: "string",
|
|
391
|
+
const: "message",
|
|
392
|
+
},
|
|
393
|
+
messageId: {
|
|
394
|
+
type: "string",
|
|
395
|
+
},
|
|
396
|
+
role: {
|
|
397
|
+
type: "string",
|
|
398
|
+
enum: ["agent", "user"],
|
|
399
|
+
},
|
|
400
|
+
parts: {
|
|
401
|
+
type: "array",
|
|
402
|
+
items: {
|
|
403
|
+
anyOf: [
|
|
404
|
+
{
|
|
405
|
+
type: "object",
|
|
406
|
+
properties: {
|
|
407
|
+
kind: {
|
|
408
|
+
type: "string",
|
|
409
|
+
const: "text",
|
|
410
|
+
},
|
|
411
|
+
text: {
|
|
412
|
+
type: "string",
|
|
413
|
+
},
|
|
414
|
+
metadata: {
|
|
415
|
+
type: "object",
|
|
416
|
+
propertyNames: {
|
|
417
|
+
type: "string",
|
|
418
|
+
},
|
|
419
|
+
additionalProperties: {},
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
required: ["kind", "text"],
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
type: "object",
|
|
426
|
+
properties: {
|
|
427
|
+
kind: {
|
|
428
|
+
type: "string",
|
|
429
|
+
const: "file",
|
|
430
|
+
},
|
|
431
|
+
file: {
|
|
432
|
+
anyOf: [
|
|
433
|
+
{
|
|
434
|
+
type: "object",
|
|
435
|
+
properties: {
|
|
436
|
+
bytes: {
|
|
437
|
+
type: "string",
|
|
438
|
+
},
|
|
439
|
+
mimeType: {
|
|
440
|
+
type: "string",
|
|
441
|
+
},
|
|
442
|
+
name: {
|
|
443
|
+
type: "string",
|
|
444
|
+
},
|
|
445
|
+
},
|
|
446
|
+
required: ["bytes"],
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
type: "object",
|
|
450
|
+
properties: {
|
|
451
|
+
uri: {
|
|
452
|
+
type: "string",
|
|
453
|
+
},
|
|
454
|
+
mimeType: {
|
|
455
|
+
type: "string",
|
|
456
|
+
},
|
|
457
|
+
name: {
|
|
458
|
+
type: "string",
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
required: ["uri"],
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
},
|
|
465
|
+
metadata: {
|
|
466
|
+
type: "object",
|
|
467
|
+
propertyNames: {
|
|
468
|
+
type: "string",
|
|
469
|
+
},
|
|
470
|
+
additionalProperties: {},
|
|
471
|
+
},
|
|
472
|
+
},
|
|
473
|
+
required: ["kind", "file"],
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
type: "object",
|
|
477
|
+
properties: {
|
|
478
|
+
kind: {
|
|
479
|
+
type: "string",
|
|
480
|
+
const: "data",
|
|
481
|
+
},
|
|
482
|
+
data: {
|
|
483
|
+
type: "object",
|
|
484
|
+
propertyNames: {
|
|
485
|
+
type: "string",
|
|
486
|
+
},
|
|
487
|
+
additionalProperties: {},
|
|
488
|
+
},
|
|
489
|
+
metadata: {
|
|
490
|
+
type: "object",
|
|
491
|
+
propertyNames: {
|
|
492
|
+
type: "string",
|
|
493
|
+
},
|
|
494
|
+
additionalProperties: {},
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
required: ["kind", "data"],
|
|
498
|
+
},
|
|
499
|
+
],
|
|
500
|
+
},
|
|
501
|
+
},
|
|
502
|
+
contextId: {
|
|
503
|
+
type: "string",
|
|
504
|
+
},
|
|
505
|
+
taskId: {
|
|
506
|
+
type: "string",
|
|
507
|
+
},
|
|
508
|
+
extensions: {
|
|
509
|
+
type: "array",
|
|
510
|
+
items: {
|
|
511
|
+
type: "string",
|
|
512
|
+
},
|
|
513
|
+
},
|
|
514
|
+
referenceTaskIds: {
|
|
515
|
+
type: "array",
|
|
516
|
+
items: {
|
|
517
|
+
type: "string",
|
|
518
|
+
},
|
|
519
|
+
},
|
|
520
|
+
metadata: {
|
|
521
|
+
type: "object",
|
|
522
|
+
propertyNames: {
|
|
523
|
+
type: "string",
|
|
524
|
+
},
|
|
525
|
+
additionalProperties: {},
|
|
526
|
+
},
|
|
527
|
+
},
|
|
528
|
+
required: ["kind", "messageId", "role", "parts"],
|
|
529
|
+
},
|
|
530
|
+
},
|
|
531
|
+
required: ["state"],
|
|
532
|
+
},
|
|
533
|
+
artifacts: {
|
|
534
|
+
type: "array",
|
|
535
|
+
items: {
|
|
536
|
+
type: "object",
|
|
537
|
+
properties: {
|
|
538
|
+
artifactId: {
|
|
539
|
+
type: "string",
|
|
540
|
+
},
|
|
541
|
+
name: {
|
|
542
|
+
type: "string",
|
|
543
|
+
},
|
|
544
|
+
description: {
|
|
545
|
+
type: "string",
|
|
546
|
+
},
|
|
547
|
+
parts: {
|
|
548
|
+
type: "array",
|
|
549
|
+
items: {
|
|
550
|
+
anyOf: [
|
|
551
|
+
{
|
|
552
|
+
type: "object",
|
|
553
|
+
properties: {
|
|
554
|
+
kind: {
|
|
555
|
+
type: "string",
|
|
556
|
+
const: "text",
|
|
557
|
+
},
|
|
558
|
+
text: {
|
|
559
|
+
type: "string",
|
|
560
|
+
},
|
|
561
|
+
metadata: {
|
|
562
|
+
type: "object",
|
|
563
|
+
propertyNames: {
|
|
564
|
+
type: "string",
|
|
565
|
+
},
|
|
566
|
+
additionalProperties: {},
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
required: ["kind", "text"],
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
type: "object",
|
|
573
|
+
properties: {
|
|
574
|
+
kind: {
|
|
575
|
+
type: "string",
|
|
576
|
+
const: "file",
|
|
577
|
+
},
|
|
578
|
+
file: {
|
|
579
|
+
anyOf: [
|
|
580
|
+
{
|
|
581
|
+
type: "object",
|
|
582
|
+
properties: {
|
|
583
|
+
bytes: {
|
|
584
|
+
type: "string",
|
|
585
|
+
},
|
|
586
|
+
mimeType: {
|
|
587
|
+
type: "string",
|
|
588
|
+
},
|
|
589
|
+
name: {
|
|
590
|
+
type: "string",
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
required: ["bytes"],
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
type: "object",
|
|
597
|
+
properties: {
|
|
598
|
+
uri: {
|
|
599
|
+
type: "string",
|
|
600
|
+
},
|
|
601
|
+
mimeType: {
|
|
602
|
+
type: "string",
|
|
603
|
+
},
|
|
604
|
+
name: {
|
|
605
|
+
type: "string",
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
required: ["uri"],
|
|
609
|
+
},
|
|
610
|
+
],
|
|
611
|
+
},
|
|
612
|
+
metadata: {
|
|
613
|
+
type: "object",
|
|
614
|
+
propertyNames: {
|
|
615
|
+
type: "string",
|
|
616
|
+
},
|
|
617
|
+
additionalProperties: {},
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
required: ["kind", "file"],
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
type: "object",
|
|
624
|
+
properties: {
|
|
625
|
+
kind: {
|
|
626
|
+
type: "string",
|
|
627
|
+
const: "data",
|
|
628
|
+
},
|
|
629
|
+
data: {
|
|
630
|
+
type: "object",
|
|
631
|
+
propertyNames: {
|
|
632
|
+
type: "string",
|
|
633
|
+
},
|
|
634
|
+
additionalProperties: {},
|
|
635
|
+
},
|
|
636
|
+
metadata: {
|
|
637
|
+
type: "object",
|
|
638
|
+
propertyNames: {
|
|
639
|
+
type: "string",
|
|
640
|
+
},
|
|
641
|
+
additionalProperties: {},
|
|
642
|
+
},
|
|
643
|
+
},
|
|
644
|
+
required: ["kind", "data"],
|
|
645
|
+
},
|
|
646
|
+
],
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
extensions: {
|
|
650
|
+
type: "array",
|
|
651
|
+
items: {
|
|
652
|
+
type: "string",
|
|
653
|
+
},
|
|
654
|
+
},
|
|
655
|
+
metadata: {
|
|
656
|
+
type: "object",
|
|
657
|
+
propertyNames: {
|
|
658
|
+
type: "string",
|
|
659
|
+
},
|
|
660
|
+
additionalProperties: {},
|
|
661
|
+
},
|
|
662
|
+
},
|
|
663
|
+
required: ["artifactId", "parts"],
|
|
664
|
+
},
|
|
665
|
+
},
|
|
666
|
+
history: {
|
|
667
|
+
type: "array",
|
|
668
|
+
items: {
|
|
669
|
+
type: "object",
|
|
670
|
+
properties: {
|
|
671
|
+
kind: {
|
|
672
|
+
type: "string",
|
|
673
|
+
const: "message",
|
|
674
|
+
},
|
|
675
|
+
messageId: {
|
|
676
|
+
type: "string",
|
|
677
|
+
},
|
|
678
|
+
role: {
|
|
679
|
+
type: "string",
|
|
680
|
+
enum: ["agent", "user"],
|
|
681
|
+
},
|
|
682
|
+
parts: {
|
|
683
|
+
type: "array",
|
|
684
|
+
items: {
|
|
685
|
+
anyOf: [
|
|
686
|
+
{
|
|
687
|
+
type: "object",
|
|
688
|
+
properties: {
|
|
689
|
+
kind: {
|
|
690
|
+
type: "string",
|
|
691
|
+
const: "text",
|
|
692
|
+
},
|
|
693
|
+
text: {
|
|
694
|
+
type: "string",
|
|
695
|
+
},
|
|
696
|
+
metadata: {
|
|
697
|
+
type: "object",
|
|
698
|
+
propertyNames: {
|
|
699
|
+
type: "string",
|
|
700
|
+
},
|
|
701
|
+
additionalProperties: {},
|
|
702
|
+
},
|
|
703
|
+
},
|
|
704
|
+
required: ["kind", "text"],
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
type: "object",
|
|
708
|
+
properties: {
|
|
709
|
+
kind: {
|
|
710
|
+
type: "string",
|
|
711
|
+
const: "file",
|
|
712
|
+
},
|
|
713
|
+
file: {
|
|
714
|
+
anyOf: [
|
|
715
|
+
{
|
|
716
|
+
type: "object",
|
|
717
|
+
properties: {
|
|
718
|
+
bytes: {
|
|
719
|
+
type: "string",
|
|
720
|
+
},
|
|
721
|
+
mimeType: {
|
|
722
|
+
type: "string",
|
|
723
|
+
},
|
|
724
|
+
name: {
|
|
725
|
+
type: "string",
|
|
726
|
+
},
|
|
727
|
+
},
|
|
728
|
+
required: ["bytes"],
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
type: "object",
|
|
732
|
+
properties: {
|
|
733
|
+
uri: {
|
|
734
|
+
type: "string",
|
|
735
|
+
},
|
|
736
|
+
mimeType: {
|
|
737
|
+
type: "string",
|
|
738
|
+
},
|
|
739
|
+
name: {
|
|
740
|
+
type: "string",
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
required: ["uri"],
|
|
744
|
+
},
|
|
745
|
+
],
|
|
746
|
+
},
|
|
747
|
+
metadata: {
|
|
748
|
+
type: "object",
|
|
749
|
+
propertyNames: {
|
|
750
|
+
type: "string",
|
|
751
|
+
},
|
|
752
|
+
additionalProperties: {},
|
|
753
|
+
},
|
|
754
|
+
},
|
|
755
|
+
required: ["kind", "file"],
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
type: "object",
|
|
759
|
+
properties: {
|
|
760
|
+
kind: {
|
|
761
|
+
type: "string",
|
|
762
|
+
const: "data",
|
|
763
|
+
},
|
|
764
|
+
data: {
|
|
765
|
+
type: "object",
|
|
766
|
+
propertyNames: {
|
|
767
|
+
type: "string",
|
|
768
|
+
},
|
|
769
|
+
additionalProperties: {},
|
|
770
|
+
},
|
|
771
|
+
metadata: {
|
|
772
|
+
type: "object",
|
|
773
|
+
propertyNames: {
|
|
774
|
+
type: "string",
|
|
775
|
+
},
|
|
776
|
+
additionalProperties: {},
|
|
777
|
+
},
|
|
778
|
+
},
|
|
779
|
+
required: ["kind", "data"],
|
|
780
|
+
},
|
|
781
|
+
],
|
|
782
|
+
},
|
|
783
|
+
},
|
|
784
|
+
contextId: {
|
|
785
|
+
type: "string",
|
|
786
|
+
},
|
|
787
|
+
taskId: {
|
|
788
|
+
type: "string",
|
|
789
|
+
},
|
|
790
|
+
extensions: {
|
|
791
|
+
type: "array",
|
|
792
|
+
items: {
|
|
793
|
+
type: "string",
|
|
794
|
+
},
|
|
795
|
+
},
|
|
796
|
+
referenceTaskIds: {
|
|
797
|
+
type: "array",
|
|
798
|
+
items: {
|
|
799
|
+
type: "string",
|
|
800
|
+
},
|
|
801
|
+
},
|
|
802
|
+
metadata: {
|
|
803
|
+
type: "object",
|
|
804
|
+
propertyNames: {
|
|
805
|
+
type: "string",
|
|
806
|
+
},
|
|
807
|
+
additionalProperties: {},
|
|
808
|
+
},
|
|
809
|
+
},
|
|
810
|
+
required: ["kind", "messageId", "role", "parts"],
|
|
811
|
+
},
|
|
812
|
+
},
|
|
813
|
+
metadata: {
|
|
814
|
+
type: "object",
|
|
815
|
+
propertyNames: {
|
|
816
|
+
type: "string",
|
|
817
|
+
},
|
|
818
|
+
additionalProperties: {},
|
|
819
|
+
},
|
|
820
|
+
},
|
|
821
|
+
required: ["id", "kind", "contextId", "status"],
|
|
822
|
+
},
|
|
368
823
|
},
|
|
369
|
-
|
|
824
|
+
taskConfirmations: {
|
|
825
|
+
default: [],
|
|
826
|
+
type: "array",
|
|
827
|
+
items: {
|
|
828
|
+
type: "object",
|
|
829
|
+
properties: {
|
|
830
|
+
id: {
|
|
831
|
+
type: "string",
|
|
832
|
+
},
|
|
833
|
+
action: {
|
|
834
|
+
type: "string",
|
|
835
|
+
},
|
|
836
|
+
title: {
|
|
837
|
+
type: "string",
|
|
838
|
+
},
|
|
839
|
+
description: {
|
|
840
|
+
type: "string",
|
|
841
|
+
},
|
|
842
|
+
taskId: {
|
|
843
|
+
type: "string",
|
|
844
|
+
},
|
|
845
|
+
},
|
|
846
|
+
required: ["id", "action"],
|
|
847
|
+
},
|
|
848
|
+
},
|
|
849
|
+
lastUpdated: {
|
|
370
850
|
type: "number",
|
|
371
851
|
},
|
|
372
|
-
|
|
852
|
+
configTimeout: {
|
|
853
|
+
default: 60,
|
|
854
|
+
type: "number",
|
|
855
|
+
},
|
|
856
|
+
connectionStatus: {
|
|
857
|
+
default: false,
|
|
373
858
|
type: "boolean",
|
|
374
859
|
},
|
|
375
|
-
|
|
860
|
+
runServerCommand: {
|
|
376
861
|
type: "string",
|
|
377
|
-
format: "date",
|
|
378
862
|
},
|
|
379
|
-
|
|
380
|
-
type: "
|
|
381
|
-
|
|
863
|
+
envs: {
|
|
864
|
+
type: "object",
|
|
865
|
+
propertyNames: {
|
|
866
|
+
type: "string",
|
|
867
|
+
},
|
|
868
|
+
additionalProperties: {
|
|
869
|
+
type: "string",
|
|
870
|
+
},
|
|
871
|
+
},
|
|
872
|
+
settings: {
|
|
873
|
+
type: "object",
|
|
874
|
+
properties: {
|
|
875
|
+
cftunnelSettings: {
|
|
876
|
+
$ref: "#/components/schemas/CfTunnelSettings",
|
|
877
|
+
},
|
|
878
|
+
},
|
|
879
|
+
required: ["cftunnelSettings"],
|
|
880
|
+
},
|
|
881
|
+
tunnel: {
|
|
882
|
+
type: "object",
|
|
883
|
+
properties: {
|
|
884
|
+
enabled: {
|
|
885
|
+
type: "boolean",
|
|
886
|
+
},
|
|
887
|
+
error: {
|
|
888
|
+
type: "string",
|
|
889
|
+
},
|
|
890
|
+
lastUpdated: {
|
|
891
|
+
type: "number",
|
|
892
|
+
},
|
|
893
|
+
type: {
|
|
894
|
+
default: "singbox",
|
|
895
|
+
type: "string",
|
|
896
|
+
},
|
|
897
|
+
configUrl: {
|
|
898
|
+
type: "string",
|
|
899
|
+
},
|
|
900
|
+
},
|
|
901
|
+
required: ["enabled"],
|
|
902
|
+
},
|
|
903
|
+
vnc: {
|
|
904
|
+
$ref: "#/components/schemas/Vnc",
|
|
905
|
+
},
|
|
906
|
+
mainApi: {
|
|
907
|
+
$ref: "#/components/schemas/MainApi",
|
|
908
|
+
},
|
|
909
|
+
mtproxy: {
|
|
910
|
+
$ref: "#/components/schemas/MtproxyService",
|
|
911
|
+
},
|
|
912
|
+
helloOnionWeb: {
|
|
913
|
+
$ref: "#/components/schemas/HelloOnionWeb",
|
|
914
|
+
},
|
|
915
|
+
nstbrowserApi: {
|
|
916
|
+
$ref: "#/components/schemas/NstbrowserApi",
|
|
382
917
|
},
|
|
383
918
|
},
|
|
384
|
-
required: [
|
|
919
|
+
required: [
|
|
920
|
+
"lastUpdated",
|
|
921
|
+
"settings",
|
|
922
|
+
"tunnel",
|
|
923
|
+
"vnc",
|
|
924
|
+
"mainApi",
|
|
925
|
+
"mtproxy",
|
|
926
|
+
"helloOnionWeb",
|
|
927
|
+
"nstbrowserApi",
|
|
928
|
+
],
|
|
385
929
|
};
|
|
386
|
-
export const
|
|
930
|
+
export const ApiErrorSchema = {
|
|
931
|
+
description: "API错误响应",
|
|
387
932
|
type: "object",
|
|
388
933
|
properties: {
|
|
389
|
-
|
|
390
|
-
type: "
|
|
391
|
-
|
|
392
|
-
|
|
934
|
+
error: {
|
|
935
|
+
type: "object",
|
|
936
|
+
properties: {
|
|
937
|
+
code: {
|
|
938
|
+
type: "string",
|
|
939
|
+
enum: [
|
|
940
|
+
"VALIDATION_ERROR",
|
|
941
|
+
"NOT_FOUND",
|
|
942
|
+
"UNAUTHORIZED",
|
|
943
|
+
"FORBIDDEN",
|
|
944
|
+
"INTERNAL_ERROR",
|
|
945
|
+
"CONFLICT",
|
|
946
|
+
"BAD_REQUEST",
|
|
947
|
+
"UNPROCESSABLE_ENTITY",
|
|
948
|
+
],
|
|
949
|
+
},
|
|
950
|
+
message: {
|
|
951
|
+
type: "string",
|
|
952
|
+
},
|
|
953
|
+
cause: {
|
|
954
|
+
type: "string",
|
|
955
|
+
},
|
|
956
|
+
details: {
|
|
957
|
+
type: "string",
|
|
958
|
+
},
|
|
959
|
+
field: {
|
|
960
|
+
type: "string",
|
|
961
|
+
},
|
|
393
962
|
},
|
|
963
|
+
required: ["message"],
|
|
964
|
+
},
|
|
965
|
+
},
|
|
966
|
+
required: ["error"],
|
|
967
|
+
};
|
|
968
|
+
export const AgentSchema = {
|
|
969
|
+
description: "Agent",
|
|
970
|
+
type: "object",
|
|
971
|
+
properties: {
|
|
972
|
+
id: {
|
|
973
|
+
type: "string",
|
|
974
|
+
},
|
|
975
|
+
name: {
|
|
976
|
+
type: "string",
|
|
977
|
+
},
|
|
978
|
+
agentType: {
|
|
979
|
+
type: "string",
|
|
394
980
|
},
|
|
395
|
-
|
|
981
|
+
description: {
|
|
982
|
+
type: "string",
|
|
983
|
+
},
|
|
984
|
+
},
|
|
985
|
+
required: ["id", "name", "agentType"],
|
|
986
|
+
};
|
|
987
|
+
export const AgentListRespSchema = {
|
|
988
|
+
description: "AgentListResp",
|
|
989
|
+
type: "object",
|
|
990
|
+
properties: {
|
|
991
|
+
paginate: {
|
|
396
992
|
type: "object",
|
|
397
993
|
properties: {
|
|
398
|
-
|
|
994
|
+
total: {
|
|
995
|
+
description: "Total number of records",
|
|
399
996
|
type: "number",
|
|
400
997
|
},
|
|
401
|
-
|
|
998
|
+
page: {
|
|
999
|
+
description: "Current page number",
|
|
402
1000
|
type: "number",
|
|
403
1001
|
},
|
|
404
|
-
|
|
1002
|
+
pageSize: {
|
|
1003
|
+
description: "Number of records per page",
|
|
405
1004
|
type: "number",
|
|
406
1005
|
},
|
|
407
|
-
|
|
1006
|
+
totalPages: {
|
|
1007
|
+
description: "Total number of pages",
|
|
408
1008
|
type: "number",
|
|
409
1009
|
},
|
|
1010
|
+
hasNext: {
|
|
1011
|
+
description: "Whether there is a next page",
|
|
1012
|
+
type: "boolean",
|
|
1013
|
+
},
|
|
1014
|
+
},
|
|
1015
|
+
required: ["total", "page", "pageSize", "totalPages", "hasNext"],
|
|
1016
|
+
},
|
|
1017
|
+
rows: {
|
|
1018
|
+
type: "array",
|
|
1019
|
+
items: {
|
|
1020
|
+
$ref: "#/components/schemas/Agent",
|
|
410
1021
|
},
|
|
411
|
-
required: ["page", "limit", "total_count", "total_pages"],
|
|
412
1022
|
},
|
|
413
1023
|
},
|
|
414
|
-
required: ["
|
|
1024
|
+
required: ["paginate", "rows"],
|
|
415
1025
|
};
|
|
416
|
-
export const
|
|
1026
|
+
export const BrowserSchema = {
|
|
1027
|
+
description: "浏览器",
|
|
417
1028
|
type: "object",
|
|
418
1029
|
properties: {
|
|
419
1030
|
id: {
|
|
420
1031
|
type: "string",
|
|
421
1032
|
},
|
|
1033
|
+
organizationId: {
|
|
1034
|
+
type: "string",
|
|
1035
|
+
},
|
|
1036
|
+
name: {
|
|
1037
|
+
type: "string",
|
|
1038
|
+
},
|
|
1039
|
+
description: {
|
|
1040
|
+
type: "string",
|
|
1041
|
+
},
|
|
1042
|
+
url: {
|
|
1043
|
+
type: "string",
|
|
1044
|
+
},
|
|
1045
|
+
properties: {
|
|
1046
|
+
default: {},
|
|
1047
|
+
type: "object",
|
|
1048
|
+
propertyNames: {
|
|
1049
|
+
type: "string",
|
|
1050
|
+
},
|
|
1051
|
+
additionalProperties: {},
|
|
1052
|
+
},
|
|
1053
|
+
tags: {
|
|
1054
|
+
type: "array",
|
|
1055
|
+
items: {
|
|
1056
|
+
type: "string",
|
|
1057
|
+
},
|
|
1058
|
+
},
|
|
1059
|
+
lastUsedAt: {
|
|
1060
|
+
type: "string",
|
|
1061
|
+
format: "date-time",
|
|
1062
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1063
|
+
},
|
|
1064
|
+
createdAt: {
|
|
1065
|
+
type: "string",
|
|
1066
|
+
format: "date-time",
|
|
1067
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1068
|
+
},
|
|
1069
|
+
updatedAt: {
|
|
1070
|
+
type: "string",
|
|
1071
|
+
format: "date-time",
|
|
1072
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1073
|
+
},
|
|
1074
|
+
deletedAt: {
|
|
1075
|
+
type: "string",
|
|
1076
|
+
format: "date-time",
|
|
1077
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1078
|
+
},
|
|
1079
|
+
platformId: {
|
|
1080
|
+
type: "string",
|
|
1081
|
+
},
|
|
1082
|
+
autoLoginScript: {
|
|
1083
|
+
type: "string",
|
|
1084
|
+
},
|
|
1085
|
+
sessionData: {
|
|
1086
|
+
default: {},
|
|
1087
|
+
type: "object",
|
|
1088
|
+
propertyNames: {
|
|
1089
|
+
type: "string",
|
|
1090
|
+
},
|
|
1091
|
+
additionalProperties: {},
|
|
1092
|
+
},
|
|
1093
|
+
},
|
|
1094
|
+
required: ["id", "organizationId", "name", "url", "createdAt", "updatedAt"],
|
|
1095
|
+
};
|
|
1096
|
+
export const BrowserGetRespSchema = {
|
|
1097
|
+
description: "浏览器获取响应",
|
|
1098
|
+
type: "object",
|
|
1099
|
+
properties: {
|
|
1100
|
+
id: {
|
|
1101
|
+
type: "string",
|
|
1102
|
+
},
|
|
1103
|
+
organizationId: {
|
|
1104
|
+
type: "string",
|
|
1105
|
+
},
|
|
422
1106
|
name: {
|
|
423
1107
|
type: "string",
|
|
424
|
-
minLength: 1,
|
|
425
1108
|
},
|
|
426
1109
|
description: {
|
|
427
1110
|
type: "string",
|
|
428
1111
|
},
|
|
429
1112
|
url: {
|
|
430
1113
|
type: "string",
|
|
1114
|
+
},
|
|
1115
|
+
properties: {
|
|
1116
|
+
default: {},
|
|
1117
|
+
type: "object",
|
|
1118
|
+
propertyNames: {
|
|
1119
|
+
type: "string",
|
|
1120
|
+
},
|
|
1121
|
+
additionalProperties: {},
|
|
1122
|
+
},
|
|
1123
|
+
tags: {
|
|
1124
|
+
type: "array",
|
|
1125
|
+
items: {
|
|
1126
|
+
type: "string",
|
|
1127
|
+
},
|
|
1128
|
+
},
|
|
1129
|
+
lastUsedAt: {
|
|
1130
|
+
type: "string",
|
|
1131
|
+
format: "date-time",
|
|
1132
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1133
|
+
},
|
|
1134
|
+
createdAt: {
|
|
1135
|
+
type: "string",
|
|
1136
|
+
format: "date-time",
|
|
1137
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1138
|
+
},
|
|
1139
|
+
updatedAt: {
|
|
1140
|
+
type: "string",
|
|
1141
|
+
format: "date-time",
|
|
1142
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1143
|
+
},
|
|
1144
|
+
platformId: {
|
|
1145
|
+
type: "string",
|
|
1146
|
+
},
|
|
1147
|
+
autoLoginScript: {
|
|
1148
|
+
type: "string",
|
|
1149
|
+
},
|
|
1150
|
+
sessionData: {
|
|
1151
|
+
default: {},
|
|
1152
|
+
type: "object",
|
|
1153
|
+
propertyNames: {
|
|
1154
|
+
type: "string",
|
|
1155
|
+
},
|
|
1156
|
+
additionalProperties: {},
|
|
1157
|
+
},
|
|
1158
|
+
},
|
|
1159
|
+
required: ["id", "organizationId", "name", "url", "createdAt", "updatedAt"],
|
|
1160
|
+
};
|
|
1161
|
+
export const BrowserUpsertRequestSchema = {
|
|
1162
|
+
description: "浏览器更新请求",
|
|
1163
|
+
type: "object",
|
|
1164
|
+
properties: {
|
|
1165
|
+
name: {
|
|
1166
|
+
type: "string",
|
|
431
1167
|
minLength: 1,
|
|
1168
|
+
},
|
|
1169
|
+
description: {
|
|
1170
|
+
type: "string",
|
|
1171
|
+
},
|
|
1172
|
+
url: {
|
|
1173
|
+
type: "string",
|
|
432
1174
|
format: "uri",
|
|
433
1175
|
},
|
|
1176
|
+
properties: {
|
|
1177
|
+
default: {},
|
|
1178
|
+
type: "object",
|
|
1179
|
+
propertyNames: {
|
|
1180
|
+
type: "string",
|
|
1181
|
+
},
|
|
1182
|
+
additionalProperties: {},
|
|
1183
|
+
},
|
|
1184
|
+
tags: {
|
|
1185
|
+
type: "array",
|
|
1186
|
+
items: {
|
|
1187
|
+
type: "string",
|
|
1188
|
+
},
|
|
1189
|
+
},
|
|
1190
|
+
platformId: {
|
|
1191
|
+
type: "string",
|
|
1192
|
+
},
|
|
1193
|
+
autoLoginScript: {
|
|
1194
|
+
type: "string",
|
|
1195
|
+
},
|
|
1196
|
+
sessionData: {
|
|
1197
|
+
default: {},
|
|
1198
|
+
type: "object",
|
|
1199
|
+
propertyNames: {
|
|
1200
|
+
type: "string",
|
|
1201
|
+
},
|
|
1202
|
+
additionalProperties: {},
|
|
1203
|
+
},
|
|
434
1204
|
},
|
|
435
|
-
required: ["url"],
|
|
1205
|
+
required: ["name", "url"],
|
|
1206
|
+
};
|
|
1207
|
+
export const PAccountSchema = {
|
|
1208
|
+
description: "平台账户",
|
|
1209
|
+
type: "object",
|
|
1210
|
+
properties: {
|
|
1211
|
+
id: {
|
|
1212
|
+
type: "string",
|
|
1213
|
+
},
|
|
1214
|
+
tenantId: {
|
|
1215
|
+
type: "string",
|
|
1216
|
+
},
|
|
1217
|
+
createdAt: {
|
|
1218
|
+
type: "string",
|
|
1219
|
+
format: "date-time",
|
|
1220
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1221
|
+
},
|
|
1222
|
+
updatedAt: {
|
|
1223
|
+
type: "string",
|
|
1224
|
+
format: "date-time",
|
|
1225
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1226
|
+
},
|
|
1227
|
+
deletedAt: {
|
|
1228
|
+
type: "string",
|
|
1229
|
+
format: "date-time",
|
|
1230
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1231
|
+
},
|
|
1232
|
+
name: {
|
|
1233
|
+
type: "string",
|
|
1234
|
+
},
|
|
1235
|
+
description: {
|
|
1236
|
+
type: "string",
|
|
1237
|
+
},
|
|
1238
|
+
platformId: {
|
|
1239
|
+
type: "string",
|
|
1240
|
+
},
|
|
1241
|
+
tags: {
|
|
1242
|
+
type: "array",
|
|
1243
|
+
items: {
|
|
1244
|
+
type: "string",
|
|
1245
|
+
},
|
|
1246
|
+
},
|
|
1247
|
+
enabled: {
|
|
1248
|
+
type: "boolean",
|
|
1249
|
+
},
|
|
1250
|
+
state: {
|
|
1251
|
+
type: "object",
|
|
1252
|
+
propertyNames: {
|
|
1253
|
+
type: "string",
|
|
1254
|
+
},
|
|
1255
|
+
additionalProperties: {},
|
|
1256
|
+
},
|
|
1257
|
+
config: {
|
|
1258
|
+
type: "object",
|
|
1259
|
+
propertyNames: {
|
|
1260
|
+
type: "string",
|
|
1261
|
+
},
|
|
1262
|
+
additionalProperties: {},
|
|
1263
|
+
},
|
|
1264
|
+
error: {
|
|
1265
|
+
type: "string",
|
|
1266
|
+
},
|
|
1267
|
+
icon: {
|
|
1268
|
+
type: "string",
|
|
1269
|
+
},
|
|
1270
|
+
platform: {
|
|
1271
|
+
type: "object",
|
|
1272
|
+
properties: {
|
|
1273
|
+
id: {
|
|
1274
|
+
type: "string",
|
|
1275
|
+
},
|
|
1276
|
+
name: {
|
|
1277
|
+
type: "string",
|
|
1278
|
+
},
|
|
1279
|
+
description: {
|
|
1280
|
+
type: "string",
|
|
1281
|
+
},
|
|
1282
|
+
url: {
|
|
1283
|
+
type: "string",
|
|
1284
|
+
},
|
|
1285
|
+
loginUrl: {
|
|
1286
|
+
type: "string",
|
|
1287
|
+
},
|
|
1288
|
+
},
|
|
1289
|
+
required: ["id", "name"],
|
|
1290
|
+
},
|
|
1291
|
+
},
|
|
1292
|
+
required: [
|
|
1293
|
+
"id",
|
|
1294
|
+
"tenantId",
|
|
1295
|
+
"createdAt",
|
|
1296
|
+
"updatedAt",
|
|
1297
|
+
"platformId",
|
|
1298
|
+
"enabled",
|
|
1299
|
+
],
|
|
1300
|
+
};
|
|
1301
|
+
export const PAccountListRespSchema = {
|
|
1302
|
+
description: "PAccountListResp",
|
|
1303
|
+
type: "object",
|
|
1304
|
+
properties: {
|
|
1305
|
+
paginate: {
|
|
1306
|
+
type: "object",
|
|
1307
|
+
properties: {
|
|
1308
|
+
total: {
|
|
1309
|
+
description: "Total number of records",
|
|
1310
|
+
type: "number",
|
|
1311
|
+
},
|
|
1312
|
+
page: {
|
|
1313
|
+
description: "Current page number",
|
|
1314
|
+
type: "number",
|
|
1315
|
+
},
|
|
1316
|
+
pageSize: {
|
|
1317
|
+
description: "Number of records per page",
|
|
1318
|
+
type: "number",
|
|
1319
|
+
},
|
|
1320
|
+
totalPages: {
|
|
1321
|
+
description: "Total number of pages",
|
|
1322
|
+
type: "number",
|
|
1323
|
+
},
|
|
1324
|
+
hasNext: {
|
|
1325
|
+
description: "Whether there is a next page",
|
|
1326
|
+
type: "boolean",
|
|
1327
|
+
},
|
|
1328
|
+
},
|
|
1329
|
+
required: ["total", "page", "pageSize", "totalPages", "hasNext"],
|
|
1330
|
+
},
|
|
1331
|
+
rows: {
|
|
1332
|
+
type: "array",
|
|
1333
|
+
items: {
|
|
1334
|
+
$ref: "#/components/schemas/PAccount",
|
|
1335
|
+
},
|
|
1336
|
+
},
|
|
1337
|
+
},
|
|
1338
|
+
required: ["paginate", "rows"],
|
|
1339
|
+
};
|
|
1340
|
+
export const PAccountCreateRequestSchema = {
|
|
1341
|
+
description: "平台账户创建请求",
|
|
1342
|
+
type: "object",
|
|
1343
|
+
properties: {
|
|
1344
|
+
name: {
|
|
1345
|
+
type: "string",
|
|
1346
|
+
minLength: 1,
|
|
1347
|
+
},
|
|
1348
|
+
description: {
|
|
1349
|
+
type: "string",
|
|
1350
|
+
},
|
|
1351
|
+
platformId: {
|
|
1352
|
+
type: "string",
|
|
1353
|
+
minLength: 1,
|
|
1354
|
+
},
|
|
1355
|
+
enabled: {
|
|
1356
|
+
default: true,
|
|
1357
|
+
type: "boolean",
|
|
1358
|
+
},
|
|
1359
|
+
tags: {
|
|
1360
|
+
default: [],
|
|
1361
|
+
type: "array",
|
|
1362
|
+
items: {
|
|
1363
|
+
type: "string",
|
|
1364
|
+
},
|
|
1365
|
+
},
|
|
1366
|
+
config: {
|
|
1367
|
+
default: {},
|
|
1368
|
+
type: "object",
|
|
1369
|
+
propertyNames: {
|
|
1370
|
+
type: "string",
|
|
1371
|
+
},
|
|
1372
|
+
additionalProperties: {},
|
|
1373
|
+
},
|
|
1374
|
+
icon: {
|
|
1375
|
+
type: "string",
|
|
1376
|
+
},
|
|
1377
|
+
},
|
|
1378
|
+
required: ["name", "platformId"],
|
|
1379
|
+
};
|
|
1380
|
+
export const PAccountUpdateRequestSchema = {
|
|
1381
|
+
description: "平台账户更新请求",
|
|
1382
|
+
type: "object",
|
|
1383
|
+
properties: {
|
|
1384
|
+
name: {
|
|
1385
|
+
type: "string",
|
|
1386
|
+
minLength: 1,
|
|
1387
|
+
},
|
|
1388
|
+
description: {
|
|
1389
|
+
type: "string",
|
|
1390
|
+
},
|
|
1391
|
+
platformId: {
|
|
1392
|
+
type: "string",
|
|
1393
|
+
minLength: 1,
|
|
1394
|
+
},
|
|
1395
|
+
enabled: {
|
|
1396
|
+
type: "boolean",
|
|
1397
|
+
},
|
|
1398
|
+
tags: {
|
|
1399
|
+
type: "array",
|
|
1400
|
+
items: {
|
|
1401
|
+
type: "string",
|
|
1402
|
+
},
|
|
1403
|
+
},
|
|
1404
|
+
config: {
|
|
1405
|
+
type: "object",
|
|
1406
|
+
propertyNames: {
|
|
1407
|
+
type: "string",
|
|
1408
|
+
},
|
|
1409
|
+
additionalProperties: {},
|
|
1410
|
+
},
|
|
1411
|
+
icon: {
|
|
1412
|
+
type: "string",
|
|
1413
|
+
},
|
|
1414
|
+
},
|
|
1415
|
+
};
|
|
1416
|
+
export const PlatformSchema = {
|
|
1417
|
+
description: "平台",
|
|
1418
|
+
type: "object",
|
|
1419
|
+
properties: {
|
|
1420
|
+
id: {
|
|
1421
|
+
type: "string",
|
|
1422
|
+
},
|
|
1423
|
+
name: {
|
|
1424
|
+
type: "string",
|
|
1425
|
+
},
|
|
1426
|
+
description: {
|
|
1427
|
+
type: "string",
|
|
1428
|
+
},
|
|
1429
|
+
url: {
|
|
1430
|
+
type: "string",
|
|
1431
|
+
},
|
|
1432
|
+
loginUrl: {
|
|
1433
|
+
type: "string",
|
|
1434
|
+
},
|
|
1435
|
+
type: {
|
|
1436
|
+
type: "string",
|
|
1437
|
+
},
|
|
1438
|
+
status: {
|
|
1439
|
+
type: "string",
|
|
1440
|
+
},
|
|
1441
|
+
config: {
|
|
1442
|
+
default: {},
|
|
1443
|
+
type: "object",
|
|
1444
|
+
propertyNames: {
|
|
1445
|
+
type: "string",
|
|
1446
|
+
},
|
|
1447
|
+
additionalProperties: {},
|
|
1448
|
+
},
|
|
1449
|
+
tags: {
|
|
1450
|
+
type: "array",
|
|
1451
|
+
items: {
|
|
1452
|
+
type: "string",
|
|
1453
|
+
},
|
|
1454
|
+
},
|
|
1455
|
+
createdAt: {
|
|
1456
|
+
type: "string",
|
|
1457
|
+
format: "date-time",
|
|
1458
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1459
|
+
},
|
|
1460
|
+
updatedAt: {
|
|
1461
|
+
type: "string",
|
|
1462
|
+
format: "date-time",
|
|
1463
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1464
|
+
},
|
|
1465
|
+
},
|
|
1466
|
+
required: ["id", "name", "createdAt", "updatedAt"],
|
|
1467
|
+
};
|
|
1468
|
+
export const PlatformGetRespSchema = {
|
|
1469
|
+
description: "平台获取响应",
|
|
1470
|
+
type: "object",
|
|
1471
|
+
properties: {
|
|
1472
|
+
id: {
|
|
1473
|
+
type: "string",
|
|
1474
|
+
},
|
|
1475
|
+
name: {
|
|
1476
|
+
type: "string",
|
|
1477
|
+
},
|
|
1478
|
+
description: {
|
|
1479
|
+
type: "string",
|
|
1480
|
+
},
|
|
1481
|
+
url: {
|
|
1482
|
+
type: "string",
|
|
1483
|
+
},
|
|
1484
|
+
loginUrl: {
|
|
1485
|
+
type: "string",
|
|
1486
|
+
},
|
|
1487
|
+
type: {
|
|
1488
|
+
type: "string",
|
|
1489
|
+
},
|
|
1490
|
+
status: {
|
|
1491
|
+
type: "string",
|
|
1492
|
+
},
|
|
1493
|
+
config: {
|
|
1494
|
+
default: {},
|
|
1495
|
+
type: "object",
|
|
1496
|
+
propertyNames: {
|
|
1497
|
+
type: "string",
|
|
1498
|
+
},
|
|
1499
|
+
additionalProperties: {},
|
|
1500
|
+
},
|
|
1501
|
+
tags: {
|
|
1502
|
+
type: "array",
|
|
1503
|
+
items: {
|
|
1504
|
+
type: "string",
|
|
1505
|
+
},
|
|
1506
|
+
},
|
|
1507
|
+
createdAt: {
|
|
1508
|
+
type: "string",
|
|
1509
|
+
format: "date-time",
|
|
1510
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1511
|
+
},
|
|
1512
|
+
updatedAt: {
|
|
1513
|
+
type: "string",
|
|
1514
|
+
format: "date-time",
|
|
1515
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1516
|
+
},
|
|
1517
|
+
},
|
|
1518
|
+
required: ["id", "name", "createdAt", "updatedAt"],
|
|
1519
|
+
};
|
|
1520
|
+
export const zPlatformCreateSchema = {
|
|
1521
|
+
description: "平台创建请求",
|
|
1522
|
+
type: "object",
|
|
1523
|
+
properties: {
|
|
1524
|
+
id: {
|
|
1525
|
+
type: "string",
|
|
1526
|
+
},
|
|
1527
|
+
name: {
|
|
1528
|
+
type: "string",
|
|
1529
|
+
minLength: 1,
|
|
1530
|
+
},
|
|
1531
|
+
description: {
|
|
1532
|
+
type: "string",
|
|
1533
|
+
},
|
|
1534
|
+
url: {
|
|
1535
|
+
type: "string",
|
|
1536
|
+
},
|
|
1537
|
+
loginUrl: {
|
|
1538
|
+
type: "string",
|
|
1539
|
+
},
|
|
1540
|
+
type: {
|
|
1541
|
+
type: "string",
|
|
1542
|
+
},
|
|
1543
|
+
status: {
|
|
1544
|
+
type: "string",
|
|
1545
|
+
},
|
|
1546
|
+
config: {
|
|
1547
|
+
default: {},
|
|
1548
|
+
type: "object",
|
|
1549
|
+
propertyNames: {
|
|
1550
|
+
type: "string",
|
|
1551
|
+
},
|
|
1552
|
+
additionalProperties: {},
|
|
1553
|
+
},
|
|
1554
|
+
tags: {
|
|
1555
|
+
type: "array",
|
|
1556
|
+
items: {
|
|
1557
|
+
type: "string",
|
|
1558
|
+
},
|
|
1559
|
+
},
|
|
1560
|
+
},
|
|
1561
|
+
required: ["name"],
|
|
1562
|
+
};
|
|
1563
|
+
export const ProxyGetRespSchema = {
|
|
1564
|
+
description: "代理获取响应",
|
|
1565
|
+
type: "object",
|
|
1566
|
+
properties: {
|
|
1567
|
+
id: {
|
|
1568
|
+
type: "string",
|
|
1569
|
+
},
|
|
1570
|
+
name: {
|
|
1571
|
+
type: "string",
|
|
1572
|
+
},
|
|
1573
|
+
description: {
|
|
1574
|
+
anyOf: [
|
|
1575
|
+
{
|
|
1576
|
+
type: "string",
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
type: "null",
|
|
1580
|
+
},
|
|
1581
|
+
],
|
|
1582
|
+
},
|
|
1583
|
+
url: {
|
|
1584
|
+
type: "string",
|
|
1585
|
+
},
|
|
1586
|
+
type: {
|
|
1587
|
+
type: "string",
|
|
1588
|
+
},
|
|
1589
|
+
provider: {
|
|
1590
|
+
type: "string",
|
|
1591
|
+
},
|
|
1592
|
+
detour: {
|
|
1593
|
+
anyOf: [
|
|
1594
|
+
{
|
|
1595
|
+
type: "string",
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
type: "null",
|
|
1599
|
+
},
|
|
1600
|
+
],
|
|
1601
|
+
},
|
|
1602
|
+
country_code: {
|
|
1603
|
+
type: "string",
|
|
1604
|
+
},
|
|
1605
|
+
port: {
|
|
1606
|
+
type: "number",
|
|
1607
|
+
},
|
|
1608
|
+
enabled: {
|
|
1609
|
+
type: "boolean",
|
|
1610
|
+
},
|
|
1611
|
+
created_at: {
|
|
1612
|
+
type: "string",
|
|
1613
|
+
format: "date-time",
|
|
1614
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1615
|
+
},
|
|
1616
|
+
updated_at: {
|
|
1617
|
+
type: "string",
|
|
1618
|
+
format: "date-time",
|
|
1619
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1620
|
+
},
|
|
1621
|
+
},
|
|
1622
|
+
required: ["id", "name", "url", "enabled"],
|
|
1623
|
+
};
|
|
1624
|
+
export const ProxyListRespSchema = {
|
|
1625
|
+
description: "代理列表响应",
|
|
1626
|
+
type: "object",
|
|
1627
|
+
properties: {
|
|
1628
|
+
paginate: {
|
|
1629
|
+
type: "object",
|
|
1630
|
+
properties: {
|
|
1631
|
+
total: {
|
|
1632
|
+
description: "Total number of records",
|
|
1633
|
+
type: "number",
|
|
1634
|
+
},
|
|
1635
|
+
page: {
|
|
1636
|
+
description: "Current page number",
|
|
1637
|
+
type: "number",
|
|
1638
|
+
},
|
|
1639
|
+
pageSize: {
|
|
1640
|
+
description: "Number of records per page",
|
|
1641
|
+
type: "number",
|
|
1642
|
+
},
|
|
1643
|
+
totalPages: {
|
|
1644
|
+
description: "Total number of pages",
|
|
1645
|
+
type: "number",
|
|
1646
|
+
},
|
|
1647
|
+
hasNext: {
|
|
1648
|
+
description: "Whether there is a next page",
|
|
1649
|
+
type: "boolean",
|
|
1650
|
+
},
|
|
1651
|
+
},
|
|
1652
|
+
required: ["total", "page", "pageSize", "totalPages", "hasNext"],
|
|
1653
|
+
},
|
|
1654
|
+
rows: {
|
|
1655
|
+
type: "array",
|
|
1656
|
+
items: {
|
|
1657
|
+
$ref: "#/components/schemas/ProxyGetResp",
|
|
1658
|
+
},
|
|
1659
|
+
},
|
|
1660
|
+
},
|
|
1661
|
+
required: ["paginate", "rows"],
|
|
1662
|
+
};
|
|
1663
|
+
export const ProxyUpsertRequestSchema = {
|
|
1664
|
+
description: "代理更新请求",
|
|
1665
|
+
type: "object",
|
|
1666
|
+
properties: {
|
|
1667
|
+
id: {
|
|
1668
|
+
type: "string",
|
|
1669
|
+
},
|
|
1670
|
+
name: {
|
|
1671
|
+
type: "string",
|
|
1672
|
+
minLength: 1,
|
|
1673
|
+
},
|
|
1674
|
+
description: {
|
|
1675
|
+
type: "string",
|
|
1676
|
+
},
|
|
1677
|
+
url: {
|
|
1678
|
+
type: "string",
|
|
1679
|
+
format: "uri",
|
|
1680
|
+
},
|
|
1681
|
+
detour: {
|
|
1682
|
+
type: "string",
|
|
1683
|
+
},
|
|
1684
|
+
},
|
|
1685
|
+
required: ["url"],
|
|
1686
|
+
};
|
|
1687
|
+
export const SandboxSchema = {
|
|
1688
|
+
description: "沙箱",
|
|
1689
|
+
type: "object",
|
|
1690
|
+
properties: {
|
|
1691
|
+
id: {
|
|
1692
|
+
type: "string",
|
|
1693
|
+
},
|
|
1694
|
+
createdAt: {
|
|
1695
|
+
type: "string",
|
|
1696
|
+
format: "date-time",
|
|
1697
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1698
|
+
},
|
|
1699
|
+
updatedAt: {
|
|
1700
|
+
type: "string",
|
|
1701
|
+
format: "date-time",
|
|
1702
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1703
|
+
},
|
|
1704
|
+
deletedAt: {
|
|
1705
|
+
type: "string",
|
|
1706
|
+
format: "date-time",
|
|
1707
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
1708
|
+
},
|
|
1709
|
+
organizationId: {
|
|
1710
|
+
type: "string",
|
|
1711
|
+
},
|
|
1712
|
+
name: {
|
|
1713
|
+
type: "string",
|
|
1714
|
+
},
|
|
1715
|
+
description: {
|
|
1716
|
+
type: "string",
|
|
1717
|
+
},
|
|
1718
|
+
deployType: {
|
|
1719
|
+
type: "string",
|
|
1720
|
+
},
|
|
1721
|
+
serverUrl: {
|
|
1722
|
+
type: "string",
|
|
1723
|
+
},
|
|
1724
|
+
status: {
|
|
1725
|
+
type: "string",
|
|
1726
|
+
},
|
|
1727
|
+
state: {
|
|
1728
|
+
default: {},
|
|
1729
|
+
},
|
|
1730
|
+
config: {
|
|
1731
|
+
default: {},
|
|
1732
|
+
},
|
|
1733
|
+
},
|
|
1734
|
+
required: [
|
|
1735
|
+
"id",
|
|
1736
|
+
"createdAt",
|
|
1737
|
+
"updatedAt",
|
|
1738
|
+
"organizationId",
|
|
1739
|
+
"name",
|
|
1740
|
+
"description",
|
|
1741
|
+
"deployType",
|
|
1742
|
+
"serverUrl",
|
|
1743
|
+
"status",
|
|
1744
|
+
],
|
|
1745
|
+
};
|
|
1746
|
+
export const SandboxListSchema = {
|
|
1747
|
+
description: "沙箱列表响应",
|
|
1748
|
+
type: "object",
|
|
1749
|
+
properties: {
|
|
1750
|
+
services: {
|
|
1751
|
+
type: "array",
|
|
1752
|
+
items: {
|
|
1753
|
+
$ref: "#/components/schemas/Sandbox",
|
|
1754
|
+
},
|
|
1755
|
+
},
|
|
1756
|
+
total: {
|
|
1757
|
+
type: "number",
|
|
1758
|
+
},
|
|
1759
|
+
},
|
|
1760
|
+
required: ["services", "total"],
|
|
1761
|
+
};
|
|
1762
|
+
export const SandboxGetSchema = {
|
|
1763
|
+
description: "沙箱获取响应",
|
|
1764
|
+
type: "object",
|
|
1765
|
+
properties: {
|
|
1766
|
+
service: {
|
|
1767
|
+
$ref: "#/components/schemas/Sandbox",
|
|
1768
|
+
},
|
|
1769
|
+
},
|
|
1770
|
+
};
|
|
1771
|
+
export const SandboxStartSchema = {
|
|
1772
|
+
description: "沙箱启动响应",
|
|
1773
|
+
type: "object",
|
|
1774
|
+
properties: {
|
|
1775
|
+
message: {
|
|
1776
|
+
type: "string",
|
|
1777
|
+
},
|
|
1778
|
+
serviceId: {
|
|
1779
|
+
type: "string",
|
|
1780
|
+
},
|
|
1781
|
+
},
|
|
1782
|
+
required: ["message", "serviceId"],
|
|
1783
|
+
};
|
|
1784
|
+
export const NavItemChildSchema = {
|
|
1785
|
+
description: "导航菜单子项",
|
|
1786
|
+
type: "object",
|
|
1787
|
+
properties: {
|
|
1788
|
+
title: {
|
|
1789
|
+
type: "string",
|
|
1790
|
+
},
|
|
1791
|
+
url: {
|
|
1792
|
+
type: "string",
|
|
1793
|
+
},
|
|
1794
|
+
icon: {
|
|
1795
|
+
type: "string",
|
|
1796
|
+
},
|
|
1797
|
+
debugOnly: {
|
|
1798
|
+
type: "boolean",
|
|
1799
|
+
},
|
|
1800
|
+
badge: {
|
|
1801
|
+
type: "string",
|
|
1802
|
+
},
|
|
1803
|
+
roles: {
|
|
1804
|
+
type: "array",
|
|
1805
|
+
items: {
|
|
1806
|
+
type: "string",
|
|
1807
|
+
},
|
|
1808
|
+
},
|
|
1809
|
+
},
|
|
1810
|
+
required: ["title"],
|
|
1811
|
+
};
|
|
1812
|
+
export const NavItemSchema = {
|
|
1813
|
+
description: "导航菜单项",
|
|
1814
|
+
type: "object",
|
|
1815
|
+
properties: {
|
|
1816
|
+
title: {
|
|
1817
|
+
type: "string",
|
|
1818
|
+
},
|
|
1819
|
+
url: {
|
|
1820
|
+
type: "string",
|
|
1821
|
+
},
|
|
1822
|
+
icon: {
|
|
1823
|
+
type: "string",
|
|
1824
|
+
},
|
|
1825
|
+
debugOnly: {
|
|
1826
|
+
type: "boolean",
|
|
1827
|
+
},
|
|
1828
|
+
badge: {
|
|
1829
|
+
type: "string",
|
|
1830
|
+
},
|
|
1831
|
+
roles: {
|
|
1832
|
+
type: "array",
|
|
1833
|
+
items: {
|
|
1834
|
+
type: "string",
|
|
1835
|
+
},
|
|
1836
|
+
},
|
|
1837
|
+
children: {
|
|
1838
|
+
type: "array",
|
|
1839
|
+
items: {
|
|
1840
|
+
$ref: "#/components/schemas/NavItemChild",
|
|
1841
|
+
},
|
|
1842
|
+
},
|
|
1843
|
+
},
|
|
1844
|
+
required: ["title"],
|
|
1845
|
+
};
|
|
1846
|
+
export const DashUiResponseSchema = {
|
|
1847
|
+
description: "DashUI响应",
|
|
1848
|
+
type: "object",
|
|
1849
|
+
properties: {
|
|
1850
|
+
navItems: {
|
|
1851
|
+
type: "array",
|
|
1852
|
+
items: {
|
|
1853
|
+
$ref: "#/components/schemas/NavItem",
|
|
1854
|
+
},
|
|
1855
|
+
},
|
|
1856
|
+
},
|
|
1857
|
+
required: ["navItems"],
|
|
1858
|
+
};
|
|
1859
|
+
export const OrganizationSchema = {
|
|
1860
|
+
description: "Organization",
|
|
1861
|
+
type: "object",
|
|
1862
|
+
properties: {
|
|
1863
|
+
id: {
|
|
1864
|
+
type: "string",
|
|
1865
|
+
},
|
|
1866
|
+
name: {
|
|
1867
|
+
type: "string",
|
|
1868
|
+
minLength: 1,
|
|
1869
|
+
maxLength: 100,
|
|
1870
|
+
},
|
|
1871
|
+
slug: {
|
|
1872
|
+
type: "string",
|
|
1873
|
+
minLength: 1,
|
|
1874
|
+
maxLength: 50,
|
|
1875
|
+
},
|
|
1876
|
+
logo: {
|
|
1877
|
+
type: "string",
|
|
1878
|
+
},
|
|
1879
|
+
metadata: {
|
|
1880
|
+
type: "object",
|
|
1881
|
+
propertyNames: {
|
|
1882
|
+
type: "string",
|
|
1883
|
+
},
|
|
1884
|
+
additionalProperties: {},
|
|
1885
|
+
},
|
|
1886
|
+
createdAt: {
|
|
1887
|
+
type: "string",
|
|
1888
|
+
},
|
|
1889
|
+
updatedAt: {
|
|
1890
|
+
type: "string",
|
|
1891
|
+
},
|
|
1892
|
+
},
|
|
1893
|
+
required: ["id", "name", "slug", "createdAt", "updatedAt"],
|
|
1894
|
+
};
|
|
1895
|
+
export const OrganizationCreateRequestSchema = {
|
|
1896
|
+
description: "OrganizationCreateRequest",
|
|
1897
|
+
type: "object",
|
|
1898
|
+
properties: {
|
|
1899
|
+
name: {
|
|
1900
|
+
type: "string",
|
|
1901
|
+
minLength: 1,
|
|
1902
|
+
maxLength: 100,
|
|
1903
|
+
},
|
|
1904
|
+
slug: {
|
|
1905
|
+
type: "string",
|
|
1906
|
+
minLength: 1,
|
|
1907
|
+
maxLength: 50,
|
|
1908
|
+
},
|
|
1909
|
+
logo: {
|
|
1910
|
+
type: "string",
|
|
1911
|
+
},
|
|
1912
|
+
metadata: {
|
|
1913
|
+
type: "object",
|
|
1914
|
+
propertyNames: {
|
|
1915
|
+
type: "string",
|
|
1916
|
+
},
|
|
1917
|
+
additionalProperties: {},
|
|
1918
|
+
},
|
|
1919
|
+
},
|
|
1920
|
+
required: ["name", "slug"],
|
|
1921
|
+
};
|
|
1922
|
+
export const OrganizationUpdateRequestSchema = {
|
|
1923
|
+
description: "OrganizationUpdateRequest",
|
|
1924
|
+
type: "object",
|
|
1925
|
+
properties: {
|
|
1926
|
+
name: {
|
|
1927
|
+
type: "string",
|
|
1928
|
+
minLength: 1,
|
|
1929
|
+
maxLength: 100,
|
|
1930
|
+
},
|
|
1931
|
+
logo: {
|
|
1932
|
+
type: "string",
|
|
1933
|
+
},
|
|
1934
|
+
metadata: {
|
|
1935
|
+
type: "object",
|
|
1936
|
+
propertyNames: {
|
|
1937
|
+
type: "string",
|
|
1938
|
+
},
|
|
1939
|
+
additionalProperties: {},
|
|
1940
|
+
},
|
|
1941
|
+
},
|
|
1942
|
+
};
|
|
1943
|
+
export const InvitationSchema = {
|
|
1944
|
+
description: "Invitation",
|
|
1945
|
+
type: "object",
|
|
1946
|
+
properties: {
|
|
1947
|
+
id: {
|
|
1948
|
+
type: "string",
|
|
1949
|
+
},
|
|
1950
|
+
organizationId: {
|
|
1951
|
+
type: "string",
|
|
1952
|
+
},
|
|
1953
|
+
email: {
|
|
1954
|
+
type: "string",
|
|
1955
|
+
format: "email",
|
|
1956
|
+
pattern: "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
|
1957
|
+
},
|
|
1958
|
+
role: {
|
|
1959
|
+
type: "string",
|
|
1960
|
+
enum: ["admin", "member"],
|
|
1961
|
+
},
|
|
1962
|
+
status: {
|
|
1963
|
+
type: "string",
|
|
1964
|
+
enum: ["pending", "accepted", "rejected", "cancelled"],
|
|
1965
|
+
},
|
|
1966
|
+
inviterId: {
|
|
1967
|
+
type: "string",
|
|
1968
|
+
},
|
|
1969
|
+
expiresAt: {
|
|
1970
|
+
type: "string",
|
|
1971
|
+
},
|
|
1972
|
+
createdAt: {
|
|
1973
|
+
type: "string",
|
|
1974
|
+
},
|
|
1975
|
+
updatedAt: {
|
|
1976
|
+
type: "string",
|
|
1977
|
+
},
|
|
1978
|
+
},
|
|
1979
|
+
required: [
|
|
1980
|
+
"id",
|
|
1981
|
+
"organizationId",
|
|
1982
|
+
"email",
|
|
1983
|
+
"role",
|
|
1984
|
+
"status",
|
|
1985
|
+
"inviterId",
|
|
1986
|
+
"expiresAt",
|
|
1987
|
+
"createdAt",
|
|
1988
|
+
"updatedAt",
|
|
1989
|
+
],
|
|
436
1990
|
};
|
|
437
|
-
export const
|
|
1991
|
+
export const InviteRequestSchema = {
|
|
1992
|
+
description: "InviteRequest",
|
|
438
1993
|
type: "object",
|
|
439
1994
|
properties: {
|
|
440
|
-
|
|
1995
|
+
email: {
|
|
441
1996
|
type: "string",
|
|
1997
|
+
format: "email",
|
|
1998
|
+
pattern: "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$",
|
|
442
1999
|
},
|
|
443
|
-
|
|
2000
|
+
role: {
|
|
2001
|
+
default: "member",
|
|
444
2002
|
type: "string",
|
|
2003
|
+
enum: ["admin", "member"],
|
|
445
2004
|
},
|
|
446
|
-
|
|
2005
|
+
organizationId: {
|
|
447
2006
|
type: "string",
|
|
448
2007
|
},
|
|
449
|
-
|
|
2008
|
+
},
|
|
2009
|
+
required: ["email"],
|
|
2010
|
+
};
|
|
2011
|
+
export const MemberSchema = {
|
|
2012
|
+
description: "Member",
|
|
2013
|
+
type: "object",
|
|
2014
|
+
properties: {
|
|
2015
|
+
id: {
|
|
450
2016
|
type: "string",
|
|
451
|
-
nullable: true,
|
|
452
2017
|
},
|
|
453
2018
|
organizationId: {
|
|
454
2019
|
type: "string",
|
|
455
2020
|
},
|
|
456
|
-
|
|
457
|
-
type: "string",
|
|
458
|
-
},
|
|
459
|
-
description: {
|
|
2021
|
+
userId: {
|
|
460
2022
|
type: "string",
|
|
461
2023
|
},
|
|
462
|
-
|
|
2024
|
+
role: {
|
|
463
2025
|
type: "string",
|
|
2026
|
+
enum: ["owner", "admin", "member"],
|
|
464
2027
|
},
|
|
465
|
-
|
|
2028
|
+
createdAt: {
|
|
466
2029
|
type: "string",
|
|
467
2030
|
},
|
|
468
|
-
|
|
2031
|
+
updatedAt: {
|
|
469
2032
|
type: "string",
|
|
470
2033
|
},
|
|
471
|
-
state: {
|
|
472
|
-
type: "object",
|
|
473
|
-
additionalProperties: {
|
|
474
|
-
nullable: true,
|
|
475
|
-
},
|
|
476
|
-
},
|
|
477
|
-
config: {
|
|
478
|
-
type: "object",
|
|
479
|
-
additionalProperties: {
|
|
480
|
-
nullable: true,
|
|
481
|
-
},
|
|
482
|
-
},
|
|
483
2034
|
},
|
|
484
2035
|
required: [
|
|
485
2036
|
"id",
|
|
2037
|
+
"organizationId",
|
|
2038
|
+
"userId",
|
|
2039
|
+
"role",
|
|
486
2040
|
"createdAt",
|
|
487
2041
|
"updatedAt",
|
|
488
|
-
"organizationId",
|
|
489
|
-
"name",
|
|
490
|
-
"description",
|
|
491
|
-
"deployType",
|
|
492
|
-
"serverUrl",
|
|
493
|
-
"status",
|
|
494
|
-
"state",
|
|
495
|
-
"config",
|
|
496
2042
|
],
|
|
497
2043
|
};
|
|
498
|
-
export const
|
|
2044
|
+
export const UpdateMemberRoleRequestSchema = {
|
|
2045
|
+
description: "UpdateMemberRoleRequest",
|
|
499
2046
|
type: "object",
|
|
500
2047
|
properties: {
|
|
501
|
-
|
|
502
|
-
type: "
|
|
503
|
-
|
|
504
|
-
$ref: "#/components/schemas/Sandbox",
|
|
505
|
-
},
|
|
506
|
-
},
|
|
507
|
-
total: {
|
|
508
|
-
type: "number",
|
|
2048
|
+
role: {
|
|
2049
|
+
type: "string",
|
|
2050
|
+
enum: ["admin", "member"],
|
|
509
2051
|
},
|
|
510
2052
|
},
|
|
511
|
-
required: ["
|
|
2053
|
+
required: ["role"],
|
|
512
2054
|
};
|
|
513
|
-
export const
|
|
2055
|
+
export const SysConfigRespSchema = {
|
|
2056
|
+
description: "系统配置响应",
|
|
514
2057
|
type: "object",
|
|
515
2058
|
properties: {
|
|
516
|
-
|
|
517
|
-
|
|
2059
|
+
len: {
|
|
2060
|
+
description: "用户数量",
|
|
2061
|
+
type: "number",
|
|
518
2062
|
},
|
|
519
2063
|
},
|
|
2064
|
+
required: ["len"],
|
|
520
2065
|
};
|
|
521
|
-
export const
|
|
2066
|
+
export const SystemConfigValueSchema = {
|
|
2067
|
+
description: "系统配置值",
|
|
522
2068
|
type: "object",
|
|
523
2069
|
properties: {
|
|
524
|
-
|
|
525
|
-
type: "
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
2070
|
+
hatchet: {
|
|
2071
|
+
type: "object",
|
|
2072
|
+
properties: {
|
|
2073
|
+
serverUrl: {
|
|
2074
|
+
type: "string",
|
|
2075
|
+
format: "uri",
|
|
2076
|
+
},
|
|
2077
|
+
token: {
|
|
2078
|
+
type: "string",
|
|
2079
|
+
},
|
|
2080
|
+
},
|
|
529
2081
|
},
|
|
530
2082
|
},
|
|
531
|
-
required: ["message", "serviceId"],
|
|
532
2083
|
};
|
|
533
|
-
export const
|
|
2084
|
+
export const SystemConfigResponseSchema = {
|
|
2085
|
+
description: "系统配置响应",
|
|
534
2086
|
type: "object",
|
|
535
2087
|
properties: {
|
|
536
|
-
|
|
2088
|
+
id: {
|
|
2089
|
+
description: "配置ID",
|
|
537
2090
|
type: "string",
|
|
538
|
-
description: "菜单标题",
|
|
539
2091
|
},
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
description: "菜单链接",
|
|
2092
|
+
value: {
|
|
2093
|
+
$ref: "#/components/schemas/SystemConfigValue",
|
|
543
2094
|
},
|
|
544
|
-
|
|
2095
|
+
createdAt: {
|
|
2096
|
+
description: "创建时间",
|
|
545
2097
|
type: "string",
|
|
546
|
-
description: "图标名称",
|
|
547
2098
|
},
|
|
548
|
-
|
|
2099
|
+
updatedAt: {
|
|
2100
|
+
description: "更新时间",
|
|
549
2101
|
type: "string",
|
|
550
|
-
description: "徽章文本",
|
|
551
|
-
},
|
|
552
|
-
debugOnly: {
|
|
553
|
-
type: "boolean",
|
|
554
|
-
description: "是否仅在调试模式下显示",
|
|
555
|
-
},
|
|
556
|
-
roles: {
|
|
557
|
-
type: "array",
|
|
558
|
-
items: {
|
|
559
|
-
type: "string",
|
|
560
|
-
},
|
|
561
|
-
description: "允许访问此菜单项的角色列表",
|
|
562
|
-
},
|
|
563
|
-
children: {
|
|
564
|
-
type: "array",
|
|
565
|
-
items: {
|
|
566
|
-
$ref: "#/components/schemas/NavItem",
|
|
567
|
-
},
|
|
568
|
-
description: "子菜单项",
|
|
569
2102
|
},
|
|
570
2103
|
},
|
|
571
|
-
required: ["
|
|
572
|
-
description: "导航菜单项",
|
|
2104
|
+
required: ["id", "value", "createdAt", "updatedAt"],
|
|
573
2105
|
};
|
|
574
2106
|
export const SingboxConfigSchema = {
|
|
2107
|
+
description: "SingboxConfig",
|
|
575
2108
|
type: "object",
|
|
576
2109
|
properties: {
|
|
577
2110
|
configUrl: {
|
|
578
2111
|
type: "string",
|
|
579
2112
|
},
|
|
580
2113
|
containerOnly: {
|
|
581
|
-
type: "boolean",
|
|
582
2114
|
default: false,
|
|
2115
|
+
type: "boolean",
|
|
583
2116
|
},
|
|
584
2117
|
},
|
|
585
2118
|
};
|
|
586
2119
|
export const TunnelConfigSchema = {
|
|
2120
|
+
description: "TunnelConfig",
|
|
587
2121
|
type: "object",
|
|
588
2122
|
properties: {
|
|
589
2123
|
cloudflareToken: {
|
|
2124
|
+
default: "",
|
|
590
2125
|
type: "string",
|
|
591
|
-
minLength: 1,
|
|
592
2126
|
},
|
|
593
2127
|
tunnelName: {
|
|
594
2128
|
type: "string",
|
|
@@ -602,9 +2136,10 @@ export const TunnelConfigSchema = {
|
|
|
602
2136
|
$ref: "#/components/schemas/SingboxConfig",
|
|
603
2137
|
},
|
|
604
2138
|
},
|
|
605
|
-
required: ["
|
|
2139
|
+
required: ["localPort", "singbox"],
|
|
606
2140
|
};
|
|
607
2141
|
export const OnionConfigSchema = {
|
|
2142
|
+
description: "OnionConfig",
|
|
608
2143
|
type: "object",
|
|
609
2144
|
properties: {
|
|
610
2145
|
privateKey: {
|
|
@@ -613,19 +2148,20 @@ export const OnionConfigSchema = {
|
|
|
613
2148
|
},
|
|
614
2149
|
};
|
|
615
2150
|
export const VncServiceSchema = {
|
|
2151
|
+
description: "VncService",
|
|
616
2152
|
type: "object",
|
|
617
2153
|
properties: {
|
|
618
2154
|
enabled: {
|
|
619
|
-
type: "boolean",
|
|
620
2155
|
default: false,
|
|
2156
|
+
type: "boolean",
|
|
621
2157
|
},
|
|
622
2158
|
port: {
|
|
623
|
-
type: "number",
|
|
624
2159
|
default: 8444,
|
|
2160
|
+
type: "number",
|
|
625
2161
|
},
|
|
626
2162
|
display: {
|
|
627
|
-
type: "string",
|
|
628
2163
|
default: ":1",
|
|
2164
|
+
type: "string",
|
|
629
2165
|
},
|
|
630
2166
|
password: {
|
|
631
2167
|
type: "string",
|
|
@@ -641,32 +2177,17 @@ export const VncServiceSchema = {
|
|
|
641
2177
|
},
|
|
642
2178
|
},
|
|
643
2179
|
};
|
|
644
|
-
export const HelloOnionWebServiceSchema = {
|
|
645
|
-
type: "object",
|
|
646
|
-
properties: {
|
|
647
|
-
enabled: {
|
|
648
|
-
type: "boolean",
|
|
649
|
-
default: false,
|
|
650
|
-
},
|
|
651
|
-
port: {
|
|
652
|
-
type: "number",
|
|
653
|
-
default: 8053,
|
|
654
|
-
},
|
|
655
|
-
onionConfig: {
|
|
656
|
-
$ref: "#/components/schemas/OnionConfig",
|
|
657
|
-
},
|
|
658
|
-
},
|
|
659
|
-
};
|
|
660
2180
|
export const MainApiServiceSchema = {
|
|
2181
|
+
description: "MainApiService",
|
|
661
2182
|
type: "object",
|
|
662
2183
|
properties: {
|
|
663
2184
|
enabled: {
|
|
664
|
-
type: "boolean",
|
|
665
2185
|
default: false,
|
|
2186
|
+
type: "boolean",
|
|
666
2187
|
},
|
|
667
2188
|
port: {
|
|
668
|
-
type: "number",
|
|
669
2189
|
default: 8000,
|
|
2190
|
+
type: "number",
|
|
670
2191
|
},
|
|
671
2192
|
onionConfig: {
|
|
672
2193
|
$ref: "#/components/schemas/OnionConfig",
|
|
@@ -674,6 +2195,7 @@ export const MainApiServiceSchema = {
|
|
|
674
2195
|
},
|
|
675
2196
|
};
|
|
676
2197
|
export const GomtmConfigSchema = {
|
|
2198
|
+
description: "GomtmConfig",
|
|
677
2199
|
type: "object",
|
|
678
2200
|
properties: {
|
|
679
2201
|
tunnel: {
|
|
@@ -682,15 +2204,46 @@ export const GomtmConfigSchema = {
|
|
|
682
2204
|
vnc: {
|
|
683
2205
|
$ref: "#/components/schemas/VncService",
|
|
684
2206
|
},
|
|
685
|
-
helloOnionWeb: {
|
|
686
|
-
$ref: "#/components/schemas/HelloOnionWebService",
|
|
687
|
-
},
|
|
688
2207
|
mainApi: {
|
|
689
2208
|
$ref: "#/components/schemas/MainApiService",
|
|
690
2209
|
},
|
|
2210
|
+
mtproxy: {
|
|
2211
|
+
$ref: "#/components/schemas/MtproxyService",
|
|
2212
|
+
},
|
|
2213
|
+
},
|
|
2214
|
+
};
|
|
2215
|
+
export const MtgateProfileSchema = {
|
|
2216
|
+
description: "Mtgate配置文件",
|
|
2217
|
+
type: "object",
|
|
2218
|
+
properties: {
|
|
2219
|
+
id: {
|
|
2220
|
+
type: "string",
|
|
2221
|
+
},
|
|
2222
|
+
description: {
|
|
2223
|
+
type: "string",
|
|
2224
|
+
},
|
|
2225
|
+
config: {
|
|
2226
|
+
$ref: "#/components/schemas/GomtmConfig",
|
|
2227
|
+
},
|
|
2228
|
+
isDefault: {
|
|
2229
|
+
default: false,
|
|
2230
|
+
type: "boolean",
|
|
2231
|
+
},
|
|
2232
|
+
createdAt: {
|
|
2233
|
+
type: "string",
|
|
2234
|
+
format: "date-time",
|
|
2235
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
2236
|
+
},
|
|
2237
|
+
updatedAt: {
|
|
2238
|
+
type: "string",
|
|
2239
|
+
format: "date-time",
|
|
2240
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
2241
|
+
},
|
|
691
2242
|
},
|
|
2243
|
+
required: ["id", "config", "createdAt", "updatedAt"],
|
|
692
2244
|
};
|
|
693
2245
|
export const SiteSchema = {
|
|
2246
|
+
description: "站点",
|
|
694
2247
|
type: "object",
|
|
695
2248
|
properties: {
|
|
696
2249
|
id: {
|
|
@@ -716,9 +2269,10 @@ export const SiteSchema = {
|
|
|
716
2269
|
},
|
|
717
2270
|
state: {
|
|
718
2271
|
type: "object",
|
|
719
|
-
|
|
720
|
-
|
|
2272
|
+
propertyNames: {
|
|
2273
|
+
type: "string",
|
|
721
2274
|
},
|
|
2275
|
+
additionalProperties: {},
|
|
722
2276
|
},
|
|
723
2277
|
automationEnabled: {
|
|
724
2278
|
type: "boolean",
|
|
@@ -734,28 +2288,8 @@ export const SiteSchema = {
|
|
|
734
2288
|
"automationEnabled",
|
|
735
2289
|
],
|
|
736
2290
|
};
|
|
737
|
-
export const SiteListSchema = {
|
|
738
|
-
type: "object",
|
|
739
|
-
properties: {
|
|
740
|
-
sites: {
|
|
741
|
-
type: "array",
|
|
742
|
-
items: {
|
|
743
|
-
$ref: "#/components/schemas/Site",
|
|
744
|
-
},
|
|
745
|
-
},
|
|
746
|
-
total: {
|
|
747
|
-
type: "number",
|
|
748
|
-
},
|
|
749
|
-
limit: {
|
|
750
|
-
type: "number",
|
|
751
|
-
},
|
|
752
|
-
offset: {
|
|
753
|
-
type: "number",
|
|
754
|
-
},
|
|
755
|
-
},
|
|
756
|
-
required: ["sites", "total", "limit", "offset"],
|
|
757
|
-
};
|
|
758
2291
|
export const SiteCreateRequestSchema = {
|
|
2292
|
+
description: "站点创建请求",
|
|
759
2293
|
type: "object",
|
|
760
2294
|
properties: {
|
|
761
2295
|
title: {
|
|
@@ -766,19 +2300,20 @@ export const SiteCreateRequestSchema = {
|
|
|
766
2300
|
type: "string",
|
|
767
2301
|
},
|
|
768
2302
|
enabled: {
|
|
769
|
-
type: "boolean",
|
|
770
2303
|
default: true,
|
|
2304
|
+
type: "boolean",
|
|
771
2305
|
},
|
|
772
2306
|
automationEnabled: {
|
|
773
|
-
type: "boolean",
|
|
774
2307
|
default: false,
|
|
2308
|
+
type: "boolean",
|
|
775
2309
|
},
|
|
776
2310
|
state: {
|
|
2311
|
+
default: {},
|
|
777
2312
|
type: "object",
|
|
778
|
-
|
|
779
|
-
|
|
2313
|
+
propertyNames: {
|
|
2314
|
+
type: "string",
|
|
780
2315
|
},
|
|
781
|
-
|
|
2316
|
+
additionalProperties: {},
|
|
782
2317
|
},
|
|
783
2318
|
organizationId: {
|
|
784
2319
|
type: "string",
|
|
@@ -787,6 +2322,7 @@ export const SiteCreateRequestSchema = {
|
|
|
787
2322
|
required: ["title", "organizationId"],
|
|
788
2323
|
};
|
|
789
2324
|
export const SiteUpdateRequestSchema = {
|
|
2325
|
+
description: "站点更新请求",
|
|
790
2326
|
type: "object",
|
|
791
2327
|
properties: {
|
|
792
2328
|
id: {
|
|
@@ -807,9 +2343,10 @@ export const SiteUpdateRequestSchema = {
|
|
|
807
2343
|
},
|
|
808
2344
|
state: {
|
|
809
2345
|
type: "object",
|
|
810
|
-
|
|
811
|
-
|
|
2346
|
+
propertyNames: {
|
|
2347
|
+
type: "string",
|
|
812
2348
|
},
|
|
2349
|
+
additionalProperties: {},
|
|
813
2350
|
},
|
|
814
2351
|
tenantId: {
|
|
815
2352
|
type: "string",
|
|
@@ -818,6 +2355,7 @@ export const SiteUpdateRequestSchema = {
|
|
|
818
2355
|
required: ["id", "tenantId"],
|
|
819
2356
|
};
|
|
820
2357
|
export const BlogPostSchema = {
|
|
2358
|
+
description: "博客文章",
|
|
821
2359
|
type: "object",
|
|
822
2360
|
properties: {
|
|
823
2361
|
id: {
|
|
@@ -825,9 +2363,13 @@ export const BlogPostSchema = {
|
|
|
825
2363
|
},
|
|
826
2364
|
createdAt: {
|
|
827
2365
|
type: "string",
|
|
2366
|
+
format: "date-time",
|
|
2367
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
828
2368
|
},
|
|
829
2369
|
updatedAt: {
|
|
830
2370
|
type: "string",
|
|
2371
|
+
format: "date-time",
|
|
2372
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
831
2373
|
},
|
|
832
2374
|
title: {
|
|
833
2375
|
type: "string",
|
|
@@ -849,6 +2391,8 @@ export const BlogPostSchema = {
|
|
|
849
2391
|
},
|
|
850
2392
|
publishDate: {
|
|
851
2393
|
type: "string",
|
|
2394
|
+
format: "date-time",
|
|
2395
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
852
2396
|
},
|
|
853
2397
|
siteId: {
|
|
854
2398
|
type: "string",
|
|
@@ -867,6 +2411,8 @@ export const BlogPostSchema = {
|
|
|
867
2411
|
},
|
|
868
2412
|
deletedAt: {
|
|
869
2413
|
type: "string",
|
|
2414
|
+
format: "date-time",
|
|
2415
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
870
2416
|
},
|
|
871
2417
|
parentPostId: {
|
|
872
2418
|
type: "string",
|
|
@@ -897,28 +2443,8 @@ export const BlogPostSchema = {
|
|
|
897
2443
|
"authorId",
|
|
898
2444
|
],
|
|
899
2445
|
};
|
|
900
|
-
export const BlogPostListSchema = {
|
|
901
|
-
type: "object",
|
|
902
|
-
properties: {
|
|
903
|
-
posts: {
|
|
904
|
-
type: "array",
|
|
905
|
-
items: {
|
|
906
|
-
$ref: "#/components/schemas/BlogPost",
|
|
907
|
-
},
|
|
908
|
-
},
|
|
909
|
-
total: {
|
|
910
|
-
type: "number",
|
|
911
|
-
},
|
|
912
|
-
limit: {
|
|
913
|
-
type: "number",
|
|
914
|
-
},
|
|
915
|
-
offset: {
|
|
916
|
-
type: "number",
|
|
917
|
-
},
|
|
918
|
-
},
|
|
919
|
-
required: ["posts", "total", "limit", "offset"],
|
|
920
|
-
};
|
|
921
2446
|
export const BlogPostCreateSchema = {
|
|
2447
|
+
description: "创建博客文章请求",
|
|
922
2448
|
type: "object",
|
|
923
2449
|
properties: {
|
|
924
2450
|
title: {
|
|
@@ -936,12 +2462,12 @@ export const BlogPostCreateSchema = {
|
|
|
936
2462
|
type: "string",
|
|
937
2463
|
},
|
|
938
2464
|
status: {
|
|
939
|
-
type: "string",
|
|
940
2465
|
default: "DRAFT",
|
|
2466
|
+
type: "string",
|
|
941
2467
|
},
|
|
942
2468
|
state: {
|
|
943
|
-
type: "string",
|
|
944
2469
|
default: "QUEUE",
|
|
2470
|
+
type: "string",
|
|
945
2471
|
},
|
|
946
2472
|
publishDate: {
|
|
947
2473
|
type: "string",
|
|
@@ -960,6 +2486,7 @@ export const BlogPostCreateSchema = {
|
|
|
960
2486
|
required: ["content", "siteId"],
|
|
961
2487
|
};
|
|
962
2488
|
export const BlogPostUpdateSchema = {
|
|
2489
|
+
description: "更新博客文章请求",
|
|
963
2490
|
type: "object",
|
|
964
2491
|
properties: {
|
|
965
2492
|
title: {
|
|
@@ -992,7 +2519,30 @@ export const BlogPostUpdateSchema = {
|
|
|
992
2519
|
},
|
|
993
2520
|
},
|
|
994
2521
|
};
|
|
2522
|
+
export const SiteHostSchema = {
|
|
2523
|
+
description: "SiteHost",
|
|
2524
|
+
type: "object",
|
|
2525
|
+
properties: {
|
|
2526
|
+
id: {
|
|
2527
|
+
type: "string",
|
|
2528
|
+
},
|
|
2529
|
+
siteId: {
|
|
2530
|
+
type: "string",
|
|
2531
|
+
},
|
|
2532
|
+
host: {
|
|
2533
|
+
type: "string",
|
|
2534
|
+
},
|
|
2535
|
+
createdAt: {
|
|
2536
|
+
type: "string",
|
|
2537
|
+
},
|
|
2538
|
+
updatedAt: {
|
|
2539
|
+
type: "string",
|
|
2540
|
+
},
|
|
2541
|
+
},
|
|
2542
|
+
required: ["id", "siteId", "host", "createdAt", "updatedAt"],
|
|
2543
|
+
};
|
|
995
2544
|
export const SiteHostCreateRequestSchema = {
|
|
2545
|
+
description: "SiteHostCreateRequest",
|
|
996
2546
|
type: "object",
|
|
997
2547
|
properties: {
|
|
998
2548
|
host: {
|
|
@@ -1003,13 +2553,16 @@ export const SiteHostCreateRequestSchema = {
|
|
|
1003
2553
|
required: ["host"],
|
|
1004
2554
|
};
|
|
1005
2555
|
export const AdkSessionStateSchema = {
|
|
2556
|
+
default: {},
|
|
2557
|
+
description: "ADK会话状态",
|
|
1006
2558
|
type: "object",
|
|
1007
|
-
|
|
1008
|
-
|
|
2559
|
+
propertyNames: {
|
|
2560
|
+
type: "string",
|
|
1009
2561
|
},
|
|
1010
|
-
|
|
2562
|
+
additionalProperties: {},
|
|
1011
2563
|
};
|
|
1012
2564
|
export const AdkSessionSchema = {
|
|
2565
|
+
description: "ADK会话",
|
|
1013
2566
|
type: "object",
|
|
1014
2567
|
properties: {
|
|
1015
2568
|
id: {
|
|
@@ -1025,11 +2578,9 @@ export const AdkSessionSchema = {
|
|
|
1025
2578
|
$ref: "#/components/schemas/AdkSessionState",
|
|
1026
2579
|
},
|
|
1027
2580
|
events: {
|
|
1028
|
-
type: "array",
|
|
1029
|
-
items: {
|
|
1030
|
-
nullable: true,
|
|
1031
|
-
},
|
|
1032
2581
|
default: [],
|
|
2582
|
+
type: "array",
|
|
2583
|
+
items: {},
|
|
1033
2584
|
},
|
|
1034
2585
|
last_update_time: {
|
|
1035
2586
|
type: "number",
|
|
@@ -1038,6 +2589,7 @@ export const AdkSessionSchema = {
|
|
|
1038
2589
|
required: ["id", "app_name", "user_id"],
|
|
1039
2590
|
};
|
|
1040
2591
|
export const AdkSessionCreateReqSchema = {
|
|
2592
|
+
description: "创建会话请求",
|
|
1041
2593
|
type: "object",
|
|
1042
2594
|
properties: {
|
|
1043
2595
|
app_name: {
|
|
@@ -1056,6 +2608,7 @@ export const AdkSessionCreateReqSchema = {
|
|
|
1056
2608
|
required: ["app_name", "user_id"],
|
|
1057
2609
|
};
|
|
1058
2610
|
export const AdkSessionGetSchema = {
|
|
2611
|
+
description: "获取会话响应",
|
|
1059
2612
|
type: "object",
|
|
1060
2613
|
properties: {
|
|
1061
2614
|
id: {
|
|
@@ -1071,11 +2624,9 @@ export const AdkSessionGetSchema = {
|
|
|
1071
2624
|
$ref: "#/components/schemas/AdkSessionState",
|
|
1072
2625
|
},
|
|
1073
2626
|
events: {
|
|
1074
|
-
type: "array",
|
|
1075
|
-
items: {
|
|
1076
|
-
nullable: true,
|
|
1077
|
-
},
|
|
1078
2627
|
default: [],
|
|
2628
|
+
type: "array",
|
|
2629
|
+
items: {},
|
|
1079
2630
|
},
|
|
1080
2631
|
last_update_time: {
|
|
1081
2632
|
type: "number",
|
|
@@ -1084,6 +2635,7 @@ export const AdkSessionGetSchema = {
|
|
|
1084
2635
|
required: ["id", "app_name", "user_id"],
|
|
1085
2636
|
};
|
|
1086
2637
|
export const AdkSessionGetReqSchema = {
|
|
2638
|
+
description: "获取会话请求",
|
|
1087
2639
|
type: "object",
|
|
1088
2640
|
properties: {
|
|
1089
2641
|
app_name: {
|
|
@@ -1105,42 +2657,46 @@ export const AdkSessionGetReqSchema = {
|
|
|
1105
2657
|
required: ["app_name", "user_id", "session_id"],
|
|
1106
2658
|
};
|
|
1107
2659
|
export const AdkSessionListSchema = {
|
|
2660
|
+
description: "列表会话响应",
|
|
1108
2661
|
type: "object",
|
|
1109
2662
|
properties: {
|
|
1110
|
-
|
|
1111
|
-
type: "
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
type: "string",
|
|
2663
|
+
paginate: {
|
|
2664
|
+
type: "object",
|
|
2665
|
+
properties: {
|
|
2666
|
+
total: {
|
|
2667
|
+
description: "Total number of records",
|
|
2668
|
+
type: "number",
|
|
2669
|
+
},
|
|
2670
|
+
page: {
|
|
2671
|
+
description: "Current page number",
|
|
2672
|
+
type: "number",
|
|
2673
|
+
},
|
|
2674
|
+
pageSize: {
|
|
2675
|
+
description: "Number of records per page",
|
|
2676
|
+
type: "number",
|
|
2677
|
+
},
|
|
2678
|
+
totalPages: {
|
|
2679
|
+
description: "Total number of pages",
|
|
2680
|
+
type: "number",
|
|
2681
|
+
},
|
|
2682
|
+
hasNext: {
|
|
2683
|
+
description: "Whether there is a next page",
|
|
2684
|
+
type: "boolean",
|
|
2685
|
+
},
|
|
2686
|
+
},
|
|
2687
|
+
required: ["total", "page", "pageSize", "totalPages", "hasNext"],
|
|
1136
2688
|
},
|
|
1137
|
-
|
|
1138
|
-
type: "
|
|
2689
|
+
rows: {
|
|
2690
|
+
type: "array",
|
|
2691
|
+
items: {
|
|
2692
|
+
$ref: "#/components/schemas/AdkSession",
|
|
2693
|
+
},
|
|
1139
2694
|
},
|
|
1140
2695
|
},
|
|
1141
|
-
required: ["
|
|
2696
|
+
required: ["paginate", "rows"],
|
|
1142
2697
|
};
|
|
1143
2698
|
export const AdkSessionAppendEventResultSchema = {
|
|
2699
|
+
description: "追加事件响应",
|
|
1144
2700
|
type: "object",
|
|
1145
2701
|
properties: {
|
|
1146
2702
|
timestamp: {
|
|
@@ -1150,6 +2706,7 @@ export const AdkSessionAppendEventResultSchema = {
|
|
|
1150
2706
|
required: ["timestamp"],
|
|
1151
2707
|
};
|
|
1152
2708
|
export const AdkEventSchema = {
|
|
2709
|
+
description: "ADK事件",
|
|
1153
2710
|
type: "object",
|
|
1154
2711
|
properties: {
|
|
1155
2712
|
invocation_id: {
|
|
@@ -1158,9 +2715,7 @@ export const AdkEventSchema = {
|
|
|
1158
2715
|
author: {
|
|
1159
2716
|
type: "string",
|
|
1160
2717
|
},
|
|
1161
|
-
actions: {
|
|
1162
|
-
nullable: true,
|
|
1163
|
-
},
|
|
2718
|
+
actions: {},
|
|
1164
2719
|
long_running_tool_ids: {
|
|
1165
2720
|
type: "array",
|
|
1166
2721
|
items: {
|
|
@@ -1176,9 +2731,7 @@ export const AdkEventSchema = {
|
|
|
1176
2731
|
timestamp: {
|
|
1177
2732
|
type: "number",
|
|
1178
2733
|
},
|
|
1179
|
-
content: {
|
|
1180
|
-
nullable: true,
|
|
1181
|
-
},
|
|
2734
|
+
content: {},
|
|
1182
2735
|
partial: {
|
|
1183
2736
|
type: "boolean",
|
|
1184
2737
|
},
|
|
@@ -1194,16 +2747,13 @@ export const AdkEventSchema = {
|
|
|
1194
2747
|
interrupted: {
|
|
1195
2748
|
type: "boolean",
|
|
1196
2749
|
},
|
|
1197
|
-
grounding_metadata: {
|
|
1198
|
-
|
|
1199
|
-
},
|
|
1200
|
-
custom_metadata: {
|
|
1201
|
-
nullable: true,
|
|
1202
|
-
},
|
|
2750
|
+
grounding_metadata: {},
|
|
2751
|
+
custom_metadata: {},
|
|
1203
2752
|
},
|
|
1204
2753
|
required: ["invocation_id", "author", "id", "timestamp"],
|
|
1205
2754
|
};
|
|
1206
2755
|
export const AdkSessionAppendEventBodySchema = {
|
|
2756
|
+
description: "追加事件请求",
|
|
1207
2757
|
type: "object",
|
|
1208
2758
|
properties: {
|
|
1209
2759
|
session: {
|
|
@@ -1216,15 +2766,19 @@ export const AdkSessionAppendEventBodySchema = {
|
|
|
1216
2766
|
required: ["session", "event"],
|
|
1217
2767
|
};
|
|
1218
2768
|
export const AdkArtifactSaveSchema = {
|
|
2769
|
+
description: "保存artifact响应",
|
|
1219
2770
|
type: "object",
|
|
1220
2771
|
properties: {
|
|
1221
2772
|
version: {
|
|
1222
2773
|
type: "integer",
|
|
2774
|
+
minimum: -9007199254740991,
|
|
2775
|
+
maximum: 9007199254740991,
|
|
1223
2776
|
},
|
|
1224
2777
|
},
|
|
1225
2778
|
required: ["version"],
|
|
1226
2779
|
};
|
|
1227
2780
|
export const AdkArtifactSaveRequestSchema = {
|
|
2781
|
+
description: "保存artifact请求",
|
|
1228
2782
|
type: "object",
|
|
1229
2783
|
properties: {
|
|
1230
2784
|
app_name: {
|
|
@@ -1242,13 +2796,12 @@ export const AdkArtifactSaveRequestSchema = {
|
|
|
1242
2796
|
content_type: {
|
|
1243
2797
|
type: "string",
|
|
1244
2798
|
},
|
|
1245
|
-
content_data: {
|
|
1246
|
-
nullable: true,
|
|
1247
|
-
},
|
|
2799
|
+
content_data: {},
|
|
1248
2800
|
},
|
|
1249
|
-
required: ["app_name", "user_id", "session_id", "filename"],
|
|
2801
|
+
required: ["app_name", "user_id", "session_id", "filename", "content_data"],
|
|
1250
2802
|
};
|
|
1251
|
-
export const
|
|
2803
|
+
export const AdkArtifactRespSchema = {
|
|
2804
|
+
description: "Artifact响应",
|
|
1252
2805
|
type: "object",
|
|
1253
2806
|
properties: {
|
|
1254
2807
|
app_name: {
|
|
@@ -1265,13 +2818,13 @@ export const AdkArtifactResponseSchema = {
|
|
|
1265
2818
|
},
|
|
1266
2819
|
version: {
|
|
1267
2820
|
type: "integer",
|
|
2821
|
+
minimum: -9007199254740991,
|
|
2822
|
+
maximum: 9007199254740991,
|
|
1268
2823
|
},
|
|
1269
2824
|
content_type: {
|
|
1270
2825
|
type: "string",
|
|
1271
2826
|
},
|
|
1272
|
-
content_data: {
|
|
1273
|
-
nullable: true,
|
|
1274
|
-
},
|
|
2827
|
+
content_data: {},
|
|
1275
2828
|
created_at: {
|
|
1276
2829
|
type: "string",
|
|
1277
2830
|
},
|
|
@@ -1285,11 +2838,13 @@ export const AdkArtifactResponseSchema = {
|
|
|
1285
2838
|
"session_id",
|
|
1286
2839
|
"filename",
|
|
1287
2840
|
"version",
|
|
2841
|
+
"content_data",
|
|
1288
2842
|
"created_at",
|
|
1289
2843
|
"updated_at",
|
|
1290
2844
|
],
|
|
1291
2845
|
};
|
|
1292
2846
|
export const AdkArtifactLoadRequestSchema = {
|
|
2847
|
+
description: "加载artifact请求",
|
|
1293
2848
|
type: "object",
|
|
1294
2849
|
properties: {
|
|
1295
2850
|
app_name: {
|
|
@@ -1306,11 +2861,14 @@ export const AdkArtifactLoadRequestSchema = {
|
|
|
1306
2861
|
},
|
|
1307
2862
|
version: {
|
|
1308
2863
|
type: "integer",
|
|
2864
|
+
minimum: -9007199254740991,
|
|
2865
|
+
maximum: 9007199254740991,
|
|
1309
2866
|
},
|
|
1310
2867
|
},
|
|
1311
2868
|
required: ["app_name", "user_id", "session_id", "filename"],
|
|
1312
2869
|
};
|
|
1313
2870
|
export const AdkArtifactSummarySchema = {
|
|
2871
|
+
description: "Artifact摘要",
|
|
1314
2872
|
type: "object",
|
|
1315
2873
|
properties: {
|
|
1316
2874
|
app_name: {
|
|
@@ -1327,12 +2885,16 @@ export const AdkArtifactSummarySchema = {
|
|
|
1327
2885
|
},
|
|
1328
2886
|
version: {
|
|
1329
2887
|
type: "integer",
|
|
2888
|
+
minimum: -9007199254740991,
|
|
2889
|
+
maximum: 9007199254740991,
|
|
1330
2890
|
},
|
|
1331
2891
|
content_type: {
|
|
1332
2892
|
type: "string",
|
|
1333
2893
|
},
|
|
1334
2894
|
size: {
|
|
1335
2895
|
type: "integer",
|
|
2896
|
+
minimum: -9007199254740991,
|
|
2897
|
+
maximum: 9007199254740991,
|
|
1336
2898
|
},
|
|
1337
2899
|
created_at: {
|
|
1338
2900
|
type: "string",
|
|
@@ -1352,21 +2914,46 @@ export const AdkArtifactSummarySchema = {
|
|
|
1352
2914
|
],
|
|
1353
2915
|
};
|
|
1354
2916
|
export const AdkArtifactListSchema = {
|
|
2917
|
+
description: "列表artifacts响应",
|
|
1355
2918
|
type: "object",
|
|
1356
2919
|
properties: {
|
|
1357
|
-
|
|
2920
|
+
paginate: {
|
|
2921
|
+
type: "object",
|
|
2922
|
+
properties: {
|
|
2923
|
+
total: {
|
|
2924
|
+
description: "Total number of records",
|
|
2925
|
+
type: "number",
|
|
2926
|
+
},
|
|
2927
|
+
page: {
|
|
2928
|
+
description: "Current page number",
|
|
2929
|
+
type: "number",
|
|
2930
|
+
},
|
|
2931
|
+
pageSize: {
|
|
2932
|
+
description: "Number of records per page",
|
|
2933
|
+
type: "number",
|
|
2934
|
+
},
|
|
2935
|
+
totalPages: {
|
|
2936
|
+
description: "Total number of pages",
|
|
2937
|
+
type: "number",
|
|
2938
|
+
},
|
|
2939
|
+
hasNext: {
|
|
2940
|
+
description: "Whether there is a next page",
|
|
2941
|
+
type: "boolean",
|
|
2942
|
+
},
|
|
2943
|
+
},
|
|
2944
|
+
required: ["total", "page", "pageSize", "totalPages", "hasNext"],
|
|
2945
|
+
},
|
|
2946
|
+
rows: {
|
|
1358
2947
|
type: "array",
|
|
1359
2948
|
items: {
|
|
1360
2949
|
$ref: "#/components/schemas/AdkArtifactSummary",
|
|
1361
2950
|
},
|
|
1362
2951
|
},
|
|
1363
|
-
total: {
|
|
1364
|
-
type: "integer",
|
|
1365
|
-
},
|
|
1366
2952
|
},
|
|
1367
|
-
required: ["
|
|
2953
|
+
required: ["paginate", "rows"],
|
|
1368
2954
|
};
|
|
1369
2955
|
export const AdkArtifactListKeysSchema = {
|
|
2956
|
+
description: "列表artifact keys响应",
|
|
1370
2957
|
type: "object",
|
|
1371
2958
|
properties: {
|
|
1372
2959
|
filenames: {
|
|
@@ -1378,37 +2965,23 @@ export const AdkArtifactListKeysSchema = {
|
|
|
1378
2965
|
},
|
|
1379
2966
|
required: ["filenames"],
|
|
1380
2967
|
};
|
|
1381
|
-
export const AdkArtifactDeleteRequestSchema = {
|
|
1382
|
-
type: "object",
|
|
1383
|
-
properties: {
|
|
1384
|
-
app_name: {
|
|
1385
|
-
type: "string",
|
|
1386
|
-
},
|
|
1387
|
-
user_id: {
|
|
1388
|
-
type: "string",
|
|
1389
|
-
},
|
|
1390
|
-
session_id: {
|
|
1391
|
-
type: "string",
|
|
1392
|
-
},
|
|
1393
|
-
filename: {
|
|
1394
|
-
type: "string",
|
|
1395
|
-
},
|
|
1396
|
-
},
|
|
1397
|
-
required: ["app_name", "user_id", "session_id", "filename"],
|
|
1398
|
-
};
|
|
1399
2968
|
export const AdkArtifactListVersionsSchema = {
|
|
2969
|
+
description: "列表版本响应",
|
|
1400
2970
|
type: "object",
|
|
1401
2971
|
properties: {
|
|
1402
2972
|
versions: {
|
|
1403
2973
|
type: "array",
|
|
1404
2974
|
items: {
|
|
1405
2975
|
type: "integer",
|
|
2976
|
+
minimum: -9007199254740991,
|
|
2977
|
+
maximum: 9007199254740991,
|
|
1406
2978
|
},
|
|
1407
2979
|
},
|
|
1408
2980
|
},
|
|
1409
2981
|
required: ["versions"],
|
|
1410
2982
|
};
|
|
1411
2983
|
export const AdkTaskSaveSchema = {
|
|
2984
|
+
description: "任务保存响应",
|
|
1412
2985
|
type: "object",
|
|
1413
2986
|
properties: {
|
|
1414
2987
|
success: {
|
|
@@ -1418,11 +2991,12 @@ export const AdkTaskSaveSchema = {
|
|
|
1418
2991
|
required: ["success"],
|
|
1419
2992
|
};
|
|
1420
2993
|
export const MessageSchema = {
|
|
2994
|
+
description: "Message",
|
|
1421
2995
|
type: "object",
|
|
1422
2996
|
properties: {
|
|
1423
2997
|
kind: {
|
|
1424
2998
|
type: "string",
|
|
1425
|
-
|
|
2999
|
+
const: "message",
|
|
1426
3000
|
},
|
|
1427
3001
|
messageId: {
|
|
1428
3002
|
type: "string",
|
|
@@ -1433,9 +3007,7 @@ export const MessageSchema = {
|
|
|
1433
3007
|
},
|
|
1434
3008
|
parts: {
|
|
1435
3009
|
type: "array",
|
|
1436
|
-
items: {
|
|
1437
|
-
nullable: true,
|
|
1438
|
-
},
|
|
3010
|
+
items: {},
|
|
1439
3011
|
},
|
|
1440
3012
|
contextId: {
|
|
1441
3013
|
type: "string",
|
|
@@ -1457,18 +3029,21 @@ export const MessageSchema = {
|
|
|
1457
3029
|
},
|
|
1458
3030
|
metadata: {
|
|
1459
3031
|
type: "object",
|
|
1460
|
-
|
|
1461
|
-
|
|
3032
|
+
propertyNames: {
|
|
3033
|
+
type: "string",
|
|
1462
3034
|
},
|
|
3035
|
+
additionalProperties: {},
|
|
1463
3036
|
},
|
|
1464
3037
|
},
|
|
1465
3038
|
required: ["kind", "messageId", "role", "parts"],
|
|
1466
3039
|
};
|
|
1467
3040
|
export const TaskStateSchema = {
|
|
3041
|
+
description: "TaskState",
|
|
1468
3042
|
type: "string",
|
|
1469
3043
|
enum: ["submitted", "running", "completed", "failed", "cancelled"],
|
|
1470
3044
|
};
|
|
1471
3045
|
export const TaskStatusSchema = {
|
|
3046
|
+
description: "TaskStatus",
|
|
1472
3047
|
type: "object",
|
|
1473
3048
|
properties: {
|
|
1474
3049
|
message: {
|
|
@@ -1484,6 +3059,7 @@ export const TaskStatusSchema = {
|
|
|
1484
3059
|
required: ["state"],
|
|
1485
3060
|
};
|
|
1486
3061
|
export const ArtifactSchema = {
|
|
3062
|
+
description: "Artifact",
|
|
1487
3063
|
type: "object",
|
|
1488
3064
|
properties: {
|
|
1489
3065
|
artifactId: {
|
|
@@ -1497,9 +3073,7 @@ export const ArtifactSchema = {
|
|
|
1497
3073
|
},
|
|
1498
3074
|
parts: {
|
|
1499
3075
|
type: "array",
|
|
1500
|
-
items: {
|
|
1501
|
-
nullable: true,
|
|
1502
|
-
},
|
|
3076
|
+
items: {},
|
|
1503
3077
|
},
|
|
1504
3078
|
extensions: {
|
|
1505
3079
|
type: "array",
|
|
@@ -1509,14 +3083,16 @@ export const ArtifactSchema = {
|
|
|
1509
3083
|
},
|
|
1510
3084
|
metadata: {
|
|
1511
3085
|
type: "object",
|
|
1512
|
-
|
|
1513
|
-
|
|
3086
|
+
propertyNames: {
|
|
3087
|
+
type: "string",
|
|
1514
3088
|
},
|
|
3089
|
+
additionalProperties: {},
|
|
1515
3090
|
},
|
|
1516
3091
|
},
|
|
1517
3092
|
required: ["artifactId", "parts"],
|
|
1518
3093
|
};
|
|
1519
3094
|
export const AdkTaskSaveRequestSchema = {
|
|
3095
|
+
description: "保存任务请求",
|
|
1520
3096
|
type: "object",
|
|
1521
3097
|
properties: {
|
|
1522
3098
|
id: {
|
|
@@ -1526,8 +3102,8 @@ export const AdkTaskSaveRequestSchema = {
|
|
|
1526
3102
|
type: "string",
|
|
1527
3103
|
},
|
|
1528
3104
|
kind: {
|
|
1529
|
-
type: "string",
|
|
1530
3105
|
default: "task",
|
|
3106
|
+
type: "string",
|
|
1531
3107
|
},
|
|
1532
3108
|
status: {
|
|
1533
3109
|
$ref: "#/components/schemas/TaskStatus",
|
|
@@ -1546,14 +3122,16 @@ export const AdkTaskSaveRequestSchema = {
|
|
|
1546
3122
|
},
|
|
1547
3123
|
metadata: {
|
|
1548
3124
|
type: "object",
|
|
1549
|
-
|
|
1550
|
-
|
|
3125
|
+
propertyNames: {
|
|
3126
|
+
type: "string",
|
|
1551
3127
|
},
|
|
3128
|
+
additionalProperties: {},
|
|
1552
3129
|
},
|
|
1553
3130
|
},
|
|
1554
3131
|
required: ["id", "context_id", "status"],
|
|
1555
3132
|
};
|
|
1556
3133
|
export const TaskSchema = {
|
|
3134
|
+
description: "Task",
|
|
1557
3135
|
type: "object",
|
|
1558
3136
|
properties: {
|
|
1559
3137
|
id: {
|
|
@@ -1563,8 +3141,8 @@ export const TaskSchema = {
|
|
|
1563
3141
|
type: "string",
|
|
1564
3142
|
},
|
|
1565
3143
|
kind: {
|
|
1566
|
-
type: "string",
|
|
1567
3144
|
default: "task",
|
|
3145
|
+
type: "string",
|
|
1568
3146
|
},
|
|
1569
3147
|
status: {
|
|
1570
3148
|
$ref: "#/components/schemas/TaskStatus",
|
|
@@ -1583,27 +3161,27 @@ export const TaskSchema = {
|
|
|
1583
3161
|
},
|
|
1584
3162
|
metadata: {
|
|
1585
3163
|
type: "object",
|
|
1586
|
-
|
|
1587
|
-
|
|
3164
|
+
propertyNames: {
|
|
3165
|
+
type: "string",
|
|
1588
3166
|
},
|
|
3167
|
+
additionalProperties: {},
|
|
1589
3168
|
},
|
|
1590
3169
|
},
|
|
1591
3170
|
required: ["id", "context_id", "status"],
|
|
1592
3171
|
};
|
|
1593
3172
|
export const AdkTaskGetSchema = {
|
|
3173
|
+
description: "获取任务响应",
|
|
1594
3174
|
anyOf: [
|
|
1595
3175
|
{
|
|
1596
3176
|
$ref: "#/components/schemas/Task",
|
|
1597
3177
|
},
|
|
1598
3178
|
{
|
|
1599
|
-
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
nullable: true,
|
|
3179
|
+
type: "null",
|
|
1603
3180
|
},
|
|
1604
3181
|
],
|
|
1605
3182
|
};
|
|
1606
3183
|
export const AdkTaskGetRequestSchema = {
|
|
3184
|
+
description: "获取任务请求",
|
|
1607
3185
|
type: "object",
|
|
1608
3186
|
properties: {
|
|
1609
3187
|
task_id: {
|
|
@@ -1613,33 +3191,307 @@ export const AdkTaskGetRequestSchema = {
|
|
|
1613
3191
|
required: ["task_id"],
|
|
1614
3192
|
};
|
|
1615
3193
|
export const AdkTaskListSchema = {
|
|
3194
|
+
description: "任务列表响应",
|
|
1616
3195
|
type: "object",
|
|
1617
3196
|
properties: {
|
|
1618
|
-
|
|
3197
|
+
paginate: {
|
|
3198
|
+
type: "object",
|
|
3199
|
+
properties: {
|
|
3200
|
+
total: {
|
|
3201
|
+
description: "Total number of records",
|
|
3202
|
+
type: "number",
|
|
3203
|
+
},
|
|
3204
|
+
page: {
|
|
3205
|
+
description: "Current page number",
|
|
3206
|
+
type: "number",
|
|
3207
|
+
},
|
|
3208
|
+
pageSize: {
|
|
3209
|
+
description: "Number of records per page",
|
|
3210
|
+
type: "number",
|
|
3211
|
+
},
|
|
3212
|
+
totalPages: {
|
|
3213
|
+
description: "Total number of pages",
|
|
3214
|
+
type: "number",
|
|
3215
|
+
},
|
|
3216
|
+
hasNext: {
|
|
3217
|
+
description: "Whether there is a next page",
|
|
3218
|
+
type: "boolean",
|
|
3219
|
+
},
|
|
3220
|
+
},
|
|
3221
|
+
required: ["total", "page", "pageSize", "totalPages", "hasNext"],
|
|
3222
|
+
},
|
|
3223
|
+
rows: {
|
|
1619
3224
|
type: "array",
|
|
1620
3225
|
items: {
|
|
1621
3226
|
$ref: "#/components/schemas/Task",
|
|
1622
3227
|
},
|
|
1623
3228
|
},
|
|
1624
3229
|
},
|
|
1625
|
-
required: ["
|
|
3230
|
+
required: ["paginate", "rows"],
|
|
1626
3231
|
};
|
|
1627
|
-
export const
|
|
3232
|
+
export const MtWorkerSchema = {
|
|
3233
|
+
description: "Mtworker",
|
|
1628
3234
|
type: "object",
|
|
1629
3235
|
properties: {
|
|
1630
|
-
|
|
3236
|
+
id: {
|
|
3237
|
+
type: "string",
|
|
3238
|
+
},
|
|
3239
|
+
organizationId: {
|
|
3240
|
+
type: "string",
|
|
3241
|
+
},
|
|
3242
|
+
description: {
|
|
3243
|
+
type: "string",
|
|
3244
|
+
},
|
|
3245
|
+
config: {},
|
|
3246
|
+
status: {
|
|
3247
|
+
default: "offline",
|
|
3248
|
+
type: "string",
|
|
3249
|
+
enum: ["offline", "online", "starting", "stopping", "error"],
|
|
3250
|
+
},
|
|
3251
|
+
lastHeartbeat: {
|
|
3252
|
+
type: "string",
|
|
3253
|
+
format: "date-time",
|
|
3254
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
3255
|
+
},
|
|
3256
|
+
isDefault: {
|
|
3257
|
+
default: false,
|
|
1631
3258
|
type: "boolean",
|
|
1632
3259
|
},
|
|
3260
|
+
createdAt: {
|
|
3261
|
+
type: "string",
|
|
3262
|
+
format: "date-time",
|
|
3263
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
3264
|
+
},
|
|
3265
|
+
updatedAt: {
|
|
3266
|
+
type: "string",
|
|
3267
|
+
format: "date-time",
|
|
3268
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
3269
|
+
},
|
|
1633
3270
|
},
|
|
1634
|
-
required: ["
|
|
3271
|
+
required: ["id", "organizationId", "config", "createdAt", "updatedAt"],
|
|
1635
3272
|
};
|
|
1636
|
-
export const
|
|
3273
|
+
export const CreateMtWorkerSchema = {
|
|
3274
|
+
description: "创建Mtworker",
|
|
1637
3275
|
type: "object",
|
|
1638
3276
|
properties: {
|
|
1639
|
-
|
|
3277
|
+
description: {
|
|
1640
3278
|
type: "string",
|
|
1641
3279
|
},
|
|
3280
|
+
config: {
|
|
3281
|
+
$ref: "#/components/schemas/GomtmConfig",
|
|
3282
|
+
},
|
|
3283
|
+
isDefault: {
|
|
3284
|
+
default: false,
|
|
3285
|
+
type: "boolean",
|
|
3286
|
+
},
|
|
1642
3287
|
},
|
|
1643
|
-
required: ["
|
|
3288
|
+
required: ["config"],
|
|
3289
|
+
};
|
|
3290
|
+
export const HatchetWorkerConfigSchema = {
|
|
3291
|
+
description: "Hatchet Worker配置",
|
|
3292
|
+
type: "object",
|
|
3293
|
+
properties: {
|
|
3294
|
+
hatchetUrl: {
|
|
3295
|
+
description: "Hatchet server URL",
|
|
3296
|
+
type: "string",
|
|
3297
|
+
minLength: 1,
|
|
3298
|
+
},
|
|
3299
|
+
hatchetToken: {
|
|
3300
|
+
description: "Hatchet authentication token",
|
|
3301
|
+
type: "string",
|
|
3302
|
+
minLength: 1,
|
|
3303
|
+
},
|
|
3304
|
+
},
|
|
3305
|
+
required: ["hatchetUrl", "hatchetToken"],
|
|
3306
|
+
};
|
|
3307
|
+
export const HatchetWorkerConfigResponseSchema = {
|
|
3308
|
+
description: "Hatchet Worker配置响应",
|
|
3309
|
+
type: "object",
|
|
3310
|
+
properties: {
|
|
3311
|
+
id: {
|
|
3312
|
+
type: "string",
|
|
3313
|
+
},
|
|
3314
|
+
config: {
|
|
3315
|
+
$ref: "#/components/schemas/HatchetWorkerConfig",
|
|
3316
|
+
},
|
|
3317
|
+
createdAt: {
|
|
3318
|
+
type: "string",
|
|
3319
|
+
minLength: 1,
|
|
3320
|
+
},
|
|
3321
|
+
updatedAt: {
|
|
3322
|
+
type: "string",
|
|
3323
|
+
minLength: 1,
|
|
3324
|
+
},
|
|
3325
|
+
},
|
|
3326
|
+
required: ["id", "config", "createdAt", "updatedAt"],
|
|
3327
|
+
};
|
|
3328
|
+
export const MtProxyConfigSchema = {
|
|
3329
|
+
default: {
|
|
3330
|
+
enabled: false,
|
|
3331
|
+
port: 10801,
|
|
3332
|
+
bindAddr: "0.0.0.0",
|
|
3333
|
+
},
|
|
3334
|
+
description: "Mtproxy配置",
|
|
3335
|
+
type: "object",
|
|
3336
|
+
properties: {
|
|
3337
|
+
enabled: {
|
|
3338
|
+
default: false,
|
|
3339
|
+
type: "boolean",
|
|
3340
|
+
},
|
|
3341
|
+
port: {
|
|
3342
|
+
default: 10801,
|
|
3343
|
+
type: "number",
|
|
3344
|
+
},
|
|
3345
|
+
bindAddr: {
|
|
3346
|
+
default: "0.0.0.0",
|
|
3347
|
+
type: "string",
|
|
3348
|
+
},
|
|
3349
|
+
},
|
|
3350
|
+
};
|
|
3351
|
+
export const OrgWorkerConfigSchema = {
|
|
3352
|
+
description: "OrgWorker配置",
|
|
3353
|
+
type: "object",
|
|
3354
|
+
properties: {
|
|
3355
|
+
mtgateUrl: {
|
|
3356
|
+
type: "string",
|
|
3357
|
+
},
|
|
3358
|
+
profile: {
|
|
3359
|
+
type: "string",
|
|
3360
|
+
},
|
|
3361
|
+
metadata: {},
|
|
3362
|
+
mtproxy: {
|
|
3363
|
+
$ref: "#/components/schemas/MtProxyConfig",
|
|
3364
|
+
},
|
|
3365
|
+
},
|
|
3366
|
+
};
|
|
3367
|
+
export const OrgWorkerStateSchema = {
|
|
3368
|
+
description: "OrgWorker状态",
|
|
3369
|
+
type: "object",
|
|
3370
|
+
properties: {
|
|
3371
|
+
status: {
|
|
3372
|
+
default: "offline",
|
|
3373
|
+
type: "string",
|
|
3374
|
+
enum: ["offline", "online", "starting", "stopping", "error"],
|
|
3375
|
+
},
|
|
3376
|
+
lastHeartbeat: {
|
|
3377
|
+
type: "string",
|
|
3378
|
+
format: "date-time",
|
|
3379
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
3380
|
+
},
|
|
3381
|
+
error: {
|
|
3382
|
+
type: "string",
|
|
3383
|
+
},
|
|
3384
|
+
},
|
|
3385
|
+
};
|
|
3386
|
+
export const OrgWorkerSchema = {
|
|
3387
|
+
description: "组织Worker",
|
|
3388
|
+
type: "object",
|
|
3389
|
+
properties: {
|
|
3390
|
+
id: {
|
|
3391
|
+
type: "string",
|
|
3392
|
+
},
|
|
3393
|
+
orgId: {
|
|
3394
|
+
type: "string",
|
|
3395
|
+
},
|
|
3396
|
+
name: {
|
|
3397
|
+
type: "string",
|
|
3398
|
+
},
|
|
3399
|
+
description: {
|
|
3400
|
+
type: "string",
|
|
3401
|
+
},
|
|
3402
|
+
isDefault: {
|
|
3403
|
+
default: false,
|
|
3404
|
+
type: "boolean",
|
|
3405
|
+
},
|
|
3406
|
+
config: {
|
|
3407
|
+
$ref: "#/components/schemas/OrgWorkerConfig",
|
|
3408
|
+
},
|
|
3409
|
+
state: {
|
|
3410
|
+
$ref: "#/components/schemas/OrgWorkerState",
|
|
3411
|
+
},
|
|
3412
|
+
createdAt: {
|
|
3413
|
+
type: "string",
|
|
3414
|
+
format: "date-time",
|
|
3415
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
3416
|
+
},
|
|
3417
|
+
updatedAt: {
|
|
3418
|
+
type: "string",
|
|
3419
|
+
format: "date-time",
|
|
3420
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
3421
|
+
},
|
|
3422
|
+
deletedAt: {
|
|
3423
|
+
type: "string",
|
|
3424
|
+
format: "date-time",
|
|
3425
|
+
pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
|
|
3426
|
+
},
|
|
3427
|
+
},
|
|
3428
|
+
required: [
|
|
3429
|
+
"id",
|
|
3430
|
+
"orgId",
|
|
3431
|
+
"name",
|
|
3432
|
+
"config",
|
|
3433
|
+
"state",
|
|
3434
|
+
"createdAt",
|
|
3435
|
+
"updatedAt",
|
|
3436
|
+
],
|
|
3437
|
+
};
|
|
3438
|
+
export const OrgWorkerListSchema = {
|
|
3439
|
+
description: "组织Worker列表响应",
|
|
3440
|
+
type: "object",
|
|
3441
|
+
properties: {
|
|
3442
|
+
paginate: {
|
|
3443
|
+
type: "object",
|
|
3444
|
+
properties: {
|
|
3445
|
+
total: {
|
|
3446
|
+
description: "Total number of records",
|
|
3447
|
+
type: "number",
|
|
3448
|
+
},
|
|
3449
|
+
page: {
|
|
3450
|
+
description: "Current page number",
|
|
3451
|
+
type: "number",
|
|
3452
|
+
},
|
|
3453
|
+
pageSize: {
|
|
3454
|
+
description: "Number of records per page",
|
|
3455
|
+
type: "number",
|
|
3456
|
+
},
|
|
3457
|
+
totalPages: {
|
|
3458
|
+
description: "Total number of pages",
|
|
3459
|
+
type: "number",
|
|
3460
|
+
},
|
|
3461
|
+
hasNext: {
|
|
3462
|
+
description: "Whether there is a next page",
|
|
3463
|
+
type: "boolean",
|
|
3464
|
+
},
|
|
3465
|
+
},
|
|
3466
|
+
required: ["total", "page", "pageSize", "totalPages", "hasNext"],
|
|
3467
|
+
},
|
|
3468
|
+
rows: {
|
|
3469
|
+
type: "array",
|
|
3470
|
+
items: {
|
|
3471
|
+
$ref: "#/components/schemas/OrgWorker",
|
|
3472
|
+
},
|
|
3473
|
+
},
|
|
3474
|
+
},
|
|
3475
|
+
required: ["paginate", "rows"],
|
|
3476
|
+
};
|
|
3477
|
+
export const OrgWorkerUpsertRequestSchema = {
|
|
3478
|
+
description: "组织Worker更新请求",
|
|
3479
|
+
type: "object",
|
|
3480
|
+
properties: {
|
|
3481
|
+
name: {
|
|
3482
|
+
type: "string",
|
|
3483
|
+
minLength: 1,
|
|
3484
|
+
},
|
|
3485
|
+
description: {
|
|
3486
|
+
type: "string",
|
|
3487
|
+
},
|
|
3488
|
+
isDefault: {
|
|
3489
|
+
type: "boolean",
|
|
3490
|
+
},
|
|
3491
|
+
config: {
|
|
3492
|
+
$ref: "#/components/schemas/OrgWorkerConfig",
|
|
3493
|
+
},
|
|
3494
|
+
},
|
|
3495
|
+
required: ["name"],
|
|
1644
3496
|
};
|
|
1645
3497
|
//# sourceMappingURL=schemas.gen.js.map
|