syllable-sdk 0.1.0-alpha.15 → 0.1.0-alpha.17
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/docs/sdks/agents/README.md +2 -2
- package/docs/sdks/custommessages/README.md +6 -6
- package/funcs/agentsGetById.d.ts +1 -1
- package/funcs/agentsGetById.d.ts.map +1 -1
- package/funcs/agentsGetById.js +1 -1
- package/funcs/agentsGetById.js.map +1 -1
- package/funcs/agentsList.d.ts +1 -1
- package/funcs/agentsList.d.ts.map +1 -1
- package/funcs/agentsList.js +1 -1
- package/funcs/agentsList.js.map +1 -1
- package/funcs/customMessagesCreate.d.ts +1 -1
- package/funcs/customMessagesCreate.d.ts.map +1 -1
- package/funcs/customMessagesCreate.js +2 -2
- package/funcs/customMessagesCreate.js.map +1 -1
- package/funcs/customMessagesGetById.d.ts +1 -1
- package/funcs/customMessagesGetById.d.ts.map +1 -1
- package/funcs/customMessagesGetById.js +1 -1
- package/funcs/customMessagesGetById.js.map +1 -1
- package/funcs/customMessagesList.d.ts +1 -1
- package/funcs/customMessagesList.d.ts.map +1 -1
- package/funcs/customMessagesList.js +1 -1
- package/funcs/customMessagesList.js.map +1 -1
- package/funcs/customMessagesUpdate.d.ts +1 -1
- package/funcs/customMessagesUpdate.d.ts.map +1 -1
- package/funcs/customMessagesUpdate.js +2 -2
- package/funcs/customMessagesUpdate.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/agentresponse.d.ts +115 -0
- package/models/components/agentresponse.d.ts.map +1 -0
- package/models/components/agentresponse.js +118 -0
- package/models/components/agentresponse.js.map +1 -0
- package/models/components/channel.d.ts +0 -3
- package/models/components/channel.d.ts.map +1 -1
- package/models/components/channel.js.map +1 -1
- package/models/components/custommessage.d.ts +3 -5
- package/models/components/custommessage.d.ts.map +1 -1
- package/models/components/custommessage.js +0 -2
- package/models/components/custommessage.js.map +1 -1
- package/models/components/custommessagecreaterequest.d.ts +39 -0
- package/models/components/custommessagecreaterequest.d.ts.map +1 -0
- package/models/components/custommessagecreaterequest.js +63 -0
- package/models/components/custommessagecreaterequest.js.map +1 -0
- package/models/components/custommessageresponse.d.ts +44 -0
- package/models/components/custommessageresponse.d.ts.map +1 -0
- package/models/components/{custommessagecreate.js → custommessageresponse.js} +19 -17
- package/models/components/custommessageresponse.js.map +1 -0
- package/models/components/custommessageupdaterequest.d.ts +44 -0
- package/models/components/custommessageupdaterequest.d.ts.map +1 -0
- package/models/components/custommessageupdaterequest.js +65 -0
- package/models/components/custommessageupdaterequest.js.map +1 -0
- package/models/components/index.d.ts +7 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -3
- package/models/components/index.js.map +1 -1
- package/models/components/listresponseagentresponse.d.ts +38 -0
- package/models/components/{listresponsecustommessage.d.ts.map → listresponseagentresponse.d.ts.map} +1 -1
- package/models/components/{listresponsecustommessage.js → listresponseagentresponse.js} +20 -20
- package/models/components/{listresponsecustommessage.js.map → listresponseagentresponse.js.map} +1 -1
- package/models/components/listresponsecustommessageresponse.d.ts +38 -0
- package/models/components/listresponsecustommessageresponse.d.ts.map +1 -0
- package/models/components/{listresponseagent.js → listresponsecustommessageresponse.js} +20 -20
- package/models/components/listresponsecustommessageresponse.js.map +1 -0
- package/models/components/llmconfig.d.ts +3 -34
- package/models/components/llmconfig.d.ts.map +1 -1
- package/models/components/llmconfig.js +4 -26
- package/models/components/llmconfig.js.map +1 -1
- package/models/components/prompt.d.ts +0 -3
- package/models/components/prompt.d.ts.map +1 -1
- package/models/components/prompt.js.map +1 -1
- package/models/components/promptcreate.d.ts +0 -3
- package/models/components/promptcreate.d.ts.map +1 -1
- package/models/components/promptcreate.js.map +1 -1
- package/models/components/promptupdate.d.ts +0 -3
- package/models/components/promptupdate.d.ts.map +1 -1
- package/models/components/promptupdate.js.map +1 -1
- package/models/components/provider.d.ts +34 -0
- package/models/components/provider.d.ts.map +1 -0
- package/models/components/provider.js +54 -0
- package/models/components/provider.js.map +1 -0
- package/models/components/target.d.ts +0 -3
- package/models/components/target.d.ts.map +1 -1
- package/models/components/target.js.map +1 -1
- package/package.json +1 -1
- package/sdk/agents.d.ts +2 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/custommessages.d.ts +4 -4
- package/sdk/custommessages.d.ts.map +1 -1
- package/sdk/custommessages.js.map +1 -1
- package/src/funcs/agentsGetById.ts +3 -3
- package/src/funcs/agentsList.ts +3 -3
- package/src/funcs/customMessagesCreate.ts +6 -5
- package/src/funcs/customMessagesGetById.ts +3 -3
- package/src/funcs/customMessagesList.ts +3 -3
- package/src/funcs/customMessagesUpdate.ts +6 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/agentresponse.ts +215 -0
- package/src/models/components/channel.ts +0 -3
- package/src/models/components/custommessage.ts +3 -7
- package/src/models/components/custommessagecreaterequest.ts +80 -0
- package/src/models/components/custommessageresponse.ts +87 -0
- package/src/models/components/custommessageupdaterequest.ts +87 -0
- package/src/models/components/index.ts +7 -3
- package/src/models/components/{listresponsecustommessage.ts → listresponseagentresponse.ts} +30 -30
- package/src/models/components/listresponsecustommessageresponse.ts +104 -0
- package/src/models/components/llmconfig.ts +9 -36
- package/src/models/components/prompt.ts +0 -3
- package/src/models/components/promptcreate.ts +0 -3
- package/src/models/components/promptupdate.ts +0 -3
- package/src/models/components/provider.ts +37 -0
- package/src/models/components/target.ts +0 -3
- package/src/sdk/agents.ts +2 -2
- package/src/sdk/custommessages.ts +6 -6
- package/models/components/custommessagecreate.d.ts +0 -39
- package/models/components/custommessagecreate.d.ts.map +0 -1
- package/models/components/custommessagecreate.js.map +0 -1
- package/models/components/listresponseagent.d.ts +0 -38
- package/models/components/listresponseagent.d.ts.map +0 -1
- package/models/components/listresponseagent.js.map +0 -1
- package/models/components/listresponsecustommessage.d.ts +0 -38
- package/src/models/components/custommessagecreate.ts +0 -80
- package/src/models/components/listresponseagent.ts +0 -101
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CustomMessageCreateRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the custom message
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The text of the custom message
|
|
17
|
+
*/
|
|
18
|
+
text: string;
|
|
19
|
+
type?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const CustomMessageCreateRequest$inboundSchema: z.ZodType<
|
|
24
|
+
CustomMessageCreateRequest,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z.object({
|
|
28
|
+
name: z.string(),
|
|
29
|
+
text: z.string(),
|
|
30
|
+
type: z.string().default("greeting"),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export type CustomMessageCreateRequest$Outbound = {
|
|
35
|
+
name: string;
|
|
36
|
+
text: string;
|
|
37
|
+
type: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const CustomMessageCreateRequest$outboundSchema: z.ZodType<
|
|
42
|
+
CustomMessageCreateRequest$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
CustomMessageCreateRequest
|
|
45
|
+
> = z.object({
|
|
46
|
+
name: z.string(),
|
|
47
|
+
text: z.string(),
|
|
48
|
+
type: z.string().default("greeting"),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace CustomMessageCreateRequest$ {
|
|
56
|
+
/** @deprecated use `CustomMessageCreateRequest$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = CustomMessageCreateRequest$inboundSchema;
|
|
58
|
+
/** @deprecated use `CustomMessageCreateRequest$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = CustomMessageCreateRequest$outboundSchema;
|
|
60
|
+
/** @deprecated use `CustomMessageCreateRequest$Outbound` instead. */
|
|
61
|
+
export type Outbound = CustomMessageCreateRequest$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function customMessageCreateRequestToJSON(
|
|
65
|
+
customMessageCreateRequest: CustomMessageCreateRequest,
|
|
66
|
+
): string {
|
|
67
|
+
return JSON.stringify(
|
|
68
|
+
CustomMessageCreateRequest$outboundSchema.parse(customMessageCreateRequest),
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function customMessageCreateRequestFromJSON(
|
|
73
|
+
jsonString: string,
|
|
74
|
+
): SafeParseResult<CustomMessageCreateRequest, SDKValidationError> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) => CustomMessageCreateRequest$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
+
`Failed to parse 'CustomMessageCreateRequest' from JSON`,
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CustomMessageResponse = {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the custom message
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The text of the custom message
|
|
17
|
+
*/
|
|
18
|
+
text: string;
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the custom message
|
|
21
|
+
*/
|
|
22
|
+
id: number;
|
|
23
|
+
type?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CustomMessageResponse$inboundSchema: z.ZodType<
|
|
28
|
+
CustomMessageResponse,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
name: z.string(),
|
|
33
|
+
text: z.string(),
|
|
34
|
+
id: z.number().int(),
|
|
35
|
+
type: z.string().default("greeting"),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type CustomMessageResponse$Outbound = {
|
|
40
|
+
name: string;
|
|
41
|
+
text: string;
|
|
42
|
+
id: number;
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const CustomMessageResponse$outboundSchema: z.ZodType<
|
|
48
|
+
CustomMessageResponse$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
CustomMessageResponse
|
|
51
|
+
> = z.object({
|
|
52
|
+
name: z.string(),
|
|
53
|
+
text: z.string(),
|
|
54
|
+
id: z.number().int(),
|
|
55
|
+
type: z.string().default("greeting"),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace CustomMessageResponse$ {
|
|
63
|
+
/** @deprecated use `CustomMessageResponse$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = CustomMessageResponse$inboundSchema;
|
|
65
|
+
/** @deprecated use `CustomMessageResponse$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = CustomMessageResponse$outboundSchema;
|
|
67
|
+
/** @deprecated use `CustomMessageResponse$Outbound` instead. */
|
|
68
|
+
export type Outbound = CustomMessageResponse$Outbound;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function customMessageResponseToJSON(
|
|
72
|
+
customMessageResponse: CustomMessageResponse,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
CustomMessageResponse$outboundSchema.parse(customMessageResponse),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function customMessageResponseFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<CustomMessageResponse, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => CustomMessageResponse$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'CustomMessageResponse' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CustomMessageUpdateRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the custom message
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The text of the custom message
|
|
17
|
+
*/
|
|
18
|
+
text: string;
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the custom message
|
|
21
|
+
*/
|
|
22
|
+
id: number;
|
|
23
|
+
type?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const CustomMessageUpdateRequest$inboundSchema: z.ZodType<
|
|
28
|
+
CustomMessageUpdateRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
name: z.string(),
|
|
33
|
+
text: z.string(),
|
|
34
|
+
id: z.number().int(),
|
|
35
|
+
type: z.string().default("greeting"),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type CustomMessageUpdateRequest$Outbound = {
|
|
40
|
+
name: string;
|
|
41
|
+
text: string;
|
|
42
|
+
id: number;
|
|
43
|
+
type: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const CustomMessageUpdateRequest$outboundSchema: z.ZodType<
|
|
48
|
+
CustomMessageUpdateRequest$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
CustomMessageUpdateRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
name: z.string(),
|
|
53
|
+
text: z.string(),
|
|
54
|
+
id: z.number().int(),
|
|
55
|
+
type: z.string().default("greeting"),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export namespace CustomMessageUpdateRequest$ {
|
|
63
|
+
/** @deprecated use `CustomMessageUpdateRequest$inboundSchema` instead. */
|
|
64
|
+
export const inboundSchema = CustomMessageUpdateRequest$inboundSchema;
|
|
65
|
+
/** @deprecated use `CustomMessageUpdateRequest$outboundSchema` instead. */
|
|
66
|
+
export const outboundSchema = CustomMessageUpdateRequest$outboundSchema;
|
|
67
|
+
/** @deprecated use `CustomMessageUpdateRequest$Outbound` instead. */
|
|
68
|
+
export type Outbound = CustomMessageUpdateRequest$Outbound;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function customMessageUpdateRequestToJSON(
|
|
72
|
+
customMessageUpdateRequest: CustomMessageUpdateRequest,
|
|
73
|
+
): string {
|
|
74
|
+
return JSON.stringify(
|
|
75
|
+
CustomMessageUpdateRequest$outboundSchema.parse(customMessageUpdateRequest),
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function customMessageUpdateRequestFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<CustomMessageUpdateRequest, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => CustomMessageUpdateRequest$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'CustomMessageUpdateRequest' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export * from "./agent.js";
|
|
6
6
|
export * from "./agentcreate.js";
|
|
7
7
|
export * from "./agentproperties.js";
|
|
8
|
+
export * from "./agentresponse.js";
|
|
8
9
|
export * from "./agenttooldefaults.js";
|
|
9
10
|
export * from "./agenttoolfielddefault.js";
|
|
10
11
|
export * from "./agentupdate.js";
|
|
@@ -22,20 +23,22 @@ export * from "./channeltargetproperties.js";
|
|
|
22
23
|
export * from "./conversation.js";
|
|
23
24
|
export * from "./conversationproperties.js";
|
|
24
25
|
export * from "./custommessage.js";
|
|
25
|
-
export * from "./
|
|
26
|
+
export * from "./custommessagecreaterequest.js";
|
|
26
27
|
export * from "./custommessageproperties.js";
|
|
28
|
+
export * from "./custommessageresponse.js";
|
|
29
|
+
export * from "./custommessageupdaterequest.js";
|
|
27
30
|
export * from "./directoryextension.js";
|
|
28
31
|
export * from "./directorymember.js";
|
|
29
32
|
export * from "./directorymembercreate.js";
|
|
30
33
|
export * from "./directorymemberproperties.js";
|
|
31
34
|
export * from "./event.js";
|
|
32
35
|
export * from "./eventproperties.js";
|
|
33
|
-
export * from "./
|
|
36
|
+
export * from "./listresponseagentresponse.js";
|
|
34
37
|
export * from "./listresponseavailabletarget.js";
|
|
35
38
|
export * from "./listresponsechannel.js";
|
|
36
39
|
export * from "./listresponsechanneltarget.js";
|
|
37
40
|
export * from "./listresponseconversation.js";
|
|
38
|
-
export * from "./
|
|
41
|
+
export * from "./listresponsecustommessageresponse.js";
|
|
39
42
|
export * from "./listresponsedirectorymember.js";
|
|
40
43
|
export * from "./listresponseevent.js";
|
|
41
44
|
export * from "./listresponseprompt.js";
|
|
@@ -50,6 +53,7 @@ export * from "./promptcreate.js";
|
|
|
50
53
|
export * from "./prompthistory.js";
|
|
51
54
|
export * from "./promptproperties.js";
|
|
52
55
|
export * from "./promptupdate.js";
|
|
56
|
+
export * from "./provider.js";
|
|
53
57
|
export * from "./security.js";
|
|
54
58
|
export * from "./service.js";
|
|
55
59
|
export * from "./servicecreate.js";
|
|
@@ -8,14 +8,14 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
AgentResponse,
|
|
12
|
+
AgentResponse$inboundSchema,
|
|
13
|
+
AgentResponse$Outbound,
|
|
14
|
+
AgentResponse$outboundSchema,
|
|
15
|
+
} from "./agentresponse.js";
|
|
16
16
|
|
|
17
|
-
export type
|
|
18
|
-
items: Array<
|
|
17
|
+
export type ListResponseAgentResponse = {
|
|
18
|
+
items: Array<AgentResponse>;
|
|
19
19
|
page: number;
|
|
20
20
|
pageSize: number;
|
|
21
21
|
totalPages?: number | null | undefined;
|
|
@@ -23,12 +23,12 @@ export type ListResponseCustomMessage = {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
/** @internal */
|
|
26
|
-
export const
|
|
27
|
-
|
|
26
|
+
export const ListResponseAgentResponse$inboundSchema: z.ZodType<
|
|
27
|
+
ListResponseAgentResponse,
|
|
28
28
|
z.ZodTypeDef,
|
|
29
29
|
unknown
|
|
30
30
|
> = z.object({
|
|
31
|
-
items: z.array(
|
|
31
|
+
items: z.array(AgentResponse$inboundSchema),
|
|
32
32
|
page: z.number().int(),
|
|
33
33
|
page_size: z.number().int(),
|
|
34
34
|
total_pages: z.nullable(z.number().int()).optional(),
|
|
@@ -42,8 +42,8 @@ export const ListResponseCustomMessage$inboundSchema: z.ZodType<
|
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
45
|
-
export type
|
|
46
|
-
items: Array<
|
|
45
|
+
export type ListResponseAgentResponse$Outbound = {
|
|
46
|
+
items: Array<AgentResponse$Outbound>;
|
|
47
47
|
page: number;
|
|
48
48
|
page_size: number;
|
|
49
49
|
total_pages?: number | null | undefined;
|
|
@@ -51,12 +51,12 @@ export type ListResponseCustomMessage$Outbound = {
|
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
/** @internal */
|
|
54
|
-
export const
|
|
55
|
-
|
|
54
|
+
export const ListResponseAgentResponse$outboundSchema: z.ZodType<
|
|
55
|
+
ListResponseAgentResponse$Outbound,
|
|
56
56
|
z.ZodTypeDef,
|
|
57
|
-
|
|
57
|
+
ListResponseAgentResponse
|
|
58
58
|
> = z.object({
|
|
59
|
-
items: z.array(
|
|
59
|
+
items: z.array(AgentResponse$outboundSchema),
|
|
60
60
|
page: z.number().int(),
|
|
61
61
|
pageSize: z.number().int(),
|
|
62
62
|
totalPages: z.nullable(z.number().int()).optional(),
|
|
@@ -73,29 +73,29 @@ export const ListResponseCustomMessage$outboundSchema: z.ZodType<
|
|
|
73
73
|
* @internal
|
|
74
74
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
75
|
*/
|
|
76
|
-
export namespace
|
|
77
|
-
/** @deprecated use `
|
|
78
|
-
export const inboundSchema =
|
|
79
|
-
/** @deprecated use `
|
|
80
|
-
export const outboundSchema =
|
|
81
|
-
/** @deprecated use `
|
|
82
|
-
export type Outbound =
|
|
76
|
+
export namespace ListResponseAgentResponse$ {
|
|
77
|
+
/** @deprecated use `ListResponseAgentResponse$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = ListResponseAgentResponse$inboundSchema;
|
|
79
|
+
/** @deprecated use `ListResponseAgentResponse$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema = ListResponseAgentResponse$outboundSchema;
|
|
81
|
+
/** @deprecated use `ListResponseAgentResponse$Outbound` instead. */
|
|
82
|
+
export type Outbound = ListResponseAgentResponse$Outbound;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export function
|
|
86
|
-
|
|
85
|
+
export function listResponseAgentResponseToJSON(
|
|
86
|
+
listResponseAgentResponse: ListResponseAgentResponse,
|
|
87
87
|
): string {
|
|
88
88
|
return JSON.stringify(
|
|
89
|
-
|
|
89
|
+
ListResponseAgentResponse$outboundSchema.parse(listResponseAgentResponse),
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export function
|
|
93
|
+
export function listResponseAgentResponseFromJSON(
|
|
94
94
|
jsonString: string,
|
|
95
|
-
): SafeParseResult<
|
|
95
|
+
): SafeParseResult<ListResponseAgentResponse, SDKValidationError> {
|
|
96
96
|
return safeParse(
|
|
97
97
|
jsonString,
|
|
98
|
-
(x) =>
|
|
99
|
-
`Failed to parse '
|
|
98
|
+
(x) => ListResponseAgentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ListResponseAgentResponse' from JSON`,
|
|
100
100
|
);
|
|
101
101
|
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CustomMessageResponse,
|
|
12
|
+
CustomMessageResponse$inboundSchema,
|
|
13
|
+
CustomMessageResponse$Outbound,
|
|
14
|
+
CustomMessageResponse$outboundSchema,
|
|
15
|
+
} from "./custommessageresponse.js";
|
|
16
|
+
|
|
17
|
+
export type ListResponseCustomMessageResponse = {
|
|
18
|
+
items: Array<CustomMessageResponse>;
|
|
19
|
+
page: number;
|
|
20
|
+
pageSize: number;
|
|
21
|
+
totalPages?: number | null | undefined;
|
|
22
|
+
totalCount?: number | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ListResponseCustomMessageResponse$inboundSchema: z.ZodType<
|
|
27
|
+
ListResponseCustomMessageResponse,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
items: z.array(CustomMessageResponse$inboundSchema),
|
|
32
|
+
page: z.number().int(),
|
|
33
|
+
page_size: z.number().int(),
|
|
34
|
+
total_pages: z.nullable(z.number().int()).optional(),
|
|
35
|
+
total_count: z.nullable(z.number().int()).optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
"page_size": "pageSize",
|
|
39
|
+
"total_pages": "totalPages",
|
|
40
|
+
"total_count": "totalCount",
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type ListResponseCustomMessageResponse$Outbound = {
|
|
46
|
+
items: Array<CustomMessageResponse$Outbound>;
|
|
47
|
+
page: number;
|
|
48
|
+
page_size: number;
|
|
49
|
+
total_pages?: number | null | undefined;
|
|
50
|
+
total_count?: number | null | undefined;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const ListResponseCustomMessageResponse$outboundSchema: z.ZodType<
|
|
55
|
+
ListResponseCustomMessageResponse$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
ListResponseCustomMessageResponse
|
|
58
|
+
> = z.object({
|
|
59
|
+
items: z.array(CustomMessageResponse$outboundSchema),
|
|
60
|
+
page: z.number().int(),
|
|
61
|
+
pageSize: z.number().int(),
|
|
62
|
+
totalPages: z.nullable(z.number().int()).optional(),
|
|
63
|
+
totalCount: z.nullable(z.number().int()).optional(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
pageSize: "page_size",
|
|
67
|
+
totalPages: "total_pages",
|
|
68
|
+
totalCount: "total_count",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export namespace ListResponseCustomMessageResponse$ {
|
|
77
|
+
/** @deprecated use `ListResponseCustomMessageResponse$inboundSchema` instead. */
|
|
78
|
+
export const inboundSchema = ListResponseCustomMessageResponse$inboundSchema;
|
|
79
|
+
/** @deprecated use `ListResponseCustomMessageResponse$outboundSchema` instead. */
|
|
80
|
+
export const outboundSchema =
|
|
81
|
+
ListResponseCustomMessageResponse$outboundSchema;
|
|
82
|
+
/** @deprecated use `ListResponseCustomMessageResponse$Outbound` instead. */
|
|
83
|
+
export type Outbound = ListResponseCustomMessageResponse$Outbound;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function listResponseCustomMessageResponseToJSON(
|
|
87
|
+
listResponseCustomMessageResponse: ListResponseCustomMessageResponse,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
ListResponseCustomMessageResponse$outboundSchema.parse(
|
|
91
|
+
listResponseCustomMessageResponse,
|
|
92
|
+
),
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function listResponseCustomMessageResponseFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<ListResponseCustomMessageResponse, SDKValidationError> {
|
|
99
|
+
return safeParse(
|
|
100
|
+
jsonString,
|
|
101
|
+
(x) => ListResponseCustomMessageResponse$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'ListResponseCustomMessageResponse' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
@@ -5,25 +5,17 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
AzureOpenai: "azure_openai",
|
|
17
|
-
Openai: "openai",
|
|
18
|
-
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* Provider of the LLM model.
|
|
21
|
-
*/
|
|
22
|
-
export type Provider = ClosedEnum<typeof Provider>;
|
|
10
|
+
import {
|
|
11
|
+
Provider,
|
|
12
|
+
Provider$inboundSchema,
|
|
13
|
+
Provider$outboundSchema,
|
|
14
|
+
} from "./provider.js";
|
|
23
15
|
|
|
24
16
|
export type LlmConfig = {
|
|
25
17
|
/**
|
|
26
|
-
*
|
|
18
|
+
* LLM API provider.
|
|
27
19
|
*/
|
|
28
20
|
provider?: Provider | undefined;
|
|
29
21
|
/**
|
|
@@ -40,32 +32,13 @@ export type LlmConfig = {
|
|
|
40
32
|
apiVersion?: string | null | undefined;
|
|
41
33
|
};
|
|
42
34
|
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
|
|
45
|
-
.nativeEnum(Provider);
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
|
|
49
|
-
Provider$inboundSchema;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
export namespace Provider$ {
|
|
56
|
-
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
57
|
-
export const inboundSchema = Provider$inboundSchema;
|
|
58
|
-
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
59
|
-
export const outboundSchema = Provider$outboundSchema;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
35
|
/** @internal */
|
|
63
36
|
export const LlmConfig$inboundSchema: z.ZodType<
|
|
64
37
|
LlmConfig,
|
|
65
38
|
z.ZodTypeDef,
|
|
66
39
|
unknown
|
|
67
40
|
> = z.object({
|
|
68
|
-
provider: Provider$inboundSchema.
|
|
41
|
+
provider: Provider$inboundSchema.optional(),
|
|
69
42
|
model: z.string().default("gpt-4o"),
|
|
70
43
|
version: z.nullable(z.string()).optional(),
|
|
71
44
|
api_version: z.nullable(z.string()).optional(),
|
|
@@ -77,7 +50,7 @@ export const LlmConfig$inboundSchema: z.ZodType<
|
|
|
77
50
|
|
|
78
51
|
/** @internal */
|
|
79
52
|
export type LlmConfig$Outbound = {
|
|
80
|
-
provider
|
|
53
|
+
provider?: string | undefined;
|
|
81
54
|
model: string;
|
|
82
55
|
version?: string | null | undefined;
|
|
83
56
|
api_version?: string | null | undefined;
|
|
@@ -89,7 +62,7 @@ export const LlmConfig$outboundSchema: z.ZodType<
|
|
|
89
62
|
z.ZodTypeDef,
|
|
90
63
|
LlmConfig
|
|
91
64
|
> = z.object({
|
|
92
|
-
provider: Provider$outboundSchema.
|
|
65
|
+
provider: Provider$outboundSchema.optional(),
|
|
93
66
|
model: z.string().default("gpt-4o"),
|
|
94
67
|
version: z.nullable(z.string()).optional(),
|
|
95
68
|
apiVersion: z.nullable(z.string()).optional(),
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* LLM API provider.
|
|
10
|
+
*/
|
|
11
|
+
export const Provider = {
|
|
12
|
+
AzureOpenai: "azure_openai",
|
|
13
|
+
Openai: "openai",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* LLM API provider.
|
|
17
|
+
*/
|
|
18
|
+
export type Provider = ClosedEnum<typeof Provider>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
|
|
22
|
+
.nativeEnum(Provider);
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
|
|
26
|
+
Provider$inboundSchema;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export namespace Provider$ {
|
|
33
|
+
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
34
|
+
export const inboundSchema = Provider$inboundSchema;
|
|
35
|
+
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
36
|
+
export const outboundSchema = Provider$outboundSchema;
|
|
37
|
+
}
|