syllable-sdk 0.1.0-alpha.45 → 0.1.0-alpha.47

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 (215) hide show
  1. package/README.md +34 -0
  2. package/docs/sdks/insights/README.md +6 -0
  3. package/docs/sdks/summary/README.md +85 -0
  4. package/docs/sdks/syllablesdktools/README.md +411 -0
  5. package/docs/sdks/workflows/README.md +429 -0
  6. package/funcs/insightsToolsCreate.d.ts +16 -0
  7. package/funcs/insightsToolsCreate.d.ts.map +1 -0
  8. package/funcs/insightsToolsCreate.js +102 -0
  9. package/funcs/insightsToolsCreate.js.map +1 -0
  10. package/funcs/insightsToolsGetById.d.ts +17 -0
  11. package/funcs/insightsToolsGetById.d.ts.map +1 -0
  12. package/funcs/insightsToolsGetById.js +108 -0
  13. package/funcs/insightsToolsGetById.js.map +1 -0
  14. package/funcs/insightsToolsInsightToolGetDefinitions.d.ts +15 -0
  15. package/funcs/insightsToolsInsightToolGetDefinitions.d.ts.map +1 -0
  16. package/funcs/insightsToolsInsightToolGetDefinitions.js +89 -0
  17. package/funcs/insightsToolsInsightToolGetDefinitions.js.map +1 -0
  18. package/funcs/insightsToolsList.d.ts +17 -0
  19. package/funcs/insightsToolsList.d.ts.map +1 -0
  20. package/funcs/insightsToolsList.js +114 -0
  21. package/funcs/insightsToolsList.js.map +1 -0
  22. package/funcs/insightsToolsUpdate.d.ts +17 -0
  23. package/funcs/insightsToolsUpdate.d.ts.map +1 -0
  24. package/funcs/insightsToolsUpdate.js +109 -0
  25. package/funcs/insightsToolsUpdate.js.map +1 -0
  26. package/funcs/insightsWorkflowsCreate.d.ts +16 -0
  27. package/funcs/insightsWorkflowsCreate.d.ts.map +1 -0
  28. package/funcs/insightsWorkflowsCreate.js +102 -0
  29. package/funcs/insightsWorkflowsCreate.js.map +1 -0
  30. package/funcs/insightsWorkflowsDelete.d.ts +16 -0
  31. package/funcs/insightsWorkflowsDelete.d.ts.map +1 -0
  32. package/funcs/insightsWorkflowsDelete.js +108 -0
  33. package/funcs/insightsWorkflowsDelete.js.map +1 -0
  34. package/funcs/insightsWorkflowsGetById.d.ts +17 -0
  35. package/funcs/insightsWorkflowsGetById.d.ts.map +1 -0
  36. package/funcs/insightsWorkflowsGetById.js +108 -0
  37. package/funcs/insightsWorkflowsGetById.js.map +1 -0
  38. package/funcs/insightsWorkflowsList.d.ts +17 -0
  39. package/funcs/insightsWorkflowsList.d.ts.map +1 -0
  40. package/funcs/insightsWorkflowsList.js +114 -0
  41. package/funcs/insightsWorkflowsList.js.map +1 -0
  42. package/funcs/insightsWorkflowsUpdate.d.ts +17 -0
  43. package/funcs/insightsWorkflowsUpdate.d.ts.map +1 -0
  44. package/funcs/insightsWorkflowsUpdate.js +111 -0
  45. package/funcs/insightsWorkflowsUpdate.js.map +1 -0
  46. package/funcs/sessionsSummaryGetById.d.ts +13 -0
  47. package/funcs/sessionsSummaryGetById.d.ts.map +1 -0
  48. package/funcs/sessionsSummaryGetById.js +105 -0
  49. package/funcs/sessionsSummaryGetById.js.map +1 -0
  50. package/jsr.json +1 -1
  51. package/lib/config.d.ts +2 -2
  52. package/lib/config.js +2 -2
  53. package/mintlify/mint.json +5 -2
  54. package/models/components/datasourcecreaterequest.d.ts +1 -1
  55. package/models/components/datasourcedetailresponse.d.ts +1 -1
  56. package/models/components/datasourcemetadataresponse.d.ts +1 -1
  57. package/models/components/datasourceupdaterequest.d.ts +1 -1
  58. package/models/components/index.d.ts +10 -0
  59. package/models/components/index.d.ts.map +1 -1
  60. package/models/components/index.js +10 -0
  61. package/models/components/index.js.map +1 -1
  62. package/models/components/insighttooldefinition.d.ts +105 -0
  63. package/models/components/insighttooldefinition.d.ts.map +1 -0
  64. package/models/components/insighttooldefinition.js +126 -0
  65. package/models/components/insighttooldefinition.js.map +1 -0
  66. package/models/components/insighttoolinput.d.ts +76 -0
  67. package/models/components/insighttoolinput.d.ts.map +1 -0
  68. package/models/components/insighttoolinput.js +101 -0
  69. package/models/components/insighttoolinput.js.map +1 -0
  70. package/models/components/insighttooloutput.d.ts +102 -0
  71. package/models/components/insighttooloutput.d.ts.map +1 -0
  72. package/models/components/insighttooloutput.js +124 -0
  73. package/models/components/insighttooloutput.js.map +1 -0
  74. package/models/components/insighttoolproperties.d.ts +40 -0
  75. package/models/components/insighttoolproperties.d.ts.map +1 -0
  76. package/models/components/insighttoolproperties.js +54 -0
  77. package/models/components/insighttoolproperties.js.map +1 -0
  78. package/models/components/insightworkflowinput.d.ts +76 -0
  79. package/models/components/insightworkflowinput.d.ts.map +1 -0
  80. package/models/components/insightworkflowinput.js +99 -0
  81. package/models/components/insightworkflowinput.js.map +1 -0
  82. package/models/components/insightworkflowoutput.d.ts +102 -0
  83. package/models/components/insightworkflowoutput.d.ts.map +1 -0
  84. package/models/components/insightworkflowoutput.js +120 -0
  85. package/models/components/insightworkflowoutput.js.map +1 -0
  86. package/models/components/insightworkflowproperties.d.ts +43 -0
  87. package/models/components/insightworkflowproperties.d.ts.map +1 -0
  88. package/models/components/insightworkflowproperties.js +55 -0
  89. package/models/components/insightworkflowproperties.js.map +1 -0
  90. package/models/components/listresponseinsighttooloutput.d.ts +38 -0
  91. package/models/components/listresponseinsighttooloutput.d.ts.map +1 -0
  92. package/models/components/listresponseinsighttooloutput.js +81 -0
  93. package/models/components/listresponseinsighttooloutput.js.map +1 -0
  94. package/models/components/listresponseinsightworkflowoutput.d.ts +38 -0
  95. package/models/components/listresponseinsightworkflowoutput.d.ts.map +1 -0
  96. package/models/components/listresponseinsightworkflowoutput.js +81 -0
  97. package/models/components/listresponseinsightworkflowoutput.js.map +1 -0
  98. package/models/components/toolagentinfo.d.ts +40 -0
  99. package/models/components/toolagentinfo.d.ts.map +1 -0
  100. package/models/components/toolagentinfo.js +61 -0
  101. package/models/components/toolagentinfo.js.map +1 -0
  102. package/models/components/tooldetailresponse.d.ts +6 -0
  103. package/models/components/tooldetailresponse.d.ts.map +1 -1
  104. package/models/components/tooldetailresponse.js +5 -0
  105. package/models/components/tooldetailresponse.js.map +1 -1
  106. package/models/components/toolresponse.d.ts +6 -0
  107. package/models/components/toolresponse.d.ts.map +1 -1
  108. package/models/components/toolresponse.js +5 -0
  109. package/models/components/toolresponse.js.map +1 -1
  110. package/models/operations/directoryworkflowdelete.d.ts +29 -0
  111. package/models/operations/directoryworkflowdelete.d.ts.map +1 -0
  112. package/models/operations/directoryworkflowdelete.js +68 -0
  113. package/models/operations/directoryworkflowdelete.js.map +1 -0
  114. package/models/operations/index.d.ts +8 -0
  115. package/models/operations/index.d.ts.map +1 -1
  116. package/models/operations/index.js +8 -0
  117. package/models/operations/index.js.map +1 -1
  118. package/models/operations/insightstoolupdate.d.ts +32 -0
  119. package/models/operations/insightstoolupdate.d.ts.map +1 -0
  120. package/models/operations/insightstoolupdate.js +73 -0
  121. package/models/operations/insightstoolupdate.js.map +1 -0
  122. package/models/operations/insightsworkflowgetbyid.d.ts +29 -0
  123. package/models/operations/insightsworkflowgetbyid.d.ts.map +1 -0
  124. package/models/operations/insightsworkflowgetbyid.js +68 -0
  125. package/models/operations/insightsworkflowgetbyid.js.map +1 -0
  126. package/models/operations/insightsworkflowlist.d.ts +46 -0
  127. package/models/operations/insightsworkflowlist.d.ts.map +1 -0
  128. package/models/operations/insightsworkflowlist.js +101 -0
  129. package/models/operations/insightsworkflowlist.js.map +1 -0
  130. package/models/operations/insightsworkflowupdate.d.ts +32 -0
  131. package/models/operations/insightsworkflowupdate.d.ts.map +1 -0
  132. package/models/operations/insightsworkflowupdate.js +73 -0
  133. package/models/operations/insightsworkflowupdate.js.map +1 -0
  134. package/models/operations/insighttoolgetbyid.d.ts +29 -0
  135. package/models/operations/insighttoolgetbyid.d.ts.map +1 -0
  136. package/models/operations/insighttoolgetbyid.js +68 -0
  137. package/models/operations/insighttoolgetbyid.js.map +1 -0
  138. package/models/operations/insighttoollist.d.ts +46 -0
  139. package/models/operations/insighttoollist.d.ts.map +1 -0
  140. package/models/operations/insighttoollist.js +103 -0
  141. package/models/operations/insighttoollist.js.map +1 -0
  142. package/models/operations/sessionsummarygetbyid.d.ts +29 -0
  143. package/models/operations/sessionsummarygetbyid.d.ts.map +1 -0
  144. package/models/operations/sessionsummarygetbyid.js +68 -0
  145. package/models/operations/sessionsummarygetbyid.js.map +1 -0
  146. package/openapi.json +1315 -35
  147. package/package.json +1 -1
  148. package/sdk/insights.d.ts +10 -0
  149. package/sdk/insights.d.ts.map +1 -0
  150. package/sdk/insights.js +19 -0
  151. package/sdk/insights.js.map +1 -0
  152. package/sdk/sdk.d.ts +3 -0
  153. package/sdk/sdk.d.ts.map +1 -1
  154. package/sdk/sdk.js +4 -0
  155. package/sdk/sdk.js.map +1 -1
  156. package/sdk/sessions.d.ts +3 -0
  157. package/sdk/sessions.d.ts.map +1 -1
  158. package/sdk/sessions.js +4 -0
  159. package/sdk/sessions.js.map +1 -1
  160. package/sdk/summary.d.ts +9 -0
  161. package/sdk/summary.d.ts.map +1 -0
  162. package/sdk/summary.js +19 -0
  163. package/sdk/summary.js.map +1 -0
  164. package/sdk/syllablesdktools.d.ts +41 -0
  165. package/sdk/syllablesdktools.d.ts.map +1 -0
  166. package/sdk/syllablesdktools.js +62 -0
  167. package/sdk/syllablesdktools.js.map +1 -0
  168. package/sdk/workflows.d.ts +41 -0
  169. package/sdk/workflows.d.ts.map +1 -0
  170. package/sdk/workflows.js +62 -0
  171. package/sdk/workflows.js.map +1 -0
  172. package/src/funcs/insightsToolsCreate.ts +135 -0
  173. package/src/funcs/insightsToolsGetById.ts +142 -0
  174. package/src/funcs/insightsToolsInsightToolGetDefinitions.ts +112 -0
  175. package/src/funcs/insightsToolsList.ts +148 -0
  176. package/src/funcs/insightsToolsUpdate.ts +143 -0
  177. package/src/funcs/insightsWorkflowsCreate.ts +135 -0
  178. package/src/funcs/insightsWorkflowsDelete.ts +145 -0
  179. package/src/funcs/insightsWorkflowsGetById.ts +145 -0
  180. package/src/funcs/insightsWorkflowsList.ts +149 -0
  181. package/src/funcs/insightsWorkflowsUpdate.ts +148 -0
  182. package/src/funcs/sessionsSummaryGetById.ts +140 -0
  183. package/src/lib/config.ts +2 -2
  184. package/src/models/components/datasourcecreaterequest.ts +1 -1
  185. package/src/models/components/datasourcedetailresponse.ts +1 -1
  186. package/src/models/components/datasourcemetadataresponse.ts +1 -1
  187. package/src/models/components/datasourceupdaterequest.ts +1 -1
  188. package/src/models/components/index.ts +10 -0
  189. package/src/models/components/insighttooldefinition.ts +213 -0
  190. package/src/models/components/insighttoolinput.ts +163 -0
  191. package/src/models/components/insighttooloutput.ts +210 -0
  192. package/src/models/components/insighttoolproperties.ts +37 -0
  193. package/src/models/components/insightworkflowinput.ts +161 -0
  194. package/src/models/components/insightworkflowoutput.ts +206 -0
  195. package/src/models/components/insightworkflowproperties.ts +40 -0
  196. package/src/models/components/listresponseinsighttooloutput.ts +103 -0
  197. package/src/models/components/listresponseinsightworkflowoutput.ts +104 -0
  198. package/src/models/components/toolagentinfo.ts +75 -0
  199. package/src/models/components/tooldetailresponse.ts +15 -0
  200. package/src/models/components/toolresponse.ts +15 -0
  201. package/src/models/operations/directoryworkflowdelete.ts +77 -0
  202. package/src/models/operations/index.ts +8 -0
  203. package/src/models/operations/insightstoolupdate.ts +82 -0
  204. package/src/models/operations/insightsworkflowgetbyid.ts +77 -0
  205. package/src/models/operations/insightsworkflowlist.ts +130 -0
  206. package/src/models/operations/insightsworkflowupdate.ts +84 -0
  207. package/src/models/operations/insighttoolgetbyid.ts +75 -0
  208. package/src/models/operations/insighttoollist.ts +126 -0
  209. package/src/models/operations/sessionsummarygetbyid.ts +77 -0
  210. package/src/sdk/insights.ts +19 -0
  211. package/src/sdk/sdk.ts +6 -0
  212. package/src/sdk/sessions.ts +6 -0
  213. package/src/sdk/summary.ts +24 -0
  214. package/src/sdk/syllablesdktools.ts +98 -0
  215. package/src/sdk/workflows.ts +100 -0
