@sentry/junior 0.128.1 → 0.129.0

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 (71) hide show
  1. package/dist/{agent-hooks-IWQNFJMS.js → agent-hooks-ZM4WMZCN.js} +9 -9
  2. package/dist/api/schema/task.d.ts +152 -0
  3. package/dist/api/schema.d.ts +2 -0
  4. package/dist/api/schema.js +13 -3
  5. package/dist/api/tasks/routes.d.ts +4 -0
  6. package/dist/api.js +425 -23
  7. package/dist/app.js +309 -27
  8. package/dist/{catalog-runtime-KLSYFS4A.js → catalog-runtime-TN2GPVEI.js} +5 -5
  9. package/dist/chat/agent-dispatch/context.d.ts +18 -0
  10. package/dist/chat/event-tasks/store.d.ts +7 -1
  11. package/dist/chat/event-tasks/tool-support.d.ts +1 -0
  12. package/dist/chat/resource-events/runtime-catalog.d.ts +3 -0
  13. package/dist/chat/scheduled-tasks/cadence.d.ts +27 -0
  14. package/dist/chat/scheduled-tasks/heartbeat.d.ts +6 -0
  15. package/dist/chat/scheduled-tasks/identity.d.ts +6 -0
  16. package/dist/chat/scheduled-tasks/personal.d.ts +26 -0
  17. package/dist/chat/scheduled-tasks/schedule-intent.d.ts +61 -0
  18. package/dist/chat/scheduled-tasks/store.d.ts +77 -0
  19. package/dist/chat/scheduled-tasks/tool-support.d.ts +203 -0
  20. package/dist/chat/scheduled-tasks/tools/create.d.ts +80 -0
  21. package/dist/chat/scheduled-tasks/tools/delete.d.ts +56 -0
  22. package/dist/chat/scheduled-tasks/tools/list.d.ts +54 -0
  23. package/dist/chat/scheduled-tasks/tools/run-now.d.ts +56 -0
  24. package/dist/chat/scheduled-tasks/tools/update.d.ts +82 -0
  25. package/dist/chat/scheduled-tasks/tools.d.ts +6 -0
  26. package/dist/chat/scheduled-tasks/types.d.ts +81 -0
  27. package/dist/chat/tasks/read.d.ts +9 -0
  28. package/dist/chat/tools/scheduled-tasks.d.ts +4 -0
  29. package/dist/{chunk-5IR7SGRO.js → chunk-2BCQKJTX.js} +2 -2
  30. package/dist/{chunk-MZ6ZOWMJ.js → chunk-3N4MWF3R.js} +1 -1
  31. package/dist/{chunk-ETGUGGO2.js → chunk-6CMYU62S.js} +7 -7
  32. package/dist/{chunk-AAMF2IRC.js → chunk-6QQOLIJJ.js} +1308 -804
  33. package/dist/{chunk-R2LXTX4J.js → chunk-A6QQPVSH.js} +1 -1
  34. package/dist/chunk-BDIEEZK7.js +1470 -0
  35. package/dist/{chunk-AFJF3RGU.js → chunk-BVKP37NE.js} +61 -13
  36. package/dist/{chunk-54KP2EAH.js → chunk-CZJUBH6O.js} +12 -12
  37. package/dist/{chunk-O3YROBH4.js → chunk-CZQ2DSQZ.js} +1 -1
  38. package/dist/{chunk-O3C5BJFD.js → chunk-E4UCPRYL.js} +1 -1
  39. package/dist/{chunk-S2O64VXP.js → chunk-ESYXDXNX.js} +6 -6
  40. package/dist/{chunk-EHEACYJ6.js → chunk-GPWHBHAG.js} +1 -1
  41. package/dist/{chunk-PLAMHS3D.js → chunk-GURSWCI4.js} +2 -2
  42. package/dist/{chunk-Q5TMMCBV.js → chunk-K3U5447S.js} +1 -1
  43. package/dist/{chunk-SHMHHXD5.js → chunk-KB2M27DL.js} +58 -0
  44. package/dist/{chunk-LIJ4APSS.js → chunk-LV2BQ26V.js} +1 -1
  45. package/dist/{chunk-MKM5552O.js → chunk-NNRV4T2C.js} +1 -2
  46. package/dist/{chunk-TONH5NXR.js → chunk-P6I7LFKC.js} +1 -1
  47. package/dist/{chunk-J3YIO3LE.js → chunk-PQFNTLZI.js} +3 -3
  48. package/dist/{chunk-H4HMCSOZ.js → chunk-QAOA4GUG.js} +5 -5
  49. package/dist/{chunk-EOIA25WC.js → chunk-R62DRNKB.js} +2 -2
  50. package/dist/{chunk-OIQCRZ67.js → chunk-U23X4ASF.js} +4 -4
  51. package/dist/{chunk-P7UUNWC4.js → chunk-XENYUOZG.js} +4 -4
  52. package/dist/cli/chat.js +24 -24
  53. package/dist/cli/check.js +6 -6
  54. package/dist/cli/plugins.js +12 -12
  55. package/dist/cli/snapshot-create.js +9 -9
  56. package/dist/cli/upgrade.js +9 -17
  57. package/dist/db/schema/scheduled-tasks.d.ts +257 -0
  58. package/dist/db/schema.d.ts +258 -1
  59. package/dist/{db-VOU5QNLY.js → db-ZI6TBXIS.js} +7 -7
  60. package/dist/instrumentation.js +4 -4
  61. package/dist/nitro.js +2 -2
  62. package/dist/{oauth-callback-server-GS7FBYBC.js → oauth-callback-server-TLA4GARF.js} +17 -17
  63. package/dist/{runner-GSJSBI3J.js → runner-23YFRWQJ.js} +11 -11
  64. package/dist/{skills-DSHG54LM.js → skills-QIUG4D6M.js} +6 -6
  65. package/dist/{validation-25XWT6TA.js → validation-3KGEBATS.js} +6 -6
  66. package/dist/version.js +1 -1
  67. package/migrations/0016_neat_the_anarchist.sql +171 -0
  68. package/migrations/meta/0016_snapshot.json +1617 -0
  69. package/migrations/meta/_journal.json +7 -0
  70. package/package.json +5 -6
  71. package/dist/chunk-REHOYCYS.js +0 -37
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  validatePluginEgressCredentialHooks,
3
3
  validatePluginRegistrations
