syllable-sdk 0.1.0-alpha.28 → 0.1.0-alpha.29
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 +22 -0
- package/RUNTIMES.md +27 -1
- package/docs/sdks/dashboards/README.md +309 -0
- package/docs/sdks/v1/README.md +307 -0
- package/funcs/agentsAgentGetAvailableVoices.js +4 -4
- package/funcs/agentsAgentGetAvailableVoices.js.map +1 -1
- package/funcs/agentsCreate.js +4 -4
- package/funcs/agentsCreate.js.map +1 -1
- package/funcs/agentsDelete.js +4 -4
- package/funcs/agentsDelete.js.map +1 -1
- package/funcs/agentsGetById.js +4 -4
- package/funcs/agentsGetById.js.map +1 -1
- package/funcs/agentsList.js +4 -4
- package/funcs/agentsList.js.map +1 -1
- package/funcs/agentsTestSendTestMessage.js +4 -4
- package/funcs/agentsTestSendTestMessage.js.map +1 -1
- package/funcs/agentsUpdate.js +4 -4
- package/funcs/agentsUpdate.js.map +1 -1
- package/funcs/channelsDelete.js +4 -4
- package/funcs/channelsDelete.js.map +1 -1
- package/funcs/channelsList.js +4 -4
- package/funcs/channelsList.js.map +1 -1
- package/funcs/channelsTargetsAvailableTargets.js +4 -4
- package/funcs/channelsTargetsAvailableTargets.js.map +1 -1
- package/funcs/channelsTargetsCreate.js +4 -4
- package/funcs/channelsTargetsCreate.js.map +1 -1
- package/funcs/channelsTargetsGetById.js +4 -4
- package/funcs/channelsTargetsGetById.js.map +1 -1
- package/funcs/channelsTargetsList.js +4 -4
- package/funcs/channelsTargetsList.js.map +1 -1
- package/funcs/channelsTargetsUpdate.js +4 -4
- package/funcs/channelsTargetsUpdate.js.map +1 -1
- package/funcs/conversationsList.js +4 -4
- package/funcs/conversationsList.js.map +1 -1
- package/funcs/customMessagesCreate.js +4 -4
- package/funcs/customMessagesCreate.js.map +1 -1
- package/funcs/customMessagesDelete.js +4 -4
- package/funcs/customMessagesDelete.js.map +1 -1
- package/funcs/customMessagesGetById.js +4 -4
- package/funcs/customMessagesGetById.js.map +1 -1
- package/funcs/customMessagesList.js +4 -4
- package/funcs/customMessagesList.js.map +1 -1
- package/funcs/customMessagesUpdate.js +4 -4
- package/funcs/customMessagesUpdate.js.map +1 -1
- package/funcs/dashboardsPostSessionEventsDashboard.d.ts +18 -0
- package/funcs/dashboardsPostSessionEventsDashboard.d.ts.map +1 -0
- package/funcs/dashboardsPostSessionEventsDashboard.js +89 -0
- package/funcs/dashboardsPostSessionEventsDashboard.js.map +1 -0
- package/funcs/dashboardsPostSessionSummaryDashboard.d.ts +18 -0
- package/funcs/dashboardsPostSessionSummaryDashboard.d.ts.map +1 -0
- package/funcs/dashboardsPostSessionSummaryDashboard.js +89 -0
- package/funcs/dashboardsPostSessionSummaryDashboard.js.map +1 -0
- package/funcs/dashboardsPostSessionTransfersDashboard.d.ts +18 -0
- package/funcs/dashboardsPostSessionTransfersDashboard.d.ts.map +1 -0
- package/funcs/dashboardsPostSessionTransfersDashboard.js +89 -0
- package/funcs/dashboardsPostSessionTransfersDashboard.js.map +1 -0
- package/funcs/dashboardsPostSessionsDashboard.d.ts +18 -0
- package/funcs/dashboardsPostSessionsDashboard.d.ts.map +1 -0
- package/funcs/dashboardsPostSessionsDashboard.js +89 -0
- package/funcs/dashboardsPostSessionsDashboard.js.map +1 -0
- package/funcs/directoryCreate.js +4 -4
- package/funcs/directoryCreate.js.map +1 -1
- package/funcs/directoryDelete.js +4 -4
- package/funcs/directoryDelete.js.map +1 -1
- package/funcs/directoryDirectoryMemberBulkLoad.js +4 -4
- package/funcs/directoryDirectoryMemberBulkLoad.js.map +1 -1
- package/funcs/directoryDirectoryMemberDownload.js +4 -4
- package/funcs/directoryDirectoryMemberDownload.js.map +1 -1
- package/funcs/directoryGetById.js +4 -4
- package/funcs/directoryGetById.js.map +1 -1
- package/funcs/directoryList.js +4 -4
- package/funcs/directoryList.js.map +1 -1
- package/funcs/directoryUpdate.js +4 -4
- package/funcs/directoryUpdate.js.map +1 -1
- package/funcs/eventsList.js +4 -4
- package/funcs/eventsList.js.map +1 -1
- package/funcs/promptsCreate.js +4 -4
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.js +4 -4
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetById.js +4 -4
- package/funcs/promptsGetById.js.map +1 -1
- package/funcs/promptsList.js +4 -4
- package/funcs/promptsList.js.map +1 -1
- package/funcs/promptsPromptsHistory.js +4 -4
- package/funcs/promptsPromptsHistory.js.map +1 -1
- package/funcs/promptsUpdate.js +4 -4
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/servicesCreate.js +4 -4
- package/funcs/servicesCreate.js.map +1 -1
- package/funcs/servicesList.js +4 -4
- package/funcs/servicesList.js.map +1 -1
- package/funcs/servicesUpdate.js +4 -4
- package/funcs/servicesUpdate.js.map +1 -1
- package/funcs/sessionLabelsCreate.js +4 -4
- package/funcs/sessionLabelsCreate.js.map +1 -1
- package/funcs/sessionLabelsGetById.js +4 -4
- package/funcs/sessionLabelsGetById.js.map +1 -1
- package/funcs/sessionLabelsList.js +4 -4
- package/funcs/sessionLabelsList.js.map +1 -1
- package/funcs/sessionsGenerateSessionRecordingUrls.js +4 -4
- package/funcs/sessionsGenerateSessionRecordingUrls.js.map +1 -1
- package/funcs/sessionsGetById.js +4 -4
- package/funcs/sessionsGetById.js.map +1 -1
- package/funcs/sessionsList.js +4 -4
- package/funcs/sessionsList.js.map +1 -1
- package/funcs/sessionsSessionRecordingStream.js +4 -4
- package/funcs/sessionsSessionRecordingStream.js.map +1 -1
- package/funcs/sessionsTranscriptGetById.js +4 -4
- package/funcs/sessionsTranscriptGetById.js.map +1 -1
- package/funcs/toolsCreate.js +4 -4
- package/funcs/toolsCreate.js.map +1 -1
- package/funcs/toolsGetByName.js +4 -4
- package/funcs/toolsGetByName.js.map +1 -1
- package/funcs/toolsList.js +4 -4
- package/funcs/toolsList.js.map +1 -1
- package/funcs/toolsUpdate.js +4 -4
- package/funcs/toolsUpdate.js.map +1 -1
- package/funcs/v1PostSessionEventsDashboard.d.ts +18 -0
- package/funcs/v1PostSessionEventsDashboard.d.ts.map +1 -0
- package/funcs/v1PostSessionEventsDashboard.js +89 -0
- package/funcs/v1PostSessionEventsDashboard.js.map +1 -0
- package/funcs/v1PostSessionSummaryDashboard.d.ts +18 -0
- package/funcs/v1PostSessionSummaryDashboard.d.ts.map +1 -0
- package/funcs/v1PostSessionSummaryDashboard.js +89 -0
- package/funcs/v1PostSessionSummaryDashboard.js.map +1 -0
- package/funcs/v1PostSessionTransfersDashboard.d.ts +18 -0
- package/funcs/v1PostSessionTransfersDashboard.d.ts.map +1 -0
- package/funcs/v1PostSessionTransfersDashboard.js +89 -0
- package/funcs/v1PostSessionTransfersDashboard.js.map +1 -0
- package/funcs/v1PostSessionsDashboard.d.ts +18 -0
- package/funcs/v1PostSessionsDashboard.d.ts.map +1 -0
- package/funcs/v1PostSessionsDashboard.js +89 -0
- package/funcs/v1PostSessionsDashboard.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +4 -5
- package/lib/config.js.map +1 -1
- package/lib/encodings.js +18 -19
- package/lib/encodings.js.map +1 -1
- package/lib/env.js +1 -2
- package/lib/env.js.map +1 -1
- package/lib/http.js +1 -2
- package/lib/http.js.map +1 -1
- package/lib/matchers.js +5 -6
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.js +1 -1
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +3 -4
- package/lib/retries.js.map +1 -1
- package/lib/sdks.js +15 -16
- package/lib/sdks.js.map +1 -1
- package/lib/security.js +2 -3
- package/lib/security.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/mintlify/scripts/create-md-script.js +46 -0
- package/mintlify/scripts/generate-mintlify-sdk-docs.js +117 -0
- package/models/components/channeltargetproperties.d.ts +3 -0
- package/models/components/channeltargetproperties.d.ts.map +1 -1
- package/models/components/channeltargetproperties.js +1 -0
- package/models/components/channeltargetproperties.js.map +1 -1
- package/models/components/dashboard.d.ts +35 -0
- package/models/components/dashboard.d.ts.map +1 -0
- package/models/components/dashboard.js +78 -0
- package/models/components/dashboard.js.map +1 -0
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/toolparameterdefault.d.ts +6 -0
- package/models/components/toolparameterdefault.d.ts.map +1 -1
- package/models/components/toolparameterdefault.js.map +1 -1
- package/models/components/toolparametertransform.d.ts +14 -3
- package/models/components/toolparametertransform.d.ts.map +1 -1
- package/models/components/toolparametertransform.js +4 -2
- package/models/components/toolparametertransform.js.map +1 -1
- package/models/errors/httpclienterrors.js +2 -2
- package/models/errors/httpclienterrors.js.map +1 -1
- package/package.json +1 -1
- package/sdk/agents.js +1 -2
- package/sdk/agents.js.map +1 -1
- package/sdk/channels.js +1 -2
- package/sdk/channels.js.map +1 -1
- package/sdk/dashboards.d.ts +45 -0
- package/sdk/dashboards.d.ts.map +1 -0
- package/sdk/dashboards.js +64 -0
- package/sdk/dashboards.js.map +1 -0
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +19 -22
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.js +1 -2
- package/sdk/sessions.js.map +1 -1
- package/sdk/v1.d.ts +45 -0
- package/sdk/v1.d.ts.map +1 -0
- package/sdk/v1.js +64 -0
- package/sdk/v1.js.map +1 -0
- package/src/funcs/dashboardsPostSessionEventsDashboard.ts +111 -0
- package/src/funcs/dashboardsPostSessionSummaryDashboard.ts +111 -0
- package/src/funcs/dashboardsPostSessionTransfersDashboard.ts +111 -0
- package/src/funcs/dashboardsPostSessionsDashboard.ts +111 -0
- package/src/funcs/v1PostSessionEventsDashboard.ts +111 -0
- package/src/funcs/v1PostSessionSummaryDashboard.ts +111 -0
- package/src/funcs/v1PostSessionTransfersDashboard.ts +111 -0
- package/src/funcs/v1PostSessionsDashboard.ts +111 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +1 -1
- package/src/models/components/channeltargetproperties.ts +1 -0
- package/src/models/components/dashboard.ts +87 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/toolparameterdefault.ts +6 -0
- package/src/models/components/toolparametertransform.ts +18 -5
- package/src/sdk/dashboards.ts +85 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/v1.ts +85 -0
- package/test/sdk/contract/agents.test.ts +113 -0
- package/test/sdk/contract/custommessages.test.ts +109 -0
- package/test/sdk/contract/helper.ts +190 -0
- package/test/sdk/contract/prompts.test.ts +70 -0
package/README.md
CHANGED
|
@@ -164,6 +164,13 @@ run();
|
|
|
164
164
|
* [getById](docs/sdks/custommessages/README.md#getbyid) - Get Custom Message By Id
|
|
165
165
|
* [delete](docs/sdks/custommessages/README.md#delete) - Delete Custom Message
|
|
166
166
|
|
|
167
|
+
### [dashboards](docs/sdks/dashboards/README.md)
|
|
168
|
+
|
|
169
|
+
* [postSessionEventsDashboard](docs/sdks/dashboards/README.md#postsessioneventsdashboard) - Post Session Events
|
|
170
|
+
* [postSessionSummaryDashboard](docs/sdks/dashboards/README.md#postsessionsummarydashboard) - Post Session Summary
|
|
171
|
+
* [postSessionTransfersDashboard](docs/sdks/dashboards/README.md#postsessiontransfersdashboard) - Post Session Transfers
|
|
172
|
+
* [postSessionsDashboard](docs/sdks/dashboards/README.md#postsessionsdashboard) - Post Sessions
|
|
173
|
+
|
|
167
174
|
### [directory](docs/sdks/directory/README.md)
|
|
168
175
|
|
|
169
176
|
* [list](docs/sdks/directory/README.md#list) - Directory Member List
|
|
@@ -218,6 +225,13 @@ run();
|
|
|
218
225
|
* [update](docs/sdks/tools/README.md#update) - Update Tool
|
|
219
226
|
* [getByName](docs/sdks/tools/README.md#getbyname) - Tool Info
|
|
220
227
|
|
|
228
|
+
### [v1](docs/sdks/v1/README.md)
|
|
229
|
+
|
|
230
|
+
* [postSessionEventsDashboard](docs/sdks/v1/README.md#postsessioneventsdashboard) - Post Session Events
|
|
231
|
+
* [postSessionSummaryDashboard](docs/sdks/v1/README.md#postsessionsummarydashboard) - Post Session Summary
|
|
232
|
+
* [postSessionTransfersDashboard](docs/sdks/v1/README.md#postsessiontransfersdashboard) - Post Session Transfers
|
|
233
|
+
* [postSessionsDashboard](docs/sdks/v1/README.md#postsessionsdashboard) - Post Sessions
|
|
234
|
+
|
|
221
235
|
</details>
|
|
222
236
|
<!-- End Available Resources and Operations [operations] -->
|
|
223
237
|
|
|
@@ -256,6 +270,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
256
270
|
- [`customMessagesGetById`](docs/sdks/custommessages/README.md#getbyid) - Get Custom Message By Id
|
|
257
271
|
- [`customMessagesList`](docs/sdks/custommessages/README.md#list) - Custom Messages List
|
|
258
272
|
- [`customMessagesUpdate`](docs/sdks/custommessages/README.md#update) - Update Custom Message
|
|
273
|
+
- [`dashboardsPostSessionEventsDashboard`](docs/sdks/dashboards/README.md#postsessioneventsdashboard) - Post Session Events
|
|
274
|
+
- [`dashboardsPostSessionsDashboard`](docs/sdks/dashboards/README.md#postsessionsdashboard) - Post Sessions
|
|
275
|
+
- [`dashboardsPostSessionSummaryDashboard`](docs/sdks/dashboards/README.md#postsessionsummarydashboard) - Post Session Summary
|
|
276
|
+
- [`dashboardsPostSessionTransfersDashboard`](docs/sdks/dashboards/README.md#postsessiontransfersdashboard) - Post Session Transfers
|
|
259
277
|
- [`directoryCreate`](docs/sdks/directory/README.md#create) - Create Directory Member
|
|
260
278
|
- [`directoryDelete`](docs/sdks/directory/README.md#delete) - Delete Directory Member
|
|
261
279
|
- [`directoryDirectoryMemberBulkLoad`](docs/sdks/directory/README.md#directorymemberbulkload) - Bulk Load Directory Members
|
|
@@ -285,6 +303,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
285
303
|
- [`toolsGetByName`](docs/sdks/tools/README.md#getbyname) - Tool Info
|
|
286
304
|
- [`toolsList`](docs/sdks/tools/README.md#list) - Tool List
|
|
287
305
|
- [`toolsUpdate`](docs/sdks/tools/README.md#update) - Update Tool
|
|
306
|
+
- [`v1PostSessionEventsDashboard`](docs/sdks/v1/README.md#postsessioneventsdashboard) - Post Session Events
|
|
307
|
+
- [`v1PostSessionsDashboard`](docs/sdks/v1/README.md#postsessionsdashboard) - Post Sessions
|
|
308
|
+
- [`v1PostSessionSummaryDashboard`](docs/sdks/v1/README.md#postsessionsummarydashboard) - Post Session Summary
|
|
309
|
+
- [`v1PostSessionTransfersDashboard`](docs/sdks/v1/README.md#postsessiontransfersdashboard) - Post Session Transfers
|
|
288
310
|
|
|
289
311
|
</details>
|
|
290
312
|
<!-- End Standalone functions [standalone-funcs] -->
|
package/RUNTIMES.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Supported JavaScript runtimes
|
|
2
2
|
|
|
3
|
-
This SDK is intended to be used in JavaScript runtimes that support the following features:
|
|
3
|
+
This SDK is intended to be used in JavaScript runtimes that support ECMAScript 2020 or newer. The SDK uses the following features:
|
|
4
4
|
|
|
5
5
|
* [Web Fetch API][web-fetch]
|
|
6
6
|
* [Web Streams API][web-streams] and in particular `ReadableStream`
|
|
@@ -20,3 +20,29 @@ Runtime environments that are explicitly supported are:
|
|
|
20
20
|
- Note that Deno does not currently have native support for streaming file uploads backed by the filesystem ([issue link][deno-file-streaming])
|
|
21
21
|
|
|
22
22
|
[deno-file-streaming]: https://github.com/denoland/deno/issues/11018
|
|
23
|
+
|
|
24
|
+
## Recommended TypeScript compiler options
|
|
25
|
+
|
|
26
|
+
The following `tsconfig.json` options are recommended for projects using this
|
|
27
|
+
SDK in order to get static type support for features like async iterables,
|
|
28
|
+
streams and `fetch`-related APIs ([`for await...of`][for-await-of],
|
|
29
|
+
[`AbortSignal`][abort-signal], [`Request`][request], [`Response`][response] and
|
|
30
|
+
so on):
|
|
31
|
+
|
|
32
|
+
[for-await-of]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of
|
|
33
|
+
[abort-signal]: https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
|
|
34
|
+
[request]: https://developer.mozilla.org/en-US/docs/Web/API/Request
|
|
35
|
+
[response]: https://developer.mozilla.org/en-US/docs/Web/API/Response
|
|
36
|
+
|
|
37
|
+
```jsonc
|
|
38
|
+
{
|
|
39
|
+
"compilerOptions": {
|
|
40
|
+
"target": "es2020", // or higher
|
|
41
|
+
"lib": ["es2020", "dom", "dom.iterable"],
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
While `target` can be set to older ECMAScript versions, it may result in extra,
|
|
47
|
+
unnecessary compatibility code being generated if you are not targeting old
|
|
48
|
+
runtimes.
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
# Dashboards
|
|
2
|
+
(*dashboards*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
Operations related to dashboards
|
|
7
|
+
|
|
8
|
+
### Available Operations
|
|
9
|
+
|
|
10
|
+
* [postSessionEventsDashboard](#postsessioneventsdashboard) - Post Session Events
|
|
11
|
+
* [postSessionSummaryDashboard](#postsessionsummarydashboard) - Post Session Summary
|
|
12
|
+
* [postSessionTransfersDashboard](#postsessiontransfersdashboard) - Post Session Transfers
|
|
13
|
+
* [postSessionsDashboard](#postsessionsdashboard) - Post Sessions
|
|
14
|
+
|
|
15
|
+
## postSessionEventsDashboard
|
|
16
|
+
|
|
17
|
+
METHOD: POST
|
|
18
|
+
URL: /dashboard/session_events
|
|
19
|
+
ARGUMENTS: None
|
|
20
|
+
RETURNS: Dashboard info for embedding
|
|
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.dashboards.postSessionEventsDashboard();
|
|
33
|
+
|
|
34
|
+
// Handle the result
|
|
35
|
+
console.log(result);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
run();
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Standalone function
|
|
42
|
+
|
|
43
|
+
The standalone function version of this method:
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
47
|
+
import { dashboardsPostSessionEventsDashboard } from "syllable-sdk/funcs/dashboardsPostSessionEventsDashboard.js";
|
|
48
|
+
|
|
49
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
50
|
+
// You can create one instance of it to use across an application.
|
|
51
|
+
const syllableSDK = new SyllableSDKCore({
|
|
52
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
async function run() {
|
|
56
|
+
const res = await dashboardsPostSessionEventsDashboard(syllableSDK);
|
|
57
|
+
|
|
58
|
+
if (!res.ok) {
|
|
59
|
+
throw res.error;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const { value: result } = res;
|
|
63
|
+
|
|
64
|
+
// Handle the result
|
|
65
|
+
console.log(result);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
run();
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
| Parameter | Type | Required | Description |
|
|
74
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
75
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
76
|
+
| `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. |
|
|
77
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
78
|
+
|
|
79
|
+
### Response
|
|
80
|
+
|
|
81
|
+
**Promise\<[components.Dashboard](../../models/components/dashboard.md)\>**
|
|
82
|
+
|
|
83
|
+
### Errors
|
|
84
|
+
|
|
85
|
+
| Error Type | Status Code | Content Type |
|
|
86
|
+
| --------------- | --------------- | --------------- |
|
|
87
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
88
|
+
|
|
89
|
+
## postSessionSummaryDashboard
|
|
90
|
+
|
|
91
|
+
METHOD: POST
|
|
92
|
+
URL: /dashboard/session_summary
|
|
93
|
+
ARGUMENTS: None
|
|
94
|
+
RETURNS: Dashboard info for embedding
|
|
95
|
+
|
|
96
|
+
### Example Usage
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
100
|
+
|
|
101
|
+
const syllableSDK = new SyllableSDK({
|
|
102
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
async function run() {
|
|
106
|
+
const result = await syllableSDK.dashboards.postSessionSummaryDashboard();
|
|
107
|
+
|
|
108
|
+
// Handle the result
|
|
109
|
+
console.log(result);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
run();
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Standalone function
|
|
116
|
+
|
|
117
|
+
The standalone function version of this method:
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
121
|
+
import { dashboardsPostSessionSummaryDashboard } from "syllable-sdk/funcs/dashboardsPostSessionSummaryDashboard.js";
|
|
122
|
+
|
|
123
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
124
|
+
// You can create one instance of it to use across an application.
|
|
125
|
+
const syllableSDK = new SyllableSDKCore({
|
|
126
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
async function run() {
|
|
130
|
+
const res = await dashboardsPostSessionSummaryDashboard(syllableSDK);
|
|
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
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
150
|
+
| `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. |
|
|
151
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
152
|
+
|
|
153
|
+
### Response
|
|
154
|
+
|
|
155
|
+
**Promise\<[components.Dashboard](../../models/components/dashboard.md)\>**
|
|
156
|
+
|
|
157
|
+
### Errors
|
|
158
|
+
|
|
159
|
+
| Error Type | Status Code | Content Type |
|
|
160
|
+
| --------------- | --------------- | --------------- |
|
|
161
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
162
|
+
|
|
163
|
+
## postSessionTransfersDashboard
|
|
164
|
+
|
|
165
|
+
METHOD: POST
|
|
166
|
+
URL: /dashboard/session_transfers
|
|
167
|
+
ARGUMENTS: None
|
|
168
|
+
RETURNS: Dashboard info for embedding
|
|
169
|
+
|
|
170
|
+
### Example Usage
|
|
171
|
+
|
|
172
|
+
```typescript
|
|
173
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
174
|
+
|
|
175
|
+
const syllableSDK = new SyllableSDK({
|
|
176
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
async function run() {
|
|
180
|
+
const result = await syllableSDK.dashboards.postSessionTransfersDashboard();
|
|
181
|
+
|
|
182
|
+
// Handle the result
|
|
183
|
+
console.log(result);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
run();
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Standalone function
|
|
190
|
+
|
|
191
|
+
The standalone function version of this method:
|
|
192
|
+
|
|
193
|
+
```typescript
|
|
194
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
195
|
+
import { dashboardsPostSessionTransfersDashboard } from "syllable-sdk/funcs/dashboardsPostSessionTransfersDashboard.js";
|
|
196
|
+
|
|
197
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
198
|
+
// You can create one instance of it to use across an application.
|
|
199
|
+
const syllableSDK = new SyllableSDKCore({
|
|
200
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
async function run() {
|
|
204
|
+
const res = await dashboardsPostSessionTransfersDashboard(syllableSDK);
|
|
205
|
+
|
|
206
|
+
if (!res.ok) {
|
|
207
|
+
throw res.error;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const { value: result } = res;
|
|
211
|
+
|
|
212
|
+
// Handle the result
|
|
213
|
+
console.log(result);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
run();
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Parameters
|
|
220
|
+
|
|
221
|
+
| Parameter | Type | Required | Description |
|
|
222
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
223
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
224
|
+
| `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. |
|
|
225
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
226
|
+
|
|
227
|
+
### Response
|
|
228
|
+
|
|
229
|
+
**Promise\<[components.Dashboard](../../models/components/dashboard.md)\>**
|
|
230
|
+
|
|
231
|
+
### Errors
|
|
232
|
+
|
|
233
|
+
| Error Type | Status Code | Content Type |
|
|
234
|
+
| --------------- | --------------- | --------------- |
|
|
235
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
236
|
+
|
|
237
|
+
## postSessionsDashboard
|
|
238
|
+
|
|
239
|
+
METHOD: POST
|
|
240
|
+
URL: /dashboard/sessions
|
|
241
|
+
ARGUMENTS: None
|
|
242
|
+
RETURNS: Dashboard info for embedding
|
|
243
|
+
|
|
244
|
+
### Example Usage
|
|
245
|
+
|
|
246
|
+
```typescript
|
|
247
|
+
import { SyllableSDK } from "syllable-sdk";
|
|
248
|
+
|
|
249
|
+
const syllableSDK = new SyllableSDK({
|
|
250
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
251
|
+
});
|
|
252
|
+
|
|
253
|
+
async function run() {
|
|
254
|
+
const result = await syllableSDK.dashboards.postSessionsDashboard();
|
|
255
|
+
|
|
256
|
+
// Handle the result
|
|
257
|
+
console.log(result);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
run();
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Standalone function
|
|
264
|
+
|
|
265
|
+
The standalone function version of this method:
|
|
266
|
+
|
|
267
|
+
```typescript
|
|
268
|
+
import { SyllableSDKCore } from "syllable-sdk/core.js";
|
|
269
|
+
import { dashboardsPostSessionsDashboard } from "syllable-sdk/funcs/dashboardsPostSessionsDashboard.js";
|
|
270
|
+
|
|
271
|
+
// Use `SyllableSDKCore` for best tree-shaking performance.
|
|
272
|
+
// You can create one instance of it to use across an application.
|
|
273
|
+
const syllableSDK = new SyllableSDKCore({
|
|
274
|
+
apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
async function run() {
|
|
278
|
+
const res = await dashboardsPostSessionsDashboard(syllableSDK);
|
|
279
|
+
|
|
280
|
+
if (!res.ok) {
|
|
281
|
+
throw res.error;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
const { value: result } = res;
|
|
285
|
+
|
|
286
|
+
// Handle the result
|
|
287
|
+
console.log(result);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
run();
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
### Parameters
|
|
294
|
+
|
|
295
|
+
| Parameter | Type | Required | Description |
|
|
296
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
297
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
298
|
+
| `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. |
|
|
299
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
300
|
+
|
|
301
|
+
### Response
|
|
302
|
+
|
|
303
|
+
**Promise\<[components.Dashboard](../../models/components/dashboard.md)\>**
|
|
304
|
+
|
|
305
|
+
### Errors
|
|
306
|
+
|
|
307
|
+
| Error Type | Status Code | Content Type |
|
|
308
|
+
| --------------- | --------------- | --------------- |
|
|
309
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|