syllable-sdk 1.0.16-rc.1 → 1.0.16-rc.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.
@@ -17,7 +17,7 @@ import {
17
17
  /**
18
18
  * The action to perform on the tool parameter value: `default` means only set the value (using the `format` field) if the parameter doesn't exist or is empty, `override` means always set the value," and `remove` means "remove the parameter value."
19
19
  */
20
- export const Action = {
20
+ export const ToolParameterTransformAction = {
21
21
  Default: "default",
22
22
  Override: "override",
23
23
  Remove: "remove",
@@ -25,7 +25,9 @@ export const Action = {
25
25
  /**
26
26
  * The action to perform on the tool parameter value: `default` means only set the value (using the `format` field) if the parameter doesn't exist or is empty, `override` means always set the value," and `remove` means "remove the parameter value."
27
27
  */
28
- export type Action = ClosedEnum<typeof Action>;
28
+ export type ToolParameterTransformAction = ClosedEnum<
29
+ typeof ToolParameterTransformAction
30
+ >;
29
31
 
30
32
  /**
31
33
  * A transform to be applied to the value of a tool parameter.
@@ -40,7 +42,7 @@ export type ToolParameterTransform = {
40
42
  /**
41
43
  * The action to perform on the tool parameter value: `default` means only set the value (using the `format` field) if the parameter doesn't exist or is empty, `override` means always set the value," and `remove` means "remove the parameter value."
42
44
  */
43
- action?: Action | undefined;
45
+ action?: ToolParameterTransformAction | undefined;
44
46
  /**
45
47
  * Only apply the transform if the condition is met.
46
48
  */
@@ -56,11 +58,13 @@ export type ToolParameterTransform = {
56
58
  };
57
59
 
58
60
  /** @internal */
59
- export const Action$inboundSchema: z.ZodNativeEnum<typeof Action> = z
60
- .nativeEnum(Action);
61
+ export const ToolParameterTransformAction$inboundSchema: z.ZodNativeEnum<
62
+ typeof ToolParameterTransformAction
63
+ > = z.nativeEnum(ToolParameterTransformAction);
61
64
  /** @internal */
62
- export const Action$outboundSchema: z.ZodNativeEnum<typeof Action> =
63
- Action$inboundSchema;
65
+ export const ToolParameterTransformAction$outboundSchema: z.ZodNativeEnum<
66
+ typeof ToolParameterTransformAction
67
+ > = ToolParameterTransformAction$inboundSchema;
64
68
 
65
69
  /** @internal */
66
70
  export const ToolParameterTransform$inboundSchema: z.ZodType<
@@ -68,7 +72,7 @@ export const ToolParameterTransform$inboundSchema: z.ZodType<
68
72
  z.ZodTypeDef,
69
73
  unknown
70
74
  > = z.object({
71
- action: Action$inboundSchema.default("default"),
75
+ action: ToolParameterTransformAction$inboundSchema.default("default"),
72
76
  when: z.nullable(ToolParameterTransformCondition$inboundSchema).optional(),
73
77
  value: z.nullable(z.any()).optional(),
74
78
  format: z.nullable(z.string()).optional(),
@@ -87,7 +91,7 @@ export const ToolParameterTransform$outboundSchema: z.ZodType<
87
91
  z.ZodTypeDef,
88
92
  ToolParameterTransform
89
93
  > = z.object({
90
- action: Action$outboundSchema.default("default"),
94
+ action: ToolParameterTransformAction$outboundSchema.default("default"),
91
95
  when: z.nullable(ToolParameterTransformCondition$outboundSchema).optional(),
92
96
  value: z.nullable(z.any()).optional(),
93
97
  format: z.nullable(z.string()).optional(),