syllable-sdk 0.1.0-alpha.4 → 0.1.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/README.md +5 -5
  2. package/docs/sdks/sessions/README.md +1 -1
  3. package/funcs/sessionsSessionRecordingStream.d.ts +1 -1
  4. package/funcs/sessionsSessionRecordingStream.d.ts.map +1 -1
  5. package/funcs/sessionsSessionRecordingStream.js +2 -2
  6. package/funcs/sessionsSessionRecordingStream.js.map +1 -1
  7. package/lib/config.d.ts +3 -3
  8. package/lib/config.d.ts.map +1 -1
  9. package/lib/config.js +3 -3
  10. package/lib/config.js.map +1 -1
  11. package/models/components/channel.d.ts +0 -3
  12. package/models/components/channel.d.ts.map +1 -1
  13. package/models/components/channel.js.map +1 -1
  14. package/models/components/index.d.ts +2 -0
  15. package/models/components/index.d.ts.map +1 -1
  16. package/models/components/index.js +2 -0
  17. package/models/components/index.js.map +1 -1
  18. package/models/components/llmconfig.d.ts +3 -34
  19. package/models/components/llmconfig.d.ts.map +1 -1
  20. package/models/components/llmconfig.js +4 -26
  21. package/models/components/llmconfig.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 +0 -3
  27. package/models/components/prompt.d.ts.map +1 -1
  28. package/models/components/prompt.js.map +1 -1
  29. package/models/components/promptcreate.d.ts +0 -3
  30. package/models/components/promptcreate.d.ts.map +1 -1
  31. package/models/components/promptcreate.js.map +1 -1
  32. package/models/components/provider.d.ts +34 -0
  33. package/models/components/provider.d.ts.map +1 -0
  34. package/models/components/provider.js +54 -0
  35. package/models/components/provider.js.map +1 -0
  36. package/models/components/sessionproperties.d.ts +3 -0
  37. package/models/components/sessionproperties.d.ts.map +1 -1
  38. package/models/components/sessionproperties.js +1 -0
  39. package/models/components/sessionproperties.js.map +1 -1
  40. package/models/operations/agentlist.d.ts +2 -77
  41. package/models/operations/agentlist.d.ts.map +1 -1
  42. package/models/operations/agentlist.js +5 -52
  43. package/models/operations/agentlist.js.map +1 -1
  44. package/models/operations/availabletargets.d.ts +2 -56
  45. package/models/operations/availabletargets.d.ts.map +1 -1
  46. package/models/operations/availabletargets.js +5 -47
  47. package/models/operations/availabletargets.js.map +1 -1
  48. package/models/operations/channelslist.d.ts +2 -59
  49. package/models/operations/channelslist.d.ts.map +1 -1
  50. package/models/operations/channelslist.js +5 -45
  51. package/models/operations/channelslist.js.map +1 -1
  52. package/models/operations/channeltargetslist.d.ts +2 -71
  53. package/models/operations/channeltargetslist.d.ts.map +1 -1
  54. package/models/operations/channeltargetslist.js +5 -52
  55. package/models/operations/channeltargetslist.js.map +1 -1
  56. package/models/operations/conversationslist.d.ts +2 -77
  57. package/models/operations/conversationslist.d.ts.map +1 -1
  58. package/models/operations/conversationslist.js +5 -54
  59. package/models/operations/conversationslist.js.map +1 -1
  60. package/models/operations/custommessageslist.d.ts +2 -56
  61. package/models/operations/custommessageslist.d.ts.map +1 -1
  62. package/models/operations/custommessageslist.js +5 -47
  63. package/models/operations/custommessageslist.js.map +1 -1
  64. package/models/operations/eventslist.d.ts +2 -77
  65. package/models/operations/eventslist.d.ts.map +1 -1
  66. package/models/operations/eventslist.js +5 -53
  67. package/models/operations/eventslist.js.map +1 -1
  68. package/models/operations/promptslist.d.ts +2 -62
  69. package/models/operations/promptslist.d.ts.map +1 -1
  70. package/models/operations/promptslist.js +5 -48
  71. package/models/operations/promptslist.js.map +1 -1
  72. package/models/operations/sessionlabelslist.d.ts +2 -68
  73. package/models/operations/sessionlabelslist.d.ts.map +1 -1
  74. package/models/operations/sessionlabelslist.js +5 -51
  75. package/models/operations/sessionlabelslist.js.map +1 -1
  76. package/models/operations/sessionslist.d.ts +2 -92
  77. package/models/operations/sessionslist.d.ts.map +1 -1
  78. package/models/operations/sessionslist.js +5 -58
  79. package/models/operations/sessionslist.js.map +1 -1
  80. package/models/operations/toollist.d.ts +2 -62
  81. package/models/operations/toollist.d.ts.map +1 -1
  82. package/models/operations/toollist.js +5 -48
  83. package/models/operations/toollist.js.map +1 -1
  84. package/package.json +1 -1
  85. package/sdk/sessions.d.ts +1 -1
  86. package/sdk/sessions.d.ts.map +1 -1
  87. package/src/funcs/sessionsSessionRecordingStream.ts +4 -4
  88. package/src/lib/config.ts +3 -3
  89. package/src/models/components/channel.ts +0 -3
  90. package/src/models/components/index.ts +2 -0
  91. package/src/models/components/llmconfig.ts +9 -36
  92. package/src/models/components/orderbydirection.ts +33 -0
  93. package/src/models/components/prompt.ts +0 -3
  94. package/src/models/components/promptcreate.ts +0 -3
  95. package/src/models/components/provider.ts +37 -0
  96. package/src/models/components/sessionproperties.ts +1 -0
  97. package/src/models/operations/agentlist.ts +6 -67
  98. package/src/models/operations/availabletargets.ts +6 -71
  99. package/src/models/operations/channelslist.ts +6 -65
  100. package/src/models/operations/channeltargetslist.ts +6 -77
  101. package/src/models/operations/conversationslist.ts +6 -78
  102. package/src/models/operations/custommessageslist.ts +6 -72
  103. package/src/models/operations/eventslist.ts +6 -78
  104. package/src/models/operations/promptslist.ts +6 -73
  105. package/src/models/operations/sessionlabelslist.ts +6 -75
  106. package/src/models/operations/sessionslist.ts +6 -83
  107. package/src/models/operations/toollist.ts +6 -71
  108. package/src/sdk/sessions.ts +1 -1
