@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
@@ -84,142 +84,53 @@ export class BreakdownClient {
84
84
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
85
85
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
86
86
  const { start, end, grouping, 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;
87
- const _queryParams = {};
88
- if (start != null) {
89
- _queryParams.start = start;
90
- }
91
- if (end != null) {
92
- _queryParams.end = end;
93
- }
94
- if (grouping != null) {
95
- _queryParams.grouping = grouping;
96
- }
97
- if (accessor != null) {
98
- _queryParams.accessor = accessor;
99
- }
100
- if (alternatives != null) {
101
- _queryParams.alternatives = alternatives.toString();
102
- }
103
- if (callbackMethod != null) {
104
- _queryParams.callback_method = callbackMethod.toString();
105
- }
106
- if (callback != null) {
107
- _queryParams.callback = callback.toString();
108
- }
109
- if (channels != null) {
110
- _queryParams.channels = channels.toString();
111
- }
112
- if (customIntentMode != null) {
113
- _queryParams.custom_intent_mode = customIntentMode.toString();
114
- }
115
- if (customIntent != null) {
116
- _queryParams.custom_intent = customIntent.toString();
117
- }
118
- if (customTopicMode != null) {
119
- _queryParams.custom_topic_mode = customTopicMode.toString();
120
- }
121
- if (customTopic != null) {
122
- _queryParams.custom_topic = customTopic.toString();
123
- }
124
- if (deployment != null) {
125
- _queryParams.deployment = deployment;
126
- }
127
- if (detectEntities != null) {
128
- _queryParams.detect_entities = detectEntities.toString();
129
- }
130
- if (detectLanguage != null) {
131
- _queryParams.detect_language = detectLanguage.toString();
132
- }
133
- if (diarize != null) {
134
- _queryParams.diarize = diarize.toString();
135
- }
136
- if (dictation != null) {
137
- _queryParams.dictation = dictation.toString();
138
- }
139
- if (encoding != null) {
140
- _queryParams.encoding = encoding.toString();
141
- }
142
- if (endpoint != null) {
143
- _queryParams.endpoint = endpoint;
144
- }
145
- if (extra != null) {
146
- _queryParams.extra = extra.toString();
147
- }
148
- if (fillerWords != null) {
149
- _queryParams.filler_words = fillerWords.toString();
150
- }
151
- if (intents != null) {
152
- _queryParams.intents = intents.toString();
153
- }
154
- if (keyterm != null) {
155
- _queryParams.keyterm = keyterm.toString();
156
- }
157
- if (keywords != null) {
158
- _queryParams.keywords = keywords.toString();
159
- }
160
- if (language != null) {
161
- _queryParams.language = language.toString();
162
- }
163
- if (measurements != null) {
164
- _queryParams.measurements = measurements.toString();
165
- }
166
- if (method != null) {
167
- _queryParams.method = method;
168
- }
169
- if (model != null) {
170
- _queryParams.model = model;
171
- }
172
- if (multichannel != null) {
173
- _queryParams.multichannel = multichannel.toString();
174
- }
175
- if (numerals != null) {
176
- _queryParams.numerals = numerals.toString();
177
- }
178
- if (paragraphs != null) {
179
- _queryParams.paragraphs = paragraphs.toString();
180
- }
181
- if (profanityFilter != null) {
182
- _queryParams.profanity_filter = profanityFilter.toString();
183
- }
184
- if (punctuate != null) {
185
- _queryParams.punctuate = punctuate.toString();
186
- }
187
- if (redact != null) {
188
- _queryParams.redact = redact.toString();
189
- }
190
- if (replace != null) {
191
- _queryParams.replace = replace.toString();
192
- }
193
- if (sampleRate != null) {
194
- _queryParams.sample_rate = sampleRate.toString();
195
- }
196
- if (search != null) {
197
- _queryParams.search = search.toString();
198
- }
199
- if (sentiment != null) {
200
- _queryParams.sentiment = sentiment.toString();
201
- }
202
- if (smartFormat != null) {
203
- _queryParams.smart_format = smartFormat.toString();
204
- }
205
- if (summarize != null) {
206
- _queryParams.summarize = summarize.toString();
207
- }
208
- if (tag != null) {
209
- _queryParams.tag = tag;
210
- }
211
- if (topics != null) {
212
- _queryParams.topics = topics.toString();
213
- }
214
- if (uttSplit != null) {
215
- _queryParams.utt_split = uttSplit.toString();
216
- }
217
- if (utterances != null) {
218
- _queryParams.utterances = utterances.toString();
219
- }
220
- if (version != null) {
221
- _queryParams.version = version.toString();
222
- }
87
+ const _queryParams = {
88
+ start,
89
+ end,
90
+ grouping: grouping != null ? grouping : undefined,
91
+ accessor,
92
+ alternatives,
93
+ callback_method: callbackMethod,
94
+ callback,
95
+ channels,
96
+ custom_intent_mode: customIntentMode,
97
+ custom_intent: customIntent,
98
+ custom_topic_mode: customTopicMode,
99
+ custom_topic: customTopic,
100
+ deployment: deployment != null ? deployment : undefined,
101
+ detect_entities: detectEntities,
102
+ detect_language: detectLanguage,
103
+ diarize,
104
+ dictation,
105
+ encoding,
106
+ endpoint: endpoint != null ? endpoint : undefined,
107
+ extra,
108
+ filler_words: fillerWords,
109
+ intents,
110
+ keyterm,
111
+ keywords,
112
+ language,
113
+ measurements,
114
+ method: method != null ? method : undefined,
115
+ model,
116
+ multichannel,
117
+ numerals,
118
+ paragraphs,
119
+ profanity_filter: profanityFilter,
120
+ punctuate,
121
+ redact,
122
+ replace,
123
+ sample_rate: sampleRate,
124
+ search,
125
+ sentiment,
126
+ smart_format: smartFormat,
127
+ summarize,
128
+ tag,
129
+ topics,
130
+ utt_split: uttSplit,
131
+ utterances,
132
+ version,
133
+ };
223
134
  const _authRequest = yield this._options.authProvider.getAuthRequest();
224
135
  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);
225
136
  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)({
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
3
  import { V1Client } from "../resources/v1/client/Client.mjs";
4
4
  export declare namespace ReadClient {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ type Options = BaseClientOptions;
7
6
  }
8
7
  export declare class ReadClient {
9
8
  protected readonly _options: NormalizedClientOptionsWithAuth<ReadClient.Options>;
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
3
  import { TextClient } from "../resources/text/client/Client.mjs";
4
4
  export declare namespace V1Client {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ type Options = BaseClientOptions;
7
6
  }
8
7
  export declare class V1Client {
9
8
  protected readonly _options: NormalizedClientOptionsWithAuth<V1Client.Options>;
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../Ba
3
3
  import * as core from "../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../index.mjs";
5
5
  export declare namespace TextClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -53,58 +53,20 @@ export class TextClient {
53
53
  return __awaiter(this, void 0, void 0, function* () {
54
54
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
55
55
  const { callback, callback_method: callbackMethod, sentiment, summarize, tag, topics, custom_topic: customTopic, custom_topic_mode: customTopicMode, intents, custom_intent: customIntent, custom_intent_mode: customIntentMode, language, body: _body, } = request;
56
- const _queryParams = {};
57
- if (callback != null) {
58
- _queryParams.callback = callback;
59
- }
60
- if (callbackMethod != null) {
61
- _queryParams.callback_method = callbackMethod;
62
- }
63
- if (sentiment != null) {
64
- _queryParams.sentiment = sentiment.toString();
65
- }
66
- if (summarize != null) {
67
- _queryParams.summarize = summarize;
68
- }
69
- if (tag != null) {
70
- if (Array.isArray(tag)) {
71
- _queryParams.tag = tag.map((item) => item);
72
- }
73
- else {
74
- _queryParams.tag = tag;
75
- }
76
- }
77
- if (topics != null) {
78
- _queryParams.topics = topics.toString();
79
- }
80
- if (customTopic != null) {
81
- if (Array.isArray(customTopic)) {
82
- _queryParams.custom_topic = customTopic.map((item) => item);
83
- }
84
- else {
85
- _queryParams.custom_topic = customTopic;
86
- }
87
- }
88
- if (customTopicMode != null) {
89
- _queryParams.custom_topic_mode = customTopicMode;
90
- }
91
- if (intents != null) {
92
- _queryParams.intents = intents.toString();
93
- }
94
- if (customIntent != null) {
95
- if (Array.isArray(customIntent)) {
96
- _queryParams.custom_intent = customIntent.map((item) => item);
97
- }
98
- else {
99
- _queryParams.custom_intent = customIntent;
100
- }
101
- }
102
- if (customIntentMode != null) {
103
- _queryParams.custom_intent_mode = customIntentMode;
104
- }
105
- if (language != null) {
106
- _queryParams.language = language;
107
- }
56
+ const _queryParams = {
57
+ callback,
58
+ callback_method: callbackMethod != null ? callbackMethod : undefined,
59
+ sentiment,
60
+ summarize: summarize != null ? summarize : undefined,
61
+ tag,
62
+ topics,
63
+ custom_topic: customTopic,
64
+ custom_topic_mode: customTopicMode != null ? customTopicMode : undefined,
65
+ intents,
66
+ custom_intent: customIntent,
67
+ custom_intent_mode: customIntentMode != null ? customIntentMode : undefined,
68
+ language,
69
+ };
108
70
  const _authRequest = yield this._options.authProvider.getAuthRequest();
109
71
  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);
110
72
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
3
  import { V1Client } from "../resources/v1/client/Client.mjs";
4
4
  export declare namespace SelfHostedClient {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ type Options = BaseClientOptions;
7
6
  }
8
7
  export declare class SelfHostedClient {
9
8
  protected readonly _options: NormalizedClientOptionsWithAuth<SelfHostedClient.Options>;
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
3
3
  import { DistributionCredentialsClient } from "../resources/distributionCredentials/client/Client.mjs";
4
4
  export declare namespace V1Client {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ type Options = BaseClientOptions;
7
6
  }
8
7
  export declare class V1Client {
9
8
  protected readonly _options: NormalizedClientOptionsWithAuth<V1Client.Options>;
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../Ba
3
3
  import * as core from "../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../index.mjs";
5
5
  export declare namespace DistributionCredentialsClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -102,18 +102,10 @@ export class DistributionCredentialsClient {
102
102
  return __awaiter(this, arguments, void 0, function* (project_id, request = {}, requestOptions) {
103
103
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
104
104
  const { scopes, provider } = request, _body = __rest(request, ["scopes", "provider"]);
105
- const _queryParams = {};
106
- if (scopes != null) {
107
- if (Array.isArray(scopes)) {
108
- _queryParams.scopes = scopes.map((item) => item);
109
- }
110
- else {
111
- _queryParams.scopes = scopes;
112
- }
113
- }
114
- if (provider != null) {
115
- _queryParams.provider = provider;
116
- }
105
+ const _queryParams = {
106
+ scopes: Array.isArray(scopes) ? scopes.map((item) => item) : scopes != null ? scopes : undefined,
107
+ provider: provider != null ? provider : undefined,
108
+ };
117
109
  const _authRequest = yield this._options.authProvider.getAuthRequest();
118
110
  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);
119
111
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -2,8 +2,7 @@ import type { BaseClientOptions } from "../../../../BaseClient.mjs";
2
2
  import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
3
  import { V1Client } from "../resources/v1/client/Client.mjs";
4
4
  export declare namespace SpeakClient {
5
- interface Options extends BaseClientOptions {
6
- }
5
+ type Options = BaseClientOptions;
7
6
  }
8
7
  export declare class SpeakClient {
9
8
  protected readonly _options: NormalizedClientOptionsWithAuth<SpeakClient.Options>;
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClie
3
3
  import { AudioClient } from "../resources/audio/client/Client.mjs";
4
4
  import { V1Socket } from "./Socket.mjs";
5
5
  export declare namespace V1Client {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface ConnectArgs {
9
8
  encoding?: string;
10
9
  mip_opt_out?: string;
@@ -26,19 +26,12 @@ export class V1Client {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
27
  var _a, _b;
28
28
  const { encoding, mip_opt_out: mipOptOut, model, sample_rate: sampleRate, headers, debug, reconnectAttempts, } = args;
29
- const _queryParams = {};
30
- if (encoding != null) {
31
- _queryParams.encoding = encoding;
32
- }
33
- if (mipOptOut != null) {
34
- _queryParams.mip_opt_out = mipOptOut;
35
- }
36
- if (model != null) {
37
- _queryParams.model = model;
38
- }
39
- if (sampleRate != null) {
40
- _queryParams.sample_rate = sampleRate;
41
- }
29
+ const _queryParams = {
30
+ encoding,
31
+ mip_opt_out: mipOptOut,
32
+ model,
33
+ sample_rate: sampleRate,
34
+ };
42
35
  const _headers = mergeHeaders(mergeOnlyDefinedHeaders({ Authorization: args.Authorization }), headers);
43
36
  const socket = new core.ReconnectingWebSocket({
44
37
  url: core.url.join((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.DeepgramEnvironment.Production).production, "/v1/speak"),
@@ -33,10 +33,10 @@ export declare class V1Socket {
33
33
  * ```
34
34
  */
35
35
  on<T extends keyof V1Socket.EventHandlers>(event: T, callback: V1Socket.EventHandlers[T]): void;
36
- sendSpeakV1Text(message: Deepgram.speak.SpeakV1Text): void;
37
- sendSpeakV1Flush(message: Deepgram.speak.SpeakV1Flush): void;
38
- sendSpeakV1Clear(message: Deepgram.speak.SpeakV1Clear): void;
39
- sendSpeakV1Close(message: Deepgram.speak.SpeakV1Close): void;
36
+ sendText(message: Deepgram.speak.SpeakV1Text): void;
37
+ sendFlush(message: Deepgram.speak.SpeakV1Flush): void;
38
+ sendClear(message: Deepgram.speak.SpeakV1Clear): void;
39
+ sendClose(message: Deepgram.speak.SpeakV1Close): void;
40
40
  /** Connect to the websocket and register event handlers. */
41
41
  connect(): V1Socket;
42
42
  /** Close the websocket and unregister event handlers. */
@@ -54,19 +54,19 @@ export class V1Socket {
54
54
  on(event, callback) {
55
55
  this.eventHandlers[event] = callback;
56
56
  }
57
- sendSpeakV1Text(message) {
57
+ sendText(message) {
58
58
  this.assertSocketIsOpen();
59
59
  this.sendJson(message);
60
60
  }
61
- sendSpeakV1Flush(message) {
61
+ sendFlush(message) {
62
62
  this.assertSocketIsOpen();
63
63
  this.sendJson(message);
64
64
  }
65
- sendSpeakV1Clear(message) {
65
+ sendClear(message) {
66
66
  this.assertSocketIsOpen();
67
67
  this.sendJson(message);
68
68
  }
69
- sendSpeakV1Close(message) {
69
+ sendClose(message) {
70
70
  this.assertSocketIsOpen();
71
71
  this.sendJson(message);
72
72
  }
@@ -3,8 +3,7 @@ import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../Ba
3
3
  import * as core from "../../../../../../../../core/index.mjs";
4
4
  import * as Deepgram from "../../../../../../../index.mjs";
5
5
  export declare namespace AudioClient {
6
- interface Options extends BaseClientOptions {
7
- }
6
+ type Options = BaseClientOptions;
8
7
  interface RequestOptions extends BaseRequestOptions {
9
8
  }
10
9
  }
@@ -41,39 +41,17 @@ export class AudioClient {
41
41
  return __awaiter(this, void 0, void 0, function* () {
42
42
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
43
43
  const { callback, callback_method: callbackMethod, mip_opt_out: mipOptOut, tag, bit_rate: bitRate, container, encoding, model, sample_rate: sampleRate } = request, _body = __rest(request, ["callback", "callback_method", "mip_opt_out", "tag", "bit_rate", "container", "encoding", "model", "sample_rate"]);
44
- const _queryParams = {};
45
- if (callback != null) {
46
- _queryParams.callback = callback;
47
- }
48
- if (callbackMethod != null) {
49
- _queryParams.callback_method = callbackMethod;
50
- }
51
- if (mipOptOut != null) {
52
- _queryParams.mip_opt_out = mipOptOut.toString();
53
- }
54
- if (tag != null) {
55
- if (Array.isArray(tag)) {
56
- _queryParams.tag = tag.map((item) => item);
57
- }
58
- else {
59
- _queryParams.tag = tag;
60
- }
61
- }
62
- if (bitRate != null) {
63
- _queryParams.bit_rate = bitRate.toString();
64
- }
65
- if (container != null) {
66
- _queryParams.container = container;
67
- }
68
- if (encoding != null) {
69
- _queryParams.encoding = encoding;
70
- }
71
- if (model != null) {
72
- _queryParams.model = model;
73
- }
74
- if (sampleRate != null) {
75
- _queryParams.sample_rate = sampleRate.toString();
76
- }
44
+ const _queryParams = {
45
+ callback,
46
+ callback_method: callbackMethod != null ? callbackMethod : undefined,
47
+ mip_opt_out: mipOptOut,
48
+ tag,
49
+ bit_rate: bitRate,
50
+ container: container != null ? container : undefined,
51
+ encoding: encoding != null ? encoding : undefined,
52
+ model: model != null ? model : undefined,
53
+ sample_rate: sampleRate,
54
+ };
77
55
  const _authRequest = yield this._options.authProvider.getAuthRequest();
78
56
  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);
79
57
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -3,7 +3,7 @@ export declare const SpeakV1SampleRate: {
3
3
  readonly EightThousand: "8000";
4
4
  readonly SixteenThousand: "16000";
5
5
  readonly TwentyFourThousand: "24000";
6
- readonly FortyFourThousandOneHundred: "44100";
6
+ readonly ThirtyTwoThousand: "32000";
7
7
  readonly FortyEightThousand: "48000";
8
8
  };
9
9
  export type SpeakV1SampleRate = (typeof SpeakV1SampleRate)[keyof typeof SpeakV1SampleRate];
@@ -4,6 +4,6 @@ export const SpeakV1SampleRate = {
4
4
  EightThousand: "8000",
5
5
  SixteenThousand: "16000",
6
6
  TwentyFourThousand: "24000",
7
- FortyFourThousandOneHundred: "44100",
7
+ ThirtyTwoThousand: "32000",
8
8
  FortyEightThousand: "48000",
9
9
  };
@@ -1,14 +1,20 @@
1
1
  import * as core from "../core/index.mjs";
2
- export declare namespace HeaderAuthProvider {
3
- interface Options {
4
- apiKey?: core.Supplier<string | undefined>;
5
- }
6
- }
2
+ declare const PARAM_KEY: "apiKey";
7
3
  export declare class HeaderAuthProvider implements core.AuthProvider {
8
- private readonly headerValue;
4
+ private readonly options;
9
5
  constructor(options: HeaderAuthProvider.Options);
10
- static canCreate(options: HeaderAuthProvider.Options): boolean;
11
- getAuthRequest(_arg?: {
6
+ static canCreate(options: Partial<HeaderAuthProvider.Options>): boolean;
7
+ getAuthRequest({ endpointMetadata, }?: {
12
8
  endpointMetadata?: core.EndpointMetadata;
13
9
  }): Promise<core.AuthRequest>;
14
10
  }
11
+ export declare namespace HeaderAuthProvider {
12
+ const AUTH_SCHEME: "ApiKeyAuth";
13
+ const AUTH_CONFIG_ERROR_MESSAGE: string;
14
+ type Options = AuthOptions;
15
+ type AuthOptions = {
16
+ [PARAM_KEY]?: core.Supplier<string> | undefined;
17
+ };
18
+ function createInstance(options: Options): core.AuthProvider;
19
+ }
20
+ export {};
@@ -10,27 +10,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  import * as core from "../core/index.mjs";
12
12
  import * as errors from "../errors/index.mjs";
13
+ const PARAM_KEY = "apiKey";
14
+ const ENV_HEADER_KEY = "DEEPGRAM_API_KEY";
15
+ const HEADER_NAME = "Authorization";
13
16
  export class HeaderAuthProvider {
14
17
  constructor(options) {
15
- this.headerValue = options.apiKey;
18
+ this.options = options;
16
19
  }
17
20
  static canCreate(options) {
18
21
  var _a;
19
- return options.apiKey != null || ((_a = process.env) === null || _a === void 0 ? void 0 : _a.DEEPGRAM_API_KEY) != null;
22
+ return (options === null || options === void 0 ? void 0 : options[PARAM_KEY]) != null || ((_a = process.env) === null || _a === void 0 ? void 0 : _a[ENV_HEADER_KEY]) != null;
20
23
  }
21
- getAuthRequest(_arg) {
22
- return __awaiter(this, void 0, void 0, function* () {
24
+ getAuthRequest() {
25
+ return __awaiter(this, arguments, void 0, function* ({ endpointMetadata, } = {}) {
23
26
  var _a, _b;
24
- const apiKey = (_a = (yield core.Supplier.get(this.headerValue))) !== null && _a !== void 0 ? _a : (_b = process.env) === null || _b === void 0 ? void 0 : _b.DEEPGRAM_API_KEY;
25
- if (apiKey == null) {
27
+ const headerValue = (_a = (yield core.Supplier.get(this.options[PARAM_KEY]))) !== null && _a !== void 0 ? _a : (_b = process.env) === null || _b === void 0 ? void 0 : _b[ENV_HEADER_KEY];
28
+ if (headerValue == null) {
26
29
  throw new errors.DeepgramError({
27
- message: "Please specify a apiKey by either passing it in to the constructor or initializing a DEEPGRAM_API_KEY environment variable",
30
+ message: HeaderAuthProvider.AUTH_CONFIG_ERROR_MESSAGE,
28
31
  });
29
32
  }
30
- const headerValue = `Token ${apiKey}`;
31
33
  return {
32
- headers: { Authorization: headerValue },
34
+ headers: { [HEADER_NAME]: headerValue },
33
35
  };
34
36
  });
35
37
  }
36
38
  }
39
+ (function (HeaderAuthProvider) {
40
+ HeaderAuthProvider.AUTH_SCHEME = "ApiKeyAuth";
41
+ HeaderAuthProvider.AUTH_CONFIG_ERROR_MESSAGE = `Please provide '${PARAM_KEY}' when initializing the client, or set the '${ENV_HEADER_KEY}' environment variable`;
42
+ function createInstance(options) {
43
+ return new HeaderAuthProvider(options);
44
+ }
45
+ HeaderAuthProvider.createInstance = createInstance;
46
+ })(HeaderAuthProvider || (HeaderAuthProvider = {}));