@@ -0,0 +1,130 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type InsightsWorkflowListRequest = {
13
+ page?: number | null | undefined;
14
+ limit?: number | undefined;
15
+ searchFields?: Array<components.InsightWorkflowProperties> | undefined;
16
+ searchFieldValues?: Array<string> | undefined;
17
+ orderBy?: components.InsightWorkflowProperties | null | undefined;
18
+ orderByDirection?: components.OrderByDirection | null | undefined;
19
+ fields?: Array<components.InsightWorkflowProperties> | null | undefined;
20
+ startDatetime?: string | null | undefined;
21
+ endDatetime?: string | null | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const InsightsWorkflowListRequest$inboundSchema: z.ZodType<
26
+ InsightsWorkflowListRequest,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ page: z.nullable(z.number().int()).optional(),
31
+ limit: z.number().int().default(25),
32
+ search_fields: z.array(components.InsightWorkflowProperties$inboundSchema)
33
+ .optional(),
34
+ search_field_values: z.array(z.string()).optional(),
35
+ order_by: z.nullable(components.InsightWorkflowProperties$inboundSchema)
36
+ .optional(),
37
+ order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
38
+ .optional(),
39
+ fields: z.nullable(
40
+ z.array(components.InsightWorkflowProperties$inboundSchema),
41
+ ).optional(),
42
+ start_datetime: z.nullable(z.string()).optional(),
43
+ end_datetime: z.nullable(z.string()).optional(),
44
+ }).transform((v) => {
45
+ return remap$(v, {
46
+ "search_fields": "searchFields",
47
+ "search_field_values": "searchFieldValues",
48
+ "order_by": "orderBy",
49
+ "order_by_direction": "orderByDirection",
50
+ "start_datetime": "startDatetime",
51
+ "end_datetime": "endDatetime",
52
+ });
53
+ });
54
+
55
+ /** @internal */
56
+ export type InsightsWorkflowListRequest$Outbound = {
57
+ page?: number | null | undefined;
58
+ limit: number;
59
+ search_fields?: Array<string> | undefined;
60
+ search_field_values?: Array<string> | undefined;
61
+ order_by?: string | null | undefined;
62
+ order_by_direction?: string | null | undefined;
63
+ fields?: Array<string> | null | undefined;
64
+ start_datetime?: string | null | undefined;
65
+ end_datetime?: string | null | undefined;
66
+ };
67
+
68
+ /** @internal */
69
+ export const InsightsWorkflowListRequest$outboundSchema: z.ZodType<
70
+ InsightsWorkflowListRequest$Outbound,
71
+ z.ZodTypeDef,
72
+ InsightsWorkflowListRequest
73
+ > = z.object({
74
+ page: z.nullable(z.number().int()).optional(),
75
+ limit: z.number().int().default(25),
76
+ searchFields: z.array(components.InsightWorkflowProperties$outboundSchema)
77
+ .optional(),
78
+ searchFieldValues: z.array(z.string()).optional(),
79
+ orderBy: z.nullable(components.InsightWorkflowProperties$outboundSchema)
80
+ .optional(),
81
+ orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
82
+ .optional(),
83
+ fields: z.nullable(
84
+ z.array(components.InsightWorkflowProperties$outboundSchema),
85
+ ).optional(),
86
+ startDatetime: z.nullable(z.string()).optional(),
87
+ endDatetime: z.nullable(z.string()).optional(),
88
+ }).transform((v) => {
89
+ return remap$(v, {
90
+ searchFields: "search_fields",
91
+ searchFieldValues: "search_field_values",
92
+ orderBy: "order_by",
93
+ orderByDirection: "order_by_direction",
94
+ startDatetime: "start_datetime",
95
+ endDatetime: "end_datetime",
96
+ });
97
+ });
98
+
99
+ /**
100
+ * @internal
101
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
102
+ */
103
+ export namespace InsightsWorkflowListRequest$ {
104
+ /** @deprecated use `InsightsWorkflowListRequest$inboundSchema` instead. */
105
+ export const inboundSchema = InsightsWorkflowListRequest$inboundSchema;
106
+ /** @deprecated use `InsightsWorkflowListRequest$outboundSchema` instead. */
107
+ export const outboundSchema = InsightsWorkflowListRequest$outboundSchema;
108
+ /** @deprecated use `InsightsWorkflowListRequest$Outbound` instead. */
109
+ export type Outbound = InsightsWorkflowListRequest$Outbound;
110
+ }
111
+
112
+ export function insightsWorkflowListRequestToJSON(
113
+ insightsWorkflowListRequest: InsightsWorkflowListRequest,
114
+ ): string {
115
+ return JSON.stringify(
116
+ InsightsWorkflowListRequest$outboundSchema.parse(
117
+ insightsWorkflowListRequest,
118
+ ),
119
+ );
120
+ }
121
+
122
+ export function insightsWorkflowListRequestFromJSON(
123
+ jsonString: string,
124
+ ): SafeParseResult<InsightsWorkflowListRequest, SDKValidationError> {
125
+ return safeParse(
126
+ jsonString,
127
+ (x) => InsightsWorkflowListRequest$inboundSchema.parse(JSON.parse(x)),
128
+ `Failed to parse 'InsightsWorkflowListRequest' from JSON`,
129
+ );
130
+ }
@@ -0,0 +1,84 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type InsightsWorkflowUpdateRequest = {
13
+ workflowId: number;
14
+ insightWorkflowInput: components.InsightWorkflowInput;
15
+ };
16
+
17
+ /** @internal */
18
+ export const InsightsWorkflowUpdateRequest$inboundSchema: z.ZodType<
19
+ InsightsWorkflowUpdateRequest,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ workflow_id: z.number().int(),
24
+ InsightWorkflowInput: components.InsightWorkflowInput$inboundSchema,
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "workflow_id": "workflowId",
28
+ "InsightWorkflowInput": "insightWorkflowInput",
29
+ });
30
+ });
31
+
32
+ /** @internal */
33
+ export type InsightsWorkflowUpdateRequest$Outbound = {
34
+ workflow_id: number;
35
+ InsightWorkflowInput: components.InsightWorkflowInput$Outbound;
36
+ };
37
+
38
+ /** @internal */
39
+ export const InsightsWorkflowUpdateRequest$outboundSchema: z.ZodType<
40
+ InsightsWorkflowUpdateRequest$Outbound,
41
+ z.ZodTypeDef,
42
+ InsightsWorkflowUpdateRequest
43
+ > = z.object({
44
+ workflowId: z.number().int(),
45
+ insightWorkflowInput: components.InsightWorkflowInput$outboundSchema,
46
+ }).transform((v) => {
47
+ return remap$(v, {
48
+ workflowId: "workflow_id",
49
+ insightWorkflowInput: "InsightWorkflowInput",
50
+ });
51
+ });
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 InsightsWorkflowUpdateRequest$ {
58
+ /** @deprecated use `InsightsWorkflowUpdateRequest$inboundSchema` instead. */
59
+ export const inboundSchema = InsightsWorkflowUpdateRequest$inboundSchema;
60
+ /** @deprecated use `InsightsWorkflowUpdateRequest$outboundSchema` instead. */
61
+ export const outboundSchema = InsightsWorkflowUpdateRequest$outboundSchema;
62
+ /** @deprecated use `InsightsWorkflowUpdateRequest$Outbound` instead. */
63
+ export type Outbound = InsightsWorkflowUpdateRequest$Outbound;
64
+ }
65
+
66
+ export function insightsWorkflowUpdateRequestToJSON(
67
+ insightsWorkflowUpdateRequest: InsightsWorkflowUpdateRequest,
68
+ ): string {
69
+ return JSON.stringify(
70
+ InsightsWorkflowUpdateRequest$outboundSchema.parse(
71
+ insightsWorkflowUpdateRequest,
72
+ ),
73
+ );
74
+ }
75
+
76
+ export function insightsWorkflowUpdateRequestFromJSON(
77
+ jsonString: string,
78
+ ): SafeParseResult<InsightsWorkflowUpdateRequest, SDKValidationError> {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) => InsightsWorkflowUpdateRequest$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'InsightsWorkflowUpdateRequest' from JSON`,
83
+ );
84
+ }
@@ -0,0 +1,75 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type InsightToolGetByIdRequest = {
12
+ toolId: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const InsightToolGetByIdRequest$inboundSchema: z.ZodType<
17
+ InsightToolGetByIdRequest,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ tool_id: z.string(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "tool_id": "toolId",
25
+ });
26
+ });
27
+
28
+ /** @internal */
29
+ export type InsightToolGetByIdRequest$Outbound = {
30
+ tool_id: string;
31
+ };
32
+
33
+ /** @internal */
34
+ export const InsightToolGetByIdRequest$outboundSchema: z.ZodType<
35
+ InsightToolGetByIdRequest$Outbound,
36
+ z.ZodTypeDef,
37
+ InsightToolGetByIdRequest
38
+ > = z.object({
39
+ toolId: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ toolId: "tool_id",
43
+ });
44
+ });
45
+
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ export namespace InsightToolGetByIdRequest$ {
51
+ /** @deprecated use `InsightToolGetByIdRequest$inboundSchema` instead. */
52
+ export const inboundSchema = InsightToolGetByIdRequest$inboundSchema;
53
+ /** @deprecated use `InsightToolGetByIdRequest$outboundSchema` instead. */
54
+ export const outboundSchema = InsightToolGetByIdRequest$outboundSchema;
55
+ /** @deprecated use `InsightToolGetByIdRequest$Outbound` instead. */
56
+ export type Outbound = InsightToolGetByIdRequest$Outbound;
57
+ }
58
+
59
+ export function insightToolGetByIdRequestToJSON(
60
+ insightToolGetByIdRequest: InsightToolGetByIdRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ InsightToolGetByIdRequest$outboundSchema.parse(insightToolGetByIdRequest),
64
+ );
65
+ }
66
+
67
+ export function insightToolGetByIdRequestFromJSON(
68
+ jsonString: string,
69
+ ): SafeParseResult<InsightToolGetByIdRequest, SDKValidationError> {
70
+ return safeParse(
71
+ jsonString,
72
+ (x) => InsightToolGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
73
+ `Failed to parse 'InsightToolGetByIdRequest' from JSON`,
74
+ );
75
+ }
@@ -0,0 +1,126 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type InsightToolListRequest = {
13
+ page?: number | null | undefined;
14
+ limit?: number | undefined;
15
+ searchFields?: Array<components.InsightToolProperties> | undefined;
16
+ searchFieldValues?: Array<string> | undefined;
17
+ orderBy?: components.InsightToolProperties | null | undefined;
18
+ orderByDirection?: components.OrderByDirection | null | undefined;
19
+ fields?: Array<components.InsightToolProperties> | null | undefined;
20
+ startDatetime?: string | null | undefined;
21
+ endDatetime?: string | null | undefined;
22
+ };
23
+
24
+ /** @internal */
25
+ export const InsightToolListRequest$inboundSchema: z.ZodType<
26
+ InsightToolListRequest,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ page: z.nullable(z.number().int()).optional(),
31
+ limit: z.number().int().default(25),
32
+ search_fields: z.array(components.InsightToolProperties$inboundSchema)
33
+ .optional(),
34
+ search_field_values: z.array(z.string()).optional(),
35
+ order_by: z.nullable(components.InsightToolProperties$inboundSchema)
36
+ .optional(),
37
+ order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
38
+ .optional(),
39
+ fields: z.nullable(z.array(components.InsightToolProperties$inboundSchema))
40
+ .optional(),
41
+ start_datetime: z.nullable(z.string()).optional(),
42
+ end_datetime: z.nullable(z.string()).optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ "search_fields": "searchFields",
46
+ "search_field_values": "searchFieldValues",
47
+ "order_by": "orderBy",
48
+ "order_by_direction": "orderByDirection",
49
+ "start_datetime": "startDatetime",
50
+ "end_datetime": "endDatetime",
51
+ });
52
+ });
53
+
54
+ /** @internal */
55
+ export type InsightToolListRequest$Outbound = {
56
+ page?: number | null | undefined;
57
+ limit: number;
58
+ search_fields?: Array<string> | undefined;
59
+ search_field_values?: Array<string> | undefined;
60
+ order_by?: string | null | undefined;
61
+ order_by_direction?: string | null | undefined;
62
+ fields?: Array<string> | null | undefined;
63
+ start_datetime?: string | null | undefined;
64
+ end_datetime?: string | null | undefined;
65
+ };
66
+
67
+ /** @internal */
68
+ export const InsightToolListRequest$outboundSchema: z.ZodType<
69
+ InsightToolListRequest$Outbound,
70
+ z.ZodTypeDef,
71
+ InsightToolListRequest
72
+ > = z.object({
73
+ page: z.nullable(z.number().int()).optional(),
74
+ limit: z.number().int().default(25),
75
+ searchFields: z.array(components.InsightToolProperties$outboundSchema)
76
+ .optional(),
77
+ searchFieldValues: z.array(z.string()).optional(),
78
+ orderBy: z.nullable(components.InsightToolProperties$outboundSchema)
79
+ .optional(),
80
+ orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
81
+ .optional(),
82
+ fields: z.nullable(z.array(components.InsightToolProperties$outboundSchema))
83
+ .optional(),
84
+ startDatetime: z.nullable(z.string()).optional(),
85
+ endDatetime: z.nullable(z.string()).optional(),
86
+ }).transform((v) => {
87
+ return remap$(v, {
88
+ searchFields: "search_fields",
89
+ searchFieldValues: "search_field_values",
90
+ orderBy: "order_by",
91
+ orderByDirection: "order_by_direction",
92
+ startDatetime: "start_datetime",
93
+ endDatetime: "end_datetime",
94
+ });
95
+ });
96
+
97
+ /**
98
+ * @internal
99
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
100
+ */
101
+ export namespace InsightToolListRequest$ {
102
+ /** @deprecated use `InsightToolListRequest$inboundSchema` instead. */
103
+ export const inboundSchema = InsightToolListRequest$inboundSchema;
104
+ /** @deprecated use `InsightToolListRequest$outboundSchema` instead. */
105
+ export const outboundSchema = InsightToolListRequest$outboundSchema;
106
+ /** @deprecated use `InsightToolListRequest$Outbound` instead. */
107
+ export type Outbound = InsightToolListRequest$Outbound;
108
+ }
109
+
110
+ export function insightToolListRequestToJSON(
111
+ insightToolListRequest: InsightToolListRequest,
112
+ ): string {
113
+ return JSON.stringify(
114
+ InsightToolListRequest$outboundSchema.parse(insightToolListRequest),
115
+ );
116
+ }
117
+
118
+ export function insightToolListRequestFromJSON(
119
+ jsonString: string,
120
+ ): SafeParseResult<InsightToolListRequest, SDKValidationError> {
121
+ return safeParse(
122
+ jsonString,
123
+ (x) => InsightToolListRequest$inboundSchema.parse(JSON.parse(x)),
124
+ `Failed to parse 'InsightToolListRequest' from JSON`,
125
+ );
126
+ }
@@ -0,0 +1,77 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type SessionSummaryGetByIdRequest = {
12
+ sessionId: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const SessionSummaryGetByIdRequest$inboundSchema: z.ZodType<
17
+ SessionSummaryGetByIdRequest,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ session_id: z.string(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "session_id": "sessionId",
25
+ });
26
+ });
27
+
28
+ /** @internal */
29
+ export type SessionSummaryGetByIdRequest$Outbound = {
30
+ session_id: string;
31
+ };
32
+
33
+ /** @internal */
34
+ export const SessionSummaryGetByIdRequest$outboundSchema: z.ZodType<
35
+ SessionSummaryGetByIdRequest$Outbound,
36
+ z.ZodTypeDef,
37
+ SessionSummaryGetByIdRequest
38
+ > = z.object({
39
+ sessionId: z.string(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ sessionId: "session_id",
43
+ });
44
+ });
45
+
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ export namespace SessionSummaryGetByIdRequest$ {
51
+ /** @deprecated use `SessionSummaryGetByIdRequest$inboundSchema` instead. */
52
+ export const inboundSchema = SessionSummaryGetByIdRequest$inboundSchema;
53
+ /** @deprecated use `SessionSummaryGetByIdRequest$outboundSchema` instead. */
54
+ export const outboundSchema = SessionSummaryGetByIdRequest$outboundSchema;
55
+ /** @deprecated use `SessionSummaryGetByIdRequest$Outbound` instead. */
56
+ export type Outbound = SessionSummaryGetByIdRequest$Outbound;
57
+ }
58
+
59
+ export function sessionSummaryGetByIdRequestToJSON(
60
+ sessionSummaryGetByIdRequest: SessionSummaryGetByIdRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ SessionSummaryGetByIdRequest$outboundSchema.parse(
64
+ sessionSummaryGetByIdRequest,
65
+ ),
66
+ );
67
+ }
68
+
69
+ export function sessionSummaryGetByIdRequestFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<SessionSummaryGetByIdRequest, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => SessionSummaryGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'SessionSummaryGetByIdRequest' from JSON`,
76
+ );
77
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { ClientSDK } from "../lib/sdks.js";
6
+ import { SyllableSDKTools } from "./syllablesdktools.js";
7
+ import { Workflows } from "./workflows.js";
8
+
9
+ export class Insights extends ClientSDK {
10
+ private _workflows?: Workflows;
11
+ get workflows(): Workflows {
12
+ return (this._workflows ??= new Workflows(this._options));
13
+ }
14
+
15
+ private _tools?: SyllableSDKTools;
16
+ get tools(): SyllableSDKTools {
17
+ return (this._tools ??= new SyllableSDKTools(this._options));
18
+ }
19
+ }
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 { DataSources } from "./datasources.js";
12
12
  import { Events } from "./events.js";
