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
package/src/sdk/agents.ts
CHANGED
|
@@ -29,7 +29,7 @@ export class Agents extends ClientSDK {
|
|
|
29
29
|
async list(
|
|
30
30
|
request: operations.AgentListRequest,
|
|
31
31
|
options?: RequestOptions,
|
|
32
|
-
): Promise<components.
|
|
32
|
+
): Promise<components.ListResponseAgentResponse> {
|
|
33
33
|
return unwrapAsync(agentsList(
|
|
34
34
|
this,
|
|
35
35
|
request,
|
|
@@ -80,7 +80,7 @@ export class Agents extends ClientSDK {
|
|
|
80
80
|
async getById(
|
|
81
81
|
request: operations.AgentGetByIdRequest,
|
|
82
82
|
options?: RequestOptions,
|
|
83
|
-
): Promise<components.
|
|
83
|
+
): Promise<components.AgentResponse> {
|
|
84
84
|
return unwrapAsync(agentsGetById(
|
|
85
85
|
this,
|
|
86
86
|
request,
|
|
@@ -22,7 +22,7 @@ export class CustomMessages extends ClientSDK {
|
|
|
22
22
|
async list(
|
|
23
23
|
request: operations.CustomMessagesListRequest,
|
|
24
24
|
options?: RequestOptions,
|
|
25
|
-
): Promise<components.
|
|
25
|
+
): Promise<components.ListResponseCustomMessageResponse> {
|
|
26
26
|
return unwrapAsync(customMessagesList(
|
|
27
27
|
this,
|
|
28
28
|
request,
|
|
@@ -37,9 +37,9 @@ export class CustomMessages extends ClientSDK {
|
|
|
37
37
|
* Create a new greeting
|
|
38
38
|
*/
|
|
39
39
|
async create(
|
|
40
|
-
request: components.
|
|
40
|
+
request: components.CustomMessageCreateRequest,
|
|
41
41
|
options?: RequestOptions,
|
|
42
|
-
): Promise<components.
|
|
42
|
+
): Promise<components.CustomMessageResponse> {
|
|
43
43
|
return unwrapAsync(customMessagesCreate(
|
|
44
44
|
this,
|
|
45
45
|
request,
|
|
@@ -54,9 +54,9 @@ export class CustomMessages extends ClientSDK {
|
|
|
54
54
|
* Update a greeting
|
|
55
55
|
*/
|
|
56
56
|
async update(
|
|
57
|
-
request: components.
|
|
57
|
+
request: components.CustomMessageUpdateRequest,
|
|
58
58
|
options?: RequestOptions,
|
|
59
|
-
): Promise<components.
|
|
59
|
+
): Promise<components.CustomMessageResponse> {
|
|
60
60
|
return unwrapAsync(customMessagesUpdate(
|
|
61
61
|
this,
|
|
62
62
|
request,
|
|
@@ -73,7 +73,7 @@ export class CustomMessages extends ClientSDK {
|
|
|
73
73
|
async getById(
|
|
74
74
|
request: operations.CustomMessageGetByIdRequest,
|
|
75
75
|
options?: RequestOptions,
|
|
76
|
-
): Promise<components.
|
|
76
|
+
): Promise<components.CustomMessageResponse> {
|
|
77
77
|
return unwrapAsync(customMessagesGetById(
|
|
78
78
|
this,
|
|
79
79
|
request,
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type CustomMessageCreate = {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the greeting
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* The text of the greeting
|
|
11
|
-
*/
|
|
12
|
-
text: string;
|
|
13
|
-
type?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const CustomMessageCreate$inboundSchema: z.ZodType<CustomMessageCreate, z.ZodTypeDef, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export type CustomMessageCreate$Outbound = {
|
|
19
|
-
name: string;
|
|
20
|
-
text: string;
|
|
21
|
-
type: string;
|
|
22
|
-
};
|
|
23
|
-
/** @internal */
|
|
24
|
-
export declare const CustomMessageCreate$outboundSchema: z.ZodType<CustomMessageCreate$Outbound, z.ZodTypeDef, CustomMessageCreate>;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
-
*/
|
|
29
|
-
export declare namespace CustomMessageCreate$ {
|
|
30
|
-
/** @deprecated use `CustomMessageCreate$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.ZodType<CustomMessageCreate, z.ZodTypeDef, unknown>;
|
|
32
|
-
/** @deprecated use `CustomMessageCreate$outboundSchema` instead. */
|
|
33
|
-
const outboundSchema: z.ZodType<CustomMessageCreate$Outbound, z.ZodTypeDef, CustomMessageCreate>;
|
|
34
|
-
/** @deprecated use `CustomMessageCreate$Outbound` instead. */
|
|
35
|
-
type Outbound = CustomMessageCreate$Outbound;
|
|
36
|
-
}
|
|
37
|
-
export declare function customMessageCreateToJSON(customMessageCreate: CustomMessageCreate): string;
|
|
38
|
-
export declare function customMessageCreateFromJSON(jsonString: string): SafeParseResult<CustomMessageCreate, SDKValidationError>;
|
|
39
|
-
//# sourceMappingURL=custommessagecreate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custommessagecreate.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessagecreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAKnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custommessagecreate.js","sourceRoot":"","sources":["../../src/models/components/custommessagecreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DH,8DAMC;AAED,kEAQC;AA3ED,uCAAyB;AACzB,qDAAiD;AAgBjD,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;CACrC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;CACrC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,oCAApB,oBAAoB,QAOpC;AAED,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,SAAgB,2BAA2B,CACzC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { Agent, Agent$Outbound } from "./agent.js";
|
|
5
|
-
export type ListResponseAgent = {
|
|
6
|
-
items: Array<Agent>;
|
|
7
|
-
page: number;
|
|
8
|
-
pageSize: number;
|
|
9
|
-
totalPages?: number | null | undefined;
|
|
10
|
-
totalCount?: number | null | undefined;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const ListResponseAgent$inboundSchema: z.ZodType<ListResponseAgent, z.ZodTypeDef, unknown>;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type ListResponseAgent$Outbound = {
|
|
16
|
-
items: Array<Agent$Outbound>;
|
|
17
|
-
page: number;
|
|
18
|
-
page_size: number;
|
|
19
|
-
total_pages?: number | null | undefined;
|
|
20
|
-
total_count?: number | null | undefined;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const ListResponseAgent$outboundSchema: z.ZodType<ListResponseAgent$Outbound, z.ZodTypeDef, ListResponseAgent>;
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
-
*/
|
|
28
|
-
export declare namespace ListResponseAgent$ {
|
|
29
|
-
/** @deprecated use `ListResponseAgent$inboundSchema` instead. */
|
|
30
|
-
const inboundSchema: z.ZodType<ListResponseAgent, z.ZodTypeDef, unknown>;
|
|
31
|
-
/** @deprecated use `ListResponseAgent$outboundSchema` instead. */
|
|
32
|
-
const outboundSchema: z.ZodType<ListResponseAgent$Outbound, z.ZodTypeDef, ListResponseAgent>;
|
|
33
|
-
/** @deprecated use `ListResponseAgent$Outbound` instead. */
|
|
34
|
-
type Outbound = ListResponseAgent$Outbound;
|
|
35
|
-
}
|
|
36
|
-
export declare function listResponseAgentToJSON(listResponseAgent: ListResponseAgent): string;
|
|
37
|
-
export declare function listResponseAgentFromJSON(jsonString: string): SafeParseResult<ListResponseAgent, SDKValidationError>;
|
|
38
|
-
//# sourceMappingURL=listresponseagent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listresponseagent.d.ts","sourceRoot":"","sources":["../../src/models/components/listresponseagent.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,KAAK,EAEL,cAAc,EAEf,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAajB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listresponseagent.js","sourceRoot":"","sources":["../../src/models/components/listresponseagent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFH,0DAMC;AAED,8DAQC;AAhGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,yCAKoB;AAUpB,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,8BAAmB,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,aAAa,EAAE,YAAY;QAC3B,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,+BAAoB,CAAC;IACpC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { CustomMessage, CustomMessage$Outbound } from "./custommessage.js";
|
|
5
|
-
export type ListResponseCustomMessage = {
|
|
6
|
-
items: Array<CustomMessage>;
|
|
7
|
-
page: number;
|
|
8
|
-
pageSize: number;
|
|
9
|
-
totalPages?: number | null | undefined;
|
|
10
|
-
totalCount?: number | null | undefined;
|
|
11
|
-
};
|
|
12
|
-
/** @internal */
|
|
13
|
-
export declare const ListResponseCustomMessage$inboundSchema: z.ZodType<ListResponseCustomMessage, z.ZodTypeDef, unknown>;
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type ListResponseCustomMessage$Outbound = {
|
|
16
|
-
items: Array<CustomMessage$Outbound>;
|
|
17
|
-
page: number;
|
|
18
|
-
page_size: number;
|
|
19
|
-
total_pages?: number | null | undefined;
|
|
20
|
-
total_count?: number | null | undefined;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const ListResponseCustomMessage$outboundSchema: z.ZodType<ListResponseCustomMessage$Outbound, z.ZodTypeDef, ListResponseCustomMessage>;
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
-
*/
|
|
28
|
-
export declare namespace ListResponseCustomMessage$ {
|
|
29
|
-
/** @deprecated use `ListResponseCustomMessage$inboundSchema` instead. */
|
|
30
|
-
const inboundSchema: z.ZodType<ListResponseCustomMessage, z.ZodTypeDef, unknown>;
|
|
31
|
-
/** @deprecated use `ListResponseCustomMessage$outboundSchema` instead. */
|
|
32
|
-
const outboundSchema: z.ZodType<ListResponseCustomMessage$Outbound, z.ZodTypeDef, ListResponseCustomMessage>;
|
|
33
|
-
/** @deprecated use `ListResponseCustomMessage$Outbound` instead. */
|
|
34
|
-
type Outbound = ListResponseCustomMessage$Outbound;
|
|
35
|
-
}
|
|
36
|
-
export declare function listResponseCustomMessageToJSON(listResponseCustomMessage: ListResponseCustomMessage): string;
|
|
37
|
-
export declare function listResponseCustomMessageFromJSON(jsonString: string): SafeParseResult<ListResponseCustomMessage, SDKValidationError>;
|
|
38
|
-
//# sourceMappingURL=listresponsecustommessage.d.ts.map
|
|
@@ -1,80 +0,0 @@
|
|
|
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 CustomMessageCreate = {
|
|
11
|
-
/**
|
|
12
|
-
* The name of the greeting
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* The text of the greeting
|
|
17
|
-
*/
|
|
18
|
-
text: string;
|
|
19
|
-
type?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const CustomMessageCreate$inboundSchema: z.ZodType<
|
|
24
|
-
CustomMessageCreate,
|
|
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 CustomMessageCreate$Outbound = {
|
|
35
|
-
name: string;
|
|
36
|
-
text: string;
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const CustomMessageCreate$outboundSchema: z.ZodType<
|
|
42
|
-
CustomMessageCreate$Outbound,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
CustomMessageCreate
|
|
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 CustomMessageCreate$ {
|
|
56
|
-
/** @deprecated use `CustomMessageCreate$inboundSchema` instead. */
|
|
57
|
-
export const inboundSchema = CustomMessageCreate$inboundSchema;
|
|
58
|
-
/** @deprecated use `CustomMessageCreate$outboundSchema` instead. */
|
|
59
|
-
export const outboundSchema = CustomMessageCreate$outboundSchema;
|
|
60
|
-
/** @deprecated use `CustomMessageCreate$Outbound` instead. */
|
|
61
|
-
export type Outbound = CustomMessageCreate$Outbound;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function customMessageCreateToJSON(
|
|
65
|
-
customMessageCreate: CustomMessageCreate,
|
|
66
|
-
): string {
|
|
67
|
-
return JSON.stringify(
|
|
68
|
-
CustomMessageCreate$outboundSchema.parse(customMessageCreate),
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function customMessageCreateFromJSON(
|
|
73
|
-
jsonString: string,
|
|
74
|
-
): SafeParseResult<CustomMessageCreate, SDKValidationError> {
|
|
75
|
-
return safeParse(
|
|
76
|
-
jsonString,
|
|
77
|
-
(x) => CustomMessageCreate$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
-
`Failed to parse 'CustomMessageCreate' from JSON`,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
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
|
-
Agent,
|
|
12
|
-
Agent$inboundSchema,
|
|
13
|
-
Agent$Outbound,
|
|
14
|
-
Agent$outboundSchema,
|
|
15
|
-
} from "./agent.js";
|
|
16
|
-
|
|
17
|
-
export type ListResponseAgent = {
|
|
18
|
-
items: Array<Agent>;
|
|
19
|
-
page: number;
|
|
20
|
-
pageSize: number;
|
|
21
|
-
totalPages?: number | null | undefined;
|
|
22
|
-
totalCount?: number | null | undefined;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const ListResponseAgent$inboundSchema: z.ZodType<
|
|
27
|
-
ListResponseAgent,
|
|
28
|
-
z.ZodTypeDef,
|
|
29
|
-
unknown
|
|
30
|
-
> = z.object({
|
|
31
|
-
items: z.array(Agent$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 ListResponseAgent$Outbound = {
|
|
46
|
-
items: Array<Agent$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 ListResponseAgent$outboundSchema: z.ZodType<
|
|
55
|
-
ListResponseAgent$Outbound,
|
|
56
|
-
z.ZodTypeDef,
|
|
57
|
-
ListResponseAgent
|
|
58
|
-
> = z.object({
|
|
59
|
-
items: z.array(Agent$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 ListResponseAgent$ {
|
|
77
|
-
/** @deprecated use `ListResponseAgent$inboundSchema` instead. */
|
|
78
|
-
export const inboundSchema = ListResponseAgent$inboundSchema;
|
|
79
|
-
/** @deprecated use `ListResponseAgent$outboundSchema` instead. */
|
|
80
|
-
export const outboundSchema = ListResponseAgent$outboundSchema;
|
|
81
|
-
/** @deprecated use `ListResponseAgent$Outbound` instead. */
|
|
82
|
-
export type Outbound = ListResponseAgent$Outbound;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function listResponseAgentToJSON(
|
|
86
|
-
listResponseAgent: ListResponseAgent,
|
|
87
|
-
): string {
|
|
88
|
-
return JSON.stringify(
|
|
89
|
-
ListResponseAgent$outboundSchema.parse(listResponseAgent),
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function listResponseAgentFromJSON(
|
|
94
|
-
jsonString: string,
|
|
95
|
-
): SafeParseResult<ListResponseAgent, SDKValidationError> {
|
|
96
|
-
return safeParse(
|
|
97
|
-
jsonString,
|
|
98
|
-
(x) => ListResponseAgent$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
-
`Failed to parse 'ListResponseAgent' from JSON`,
|
|
100
|
-
);
|
|
101
|
-
}
|