syllable-sdk 0.1.0-alpha.70 → 0.1.0-alpha.71

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 (133) hide show
  1. package/README.md +17 -0
  2. package/docs/sdks/insights/README.md +97 -0
  3. package/docs/sdks/prompts/README.md +81 -5
  4. package/docs/sdks/takeouts/README.md +163 -0
  5. package/docs/sdks/v1/README.md +251 -1
  6. package/funcs/insightsList.d.ts +17 -0
  7. package/funcs/insightsList.d.ts.map +1 -0
  8. package/funcs/insightsList.js +114 -0
  9. package/funcs/insightsList.js.map +1 -0
  10. package/funcs/promptsPromptGetSupportedLlms.d.ts +15 -0
  11. package/funcs/promptsPromptGetSupportedLlms.d.ts.map +1 -0
  12. package/funcs/promptsPromptGetSupportedLlms.js +89 -0
  13. package/funcs/promptsPromptGetSupportedLlms.js.map +1 -0
  14. package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts +13 -0
  15. package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +1 -0
  16. package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js +99 -0
  17. package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js.map +1 -0
  18. package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts +14 -0
  19. package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +1 -0
  20. package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js +105 -0
  21. package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js.map +1 -0
  22. package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.d.ts +13 -0
  23. package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +1 -0
  24. package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.js +99 -0
  25. package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.js.map +1 -0
  26. package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.d.ts +14 -0
  27. package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +1 -0
  28. package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.js +105 -0
  29. package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.js.map +1 -0
  30. package/funcs/v1List.d.ts +17 -0
  31. package/funcs/v1List.d.ts.map +1 -0
  32. package/funcs/v1List.js +114 -0
  33. package/funcs/v1List.js.map +1 -0
  34. package/jsr.json +1 -1
  35. package/lib/config.d.ts +2 -2
  36. package/lib/config.js +2 -2
  37. package/models/components/createtakeoutresponse.d.ts +31 -0
  38. package/models/components/createtakeoutresponse.d.ts.map +1 -0
  39. package/models/components/createtakeoutresponse.js +72 -0
  40. package/models/components/createtakeoutresponse.js.map +1 -0
  41. package/models/components/daotakeoutcreate.d.ts +31 -0
  42. package/models/components/daotakeoutcreate.d.ts.map +1 -0
  43. package/models/components/daotakeoutcreate.js +72 -0
  44. package/models/components/daotakeoutcreate.js.map +1 -0
  45. package/models/components/index.d.ts +8 -0
  46. package/models/components/index.d.ts.map +1 -1
  47. package/models/components/index.js +8 -0
  48. package/models/components/index.js.map +1 -1
  49. package/models/components/insightsoutput.d.ts +104 -0
  50. package/models/components/insightsoutput.d.ts.map +1 -0
  51. package/models/components/insightsoutput.js +127 -0
  52. package/models/components/insightsoutput.js.map +1 -0
  53. package/models/components/insightsproperties.d.ts +34 -0
  54. package/models/components/insightsproperties.d.ts.map +1 -0
  55. package/models/components/insightsproperties.js +52 -0
  56. package/models/components/insightsproperties.js.map +1 -0
  57. package/models/components/listresponseinsightsoutput.d.ts +53 -0
  58. package/models/components/listresponseinsightsoutput.d.ts.map +1 -0
  59. package/models/components/listresponseinsightsoutput.js +81 -0
  60. package/models/components/listresponseinsightsoutput.js.map +1 -0
  61. package/models/components/promptllmconfig.d.ts +1 -1
  62. package/models/components/supportedllm.d.ts +61 -0
  63. package/models/components/supportedllm.d.ts.map +1 -0
  64. package/models/components/supportedllm.js +81 -0
  65. package/models/components/supportedllm.js.map +1 -0
  66. package/models/components/takeoutrequeststatus.d.ts +43 -0
  67. package/models/components/takeoutrequeststatus.d.ts.map +1 -0
  68. package/models/components/takeoutrequeststatus.js +56 -0
  69. package/models/components/takeoutrequeststatus.js.map +1 -0
  70. package/models/components/takeoutstatusresponse.d.ts +39 -0
  71. package/models/components/takeoutstatusresponse.d.ts.map +1 -0
  72. package/models/components/takeoutstatusresponse.js +79 -0
  73. package/models/components/takeoutstatusresponse.js.map +1 -0
  74. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts +29 -0
  75. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts.map +1 -0
  76. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js +68 -0
  77. package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js.map +1 -0
  78. package/models/operations/index.d.ts +2 -0
  79. package/models/operations/index.d.ts.map +1 -1
  80. package/models/operations/index.js +2 -0
  81. package/models/operations/index.js.map +1 -1
  82. package/models/operations/insightslist.d.ts +73 -0
  83. package/models/operations/insightslist.d.ts.map +1 -0
  84. package/models/operations/insightslist.js +101 -0
  85. package/models/operations/insightslist.js.map +1 -0
  86. package/openapi.json +1080 -233
  87. package/package.json +1 -1
  88. package/sdk/insights.d.ts +10 -1
  89. package/sdk/insights.d.ts.map +1 -1
  90. package/sdk/insights.js +11 -0
  91. package/sdk/insights.js.map +1 -1
  92. package/sdk/prompts.d.ts +7 -0
  93. package/sdk/prompts.d.ts.map +1 -1
  94. package/sdk/prompts.js +10 -0
  95. package/sdk/prompts.js.map +1 -1
  96. package/sdk/sdk.d.ts +5 -2
  97. package/sdk/sdk.d.ts.map +1 -1
  98. package/sdk/sdk.js +7 -3
  99. package/sdk/sdk.js.map +1 -1
  100. package/sdk/takeouts.d.ts +14 -0
  101. package/sdk/takeouts.d.ts.map +1 -0
  102. package/sdk/takeouts.js +26 -0
  103. package/sdk/takeouts.js.map +1 -0
  104. package/sdk/v1.d.ts +15 -0
  105. package/sdk/v1.d.ts.map +1 -1
  106. package/sdk/v1.js +24 -0
  107. package/sdk/v1.js.map +1 -1
  108. package/src/funcs/insightsList.ts +148 -0
  109. package/src/funcs/promptsPromptGetSupportedLlms.ts +112 -0
  110. package/src/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.ts +132 -0
  111. package/src/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.ts +142 -0
  112. package/src/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.ts +132 -0
  113. package/src/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.ts +142 -0
  114. package/src/funcs/v1List.ts +148 -0
  115. package/src/lib/config.ts +2 -2
  116. package/src/models/components/createtakeoutresponse.ts +81 -0
  117. package/src/models/components/daotakeoutcreate.ts +81 -0
  118. package/src/models/components/index.ts +8 -0
  119. package/src/models/components/insightsoutput.ts +207 -0
  120. package/src/models/components/insightsproperties.ts +35 -0
  121. package/src/models/components/listresponseinsightsoutput.ts +116 -0
  122. package/src/models/components/promptllmconfig.ts +1 -1
  123. package/src/models/components/supportedllm.ts +119 -0
  124. package/src/models/components/takeoutrequeststatus.ts +42 -0
  125. package/src/models/components/takeoutstatusresponse.ts +99 -0
  126. package/src/models/operations/gettakeoutapiv1takeoutsgetjobidget.ts +87 -0
  127. package/src/models/operations/index.ts +2 -0
  128. package/src/models/operations/insightslist.ts +151 -0
  129. package/src/sdk/insights.ts +22 -1
  130. package/src/sdk/prompts.ts +16 -0
  131. package/src/sdk/sdk.ts +11 -5
  132. package/src/sdk/takeouts.ts +40 -0
  133. package/src/sdk/v1.ts +48 -0
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * Status of a takeout request.
10
+ */
11
+ export const TakeoutRequestStatus = {
12
+ Pending: "pending",
13
+ InProgress: "in_progress",
14
+ Completed: "completed",
15
+ Failed: "failed",
16
+ Canceled: "canceled",
17
+ } as const;
18
+ /**
19
+ * Status of a takeout request.
20
+ */
21
+ export type TakeoutRequestStatus = ClosedEnum<typeof TakeoutRequestStatus>;
22
+
23
+ /** @internal */
24
+ export const TakeoutRequestStatus$inboundSchema: z.ZodNativeEnum<
25
+ typeof TakeoutRequestStatus
26
+ > = z.nativeEnum(TakeoutRequestStatus);
27
+
28
+ /** @internal */
29
+ export const TakeoutRequestStatus$outboundSchema: z.ZodNativeEnum<
30
+ typeof TakeoutRequestStatus
31
+ > = TakeoutRequestStatus$inboundSchema;
32
+
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export namespace TakeoutRequestStatus$ {
38
+ /** @deprecated use `TakeoutRequestStatus$inboundSchema` instead. */
39
+ export const inboundSchema = TakeoutRequestStatus$inboundSchema;
40
+ /** @deprecated use `TakeoutRequestStatus$outboundSchema` instead. */
41
+ export const outboundSchema = TakeoutRequestStatus$outboundSchema;
42
+ }
@@ -0,0 +1,99 @@
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
+ TakeoutRequestStatus,
12
+ TakeoutRequestStatus$inboundSchema,
13
+ TakeoutRequestStatus$outboundSchema,
14
+ } from "./takeoutrequeststatus.js";
15
+
16
+ export type TakeoutStatusResponse = {
17
+ jobId: string;
18
+ /**
19
+ * Status of a takeout request.
20
+ */
21
+ status: TakeoutRequestStatus;
22
+ updatedAt: Date;
23
+ downloadLinks?: Array<string> | null | undefined;
24
+ };
25
+
26
+ /** @internal */
27
+ export const TakeoutStatusResponse$inboundSchema: z.ZodType<
28
+ TakeoutStatusResponse,
29
+ z.ZodTypeDef,
30
+ unknown
31
+ > = z.object({
32
+ job_id: z.string(),
33
+ status: TakeoutRequestStatus$inboundSchema,
34
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
35
+ download_links: z.nullable(z.array(z.string())).optional(),
36
+ }).transform((v) => {
37
+ return remap$(v, {
38
+ "job_id": "jobId",
39
+ "updated_at": "updatedAt",
40
+ "download_links": "downloadLinks",
41
+ });
42
+ });
43
+
44
+ /** @internal */
45
+ export type TakeoutStatusResponse$Outbound = {
46
+ job_id: string;
47
+ status: string;
48
+ updated_at: string;
49
+ download_links?: Array<string> | null | undefined;
50
+ };
51
+
52
+ /** @internal */
53
+ export const TakeoutStatusResponse$outboundSchema: z.ZodType<
54
+ TakeoutStatusResponse$Outbound,
55
+ z.ZodTypeDef,
56
+ TakeoutStatusResponse
57
+ > = z.object({
58
+ jobId: z.string(),
59
+ status: TakeoutRequestStatus$outboundSchema,
60
+ updatedAt: z.date().transform(v => v.toISOString()),
61
+ downloadLinks: z.nullable(z.array(z.string())).optional(),
62
+ }).transform((v) => {
63
+ return remap$(v, {
64
+ jobId: "job_id",
65
+ updatedAt: "updated_at",
66
+ downloadLinks: "download_links",
67
+ });
68
+ });
69
+
70
+ /**
71
+ * @internal
72
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
73
+ */
74
+ export namespace TakeoutStatusResponse$ {
75
+ /** @deprecated use `TakeoutStatusResponse$inboundSchema` instead. */
76
+ export const inboundSchema = TakeoutStatusResponse$inboundSchema;
77
+ /** @deprecated use `TakeoutStatusResponse$outboundSchema` instead. */
78
+ export const outboundSchema = TakeoutStatusResponse$outboundSchema;
79
+ /** @deprecated use `TakeoutStatusResponse$Outbound` instead. */
80
+ export type Outbound = TakeoutStatusResponse$Outbound;
81
+ }
82
+
83
+ export function takeoutStatusResponseToJSON(
84
+ takeoutStatusResponse: TakeoutStatusResponse,
85
+ ): string {
86
+ return JSON.stringify(
87
+ TakeoutStatusResponse$outboundSchema.parse(takeoutStatusResponse),
88
+ );
89
+ }
90
+
91
+ export function takeoutStatusResponseFromJSON(
92
+ jsonString: string,
93
+ ): SafeParseResult<TakeoutStatusResponse, SDKValidationError> {
94
+ return safeParse(
95
+ jsonString,
96
+ (x) => TakeoutStatusResponse$inboundSchema.parse(JSON.parse(x)),
97
+ `Failed to parse 'TakeoutStatusResponse' from JSON`,
98
+ );
99
+ }
@@ -0,0 +1,87 @@
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 GetTakeoutApiV1TakeoutsGetJobIdGetRequest = {
12
+ jobId: string;
13
+ };
14
+
15
+ /** @internal */
16
+ export const GetTakeoutApiV1TakeoutsGetJobIdGetRequest$inboundSchema: z.ZodType<
17
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ job_id: z.string(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "job_id": "jobId",
25
+ });
26
+ });
27
+
28
+ /** @internal */
29
+ export type GetTakeoutApiV1TakeoutsGetJobIdGetRequest$Outbound = {
30
+ job_id: string;
31
+ };
32
+
33
+ /** @internal */
34
+ export const GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema:
35
+ z.ZodType<
36
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest$Outbound,
37
+ z.ZodTypeDef,
38
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest
39
+ > = z.object({
40
+ jobId: z.string(),
41
+ }).transform((v) => {
42
+ return remap$(v, {
43
+ jobId: "job_id",
44
+ });
45
+ });
46
+
47
+ /**
48
+ * @internal
49
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
+ */
51
+ export namespace GetTakeoutApiV1TakeoutsGetJobIdGetRequest$ {
52
+ /** @deprecated use `GetTakeoutApiV1TakeoutsGetJobIdGetRequest$inboundSchema` instead. */
53
+ export const inboundSchema =
54
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest$inboundSchema;
55
+ /** @deprecated use `GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema` instead. */
56
+ export const outboundSchema =
57
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema;
58
+ /** @deprecated use `GetTakeoutApiV1TakeoutsGetJobIdGetRequest$Outbound` instead. */
59
+ export type Outbound = GetTakeoutApiV1TakeoutsGetJobIdGetRequest$Outbound;
60
+ }
61
+
62
+ export function getTakeoutApiV1TakeoutsGetJobIdGetRequestToJSON(
63
+ getTakeoutApiV1TakeoutsGetJobIdGetRequest:
64
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
65
+ ): string {
66
+ return JSON.stringify(
67
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest$outboundSchema.parse(
68
+ getTakeoutApiV1TakeoutsGetJobIdGetRequest,
69
+ ),
70
+ );
71
+ }
72
+
73
+ export function getTakeoutApiV1TakeoutsGetJobIdGetRequestFromJSON(
74
+ jsonString: string,
75
+ ): SafeParseResult<
76
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
77
+ SDKValidationError
78
+ > {
79
+ return safeParse(
80
+ jsonString,
81
+ (x) =>
82
+ GetTakeoutApiV1TakeoutsGetJobIdGetRequest$inboundSchema.parse(
83
+ JSON.parse(x),
84
+ ),
85
+ `Failed to parse 'GetTakeoutApiV1TakeoutsGetJobIdGetRequest' from JSON`,
86
+ );
87
+ }
@@ -25,6 +25,8 @@ export * from "./generatesessionrecordingurls.js";
25
25
  export * from "./getsessiondatabysessionid.js";
