syllable-sdk 0.1.0-alpha.74 → 0.1.0-alpha.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +5 -15
  2. package/docs/sdks/batches/README.md +14 -14
  3. package/docs/sdks/latency/README.md +85 -0
  4. package/funcs/{v1PostListDashboard.d.ts → sessionsLatencyGetById.d.ts} +3 -9
  5. package/funcs/sessionsLatencyGetById.d.ts.map +1 -0
  6. package/funcs/{v1PostGetDashboard.js → sessionsLatencyGetById.js} +15 -19
  7. package/funcs/sessionsLatencyGetById.js.map +1 -0
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +2 -2
  10. package/lib/config.js +2 -2
  11. package/models/components/index.d.ts +5 -0
  12. package/models/components/index.d.ts.map +1 -1
  13. package/models/components/index.js +5 -0
  14. package/models/components/index.js.map +1 -1
  15. package/models/components/inspectlatencyresponse.d.ts +42 -0
  16. package/models/components/inspectlatencyresponse.d.ts.map +1 -0
  17. package/models/components/inspectlatencyresponse.js +74 -0
  18. package/models/components/inspectlatencyresponse.js.map +1 -0
  19. package/models/components/latencycategory.d.ts +37 -0
  20. package/models/components/latencycategory.d.ts.map +1 -0
  21. package/models/components/latencycategory.js +53 -0
  22. package/models/components/latencycategory.js.map +1 -0
  23. package/models/components/latencyentry.d.ts +50 -0
  24. package/models/components/latencyentry.d.ts.map +1 -0
  25. package/models/components/latencyentry.js +92 -0
  26. package/models/components/latencyentry.js.map +1 -0
  27. package/models/components/latencyunittype.d.ts +37 -0
  28. package/models/components/latencyunittype.d.ts.map +1 -0
  29. package/models/components/latencyunittype.js +53 -0
  30. package/models/components/latencyunittype.js.map +1 -0
  31. package/models/components/promptcreaterequest.d.ts +1 -1
  32. package/models/components/promptupdaterequest.d.ts +1 -1
  33. package/models/components/summaryentry.d.ts +46 -0
  34. package/models/components/summaryentry.d.ts.map +1 -0
  35. package/models/components/summaryentry.js +87 -0
  36. package/models/components/summaryentry.js.map +1 -0
  37. package/models/operations/index.d.ts +1 -0
  38. package/models/operations/index.d.ts.map +1 -1
  39. package/models/operations/index.js +1 -0
  40. package/models/operations/index.js.map +1 -1
  41. package/models/operations/sessionlatencygetbyid.d.ts +29 -0
  42. package/models/operations/sessionlatencygetbyid.d.ts.map +1 -0
  43. package/models/operations/sessionlatencygetbyid.js +68 -0
  44. package/models/operations/sessionlatencygetbyid.js.map +1 -0
  45. package/openapi.json +18739 -18645
  46. package/package.json +1 -1
  47. package/sdk/latency.d.ts +10 -0
  48. package/sdk/latency.d.ts.map +1 -0
  49. package/sdk/latency.js +19 -0
  50. package/sdk/latency.js.map +1 -0
  51. package/sdk/sdk.d.ts +0 -3
  52. package/sdk/sdk.d.ts.map +1 -1
  53. package/sdk/sdk.js +0 -4
  54. package/sdk/sdk.js.map +1 -1
  55. package/sdk/sessions.d.ts +3 -0
  56. package/sdk/sessions.d.ts.map +1 -1
  57. package/sdk/sessions.js +4 -0
  58. package/sdk/sessions.js.map +1 -1
  59. package/src/funcs/{v1PostGetDashboard.ts → sessionsLatencyGetById.ts} +18 -21
  60. package/src/lib/config.ts +2 -2
  61. package/src/models/components/index.ts +5 -0
  62. package/src/models/components/inspectlatencyresponse.ts +102 -0
  63. package/src/models/components/latencycategory.ts +36 -0
  64. package/src/models/components/latencyentry.ts +124 -0
  65. package/src/models/components/latencyunittype.ts +36 -0
  66. package/src/models/components/promptcreaterequest.ts +1 -1
  67. package/src/models/components/promptupdaterequest.ts +1 -1
  68. package/src/models/components/summaryentry.ts +110 -0
  69. package/src/models/operations/index.ts +1 -0
  70. package/src/models/operations/sessionlatencygetbyid.ts +77 -0
  71. package/src/sdk/latency.ts +25 -0
  72. package/src/sdk/sdk.ts +0 -6
  73. package/src/sdk/sessions.ts +6 -0
  74. package/docs/sdks/v1/README.md +0 -497
  75. package/funcs/v1PostGetDashboard.d.ts +0 -20
  76. package/funcs/v1PostGetDashboard.d.ts.map +0 -1
  77. package/funcs/v1PostGetDashboard.js.map +0 -1
  78. package/funcs/v1PostListDashboard.d.ts.map +0 -1
  79. package/funcs/v1PostListDashboard.js +0 -117
  80. package/funcs/v1PostListDashboard.js.map +0 -1
  81. package/funcs/v1PostSessionEventsDashboard.d.ts +0 -21
  82. package/funcs/v1PostSessionEventsDashboard.d.ts.map +0 -1
  83. package/funcs/v1PostSessionEventsDashboard.js +0 -94
  84. package/funcs/v1PostSessionEventsDashboard.js.map +0 -1
  85. package/funcs/v1PostSessionSummaryDashboard.d.ts +0 -21
  86. package/funcs/v1PostSessionSummaryDashboard.d.ts.map +0 -1
  87. package/funcs/v1PostSessionSummaryDashboard.js +0 -94
  88. package/funcs/v1PostSessionSummaryDashboard.js.map +0 -1
  89. package/funcs/v1PostSessionTransfersDashboard.d.ts +0 -21
  90. package/funcs/v1PostSessionTransfersDashboard.d.ts.map +0 -1
  91. package/funcs/v1PostSessionTransfersDashboard.js +0 -94
  92. package/funcs/v1PostSessionTransfersDashboard.js.map +0 -1
  93. package/funcs/v1PostSessionsDashboard.d.ts +0 -21
  94. package/funcs/v1PostSessionsDashboard.d.ts.map +0 -1
  95. package/funcs/v1PostSessionsDashboard.js +0 -94
  96. package/funcs/v1PostSessionsDashboard.js.map +0 -1
  97. package/sdk/v1.d.ts +0 -78
  98. package/sdk/v1.d.ts.map +0 -1
  99. package/sdk/v1.js +0 -102
  100. package/sdk/v1.js.map +0 -1
  101. package/src/funcs/v1PostListDashboard.ts +0 -151
  102. package/src/funcs/v1PostSessionEventsDashboard.ts +0 -117
  103. package/src/funcs/v1PostSessionSummaryDashboard.ts +0 -117
  104. package/src/funcs/v1PostSessionTransfersDashboard.ts +0 -117
  105. package/src/funcs/v1PostSessionsDashboard.ts +0 -117
  106. package/src/sdk/v1.ts +0 -140
