syllable-sdk 0.1.0-alpha.46 → 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 (192) 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 +4 -2
  54. package/models/components/index.d.ts +9 -0
  55. package/models/components/index.d.ts.map +1 -1
  56. package/models/components/index.js +9 -0
  57. package/models/components/index.js.map +1 -1
  58. package/models/components/insighttooldefinition.d.ts +105 -0
  59. package/models/components/insighttooldefinition.d.ts.map +1 -0
  60. package/models/components/insighttooldefinition.js +126 -0
  61. package/models/components/insighttooldefinition.js.map +1 -0
  62. package/models/components/insighttoolinput.d.ts +76 -0
  63. package/models/components/insighttoolinput.d.ts.map +1 -0
  64. package/models/components/insighttoolinput.js +101 -0
  65. package/models/components/insighttoolinput.js.map +1 -0
  66. package/models/components/insighttooloutput.d.ts +102 -0
  67. package/models/components/insighttooloutput.d.ts.map +1 -0
  68. package/models/components/insighttooloutput.js +124 -0
  69. package/models/components/insighttooloutput.js.map +1 -0
  70. package/models/components/insighttoolproperties.d.ts +40 -0
  71. package/models/components/insighttoolproperties.d.ts.map +1 -0
  72. package/models/components/insighttoolproperties.js +54 -0
  73. package/models/components/insighttoolproperties.js.map +1 -0
  74. package/models/components/insightworkflowinput.d.ts +76 -0
  75. package/models/components/insightworkflowinput.d.ts.map +1 -0
  76. package/models/components/insightworkflowinput.js +99 -0
  77. package/models/components/insightworkflowinput.js.map +1 -0
  78. package/models/components/insightworkflowoutput.d.ts +102 -0
  79. package/models/components/insightworkflowoutput.d.ts.map +1 -0
  80. package/models/components/insightworkflowoutput.js +120 -0
  81. package/models/components/insightworkflowoutput.js.map +1 -0
  82. package/models/components/insightworkflowproperties.d.ts +43 -0
  83. package/models/components/insightworkflowproperties.d.ts.map +1 -0
  84. package/models/components/insightworkflowproperties.js +55 -0
  85. package/models/components/insightworkflowproperties.js.map +1 -0
  86. package/models/components/listresponseinsighttooloutput.d.ts +38 -0
  87. package/models/components/listresponseinsighttooloutput.d.ts.map +1 -0
  88. package/models/components/listresponseinsighttooloutput.js +81 -0
  89. package/models/components/listresponseinsighttooloutput.js.map +1 -0
  90. package/models/components/listresponseinsightworkflowoutput.d.ts +38 -0
  91. package/models/components/listresponseinsightworkflowoutput.d.ts.map +1 -0
  92. package/models/components/listresponseinsightworkflowoutput.js +81 -0
  93. package/models/components/listresponseinsightworkflowoutput.js.map +1 -0
  94. package/models/operations/directoryworkflowdelete.d.ts +29 -0
  95. package/models/operations/directoryworkflowdelete.d.ts.map +1 -0
  96. package/models/operations/directoryworkflowdelete.js +68 -0
  97. package/models/operations/directoryworkflowdelete.js.map +1 -0
  98. package/models/operations/index.d.ts +8 -0
  99. package/models/operations/index.d.ts.map +1 -1
  100. package/models/operations/index.js +8 -0
  101. package/models/operations/index.js.map +1 -1
  102. package/models/operations/insightstoolupdate.d.ts +32 -0
  103. package/models/operations/insightstoolupdate.d.ts.map +1 -0
  104. package/models/operations/insightstoolupdate.js +73 -0
  105. package/models/operations/insightstoolupdate.js.map +1 -0
  106. package/models/operations/insightsworkflowgetbyid.d.ts +29 -0
  107. package/models/operations/insightsworkflowgetbyid.d.ts.map +1 -0
  108. package/models/operations/insightsworkflowgetbyid.js +68 -0
  109. package/models/operations/insightsworkflowgetbyid.js.map +1 -0
  110. package/models/operations/insightsworkflowlist.d.ts +46 -0
  111. package/models/operations/insightsworkflowlist.d.ts.map +1 -0
  112. package/models/operations/insightsworkflowlist.js +101 -0
  113. package/models/operations/insightsworkflowlist.js.map +1 -0
  114. package/models/operations/insightsworkflowupdate.d.ts +32 -0
  115. package/models/operations/insightsworkflowupdate.d.ts.map +1 -0
  116. package/models/operations/insightsworkflowupdate.js +73 -0
  117. package/models/operations/insightsworkflowupdate.js.map +1 -0
  118. package/models/operations/insighttoolgetbyid.d.ts +29 -0
  119. package/models/operations/insighttoolgetbyid.d.ts.map +1 -0
  120. package/models/operations/insighttoolgetbyid.js +68 -0
  121. package/models/operations/insighttoolgetbyid.js.map +1 -0
  122. package/models/operations/insighttoollist.d.ts +46 -0
  123. package/models/operations/insighttoollist.d.ts.map +1 -0
  124. package/models/operations/insighttoollist.js +103 -0
  125. package/models/operations/insighttoollist.js.map +1 -0
  126. package/models/operations/sessionsummarygetbyid.d.ts +29 -0
  127. package/models/operations/sessionsummarygetbyid.d.ts.map +1 -0
  128. package/models/operations/sessionsummarygetbyid.js +68 -0
  129. package/models/operations/sessionsummarygetbyid.js.map +1 -0
  130. package/openapi.json +1255 -35
  131. package/package.json +1 -1
  132. package/sdk/insights.d.ts +10 -0
  133. package/sdk/insights.d.ts.map +1 -0
  134. package/sdk/insights.js +19 -0
  135. package/sdk/insights.js.map +1 -0
  136. package/sdk/sdk.d.ts +3 -0
  137. package/sdk/sdk.d.ts.map +1 -1
  138. package/sdk/sdk.js +4 -0
  139. package/sdk/sdk.js.map +1 -1
  140. package/sdk/sessions.d.ts +3 -0
  141. package/sdk/sessions.d.ts.map +1 -1
  142. package/sdk/sessions.js +4 -0
  143. package/sdk/sessions.js.map +1 -1
  144. package/sdk/summary.d.ts +9 -0
  145. package/sdk/summary.d.ts.map +1 -0
  146. package/sdk/summary.js +19 -0
  147. package/sdk/summary.js.map +1 -0
  148. package/sdk/syllablesdktools.d.ts +41 -0
  149. package/sdk/syllablesdktools.d.ts.map +1 -0
  150. package/sdk/syllablesdktools.js +62 -0
  151. package/sdk/syllablesdktools.js.map +1 -0
  152. package/sdk/workflows.d.ts +41 -0
  153. package/sdk/workflows.d.ts.map +1 -0
  154. package/sdk/workflows.js +62 -0
  155. package/sdk/workflows.js.map +1 -0
  156. package/src/funcs/insightsToolsCreate.ts +135 -0
  157. package/src/funcs/insightsToolsGetById.ts +142 -0
  158. package/src/funcs/insightsToolsInsightToolGetDefinitions.ts +112 -0
  159. package/src/funcs/insightsToolsList.ts +148 -0
  160. package/src/funcs/insightsToolsUpdate.ts +143 -0
  161. package/src/funcs/insightsWorkflowsCreate.ts +135 -0
  162. package/src/funcs/insightsWorkflowsDelete.ts +145 -0
  163. package/src/funcs/insightsWorkflowsGetById.ts +145 -0
  164. package/src/funcs/insightsWorkflowsList.ts +149 -0
  165. package/src/funcs/insightsWorkflowsUpdate.ts +148 -0
  166. package/src/funcs/sessionsSummaryGetById.ts +140 -0
  167. package/src/lib/config.ts +2 -2
  168. package/src/models/components/index.ts +9 -0
  169. package/src/models/components/insighttooldefinition.ts +213 -0
  170. package/src/models/components/insighttoolinput.ts +163 -0
  171. package/src/models/components/insighttooloutput.ts +210 -0
  172. package/src/models/components/insighttoolproperties.ts +37 -0
  173. package/src/models/components/insightworkflowinput.ts +161 -0
  174. package/src/models/components/insightworkflowoutput.ts +206 -0
  175. package/src/models/components/insightworkflowproperties.ts +40 -0
  176. package/src/models/components/listresponseinsighttooloutput.ts +103 -0
  177. package/src/models/components/listresponseinsightworkflowoutput.ts +104 -0
  178. package/src/models/operations/directoryworkflowdelete.ts +77 -0
  179. package/src/models/operations/index.ts +8 -0
  180. package/src/models/operations/insightstoolupdate.ts +82 -0
  181. package/src/models/operations/insightsworkflowgetbyid.ts +77 -0
  182. package/src/models/operations/insightsworkflowlist.ts +130 -0
  183. package/src/models/operations/insightsworkflowupdate.ts +84 -0
  184. package/src/models/operations/insighttoolgetbyid.ts +75 -0
  185. package/src/models/operations/insighttoollist.ts +126 -0
  186. package/src/models/operations/sessionsummarygetbyid.ts +77 -0
  187. package/src/sdk/insights.ts +19 -0
  188. package/src/sdk/sdk.ts +6 -0
  189. package/src/sdk/sessions.ts +6 -0
  190. package/src/sdk/summary.ts +24 -0
  191. package/src/sdk/syllablesdktools.ts +98 -0
  192. package/src/sdk/workflows.ts +100 -0