@@ -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
+ }
@@ -31,9 +31,6 @@ export type Prompt = {
31
31
  * The tools for the prompt
32
32
  */
33
33
  tools?: Array<string> | undefined;
34
- /**
35
- * The configuration for the language model used by the Cortex API.
36
- */
37
34
  llmConfig: LlmConfig;
38
35
  /**
39
36
  * The Prompt ID
@@ -31,9 +31,6 @@ export type PromptCreate = {
31
31
  * The tools for the prompt
32
32
  */
33
33
  tools?: Array<string> | undefined;
34
- /**
35
- * The configuration for the language model used by the Cortex API.
36
- */
37
34
  llmConfig: LlmConfig;
38
35
  };
39
36
 
@@ -0,0 +1,37 @@
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
+ /**
9
+ * LLM API provider.
10
+ */
11
+ export const Provider = {
12
+ AzureOpenai: "azure_openai",
13
+ Openai: "openai",
14
+ } as const;
15
+ /**
16
+ * LLM API provider.
17
+ */
18
+ export type Provider = ClosedEnum<typeof Provider>;
19
+
20
+ /** @internal */
21
+ export const Provider$inboundSchema: z.ZodNativeEnum<typeof Provider> = z
22
+ .nativeEnum(Provider);
23
+
24
+ /** @internal */
25
+ export const Provider$outboundSchema: z.ZodNativeEnum<typeof Provider> =
26
+ Provider$inboundSchema;
27
+
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export namespace Provider$ {
33
+ /** @deprecated use `Provider$inboundSchema` instead. */
34
+ export const inboundSchema = Provider$inboundSchema;
35
+ /** @deprecated use `Provider$outboundSchema` instead. */
36
+ export const outboundSchema = Provider$outboundSchema;
37
+ }
@@ -19,6 +19,7 @@ export const SessionProperties = {
19
19
  PromptName: "prompt_name",
20
20
  Source: "source",
21
21
  Target: "target",
22
+ Duration: "duration",
22
23
  IsLegacy: "is_legacy",
23
24
  IsTest: "is_test",
24
25
  } as const;
@@ -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 | undefined;
18
+ orderByDirection?: components.OrderByDirection | 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,8 @@ 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: components.AgentProperties$inboundSchema.optional(),
35
+ order_by_direction: components.OrderByDirection$inboundSchema.optional(),
97
36
  fields: z.nullable(z.array(components.AgentProperties$inboundSchema))
98
37
  .optional(),
99
38
  start_datetime: z.nullable(z.string()).optional(),
@@ -132,8 +71,8 @@ export const AgentListRequest$outboundSchema: z.ZodType<
132
71
  limit: z.number().int().default(25),
133
72
  searchFields: z.array(components.AgentProperties$outboundSchema).optional(),
134
73
  searchFieldValues: z.array(z.string()).optional(),
135
- orderBy: OrderBy$outboundSchema.optional(),
136
- orderByDirection: OrderByDirection$outboundSchema.optional(),
74
+ orderBy: components.AgentProperties$outboundSchema.optional(),
75
+ orderByDirection: components.OrderByDirection$outboundSchema.optional(),
137
76
  fields: z.nullable(z.array(components.AgentProperties$outboundSchema))