26
26
  export * from "./getsessiondatabysid.js";
27
27
  export * from "./getsessiontoolcallresultbyid.js";
28
+ export * from "./gettakeoutapiv1takeoutsgetjobidget.js";
29
+ export * from "./insightslist.js";
28
30
  export * from "./insightstoolupdate.js";
29
31
  export * from "./insightsworkflowgetbyid.js";
30
32
  export * from "./insightsworkflowlist.js";
@@ -0,0 +1,151 @@
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 InsightsListRequest = {
13
+ /**
14
+ * The page number from which to start (0-based)
15
+ */
16
+ page?: number | null | undefined;
17
+ /**
18
+ * The maximum number of items to return
19
+ */
20
+ limit?: number | undefined;
21
+ /**
22
+ * String names of fields to search. Correspond by index to search field values
23
+ */
24
+ searchFields?: Array<components.InsightsProperties> | undefined;
25
+ /**
26
+ * Values of fields to search. Correspond by index to search fields. Unless field name contains "list", an individual search field value cannot be a list
27
+ */
28
+ searchFieldValues?: Array<string> | undefined;
29
+ /**
30
+ * The field whose value should be used to order the results
31
+ */
32
+ orderBy?: components.InsightsProperties | null | undefined;
33
+ /**
34
+ * The direction in which to order the results
35
+ */
36
+ orderByDirection?: components.OrderByDirection | null | undefined;
37
+ /**
38
+ * The fields to include in the response
39
+ */
40
+ fields?: Array<components.InsightsProperties> | null | undefined;
41
+ /**
42
+ * The start datetime for filtering results
43
+ */
44
+ startDatetime?: string | null | undefined;
45
+ /**
46
+ * The end datetime for filtering results
47
+ */
48
+ endDatetime?: string | null | undefined;
49
+ };
50
+
51
+ /** @internal */
52
+ export const InsightsListRequest$inboundSchema: z.ZodType<
53
+ InsightsListRequest,
54
+ z.ZodTypeDef,
55
+ unknown
56
+ > = z.object({
57
+ page: z.nullable(z.number().int()).optional(),
58
+ limit: z.number().int().default(25),
59
+ search_fields: z.array(components.InsightsProperties$inboundSchema)
60
+ .optional(),
61
+ search_field_values: z.array(z.string()).optional(),
62
+ order_by: z.nullable(components.InsightsProperties$inboundSchema).optional(),
63
+ order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
64
+ .optional(),
65
+ fields: z.nullable(z.array(components.InsightsProperties$inboundSchema))
66
+ .optional(),
67
+ start_datetime: z.nullable(z.string()).optional(),
68
+ end_datetime: z.nullable(z.string()).optional(),
69
+ }).transform((v) => {
70
+ return remap$(v, {
71
+ "search_fields": "searchFields",
72
+ "search_field_values": "searchFieldValues",
73
+ "order_by": "orderBy",
74
+ "order_by_direction": "orderByDirection",
75
+ "start_datetime": "startDatetime",
76
+ "end_datetime": "endDatetime",
77
+ });
78
+ });
79
+
80
+ /** @internal */
81
+ export type InsightsListRequest$Outbound = {
82
+ page?: number | null | undefined;
83
+ limit: number;
84
+ search_fields?: Array<string> | undefined;
85
+ search_field_values?: Array<string> | undefined;
86
+ order_by?: string | null | undefined;
87
+ order_by_direction?: string | null | undefined;
88
+ fields?: Array<string> | null | undefined;
89
+ start_datetime?: string | null | undefined;
90
+ end_datetime?: string | null | undefined;
91
+ };
92
+
93
+ /** @internal */
94
+ export const InsightsListRequest$outboundSchema: z.ZodType<
95
+ InsightsListRequest$Outbound,
96
+ z.ZodTypeDef,
97
+ InsightsListRequest
98
+ > = z.object({
99
+ page: z.nullable(z.number().int()).optional(),
100
+ limit: z.number().int().default(25),
101
+ searchFields: z.array(components.InsightsProperties$outboundSchema)
102
+ .optional(),
103
+ searchFieldValues: z.array(z.string()).optional(),
104
+ orderBy: z.nullable(components.InsightsProperties$outboundSchema).optional(),
105
+ orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
106
+ .optional(),
107
+ fields: z.nullable(z.array(components.InsightsProperties$outboundSchema))
108
+ .optional(),
109
+ startDatetime: z.nullable(z.string()).optional(),
110
+ endDatetime: z.nullable(z.string()).optional(),
111
+ }).transform((v) => {
112
+ return remap$(v, {
113
+ searchFields: "search_fields",
114
+ searchFieldValues: "search_field_values",
115
+ orderBy: "order_by",
116
+ orderByDirection: "order_by_direction",
117
+ startDatetime: "start_datetime",
118
+ endDatetime: "end_datetime",
119
+ });
120
+ });
121
+
122
+ /**
123
+ * @internal
124
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
125
+ */
126
+ export namespace InsightsListRequest$ {
127
+ /** @deprecated use `InsightsListRequest$inboundSchema` instead. */
128
+ export const inboundSchema = InsightsListRequest$inboundSchema;
129
+ /** @deprecated use `InsightsListRequest$outboundSchema` instead. */
130
+ export const outboundSchema = InsightsListRequest$outboundSchema;
131
+ /** @deprecated use `InsightsListRequest$Outbound` instead. */
132
+ export type Outbound = InsightsListRequest$Outbound;
133
+ }
134
+
135
+ export function insightsListRequestToJSON(
136
+ insightsListRequest: InsightsListRequest,
137
+ ): string {
138
+ return JSON.stringify(
139
+ InsightsListRequest$outboundSchema.parse(insightsListRequest),
140
+ );
141
+ }
142
+
143
+ export function insightsListRequestFromJSON(
144
+ jsonString: string,
145
+ ): SafeParseResult<InsightsListRequest, SDKValidationError> {
146
+ return safeParse(
147
+ jsonString,
148
+ (x) => InsightsListRequest$inboundSchema.parse(JSON.parse(x)),
149
+ `Failed to parse 'InsightsListRequest' from JSON`,
150
+ );
151
+ }
@@ -2,7 +2,11 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
- import { ClientSDK } from "../lib/sdks.js";
5
+ import { insightsList } from "../funcs/insightsList.js";
6
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
+ import * as components from "../models/components/index.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { unwrapAsync } from "../types/fp.js";
6
10
  import { SyllableSDKTools } from "./syllablesdktools.js";
