mtmsdk 0.0.52 → 0.0.53

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.
Files changed (250) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +21 -173
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +39 -179
  4. package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
  5. package/dist/gomtmapi/index.d.ts +2 -2
  6. package/dist/gomtmapi/index.d.ts.map +1 -1
  7. package/dist/gomtmapi/index.js +1 -1
  8. package/dist/gomtmapi/index.js.map +1 -1
  9. package/dist/gomtmapi/schemas.gen.d.ts +67 -81
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +68 -82
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +15 -95
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +22 -102
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +66 -209
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +48 -121
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +36 -99
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/sbmng/@tanstack/react-query.gen.d.ts +146 -146
  24. package/dist/sbmng/@tanstack/react-query.gen.js +6 -6
  25. package/dist/sbmng/schemas.gen.d.ts +4 -4
  26. package/dist/sbmng/schemas.gen.js +4 -4
  27. package/dist/sbmng/schemas.gen.js.map +1 -1
  28. package/dist/sbmng/sdk.gen.d.ts +6 -6
  29. package/dist/sbmng/sdk.gen.js +6 -6
  30. package/dist/supabase/auth-provider.d.ts +8 -1
  31. package/dist/supabase/auth-provider.d.ts.map +1 -1
  32. package/dist/supabase/context.d.ts +3844 -1
  33. package/dist/supabase/context.d.ts.map +1 -1
  34. package/dist/supabase/cursor-pagination.d.ts +4 -4
  35. package/dist/supabase/cursor-pagination.js +4 -4
  36. package/dist/supabase/schema/index.d.ts +1 -11
  37. package/dist/supabase/schema/index.d.ts.map +1 -1
  38. package/dist/supabase/schema/index.js +1 -19
  39. package/dist/supabase/schema/index.js.map +1 -1
  40. package/dist/supabase/schema/system-config.d.ts +12 -0
  41. package/dist/supabase/schema/system-config.d.ts.map +1 -0
  42. package/dist/supabase/schema/system-config.js +22 -0
  43. package/dist/supabase/schema/system-config.js.map +1 -0
  44. package/dist/supabase/supabase-client.d.ts +1 -471
  45. package/dist/supabase/supabase-client.d.ts.map +1 -1
  46. package/dist/supabase/supabase.d.ts +44 -984
  47. package/dist/supabase/supabase.d.ts.map +1 -1
  48. package/dist/supabase/use-sb-query/use-rpc-mutation.d.ts +8 -8
  49. package/dist/supabase/use-sb-query/use-rpc-mutation.js +8 -8
  50. package/dist/types/contracts.d.ts +63 -0
  51. package/dist/types/contracts.d.ts.map +1 -0
  52. package/dist/types/contracts.js +17 -0
  53. package/dist/types/contracts.js.map +1 -0
  54. package/dist/types/database.schemas.d.ts +27 -626
  55. package/dist/types/database.schemas.d.ts.map +1 -1
  56. package/dist/types/database.schemas.js +0 -432
  57. package/dist/types/database.schemas.js.map +1 -1
  58. package/dist/types/database.types.d.ts +1 -476
  59. package/dist/types/database.types.d.ts.map +1 -1
  60. package/dist/types/database.types.js +0 -10
  61. package/dist/types/database.types.js.map +1 -1
  62. package/dist/types/index.d.ts +9 -25
  63. package/dist/types/index.d.ts.map +1 -1
  64. package/dist/types/index.js +3 -5
  65. package/dist/types/index.js.map +1 -1
  66. package/package.json +101 -105
  67. package/dist/cloud-account/platform-configs.d.ts +0 -64
  68. package/dist/cloud-account/platform-configs.d.ts.map +0 -1
  69. package/dist/cloud-account/platform-configs.js +0 -44
  70. package/dist/cloud-account/platform-configs.js.map +0 -1
  71. package/dist/lib/aisdk/types.d.ts +0 -3
  72. package/dist/lib/aisdk/types.d.ts.map +0 -1
  73. package/dist/lib/aisdk/types.js +0 -5
  74. package/dist/lib/aisdk/types.js.map +0 -1
  75. package/dist/lib/logger/index.d.ts +0 -22
  76. package/dist/lib/logger/index.d.ts.map +0 -1
  77. package/dist/lib/logger/index.js +0 -7
  78. package/dist/lib/logger/index.js.map +0 -1
  79. package/dist/lib/schema.d.ts +0 -43
  80. package/dist/lib/schema.d.ts.map +0 -1
  81. package/dist/lib/schema.js +0 -28
  82. package/dist/lib/schema.js.map +0 -1
  83. package/dist/mtgate_api/client/client.gen.d.ts +0 -3
  84. package/dist/mtgate_api/client/client.gen.d.ts.map +0 -1
  85. package/dist/mtgate_api/client/client.gen.js +0 -236
  86. package/dist/mtgate_api/client/client.gen.js.map +0 -1
  87. package/dist/mtgate_api/client/index.d.ts +0 -9
  88. package/dist/mtgate_api/client/index.d.ts.map +0 -1
  89. package/dist/mtgate_api/client/index.js +0 -7
  90. package/dist/mtgate_api/client/index.js.map +0 -1
  91. package/dist/mtgate_api/client/types.gen.d.ts +0 -118
  92. package/dist/mtgate_api/client/types.gen.d.ts.map +0 -1
  93. package/dist/mtgate_api/client/types.gen.js +0 -3
  94. package/dist/mtgate_api/client/types.gen.js.map +0 -1
  95. package/dist/mtgate_api/client/utils.gen.d.ts +0 -34
  96. package/dist/mtgate_api/client/utils.gen.d.ts.map +0 -1
  97. package/dist/mtgate_api/client/utils.gen.js +0 -232
  98. package/dist/mtgate_api/client/utils.gen.js.map +0 -1
  99. package/dist/mtgate_api/client.gen.d.ts +0 -13
  100. package/dist/mtgate_api/client.gen.d.ts.map +0 -1
  101. package/dist/mtgate_api/client.gen.js +0 -4
  102. package/dist/mtgate_api/client.gen.js.map +0 -1
  103. package/dist/mtgate_api/core/auth.gen.d.ts +0 -19
  104. package/dist/mtgate_api/core/auth.gen.d.ts.map +0 -1
  105. package/dist/mtgate_api/core/auth.gen.js +0 -15
  106. package/dist/mtgate_api/core/auth.gen.js.map +0 -1
  107. package/dist/mtgate_api/core/bodySerializer.gen.d.ts +0 -26
  108. package/dist/mtgate_api/core/bodySerializer.gen.d.ts.map +0 -1
  109. package/dist/mtgate_api/core/bodySerializer.gen.js +0 -58
  110. package/dist/mtgate_api/core/bodySerializer.gen.js.map +0 -1
  111. package/dist/mtgate_api/core/params.gen.d.ts +0 -44
  112. package/dist/mtgate_api/core/params.gen.d.ts.map +0 -1
  113. package/dist/mtgate_api/core/params.gen.js +0 -101
  114. package/dist/mtgate_api/core/params.gen.js.map +0 -1
  115. package/dist/mtgate_api/core/pathSerializer.gen.d.ts +0 -34
  116. package/dist/mtgate_api/core/pathSerializer.gen.d.ts.map +0 -1
  117. package/dist/mtgate_api/core/pathSerializer.gen.js +0 -115
  118. package/dist/mtgate_api/core/pathSerializer.gen.js.map +0 -1
  119. package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts +0 -19
  120. package/dist/mtgate_api/core/queryKeySerializer.gen.d.ts.map +0 -1
  121. package/dist/mtgate_api/core/queryKeySerializer.gen.js +0 -100
  122. package/dist/mtgate_api/core/queryKeySerializer.gen.js.map +0 -1
  123. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts +0 -72
  124. package/dist/mtgate_api/core/serverSentEvents.gen.d.ts.map +0 -1
  125. package/dist/mtgate_api/core/serverSentEvents.gen.js +0 -138
  126. package/dist/mtgate_api/core/serverSentEvents.gen.js.map +0 -1
  127. package/dist/mtgate_api/core/types.gen.d.ts +0 -79
  128. package/dist/mtgate_api/core/types.gen.d.ts.map +0 -1
  129. package/dist/mtgate_api/core/types.gen.js +0 -3
  130. package/dist/mtgate_api/core/types.gen.js.map +0 -1
  131. package/dist/mtgate_api/core/utils.gen.d.ts +0 -20
  132. package/dist/mtgate_api/core/utils.gen.d.ts.map +0 -1
  133. package/dist/mtgate_api/core/utils.gen.js +0 -88
  134. package/dist/mtgate_api/core/utils.gen.js.map +0 -1
  135. package/dist/mtgate_api/index.d.ts +0 -3
  136. package/dist/mtgate_api/index.d.ts.map +0 -1
  137. package/dist/mtgate_api/index.js +0 -3
  138. package/dist/mtgate_api/index.js.map +0 -1
  139. package/dist/mtgate_api/sdk.gen.d.ts +0 -15
  140. package/dist/mtgate_api/sdk.gen.d.ts.map +0 -1
  141. package/dist/mtgate_api/sdk.gen.js +0 -3
  142. package/dist/mtgate_api/sdk.gen.js.map +0 -1
  143. package/dist/mtgate_api/types.gen.d.ts +0 -4
  144. package/dist/mtgate_api/types.gen.d.ts.map +0 -1
  145. package/dist/mtgate_api/types.gen.js +0 -3
  146. package/dist/mtgate_api/types.gen.js.map +0 -1
  147. package/dist/openclaw/client-info.d.ts +0 -38
  148. package/dist/openclaw/client-info.d.ts.map +0 -1
  149. package/dist/openclaw/client-info.js +0 -38
  150. package/dist/openclaw/client-info.js.map +0 -1
  151. package/dist/openclaw/device-auth-utils.d.ts +0 -12
  152. package/dist/openclaw/device-auth-utils.d.ts.map +0 -1
  153. package/dist/openclaw/device-auth-utils.js +0 -16
  154. package/dist/openclaw/device-auth-utils.js.map +0 -1
  155. package/dist/openclaw/device-auth.d.ts +0 -21
  156. package/dist/openclaw/device-auth.d.ts.map +0 -1
  157. package/dist/openclaw/device-auth.js +0 -87
  158. package/dist/openclaw/device-auth.js.map +0 -1
  159. package/dist/openclaw/device-identity.d.ts +0 -8
  160. package/dist/openclaw/device-identity.d.ts.map +0 -1
  161. package/dist/openclaw/device-identity.js +0 -87
  162. package/dist/openclaw/device-identity.js.map +0 -1
  163. package/dist/openclaw/gateway.d.ts +0 -100
  164. package/dist/openclaw/gateway.d.ts.map +0 -1
  165. package/dist/openclaw/gateway.js +0 -302
  166. package/dist/openclaw/gateway.js.map +0 -1
  167. package/dist/openclaw/types.d.ts +0 -473
  168. package/dist/openclaw/types.d.ts.map +0 -1
  169. package/dist/openclaw/types.js +0 -2
  170. package/dist/openclaw/types.js.map +0 -1
  171. package/src/cloud-account/platform-configs.ts +0 -73
  172. package/src/gomtmapi/@tanstack/react-query.gen.ts +0 -537
  173. package/src/gomtmapi/client/client.gen.ts +0 -311
  174. package/src/gomtmapi/client/index.ts +0 -25
  175. package/src/gomtmapi/client/types.gen.ts +0 -241
  176. package/src/gomtmapi/client/utils.gen.ts +0 -332
  177. package/src/gomtmapi/client.gen.ts +0 -16
  178. package/src/gomtmapi/core/auth.gen.ts +0 -42
  179. package/src/gomtmapi/core/bodySerializer.gen.ts +0 -100
  180. package/src/gomtmapi/core/params.gen.ts +0 -176
  181. package/src/gomtmapi/core/pathSerializer.gen.ts +0 -181
  182. package/src/gomtmapi/core/queryKeySerializer.gen.ts +0 -136
  183. package/src/gomtmapi/core/serverSentEvents.gen.ts +0 -266
  184. package/src/gomtmapi/core/types.gen.ts +0 -118
  185. package/src/gomtmapi/core/utils.gen.ts +0 -143
  186. package/src/gomtmapi/index.ts +0 -4
  187. package/src/gomtmapi/schemas.gen.ts +0 -532
  188. package/src/gomtmapi/sdk.gen.ts +0 -371
  189. package/src/gomtmapi/types.gen.ts +0 -854
  190. package/src/gomtmapi/zod.gen.ts +0 -448
  191. package/src/index.ts +0 -4
  192. package/src/lib/aisdk/types.ts +0 -8
  193. package/src/lib/logger/index.ts +0 -8
  194. package/src/lib/schema.ts +0 -37
  195. package/src/mtgate_api/client/client.gen.ts +0 -311
  196. package/src/mtgate_api/client/index.ts +0 -25
  197. package/src/mtgate_api/client/types.gen.ts +0 -241
  198. package/src/mtgate_api/client/utils.gen.ts +0 -332
  199. package/src/mtgate_api/client.gen.ts +0 -16
  200. package/src/mtgate_api/core/auth.gen.ts +0 -42
  201. package/src/mtgate_api/core/bodySerializer.gen.ts +0 -100
  202. package/src/mtgate_api/core/params.gen.ts +0 -176
  203. package/src/mtgate_api/core/pathSerializer.gen.ts +0 -181
  204. package/src/mtgate_api/core/queryKeySerializer.gen.ts +0 -136
  205. package/src/mtgate_api/core/serverSentEvents.gen.ts +0 -266
  206. package/src/mtgate_api/core/types.gen.ts +0 -118
  207. package/src/mtgate_api/core/utils.gen.ts +0 -143
  208. package/src/mtgate_api/index.ts +0 -4
  209. package/src/mtgate_api/sdk.gen.ts +0 -17
  210. package/src/mtgate_api/types.gen.ts +0 -5
  211. package/src/openclaw/client-info.ts +0 -54
  212. package/src/openclaw/device-auth-utils.ts +0 -26
  213. package/src/openclaw/device-auth.ts +0 -99
  214. package/src/openclaw/device-identity.ts +0 -108
  215. package/src/openclaw/gateway.ts +0 -392
  216. package/src/openclaw/types.ts +0 -518
  217. package/src/sbmng/@tanstack/react-query.gen.ts +0 -2967
  218. package/src/sbmng/client/client.gen.ts +0 -311
  219. package/src/sbmng/client/index.ts +0 -25
  220. package/src/sbmng/client/types.gen.ts +0 -241
  221. package/src/sbmng/client/utils.gen.ts +0 -332
  222. package/src/sbmng/client.gen.ts +0 -16
  223. package/src/sbmng/core/auth.gen.ts +0 -42
  224. package/src/sbmng/core/bodySerializer.gen.ts +0 -100
  225. package/src/sbmng/core/params.gen.ts +0 -176
  226. package/src/sbmng/core/pathSerializer.gen.ts +0 -181
  227. package/src/sbmng/core/queryKeySerializer.gen.ts +0 -136
  228. package/src/sbmng/core/serverSentEvents.gen.ts +0 -266
  229. package/src/sbmng/core/types.gen.ts +0 -118
  230. package/src/sbmng/core/utils.gen.ts +0 -143
  231. package/src/sbmng/index.ts +0 -4
  232. package/src/sbmng/schemas.gen.ts +0 -9671
  233. package/src/sbmng/sdk.gen.ts +0 -1755
  234. package/src/sbmng/types.gen.ts +0 -7886
  235. package/src/supabase/auth-provider.tsx +0 -67
  236. package/src/supabase/context.tsx +0 -51
  237. package/src/supabase/cursor-pagination.ts +0 -155
  238. package/src/supabase/schema/browser.ts +0 -45
  239. package/src/supabase/schema/index.ts +0 -25
  240. package/src/supabase/supabase-client.ts +0 -30
  241. package/src/supabase/supabase.ts +0 -67
  242. package/src/supabase/use-sb-query/build-query-opts.ts +0 -68
  243. package/src/supabase/use-sb-query/key.ts +0 -57
  244. package/src/supabase/use-sb-query/use-query.ts +0 -352
  245. package/src/supabase/use-sb-query/use-rpc-mutation.ts +0 -83
  246. package/src/supabase/use-sb-query/use-rpc-query.ts +0 -267
  247. package/src/supabase/utils.ts +0 -75
  248. package/src/types/database.schemas.ts +0 -4359
  249. package/src/types/database.types.ts +0 -4182
  250. package/src/types/index.ts +0 -85
