mtmsdk 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +2883 -0
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/gomtmapi/@tanstack/react-query.gen.js +2990 -0
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -0
- package/dist/gomtmapi/client/client.d.ts +3 -0
- package/dist/gomtmapi/client/client.d.ts.map +1 -0
- package/dist/gomtmapi/client/client.js +146 -0
- package/dist/gomtmapi/client/client.js.map +1 -0
- package/dist/gomtmapi/client/index.d.ts +8 -0
- package/dist/gomtmapi/client/index.d.ts.map +1 -0
- package/dist/gomtmapi/client/index.js +5 -0
- package/dist/gomtmapi/client/index.js.map +1 -0
- package/dist/gomtmapi/client/types.d.ts +120 -0
- package/dist/gomtmapi/client/types.d.ts.map +1 -0
- package/dist/gomtmapi/client/types.js +2 -0
- package/dist/gomtmapi/client/types.js.map +1 -0
- package/dist/gomtmapi/client/utils.d.ts +46 -0
- package/dist/gomtmapi/client/utils.d.ts.map +1 -0
- package/dist/gomtmapi/client/utils.js +285 -0
- package/dist/gomtmapi/client/utils.js.map +1 -0
- package/dist/gomtmapi/client.gen.d.ts +13 -0
- package/dist/gomtmapi/client.gen.d.ts.map +1 -0
- package/dist/gomtmapi/client.gen.js +4 -0
- package/dist/gomtmapi/client.gen.js.map +1 -0
- package/dist/gomtmapi/core/auth.d.ts +19 -0
- package/dist/gomtmapi/core/auth.d.ts.map +1 -0
- package/dist/gomtmapi/core/auth.js +14 -0
- package/dist/gomtmapi/core/auth.js.map +1 -0
- package/dist/gomtmapi/core/bodySerializer.d.ts +18 -0
- package/dist/gomtmapi/core/bodySerializer.d.ts.map +1 -0
- package/dist/gomtmapi/core/bodySerializer.js +54 -0
- package/dist/gomtmapi/core/bodySerializer.js.map +1 -0
- package/dist/gomtmapi/core/params.d.ts +24 -0
- package/dist/gomtmapi/core/params.d.ts.map +1 -0
- package/dist/gomtmapi/core/params.js +88 -0
- package/dist/gomtmapi/core/params.js.map +1 -0
- package/dist/gomtmapi/core/pathSerializer.d.ts +34 -0
- package/dist/gomtmapi/core/pathSerializer.d.ts.map +1 -0
- package/dist/gomtmapi/core/pathSerializer.js +114 -0
- package/dist/gomtmapi/core/pathSerializer.js.map +1 -0
- package/dist/gomtmapi/core/types.d.ts +74 -0
- package/dist/gomtmapi/core/types.d.ts.map +1 -0
- package/dist/gomtmapi/core/types.js +2 -0
- package/dist/gomtmapi/core/types.js.map +1 -0
- package/dist/gomtmapi/index.d.ts +3 -0
- package/dist/gomtmapi/index.d.ts.map +1 -0
- package/dist/gomtmapi/index.js +4 -0
- package/dist/gomtmapi/index.js.map +1 -0
- package/dist/gomtmapi/schemas.gen.d.ts +4385 -0
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -0
- package/dist/gomtmapi/schemas.gen.js +4521 -0
- package/dist/gomtmapi/schemas.gen.js.map +1 -0
- package/dist/gomtmapi/sdk.gen.d.ts +574 -0
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -0
- package/dist/gomtmapi/sdk.gen.js +2259 -0
- package/dist/gomtmapi/sdk.gen.js.map +1 -0
- package/dist/gomtmapi/types.gen.d.ts +6480 -0
- package/dist/gomtmapi/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi/types.gen.js +70 -0
- package/dist/gomtmapi/types.gen.js.map +1 -0
- package/dist/gomtmapi/zod.gen.d.ts +5324 -0
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -0
- package/dist/gomtmapi/zod.gen.js +2534 -0
- package/dist/gomtmapi/zod.gen.js.map +1 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts +2260 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js +2413 -0
- package/dist/gomtmapi_v2/@tanstack/react-query.gen.js.map +1 -0
- package/dist/gomtmapi_v2/client/client.d.ts +3 -0
- package/dist/gomtmapi_v2/client/client.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/client.js +146 -0
- package/dist/gomtmapi_v2/client/client.js.map +1 -0
- package/dist/gomtmapi_v2/client/index.d.ts +8 -0
- package/dist/gomtmapi_v2/client/index.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/index.js +5 -0
- package/dist/gomtmapi_v2/client/index.js.map +1 -0
- package/dist/gomtmapi_v2/client/types.d.ts +120 -0
- package/dist/gomtmapi_v2/client/types.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/types.js +2 -0
- package/dist/gomtmapi_v2/client/types.js.map +1 -0
- package/dist/gomtmapi_v2/client/utils.d.ts +46 -0
- package/dist/gomtmapi_v2/client/utils.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client/utils.js +285 -0
- package/dist/gomtmapi_v2/client/utils.js.map +1 -0
- package/dist/gomtmapi_v2/client.gen.d.ts +13 -0
- package/dist/gomtmapi_v2/client.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/client.gen.js +4 -0
- package/dist/gomtmapi_v2/client.gen.js.map +1 -0
- package/dist/gomtmapi_v2/core/auth.d.ts +19 -0
- package/dist/gomtmapi_v2/core/auth.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/auth.js +14 -0
- package/dist/gomtmapi_v2/core/auth.js.map +1 -0
- package/dist/gomtmapi_v2/core/bodySerializer.d.ts +18 -0
- package/dist/gomtmapi_v2/core/bodySerializer.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/bodySerializer.js +54 -0
- package/dist/gomtmapi_v2/core/bodySerializer.js.map +1 -0
- package/dist/gomtmapi_v2/core/params.d.ts +24 -0
- package/dist/gomtmapi_v2/core/params.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/params.js +88 -0
- package/dist/gomtmapi_v2/core/params.js.map +1 -0
- package/dist/gomtmapi_v2/core/pathSerializer.d.ts +34 -0
- package/dist/gomtmapi_v2/core/pathSerializer.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/pathSerializer.js +114 -0
- package/dist/gomtmapi_v2/core/pathSerializer.js.map +1 -0
- package/dist/gomtmapi_v2/core/types.d.ts +74 -0
- package/dist/gomtmapi_v2/core/types.d.ts.map +1 -0
- package/dist/gomtmapi_v2/core/types.js +2 -0
- package/dist/gomtmapi_v2/core/types.js.map +1 -0
- package/dist/gomtmapi_v2/index.d.ts +3 -0
- package/dist/gomtmapi_v2/index.d.ts.map +1 -0
- package/dist/gomtmapi_v2/index.js +4 -0
- package/dist/gomtmapi_v2/index.js.map +1 -0
- package/dist/gomtmapi_v2/schemas.gen.d.ts +2371 -0
- package/dist/gomtmapi_v2/schemas.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/schemas.gen.js +2372 -0
- package/dist/gomtmapi_v2/schemas.gen.js.map +1 -0
- package/dist/gomtmapi_v2/sdk.gen.d.ts +974 -0
- package/dist/gomtmapi_v2/sdk.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/sdk.gen.js +1345 -0
- package/dist/gomtmapi_v2/sdk.gen.js.map +1 -0
- package/dist/gomtmapi_v2/types.gen.d.ts +2964 -0
- package/dist/gomtmapi_v2/types.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/types.gen.js +3 -0
- package/dist/gomtmapi_v2/types.gen.js.map +1 -0
- package/dist/gomtmapi_v2/zod.gen.d.ts +2327 -0
- package/dist/gomtmapi_v2/zod.gen.d.ts.map +1 -0
- package/dist/gomtmapi_v2/zod.gen.js +1768 -0
- package/dist/gomtmapi_v2/zod.gen.js.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/adk-utils.d.ts +24 -0
- package/dist/lib/adk-utils.d.ts.map +1 -0
- package/dist/lib/adk-utils.js +51 -0
- package/dist/lib/adk-utils.js.map +1 -0
- package/dist/lib/constants.d.ts +40 -0
- package/dist/lib/constants.d.ts.map +1 -0
- package/dist/lib/constants.js +40 -0
- package/dist/lib/constants.js.map +1 -0
- package/dist/lib/d1-utils.d.ts +5 -0
- package/dist/lib/d1-utils.d.ts.map +1 -0
- package/dist/lib/d1-utils.js +36 -0
- package/dist/lib/d1-utils.js.map +1 -0
- package/dist/lib/get-query-client.d.ts +3 -0
- package/dist/lib/get-query-client.d.ts.map +1 -0
- package/dist/lib/get-query-client.js +43 -0
- package/dist/lib/get-query-client.js.map +1 -0
- package/dist/lib/mtmutils.d.ts +2 -0
- package/dist/lib/mtmutils.d.ts.map +1 -0
- package/dist/lib/mtmutils.js +9 -0
- package/dist/lib/mtmutils.js.map +1 -0
- package/dist/mtgate_api/zod.gen.d.ts +48 -48
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts +1286 -0
- package/dist/mtmai_api/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/mtmai_api/@tanstack/react-query.gen.js +1321 -0
- package/dist/mtmai_api/@tanstack/react-query.gen.js.map +1 -0
- package/dist/mtmai_api/client/client.d.ts +3 -0
- package/dist/mtmai_api/client/client.d.ts.map +1 -0
- package/dist/mtmai_api/client/client.js +146 -0
- package/dist/mtmai_api/client/client.js.map +1 -0
- package/dist/mtmai_api/client/index.d.ts +8 -0
- package/dist/mtmai_api/client/index.d.ts.map +1 -0
- package/dist/mtmai_api/client/index.js +5 -0
- package/dist/mtmai_api/client/index.js.map +1 -0
- package/dist/mtmai_api/client/types.d.ts +120 -0
- package/dist/mtmai_api/client/types.d.ts.map +1 -0
- package/dist/mtmai_api/client/types.js +2 -0
- package/dist/mtmai_api/client/types.js.map +1 -0
- package/dist/mtmai_api/client/utils.d.ts +46 -0
- package/dist/mtmai_api/client/utils.d.ts.map +1 -0
- package/dist/mtmai_api/client/utils.js +285 -0
- package/dist/mtmai_api/client/utils.js.map +1 -0
- package/dist/mtmai_api/client.gen.d.ts +13 -0
- package/dist/mtmai_api/client.gen.d.ts.map +1 -0
- package/dist/mtmai_api/client.gen.js +4 -0
- package/dist/mtmai_api/client.gen.js.map +1 -0
- package/dist/mtmai_api/core/auth.d.ts +19 -0
- package/dist/mtmai_api/core/auth.d.ts.map +1 -0
- package/dist/mtmai_api/core/auth.js +14 -0
- package/dist/mtmai_api/core/auth.js.map +1 -0
- package/dist/mtmai_api/core/bodySerializer.d.ts +18 -0
- package/dist/mtmai_api/core/bodySerializer.d.ts.map +1 -0
- package/dist/mtmai_api/core/bodySerializer.js +54 -0
- package/dist/mtmai_api/core/bodySerializer.js.map +1 -0
- package/dist/mtmai_api/core/params.d.ts +24 -0
- package/dist/mtmai_api/core/params.d.ts.map +1 -0
- package/dist/mtmai_api/core/params.js +88 -0
- package/dist/mtmai_api/core/params.js.map +1 -0
- package/dist/mtmai_api/core/pathSerializer.d.ts +34 -0
- package/dist/mtmai_api/core/pathSerializer.d.ts.map +1 -0
- package/dist/mtmai_api/core/pathSerializer.js +114 -0
- package/dist/mtmai_api/core/pathSerializer.js.map +1 -0
- package/dist/mtmai_api/core/types.d.ts +74 -0
- package/dist/mtmai_api/core/types.d.ts.map +1 -0
- package/dist/mtmai_api/core/types.js +2 -0
- package/dist/mtmai_api/core/types.js.map +1 -0
- package/dist/mtmai_api/index.d.ts +3 -0
- package/dist/mtmai_api/index.d.ts.map +1 -0
- package/dist/mtmai_api/index.js +4 -0
- package/dist/mtmai_api/index.js.map +1 -0
- package/dist/mtmai_api/schemas.gen.d.ts +7364 -0
- package/dist/mtmai_api/schemas.gen.d.ts.map +1 -0
- package/dist/mtmai_api/schemas.gen.js +9574 -0
- package/dist/mtmai_api/schemas.gen.js.map +1 -0
- package/dist/mtmai_api/sdk.gen.d.ts +264 -0
- package/dist/mtmai_api/sdk.gen.d.ts.map +1 -0
- package/dist/mtmai_api/sdk.gen.js +598 -0
- package/dist/mtmai_api/sdk.gen.js.map +1 -0
- package/dist/mtmai_api/types.gen.d.ts +6376 -0
- package/dist/mtmai_api/types.gen.d.ts.map +1 -0
- package/dist/mtmai_api/types.gen.js +240 -0
- package/dist/mtmai_api/types.gen.js.map +1 -0
- package/dist/mtmai_api/zod.gen.d.ts +35067 -0
- package/dist/mtmai_api/zod.gen.d.ts.map +1 -0
- package/dist/mtmai_api/zod.gen.js +2930 -0
- package/dist/mtmai_api/zod.gen.js.map +1 -0
- package/dist/store/MtmsdkProvider.d.ts +15 -0
- package/dist/store/MtmsdkProvider.d.ts.map +1 -0
- package/dist/store/MtmsdkProvider.js +50 -0
- package/dist/store/MtmsdkProvider.js.map +1 -0
- package/dist/store/ReactQueryApiV2Provider.d.ts +10 -0
- package/dist/store/ReactQueryApiV2Provider.d.ts.map +1 -0
- package/dist/store/ReactQueryApiV2Provider.js +24 -0
- package/dist/store/ReactQueryApiV2Provider.js.map +1 -0
- package/dist/store/ReactQueryCfApiProvider.d.ts +9 -0
- package/dist/store/ReactQueryCfApiProvider.d.ts.map +1 -0
- package/dist/store/ReactQueryCfApiProvider.js +26 -0
- package/dist/store/ReactQueryCfApiProvider.js.map +1 -0
- package/dist/store/ReactQueryMtmaiApiProvider.d.ts +10 -0
- package/dist/store/ReactQueryMtmaiApiProvider.d.ts.map +1 -0
- package/dist/store/ReactQueryMtmaiApiProvider.js +23 -0
- package/dist/store/ReactQueryMtmaiApiProvider.js.map +1 -0
- package/dist/store/ReactQueryProvider.d.ts +10 -0
- package/dist/store/ReactQueryProvider.d.ts.map +1 -0
- package/dist/store/ReactQueryProvider.js +24 -0
- package/dist/store/ReactQueryProvider.js.map +1 -0
- package/package.json +69 -15
|
@@ -0,0 +1,4385 @@
|
|
|
1
|
+
export declare const HealthStatusSchema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly status: {
|
|
5
|
+
readonly type: "string";
|
|
6
|
+
readonly description: "Overall health status";
|
|
7
|
+
readonly example: "healthy";
|
|
8
|
+
readonly enum: readonly ["healthy", "unhealthy", "degraded"];
|
|
9
|
+
};
|
|
10
|
+
readonly version: {
|
|
11
|
+
readonly type: "string";
|
|
12
|
+
readonly description: "API version";
|
|
13
|
+
readonly example: "1.0.0";
|
|
14
|
+
};
|
|
15
|
+
readonly timestamp: {
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
readonly format: "date-time";
|
|
18
|
+
readonly description: "Health check timestamp";
|
|
19
|
+
readonly example: "2024-01-01T12:00:00Z";
|
|
20
|
+
};
|
|
21
|
+
readonly services: {
|
|
22
|
+
readonly type: "object";
|
|
23
|
+
readonly description: "Status of individual services";
|
|
24
|
+
readonly properties: {
|
|
25
|
+
readonly database: {
|
|
26
|
+
readonly type: "string";
|
|
27
|
+
readonly enum: readonly ["healthy", "unhealthy"];
|
|
28
|
+
readonly example: "healthy";
|
|
29
|
+
};
|
|
30
|
+
readonly repository: {
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
readonly enum: readonly ["healthy", "unhealthy"];
|
|
33
|
+
readonly example: "healthy";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly additionalProperties: {
|
|
37
|
+
readonly type: "string";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
readonly uptime: {
|
|
41
|
+
readonly type: "integer";
|
|
42
|
+
readonly format: "int64";
|
|
43
|
+
readonly description: "Service uptime in seconds";
|
|
44
|
+
readonly example: 3600;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
readonly required: readonly ["status", "version", "timestamp"];
|
|
48
|
+
};
|
|
49
|
+
export declare const APIErrorSchema: {
|
|
50
|
+
readonly type: "object";
|
|
51
|
+
readonly properties: {
|
|
52
|
+
readonly code: {
|
|
53
|
+
readonly type: "integer";
|
|
54
|
+
readonly description: "a custom Hatchet error code";
|
|
55
|
+
readonly format: "uint64";
|
|
56
|
+
readonly example: 1400;
|
|
57
|
+
};
|
|
58
|
+
readonly field: {
|
|
59
|
+
readonly type: "string";
|
|
60
|
+
readonly description: "the field that this error is associated with, if applicable";
|
|
61
|
+
readonly example: "name";
|
|
62
|
+
};
|
|
63
|
+
readonly description: {
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
readonly description: "a description for this error";
|
|
66
|
+
readonly example: "A descriptive error message";
|
|
67
|
+
};
|
|
68
|
+
readonly docs_link: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
readonly description: "a link to the documentation for this error, if it exists";
|
|
71
|
+
readonly example: "github.com/hatchet-dev/hatchet";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly required: readonly ["description"];
|
|
75
|
+
};
|
|
76
|
+
export declare const APIErrorsSchema: {
|
|
77
|
+
readonly type: "object";
|
|
78
|
+
readonly properties: {
|
|
79
|
+
readonly errors: {
|
|
80
|
+
readonly type: "array";
|
|
81
|
+
readonly items: {
|
|
82
|
+
readonly $ref: "#/components/schemas/APIError";
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
readonly required: readonly ["errors"];
|
|
87
|
+
};
|
|
88
|
+
export declare const APIMetaAuthSchema: {
|
|
89
|
+
readonly type: "object";
|
|
90
|
+
readonly properties: {
|
|
91
|
+
readonly schemes: {
|
|
92
|
+
readonly items: {
|
|
93
|
+
readonly type: "string";
|
|
94
|
+
};
|
|
95
|
+
readonly type: "array";
|
|
96
|
+
readonly description: "the supported types of authentication";
|
|
97
|
+
readonly example: readonly ["basic", "google"];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export declare const APIMetaPosthogSchema: {
|
|
102
|
+
readonly type: "object";
|
|
103
|
+
readonly properties: {
|
|
104
|
+
readonly apiKey: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly description: "the PostHog API key";
|
|
107
|
+
readonly example: "phk_1234567890abcdef";
|
|
108
|
+
};
|
|
109
|
+
readonly apiHost: {
|
|
110
|
+
readonly type: "string";
|
|
111
|
+
readonly description: "the PostHog API host";
|
|
112
|
+
readonly example: "https://posthog.example.com";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
export declare const APIMetaSchema: {
|
|
117
|
+
readonly type: "object";
|
|
118
|
+
readonly properties: {
|
|
119
|
+
readonly auth: {
|
|
120
|
+
readonly $ref: "#/components/schemas/APIMetaAuth";
|
|
121
|
+
};
|
|
122
|
+
readonly pylonAppId: {
|
|
123
|
+
readonly type: "string";
|
|
124
|
+
readonly description: "the Pylon app ID for usepylon.com chat support";
|
|
125
|
+
readonly example: "12345678-1234-1234-1234-123456789012";
|
|
126
|
+
};
|
|
127
|
+
readonly posthog: {
|
|
128
|
+
readonly $ref: "#/components/schemas/APIMetaPosthog";
|
|
129
|
+
};
|
|
130
|
+
readonly allowSignup: {
|
|
131
|
+
readonly type: "boolean";
|
|
132
|
+
readonly description: "whether or not users can sign up for this instance";
|
|
133
|
+
readonly example: true;
|
|
134
|
+
};
|
|
135
|
+
readonly allowInvites: {
|
|
136
|
+
readonly type: "boolean";
|
|
137
|
+
readonly description: "whether or not users can invite other users to this instance";
|
|
138
|
+
readonly example: true;
|
|
139
|
+
};
|
|
140
|
+
readonly allowCreateTenant: {
|
|
141
|
+
readonly type: "boolean";
|
|
142
|
+
readonly description: "whether or not users can create new tenants";
|
|
143
|
+
readonly example: true;
|
|
144
|
+
};
|
|
145
|
+
readonly allowChangePassword: {
|
|
146
|
+
readonly type: "boolean";
|
|
147
|
+
readonly description: "whether or not users can change their password";
|
|
148
|
+
readonly example: true;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export declare const APIMetaIntegrationSchema: {
|
|
153
|
+
readonly type: "object";
|
|
154
|
+
readonly properties: {
|
|
155
|
+
readonly name: {
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly description: "the name of the integration";
|
|
158
|
+
readonly example: "github";
|
|
159
|
+
};
|
|
160
|
+
readonly enabled: {
|
|
161
|
+
readonly type: "boolean";
|
|
162
|
+
readonly description: "whether this integration is enabled on the instance";
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
readonly required: readonly ["name", "enabled"];
|
|
166
|
+
};
|
|
167
|
+
export declare const ListAPIMetaIntegrationSchema: {
|
|
168
|
+
readonly type: "array";
|
|
169
|
+
readonly items: {
|
|
170
|
+
readonly $ref: "#/components/schemas/APIMetaIntegration";
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
export declare const UserLoginRequestSchema: {
|
|
174
|
+
readonly properties: {
|
|
175
|
+
readonly email: {
|
|
176
|
+
readonly type: "string";
|
|
177
|
+
readonly format: "email";
|
|
178
|
+
readonly description: "The email address of the user.";
|
|
179
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
180
|
+
readonly validate: "required,email";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
readonly password: {
|
|
184
|
+
readonly type: "string";
|
|
185
|
+
readonly description: "The password of the user.";
|
|
186
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
187
|
+
readonly validate: "required";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly required: readonly ["email", "password"];
|
|
192
|
+
readonly type: "object";
|
|
193
|
+
};
|
|
194
|
+
export declare const APIResourceMetaSchema: {
|
|
195
|
+
readonly properties: {
|
|
196
|
+
readonly id: {
|
|
197
|
+
readonly type: "string";
|
|
198
|
+
readonly description: "the id of this resource, in UUID format";
|
|
199
|
+
readonly example: "bb214807-246e-43a5-a25d-41761d1cff9e";
|
|
200
|
+
readonly minLength: 0;
|
|
201
|
+
readonly maxLength: 36;
|
|
202
|
+
};
|
|
203
|
+
readonly createdAt: {
|
|
204
|
+
readonly type: "string";
|
|
205
|
+
readonly description: "the time that this resource was created";
|
|
206
|
+
readonly format: "date-time";
|
|
207
|
+
readonly example: "2022-12-13T15:06:48.888358-05:00";
|
|
208
|
+
};
|
|
209
|
+
readonly updatedAt: {
|
|
210
|
+
readonly type: "string";
|
|
211
|
+
readonly description: "the time that this resource was last updated";
|
|
212
|
+
readonly format: "date-time";
|
|
213
|
+
readonly example: "2022-12-13T15:06:48.888358-05:00";
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
readonly required: readonly ["id", "createdAt", "updatedAt"];
|
|
217
|
+
};
|
|
218
|
+
export declare const UserRoleSchema: {
|
|
219
|
+
readonly type: "string";
|
|
220
|
+
readonly enum: readonly ["USER", "ADMIN", "SUPER_ADMIN"];
|
|
221
|
+
readonly description: "User role in the system";
|
|
222
|
+
};
|
|
223
|
+
export declare const UserSchema: {
|
|
224
|
+
readonly properties: {
|
|
225
|
+
readonly metadata: {
|
|
226
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
227
|
+
};
|
|
228
|
+
readonly name: {
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
readonly description: "The display name of the user.";
|
|
231
|
+
};
|
|
232
|
+
readonly email: {
|
|
233
|
+
readonly type: "string";
|
|
234
|
+
readonly format: "email";
|
|
235
|
+
readonly description: "The email address of the user.";
|
|
236
|
+
};
|
|
237
|
+
readonly emailVerified: {
|
|
238
|
+
readonly type: "boolean";
|
|
239
|
+
readonly description: "Whether the user has verified their email address.";
|
|
240
|
+
};
|
|
241
|
+
readonly hasPassword: {
|
|
242
|
+
readonly type: "boolean";
|
|
243
|
+
readonly description: "Whether the user has a password set.";
|
|
244
|
+
};
|
|
245
|
+
readonly emailHash: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
readonly description: "A hash of the user's email address for use with Pylon Support Chat";
|
|
248
|
+
};
|
|
249
|
+
readonly userToken: {
|
|
250
|
+
readonly type: "string";
|
|
251
|
+
readonly description: "The user's token for use with Pylon Support Chat";
|
|
252
|
+
};
|
|
253
|
+
readonly avatarUrl: {
|
|
254
|
+
readonly type: "string";
|
|
255
|
+
readonly description: "The user's avatar URL, typically from OAuth provider like GitHub";
|
|
256
|
+
};
|
|
257
|
+
readonly role: {
|
|
258
|
+
readonly $ref: "#/components/schemas/UserRole";
|
|
259
|
+
readonly description: "The user's role in the system";
|
|
260
|
+
readonly default: "USER";
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
readonly required: readonly ["metadata", "email", "emailVerified", "userToken", "role"];
|
|
264
|
+
readonly type: "object";
|
|
265
|
+
};
|
|
266
|
+
export declare const PaginationResponseSchema: {
|
|
267
|
+
readonly type: "object";
|
|
268
|
+
readonly properties: {
|
|
269
|
+
readonly current_page: {
|
|
270
|
+
readonly type: "integer";
|
|
271
|
+
readonly description: "the current page";
|
|
272
|
+
readonly format: "int64";
|
|
273
|
+
readonly example: 2;
|
|
274
|
+
};
|
|
275
|
+
readonly next_page: {
|
|
276
|
+
readonly type: "integer";
|
|
277
|
+
readonly description: "the next page";
|
|
278
|
+
readonly format: "int64";
|
|
279
|
+
readonly example: 3;
|
|
280
|
+
};
|
|
281
|
+
readonly num_pages: {
|
|
282
|
+
readonly type: "integer";
|
|
283
|
+
readonly description: "the total number of pages for listing";
|
|
284
|
+
readonly format: "int64";
|
|
285
|
+
readonly example: 10;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly example: {
|
|
289
|
+
readonly next_page: 3;
|
|
290
|
+
readonly num_pages: 10;
|
|
291
|
+
readonly current_page: 2;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
export declare const TenantAlertEmailGroupSchema: {
|
|
295
|
+
readonly properties: {
|
|
296
|
+
readonly metadata: {
|
|
297
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
298
|
+
};
|
|
299
|
+
readonly emails: {
|
|
300
|
+
readonly type: "array";
|
|
301
|
+
readonly items: {
|
|
302
|
+
readonly type: "string";
|
|
303
|
+
};
|
|
304
|
+
readonly description: "A list of emails for users";
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
readonly required: readonly ["metadata", "emails"];
|
|
308
|
+
readonly type: "object";
|
|
309
|
+
};
|
|
310
|
+
export declare const TenantAlertEmailGroupListSchema: {
|
|
311
|
+
readonly properties: {
|
|
312
|
+
readonly pagination: {
|
|
313
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
314
|
+
};
|
|
315
|
+
readonly rows: {
|
|
316
|
+
readonly items: {
|
|
317
|
+
readonly $ref: "#/components/schemas/TenantAlertEmailGroup";
|
|
318
|
+
};
|
|
319
|
+
readonly type: "array";
|
|
320
|
+
readonly "x-go-name": "Rows";
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
export declare const CreateTenantAlertEmailGroupRequestSchema: {
|
|
325
|
+
readonly properties: {
|
|
326
|
+
readonly emails: {
|
|
327
|
+
readonly type: "array";
|
|
328
|
+
readonly items: {
|
|
329
|
+
readonly type: "string";
|
|
330
|
+
};
|
|
331
|
+
readonly description: "A list of emails for users";
|
|
332
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
333
|
+
readonly validate: "required,dive,email";
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
readonly required: readonly ["emails"];
|
|
338
|
+
readonly type: "object";
|
|
339
|
+
};
|
|
340
|
+
export declare const TenantResourceSchema: {
|
|
341
|
+
readonly enum: readonly ["WORKER", "WORKER_SLOT", "WORKFLOW_RUN", "TASK_RUN", "CRON", "SCHEDULE"];
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
};
|
|
344
|
+
export declare const TenantResourceLimitSchema: {
|
|
345
|
+
readonly properties: {
|
|
346
|
+
readonly metadata: {
|
|
347
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
348
|
+
};
|
|
349
|
+
readonly resource: {
|
|
350
|
+
readonly $ref: "#/components/schemas/TenantResource";
|
|
351
|
+
readonly description: "The resource associated with this limit.";
|
|
352
|
+
};
|
|
353
|
+
readonly limitValue: {
|
|
354
|
+
readonly type: "integer";
|
|
355
|
+
readonly description: "The limit associated with this limit.";
|
|
356
|
+
};
|
|
357
|
+
readonly alarmValue: {
|
|
358
|
+
readonly type: "integer";
|
|
359
|
+
readonly description: "The alarm value associated with this limit to warn of approaching limit value.";
|
|
360
|
+
};
|
|
361
|
+
readonly value: {
|
|
362
|
+
readonly type: "integer";
|
|
363
|
+
readonly description: "The current value associated with this limit.";
|
|
364
|
+
};
|
|
365
|
+
readonly window: {
|
|
366
|
+
readonly type: "string";
|
|
367
|
+
readonly description: "The meter window for the limit. (i.e. 1 day, 1 week, 1 month)";
|
|
368
|
+
};
|
|
369
|
+
readonly lastRefill: {
|
|
370
|
+
readonly type: "string";
|
|
371
|
+
readonly description: "The last time the limit was refilled.";
|
|
372
|
+
readonly format: "date-time";
|
|
373
|
+
};
|
|
374
|
+
};
|
|
375
|
+
readonly required: readonly ["metadata", "tenantId", "resource", "limitValue", "value"];
|
|
376
|
+
readonly type: "object";
|
|
377
|
+
};
|
|
378
|
+
export declare const TenantResourcePolicySchema: {
|
|
379
|
+
readonly properties: {
|
|
380
|
+
readonly limits: {
|
|
381
|
+
readonly type: "array";
|
|
382
|
+
readonly items: {
|
|
383
|
+
readonly $ref: "#/components/schemas/TenantResourceLimit";
|
|
384
|
+
};
|
|
385
|
+
readonly description: "A list of resource limits for the tenant.";
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly required: readonly ["limits"];
|
|
389
|
+
readonly type: "object";
|
|
390
|
+
};
|
|
391
|
+
export declare const UpdateTenantAlertEmailGroupRequestSchema: {
|
|
392
|
+
readonly properties: {
|
|
393
|
+
readonly emails: {
|
|
394
|
+
readonly type: "array";
|
|
395
|
+
readonly items: {
|
|
396
|
+
readonly type: "string";
|
|
397
|
+
};
|
|
398
|
+
readonly description: "A list of emails for users";
|
|
399
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
400
|
+
readonly validate: "required,dive,email";
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
readonly required: readonly ["emails"];
|
|
405
|
+
readonly type: "object";
|
|
406
|
+
};
|
|
407
|
+
export declare const UserChangePasswordRequestSchema: {
|
|
408
|
+
readonly properties: {
|
|
409
|
+
readonly password: {
|
|
410
|
+
readonly type: "string";
|
|
411
|
+
readonly description: "The password of the user.";
|
|
412
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
413
|
+
readonly validate: "required,password";
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
readonly newPassword: {
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
readonly description: "The new password for the user.";
|
|
419
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
420
|
+
readonly validate: "required,password";
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
readonly required: readonly ["password", "newPassword"];
|
|
425
|
+
readonly type: "object";
|
|
426
|
+
};
|
|
427
|
+
export declare const UserRegisterRequestSchema: {
|
|
428
|
+
readonly properties: {
|
|
429
|
+
readonly name: {
|
|
430
|
+
readonly type: "string";
|
|
431
|
+
readonly description: "The name of the user (optional).";
|
|
432
|
+
};
|
|
433
|
+
readonly email: {
|
|
434
|
+
readonly type: "string";
|
|
435
|
+
readonly format: "email";
|
|
436
|
+
readonly description: "The email address of the user.";
|
|
437
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
438
|
+
readonly validate: "required,email";
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
readonly password: {
|
|
442
|
+
readonly type: "string";
|
|
443
|
+
readonly description: "The password of the user.";
|
|
444
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
445
|
+
readonly validate: "required,password";
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
readonly required: readonly ["email", "password"];
|
|
450
|
+
readonly type: "object";
|
|
451
|
+
};
|
|
452
|
+
export declare const UserTenantPublicSchema: {
|
|
453
|
+
readonly properties: {
|
|
454
|
+
readonly email: {
|
|
455
|
+
readonly type: "string";
|
|
456
|
+
readonly format: "email";
|
|
457
|
+
readonly description: "The email address of the user.";
|
|
458
|
+
};
|
|
459
|
+
readonly name: {
|
|
460
|
+
readonly type: "string";
|
|
461
|
+
readonly description: "The display name of the user.";
|
|
462
|
+
};
|
|
463
|
+
};
|
|
464
|
+
readonly required: readonly ["email"];
|
|
465
|
+
readonly type: "object";
|
|
466
|
+
};
|
|
467
|
+
export declare const TenantMemberRoleSchema: {
|
|
468
|
+
readonly enum: readonly ["OWNER", "ADMIN", "MEMBER"];
|
|
469
|
+
readonly type: "string";
|
|
470
|
+
};
|
|
471
|
+
export declare const TenantSchema: {
|
|
472
|
+
readonly properties: {
|
|
473
|
+
readonly metadata: {
|
|
474
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
475
|
+
};
|
|
476
|
+
readonly name: {
|
|
477
|
+
readonly type: "string";
|
|
478
|
+
readonly description: "The name of the tenant.";
|
|
479
|
+
};
|
|
480
|
+
readonly slug: {
|
|
481
|
+
readonly type: "string";
|
|
482
|
+
readonly description: "The slug of the tenant.";
|
|
483
|
+
};
|
|
484
|
+
readonly analyticsOptOut: {
|
|
485
|
+
readonly type: "boolean";
|
|
486
|
+
readonly description: "Whether the tenant has opted out of analytics.";
|
|
487
|
+
};
|
|
488
|
+
readonly alertMemberEmails: {
|
|
489
|
+
readonly type: "boolean";
|
|
490
|
+
readonly description: "Whether to alert tenant members.";
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
readonly required: readonly ["metadata", "name", "slug"];
|
|
494
|
+
};
|
|
495
|
+
export declare const TenantMemberSchema: {
|
|
496
|
+
readonly properties: {
|
|
497
|
+
readonly metadata: {
|
|
498
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
499
|
+
};
|
|
500
|
+
readonly user: {
|
|
501
|
+
readonly $ref: "#/components/schemas/UserTenantPublic";
|
|
502
|
+
readonly description: "The user associated with this tenant member.";
|
|
503
|
+
};
|
|
504
|
+
readonly role: {
|
|
505
|
+
readonly $ref: "#/components/schemas/TenantMemberRole";
|
|
506
|
+
readonly description: "The role of the user in the tenant.";
|
|
507
|
+
};
|
|
508
|
+
readonly tenant: {
|
|
509
|
+
readonly $ref: "#/components/schemas/Tenant";
|
|
510
|
+
readonly description: "The tenant associated with this tenant member.";
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
readonly required: readonly ["metadata", "user", "role"];
|
|
514
|
+
readonly type: "object";
|
|
515
|
+
};
|
|
516
|
+
export declare const UserTenantMembershipsListSchema: {
|
|
517
|
+
readonly properties: {
|
|
518
|
+
readonly pagination: {
|
|
519
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
520
|
+
};
|
|
521
|
+
readonly rows: {
|
|
522
|
+
readonly items: {
|
|
523
|
+
readonly $ref: "#/components/schemas/TenantMember";
|
|
524
|
+
};
|
|
525
|
+
readonly type: "array";
|
|
526
|
+
readonly "x-go-name": "Rows";
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
export declare const TenantInviteSchema: {
|
|
531
|
+
readonly properties: {
|
|
532
|
+
readonly metadata: {
|
|
533
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
534
|
+
};
|
|
535
|
+
readonly email: {
|
|
536
|
+
readonly type: "string";
|
|
537
|
+
readonly description: "The email of the user to invite.";
|
|
538
|
+
};
|
|
539
|
+
readonly role: {
|
|
540
|
+
readonly $ref: "#/components/schemas/TenantMemberRole";
|
|
541
|
+
readonly description: "The role of the user in the tenant.";
|
|
542
|
+
};
|
|
543
|
+
readonly tenantId: {
|
|
544
|
+
readonly type: "string";
|
|
545
|
+
readonly description: "The tenant id associated with this tenant invite.";
|
|
546
|
+
};
|
|
547
|
+
readonly tenantName: {
|
|
548
|
+
readonly type: "string";
|
|
549
|
+
readonly description: "The tenant name for the tenant.";
|
|
550
|
+
};
|
|
551
|
+
readonly expires: {
|
|
552
|
+
readonly type: "string";
|
|
553
|
+
readonly description: "The time that this invite expires.";
|
|
554
|
+
readonly format: "date-time";
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
readonly required: readonly ["metadata", "email", "role", "expires", "tenantId"];
|
|
558
|
+
readonly type: "object";
|
|
559
|
+
};
|
|
560
|
+
export declare const TenantInviteListSchema: {
|
|
561
|
+
readonly properties: {
|
|
562
|
+
readonly pagination: {
|
|
563
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
564
|
+
};
|
|
565
|
+
readonly rows: {
|
|
566
|
+
readonly items: {
|
|
567
|
+
readonly $ref: "#/components/schemas/TenantInvite";
|
|
568
|
+
};
|
|
569
|
+
readonly type: "array";
|
|
570
|
+
readonly "x-go-name": "Rows";
|
|
571
|
+
};
|
|
572
|
+
};
|
|
573
|
+
};
|
|
574
|
+
export declare const AcceptInviteRequestSchema: {
|
|
575
|
+
readonly properties: {
|
|
576
|
+
readonly invite: {
|
|
577
|
+
readonly type: "string";
|
|
578
|
+
readonly example: "bb214807-246e-43a5-a25d-41761d1cff9e";
|
|
579
|
+
readonly minLength: 36;
|
|
580
|
+
readonly maxLength: 36;
|
|
581
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
582
|
+
readonly validate: "required,uuid";
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
readonly required: readonly ["invite"];
|
|
587
|
+
readonly type: "object";
|
|
588
|
+
};
|
|
589
|
+
export declare const RejectInviteRequestSchema: {
|
|
590
|
+
readonly properties: {
|
|
591
|
+
readonly invite: {
|
|
592
|
+
readonly type: "string";
|
|
593
|
+
readonly example: "bb214807-246e-43a5-a25d-41761d1cff9e";
|
|
594
|
+
readonly minLength: 36;
|
|
595
|
+
readonly maxLength: 36;
|
|
596
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
597
|
+
readonly validate: "required,uuid";
|
|
598
|
+
};
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
readonly required: readonly ["invite"];
|
|
602
|
+
readonly type: "object";
|
|
603
|
+
};
|
|
604
|
+
export declare const GitHubRepositorySchema: {
|
|
605
|
+
readonly properties: {
|
|
606
|
+
readonly id: {
|
|
607
|
+
readonly type: "integer";
|
|
608
|
+
readonly description: "The GitHub repository ID";
|
|
609
|
+
};
|
|
610
|
+
readonly name: {
|
|
611
|
+
readonly type: "string";
|
|
612
|
+
readonly description: "The repository name";
|
|
613
|
+
};
|
|
614
|
+
readonly fullName: {
|
|
615
|
+
readonly type: "string";
|
|
616
|
+
readonly description: "The full repository name (owner/repo)";
|
|
617
|
+
};
|
|
618
|
+
readonly htmlUrl: {
|
|
619
|
+
readonly type: "string";
|
|
620
|
+
readonly format: "uri";
|
|
621
|
+
readonly description: "The repository HTML URL";
|
|
622
|
+
};
|
|
623
|
+
readonly cloneUrl: {
|
|
624
|
+
readonly type: "string";
|
|
625
|
+
readonly format: "uri";
|
|
626
|
+
readonly description: "The repository clone URL";
|
|
627
|
+
};
|
|
628
|
+
readonly private: {
|
|
629
|
+
readonly type: "boolean";
|
|
630
|
+
readonly description: "Whether the repository is private";
|
|
631
|
+
};
|
|
632
|
+
readonly description: {
|
|
633
|
+
readonly type: "string";
|
|
634
|
+
readonly description: "The repository description";
|
|
635
|
+
readonly nullable: true;
|
|
636
|
+
};
|
|
637
|
+
readonly language: {
|
|
638
|
+
readonly type: "string";
|
|
639
|
+
readonly description: "The primary programming language";
|
|
640
|
+
readonly nullable: true;
|
|
641
|
+
};
|
|
642
|
+
readonly stargazersCount: {
|
|
643
|
+
readonly type: "integer";
|
|
644
|
+
readonly description: "Number of stars";
|
|
645
|
+
};
|
|
646
|
+
readonly forksCount: {
|
|
647
|
+
readonly type: "integer";
|
|
648
|
+
readonly description: "Number of forks";
|
|
649
|
+
};
|
|
650
|
+
readonly updatedAt: {
|
|
651
|
+
readonly type: "string";
|
|
652
|
+
readonly format: "date-time";
|
|
653
|
+
readonly description: "Last updated timestamp";
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
readonly required: readonly ["id", "name", "fullName", "htmlUrl", "cloneUrl", "private", "stargazersCount", "forksCount", "updatedAt"];
|
|
657
|
+
readonly type: "object";
|
|
658
|
+
};
|
|
659
|
+
export declare const GitHubRepositoryListSchema: {
|
|
660
|
+
readonly properties: {
|
|
661
|
+
readonly rows: {
|
|
662
|
+
readonly type: "array";
|
|
663
|
+
readonly items: {
|
|
664
|
+
readonly $ref: "#/components/schemas/GitHubRepository";
|
|
665
|
+
};
|
|
666
|
+
readonly description: "List of GitHub repositories";
|
|
667
|
+
};
|
|
668
|
+
};
|
|
669
|
+
readonly required: readonly ["rows"];
|
|
670
|
+
readonly type: "object";
|
|
671
|
+
};
|
|
672
|
+
export declare const AdminUserListSchema: {
|
|
673
|
+
readonly properties: {
|
|
674
|
+
readonly pagination: {
|
|
675
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
676
|
+
};
|
|
677
|
+
readonly rows: {
|
|
678
|
+
readonly type: "array";
|
|
679
|
+
readonly items: {
|
|
680
|
+
readonly $ref: "#/components/schemas/User";
|
|
681
|
+
};
|
|
682
|
+
readonly description: "List of users";
|
|
683
|
+
};
|
|
684
|
+
readonly totalCount: {
|
|
685
|
+
readonly type: "integer";
|
|
686
|
+
readonly description: "Total number of users matching the filter";
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
readonly required: readonly ["rows", "totalCount"];
|
|
690
|
+
readonly type: "object";
|
|
691
|
+
};
|
|
692
|
+
export declare const AdminUserCreateRequestSchema: {
|
|
693
|
+
readonly properties: {
|
|
694
|
+
readonly name: {
|
|
695
|
+
readonly type: "string";
|
|
696
|
+
readonly description: "The display name of the user";
|
|
697
|
+
readonly maxLength: 255;
|
|
698
|
+
};
|
|
699
|
+
readonly email: {
|
|
700
|
+
readonly type: "string";
|
|
701
|
+
readonly format: "email";
|
|
702
|
+
readonly description: "The email address of the user";
|
|
703
|
+
readonly maxLength: 255;
|
|
704
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
705
|
+
readonly validate: "required,email";
|
|
706
|
+
};
|
|
707
|
+
};
|
|
708
|
+
readonly password: {
|
|
709
|
+
readonly type: "string";
|
|
710
|
+
readonly description: "The password for the user";
|
|
711
|
+
readonly minLength: 8;
|
|
712
|
+
readonly maxLength: 128;
|
|
713
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
714
|
+
readonly validate: "required,min=8";
|
|
715
|
+
};
|
|
716
|
+
};
|
|
717
|
+
readonly role: {
|
|
718
|
+
readonly $ref: "#/components/schemas/UserRole";
|
|
719
|
+
readonly description: "The role to assign to the user";
|
|
720
|
+
readonly default: "USER";
|
|
721
|
+
};
|
|
722
|
+
readonly emailVerified: {
|
|
723
|
+
readonly type: "boolean";
|
|
724
|
+
readonly description: "Whether to mark the email as verified";
|
|
725
|
+
readonly default: false;
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
readonly required: readonly ["email", "password"];
|
|
729
|
+
readonly type: "object";
|
|
730
|
+
};
|
|
731
|
+
export declare const AdminUserUpdateRequestSchema: {
|
|
732
|
+
readonly properties: {
|
|
733
|
+
readonly name: {
|
|
734
|
+
readonly type: "string";
|
|
735
|
+
readonly description: "The display name of the user";
|
|
736
|
+
readonly maxLength: 255;
|
|
737
|
+
};
|
|
738
|
+
readonly email: {
|
|
739
|
+
readonly type: "string";
|
|
740
|
+
readonly format: "email";
|
|
741
|
+
readonly description: "The email address of the user";
|
|
742
|
+
readonly maxLength: 255;
|
|
743
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
744
|
+
readonly validate: "omitempty,email";
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
readonly password: {
|
|
748
|
+
readonly type: "string";
|
|
749
|
+
readonly description: "New password for the user (optional)";
|
|
750
|
+
readonly minLength: 8;
|
|
751
|
+
readonly maxLength: 128;
|
|
752
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
753
|
+
readonly validate: "omitempty,min=8";
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
readonly role: {
|
|
757
|
+
readonly $ref: "#/components/schemas/UserRole";
|
|
758
|
+
readonly description: "The role to assign to the user";
|
|
759
|
+
};
|
|
760
|
+
readonly emailVerified: {
|
|
761
|
+
readonly type: "boolean";
|
|
762
|
+
readonly description: "Whether the email is verified";
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
readonly type: "object";
|
|
766
|
+
};
|
|
767
|
+
export declare const APIMessageSchema: {
|
|
768
|
+
readonly type: "object";
|
|
769
|
+
readonly properties: {
|
|
770
|
+
readonly message: {
|
|
771
|
+
readonly type: "string";
|
|
772
|
+
readonly description: "A message describing the result of the operation";
|
|
773
|
+
readonly example: "Operation completed successfully";
|
|
774
|
+
};
|
|
775
|
+
};
|
|
776
|
+
readonly required: readonly ["message"];
|
|
777
|
+
};
|
|
778
|
+
export declare const RoleSchema: {
|
|
779
|
+
readonly properties: {
|
|
780
|
+
readonly metadata: {
|
|
781
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
782
|
+
};
|
|
783
|
+
readonly name: {
|
|
784
|
+
readonly type: "string";
|
|
785
|
+
readonly description: "Role name (unique)";
|
|
786
|
+
};
|
|
787
|
+
readonly description: {
|
|
788
|
+
readonly type: "string";
|
|
789
|
+
readonly description: "Optional role description";
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
readonly required: readonly ["metadata", "name"];
|
|
793
|
+
readonly type: "object";
|
|
794
|
+
};
|
|
795
|
+
export declare const RoleListSchema: {
|
|
796
|
+
readonly properties: {
|
|
797
|
+
readonly rows: {
|
|
798
|
+
readonly type: "array";
|
|
799
|
+
readonly items: {
|
|
800
|
+
readonly $ref: "#/components/schemas/Role";
|
|
801
|
+
};
|
|
802
|
+
readonly description: "List of roles";
|
|
803
|
+
};
|
|
804
|
+
};
|
|
805
|
+
readonly required: readonly ["rows"];
|
|
806
|
+
readonly type: "object";
|
|
807
|
+
};
|
|
808
|
+
export declare const AdminAssignRoleRequestSchema: {
|
|
809
|
+
readonly properties: {
|
|
810
|
+
readonly roleName: {
|
|
811
|
+
readonly type: "string";
|
|
812
|
+
readonly description: "Role name to assign to the user";
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
readonly required: readonly ["roleName"];
|
|
816
|
+
readonly type: "object";
|
|
817
|
+
};
|
|
818
|
+
export declare const TenantParameterSchema: {
|
|
819
|
+
readonly type: "string";
|
|
820
|
+
readonly format: "uuid";
|
|
821
|
+
readonly minLength: 36;
|
|
822
|
+
readonly maxLength: 36;
|
|
823
|
+
};
|
|
824
|
+
export declare const TunnelConfigSchema: {
|
|
825
|
+
readonly type: "object";
|
|
826
|
+
readonly properties: {
|
|
827
|
+
readonly cloudflareToken: {
|
|
828
|
+
readonly type: "string";
|
|
829
|
+
readonly description: "Cloudflare API token for tunnel management";
|
|
830
|
+
readonly example: "cf_token_123456789";
|
|
831
|
+
};
|
|
832
|
+
readonly domain: {
|
|
833
|
+
readonly type: "string";
|
|
834
|
+
readonly description: "Domain name for the tunnel";
|
|
835
|
+
readonly example: "yuepa8.com";
|
|
836
|
+
};
|
|
837
|
+
readonly localPort: {
|
|
838
|
+
readonly type: "string";
|
|
839
|
+
readonly description: "Local port number for the tunnel";
|
|
840
|
+
readonly example: "7788";
|
|
841
|
+
};
|
|
842
|
+
readonly tunnelName: {
|
|
843
|
+
readonly type: "string";
|
|
844
|
+
readonly description: "Custom tunnel name (optional)";
|
|
845
|
+
readonly example: "my-tunnel";
|
|
846
|
+
};
|
|
847
|
+
readonly description: {
|
|
848
|
+
readonly type: "string";
|
|
849
|
+
readonly description: "Description of the tunnel configuration";
|
|
850
|
+
readonly example: "Development tunnel for testing";
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
readonly required: readonly ["cloudflareToken", "domain", "localPort"];
|
|
854
|
+
};
|
|
855
|
+
export declare const UserSettingsSchema: {
|
|
856
|
+
readonly type: "object";
|
|
857
|
+
readonly properties: {
|
|
858
|
+
readonly metadata: {
|
|
859
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
860
|
+
};
|
|
861
|
+
readonly tunnelConfig: {
|
|
862
|
+
readonly $ref: "#/components/schemas/TunnelConfig";
|
|
863
|
+
readonly description: "Cloudflare tunnel configuration (user-specific)";
|
|
864
|
+
};
|
|
865
|
+
readonly exportMetadata: {
|
|
866
|
+
readonly type: "object";
|
|
867
|
+
readonly description: "Metadata about settings export/import";
|
|
868
|
+
readonly properties: {
|
|
869
|
+
readonly exportTimestamp: {
|
|
870
|
+
readonly type: "string";
|
|
871
|
+
readonly format: "date-time";
|
|
872
|
+
readonly description: "When the settings were last exported";
|
|
873
|
+
};
|
|
874
|
+
readonly exportVersion: {
|
|
875
|
+
readonly type: "string";
|
|
876
|
+
readonly description: "Version of the export format";
|
|
877
|
+
readonly example: "1.0";
|
|
878
|
+
};
|
|
879
|
+
readonly exportBy: {
|
|
880
|
+
readonly type: "string";
|
|
881
|
+
readonly description: "Who exported the settings";
|
|
882
|
+
readonly example: "user";
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
readonly required: readonly ["metadata"];
|
|
888
|
+
};
|
|
889
|
+
export declare const UserSettingsUpdateRequestSchema: {
|
|
890
|
+
readonly type: "object";
|
|
891
|
+
readonly properties: {
|
|
892
|
+
readonly tunnelConfig: {
|
|
893
|
+
readonly $ref: "#/components/schemas/TunnelConfig";
|
|
894
|
+
readonly description: "Cloudflare tunnel configuration (user-specific)";
|
|
895
|
+
};
|
|
896
|
+
readonly exportMetadata: {
|
|
897
|
+
readonly type: "object";
|
|
898
|
+
readonly description: "Metadata about settings export/import";
|
|
899
|
+
readonly properties: {
|
|
900
|
+
readonly exportTimestamp: {
|
|
901
|
+
readonly type: "string";
|
|
902
|
+
readonly format: "date-time";
|
|
903
|
+
readonly description: "When the settings were last exported";
|
|
904
|
+
};
|
|
905
|
+
readonly exportVersion: {
|
|
906
|
+
readonly type: "string";
|
|
907
|
+
readonly description: "Version of the export format";
|
|
908
|
+
readonly example: "1.0";
|
|
909
|
+
};
|
|
910
|
+
readonly exportBy: {
|
|
911
|
+
readonly type: "string";
|
|
912
|
+
readonly description: "Who exported the settings";
|
|
913
|
+
readonly example: "user";
|
|
914
|
+
};
|
|
915
|
+
};
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
export declare const UserSettingsCreateRequestSchema: {
|
|
920
|
+
readonly type: "object";
|
|
921
|
+
readonly properties: {
|
|
922
|
+
readonly tunnelConfig: {
|
|
923
|
+
readonly $ref: "#/components/schemas/TunnelConfig";
|
|
924
|
+
readonly description: "Cloudflare tunnel configuration (user-specific)";
|
|
925
|
+
};
|
|
926
|
+
readonly exportMetadata: {
|
|
927
|
+
readonly type: "object";
|
|
928
|
+
readonly description: "Metadata about settings export/import";
|
|
929
|
+
readonly properties: {
|
|
930
|
+
readonly exportTimestamp: {
|
|
931
|
+
readonly type: "string";
|
|
932
|
+
readonly format: "date-time";
|
|
933
|
+
readonly description: "When the settings were last exported";
|
|
934
|
+
};
|
|
935
|
+
readonly exportVersion: {
|
|
936
|
+
readonly type: "string";
|
|
937
|
+
readonly description: "Version of the export format";
|
|
938
|
+
readonly example: "1.0";
|
|
939
|
+
};
|
|
940
|
+
readonly exportBy: {
|
|
941
|
+
readonly type: "string";
|
|
942
|
+
readonly description: "Who exported the settings";
|
|
943
|
+
readonly example: "user";
|
|
944
|
+
};
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
};
|
|
949
|
+
export declare const ServiceSchema: {
|
|
950
|
+
readonly type: "object";
|
|
951
|
+
readonly properties: {
|
|
952
|
+
readonly name: {
|
|
953
|
+
readonly type: "string";
|
|
954
|
+
readonly description: "Service name";
|
|
955
|
+
readonly enum: readonly ["vnc", "sshd", "tunnel", "napcat"];
|
|
956
|
+
readonly example: "vnc";
|
|
957
|
+
};
|
|
958
|
+
readonly displayName: {
|
|
959
|
+
readonly type: "string";
|
|
960
|
+
readonly description: "Human readable service name";
|
|
961
|
+
readonly example: "VNC Remote Desktop";
|
|
962
|
+
};
|
|
963
|
+
readonly status: {
|
|
964
|
+
readonly type: "string";
|
|
965
|
+
readonly description: "Current service status";
|
|
966
|
+
readonly enum: readonly ["running", "stopped", "starting", "stopping", "error"];
|
|
967
|
+
readonly example: "running";
|
|
968
|
+
};
|
|
969
|
+
readonly description: {
|
|
970
|
+
readonly type: "string";
|
|
971
|
+
readonly description: "Service description";
|
|
972
|
+
readonly example: "Web-based VNC remote desktop service";
|
|
973
|
+
};
|
|
974
|
+
readonly port: {
|
|
975
|
+
readonly type: "integer";
|
|
976
|
+
readonly description: "Service port number";
|
|
977
|
+
readonly example: 8444;
|
|
978
|
+
};
|
|
979
|
+
readonly url: {
|
|
980
|
+
readonly type: "string";
|
|
981
|
+
readonly description: "Service access URL";
|
|
982
|
+
readonly example: "http://localhost:8444";
|
|
983
|
+
};
|
|
984
|
+
readonly pid: {
|
|
985
|
+
readonly type: "integer";
|
|
986
|
+
readonly description: "Process ID if running";
|
|
987
|
+
readonly example: 12345;
|
|
988
|
+
};
|
|
989
|
+
readonly startedAt: {
|
|
990
|
+
readonly type: "string";
|
|
991
|
+
readonly format: "date-time";
|
|
992
|
+
readonly description: "Service start time";
|
|
993
|
+
readonly example: "2024-01-01T12:00:00Z";
|
|
994
|
+
};
|
|
995
|
+
readonly config: {
|
|
996
|
+
readonly type: "object";
|
|
997
|
+
readonly description: "Service configuration";
|
|
998
|
+
readonly additionalProperties: true;
|
|
999
|
+
};
|
|
1000
|
+
readonly logs: {
|
|
1001
|
+
readonly type: "array";
|
|
1002
|
+
readonly description: "Recent service logs";
|
|
1003
|
+
readonly items: {
|
|
1004
|
+
readonly type: "string";
|
|
1005
|
+
};
|
|
1006
|
+
readonly example: readonly ["Service started successfully", "Listening on port 8444"];
|
|
1007
|
+
};
|
|
1008
|
+
readonly health: {
|
|
1009
|
+
readonly type: "object";
|
|
1010
|
+
readonly description: "Service health information";
|
|
1011
|
+
readonly properties: {
|
|
1012
|
+
readonly status: {
|
|
1013
|
+
readonly type: "string";
|
|
1014
|
+
readonly enum: readonly ["healthy", "unhealthy", "unknown"];
|
|
1015
|
+
readonly example: "healthy";
|
|
1016
|
+
};
|
|
1017
|
+
readonly lastCheck: {
|
|
1018
|
+
readonly type: "string";
|
|
1019
|
+
readonly format: "date-time";
|
|
1020
|
+
readonly example: "2024-01-01T12:00:00Z";
|
|
1021
|
+
};
|
|
1022
|
+
readonly message: {
|
|
1023
|
+
readonly type: "string";
|
|
1024
|
+
readonly example: "Service is responding normally";
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
readonly required: readonly ["name", "displayName", "status", "description"];
|
|
1030
|
+
};
|
|
1031
|
+
export declare const ServiceStartRequestSchema: {
|
|
1032
|
+
readonly type: "object";
|
|
1033
|
+
readonly properties: {
|
|
1034
|
+
readonly config: {
|
|
1035
|
+
readonly type: "object";
|
|
1036
|
+
readonly description: "Service-specific configuration";
|
|
1037
|
+
readonly additionalProperties: true;
|
|
1038
|
+
};
|
|
1039
|
+
readonly force: {
|
|
1040
|
+
readonly type: "boolean";
|
|
1041
|
+
readonly description: "Force start even if already running";
|
|
1042
|
+
readonly default: false;
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
readonly additionalProperties: false;
|
|
1046
|
+
};
|
|
1047
|
+
export declare const ServiceOperationResponseSchema: {
|
|
1048
|
+
readonly type: "object";
|
|
1049
|
+
readonly properties: {
|
|
1050
|
+
readonly success: {
|
|
1051
|
+
readonly type: "boolean";
|
|
1052
|
+
readonly description: "Operation success status";
|
|
1053
|
+
readonly example: true;
|
|
1054
|
+
};
|
|
1055
|
+
readonly message: {
|
|
1056
|
+
readonly type: "string";
|
|
1057
|
+
readonly description: "Operation result message";
|
|
1058
|
+
readonly example: "Service started successfully";
|
|
1059
|
+
};
|
|
1060
|
+
readonly service: {
|
|
1061
|
+
readonly $ref: "#/components/schemas/Service";
|
|
1062
|
+
};
|
|
1063
|
+
readonly operationId: {
|
|
1064
|
+
readonly type: "string";
|
|
1065
|
+
readonly description: "Unique operation identifier";
|
|
1066
|
+
readonly example: "op_123456";
|
|
1067
|
+
};
|
|
1068
|
+
readonly timestamp: {
|
|
1069
|
+
readonly type: "string";
|
|
1070
|
+
readonly format: "date-time";
|
|
1071
|
+
readonly description: "Operation timestamp";
|
|
1072
|
+
readonly example: "2024-01-01T12:00:00Z";
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
readonly required: readonly ["success", "message", "service", "timestamp"];
|
|
1076
|
+
};
|
|
1077
|
+
export declare const VNCServiceLogsSchema: {
|
|
1078
|
+
readonly type: "object";
|
|
1079
|
+
readonly properties: {
|
|
1080
|
+
readonly logs: {
|
|
1081
|
+
readonly type: "array";
|
|
1082
|
+
readonly description: "Service log entries";
|
|
1083
|
+
readonly items: {
|
|
1084
|
+
readonly type: "object";
|
|
1085
|
+
readonly properties: {
|
|
1086
|
+
readonly timestamp: {
|
|
1087
|
+
readonly type: "string";
|
|
1088
|
+
readonly format: "date-time";
|
|
1089
|
+
readonly description: "Log entry timestamp";
|
|
1090
|
+
readonly example: "2024-01-01T12:00:00Z";
|
|
1091
|
+
};
|
|
1092
|
+
readonly level: {
|
|
1093
|
+
readonly type: "string";
|
|
1094
|
+
readonly description: "Log level";
|
|
1095
|
+
readonly enum: readonly ["debug", "info", "warn", "error"];
|
|
1096
|
+
readonly example: "info";
|
|
1097
|
+
};
|
|
1098
|
+
readonly message: {
|
|
1099
|
+
readonly type: "string";
|
|
1100
|
+
readonly description: "Log message";
|
|
1101
|
+
readonly example: "VNC service started successfully";
|
|
1102
|
+
};
|
|
1103
|
+
readonly source: {
|
|
1104
|
+
readonly type: "string";
|
|
1105
|
+
readonly description: "Log source component";
|
|
1106
|
+
readonly example: "vnc-server";
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
readonly required: readonly ["timestamp", "level", "message"];
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
readonly totalLines: {
|
|
1113
|
+
readonly type: "integer";
|
|
1114
|
+
readonly description: "Total number of log lines available";
|
|
1115
|
+
readonly example: 1500;
|
|
1116
|
+
};
|
|
1117
|
+
readonly hasMore: {
|
|
1118
|
+
readonly type: "boolean";
|
|
1119
|
+
readonly description: "Whether more logs are available";
|
|
1120
|
+
readonly example: true;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
readonly required: readonly ["logs", "totalLines", "hasMore"];
|
|
1124
|
+
};
|
|
1125
|
+
export declare const VNCServiceDiagnosticsSchema: {
|
|
1126
|
+
readonly type: "object";
|
|
1127
|
+
readonly properties: {
|
|
1128
|
+
readonly service: {
|
|
1129
|
+
readonly type: "string";
|
|
1130
|
+
readonly description: "Service name";
|
|
1131
|
+
readonly example: "vnc";
|
|
1132
|
+
};
|
|
1133
|
+
readonly status: {
|
|
1134
|
+
readonly type: "string";
|
|
1135
|
+
readonly description: "Overall diagnostic status";
|
|
1136
|
+
readonly enum: readonly ["healthy", "warning", "error"];
|
|
1137
|
+
readonly example: "healthy";
|
|
1138
|
+
};
|
|
1139
|
+
readonly checks: {
|
|
1140
|
+
readonly type: "array";
|
|
1141
|
+
readonly description: "Individual diagnostic checks";
|
|
1142
|
+
readonly items: {
|
|
1143
|
+
readonly type: "object";
|
|
1144
|
+
readonly properties: {
|
|
1145
|
+
readonly name: {
|
|
1146
|
+
readonly type: "string";
|
|
1147
|
+
readonly description: "Check name";
|
|
1148
|
+
readonly example: "process_running";
|
|
1149
|
+
};
|
|
1150
|
+
readonly status: {
|
|
1151
|
+
readonly type: "string";
|
|
1152
|
+
readonly enum: readonly ["pass", "fail", "warning"];
|
|
1153
|
+
readonly example: "pass";
|
|
1154
|
+
};
|
|
1155
|
+
readonly message: {
|
|
1156
|
+
readonly type: "string";
|
|
1157
|
+
readonly description: "Check result message";
|
|
1158
|
+
readonly example: "VNC process is running with PID 12345";
|
|
1159
|
+
};
|
|
1160
|
+
readonly details: {
|
|
1161
|
+
readonly type: "object";
|
|
1162
|
+
readonly description: "Additional check details";
|
|
1163
|
+
readonly additionalProperties: true;
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
readonly required: readonly ["name", "status", "message"];
|
|
1167
|
+
};
|
|
1168
|
+
};
|
|
1169
|
+
readonly environment: {
|
|
1170
|
+
readonly type: "object";
|
|
1171
|
+
readonly description: "Environment information";
|
|
1172
|
+
readonly properties: {
|
|
1173
|
+
readonly hostname: {
|
|
1174
|
+
readonly type: "string";
|
|
1175
|
+
readonly example: "dev-container";
|
|
1176
|
+
};
|
|
1177
|
+
readonly platform: {
|
|
1178
|
+
readonly type: "string";
|
|
1179
|
+
readonly example: "linux";
|
|
1180
|
+
};
|
|
1181
|
+
readonly containerized: {
|
|
1182
|
+
readonly type: "boolean";
|
|
1183
|
+
readonly example: true;
|
|
1184
|
+
};
|
|
1185
|
+
readonly display: {
|
|
1186
|
+
readonly type: "string";
|
|
1187
|
+
readonly example: ":1";
|
|
1188
|
+
};
|
|
1189
|
+
};
|
|
1190
|
+
readonly additionalProperties: true;
|
|
1191
|
+
};
|
|
1192
|
+
readonly recommendations: {
|
|
1193
|
+
readonly type: "array";
|
|
1194
|
+
readonly description: "Recommendations for issues found";
|
|
1195
|
+
readonly items: {
|
|
1196
|
+
readonly type: "string";
|
|
1197
|
+
};
|
|
1198
|
+
readonly example: readonly ["Consider increasing memory allocation", "Check firewall settings"];
|
|
1199
|
+
};
|
|
1200
|
+
};
|
|
1201
|
+
readonly required: readonly ["service", "status", "checks", "environment"];
|
|
1202
|
+
};
|
|
1203
|
+
export declare const ServiceConfigSchema: {
|
|
1204
|
+
readonly type: "object";
|
|
1205
|
+
readonly properties: {
|
|
1206
|
+
readonly id: {
|
|
1207
|
+
readonly type: "string";
|
|
1208
|
+
readonly format: "uuid";
|
|
1209
|
+
readonly description: "Configuration ID";
|
|
1210
|
+
readonly example: "123e4567-e89b-12d3-a456-426614174000";
|
|
1211
|
+
};
|
|
1212
|
+
readonly tenantId: {
|
|
1213
|
+
readonly type: "string";
|
|
1214
|
+
readonly format: "uuid";
|
|
1215
|
+
readonly description: "Tenant ID";
|
|
1216
|
+
readonly example: "123e4567-e89b-12d3-a456-426614174000";
|
|
1217
|
+
};
|
|
1218
|
+
readonly serviceName: {
|
|
1219
|
+
readonly type: "string";
|
|
1220
|
+
readonly description: "Service name";
|
|
1221
|
+
readonly enum: readonly ["vnc", "sshd", "tunnel", "napcat"];
|
|
1222
|
+
readonly example: "vnc";
|
|
1223
|
+
};
|
|
1224
|
+
readonly displayName: {
|
|
1225
|
+
readonly type: "string";
|
|
1226
|
+
readonly description: "Human readable service name";
|
|
1227
|
+
readonly example: "VNC Remote Desktop";
|
|
1228
|
+
};
|
|
1229
|
+
readonly description: {
|
|
1230
|
+
readonly type: "string";
|
|
1231
|
+
readonly description: "Service description";
|
|
1232
|
+
readonly example: "Web-based VNC remote desktop service";
|
|
1233
|
+
};
|
|
1234
|
+
readonly config: {
|
|
1235
|
+
readonly type: "object";
|
|
1236
|
+
readonly description: "Service configuration parameters";
|
|
1237
|
+
readonly additionalProperties: true;
|
|
1238
|
+
readonly example: {
|
|
1239
|
+
readonly port: 8444;
|
|
1240
|
+
readonly display: ":1";
|
|
1241
|
+
readonly password: "secret123";
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
readonly isEnabled: {
|
|
1245
|
+
readonly type: "boolean";
|
|
1246
|
+
readonly description: "Whether the service is enabled";
|
|
1247
|
+
readonly example: true;
|
|
1248
|
+
};
|
|
1249
|
+
readonly autoStart: {
|
|
1250
|
+
readonly type: "boolean";
|
|
1251
|
+
readonly description: "Whether to auto-start the service";
|
|
1252
|
+
readonly example: false;
|
|
1253
|
+
};
|
|
1254
|
+
readonly createdAt: {
|
|
1255
|
+
readonly type: "string";
|
|
1256
|
+
readonly format: "date-time";
|
|
1257
|
+
readonly description: "Configuration creation time";
|
|
1258
|
+
readonly example: "2024-01-01T12:00:00Z";
|
|
1259
|
+
};
|
|
1260
|
+
readonly updatedAt: {
|
|
1261
|
+
readonly type: "string";
|
|
1262
|
+
readonly format: "date-time";
|
|
1263
|
+
readonly description: "Configuration last update time";
|
|
1264
|
+
readonly example: "2024-01-01T12:00:00Z";
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
readonly required: readonly ["id", "tenantId", "serviceName", "displayName", "config", "isEnabled", "autoStart", "createdAt", "updatedAt"];
|
|
1268
|
+
};
|
|
1269
|
+
export declare const ServiceConfigUpdateRequestSchema: {
|
|
1270
|
+
readonly type: "object";
|
|
1271
|
+
readonly properties: {
|
|
1272
|
+
readonly displayName: {
|
|
1273
|
+
readonly type: "string";
|
|
1274
|
+
readonly description: "Human readable service name";
|
|
1275
|
+
readonly example: "VNC Remote Desktop";
|
|
1276
|
+
};
|
|
1277
|
+
readonly description: {
|
|
1278
|
+
readonly type: "string";
|
|
1279
|
+
readonly description: "Service description";
|
|
1280
|
+
readonly example: "Web-based VNC remote desktop service";
|
|
1281
|
+
};
|
|
1282
|
+
readonly config: {
|
|
1283
|
+
readonly type: "object";
|
|
1284
|
+
readonly description: "Service configuration parameters";
|
|
1285
|
+
readonly additionalProperties: true;
|
|
1286
|
+
readonly example: {
|
|
1287
|
+
readonly port: 8444;
|
|
1288
|
+
readonly display: ":1";
|
|
1289
|
+
readonly password: "secret123";
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
readonly isEnabled: {
|
|
1293
|
+
readonly type: "boolean";
|
|
1294
|
+
readonly description: "Whether the service is enabled";
|
|
1295
|
+
readonly example: true;
|
|
1296
|
+
};
|
|
1297
|
+
readonly autoStart: {
|
|
1298
|
+
readonly type: "boolean";
|
|
1299
|
+
readonly description: "Whether to auto-start the service";
|
|
1300
|
+
readonly example: false;
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
readonly required: readonly ["config"];
|
|
1304
|
+
};
|
|
1305
|
+
export declare const CreateTenantRequestSchema: {
|
|
1306
|
+
readonly properties: {
|
|
1307
|
+
readonly name: {
|
|
1308
|
+
readonly type: "string";
|
|
1309
|
+
readonly description: "The name of the tenant.";
|
|
1310
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1311
|
+
readonly validate: "required";
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1314
|
+
readonly slug: {
|
|
1315
|
+
readonly type: "string";
|
|
1316
|
+
readonly description: "The slug of the tenant.";
|
|
1317
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1318
|
+
readonly validate: "required,hatchetName";
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
};
|
|
1322
|
+
readonly required: readonly ["name", "slug"];
|
|
1323
|
+
readonly type: "object";
|
|
1324
|
+
};
|
|
1325
|
+
export declare const TenantVersionSchema: {
|
|
1326
|
+
readonly enum: readonly ["V0", "V1"];
|
|
1327
|
+
readonly type: "string";
|
|
1328
|
+
};
|
|
1329
|
+
export declare const UpdateTenantRequestSchema: {
|
|
1330
|
+
readonly properties: {
|
|
1331
|
+
readonly name: {
|
|
1332
|
+
readonly type: "string";
|
|
1333
|
+
readonly description: "The name of the tenant.";
|
|
1334
|
+
};
|
|
1335
|
+
readonly analyticsOptOut: {
|
|
1336
|
+
readonly type: "boolean";
|
|
1337
|
+
readonly description: "Whether the tenant has opted out of analytics.";
|
|
1338
|
+
};
|
|
1339
|
+
readonly alertMemberEmails: {
|
|
1340
|
+
readonly type: "boolean";
|
|
1341
|
+
readonly description: "Whether to alert tenant members.";
|
|
1342
|
+
};
|
|
1343
|
+
readonly enableWorkflowRunFailureAlerts: {
|
|
1344
|
+
readonly type: "boolean";
|
|
1345
|
+
readonly description: "Whether to send alerts when workflow runs fail.";
|
|
1346
|
+
};
|
|
1347
|
+
readonly enableExpiringTokenAlerts: {
|
|
1348
|
+
readonly type: "boolean";
|
|
1349
|
+
readonly description: "Whether to enable alerts when tokens are approaching expiration.";
|
|
1350
|
+
};
|
|
1351
|
+
readonly enableTenantResourceLimitAlerts: {
|
|
1352
|
+
readonly type: "boolean";
|
|
1353
|
+
readonly description: "Whether to enable alerts when tenant resources are approaching limits.";
|
|
1354
|
+
};
|
|
1355
|
+
readonly maxAlertingFrequency: {
|
|
1356
|
+
readonly type: "string";
|
|
1357
|
+
readonly description: "The max frequency at which to alert.";
|
|
1358
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1359
|
+
readonly validate: "omitnil,duration";
|
|
1360
|
+
};
|
|
1361
|
+
};
|
|
1362
|
+
readonly version: {
|
|
1363
|
+
readonly $ref: "#/components/schemas/TenantVersion";
|
|
1364
|
+
readonly description: "The version of the tenant.";
|
|
1365
|
+
};
|
|
1366
|
+
};
|
|
1367
|
+
readonly type: "object";
|
|
1368
|
+
};
|
|
1369
|
+
export declare const TenantAlertingSettingsSchema: {
|
|
1370
|
+
readonly properties: {
|
|
1371
|
+
readonly metadata: {
|
|
1372
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
1373
|
+
};
|
|
1374
|
+
readonly alertMemberEmails: {
|
|
1375
|
+
readonly type: "boolean";
|
|
1376
|
+
readonly description: "Whether to alert tenant members.";
|
|
1377
|
+
};
|
|
1378
|
+
readonly enableWorkflowRunFailureAlerts: {
|
|
1379
|
+
readonly type: "boolean";
|
|
1380
|
+
readonly description: "Whether to send alerts when workflow runs fail.";
|
|
1381
|
+
};
|
|
1382
|
+
readonly enableExpiringTokenAlerts: {
|
|
1383
|
+
readonly type: "boolean";
|
|
1384
|
+
readonly description: "Whether to enable alerts when tokens are approaching expiration.";
|
|
1385
|
+
};
|
|
1386
|
+
readonly enableTenantResourceLimitAlerts: {
|
|
1387
|
+
readonly type: "boolean";
|
|
1388
|
+
readonly description: "Whether to enable alerts when tenant resources are approaching limits.";
|
|
1389
|
+
};
|
|
1390
|
+
readonly maxAlertingFrequency: {
|
|
1391
|
+
readonly type: "string";
|
|
1392
|
+
readonly description: "The max frequency at which to alert.";
|
|
1393
|
+
};
|
|
1394
|
+
readonly lastAlertedAt: {
|
|
1395
|
+
readonly type: "string";
|
|
1396
|
+
readonly description: "The last time an alert was sent.";
|
|
1397
|
+
readonly format: "date-time";
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
readonly required: readonly ["metadata", "maxAlertingFrequency"];
|
|
1401
|
+
readonly type: "object";
|
|
1402
|
+
};
|
|
1403
|
+
export declare const CreateTenantInviteRequestSchema: {
|
|
1404
|
+
readonly properties: {
|
|
1405
|
+
readonly email: {
|
|
1406
|
+
readonly type: "string";
|
|
1407
|
+
readonly description: "The email of the user to invite.";
|
|
1408
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1409
|
+
readonly validate: "required,email";
|
|
1410
|
+
};
|
|
1411
|
+
};
|
|
1412
|
+
readonly role: {
|
|
1413
|
+
readonly $ref: "#/components/schemas/TenantMemberRole";
|
|
1414
|
+
readonly description: "The role of the user in the tenant.";
|
|
1415
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1416
|
+
readonly validate: "required";
|
|
1417
|
+
};
|
|
1418
|
+
};
|
|
1419
|
+
};
|
|
1420
|
+
readonly required: readonly ["email", "role"];
|
|
1421
|
+
readonly type: "object";
|
|
1422
|
+
};
|
|
1423
|
+
export declare const UpdateTenantInviteRequestSchema: {
|
|
1424
|
+
readonly properties: {
|
|
1425
|
+
readonly role: {
|
|
1426
|
+
readonly $ref: "#/components/schemas/TenantMemberRole";
|
|
1427
|
+
readonly description: "The role of the user in the tenant.";
|
|
1428
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1429
|
+
readonly validate: "required";
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
};
|
|
1433
|
+
readonly required: readonly ["role"];
|
|
1434
|
+
readonly type: "object";
|
|
1435
|
+
};
|
|
1436
|
+
export declare const APITokenSchema: {
|
|
1437
|
+
readonly type: "object";
|
|
1438
|
+
readonly properties: {
|
|
1439
|
+
readonly metadata: {
|
|
1440
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
1441
|
+
};
|
|
1442
|
+
readonly name: {
|
|
1443
|
+
readonly type: "string";
|
|
1444
|
+
readonly description: "The name of the API token.";
|
|
1445
|
+
readonly maxLength: 255;
|
|
1446
|
+
};
|
|
1447
|
+
readonly expiresAt: {
|
|
1448
|
+
readonly type: "string";
|
|
1449
|
+
readonly format: "date-time";
|
|
1450
|
+
readonly description: "When the API token expires.";
|
|
1451
|
+
};
|
|
1452
|
+
};
|
|
1453
|
+
readonly required: readonly ["metadata", "name", "expiresAt"];
|
|
1454
|
+
};
|
|
1455
|
+
export declare const ListAPITokensResponseSchema: {
|
|
1456
|
+
readonly properties: {
|
|
1457
|
+
readonly pagination: {
|
|
1458
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
1459
|
+
};
|
|
1460
|
+
readonly rows: {
|
|
1461
|
+
readonly items: {
|
|
1462
|
+
readonly $ref: "#/components/schemas/APIToken";
|
|
1463
|
+
};
|
|
1464
|
+
readonly type: "array";
|
|
1465
|
+
};
|
|
1466
|
+
};
|
|
1467
|
+
};
|
|
1468
|
+
export declare const CreateAPITokenRequestSchema: {
|
|
1469
|
+
readonly type: "object";
|
|
1470
|
+
readonly properties: {
|
|
1471
|
+
readonly name: {
|
|
1472
|
+
readonly type: "string";
|
|
1473
|
+
readonly description: "A name for the API token.";
|
|
1474
|
+
readonly maxLength: 255;
|
|
1475
|
+
};
|
|
1476
|
+
readonly expiresIn: {
|
|
1477
|
+
readonly type: "string";
|
|
1478
|
+
readonly description: "The duration for which the token is valid.";
|
|
1479
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
1480
|
+
readonly validate: "omitnil,duration";
|
|
1481
|
+
};
|
|
1482
|
+
};
|
|
1483
|
+
};
|
|
1484
|
+
readonly required: readonly ["name"];
|
|
1485
|
+
};
|
|
1486
|
+
export declare const CreateAPITokenResponseSchema: {
|
|
1487
|
+
readonly type: "object";
|
|
1488
|
+
readonly properties: {
|
|
1489
|
+
readonly token: {
|
|
1490
|
+
readonly type: "string";
|
|
1491
|
+
readonly description: "The API token.";
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
readonly required: readonly ["token"];
|
|
1495
|
+
};
|
|
1496
|
+
export declare const TenantMemberListSchema: {
|
|
1497
|
+
readonly properties: {
|
|
1498
|
+
readonly pagination: {
|
|
1499
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
1500
|
+
};
|
|
1501
|
+
readonly rows: {
|
|
1502
|
+
readonly items: {
|
|
1503
|
+
readonly $ref: "#/components/schemas/TenantMember";
|
|
1504
|
+
};
|
|
1505
|
+
readonly type: "array";
|
|
1506
|
+
readonly "x-go-name": "Rows";
|
|
1507
|
+
};
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
export declare const TenantInfoExportSchema: {
|
|
1511
|
+
readonly properties: {
|
|
1512
|
+
readonly tenant: {
|
|
1513
|
+
readonly $ref: "#/components/schemas/Tenant";
|
|
1514
|
+
readonly description: "The tenant basic information";
|
|
1515
|
+
};
|
|
1516
|
+
readonly members: {
|
|
1517
|
+
readonly type: "array";
|
|
1518
|
+
readonly items: {
|
|
1519
|
+
readonly $ref: "#/components/schemas/TenantMember";
|
|
1520
|
+
};
|
|
1521
|
+
readonly description: "The tenant members list";
|
|
1522
|
+
};
|
|
1523
|
+
readonly invites: {
|
|
1524
|
+
readonly type: "array";
|
|
1525
|
+
readonly items: {
|
|
1526
|
+
readonly $ref: "#/components/schemas/TenantInvite";
|
|
1527
|
+
};
|
|
1528
|
+
readonly description: "The tenant invites list";
|
|
1529
|
+
};
|
|
1530
|
+
readonly export_metadata: {
|
|
1531
|
+
readonly type: "object";
|
|
1532
|
+
readonly properties: {
|
|
1533
|
+
readonly export_version: {
|
|
1534
|
+
readonly type: "string";
|
|
1535
|
+
readonly description: "The export format version";
|
|
1536
|
+
};
|
|
1537
|
+
readonly export_timestamp: {
|
|
1538
|
+
readonly type: "string";
|
|
1539
|
+
readonly format: "date-time";
|
|
1540
|
+
readonly description: "The timestamp when the export was created";
|
|
1541
|
+
};
|
|
1542
|
+
readonly export_by: {
|
|
1543
|
+
readonly type: "string";
|
|
1544
|
+
readonly format: "uuid";
|
|
1545
|
+
readonly description: "The user ID who performed the export";
|
|
1546
|
+
};
|
|
1547
|
+
readonly total_members: {
|
|
1548
|
+
readonly type: "integer";
|
|
1549
|
+
readonly description: "Total number of members";
|
|
1550
|
+
};
|
|
1551
|
+
readonly total_invites: {
|
|
1552
|
+
readonly type: "integer";
|
|
1553
|
+
readonly description: "Total number of pending invites";
|
|
1554
|
+
};
|
|
1555
|
+
};
|
|
1556
|
+
readonly required: readonly ["export_version", "export_timestamp", "export_by", "total_members", "total_invites"];
|
|
1557
|
+
};
|
|
1558
|
+
};
|
|
1559
|
+
readonly required: readonly ["tenant", "members", "invites", "export_metadata"];
|
|
1560
|
+
readonly type: "object";
|
|
1561
|
+
};
|
|
1562
|
+
export declare const ServerInfoSchema: {
|
|
1563
|
+
readonly properties: {
|
|
1564
|
+
readonly version: {
|
|
1565
|
+
readonly type: "string";
|
|
1566
|
+
readonly description: "Server version";
|
|
1567
|
+
};
|
|
1568
|
+
readonly frontend: {
|
|
1569
|
+
readonly type: "object";
|
|
1570
|
+
readonly properties: {
|
|
1571
|
+
readonly port: {
|
|
1572
|
+
readonly type: "integer";
|
|
1573
|
+
readonly description: "Frontend server port";
|
|
1574
|
+
};
|
|
1575
|
+
readonly enabled: {
|
|
1576
|
+
readonly type: "boolean";
|
|
1577
|
+
readonly description: "Whether frontend is enabled";
|
|
1578
|
+
};
|
|
1579
|
+
readonly dir: {
|
|
1580
|
+
readonly type: "string";
|
|
1581
|
+
readonly description: "Frontend source directory";
|
|
1582
|
+
};
|
|
1583
|
+
readonly autoOpenBrowser: {
|
|
1584
|
+
readonly type: "boolean";
|
|
1585
|
+
readonly description: "Whether to auto open browser";
|
|
1586
|
+
};
|
|
1587
|
+
};
|
|
1588
|
+
readonly required: readonly ["port", "enabled", "dir", "autoOpenBrowser"];
|
|
1589
|
+
};
|
|
1590
|
+
readonly server: {
|
|
1591
|
+
readonly type: "object";
|
|
1592
|
+
readonly properties: {
|
|
1593
|
+
readonly port: {
|
|
1594
|
+
readonly type: "integer";
|
|
1595
|
+
readonly description: "Server port";
|
|
1596
|
+
};
|
|
1597
|
+
readonly host: {
|
|
1598
|
+
readonly type: "string";
|
|
1599
|
+
readonly description: "Server host";
|
|
1600
|
+
};
|
|
1601
|
+
};
|
|
1602
|
+
readonly required: readonly ["port", "host"];
|
|
1603
|
+
};
|
|
1604
|
+
};
|
|
1605
|
+
readonly required: readonly ["version", "frontend", "server"];
|
|
1606
|
+
};
|
|
1607
|
+
export declare const SitePropertiesSchema: {
|
|
1608
|
+
readonly required: readonly ["id", "tenant_id", "title", "description", "automation_enabled", "state", "enabled"];
|
|
1609
|
+
readonly properties: {
|
|
1610
|
+
readonly id: {
|
|
1611
|
+
readonly type: "string";
|
|
1612
|
+
readonly description: "站点ID";
|
|
1613
|
+
};
|
|
1614
|
+
readonly tenant_id: {
|
|
1615
|
+
readonly type: "string";
|
|
1616
|
+
readonly description: "租户ID";
|
|
1617
|
+
};
|
|
1618
|
+
readonly updated_at: {
|
|
1619
|
+
readonly type: "string";
|
|
1620
|
+
readonly description: "更新时间";
|
|
1621
|
+
};
|
|
1622
|
+
readonly created_at: {
|
|
1623
|
+
readonly type: "string";
|
|
1624
|
+
readonly description: "创建时间";
|
|
1625
|
+
};
|
|
1626
|
+
readonly enabled: {
|
|
1627
|
+
readonly type: "boolean";
|
|
1628
|
+
readonly description: "是否启用";
|
|
1629
|
+
};
|
|
1630
|
+
readonly title: {
|
|
1631
|
+
readonly type: "string";
|
|
1632
|
+
readonly description: "site 标题";
|
|
1633
|
+
};
|
|
1634
|
+
readonly description: {
|
|
1635
|
+
readonly type: "string";
|
|
1636
|
+
readonly description: "site 描述";
|
|
1637
|
+
};
|
|
1638
|
+
readonly automation_enabled: {
|
|
1639
|
+
readonly type: "boolean";
|
|
1640
|
+
readonly description: "是否启用自动化";
|
|
1641
|
+
};
|
|
1642
|
+
readonly state: {
|
|
1643
|
+
readonly type: "object";
|
|
1644
|
+
readonly description: "站点状态";
|
|
1645
|
+
readonly properties: {
|
|
1646
|
+
readonly status: {
|
|
1647
|
+
readonly type: "string";
|
|
1648
|
+
readonly description: "站点状态";
|
|
1649
|
+
};
|
|
1650
|
+
};
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
export declare const SiteSchema: {
|
|
1655
|
+
readonly allOf: readonly [{
|
|
1656
|
+
readonly $ref: "#/components/schemas/SiteProperties";
|
|
1657
|
+
}];
|
|
1658
|
+
};
|
|
1659
|
+
export declare const SiteListSchema: {
|
|
1660
|
+
readonly properties: {
|
|
1661
|
+
readonly pagination: {
|
|
1662
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
1663
|
+
};
|
|
1664
|
+
readonly rows: {
|
|
1665
|
+
readonly items: {
|
|
1666
|
+
readonly $ref: "#/components/schemas/Site";
|
|
1667
|
+
};
|
|
1668
|
+
readonly type: "array";
|
|
1669
|
+
readonly "x-go-name": "Rows";
|
|
1670
|
+
};
|
|
1671
|
+
};
|
|
1672
|
+
};
|
|
1673
|
+
export declare const CreateSiteRequestSchema: {
|
|
1674
|
+
readonly properties: {
|
|
1675
|
+
readonly title: {
|
|
1676
|
+
readonly type: "string";
|
|
1677
|
+
readonly description: "site 标题";
|
|
1678
|
+
};
|
|
1679
|
+
readonly description: {
|
|
1680
|
+
readonly type: "string";
|
|
1681
|
+
readonly description: "site 描述";
|
|
1682
|
+
};
|
|
1683
|
+
readonly host: {
|
|
1684
|
+
readonly type: "string";
|
|
1685
|
+
readonly description: "入站域名(指定绑定入站域名)";
|
|
1686
|
+
};
|
|
1687
|
+
};
|
|
1688
|
+
readonly required: readonly ["title", "description"];
|
|
1689
|
+
};
|
|
1690
|
+
export declare const UpdateSiteRequestSchema: {
|
|
1691
|
+
readonly type: "object";
|
|
1692
|
+
readonly properties: {
|
|
1693
|
+
readonly title: {
|
|
1694
|
+
readonly type: "string";
|
|
1695
|
+
readonly description: "site 标题";
|
|
1696
|
+
};
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
export declare const SiteHostPropertiesSchema: {
|
|
1700
|
+
readonly required: readonly ["id", "host"];
|
|
1701
|
+
readonly properties: {
|
|
1702
|
+
readonly id: {
|
|
1703
|
+
readonly type: "string";
|
|
1704
|
+
readonly description: "site-host id";
|
|
1705
|
+
};
|
|
1706
|
+
readonly title: {
|
|
1707
|
+
readonly type: "string";
|
|
1708
|
+
readonly description: "site-host 标题";
|
|
1709
|
+
};
|
|
1710
|
+
readonly description: {
|
|
1711
|
+
readonly type: "string";
|
|
1712
|
+
readonly description: "site-host 描述";
|
|
1713
|
+
};
|
|
1714
|
+
readonly host: {
|
|
1715
|
+
readonly type: "string";
|
|
1716
|
+
readonly description: "绑定域名";
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
};
|
|
1720
|
+
export declare const SiteHostSchema: {
|
|
1721
|
+
readonly allOf: readonly [{
|
|
1722
|
+
readonly $ref: "#/components/schemas/SiteHostProperties";
|
|
1723
|
+
}];
|
|
1724
|
+
};
|
|
1725
|
+
export declare const SiteHostListSchema: {
|
|
1726
|
+
readonly properties: {
|
|
1727
|
+
readonly pagination: {
|
|
1728
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
1729
|
+
};
|
|
1730
|
+
readonly rows: {
|
|
1731
|
+
readonly items: {
|
|
1732
|
+
readonly $ref: "#/components/schemas/SiteHost";
|
|
1733
|
+
};
|
|
1734
|
+
readonly type: "array";
|
|
1735
|
+
readonly "x-go-name": "Rows";
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
};
|
|
1739
|
+
export declare const FrontendConfigSchema: {
|
|
1740
|
+
readonly properties: {
|
|
1741
|
+
readonly cookieAccessToken: {
|
|
1742
|
+
readonly type: "string";
|
|
1743
|
+
readonly description: "Cookie access token";
|
|
1744
|
+
};
|
|
1745
|
+
readonly dashPath: {
|
|
1746
|
+
readonly type: "string";
|
|
1747
|
+
readonly description: "Dashboard path";
|
|
1748
|
+
};
|
|
1749
|
+
readonly hotKeyDebug: {
|
|
1750
|
+
readonly type: "string";
|
|
1751
|
+
readonly description: "Hot key debug";
|
|
1752
|
+
};
|
|
1753
|
+
readonly defaultTenantAccessToken: {
|
|
1754
|
+
readonly type: "string";
|
|
1755
|
+
readonly description: "实验性质,默认租户的access token";
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1758
|
+
readonly required: readonly ["cookieAccessToken", "dashPath", "hotKeyDebug", "defaultTenantAccessToken"];
|
|
1759
|
+
};
|
|
1760
|
+
export declare const EndpointSchema: {
|
|
1761
|
+
readonly properties: {
|
|
1762
|
+
readonly metadata: {
|
|
1763
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
1764
|
+
};
|
|
1765
|
+
readonly name: {
|
|
1766
|
+
readonly type: "string";
|
|
1767
|
+
};
|
|
1768
|
+
readonly url: {
|
|
1769
|
+
readonly type: "string";
|
|
1770
|
+
};
|
|
1771
|
+
readonly token: {
|
|
1772
|
+
readonly type: "string";
|
|
1773
|
+
};
|
|
1774
|
+
readonly type: {
|
|
1775
|
+
readonly type: "string";
|
|
1776
|
+
};
|
|
1777
|
+
};
|
|
1778
|
+
readonly required: readonly ["metadata", "name", "url", "token", "type"];
|
|
1779
|
+
};
|
|
1780
|
+
export declare const EndpointListSchema: {
|
|
1781
|
+
readonly properties: {
|
|
1782
|
+
readonly pagination: {
|
|
1783
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
1784
|
+
};
|
|
1785
|
+
readonly rows: {
|
|
1786
|
+
readonly items: {
|
|
1787
|
+
readonly $ref: "#/components/schemas/Endpoint";
|
|
1788
|
+
};
|
|
1789
|
+
readonly type: "array";
|
|
1790
|
+
};
|
|
1791
|
+
};
|
|
1792
|
+
};
|
|
1793
|
+
export declare const UpdateEndpointRequestSchema: {
|
|
1794
|
+
readonly properties: {
|
|
1795
|
+
readonly name: {
|
|
1796
|
+
readonly type: "string";
|
|
1797
|
+
};
|
|
1798
|
+
readonly url: {
|
|
1799
|
+
readonly type: "string";
|
|
1800
|
+
};
|
|
1801
|
+
readonly token: {
|
|
1802
|
+
readonly type: "string";
|
|
1803
|
+
};
|
|
1804
|
+
};
|
|
1805
|
+
};
|
|
1806
|
+
export declare const MtWorkerTaskSchema: {
|
|
1807
|
+
readonly type: "object";
|
|
1808
|
+
readonly properties: {
|
|
1809
|
+
readonly id: {
|
|
1810
|
+
readonly type: "string";
|
|
1811
|
+
};
|
|
1812
|
+
readonly name: {
|
|
1813
|
+
readonly type: "string";
|
|
1814
|
+
};
|
|
1815
|
+
};
|
|
1816
|
+
};
|
|
1817
|
+
export declare const WorkflowWorkerSchema: {
|
|
1818
|
+
readonly type: "object";
|
|
1819
|
+
readonly properties: {
|
|
1820
|
+
readonly id: {
|
|
1821
|
+
readonly type: "string";
|
|
1822
|
+
readonly description: "Worker唯一标识符";
|
|
1823
|
+
};
|
|
1824
|
+
readonly name: {
|
|
1825
|
+
readonly type: "string";
|
|
1826
|
+
readonly description: "Worker名称";
|
|
1827
|
+
};
|
|
1828
|
+
readonly status: {
|
|
1829
|
+
readonly type: "string";
|
|
1830
|
+
readonly enum: readonly ["running", "stopped", "starting", "stopping", "error"];
|
|
1831
|
+
readonly description: "Worker状态";
|
|
1832
|
+
};
|
|
1833
|
+
readonly hatchetUrl: {
|
|
1834
|
+
readonly type: "string";
|
|
1835
|
+
readonly description: "Hatchet服务器URL";
|
|
1836
|
+
};
|
|
1837
|
+
readonly startedAt: {
|
|
1838
|
+
readonly type: "string";
|
|
1839
|
+
readonly format: "date-time";
|
|
1840
|
+
readonly description: "启动时间";
|
|
1841
|
+
};
|
|
1842
|
+
readonly pid: {
|
|
1843
|
+
readonly type: "integer";
|
|
1844
|
+
readonly description: "进程ID";
|
|
1845
|
+
};
|
|
1846
|
+
readonly workflows: {
|
|
1847
|
+
readonly type: "array";
|
|
1848
|
+
readonly items: {
|
|
1849
|
+
readonly type: "string";
|
|
1850
|
+
};
|
|
1851
|
+
readonly description: "支持的工作流列表";
|
|
1852
|
+
};
|
|
1853
|
+
};
|
|
1854
|
+
};
|
|
1855
|
+
export declare const StartWorkerRequestSchema: {
|
|
1856
|
+
readonly type: "object";
|
|
1857
|
+
readonly required: readonly ["name"];
|
|
1858
|
+
readonly properties: {
|
|
1859
|
+
readonly name: {
|
|
1860
|
+
readonly type: "string";
|
|
1861
|
+
readonly description: "Worker名称";
|
|
1862
|
+
};
|
|
1863
|
+
readonly hatchetUrl: {
|
|
1864
|
+
readonly type: "string";
|
|
1865
|
+
readonly description: "Hatchet服务器URL";
|
|
1866
|
+
};
|
|
1867
|
+
readonly hatchetToken: {
|
|
1868
|
+
readonly type: "string";
|
|
1869
|
+
readonly description: "Hatchet认证令牌";
|
|
1870
|
+
};
|
|
1871
|
+
readonly workflows: {
|
|
1872
|
+
readonly type: "array";
|
|
1873
|
+
readonly items: {
|
|
1874
|
+
readonly type: "string";
|
|
1875
|
+
};
|
|
1876
|
+
readonly description: "要启用的工作流列表";
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
};
|
|
1880
|
+
export declare const StopWorkerRequestSchema: {
|
|
1881
|
+
readonly type: "object";
|
|
1882
|
+
readonly required: readonly ["workerId"];
|
|
1883
|
+
readonly properties: {
|
|
1884
|
+
readonly workerId: {
|
|
1885
|
+
readonly type: "string";
|
|
1886
|
+
readonly description: "要停止的Worker ID";
|
|
1887
|
+
};
|
|
1888
|
+
};
|
|
1889
|
+
};
|
|
1890
|
+
export declare const WorkerStatusSchema: {
|
|
1891
|
+
readonly type: "object";
|
|
1892
|
+
readonly properties: {
|
|
1893
|
+
readonly id: {
|
|
1894
|
+
readonly type: "string";
|
|
1895
|
+
readonly description: "Worker ID";
|
|
1896
|
+
};
|
|
1897
|
+
readonly name: {
|
|
1898
|
+
readonly type: "string";
|
|
1899
|
+
readonly description: "Worker名称";
|
|
1900
|
+
};
|
|
1901
|
+
readonly status: {
|
|
1902
|
+
readonly type: "string";
|
|
1903
|
+
readonly enum: readonly ["running", "stopped", "starting", "stopping", "error"];
|
|
1904
|
+
readonly description: "Worker状态";
|
|
1905
|
+
};
|
|
1906
|
+
readonly uptime: {
|
|
1907
|
+
readonly type: "integer";
|
|
1908
|
+
readonly description: "运行时间(秒)";
|
|
1909
|
+
};
|
|
1910
|
+
readonly tasksProcessed: {
|
|
1911
|
+
readonly type: "integer";
|
|
1912
|
+
readonly description: "已处理任务数";
|
|
1913
|
+
};
|
|
1914
|
+
readonly lastActivity: {
|
|
1915
|
+
readonly type: "string";
|
|
1916
|
+
readonly format: "date-time";
|
|
1917
|
+
readonly description: "最后活动时间";
|
|
1918
|
+
};
|
|
1919
|
+
readonly errorMessage: {
|
|
1920
|
+
readonly type: "string";
|
|
1921
|
+
readonly description: "错误信息(如果有)";
|
|
1922
|
+
};
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
export declare const RunWorkflowRequestSchema: {
|
|
1926
|
+
readonly type: "object";
|
|
1927
|
+
readonly required: readonly ["workflowType"];
|
|
1928
|
+
readonly properties: {
|
|
1929
|
+
readonly workflowType: {
|
|
1930
|
+
readonly type: "string";
|
|
1931
|
+
readonly enum: readonly ["hello", "first-task"];
|
|
1932
|
+
readonly description: "工作流类型";
|
|
1933
|
+
};
|
|
1934
|
+
readonly name: {
|
|
1935
|
+
readonly type: "string";
|
|
1936
|
+
readonly description: "名称参数(用于hello工作流)";
|
|
1937
|
+
};
|
|
1938
|
+
readonly message: {
|
|
1939
|
+
readonly type: "string";
|
|
1940
|
+
readonly description: "消息参数(用于first-task工作流)";
|
|
1941
|
+
};
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
export declare const WorkflowResultSchema: {
|
|
1945
|
+
readonly type: "object";
|
|
1946
|
+
readonly properties: {
|
|
1947
|
+
readonly success: {
|
|
1948
|
+
readonly type: "boolean";
|
|
1949
|
+
readonly description: "执行是否成功";
|
|
1950
|
+
};
|
|
1951
|
+
readonly result: {
|
|
1952
|
+
readonly type: "object";
|
|
1953
|
+
readonly description: "工作流执行结果";
|
|
1954
|
+
};
|
|
1955
|
+
readonly error: {
|
|
1956
|
+
readonly type: "string";
|
|
1957
|
+
readonly description: "错误信息(如果有)";
|
|
1958
|
+
};
|
|
1959
|
+
readonly executionTime: {
|
|
1960
|
+
readonly type: "number";
|
|
1961
|
+
readonly description: "执行时间(毫秒)";
|
|
1962
|
+
};
|
|
1963
|
+
};
|
|
1964
|
+
};
|
|
1965
|
+
export declare const RunContainerRequestSchema: {
|
|
1966
|
+
readonly type: "object";
|
|
1967
|
+
readonly properties: {
|
|
1968
|
+
readonly name: {
|
|
1969
|
+
readonly type: "string";
|
|
1970
|
+
readonly description: "Container name (optional, will be auto-generated if not provided)";
|
|
1971
|
+
readonly minLength: 1;
|
|
1972
|
+
readonly maxLength: 255;
|
|
1973
|
+
};
|
|
1974
|
+
readonly image: {
|
|
1975
|
+
readonly type: "string";
|
|
1976
|
+
readonly description: "Docker image to run";
|
|
1977
|
+
readonly default: "gitgit188/gomtm:latest";
|
|
1978
|
+
};
|
|
1979
|
+
readonly command: {
|
|
1980
|
+
readonly type: "string";
|
|
1981
|
+
readonly description: "Command to run in container (optional)";
|
|
1982
|
+
};
|
|
1983
|
+
readonly environment: {
|
|
1984
|
+
readonly type: "object";
|
|
1985
|
+
readonly description: "Environment variables";
|
|
1986
|
+
readonly additionalProperties: true;
|
|
1987
|
+
};
|
|
1988
|
+
readonly volumes: {
|
|
1989
|
+
readonly type: "array";
|
|
1990
|
+
readonly description: "Volume mounts";
|
|
1991
|
+
readonly items: {
|
|
1992
|
+
readonly type: "string";
|
|
1993
|
+
};
|
|
1994
|
+
};
|
|
1995
|
+
readonly ports: {
|
|
1996
|
+
readonly type: "array";
|
|
1997
|
+
readonly description: "Port mappings";
|
|
1998
|
+
readonly items: {
|
|
1999
|
+
readonly type: "string";
|
|
2000
|
+
};
|
|
2001
|
+
};
|
|
2002
|
+
readonly privileged: {
|
|
2003
|
+
readonly type: "boolean";
|
|
2004
|
+
readonly description: "Run container in privileged mode";
|
|
2005
|
+
readonly default: true;
|
|
2006
|
+
};
|
|
2007
|
+
readonly autoRemove: {
|
|
2008
|
+
readonly type: "boolean";
|
|
2009
|
+
readonly description: "Automatically remove container when it exits";
|
|
2010
|
+
readonly default: true;
|
|
2011
|
+
};
|
|
2012
|
+
};
|
|
2013
|
+
};
|
|
2014
|
+
export declare const RunContainerResponseSchema: {
|
|
2015
|
+
readonly type: "object";
|
|
2016
|
+
readonly properties: {
|
|
2017
|
+
readonly containerId: {
|
|
2018
|
+
readonly type: "string";
|
|
2019
|
+
readonly description: "The Docker container ID";
|
|
2020
|
+
};
|
|
2021
|
+
readonly containerName: {
|
|
2022
|
+
readonly type: "string";
|
|
2023
|
+
readonly description: "The container name";
|
|
2024
|
+
};
|
|
2025
|
+
readonly status: {
|
|
2026
|
+
readonly type: "string";
|
|
2027
|
+
readonly description: "Container status";
|
|
2028
|
+
readonly enum: readonly ["created", "running", "stopped", "error"];
|
|
2029
|
+
};
|
|
2030
|
+
readonly message: {
|
|
2031
|
+
readonly type: "string";
|
|
2032
|
+
readonly description: "Status message or error details";
|
|
2033
|
+
};
|
|
2034
|
+
readonly dockerCommand: {
|
|
2035
|
+
readonly type: "string";
|
|
2036
|
+
readonly description: "The actual docker command that was executed";
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
readonly required: readonly ["containerId", "containerName", "status", "message"];
|
|
2040
|
+
};
|
|
2041
|
+
export declare const PostSchema: {
|
|
2042
|
+
readonly properties: {
|
|
2043
|
+
readonly metadata: {
|
|
2044
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
2045
|
+
};
|
|
2046
|
+
readonly title: {
|
|
2047
|
+
readonly type: "string";
|
|
2048
|
+
};
|
|
2049
|
+
readonly content: {
|
|
2050
|
+
readonly type: "string";
|
|
2051
|
+
readonly description: "The tenant associated with this tenant blog";
|
|
2052
|
+
};
|
|
2053
|
+
readonly slug: {
|
|
2054
|
+
readonly type: "string";
|
|
2055
|
+
readonly description: "The slug of the post";
|
|
2056
|
+
};
|
|
2057
|
+
readonly status: {
|
|
2058
|
+
readonly type: "string";
|
|
2059
|
+
readonly enum: readonly ["DRAFT", "PUBLISHED"];
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
readonly required: readonly ["metadata", "title", "content", "slug", "status"];
|
|
2063
|
+
};
|
|
2064
|
+
export declare const PostListSchema: {
|
|
2065
|
+
readonly properties: {
|
|
2066
|
+
readonly pagination: {
|
|
2067
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
2068
|
+
};
|
|
2069
|
+
readonly rows: {
|
|
2070
|
+
readonly items: {
|
|
2071
|
+
readonly $ref: "#/components/schemas/Post";
|
|
2072
|
+
};
|
|
2073
|
+
readonly type: "array";
|
|
2074
|
+
};
|
|
2075
|
+
};
|
|
2076
|
+
};
|
|
2077
|
+
export declare const UpdatePostRequestSchema: {
|
|
2078
|
+
readonly properties: {
|
|
2079
|
+
readonly title: {
|
|
2080
|
+
readonly type: "string";
|
|
2081
|
+
readonly minLength: 3;
|
|
2082
|
+
readonly maxLength: 200;
|
|
2083
|
+
};
|
|
2084
|
+
readonly content: {
|
|
2085
|
+
readonly type: "string";
|
|
2086
|
+
readonly description: "The content of the post";
|
|
2087
|
+
readonly minLength: 50;
|
|
2088
|
+
readonly maxLength: 10240;
|
|
2089
|
+
};
|
|
2090
|
+
readonly slug: {
|
|
2091
|
+
readonly type: "string";
|
|
2092
|
+
readonly description: "The slug of the post";
|
|
2093
|
+
readonly minLength: 3;
|
|
2094
|
+
readonly maxLength: 200;
|
|
2095
|
+
};
|
|
2096
|
+
readonly status: {
|
|
2097
|
+
readonly type: "string";
|
|
2098
|
+
readonly enum: readonly ["DRAFT", "PUBLISHED"];
|
|
2099
|
+
};
|
|
2100
|
+
};
|
|
2101
|
+
readonly required: readonly ["title", "content", "slug", "status"];
|
|
2102
|
+
};
|
|
2103
|
+
export declare const CreatePostRequestSchema: {
|
|
2104
|
+
readonly properties: {
|
|
2105
|
+
readonly siteId: {
|
|
2106
|
+
readonly type: "string";
|
|
2107
|
+
readonly format: "uuid";
|
|
2108
|
+
readonly minLength: 36;
|
|
2109
|
+
readonly maxLength: 36;
|
|
2110
|
+
};
|
|
2111
|
+
readonly title: {
|
|
2112
|
+
readonly type: "string";
|
|
2113
|
+
readonly minLength: 3;
|
|
2114
|
+
readonly maxLength: 200;
|
|
2115
|
+
};
|
|
2116
|
+
readonly content: {
|
|
2117
|
+
readonly type: "string";
|
|
2118
|
+
readonly description: "The tenant associated with this tenant blog.";
|
|
2119
|
+
readonly minLength: 50;
|
|
2120
|
+
readonly maxLength: 10240;
|
|
2121
|
+
};
|
|
2122
|
+
readonly slug: {
|
|
2123
|
+
readonly type: "string";
|
|
2124
|
+
readonly description: "The slug of the post";
|
|
2125
|
+
readonly minLength: 3;
|
|
2126
|
+
readonly maxLength: 200;
|
|
2127
|
+
};
|
|
2128
|
+
readonly authorId: {
|
|
2129
|
+
readonly type: "string";
|
|
2130
|
+
readonly format: "uuid";
|
|
2131
|
+
readonly minLength: 36;
|
|
2132
|
+
readonly maxLength: 36;
|
|
2133
|
+
};
|
|
2134
|
+
readonly status: {
|
|
2135
|
+
readonly type: "string";
|
|
2136
|
+
readonly enum: readonly ["draft", "published"];
|
|
2137
|
+
};
|
|
2138
|
+
};
|
|
2139
|
+
readonly required: readonly ["siteId", "title", "content", "slug"];
|
|
2140
|
+
};
|
|
2141
|
+
export declare const SbWorkerProfileSchema: {
|
|
2142
|
+
readonly required: readonly ["frontendUrl", "isDebug", "autoStart", "defaultProfileName", "defaultProfileUrl", "defaultProfileType"];
|
|
2143
|
+
readonly properties: {
|
|
2144
|
+
readonly frontendUrl: {
|
|
2145
|
+
readonly type: "string";
|
|
2146
|
+
};
|
|
2147
|
+
readonly isDebug: {
|
|
2148
|
+
readonly type: "boolean";
|
|
2149
|
+
};
|
|
2150
|
+
readonly autoStart: {
|
|
2151
|
+
readonly type: "boolean";
|
|
2152
|
+
};
|
|
2153
|
+
readonly defaultProfileName: {
|
|
2154
|
+
readonly type: "string";
|
|
2155
|
+
};
|
|
2156
|
+
readonly defaultProfileUrl: {
|
|
2157
|
+
readonly type: "string";
|
|
2158
|
+
};
|
|
2159
|
+
};
|
|
2160
|
+
};
|
|
2161
|
+
export declare const SbOutboundSchema: {
|
|
2162
|
+
readonly description: "Sing-box outbound configuration";
|
|
2163
|
+
readonly properties: {
|
|
2164
|
+
readonly id: {
|
|
2165
|
+
readonly type: "string";
|
|
2166
|
+
readonly format: "uuid";
|
|
2167
|
+
readonly description: "Unique identifier";
|
|
2168
|
+
};
|
|
2169
|
+
readonly tag: {
|
|
2170
|
+
readonly type: "string";
|
|
2171
|
+
readonly description: "Tag name for this outbound";
|
|
2172
|
+
};
|
|
2173
|
+
readonly type: {
|
|
2174
|
+
readonly type: "string";
|
|
2175
|
+
readonly description: "Type of outbound protocol";
|
|
2176
|
+
};
|
|
2177
|
+
readonly server: {
|
|
2178
|
+
readonly type: "string";
|
|
2179
|
+
readonly description: "Server address";
|
|
2180
|
+
};
|
|
2181
|
+
readonly server_port: {
|
|
2182
|
+
readonly type: "integer";
|
|
2183
|
+
readonly description: "Server port number";
|
|
2184
|
+
};
|
|
2185
|
+
readonly password: {
|
|
2186
|
+
readonly type: "string";
|
|
2187
|
+
readonly description: "Authentication password";
|
|
2188
|
+
readonly nullable: true;
|
|
2189
|
+
};
|
|
2190
|
+
readonly security: {
|
|
2191
|
+
readonly type: "string";
|
|
2192
|
+
readonly description: "Security protocol";
|
|
2193
|
+
readonly nullable: true;
|
|
2194
|
+
};
|
|
2195
|
+
readonly domain_resolver: {
|
|
2196
|
+
readonly type: "string";
|
|
2197
|
+
readonly description: "Domain resolver configuration";
|
|
2198
|
+
readonly nullable: true;
|
|
2199
|
+
};
|
|
2200
|
+
readonly full_config: {
|
|
2201
|
+
readonly type: "object";
|
|
2202
|
+
readonly description: "Complete configuration in JSON format";
|
|
2203
|
+
};
|
|
2204
|
+
readonly created_at: {
|
|
2205
|
+
readonly type: "string";
|
|
2206
|
+
readonly format: "date-time";
|
|
2207
|
+
readonly description: "Creation timestamp";
|
|
2208
|
+
};
|
|
2209
|
+
readonly updated_at: {
|
|
2210
|
+
readonly type: "string";
|
|
2211
|
+
readonly format: "date-time";
|
|
2212
|
+
readonly description: "Last update timestamp";
|
|
2213
|
+
};
|
|
2214
|
+
};
|
|
2215
|
+
};
|
|
2216
|
+
export declare const SbOutboundCreateSchema: {
|
|
2217
|
+
readonly description: "Create a new sing-box outbound";
|
|
2218
|
+
readonly required: readonly ["tag", "type", "server", "server_port", "full_config"];
|
|
2219
|
+
readonly properties: {
|
|
2220
|
+
readonly tag: {
|
|
2221
|
+
readonly type: "string";
|
|
2222
|
+
readonly description: "Tag name for this outbound";
|
|
2223
|
+
};
|
|
2224
|
+
readonly type: {
|
|
2225
|
+
readonly type: "string";
|
|
2226
|
+
readonly description: "Type of outbound protocol";
|
|
2227
|
+
};
|
|
2228
|
+
readonly server: {
|
|
2229
|
+
readonly type: "string";
|
|
2230
|
+
readonly description: "Server address";
|
|
2231
|
+
};
|
|
2232
|
+
readonly server_port: {
|
|
2233
|
+
readonly type: "integer";
|
|
2234
|
+
readonly description: "Server port number";
|
|
2235
|
+
};
|
|
2236
|
+
readonly password: {
|
|
2237
|
+
readonly type: "string";
|
|
2238
|
+
readonly description: "Authentication password";
|
|
2239
|
+
readonly nullable: true;
|
|
2240
|
+
};
|
|
2241
|
+
readonly security: {
|
|
2242
|
+
readonly type: "string";
|
|
2243
|
+
readonly description: "Security protocol";
|
|
2244
|
+
readonly nullable: true;
|
|
2245
|
+
};
|
|
2246
|
+
readonly domain_resolver: {
|
|
2247
|
+
readonly type: "string";
|
|
2248
|
+
readonly description: "Domain resolver configuration";
|
|
2249
|
+
readonly nullable: true;
|
|
2250
|
+
};
|
|
2251
|
+
readonly full_config: {
|
|
2252
|
+
readonly type: "object";
|
|
2253
|
+
readonly description: "Complete configuration in JSON format";
|
|
2254
|
+
};
|
|
2255
|
+
};
|
|
2256
|
+
};
|
|
2257
|
+
export declare const SbImportRequestSchema: {
|
|
2258
|
+
readonly required: readonly ["url"];
|
|
2259
|
+
readonly properties: {
|
|
2260
|
+
readonly url: {
|
|
2261
|
+
readonly type: "string";
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
};
|
|
2265
|
+
export declare const BrowserSchema: {
|
|
2266
|
+
readonly description: "浏览器配置,类似于指纹浏览器的功能,用于管理浏览器配置文件";
|
|
2267
|
+
readonly required: readonly ["name", "url"];
|
|
2268
|
+
readonly properties: {
|
|
2269
|
+
readonly metadata: {
|
|
2270
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
2271
|
+
};
|
|
2272
|
+
readonly name: {
|
|
2273
|
+
readonly type: "string";
|
|
2274
|
+
readonly description: "浏览器配置名称";
|
|
2275
|
+
readonly example: "测试浏览器配置";
|
|
2276
|
+
};
|
|
2277
|
+
readonly description: {
|
|
2278
|
+
readonly type: "string";
|
|
2279
|
+
readonly description: "浏览器配置描述";
|
|
2280
|
+
readonly example: "用于测试的浏览器配置";
|
|
2281
|
+
};
|
|
2282
|
+
readonly url: {
|
|
2283
|
+
readonly type: "string";
|
|
2284
|
+
readonly description: "浏览器默认访问URL";
|
|
2285
|
+
readonly example: "https://example.com";
|
|
2286
|
+
};
|
|
2287
|
+
readonly properties: {
|
|
2288
|
+
readonly type: "object";
|
|
2289
|
+
readonly description: "浏览器配置属性(JSON格式)";
|
|
2290
|
+
readonly additionalProperties: true;
|
|
2291
|
+
readonly example: {
|
|
2292
|
+
readonly userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36";
|
|
2293
|
+
readonly viewport: {
|
|
2294
|
+
readonly width: 375;
|
|
2295
|
+
readonly height: 667;
|
|
2296
|
+
};
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
readonly tags: {
|
|
2300
|
+
readonly type: "array";
|
|
2301
|
+
readonly items: {
|
|
2302
|
+
readonly type: "string";
|
|
2303
|
+
};
|
|
2304
|
+
readonly description: "浏览器配置标签";
|
|
2305
|
+
readonly example: readonly ["测试", "开发"];
|
|
2306
|
+
};
|
|
2307
|
+
readonly lastUsedAt: {
|
|
2308
|
+
readonly type: "string";
|
|
2309
|
+
readonly format: "date-time";
|
|
2310
|
+
readonly description: "最后使用时间";
|
|
2311
|
+
};
|
|
2312
|
+
readonly createdAt: {
|
|
2313
|
+
readonly type: "string";
|
|
2314
|
+
readonly format: "date-time";
|
|
2315
|
+
readonly description: "创建时间";
|
|
2316
|
+
};
|
|
2317
|
+
readonly updatedAt: {
|
|
2318
|
+
readonly type: "string";
|
|
2319
|
+
readonly format: "date-time";
|
|
2320
|
+
readonly description: "更新时间";
|
|
2321
|
+
};
|
|
2322
|
+
};
|
|
2323
|
+
};
|
|
2324
|
+
export declare const BrowserListSchema: {
|
|
2325
|
+
readonly description: "浏览器配置列表响应";
|
|
2326
|
+
readonly properties: {
|
|
2327
|
+
readonly pagination: {
|
|
2328
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
2329
|
+
};
|
|
2330
|
+
readonly rows: {
|
|
2331
|
+
readonly type: "array";
|
|
2332
|
+
readonly items: {
|
|
2333
|
+
readonly $ref: "#/components/schemas/Browser";
|
|
2334
|
+
};
|
|
2335
|
+
readonly description: "浏览器配置列表";
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2338
|
+
};
|
|
2339
|
+
export declare const BrowserCreateSchema: {
|
|
2340
|
+
readonly description: "创建浏览器配置的请求";
|
|
2341
|
+
readonly required: readonly ["name", "url"];
|
|
2342
|
+
readonly properties: {
|
|
2343
|
+
readonly name: {
|
|
2344
|
+
readonly type: "string";
|
|
2345
|
+
readonly description: "浏览器配置名称";
|
|
2346
|
+
readonly example: "测试浏览器配置";
|
|
2347
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
2348
|
+
readonly validate: "required";
|
|
2349
|
+
};
|
|
2350
|
+
};
|
|
2351
|
+
readonly description: {
|
|
2352
|
+
readonly type: "string";
|
|
2353
|
+
readonly description: "浏览器配置描述";
|
|
2354
|
+
readonly example: "用于测试的浏览器配置";
|
|
2355
|
+
};
|
|
2356
|
+
readonly url: {
|
|
2357
|
+
readonly type: "string";
|
|
2358
|
+
readonly description: "浏览器默认访问URL";
|
|
2359
|
+
readonly example: "https://example.com";
|
|
2360
|
+
readonly "x-oapi-codegen-extra-tags": {
|
|
2361
|
+
readonly validate: "required,url";
|
|
2362
|
+
};
|
|
2363
|
+
};
|
|
2364
|
+
readonly properties: {
|
|
2365
|
+
readonly type: "object";
|
|
2366
|
+
readonly description: "浏览器配置属性(JSON格式)";
|
|
2367
|
+
readonly additionalProperties: true;
|
|
2368
|
+
readonly example: {
|
|
2369
|
+
readonly userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36";
|
|
2370
|
+
readonly viewport: {
|
|
2371
|
+
readonly width: 375;
|
|
2372
|
+
readonly height: 667;
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
};
|
|
2376
|
+
readonly tags: {
|
|
2377
|
+
readonly type: "array";
|
|
2378
|
+
readonly items: {
|
|
2379
|
+
readonly type: "string";
|
|
2380
|
+
};
|
|
2381
|
+
readonly description: "浏览器配置标签";
|
|
2382
|
+
readonly example: readonly ["测试", "开发"];
|
|
2383
|
+
};
|
|
2384
|
+
};
|
|
2385
|
+
};
|
|
2386
|
+
export declare const BrowserExportSchema: {
|
|
2387
|
+
readonly description: "浏览器配置导出响应";
|
|
2388
|
+
readonly properties: {
|
|
2389
|
+
readonly exportedAt: {
|
|
2390
|
+
readonly type: "string";
|
|
2391
|
+
readonly format: "date-time";
|
|
2392
|
+
readonly description: "导出时间";
|
|
2393
|
+
};
|
|
2394
|
+
readonly tenantId: {
|
|
2395
|
+
readonly type: "string";
|
|
2396
|
+
readonly format: "uuid";
|
|
2397
|
+
readonly description: "租户ID";
|
|
2398
|
+
};
|
|
2399
|
+
readonly browsers: {
|
|
2400
|
+
readonly type: "array";
|
|
2401
|
+
readonly items: {
|
|
2402
|
+
readonly $ref: "#/components/schemas/Browser";
|
|
2403
|
+
};
|
|
2404
|
+
readonly description: "导出的浏览器配置列表";
|
|
2405
|
+
};
|
|
2406
|
+
readonly count: {
|
|
2407
|
+
readonly type: "integer";
|
|
2408
|
+
readonly description: "导出的浏览器配置数量";
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
};
|
|
2412
|
+
export declare const UserDataArchiveSchema: {
|
|
2413
|
+
readonly description: "用户数据归档信息";
|
|
2414
|
+
readonly properties: {
|
|
2415
|
+
readonly archive: {
|
|
2416
|
+
readonly type: "string";
|
|
2417
|
+
readonly description: "Base64编码的tar.gz用户数据归档";
|
|
2418
|
+
};
|
|
2419
|
+
readonly checksum: {
|
|
2420
|
+
readonly type: "string";
|
|
2421
|
+
readonly description: "MD5校验和";
|
|
2422
|
+
};
|
|
2423
|
+
readonly size: {
|
|
2424
|
+
readonly type: "integer";
|
|
2425
|
+
readonly format: "int64";
|
|
2426
|
+
readonly description: "原始数据大小(字节)";
|
|
2427
|
+
};
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2430
|
+
export declare const BrowserWithUserDataSchema: {
|
|
2431
|
+
readonly description: "包含用户数据的浏览器配置";
|
|
2432
|
+
readonly properties: {
|
|
2433
|
+
readonly config: {
|
|
2434
|
+
readonly $ref: "#/components/schemas/Browser";
|
|
2435
|
+
readonly description: "浏览器配置信息";
|
|
2436
|
+
};
|
|
2437
|
+
readonly userData: {
|
|
2438
|
+
readonly $ref: "#/components/schemas/UserDataArchive";
|
|
2439
|
+
readonly description: "用户数据归档,可选";
|
|
2440
|
+
};
|
|
2441
|
+
};
|
|
2442
|
+
};
|
|
2443
|
+
export declare const ExportMetadataSchema: {
|
|
2444
|
+
readonly description: "导出元数据";
|
|
2445
|
+
readonly properties: {
|
|
2446
|
+
readonly version: {
|
|
2447
|
+
readonly type: "string";
|
|
2448
|
+
readonly description: "导出格式版本";
|
|
2449
|
+
readonly example: "2.0";
|
|
2450
|
+
};
|
|
2451
|
+
readonly includeUserData: {
|
|
2452
|
+
readonly type: "boolean";
|
|
2453
|
+
readonly description: "是否包含用户数据";
|
|
2454
|
+
};
|
|
2455
|
+
readonly totalSize: {
|
|
2456
|
+
readonly type: "integer";
|
|
2457
|
+
readonly format: "int64";
|
|
2458
|
+
readonly description: "总数据大小(字节)";
|
|
2459
|
+
};
|
|
2460
|
+
readonly compressionRatio: {
|
|
2461
|
+
readonly type: "number";
|
|
2462
|
+
readonly format: "float";
|
|
2463
|
+
readonly description: "压缩比率";
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
};
|
|
2467
|
+
export declare const BrowserCompleteExportSchema: {
|
|
2468
|
+
readonly description: "浏览器完整导出响应,包含配置和用户数据";
|
|
2469
|
+
readonly properties: {
|
|
2470
|
+
readonly exportedAt: {
|
|
2471
|
+
readonly type: "string";
|
|
2472
|
+
readonly format: "date-time";
|
|
2473
|
+
readonly description: "导出时间";
|
|
2474
|
+
};
|
|
2475
|
+
readonly tenantId: {
|
|
2476
|
+
readonly type: "string";
|
|
2477
|
+
readonly format: "uuid";
|
|
2478
|
+
readonly description: "租户ID";
|
|
2479
|
+
};
|
|
2480
|
+
readonly browsers: {
|
|
2481
|
+
readonly type: "array";
|
|
2482
|
+
readonly items: {
|
|
2483
|
+
readonly $ref: "#/components/schemas/BrowserWithUserData";
|
|
2484
|
+
};
|
|
2485
|
+
readonly description: "导出的浏览器配置和用户数据列表";
|
|
2486
|
+
};
|
|
2487
|
+
readonly count: {
|
|
2488
|
+
readonly type: "integer";
|
|
2489
|
+
readonly description: "导出的浏览器配置数量";
|
|
2490
|
+
};
|
|
2491
|
+
readonly metadata: {
|
|
2492
|
+
readonly $ref: "#/components/schemas/ExportMetadata";
|
|
2493
|
+
readonly description: "导出元数据";
|
|
2494
|
+
};
|
|
2495
|
+
};
|
|
2496
|
+
};
|
|
2497
|
+
export declare const BrowserImportSchema: {
|
|
2498
|
+
readonly description: "浏览器配置导入请求";
|
|
2499
|
+
readonly required: readonly ["browsers"];
|
|
2500
|
+
readonly properties: {
|
|
2501
|
+
readonly browsers: {
|
|
2502
|
+
readonly type: "array";
|
|
2503
|
+
readonly items: {
|
|
2504
|
+
readonly $ref: "#/components/schemas/BrowserCreate";
|
|
2505
|
+
};
|
|
2506
|
+
readonly description: "要导入的浏览器配置列表";
|
|
2507
|
+
};
|
|
2508
|
+
readonly overwrite: {
|
|
2509
|
+
readonly type: "boolean";
|
|
2510
|
+
readonly description: "是否覆盖同名的现有配置";
|
|
2511
|
+
readonly default: false;
|
|
2512
|
+
};
|
|
2513
|
+
};
|
|
2514
|
+
};
|
|
2515
|
+
export declare const BrowserImportResultSchema: {
|
|
2516
|
+
readonly description: "浏览器配置导入结果";
|
|
2517
|
+
readonly properties: {
|
|
2518
|
+
readonly importedAt: {
|
|
2519
|
+
readonly type: "string";
|
|
2520
|
+
readonly format: "date-time";
|
|
2521
|
+
readonly description: "导入时间";
|
|
2522
|
+
};
|
|
2523
|
+
readonly totalCount: {
|
|
2524
|
+
readonly type: "integer";
|
|
2525
|
+
readonly description: "总共尝试导入的配置数量";
|
|
2526
|
+
};
|
|
2527
|
+
readonly successCount: {
|
|
2528
|
+
readonly type: "integer";
|
|
2529
|
+
readonly description: "成功导入的配置数量";
|
|
2530
|
+
};
|
|
2531
|
+
readonly failedCount: {
|
|
2532
|
+
readonly type: "integer";
|
|
2533
|
+
readonly description: "导入失败的配置数量";
|
|
2534
|
+
};
|
|
2535
|
+
readonly errors: {
|
|
2536
|
+
readonly type: "array";
|
|
2537
|
+
readonly items: {
|
|
2538
|
+
readonly type: "object";
|
|
2539
|
+
readonly properties: {
|
|
2540
|
+
readonly index: {
|
|
2541
|
+
readonly type: "integer";
|
|
2542
|
+
readonly description: "失败配置在数组中的索引";
|
|
2543
|
+
};
|
|
2544
|
+
readonly name: {
|
|
2545
|
+
readonly type: "string";
|
|
2546
|
+
readonly description: "失败配置的名称";
|
|
2547
|
+
};
|
|
2548
|
+
readonly error: {
|
|
2549
|
+
readonly type: "string";
|
|
2550
|
+
readonly description: "失败原因";
|
|
2551
|
+
};
|
|
2552
|
+
};
|
|
2553
|
+
};
|
|
2554
|
+
readonly description: "导入失败的详细信息";
|
|
2555
|
+
};
|
|
2556
|
+
};
|
|
2557
|
+
};
|
|
2558
|
+
export declare const BrowserUpdateSchema: {
|
|
2559
|
+
readonly description: "更新浏览器配置的请求";
|
|
2560
|
+
readonly properties: {
|
|
2561
|
+
readonly name: {
|
|
2562
|
+
readonly type: "string";
|
|
2563
|
+
readonly description: "浏览器配置名称";
|
|
2564
|
+
readonly example: "更新后的浏览器配置";
|
|
2565
|
+
};
|
|
2566
|
+
readonly description: {
|
|
2567
|
+
readonly type: "string";
|
|
2568
|
+
readonly description: "浏览器配置描述";
|
|
2569
|
+
readonly example: "更新后的描述";
|
|
2570
|
+
};
|
|
2571
|
+
readonly url: {
|
|
2572
|
+
readonly type: "string";
|
|
2573
|
+
readonly description: "浏览器默认访问URL";
|
|
2574
|
+
readonly example: "https://updated-example.com";
|
|
2575
|
+
};
|
|
2576
|
+
readonly properties: {
|
|
2577
|
+
readonly type: "object";
|
|
2578
|
+
readonly description: "浏览器配置属性(JSON格式)";
|
|
2579
|
+
readonly additionalProperties: true;
|
|
2580
|
+
};
|
|
2581
|
+
readonly tags: {
|
|
2582
|
+
readonly type: "array";
|
|
2583
|
+
readonly items: {
|
|
2584
|
+
readonly type: "string";
|
|
2585
|
+
};
|
|
2586
|
+
readonly description: "浏览器配置标签";
|
|
2587
|
+
};
|
|
2588
|
+
};
|
|
2589
|
+
};
|
|
2590
|
+
export declare const BrowserLaunchOptionsSchema: {
|
|
2591
|
+
readonly description: "浏览器启动可选参数";
|
|
2592
|
+
readonly type: "object";
|
|
2593
|
+
readonly properties: {
|
|
2594
|
+
readonly headless: {
|
|
2595
|
+
readonly type: "boolean";
|
|
2596
|
+
readonly description: "是否以无头模式运行;为 false 表示“有头”。";
|
|
2597
|
+
readonly default: true;
|
|
2598
|
+
};
|
|
2599
|
+
readonly display: {
|
|
2600
|
+
readonly type: "string";
|
|
2601
|
+
readonly description: "Linux 显示器名,仅在有头模式下有效。";
|
|
2602
|
+
readonly default: ":1";
|
|
2603
|
+
};
|
|
2604
|
+
};
|
|
2605
|
+
};
|
|
2606
|
+
export declare const BrowserLaunchResultSchema: {
|
|
2607
|
+
readonly description: "浏览器启动结果";
|
|
2608
|
+
readonly properties: {
|
|
2609
|
+
readonly success: {
|
|
2610
|
+
readonly type: "boolean";
|
|
2611
|
+
readonly description: "启动是否成功";
|
|
2612
|
+
};
|
|
2613
|
+
readonly message: {
|
|
2614
|
+
readonly type: "string";
|
|
2615
|
+
readonly description: "启动结果消息";
|
|
2616
|
+
};
|
|
2617
|
+
readonly launchedAt: {
|
|
2618
|
+
readonly type: "string";
|
|
2619
|
+
readonly format: "date-time";
|
|
2620
|
+
readonly description: "启动时间";
|
|
2621
|
+
};
|
|
2622
|
+
readonly browserId: {
|
|
2623
|
+
readonly type: "string";
|
|
2624
|
+
readonly format: "uuid";
|
|
2625
|
+
readonly description: "浏览器配置ID";
|
|
2626
|
+
};
|
|
2627
|
+
readonly browserName: {
|
|
2628
|
+
readonly type: "string";
|
|
2629
|
+
readonly description: "浏览器配置名称";
|
|
2630
|
+
};
|
|
2631
|
+
readonly url: {
|
|
2632
|
+
readonly type: "string";
|
|
2633
|
+
readonly description: "启动时访问的URL";
|
|
2634
|
+
};
|
|
2635
|
+
};
|
|
2636
|
+
};
|
|
2637
|
+
export declare const BrowserCloseResultSchema: {
|
|
2638
|
+
readonly description: "浏览器关闭结果";
|
|
2639
|
+
readonly properties: {
|
|
2640
|
+
readonly success: {
|
|
2641
|
+
readonly type: "boolean";
|
|
2642
|
+
readonly description: "关闭是否成功";
|
|
2643
|
+
};
|
|
2644
|
+
readonly message: {
|
|
2645
|
+
readonly type: "string";
|
|
2646
|
+
readonly description: "关闭结果消息";
|
|
2647
|
+
};
|
|
2648
|
+
readonly closedAt: {
|
|
2649
|
+
readonly type: "string";
|
|
2650
|
+
readonly format: "date-time";
|
|
2651
|
+
readonly description: "关闭时间";
|
|
2652
|
+
};
|
|
2653
|
+
readonly browserId: {
|
|
2654
|
+
readonly type: "string";
|
|
2655
|
+
readonly format: "uuid";
|
|
2656
|
+
readonly description: "浏览器配置ID";
|
|
2657
|
+
};
|
|
2658
|
+
readonly browserName: {
|
|
2659
|
+
readonly type: "string";
|
|
2660
|
+
readonly description: "浏览器配置名称";
|
|
2661
|
+
};
|
|
2662
|
+
readonly processInfo: {
|
|
2663
|
+
readonly type: "object";
|
|
2664
|
+
readonly description: "进程信息";
|
|
2665
|
+
readonly properties: {
|
|
2666
|
+
readonly pid: {
|
|
2667
|
+
readonly type: "integer";
|
|
2668
|
+
readonly description: "进程ID";
|
|
2669
|
+
};
|
|
2670
|
+
readonly status: {
|
|
2671
|
+
readonly type: "string";
|
|
2672
|
+
readonly description: "进程状态";
|
|
2673
|
+
readonly enum: readonly ["running", "stopped", "not_found"];
|
|
2674
|
+
};
|
|
2675
|
+
};
|
|
2676
|
+
};
|
|
2677
|
+
};
|
|
2678
|
+
};
|
|
2679
|
+
export declare const BrowserStatusSchema: {
|
|
2680
|
+
readonly description: "浏览器实例运行状态";
|
|
2681
|
+
readonly properties: {
|
|
2682
|
+
readonly browserId: {
|
|
2683
|
+
readonly type: "string";
|
|
2684
|
+
readonly format: "uuid";
|
|
2685
|
+
readonly description: "浏览器配置ID";
|
|
2686
|
+
};
|
|
2687
|
+
readonly browserName: {
|
|
2688
|
+
readonly type: "string";
|
|
2689
|
+
readonly description: "浏览器配置名称";
|
|
2690
|
+
};
|
|
2691
|
+
readonly status: {
|
|
2692
|
+
readonly type: "string";
|
|
2693
|
+
readonly description: "浏览器实例状态";
|
|
2694
|
+
readonly enum: readonly ["running", "stopped", "starting", "stopping"];
|
|
2695
|
+
};
|
|
2696
|
+
readonly processId: {
|
|
2697
|
+
readonly type: "integer";
|
|
2698
|
+
readonly description: "浏览器进程ID";
|
|
2699
|
+
};
|
|
2700
|
+
readonly startedAt: {
|
|
2701
|
+
readonly type: "string";
|
|
2702
|
+
readonly format: "date-time";
|
|
2703
|
+
readonly description: "启动时间";
|
|
2704
|
+
};
|
|
2705
|
+
readonly stoppedAt: {
|
|
2706
|
+
readonly type: "string";
|
|
2707
|
+
readonly format: "date-time";
|
|
2708
|
+
readonly description: "停止时间";
|
|
2709
|
+
};
|
|
2710
|
+
readonly remoteDebuggingUrl: {
|
|
2711
|
+
readonly type: "string";
|
|
2712
|
+
readonly description: "远程调试URL";
|
|
2713
|
+
};
|
|
2714
|
+
readonly error: {
|
|
2715
|
+
readonly type: "string";
|
|
2716
|
+
readonly description: "错误信息";
|
|
2717
|
+
};
|
|
2718
|
+
};
|
|
2719
|
+
};
|
|
2720
|
+
export declare const BrowserCookieSchema: {
|
|
2721
|
+
readonly description: "浏览器cookie信息";
|
|
2722
|
+
readonly required: readonly ["name", "value", "domain", "path"];
|
|
2723
|
+
readonly properties: {
|
|
2724
|
+
readonly name: {
|
|
2725
|
+
readonly type: "string";
|
|
2726
|
+
readonly description: "Cookie名称";
|
|
2727
|
+
};
|
|
2728
|
+
readonly value: {
|
|
2729
|
+
readonly type: "string";
|
|
2730
|
+
readonly description: "Cookie值";
|
|
2731
|
+
};
|
|
2732
|
+
readonly domain: {
|
|
2733
|
+
readonly type: "string";
|
|
2734
|
+
readonly description: "Cookie所属域名";
|
|
2735
|
+
};
|
|
2736
|
+
readonly path: {
|
|
2737
|
+
readonly type: "string";
|
|
2738
|
+
readonly description: "Cookie路径";
|
|
2739
|
+
};
|
|
2740
|
+
readonly expires: {
|
|
2741
|
+
readonly type: "string";
|
|
2742
|
+
readonly format: "date-time";
|
|
2743
|
+
readonly description: "过期时间";
|
|
2744
|
+
};
|
|
2745
|
+
readonly httpOnly: {
|
|
2746
|
+
readonly type: "boolean";
|
|
2747
|
+
readonly description: "是否仅HTTP访问";
|
|
2748
|
+
};
|
|
2749
|
+
readonly secure: {
|
|
2750
|
+
readonly type: "boolean";
|
|
2751
|
+
readonly description: "是否仅HTTPS传输";
|
|
2752
|
+
};
|
|
2753
|
+
readonly sameSite: {
|
|
2754
|
+
readonly type: "string";
|
|
2755
|
+
readonly description: "SameSite属性";
|
|
2756
|
+
readonly enum: readonly ["Strict", "Lax", "None"];
|
|
2757
|
+
};
|
|
2758
|
+
readonly size: {
|
|
2759
|
+
readonly type: "integer";
|
|
2760
|
+
readonly description: "Cookie大小(字节)";
|
|
2761
|
+
};
|
|
2762
|
+
};
|
|
2763
|
+
};
|
|
2764
|
+
export declare const BrowserCookiesSchema: {
|
|
2765
|
+
readonly description: "浏览器cookies信息,按域名分组";
|
|
2766
|
+
readonly required: readonly ["browserId", "browserName", "status", "cookiesByDomain", "totalCookies", "domainCount", "retrievedAt"];
|
|
2767
|
+
readonly properties: {
|
|
2768
|
+
readonly browserId: {
|
|
2769
|
+
readonly type: "string";
|
|
2770
|
+
readonly format: "uuid";
|
|
2771
|
+
readonly description: "浏览器配置ID";
|
|
2772
|
+
};
|
|
2773
|
+
readonly browserName: {
|
|
2774
|
+
readonly type: "string";
|
|
2775
|
+
readonly description: "浏览器配置名称";
|
|
2776
|
+
};
|
|
2777
|
+
readonly status: {
|
|
2778
|
+
readonly type: "string";
|
|
2779
|
+
readonly description: "浏览器实例状态";
|
|
2780
|
+
readonly enum: readonly ["running", "stopped"];
|
|
2781
|
+
};
|
|
2782
|
+
readonly cookiesByDomain: {
|
|
2783
|
+
readonly type: "object";
|
|
2784
|
+
readonly description: "按域名分组的cookies";
|
|
2785
|
+
readonly additionalProperties: {
|
|
2786
|
+
readonly type: "array";
|
|
2787
|
+
readonly items: {
|
|
2788
|
+
readonly $ref: "#/components/schemas/BrowserCookie";
|
|
2789
|
+
};
|
|
2790
|
+
};
|
|
2791
|
+
};
|
|
2792
|
+
readonly totalCookies: {
|
|
2793
|
+
readonly type: "integer";
|
|
2794
|
+
readonly description: "总cookie数量";
|
|
2795
|
+
};
|
|
2796
|
+
readonly domainCount: {
|
|
2797
|
+
readonly type: "integer";
|
|
2798
|
+
readonly description: "域名数量";
|
|
2799
|
+
};
|
|
2800
|
+
readonly retrievedAt: {
|
|
2801
|
+
readonly type: "string";
|
|
2802
|
+
readonly format: "date-time";
|
|
2803
|
+
readonly description: "获取时间";
|
|
2804
|
+
};
|
|
2805
|
+
};
|
|
2806
|
+
};
|
|
2807
|
+
export declare const BrowserCookieUpdateSchema: {
|
|
2808
|
+
readonly description: "单个cookie更新信息";
|
|
2809
|
+
readonly required: readonly ["name", "domain"];
|
|
2810
|
+
readonly properties: {
|
|
2811
|
+
readonly name: {
|
|
2812
|
+
readonly type: "string";
|
|
2813
|
+
readonly description: "Cookie名称";
|
|
2814
|
+
};
|
|
2815
|
+
readonly value: {
|
|
2816
|
+
readonly type: "string";
|
|
2817
|
+
readonly description: "Cookie值,删除操作时可为空";
|
|
2818
|
+
};
|
|
2819
|
+
readonly domain: {
|
|
2820
|
+
readonly type: "string";
|
|
2821
|
+
readonly description: "Cookie所属域名";
|
|
2822
|
+
};
|
|
2823
|
+
readonly path: {
|
|
2824
|
+
readonly type: "string";
|
|
2825
|
+
readonly description: "Cookie路径";
|
|
2826
|
+
readonly default: "/";
|
|
2827
|
+
};
|
|
2828
|
+
readonly expires: {
|
|
2829
|
+
readonly type: "string";
|
|
2830
|
+
readonly format: "date-time";
|
|
2831
|
+
readonly description: "过期时间";
|
|
2832
|
+
};
|
|
2833
|
+
readonly httpOnly: {
|
|
2834
|
+
readonly type: "boolean";
|
|
2835
|
+
readonly description: "是否仅HTTP访问";
|
|
2836
|
+
readonly default: false;
|
|
2837
|
+
};
|
|
2838
|
+
readonly secure: {
|
|
2839
|
+
readonly type: "boolean";
|
|
2840
|
+
readonly description: "是否仅HTTPS传输";
|
|
2841
|
+
readonly default: false;
|
|
2842
|
+
};
|
|
2843
|
+
readonly sameSite: {
|
|
2844
|
+
readonly type: "string";
|
|
2845
|
+
readonly description: "SameSite属性";
|
|
2846
|
+
readonly enum: readonly ["Strict", "Lax", "None"];
|
|
2847
|
+
readonly default: "Lax";
|
|
2848
|
+
};
|
|
2849
|
+
};
|
|
2850
|
+
};
|
|
2851
|
+
export declare const BrowserCookiesUpdateSchema: {
|
|
2852
|
+
readonly description: "浏览器cookies更新请求";
|
|
2853
|
+
readonly required: readonly ["cookies"];
|
|
2854
|
+
readonly properties: {
|
|
2855
|
+
readonly cookies: {
|
|
2856
|
+
readonly type: "array";
|
|
2857
|
+
readonly items: {
|
|
2858
|
+
readonly $ref: "#/components/schemas/BrowserCookieUpdate";
|
|
2859
|
+
};
|
|
2860
|
+
readonly description: "要更新的cookies列表";
|
|
2861
|
+
};
|
|
2862
|
+
readonly operation: {
|
|
2863
|
+
readonly type: "string";
|
|
2864
|
+
readonly description: "操作类型";
|
|
2865
|
+
readonly enum: readonly ["replace", "merge", "delete"];
|
|
2866
|
+
readonly default: "replace";
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2869
|
+
};
|
|
2870
|
+
export declare const BrowserCookiesUpdateResultSchema: {
|
|
2871
|
+
readonly description: "Cookies更新结果";
|
|
2872
|
+
readonly properties: {
|
|
2873
|
+
readonly success: {
|
|
2874
|
+
readonly type: "boolean";
|
|
2875
|
+
readonly description: "更新是否成功";
|
|
2876
|
+
};
|
|
2877
|
+
readonly message: {
|
|
2878
|
+
readonly type: "string";
|
|
2879
|
+
readonly description: "更新结果消息";
|
|
2880
|
+
};
|
|
2881
|
+
readonly updatedAt: {
|
|
2882
|
+
readonly type: "string";
|
|
2883
|
+
readonly format: "date-time";
|
|
2884
|
+
readonly description: "更新时间";
|
|
2885
|
+
};
|
|
2886
|
+
readonly affectedCount: {
|
|
2887
|
+
readonly type: "integer";
|
|
2888
|
+
readonly description: "受影响的cookie数量";
|
|
2889
|
+
};
|
|
2890
|
+
readonly browserId: {
|
|
2891
|
+
readonly type: "string";
|
|
2892
|
+
readonly format: "uuid";
|
|
2893
|
+
readonly description: "浏览器配置ID";
|
|
2894
|
+
};
|
|
2895
|
+
};
|
|
2896
|
+
};
|
|
2897
|
+
export declare const BrowserStateSchema: {
|
|
2898
|
+
readonly description: "浏览器持久化状态信息";
|
|
2899
|
+
readonly properties: {
|
|
2900
|
+
readonly browserId: {
|
|
2901
|
+
readonly type: "string";
|
|
2902
|
+
readonly format: "uuid";
|
|
2903
|
+
readonly description: "浏览器配置ID";
|
|
2904
|
+
};
|
|
2905
|
+
readonly browserName: {
|
|
2906
|
+
readonly type: "string";
|
|
2907
|
+
readonly description: "浏览器配置名称";
|
|
2908
|
+
};
|
|
2909
|
+
readonly sessionData: {
|
|
2910
|
+
readonly type: "object";
|
|
2911
|
+
readonly description: "会话数据,包含cookies、localStorage等";
|
|
2912
|
+
readonly additionalProperties: true;
|
|
2913
|
+
};
|
|
2914
|
+
readonly lastSavedAt: {
|
|
2915
|
+
readonly type: "string";
|
|
2916
|
+
readonly format: "date-time";
|
|
2917
|
+
readonly description: "最后保存时间";
|
|
2918
|
+
};
|
|
2919
|
+
readonly version: {
|
|
2920
|
+
readonly type: "string";
|
|
2921
|
+
readonly description: "状态数据版本";
|
|
2922
|
+
readonly default: "1.0";
|
|
2923
|
+
};
|
|
2924
|
+
};
|
|
2925
|
+
};
|
|
2926
|
+
export declare const BrowserStateUpdateSchema: {
|
|
2927
|
+
readonly description: "浏览器状态更新请求";
|
|
2928
|
+
readonly properties: {
|
|
2929
|
+
readonly sessionData: {
|
|
2930
|
+
readonly type: "object";
|
|
2931
|
+
readonly description: "要更新的会话数据";
|
|
2932
|
+
readonly additionalProperties: true;
|
|
2933
|
+
};
|
|
2934
|
+
readonly mergeMode: {
|
|
2935
|
+
readonly type: "boolean";
|
|
2936
|
+
readonly description: "是否合并模式(true=合并,false=替换)";
|
|
2937
|
+
readonly default: true;
|
|
2938
|
+
};
|
|
2939
|
+
};
|
|
2940
|
+
};
|
|
2941
|
+
export declare const BrowserStateUpdateResultSchema: {
|
|
2942
|
+
readonly description: "浏览器状态更新结果";
|
|
2943
|
+
readonly properties: {
|
|
2944
|
+
readonly success: {
|
|
2945
|
+
readonly type: "boolean";
|
|
2946
|
+
readonly description: "更新是否成功";
|
|
2947
|
+
};
|
|
2948
|
+
readonly message: {
|
|
2949
|
+
readonly type: "string";
|
|
2950
|
+
readonly description: "更新结果消息";
|
|
2951
|
+
};
|
|
2952
|
+
readonly updatedAt: {
|
|
2953
|
+
readonly type: "string";
|
|
2954
|
+
readonly format: "date-time";
|
|
2955
|
+
readonly description: "更新时间";
|
|
2956
|
+
};
|
|
2957
|
+
readonly browserId: {
|
|
2958
|
+
readonly type: "string";
|
|
2959
|
+
readonly format: "uuid";
|
|
2960
|
+
readonly description: "浏览器配置ID";
|
|
2961
|
+
};
|
|
2962
|
+
readonly version: {
|
|
2963
|
+
readonly type: "string";
|
|
2964
|
+
readonly description: "更新后的状态数据版本";
|
|
2965
|
+
};
|
|
2966
|
+
};
|
|
2967
|
+
};
|
|
2968
|
+
export declare const BotConfigSchema: {
|
|
2969
|
+
readonly required: readonly ["public_server", "private_server", "frontend_url", "local_http_server_enabled", "local_http_server_port", "adb_server_enabled", "hatchet_token"];
|
|
2970
|
+
readonly properties: {
|
|
2971
|
+
readonly public_server: {
|
|
2972
|
+
readonly type: "string";
|
|
2973
|
+
};
|
|
2974
|
+
readonly private_server: {
|
|
2975
|
+
readonly type: "string";
|
|
2976
|
+
};
|
|
2977
|
+
readonly frontend_url: {
|
|
2978
|
+
readonly type: "string";
|
|
2979
|
+
};
|
|
2980
|
+
readonly local_http_server_enabled: {
|
|
2981
|
+
readonly type: "boolean";
|
|
2982
|
+
};
|
|
2983
|
+
readonly local_http_server_port: {
|
|
2984
|
+
readonly type: "integer";
|
|
2985
|
+
};
|
|
2986
|
+
readonly adb_server_enabled: {
|
|
2987
|
+
readonly type: "boolean";
|
|
2988
|
+
};
|
|
2989
|
+
readonly adb_server_port: {
|
|
2990
|
+
readonly type: "integer";
|
|
2991
|
+
readonly default: 5555;
|
|
2992
|
+
};
|
|
2993
|
+
readonly hatchet_token: {
|
|
2994
|
+
readonly type: "string";
|
|
2995
|
+
};
|
|
2996
|
+
};
|
|
2997
|
+
};
|
|
2998
|
+
export declare const BotSchema: {
|
|
2999
|
+
readonly required: readonly ["id", "created_at", "updated_at", "name", "description", "config"];
|
|
3000
|
+
readonly properties: {
|
|
3001
|
+
readonly id: {
|
|
3002
|
+
readonly type: "string";
|
|
3003
|
+
};
|
|
3004
|
+
readonly created_at: {
|
|
3005
|
+
readonly type: "string";
|
|
3006
|
+
readonly format: "date-time";
|
|
3007
|
+
};
|
|
3008
|
+
readonly updated_at: {
|
|
3009
|
+
readonly type: "string";
|
|
3010
|
+
readonly format: "date-time";
|
|
3011
|
+
};
|
|
3012
|
+
readonly name: {
|
|
3013
|
+
readonly type: "string";
|
|
3014
|
+
};
|
|
3015
|
+
readonly description: {
|
|
3016
|
+
readonly type: "string";
|
|
3017
|
+
};
|
|
3018
|
+
readonly config: {
|
|
3019
|
+
readonly $ref: "#/components/schemas/BotConfig";
|
|
3020
|
+
};
|
|
3021
|
+
};
|
|
3022
|
+
};
|
|
3023
|
+
export declare const BotListSchema: {
|
|
3024
|
+
readonly required: readonly ["pagination", "rows"];
|
|
3025
|
+
readonly properties: {
|
|
3026
|
+
readonly pagination: {
|
|
3027
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
3028
|
+
};
|
|
3029
|
+
readonly rows: {
|
|
3030
|
+
readonly items: {
|
|
3031
|
+
readonly $ref: "#/components/schemas/Bot";
|
|
3032
|
+
};
|
|
3033
|
+
readonly type: "array";
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
};
|
|
3037
|
+
export declare const BotLocalStateSchema: {
|
|
3038
|
+
readonly required: readonly ["bot_id", "device_type", "host_name"];
|
|
3039
|
+
readonly properties: {
|
|
3040
|
+
readonly bot_id: {
|
|
3041
|
+
readonly type: "string";
|
|
3042
|
+
};
|
|
3043
|
+
readonly device_type: {
|
|
3044
|
+
readonly type: "string";
|
|
3045
|
+
readonly enum: readonly ["unknown", "android", "ios", "web"];
|
|
3046
|
+
};
|
|
3047
|
+
readonly host_name: {
|
|
3048
|
+
readonly type: "string";
|
|
3049
|
+
};
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
export declare const SystemSetupRequestSchema: {
|
|
3053
|
+
readonly type: "object";
|
|
3054
|
+
readonly properties: {
|
|
3055
|
+
readonly dbUrl: {
|
|
3056
|
+
readonly type: "string";
|
|
3057
|
+
readonly description: "PostgreSQL database connection string";
|
|
3058
|
+
readonly example: "postgresql://postgres:postgres@localhost:5432/gomtm";
|
|
3059
|
+
readonly pattern: "^postgresql:";
|
|
3060
|
+
};
|
|
3061
|
+
readonly email: {
|
|
3062
|
+
readonly type: "string";
|
|
3063
|
+
readonly format: "email";
|
|
3064
|
+
readonly description: "Administrator email for the first user";
|
|
3065
|
+
readonly example: "admin@example.com";
|
|
3066
|
+
};
|
|
3067
|
+
readonly password: {
|
|
3068
|
+
readonly type: "string";
|
|
3069
|
+
readonly description: "Password for the first administrator user (also saved as superPassword for compatibility)";
|
|
3070
|
+
readonly example: "ChangeMe123!";
|
|
3071
|
+
readonly minLength: 6;
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
readonly required: readonly ["dbUrl", "email", "password"];
|
|
3075
|
+
};
|
|
3076
|
+
export declare const SystemLogEntrySchema: {
|
|
3077
|
+
readonly type: "object";
|
|
3078
|
+
readonly properties: {
|
|
3079
|
+
readonly id: {
|
|
3080
|
+
readonly type: "string";
|
|
3081
|
+
readonly description: "Unique identifier for the log entry";
|
|
3082
|
+
readonly example: "log_123456789";
|
|
3083
|
+
};
|
|
3084
|
+
readonly timestamp: {
|
|
3085
|
+
readonly type: "string";
|
|
3086
|
+
readonly format: "date-time";
|
|
3087
|
+
readonly description: "When the log entry was created";
|
|
3088
|
+
readonly example: "2025-07-27T07:15:20.262Z";
|
|
3089
|
+
};
|
|
3090
|
+
readonly level: {
|
|
3091
|
+
readonly type: "string";
|
|
3092
|
+
readonly enum: readonly ["DEBUG", "INFO", "WARN", "ERROR"];
|
|
3093
|
+
readonly description: "Log level";
|
|
3094
|
+
readonly example: "INFO";
|
|
3095
|
+
};
|
|
3096
|
+
readonly module: {
|
|
3097
|
+
readonly type: "string";
|
|
3098
|
+
readonly description: "Module or component that generated the log";
|
|
3099
|
+
readonly example: "server";
|
|
3100
|
+
};
|
|
3101
|
+
readonly message: {
|
|
3102
|
+
readonly type: "string";
|
|
3103
|
+
readonly description: "Log message content";
|
|
3104
|
+
readonly example: "Database migration completed successfully";
|
|
3105
|
+
};
|
|
3106
|
+
readonly context: {
|
|
3107
|
+
readonly type: "object";
|
|
3108
|
+
readonly additionalProperties: true;
|
|
3109
|
+
readonly description: "Additional context data for the log entry";
|
|
3110
|
+
readonly example: {
|
|
3111
|
+
readonly applied: 0;
|
|
3112
|
+
readonly current: "";
|
|
3113
|
+
readonly target: "";
|
|
3114
|
+
};
|
|
3115
|
+
};
|
|
3116
|
+
readonly source: {
|
|
3117
|
+
readonly type: "string";
|
|
3118
|
+
readonly description: "Source file or location where the log was generated";
|
|
3119
|
+
readonly example: "mtm/api/v1/server/handlers/system/logs.go:21";
|
|
3120
|
+
};
|
|
3121
|
+
};
|
|
3122
|
+
readonly required: readonly ["id", "timestamp", "level", "module", "message"];
|
|
3123
|
+
};
|
|
3124
|
+
export declare const SystemLogsResponseSchema: {
|
|
3125
|
+
readonly type: "object";
|
|
3126
|
+
readonly properties: {
|
|
3127
|
+
readonly logs: {
|
|
3128
|
+
readonly type: "array";
|
|
3129
|
+
readonly items: {
|
|
3130
|
+
readonly $ref: "#/components/schemas/SystemLogEntry";
|
|
3131
|
+
};
|
|
3132
|
+
readonly description: "Array of system log entries";
|
|
3133
|
+
};
|
|
3134
|
+
readonly total: {
|
|
3135
|
+
readonly type: "integer";
|
|
3136
|
+
readonly description: "Total number of log entries matching the filter criteria";
|
|
3137
|
+
readonly example: 1250;
|
|
3138
|
+
};
|
|
3139
|
+
readonly limit: {
|
|
3140
|
+
readonly type: "integer";
|
|
3141
|
+
readonly description: "Maximum number of logs returned in this response";
|
|
3142
|
+
readonly example: 100;
|
|
3143
|
+
};
|
|
3144
|
+
readonly offset: {
|
|
3145
|
+
readonly type: "integer";
|
|
3146
|
+
readonly description: "Number of logs skipped for pagination";
|
|
3147
|
+
readonly example: 0;
|
|
3148
|
+
};
|
|
3149
|
+
readonly hasMore: {
|
|
3150
|
+
readonly type: "boolean";
|
|
3151
|
+
readonly description: "Whether there are more logs available";
|
|
3152
|
+
readonly example: true;
|
|
3153
|
+
};
|
|
3154
|
+
};
|
|
3155
|
+
readonly required: readonly ["logs", "total", "limit", "offset", "hasMore"];
|
|
3156
|
+
};
|
|
3157
|
+
export declare const OAuthProviderSchema: {
|
|
3158
|
+
readonly type: "object";
|
|
3159
|
+
readonly properties: {
|
|
3160
|
+
readonly name: {
|
|
3161
|
+
readonly type: "string";
|
|
3162
|
+
readonly description: "OAuth provider name";
|
|
3163
|
+
readonly example: "github";
|
|
3164
|
+
};
|
|
3165
|
+
readonly displayName: {
|
|
3166
|
+
readonly type: "string";
|
|
3167
|
+
readonly description: "Display name for the OAuth provider";
|
|
3168
|
+
readonly example: "GitHub";
|
|
3169
|
+
};
|
|
3170
|
+
readonly enabled: {
|
|
3171
|
+
readonly type: "boolean";
|
|
3172
|
+
readonly description: "Whether the OAuth provider is enabled";
|
|
3173
|
+
readonly example: true;
|
|
3174
|
+
};
|
|
3175
|
+
readonly clientId: {
|
|
3176
|
+
readonly type: "string";
|
|
3177
|
+
readonly description: "OAuth client ID";
|
|
3178
|
+
readonly example: "your-github-client-id";
|
|
3179
|
+
};
|
|
3180
|
+
readonly clientSecret: {
|
|
3181
|
+
readonly type: "string";
|
|
3182
|
+
readonly description: "OAuth client secret";
|
|
3183
|
+
readonly example: "your-github-client-secret";
|
|
3184
|
+
};
|
|
3185
|
+
readonly scopes: {
|
|
3186
|
+
readonly type: "array";
|
|
3187
|
+
readonly items: {
|
|
3188
|
+
readonly type: "string";
|
|
3189
|
+
};
|
|
3190
|
+
readonly description: "OAuth scopes";
|
|
3191
|
+
readonly example: readonly ["read:user", "user:email"];
|
|
3192
|
+
};
|
|
3193
|
+
};
|
|
3194
|
+
readonly required: readonly ["name", "displayName", "enabled"];
|
|
3195
|
+
};
|
|
3196
|
+
export declare const OAuthConfigResponseSchema: {
|
|
3197
|
+
readonly type: "object";
|
|
3198
|
+
readonly properties: {
|
|
3199
|
+
readonly success: {
|
|
3200
|
+
readonly type: "boolean";
|
|
3201
|
+
readonly description: "Whether the request was successful";
|
|
3202
|
+
readonly example: true;
|
|
3203
|
+
};
|
|
3204
|
+
readonly message: {
|
|
3205
|
+
readonly type: "string";
|
|
3206
|
+
readonly description: "Human-readable message";
|
|
3207
|
+
readonly example: "OAuth configuration retrieved successfully";
|
|
3208
|
+
};
|
|
3209
|
+
readonly providers: {
|
|
3210
|
+
readonly type: "object";
|
|
3211
|
+
readonly additionalProperties: {
|
|
3212
|
+
readonly $ref: "#/components/schemas/OAuthProvider";
|
|
3213
|
+
};
|
|
3214
|
+
readonly description: "OAuth providers configuration";
|
|
3215
|
+
readonly example: {
|
|
3216
|
+
readonly github: {
|
|
3217
|
+
readonly name: "github";
|
|
3218
|
+
readonly displayName: "GitHub";
|
|
3219
|
+
readonly enabled: true;
|
|
3220
|
+
readonly clientId: "your-github-client-id";
|
|
3221
|
+
readonly clientSecret: "your-github-client-secret";
|
|
3222
|
+
readonly scopes: readonly ["read:user", "user:email"];
|
|
3223
|
+
};
|
|
3224
|
+
readonly google: {
|
|
3225
|
+
readonly name: "google";
|
|
3226
|
+
readonly displayName: "Google";
|
|
3227
|
+
readonly enabled: false;
|
|
3228
|
+
readonly clientId: "";
|
|
3229
|
+
readonly clientSecret: "";
|
|
3230
|
+
readonly scopes: readonly ["openid", "profile", "email"];
|
|
3231
|
+
};
|
|
3232
|
+
};
|
|
3233
|
+
};
|
|
3234
|
+
};
|
|
3235
|
+
readonly required: readonly ["success", "message", "providers"];
|
|
3236
|
+
};
|
|
3237
|
+
export declare const OAuthConfigRequestSchema: {
|
|
3238
|
+
readonly type: "object";
|
|
3239
|
+
readonly properties: {
|
|
3240
|
+
readonly providers: {
|
|
3241
|
+
readonly type: "object";
|
|
3242
|
+
readonly additionalProperties: {
|
|
3243
|
+
readonly $ref: "#/components/schemas/OAuthProvider";
|
|
3244
|
+
};
|
|
3245
|
+
readonly description: "OAuth providers configuration to save";
|
|
3246
|
+
readonly example: {
|
|
3247
|
+
readonly github: {
|
|
3248
|
+
readonly name: "github";
|
|
3249
|
+
readonly displayName: "GitHub";
|
|
3250
|
+
readonly enabled: true;
|
|
3251
|
+
readonly clientId: "your-github-client-id";
|
|
3252
|
+
readonly clientSecret: "your-github-client-secret";
|
|
3253
|
+
readonly scopes: readonly ["read:user", "user:email"];
|
|
3254
|
+
};
|
|
3255
|
+
readonly google: {
|
|
3256
|
+
readonly name: "google";
|
|
3257
|
+
readonly displayName: "Google";
|
|
3258
|
+
readonly enabled: false;
|
|
3259
|
+
readonly clientId: "";
|
|
3260
|
+
readonly clientSecret: "";
|
|
3261
|
+
readonly scopes: readonly ["openid", "profile", "email"];
|
|
3262
|
+
};
|
|
3263
|
+
};
|
|
3264
|
+
};
|
|
3265
|
+
};
|
|
3266
|
+
readonly required: readonly ["providers"];
|
|
3267
|
+
};
|
|
3268
|
+
export declare const SystemPerformanceMetricsSchema: {
|
|
3269
|
+
readonly type: "object";
|
|
3270
|
+
readonly properties: {
|
|
3271
|
+
readonly cpuUsage: {
|
|
3272
|
+
readonly type: "number";
|
|
3273
|
+
readonly format: "float";
|
|
3274
|
+
readonly description: "CPU usage percentage";
|
|
3275
|
+
readonly example: 25.5;
|
|
3276
|
+
readonly minimum: 0;
|
|
3277
|
+
readonly maximum: 100;
|
|
3278
|
+
};
|
|
3279
|
+
readonly memoryUsage: {
|
|
3280
|
+
readonly type: "number";
|
|
3281
|
+
readonly format: "float";
|
|
3282
|
+
readonly description: "Memory usage percentage";
|
|
3283
|
+
readonly example: 60.2;
|
|
3284
|
+
readonly minimum: 0;
|
|
3285
|
+
readonly maximum: 100;
|
|
3286
|
+
};
|
|
3287
|
+
readonly diskUsage: {
|
|
3288
|
+
readonly type: "number";
|
|
3289
|
+
readonly format: "float";
|
|
3290
|
+
readonly description: "Disk usage percentage";
|
|
3291
|
+
readonly example: 45.8;
|
|
3292
|
+
readonly minimum: 0;
|
|
3293
|
+
readonly maximum: 100;
|
|
3294
|
+
};
|
|
3295
|
+
readonly memoryTotal: {
|
|
3296
|
+
readonly type: "integer";
|
|
3297
|
+
readonly format: "int64";
|
|
3298
|
+
readonly description: "Total memory in bytes";
|
|
3299
|
+
readonly example: 8589934592;
|
|
3300
|
+
};
|
|
3301
|
+
readonly memoryUsed: {
|
|
3302
|
+
readonly type: "integer";
|
|
3303
|
+
readonly format: "int64";
|
|
3304
|
+
readonly description: "Used memory in bytes";
|
|
3305
|
+
readonly example: 5167308390;
|
|
3306
|
+
};
|
|
3307
|
+
readonly memoryFree: {
|
|
3308
|
+
readonly type: "integer";
|
|
3309
|
+
readonly format: "int64";
|
|
3310
|
+
readonly description: "Free memory in bytes";
|
|
3311
|
+
readonly example: 3422626202;
|
|
3312
|
+
};
|
|
3313
|
+
readonly loadAverage: {
|
|
3314
|
+
readonly type: "array";
|
|
3315
|
+
readonly items: {
|
|
3316
|
+
readonly type: "number";
|
|
3317
|
+
readonly format: "float";
|
|
3318
|
+
};
|
|
3319
|
+
readonly description: "System load average (1min, 5min, 15min)";
|
|
3320
|
+
readonly example: readonly [1.2, 1.5, 1.8];
|
|
3321
|
+
readonly minItems: 3;
|
|
3322
|
+
readonly maxItems: 3;
|
|
3323
|
+
};
|
|
3324
|
+
readonly uptime: {
|
|
3325
|
+
readonly type: "integer";
|
|
3326
|
+
readonly format: "int64";
|
|
3327
|
+
readonly description: "System uptime in seconds";
|
|
3328
|
+
readonly example: 86400;
|
|
3329
|
+
};
|
|
3330
|
+
readonly timestamp: {
|
|
3331
|
+
readonly type: "string";
|
|
3332
|
+
readonly format: "date-time";
|
|
3333
|
+
readonly description: "Timestamp when metrics were collected";
|
|
3334
|
+
readonly example: "2025-01-27T14:30:00Z";
|
|
3335
|
+
};
|
|
3336
|
+
};
|
|
3337
|
+
readonly required: readonly ["cpuUsage", "memoryUsage", "diskUsage", "memoryTotal", "memoryUsed", "memoryFree", "loadAverage", "uptime", "timestamp"];
|
|
3338
|
+
};
|
|
3339
|
+
export declare const CloudflareAccountConfigSchema: {
|
|
3340
|
+
readonly type: "object";
|
|
3341
|
+
readonly properties: {
|
|
3342
|
+
readonly accountId: {
|
|
3343
|
+
readonly type: "string";
|
|
3344
|
+
readonly description: "Cloudflare Account ID";
|
|
3345
|
+
readonly example: "1234567890abcdef1234567890abcdef";
|
|
3346
|
+
};
|
|
3347
|
+
readonly apiEmail: {
|
|
3348
|
+
readonly type: "string";
|
|
3349
|
+
readonly format: "email";
|
|
3350
|
+
readonly description: "Cloudflare API Email";
|
|
3351
|
+
readonly example: "admin@example.com";
|
|
3352
|
+
};
|
|
3353
|
+
readonly apiToken: {
|
|
3354
|
+
readonly type: "string";
|
|
3355
|
+
readonly description: "Cloudflare API Token";
|
|
3356
|
+
readonly example: "your-cloudflare-api-token";
|
|
3357
|
+
};
|
|
3358
|
+
};
|
|
3359
|
+
readonly required: readonly ["accountId", "apiEmail", "apiToken"];
|
|
3360
|
+
};
|
|
3361
|
+
export declare const CloudflareR2ConfigSchema: {
|
|
3362
|
+
readonly type: "object";
|
|
3363
|
+
readonly properties: {
|
|
3364
|
+
readonly token: {
|
|
3365
|
+
readonly type: "string";
|
|
3366
|
+
readonly description: "Cloudflare R2 Token";
|
|
3367
|
+
readonly example: "your-r2-token";
|
|
3368
|
+
};
|
|
3369
|
+
readonly accessKey: {
|
|
3370
|
+
readonly type: "string";
|
|
3371
|
+
readonly description: "R2 Access Key";
|
|
3372
|
+
readonly example: "your-r2-access-key";
|
|
3373
|
+
};
|
|
3374
|
+
readonly secretKey: {
|
|
3375
|
+
readonly type: "string";
|
|
3376
|
+
readonly description: "R2 Secret Key";
|
|
3377
|
+
readonly example: "your-r2-secret-key";
|
|
3378
|
+
};
|
|
3379
|
+
readonly bucket: {
|
|
3380
|
+
readonly type: "string";
|
|
3381
|
+
readonly description: "Default R2 bucket name";
|
|
3382
|
+
readonly example: "my-default-bucket";
|
|
3383
|
+
};
|
|
3384
|
+
};
|
|
3385
|
+
readonly required: readonly ["token", "accessKey", "secretKey", "bucket"];
|
|
3386
|
+
};
|
|
3387
|
+
export declare const SystemSettingsSchema: {
|
|
3388
|
+
readonly type: "object";
|
|
3389
|
+
readonly properties: {
|
|
3390
|
+
readonly mainDomain: {
|
|
3391
|
+
readonly type: "string";
|
|
3392
|
+
readonly description: "Main domain for the system";
|
|
3393
|
+
readonly example: "yuepa8.com";
|
|
3394
|
+
};
|
|
3395
|
+
readonly cloudflareAccount: {
|
|
3396
|
+
readonly $ref: "#/components/schemas/CloudflareAccountConfig";
|
|
3397
|
+
};
|
|
3398
|
+
readonly cloudflareR2: {
|
|
3399
|
+
readonly $ref: "#/components/schemas/CloudflareR2Config";
|
|
3400
|
+
};
|
|
3401
|
+
readonly nodeAuthToken: {
|
|
3402
|
+
readonly type: "string";
|
|
3403
|
+
readonly description: "NPM authentication token for deployment";
|
|
3404
|
+
readonly example: "npm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
|
|
3405
|
+
};
|
|
3406
|
+
readonly secretKey: {
|
|
3407
|
+
readonly type: "string";
|
|
3408
|
+
readonly description: "Encryption secret key for symmetric encryption";
|
|
3409
|
+
readonly example: "your-32-character-secret-key-here";
|
|
3410
|
+
};
|
|
3411
|
+
readonly exportMetadata: {
|
|
3412
|
+
readonly type: "object";
|
|
3413
|
+
readonly description: "Metadata about settings export/import";
|
|
3414
|
+
readonly properties: {
|
|
3415
|
+
readonly exportTimestamp: {
|
|
3416
|
+
readonly type: "string";
|
|
3417
|
+
readonly format: "date-time";
|
|
3418
|
+
readonly description: "When the settings were last exported";
|
|
3419
|
+
};
|
|
3420
|
+
readonly exportVersion: {
|
|
3421
|
+
readonly type: "string";
|
|
3422
|
+
readonly description: "Version of the export format";
|
|
3423
|
+
readonly example: "1.0";
|
|
3424
|
+
};
|
|
3425
|
+
readonly exportBy: {
|
|
3426
|
+
readonly type: "string";
|
|
3427
|
+
readonly description: "User who exported the settings";
|
|
3428
|
+
readonly example: "admin@example.com";
|
|
3429
|
+
};
|
|
3430
|
+
};
|
|
3431
|
+
};
|
|
3432
|
+
};
|
|
3433
|
+
};
|
|
3434
|
+
export declare const SystemSettingsResponseSchema: {
|
|
3435
|
+
readonly type: "object";
|
|
3436
|
+
readonly properties: {
|
|
3437
|
+
readonly success: {
|
|
3438
|
+
readonly type: "boolean";
|
|
3439
|
+
readonly description: "Whether the request was successful";
|
|
3440
|
+
readonly example: true;
|
|
3441
|
+
};
|
|
3442
|
+
readonly message: {
|
|
3443
|
+
readonly type: "string";
|
|
3444
|
+
readonly description: "Human-readable message";
|
|
3445
|
+
readonly example: "System settings retrieved successfully";
|
|
3446
|
+
};
|
|
3447
|
+
readonly settings: {
|
|
3448
|
+
readonly $ref: "#/components/schemas/SystemSettings";
|
|
3449
|
+
};
|
|
3450
|
+
};
|
|
3451
|
+
readonly required: readonly ["success", "message", "settings"];
|
|
3452
|
+
};
|
|
3453
|
+
export declare const SystemSettingsUpdateRequestSchema: {
|
|
3454
|
+
readonly type: "object";
|
|
3455
|
+
readonly properties: {
|
|
3456
|
+
readonly mainDomain: {
|
|
3457
|
+
readonly type: "string";
|
|
3458
|
+
readonly description: "Main domain for the system";
|
|
3459
|
+
readonly example: "yuepa8.com";
|
|
3460
|
+
};
|
|
3461
|
+
readonly cloudflareAccount: {
|
|
3462
|
+
readonly $ref: "#/components/schemas/CloudflareAccountConfig";
|
|
3463
|
+
};
|
|
3464
|
+
readonly cloudflareR2: {
|
|
3465
|
+
readonly $ref: "#/components/schemas/CloudflareR2Config";
|
|
3466
|
+
};
|
|
3467
|
+
readonly nodeAuthToken: {
|
|
3468
|
+
readonly type: "string";
|
|
3469
|
+
readonly description: "NPM authentication token for deployment";
|
|
3470
|
+
readonly example: "npm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
|
|
3471
|
+
};
|
|
3472
|
+
readonly secretKey: {
|
|
3473
|
+
readonly type: "string";
|
|
3474
|
+
readonly description: "Encryption secret key for symmetric encryption";
|
|
3475
|
+
readonly example: "your-32-character-secret-key-here";
|
|
3476
|
+
};
|
|
3477
|
+
};
|
|
3478
|
+
};
|
|
3479
|
+
export declare const SystemSettingsImportResponseSchema: {
|
|
3480
|
+
readonly type: "object";
|
|
3481
|
+
readonly properties: {
|
|
3482
|
+
readonly success: {
|
|
3483
|
+
readonly type: "boolean";
|
|
3484
|
+
readonly description: "Whether the import was successful";
|
|
3485
|
+
readonly example: true;
|
|
3486
|
+
};
|
|
3487
|
+
readonly message: {
|
|
3488
|
+
readonly type: "string";
|
|
3489
|
+
readonly description: "Human-readable message about the import result";
|
|
3490
|
+
readonly example: "System settings imported successfully";
|
|
3491
|
+
};
|
|
3492
|
+
readonly importedCount: {
|
|
3493
|
+
readonly type: "integer";
|
|
3494
|
+
readonly description: "Number of settings imported";
|
|
3495
|
+
readonly example: 5;
|
|
3496
|
+
};
|
|
3497
|
+
readonly skippedCount: {
|
|
3498
|
+
readonly type: "integer";
|
|
3499
|
+
readonly description: "Number of settings skipped";
|
|
3500
|
+
readonly example: 0;
|
|
3501
|
+
};
|
|
3502
|
+
readonly errors: {
|
|
3503
|
+
readonly type: "array";
|
|
3504
|
+
readonly items: {
|
|
3505
|
+
readonly type: "string";
|
|
3506
|
+
};
|
|
3507
|
+
readonly description: "List of import errors if any";
|
|
3508
|
+
readonly example: readonly [];
|
|
3509
|
+
};
|
|
3510
|
+
};
|
|
3511
|
+
readonly required: readonly ["success", "message", "importedCount", "skippedCount", "errors"];
|
|
3512
|
+
};
|
|
3513
|
+
export declare const APIResourceMetaPropertiesSchema: {
|
|
3514
|
+
readonly required: readonly ["metadata"];
|
|
3515
|
+
readonly properties: {
|
|
3516
|
+
readonly metadata: {
|
|
3517
|
+
readonly $ref: "#/components/schemas/APIResourceMeta";
|
|
3518
|
+
};
|
|
3519
|
+
};
|
|
3520
|
+
};
|
|
3521
|
+
export declare const QueueMetricsSchema: {
|
|
3522
|
+
readonly type: "object";
|
|
3523
|
+
readonly properties: {
|
|
3524
|
+
readonly numQueued: {
|
|
3525
|
+
readonly type: "integer";
|
|
3526
|
+
readonly description: "The number of items in the queue.";
|
|
3527
|
+
};
|
|
3528
|
+
readonly numRunning: {
|
|
3529
|
+
readonly type: "integer";
|
|
3530
|
+
readonly description: "The number of items running.";
|
|
3531
|
+
};
|
|
3532
|
+
readonly numPending: {
|
|
3533
|
+
readonly type: "integer";
|
|
3534
|
+
readonly description: "The number of items pending.";
|
|
3535
|
+
};
|
|
3536
|
+
};
|
|
3537
|
+
readonly required: readonly ["numQueued", "numRunning", "numPending"];
|
|
3538
|
+
};
|
|
3539
|
+
export declare const TenantQueueMetricsSchema: {
|
|
3540
|
+
readonly properties: {
|
|
3541
|
+
readonly total: {
|
|
3542
|
+
readonly $ref: "#/components/schemas/QueueMetrics";
|
|
3543
|
+
readonly description: "The total queue metrics.";
|
|
3544
|
+
};
|
|
3545
|
+
readonly workflow: {
|
|
3546
|
+
readonly type: "object";
|
|
3547
|
+
readonly additionalProperties: {
|
|
3548
|
+
readonly $ref: "#/components/schemas/QueueMetrics";
|
|
3549
|
+
};
|
|
3550
|
+
};
|
|
3551
|
+
readonly queues: {
|
|
3552
|
+
readonly type: "object";
|
|
3553
|
+
readonly additionalProperties: {
|
|
3554
|
+
readonly type: "integer";
|
|
3555
|
+
};
|
|
3556
|
+
};
|
|
3557
|
+
};
|
|
3558
|
+
};
|
|
3559
|
+
export declare const TenantListSchema: {
|
|
3560
|
+
readonly properties: {
|
|
3561
|
+
readonly pagination: {
|
|
3562
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
3563
|
+
};
|
|
3564
|
+
readonly rows: {
|
|
3565
|
+
readonly items: {
|
|
3566
|
+
readonly $ref: "#/components/schemas/Tenant";
|
|
3567
|
+
};
|
|
3568
|
+
readonly type: "array";
|
|
3569
|
+
readonly "x-go-name": "Rows";
|
|
3570
|
+
};
|
|
3571
|
+
};
|
|
3572
|
+
};
|
|
3573
|
+
export declare const LogLineSchema: {
|
|
3574
|
+
readonly properties: {
|
|
3575
|
+
readonly createdAt: {
|
|
3576
|
+
readonly type: "string";
|
|
3577
|
+
readonly format: "date-time";
|
|
3578
|
+
readonly description: "The creation date of the log line.";
|
|
3579
|
+
};
|
|
3580
|
+
readonly message: {
|
|
3581
|
+
readonly type: "string";
|
|
3582
|
+
readonly description: "The log message.";
|
|
3583
|
+
};
|
|
3584
|
+
readonly metadata: {
|
|
3585
|
+
readonly type: "object";
|
|
3586
|
+
readonly description: "The log metadata.";
|
|
3587
|
+
};
|
|
3588
|
+
};
|
|
3589
|
+
readonly required: readonly ["createdAt", "message", "metadata"];
|
|
3590
|
+
};
|
|
3591
|
+
export declare const LogLineLevelSchema: {
|
|
3592
|
+
readonly type: "string";
|
|
3593
|
+
readonly enum: readonly ["DEBUG", "INFO", "WARN", "ERROR"];
|
|
3594
|
+
};
|
|
3595
|
+
export declare const LogLineListSchema: {
|
|
3596
|
+
readonly properties: {
|
|
3597
|
+
readonly pagination: {
|
|
3598
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
3599
|
+
};
|
|
3600
|
+
readonly rows: {
|
|
3601
|
+
readonly items: {
|
|
3602
|
+
readonly $ref: "#/components/schemas/LogLine";
|
|
3603
|
+
};
|
|
3604
|
+
readonly type: "array";
|
|
3605
|
+
};
|
|
3606
|
+
};
|
|
3607
|
+
};
|
|
3608
|
+
export declare const CommonResultSchema: {
|
|
3609
|
+
readonly required: readonly ["Success", "Message"];
|
|
3610
|
+
readonly properties: {
|
|
3611
|
+
readonly Success: {
|
|
3612
|
+
readonly type: "boolean";
|
|
3613
|
+
};
|
|
3614
|
+
readonly Message: {
|
|
3615
|
+
readonly type: "string";
|
|
3616
|
+
};
|
|
3617
|
+
readonly other: {
|
|
3618
|
+
readonly type: "object";
|
|
3619
|
+
};
|
|
3620
|
+
};
|
|
3621
|
+
};
|
|
3622
|
+
export declare const FormFieldSchema: {
|
|
3623
|
+
readonly required: readonly ["type", "name"];
|
|
3624
|
+
readonly properties: {
|
|
3625
|
+
readonly type: {
|
|
3626
|
+
readonly type: "string";
|
|
3627
|
+
readonly enum: readonly ["text", "number", "boolean", "array", "object"];
|
|
3628
|
+
readonly default: "text";
|
|
3629
|
+
};
|
|
3630
|
+
readonly name: {
|
|
3631
|
+
readonly type: "string";
|
|
3632
|
+
};
|
|
3633
|
+
readonly default_value: {
|
|
3634
|
+
readonly type: "string";
|
|
3635
|
+
};
|
|
3636
|
+
readonly label: {
|
|
3637
|
+
readonly type: "string";
|
|
3638
|
+
};
|
|
3639
|
+
readonly description: {
|
|
3640
|
+
readonly type: "string";
|
|
3641
|
+
};
|
|
3642
|
+
readonly required: {
|
|
3643
|
+
readonly type: "boolean";
|
|
3644
|
+
};
|
|
3645
|
+
readonly min: {
|
|
3646
|
+
readonly type: "number";
|
|
3647
|
+
};
|
|
3648
|
+
readonly max: {
|
|
3649
|
+
readonly type: "number";
|
|
3650
|
+
};
|
|
3651
|
+
readonly placeholder: {
|
|
3652
|
+
readonly type: "string";
|
|
3653
|
+
};
|
|
3654
|
+
};
|
|
3655
|
+
};
|
|
3656
|
+
export declare const SchemaFormSchema: {
|
|
3657
|
+
readonly required: readonly ["title", "fields"];
|
|
3658
|
+
readonly properties: {
|
|
3659
|
+
readonly form_type: {
|
|
3660
|
+
readonly type: "string";
|
|
3661
|
+
readonly enum: readonly ["schema", "custom"];
|
|
3662
|
+
readonly default: "schema";
|
|
3663
|
+
};
|
|
3664
|
+
readonly form_name: {
|
|
3665
|
+
readonly type: "string";
|
|
3666
|
+
};
|
|
3667
|
+
readonly title: {
|
|
3668
|
+
readonly type: "string";
|
|
3669
|
+
};
|
|
3670
|
+
readonly description: {
|
|
3671
|
+
readonly type: "string";
|
|
3672
|
+
};
|
|
3673
|
+
readonly layout: {
|
|
3674
|
+
readonly type: "string";
|
|
3675
|
+
readonly enum: readonly ["vertical", "horizontal"];
|
|
3676
|
+
readonly default: "vertical";
|
|
3677
|
+
};
|
|
3678
|
+
readonly fields: {
|
|
3679
|
+
readonly type: "array";
|
|
3680
|
+
readonly items: {
|
|
3681
|
+
readonly $ref: "#/components/schemas/FormField";
|
|
3682
|
+
};
|
|
3683
|
+
};
|
|
3684
|
+
};
|
|
3685
|
+
};
|
|
3686
|
+
export declare const MtWorkerPropertiesSchema: {
|
|
3687
|
+
readonly type: "object";
|
|
3688
|
+
readonly properties: {
|
|
3689
|
+
readonly id: {
|
|
3690
|
+
readonly type: "string";
|
|
3691
|
+
};
|
|
3692
|
+
readonly name: {
|
|
3693
|
+
readonly type: "string";
|
|
3694
|
+
};
|
|
3695
|
+
};
|
|
3696
|
+
};
|
|
3697
|
+
export declare const McpToolSchema: {
|
|
3698
|
+
readonly type: "object";
|
|
3699
|
+
readonly description: "MCP 工具信息";
|
|
3700
|
+
readonly properties: {
|
|
3701
|
+
readonly name: {
|
|
3702
|
+
readonly type: "string";
|
|
3703
|
+
readonly description: "工具名称";
|
|
3704
|
+
readonly example: "hello-mcp";
|
|
3705
|
+
};
|
|
3706
|
+
readonly description: {
|
|
3707
|
+
readonly type: "string";
|
|
3708
|
+
readonly description: "工具描述";
|
|
3709
|
+
readonly example: "A simple tool that echoes back a message with a greeting";
|
|
3710
|
+
};
|
|
3711
|
+
};
|
|
3712
|
+
readonly required: readonly ["name", "description"];
|
|
3713
|
+
};
|
|
3714
|
+
export declare const McpInfoSchema: {
|
|
3715
|
+
readonly type: "object";
|
|
3716
|
+
readonly description: "MCP 服务信息";
|
|
3717
|
+
readonly properties: {
|
|
3718
|
+
readonly name: {
|
|
3719
|
+
readonly type: "string";
|
|
3720
|
+
readonly description: "MCP 服务名称";
|
|
3721
|
+
readonly example: "gomtm-mcp-server-v2";
|
|
3722
|
+
};
|
|
3723
|
+
readonly version: {
|
|
3724
|
+
readonly type: "string";
|
|
3725
|
+
readonly description: "MCP 服务版本";
|
|
3726
|
+
readonly example: "1.0.0";
|
|
3727
|
+
};
|
|
3728
|
+
readonly description: {
|
|
3729
|
+
readonly type: "string";
|
|
3730
|
+
readonly description: "MCP 服务描述";
|
|
3731
|
+
readonly example: "GoMTM MCP Server v2 using official Go SDK";
|
|
3732
|
+
};
|
|
3733
|
+
readonly baseUrl: {
|
|
3734
|
+
readonly type: "string";
|
|
3735
|
+
readonly description: "MCP 服务基础URL路径";
|
|
3736
|
+
readonly example: "/mcp_v2/";
|
|
3737
|
+
};
|
|
3738
|
+
readonly endpoints: {
|
|
3739
|
+
readonly type: "object";
|
|
3740
|
+
readonly description: "MCP 服务端点配置";
|
|
3741
|
+
readonly properties: {
|
|
3742
|
+
readonly sse: {
|
|
3743
|
+
readonly type: "string";
|
|
3744
|
+
readonly description: "SSE 端点URL";
|
|
3745
|
+
readonly example: "http://localhost:8080/mcp_v2/sse";
|
|
3746
|
+
};
|
|
3747
|
+
readonly message: {
|
|
3748
|
+
readonly type: "string";
|
|
3749
|
+
readonly description: "消息端点URL";
|
|
3750
|
+
readonly example: "http://localhost:8080/mcp_v2/message";
|
|
3751
|
+
};
|
|
3752
|
+
readonly health: {
|
|
3753
|
+
readonly type: "string";
|
|
3754
|
+
readonly description: "健康检查端点URL";
|
|
3755
|
+
readonly example: "http://localhost:8080/mcp_v2/health";
|
|
3756
|
+
};
|
|
3757
|
+
};
|
|
3758
|
+
readonly required: readonly ["sse", "message", "health"];
|
|
3759
|
+
};
|
|
3760
|
+
readonly status: {
|
|
3761
|
+
readonly type: "string";
|
|
3762
|
+
readonly enum: readonly ["running", "stopped", "error"];
|
|
3763
|
+
readonly description: "MCP 服务状态";
|
|
3764
|
+
readonly example: "running";
|
|
3765
|
+
};
|
|
3766
|
+
readonly tools: {
|
|
3767
|
+
readonly type: "array";
|
|
3768
|
+
readonly description: "可用的 MCP 工具列表";
|
|
3769
|
+
readonly items: {
|
|
3770
|
+
readonly $ref: "#/components/schemas/McpTool";
|
|
3771
|
+
};
|
|
3772
|
+
};
|
|
3773
|
+
};
|
|
3774
|
+
readonly required: readonly ["name", "version", "description", "baseUrl", "endpoints", "status"];
|
|
3775
|
+
};
|
|
3776
|
+
export declare const McpDiagnosticCheckSchema: {
|
|
3777
|
+
readonly type: "object";
|
|
3778
|
+
readonly description: "MCP 诊断检查项";
|
|
3779
|
+
readonly properties: {
|
|
3780
|
+
readonly name: {
|
|
3781
|
+
readonly type: "string";
|
|
3782
|
+
readonly description: "检查项名称";
|
|
3783
|
+
readonly example: "health_check";
|
|
3784
|
+
};
|
|
3785
|
+
readonly description: {
|
|
3786
|
+
readonly type: "string";
|
|
3787
|
+
readonly description: "检查项描述";
|
|
3788
|
+
readonly example: "健康检查端点测试";
|
|
3789
|
+
};
|
|
3790
|
+
readonly status: {
|
|
3791
|
+
readonly type: "string";
|
|
3792
|
+
readonly enum: readonly ["passed", "failed", "unknown"];
|
|
3793
|
+
readonly description: "检查结果状态";
|
|
3794
|
+
readonly example: "passed";
|
|
3795
|
+
};
|
|
3796
|
+
readonly message: {
|
|
3797
|
+
readonly type: "string";
|
|
3798
|
+
readonly description: "检查结果消息";
|
|
3799
|
+
readonly example: "健康检查端点正常";
|
|
3800
|
+
};
|
|
3801
|
+
readonly error: {
|
|
3802
|
+
readonly type: "string";
|
|
3803
|
+
readonly description: "错误信息(如果检查失败)";
|
|
3804
|
+
readonly example: "连接超时";
|
|
3805
|
+
};
|
|
3806
|
+
};
|
|
3807
|
+
readonly required: readonly ["name", "description", "status", "message"];
|
|
3808
|
+
};
|
|
3809
|
+
export declare const McpDiagnosticsSchema: {
|
|
3810
|
+
readonly type: "object";
|
|
3811
|
+
readonly description: "MCP 服务诊断结果";
|
|
3812
|
+
readonly properties: {
|
|
3813
|
+
readonly timestamp: {
|
|
3814
|
+
readonly type: "string";
|
|
3815
|
+
readonly format: "date-time";
|
|
3816
|
+
readonly description: "诊断执行时间";
|
|
3817
|
+
readonly example: "2024-01-28T10:30:00Z";
|
|
3818
|
+
};
|
|
3819
|
+
readonly sseUrl: {
|
|
3820
|
+
readonly type: "string";
|
|
3821
|
+
readonly description: "测试的 SSE 端点URL";
|
|
3822
|
+
readonly example: "http://localhost:8080/mcp_v2/sse";
|
|
3823
|
+
};
|
|
3824
|
+
readonly healthUrl: {
|
|
3825
|
+
readonly type: "string";
|
|
3826
|
+
readonly description: "测试的健康检查端点URL";
|
|
3827
|
+
readonly example: "http://localhost:8080/mcp_v2/health";
|
|
3828
|
+
};
|
|
3829
|
+
readonly status: {
|
|
3830
|
+
readonly type: "string";
|
|
3831
|
+
readonly enum: readonly ["healthy", "unhealthy", "unknown"];
|
|
3832
|
+
readonly description: "整体诊断状态";
|
|
3833
|
+
readonly example: "healthy";
|
|
3834
|
+
};
|
|
3835
|
+
readonly message: {
|
|
3836
|
+
readonly type: "string";
|
|
3837
|
+
readonly description: "诊断结果消息";
|
|
3838
|
+
readonly example: "所有检查都通过";
|
|
3839
|
+
};
|
|
3840
|
+
readonly checks: {
|
|
3841
|
+
readonly type: "array";
|
|
3842
|
+
readonly description: "详细的检查结果列表";
|
|
3843
|
+
readonly items: {
|
|
3844
|
+
readonly $ref: "#/components/schemas/McpDiagnosticCheck";
|
|
3845
|
+
};
|
|
3846
|
+
};
|
|
3847
|
+
readonly tools: {
|
|
3848
|
+
readonly type: "array";
|
|
3849
|
+
readonly description: "检测到的工具列表";
|
|
3850
|
+
readonly items: {
|
|
3851
|
+
readonly $ref: "#/components/schemas/McpTool";
|
|
3852
|
+
};
|
|
3853
|
+
};
|
|
3854
|
+
};
|
|
3855
|
+
readonly required: readonly ["timestamp", "sseUrl", "healthUrl", "status", "checks"];
|
|
3856
|
+
};
|
|
3857
|
+
export declare const AgentEventTypeSchema: {
|
|
3858
|
+
readonly type: "string";
|
|
3859
|
+
readonly enum: readonly ["ThoughtEvent", "TextMessage", "PlatformAccountFlowInput", "ChatMessageInput", "SocialAddFollowersInput", "SocialLoginInput", "TenantInitInput", "AskUserFunctionCallInput", "StartNewChatInput"];
|
|
3860
|
+
};
|
|
3861
|
+
export declare const FlowNamesSchema: {
|
|
3862
|
+
readonly type: "string";
|
|
3863
|
+
readonly enum: readonly ["sys", "tenant", "assistant", "ag", "browser", "resource", "instagram", "social", "team", "adk"];
|
|
3864
|
+
};
|
|
3865
|
+
export declare const AgentRunnerInputSchema: {
|
|
3866
|
+
readonly properties: {
|
|
3867
|
+
readonly content: {
|
|
3868
|
+
readonly type: "string";
|
|
3869
|
+
};
|
|
3870
|
+
};
|
|
3871
|
+
};
|
|
3872
|
+
export declare const AgentRunnerOutputSchema: {
|
|
3873
|
+
readonly properties: {
|
|
3874
|
+
readonly content: {
|
|
3875
|
+
readonly type: "string";
|
|
3876
|
+
};
|
|
3877
|
+
};
|
|
3878
|
+
};
|
|
3879
|
+
export declare const AgentPropertiesSchema: {
|
|
3880
|
+
readonly required: readonly ["name", "description", "provider", "config", "teamId"];
|
|
3881
|
+
readonly properties: {
|
|
3882
|
+
readonly name: {
|
|
3883
|
+
readonly type: "string";
|
|
3884
|
+
};
|
|
3885
|
+
readonly description: {
|
|
3886
|
+
readonly type: "string";
|
|
3887
|
+
};
|
|
3888
|
+
readonly provider: {
|
|
3889
|
+
readonly type: "string";
|
|
3890
|
+
};
|
|
3891
|
+
readonly config: {
|
|
3892
|
+
readonly type: "object";
|
|
3893
|
+
};
|
|
3894
|
+
readonly teamId: {
|
|
3895
|
+
readonly type: "string";
|
|
3896
|
+
};
|
|
3897
|
+
};
|
|
3898
|
+
};
|
|
3899
|
+
export declare const AgentSchema: {
|
|
3900
|
+
readonly allOf: readonly [{
|
|
3901
|
+
readonly $ref: "#/components/schemas/APIResourceMetaProperties";
|
|
3902
|
+
}, {
|
|
3903
|
+
readonly $ref: "#/components/schemas/AgentProperties";
|
|
3904
|
+
}];
|
|
3905
|
+
};
|
|
3906
|
+
export declare const AgentListSchema: {
|
|
3907
|
+
readonly properties: {
|
|
3908
|
+
readonly pagination: {
|
|
3909
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
3910
|
+
};
|
|
3911
|
+
readonly rows: {
|
|
3912
|
+
readonly type: "array";
|
|
3913
|
+
readonly items: {
|
|
3914
|
+
readonly $ref: "#/components/schemas/Agent";
|
|
3915
|
+
};
|
|
3916
|
+
};
|
|
3917
|
+
};
|
|
3918
|
+
};
|
|
3919
|
+
export declare const AgentTopicTypesSchema: {
|
|
3920
|
+
readonly type: "string";
|
|
3921
|
+
readonly enum: readonly ["user", "human", "instagram", "browser", "socioety", "code", "router", "research", "writer", "tenant", "closure", "response"];
|
|
3922
|
+
};
|
|
3923
|
+
export declare const BrowserTaskSchema: {
|
|
3924
|
+
readonly description: "浏览器(browser use)任务";
|
|
3925
|
+
readonly required: readonly ["content"];
|
|
3926
|
+
readonly properties: {
|
|
3927
|
+
readonly content: {
|
|
3928
|
+
readonly type: "string";
|
|
3929
|
+
};
|
|
3930
|
+
};
|
|
3931
|
+
};
|
|
3932
|
+
export declare const BrowserOpenTaskSchema: {
|
|
3933
|
+
readonly description: "打开浏览器备用,一般用于调试目的Open a browser and navigate to a URL.";
|
|
3934
|
+
readonly required: readonly ["url"];
|
|
3935
|
+
readonly properties: {
|
|
3936
|
+
readonly url: {
|
|
3937
|
+
readonly type: "string";
|
|
3938
|
+
};
|
|
3939
|
+
};
|
|
3940
|
+
};
|
|
3941
|
+
export declare const BrowserConfigSchema: {
|
|
3942
|
+
readonly description: "浏览器配置(未完成)";
|
|
3943
|
+
readonly properties: {
|
|
3944
|
+
readonly persistent: {
|
|
3945
|
+
readonly type: "boolean";
|
|
3946
|
+
};
|
|
3947
|
+
};
|
|
3948
|
+
};
|
|
3949
|
+
export declare const ScheduledItemSchema: {
|
|
3950
|
+
readonly required: readonly ["id", "type", "trigger", "nextTrigger", "description"];
|
|
3951
|
+
readonly properties: {
|
|
3952
|
+
readonly id: {
|
|
3953
|
+
readonly type: "string";
|
|
3954
|
+
};
|
|
3955
|
+
readonly type: {
|
|
3956
|
+
readonly type: "string";
|
|
3957
|
+
readonly enum: readonly ["cron", "scheduled", "delayed"];
|
|
3958
|
+
};
|
|
3959
|
+
readonly trigger: {
|
|
3960
|
+
readonly type: "string";
|
|
3961
|
+
};
|
|
3962
|
+
readonly nextTrigger: {
|
|
3963
|
+
readonly type: "string";
|
|
3964
|
+
};
|
|
3965
|
+
readonly description: {
|
|
3966
|
+
readonly type: "string";
|
|
3967
|
+
};
|
|
3968
|
+
};
|
|
3969
|
+
};
|
|
3970
|
+
export declare const PlatformAccountPropertiesSchema: {
|
|
3971
|
+
readonly required: readonly ["username", "password", "platform"];
|
|
3972
|
+
readonly properties: {
|
|
3973
|
+
readonly label: {
|
|
3974
|
+
readonly type: "string";
|
|
3975
|
+
};
|
|
3976
|
+
readonly description: {
|
|
3977
|
+
readonly type: "string";
|
|
3978
|
+
};
|
|
3979
|
+
readonly username: {
|
|
3980
|
+
readonly type: "string";
|
|
3981
|
+
};
|
|
3982
|
+
readonly email: {
|
|
3983
|
+
readonly type: "string";
|
|
3984
|
+
};
|
|
3985
|
+
readonly password: {
|
|
3986
|
+
readonly type: "string";
|
|
3987
|
+
};
|
|
3988
|
+
readonly token: {
|
|
3989
|
+
readonly type: "string";
|
|
3990
|
+
};
|
|
3991
|
+
readonly type: {
|
|
3992
|
+
readonly type: "string";
|
|
3993
|
+
};
|
|
3994
|
+
readonly platform: {
|
|
3995
|
+
readonly type: "string";
|
|
3996
|
+
};
|
|
3997
|
+
readonly enabled: {
|
|
3998
|
+
readonly type: "boolean";
|
|
3999
|
+
};
|
|
4000
|
+
readonly tags: {
|
|
4001
|
+
readonly type: "array";
|
|
4002
|
+
readonly items: {
|
|
4003
|
+
readonly type: "string";
|
|
4004
|
+
};
|
|
4005
|
+
};
|
|
4006
|
+
readonly state: {
|
|
4007
|
+
readonly type: "object";
|
|
4008
|
+
readonly additionalProperties: true;
|
|
4009
|
+
};
|
|
4010
|
+
readonly error: {
|
|
4011
|
+
readonly type: "string";
|
|
4012
|
+
};
|
|
4013
|
+
};
|
|
4014
|
+
};
|
|
4015
|
+
export declare const PlatformAccountSchema: {
|
|
4016
|
+
readonly allOf: readonly [{
|
|
4017
|
+
readonly $ref: "#/components/schemas/APIResourceMetaProperties";
|
|
4018
|
+
}, {
|
|
4019
|
+
readonly $ref: "#/components/schemas/PlatformAccountProperties";
|
|
4020
|
+
}];
|
|
4021
|
+
};
|
|
4022
|
+
export declare const PlatformAccountListSchema: {
|
|
4023
|
+
readonly properties: {
|
|
4024
|
+
readonly pagination: {
|
|
4025
|
+
readonly $ref: "#/components/schemas/PaginationResponse";
|
|
4026
|
+
};
|
|
4027
|
+
readonly rows: {
|
|
4028
|
+
readonly items: {
|
|
4029
|
+
readonly $ref: "#/components/schemas/PlatformAccount";
|
|
4030
|
+
};
|
|
4031
|
+
readonly type: "array";
|
|
4032
|
+
};
|
|
4033
|
+
};
|
|
4034
|
+
};
|
|
4035
|
+
export declare const PlatformAccountUpsertSchema: {
|
|
4036
|
+
readonly allOf: readonly [{
|
|
4037
|
+
readonly $ref: "#/components/schemas/PlatformAccountProperties";
|
|
4038
|
+
}];
|
|
4039
|
+
};
|
|
4040
|
+
export declare const SbOutboundListSchema: {
|
|
4041
|
+
readonly description: "List of sing-box outbounds";
|
|
4042
|
+
readonly properties: {
|
|
4043
|
+
readonly outbounds: {
|
|
4044
|
+
readonly type: "array";
|
|
4045
|
+
readonly items: {
|
|
4046
|
+
readonly $ref: "#/components/schemas/SbOutbound";
|
|
4047
|
+
};
|
|
4048
|
+
};
|
|
4049
|
+
};
|
|
4050
|
+
};
|
|
4051
|
+
export declare const SbNetworkInterfaceSchema: {
|
|
4052
|
+
readonly description: "Network interface information";
|
|
4053
|
+
readonly required: readonly ["name", "isUp", "type"];
|
|
4054
|
+
readonly properties: {
|
|
4055
|
+
readonly name: {
|
|
4056
|
+
readonly type: "string";
|
|
4057
|
+
readonly description: "Interface name (e.g., eth0, tun0)";
|
|
4058
|
+
};
|
|
4059
|
+
readonly isUp: {
|
|
4060
|
+
readonly type: "boolean";
|
|
4061
|
+
readonly description: "Whether the interface is up";
|
|
4062
|
+
};
|
|
4063
|
+
readonly type: {
|
|
4064
|
+
readonly type: "string";
|
|
4065
|
+
readonly enum: readonly ["ethernet", "wifi", "tun", "tap", "loopback", "other"];
|
|
4066
|
+
readonly description: "Type of network interface";
|
|
4067
|
+
};
|
|
4068
|
+
readonly ipAddresses: {
|
|
4069
|
+
readonly type: "array";
|
|
4070
|
+
readonly items: {
|
|
4071
|
+
readonly type: "string";
|
|
4072
|
+
};
|
|
4073
|
+
readonly description: "List of IP addresses assigned to this interface";
|
|
4074
|
+
};
|
|
4075
|
+
readonly macAddress: {
|
|
4076
|
+
readonly type: "string";
|
|
4077
|
+
readonly description: "MAC address of the interface (if applicable)";
|
|
4078
|
+
};
|
|
4079
|
+
readonly mtu: {
|
|
4080
|
+
readonly type: "integer";
|
|
4081
|
+
readonly description: "Maximum Transmission Unit";
|
|
4082
|
+
};
|
|
4083
|
+
readonly rxBytes: {
|
|
4084
|
+
readonly type: "integer";
|
|
4085
|
+
readonly description: "Bytes received";
|
|
4086
|
+
};
|
|
4087
|
+
readonly txBytes: {
|
|
4088
|
+
readonly type: "integer";
|
|
4089
|
+
readonly description: "Bytes transmitted";
|
|
4090
|
+
};
|
|
4091
|
+
readonly flags: {
|
|
4092
|
+
readonly type: "array";
|
|
4093
|
+
readonly items: {
|
|
4094
|
+
readonly type: "string";
|
|
4095
|
+
};
|
|
4096
|
+
readonly description: "Interface flags (UP, RUNNING, etc.)";
|
|
4097
|
+
};
|
|
4098
|
+
};
|
|
4099
|
+
};
|
|
4100
|
+
export declare const SbTorProcessSchema: {
|
|
4101
|
+
readonly description: "Information about a Tor process";
|
|
4102
|
+
readonly required: readonly ["pid", "command", "isEmbedded"];
|
|
4103
|
+
readonly properties: {
|
|
4104
|
+
readonly pid: {
|
|
4105
|
+
readonly type: "integer";
|
|
4106
|
+
readonly description: "Process ID";
|
|
4107
|
+
};
|
|
4108
|
+
readonly command: {
|
|
4109
|
+
readonly type: "string";
|
|
4110
|
+
readonly description: "Command line used to start the process";
|
|
4111
|
+
};
|
|
4112
|
+
readonly isEmbedded: {
|
|
4113
|
+
readonly type: "boolean";
|
|
4114
|
+
readonly description: "Whether this is an embedded Tor process";
|
|
4115
|
+
};
|
|
4116
|
+
readonly startTime: {
|
|
4117
|
+
readonly type: "string";
|
|
4118
|
+
readonly format: "date-time";
|
|
4119
|
+
readonly description: "When the process was started";
|
|
4120
|
+
};
|
|
4121
|
+
readonly memoryUsage: {
|
|
4122
|
+
readonly type: "integer";
|
|
4123
|
+
readonly description: "Memory usage in bytes";
|
|
4124
|
+
};
|
|
4125
|
+
readonly cpuUsage: {
|
|
4126
|
+
readonly type: "number";
|
|
4127
|
+
readonly description: "CPU usage percentage";
|
|
4128
|
+
};
|
|
4129
|
+
readonly status: {
|
|
4130
|
+
readonly type: "string";
|
|
4131
|
+
readonly enum: readonly ["running", "sleeping", "stopped", "zombie"];
|
|
4132
|
+
readonly description: "Process status";
|
|
4133
|
+
};
|
|
4134
|
+
};
|
|
4135
|
+
};
|
|
4136
|
+
export declare const SbSystemInfoSchema: {
|
|
4137
|
+
readonly description: "System information relevant to Tor operation";
|
|
4138
|
+
readonly required: readonly ["os", "architecture", "hasRootPrivileges"];
|
|
4139
|
+
readonly properties: {
|
|
4140
|
+
readonly os: {
|
|
4141
|
+
readonly type: "string";
|
|
4142
|
+
readonly description: "Operating system name";
|
|
4143
|
+
};
|
|
4144
|
+
readonly architecture: {
|
|
4145
|
+
readonly type: "string";
|
|
4146
|
+
readonly description: "System architecture (amd64, arm64, etc.)";
|
|
4147
|
+
};
|
|
4148
|
+
readonly hasRootPrivileges: {
|
|
4149
|
+
readonly type: "boolean";
|
|
4150
|
+
readonly description: "Whether the process has root/admin privileges";
|
|
4151
|
+
};
|
|
4152
|
+
readonly kernelVersion: {
|
|
4153
|
+
readonly type: "string";
|
|
4154
|
+
readonly description: "Kernel version";
|
|
4155
|
+
};
|
|
4156
|
+
readonly availableMemory: {
|
|
4157
|
+
readonly type: "integer";
|
|
4158
|
+
readonly description: "Available system memory in bytes";
|
|
4159
|
+
};
|
|
4160
|
+
readonly totalMemory: {
|
|
4161
|
+
readonly type: "integer";
|
|
4162
|
+
readonly description: "Total system memory in bytes";
|
|
4163
|
+
};
|
|
4164
|
+
readonly loadAverage: {
|
|
4165
|
+
readonly type: "array";
|
|
4166
|
+
readonly items: {
|
|
4167
|
+
readonly type: "number";
|
|
4168
|
+
};
|
|
4169
|
+
readonly description: "System load average (1, 5, 15 minutes)";
|
|
4170
|
+
};
|
|
4171
|
+
readonly isCodespaces: {
|
|
4172
|
+
readonly type: "boolean";
|
|
4173
|
+
readonly description: "Whether running in GitHub Codespaces";
|
|
4174
|
+
};
|
|
4175
|
+
readonly isContainer: {
|
|
4176
|
+
readonly type: "boolean";
|
|
4177
|
+
readonly description: "Whether running in a container";
|
|
4178
|
+
};
|
|
4179
|
+
};
|
|
4180
|
+
};
|
|
4181
|
+
export declare const SbEmbeddedTorInfoSchema: {
|
|
4182
|
+
readonly description: "Information about the embedded Tor instance";
|
|
4183
|
+
readonly properties: {
|
|
4184
|
+
readonly version: {
|
|
4185
|
+
readonly type: "string";
|
|
4186
|
+
readonly description: "Embedded Tor version";
|
|
4187
|
+
};
|
|
4188
|
+
readonly isActive: {
|
|
4189
|
+
readonly type: "boolean";
|
|
4190
|
+
readonly description: "Whether embedded Tor is currently active";
|
|
4191
|
+
};
|
|
4192
|
+
readonly dataDirectory: {
|
|
4193
|
+
readonly type: "string";
|
|
4194
|
+
readonly description: "Path to Tor data directory";
|
|
4195
|
+
};
|
|
4196
|
+
readonly configurationSummary: {
|
|
4197
|
+
readonly type: "object";
|
|
4198
|
+
readonly description: "Summary of current Tor configuration";
|
|
4199
|
+
};
|
|
4200
|
+
readonly bootstrapProgress: {
|
|
4201
|
+
readonly type: "integer";
|
|
4202
|
+
readonly minimum: 0;
|
|
4203
|
+
readonly maximum: 100;
|
|
4204
|
+
readonly description: "Tor bootstrap progress percentage";
|
|
4205
|
+
};
|
|
4206
|
+
readonly circuitCount: {
|
|
4207
|
+
readonly type: "integer";
|
|
4208
|
+
readonly description: "Number of active circuits";
|
|
4209
|
+
};
|
|
4210
|
+
readonly relayCount: {
|
|
4211
|
+
readonly type: "integer";
|
|
4212
|
+
readonly description: "Number of known relays";
|
|
4213
|
+
};
|
|
4214
|
+
};
|
|
4215
|
+
};
|
|
4216
|
+
export declare const SbRouteEntrySchema: {
|
|
4217
|
+
readonly description: "Routing table entry";
|
|
4218
|
+
readonly required: readonly ["destination", "gateway", "interface"];
|
|
4219
|
+
readonly properties: {
|
|
4220
|
+
readonly destination: {
|
|
4221
|
+
readonly type: "string";
|
|
4222
|
+
readonly description: "Destination network (CIDR notation)";
|
|
4223
|
+
};
|
|
4224
|
+
readonly gateway: {
|
|
4225
|
+
readonly type: "string";
|
|
4226
|
+
readonly description: "Gateway IP address";
|
|
4227
|
+
};
|
|
4228
|
+
readonly interface: {
|
|
4229
|
+
readonly type: "string";
|
|
4230
|
+
readonly description: "Network interface name";
|
|
4231
|
+
};
|
|
4232
|
+
readonly metric: {
|
|
4233
|
+
readonly type: "integer";
|
|
4234
|
+
readonly description: "Route metric/priority";
|
|
4235
|
+
};
|
|
4236
|
+
readonly flags: {
|
|
4237
|
+
readonly type: "array";
|
|
4238
|
+
readonly items: {
|
|
4239
|
+
readonly type: "string";
|
|
4240
|
+
};
|
|
4241
|
+
readonly description: "Route flags";
|
|
4242
|
+
};
|
|
4243
|
+
};
|
|
4244
|
+
};
|
|
4245
|
+
export declare const SbDNSConfigurationSchema: {
|
|
4246
|
+
readonly description: "DNS configuration information";
|
|
4247
|
+
readonly properties: {
|
|
4248
|
+
readonly nameservers: {
|
|
4249
|
+
readonly type: "array";
|
|
4250
|
+
readonly items: {
|
|
4251
|
+
readonly type: "string";
|
|
4252
|
+
};
|
|
4253
|
+
readonly description: "List of configured DNS nameservers";
|
|
4254
|
+
};
|
|
4255
|
+
readonly searchDomains: {
|
|
4256
|
+
readonly type: "array";
|
|
4257
|
+
readonly items: {
|
|
4258
|
+
readonly type: "string";
|
|
4259
|
+
};
|
|
4260
|
+
readonly description: "DNS search domains";
|
|
4261
|
+
};
|
|
4262
|
+
readonly torDNSPort: {
|
|
4263
|
+
readonly type: "integer";
|
|
4264
|
+
readonly description: "Port used for Tor DNS resolution";
|
|
4265
|
+
};
|
|
4266
|
+
readonly dnsOverTor: {
|
|
4267
|
+
readonly type: "boolean";
|
|
4268
|
+
readonly description: "Whether DNS queries are routed through Tor";
|
|
4269
|
+
};
|
|
4270
|
+
};
|
|
4271
|
+
};
|
|
4272
|
+
export declare const SbPerformanceMetricsSchema: {
|
|
4273
|
+
readonly description: "Performance metrics for Tor V4";
|
|
4274
|
+
readonly properties: {
|
|
4275
|
+
readonly connectionCount: {
|
|
4276
|
+
readonly type: "integer";
|
|
4277
|
+
readonly description: "Number of active connections";
|
|
4278
|
+
};
|
|
4279
|
+
readonly bytesReceived: {
|
|
4280
|
+
readonly type: "integer";
|
|
4281
|
+
readonly description: "Total bytes received";
|
|
4282
|
+
};
|
|
4283
|
+
readonly bytesSent: {
|
|
4284
|
+
readonly type: "integer";
|
|
4285
|
+
readonly description: "Total bytes sent";
|
|
4286
|
+
};
|
|
4287
|
+
readonly averageLatency: {
|
|
4288
|
+
readonly type: "number";
|
|
4289
|
+
readonly description: "Average connection latency in milliseconds";
|
|
4290
|
+
};
|
|
4291
|
+
readonly circuitBuildTime: {
|
|
4292
|
+
readonly type: "number";
|
|
4293
|
+
readonly description: "Average circuit build time in milliseconds";
|
|
4294
|
+
};
|
|
4295
|
+
readonly lastActivityTime: {
|
|
4296
|
+
readonly type: "string";
|
|
4297
|
+
readonly format: "date-time";
|
|
4298
|
+
readonly description: "Timestamp of last network activity";
|
|
4299
|
+
};
|
|
4300
|
+
};
|
|
4301
|
+
};
|
|
4302
|
+
export declare const MobileHelloSchema: {
|
|
4303
|
+
readonly type: "object";
|
|
4304
|
+
readonly properties: {
|
|
4305
|
+
readonly message: {
|
|
4306
|
+
readonly type: "string";
|
|
4307
|
+
};
|
|
4308
|
+
};
|
|
4309
|
+
};
|
|
4310
|
+
export declare const DatabaseSetupRequestSchema: {
|
|
4311
|
+
readonly type: "object";
|
|
4312
|
+
readonly properties: {
|
|
4313
|
+
readonly databaseUrl: {
|
|
4314
|
+
readonly type: "string";
|
|
4315
|
+
readonly description: "PostgreSQL database connection string";
|
|
4316
|
+
readonly example: "postgresql://postgres:postgres@localhost:5432/gomtm";
|
|
4317
|
+
readonly pattern: "^postgresql:";
|
|
4318
|
+
};
|
|
4319
|
+
};
|
|
4320
|
+
readonly required: readonly ["databaseUrl"];
|
|
4321
|
+
};
|
|
4322
|
+
export declare const DatabaseSetupResponseSchema: {
|
|
4323
|
+
readonly type: "object";
|
|
4324
|
+
readonly properties: {
|
|
4325
|
+
readonly success: {
|
|
4326
|
+
readonly type: "boolean";
|
|
4327
|
+
readonly description: "Whether the database configuration was successful";
|
|
4328
|
+
readonly example: true;
|
|
4329
|
+
};
|
|
4330
|
+
readonly message: {
|
|
4331
|
+
readonly type: "string";
|
|
4332
|
+
readonly description: "Success message";
|
|
4333
|
+
readonly example: "Database configured successfully";
|
|
4334
|
+
};
|
|
4335
|
+
readonly databaseUrl: {
|
|
4336
|
+
readonly type: "string";
|
|
4337
|
+
readonly description: "The configured database URL (without sensitive information)";
|
|
4338
|
+
readonly example: "postgresql://***:***@localhost:5432/gomtm";
|
|
4339
|
+
};
|
|
4340
|
+
};
|
|
4341
|
+
readonly required: readonly ["success", "message"];
|
|
4342
|
+
};
|
|
4343
|
+
export declare const SetupStatusResponseSchema: {
|
|
4344
|
+
readonly type: "object";
|
|
4345
|
+
readonly properties: {
|
|
4346
|
+
readonly databaseConfigured: {
|
|
4347
|
+
readonly type: "boolean";
|
|
4348
|
+
readonly description: "Whether database is configured";
|
|
4349
|
+
readonly example: true;
|
|
4350
|
+
};
|
|
4351
|
+
readonly setupComplete: {
|
|
4352
|
+
readonly type: "boolean";
|
|
4353
|
+
readonly description: "Whether system setup is complete (only database configuration needed)";
|
|
4354
|
+
readonly example: false;
|
|
4355
|
+
};
|
|
4356
|
+
readonly dbReady: {
|
|
4357
|
+
readonly type: "boolean";
|
|
4358
|
+
readonly description: "Whether the database connection has been validated and is ready";
|
|
4359
|
+
readonly example: false;
|
|
4360
|
+
};
|
|
4361
|
+
readonly lastError: {
|
|
4362
|
+
readonly type: "string";
|
|
4363
|
+
readonly nullable: true;
|
|
4364
|
+
readonly description: "Last error message occurred during validation (if any)";
|
|
4365
|
+
readonly example: "could not connect to database: timeout";
|
|
4366
|
+
};
|
|
4367
|
+
readonly nextStep: {
|
|
4368
|
+
readonly type: "string";
|
|
4369
|
+
readonly enum: readonly ["database", "complete"];
|
|
4370
|
+
readonly description: "Next step in the setup process";
|
|
4371
|
+
readonly example: "database";
|
|
4372
|
+
};
|
|
4373
|
+
};
|
|
4374
|
+
readonly required: readonly ["databaseConfigured", "setupComplete", "nextStep"];
|
|
4375
|
+
};
|
|
4376
|
+
export declare const CreateSiteResponseSchema: {
|
|
4377
|
+
readonly $ref: "#/components/schemas/Site";
|
|
4378
|
+
};
|
|
4379
|
+
export declare const CreateSiteHostRequestSchema: {
|
|
4380
|
+
readonly $ref: "#/components/schemas/SiteHostProperties";
|
|
4381
|
+
};
|
|
4382
|
+
export declare const UpdateSiteHostRequestSchema: {
|
|
4383
|
+
readonly $ref: "#/components/schemas/SiteHost";
|
|
4384
|
+
};
|
|
4385
|
+
//# sourceMappingURL=schemas.gen.d.ts.map
|