7
11
  import { Workflows } from "./workflows.js";
8
12
 
@@ -16,4 +20,21 @@ export class Insights extends ClientSDK {
16
20
  get tools(): SyllableSDKTools {
17
21
  return (this._tools ??= new SyllableSDKTools(this._options));
18
22
  }
23
+
24
+ /**
25
+ * Insights List
26
+ *
27
+ * @remarks
28
+ * List the existing insight_tools
29
+ */
30
+ async list(
31
+ request: operations.InsightsListRequest,
32
+ options?: RequestOptions,
33
+ ): Promise<components.ListResponseInsightsOutput> {
34
+ return unwrapAsync(insightsList(
35
+ this,
36
+ request,
37
+ options,
38
+ ));
39
+ }
19
40
  }
@@ -6,6 +6,7 @@ import { promptsCreate } from "../funcs/promptsCreate.js";
6
6
  import { promptsDelete } from "../funcs/promptsDelete.js";
7
7
  import { promptsGetById } from "../funcs/promptsGetById.js";
8
8
  import { promptsList } from "../funcs/promptsList.js";
9
+ import { promptsPromptGetSupportedLlms } from "../funcs/promptsPromptGetSupportedLlms.js";
9
10
  import { promptsPromptsHistory } from "../funcs/promptsPromptsHistory.js";