@@ -1,143 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- import type { BodySerializer, QuerySerializer } from './bodySerializer.gen';
4
- import {
5
- type ArraySeparatorStyle,
6
- serializeArrayParam,
7
- serializeObjectParam,
8
- serializePrimitiveParam,
9
- } from './pathSerializer.gen';
10
-
11
- export interface PathSerializer {
12
- path: Record<string, unknown>;
13
- url: string;
14
- }
15
-
16
- export const PATH_PARAM_RE = /\{[^{}]+\}/g;
17
-
18
- export const defaultPathSerializer = ({ path, url: _url }: PathSerializer) => {
19
- let url = _url;
20
- const matches = _url.match(PATH_PARAM_RE);
21
- if (matches) {
22
- for (const match of matches) {
23
- let explode = false;
24
- let name = match.substring(1, match.length - 1);
25
- let style: ArraySeparatorStyle = 'simple';
26
-
27
- if (name.endsWith('*')) {
28
- explode = true;
29
- name = name.substring(0, name.length - 1);
30
- }
31
-
32
- if (name.startsWith('.')) {
33
- name = name.substring(1);
34
- style = 'label';
35
- } else if (name.startsWith(';')) {
36
- name = name.substring(1);
37
- style = 'matrix';
38
- }
39
-
40
- const value = path[name];
41
-
42
- if (value === undefined || value === null) {
43
- continue;
44
- }
45
-
46
- if (Array.isArray(value)) {
47
- url = url.replace(
48
- match,
49
- serializeArrayParam({ explode, name, style, value }),
50
- );
51
- continue;
52
- }
53
-
54
- if (typeof value === 'object') {
55
- url = url.replace(
56
- match,
57
- serializeObjectParam({
58
- explode,
59
- name,
60
- style,
61
- value: value as Record<string, unknown>,
62
- valueOnly: true,
63
- }),
64
- );
65
- continue;
66
- }
67
-
68
- if (style === 'matrix') {
69
- url = url.replace(
70
- match,
71
- `;${serializePrimitiveParam({
72
- name,
73
- value: value as string,
74
- })}`,
75
- );
76
- continue;
77
- }
78
-
79
- const replaceValue = encodeURIComponent(
80
- style === 'label' ? `.${value as string}` : (value as string),
81
- );
82
- url = url.replace(match, replaceValue);
83
- }
84
- }
85
- return url;
86
- };
87
-
88
- export const getUrl = ({
89
- baseUrl,
90
- path,
91
- query,
92
- querySerializer,
93
- url: _url,
94
- }: {
95
- baseUrl?: string;
96
- path?: Record<string, unknown>;
97
- query?: Record<string, unknown>;
98
- querySerializer: QuerySerializer;
99
- url: string;
100
- }) => {
101
- const pathUrl = _url.startsWith('/') ? _url : `/${_url}`;
102
- let url = (baseUrl ?? '') + pathUrl;
103
- if (path) {
104
- url = defaultPathSerializer({ path, url });
105
- }
106
- let search = query ? querySerializer(query) : '';
107
- if (search.startsWith('?')) {
108
- search = search.substring(1);
109
- }
110
- if (search) {
111
- url += `?${search}`;
112
- }
113
- return url;
114
- };
115
-
116
- export function getValidRequestBody(options: {
117
- body?: unknown;
118
- bodySerializer?: BodySerializer | null;
119
- serializedBody?: unknown;
120
- }) {
121
- const hasBody = options.body !== undefined;
122
- const isSerializedBody = hasBody && options.bodySerializer;
123
-
124
- if (isSerializedBody) {
125
- if ('serializedBody' in options) {
126
- const hasSerializedBody =
127
- options.serializedBody !== undefined && options.serializedBody !== '';
128
-
129
- return hasSerializedBody ? options.serializedBody : null;
130
- }
131
-
132
- // not all clients implement a serializedBody property (i.e. client-axios)
133
- return options.body !== '' ? options.body : null;
134
- }
135
-
136
- // plain/text body
137
- if (hasBody) {
138
- return options.body;
139
- }
140
-
141
- // no body was provided
142
- return undefined;
143
- }
@@ -1,4 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- export { codeRun, getApiSystemStatus, napcatGetStatus, napcatProxyOneBot11Get, napcatProxyOneBot11Post, napcatProxyWebUiget, napcatProxyWebUipost, napcatStart, type Options, postApiDbQueryQuery, postApiSystemCheckUpdate, postApiSystemPerformUpgrade, postApiV1TelegramAuthPassword, postApiV1TelegramAuthSendCode, postApiV1TelegramAuthSignIn, postApiV1TelegramAuthUserInfo, postApiV1TelegramContactAdd, postApiV1TelegramMessageSend } from './sdk.gen';
4
- export type { AddContactRequest, AddContactResponse, AuthResponse, CheckUpdateResponse, ClientOptions, CodeRunData, CodeRunError, CodeRunErrors, CodeRunResponse, CodeRunResponses, CodeRunResult, GetApiSystemStatusData, GetApiSystemStatusError, GetApiSystemStatusErrors, GetApiSystemStatusResponse, GetApiSystemStatusResponses, HttpError, NapcatGetStatusData, NapcatGetStatusError, NapcatGetStatusErrors, NapcatGetStatusResponse, NapcatGetStatusResponses, NapcatProxyOneBot11GetData, NapcatProxyOneBot11GetError, NapcatProxyOneBot11GetErrors, NapcatProxyOneBot11GetResponse, NapcatProxyOneBot11GetResponses, NapcatProxyOneBot11PostData, NapcatProxyOneBot11PostError, NapcatProxyOneBot11PostErrors, NapcatProxyOneBot11PostResponse, NapcatProxyOneBot11PostResponses, NapcatProxyWebUigetData, NapcatProxyWebUigetError, NapcatProxyWebUigetErrors, NapcatProxyWebUigetResponse, NapcatProxyWebUigetResponses, NapcatProxyWebUipostData, NapcatProxyWebUipostError, NapcatProxyWebUipostErrors, NapcatProxyWebUipostResponse, NapcatProxyWebUipostResponses, NapcatStartData, NapcatStartError, NapcatStartErrors, NapcatStartResponse, NapcatStartResponses, NapcatStatus, PasswordRequest, PerformUpgradeRequest, PerformUpgradeResponse, PostApiDbQueryQueryData, PostApiDbQueryQueryError, PostApiDbQueryQueryErrors, PostApiDbQueryQueryResponse, PostApiDbQueryQueryResponses, PostApiSystemCheckUpdateData, PostApiSystemCheckUpdateError, PostApiSystemCheckUpdateErrors, PostApiSystemCheckUpdateResponse, PostApiSystemCheckUpdateResponses, PostApiSystemPerformUpgradeData, PostApiSystemPerformUpgradeError, PostApiSystemPerformUpgradeErrors, PostApiSystemPerformUpgradeResponse, PostApiSystemPerformUpgradeResponses, PostApiV1TelegramAuthPasswordData, PostApiV1TelegramAuthPasswordError, PostApiV1TelegramAuthPasswordErrors, PostApiV1TelegramAuthPasswordResponse, PostApiV1TelegramAuthPasswordResponses, PostApiV1TelegramAuthSendCodeData, PostApiV1TelegramAuthSendCodeError, PostApiV1TelegramAuthSendCodeErrors, PostApiV1TelegramAuthSendCodeResponse, PostApiV1TelegramAuthSendCodeResponses, PostApiV1TelegramAuthSignInData, PostApiV1TelegramAuthSignInError, PostApiV1TelegramAuthSignInErrors, PostApiV1TelegramAuthSignInResponse, PostApiV1TelegramAuthSignInResponses, PostApiV1TelegramAuthUserInfoData, PostApiV1TelegramAuthUserInfoError, PostApiV1TelegramAuthUserInfoErrors, PostApiV1TelegramAuthUserInfoResponse, PostApiV1TelegramAuthUserInfoResponses, PostApiV1TelegramContactAddData, PostApiV1TelegramContactAddError, PostApiV1TelegramContactAddErrors, PostApiV1TelegramContactAddResponse, PostApiV1TelegramContactAddResponses, PostApiV1TelegramMessageSendData, PostApiV1TelegramMessageSendError, PostApiV1TelegramMessageSendErrors, PostApiV1TelegramMessageSendResponse, PostApiV1TelegramMessageSendResponses, RunCodeReq, SendCodeRequest, SendMessageRequest, SendMessageResponse, SignInRequest, StartNapcatRequest, StatusResponse, UnknownInterface, UserInfoRequest } from './types.gen';
@@ -1,532 +0,0 @@
1
- // This file is auto-generated by @hey-api/openapi-ts
2
-
3
- export const AddContactRequestSchema = {
4
- description: 'AddContactRequest schema',
5
- properties: {
6
- api_hash: {
7
- nullable: true,
8
- type: 'string'
9
- },
10
- api_id: {
11
- nullable: true,
12
- type: 'integer'
13
- },
14
- first_name: {
15
- type: 'string'
16
- },
17
- last_name: {
18
- type: 'string'
19
- },
20
- phone: {
21
- type: 'string'
22
- },
23
- session_data: {
24
- type: 'string'
25
- }
26
- },
27
- required: [
28
- 'phone',
29
- 'session_data'
30
- ],
31
- type: 'object'
32
- } as const;
33
-
34
- export const AddContactResponseSchema = {
35
- description: 'AddContactResponse schema',
36
- properties: {
37
- access_hash: {
38
- format: 'int64',
39
- nullable: true,
40
- type: 'integer'
41
- },
42
- message: {
43
- nullable: true,
44
- type: 'string'
45
- },
46
- session_data: {
47
- nullable: true,
48
- type: 'string'
49
- },
50
- success: {
51
- type: 'boolean'
52
- },
53
- user_id: {
54
- format: 'int64',
55
- nullable: true,
56
- type: 'integer'
57
- }
58
- },
59
- type: 'object'
60
- } as const;
61
-
62
- export const AuthResponseSchema = {
63
- description: 'AuthResponse schema',
64
- properties: {
65
- message: {
66
- nullable: true,
67
- type: 'string'
68
- },
69
- result: {
70
- additionalProperties: {
71
- type: 'string'
72
- },
73
- nullable: true,
74
- type: 'object'
75
- },
76
- session_data: {
77
- nullable: true,
78
- type: 'string'
79
- },
80
- success: {
81
- type: 'boolean'
82
- },
83
- user_info: {
84
- nullable: true,
85
- properties: {
86
- first_name: {
87
- type: 'string'
88
- },
89
- id: {
90
- format: 'int64',
91
- type: 'integer'
92
- },
93
- is_bot: {
94
- type: 'boolean'
95
- },
96
- last_name: {
97
- nullable: true,
98
- type: 'string'
99
- },
100
- phone: {
101
- nullable: true,
102
- type: 'string'
103
- },
104
- username: {
105
- nullable: true,
106
- type: 'string'
107
- }
108
- },
109
- type: 'object'
110
- }
111
- },
112
- type: 'object'
113
- } as const;
114
-
115
- export const CheckUpdateResponseSchema = {
116
- description: 'CheckUpdateResponse schema',
117
- properties: {
118
- current_version: {
119
- type: 'string'
120
- },
121
- latest_version: {
122
- type: 'string'
123
- },
124
- update_available: {
125
- type: 'boolean'
126
- }
127
- },
128
- type: 'object'
129
- } as const;
130
-
131
- export const CodeRunResultSchema = {
132
- description: 'CodeRunResult schema',
133
- properties: {
134
- duration: {
135
- description: '耗时(秒)',
136
- format: 'double',
137
- type: 'number'
138
- },
139
- exitCode: {
140
- description: '进程退出码',
141
- type: 'integer'
142
- },
143
- stderr: {
144
- description: '标准错误输出',
145
- nullable: true,
146
- type: 'string'
147
- },
148
- stdout: {
149
- description: '标准输出',
150
- nullable: true,
151
- type: 'string'
152
- }
153
- },
154
- type: 'object'
155
- } as const;
156
-
157
- export const HTTPErrorSchema = {
158
- description: 'HTTPError schema',
159
- properties: {
160
- detail: {
161
- description: 'Human readable error message',
162
- nullable: true,
163
- type: 'string'
164
- },
165
- errors: {
166
- items: {
167
- properties: {
168
- more: {
169
- additionalProperties: {},
170
- description: 'Additional information about the error',
171
- nullable: true,
172
- type: 'object'
173
- },
174
- name: {
175
- description: 'For example, name of the parameter that caused the error',
176
- type: 'string'
177
- },
178
- reason: {
179
- description: 'Human readable error message',
180
- type: 'string'
181
- }
182
- },
183
- type: 'object'
184
- },
185
- nullable: true,
186
- type: 'array'
187
- },
188
- instance: {
189
- nullable: true,
190
- type: 'string'
191
- },
192
- status: {
193
- description: 'HTTP status code',
194
- example: 403,
195
- nullable: true,
196
- type: 'integer'
197
- },
198
- title: {
199
- description: 'Short title of the error',
200
- nullable: true,
201
- type: 'string'
202
- },
203
- type: {
204
- description: 'URL of the error type. Can be used to lookup the error in a documentation',
205
- nullable: true,
206
- type: 'string'
207
- }
208
- },
209
- type: 'object'
210
- } as const;
211
-
212
- export const NapcatStatusSchema = {
213
- description: 'NapcatStatus schema',
214
- properties: {
215
- config_dir: {
216
- nullable: true,
217
- type: 'string'
218
- },
219
- data_dir: {
220
- nullable: true,
221
- type: 'string'
222
- },
223
- is_running: {
224
- type: 'boolean'
225
- },
226
- napcat_port: {
227
- nullable: true,
228
- type: 'integer'
229
- },
230
- process_id: {
231
- nullable: true,
232
- type: 'integer'
233
- },
234
- webui_port: {
235
- nullable: true,
236
- type: 'integer'
237
- }
238
- },
239
- type: 'object'
240
- } as const;
241
-
242
- export const PasswordRequestSchema = {
243
- description: 'PasswordRequest schema',
244
- properties: {
245
- api_hash: {
246
- nullable: true,
247
- type: 'string'
248
- },
249
- api_id: {
250
- nullable: true,
251
- type: 'integer'
252
- },
253
- password: {
254
- type: 'string'
255
- },
256
- session_data: {
257
- nullable: true,
258
- type: 'string'
259
- }
260
- },
261
- required: [
262
- 'password'
263
- ],
264
- type: 'object'
265
- } as const;
266
-
267
- export const PerformUpgradeRequestSchema = {
268
- description: 'PerformUpgradeRequest schema',
269
- properties: {
270
- version: {
271
- type: 'string'
272
- }
273
- },
274
- type: 'object'
275
- } as const;
276
-
277
- export const PerformUpgradeResponseSchema = {
278
- description: 'PerformUpgradeResponse schema',
279
- properties: {
280
- message: {
281
- type: 'string'
282
- },
283
- status: {
284
- type: 'string'
285
- }
286
- },
287
- type: 'object'
288
- } as const;
289
-
290
- export const RunCodeReqSchema = {
291
- description: 'RunCodeReq schema',
292
- properties: {
293
- codeType: {
294
- description: '代码类型: python | bash | sh | nodejs | browserjs',
295
- example: 'python,js,bash',
296
- minLength: 2,
297
- type: 'string'
298
- },
299
- content: {
300
- description: '代码正文',
301
- example: 'print(\'hello\')',
302
- minLength: 1,
303
- type: 'string'
304
- },
305
- env: {
306
- additionalProperties: {
307
- type: 'string'
308
- },
309
- description: '环境变量',
310
- nullable: true,
311
- type: 'object'
312
- },
313
- timeout: {
314
- description: '运行超时时间(秒), 如果不填默认为60秒',
315
- example: 60,
316
- nullable: true,
317
- type: 'integer'
318
- }
319
- },
320
- required: [
321
- 'codeType',
322
- 'content'
323
- ],
324
- type: 'object'
325
- } as const;
326
-
327
- export const SendCodeRequestSchema = {
328
- description: 'SendCodeRequest schema',
329
- properties: {
330
- api_hash: {
331
- nullable: true,
332
- type: 'string'
333
- },
334
- api_id: {
335
- nullable: true,
336
- type: 'integer'
337
- },
338
- phone: {
339
- type: 'string'
340
- },
341
- session_data: {
342
- nullable: true,
343
- type: 'string'
344
- }
345
- },
346
- required: [
347
- 'phone'
348
- ],
349
- type: 'object'
350
- } as const;
351
-
352
- export const SendMessageRequestSchema = {
353
- description: 'SendMessageRequest schema',
354
- properties: {
355
- access_hash: {
356
- format: 'int64',
357
- nullable: true,
358
- type: 'integer'
359
- },
360
- api_hash: {
361
- nullable: true,
362
- type: 'string'
363
- },
364
- api_id: {
365
- nullable: true,
366
- type: 'integer'
367
- },
368
- message: {
369
- type: 'string'
370
- },
371
- phone: {
372
- nullable: true,
373
- type: 'string'
374
- },
375
- session_data: {
376
- type: 'string'
377
- },
378
- user_id: {
379
- format: 'int64',
380
- nullable: true,
381
- type: 'integer'
382
- },
383
- username: {
384
- nullable: true,
385
- type: 'string'
386
- }
387
- },
388
- required: [
389
- 'session_data',
390
- 'message'
391
- ],
392
- type: 'object'
393
- } as const;
394
-
395
- export const SendMessageResponseSchema = {
396
- description: 'SendMessageResponse schema',
397
- properties: {
398
- message: {
399
- nullable: true,
400
- type: 'string'
401
- },
402
- session_data: {
403
- nullable: true,
404
- type: 'string'
405
- },
406
- success: {
407
- type: 'boolean'
408
- }
409
- },
410
- type: 'object'
411
- } as const;
412
-
413
- export const SignInRequestSchema = {
414
- description: 'SignInRequest schema',
415
- properties: {
416
- api_hash: {
417
- nullable: true,
418
- type: 'string'
419
- },
420
- api_id: {
421
- nullable: true,
422
- type: 'integer'
423
- },
424
- code: {
425
- type: 'string'
426
- },
427
- phone: {
428
- type: 'string'
429
- },
430
- phone_code_hash: {
431
- type: 'string'
432
- },
433
- session_data: {
434
- nullable: true,
435
- type: 'string'
436
- }
437
- },
438
- required: [
439
- 'phone',
440
- 'code',
441
- 'phone_code_hash'
442
- ],
443
- type: 'object'
444
- } as const;
445
-
446
- export const StartNapcatRequestSchema = {
447
- description: 'StartNapcatRequest schema',
448
- properties: {
449
- config_dir: {
450
- nullable: true,
451
- type: 'string'
452
- },
453
- data_dir: {
454
- nullable: true,
455
- type: 'string'
456
- },
457
- napcat_port: {
458
- nullable: true,
459
- type: 'integer'
460
- },
461
- qq_account: {
462
- nullable: true,
463
- type: 'string'
464
- },
465
- webui_port: {
466
- nullable: true,
467
- type: 'integer'
468
- }
469
- },
470
- type: 'object'
471
- } as const;
472
-
473
- export const StatusResponseSchema = {
474
- description: 'StatusResponse schema',
475
- properties: {
476
- go_version: {
477
- type: 'string'
478
- },
479
- instance_id: {
480
- type: 'string'
481
- },
482
- mem_alloc_mb: {
483
- format: 'double',
484
- type: 'number'
485
- },
486
- mode: {
487
- type: 'string'
488
- },
489
- num_cpu: {
490
- type: 'integer'
491
- },
492
- num_goroutine: {
493
- type: 'integer'
494
- },
495
- status: {
496
- type: 'string'
497
- },
498
- uptime: {
499
- nullable: true,
500
- type: 'string'
501
- },
502
- version: {
503
- type: 'string'
504
- }
505
- },
506
- type: 'object'
507
- } as const;
508
-
509
- export const UserInfoRequestSchema = {
510
- description: 'UserInfoRequest schema',
511
- properties: {
512
- api_hash: {
513
- nullable: true,
514
- type: 'string'
515
- },
516
- api_id: {
517
- nullable: true,
518
- type: 'integer'
519
- },
520
- session_data: {
521
- type: 'string'
522
- }
523
- },
524
- required: [
525
- 'session_data'
526
- ],
527
- type: 'object'
528
- } as const;
529
-
530
- export const unknown_interfaceSchema = {
531
- description: 'unknown-interface schema'
532
- } as const;