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.
- package/README.md +17 -0
- package/docs/sdks/insights/README.md +97 -0
- package/docs/sdks/prompts/README.md +81 -5
- package/docs/sdks/takeouts/README.md +163 -0
- package/docs/sdks/v1/README.md +251 -1
- package/funcs/insightsList.d.ts +17 -0
- package/funcs/insightsList.d.ts.map +1 -0
- package/funcs/insightsList.js +114 -0
- package/funcs/insightsList.js.map +1 -0
- package/funcs/promptsPromptGetSupportedLlms.d.ts +15 -0
- package/funcs/promptsPromptGetSupportedLlms.d.ts.map +1 -0
- package/funcs/promptsPromptGetSupportedLlms.js +89 -0
- package/funcs/promptsPromptGetSupportedLlms.js.map +1 -0
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts +13 -0
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +1 -0
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js +99 -0
- package/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.js.map +1 -0
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts +14 -0
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +1 -0
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js +105 -0
- package/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.js.map +1 -0
- package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.d.ts +13 -0
- package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.d.ts.map +1 -0
- package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.js +99 -0
- package/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.js.map +1 -0
- package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.d.ts +14 -0
- package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.d.ts.map +1 -0
- package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.js +105 -0
- package/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.js.map +1 -0
- package/funcs/v1List.d.ts +17 -0
- package/funcs/v1List.d.ts.map +1 -0
- package/funcs/v1List.js +114 -0
- package/funcs/v1List.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createtakeoutresponse.d.ts +31 -0
- package/models/components/createtakeoutresponse.d.ts.map +1 -0
- package/models/components/createtakeoutresponse.js +72 -0
- package/models/components/createtakeoutresponse.js.map +1 -0
- package/models/components/daotakeoutcreate.d.ts +31 -0
- package/models/components/daotakeoutcreate.d.ts.map +1 -0
- package/models/components/daotakeoutcreate.js +72 -0
- package/models/components/daotakeoutcreate.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/insightsoutput.d.ts +104 -0
- package/models/components/insightsoutput.d.ts.map +1 -0
- package/models/components/insightsoutput.js +127 -0
- package/models/components/insightsoutput.js.map +1 -0
- package/models/components/insightsproperties.d.ts +34 -0
- package/models/components/insightsproperties.d.ts.map +1 -0
- package/models/components/insightsproperties.js +52 -0
- package/models/components/insightsproperties.js.map +1 -0
- package/models/components/listresponseinsightsoutput.d.ts +53 -0
- package/models/components/listresponseinsightsoutput.d.ts.map +1 -0
- package/models/components/listresponseinsightsoutput.js +81 -0
- package/models/components/listresponseinsightsoutput.js.map +1 -0
- package/models/components/promptllmconfig.d.ts +1 -1
- package/models/components/supportedllm.d.ts +61 -0
- package/models/components/supportedllm.d.ts.map +1 -0
- package/models/components/supportedllm.js +81 -0
- package/models/components/supportedllm.js.map +1 -0
- package/models/components/takeoutrequeststatus.d.ts +43 -0
- package/models/components/takeoutrequeststatus.d.ts.map +1 -0
- package/models/components/takeoutrequeststatus.js +56 -0
- package/models/components/takeoutrequeststatus.js.map +1 -0
- package/models/components/takeoutstatusresponse.d.ts +39 -0
- package/models/components/takeoutstatusresponse.d.ts.map +1 -0
- package/models/components/takeoutstatusresponse.js +79 -0
- package/models/components/takeoutstatusresponse.js.map +1 -0
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts +29 -0
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.d.ts.map +1 -0
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js +68 -0
- package/models/operations/gettakeoutapiv1takeoutsgetjobidget.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/insightslist.d.ts +73 -0
- package/models/operations/insightslist.d.ts.map +1 -0
- package/models/operations/insightslist.js +101 -0
- package/models/operations/insightslist.js.map +1 -0
- package/openapi.json +1080 -233
- package/package.json +1 -1
- package/sdk/insights.d.ts +10 -1
- package/sdk/insights.d.ts.map +1 -1
- package/sdk/insights.js +11 -0
- package/sdk/insights.js.map +1 -1
- package/sdk/prompts.d.ts +7 -0
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +10 -0
- package/sdk/prompts.js.map +1 -1
- 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/takeouts.d.ts +14 -0
- package/sdk/takeouts.d.ts.map +1 -0
- package/sdk/takeouts.js +26 -0
- package/sdk/takeouts.js.map +1 -0
- package/sdk/v1.d.ts +15 -0
- package/sdk/v1.d.ts.map +1 -1
- package/sdk/v1.js +24 -0
- package/sdk/v1.js.map +1 -1
- package/src/funcs/insightsList.ts +148 -0
- package/src/funcs/promptsPromptGetSupportedLlms.ts +112 -0
- package/src/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.ts +132 -0
- package/src/funcs/takeoutsGetTakeoutApiV1TakeoutsGetJobIdGet.ts +142 -0
- package/src/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.ts +132 -0
- package/src/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.ts +142 -0
- package/src/funcs/v1List.ts +148 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/createtakeoutresponse.ts +81 -0
- package/src/models/components/daotakeoutcreate.ts +81 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/insightsoutput.ts +207 -0
- package/src/models/components/insightsproperties.ts +35 -0
- package/src/models/components/listresponseinsightsoutput.ts +116 -0
- package/src/models/components/promptllmconfig.ts +1 -1
- package/src/models/components/supportedllm.ts +119 -0
- package/src/models/components/takeoutrequeststatus.ts +42 -0
- package/src/models/components/takeoutstatusresponse.ts +99 -0
- package/src/models/operations/gettakeoutapiv1takeoutsgetjobidget.ts +87 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/insightslist.ts +151 -0
- package/src/sdk/insights.ts +22 -1
- package/src/sdk/prompts.ts +16 -0
- package/src/sdk/sdk.ts +11 -5
- package/src/sdk/takeouts.ts +40 -0
- package/src/sdk/v1.ts +48 -0
package/docs/sdks/v1/README.md
CHANGED
|
@@ -5,12 +5,108 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
+
* [list](#list) - Insights List
|
|
8
9
|
* [postListDashboard](#postlistdashboard) - Post List Dashboards
|
|
9
10
|
* [postGetDashboard](#postgetdashboard) - Post Fetch Info
|
|
10
11
|
* [~~postSessionEventsDashboard~~](#postsessioneventsdashboard) - Post Session Events :warning: **Deprecated**
|
|
11
12
|
* [~~postSessionSummaryDashboard~~](#postsessionsummarydashboard) - Post Session Summary :warning: **Deprecated**
|
|
12
13
|
* [~~postSessionTransfersDashboard~~](#postsessiontransfersdashboard) - Post Session Transfers :warning: **Deprecated**
|
|
13
14
|
* [~~postSessionsDashboard~~](#postsessionsdashboard) - Post Sessions :warning: **Deprecated**
|
|
15
|
+
* [createTakeoutApiV1TakeoutsCreatePost](#createtakeoutapiv1takeoutscreatepost) - Create Takeout
|
|
16
|
+
* [getTakeoutApiV1TakeoutsGetJobIdGet](#gettakeoutapiv1takeoutsgetjobidget) - Get Takeout
|
|
17
|
+
|
|
18
|
+
## list
|
|
19
|
+
|
|
20
|
+
List the existing insight_tools
|
|
21
|
+
|
|
22
|
+
### Example Usage
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
26
|
+
|
|
27
|
+
const syllableSDK = new SyllableSDK({
|
|
28
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
const result = await syllableSDK.v1.list({
|
|
33
|
+
page: 0,
|
|
34
|
+
searchFields: [
|
|
35
|
+
"insight_tool_id",
|
|
36
|
+
],
|
|
37
|
+
searchFieldValues: [
|
|
38
|
+
"Some Object Name",
|
|
39
|
+
],
|
|
40
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
41
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
// Handle the result
|
|
45
|
+
console.log(result);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
run();
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Standalone function
|
|
52
|
+
|
|
53
|
+
The standalone function version of this method:
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
57
|
+
import { v1List } from "syllable-sdk/funcs/v1List.js";
|
|
58
|
+
|
|
59
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
60
|
+
// You can create one instance of it to use across an application.
|
|
61
|
+
const syllableSDK = new SyllableSDKCore({
|
|
62
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
async function run() {
|
|
66
|
+
const res = await v1List(syllableSDK, {
|
|
67
|
+
page: 0,
|
|
68
|
+
searchFields: [
|
|
69
|
+
"insight_tool_id",
|
|
70
|
+
],
|
|
71
|
+
searchFieldValues: [
|
|
72
|
+
"Some Object Name",
|
|
73
|
+
],
|
|
74
|
+
startDatetime: "2023-01-01T00:00:00Z",
|
|
75
|
+
endDatetime: "2024-01-01T00:00:00Z",
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
if (!res.ok) {
|
|
79
|
+
throw res.error;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const { value: result } = res;
|
|
83
|
+
|
|
84
|
+
// Handle the result
|
|
85
|
+
console.log(result);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
run();
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Parameters
|
|
92
|
+
|
|
93
|
+
| Parameter | Type | Required | Description |
|
|
94
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
95
|
+
| `request` | [operations.InsightsListRequest](../../models/operations/insightslistrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
96
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
97
|
+
| `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. |
|
|
98
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
99
|
+
|
|
100
|
+
### Response
|
|
101
|
+
|
|
102
|
+
**Promise\<[components.ListResponseInsightsOutput](../../models/components/listresponseinsightsoutput.md)\>**
|
|
103
|
+
|
|
104
|
+
### Errors
|
|
105
|
+
|
|
106
|
+
| Error Type | Status Code | Content Type |
|
|
107
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
108
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
109
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
14
110
|
|
|
15
111
|
## postListDashboard
|
|
16
112
|
|
|
@@ -494,4 +590,158 @@ run();
|
|
|
494
590
|
|
|
495
591
|
| Error Type | Status Code | Content Type |
|
|
496
592
|
| --------------- | --------------- | --------------- |
|
|
497
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
593
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
594
|
+
|
|
595
|
+
## createTakeoutApiV1TakeoutsCreatePost
|
|
596
|
+
|
|
597
|
+
Create Takeout
|
|
598
|
+
|
|
599
|
+
### Example Usage
|
|
600
|
+
|
|
601
|
+
```typescript
|
|
602
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
603
|
+
|
|
604
|
+
const syllableSDK = new SyllableSDK({
|
|
605
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
async function run() {
|
|
609
|
+
const result = await syllableSDK.v1.createTakeoutApiV1TakeoutsCreatePost({
|
|
610
|
+
subOrganizationId: 38300,
|
|
611
|
+
});
|
|
612
|
+
|
|
613
|
+
// Handle the result
|
|
614
|
+
console.log(result);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
run();
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
### Standalone function
|
|
621
|
+
|
|
622
|
+
The standalone function version of this method:
|
|
623
|
+
|
|
624
|
+
```typescript
|
|
625
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
626
|
+
import { v1CreateTakeoutApiV1TakeoutsCreatePost } from "syllable-sdk/funcs/v1CreateTakeoutApiV1TakeoutsCreatePost.js";
|
|
627
|
+
|
|
628
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
629
|
+
// You can create one instance of it to use across an application.
|
|
630
|
+
const syllableSDK = new SyllableSDKCore({
|
|
631
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
632
|
+
});
|
|
633
|
+
|
|
634
|
+
async function run() {
|
|
635
|
+
const res = await v1CreateTakeoutApiV1TakeoutsCreatePost(syllableSDK, {
|
|
636
|
+
subOrganizationId: 38300,
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
if (!res.ok) {
|
|
640
|
+
throw res.error;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
const { value: result } = res;
|
|
644
|
+
|
|
645
|
+
// Handle the result
|
|
646
|
+
console.log(result);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
run();
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
### Parameters
|
|
653
|
+
|
|
654
|
+
| Parameter | Type | Required | Description |
|
|
655
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
656
|
+
| `request` | [components.DaoTakeoutCreate](../../models/components/daotakeoutcreate.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
657
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
658
|
+
| `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. |
|
|
659
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
660
|
+
|
|
661
|
+
### Response
|
|
662
|
+
|
|
663
|
+
**Promise\<[components.CreateTakeoutResponse](../../models/components/createtakeoutresponse.md)\>**
|
|
664
|
+
|
|
665
|
+
### Errors
|
|
666
|
+
|
|
667
|
+
| Error Type | Status Code | Content Type |
|
|
668
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
669
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
670
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
671
|
+
|
|
672
|
+
## getTakeoutApiV1TakeoutsGetJobIdGet
|
|
673
|
+
|
|
674
|
+
Get Takeout
|
|
675
|
+
|
|
676
|
+
### Example Usage
|
|
677
|
+
|
|
678
|
+
```typescript
|
|
679
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
680
|
+
|
|
681
|
+
const syllableSDK = new SyllableSDK({
|
|
682
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
683
|
+
});
|
|
684
|
+
|
|
685
|
+
async function run() {
|
|
686
|
+
const result = await syllableSDK.v1.getTakeoutApiV1TakeoutsGetJobIdGet({
|
|
687
|
+
jobId: "<id>",
|
|
688
|
+
});
|
|
689
|
+
|
|
690
|
+
// Handle the result
|
|
691
|
+
console.log(result);
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
run();
|
|
695
|
+
```
|
|
696
|
+
|
|
697
|
+
### Standalone function
|
|
698
|
+
|
|
699
|
+
The standalone function version of this method:
|
|
700
|
+
|
|
701
|
+
```typescript
|
|
702
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
703
|
+
import { v1GetTakeoutApiV1TakeoutsGetJobIdGet } from "syllable-sdk/funcs/v1GetTakeoutApiV1TakeoutsGetJobIdGet.js";
|
|
704
|
+
|
|
705
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
706
|
+
// You can create one instance of it to use across an application.
|
|
707
|
+
const syllableSDK = new SyllableSDKCore({
|
|
708
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
709
|
+
});
|
|
710
|
+
|
|
711
|
+
async function run() {
|
|
712
|
+
const res = await v1GetTakeoutApiV1TakeoutsGetJobIdGet(syllableSDK, {
|
|
713
|
+
jobId: "<id>",
|
|
714
|
+
});
|
|
715
|
+
|
|
716
|
+
if (!res.ok) {
|
|
717
|
+
throw res.error;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
const { value: result } = res;
|
|
721
|
+
|
|
722
|
+
// Handle the result
|
|
723
|
+
console.log(result);
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
run();
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
### Parameters
|
|
730
|
+
|
|
731
|
+
| Parameter | Type | Required | Description |
|
|
732
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
733
|
+
| `request` | [operations.GetTakeoutApiV1TakeoutsGetJobIdGetRequest](../../models/operations/gettakeoutapiv1takeoutsgetjobidgetrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
734
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
735
|
+
| `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. |
|
|
736
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
737
|
+
|
|
738
|
+
### Response
|
|
739
|
+
|
|
740
|
+
**Promise\<[components.TakeoutStatusResponse](../../models/components/takeoutstatusresponse.md)\>**
|
|
741
|
+
|
|
742
|
+
### Errors
|
|
743
|
+
|
|
744
|
+
| Error Type | Status Code | Content Type |
|
|
745
|
+
| -------------------------- | -------------------------- | -------------------------- |
|
|
746
|
+
| errors.HTTPValidationError | 422 | application/json |
|
|
747
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SyllableSDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { Result } from "../types/fp.js";
|
|
10
|
+
/**
|
|
11
|
+
* Insights List
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* List the existing insight_tools
|
|
15
|
+
*/
|
|
16
|
+
export declare function insightsList(client: SyllableSDKCore, request: operations.InsightsListRequest, options?: RequestOptions): Promise<Result<components.ListResponseInsightsOutput, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
17
|
+
//# sourceMappingURL=insightsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsList.d.ts","sourceRoot":"","sources":["../src/funcs/insightsList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,YAAY,CAChC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,0BAA0B,EACnC,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAmGA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.insightsList = insightsList;
|
|
30
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
34
|
+
const security_js_1 = require("../lib/security.js");
|
|
35
|
+
const url_js_1 = require("../lib/url.js");
|
|
36
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
37
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
38
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
39
|
+
/**
|
|
40
|
+
* Insights List
|
|
41
|
+
*
|
|
42
|
+
* @remarks
|
|
43
|
+
* List the existing insight_tools
|
|
44
|
+
*/
|
|
45
|
+
async function insightsList(client, request, options) {
|
|
46
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.InsightsListRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47
|
+
if (!parsed.ok) {
|
|
48
|
+
return parsed;
|
|
49
|
+
}
|
|
50
|
+
const payload = parsed.value;
|
|
51
|
+
const body = null;
|
|
52
|
+
const path = (0, url_js_1.pathToFunc)("/api/v1/insights/")();
|
|
53
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
54
|
+
"end_datetime": payload.end_datetime,
|
|
55
|
+
"fields": payload.fields,
|
|
56
|
+
"limit": payload.limit,
|
|
57
|
+
"order_by": payload.order_by,
|
|
58
|
+
"order_by_direction": payload.order_by_direction,
|
|
59
|
+
"page": payload.page,
|
|
60
|
+
"search_field_values": payload.search_field_values,
|
|
61
|
+
"search_fields": payload.search_fields,
|
|
62
|
+
"start_datetime": payload.start_datetime,
|
|
63
|
+
});
|
|
64
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
65
|
+
Accept: "application/json",
|
|
66
|
+
}));
|
|
67
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
|
|
68
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
69
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
70
|
+
const context = {
|
|
71
|
+
baseURL: options?.serverURL ?? "",
|
|
72
|
+
operationID: "insights_list",
|
|
73
|
+
oAuth2Scopes: [],
|
|
74
|
+
resolvedSecurity: requestSecurity,
|
|
75
|
+
securitySource: client._options.apiKeyHeader,
|
|
76
|
+
retryConfig: options?.retries
|
|
77
|
+
|| client._options.retryConfig
|
|
78
|
+
|| { strategy: "none" },
|
|
79
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
80
|
+
};
|
|
81
|
+
const requestRes = client._createRequest(context, {
|
|
82
|
+
security: requestSecurity,
|
|
83
|
+
method: "GET",
|
|
84
|
+
baseURL: options?.serverURL,
|
|
85
|
+
path: path,
|
|
86
|
+
headers: headers,
|
|
87
|
+
query: query,
|
|
88
|
+
body: body,
|
|
89
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
90
|
+
}, options);
|
|
91
|
+
if (!requestRes.ok) {
|
|
92
|
+
return requestRes;
|
|
93
|
+
}
|
|
94
|
+
const req = requestRes.value;
|
|
95
|
+
const doResult = await client._do(req, {
|
|
96
|
+
context,
|
|
97
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
98
|
+
retryConfig: context.retryConfig,
|
|
99
|
+
retryCodes: context.retryCodes,
|
|
100
|
+
});
|
|
101
|
+
if (!doResult.ok) {
|
|
102
|
+
return doResult;
|
|
103
|
+
}
|
|
104
|
+
const response = doResult.value;
|
|
105
|
+
const responseFields = {
|
|
106
|
+
HttpMeta: { Response: response, Request: req },
|
|
107
|
+
};
|
|
108
|
+
const [result] = await M.match(M.json(200, components.ListResponseInsightsOutput$inboundSchema), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
|
|
109
|
+
if (!result.ok) {
|
|
110
|
+
return result;
|
|
111
|
+
}
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=insightsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insightsList.js","sourceRoot":"","sources":["../src/funcs/insightsList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA8BH,oCAmHC;AA9ID,sDAAsD;AACtD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;;;;GAKG;AACI,KAAK,UAAU,YAAY,CAChC,MAAuB,EACvB,OAAuC,EACvC,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,kCAAkC,CAAC,KAAK,CAAC,KAAK,CAAC,EACrE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,mBAAmB,CAAC,EAAE,CAAC;IAE/C,MAAM,KAAK,GAAG,IAAA,8BAAe,EAAC;QAC5B,cAAc,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E,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SyllableSDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import { Result } from "../types/fp.js";
|
|
8
|
+
/**
|
|
9
|
+
* Get Supported Llm Configs
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Get supported LLM configs.
|
|
13
|
+
*/
|
|
14
|
+
export declare function promptsPromptGetSupportedLlms(client: SyllableSDKCore, options?: RequestOptions): Promise<Result<Array<components.SupportedLlm>, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
15
|
+
//# sourceMappingURL=promptsPromptGetSupportedLlms.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptsPromptGetSupportedLlms.d.ts","sourceRoot":"","sources":["../src/funcs/promptsPromptGetSupportedLlms.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,eAAe,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,EAC5B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAoEA"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.promptsPromptGetSupportedLlms = promptsPromptGetSupportedLlms;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
32
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
33
|
+
const security_js_1 = require("../lib/security.js");
|
|
34
|
+
const url_js_1 = require("../lib/url.js");
|
|
35
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
36
|
+
/**
|
|
37
|
+
* Get Supported Llm Configs
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Get supported LLM configs.
|
|
41
|
+
*/
|
|
42
|
+
async function promptsPromptGetSupportedLlms(client, options) {
|
|
43
|
+
const path = (0, url_js_1.pathToFunc)("/api/v1/prompts/llms/supported")();
|
|
44
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
45
|
+
Accept: "application/json",
|
|
46
|
+
}));
|
|
47
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
|
|
48
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
49
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
50
|
+
const context = {
|
|
51
|
+
baseURL: options?.serverURL ?? "",
|
|
52
|
+
operationID: "prompt_get_supported_llms",
|
|
53
|
+
oAuth2Scopes: [],
|
|
54
|
+
resolvedSecurity: requestSecurity,
|
|
55
|
+
securitySource: client._options.apiKeyHeader,
|
|
56
|
+
retryConfig: options?.retries
|
|
57
|
+
|| client._options.retryConfig
|
|
58
|
+
|| { strategy: "none" },
|
|
59
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
60
|
+
};
|
|
61
|
+
const requestRes = client._createRequest(context, {
|
|
62
|
+
security: requestSecurity,
|
|
63
|
+
method: "GET",
|
|
64
|
+
baseURL: options?.serverURL,
|
|
65
|
+
path: path,
|
|
66
|
+
headers: headers,
|
|
67
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
68
|
+
}, options);
|
|
69
|
+
if (!requestRes.ok) {
|
|
70
|
+
return requestRes;
|
|
71
|
+
}
|
|
72
|
+
const req = requestRes.value;
|
|
73
|
+
const doResult = await client._do(req, {
|
|
74
|
+
context,
|
|
75
|
+
errorCodes: ["4XX", "5XX"],
|
|
76
|
+
retryConfig: context.retryConfig,
|
|
77
|
+
retryCodes: context.retryCodes,
|
|
78
|
+
});
|
|
79
|
+
if (!doResult.ok) {
|
|
80
|
+
return doResult;
|
|
81
|
+
}
|
|
82
|
+
const response = doResult.value;
|
|
83
|
+
const [result] = await M.match(M.json(200, z.array(components.SupportedLlm$inboundSchema)), M.fail("4XX"), M.fail("5XX"))(response);
|
|
84
|
+
if (!result.ok) {
|
|
85
|
+
return result;
|
|
86
|
+
}
|
|
87
|
+
return result;
|
|
88
|
+
}
|
|
89
|
+
//# sourceMappingURL=promptsPromptGetSupportedLlms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promptsPromptGetSupportedLlms.js","sourceRoot":"","sources":["../src/funcs/promptsPromptGetSupportedLlms.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA2BH,sEAkFC;AA3GD,uCAAyB;AAEzB,sDAAwC;AACxC,wDAAkD;AAElD,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAY5D;;;;;GAKG;AACI,KAAK,UAAU,6BAA6B,CACjD,MAAuB,EACvB,OAAwB;IAaxB,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,gCAAgC,CAAC,EAAE,CAAC;IAE5D,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,IAAA,0BAAU,EAAC;Q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G,MAAM,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE;QACrC,OAAO;QACP,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QAC1B,WAAW,EAAE,OAAO,CAAC,WAAW;QAChC,UAAU,EAAE,OAAO,CAAC,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAU5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAC,EAC3D,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,CAAC,CAAC;IACZ,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SyllableSDKCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import { Result } from "../types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Create Takeout
|
|
11
|
+
*/
|
|
12
|
+
export declare function takeoutsCreateTakeoutApiV1TakeoutsCreatePost(client: SyllableSDKCore, request: components.DaoTakeoutCreate, options?: RequestOptions): Promise<Result<components.CreateTakeoutResponse, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"takeoutsCreateTakeoutApiV1TakeoutsCreatePost.d.ts","sourceRoot":"","sources":["../src/funcs/takeoutsCreateTakeoutApiV1TakeoutsCreatePost.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,4CAA4C,CAChE,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,qBAAqB,EAC9B,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAuFA"}
|