@deepgram/sdk 5.0.0-alpha.2 → 5.0.0-beta.1

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 (191) hide show
  1. package/LICENSE +1 -1
  2. package/dist/browser/index.global.js +674 -1135
  3. package/dist/cjs/BaseClient.d.ts +7 -7
  4. package/dist/cjs/BaseClient.js +2 -2
  5. package/dist/cjs/Client.d.ts +1 -2
  6. package/dist/cjs/CustomClient.d.ts +9 -1
  7. package/dist/cjs/CustomClient.js +346 -232
  8. package/dist/cjs/api/resources/agent/client/Client.d.ts +1 -2
  9. package/dist/cjs/api/resources/agent/resources/v1/client/Client.d.ts +1 -2
  10. package/dist/cjs/api/resources/agent/resources/v1/client/Socket.d.ts +8 -8
  11. package/dist/cjs/api/resources/agent/resources/v1/client/Socket.js +9 -9
  12. package/dist/cjs/api/resources/agent/resources/v1/resources/settings/client/Client.d.ts +1 -2
  13. package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/client/Client.d.ts +1 -2
  14. package/dist/cjs/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.d.ts +1 -2
  15. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1Settings.d.ts +3 -43
  16. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.ts +26 -0
  17. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.js +3 -0
  18. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.d.ts +28 -13
  19. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.js +19 -17
  20. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.d.ts +28 -13
  21. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.js +19 -17
  22. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.ts +115 -0
  23. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.js +57 -0
  24. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.ts +18 -3
  25. package/dist/cjs/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.js +2 -0
  26. package/dist/cjs/api/resources/agent/resources/v1/types/index.d.ts +2 -0
  27. package/dist/cjs/api/resources/agent/resources/v1/types/index.js +2 -0
  28. package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -2
  29. package/dist/cjs/api/resources/auth/resources/v1/client/Client.d.ts +1 -2
  30. package/dist/cjs/api/resources/auth/resources/v1/resources/tokens/client/Client.d.ts +1 -2
  31. package/dist/cjs/api/resources/listen/client/Client.d.ts +1 -2
  32. package/dist/cjs/api/resources/listen/resources/v1/client/Client.d.ts +1 -2
  33. package/dist/cjs/api/resources/listen/resources/v1/client/Client.js +29 -80
  34. package/dist/cjs/api/resources/listen/resources/v1/client/Socket.d.ts +4 -4
  35. package/dist/cjs/api/resources/listen/resources/v1/client/Socket.js +5 -5
  36. package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.d.ts +1 -2
  37. package/dist/cjs/api/resources/listen/resources/v1/resources/media/client/Client.js +76 -298
  38. package/dist/cjs/api/resources/listen/resources/v1/types/ListenV1Results.d.ts +3 -3
  39. package/dist/cjs/api/resources/listen/resources/v2/client/Client.d.ts +1 -2
  40. package/dist/cjs/api/resources/listen/resources/v2/client/Client.js +11 -26
  41. package/dist/cjs/api/resources/listen/resources/v2/client/Socket.d.ts +2 -2
  42. package/dist/cjs/api/resources/listen/resources/v2/client/Socket.js +3 -3
  43. package/dist/cjs/api/resources/manage/client/Client.d.ts +1 -2
  44. package/dist/cjs/api/resources/manage/resources/v1/client/Client.d.ts +1 -2
  45. package/dist/cjs/api/resources/manage/resources/v1/resources/models/client/Client.d.ts +1 -2
  46. package/dist/cjs/api/resources/manage/resources/v1/resources/models/client/Client.js +3 -4
  47. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/client/Client.d.ts +1 -2
  48. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/client/Client.js +4 -7
  49. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/client/Client.d.ts +1 -2
  50. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/balances/client/Client.d.ts +1 -2
  51. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.d.ts +1 -2
  52. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.js +9 -27
  53. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.d.ts +1 -2
  54. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.js +4 -7
  55. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.d.ts +1 -2
  56. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.js +3 -4
  57. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.d.ts +1 -2
  58. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.js +3 -4
  59. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/client/Client.d.ts +1 -2
  60. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/resources/invites/client/Client.d.ts +1 -2
  61. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/members/resources/scopes/client/Client.d.ts +1 -2
  62. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.d.ts +1 -2
  63. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.js +3 -4
  64. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.d.ts +1 -2
  65. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.js +12 -31
  66. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.d.ts +1 -2
  67. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.js +46 -133
  68. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.d.ts +1 -2
  69. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.js +47 -136
  70. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.d.ts +1 -2
  71. package/dist/cjs/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.js +4 -7
  72. package/dist/cjs/api/resources/read/client/Client.d.ts +1 -2
  73. package/dist/cjs/api/resources/read/resources/v1/client/Client.d.ts +1 -2
  74. package/dist/cjs/api/resources/read/resources/v1/resources/text/client/Client.d.ts +1 -2
  75. package/dist/cjs/api/resources/read/resources/v1/resources/text/client/Client.js +14 -52
  76. package/dist/cjs/api/resources/selfHosted/client/Client.d.ts +1 -2
  77. package/dist/cjs/api/resources/selfHosted/resources/v1/client/Client.d.ts +1 -2
  78. package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.d.ts +1 -2
  79. package/dist/cjs/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.js +4 -12
  80. package/dist/cjs/api/resources/speak/client/Client.d.ts +1 -2
  81. package/dist/cjs/api/resources/speak/resources/v1/client/Client.d.ts +1 -2
  82. package/dist/cjs/api/resources/speak/resources/v1/client/Client.js +6 -13
  83. package/dist/cjs/api/resources/speak/resources/v1/client/Socket.d.ts +4 -4
  84. package/dist/cjs/api/resources/speak/resources/v1/client/Socket.js +4 -4
  85. package/dist/cjs/api/resources/speak/resources/v1/resources/audio/client/Client.d.ts +1 -2
  86. package/dist/cjs/api/resources/speak/resources/v1/resources/audio/client/Client.js +11 -33
  87. package/dist/cjs/api/types/SpeakV1SampleRate.d.ts +1 -1
  88. package/dist/cjs/api/types/SpeakV1SampleRate.js +1 -1
  89. package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -8
  90. package/dist/cjs/auth/HeaderAuthProvider.js +19 -9
  91. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  92. package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -2
  93. package/dist/cjs/core/headers.d.ts +2 -2
  94. package/dist/cjs/core/websocket/ws.d.ts +1 -1
  95. package/dist/cjs/version.d.ts +1 -1
  96. package/dist/cjs/version.js +1 -1
  97. package/dist/esm/BaseClient.d.mts +7 -7
  98. package/dist/esm/BaseClient.mjs +2 -2
  99. package/dist/esm/Client.d.mts +1 -2
  100. package/dist/esm/CustomClient.d.mts +9 -1
  101. package/dist/esm/CustomClient.mjs +347 -233
  102. package/dist/esm/api/resources/agent/client/Client.d.mts +1 -2
  103. package/dist/esm/api/resources/agent/resources/v1/client/Client.d.mts +1 -2
  104. package/dist/esm/api/resources/agent/resources/v1/client/Socket.d.mts +8 -8
  105. package/dist/esm/api/resources/agent/resources/v1/client/Socket.mjs +9 -9
  106. package/dist/esm/api/resources/agent/resources/v1/resources/settings/client/Client.d.mts +1 -2
  107. package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/client/Client.d.mts +1 -2
  108. package/dist/esm/api/resources/agent/resources/v1/resources/settings/resources/think/resources/models/client/Client.d.mts +1 -2
  109. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1Settings.d.mts +3 -43
  110. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.d.mts +26 -0
  111. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentListenProvider.mjs +2 -0
  112. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.d.mts +28 -13
  113. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakEndpointProvider.mjs +19 -17
  114. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.d.mts +28 -13
  115. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentSpeakOneItemProvider.mjs +19 -17
  116. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.d.mts +115 -0
  117. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1SettingsAgentThinkProvider.mjs +54 -0
  118. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.d.mts +18 -3
  119. package/dist/esm/api/resources/agent/resources/v1/types/AgentV1UpdateSpeakSpeakProvider.mjs +2 -0
  120. package/dist/esm/api/resources/agent/resources/v1/types/index.d.mts +2 -0
  121. package/dist/esm/api/resources/agent/resources/v1/types/index.mjs +2 -0
  122. package/dist/esm/api/resources/auth/client/Client.d.mts +1 -2
  123. package/dist/esm/api/resources/auth/resources/v1/client/Client.d.mts +1 -2
  124. package/dist/esm/api/resources/auth/resources/v1/resources/tokens/client/Client.d.mts +1 -2
  125. package/dist/esm/api/resources/listen/client/Client.d.mts +1 -2
  126. package/dist/esm/api/resources/listen/resources/v1/client/Client.d.mts +1 -2
  127. package/dist/esm/api/resources/listen/resources/v1/client/Client.mjs +29 -80
  128. package/dist/esm/api/resources/listen/resources/v1/client/Socket.d.mts +4 -4
  129. package/dist/esm/api/resources/listen/resources/v1/client/Socket.mjs +5 -5
  130. package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.d.mts +1 -2
  131. package/dist/esm/api/resources/listen/resources/v1/resources/media/client/Client.mjs +76 -298
  132. package/dist/esm/api/resources/listen/resources/v1/types/ListenV1Results.d.mts +3 -3
  133. package/dist/esm/api/resources/listen/resources/v2/client/Client.d.mts +1 -2
  134. package/dist/esm/api/resources/listen/resources/v2/client/Client.mjs +11 -26
  135. package/dist/esm/api/resources/listen/resources/v2/client/Socket.d.mts +2 -2
  136. package/dist/esm/api/resources/listen/resources/v2/client/Socket.mjs +3 -3
  137. package/dist/esm/api/resources/manage/client/Client.d.mts +1 -2
  138. package/dist/esm/api/resources/manage/resources/v1/client/Client.d.mts +1 -2
  139. package/dist/esm/api/resources/manage/resources/v1/resources/models/client/Client.d.mts +1 -2
  140. package/dist/esm/api/resources/manage/resources/v1/resources/models/client/Client.mjs +3 -4
  141. package/dist/esm/api/resources/manage/resources/v1/resources/projects/client/Client.d.mts +1 -2
  142. package/dist/esm/api/resources/manage/resources/v1/resources/projects/client/Client.mjs +4 -7
  143. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/client/Client.d.mts +1 -2
  144. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/balances/client/Client.d.mts +1 -2
  145. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.d.mts +1 -2
  146. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/breakdown/client/Client.mjs +9 -27
  147. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.d.mts +1 -2
  148. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/fields/client/Client.mjs +4 -7
  149. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.d.mts +1 -2
  150. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/billing/resources/purchases/client/Client.mjs +3 -4
  151. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.d.mts +1 -2
  152. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/keys/client/Client.mjs +3 -4
  153. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/client/Client.d.mts +1 -2
  154. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/resources/invites/client/Client.d.mts +1 -2
  155. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/members/resources/scopes/client/Client.d.mts +1 -2
  156. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.d.mts +1 -2
  157. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/models/client/Client.mjs +3 -4
  158. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.d.mts +1 -2
  159. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/requests/client/Client.mjs +12 -31
  160. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.d.mts +1 -2
  161. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/client/Client.mjs +46 -133
  162. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.d.mts +1 -2
  163. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/breakdown/client/Client.mjs +47 -136
  164. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.d.mts +1 -2
  165. package/dist/esm/api/resources/manage/resources/v1/resources/projects/resources/usage/resources/fields/client/Client.mjs +4 -7
  166. package/dist/esm/api/resources/read/client/Client.d.mts +1 -2
  167. package/dist/esm/api/resources/read/resources/v1/client/Client.d.mts +1 -2
  168. package/dist/esm/api/resources/read/resources/v1/resources/text/client/Client.d.mts +1 -2
  169. package/dist/esm/api/resources/read/resources/v1/resources/text/client/Client.mjs +14 -52
  170. package/dist/esm/api/resources/selfHosted/client/Client.d.mts +1 -2
  171. package/dist/esm/api/resources/selfHosted/resources/v1/client/Client.d.mts +1 -2
  172. package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.d.mts +1 -2
  173. package/dist/esm/api/resources/selfHosted/resources/v1/resources/distributionCredentials/client/Client.mjs +4 -12
  174. package/dist/esm/api/resources/speak/client/Client.d.mts +1 -2
  175. package/dist/esm/api/resources/speak/resources/v1/client/Client.d.mts +1 -2
  176. package/dist/esm/api/resources/speak/resources/v1/client/Client.mjs +6 -13
  177. package/dist/esm/api/resources/speak/resources/v1/client/Socket.d.mts +4 -4
  178. package/dist/esm/api/resources/speak/resources/v1/client/Socket.mjs +4 -4
  179. package/dist/esm/api/resources/speak/resources/v1/resources/audio/client/Client.d.mts +1 -2
  180. package/dist/esm/api/resources/speak/resources/v1/resources/audio/client/Client.mjs +11 -33
  181. package/dist/esm/api/types/SpeakV1SampleRate.d.mts +1 -1
  182. package/dist/esm/api/types/SpeakV1SampleRate.mjs +1 -1
  183. package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -8
  184. package/dist/esm/auth/HeaderAuthProvider.mjs +19 -9
  185. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  186. package/dist/esm/core/fetcher/Fetcher.d.mts +1 -2
  187. package/dist/esm/core/headers.d.mts +2 -2
  188. package/dist/esm/core/websocket/ws.d.mts +1 -1
  189. package/dist/esm/version.d.mts +1 -1
  190. package/dist/esm/version.mjs +1 -1
  191. package/package.json +11 -10
