syllable-sdk 0.1.0-alpha.34 → 0.1.0-alpha.36
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 +23 -0
- package/docs/sdks/agents/README.md +18 -6
- package/docs/sdks/custommessages/README.md +160 -2
- package/docs/sdks/datasources/README.md +417 -0
- package/docs/sdks/prompts/README.md +0 -8
- package/docs/sdks/sessionlabels/README.md +6 -0
- package/docs/sdks/targets/README.md +10 -18
- package/docs/sdks/tools/README.md +6 -6
- package/docs/sdks/v1/README.md +408 -0
- package/funcs/agentsCreate.js +1 -1
- package/funcs/agentsCreate.js.map +1 -1
- package/funcs/agentsDelete.js +1 -1
- package/funcs/agentsDelete.js.map +1 -1
- package/funcs/agentsUpdate.js +1 -1
- package/funcs/agentsUpdate.js.map +1 -1
- package/funcs/dataSourcesCreate.d.ts +16 -0
- package/funcs/dataSourcesCreate.d.ts.map +1 -0
- package/funcs/dataSourcesCreate.js +101 -0
- package/funcs/dataSourcesCreate.js.map +1 -0
- package/funcs/dataSourcesDataSourcesDeleteByName.d.ts +16 -0
- package/funcs/dataSourcesDataSourcesDeleteByName.d.ts.map +1 -0
- package/funcs/dataSourcesDataSourcesDeleteByName.js +111 -0
- package/funcs/dataSourcesDataSourcesDeleteByName.js.map +1 -0
- package/funcs/dataSourcesGetByName.d.ts +17 -0
- package/funcs/dataSourcesGetByName.d.ts.map +1 -0
- package/funcs/dataSourcesGetByName.js +107 -0
- package/funcs/dataSourcesGetByName.js.map +1 -0
- package/funcs/dataSourcesList.d.ts +17 -0
- package/funcs/dataSourcesList.d.ts.map +1 -0
- package/funcs/dataSourcesList.js +113 -0
- package/funcs/dataSourcesList.js.map +1 -0
- package/funcs/dataSourcesUpdate.d.ts +16 -0
- package/funcs/dataSourcesUpdate.d.ts.map +1 -0
- package/funcs/dataSourcesUpdate.js +101 -0
- package/funcs/dataSourcesUpdate.js.map +1 -0
- package/funcs/v1Create.d.ts +16 -0
- package/funcs/v1Create.d.ts.map +1 -0
- package/funcs/v1Create.js +101 -0
- package/funcs/v1Create.js.map +1 -0
- package/funcs/v1DataSourcesDeleteByName.d.ts +16 -0
- package/funcs/v1DataSourcesDeleteByName.d.ts.map +1 -0
- package/funcs/v1DataSourcesDeleteByName.js +111 -0
- package/funcs/v1DataSourcesDeleteByName.js.map +1 -0
- package/funcs/v1GetByName.d.ts +17 -0
- package/funcs/v1GetByName.d.ts.map +1 -0
- package/funcs/v1GetByName.js +107 -0
- package/funcs/v1GetByName.js.map +1 -0
- package/funcs/v1List.d.ts +17 -0
- package/funcs/v1List.d.ts.map +1 -0
- package/funcs/v1List.js +113 -0
- package/funcs/v1List.js.map +1 -0
- package/funcs/v1Update.d.ts +16 -0
- package/funcs/v1Update.d.ts.map +1 -0
- package/funcs/v1Update.js +101 -0
- package/funcs/v1Update.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/lib/schemas.d.ts +1 -1
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +4 -1
- package/lib/schemas.js.map +1 -1
- package/mintlify/mint.json +1 -1
- package/models/components/agentcreate.d.ts +6 -23
- package/models/components/agentcreate.d.ts.map +1 -1
- package/models/components/agentcreate.js +3 -26
- package/models/components/agentcreate.js.map +1 -1
- package/models/components/agentupdate.d.ts +6 -23
- package/models/components/agentupdate.d.ts.map +1 -1
- package/models/components/agentupdate.js +3 -26
- package/models/components/agentupdate.js.map +1 -1
- package/models/components/datasourcecreaterequest.d.ts +57 -0
- package/models/components/datasourcecreaterequest.d.ts.map +1 -0
- package/models/components/datasourcecreaterequest.js +78 -0
- package/models/components/datasourcecreaterequest.js.map +1 -0
- package/models/components/datasourcedetailresponse.d.ts +75 -0
- package/models/components/datasourcedetailresponse.d.ts.map +1 -0
- package/models/components/datasourcedetailresponse.js +90 -0
- package/models/components/datasourcedetailresponse.js.map +1 -0
- package/models/components/datasourcemetadataresponse.d.ts +70 -0
- package/models/components/datasourcemetadataresponse.d.ts.map +1 -0
- package/models/components/datasourcemetadataresponse.js +88 -0
- package/models/components/datasourcemetadataresponse.js.map +1 -0
- package/models/components/datasourceproperties.d.ts +43 -0
- package/models/components/datasourceproperties.d.ts.map +1 -0
- package/models/components/datasourceproperties.js +55 -0
- package/models/components/datasourceproperties.js.map +1 -0
- package/models/components/datasourceupdaterequest.d.ts +62 -0
- package/models/components/datasourceupdaterequest.d.ts.map +1 -0
- package/models/components/datasourceupdaterequest.js +82 -0
- package/models/components/datasourceupdaterequest.js.map +1 -0
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listresponsedatasourcemetadataresponse.d.ts +38 -0
- package/models/components/listresponsedatasourcemetadataresponse.d.ts.map +1 -0
- package/models/components/listresponsedatasourcemetadataresponse.js +81 -0
- package/models/components/listresponsedatasourcemetadataresponse.js.map +1 -0
- package/models/operations/datasourcesdeletebyname.d.ts +31 -0
- package/models/operations/datasourcesdeletebyname.d.ts.map +1 -0
- package/models/operations/datasourcesdeletebyname.js +61 -0
- package/models/operations/datasourcesdeletebyname.js.map +1 -0
- package/models/operations/datasourcesgetbyname.d.ts +29 -0
- package/models/operations/datasourcesgetbyname.d.ts.map +1 -0
- package/models/operations/datasourcesgetbyname.js +59 -0
- package/models/operations/datasourcesgetbyname.js.map +1 -0
- package/models/operations/datasourceslist.d.ts +46 -0
- package/models/operations/datasourceslist.d.ts.map +1 -0
- package/models/operations/datasourceslist.js +103 -0
- package/models/operations/datasourceslist.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/openapi.json +3080 -1612
- package/package.json +6 -7
- package/sdk/datasources.d.ts +41 -0
- package/sdk/datasources.d.ts.map +1 -0
- package/sdk/datasources.js +62 -0
- package/sdk/datasources.js.map +1 -0
- package/sdk/sdk.d.ts +5 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/v1.d.ts +36 -0
- package/sdk/v1.d.ts.map +1 -1
- package/sdk/v1.js +50 -0
- package/sdk/v1.js.map +1 -1
- package/src/funcs/agentsCreate.ts +1 -1
- package/src/funcs/agentsDelete.ts +1 -1
- package/src/funcs/agentsUpdate.ts +1 -1
- package/src/funcs/dataSourcesCreate.ts +134 -0
- package/src/funcs/dataSourcesDataSourcesDeleteByName.ts +147 -0
- package/src/funcs/dataSourcesGetByName.ts +142 -0
- package/src/funcs/dataSourcesList.ts +150 -0
- package/src/funcs/dataSourcesUpdate.ts +134 -0
- package/src/funcs/v1Create.ts +134 -0
- package/src/funcs/v1DataSourcesDeleteByName.ts +147 -0
- package/src/funcs/v1GetByName.ts +142 -0
- package/src/funcs/v1List.ts +150 -0
- package/src/funcs/v1Update.ts +134 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +0 -1
- package/src/lib/schemas.ts +5 -0
- package/src/models/components/agentcreate.ts +4 -50
- package/src/models/components/agentupdate.ts +4 -54
- package/src/models/components/datasourcecreaterequest.ts +113 -0
- package/src/models/components/datasourcedetailresponse.ts +143 -0
- package/src/models/components/datasourcemetadataresponse.ts +136 -0
- package/src/models/components/datasourceproperties.ts +38 -0
- package/src/models/components/datasourceupdaterequest.ts +122 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/listresponsedatasourcemetadataresponse.ts +107 -0
- package/src/models/operations/datasourcesdeletebyname.ts +72 -0
- package/src/models/operations/datasourcesgetbyname.ts +68 -0
- package/src/models/operations/datasourceslist.ts +126 -0
- package/src/models/operations/index.ts +3 -0
- package/src/sdk/datasources.ts +100 -0
- package/src/sdk/sdk.ts +11 -5
- package/src/sdk/v1.ts +91 -0
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
export type DataSourcesDeleteByNameRequest = {
|
|
11
|
+
name: string;
|
|
12
|
+
reason: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const DataSourcesDeleteByNameRequest$inboundSchema: z.ZodType<
|
|
17
|
+
DataSourcesDeleteByNameRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
name: z.string(),
|
|
22
|
+
reason: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type DataSourcesDeleteByNameRequest$Outbound = {
|
|
27
|
+
name: string;
|
|
28
|
+
reason: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const DataSourcesDeleteByNameRequest$outboundSchema: z.ZodType<
|
|
33
|
+
DataSourcesDeleteByNameRequest$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
DataSourcesDeleteByNameRequest
|
|
36
|
+
> = z.object({
|
|
37
|
+
name: z.string(),
|
|
38
|
+
reason: z.string(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace DataSourcesDeleteByNameRequest$ {
|
|
46
|
+
/** @deprecated use `DataSourcesDeleteByNameRequest$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = DataSourcesDeleteByNameRequest$inboundSchema;
|
|
48
|
+
/** @deprecated use `DataSourcesDeleteByNameRequest$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = DataSourcesDeleteByNameRequest$outboundSchema;
|
|
50
|
+
/** @deprecated use `DataSourcesDeleteByNameRequest$Outbound` instead. */
|
|
51
|
+
export type Outbound = DataSourcesDeleteByNameRequest$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function dataSourcesDeleteByNameRequestToJSON(
|
|
55
|
+
dataSourcesDeleteByNameRequest: DataSourcesDeleteByNameRequest,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
DataSourcesDeleteByNameRequest$outboundSchema.parse(
|
|
59
|
+
dataSourcesDeleteByNameRequest,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function dataSourcesDeleteByNameRequestFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<DataSourcesDeleteByNameRequest, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => DataSourcesDeleteByNameRequest$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'DataSourcesDeleteByNameRequest' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
export type DataSourcesGetByNameRequest = {
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const DataSourcesGetByNameRequest$inboundSchema: z.ZodType<
|
|
16
|
+
DataSourcesGetByNameRequest,
|
|
17
|
+
z.ZodTypeDef,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({
|
|
20
|
+
name: z.string(),
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export type DataSourcesGetByNameRequest$Outbound = {
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const DataSourcesGetByNameRequest$outboundSchema: z.ZodType<
|
|
30
|
+
DataSourcesGetByNameRequest$Outbound,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
DataSourcesGetByNameRequest
|
|
33
|
+
> = z.object({
|
|
34
|
+
name: z.string(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @internal
|
|
39
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
+
*/
|
|
41
|
+
export namespace DataSourcesGetByNameRequest$ {
|
|
42
|
+
/** @deprecated use `DataSourcesGetByNameRequest$inboundSchema` instead. */
|
|
43
|
+
export const inboundSchema = DataSourcesGetByNameRequest$inboundSchema;
|
|
44
|
+
/** @deprecated use `DataSourcesGetByNameRequest$outboundSchema` instead. */
|
|
45
|
+
export const outboundSchema = DataSourcesGetByNameRequest$outboundSchema;
|
|
46
|
+
/** @deprecated use `DataSourcesGetByNameRequest$Outbound` instead. */
|
|
47
|
+
export type Outbound = DataSourcesGetByNameRequest$Outbound;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function dataSourcesGetByNameRequestToJSON(
|
|
51
|
+
dataSourcesGetByNameRequest: DataSourcesGetByNameRequest,
|
|
52
|
+
): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
DataSourcesGetByNameRequest$outboundSchema.parse(
|
|
55
|
+
dataSourcesGetByNameRequest,
|
|
56
|
+
),
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function dataSourcesGetByNameRequestFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<DataSourcesGetByNameRequest, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => DataSourcesGetByNameRequest$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'DataSourcesGetByNameRequest' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -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 DataSourcesListRequest = {
|
|
13
|
+
page?: number | null | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
searchFields?: Array<components.DataSourceProperties> | undefined;
|
|
16
|
+
searchFieldValues?: Array<string> | undefined;
|
|
17
|
+
orderBy?: components.DataSourceProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
19
|
+
fields?: Array<components.DataSourceProperties> | null | undefined;
|
|
20
|
+
startDatetime?: string | null | undefined;
|
|
21
|
+
endDatetime?: string | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const DataSourcesListRequest$inboundSchema: z.ZodType<
|
|
26
|
+
DataSourcesListRequest,
|
|
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.DataSourceProperties$inboundSchema)
|
|
33
|
+
.optional(),
|
|
34
|
+
search_field_values: z.array(z.string()).optional(),
|
|
35
|
+
order_by: z.nullable(components.DataSourceProperties$inboundSchema)
|
|
36
|
+
.optional(),
|
|
37
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
38
|
+
.optional(),
|
|
39
|
+
fields: z.nullable(z.array(components.DataSourceProperties$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 DataSourcesListRequest$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 DataSourcesListRequest$outboundSchema: z.ZodType<
|
|
69
|
+
DataSourcesListRequest$Outbound,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
DataSourcesListRequest
|
|
72
|
+
> = z.object({
|
|
73
|
+
page: z.nullable(z.number().int()).optional(),
|
|
74
|
+
limit: z.number().int().default(25),
|
|
75
|
+
searchFields: z.array(components.DataSourceProperties$outboundSchema)
|
|
76
|
+
.optional(),
|
|
77
|
+
searchFieldValues: z.array(z.string()).optional(),
|
|
78
|
+
orderBy: z.nullable(components.DataSourceProperties$outboundSchema)
|
|
79
|
+
.optional(),
|
|
80
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
81
|
+
.optional(),
|
|
82
|
+
fields: z.nullable(z.array(components.DataSourceProperties$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 DataSourcesListRequest$ {
|
|
102
|
+
/** @deprecated use `DataSourcesListRequest$inboundSchema` instead. */
|
|
103
|
+
export const inboundSchema = DataSourcesListRequest$inboundSchema;
|
|
104
|
+
/** @deprecated use `DataSourcesListRequest$outboundSchema` instead. */
|
|
105
|
+
export const outboundSchema = DataSourcesListRequest$outboundSchema;
|
|
106
|
+
/** @deprecated use `DataSourcesListRequest$Outbound` instead. */
|
|
107
|
+
export type Outbound = DataSourcesListRequest$Outbound;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function dataSourcesListRequestToJSON(
|
|
111
|
+
dataSourcesListRequest: DataSourcesListRequest,
|
|
112
|
+
): string {
|
|
113
|
+
return JSON.stringify(
|
|
114
|
+
DataSourcesListRequest$outboundSchema.parse(dataSourcesListRequest),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function dataSourcesListRequestFromJSON(
|
|
119
|
+
jsonString: string,
|
|
120
|
+
): SafeParseResult<DataSourcesListRequest, SDKValidationError> {
|
|
121
|
+
return safeParse(
|
|
122
|
+
jsonString,
|
|
123
|
+
(x) => DataSourcesListRequest$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
+
`Failed to parse 'DataSourcesListRequest' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|
|
@@ -16,6 +16,9 @@ export * from "./conversationslist.js";
|
|
|
16
16
|
export * from "./custommessagegetbyid.js";
|
|
17
17
|
export * from "./custommessagesdelete.js";
|
|
18
18
|
export * from "./custommessageslist.js";
|
|
19
|
+
export * from "./datasourcesdeletebyname.js";
|
|
20
|
+
export * from "./datasourcesgetbyname.js";
|
|
21
|
+
export * from "./datasourceslist.js";
|
|
19
22
|
export * from "./eventslist.js";
|
|
20
23
|
export * from "./generatesessionrecordingurls.js";
|
|
21
24
|
export * from "./promptsdelete.js";
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { dataSourcesCreate } from "../funcs/dataSourcesCreate.js";
|
|
6
|
+
import { dataSourcesDataSourcesDeleteByName } from "../funcs/dataSourcesDataSourcesDeleteByName.js";
|
|
7
|
+
import { dataSourcesGetByName } from "../funcs/dataSourcesGetByName.js";
|
|
8
|
+
import { dataSourcesList } from "../funcs/dataSourcesList.js";
|
|
9
|
+
import { dataSourcesUpdate } from "../funcs/dataSourcesUpdate.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 DataSources extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* List Data Sources
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* Fetch metadata about all data sources, not including their text.
|
|
21
|
+
*/
|
|
22
|
+
async list(
|
|
23
|
+
request: operations.DataSourcesListRequest,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<components.ListResponseDataSourceMetadataResponse> {
|
|
26
|
+
return unwrapAsync(dataSourcesList(
|
|
27
|
+
this,
|
|
28
|
+
request,
|
|
29
|
+
options,
|
|
30
|
+
));
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create Data Source
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* Create a new data source.
|
|
38
|
+
*/
|
|
39
|
+
async create(
|
|
40
|
+
request: components.DataSourceCreateRequest,
|
|
41
|
+
options?: RequestOptions,
|
|
42
|
+
): Promise<components.DataSourceDetailResponse> {
|
|
43
|
+
return unwrapAsync(dataSourcesCreate(
|
|
44
|
+
this,
|
|
45
|
+
request,
|
|
46
|
+
options,
|
|
47
|
+
));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Update Data Source
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Update an existing data source.
|
|
55
|
+
*/
|
|
56
|
+
async update(
|
|
57
|
+
request: components.DataSourceUpdateRequest,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): Promise<components.DataSourceDetailResponse> {
|
|
60
|
+
return unwrapAsync(dataSourcesUpdate(
|
|
61
|
+
this,
|
|
62
|
+
request,
|
|
63
|
+
options,
|
|
64
|
+
));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Get Data Source
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* Fetch a given data source, including its text.
|
|
72
|
+
*/
|
|
73
|
+
async getByName(
|
|
74
|
+
request: operations.DataSourcesGetByNameRequest,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<components.DataSourceDetailResponse> {
|
|
77
|
+
return unwrapAsync(dataSourcesGetByName(
|
|
78
|
+
this,
|
|
79
|
+
request,
|
|
80
|
+
options,
|
|
81
|
+
));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Delete Data Source
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Delete a given data source.
|
|
89
|
+
*/
|
|
90
|
+
async dataSourcesDeleteByName(
|
|
91
|
+
request: operations.DataSourcesDeleteByNameRequest,
|
|
92
|
+
options?: RequestOptions,
|
|
93
|
+
): Promise<any> {
|
|
94
|
+
return unwrapAsync(dataSourcesDataSourcesDeleteByName(
|
|
95
|
+
this,
|
|
96
|
+
request,
|
|
97
|
+
options,
|
|
98
|
+
));
|
|
99
|
+
}
|
|
100
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { Channels } from "./channels.js";
|
|
|
8
8
|
import { Conversations } from "./conversations.js";
|
|
9
9
|
import { CustomMessages } from "./custommessages.js";
|
|
10
10
|
import { Dashboards } from "./dashboards.js";
|
|
11
|
+
import { DataSources } from "./datasources.js";
|
|
11
12
|
import { Events } from "./events.js";
|
|
12
13
|
import { Prompts } from "./prompts.js";
|
|
13
14
|
import { Services } from "./services.js";
|
|
@@ -32,6 +33,16 @@ export class SyllableSDK extends ClientSDK {
|
|
|
32
33
|
return (this._conversations ??= new Conversations(this._options));
|
|
33
34
|
}
|
|
34
35
|
|
|
36
|
+
private _dataSources?: DataSources;
|
|
37
|
+
get dataSources(): DataSources {
|
|
38
|
+
return (this._dataSources ??= new DataSources(this._options));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
private _v1?: V1;
|
|
42
|
+
get v1(): V1 {
|
|
43
|
+
return (this._v1 ??= new V1(this._options));
|
|
44
|
+
}
|
|
45
|
+
|
|
35
46
|
private _events?: Events;
|
|
36
47
|
get events(): Events {
|
|
37
48
|
return (this._events ??= new Events(this._options));
|
|
@@ -71,9 +82,4 @@ export class SyllableSDK extends ClientSDK {
|
|
|
71
82
|
get dashboards(): Dashboards {
|
|
72
83
|
return (this._dashboards ??= new Dashboards(this._options));
|
|
73
84
|
}
|
|
74
|
-
|
|
75
|
-
private _v1?: V1;
|
|
76
|
-
get v1(): V1 {
|
|
77
|
-
return (this._v1 ??= new V1(this._options));
|
|
78
|
-
}
|
|
79
85
|
}
|
package/src/sdk/v1.ts
CHANGED
|
@@ -2,15 +2,106 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { v1Create } from "../funcs/v1Create.js";
|
|
6
|
+
import { v1DataSourcesDeleteByName } from "../funcs/v1DataSourcesDeleteByName.js";
|
|
7
|
+
import { v1GetByName } from "../funcs/v1GetByName.js";
|
|
8
|
+
import { v1List } from "../funcs/v1List.js";
|
|
5
9
|
import { v1PostSessionEventsDashboard } from "../funcs/v1PostSessionEventsDashboard.js";
|
|
6
10
|
import { v1PostSessionsDashboard } from "../funcs/v1PostSessionsDashboard.js";
|
|
7
11
|
import { v1PostSessionSummaryDashboard } from "../funcs/v1PostSessionSummaryDashboard.js";
|
|
8
12
|
import { v1PostSessionTransfersDashboard } from "../funcs/v1PostSessionTransfersDashboard.js";
|
|
13
|
+
import { v1Update } from "../funcs/v1Update.js";
|
|
9
14
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
15
|
import * as components from "../models/components/index.js";
|
|
16
|
+
import * as operations from "../models/operations/index.js";
|
|
11
17
|
import { unwrapAsync } from "../types/fp.js";
|
|
12
18
|
|
|
13
19
|
export class V1 extends ClientSDK {
|
|
20
|
+
/**
|
|
21
|
+
* List Data Sources
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Fetch metadata about all data sources, not including their text.
|
|
25
|
+
*/
|
|
26
|
+
async list(
|
|
27
|
+
request: operations.DataSourcesListRequest,
|
|
28
|
+
options?: RequestOptions,
|
|
29
|
+
): Promise<components.ListResponseDataSourceMetadataResponse> {
|
|
30
|
+
return unwrapAsync(v1List(
|
|
31
|
+
this,
|
|
32
|
+
request,
|
|
33
|
+
options,
|
|
34
|
+
));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Create Data Source
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
* Create a new data source.
|
|
42
|
+
*/
|
|
43
|
+
async create(
|
|
44
|
+
request: components.DataSourceCreateRequest,
|
|
45
|
+
options?: RequestOptions,
|
|
46
|
+
): Promise<components.DataSourceDetailResponse> {
|
|
47
|
+
return unwrapAsync(v1Create(
|
|
48
|
+
this,
|
|
49
|
+
request,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Update Data Source
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
* Update an existing data source.
|
|
59
|
+
*/
|
|
60
|
+
async update(
|
|
61
|
+
request: components.DataSourceUpdateRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<components.DataSourceDetailResponse> {
|
|
64
|
+
return unwrapAsync(v1Update(
|
|
65
|
+
this,
|
|
66
|
+
request,
|
|
67
|
+
options,
|
|
68
|
+
));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Get Data Source
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* Fetch a given data source, including its text.
|
|
76
|
+
*/
|
|
77
|
+
async getByName(
|
|
78
|
+
request: operations.DataSourcesGetByNameRequest,
|
|
79
|
+
options?: RequestOptions,
|
|
80
|
+
): Promise<components.DataSourceDetailResponse> {
|
|
81
|
+
return unwrapAsync(v1GetByName(
|
|
82
|
+
this,
|
|
83
|
+
request,
|
|
84
|
+
options,
|
|
85
|
+
));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Delete Data Source
|
|
90
|
+
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* Delete a given data source.
|
|
93
|
+
*/
|
|
94
|
+
async dataSourcesDeleteByName(
|
|
95
|
+
request: operations.DataSourcesDeleteByNameRequest,
|
|
96
|
+
options?: RequestOptions,
|
|
97
|
+
): Promise<any> {
|
|
98
|
+
return unwrapAsync(v1DataSourcesDeleteByName(
|
|
99
|
+
this,
|
|
100
|
+
request,
|
|
101
|
+
options,
|
|
102
|
+
));
|
|
103
|
+
}
|
|
104
|
+
|
|
14
105
|
/**
|
|
15
106
|
* Post Session Events
|
|
16
107
|
*
|