4
- } from "../chunk-O3C5BJFD.js";
4
+ } from "../chunk-E4UCPRYL.js";
5
5
  import {
6
6
  pluginCatalogConfigFromPluginSet,
7
7
  pluginCliRegistrationsFromPluginSet,
@@ -14,28 +14,28 @@ import {
14
14
  createPluginLogger,
15
15
  setPlugins,
16
16
  validatePlugins
17
- } from "../chunk-H4HMCSOZ.js";
17
+ } from "../chunk-QAOA4GUG.js";
18
18
  import {
19
19
  getDb
20
- } from "../chunk-J3YIO3LE.js";
21
- import "../chunk-SHMHHXD5.js";
22
- import "../chunk-MZ6ZOWMJ.js";
23
- import "../chunk-5IR7SGRO.js";
20
+ } from "../chunk-PQFNTLZI.js";
21
+ import "../chunk-KB2M27DL.js";
22
+ import "../chunk-3N4MWF3R.js";
23
+ import "../chunk-2BCQKJTX.js";
24
24
  import "../chunk-VFUK3X5B.js";
25
- import "../chunk-EHEACYJ6.js";
25
+ import "../chunk-GPWHBHAG.js";
26
26
  import {
27
27
  pluginCatalogRuntime
28
- } from "../chunk-R2LXTX4J.js";
29
- import "../chunk-O3YROBH4.js";
28
+ } from "../chunk-A6QQPVSH.js";
29
+ import "../chunk-CZQ2DSQZ.js";
30
30
  import "../chunk-77VDLF3Z.js";
31
31
  import "../chunk-HZF5P5UN.js";
32
32
  import "../chunk-F3B2YJ76.js";
33
- import "../chunk-TONH5NXR.js";
33
+ import "../chunk-P6I7LFKC.js";
34
34
  import "../chunk-6GWA276C.js";
35
35
  import "../chunk-OOUNJNMR.js";
36
36
  import "../chunk-H4HBKISO.js";
37
- import "../chunk-Q5TMMCBV.js";
38
- import "../chunk-MKM5552O.js";
37
+ import "../chunk-K3U5447S.js";
38
+ import "../chunk-NNRV4T2C.js";
39
39
  import "../chunk-MLKGABMK.js";
40
40
 
41
41
  // src/cli/plugins.ts
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  create,
3
3
  resolve
