mtmsdk 0.0.46 → 0.0.48

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 (195) hide show
  1. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts +45 -45
  2. package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
  3. package/dist/gomtmapi/@tanstack/react-query.gen.js +69 -69
  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 +91 -52
  10. package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
  11. package/dist/gomtmapi/schemas.gen.js +91 -56
  12. package/dist/gomtmapi/schemas.gen.js.map +1 -1
  13. package/dist/gomtmapi/sdk.gen.d.ts +41 -41
  14. package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
  15. package/dist/gomtmapi/sdk.gen.js +55 -55
  16. package/dist/gomtmapi/sdk.gen.js.map +1 -1
  17. package/dist/gomtmapi/types.gen.d.ts +120 -131
  18. package/dist/gomtmapi/types.gen.d.ts.map +1 -1
  19. package/dist/gomtmapi/zod.gen.d.ts +96 -74
  20. package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
  21. package/dist/gomtmapi/zod.gen.js +67 -58
  22. package/dist/gomtmapi/zod.gen.js.map +1 -1
  23. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +4 -101
  24. package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
  25. package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -14
  26. package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
  27. package/dist/mtgate_api/index.d.ts +2 -2
  28. package/dist/mtgate_api/index.d.ts.map +1 -1
  29. package/dist/mtgate_api/index.js +1 -1
  30. package/dist/mtgate_api/index.js.map +1 -1
  31. package/dist/mtgate_api/schemas.gen.d.ts +0 -31
  32. package/dist/mtgate_api/schemas.gen.d.ts.map +1 -1
  33. package/dist/mtgate_api/schemas.gen.js +0 -46
  34. package/dist/mtgate_api/schemas.gen.js.map +1 -1
  35. package/dist/mtgate_api/sdk.gen.d.ts +1 -2
  36. package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
  37. package/dist/mtgate_api/sdk.gen.js +0 -1
  38. package/dist/mtgate_api/sdk.gen.js.map +1 -1
  39. package/dist/mtgate_api/types.gen.d.ts +1 -73
  40. package/dist/mtgate_api/types.gen.d.ts.map +1 -1
  41. package/dist/mtgate_api/zod.gen.d.ts +0 -77
  42. package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
  43. package/dist/mtgate_api/zod.gen.js +0 -47
  44. package/dist/mtgate_api/zod.gen.js.map +1 -1
  45. package/dist/openclaw/gateway.d.ts.map +1 -1
  46. package/dist/openclaw/gateway.js +1 -5
  47. package/dist/openclaw/gateway.js.map +1 -1
  48. package/dist/sbmng/schemas.gen.d.ts +15 -2
  49. package/dist/sbmng/schemas.gen.d.ts.map +1 -1
  50. package/dist/sbmng/schemas.gen.js +55 -2
  51. package/dist/sbmng/schemas.gen.js.map +1 -1
  52. package/dist/sbmng/types.gen.d.ts +5 -2
  53. package/dist/sbmng/types.gen.d.ts.map +1 -1
  54. package/dist/supabase/schema/index.d.ts +0 -9
  55. package/dist/supabase/schema/index.d.ts.map +1 -1
  56. package/dist/supabase/schema/index.js +0 -13
  57. package/dist/supabase/schema/index.js.map +1 -1
  58. package/dist/supabase/supabase-client.d.ts +985 -739
  59. package/dist/supabase/supabase-client.d.ts.map +1 -1
  60. package/dist/supabase/supabase.d.ts +2182 -1689
  61. package/dist/supabase/supabase.d.ts.map +1 -1
  62. package/dist/supabase/supabase.js.map +1 -1
  63. package/dist/types/database.schemas.d.ts +1322 -743
  64. package/dist/types/database.schemas.d.ts.map +1 -1
  65. package/dist/types/database.schemas.js +822 -610
  66. package/dist/types/database.schemas.js.map +1 -1
  67. package/dist/types/database.types.d.ts +1004 -734
  68. package/dist/types/database.types.d.ts.map +1 -1
  69. package/dist/types/database.types.js +16 -1
  70. package/dist/types/database.types.js.map +1 -1
  71. package/dist/types/index.d.ts +32 -48
  72. package/dist/types/index.d.ts.map +1 -1
  73. package/dist/types/index.js +0 -25
  74. package/dist/types/index.js.map +1 -1
  75. package/dist/types/rpc.schemas.d.ts +1 -13
  76. package/dist/types/rpc.schemas.d.ts.map +1 -1
  77. package/dist/types/rpc.schemas.js +7 -21
  78. package/dist/types/rpc.schemas.js.map +1 -1
  79. package/package.json +3 -4
  80. package/src/gomtmapi/@tanstack/react-query.gen.ts +73 -73
  81. package/src/gomtmapi/index.ts +2 -2
  82. package/src/gomtmapi/schemas.gen.ts +92 -58
  83. package/src/gomtmapi/sdk.gen.ts +58 -58
  84. package/src/gomtmapi/types.gen.ts +131 -143
  85. package/src/gomtmapi/zod.gen.ts +72 -64
  86. package/src/mtgate_api/@tanstack/react-query.gen.ts +3 -18
  87. package/src/mtgate_api/index.ts +2 -2
  88. package/src/mtgate_api/schemas.gen.ts +0 -47
  89. package/src/mtgate_api/sdk.gen.ts +1 -3
  90. package/src/mtgate_api/types.gen.ts +1 -79
  91. package/src/mtgate_api/zod.gen.ts +0 -52
  92. package/src/openclaw/gateway.ts +5 -10
  93. package/src/sbmng/schemas.gen.ts +55 -2
  94. package/src/sbmng/types.gen.ts +5 -2
  95. package/src/supabase/schema/index.ts +0 -20
  96. package/src/supabase/supabase.ts +4 -2
  97. package/src/types/database.schemas.ts +956 -732
  98. package/src/types/database.types.ts +977 -707
  99. package/src/types/index.ts +33 -66
  100. package/src/types/rpc.schemas.ts +8 -23
  101. package/dist/sbapi/@tanstack/react-query.gen.d.ts +0 -3280
  102. package/dist/sbapi/@tanstack/react-query.gen.d.ts.map +0 -1
  103. package/dist/sbapi/@tanstack/react-query.gen.js +0 -6084
  104. package/dist/sbapi/@tanstack/react-query.gen.js.map +0 -1
  105. package/dist/sbapi/client/client.gen.d.ts +0 -3
  106. package/dist/sbapi/client/client.gen.d.ts.map +0 -1
  107. package/dist/sbapi/client/client.gen.js +0 -236
  108. package/dist/sbapi/client/client.gen.js.map +0 -1
  109. package/dist/sbapi/client/index.d.ts +0 -9
  110. package/dist/sbapi/client/index.d.ts.map +0 -1
  111. package/dist/sbapi/client/index.js +0 -7
  112. package/dist/sbapi/client/index.js.map +0 -1
  113. package/dist/sbapi/client/types.gen.d.ts +0 -118
  114. package/dist/sbapi/client/types.gen.d.ts.map +0 -1
  115. package/dist/sbapi/client/types.gen.js +0 -3
  116. package/dist/sbapi/client/types.gen.js.map +0 -1
  117. package/dist/sbapi/client/utils.gen.d.ts +0 -34
  118. package/dist/sbapi/client/utils.gen.d.ts.map +0 -1
  119. package/dist/sbapi/client/utils.gen.js +0 -232
  120. package/dist/sbapi/client/utils.gen.js.map +0 -1
  121. package/dist/sbapi/client.gen.d.ts +0 -13
  122. package/dist/sbapi/client.gen.d.ts.map +0 -1
  123. package/dist/sbapi/client.gen.js +0 -4
  124. package/dist/sbapi/client.gen.js.map +0 -1
  125. package/dist/sbapi/core/auth.gen.d.ts +0 -19
  126. package/dist/sbapi/core/auth.gen.d.ts.map +0 -1
  127. package/dist/sbapi/core/auth.gen.js +0 -15
  128. package/dist/sbapi/core/auth.gen.js.map +0 -1
  129. package/dist/sbapi/core/bodySerializer.gen.d.ts +0 -26
  130. package/dist/sbapi/core/bodySerializer.gen.d.ts.map +0 -1
  131. package/dist/sbapi/core/bodySerializer.gen.js +0 -58
  132. package/dist/sbapi/core/bodySerializer.gen.js.map +0 -1
  133. package/dist/sbapi/core/params.gen.d.ts +0 -44
  134. package/dist/sbapi/core/params.gen.d.ts.map +0 -1
  135. package/dist/sbapi/core/params.gen.js +0 -101
  136. package/dist/sbapi/core/params.gen.js.map +0 -1
  137. package/dist/sbapi/core/pathSerializer.gen.d.ts +0 -34
  138. package/dist/sbapi/core/pathSerializer.gen.d.ts.map +0 -1
  139. package/dist/sbapi/core/pathSerializer.gen.js +0 -115
  140. package/dist/sbapi/core/pathSerializer.gen.js.map +0 -1
  141. package/dist/sbapi/core/queryKeySerializer.gen.d.ts +0 -19
  142. package/dist/sbapi/core/queryKeySerializer.gen.d.ts.map +0 -1
  143. package/dist/sbapi/core/queryKeySerializer.gen.js +0 -100
  144. package/dist/sbapi/core/queryKeySerializer.gen.js.map +0 -1
  145. package/dist/sbapi/core/serverSentEvents.gen.d.ts +0 -72
  146. package/dist/sbapi/core/serverSentEvents.gen.d.ts.map +0 -1
  147. package/dist/sbapi/core/serverSentEvents.gen.js +0 -138
  148. package/dist/sbapi/core/serverSentEvents.gen.js.map +0 -1
  149. package/dist/sbapi/core/types.gen.d.ts +0 -79
  150. package/dist/sbapi/core/types.gen.d.ts.map +0 -1
  151. package/dist/sbapi/core/types.gen.js +0 -3
  152. package/dist/sbapi/core/types.gen.js.map +0 -1
  153. package/dist/sbapi/core/utils.gen.d.ts +0 -20
  154. package/dist/sbapi/core/utils.gen.d.ts.map +0 -1
  155. package/dist/sbapi/core/utils.gen.js +0 -88
  156. package/dist/sbapi/core/utils.gen.js.map +0 -1
  157. package/dist/sbapi/index.d.ts +0 -3
  158. package/dist/sbapi/index.d.ts.map +0 -1
  159. package/dist/sbapi/index.js +0 -3
  160. package/dist/sbapi/index.js.map +0 -1
  161. package/dist/sbapi/schemas.gen.d.ts +0 -2322
  162. package/dist/sbapi/schemas.gen.d.ts.map +0 -1
  163. package/dist/sbapi/schemas.gen.js +0 -2596
  164. package/dist/sbapi/schemas.gen.js.map +0 -1
  165. package/dist/sbapi/sdk.gen.d.ts +0 -834
  166. package/dist/sbapi/sdk.gen.d.ts.map +0 -1
  167. package/dist/sbapi/sdk.gen.js +0 -2466
  168. package/dist/sbapi/sdk.gen.js.map +0 -1
  169. package/dist/sbapi/types.gen.d.ts +0 -11726
  170. package/dist/sbapi/types.gen.d.ts.map +0 -1
  171. package/dist/sbapi/types.gen.js +0 -3
  172. package/dist/sbapi/types.gen.js.map +0 -1
  173. package/dist/sbapi/zod.gen.d.ts +0 -8147
  174. package/dist/sbapi/zod.gen.d.ts.map +0 -1
  175. package/dist/sbapi/zod.gen.js +0 -6585
  176. package/dist/sbapi/zod.gen.js.map +0 -1
  177. package/src/sbapi/@tanstack/react-query.gen.ts +0 -6591
  178. package/src/sbapi/client/client.gen.ts +0 -311
  179. package/src/sbapi/client/index.ts +0 -25
  180. package/src/sbapi/client/types.gen.ts +0 -241
  181. package/src/sbapi/client/utils.gen.ts +0 -332
  182. package/src/sbapi/client.gen.ts +0 -16
  183. package/src/sbapi/core/auth.gen.ts +0 -42
  184. package/src/sbapi/core/bodySerializer.gen.ts +0 -100
  185. package/src/sbapi/core/params.gen.ts +0 -176
  186. package/src/sbapi/core/pathSerializer.gen.ts +0 -181
  187. package/src/sbapi/core/queryKeySerializer.gen.ts +0 -136
  188. package/src/sbapi/core/serverSentEvents.gen.ts +0 -266
  189. package/src/sbapi/core/types.gen.ts +0 -118
  190. package/src/sbapi/core/utils.gen.ts +0 -143
  191. package/src/sbapi/index.ts +0 -4
  192. package/src/sbapi/schemas.gen.ts +0 -2643
  193. package/src/sbapi/sdk.gen.ts +0 -2822
  194. package/src/sbapi/types.gen.ts +0 -12503
  195. package/src/sbapi/zod.gen.ts +0 -7021
@@ -31,6 +31,30 @@ export const publicCloudAccountStatusSchema = z.enum([
31
31
  "disabled",
32
32
  ]);
33
33
  export const publicComputeNodeStatusSchema = z.enum(["online", "offline"]);