13
+ import { Insights } from "./insights.js";
13
14
  import { Prompts } from "./prompts.js";
14
15
  import { Services } from "./services.js";
15
16
  import { SessionLabels } from "./sessionlabels.js";
@@ -48,6 +49,11 @@ export class SyllableSDK extends ClientSDK {
48
49
  return (this._events ??= new Events(this._options));
49
50
  }
50
51
 
52
+ private _insights?: Insights;
53
+ get insights(): Insights {
54
+ return (this._insights ??= new Insights(this._options));
55
+ }
56
+
51
57
  private _customMessages?: CustomMessages;
52
58
  get customMessages(): CustomMessages {
53
59
  return (this._customMessages ??= new CustomMessages(this._options));
@@ -10,6 +10,7 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
10
10
  import * as components from "../models/components/index.js";
11
11
  import * as operations from "../models/operations/index.js";
12
12
  import { unwrapAsync } from "../types/fp.js";
13
+ import { Summary } from "./summary.js";
13
14
  import { Transcript } from "./transcript.js";
14
15
 
15
16
  export class Sessions extends ClientSDK {
@@ -18,6 +19,11 @@ export class Sessions extends ClientSDK {
18
19
  return (this._transcript ??= new Transcript(this._options));
19
20
  }
20
21
 
22
+ private _summary?: Summary;
23
+ get summary(): Summary {
24
+ return (this._summary ??= new Summary(this._options));
25
+ }
26
+
21
27
  /**
22
28
  * Sessions List
23
29
  */
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { sessionsSummaryGetById } from "../funcs/sessionsSummaryGetById.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { unwrapAsync } from "../types/fp.js";
9
+
10
+ export class Summary extends ClientSDK {
11
+ /**
12
+ * Get Session Summary By Id
13
+ */
14
+ async getById(
15
+ request: operations.SessionSummaryGetByIdRequest,
16
+ options?: RequestOptions,
17
+ ): Promise<string> {
18
+ return unwrapAsync(sessionsSummaryGetById(
19
+ this,
20
+ request,
21
+ options,
22
+ ));
23
+ }
24
+ }
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { insightsToolsCreate } from "../funcs/insightsToolsCreate.js";
6
+ import { insightsToolsGetById } from "../funcs/insightsToolsGetById.js";
7
+ import { insightsToolsInsightToolGetDefinitions } from "../funcs/insightsToolsInsightToolGetDefinitions.js";
8
+ import { insightsToolsList } from "../funcs/insightsToolsList.js";
9
+ import { insightsToolsUpdate } from "../funcs/insightsToolsUpdate.js";
10
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
+ import * as components from "../models/components/index.js";
12
+ import * as operations from "../models/operations/index.js";
13
+ import { unwrapAsync } from "../types/fp.js";
14
+
15
+ export class SyllableSDKTools extends ClientSDK {
16
+ /**
17
+ * Insight Tool List
18
+ *
19
+ * @remarks
20
+ * List the existing insight_tools
21
+ */
22
+ async list(
23
+ request: operations.InsightToolListRequest,
24
+ options?: RequestOptions,
25
+ ): Promise<components.ListResponseInsightToolOutput> {
26
+ return unwrapAsync(insightsToolsList(
27
+ this,
28
+ request,
29
+ options,
30
+ ));
31
+ }
32
+
33
+ /**
34
+ * Create Insight Tool
35
+ *
36
+ * @remarks
37
+ * Create a new tool in the insights
38
+ */
39
+ async create(
40
+ request: components.InsightToolInput,
41
+ options?: RequestOptions,
42
+ ): Promise<components.InsightToolOutput> {
43
+ return unwrapAsync(insightsToolsCreate(
44
+ this,
45
+ request,
46
+ options,
47
+ ));
48
+ }
49
+
50
+ /**
51
+ * Get Insight Tool By Id
52
+ *
53
+ * @remarks
54
+ * Get a InsightTool by Name.
55
+ */
56
+ async getById(
57
+ request: operations.InsightToolGetByIdRequest,
58
+ options?: RequestOptions,
59
+ ): Promise<components.InsightToolOutput> {
60
+ return unwrapAsync(insightsToolsGetById(
61
+ this,
62
+ request,
63
+ options,
64
+ ));
65
+ }
66
+
67
+ /**
68
+ * Update Insights Tool
69
+ *
70
+ * @remarks
71
+ * Update a InsightTool.
72
+ */
73
+ async update(
74
+ request: operations.InsightsToolUpdateRequest,
75
+ options?: RequestOptions,
76
+ ): Promise<components.InsightToolOutput> {
77
+ return unwrapAsync(insightsToolsUpdate(
78
+ this,
79
+ request,
80
+ options,
81
+ ));
82
+ }
83
+
84
+ /**
85
+ * Get Insight Tool Definitions
86
+ *
87
+ * @remarks
88
+ * Get a InsightTool by Name.
89
+ */
90
+ async insightToolGetDefinitions(
91
+ options?: RequestOptions,
92
+ ): Promise<Array<components.InsightToolDefinition>> {
93
+ return unwrapAsync(insightsToolsInsightToolGetDefinitions(
94
+ this,
95
+ options,
96
+ ));
97
+ }
98
+ }