@@ -0,0 +1,103 @@
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
+ import {
11
+ InsightToolOutput,
12
+ InsightToolOutput$inboundSchema,
13
+ InsightToolOutput$Outbound,
14
+ InsightToolOutput$outboundSchema,
15
+ } from "./insighttooloutput.js";
16
+
17
+ export type ListResponseInsightToolOutput = {
18
+ items: Array<InsightToolOutput>;
19
+ page: number;
20
+ pageSize: number;
21
+ totalPages?: number | null | undefined;
22
+ totalCount?: number | null | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const ListResponseInsightToolOutput$inboundSchema: z.ZodType<
27
+ ListResponseInsightToolOutput,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ items: z.array(InsightToolOutput$inboundSchema),
32
+ page: z.number().int(),
33
+ page_size: z.number().int(),
34
+ total_pages: z.nullable(z.number().int()).optional(),
35
+ total_count: z.nullable(z.number().int()).optional(),
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "page_size": "pageSize",
39
+ "total_pages": "totalPages",
40
+ "total_count": "totalCount",
41
+ });
42
+ });
43
+
44
+ /** @internal */
45
+ export type ListResponseInsightToolOutput$Outbound = {
46
+ items: Array<InsightToolOutput$Outbound>;
47
+ page: number;
48
+ page_size: number;
49
+ total_pages?: number | null | undefined;
50
+ total_count?: number | null | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const ListResponseInsightToolOutput$outboundSchema: z.ZodType<
55
+ ListResponseInsightToolOutput$Outbound,
56
+ z.ZodTypeDef,
57
+ ListResponseInsightToolOutput
58
+ > = z.object({
59
+ items: z.array(InsightToolOutput$outboundSchema),
60
+ page: z.number().int(),
61
+ pageSize: z.number().int(),
62
+ totalPages: z.nullable(z.number().int()).optional(),
63
+ totalCount: z.nullable(z.number().int()).optional(),
64
+ }).transform((v) => {
65
+ return remap$(v, {
66
+ pageSize: "page_size",
67
+ totalPages: "total_pages",
68
+ totalCount: "total_count",
69
+ });
70
+ });
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 ListResponseInsightToolOutput$ {
77
+ /** @deprecated use `ListResponseInsightToolOutput$inboundSchema` instead. */
78
+ export const inboundSchema = ListResponseInsightToolOutput$inboundSchema;
79
+ /** @deprecated use `ListResponseInsightToolOutput$outboundSchema` instead. */
80
+ export const outboundSchema = ListResponseInsightToolOutput$outboundSchema;
81
+ /** @deprecated use `ListResponseInsightToolOutput$Outbound` instead. */
82
+ export type Outbound = ListResponseInsightToolOutput$Outbound;
83
+ }
84
+
85
+ export function listResponseInsightToolOutputToJSON(
86
+ listResponseInsightToolOutput: ListResponseInsightToolOutput,
87
+ ): string {
88
+ return JSON.stringify(
89
+ ListResponseInsightToolOutput$outboundSchema.parse(
90
+ listResponseInsightToolOutput,
91
+ ),
92
+ );
93
+ }
94
+
95
+ export function listResponseInsightToolOutputFromJSON(
96
+ jsonString: string,
97
+ ): SafeParseResult<ListResponseInsightToolOutput, SDKValidationError> {
98
+ return safeParse(
99
+ jsonString,
100
+ (x) => ListResponseInsightToolOutput$inboundSchema.parse(JSON.parse(x)),
101
+ `Failed to parse 'ListResponseInsightToolOutput' from JSON`,
102
+ );
103
+ }
@@ -0,0 +1,104 @@
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
+ import {
11
+ InsightWorkflowOutput,
12
+ InsightWorkflowOutput$inboundSchema,
13
+ InsightWorkflowOutput$Outbound,
14
+ InsightWorkflowOutput$outboundSchema,
15
+ } from "./insightworkflowoutput.js";
16
+
17
+ export type ListResponseInsightWorkflowOutput = {
18
+ items: Array<InsightWorkflowOutput>;
19
+ page: number;
20
+ pageSize: number;
21
+ totalPages?: number | null | undefined;
22
+ totalCount?: number | null | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const ListResponseInsightWorkflowOutput$inboundSchema: z.ZodType<
27
+ ListResponseInsightWorkflowOutput,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ items: z.array(InsightWorkflowOutput$inboundSchema),
32
+ page: z.number().int(),
33
+ page_size: z.number().int(),
34
+ total_pages: z.nullable(z.number().int()).optional(),
35
+ total_count: z.nullable(z.number().int()).optional(),
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "page_size": "pageSize",
39
+ "total_pages": "totalPages",
40
+ "total_count": "totalCount",
41
+ });
42
+ });
43
+
44
+ /** @internal */
45
+ export type ListResponseInsightWorkflowOutput$Outbound = {
46
+ items: Array<InsightWorkflowOutput$Outbound>;
47
+ page: number;
48
+ page_size: number;
49
+ total_pages?: number | null | undefined;
50
+ total_count?: number | null | undefined;
51
+ };
52
+
53
+ /** @internal */
54
+ export const ListResponseInsightWorkflowOutput$outboundSchema: z.ZodType<
55
+ ListResponseInsightWorkflowOutput$Outbound,
56
+ z.ZodTypeDef,
57
+ ListResponseInsightWorkflowOutput
58
+ > = z.object({
59
+ items: z.array(InsightWorkflowOutput$outboundSchema),
60
+ page: z.number().int(),
61
+ pageSize: z.number().int(),
62
+ totalPages: z.nullable(z.number().int()).optional(),
63
+ totalCount: z.nullable(z.number().int()).optional(),
64
+ }).transform((v) => {
65
+ return remap$(v, {
66
+ pageSize: "page_size",
67
+ totalPages: "total_pages",
68
+ totalCount: "total_count",
69
+ });
70
+ });
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 ListResponseInsightWorkflowOutput$ {
77
+ /** @deprecated use `ListResponseInsightWorkflowOutput$inboundSchema` instead. */
78
+ export const inboundSchema = ListResponseInsightWorkflowOutput$inboundSchema;
79
+ /** @deprecated use `ListResponseInsightWorkflowOutput$outboundSchema` instead. */
80
+ export const outboundSchema =
81
+ ListResponseInsightWorkflowOutput$outboundSchema;
82
+ /** @deprecated use `ListResponseInsightWorkflowOutput$Outbound` instead. */
83
+ export type Outbound = ListResponseInsightWorkflowOutput$Outbound;
84
+ }
85
+
86
+ export function listResponseInsightWorkflowOutputToJSON(
87
+ listResponseInsightWorkflowOutput: ListResponseInsightWorkflowOutput,
88
+ ): string {
89
+ return JSON.stringify(
90
+ ListResponseInsightWorkflowOutput$outboundSchema.parse(
91
+ listResponseInsightWorkflowOutput,
92
+ ),
93
+ );
94
+ }
95
+
96
+ export function listResponseInsightWorkflowOutputFromJSON(
97
+ jsonString: string,
98
+ ): SafeParseResult<ListResponseInsightWorkflowOutput, SDKValidationError> {
99
+ return safeParse(
100
+ jsonString,
101
+ (x) => ListResponseInsightWorkflowOutput$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'ListResponseInsightWorkflowOutput' from JSON`,
103
+ );
104
+ }
@@ -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 DirectoryWorkflowDeleteRequest = {
12
+ workflowId: number;
13
+ };
14
+
15
+ /** @internal */
16
+ export const DirectoryWorkflowDeleteRequest$inboundSchema: z.ZodType<
17
+ DirectoryWorkflowDeleteRequest,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ workflow_id: z.number().int(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "workflow_id": "workflowId",
25
+ });
26
+ });
27
+
28
+ /** @internal */
29
+ export type DirectoryWorkflowDeleteRequest$Outbound = {
30
+ workflow_id: number;
31
+ };
32
+
33
+ /** @internal */
34
+ export const DirectoryWorkflowDeleteRequest$outboundSchema: z.ZodType<
35
+ DirectoryWorkflowDeleteRequest$Outbound,
36
+ z.ZodTypeDef,
37
+ DirectoryWorkflowDeleteRequest
38
+ > = z.object({
39
+ workflowId: z.number().int(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ workflowId: "workflow_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 DirectoryWorkflowDeleteRequest$ {
51
+ /** @deprecated use `DirectoryWorkflowDeleteRequest$inboundSchema` instead. */
52
+ export const inboundSchema = DirectoryWorkflowDeleteRequest$inboundSchema;
53
+ /** @deprecated use `DirectoryWorkflowDeleteRequest$outboundSchema` instead. */
54
+ export const outboundSchema = DirectoryWorkflowDeleteRequest$outboundSchema;
55
+ /** @deprecated use `DirectoryWorkflowDeleteRequest$Outbound` instead. */
56
+ export type Outbound = DirectoryWorkflowDeleteRequest$Outbound;
57
+ }
58
+
59
+ export function directoryWorkflowDeleteRequestToJSON(
60
+ directoryWorkflowDeleteRequest: DirectoryWorkflowDeleteRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ DirectoryWorkflowDeleteRequest$outboundSchema.parse(
64
+ directoryWorkflowDeleteRequest,
65
+ ),
66
+ );
67
+ }
68
+
69
+ export function directoryWorkflowDeleteRequestFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<DirectoryWorkflowDeleteRequest, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => DirectoryWorkflowDeleteRequest$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'DirectoryWorkflowDeleteRequest' from JSON`,
76
+ );
77
+ }
@@ -19,8 +19,15 @@ export * from "./custommessageslist.js";
19
19
  export * from "./datasourcesdelete.js";
