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

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 (163) hide show
  1. package/README.md +5 -15
  2. package/docs/sdks/batches/README.md +10 -24
  3. package/docs/sdks/campaigns/README.md +14 -6
  4. package/docs/sdks/latency/README.md +85 -0
  5. package/funcs/outboundBatchesUpdate.js +1 -1
  6. package/funcs/outboundBatchesUpdate.js.map +1 -1
  7. package/funcs/{v1PostListDashboard.d.ts → sessionsLatencyGetById.d.ts} +3 -9
  8. package/funcs/sessionsLatencyGetById.d.ts.map +1 -0
  9. package/funcs/{v1PostGetDashboard.js → sessionsLatencyGetById.js} +15 -19
  10. package/funcs/sessionsLatencyGetById.js.map +1 -0
  11. package/jsr.json +1 -1
  12. package/lib/config.d.ts +2 -2
  13. package/lib/config.js +2 -2
  14. package/models/components/batchdetails.d.ts +8 -3
  15. package/models/components/batchdetails.d.ts.map +1 -1
  16. package/models/components/batchdetails.js +8 -2
  17. package/models/components/batchdetails.js.map +1 -1
  18. package/models/components/batchstatus.d.ts +3 -3
  19. package/models/components/batchstatus.js +1 -1
  20. package/models/components/batchstatus.js.map +1 -1
  21. package/models/components/communicationbatch.d.ts +8 -3
  22. package/models/components/communicationbatch.d.ts.map +1 -1
  23. package/models/components/communicationbatch.js +8 -2
  24. package/models/components/communicationbatch.js.map +1 -1
  25. package/models/components/communicationbatchupdate.d.ts +37 -0
  26. package/models/components/communicationbatchupdate.d.ts.map +1 -0
  27. package/models/components/communicationbatchupdate.js +70 -0
  28. package/models/components/communicationbatchupdate.js.map +1 -0
  29. package/models/components/communicationrequestresult.d.ts +6 -0
  30. package/models/components/communicationrequestresult.d.ts.map +1 -1
  31. package/models/components/communicationrequestresult.js +5 -0
  32. package/models/components/communicationrequestresult.js.map +1 -1
  33. package/models/components/daysofweek.d.ts +49 -0
  34. package/models/components/daysofweek.d.ts.map +1 -0
  35. package/models/components/daysofweek.js +59 -0
  36. package/models/components/daysofweek.js.map +1 -0
  37. package/models/components/index.d.ts +8 -0
  38. package/models/components/index.d.ts.map +1 -1
  39. package/models/components/index.js +8 -0
  40. package/models/components/index.js.map +1 -1
  41. package/models/components/inspectlatencyresponse.d.ts +42 -0
  42. package/models/components/inspectlatencyresponse.d.ts.map +1 -0
  43. package/models/components/inspectlatencyresponse.js +74 -0
  44. package/models/components/inspectlatencyresponse.js.map +1 -0
  45. package/models/components/latencycategory.d.ts +37 -0
  46. package/models/components/latencycategory.d.ts.map +1 -0
  47. package/models/components/latencycategory.js +53 -0
  48. package/models/components/latencycategory.js.map +1 -0
  49. package/models/components/latencyentry.d.ts +50 -0
  50. package/models/components/latencyentry.d.ts.map +1 -0
  51. package/models/components/latencyentry.js +92 -0
  52. package/models/components/latencyentry.js.map +1 -0
  53. package/models/components/latencyunittype.d.ts +37 -0
  54. package/models/components/latencyunittype.d.ts.map +1 -0
  55. package/models/components/latencyunittype.js +53 -0
  56. package/models/components/latencyunittype.js.map +1 -0
  57. package/models/components/outboundcampaign.d.ts +7 -6
  58. package/models/components/outboundcampaign.d.ts.map +1 -1
  59. package/models/components/outboundcampaign.js +9 -6
  60. package/models/components/outboundcampaign.js.map +1 -1
  61. package/models/components/outboundcampaigninput.d.ts +7 -6
  62. package/models/components/outboundcampaigninput.d.ts.map +1 -1
  63. package/models/components/outboundcampaigninput.js +9 -6
  64. package/models/components/outboundcampaigninput.js.map +1 -1
  65. package/models/components/promptcreaterequest.d.ts +1 -1
  66. package/models/components/promptupdaterequest.d.ts +1 -1
  67. package/models/components/requeststatus.d.ts +46 -0
  68. package/models/components/requeststatus.d.ts.map +1 -0
  69. package/models/components/requeststatus.js +57 -0
  70. package/models/components/requeststatus.js.map +1 -0
  71. package/models/components/summaryentry.d.ts +46 -0
  72. package/models/components/summaryentry.d.ts.map +1 -0
  73. package/models/components/summaryentry.js +87 -0
  74. package/models/components/summaryentry.js.map +1 -0
  75. package/models/operations/index.d.ts +1 -0
  76. package/models/operations/index.d.ts.map +1 -1
  77. package/models/operations/index.js +1 -0
  78. package/models/operations/index.js.map +1 -1
  79. package/models/operations/outboundbatchupdate.d.ts +2 -2
  80. package/models/operations/outboundbatchupdate.d.ts.map +1 -1
  81. package/models/operations/outboundbatchupdate.js +4 -4
  82. package/models/operations/outboundbatchupdate.js.map +1 -1
  83. package/models/operations/outboundcampaigngetbyid.d.ts +2 -2
  84. package/models/operations/outboundcampaigngetbyid.js +2 -2
  85. package/models/operations/outboundcampaigngetbyid.js.map +1 -1
  86. package/models/operations/sessionlatencygetbyid.d.ts +29 -0
  87. package/models/operations/sessionlatencygetbyid.d.ts.map +1 -0
  88. package/models/operations/sessionlatencygetbyid.js +68 -0
  89. package/models/operations/sessionlatencygetbyid.js.map +1 -0
  90. package/openapi.json +488 -291
  91. package/package.json +1 -1
  92. package/sdk/latency.d.ts +10 -0
  93. package/sdk/latency.d.ts.map +1 -0
  94. package/sdk/latency.js +19 -0
  95. package/sdk/latency.js.map +1 -0
  96. package/sdk/sdk.d.ts +0 -3
  97. package/sdk/sdk.d.ts.map +1 -1
  98. package/sdk/sdk.js +0 -4
  99. package/sdk/sdk.js.map +1 -1
  100. package/sdk/sessions.d.ts +3 -0
  101. package/sdk/sessions.d.ts.map +1 -1
  102. package/sdk/sessions.js +4 -0
  103. package/sdk/sessions.js.map +1 -1
  104. package/src/funcs/outboundBatchesUpdate.ts +1 -1
  105. package/src/funcs/{v1PostGetDashboard.ts → sessionsLatencyGetById.ts} +18 -21
  106. package/src/lib/config.ts +2 -2
  107. package/src/models/components/batchdetails.ts +16 -5
  108. package/src/models/components/batchstatus.ts +1 -1
  109. package/src/models/components/communicationbatch.ts +16 -5
  110. package/src/models/components/communicationbatchupdate.ts +85 -0
  111. package/src/models/components/communicationrequestresult.ts +14 -0
  112. package/src/models/components/daysofweek.ts +42 -0
  113. package/src/models/components/index.ts +8 -0
  114. package/src/models/components/inspectlatencyresponse.ts +102 -0
  115. package/src/models/components/latencycategory.ts +36 -0
  116. package/src/models/components/latencyentry.ts +124 -0
  117. package/src/models/components/latencyunittype.ts +36 -0
  118. package/src/models/components/outboundcampaign.ts +19 -12
  119. package/src/models/components/outboundcampaigninput.ts +19 -12
  120. package/src/models/components/promptcreaterequest.ts +1 -1
  121. package/src/models/components/promptupdaterequest.ts +1 -1
  122. package/src/models/components/requeststatus.ts +43 -0
  123. package/src/models/components/summaryentry.ts +110 -0
  124. package/src/models/operations/index.ts +1 -0
  125. package/src/models/operations/outboundbatchupdate.ts +6 -6
  126. package/src/models/operations/outboundcampaigngetbyid.ts +4 -4
  127. package/src/models/operations/sessionlatencygetbyid.ts +77 -0
  128. package/src/sdk/latency.ts +25 -0
  129. package/src/sdk/sdk.ts +0 -6
  130. package/src/sdk/sessions.ts +6 -0
  131. package/docs/sdks/v1/README.md +0 -497
  132. package/funcs/v1PostGetDashboard.d.ts +0 -20
  133. package/funcs/v1PostGetDashboard.d.ts.map +0 -1
  134. package/funcs/v1PostGetDashboard.js.map +0 -1
  135. package/funcs/v1PostListDashboard.d.ts.map +0 -1
  136. package/funcs/v1PostListDashboard.js +0 -117
  137. package/funcs/v1PostListDashboard.js.map +0 -1
  138. package/funcs/v1PostSessionEventsDashboard.d.ts +0 -21
  139. package/funcs/v1PostSessionEventsDashboard.d.ts.map +0 -1
  140. package/funcs/v1PostSessionEventsDashboard.js +0 -94
  141. package/funcs/v1PostSessionEventsDashboard.js.map +0 -1
  142. package/funcs/v1PostSessionSummaryDashboard.d.ts +0 -21
  143. package/funcs/v1PostSessionSummaryDashboard.d.ts.map +0 -1
  144. package/funcs/v1PostSessionSummaryDashboard.js +0 -94
  145. package/funcs/v1PostSessionSummaryDashboard.js.map +0 -1
  146. package/funcs/v1PostSessionTransfersDashboard.d.ts +0 -21
  147. package/funcs/v1PostSessionTransfersDashboard.d.ts.map +0 -1
  148. package/funcs/v1PostSessionTransfersDashboard.js +0 -94
  149. package/funcs/v1PostSessionTransfersDashboard.js.map +0 -1
  150. package/funcs/v1PostSessionsDashboard.d.ts +0 -21
  151. package/funcs/v1PostSessionsDashboard.d.ts.map +0 -1
  152. package/funcs/v1PostSessionsDashboard.js +0 -94
  153. package/funcs/v1PostSessionsDashboard.js.map +0 -1
  154. package/sdk/v1.d.ts +0 -78
  155. package/sdk/v1.d.ts.map +0 -1
  156. package/sdk/v1.js +0 -102
  157. package/sdk/v1.js.map +0 -1
  158. package/src/funcs/v1PostListDashboard.ts +0 -151
  159. package/src/funcs/v1PostSessionEventsDashboard.ts +0 -117
  160. package/src/funcs/v1PostSessionSummaryDashboard.ts +0 -117
  161. package/src/funcs/v1PostSessionTransfersDashboard.ts +0 -117
  162. package/src/funcs/v1PostSessionsDashboard.ts +0 -117
  163. package/src/sdk/v1.ts +0 -140
@@ -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 Sessions
25
- *
26
- * @remarks
27
- * METHOD: POST
28
- * URL: /dashboard/sessions
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 v1PostSessionsDashboard(
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/sessions")();
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_sessions_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
- }
package/src/sdk/v1.ts DELETED
@@ -1,140 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { v1PostGetDashboard } from "../funcs/v1PostGetDashboard.js";
6
- import { v1PostListDashboard } from "../funcs/v1PostListDashboard.js";
7
- import { v1PostSessionEventsDashboard } from "../funcs/v1PostSessionEventsDashboard.js";
8
- import { v1PostSessionsDashboard } from "../funcs/v1PostSessionsDashboard.js";
9
- import { v1PostSessionSummaryDashboard } from "../funcs/v1PostSessionSummaryDashboard.js";
10
- import { v1PostSessionTransfersDashboard } from "../funcs/v1PostSessionTransfersDashboard.js";
11
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
12
- import * as components from "../models/components/index.js";
13
- import * as operations from "../models/operations/index.js";
14
- import { unwrapAsync } from "../types/fp.js";
15
-
16
- export class V1 extends ClientSDK {
17
- /**
18
- * Post List Dashboards
19
- *
20
- * @remarks
21
- * METHOD: POST
22
- * URL: /dashboard/list
23
- * ARGUMENTS: None
24
- * RETURNS: List of dashboards
25
- */
26
- async postListDashboard(
27
- request: operations.PostListDashboardRequest,
28
- options?: RequestOptions,
29
- ): Promise<components.ListResponseDashboardResponse> {
30
- return unwrapAsync(v1PostListDashboard(
31
- this,
32
- request,
33
- options,
34
- ));
35
- }
36
-
37
- /**
38
- * Post Fetch Info
39
- *
40
- * @remarks
41
- * METHOD: POST
42
- * URL: /dashboard/fetch_info
43
- * ARGUMENTS: None
44
- * RETURNS: Dashboard info for embedding
45
- */
46
- async postGetDashboard(
47
- request: operations.PostGetDashboardRequest,
48
- options?: RequestOptions,
49
- ): Promise<components.DashboardTokenResponse> {
50
- return unwrapAsync(v1PostGetDashboard(
51
- this,
52
- request,
53
- options,
54
- ));
55
- }
56
-
57
- /**
58
- * Post Session Events
59
- *
60
- * @remarks
61
- * METHOD: POST
62
- * URL: /dashboard/session_events
63
- * ARGUMENTS: None
64
- * RETURNS: Dashboard info for embedding
65
- * DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
66
- *
67
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
68
- */
69
- async postSessionEventsDashboard(
70
- options?: RequestOptions,
71
- ): Promise<components.Dashboard> {
72
- return unwrapAsync(v1PostSessionEventsDashboard(
73
- this,
74
- options,
75
- ));
76
- }
77
-
78
- /**
79
- * Post Session Summary
80
- *
81
- * @remarks
82
- * METHOD: POST
83
- * URL: /dashboard/session_summary
84
- * ARGUMENTS: None
85
- * RETURNS: Dashboard info for embedding
86
- * DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
87
- *
88
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
89
- */
90
- async postSessionSummaryDashboard(
91
- options?: RequestOptions,
92
- ): Promise<components.Dashboard> {
93
- return unwrapAsync(v1PostSessionSummaryDashboard(
94
- this,
95
- options,
96
- ));
97
- }
98
-
99
- /**
100
- * Post Session Transfers
101
- *
102
- * @remarks
103
- * METHOD: POST
104
- * URL: /dashboard/session_transfers
105
- * ARGUMENTS: None
106
- * RETURNS: Dashboard info for embedding
107
- * DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
108
- *
109
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
110
- */
111
- async postSessionTransfersDashboard(
112
- options?: RequestOptions,
113
- ): Promise<components.Dashboard> {
114
- return unwrapAsync(v1PostSessionTransfersDashboard(
115
- this,
116
- options,
117
- ));
118
- }
119
-
120
- /**
121
- * Post Sessions
122
- *
123
- * @remarks
124
- * METHOD: POST
125
- * URL: /dashboard/sessions
126
- * ARGUMENTS: None
127
- * RETURNS: Dashboard info for embedding
128
- * DEPRECATED: This endpoint is deprecated. Please use /dashboard/list instead
129
- *
130
- * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
131
- */
132
- async postSessionsDashboard(
133
- options?: RequestOptions,
134
- ): Promise<components.Dashboard> {
135
- return unwrapAsync(v1PostSessionsDashboard(
136
- this,
137
- options,
138
- ));
139
- }
140
- }