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.
- package/README.md +34 -0
- package/docs/sdks/insights/README.md +6 -0
- package/docs/sdks/summary/README.md +85 -0
- package/docs/sdks/syllablesdktools/README.md +411 -0
- package/docs/sdks/workflows/README.md +429 -0
- package/funcs/insightsToolsCreate.d.ts +16 -0
- package/funcs/insightsToolsCreate.d.ts.map +1 -0
- package/funcs/insightsToolsCreate.js +102 -0
- package/funcs/insightsToolsCreate.js.map +1 -0
- package/funcs/insightsToolsGetById.d.ts +17 -0
- package/funcs/insightsToolsGetById.d.ts.map +1 -0
- package/funcs/insightsToolsGetById.js +108 -0
- package/funcs/insightsToolsGetById.js.map +1 -0
- package/funcs/insightsToolsInsightToolGetDefinitions.d.ts +15 -0
- package/funcs/insightsToolsInsightToolGetDefinitions.d.ts.map +1 -0
- package/funcs/insightsToolsInsightToolGetDefinitions.js +89 -0
- package/funcs/insightsToolsInsightToolGetDefinitions.js.map +1 -0
- package/funcs/insightsToolsList.d.ts +17 -0
- package/funcs/insightsToolsList.d.ts.map +1 -0
- package/funcs/insightsToolsList.js +114 -0
- package/funcs/insightsToolsList.js.map +1 -0
- package/funcs/insightsToolsUpdate.d.ts +17 -0
- package/funcs/insightsToolsUpdate.d.ts.map +1 -0
- package/funcs/insightsToolsUpdate.js +109 -0
- package/funcs/insightsToolsUpdate.js.map +1 -0
- package/funcs/insightsWorkflowsCreate.d.ts +16 -0
- package/funcs/insightsWorkflowsCreate.d.ts.map +1 -0
- package/funcs/insightsWorkflowsCreate.js +102 -0
- package/funcs/insightsWorkflowsCreate.js.map +1 -0
- package/funcs/insightsWorkflowsDelete.d.ts +16 -0
- package/funcs/insightsWorkflowsDelete.d.ts.map +1 -0
- package/funcs/insightsWorkflowsDelete.js +108 -0
- package/funcs/insightsWorkflowsDelete.js.map +1 -0
- package/funcs/insightsWorkflowsGetById.d.ts +17 -0
- package/funcs/insightsWorkflowsGetById.d.ts.map +1 -0
- package/funcs/insightsWorkflowsGetById.js +108 -0
- package/funcs/insightsWorkflowsGetById.js.map +1 -0
- package/funcs/insightsWorkflowsList.d.ts +17 -0
- package/funcs/insightsWorkflowsList.d.ts.map +1 -0
- package/funcs/insightsWorkflowsList.js +114 -0
- package/funcs/insightsWorkflowsList.js.map +1 -0
- package/funcs/insightsWorkflowsUpdate.d.ts +17 -0
- package/funcs/insightsWorkflowsUpdate.d.ts.map +1 -0
- package/funcs/insightsWorkflowsUpdate.js +111 -0
- package/funcs/insightsWorkflowsUpdate.js.map +1 -0
- package/funcs/sessionsSummaryGetById.d.ts +13 -0
- package/funcs/sessionsSummaryGetById.d.ts.map +1 -0
- package/funcs/sessionsSummaryGetById.js +105 -0
- package/funcs/sessionsSummaryGetById.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mintlify/mint.json +4 -2
- package/models/components/index.d.ts +9 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +9 -0
- package/models/components/index.js.map +1 -1
- package/models/components/insighttooldefinition.d.ts +105 -0
- package/models/components/insighttooldefinition.d.ts.map +1 -0
- package/models/components/insighttooldefinition.js +126 -0
- package/models/components/insighttooldefinition.js.map +1 -0
- package/models/components/insighttoolinput.d.ts +76 -0
- package/models/components/insighttoolinput.d.ts.map +1 -0
- package/models/components/insighttoolinput.js +101 -0
- package/models/components/insighttoolinput.js.map +1 -0
- package/models/components/insighttooloutput.d.ts +102 -0
- package/models/components/insighttooloutput.d.ts.map +1 -0
- package/models/components/insighttooloutput.js +124 -0
- package/models/components/insighttooloutput.js.map +1 -0
- package/models/components/insighttoolproperties.d.ts +40 -0
- package/models/components/insighttoolproperties.d.ts.map +1 -0
- package/models/components/insighttoolproperties.js +54 -0
- package/models/components/insighttoolproperties.js.map +1 -0
- package/models/components/insightworkflowinput.d.ts +76 -0
- package/models/components/insightworkflowinput.d.ts.map +1 -0
- package/models/components/insightworkflowinput.js +99 -0
- package/models/components/insightworkflowinput.js.map +1 -0
- package/models/components/insightworkflowoutput.d.ts +102 -0
- package/models/components/insightworkflowoutput.d.ts.map +1 -0
- package/models/components/insightworkflowoutput.js +120 -0
- package/models/components/insightworkflowoutput.js.map +1 -0
- package/models/components/insightworkflowproperties.d.ts +43 -0
- package/models/components/insightworkflowproperties.d.ts.map +1 -0
- package/models/components/insightworkflowproperties.js +55 -0
- package/models/components/insightworkflowproperties.js.map +1 -0
- package/models/components/listresponseinsighttooloutput.d.ts +38 -0
- package/models/components/listresponseinsighttooloutput.d.ts.map +1 -0
- package/models/components/listresponseinsighttooloutput.js +81 -0
- package/models/components/listresponseinsighttooloutput.js.map +1 -0
- package/models/components/listresponseinsightworkflowoutput.d.ts +38 -0
- package/models/components/listresponseinsightworkflowoutput.d.ts.map +1 -0
- package/models/components/listresponseinsightworkflowoutput.js +81 -0
- package/models/components/listresponseinsightworkflowoutput.js.map +1 -0
- package/models/operations/directoryworkflowdelete.d.ts +29 -0
- package/models/operations/directoryworkflowdelete.d.ts.map +1 -0
- package/models/operations/directoryworkflowdelete.js +68 -0
- package/models/operations/directoryworkflowdelete.js.map +1 -0
- package/models/operations/index.d.ts +8 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +8 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/insightstoolupdate.d.ts +32 -0
- package/models/operations/insightstoolupdate.d.ts.map +1 -0
- package/models/operations/insightstoolupdate.js +73 -0
- package/models/operations/insightstoolupdate.js.map +1 -0
- package/models/operations/insightsworkflowgetbyid.d.ts +29 -0
- package/models/operations/insightsworkflowgetbyid.d.ts.map +1 -0
- package/models/operations/insightsworkflowgetbyid.js +68 -0
- package/models/operations/insightsworkflowgetbyid.js.map +1 -0
- package/models/operations/insightsworkflowlist.d.ts +46 -0
- package/models/operations/insightsworkflowlist.d.ts.map +1 -0
- package/models/operations/insightsworkflowlist.js +101 -0
- package/models/operations/insightsworkflowlist.js.map +1 -0
- package/models/operations/insightsworkflowupdate.d.ts +32 -0
- package/models/operations/insightsworkflowupdate.d.ts.map +1 -0
- package/models/operations/insightsworkflowupdate.js +73 -0
- package/models/operations/insightsworkflowupdate.js.map +1 -0
- package/models/operations/insighttoolgetbyid.d.ts +29 -0
- package/models/operations/insighttoolgetbyid.d.ts.map +1 -0
- package/models/operations/insighttoolgetbyid.js +68 -0
- package/models/operations/insighttoolgetbyid.js.map +1 -0
- package/models/operations/insighttoollist.d.ts +46 -0
- package/models/operations/insighttoollist.d.ts.map +1 -0
- package/models/operations/insighttoollist.js +103 -0
- package/models/operations/insighttoollist.js.map +1 -0
- package/models/operations/sessionsummarygetbyid.d.ts +29 -0
- package/models/operations/sessionsummarygetbyid.d.ts.map +1 -0
- package/models/operations/sessionsummarygetbyid.js +68 -0
- package/models/operations/sessionsummarygetbyid.js.map +1 -0
- package/openapi.json +1255 -35
- package/package.json +1 -1
- package/sdk/insights.d.ts +10 -0
- package/sdk/insights.d.ts.map +1 -0
- package/sdk/insights.js +19 -0
- package/sdk/insights.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.d.ts +3 -0
- package/sdk/sessions.d.ts.map +1 -1
- package/sdk/sessions.js +4 -0
- package/sdk/sessions.js.map +1 -1
- package/sdk/summary.d.ts +9 -0
- package/sdk/summary.d.ts.map +1 -0
- package/sdk/summary.js +19 -0
- package/sdk/summary.js.map +1 -0
- package/sdk/syllablesdktools.d.ts +41 -0
- package/sdk/syllablesdktools.d.ts.map +1 -0
- package/sdk/syllablesdktools.js +62 -0
- package/sdk/syllablesdktools.js.map +1 -0
- package/sdk/workflows.d.ts +41 -0
- package/sdk/workflows.d.ts.map +1 -0
- package/sdk/workflows.js +62 -0
- package/sdk/workflows.js.map +1 -0
- package/src/funcs/insightsToolsCreate.ts +135 -0
- package/src/funcs/insightsToolsGetById.ts +142 -0
- package/src/funcs/insightsToolsInsightToolGetDefinitions.ts +112 -0
- package/src/funcs/insightsToolsList.ts +148 -0
- package/src/funcs/insightsToolsUpdate.ts +143 -0
- package/src/funcs/insightsWorkflowsCreate.ts +135 -0
- package/src/funcs/insightsWorkflowsDelete.ts +145 -0
- package/src/funcs/insightsWorkflowsGetById.ts +145 -0
- package/src/funcs/insightsWorkflowsList.ts +149 -0
- package/src/funcs/insightsWorkflowsUpdate.ts +148 -0
- package/src/funcs/sessionsSummaryGetById.ts +140 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +9 -0
- package/src/models/components/insighttooldefinition.ts +213 -0
- package/src/models/components/insighttoolinput.ts +163 -0
- package/src/models/components/insighttooloutput.ts +210 -0
- package/src/models/components/insighttoolproperties.ts +37 -0
- package/src/models/components/insightworkflowinput.ts +161 -0
- package/src/models/components/insightworkflowoutput.ts +206 -0
- package/src/models/components/insightworkflowproperties.ts +40 -0
- package/src/models/components/listresponseinsighttooloutput.ts +103 -0
- package/src/models/components/listresponseinsightworkflowoutput.ts +104 -0
- package/src/models/operations/directoryworkflowdelete.ts +77 -0
- package/src/models/operations/index.ts +8 -0
- package/src/models/operations/insightstoolupdate.ts +82 -0
- package/src/models/operations/insightsworkflowgetbyid.ts +77 -0
- package/src/models/operations/insightsworkflowlist.ts +130 -0
- package/src/models/operations/insightsworkflowupdate.ts +84 -0
- package/src/models/operations/insighttoolgetbyid.ts +75 -0
- package/src/models/operations/insighttoollist.ts +126 -0
- package/src/models/operations/sessionsummarygetbyid.ts +77 -0
- package/src/sdk/insights.ts +19 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/sessions.ts +6 -0
- package/src/sdk/summary.ts +24 -0
- package/src/sdk/syllablesdktools.ts +98 -0
- package/src/sdk/workflows.ts +100 -0
|
@@ -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));
|
package/src/sdk/sessions.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { insightsWorkflowsCreate } from "../funcs/insightsWorkflowsCreate.js";
|
|
6
|
+
import { insightsWorkflowsDelete } from "../funcs/insightsWorkflowsDelete.js";
|
|
7
|
+
import { insightsWorkflowsGetById } from "../funcs/insightsWorkflowsGetById.js";
|
|
8
|
+
import { insightsWorkflowsList } from "../funcs/insightsWorkflowsList.js";
|
|
9
|
+
import { insightsWorkflowsUpdate } from "../funcs/insightsWorkflowsUpdate.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 Workflows extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* Insight Workflow List
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* List the existing insight_workflows
|
|
21
|
+
*/
|
|
22
|
+
async list(
|
|
23
|
+
request: operations.InsightsWorkflowListRequest,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<components.ListResponseInsightWorkflowOutput> {
|
|
26
|
+
return unwrapAsync(insightsWorkflowsList(
|
|
27
|
+
this,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create Insight Workflow
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Create a new tool in the insights
|
|
38
|
+
*/
|
|
39
|
+
async create(
|
|
40
|
+
request: components.InsightWorkflowInput,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<components.InsightWorkflowOutput> {
|
|
43
|
+
return unwrapAsync(insightsWorkflowsCreate(
|
|
44
|
+
this,
|
|
45
|
+
request,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Get Insight Workflow By Id
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Get a InsightWorkflow by ID.
|
|
55
|
+
*/
|
|
56
|
+
async getById(
|
|
57
|
+
request: operations.InsightsWorkflowGetByIdRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<components.InsightWorkflowOutput> {
|
|
60
|
+
return unwrapAsync(insightsWorkflowsGetById(
|
|
61
|
+
this,
|
|
62
|
+
request,
|
|
63
|
+
options,
|
|
64
|
+
));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Update Insights Workflow
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* Update a InsightWorkflow.
|
|
72
|
+
*/
|
|
73
|
+
async update(
|
|
74
|
+
request: operations.InsightsWorkflowUpdateRequest,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<components.InsightWorkflowOutput> {
|
|
77
|
+
return unwrapAsync(insightsWorkflowsUpdate(
|
|
78
|
+
this,
|
|
79
|
+
request,
|
|
80
|
+
options,
|
|
81
|
+
));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Delete Insights Workflow
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Delete a Insights workflow.
|
|
89
|
+
*/
|
|
90
|
+
async delete(
|
|
91
|
+
request: operations.DirectoryWorkflowDeleteRequest,
|
|
92
|
+
options?: RequestOptions,
|
|
93
|
+
): Promise<any> {
|
|
94
|
+
return unwrapAsync(insightsWorkflowsDelete(
|
|
95
|
+
this,
|
|
96
|
+
request,
|
|
97
|
+
options,
|
|
98
|
+
));
|
|
99
|
+
}
|
|
100
|
+
}
|