@reduck-ai/sdk 1.1.18 → 1.1.19
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/schemas.d.ts +6 -3
- package/dist/schemas.js +2 -1
- package/package.json +1 -1
package/dist/schemas.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const RunEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
26
26
|
device_id: z.ZodString;
|
|
27
27
|
} & {
|
|
28
28
|
type: z.ZodLiteral<"run_requested">;
|
|
29
|
-
query: z.ZodString
|
|
29
|
+
query: z.ZodOptional<z.ZodString>;
|
|
30
30
|
args: z.ZodObject<{
|
|
31
31
|
mount: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
32
32
|
method: z.ZodOptional<z.ZodString>;
|
|
@@ -51,7 +51,6 @@ export declare const RunEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
51
51
|
type: "run_requested";
|
|
52
52
|
run_id: string;
|
|
53
53
|
device_id: string;
|
|
54
|
-
query: string;
|
|
55
54
|
args: {
|
|
56
55
|
mount?: string[] | undefined;
|
|
57
56
|
method?: string | undefined;
|
|
@@ -59,12 +58,12 @@ export declare const RunEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
59
58
|
paste_slots?: Record<string, string> | undefined;
|
|
60
59
|
output_schema?: Record<string, unknown> | undefined;
|
|
61
60
|
};
|
|
61
|
+
query?: string | undefined;
|
|
62
62
|
cli_args?: Record<string, unknown> | undefined;
|
|
63
63
|
}, {
|
|
64
64
|
type: "run_requested";
|
|
65
65
|
run_id: string;
|
|
66
66
|
device_id: string;
|
|
67
|
-
query: string;
|
|
68
67
|
args: {
|
|
69
68
|
mount?: string[] | undefined;
|
|
70
69
|
method?: string | undefined;
|
|
@@ -72,6 +71,7 @@ export declare const RunEventSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
|
|
|
72
71
|
paste_slots?: Record<string, string> | undefined;
|
|
73
72
|
output_schema?: Record<string, unknown> | undefined;
|
|
74
73
|
};
|
|
74
|
+
query?: string | undefined;
|
|
75
75
|
cli_args?: Record<string, unknown> | undefined;
|
|
76
76
|
}>, z.ZodObject<{
|
|
77
77
|
run_id: z.ZodString;
|
|
@@ -522,6 +522,7 @@ export declare const MethodSchema: z.ZodObject<{
|
|
|
522
522
|
}>;
|
|
523
523
|
export declare const SiteSchema: z.ZodObject<{
|
|
524
524
|
host: z.ZodString;
|
|
525
|
+
notes: z.ZodDefault<z.ZodString>;
|
|
525
526
|
methods: z.ZodArray<z.ZodObject<{
|
|
526
527
|
host: z.ZodString;
|
|
527
528
|
method_slug: z.ZodString;
|
|
@@ -543,6 +544,7 @@ export declare const SiteSchema: z.ZodObject<{
|
|
|
543
544
|
}>, "many">;
|
|
544
545
|
}, "strip", z.ZodTypeAny, {
|
|
545
546
|
host: string;
|
|
547
|
+
notes: string;
|
|
546
548
|
methods: {
|
|
547
549
|
output_schema: Record<string, unknown> | null;
|
|
548
550
|
args: Record<string, unknown>;
|
|
@@ -559,4 +561,5 @@ export declare const SiteSchema: z.ZodObject<{
|
|
|
559
561
|
method_slug: string;
|
|
560
562
|
description: string;
|
|
561
563
|
}[];
|
|
564
|
+
notes?: string | undefined;
|
|
562
565
|
}>;
|
package/dist/schemas.js
CHANGED
|
@@ -18,7 +18,7 @@ const RunRequestedArgsSchema = z.object({
|
|
|
18
18
|
export const RunEventSchema = z.discriminatedUnion("type", [
|
|
19
19
|
RunEventBase.extend({
|
|
20
20
|
type: z.literal("run_requested"),
|
|
21
|
-
query: z.string(),
|
|
21
|
+
query: z.string().optional(),
|
|
22
22
|
args: RunRequestedArgsSchema,
|
|
23
23
|
cli_args: z.record(z.unknown()).optional(),
|
|
24
24
|
}),
|
|
@@ -94,5 +94,6 @@ export const MethodSchema = z.object({
|
|
|
94
94
|
});
|
|
95
95
|
export const SiteSchema = z.object({
|
|
96
96
|
host: z.string(),
|
|
97
|
+
notes: z.string().default(""),
|
|
97
98
|
methods: z.array(MethodSchema),
|
|
98
99
|
});
|
package/package.json
CHANGED