10
11
  import { promptsUpdate } from "../funcs/promptsUpdate.js";
11
12
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
@@ -115,4 +116,19 @@ export class Prompts extends ClientSDK {
115
116
  options,
116
117
  ));
117
118
  }
119
+
120
+ /**
121
+ * Get Supported Llm Configs
122
+ *
123
+ * @remarks
124
+ * Get supported LLM configs.
125
+ */
126
+ async promptGetSupportedLlms(
127
+ options?: RequestOptions,
128
+ ): Promise<Array<components.SupportedLlm>> {
129
+ return unwrapAsync(promptsPromptGetSupportedLlms(
130
+ this,
131
+ options,
132
+ ));
133
+ }
118
134
  }
package/src/sdk/sdk.ts CHANGED
@@ -17,6 +17,7 @@ import { Services } from "./services.js";
17
17
  import { SessionDebug } from "./sessiondebug.js";
18
18
  import { SessionLabels } from "./sessionlabels.js";
19
19
  import { Sessions } from "./sessions.js";
20
+ import { Takeouts } from "./takeouts.js";
20
21
  import { Tools } from "./tools.js";
21
22
  import { V1 } from "./v1.js";
22
23
 
@@ -51,6 +52,11 @@ export class SyllableSDK extends ClientSDK {
51
52
  return (this._insights ??= new Insights(this._options));
52
53
  }
