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.
Files changed (164) hide show
  1. package/README.md +23 -0
  2. package/docs/sdks/agents/README.md +18 -6
  3. package/docs/sdks/custommessages/README.md +160 -2
  4. package/docs/sdks/datasources/README.md +417 -0
  5. package/docs/sdks/prompts/README.md +0 -8
  6. package/docs/sdks/sessionlabels/README.md +6 -0
  7. package/docs/sdks/targets/README.md +10 -18
  8. package/docs/sdks/tools/README.md +6 -6
  9. package/docs/sdks/v1/README.md +408 -0
  10. package/funcs/agentsCreate.js +1 -1
  11. package/funcs/agentsCreate.js.map +1 -1
  12. package/funcs/agentsDelete.js +1 -1
  13. package/funcs/agentsDelete.js.map +1 -1
  14. package/funcs/agentsUpdate.js +1 -1
  15. package/funcs/agentsUpdate.js.map +1 -1
  16. package/funcs/dataSourcesCreate.d.ts +16 -0
  17. package/funcs/dataSourcesCreate.d.ts.map +1 -0
  18. package/funcs/dataSourcesCreate.js +101 -0
  19. package/funcs/dataSourcesCreate.js.map +1 -0
  20. package/funcs/dataSourcesDataSourcesDeleteByName.d.ts +16 -0
  21. package/funcs/dataSourcesDataSourcesDeleteByName.d.ts.map +1 -0
  22. package/funcs/dataSourcesDataSourcesDeleteByName.js +111 -0
  23. package/funcs/dataSourcesDataSourcesDeleteByName.js.map +1 -0
  24. package/funcs/dataSourcesGetByName.d.ts +17 -0
  25. package/funcs/dataSourcesGetByName.d.ts.map +1 -0
  26. package/funcs/dataSourcesGetByName.js +107 -0
  27. package/funcs/dataSourcesGetByName.js.map +1 -0
  28. package/funcs/dataSourcesList.d.ts +17 -0
  29. package/funcs/dataSourcesList.d.ts.map +1 -0
  30. package/funcs/dataSourcesList.js +113 -0
  31. package/funcs/dataSourcesList.js.map +1 -0
  32. package/funcs/dataSourcesUpdate.d.ts +16 -0
  33. package/funcs/dataSourcesUpdate.d.ts.map +1 -0
  34. package/funcs/dataSourcesUpdate.js +101 -0
  35. package/funcs/dataSourcesUpdate.js.map +1 -0
  36. package/funcs/v1Create.d.ts +16 -0
  37. package/funcs/v1Create.d.ts.map +1 -0
  38. package/funcs/v1Create.js +101 -0
  39. package/funcs/v1Create.js.map +1 -0
  40. package/funcs/v1DataSourcesDeleteByName.d.ts +16 -0
  41. package/funcs/v1DataSourcesDeleteByName.d.ts.map +1 -0
  42. package/funcs/v1DataSourcesDeleteByName.js +111 -0
  43. package/funcs/v1DataSourcesDeleteByName.js.map +1 -0
  44. package/funcs/v1GetByName.d.ts +17 -0
  45. package/funcs/v1GetByName.d.ts.map +1 -0
  46. package/funcs/v1GetByName.js +107 -0
  47. package/funcs/v1GetByName.js.map +1 -0
  48. package/funcs/v1List.d.ts +17 -0
  49. package/funcs/v1List.d.ts.map +1 -0
  50. package/funcs/v1List.js +113 -0
  51. package/funcs/v1List.js.map +1 -0
  52. package/funcs/v1Update.d.ts +16 -0
  53. package/funcs/v1Update.d.ts.map +1 -0
  54. package/funcs/v1Update.js +101 -0
  55. package/funcs/v1Update.js.map +1 -0
  56. package/jsr.json +1 -1
  57. package/lib/config.d.ts +3 -3
  58. package/lib/config.js +3 -3
  59. package/lib/config.js.map +1 -1
  60. package/lib/retries.js +0 -1
  61. package/lib/retries.js.map +1 -1
  62. package/lib/schemas.d.ts +1 -1
  63. package/lib/schemas.d.ts.map +1 -1
  64. package/lib/schemas.js +4 -1
  65. package/lib/schemas.js.map +1 -1
  66. package/mintlify/mint.json +1 -1
  67. package/models/components/agentcreate.d.ts +6 -23
  68. package/models/components/agentcreate.d.ts.map +1 -1
  69. package/models/components/agentcreate.js +3 -26
  70. package/models/components/agentcreate.js.map +1 -1
  71. package/models/components/agentupdate.d.ts +6 -23
  72. package/models/components/agentupdate.d.ts.map +1 -1
  73. package/models/components/agentupdate.js +3 -26
  74. package/models/components/agentupdate.js.map +1 -1
  75. package/models/components/datasourcecreaterequest.d.ts +57 -0
  76. package/models/components/datasourcecreaterequest.d.ts.map +1 -0
  77. package/models/components/datasourcecreaterequest.js +78 -0
  78. package/models/components/datasourcecreaterequest.js.map +1 -0
  79. package/models/components/datasourcedetailresponse.d.ts +75 -0
  80. package/models/components/datasourcedetailresponse.d.ts.map +1 -0
  81. package/models/components/datasourcedetailresponse.js +90 -0
  82. package/models/components/datasourcedetailresponse.js.map +1 -0
  83. package/models/components/datasourcemetadataresponse.d.ts +70 -0
  84. package/models/components/datasourcemetadataresponse.d.ts.map +1 -0
  85. package/models/components/datasourcemetadataresponse.js +88 -0
  86. package/models/components/datasourcemetadataresponse.js.map +1 -0
  87. package/models/components/datasourceproperties.d.ts +43 -0
  88. package/models/components/datasourceproperties.d.ts.map +1 -0
  89. package/models/components/datasourceproperties.js +55 -0
  90. package/models/components/datasourceproperties.js.map +1 -0
  91. package/models/components/datasourceupdaterequest.d.ts +62 -0
  92. package/models/components/datasourceupdaterequest.d.ts.map +1 -0
  93. package/models/components/datasourceupdaterequest.js +82 -0
  94. package/models/components/datasourceupdaterequest.js.map +1 -0
  95. package/models/components/index.d.ts +6 -0
  96. package/models/components/index.d.ts.map +1 -1
  97. package/models/components/index.js +6 -0
  98. package/models/components/index.js.map +1 -1
  99. package/models/components/listresponsedatasourcemetadataresponse.d.ts +38 -0
  100. package/models/components/listresponsedatasourcemetadataresponse.d.ts.map +1 -0
  101. package/models/components/listresponsedatasourcemetadataresponse.js +81 -0
  102. package/models/components/listresponsedatasourcemetadataresponse.js.map +1 -0
  103. package/models/operations/datasourcesdeletebyname.d.ts +31 -0
  104. package/models/operations/datasourcesdeletebyname.d.ts.map +1 -0
  105. package/models/operations/datasourcesdeletebyname.js +61 -0
  106. package/models/operations/datasourcesdeletebyname.js.map +1 -0
  107. package/models/operations/datasourcesgetbyname.d.ts +29 -0
  108. package/models/operations/datasourcesgetbyname.d.ts.map +1 -0
  109. package/models/operations/datasourcesgetbyname.js +59 -0
  110. package/models/operations/datasourcesgetbyname.js.map +1 -0
  111. package/models/operations/datasourceslist.d.ts +46 -0
  112. package/models/operations/datasourceslist.d.ts.map +1 -0
  113. package/models/operations/datasourceslist.js +103 -0
  114. package/models/operations/datasourceslist.js.map +1 -0
  115. package/models/operations/index.d.ts +3 -0
  116. package/models/operations/index.d.ts.map +1 -1
  117. package/models/operations/index.js +3 -0
  118. package/models/operations/index.js.map +1 -1
  119. package/openapi.json +3080 -1612
  120. package/package.json +6 -7
  121. package/sdk/datasources.d.ts +41 -0
  122. package/sdk/datasources.d.ts.map +1 -0
  123. package/sdk/datasources.js +62 -0
  124. package/sdk/datasources.js.map +1 -0
  125. package/sdk/sdk.d.ts +5 -2
  126. package/sdk/sdk.d.ts.map +1 -1
  127. package/sdk/sdk.js +7 -3
  128. package/sdk/sdk.js.map +1 -1
  129. package/sdk/v1.d.ts +36 -0
  130. package/sdk/v1.d.ts.map +1 -1
  131. package/sdk/v1.js +50 -0
  132. package/sdk/v1.js.map +1 -1
  133. package/src/funcs/agentsCreate.ts +1 -1
  134. package/src/funcs/agentsDelete.ts +1 -1
  135. package/src/funcs/agentsUpdate.ts +1 -1
  136. package/src/funcs/dataSourcesCreate.ts +134 -0
  137. package/src/funcs/dataSourcesDataSourcesDeleteByName.ts +147 -0
  138. package/src/funcs/dataSourcesGetByName.ts +142 -0
  139. package/src/funcs/dataSourcesList.ts +150 -0
  140. package/src/funcs/dataSourcesUpdate.ts +134 -0
  141. package/src/funcs/v1Create.ts +134 -0
  142. package/src/funcs/v1DataSourcesDeleteByName.ts +147 -0
  143. package/src/funcs/v1GetByName.ts +142 -0
  144. package/src/funcs/v1List.ts +150 -0
  145. package/src/funcs/v1Update.ts +134 -0
  146. package/src/lib/config.ts +3 -3
  147. package/src/lib/retries.ts +0 -1
  148. package/src/lib/schemas.ts +5 -0
  149. package/src/models/components/agentcreate.ts +4 -50
  150. package/src/models/components/agentupdate.ts +4 -54
  151. package/src/models/components/datasourcecreaterequest.ts +113 -0
  152. package/src/models/components/datasourcedetailresponse.ts +143 -0
  153. package/src/models/components/datasourcemetadataresponse.ts +136 -0
  154. package/src/models/components/datasourceproperties.ts +38 -0
  155. package/src/models/components/datasourceupdaterequest.ts +122 -0
  156. package/src/models/components/index.ts +6 -0
  157. package/src/models/components/listresponsedatasourcemetadataresponse.ts +107 -0
  158. package/src/models/operations/datasourcesdeletebyname.ts +72 -0
  159. package/src/models/operations/datasourcesgetbyname.ts +68 -0
  160. package/src/models/operations/datasourceslist.ts +126 -0
  161. package/src/models/operations/index.ts +3 -0
  162. package/src/sdk/datasources.ts +100 -0
  163. package/src/sdk/sdk.ts +11 -5
  164. 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
  *