terse-types 0.0.8 → 0.0.10
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.d.ts +7 -2
- package/dist/types.js +12 -4
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -5958,6 +5958,7 @@ export declare const sdkRunTriggerEventResponseSchema: z.ZodObject<{
|
|
|
5958
5958
|
eventType: z.ZodLiteral<"manual_sample">;
|
|
5959
5959
|
}, z.core.$strip>]>;
|
|
5960
5960
|
}, z.core.$strip>;
|
|
5961
|
+
agentName: z.ZodString;
|
|
5961
5962
|
}, z.core.$strip>;
|
|
5962
5963
|
export type SdkRunTriggerEventResponse = z.infer<typeof sdkRunTriggerEventResponseSchema>;
|
|
5963
5964
|
export declare const manualTriggerRequestSchema: z.ZodObject<{
|
|
@@ -6121,7 +6122,7 @@ export declare const sdkSampleEventsRequestSchema: z.ZodObject<{
|
|
|
6121
6122
|
}, z.core.$strip>>;
|
|
6122
6123
|
}, z.core.$strip>;
|
|
6123
6124
|
export type SdkSampleEventsRequest = z.infer<typeof sdkSampleEventsRequestSchema>;
|
|
6124
|
-
export declare const triggerWithEventRequestSchema: z.ZodObject<{
|
|
6125
|
+
export declare const triggerWithEventRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
6125
6126
|
event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6126
6127
|
integrationType: z.ZodLiteral<import("./Integrations.js").IntegrationType.SLACK>;
|
|
6127
6128
|
channelId: z.ZodString;
|
|
@@ -6774,7 +6775,11 @@ export declare const triggerWithEventRequestSchema: z.ZodObject<{
|
|
|
6774
6775
|
integrationType: z.ZodEnum<typeof import("./Integrations.js").IntegrationType>;
|
|
6775
6776
|
eventType: z.ZodLiteral<"manual_sample">;
|
|
6776
6777
|
}, z.core.$strip>]>;
|
|
6777
|
-
|
|
6778
|
+
runId: z.ZodOptional<z.ZodUndefined>;
|
|
6779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6780
|
+
event: z.ZodOptional<z.ZodUndefined>;
|
|
6781
|
+
runId: z.ZodString;
|
|
6782
|
+
}, z.core.$strip>]>;
|
|
6778
6783
|
export type TriggerWithEventRequest = z.infer<typeof triggerWithEventRequestSchema>;
|
|
6779
6784
|
export declare const TERSE_SIGNATURE_HEADER = "x-terse-signature";
|
|
6780
6785
|
export declare const TERSE_TIMESTAMP_HEADER = "x-terse-timestamp";
|
package/dist/types.js
CHANGED
|
@@ -555,7 +555,8 @@ export const sdkToolExecuteRequestSchema = z.object({
|
|
|
555
555
|
params: z.record(z.string(), z.unknown()).optional()
|
|
556
556
|
});
|
|
557
557
|
export const sdkRunTriggerEventResponseSchema = z.object({
|
|
558
|
-
event: serializedEventSchema
|
|
558
|
+
event: serializedEventSchema,
|
|
559
|
+
agentName: z.string()
|
|
559
560
|
});
|
|
560
561
|
export const manualTriggerRequestSchema = z.object({
|
|
561
562
|
context: z.string().optional()
|
|
@@ -576,9 +577,16 @@ export const sdkSampleEventsRequestSchema = z.object({
|
|
|
576
577
|
}))
|
|
577
578
|
.min(1)
|
|
578
579
|
});
|
|
579
|
-
export const triggerWithEventRequestSchema = z.
|
|
580
|
-
|
|
581
|
-
|
|
580
|
+
export const triggerWithEventRequestSchema = z.union([
|
|
581
|
+
z.object({
|
|
582
|
+
event: TriggerSchema,
|
|
583
|
+
runId: z.undefined().optional()
|
|
584
|
+
}),
|
|
585
|
+
z.object({
|
|
586
|
+
event: z.undefined().optional(),
|
|
587
|
+
runId: z.string()
|
|
588
|
+
})
|
|
589
|
+
]);
|
|
582
590
|
export const TERSE_SIGNATURE_HEADER = "x-terse-signature";
|
|
583
591
|
export const TERSE_TIMESTAMP_HEADER = "x-terse-timestamp";
|
|
584
592
|
export const TERSE_SIGNATURE_VERSION = "v0";
|