@@ -45,33 +45,15 @@ export class BreakdownClient {
45
45
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
46
46
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
47
47
  const { start, end, accessor, deployment, tag, line_item: lineItem, grouping } = request;
48
- const _queryParams = {};
49
- if (start != null) {
50
- _queryParams.start = start;
51
- }
52
- if (end != null) {
53
- _queryParams.end = end;
54
- }
55
- if (accessor != null) {
56
- _queryParams.accessor = accessor;
57
- }
58
- if (deployment != null) {
59
- _queryParams.deployment = deployment;
60
- }
61
- if (tag != null) {
62
- _queryParams.tag = tag;
63
- }
64
- if (lineItem != null) {
65
- _queryParams.line_item = lineItem;
66
- }
67
- if (grouping != null) {
68
- if (Array.isArray(grouping)) {
69
- _queryParams.grouping = grouping.map((item) => item);
70
- }
71
- else {
72
- _queryParams.grouping = grouping;
73
- }
74
- }
48
+ const _queryParams = {
49
+ start,
50
+ end,
51
+ accessor,
52
+ deployment: deployment != null ? deployment : undefined,
53
+ tag,
54
+ line_item: lineItem,
55
+ grouping: Array.isArray(grouping) ? grouping.map((item) => item) : grouping != null ? grouping : undefined,
56
+ };
75
57
  const _authRequest = yield this._options.authProvider.getAuthRequest();
76
58
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
77
59
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
3
3
  import * as core from "../../../../../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../../../../../index.mjs";
5
5
  export declare namespace FieldsClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -41,13 +41,10 @@ export class FieldsClient {
41
41
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
42
42
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
43
43
  const { start, end } = request;
44
- const _queryParams = {};
45
- if (start != null) {
46
- _queryParams.start = start;
47
- }
48
- if (end != null) {
49
- _queryParams.end = end;
50
- }
44
+ const _queryParams = {
45
+ start,
46
+ end,
47
+ };
51
48
  const _authRequest = yield this._options.authProvider.getAuthRequest();
52
49
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
53
50
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
3
3
  import * as core from "../../../../../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../../../../../index.mjs";
5
5
  export declare namespace PurchasesClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -40,10 +40,9 @@ export class PurchasesClient {
40
40
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
41
41
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
42
  const { limit } = request;
43
- const _queryParams = {};
44
- if (limit != null) {
45
- _queryParams.limit = limit.toString();
46
- }
43
+ const _queryParams = {
44
+ limit,
45
+ };
47
46
  const _authRequest = yield this._options.authProvider.getAuthRequest();
48
47
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
49
48
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
3
3
  import * as core from "../../../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../../../index.mjs";
5
5
  export declare namespace KeysClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -40,10 +40,9 @@ export class KeysClient {
40
40
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
41
41
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
42
  const { status } = request;
43
- const _queryParams = {};
44
- if (status != null) {
45
- _queryParams.status = status;
46
- }
43
+ const _queryParams = {
44
+ status: status != null ? status : undefined,
45
+ };
47
46
  const _authRequest = yield this._options.authProvider.getAuthRequest();
48
47
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
49
48
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,8 +5,7 @@ import * as Deepgram from "../../../../../../../../../index.mjs";
5
5
  import { InvitesClient } from "../resources/invites/client/Client.mjs";
6
6
  import { ScopesClient } from "../resources/scopes/client/Client.mjs";
7
7
  export declare namespace MembersClient {
8
- interface Options extends BaseClientOptions {
9
- }
8
+ type Options = BaseClientOptions;
10
9
  interface RequestOptions extends BaseRequestOptions {
11
10
  }
12
11
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
3
3
  import * as core from "../../../../../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../../../../../index.mjs";
5
5
  export declare namespace InvitesClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
3
3
  import * as core from "../../../../../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../../../../../index.mjs";
5
5
  export declare namespace ScopesClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
3
3
  import * as core from "../../../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../../../index.mjs";
5
5
  export declare namespace ModelsClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -40,10 +40,9 @@ export class ModelsClient {
40
40
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
41
41
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
42
  const { include_outdated: includeOutdated } = request;
43
- const _queryParams = {};
44
- if (includeOutdated != null) {
45
- _queryParams.include_outdated = includeOutdated.toString();
46
- }
43
+ const _queryParams = {
44
+ include_outdated: includeOutdated,
45
+ };
47
46
  const _authRequest = yield this._options.authProvider.getAuthRequest();
48
47
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
49
48
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
3
3
  import * as core from "../../../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../../../index.mjs";
5
5
  export declare namespace RequestsClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -49,37 +49,18 @@ export class RequestsClient {
49
49
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
50
50
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
51
51
  const { start, end, limit, page, accessor, request_id: requestId, deployment, endpoint, method, status, } = request;
52
- const _queryParams = {};
53
- if (start != null) {
54
- _queryParams.start = start;
55
- }
56
- if (end != null) {
57
- _queryParams.end = end;
58
- }
59
- if (limit != null) {
60
- _queryParams.limit = limit.toString();
61
- }
62
- if (page != null) {
63
- _queryParams.page = page.toString();
64
- }
65
- if (accessor != null) {
66
- _queryParams.accessor = accessor;
67
- }
68
- if (requestId != null) {
69
- _queryParams.request_id = requestId;
70
- }
71
- if (deployment != null) {
72
- _queryParams.deployment = deployment;
73
- }
74
- if (endpoint != null) {
75
- _queryParams.endpoint = endpoint;
76
- }
77
- if (method != null) {
78
- _queryParams.method = method;
79
- }
80
- if (status != null) {
81
- _queryParams.status = status;
82
- }
52
+ const _queryParams = {
53
+ start,
54
+ end,
55
+ limit,
56
+ page,
57
+ accessor,
58
+ request_id: requestId,
59
+ deployment: deployment != null ? deployment : undefined,
60
+ endpoint: endpoint != null ? endpoint : undefined,
61
+ method: method != null ? method : undefined,
62
+ status: status != null ? status : undefined,
63
+ };
83
64
  const _authRequest = yield this._options.authProvider.getAuthRequest();
84
65
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
85
66
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -5,8 +5,7 @@ import * as Deepgram from "../../../../../../../../../index.mjs";
5
5
  import { BreakdownClient } from "../resources/breakdown/client/Client.mjs";
6
6
  import { FieldsClient } from "../resources/fields/client/Client.mjs";
7
7
  export declare namespace UsageClient {
8
- interface Options extends BaseClientOptions {
9
- }
8
+ type Options = BaseClientOptions;
10
9
  interface RequestOptions extends BaseRequestOptions {
11
10
  }
12
11
  }
@@ -93,139 +93,52 @@ export class UsageClient {
93
93
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
94
94
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
95
95
  const { start, end, accessor, alternatives, callback_method: callbackMethod, callback, channels, custom_intent_mode: customIntentMode, custom_intent: customIntent, custom_topic_mode: customTopicMode, custom_topic: customTopic, deployment, detect_entities: detectEntities, detect_language: detectLanguage, diarize, dictation, encoding, endpoint, extra, filler_words: fillerWords, intents, keyterm, keywords, language, measurements, method, model, multichannel, numerals, paragraphs, profanity_filter: profanityFilter, punctuate, redact, replace, sample_rate: sampleRate, search, sentiment, smart_format: smartFormat, summarize, tag, topics, utt_split: uttSplit, utterances, version, } = request;
96
- const _queryParams = {};
97
- if (start != null) {
98
- _queryParams.start = start;
99
- }
100
- if (end != null) {
101
- _queryParams.end = end;
102
- }
103
- if (accessor != null) {
104
- _queryParams.accessor = accessor;
105
- }
106
- if (alternatives != null) {
107
- _queryParams.alternatives = alternatives.toString();
108
- }
109
- if (callbackMethod != null) {
110
- _queryParams.callback_method = callbackMethod.toString();
111
- }
112
- if (callback != null) {
113
- _queryParams.callback = callback.toString();
114
- }
115
- if (channels != null) {
116
- _queryParams.channels = channels.toString();
117
- }
118
- if (customIntentMode != null) {
119
- _queryParams.custom_intent_mode = customIntentMode.toString();
120
- }
121
- if (customIntent != null) {
122
- _queryParams.custom_intent = customIntent.toString();
123
- }
124
- if (customTopicMode != null) {
125
- _queryParams.custom_topic_mode = customTopicMode.toString();
126
- }
127
- if (customTopic != null) {
128
- _queryParams.custom_topic = customTopic.toString();
129
- }
130
- if (deployment != null) {
131
- _queryParams.deployment = deployment;
132
- }
133
- if (detectEntities != null) {
134
- _queryParams.detect_entities = detectEntities.toString();
135
- }
136
- if (detectLanguage != null) {
137
- _queryParams.detect_language = detectLanguage.toString();
138
- }
139
- if (diarize != null) {
140
- _queryParams.diarize = diarize.toString();
141
- }
142
- if (dictation != null) {
143
- _queryParams.dictation = dictation.toString();
144
- }
145
- if (encoding != null) {
146
- _queryParams.encoding = encoding.toString();
147
- }
148
- if (endpoint != null) {
149
- _queryParams.endpoint = endpoint;
150
- }
151
- if (extra != null) {
152
- _queryParams.extra = extra.toString();
153
- }
154
- if (fillerWords != null) {
155
- _queryParams.filler_words = fillerWords.toString();
156
- }
157
- if (intents != null) {
158
- _queryParams.intents = intents.toString();
159
- }
160
- if (keyterm != null) {
161
- _queryParams.keyterm = keyterm.toString();
162
- }
163
- if (keywords != null) {
164
- _queryParams.keywords = keywords.toString();
165
- }
166
- if (language != null) {
167
- _queryParams.language = language.toString();
168
- }
169
- if (measurements != null) {
170
- _queryParams.measurements = measurements.toString();
171
- }
172
- if (method != null) {
173
- _queryParams.method = method;
174
- }
175
- if (model != null) {
176
- _queryParams.model = model;
177
- }
178
- if (multichannel != null) {
179
- _queryParams.multichannel = multichannel.toString();
180
- }
181
- if (numerals != null) {
182
- _queryParams.numerals = numerals.toString();
183
- }
184
- if (paragraphs != null) {
185
- _queryParams.paragraphs = paragraphs.toString();
186
- }
187
- if (profanityFilter != null) {
188
- _queryParams.profanity_filter = profanityFilter.toString();
189
- }
190
- if (punctuate != null) {
191
- _queryParams.punctuate = punctuate.toString();
192
- }
193
- if (redact != null) {
194
- _queryParams.redact = redact.toString();
195
- }
196
- if (replace != null) {
197
- _queryParams.replace = replace.toString();
198
- }
199
- if (sampleRate != null) {
200
- _queryParams.sample_rate = sampleRate.toString();
201
- }
202
- if (search != null) {
203
- _queryParams.search = search.toString();
204
- }
205
- if (sentiment != null) {
206
- _queryParams.sentiment = sentiment.toString();
207
- }
208
- if (smartFormat != null) {
209
- _queryParams.smart_format = smartFormat.toString();
210
- }
211
- if (summarize != null) {
212
- _queryParams.summarize = summarize.toString();
213
- }
214
- if (tag != null) {
215
- _queryParams.tag = tag;
216
- }
217
- if (topics != null) {
218
- _queryParams.topics = topics.toString();
219
- }
220
- if (uttSplit != null) {
221
- _queryParams.utt_split = uttSplit.toString();
222
- }
223
- if (utterances != null) {
224
- _queryParams.utterances = utterances.toString();
225
- }
226
- if (version != null) {
227
- _queryParams.version = version.toString();
228
- }
96
+ const _queryParams = {
97
+ start,
98
+ end,
99
+ accessor,
100
+ alternatives,
101
+ callback_method: callbackMethod,
102
+ callback,
103
+ channels,
104
+ custom_intent_mode: customIntentMode,
105
+ custom_intent: customIntent,
106
+ custom_topic_mode: customTopicMode,
107
+ custom_topic: customTopic,
108
+ deployment: deployment != null ? deployment : undefined,
109
+ detect_entities: detectEntities,
110
+ detect_language: detectLanguage,
111
+ diarize,
112
+ dictation,
113
+ encoding,
114
+ endpoint: endpoint != null ? endpoint : undefined,
115
+ extra,
116
+ filler_words: fillerWords,
117
+ intents,
118
+ keyterm,
119
+ keywords,
120
+ language,
121
+ measurements,
122
+ method: method != null ? method : undefined,
123
+ model,
124
+ multichannel,
125
+ numerals,
126
+ paragraphs,
127
+ profanity_filter: profanityFilter,
128
+ punctuate,
129
+ redact,
130
+ replace,
131
+ sample_rate: sampleRate,
132
+ search,
133
+ sentiment,
134
+ smart_format: smartFormat,
135
+ summarize,
136
+ tag,
137
+ topics,
138
+ utt_split: uttSplit,
139
+ utterances,
140
+ version,
141
+ };
229
142
  const _authRequest = yield this._options.authProvider.getAuthRequest();
230
143
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
231
144
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../..
3
3
  import * as core from "../../../../../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../../../../../index.mjs";
5
5
  export declare namespace BreakdownClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }