syllable-sdk 0.1.0-alpha.14 → 0.1.0-alpha.15
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/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/agent.d.ts +6 -23
- package/models/components/agent.d.ts.map +1 -1
- package/models/components/agent.js +3 -26
- package/models/components/agent.js.map +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 -28
- 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 -28
- package/models/components/agentupdate.js.map +1 -1
- package/package.json +1 -3
- package/src/lib/config.ts +3 -3
- package/src/models/components/agent.ts +4 -50
- package/src/models/components/agentcreate.ts +4 -56
- package/src/models/components/agentupdate.ts +4 -56
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.474.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
30
|
+
readonly sdkVersion: "0.1.0-alpha.15";
|
|
31
|
+
readonly genVersion: "2.474.15";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.15 2.474.15 0.0.2 syllable-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -36,8 +36,8 @@ function serverURLFromOptions(options) {
|
|
|
36
36
|
exports.SDK_METADATA = {
|
|
37
37
|
language: "typescript",
|
|
38
38
|
openapiDocVersion: "0.0.2",
|
|
39
|
-
sdkVersion: "0.1.0-alpha.
|
|
40
|
-
genVersion: "2.474.
|
|
41
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
39
|
+
sdkVersion: "0.1.0-alpha.15",
|
|
40
|
+
genVersion: "2.474.15",
|
|
41
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.15 2.474.15 0.0.2 syllable-sdk",
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAyCH,oDAeC;AAnDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,uBAAuB;IACvB;;OAEG;IACH,uBAAuB;CACf,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAyCH,oDAeC;AAnDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB;;OAEG;IACH,uBAAuB;IACvB;;OAEG;IACH,uBAAuB;CACf,CAAC;AAsBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,UAAU,EAAE,UAAU;IACtB,SAAS,EACP,qEAAqE;CAC/D,CAAC"}
|
|
@@ -3,7 +3,6 @@ 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
5
|
import { Target, Target$Outbound } from "./target.js";
|
|
6
|
-
export type Variables = {};
|
|
7
6
|
export type Agent = {
|
|
8
7
|
name: string;
|
|
9
8
|
description?: string | null | undefined;
|
|
@@ -17,7 +16,9 @@ export type Agent = {
|
|
|
17
16
|
toolHeaders?: {
|
|
18
17
|
[k: string]: string;
|
|
19
18
|
} | null | undefined;
|
|
20
|
-
variables?:
|
|
19
|
+
variables?: {
|
|
20
|
+
[k: string]: string;
|
|
21
|
+
} | null | undefined;
|
|
21
22
|
/**
|
|
22
23
|
* The Agent ID
|
|
23
24
|
*/
|
|
@@ -27,26 +28,6 @@ export type Agent = {
|
|
|
27
28
|
lastUpdatedBy?: string | null | undefined;
|
|
28
29
|
};
|
|
29
30
|
/** @internal */
|
|
30
|
-
export declare const Variables$inboundSchema: z.ZodType<Variables, z.ZodTypeDef, unknown>;
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type Variables$Outbound = {};
|
|
33
|
-
/** @internal */
|
|
34
|
-
export declare const Variables$outboundSchema: z.ZodType<Variables$Outbound, z.ZodTypeDef, Variables>;
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
38
|
-
*/
|
|
39
|
-
export declare namespace Variables$ {
|
|
40
|
-
/** @deprecated use `Variables$inboundSchema` instead. */
|
|
41
|
-
const inboundSchema: z.ZodType<Variables, z.ZodTypeDef, unknown>;
|
|
42
|
-
/** @deprecated use `Variables$outboundSchema` instead. */
|
|
43
|
-
const outboundSchema: z.ZodType<Variables$Outbound, z.ZodTypeDef, Variables>;
|
|
44
|
-
/** @deprecated use `Variables$Outbound` instead. */
|
|
45
|
-
type Outbound = Variables$Outbound;
|
|
46
|
-
}
|
|
47
|
-
export declare function variablesToJSON(variables: Variables): string;
|
|
48
|
-
export declare function variablesFromJSON(jsonString: string): SafeParseResult<Variables, SDKValidationError>;
|
|
49
|
-
/** @internal */
|
|
50
31
|
export declare const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown>;
|
|
51
32
|
/** @internal */
|
|
52
33
|
export type Agent$Outbound = {
|
|
@@ -62,7 +43,9 @@ export type Agent$Outbound = {
|
|
|
62
43
|
tool_headers?: {
|
|
63
44
|
[k: string]: string;
|
|
64
45
|
} | null | undefined;
|
|
65
|
-
variables?:
|
|
46
|
+
variables?: {
|
|
47
|
+
[k: string]: string;
|
|
48
|
+
} | null | undefined;
|
|
66
49
|
id: number;
|
|
67
50
|
updated_at?: string | null | undefined;
|
|
68
51
|
channel_targets?: Array<Target$Outbound> | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/models/components/agent.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;AAChC,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/models/components/agent.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;AAChC,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAA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AAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,oBAAoB,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACrE,YAAY,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1D,SAAS,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACvD,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,eAAe,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5D,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAC1C,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,KAAK,CA2BL,CAAC;AAEH;;;GAGG;AACH,yBAAiB,MAAM,CAAC;IACtB,qDAAqD;IAC9C,MAAM,aAAa,yCAAsB,CAAC;IACjD,sDAAsD;IAC/C,MAAM,cAAc,gDAAuB,CAAC;IACnD,gDAAgD;IAChD,KAAY,QAAQ,GAAG,cAAc,CAAC;CACvC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEhD;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
|
|
@@ -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.Agent$ = exports.Agent$outboundSchema = exports.Agent$inboundSchema =
|
|
30
|
-
exports.variablesToJSON = variablesToJSON;
|
|
31
|
-
exports.variablesFromJSON = variablesFromJSON;
|
|
29
|
+
exports.Agent$ = exports.Agent$outboundSchema = exports.Agent$inboundSchema = void 0;
|
|
32
30
|
exports.agentToJSON = agentToJSON;
|
|
33
31
|
exports.agentFromJSON = agentFromJSON;
|
|
34
32
|
const z = __importStar(require("zod"));
|
|
@@ -37,27 +35,6 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
37
35
|
const agenttooldefaults_js_1 = require("./agenttooldefaults.js");
|
|
38
36
|
const target_js_1 = require("./target.js");
|
|
39
37
|
/** @internal */
|
|
40
|
-
exports.Variables$inboundSchema = z.object({});
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.Variables$outboundSchema = z.object({});
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
var Variables$;
|
|
48
|
-
(function (Variables$) {
|
|
49
|
-
/** @deprecated use `Variables$inboundSchema` instead. */
|
|
50
|
-
Variables$.inboundSchema = exports.Variables$inboundSchema;
|
|
51
|
-
/** @deprecated use `Variables$outboundSchema` instead. */
|
|
52
|
-
Variables$.outboundSchema = exports.Variables$outboundSchema;
|
|
53
|
-
})(Variables$ || (exports.Variables$ = Variables$ = {}));
|
|
54
|
-
function variablesToJSON(variables) {
|
|
55
|
-
return JSON.stringify(exports.Variables$outboundSchema.parse(variables));
|
|
56
|
-
}
|
|
57
|
-
function variablesFromJSON(jsonString) {
|
|
58
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Variables$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Variables' from JSON`);
|
|
59
|
-
}
|
|
60
|
-
/** @internal */
|
|
61
38
|
exports.Agent$inboundSchema = z
|
|
62
39
|
.object({
|
|
63
40
|
name: z.string(),
|
|
@@ -70,7 +47,7 @@ exports.Agent$inboundSchema = z
|
|
|
70
47
|
languages: z.array(z.string()),
|
|
71
48
|
prompt_tool_defaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$inboundSchema).optional(),
|
|
72
49
|
tool_headers: z.nullable(z.record(z.string())).optional(),
|
|
73
|
-
variables: z.nullable(z.
|
|
50
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
74
51
|
id: z.number().int(),
|
|
75
52
|
updated_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
76
53
|
channel_targets: z.nullable(z.array(target_js_1.Target$inboundSchema)).optional(),
|
|
@@ -98,7 +75,7 @@ exports.Agent$outboundSchema = z.object({
|
|
|
98
75
|
languages: z.array(z.string()),
|
|
99
76
|
promptToolDefaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$outboundSchema).optional(),
|
|
100
77
|
toolHeaders: z.nullable(z.record(z.string())).optional(),
|
|
101
|
-
variables: z.nullable(z.
|
|
78
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
102
79
|
id: z.number().int(),
|
|
103
80
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
104
81
|
channelTargets: z.nullable(z.array(target_js_1.Target$outboundSchema)).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/models/components/agent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../src/models/components/agent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0IH,kCAEC;AAED,sCAQC;AApJD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAKgC;AAChC,2CAKqB;AAuBrB,gBAAgB;AACH,QAAA,mBAAmB,GAA4C,CAAC;KAC1E,MAAM,CAAC;IACN,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AAa,CAC3B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,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 AgentCreateVariables = {};
|
|
6
5
|
export type AgentCreate = {
|
|
7
6
|
name: string;
|
|
8
7
|
description?: string | null | undefined;
|
|
@@ -16,29 +15,11 @@ export type AgentCreate = {
|
|
|
16
15
|
toolHeaders?: {
|
|
17
16
|
[k: string]: string;
|
|
18
17
|
} | null | undefined;
|
|
19
|
-
variables?:
|
|
18
|
+
variables?: {
|
|
19
|
+
[k: string]: string;
|
|
20
|
+
} | null | undefined;
|
|
20
21
|
};
|
|
21
22
|
/** @internal */
|
|
22
|
-
export declare const AgentCreateVariables$inboundSchema: z.ZodType<AgentCreateVariables, z.ZodTypeDef, unknown>;
|
|
23
|
-
/** @internal */
|
|
24
|
-
export type AgentCreateVariables$Outbound = {};
|
|
25
|
-
/** @internal */
|
|
26
|
-
export declare const AgentCreateVariables$outboundSchema: z.ZodType<AgentCreateVariables$Outbound, z.ZodTypeDef, AgentCreateVariables>;
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
-
*/
|
|
31
|
-
export declare namespace AgentCreateVariables$ {
|
|
32
|
-
/** @deprecated use `AgentCreateVariables$inboundSchema` instead. */
|
|
33
|
-
const inboundSchema: z.ZodType<AgentCreateVariables, z.ZodTypeDef, unknown>;
|
|
34
|
-
/** @deprecated use `AgentCreateVariables$outboundSchema` instead. */
|
|
35
|
-
const outboundSchema: z.ZodType<AgentCreateVariables$Outbound, z.ZodTypeDef, AgentCreateVariables>;
|
|
36
|
-
/** @deprecated use `AgentCreateVariables$Outbound` instead. */
|
|
37
|
-
type Outbound = AgentCreateVariables$Outbound;
|
|
38
|
-
}
|
|
39
|
-
export declare function agentCreateVariablesToJSON(agentCreateVariables: AgentCreateVariables): string;
|
|
40
|
-
export declare function agentCreateVariablesFromJSON(jsonString: string): SafeParseResult<AgentCreateVariables, SDKValidationError>;
|
|
41
|
-
/** @internal */
|
|
42
23
|
export declare const AgentCreate$inboundSchema: z.ZodType<AgentCreate, z.ZodTypeDef, unknown>;
|
|
43
24
|
/** @internal */
|
|
44
25
|
export type AgentCreate$Outbound = {
|
|
@@ -54,7 +35,9 @@ export type AgentCreate$Outbound = {
|
|
|
54
35
|
tool_headers?: {
|
|
55
36
|
[k: string]: string;
|
|
56
37
|
} | null | undefined;
|
|
57
|
-
variables?:
|
|
38
|
+
variables?: {
|
|
39
|
+
[k: string]: string;
|
|
40
|
+
} | null | undefined;
|
|
58
41
|
};
|
|
59
42
|
/** @internal */
|
|
60
43
|
export declare const AgentCreate$outboundSchema: z.ZodType<AgentCreate$Outbound, z.ZodTypeDef, AgentCreate>;
|
|
@@ -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.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;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,oBAAoB,CAAC,EAAE,KAAK,CAAC,0BAA0B,CAAC,GAAG,SAAS,CAAC;IACrE,YAAY,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1D,SAAS,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;CACxD,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.agentCreateVariablesToJSON = agentCreateVariablesToJSON;
|
|
31
|
-
exports.agentCreateVariablesFromJSON = agentCreateVariablesFromJSON;
|
|
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.AgentCreateVariables$inboundSchema = z.object({});
|
|
40
|
-
/** @internal */
|
|
41
|
-
exports.AgentCreateVariables$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 AgentCreateVariables$;
|
|
47
|
-
(function (AgentCreateVariables$) {
|
|
48
|
-
/** @deprecated use `AgentCreateVariables$inboundSchema` instead. */
|
|
49
|
-
AgentCreateVariables$.inboundSchema = exports.AgentCreateVariables$inboundSchema;
|
|
50
|
-
/** @deprecated use `AgentCreateVariables$outboundSchema` instead. */
|
|
51
|
-
AgentCreateVariables$.outboundSchema = exports.AgentCreateVariables$outboundSchema;
|
|
52
|
-
})(AgentCreateVariables$ || (exports.AgentCreateVariables$ = AgentCreateVariables$ = {}));
|
|
53
|
-
function agentCreateVariablesToJSON(agentCreateVariables) {
|
|
54
|
-
return JSON.stringify(exports.AgentCreateVariables$outboundSchema.parse(agentCreateVariables));
|
|
55
|
-
}
|
|
56
|
-
function agentCreateVariablesFromJSON(jsonString) {
|
|
57
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentCreateVariables$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentCreateVariables' 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(),
|
|
@@ -68,8 +45,7 @@ exports.AgentCreate$inboundSchema = z.object({
|
|
|
68
45
|
languages: z.array(z.string()),
|
|
69
46
|
prompt_tool_defaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$inboundSchema).optional(),
|
|
70
47
|
tool_headers: z.nullable(z.record(z.string())).optional(),
|
|
71
|
-
variables: z.nullable(z.
|
|
72
|
-
.optional(),
|
|
48
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
73
49
|
}).transform((v) => {
|
|
74
50
|
return (0, primitives_js_1.remap)(v, {
|
|
75
51
|
"prompt_id": "promptId",
|
|
@@ -90,8 +66,7 @@ exports.AgentCreate$outboundSchema = z.object({
|
|
|
90
66
|
languages: z.array(z.string()),
|
|
91
67
|
promptToolDefaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$outboundSchema).optional(),
|
|
92
68
|
toolHeaders: z.nullable(z.record(z.string())).optional(),
|
|
93
|
-
variables: z.nullable(z.
|
|
94
|
-
.optional(),
|
|
69
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
95
70
|
}).transform((v) => {
|
|
96
71
|
return (0, primitives_js_1.remap)(v, {
|
|
97
72
|
promptId: "prompt_id",
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GH,8CAEC;AAED,kDAQC;AAtHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAKgC;AAgBhC,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A4D;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
|
name: string;
|
|
8
7
|
description?: string | null | undefined;
|
|
@@ -16,33 +15,15 @@ export type AgentUpdate = {
|
|
|
16
15
|
toolHeaders?: {
|
|
17
16
|
[k: string]: string;
|
|
18
17
|
} | null | undefined;
|
|
19
|
-
variables?:
|
|
18
|
+
variables?: {
|
|
19
|
+
[k: string]: string;
|
|
20
|
+
} | null | undefined;
|
|
20
21
|
/**
|
|
21
22
|
* The Agent ID
|
|
22
23
|
*/
|
|
23
24
|
id: number;
|
|
24
25
|
};
|
|
25
26
|
/** @internal */
|
|
26
|
-
export declare const AgentUpdateVariables$inboundSchema: z.ZodType<AgentUpdateVariables, z.ZodTypeDef, unknown>;
|
|
27
|
-
/** @internal */
|
|
28
|
-
export type AgentUpdateVariables$Outbound = {};
|
|
29
|
-
/** @internal */
|
|
30
|
-
export declare const AgentUpdateVariables$outboundSchema: z.ZodType<AgentUpdateVariables$Outbound, z.ZodTypeDef, AgentUpdateVariables>;
|
|
31
|
-
/**
|
|
32
|
-
* @internal
|
|
33
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
34
|
-
*/
|
|
35
|
-
export declare namespace AgentUpdateVariables$ {
|
|
36
|
-
/** @deprecated use `AgentUpdateVariables$inboundSchema` instead. */
|
|
37
|
-
const inboundSchema: z.ZodType<AgentUpdateVariables, z.ZodTypeDef, unknown>;
|
|
38
|
-
/** @deprecated use `AgentUpdateVariables$outboundSchema` instead. */
|
|
39
|
-
const outboundSchema: z.ZodType<AgentUpdateVariables$Outbound, z.ZodTypeDef, AgentUpdateVariables>;
|
|
40
|
-
/** @deprecated use `AgentUpdateVariables$Outbound` instead. */
|
|
41
|
-
type Outbound = AgentUpdateVariables$Outbound;
|
|
42
|
-
}
|
|
43
|
-
export declare function agentUpdateVariablesToJSON(agentUpdateVariables: AgentUpdateVariables): string;
|
|
44
|
-
export declare function agentUpdateVariablesFromJSON(jsonString: string): SafeParseResult<AgentUpdateVariables, SDKValidationError>;
|
|
45
|
-
/** @internal */
|
|
46
27
|
export declare const AgentUpdate$inboundSchema: z.ZodType<AgentUpdate, z.ZodTypeDef, unknown>;
|
|
47
28
|
/** @internal */
|
|
48
29
|
export type AgentUpdate$Outbound = {
|
|
@@ -58,7 +39,9 @@ export type AgentUpdate$Outbound = {
|
|
|
58
39
|
tool_headers?: {
|
|
59
40
|
[k: string]: string;
|
|
60
41
|
} | null | undefined;
|
|
61
|
-
variables?:
|
|
42
|
+
variables?: {
|
|
43
|
+
[k: string]: string;
|
|
44
|
+
} | null | undefined;
|
|
62
45
|
id: number;
|
|
63
46
|
};
|
|
64
47
|
/** @internal */
|
|
@@ -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;AA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,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(),
|
|
@@ -68,8 +45,7 @@ exports.AgentUpdate$inboundSchema = z.object({
|
|
|
68
45
|
languages: z.array(z.string()),
|
|
69
46
|
prompt_tool_defaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$inboundSchema).optional(),
|
|
70
47
|
tool_headers: z.nullable(z.record(z.string())).optional(),
|
|
71
|
-
variables: z.nullable(z.
|
|
72
|
-
.optional(),
|
|
48
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
73
49
|
id: z.number().int(),
|
|
74
50
|
}).transform((v) => {
|
|
75
51
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -91,8 +67,7 @@ exports.AgentUpdate$outboundSchema = z.object({
|
|
|
91
67
|
languages: z.array(z.string()),
|
|
92
68
|
promptToolDefaults: z.array(agenttooldefaults_js_1.AgentToolDefaults$outboundSchema).optional(),
|
|
93
69
|
toolHeaders: z.nullable(z.record(z.string())).optional(),
|
|
94
|
-
variables: z.nullable(z.
|
|
95
|
-
.optional(),
|
|
70
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
96
71
|
id: z.number().int(),
|
|
97
72
|
}).transform((v) => {
|
|
98
73
|
return (0, primitives_js_1.remap)(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;;;;;;;;;;;;;;;;;;;;;;;;;;AAmHH,8CAEC;AAED,kDAQC;AA7HD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAKgC;AAoBhC,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,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,oBAAoB,EAAE,CAAC,CAAC,KAAK,CAAC,sDAA+B,CAAC,CAAC,QAAQ,EAAE;IACzE,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,C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C,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrB,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "syllable-sdk",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.15",
|
|
4
4
|
"author": "Speakeasy",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
"prepublishOnly": "npm run build"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"react": "^18 || ^19",
|
|
18
|
-
"react-dom": "^18 || ^19",
|
|
19
17
|
"zod": ">= 3"
|
|
20
18
|
},
|
|
21
19
|
"devDependencies": {
|
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.474.
|
|
64
|
+
sdkVersion: "0.1.0-alpha.15",
|
|
65
|
+
genVersion: "2.474.15",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
67
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.15 2.474.15 0.0.2 syllable-sdk",
|
|
68
68
|
} as const;
|
|
@@ -20,8 +20,6 @@ import {
|
|
|
20
20
|
Target$outboundSchema,
|
|
21
21
|
} from "./target.js";
|
|
22
22
|
|
|
23
|
-
export type Variables = {};
|
|
24
|
-
|
|
25
23
|
export type Agent = {
|
|
26
24
|
name: string;
|
|
27
25
|
description?: string | null | undefined;
|
|
@@ -33,7 +31,7 @@ export type Agent = {
|
|
|
33
31
|
languages: Array<string>;
|
|
34
32
|
promptToolDefaults?: Array<AgentToolDefaults> | undefined;
|
|
35
33
|
toolHeaders?: { [k: string]: string } | null | undefined;
|
|
36
|
-
variables?:
|
|
34
|
+
variables?: { [k: string]: string } | null | undefined;
|
|
37
35
|
/**
|
|
38
36
|
* The Agent ID
|
|
39
37
|
*/
|
|
@@ -43,50 +41,6 @@ export type Agent = {
|
|
|
43
41
|
lastUpdatedBy?: string | null | undefined;
|
|
44
42
|
};
|
|
45
43
|
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const Variables$inboundSchema: z.ZodType<
|
|
48
|
-
Variables,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({});
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export type Variables$Outbound = {};
|
|
55
|
-
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const Variables$outboundSchema: z.ZodType<
|
|
58
|
-
Variables$Outbound,
|
|
59
|
-
z.ZodTypeDef,
|
|
60
|
-
Variables
|
|
61
|
-
> = z.object({});
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export namespace Variables$ {
|
|
68
|
-
/** @deprecated use `Variables$inboundSchema` instead. */
|
|
69
|
-
export const inboundSchema = Variables$inboundSchema;
|
|
70
|
-
/** @deprecated use `Variables$outboundSchema` instead. */
|
|
71
|
-
export const outboundSchema = Variables$outboundSchema;
|
|
72
|
-
/** @deprecated use `Variables$Outbound` instead. */
|
|
73
|
-
export type Outbound = Variables$Outbound;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function variablesToJSON(variables: Variables): string {
|
|
77
|
-
return JSON.stringify(Variables$outboundSchema.parse(variables));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function variablesFromJSON(
|
|
81
|
-
jsonString: string,
|
|
82
|
-
): SafeParseResult<Variables, SDKValidationError> {
|
|
83
|
-
return safeParse(
|
|
84
|
-
jsonString,
|
|
85
|
-
(x) => Variables$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
-
`Failed to parse 'Variables' from JSON`,
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
44
|
/** @internal */
|
|
91
45
|
export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
|
|
92
46
|
.object({
|
|
@@ -100,7 +54,7 @@ export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
|
|
|
100
54
|
languages: z.array(z.string()),
|
|
101
55
|
prompt_tool_defaults: z.array(AgentToolDefaults$inboundSchema).optional(),
|
|
102
56
|
tool_headers: z.nullable(z.record(z.string())).optional(),
|
|
103
|
-
variables: z.nullable(z.
|
|
57
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
104
58
|
id: z.number().int(),
|
|
105
59
|
updated_at: z.nullable(
|
|
106
60
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -131,7 +85,7 @@ export type Agent$Outbound = {
|
|
|
131
85
|
languages: Array<string>;
|
|
132
86
|
prompt_tool_defaults?: Array<AgentToolDefaults$Outbound> | undefined;
|
|
133
87
|
tool_headers?: { [k: string]: string } | null | undefined;
|
|
134
|
-
variables?:
|
|
88
|
+
variables?: { [k: string]: string } | null | undefined;
|
|
135
89
|
id: number;
|
|
136
90
|
updated_at?: string | null | undefined;
|
|
137
91
|
channel_targets?: Array<Target$Outbound> | null | undefined;
|
|
@@ -154,7 +108,7 @@ export const Agent$outboundSchema: z.ZodType<
|
|
|
154
108
|
languages: z.array(z.string()),
|
|
155
109
|
promptToolDefaults: z.array(AgentToolDefaults$outboundSchema).optional(),
|
|
156
110
|
toolHeaders: z.nullable(z.record(z.string())).optional(),
|
|
157
|
-
variables: z.nullable(z.
|
|
111
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
158
112
|
id: z.number().int(),
|
|
159
113
|
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
160
114
|
channelTargets: z.nullable(z.array(Target$outboundSchema)).optional(),
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
AgentToolDefaults$outboundSchema,
|
|
15
15
|
} from "./agenttooldefaults.js";
|
|
16
16
|
|
|
17
|
-
export type AgentCreateVariables = {};
|
|
18
|
-
|
|
19
17
|
export type AgentCreate = {
|
|
20
18
|
name: string;
|
|
21
19
|
description?: string | null | undefined;
|
|
@@ -27,57 +25,9 @@ export type AgentCreate = {
|
|
|
27
25
|
languages: Array<string>;
|
|
28
26
|
promptToolDefaults?: Array<AgentToolDefaults> | undefined;
|
|
29
27
|
toolHeaders?: { [k: string]: string } | null | undefined;
|
|
30
|
-
variables?:
|
|
28
|
+
variables?: { [k: string]: string } | null | undefined;
|
|
31
29
|
};
|
|
32
30
|
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const AgentCreateVariables$inboundSchema: z.ZodType<
|
|
35
|
-
AgentCreateVariables,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
unknown
|
|
38
|
-
> = z.object({});
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export type AgentCreateVariables$Outbound = {};
|
|
42
|
-
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const AgentCreateVariables$outboundSchema: z.ZodType<
|
|
45
|
-
AgentCreateVariables$Outbound,
|
|
46
|
-
z.ZodTypeDef,
|
|
47
|
-
AgentCreateVariables
|
|
48
|
-
> = z.object({});
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export namespace AgentCreateVariables$ {
|
|
55
|
-
/** @deprecated use `AgentCreateVariables$inboundSchema` instead. */
|
|
56
|
-
export const inboundSchema = AgentCreateVariables$inboundSchema;
|
|
57
|
-
/** @deprecated use `AgentCreateVariables$outboundSchema` instead. */
|
|
58
|
-
export const outboundSchema = AgentCreateVariables$outboundSchema;
|
|
59
|
-
/** @deprecated use `AgentCreateVariables$Outbound` instead. */
|
|
60
|
-
export type Outbound = AgentCreateVariables$Outbound;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function agentCreateVariablesToJSON(
|
|
64
|
-
agentCreateVariables: AgentCreateVariables,
|
|
65
|
-
): string {
|
|
66
|
-
return JSON.stringify(
|
|
67
|
-
AgentCreateVariables$outboundSchema.parse(agentCreateVariables),
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function agentCreateVariablesFromJSON(
|
|
72
|
-
jsonString: string,
|
|
73
|
-
): SafeParseResult<AgentCreateVariables, SDKValidationError> {
|
|
74
|
-
return safeParse(
|
|
75
|
-
jsonString,
|
|
76
|
-
(x) => AgentCreateVariables$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
-
`Failed to parse 'AgentCreateVariables' from JSON`,
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
31
|
/** @internal */
|
|
82
32
|
export const AgentCreate$inboundSchema: z.ZodType<
|
|
83
33
|
AgentCreate,
|
|
@@ -94,8 +44,7 @@ export const AgentCreate$inboundSchema: z.ZodType<
|
|
|
94
44
|
languages: z.array(z.string()),
|
|
95
45
|
prompt_tool_defaults: z.array(AgentToolDefaults$inboundSchema).optional(),
|
|
96
46
|
tool_headers: z.nullable(z.record(z.string())).optional(),
|
|
97
|
-
variables: z.nullable(z.
|
|
98
|
-
.optional(),
|
|
47
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
99
48
|
}).transform((v) => {
|
|
100
49
|
return remap$(v, {
|
|
101
50
|
"prompt_id": "promptId",
|
|
@@ -117,7 +66,7 @@ export type AgentCreate$Outbound = {
|
|
|
117
66
|
languages: Array<string>;
|
|
118
67
|
prompt_tool_defaults?: Array<AgentToolDefaults$Outbound> | undefined;
|
|
119
68
|
tool_headers?: { [k: string]: string } | null | undefined;
|
|
120
|
-
variables?:
|
|
69
|
+
variables?: { [k: string]: string } | null | undefined;
|
|
121
70
|
};
|
|
122
71
|
|
|
123
72
|
/** @internal */
|
|
@@ -136,8 +85,7 @@ export const AgentCreate$outboundSchema: z.ZodType<
|
|
|
136
85
|
languages: z.array(z.string()),
|
|
137
86
|
promptToolDefaults: z.array(AgentToolDefaults$outboundSchema).optional(),
|
|
138
87
|
toolHeaders: z.nullable(z.record(z.string())).optional(),
|
|
139
|
-
variables: z.nullable(z.
|
|
140
|
-
.optional(),
|
|
88
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
141
89
|
}).transform((v) => {
|
|
142
90
|
return remap$(v, {
|
|
143
91
|
promptId: "prompt_id",
|
|
@@ -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
|
name: string;
|
|
21
19
|
description?: string | null | undefined;
|
|
@@ -27,61 +25,13 @@ export type AgentUpdate = {
|
|
|
27
25
|
languages: Array<string>;
|
|
28
26
|
promptToolDefaults?: Array<AgentToolDefaults> | undefined;
|
|
29
27
|
toolHeaders?: { [k: string]: string } | null | undefined;
|
|
30
|
-
variables?:
|
|
28
|
+
variables?: { [k: string]: string } | null | undefined;
|
|
31
29
|
/**
|
|
32
30
|
* The Agent ID
|
|
33
31
|
*/
|
|
34
32
|
id: number;
|
|
35
33
|
};
|
|
36
34
|
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const AgentUpdateVariables$inboundSchema: z.ZodType<
|
|
39
|
-
AgentUpdateVariables,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
unknown
|
|
42
|
-
> = z.object({});
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export type AgentUpdateVariables$Outbound = {};
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const AgentUpdateVariables$outboundSchema: z.ZodType<
|
|
49
|
-
AgentUpdateVariables$Outbound,
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
AgentUpdateVariables
|
|
52
|
-
> = z.object({});
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
-
*/
|
|
58
|
-
export namespace AgentUpdateVariables$ {
|
|
59
|
-
/** @deprecated use `AgentUpdateVariables$inboundSchema` instead. */
|
|
60
|
-
export const inboundSchema = AgentUpdateVariables$inboundSchema;
|
|
61
|
-
/** @deprecated use `AgentUpdateVariables$outboundSchema` instead. */
|
|
62
|
-
export const outboundSchema = AgentUpdateVariables$outboundSchema;
|
|
63
|
-
/** @deprecated use `AgentUpdateVariables$Outbound` instead. */
|
|
64
|
-
export type Outbound = AgentUpdateVariables$Outbound;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function agentUpdateVariablesToJSON(
|
|
68
|
-
agentUpdateVariables: AgentUpdateVariables,
|
|
69
|
-
): string {
|
|
70
|
-
return JSON.stringify(
|
|
71
|
-
AgentUpdateVariables$outboundSchema.parse(agentUpdateVariables),
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function agentUpdateVariablesFromJSON(
|
|
76
|
-
jsonString: string,
|
|
77
|
-
): SafeParseResult<AgentUpdateVariables, SDKValidationError> {
|
|
78
|
-
return safeParse(
|
|
79
|
-
jsonString,
|
|
80
|
-
(x) => AgentUpdateVariables$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
-
`Failed to parse 'AgentUpdateVariables' from JSON`,
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
35
|
/** @internal */
|
|
86
36
|
export const AgentUpdate$inboundSchema: z.ZodType<
|
|
87
37
|
AgentUpdate,
|
|
@@ -98,8 +48,7 @@ export const AgentUpdate$inboundSchema: z.ZodType<
|
|
|
98
48
|
languages: z.array(z.string()),
|
|
99
49
|
prompt_tool_defaults: z.array(AgentToolDefaults$inboundSchema).optional(),
|
|
100
50
|
tool_headers: z.nullable(z.record(z.string())).optional(),
|
|
101
|
-
variables: z.nullable(z.
|
|
102
|
-
.optional(),
|
|
51
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
103
52
|
id: z.number().int(),
|
|
104
53
|
}).transform((v) => {
|
|
105
54
|
return remap$(v, {
|
|
@@ -122,7 +71,7 @@ export type AgentUpdate$Outbound = {
|
|
|
122
71
|
languages: Array<string>;
|
|
123
72
|
prompt_tool_defaults?: Array<AgentToolDefaults$Outbound> | undefined;
|
|
124
73
|
tool_headers?: { [k: string]: string } | null | undefined;
|
|
125
|
-
variables?:
|
|
74
|
+
variables?: { [k: string]: string } | null | undefined;
|
|
126
75
|
id: number;
|
|
127
76
|
};
|
|
128
77
|
|
|
@@ -142,8 +91,7 @@ export const AgentUpdate$outboundSchema: z.ZodType<
|
|
|
142
91
|
languages: z.array(z.string()),
|
|
143
92
|
promptToolDefaults: z.array(AgentToolDefaults$outboundSchema).optional(),
|
|
144
93
|
toolHeaders: z.nullable(z.record(z.string())).optional(),
|
|
145
|
-
variables: z.nullable(z.
|
|
146
|
-
.optional(),
|
|
94
|
+
variables: z.nullable(z.record(z.string())).optional(),
|
|
147
95
|
id: z.number().int(),
|
|
148
96
|
}).transform((v) => {
|
|
149
97
|
return remap$(v, {
|