syllable-sdk 0.1.0-alpha.6 → 0.1.0-alpha.7
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 +4 -4
- package/docs/sdks/prompts/README.md +1 -1
- package/docs/sdks/syllablesdk/README.md +4 -4
- package/funcs/promptsDelete.d.ts +3 -0
- package/funcs/promptsDelete.d.ts.map +1 -1
- package/funcs/promptsDelete.js +3 -0
- package/funcs/promptsDelete.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +5 -5
- package/models/components/agent.d.ts +2 -0
- package/models/components/agent.d.ts.map +1 -1
- package/models/components/agent.js +4 -0
- package/models/components/agent.js.map +1 -1
- package/models/components/agentproperties.d.ts +3 -0
- package/models/components/agentproperties.d.ts.map +1 -1
- package/models/components/agentproperties.js +1 -0
- package/models/components/agentproperties.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/orderbydirection.d.ts +28 -0
- package/models/components/orderbydirection.d.ts.map +1 -0
- package/models/components/orderbydirection.js +50 -0
- package/models/components/orderbydirection.js.map +1 -0
- package/models/components/session.d.ts +4 -0
- package/models/components/session.d.ts.map +1 -1
- package/models/components/session.js +8 -0
- package/models/components/session.js.map +1 -1
- package/models/operations/agentlist.d.ts +4 -79
- package/models/operations/agentlist.d.ts.map +1 -1
- package/models/operations/agentlist.js +7 -52
- package/models/operations/agentlist.js.map +1 -1
- package/models/operations/availabletargets.d.ts +4 -58
- package/models/operations/availabletargets.d.ts.map +1 -1
- package/models/operations/availabletargets.js +7 -45
- package/models/operations/availabletargets.js.map +1 -1
- package/models/operations/channelslist.d.ts +4 -61
- package/models/operations/channelslist.d.ts.map +1 -1
- package/models/operations/channelslist.js +7 -45
- package/models/operations/channelslist.js.map +1 -1
- package/models/operations/channeltargetslist.d.ts +4 -73
- package/models/operations/channeltargetslist.d.ts.map +1 -1
- package/models/operations/channeltargetslist.js +7 -50
- package/models/operations/channeltargetslist.js.map +1 -1
- package/models/operations/conversationslist.d.ts +4 -79
- package/models/operations/conversationslist.d.ts.map +1 -1
- package/models/operations/conversationslist.js +7 -52
- package/models/operations/conversationslist.js.map +1 -1
- package/models/operations/custommessageslist.d.ts +4 -58
- package/models/operations/custommessageslist.d.ts.map +1 -1
- package/models/operations/custommessageslist.js +7 -45
- package/models/operations/custommessageslist.js.map +1 -1
- package/models/operations/eventslist.d.ts +4 -79
- package/models/operations/eventslist.d.ts.map +1 -1
- package/models/operations/eventslist.js +5 -51
- package/models/operations/eventslist.js.map +1 -1
- package/models/operations/promptslist.d.ts +4 -67
- package/models/operations/promptslist.d.ts.map +1 -1
- package/models/operations/promptslist.js +5 -47
- package/models/operations/promptslist.js.map +1 -1
- package/models/operations/servicelist.d.ts +4 -55
- package/models/operations/servicelist.d.ts.map +1 -1
- package/models/operations/servicelist.js +5 -43
- package/models/operations/servicelist.js.map +1 -1
- package/models/operations/sessionlabelslist.d.ts +4 -70
- package/models/operations/sessionlabelslist.d.ts.map +1 -1
- package/models/operations/sessionlabelslist.js +7 -49
- package/models/operations/sessionlabelslist.js.map +1 -1
- package/models/operations/sessionslist.d.ts +4 -97
- package/models/operations/sessionslist.d.ts.map +1 -1
- package/models/operations/sessionslist.js +5 -57
- package/models/operations/sessionslist.js.map +1 -1
- package/models/operations/toollist.d.ts +4 -64
- package/models/operations/toollist.d.ts.map +1 -1
- package/models/operations/toollist.js +5 -46
- package/models/operations/toollist.js.map +1 -1
- package/package.json +1 -1
- package/sdk/prompts.d.ts +3 -0
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +3 -0
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/promptsDelete.ts +3 -0
- package/src/lib/config.ts +5 -5
- package/src/models/components/agent.ts +8 -0
- package/src/models/components/agentproperties.ts +1 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/orderbydirection.ts +33 -0
- package/src/models/components/session.ts +12 -0
- package/src/models/operations/agentlist.ts +10 -69
- package/src/models/operations/availabletargets.ts +10 -71
- package/src/models/operations/channelslist.ts +10 -67
- package/src/models/operations/channeltargetslist.ts +10 -77
- package/src/models/operations/conversationslist.ts +10 -78
- package/src/models/operations/custommessageslist.ts +10 -72
- package/src/models/operations/eventslist.ts +8 -78
- package/src/models/operations/promptslist.ts +8 -74
- package/src/models/operations/servicelist.ts +8 -70
- package/src/models/operations/sessionlabelslist.ts +10 -75
- package/src/models/operations/sessionslist.ts +8 -84
- package/src/models/operations/toollist.ts +8 -71
- package/src/sdk/prompts.ts +3 -0
|
@@ -5,91 +5,22 @@
|
|
|
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 * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
13
|
-
export const ChannelTargetsListQueryParamOrderBy = {
|
|
14
|
-
Id: "id",
|
|
15
|
-
ChannelId: "channel_id",
|
|
16
|
-
ChannelName: "channel_name",
|
|
17
|
-
AgentId: "agent_id",
|
|
18
|
-
Target: "target",
|
|
19
|
-
TargetMode: "target_mode",
|
|
20
|
-
FallbackTarget: "fallback_target",
|
|
21
|
-
IsTest: "is_test",
|
|
22
|
-
} as const;
|
|
23
|
-
export type ChannelTargetsListQueryParamOrderBy = ClosedEnum<
|
|
24
|
-
typeof ChannelTargetsListQueryParamOrderBy
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
|
-
export const ChannelTargetsListQueryParamOrderByDirection = {
|
|
28
|
-
Asc: "asc",
|
|
29
|
-
Desc: "desc",
|
|
30
|
-
} as const;
|
|
31
|
-
export type ChannelTargetsListQueryParamOrderByDirection = ClosedEnum<
|
|
32
|
-
typeof ChannelTargetsListQueryParamOrderByDirection
|
|
33
|
-
>;
|
|
34
|
-
|
|
35
12
|
export type ChannelTargetsListRequest = {
|
|
36
13
|
page?: number | null | undefined;
|
|
37
14
|
limit?: number | undefined;
|
|
38
15
|
searchFields?: Array<components.ChannelTargetProperties> | undefined;
|
|
39
16
|
searchFieldValues?: Array<string> | undefined;
|
|
40
|
-
orderBy?:
|
|
41
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.ChannelTargetProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
42
19
|
fields?: Array<components.ChannelTargetProperties> | null | undefined;
|
|
43
20
|
startDatetime?: string | null | undefined;
|
|
44
21
|
endDatetime?: string | null | undefined;
|
|
45
22
|
};
|
|
46
23
|
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const ChannelTargetsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
49
|
-
typeof ChannelTargetsListQueryParamOrderBy
|
|
50
|
-
> = z.nativeEnum(ChannelTargetsListQueryParamOrderBy);
|
|
51
|
-
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const ChannelTargetsListQueryParamOrderBy$outboundSchema:
|
|
54
|
-
z.ZodNativeEnum<typeof ChannelTargetsListQueryParamOrderBy> =
|
|
55
|
-
ChannelTargetsListQueryParamOrderBy$inboundSchema;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
export namespace ChannelTargetsListQueryParamOrderBy$ {
|
|
62
|
-
/** @deprecated use `ChannelTargetsListQueryParamOrderBy$inboundSchema` instead. */
|
|
63
|
-
export const inboundSchema =
|
|
64
|
-
ChannelTargetsListQueryParamOrderBy$inboundSchema;
|
|
65
|
-
/** @deprecated use `ChannelTargetsListQueryParamOrderBy$outboundSchema` instead. */
|
|
66
|
-
export const outboundSchema =
|
|
67
|
-
ChannelTargetsListQueryParamOrderBy$outboundSchema;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const ChannelTargetsListQueryParamOrderByDirection$inboundSchema:
|
|
72
|
-
z.ZodNativeEnum<typeof ChannelTargetsListQueryParamOrderByDirection> = z
|
|
73
|
-
.nativeEnum(ChannelTargetsListQueryParamOrderByDirection);
|
|
74
|
-
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const ChannelTargetsListQueryParamOrderByDirection$outboundSchema:
|
|
77
|
-
z.ZodNativeEnum<typeof ChannelTargetsListQueryParamOrderByDirection> =
|
|
78
|
-
ChannelTargetsListQueryParamOrderByDirection$inboundSchema;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
-
*/
|
|
84
|
-
export namespace ChannelTargetsListQueryParamOrderByDirection$ {
|
|
85
|
-
/** @deprecated use `ChannelTargetsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
86
|
-
export const inboundSchema =
|
|
87
|
-
ChannelTargetsListQueryParamOrderByDirection$inboundSchema;
|
|
88
|
-
/** @deprecated use `ChannelTargetsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
89
|
-
export const outboundSchema =
|
|
90
|
-
ChannelTargetsListQueryParamOrderByDirection$outboundSchema;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
24
|
/** @internal */
|
|
94
25
|
export const ChannelTargetsListRequest$inboundSchema: z.ZodType<
|
|
95
26
|
ChannelTargetsListRequest,
|
|
@@ -101,8 +32,9 @@ export const ChannelTargetsListRequest$inboundSchema: z.ZodType<
|
|
|
101
32
|
search_fields: z.array(components.ChannelTargetProperties$inboundSchema)
|
|
102
33
|
.optional(),
|
|
103
34
|
search_field_values: z.array(z.string()).optional(),
|
|
104
|
-
order_by:
|
|
105
|
-
|
|
35
|
+
order_by: z.nullable(components.ChannelTargetProperties$inboundSchema)
|
|
36
|
+
.optional(),
|
|
37
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
106
38
|
.optional(),
|
|
107
39
|
fields: z.nullable(z.array(components.ChannelTargetProperties$inboundSchema))
|
|
108
40
|
.optional(),
|
|
@@ -125,8 +57,8 @@ export type ChannelTargetsListRequest$Outbound = {
|
|
|
125
57
|
limit: number;
|
|
126
58
|
search_fields?: Array<string> | undefined;
|
|
127
59
|
search_field_values?: Array<string> | undefined;
|
|
128
|
-
order_by?: string | undefined;
|
|
129
|
-
order_by_direction?: string | undefined;
|
|
60
|
+
order_by?: string | null | undefined;
|
|
61
|
+
order_by_direction?: string | null | undefined;
|
|
130
62
|
fields?: Array<string> | null | undefined;
|
|
131
63
|
start_datetime?: string | null | undefined;
|
|
132
64
|
end_datetime?: string | null | undefined;
|
|
@@ -143,8 +75,9 @@ export const ChannelTargetsListRequest$outboundSchema: z.ZodType<
|
|
|
143
75
|
searchFields: z.array(components.ChannelTargetProperties$outboundSchema)
|
|
144
76
|
.optional(),
|
|
145
77
|
searchFieldValues: z.array(z.string()).optional(),
|
|
146
|
-
orderBy:
|
|
147
|
-
|
|
78
|
+
orderBy: z.nullable(components.ChannelTargetProperties$outboundSchema)
|
|
79
|
+
.optional(),
|
|
80
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
148
81
|
.optional(),
|
|
149
82
|
fields: z.nullable(z.array(components.ChannelTargetProperties$outboundSchema))
|
|
150
83
|
.optional(),
|
|
@@ -5,92 +5,22 @@
|
|
|
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 * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
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
|
-
|
|
37
12
|
export type ConversationsListRequest = {
|
|
38
13
|
page?: number | null | undefined;
|
|
39
14
|
limit?: number | undefined;
|
|
40
15
|
searchFields?: Array<components.ConversationProperties> | undefined;
|
|
41
16
|
searchFieldValues?: Array<string> | undefined;
|
|
42
|
-
orderBy?:
|
|
43
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.ConversationProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
44
19
|
fields?: Array<components.ConversationProperties> | null | undefined;
|
|
45
20
|
startDatetime?: string | null | undefined;
|
|
46
21
|
endDatetime?: string | null | undefined;
|
|
47
22
|
};
|
|
48
23
|
|
|
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
|
-
|
|
94
24
|
/** @internal */
|
|
95
25
|
export const ConversationsListRequest$inboundSchema: z.ZodType<
|
|
96
26
|
ConversationsListRequest,
|
|
@@ -102,8 +32,9 @@ export const ConversationsListRequest$inboundSchema: z.ZodType<
|
|
|
102
32
|
search_fields: z.array(components.ConversationProperties$inboundSchema)
|
|
103
33
|
.optional(),
|
|
104
34
|
search_field_values: z.array(z.string()).optional(),
|
|
105
|
-
order_by:
|
|
106
|
-
|
|
35
|
+
order_by: z.nullable(components.ConversationProperties$inboundSchema)
|
|
36
|
+
.optional(),
|
|
37
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
107
38
|
.optional(),
|
|
108
39
|
fields: z.nullable(z.array(components.ConversationProperties$inboundSchema))
|
|
109
40
|
.optional(),
|
|
@@ -126,8 +57,8 @@ export type ConversationsListRequest$Outbound = {
|
|
|
126
57
|
limit: number;
|
|
127
58
|
search_fields?: Array<string> | undefined;
|
|
128
59
|
search_field_values?: Array<string> | undefined;
|
|
129
|
-
order_by?: string | undefined;
|
|
130
|
-
order_by_direction?: string | undefined;
|
|
60
|
+
order_by?: string | null | undefined;
|
|
61
|
+
order_by_direction?: string | null | undefined;
|
|
131
62
|
fields?: Array<string> | null | undefined;
|
|
132
63
|
start_datetime?: string | null | undefined;
|
|
133
64
|
end_datetime?: string | null | undefined;
|
|
@@ -144,8 +75,9 @@ export const ConversationsListRequest$outboundSchema: z.ZodType<
|
|
|
144
75
|
searchFields: z.array(components.ConversationProperties$outboundSchema)
|
|
145
76
|
.optional(),
|
|
146
77
|
searchFieldValues: z.array(z.string()).optional(),
|
|
147
|
-
orderBy:
|
|
148
|
-
|
|
78
|
+
orderBy: z.nullable(components.ConversationProperties$outboundSchema)
|
|
79
|
+
.optional(),
|
|
80
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
149
81
|
.optional(),
|
|
150
82
|
fields: z.nullable(z.array(components.ConversationProperties$outboundSchema))
|
|
151
83
|
.optional(),
|
|
@@ -5,86 +5,22 @@
|
|
|
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 * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
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
|
-
|
|
30
12
|
export type CustomMessagesListRequest = {
|
|
31
13
|
page?: number | null | undefined;
|
|
32
14
|
limit?: number | undefined;
|
|
33
15
|
searchFields?: Array<components.CustomMessageProperties> | undefined;
|
|
34
16
|
searchFieldValues?: Array<string> | undefined;
|
|
35
|
-
orderBy?:
|
|
36
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.CustomMessageProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
37
19
|
fields?: Array<components.CustomMessageProperties> | null | undefined;
|
|
38
20
|
startDatetime?: string | null | undefined;
|
|
39
21
|
endDatetime?: string | null | undefined;
|
|
40
22
|
};
|
|
41
23
|
|
|
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
|
-
|
|
88
24
|
/** @internal */
|
|
89
25
|
export const CustomMessagesListRequest$inboundSchema: z.ZodType<
|
|
90
26
|
CustomMessagesListRequest,
|
|
@@ -96,8 +32,9 @@ export const CustomMessagesListRequest$inboundSchema: z.ZodType<
|
|
|
96
32
|
search_fields: z.array(components.CustomMessageProperties$inboundSchema)
|
|
97
33
|
.optional(),
|
|
98
34
|
search_field_values: z.array(z.string()).optional(),
|
|
99
|
-
order_by:
|
|
100
|
-
|
|
35
|
+
order_by: z.nullable(components.CustomMessageProperties$inboundSchema)
|
|
36
|
+
.optional(),
|
|
37
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
101
38
|
.optional(),
|
|
102
39
|
fields: z.nullable(z.array(components.CustomMessageProperties$inboundSchema))
|
|
103
40
|
.optional(),
|
|
@@ -120,8 +57,8 @@ export type CustomMessagesListRequest$Outbound = {
|
|
|
120
57
|
limit: number;
|
|
121
58
|
search_fields?: Array<string> | undefined;
|
|
122
59
|
search_field_values?: Array<string> | undefined;
|
|
123
|
-
order_by?: string | undefined;
|
|
124
|
-
order_by_direction?: string | undefined;
|
|
60
|
+
order_by?: string | null | undefined;
|
|
61
|
+
order_by_direction?: string | null | undefined;
|
|
125
62
|
fields?: Array<string> | null | undefined;
|
|
126
63
|
start_datetime?: string | null | undefined;
|
|
127
64
|
end_datetime?: string | null | undefined;
|
|
@@ -138,8 +75,9 @@ export const CustomMessagesListRequest$outboundSchema: z.ZodType<
|
|
|
138
75
|
searchFields: z.array(components.CustomMessageProperties$outboundSchema)
|
|
139
76
|
.optional(),
|
|
140
77
|
searchFieldValues: z.array(z.string()).optional(),
|
|
141
|
-
orderBy:
|
|
142
|
-
|
|
78
|
+
orderBy: z.nullable(components.CustomMessageProperties$outboundSchema)
|
|
79
|
+
.optional(),
|
|
80
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
143
81
|
.optional(),
|
|
144
82
|
fields: z.nullable(z.array(components.CustomMessageProperties$outboundSchema))
|
|
145
83
|
.optional(),
|
|
@@ -5,92 +5,22 @@
|
|
|
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 * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
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
|
-
|
|
37
12
|
export type EventsListRequest = {
|
|
38
13
|
page?: number | null | undefined;
|
|
39
14
|
limit?: number | undefined;
|
|
40
15
|
searchFields?: Array<components.EventProperties> | undefined;
|
|
41
16
|
searchFieldValues?: Array<string> | undefined;
|
|
42
|
-
orderBy?:
|
|
43
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.EventProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
44
19
|
fields?: Array<components.EventProperties> | null | undefined;
|
|
45
20
|
startDatetime?: string | null | undefined;
|
|
46
21
|
endDatetime?: string | null | undefined;
|
|
47
22
|
};
|
|
48
23
|
|
|
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
|
-
|
|
94
24
|
/** @internal */
|
|
95
25
|
export const EventsListRequest$inboundSchema: z.ZodType<
|
|
96
26
|
EventsListRequest,
|
|
@@ -101,8 +31,8 @@ export const EventsListRequest$inboundSchema: z.ZodType<
|
|
|
101
31
|
limit: z.number().int().default(25),
|
|
102
32
|
search_fields: z.array(components.EventProperties$inboundSchema).optional(),
|
|
103
33
|
search_field_values: z.array(z.string()).optional(),
|
|
104
|
-
order_by:
|
|
105
|
-
order_by_direction:
|
|
34
|
+
order_by: z.nullable(components.EventProperties$inboundSchema).optional(),
|
|
35
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
106
36
|
.optional(),
|
|
107
37
|
fields: z.nullable(z.array(components.EventProperties$inboundSchema))
|
|
108
38
|
.optional(),
|
|
@@ -125,8 +55,8 @@ export type EventsListRequest$Outbound = {
|
|
|
125
55
|
limit: number;
|
|
126
56
|
search_fields?: Array<string> | undefined;
|
|
127
57
|
search_field_values?: Array<string> | undefined;
|
|
128
|
-
order_by?: string | undefined;
|
|
129
|
-
order_by_direction?: string | undefined;
|
|
58
|
+
order_by?: string | null | undefined;
|
|
59
|
+
order_by_direction?: string | null | undefined;
|
|
130
60
|
fields?: Array<string> | null | undefined;
|
|
131
61
|
start_datetime?: string | null | undefined;
|
|
132
62
|
end_datetime?: string | null | undefined;
|
|
@@ -142,8 +72,8 @@ export const EventsListRequest$outboundSchema: z.ZodType<
|
|
|
142
72
|
limit: z.number().int().default(25),
|
|
143
73
|
searchFields: z.array(components.EventProperties$outboundSchema).optional(),
|
|
144
74
|
searchFieldValues: z.array(z.string()).optional(),
|
|
145
|
-
orderBy:
|
|
146
|
-
orderByDirection:
|
|
75
|
+
orderBy: z.nullable(components.EventProperties$outboundSchema).optional(),
|
|
76
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
147
77
|
.optional(),
|
|
148
78
|
fields: z.nullable(z.array(components.EventProperties$outboundSchema))
|
|
149
79
|
.optional(),
|
|
@@ -5,88 +5,22 @@
|
|
|
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 * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
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
|
-
|
|
33
12
|
export type PromptsListRequest = {
|
|
34
13
|
page?: number | null | undefined;
|
|
35
14
|
limit?: number | undefined;
|
|
36
15
|
searchFields?: Array<components.PromptProperties> | undefined;
|
|
37
16
|
searchFieldValues?: Array<string> | undefined;
|
|
38
|
-
orderBy?:
|
|
39
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.PromptProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
40
19
|
fields?: Array<components.PromptProperties> | null | undefined;
|
|
41
20
|
startDatetime?: string | null | undefined;
|
|
42
21
|
endDatetime?: string | null | undefined;
|
|
43
22
|
};
|
|
44
23
|
|
|
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
|
-
|
|
90
24
|
/** @internal */
|
|
91
25
|
export const PromptsListRequest$inboundSchema: z.ZodType<
|
|
92
26
|
PromptsListRequest,
|
|
@@ -97,8 +31,8 @@ export const PromptsListRequest$inboundSchema: z.ZodType<
|
|
|
97
31
|
limit: z.number().int().default(25),
|
|
98
32
|
search_fields: z.array(components.PromptProperties$inboundSchema).optional(),
|
|
99
33
|
search_field_values: z.array(z.string()).optional(),
|
|
100
|
-
order_by:
|
|
101
|
-
order_by_direction:
|
|
34
|
+
order_by: z.nullable(components.PromptProperties$inboundSchema).optional(),
|
|
35
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
102
36
|
.optional(),
|
|
103
37
|
fields: z.nullable(z.array(components.PromptProperties$inboundSchema))
|
|
104
38
|
.optional(),
|
|
@@ -121,8 +55,8 @@ export type PromptsListRequest$Outbound = {
|
|
|
121
55
|
limit: number;
|
|
122
56
|
search_fields?: Array<string> | undefined;
|
|
123
57
|
search_field_values?: Array<string> | undefined;
|
|
124
|
-
order_by?: string | undefined;
|
|
125
|
-
order_by_direction?: string | undefined;
|
|
58
|
+
order_by?: string | null | undefined;
|
|
59
|
+
order_by_direction?: string | null | undefined;
|
|
126
60
|
fields?: Array<string> | null | undefined;
|
|
127
61
|
start_datetime?: string | null | undefined;
|
|
128
62
|
end_datetime?: string | null | undefined;
|
|
@@ -138,8 +72,8 @@ export const PromptsListRequest$outboundSchema: z.ZodType<
|
|
|
138
72
|
limit: z.number().int().default(25),
|
|
139
73
|
searchFields: z.array(components.PromptProperties$outboundSchema).optional(),
|
|
140
74
|
searchFieldValues: z.array(z.string()).optional(),
|
|
141
|
-
orderBy:
|
|
142
|
-
orderByDirection:
|
|
75
|
+
orderBy: z.nullable(components.PromptProperties$outboundSchema).optional(),
|
|
76
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
143
77
|
.optional(),
|
|
144
78
|
fields: z.nullable(z.array(components.PromptProperties$outboundSchema))
|
|
145
79
|
.optional(),
|