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.
Files changed (102) 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/session.d.ts +4 -0
  27. package/models/components/session.d.ts.map +1 -1
  28. package/models/components/session.js +8 -0
  29. package/models/components/session.js.map +1 -1
  30. package/models/operations/agentlist.d.ts +4 -79
  31. package/models/operations/agentlist.d.ts.map +1 -1
  32. package/models/operations/agentlist.js +7 -52
  33. package/models/operations/agentlist.js.map +1 -1
  34. package/models/operations/availabletargets.d.ts +4 -58
  35. package/models/operations/availabletargets.d.ts.map +1 -1
  36. package/models/operations/availabletargets.js +7 -45
  37. package/models/operations/availabletargets.js.map +1 -1
  38. package/models/operations/channelslist.d.ts +4 -61
  39. package/models/operations/channelslist.d.ts.map +1 -1
  40. package/models/operations/channelslist.js +7 -45
  41. package/models/operations/channelslist.js.map +1 -1
  42. package/models/operations/channeltargetslist.d.ts +4 -73
  43. package/models/operations/channeltargetslist.d.ts.map +1 -1
  44. package/models/operations/channeltargetslist.js +7 -50
  45. package/models/operations/channeltargetslist.js.map +1 -1
  46. package/models/operations/conversationslist.d.ts +4 -79
  47. package/models/operations/conversationslist.d.ts.map +1 -1
  48. package/models/operations/conversationslist.js +7 -52
  49. package/models/operations/conversationslist.js.map +1 -1
  50. package/models/operations/custommessageslist.d.ts +4 -58
  51. package/models/operations/custommessageslist.d.ts.map +1 -1
  52. package/models/operations/custommessageslist.js +7 -45
  53. package/models/operations/custommessageslist.js.map +1 -1
  54. package/models/operations/eventslist.d.ts +4 -79
  55. package/models/operations/eventslist.d.ts.map +1 -1
  56. package/models/operations/eventslist.js +5 -51
  57. package/models/operations/eventslist.js.map +1 -1
  58. package/models/operations/promptslist.d.ts +4 -67
  59. package/models/operations/promptslist.d.ts.map +1 -1
  60. package/models/operations/promptslist.js +5 -47
  61. package/models/operations/promptslist.js.map +1 -1
  62. package/models/operations/servicelist.d.ts +4 -55
  63. package/models/operations/servicelist.d.ts.map +1 -1
  64. package/models/operations/servicelist.js +5 -43
  65. package/models/operations/servicelist.js.map +1 -1
  66. package/models/operations/sessionlabelslist.d.ts +4 -70
  67. package/models/operations/sessionlabelslist.d.ts.map +1 -1
  68. package/models/operations/sessionlabelslist.js +7 -49
  69. package/models/operations/sessionlabelslist.js.map +1 -1
  70. package/models/operations/sessionslist.d.ts +4 -97
  71. package/models/operations/sessionslist.d.ts.map +1 -1
  72. package/models/operations/sessionslist.js +5 -57
  73. package/models/operations/sessionslist.js.map +1 -1
  74. package/models/operations/toollist.d.ts +4 -64
  75. package/models/operations/toollist.d.ts.map +1 -1
  76. package/models/operations/toollist.js +5 -46
  77. package/models/operations/toollist.js.map +1 -1
  78. package/package.json +1 -1
  79. package/sdk/prompts.d.ts +3 -0
  80. package/sdk/prompts.d.ts.map +1 -1
  81. package/sdk/prompts.js +3 -0
  82. package/sdk/prompts.js.map +1 -1
  83. package/src/funcs/promptsDelete.ts +3 -0
  84. package/src/lib/config.ts +5 -5
  85. package/src/models/components/agent.ts +8 -0
  86. package/src/models/components/agentproperties.ts +1 -0
  87. package/src/models/components/index.ts +1 -0
  88. package/src/models/components/orderbydirection.ts +33 -0
  89. package/src/models/components/session.ts +12 -0
  90. package/src/models/operations/agentlist.ts +10 -69
  91. package/src/models/operations/availabletargets.ts +10 -71
  92. package/src/models/operations/channelslist.ts +10 -67
  93. package/src/models/operations/channeltargetslist.ts +10 -77
  94. package/src/models/operations/conversationslist.ts +10 -78
  95. package/src/models/operations/custommessageslist.ts +10 -72
  96. package/src/models/operations/eventslist.ts +8 -78
  97. package/src/models/operations/promptslist.ts +8 -74
  98. package/src/models/operations/servicelist.ts +8 -70
  99. package/src/models/operations/sessionlabelslist.ts +10 -75
  100. package/src/models/operations/sessionslist.ts +8 -84
  101. package/src/models/operations/toollist.ts +8 -71
  102. package/src/sdk/prompts.ts +3 -0
package/src/lib/config.ts CHANGED
@@ -12,11 +12,11 @@ import { Params, pathToFunc } from "./url.js";
12
12
  */
