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.
- 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 +5 -2
- package/models/components/datasourcecreaterequest.d.ts +1 -1
- package/models/components/datasourcedetailresponse.d.ts +1 -1
- package/models/components/datasourcemetadataresponse.d.ts +1 -1
- package/models/components/datasourceupdaterequest.d.ts +1 -1
- package/models/components/index.d.ts +10 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -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/components/toolagentinfo.d.ts +40 -0
- package/models/components/toolagentinfo.d.ts.map +1 -0
- package/models/components/toolagentinfo.js +61 -0
- package/models/components/toolagentinfo.js.map +1 -0
- package/models/components/tooldetailresponse.d.ts +6 -0
- package/models/components/tooldetailresponse.d.ts.map +1 -1
- package/models/components/tooldetailresponse.js +5 -0
- package/models/components/tooldetailresponse.js.map +1 -1
- package/models/components/toolresponse.d.ts +6 -0
- package/models/components/toolresponse.d.ts.map +1 -1
- package/models/components/toolresponse.js +5 -0
- package/models/components/toolresponse.js.map +1 -1
- 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 +1315 -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/datasourcecreaterequest.ts +1 -1
- package/src/models/components/datasourcedetailresponse.ts +1 -1
- package/src/models/components/datasourcemetadataresponse.ts +1 -1
- package/src/models/components/datasourceupdaterequest.ts +1 -1
- package/src/models/components/index.ts +10 -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/components/toolagentinfo.ts +75 -0
- package/src/models/components/tooldetailresponse.ts +15 -0
- package/src/models/components/toolresponse.ts +15 -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,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,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Information about an agent linked to a tool via a prompt.
|
|
12
|
+
*/
|
|
13
|
+
export type ToolAgentInfo = {
|
|
14
|
+
/**
|
|
15
|
+
* The ID of the agent
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the agent
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ToolAgentInfo$inboundSchema: z.ZodType<
|
|
26
|
+
ToolAgentInfo,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
id: z.number().int(),
|
|
31
|
+
name: z.string(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type ToolAgentInfo$Outbound = {
|
|
36
|
+
id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ToolAgentInfo$outboundSchema: z.ZodType<
|
|
42
|
+
ToolAgentInfo$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
ToolAgentInfo
|
|
45
|
+
> = z.object({
|
|
46
|
+
id: z.number().int(),
|
|
47
|
+
name: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace ToolAgentInfo$ {
|
|
55
|
+
/** @deprecated use `ToolAgentInfo$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = ToolAgentInfo$inboundSchema;
|
|
57
|
+
/** @deprecated use `ToolAgentInfo$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = ToolAgentInfo$outboundSchema;
|
|
59
|
+
/** @deprecated use `ToolAgentInfo$Outbound` instead. */
|
|
60
|
+
export type Outbound = ToolAgentInfo$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function toolAgentInfoToJSON(toolAgentInfo: ToolAgentInfo): string {
|
|
64
|
+
return JSON.stringify(ToolAgentInfo$outboundSchema.parse(toolAgentInfo));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function toolAgentInfoFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<ToolAgentInfo, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => ToolAgentInfo$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'ToolAgentInfo' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ToolAgentInfo,
|
|
12
|
+
ToolAgentInfo$inboundSchema,
|
|
13
|
+
ToolAgentInfo$Outbound,
|
|
14
|
+
ToolAgentInfo$outboundSchema,
|
|
15
|
+
} from "./toolagentinfo.js";
|
|
10
16
|
import {
|
|
11
17
|
ToolDefinition,
|
|
12
18
|
ToolDefinition$inboundSchema,
|
|
@@ -56,6 +62,10 @@ export type ToolDetailResponse = {
|
|
|
56
62
|
* IDs and names of the prompts linked to the tool
|
|
57
63
|
*/
|
|
58
64
|
promptsInfo?: Array<ToolPromptInfo> | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* IDs and names of the agents linked to the tool via a prompt
|
|
67
|
+
*/
|
|
68
|
+
agentsInfo?: Array<ToolAgentInfo> | null | undefined;
|
|
59
69
|
/**
|
|
60
70
|
* The timestamp of the most recent update to the service
|
|
61
71
|
*/
|
|
@@ -83,6 +93,7 @@ export const ToolDetailResponse$inboundSchema: z.ZodType<
|
|
|
83
93
|
last_updated_comments: z.nullable(z.string()).optional(),
|
|
84
94
|
service_name: z.nullable(z.string()).optional(),
|
|
85
95
|
prompts_info: z.nullable(z.array(ToolPromptInfo$inboundSchema)).optional(),
|
|
96
|
+
agents_info: z.nullable(z.array(ToolAgentInfo$inboundSchema)).optional(),
|
|
86
97
|
last_updated: z.string().datetime({ offset: true }).transform(v =>
|
|
87
98
|
new Date(v)
|
|
88
99
|
),
|
|
@@ -94,6 +105,7 @@ export const ToolDetailResponse$inboundSchema: z.ZodType<
|
|
|
94
105
|
"last_updated_comments": "lastUpdatedComments",
|
|
95
106
|
"service_name": "serviceName",
|
|
96
107
|
"prompts_info": "promptsInfo",
|
|
108
|
+
"agents_info": "agentsInfo",
|
|
97
109
|
"last_updated": "lastUpdated",
|
|
98
110
|
"last_updated_by": "lastUpdatedBy",
|
|
99
111
|
});
|
|
@@ -108,6 +120,7 @@ export type ToolDetailResponse$Outbound = {
|
|
|
108
120
|
last_updated_comments?: string | null | undefined;
|
|
109
121
|
service_name?: string | null | undefined;
|
|
110
122
|
prompts_info?: Array<ToolPromptInfo$Outbound> | null | undefined;
|
|
123
|
+
agents_info?: Array<ToolAgentInfo$Outbound> | null | undefined;
|
|
111
124
|
last_updated: string;
|
|
112
125
|
last_updated_by: string;
|
|
113
126
|
fields: Array<string>;
|
|
@@ -126,6 +139,7 @@ export const ToolDetailResponse$outboundSchema: z.ZodType<
|
|
|
126
139
|
lastUpdatedComments: z.nullable(z.string()).optional(),
|
|
127
140
|
serviceName: z.nullable(z.string()).optional(),
|
|
128
141
|
promptsInfo: z.nullable(z.array(ToolPromptInfo$outboundSchema)).optional(),
|
|
142
|
+
agentsInfo: z.nullable(z.array(ToolAgentInfo$outboundSchema)).optional(),
|
|
129
143
|
lastUpdated: z.date().transform(v => v.toISOString()),
|
|
130
144
|
lastUpdatedBy: z.string(),
|
|
131
145
|
fields: z.array(z.string()),
|
|
@@ -135,6 +149,7 @@ export const ToolDetailResponse$outboundSchema: z.ZodType<
|
|
|
135
149
|
lastUpdatedComments: "last_updated_comments",
|
|
136
150
|
serviceName: "service_name",
|
|
137
151
|
promptsInfo: "prompts_info",
|
|
152
|
+
agentsInfo: "agents_info",
|
|
138
153
|
lastUpdated: "last_updated",
|
|
139
154
|
lastUpdatedBy: "last_updated_by",
|
|
140
155
|
});
|
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ToolAgentInfo,
|
|
12
|
+
ToolAgentInfo$inboundSchema,
|
|
13
|
+
ToolAgentInfo$Outbound,
|
|
14
|
+
ToolAgentInfo$outboundSchema,
|
|
15
|
+
} from "./toolagentinfo.js";
|
|
10
16
|
import {
|
|
11
17
|
ToolDefinition,
|
|
12
18
|
ToolDefinition$inboundSchema,
|
|
@@ -56,6 +62,10 @@ export type ToolResponse = {
|
|
|
56
62
|
* IDs and names of the prompts linked to the tool
|
|
57
63
|
*/
|
|
58
64
|
promptsInfo?: Array<ToolPromptInfo> | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* IDs and names of the agents linked to the tool via a prompt
|
|
67
|
+
*/
|
|
68
|
+
agentsInfo?: Array<ToolAgentInfo> | null | undefined;
|
|
59
69
|
/**
|
|
60
70
|
* The timestamp of the most recent update to the service
|
|
61
71
|
*/
|
|
@@ -79,6 +89,7 @@ export const ToolResponse$inboundSchema: z.ZodType<
|
|
|
79
89
|
last_updated_comments: z.nullable(z.string()).optional(),
|
|
80
90
|
service_name: z.nullable(z.string()).optional(),
|
|
81
91
|
prompts_info: z.nullable(z.array(ToolPromptInfo$inboundSchema)).optional(),
|
|
92
|
+
agents_info: z.nullable(z.array(ToolAgentInfo$inboundSchema)).optional(),
|
|
82
93
|
last_updated: z.string().datetime({ offset: true }).transform(v =>
|
|
83
94
|
new Date(v)
|
|
84
95
|
),
|
|
@@ -89,6 +100,7 @@ export const ToolResponse$inboundSchema: z.ZodType<
|
|
|
89
100
|
"last_updated_comments": "lastUpdatedComments",
|
|
90
101
|
"service_name": "serviceName",
|
|
91
102
|
"prompts_info": "promptsInfo",
|
|
103
|
+
"agents_info": "agentsInfo",
|
|
92
104
|
"last_updated": "lastUpdated",
|
|
93
105
|
"last_updated_by": "lastUpdatedBy",
|
|
94
106
|
});
|
|
@@ -103,6 +115,7 @@ export type ToolResponse$Outbound = {
|
|
|
103
115
|
last_updated_comments?: string | null | undefined;
|
|
104
116
|
service_name?: string | null | undefined;
|
|
105
117
|
prompts_info?: Array<ToolPromptInfo$Outbound> | null | undefined;
|
|
118
|
+
agents_info?: Array<ToolAgentInfo$Outbound> | null | undefined;
|
|
106
119
|
last_updated: string;
|
|
107
120
|
last_updated_by: string;
|
|
108
121
|
};
|
|
@@ -120,6 +133,7 @@ export const ToolResponse$outboundSchema: z.ZodType<
|
|
|
120
133
|
lastUpdatedComments: z.nullable(z.string()).optional(),
|
|
121
134
|
serviceName: z.nullable(z.string()).optional(),
|
|
122
135
|
promptsInfo: z.nullable(z.array(ToolPromptInfo$outboundSchema)).optional(),
|
|
136
|
+
agentsInfo: z.nullable(z.array(ToolAgentInfo$outboundSchema)).optional(),
|
|
123
137
|
lastUpdated: z.date().transform(v => v.toISOString()),
|
|
124
138
|
lastUpdatedBy: z.string(),
|
|
125
139
|
}).transform((v) => {
|
|
@@ -128,6 +142,7 @@ export const ToolResponse$outboundSchema: z.ZodType<
|
|
|
128
142
|
lastUpdatedComments: "last_updated_comments",
|
|
129
143
|
serviceName: "service_name",
|
|
130
144
|
promptsInfo: "prompts_info",
|
|
145
|
+
agentsInfo: "agents_info",
|
|
131
146
|
lastUpdated: "last_updated",
|
|
132
147
|
lastUpdatedBy: "last_updated_by",
|
|
133
148
|
});
|
|
@@ -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
|
+
}
|