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.
- package/FUNCTIONS.md +3 -1
- package/README.md +21 -7
- package/docs/sdks/agents/README.md +26 -12
- package/docs/sdks/channels/README.md +6 -2
- package/docs/sdks/conversations/README.md +6 -2
- package/docs/sdks/custommessages/README.md +170 -4
- package/docs/sdks/events/README.md +6 -2
- package/docs/sdks/prompts/README.md +6 -6
- package/docs/sdks/services/README.md +6 -2
- package/docs/sdks/sessionlabels/README.md +16 -6
- package/docs/sdks/sessions/README.md +6 -2
- package/docs/sdks/targets/README.md +24 -20
- package/docs/sdks/test/README.md +2 -0
- package/docs/sdks/tools/README.md +12 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/mintlify/mint.json +1 -1
- package/models/components/agentcreate.d.ts +6 -23
- package/models/components/agentcreate.d.ts.map +1 -1
- package/models/components/agentcreate.js +3 -26
- package/models/components/agentcreate.js.map +1 -1
- package/models/components/agentupdate.d.ts +6 -23
- package/models/components/agentupdate.d.ts.map +1 -1
- package/models/components/agentupdate.js +3 -26
- package/models/components/agentupdate.js.map +1 -1
- package/openapi.json +8 -16
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/schemas.ts +5 -0
- package/src/models/components/agentcreate.ts +4 -50
- package/src/models/components/agentupdate.ts +4 -54
|
@@ -27,7 +27,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
async function run() {
|
|
30
|
-
const result = await syllableSDK.channels.targets.availableTargets({
|
|
30
|
+
const result = await syllableSDK.channels.targets.availableTargets({
|
|
31
|
+
limit: 25,
|
|
32
|
+
});
|
|
31
33
|
|
|
32
34
|
// Handle the result
|
|
33
35
|
console.log(result);
|
|
@@ -51,7 +53,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
51
53
|
});
|
|
52
54
|
|
|
53
55
|
async function run() {
|
|
54
|
-
const res = await channelsTargetsAvailableTargets(syllableSDK, {
|
|
56
|
+
const res = await channelsTargetsAvailableTargets(syllableSDK, {
|
|
57
|
+
limit: 25,
|
|
58
|
+
});
|
|
55
59
|
|
|
56
60
|
if (!res.ok) {
|
|
57
61
|
throw res.error;
|
|
@@ -100,7 +104,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
100
104
|
});
|
|
101
105
|
|
|
102
106
|
async function run() {
|
|
103
|
-
const result = await syllableSDK.channels.targets.list({
|
|
107
|
+
const result = await syllableSDK.channels.targets.list({
|
|
108
|
+
limit: 25,
|
|
109
|
+
});
|
|
104
110
|
|
|
105
111
|
// Handle the result
|
|
106
112
|
console.log(result);
|
|
@@ -124,7 +130,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
124
130
|
});
|
|
125
131
|
|
|
126
132
|
async function run() {
|
|
127
|
-
const res = await channelsTargetsList(syllableSDK, {
|
|
133
|
+
const res = await channelsTargetsList(syllableSDK, {
|
|
134
|
+
limit: 25,
|
|
135
|
+
});
|
|
128
136
|
|
|
129
137
|
if (!res.ok) {
|
|
130
138
|
throw res.error;
|
|
@@ -176,12 +184,11 @@ async function run() {
|
|
|
176
184
|
const result = await syllableSDK.channels.targets.create({
|
|
177
185
|
channelId: 134365,
|
|
178
186
|
channelTargetCreateRequest: {
|
|
179
|
-
agentId:
|
|
180
|
-
channelId:
|
|
187
|
+
agentId: 486589,
|
|
188
|
+
channelId: 638424,
|
|
181
189
|
target: "<value>",
|
|
182
190
|
targetMode: "chat",
|
|
183
|
-
|
|
184
|
-
isTest: true,
|
|
191
|
+
isTest: false,
|
|
185
192
|
},
|
|
186
193
|
});
|
|
187
194
|
|
|
@@ -210,12 +217,11 @@ async function run() {
|
|
|
210
217
|
const res = await channelsTargetsCreate(syllableSDK, {
|
|
211
218
|
channelId: 134365,
|
|
212
219
|
channelTargetCreateRequest: {
|
|
213
|
-
agentId:
|
|
214
|
-
channelId:
|
|
220
|
+
agentId: 486589,
|
|
221
|
+
channelId: 638424,
|
|
215
222
|
target: "<value>",
|
|
216
223
|
targetMode: "chat",
|
|
217
|
-
|
|
218
|
-
isTest: true,
|
|
224
|
+
isTest: false,
|
|
219
225
|
},
|
|
220
226
|
});
|
|
221
227
|
|
|
@@ -349,13 +355,12 @@ async function run() {
|
|
|
349
355
|
channelId: 627690,
|
|
350
356
|
targetId: 488852,
|
|
351
357
|
channelTargetUpdateRequest: {
|
|
352
|
-
agentId:
|
|
358
|
+
agentId: 857478,
|
|
353
359
|
channelId: 597129,
|
|
354
360
|
target: "<value>",
|
|
355
|
-
targetMode: "
|
|
356
|
-
fallbackTarget: "<value>",
|
|
361
|
+
targetMode: "chat",
|
|
357
362
|
isTest: false,
|
|
358
|
-
id:
|
|
363
|
+
id: 991464,
|
|
359
364
|
},
|
|
360
365
|
});
|
|
361
366
|
|
|
@@ -385,13 +390,12 @@ async function run() {
|
|
|
385
390
|
channelId: 627690,
|
|
386
391
|
targetId: 488852,
|
|
387
392
|
channelTargetUpdateRequest: {
|
|
388
|
-
agentId:
|
|
393
|
+
agentId: 857478,
|
|
389
394
|
channelId: 597129,
|
|
390
395
|
target: "<value>",
|
|
391
|
-
targetMode: "
|
|
392
|
-
fallbackTarget: "<value>",
|
|
396
|
+
targetMode: "chat",
|
|
393
397
|
isTest: false,
|
|
394
|
-
id:
|
|
398
|
+
id: 991464,
|
|
395
399
|
},
|
|
396
400
|
});
|
|
397
401
|
|
package/docs/sdks/test/README.md
CHANGED
|
@@ -29,6 +29,7 @@ async function run() {
|
|
|
29
29
|
testId: "<id>",
|
|
30
30
|
agentId: "<id>",
|
|
31
31
|
orgName: "<value>",
|
|
32
|
+
sessionStart: false,
|
|
32
33
|
});
|
|
33
34
|
|
|
34
35
|
// Handle the result
|
|
@@ -59,6 +60,7 @@ async function run() {
|
|
|
59
60
|
testId: "<id>",
|
|
60
61
|
agentId: "<id>",
|
|
61
62
|
orgName: "<value>",
|
|
63
|
+
sessionStart: false,
|
|
62
64
|
});
|
|
63
65
|
|
|
64
66
|
if (!res.ok) {
|
|
@@ -26,7 +26,9 @@ const syllableSDK = new SyllableSDK({
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
async function run() {
|
|
29
|
-
const result = await syllableSDK.tools.list({
|
|
29
|
+
const result = await syllableSDK.tools.list({
|
|
30
|
+
limit: 25,
|
|
31
|
+
});
|
|
30
32
|
|
|
31
33
|
// Handle the result
|
|
32
34
|
console.log(result);
|
|
@@ -50,7 +52,9 @@ const syllableSDK = new SyllableSDKCore({
|
|
|
50
52
|
});
|
|
51
53
|
|
|
52
54
|
async function run() {
|
|
53
|
-
const res = await toolsList(syllableSDK, {
|
|
55
|
+
const res = await toolsList(syllableSDK, {
|
|
56
|
+
limit: 25,
|
|
57
|
+
});
|
|
54
58
|
|
|
55
59
|
if (!res.ok) {
|
|
56
60
|
throw res.error;
|
|
@@ -110,7 +114,7 @@ async function run() {
|
|
|
110
114
|
},
|
|
111
115
|
},
|
|
112
116
|
},
|
|
113
|
-
serviceId:
|
|
117
|
+
serviceId: 920994,
|
|
114
118
|
});
|
|
115
119
|
|
|
116
120
|
// Handle the result
|
|
@@ -146,7 +150,7 @@ async function run() {
|
|
|
146
150
|
},
|
|
147
151
|
},
|
|
148
152
|
},
|
|
149
|
-
serviceId:
|
|
153
|
+
serviceId: 920994,
|
|
150
154
|
});
|
|
151
155
|
|
|
152
156
|
if (!res.ok) {
|
|
@@ -207,8 +211,8 @@ async function run() {
|
|
|
207
211
|
},
|
|
208
212
|
},
|
|
209
213
|
},
|
|
210
|
-
serviceId:
|
|
211
|
-
id:
|
|
214
|
+
serviceId: 243447,
|
|
215
|
+
id: 265006,
|
|
212
216
|
});
|
|
213
217
|
|
|
214
218
|
// Handle the result
|
|
@@ -244,8 +248,8 @@ async function run() {
|
|
|
244
248
|
},
|
|
245
249
|
},
|
|
246
250
|
},
|
|
247
|
-
serviceId:
|
|
248
|
-
id:
|
|
251
|
+
serviceId: 243447,
|
|
252
|
+
id: 265006,
|
|
249
253
|
});
|
|
250
254
|
|
|
251
255
|
if (!res.ok) {
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.2";
|
|
30
|
-
readonly sdkVersion: "0.1.0-alpha.
|
|
31
|
-
readonly genVersion: "2.493.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
30
|
+
readonly sdkVersion: "0.1.0-alpha.35";
|
|
31
|
+
readonly genVersion: "2.493.34";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.35 2.493.34 0.0.2 syllable-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
|
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "0.0.2",
|
|
38
|
-
sdkVersion: "0.1.0-alpha.
|
|
39
|
-
genVersion: "2.493.
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
38
|
+
sdkVersion: "0.1.0-alpha.35",
|
|
39
|
+
genVersion: "2.493.34",
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.35 2.493.34 0.0.2 syllable-sdk",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
package/lib/schemas.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare function parse<Inp, Out>(rawValue: Inp, fn: (value: Inp) => Out,
|
|
|
13
13
|
* leak Zod implementation details to user code.
|
|
14
14
|
*/
|
|
15
15
|
export declare function safeParse<Inp, Out>(rawValue: Inp, fn: (value: Inp) => Out, errorMessage: string): Result<Out, SDKValidationError>;
|
|
16
|
-
export declare function collectExtraKeys<Shape extends ZodRawShape, Catchall extends ZodTypeAny, K extends string>(obj: ZodObject<Shape, "strip", Catchall>, extrasKey: K): ZodEffects<typeof obj, output<ZodObject<Shape, "strict">> & {
|
|
16
|
+
export declare function collectExtraKeys<Shape extends ZodRawShape, Catchall extends ZodTypeAny, K extends string>(obj: ZodObject<Shape, "strip", Catchall>, extrasKey: K, optional: boolean): ZodEffects<typeof obj, output<ZodObject<Shape, "strict">> & {
|
|
17
17
|
[k in K]: Record<string, output<Catchall>>;
|
|
18
18
|
}>;
|
|
19
19
|
//# sourceMappingURL=schemas.d.ts.map
|
package/lib/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/lib/schemas.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,MAAM,EACN,UAAU,EAEV,SAAS,EACT,WAAW,EACX,UAAU,EACX,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAEjD;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,GAAG,EAC5B,QAAQ,EAAE,GAAG,EACb,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,EACvB,YAAY,EAAE,MAAM,GACnB,GAAG,CASL;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,EAChC,QAAQ,EAAE,GAAG,EACb,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,GAAG,EACvB,YAAY,EAAE,MAAM,GACnB,MAAM,CAAC,GAAG,EAAE,kB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M,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;CAC3C,CACF,CAwBA"}
|
package/lib/schemas.js
CHANGED
|
@@ -38,7 +38,7 @@ function safeParse(rawValue, fn, errorMessage) {
|
|
|
38
38
|
return (0, fp_js_1.ERR)(new sdkvalidationerror_js_1.SDKValidationError(errorMessage, err, rawValue));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
function collectExtraKeys(obj, extrasKey) {
|
|
41
|
+
function collectExtraKeys(obj, extrasKey, optional) {
|
|
42
42
|
return obj.transform((val) => {
|
|
43
43
|
const extras = {};
|
|
44
44
|
const { shape } = obj;
|
|
@@ -53,6 +53,9 @@ function collectExtraKeys(obj, extrasKey) {
|
|
|
53
53
|
extras[key] = v;
|
|
54
54
|
delete val[key];
|
|
55
55
|
}
|
|
56
|
+
if (optional && Object.keys(extras).length === 0) {
|
|
57
|
+
return val;
|
|
58
|
+
}
|
|
56
59
|
return { ...val, [extrasKey]: extras };
|
|
57
60
|
});
|
|
58
61
|
}
|
package/lib/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/lib/schemas.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAkBH,sBAaC;AAOD,8BAUC;AAED,
|
|
1
|
+
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/lib/schemas.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAkBH,sBAaC;AAOD,8BAUC;AAED,4CAsCC;AAtFD,6BAOa;AACb,kFAA4E;AAC5E,0CAAiD;AAEjD;;;;GAIG;AACH,SAAgB,KAAK,CACnB,QAAa,EACb,EAAuB,EACvB,YAAoB;IAEpB,IAAI,CAAC;QACH,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC;IACtB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,GAAG,YAAY,cAAQ,EAAE,CAAC;YAC5B,MAAM,IAAI,0CAAkB,CAAC,YAAY,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C,CAAC;AACL,CAAC"}
|
package/mintlify/mint.json
CHANGED
|
@@ -2,7 +2,6 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { AgentToolDefaults, AgentToolDefaults$Outbound } from "./agenttooldefaults.js";
|
|
5
|
-
export type Variables = {};
|
|
6
5
|
export type AgentCreate = {
|
|
7
6
|
/**
|
|
8
7
|
* The agent name
|
|
@@ -43,7 +42,9 @@ export type AgentCreate = {
|
|
|
43
42
|
/**
|
|
44
43
|
* Custom context variables for the conversation session. Keys should be prefixed with "vars.".
|
|
45
44
|
*/
|
|
46
|
-
variables:
|
|
45
|
+
variables: {
|
|
46
|
+
[k: string]: string;
|
|
47
|
+
};
|
|
47
48
|
/**
|
|
48
49
|
* Optional headers to include in tool calls for agent.
|
|
49
50
|
*/
|
|
@@ -52,26 +53,6 @@ export type AgentCreate = {
|
|
|
52
53
|
} | null;
|
|
53
54
|
};
|
|
54
55
|
/** @internal */
|
|
55
|
-
export declare const Variables$inboundSchema: z.ZodType<Variables, z.ZodTypeDef, unknown>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export type Variables$Outbound = {};
|
|
58
|
-
/** @internal */
|
|
59
|
-
export declare const Variables$outboundSchema: z.ZodType<Variables$Outbound, z.ZodTypeDef, Variables>;
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export declare namespace Variables$ {
|
|
65
|
-
/** @deprecated use `Variables$inboundSchema` instead. */
|
|
66
|
-
const inboundSchema: z.ZodType<Variables, z.ZodTypeDef, unknown>;
|
|
67
|
-
/** @deprecated use `Variables$outboundSchema` instead. */
|
|
68
|
-
const outboundSchema: z.ZodType<Variables$Outbound, z.ZodTypeDef, Variables>;
|
|
69
|
-
/** @deprecated use `Variables$Outbound` instead. */
|
|
70
|
-
type Outbound = Variables$Outbound;
|
|
71
|
-
}
|
|
72
|
-
export declare function variablesToJSON(variables: Variables): string;
|
|
73
|
-
export declare function variablesFromJSON(jsonString: string): SafeParseResult<Variables, SDKValidationError>;
|
|
74
|
-
/** @internal */
|
|
75
56
|
export declare const AgentCreate$inboundSchema: z.ZodType<AgentCreate, z.ZodTypeDef, unknown>;
|
|
76
57
|
/** @internal */
|
|
77
58
|
export type AgentCreate$Outbound = {
|
|
@@ -84,7 +65,9 @@ export type AgentCreate$Outbound = {
|
|
|
84
65
|
timezone: string;
|
|
85
66
|
prompt_tool_defaults?: Array<AgentToolDefaults$Outbound> | undefined;
|
|
86
67
|
languages?: Array<string> | undefined;
|
|
87
|
-
variables:
|
|
68
|
+
variables: {
|
|
69
|
+
[k: string]: string;
|
|
70
|
+
};
|
|
88
71
|
tool_headers: {
|
|
89
72
|
[k: string]: string;
|
|
90
73
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/agentcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"agentcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/agentcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0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ACjB,oBAAoB,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACrE,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACtC,SAAS,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAoBX,CAAC;AAEH;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa,+CAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -26,9 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.AgentCreate$ = exports.AgentCreate$outboundSchema = exports.AgentCreate$inboundSchema =
|
|
30
|
-
exports.variablesToJSON = variablesToJSON;
|
|
31
|
-
exports.variablesFromJSON = variablesFromJSON;
|
|
29
|
+
exports.AgentCreate$ = exports.AgentCreate$outboundSchema = exports.AgentCreate$inboundSchema = void 0;
|
|
32
30
|
exports.agentCreateToJSON = agentCreateToJSON;
|
|
33
31
|
exports.agentCreateFromJSON = agentCreateFromJSON;
|
|
34
32
|
const z = __importStar(require("zod"));
|
|
@@ -36,27 +34,6 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
36
34
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
37
35
|
const agenttooldefaults_js_1 = require("./agenttooldefaults.js");
|
|
38
36
|
/** @internal */
|
|
39
|
-
exports.Variables$inboundSchema = z.object({});
|
|
40
|
-
/** @internal */
|
|
41
|
-
exports.Variables$outboundSchema = z.object({});
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
var Variables$;
|
|
47
|
-
(function (Variables$) {
|
|
48
|
-
/** @deprecated use `Variables$inboundSchema` instead. */
|
|
49
|
-
Variables$.inboundSchema = exports.Variables$inboundSchema;
|
|
50
|
-
/** @deprecated use `Variables$outboundSchema` instead. */
|
|
51
|
-
Variables$.outboundSchema = exports.Variables$outboundSchema;
|
|
52
|
-
})(Variables$ || (exports.Variables$ = Variables$ = {}));
|
|
53
|
-
function variablesToJSON(variables) {
|
|
54
|
-
return JSON.stringify(exports.Variables$outboundSchema.parse(variables));
|
|
55
|
-
}
|
|
56
|
-
function variablesFromJSON(jsonString) {
|
|
57
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Variables$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Variables' from JSON`);
|
|
58
|
-
}
|
|
59
|
-
/** @internal */
|
|
60
37
|
exports.AgentCreate$inboundSchema = z.object({
|
|
61
38
|
name: z.string(),
|
|
62
39
|
description: z.nullable(z.string()).optional(),
|
|
@@ -67,7 +44,7 @@ exports.AgentCreate$inboundSchema = z.object({
|
|
|
67
44
|
timezone: z.string(),
|
|
68
45
|
prompt_tool_defaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$inboundSchema).optional(),
|
|
69
46
|
languages: z.array(z.string()).optional(),
|
|
70
|
-
variables: z.
|
|
47
|
+
variables: z.record(z.string()),
|
|
71
48
|
tool_headers: z.nullable(z.record(z.string())),
|
|
72
49
|
}).transform((v) => {
|
|
73
50
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -88,7 +65,7 @@ exports.AgentCreate$outboundSchema = z.object({
|
|
|
88
65
|
timezone: z.string(),
|
|
89
66
|
promptToolDefaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$outboundSchema).optional(),
|
|
90
67
|
languages: z.array(z.string()).optional(),
|
|
91
|
-
variables: z.
|
|
68
|
+
variables: z.record(z.string()),
|
|
92
69
|
toolHeaders: z.nullable(z.record(z.string())),
|
|
93
70
|
}).transform((v) => {
|
|
94
71
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcreate.js","sourceRoot":"","sources":["../../src/models/components/agentcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"agentcreate.js","sourceRoot":"","sources":["../../src/models/components/agentcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA6IH,8CAEC;AAED,kDAQC;AAvJD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAKgC;AAiDhC,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,iBAAiB,EAAE,CAAC,CAAC,M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AAQ,EAAE;IACxE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAC9C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,eAAe,EAAE,mBAAmB;QACpC,kBAAkB,EAAE,sBAAsB;QAC1C,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,YAAY,CAO5B;AAPD,WAAiB,YAAY;IAC3B,2DAA2D;IAC9C,0BAAa,GAAG,iCAAyB,CAAC;IACvD,4DAA4D;IAC/C,2BAAc,GAAG,kCAA0B,CAAC;AAG3D,CAAC,EAPgB,YAAY,4BAAZ,YAAY,QAO5B;AAED,SAAgB,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,kCAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -2,7 +2,6 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import { AgentToolDefaults, AgentToolDefaults$Outbound } from "./agenttooldefaults.js";
|
|
5
|
-
export type AgentUpdateVariables = {};
|
|
6
5
|
export type AgentUpdate = {
|
|
7
6
|
/**
|
|
8
7
|
* The agent name
|
|
@@ -43,7 +42,9 @@ export type AgentUpdate = {
|
|
|
43
42
|
/**
|
|
44
43
|
* Custom context variables for the conversation session. Keys should be prefixed with "vars.".
|
|
45
44
|
*/
|
|
46
|
-
variables:
|
|
45
|
+
variables: {
|
|
46
|
+
[k: string]: string;
|
|
47
|
+
};
|
|
47
48
|
/**
|
|
48
49
|
* Optional headers to include in tool calls for agent.
|
|
49
50
|
*/
|
|
@@ -56,26 +57,6 @@ export type AgentUpdate = {
|
|
|
56
57
|
id: number;
|
|
57
58
|
};
|
|
58
59
|
/** @internal */
|
|
59
|
-
export declare const AgentUpdateVariables$inboundSchema: z.ZodType<AgentUpdateVariables, z.ZodTypeDef, unknown>;
|
|
60
|
-
/** @internal */
|
|
61
|
-
export type AgentUpdateVariables$Outbound = {};
|
|
62
|
-
/** @internal */
|
|
63
|
-
export declare const AgentUpdateVariables$outboundSchema: z.ZodType<AgentUpdateVariables$Outbound, z.ZodTypeDef, AgentUpdateVariables>;
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
-
*/
|
|
68
|
-
export declare namespace AgentUpdateVariables$ {
|
|
69
|
-
/** @deprecated use `AgentUpdateVariables$inboundSchema` instead. */
|
|
70
|
-
const inboundSchema: z.ZodType<AgentUpdateVariables, z.ZodTypeDef, unknown>;
|
|
71
|
-
/** @deprecated use `AgentUpdateVariables$outboundSchema` instead. */
|
|
72
|
-
const outboundSchema: z.ZodType<AgentUpdateVariables$Outbound, z.ZodTypeDef, AgentUpdateVariables>;
|
|
73
|
-
/** @deprecated use `AgentUpdateVariables$Outbound` instead. */
|
|
74
|
-
type Outbound = AgentUpdateVariables$Outbound;
|
|
75
|
-
}
|
|
76
|
-
export declare function agentUpdateVariablesToJSON(agentUpdateVariables: AgentUpdateVariables): string;
|
|
77
|
-
export declare function agentUpdateVariablesFromJSON(jsonString: string): SafeParseResult<AgentUpdateVariables, SDKValidationError>;
|
|
78
|
-
/** @internal */
|
|
79
60
|
export declare const AgentUpdate$inboundSchema: z.ZodType<AgentUpdate, z.ZodTypeDef, unknown>;
|
|
80
61
|
/** @internal */
|
|
81
62
|
export type AgentUpdate$Outbound = {
|
|
@@ -88,7 +69,9 @@ export type AgentUpdate$Outbound = {
|
|
|
88
69
|
timezone: string;
|
|
89
70
|
prompt_tool_defaults?: Array<AgentToolDefaults$Outbound> | undefined;
|
|
90
71
|
languages?: Array<string> | undefined;
|
|
91
|
-
variables:
|
|
72
|
+
variables: {
|
|
73
|
+
[k: string]: string;
|
|
74
|
+
};
|
|
92
75
|
tool_headers: {
|
|
93
76
|
[k: string]: string;
|
|
94
77
|
} | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/agentupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"agentupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/agentupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wB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AQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACrE,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACtC,SAAS,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC7C,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAqBX,CAAC;AAEH;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa,+CAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -26,9 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.AgentUpdate$ = exports.AgentUpdate$outboundSchema = exports.AgentUpdate$inboundSchema =
|
|
30
|
-
exports.agentUpdateVariablesToJSON = agentUpdateVariablesToJSON;
|
|
31
|
-
exports.agentUpdateVariablesFromJSON = agentUpdateVariablesFromJSON;
|
|
29
|
+
exports.AgentUpdate$ = exports.AgentUpdate$outboundSchema = exports.AgentUpdate$inboundSchema = void 0;
|
|
32
30
|
exports.agentUpdateToJSON = agentUpdateToJSON;
|
|
33
31
|
exports.agentUpdateFromJSON = agentUpdateFromJSON;
|
|
34
32
|
const z = __importStar(require("zod"));
|
|
@@ -36,27 +34,6 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
36
34
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
37
35
|
const agenttooldefaults_js_1 = require("./agenttooldefaults.js");
|
|
38
36
|
/** @internal */
|
|
39
|
-
exports.AgentUpdateVariables$inboundSchema = z.object({});
|
|
40
|
-
/** @internal */
|
|
41
|
-
exports.AgentUpdateVariables$outboundSchema = z.object({});
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
var AgentUpdateVariables$;
|
|
47
|
-
(function (AgentUpdateVariables$) {
|
|
48
|
-
/** @deprecated use `AgentUpdateVariables$inboundSchema` instead. */
|
|
49
|
-
AgentUpdateVariables$.inboundSchema = exports.AgentUpdateVariables$inboundSchema;
|
|
50
|
-
/** @deprecated use `AgentUpdateVariables$outboundSchema` instead. */
|
|
51
|
-
AgentUpdateVariables$.outboundSchema = exports.AgentUpdateVariables$outboundSchema;
|
|
52
|
-
})(AgentUpdateVariables$ || (exports.AgentUpdateVariables$ = AgentUpdateVariables$ = {}));
|
|
53
|
-
function agentUpdateVariablesToJSON(agentUpdateVariables) {
|
|
54
|
-
return JSON.stringify(exports.AgentUpdateVariables$outboundSchema.parse(agentUpdateVariables));
|
|
55
|
-
}
|
|
56
|
-
function agentUpdateVariablesFromJSON(jsonString) {
|
|
57
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentUpdateVariables$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentUpdateVariables' from JSON`);
|
|
58
|
-
}
|
|
59
|
-
/** @internal */
|
|
60
37
|
exports.AgentUpdate$inboundSchema = z.object({
|
|
61
38
|
name: z.string(),
|
|
62
39
|
description: z.nullable(z.string()).optional(),
|
|
@@ -67,7 +44,7 @@ exports.AgentUpdate$inboundSchema = z.object({
|
|
|
67
44
|
timezone: z.string(),
|
|
68
45
|
prompt_tool_defaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$inboundSchema).optional(),
|
|
69
46
|
languages: z.array(z.string()).optional(),
|
|
70
|
-
variables: z.
|
|
47
|
+
variables: z.record(z.string()),
|
|
71
48
|
tool_headers: z.nullable(z.record(z.string())),
|
|
72
49
|
id: z.number().int(),
|
|
73
50
|
}).transform((v) => {
|
|
@@ -89,7 +66,7 @@ exports.AgentUpdate$outboundSchema = z.object({
|
|
|
89
66
|
timezone: z.string(),
|
|
90
67
|
promptToolDefaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$outboundSchema).optional(),
|
|
91
68
|
languages: z.array(z.string()).optional(),
|
|
92
|
-
variables: z.
|
|
69
|
+
variables: z.record(z.string()),
|
|
93
70
|
toolHeaders: z.nullable(z.record(z.string())),
|
|
94
71
|
id: z.number().int(),
|
|
95
72
|
}).transform((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentupdate.js","sourceRoot":"","sources":["../../src/models/components/agentupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"agentupdate.js","sourceRoot":"","sources":["../../src/models/components/agentupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAoJH,8CAEC;AAED,kDAQC;AA9JD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAKgC;AAqDhC,gBAAgB;AACH,QAAA,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CA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;AAED,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
package/openapi.json
CHANGED
|
@@ -4794,14 +4794,10 @@
|
|
|
4794
4794
|
]
|
|
4795
4795
|
},
|
|
4796
4796
|
"variables": {
|
|
4797
|
-
"
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
{
|
|
4802
|
-
"type": "null"
|
|
4803
|
-
}
|
|
4804
|
-
],
|
|
4797
|
+
"additionalProperties": {
|
|
4798
|
+
"type": "string"
|
|
4799
|
+
},
|
|
4800
|
+
"type": "object",
|
|
4805
4801
|
"title": "Variables",
|
|
4806
4802
|
"description": "Custom context variables for the conversation session. Keys should be prefixed with \"vars.\"."
|
|
4807
4803
|
},
|
|
@@ -5160,14 +5156,10 @@
|
|
|
5160
5156
|
]
|
|
5161
5157
|
},
|
|
5162
5158
|
"variables": {
|
|
5163
|
-
"
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
{
|
|
5168
|
-
"type": "null"
|
|
5169
|
-
}
|
|
5170
|
-
],
|
|
5159
|
+
"additionalProperties": {
|
|
5160
|
+
"type": "string"
|
|
5161
|
+
},
|
|
5162
|
+
"type": "object",
|
|
5171
5163
|
"title": "Variables",
|
|
5172
5164
|
"description": "Custom context variables for the conversation session. Keys should be prefixed with \"vars.\"."
|
|
5173
5165
|
},
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.2",
|
|
64
|
-
sdkVersion: "0.1.0-alpha.
|
|
65
|
-
genVersion: "2.493.
|
|
64
|
+
sdkVersion: "0.1.0-alpha.35",
|
|
65
|
+
genVersion: "2.493.34",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
67
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.35 2.493.34 0.0.2 syllable-sdk",
|
|
68
68
|
} as const;
|
package/src/lib/schemas.ts
CHANGED
|
@@ -57,6 +57,7 @@ export function collectExtraKeys<
|
|
|
57
57
|
>(
|
|
58
58
|
obj: ZodObject<Shape, "strip", Catchall>,
|
|
59
59
|
extrasKey: K,
|
|
60
|
+
optional: boolean,
|
|
60
61
|
): ZodEffects<
|
|
61
62
|
typeof obj,
|
|
62
63
|
& output<ZodObject<Shape, "strict">>
|
|
@@ -81,6 +82,10 @@ export function collectExtraKeys<
|
|
|
81
82
|
delete val[key];
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
if (optional && Object.keys(extras).length === 0) {
|
|
86
|
+
return val;
|
|
87
|
+
}
|
|
88
|
+
|
|
84
89
|
return { ...val, [extrasKey]: extras };
|
|
85
90
|
});
|
|
86
91
|
}
|