syllable-sdk 0.1.0-alpha.5 → 0.1.0-alpha.6
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/README.md +18 -2
- package/docs/sdks/prompts/README.md +78 -0
- package/docs/sdks/services/README.md +245 -0
- package/docs/sdks/syllablesdk/README.md +3 -2
- package/docs/sdks/tools/README.md +163 -1
- package/docs/sdks/transcript/README.md +2 -0
- package/funcs/promptsPromptsHistory.d.ts +17 -0
- package/funcs/promptsPromptsHistory.d.ts.map +1 -0
- package/funcs/promptsPromptsHistory.js +106 -0
- package/funcs/promptsPromptsHistory.js.map +1 -0
- package/funcs/servicesCreate.d.ts +13 -0
- package/funcs/servicesCreate.d.ts.map +1 -0
- package/funcs/servicesCreate.js +96 -0
- package/funcs/servicesCreate.js.map +1 -0
- package/funcs/servicesList.d.ts +17 -0
- package/funcs/servicesList.d.ts.map +1 -0
- package/funcs/servicesList.js +111 -0
- package/funcs/servicesList.js.map +1 -0
- package/funcs/servicesUpdate.d.ts +13 -0
- package/funcs/servicesUpdate.d.ts.map +1 -0
- package/funcs/servicesUpdate.js +96 -0
- package/funcs/servicesUpdate.js.map +1 -0
- package/funcs/toolsCreate.d.ts +16 -0
- package/funcs/toolsCreate.d.ts.map +1 -0
- package/funcs/toolsCreate.js +99 -0
- package/funcs/toolsCreate.js.map +1 -0
- package/funcs/toolsList.d.ts +1 -1
- package/funcs/toolsList.js +1 -1
- package/funcs/toolsUpdate.d.ts +16 -0
- package/funcs/toolsUpdate.d.ts.map +1 -0
- package/funcs/toolsUpdate.js +99 -0
- package/funcs/toolsUpdate.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/channel.d.ts +3 -0
- package/models/components/channel.d.ts.map +1 -1
- package/models/components/channel.js.map +1 -1
- package/models/components/index.d.ts +8 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -2
- package/models/components/index.js.map +1 -1
- package/models/components/listresponseservice.d.ts +38 -0
- package/models/components/listresponseservice.d.ts.map +1 -0
- package/models/components/listresponseservice.js +81 -0
- package/models/components/listresponseservice.js.map +1 -0
- package/models/components/llmconfig.d.ts +34 -3
- package/models/components/llmconfig.d.ts.map +1 -1
- package/models/components/llmconfig.js +26 -4
- package/models/components/llmconfig.js.map +1 -1
- package/models/components/prompt.d.ts +13 -0
- package/models/components/prompt.d.ts.map +1 -1
- package/models/components/prompt.js +8 -0
- package/models/components/prompt.js.map +1 -1
- package/models/components/promptcreate.d.ts +3 -0
- package/models/components/promptcreate.d.ts.map +1 -1
- package/models/components/promptcreate.js.map +1 -1
- package/models/components/prompthistory.d.ts +41 -0
- package/models/components/prompthistory.d.ts.map +1 -0
- package/models/components/prompthistory.js +88 -0
- package/models/components/prompthistory.js.map +1 -0
- package/models/components/promptproperties.d.ts +3 -0
- package/models/components/promptproperties.d.ts.map +1 -1
- package/models/components/promptproperties.js +1 -0
- package/models/components/promptproperties.js.map +1 -1
- package/models/components/service.d.ts +47 -0
- package/models/components/service.d.ts.map +1 -0
- package/models/components/{provider.js → service.js} +30 -19
- package/models/components/service.js.map +1 -0
- package/models/components/servicecreate.d.ts +37 -0
- package/models/components/servicecreate.d.ts.map +1 -0
- package/models/components/servicecreate.js +61 -0
- package/models/components/servicecreate.js.map +1 -0
- package/models/components/serviceproperties.d.ts +28 -0
- package/models/components/serviceproperties.d.ts.map +1 -0
- package/models/components/{orderbydirection.js → serviceproperties.js} +14 -14
- package/models/components/serviceproperties.js.map +1 -0
- package/models/components/serviceupdate.d.ts +42 -0
- package/models/components/serviceupdate.d.ts.map +1 -0
- package/models/components/serviceupdate.js +63 -0
- package/models/components/serviceupdate.js.map +1 -0
- package/models/components/toolcreate.d.ts +66 -0
- package/models/components/toolcreate.d.ts.map +1 -0
- package/models/components/toolcreate.js +95 -0
- package/models/components/toolcreate.js.map +1 -0
- package/models/components/toolupdate.d.ts +71 -0
- package/models/components/toolupdate.d.ts.map +1 -0
- package/models/components/toolupdate.js +97 -0
- package/models/components/toolupdate.js.map +1 -0
- package/models/operations/agentlist.d.ts +77 -2
- package/models/operations/agentlist.d.ts.map +1 -1
- package/models/operations/agentlist.js +52 -5
- package/models/operations/agentlist.js.map +1 -1
- package/models/operations/availabletargets.d.ts +56 -2
- package/models/operations/availabletargets.d.ts.map +1 -1
- package/models/operations/availabletargets.js +47 -5
- package/models/operations/availabletargets.js.map +1 -1
- package/models/operations/channelslist.d.ts +59 -2
- package/models/operations/channelslist.d.ts.map +1 -1
- package/models/operations/channelslist.js +45 -5
- package/models/operations/channelslist.js.map +1 -1
- package/models/operations/channeltargetslist.d.ts +71 -2
- package/models/operations/channeltargetslist.d.ts.map +1 -1
- package/models/operations/channeltargetslist.js +52 -5
- package/models/operations/channeltargetslist.js.map +1 -1
- package/models/operations/conversationslist.d.ts +77 -2
- package/models/operations/conversationslist.d.ts.map +1 -1
- package/models/operations/conversationslist.js +54 -5
- package/models/operations/conversationslist.js.map +1 -1
- package/models/operations/custommessageslist.d.ts +56 -2
- package/models/operations/custommessageslist.d.ts.map +1 -1
- package/models/operations/custommessageslist.js +47 -5
- package/models/operations/custommessageslist.js.map +1 -1
- package/models/operations/eventslist.d.ts +77 -2
- package/models/operations/eventslist.d.ts.map +1 -1
- package/models/operations/eventslist.js +53 -5
- package/models/operations/eventslist.js.map +1 -1
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/promptshistory.d.ts +29 -0
- package/models/operations/promptshistory.d.ts.map +1 -0
- package/models/operations/promptshistory.js +68 -0
- package/models/operations/promptshistory.js.map +1 -0
- package/models/operations/promptslist.d.ts +65 -2
- package/models/operations/promptslist.d.ts.map +1 -1
- package/models/operations/promptslist.js +49 -5
- package/models/operations/promptslist.js.map +1 -1
- package/models/operations/servicelist.d.ts +97 -0
- package/models/operations/servicelist.d.ts.map +1 -0
- package/models/operations/servicelist.js +137 -0
- package/models/operations/servicelist.js.map +1 -0
- package/models/operations/sessionlabelslist.d.ts +68 -2
- package/models/operations/sessionlabelslist.d.ts.map +1 -1
- package/models/operations/sessionlabelslist.js +51 -5
- package/models/operations/sessionlabelslist.js.map +1 -1
- package/models/operations/sessionslist.d.ts +95 -2
- package/models/operations/sessionslist.d.ts.map +1 -1
- package/models/operations/sessionslist.js +59 -5
- package/models/operations/sessionslist.js.map +1 -1
- package/models/operations/toollist.d.ts +62 -2
- package/models/operations/toollist.d.ts.map +1 -1
- package/models/operations/toollist.js +48 -5
- package/models/operations/toollist.js.map +1 -1
- package/package.json +1 -1
- package/sdk/prompts.d.ts +7 -0
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +10 -0
- package/sdk/prompts.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +5 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/services.d.ts +21 -0
- package/sdk/services.d.ts.map +1 -0
- package/sdk/services.js +36 -0
- package/sdk/services.js.map +1 -0
- package/sdk/tools.d.ts +15 -1
- package/sdk/tools.d.ts.map +1 -1
- package/sdk/tools.js +21 -1
- package/sdk/tools.js.map +1 -1
- package/src/funcs/promptsPromptsHistory.ts +139 -0
- package/src/funcs/servicesCreate.ts +128 -0
- package/src/funcs/servicesList.ts +144 -0
- package/src/funcs/servicesUpdate.ts +128 -0
- package/src/funcs/toolsCreate.ts +131 -0
- package/src/funcs/toolsList.ts +1 -1
- package/src/funcs/toolsUpdate.ts +131 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/channel.ts +3 -0
- package/src/models/components/index.ts +8 -2
- package/src/models/components/listresponseservice.ts +101 -0
- package/src/models/components/llmconfig.ts +36 -9
- package/src/models/components/prompt.ts +21 -0
- package/src/models/components/promptcreate.ts +3 -0
- package/src/models/components/prompthistory.ts +103 -0
- package/src/models/components/promptproperties.ts +1 -0
- package/src/models/components/service.ts +83 -0
- package/src/models/components/servicecreate.ts +72 -0
- package/src/models/components/serviceproperties.ts +33 -0
- package/src/models/components/serviceupdate.ts +79 -0
- package/src/models/components/toolcreate.ts +141 -0
- package/src/models/components/toolupdate.ts +148 -0
- package/src/models/operations/agentlist.ts +67 -6
- package/src/models/operations/availabletargets.ts +71 -6
- package/src/models/operations/channelslist.ts +65 -6
- package/src/models/operations/channeltargetslist.ts +77 -6
- package/src/models/operations/conversationslist.ts +78 -6
- package/src/models/operations/custommessageslist.ts +72 -6
- package/src/models/operations/eventslist.ts +78 -6
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/promptshistory.ts +75 -0
- package/src/models/operations/promptslist.ts +74 -6
- package/src/models/operations/servicelist.ts +184 -0
- package/src/models/operations/sessionlabelslist.ts +75 -6
- package/src/models/operations/sessionslist.ts +84 -6
- package/src/models/operations/toollist.ts +71 -6
- package/src/sdk/prompts.ts +18 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/services.ts +58 -0
- package/src/sdk/tools.ts +37 -1
- package/models/components/orderbydirection.d.ts +0 -28
- package/models/components/orderbydirection.d.ts.map +0 -1
- package/models/components/orderbydirection.js.map +0 -1
- package/models/components/provider.d.ts +0 -34
- package/models/components/provider.d.ts.map +0 -1
- package/models/components/provider.js.map +0 -1
- package/src/models/components/orderbydirection.ts +0 -33
- package/src/models/components/provider.ts +0 -37
|
@@ -5,22 +5,92 @@
|
|
|
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";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
13
|
+
export const ConversationsListQueryParamOrderBy = {
|
|
14
|
+
Timestamp: "timestamp",
|
|
15
|
+
AgentType: "agent_type",
|
|
16
|
+
AgentId: "agent_id",
|
|
17
|
+
AgentName: "agent_name",
|
|
18
|
+
PromptId: "prompt_id",
|
|
19
|
+
PromptName: "prompt_name",
|
|
20
|
+
LlmProvider: "llm_provider",
|
|
21
|
+
LlmModel: "llm_model",
|
|
22
|
+
LlmVersion: "llm_version",
|
|
23
|
+
IsLegacy: "is_legacy",
|
|
24
|
+
} as const;
|
|
25
|
+
export type ConversationsListQueryParamOrderBy = ClosedEnum<
|
|
26
|
+
typeof ConversationsListQueryParamOrderBy
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export const ConversationsListQueryParamOrderByDirection = {
|
|
30
|
+
Asc: "asc",
|
|
31
|
+
Desc: "desc",
|
|
32
|
+
} as const;
|
|
33
|
+
export type ConversationsListQueryParamOrderByDirection = ClosedEnum<
|
|
34
|
+
typeof ConversationsListQueryParamOrderByDirection
|
|
35
|
+
>;
|
|
36
|
+
|
|
12
37
|
export type ConversationsListRequest = {
|
|
13
38
|
page?: number | null | undefined;
|
|
14
39
|
limit?: number | undefined;
|
|
15
40
|
searchFields?: Array<components.ConversationProperties> | undefined;
|
|
16
41
|
searchFieldValues?: Array<string> | undefined;
|
|
17
|
-
orderBy?:
|
|
18
|
-
orderByDirection?:
|
|
42
|
+
orderBy?: ConversationsListQueryParamOrderBy | undefined;
|
|
43
|
+
orderByDirection?: ConversationsListQueryParamOrderByDirection | undefined;
|
|
19
44
|
fields?: Array<components.ConversationProperties> | null | undefined;
|
|
20
45
|
startDatetime?: string | null | undefined;
|
|
21
46
|
endDatetime?: string | null | undefined;
|
|
22
47
|
};
|
|
23
48
|
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const ConversationsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
51
|
+
typeof ConversationsListQueryParamOrderBy
|
|
52
|
+
> = z.nativeEnum(ConversationsListQueryParamOrderBy);
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ConversationsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
56
|
+
typeof ConversationsListQueryParamOrderBy
|
|
57
|
+
> = ConversationsListQueryParamOrderBy$inboundSchema;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace ConversationsListQueryParamOrderBy$ {
|
|
64
|
+
/** @deprecated use `ConversationsListQueryParamOrderBy$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema = ConversationsListQueryParamOrderBy$inboundSchema;
|
|
66
|
+
/** @deprecated use `ConversationsListQueryParamOrderBy$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema =
|
|
68
|
+
ConversationsListQueryParamOrderBy$outboundSchema;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const ConversationsListQueryParamOrderByDirection$inboundSchema:
|
|
73
|
+
z.ZodNativeEnum<typeof ConversationsListQueryParamOrderByDirection> = z
|
|
74
|
+
.nativeEnum(ConversationsListQueryParamOrderByDirection);
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const ConversationsListQueryParamOrderByDirection$outboundSchema:
|
|
78
|
+
z.ZodNativeEnum<typeof ConversationsListQueryParamOrderByDirection> =
|
|
79
|
+
ConversationsListQueryParamOrderByDirection$inboundSchema;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
export namespace ConversationsListQueryParamOrderByDirection$ {
|
|
86
|
+
/** @deprecated use `ConversationsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
87
|
+
export const inboundSchema =
|
|
88
|
+
ConversationsListQueryParamOrderByDirection$inboundSchema;
|
|
89
|
+
/** @deprecated use `ConversationsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema =
|
|
91
|
+
ConversationsListQueryParamOrderByDirection$outboundSchema;
|
|
92
|
+
}
|
|
93
|
+
|
|
24
94
|
/** @internal */
|
|
25
95
|
export const ConversationsListRequest$inboundSchema: z.ZodType<
|
|
26
96
|
ConversationsListRequest,
|
|
@@ -32,8 +102,9 @@ export const ConversationsListRequest$inboundSchema: z.ZodType<
|
|
|
32
102
|
search_fields: z.array(components.ConversationProperties$inboundSchema)
|
|
33
103
|
.optional(),
|
|
34
104
|
search_field_values: z.array(z.string()).optional(),
|
|
35
|
-
order_by:
|
|
36
|
-
order_by_direction:
|
|
105
|
+
order_by: ConversationsListQueryParamOrderBy$inboundSchema.optional(),
|
|
106
|
+
order_by_direction: ConversationsListQueryParamOrderByDirection$inboundSchema
|
|
107
|
+
.optional(),
|
|
37
108
|
fields: z.nullable(z.array(components.ConversationProperties$inboundSchema))
|
|
38
109
|
.optional(),
|
|
39
110
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -73,8 +144,9 @@ export const ConversationsListRequest$outboundSchema: z.ZodType<
|
|
|
73
144
|
searchFields: z.array(components.ConversationProperties$outboundSchema)
|
|
74
145
|
.optional(),
|
|
75
146
|
searchFieldValues: z.array(z.string()).optional(),
|
|
76
|
-
orderBy:
|
|
77
|
-
orderByDirection:
|
|
147
|
+
orderBy: ConversationsListQueryParamOrderBy$outboundSchema.optional(),
|
|
148
|
+
orderByDirection: ConversationsListQueryParamOrderByDirection$outboundSchema
|
|
149
|
+
.optional(),
|
|
78
150
|
fields: z.nullable(z.array(components.ConversationProperties$outboundSchema))
|
|
79
151
|
.optional(),
|
|
80
152
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -5,22 +5,86 @@
|
|
|
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";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
13
|
+
export const CustomMessagesListQueryParamOrderBy = {
|
|
14
|
+
Id: "id",
|
|
15
|
+
Name: "name",
|
|
16
|
+
Text: "text",
|
|
17
|
+
} as const;
|
|
18
|
+
export type CustomMessagesListQueryParamOrderBy = ClosedEnum<
|
|
19
|
+
typeof CustomMessagesListQueryParamOrderBy
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export const CustomMessagesListQueryParamOrderByDirection = {
|
|
23
|
+
Asc: "asc",
|
|
24
|
+
Desc: "desc",
|
|
25
|
+
} as const;
|
|
26
|
+
export type CustomMessagesListQueryParamOrderByDirection = ClosedEnum<
|
|
27
|
+
typeof CustomMessagesListQueryParamOrderByDirection
|
|
28
|
+
>;
|
|
29
|
+
|
|
12
30
|
export type CustomMessagesListRequest = {
|
|
13
31
|
page?: number | null | undefined;
|
|
14
32
|
limit?: number | undefined;
|
|
15
33
|
searchFields?: Array<components.CustomMessageProperties> | undefined;
|
|
16
34
|
searchFieldValues?: Array<string> | undefined;
|
|
17
|
-
orderBy?:
|
|
18
|
-
orderByDirection?:
|
|
35
|
+
orderBy?: CustomMessagesListQueryParamOrderBy | undefined;
|
|
36
|
+
orderByDirection?: CustomMessagesListQueryParamOrderByDirection | undefined;
|
|
19
37
|
fields?: Array<components.CustomMessageProperties> | null | undefined;
|
|
20
38
|
startDatetime?: string | null | undefined;
|
|
21
39
|
endDatetime?: string | null | undefined;
|
|
22
40
|
};
|
|
23
41
|
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const CustomMessagesListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
44
|
+
typeof CustomMessagesListQueryParamOrderBy
|
|
45
|
+
> = z.nativeEnum(CustomMessagesListQueryParamOrderBy);
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const CustomMessagesListQueryParamOrderBy$outboundSchema:
|
|
49
|
+
z.ZodNativeEnum<typeof CustomMessagesListQueryParamOrderBy> =
|
|
50
|
+
CustomMessagesListQueryParamOrderBy$inboundSchema;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace CustomMessagesListQueryParamOrderBy$ {
|
|
57
|
+
/** @deprecated use `CustomMessagesListQueryParamOrderBy$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema =
|
|
59
|
+
CustomMessagesListQueryParamOrderBy$inboundSchema;
|
|
60
|
+
/** @deprecated use `CustomMessagesListQueryParamOrderBy$outboundSchema` instead. */
|
|
61
|
+
export const outboundSchema =
|
|
62
|
+
CustomMessagesListQueryParamOrderBy$outboundSchema;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const CustomMessagesListQueryParamOrderByDirection$inboundSchema:
|
|
67
|
+
z.ZodNativeEnum<typeof CustomMessagesListQueryParamOrderByDirection> = z
|
|
68
|
+
.nativeEnum(CustomMessagesListQueryParamOrderByDirection);
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const CustomMessagesListQueryParamOrderByDirection$outboundSchema:
|
|
72
|
+
z.ZodNativeEnum<typeof CustomMessagesListQueryParamOrderByDirection> =
|
|
73
|
+
CustomMessagesListQueryParamOrderByDirection$inboundSchema;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
+
*/
|
|
79
|
+
export namespace CustomMessagesListQueryParamOrderByDirection$ {
|
|
80
|
+
/** @deprecated use `CustomMessagesListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
81
|
+
export const inboundSchema =
|
|
82
|
+
CustomMessagesListQueryParamOrderByDirection$inboundSchema;
|
|
83
|
+
/** @deprecated use `CustomMessagesListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema =
|
|
85
|
+
CustomMessagesListQueryParamOrderByDirection$outboundSchema;
|
|
86
|
+
}
|
|
87
|
+
|
|
24
88
|
/** @internal */
|
|
25
89
|
export const CustomMessagesListRequest$inboundSchema: z.ZodType<
|
|
26
90
|
CustomMessagesListRequest,
|
|
@@ -32,8 +96,9 @@ export const CustomMessagesListRequest$inboundSchema: z.ZodType<
|
|
|
32
96
|
search_fields: z.array(components.CustomMessageProperties$inboundSchema)
|
|
33
97
|
.optional(),
|
|
34
98
|
search_field_values: z.array(z.string()).optional(),
|
|
35
|
-
order_by:
|
|
36
|
-
order_by_direction:
|
|
99
|
+
order_by: CustomMessagesListQueryParamOrderBy$inboundSchema.optional(),
|
|
100
|
+
order_by_direction: CustomMessagesListQueryParamOrderByDirection$inboundSchema
|
|
101
|
+
.optional(),
|
|
37
102
|
fields: z.nullable(z.array(components.CustomMessageProperties$inboundSchema))
|
|
38
103
|
.optional(),
|
|
39
104
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -73,8 +138,9 @@ export const CustomMessagesListRequest$outboundSchema: z.ZodType<
|
|
|
73
138
|
searchFields: z.array(components.CustomMessageProperties$outboundSchema)
|
|
74
139
|
.optional(),
|
|
75
140
|
searchFieldValues: z.array(z.string()).optional(),
|
|
76
|
-
orderBy:
|
|
77
|
-
orderByDirection:
|
|
141
|
+
orderBy: CustomMessagesListQueryParamOrderBy$outboundSchema.optional(),
|
|
142
|
+
orderByDirection: CustomMessagesListQueryParamOrderByDirection$outboundSchema
|
|
143
|
+
.optional(),
|
|
78
144
|
fields: z.nullable(z.array(components.CustomMessageProperties$outboundSchema))
|
|
79
145
|
.optional(),
|
|
80
146
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -5,22 +5,92 @@
|
|
|
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";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
13
|
+
export const EventsListQueryParamOrderBy = {
|
|
14
|
+
Timestamp: "timestamp",
|
|
15
|
+
SessionId: "session_id",
|
|
16
|
+
ConversationId: "conversation_id",
|
|
17
|
+
Source: "source",
|
|
18
|
+
SourceId: "source_id",
|
|
19
|
+
Category: "category",
|
|
20
|
+
Type: "type",
|
|
21
|
+
UserId: "user_id",
|
|
22
|
+
Description: "description",
|
|
23
|
+
Attributes: "attributes",
|
|
24
|
+
} as const;
|
|
25
|
+
export type EventsListQueryParamOrderBy = ClosedEnum<
|
|
26
|
+
typeof EventsListQueryParamOrderBy
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
export const EventsListQueryParamOrderByDirection = {
|
|
30
|
+
Asc: "asc",
|
|
31
|
+
Desc: "desc",
|
|
32
|
+
} as const;
|
|
33
|
+
export type EventsListQueryParamOrderByDirection = ClosedEnum<
|
|
34
|
+
typeof EventsListQueryParamOrderByDirection
|
|
35
|
+
>;
|
|
36
|
+
|
|
12
37
|
export type EventsListRequest = {
|
|
13
38
|
page?: number | null | undefined;
|
|
14
39
|
limit?: number | undefined;
|
|
15
40
|
searchFields?: Array<components.EventProperties> | undefined;
|
|
16
41
|
searchFieldValues?: Array<string> | undefined;
|
|
17
|
-
orderBy?:
|
|
18
|
-
orderByDirection?:
|
|
42
|
+
orderBy?: EventsListQueryParamOrderBy | undefined;
|
|
43
|
+
orderByDirection?: EventsListQueryParamOrderByDirection | undefined;
|
|
19
44
|
fields?: Array<components.EventProperties> | null | undefined;
|
|
20
45
|
startDatetime?: string | null | undefined;
|
|
21
46
|
endDatetime?: string | null | undefined;
|
|
22
47
|
};
|
|
23
48
|
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const EventsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
51
|
+
typeof EventsListQueryParamOrderBy
|
|
52
|
+
> = z.nativeEnum(EventsListQueryParamOrderBy);
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const EventsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
56
|
+
typeof EventsListQueryParamOrderBy
|
|
57
|
+
> = EventsListQueryParamOrderBy$inboundSchema;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* @internal
|
|
61
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
+
*/
|
|
63
|
+
export namespace EventsListQueryParamOrderBy$ {
|
|
64
|
+
/** @deprecated use `EventsListQueryParamOrderBy$inboundSchema` instead. */
|
|
65
|
+
export const inboundSchema = EventsListQueryParamOrderBy$inboundSchema;
|
|
66
|
+
/** @deprecated use `EventsListQueryParamOrderBy$outboundSchema` instead. */
|
|
67
|
+
export const outboundSchema = EventsListQueryParamOrderBy$outboundSchema;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const EventsListQueryParamOrderByDirection$inboundSchema:
|
|
72
|
+
z.ZodNativeEnum<typeof EventsListQueryParamOrderByDirection> = z.nativeEnum(
|
|
73
|
+
EventsListQueryParamOrderByDirection,
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export const EventsListQueryParamOrderByDirection$outboundSchema:
|
|
78
|
+
z.ZodNativeEnum<typeof EventsListQueryParamOrderByDirection> =
|
|
79
|
+
EventsListQueryParamOrderByDirection$inboundSchema;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
export namespace EventsListQueryParamOrderByDirection$ {
|
|
86
|
+
/** @deprecated use `EventsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
87
|
+
export const inboundSchema =
|
|
88
|
+
EventsListQueryParamOrderByDirection$inboundSchema;
|
|
89
|
+
/** @deprecated use `EventsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema =
|
|
91
|
+
EventsListQueryParamOrderByDirection$outboundSchema;
|
|
92
|
+
}
|
|
93
|
+
|
|
24
94
|
/** @internal */
|
|
25
95
|
export const EventsListRequest$inboundSchema: z.ZodType<
|
|
26
96
|
EventsListRequest,
|
|
@@ -31,8 +101,9 @@ export const EventsListRequest$inboundSchema: z.ZodType<
|
|
|
31
101
|
limit: z.number().int().default(25),
|
|
32
102
|
search_fields: z.array(components.EventProperties$inboundSchema).optional(),
|
|
33
103
|
search_field_values: z.array(z.string()).optional(),
|
|
34
|
-
order_by:
|
|
35
|
-
order_by_direction:
|
|
104
|
+
order_by: EventsListQueryParamOrderBy$inboundSchema.optional(),
|
|
105
|
+
order_by_direction: EventsListQueryParamOrderByDirection$inboundSchema
|
|
106
|
+
.optional(),
|
|
36
107
|
fields: z.nullable(z.array(components.EventProperties$inboundSchema))
|
|
37
108
|
.optional(),
|
|
38
109
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -71,8 +142,9 @@ export const EventsListRequest$outboundSchema: z.ZodType<
|
|
|
71
142
|
limit: z.number().int().default(25),
|
|
72
143
|
searchFields: z.array(components.EventProperties$outboundSchema).optional(),
|
|
73
144
|
searchFieldValues: z.array(z.string()).optional(),
|
|
74
|
-
orderBy:
|
|
75
|
-
orderByDirection:
|
|
145
|
+
orderBy: EventsListQueryParamOrderBy$outboundSchema.optional(),
|
|
146
|
+
orderByDirection: EventsListQueryParamOrderByDirection$outboundSchema
|
|
147
|
+
.optional(),
|
|
76
148
|
fields: z.nullable(z.array(components.EventProperties$outboundSchema))
|
|
77
149
|
.optional(),
|
|
78
150
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -27,7 +27,9 @@ export * from "./gettotalcallvolumebyhour.js";
|
|
|
27
27
|
export * from "./getweeklycallvolumebyweekday.js";
|
|
28
28
|
export * from "./promptsdelete.js";
|
|
29
29
|
export * from "./promptsgetbyid.js";
|
|
30
|
+
export * from "./promptshistory.js";
|
|
30
31
|
export * from "./promptslist.js";
|
|
32
|
+
export * from "./servicelist.js";
|
|
31
33
|
export * from "./sessiongetbyid.js";
|
|
32
34
|
export * from "./sessionlabelgetbyid.js";
|
|
33
35
|
export * from "./sessionlabelslist.js";
|
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
|
|
11
|
+
export type PromptsHistoryRequest = {
|
|
12
|
+
promptId: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const PromptsHistoryRequest$inboundSchema: z.ZodType<
|
|
17
|
+
PromptsHistoryRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
prompt_id: z.number().int(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"prompt_id": "promptId",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type PromptsHistoryRequest$Outbound = {
|
|
30
|
+
prompt_id: number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const PromptsHistoryRequest$outboundSchema: z.ZodType<
|
|
35
|
+
PromptsHistoryRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
PromptsHistoryRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
promptId: z.number().int(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
promptId: "prompt_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace PromptsHistoryRequest$ {
|
|
51
|
+
/** @deprecated use `PromptsHistoryRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = PromptsHistoryRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `PromptsHistoryRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = PromptsHistoryRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `PromptsHistoryRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = PromptsHistoryRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function promptsHistoryRequestToJSON(
|
|
60
|
+
promptsHistoryRequest: PromptsHistoryRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
PromptsHistoryRequest$outboundSchema.parse(promptsHistoryRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function promptsHistoryRequestFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<PromptsHistoryRequest, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => PromptsHistoryRequest$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'PromptsHistoryRequest' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -5,22 +5,88 @@
|
|
|
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";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
13
|
+
export const PromptsListQueryParamOrderBy = {
|
|
14
|
+
Id: "id",
|
|
15
|
+
Name: "name",
|
|
16
|
+
Context: "context",
|
|
17
|
+
Tools: "tools",
|
|
18
|
+
LlmConfig: "llm_config",
|
|
19
|
+
LastUpdatedBy: "last_updated_by",
|
|
20
|
+
} as const;
|
|
21
|
+
export type PromptsListQueryParamOrderBy = ClosedEnum<
|
|
22
|
+
typeof PromptsListQueryParamOrderBy
|
|
23
|
+
>;
|
|
24
|
+
|
|
25
|
+
export const PromptsListQueryParamOrderByDirection = {
|
|
26
|
+
Asc: "asc",
|
|
27
|
+
Desc: "desc",
|
|
28
|
+
} as const;
|
|
29
|
+
export type PromptsListQueryParamOrderByDirection = ClosedEnum<
|
|
30
|
+
typeof PromptsListQueryParamOrderByDirection
|
|
31
|
+
>;
|
|
32
|
+
|
|
12
33
|
export type PromptsListRequest = {
|
|
13
34
|
page?: number | null | undefined;
|
|
14
35
|
limit?: number | undefined;
|
|
15
36
|
searchFields?: Array<components.PromptProperties> | undefined;
|
|
16
37
|
searchFieldValues?: Array<string> | undefined;
|
|
17
|
-
orderBy?:
|
|
18
|
-
orderByDirection?:
|
|
38
|
+
orderBy?: PromptsListQueryParamOrderBy | undefined;
|
|
39
|
+
orderByDirection?: PromptsListQueryParamOrderByDirection | undefined;
|
|
19
40
|
fields?: Array<components.PromptProperties> | null | undefined;
|
|
20
41
|
startDatetime?: string | null | undefined;
|
|
21
42
|
endDatetime?: string | null | undefined;
|
|
22
43
|
};
|
|
23
44
|
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PromptsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
47
|
+
typeof PromptsListQueryParamOrderBy
|
|
48
|
+
> = z.nativeEnum(PromptsListQueryParamOrderBy);
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const PromptsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
52
|
+
typeof PromptsListQueryParamOrderBy
|
|
53
|
+
> = PromptsListQueryParamOrderBy$inboundSchema;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
export namespace PromptsListQueryParamOrderBy$ {
|
|
60
|
+
/** @deprecated use `PromptsListQueryParamOrderBy$inboundSchema` instead. */
|
|
61
|
+
export const inboundSchema = PromptsListQueryParamOrderBy$inboundSchema;
|
|
62
|
+
/** @deprecated use `PromptsListQueryParamOrderBy$outboundSchema` instead. */
|
|
63
|
+
export const outboundSchema = PromptsListQueryParamOrderBy$outboundSchema;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const PromptsListQueryParamOrderByDirection$inboundSchema:
|
|
68
|
+
z.ZodNativeEnum<typeof PromptsListQueryParamOrderByDirection> = z.nativeEnum(
|
|
69
|
+
PromptsListQueryParamOrderByDirection,
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const PromptsListQueryParamOrderByDirection$outboundSchema:
|
|
74
|
+
z.ZodNativeEnum<typeof PromptsListQueryParamOrderByDirection> =
|
|
75
|
+
PromptsListQueryParamOrderByDirection$inboundSchema;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* @internal
|
|
79
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
+
*/
|
|
81
|
+
export namespace PromptsListQueryParamOrderByDirection$ {
|
|
82
|
+
/** @deprecated use `PromptsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
83
|
+
export const inboundSchema =
|
|
84
|
+
PromptsListQueryParamOrderByDirection$inboundSchema;
|
|
85
|
+
/** @deprecated use `PromptsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema =
|
|
87
|
+
PromptsListQueryParamOrderByDirection$outboundSchema;
|
|
88
|
+
}
|
|
89
|
+
|
|
24
90
|
/** @internal */
|
|
25
91
|
export const PromptsListRequest$inboundSchema: z.ZodType<
|
|
26
92
|
PromptsListRequest,
|
|
@@ -31,8 +97,9 @@ export const PromptsListRequest$inboundSchema: z.ZodType<
|
|
|
31
97
|
limit: z.number().int().default(25),
|
|
32
98
|
search_fields: z.array(components.PromptProperties$inboundSchema).optional(),
|
|
33
99
|
search_field_values: z.array(z.string()).optional(),
|
|
34
|
-
order_by:
|
|
35
|
-
order_by_direction:
|
|
100
|
+
order_by: PromptsListQueryParamOrderBy$inboundSchema.optional(),
|
|
101
|
+
order_by_direction: PromptsListQueryParamOrderByDirection$inboundSchema
|
|
102
|
+
.optional(),
|
|
36
103
|
fields: z.nullable(z.array(components.PromptProperties$inboundSchema))
|
|
37
104
|
.optional(),
|
|
38
105
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -71,8 +138,9 @@ export const PromptsListRequest$outboundSchema: z.ZodType<
|
|
|
71
138
|
limit: z.number().int().default(25),
|
|
72
139
|
searchFields: z.array(components.PromptProperties$outboundSchema).optional(),
|
|
73
140
|
searchFieldValues: z.array(z.string()).optional(),
|
|
74
|
-
orderBy:
|
|
75
|
-
orderByDirection:
|
|
141
|
+
orderBy: PromptsListQueryParamOrderBy$outboundSchema.optional(),
|
|
142
|
+
orderByDirection: PromptsListQueryParamOrderByDirection$outboundSchema
|
|
143
|
+
.optional(),
|
|
76
144
|
fields: z.nullable(z.array(components.PromptProperties$outboundSchema))
|
|
77
145
|
.optional(),
|
|
78
146
|
startDatetime: z.nullable(z.string()).optional(),
|