@fabriktor/client 0.0.59 → 0.0.62
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.
package/dist/src/core/type.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export type CompletePayload<T> = T extends object ? {
|
|
2
2
|
[K in keyof T]-?: Exclude<T[K], undefined>;
|
|
3
3
|
} : T;
|
|
4
|
+
export type ExactlyOne<T extends object, K extends keyof T> = Omit<T, K> & {
|
|
5
|
+
[P in K]: Required<Pick<T, P>> & Partial<Record<Exclude<K, P>, never>>;
|
|
6
|
+
}[K];
|
|
4
7
|
export type ReplaceField<T extends object, K extends keyof T, V> = Omit<T, K> & {
|
|
5
8
|
[P in K]: V;
|
|
6
9
|
};
|
|
@@ -2,8 +2,8 @@ import { type PLProcessesSpeechToText, type RPProcessesSpeechToText } from "@fab
|
|
|
2
2
|
import type { TokenProvider } from "../core/auth.js";
|
|
3
3
|
import type { OperationResultOf } from "../core/crud.js";
|
|
4
4
|
import type { HTTPDoer } from "../core/http.js";
|
|
5
|
-
import type { CompletePayload } from "../core/type.js";
|
|
6
|
-
export type SpeechToTextOptions = CompletePayload<PLProcessesSpeechToText>;
|
|
5
|
+
import type { CompletePayload, ExactlyOne } from "../core/type.js";
|
|
6
|
+
export type SpeechToTextOptions = ExactlyOne<CompletePayload<PLProcessesSpeechToText>, "download_uri" | "storage_object_name">;
|
|
7
7
|
export type ProcessesClientOptions = {
|
|
8
8
|
http: HTTPDoer;
|
|
9
9
|
base_url: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabriktor/client",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.62",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"typescript": "^6.0.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@fabriktor/schema": "0.0.
|
|
20
|
+
"@fabriktor/schema": "0.0.45"
|
|
21
21
|
}
|
|
22
22
|
}
|