13
13
  export const ServerList = [
14
14
  /**
15
- * staging server
15
+ * dev server
16
16
  */
17
17
  "http://localhost:8001",
18
18
  /**
19
- * staging / port-forwarding server
19
+ * dev / port-forwarding server
20
20
  */
21
21
  "http://localhost:8001",
22
22
  ] as const;
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "0.0.2",
64
- sdkVersion: "0.1.0-alpha.6",
65
- genVersion: "2.461.2",
64
+ sdkVersion: "0.1.0-alpha.7",
65
+ genVersion: "2.461.4",
66
66
  userAgent:
67
- "speakeasy-sdk/typescript 0.1.0-alpha.6 2.461.2 0.0.2 syllable-sdk",
67
+ "speakeasy-sdk/typescript 0.1.0-alpha.7 2.461.4 0.0.2 syllable-sdk",
68
68
  } as const;
@@ -30,6 +30,7 @@ export type Agent = {
30
30
  * The Agent ID
31
31
  */
32
32
  id: number;
33
+ updatedAt?: Date | null | undefined;
33
34
  };
34
35
 
35
36
  /** @internal */
@@ -89,12 +90,16 @@ export const Agent$inboundSchema: z.ZodType<Agent, z.ZodTypeDef, unknown> = z
89
90
  tool_headers: z.nullable(z.record(z.string())).optional(),
90
91
  variables: z.nullable(z.lazy(() => Variables$inboundSchema)).optional(),
91
92
  id: z.number().int(),
93
+ updated_at: z.nullable(
94
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
95
+ ).optional(),
92
96
  }).transform((v) => {
93
97
  return remap$(v, {
94
98
  "prompt_id": "promptId",
95
99
  "custom_message_id": "customMessageId",
96
100
  "prompt_tool_defaults": "promptToolDefaults",
97
101
  "tool_headers": "toolHeaders",
102
+ "updated_at": "updatedAt",
98
103
  });
99
104
  });
100
105
 
@@ -110,6 +115,7 @@ export type Agent$Outbound = {
110
115
  tool_headers?: { [k: string]: string } | null | undefined;
111
116
  variables?: Variables$Outbound | null | undefined;
112
117
  id: number;
118
+ updated_at?: string | null | undefined;
113
119
  };
114
120
 
115
121
  /** @internal */
@@ -128,12 +134,14 @@ export const Agent$outboundSchema: z.ZodType<
128
134
  toolHeaders: z.nullable(z.record(z.string())).optional(),
129
135
  variables: z.nullable(z.lazy(() => Variables$outboundSchema)).optional(),
130
136
  id: z.number().int(),
137
+ updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
131
138
  }).transform((v) => {
132
139
  return remap$(v, {
133
140
  promptId: "prompt_id",
134
141
  customMessageId: "custom_message_id",
135
142
  promptToolDefaults: "prompt_tool_defaults",
136
143
  toolHeaders: "tool_headers",
144
+ updatedAt: "updated_at",
137
145
  });
138
146
  });
139
147
 
@@ -16,6 +16,7 @@ export const AgentProperties = {
16
16
  Variables: "variables",
17
17
  PromptToolDefaults: "prompt_tool_defaults",
18
18
  ToolHeaders: "tool_headers",
19
+ UpdatedAt: "updated_at",
19
20
  } as const;
20
21
  export type AgentProperties = ClosedEnum<typeof AgentProperties>;
21
22
 
@@ -35,6 +35,7 @@ export * from "./listresponsesession.js";
35
35
  export * from "./listresponsesessionlabel.js";
36
36
  export * from "./listresponsetool.js";
37
37
  export * from "./llmconfig.js";
38
+ export * from "./orderbydirection.js";
38
39
  export * from "./prompt.js";
39
40
  export * from "./promptcreate.js";
40
41
  export * from "./prompthistory.js";
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const OrderByDirection = {
9
+ Asc: "asc",
10
+ Desc: "desc",
11
+ } as const;
12
+ export type OrderByDirection = ClosedEnum<typeof OrderByDirection>;
13
+
14
+ /** @internal */
15
+ export const OrderByDirection$inboundSchema: z.ZodNativeEnum<
16
+ typeof OrderByDirection
17
+ > = z.nativeEnum(OrderByDirection);
18
+
19
+ /** @internal */
20
+ export const OrderByDirection$outboundSchema: z.ZodNativeEnum<
21
+ typeof OrderByDirection
22
+ > = OrderByDirection$inboundSchema;
23
+
24
+ /**
25
+ * @internal
26
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
27
+ */
28
+ export namespace OrderByDirection$ {
29
+ /** @deprecated use `OrderByDirection$inboundSchema` instead. */
30
+ export const inboundSchema = OrderByDirection$inboundSchema;
31
+ /** @deprecated use `OrderByDirection$outboundSchema` instead. */
32
+ export const outboundSchema = OrderByDirection$outboundSchema;
33
+ }
@@ -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(),