@arcships/aimux 0.2.1 → 0.5.0
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/error.d.ts +139 -0
- package/dist/error.js +114 -0
- package/dist/index.d.ts +162 -8
- package/dist/index.js +334 -28
- package/dist/native.d.ts +2 -0
- package/dist/native.js +46 -0
- package/dist/types/AiMuxError.d.ts +45 -13
- package/dist/types/AiMuxError.js +0 -1
- package/dist/types/ApiCallError.d.ts +75 -0
- package/dist/types/ApiCallError.js +2 -0
- package/dist/types/BreakKind.d.ts +1 -0
- package/dist/types/BreakKind.js +3 -0
- package/dist/types/CallOptions.d.ts +28 -2
- package/dist/types/CatalogueSource.d.ts +4 -0
- package/dist/types/CatalogueSource.js +3 -0
- package/dist/types/ChatCompletion.d.ts +16 -0
- package/dist/types/ChatCompletion.js +2 -0
- package/dist/types/ChatCompletionChoice.d.ts +8 -0
- package/dist/types/ChatCompletionChoice.js +2 -0
- package/dist/types/ChatCompletionChunk.d.ts +15 -0
- package/dist/types/ChatCompletionChunk.js +2 -0
- package/dist/types/ChatCompletionChunkChoice.d.ts +8 -0
- package/dist/types/ChatCompletionChunkChoice.js +2 -0
- package/dist/types/ChatCompletionChunkFunction.d.ts +4 -0
- package/dist/types/ChatCompletionChunkFunction.js +3 -0
- package/dist/types/ChatCompletionChunkToolCall.d.ts +7 -0
- package/dist/types/ChatCompletionChunkToolCall.js +2 -0
- package/dist/types/ChatCompletionDelta.d.ts +7 -0
- package/dist/types/ChatCompletionDelta.js +2 -0
- package/dist/types/ChatCompletionFunction.d.ts +4 -0
- package/dist/types/ChatCompletionFunction.js +3 -0
- package/dist/types/ChatCompletionMessage.d.ts +9 -0
- package/dist/types/ChatCompletionMessage.js +2 -0
- package/dist/types/ChatCompletionToolCall.d.ts +6 -0
- package/dist/types/ChatCompletionToolCall.js +2 -0
- package/dist/types/ChatCompletionUsage.d.ts +9 -0
- package/dist/types/ChatCompletionUsage.js +2 -0
- package/dist/types/CompletionTokensDetails.d.ts +3 -0
- package/dist/types/CompletionTokensDetails.js +3 -0
- package/dist/types/ContentPart.d.ts +6 -0
- package/dist/types/EmbeddingCallOptions.d.ts +9 -0
- package/dist/types/FilePart.d.ts +8 -0
- package/dist/types/FilePart.js +2 -0
- package/dist/types/Fingerprint.d.ts +21 -0
- package/dist/types/Fingerprint.js +3 -0
- package/dist/types/GenerateContent.d.ts +12 -1
- package/dist/types/GenerateObjectResult.d.ts +48 -0
- package/dist/types/GenerateObjectResult.js +2 -0
- package/dist/types/GenerateTextOptions.d.ts +12 -1
- package/dist/types/GenerateTextResult.d.ts +47 -0
- package/dist/types/HttpExchange.d.ts +34 -0
- package/dist/types/HttpExchange.js +2 -0
- package/dist/types/HttpRecord.d.ts +12 -0
- package/dist/types/HttpRecord.js +3 -0
- package/dist/types/ImageCallOptions.d.ts +10 -1
- package/dist/types/InputRecord.d.ts +16 -0
- package/dist/types/InputRecord.js +2 -0
- package/dist/types/Modality.d.ts +4 -0
- package/dist/types/Modality.js +3 -0
- package/dist/types/ModelCapabilities.d.ts +21 -0
- package/dist/types/ModelCapabilities.js +3 -0
- package/dist/types/ModelCost.d.ts +10 -0
- package/dist/types/ModelCost.js +3 -0
- package/dist/types/ModelLimits.d.ts +17 -0
- package/dist/types/ModelLimits.js +3 -0
- package/dist/types/ModelModalities.d.ts +8 -0
- package/dist/types/ModelModalities.js +2 -0
- package/dist/types/ModelSpec.d.ts +33 -0
- package/dist/types/ModelSpec.js +2 -0
- package/dist/types/ModelType.d.ts +4 -0
- package/dist/types/ModelType.js +3 -0
- package/dist/types/OutcomeRecord.d.ts +19 -0
- package/dist/types/OutcomeRecord.js +2 -0
- package/dist/types/OutcomeStatus.d.ts +4 -0
- package/dist/types/OutcomeStatus.js +3 -0
- package/dist/types/PrefixBreak.d.ts +11 -0
- package/dist/types/PrefixBreak.js +2 -0
- package/dist/types/PromptTokensDetails.d.ts +4 -0
- package/dist/types/PromptTokensDetails.js +3 -0
- package/dist/types/ProviderAuditSpec.d.ts +33 -0
- package/dist/types/ProviderAuditSpec.js +2 -0
- package/dist/types/ProviderFamily.d.ts +5 -0
- package/dist/types/ProviderFamily.js +3 -0
- package/dist/types/ProviderRecord.d.ts +30 -0
- package/dist/types/ProviderRecord.js +2 -0
- package/dist/types/RawToolCall.d.ts +16 -0
- package/dist/types/RawToolCall.js +2 -0
- package/dist/types/ReasoningMode.d.ts +4 -0
- package/dist/types/ReasoningMode.js +3 -0
- package/dist/types/ReasoningPart.d.ts +9 -0
- package/dist/types/ReasoningPart.js +3 -0
- package/dist/types/ReasoningSpec.d.ts +39 -0
- package/dist/types/ReasoningSpec.js +2 -0
- package/dist/types/ReasoningVisibility.d.ts +4 -0
- package/dist/types/ReasoningVisibility.js +3 -0
- package/dist/types/Recording.d.ts +56 -0
- package/dist/types/Recording.js +2 -0
- package/dist/types/RequestCacheHints.d.ts +9 -0
- package/dist/types/RequestCacheHints.js +3 -0
- package/dist/types/RerankingCallOptions.d.ts +9 -0
- package/dist/types/ResponseRecord.d.ts +13 -0
- package/dist/types/ResponseRecord.js +3 -0
- package/dist/types/RetryError.d.ts +9 -0
- package/dist/types/RetryError.js +2 -0
- package/dist/types/RetryErrorReason.d.ts +4 -0
- package/dist/types/RetryErrorReason.js +3 -0
- package/dist/types/RuntimeModel.d.ts +22 -0
- package/dist/types/RuntimeModel.js +3 -0
- package/dist/types/SearchCallOptions.d.ts +9 -0
- package/dist/types/SessionCall.d.ts +20 -0
- package/dist/types/SessionCall.js +3 -0
- package/dist/types/SessionChainView.d.ts +10 -0
- package/dist/types/SessionChainView.js +2 -0
- package/dist/types/SessionSource.d.ts +4 -0
- package/dist/types/SessionSource.js +3 -0
- package/dist/types/SessionStepStat.d.ts +27 -0
- package/dist/types/SessionStepStat.js +2 -0
- package/dist/types/SessionView.d.ts +16 -0
- package/dist/types/SessionView.js +2 -0
- package/dist/types/SourcePart.d.ts +9 -0
- package/dist/types/SourcePart.js +3 -0
- package/dist/types/SpeechCallOptions.d.ts +9 -0
- package/dist/types/StreamPart.d.ts +12 -0
- package/dist/types/StreamTextResultAggregated.d.ts +74 -0
- package/dist/types/StreamTextResultAggregated.js +2 -0
- package/dist/types/TimeoutConfiguration.d.ts +19 -0
- package/dist/types/TimeoutConfiguration.js +1 -0
- package/dist/types/TimingRecord.d.ts +7 -0
- package/dist/types/TimingRecord.js +3 -0
- package/dist/types/ToolCall.d.ts +16 -1
- package/dist/types/ToolCallRepairReply.d.ts +19 -0
- package/dist/types/ToolCallRepairReply.js +2 -0
- package/dist/types/TraceFilter.d.ts +9 -0
- package/dist/types/TraceFilter.js +3 -0
- package/dist/types/TraceRecord.d.ts +54 -0
- package/dist/types/TraceRecord.js +2 -0
- package/dist/types/TraceStats.d.ts +20 -0
- package/dist/types/TraceStats.js +3 -0
- package/dist/types/TranscriptionCallOptions.d.ts +38 -0
- package/dist/types/TranscriptionCallOptions.js +2 -0
- package/dist/types/TranscriptionRequest.d.ts +9 -0
- package/dist/types/TranscriptionRequest.js +3 -0
- package/dist/types/TranscriptionResponse.d.ts +24 -0
- package/dist/types/TranscriptionResponse.js +2 -0
- package/dist/types/TranscriptionResult.d.ts +46 -0
- package/dist/types/TranscriptionResult.js +2 -0
- package/dist/types/TranscriptionSegment.d.ts +17 -0
- package/dist/types/TranscriptionSegment.js +3 -0
- package/dist/types/TranscriptionStreamPart.d.ts +70 -0
- package/dist/types/TranscriptionStreamPart.js +2 -0
- package/dist/types/UsageSnapshot.d.ts +18 -0
- package/dist/types/UsageSnapshot.js +2 -0
- package/dist/types/Verdict.d.ts +23 -0
- package/dist/types/Verdict.js +2 -0
- package/dist/types/VerdictConfidence.d.ts +4 -0
- package/dist/types/VerdictConfidence.js +3 -0
- package/dist/types/VerdictKind.d.ts +4 -0
- package/dist/types/VerdictKind.js +3 -0
- package/dist/types/VideoCallOptions.d.ts +17 -2
- package/dist/types/VideoPollOptions.d.ts +13 -0
- package/dist/types/VideoPollOptions.js +3 -0
- package/dist/types/VideoResult.d.ts +1 -1
- package/dist/types.d.ts +71 -1
- package/dist/types.js +3 -3
- package/index.d.ts +332 -25
- package/index.js +77 -54
- package/package.json +13 -12
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { AspectRatio } from "./AspectRatio";
|
|
2
2
|
import type { Size } from "./Size";
|
|
3
|
+
import type { TimeoutConfiguration } from "./TimeoutConfiguration";
|
|
3
4
|
import type { VideoFile } from "./VideoFile";
|
|
4
5
|
import type { VideoFrameImage } from "./VideoFrameImage";
|
|
6
|
+
import type { VideoPollOptions } from "./VideoPollOptions";
|
|
5
7
|
import type { JsonValue } from "./serde_json/JsonValue";
|
|
6
8
|
/**
|
|
7
|
-
* Options passed to [`VideoModel::
|
|
9
|
+
* Options passed to [`VideoModel::do_start`] and [`VideoModel::do_status`].
|
|
8
10
|
*
|
|
9
11
|
* Aligned with V4 `VideoModelV4CallOptions`.
|
|
10
12
|
*/
|
|
@@ -37,7 +39,7 @@ export type VideoCallOptions = {
|
|
|
37
39
|
/**
|
|
38
40
|
* Seed for deterministic generation. `None` uses a random seed.
|
|
39
41
|
*/
|
|
40
|
-
seed:
|
|
42
|
+
seed: number | null;
|
|
41
43
|
/**
|
|
42
44
|
* Input image for image-to-video generation (the starting frame).
|
|
43
45
|
*/
|
|
@@ -60,6 +62,19 @@ export type VideoCallOptions = {
|
|
|
60
62
|
provider_options: {
|
|
61
63
|
[key in string]: JsonValue;
|
|
62
64
|
};
|
|
65
|
+
/**
|
|
66
|
+
* Per-call retry override. `None` uses the model default.
|
|
67
|
+
*/
|
|
68
|
+
max_retries: number | null;
|
|
69
|
+
/**
|
|
70
|
+
* Per-call poll pacing override for the start/status flow. Unset fields
|
|
71
|
+
* fall back to the model's [`VideoModel::poll_config`].
|
|
72
|
+
*/
|
|
73
|
+
poll: VideoPollOptions | null;
|
|
74
|
+
/**
|
|
75
|
+
* Per-call operation timeout.
|
|
76
|
+
*/
|
|
77
|
+
timeout: TimeoutConfiguration | null;
|
|
63
78
|
/**
|
|
64
79
|
* Additional HTTP headers to send with the request.
|
|
65
80
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-call poll pacing for video generation (AI SDK `generateVideo` `poll`).
|
|
3
|
+
*/
|
|
4
|
+
export type VideoPollOptions = {
|
|
5
|
+
/**
|
|
6
|
+
* Delay between consecutive status checks, in milliseconds.
|
|
7
|
+
*/
|
|
8
|
+
interval_ms: number | null;
|
|
9
|
+
/**
|
|
10
|
+
* Maximum total time to wait for completion, in milliseconds.
|
|
11
|
+
*/
|
|
12
|
+
timeout_ms: number | null;
|
|
13
|
+
};
|
|
@@ -3,7 +3,7 @@ import type { VideoResponse } from "./VideoResponse";
|
|
|
3
3
|
import type { Warning } from "./Warning";
|
|
4
4
|
import type { JsonValue } from "./serde_json/JsonValue";
|
|
5
5
|
/**
|
|
6
|
-
* The result of
|
|
6
|
+
* The final result of a video generation operation.
|
|
7
7
|
*
|
|
8
8
|
* Aligned with V4 `VideoModelV4Result`.
|
|
9
9
|
*/
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
export type * from './types/AiMuxError';
|
|
2
|
+
export type * from './types/ApiCallError';
|
|
2
3
|
export type * from './types/AspectRatio';
|
|
3
4
|
export type * from './types/AudioChunk';
|
|
4
5
|
export type * from './types/AudioData';
|
|
5
6
|
export type * from './types/AudioInput';
|
|
7
|
+
export type * from './types/BreakKind';
|
|
6
8
|
export type * from './types/CallOptions';
|
|
9
|
+
export type * from './types/CatalogueSource';
|
|
10
|
+
export type * from './types/ChatCompletion';
|
|
11
|
+
export type * from './types/ChatCompletionChoice';
|
|
12
|
+
export type * from './types/ChatCompletionChunk';
|
|
13
|
+
export type * from './types/ChatCompletionChunkChoice';
|
|
14
|
+
export type * from './types/ChatCompletionChunkFunction';
|
|
15
|
+
export type * from './types/ChatCompletionChunkToolCall';
|
|
16
|
+
export type * from './types/ChatCompletionDelta';
|
|
17
|
+
export type * from './types/ChatCompletionFunction';
|
|
18
|
+
export type * from './types/ChatCompletionMessage';
|
|
19
|
+
export type * from './types/ChatCompletionToolCall';
|
|
20
|
+
export type * from './types/ChatCompletionUsage';
|
|
21
|
+
export type * from './types/CompletionTokensDetails';
|
|
7
22
|
export type * from './types/ContentPart';
|
|
8
23
|
export type * from './types/EmbeddingCallOptions';
|
|
9
24
|
export type * from './types/EmbeddingResponse';
|
|
@@ -11,13 +26,18 @@ export type * from './types/EmbeddingResult';
|
|
|
11
26
|
export type * from './types/EmbeddingUsage';
|
|
12
27
|
export type * from './types/FileBytes';
|
|
13
28
|
export type * from './types/FileData';
|
|
29
|
+
export type * from './types/FilePart';
|
|
30
|
+
export type * from './types/Fingerprint';
|
|
14
31
|
export type * from './types/FinishReason';
|
|
15
32
|
export type * from './types/FinishReasonUnified';
|
|
16
33
|
export type * from './types/FunctionTool';
|
|
17
34
|
export type * from './types/GenerateContent';
|
|
35
|
+
export type * from './types/GenerateObjectResult';
|
|
18
36
|
export type * from './types/GenerateResult';
|
|
19
37
|
export type * from './types/GenerateTextOptions';
|
|
20
38
|
export type * from './types/GenerateTextResult';
|
|
39
|
+
export type * from './types/HttpExchange';
|
|
40
|
+
export type * from './types/HttpRecord';
|
|
21
41
|
export type * from './types/ImageCallOptions';
|
|
22
42
|
export type * from './types/ImageFile';
|
|
23
43
|
export type * from './types/ImageFileData';
|
|
@@ -26,13 +46,36 @@ export type * from './types/ImageResponse';
|
|
|
26
46
|
export type * from './types/ImageResult';
|
|
27
47
|
export type * from './types/ImageUsage';
|
|
28
48
|
export type * from './types/InputAudioFormat';
|
|
49
|
+
export type * from './types/InputRecord';
|
|
29
50
|
export type * from './types/LanguageModelPromptMessage';
|
|
30
51
|
export type * from './types/MessageContent';
|
|
52
|
+
export type * from './types/Modality';
|
|
53
|
+
export type * from './types/ModelCapabilities';
|
|
54
|
+
export type * from './types/ModelCost';
|
|
31
55
|
export type * from './types/ModelId';
|
|
56
|
+
export type * from './types/ModelLimits';
|
|
32
57
|
export type * from './types/ModelMessage';
|
|
58
|
+
export type * from './types/ModelModalities';
|
|
33
59
|
export type * from './types/ModelPrompt';
|
|
60
|
+
export type * from './types/ModelSpec';
|
|
61
|
+
export type * from './types/ModelType';
|
|
62
|
+
export type * from './types/OutcomeRecord';
|
|
63
|
+
export type * from './types/OutcomeStatus';
|
|
64
|
+
export type * from './types/PrefixBreak';
|
|
65
|
+
export type * from './types/PromptTokensDetails';
|
|
66
|
+
export type * from './types/ProviderAuditSpec';
|
|
67
|
+
export type * from './types/ProviderFamily';
|
|
68
|
+
export type * from './types/ProviderRecord';
|
|
34
69
|
export type * from './types/ProviderTool';
|
|
70
|
+
export type * from './types/RawToolCall';
|
|
35
71
|
export type * from './types/ReasoningEffort';
|
|
72
|
+
export type * from './types/ReasoningMode';
|
|
73
|
+
export type * from './types/ReasoningPart';
|
|
74
|
+
export type * from './types/ReasoningSpec';
|
|
75
|
+
export type * from './types/ReasoningVisibility';
|
|
76
|
+
export type * from './types/Recording';
|
|
77
|
+
export type * from './types/RequestCacheHints';
|
|
78
|
+
export type * from './types/RequestInfo';
|
|
36
79
|
export type * from './types/RerankingCallOptions';
|
|
37
80
|
export type * from './types/RerankingDocuments';
|
|
38
81
|
export type * from './types/RerankingRank';
|
|
@@ -41,34 +84,61 @@ export type * from './types/RerankingResult';
|
|
|
41
84
|
export type * from './types/ResponseFormat';
|
|
42
85
|
export type * from './types/ResponseInfo';
|
|
43
86
|
export type * from './types/ResponseMetadata';
|
|
87
|
+
export type * from './types/ResponseRecord';
|
|
88
|
+
export type * from './types/RetryError';
|
|
89
|
+
export type * from './types/RetryErrorReason';
|
|
44
90
|
export type * from './types/Role';
|
|
91
|
+
export type * from './types/RuntimeModel';
|
|
45
92
|
export type * from './types/SearchCallOptions';
|
|
46
93
|
export type * from './types/SearchResponse';
|
|
47
94
|
export type * from './types/SearchResult';
|
|
48
95
|
export type * from './types/SearchResultItem';
|
|
96
|
+
export type * from './types/SessionCall';
|
|
97
|
+
export type * from './types/SessionChainView';
|
|
98
|
+
export type * from './types/SessionSource';
|
|
99
|
+
export type * from './types/SessionStepStat';
|
|
100
|
+
export type * from './types/SessionView';
|
|
49
101
|
export type * from './types/Size';
|
|
102
|
+
export type * from './types/SourcePart';
|
|
50
103
|
export type * from './types/SpeechCallOptions';
|
|
51
104
|
export type * from './types/SpeechRequest';
|
|
52
105
|
export type * from './types/SpeechResponse';
|
|
53
106
|
export type * from './types/SpeechResult';
|
|
54
107
|
export type * from './types/StreamPart';
|
|
108
|
+
export type * from './types/StreamTextResultAggregated';
|
|
55
109
|
export type * from './types/TimeoutConfiguration';
|
|
110
|
+
export type * from './types/TimingRecord';
|
|
56
111
|
export type * from './types/TokenUsage';
|
|
57
112
|
export type * from './types/Tool';
|
|
58
113
|
export type * from './types/ToolCall';
|
|
114
|
+
export type * from './types/ToolCallRepairReply';
|
|
59
115
|
export type * from './types/ToolChoice';
|
|
60
116
|
export type * from './types/ToolResult';
|
|
117
|
+
export type * from './types/TraceFilter';
|
|
118
|
+
export type * from './types/TraceRecord';
|
|
119
|
+
export type * from './types/TraceStats';
|
|
120
|
+
export type * from './types/TranscriptionCallOptions';
|
|
121
|
+
export type * from './types/TranscriptionRequest';
|
|
122
|
+
export type * from './types/TranscriptionResponse';
|
|
123
|
+
export type * from './types/TranscriptionResult';
|
|
124
|
+
export type * from './types/TranscriptionSegment';
|
|
125
|
+
export type * from './types/TranscriptionStreamPart';
|
|
61
126
|
export type * from './types/UploadFileCallOptions';
|
|
62
127
|
export type * from './types/UploadFileData';
|
|
63
128
|
export type * from './types/UploadFileResult';
|
|
64
129
|
export type * from './types/Usage';
|
|
130
|
+
export type * from './types/UsageSnapshot';
|
|
131
|
+
export type * from './types/Verdict';
|
|
132
|
+
export type * from './types/VerdictConfidence';
|
|
133
|
+
export type * from './types/VerdictKind';
|
|
65
134
|
export type * from './types/VideoCallOptions';
|
|
66
135
|
export type * from './types/VideoData';
|
|
67
136
|
export type * from './types/VideoFile';
|
|
68
137
|
export type * from './types/VideoFileData';
|
|
69
138
|
export type * from './types/VideoFrameImage';
|
|
70
139
|
export type * from './types/VideoFrameType';
|
|
140
|
+
export type * from './types/VideoPollOptions';
|
|
71
141
|
export type * from './types/VideoResponse';
|
|
72
142
|
export type * from './types/VideoResult';
|
|
73
143
|
export type * from './types/Warning';
|
|
74
|
-
export type * from './types/
|
|
144
|
+
export type * from './types/serde_json/JsonValue';
|
package/dist/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Re-export all ts-rs generated types
|
|
3
|
-
//
|
|
4
|
-
// Run
|
|
2
|
+
// Re-export all ts-rs generated types from bindings/node/src/types/.
|
|
3
|
+
// Generated by scripts/gen_ts_types.py — do not edit manually.
|
|
4
|
+
// Run scripts/gen_ts_types.py to regenerate after Rust type changes.
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|