@ai-sdk/quiverai 2.0.44 → 2.0.45

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @ai-sdk/quiverai
2
2
 
3
+ ## 2.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - 9528712: feat(quiverai): add SVG editing with source validation, reference images, and edit settings
8
+ - Updated dependencies [2973485]
9
+ - Updated dependencies [a4db5ea]
10
+ - Updated dependencies [2937ea2]
11
+ - @ai-sdk/provider-utils@5.0.45
12
+
3
13
  ## 2.0.44
4
14
 
5
15
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -53,9 +53,15 @@ declare const quiverai: QuiverAIProvider;
53
53
  * @see https://quiver.ai/
54
54
  */
55
55
  declare const quiveraiImageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
56
- operation?: "generate" | "vectorize" | "animate" | undefined;
56
+ operation?: "generate" | "vectorize" | "animate" | "edit" | undefined;
57
57
  instructions?: string | undefined;
58
58
  reasoningEffort?: "low" | "medium" | "high" | "xhigh" | undefined;
59
+ referenceImages?: ({
60
+ url: string;
61
+ } | {
62
+ base64: string;
63
+ })[] | undefined;
64
+ maxReviewSteps?: number | undefined;
59
65
  attributes?: {
60
66
  viewBox?: {
61
67
  minX: number;
@@ -68,11 +74,28 @@ declare const quiveraiImageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema
68
74
  topP?: number | undefined;
69
75
  presencePenalty?: number | null | undefined;
70
76
  maxOutputTokens?: number | undefined;
77
+ orchestratorMaxOutputTokens?: number | undefined;
78
+ shallowMaxOutputTokens?: number | undefined;
71
79
  autoCrop?: boolean | undefined;
72
80
  targetSize?: number | undefined;
73
81
  }>;
74
82
  type QuiverAIImageModelOptions = InferSchema<typeof quiveraiImageModelOptionsSchema>;
75
83
 
84
+ type QuiverAIImageReference = {
85
+ url: string;
86
+ } | {
87
+ /**
88
+ * Base64-encoded image data without a data URL prefix.
89
+ */
90
+ base64: string;
91
+ };
92
+ type QuiverAIImageReferenceInput = string | URL | Uint8Array | ArrayBuffer;
93
+ /**
94
+ * Converts URL, binary, data URL, or base64 image input into the JSON-safe
95
+ * reference shape accepted by QuiverAI provider options.
96
+ */
97
+ declare function prepareQuiverAIImageReference(input: QuiverAIImageReferenceInput): QuiverAIImageReference;
98
+
76
99
  declare const VERSION: string;
77
100
 
78
- export { type QuiverAIImageModelId, type QuiverAIImageModelOptions, type QuiverAIProvider, type QuiverAIProviderSettings, VERSION, createQuiverAI, quiverai };
101
+ export { type QuiverAIImageModelId, type QuiverAIImageModelOptions, type QuiverAIImageReference, type QuiverAIImageReferenceInput, type QuiverAIProvider, type QuiverAIProviderSettings, VERSION, createQuiverAI, prepareQuiverAIImageReference, quiverai };