@opencode/ai 0.0.0-dev-70 → 0.0.0-dev-80
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/README.md +14 -10
- package/dist/decision.d.ts +22 -6
- package/dist/decision.js +15 -4
- package/dist/effect.d.ts +1 -1
- package/dist/effect.js +1 -1
- package/dist/image-client.d.ts +0 -9
- package/dist/image-client.js +0 -1
- package/dist/image.d.ts +0 -135
- package/dist/image.js +0 -3
- package/dist/index.d.ts +0 -72
- package/dist/media.d.ts +0 -7
- package/dist/media.js +0 -6
- package/dist/protocols/cartesia-speech.d.ts +0 -18
- package/dist/protocols/deepgram-speech.d.ts +0 -18
- package/dist/protocols/elevenlabs-speech.d.ts +0 -18
- package/dist/protocols/fal-images.js +1 -9
- package/dist/protocols/google-images.js +6 -33
- package/dist/protocols/google-speech.d.ts +0 -18
- package/dist/protocols/google-speech.js +0 -1
- package/dist/protocols/google-transcription.d.ts +0 -18
- package/dist/protocols/google-transcription.js +0 -1
- package/dist/protocols/google-video.js +1 -6
- package/dist/protocols/meta-images.d.ts +1 -1
- package/dist/protocols/meta-images.js +3 -12
- package/dist/protocols/openai-decisions.js +25 -5
- package/dist/protocols/openai-images.d.ts +0 -18
- package/dist/protocols/openai-images.js +3 -7
- package/dist/protocols/openai-speech.d.ts +0 -18
- package/dist/protocols/openai-speech.js +3 -4
- package/dist/protocols/openai-transcription.d.ts +0 -18
- package/dist/protocols/openai-transcription.js +3 -4
- package/dist/protocols/stability-images.js +0 -3
- package/dist/protocols/system-one.d.ts +2 -0
- package/dist/protocols/system-one.js +6 -4
- package/dist/protocols/utils/gemini-generate-content.d.ts +0 -2
- package/dist/protocols/utils/gemini-generate-content.js +3 -14
- package/dist/protocols/utils/image-sizing.d.ts +1 -4
- package/dist/protocols/utils/image-sizing.js +2 -8
- package/dist/protocols/utils/speech-stream.d.ts +0 -1
- package/dist/protocols/utils/speech-stream.js +0 -1
- package/dist/protocols/xai-images.js +1 -6
- package/dist/protocols/xai-video.js +10 -7
- package/dist/protocols/zai-images.js +0 -9
- package/dist/schema/events.d.ts +7 -0
- package/dist/schema/events.js +4 -0
- package/dist/speech-client.d.ts +0 -9
- package/dist/speech-client.js +0 -1
- package/dist/speech.d.ts +0 -135
- package/dist/speech.js +0 -3
- package/dist/transcription-client.d.ts +0 -9
- package/dist/transcription.d.ts +0 -135
- package/dist/transcription.js +0 -1
- package/dist/video-client.d.ts +0 -9
- package/dist/video-client.js +0 -1
- package/dist/video.d.ts +0 -135
- package/dist/video.js +0 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -255,7 +255,10 @@ const [refund, department] = response.answers
|
|
|
255
255
|
```
|
|
256
256
|
|
|
257
257
|
`input` is a JSON object or an ordered list of `text`, `json` and `media` parts. Answers come back in question order.
|
|
258
|
-
A question the host declines is `{ name, type: "error", reason
|
|
258
|
+
A question the host declines is `{ name, type: "error", reason, message? }`, with `reason` such as `"refusal"`; the
|
|
259
|
+
other answers still come back.
|
|
260
|
+
`response.usage` has `inputTokens`, `outputTokens`, `totalTokens` and the host's reported `cost` when it sends one;
|
|
261
|
+
the host's raw usage stays in `providerMetadata`.
|
|
259
262
|
Media goes wherever the host reads it, and a kind the host has no place for fails the call. Host-specific fields go in
|
|
260
263
|
`providerOptions`, typed by the selected model (OpenAI `promptCacheKey` and `safetyIdentifier`, OpenRouter
|
|
261
264
|
`provider` routing, Baseten `max_len`).
|
|
@@ -628,7 +631,7 @@ const edit = Image.generate({
|
|
|
628
631
|
|
|
629
632
|
The default image format is WEBP; `outputFormat` also accepts PNG/JPEG and `responseFormat: "url"`
|
|
630
633
|
returns a signed URL. `aspect` lowers to Meta's `size`, which is only an aspect-ratio hint: Meta renders about 2.5
|
|
631
|
-
megapixels whatever you ask, so `resolution` is ignored
|
|
634
|
+
megapixels whatever you ask, so `resolution` is ignored. For conversational images, select
|
|
632
635
|
`meta.responses("muse-image-1.0")` with `tools: [Meta.imageGeneration({ reasoningStrength: "low" })]`.
|
|
633
636
|
Generated images are provider-executed tool results with file content. Retain `response.message` to
|
|
634
637
|
replay the signed image handle on the next request. Muse Image accepts only the `image_generation` tool.
|
|
@@ -668,16 +671,16 @@ const program = Effect.gen(function* () {
|
|
|
668
671
|
})
|
|
669
672
|
```
|
|
670
673
|
|
|
671
|
-
Common fields are portable in shape, not in support.
|
|
672
|
-
|
|
673
|
-
|
|
674
|
+
Common fields are portable in shape, not in support. Some routes approximate `aspect` or `resolution` with the nearest
|
|
675
|
+
size they offer; others fail with a typed `AIError` before any network call rather than dropping them, so check this
|
|
676
|
+
table before swapping only the `model`:
|
|
674
677
|
|
|
675
678
|
| Provider | `n` | `aspect` | `resolution` | `images` | Moved to `providerOptions` |
|
|
676
679
|
| --------------------- | --- | -------------------- | --------------------- | -------------------------------- | -------------------------------------------------- |
|
|
677
|
-
| OpenAI | ✓¹ | nearest size
|
|
680
|
+
| OpenAI | ✓¹ | nearest size | nearest size | ✓ | `size`, `outputFormat`, `mask` |
|
|
678
681
|
| Google (Gemini) | 1 | ✓ | ✓ (`imageSize`) | ✓ (no public URLs) | `seed` |
|
|
679
|
-
| xAI | ✓ | ✓ | `1k`/`2k
|
|
680
|
-
| Meta | ✓ | ✓ (hint) | ignored
|
|
682
|
+
| xAI | ✓ | ✓ | `1k`/`2k` | ✓ | none |
|
|
683
|
+
| Meta | ✓ | ✓ (hint) | ignored | ✓ | `size`, `outputFormat` |
|
|
681
684
|
| Z.ai | ✗ | width × height | width × height | ✗ | `size` |
|
|
682
685
|
| Alibaba | ✓ | width × height | width × height | ✓ | `size`, `seed` |
|
|
683
686
|
| Black Forest Labs | 1 | per model | width × height models | per model (1–8) | `width`, `height`, `seed`, `output_format`, `mask` |
|
|
@@ -963,8 +966,9 @@ failures (rate limits, provider 5xx, network errors) with backoff that honors `r
|
|
|
963
966
|
`poll.timeout`; submits and cancels never retry. Interrupting a wait (or aborting its `signal`) does not cancel the
|
|
964
967
|
provider job, which keeps running and billing: call `cancel()` to stop it. Failed,
|
|
965
968
|
cancelled, and expired generations fail typed with the provider's terminal document on `reason.body`; moderation
|
|
966
|
-
outcomes (Veo `raiMediaFilteredReasons`, xAI `respect_moderation`, Runway `SAFETY.*` codes)
|
|
967
|
-
|
|
969
|
+
outcomes (Veo `raiMediaFilteredReasons`, xAI `respect_moderation`, Runway `SAFETY.*` codes) fail with a
|
|
970
|
+
`ContentPolicy` reason when no video comes back; when one still does, Veo and xAI keep the raw outcome in
|
|
971
|
+
`providerMetadata`.
|
|
968
972
|
|
|
969
973
|
Provider notes:
|
|
970
974
|
|
package/dist/decision.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Effect, Schema } from "effect";
|
|
2
2
|
import { Service, type Execute } from "./decision-client.js";
|
|
3
3
|
import { Media } from "./media.js";
|
|
4
|
-
import { AIError, HttpOptions, ModelID, ProviderID, ProviderOptions,
|
|
4
|
+
import { AIError, HttpOptions, ModelID, ProviderID, ProviderOptions, type OpenString } from "./schema/index.js";
|
|
5
5
|
export declare const DecisionTextPart: Schema.Struct<{
|
|
6
6
|
readonly type: Schema.Literal<"text">;
|
|
7
7
|
readonly text: Schema.String;
|
|
@@ -171,11 +171,15 @@ export declare const ScoreAnswer: Schema.Struct<{
|
|
|
171
171
|
readonly confidence: Schema.Number;
|
|
172
172
|
}>;
|
|
173
173
|
export type ScoreAnswer = Schema.Schema.Type<typeof ScoreAnswer>;
|
|
174
|
-
/**
|
|
174
|
+
/** Why a question has no answer; hosts may report reasons beyond these. */
|
|
175
|
+
export type ErrorReason = OpenString<"refusal">;
|
|
176
|
+
export declare const ErrorReason: Schema.Codec<ErrorReason>;
|
|
177
|
+
/** This one question has no answer; the other answers still came back. */
|
|
175
178
|
export declare const ErrorAnswer: Schema.Struct<{
|
|
176
179
|
readonly name: Schema.String;
|
|
177
180
|
readonly type: Schema.Literal<"error">;
|
|
178
|
-
readonly reason: Schema.
|
|
181
|
+
readonly reason: Schema.Codec<ErrorReason, ErrorReason, never, never>;
|
|
182
|
+
readonly message: Schema.optional<Schema.String>;
|
|
179
183
|
}>;
|
|
180
184
|
export type ErrorAnswer = Schema.Schema.Type<typeof ErrorAnswer>;
|
|
181
185
|
export declare const DecisionAnswer: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
@@ -204,7 +208,8 @@ export declare const DecisionAnswer: Schema.toTaggedUnion<"type", readonly [Sche
|
|
|
204
208
|
}>, Schema.Struct<{
|
|
205
209
|
readonly name: Schema.String;
|
|
206
210
|
readonly type: Schema.Literal<"error">;
|
|
207
|
-
readonly reason: Schema.
|
|
211
|
+
readonly reason: Schema.Codec<ErrorReason, ErrorReason, never, never>;
|
|
212
|
+
readonly message: Schema.optional<Schema.String>;
|
|
208
213
|
}>]>;
|
|
209
214
|
export type DecisionAnswer = Schema.Schema.Type<typeof DecisionAnswer>;
|
|
210
215
|
type ChoiceValueOf<Question> = Question extends {
|
|
@@ -407,6 +412,16 @@ export type DecisionRequestInput<Model extends DecisionModel = DecisionModel, Qu
|
|
|
407
412
|
readonly providerOptions?: NoInfer<DecisionModelOptions<Model>>;
|
|
408
413
|
readonly http?: HttpOptions.Input;
|
|
409
414
|
};
|
|
415
|
+
declare const DecisionUsage_base: Schema.Class<DecisionUsage, Schema.Struct<{
|
|
416
|
+
readonly inputTokens: Schema.optional<Schema.Number>;
|
|
417
|
+
readonly outputTokens: Schema.optional<Schema.Number>;
|
|
418
|
+
readonly totalTokens: Schema.optional<Schema.Number>;
|
|
419
|
+
/** USD the host says it charged for this request. */
|
|
420
|
+
readonly cost: Schema.optional<Schema.Number>;
|
|
421
|
+
}>, {}>;
|
|
422
|
+
/** What decision hosts report; their raw usage stays in the response's `providerMetadata`. */
|
|
423
|
+
export declare class DecisionUsage extends DecisionUsage_base {
|
|
424
|
+
}
|
|
410
425
|
declare const DecisionResponse_base: Schema.Class<DecisionResponse, Schema.Struct<{
|
|
411
426
|
readonly answers: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
412
427
|
readonly name: Schema.String;
|
|
@@ -434,9 +449,10 @@ declare const DecisionResponse_base: Schema.Class<DecisionResponse, Schema.Struc
|
|
|
434
449
|
}>, Schema.Struct<{
|
|
435
450
|
readonly name: Schema.String;
|
|
436
451
|
readonly type: Schema.Literal<"error">;
|
|
437
|
-
readonly reason: Schema.
|
|
452
|
+
readonly reason: Schema.Codec<ErrorReason, ErrorReason, never, never>;
|
|
453
|
+
readonly message: Schema.optional<Schema.String>;
|
|
438
454
|
}>]>>;
|
|
439
|
-
readonly usage: Schema.optional<typeof
|
|
455
|
+
readonly usage: Schema.optional<typeof DecisionUsage>;
|
|
440
456
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
441
457
|
}>, {}>;
|
|
442
458
|
export declare class DecisionResponse extends DecisionResponse_base {
|
package/dist/decision.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Effect, Schema } from "effect";
|
|
|
2
2
|
import { DecisionClient, Service } from "./decision-client.js";
|
|
3
3
|
import { Media } from "./media.js";
|
|
4
4
|
import { tryRequest } from "./media-model.js";
|
|
5
|
-
import { AIError, HttpOptions, ModelID, ProviderID, ProviderMetadata, ProviderOptions,
|
|
5
|
+
import { AIError, HttpOptions, ModelID, ProviderID, ProviderMetadata, ProviderOptions, } from "./schema/index.js";
|
|
6
6
|
// ---------------------------------------------------------------------------
|
|
7
7
|
// Input
|
|
8
8
|
// ---------------------------------------------------------------------------
|
|
@@ -65,11 +65,13 @@ export const ScoreAnswer = Schema.Struct({
|
|
|
65
65
|
probabilities: Schema.Array(Schema.Struct({ value: Schema.Int, label: Schema.String, probability: Probability })),
|
|
66
66
|
confidence: Probability,
|
|
67
67
|
});
|
|
68
|
-
|
|
68
|
+
export const ErrorReason = Schema.Union([Schema.Literal("refusal"), Schema.String]);
|
|
69
|
+
/** This one question has no answer; the other answers still came back. */
|
|
69
70
|
export const ErrorAnswer = Schema.Struct({
|
|
70
71
|
name: Schema.String,
|
|
71
72
|
type: Schema.Literal("error"),
|
|
72
|
-
reason:
|
|
73
|
+
reason: ErrorReason,
|
|
74
|
+
message: Schema.optional(Schema.String),
|
|
73
75
|
});
|
|
74
76
|
export const DecisionAnswer = Schema.Union([PredicateAnswer, ChoiceAnswer, ScoreAnswer, ErrorAnswer]).pipe(Schema.toTaggedUnion("type"));
|
|
75
77
|
/** Host quirks a protocol adapts to, like `LanguageModelCompatibility` for language models. */
|
|
@@ -123,9 +125,18 @@ export class DecisionRequest extends Schema.Class("Decision.Request")({
|
|
|
123
125
|
http: Schema.optional(HttpOptions),
|
|
124
126
|
}) {
|
|
125
127
|
}
|
|
128
|
+
/** What decision hosts report; their raw usage stays in the response's `providerMetadata`. */
|
|
129
|
+
export class DecisionUsage extends Schema.Class("Decision.Usage")({
|
|
130
|
+
inputTokens: Schema.optional(Schema.Number),
|
|
131
|
+
outputTokens: Schema.optional(Schema.Number),
|
|
132
|
+
totalTokens: Schema.optional(Schema.Number),
|
|
133
|
+
/** USD the host says it charged for this request. */
|
|
134
|
+
cost: Schema.optional(Schema.Number),
|
|
135
|
+
}) {
|
|
136
|
+
}
|
|
126
137
|
export class DecisionResponse extends Schema.Class("Decision.Response")({
|
|
127
138
|
answers: Schema.Array(DecisionAnswer),
|
|
128
|
-
usage: Schema.optional(
|
|
139
|
+
usage: Schema.optional(DecisionUsage),
|
|
129
140
|
providerMetadata: Schema.optional(ProviderMetadata),
|
|
130
141
|
}) {
|
|
131
142
|
}
|
package/dist/effect.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export { TranscriptionEvent, TranscriptionModel, TranscriptionModelSchema, Trans
|
|
|
23
23
|
export type { TranscriptionModelOptions, TranscriptionOptions, TranscriptionRequestFor, TranscriptionRequestInput, TranscriptionRoute, } from "./transcription.js";
|
|
24
24
|
export { Transcription } from "./transcription.js";
|
|
25
25
|
export { DecisionClient } from "./decision-client.js";
|
|
26
|
-
export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionRequest, DecisionResponse, DecisionTextPart, ErrorAnswer, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
|
|
26
|
+
export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionRequest, DecisionResponse, DecisionTextPart, DecisionUsage, ErrorAnswer, ErrorReason, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
|
|
27
27
|
export type { AnswerFor, AnswersFor, DecisionInput, DecisionModelOptions, DecisionOptions, DecisionQuestions, DecisionRequestFor, DecisionRequestInput, DecisionResponseFor, DecisionModelRoute, } from "./decision.js";
|
|
28
28
|
export { Decision } from "./decision.js";
|
|
29
29
|
export { DecisionRoute } from "./route/decision.js";
|
package/dist/effect.js
CHANGED
|
@@ -17,7 +17,7 @@ export { TranscriptionClient } from "./transcription-client.js";
|
|
|
17
17
|
export { TranscriptionEvent, TranscriptionModel, TranscriptionModelSchema, TranscriptionRequest, TranscriptionResponse, TranscriptionSegment, TranscriptionTimestamps, TranscriptionWord, } from "./transcription.js";
|
|
18
18
|
export { Transcription } from "./transcription.js";
|
|
19
19
|
export { DecisionClient } from "./decision-client.js";
|
|
20
|
-
export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionRequest, DecisionResponse, DecisionTextPart, ErrorAnswer, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
|
|
20
|
+
export { ChoiceAnswer, ChoiceQuestion, ChoiceValue, DecisionAnswer, DecisionJsonPart, DecisionMediaPart, DecisionModel, DecisionModelCompatibility, DecisionModelSchema, DecisionPart, DecisionQuestion, DecisionRequest, DecisionResponse, DecisionTextPart, DecisionUsage, ErrorAnswer, ErrorReason, PredicateAnswer, PredicateQuestion, ScoreAnswer, ScoreQuestion, } from "./decision.js";
|
|
21
21
|
export { Decision } from "./decision.js";
|
|
22
22
|
export { DecisionRoute } from "./route/decision.js";
|
|
23
23
|
export { Media } from "./media.js";
|
package/dist/image-client.d.ts
CHANGED
|
@@ -41,15 +41,6 @@ export declare const ImageClient: {
|
|
|
41
41
|
readonly [x: string]: unknown;
|
|
42
42
|
} | undefined;
|
|
43
43
|
} | undefined;
|
|
44
|
-
readonly notices?: readonly {
|
|
45
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
46
|
-
readonly message: string;
|
|
47
|
-
readonly providerMetadata?: {
|
|
48
|
-
readonly [x: string]: {
|
|
49
|
-
readonly [x: string]: unknown;
|
|
50
|
-
};
|
|
51
|
-
} | undefined;
|
|
52
|
-
}[] | undefined;
|
|
53
44
|
readonly providerMetadata?: {
|
|
54
45
|
readonly [x: string]: {
|
|
55
46
|
readonly [x: string]: unknown;
|
package/dist/image-client.js
CHANGED
package/dist/image.d.ts
CHANGED
|
@@ -133,11 +133,6 @@ declare const ImageResponse_base: Schema.Class<ImageResponse, Schema.Struct<{
|
|
|
133
133
|
readonly type: Schema.Literal<"compute">;
|
|
134
134
|
readonly seconds: Schema.Number;
|
|
135
135
|
}>]>>;
|
|
136
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
137
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
138
|
-
readonly message: Schema.String;
|
|
139
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
140
|
-
}>>>;
|
|
141
136
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
142
137
|
}>, {}>;
|
|
143
138
|
export declare class ImageResponse extends ImageResponse_base {
|
|
@@ -235,11 +230,6 @@ export declare const ImageFinishEvent: Schema.Struct<{
|
|
|
235
230
|
readonly type: Schema.Literal<"compute">;
|
|
236
231
|
readonly seconds: Schema.Number;
|
|
237
232
|
}>]>>;
|
|
238
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
239
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
240
|
-
readonly message: Schema.String;
|
|
241
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
242
|
-
}>>>;
|
|
243
233
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
244
234
|
}>;
|
|
245
235
|
declare const imageEventTagged: Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
@@ -339,11 +329,6 @@ declare const imageEventTagged: Schema.toTaggedUnion<"type", readonly [Schema.St
|
|
|
339
329
|
readonly type: Schema.Literal<"compute">;
|
|
340
330
|
readonly seconds: Schema.Number;
|
|
341
331
|
}>]>>;
|
|
342
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
343
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
344
|
-
readonly message: Schema.String;
|
|
345
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
346
|
-
}>>>;
|
|
347
332
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
348
333
|
}>]>;
|
|
349
334
|
export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
@@ -443,11 +428,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
443
428
|
readonly type: Schema.Literal<"compute">;
|
|
444
429
|
readonly seconds: Schema.Number;
|
|
445
430
|
}>]>>;
|
|
446
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
447
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
448
|
-
readonly message: Schema.String;
|
|
449
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
450
|
-
}>>>;
|
|
451
431
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
452
432
|
}>]> & {
|
|
453
433
|
readonly discriminants: readonly ["generation-queued", "generation-progress", "image-partial", "image", "finish"];
|
|
@@ -473,11 +453,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
473
453
|
readonly type: Schema.Literal<"compute">;
|
|
474
454
|
readonly seconds: Schema.Number;
|
|
475
455
|
}>]>>;
|
|
476
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
477
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
478
|
-
readonly message: Schema.String;
|
|
479
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
480
|
-
}>>>;
|
|
481
456
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
482
457
|
}>;
|
|
483
458
|
"generation-progress": Schema.Struct<{
|
|
@@ -600,15 +575,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
600
575
|
readonly [x: string]: unknown;
|
|
601
576
|
} | undefined;
|
|
602
577
|
} | undefined;
|
|
603
|
-
readonly notices?: readonly {
|
|
604
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
605
|
-
readonly message: string;
|
|
606
|
-
readonly providerMetadata?: {
|
|
607
|
-
readonly [x: string]: {
|
|
608
|
-
readonly [x: string]: unknown;
|
|
609
|
-
};
|
|
610
|
-
} | undefined;
|
|
611
|
-
}[] | undefined;
|
|
612
578
|
readonly providerMetadata?: {
|
|
613
579
|
readonly [x: string]: {
|
|
614
580
|
readonly [x: string]: unknown;
|
|
@@ -661,15 +627,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
661
627
|
readonly [x: string]: unknown;
|
|
662
628
|
} | undefined;
|
|
663
629
|
} | undefined;
|
|
664
|
-
readonly notices?: readonly {
|
|
665
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
666
|
-
readonly message: string;
|
|
667
|
-
readonly providerMetadata?: {
|
|
668
|
-
readonly [x: string]: {
|
|
669
|
-
readonly [x: string]: unknown;
|
|
670
|
-
};
|
|
671
|
-
} | undefined;
|
|
672
|
-
}[] | undefined;
|
|
673
630
|
readonly providerMetadata?: {
|
|
674
631
|
readonly [x: string]: {
|
|
675
632
|
readonly [x: string]: unknown;
|
|
@@ -702,15 +659,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
702
659
|
readonly [x: string]: unknown;
|
|
703
660
|
} | undefined;
|
|
704
661
|
} | undefined;
|
|
705
|
-
readonly notices?: readonly {
|
|
706
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
707
|
-
readonly message: string;
|
|
708
|
-
readonly providerMetadata?: {
|
|
709
|
-
readonly [x: string]: {
|
|
710
|
-
readonly [x: string]: unknown;
|
|
711
|
-
};
|
|
712
|
-
} | undefined;
|
|
713
|
-
}[] | undefined;
|
|
714
662
|
readonly providerMetadata?: {
|
|
715
663
|
readonly [x: string]: {
|
|
716
664
|
readonly [x: string]: unknown;
|
|
@@ -836,11 +784,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
836
784
|
readonly type: Schema.Literal<"compute">;
|
|
837
785
|
readonly seconds: Schema.Number;
|
|
838
786
|
}>]>>;
|
|
839
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
840
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
841
|
-
readonly message: Schema.String;
|
|
842
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
843
|
-
}>>>;
|
|
844
787
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
845
788
|
}> as M["Type"]["type"]]: (value: M["Type"]) => any; }>(value: {
|
|
846
789
|
readonly type: "image-partial";
|
|
@@ -881,15 +824,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
881
824
|
readonly [x: string]: unknown;
|
|
882
825
|
} | undefined;
|
|
883
826
|
} | undefined;
|
|
884
|
-
readonly notices?: readonly {
|
|
885
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
886
|
-
readonly message: string;
|
|
887
|
-
readonly providerMetadata?: {
|
|
888
|
-
readonly [x: string]: {
|
|
889
|
-
readonly [x: string]: unknown;
|
|
890
|
-
};
|
|
891
|
-
} | undefined;
|
|
892
|
-
}[] | undefined;
|
|
893
827
|
readonly providerMetadata?: {
|
|
894
828
|
readonly [x: string]: {
|
|
895
829
|
readonly [x: string]: unknown;
|
|
@@ -993,11 +927,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
993
927
|
readonly type: Schema.Literal<"compute">;
|
|
994
928
|
readonly seconds: Schema.Number;
|
|
995
929
|
}>]>>;
|
|
996
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
997
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
998
|
-
readonly message: Schema.String;
|
|
999
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1000
|
-
}>>>;
|
|
1001
930
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1002
931
|
}> as M["Type"]["type"]]: (value: M["Type"]) => any; }>(cases: Cases): (value: {
|
|
1003
932
|
readonly type: "image-partial";
|
|
@@ -1038,15 +967,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1038
967
|
readonly [x: string]: unknown;
|
|
1039
968
|
} | undefined;
|
|
1040
969
|
} | undefined;
|
|
1041
|
-
readonly notices?: readonly {
|
|
1042
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1043
|
-
readonly message: string;
|
|
1044
|
-
readonly providerMetadata?: {
|
|
1045
|
-
readonly [x: string]: {
|
|
1046
|
-
readonly [x: string]: unknown;
|
|
1047
|
-
};
|
|
1048
|
-
} | undefined;
|
|
1049
|
-
}[] | undefined;
|
|
1050
970
|
readonly providerMetadata?: {
|
|
1051
971
|
readonly [x: string]: {
|
|
1052
972
|
readonly [x: string]: unknown;
|
|
@@ -1152,11 +1072,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1152
1072
|
readonly type: Schema.Literal<"compute">;
|
|
1153
1073
|
readonly seconds: Schema.Number;
|
|
1154
1074
|
}>]>>;
|
|
1155
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1156
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
1157
|
-
readonly message: Schema.String;
|
|
1158
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1159
|
-
}>>>;
|
|
1160
1075
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1161
1076
|
}> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "image" | "image-partial">]: never; }, OrElse extends (value: Exclude<{
|
|
1162
1077
|
readonly type: "image-partial";
|
|
@@ -1197,15 +1112,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1197
1112
|
readonly [x: string]: unknown;
|
|
1198
1113
|
} | undefined;
|
|
1199
1114
|
} | undefined;
|
|
1200
|
-
readonly notices?: readonly {
|
|
1201
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1202
|
-
readonly message: string;
|
|
1203
|
-
readonly providerMetadata?: {
|
|
1204
|
-
readonly [x: string]: {
|
|
1205
|
-
readonly [x: string]: unknown;
|
|
1206
|
-
};
|
|
1207
|
-
} | undefined;
|
|
1208
|
-
}[] | undefined;
|
|
1209
1115
|
readonly providerMetadata?: {
|
|
1210
1116
|
readonly [x: string]: {
|
|
1211
1117
|
readonly [x: string]: unknown;
|
|
@@ -1250,15 +1156,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1250
1156
|
readonly [x: string]: unknown;
|
|
1251
1157
|
} | undefined;
|
|
1252
1158
|
} | undefined;
|
|
1253
|
-
readonly notices?: readonly {
|
|
1254
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1255
|
-
readonly message: string;
|
|
1256
|
-
readonly providerMetadata?: {
|
|
1257
|
-
readonly [x: string]: {
|
|
1258
|
-
readonly [x: string]: unknown;
|
|
1259
|
-
};
|
|
1260
|
-
} | undefined;
|
|
1261
|
-
}[] | undefined;
|
|
1262
1159
|
readonly providerMetadata?: {
|
|
1263
1160
|
readonly [x: string]: {
|
|
1264
1161
|
readonly [x: string]: unknown;
|
|
@@ -1362,11 +1259,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1362
1259
|
readonly type: Schema.Literal<"compute">;
|
|
1363
1260
|
readonly seconds: Schema.Number;
|
|
1364
1261
|
}>]>>;
|
|
1365
|
-
readonly notices: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
1366
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
1367
|
-
readonly message: Schema.String;
|
|
1368
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1369
|
-
}>>>;
|
|
1370
1262
|
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
1371
1263
|
}> as M["Type"]["type"]]+?: (value: M["Type"]) => any; } & { [K in Exclude<keyof Cases, "finish" | "generation-progress" | "generation-queued" | "image" | "image-partial">]: never; }, OrElse extends (value: Exclude<{
|
|
1372
1264
|
readonly type: "image-partial";
|
|
@@ -1407,15 +1299,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1407
1299
|
readonly [x: string]: unknown;
|
|
1408
1300
|
} | undefined;
|
|
1409
1301
|
} | undefined;
|
|
1410
|
-
readonly notices?: readonly {
|
|
1411
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1412
|
-
readonly message: string;
|
|
1413
|
-
readonly providerMetadata?: {
|
|
1414
|
-
readonly [x: string]: {
|
|
1415
|
-
readonly [x: string]: unknown;
|
|
1416
|
-
};
|
|
1417
|
-
} | undefined;
|
|
1418
|
-
}[] | undefined;
|
|
1419
1302
|
readonly providerMetadata?: {
|
|
1420
1303
|
readonly [x: string]: {
|
|
1421
1304
|
readonly [x: string]: unknown;
|
|
@@ -1460,15 +1343,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1460
1343
|
readonly [x: string]: unknown;
|
|
1461
1344
|
} | undefined;
|
|
1462
1345
|
} | undefined;
|
|
1463
|
-
readonly notices?: readonly {
|
|
1464
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1465
|
-
readonly message: string;
|
|
1466
|
-
readonly providerMetadata?: {
|
|
1467
|
-
readonly [x: string]: {
|
|
1468
|
-
readonly [x: string]: unknown;
|
|
1469
|
-
};
|
|
1470
|
-
} | undefined;
|
|
1471
|
-
}[] | undefined;
|
|
1472
1346
|
readonly providerMetadata?: {
|
|
1473
1347
|
readonly [x: string]: {
|
|
1474
1348
|
readonly [x: string]: unknown;
|
|
@@ -1521,15 +1395,6 @@ export declare const ImageEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
1521
1395
|
readonly [x: string]: unknown;
|
|
1522
1396
|
} | undefined;
|
|
1523
1397
|
} | undefined;
|
|
1524
|
-
readonly notices?: readonly {
|
|
1525
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1526
|
-
readonly message: string;
|
|
1527
|
-
readonly providerMetadata?: {
|
|
1528
|
-
readonly [x: string]: {
|
|
1529
|
-
readonly [x: string]: unknown;
|
|
1530
|
-
};
|
|
1531
|
-
} | undefined;
|
|
1532
|
-
}[] | undefined;
|
|
1533
1398
|
readonly providerMetadata?: {
|
|
1534
1399
|
readonly [x: string]: {
|
|
1535
1400
|
readonly [x: string]: unknown;
|
package/dist/image.js
CHANGED
|
@@ -38,7 +38,6 @@ export class ImageRequest extends Schema.Class("Image.Request")({
|
|
|
38
38
|
export class ImageResponse extends Schema.Class("Image.Response")({
|
|
39
39
|
images: Schema.Array(Media.AssetSchema),
|
|
40
40
|
usage: Schema.optional(MediaUsage),
|
|
41
|
-
notices: Schema.optional(Schema.Array(Media.Notice)),
|
|
42
41
|
providerMetadata: Schema.optional(ProviderMetadata),
|
|
43
42
|
}) {
|
|
44
43
|
get image() {
|
|
@@ -59,7 +58,6 @@ export const ImageOutputEvent = Schema.Struct({
|
|
|
59
58
|
export const ImageFinishEvent = Schema.Struct({
|
|
60
59
|
type: Schema.tag("finish"),
|
|
61
60
|
usage: Schema.optional(MediaUsage),
|
|
62
|
-
notices: Schema.optional(Schema.Array(Media.Notice)),
|
|
63
61
|
providerMetadata: Schema.optional(ProviderMetadata),
|
|
64
62
|
}).annotate({ identifier: "Image.Event.Finish" });
|
|
65
63
|
const imageEventTagged = Schema.Union([
|
|
@@ -86,7 +84,6 @@ const collectResponse = (events) => {
|
|
|
86
84
|
return Effect.succeed(new ImageResponse({
|
|
87
85
|
images: events.filter(ImageEvent.is.image).map((event) => event.image),
|
|
88
86
|
usage: finish.usage,
|
|
89
|
-
notices: finish.notices,
|
|
90
87
|
providerMetadata: finish.providerMetadata,
|
|
91
88
|
}));
|
|
92
89
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -541,15 +541,6 @@ export declare const make: (options?: Options) => {
|
|
|
541
541
|
readonly [x: string]: unknown;
|
|
542
542
|
} | undefined;
|
|
543
543
|
} | undefined;
|
|
544
|
-
readonly notices?: readonly {
|
|
545
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
546
|
-
readonly message: string;
|
|
547
|
-
readonly providerMetadata?: {
|
|
548
|
-
readonly [x: string]: {
|
|
549
|
-
readonly [x: string]: unknown;
|
|
550
|
-
};
|
|
551
|
-
} | undefined;
|
|
552
|
-
}[] | undefined;
|
|
553
544
|
readonly providerMetadata?: {
|
|
554
545
|
readonly [x: string]: {
|
|
555
546
|
readonly [x: string]: unknown;
|
|
@@ -599,15 +590,6 @@ export declare const make: (options?: Options) => {
|
|
|
599
590
|
readonly [x: string]: unknown;
|
|
600
591
|
} | undefined;
|
|
601
592
|
} | undefined;
|
|
602
|
-
readonly notices?: readonly {
|
|
603
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
604
|
-
readonly message: string;
|
|
605
|
-
readonly providerMetadata?: {
|
|
606
|
-
readonly [x: string]: {
|
|
607
|
-
readonly [x: string]: unknown;
|
|
608
|
-
};
|
|
609
|
-
} | undefined;
|
|
610
|
-
}[] | undefined;
|
|
611
593
|
readonly providerMetadata?: {
|
|
612
594
|
readonly [x: string]: {
|
|
613
595
|
readonly [x: string]: unknown;
|
|
@@ -660,15 +642,6 @@ export declare const make: (options?: Options) => {
|
|
|
660
642
|
readonly [x: string]: unknown;
|
|
661
643
|
} | undefined;
|
|
662
644
|
} | undefined;
|
|
663
|
-
readonly notices?: readonly {
|
|
664
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
665
|
-
readonly message: string;
|
|
666
|
-
readonly providerMetadata?: {
|
|
667
|
-
readonly [x: string]: {
|
|
668
|
-
readonly [x: string]: unknown;
|
|
669
|
-
};
|
|
670
|
-
} | undefined;
|
|
671
|
-
}[] | undefined;
|
|
672
645
|
readonly providerMetadata?: {
|
|
673
646
|
readonly [x: string]: {
|
|
674
647
|
readonly [x: string]: unknown;
|
|
@@ -736,15 +709,6 @@ export declare const make: (options?: Options) => {
|
|
|
736
709
|
readonly [x: string]: unknown;
|
|
737
710
|
} | undefined;
|
|
738
711
|
} | undefined;
|
|
739
|
-
readonly notices?: readonly {
|
|
740
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
741
|
-
readonly message: string;
|
|
742
|
-
readonly providerMetadata?: {
|
|
743
|
-
readonly [x: string]: {
|
|
744
|
-
readonly [x: string]: unknown;
|
|
745
|
-
};
|
|
746
|
-
} | undefined;
|
|
747
|
-
}[] | undefined;
|
|
748
712
|
readonly providerMetadata?: {
|
|
749
713
|
readonly [x: string]: {
|
|
750
714
|
readonly [x: string]: unknown;
|
|
@@ -1275,15 +1239,6 @@ export declare const ai: {
|
|
|
1275
1239
|
readonly [x: string]: unknown;
|
|
1276
1240
|
} | undefined;
|
|
1277
1241
|
} | undefined;
|
|
1278
|
-
readonly notices?: readonly {
|
|
1279
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1280
|
-
readonly message: string;
|
|
1281
|
-
readonly providerMetadata?: {
|
|
1282
|
-
readonly [x: string]: {
|
|
1283
|
-
readonly [x: string]: unknown;
|
|
1284
|
-
};
|
|
1285
|
-
} | undefined;
|
|
1286
|
-
}[] | undefined;
|
|
1287
1242
|
readonly providerMetadata?: {
|
|
1288
1243
|
readonly [x: string]: {
|
|
1289
1244
|
readonly [x: string]: unknown;
|
|
@@ -1333,15 +1288,6 @@ export declare const ai: {
|
|
|
1333
1288
|
readonly [x: string]: unknown;
|
|
1334
1289
|
} | undefined;
|
|
1335
1290
|
} | undefined;
|
|
1336
|
-
readonly notices?: readonly {
|
|
1337
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1338
|
-
readonly message: string;
|
|
1339
|
-
readonly providerMetadata?: {
|
|
1340
|
-
readonly [x: string]: {
|
|
1341
|
-
readonly [x: string]: unknown;
|
|
1342
|
-
};
|
|
1343
|
-
} | undefined;
|
|
1344
|
-
}[] | undefined;
|
|
1345
1291
|
readonly providerMetadata?: {
|
|
1346
1292
|
readonly [x: string]: {
|
|
1347
1293
|
readonly [x: string]: unknown;
|
|
@@ -1394,15 +1340,6 @@ export declare const ai: {
|
|
|
1394
1340
|
readonly [x: string]: unknown;
|
|
1395
1341
|
} | undefined;
|
|
1396
1342
|
} | undefined;
|
|
1397
|
-
readonly notices?: readonly {
|
|
1398
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1399
|
-
readonly message: string;
|
|
1400
|
-
readonly providerMetadata?: {
|
|
1401
|
-
readonly [x: string]: {
|
|
1402
|
-
readonly [x: string]: unknown;
|
|
1403
|
-
};
|
|
1404
|
-
} | undefined;
|
|
1405
|
-
}[] | undefined;
|
|
1406
1343
|
readonly providerMetadata?: {
|
|
1407
1344
|
readonly [x: string]: {
|
|
1408
1345
|
readonly [x: string]: unknown;
|
|
@@ -1470,15 +1407,6 @@ export declare const ai: {
|
|
|
1470
1407
|
readonly [x: string]: unknown;
|
|
1471
1408
|
} | undefined;
|
|
1472
1409
|
} | undefined;
|
|
1473
|
-
readonly notices?: readonly {
|
|
1474
|
-
readonly type: "filtered" | "moderated" | "other";
|
|
1475
|
-
readonly message: string;
|
|
1476
|
-
readonly providerMetadata?: {
|
|
1477
|
-
readonly [x: string]: {
|
|
1478
|
-
readonly [x: string]: unknown;
|
|
1479
|
-
};
|
|
1480
|
-
} | undefined;
|
|
1481
|
-
}[] | undefined;
|
|
1482
1410
|
readonly providerMetadata?: {
|
|
1483
1411
|
readonly [x: string]: {
|
|
1484
1412
|
readonly [x: string]: unknown;
|
package/dist/media.d.ts
CHANGED
|
@@ -42,13 +42,6 @@ export declare const Info: Schema.Struct<{
|
|
|
42
42
|
readonly format: Schema.optional<Schema.String>;
|
|
43
43
|
}>;
|
|
44
44
|
export type Info = Schema.Schema.Type<typeof Info>;
|
|
45
|
-
/** A provider-side partial result such as stripped audio or a moderated sample; never a silent drop. */
|
|
46
|
-
export declare const Notice: Schema.Struct<{
|
|
47
|
-
readonly type: Schema.Literals<readonly ["moderated", "filtered", "other"]>;
|
|
48
|
-
readonly message: Schema.String;
|
|
49
|
-
readonly providerMetadata: Schema.optional<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>;
|
|
50
|
-
}>;
|
|
51
|
-
export type Notice = Schema.Schema.Type<typeof Notice>;
|
|
52
45
|
/** Synchronous view of an inline payload; `undefined` for `url` and `ref` sources, which carry no local bytes. */
|
|
53
46
|
export interface Inline {
|
|
54
47
|
readonly mime: string;
|