syllable-sdk 0.1.0-alpha.34 → 0.1.0-alpha.35

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.
@@ -14,8 +14,6 @@ import {
14
14
  AgentToolDefaults$outboundSchema,
15
15
  } from "./agenttooldefaults.js";
16
16
 
17
- export type Variables = {};
18
-
19
17
  export type AgentCreate = {
20
18
  /**
21
19
  * The agent name
@@ -56,57 +54,13 @@ export type AgentCreate = {
56
54
  /**
57
55
  * Custom context variables for the conversation session. Keys should be prefixed with "vars.".
58
56
  */
59
- variables: Variables | null;
57
+ variables: { [k: string]: string };
60
58
  /**
61
59
  * Optional headers to include in tool calls for agent.
62
60
  */
63
61
  toolHeaders: { [k: string]: string } | null;
64
62
  };
65
63
 
66
- /** @internal */
67
- export const Variables$inboundSchema: z.ZodType<
68
- Variables,
69
- z.ZodTypeDef,
70
- unknown
71
- > = z.object({});
72
-
73
- /** @internal */
74
- export type Variables$Outbound = {};
75
-
76
- /** @internal */
77
- export const Variables$outboundSchema: z.ZodType<
78
- Variables$Outbound,
79
- z.ZodTypeDef,
80
- Variables
81
- > = z.object({});
82
-
83
- /**
84
- * @internal
85
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
- */
87
- export namespace Variables$ {
88
- /** @deprecated use `Variables$inboundSchema` instead. */
89
- export const inboundSchema = Variables$inboundSchema;
90
- /** @deprecated use `Variables$outboundSchema` instead. */
91
- export const outboundSchema = Variables$outboundSchema;
92
- /** @deprecated use `Variables$Outbound` instead. */
93
- export type Outbound = Variables$Outbound;
94
- }
95
-
96
- export function variablesToJSON(variables: Variables): string {
97
- return JSON.stringify(Variables$outboundSchema.parse(variables));
98
- }
99
-
100
- export function variablesFromJSON(
101
- jsonString: string,
102
- ): SafeParseResult<Variables, SDKValidationError> {
103
- return safeParse(
104
- jsonString,
105
- (x) => Variables$inboundSchema.parse(JSON.parse(x)),
106
- `Failed to parse 'Variables' from JSON`,
107
- );
108
- }
109
-
110
64
  /** @internal */
111
65
  export const AgentCreate$inboundSchema: z.ZodType<
112
66
  AgentCreate,
@@ -122,7 +76,7 @@ export const AgentCreate$inboundSchema: z.ZodType<
122
76
  timezone: z.string(),
123
77
  prompt_tool_defaults: z.array(AgentToolDefaults$inboundSchema).optional(),
124
78
  languages: z.array(z.string()).optional(),
125
- variables: z.nullable(z.lazy(() => Variables$inboundSchema)),
79
+ variables: z.record(z.string()),
126
80
  tool_headers: z.nullable(z.record(z.string())),