138
77
  .optional(),
139
78
  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 | undefined;
18
+ orderByDirection?: components.OrderByDirection | 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,9 +32,8 @@ 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
100
- .optional(),
35
+ order_by: components.AvailableTargetProperties$inboundSchema.optional(),
36
+ order_by_direction: components.OrderByDirection$inboundSchema.optional(),
101
37
  fields: z.nullable(
102
38
  z.array(components.AvailableTargetProperties$inboundSchema),
103
39
  ).optional(),
@@ -138,9 +74,8 @@ export const AvailableTargetsRequest$outboundSchema: z.ZodType<
138
74
  searchFields: z.array(components.AvailableTargetProperties$outboundSchema)
139
75
  .optional(),
140
76
  searchFieldValues: z.array(z.string()).optional(),
141
- orderBy: AvailableTargetsQueryParamOrderBy$outboundSchema.optional(),
142
- orderByDirection: AvailableTargetsQueryParamOrderByDirection$outboundSchema
143
- .optional(),
77
+ orderBy: components.AvailableTargetProperties$outboundSchema.optional(),
78
+ orderByDirection: components.OrderByDirection$outboundSchema.optional(),
144
79
  fields: z.nullable(
145
80
  z.array(components.AvailableTargetProperties$outboundSchema),
146
81
  ).optional(),
@@ -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 | undefined;
18
+ orderByDirection?: components.OrderByDirection | 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,8 @@ 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: components.ChannelProperties$inboundSchema.optional(),
35
+ order_by_direction: components.OrderByDirection$inboundSchema.optional(),
95
36
  fields: z.nullable(z.array(components.ChannelProperties$inboundSchema))
96
37
  .optional(),
97
38
  start_datetime: z.nullable(z.string()).optional(),
@@ -130,8 +71,8 @@ export const ChannelsListRequest$outboundSchema: z.ZodType<
130
71
  limit: z.number().int().default(25),
131
72
  searchFields: z.array(components.ChannelProperties$outboundSchema).optional(),
132
73
  searchFieldValues: z.array(z.string()).optional(),
133
- orderBy: QueryParamOrderBy$outboundSchema.optional(),
134
- orderByDirection: QueryParamOrderByDirection$outboundSchema.optional(),
74
+ orderBy: components.ChannelProperties$outboundSchema.optional(),
75
+ orderByDirection: components.OrderByDirection$outboundSchema.optional(),
135
76
  fields: z.nullable(z.array(components.ChannelProperties$outboundSchema))
136
77
  .optional(),
137
78
  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 | undefined;
18
+ orderByDirection?: components.OrderByDirection | 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,9 +32,8 @@ 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
106
- .optional(),
35
+ order_by: components.ChannelTargetProperties$inboundSchema.optional(),
36
+ order_by_direction: components.OrderByDirection$inboundSchema.optional(),
107
37
  fields: z.nullable(z.array(components.ChannelTargetProperties$inboundSchema))
108
38
  .optional(),
109
39
  start_datetime: z.nullable(z.string()).optional(),
@@ -143,9 +73,8 @@ export const ChannelTargetsListRequest$outboundSchema: z.ZodType<
143
73
  searchFields: z.array(components.ChannelTargetProperties$outboundSchema)
144
74
  .optional(),
145
75
  searchFieldValues: z.array(z.string()).optional(),
146
- orderBy: ChannelTargetsListQueryParamOrderBy$outboundSchema.optional(),
147
- orderByDirection: ChannelTargetsListQueryParamOrderByDirection$outboundSchema
148
- .optional(),
76
+ orderBy: components.ChannelTargetProperties$outboundSchema.optional(),
77
+ orderByDirection: components.OrderByDirection$outboundSchema.optional(),
149
78
  fields: z.nullable(z.array(components.ChannelTargetProperties$outboundSchema))
150
79
  .optional(),
151
80
  startDatetime: z.nullable(z.string()).optional(),