53
54
 
55
+ private _v1?: V1;
56
+ get v1(): V1 {
57
+ return (this._v1 ??= new V1(this._options));
58
+ }
59
+
54
60
  private _customMessages?: CustomMessages;
55
61
  get customMessages(): CustomMessages {
56
62
  return (this._customMessages ??= new CustomMessages(this._options));
@@ -91,13 +97,13 @@ export class SyllableSDK extends ClientSDK {
91
97
  return (this._dashboards ??= new Dashboards(this._options));
92
98
  }
93
99
 
94
- private _v1?: V1;
95
- get v1(): V1 {
96
- return (this._v1 ??= new V1(this._options));
97
- }
98
-
99
100
  private _languageGroups?: LanguageGroups;
100
101
  get languageGroups(): LanguageGroups {
101
102
  return (this._languageGroups ??= new LanguageGroups(this._options));
102
103
  }
104
+
105
+ private _takeouts?: Takeouts;
106
+ get takeouts(): Takeouts {
107
+ return (this._takeouts ??= new Takeouts(this._options));
108
+ }
103
109
  }
@@ -0,0 +1,40 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { takeoutsCreateTakeoutApiV1TakeoutsCreatePost } from "../funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js";
6
+ import { takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet } from "../funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as components from "../models/components/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { unwrapAsync } from "../types/fp.js";
11
+
12
+ export class Takeouts extends ClientSDK {
13
+ /**
14
+ * Create Takeout
15
+ */
16
+ async createTakeoutApiV1TakeoutsCreatePost(
17
+ request: components.DaoTakeoutCreate,
18
+ options?: RequestOptions,
19
+ ): Promise<components.CreateTakeoutResponse> {
20
+ return unwrapAsync(takeoutsCreateTakeoutApiV1TakeoutsCreatePost(
21
+ this,
22
+ request,
23
+ options,
24
+ ));
25
+ }
26
+
27
+ /**
28
+ * Get Takeout
29
+ */
30
+ async getTakeoutApiV1TakeoutsGetJobIdGet(
31
+ request: operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
32
+ options?: RequestOptions,
33
+ ): Promise<components.TakeoutStatusResponse> {
34
+ return unwrapAsync(takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(
35
+ this,
36
+ request,
37
+ options,
38
+ ));
39
+ }
40
+ }
package/src/sdk/v1.ts CHANGED
@@ -2,6 +2,9 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { v1CreateTakeoutApiV1TakeoutsCreatePost } from "../funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.js";
6
+ import { v1GetTakeoutApiV1TakeoutsGetJobIdGet } from "../funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.js";
7
+ import { v1List } from "../funcs/v1List.js";
5
8
  import { v1PostGetDashboard } from "../funcs/v1PostGetDashboard.js";
