terse-types 0.9.0 → 0.9.2

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.
@@ -122,13 +122,6 @@ export declare const ApiRoutes: {
122
122
  BY_ID: string;
123
123
  WEBHOOK_URL: string;
124
124
  };
125
- IMPROVEMENTS: {
126
- BY_AGENT_ID: string;
127
- APPLY: string;
128
- DISMISS: string;
129
- UNDO_DISMISS: string;
130
- TOGGLE_ENABLED: string;
131
- };
132
125
  TEMPLATES: string;
133
126
  PUBLIC: {
134
127
  TEMPLATES: string;
@@ -122,13 +122,6 @@
122
122
  "BY_ID": "/agents/:id",
123
123
  "WEBHOOK_URL": "/agents/:agentId/webhook-url"
124
124
  },
125
- "IMPROVEMENTS": {
126
- "BY_AGENT_ID": "/agents/:agentId/improvements",
127
- "APPLY": "/agents/:agentId/improvements/:id/apply",
128
- "DISMISS": "/agents/:agentId/improvements/:id/dismiss",
129
- "UNDO_DISMISS": "/agents/:agentId/improvements/:id/undo-dismiss",
130
- "TOGGLE_ENABLED": "/agents/:agentId/improvements-enabled"
131
- },
132
125
  "TEMPLATES": "/templates",