4
- } from "../chunk-P7UUNWC4.js";
4
+ } from "../chunk-XENYUOZG.js";
5
5
  import {
6
6
  disconnectStateAdapter
7
- } from "../chunk-MZ6ZOWMJ.js";
8
- import "../chunk-5IR7SGRO.js";
9
- import "../chunk-EHEACYJ6.js";
7
+ } from "../chunk-3N4MWF3R.js";
8
+ import "../chunk-2BCQKJTX.js";
9
+ import "../chunk-GPWHBHAG.js";
10
10
  import {
11
11
  pluginCatalogRuntime
12
- } from "../chunk-R2LXTX4J.js";
13
- import "../chunk-O3YROBH4.js";
12
+ } from "../chunk-A6QQPVSH.js";
13
+ import "../chunk-CZQ2DSQZ.js";
14
14
  import "../chunk-77VDLF3Z.js";
15
15
  import "../chunk-HZF5P5UN.js";
16
16
  import "../chunk-F3B2YJ76.js";
17
- import "../chunk-TONH5NXR.js";
17
+ import "../chunk-P6I7LFKC.js";
18
18
  import "../chunk-6GWA276C.js";
19
19
  import "../chunk-OOUNJNMR.js";
20
20
  import "../chunk-H4HBKISO.js";
21
- import "../chunk-Q5TMMCBV.js";
22
- import "../chunk-MKM5552O.js";
21
+ import "../chunk-K3U5447S.js";
22
+ import "../chunk-NNRV4T2C.js";
23
23
  import "../chunk-MLKGABMK.js";
24
24
 
25
25
  // src/cli/snapshot-create.ts
@@ -8,24 +8,24 @@ import {
8
8
  } from "../chunk-Y2CM7HXH.js";
9
9
  import {
10
10
  createJuniorSqlExecutor
11
- } from "../chunk-SHMHHXD5.js";
11
+ } from "../chunk-KB2M27DL.js";
12
12
  import {
13
13
  getChatConfig
14
- } from "../chunk-5IR7SGRO.js";
14
+ } from "../chunk-2BCQKJTX.js";
15
15
  import "../chunk-VFUK3X5B.js";
16
- import "../chunk-EHEACYJ6.js";
16
+ import "../chunk-GPWHBHAG.js";
17
17
  import {
18
18
  createPluginCatalogRuntime
19
- } from "../chunk-O3YROBH4.js";
19
+ } from "../chunk-CZQ2DSQZ.js";
20
20
  import "../chunk-77VDLF3Z.js";
21
21
  import "../chunk-HZF5P5UN.js";
22
22
  import "../chunk-F3B2YJ76.js";
23
- import "../chunk-TONH5NXR.js";
23
+ import "../chunk-P6I7LFKC.js";
24
24
  import "../chunk-6GWA276C.js";
25
25
  import "../chunk-OOUNJNMR.js";
26
26
  import "../chunk-H4HBKISO.js";
27
- import "../chunk-Q5TMMCBV.js";
28
- import "../chunk-MKM5552O.js";
27
+ import "../chunk-K3U5447S.js";
28
+ import "../chunk-NNRV4T2C.js";
29
29
  import "../chunk-MLKGABMK.js";
30
30
 
31
31
  // src/chat/conversations/sql/migrations.ts
@@ -129,7 +129,6 @@ import { createJiti } from "jiti";
129
129
  // src/chat/plugins/migrations.ts
130
130
  import { createHash } from "crypto";
131
131
  import { readMigrationFiles as readMigrationFiles2 } from "drizzle-orm/migrator";
132
- var LEGACY_SCHEDULER_BASELINE_HASH = "d1d2f712181dd3a0557808f0fc67fd0722691d25f4c8cfb816b77c71d19e1e42";
133
132
  function migrationTable(pluginName) {
134
133
  const label = pluginName.toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "").slice(0, 32);
135
134
  const hash = createHash("sha256").update(pluginName).digest("hex").slice(0, 8);
@@ -167,7 +166,7 @@ async function legacyMigrationHashes(executor, pluginName) {
167
166
  );
168
167
  return new Set(rows.map((row) => row.checksum));
169
168
  }
