syllable-sdk 0.1.0-alpha.39 → 0.1.0-alpha.40
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 +24 -16
- package/docs/sdks/dashboards/README.md +178 -8
- package/docs/sdks/tools/README.md +12 -4
- package/docs/sdks/v1/README.md +178 -8
- package/funcs/dashboardsPostGetDashboard.d.ts +20 -0
- package/funcs/dashboardsPostGetDashboard.d.ts.map +1 -0
- package/funcs/dashboardsPostGetDashboard.js +108 -0
- package/funcs/dashboardsPostGetDashboard.js.map +1 -0
- package/funcs/dashboardsPostListDashboard.d.ts +20 -0
- package/funcs/dashboardsPostListDashboard.d.ts.map +1 -0
- package/funcs/dashboardsPostListDashboard.js +116 -0
- package/funcs/dashboardsPostListDashboard.js.map +1 -0
- package/funcs/dashboardsPostSessionEventsDashboard.d.ts +3 -0
- package/funcs/dashboardsPostSessionEventsDashboard.d.ts.map +1 -1
- package/funcs/dashboardsPostSessionEventsDashboard.js +3 -0
- package/funcs/dashboardsPostSessionEventsDashboard.js.map +1 -1
- package/funcs/dashboardsPostSessionSummaryDashboard.d.ts +3 -0
- package/funcs/dashboardsPostSessionSummaryDashboard.d.ts.map +1 -1
- package/funcs/dashboardsPostSessionSummaryDashboard.js +3 -0
- package/funcs/dashboardsPostSessionSummaryDashboard.js.map +1 -1
- package/funcs/dashboardsPostSessionTransfersDashboard.d.ts +3 -0
- package/funcs/dashboardsPostSessionTransfersDashboard.d.ts.map +1 -1
- package/funcs/dashboardsPostSessionTransfersDashboard.js +3 -0
- package/funcs/dashboardsPostSessionTransfersDashboard.js.map +1 -1
- package/funcs/dashboardsPostSessionsDashboard.d.ts +3 -0
- package/funcs/dashboardsPostSessionsDashboard.d.ts.map +1 -1
- package/funcs/dashboardsPostSessionsDashboard.js +3 -0
- package/funcs/dashboardsPostSessionsDashboard.js.map +1 -1
- package/funcs/v1PostGetDashboard.d.ts +20 -0
- package/funcs/v1PostGetDashboard.d.ts.map +1 -0
- package/funcs/v1PostGetDashboard.js +108 -0
- package/funcs/v1PostGetDashboard.js.map +1 -0
- package/funcs/v1PostListDashboard.d.ts +20 -0
- package/funcs/v1PostListDashboard.d.ts.map +1 -0
- package/funcs/v1PostListDashboard.js +116 -0
- package/funcs/v1PostListDashboard.js.map +1 -0
- package/funcs/v1PostSessionEventsDashboard.d.ts +3 -0
- package/funcs/v1PostSessionEventsDashboard.d.ts.map +1 -1
- package/funcs/v1PostSessionEventsDashboard.js +3 -0
- package/funcs/v1PostSessionEventsDashboard.js.map +1 -1
- package/funcs/v1PostSessionSummaryDashboard.d.ts +3 -0
- package/funcs/v1PostSessionSummaryDashboard.d.ts.map +1 -1
- package/funcs/v1PostSessionSummaryDashboard.js +3 -0
- package/funcs/v1PostSessionSummaryDashboard.js.map +1 -1
- package/funcs/v1PostSessionTransfersDashboard.d.ts +3 -0
- package/funcs/v1PostSessionTransfersDashboard.d.ts.map +1 -1
- package/funcs/v1PostSessionTransfersDashboard.js +3 -0
- package/funcs/v1PostSessionTransfersDashboard.js.map +1 -1
- package/funcs/v1PostSessionsDashboard.d.ts +3 -0
- package/funcs/v1PostSessionsDashboard.d.ts.map +1 -1
- package/funcs/v1PostSessionsDashboard.js +3 -0
- package/funcs/v1PostSessionsDashboard.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/dashboard.d.ts +3 -0
- package/models/components/dashboard.d.ts.map +1 -1
- package/models/components/dashboard.js.map +1 -1
- package/models/components/dashboardproperties.d.ts +37 -0
- package/models/components/dashboardproperties.d.ts.map +1 -0
- package/models/components/dashboardproperties.js +53 -0
- package/models/components/dashboardproperties.js.map +1 -0
- package/models/components/dashboardresponse.d.ts +50 -0
- package/models/components/dashboardresponse.d.ts.map +1 -0
- package/models/components/dashboardresponse.js +74 -0
- package/models/components/dashboardresponse.js.map +1 -0
- package/models/components/dashboardtokenresponse.d.ts +65 -0
- package/models/components/dashboardtokenresponse.d.ts.map +1 -0
- package/models/components/dashboardtokenresponse.js +86 -0
- package/models/components/dashboardtokenresponse.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listresponsedashboardresponse.d.ts +38 -0
- package/models/components/listresponsedashboardresponse.d.ts.map +1 -0
- package/models/components/listresponsedashboardresponse.js +81 -0
- package/models/components/listresponsedashboardresponse.js.map +1 -0
- package/models/components/tooldefinition.d.ts +8 -50
- package/models/components/tooldefinition.d.ts.map +1 -1
- package/models/components/tooldefinition.js +7 -68
- package/models/components/tooldefinition.js.map +1 -1
- package/models/components/toolfunction.d.ts +2 -26
- package/models/components/toolfunction.d.ts.map +1 -1
- package/models/components/toolfunction.js +3 -26
- package/models/components/toolfunction.js.map +1 -1
- 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/postgetdashboard.d.ts +29 -0
- package/models/operations/postgetdashboard.d.ts.map +1 -0
- package/models/operations/postgetdashboard.js +68 -0
- package/models/operations/postgetdashboard.js.map +1 -0
- package/models/operations/postlistdashboard.d.ts +46 -0
- package/models/operations/postlistdashboard.d.ts.map +1 -0
- package/models/operations/postlistdashboard.js +101 -0
- package/models/operations/postlistdashboard.js.map +1 -0
- package/openapi.json +381 -11
- package/package.json +1 -1
- package/sdk/dashboards.d.ts +33 -0
- package/sdk/dashboards.d.ts.map +1 -1
- package/sdk/dashboards.js +38 -0
- package/sdk/dashboards.js.map +1 -1
- package/sdk/v1.d.ts +33 -0
- package/sdk/v1.d.ts.map +1 -1
- package/sdk/v1.js +38 -0
- package/sdk/v1.js.map +1 -1
- package/src/funcs/dashboardsPostGetDashboard.ts +142 -0
- package/src/funcs/dashboardsPostListDashboard.ts +150 -0
- package/src/funcs/dashboardsPostSessionEventsDashboard.ts +3 -0
- package/src/funcs/dashboardsPostSessionSummaryDashboard.ts +3 -0
- package/src/funcs/dashboardsPostSessionTransfersDashboard.ts +3 -0
- package/src/funcs/dashboardsPostSessionsDashboard.ts +3 -0
- package/src/funcs/v1PostGetDashboard.ts +142 -0
- package/src/funcs/v1PostListDashboard.ts +150 -0
- package/src/funcs/v1PostSessionEventsDashboard.ts +3 -0
- package/src/funcs/v1PostSessionSummaryDashboard.ts +3 -0
- package/src/funcs/v1PostSessionTransfersDashboard.ts +3 -0
- package/src/funcs/v1PostSessionsDashboard.ts +3 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/dashboard.ts +3 -0
- package/src/models/components/dashboardproperties.ts +36 -0
- package/src/models/components/dashboardresponse.ts +102 -0
- package/src/models/components/dashboardtokenresponse.ts +129 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/listresponsedashboardresponse.ts +103 -0
- package/src/models/components/tooldefinition.ts +12 -107
- package/src/models/components/toolfunction.ts +4 -53
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/postgetdashboard.ts +75 -0
- package/src/models/operations/postlistdashboard.ts +124 -0
- package/src/sdk/dashboards.ts +55 -0
- package/src/sdk/v1.ts +55 -0
package/sdk/v1.d.ts
CHANGED
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as components from "../models/components/index.js";
|
|
3
|
+
import * as operations from "../models/operations/index.js";
|
|
3
4
|
export declare class V1 extends ClientSDK {
|
|
5
|
+
/**
|
|
6
|
+
* Post List Dashboards
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* METHOD: POST
|
|
10
|
+
* URL: /dashboard/list
|
|
11
|
+
* ARGUMENTS: None
|
|
12
|
+
* RETURNS: List of dashboards
|
|
13
|
+
*/
|
|
14
|
+
postListDashboard(request: operations.PostListDashboardRequest, options?: RequestOptions): Promise<components.ListResponseDashboardResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Post Fetch Info
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* METHOD: POST
|
|
20
|
+
* URL: /dashboard/fetch_info
|
|
21
|
+
* ARGUMENTS: None
|
|
22
|
+
* RETURNS: Dashboard info for embedding
|
|
23
|
+
*/
|
|
24
|
+
postGetDashboard(request: operations.PostGetDashboardRequest, options?: RequestOptions): Promise<components.DashboardTokenResponse>;
|
|
4
25
|
/**
|
|
5
26
|
* Post Session Events
|
|
6
27
|
*
|
|
@@ -9,6 +30,9 @@ export declare class V1 extends ClientSDK {
|
|
|
9
30
|
* URL: /dashboard/session_events
|
|
10
31
|
* ARGUMENTS: None
|
|
11
32
|
* RETURNS: Dashboard info for embedding
|
|
33
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
34
|
+
*
|
|
35
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
12
36
|
*/
|
|
13
37
|
postSessionEventsDashboard(options?: RequestOptions): Promise<components.Dashboard>;
|
|
14
38
|
/**
|
|
@@ -19,6 +43,9 @@ export declare class V1 extends ClientSDK {
|
|
|
19
43
|
* URL: /dashboard/session_summary
|
|
20
44
|
* ARGUMENTS: None
|
|
21
45
|
* RETURNS: Dashboard info for embedding
|
|
46
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
47
|
+
*
|
|
48
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
22
49
|
*/
|
|
23
50
|
postSessionSummaryDashboard(options?: RequestOptions): Promise<components.Dashboard>;
|
|
24
51
|
/**
|
|
@@ -29,6 +56,9 @@ export declare class V1 extends ClientSDK {
|
|
|
29
56
|
* URL: /dashboard/session_transfers
|
|
30
57
|
* ARGUMENTS: None
|
|
31
58
|
* RETURNS: Dashboard info for embedding
|
|
59
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
60
|
+
*
|
|
61
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
32
62
|
*/
|
|
33
63
|
postSessionTransfersDashboard(options?: RequestOptions): Promise<components.Dashboard>;
|
|
34
64
|
/**
|
|
@@ -39,6 +69,9 @@ export declare class V1 extends ClientSDK {
|
|
|
39
69
|
* URL: /dashboard/sessions
|
|
40
70
|
* ARGUMENTS: None
|
|
41
71
|
* RETURNS: Dashboard info for embedding
|
|
72
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
73
|
+
*
|
|
74
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
42
75
|
*/
|
|
43
76
|
postSessionsDashboard(options?: RequestOptions): Promise<components.Dashboard>;
|
|
44
77
|
}
|
package/sdk/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../src/sdk/v1.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../src/sdk/v1.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,EAAG,SAAQ,SAAS;IAC/B;;;;;;;;OAQG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;;OAQG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;OAWG;IACG,0BAA0B,CAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC;IAOhC;;;;;;;;;;;OAWG;IACG,2BAA2B,CAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC;IAOhC;;;;;;;;;;;OAWG;IACG,6BAA6B,CACjC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC;IAOhC;;;;;;;;;;;OAWG;IACG,qBAAqB,CACzB,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC;CAMjC"}
|
package/sdk/v1.js
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.V1 = void 0;
|
|
7
|
+
const v1PostGetDashboard_js_1 = require("../funcs/v1PostGetDashboard.js");
|
|
8
|
+
const v1PostListDashboard_js_1 = require("../funcs/v1PostListDashboard.js");
|
|
7
9
|
const v1PostSessionEventsDashboard_js_1 = require("../funcs/v1PostSessionEventsDashboard.js");
|
|
8
10
|
const v1PostSessionsDashboard_js_1 = require("../funcs/v1PostSessionsDashboard.js");
|
|
9
11
|
const v1PostSessionSummaryDashboard_js_1 = require("../funcs/v1PostSessionSummaryDashboard.js");
|
|
@@ -11,6 +13,30 @@ const v1PostSessionTransfersDashboard_js_1 = require("../funcs/v1PostSessionTran
|
|
|
11
13
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
12
14
|
const fp_js_1 = require("../types/fp.js");
|
|
13
15
|
class V1 extends sdks_js_1.ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* Post List Dashboards
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* METHOD: POST
|
|
21
|
+
* URL: /dashboard/list
|
|
22
|
+
* ARGUMENTS: None
|
|
23
|
+
* RETURNS: List of dashboards
|
|
24
|
+
*/
|
|
25
|
+
async postListDashboard(request, options) {
|
|
26
|
+
return (0, fp_js_1.unwrapAsync)((0, v1PostListDashboard_js_1.v1PostListDashboard)(this, request, options));
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Post Fetch Info
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* METHOD: POST
|
|
33
|
+
* URL: /dashboard/fetch_info
|
|
34
|
+
* ARGUMENTS: None
|
|
35
|
+
* RETURNS: Dashboard info for embedding
|
|
36
|
+
*/
|
|
37
|
+
async postGetDashboard(request, options) {
|
|
38
|
+
return (0, fp_js_1.unwrapAsync)((0, v1PostGetDashboard_js_1.v1PostGetDashboard)(this, request, options));
|
|
39
|
+
}
|
|
14
40
|
/**
|
|
15
41
|
* Post Session Events
|
|
16
42
|
*
|
|
@@ -19,6 +45,9 @@ class V1 extends sdks_js_1.ClientSDK {
|
|
|
19
45
|
* URL: /dashboard/session_events
|
|
20
46
|
* ARGUMENTS: None
|
|
21
47
|
* RETURNS: Dashboard info for embedding
|
|
48
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
49
|
+
*
|
|
50
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
22
51
|
*/
|
|
23
52
|
async postSessionEventsDashboard(options) {
|
|
24
53
|
return (0, fp_js_1.unwrapAsync)((0, v1PostSessionEventsDashboard_js_1.v1PostSessionEventsDashboard)(this, options));
|
|
@@ -31,6 +60,9 @@ class V1 extends sdks_js_1.ClientSDK {
|
|
|
31
60
|
* URL: /dashboard/session_summary
|
|
32
61
|
* ARGUMENTS: None
|
|
33
62
|
* RETURNS: Dashboard info for embedding
|
|
63
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
64
|
+
*
|
|
65
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
34
66
|
*/
|
|
35
67
|
async postSessionSummaryDashboard(options) {
|
|
36
68
|
return (0, fp_js_1.unwrapAsync)((0, v1PostSessionSummaryDashboard_js_1.v1PostSessionSummaryDashboard)(this, options));
|
|
@@ -43,6 +75,9 @@ class V1 extends sdks_js_1.ClientSDK {
|
|
|
43
75
|
* URL: /dashboard/session_transfers
|
|
44
76
|
* ARGUMENTS: None
|
|
45
77
|
* RETURNS: Dashboard info for embedding
|
|
78
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
79
|
+
*
|
|
80
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
46
81
|
*/
|
|
47
82
|
async postSessionTransfersDashboard(options) {
|
|
48
83
|
return (0, fp_js_1.unwrapAsync)((0, v1PostSessionTransfersDashboard_js_1.v1PostSessionTransfersDashboard)(this, options));
|
|
@@ -55,6 +90,9 @@ class V1 extends sdks_js_1.ClientSDK {
|
|
|
55
90
|
* URL: /dashboard/sessions
|
|
56
91
|
* ARGUMENTS: None
|
|
57
92
|
* RETURNS: Dashboard info for embedding
|
|
93
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
94
|
+
*
|
|
95
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
58
96
|
*/
|
|
59
97
|
async postSessionsDashboard(options) {
|
|
60
98
|
return (0, fp_js_1.unwrapAsync)((0, v1PostSessionsDashboard_js_1.v1PostSessionsDashboard)(this, options));
|
package/sdk/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../src/sdk/v1.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8FAAwF;AACxF,oFAA8E;AAC9E,gGAA0F;AAC1F,oGAA8F;AAC9F,4CAA2D;
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../src/sdk/v1.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0EAAoE;AACpE,4EAAsE;AACtE,8FAAwF;AACxF,oFAA8E;AAC9E,gGAA0F;AAC1F,oGAA8F;AAC9F,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,EAAG,SAAQ,mBAAS;IAC/B;;;;;;;;OAQG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,2BAA2B,CAC/B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gEAA6B,EAC9C,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,qBAAqB,CACzB,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA5HD,gBA4HC"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SyllableSDKCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Post Fetch Info
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* METHOD: POST
|
|
32
|
+
* URL: /dashboard/fetch_info
|
|
33
|
+
* ARGUMENTS: None
|
|
34
|
+
* RETURNS: Dashboard info for embedding
|
|
35
|
+
*/
|
|
36
|
+
export async function dashboardsPostGetDashboard(
|
|
37
|
+
client: SyllableSDKCore,
|
|
38
|
+
request: operations.PostGetDashboardRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<
|
|
41
|
+
Result<
|
|
42
|
+
components.DashboardTokenResponse,
|
|
43
|
+
| errors.HTTPValidationError
|
|
44
|
+
| SDKError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| ConnectionError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
const parsed = safeParse(
|
|
54
|
+
request,
|
|
55
|
+
(value) => operations.PostGetDashboardRequest$outboundSchema.parse(value),
|
|
56
|
+
"Input validation failed",
|
|
57
|
+
);
|
|
58
|
+
if (!parsed.ok) {
|
|
59
|
+
return parsed;
|
|
60
|
+
}
|
|
61
|
+
const payload = parsed.value;
|
|
62
|
+
const body = null;
|
|
63
|
+
|
|
64
|
+
const path = pathToFunc("/api/v1/dashboards/fetch_info")();
|
|
65
|
+
|
|
66
|
+
const query = encodeFormQuery({
|
|
67
|
+
"dashboard_name": payload.dashboard_name,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const headers = new Headers(compactMap({
|
|
71
|
+
Accept: "application/json",
|
|
72
|
+
}));
|
|
73
|
+
|
|
74
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
75
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
76
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
77
|
+
|
|
78
|
+
const context = {
|
|
79
|
+
operationID: "post_get_dashboard",
|
|
80
|
+
oAuth2Scopes: [],
|
|
81
|
+
|
|
82
|
+
resolvedSecurity: requestSecurity,
|
|
83
|
+
|
|
84
|
+
securitySource: client._options.apiKeyHeader,
|
|
85
|
+
retryConfig: options?.retries
|
|
86
|
+
|| client._options.retryConfig
|
|
87
|
+
|| { strategy: "none" },
|
|
88
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const requestRes = client._createRequest(context, {
|
|
92
|
+
security: requestSecurity,
|
|
93
|
+
method: "POST",
|
|
94
|
+
baseURL: options?.serverURL,
|
|
95
|
+
path: path,
|
|
96
|
+
headers: headers,
|
|
97
|
+
query: query,
|
|
98
|
+
body: body,
|
|
99
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
100
|
+
}, options);
|
|
101
|
+
if (!requestRes.ok) {
|
|
102
|
+
return requestRes;
|
|
103
|
+
}
|
|
104
|
+
const req = requestRes.value;
|
|
105
|
+
|
|
106
|
+
const doResult = await client._do(req, {
|
|
107
|
+
context,
|
|
108
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
109
|
+
retryConfig: context.retryConfig,
|
|
110
|
+
retryCodes: context.retryCodes,
|
|
111
|
+
});
|
|
112
|
+
if (!doResult.ok) {
|
|
113
|
+
return doResult;
|
|
114
|
+
}
|
|
115
|
+
const response = doResult.value;
|
|
116
|
+
|
|
117
|
+
const responseFields = {
|
|
118
|
+
HttpMeta: { Response: response, Request: req },
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const [result] = await M.match<
|
|
122
|
+
components.DashboardTokenResponse,
|
|
123
|
+
| errors.HTTPValidationError
|
|
124
|
+
| SDKError
|
|
125
|
+
| SDKValidationError
|
|
126
|
+
| UnexpectedClientError
|
|
127
|
+
| InvalidRequestError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| ConnectionError
|
|
131
|
+
>(
|
|
132
|
+
M.json(200, components.DashboardTokenResponse$inboundSchema),
|
|
133
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
134
|
+
M.fail("4XX"),
|
|
135
|
+
M.fail("5XX"),
|
|
136
|
+
)(response, { extraFields: responseFields });
|
|
137
|
+
if (!result.ok) {
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return result;
|
|
142
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SyllableSDKCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Post List Dashboards
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* METHOD: POST
|
|
32
|
+
* URL: /dashboard/list
|
|
33
|
+
* ARGUMENTS: None
|
|
34
|
+
* RETURNS: List of dashboards
|
|
35
|
+
*/
|
|
36
|
+
export async function dashboardsPostListDashboard(
|
|
37
|
+
client: SyllableSDKCore,
|
|
38
|
+
request: operations.PostListDashboardRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<
|
|
41
|
+
Result<
|
|
42
|
+
components.ListResponseDashboardResponse,
|
|
43
|
+
| errors.HTTPValidationError
|
|
44
|
+
| SDKError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| ConnectionError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
const parsed = safeParse(
|
|
54
|
+
request,
|
|
55
|
+
(value) => operations.PostListDashboardRequest$outboundSchema.parse(value),
|
|
56
|
+
"Input validation failed",
|
|
57
|
+
);
|
|
58
|
+
if (!parsed.ok) {
|
|
59
|
+
return parsed;
|
|
60
|
+
}
|
|
61
|
+
const payload = parsed.value;
|
|
62
|
+
const body = null;
|
|
63
|
+
|
|
64
|
+
const path = pathToFunc("/api/v1/dashboards/list")();
|
|
65
|
+
|
|
66
|
+
const query = encodeFormQuery({
|
|
67
|
+
"end_datetime": payload.end_datetime,
|
|
68
|
+
"fields": payload.fields,
|
|
69
|
+
"limit": payload.limit,
|
|
70
|
+
"order_by": payload.order_by,
|
|
71
|
+
"order_by_direction": payload.order_by_direction,
|
|
72
|
+
"page": payload.page,
|
|
73
|
+
"search_field_values": payload.search_field_values,
|
|
74
|
+
"search_fields": payload.search_fields,
|
|
75
|
+
"start_datetime": payload.start_datetime,
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
const headers = new Headers(compactMap({
|
|
79
|
+
Accept: "application/json",
|
|
80
|
+
}));
|
|
81
|
+
|
|
82
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
83
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
84
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
85
|
+
|
|
86
|
+
const context = {
|
|
87
|
+
operationID: "post_list_dashboard",
|
|
88
|
+
oAuth2Scopes: [],
|
|
89
|
+
|
|
90
|
+
resolvedSecurity: requestSecurity,
|
|
91
|
+
|
|
92
|
+
securitySource: client._options.apiKeyHeader,
|
|
93
|
+
retryConfig: options?.retries
|
|
94
|
+
|| client._options.retryConfig
|
|
95
|
+
|| { strategy: "none" },
|
|
96
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const requestRes = client._createRequest(context, {
|
|
100
|
+
security: requestSecurity,
|
|
101
|
+
method: "POST",
|
|
102
|
+
baseURL: options?.serverURL,
|
|
103
|
+
path: path,
|
|
104
|
+
headers: headers,
|
|
105
|
+
query: query,
|
|
106
|
+
body: body,
|
|
107
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
108
|
+
}, options);
|
|
109
|
+
if (!requestRes.ok) {
|
|
110
|
+
return requestRes;
|
|
111
|
+
}
|
|
112
|
+
const req = requestRes.value;
|
|
113
|
+
|
|
114
|
+
const doResult = await client._do(req, {
|
|
115
|
+
context,
|
|
116
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
117
|
+
retryConfig: context.retryConfig,
|
|
118
|
+
retryCodes: context.retryCodes,
|
|
119
|
+
});
|
|
120
|
+
if (!doResult.ok) {
|
|
121
|
+
return doResult;
|
|
122
|
+
}
|
|
123
|
+
const response = doResult.value;
|
|
124
|
+
|
|
125
|
+
const responseFields = {
|
|
126
|
+
HttpMeta: { Response: response, Request: req },
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const [result] = await M.match<
|
|
130
|
+
components.ListResponseDashboardResponse,
|
|
131
|
+
| errors.HTTPValidationError
|
|
132
|
+
| SDKError
|
|
133
|
+
| SDKValidationError
|
|
134
|
+
| UnexpectedClientError
|
|
135
|
+
| InvalidRequestError
|
|
136
|
+
| RequestAbortedError
|
|
137
|
+
| RequestTimeoutError
|
|
138
|
+
| ConnectionError
|
|
139
|
+
>(
|
|
140
|
+
M.json(200, components.ListResponseDashboardResponse$inboundSchema),
|
|
141
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
142
|
+
M.fail("4XX"),
|
|
143
|
+
M.fail("5XX"),
|
|
144
|
+
)(response, { extraFields: responseFields });
|
|
145
|
+
if (!result.ok) {
|
|
146
|
+
return result;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
@@ -28,6 +28,9 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* URL: /dashboard/session_events
|
|
29
29
|
* ARGUMENTS: None
|
|
30
30
|
* RETURNS: Dashboard info for embedding
|
|
31
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
32
|
+
*
|
|
33
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
34
|
*/
|
|
32
35
|
export async function dashboardsPostSessionEventsDashboard(
|
|
33
36
|
client: SyllableSDKCore,
|
|
@@ -28,6 +28,9 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* URL: /dashboard/session_summary
|
|
29
29
|
* ARGUMENTS: None
|
|
30
30
|
* RETURNS: Dashboard info for embedding
|
|
31
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
32
|
+
*
|
|
33
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
34
|
*/
|
|
32
35
|
export async function dashboardsPostSessionSummaryDashboard(
|
|
33
36
|
client: SyllableSDKCore,
|
|
@@ -28,6 +28,9 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* URL: /dashboard/session_transfers
|
|
29
29
|
* ARGUMENTS: None
|
|
30
30
|
* RETURNS: Dashboard info for embedding
|
|
31
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
32
|
+
*
|
|
33
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
34
|
*/
|
|
32
35
|
export async function dashboardsPostSessionTransfersDashboard(
|
|
33
36
|
client: SyllableSDKCore,
|
|
@@ -28,6 +28,9 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* URL: /dashboard/sessions
|
|
29
29
|
* ARGUMENTS: None
|
|
30
30
|
* RETURNS: Dashboard info for embedding
|
|
31
|
+
* DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
|
|
32
|
+
*
|
|
33
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
34
|
*/
|
|
32
35
|
export async function dashboardsPostSessionsDashboard(
|
|
33
36
|
client: SyllableSDKCore,
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SyllableSDKCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import * as components from "../models/components/index.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Post Fetch Info
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* METHOD: POST
|
|
32
|
+
* URL: /dashboard/fetch_info
|
|
33
|
+
* ARGUMENTS: None
|
|
34
|
+
* RETURNS: Dashboard info for embedding
|
|
35
|
+
*/
|
|
36
|
+
export async function v1PostGetDashboard(
|
|
37
|
+
client: SyllableSDKCore,
|
|
38
|
+
request: operations.PostGetDashboardRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<
|
|
41
|
+
Result<
|
|
42
|
+
components.DashboardTokenResponse,
|
|
43
|
+
| errors.HTTPValidationError
|
|
44
|
+
| SDKError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| ConnectionError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
const parsed = safeParse(
|
|
54
|
+
request,
|
|
55
|
+
(value) => operations.PostGetDashboardRequest$outboundSchema.parse(value),
|
|
56
|
+
"Input validation failed",
|
|
57
|
+
);
|
|
58
|
+
if (!parsed.ok) {
|
|
59
|
+
return parsed;
|
|
60
|
+
}
|
|
61
|
+
const payload = parsed.value;
|
|
62
|
+
const body = null;
|
|
63
|
+
|
|
64
|
+
const path = pathToFunc("/api/v1/dashboards/fetch_info")();
|
|
65
|
+
|
|
66
|
+
const query = encodeFormQuery({
|
|
67
|
+
"dashboard_name": payload.dashboard_name,
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const headers = new Headers(compactMap({
|
|
71
|
+
Accept: "application/json",
|
|
72
|
+
}));
|
|
73
|
+
|
|
74
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
75
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
76
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
77
|
+
|
|
78
|
+
const context = {
|
|
79
|
+
operationID: "post_get_dashboard",
|
|
80
|
+
oAuth2Scopes: [],
|
|
81
|
+
|
|
82
|
+
resolvedSecurity: requestSecurity,
|
|
83
|
+
|
|
84
|
+
securitySource: client._options.apiKeyHeader,
|
|
85
|
+
retryConfig: options?.retries
|
|
86
|
+
|| client._options.retryConfig
|
|
87
|
+
|| { strategy: "none" },
|
|
88
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const requestRes = client._createRequest(context, {
|
|
92
|
+
security: requestSecurity,
|
|
93
|
+
method: "POST",
|
|
94
|
+
baseURL: options?.serverURL,
|
|
95
|
+
path: path,
|
|
96
|
+
headers: headers,
|
|
97
|
+
query: query,
|
|
98
|
+
body: body,
|
|
99
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
100
|
+
}, options);
|
|
101
|
+
if (!requestRes.ok) {
|
|
102
|
+
return requestRes;
|
|
103
|
+
}
|
|
104
|
+
const req = requestRes.value;
|
|
105
|
+
|
|
106
|
+
const doResult = await client._do(req, {
|
|
107
|
+
context,
|
|
108
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
109
|
+
retryConfig: context.retryConfig,
|
|
110
|
+
retryCodes: context.retryCodes,
|
|
111
|
+
});
|
|
112
|
+
if (!doResult.ok) {
|
|
113
|
+
return doResult;
|
|
114
|
+
}
|
|
115
|
+
const response = doResult.value;
|
|
116
|
+
|
|
117
|
+
const responseFields = {
|
|
118
|
+
HttpMeta: { Response: response, Request: req },
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const [result] = await M.match<
|
|
122
|
+
components.DashboardTokenResponse,
|
|
123
|
+
| errors.HTTPValidationError
|
|
124
|
+
| SDKError
|
|
125
|
+
| SDKValidationError
|
|
126
|
+
| UnexpectedClientError
|
|
127
|
+
| InvalidRequestError
|
|
128
|
+
| RequestAbortedError
|
|
129
|
+
| RequestTimeoutError
|
|
130
|
+
| ConnectionError
|
|
131
|
+
>(
|
|
132
|
+
M.json(200, components.DashboardTokenResponse$inboundSchema),
|
|
133
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
134
|
+
M.fail("4XX"),
|
|
135
|
+
M.fail("5XX"),
|
|
136
|
+
)(response, { extraFields: responseFields });
|
|
137
|
+
if (!result.ok) {
|
|
138
|
+
return result;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return result;
|
|
142
|
+
}
|