133
126
  "PUBLIC": {
134
127
  "TEMPLATES": "/public/templates"
@@ -9,7 +9,6 @@
9
9
  "JOBS": {
10
10
  "LIST": "/app/jobs",
11
11
  "BY_ID": "/app/jobs/:id",
12
- "IMPROVEMENTS": "/app/jobs/:id?tab=improvements",
13
12
  "ALERTS": "/app/jobs/:id?tab=setup&section=alerts",
14
13
  "RUN_HISTORY": "/app/jobs/:id?tab=history&runId=:runId"
15
14
  },
@@ -11,7 +11,6 @@ export declare const FrontendRoutes: {
11
11
  JOBS: {
12
12
  LIST: string;
13
13
  BY_ID: string;
14
- IMPROVEMENTS: string;
15
14
  ALERTS: string;
16
15
  RUN_HISTORY: string;
17
16
  };
@@ -47,9 +47,6 @@ export declare const agentListKey: ({ page, limit, isActive, search }?: AgentLis
47
47
  export declare const agentDetailKey: (id: string | null) => readonly [string, {
48
48
  id: string;
49
49
  }] | null;
50
- export declare const agentImprovementsKey: (agentId: string | null) => readonly [string, {
51
- agentId: string;
52
- }] | null;
53
50
  export declare const orgLogoKey: (organizationId: string | null | undefined) => readonly [string, string] | null;
54
51
  export declare const userByIdKey: (userId: string | null | undefined) => readonly [string, string] | null;
55
52
  export declare const projectDeploysKey: (projectId: string) => readonly [string, string];
@@ -135,11 +135,6 @@ export const agentDetailKey = (id) => {
135
135
  return null;
136
136
  return ["agent", { id }];
137
137
  };
138
- export const agentImprovementsKey = (agentId) => {
139
- if (!agentId)
140
- return null;
141
- return ["agentImprovements", { agentId }];
142
- };
143
138
  export const orgLogoKey = (organizationId) => {
144
139
  if (!organizationId)
145
140
  return null;
@@ -8,11 +8,9 @@ export interface NotificationDestination {
8
8
  export interface NotificationSettings {
9
9
  id: string;
10
10
  agentDefaultNotifications: RunHistoryActionType[];
11
- weeklyAgentImprovements: boolean;
12
11
  }
13
12
  export interface UpdateNotificationSettingsRequest {
14
13
  agentDefaultNotifications: RunHistoryActionType[];
15
- weeklyAgentImprovements: boolean;
16
14
  applyToAllAgents?: boolean;
17
15
  }
18
16
  export declare const NotificationDestinationType: {
@@ -3,6 +3,7 @@ export var SentNotificationEventType;
3
3
  SentNotificationEventType["RUN_NOTIFICATION"] = "run_notification";
4
4
  SentNotificationEventType["APPROVAL_REQUEST"] = "approval_request";
5
5
  SentNotificationEventType["RUN_FAILURE"] = "run_failure";
6
+ // Retained so previously sent weekly reviews remain readable in notification history.
6
7
  SentNotificationEventType["WEEKLY_REVIEW"] = "weekly_review";
7
8
  })(SentNotificationEventType || (SentNotificationEventType = {}));
8
9
  export var SentNotificationStatus;
package/dist/types.d.ts CHANGED
@@ -9035,112 +9035,6 @@ export declare const recentAgentSchema: z.ZodObject<{
9035
9035
  lastEventProcessedAt: z.ZodNullable<z.ZodString>;
9036
9036
  }, z.core.$strip>;
9037
9037
  export type RecentAgent = z.infer<typeof recentAgentSchema>;
9038
- export declare const agentImprovementStatusSchema: z.ZodEnum<{
9039
- PENDING: "PENDING";
9040
- APPLIED: "APPLIED";
9041
- DISMISSED: "DISMISSED";
9042
- }>;
9043
- export type AgentImprovementStatus = z.infer<typeof agentImprovementStatusSchema>;
9044
- export declare const agentImprovementTargetAreaSchema: z.ZodEnum<{
9045
- code: "code";
9046
- prompt: "prompt";
9047
- general: "general";
9048
- trigger_config: "trigger_config";
9049
- output_config: "output_config";
9050
- }>;
9051
- export type AgentImprovementTargetArea = z.infer<typeof agentImprovementTargetAreaSchema>;
9052
- export declare const agentReviewSchema: z.ZodObject<{
9053
- id: z.ZodString;
9054
- automationId: z.ZodString;
9055
- title: z.ZodString;
9056
- summary: z.ZodString;
9057
- runsAnalyzed: z.ZodNumber;
9058
- reviewPeriodStart: z.ZodString;
9059
- reviewPeriodEnd: z.ZodString;
9060
- createdAt: z.ZodString;
9061
- }, z.core.$strip>;
9062
- export type AgentReview = z.infer<typeof agentReviewSchema>;
9063
- export declare const agentImprovementSchema: z.ZodObject<{
9064
- id: z.ZodString;
9065
- reviewId: z.ZodString;
9066
- automationId: z.ZodString;
9067
- title: z.ZodString;
9068
- description: z.ZodString;
9069
- targetArea: z.ZodEnum<{
9070
- code: "code";
9071
- prompt: "prompt";
9072
- general: "general";
9073
- trigger_config: "trigger_config";
9074
- output_config: "output_config";
9075
- }>;
9076
- confidence: z.ZodNumber;
9077
- status: z.ZodEnum<{
9078
- PENDING: "PENDING";
9079
- APPLIED: "APPLIED";
9080
- DISMISSED: "DISMISSED";
9081
- }>;
9082
- suggestedPatch: z.ZodOptional<z.ZodString>;
9083
- appliedPrompt: z.ZodOptional<z.ZodString>;
9084
- appliedAt: z.ZodOptional<z.ZodString>;
9085
- dismissedAt: z.ZodOptional<z.ZodString>;
9086
- createdAt: z.ZodString;
9087
- updatedAt: z.ZodString;
9088
- }, z.core.$strip>;
9089
- export type AgentImprovement = z.infer<typeof agentImprovementSchema>;
9090
- export declare const getAgentImprovementsResponseSchema: z.ZodObject<{
9091
- review: z.ZodNullable<z.ZodObject<{
9092
- id: z.ZodString;
9093
- automationId: z.ZodString;
9094
- title: z.ZodString;
9095
- summary: z.ZodString;
9096
- runsAnalyzed: z.ZodNumber;
9097
- reviewPeriodStart: z.ZodString;
9098
- reviewPeriodEnd: z.ZodString;
9099
- createdAt: z.ZodString;
9100
- }, z.core.$strip>>;
9101
- improvements: z.ZodArray<z.ZodObject<{
9102
- id: z.ZodString;
9103
- reviewId: z.ZodString;
9104
- automationId: z.ZodString;
9105
- title: z.ZodString;
9106
- description: z.ZodString;
9107
- targetArea: z.ZodEnum<{
9108
- code: "code";
9109
- prompt: "prompt";
9110
- general: "general";
9111
- trigger_config: "trigger_config";
9112
- output_config: "output_config";
9113
- }>;
9114
- confidence: z.ZodNumber;
9115
- status: z.ZodEnum<{
9116
- PENDING: "PENDING";
9117
- APPLIED: "APPLIED";
9118
- DISMISSED: "DISMISSED";
9119
- }>;
9120
- suggestedPatch: z.ZodOptional<z.ZodString>;
9121
- appliedPrompt: z.ZodOptional<z.ZodString>;
9122
- appliedAt: z.ZodOptional<z.ZodString>;
9123
- dismissedAt: z.ZodOptional<z.ZodString>;
9124
- createdAt: z.ZodString;
9125
- updatedAt: z.ZodString;
9126
- }, z.core.$strip>>;
9127
- improvementsEnabled: z.ZodBoolean;
9128
- }, z.core.$strip>;
9129
- export type GetAgentImprovementsResponse = z.infer<typeof getAgentImprovementsResponseSchema>;
9130
- export declare const applyImprovementResponseSchema: z.ZodObject<{
9131
- success: z.ZodBoolean;
9132
- appliedPrompt: z.ZodString;
9133
- }, z.core.$strip>;
9134
- export type ApplyImprovementResponse = z.infer<typeof applyImprovementResponseSchema>;
9135
- export declare const dismissImprovementResponseSchema: z.ZodObject<{
9136
- success: z.ZodBoolean;
9137
- }, z.core.$strip>;
9138
- export type DismissImprovementResponse = z.infer<typeof dismissImprovementResponseSchema>;
9139
- export declare const toggleImprovementsEnabledResponseSchema: z.ZodObject<{
9140
- success: z.ZodBoolean;
9141
- improvementsEnabled: z.ZodBoolean;
9142
- }, z.core.$strip>;
9143
- export type ToggleImprovementsEnabledResponse = z.infer<typeof toggleImprovementsEnabledResponseSchema>;
9144
9038
  export declare const repositorySchema: z.ZodObject<{
9145
9039
  name: z.ZodString;
9146
9040
  owner: z.ZodString;
@@ -15566,10 +15460,6 @@ export type SdkJobServerCheckResponse = z.infer<typeof sdkJobServerCheckResponse
15566
15460
  export declare const agentIdParamsSchema: z.ZodObject<{
15567
15461
  agentId: z.ZodString;
15568
15462
  }, z.core.$strip>;
15569
- export declare const agentAndImprovementParamsSchema: z.ZodObject<{
15570
- agentId: z.ZodString;
15571
- id: z.ZodString;
15572
- }, z.core.$strip>;
15573
15463
  export declare const manualTriggerParamsSchema: z.ZodObject<{
15574
15464
  inputId: z.ZodString;
15575
15465
  }, z.core.$strip>;
@@ -20011,10 +19901,6 @@ export declare const manualTriggerRequestSchema: z.ZodObject<{
20011
19901
  context: z.ZodOptional<z.ZodString>;
20012
19902
  }, z.core.$strip>;
20013
19903
  export type ManualTriggerRequest = z.infer<typeof manualTriggerRequestSchema>;
20014
- export declare const toggleImprovementsEnabledRequestSchema: z.ZodObject<{
20015
- enabled: z.ZodBoolean;
20016
- }, z.core.$strip>;
20017
- export type ToggleImprovementsEnabledRequest = z.infer<typeof toggleImprovementsEnabledRequestSchema>;
20018
19904
  export declare const workosWebhookSecretUpdateRequestSchema: z.ZodObject<{
20019
19905
  webhookSecret: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
20020
19906
  state: z.ZodOptional<z.ZodString>;
package/dist/types.js CHANGED
@@ -303,50 +303,6 @@ export const recentAgentSchema = agentSchema.extend({
303
303
  updatedAt: z.string(),
304
304
  lastEventProcessedAt: z.string().nullable()
305
305
  });
306
- export const agentImprovementStatusSchema = z.enum(["PENDING", "APPLIED", "DISMISSED"]);
307
- export const agentImprovementTargetAreaSchema = z.enum(["prompt", "trigger_config", "output_config", "general", "code"]);
308
- export const agentReviewSchema = z.object({
309
- id: z.string(),
310
- automationId: z.string(),
311
- title: z.string(),
312
- summary: z.string(),
313
- runsAnalyzed: z.number().int(),
314
- reviewPeriodStart: z.string(),
315
- reviewPeriodEnd: z.string(),
316
- createdAt: z.string()
317
- });
318
- export const agentImprovementSchema = z.object({
319
- id: z.string(),
320
- reviewId: z.string(),
321
- automationId: z.string(),
322
- title: z.string(),
323
- description: z.string(),
324
- targetArea: agentImprovementTargetAreaSchema,
325
- confidence: z.number(),
326
- status: agentImprovementStatusSchema,
327
- suggestedPatch: z.string().optional(),
328
- appliedPrompt: z.string().optional(),
329
- appliedAt: z.string().optional(),
330
- dismissedAt: z.string().optional(),
331
- createdAt: z.string(),
332
- updatedAt: z.string()
333
- });
334
- export const getAgentImprovementsResponseSchema = z.object({
335
- review: agentReviewSchema.nullable(),
336
- improvements: z.array(agentImprovementSchema),
337
- improvementsEnabled: z.boolean()
338
- });
339
- export const applyImprovementResponseSchema = z.object({
340
- success: z.boolean(),
341
- appliedPrompt: z.string()
342
- });
343
- export const dismissImprovementResponseSchema = z.object({
344
- success: z.boolean()
345
- });
346
- export const toggleImprovementsEnabledResponseSchema = z.object({
347
- success: z.boolean(),
348
- improvementsEnabled: z.boolean()
349
- });
350
306
  export const repositorySchema = z.object({
351
307
  name: z.string(),
352
308
  owner: z.string(),
@@ -787,10 +743,6 @@ export const sdkJobServerCheckResponseSchema = z.object({
787
743
  export const agentIdParamsSchema = z.object({
788
744
  agentId: z.string()
789
745
  });
790
- export const agentAndImprovementParamsSchema = z.object({
791
- agentId: z.string(),
792
- id: z.string()
793
- });
794
746
  export const manualTriggerParamsSchema = z.object({
795
747
  inputId: z.string()
796
748
  });
@@ -881,9 +833,6 @@ export const sdkRunTriggerEventResponseSchema = z.object({
881
833
  export const manualTriggerRequestSchema = z.object({
882
834
  context: z.string().optional()
883
835
  });
884
- export const toggleImprovementsEnabledRequestSchema = z.object({
885
- enabled: z.boolean()
886
- });
887
836
  export const workosWebhookSecretUpdateRequestSchema = z.object({
888
837
  webhookSecret: z
889
838
  .string()
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
+ "sideEffects": false,
5
6
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
7
  "main": "./dist/index.js",
7
8
  "types": "./dist/index.d.ts",