one-shared 1.0.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client.ts +6 -4
- package/dist/index.d.mts +138 -201
- package/dist/index.d.ts +138 -201
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/types.ts +15 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Json } from "drizzle-orm";
|
|
2
|
-
import { z } from "zod";
|
|
2
|
+
import z, { z as z$1 } from "zod";
|
|
3
3
|
//#region schema.d.ts
|
|
4
4
|
export declare const tables: {
|
|
5
5
|
teams: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
@@ -2733,11 +2733,11 @@ declare const db: import("drizzle-orm/neon-http").NeonHttpDatabase<import("drizz
|
|
|
2733
2733
|
//#endregion
|
|
2734
2734
|
//#region types.d.ts
|
|
2735
2735
|
export type Db = typeof db;
|
|
2736
|
-
export declare const statusSignalSchema: z.ZodEnum<{
|
|
2736
|
+
export declare const statusSignalSchema: z$1.ZodEnum<{
|
|
2737
2737
|
failure: "failure";
|
|
2738
2738
|
recovery: "recovery";
|
|
2739
2739
|
}>;
|
|
2740
|
-
export type StatusSignal = z.infer<typeof statusSignalSchema>;
|
|
2740
|
+
export type StatusSignal = z$1.infer<typeof statusSignalSchema>;
|
|
2741
2741
|
export declare const eventSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
2742
2742
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"events", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
2743
2743
|
name: string;
|
|
@@ -2907,7 +2907,7 @@ export declare const eventSchema: import("drizzle-orm/zod").BuildSchema<"select"
|
|
|
2907
2907
|
}, undefined, {
|
|
2908
2908
|
date: true;
|
|
2909
2909
|
}>;
|
|
2910
|
-
export type Event = z.infer<typeof eventSchema>;
|
|
2910
|
+
export type Event = z$1.infer<typeof eventSchema>;
|
|
2911
2911
|
export declare const eventInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
2912
2912
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"events", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
2913
2913
|
name: string;
|
|
@@ -3077,7 +3077,7 @@ export declare const eventInsertSchema: import("drizzle-orm/zod").BuildSchema<"i
|
|
|
3077
3077
|
}, undefined, {
|
|
3078
3078
|
date: true;
|
|
3079
3079
|
}>;
|
|
3080
|
-
export type EventInsert = z.infer<typeof eventInsertSchema>;
|
|
3080
|
+
export type EventInsert = z$1.infer<typeof eventInsertSchema>;
|
|
3081
3081
|
export declare const channelSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
3082
3082
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"channels", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3083
3083
|
name: string;
|
|
@@ -3127,7 +3127,7 @@ export declare const channelSchema: import("drizzle-orm/zod").BuildSchema<"selec
|
|
|
3127
3127
|
}, undefined, {
|
|
3128
3128
|
date: true;
|
|
3129
3129
|
}>;
|
|
3130
|
-
export type Channel = z.infer<typeof channelSchema>;
|
|
3130
|
+
export type Channel = z$1.infer<typeof channelSchema>;
|
|
3131
3131
|
export declare const teamSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
3132
3132
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"teams", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3133
3133
|
name: string;
|
|
@@ -3282,7 +3282,7 @@ export declare const teamSchema: import("drizzle-orm/zod").BuildSchema<"select",
|
|
|
3282
3282
|
}, undefined, {
|
|
3283
3283
|
date: true;
|
|
3284
3284
|
}>;
|
|
3285
|
-
export type Team = z.infer<typeof teamSchema>;
|
|
3285
|
+
export type Team = z$1.infer<typeof teamSchema>;
|
|
3286
3286
|
export declare const teamInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
3287
3287
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"teams", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3288
3288
|
name: string;
|
|
@@ -3437,7 +3437,7 @@ export declare const teamInsertSchema: import("drizzle-orm/zod").BuildSchema<"in
|
|
|
3437
3437
|
}, undefined, {
|
|
3438
3438
|
date: true;
|
|
3439
3439
|
}>;
|
|
3440
|
-
export type TeamInsert = z.infer<typeof teamInsertSchema>;
|
|
3440
|
+
export type TeamInsert = z$1.infer<typeof teamInsertSchema>;
|
|
3441
3441
|
export declare const prewatchResultSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
3442
3442
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"prewatchResults", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3443
3443
|
name: string;
|
|
@@ -3547,7 +3547,7 @@ export declare const prewatchResultSchema: import("drizzle-orm/zod").BuildSchema
|
|
|
3547
3547
|
}, undefined, {
|
|
3548
3548
|
date: true;
|
|
3549
3549
|
}>;
|
|
3550
|
-
export type PrewatchResult = z.infer<typeof prewatchResultSchema>;
|
|
3550
|
+
export type PrewatchResult = z$1.infer<typeof prewatchResultSchema>;
|
|
3551
3551
|
export declare const prewatchResultInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
3552
3552
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"prewatchResults", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3553
3553
|
name: string;
|
|
@@ -3657,7 +3657,7 @@ export declare const prewatchResultInsertSchema: import("drizzle-orm/zod").Build
|
|
|
3657
3657
|
}, undefined, {
|
|
3658
3658
|
date: true;
|
|
3659
3659
|
}>;
|
|
3660
|
-
export type PrewatchResultInsert = z.infer<typeof prewatchResultInsertSchema>;
|
|
3660
|
+
export type PrewatchResultInsert = z$1.infer<typeof prewatchResultInsertSchema>;
|
|
3661
3661
|
export declare const prewatchPromptEventSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
3662
3662
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"prewatchPromptEvents", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3663
3663
|
name: string;
|
|
@@ -3707,7 +3707,7 @@ export declare const prewatchPromptEventSchema: import("drizzle-orm/zod").BuildS
|
|
|
3707
3707
|
}, undefined, {
|
|
3708
3708
|
date: true;
|
|
3709
3709
|
}>;
|
|
3710
|
-
export type PrewatchPromptEvent = z.infer<typeof prewatchPromptEventSchema>;
|
|
3710
|
+
export type PrewatchPromptEvent = z$1.infer<typeof prewatchPromptEventSchema>;
|
|
3711
3711
|
export declare const prewatchPromptEventInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
3712
3712
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"prewatchPromptEvents", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3713
3713
|
name: string;
|
|
@@ -3757,7 +3757,7 @@ export declare const prewatchPromptEventInsertSchema: import("drizzle-orm/zod").
|
|
|
3757
3757
|
}, undefined, {
|
|
3758
3758
|
date: true;
|
|
3759
3759
|
}>;
|
|
3760
|
-
export type PrewatchPromptEventInsert = z.infer<typeof prewatchPromptEventInsertSchema>;
|
|
3760
|
+
export type PrewatchPromptEventInsert = z$1.infer<typeof prewatchPromptEventInsertSchema>;
|
|
3761
3761
|
export declare const watchResultSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
3762
3762
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"watchResults", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3763
3763
|
name: string;
|
|
@@ -3882,7 +3882,7 @@ export declare const watchResultSchema: import("drizzle-orm/zod").BuildSchema<"s
|
|
|
3882
3882
|
}, undefined, {
|
|
3883
3883
|
date: true;
|
|
3884
3884
|
}>;
|
|
3885
|
-
export type WatchResult = z.infer<typeof watchResultSchema>;
|
|
3885
|
+
export type WatchResult = z$1.infer<typeof watchResultSchema>;
|
|
3886
3886
|
export declare const watchResultInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
3887
3887
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"watchResults", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
3888
3888
|
name: string;
|
|
@@ -4007,7 +4007,7 @@ export declare const watchResultInsertSchema: import("drizzle-orm/zod").BuildSch
|
|
|
4007
4007
|
}, undefined, {
|
|
4008
4008
|
date: true;
|
|
4009
4009
|
}>;
|
|
4010
|
-
export type WatchResultInsert = z.infer<typeof watchResultInsertSchema>;
|
|
4010
|
+
export type WatchResultInsert = z$1.infer<typeof watchResultInsertSchema>;
|
|
4011
4011
|
export declare const incidentSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4012
4012
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"incidents", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4013
4013
|
name: string;
|
|
@@ -4057,7 +4057,7 @@ export declare const incidentSchema: import("drizzle-orm/zod").BuildSchema<"sele
|
|
|
4057
4057
|
}, undefined, {
|
|
4058
4058
|
date: true;
|
|
4059
4059
|
}>;
|
|
4060
|
-
export type Incident = z.infer<typeof incidentSchema>;
|
|
4060
|
+
export type Incident = z$1.infer<typeof incidentSchema>;
|
|
4061
4061
|
export declare const incidentInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
4062
4062
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"incidents", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4063
4063
|
name: string;
|
|
@@ -4107,7 +4107,7 @@ export declare const incidentInsertSchema: import("drizzle-orm/zod").BuildSchema
|
|
|
4107
4107
|
}, undefined, {
|
|
4108
4108
|
date: true;
|
|
4109
4109
|
}>;
|
|
4110
|
-
export type IncidentInsert = z.infer<typeof incidentInsertSchema>;
|
|
4110
|
+
export type IncidentInsert = z$1.infer<typeof incidentInsertSchema>;
|
|
4111
4111
|
export declare const incidentCommentsSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4112
4112
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"incidentComments", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4113
4113
|
name: string;
|
|
@@ -4172,7 +4172,7 @@ export declare const incidentCommentsSchema: import("drizzle-orm/zod").BuildSche
|
|
|
4172
4172
|
}, undefined, {
|
|
4173
4173
|
date: true;
|
|
4174
4174
|
}>;
|
|
4175
|
-
export type IncidentComments = z.infer<typeof incidentCommentsSchema>;
|
|
4175
|
+
export type IncidentComments = z$1.infer<typeof incidentCommentsSchema>;
|
|
4176
4176
|
export declare const incidentCommentsInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
4177
4177
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"incidentComments", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4178
4178
|
name: string;
|
|
@@ -4237,7 +4237,7 @@ export declare const incidentCommentsInsertSchema: import("drizzle-orm/zod").Bui
|
|
|
4237
4237
|
}, undefined, {
|
|
4238
4238
|
date: true;
|
|
4239
4239
|
}>;
|
|
4240
|
-
export type IncidentCommentsInsert = z.infer<typeof incidentCommentsInsertSchema>;
|
|
4240
|
+
export type IncidentCommentsInsert = z$1.infer<typeof incidentCommentsInsertSchema>;
|
|
4241
4241
|
export declare const incidentEventSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4242
4242
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"incidentEvents", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4243
4243
|
name: string;
|
|
@@ -4287,7 +4287,7 @@ export declare const incidentEventSchema: import("drizzle-orm/zod").BuildSchema<
|
|
|
4287
4287
|
}, undefined, {
|
|
4288
4288
|
date: true;
|
|
4289
4289
|
}>;
|
|
4290
|
-
export type IncidentEvent = z.infer<typeof incidentEventSchema>;
|
|
4290
|
+
export type IncidentEvent = z$1.infer<typeof incidentEventSchema>;
|
|
4291
4291
|
export declare const incidentEventInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
4292
4292
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"incidentEvents", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4293
4293
|
name: string;
|
|
@@ -4337,7 +4337,7 @@ export declare const incidentEventInsertSchema: import("drizzle-orm/zod").BuildS
|
|
|
4337
4337
|
}, undefined, {
|
|
4338
4338
|
date: true;
|
|
4339
4339
|
}>;
|
|
4340
|
-
export type IncidentEventInsert = z.infer<typeof incidentEventInsertSchema>;
|
|
4340
|
+
export type IncidentEventInsert = z$1.infer<typeof incidentEventInsertSchema>;
|
|
4341
4341
|
export declare const prewatchEvidenceEventSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4342
4342
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"prewatchEvidenceIds", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4343
4343
|
name: string;
|
|
@@ -4387,7 +4387,7 @@ export declare const prewatchEvidenceEventSchema: import("drizzle-orm/zod").Buil
|
|
|
4387
4387
|
}, undefined, {
|
|
4388
4388
|
date: true;
|
|
4389
4389
|
}>;
|
|
4390
|
-
export type PrewatchEvidenceEvent = z.infer<typeof prewatchEvidenceEventSchema>;
|
|
4390
|
+
export type PrewatchEvidenceEvent = z$1.infer<typeof prewatchEvidenceEventSchema>;
|
|
4391
4391
|
export declare const prewatchEvidenceEventInsertSchema: import("drizzle-orm/zod").BuildSchema<"insert", {
|
|
4392
4392
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"prewatchEvidenceIds", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4393
4393
|
name: string;
|
|
@@ -4437,7 +4437,7 @@ export declare const prewatchEvidenceEventInsertSchema: import("drizzle-orm/zod"
|
|
|
4437
4437
|
}, undefined, {
|
|
4438
4438
|
date: true;
|
|
4439
4439
|
}>;
|
|
4440
|
-
export type PrewatchEvidenceEventInsert = z.infer<typeof prewatchEvidenceEventInsertSchema>;
|
|
4440
|
+
export type PrewatchEvidenceEventInsert = z$1.infer<typeof prewatchEvidenceEventInsertSchema>;
|
|
4441
4441
|
export interface PromptEvent {
|
|
4442
4442
|
id: string;
|
|
4443
4443
|
ts: string;
|
|
@@ -4445,60 +4445,60 @@ export interface PromptEvent {
|
|
|
4445
4445
|
textRaw: string | null;
|
|
4446
4446
|
textNorm: string | null;
|
|
4447
4447
|
}
|
|
4448
|
-
export declare const unsuspiciousPrewatchGenerationSchema: z.ZodObject<{
|
|
4449
|
-
suspicious: z.ZodLiteral<false>;
|
|
4450
|
-
reasoning: z.ZodString;
|
|
4451
|
-
}, z.core.$strip>;
|
|
4452
|
-
export declare const suspiciousPrewatchGenerationSchema: z.ZodObject<{
|
|
4453
|
-
suspicious: z.ZodLiteral<true>;
|
|
4454
|
-
reasoning: z.ZodString;
|
|
4455
|
-
title: z.ZodString;
|
|
4456
|
-
evidenceEventIds: z.ZodArray<z.ZodString>;
|
|
4457
|
-
}, z.core.$strip>;
|
|
4458
|
-
export type SuspiciousPrewatchGeneration = z.infer<typeof suspiciousPrewatchGenerationSchema>;
|
|
4459
|
-
export declare const importantGenerationSchema: z.ZodObject<{
|
|
4460
|
-
important: z.ZodLiteral<true>;
|
|
4461
|
-
statusSignal: z.ZodEnum<{
|
|
4448
|
+
export declare const unsuspiciousPrewatchGenerationSchema: z$1.ZodObject<{
|
|
4449
|
+
suspicious: z$1.ZodLiteral<false>;
|
|
4450
|
+
reasoning: z$1.ZodString;
|
|
4451
|
+
}, z$1.core.$strip>;
|
|
4452
|
+
export declare const suspiciousPrewatchGenerationSchema: z$1.ZodObject<{
|
|
4453
|
+
suspicious: z$1.ZodLiteral<true>;
|
|
4454
|
+
reasoning: z$1.ZodString;
|
|
4455
|
+
title: z$1.ZodString;
|
|
4456
|
+
evidenceEventIds: z$1.ZodArray<z$1.ZodString>;
|
|
4457
|
+
}, z$1.core.$strip>;
|
|
4458
|
+
export type SuspiciousPrewatchGeneration = z$1.infer<typeof suspiciousPrewatchGenerationSchema>;
|
|
4459
|
+
export declare const importantGenerationSchema: z$1.ZodObject<{
|
|
4460
|
+
important: z$1.ZodLiteral<true>;
|
|
4461
|
+
statusSignal: z$1.ZodEnum<{
|
|
4462
4462
|
failure: "failure";
|
|
4463
4463
|
recovery: "recovery";
|
|
4464
4464
|
}>;
|
|
4465
|
-
description: z.ZodString;
|
|
4466
|
-
summary: z.ZodString;
|
|
4467
|
-
}, z.core.$strict>;
|
|
4468
|
-
export declare const unimportantGenerationSchema: z.ZodObject<{
|
|
4469
|
-
important: z.ZodLiteral<false>;
|
|
4470
|
-
}, z.core.$strict>;
|
|
4471
|
-
export declare const watchGenerationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4472
|
-
important: z.ZodLiteral<true>;
|
|
4473
|
-
statusSignal: z.ZodEnum<{
|
|
4465
|
+
description: z$1.ZodString;
|
|
4466
|
+
summary: z$1.ZodString;
|
|
4467
|
+
}, z$1.core.$strict>;
|
|
4468
|
+
export declare const unimportantGenerationSchema: z$1.ZodObject<{
|
|
4469
|
+
important: z$1.ZodLiteral<false>;
|
|
4470
|
+
}, z$1.core.$strict>;
|
|
4471
|
+
export declare const watchGenerationSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
4472
|
+
important: z$1.ZodLiteral<true>;
|
|
4473
|
+
statusSignal: z$1.ZodEnum<{
|
|
4474
4474
|
failure: "failure";
|
|
4475
4475
|
recovery: "recovery";
|
|
4476
4476
|
}>;
|
|
4477
|
-
description: z.ZodString;
|
|
4478
|
-
summary: z.ZodString;
|
|
4479
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
4480
|
-
important: z.ZodLiteral<false>;
|
|
4481
|
-
}, z.core.$strict>]>;
|
|
4482
|
-
export type WatchGeneration = z.infer<typeof watchGenerationSchema>;
|
|
4483
|
-
export declare const prewatchGenerationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4484
|
-
suspicious: z.ZodLiteral<true>;
|
|
4485
|
-
reasoning: z.ZodString;
|
|
4486
|
-
title: z.ZodString;
|
|
4487
|
-
evidenceEventIds: z.ZodArray<z.ZodString>;
|
|
4488
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4489
|
-
suspicious: z.ZodLiteral<false>;
|
|
4490
|
-
reasoning: z.ZodString;
|
|
4491
|
-
}, z.core.$strip>]>;
|
|
4492
|
-
export type PrewatchGeneration = z.infer<typeof prewatchGenerationSchema>;
|
|
4493
|
-
export declare const emptyParamsSchema: z.ZodReadonly<z.ZodTuple<[], null>>;
|
|
4494
|
-
export type EmptyParams = z.infer<typeof emptyParamsSchema>;
|
|
4495
|
-
export declare const singleParamSchema: z.ZodReadonly<z.ZodTuple<[z.ZodString], null>>;
|
|
4496
|
-
export type SingleParam = z.infer<typeof singleParamSchema>;
|
|
4497
|
-
export type OptionalParams<S, K extends PropertyKey> = S extends { [P in K]: infer T extends z.ZodType; } ? { [P in K]: z.infer<T>; } : { [P in K]?: never; };
|
|
4498
|
-
export declare const incidentWithChannelSchema: z.ZodObject<{
|
|
4499
|
-
id: z.ZodUUID;
|
|
4500
|
-
channelId: z.ZodUUID;
|
|
4501
|
-
ts: z.ZodCoercedDate<unknown>;
|
|
4477
|
+
description: z$1.ZodString;
|
|
4478
|
+
summary: z$1.ZodString;
|
|
4479
|
+
}, z$1.core.$strict>, z$1.ZodObject<{
|
|
4480
|
+
important: z$1.ZodLiteral<false>;
|
|
4481
|
+
}, z$1.core.$strict>]>;
|
|
4482
|
+
export type WatchGeneration = z$1.infer<typeof watchGenerationSchema>;
|
|
4483
|
+
export declare const prewatchGenerationSchema: z$1.ZodUnion<readonly [z$1.ZodObject<{
|
|
4484
|
+
suspicious: z$1.ZodLiteral<true>;
|
|
4485
|
+
reasoning: z$1.ZodString;
|
|
4486
|
+
title: z$1.ZodString;
|
|
4487
|
+
evidenceEventIds: z$1.ZodArray<z$1.ZodString>;
|
|
4488
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4489
|
+
suspicious: z$1.ZodLiteral<false>;
|
|
4490
|
+
reasoning: z$1.ZodString;
|
|
4491
|
+
}, z$1.core.$strip>]>;
|
|
4492
|
+
export type PrewatchGeneration = z$1.infer<typeof prewatchGenerationSchema>;
|
|
4493
|
+
export declare const emptyParamsSchema: z$1.ZodReadonly<z$1.ZodTuple<[], null>>;
|
|
4494
|
+
export type EmptyParams = z$1.infer<typeof emptyParamsSchema>;
|
|
4495
|
+
export declare const singleParamSchema: z$1.ZodReadonly<z$1.ZodTuple<[z$1.ZodString], null>>;
|
|
4496
|
+
export type SingleParam = z$1.infer<typeof singleParamSchema>;
|
|
4497
|
+
export type OptionalParams<S, K extends PropertyKey> = S extends { [P in K]: infer T extends z$1.ZodType; } ? { [P in K]: z$1.infer<T>; } : { [P in K]?: never; };
|
|
4498
|
+
export declare const incidentWithChannelSchema: z$1.ZodObject<{
|
|
4499
|
+
id: z$1.ZodUUID;
|
|
4500
|
+
channelId: z$1.ZodUUID;
|
|
4501
|
+
ts: z$1.ZodCoercedDate<unknown>;
|
|
4502
4502
|
channel: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4503
4503
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"channels", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4504
4504
|
name: string;
|
|
@@ -4552,14 +4552,14 @@ export declare const incidentWithChannelSchema: z.ZodObject<{
|
|
|
4552
4552
|
out: {};
|
|
4553
4553
|
in: {};
|
|
4554
4554
|
}>;
|
|
4555
|
-
export declare const getHealthOutputSchema: z.ZodObject<{
|
|
4556
|
-
startupTime: z.ZodString;
|
|
4557
|
-
memoryLoad: z.ZodNumber;
|
|
4558
|
-
}, z.core.$strip>;
|
|
4559
|
-
export declare const getIncidentsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
4560
|
-
id: z.ZodUUID;
|
|
4561
|
-
channelId: z.ZodUUID;
|
|
4562
|
-
ts: z.ZodCoercedDate<unknown>;
|
|
4555
|
+
export declare const getHealthOutputSchema: z$1.ZodObject<{
|
|
4556
|
+
startupTime: z$1.ZodString;
|
|
4557
|
+
memoryLoad: z$1.ZodNumber;
|
|
4558
|
+
}, z$1.core.$strip>;
|
|
4559
|
+
export declare const getIncidentsOutputSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
4560
|
+
id: z$1.ZodUUID;
|
|
4561
|
+
channelId: z$1.ZodUUID;
|
|
4562
|
+
ts: z$1.ZodCoercedDate<unknown>;
|
|
4563
4563
|
channel: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4564
4564
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"channels", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4565
4565
|
name: string;
|
|
@@ -4613,27 +4613,27 @@ export declare const getIncidentsOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
4613
4613
|
out: {};
|
|
4614
4614
|
in: {};
|
|
4615
4615
|
}>>;
|
|
4616
|
-
export declare const getIncidentOutputSchema: z.ZodObject<{
|
|
4617
|
-
id: z.ZodUUID;
|
|
4618
|
-
channelId: z.ZodUUID;
|
|
4619
|
-
ts: z.ZodCoercedDate<unknown>;
|
|
4620
|
-
incidentEvents: z.ZodArray<z.ZodObject<{
|
|
4621
|
-
id: z.ZodUUID;
|
|
4622
|
-
eventId: z.ZodUUID;
|
|
4623
|
-
incidentId: z.ZodUUID;
|
|
4624
|
-
event: z.ZodObject<{
|
|
4625
|
-
id: z.ZodUUID;
|
|
4626
|
-
channelId: z.ZodUUID;
|
|
4627
|
-
slackAuthorId: z.ZodString;
|
|
4628
|
-
slackChannelId: z.ZodString;
|
|
4629
|
-
slackTeamId: z.ZodString;
|
|
4630
|
-
ts: z.ZodCoercedDate<unknown>;
|
|
4631
|
-
textRaw: z.ZodNullable<z.ZodString>;
|
|
4632
|
-
textNorm: z.ZodNullable<z.ZodString>;
|
|
4633
|
-
payload: z.ZodArray<z.ZodArray<z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>>> | z.ZodArray<z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>> | z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>;
|
|
4634
|
-
mlClassification: z.ZodInt;
|
|
4635
|
-
permalink: z.ZodString;
|
|
4636
|
-
prewatchResult: z.ZodOptional<z.ZodNullable<import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4616
|
+
export declare const getIncidentOutputSchema: z$1.ZodObject<{
|
|
4617
|
+
id: z$1.ZodUUID;
|
|
4618
|
+
channelId: z$1.ZodUUID;
|
|
4619
|
+
ts: z$1.ZodCoercedDate<unknown>;
|
|
4620
|
+
incidentEvents: z$1.ZodArray<z$1.ZodObject<{
|
|
4621
|
+
id: z$1.ZodUUID;
|
|
4622
|
+
eventId: z$1.ZodUUID;
|
|
4623
|
+
incidentId: z$1.ZodUUID;
|
|
4624
|
+
event: z$1.ZodObject<{
|
|
4625
|
+
id: z$1.ZodUUID;
|
|
4626
|
+
channelId: z$1.ZodUUID;
|
|
4627
|
+
slackAuthorId: z$1.ZodString;
|
|
4628
|
+
slackChannelId: z$1.ZodString;
|
|
4629
|
+
slackTeamId: z$1.ZodString;
|
|
4630
|
+
ts: z$1.ZodCoercedDate<unknown>;
|
|
4631
|
+
textRaw: z$1.ZodNullable<z$1.ZodString>;
|
|
4632
|
+
textNorm: z$1.ZodNullable<z$1.ZodString>;
|
|
4633
|
+
payload: z$1.ZodArray<z$1.ZodArray<z$1.ZodType<import("drizzle-orm").Json, unknown, z$1.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>>> | z$1.ZodArray<z$1.ZodType<import("drizzle-orm").Json, unknown, z$1.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>> | z$1.ZodType<import("drizzle-orm").Json, unknown, z$1.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>;
|
|
4634
|
+
mlClassification: z$1.ZodInt;
|
|
4635
|
+
permalink: z$1.ZodString;
|
|
4636
|
+
prewatchResult: z$1.ZodOptional<z$1.ZodNullable<import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4637
4637
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"prewatchResults", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4638
4638
|
name: string;
|
|
4639
4639
|
tableName: "prewatchResults";
|
|
@@ -4742,7 +4742,7 @@ export declare const getIncidentOutputSchema: z.ZodObject<{
|
|
|
4742
4742
|
}, undefined, {
|
|
4743
4743
|
date: true;
|
|
4744
4744
|
}>>>;
|
|
4745
|
-
watchResult: z.ZodOptional<z.ZodNullable<import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4745
|
+
watchResult: z$1.ZodOptional<z$1.ZodNullable<import("drizzle-orm/zod").BuildSchema<"select", {
|
|
4746
4746
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"watchResults", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
4747
4747
|
name: string;
|
|
4748
4748
|
tableName: "watchResults";
|
|
@@ -4927,9 +4927,9 @@ export declare const getIncidentOutputSchema: z.ZodObject<{
|
|
|
4927
4927
|
out: {};
|
|
4928
4928
|
in: {};
|
|
4929
4929
|
}>;
|
|
4930
|
-
export declare const postIncidentCommentInputSchema: z.ZodObject<{
|
|
4931
|
-
incidentId: z.ZodUUID;
|
|
4932
|
-
content: z.ZodString;
|
|
4930
|
+
export declare const postIncidentCommentInputSchema: z$1.ZodObject<{
|
|
4931
|
+
incidentId: z$1.ZodUUID;
|
|
4932
|
+
content: z$1.ZodString;
|
|
4933
4933
|
}, {
|
|
4934
4934
|
out: {};
|
|
4935
4935
|
in: {};
|
|
@@ -5002,18 +5002,18 @@ export declare const apiSchemas: {
|
|
|
5002
5002
|
getHealth: {
|
|
5003
5003
|
method: string;
|
|
5004
5004
|
path: string;
|
|
5005
|
-
output: z.ZodObject<{
|
|
5006
|
-
startupTime: z.ZodString;
|
|
5007
|
-
memoryLoad: z.ZodNumber;
|
|
5008
|
-
}, z.core.$strip>;
|
|
5005
|
+
output: z$1.ZodObject<{
|
|
5006
|
+
startupTime: z$1.ZodString;
|
|
5007
|
+
memoryLoad: z$1.ZodNumber;
|
|
5008
|
+
}, z$1.core.$strip>;
|
|
5009
5009
|
};
|
|
5010
5010
|
getIncidents: {
|
|
5011
5011
|
method: string;
|
|
5012
5012
|
path: string;
|
|
5013
|
-
output: z.ZodArray<z.ZodObject<{
|
|
5014
|
-
id: z.ZodUUID;
|
|
5015
|
-
channelId: z.ZodUUID;
|
|
5016
|
-
ts: z.ZodCoercedDate<unknown>;
|
|
5013
|
+
output: z$1.ZodArray<z$1.ZodObject<{
|
|
5014
|
+
id: z$1.ZodUUID;
|
|
5015
|
+
channelId: z$1.ZodUUID;
|
|
5016
|
+
ts: z$1.ZodCoercedDate<unknown>;
|
|
5017
5017
|
channel: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
5018
5018
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"channels", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
5019
5019
|
name: string;
|
|
@@ -5071,27 +5071,27 @@ export declare const apiSchemas: {
|
|
|
5071
5071
|
getIncident: {
|
|
5072
5072
|
method: string;
|
|
5073
5073
|
path: string;
|
|
5074
|
-
output: z.ZodObject<{
|
|
5075
|
-
id: z.ZodUUID;
|
|
5076
|
-
channelId: z.ZodUUID;
|
|
5077
|
-
ts: z.ZodCoercedDate<unknown>;
|
|
5078
|
-
incidentEvents: z.ZodArray<z.ZodObject<{
|
|
5079
|
-
id: z.ZodUUID;
|
|
5080
|
-
eventId: z.ZodUUID;
|
|
5081
|
-
incidentId: z.ZodUUID;
|
|
5082
|
-
event: z.ZodObject<{
|
|
5083
|
-
id: z.ZodUUID;
|
|
5084
|
-
channelId: z.ZodUUID;
|
|
5085
|
-
slackAuthorId: z.ZodString;
|
|
5086
|
-
slackChannelId: z.ZodString;
|
|
5087
|
-
slackTeamId: z.ZodString;
|
|
5088
|
-
ts: z.ZodCoercedDate<unknown>;
|
|
5089
|
-
textRaw: z.ZodNullable<z.ZodString>;
|
|
5090
|
-
textNorm: z.ZodNullable<z.ZodString>;
|
|
5091
|
-
payload: z.ZodArray<z.ZodArray<z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>>> | z.ZodArray<z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>> | z.ZodType<import("drizzle-orm").Json, unknown, z.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>;
|
|
5092
|
-
mlClassification: z.ZodInt;
|
|
5093
|
-
permalink: z.ZodString;
|
|
5094
|
-
prewatchResult: z.ZodOptional<z.ZodNullable<import("drizzle-orm/zod").BuildSchema<"select", {
|
|
5074
|
+
output: z$1.ZodObject<{
|
|
5075
|
+
id: z$1.ZodUUID;
|
|
5076
|
+
channelId: z$1.ZodUUID;
|
|
5077
|
+
ts: z$1.ZodCoercedDate<unknown>;
|
|
5078
|
+
incidentEvents: z$1.ZodArray<z$1.ZodObject<{
|
|
5079
|
+
id: z$1.ZodUUID;
|
|
5080
|
+
eventId: z$1.ZodUUID;
|
|
5081
|
+
incidentId: z$1.ZodUUID;
|
|
5082
|
+
event: z$1.ZodObject<{
|
|
5083
|
+
id: z$1.ZodUUID;
|
|
5084
|
+
channelId: z$1.ZodUUID;
|
|
5085
|
+
slackAuthorId: z$1.ZodString;
|
|
5086
|
+
slackChannelId: z$1.ZodString;
|
|
5087
|
+
slackTeamId: z$1.ZodString;
|
|
5088
|
+
ts: z$1.ZodCoercedDate<unknown>;
|
|
5089
|
+
textRaw: z$1.ZodNullable<z$1.ZodString>;
|
|
5090
|
+
textNorm: z$1.ZodNullable<z$1.ZodString>;
|
|
5091
|
+
payload: z$1.ZodArray<z$1.ZodArray<z$1.ZodType<import("drizzle-orm").Json, unknown, z$1.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>>> | z$1.ZodArray<z$1.ZodType<import("drizzle-orm").Json, unknown, z$1.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>> | z$1.ZodType<import("drizzle-orm").Json, unknown, z$1.core.$ZodTypeInternals<import("drizzle-orm").Json, unknown>>;
|
|
5092
|
+
mlClassification: z$1.ZodInt;
|
|
5093
|
+
permalink: z$1.ZodString;
|
|
5094
|
+
prewatchResult: z$1.ZodOptional<z$1.ZodNullable<import("drizzle-orm/zod").BuildSchema<"select", {
|
|
5095
5095
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"prewatchResults", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
5096
5096
|
name: string;
|
|
5097
5097
|
tableName: "prewatchResults";
|
|
@@ -5200,7 +5200,7 @@ export declare const apiSchemas: {
|
|
|
5200
5200
|
}, undefined, {
|
|
5201
5201
|
date: true;
|
|
5202
5202
|
}>>>;
|
|
5203
|
-
watchResult: z.ZodOptional<z.ZodNullable<import("drizzle-orm/zod").BuildSchema<"select", {
|
|
5203
|
+
watchResult: z$1.ZodOptional<z$1.ZodNullable<import("drizzle-orm/zod").BuildSchema<"select", {
|
|
5204
5204
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"watchResults", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgUUIDBuilder>>, {
|
|
5205
5205
|
name: string;
|
|
5206
5206
|
tableName: "watchResults";
|
|
@@ -5385,7 +5385,7 @@ export declare const apiSchemas: {
|
|
|
5385
5385
|
out: {};
|
|
5386
5386
|
in: {};
|
|
5387
5387
|
}>;
|
|
5388
|
-
params: z.ZodReadonly<z.ZodTuple<[z.ZodString], null>>;
|
|
5388
|
+
params: z$1.ZodReadonly<z$1.ZodTuple<[z$1.ZodString], null>>;
|
|
5389
5389
|
};
|
|
5390
5390
|
postIncidentComment: {
|
|
5391
5391
|
method: string;
|
|
@@ -5454,9 +5454,9 @@ export declare const apiSchemas: {
|
|
|
5454
5454
|
}, undefined, {
|
|
5455
5455
|
date: true;
|
|
5456
5456
|
}>;
|
|
5457
|
-
input: z.ZodObject<{
|
|
5458
|
-
incidentId: z.ZodUUID;
|
|
5459
|
-
content: z.ZodString;
|
|
5457
|
+
input: z$1.ZodObject<{
|
|
5458
|
+
incidentId: z$1.ZodUUID;
|
|
5459
|
+
content: z$1.ZodString;
|
|
5460
5460
|
}, {
|
|
5461
5461
|
out: {};
|
|
5462
5462
|
in: {};
|
|
@@ -5469,70 +5469,7 @@ export type ProcedureName = keyof ApiSchemas;
|
|
|
5469
5469
|
//#region client.d.ts
|
|
5470
5470
|
declare function client<P extends ProcedureName>(props: {
|
|
5471
5471
|
procedure: P;
|
|
5472
|
-
} & OptionalParams<ApiSchemas[P], "params"> & OptionalParams<ApiSchemas[P], "input">): Promise<
|
|
5473
|
-
id: string;
|
|
5474
|
-
channelId: string;
|
|
5475
|
-
ts: Date;
|
|
5476
|
-
channel: {
|
|
5477
|
-
id: string;
|
|
5478
|
-
slackChannelId: string;
|
|
5479
|
-
slackName: string;
|
|
5480
|
-
};
|
|
5481
|
-
}[] | {
|
|
5482
|
-
id: string;
|
|
5483
|
-
incidentId: string;
|
|
5484
|
-
content: string;
|
|
5485
|
-
ts: Date;
|
|
5486
|
-
} | {
|
|
5487
|
-
startupTime: string;
|
|
5488
|
-
memoryLoad: number;
|
|
5489
|
-
} | {
|
|
5490
|
-
id: string;
|
|
5491
|
-
channelId: string;
|
|
5492
|
-
ts: Date;
|
|
5493
|
-
incidentEvents: {
|
|
5494
|
-
id: string;
|
|
5495
|
-
eventId: string;
|
|
5496
|
-
incidentId: string;
|
|
5497
|
-
event: {
|
|
5498
|
-
id: string;
|
|
5499
|
-
channelId: string;
|
|
5500
|
-
slackAuthorId: string;
|
|
5501
|
-
slackChannelId: string;
|
|
5502
|
-
slackTeamId: string;
|
|
5503
|
-
ts: Date;
|
|
5504
|
-
textRaw: string | null;
|
|
5505
|
-
textNorm: string | null;
|
|
5506
|
-
payload: import("drizzle-orm").Json[][] | import("drizzle-orm").Json[] | import("drizzle-orm").Json;
|
|
5507
|
-
mlClassification: number;
|
|
5508
|
-
permalink: string;
|
|
5509
|
-
prewatchResult?: {
|
|
5510
|
-
id: string;
|
|
5511
|
-
triggerEventId: string;
|
|
5512
|
-
channelId: string;
|
|
5513
|
-
suspicious: boolean;
|
|
5514
|
-
reasoning: string;
|
|
5515
|
-
title: string | null;
|
|
5516
|
-
incidentId: string | null;
|
|
5517
|
-
} | null | undefined;
|
|
5518
|
-
watchResult?: {
|
|
5519
|
-
id: string;
|
|
5520
|
-
incidentId: string;
|
|
5521
|
-
triggerEventId: string;
|
|
5522
|
-
channelId: string;
|
|
5523
|
-
statusSignal: "failure" | "recovery" | null;
|
|
5524
|
-
important: boolean;
|
|
5525
|
-
description: string | null;
|
|
5526
|
-
summary: string | null;
|
|
5527
|
-
} | null | undefined;
|
|
5528
|
-
};
|
|
5529
|
-
}[];
|
|
5530
|
-
channel: {
|
|
5531
|
-
id: string;
|
|
5532
|
-
slackChannelId: string;
|
|
5533
|
-
slackName: string;
|
|
5534
|
-
};
|
|
5535
|
-
}>;
|
|
5472
|
+
} & OptionalParams<ApiSchemas[P], "params"> & OptionalParams<ApiSchemas[P], "input">): Promise<z.infer<ApiSchemas[P]['output']>>;
|
|
5536
5473
|
//#endregion
|
|
5537
5474
|
export { client };
|
|
5538
5475
|
//# sourceMappingURL=index.d.ts.map
|