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

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 (209) hide show
  1. package/README.md +18 -2
  2. package/docs/sdks/prompts/README.md +78 -0
  3. package/docs/sdks/services/README.md +245 -0
  4. package/docs/sdks/syllablesdk/README.md +3 -2
  5. package/docs/sdks/tools/README.md +163 -1
  6. package/docs/sdks/transcript/README.md +2 -0
  7. package/funcs/promptsPromptsHistory.d.ts +17 -0
  8. package/funcs/promptsPromptsHistory.d.ts.map +1 -0
  9. package/funcs/promptsPromptsHistory.js +106 -0
  10. package/funcs/promptsPromptsHistory.js.map +1 -0
  11. package/funcs/servicesCreate.d.ts +13 -0
  12. package/funcs/servicesCreate.d.ts.map +1 -0
  13. package/funcs/servicesCreate.js +96 -0
  14. package/funcs/servicesCreate.js.map +1 -0
  15. package/funcs/servicesList.d.ts +17 -0
  16. package/funcs/servicesList.d.ts.map +1 -0
  17. package/funcs/servicesList.js +111 -0
  18. package/funcs/servicesList.js.map +1 -0
  19. package/funcs/servicesUpdate.d.ts +13 -0
  20. package/funcs/servicesUpdate.d.ts.map +1 -0
  21. package/funcs/servicesUpdate.js +96 -0
  22. package/funcs/servicesUpdate.js.map +1 -0
  23. package/funcs/toolsCreate.d.ts +16 -0
  24. package/funcs/toolsCreate.d.ts.map +1 -0
  25. package/funcs/toolsCreate.js +99 -0
  26. package/funcs/toolsCreate.js.map +1 -0
  27. package/funcs/toolsList.d.ts +1 -1
  28. package/funcs/toolsList.js +1 -1
  29. package/funcs/toolsUpdate.d.ts +16 -0
  30. package/funcs/toolsUpdate.d.ts.map +1 -0
  31. package/funcs/toolsUpdate.js +99 -0
  32. package/funcs/toolsUpdate.js.map +1 -0
  33. package/lib/config.d.ts +3 -3
  34. package/lib/config.js +3 -3
  35. package/models/components/channel.d.ts +3 -0
  36. package/models/components/channel.d.ts.map +1 -1
  37. package/models/components/channel.js.map +1 -1
  38. package/models/components/index.d.ts +8 -2
  39. package/models/components/index.d.ts.map +1 -1
  40. package/models/components/index.js +8 -2
  41. package/models/components/index.js.map +1 -1
  42. package/models/components/listresponseservice.d.ts +38 -0
  43. package/models/components/listresponseservice.d.ts.map +1 -0
  44. package/models/components/listresponseservice.js +81 -0
  45. package/models/components/listresponseservice.js.map +1 -0
  46. package/models/components/llmconfig.d.ts +34 -3
  47. package/models/components/llmconfig.d.ts.map +1 -1
  48. package/models/components/llmconfig.js +26 -4
  49. package/models/components/llmconfig.js.map +1 -1
  50. package/models/components/prompt.d.ts +13 -0
  51. package/models/components/prompt.d.ts.map +1 -1
  52. package/models/components/prompt.js +8 -0
  53. package/models/components/prompt.js.map +1 -1
  54. package/models/components/promptcreate.d.ts +3 -0
  55. package/models/components/promptcreate.d.ts.map +1 -1
  56. package/models/components/promptcreate.js.map +1 -1
  57. package/models/components/prompthistory.d.ts +41 -0
  58. package/models/components/prompthistory.d.ts.map +1 -0
  59. package/models/components/prompthistory.js +88 -0
  60. package/models/components/prompthistory.js.map +1 -0
  61. package/models/components/promptproperties.d.ts +3 -0
  62. package/models/components/promptproperties.d.ts.map +1 -1
  63. package/models/components/promptproperties.js +1 -0
  64. package/models/components/promptproperties.js.map +1 -1
  65. package/models/components/service.d.ts +47 -0
  66. package/models/components/service.d.ts.map +1 -0
  67. package/models/components/{provider.js → service.js} +30 -19
  68. package/models/components/service.js.map +1 -0
  69. package/models/components/servicecreate.d.ts +37 -0
  70. package/models/components/servicecreate.d.ts.map +1 -0
  71. package/models/components/servicecreate.js +61 -0
  72. package/models/components/servicecreate.js.map +1 -0
  73. package/models/components/serviceproperties.d.ts +28 -0
  74. package/models/components/serviceproperties.d.ts.map +1 -0
  75. package/models/components/{orderbydirection.js → serviceproperties.js} +14 -14
  76. package/models/components/serviceproperties.js.map +1 -0
  77. package/models/components/serviceupdate.d.ts +42 -0
  78. package/models/components/serviceupdate.d.ts.map +1 -0
  79. package/models/components/serviceupdate.js +63 -0
  80. package/models/components/serviceupdate.js.map +1 -0
  81. package/models/components/toolcreate.d.ts +66 -0
  82. package/models/components/toolcreate.d.ts.map +1 -0
  83. package/models/components/toolcreate.js +95 -0
  84. package/models/components/toolcreate.js.map +1 -0
  85. package/models/components/toolupdate.d.ts +71 -0
  86. package/models/components/toolupdate.d.ts.map +1 -0
  87. package/models/components/toolupdate.js +97 -0
  88. package/models/components/toolupdate.js.map +1 -0
  89. package/models/operations/agentlist.d.ts +77 -2
  90. package/models/operations/agentlist.d.ts.map +1 -1
  91. package/models/operations/agentlist.js +52 -5
  92. package/models/operations/agentlist.js.map +1 -1
  93. package/models/operations/availabletargets.d.ts +56 -2
  94. package/models/operations/availabletargets.d.ts.map +1 -1
  95. package/models/operations/availabletargets.js +47 -5
  96. package/models/operations/availabletargets.js.map +1 -1
  97. package/models/operations/channelslist.d.ts +59 -2
  98. package/models/operations/channelslist.d.ts.map +1 -1
  99. package/models/operations/channelslist.js +45 -5
  100. package/models/operations/channelslist.js.map +1 -1
  101. package/models/operations/channeltargetslist.d.ts +71 -2
  102. package/models/operations/channeltargetslist.d.ts.map +1 -1
  103. package/models/operations/channeltargetslist.js +52 -5
  104. package/models/operations/channeltargetslist.js.map +1 -1
  105. package/models/operations/conversationslist.d.ts +77 -2
  106. package/models/operations/conversationslist.d.ts.map +1 -1
  107. package/models/operations/conversationslist.js +54 -5
  108. package/models/operations/conversationslist.js.map +1 -1
  109. package/models/operations/custommessageslist.d.ts +56 -2
  110. package/models/operations/custommessageslist.d.ts.map +1 -1
  111. package/models/operations/custommessageslist.js +47 -5
  112. package/models/operations/custommessageslist.js.map +1 -1
  113. package/models/operations/eventslist.d.ts +77 -2
  114. package/models/operations/eventslist.d.ts.map +1 -1
  115. package/models/operations/eventslist.js +53 -5
  116. package/models/operations/eventslist.js.map +1 -1
  117. package/models/operations/index.d.ts +2 -0
  118. package/models/operations/index.d.ts.map +1 -1
  119. package/models/operations/index.js +2 -0
  120. package/models/operations/index.js.map +1 -1
  121. package/models/operations/promptshistory.d.ts +29 -0
  122. package/models/operations/promptshistory.d.ts.map +1 -0
  123. package/models/operations/promptshistory.js +68 -0
  124. package/models/operations/promptshistory.js.map +1 -0
  125. package/models/operations/promptslist.d.ts +65 -2
  126. package/models/operations/promptslist.d.ts.map +1 -1
  127. package/models/operations/promptslist.js +49 -5
  128. package/models/operations/promptslist.js.map +1 -1
  129. package/models/operations/servicelist.d.ts +97 -0
  130. package/models/operations/servicelist.d.ts.map +1 -0
  131. package/models/operations/servicelist.js +137 -0
  132. package/models/operations/servicelist.js.map +1 -0
  133. package/models/operations/sessionlabelslist.d.ts +68 -2
  134. package/models/operations/sessionlabelslist.d.ts.map +1 -1
  135. package/models/operations/sessionlabelslist.js +51 -5
  136. package/models/operations/sessionlabelslist.js.map +1 -1
  137. package/models/operations/sessionslist.d.ts +95 -2
  138. package/models/operations/sessionslist.d.ts.map +1 -1
  139. package/models/operations/sessionslist.js +59 -5
  140. package/models/operations/sessionslist.js.map +1 -1
  141. package/models/operations/toollist.d.ts +62 -2
  142. package/models/operations/toollist.d.ts.map +1 -1
  143. package/models/operations/toollist.js +48 -5
  144. package/models/operations/toollist.js.map +1 -1
  145. package/package.json +1 -1
  146. package/sdk/prompts.d.ts +7 -0
  147. package/sdk/prompts.d.ts.map +1 -1
  148. package/sdk/prompts.js +10 -0
  149. package/sdk/prompts.js.map +1 -1
  150. package/sdk/sdk.d.ts +3 -0
  151. package/sdk/sdk.d.ts.map +1 -1
  152. package/sdk/sdk.js +5 -0
  153. package/sdk/sdk.js.map +1 -1
  154. package/sdk/services.d.ts +21 -0
  155. package/sdk/services.d.ts.map +1 -0
  156. package/sdk/services.js +36 -0
  157. package/sdk/services.js.map +1 -0
  158. package/sdk/tools.d.ts +15 -1
  159. package/sdk/tools.d.ts.map +1 -1
  160. package/sdk/tools.js +21 -1
  161. package/sdk/tools.js.map +1 -1
  162. package/src/funcs/promptsPromptsHistory.ts +139 -0
  163. package/src/funcs/servicesCreate.ts +128 -0
  164. package/src/funcs/servicesList.ts +144 -0
  165. package/src/funcs/servicesUpdate.ts +128 -0
  166. package/src/funcs/toolsCreate.ts +131 -0
  167. package/src/funcs/toolsList.ts +1 -1
  168. package/src/funcs/toolsUpdate.ts +131 -0
  169. package/src/lib/config.ts +3 -3
  170. package/src/models/components/channel.ts +3 -0
  171. package/src/models/components/index.ts +8 -2
  172. package/src/models/components/listresponseservice.ts +101 -0
  173. package/src/models/components/llmconfig.ts +36 -9
  174. package/src/models/components/prompt.ts +21 -0
  175. package/src/models/components/promptcreate.ts +3 -0
  176. package/src/models/components/prompthistory.ts +103 -0
  177. package/src/models/components/promptproperties.ts +1 -0
  178. package/src/models/components/service.ts +83 -0
  179. package/src/models/components/servicecreate.ts +72 -0
  180. package/src/models/components/serviceproperties.ts +33 -0
  181. package/src/models/components/serviceupdate.ts +79 -0
  182. package/src/models/components/toolcreate.ts +141 -0
  183. package/src/models/components/toolupdate.ts +148 -0
  184. package/src/models/operations/agentlist.ts +67 -6
  185. package/src/models/operations/availabletargets.ts +71 -6
  186. package/src/models/operations/channelslist.ts +65 -6
  187. package/src/models/operations/channeltargetslist.ts +77 -6
  188. package/src/models/operations/conversationslist.ts +78 -6
  189. package/src/models/operations/custommessageslist.ts +72 -6
  190. package/src/models/operations/eventslist.ts +78 -6
  191. package/src/models/operations/index.ts +2 -0
  192. package/src/models/operations/promptshistory.ts +75 -0
  193. package/src/models/operations/promptslist.ts +74 -6
  194. package/src/models/operations/servicelist.ts +184 -0
  195. package/src/models/operations/sessionlabelslist.ts +75 -6
  196. package/src/models/operations/sessionslist.ts +84 -6
  197. package/src/models/operations/toollist.ts +71 -6
  198. package/src/sdk/prompts.ts +18 -0
  199. package/src/sdk/sdk.ts +6 -0
  200. package/src/sdk/services.ts +58 -0
  201. package/src/sdk/tools.ts +37 -1
  202. package/models/components/orderbydirection.d.ts +0 -28
  203. package/models/components/orderbydirection.d.ts.map +0 -1
  204. package/models/components/orderbydirection.js.map +0 -1
  205. package/models/components/provider.d.ts +0 -34
  206. package/models/components/provider.d.ts.map +0 -1
  207. package/models/components/provider.js.map +0 -1
  208. package/src/models/components/orderbydirection.ts +0 -33
  209. package/src/models/components/provider.ts +0 -37
@@ -0,0 +1,184 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export const ServiceListQueryParamOrderBy = {
14
+ Id: "id",
15
+ Name: "name",
16
+ } as const;
17
+ export type ServiceListQueryParamOrderBy = ClosedEnum<
18
+ typeof ServiceListQueryParamOrderBy
19
+ >;
20
+
21
+ export const ServiceListQueryParamOrderByDirection = {
22
+ Asc: "asc",
23
+ Desc: "desc",
24
+ } as const;
25
+ export type ServiceListQueryParamOrderByDirection = ClosedEnum<
26
+ typeof ServiceListQueryParamOrderByDirection
27
+ >;
28
+
29
+ export type ServiceListRequest = {
30
+ page?: number | null | undefined;
31
+ limit?: number | undefined;
32
+ searchFields?: Array<components.ServiceProperties> | undefined;
33
+ searchFieldValues?: Array<string> | undefined;
34
+ orderBy?: ServiceListQueryParamOrderBy | undefined;
35
+ orderByDirection?: ServiceListQueryParamOrderByDirection | undefined;
36
+ fields?: Array<components.ServiceProperties> | null | undefined;
37
+ startDatetime?: string | null | undefined;
38
+ endDatetime?: string | null | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const ServiceListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
43
+ typeof ServiceListQueryParamOrderBy
44
+ > = z.nativeEnum(ServiceListQueryParamOrderBy);
45
+
46
+ /** @internal */
47
+ export const ServiceListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
48
+ typeof ServiceListQueryParamOrderBy
49
+ > = ServiceListQueryParamOrderBy$inboundSchema;
50
+
51
+ /**
52
+ * @internal
53
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
+ */
55
+ export namespace ServiceListQueryParamOrderBy$ {
56
+ /** @deprecated use `ServiceListQueryParamOrderBy$inboundSchema` instead. */
57
+ export const inboundSchema = ServiceListQueryParamOrderBy$inboundSchema;
58
+ /** @deprecated use `ServiceListQueryParamOrderBy$outboundSchema` instead. */
59
+ export const outboundSchema = ServiceListQueryParamOrderBy$outboundSchema;
60
+ }
61
+
62
+ /** @internal */
63
+ export const ServiceListQueryParamOrderByDirection$inboundSchema:
64
+ z.ZodNativeEnum<typeof ServiceListQueryParamOrderByDirection> = z.nativeEnum(
65
+ ServiceListQueryParamOrderByDirection,
66
+ );
67
+
68
+ /** @internal */
69
+ export const ServiceListQueryParamOrderByDirection$outboundSchema:
70
+ z.ZodNativeEnum<typeof ServiceListQueryParamOrderByDirection> =
71
+ ServiceListQueryParamOrderByDirection$inboundSchema;
72
+
73
+ /**
74
+ * @internal
75
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
+ */
77
+ export namespace ServiceListQueryParamOrderByDirection$ {
78
+ /** @deprecated use `ServiceListQueryParamOrderByDirection$inboundSchema` instead. */
79
+ export const inboundSchema =
80
+ ServiceListQueryParamOrderByDirection$inboundSchema;
81
+ /** @deprecated use `ServiceListQueryParamOrderByDirection$outboundSchema` instead. */
82
+ export const outboundSchema =
83
+ ServiceListQueryParamOrderByDirection$outboundSchema;
84
+ }
85
+
86
+ /** @internal */
87
+ export const ServiceListRequest$inboundSchema: z.ZodType<
88
+ ServiceListRequest,
89
+ z.ZodTypeDef,
90
+ unknown
91
+ > = z.object({
92
+ page: z.nullable(z.number().int()).optional(),
93
+ limit: z.number().int().default(25),
94
+ search_fields: z.array(components.ServiceProperties$inboundSchema).optional(),
95
+ search_field_values: z.array(z.string()).optional(),
96
+ order_by: ServiceListQueryParamOrderBy$inboundSchema.optional(),
97
+ order_by_direction: ServiceListQueryParamOrderByDirection$inboundSchema
98
+ .optional(),
99
+ fields: z.nullable(z.array(components.ServiceProperties$inboundSchema))
100
+ .optional(),
101
+ start_datetime: z.nullable(z.string()).optional(),
102
+ end_datetime: z.nullable(z.string()).optional(),
103
+ }).transform((v) => {
104
+ return remap$(v, {
105
+ "search_fields": "searchFields",
106
+ "search_field_values": "searchFieldValues",
107
+ "order_by": "orderBy",
108
+ "order_by_direction": "orderByDirection",
109
+ "start_datetime": "startDatetime",
110
+ "end_datetime": "endDatetime",
111
+ });
112
+ });
113
+
114
+ /** @internal */
115
+ export type ServiceListRequest$Outbound = {
116
+ page?: number | null | undefined;
117
+ limit: number;
118
+ search_fields?: Array<string> | undefined;
119
+ search_field_values?: Array<string> | undefined;
120
+ order_by?: string | undefined;
121
+ order_by_direction?: string | undefined;
122
+ fields?: Array<string> | null | undefined;
123
+ start_datetime?: string | null | undefined;
124
+ end_datetime?: string | null | undefined;
125
+ };
126
+
127
+ /** @internal */
128
+ export const ServiceListRequest$outboundSchema: z.ZodType<
129
+ ServiceListRequest$Outbound,
130
+ z.ZodTypeDef,
131
+ ServiceListRequest
132
+ > = z.object({
133
+ page: z.nullable(z.number().int()).optional(),
134
+ limit: z.number().int().default(25),
135
+ searchFields: z.array(components.ServiceProperties$outboundSchema).optional(),
136
+ searchFieldValues: z.array(z.string()).optional(),
137
+ orderBy: ServiceListQueryParamOrderBy$outboundSchema.optional(),
138
+ orderByDirection: ServiceListQueryParamOrderByDirection$outboundSchema
139
+ .optional(),
140
+ fields: z.nullable(z.array(components.ServiceProperties$outboundSchema))
141
+ .optional(),
142
+ startDatetime: z.nullable(z.string()).optional(),
143
+ endDatetime: z.nullable(z.string()).optional(),
144
+ }).transform((v) => {
145
+ return remap$(v, {
146
+ searchFields: "search_fields",
147
+ searchFieldValues: "search_field_values",
148
+ orderBy: "order_by",
149
+ orderByDirection: "order_by_direction",
150
+ startDatetime: "start_datetime",
151
+ endDatetime: "end_datetime",
152
+ });
153
+ });
154
+
155
+ /**
156
+ * @internal
157
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
158
+ */
159
+ export namespace ServiceListRequest$ {
160
+ /** @deprecated use `ServiceListRequest$inboundSchema` instead. */
161
+ export const inboundSchema = ServiceListRequest$inboundSchema;
162
+ /** @deprecated use `ServiceListRequest$outboundSchema` instead. */
163
+ export const outboundSchema = ServiceListRequest$outboundSchema;
164
+ /** @deprecated use `ServiceListRequest$Outbound` instead. */
165
+ export type Outbound = ServiceListRequest$Outbound;
166
+ }
167
+
168
+ export function serviceListRequestToJSON(
169
+ serviceListRequest: ServiceListRequest,
170
+ ): string {
171
+ return JSON.stringify(
172
+ ServiceListRequest$outboundSchema.parse(serviceListRequest),
173
+ );
174
+ }
175
+
176
+ export function serviceListRequestFromJSON(
177
+ jsonString: string,
178
+ ): SafeParseResult<ServiceListRequest, SDKValidationError> {
179
+ return safeParse(
180
+ jsonString,
181
+ (x) => ServiceListRequest$inboundSchema.parse(JSON.parse(x)),
182
+ `Failed to parse 'ServiceListRequest' from JSON`,
183
+ );
184
+ }
@@ -5,22 +5,89 @@
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";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
13
+ export const SessionLabelsListQueryParamOrderBy = {
14
+ Timestamp: "timestamp",
15
+ SessionId: "session_id",
16
+ Type: "type",
17
+ Code: "code",
18
+ UserEmail: "user_email",
19
+ IssueCategories: "issue_categories",
20
+ SessionIdList: "session_id_list",
21
+ } as const;
22
+ export type SessionLabelsListQueryParamOrderBy = ClosedEnum<
23
+ typeof SessionLabelsListQueryParamOrderBy
24
+ >;
25
+
26
+ export const SessionLabelsListQueryParamOrderByDirection = {
27
+ Asc: "asc",
28
+ Desc: "desc",
29
+ } as const;
30
+ export type SessionLabelsListQueryParamOrderByDirection = ClosedEnum<
31
+ typeof SessionLabelsListQueryParamOrderByDirection
32
+ >;
33
+
12
34
  export type SessionLabelsListRequest = {
13
35
  page?: number | null | undefined;
14
36
  limit?: number | undefined;
15
37
  searchFields?: Array<components.SessionLabelProperties> | undefined;
16
38
  searchFieldValues?: Array<string> | undefined;
17
- orderBy?: components.SessionLabelProperties | undefined;
18
- orderByDirection?: components.OrderByDirection | undefined;
39
+ orderBy?: SessionLabelsListQueryParamOrderBy | undefined;
40
+ orderByDirection?: SessionLabelsListQueryParamOrderByDirection | undefined;
19
41
  fields?: Array<components.SessionLabelProperties> | null | undefined;
20
42
  startDatetime?: string | null | undefined;
21
43
  endDatetime?: string | null | undefined;
22
44
  };
23
45
 
46
+ /** @internal */
47
+ export const SessionLabelsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
48
+ typeof SessionLabelsListQueryParamOrderBy
49
+ > = z.nativeEnum(SessionLabelsListQueryParamOrderBy);
50
+
51
+ /** @internal */
52
+ export const SessionLabelsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
53
+ typeof SessionLabelsListQueryParamOrderBy
54
+ > = SessionLabelsListQueryParamOrderBy$inboundSchema;
55
+
56
+ /**
57
+ * @internal
58
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
+ */
60
+ export namespace SessionLabelsListQueryParamOrderBy$ {
61
+ /** @deprecated use `SessionLabelsListQueryParamOrderBy$inboundSchema` instead. */
62
+ export const inboundSchema = SessionLabelsListQueryParamOrderBy$inboundSchema;
63
+ /** @deprecated use `SessionLabelsListQueryParamOrderBy$outboundSchema` instead. */
64
+ export const outboundSchema =
65
+ SessionLabelsListQueryParamOrderBy$outboundSchema;
66
+ }
67
+
68
+ /** @internal */
69
+ export const SessionLabelsListQueryParamOrderByDirection$inboundSchema:
70
+ z.ZodNativeEnum<typeof SessionLabelsListQueryParamOrderByDirection> = z
71
+ .nativeEnum(SessionLabelsListQueryParamOrderByDirection);
72
+
73
+ /** @internal */
74
+ export const SessionLabelsListQueryParamOrderByDirection$outboundSchema:
75
+ z.ZodNativeEnum<typeof SessionLabelsListQueryParamOrderByDirection> =
76
+ SessionLabelsListQueryParamOrderByDirection$inboundSchema;
77
+
78
+ /**
79
+ * @internal
80
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
+ */
82
+ export namespace SessionLabelsListQueryParamOrderByDirection$ {
83
+ /** @deprecated use `SessionLabelsListQueryParamOrderByDirection$inboundSchema` instead. */
84
+ export const inboundSchema =
85
+ SessionLabelsListQueryParamOrderByDirection$inboundSchema;
86
+ /** @deprecated use `SessionLabelsListQueryParamOrderByDirection$outboundSchema` instead. */
87
+ export const outboundSchema =
88
+ SessionLabelsListQueryParamOrderByDirection$outboundSchema;
89
+ }
90
+
24
91
  /** @internal */
25
92
  export const SessionLabelsListRequest$inboundSchema: z.ZodType<
26
93
  SessionLabelsListRequest,
@@ -32,8 +99,9 @@ export const SessionLabelsListRequest$inboundSchema: z.ZodType<
32
99
  search_fields: z.array(components.SessionLabelProperties$inboundSchema)
33
100
  .optional(),
34
101
  search_field_values: z.array(z.string()).optional(),
35
- order_by: components.SessionLabelProperties$inboundSchema.optional(),
36
- order_by_direction: components.OrderByDirection$inboundSchema.optional(),
102
+ order_by: SessionLabelsListQueryParamOrderBy$inboundSchema.optional(),
103
+ order_by_direction: SessionLabelsListQueryParamOrderByDirection$inboundSchema
104
+ .optional(),
37
105
  fields: z.nullable(z.array(components.SessionLabelProperties$inboundSchema))
38
106
  .optional(),
39
107
  start_datetime: z.nullable(z.string()).optional(),
@@ -73,8 +141,9 @@ export const SessionLabelsListRequest$outboundSchema: z.ZodType<
73
141
  searchFields: z.array(components.SessionLabelProperties$outboundSchema)
74
142
  .optional(),
75
143
  searchFieldValues: z.array(z.string()).optional(),
76
- orderBy: components.SessionLabelProperties$outboundSchema.optional(),
77
- orderByDirection: components.OrderByDirection$outboundSchema.optional(),
144
+ orderBy: SessionLabelsListQueryParamOrderBy$outboundSchema.optional(),
145
+ orderByDirection: SessionLabelsListQueryParamOrderByDirection$outboundSchema
146
+ .optional(),
78
147
  fields: z.nullable(z.array(components.SessionLabelProperties$outboundSchema))
79
148
  .optional(),
80
149
  startDatetime: z.nullable(z.string()).optional(),
@@ -5,22 +5,98 @@
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";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
13
+ export const SessionsListQueryParamOrderBy = {
14
+ Timestamp: "timestamp",
15
+ SessionId: "session_id",
16
+ ConversationId: "conversation_id",
17
+ ChannelManagerService: "channel_manager_service",
18
+ ChannelManagerType: "channel_manager_type",
19
+ ChannelManagerSid: "channel_manager_sid",
20
+ AgentType: "agent_type",
21
+ AgentId: "agent_id",
22
+ AgentName: "agent_name",
23
+ PromptId: "prompt_id",
24
+ PromptName: "prompt_name",
25
+ Source: "source",
26
+ Target: "target",
27
+ Duration: "duration",
28
+ IsLegacy: "is_legacy",
29
+ IsTest: "is_test",
30
+ } as const;
31
+ export type SessionsListQueryParamOrderBy = ClosedEnum<
32
+ typeof SessionsListQueryParamOrderBy
33
+ >;
34
+
35
+ export const SessionsListQueryParamOrderByDirection = {
36
+ Asc: "asc",
37
+ Desc: "desc",
38
+ } as const;
39
+ export type SessionsListQueryParamOrderByDirection = ClosedEnum<
40
+ typeof SessionsListQueryParamOrderByDirection
41
+ >;
42
+
12
43
  export type SessionsListRequest = {
13
44
  page?: number | null | undefined;
14
45
  limit?: number | undefined;
15
46
  searchFields?: Array<components.SessionProperties> | undefined;
16
47
  searchFieldValues?: Array<string> | undefined;
17
- orderBy?: components.SessionProperties | undefined;
18
- orderByDirection?: components.OrderByDirection | undefined;
48
+ orderBy?: SessionsListQueryParamOrderBy | undefined;
49
+ orderByDirection?: SessionsListQueryParamOrderByDirection | undefined;
19
50
  fields?: Array<components.SessionProperties> | null | undefined;
20
51
  startDatetime?: string | null | undefined;
21
52
  endDatetime?: string | null | undefined;
22
53
  };
23
54
 
55
+ /** @internal */
56
+ export const SessionsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
57
+ typeof SessionsListQueryParamOrderBy
58
+ > = z.nativeEnum(SessionsListQueryParamOrderBy);
59
+
60
+ /** @internal */
61
+ export const SessionsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
62
+ typeof SessionsListQueryParamOrderBy
63
+ > = SessionsListQueryParamOrderBy$inboundSchema;
64
+
65
+ /**
66
+ * @internal
67
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
+ */
69
+ export namespace SessionsListQueryParamOrderBy$ {
70
+ /** @deprecated use `SessionsListQueryParamOrderBy$inboundSchema` instead. */
71
+ export const inboundSchema = SessionsListQueryParamOrderBy$inboundSchema;
72
+ /** @deprecated use `SessionsListQueryParamOrderBy$outboundSchema` instead. */
73
+ export const outboundSchema = SessionsListQueryParamOrderBy$outboundSchema;
74
+ }
75
+
76
+ /** @internal */
77
+ export const SessionsListQueryParamOrderByDirection$inboundSchema:
78
+ z.ZodNativeEnum<typeof SessionsListQueryParamOrderByDirection> = z.nativeEnum(
79
+ SessionsListQueryParamOrderByDirection,
80
+ );
81
+
82
+ /** @internal */
83
+ export const SessionsListQueryParamOrderByDirection$outboundSchema:
84
+ z.ZodNativeEnum<typeof SessionsListQueryParamOrderByDirection> =
85
+ SessionsListQueryParamOrderByDirection$inboundSchema;
86
+
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export namespace SessionsListQueryParamOrderByDirection$ {
92
+ /** @deprecated use `SessionsListQueryParamOrderByDirection$inboundSchema` instead. */
93
+ export const inboundSchema =
94
+ SessionsListQueryParamOrderByDirection$inboundSchema;
95
+ /** @deprecated use `SessionsListQueryParamOrderByDirection$outboundSchema` instead. */
96
+ export const outboundSchema =
97
+ SessionsListQueryParamOrderByDirection$outboundSchema;
98
+ }
99
+
24
100
  /** @internal */
25
101
  export const SessionsListRequest$inboundSchema: z.ZodType<
26
102
  SessionsListRequest,
@@ -31,8 +107,9 @@ export const SessionsListRequest$inboundSchema: z.ZodType<
31
107
  limit: z.number().int().default(25),
32
108
  search_fields: z.array(components.SessionProperties$inboundSchema).optional(),
33
109
  search_field_values: z.array(z.string()).optional(),
34
- order_by: components.SessionProperties$inboundSchema.optional(),
35
- order_by_direction: components.OrderByDirection$inboundSchema.optional(),
110
+ order_by: SessionsListQueryParamOrderBy$inboundSchema.optional(),
111
+ order_by_direction: SessionsListQueryParamOrderByDirection$inboundSchema
112
+ .optional(),
36
113
  fields: z.nullable(z.array(components.SessionProperties$inboundSchema))
37
114
  .optional(),
38
115
  start_datetime: z.nullable(z.string()).optional(),
@@ -71,8 +148,9 @@ export const SessionsListRequest$outboundSchema: z.ZodType<
71
148
  limit: z.number().int().default(25),
72
149
  searchFields: z.array(components.SessionProperties$outboundSchema).optional(),
73
150
  searchFieldValues: z.array(z.string()).optional(),
74
- orderBy: components.SessionProperties$outboundSchema.optional(),
75
- orderByDirection: components.OrderByDirection$outboundSchema.optional(),
151
+ orderBy: SessionsListQueryParamOrderBy$outboundSchema.optional(),
152
+ orderByDirection: SessionsListQueryParamOrderByDirection$outboundSchema
153
+ .optional(),
76
154
  fields: z.nullable(z.array(components.SessionProperties$outboundSchema))
77
155
  .optional(),
78
156
  startDatetime: z.nullable(z.string()).optional(),
@@ -5,22 +5,85 @@
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";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import * as components from "../components/index.js";
10
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
12
 
13
+ export const ToolListQueryParamOrderBy = {
14
+ Id: "id",
15
+ Name: "name",
16
+ ServiceName: "service_name",
17
+ Definition: "definition",
18
+ ServiceId: "service_id",
19
+ } as const;
20
+ export type ToolListQueryParamOrderBy = ClosedEnum<
21
+ typeof ToolListQueryParamOrderBy
22
+ >;
23
+
24
+ export const ToolListQueryParamOrderByDirection = {
25
+ Asc: "asc",
26
+ Desc: "desc",
27
+ } as const;
28
+ export type ToolListQueryParamOrderByDirection = ClosedEnum<
29
+ typeof ToolListQueryParamOrderByDirection
30
+ >;
31
+
12
32
  export type ToolListRequest = {
13
33
  page?: number | null | undefined;
14
34
  limit?: number | undefined;
15
35
  searchFields?: Array<components.ToolProperties> | undefined;
16
36
  searchFieldValues?: Array<string> | undefined;
17
- orderBy?: components.ToolProperties | undefined;
18
- orderByDirection?: components.OrderByDirection | undefined;
37
+ orderBy?: ToolListQueryParamOrderBy | undefined;
38
+ orderByDirection?: ToolListQueryParamOrderByDirection | undefined;
19
39
  fields?: Array<components.ToolProperties> | null | undefined;
20
40
  startDatetime?: string | null | undefined;
21
41
  endDatetime?: string | null | undefined;
22
42
  };
23
43
 
44
+ /** @internal */
45
+ export const ToolListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
46
+ typeof ToolListQueryParamOrderBy
47
+ > = z.nativeEnum(ToolListQueryParamOrderBy);
48
+
49
+ /** @internal */
50
+ export const ToolListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
51
+ typeof ToolListQueryParamOrderBy
52
+ > = ToolListQueryParamOrderBy$inboundSchema;
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace ToolListQueryParamOrderBy$ {
59
+ /** @deprecated use `ToolListQueryParamOrderBy$inboundSchema` instead. */
60
+ export const inboundSchema = ToolListQueryParamOrderBy$inboundSchema;
61
+ /** @deprecated use `ToolListQueryParamOrderBy$outboundSchema` instead. */
62
+ export const outboundSchema = ToolListQueryParamOrderBy$outboundSchema;
63
+ }
64
+
65
+ /** @internal */
66
+ export const ToolListQueryParamOrderByDirection$inboundSchema: z.ZodNativeEnum<
67
+ typeof ToolListQueryParamOrderByDirection
68
+ > = z.nativeEnum(ToolListQueryParamOrderByDirection);
69
+
70
+ /** @internal */
71
+ export const ToolListQueryParamOrderByDirection$outboundSchema: z.ZodNativeEnum<
72
+ typeof ToolListQueryParamOrderByDirection
73
+ > = ToolListQueryParamOrderByDirection$inboundSchema;
74
+
75
+ /**
76
+ * @internal
77
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
+ */
79
+ export namespace ToolListQueryParamOrderByDirection$ {
80
+ /** @deprecated use `ToolListQueryParamOrderByDirection$inboundSchema` instead. */
81
+ export const inboundSchema = ToolListQueryParamOrderByDirection$inboundSchema;
82
+ /** @deprecated use `ToolListQueryParamOrderByDirection$outboundSchema` instead. */
83
+ export const outboundSchema =
84
+ ToolListQueryParamOrderByDirection$outboundSchema;
85
+ }
86
+
24
87
  /** @internal */
25
88
  export const ToolListRequest$inboundSchema: z.ZodType<
26
89
  ToolListRequest,
@@ -31,8 +94,9 @@ export const ToolListRequest$inboundSchema: z.ZodType<
31
94
  limit: z.number().int().default(25),
32
95
  search_fields: z.array(components.ToolProperties$inboundSchema).optional(),
33
96
  search_field_values: z.array(z.string()).optional(),
34
- order_by: components.ToolProperties$inboundSchema.optional(),
35
- order_by_direction: components.OrderByDirection$inboundSchema.optional(),
97
+ order_by: ToolListQueryParamOrderBy$inboundSchema.optional(),
98
+ order_by_direction: ToolListQueryParamOrderByDirection$inboundSchema
99
+ .optional(),
36
100
  fields: z.nullable(z.array(components.ToolProperties$inboundSchema))
37
101
  .optional(),
38
102
  start_datetime: z.nullable(z.string()).optional(),
@@ -71,8 +135,9 @@ export const ToolListRequest$outboundSchema: z.ZodType<
71
135
  limit: z.number().int().default(25),
72
136
  searchFields: z.array(components.ToolProperties$outboundSchema).optional(),
73
137
  searchFieldValues: z.array(z.string()).optional(),
74
- orderBy: components.ToolProperties$outboundSchema.optional(),
75
- orderByDirection: components.OrderByDirection$outboundSchema.optional(),
138
+ orderBy: ToolListQueryParamOrderBy$outboundSchema.optional(),
139
+ orderByDirection: ToolListQueryParamOrderByDirection$outboundSchema
140
+ .optional(),
76
141
  fields: z.nullable(z.array(components.ToolProperties$outboundSchema))
77
142
  .optional(),
78
143
  startDatetime: z.nullable(z.string()).optional(),
@@ -6,6 +6,7 @@ import { promptsCreate } from "../funcs/promptsCreate.js";
6
6
  import { promptsDelete } from "../funcs/promptsDelete.js";
7
7
  import { promptsGetById } from "../funcs/promptsGetById.js";
8
8
  import { promptsList } from "../funcs/promptsList.js";
9
+ import { promptsPromptsHistory } from "../funcs/promptsPromptsHistory.js";
9
10
  import { promptsUpdate } from "../funcs/promptsUpdate.js";
10
11
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
12
  import * as components from "../models/components/index.js";
@@ -94,4 +95,21 @@ export class Prompts extends ClientSDK {
94
95
  options,
95
96
  ));
96
97
  }
98
+
99
+ /**
100
+ * Get Prompt History
101
+ *
102
+ * @remarks
103
+ * Get a prompt by ID
104
+ */
105
+ async promptsHistory(
106
+ request: operations.PromptsHistoryRequest,
107
+ options?: RequestOptions,
108
+ ): Promise<Array<components.PromptHistory>> {
109
+ return unwrapAsync(promptsPromptsHistory(
110
+ this,
111
+ request,
112
+ options,
113
+ ));
114
+ }
97
115
  }
package/src/sdk/sdk.ts CHANGED
@@ -10,6 +10,7 @@ import { CustomMessages } from "./custommessages.js";
10
10
  import { Dashboards } from "./dashboards.js";
11
11
  import { Events } from "./events.js";
12
12
  import { Prompts } from "./prompts.js";
13
+ import { Services } from "./services.js";
13
14
  import { SessionLabels } from "./sessionlabels.js";
14
15
  import { Sessions } from "./sessions.js";
15
16
  import { Tools } from "./tools.js";
@@ -50,6 +51,11 @@ export class SyllableSDK extends ClientSDK {
50
51
  return (this._prompts ??= new Prompts(this._options));
51
52
  }
52
53
 
54
+ private _services?: Services;
55
+ get services(): Services {
56
+ return (this._services ??= new Services(this._options));
57
+ }
58
+
53
59
  private _sessionLabels?: SessionLabels;
