terse-types 0.0.51 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.js CHANGED
@@ -234,7 +234,10 @@ export const runHistoryRecordSchema = z.object({
234
234
  decision: runHistoryDecisionSchema,
235
235
  actions: z.array(runHistoryActionBaseSchema).optional(),
236
236
  status: runHistoryStatusSchema,
237
- isManuallyTriggered: z.boolean()
237
+ isManuallyTriggered: z.boolean(),
238
+ isTest: z.boolean().optional(),
239
+ triggeredByUserId: z.string().nullish(),
240
+ replayOfRunId: z.string().nullish()
238
241
  });
239
242
  export const runHistoryRecordWithAgentSchema = runHistoryRecordSchema.extend({
240
243
  agentName: z.string()
@@ -260,7 +263,8 @@ export const agentSchema = z.object({
260
263
  notificationSettings: agentNotificationSettingsSchema.nullable(),
261
264
  toolApprovals: z.array(z.string()).nullable(),
262
265
  updatedAt: z.string().nullable(),
263
- metadata: jobMetadataSchema.nullable()
266
+ metadata: jobMetadataSchema.nullable(),
267
+ deployedAt: z.string().nullable().optional()
264
268
  });
265
269
  export const agentUpdateSchema = z.object({
266
270
  name: z.string().optional(),
@@ -680,9 +684,37 @@ export const sdkToolExecuteRequestSchema = z.object({
680
684
  toolName: z.string(),
681
685
  params: z.record(z.string(), z.unknown()).optional()
682
686
  });
687
+ export const sdkStateGetRequestSchema = z.object({
688
+ key: z.string().min(1)
689
+ });
690
+ export const sdkStatePutRequestSchema = z.object({
691
+ key: z.string().min(1),
692
+ content: z.string()
693
+ });
694
+ export const sdkStateGetResponseSchema = z.object({
695
+ content: z.string().nullable()
696
+ });
697
+ export const sdkTestRunStartRequestSchema = z.object({
698
+ projectId: z.string().min(1),
699
+ jobName: z.string().min(1),
700
+ event: serializedEventSchema,
701
+ forceLocal: z.boolean().optional(),
702
+ isTest: z.boolean().optional(),
703
+ replayOfRunId: z.string().optional()
704
+ });
705
+ export const sdkTestRunStartResponseSchema = z.object({
706
+ runId: z.string(),
707
+ /** true: the local CLI must drive the run via /sdk/*. false: it was dispatched to the self-hosted webhook. */
708
+ local: z.boolean()
709
+ });
710
+ export const sdkTestRunFinalizeRequestSchema = z.object({
711
+ status: z.enum(["success", "failed"]),
712
+ error: z.string().optional()
713
+ });
683
714
  export const sdkRunTriggerEventResponseSchema = z.object({
684
715
  event: serializedEventSchema,
685
- agentName: z.string()
716
+ agentName: z.string(),
717
+ isTest: z.boolean().optional()
686
718
  });
687
719
  export const manualTriggerRequestSchema = z.object({
688
720
  context: z.string().optional()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terse-types",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "type": "module",
5
5
  "description": "Shared Terse TypeScript types, enums, constants, and helpers.",
6
6
  "main": "./dist/index.js",
@@ -37,14 +37,17 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/TerseAI/Terse/issues"
39
39
  },
40
+ "peerDependencies": {
41
+ "zod": "^4.2.0"
42
+ },
40
43
  "devDependencies": {
41
44
  "tsc-esm-fix": "^3.1.2",
42
45
  "tsx": "^4.21.0",
43
- "typescript": "^5.8.3"
46
+ "typescript": "^5.8.3",
47
+ "zod": "^4.3.6"
44
48
  },
45
49
  "dependencies": {
46
- "@slack/web-api": "^7.15.0",
47
- "zod": "4.3.6"
50
+ "@slack/web-api": "^7.15.0"
48
51
  },
49
52
  "scripts": {
50
53
  "build": "tsc -p tsconfig.build.json && node --input-type=module -e \"import { fix } from 'tsc-esm-fix'; await fix({ cwd: process.cwd(), target: ['dist'], ext: '.js' })\"",