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.
Files changed (122) hide show
  1. package/README.md +4 -4
  2. package/docs/sdks/prompts/README.md +1 -1
  3. package/docs/sdks/syllablesdk/README.md +4 -4
  4. package/funcs/promptsDelete.d.ts +3 -0
  5. package/funcs/promptsDelete.d.ts.map +1 -1
  6. package/funcs/promptsDelete.js +3 -0
  7. package/funcs/promptsDelete.js.map +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +5 -5
  10. package/models/components/agent.d.ts +2 -0
  11. package/models/components/agent.d.ts.map +1 -1
  12. package/models/components/agent.js +4 -0
  13. package/models/components/agent.js.map +1 -1
  14. package/models/components/agentproperties.d.ts +3 -0
  15. package/models/components/agentproperties.d.ts.map +1 -1
  16. package/models/components/agentproperties.js +1 -0
  17. package/models/components/agentproperties.js.map +1 -1
  18. package/models/components/index.d.ts +1 -0
  19. package/models/components/index.d.ts.map +1 -1
  20. package/models/components/index.js +1 -0
  21. package/models/components/index.js.map +1 -1
  22. package/models/components/orderbydirection.d.ts +28 -0
  23. package/models/components/orderbydirection.d.ts.map +1 -0
  24. package/models/components/orderbydirection.js +50 -0
  25. package/models/components/orderbydirection.js.map +1 -0
  26. package/models/components/prompt.d.ts +5 -0
  27. package/models/components/prompt.d.ts.map +1 -1
  28. package/models/components/prompt.js +2 -0
  29. package/models/components/prompt.js.map +1 -1
  30. package/models/components/promptcreate.d.ts +5 -0
  31. package/models/components/promptcreate.d.ts.map +1 -1
  32. package/models/components/promptcreate.js +2 -0
  33. package/models/components/promptcreate.js.map +1 -1
  34. package/models/components/prompthistory.d.ts +2 -0
  35. package/models/components/prompthistory.d.ts.map +1 -1
  36. package/models/components/prompthistory.js +4 -0
  37. package/models/components/prompthistory.js.map +1 -1
  38. package/models/components/promptproperties.d.ts +6 -0
  39. package/models/components/promptproperties.d.ts.map +1 -1
  40. package/models/components/promptproperties.js +2 -0
  41. package/models/components/promptproperties.js.map +1 -1
  42. package/models/components/session.d.ts +4 -0
  43. package/models/components/session.d.ts.map +1 -1
  44. package/models/components/session.js +8 -0
  45. package/models/components/session.js.map +1 -1
  46. package/models/operations/agentlist.d.ts +4 -79
  47. package/models/operations/agentlist.d.ts.map +1 -1
  48. package/models/operations/agentlist.js +7 -52
  49. package/models/operations/agentlist.js.map +1 -1
  50. package/models/operations/availabletargets.d.ts +4 -58
  51. package/models/operations/availabletargets.d.ts.map +1 -1
  52. package/models/operations/availabletargets.js +7 -45
  53. package/models/operations/availabletargets.js.map +1 -1
  54. package/models/operations/channelslist.d.ts +4 -61
  55. package/models/operations/channelslist.d.ts.map +1 -1
  56. package/models/operations/channelslist.js +7 -45
  57. package/models/operations/channelslist.js.map +1 -1
  58. package/models/operations/channeltargetslist.d.ts +4 -73
  59. package/models/operations/channeltargetslist.d.ts.map +1 -1
  60. package/models/operations/channeltargetslist.js +7 -50
  61. package/models/operations/channeltargetslist.js.map +1 -1
  62. package/models/operations/conversationslist.d.ts +4 -79
  63. package/models/operations/conversationslist.d.ts.map +1 -1
  64. package/models/operations/conversationslist.js +7 -52
  65. package/models/operations/conversationslist.js.map +1 -1
  66. package/models/operations/custommessageslist.d.ts +4 -58
  67. package/models/operations/custommessageslist.d.ts.map +1 -1
  68. package/models/operations/custommessageslist.js +7 -45
  69. package/models/operations/custommessageslist.js.map +1 -1
  70. package/models/operations/eventslist.d.ts +4 -79
  71. package/models/operations/eventslist.d.ts.map +1 -1
  72. package/models/operations/eventslist.js +5 -51
  73. package/models/operations/eventslist.js.map +1 -1
  74. package/models/operations/promptslist.d.ts +4 -67
  75. package/models/operations/promptslist.d.ts.map +1 -1
  76. package/models/operations/promptslist.js +5 -47
  77. package/models/operations/promptslist.js.map +1 -1
  78. package/models/operations/servicelist.d.ts +4 -55
  79. package/models/operations/servicelist.d.ts.map +1 -1
  80. package/models/operations/servicelist.js +5 -43
  81. package/models/operations/servicelist.js.map +1 -1
  82. package/models/operations/sessionlabelslist.d.ts +4 -70
  83. package/models/operations/sessionlabelslist.d.ts.map +1 -1
  84. package/models/operations/sessionlabelslist.js +7 -49
  85. package/models/operations/sessionlabelslist.js.map +1 -1
  86. package/models/operations/sessionslist.d.ts +4 -97
  87. package/models/operations/sessionslist.d.ts.map +1 -1
  88. package/models/operations/sessionslist.js +5 -57
  89. package/models/operations/sessionslist.js.map +1 -1
  90. package/models/operations/toollist.d.ts +4 -64
  91. package/models/operations/toollist.d.ts.map +1 -1
  92. package/models/operations/toollist.js +5 -46
  93. package/models/operations/toollist.js.map +1 -1
  94. package/package.json +1 -1
  95. package/sdk/prompts.d.ts +3 -0
  96. package/sdk/prompts.d.ts.map +1 -1
  97. package/sdk/prompts.js +3 -0
  98. package/sdk/prompts.js.map +1 -1
  99. package/src/funcs/promptsDelete.ts +3 -0
  100. package/src/lib/config.ts +5 -5
  101. package/src/models/components/agent.ts +8 -0
  102. package/src/models/components/agentproperties.ts +1 -0
  103. package/src/models/components/index.ts +1 -0
  104. package/src/models/components/orderbydirection.ts +33 -0
  105. package/src/models/components/prompt.ts +7 -0
  106. package/src/models/components/promptcreate.ts +7 -0
  107. package/src/models/components/prompthistory.ts +6 -0
  108. package/src/models/components/promptproperties.ts +2 -0
  109. package/src/models/components/session.ts +12 -0
  110. package/src/models/operations/agentlist.ts +10 -69
  111. package/src/models/operations/availabletargets.ts +10 -71
  112. package/src/models/operations/channelslist.ts +10 -67
  113. package/src/models/operations/channeltargetslist.ts +10 -77
  114. package/src/models/operations/conversationslist.ts +10 -78
  115. package/src/models/operations/custommessageslist.ts +10 -72
  116. package/src/models/operations/eventslist.ts +8 -78
  117. package/src/models/operations/promptslist.ts +8 -74
  118. package/src/models/operations/servicelist.ts +8 -70
  119. package/src/models/operations/sessionlabelslist.ts +10 -75
  120. package/src/models/operations/sessionslist.ts +8 -84
  121. package/src/models/operations/toollist.ts +8 -71
  122. 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?: OrderBy | undefined;
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: OrderBy$inboundSchema.optional(),
96
- order_by_direction: OrderByDirection$inboundSchema.optional(),
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: OrderBy$outboundSchema.optional(),
136
- orderByDirection: OrderByDirection$outboundSchema.optional(),
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?: AvailableTargetsQueryParamOrderBy | undefined;
36
- orderByDirection?: AvailableTargetsQueryParamOrderByDirection | undefined;
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: AvailableTargetsQueryParamOrderBy$inboundSchema.optional(),
99
- order_by_direction: AvailableTargetsQueryParamOrderByDirection$inboundSchema
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: AvailableTargetsQueryParamOrderBy$outboundSchema.optional(),
142
- orderByDirection: AvailableTargetsQueryParamOrderByDirection$outboundSchema
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?: QueryParamOrderBy | undefined;
35
- orderByDirection?: QueryParamOrderByDirection | undefined;
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: QueryParamOrderBy$inboundSchema.optional(),
94
- order_by_direction: QueryParamOrderByDirection$inboundSchema.optional(),
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: QueryParamOrderBy$outboundSchema.optional(),
134
- orderByDirection: QueryParamOrderByDirection$outboundSchema.optional(),
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?: ChannelTargetsListQueryParamOrderBy | undefined;
41
- orderByDirection?: ChannelTargetsListQueryParamOrderByDirection | undefined;
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: ChannelTargetsListQueryParamOrderBy$inboundSchema.optional(),
105
- order_by_direction: ChannelTargetsListQueryParamOrderByDirection$inboundSchema
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: ChannelTargetsListQueryParamOrderBy$outboundSchema.optional(),
147
- orderByDirection: ChannelTargetsListQueryParamOrderByDirection$outboundSchema
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(),