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,84 +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 ServiceListQueryParamOrderBy = {
|
|
14
|
-
Id: "id",
|
|
15
|
-
Name: "name",
|
|
16
|
-
} as const;
|
|
17
|
-
export type ServiceListQueryParamOrderBy = ClosedEnum<
|
|
18
|
-
typeof ServiceListQueryParamOrderBy
|
|
19
|
-
>;
|
|
20
|
-
|
|
21
|
-
export const ServiceListQueryParamOrderByDirection = {
|
|
22
|
-
Asc: "asc",
|
|
23
|
-
Desc: "desc",
|
|
24
|
-
} as const;
|
|
25
|
-
export type ServiceListQueryParamOrderByDirection = ClosedEnum<
|
|
26
|
-
typeof ServiceListQueryParamOrderByDirection
|
|
27
|
-
>;
|
|
28
|
-
|
|
29
12
|
export type ServiceListRequest = {
|
|
30
13
|
page?: number | null | undefined;
|
|
31
14
|
limit?: number | undefined;
|
|
32
15
|
searchFields?: Array<components.ServiceProperties> | undefined;
|
|
33
16
|
searchFieldValues?: Array<string> | undefined;
|
|
34
|
-
orderBy?:
|
|
35
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.ServiceProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
36
19
|
fields?: Array<components.ServiceProperties> | null | undefined;
|
|
37
20
|
startDatetime?: string | null | undefined;
|
|
38
21
|
endDatetime?: string | null | undefined;
|
|
39
22
|
};
|
|
40
23
|
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const ServiceListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
43
|
-
typeof ServiceListQueryParamOrderBy
|
|
44
|
-
> = z.nativeEnum(ServiceListQueryParamOrderBy);
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const ServiceListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
48
|
-
typeof ServiceListQueryParamOrderBy
|
|
49
|
-
> = ServiceListQueryParamOrderBy$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 ServiceListQueryParamOrderBy$ {
|
|
56
|
-
/** @deprecated use `ServiceListQueryParamOrderBy$inboundSchema` instead. */
|
|
57
|
-
export const inboundSchema = ServiceListQueryParamOrderBy$inboundSchema;
|
|
58
|
-
/** @deprecated use `ServiceListQueryParamOrderBy$outboundSchema` instead. */
|
|
59
|
-
export const outboundSchema = ServiceListQueryParamOrderBy$outboundSchema;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const ServiceListQueryParamOrderByDirection$inboundSchema:
|
|
64
|
-
z.ZodNativeEnum<typeof ServiceListQueryParamOrderByDirection> = z.nativeEnum(
|
|
65
|
-
ServiceListQueryParamOrderByDirection,
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const ServiceListQueryParamOrderByDirection$outboundSchema:
|
|
70
|
-
z.ZodNativeEnum<typeof ServiceListQueryParamOrderByDirection> =
|
|
71
|
-
ServiceListQueryParamOrderByDirection$inboundSchema;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
-
*/
|
|
77
|
-
export namespace ServiceListQueryParamOrderByDirection$ {
|
|
78
|
-
/** @deprecated use `ServiceListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
79
|
-
export const inboundSchema =
|
|
80
|
-
ServiceListQueryParamOrderByDirection$inboundSchema;
|
|
81
|
-
/** @deprecated use `ServiceListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
82
|
-
export const outboundSchema =
|
|
83
|
-
ServiceListQueryParamOrderByDirection$outboundSchema;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
24
|
/** @internal */
|
|
87
25
|
export const ServiceListRequest$inboundSchema: z.ZodType<
|
|
88
26
|
ServiceListRequest,
|
|
@@ -93,8 +31,8 @@ export const ServiceListRequest$inboundSchema: z.ZodType<
|
|
|
93
31
|
limit: z.number().int().default(25),
|
|
94
32
|
search_fields: z.array(components.ServiceProperties$inboundSchema).optional(),
|
|
95
33
|
search_field_values: z.array(z.string()).optional(),
|
|
96
|
-
order_by:
|
|
97
|
-
order_by_direction:
|
|
34
|
+
order_by: z.nullable(components.ServiceProperties$inboundSchema).optional(),
|
|
35
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
98
36
|
.optional(),
|
|
99
37
|
fields: z.nullable(z.array(components.ServiceProperties$inboundSchema))
|
|
100
38
|
.optional(),
|
|
@@ -117,8 +55,8 @@ export type ServiceListRequest$Outbound = {
|
|
|
117
55
|
limit: number;
|
|
118
56
|
search_fields?: Array<string> | undefined;
|
|
119
57
|
search_field_values?: Array<string> | undefined;
|
|
120
|
-
order_by?: string | undefined;
|
|
121
|
-
order_by_direction?: string | undefined;
|
|
58
|
+
order_by?: string | null | undefined;
|
|
59
|
+
order_by_direction?: string | null | undefined;
|
|
122
60
|
fields?: Array<string> | null | undefined;
|
|
123
61
|
start_datetime?: string | null | undefined;
|
|
124
62
|
end_datetime?: string | null | undefined;
|
|
@@ -134,8 +72,8 @@ export const ServiceListRequest$outboundSchema: z.ZodType<
|
|
|
134
72
|
limit: z.number().int().default(25),
|
|
135
73
|
searchFields: z.array(components.ServiceProperties$outboundSchema).optional(),
|
|
136
74
|
searchFieldValues: z.array(z.string()).optional(),
|
|
137
|
-
orderBy:
|
|
138
|
-
orderByDirection:
|
|
75
|
+
orderBy: z.nullable(components.ServiceProperties$outboundSchema).optional(),
|
|
76
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
139
77
|
.optional(),
|
|
140
78
|
fields: z.nullable(z.array(components.ServiceProperties$outboundSchema))
|
|
141
79
|
.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 | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | 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,8 +32,9 @@ 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
|
-
|
|
35
|
+
order_by: z.nullable(components.SessionLabelProperties$inboundSchema)
|
|
36
|
+
.optional(),
|
|
37
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
104
38
|
.optional(),
|
|
105
39
|
fields: z.nullable(z.array(components.SessionLabelProperties$inboundSchema))
|
|
106
40
|
.optional(),
|
|
@@ -123,8 +57,8 @@ export type SessionLabelsListRequest$Outbound = {
|
|
|
123
57
|
limit: number;
|
|
124
58
|
search_fields?: Array<string> | undefined;
|
|
125
59
|
search_field_values?: Array<string> | undefined;
|
|
126
|
-
order_by?: string | undefined;
|
|
127
|
-
order_by_direction?: string | undefined;
|
|
60
|
+
order_by?: string | null | undefined;
|
|
61
|
+
order_by_direction?: string | null | undefined;
|
|
128
62
|
fields?: Array<string> | null | undefined;
|
|
129
63
|
start_datetime?: string | null | undefined;
|
|
130
64
|
end_datetime?: string | null | undefined;
|
|
@@ -141,8 +75,9 @@ export const SessionLabelsListRequest$outboundSchema: z.ZodType<
|
|
|
141
75
|
searchFields: z.array(components.SessionLabelProperties$outboundSchema)
|
|
142
76
|
.optional(),
|
|
143
77
|
searchFieldValues: z.array(z.string()).optional(),
|
|
144
|
-
orderBy:
|
|
145
|
-
|
|
78
|
+
orderBy: z.nullable(components.SessionLabelProperties$outboundSchema)
|
|
79
|
+
.optional(),
|
|
80
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
146
81
|
.optional(),
|
|
147
82
|
fields: z.nullable(z.array(components.SessionLabelProperties$outboundSchema))
|
|
148
83
|
.optional(),
|
|
@@ -5,98 +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
|
-
Duration: "duration",
|
|
28
|
-
IsLegacy: "is_legacy",
|
|
29
|
-
IsTest: "is_test",
|
|
30
|
-
} as const;
|
|
31
|
-
export type SessionsListQueryParamOrderBy = ClosedEnum<
|
|
32
|
-
typeof SessionsListQueryParamOrderBy
|
|
33
|
-
>;
|
|
34
|
-
|
|
35
|
-
export const SessionsListQueryParamOrderByDirection = {
|
|
36
|
-
Asc: "asc",
|
|
37
|
-
Desc: "desc",
|
|
38
|
-
} as const;
|
|
39
|
-
export type SessionsListQueryParamOrderByDirection = ClosedEnum<
|
|
40
|
-
typeof SessionsListQueryParamOrderByDirection
|
|
41
|
-
>;
|
|
42
|
-
|
|
43
12
|
export type SessionsListRequest = {
|
|
44
13
|
page?: number | null | undefined;
|
|
45
14
|
limit?: number | undefined;
|
|
46
15
|
searchFields?: Array<components.SessionProperties> | undefined;
|
|
47
16
|
searchFieldValues?: Array<string> | undefined;
|
|
48
|
-
orderBy?:
|
|
49
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.SessionProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
50
19
|
fields?: Array<components.SessionProperties> | null | undefined;
|
|
51
20
|
startDatetime?: string | null | undefined;
|
|
52
21
|
endDatetime?: string | null | undefined;
|
|
53
22
|
};
|
|
54
23
|
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const SessionsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
57
|
-
typeof SessionsListQueryParamOrderBy
|
|
58
|
-
> = z.nativeEnum(SessionsListQueryParamOrderBy);
|
|
59
|
-
|
|
60
|
-
/** @internal */
|
|
61
|
-
export const SessionsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
62
|
-
typeof SessionsListQueryParamOrderBy
|
|
63
|
-
> = SessionsListQueryParamOrderBy$inboundSchema;
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @internal
|
|
67
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
-
*/
|
|
69
|
-
export namespace SessionsListQueryParamOrderBy$ {
|
|
70
|
-
/** @deprecated use `SessionsListQueryParamOrderBy$inboundSchema` instead. */
|
|
71
|
-
export const inboundSchema = SessionsListQueryParamOrderBy$inboundSchema;
|
|
72
|
-
/** @deprecated use `SessionsListQueryParamOrderBy$outboundSchema` instead. */
|
|
73
|
-
export const outboundSchema = SessionsListQueryParamOrderBy$outboundSchema;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const SessionsListQueryParamOrderByDirection$inboundSchema:
|
|
78
|
-
z.ZodNativeEnum<typeof SessionsListQueryParamOrderByDirection> = z.nativeEnum(
|
|
79
|
-
SessionsListQueryParamOrderByDirection,
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
/** @internal */
|
|
83
|
-
export const SessionsListQueryParamOrderByDirection$outboundSchema:
|
|
84
|
-
z.ZodNativeEnum<typeof SessionsListQueryParamOrderByDirection> =
|
|
85
|
-
SessionsListQueryParamOrderByDirection$inboundSchema;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
-
*/
|
|
91
|
-
export namespace SessionsListQueryParamOrderByDirection$ {
|
|
92
|
-
/** @deprecated use `SessionsListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
93
|
-
export const inboundSchema =
|
|
94
|
-
SessionsListQueryParamOrderByDirection$inboundSchema;
|
|
95
|
-
/** @deprecated use `SessionsListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
96
|
-
export const outboundSchema =
|
|
97
|
-
SessionsListQueryParamOrderByDirection$outboundSchema;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
24
|
/** @internal */
|
|
101
25
|
export const SessionsListRequest$inboundSchema: z.ZodType<
|
|
102
26
|
SessionsListRequest,
|
|
@@ -107,8 +31,8 @@ export const SessionsListRequest$inboundSchema: z.ZodType<
|
|
|
107
31
|
limit: z.number().int().default(25),
|
|
108
32
|
search_fields: z.array(components.SessionProperties$inboundSchema).optional(),
|
|
109
33
|
search_field_values: z.array(z.string()).optional(),
|
|
110
|
-
order_by:
|
|
111
|
-
order_by_direction:
|
|
34
|
+
order_by: z.nullable(components.SessionProperties$inboundSchema).optional(),
|
|
35
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
112
36
|
.optional(),
|
|
113
37
|
fields: z.nullable(z.array(components.SessionProperties$inboundSchema))
|
|
114
38
|
.optional(),
|
|
@@ -131,8 +55,8 @@ export type SessionsListRequest$Outbound = {
|
|
|
131
55
|
limit: number;
|
|
132
56
|
search_fields?: Array<string> | undefined;
|
|
133
57
|
search_field_values?: Array<string> | undefined;
|
|
134
|
-
order_by?: string | undefined;
|
|
135
|
-
order_by_direction?: string | undefined;
|
|
58
|
+
order_by?: string | null | undefined;
|
|
59
|
+
order_by_direction?: string | null | undefined;
|
|
136
60
|
fields?: Array<string> | null | undefined;
|
|
137
61
|
start_datetime?: string | null | undefined;
|
|
138
62
|
end_datetime?: string | null | undefined;
|
|
@@ -148,8 +72,8 @@ export const SessionsListRequest$outboundSchema: z.ZodType<
|
|
|
148
72
|
limit: z.number().int().default(25),
|
|
149
73
|
searchFields: z.array(components.SessionProperties$outboundSchema).optional(),
|
|
150
74
|
searchFieldValues: z.array(z.string()).optional(),
|
|
151
|
-
orderBy:
|
|
152
|
-
orderByDirection:
|
|
75
|
+
orderBy: z.nullable(components.SessionProperties$outboundSchema).optional(),
|
|
76
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
153
77
|
.optional(),
|
|
154
78
|
fields: z.nullable(z.array(components.SessionProperties$outboundSchema))
|
|
155
79
|
.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 ToolListQueryParamOrderBy = {
|
|
14
|
-
Id: "id",
|
|
15
|
-
Name: "name",
|
|
16
|
-
ServiceName: "service_name",
|
|
17
|
-
Definition: "definition",
|
|
18
|
-
ServiceId: "service_id",
|
|
19
|
-
} as const;
|
|
20
|
-
export type ToolListQueryParamOrderBy = ClosedEnum<
|
|
21
|
-
typeof ToolListQueryParamOrderBy
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
|
-
export const ToolListQueryParamOrderByDirection = {
|
|
25
|
-
Asc: "asc",
|
|
26
|
-
Desc: "desc",
|
|
27
|
-
} as const;
|
|
28
|
-
export type ToolListQueryParamOrderByDirection = ClosedEnum<
|
|
29
|
-
typeof ToolListQueryParamOrderByDirection
|
|
30
|
-
>;
|
|
31
|
-
|
|
32
12
|
export type ToolListRequest = {
|
|
33
13
|
page?: number | null | undefined;
|
|
34
14
|
limit?: number | undefined;
|
|
35
15
|
searchFields?: Array<components.ToolProperties> | undefined;
|
|
36
16
|
searchFieldValues?: Array<string> | undefined;
|
|
37
|
-
orderBy?:
|
|
38
|
-
orderByDirection?:
|
|
17
|
+
orderBy?: components.ToolProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
39
19
|
fields?: Array<components.ToolProperties> | null | undefined;
|
|
40
20
|
startDatetime?: string | null | undefined;
|
|
41
21
|
endDatetime?: string | null | undefined;
|
|
42
22
|
};
|
|
43
23
|
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const ToolListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
|
|
46
|
-
typeof ToolListQueryParamOrderBy
|
|
47
|
-
> = z.nativeEnum(ToolListQueryParamOrderBy);
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const ToolListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
|
|
51
|
-
typeof ToolListQueryParamOrderBy
|
|
52
|
-
> = ToolListQueryParamOrderBy$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 ToolListQueryParamOrderBy$ {
|
|
59
|
-
/** @deprecated use `ToolListQueryParamOrderBy$inboundSchema` instead. */
|
|
60
|
-
export const inboundSchema = ToolListQueryParamOrderBy$inboundSchema;
|
|
61
|
-
/** @deprecated use `ToolListQueryParamOrderBy$outboundSchema` instead. */
|
|
62
|
-
export const outboundSchema = ToolListQueryParamOrderBy$outboundSchema;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const ToolListQueryParamOrderByDirection$inboundSchema: z.ZodNativeEnum<
|
|
67
|
-
typeof ToolListQueryParamOrderByDirection
|
|
68
|
-
> = z.nativeEnum(ToolListQueryParamOrderByDirection);
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const ToolListQueryParamOrderByDirection$outboundSchema: z.ZodNativeEnum<
|
|
72
|
-
typeof ToolListQueryParamOrderByDirection
|
|
73
|
-
> = ToolListQueryParamOrderByDirection$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 ToolListQueryParamOrderByDirection$ {
|
|
80
|
-
/** @deprecated use `ToolListQueryParamOrderByDirection$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema = ToolListQueryParamOrderByDirection$inboundSchema;
|
|
82
|
-
/** @deprecated use `ToolListQueryParamOrderByDirection$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema =
|
|
84
|
-
ToolListQueryParamOrderByDirection$outboundSchema;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
24
|
/** @internal */
|
|
88
25
|
export const ToolListRequest$inboundSchema: z.ZodType<
|
|
89
26
|
ToolListRequest,
|
|
@@ -94,8 +31,8 @@ export const ToolListRequest$inboundSchema: z.ZodType<
|
|
|
94
31
|
limit: z.number().int().default(25),
|
|
95
32
|
search_fields: z.array(components.ToolProperties$inboundSchema).optional(),
|
|
96
33
|
search_field_values: z.array(z.string()).optional(),
|
|
97
|
-
order_by:
|
|
98
|
-
order_by_direction:
|
|
34
|
+
order_by: z.nullable(components.ToolProperties$inboundSchema).optional(),
|
|
35
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
99
36
|
.optional(),
|
|
100
37
|
fields: z.nullable(z.array(components.ToolProperties$inboundSchema))
|
|
101
38
|
.optional(),
|
|
@@ -118,8 +55,8 @@ export type ToolListRequest$Outbound = {
|
|
|
118
55
|
limit: number;
|
|
119
56
|
search_fields?: Array<string> | undefined;
|
|
120
57
|
search_field_values?: Array<string> | undefined;
|
|
121
|
-
order_by?: string | undefined;
|
|
122
|
-
order_by_direction?: string | undefined;
|
|
58
|
+
order_by?: string | null | undefined;
|
|
59
|
+
order_by_direction?: string | null | undefined;
|
|
123
60
|
fields?: Array<string> | null | undefined;
|
|
124
61
|
start_datetime?: string | null | undefined;
|
|
125
62
|
end_datetime?: string | null | undefined;
|
|
@@ -135,8 +72,8 @@ export const ToolListRequest$outboundSchema: z.ZodType<
|
|
|
135
72
|
limit: z.number().int().default(25),
|
|
136
73
|
searchFields: z.array(components.ToolProperties$outboundSchema).optional(),
|
|
137
74
|
searchFieldValues: z.array(z.string()).optional(),
|
|
138
|
-
orderBy:
|
|
139
|
-
orderByDirection:
|
|
75
|
+
orderBy: z.nullable(components.ToolProperties$outboundSchema).optional(),
|
|
76
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
140
77
|
.optional(),
|
|
141
78
|
fields: z.nullable(z.array(components.ToolProperties$outboundSchema))
|
|
142
79
|
.optional(),
|