syllable-sdk 0.1.0-alpha.6 → 0.1.0-alpha.8
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/prompt.d.ts +5 -0
- package/models/components/prompt.d.ts.map +1 -1
- package/models/components/prompt.js +2 -0
- package/models/components/prompt.js.map +1 -1
- package/models/components/promptcreate.d.ts +5 -0
- package/models/components/promptcreate.d.ts.map +1 -1
- package/models/components/promptcreate.js +2 -0
- package/models/components/promptcreate.js.map +1 -1
- package/models/components/prompthistory.d.ts +2 -0
- package/models/components/prompthistory.d.ts.map +1 -1
- package/models/components/prompthistory.js +4 -0
- package/models/components/prompthistory.js.map +1 -1
- package/models/components/promptproperties.d.ts +6 -0
- package/models/components/promptproperties.d.ts.map +1 -1
- package/models/components/promptproperties.js +2 -0
- package/models/components/promptproperties.js.map +1 -1
- 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/prompt.ts +7 -0
- package/src/models/components/promptcreate.ts +7 -0
- package/src/models/components/prompthistory.ts +6 -0
- package/src/models/components/promptproperties.ts +2 -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
|
@@ -15,8 +15,10 @@ export type Session = {
|
|
|
15
15
|
channelManagerService?: string | null | undefined;
|
|
16
16
|
channelManagerType?: string | null | undefined;
|
|
17
17
|
channelManagerSid?: string | null | undefined;
|
|
18
|
+
agentId?: string | null | undefined;
|
|
18
19
|
agentName?: string | null | undefined;
|
|
19
20
|
agentType?: string | null | undefined;
|
|
21
|
+
agentTimezone?: string | null | undefined;
|
|
20
22
|
promptId?: string | null | undefined;
|
|
21
23
|
promptName?: string | null | undefined;
|
|
22
24
|
promptVersion?: string | null | undefined;
|
|
@@ -39,8 +41,10 @@ export const Session$inboundSchema: z.ZodType<Session, z.ZodTypeDef, unknown> =
|
|
|
39
41
|
channel_manager_service: z.nullable(z.string()).optional(),
|
|
40
42
|
channel_manager_type: z.nullable(z.string()).optional(),
|
|
41
43
|
channel_manager_sid: z.nullable(z.string()).optional(),
|
|
44
|
+
agent_id: z.nullable(z.string()).optional(),
|
|
42
45
|
agent_name: z.nullable(z.string()).optional(),
|
|
43
46
|
agent_type: z.nullable(z.string()).optional(),
|
|
47
|
+
agent_timezone: z.nullable(z.string()).optional(),
|
|
44
48
|
prompt_id: z.nullable(z.string()).optional(),
|
|
45
49
|
prompt_name: z.nullable(z.string()).optional(),
|
|
46
50
|
prompt_version: z.nullable(z.string()).optional(),
|
|
@@ -57,8 +61,10 @@ export const Session$inboundSchema: z.ZodType<Session, z.ZodTypeDef, unknown> =
|
|
|
57
61
|
"channel_manager_service": "channelManagerService",
|
|
58
62
|
"channel_manager_type": "channelManagerType",
|
|
59
63
|
"channel_manager_sid": "channelManagerSid",
|
|
64
|
+
"agent_id": "agentId",
|
|
60
65
|
"agent_name": "agentName",
|
|
61
66
|
"agent_type": "agentType",
|
|
67
|
+
"agent_timezone": "agentTimezone",
|
|
62
68
|
"prompt_id": "promptId",
|
|
63
69
|
"prompt_name": "promptName",
|
|
64
70
|
"prompt_version": "promptVersion",
|
|
@@ -76,8 +82,10 @@ export type Session$Outbound = {
|
|
|
76
82
|
channel_manager_service?: string | null | undefined;
|
|
77
83
|
channel_manager_type?: string | null | undefined;
|
|
78
84
|
channel_manager_sid?: string | null | undefined;
|
|
85
|
+
agent_id?: string | null | undefined;
|
|
79
86
|
agent_name?: string | null | undefined;
|
|
80
87
|
agent_type?: string | null | undefined;
|
|
88
|
+
agent_timezone?: string | null | undefined;
|
|
81
89
|
prompt_id?: string | null | undefined;
|
|
82
90
|
prompt_name?: string | null | undefined;
|
|
83
91
|
prompt_version?: string | null | undefined;
|
|
@@ -101,8 +109,10 @@ export const Session$outboundSchema: z.ZodType<
|
|
|
101
109
|
channelManagerService: z.nullable(z.string()).optional(),
|
|
102
110
|
channelManagerType: z.nullable(z.string()).optional(),
|
|
103
111
|
channelManagerSid: z.nullable(z.string()).optional(),
|
|
112
|
+
agentId: z.nullable(z.string()).optional(),
|
|
104
113
|
agentName: z.nullable(z.string()).optional(),
|
|
105
114
|
agentType: z.nullable(z.string()).optional(),
|
|
115
|
+
agentTimezone: z.nullable(z.string()).optional(),
|
|
106
116
|
promptId: z.nullable(z.string()).optional(),
|
|
107
117
|
promptName: z.nullable(z.string()).optional(),
|
|
108
118
|
promptVersion: z.nullable(z.string()).optional(),
|
|
@@ -119,8 +129,10 @@ export const Session$outboundSchema: z.ZodType<
|
|
|
119
129
|
channelManagerService: "channel_manager_service",
|
|
120
130
|
channelManagerType: "channel_manager_type",
|
|
121
131
|
channelManagerSid: "channel_manager_sid",
|
|
132
|
+
agentId: "agent_id",
|
|
122
133
|
agentName: "agent_name",
|
|
123
134
|
agentType: "agent_type",
|
|
135
|
+
agentTimezone: "agent_timezone",
|
|
124
136
|
promptId: "prompt_id",
|
|
125
137
|
promptName: "prompt_name",
|
|
126
138
|
promptVersion: "prompt_version",
|
|
@@ -5,83 +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 OrderBy = {
|
|
14
|
-
Id: "id",
|
|
15
|
-
Name: "name",
|
|
16
|
-
Type: "type",
|
|
17
|
-
Timezone: "timezone",
|
|
18
|
-
PromptId: "prompt_id",
|
|
19
|
-
CustomMessageId: "custom_message_id",
|
|
20
|
-
Languages: "languages",
|
|
21
|
-
Variables: "variables",
|
|
22
|
-
PromptToolDefaults: "prompt_tool_defaults",
|
|
23
|
-
ToolHeaders: "tool_headers",
|
|
24
|
-
} as const;
|
|
25
|
-
export type OrderBy = ClosedEnum<typeof OrderBy>;
|
|
26
|
-
|
|
27
|
-
export const OrderByDirection = {
|
|
28
|
-
Asc: "asc",
|
|
29
|
-
Desc: "desc",
|
|
30
|
-
} as const;
|
|
31
|
-
export type OrderByDirection = ClosedEnum<typeof OrderByDirection>;
|
|
32
|
-
|
|
33
12
|
export type AgentListRequest = {
|
|
34
13
|
page?: number | null | undefined;
|
|
35
14
|
limit?: number | undefined;
|
|
36
15
|
searchFields?: Array<components.AgentProperties> | undefined;
|
|
37
16
|
searchFieldValues?: Array<string> | undefined;
|
|
38
|
-
orderBy?:
|
|
39
|
-
orderByDirection?: OrderByDirection | undefined;
|
|
17
|
+
orderBy?: components.AgentProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
40
19
|
fields?: Array<components.AgentProperties> | null | undefined;
|
|
41
20
|
startDatetime?: string | null | undefined;
|
|
42
21
|
endDatetime?: string | null | undefined;
|
|
43
22
|
};
|
|
44
23
|
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const OrderBy$inboundSchema: z.ZodNativeEnum<typeof OrderBy> = z
|
|
47
|
-
.nativeEnum(OrderBy);
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const OrderBy$outboundSchema: z.ZodNativeEnum<typeof OrderBy> =
|
|
51
|
-
OrderBy$inboundSchema;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace OrderBy$ {
|
|
58
|
-
/** @deprecated use `OrderBy$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema = OrderBy$inboundSchema;
|
|
60
|
-
/** @deprecated use `OrderBy$outboundSchema` instead. */
|
|
61
|
-
export const outboundSchema = OrderBy$outboundSchema;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const OrderByDirection$inboundSchema: z.ZodNativeEnum<
|
|
66
|
-
typeof OrderByDirection
|
|
67
|
-
> = z.nativeEnum(OrderByDirection);
|
|
68
|
-
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const OrderByDirection$outboundSchema: z.ZodNativeEnum<
|
|
71
|
-
typeof OrderByDirection
|
|
72
|
-
> = OrderByDirection$inboundSchema;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
-
*/
|
|
78
|
-
export namespace OrderByDirection$ {
|
|
79
|
-
/** @deprecated use `OrderByDirection$inboundSchema` instead. */
|
|
80
|
-
export const inboundSchema = OrderByDirection$inboundSchema;
|
|
81
|
-
/** @deprecated use `OrderByDirection$outboundSchema` instead. */
|
|
82
|
-
export const outboundSchema = OrderByDirection$outboundSchema;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
24
|
/** @internal */
|
|
86
25
|
export const AgentListRequest$inboundSchema: z.ZodType<
|
|
87
26
|
AgentListRequest,
|
|
@@ -92,8 +31,9 @@ export const AgentListRequest$inboundSchema: z.ZodType<
|
|
|
92
31
|
limit: z.number().int().default(25),
|
|
93
32
|
search_fields: z.array(components.AgentProperties$inboundSchema).optional(),
|
|
94
33
|
search_field_values: z.array(z.string()).optional(),
|
|
95
|
-
order_by:
|
|
96
|
-
order_by_direction: OrderByDirection$inboundSchema
|
|
34
|
+
order_by: z.nullable(components.AgentProperties$inboundSchema).optional(),
|
|
35
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
36
|
+
.optional(),
|
|
97
37
|
fields: z.nullable(z.array(components.AgentProperties$inboundSchema))
|
|
98
38
|
.optional(),
|
|
99
39
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -115,8 +55,8 @@ export type AgentListRequest$Outbound = {
|
|
|
115
55
|
limit: number;
|
|
116
56
|
search_fields?: Array<string> | undefined;
|
|
117
57
|
search_field_values?: Array<string> | undefined;
|
|
118
|
-
order_by?: string | undefined;
|
|
119
|
-
order_by_direction?: string | undefined;
|
|
58
|
+
order_by?: string | null | undefined;
|
|
59
|
+
order_by_direction?: string | null | undefined;
|
|
120
60
|
fields?: Array<string> | null | undefined;
|
|
121
61
|
start_datetime?: string | null | undefined;
|
|
122
62
|
end_datetime?: string | null | undefined;
|
|
@@ -132,8 +72,9 @@ export const AgentListRequest$outboundSchema: z.ZodType<
|
|
|
132
72
|
limit: z.number().int().default(25),
|
|
133
73
|
searchFields: z.array(components.AgentProperties$outboundSchema).optional(),
|
|
134
74
|
searchFieldValues: z.array(z.string()).optional(),
|
|
135
|
-
orderBy:
|
|
136
|
-
orderByDirection: OrderByDirection$outboundSchema
|
|
75
|
+
orderBy: z.nullable(components.AgentProperties$outboundSchema).optional(),
|
|
76
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
77
|
+
.optional(),
|
|
137
78
|
fields: z.nullable(z.array(components.AgentProperties$outboundSchema))
|
|
138
79
|
.optional(),
|
|
139
80
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -5,85 +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 AvailableTargetsQueryParamOrderBy = {
|
|
14
|
-
ChannelId: "channel_id",
|
|
15
|
-
ChannelName: "channel_name",
|
|
16
|
-
Target: "target",
|
|
17
|
-
} as const;
|
|
18
|
-
export type AvailableTargetsQueryParamOrderBy = ClosedEnum<
|
|
19
|
-
typeof AvailableTargetsQueryParamOrderBy
|
|
20
|
-
>;
|
|
21
|
-
|
|
22
|
-
export const AvailableTargetsQueryParamOrderByDirection = {
|
|
23
|
-
Asc: "asc",
|
|
24
|
-
Desc: "desc",
|
|
25
|
-
} as const;
|
|
26
|
-
export type AvailableTargetsQueryParamOrderByDirection = ClosedEnum<
|
|
27
|
-
typeof AvailableTargetsQueryParamOrderByDirection
|
|
28
|
-
>;
|
|
29
|
-
|
|
30
12
|
export type AvailableTargetsRequest = {
|
|
31
13
|
page?: number | null | undefined;
|
|
32
14
|
limit?: number | undefined;
|
|
33
15
|
searchFields?: Array<components.AvailableTargetProperties> | undefined;
|
|
34
16
|
searchFieldValues?: Array<string> | undefined;
|
|
35
|
-
orderBy?:
|
|
36
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.AvailableTargetProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
37
19
|
fields?: Array<components.AvailableTargetProperties> | null | undefined;
|
|
38
20
|
startDatetime?: string | null | undefined;
|
|
39
21
|
endDatetime?: string | null | undefined;
|
|
40
22
|
};
|
|
41
23
|
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const AvailableTargetsQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
44
|
-
typeof AvailableTargetsQueryParamOrderBy
|
|
45
|
-
> = z.nativeEnum(AvailableTargetsQueryParamOrderBy);
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const AvailableTargetsQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
49
|
-
typeof AvailableTargetsQueryParamOrderBy
|
|
50
|
-
> = AvailableTargetsQueryParamOrderBy$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 AvailableTargetsQueryParamOrderBy$ {
|
|
57
|
-
/** @deprecated use `AvailableTargetsQueryParamOrderBy$inboundSchema` instead. */
|
|
58
|
-
export const inboundSchema = AvailableTargetsQueryParamOrderBy$inboundSchema;
|
|
59
|
-
/** @deprecated use `AvailableTargetsQueryParamOrderBy$outboundSchema` instead. */
|
|
60
|
-
export const outboundSchema =
|
|
61
|
-
AvailableTargetsQueryParamOrderBy$outboundSchema;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const AvailableTargetsQueryParamOrderByDirection$inboundSchema:
|
|
66
|
-
z.ZodNativeEnum<typeof AvailableTargetsQueryParamOrderByDirection> = z
|
|
67
|
-
.nativeEnum(AvailableTargetsQueryParamOrderByDirection);
|
|
68
|
-
|
|
69
|
-
/** @internal */
|
|
70
|
-
export const AvailableTargetsQueryParamOrderByDirection$outboundSchema:
|
|
71
|
-
z.ZodNativeEnum<typeof AvailableTargetsQueryParamOrderByDirection> =
|
|
72
|
-
AvailableTargetsQueryParamOrderByDirection$inboundSchema;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
-
*/
|
|
78
|
-
export namespace AvailableTargetsQueryParamOrderByDirection$ {
|
|
79
|
-
/** @deprecated use `AvailableTargetsQueryParamOrderByDirection$inboundSchema` instead. */
|
|
80
|
-
export const inboundSchema =
|
|
81
|
-
AvailableTargetsQueryParamOrderByDirection$inboundSchema;
|
|
82
|
-
/** @deprecated use `AvailableTargetsQueryParamOrderByDirection$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema =
|
|
84
|
-
AvailableTargetsQueryParamOrderByDirection$outboundSchema;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
24
|
/** @internal */
|
|
88
25
|
export const AvailableTargetsRequest$inboundSchema: z.ZodType<
|
|
89
26
|
AvailableTargetsRequest,
|
|
@@ -95,8 +32,9 @@ export const AvailableTargetsRequest$inboundSchema: z.ZodType<
|
|
|
95
32
|
search_fields: z.array(components.AvailableTargetProperties$inboundSchema)
|
|
96
33
|
.optional(),
|
|
97
34
|
search_field_values: z.array(z.string()).optional(),
|
|
98
|
-
order_by:
|
|
99
|
-
|
|
35
|
+
order_by: z.nullable(components.AvailableTargetProperties$inboundSchema)
|
|
36
|
+
.optional(),
|
|
37
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
100
38
|
.optional(),
|
|
101
39
|
fields: z.nullable(
|
|
102
40
|
z.array(components.AvailableTargetProperties$inboundSchema),
|
|
@@ -120,8 +58,8 @@ export type AvailableTargetsRequest$Outbound = {
|
|
|
120
58
|
limit: number;
|
|
121
59
|
search_fields?: Array<string> | undefined;
|
|
122
60
|
search_field_values?: Array<string> | undefined;
|
|
123
|
-
order_by?: string | undefined;
|
|
124
|
-
order_by_direction?: string | undefined;
|
|
61
|
+
order_by?: string | null | undefined;
|
|
62
|
+
order_by_direction?: string | null | undefined;
|
|
125
63
|
fields?: Array<string> | null | undefined;
|
|
126
64
|
start_datetime?: string | null | undefined;
|
|
127
65
|
end_datetime?: string | null | undefined;
|
|
@@ -138,8 +76,9 @@ export const AvailableTargetsRequest$outboundSchema: z.ZodType<
|
|
|
138
76
|
searchFields: z.array(components.AvailableTargetProperties$outboundSchema)
|
|
139
77
|
.optional(),
|
|
140
78
|
searchFieldValues: z.array(z.string()).optional(),
|
|
141
|
-
orderBy:
|
|
142
|
-
|
|
79
|
+
orderBy: z.nullable(components.AvailableTargetProperties$outboundSchema)
|
|
80
|
+
.optional(),
|
|
81
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
143
82
|
.optional(),
|
|
144
83
|
fields: z.nullable(
|
|
145
84
|
z.array(components.AvailableTargetProperties$outboundSchema),
|
|
@@ -5,81 +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 QueryParamOrderBy = {
|
|
14
|
-
Id: "id",
|
|
15
|
-
Name: "name",
|
|
16
|
-
ChannelService: "channel_service",
|
|
17
|
-
SupportedModes: "supported_modes",
|
|
18
|
-
} as const;
|
|
19
|
-
export type QueryParamOrderBy = ClosedEnum<typeof QueryParamOrderBy>;
|
|
20
|
-
|
|
21
|
-
export const QueryParamOrderByDirection = {
|
|
22
|
-
Asc: "asc",
|
|
23
|
-
Desc: "desc",
|
|
24
|
-
} as const;
|
|
25
|
-
export type QueryParamOrderByDirection = ClosedEnum<
|
|
26
|
-
typeof QueryParamOrderByDirection
|
|
27
|
-
>;
|
|
28
|
-
|
|
29
12
|
export type ChannelsListRequest = {
|
|
30
13
|
page?: number | null | undefined;
|
|
31
14
|
limit?: number | undefined;
|
|
32
15
|
searchFields?: Array<components.ChannelProperties> | undefined;
|
|
33
16
|
searchFieldValues?: Array<string> | undefined;
|
|
34
|
-
orderBy?:
|
|
35
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.ChannelProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
36
19
|
fields?: Array<components.ChannelProperties> | null | undefined;
|
|
37
20
|
startDatetime?: string | null | undefined;
|
|
38
21
|
endDatetime?: string | null | undefined;
|
|
39
22
|
};
|
|
40
23
|
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const QueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
43
|
-
typeof QueryParamOrderBy
|
|
44
|
-
> = z.nativeEnum(QueryParamOrderBy);
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const QueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
48
|
-
typeof QueryParamOrderBy
|
|
49
|
-
> = QueryParamOrderBy$inboundSchema;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
export namespace QueryParamOrderBy$ {
|
|
56
|
-
/** @deprecated use `QueryParamOrderBy$inboundSchema` instead. */
|
|
57
|
-
export const inboundSchema = QueryParamOrderBy$inboundSchema;
|
|
58
|
-
/** @deprecated use `QueryParamOrderBy$outboundSchema` instead. */
|
|
59
|
-
export const outboundSchema = QueryParamOrderBy$outboundSchema;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const QueryParamOrderByDirection$inboundSchema: z.ZodNativeEnum<
|
|
64
|
-
typeof QueryParamOrderByDirection
|
|
65
|
-
> = z.nativeEnum(QueryParamOrderByDirection);
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
export const QueryParamOrderByDirection$outboundSchema: z.ZodNativeEnum<
|
|
69
|
-
typeof QueryParamOrderByDirection
|
|
70
|
-
> = QueryParamOrderByDirection$inboundSchema;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
export namespace QueryParamOrderByDirection$ {
|
|
77
|
-
/** @deprecated use `QueryParamOrderByDirection$inboundSchema` instead. */
|
|
78
|
-
export const inboundSchema = QueryParamOrderByDirection$inboundSchema;
|
|
79
|
-
/** @deprecated use `QueryParamOrderByDirection$outboundSchema` instead. */
|
|
80
|
-
export const outboundSchema = QueryParamOrderByDirection$outboundSchema;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
24
|
/** @internal */
|
|
84
25
|
export const ChannelsListRequest$inboundSchema: z.ZodType<
|
|
85
26
|
ChannelsListRequest,
|
|
@@ -90,8 +31,9 @@ export const ChannelsListRequest$inboundSchema: z.ZodType<
|
|
|
90
31
|
limit: z.number().int().default(25),
|
|
91
32
|
search_fields: z.array(components.ChannelProperties$inboundSchema).optional(),
|
|
92
33
|
search_field_values: z.array(z.string()).optional(),
|
|
93
|
-
order_by:
|
|
94
|
-
order_by_direction:
|
|
34
|
+
order_by: z.nullable(components.ChannelProperties$inboundSchema).optional(),
|
|
35
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
36
|
+
.optional(),
|
|
95
37
|
fields: z.nullable(z.array(components.ChannelProperties$inboundSchema))
|
|
96
38
|
.optional(),
|
|
97
39
|
start_datetime: z.nullable(z.string()).optional(),
|
|
@@ -113,8 +55,8 @@ export type ChannelsListRequest$Outbound = {
|
|
|
113
55
|
limit: number;
|
|
114
56
|
search_fields?: Array<string> | undefined;
|
|
115
57
|
search_field_values?: Array<string> | undefined;
|
|
116
|
-
order_by?: string | undefined;
|
|
117
|
-
order_by_direction?: string | undefined;
|
|
58
|
+
order_by?: string | null | undefined;
|
|
59
|
+
order_by_direction?: string | null | undefined;
|
|
118
60
|
fields?: Array<string> | null | undefined;
|
|
119
61
|
start_datetime?: string | null | undefined;
|
|
120
62
|
end_datetime?: string | null | undefined;
|
|
@@ -130,8 +72,9 @@ export const ChannelsListRequest$outboundSchema: z.ZodType<
|
|
|
130
72
|
limit: z.number().int().default(25),
|
|
131
73
|
searchFields: z.array(components.ChannelProperties$outboundSchema).optional(),
|
|
132
74
|
searchFieldValues: z.array(z.string()).optional(),
|
|
133
|
-
orderBy:
|
|
134
|
-
orderByDirection:
|
|
75
|
+
orderBy: z.nullable(components.ChannelProperties$outboundSchema).optional(),
|
|
76
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
77
|
+
.optional(),
|
|
135
78
|
fields: z.nullable(z.array(components.ChannelProperties$outboundSchema))
|
|
136
79
|
.optional(),
|
|
137
80
|
startDatetime: z.nullable(z.string()).optional(),
|
|
@@ -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(),
|