20
20
  export * from "./datasourcesgetbyid.js";
21
21
  export * from "./datasourceslist.js";
22
+ export * from "./directoryworkflowdelete.js";
22
23
  export * from "./eventslist.js";
23
24
  export * from "./generatesessionrecordingurls.js";
25
+ export * from "./insightstoolupdate.js";
26
+ export * from "./insightsworkflowgetbyid.js";
27
+ export * from "./insightsworkflowlist.js";
28
+ export * from "./insightsworkflowupdate.js";
29
+ export * from "./insighttoolgetbyid.js";
30
+ export * from "./insighttoollist.js";
24
31
  export * from "./postgetdashboard.js";
25
32
  export * from "./postlistdashboard.js";
26
33
  export * from "./promptsdelete.js";
@@ -35,6 +42,7 @@ export * from "./sessionlabelgetbyid.js";
35
42
  export * from "./sessionlabelslist.js";
36
43
  export * from "./sessionrecordingstream.js";
37
44
  export * from "./sessionslist.js";
45
+ export * from "./sessionsummarygetbyid.js";
38
46
  export * from "./sessiontranscriptgetbyid.js";
39
47
  export * from "./tooldelete.js";
40
48
  export * from "./toolgetbyname.js";
@@ -0,0 +1,82 @@
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 InsightsToolUpdateRequest = {
13
+ toolId: number;
14
+ insightToolInput: components.InsightToolInput;
15
+ };
16
+
17
+ /** @internal */
18
+ export const InsightsToolUpdateRequest$inboundSchema: z.ZodType<
19
+ InsightsToolUpdateRequest,
20
+ z.ZodTypeDef,
21
+ unknown
22
+ > = z.object({
23
+ tool_id: z.number().int(),
24
+ InsightToolInput: components.InsightToolInput$inboundSchema,
25
+ }).transform((v) => {
26
+ return remap$(v, {
27
+ "tool_id": "toolId",
28
+ "InsightToolInput": "insightToolInput",
29
+ });
30
+ });
31
+
32
+ /** @internal */
33
+ export type InsightsToolUpdateRequest$Outbound = {
34
+ tool_id: number;
35
+ InsightToolInput: components.InsightToolInput$Outbound;
36
+ };
37
+
38
+ /** @internal */
39
+ export const InsightsToolUpdateRequest$outboundSchema: z.ZodType<
40
+ InsightsToolUpdateRequest$Outbound,
41
+ z.ZodTypeDef,
42
+ InsightsToolUpdateRequest
43
+ > = z.object({
44
+ toolId: z.number().int(),
45
+ insightToolInput: components.InsightToolInput$outboundSchema,
46
+ }).transform((v) => {
47
+ return remap$(v, {
48
+ toolId: "tool_id",
49
+ insightToolInput: "InsightToolInput",
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 InsightsToolUpdateRequest$ {
58
+ /** @deprecated use `InsightsToolUpdateRequest$inboundSchema` instead. */
59
+ export const inboundSchema = InsightsToolUpdateRequest$inboundSchema;
60
+ /** @deprecated use `InsightsToolUpdateRequest$outboundSchema` instead. */
61
+ export const outboundSchema = InsightsToolUpdateRequest$outboundSchema;
62
+ /** @deprecated use `InsightsToolUpdateRequest$Outbound` instead. */
63
+ export type Outbound = InsightsToolUpdateRequest$Outbound;
64
+ }
65
+
66
+ export function insightsToolUpdateRequestToJSON(
67
+ insightsToolUpdateRequest: InsightsToolUpdateRequest,
68
+ ): string {
69
+ return JSON.stringify(
70
+ InsightsToolUpdateRequest$outboundSchema.parse(insightsToolUpdateRequest),
71
+ );
72
+ }
73
+
74
+ export function insightsToolUpdateRequestFromJSON(
75
+ jsonString: string,
76
+ ): SafeParseResult<InsightsToolUpdateRequest, SDKValidationError> {
77
+ return safeParse(
78
+ jsonString,
79
+ (x) => InsightsToolUpdateRequest$inboundSchema.parse(JSON.parse(x)),
80
+ `Failed to parse 'InsightsToolUpdateRequest' from JSON`,
81
+ );
82
+ }
@@ -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 InsightsWorkflowGetByIdRequest = {
12
+ workflowId: number;
13
+ };
14
+
15
+ /** @internal */
16
+ export const InsightsWorkflowGetByIdRequest$inboundSchema: z.ZodType<
17
+ InsightsWorkflowGetByIdRequest,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ workflow_id: z.number().int(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "workflow_id": "workflowId",
25
+ });
26
+ });
27
+
28
+ /** @internal */
29
+ export type InsightsWorkflowGetByIdRequest$Outbound = {
30
+ workflow_id: number;
31
+ };
32
+
33
+ /** @internal */
34
+ export const InsightsWorkflowGetByIdRequest$outboundSchema: z.ZodType<
35
+ InsightsWorkflowGetByIdRequest$Outbound,
36
+ z.ZodTypeDef,
37
+ InsightsWorkflowGetByIdRequest
38
+ > = z.object({
39
+ workflowId: z.number().int(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ workflowId: "workflow_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 InsightsWorkflowGetByIdRequest$ {
51
+ /** @deprecated use `InsightsWorkflowGetByIdRequest$inboundSchema` instead. */
52
+ export const inboundSchema = InsightsWorkflowGetByIdRequest$inboundSchema;
53
+ /** @deprecated use `InsightsWorkflowGetByIdRequest$outboundSchema` instead. */
54
+ export const outboundSchema = InsightsWorkflowGetByIdRequest$outboundSchema;
55
+ /** @deprecated use `InsightsWorkflowGetByIdRequest$Outbound` instead. */
56
+ export type Outbound = InsightsWorkflowGetByIdRequest$Outbound;
57
+ }
58
+
59
+ export function insightsWorkflowGetByIdRequestToJSON(
60
+ insightsWorkflowGetByIdRequest: InsightsWorkflowGetByIdRequest,
61
+ ): string {
62
+ return JSON.stringify(
63
+ InsightsWorkflowGetByIdRequest$outboundSchema.parse(
64
+ insightsWorkflowGetByIdRequest,
65
+ ),
66
+ );
67
+ }
68
+
69
+ export function insightsWorkflowGetByIdRequestFromJSON(
70
+ jsonString: string,
71
+ ): SafeParseResult<InsightsWorkflowGetByIdRequest, SDKValidationError> {
72
+ return safeParse(
73
+ jsonString,
74
+ (x) => InsightsWorkflowGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
75
+ `Failed to parse 'InsightsWorkflowGetByIdRequest' from JSON`,
76
+ );
77
+ }
@@ -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
+ }