@@ -5,92 +5,22 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- export const ConversationsListQueryParamOrderBy = {
14
- Timestamp: "timestamp",
15
- AgentType: "agent_type",
16
- AgentId: "agent_id",
17
- AgentName: "agent_name",
18
- PromptId: "prompt_id",
19
- PromptName: "prompt_name",
20
- LlmProvider: "llm_provider",
21
- LlmModel: "llm_model",
22
- LlmVersion: "llm_version",
23
- IsLegacy: "is_legacy",
24
- } as const;
25
- export type ConversationsListQueryParamOrderBy = ClosedEnum<
26
- typeof ConversationsListQueryParamOrderBy
27
- >;
28
-
29
- export const ConversationsListQueryParamOrderByDirection = {
30
- Asc: "asc",
31
- Desc: "desc",
32
- } as const;
33
- export type ConversationsListQueryParamOrderByDirection = ClosedEnum<
34
- typeof ConversationsListQueryParamOrderByDirection
35
- >;
36
-
37
12
  export type ConversationsListRequest = {
38
13
  page?: number | null | undefined;
39
14
  limit?: number | undefined;
40
15
  searchFields?: Array<components.ConversationProperties> | undefined;
41
16
  searchFieldValues?: Array<string> | undefined;
42
- orderBy?: ConversationsListQueryParamOrderBy | undefined;
43
- orderByDirection?: ConversationsListQueryParamOrderByDirection | undefined;
17
+ orderBy?: components.ConversationProperties | undefined;
18
+ orderByDirection?: components.OrderByDirection | undefined;
44
19
  fields?: Array<components.ConversationProperties> | null | undefined;
45
20
  startDatetime?: string | null | undefined;
46
21
  endDatetime?: string | null | undefined;
47
22
  };
48
23
 
49
- /** @internal */
50
- export const ConversationsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
51
- typeof ConversationsListQueryParamOrderBy
52
- > = z.nativeEnum(ConversationsListQueryParamOrderBy);
53
-
54
- /** @internal */
55
- export const ConversationsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
56
- typeof ConversationsListQueryParamOrderBy
57
- > = ConversationsListQueryParamOrderBy$inboundSchema;
58
-
59
- /**
60
- * @internal
61
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
- */
63
- export namespace ConversationsListQueryParamOrderBy$ {
64
- /** @deprecated use `ConversationsListQueryParamOrderBy$inboundSchema` instead. */
65
- export const inboundSchema = ConversationsListQueryParamOrderBy$inboundSchema;
66
- /** @deprecated use `ConversationsListQueryParamOrderBy$outboundSchema` instead. */
67
- export const outboundSchema =
68
- ConversationsListQueryParamOrderBy$outboundSchema;
69
- }
70
-
71
- /** @internal */
72
- export const ConversationsListQueryParamOrderByDirection$inboundSchema:
73
- z.ZodNativeEnum<typeof ConversationsListQueryParamOrderByDirection> = z
74
- .nativeEnum(ConversationsListQueryParamOrderByDirection);
75
-
76
- /** @internal */
77
- export const ConversationsListQueryParamOrderByDirection$outboundSchema:
78
- z.ZodNativeEnum<typeof ConversationsListQueryParamOrderByDirection> =
79
- ConversationsListQueryParamOrderByDirection$inboundSchema;
80
-
81
- /**
82
- * @internal
83
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
- */
85
- export namespace ConversationsListQueryParamOrderByDirection$ {
86
- /** @deprecated use `ConversationsListQueryParamOrderByDirection$inboundSchema` instead. */
87
- export const inboundSchema =
88
- ConversationsListQueryParamOrderByDirection$inboundSchema;
89
- /** @deprecated use `ConversationsListQueryParamOrderByDirection$outboundSchema` instead. */
90
- export const outboundSchema =
91
- ConversationsListQueryParamOrderByDirection$outboundSchema;
92
- }
93
-
94
24
  /** @internal */
95
25
  export const ConversationsListRequest$inboundSchema: z.ZodType<
96
26
  ConversationsListRequest,
@@ -102,9 +32,8 @@ export const ConversationsListRequest$inboundSchema: z.ZodType<
102
32
  search_fields: z.array(components.ConversationProperties$inboundSchema)
103
33
  .optional(),
104
34
  search_field_values: z.array(z.string()).optional(),
105
- order_by: ConversationsListQueryParamOrderBy$inboundSchema.optional(),
106
- order_by_direction: ConversationsListQueryParamOrderByDirection$inboundSchema
107
- .optional(),
35
+ order_by: components.ConversationProperties$inboundSchema.optional(),
36
+ order_by_direction: components.OrderByDirection$inboundSchema.optional(),
108
37
  fields: z.nullable(z.array(components.ConversationProperties$inboundSchema))
109
38
  .optional(),
110
39
  start_datetime: z.nullable(z.string()).optional(),
@@ -144,9 +73,8 @@ export const ConversationsListRequest$outboundSchema: z.ZodType<
144
73
  searchFields: z.array(components.ConversationProperties$outboundSchema)
145
74
  .optional(),
146
75
  searchFieldValues: z.array(z.string()).optional(),
147
- orderBy: ConversationsListQueryParamOrderBy$outboundSchema.optional(),
148
- orderByDirection: ConversationsListQueryParamOrderByDirection$outboundSchema
149
- .optional(),
76
+ orderBy: components.ConversationProperties$outboundSchema.optional(),
77
+ orderByDirection: components.OrderByDirection$outboundSchema.optional(),
150
78
  fields: z.nullable(z.array(components.ConversationProperties$outboundSchema))
151
79
  .optional(),
152
80
  startDatetime: z.nullable(z.string()).optional(),