170
- function adoptedMigration(migrations, legacyHashes, pluginName) {
169
+ function adoptedMigration(migrations, legacyHashes) {
171
170
  let adopted;
172
171
  for (const migration of migrations) {
173
172
  if (!legacyHashes.has(migration.hash)) {
@@ -175,9 +174,6 @@ function adoptedMigration(migrations, legacyHashes, pluginName) {
175
174
  }
176
175
  adopted = migration;
177
176
  }
178
- if (!adopted && pluginName === "scheduler" && legacyHashes.has(LEGACY_SCHEDULER_BASELINE_HASH)) {
179
- return migrations[0];
180
- }
181
177
  return adopted;
182
178
  }
183
179
  async function adoptLegacyMigrationState(args) {
@@ -185,11 +181,7 @@ async function adoptLegacyMigrationState(args) {
185
181
  args.executor,
186
182
  args.pluginName
187
183
  );
188
- const migration = adoptedMigration(
189
- args.migrations,
190
- legacyHashes,
191
- args.pluginName
192
- );
184
+ const migration = adoptedMigration(args.migrations, legacyHashes);
193
185
  if (!migration) {
194
186
  return void 0;
195
187
  }
@@ -0,0 +1,257 @@
1
+ import type { ScheduledRun, ScheduledTask } from "@/chat/scheduled-tasks/types";
2
+ export declare const juniorSchedulerTasks: import("drizzle-orm/pg-core").PgTableWithColumns<{
3
+ name: "junior_scheduler_tasks";
4
+ schema: undefined;
5
+ columns: {
6
+ id: import("drizzle-orm/pg-core").PgColumn<{
7
+ name: "id";
8
+ tableName: "junior_scheduler_tasks";
9
+ dataType: "string";
10
+ columnType: "PgText";
11
+ data: string;
12
+ driverParam: string;
13
+ notNull: true;
14
+ hasDefault: false;
15
+ isPrimaryKey: true;
16
+ isAutoincrement: false;
17
+ hasRuntimeDefault: false;
18
+ enumValues: [string, ...string[]];
19
+ baseColumn: never;
20
+ identity: undefined;
21
+ generated: undefined;
22
+ }, {}, {}>;
23
+ teamId: import("drizzle-orm/pg-core").PgColumn<{
24
+ name: "team_id";
25
+ tableName: "junior_scheduler_tasks";
26
+ dataType: "string";
27
+ columnType: "PgText";
28
+ data: string;
29
+ driverParam: string;
30
+ notNull: true;
31
+ hasDefault: false;
32
+ isPrimaryKey: false;
33
+ isAutoincrement: false;
34
+ hasRuntimeDefault: false;
35
+ enumValues: [string, ...string[]];
36
+ baseColumn: never;
37
+ identity: undefined;
38
+ generated: undefined;
39
+ }, {}, {}>;
40
+ creatorSlackUserId: import("drizzle-orm/pg-core").PgColumn<{
41
+ name: "creator_slack_user_id";
42
+ tableName: "junior_scheduler_tasks";
43
+ dataType: "string";
44
+ columnType: "PgText";
45
+ data: string;
46
+ driverParam: string;
47
+ notNull: false;
48
+ hasDefault: false;
49
+ isPrimaryKey: false;
50
+ isAutoincrement: false;
51
+ hasRuntimeDefault: false;
52
+ enumValues: [string, ...string[]];
53
+ baseColumn: never;
54
+ identity: undefined;
55
+ generated: undefined;
56
+ }, {}, {}>;
57
+ creatorIdentityId: import("drizzle-orm/pg-core").PgColumn<{
58
+ name: "creator_identity_id";
59
+ tableName: "junior_scheduler_tasks";
60
+ dataType: "string";
61
+ columnType: "PgText";
62
+ data: string;
63
+ driverParam: string;
64
+ notNull: false;
65
+ hasDefault: false;
66
+ isPrimaryKey: false;
67
+ isAutoincrement: false;
68
+ hasRuntimeDefault: false;
69
+ enumValues: [string, ...string[]];
70
+ baseColumn: never;
71
+ identity: undefined;
72
+ generated: undefined;
73
+ }, {}, {}>;
74
+ status: import("drizzle-orm/pg-core").PgColumn<{
75
+ name: "status";
76
+ tableName: "junior_scheduler_tasks";
77
+ dataType: "string";
78
+ columnType: "PgText";
79
+ data: string;
80
+ driverParam: string;
81
+ notNull: true;
82
+ hasDefault: false;
83
+ isPrimaryKey: false;
84
+ isAutoincrement: false;
85
+ hasRuntimeDefault: false;
86
+ enumValues: [string, ...string[]];
87
+ baseColumn: never;
88
+ identity: undefined;
89
+ generated: undefined;
90
+ }, {}, {}>;
91
+ nextRunAtMs: import("drizzle-orm/pg-core").PgColumn<{
92
+ name: "next_run_at_ms";
93
+ tableName: "junior_scheduler_tasks";
94
+ dataType: "number";
95
+ columnType: "PgBigInt53";
96
+ data: number;
97
+ driverParam: string | number;
98
+ notNull: false;
99
+ hasDefault: false;
100
+ isPrimaryKey: false;
101
+ isAutoincrement: false;
102
+ hasRuntimeDefault: false;
103
+ enumValues: undefined;
104
+ baseColumn: never;
105
+ identity: undefined;
106
+ generated: undefined;
107
+ }, {}, {}>;
108
+ runNowAtMs: import("drizzle-orm/pg-core").PgColumn<{
109
+ name: "run_now_at_ms";
110
+ tableName: "junior_scheduler_tasks";
111
+ dataType: "number";
112
+ columnType: "PgBigInt53";
113
+ data: number;
114
+ driverParam: string | number;
115
+ notNull: false;
116
+ hasDefault: false;
117
+ isPrimaryKey: false;
118
+ isAutoincrement: false;
119
+ hasRuntimeDefault: false;
120
+ enumValues: undefined;
121
+ baseColumn: never;
122
+ identity: undefined;
123
+ generated: undefined;
124
+ }, {}, {}>;
125
+ createdAtMs: import("drizzle-orm/pg-core").PgColumn<{
126
+ name: "created_at_ms";
127
+ tableName: "junior_scheduler_tasks";
128
+ dataType: "number";
129
+ columnType: "PgBigInt53";
130
+ data: number;
131
+ driverParam: string | number;
132
+ notNull: true;
133
+ hasDefault: false;
134
+ isPrimaryKey: false;
135
+ isAutoincrement: false;
136
+ hasRuntimeDefault: false;
137
+ enumValues: undefined;
138
+ baseColumn: never;
139
+ identity: undefined;
140
+ generated: undefined;
141
+ }, {}, {}>;
142
+ record: import("drizzle-orm/pg-core").PgColumn<{
143
+ name: "record";
144
+ tableName: "junior_scheduler_tasks";
145
+ dataType: "json";
146
+ columnType: "PgJsonb";
147
+ data: ScheduledTask;
148
+ driverParam: unknown;
149
+ notNull: true;
150
+ hasDefault: false;
151
+ isPrimaryKey: false;
152
+ isAutoincrement: false;
153
+ hasRuntimeDefault: false;
154
+ enumValues: undefined;
155
+ baseColumn: never;
156
+ identity: undefined;
157
+ generated: undefined;
158
+ }, {}, {
159
+ $type: ScheduledTask;
160
+ }>;
161
+ };
162
+ dialect: "pg";
163
+ }>;
164
+ export declare const juniorSchedulerRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
165
+ name: "junior_scheduler_runs";
166
+ schema: undefined;
167
+ columns: {
168
+ id: import("drizzle-orm/pg-core").PgColumn<{
169
+ name: "id";
170
+ tableName: "junior_scheduler_runs";
171
+ dataType: "string";
172
+ columnType: "PgText";
173
+ data: string;
174
+ driverParam: string;
175
+ notNull: true;
176
+ hasDefault: false;
177
+ isPrimaryKey: true;
178
+ isAutoincrement: false;
179
+ hasRuntimeDefault: false;
180
+ enumValues: [string, ...string[]];
181
+ baseColumn: never;
182
+ identity: undefined;
183
+ generated: undefined;
184
+ }, {}, {}>;
185
+ taskId: import("drizzle-orm/pg-core").PgColumn<{
186
+ name: "task_id";
187
+ tableName: "junior_scheduler_runs";
188
+ dataType: "string";
189
+ columnType: "PgText";
190
+ data: string;
191
+ driverParam: string;
192
+ notNull: true;
193
+ hasDefault: false;
194
+ isPrimaryKey: false;
195
+ isAutoincrement: false;
196
+ hasRuntimeDefault: false;
197
+ enumValues: [string, ...string[]];
198
+ baseColumn: never;
199
+ identity: undefined;
200
+ generated: undefined;
201
+ }, {}, {}>;
202
+ status: import("drizzle-orm/pg-core").PgColumn<{
203
+ name: "status";
204
+ tableName: "junior_scheduler_runs";
205
+ dataType: "string";
206
+ columnType: "PgText";
207
+ data: string;
208
+ driverParam: string;
209
+ notNull: true;
210
+ hasDefault: false;
211
+ isPrimaryKey: false;
212
+ isAutoincrement: false;
213
+ hasRuntimeDefault: false;
214
+ enumValues: [string, ...string[]];
215
+ baseColumn: never;
216
+ identity: undefined;
217
+ generated: undefined;
218
+ }, {}, {}>;
219
+ scheduledForMs: import("drizzle-orm/pg-core").PgColumn<{
220
+ name: "scheduled_for_ms";
221
+ tableName: "junior_scheduler_runs";
222
+ dataType: "number";
223
+ columnType: "PgBigInt53";
224
+ data: number;
225
+ driverParam: string | number;
226
+ notNull: true;
227
+ hasDefault: false;
228
+ isPrimaryKey: false;
229
+ isAutoincrement: false;
230
+ hasRuntimeDefault: false;
231
+ enumValues: undefined;
232
+ baseColumn: never;
233
+ identity: undefined;
234
+ generated: undefined;
235
+ }, {}, {}>;
236
+ record: import("drizzle-orm/pg-core").PgColumn<{
237
+ name: "record";
238
+ tableName: "junior_scheduler_runs";
239
+ dataType: "json";
240
+ columnType: "PgJsonb";
241
+ data: ScheduledRun;
242
+ driverParam: unknown;
243
+ notNull: true;
244
+ hasDefault: false;
245
+ isPrimaryKey: false;
246
+ isAutoincrement: false;
247
+ hasRuntimeDefault: false;
248
+ enumValues: undefined;
249
+ baseColumn: never;
250
+ identity: undefined;
251
+ generated: undefined;
252
+ }, {}, {
253
+ $type: ScheduledRun;
254
+ }>;
255
+ };
256
+ dialect: "pg";
257
+ }>;
@@ -6,8 +6,9 @@ import { juniorDestinations } from "./schema/destinations";
6
6
  import { juniorEventTasks } from "./schema/event-tasks";
7
7
  import { juniorIdentities } from "./schema/identities";
8
8
  import { juniorStats } from "./schema/stats";
9
+ import { juniorSchedulerRuns, juniorSchedulerTasks } from "./schema/scheduled-tasks";
9
10
  import { juniorUsers } from "./schema/users";
10
- export { juniorConversationAnnotations, juniorApiTokens, juniorConversationEvents, juniorConversations, juniorDestinations, juniorEventTasks, juniorIdentities, juniorStats, juniorUsers, };
11
+ export { juniorConversationAnnotations, juniorApiTokens, juniorConversationEvents, juniorConversations, juniorDestinations, juniorEventTasks, juniorIdentities, juniorStats, juniorSchedulerRuns, juniorSchedulerTasks, juniorUsers, };
11
12
  export declare const juniorSqlSchema: {
12
13
  juniorConversationAnnotations: import("drizzle-orm/pg-core").PgTableWithColumns<{
13
14
  name: "junior_conversation_annotations";
@@ -1820,6 +1821,262 @@ export declare const juniorSqlSchema: {
1820
1821
  };
1821
1822
  dialect: "pg";
1822
1823
  }>;
1824
+ juniorSchedulerRuns: import("drizzle-orm/pg-core").PgTableWithColumns<{
1825
+ name: "junior_scheduler_runs";
1826
+ schema: undefined;
1827
+ columns: {
1828
+ id: import("drizzle-orm/pg-core").PgColumn<{
1829
+ name: "id";
1830
+ tableName: "junior_scheduler_runs";
1831
+ dataType: "string";
1832
+ columnType: "PgText";
1833
+ data: string;
1834
+ driverParam: string;
1835
+ notNull: true;
1836
+ hasDefault: false;
1837
+ isPrimaryKey: true;
1838
+ isAutoincrement: false;
1839
+ hasRuntimeDefault: false;
1840
+ enumValues: [string, ...string[]];
1841
+ baseColumn: never;
1842
+ identity: undefined;
1843
+ generated: undefined;
1844
+ }, {}, {}>;
1845
+ taskId: import("drizzle-orm/pg-core").PgColumn<{
1846
+ name: "task_id";
1847
+ tableName: "junior_scheduler_runs";
1848
+ dataType: "string";
1849
+ columnType: "PgText";
1850
+ data: string;
1851
+ driverParam: string;
1852
+ notNull: true;
1853
+ hasDefault: false;
1854
+ isPrimaryKey: false;
1855
+ isAutoincrement: false;
1856
+ hasRuntimeDefault: false;
1857
+ enumValues: [string, ...string[]];
1858
+ baseColumn: never;
1859
+ identity: undefined;
1860
+ generated: undefined;
1861
+ }, {}, {}>;
1862
+ status: import("drizzle-orm/pg-core").PgColumn<{
1863
+ name: "status";
1864
+ tableName: "junior_scheduler_runs";
1865
+ dataType: "string";
1866
+ columnType: "PgText";
1867
+ data: string;
1868
+ driverParam: string;
1869
+ notNull: true;
1870
+ hasDefault: false;
1871
+ isPrimaryKey: false;
1872
+ isAutoincrement: false;
1873
+ hasRuntimeDefault: false;
1874
+ enumValues: [string, ...string[]];
1875
+ baseColumn: never;
1876
+ identity: undefined;
1877
+ generated: undefined;
1878
+ }, {}, {}>;
1879
+ scheduledForMs: import("drizzle-orm/pg-core").PgColumn<{
1880
+ name: "scheduled_for_ms";
1881
+ tableName: "junior_scheduler_runs";
1882
+ dataType: "number";
1883
+ columnType: "PgBigInt53";
1884
+ data: number;
1885
+ driverParam: string | number;
1886
+ notNull: true;
1887
+ hasDefault: false;
1888
+ isPrimaryKey: false;
1889
+ isAutoincrement: false;
1890
+ hasRuntimeDefault: false;
1891
+ enumValues: undefined;
1892
+ baseColumn: never;
1893
+ identity: undefined;
1894
+ generated: undefined;
1895
+ }, {}, {}>;
1896
+ record: import("drizzle-orm/pg-core").PgColumn<{
1897
+ name: "record";
1898
+ tableName: "junior_scheduler_runs";
1899
+ dataType: "json";
1900
+ columnType: "PgJsonb";
1901
+ data: import("../chat/scheduled-tasks/types").ScheduledRun;
1902
+ driverParam: unknown;
1903
+ notNull: true;
1904
+ hasDefault: false;
1905
+ isPrimaryKey: false;
1906
+ isAutoincrement: false;
1907
+ hasRuntimeDefault: false;
1908
+ enumValues: undefined;
1909
+ baseColumn: never;
1910
+ identity: undefined;
1911
+ generated: undefined;
1912
+ }, {}, {
1913
+ $type: import("../chat/scheduled-tasks/types").ScheduledRun;
1914
+ }>;
1915
+ };
1916
+ dialect: "pg";
1917
+ }>;
1918
+ juniorSchedulerTasks: import("drizzle-orm/pg-core").PgTableWithColumns<{
1919
+ name: "junior_scheduler_tasks";
1920
+ schema: undefined;
1921
+ columns: {
1922
+ id: import("drizzle-orm/pg-core").PgColumn<{
1923
+ name: "id";
1924
+ tableName: "junior_scheduler_tasks";
1925
+ dataType: "string";
1926
+ columnType: "PgText";
1927
+ data: string;
1928
+ driverParam: string;
1929
+ notNull: true;
1930
+ hasDefault: false;
1931
+ isPrimaryKey: true;
1932
+ isAutoincrement: false;
1933
+ hasRuntimeDefault: false;
1934
+ enumValues: [string, ...string[]];
1935
+ baseColumn: never;
1936
+ identity: undefined;
1937
+ generated: undefined;
1938
+ }, {}, {}>;
1939
+ teamId: import("drizzle-orm/pg-core").PgColumn<{
1940
+ name: "team_id";
1941
+ tableName: "junior_scheduler_tasks";
1942
+ dataType: "string";
1943
+ columnType: "PgText";
1944
+ data: string;
1945
+ driverParam: string;
1946
+ notNull: true;
1947
+ hasDefault: false;
1948
+ isPrimaryKey: false;
1949
+ isAutoincrement: false;
1950
+ hasRuntimeDefault: false;
1951
+ enumValues: [string, ...string[]];
1952
+ baseColumn: never;
1953
+ identity: undefined;
1954
+ generated: undefined;
1955
+ }, {}, {}>;
1956
+ creatorSlackUserId: import("drizzle-orm/pg-core").PgColumn<{
1957
+ name: "creator_slack_user_id";
1958
+ tableName: "junior_scheduler_tasks";
1959
+ dataType: "string";
1960
+ columnType: "PgText";
1961
+ data: string;
1962
+ driverParam: string;
1963
+ notNull: false;
1964
+ hasDefault: false;
1965
+ isPrimaryKey: false;
1966
+ isAutoincrement: false;
1967
+ hasRuntimeDefault: false;
1968
+ enumValues: [string, ...string[]];
1969
+ baseColumn: never;
1970
+ identity: undefined;
1971
+ generated: undefined;
1972
+ }, {}, {}>;
1973
+ creatorIdentityId: import("drizzle-orm/pg-core").PgColumn<{
1974
+ name: "creator_identity_id";
1975
+ tableName: "junior_scheduler_tasks";
1976
+ dataType: "string";
1977
+ columnType: "PgText";
1978
+ data: string;
1979
+ driverParam: string;
1980
+ notNull: false;
1981
+ hasDefault: false;
1982
+ isPrimaryKey: false;
1983
+ isAutoincrement: false;
1984
+ hasRuntimeDefault: false;
1985
+ enumValues: [string, ...string[]];
1986
+ baseColumn: never;
1987
+ identity: undefined;
1988
+ generated: undefined;
1989
+ }, {}, {}>;
1990
+ status: import("drizzle-orm/pg-core").PgColumn<{
1991
+ name: "status";
1992
+ tableName: "junior_scheduler_tasks";
1993
+ dataType: "string";
1994
+ columnType: "PgText";
1995
+ data: string;
1996
+ driverParam: string;
1997
+ notNull: true;
1998
+ hasDefault: false;
1999
+ isPrimaryKey: false;
2000
+ isAutoincrement: false;
2001
+ hasRuntimeDefault: false;
2002
+ enumValues: [string, ...string[]];
2003
+ baseColumn: never;
2004
+ identity: undefined;
2005
+ generated: undefined;
2006
+ }, {}, {}>;
2007
+ nextRunAtMs: import("drizzle-orm/pg-core").PgColumn<{
2008
+ name: "next_run_at_ms";
2009
+ tableName: "junior_scheduler_tasks";
2010
+ dataType: "number";
2011
+ columnType: "PgBigInt53";
2012
+ data: number;
2013
+ driverParam: string | number;
2014
+ notNull: false;
2015
+ hasDefault: false;
2016
+ isPrimaryKey: false;
2017
+ isAutoincrement: false;
2018
+ hasRuntimeDefault: false;
2019
+ enumValues: undefined;
2020
+ baseColumn: never;
2021
+ identity: undefined;
2022
+ generated: undefined;
2023
+ }, {}, {}>;
2024
+ runNowAtMs: import("drizzle-orm/pg-core").PgColumn<{
2025
+ name: "run_now_at_ms";
2026
+ tableName: "junior_scheduler_tasks";
2027
+ dataType: "number";
2028
+ columnType: "PgBigInt53";
2029
+ data: number;
2030
+ driverParam: string | number;
2031
+ notNull: false;
2032
+ hasDefault: false;
2033
+ isPrimaryKey: false;
2034
+ isAutoincrement: false;
2035
+ hasRuntimeDefault: false;
2036
+ enumValues: undefined;
2037
+ baseColumn: never;
2038
+ identity: undefined;
2039
+ generated: undefined;
2040
+ }, {}, {}>;
2041
+ createdAtMs: import("drizzle-orm/pg-core").PgColumn<{
2042
+ name: "created_at_ms";
2043
+ tableName: "junior_scheduler_tasks";
2044
+ dataType: "number";
2045
+ columnType: "PgBigInt53";
2046
+ data: number;
2047
+ driverParam: string | number;
2048
+ notNull: true;
2049
+ hasDefault: false;
2050
+ isPrimaryKey: false;
2051
+ isAutoincrement: false;
2052
+ hasRuntimeDefault: false;
2053
+ enumValues: undefined;
2054
+ baseColumn: never;
2055
+ identity: undefined;
2056
+ generated: undefined;
2057
+ }, {}, {}>;
2058
+ record: import("drizzle-orm/pg-core").PgColumn<{
2059
+ name: "record";
2060
+ tableName: "junior_scheduler_tasks";
2061
+ dataType: "json";
2062
+ columnType: "PgJsonb";
2063
+ data: import("../chat/scheduled-tasks/types").ScheduledTask;
2064
+ driverParam: unknown;
2065
+ notNull: true;
2066
+ hasDefault: false;
2067
+ isPrimaryKey: false;
2068
+ isAutoincrement: false;
2069
+ hasRuntimeDefault: false;
2070
+ enumValues: undefined;
2071
+ baseColumn: never;
2072
+ identity: undefined;
2073
+ generated: undefined;
2074
+ }, {}, {
2075
+ $type: import("../chat/scheduled-tasks/types").ScheduledTask;
2076
+ }>;
2077
+ };
2078
+ dialect: "pg";
2079
+ }>;
1823
2080
  juniorUsers: import("drizzle-orm/pg-core").PgTableWithColumns<{
1824
2081
  name: "junior_users";
1825
2082
  schema: undefined;