@usenaive-sdk/managed-agents 0.12.0 → 0.12.2

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
@@ -413,7 +413,7 @@ declare const ToolsetSchema: z.ZodObject<{
413
413
  }>;
414
414
  }, z.core.$strip>;
415
415
  configs: z.ZodRecord<z.ZodString, z.ZodObject<{
416
- enabled: z.ZodBoolean;
416
+ enabled: z.ZodDefault<z.ZodBoolean>;
417
417
  permission: z.ZodEnum<{
418
418
  allow: "allow";
419
419
  ask: "ask";
@@ -423,6 +423,8 @@ declare const ToolsetSchema: z.ZodObject<{
423
423
  }, z.core.$strip>>;
424
424
  }, z.core.$strip>;
425
425
  type Toolset = z.infer<typeof ToolsetSchema>;
426
+ /** A toolset as a caller may write it: a config's `enabled` may be left out (ADR-1911). */
427
+ type ToolsetInput = z.input<typeof ToolsetSchema>;
426
428
  /**
427
429
  * `handoffs` on the wire (§28.12): who this agent may `send_to_agent`. `true` — any agent of
428
430
  * the organization; `false` — nobody, and none of the agent tools are offered; `"team"` — the agents
@@ -449,7 +451,7 @@ declare const AgentSchema: z.ZodObject<{
449
451
  }>;
450
452
  }, z.core.$strip>;
451
453
  configs: z.ZodRecord<z.ZodString, z.ZodObject<{
452
- enabled: z.ZodBoolean;
454
+ enabled: z.ZodDefault<z.ZodBoolean>;
453
455
  permission: z.ZodEnum<{
454
456
  allow: "allow";
455
457
  ask: "ask";
@@ -553,6 +555,10 @@ declare const EventSchema: z.ZodObject<{
553
555
  "span.harness_build.end": "span.harness_build.end";
554
556
  "span.box_resume.start": "span.box_resume.start";
555
557
  "span.box_resume.end": "span.box_resume.end";
558
+ "span.tools_resolve.start": "span.tools_resolve.start";
559
+ "span.tools_resolve.end": "span.tools_resolve.end";
560
+ "span.model_gate.start": "span.model_gate.start";
561
+ "span.model_gate.end": "span.model_gate.end";
556
562
  "thread.created": "thread.created";
557
563
  "thread.running": "thread.running";
558
564
  "thread.idle": "thread.idle";
@@ -1637,8 +1643,8 @@ declare const ImageGenerationSchema: z.ZodObject<{
1637
1643
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
1638
1644
  kind: z.ZodDefault<z.ZodEnum<{
1639
1645
  model: "model";
1640
- image: "image";
1641
1646
  video: "video";
1647
+ image: "image";
1642
1648
  other: "other";
1643
1649
  audio: "audio";
1644
1650
  document: "document";
@@ -1721,6 +1727,7 @@ declare const MediaSkillBuildSchema: z.ZodObject<{
1721
1727
  in_review: "in_review";
1722
1728
  changes_requested: "changes_requested";
1723
1729
  setup: "setup";
1730
+ finalizing: "finalizing";
1724
1731
  }>;
1725
1732
  urls: z.ZodArray<z.ZodString>;
1726
1733
  rounds: z.ZodArray<z.ZodObject<{
@@ -1755,6 +1762,8 @@ declare const MediaSkillBuildSchema: z.ZodObject<{
1755
1762
  error: z.ZodNullable<z.ZodString>;
1756
1763
  created_at: z.ZodISODateTime;
1757
1764
  finished_at: z.ZodNullable<z.ZodISODateTime>;
1765
+ edit_job_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1766
+ sample_file_id: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1758
1767
  review: z.ZodDefault<z.ZodNullable<z.ZodObject<{
1759
1768
  state: z.ZodEnum<{
1760
1769
  failed: "failed";
@@ -1893,6 +1902,7 @@ declare const EditRequestSchema: z.ZodObject<{
1893
1902
  scene: "scene";
1894
1903
  outfit_or_object: "outfit_or_object";
1895
1904
  person_swap: "person_swap";
1905
+ recast: "recast";
1896
1906
  }>>;
1897
1907
  }, z.core.$strip>;
1898
1908
  /** What `POST /v1/media/edits` and `GET /v1/media/edits/:id` answer. No checkpoint, route or vendor. */
@@ -1912,6 +1922,7 @@ declare const EditJobSchema: z.ZodObject<{
1912
1922
  scene: "scene";
1913
1923
  outfit_or_object: "outfit_or_object";
1914
1924
  person_swap: "person_swap";
1925
+ recast: "recast";
1915
1926
  }>>;
1916
1927
  result: z.ZodNullable<z.ZodObject<{
1917
1928
  file_id: z.ZodString;
@@ -2011,8 +2022,8 @@ type Character = z.infer<typeof CharacterSchema>;
2011
2022
 
2012
2023
  declare const FileKindSchema: z.ZodEnum<{
2013
2024
  model: "model";
2014
- image: "image";
2015
2025
  video: "video";
2026
+ image: "image";
2016
2027
  other: "other";
2017
2028
  audio: "audio";
2018
2029
  document: "document";
@@ -2833,7 +2844,10 @@ interface SpeechToSpeechCreate {
2833
2844
  format?: "mp3" | "wav" | "ogg" | undefined;
2834
2845
  }
2835
2846
 
2836
- type AgentConfig = Omit<Agent, "id" | "object" | "harness" | "current_version" | "created_at">;
2847
+ /** `tools` is the input shape, so a tool config may leave `enabled` out (it defaults to true, ADR-1911). */
2848
+ type AgentConfig = Omit<Agent, "id" | "object" | "harness" | "current_version" | "created_at" | "tools"> & {
2849
+ tools: ToolsetInput;
2850
+ };
2837
2851
  /**
2838
2852
  * `harness` is the agent loop (§19). `pi` is the default; `harnesses.list()` is the live set.
2839
2853
  * `budget` is required, as the route requires it (ADR-1864).
@@ -2877,8 +2891,8 @@ declare const MediaModelSchema: z.ZodObject<{
2877
2891
  id: z.ZodString;
2878
2892
  name: z.ZodString;
2879
2893
  kind: z.ZodEnum<{
2880
- image: "image";
2881
2894
  video: "video";
2895
+ image: "image";
2882
2896
  mesh: "mesh";
2883
2897
  stt: "stt";
2884
2898
  tts: "tts";
@@ -3856,12 +3870,14 @@ interface ToolSettings {
3856
3870
  */
3857
3871
  declare function withTool(tools: Toolset, name: string, settings: ToolSettings): Toolset;
3858
3872
 
3873
+ /** The API origin. Every route already starts with `/v1`, so a baseUrl ending in `/v1` is trimmed back to it. */
3874
+ declare const DEFAULT_BASE_URL = "https://api.vetta.sh";
3859
3875
  /**
3860
- * Only `baseUrl` and `apiKey` are required. Left out, `fetch` is the global one, looked up per call
3876
+ * Only `apiKey` is required; `baseUrl` defaults to `https://api.vetta.sh`. Left out, `fetch` is the global one, looked up per call
3861
3877
  * (so a stub or polyfill installed after the client is made still applies), and `idempotencyKey` is
3862
3878
  * a random UUID per write. Tests and the CLI still inject both.
3863
3879
  */
3864
- declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig, "baseUrl" | "apiKey">): {
3880
+ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig, "apiKey">): {
3865
3881
  config: ClientConfig;
3866
3882
  agents: {
3867
3883
  create: (body: AgentCreate) => Promise<{
@@ -6177,7 +6193,9 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
6177
6193
  description: string | null;
6178
6194
  max_timeout_seconds: number | null;
6179
6195
  }>;
6180
- pay: (identity: string, body: WalletPayRequest, select?: WalletSelect) => Promise<{
6196
+ pay: (identity: string, body: WalletPayRequest, select?: WalletSelect, opts?: {
6197
+ idempotencyKey?: string;
6198
+ }) => Promise<{
6181
6199
  object: "wallet_payment";
6182
6200
  paid: boolean;
6183
6201
  transaction_id: string | null;
@@ -6804,7 +6822,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
6804
6822
  id: string;
6805
6823
  object: "social_upload";
6806
6824
  identity_id: string;
6807
- type: "image" | "video" | "document";
6825
+ type: "video" | "image" | "document";
6808
6826
  url: string | null;
6809
6827
  }>;
6810
6828
  };
@@ -7214,7 +7232,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
7214
7232
  props: {
7215
7233
  files: {
7216
7234
  id: string;
7217
- kind: "image" | "video";
7235
+ kind: "video" | "image";
7218
7236
  }[];
7219
7237
  label?: string | undefined;
7220
7238
  };
@@ -8390,7 +8408,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8390
8408
  title: string | null;
8391
8409
  description: string | null;
8392
8410
  tags: string[];
8393
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
8411
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
8394
8412
  source: {
8395
8413
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
8396
8414
  job_id: string | null;
@@ -8541,7 +8559,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8541
8559
  title: string | null;
8542
8560
  description: string | null;
8543
8561
  tags: string[];
8544
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
8562
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
8545
8563
  source: {
8546
8564
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
8547
8565
  job_id: string | null;
@@ -8579,7 +8597,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8579
8597
  title: string | null;
8580
8598
  description: string | null;
8581
8599
  tags: string[];
8582
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
8600
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
8583
8601
  source: {
8584
8602
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
8585
8603
  job_id: string | null;
@@ -8618,7 +8636,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8618
8636
  video: string;
8619
8637
  prompt: string;
8620
8638
  references: string[];
8621
- mode: "scene" | "outfit_or_object" | "person_swap" | null;
8639
+ mode: "scene" | "outfit_or_object" | "person_swap" | "recast" | null;
8622
8640
  result: {
8623
8641
  file_id: string;
8624
8642
  } | null;
@@ -8637,7 +8655,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8637
8655
  video: string;
8638
8656
  prompt: string;
8639
8657
  references: string[];
8640
- mode: "scene" | "outfit_or_object" | "person_swap" | null;
8658
+ mode: "scene" | "outfit_or_object" | "person_swap" | "recast" | null;
8641
8659
  result: {
8642
8660
  file_id: string;
8643
8661
  } | null;
@@ -8769,7 +8787,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8769
8787
  id: string;
8770
8788
  object: "media_skill_build";
8771
8789
  name: string;
8772
- state: "ready" | "live" | "building" | "in_review" | "changes_requested" | "setup";
8790
+ state: "ready" | "live" | "building" | "in_review" | "changes_requested" | "setup" | "finalizing";
8773
8791
  urls: string[];
8774
8792
  rounds: {
8775
8793
  object: "creator_template_round";
@@ -8797,6 +8815,8 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8797
8815
  error: string | null;
8798
8816
  created_at: string;
8799
8817
  finished_at: string | null;
8818
+ edit_job_id: string | null;
8819
+ sample_file_id: string | null;
8800
8820
  review: {
8801
8821
  state: "failed" | "queued" | "judging" | "decided";
8802
8822
  decision: "rejected" | "needs_you" | "accepted" | null;
@@ -8867,7 +8887,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8867
8887
  id: string;
8868
8888
  object: "media_skill_build";
8869
8889
  name: string;
8870
- state: "ready" | "live" | "building" | "in_review" | "changes_requested" | "setup";
8890
+ state: "ready" | "live" | "building" | "in_review" | "changes_requested" | "setup" | "finalizing";
8871
8891
  urls: string[];
8872
8892
  rounds: {
8873
8893
  object: "creator_template_round";
@@ -8895,6 +8915,8 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8895
8915
  error: string | null;
8896
8916
  created_at: string;
8897
8917
  finished_at: string | null;
8918
+ edit_job_id: string | null;
8919
+ sample_file_id: string | null;
8898
8920
  review: {
8899
8921
  state: "failed" | "queued" | "judging" | "decided";
8900
8922
  decision: "rejected" | "needs_you" | "accepted" | null;
@@ -8963,7 +8985,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8963
8985
  id: string;
8964
8986
  object: "media_skill_build";
8965
8987
  name: string;
8966
- state: "ready" | "live" | "building" | "in_review" | "changes_requested" | "setup";
8988
+ state: "ready" | "live" | "building" | "in_review" | "changes_requested" | "setup" | "finalizing";
8967
8989
  urls: string[];
8968
8990
  rounds: {
8969
8991
  object: "creator_template_round";
@@ -8991,6 +9013,8 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
8991
9013
  error: string | null;
8992
9014
  created_at: string;
8993
9015
  finished_at: string | null;
9016
+ edit_job_id: string | null;
9017
+ sample_file_id: string | null;
8994
9018
  review: {
8995
9019
  state: "failed" | "queued" | "judging" | "decided";
8996
9020
  decision: "rejected" | "needs_you" | "accepted" | null;
@@ -9060,7 +9084,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
9060
9084
  id: string;
9061
9085
  object: "media_skill_build";
9062
9086
  name: string;
9063
- state: "ready" | "live" | "building" | "in_review" | "changes_requested" | "setup";
9087
+ state: "ready" | "live" | "building" | "in_review" | "changes_requested" | "setup" | "finalizing";
9064
9088
  urls: string[];
9065
9089
  rounds: {
9066
9090
  object: "creator_template_round";
@@ -9088,6 +9112,8 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
9088
9112
  error: string | null;
9089
9113
  created_at: string;
9090
9114
  finished_at: string | null;
9115
+ edit_job_id: string | null;
9116
+ sample_file_id: string | null;
9091
9117
  review: {
9092
9118
  state: "failed" | "queued" | "judging" | "decided";
9093
9119
  decision: "rejected" | "needs_you" | "accepted" | null;
@@ -9445,7 +9471,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
9445
9471
  title: string | null;
9446
9472
  description: string | null;
9447
9473
  tags: string[];
9448
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
9474
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
9449
9475
  source: {
9450
9476
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
9451
9477
  job_id: string | null;
@@ -9482,7 +9508,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
9482
9508
  title: string | null;
9483
9509
  description: string | null;
9484
9510
  tags: string[];
9485
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
9511
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
9486
9512
  source: {
9487
9513
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
9488
9514
  job_id: string | null;
@@ -9524,7 +9550,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
9524
9550
  object: "media_model";
9525
9551
  id: string;
9526
9552
  name: string;
9527
- kind: "image" | "video" | "mesh" | "stt" | "tts" | "s2s";
9553
+ kind: "video" | "image" | "mesh" | "stt" | "tts" | "s2s";
9528
9554
  description: string;
9529
9555
  prices?: {
9530
9556
  texture: boolean;
@@ -10887,7 +10913,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
10887
10913
  data: {
10888
10914
  id: string;
10889
10915
  seq: number;
10890
- type: "message.delta" | "message.completed" | "message.accepted" | "handoff.sent" | "tool.started" | "tool.completed" | "tool.confirm" | "tool.confirm.resolved" | "tool.confirm.answered" | "session.running" | "session.usage" | "session.idle" | "session.retrying" | "session.mode" | "plan.updated" | "session.degraded" | "session.computer_replaced" | "budget.exceeded" | "span.model_request.start" | "span.model_request.end" | "span.transcript_load.start" | "span.transcript_load.end" | "span.harness_load.start" | "span.harness_load.end" | "span.harness_build.start" | "span.harness_build.end" | "span.box_resume.start" | "span.box_resume.end" | "thread.created" | "thread.running" | "thread.idle" | "thread.terminated" | "outcome.evaluation.started" | "outcome.evaluation.progress" | "outcome.evaluation.completed" | "browser.session.opened" | "browser.session.closed" | "browser.context.saved" | "browser.context.granted" | "browser.context.revoked" | "media.job.queued" | "media.job.completed" | "media.job.failed" | "file.imported" | "app.db.migrated" | "app.storage.bucket.created" | "app.storage.bucket.deleted" | "wallet.created" | "wallet.policy.updated" | "wallet.transaction.confirmed" | "wallet.swept" | "card.issued" | "card.failed" | "card.cancelled" | "card.refunded" | "card.credentials_revealed";
10916
+ type: "message.delta" | "message.completed" | "message.accepted" | "handoff.sent" | "tool.started" | "tool.completed" | "tool.confirm" | "tool.confirm.resolved" | "tool.confirm.answered" | "session.running" | "session.usage" | "session.idle" | "session.retrying" | "session.mode" | "plan.updated" | "session.degraded" | "session.computer_replaced" | "budget.exceeded" | "span.model_request.start" | "span.model_request.end" | "span.transcript_load.start" | "span.transcript_load.end" | "span.harness_load.start" | "span.harness_load.end" | "span.harness_build.start" | "span.harness_build.end" | "span.box_resume.start" | "span.box_resume.end" | "span.tools_resolve.start" | "span.tools_resolve.end" | "span.model_gate.start" | "span.model_gate.end" | "thread.created" | "thread.running" | "thread.idle" | "thread.terminated" | "outcome.evaluation.started" | "outcome.evaluation.progress" | "outcome.evaluation.completed" | "browser.session.opened" | "browser.session.closed" | "browser.context.saved" | "browser.context.granted" | "browser.context.revoked" | "media.job.queued" | "media.job.completed" | "media.job.failed" | "file.imported" | "app.db.migrated" | "app.storage.bucket.created" | "app.storage.bucket.deleted" | "wallet.created" | "wallet.policy.updated" | "wallet.transaction.confirmed" | "wallet.swept" | "card.issued" | "card.failed" | "card.cancelled" | "card.refunded" | "card.credentials_revealed";
10891
10917
  session_id: string;
10892
10918
  data: Record<string, unknown>;
10893
10919
  created_at: string;
@@ -12124,7 +12150,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
12124
12150
  title: string | null;
12125
12151
  description: string | null;
12126
12152
  tags: string[];
12127
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
12153
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
12128
12154
  source: {
12129
12155
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
12130
12156
  job_id: string | null;
@@ -12156,7 +12182,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
12156
12182
  title: string | null;
12157
12183
  description: string | null;
12158
12184
  tags: string[];
12159
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
12185
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
12160
12186
  source: {
12161
12187
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
12162
12188
  job_id: string | null;
@@ -12190,7 +12216,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
12190
12216
  title: string | null;
12191
12217
  description: string | null;
12192
12218
  tags: string[];
12193
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
12219
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
12194
12220
  source: {
12195
12221
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
12196
12222
  job_id: string | null;
@@ -12228,7 +12254,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
12228
12254
  title: string | null;
12229
12255
  description: string | null;
12230
12256
  tags: string[];
12231
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
12257
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
12232
12258
  source: {
12233
12259
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
12234
12260
  job_id: string | null;
@@ -12264,7 +12290,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
12264
12290
  title: string | null;
12265
12291
  description: string | null;
12266
12292
  tags: string[];
12267
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
12293
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
12268
12294
  source: {
12269
12295
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
12270
12296
  job_id: string | null;
@@ -12295,7 +12321,7 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
12295
12321
  title: string | null;
12296
12322
  description: string | null;
12297
12323
  tags: string[];
12298
- kind: "model" | "image" | "video" | "other" | "audio" | "document";
12324
+ kind: "model" | "video" | "image" | "other" | "audio" | "document";
12299
12325
  source: {
12300
12326
  type: "screenshot" | "upload" | "url_import" | "image_generation" | "video_generation" | "video_clipping" | "speech_generation" | "mesh_generation" | "model_build" | "sound_effect" | "music";
12301
12327
  job_id: string | null;
@@ -13051,8 +13077,9 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
13051
13077
  session_id: string | null;
13052
13078
  agent_id: string | null;
13053
13079
  deployment_id: string | null;
13080
+ resource_id: string | null;
13054
13081
  line_items: {
13055
- tier: "input" | "output" | "email" | "cache_write" | "cache_read" | "reasoning" | "media" | "computer" | "mobile" | "browser" | "search" | "social" | "storage" | "voice";
13082
+ tier: "output" | "input" | "email" | "cache_write" | "cache_read" | "reasoning" | "media" | "computer" | "mobile" | "browser" | "search" | "social" | "storage" | "voice";
13056
13083
  amount_micro_usd: number;
13057
13084
  }[];
13058
13085
  created_at: string;
@@ -13293,4 +13320,4 @@ declare function createClient(options: Partial<ClientConfig> & Pick<ClientConfig
13293
13320
  };
13294
13321
  type VettaClient = ReturnType<typeof createClient>;
13295
13322
 
13296
- export { type AdAccount, type AgentCreate, type AgentPatch, ApiError, type AppCreate, type AppOption, type AppPatch, type AuditFilter, type AuthConfig, type AuthConfigCreate, type AuthSession, type BrowserActionRequest, type BrowserCredential, type BrowserLogin, type BrowserOptionsInput, type BrowserSignup, type Build3dRequestInput, type Build3dResult, CONNECTION_AUTHS, type Call, type CardCreate, type CardPatch, type Character, type CharacterCreate, type CharacterFilter, type ClientConfig, type ClipCreate, type ClipFilter, type CloseTradingPosition, type ComputerCreate, type Connection, type ConnectionApp, type ConnectionAppDetail, type ConnectionAuth, type ConnectionField, type ConnectionStatus, type Connector, type CreateBrowserGrant, type CredentialCreate, type CrmActivityCreate, type CrmActivityUpdate, type CrmContactCreate, type CrmContactUpdate, type DataDomain, type DataRun, type DataRunRequest, type DataTool, type DataToolDetail, type DataToolSearch, type DbFilter, type DbOptions, type DbPage, type DeploymentCreate, type DeploymentPatch, type DomainCreate, type DomainPurchase, type EditJob, type EditRequest, type EmailSend, type FileFilter, type FileImport, type FileUpdate, type FsOp, type Handoffs, type Identity, type IdentityCreate, type IdentityPatch, type ImageGeneration, type ImageRequest, type InboxCreate, type InstallApply, type InstallPreview, type LedgerFilter, type ListQuery, type McpSession, type McpSessionCreate, type MediaFilter, type MediaJob, type MediaModel, type MediaSkillBuild, type MediaSkillCreate, type MediaSkillFilter, type MediaToolConfig, type MeshRequest, type Method, type MobileAction, type MobileActionResult, type MobileDevice, type MobileDeviceCreate, type MobileInstallAppOutput, type MobileLiveView, type ModelSelection, type ModelSelectionPolicy, type ModelSelectionRequest, type ObjectListQuery, type Outcome, type OutcomeCreate, type OutcomeEvaluation, type PendingAction, type PhoneProvision, type PhoneTier, type PlaceTradingOrder, type Plan, type Post, type PostStatus, type ProxyBlock, type ProxyMessage, type ProxyMessageCreate, ResponseParseError, SOCIAL_PLATFORMS, SOCIAL_TEXT_PLATFORMS, SOCIAL_VISIBILITIES, type SaveBrowserContext, type SearchCampaignCreate, type Session, type SessionCreate, type SessionFilter, type SkillContent, type SocialDataRun, type SocialDataRunRequest, type SocialDataTool, type SocialDataToolDetail, type SocialDataToolSearch, type SocialPlatform, type SocialPostCreate, type SocialTextPlatform, type SocialVisibility, type SocialWorkspace, type SpeechCreate, type SpeechToSpeechCreate, type StockPhoto, type StockPhotoQuery, type StopReason, type StreamOptions, type ToolSettings, type TradingAccount, type TradingConnect, type TradingConnection, type TradingEnv, type TradingEnvQuery, type TradingOrder, type TradingOrdersQuery, type TradingPosition, type TradingQuote, type TradingQuotesQuery, type TranscriptionCreate, type UploadOptions, type UploadUrlOptions, type VaultCreate, type VettaClient, type VideoRequest, type WebToolConfig, type WebhookPatch, apiErrorFrom, createClient, filterQuery, resolveApp, send, withTool };
13323
+ export { type AdAccount, type AgentCreate, type AgentPatch, ApiError, type AppCreate, type AppOption, type AppPatch, type AuditFilter, type AuthConfig, type AuthConfigCreate, type AuthSession, type BrowserActionRequest, type BrowserCredential, type BrowserLogin, type BrowserOptionsInput, type BrowserSignup, type Build3dRequestInput, type Build3dResult, CONNECTION_AUTHS, type Call, type CardCreate, type CardPatch, type Character, type CharacterCreate, type CharacterFilter, type ClientConfig, type ClipCreate, type ClipFilter, type CloseTradingPosition, type ComputerCreate, type Connection, type ConnectionApp, type ConnectionAppDetail, type ConnectionAuth, type ConnectionField, type ConnectionStatus, type Connector, type CreateBrowserGrant, type CredentialCreate, type CrmActivityCreate, type CrmActivityUpdate, type CrmContactCreate, type CrmContactUpdate, DEFAULT_BASE_URL, type DataDomain, type DataRun, type DataRunRequest, type DataTool, type DataToolDetail, type DataToolSearch, type DbFilter, type DbOptions, type DbPage, type DeploymentCreate, type DeploymentPatch, type DomainCreate, type DomainPurchase, type EditJob, type EditRequest, type EmailSend, type FileFilter, type FileImport, type FileUpdate, type FsOp, type Handoffs, type Identity, type IdentityCreate, type IdentityPatch, type ImageGeneration, type ImageRequest, type InboxCreate, type InstallApply, type InstallPreview, type LedgerFilter, type ListQuery, type McpSession, type McpSessionCreate, type MediaFilter, type MediaJob, type MediaModel, type MediaSkillBuild, type MediaSkillCreate, type MediaSkillFilter, type MediaToolConfig, type MeshRequest, type Method, type MobileAction, type MobileActionResult, type MobileDevice, type MobileDeviceCreate, type MobileInstallAppOutput, type MobileLiveView, type ModelSelection, type ModelSelectionPolicy, type ModelSelectionRequest, type ObjectListQuery, type Outcome, type OutcomeCreate, type OutcomeEvaluation, type PendingAction, type PhoneProvision, type PhoneTier, type PlaceTradingOrder, type Plan, type Post, type PostStatus, type ProxyBlock, type ProxyMessage, type ProxyMessageCreate, ResponseParseError, SOCIAL_PLATFORMS, SOCIAL_TEXT_PLATFORMS, SOCIAL_VISIBILITIES, type SaveBrowserContext, type SearchCampaignCreate, type Session, type SessionCreate, type SessionFilter, type SkillContent, type SocialDataRun, type SocialDataRunRequest, type SocialDataTool, type SocialDataToolDetail, type SocialDataToolSearch, type SocialPlatform, type SocialPostCreate, type SocialTextPlatform, type SocialVisibility, type SocialWorkspace, type SpeechCreate, type SpeechToSpeechCreate, type StockPhoto, type StockPhotoQuery, type StopReason, type StreamOptions, type ToolSettings, type TradingAccount, type TradingConnect, type TradingConnection, type TradingEnv, type TradingEnvQuery, type TradingOrder, type TradingOrdersQuery, type TradingPosition, type TradingQuote, type TradingQuotesQuery, type TranscriptionCreate, type UploadOptions, type UploadUrlOptions, type VaultCreate, type VettaClient, type VideoRequest, type WebToolConfig, type WebhookPatch, apiErrorFrom, createClient, filterQuery, resolveApp, send, withTool };