syllable-sdk 0.1.0-alpha.4 → 0.1.0-alpha.5
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 +5 -5
- package/docs/sdks/sessions/README.md +1 -1
- package/funcs/sessionsSessionRecordingStream.d.ts +1 -1
- package/funcs/sessionsSessionRecordingStream.d.ts.map +1 -1
- package/funcs/sessionsSessionRecordingStream.js +2 -2
- package/funcs/sessionsSessionRecordingStream.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- 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/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- 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/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/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/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/sessionproperties.d.ts +3 -0
- package/models/components/sessionproperties.d.ts.map +1 -1
- package/models/components/sessionproperties.js +1 -0
- package/models/components/sessionproperties.js.map +1 -1
- package/models/operations/agentlist.d.ts +2 -77
- package/models/operations/agentlist.d.ts.map +1 -1
- package/models/operations/agentlist.js +5 -52
- package/models/operations/agentlist.js.map +1 -1
- package/models/operations/availabletargets.d.ts +2 -56
- package/models/operations/availabletargets.d.ts.map +1 -1
- package/models/operations/availabletargets.js +5 -47
- package/models/operations/availabletargets.js.map +1 -1
- package/models/operations/channelslist.d.ts +2 -59
- package/models/operations/channelslist.d.ts.map +1 -1
- package/models/operations/channelslist.js +5 -45
- package/models/operations/channelslist.js.map +1 -1
- package/models/operations/channeltargetslist.d.ts +2 -71
- package/models/operations/channeltargetslist.d.ts.map +1 -1
- package/models/operations/channeltargetslist.js +5 -52
- package/models/operations/channeltargetslist.js.map +1 -1
- package/models/operations/conversationslist.d.ts +2 -77
- package/models/operations/conversationslist.d.ts.map +1 -1
- package/models/operations/conversationslist.js +5 -54
- package/models/operations/conversationslist.js.map +1 -1
- package/models/operations/custommessageslist.d.ts +2 -56
- package/models/operations/custommessageslist.d.ts.map +1 -1
- package/models/operations/custommessageslist.js +5 -47
- package/models/operations/custommessageslist.js.map +1 -1
- package/models/operations/eventslist.d.ts +2 -77
- package/models/operations/eventslist.d.ts.map +1 -1
- package/models/operations/eventslist.js +5 -53
- package/models/operations/eventslist.js.map +1 -1
- package/models/operations/promptslist.d.ts +2 -62
- package/models/operations/promptslist.d.ts.map +1 -1
- package/models/operations/promptslist.js +5 -48
- package/models/operations/promptslist.js.map +1 -1
- package/models/operations/sessionlabelslist.d.ts +2 -68
- package/models/operations/sessionlabelslist.d.ts.map +1 -1
- package/models/operations/sessionlabelslist.js +5 -51
- package/models/operations/sessionlabelslist.js.map +1 -1
- package/models/operations/sessionslist.d.ts +2 -92
- package/models/operations/sessionslist.d.ts.map +1 -1
- package/models/operations/sessionslist.js +5 -58
- package/models/operations/sessionslist.js.map +1 -1
- package/models/operations/toollist.d.ts +2 -62
- package/models/operations/toollist.d.ts.map +1 -1
- package/models/operations/toollist.js +5 -48
- package/models/operations/toollist.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sessions.d.ts +1 -1
- package/sdk/sessions.d.ts.map +1 -1
- package/src/funcs/sessionsSessionRecordingStream.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/models/components/channel.ts +0 -3
- package/src/models/components/index.ts +2 -0
- package/src/models/components/llmconfig.ts +9 -36
- package/src/models/components/orderbydirection.ts +33 -0
- package/src/models/components/prompt.ts +0 -3
- package/src/models/components/promptcreate.ts +0 -3
- package/src/models/components/provider.ts +37 -0
- package/src/models/components/sessionproperties.ts +1 -0
- package/src/models/operations/agentlist.ts +6 -67
- package/src/models/operations/availabletargets.ts +6 -71
- package/src/models/operations/channelslist.ts +6 -65
- package/src/models/operations/channeltargetslist.ts +6 -77
- package/src/models/operations/conversationslist.ts +6 -78
- package/src/models/operations/custommessageslist.ts +6 -72
- package/src/models/operations/eventslist.ts +6 -78
- package/src/models/operations/promptslist.ts +6 -73
- package/src/models/operations/sessionlabelslist.ts +6 -75
- package/src/models/operations/sessionslist.ts +6 -83
- package/src/models/operations/toollist.ts +6 -71
- package/src/sdk/sessions.ts +1 -1
|
@@ -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 | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | 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,9 +32,8 @@ 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
|
-
order_by_direction:
|
|
101
|
-
.optional(),
|
|
35
|
+
order_by: components.CustomMessageProperties$inboundSchema.optional(),
|
|
36
|
+
order_by_direction: components.OrderByDirection$inboundSchema.optional(),
|
|
102
37
|
fields: z.nullable(z.array(components.CustomMessageProperties$inboundSchema))
|
|
103
38
|
.optional(),
|
|
104
39
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -138,9 +73,8 @@ export const CustomMessagesListRequest$outboundSchema: z.ZodType<
|
|
|
138
73
|
searchFields: z.array(components.CustomMessageProperties$outboundSchema)
|
|
139
74
|
.optional(),
|
|
140
75
|
searchFieldValues: z.array(z.string()).optional(),
|
|
141
|
-
orderBy:
|
|
142
|
-
orderByDirection:
|
|
143
|
-
.optional(),
|
|
76
|
+
orderBy: components.CustomMessageProperties$outboundSchema.optional(),
|
|
77
|
+
orderByDirection: components.OrderByDirection$outboundSchema.optional(),
|
|
144
78
|
fields: z.nullable(z.array(components.CustomMessageProperties$outboundSchema))
|
|
145
79
|
.optional(),
|
|
146
80
|
startDatetime: z.nullable(z.string()).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 | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | 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,9 +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:
|
|
106
|
-
.optional(),
|
|
34
|
+
order_by: components.EventProperties$inboundSchema.optional(),
|
|
35
|
+
order_by_direction: components.OrderByDirection$inboundSchema.optional(),
|
|
107
36
|
fields: z.nullable(z.array(components.EventProperties$inboundSchema))
|
|
108
37
|
.optional(),
|
|
109
38
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -142,9 +71,8 @@ export const EventsListRequest$outboundSchema: z.ZodType<
|
|
|
142
71
|
limit: z.number().int().default(25),
|
|
143
72
|
searchFields: z.array(components.EventProperties$outboundSchema).optional(),
|
|
144
73
|
searchFieldValues: z.array(z.string()).optional(),
|
|
145
|
-
orderBy:
|
|
146
|
-
orderByDirection:
|
|
147
|
-
.optional(),
|
|
74
|
+
orderBy: components.EventProperties$outboundSchema.optional(),
|
|
75
|
+
orderByDirection: components.OrderByDirection$outboundSchema.optional(),
|
|
148
76
|
fields: z.nullable(z.array(components.EventProperties$outboundSchema))
|
|
149
77
|
.optional(),
|
|
150
78
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -5,87 +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
|
-
} as const;
|
|
20
|
-
export type PromptsListQueryParamOrderBy = ClosedEnum<
|
|
21
|
-
typeof PromptsListQueryParamOrderBy
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
export const PromptsListQueryParamOrderByDirection = {
|
|
25
|
-
Asc: "asc",
|
|
26
|
-
Desc: "desc",
|
|
27
|
-
} as const;
|
|
28
|
-
export type PromptsListQueryParamOrderByDirection = ClosedEnum<
|
|
29
|
-
typeof PromptsListQueryParamOrderByDirection
|
|
30
|
-
>;
|
|
31
|
-
|
|
32
12
|
export type PromptsListRequest = {
|
|
33
13
|
page?: number | null | undefined;
|
|
34
14
|
limit?: number | undefined;
|
|
35
15
|
searchFields?: Array<components.PromptProperties> | undefined;
|
|
36
16
|
searchFieldValues?: Array<string> | undefined;
|
|
37
|
-
orderBy?:
|
|
38
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.PromptProperties | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | undefined;
|
|
39
19
|
fields?: Array<components.PromptProperties> | null | undefined;
|
|
40
20
|
startDatetime?: string | null | undefined;
|
|
41
21
|
endDatetime?: string | null | undefined;
|
|
42
22
|
};
|
|
43
23
|
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const PromptsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
46
|
-
typeof PromptsListQueryParamOrderBy
|
|
47
|
-
> = z.nativeEnum(PromptsListQueryParamOrderBy);
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const PromptsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
51
|
-
typeof PromptsListQueryParamOrderBy
|
|
52
|
-
> = PromptsListQueryParamOrderBy$inboundSchema;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
-
*/
|
|
58
|
-
export namespace PromptsListQueryParamOrderBy$ {
|
|
59
|
-
/** @deprecated use `PromptsListQueryParamOrderBy$inboundSchema` instead. */
|
|
60
|
-
export const inboundSchema = PromptsListQueryParamOrderBy$inboundSchema;
|
|
61
|
-
/** @deprecated use `PromptsListQueryParamOrderBy$outboundSchema` instead. */
|
|
62
|
-
export const outboundSchema = PromptsListQueryParamOrderBy$outboundSchema;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const PromptsListQueryParamOrderByDirection$inboundSchema:
|
|
67
|
-
z.ZodNativeEnum<typeof PromptsListQueryParamOrderByDirection> = z.nativeEnum(
|
|
68
|
-
PromptsListQueryParamOrderByDirection,
|
|
69
|
-
);
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const PromptsListQueryParamOrderByDirection$outboundSchema:
|
|
73
|
-
z.ZodNativeEnum<typeof PromptsListQueryParamOrderByDirection> =
|
|
74
|
-
PromptsListQueryParamOrderByDirection$inboundSchema;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
export namespace PromptsListQueryParamOrderByDirection$ {
|
|
81
|
-
/** @deprecated use `PromptsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
82
|
-
export const inboundSchema =
|
|
83
|
-
PromptsListQueryParamOrderByDirection$inboundSchema;
|
|
84
|
-
/** @deprecated use `PromptsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
85
|
-
export const outboundSchema =
|
|
86
|
-
PromptsListQueryParamOrderByDirection$outboundSchema;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
24
|
/** @internal */
|
|
90
25
|
export const PromptsListRequest$inboundSchema: z.ZodType<
|
|
91
26
|
PromptsListRequest,
|
|
@@ -96,9 +31,8 @@ export const PromptsListRequest$inboundSchema: z.ZodType<
|
|
|
96
31
|
limit: z.number().int().default(25),
|
|
97
32
|
search_fields: z.array(components.PromptProperties$inboundSchema).optional(),
|
|
98
33
|
search_field_values: z.array(z.string()).optional(),
|
|
99
|
-
order_by:
|
|
100
|
-
order_by_direction:
|
|
101
|
-
.optional(),
|
|
34
|
+
order_by: components.PromptProperties$inboundSchema.optional(),
|
|
35
|
+
order_by_direction: components.OrderByDirection$inboundSchema.optional(),
|
|
102
36
|
fields: z.nullable(z.array(components.PromptProperties$inboundSchema))
|
|
103
37
|
.optional(),
|
|
104
38
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -137,9 +71,8 @@ export const PromptsListRequest$outboundSchema: z.ZodType<
|
|
|
137
71
|
limit: z.number().int().default(25),
|
|
138
72
|
searchFields: z.array(components.PromptProperties$outboundSchema).optional(),
|
|
139
73
|
searchFieldValues: z.array(z.string()).optional(),
|
|
140
|
-
orderBy:
|
|
141
|
-
orderByDirection:
|
|
142
|
-
.optional(),
|
|
74
|
+
orderBy: components.PromptProperties$outboundSchema.optional(),
|
|
75
|
+
orderByDirection: components.OrderByDirection$outboundSchema.optional(),
|
|
143
76
|
fields: z.nullable(z.array(components.PromptProperties$outboundSchema))
|
|
144
77
|
.optional(),
|
|
145
78
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -5,89 +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 SessionLabelsListQueryParamOrderBy = {
|
|
14
|
-
Timestamp: "timestamp",
|
|
15
|
-
SessionId: "session_id",
|
|
16
|
-
Type: "type",
|
|
17
|
-
Code: "code",
|
|
18
|
-
UserEmail: "user_email",
|
|
19
|
-
IssueCategories: "issue_categories",
|
|
20
|
-
SessionIdList: "session_id_list",
|
|
21
|
-
} as const;
|
|
22
|
-
export type SessionLabelsListQueryParamOrderBy = ClosedEnum<
|
|
23
|
-
typeof SessionLabelsListQueryParamOrderBy
|
|
24
|
-
>;
|
|
25
|
-
|
|
26
|
-
export const SessionLabelsListQueryParamOrderByDirection = {
|
|
27
|
-
Asc: "asc",
|
|
28
|
-
Desc: "desc",
|
|
29
|
-
} as const;
|
|
30
|
-
export type SessionLabelsListQueryParamOrderByDirection = ClosedEnum<
|
|
31
|
-
typeof SessionLabelsListQueryParamOrderByDirection
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
12
|
export type SessionLabelsListRequest = {
|
|
35
13
|
page?: number | null | undefined;
|
|
36
14
|
limit?: number | undefined;
|
|
37
15
|
searchFields?: Array<components.SessionLabelProperties> | undefined;
|
|
38
16
|
searchFieldValues?: Array<string> | undefined;
|
|
39
|
-
orderBy?:
|
|
40
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.SessionLabelProperties | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | undefined;
|
|
41
19
|
fields?: Array<components.SessionLabelProperties> | null | undefined;
|
|
42
20
|
startDatetime?: string | null | undefined;
|
|
43
21
|
endDatetime?: string | null | undefined;
|
|
44
22
|
};
|
|
45
23
|
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const SessionLabelsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
48
|
-
typeof SessionLabelsListQueryParamOrderBy
|
|
49
|
-
> = z.nativeEnum(SessionLabelsListQueryParamOrderBy);
|
|
50
|
-
|
|
51
|
-
/** @internal */
|
|
52
|
-
export const SessionLabelsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
53
|
-
typeof SessionLabelsListQueryParamOrderBy
|
|
54
|
-
> = SessionLabelsListQueryParamOrderBy$inboundSchema;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export namespace SessionLabelsListQueryParamOrderBy$ {
|
|
61
|
-
/** @deprecated use `SessionLabelsListQueryParamOrderBy$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema = SessionLabelsListQueryParamOrderBy$inboundSchema;
|
|
63
|
-
/** @deprecated use `SessionLabelsListQueryParamOrderBy$outboundSchema` instead. */
|
|
64
|
-
export const outboundSchema =
|
|
65
|
-
SessionLabelsListQueryParamOrderBy$outboundSchema;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const SessionLabelsListQueryParamOrderByDirection$inboundSchema:
|
|
70
|
-
z.ZodNativeEnum<typeof SessionLabelsListQueryParamOrderByDirection> = z
|
|
71
|
-
.nativeEnum(SessionLabelsListQueryParamOrderByDirection);
|
|
72
|
-
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const SessionLabelsListQueryParamOrderByDirection$outboundSchema:
|
|
75
|
-
z.ZodNativeEnum<typeof SessionLabelsListQueryParamOrderByDirection> =
|
|
76
|
-
SessionLabelsListQueryParamOrderByDirection$inboundSchema;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
-
*/
|
|
82
|
-
export namespace SessionLabelsListQueryParamOrderByDirection$ {
|
|
83
|
-
/** @deprecated use `SessionLabelsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
84
|
-
export const inboundSchema =
|
|
85
|
-
SessionLabelsListQueryParamOrderByDirection$inboundSchema;
|
|
86
|
-
/** @deprecated use `SessionLabelsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
87
|
-
export const outboundSchema =
|
|
88
|
-
SessionLabelsListQueryParamOrderByDirection$outboundSchema;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
24
|
/** @internal */
|
|
92
25
|
export const SessionLabelsListRequest$inboundSchema: z.ZodType<
|
|
93
26
|
SessionLabelsListRequest,
|
|
@@ -99,9 +32,8 @@ export const SessionLabelsListRequest$inboundSchema: z.ZodType<
|
|
|
99
32
|
search_fields: z.array(components.SessionLabelProperties$inboundSchema)
|
|
100
33
|
.optional(),
|
|
101
34
|
search_field_values: z.array(z.string()).optional(),
|
|
102
|
-
order_by:
|
|
103
|
-
order_by_direction:
|
|
104
|
-
.optional(),
|
|
35
|
+
order_by: components.SessionLabelProperties$inboundSchema.optional(),
|
|
36
|
+
order_by_direction: components.OrderByDirection$inboundSchema.optional(),
|
|
105
37
|
fields: z.nullable(z.array(components.SessionLabelProperties$inboundSchema))
|
|
106
38
|
.optional(),
|
|
107
39
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -141,9 +73,8 @@ export const SessionLabelsListRequest$outboundSchema: z.ZodType<
|
|
|
141
73
|
searchFields: z.array(components.SessionLabelProperties$outboundSchema)
|
|
142
74
|
.optional(),
|
|
143
75
|
searchFieldValues: z.array(z.string()).optional(),
|
|
144
|
-
orderBy:
|
|
145
|
-
orderByDirection:
|
|
146
|
-
.optional(),
|
|
76
|
+
orderBy: components.SessionLabelProperties$outboundSchema.optional(),
|
|
77
|
+
orderByDirection: components.OrderByDirection$outboundSchema.optional(),
|
|
147
78
|
fields: z.nullable(z.array(components.SessionLabelProperties$outboundSchema))
|
|
148
79
|
.optional(),
|
|
149
80
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -5,97 +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 SessionsListQueryParamOrderBy = {
|
|
14
|
-
Timestamp: "timestamp",
|
|
15
|
-
SessionId: "session_id",
|
|
16
|
-
ConversationId: "conversation_id",
|
|
17
|
-
ChannelManagerService: "channel_manager_service",
|
|
18
|
-
ChannelManagerType: "channel_manager_type",
|
|
19
|
-
ChannelManagerSid: "channel_manager_sid",
|
|
20
|
-
AgentType: "agent_type",
|
|
21
|
-
AgentId: "agent_id",
|
|
22
|
-
AgentName: "agent_name",
|
|
23
|
-
PromptId: "prompt_id",
|
|
24
|
-
PromptName: "prompt_name",
|
|
25
|
-
Source: "source",
|
|
26
|
-
Target: "target",
|
|
27
|
-
IsLegacy: "is_legacy",
|
|
28
|
-
IsTest: "is_test",
|
|
29
|
-
} as const;
|
|
30
|
-
export type SessionsListQueryParamOrderBy = ClosedEnum<
|
|
31
|
-
typeof SessionsListQueryParamOrderBy
|
|
32
|
-
>;
|
|
33
|
-
|
|
34
|
-
export const SessionsListQueryParamOrderByDirection = {
|
|
35
|
-
Asc: "asc",
|
|
36
|
-
Desc: "desc",
|
|
37
|
-
} as const;
|
|
38
|
-
export type SessionsListQueryParamOrderByDirection = ClosedEnum<
|
|
39
|
-
typeof SessionsListQueryParamOrderByDirection
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
12
|
export type SessionsListRequest = {
|
|
43
13
|
page?: number | null | undefined;
|
|
44
14
|
limit?: number | undefined;
|
|
45
15
|
searchFields?: Array<components.SessionProperties> | undefined;
|
|
46
16
|
searchFieldValues?: Array<string> | undefined;
|
|
47
|
-
orderBy?:
|
|
48
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.SessionProperties | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | undefined;
|
|
49
19
|
fields?: Array<components.SessionProperties> | null | undefined;
|
|
50
20
|
startDatetime?: string | null | undefined;
|
|
51
21
|
endDatetime?: string | null | undefined;
|
|
52
22
|
};
|
|
53
23
|
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const SessionsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
56
|
-
typeof SessionsListQueryParamOrderBy
|
|
57
|
-
> = z.nativeEnum(SessionsListQueryParamOrderBy);
|
|
58
|
-
|
|
59
|
-
/** @internal */
|
|
60
|
-
export const SessionsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
61
|
-
typeof SessionsListQueryParamOrderBy
|
|
62
|
-
> = SessionsListQueryParamOrderBy$inboundSchema;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
-
*/
|
|
68
|
-
export namespace SessionsListQueryParamOrderBy$ {
|
|
69
|
-
/** @deprecated use `SessionsListQueryParamOrderBy$inboundSchema` instead. */
|
|
70
|
-
export const inboundSchema = SessionsListQueryParamOrderBy$inboundSchema;
|
|
71
|
-
/** @deprecated use `SessionsListQueryParamOrderBy$outboundSchema` instead. */
|
|
72
|
-
export const outboundSchema = SessionsListQueryParamOrderBy$outboundSchema;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const SessionsListQueryParamOrderByDirection$inboundSchema:
|
|
77
|
-
z.ZodNativeEnum<typeof SessionsListQueryParamOrderByDirection> = z.nativeEnum(
|
|
78
|
-
SessionsListQueryParamOrderByDirection,
|
|
79
|
-
);
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const SessionsListQueryParamOrderByDirection$outboundSchema:
|
|
83
|
-
z.ZodNativeEnum<typeof SessionsListQueryParamOrderByDirection> =
|
|
84
|
-
SessionsListQueryParamOrderByDirection$inboundSchema;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
-
*/
|
|
90
|
-
export namespace SessionsListQueryParamOrderByDirection$ {
|
|
91
|
-
/** @deprecated use `SessionsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
92
|
-
export const inboundSchema =
|
|
93
|
-
SessionsListQueryParamOrderByDirection$inboundSchema;
|
|
94
|
-
/** @deprecated use `SessionsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
95
|
-
export const outboundSchema =
|
|
96
|
-
SessionsListQueryParamOrderByDirection$outboundSchema;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
24
|
/** @internal */
|
|
100
25
|
export const SessionsListRequest$inboundSchema: z.ZodType<
|
|
101
26
|
SessionsListRequest,
|
|
@@ -106,9 +31,8 @@ export const SessionsListRequest$inboundSchema: z.ZodType<
|
|
|
106
31
|
limit: z.number().int().default(25),
|
|
107
32
|
search_fields: z.array(components.SessionProperties$inboundSchema).optional(),
|
|
108
33
|
search_field_values: z.array(z.string()).optional(),
|
|
109
|
-
order_by:
|
|
110
|
-
order_by_direction:
|
|
111
|
-
.optional(),
|
|
34
|
+
order_by: components.SessionProperties$inboundSchema.optional(),
|
|
35
|
+
order_by_direction: components.OrderByDirection$inboundSchema.optional(),
|
|
112
36
|
fields: z.nullable(z.array(components.SessionProperties$inboundSchema))
|
|
113
37
|
.optional(),
|
|
114
38
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -147,9 +71,8 @@ export const SessionsListRequest$outboundSchema: z.ZodType<
|
|
|
147
71
|
limit: z.number().int().default(25),
|
|
148
72
|
searchFields: z.array(components.SessionProperties$outboundSchema).optional(),
|
|
149
73
|
searchFieldValues: z.array(z.string()).optional(),
|
|
150
|
-
orderBy:
|
|
151
|
-
orderByDirection:
|
|
152
|
-
.optional(),
|
|
74
|
+
orderBy: components.SessionProperties$outboundSchema.optional(),
|
|
75
|
+
orderByDirection: components.OrderByDirection$outboundSchema.optional(),
|
|
153
76
|
fields: z.nullable(z.array(components.SessionProperties$outboundSchema))
|
|
154
77
|
.optional(),
|
|
155
78
|
startDatetime: z.nullable(z.string()).optional(),
|