127
81
  }).transform((v) => {
128
82
  return remap$(v, {
@@ -144,7 +98,7 @@ export type AgentCreate$Outbound = {
144
98
  timezone: string;
145
99
  prompt_tool_defaults?: Array<AgentToolDefaults$Outbound> | undefined;
146
100
  languages?: Array<string> | undefined;
147
- variables: Variables$Outbound | null;
101
+ variables: { [k: string]: string };
148
102
  tool_headers: { [k: string]: string } | null;
149
103
  };
150
104
 
@@ -163,7 +117,7 @@ export const AgentCreate$outboundSchema: z.ZodType<
163
117
  timezone: z.string(),
164
118
  promptToolDefaults: z.array(AgentToolDefaults$outboundSchema).optional(),
165
119
  languages: z.array(z.string()).optional(),
166
- variables: z.nullable(z.lazy(() => Variables$outboundSchema)),
120
+ variables: z.record(z.string()),
167
121
  toolHeaders: z.nullable(z.record(z.string())),
168
122
  }).transform((v) => {
169
123
  return remap$(v, {
@@ -14,8 +14,6 @@ import {
14
14
  AgentToolDefaults$outboundSchema,
15
15
  } from "./agenttooldefaults.js";
16
16
 
17
- export type AgentUpdateVariables = {};
18
-
19
17
  export type AgentUpdate = {
20
18
  /**
21
19
  * The agent name
@@ -56,7 +54,7 @@ export type AgentUpdate = {
56
54
  /**
57
55
  * Custom context variables for the conversation session. Keys should be prefixed with "vars.".
58
56
  */
59
- variables: AgentUpdateVariables | null;
57
+ variables: { [k: string]: string };
60
58
  /**
61
59
  * Optional headers to include in tool calls for agent.
62
60
  */
@@ -67,54 +65,6 @@ export type AgentUpdate = {
67
65
  id: number;
68
66
  };
69
67
 
70
- /** @internal */
71
- export const AgentUpdateVariables$inboundSchema: z.ZodType<
72
- AgentUpdateVariables,
73
- z.ZodTypeDef,
74
- unknown
75
- > = z.object({});
76
-
77
- /** @internal */
78
- export type AgentUpdateVariables$Outbound = {};
79
-
80
- /** @internal */
81
- export const AgentUpdateVariables$outboundSchema: z.ZodType<
82
- AgentUpdateVariables$Outbound,
83
- z.ZodTypeDef,
84
- AgentUpdateVariables
85
- > = z.object({});
86
-
87
- /**
88
- * @internal
89
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
- */
91
- export namespace AgentUpdateVariables$ {
92
- /** @deprecated use `AgentUpdateVariables$inboundSchema` instead. */
93
- export const inboundSchema = AgentUpdateVariables$inboundSchema;
94
- /** @deprecated use `AgentUpdateVariables$outboundSchema` instead. */
95
- export const outboundSchema = AgentUpdateVariables$outboundSchema;
96
- /** @deprecated use `AgentUpdateVariables$Outbound` instead. */
97
- export type Outbound = AgentUpdateVariables$Outbound;
98
- }
99
-
100
- export function agentUpdateVariablesToJSON(
101
- agentUpdateVariables: AgentUpdateVariables,
102
- ): string {
103
- return JSON.stringify(
104
- AgentUpdateVariables$outboundSchema.parse(agentUpdateVariables),
105
- );
106
- }
107
-
108
- export function agentUpdateVariablesFromJSON(
109
- jsonString: string,
110
- ): SafeParseResult<AgentUpdateVariables, SDKValidationError> {
111
- return safeParse(
112
- jsonString,
113
- (x) => AgentUpdateVariables$inboundSchema.parse(JSON.parse(x)),
114
- `Failed to parse 'AgentUpdateVariables' from JSON`,
115
- );
116
- }
117
-
118
68
  /** @internal */
119
69
  export const AgentUpdate$inboundSchema: z.ZodType<
120
70
  AgentUpdate,
@@ -130,7 +80,7 @@ export const AgentUpdate$inboundSchema: z.ZodType<
130
80
  timezone: z.string(),
131
81
  prompt_tool_defaults: z.array(AgentToolDefaults$inboundSchema).optional(),
132
82
  languages: z.array(z.string()).optional(),
133
- variables: z.nullable(z.lazy(() => AgentUpdateVariables$inboundSchema)),
83
+ variables: z.record(z.string()),
134
84
  tool_headers: z.nullable(z.record(z.string())),
135
85
  id: z.number().int(),
136
86
  }).transform((v) => {
@@ -153,7 +103,7 @@ export type AgentUpdate$Outbound = {
153
103
  timezone: string;
154
104
  prompt_tool_defaults?: Array<AgentToolDefaults$Outbound> | undefined;
155
105
  languages?: Array<string> | undefined;
156
- variables: AgentUpdateVariables$Outbound | null;
106
+ variables: { [k: string]: string };
157
107
  tool_headers: { [k: string]: string } | null;
158
108
  id: number;
159
109
  };
@@ -173,7 +123,7 @@ export const AgentUpdate$outboundSchema: z.ZodType<
173
123
  timezone: z.string(),
174
124
  promptToolDefaults: z.array(AgentToolDefaults$outboundSchema).optional(),
175
125
  languages: z.array(z.string()).optional(),
176
- variables: z.nullable(z.lazy(() => AgentUpdateVariables$outboundSchema)),
126
+ variables: z.record(z.string()),
177
127
  toolHeaders: z.nullable(z.record(z.string())),
178
128
  id: z.number().int(),
179
129
  }).transform((v) => {