@vxil/sdk 0.29.0 → 0.30.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/index.d.ts CHANGED
@@ -1400,8 +1400,9 @@ export type AiThinkingLevel = 'minimal' | 'low' | 'medium' | 'high';
1400
1400
  /** Gemini media resolution for `ai.generate` / `stream` / `generateAsync`
1401
1401
  * (`media_resolution`): the token budget Gemini spends per image or PDF page.
1402
1402
  * A lower level is faster and bills fewer input tokens. Sent to Gemini only —
1403
- * every other provider ignores it; omitted →
1404
- * `features.ai.defaults.mediaResolution` → the model's own default. */
1403
+ * every other provider ignores it; omitted → the template's own level (set
1404
+ * with `ai.templates.put`) → `features.ai.defaults.mediaResolution` → the
1405
+ * model's own default. */
1405
1406
  export type AiMediaResolution = 'low' | 'medium' | 'high';
1406
1407
  /** A prior conversation turn for the tool-calling round-trip: assistant turns
1407
1408
  * carry the tool_calls they made; `role:'tool'` turns carry one call's result
@@ -6789,26 +6790,34 @@ export declare class Vxil<S extends VxilSchemaShape = VxilSchemaShape> {
6789
6790
  * `{{var}}` placeholders are filled from `generate`'s `input`.
6790
6791
  * `schema` (a JSON Schema) is now ENFORCED at generate time on sync/job
6791
6792
  * requests — the output is validated (with one repair pass) against it;
6792
- * a per-request `response_schema` overrides it. Ignored on streams. */
6793
+ * a per-request `response_schema` overrides it. Ignored on streams.
6794
+ * `media_resolution` (Gemini only) is this template's media resolution:
6795
+ * a request's `media_resolution` wins, else this, else
6796
+ * `features.ai.defaults.mediaResolution`. */
6793
6797
  put: (input: {
6794
6798
  template: string;
6795
6799
  user: string;
6796
6800
  system?: string;
6797
6801
  schema?: Record<string, unknown>;
6802
+ media_resolution?: AiMediaResolution;
6798
6803
  }) => Promise<{
6799
6804
  template: string;
6800
6805
  version: number;
6806
+ content_sha256?: string;
6807
+ media_resolution?: AiMediaResolution;
6801
6808
  }>;
6802
6809
  /** List stored templates (each name + its latest version). `content_sha256`
6803
6810
  * is the canonical hash of the latest version's {system, user, schema},
6804
6811
  * stored when the version was written — what `vxil push` compares a
6805
6812
  * declared `ai.templates[]` entry against; absent on a version stored
6806
- * before 2026-09-23 (the next push re-puts that template once). */
6813
+ * before 2026-09-23 (the next push re-puts that template once).
6814
+ * `media_resolution` is the latest version's level, when it has one. */
6807
6815
  list: () => Promise<Array<{
6808
6816
  name: string;
6809
6817
  latest_version: number;
6810
6818
  created_at: string;
6811
6819
  content_sha256?: string;
6820
+ media_resolution?: AiMediaResolution;
6812
6821
  }>>;
6813
6822
  /** Retire a stored template (soft): every live version of the name leaves
6814
6823
  * the list and can no longer be rendered (by name or by version → 404
package/dist/index.js CHANGED
@@ -2546,13 +2546,17 @@ export class Vxil {
2546
2546
  * `{{var}}` placeholders are filled from `generate`'s `input`.
2547
2547
  * `schema` (a JSON Schema) is now ENFORCED at generate time on sync/job
2548
2548
  * requests — the output is validated (with one repair pass) against it;
2549
- * a per-request `response_schema` overrides it. Ignored on streams. */
2549
+ * a per-request `response_schema` overrides it. Ignored on streams.
2550
+ * `media_resolution` (Gemini only) is this template's media resolution:
2551
+ * a request's `media_resolution` wins, else this, else
2552
+ * `features.ai.defaults.mediaResolution`. */
2550
2553
  put: async (input) => (await this.call('POST', '/v1/ai/templates', input)).data,
2551
2554
  /** List stored templates (each name + its latest version). `content_sha256`
2552
2555
  * is the canonical hash of the latest version's {system, user, schema},
2553
2556
  * stored when the version was written — what `vxil push` compares a
2554
2557
  * declared `ai.templates[]` entry against; absent on a version stored
2555
- * before 2026-09-23 (the next push re-puts that template once). */
2558
+ * before 2026-09-23 (the next push re-puts that template once).
2559
+ * `media_resolution` is the latest version's level, when it has one. */
2556
2560
  list: async () => (await this.call('GET', '/v1/ai/templates')).data.templates,
2557
2561
  /** Retire a stored template (soft): every live version of the name leaves
2558
2562
  * the list and can no longer be rendered (by name or by version → 404
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vxil/sdk",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Typed client for the Vxil REST API (notifications, auth, jobs, files, cms, comments, webhooks, realtime, orgs, rate-limits).",