voice-mode 3.34.3__py3-none-any.whl → 4.0.1__py3-none-any.whl

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 (154) hide show
  1. voice_mode/__version__.py +1 -1
  2. voice_mode/cli.py +5 -0
  3. voice_mode/cli_commands/transcribe.py +141 -0
  4. voice_mode/config.py +139 -37
  5. voice_mode/frontend/.next/BUILD_ID +1 -0
  6. voice_mode/frontend/.next/app-build-manifest.json +28 -0
  7. voice_mode/frontend/.next/app-path-routes-manifest.json +1 -0
  8. voice_mode/frontend/.next/build-manifest.json +32 -0
  9. voice_mode/frontend/.next/export-marker.json +1 -0
  10. voice_mode/frontend/.next/images-manifest.json +1 -0
  11. voice_mode/frontend/.next/next-minimal-server.js.nft.json +1 -0
  12. voice_mode/frontend/.next/next-server.js.nft.json +1 -0
  13. voice_mode/frontend/.next/package.json +1 -0
  14. voice_mode/frontend/.next/prerender-manifest.json +1 -0
  15. voice_mode/frontend/.next/react-loadable-manifest.json +1 -0
  16. voice_mode/frontend/.next/required-server-files.json +1 -0
  17. voice_mode/frontend/.next/routes-manifest.json +1 -0
  18. voice_mode/frontend/.next/server/app/_not-found/page.js +1 -0
  19. voice_mode/frontend/.next/server/app/_not-found/page.js.nft.json +1 -0
  20. voice_mode/frontend/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  21. voice_mode/frontend/.next/server/app/_not-found.html +1 -0
  22. voice_mode/frontend/.next/server/app/_not-found.meta +6 -0
  23. voice_mode/frontend/.next/server/app/_not-found.rsc +9 -0
  24. voice_mode/frontend/.next/server/app/api/connection-details/route.js +12 -0
  25. voice_mode/frontend/.next/server/app/api/connection-details/route.js.nft.json +1 -0
  26. voice_mode/frontend/.next/server/app/favicon.ico/route.js +12 -0
  27. voice_mode/frontend/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  28. voice_mode/frontend/.next/server/app/favicon.ico.body +0 -0
  29. voice_mode/frontend/.next/server/app/favicon.ico.meta +1 -0
  30. voice_mode/frontend/.next/server/app/index.html +1 -0
  31. voice_mode/frontend/.next/server/app/index.meta +5 -0
  32. voice_mode/frontend/.next/server/app/index.rsc +7 -0
  33. voice_mode/frontend/.next/server/app/page.js +11 -0
  34. voice_mode/frontend/.next/server/app/page.js.nft.json +1 -0
  35. voice_mode/frontend/.next/server/app/page_client-reference-manifest.js +1 -0
  36. voice_mode/frontend/.next/server/app-paths-manifest.json +6 -0
  37. voice_mode/frontend/.next/server/chunks/463.js +1 -0
  38. voice_mode/frontend/.next/server/chunks/682.js +6 -0
  39. voice_mode/frontend/.next/server/chunks/948.js +2 -0
  40. voice_mode/frontend/.next/server/chunks/994.js +2 -0
  41. voice_mode/frontend/.next/server/chunks/font-manifest.json +1 -0
  42. voice_mode/frontend/.next/server/font-manifest.json +1 -0
  43. voice_mode/frontend/.next/server/functions-config-manifest.json +1 -0
  44. voice_mode/frontend/.next/server/interception-route-rewrite-manifest.js +1 -0
  45. voice_mode/frontend/.next/server/middleware-build-manifest.js +1 -0
  46. voice_mode/frontend/.next/server/middleware-manifest.json +6 -0
  47. voice_mode/frontend/.next/server/middleware-react-loadable-manifest.js +1 -0
  48. voice_mode/frontend/.next/server/next-font-manifest.js +1 -0
  49. voice_mode/frontend/.next/server/next-font-manifest.json +1 -0
  50. voice_mode/frontend/.next/server/pages/404.html +1 -0
  51. voice_mode/frontend/.next/server/pages/500.html +1 -0
  52. voice_mode/frontend/.next/server/pages/_app.js +1 -0
  53. voice_mode/frontend/.next/server/pages/_app.js.nft.json +1 -0
  54. voice_mode/frontend/.next/server/pages/_document.js +1 -0
  55. voice_mode/frontend/.next/server/pages/_document.js.nft.json +1 -0
  56. voice_mode/frontend/.next/server/pages/_error.js +1 -0
  57. voice_mode/frontend/.next/server/pages/_error.js.nft.json +1 -0
  58. voice_mode/frontend/.next/server/pages-manifest.json +1 -0
  59. voice_mode/frontend/.next/server/server-reference-manifest.js +1 -0
  60. voice_mode/frontend/.next/server/server-reference-manifest.json +1 -0
  61. voice_mode/frontend/.next/server/webpack-runtime.js +1 -0
  62. voice_mode/frontend/.next/standalone/.next/BUILD_ID +1 -0
  63. voice_mode/frontend/.next/standalone/.next/app-build-manifest.json +28 -0
  64. voice_mode/frontend/.next/standalone/.next/app-path-routes-manifest.json +1 -0
  65. voice_mode/frontend/.next/standalone/.next/build-manifest.json +32 -0
  66. voice_mode/frontend/.next/standalone/.next/package.json +1 -0
  67. voice_mode/frontend/.next/standalone/.next/prerender-manifest.json +1 -0
  68. voice_mode/frontend/.next/standalone/.next/react-loadable-manifest.json +1 -0
  69. voice_mode/frontend/.next/standalone/.next/required-server-files.json +1 -0
  70. voice_mode/frontend/.next/standalone/.next/routes-manifest.json +1 -0
  71. voice_mode/frontend/.next/standalone/.next/server/app/_not-found/page.js +1 -0
  72. voice_mode/frontend/.next/standalone/.next/server/app/_not-found/page.js.nft.json +1 -0
  73. voice_mode/frontend/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -0
  74. voice_mode/frontend/.next/standalone/.next/server/app/_not-found.html +1 -0
  75. voice_mode/frontend/.next/standalone/.next/server/app/_not-found.meta +6 -0
  76. voice_mode/frontend/.next/standalone/.next/server/app/_not-found.rsc +9 -0
  77. voice_mode/frontend/.next/standalone/.next/server/app/api/connection-details/route.js +12 -0
  78. voice_mode/frontend/.next/standalone/.next/server/app/api/connection-details/route.js.nft.json +1 -0
  79. voice_mode/frontend/.next/standalone/.next/server/app/favicon.ico/route.js +12 -0
  80. voice_mode/frontend/.next/standalone/.next/server/app/favicon.ico/route.js.nft.json +1 -0
  81. voice_mode/frontend/.next/standalone/.next/server/app/favicon.ico.body +0 -0
  82. voice_mode/frontend/.next/standalone/.next/server/app/favicon.ico.meta +1 -0
  83. voice_mode/frontend/.next/standalone/.next/server/app/index.html +1 -0
  84. voice_mode/frontend/.next/standalone/.next/server/app/index.meta +5 -0
  85. voice_mode/frontend/.next/standalone/.next/server/app/index.rsc +7 -0
  86. voice_mode/frontend/.next/standalone/.next/server/app/page.js +11 -0
  87. voice_mode/frontend/.next/standalone/.next/server/app/page.js.nft.json +1 -0
  88. voice_mode/frontend/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -0
  89. voice_mode/frontend/.next/standalone/.next/server/app-paths-manifest.json +6 -0
  90. voice_mode/frontend/.next/standalone/.next/server/chunks/463.js +1 -0
  91. voice_mode/frontend/.next/standalone/.next/server/chunks/682.js +6 -0
  92. voice_mode/frontend/.next/standalone/.next/server/chunks/948.js +2 -0
  93. voice_mode/frontend/.next/standalone/.next/server/chunks/994.js +2 -0
  94. voice_mode/frontend/.next/standalone/.next/server/font-manifest.json +1 -0
  95. voice_mode/frontend/.next/standalone/.next/server/middleware-build-manifest.js +1 -0
  96. voice_mode/frontend/.next/standalone/.next/server/middleware-manifest.json +6 -0
  97. voice_mode/frontend/.next/standalone/.next/server/middleware-react-loadable-manifest.js +1 -0
  98. voice_mode/frontend/.next/standalone/.next/server/next-font-manifest.js +1 -0
  99. voice_mode/frontend/.next/standalone/.next/server/next-font-manifest.json +1 -0
  100. voice_mode/frontend/.next/standalone/.next/server/pages/404.html +1 -0
  101. voice_mode/frontend/.next/standalone/.next/server/pages/500.html +1 -0
  102. voice_mode/frontend/.next/standalone/.next/server/pages/_app.js +1 -0
  103. voice_mode/frontend/.next/standalone/.next/server/pages/_app.js.nft.json +1 -0
  104. voice_mode/frontend/.next/standalone/.next/server/pages/_document.js +1 -0
  105. voice_mode/frontend/.next/standalone/.next/server/pages/_document.js.nft.json +1 -0
  106. voice_mode/frontend/.next/standalone/.next/server/pages/_error.js +1 -0
  107. voice_mode/frontend/.next/standalone/.next/server/pages/_error.js.nft.json +1 -0
  108. voice_mode/frontend/.next/standalone/.next/server/pages-manifest.json +1 -0
  109. voice_mode/frontend/.next/standalone/.next/server/server-reference-manifest.js +1 -0
  110. voice_mode/frontend/.next/standalone/.next/server/server-reference-manifest.json +1 -0
  111. voice_mode/frontend/.next/standalone/.next/server/webpack-runtime.js +1 -0
  112. voice_mode/frontend/.next/standalone/package.json +40 -0
  113. voice_mode/frontend/.next/standalone/server.js +38 -0
  114. voice_mode/frontend/.next/static/c5TIe90lGzrESrqJkkXQa/_buildManifest.js +1 -0
  115. voice_mode/frontend/.next/static/c5TIe90lGzrESrqJkkXQa/_ssgManifest.js +1 -0
  116. voice_mode/frontend/.next/static/chunks/117-40bc79a2b97edb21.js +2 -0
  117. voice_mode/frontend/.next/static/chunks/144d3bae-2d5f122b82426d88.js +1 -0
  118. voice_mode/frontend/.next/static/chunks/471-bd4b96a33883dfa2.js +3 -0
  119. voice_mode/frontend/.next/static/chunks/app/_not-found/page-5011050e402ab9c8.js +1 -0
  120. voice_mode/frontend/.next/static/chunks/app/layout-0074dd8ab91cdbe0.js +1 -0
  121. voice_mode/frontend/.next/static/chunks/app/page-ae5f3aa9d9ba5993.js +1 -0
  122. voice_mode/frontend/.next/static/chunks/fd9d1056-af324d327b243cf1.js +1 -0
  123. voice_mode/frontend/.next/static/chunks/framework-f66176bb897dc684.js +1 -0
  124. voice_mode/frontend/.next/static/chunks/main-3163eca598b76a9f.js +1 -0
  125. voice_mode/frontend/.next/static/chunks/main-app-233f6c633f73ae84.js +1 -0
  126. voice_mode/frontend/.next/static/chunks/pages/_app-72b849fbd24ac258.js +1 -0
  127. voice_mode/frontend/.next/static/chunks/pages/_error-7ba65e1336b92748.js +1 -0
  128. voice_mode/frontend/.next/static/chunks/polyfills-42372ed130431b0a.js +1 -0
  129. voice_mode/frontend/.next/static/chunks/webpack-0ea9b80f19935b70.js +1 -0
  130. voice_mode/frontend/.next/static/css/a2f49a47752b5010.css +3 -0
  131. voice_mode/frontend/.next/static/media/01099be941da1820-s.woff2 +0 -0
  132. voice_mode/frontend/.next/static/media/39883d31a7792467-s.p.woff2 +0 -0
  133. voice_mode/frontend/.next/static/media/6368404d2e8d66fe-s.woff2 +0 -0
  134. voice_mode/frontend/.next/trace +43 -0
  135. voice_mode/frontend/.next/types/app/api/connection-details/route.ts +343 -0
  136. voice_mode/frontend/.next/types/app/layout.ts +79 -0
  137. voice_mode/frontend/.next/types/app/page.ts +79 -0
  138. voice_mode/frontend/.next/types/package.json +1 -0
  139. voice_mode/frontend/package-lock.json +154 -1
  140. voice_mode/providers.py +7 -8
  141. voice_mode/resources/configuration.py +2 -2
  142. voice_mode/tools/configuration_management.py +106 -5
  143. voice_mode/tools/converse.py +98 -0
  144. voice_mode/tools/transcription/__init__.py +14 -0
  145. voice_mode/tools/transcription/backends.py +287 -0
  146. voice_mode/tools/transcription/core.py +136 -0
  147. voice_mode/tools/transcription/formats.py +144 -0
  148. voice_mode/tools/transcription/types.py +52 -0
  149. {voice_mode-3.34.3.dist-info → voice_mode-4.0.1.dist-info}/METADATA +5 -2
  150. voice_mode-4.0.1.dist-info/RECORD +255 -0
  151. voice_mode/voice_preferences.py +0 -125
  152. voice_mode-3.34.3.dist-info/RECORD +0 -116
  153. {voice_mode-3.34.3.dist-info → voice_mode-4.0.1.dist-info}/WHEEL +0 -0
  154. {voice_mode-3.34.3.dist-info → voice_mode-4.0.1.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,343 @@
1
+ // File: /tmp/build-via-sdist-au03bmmj/voice_mode-4.0.1/voice_mode/frontend/app/api/connection-details/route.ts
2
+ import * as entry from '../../../../../app/api/connection-details/route.js'
3
+ import type { NextRequest } from 'next/server.js'
4
+
5
+ type TEntry = typeof import('../../../../../app/api/connection-details/route.js')
6
+
7
+ // Check that the entry is a valid entry
8
+ checkFields<Diff<{
9
+ GET?: Function
10
+ HEAD?: Function
11
+ OPTIONS?: Function
12
+ POST?: Function
13
+ PUT?: Function
14
+ DELETE?: Function
15
+ PATCH?: Function
16
+ config?: {}
17
+ generateStaticParams?: Function
18
+ revalidate?: RevalidateRange<TEntry> | false
19
+ dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
20
+ dynamicParams?: boolean
21
+ fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
22
+ preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
23
+ runtime?: 'nodejs' | 'experimental-edge' | 'edge'
24
+ maxDuration?: number
25
+
26
+ }, TEntry, ''>>()
27
+
28
+ // Check the prop type of the entry function
29
+ if ('GET' in entry) {
30
+ checkFields<
31
+ Diff<
32
+ ParamCheck<Request | NextRequest>,
33
+ {
34
+ __tag__: 'GET'
35
+ __param_position__: 'first'
36
+ __param_type__: FirstArg<MaybeField<TEntry, 'GET'>>
37
+ },
38
+ 'GET'
39
+ >
40
+ >()
41
+ checkFields<
42
+ Diff<
43
+ ParamCheck<PageParams>,
44
+ {
45
+ __tag__: 'GET'
46
+ __param_position__: 'second'
47
+ __param_type__: SecondArg<MaybeField<TEntry, 'GET'>>
48
+ },
49
+ 'GET'
50
+ >
51
+ >()
52
+
53
+ checkFields<
54
+ Diff<
55
+ {
56
+ __tag__: 'GET',
57
+ __return_type__: Response | void | never | Promise<Response | void | never>
58
+ },
59
+ {
60
+ __tag__: 'GET',
61
+ __return_type__: ReturnType<MaybeField<TEntry, 'GET'>>
62
+ },
63
+ 'GET'
64
+ >
65
+ >()
66
+ }
67
+ // Check the prop type of the entry function
68
+ if ('HEAD' in entry) {
69
+ checkFields<
70
+ Diff<
71
+ ParamCheck<Request | NextRequest>,
72
+ {
73
+ __tag__: 'HEAD'
74
+ __param_position__: 'first'
75
+ __param_type__: FirstArg<MaybeField<TEntry, 'HEAD'>>
76
+ },
77
+ 'HEAD'
78
+ >
79
+ >()
80
+ checkFields<
81
+ Diff<
82
+ ParamCheck<PageParams>,
83
+ {
84
+ __tag__: 'HEAD'
85
+ __param_position__: 'second'
86
+ __param_type__: SecondArg<MaybeField<TEntry, 'HEAD'>>
87
+ },
88
+ 'HEAD'
89
+ >
90
+ >()
91
+
92
+ checkFields<
93
+ Diff<
94
+ {
95
+ __tag__: 'HEAD',
96
+ __return_type__: Response | void | never | Promise<Response | void | never>
97
+ },
98
+ {
99
+ __tag__: 'HEAD',
100
+ __return_type__: ReturnType<MaybeField<TEntry, 'HEAD'>>
101
+ },
102
+ 'HEAD'
103
+ >
104
+ >()
105
+ }
106
+ // Check the prop type of the entry function
107
+ if ('OPTIONS' in entry) {
108
+ checkFields<
109
+ Diff<
110
+ ParamCheck<Request | NextRequest>,
111
+ {
112
+ __tag__: 'OPTIONS'
113
+ __param_position__: 'first'
114
+ __param_type__: FirstArg<MaybeField<TEntry, 'OPTIONS'>>
115
+ },
116
+ 'OPTIONS'
117
+ >
118
+ >()
119
+ checkFields<
120
+ Diff<
121
+ ParamCheck<PageParams>,
122
+ {
123
+ __tag__: 'OPTIONS'
124
+ __param_position__: 'second'
125
+ __param_type__: SecondArg<MaybeField<TEntry, 'OPTIONS'>>
126
+ },
127
+ 'OPTIONS'
128
+ >
129
+ >()
130
+
131
+ checkFields<
132
+ Diff<
133
+ {
134
+ __tag__: 'OPTIONS',
135
+ __return_type__: Response | void | never | Promise<Response | void | never>
136
+ },
137
+ {
138
+ __tag__: 'OPTIONS',
139
+ __return_type__: ReturnType<MaybeField<TEntry, 'OPTIONS'>>
140
+ },
141
+ 'OPTIONS'
142
+ >
143
+ >()
144
+ }
145
+ // Check the prop type of the entry function
146
+ if ('POST' in entry) {
147
+ checkFields<
148
+ Diff<
149
+ ParamCheck<Request | NextRequest>,
150
+ {
151
+ __tag__: 'POST'
152
+ __param_position__: 'first'
153
+ __param_type__: FirstArg<MaybeField<TEntry, 'POST'>>
154
+ },
155
+ 'POST'
156
+ >
157
+ >()
158
+ checkFields<
159
+ Diff<
160
+ ParamCheck<PageParams>,
161
+ {
162
+ __tag__: 'POST'
163
+ __param_position__: 'second'
164
+ __param_type__: SecondArg<MaybeField<TEntry, 'POST'>>
165
+ },
166
+ 'POST'
167
+ >
168
+ >()
169
+
170
+ checkFields<
171
+ Diff<
172
+ {
173
+ __tag__: 'POST',
174
+ __return_type__: Response | void | never | Promise<Response | void | never>
175
+ },
176
+ {
177
+ __tag__: 'POST',
178
+ __return_type__: ReturnType<MaybeField<TEntry, 'POST'>>
179
+ },
180
+ 'POST'
181
+ >
182
+ >()
183
+ }
184
+ // Check the prop type of the entry function
185
+ if ('PUT' in entry) {
186
+ checkFields<
187
+ Diff<
188
+ ParamCheck<Request | NextRequest>,
189
+ {
190
+ __tag__: 'PUT'
191
+ __param_position__: 'first'
192
+ __param_type__: FirstArg<MaybeField<TEntry, 'PUT'>>
193
+ },
194
+ 'PUT'
195
+ >
196
+ >()
197
+ checkFields<
198
+ Diff<
199
+ ParamCheck<PageParams>,
200
+ {
201
+ __tag__: 'PUT'
202
+ __param_position__: 'second'
203
+ __param_type__: SecondArg<MaybeField<TEntry, 'PUT'>>
204
+ },
205
+ 'PUT'
206
+ >
207
+ >()
208
+
209
+ checkFields<
210
+ Diff<
211
+ {
212
+ __tag__: 'PUT',
213
+ __return_type__: Response | void | never | Promise<Response | void | never>
214
+ },
215
+ {
216
+ __tag__: 'PUT',
217
+ __return_type__: ReturnType<MaybeField<TEntry, 'PUT'>>
218
+ },
219
+ 'PUT'
220
+ >
221
+ >()
222
+ }
223
+ // Check the prop type of the entry function
224
+ if ('DELETE' in entry) {
225
+ checkFields<
226
+ Diff<
227
+ ParamCheck<Request | NextRequest>,
228
+ {
229
+ __tag__: 'DELETE'
230
+ __param_position__: 'first'
231
+ __param_type__: FirstArg<MaybeField<TEntry, 'DELETE'>>
232
+ },
233
+ 'DELETE'
234
+ >
235
+ >()
236
+ checkFields<
237
+ Diff<
238
+ ParamCheck<PageParams>,
239
+ {
240
+ __tag__: 'DELETE'
241
+ __param_position__: 'second'
242
+ __param_type__: SecondArg<MaybeField<TEntry, 'DELETE'>>
243
+ },
244
+ 'DELETE'
245
+ >
246
+ >()
247
+
248
+ checkFields<
249
+ Diff<
250
+ {
251
+ __tag__: 'DELETE',
252
+ __return_type__: Response | void | never | Promise<Response | void | never>
253
+ },
254
+ {
255
+ __tag__: 'DELETE',
256
+ __return_type__: ReturnType<MaybeField<TEntry, 'DELETE'>>
257
+ },
258
+ 'DELETE'
259
+ >
260
+ >()
261
+ }
262
+ // Check the prop type of the entry function
263
+ if ('PATCH' in entry) {
264
+ checkFields<
265
+ Diff<
266
+ ParamCheck<Request | NextRequest>,
267
+ {
268
+ __tag__: 'PATCH'
269
+ __param_position__: 'first'
270
+ __param_type__: FirstArg<MaybeField<TEntry, 'PATCH'>>
271
+ },
272
+ 'PATCH'
273
+ >
274
+ >()
275
+ checkFields<
276
+ Diff<
277
+ ParamCheck<PageParams>,
278
+ {
279
+ __tag__: 'PATCH'
280
+ __param_position__: 'second'
281
+ __param_type__: SecondArg<MaybeField<TEntry, 'PATCH'>>
282
+ },
283
+ 'PATCH'
284
+ >
285
+ >()
286
+
287
+ checkFields<
288
+ Diff<
289
+ {
290
+ __tag__: 'PATCH',
291
+ __return_type__: Response | void | never | Promise<Response | void | never>
292
+ },
293
+ {
294
+ __tag__: 'PATCH',
295
+ __return_type__: ReturnType<MaybeField<TEntry, 'PATCH'>>
296
+ },
297
+ 'PATCH'
298
+ >
299
+ >()
300
+ }
301
+
302
+ // Check the arguments and return type of the generateStaticParams function
303
+ if ('generateStaticParams' in entry) {
304
+ checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
305
+ checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
306
+ }
307
+
308
+ type PageParams = any
309
+ export interface PageProps {
310
+ params?: any
311
+ searchParams?: any
312
+ }
313
+ export interface LayoutProps {
314
+ children?: React.ReactNode
315
+
316
+ params?: any
317
+ }
318
+
319
+ // =============
320
+ // Utility types
321
+ type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
322
+
323
+ // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
324
+ type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
325
+ type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
326
+
327
+ type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
328
+ type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
329
+ type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
330
+
331
+ type ParamCheck<T> = {
332
+ __tag__: string
333
+ __param_position__: string
334
+ __param_type__: T
335
+ }
336
+
337
+ function checkFields<_ extends { [k in keyof any]: never }>() {}
338
+
339
+ // https://github.com/sindresorhus/type-fest
340
+ type Numeric = number | bigint
341
+ type Zero = 0 | 0n
342
+ type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
343
+ type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
@@ -0,0 +1,79 @@
1
+ // File: /tmp/build-via-sdist-au03bmmj/voice_mode-4.0.1/voice_mode/frontend/app/layout.tsx
2
+ import * as entry from '../../../app/layout.js'
3
+ import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
4
+
5
+ type TEntry = typeof import('../../../app/layout.js')
6
+
7
+ // Check that the entry is a valid entry
8
+ checkFields<Diff<{
9
+ default: Function
10
+ config?: {}
11
+ generateStaticParams?: Function
12
+ revalidate?: RevalidateRange<TEntry> | false
13
+ dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
14
+ dynamicParams?: boolean
15
+ fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
16
+ preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
17
+ runtime?: 'nodejs' | 'experimental-edge' | 'edge'
18
+ maxDuration?: number
19
+
20
+ metadata?: any
21
+ generateMetadata?: Function
22
+ viewport?: any
23
+ generateViewport?: Function
24
+
25
+ }, TEntry, ''>>()
26
+
27
+ // Check the prop type of the entry function
28
+ checkFields<Diff<LayoutProps, FirstArg<TEntry['default']>, 'default'>>()
29
+
30
+ // Check the arguments and return type of the generateMetadata function
31
+ if ('generateMetadata' in entry) {
32
+ checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
33
+ checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
34
+ }
35
+
36
+ // Check the arguments and return type of the generateViewport function
37
+ if ('generateViewport' in entry) {
38
+ checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
39
+ checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
40
+ }
41
+
42
+ // Check the arguments and return type of the generateStaticParams function
43
+ if ('generateStaticParams' in entry) {
44
+ checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
45
+ checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
46
+ }
47
+
48
+ type PageParams = any
49
+ export interface PageProps {
50
+ params?: any
51
+ searchParams?: any
52
+ }
53
+ export interface LayoutProps {
54
+ children?: React.ReactNode
55
+
56
+ params?: any
57
+ }
58
+
59
+ // =============
60
+ // Utility types
61
+ type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
62
+
63
+ // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
64
+ type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
65
+ type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
66
+
67
+ type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
68
+ type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
69
+ type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
70
+
71
+
72
+
73
+ function checkFields<_ extends { [k in keyof any]: never }>() {}
74
+
75
+ // https://github.com/sindresorhus/type-fest
76
+ type Numeric = number | bigint
77
+ type Zero = 0 | 0n
78
+ type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
79
+ type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
@@ -0,0 +1,79 @@
1
+ // File: /tmp/build-via-sdist-au03bmmj/voice_mode-4.0.1/voice_mode/frontend/app/page.tsx
2
+ import * as entry from '../../../app/page.js'
3
+ import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
4
+
5
+ type TEntry = typeof import('../../../app/page.js')
6
+
7
+ // Check that the entry is a valid entry
8
+ checkFields<Diff<{
9
+ default: Function
10
+ config?: {}
11
+ generateStaticParams?: Function
12
+ revalidate?: RevalidateRange<TEntry> | false
13
+ dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
14
+ dynamicParams?: boolean
15
+ fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
16
+ preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
17
+ runtime?: 'nodejs' | 'experimental-edge' | 'edge'
18
+ maxDuration?: number
19
+
20
+ metadata?: any
21
+ generateMetadata?: Function
22
+ viewport?: any
23
+ generateViewport?: Function
24
+
25
+ }, TEntry, ''>>()
26
+
27
+ // Check the prop type of the entry function
28
+ checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
29
+
30
+ // Check the arguments and return type of the generateMetadata function
31
+ if ('generateMetadata' in entry) {
32
+ checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
33
+ checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
34
+ }
35
+
36
+ // Check the arguments and return type of the generateViewport function
37
+ if ('generateViewport' in entry) {
38
+ checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
39
+ checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
40
+ }
41
+
42
+ // Check the arguments and return type of the generateStaticParams function
43
+ if ('generateStaticParams' in entry) {
44
+ checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
45
+ checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
46
+ }
47
+
48
+ type PageParams = any
49
+ export interface PageProps {
50
+ params?: any
51
+ searchParams?: any
52
+ }
53
+ export interface LayoutProps {
54
+ children?: React.ReactNode
55
+
56
+ params?: any
57
+ }
58
+
59
+ // =============
60
+ // Utility types
61
+ type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
62
+
63
+ // If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
64
+ type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
65
+ type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
66
+
67
+ type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
68
+ type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
69
+ type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
70
+
71
+
72
+
73
+ function checkFields<_ extends { [k in keyof any]: never }>() {}
74
+
75
+ // https://github.com/sindresorhus/type-fest
76
+ type Numeric = number | bigint
77
+ type Zero = 0 | 0n
78
+ type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
79
+ type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'
@@ -0,0 +1 @@
1
+ {"type": "module"}