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,4182 +0,0 @@
1
- export type Json =
2
- | string
3
- | number
4
- | boolean
5
- | null
6
- | { [key: string]: Json | undefined }
7
- | Json[]
8
-
9
- export type Database = {
10
- graphql_public: {
11
- Tables: {
12
- [_ in never]: never
13
- }
14
- Views: {
15
- [_ in never]: never
16
- }
17
- Functions: {
18
- graphql: {
19
- Args: {
20
- extensions?: Json
21
- operationName?: string
22
- query?: string
23
- variables?: Json
24
- }
25
- Returns: Json
26
- }
27
- }
28
- Enums: {
29
- [_ in never]: never
30
- }
31
- CompositeTypes: {
32
- [_ in never]: never
33
- }
34
- }
35
- public: {
36
- Tables: {
37
- adk_artifacts: {
38
- Row: {
39
- app_name: string
40
- canonical_uri: string | null
41
- created_at: string | null
42
- custom_metadata: Json | null
43
- data: Json | null
44
- filename: string
45
- id: string
46
- mime_type: string | null
47
- session_id: string | null
48
- user_id: string
49
- version: number
50
- }
51
- Insert: {
52
- app_name: string
53
- canonical_uri?: string | null
54
- created_at?: string | null
55
- custom_metadata?: Json | null
56
- data?: Json | null
57
- filename: string
58
- id?: string
59
- mime_type?: string | null
60
- session_id?: string | null
61
- user_id: string
62
- version: number
63
- }
64
- Update: {
65
- app_name?: string
66
- canonical_uri?: string | null
67
- created_at?: string | null
68
- custom_metadata?: Json | null
69
- data?: Json | null
70
- filename?: string
71
- id?: string
72
- mime_type?: string | null
73
- session_id?: string | null
74
- user_id?: string
75
- version?: number
76
- }
77
- Relationships: []
78
- }
79
- adk_events: {
80
- Row: {
81
- actions: Json | null
82
- app_name: string | null
83
- author: string | null
84
- branch: string | null
85
- citation_metadata: Json | null
86
- content: Json | null
87
- created_at: string
88
- custom_metadata: Json | null
89
- error_code: string | null
90
- error_message: string | null
91
- grounding_metadata: Json | null
92
- id: string
93
- input_transcription: Json | null
94
- interrupted: boolean | null
95
- invocation_id: string | null
96
- long_running_tool_ids_json: Json | null
97
- output_transcription: Json | null
98
- partial: boolean | null
99
- session_id: string | null
100
- timestamp: string | null
101
- turn_complete: boolean | null
102
- updated_at: string
103
- usage_metadata: Json | null
104
- user_id: string | null
105
- }
106
- Insert: {
107
- actions?: Json | null
108
- app_name?: string | null
109
- author?: string | null
110
- branch?: string | null
111
- citation_metadata?: Json | null
112
- content?: Json | null
113
- created_at?: string
114
- custom_metadata?: Json | null
115
- error_code?: string | null
116
- error_message?: string | null
117
- grounding_metadata?: Json | null
118
- id: string
119
- input_transcription?: Json | null
120
- interrupted?: boolean | null
121
- invocation_id?: string | null
122
- long_running_tool_ids_json?: Json | null
123
- output_transcription?: Json | null
124
- partial?: boolean | null
125
- session_id?: string | null
126
- timestamp?: string | null
127
- turn_complete?: boolean | null
128
- updated_at?: string
129
- usage_metadata?: Json | null
130
- user_id?: string | null
131
- }
132
- Update: {
133
- actions?: Json | null
134
- app_name?: string | null
135
- author?: string | null
136
- branch?: string | null
137
- citation_metadata?: Json | null
138
- content?: Json | null
139
- created_at?: string
140
- custom_metadata?: Json | null
141
- error_code?: string | null
142
- error_message?: string | null
143
- grounding_metadata?: Json | null
144
- id?: string
145
- input_transcription?: Json | null
146
- interrupted?: boolean | null
147
- invocation_id?: string | null
148
- long_running_tool_ids_json?: Json | null
149
- output_transcription?: Json | null
150
- partial?: boolean | null
151
- session_id?: string | null
152
- timestamp?: string | null
153
- turn_complete?: boolean | null
154
- updated_at?: string
155
- usage_metadata?: Json | null
156
- user_id?: string | null
157
- }
158
- Relationships: [
159
- {
160
- foreignKeyName: "adk_events_session_id_fkey"
161
- columns: ["session_id"]
162
- isOneToOne: false
163
- referencedRelation: "adk_sessions"
164
- referencedColumns: ["id"]
165
- },
166
- ]
167
- }
168
- adk_sessions: {
169
- Row: {
170
- app_name: string
171
- created_at: string
172
- id: string
173
- state: Json
174
- updated_at: string | null
175
- user_id: string
176
- }
177
- Insert: {
178
- app_name: string
179
- created_at: string
180
- id: string
181
- state: Json
182
- updated_at?: string | null
183
- user_id: string
184
- }
185
- Update: {
186
- app_name?: string
187
- created_at?: string
188
- id?: string
189
- state?: Json
190
- updated_at?: string | null
191
- user_id?: string
192
- }
193
- Relationships: []
194
- }
195
- audit_assets: {
196
- Row: {
197
- content: string
198
- created_at: string
199
- id: string
200
- metadata: Json | null
201
- project_id: string
202
- status: string | null
203
- type: string
204
- updated_at: string
205
- }
206
- Insert: {
207
- content: string
208
- created_at?: string
209
- id?: string
210
- metadata?: Json | null
211
- project_id: string
212
- status?: string | null
213
- type: string
214
- updated_at?: string
215
- }
216
- Update: {
217
- content?: string
218
- created_at?: string
219
- id?: string
220
- metadata?: Json | null
221
- project_id?: string
222
- status?: string | null
223
- type?: string
224
- updated_at?: string
225
- }
226
- Relationships: [
227
- {
228
- foreignKeyName: "audit_assets_project_id_fkey"
229
- columns: ["project_id"]
230
- isOneToOne: false
231
- referencedRelation: "audit_projects"
232
- referencedColumns: ["id"]
233
- },
234
- ]
235
- }
236
- audit_findings: {
237
- Row: {
238
- ai_analysis: string | null
239
- created_at: string
240
- description: string | null
241
- id: string
242
- project_id: string
243
- proof_poc: string | null
244
- remediation: string | null
245
- severity: Database["public"]["Enums"]["audit_finding_severity"] | null
246
- status: string | null
247
- task_id: string | null
248
- title: string
249
- updated_at: string
250
- }
251
- Insert: {
252
- ai_analysis?: string | null
253
- created_at?: string
254
- description?: string | null
255
- id?: string
256
- project_id: string
257
- proof_poc?: string | null
258
- remediation?: string | null
259
- severity?:
260
- | Database["public"]["Enums"]["audit_finding_severity"]
261
- | null
262
- status?: string | null
263
- task_id?: string | null
264
- title: string
265
- updated_at?: string
266
- }
267
- Update: {
268
- ai_analysis?: string | null
269
- created_at?: string
270
- description?: string | null
271
- id?: string
272
- project_id?: string
273
- proof_poc?: string | null
274
- remediation?: string | null
275
- severity?:
276
- | Database["public"]["Enums"]["audit_finding_severity"]
277
- | null
278
- status?: string | null
279
- task_id?: string | null
280
- title?: string
281
- updated_at?: string
282
- }
283
- Relationships: [
284
- {
285
- foreignKeyName: "audit_findings_project_id_fkey"
286
- columns: ["project_id"]
287
- isOneToOne: false
288
- referencedRelation: "audit_projects"
289
- referencedColumns: ["id"]
290
- },
291
- {
292
- foreignKeyName: "audit_findings_task_id_fkey"
293
- columns: ["task_id"]
294
- isOneToOne: false
295
- referencedRelation: "tasks"
296
- referencedColumns: ["id"]
297
- },
298
- ]
299
- }
300
- audit_pocs: {
301
- Row: {
302
- created_at: string
303
- cve_id: string | null
304
- id: string
305
- name: string
306
- path: string | null
307
- project_id: string
308
- severity: string | null
309
- status: string | null
310
- updated_at: string
311
- }
312
- Insert: {
313
- created_at?: string
314
- cve_id?: string | null
315
- id?: string
316
- name: string
317
- path?: string | null
318
- project_id: string
319
- severity?: string | null
320
- status?: string | null
321
- updated_at?: string
322
- }
323
- Update: {
324
- created_at?: string
325
- cve_id?: string | null
326
- id?: string
327
- name?: string
328
- path?: string | null
329
- project_id?: string
330
- severity?: string | null
331
- status?: string | null
332
- updated_at?: string
333
- }
334
- Relationships: [
335
- {
336
- foreignKeyName: "audit_pocs_project_id_fkey"
337
- columns: ["project_id"]
338
- isOneToOne: false
339
- referencedRelation: "audit_projects"
340
- referencedColumns: ["id"]
341
- },
342
- ]
343
- }
344
- audit_projects: {
345
- Row: {
346
- config: Json | null
347
- created_at: string
348
- id: string
349
- name: string
350
- repo_branch: string | null
351
- repo_url: string | null
352
- target: string | null
353
- updated_at: string
354
- user_id: string
355
- worker_id: string | null
356
- }
357
- Insert: {
358
- config?: Json | null
359
- created_at?: string
360
- id?: string
361
- name: string
362
- repo_branch?: string | null
363
- repo_url?: string | null
364
- target?: string | null
365
- updated_at?: string
366
- user_id: string
367
- worker_id?: string | null
368
- }
369
- Update: {
370
- config?: Json | null
371
- created_at?: string
372
- id?: string
373
- name?: string
374
- repo_branch?: string | null
375
- repo_url?: string | null
376
- target?: string | null
377
- updated_at?: string
378
- user_id?: string
379
- worker_id?: string | null
380
- }
381
- Relationships: [
382
- {
383
- foreignKeyName: "audit_projects_worker_id_fkey"
384
- columns: ["worker_id"]
385
- isOneToOne: false
386
- referencedRelation: "servers"
387
- referencedColumns: ["id"]
388
- },
389
- ]
390
- }
391
- audit_skills: {
392
- Row: {
393
- created_at: string
394
- dependencies: Json | null
395
- description: string | null
396
- id: string
397
- name: string
398
- params_schema: Json | null
399
- project_id: string
400
- source_path: string | null
401
- updated_at: string
402
- version: string | null
403
- }
404
- Insert: {
405
- created_at?: string
406
- dependencies?: Json | null
407
- description?: string | null
408
- id?: string
409
- name: string
410
- params_schema?: Json | null
411
- project_id: string
412
- source_path?: string | null
413
- updated_at?: string
414
- version?: string | null
415
- }
416
- Update: {
417
- created_at?: string
418
- dependencies?: Json | null
419
- description?: string | null
420
- id?: string
421
- name?: string
422
- params_schema?: Json | null
423
- project_id?: string
424
- source_path?: string | null
425
- updated_at?: string
426
- version?: string | null
427
- }
428
- Relationships: [
429
- {
430
- foreignKeyName: "audit_skills_project_id_fkey"
431
- columns: ["project_id"]
432
- isOneToOne: false
433
- referencedRelation: "audit_projects"
434
- referencedColumns: ["id"]
435
- },
436
- ]
437
- }
438
- browsers: {
439
- Row: {
440
- cdpUrl: string | null
441
- config: Json | null
442
- created_at: string
443
- description: string | null
444
- id: string
445
- profile_id: string | null
446
- provider: string | null
447
- provider_config: Json | null
448
- sandbox_id: string | null
449
- title: string | null
450
- updated_at: string | null
451
- user_id: string | null
452
- }
453
- Insert: {
454
- cdpUrl?: string | null
455
- config?: Json | null
456
- created_at?: string
457
- description?: string | null
458
- id?: string
459
- profile_id?: string | null
460
- provider?: string | null
461
- provider_config?: Json | null
462
- sandbox_id?: string | null
463
- title?: string | null
464
- updated_at?: string | null
465
- user_id?: string | null
466
- }
467
- Update: {
468
- cdpUrl?: string | null
469
- config?: Json | null
470
- created_at?: string
471
- description?: string | null
472
- id?: string
473
- profile_id?: string | null
474
- provider?: string | null
475
- provider_config?: Json | null
476
- sandbox_id?: string | null
477
- title?: string | null
478
- updated_at?: string | null
479
- user_id?: string | null
480
- }
481
- Relationships: []
482
- }
483
- campaigns: {
484
- Row: {
485
- completed_at: string | null
486
- config: Json
487
- created_at: string
488
- description: string | null
489
- id: string
490
- message_template: string | null
491
- name: string
492
- platform: string
493
- schedule: Json
494
- started_at: string | null
495
- stats: Json
496
- status: string
497
- target_filter: Json
498
- updated_at: string
499
- user_id: string
500
- }
501
- Insert: {
502
- completed_at?: string | null
503
- config?: Json
504
- created_at?: string
505
- description?: string | null
506
- id?: string
507
- message_template?: string | null
508
- name: string
509
- platform?: string
510
- schedule?: Json
511
- started_at?: string | null
512
- stats?: Json
513
- status?: string
514
- target_filter?: Json
515
- updated_at?: string
516
- user_id: string
517
- }
518
- Update: {
519
- completed_at?: string | null
520
- config?: Json
521
- created_at?: string
522
- description?: string | null
523
- id?: string
524
- message_template?: string | null
525
- name?: string
526
- platform?: string
527
- schedule?: Json
528
- started_at?: string | null
529
- stats?: Json
530
- status?: string
531
- target_filter?: Json
532
- updated_at?: string
533
- user_id?: string
534
- }
535
- Relationships: []
536
- }
537
- chat_messages: {
538
- Row: {
539
- attachments: Json | null
540
- chat_id: string
541
- created_at: string
542
- grounding_metadata: Json | null
543
- id: string
544
- parts: Json
545
- role: Database["public"]["Enums"]["chat_role"]
546
- updated_at: string
547
- user_id: string | null
548
- }
549
- Insert: {
550
- attachments?: Json | null
551
- chat_id: string
552
- created_at?: string
553
- grounding_metadata?: Json | null
554
- id?: string
555
- parts: Json
556
- role?: Database["public"]["Enums"]["chat_role"]
557
- updated_at?: string
558
- user_id?: string | null
559
- }
560
- Update: {
561
- attachments?: Json | null
562
- chat_id?: string
563
- created_at?: string
564
- grounding_metadata?: Json | null
565
- id?: string
566
- parts?: Json
567
- role?: Database["public"]["Enums"]["chat_role"]
568
- updated_at?: string
569
- user_id?: string | null
570
- }
571
- Relationships: [
572
- {
573
- foreignKeyName: "chat_messages_chat_id_fkey"
574
- columns: ["chat_id"]
575
- isOneToOne: false
576
- referencedRelation: "chats"
577
- referencedColumns: ["id"]
578
- },
579
- ]
580
- }
581
- chats: {
582
- Row: {
583
- agent_id: string
584
- created_at: string
585
- id: string
586
- lastContext: Json | null
587
- state: Json | null
588
- title: string
589
- type: string
590
- updated_at: string | null
591
- user_id: string | null
592
- visibility: Database["public"]["Enums"]["chat_visibility"]
593
- }
594
- Insert: {
595
- agent_id: string
596
- created_at?: string
597
- id?: string
598
- lastContext?: Json | null
599
- state?: Json | null
600
- title: string
601
- type?: string
602
- updated_at?: string | null
603
- user_id?: string | null
604
- visibility?: Database["public"]["Enums"]["chat_visibility"]
605
- }
606
- Update: {
607
- agent_id?: string
608
- created_at?: string
609
- id?: string
610
- lastContext?: Json | null
611
- state?: Json | null
612
- title?: string
613
- type?: string
614
- updated_at?: string | null
615
- user_id?: string | null
616
- visibility?: Database["public"]["Enums"]["chat_visibility"]
617
- }
618
- Relationships: []
619
- }
620
- cleanup_policies: {
621
- Row: {
622
- cleanup_function: string
623
- created_at: string
624
- enabled: boolean
625
- id: string
626
- policy_name: string
627
- retention_days: number
628
- table_name: string
629
- updated_at: string
630
- }
631
- Insert: {
632
- cleanup_function: string
633
- created_at?: string
634
- enabled?: boolean
635
- id?: string
636
- policy_name: string
637
- retention_days?: number
638
- table_name: string
639
- updated_at?: string
640
- }
641
- Update: {
642
- cleanup_function?: string
643
- created_at?: string
644
- enabled?: boolean
645
- id?: string
646
- policy_name?: string
647
- retention_days?: number
648
- table_name?: string
649
- updated_at?: string
650
- }
651
- Relationships: []
652
- }
653
- cloud_accounts: {
654
- Row: {
655
- access_token: string | null
656
- account_email: string | null
657
- account_name: string | null
658
- automation_config: Json | null
659
- created_at: string
660
- credentials: Json | null
661
- device_fingerprint: Json | null
662
- device_history: Json[] | null
663
- id: string
664
- last_refresh_at: string | null
665
- last_used_at: string | null
666
- metadata: Json | null
667
- platform_name: string | null
668
- proxy_disabled: boolean | null
669
- proxy_disabled_at: string | null
670
- proxy_disabled_reason: string | null
671
- quota_data: Json | null
672
- refresh_error: string | null
673
- refresh_token: string | null
674
- refresh_token_expires_at: string | null
675
- session_data: Json | null
676
- status: Database["public"]["Enums"]["cloud_account_status"] | null
677
- status_reason: string | null
678
- status_updated_at: string | null
679
- token_expires_at: string | null
680
- token_type: string | null
681
- updated_at: string | null
682
- use_count: number | null
683
- user_id: string
684
- }
685
- Insert: {
686
- access_token?: string | null
687
- account_email?: string | null
688
- account_name?: string | null
689
- automation_config?: Json | null
690
- created_at?: string
691
- credentials?: Json | null
692
- device_fingerprint?: Json | null
693
- device_history?: Json[] | null
694
- id?: string
695
- last_refresh_at?: string | null
696
- last_used_at?: string | null
697
- metadata?: Json | null
698
- platform_name?: string | null
699
- proxy_disabled?: boolean | null
700
- proxy_disabled_at?: string | null
701
- proxy_disabled_reason?: string | null
702
- quota_data?: Json | null
703
- refresh_error?: string | null
704
- refresh_token?: string | null
705
- refresh_token_expires_at?: string | null
706
- session_data?: Json | null
707
- status?: Database["public"]["Enums"]["cloud_account_status"] | null
708
- status_reason?: string | null
709
- status_updated_at?: string | null
710
- token_expires_at?: string | null
711
- token_type?: string | null
712
- updated_at?: string | null
713
- use_count?: number | null
714
- user_id: string
715
- }
716
- Update: {
717
- access_token?: string | null
718
- account_email?: string | null
719
- account_name?: string | null
720
- automation_config?: Json | null
721
- created_at?: string
722
- credentials?: Json | null
723
- device_fingerprint?: Json | null
724
- device_history?: Json[] | null
725
- id?: string
726
- last_refresh_at?: string | null
727
- last_used_at?: string | null
728
- metadata?: Json | null
729
- platform_name?: string | null
730
- proxy_disabled?: boolean | null
731
- proxy_disabled_at?: string | null
732
- proxy_disabled_reason?: string | null
733
- quota_data?: Json | null
734
- refresh_error?: string | null
735
- refresh_token?: string | null
736
- refresh_token_expires_at?: string | null
737
- session_data?: Json | null
738
- status?: Database["public"]["Enums"]["cloud_account_status"] | null
739
- status_reason?: string | null
740
- status_updated_at?: string | null
741
- token_expires_at?: string | null
742
- token_type?: string | null
743
- updated_at?: string | null
744
- use_count?: number | null
745
- user_id?: string
746
- }
747
- Relationships: []
748
- }
749
- compute_nodes: {
750
- Row: {
751
- auth_secret: string | null
752
- created_at: string
753
- host: string
754
- id: string
755
- is_public: boolean | null
756
- name: string
757
- port: number
758
- provider: string
759
- updated_at: string
760
- user_id: string
761
- username: string | null
762
- }
763
- Insert: {
764
- auth_secret?: string | null
765
- created_at?: string
766
- host: string
767
- id?: string
768
- is_public?: boolean | null
769
- name: string
770
- port?: number
771
- provider?: string
772
- updated_at?: string
773
- user_id?: string
774
- username?: string | null
775
- }
776
- Update: {
777
- auth_secret?: string | null
778
- created_at?: string
779
- host?: string
780
- id?: string
781
- is_public?: boolean | null
782
- name?: string
783
- port?: number
784
- provider?: string
785
- updated_at?: string
786
- user_id?: string
787
- username?: string | null
788
- }
789
- Relationships: []
790
- }
791
- contacts: {
792
- Row: {
793
- created_at: string
794
- email: string | null
795
- id: string
796
- metadata: Json
797
- name: string | null
798
- phone: string | null
799
- platform: string
800
- source: string
801
- status: string
802
- tags: string[]
803
- telegram_id: number | null
804
- telegram_username: string | null
805
- updated_at: string
806
- user_id: string
807
- }
808
- Insert: {
809
- created_at?: string
810
- email?: string | null
811
- id?: string
812
- metadata?: Json
813
- name?: string | null
814
- phone?: string | null
815
- platform?: string
816
- source?: string
817
- status?: string
818
- tags?: string[]
819
- telegram_id?: number | null
820
- telegram_username?: string | null
821
- updated_at?: string
822
- user_id: string
823
- }
824
- Update: {
825
- created_at?: string
826
- email?: string | null
827
- id?: string
828
- metadata?: Json
829
- name?: string | null
830
- phone?: string | null
831
- platform?: string
832
- source?: string
833
- status?: string
834
- tags?: string[]
835
- telegram_id?: number | null
836
- telegram_username?: string | null
837
- updated_at?: string
838
- user_id?: string
839
- }
840
- Relationships: []
841
- }
842
- gomtm_models: {
843
- Row: {
844
- api_base: string | null
845
- api_key: string | null
846
- config: Json | null
847
- created_at: string
848
- id: string
849
- is_active: boolean
850
- linked_account_id: string | null
851
- model: string
852
- name: string
853
- provider: string
854
- updated_at: string
855
- user_id: string
856
- }
857
- Insert: {
858
- api_base?: string | null
859
- api_key?: string | null
860
- config?: Json | null
861
- created_at?: string
862
- id?: string
863
- is_active?: boolean
864
- linked_account_id?: string | null
865
- model: string
866
- name: string
867
- provider: string
868
- updated_at?: string
869
- user_id: string
870
- }
871
- Update: {
872
- api_base?: string | null
873
- api_key?: string | null
874
- config?: Json | null
875
- created_at?: string
876
- id?: string
877
- is_active?: boolean
878
- linked_account_id?: string | null
879
- model?: string
880
- name?: string
881
- provider?: string
882
- updated_at?: string
883
- user_id?: string
884
- }
885
- Relationships: [
886
- {
887
- foreignKeyName: "gomtm_models_linked_account_id_fkey"
888
- columns: ["linked_account_id"]
889
- isOneToOne: false
890
- referencedRelation: "cloud_accounts"
891
- referencedColumns: ["id"]
892
- },
893
- ]
894
- }
895
- instance_tags: {
896
- Row: {
897
- created_at: string
898
- instance_id: string
899
- tag_id: string
900
- }
901
- Insert: {
902
- created_at?: string
903
- instance_id: string
904
- tag_id: string
905
- }
906
- Update: {
907
- created_at?: string
908
- instance_id?: string
909
- tag_id?: string
910
- }
911
- Relationships: [
912
- {
913
- foreignKeyName: "instance_tags_instance_id_fkey"
914
- columns: ["instance_id"]
915
- isOneToOne: false
916
- referencedRelation: "servers"
917
- referencedColumns: ["id"]
918
- },
919
- {
920
- foreignKeyName: "instance_tags_tag_id_fkey"
921
- columns: ["tag_id"]
922
- isOneToOne: false
923
- referencedRelation: "tags"
924
- referencedColumns: ["id"]
925
- },
926
- ]
927
- }
928
- mitm_rules: {
929
- Row: {
930
- action_config: Json | null
931
- action_type: string | null
932
- created_at: string | null
933
- id: string
934
- is_active: boolean | null
935
- match_pattern: string | null
936
- name: string | null
937
- resource_id: string | null
938
- user_id: string | null
939
- }
940
- Insert: {
941
- action_config?: Json | null
942
- action_type?: string | null
943
- created_at?: string | null
944
- id?: string
945
- is_active?: boolean | null
946
- match_pattern?: string | null
947
- name?: string | null
948
- resource_id?: string | null
949
- user_id?: string | null
950
- }
951
- Update: {
952
- action_config?: Json | null
953
- action_type?: string | null
954
- created_at?: string | null
955
- id?: string
956
- is_active?: boolean | null
957
- match_pattern?: string | null
958
- name?: string | null
959
- resource_id?: string | null
960
- user_id?: string | null
961
- }
962
- Relationships: [
963
- {
964
- foreignKeyName: "mitm_rules_resource_id_fkey"
965
- columns: ["resource_id"]
966
- isOneToOne: false
967
- referencedRelation: "resources"
968
- referencedColumns: ["id"]
969
- },
970
- ]
971
- }
972
- openclaws: {
973
- Row: {
974
- config: Json
975
- created_at: string
976
- desired_status: Database["public"]["Enums"]["openclaw_status"]
977
- id: string
978
- metadata: Json | null
979
- name: string | null
980
- resolved_config: Json
981
- server_id: string | null
982
- state: Json | null
983
- status: Database["public"]["Enums"]["openclaw_status"]
984
- status_reason: string | null
985
- updated_at: string
986
- user_id: string
987
- }
988
- Insert: {
989
- config?: Json
990
- created_at?: string
991
- desired_status?: Database["public"]["Enums"]["openclaw_status"]
992
- id?: string
993
- metadata?: Json | null
994
- name?: string | null
995
- resolved_config?: Json
996
- server_id?: string | null
997
- state?: Json | null
998
- status?: Database["public"]["Enums"]["openclaw_status"]
999
- status_reason?: string | null
1000
- updated_at?: string
1001
- user_id?: string
1002
- }
1003
- Update: {
1004
- config?: Json
1005
- created_at?: string
1006
- desired_status?: Database["public"]["Enums"]["openclaw_status"]
1007
- id?: string
1008
- metadata?: Json | null
1009
- name?: string | null
1010
- resolved_config?: Json
1011
- server_id?: string | null
1012
- state?: Json | null
1013
- status?: Database["public"]["Enums"]["openclaw_status"]
1014
- status_reason?: string | null
1015
- updated_at?: string
1016
- user_id?: string
1017
- }
1018
- Relationships: [
1019
- {
1020
- foreignKeyName: "openclaws_server_id_fkey"
1021
- columns: ["server_id"]
1022
- isOneToOne: false
1023
- referencedRelation: "servers"
1024
- referencedColumns: ["id"]
1025
- },
1026
- ]
1027
- }
1028
- outreach_messages: {
1029
- Row: {
1030
- content: string | null
1031
- created_at: string
1032
- delivered_at: string | null
1033
- direction: string
1034
- id: string
1035
- metadata: Json | null
1036
- read_at: string | null
1037
- sent_at: string | null
1038
- status: string | null
1039
- task_id: string
1040
- telegram_message_id: number | null
1041
- user_id: string
1042
- }
1043
- Insert: {
1044
- content?: string | null
1045
- created_at?: string
1046
- delivered_at?: string | null
1047
- direction: string
1048
- id?: string
1049
- metadata?: Json | null
1050
- read_at?: string | null
1051
- sent_at?: string | null
1052
- status?: string | null
1053
- task_id: string
1054
- telegram_message_id?: number | null
1055
- user_id: string
1056
- }
1057
- Update: {
1058
- content?: string | null
1059
- created_at?: string
1060
- delivered_at?: string | null
1061
- direction?: string
1062
- id?: string
1063
- metadata?: Json | null
1064
- read_at?: string | null
1065
- sent_at?: string | null
1066
- status?: string | null
1067
- task_id?: string
1068
- telegram_message_id?: number | null
1069
- user_id?: string
1070
- }
1071
- Relationships: [
1072
- {
1073
- foreignKeyName: "outreach_messages_task_id_fkey"
1074
- columns: ["task_id"]
1075
- isOneToOne: false
1076
- referencedRelation: "outreach_tasks"
1077
- referencedColumns: ["id"]
1078
- },
1079
- ]
1080
- }
1081
- outreach_tasks: {
1082
- Row: {
1083
- campaign_id: string
1084
- cloud_account_id: string | null
1085
- contact_id: string
1086
- created_at: string
1087
- error_message: string | null
1088
- executed_at: string | null
1089
- id: string
1090
- metadata: Json | null
1091
- priority: number | null
1092
- retry_count: number | null
1093
- scheduled_at: string | null
1094
- status: string
1095
- updated_at: string
1096
- user_id: string
1097
- }
1098
- Insert: {
1099
- campaign_id: string
1100
- cloud_account_id?: string | null
1101
- contact_id: string
1102
- created_at?: string
1103
- error_message?: string | null
1104
- executed_at?: string | null
1105
- id?: string
1106
- metadata?: Json | null
1107
- priority?: number | null
1108
- retry_count?: number | null
1109
- scheduled_at?: string | null
1110
- status?: string
1111
- updated_at?: string
1112
- user_id: string
1113
- }
1114
- Update: {
1115
- campaign_id?: string
1116
- cloud_account_id?: string | null
1117
- contact_id?: string
1118
- created_at?: string
1119
- error_message?: string | null
1120
- executed_at?: string | null
1121
- id?: string
1122
- metadata?: Json | null
1123
- priority?: number | null
1124
- retry_count?: number | null
1125
- scheduled_at?: string | null
1126
- status?: string
1127
- updated_at?: string
1128
- user_id?: string
1129
- }
1130
- Relationships: [
1131
- {
1132
- foreignKeyName: "outreach_tasks_campaign_id_fkey"
1133
- columns: ["campaign_id"]
1134
- isOneToOne: false
1135
- referencedRelation: "campaigns"
1136
- referencedColumns: ["id"]
1137
- },
1138
- {
1139
- foreignKeyName: "outreach_tasks_cloud_account_id_fkey"
1140
- columns: ["cloud_account_id"]
1141
- isOneToOne: false
1142
- referencedRelation: "cloud_accounts"
1143
- referencedColumns: ["id"]
1144
- },
1145
- {
1146
- foreignKeyName: "outreach_tasks_contact_id_fkey"
1147
- columns: ["contact_id"]
1148
- isOneToOne: false
1149
- referencedRelation: "contacts"
1150
- referencedColumns: ["id"]
1151
- },
1152
- ]
1153
- }
1154
- profiles: {
1155
- Row: {
1156
- avatar_url: string | null
1157
- full_name: string | null
1158
- id: string
1159
- updated_at: string | null
1160
- username: string | null
1161
- website: string | null
1162
- }
1163
- Insert: {
1164
- avatar_url?: string | null
1165
- full_name?: string | null
1166
- id: string
1167
- updated_at?: string | null
1168
- username?: string | null
1169
- website?: string | null
1170
- }
1171
- Update: {
1172
- avatar_url?: string | null
1173
- full_name?: string | null
1174
- id?: string
1175
- updated_at?: string | null
1176
- username?: string | null
1177
- website?: string | null
1178
- }
1179
- Relationships: []
1180
- }
1181
- proxies: {
1182
- Row: {
1183
- created_at: string
1184
- description: string | null
1185
- enabled: boolean
1186
- id: string
1187
- name: string | null
1188
- type: string | null
1189
- updated_at: string | null
1190
- url: string
1191
- user_id: string | null
1192
- }
1193
- Insert: {
1194
- created_at?: string
1195
- description?: string | null
1196
- enabled?: boolean
1197
- id?: string
1198
- name?: string | null
1199
- type?: string | null
1200
- updated_at?: string | null
1201
- url: string
1202
- user_id?: string | null
1203
- }
1204
- Update: {
1205
- created_at?: string
1206
- description?: string | null
1207
- enabled?: boolean
1208
- id?: string
1209
- name?: string | null
1210
- type?: string | null
1211
- updated_at?: string | null
1212
- url?: string
1213
- user_id?: string | null
1214
- }
1215
- Relationships: []
1216
- }
1217
- resources: {
1218
- Row: {
1219
- created_at: string
1220
- data: Json | null
1221
- description: string | null
1222
- hash1: string | null
1223
- icon: string | null
1224
- id: string
1225
- is_public: boolean | null
1226
- meta: Json | null
1227
- target_id: string | null
1228
- title: string | null
1229
- type: string | null
1230
- updated_at: string | null
1231
- user_id: string | null
1232
- }
1233
- Insert: {
1234
- created_at?: string
1235
- data?: Json | null
1236
- description?: string | null
1237
- hash1?: string | null
1238
- icon?: string | null
1239
- id?: string
1240
- is_public?: boolean | null
1241
- meta?: Json | null
1242
- target_id?: string | null
1243
- title?: string | null
1244
- type?: string | null
1245
- updated_at?: string | null
1246
- user_id?: string | null
1247
- }
1248
- Update: {
1249
- created_at?: string
1250
- data?: Json | null
1251
- description?: string | null
1252
- hash1?: string | null
1253
- icon?: string | null
1254
- id?: string
1255
- is_public?: boolean | null
1256
- meta?: Json | null
1257
- target_id?: string | null
1258
- title?: string | null
1259
- type?: string | null
1260
- updated_at?: string | null
1261
- user_id?: string | null
1262
- }
1263
- Relationships: []
1264
- }
1265
- servers: {
1266
- Row: {
1267
- config: Json | null
1268
- created_at: string
1269
- id: string
1270
- state: Json | null
1271
- updated_at: string
1272
- }
1273
- Insert: {
1274
- config?: Json | null
1275
- created_at?: string
1276
- id: string
1277
- state?: Json | null
1278
- updated_at?: string
1279
- }
1280
- Update: {
1281
- config?: Json | null
1282
- created_at?: string
1283
- id?: string
1284
- state?: Json | null
1285
- updated_at?: string
1286
- }
1287
- Relationships: []
1288
- }
1289
- sys_config: {
1290
- Row: {
1291
- created_at: string | null
1292
- description: string | null
1293
- key: string
1294
- updated_at: string | null
1295
- value: Json
1296
- }
1297
- Insert: {
1298
- created_at?: string | null
1299
- description?: string | null
1300
- key: string
1301
- updated_at?: string | null
1302
- value?: Json
1303
- }
1304
- Update: {
1305
- created_at?: string | null
1306
- description?: string | null
1307
- key?: string
1308
- updated_at?: string | null
1309
- value?: Json
1310
- }
1311
- Relationships: []
1312
- }
1313
- sys_logs: {
1314
- Row: {
1315
- created_at: string
1316
- event_type: string | null
1317
- id: number
1318
- level: Database["public"]["Enums"]["sys_log_level"] | null
1319
- meta: Json | null
1320
- module: string | null
1321
- resource_id: string | null
1322
- resource_type: string | null
1323
- text: string | null
1324
- user_id: string | null
1325
- }
1326
- Insert: {
1327
- created_at?: string
1328
- event_type?: string | null
1329
- id?: number
1330
- level?: Database["public"]["Enums"]["sys_log_level"] | null
1331
- meta?: Json | null
1332
- module?: string | null
1333
- resource_id?: string | null
1334
- resource_type?: string | null
1335
- text?: string | null
1336
- user_id?: string | null
1337
- }
1338
- Update: {
1339
- created_at?: string
1340
- event_type?: string | null
1341
- id?: number
1342
- level?: Database["public"]["Enums"]["sys_log_level"] | null
1343
- meta?: Json | null
1344
- module?: string | null
1345
- resource_id?: string | null
1346
- resource_type?: string | null
1347
- text?: string | null
1348
- user_id?: string | null
1349
- }
1350
- Relationships: []
1351
- }
1352
- system_config_public: {
1353
- Row: {
1354
- created_at: string | null
1355
- description: string | null
1356
- key: string
1357
- updated_at: string | null
1358
- value: Json
1359
- }
1360
- Insert: {
1361
- created_at?: string | null
1362
- description?: string | null
1363
- key: string
1364
- updated_at?: string | null
1365
- value?: Json
1366
- }
1367
- Update: {
1368
- created_at?: string | null
1369
- description?: string | null
1370
- key?: string
1371
- updated_at?: string | null
1372
- value?: Json
1373
- }
1374
- Relationships: []
1375
- }
1376
- tags: {
1377
- Row: {
1378
- color: string | null
1379
- created_at: string
1380
- id: string
1381
- name: string
1382
- updated_at: string
1383
- user_id: string | null
1384
- }
1385
- Insert: {
1386
- color?: string | null
1387
- created_at?: string
1388
- id?: string
1389
- name: string
1390
- updated_at?: string
1391
- user_id?: string | null
1392
- }
1393
- Update: {
1394
- color?: string | null
1395
- created_at?: string
1396
- id?: string
1397
- name?: string
1398
- updated_at?: string
1399
- user_id?: string | null
1400
- }
1401
- Relationships: []
1402
- }
1403
- tasks: {
1404
- Row: {
1405
- code: string | null
1406
- code_type: Database["public"]["Enums"]["task_code_type"] | null
1407
- completed_at: string | null
1408
- context_id: string | null
1409
- context_type: string | null
1410
- created_at: string
1411
- description: string | null
1412
- error: string | null
1413
- executor_id: string | null
1414
- executor_type: string | null
1415
- id: string
1416
- max_retries: number
1417
- meta: Json
1418
- parent_id: string | null
1419
- priority: number
1420
- result: Json | null
1421
- result_text: string | null
1422
- retry_count: number
1423
- scheduled_at: string | null
1424
- started_at: string | null
1425
- status: Database["public"]["Enums"]["task_status"]
1426
- tags: string[]
1427
- title: string
1428
- updated_at: string
1429
- user_id: string
1430
- }
1431
- Insert: {
1432
- code?: string | null
1433
- code_type?: Database["public"]["Enums"]["task_code_type"] | null
1434
- completed_at?: string | null
1435
- context_id?: string | null
1436
- context_type?: string | null
1437
- created_at?: string
1438
- description?: string | null
1439
- error?: string | null
1440
- executor_id?: string | null
1441
- executor_type?: string | null
1442
- id?: string
1443
- max_retries?: number
1444
- meta?: Json
1445
- parent_id?: string | null
1446
- priority?: number
1447
- result?: Json | null
1448
- result_text?: string | null
1449
- retry_count?: number
1450
- scheduled_at?: string | null
1451
- started_at?: string | null
1452
- status?: Database["public"]["Enums"]["task_status"]
1453
- tags?: string[]
1454
- title: string
1455
- updated_at?: string
1456
- user_id: string
1457
- }
1458
- Update: {
1459
- code?: string | null
1460
- code_type?: Database["public"]["Enums"]["task_code_type"] | null
1461
- completed_at?: string | null
1462
- context_id?: string | null
1463
- context_type?: string | null
1464
- created_at?: string
1465
- description?: string | null
1466
- error?: string | null
1467
- executor_id?: string | null
1468
- executor_type?: string | null
1469
- id?: string
1470
- max_retries?: number
1471
- meta?: Json
1472
- parent_id?: string | null
1473
- priority?: number
1474
- result?: Json | null
1475
- result_text?: string | null
1476
- retry_count?: number
1477
- scheduled_at?: string | null
1478
- started_at?: string | null
1479
- status?: Database["public"]["Enums"]["task_status"]
1480
- tags?: string[]
1481
- title?: string
1482
- updated_at?: string
1483
- user_id?: string
1484
- }
1485
- Relationships: [
1486
- {
1487
- foreignKeyName: "tasks_parent_id_fkey"
1488
- columns: ["parent_id"]
1489
- isOneToOne: false
1490
- referencedRelation: "tasks"
1491
- referencedColumns: ["id"]
1492
- },
1493
- ]
1494
- }
1495
- traffic_logs: {
1496
- Row: {
1497
- client_ip: string | null
1498
- created_at: string | null
1499
- error: string | null
1500
- host: string | null
1501
- id: string
1502
- method: string | null
1503
- path: string | null
1504
- request_headers: Json | null
1505
- response_headers: Json | null
1506
- scheme: string | null
1507
- started_at: string | null
1508
- status_code: number | null
1509
- url: string | null
1510
- user_id: string | null
1511
- worker_id: string | null
1512
- }
1513
- Insert: {
1514
- client_ip?: string | null
1515
- created_at?: string | null
1516
- error?: string | null
1517
- host?: string | null
1518
- id?: string
1519
- method?: string | null
1520
- path?: string | null
1521
- request_headers?: Json | null
1522
- response_headers?: Json | null
1523
- scheme?: string | null
1524
- started_at?: string | null
1525
- status_code?: number | null
1526
- url?: string | null
1527
- user_id?: string | null
1528
- worker_id?: string | null
1529
- }
1530
- Update: {
1531
- client_ip?: string | null
1532
- created_at?: string | null
1533
- error?: string | null
1534
- host?: string | null
1535
- id?: string
1536
- method?: string | null
1537
- path?: string | null
1538
- request_headers?: Json | null
1539
- response_headers?: Json | null
1540
- scheme?: string | null
1541
- started_at?: string | null
1542
- status_code?: number | null
1543
- url?: string | null
1544
- user_id?: string | null
1545
- worker_id?: string | null
1546
- }
1547
- Relationships: []
1548
- }
1549
- user_logs: {
1550
- Row: {
1551
- content: string | null
1552
- created_at: string | null
1553
- event_type: string
1554
- id: string
1555
- level: string
1556
- meta: Json | null
1557
- resource_id: string | null
1558
- resource_type: string | null
1559
- user_id: string
1560
- }
1561
- Insert: {
1562
- content?: string | null
1563
- created_at?: string | null
1564
- event_type: string
1565
- id?: string
1566
- level: string
1567
- meta?: Json | null
1568
- resource_id?: string | null
1569
- resource_type?: string | null
1570
- user_id?: string
1571
- }
1572
- Update: {
1573
- content?: string | null
1574
- created_at?: string | null
1575
- event_type?: string
1576
- id?: string
1577
- level?: string
1578
- meta?: Json | null
1579
- resource_id?: string | null
1580
- resource_type?: string | null
1581
- user_id?: string
1582
- }
1583
- Relationships: []
1584
- }
1585
- user_notifications: {
1586
- Row: {
1587
- action_completed_at: string | null
1588
- action_payload: Json | null
1589
- action_type: string | null
1590
- created_at: string
1591
- dismissed_at: string | null
1592
- expires_at: string | null
1593
- id: string
1594
- is_read: boolean
1595
- message: string | null
1596
- notification_type: string
1597
- priority: string
1598
- read_at: string | null
1599
- source_id: string | null
1600
- source_type: string | null
1601
- title: string
1602
- updated_at: string
1603
- user_id: string
1604
- }
1605
- Insert: {
1606
- action_completed_at?: string | null
1607
- action_payload?: Json | null
1608
- action_type?: string | null
1609
- created_at?: string
1610
- dismissed_at?: string | null
1611
- expires_at?: string | null
1612
- id?: string
1613
- is_read?: boolean
1614
- message?: string | null
1615
- notification_type?: string
1616
- priority?: string
1617
- read_at?: string | null
1618
- source_id?: string | null
1619
- source_type?: string | null
1620
- title: string
1621
- updated_at?: string
1622
- user_id: string
1623
- }
1624
- Update: {
1625
- action_completed_at?: string | null
1626
- action_payload?: Json | null
1627
- action_type?: string | null
1628
- created_at?: string
1629
- dismissed_at?: string | null
1630
- expires_at?: string | null
1631
- id?: string
1632
- is_read?: boolean
1633
- message?: string | null
1634
- notification_type?: string
1635
- priority?: string
1636
- read_at?: string | null
1637
- source_id?: string | null
1638
- source_type?: string | null
1639
- title?: string
1640
- updated_at?: string
1641
- user_id?: string
1642
- }
1643
- Relationships: []
1644
- }
1645
- user_roles: {
1646
- Row: {
1647
- created_at: string | null
1648
- id: number
1649
- role: Database["public"]["Enums"]["app_role"]
1650
- user_id: string
1651
- }
1652
- Insert: {
1653
- created_at?: string | null
1654
- id?: number
1655
- role: Database["public"]["Enums"]["app_role"]
1656
- user_id: string
1657
- }
1658
- Update: {
1659
- created_at?: string | null
1660
- id?: number
1661
- role?: Database["public"]["Enums"]["app_role"]
1662
- user_id?: string
1663
- }
1664
- Relationships: []
1665
- }
1666
- }
1667
- Views: {
1668
- [_ in never]: never
1669
- }
1670
- Functions: {
1671
- adk_artifact_delete: {
1672
- Args: {
1673
- p_app_name: string
1674
- p_filename: string
1675
- p_session_id: string
1676
- p_user_id: string
1677
- }
1678
- Returns: undefined
1679
- }
1680
- adk_artifact_get: {
1681
- Args: {
1682
- p_app_name: string
1683
- p_filename: string
1684
- p_session_id: string
1685
- p_user_id: string
1686
- p_version?: number
1687
- }
1688
- Returns: Json
1689
- }
1690
- adk_artifact_save: {
1691
- Args: {
1692
- p_app_name: string
1693
- p_canonical_uri: string
1694
- p_custom_metadata: Json
1695
- p_data: Json
1696
- p_filename: string
1697
- p_mime_type: string
1698
- p_session_id: string
1699
- p_user_id: string
1700
- }
1701
- Returns: number
1702
- }
1703
- adk_event_list: {
1704
- Args: { p_session_id: string }
1705
- Returns: {
1706
- actions: Json | null
1707
- app_name: string | null
1708
- author: string | null
1709
- branch: string | null
1710
- citation_metadata: Json | null
1711
- content: Json | null
1712
- created_at: string
1713
- custom_metadata: Json | null
1714
- error_code: string | null
1715
- error_message: string | null
1716
- grounding_metadata: Json | null
1717
- id: string
1718
- input_transcription: Json | null
1719
- interrupted: boolean | null
1720
- invocation_id: string | null
1721
- long_running_tool_ids_json: Json | null
1722
- output_transcription: Json | null
1723
- partial: boolean | null
1724
- session_id: string | null
1725
- timestamp: string | null
1726
- turn_complete: boolean | null
1727
- updated_at: string
1728
- usage_metadata: Json | null
1729
- user_id: string | null
1730
- }[]
1731
- SetofOptions: {
1732
- from: "*"
1733
- to: "adk_events"
1734
- isOneToOne: false
1735
- isSetofReturn: true
1736
- }
1737
- }
1738
- adk_event_upsert: {
1739
- Args: {
1740
- p_actions?: Json
1741
- p_app_name: string
1742
- p_author: string
1743
- p_branch?: string
1744
- p_citation_metadata?: Json
1745
- p_content: Json
1746
- p_custom_metadata?: Json
1747
- p_error_code?: string
1748
- p_error_message?: string
1749
- p_grounding_metadata?: Json
1750
- p_id: string
1751
- p_input_transcription?: Json
1752
- p_interrupted?: boolean
1753
- p_invocation_id?: string
1754
- p_long_running_tool_ids_json?: string
1755
- p_output_transcription?: Json
1756
- p_session_id: string
1757
- p_timestamp: string
1758
- p_turn_complete: boolean
1759
- p_usage_metadata?: Json
1760
- p_user_id?: string
1761
- }
1762
- Returns: {
1763
- actions: Json | null
1764
- app_name: string | null
1765
- author: string | null
1766
- branch: string | null
1767
- citation_metadata: Json | null
1768
- content: Json | null
1769
- created_at: string
1770
- custom_metadata: Json | null
1771
- error_code: string | null
1772
- error_message: string | null
1773
- grounding_metadata: Json | null
1774
- id: string
1775
- input_transcription: Json | null
1776
- interrupted: boolean | null
1777
- invocation_id: string | null
1778
- long_running_tool_ids_json: Json | null
1779
- output_transcription: Json | null
1780
- partial: boolean | null
1781
- session_id: string | null
1782
- timestamp: string | null
1783
- turn_complete: boolean | null
1784
- updated_at: string
1785
- usage_metadata: Json | null
1786
- user_id: string | null
1787
- }[]
1788
- SetofOptions: {
1789
- from: "*"
1790
- to: "adk_events"
1791
- isOneToOne: false
1792
- isSetofReturn: true
1793
- }
1794
- }
1795
- adk_session_delete: {
1796
- Args: { p_app_name: string; p_session_id: string }
1797
- Returns: undefined
1798
- }
1799
- adk_session_get: {
1800
- Args: { p_session_id: string }
1801
- Returns: {
1802
- app_name: string
1803
- created_at: string
1804
- id: string
1805
- state: Json
1806
- updated_at: string | null
1807
- user_id: string
1808
- }[]
1809
- SetofOptions: {
1810
- from: "*"
1811
- to: "adk_sessions"
1812
- isOneToOne: false
1813
- isSetofReturn: true
1814
- }
1815
- }
1816
- adk_session_list: {
1817
- Args: { p_app_name: string; p_user_id?: string }
1818
- Returns: {
1819
- app_name: string
1820
- created_at: string
1821
- id: string
1822
- state: Json
1823
- updated_at: string | null
1824
- user_id: string
1825
- }[]
1826
- SetofOptions: {
1827
- from: "*"
1828
- to: "adk_sessions"
1829
- isOneToOne: false
1830
- isSetofReturn: true
1831
- }
1832
- }
1833
- adk_session_upsert: {
1834
- Args: {
1835
- p_app_name: string
1836
- p_session_id: string
1837
- p_state?: Json
1838
- p_user_id: string
1839
- }
1840
- Returns: {
1841
- app_name: string
1842
- created_at: string
1843
- id: string
1844
- state: Json
1845
- updated_at: string | null
1846
- user_id: string
1847
- }[]
1848
- SetofOptions: {
1849
- from: "*"
1850
- to: "adk_sessions"
1851
- isOneToOne: false
1852
- isSetofReturn: true
1853
- }
1854
- }
1855
- agent_signal_wakeup: { Args: { p_session_id: string }; Returns: Json }
1856
- audit_artifact_list: {
1857
- Args: { p_project_id: string }
1858
- Returns: {
1859
- app_name: string
1860
- canonical_uri: string | null
1861
- created_at: string | null
1862
- custom_metadata: Json | null
1863
- data: Json | null
1864
- filename: string
1865
- id: string
1866
- mime_type: string | null
1867
- session_id: string | null
1868
- user_id: string
1869
- version: number
1870
- }[]
1871
- SetofOptions: {
1872
- from: "*"
1873
- to: "adk_artifacts"
1874
- isOneToOne: false
1875
- isSetofReturn: true
1876
- }
1877
- }
1878
- audit_asset_list_cursor: {
1879
- Args: {
1880
- p_cursor?: string
1881
- p_cursor_id?: string
1882
- p_limit?: number
1883
- p_project_id: string
1884
- p_search?: string
1885
- }
1886
- Returns: {
1887
- content: string
1888
- created_at: string
1889
- id: string
1890
- metadata: Json | null
1891
- project_id: string
1892
- status: string | null
1893
- type: string
1894
- updated_at: string
1895
- }[]
1896
- SetofOptions: {
1897
- from: "*"
1898
- to: "audit_assets"
1899
- isOneToOne: false
1900
- isSetofReturn: true
1901
- }
1902
- }
1903
- audit_finding_list_cursor: {
1904
- Args: {
1905
- p_cursor?: string
1906
- p_cursor_id?: string
1907
- p_limit?: number
1908
- p_project_id: string
1909
- p_search?: string
1910
- }
1911
- Returns: {
1912
- ai_analysis: string | null
1913
- created_at: string
1914
- description: string | null
1915
- id: string
1916
- project_id: string
1917
- proof_poc: string | null
1918
- remediation: string | null
1919
- severity: Database["public"]["Enums"]["audit_finding_severity"] | null
1920
- status: string | null
1921
- task_id: string | null
1922
- title: string
1923
- updated_at: string
1924
- }[]
1925
- SetofOptions: {
1926
- from: "*"
1927
- to: "audit_findings"
1928
- isOneToOne: false
1929
- isSetofReturn: true
1930
- }
1931
- }
1932
- audit_project_bind_github: {
1933
- Args: {
1934
- p_installation_id: number
1935
- p_project_id: string
1936
- p_repo_branch: string
1937
- p_repo_full_name: string
1938
- p_repo_id: number
1939
- p_repo_url: string
1940
- }
1941
- Returns: Json
1942
- }
1943
- audit_project_count: { Args: { p_kw?: string }; Returns: number }
1944
- audit_project_dashboard_stats: {
1945
- Args: { p_project_id: string }
1946
- Returns: Database["public"]["CompositeTypes"]["audit_project_stats_record"][]
1947
- SetofOptions: {
1948
- from: "*"
1949
- to: "audit_project_stats_record"
1950
- isOneToOne: false
1951
- isSetofReturn: true
1952
- }
1953
- }
1954
- audit_project_delete: { Args: { p_id: string }; Returns: undefined }
1955
- audit_project_get: {
1956
- Args: { p_id: string }
1957
- Returns: {
1958
- config: Json
1959
- created_at: string
1960
- id: string
1961
- name: string
1962
- repo_branch: string
1963
- repo_url: string
1964
- target: string
1965
- updated_at: string
1966
- user_id: string
1967
- worker_id: string
1968
- }[]
1969
- }
1970
- audit_project_list: {
1971
- Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
1972
- Returns: {
1973
- config: Json
1974
- created_at: string
1975
- id: string
1976
- name: string
1977
- repo_branch: string
1978
- repo_url: string
1979
- target: string
1980
- updated_at: string
1981
- user_id: string
1982
- worker_id: string
1983
- }[]
1984
- }
1985
- audit_project_list_cursor: {
1986
- Args: {
1987
- p_cursor?: string
1988
- p_cursor_id?: string
1989
- p_limit?: number
1990
- p_search?: string
1991
- }
1992
- Returns: {
1993
- config: Json
1994
- created_at: string
1995
- id: string
1996
- name: string
1997
- repo_branch: string
1998
- repo_url: string
1999
- target: string
2000
- updated_at: string
2001
- user_id: string
2002
- worker_id: string
2003
- }[]
2004
- }
2005
- audit_project_upsert: {
2006
- Args: {
2007
- p_config?: Json
2008
- p_id: string
2009
- p_name: string
2010
- p_repo_branch?: string
2011
- p_repo_url?: string
2012
- p_target?: string
2013
- p_worker_id?: string
2014
- }
2015
- Returns: {
2016
- config: Json
2017
- created_at: string
2018
- id: string
2019
- name: string
2020
- repo_branch: string
2021
- repo_url: string
2022
- target: string
2023
- updated_at: string
2024
- user_id: string
2025
- worker_id: string
2026
- }[]
2027
- }
2028
- audit_skill_list: {
2029
- Args: { p_project_id: string }
2030
- Returns: {
2031
- created_at: string
2032
- dependencies: Json | null
2033
- description: string | null
2034
- id: string
2035
- name: string
2036
- params_schema: Json | null
2037
- project_id: string
2038
- source_path: string | null
2039
- updated_at: string
2040
- version: string | null
2041
- }[]
2042
- SetofOptions: {
2043
- from: "*"
2044
- to: "audit_skills"
2045
- isOneToOne: false
2046
- isSetofReturn: true
2047
- }
2048
- }
2049
- auth_role: { Args: never; Returns: string }
2050
- browser_delete: { Args: { p_id: string }; Returns: undefined }
2051
- browser_ensure_association: {
2052
- Args: { p_browser_id: string; p_user_id: string }
2053
- Returns: Json
2054
- }
2055
- browser_get: {
2056
- Args: { p_id: string }
2057
- Returns: {
2058
- browser_api_url: string
2059
- config: Json
2060
- created_at: string
2061
- description: string
2062
- id: string
2063
- is_running: boolean
2064
- profile_id: string
2065
- provider: string
2066
- provider_config: Json
2067
- sandbox_id: string
2068
- title: string
2069
- updated_at: string
2070
- vnc_url: string
2071
- worker_name: string
2072
- }[]
2073
- }
2074
- browser_list: {
2075
- Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
2076
- Returns: {
2077
- browser_api_url: string
2078
- config: Json
2079
- created_at: string
2080
- description: string
2081
- id: string
2082
- is_running: boolean
2083
- profile_id: string
2084
- provider: string
2085
- provider_config: Json
2086
- sandbox_id: string
2087
- title: string
2088
- updated_at: string
2089
- vnc_url: string
2090
- worker_name: string
2091
- }[]
2092
- }
2093
- browser_update_state: {
2094
- Args: { p_browser_id: string; p_state: Json }
2095
- Returns: undefined
2096
- }
2097
- browser_upsert: {
2098
- Args: {
2099
- p_config?: Json
2100
- p_description?: string
2101
- p_id?: string
2102
- p_profile_id?: string
2103
- p_provider?: string
2104
- p_provider_config?: Json
2105
- p_title?: string
2106
- }
2107
- Returns: {
2108
- browser_api_url: string
2109
- config: Json
2110
- created_at: string
2111
- description: string
2112
- id: string
2113
- is_running: boolean
2114
- profile_id: string
2115
- provider: string
2116
- provider_config: Json
2117
- sandbox_id: string
2118
- title: string
2119
- updated_at: string
2120
- vnc_url: string
2121
- worker_name: string
2122
- }[]
2123
- }
2124
- campaign_delete: { Args: { p_id: string }; Returns: boolean }
2125
- campaign_get: {
2126
- Args: { p_id: string }
2127
- Returns: {
2128
- completed_at: string
2129
- config: Json
2130
- created_at: string
2131
- description: string
2132
- id: string
2133
- message_template: string
2134
- name: string
2135
- platform: string
2136
- schedule: Json
2137
- started_at: string
2138
- stats: Json
2139
- status: string
2140
- target_filter: Json
2141
- updated_at: string
2142
- user_id: string
2143
- }[]
2144
- }
2145
- campaign_list_cursor: {
2146
- Args: {
2147
- p_cursor?: string
2148
- p_limit?: number
2149
- p_search?: string
2150
- p_status?: string
2151
- }
2152
- Returns: {
2153
- completed_at: string
2154
- config: Json
2155
- created_at: string
2156
- description: string
2157
- id: string
2158
- message_template: string
2159
- name: string
2160
- platform: string
2161
- schedule: Json
2162
- started_at: string
2163
- stats: Json
2164
- status: string
2165
- target_filter: Json
2166
- updated_at: string
2167
- user_id: string
2168
- }[]
2169
- }
2170
- campaign_pause: { Args: { p_id: string }; Returns: boolean }
2171
- campaign_start: { Args: { p_id: string }; Returns: boolean }
2172
- campaign_upsert: {
2173
- Args: {
2174
- p_config?: Json
2175
- p_description?: string
2176
- p_id?: string
2177
- p_message_template?: string
2178
- p_name?: string
2179
- p_platform?: string
2180
- p_schedule?: Json
2181
- p_target_filter?: Json
2182
- }
2183
- Returns: {
2184
- completed_at: string
2185
- config: Json
2186
- created_at: string
2187
- description: string
2188
- id: string
2189
- message_template: string
2190
- name: string
2191
- platform: string
2192
- schedule: Json
2193
- started_at: string
2194
- stats: Json
2195
- status: string
2196
- target_filter: Json
2197
- updated_at: string
2198
- user_id: string
2199
- }[]
2200
- }
2201
- chat_get: {
2202
- Args: { p_chat_id: string }
2203
- Returns: {
2204
- agent_id: string
2205
- created_at: string
2206
- id: string
2207
- lastContext: Json | null
2208
- state: Json | null
2209
- title: string
2210
- type: string
2211
- updated_at: string | null
2212
- user_id: string | null
2213
- visibility: Database["public"]["Enums"]["chat_visibility"]
2214
- }[]
2215
- SetofOptions: {
2216
- from: "*"
2217
- to: "chats"
2218
- isOneToOne: false
2219
- isSetofReturn: true
2220
- }
2221
- }
2222
- chat_list: {
2223
- Args: { p_agent_id?: string }
2224
- Returns: {
2225
- agent_id: string
2226
- created_at: string
2227
- id: string
2228
- lastContext: Json | null
2229
- state: Json | null
2230
- title: string
2231
- type: string
2232
- updated_at: string | null
2233
- user_id: string | null
2234
- visibility: Database["public"]["Enums"]["chat_visibility"]
2235
- }[]
2236
- SetofOptions: {
2237
- from: "*"
2238
- to: "chats"
2239
- isOneToOne: false
2240
- isSetofReturn: true
2241
- }
2242
- }
2243
- chat_message_batch_upsert: {
2244
- Args: {
2245
- p_chat_id?: string
2246
- p_data?: Json
2247
- p_query_mode?: string
2248
- p_user_id?: string
2249
- }
2250
- Returns: number
2251
- }
2252
- chat_message_list: {
2253
- Args: { p_chat_id?: string; p_query_mode?: string }
2254
- Returns: {
2255
- attachments: Json | null
2256
- chat_id: string
2257
- created_at: string
2258
- grounding_metadata: Json | null
2259
- id: string
2260
- parts: Json
2261
- role: Database["public"]["Enums"]["chat_role"]
2262
- updated_at: string
2263
- user_id: string | null
2264
- }[]
2265
- SetofOptions: {
2266
- from: "*"
2267
- to: "chat_messages"
2268
- isOneToOne: false
2269
- isSetofReturn: true
2270
- }
2271
- }
2272
- chat_message_upsert: {
2273
- Args: {
2274
- p_attachments?: Json
2275
- p_chat_id: string
2276
- p_id: string
2277
- p_parts: Json
2278
- p_role: string
2279
- }
2280
- Returns: {
2281
- attachments: Json | null
2282
- chat_id: string
2283
- created_at: string
2284
- grounding_metadata: Json | null
2285
- id: string
2286
- parts: Json
2287
- role: Database["public"]["Enums"]["chat_role"]
2288
- updated_at: string
2289
- user_id: string | null
2290
- }[]
2291
- SetofOptions: {
2292
- from: "*"
2293
- to: "chat_messages"
2294
- isOneToOne: false
2295
- isSetofReturn: true
2296
- }
2297
- }
2298
- chat_upsert: {
2299
- Args: { p_agent_id?: string; p_id?: string; p_title?: string }
2300
- Returns: {
2301
- agent_id: string
2302
- created_at: string
2303
- id: string
2304
- lastContext: Json | null
2305
- state: Json | null
2306
- title: string
2307
- type: string
2308
- updated_at: string | null
2309
- user_id: string | null
2310
- visibility: Database["public"]["Enums"]["chat_visibility"]
2311
- }[]
2312
- SetofOptions: {
2313
- from: "*"
2314
- to: "chats"
2315
- isOneToOne: false
2316
- isSetofReturn: true
2317
- }
2318
- }
2319
- check_account_rate_limit: {
2320
- Args: { p_account_id: string; p_campaign_config?: Json }
2321
- Returns: boolean
2322
- }
2323
- cleanup_servers_ingress: { Args: never; Returns: number }
2324
- cloud_account_bulk_create: {
2325
- Args: {
2326
- p_account_names: string[]
2327
- p_platform_name: string
2328
- p_status?: Database["public"]["Enums"]["cloud_account_status"]
2329
- }
2330
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2331
- SetofOptions: {
2332
- from: "*"
2333
- to: "cloud_account_record"
2334
- isOneToOne: false
2335
- isSetofReturn: true
2336
- }
2337
- }
2338
- cloud_account_delete: {
2339
- Args: { p_id: string }
2340
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2341
- SetofOptions: {
2342
- from: "*"
2343
- to: "cloud_account_record"
2344
- isOneToOne: false
2345
- isSetofReturn: true
2346
- }
2347
- }
2348
- cloud_account_device_delete_version: {
2349
- Args: { p_account_id: string; p_version: number }
2350
- Returns: undefined
2351
- }
2352
- cloud_account_device_restore: {
2353
- Args: { p_id: string; p_version_id: string }
2354
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2355
- SetofOptions: {
2356
- from: "*"
2357
- to: "cloud_account_record"
2358
- isOneToOne: false
2359
- isSetofReturn: true
2360
- }
2361
- }
2362
- cloud_account_get: {
2363
- Args: { p_id: string }
2364
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2365
- SetofOptions: {
2366
- from: "*"
2367
- to: "cloud_account_record"
2368
- isOneToOne: false
2369
- isSetofReturn: true
2370
- }
2371
- }
2372
- cloud_account_list_cursor: {
2373
- Args: {
2374
- p_cursor?: string
2375
- p_limit?: number
2376
- p_platform_name?: string
2377
- p_search?: string
2378
- p_status?: string
2379
- }
2380
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2381
- SetofOptions: {
2382
- from: "*"
2383
- to: "cloud_account_record"
2384
- isOneToOne: false
2385
- isSetofReturn: true
2386
- }
2387
- }
2388
- cloud_account_mark_refresh_failed: {
2389
- Args: { p_error: string; p_id: string }
2390
- Returns: undefined
2391
- }
2392
- cloud_account_refresh_token: {
2393
- Args: {
2394
- p_access_token: string
2395
- p_expires_in?: number
2396
- p_id: string
2397
- p_refresh_token?: string
2398
- }
2399
- Returns: undefined
2400
- }
2401
- cloud_account_session_store: {
2402
- Args: { p_id: string; p_session: string }
2403
- Returns: undefined
2404
- }
2405
- cloud_account_update_automation_config: {
2406
- Args: { p_account_id: string; p_config: Json }
2407
- Returns: undefined
2408
- }
2409
- cloud_account_upsert: {
2410
- Args: {
2411
- p_access_token?: string
2412
- p_account_email?: string
2413
- p_account_name?: string
2414
- p_credentials?: Json
2415
- p_device_fingerprint?: Json
2416
- p_id?: string
2417
- p_metadata?: Json
2418
- p_platform_name?: string
2419
- p_quota_data?: Json
2420
- p_refresh_token?: string
2421
- p_refresh_token_expires_at?: string
2422
- p_session_data?: Json
2423
- p_status?: Database["public"]["Enums"]["cloud_account_status"]
2424
- p_status_reason?: string
2425
- p_token_expires_at?: string
2426
- p_token_type?: string
2427
- p_user_id?: string
2428
- }
2429
- Returns: Database["public"]["CompositeTypes"]["cloud_account_record"][]
2430
- SetofOptions: {
2431
- from: "*"
2432
- to: "cloud_account_record"
2433
- isOneToOne: false
2434
- isSetofReturn: true
2435
- }
2436
- }
2437
- code_run_result_parse: { Args: { p_result: Json }; Returns: Json }
2438
- compute_node_delete: { Args: { p_id: string }; Returns: undefined }
2439
- compute_node_get: {
2440
- Args: { p_id?: string; p_user_id?: string }
2441
- Returns: {
2442
- auth_secret: string
2443
- created_at: string
2444
- host: string
2445
- id: string
2446
- is_public: boolean
2447
- name: string
2448
- port: number
2449
- provider: string
2450
- updated_at: string
2451
- user_id: string
2452
- username: string
2453
- }[]
2454
- }
2455
- compute_node_get_secret: {
2456
- Args: { target_id: string }
2457
- Returns: {
2458
- auth_secret: string
2459
- host: string
2460
- port: number
2461
- username: string
2462
- }[]
2463
- }
2464
- compute_node_list: {
2465
- Args: { p_user_id?: string }
2466
- Returns: {
2467
- auth_secret: string
2468
- created_at: string
2469
- host: string
2470
- id: string
2471
- is_public: boolean
2472
- name: string
2473
- port: number
2474
- provider: string
2475
- updated_at: string
2476
- user_id: string
2477
- username: string
2478
- }[]
2479
- }
2480
- compute_node_upsert: {
2481
- Args: {
2482
- p_auth_secret?: string
2483
- p_host?: string
2484
- p_id?: string
2485
- p_is_public?: boolean
2486
- p_name?: string
2487
- p_port?: number
2488
- p_provider?: string
2489
- p_username?: string
2490
- p_worker_count?: number
2491
- }
2492
- Returns: {
2493
- auth_secret: string
2494
- created_at: string
2495
- host: string
2496
- id: string
2497
- is_public: boolean
2498
- name: string
2499
- port: number
2500
- provider: string
2501
- updated_at: string
2502
- user_id: string
2503
- username: string
2504
- }[]
2505
- }
2506
- compute_server_public_url: {
2507
- Args: { p_server_id: string }
2508
- Returns: string
2509
- }
2510
- contact_add_tags: {
2511
- Args: { p_ids: string[]; p_tags: string[] }
2512
- Returns: number
2513
- }
2514
- contact_bulk_import: {
2515
- Args: {
2516
- p_contacts: Json
2517
- p_default_tags?: string[]
2518
- p_platform?: string
2519
- p_source?: string
2520
- }
2521
- Returns: number
2522
- }
2523
- contact_delete: { Args: { p_ids: string[] }; Returns: number }
2524
- contact_get: {
2525
- Args: {
2526
- p_id?: string
2527
- p_phone?: string
2528
- p_platform?: string
2529
- p_telegram_id?: number
2530
- }
2531
- Returns: {
2532
- created_at: string
2533
- email: string
2534
- id: string
2535
- metadata: Json
2536
- name: string
2537
- phone: string
2538
- platform: string
2539
- source: string
2540
- status: string
2541
- tags: string[]
2542
- telegram_id: number
2543
- telegram_username: string
2544
- updated_at: string
2545
- user_id: string
2546
- }[]
2547
- }
2548
- contact_list_cursor: {
2549
- Args: {
2550
- p_cursor?: string
2551
- p_limit?: number
2552
- p_platform?: string
2553
- p_search?: string
2554
- p_status?: string
2555
- p_tags?: string[]
2556
- }
2557
- Returns: {
2558
- created_at: string
2559
- email: string
2560
- id: string
2561
- metadata: Json
2562
- name: string
2563
- phone: string
2564
- platform: string
2565
- source: string
2566
- status: string
2567
- tags: string[]
2568
- telegram_id: number
2569
- telegram_username: string
2570
- updated_at: string
2571
- user_id: string
2572
- }[]
2573
- }
2574
- contact_list_tags: { Args: never; Returns: string[] }
2575
- contact_remove_tags: {
2576
- Args: { p_ids: string[]; p_tags: string[] }
2577
- Returns: number
2578
- }
2579
- contact_upsert: {
2580
- Args: {
2581
- p_email?: string
2582
- p_id?: string
2583
- p_metadata?: Json
2584
- p_name?: string
2585
- p_phone?: string
2586
- p_platform?: string
2587
- p_source?: string
2588
- p_status?: string
2589
- p_tags?: string[]
2590
- p_telegram_id?: number
2591
- p_telegram_username?: string
2592
- }
2593
- Returns: {
2594
- created_at: string
2595
- email: string
2596
- id: string
2597
- metadata: Json
2598
- name: string
2599
- phone: string
2600
- platform: string
2601
- source: string
2602
- status: string
2603
- tags: string[]
2604
- telegram_id: number
2605
- telegram_username: string
2606
- updated_at: string
2607
- user_id: string
2608
- }[]
2609
- }
2610
- create_notification: {
2611
- Args: {
2612
- p_action_payload?: Json
2613
- p_action_type?: string
2614
- p_expires_in?: string
2615
- p_message: string
2616
- p_notification_type?: string
2617
- p_priority?: string
2618
- p_source_id?: string
2619
- p_source_type?: string
2620
- p_title: string
2621
- p_user_id: string
2622
- }
2623
- Returns: string
2624
- }
2625
- db_tool_query: { Args: { p_sql: string }; Returns: Json }
2626
- get_github_app_public_info: { Args: never; Returns: Json }
2627
- get_jwt_role: { Args: never; Returns: string }
2628
- get_system_primary_domain: { Args: never; Returns: string }
2629
- get_user_id_from_token: { Args: { p_token: string }; Returns: string }
2630
- get_worker_subdomain: { Args: { p_worker_id: string }; Returns: string }
2631
- github_list_installation_repos: { Args: never; Returns: Json }
2632
- github_list_repo_branches: {
2633
- Args: { p_repo_full_name: string }
2634
- Returns: Json
2635
- }
2636
- gomtm_model_count: {
2637
- Args: { p_is_active?: boolean; p_provider?: string }
2638
- Returns: number
2639
- }
2640
- gomtm_model_delete: { Args: { p_id: string }; Returns: boolean }
2641
- gomtm_model_get: {
2642
- Args: { p_id: string }
2643
- Returns: {
2644
- api_base: string | null
2645
- api_key: string | null
2646
- config: Json | null
2647
- created_at: string
2648
- id: string
2649
- is_active: boolean
2650
- linked_account_id: string | null
2651
- model: string
2652
- name: string
2653
- provider: string
2654
- updated_at: string
2655
- user_id: string
2656
- }[]
2657
- SetofOptions: {
2658
- from: "*"
2659
- to: "gomtm_models"
2660
- isOneToOne: false
2661
- isSetofReturn: true
2662
- }
2663
- }
2664
- gomtm_model_list_cursor: {
2665
- Args: {
2666
- p_cursor_id?: string
2667
- p_is_active?: boolean
2668
- p_limit?: number
2669
- p_provider?: string
2670
- }
2671
- Returns: {
2672
- api_base: string | null
2673
- api_key: string | null
2674
- config: Json | null
2675
- created_at: string
2676
- id: string
2677
- is_active: boolean
2678
- linked_account_id: string | null
2679
- model: string
2680
- name: string
2681
- provider: string
2682
- updated_at: string
2683
- user_id: string
2684
- }[]
2685
- SetofOptions: {
2686
- from: "*"
2687
- to: "gomtm_models"
2688
- isOneToOne: false
2689
- isSetofReturn: true
2690
- }
2691
- }
2692
- gomtm_model_upsert: {
2693
- Args: {
2694
- p_api_base: string
2695
- p_api_key: string
2696
- p_config: Json
2697
- p_id: string
2698
- p_is_active: boolean
2699
- p_linked_account_id: string
2700
- p_model: string
2701
- p_name: string
2702
- p_provider: string
2703
- }
2704
- Returns: {
2705
- api_base: string | null
2706
- api_key: string | null
2707
- config: Json | null
2708
- created_at: string
2709
- id: string
2710
- is_active: boolean
2711
- linked_account_id: string | null
2712
- model: string
2713
- name: string
2714
- provider: string
2715
- updated_at: string
2716
- user_id: string
2717
- }[]
2718
- SetofOptions: {
2719
- from: "*"
2720
- to: "gomtm_models"
2721
- isOneToOne: false
2722
- isSetofReturn: true
2723
- }
2724
- }
2725
- handle_job_outreach_process: {
2726
- Args: { p_payload?: Json }
2727
- Returns: undefined
2728
- }
2729
- handle_job_telegram_fetch_info: {
2730
- Args: { p_payload: Json }
2731
- Returns: undefined
2732
- }
2733
- handle_job_telegram_fetch_sms: {
2734
- Args: { p_payload: Json }
2735
- Returns: undefined
2736
- }
2737
- has_permission: {
2738
- Args: { p_action: string; p_resource: string }
2739
- Returns: boolean
2740
- }
2741
- http_fetch: {
2742
- Args: {
2743
- p_body?: Json
2744
- p_headers?: Json
2745
- p_max_retries?: number
2746
- p_method: string
2747
- p_source_tag?: string
2748
- p_timeout_ms?: number
2749
- p_url: string
2750
- }
2751
- Returns: Json
2752
- }
2753
- install_script: {
2754
- Args: { p_instance_id?: string; p_version?: string }
2755
- Returns: string
2756
- }
2757
- instance_tag_add: {
2758
- Args: { p_instance_id: string; p_tag_id: string }
2759
- Returns: boolean
2760
- }
2761
- instance_tag_remove: {
2762
- Args: { p_instance_id: string; p_tag_id: string }
2763
- Returns: boolean
2764
- }
2765
- instance_tags_get: {
2766
- Args: { p_instance_id: string }
2767
- Returns: {
2768
- color: string
2769
- created_at: string
2770
- id: string
2771
- instance_count: number
2772
- name: string
2773
- updated_at: string
2774
- user_id: string
2775
- }[]
2776
- }
2777
- instance_tags_set: {
2778
- Args: { p_instance_id: string; p_tag_ids: string[] }
2779
- Returns: {
2780
- color: string
2781
- created_at: string
2782
- id: string
2783
- instance_count: number
2784
- name: string
2785
- updated_at: string
2786
- user_id: string
2787
- }[]
2788
- }
2789
- job_queue_list_dlq: {
2790
- Args: { p_limit?: number; p_offset?: number; p_queue: string }
2791
- Returns: Database["public"]["CompositeTypes"]["job_queue_dlq_record"][]
2792
- SetofOptions: {
2793
- from: "*"
2794
- to: "job_queue_dlq_record"
2795
- isOneToOne: false
2796
- isSetofReturn: true
2797
- }
2798
- }
2799
- job_queue_purge_dlq: {
2800
- Args: { p_msg_ids: number[]; p_queue: string }
2801
- Returns: boolean
2802
- }
2803
- job_queue_retry_dlq: {
2804
- Args: { p_msg_ids: number[]; p_queue: string }
2805
- Returns: boolean
2806
- }
2807
- job_submit: {
2808
- Args: {
2809
- p_delay_seconds?: number
2810
- p_payload: Json
2811
- p_queue: string
2812
- p_type: string
2813
- }
2814
- Returns: Json
2815
- }
2816
- jsonb_deep_merge: { Args: { a: Json; b: Json }; Returns: Json }
2817
- log_list_unified: {
2818
- Args: {
2819
- p_cursor?: string
2820
- p_event_type?: string
2821
- p_level_max?: string
2822
- p_limit?: number
2823
- p_module?: string
2824
- p_resource_id?: string
2825
- p_resource_type?: string
2826
- p_scope?: string
2827
- p_source?: string
2828
- }
2829
- Returns: Database["public"]["CompositeTypes"]["log_unified_record"][]
2830
- SetofOptions: {
2831
- from: "*"
2832
- to: "log_unified_record"
2833
- isOneToOne: false
2834
- isSetofReturn: true
2835
- }
2836
- }
2837
- notification_complete_action: { Args: { p_id: string }; Returns: boolean }
2838
- notification_count: {
2839
- Args: { p_include_dismissed?: boolean; p_unread_only?: boolean }
2840
- Returns: number
2841
- }
2842
- notification_dismiss: {
2843
- Args: {
2844
- p_dismiss_all?: boolean
2845
- p_id?: string
2846
- p_source_id?: string
2847
- p_source_type?: string
2848
- }
2849
- Returns: number
2850
- }
2851
- notification_get_pending_actions: {
2852
- Args: never
2853
- Returns: {
2854
- action_completed_at: string
2855
- action_payload: Json
2856
- action_type: string
2857
- created_at: string
2858
- dismissed_at: string
2859
- expires_at: string
2860
- id: string
2861
- is_read: boolean
2862
- message: string
2863
- notification_type: string
2864
- priority: string
2865
- read_at: string
2866
- source_id: string
2867
- source_type: string
2868
- title: string
2869
- updated_at: string
2870
- user_id: string
2871
- }[]
2872
- }
2873
- notification_list: {
2874
- Args: {
2875
- p_action_type?: string
2876
- p_cursor?: string
2877
- p_include_dismissed?: boolean
2878
- p_limit?: number
2879
- p_source_type?: string
2880
- p_unread_only?: boolean
2881
- }
2882
- Returns: {
2883
- action_completed_at: string
2884
- action_payload: Json
2885
- action_type: string
2886
- created_at: string
2887
- dismissed_at: string
2888
- expires_at: string
2889
- id: string
2890
- is_read: boolean
2891
- message: string
2892
- notification_type: string
2893
- priority: string
2894
- read_at: string
2895
- source_id: string
2896
- source_type: string
2897
- title: string
2898
- updated_at: string
2899
- user_id: string
2900
- }[]
2901
- }
2902
- notification_mark_read: {
2903
- Args: { p_id?: string; p_mark_all?: boolean }
2904
- Returns: number
2905
- }
2906
- openclaw_assign_server: {
2907
- Args: { p_openclaw_id: string; p_user_id: string }
2908
- Returns: string
2909
- }
2910
- openclaw_build_config: {
2911
- Args: {
2912
- p_openclaw_id: string
2913
- p_override_config?: Json
2914
- p_override_server_id?: string
2915
- }
2916
- Returns: Json
2917
- }
2918
- openclaw_failover: { Args: { p_server_id: string }; Returns: undefined }
2919
- openclaw_metadata_apply_action_contract: {
2920
- Args: {
2921
- p_action_status: string
2922
- p_completed_at?: string
2923
- p_debug_action: string
2924
- p_delete_pending?: boolean
2925
- p_message?: string
2926
- p_metadata: Json
2927
- p_requested_at?: string
2928
- p_user_action: string
2929
- }
2930
- Returns: Json
2931
- }
2932
- openclaw_reconcile_due: { Args: { p_limit?: number }; Returns: number }
2933
- openclaw_reconcile_one: {
2934
- Args: { p_openclaw_id: string }
2935
- Returns: {
2936
- config: Json
2937
- created_at: string
2938
- desired_status: Database["public"]["Enums"]["openclaw_status"]
2939
- id: string
2940
- metadata: Json | null
2941
- name: string | null
2942
- resolved_config: Json
2943
- server_id: string | null
2944
- state: Json | null
2945
- status: Database["public"]["Enums"]["openclaw_status"]
2946
- status_reason: string | null
2947
- updated_at: string
2948
- user_id: string
2949
- }
2950
- SetofOptions: {
2951
- from: "*"
2952
- to: "openclaws"
2953
- isOneToOne: true
2954
- isSetofReturn: false
2955
- }
2956
- }
2957
- openclaw_refresh_resolved_config: {
2958
- Args: {
2959
- p_openclaw_id: string
2960
- p_override_config?: Json
2961
- p_override_server_id?: string
2962
- }
2963
- Returns: Json
2964
- }
2965
- openclaws_delete: {
2966
- Args: { p_id: string }
2967
- Returns: {
2968
- config: Json
2969
- created_at: string
2970
- desired_status: Database["public"]["Enums"]["openclaw_status"]
2971
- id: string
2972
- metadata: Json
2973
- name: string
2974
- server_id: string
2975
- state: Json
2976
- status: Database["public"]["Enums"]["openclaw_status"]
2977
- status_reason: string
2978
- updated_at: string
2979
- user_id: string
2980
- }[]
2981
- }
2982
- openclaws_get: {
2983
- Args: { p_id: string }
2984
- Returns: {
2985
- config: Json
2986
- created_at: string
2987
- desired_status: Database["public"]["Enums"]["openclaw_status"]
2988
- id: string
2989
- metadata: Json
2990
- name: string
2991
- server_id: string
2992
- state: Json
2993
- status: Database["public"]["Enums"]["openclaw_status"]
2994
- status_reason: string
2995
- updated_at: string
2996
- user_id: string
2997
- }[]
2998
- }
2999
- openclaws_list_cursor: {
3000
- Args: {
3001
- p_cursor?: string
3002
- p_limit?: number
3003
- p_search?: string
3004
- p_status?: Database["public"]["Enums"]["openclaw_status"]
3005
- }
3006
- Returns: {
3007
- config: Json
3008
- created_at: string
3009
- desired_status: Database["public"]["Enums"]["openclaw_status"]
3010
- id: string
3011
- metadata: Json
3012
- name: string
3013
- server_id: string
3014
- state: Json
3015
- status: Database["public"]["Enums"]["openclaw_status"]
3016
- status_reason: string
3017
- updated_at: string
3018
- user_id: string
3019
- }[]
3020
- }
3021
- openclaws_request_action: {
3022
- Args: { p_action: string; p_id: string }
3023
- Returns: {
3024
- config: Json
3025
- created_at: string
3026
- desired_status: Database["public"]["Enums"]["openclaw_status"]
3027
- id: string
3028
- metadata: Json
3029
- name: string
3030
- server_id: string
3031
- state: Json
3032
- status: Database["public"]["Enums"]["openclaw_status"]
3033
- status_reason: string
3034
- updated_at: string
3035
- user_id: string
3036
- }[]
3037
- }
3038
- openclaws_upsert: {
3039
- Args: {
3040
- p_config?: Json
3041
- p_id?: string
3042
- p_metadata?: Json
3043
- p_name?: string
3044
- }
3045
- Returns: {
3046
- config: Json
3047
- created_at: string
3048
- desired_status: Database["public"]["Enums"]["openclaw_status"]
3049
- id: string
3050
- metadata: Json
3051
- name: string
3052
- server_id: string
3053
- state: Json
3054
- status: Database["public"]["Enums"]["openclaw_status"]
3055
- status_reason: string
3056
- updated_at: string
3057
- user_id: string
3058
- }[]
3059
- }
3060
- outreach_process_pending_tasks: {
3061
- Args: { p_campaign_id?: string; p_limit?: number }
3062
- Returns: number
3063
- }
3064
- outreach_process_pending_tasks_sync: {
3065
- Args: { p_campaign_id?: string; p_limit?: number }
3066
- Returns: number
3067
- }
3068
- outreach_retry_failed_tasks: {
3069
- Args: { p_campaign_id?: string }
3070
- Returns: number
3071
- }
3072
- outreach_task_list: {
3073
- Args: {
3074
- p_campaign_id?: string
3075
- p_limit?: number
3076
- p_offset?: number
3077
- p_status?: string
3078
- }
3079
- Returns: {
3080
- campaign_id: string
3081
- cloud_account_id: string
3082
- contact_id: string
3083
- created_at: string
3084
- error_message: string
3085
- executed_at: string
3086
- id: string
3087
- metadata: Json
3088
- priority: number
3089
- retry_count: number
3090
- scheduled_at: string
3091
- status: string
3092
- updated_at: string
3093
- user_id: string
3094
- }[]
3095
- }
3096
- proxy_delete: { Args: { p_id: string }; Returns: boolean }
3097
- proxy_get: {
3098
- Args: { p_id: string }
3099
- Returns: {
3100
- created_at: string
3101
- description: string
3102
- enabled: boolean
3103
- id: string
3104
- name: string
3105
- type: string
3106
- updated_at: string
3107
- url: string
3108
- user_id: string
3109
- }[]
3110
- }
3111
- proxy_list: {
3112
- Args: { p_kw?: string; p_page_no?: number; p_page_size?: number }
3113
- Returns: {
3114
- created_at: string
3115
- description: string
3116
- enabled: boolean
3117
- id: string
3118
- name: string
3119
- type: string
3120
- updated_at: string
3121
- url: string
3122
- user_id: string
3123
- }[]
3124
- }
3125
- proxy_upsert: {
3126
- Args: {
3127
- p_description?: string
3128
- p_enabled?: boolean
3129
- p_id: string
3130
- p_name: string
3131
- p_type: string
3132
- p_url: string
3133
- }
3134
- Returns: {
3135
- created_at: string
3136
- description: string
3137
- enabled: boolean
3138
- id: string
3139
- name: string
3140
- type: string
3141
- updated_at: string
3142
- url: string
3143
- user_id: string
3144
- }[]
3145
- }
3146
- resource_delete: { Args: { p_resource_id: string }; Returns: undefined }
3147
- resource_get: { Args: { p_resource_id: string }; Returns: Json }
3148
- resource_list: {
3149
- Args: {
3150
- p_kw?: string
3151
- p_page_num?: number
3152
- p_page_size?: number
3153
- p_slug?: string
3154
- p_type?: string
3155
- }
3156
- Returns: {
3157
- description: string
3158
- icon: string
3159
- id: string
3160
- target_id: string
3161
- title: string
3162
- type: string
3163
- updated_at: string
3164
- url: string
3165
- }[]
3166
- }
3167
- resource_upsert: {
3168
- Args: {
3169
- p_content?: Json
3170
- p_description?: string
3171
- p_id?: string
3172
- p_key?: string
3173
- p_target_id?: string
3174
- p_title?: string
3175
- p_type?: string
3176
- }
3177
- Returns: {
3178
- created_at: string
3179
- data: Json | null
3180
- description: string | null
3181
- hash1: string | null
3182
- icon: string | null
3183
- id: string
3184
- is_public: boolean | null
3185
- meta: Json | null
3186
- target_id: string | null
3187
- title: string | null
3188
- type: string | null
3189
- updated_at: string | null
3190
- user_id: string | null
3191
- }[]
3192
- SetofOptions: {
3193
- from: "*"
3194
- to: "resources"
3195
- isOneToOne: false
3196
- isSetofReturn: true
3197
- }
3198
- }
3199
- sandbox_find_active: { Args: never; Returns: Json }
3200
- script_exec: {
3201
- Args: { p_options?: Json; p_script: Json; p_server_id: string }
3202
- Returns: Json
3203
- }
3204
- server_bootstrap_script_get: {
3205
- Args: { p_callback_token: string; p_server_id: string }
3206
- Returns: string
3207
- }
3208
- server_delete: {
3209
- Args: { p_id: string; p_shutdown_gracefully?: boolean }
3210
- Returns: Json
3211
- }
3212
- server_get: {
3213
- Args: { p_server_id?: string }
3214
- Returns: {
3215
- config: Json
3216
- created_at: string
3217
- id: string
3218
- state: Json
3219
- updated_at: string
3220
- }[]
3221
- }
3222
- server_lifecycle_context_get: {
3223
- Args: { p_action?: string; p_id: string }
3224
- Returns: Json
3225
- }
3226
- server_lifecycle_result_report: {
3227
- Args: { p_action: string; p_id: string; p_result: Json }
3228
- Returns: Json
3229
- }
3230
- server_list_cursor: {
3231
- Args: {
3232
- p_cursor_id?: string
3233
- p_cursor_updated_at?: string
3234
- p_limit?: number
3235
- p_search?: string
3236
- }
3237
- Returns: {
3238
- config: Json | null
3239
- created_at: string
3240
- id: string
3241
- state: Json | null
3242
- updated_at: string
3243
- }[]
3244
- SetofOptions: {
3245
- from: "*"
3246
- to: "servers"
3247
- isOneToOne: false
3248
- isSetofReturn: true
3249
- }
3250
- }
3251
- server_mark_offline: {
3252
- Args: { p_reason?: string; p_server_id: string; p_source?: string }
3253
- Returns: Json
3254
- }
3255
- server_status_apply_callback: {
3256
- Args: { p_callback_token: string; p_payload: Json; p_server_id: string }
3257
- Returns: Json
3258
- }
3259
- server_status_merge: {
3260
- Args: { p_current_state: Json; p_fact: Json }
3261
- Returns: Json
3262
- }
3263
- server_status_reconcile: { Args: { p_server_id: string }; Returns: Json }
3264
- server_status_reconcile_due: {
3265
- Args: { p_limit?: number }
3266
- Returns: number
3267
- }
3268
- server_tunnel_delete: { Args: { p_tunnel_id: string }; Returns: Json }
3269
- server_tunnel_sync: { Args: { p_server_id: string }; Returns: undefined }
3270
- server_upsert: {
3271
- Args: {
3272
- p_compute_node_id?: string
3273
- p_config?: Json
3274
- p_id?: string
3275
- p_state?: Json
3276
- }
3277
- Returns: {
3278
- config: Json
3279
- created_at: string
3280
- id: string
3281
- state: Json
3282
- updated_at: string
3283
- }[]
3284
- }
3285
- sys_config_get: { Args: { p_key: string }; Returns: Json }
3286
- sys_config_set: {
3287
- Args: { p_description?: string; p_key: string; p_value: Json }
3288
- Returns: undefined
3289
- }
3290
- sys_event_log: {
3291
- Args: {
3292
- p_content: string
3293
- p_event_type: string
3294
- p_level?: string
3295
- p_meta?: Json
3296
- p_module?: string
3297
- p_notify_admins?: boolean
3298
- p_resource_id?: string
3299
- p_resource_type?: string
3300
- }
3301
- Returns: string
3302
- }
3303
- sys_log_validate_meta: {
3304
- Args: { p_event_type: string; p_meta: Json }
3305
- Returns: boolean
3306
- }
3307
- sys_logs_cleanup: {
3308
- Args: { p_retention_days?: number }
3309
- Returns: undefined
3310
- }
3311
- system_cleanup: {
3312
- Args: { p_dry_run?: boolean; p_policy_name?: string }
3313
- Returns: Json
3314
- }
3315
- system_config_public_delete: {
3316
- Args: { p_key: string }
3317
- Returns: undefined
3318
- }
3319
- system_config_public_get: { Args: { p_key: string }; Returns: Json }
3320
- system_config_public_list: {
3321
- Args: never
3322
- Returns: {
3323
- created_at: string | null
3324
- description: string | null
3325
- key: string
3326
- updated_at: string | null
3327
- value: Json
3328
- }[]
3329
- SetofOptions: {
3330
- from: "*"
3331
- to: "system_config_public"
3332
- isOneToOne: false
3333
- isSetofReturn: true
3334
- }
3335
- }
3336
- system_config_public_set: {
3337
- Args: { p_key: string; p_value: Json }
3338
- Returns: undefined
3339
- }
3340
- tag_delete: { Args: { p_id: string }; Returns: boolean }
3341
- tag_list: {
3342
- Args: never
3343
- Returns: {
3344
- color: string
3345
- created_at: string
3346
- id: string
3347
- instance_count: number
3348
- name: string
3349
- updated_at: string
3350
- user_id: string
3351
- }[]
3352
- }
3353
- tag_upsert: {
3354
- Args: { p_color?: string; p_id?: string; p_name?: string }
3355
- Returns: {
3356
- color: string
3357
- created_at: string
3358
- id: string
3359
- instance_count: number
3360
- name: string
3361
- updated_at: string
3362
- user_id: string
3363
- }[]
3364
- }
3365
- task_ack: { Args: { p_msg_id: number }; Returns: undefined }
3366
- task_attempt_dispatch: {
3367
- Args: { p_task: Database["public"]["Tables"]["tasks"]["Row"] }
3368
- Returns: {
3369
- code: string | null
3370
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3371
- completed_at: string | null
3372
- context_id: string | null
3373
- context_type: string | null
3374
- created_at: string
3375
- description: string | null
3376
- error: string | null
3377
- executor_id: string | null
3378
- executor_type: string | null
3379
- id: string
3380
- max_retries: number
3381
- meta: Json
3382
- parent_id: string | null
3383
- priority: number
3384
- result: Json | null
3385
- result_text: string | null
3386
- retry_count: number
3387
- scheduled_at: string | null
3388
- started_at: string | null
3389
- status: Database["public"]["Enums"]["task_status"]
3390
- tags: string[]
3391
- title: string
3392
- updated_at: string
3393
- user_id: string
3394
- }
3395
- SetofOptions: {
3396
- from: "tasks"
3397
- to: "tasks"
3398
- isOneToOne: true
3399
- isSetofReturn: false
3400
- }
3401
- }
3402
- task_cancel: {
3403
- Args: { p_id: string }
3404
- Returns: {
3405
- code: string | null
3406
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3407
- completed_at: string | null
3408
- context_id: string | null
3409
- context_type: string | null
3410
- created_at: string
3411
- description: string | null
3412
- error: string | null
3413
- executor_id: string | null
3414
- executor_type: string | null
3415
- id: string
3416
- max_retries: number
3417
- meta: Json
3418
- parent_id: string | null
3419
- priority: number
3420
- result: Json | null
3421
- result_text: string | null
3422
- retry_count: number
3423
- scheduled_at: string | null
3424
- started_at: string | null
3425
- status: Database["public"]["Enums"]["task_status"]
3426
- tags: string[]
3427
- title: string
3428
- updated_at: string
3429
- user_id: string
3430
- }[]
3431
- SetofOptions: {
3432
- from: "*"
3433
- to: "tasks"
3434
- isOneToOne: false
3435
- isSetofReturn: true
3436
- }
3437
- }
3438
- task_complete: {
3439
- Args: {
3440
- p_error?: string
3441
- p_id: string
3442
- p_result?: Json
3443
- p_result_text?: string
3444
- p_success: boolean
3445
- }
3446
- Returns: {
3447
- code: string | null
3448
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3449
- completed_at: string | null
3450
- context_id: string | null
3451
- context_type: string | null
3452
- created_at: string
3453
- description: string | null
3454
- error: string | null
3455
- executor_id: string | null
3456
- executor_type: string | null
3457
- id: string
3458
- max_retries: number
3459
- meta: Json
3460
- parent_id: string | null
3461
- priority: number
3462
- result: Json | null
3463
- result_text: string | null
3464
- retry_count: number
3465
- scheduled_at: string | null
3466
- started_at: string | null
3467
- status: Database["public"]["Enums"]["task_status"]
3468
- tags: string[]
3469
- title: string
3470
- updated_at: string
3471
- user_id: string
3472
- }[]
3473
- SetofOptions: {
3474
- from: "*"
3475
- to: "tasks"
3476
- isOneToOne: false
3477
- isSetofReturn: true
3478
- }
3479
- }
3480
- task_derive: {
3481
- Args: {
3482
- p_code: string
3483
- p_code_type: Database["public"]["Enums"]["task_code_type"]
3484
- p_description?: string
3485
- p_meta?: Json
3486
- p_parent_id: string
3487
- p_title: string
3488
- }
3489
- Returns: {
3490
- code: string | null
3491
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3492
- completed_at: string | null
3493
- context_id: string | null
3494
- context_type: string | null
3495
- created_at: string
3496
- description: string | null
3497
- error: string | null
3498
- executor_id: string | null
3499
- executor_type: string | null
3500
- id: string
3501
- max_retries: number
3502
- meta: Json
3503
- parent_id: string | null
3504
- priority: number
3505
- result: Json | null
3506
- result_text: string | null
3507
- retry_count: number
3508
- scheduled_at: string | null
3509
- started_at: string | null
3510
- status: Database["public"]["Enums"]["task_status"]
3511
- tags: string[]
3512
- title: string
3513
- updated_at: string
3514
- user_id: string
3515
- }[]
3516
- SetofOptions: {
3517
- from: "*"
3518
- to: "tasks"
3519
- isOneToOne: false
3520
- isSetofReturn: true
3521
- }
3522
- }
3523
- task_get: {
3524
- Args: { p_id: string }
3525
- Returns: {
3526
- code: string | null
3527
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3528
- completed_at: string | null
3529
- context_id: string | null
3530
- context_type: string | null
3531
- created_at: string
3532
- description: string | null
3533
- error: string | null
3534
- executor_id: string | null
3535
- executor_type: string | null
3536
- id: string
3537
- max_retries: number
3538
- meta: Json
3539
- parent_id: string | null
3540
- priority: number
3541
- result: Json | null
3542
- result_text: string | null
3543
- retry_count: number
3544
- scheduled_at: string | null
3545
- started_at: string | null
3546
- status: Database["public"]["Enums"]["task_status"]
3547
- tags: string[]
3548
- title: string
3549
- updated_at: string
3550
- user_id: string
3551
- }[]
3552
- SetofOptions: {
3553
- from: "*"
3554
- to: "tasks"
3555
- isOneToOne: false
3556
- isSetofReturn: true
3557
- }
3558
- }
3559
- task_list_cursor: {
3560
- Args: {
3561
- p_code_type?: Database["public"]["Enums"]["task_code_type"]
3562
- p_context_id?: string
3563
- p_context_type?: string
3564
- p_cursor?: string
3565
- p_limit?: number
3566
- p_parent_id?: string
3567
- p_status?: Database["public"]["Enums"]["task_status"]
3568
- p_tag?: string
3569
- }
3570
- Returns: {
3571
- code: string | null
3572
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3573
- completed_at: string | null
3574
- context_id: string | null
3575
- context_type: string | null
3576
- created_at: string
3577
- description: string | null
3578
- error: string | null
3579
- executor_id: string | null
3580
- executor_type: string | null
3581
- id: string
3582
- max_retries: number
3583
- meta: Json
3584
- parent_id: string | null
3585
- priority: number
3586
- result: Json | null
3587
- result_text: string | null
3588
- retry_count: number
3589
- scheduled_at: string | null
3590
- started_at: string | null
3591
- status: Database["public"]["Enums"]["task_status"]
3592
- tags: string[]
3593
- title: string
3594
- updated_at: string
3595
- user_id: string
3596
- }[]
3597
- SetofOptions: {
3598
- from: "*"
3599
- to: "tasks"
3600
- isOneToOne: false
3601
- isSetofReturn: true
3602
- }
3603
- }
3604
- task_schedule_next: { Args: never; Returns: undefined }
3605
- task_submit: {
3606
- Args: { p_id: string }
3607
- Returns: {
3608
- code: string | null
3609
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3610
- completed_at: string | null
3611
- context_id: string | null
3612
- context_type: string | null
3613
- created_at: string
3614
- description: string | null
3615
- error: string | null
3616
- executor_id: string | null
3617
- executor_type: string | null
3618
- id: string
3619
- max_retries: number
3620
- meta: Json
3621
- parent_id: string | null
3622
- priority: number
3623
- result: Json | null
3624
- result_text: string | null
3625
- retry_count: number
3626
- scheduled_at: string | null
3627
- started_at: string | null
3628
- status: Database["public"]["Enums"]["task_status"]
3629
- tags: string[]
3630
- title: string
3631
- updated_at: string
3632
- user_id: string
3633
- }[]
3634
- SetofOptions: {
3635
- from: "*"
3636
- to: "tasks"
3637
- isOneToOne: false
3638
- isSetofReturn: true
3639
- }
3640
- }
3641
- task_timeout_check: { Args: never; Returns: undefined }
3642
- task_tree: {
3643
- Args: { p_task_id: string }
3644
- Returns: {
3645
- code: string | null
3646
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3647
- completed_at: string | null
3648
- context_id: string | null
3649
- context_type: string | null
3650
- created_at: string
3651
- description: string | null
3652
- error: string | null
3653
- executor_id: string | null
3654
- executor_type: string | null
3655
- id: string
3656
- max_retries: number
3657
- meta: Json
3658
- parent_id: string | null
3659
- priority: number
3660
- result: Json | null
3661
- result_text: string | null
3662
- retry_count: number
3663
- scheduled_at: string | null
3664
- started_at: string | null
3665
- status: Database["public"]["Enums"]["task_status"]
3666
- tags: string[]
3667
- title: string
3668
- updated_at: string
3669
- user_id: string
3670
- }[]
3671
- SetofOptions: {
3672
- from: "*"
3673
- to: "tasks"
3674
- isOneToOne: false
3675
- isSetofReturn: true
3676
- }
3677
- }
3678
- task_upsert: {
3679
- Args: {
3680
- p_code?: string
3681
- p_code_type?: Database["public"]["Enums"]["task_code_type"]
3682
- p_context_id?: string
3683
- p_context_type?: string
3684
- p_description?: string
3685
- p_executor_id?: string
3686
- p_executor_type?: string
3687
- p_id?: string
3688
- p_max_retries?: number
3689
- p_meta?: Json
3690
- p_parent_id?: string
3691
- p_priority?: number
3692
- p_scheduled_at?: string
3693
- p_status?: Database["public"]["Enums"]["task_status"]
3694
- p_tags?: string[]
3695
- p_title?: string
3696
- }
3697
- Returns: {
3698
- code: string | null
3699
- code_type: Database["public"]["Enums"]["task_code_type"] | null
3700
- completed_at: string | null
3701
- context_id: string | null
3702
- context_type: string | null
3703
- created_at: string
3704
- description: string | null
3705
- error: string | null
3706
- executor_id: string | null
3707
- executor_type: string | null
3708
- id: string
3709
- max_retries: number
3710
- meta: Json
3711
- parent_id: string | null
3712
- priority: number
3713
- result: Json | null
3714
- result_text: string | null
3715
- retry_count: number
3716
- scheduled_at: string | null
3717
- started_at: string | null
3718
- status: Database["public"]["Enums"]["task_status"]
3719
- tags: string[]
3720
- title: string
3721
- updated_at: string
3722
- user_id: string
3723
- }[]
3724
- SetofOptions: {
3725
- from: "*"
3726
- to: "tasks"
3727
- isOneToOne: false
3728
- isSetofReturn: true
3729
- }
3730
- }
3731
- telegram_login_start: {
3732
- Args: { p_account_id: string; p_use_sms?: boolean }
3733
- Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][]
3734
- SetofOptions: {
3735
- from: "*"
3736
- to: "telegram_login_response"
3737
- isOneToOne: false
3738
- isSetofReturn: true
3739
- }
3740
- }
3741
- telegram_login_step_process: {
3742
- Args: {
3743
- p_account_id: string
3744
- p_body: Json
3745
- p_step: string
3746
- p_success: boolean
3747
- }
3748
- Returns: undefined
3749
- }
3750
- telegram_login_submit_code: {
3751
- Args: { p_account_id: string; p_code: string }
3752
- Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][]
3753
- SetofOptions: {
3754
- from: "*"
3755
- to: "telegram_login_response"
3756
- isOneToOne: false
3757
- isSetofReturn: true
3758
- }
3759
- }
3760
- telegram_login_submit_two_fa: {
3761
- Args: { p_account_id: string; p_password: string }
3762
- Returns: Database["public"]["CompositeTypes"]["telegram_login_response"][]
3763
- SetofOptions: {
3764
- from: "*"
3765
- to: "telegram_login_response"
3766
- isOneToOne: false
3767
- isSetofReturn: true
3768
- }
3769
- }
3770
- telegram_server_post: {
3771
- Args: {
3772
- p_body: Json
3773
- p_path: string
3774
- p_preferred_server_id: string
3775
- p_timeout?: string
3776
- }
3777
- Returns: Json
3778
- }
3779
- traffic_log_delete: { Args: never; Returns: undefined }
3780
- traffic_log_insert: { Args: { p_logs: Json }; Returns: undefined }
3781
- traffic_log_list: {
3782
- Args: { p_limit?: number; p_offset?: number }
3783
- Returns: {
3784
- client_ip: string | null
3785
- created_at: string | null
3786
- error: string | null
3787
- host: string | null
3788
- id: string
3789
- method: string | null
3790
- path: string | null
3791
- request_headers: Json | null
3792
- response_headers: Json | null
3793
- scheme: string | null
3794
- started_at: string | null
3795
- status_code: number | null
3796
- url: string | null
3797
- user_id: string | null
3798
- worker_id: string | null
3799
- }[]
3800
- SetofOptions: {
3801
- from: "*"
3802
- to: "traffic_logs"
3803
- isOneToOne: false
3804
- isSetofReturn: true
3805
- }
3806
- }
3807
- user_create: {
3808
- Args: {
3809
- p_email: string
3810
- p_full_name?: string
3811
- p_password: string
3812
- p_role?: Database["public"]["Enums"]["app_role"]
3813
- p_user_id?: string
3814
- }
3815
- Returns: string
3816
- }
3817
- user_delete: { Args: { p_user_id: string }; Returns: undefined }
3818
- user_log_record: {
3819
- Args: {
3820
- p_content: string
3821
- p_event_type: string
3822
- p_level?: string
3823
- p_meta?: Json
3824
- p_resource_id?: string
3825
- p_resource_type?: string
3826
- p_user_id?: string
3827
- }
3828
- Returns: string
3829
- }
3830
- user_notifications_cleanup: {
3831
- Args: { p_retention_days?: number }
3832
- Returns: undefined
3833
- }
3834
- user_profile_get: {
3835
- Args: never
3836
- Returns: {
3837
- avatar_url: string | null
3838
- full_name: string | null
3839
- id: string
3840
- updated_at: string | null
3841
- username: string | null
3842
- website: string | null
3843
- }[]
3844
- SetofOptions: {
3845
- from: "*"
3846
- to: "profiles"
3847
- isOneToOne: false
3848
- isSetofReturn: true
3849
- }
3850
- }
3851
- user_profile_upsert: {
3852
- Args: {
3853
- p_avatar_url: string
3854
- p_full_name: string
3855
- p_username: string
3856
- p_website: string
3857
- }
3858
- Returns: {
3859
- avatar_url: string | null
3860
- full_name: string | null
3861
- id: string
3862
- updated_at: string | null
3863
- username: string | null
3864
- website: string | null
3865
- }[]
3866
- SetofOptions: {
3867
- from: "*"
3868
- to: "profiles"
3869
- isOneToOne: false
3870
- isSetofReturn: true
3871
- }
3872
- }
3873
- user_role_delete: {
3874
- Args: {
3875
- p_role: Database["public"]["Enums"]["app_role"]
3876
- p_user_id: string
3877
- }
3878
- Returns: undefined
3879
- }
3880
- user_role_list: {
3881
- Args: { p_user_id: string }
3882
- Returns: Database["public"]["Enums"]["app_role"][]
3883
- }
3884
- user_role_upsert: {
3885
- Args: {
3886
- p_role: Database["public"]["Enums"]["app_role"]
3887
- p_user_id: string
3888
- }
3889
- Returns: undefined
3890
- }
3891
- }
3892
- Enums: {
3893
- app_role: "admin" | "moderator" | "member"
3894
- audit_finding_severity: "critical" | "high" | "medium" | "low" | "info"
3895
- chat_role: "system" | "user" | "assistant" | "model" | "error" | "tool"
3896
- chat_visibility: "private" | "public"
3897
- cloud_account_status:
3898
- | "pending"
3899
- | "active"
3900
- | "token_expired"
3901
- | "needs_reauth"
3902
- | "quota_exceeded"
3903
- | "suspended"
3904
- | "disabled"
3905
- openclaw_status:
3906
- | "disabled"
3907
- | "pending"
3908
- | "starting"
3909
- | "running"
3910
- | "stopping"
3911
- | "stopped"
3912
- | "error"
3913
- | "migrating"
3914
- sys_log_level: "error" | "warn" | "info"
3915
- task_code_type: "sql" | "bash" | "python" | "agent" | "javascript"
3916
- task_status:
3917
- | "draft"
3918
- | "pending"
3919
- | "queued"
3920
- | "running"
3921
- | "completed"
3922
- | "failed"
3923
- | "cancelled"
3924
- | "paused"
3925
- telegram_login_state:
3926
- | "idle"
3927
- | "wait_code"
3928
- | "need_2fa"
3929
- | "wait_password"
3930
- | "success"
3931
- | "failed"
3932
- telegram_login_step:
3933
- | "pending"
3934
- | "send_code"
3935
- | "wait_code"
3936
- | "verify_code"
3937
- | "need_2fa"
3938
- | "success"
3939
- | "failed"
3940
- | "fetch_info"
3941
- }
3942
- CompositeTypes: {
3943
- audit_project_stats_record: {
3944
- asset_count: number | null
3945
- finding_count: number | null
3946
- high_risk_count: number | null
3947
- task_count: number | null
3948
- }
3949
- cloud_account_record: {
3950
- id: string | null
3951
- created_at: string | null
3952
- updated_at: string | null
3953
- user_id: string | null
3954
- platform_name: string | null
3955
- account_email: string | null
3956
- account_name: string | null
3957
- token_type: string | null
3958
- token_expires_at: string | null
3959
- refresh_token_expires_at: string | null
3960
- last_refresh_at: string | null
3961
- status: Database["public"]["Enums"]["cloud_account_status"] | null
3962
- status_reason: string | null
3963
- status_updated_at: string | null
3964
- session_data: Json | null
3965
- device_fingerprint: Json | null
3966
- quota_data: Json | null
3967
- metadata: Json | null
3968
- proxy_disabled: boolean | null
3969
- last_used_at: string | null
3970
- use_count: number | null
3971
- device_history: Json[] | null
3972
- credentials: Json | null
3973
- }
3974
- job_queue_dlq_record: {
3975
- msg_id: number | null
3976
- read_ct: number | null
3977
- enqueued_at: string | null
3978
- message: Json | null
3979
- }
3980
- log_unified_record: {
3981
- id: string | null
3982
- source: string | null
3983
- created_at: string | null
3984
- event_type: string | null
3985
- level: string | null
3986
- module: string | null
3987
- content: string | null
3988
- meta: Json | null
3989
- resource_type: string | null
3990
- resource_id: string | null
3991
- user_id: string | null
3992
- }
3993
- telegram_login_response: {
3994
- success: boolean | null
3995
- step: string | null
3996
- timeout_seconds: number | null
3997
- error_message: string | null
3998
- user_info: Json | null
3999
- }
4000
- }
4001
- }
4002
- }
4003
-
4004
- type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
4005
-
4006
- type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
4007
-
4008
- export type Tables<
4009
- DefaultSchemaTableNameOrOptions extends
4010
- | keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
4011
- | { schema: keyof DatabaseWithoutInternals },
4012
- TableName extends DefaultSchemaTableNameOrOptions extends {
4013
- schema: keyof DatabaseWithoutInternals
4014
- }
4015
- ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
4016
- DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
4017
- : never = never,
4018
- > = DefaultSchemaTableNameOrOptions extends {
4019
- schema: keyof DatabaseWithoutInternals
4020
- }
4021
- ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
4022
- DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
4023
- Row: infer R
4024
- }
4025
- ? R
4026
- : never
4027
- : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] &
4028
- DefaultSchema["Views"])
4029
- ? (DefaultSchema["Tables"] &
4030
- DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
4031
- Row: infer R
4032
- }
4033
- ? R
4034
- : never
4035
- : never
4036
-
4037
- export type TablesInsert<
4038
- DefaultSchemaTableNameOrOptions extends
4039
- | keyof DefaultSchema["Tables"]
4040
- | { schema: keyof DatabaseWithoutInternals },
4041
- TableName extends DefaultSchemaTableNameOrOptions extends {
4042
- schema: keyof DatabaseWithoutInternals
4043
- }
4044
- ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
4045
- : never = never,
4046
- > = DefaultSchemaTableNameOrOptions extends {
4047
- schema: keyof DatabaseWithoutInternals
4048
- }
4049
- ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
4050
- Insert: infer I
4051
- }
4052
- ? I
4053
- : never
4054
- : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
4055
- ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
4056
- Insert: infer I
4057
- }
4058
- ? I
4059
- : never
4060
- : never
4061
-
4062
- export type TablesUpdate<
4063
- DefaultSchemaTableNameOrOptions extends
4064
- | keyof DefaultSchema["Tables"]
4065
- | { schema: keyof DatabaseWithoutInternals },
4066
- TableName extends DefaultSchemaTableNameOrOptions extends {
4067
- schema: keyof DatabaseWithoutInternals
4068
- }
4069
- ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
4070
- : never = never,
4071
- > = DefaultSchemaTableNameOrOptions extends {
4072
- schema: keyof DatabaseWithoutInternals
4073
- }
4074
- ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
4075
- Update: infer U
4076
- }
4077
- ? U
4078
- : never
4079
- : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"]
4080
- ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
4081
- Update: infer U
4082
- }
4083
- ? U
4084
- : never
4085
- : never
4086
-
4087
- export type Enums<
4088
- DefaultSchemaEnumNameOrOptions extends
4089
- | keyof DefaultSchema["Enums"]
4090
- | { schema: keyof DatabaseWithoutInternals },
4091
- EnumName extends DefaultSchemaEnumNameOrOptions extends {
4092
- schema: keyof DatabaseWithoutInternals
4093
- }
4094
- ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
4095
- : never = never,
4096
- > = DefaultSchemaEnumNameOrOptions extends {
4097
- schema: keyof DatabaseWithoutInternals
4098
- }
4099
- ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
4100
- : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
4101
- ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
4102
- : never
4103
-
4104
- export type CompositeTypes<
4105
- PublicCompositeTypeNameOrOptions extends
4106
- | keyof DefaultSchema["CompositeTypes"]
4107
- | { schema: keyof DatabaseWithoutInternals },
4108
- CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
4109
- schema: keyof DatabaseWithoutInternals
4110
- }
4111
- ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
4112
- : never = never,
4113
- > = PublicCompositeTypeNameOrOptions extends {
4114
- schema: keyof DatabaseWithoutInternals
4115
- }
4116
- ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
4117
- : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
4118
- ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
4119
- : never
4120
-
4121
- export const Constants = {
4122
- graphql_public: {
4123
- Enums: {},
4124
- },
4125
- public: {
4126
- Enums: {
4127
- app_role: ["admin", "moderator", "member"],
4128
- audit_finding_severity: ["critical", "high", "medium", "low", "info"],
4129
- chat_role: ["system", "user", "assistant", "model", "error", "tool"],
4130
- chat_visibility: ["private", "public"],
4131
- cloud_account_status: [
4132
- "pending",
4133
- "active",
4134
- "token_expired",
4135
- "needs_reauth",
4136
- "quota_exceeded",
4137
- "suspended",
4138
- "disabled",
4139
- ],
4140
- openclaw_status: [
4141
- "disabled",
4142
- "pending",
4143
- "starting",
4144
- "running",
4145
- "stopping",
4146
- "stopped",
4147
- "error",
4148
- "migrating",
4149
- ],
4150
- sys_log_level: ["error", "warn", "info"],
4151
- task_code_type: ["sql", "bash", "python", "agent", "javascript"],
4152
- task_status: [
4153
- "draft",
4154
- "pending",
4155
- "queued",
4156
- "running",
4157
- "completed",
4158
- "failed",
4159
- "cancelled",
4160
- "paused",
4161
- ],
4162
- telegram_login_state: [
4163
- "idle",
4164
- "wait_code",
4165
- "need_2fa",
4166
- "wait_password",
4167
- "success",
4168
- "failed",
4169
- ],
4170
- telegram_login_step: [
4171
- "pending",
4172
- "send_code",
4173
- "wait_code",
4174
- "verify_code",
4175
- "need_2fa",
4176
- "success",
4177
- "failed",
4178
- "fetch_info",
4179
- ],
4180
- },
4181
- },
4182
- } as const