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
package/README.md CHANGED
@@ -196,6 +196,7 @@ run();
196
196
 
197
197
  ### [insights](docs/sdks/insights/README.md)
198
198
 
199
+ * [list](docs/sdks/insights/README.md#list) - Insights List
199
200
 
200
201
  #### [insights.tools](docs/sdks/syllablesdktools/README.md)
201
202
 
@@ -229,6 +230,7 @@ run();
229
230
  * [getById](docs/sdks/prompts/README.md#getbyid) - Get Prompt By Id
230
231
  * [delete](docs/sdks/prompts/README.md#delete) - Delete Prompt
231
232
  * [promptsHistory](docs/sdks/prompts/README.md#promptshistory) - Get Prompt History
233
+ * [promptGetSupportedLlms](docs/sdks/prompts/README.md#promptgetsupportedllms) - Get Supported Llm Configs
232
234
 
233
235
  ### [services](docs/sdks/services/README.md)
234
236
 
@@ -270,6 +272,11 @@ run();
270
272
  * [getById](docs/sdks/transcript/README.md#getbyid) - Get Session Transcript By Id
271
273
 
272
274
 
275
+ ### [takeouts](docs/sdks/takeouts/README.md)
276
+
277
+ * [createTakeoutApiV1TakeoutsCreatePost](docs/sdks/takeouts/README.md#createtakeoutapiv1takeoutscreatepost) - Create Takeout
278
+ * [getTakeoutApiV1TakeoutsGetJobIdGet](docs/sdks/takeouts/README.md#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
279
+
273
280
  ### [tools](docs/sdks/tools/README.md)
274
281
 
275
282
  * [list](docs/sdks/tools/README.md#list) - Tool List
@@ -280,12 +287,15 @@ run();
280
287
 
281
288
  ### [v1](docs/sdks/v1/README.md)
282
289
 
290
+ * [list](docs/sdks/v1/README.md#list) - Insights List
283
291
  * [postListDashboard](docs/sdks/v1/README.md#postlistdashboard) - Post List Dashboards
284
292
  * [postGetDashboard](docs/sdks/v1/README.md#postgetdashboard) - Post Fetch Info
285
293
  * [~~postSessionEventsDashboard~~](docs/sdks/v1/README.md#postsessioneventsdashboard) - Post Session Events :warning: **Deprecated**
286
294
  * [~~postSessionSummaryDashboard~~](docs/sdks/v1/README.md#postsessionsummarydashboard) - Post Session Summary :warning: **Deprecated**
287
295
  * [~~postSessionTransfersDashboard~~](docs/sdks/v1/README.md#postsessiontransfersdashboard) - Post Session Transfers :warning: **Deprecated**
288
296
  * [~~postSessionsDashboard~~](docs/sdks/v1/README.md#postsessionsdashboard) - Post Sessions :warning: **Deprecated**
297
+ * [createTakeoutApiV1TakeoutsCreatePost](docs/sdks/v1/README.md#createtakeoutapiv1takeoutscreatepost) - Create Takeout
298
+ * [getTakeoutApiV1TakeoutsGetJobIdGet](docs/sdks/v1/README.md#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
289
299
 
290
300
  </details>
291
301
  <!-- End Available Resources and Operations [operations] -->
@@ -333,6 +343,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
333
343
  - [`dataSourcesList`](docs/sdks/datasources/README.md#list) - List Data Sources
334
344
  - [`dataSourcesUpdate`](docs/sdks/datasources/README.md#update) - Update Data Source
335
345
  - [`eventsList`](docs/sdks/events/README.md#list) - Events List
346
+ - [`insightsList`](docs/sdks/insights/README.md#list) - Insights List
336
347
  - [`insightsToolsCreate`](docs/sdks/syllablesdktools/README.md#create) - Create Insight Tool
337
348
  - [`insightsToolsGetById`](docs/sdks/syllablesdktools/README.md#getbyid) - Get Insight Tool By Id
338
349
  - [`insightsToolsInsightToolGetDefinitions`](docs/sdks/syllablesdktools/README.md#insighttoolgetdefinitions) - Get Insight Tool Definitions
@@ -352,6 +363,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
352
363
  - [`promptsDelete`](docs/sdks/prompts/README.md#delete) - Delete Prompt
353
364
  - [`promptsGetById`](docs/sdks/prompts/README.md#getbyid) - Get Prompt By Id
354
365
  - [`promptsList`](docs/sdks/prompts/README.md#list) - Prompt List
366
+ - [`promptsPromptGetSupportedLlms`](docs/sdks/prompts/README.md#promptgetsupportedllms) - Get Supported Llm Configs
355
367
  - [`promptsPromptsHistory`](docs/sdks/prompts/README.md#promptshistory) - Get Prompt History
356
368
  - [`promptsUpdate`](docs/sdks/prompts/README.md#update) - Update Prompt
357
369
  - [`servicesCreate`](docs/sdks/services/README.md#create) - Create Service
@@ -372,11 +384,16 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
372
384
  - [`sessionsSessionRecordingStream`](docs/sdks/sessions/README.md#sessionrecordingstream) - Stream Recording
373
385
  - [`sessionsSummaryGetById`](docs/sdks/summary/README.md#getbyid) - Get Session Summary By Id
374
386
  - [`sessionsTranscriptGetById`](docs/sdks/transcript/README.md#getbyid) - Get Session Transcript By Id
387
+ - [`takeoutsCreateTakeoutApiV1TakeoutsCreatePost`](docs/sdks/takeouts/README.md#createtakeoutapiv1takeoutscreatepost) - Create Takeout
388
+ - [`takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet`](docs/sdks/takeouts/README.md#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
375
389
  - [`toolsCreate`](docs/sdks/tools/README.md#create) - Create Tool
376
390
  - [`toolsDelete`](docs/sdks/tools/README.md#delete) - Delete Tool
377
391
  - [`toolsGetByName`](docs/sdks/tools/README.md#getbyname) - Tool Info
378
392
  - [`toolsList`](docs/sdks/tools/README.md#list) - Tool List
379
393
  - [`toolsUpdate`](docs/sdks/tools/README.md#update) - Update Tool
394
+ - [`v1CreateTakeoutApiV1TakeoutsCreatePost`](docs/sdks/v1/README.md#createtakeoutapiv1takeoutscreatepost) - Create Takeout
395
+ - [`v1GetTakeoutApiV1TakeoutsGetJobIdGet`](docs/sdks/v1/README.md#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
396
+ - [`v1List`](docs/sdks/v1/README.md#list) - Insights List
380
397
  - [`v1PostGetDashboard`](docs/sdks/v1/README.md#postgetdashboard) - Post Fetch Info
381
398
  - [`v1PostListDashboard`](docs/sdks/v1/README.md#postlistdashboard) - Post List Dashboards
382
399
  - ~~[`dashboardsPostSessionEventsDashboard`](docs/sdks/dashboards/README.md#postsessioneventsdashboard)~~ - Post Session Events :warning: **Deprecated**
@@ -3,4 +3,101 @@
3
3
 
4
4
  ## Overview
5
5
 
6
+ Operations related to insights results. An insight is a tool that processes conversation data to extract information and generate reports.
7
+
6
8
  ### Available Operations
9
+
10
+ * [list](#list) - Insights List
11
+
12
+ ## list
13
+
14
+ List the existing insight_tools
15
+
16
+ ### Example Usage
17
+
18
+ ```typescript
19
+ import { SyllableSDK } from "syllable-sdk";
20
+
21
+ const syllableSDK = new SyllableSDK({
22
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
23
+ });
24
+
25
+ async function run() {
26
+ const result = await syllableSDK.insights.list({
27
+ page: 0,
28
+ searchFields: [
29
+ "insight_tool_id",
30
+ ],
31
+ searchFieldValues: [
32
+ "Some Object Name",
33
+ ],
34
+ startDatetime: "2023-01-01T00:00:00Z",
35
+ endDatetime: "2024-01-01T00:00:00Z",
36
+ });
37
+
38
+ // Handle the result
39
+ console.log(result);
40
+ }
41
+
42
+ run();
43
+ ```
44
+
45
+ ### Standalone function
46
+
47
+ The standalone function version of this method:
48
+
49
+ ```typescript
50
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
51
+ import { insightsList } from "syllable-sdk/funcs/insightsList.js";
52
+
53
+ // Use `SyllableSDKCore` for best tree-shaking performance.
54
+ // You can create one instance of it to use across an application.
55
+ const syllableSDK = new SyllableSDKCore({
56
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
57
+ });
58
+
59
+ async function run() {
60
+ const res = await insightsList(syllableSDK, {
61
+ page: 0,
62
+ searchFields: [
63
+ "insight_tool_id",
64
+ ],
65
+ searchFieldValues: [
66
+ "Some Object Name",
67
+ ],
68
+ startDatetime: "2023-01-01T00:00:00Z",
69
+ endDatetime: "2024-01-01T00:00:00Z",
70
+ });
71
+
72
+ if (!res.ok) {
73
+ throw res.error;
74
+ }
75
+
76
+ const { value: result } = res;
77
+
78
+ // Handle the result
79
+ console.log(result);
80
+ }
81
+
82
+ run();
83
+ ```
84
+
85
+ ### Parameters
86
+
87
+ | Parameter | Type | Required | Description |
88
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
89
+ | `request` | [operations.InsightsListRequest](../../models/operations/insightslistrequest.md) | :heavy_check_mark: | The request object to use for the request. |
90
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
91
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
92
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
93
+
94
+ ### Response
95
+
96
+ **Promise\<[components.ListResponseInsightsOutput](../../models/components/listresponseinsightsoutput.md)\>**
97
+
98
+ ### Errors
99
+
100
+ | Error Type | Status Code | Content Type |
101
+ | -------------------------- | -------------------------- | -------------------------- |
102
+ | errors.HTTPValidationError | 422 | application/json |
103
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -13,6 +13,7 @@ Operations related to prompts. A prompt defines the behavior of an age
13
13
  * [getById](#getbyid) - Get Prompt By Id
14
14
  * [delete](#delete) - Delete Prompt
15
15
  * [promptsHistory](#promptshistory) - Get Prompt History
16
+ * [promptGetSupportedLlms](#promptgetsupportedllms) - Get Supported Llm Configs
16
17
 
17
18
  ## list
18
19
 
@@ -127,7 +128,8 @@ async function run() {
127
128
  type: "prompt_v1",
128
129
  context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
129
130
  tools: [
130
- "summary, hangup",
131
+ "summary",
132
+ "hangup",
131
133
  ],
132
134
  llmConfig: {
133
135
  version: "2024-05-13",
@@ -165,7 +167,8 @@ async function run() {
165
167
  type: "prompt_v1",
166
168
  context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
167
169
  tools: [
168
- "summary, hangup",
170
+ "summary",
171
+ "hangup",
169
172
  ],
170
173
  llmConfig: {
171
174
  version: "2024-05-13",
@@ -228,7 +231,8 @@ async function run() {
228
231
  type: "prompt_v1",
229
232
  context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
230
233
  tools: [
231
- "summary, hangup",
234
+ "summary",
235
+ "hangup",
232
236
  ],
233
237
  llmConfig: {
234
238
  version: "2024-05-13",
@@ -268,7 +272,8 @@ async function run() {
268
272
  type: "prompt_v1",
269
273
  context: "You are a weather agent. Answer the user's questions about weather and nothing else.",
270
274
  tools: [
271
- "summary, hangup",
275
+ "summary",
276
+ "hangup",
272
277
  ],
273
278
  llmConfig: {
274
279
  version: "2024-05-13",
@@ -544,4 +549,75 @@ run();
544
549
  | Error Type | Status Code | Content Type |
545
550
  | -------------------------- | -------------------------- | -------------------------- |
546
551
  | errors.HTTPValidationError | 422 | application/json |
547
- | errors.SDKError | 4XX, 5XX | \*/\* |
552
+ | errors.SDKError | 4XX, 5XX | \*/\* |
553
+
554
+ ## promptGetSupportedLlms
555
+
556
+ Get supported LLM configs.
557
+
558
+ ### Example Usage
559
+
560
+ ```typescript
561
+ import { SyllableSDK } from "syllable-sdk";
562
+
563
+ const syllableSDK = new SyllableSDK({
564
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
565
+ });
566
+
567
+ async function run() {
568
+ const result = await syllableSDK.prompts.promptGetSupportedLlms();
569
+
570
+ // Handle the result
571
+ console.log(result);
572
+ }
573
+
574
+ run();
575
+ ```
576
+
577
+ ### Standalone function
578
+
579
+ The standalone function version of this method:
580
+
581
+ ```typescript
582
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
583
+ import { promptsPromptGetSupportedLlms } from "syllable-sdk/funcs/promptsPromptGetSupportedLlms.js";
584
+
585
+ // Use `SyllableSDKCore` for best tree-shaking performance.
586
+ // You can create one instance of it to use across an application.
587
+ const syllableSDK = new SyllableSDKCore({
588
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
589
+ });
590
+
591
+ async function run() {
592
+ const res = await promptsPromptGetSupportedLlms(syllableSDK);
593
+
594
+ if (!res.ok) {
595
+ throw res.error;
596
+ }
597
+
598
+ const { value: result } = res;
599
+
600
+ // Handle the result
601
+ console.log(result);
602
+ }
603
+
604
+ run();
605
+ ```
606
+
607
+ ### Parameters
608
+
609
+ | Parameter | Type | Required | Description |
610
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
611
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
612
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
613
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
614
+
615
+ ### Response
616
+
617
+ **Promise\<[components.SupportedLlm[]](../../models/.md)\>**
618
+
619
+ ### Errors
620
+
621
+ | Error Type | Status Code | Content Type |
622
+ | --------------- | --------------- | --------------- |
623
+ | errors.SDKError | 4XX, 5XX | \*/\* |
@@ -0,0 +1,163 @@
1
+ # Takeouts
2
+ (*takeouts*)
3
+
4
+ ## Overview
5
+
6
+ ### Available Operations
7
+
8
+ * [createTakeoutApiV1TakeoutsCreatePost](#createtakeoutapiv1takeoutscreatepost) - Create Takeout
9
+ * [getTakeoutApiV1TakeoutsGetJobIdGet](#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
10
+
11
+ ## createTakeoutApiV1TakeoutsCreatePost
12
+
13
+ Create Takeout
14
+
15
+ ### Example Usage
16
+
17
+ ```typescript
18
+ import { SyllableSDK } from "syllable-sdk";
19
+
20
+ const syllableSDK = new SyllableSDK({
21
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
22
+ });
23
+
24
+ async function run() {
25
+ const result = await syllableSDK.takeouts.createTakeoutApiV1TakeoutsCreatePost({
26
+ subOrganizationId: 38300,
27
+ });
28
+
29
+ // Handle the result
30
+ console.log(result);
31
+ }
32
+
33
+ run();
34
+ ```
35
+
36
+ ### Standalone function
37
+
38
+ The standalone function version of this method:
39
+
40
+ ```typescript
41
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
42
+ import { takeoutsCreateTakeoutApiV1TakeoutsCreatePost } from "syllable-sdk/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js";
43
+
44
+ // Use `SyllableSDKCore` for best tree-shaking performance.
45
+ // You can create one instance of it to use across an application.
46
+ const syllableSDK = new SyllableSDKCore({
47
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
48
+ });
49
+
50
+ async function run() {
51
+ const res = await takeoutsCreateTakeoutApiV1TakeoutsCreatePost(syllableSDK, {
52
+ subOrganizationId: 38300,
53
+ });
54
+
55
+ if (!res.ok) {
56
+ throw res.error;
57
+ }
58
+
59
+ const { value: result } = res;
60
+
61
+ // Handle the result
62
+ console.log(result);
63
+ }
64
+
65
+ run();
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+ | Parameter | Type | Required | Description |
71
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
72
+ | `request` | [components.DaoTakeoutCreate](../../models/components/daotakeoutcreate.md) | :heavy_check_mark: | The request object to use for the request. |
73
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
74
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
75
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
76
+
77
+ ### Response
78
+
79
+ **Promise\<[components.CreateTakeoutResponse](../../models/components/createtakeoutresponse.md)\>**
80
+
81
+ ### Errors
82
+
83
+ | Error Type | Status Code | Content Type |
84
+ | -------------------------- | -------------------------- | -------------------------- |
85
+ | errors.HTTPValidationError | 422 | application/json |
86
+ | errors.SDKError | 4XX, 5XX | \*/\* |
87
+
88
+ ## getTakeoutApiV1TakeoutsGetJobIdGet
89
+
90
+ Get Takeout
91
+
92
+ ### Example Usage
93
+
94
+ ```typescript
95
+ import { SyllableSDK } from "syllable-sdk";
96
+
97
+ const syllableSDK = new SyllableSDK({
98
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
99
+ });
100
+
101
+ async function run() {
102
+ const result = await syllableSDK.takeouts.getTakeoutApiV1TakeoutsGetJobIdGet({
103
+ jobId: "<id>",
104
+ });
105
+
106
+ // Handle the result
107
+ console.log(result);
108
+ }
109
+
110
+ run();
111
+ ```
112
+
113
+ ### Standalone function
114
+
115
+ The standalone function version of this method:
116
+
117
+ ```typescript
118
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
119
+ import { takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet } from "syllable-sdk/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js";
120
+
121
+ // Use `SyllableSDKCore` for best tree-shaking performance.
122
+ // You can create one instance of it to use across an application.
123
+ const syllableSDK = new SyllableSDKCore({
124
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
125
+ });
126
+
127
+ async function run() {
128
+ const res = await takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet(syllableSDK, {
129
+ jobId: "<id>",
130
+ });
131
+
132
+ if (!res.ok) {
133
+ throw res.error;
134
+ }
135
+
136
+ const { value: result } = res;
137
+
138
+ // Handle the result
139
+ console.log(result);
140
+ }
141
+
142
+ run();
143
+ ```
144
+
145
+ ### Parameters
146
+
147
+ | Parameter | Type | Required | Description |
148
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
149
+ | `request` | [operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest](../../models/operations/gettakeoutapiv1takeoutsgetjobidgetrequest.md) | :heavy_check_mark: | The request object to use for the request. |
150
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
151
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
152
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
153
+
154
+ ### Response
155
+
156
+ **Promise\<[components.TakeoutStatusResponse](../../models/components/takeoutstatusresponse.md)\>**
157
+
158
+ ### Errors
159
+
160
+ | Error Type | Status Code | Content Type |
161
+ | -------------------------- | -------------------------- | -------------------------- |
162
+ | errors.HTTPValidationError | 422 | application/json |
163
+ | errors.SDKError | 4XX, 5XX | \*/\* |