Skip to content

Commit 764f03a

Browse files
committed
Fixed schema types for the runs.retrieve() SDK function
1 parent b999c86 commit 764f03a

File tree

1 file changed

+5
-3
lines changed
  • packages/core/src/v3/schemas

1 file changed

+5
-3
lines changed

packages/core/src/v3/schemas/api.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,17 @@ const CommonRunFields = {
507507
durationMs: z.number(),
508508
};
509509

510-
export const RelatedRunDetails = z.object({
510+
const RetrieveRunCommandFields = {
511511
...CommonRunFields,
512512
depth: z.number(),
513513
triggerFunction: z.enum(["triggerAndWait", "trigger", "batchTriggerAndWait", "batchTrigger"]),
514514
batchId: z.string().optional(),
515-
});
515+
};
516+
517+
export const RelatedRunDetails = z.object(RetrieveRunCommandFields);
516518

517519
export const RetrieveRunResponse = z.object({
518-
...CommonRunFields,
520+
...RetrieveRunCommandFields,
519521
payload: z.any().optional(),
520522
payloadPresignedUrl: z.string().optional(),
521523
output: z.any().optional(),

0 commit comments

Comments
 (0)