54
60
  get sessionLabels(): SessionLabels {
55
61
  return (this._sessionLabels ??= new SessionLabels(this._options));
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { servicesCreate } from "../funcs/servicesCreate.js";
6
+ import { servicesList } from "../funcs/servicesList.js";
7
+ import { servicesUpdate } from "../funcs/servicesUpdate.js";
8
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
9
+ import * as components from "../models/components/index.js";
10
+ import * as operations from "../models/operations/index.js";
11
+ import { unwrapAsync } from "../types/fp.js";
12
+
13
+ export class Services extends ClientSDK {
14
+ /**
15
+ * Service List
16
+ *
17
+ * @remarks
18
+ * List the existing agents
19
+ */
20
+ async list(
21
+ request: operations.ServiceListRequest,
22
+ options?: RequestOptions,
23
+ ): Promise<components.ListResponseService> {
24
+ return unwrapAsync(servicesList(
25
+ this,
26
+ request,
27
+ options,
28
+ ));
29
+ }
30
+
31
+ /**
32
+ * Create Service
33
+ */
34
+ async create(
35
+ request: components.ServiceCreate,
36
+ options?: RequestOptions,
37
+ ): Promise<components.Service> {
38
+ return unwrapAsync(servicesCreate(
39
+ this,
40
+ request,
41
+ options,
42
+ ));
43
+ }
44
+
45
+ /**
46
+ * Update Service
47
+ */
48
+ async update(
49
+ request: components.ServiceUpdate,
50
+ options?: RequestOptions,
51
+ ): Promise<components.Service> {
52
+ return unwrapAsync(servicesUpdate(
53
+ this,
54
+ request,
55
+ options,
56
+ ));
57
+ }
58
+ }