6
9
  import { v1PostListDashboard } from "../funcs/v1PostListDashboard.js";
7
10
  import { v1PostSessionEventsDashboard } from "../funcs/v1PostSessionEventsDashboard.js";
@@ -14,6 +17,23 @@ import * as operations from "../models/operations/index.js";
14
17
  import { unwrapAsync } from "../types/fp.js";
15
18
 
16
19
  export class V1 extends ClientSDK {
20
+ /**
21
+ * Insights List
22
+ *
23
+ * @remarks
24
+ * List the existing insight_tools
25
+ */
26
+ async list(
27
+ request: operations.InsightsListRequest,
28
+ options?: RequestOptions,
29
+ ): Promise<components.ListResponseInsightsOutput> {
30
+ return unwrapAsync(v1List(
31
+ this,
32
+ request,
33
+ options,
34
+ ));
35
+ }
36
+
17
37
  /**
18
38
  * Post List Dashboards
19
39
  *
@@ -137,4 +157,32 @@ export class V1 extends ClientSDK {
137
157
  options,
138
158
  ));
139
159
  }
160
+
161
+ /**
162
+ * Create Takeout
163
+ */
164
+ async createTakeoutApiV1TakeoutsCreatePost(
165
+ request: components.DaoTakeoutCreate,
166
+ options?: RequestOptions,
167
+ ): Promise<components.CreateTakeoutResponse> {
168
+ return unwrapAsync(v1CreateTakeoutApiV1TakeoutsCreatePost(
169
+ this,
170
+ request,
171
+ options,
172
+ ));
173
+ }
174
+
175
+ /**
176
+ * Get Takeout
177
+ */
178
+ async getTakeoutApiV1TakeoutsGetJobIdGet(
179
+ request: operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest,
180
+ options?: RequestOptions,
181
+ ): Promise<components.TakeoutStatusResponse> {
182
+ return unwrapAsync(v1GetTakeoutApiV1TakeoutsGetJobIdGet(
183
+ this,
184
+ request,
185
+ options,
186
+ ));
187
+ }
140
188
  }