34
+ export const publicServerStatusSchema = z.enum([
35
+ "created",
36
+ "online",
37
+ "offline",
38
+ "error",
39
+ ]);
40
+ export const publicSysLogLevelSchema = z.enum(["error", "warn", "info"]);
41
+ export const publicTaskCodeTypeSchema = z.enum([
42
+ "sql",
43
+ "bash",
44
+ "python",
45
+ "agent",
46
+ "javascript",
47
+ ]);
48
+ export const publicTaskStatusSchema = z.enum([
49
+ "draft",
50
+ "pending",
51
+ "queued",
52
+ "running",
53
+ "completed",
54
+ "failed",
55
+ "cancelled",
56
+ "paused",
57
+ ]);
34
58
  export const publicTelegramLoginStepSchema = z.enum([
35
59
  "pending",
36
60
  "send_code",
@@ -41,13 +65,6 @@ export const publicTelegramLoginStepSchema = z.enum([
41
65
  "failed",
42
66
  "fetch_info",
43
67
  ]);
44
- export const publicWorkerStatusSchema = z.enum([
45
- "starting",
46
- "running",
47
- "stopping",
48
- "stopped",
49
- "offline",
50
- ]);
51
68
  export const jsonSchema = z.lazy(() => z
52
69
  .union([
53
70
  z.string(),
@@ -387,7 +404,7 @@ export const publicAuditFindingsRelationshipsSchema = z.tuple([
387
404
  foreignKeyName: z.literal("audit_findings_task_id_fkey"),
388
405
  columns: z.tuple([z.literal("task_id")]),
389
406
  isOneToOne: z.literal(false),
390
- referencedRelation: z.literal("audit_tasks"),
407
+ referencedRelation: z.literal("tasks"),
391
408
  referencedColumns: z.tuple([z.literal("id")]),
392
409
  }),
393
410
  ]);
@@ -523,68 +540,6 @@ export const publicAuditSkillsRelationshipsSchema = z.tuple([
523
540
  referencedColumns: z.tuple([z.literal("id")]),
524
541
  }),
525
542
  ]);
526
- export const publicAuditTasksRowSchema = z.object({
527
- created_at: z.string(),
528
- id: z.string(),
529
- instructions: z.string().nullable(),
530
- logs_url: z.string().nullable(),
531
- project_id: z.string(),
532
- result_summary: z.string().nullable(),
533
- sandbox_id: z.string().nullable(),
534
- skill_id: z.string().nullable(),
535
- status: z.string().nullable(),
536
- updated_at: z.string(),
537
- user_id: z.string().nullable(),
538
- });
539
- export const publicAuditTasksInsertSchema = z.object({
540
- created_at: z.string().optional(),
541
- id: z.string().optional(),
542
- instructions: z.string().optional().nullable(),
543
- logs_url: z.string().optional().nullable(),
544
- project_id: z.string(),
545
- result_summary: z.string().optional().nullable(),
546
- sandbox_id: z.string().optional().nullable(),
547
- skill_id: z.string().optional().nullable(),
548
- status: z.string().optional().nullable(),
549
- updated_at: z.string().optional(),
550
- user_id: z.string().optional().nullable(),
551
- });
552
- export const publicAuditTasksUpdateSchema = z.object({
553
- created_at: z.string().optional(),
554
- id: z.string().optional(),
555
- instructions: z.string().optional().nullable(),
556
- logs_url: z.string().optional().nullable(),
557
- project_id: z.string().optional(),
558
- result_summary: z.string().optional().nullable(),
559
- sandbox_id: z.string().optional().nullable(),
560
- skill_id: z.string().optional().nullable(),
561
- status: z.string().optional().nullable(),
562
- updated_at: z.string().optional(),
563
- user_id: z.string().optional().nullable(),
564
- });
565
- export const publicAuditTasksRelationshipsSchema = z.tuple([
566
- z.object({
567
- foreignKeyName: z.literal("audit_tasks_project_id_fkey"),
568
- columns: z.tuple([z.literal("project_id")]),
569
- isOneToOne: z.literal(false),
570
- referencedRelation: z.literal("audit_projects"),
571
- referencedColumns: z.tuple([z.literal("id")]),
572
- }),
573
- z.object({
574
- foreignKeyName: z.literal("audit_tasks_sandbox_id_fkey"),
575
- columns: z.tuple([z.literal("sandbox_id")]),
576
- isOneToOne: z.literal(false),
577
- referencedRelation: z.literal("resources"),
578
- referencedColumns: z.tuple([z.literal("id")]),
579
- }),
580
- z.object({
581
- foreignKeyName: z.literal("audit_tasks_skill_id_fkey"),
582
- columns: z.tuple([z.literal("skill_id")]),
583
- isOneToOne: z.literal(false),
584
- referencedRelation: z.literal("audit_skills"),
585
- referencedColumns: z.tuple([z.literal("id")]),
586
- }),
587
- ]);
588
543
  export const publicBrowsersRowSchema = z.object({
589
544
  cdpUrl: z.string().nullable(),
590
545
  config: jsonSchema.nullable(),
@@ -1288,56 +1243,41 @@ export const publicResourcesUpdateSchema = z.object({
1288
1243
  user_id: z.string().optional().nullable(),
1289
1244
  });
1290
1245
  export const publicServersRowSchema = z.object({
1291
- cloudflared_token: z.string().nullable(),
1246
+ config: jsonSchema.nullable(),
1292
1247
  created_at: z.string(),
1293
- host_id: z.string().nullable(),
1294
1248
  id: z.string(),
1249
+ is_public: z.boolean().nullable(),
1295
1250
  is_shared: z.boolean().nullable(),
1296
- latest_pull_at: z.string().nullable(),
1297
1251
  name: z.string().nullable(),
1298
- runtime: z.string().nullable(),
1299
1252
  state: jsonSchema.nullable(),
1300
- status: publicWorkerStatusSchema.nullable(),
1253
+ status: publicServerStatusSchema.nullable(),
1301
1254
  updated_at: z.string(),
1302
1255
  user_id: z.string().nullable(),
1303
1256
  });
1304
1257
  export const publicServersInsertSchema = z.object({
1305
- cloudflared_token: z.string().optional().nullable(),
1258
+ config: jsonSchema.optional().nullable(),
1306
1259
  created_at: z.string().optional(),
1307
- host_id: z.string().optional().nullable(),
1308
1260
  id: z.string(),
1261
+ is_public: z.boolean().optional().nullable(),
1309
1262
  is_shared: z.boolean().optional().nullable(),
1310
- latest_pull_at: z.string().optional().nullable(),
1311
1263
  name: z.string().optional().nullable(),
1312
- runtime: z.string().optional().nullable(),
1313
1264
  state: jsonSchema.optional().nullable(),
1314
- status: publicWorkerStatusSchema.optional().nullable(),
1265
+ status: publicServerStatusSchema.optional().nullable(),
1315
1266
  updated_at: z.string().optional(),
1316
1267
  user_id: z.string().optional().nullable(),
1317
1268
  });
1318
1269
  export const publicServersUpdateSchema = z.object({
1319
- cloudflared_token: z.string().optional().nullable(),
1270
+ config: jsonSchema.optional().nullable(),
1320
1271
  created_at: z.string().optional(),
1321
- host_id: z.string().optional().nullable(),
1322
1272
  id: z.string().optional(),
1273
+ is_public: z.boolean().optional().nullable(),
1323
1274
  is_shared: z.boolean().optional().nullable(),
1324
- latest_pull_at: z.string().optional().nullable(),
1325
1275
  name: z.string().optional().nullable(),
1326
- runtime: z.string().optional().nullable(),
1327
1276
  state: jsonSchema.optional().nullable(),
1328
- status: publicWorkerStatusSchema.optional().nullable(),
1277
+ status: publicServerStatusSchema.optional().nullable(),
1329
1278
  updated_at: z.string().optional(),
1330
1279
  user_id: z.string().optional().nullable(),
1331
1280
  });
1332
- export const publicServersRelationshipsSchema = z.tuple([
1333
- z.object({
1334
- foreignKeyName: z.literal("workers_host_id_fkey"),
1335
- columns: z.tuple([z.literal("host_id")]),
1336
- isOneToOne: z.literal(false),
1337
- referencedRelation: z.literal("compute_nodes"),
1338
- referencedColumns: z.tuple([z.literal("id")]),
1339
- }),
1340
- ]);
1341
1281
  export const publicSysConfigRowSchema = z.object({
1342
1282
  created_at: z.string().nullable(),
1343
1283
  description: z.string().nullable(),
@@ -1361,25 +1301,37 @@ export const publicSysConfigUpdateSchema = z.object({
1361
1301
  });
1362
1302
  export const publicSysLogsRowSchema = z.object({
1363
1303
  created_at: z.string(),
1304
+ event_type: z.string().nullable(),
1364
1305
  id: z.number(),
1365
- level: z.number().nullable(),
1306
+ level: publicSysLogLevelSchema.nullable(),
1307
+ meta: jsonSchema.nullable(),
1366
1308
  module: z.string().nullable(),
1309
+ resource_id: z.string().nullable(),
1310
+ resource_type: z.string().nullable(),
1367
1311
  text: z.string().nullable(),
1368
1312
  user_id: z.string().nullable(),
1369
1313
  });
1370
1314
  export const publicSysLogsInsertSchema = z.object({
1371
1315
  created_at: z.string().optional(),
1316
+ event_type: z.string().optional().nullable(),
1372
1317
  id: z.number().optional(),
1373
- level: z.number().optional().nullable(),
1318
+ level: publicSysLogLevelSchema.optional().nullable(),
1319
+ meta: jsonSchema.optional().nullable(),
1374
1320
  module: z.string().optional().nullable(),
1321
+ resource_id: z.string().optional().nullable(),
1322
+ resource_type: z.string().optional().nullable(),
1375
1323
  text: z.string().optional().nullable(),
1376
1324
  user_id: z.string().optional().nullable(),
1377
1325
  });
1378
1326
  export const publicSysLogsUpdateSchema = z.object({
1379
1327
  created_at: z.string().optional(),
1328
+ event_type: z.string().optional().nullable(),
1380
1329
  id: z.number().optional(),
1381
- level: z.number().optional().nullable(),
1330
+ level: publicSysLogLevelSchema.optional().nullable(),
1331
+ meta: jsonSchema.optional().nullable(),
1382
1332
  module: z.string().optional().nullable(),
1333
+ resource_id: z.string().optional().nullable(),
1334
+ resource_type: z.string().optional().nullable(),
1383
1335
  text: z.string().optional().nullable(),
1384
1336
  user_id: z.string().optional().nullable(),
1385
1337
  });
@@ -1428,6 +1380,147 @@ export const publicTagsUpdateSchema = z.object({
1428
1380
  updated_at: z.string().optional(),
1429
1381
  user_id: z.string().optional().nullable(),
1430
1382
  });
1383
+ export const publicTasksRowSchema = z.object({
1384
+ code: z.string().nullable(),
1385
+ code_type: publicTaskCodeTypeSchema.nullable(),
1386
+ completed_at: z.string().nullable(),
1387
+ context_id: z.string().nullable(),
1388
+ context_type: z.string().nullable(),
1389
+ created_at: z.string(),
1390
+ description: z.string().nullable(),
1391
+ error: z.string().nullable(),
1392
+ executor_id: z.string().nullable(),
1393
+ executor_type: z.string().nullable(),
1394
+ id: z.string(),
1395
+ max_retries: z.number(),
1396
+ meta: jsonSchema,
1397
+ parent_id: z.string().nullable(),
1398
+ priority: z.number(),
1399
+ result: jsonSchema.nullable(),
1400
+ result_text: z.string().nullable(),
1401
+ retry_count: z.number(),
1402
+ scheduled_at: z.string().nullable(),
1403
+ started_at: z.string().nullable(),
1404
+ status: publicTaskStatusSchema,
1405
+ tags: z.array(z.string()),
1406
+ title: z.string(),
1407
+ updated_at: z.string(),
1408
+ user_id: z.string(),
1409
+ });
1410
+ export const publicTasksInsertSchema = z.object({
1411
+ code: z.string().optional().nullable(),
1412
+ code_type: publicTaskCodeTypeSchema.optional().nullable(),
1413
+ completed_at: z.string().optional().nullable(),
1414
+ context_id: z.string().optional().nullable(),
1415
+ context_type: z.string().optional().nullable(),
1416
+ created_at: z.string().optional(),
1417
+ description: z.string().optional().nullable(),
1418
+ error: z.string().optional().nullable(),
1419
+ executor_id: z.string().optional().nullable(),
1420
+ executor_type: z.string().optional().nullable(),
1421
+ id: z.string().optional(),
1422
+ max_retries: z.number().optional(),
1423
+ meta: jsonSchema.optional(),
1424
+ parent_id: z.string().optional().nullable(),
1425
+ priority: z.number().optional(),
1426
+ result: jsonSchema.optional().nullable(),
1427
+ result_text: z.string().optional().nullable(),
1428
+ retry_count: z.number().optional(),
1429
+ scheduled_at: z.string().optional().nullable(),
1430
+ started_at: z.string().optional().nullable(),
1431
+ status: publicTaskStatusSchema.optional(),
1432
+ tags: z.array(z.string()).optional(),
1433
+ title: z.string(),
1434
+ updated_at: z.string().optional(),
1435
+ user_id: z.string(),
1436
+ });
1437
+ export const publicTasksUpdateSchema = z.object({
1438
+ code: z.string().optional().nullable(),
1439
+ code_type: publicTaskCodeTypeSchema.optional().nullable(),
1440
+ completed_at: z.string().optional().nullable(),
1441
+ context_id: z.string().optional().nullable(),
1442
+ context_type: z.string().optional().nullable(),
1443
+ created_at: z.string().optional(),
1444
+ description: z.string().optional().nullable(),
1445
+ error: z.string().optional().nullable(),
1446
+ executor_id: z.string().optional().nullable(),
1447
+ executor_type: z.string().optional().nullable(),
1448
+ id: z.string().optional(),
1449
+ max_retries: z.number().optional(),
1450
+ meta: jsonSchema.optional(),
1451
+ parent_id: z.string().optional().nullable(),
1452
+ priority: z.number().optional(),
1453
+ result: jsonSchema.optional().nullable(),
1454
+ result_text: z.string().optional().nullable(),
1455
+ retry_count: z.number().optional(),
1456
+ scheduled_at: z.string().optional().nullable(),
1457
+ started_at: z.string().optional().nullable(),
1458
+ status: publicTaskStatusSchema.optional(),
1459
+ tags: z.array(z.string()).optional(),
1460
+ title: z.string().optional(),
1461
+ updated_at: z.string().optional(),
1462
+ user_id: z.string().optional(),
1463
+ });
1464
+ export const publicTasksRelationshipsSchema = z.tuple([
1465
+ z.object({
1466
+ foreignKeyName: z.literal("tasks_parent_id_fkey"),
1467
+ columns: z.tuple([z.literal("parent_id")]),
1468
+ isOneToOne: z.literal(false),
1469
+ referencedRelation: z.literal("tasks"),
1470
+ referencedColumns: z.tuple([z.literal("id")]),
1471
+ }),
1472
+ ]);
1473
+ export const publicTrafficLogsRowSchema = z.object({
1474
+ client_ip: z.string().nullable(),
1475
+ created_at: z.string().nullable(),
1476
+ error: z.string().nullable(),
1477
+ host: z.string().nullable(),
1478
+ id: z.string(),
1479
+ method: z.string().nullable(),
1480
+ path: z.string().nullable(),
1481
+ request_headers: jsonSchema.nullable(),
1482
+ response_headers: jsonSchema.nullable(),
1483
+ scheme: z.string().nullable(),
1484
+ started_at: z.string().nullable(),
1485
+ status_code: z.number().nullable(),
1486
+ url: z.string().nullable(),
1487
+ user_id: z.string().nullable(),
1488
+ worker_id: z.string().nullable(),
1489
+ });
1490
+ export const publicTrafficLogsInsertSchema = z.object({
1491
+ client_ip: z.string().optional().nullable(),
1492
+ created_at: z.string().optional().nullable(),
1493
+ error: z.string().optional().nullable(),
1494
+ host: z.string().optional().nullable(),
1495
+ id: z.string().optional(),
1496
+ method: z.string().optional().nullable(),
1497
+ path: z.string().optional().nullable(),
1498
+ request_headers: jsonSchema.optional().nullable(),
1499
+ response_headers: jsonSchema.optional().nullable(),
1500
+ scheme: z.string().optional().nullable(),
1501
+ started_at: z.string().optional().nullable(),
1502
+ status_code: z.number().optional().nullable(),
1503
+ url: z.string().optional().nullable(),
1504
+ user_id: z.string().optional().nullable(),
1505
+ worker_id: z.string().optional().nullable(),
1506
+ });
1507
+ export const publicTrafficLogsUpdateSchema = z.object({
1508
+ client_ip: z.string().optional().nullable(),
1509
+ created_at: z.string().optional().nullable(),
1510
+ error: z.string().optional().nullable(),
1511
+ host: z.string().optional().nullable(),
1512
+ id: z.string().optional(),
1513
+ method: z.string().optional().nullable(),
1514
+ path: z.string().optional().nullable(),
1515
+ request_headers: jsonSchema.optional().nullable(),
1516
+ response_headers: jsonSchema.optional().nullable(),
1517
+ scheme: z.string().optional().nullable(),
1518
+ started_at: z.string().optional().nullable(),
1519
+ status_code: z.number().optional().nullable(),
1520
+ url: z.string().optional().nullable(),
1521
+ user_id: z.string().optional().nullable(),
1522
+ worker_id: z.string().optional().nullable(),
1523
+ });
1431
1524
  export const publicUserLogsRowSchema = z.object({
1432
1525
  content: z.string().nullable(),
1433
1526
  created_at: z.string().nullable(),
@@ -1536,45 +1629,6 @@ export const publicUserRolesUpdateSchema = z.object({
1536
1629
  role: publicAppRoleSchema.optional(),
1537
1630
  user_id: z.string().optional(),
1538
1631
  });
1539
- export const publicWorkerTasksRowSchema = z.object({
1540
- created_at: z.string(),
1541
- error: z.string().nullable(),
1542
- id: z.string(),
1543
- payload: jsonSchema,
1544
- result: jsonSchema.nullable(),
1545
- session_id: z.string().nullable(),
1546
- status: z.string().nullable(),
1547
- type: z.string(),
1548
- updated_at: z.string(),
1549
- user_id: z.string().nullable(),
1550
- worker_id: z.string().nullable(),
1551
- });
1552
- export const publicWorkerTasksInsertSchema = z.object({
1553
- created_at: z.string().optional(),
1554
- error: z.string().optional().nullable(),
1555
- id: z.string().optional(),
1556
- payload: jsonSchema,
1557
- result: jsonSchema.optional().nullable(),
1558
- session_id: z.string().optional().nullable(),
1559
- status: z.string().optional().nullable(),
1560
- type: z.string(),
1561
- updated_at: z.string().optional(),
1562
- user_id: z.string().optional().nullable(),
1563
- worker_id: z.string().optional().nullable(),
1564
- });
1565
- export const publicWorkerTasksUpdateSchema = z.object({
1566
- created_at: z.string().optional(),
1567
- error: z.string().optional().nullable(),
1568
- id: z.string().optional(),
1569
- payload: jsonSchema.optional(),
1570
- result: jsonSchema.optional().nullable(),
1571
- session_id: z.string().optional().nullable(),
1572
- status: z.string().optional().nullable(),
1573
- type: z.string().optional(),
1574
- updated_at: z.string().optional(),
1575
- user_id: z.string().optional().nullable(),
1576
- worker_id: z.string().optional().nullable(),
1577
- });
1578
1632
  export const publicSysConfigGetArgsSchema = z.object({
1579
1633
  p_key: z.string(),
1580
1634
  });
@@ -1618,9 +1672,9 @@ export const publicAdkArtifactListKeysArgsSchema = z.object({
1618
1672
  p_session_id: z.string(),
1619
1673
  p_user_id: z.string(),
1620
1674
  });
1621
- export const publicAdkArtifactListKeysReturnsSchema = z.array(z.object({
1622
- filename: z.string(),
1623
- }));
1675
+ export const publicAdkArtifactKeyRecordSchema = z.object({
1676
+ filename: z.string().nullable(),
1677
+ });
1624
1678
  export const publicAdkArtifactListVersionsMetaArgsSchema = z.object({
1625
1679
  p_app_name: z.string(),
1626
1680
  p_filename: z.string(),
@@ -1809,20 +1863,6 @@ export const publicAuditArtifactListReturnsSchema = z.array(z.object({
1809
1863
  user_id: z.string(),
1810
1864
  version: z.number(),
1811
1865
  }));
1812
- export const publicAuditAssetListArgsSchema = z.object({
1813
- p_project_id: z.string(),
1814
- p_type: z.string().optional(),
1815
- });
1816
- export const publicAuditAssetListReturnsSchema = z.array(z.object({
1817
- content: z.string(),
1818
- created_at: z.string(),
1819
- id: z.string(),
1820
- metadata: jsonSchema.nullable(),
1821
- project_id: z.string(),
1822
- status: z.string().nullable(),
1823
- type: z.string(),
1824
- updated_at: z.string(),
1825
- }));
1826
1866
  export const publicAuditAssetListCursorArgsSchema = z.object({
1827
1867
  p_cursor: z.string().optional(),
1828
1868
  p_cursor_id: z.string().optional(),
@@ -1840,23 +1880,6 @@ export const publicAuditAssetListCursorReturnsSchema = z.array(z.object({
1840
1880
  type: z.string(),
1841
1881
  updated_at: z.string(),
1842
1882
  }));
1843
- export const publicAuditFindingListArgsSchema = z.object({
1844
- p_project_id: z.string(),
1845
- });
1846
- export const publicAuditFindingListReturnsSchema = z.array(z.object({
1847
- ai_analysis: z.string().nullable(),
1848
- created_at: z.string(),
1849
- description: z.string().nullable(),
1850
- id: z.string(),
1851
- project_id: z.string(),
1852
- proof_poc: z.string().nullable(),
1853
- remediation: z.string().nullable(),
1854
- severity: publicAuditFindingSeveritySchema.nullable(),
1855
- status: z.string().nullable(),
1856
- task_id: z.string().nullable(),
1857
- title: z.string(),
1858
- updated_at: z.string(),
1859
- }));
1860
1883
  export const publicAuditFindingListCursorArgsSchema = z.object({
1861
1884
  p_cursor: z.string().optional(),
1862
1885
  p_cursor_id: z.string().optional(),
@@ -1894,12 +1917,12 @@ export const publicAuditProjectCountReturnsSchema = z.number();
1894
1917
  export const publicAuditProjectDashboardStatsArgsSchema = z.object({
1895
1918
  p_project_id: z.string(),
1896
1919
  });
1897
- export const publicAuditProjectDashboardStatsReturnsSchema = z.array(z.object({
1898
- asset_count: z.number(),
1899
- finding_count: z.number(),
1900
- high_risk_count: z.number(),
1901
- task_count: z.number(),
1902
- }));
1920
+ export const publicAuditProjectStatsRecordSchema = z.object({
1921
+ asset_count: z.number().nullable(),
1922
+ finding_count: z.number().nullable(),
1923
+ high_risk_count: z.number().nullable(),
1924
+ task_count: z.number().nullable(),
1925
+ });
1903
1926
  export const publicAuditProjectDeleteArgsSchema = z.object({
1904
1927
  p_id: z.string(),
1905
1928
  });
@@ -1907,53 +1930,41 @@ export const publicAuditProjectDeleteReturnsSchema = z.undefined();
1907
1930
  export const publicAuditProjectGetArgsSchema = z.object({
1908
1931
  p_id: z.string(),
1909
1932
  });
1910
- export const publicAuditProjectGetReturnsSchema = z.array(z.object({
1911
- config: jsonSchema.nullable(),
1912
- created_at: z.string(),
1913
- id: z.string(),
1914
- name: z.string(),
1915
- repo_branch: z.string().nullable(),
1916
- repo_url: z.string().nullable(),
1933
+ export const publicAuditProjectRecordSchema = z.object({
1934
+ id: z.string().nullable(),
1935
+ created_at: z.string().nullable(),
1936
+ updated_at: z.string().nullable(),
1937
+ user_id: z.string().nullable(),
1938
+ name: z.string().nullable(),
1917
1939
  target: z.string().nullable(),
1918
- updated_at: z.string(),
1919
- user_id: z.string(),
1940
+ repo_url: z.string().nullable(),
1941
+ repo_branch: z.string().nullable(),
1942
+ config: jsonSchema.nullable(),
1920
1943
  worker_id: z.string().nullable(),
1921
- }));
1944
+ });
1922
1945
  export const publicAuditProjectListArgsSchema = z.object({
1923
1946
  p_kw: z.string().optional(),
1924
1947
  p_page_no: z.number().optional(),
1925
1948
  p_page_size: z.number().optional(),
1926
1949
  });
1927
- export const publicAuditProjectListReturnsSchema = z.array(z.object({
1928
- config: jsonSchema.nullable(),
1929
- created_at: z.string(),
1930
- id: z.string(),
1931
- name: z.string(),
1932
- repo_branch: z.string().nullable(),
1933
- repo_url: z.string().nullable(),
1934
- target: z.string().nullable(),
1935
- updated_at: z.string(),
1936
- user_id: z.string(),
1937
- worker_id: z.string().nullable(),
1938
- }));
1950
+ export const publicAuditProjectListReturnsSchema = z.array(publicAuditProjectRecordSchema);
1939
1951
  export const publicAuditProjectListCursorArgsSchema = z.object({
1940
1952
  p_cursor: z.string().optional(),
1941
1953
  p_cursor_id: z.string().optional(),
1942
1954
  p_kw: z.string().optional(),
1943
1955
  p_limit: z.number().optional(),
1944
1956
  });
1945
- export const publicAuditProjectListCursorReturnsSchema = z.array(z.object({
1946
- config: jsonSchema.nullable(),
1947
- created_at: z.string(),
1948
- id: z.string(),
1949
- name: z.string(),
1950
- repo_branch: z.string().nullable(),
1951
- repo_url: z.string().nullable(),
1952
- target: z.string().nullable(),
1953
- updated_at: z.string(),
1954
- user_id: z.string(),
1955
- worker_id: z.string().nullable(),
1956
- }));
1957
+ export const publicAuditProjectListCursorReturnsSchema = z.array(publicAuditProjectRecordSchema);
1958
+ export const publicAuditProjectUpsertArgsSchema = z.object({
1959
+ p_config: jsonSchema.optional(),
1960
+ p_id: z.string(),
1961
+ p_name: z.string(),
1962
+ p_repo_branch: z.string().optional(),
1963
+ p_repo_url: z.string().optional(),
1964
+ p_target: z.string().optional(),
1965
+ p_worker_id: z.string().optional(),
1966
+ });
1967
+ export const publicAuditProjectUpsertReturnsSchema = z.string();
1957
1968
  export const publicAuditSkillListArgsSchema = z.object({
1958
1969
  p_project_id: z.string(),
1959
1970
  });
@@ -1969,64 +1980,9 @@ export const publicAuditSkillListReturnsSchema = z.array(z.object({
1969
1980
  updated_at: z.string(),
1970
1981
  version: z.string().nullable(),
1971
1982
  }));
1972
- export const publicAuditTaskGetArgsSchema = z.object({
1973
- p_id: z.string(),
1974
- });
1975
- export const publicAuditTaskGetReturnsSchema = z.array(z.object({
1976
- created_at: z.string(),
1977
- id: z.string(),
1978
- instructions: z.string().nullable(),
1979
- logs_url: z.string().nullable(),
1980
- project_id: z.string(),
1981
- result_summary: z.string().nullable(),
1982
- sandbox_id: z.string().nullable(),
1983
- skill_id: z.string().nullable(),
1984
- status: z.string().nullable(),
1985
- updated_at: z.string(),
1986
- user_id: z.string().nullable(),
1987
- }));
1988
- export const publicAuditTaskListArgsSchema = z.object({
1989
- p_project_id: z.string(),
1990
- });
1991
- export const publicAuditTaskListReturnsSchema = z.array(z.object({
1992
- created_at: z.string(),
1993
- id: z.string(),
1994
- instructions: z.string().nullable(),
1995
- logs_url: z.string().nullable(),
1996
- project_id: z.string(),
1997
- result_summary: z.string().nullable(),
1998
- sandbox_id: z.string().nullable(),
1999
- skill_id: z.string().nullable(),
2000
- status: z.string().nullable(),
2001
- updated_at: z.string(),
2002
- user_id: z.string().nullable(),
2003
- }));
2004
- export const publicAuditTaskUpsertArgsSchema = z.object({
2005
- p_id: z.string(),
2006
- p_instructions: z.string(),
2007
- p_logs_url: z.string().optional(),
2008
- p_project_id: z.string(),
2009
- p_result_summary: z.string().optional(),
2010
- p_sandbox_id: z.string().optional(),
2011
- p_skill_id: z.string().optional(),
2012
- p_status: z.string().optional(),
2013
- });
2014
- export const publicAuditTaskUpsertReturnsSchema = z.array(z.object({
2015
- created_at: z.string(),
2016
- id: z.string(),
2017
- instructions: z.string().nullable(),
2018
- logs_url: z.string().nullable(),
2019
- project_id: z.string(),
2020
- result_summary: z.string().nullable(),
2021
- sandbox_id: z.string().nullable(),
2022
- skill_id: z.string().nullable(),
2023
- status: z.string().nullable(),
2024
- updated_at: z.string(),
2025
- user_id: z.string().nullable(),
2026
- }));
2027
- export const publicAuthRoleArgsSchema = z.never();
2028
- export const publicAuthRoleReturnsSchema = z.string();
2029
- export const publicBrowserDeleteArgsSchema = z.object({
1983
+ export const publicAuthRoleArgsSchema = z.never();
1984
+ export const publicAuthRoleReturnsSchema = z.string();
1985
+ export const publicBrowserDeleteArgsSchema = z.object({
2030
1986
  p_id: z.string(),
2031
1987
  });
2032
1988
  export const publicBrowserDeleteReturnsSchema = z.undefined();
@@ -2038,25 +1994,6 @@ export const publicBrowserEnsureAssociationReturnsSchema = jsonSchema;
2038
1994
  export const publicBrowserGetArgsSchema = z.object({
2039
1995
  p_id: z.string(),
2040
1996
  });
2041
- export const publicBrowserGetReturnsSchema = z.array(z.object({
2042
- cdpUrl: z.string().nullable(),
2043
- config: jsonSchema.nullable(),
2044
- created_at: z.string(),
2045
- description: z.string().nullable(),
2046
- id: z.string(),
2047
- profile_id: z.string().nullable(),
2048
- provider: z.string().nullable(),
2049
- provider_config: jsonSchema.nullable(),
2050
- sandbox_id: z.string().nullable(),
2051
- title: z.string().nullable(),
2052
- updated_at: z.string().nullable(),
2053
- user_id: z.string().nullable(),
2054
- }));
2055
- export const publicBrowserListArgsSchema = z.object({
2056
- p_kw: z.string().optional(),
2057
- p_page_no: z.number().optional(),
2058
- p_page_size: z.number().optional(),
2059
- });
2060
1997
  export const publicBrowserRecordSchema = z.object({
2061
1998
  id: z.string().nullable(),
2062
1999
  created_at: z.string().nullable(),
@@ -2073,6 +2010,12 @@ export const publicBrowserRecordSchema = z.object({
2073
2010
  worker_name: z.string().nullable(),
2074
2011
  is_running: z.boolean().nullable(),
2075
2012
  });
2013
+ export const publicBrowserListArgsSchema = z.object({
2014
+ p_kw: z.string().optional(),
2015
+ p_page_no: z.number().optional(),
2016
+ p_page_size: z.number().optional(),
2017
+ });
2018
+ export const publicBrowserListReturnsSchema = z.array(publicBrowserRecordSchema);
2076
2019
  export const publicBrowserUpdateStateArgsSchema = z.object({
2077
2020
  p_browser_id: z.string(),
2078
2021
  p_state: jsonSchema,
@@ -2087,20 +2030,7 @@ export const publicBrowserUpsertArgsSchema = z.object({
2087
2030
  p_provider_config: jsonSchema.optional(),
2088
2031
  p_title: z.string().optional(),
2089
2032
  });
2090
- export const publicBrowserUpsertReturnsSchema = z.array(z.object({
2091
- cdpUrl: z.string().nullable(),
2092
- config: jsonSchema.nullable(),
2093
- created_at: z.string(),
2094
- description: z.string().nullable(),
2095
- id: z.string(),
2096
- profile_id: z.string().nullable(),
2097
- provider: z.string().nullable(),
2098
- provider_config: jsonSchema.nullable(),
2099
- sandbox_id: z.string().nullable(),
2100
- title: z.string().nullable(),
2101
- updated_at: z.string().nullable(),
2102
- user_id: z.string().nullable(),
2103
- }));
2033
+ export const publicBrowserUpsertReturnsSchema = z.array(publicBrowserRecordSchema);
2104
2034
  export const publicCampaignDeleteArgsSchema = z.object({
2105
2035
  p_id: z.string(),
2106
2036
  });
@@ -2238,13 +2168,15 @@ export const publicChatUpsertReturnsSchema = z.object({
2238
2168
  user_id: z.string().nullable(),
2239
2169
  visibility: publicChatVisibilitySchema,
2240
2170
  });
2241
- export const publicCleanupTunnelAsyncArgsSchema = z.object({
2242
- p_worker_id: z.string(),
2171
+ export const publicCheckAccountRateLimitArgsSchema = z.object({
2172
+ p_account_id: z.string(),
2173
+ p_campaign_config: jsonSchema,
2243
2174
  });
2244
- export const publicCleanupTunnelAsyncReturnsSchema = z.number();
2245
- export const publicCloudAccountBindDeviceArgsSchema = z.object({
2246
- p_fingerprint: jsonSchema,
2247
- p_id: z.string(),
2175
+ export const publicCheckAccountRateLimitReturnsSchema = z.boolean();
2176
+ export const publicCloudAccountBulkCreateArgsSchema = z.object({
2177
+ p_account_names: z.array(z.string()),
2178
+ p_platform_name: z.string(),
2179
+ p_status: publicCloudAccountStatusSchema.optional(),
2248
2180
  });
2249
2181
  export const publicCloudAccountRecordSchema = z.object({
2250
2182
  id: z.string().nullable(),
@@ -2271,26 +2203,15 @@ export const publicCloudAccountRecordSchema = z.object({
2271
2203
  device_history: z.array(jsonSchema).nullable(),
2272
2204
  credentials: jsonSchema.nullable(),
2273
2205
  });
2274
- export const publicCloudAccountBulkCreateArgsSchema = z.object({
2275
- p_account_names: z.array(z.string()),
2276
- p_platform_name: z.string(),
2277
- p_status: publicCloudAccountStatusSchema.optional(),
2278
- });
2279
- export const publicCloudAccountBulkCreateReturnsSchema = z.array(publicCloudAccountRecordSchema);
2280
- export const publicCloudAccountCheckExpiredTokensArgsSchema = z.never();
2281
- export const publicCloudAccountCheckExpiredTokensReturnsSchema = z.array(z.object({
2282
- total_checked: z.number(),
2283
- total_expired: z.number(),
2284
- }));
2285
2206
  export const publicCloudAccountDeleteArgsSchema = z.object({
2286
2207
  p_id: z.string(),
2287
2208
  });
2288
2209
  export const publicCloudAccountDeleteReturnsSchema = z.array(publicCloudAccountRecordSchema);
2289
2210
  export const publicCloudAccountDeviceDeleteVersionArgsSchema = z.object({
2290
- p_id: z.string(),
2291
- p_version_id: z.string(),
2211
+ p_account_id: z.string(),
2212
+ p_version: z.number(),
2292
2213
  });
2293
- export const publicCloudAccountDeviceDeleteVersionReturnsSchema = z.boolean();
2214
+ export const publicCloudAccountDeviceDeleteVersionReturnsSchema = z.undefined();
2294
2215
  export const publicCloudAccountDeviceRestoreArgsSchema = z.object({
2295
2216
  p_id: z.string(),
2296
2217
  p_version_id: z.string(),
@@ -2312,24 +2233,14 @@ export const publicCloudAccountMarkRefreshFailedArgsSchema = z.object({
2312
2233
  p_error: z.string(),
2313
2234
  p_id: z.string(),
2314
2235
  });
2315
- export const publicCloudAccountMarkRefreshFailedReturnsSchema = z.array(publicCloudAccountRecordSchema);
2236
+ export const publicCloudAccountMarkRefreshFailedReturnsSchema = z.undefined();
2316
2237
  export const publicCloudAccountRefreshTokenArgsSchema = z.object({
2317
2238
  p_access_token: z.string(),
2318
- p_expires_in: z.unknown().optional(),
2239
+ p_expires_in: z.number().optional(),
2319
2240
  p_id: z.string(),
2320
- p_refresh_expires_in: z.unknown().optional(),
2321
2241
  p_refresh_token: z.string().optional(),
2322
2242
  });
2323
- export const publicCloudAccountRefreshTokenReturnsSchema = z.array(publicCloudAccountRecordSchema);
2324
- export const publicCloudAccountSessionLoadArgsSchema = z.object({
2325
- p_id: z.string(),
2326
- });
2327
- export const publicCloudAccountSessionLoadReturnsSchema = z.string();
2328
- export const publicCloudAccountSessionSetArgsSchema = z.object({
2329
- p_id: z.string(),
2330
- p_session_data: jsonSchema,
2331
- });
2332
- export const publicCloudAccountSessionSetReturnsSchema = z.undefined();
2243
+ export const publicCloudAccountRefreshTokenReturnsSchema = z.undefined();
2333
2244
  export const publicCloudAccountSessionStoreArgsSchema = z.object({
2334
2245
  p_id: z.string(),
2335
2246
  p_session: z.string(),
@@ -2385,20 +2296,33 @@ export const publicComputeNodeRecordSchema = z.object({
2385
2296
  export const publicComputeNodeGetSecretArgsSchema = z.object({
2386
2297
  target_id: z.string(),
2387
2298
  });
2388
- export const publicComputeNodeGetSecretReturnsSchema = z.array(z.object({
2389
- auth_secret: z.string(),
2390
- host: z.string(),
2391
- port: z.number(),
2392
- username: z.string(),
2393
- }));
2299
+ export const publicComputeNodeSecretRecordSchema = z.object({
2300
+ host: z.string().nullable(),
2301
+ port: z.number().nullable(),
2302
+ username: z.string().nullable(),
2303
+ auth_secret: z.string().nullable(),
2304
+ });
2394
2305
  export const publicComputeNodeListArgsSchema = z.object({
2395
2306
  p_kw: z.string().optional(),
2396
2307
  p_page_no: z.number().optional(),
2397
2308
  p_page_size: z.number().optional(),
2398
- p_provider: z.string().optional(),
2399
- p_user_id: z.string().optional(),
2400
2309
  });
2401
- export const publicComputeNodeListReturnsSchema = z.array(publicComputeNodeRecordSchema);
2310
+ export const publicComputeNodeListRecordSchema = z.object({
2311
+ id: z.string().nullable(),
2312
+ user_id: z.string().nullable(),
2313
+ name: z.string().nullable(),
2314
+ provider: z.string().nullable(),
2315
+ host: z.string().nullable(),
2316
+ port: z.number().nullable(),
2317
+ username: z.string().nullable(),
2318
+ auth_secret: z.string().nullable(),
2319
+ status: publicComputeNodeStatusSchema.nullable(),
2320
+ worker_count: z.number().nullable(),
2321
+ updated_at: z.string().nullable(),
2322
+ is_public: z.boolean().nullable(),
2323
+ created_at: z.string().nullable(),
2324
+ full_count: z.number().nullable(),
2325
+ });
2402
2326
  export const publicComputeNodeUpsertArgsSchema = z.object({
2403
2327
  p_auth_secret: z.string().optional(),
2404
2328
  p_host: z.string(),
@@ -2409,6 +2333,10 @@ export const publicComputeNodeUpsertArgsSchema = z.object({
2409
2333
  p_username: z.string().optional(),
2410
2334
  });
2411
2335
  export const publicComputeNodeUpsertReturnsSchema = z.array(publicComputeNodeRecordSchema);
2336
+ export const publicComputeServerPublicUrlArgsSchema = z.object({
2337
+ p_server_id: z.string(),
2338
+ });
2339
+ export const publicComputeServerPublicUrlReturnsSchema = z.string();
2412
2340
  export const publicContactAddTagsArgsSchema = z.object({
2413
2341
  p_ids: z.array(z.string()),
2414
2342
  p_tags: z.array(z.string()),
@@ -2456,6 +2384,13 @@ export const publicContactListCursorArgsSchema = z.object({
2456
2384
  p_tags: z.array(z.string()).optional(),
2457
2385
  });
2458
2386
  export const publicContactListCursorReturnsSchema = z.array(publicContactRecordSchema);
2387
+ export const publicContactListTagsArgsSchema = z.never();
2388
+ export const publicContactListTagsReturnsSchema = z.array(z.string());
2389
+ export const publicContactRemoveTagsArgsSchema = z.object({
2390
+ p_ids: z.array(z.string()),
2391
+ p_tags: z.array(z.string()),
2392
+ });
2393
+ export const publicContactRemoveTagsReturnsSchema = z.number();
2459
2394
  export const publicContactUpsertArgsSchema = z.object({
2460
2395
  p_email: z.string().optional(),
2461
2396
  p_id: z.string().optional(),
@@ -2473,13 +2408,13 @@ export const publicContactUpsertReturnsSchema = z.array(publicContactRecordSchem
2473
2408
  export const publicCreateNotificationArgsSchema = z.object({
2474
2409
  p_action_payload: jsonSchema.optional(),
2475
2410
  p_action_type: z.string().optional(),
2476
- p_expires_in: z.unknown().optional(),
2477
- p_message: z.string().optional(),
2411
+ p_expires_in: z.string().optional(),
2412
+ p_message: z.string(),
2413
+ p_notification_type: z.string().optional(),
2478
2414
  p_priority: z.string().optional(),
2479
2415
  p_source_id: z.string().optional(),
2480
2416
  p_source_type: z.string().optional(),
2481
2417
  p_title: z.string(),
2482
- p_type: z.string().optional(),
2483
2418
  p_user_id: z.string(),
2484
2419
  });
2485
2420
  export const publicCreateNotificationReturnsSchema = z.string();
@@ -2506,8 +2441,6 @@ export const publicGetGithubAppPublicInfoArgsSchema = z.never();
2506
2441
  export const publicGetGithubAppPublicInfoReturnsSchema = jsonSchema;
2507
2442
  export const publicGetJwtRoleArgsSchema = z.never();
2508
2443
  export const publicGetJwtRoleReturnsSchema = z.string();
2509
- export const publicGetLintTestV1ArgsSchema = z.never();
2510
- export const publicGetLintTestV1ReturnsSchema = z.string();
2511
2444
  export const publicGetUserIdFromTokenArgsSchema = z.object({
2512
2445
  p_token: z.string(),
2513
2446
  });
@@ -2538,26 +2471,6 @@ export const publicGomtmModelGetReturnsSchema = z.object({
2538
2471
  updated_at: z.string(),
2539
2472
  user_id: z.string(),
2540
2473
  });
2541
- export const publicGomtmModelListArgsSchema = z.object({
2542
- p_is_active: z.boolean().optional(),
2543
- p_limit: z.number().optional(),
2544
- p_offset: z.number().optional(),
2545
- p_provider: z.string().optional(),
2546
- });
2547
- export const publicGomtmModelListReturnsSchema = z.array(z.object({
2548
- api_base: z.string(),
2549
- api_key: z.string(),
2550
- config: jsonSchema,
2551
- created_at: z.string(),
2552
- id: z.string(),
2553
- is_active: z.boolean(),
2554
- linked_account_id: z.string(),
2555
- model: z.string(),
2556
- name: z.string(),
2557
- provider: z.string(),
2558
- updated_at: z.string(),
2559
- user_id: z.string(),
2560
- }));
2561
2474
  export const publicGomtmModelListCursorArgsSchema = z.object({
2562
2475
  p_cursor_id: z.string().optional(),
2563
2476
  p_is_active: z.boolean().optional(),
@@ -2565,13 +2478,13 @@ export const publicGomtmModelListCursorArgsSchema = z.object({
2565
2478
  p_provider: z.string().optional(),
2566
2479
  });
2567
2480
  export const publicGomtmModelListCursorReturnsSchema = z.array(z.object({
2568
- api_base: z.string(),
2569
- api_key: z.string(),
2570
- config: jsonSchema,
2481
+ api_base: z.string().nullable(),
2482
+ api_key: z.string().nullable(),
2483
+ config: jsonSchema.nullable(),
2571
2484
  created_at: z.string(),
2572
2485
  id: z.string(),
2573
2486
  is_active: z.boolean(),
2574
- linked_account_id: z.string(),
2487
+ linked_account_id: z.string().nullable(),
2575
2488
  model: z.string(),
2576
2489
  name: z.string(),
2577
2490
  provider: z.string(),
@@ -2603,6 +2516,30 @@ export const publicGomtmModelUpsertReturnsSchema = z.object({
2603
2516
  updated_at: z.string(),
2604
2517
  user_id: z.string(),
2605
2518
  });
2519
+ export const publicHandleHttpResponseHealthArgsSchema = z.object({
2520
+ p_body: jsonSchema,
2521
+ p_request_id: z.number(),
2522
+ p_success: z.boolean(),
2523
+ });
2524
+ export const publicHandleHttpResponseHealthReturnsSchema = z.boolean();
2525
+ export const publicHandleHttpResponseOutreachArgsSchema = z.object({
2526
+ p_body: jsonSchema,
2527
+ p_request_id: z.number(),
2528
+ p_success: z.boolean(),
2529
+ });
2530
+ export const publicHandleHttpResponseOutreachReturnsSchema = z.boolean();
2531
+ export const publicHandleHttpResponseTaskArgsSchema = z.object({
2532
+ p_body: jsonSchema,
2533
+ p_request_id: z.number(),
2534
+ p_success: z.boolean(),
2535
+ });
2536
+ export const publicHandleHttpResponseTaskReturnsSchema = z.boolean();
2537
+ export const publicHandleHttpResponseTelegramArgsSchema = z.object({
2538
+ p_body: jsonSchema,
2539
+ p_request_id: z.number(),
2540
+ p_success: z.boolean(),
2541
+ });
2542
+ export const publicHandleHttpResponseTelegramReturnsSchema = z.boolean();
2606
2543
  export const publicHandleJobOutreachProcessArgsSchema = z.object({
2607
2544
  p_payload: jsonSchema.optional(),
2608
2545
  });
@@ -2615,22 +2552,17 @@ export const publicHandleJobTelegramFetchSmsArgsSchema = z.object({
2615
2552
  p_payload: jsonSchema,
2616
2553
  });
2617
2554
  export const publicHandleJobTelegramFetchSmsReturnsSchema = z.undefined();
2618
- export const publicHandleJobTunnelCheckResponsesArgsSchema = z.object({
2619
- p_payload: jsonSchema,
2620
- });
2621
- export const publicHandleJobTunnelCheckResponsesReturnsSchema = z.undefined();
2622
- export const publicHandleJobTunnelSetupArgsSchema = z.object({
2623
- p_payload: jsonSchema,
2624
- });
2625
- export const publicHandleJobTunnelSetupReturnsSchema = z.undefined();
2626
- export const publicHandleJobWorkerCleanupArgsSchema = z.object({
2627
- p_payload: jsonSchema,
2555
+ export const publicHasPermissionArgsSchema = z.object({
2556
+ p_action: z.string(),
2557
+ p_resource: z.string(),
2628
2558
  });
2629
- export const publicHandleJobWorkerCleanupReturnsSchema = z.undefined();
2630
- export const publicInitTunnelAsyncArgsSchema = z.object({
2631
- p_instance_id: z.string(),
2559
+ export const publicHasPermissionReturnsSchema = z.boolean();
2560
+ export const publicInstallScriptArgsSchema = z.object({
2561
+ p_instance_id: z.string().optional(),
2562
+ p_token: z.string().optional(),
2563
+ p_version: z.string().optional(),
2632
2564
  });
2633
- export const publicInitTunnelAsyncReturnsSchema = z.number();
2565
+ export const publicInstallScriptReturnsSchema = z.string();
2634
2566
  export const publicInstanceTagAddArgsSchema = z.object({
2635
2567
  p_instance_id: z.string(),
2636
2568
  p_tag_id: z.string(),
@@ -2658,35 +2590,27 @@ export const publicInstanceTagsSetArgsSchema = z.object({
2658
2590
  p_tag_ids: z.array(z.string()),
2659
2591
  });
2660
2592
  export const publicInstanceTagsSetReturnsSchema = z.array(publicTagRecordSchema);
2661
- export const publicIsAdminArgsSchema = z.never();
2662
- export const publicIsAdminReturnsSchema = z.boolean();
2663
- export const publicJobQueueGetStatsArgsSchema = z.never();
2664
- export const publicJobQueueGetStatsReturnsSchema = z.array(z.object({
2665
- dlq_count: z.number(),
2666
- msg_count: z.number(),
2667
- queue_name: z.string(),
2668
- }));
2669
2593
  export const publicJobQueueListDlqArgsSchema = z.object({
2670
2594
  p_limit: z.number().optional(),
2671
2595
  p_offset: z.number().optional(),
2672
2596
  p_queue: z.string(),
2673
2597
  });
2674
- export const publicJobQueueListDlqReturnsSchema = z.array(z.object({
2675
- enqueued_at: z.string(),
2676
- message: jsonSchema,
2677
- msg_id: z.number(),
2678
- read_ct: z.number(),
2679
- }));
2598
+ export const publicJobQueueDlqRecordSchema = z.object({
2599
+ msg_id: z.number().nullable(),
2600
+ read_ct: z.number().nullable(),
2601
+ enqueued_at: z.string().nullable(),
2602
+ message: jsonSchema.nullable(),
2603
+ });
2680
2604
  export const publicJobQueuePurgeDlqArgsSchema = z.object({
2681
2605
  p_msg_ids: z.array(z.number()),
2682
2606
  p_queue: z.string(),
2683
2607
  });
2684
- export const publicJobQueuePurgeDlqReturnsSchema = z.undefined();
2608
+ export const publicJobQueuePurgeDlqReturnsSchema = z.boolean();
2685
2609
  export const publicJobQueueRetryDlqArgsSchema = z.object({
2686
2610
  p_msg_ids: z.array(z.number()),
2687
2611
  p_queue: z.string(),
2688
2612
  });
2689
- export const publicJobQueueRetryDlqReturnsSchema = z.undefined();
2613
+ export const publicJobQueueRetryDlqReturnsSchema = z.boolean();
2690
2614
  export const publicJobSubmitArgsSchema = z.object({
2691
2615
  p_delay_seconds: z.number().optional(),
2692
2616
  p_payload: jsonSchema,
@@ -2694,17 +2618,6 @@ export const publicJobSubmitArgsSchema = z.object({
2694
2618
  p_type: z.string(),
2695
2619
  });
2696
2620
  export const publicJobSubmitReturnsSchema = jsonSchema;
2697
- export const publicLintTestErrorCodeArgsSchema = z.never();
2698
- export const publicLintTestErrorCodeReturnsSchema = z.undefined();
2699
- export const publicLintTestTableReturnArgsSchema = z.never();
2700
- export const publicLintTestTableReturnReturnsSchema = z.array(z.object({
2701
- id: z.number(),
2702
- name: z.string(),
2703
- }));
2704
- export const publicLogArgsSchema = z.object({
2705
- content: z.string(),
2706
- });
2707
- export const publicLogReturnsSchema = z.undefined();
2708
2621
  export const publicNotificationCompleteActionArgsSchema = z.object({
2709
2622
  p_id: z.string(),
2710
2623
  });
@@ -2756,6 +2669,7 @@ export const publicNotificationMarkReadArgsSchema = z.object({
2756
2669
  });
2757
2670
  export const publicNotificationMarkReadReturnsSchema = z.number();
2758
2671
  export const publicOutreachProcessPendingTasksArgsSchema = z.object({
2672
+ p_campaign_id: z.string().optional(),
2759
2673
  p_limit: z.number().optional(),
2760
2674
  });
2761
2675
  export const publicOutreachProcessPendingTasksReturnsSchema = z.number();
@@ -2792,15 +2706,15 @@ export const publicProxyDeleteReturnsSchema = z.boolean();
2792
2706
  export const publicProxyGetArgsSchema = z.object({
2793
2707
  p_id: z.string(),
2794
2708
  });
2795
- export const publicProxyGetReturnsSchema = z.object({
2796
- created_at: z.string(),
2797
- description: z.string().nullable(),
2798
- enabled: z.boolean(),
2799
- id: z.string(),
2709
+ export const publicProxyRecordSchema = z.object({
2710
+ id: z.string().nullable(),
2711
+ created_at: z.string().nullable(),
2712
+ updated_at: z.string().nullable(),
2800
2713
  name: z.string().nullable(),
2714
+ description: z.string().nullable(),
2715
+ url: z.string().nullable(),
2801
2716
  type: z.string().nullable(),
2802
- updated_at: z.string().nullable(),
2803
- url: z.string(),
2717
+ enabled: z.boolean().nullable(),
2804
2718
  user_id: z.string().nullable(),
2805
2719
  });
2806
2720
  export const publicProxyListArgsSchema = z.object({
@@ -2808,17 +2722,7 @@ export const publicProxyListArgsSchema = z.object({
2808
2722
  p_page_no: z.number().optional(),
2809
2723
  p_page_size: z.number().optional(),
2810
2724
  });
2811
- export const publicProxyListReturnsSchema = z.array(z.object({
2812
- created_at: z.string(),
2813
- description: z.string().nullable(),
2814
- enabled: z.boolean(),
2815
- id: z.string(),
2816
- name: z.string().nullable(),
2817
- type: z.string().nullable(),
2818
- updated_at: z.string().nullable(),
2819
- url: z.string(),
2820
- user_id: z.string().nullable(),
2821
- }));
2725
+ export const publicProxyListReturnsSchema = z.array(publicProxyRecordSchema);
2822
2726
  export const publicProxyUpsertArgsSchema = z.object({
2823
2727
  p_description: z.string().optional(),
2824
2728
  p_enabled: z.boolean().optional(),
@@ -2827,17 +2731,7 @@ export const publicProxyUpsertArgsSchema = z.object({
2827
2731
  p_type: z.string(),
2828
2732
  p_url: z.string(),
2829
2733
  });
2830
- export const publicProxyUpsertReturnsSchema = z.array(z.object({
2831
- created_at: z.string(),
2832
- description: z.string().nullable(),
2833
- enabled: z.boolean(),
2834
- id: z.string(),
2835
- name: z.string().nullable(),
2836
- type: z.string().nullable(),
2837
- updated_at: z.string().nullable(),
2838
- url: z.string(),
2839
- user_id: z.string().nullable(),
2840
- }));
2734
+ export const publicProxyUpsertReturnsSchema = z.array(publicProxyRecordSchema);
2841
2735
  export const publicResourceDeleteArgsSchema = z.object({
2842
2736
  p_resource_id: z.string(),
2843
2737
  });
@@ -2853,24 +2747,24 @@ export const publicResourceListArgsSchema = z.object({
2853
2747
  p_slug: z.string().optional(),
2854
2748
  p_type: z.string().optional(),
2855
2749
  });
2856
- export const publicResourceListReturnsSchema = z.array(z.object({
2857
- description: z.string(),
2858
- icon: z.string(),
2859
- id: z.string(),
2860
- target_id: z.string(),
2861
- title: z.string(),
2862
- type: z.string(),
2863
- updated_at: z.string(),
2864
- url: z.string(),
2865
- }));
2750
+ export const publicResourceListRecordSchema = z.object({
2751
+ id: z.string().nullable(),
2752
+ target_id: z.string().nullable(),
2753
+ title: z.string().nullable(),
2754
+ description: z.string().nullable(),
2755
+ icon: z.string().nullable(),
2756
+ type: z.string().nullable(),
2757
+ url: z.string().nullable(),
2758
+ updated_at: z.string().nullable(),
2759
+ });
2866
2760
  export const publicResourceUpsertArgsSchema = z.object({
2867
- content: jsonSchema,
2868
- description: z.string(),
2869
- key: z.string(),
2761
+ p_content: jsonSchema.optional(),
2762
+ p_description: z.string().optional(),
2870
2763
  p_id: z.string().optional(),
2871
- target_id: z.string().optional(),
2872
- title: z.string(),
2873
- type: z.string(),
2764
+ p_key: z.string().optional(),
2765
+ p_target_id: z.string().optional(),
2766
+ p_title: z.string().optional(),
2767
+ p_type: z.string().optional(),
2874
2768
  });
2875
2769
  export const publicResourceUpsertReturnsSchema = z.string();
2876
2770
  export const publicSandboxFindActiveArgsSchema = z.never();
@@ -2893,111 +2787,82 @@ export const publicSandboxGetReturnsSchema = z.array(z.object({
2893
2787
  updated_at: z.string().nullable(),
2894
2788
  user_id: z.string().nullable(),
2895
2789
  }));
2790
+ export const publicServerInstanceBootstrapArgsSchema = z.object({
2791
+ p_instance_id: z.string(),
2792
+ });
2793
+ export const publicBootstrapResultSchema = z.object({
2794
+ success: z.boolean().nullable(),
2795
+ error: z.string().nullable(),
2796
+ config: jsonSchema.nullable(),
2797
+ });
2896
2798
  export const publicServerInstanceDeleteArgsSchema = z.object({
2897
- target_id: z.string(),
2799
+ p_id: z.string(),
2898
2800
  });
2899
2801
  export const publicServerInstanceDeleteReturnsSchema = z.undefined();
2900
2802
  export const publicServerInstanceGetArgsSchema = z.object({
2901
- p_id: z.string().optional(),
2803
+ p_id: z.string(),
2902
2804
  });
2903
- export const publicServerInstanceGetReturnsSchema = z.array(z.object({
2904
- cloudflared_token: z.string().nullable(),
2905
- created_at: z.string(),
2906
- host_id: z.string().nullable(),
2907
- id: z.string(),
2908
- is_shared: z.boolean().nullable(),
2909
- latest_pull_at: z.string().nullable(),
2805
+ export const publicServerInstanceRecordSchema = z.object({
2806
+ id: z.string().nullable(),
2910
2807
  name: z.string().nullable(),
2911
- runtime: z.string().nullable(),
2808
+ updated_at: z.string().nullable(),
2809
+ config: jsonSchema.nullable(),
2810
+ status: publicServerStatusSchema.nullable(),
2811
+ is_public: z.boolean().nullable(),
2912
2812
  state: jsonSchema.nullable(),
2913
- status: publicWorkerStatusSchema.nullable(),
2914
- updated_at: z.string(),
2813
+ created_at: z.string().nullable(),
2915
2814
  user_id: z.string().nullable(),
2916
- }));
2917
- export const publicServerInstanceHeartbeatArgsSchema = z.object({
2918
- p_instance_id: z.string(),
2919
- });
2920
- export const publicServerInstanceHeartbeatReturnsSchema = z.array(z.object({
2921
- error: z.string(),
2922
- success: z.boolean(),
2923
- temp_domain: z.string(),
2924
- }));
2925
- export const publicServerInstanceListArgsSchema = z.object({
2926
- kw: z.string().optional(),
2927
- p_host_id: z.string().optional(),
2928
- page_no: z.number().optional(),
2929
- page_size: z.number().optional(),
2930
- });
2931
- export const publicServerInstanceListReturnsSchema = z.array(z.object({
2932
- cloudflared_token: z.string().nullable(),
2933
- created_at: z.string(),
2934
- host_id: z.string().nullable(),
2935
- id: z.string(),
2936
2815
  is_shared: z.boolean().nullable(),
2937
- latest_pull_at: z.string().nullable(),
2938
- name: z.string().nullable(),
2939
- runtime: z.string().nullable(),
2940
- state: jsonSchema.nullable(),
2941
- status: publicWorkerStatusSchema.nullable(),
2942
- updated_at: z.string(),
2943
- user_id: z.string().nullable(),
2944
- }));
2816
+ });
2945
2817
  export const publicServerInstanceListCursorArgsSchema = z.object({
2946
2818
  p_cursor_id: z.string().optional(),
2947
2819
  p_cursor_is_shared: z.boolean().optional(),
2948
2820
  p_cursor_updated_at: z.string().optional(),
2949
- p_host_id: z.string().optional(),
2950
2821
  p_is_shared: z.boolean().optional(),
2951
2822
  p_kw: z.string().optional(),
2952
2823
  p_limit: z.number().optional(),
2953
2824
  p_tag_ids: z.array(z.string()).optional(),
2954
2825
  });
2955
- export const publicServerInstanceListCursorReturnsSchema = z.array(z.object({
2956
- cloudflared_token: z.string().nullable(),
2957
- created_at: z.string(),
2958
- host_id: z.string().nullable(),
2959
- id: z.string(),
2960
- is_shared: z.boolean().nullable(),
2961
- latest_pull_at: z.string().nullable(),
2962
- name: z.string().nullable(),
2963
- runtime: z.string().nullable(),
2964
- state: jsonSchema.nullable(),
2965
- status: publicWorkerStatusSchema.nullable(),
2966
- updated_at: z.string(),
2967
- user_id: z.string().nullable(),
2968
- }));
2826
+ export const publicServerInstanceListCursorReturnsSchema = z.array(publicServerInstanceRecordSchema);
2827
+ export const publicServerInstanceProbeArgsSchema = z.object({
2828
+ p_instance_id: z.string(),
2829
+ });
2830
+ export const publicServerInstanceProbeReturnsSchema = z.undefined();
2969
2831
  export const publicServerInstanceUpsertArgsSchema = z.object({
2970
- p_cloudflared_token: z.string().optional(),
2971
- p_host_id: z.string().optional(),
2972
- p_id: z.string(),
2973
- p_is_managed: z.boolean().optional(),
2832
+ p_config: jsonSchema.optional(),
2833
+ p_id: z.string().optional(),
2834
+ p_is_public: z.boolean().optional(),
2974
2835
  p_is_shared: z.boolean().optional(),
2975
2836
  p_name: z.string().optional(),
2976
- p_runtime: z.string().optional(),
2977
2837
  p_state: jsonSchema.optional(),
2978
- p_status: publicWorkerStatusSchema.optional(),
2979
- p_user_id: z.string().optional(),
2838
+ p_status: publicServerStatusSchema.optional(),
2839
+ });
2840
+ export const publicServerInstanceUpsertReturnsSchema = z.array(publicServerInstanceRecordSchema);
2841
+ export const publicServiceHealthSummaryArgsSchema = z.never();
2842
+ export const publicServiceHealthRecordSchema = z.object({
2843
+ module: z.string().nullable(),
2844
+ status: z.string().nullable(),
2845
+ last_error_at: z.string().nullable(),
2846
+ last_error_message: z.string().nullable(),
2847
+ error_count_24h: z.number().nullable(),
2980
2848
  });
2981
- export const publicServerInstanceUpsertReturnsSchema = z.array(z.object({
2982
- cloudflared_token: z.string().nullable(),
2983
- created_at: z.string(),
2984
- host_id: z.string().nullable(),
2985
- id: z.string(),
2986
- is_shared: z.boolean().nullable(),
2987
- latest_pull_at: z.string().nullable(),
2988
- name: z.string().nullable(),
2989
- runtime: z.string().nullable(),
2990
- state: jsonSchema.nullable(),
2991
- status: publicWorkerStatusSchema.nullable(),
2992
- updated_at: z.string(),
2993
- user_id: z.string().nullable(),
2994
- }));
2995
2849
  export const publicSysConfigSetArgsSchema = z.object({
2996
2850
  p_description: z.string().optional(),
2997
2851
  p_key: z.string(),
2998
2852
  p_value: jsonSchema,
2999
2853
  });
3000
2854
  export const publicSysConfigSetReturnsSchema = z.undefined();
2855
+ export const publicSysEventLogArgsSchema = z.object({
2856
+ p_content: z.string(),
2857
+ p_event_type: z.string(),
2858
+ p_level: z.string().optional(),
2859
+ p_meta: jsonSchema.optional(),
2860
+ p_module: z.string().optional(),
2861
+ p_notify_admins: z.boolean().optional(),
2862
+ p_resource_id: z.string().optional(),
2863
+ p_resource_type: z.string().optional(),
2864
+ });
2865
+ export const publicSysEventLogReturnsSchema = z.string();
3001
2866
  export const publicSysGetDbSchemaArgsSchema = z.object({
3002
2867
  p_excluded_tables: z.array(z.string()).optional(),
3003
2868
  p_include_comments: z.boolean().optional(),
@@ -3008,6 +2873,37 @@ export const publicSysInitQueueArgsSchema = z.object({
3008
2873
  name: z.string(),
3009
2874
  });
3010
2875
  export const publicSysInitQueueReturnsSchema = z.undefined();
2876
+ export const publicSysLogListArgsSchema = z.object({
2877
+ p_cursor: z.string().optional(),
2878
+ p_event_type: z.string().optional(),
2879
+ p_level_max: publicSysLogLevelSchema.optional(),
2880
+ p_limit: z.number().optional(),
2881
+ p_module: z.string().optional(),
2882
+ p_resource_id: z.string().optional(),
2883
+ p_resource_type: z.string().optional(),
2884
+ });
2885
+ export const publicSysLogRecordSchema = z.object({
2886
+ id: z.number().nullable(),
2887
+ created_at: z.string().nullable(),
2888
+ text: z.string().nullable(),
2889
+ level: publicSysLogLevelSchema.nullable(),
2890
+ module: z.string().nullable(),
2891
+ event_type: z.string().nullable(),
2892
+ meta: jsonSchema.nullable(),
2893
+ resource_type: z.string().nullable(),
2894
+ resource_id: z.string().nullable(),
2895
+ resource_name: z.string().nullable(),
2896
+ user_id: z.string().nullable(),
2897
+ });
2898
+ export const publicSysLogValidateMetaArgsSchema = z.object({
2899
+ p_event_type: z.string(),
2900
+ p_meta: jsonSchema,
2901
+ });
2902
+ export const publicSysLogValidateMetaReturnsSchema = z.boolean();
2903
+ export const publicSysLogsCleanupArgsSchema = z.object({
2904
+ p_retention_days: z.number().optional(),
2905
+ });
2906
+ export const publicSysLogsCleanupReturnsSchema = z.undefined();
3011
2907
  export const publicSystemConfigPublicDeleteArgsSchema = z.object({
3012
2908
  p_key: z.string(),
3013
2909
  });
@@ -3018,13 +2914,13 @@ export const publicSystemConfigPublicGetArgsSchema = z.object({
3018
2914
  export const publicSystemConfigPublicGetReturnsSchema = jsonSchema;
3019
2915
  export const publicSystemConfigPublicListArgsSchema = z.never();
3020
2916
  export const publicSystemConfigPublicListReturnsSchema = z.array(z.object({
3021
- description: z.string(),
2917
+ created_at: z.string().nullable(),
2918
+ description: z.string().nullable(),
3022
2919
  key: z.string(),
3023
- updated_at: z.string(),
2920
+ updated_at: z.string().nullable(),
3024
2921
  value: jsonSchema,
3025
2922
  }));
3026
2923
  export const publicSystemConfigPublicSetArgsSchema = z.object({
3027
- p_description: z.string().optional(),
3028
2924
  p_key: z.string(),
3029
2925
  p_value: jsonSchema,
3030
2926
  });
@@ -3041,15 +2937,318 @@ export const publicTagUpsertArgsSchema = z.object({
3041
2937
  p_name: z.string().optional(),
3042
2938
  });
3043
2939
  export const publicTagUpsertReturnsSchema = z.array(publicTagRecordSchema);
2940
+ export const publicTaskAckArgsSchema = z.object({
2941
+ p_msg_id: z.number(),
2942
+ });
2943
+ export const publicTaskAckReturnsSchema = z.undefined();
2944
+ export const publicTaskAttemptDispatchArgsSchema = z.object({
2945
+ p_task: publicTasksRowSchema,
2946
+ });
2947
+ export const publicTaskAttemptDispatchReturnsSchema = z.object({
2948
+ code: z.string().nullable(),
2949
+ code_type: publicTaskCodeTypeSchema.nullable(),
2950
+ completed_at: z.string().nullable(),
2951
+ context_id: z.string().nullable(),
2952
+ context_type: z.string().nullable(),
2953
+ created_at: z.string(),
2954
+ description: z.string().nullable(),
2955
+ error: z.string().nullable(),
2956
+ executor_id: z.string().nullable(),
2957
+ executor_type: z.string().nullable(),
2958
+ id: z.string(),
2959
+ max_retries: z.number(),
2960
+ meta: jsonSchema,
2961
+ parent_id: z.string().nullable(),
2962
+ priority: z.number(),
2963
+ result: jsonSchema.nullable(),
2964
+ result_text: z.string().nullable(),
2965
+ retry_count: z.number(),
2966
+ scheduled_at: z.string().nullable(),
2967
+ started_at: z.string().nullable(),
2968
+ status: publicTaskStatusSchema,
2969
+ tags: z.array(z.string()),
2970
+ title: z.string(),
2971
+ updated_at: z.string(),
2972
+ user_id: z.string(),
2973
+ });
2974
+ export const publicTaskCancelArgsSchema = z.object({
2975
+ p_id: z.string(),
2976
+ });
2977
+ export const publicTaskCancelReturnsSchema = z.array(z.object({
2978
+ code: z.string().nullable(),
2979
+ code_type: publicTaskCodeTypeSchema.nullable(),
2980
+ completed_at: z.string().nullable(),
2981
+ context_id: z.string().nullable(),
2982
+ context_type: z.string().nullable(),
2983
+ created_at: z.string(),
2984
+ description: z.string().nullable(),
2985
+ error: z.string().nullable(),
2986
+ executor_id: z.string().nullable(),
2987
+ executor_type: z.string().nullable(),
2988
+ id: z.string(),
2989
+ max_retries: z.number(),
2990
+ meta: jsonSchema,
2991
+ parent_id: z.string().nullable(),
2992
+ priority: z.number(),
2993
+ result: jsonSchema.nullable(),
2994
+ result_text: z.string().nullable(),
2995
+ retry_count: z.number(),
2996
+ scheduled_at: z.string().nullable(),
2997
+ started_at: z.string().nullable(),
2998
+ status: publicTaskStatusSchema,
2999
+ tags: z.array(z.string()),
3000
+ title: z.string(),
3001
+ updated_at: z.string(),
3002
+ user_id: z.string(),
3003
+ }));
3004
+ export const publicTaskCompleteArgsSchema = z.object({
3005
+ p_error: z.string().optional(),
3006
+ p_id: z.string(),
3007
+ p_result: jsonSchema.optional(),
3008
+ p_result_text: z.string().optional(),
3009
+ p_success: z.boolean(),
3010
+ });
3011
+ export const publicTaskCompleteReturnsSchema = z.array(z.object({
3012
+ code: z.string().nullable(),
3013
+ code_type: publicTaskCodeTypeSchema.nullable(),
3014
+ completed_at: z.string().nullable(),
3015
+ context_id: z.string().nullable(),
3016
+ context_type: z.string().nullable(),
3017
+ created_at: z.string(),
3018
+ description: z.string().nullable(),
3019
+ error: z.string().nullable(),
3020
+ executor_id: z.string().nullable(),
3021
+ executor_type: z.string().nullable(),
3022
+ id: z.string(),
3023
+ max_retries: z.number(),
3024
+ meta: jsonSchema,
3025
+ parent_id: z.string().nullable(),
3026
+ priority: z.number(),
3027
+ result: jsonSchema.nullable(),
3028
+ result_text: z.string().nullable(),
3029
+ retry_count: z.number(),
3030
+ scheduled_at: z.string().nullable(),
3031
+ started_at: z.string().nullable(),
3032
+ status: publicTaskStatusSchema,
3033
+ tags: z.array(z.string()),
3034
+ title: z.string(),
3035
+ updated_at: z.string(),
3036
+ user_id: z.string(),
3037
+ }));
3038
+ export const publicTaskDeriveArgsSchema = z.object({
3039
+ p_code: z.string(),
3040
+ p_code_type: publicTaskCodeTypeSchema,
3041
+ p_description: z.string().optional(),
3042
+ p_meta: jsonSchema.optional(),
3043
+ p_parent_id: z.string(),
3044
+ p_title: z.string(),
3045
+ });
3046
+ export const publicTaskDeriveReturnsSchema = z.array(z.object({
3047
+ code: z.string().nullable(),
3048
+ code_type: publicTaskCodeTypeSchema.nullable(),
3049
+ completed_at: z.string().nullable(),
3050
+ context_id: z.string().nullable(),
3051
+ context_type: z.string().nullable(),
3052
+ created_at: z.string(),
3053
+ description: z.string().nullable(),
3054
+ error: z.string().nullable(),
3055
+ executor_id: z.string().nullable(),
3056
+ executor_type: z.string().nullable(),
3057
+ id: z.string(),
3058
+ max_retries: z.number(),
3059
+ meta: jsonSchema,
3060
+ parent_id: z.string().nullable(),
3061
+ priority: z.number(),
3062
+ result: jsonSchema.nullable(),
3063
+ result_text: z.string().nullable(),
3064
+ retry_count: z.number(),
3065
+ scheduled_at: z.string().nullable(),
3066
+ started_at: z.string().nullable(),
3067
+ status: publicTaskStatusSchema,
3068
+ tags: z.array(z.string()),
3069
+ title: z.string(),
3070
+ updated_at: z.string(),
3071
+ user_id: z.string(),
3072
+ }));
3073
+ export const publicTaskGetArgsSchema = z.object({
3074
+ p_id: z.string(),
3075
+ });
3076
+ export const publicTaskGetReturnsSchema = z.array(z.object({
3077
+ code: z.string().nullable(),
3078
+ code_type: publicTaskCodeTypeSchema.nullable(),
3079
+ completed_at: z.string().nullable(),
3080
+ context_id: z.string().nullable(),
3081
+ context_type: z.string().nullable(),
3082
+ created_at: z.string(),
3083
+ description: z.string().nullable(),
3084
+ error: z.string().nullable(),
3085
+ executor_id: z.string().nullable(),
3086
+ executor_type: z.string().nullable(),
3087
+ id: z.string(),
3088
+ max_retries: z.number(),
3089
+ meta: jsonSchema,
3090
+ parent_id: z.string().nullable(),
3091
+ priority: z.number(),
3092
+ result: jsonSchema.nullable(),
3093
+ result_text: z.string().nullable(),
3094
+ retry_count: z.number(),
3095
+ scheduled_at: z.string().nullable(),
3096
+ started_at: z.string().nullable(),
3097
+ status: publicTaskStatusSchema,
3098
+ tags: z.array(z.string()),
3099
+ title: z.string(),
3100
+ updated_at: z.string(),
3101
+ user_id: z.string(),
3102
+ }));
3103
+ export const publicTaskListCursorArgsSchema = z.object({
3104
+ p_code_type: publicTaskCodeTypeSchema.optional(),
3105
+ p_context_id: z.string().optional(),
3106
+ p_context_type: z.string().optional(),
3107
+ p_cursor: z.string().optional(),
3108
+ p_limit: z.number().optional(),
3109
+ p_parent_id: z.string().optional(),
3110
+ p_status: publicTaskStatusSchema.optional(),
3111
+ p_tag: z.string().optional(),
3112
+ });
3113
+ export const publicTaskListCursorReturnsSchema = z.array(z.object({
3114
+ code: z.string().nullable(),
3115
+ code_type: publicTaskCodeTypeSchema.nullable(),
3116
+ completed_at: z.string().nullable(),
3117
+ context_id: z.string().nullable(),
3118
+ context_type: z.string().nullable(),
3119
+ created_at: z.string(),
3120
+ description: z.string().nullable(),
3121
+ error: z.string().nullable(),
3122
+ executor_id: z.string().nullable(),
3123
+ executor_type: z.string().nullable(),
3124
+ id: z.string(),
3125
+ max_retries: z.number(),
3126
+ meta: jsonSchema,
3127
+ parent_id: z.string().nullable(),
3128
+ priority: z.number(),
3129
+ result: jsonSchema.nullable(),
3130
+ result_text: z.string().nullable(),
3131
+ retry_count: z.number(),
3132
+ scheduled_at: z.string().nullable(),
3133
+ started_at: z.string().nullable(),
3134
+ status: publicTaskStatusSchema,
3135
+ tags: z.array(z.string()),
3136
+ title: z.string(),
3137
+ updated_at: z.string(),
3138
+ user_id: z.string(),
3139
+ }));
3140
+ export const publicTaskScheduleNextArgsSchema = z.never();
3141
+ export const publicTaskScheduleNextReturnsSchema = z.undefined();
3044
3142
  export const publicTaskSubmitArgsSchema = z.object({
3045
- p_payload: jsonSchema,
3046
- p_type: z.string(),
3143
+ p_id: z.string(),
3144
+ });
3145
+ export const publicTaskSubmitReturnsSchema = z.array(z.object({
3146
+ code: z.string().nullable(),
3147
+ code_type: publicTaskCodeTypeSchema.nullable(),
3148
+ completed_at: z.string().nullable(),
3149
+ context_id: z.string().nullable(),
3150
+ context_type: z.string().nullable(),
3151
+ created_at: z.string(),
3152
+ description: z.string().nullable(),
3153
+ error: z.string().nullable(),
3154
+ executor_id: z.string().nullable(),
3155
+ executor_type: z.string().nullable(),
3156
+ id: z.string(),
3157
+ max_retries: z.number(),
3158
+ meta: jsonSchema,
3159
+ parent_id: z.string().nullable(),
3160
+ priority: z.number(),
3161
+ result: jsonSchema.nullable(),
3162
+ result_text: z.string().nullable(),
3163
+ retry_count: z.number(),
3164
+ scheduled_at: z.string().nullable(),
3165
+ started_at: z.string().nullable(),
3166
+ status: publicTaskStatusSchema,
3167
+ tags: z.array(z.string()),
3168
+ title: z.string(),
3169
+ updated_at: z.string(),
3170
+ user_id: z.string(),
3171
+ }));
3172
+ export const publicTaskTimeoutCheckArgsSchema = z.never();
3173
+ export const publicTaskTimeoutCheckReturnsSchema = z.undefined();
3174
+ export const publicTaskTreeArgsSchema = z.object({
3175
+ p_task_id: z.string(),
3176
+ });
3177
+ export const publicTaskTreeReturnsSchema = z.array(z.object({
3178
+ code: z.string().nullable(),
3179
+ code_type: publicTaskCodeTypeSchema.nullable(),
3180
+ completed_at: z.string().nullable(),
3181
+ context_id: z.string().nullable(),
3182
+ context_type: z.string().nullable(),
3183
+ created_at: z.string(),
3184
+ description: z.string().nullable(),
3185
+ error: z.string().nullable(),
3186
+ executor_id: z.string().nullable(),
3187
+ executor_type: z.string().nullable(),
3188
+ id: z.string(),
3189
+ max_retries: z.number(),
3190
+ meta: jsonSchema,
3191
+ parent_id: z.string().nullable(),
3192
+ priority: z.number(),
3193
+ result: jsonSchema.nullable(),
3194
+ result_text: z.string().nullable(),
3195
+ retry_count: z.number(),
3196
+ scheduled_at: z.string().nullable(),
3197
+ started_at: z.string().nullable(),
3198
+ status: publicTaskStatusSchema,
3199
+ tags: z.array(z.string()),
3200
+ title: z.string(),
3201
+ updated_at: z.string(),
3202
+ user_id: z.string(),
3203
+ }));
3204
+ export const publicTaskUpsertArgsSchema = z.object({
3205
+ p_code: z.string().optional(),
3206
+ p_code_type: publicTaskCodeTypeSchema.optional(),
3207
+ p_context_id: z.string().optional(),
3208
+ p_context_type: z.string().optional(),
3209
+ p_description: z.string().optional(),
3210
+ p_executor_id: z.string().optional(),
3211
+ p_executor_type: z.string().optional(),
3212
+ p_id: z.string().optional(),
3213
+ p_max_retries: z.number().optional(),
3214
+ p_meta: jsonSchema.optional(),
3215
+ p_parent_id: z.string().optional(),
3216
+ p_priority: z.number().optional(),
3217
+ p_scheduled_at: z.string().optional(),
3218
+ p_status: publicTaskStatusSchema.optional(),
3219
+ p_tags: z.array(z.string()).optional(),
3220
+ p_title: z.string().optional(),
3047
3221
  });
3048
- export const publicTaskSubmitReturnsSchema = jsonSchema;
3049
- export const publicTearDownTestDataArgsSchema = z.never();
3050
- export const publicTearDownTestDataReturnsSchema = jsonSchema;
3222
+ export const publicTaskUpsertReturnsSchema = z.array(z.object({
3223
+ code: z.string().nullable(),
3224
+ code_type: publicTaskCodeTypeSchema.nullable(),
3225
+ completed_at: z.string().nullable(),
3226
+ context_id: z.string().nullable(),
3227
+ context_type: z.string().nullable(),
3228
+ created_at: z.string(),
3229
+ description: z.string().nullable(),
3230
+ error: z.string().nullable(),
3231
+ executor_id: z.string().nullable(),
3232
+ executor_type: z.string().nullable(),
3233
+ id: z.string(),
3234
+ max_retries: z.number(),
3235
+ meta: jsonSchema,
3236
+ parent_id: z.string().nullable(),
3237
+ priority: z.number(),
3238
+ result: jsonSchema.nullable(),
3239
+ result_text: z.string().nullable(),
3240
+ retry_count: z.number(),
3241
+ scheduled_at: z.string().nullable(),
3242
+ started_at: z.string().nullable(),
3243
+ status: publicTaskStatusSchema,
3244
+ tags: z.array(z.string()),
3245
+ title: z.string(),
3246
+ updated_at: z.string(),
3247
+ user_id: z.string(),
3248
+ }));
3051
3249
  export const publicTelegramLoginStartArgsSchema = z.object({
3052
3250
  p_account_id: z.string(),
3251
+ p_use_sms: z.boolean().optional(),
3053
3252
  });
3054
3253
  export const publicTelegramLoginStartReturnsSchema = z.undefined();
3055
3254
  export const publicTelegramLoginSubmit2faArgsSchema = z.object({
@@ -3062,32 +3261,74 @@ export const publicTelegramLoginSubmitCodeArgsSchema = z.object({
3062
3261
  p_code: z.string(),
3063
3262
  });
3064
3263
  export const publicTelegramLoginSubmitCodeReturnsSchema = z.undefined();
3065
- export const publicTestLintAllPlpgsqlFunctionsArgsSchema = z.never();
3066
- export const publicTestLintAllPlpgsqlFunctionsReturnsSchema = z.array(z.object({
3067
- check_result: z.string(),
3068
- function_name: z.string(),
3069
- severity: z.string(),
3070
- }));
3071
- export const publicUidByEmailArgsSchema = z.object({
3072
- email: z.string(),
3264
+ export const publicTrafficLogDeleteArgsSchema = z.never();
3265
+ export const publicTrafficLogDeleteReturnsSchema = z.undefined();
3266
+ export const publicTrafficLogInsertArgsSchema = z.object({
3267
+ p_logs: jsonSchema,
3268
+ });
3269
+ export const publicTrafficLogInsertReturnsSchema = z.undefined();
3270
+ export const publicTrafficLogListArgsSchema = z.object({
3271
+ p_limit: z.number().optional(),
3272
+ p_offset: z.number().optional(),
3073
3273
  });
3074
- export const publicUidByEmailReturnsSchema = z.array(z.object({
3274
+ export const publicTrafficLogListReturnsSchema = z.array(z.object({
3275
+ client_ip: z.string().nullable(),
3276
+ created_at: z.string().nullable(),
3277
+ error: z.string().nullable(),
3278
+ host: z.string().nullable(),
3075
3279
  id: z.string(),
3280
+ method: z.string().nullable(),
3281
+ path: z.string().nullable(),
3282
+ request_headers: jsonSchema.nullable(),
3283
+ response_headers: jsonSchema.nullable(),
3284
+ scheme: z.string().nullable(),
3285
+ started_at: z.string().nullable(),
3286
+ status_code: z.number().nullable(),
3287
+ url: z.string().nullable(),
3288
+ user_id: z.string().nullable(),
3289
+ worker_id: z.string().nullable(),
3076
3290
  }));
3291
+ export const publicUserCreateArgsSchema = z.object({
3292
+ p_email: z.string(),
3293
+ p_full_name: z.string().optional(),
3294
+ p_password: z.string(),
3295
+ p_role: publicAppRoleSchema.optional(),
3296
+ p_user_id: z.string().optional(),
3297
+ });
3298
+ export const publicUserCreateReturnsSchema = z.string();
3299
+ export const publicUserDeleteArgsSchema = z.object({
3300
+ p_user_id: z.string(),
3301
+ });
3302
+ export const publicUserDeleteReturnsSchema = z.undefined();
3077
3303
  export const publicUserLogListArgsSchema = z.object({
3078
3304
  p_page: z.number().optional(),
3079
3305
  p_page_size: z.number().optional(),
3080
3306
  });
3081
3307
  export const publicUserLogListReturnsSchema = z.array(z.object({
3082
- content: z.string(),
3083
- created_at: z.string(),
3308
+ content: z.string().nullable(),
3309
+ created_at: z.string().nullable(),
3084
3310
  event_type: z.string(),
3085
3311
  id: z.string(),
3086
3312
  level: z.string(),
3087
- meta: jsonSchema,
3088
- resource_id: z.string(),
3089
- resource_type: z.string(),
3313
+ meta: jsonSchema.nullable(),
3314
+ resource_id: z.string().nullable(),
3315
+ resource_type: z.string().nullable(),
3316
+ user_id: z.string(),
3090
3317
  }));
3318
+ export const publicUserLogRecordArgsSchema = z.object({
3319
+ p_content: z.string(),
3320
+ p_event_type: z.string(),
3321
+ p_level: z.string().optional(),
3322
+ p_meta: jsonSchema.optional(),
3323
+ p_resource_id: z.string().optional(),
3324
+ p_resource_type: z.string().optional(),
3325
+ p_user_id: z.string().optional(),
3326
+ });
3327
+ export const publicUserLogRecordReturnsSchema = z.string();
3328
+ export const publicUserNotificationsCleanupArgsSchema = z.object({
3329
+ p_retention_days: z.number().optional(),
3330
+ });
3331
+ export const publicUserNotificationsCleanupReturnsSchema = z.undefined();
3091
3332
  export const publicUserProfileGetArgsSchema = z.never();
3092
3333
  export const publicUserProfileRecordSchema = z.object({
3093
3334
  id: z.string().nullable(),
@@ -3111,70 +3352,41 @@ export const publicUserProfileUpsertReturnsSchema = z.object({
3111
3352
  username: z.string().nullable(),
3112
3353
  website: z.string().nullable(),
3113
3354
  });
3114
- export const publicWorkerAckArgsSchema = z.object({
3115
- p_instance_id: z.string(),
3116
- p_msg_id: z.number(),
3117
- });
3118
- export const publicWorkerAckReturnsSchema = z.undefined();
3119
- export const publicWorkerProcessQueueArgsSchema = z.object({
3120
- p_limit: z.number().optional(),
3121
- p_queue: z.string(),
3122
- });
3123
- export const publicWorkerProcessQueueReturnsSchema = z.undefined();
3124
- export const publicWorkerPruneQueuesArgsSchema = z.never();
3125
- export const publicWorkerPruneQueuesReturnsSchema = z.undefined();
3126
- export const publicWorkerPullArgsSchema = z.object({
3127
- p_instance_id: z.string(),
3355
+ export const publicUserRoleDeleteArgsSchema = z.object({
3356
+ p_role: publicAppRoleSchema,
3357
+ p_user_id: z.string(),
3128
3358
  });
3129
- export const publicWorkerPullReturnsSchema = z.array(jsonSchema);
3130
- export const publicWorkerTaskUpsertArgsSchema = z.object({
3131
- p_error: z.string().optional(),
3132
- p_id: z.string().optional(),
3133
- p_payload: jsonSchema.optional(),
3134
- p_result: jsonSchema.optional(),
3135
- p_session_id: z.string().optional(),
3136
- p_status: z.string().optional(),
3137
- p_type: z.string().optional(),
3138
- p_user_id: z.string().optional(),
3359
+ export const publicUserRoleDeleteReturnsSchema = z.undefined();
3360
+ export const publicUserRoleListArgsSchema = z.object({
3361
+ p_user_id: z.string(),
3139
3362
  });
3140
- export const publicWorkerTaskUpsertReturnsSchema = z.string();
3141
- export const publicServerInstanceRecordSchema = z.object({
3142
- id: z.string().nullable(),
3143
- name: z.string().nullable(),
3144
- updated_at: z.string().nullable(),
3145
- config: jsonSchema.nullable(),
3146
- status: publicWorkerStatusSchema.nullable(),
3147
- host_id: z.string().nullable(),
3148
- is_public: z.boolean().nullable(),
3149
- state: jsonSchema.nullable(),
3150
- created_at: z.string().nullable(),
3151
- user_id: z.string().nullable(),
3152
- container_id: z.string().nullable(),
3153
- is_managed: z.boolean().nullable(),
3154
- type: z.string().nullable(),
3155
- runtime: z.string().nullable(),
3156
- is_shared: z.boolean().nullable(),
3157
- latest_pull_at: z.string().nullable(),
3158
- host_name: z.string().nullable(),
3159
- host_address: z.string().nullable(),
3160
- host_user: z.string().nullable(),
3161
- host_port: z.number().nullable(),
3162
- host_auth_secret: z.string().nullable(),
3163
- });
3164
- export const publicTestResultSchema = z.object({
3165
- test_name: z.string().nullable(),
3166
- passed: z.boolean().nullable(),
3167
- message: z.string().nullable(),
3363
+ export const publicUserRoleListReturnsSchema = z.array(publicAppRoleSchema);
3364
+ export const publicUserRoleUpsertArgsSchema = z.object({
3365
+ p_role: publicAppRoleSchema,
3366
+ p_user_id: z.string(),
3168
3367
  });
3368
+ export const publicUserRoleUpsertReturnsSchema = z.undefined();
3369
+ export const publicAdkArtifactListKeysReturnsSchema = z.array(publicAdkArtifactKeyRecordSchema);
3169
3370
  export const publicAdkArtifactListVersionsMetaReturnsSchema = z.array(publicAdkArtifactMetaRecordSchema);
3170
- export const publicBrowserListReturnsSchema = z.array(publicBrowserRecordSchema);
3371
+ export const publicAuditProjectDashboardStatsReturnsSchema = z.array(publicAuditProjectStatsRecordSchema);
3372
+ export const publicAuditProjectGetReturnsSchema = z.array(publicAuditProjectRecordSchema);
3373
+ export const publicBrowserGetReturnsSchema = z.array(publicBrowserRecordSchema);
3171
3374
  export const publicCampaignGetReturnsSchema = z.array(publicCampaignRecordSchema);
3172
- export const publicCloudAccountBindDeviceReturnsSchema = z.array(publicCloudAccountRecordSchema);
3375
+ export const publicCloudAccountBulkCreateReturnsSchema = z.array(publicCloudAccountRecordSchema);
3173
3376
  export const publicComputeNodeGetReturnsSchema = z.array(publicComputeNodeRecordSchema);
3377
+ export const publicComputeNodeGetSecretReturnsSchema = z.array(publicComputeNodeSecretRecordSchema);
3378
+ export const publicComputeNodeListReturnsSchema = z.array(publicComputeNodeListRecordSchema);
3174
3379
  export const publicContactGetReturnsSchema = z.array(publicContactRecordSchema);
3175
3380
  export const publicDbaLintScanReturnsSchema = z.array(publicDbaLintIssueSchema);
3176
3381
  export const publicInstanceTagsGetReturnsSchema = z.array(publicTagRecordSchema);
3382
+ export const publicJobQueueListDlqReturnsSchema = z.array(publicJobQueueDlqRecordSchema);
3177
3383
  export const publicNotificationGetPendingActionsReturnsSchema = z.array(publicUserNotificationRecordSchema);
3178
3384
  export const publicOutreachTaskListReturnsSchema = z.array(publicOutreachTaskRecordSchema);
3385
+ export const publicProxyGetReturnsSchema = z.array(publicProxyRecordSchema);
3386
+ export const publicResourceListReturnsSchema = z.array(publicResourceListRecordSchema);
3387
+ export const publicServerInstanceBootstrapReturnsSchema = z.array(publicBootstrapResultSchema);
3388
+ export const publicServerInstanceGetReturnsSchema = z.array(publicServerInstanceRecordSchema);
3389
+ export const publicServiceHealthSummaryReturnsSchema = z.array(publicServiceHealthRecordSchema);
3390
+ export const publicSysLogListReturnsSchema = z.array(publicSysLogRecordSchema);
3179
3391
  export const publicUserProfileGetReturnsSchema = z.array(publicUserProfileRecordSchema);
3180
3392
  //# sourceMappingURL=database.schemas.js.map