package/sdk/v1.d.ts DELETED
@@ -1,78 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as components from "../models/components/index.js";
3
- import * as operations from "../models/operations/index.js";
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>;
25
- /**
26
- * Post Session Events
27
- *
28
- * @remarks
29
- * METHOD: POST
30
- * URL: /dashboard/session_events
31
- * ARGUMENTS: None
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.
36
- */
37
- postSessionEventsDashboard(options?: RequestOptions): Promise<components.Dashboard>;
38
- /**
39
- * Post Session Summary
40
- *
41
- * @remarks
42
- * METHOD: POST
43
- * URL: /dashboard/session_summary
44
- * ARGUMENTS: None
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.
49
- */
50
- postSessionSummaryDashboard(options?: RequestOptions): Promise<components.Dashboard>;
51
- /**
52
- * Post Session Transfers
53
- *
54
- * @remarks
55
- * METHOD: POST
56
- * URL: /dashboard/session_transfers
57
- * ARGUMENTS: None
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.
62
- */
63
- postSessionTransfersDashboard(options?: RequestOptions): Promise<components.Dashboard>;
64
- /**
65
- * Post Sessions
66
- *
67
- * @remarks
68
- * METHOD: POST
69
- * URL: /dashboard/sessions
70
- * ARGUMENTS: None
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.
75
- */
76
- postSessionsDashboard(options?: RequestOptions): Promise<components.Dashboard>;
77
- }
78
- //# sourceMappingURL=v1.d.ts.map
package/sdk/v1.d.ts.map DELETED
@@ -1 +0,0 @@
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 DELETED
@@ -1,102 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.V1 = void 0;
7
- const v1PostGetDashboard_js_1 = require("../funcs/v1PostGetDashboard.js");
8
- const v1PostListDashboard_js_1 = require("../funcs/v1PostListDashboard.js");
9
- const v1PostSessionEventsDashboard_js_1 = require("../funcs/v1PostSessionEventsDashboard.js");
10
- const v1PostSessionsDashboard_js_1 = require("../funcs/v1PostSessionsDashboard.js");
11
- const v1PostSessionSummaryDashboard_js_1 = require("../funcs/v1PostSessionSummaryDashboard.js");
12
- const v1PostSessionTransfersDashboard_js_1 = require("../funcs/v1PostSessionTransfersDashboard.js");
13
- const sdks_js_1 = require("../lib/sdks.js");
14
- const fp_js_1 = require("../types/fp.js");
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
- }
40
- /**
41
- * Post Session Events
42
- *
43
- * @remarks
44
- * METHOD: POST
45
- * URL: /dashboard/session_events
46
- * ARGUMENTS: None
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.
51
- */
52
- async postSessionEventsDashboard(options) {
53
- return (0, fp_js_1.unwrapAsync)((0, v1PostSessionEventsDashboard_js_1.v1PostSessionEventsDashboard)(this, options));
54
- }
55
- /**
56
- * Post Session Summary
57
- *
58
- * @remarks
59
- * METHOD: POST
60
- * URL: /dashboard/session_summary
61
- * ARGUMENTS: None
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.
66
- */
67
- async postSessionSummaryDashboard(options) {
68
- return (0, fp_js_1.unwrapAsync)((0, v1PostSessionSummaryDashboard_js_1.v1PostSessionSummaryDashboard)(this, options));
69
- }
70
- /**
71
- * Post Session Transfers
72
- *
73
- * @remarks
74
- * METHOD: POST
75
- * URL: /dashboard/session_transfers
76
- * ARGUMENTS: None
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.
81
- */
82
- async postSessionTransfersDashboard(options) {
83
- return (0, fp_js_1.unwrapAsync)((0, v1PostSessionTransfersDashboard_js_1.v1PostSessionTransfersDashboard)(this, options));
84
- }
85
- /**
86
- * Post Sessions
87
- *
88
- * @remarks
89
- * METHOD: POST
90
- * URL: /dashboard/sessions
91
- * ARGUMENTS: None
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.
96
- */
97
- async postSessionsDashboard(options) {
98
- return (0, fp_js_1.unwrapAsync)((0, v1PostSessionsDashboard_js_1.v1PostSessionsDashboard)(this, options));
99
- }
100
- }
101
- exports.V1 = V1;
102
- //# sourceMappingURL=v1.js.map
package/sdk/v1.js.map DELETED
@@ -1 +0,0 @@
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"}
@@ -1,151 +0,0 @@
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 v1PostListDashboard(
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
- baseURL: options?.serverURL ?? "",
88
- operationID: "post_list_dashboard",
89
- oAuth2Scopes: [],
90
-
91
- resolvedSecurity: requestSecurity,
92
-
93
- securitySource: client._options.apiKeyHeader,
94
- retryConfig: options?.retries
95
- || client._options.retryConfig
96
- || { strategy: "none" },
97
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
98
- };
99
-
100
- const requestRes = client._createRequest(context, {
101
- security: requestSecurity,
102
- method: "POST",
103
- baseURL: options?.serverURL,
104
- path: path,
105
- headers: headers,
106
- query: query,
107
- body: body,
108
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
109
- }, options);
110
- if (!requestRes.ok) {
111
- return requestRes;
112
- }
113
- const req = requestRes.value;
114
-
115
- const doResult = await client._do(req, {
116
- context,
117
- errorCodes: ["422", "4XX", "5XX"],
118
- retryConfig: context.retryConfig,
119
- retryCodes: context.retryCodes,
120
- });
121
- if (!doResult.ok) {
122
- return doResult;
123
- }
124
- const response = doResult.value;
125
-
126
- const responseFields = {
127
- HttpMeta: { Response: response, Request: req },
128
- };
129
-
130
- const [result] = await M.match<
131
- components.ListResponseDashboardResponse,
132
- | errors.HTTPValidationError
133
- | SDKError
134
- | SDKValidationError
135
- | UnexpectedClientError
136
- | InvalidRequestError
137
- | RequestAbortedError
138
- | RequestTimeoutError
139
- | ConnectionError
140
- >(
141
- M.json(200, components.ListResponseDashboardResponse$inboundSchema),
142
- M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
143
- M.fail("4XX"),
144
- M.fail("5XX"),
145
- )(response, { extraFields: responseFields });
146
- if (!result.ok) {
147
- return result;
148
- }
149
-
150
- return result;
151
- }
@@ -1,117 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { SyllableSDKCore } from "../core.js";
6
- import * as M from "../lib/matchers.js";
7
- import { compactMap } from "../lib/primitives.js";
8
- import { RequestOptions } from "../lib/sdks.js";
9
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
- import { pathToFunc } from "../lib/url.js";
11
- import * as components from "../models/components/index.js";
12
- import {
13
- ConnectionError,
14
- InvalidRequestError,
15
- RequestAbortedError,
16
- RequestTimeoutError,
17
- UnexpectedClientError,
18
- } from "../models/errors/httpclienterrors.js";
19
- import { SDKError } from "../models/errors/sdkerror.js";
20
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
- import { Result } from "../types/fp.js";
22
-
23
- /**
24
- * Post Session Events
25
- *
26
- * @remarks
27
- * METHOD: POST
28
- * URL: /dashboard/session_events
29
- * ARGUMENTS: None
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.
34
- */
35
- export async function v1PostSessionEventsDashboard(
36
- client: SyllableSDKCore,
37
- options?: RequestOptions,
38
- ): Promise<
39
- Result<
40
- components.Dashboard,
41
- | SDKError
42
- | SDKValidationError
43
- | UnexpectedClientError
44
- | InvalidRequestError
45
- | RequestAbortedError
46
- | RequestTimeoutError
47
- | ConnectionError
48
- >
49
- > {
50
- const path = pathToFunc("/api/v1/dashboards/session_events")();
51
-
52
- const headers = new Headers(compactMap({
53
- Accept: "application/json",
54
- }));
55
-
56
- const secConfig = await extractSecurity(client._options.apiKeyHeader);
57
- const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
58
- const requestSecurity = resolveGlobalSecurity(securityInput);
59
-
60
- const context = {
61
- baseURL: options?.serverURL ?? "",
62
- operationID: "post_session_events_dashboard",
63
- oAuth2Scopes: [],
64
-
65
- resolvedSecurity: requestSecurity,
66
-
67
- securitySource: client._options.apiKeyHeader,
68
- retryConfig: options?.retries
69
- || client._options.retryConfig
70
- || { strategy: "none" },
71
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
72
- };
73
-
74
- const requestRes = client._createRequest(context, {
75
- security: requestSecurity,
76
- method: "POST",
77
- baseURL: options?.serverURL,
78
- path: path,
79
- headers: headers,
80
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
81
- }, options);
82
- if (!requestRes.ok) {
83
- return requestRes;
84
- }
85
- const req = requestRes.value;
86
-
87
- const doResult = await client._do(req, {
88
- context,
89
- errorCodes: ["4XX", "5XX"],
90
- retryConfig: context.retryConfig,
91
- retryCodes: context.retryCodes,
92
- });
93
- if (!doResult.ok) {
94
- return doResult;
95
- }
96
- const response = doResult.value;
97
-
98
- const [result] = await M.match<
99
- components.Dashboard,
100
- | SDKError
101
- | SDKValidationError
102
- | UnexpectedClientError
103
- | InvalidRequestError
104
- | RequestAbortedError
105
- | RequestTimeoutError
106
- | ConnectionError
107
- >(
108
- M.json(200, components.Dashboard$inboundSchema),
109
- M.fail("4XX"),
110
- M.fail("5XX"),
111
- )(response);
112
- if (!result.ok) {
113
- return result;
114
- }
115
-
116
- return result;
117
- }
@@ -1,117 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { SyllableSDKCore } from "../core.js";
6
- import * as M from "../lib/matchers.js";
7
- import { compactMap } from "../lib/primitives.js";
8
- import { RequestOptions } from "../lib/sdks.js";
9
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
- import { pathToFunc } from "../lib/url.js";
11
- import * as components from "../models/components/index.js";
12
- import {
13
- ConnectionError,
14
- InvalidRequestError,
15
- RequestAbortedError,
16
- RequestTimeoutError,
17
- UnexpectedClientError,
18
- } from "../models/errors/httpclienterrors.js";
19
- import { SDKError } from "../models/errors/sdkerror.js";
20
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
- import { Result } from "../types/fp.js";
22
-
23
- /**
24
- * Post Session Summary
25
- *
26
- * @remarks
27
- * METHOD: POST
28
- * URL: /dashboard/session_summary
29
- * ARGUMENTS: None
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.
34
- */
35
- export async function v1PostSessionSummaryDashboard(
36
- client: SyllableSDKCore,
37
- options?: RequestOptions,
38
- ): Promise<
39
- Result<
40
- components.Dashboard,
41
- | SDKError
42
- | SDKValidationError
43
- | UnexpectedClientError
44
- | InvalidRequestError
45
- | RequestAbortedError
46
- | RequestTimeoutError
47
- | ConnectionError
48
- >
49
- > {
50
- const path = pathToFunc("/api/v1/dashboards/session_summary")();
51
-
52
- const headers = new Headers(compactMap({
53
- Accept: "application/json",
54
- }));
55
-
56
- const secConfig = await extractSecurity(client._options.apiKeyHeader);
57
- const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
58
- const requestSecurity = resolveGlobalSecurity(securityInput);
59
-
60
- const context = {
61
- baseURL: options?.serverURL ?? "",
62
- operationID: "post_session_summary_dashboard",
63
- oAuth2Scopes: [],
64
-
65
- resolvedSecurity: requestSecurity,
66
-
67
- securitySource: client._options.apiKeyHeader,
68
- retryConfig: options?.retries
69
- || client._options.retryConfig
70
- || { strategy: "none" },
71
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
72
- };
73
-
74
- const requestRes = client._createRequest(context, {
75
- security: requestSecurity,
76
- method: "POST",
77
- baseURL: options?.serverURL,
78
- path: path,
79
- headers: headers,
80
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
81
- }, options);
82
- if (!requestRes.ok) {
83
- return requestRes;
84
- }
85
- const req = requestRes.value;
86
-
87
- const doResult = await client._do(req, {
88
- context,
89
- errorCodes: ["4XX", "5XX"],
90
- retryConfig: context.retryConfig,
91
- retryCodes: context.retryCodes,
92
- });
93
- if (!doResult.ok) {
94
- return doResult;
95
- }
96
- const response = doResult.value;
97
-
98
- const [result] = await M.match<
99
- components.Dashboard,
100
- | SDKError
101
- | SDKValidationError
102
- | UnexpectedClientError
103
- | InvalidRequestError
104
- | RequestAbortedError
105
- | RequestTimeoutError
106
- | ConnectionError
107
- >(
108
- M.json(200, components.Dashboard$inboundSchema),
109
- M.fail("4XX"),
110
- M.fail("5XX"),
111
- )(response);
112
- if (!result.ok) {
113
- return result;
114
- }
115
-
116
- return result;
117
- }
@@ -1,117 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { SyllableSDKCore } from "../core.js";
6
- import * as M from "../lib/matchers.js";
7
- import { compactMap } from "../lib/primitives.js";
8
- import { RequestOptions } from "../lib/sdks.js";
9
- import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
- import { pathToFunc } from "../lib/url.js";
11
- import * as components from "../models/components/index.js";
12
- import {
13
- ConnectionError,
14
- InvalidRequestError,
15
- RequestAbortedError,
16
- RequestTimeoutError,
17
- UnexpectedClientError,
18
- } from "../models/errors/httpclienterrors.js";
19
- import { SDKError } from "../models/errors/sdkerror.js";
20
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
- import { Result } from "../types/fp.js";
22
-
23
- /**
24
- * Post Session Transfers
25
- *
26
- * @remarks
27
- * METHOD: POST
28
- * URL: /dashboard/session_transfers
29
- * ARGUMENTS: None
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.
34
- */
35
- export async function v1PostSessionTransfersDashboard(
36
- client: SyllableSDKCore,
37
- options?: RequestOptions,
38
- ): Promise<
39
- Result<
40
- components.Dashboard,
41
- | SDKError
42
- | SDKValidationError
43
- | UnexpectedClientError
44
- | InvalidRequestError
45
- | RequestAbortedError
46
- | RequestTimeoutError
47
- | ConnectionError
48
- >
49
- > {
50
- const path = pathToFunc("/api/v1/dashboards/session_transfers")();
51
-
52
- const headers = new Headers(compactMap({
53
- Accept: "application/json",
54
- }));
55
-
56
- const secConfig = await extractSecurity(client._options.apiKeyHeader);
57
- const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
58
- const requestSecurity = resolveGlobalSecurity(securityInput);
59
-
60
- const context = {
61
- baseURL: options?.serverURL ?? "",
62
- operationID: "post_session_transfers_dashboard",
63
- oAuth2Scopes: [],
64
-
65
- resolvedSecurity: requestSecurity,
66
-
67
- securitySource: client._options.apiKeyHeader,
68
- retryConfig: options?.retries
69
- || client._options.retryConfig
70
- || { strategy: "none" },
71
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
72
- };
73
-
74
- const requestRes = client._createRequest(context, {
75
- security: requestSecurity,
76
- method: "POST",
77
- baseURL: options?.serverURL,
78
- path: path,
79
- headers: headers,
80
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
81
- }, options);
82
- if (!requestRes.ok) {
83
- return requestRes;
84
- }
85
- const req = requestRes.value;
86
-
87
- const doResult = await client._do(req, {
88
- context,
89
- errorCodes: ["4XX", "5XX"],
90
- retryConfig: context.retryConfig,
91
- retryCodes: context.retryCodes,
92
- });
93
- if (!doResult.ok) {
94
- return doResult;
95
- }
96
- const response = doResult.value;
97
-
98
- const [result] = await M.match<
99
- components.Dashboard,
100
- | SDKError
101
- | SDKValidationError
102
- | UnexpectedClientError
103
- | InvalidRequestError
104
- | RequestAbortedError
105
- | RequestTimeoutError
106
- | ConnectionError
107
- >(
108
- M.json(200, components.Dashboard$inboundSchema),
109
- M.fail("4XX"),
110
- M.fail("5XX"),
111
- )(response);
112
- if (!result.ok) {
113
- return result;
114
- }
115
-
116
- return result;
117
- }