@nylorun/core 0.25.0-beta → 0.27.0-beta

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.
@@ -946,6 +946,14 @@ export declare const CredentialIdentitySchema: z.ZodObject<{
946
946
  header: z.ZodString;
947
947
  }, z.core.$strict>;
948
948
  export type CredentialIdentity = z.infer<typeof CredentialIdentitySchema>;
949
+ /**
950
+ * `toolPrefix`: what the gateway at `via` puts before each tool name it lists, such as
951
+ * LiteLLM's `github-` (Host feature `gateway-credentials`). The Runtime lists the server's tools
952
+ * without it, so tool names, a manifest's `tools` settings and tool policy rules name the server's
953
+ * own tools, and calls a tool by the name the gateway listed. Only with `via`, and only on an
954
+ * Agent's secret: how a gateway names tools is the installation's routing, never a manifest's.
955
+ */
956
+ export declare const CredentialToolPrefixSchema: z.ZodString;
949
957
  export declare const RESERVED_ENVIRONMENT_NAMES: ReadonlySet<string>;
950
958
  export declare function isReservedEnvironmentName(name: string): boolean;
951
959
  /**
@@ -1010,6 +1018,7 @@ export declare const PutAgentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.Zod
1010
1018
  type: z.ZodLiteral<"bearer">;
1011
1019
  url: z.ZodString;
1012
1020
  value: z.ZodString;
1021
+ toolPrefix: z.ZodOptional<z.ZodString>;
1013
1022
  }, z.core.$strict>, z.ZodObject<{
1014
1023
  via: z.ZodOptional<z.ZodString>;
1015
1024
  identity: z.ZodOptional<z.ZodObject<{
@@ -1019,16 +1028,28 @@ export declare const PutAgentSecretRequestSchema: z.ZodDiscriminatedUnion<[z.Zod
1019
1028
  type: z.ZodLiteral<"headers">;
1020
1029
  url: z.ZodString;
1021
1030
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
1031
+ toolPrefix: z.ZodOptional<z.ZodString>;
1032
+ }, z.core.$strict>, z.ZodObject<{
1033
+ requestId: z.ZodOptional<z.ZodString>;
1034
+ type: z.ZodLiteral<"workload">;
1035
+ url: z.ZodString;
1036
+ via: z.ZodString;
1037
+ identity: z.ZodOptional<z.ZodObject<{
1038
+ header: z.ZodString;
1039
+ }, z.core.$strict>>;
1040
+ toolPrefix: z.ZodOptional<z.ZodString>;
1022
1041
  }, z.core.$strict>], "type">;
1023
1042
  export type PutAgentSecretRequest = z.infer<typeof PutAgentSecretRequestSchema>;
1024
1043
  /**
1025
1044
  * A secret write on an Environment whose manifest declares the secret's slot: only the
1026
- * value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot.
1045
+ * value, `value` (or `headers` for a `headers` slot). Its type and binding come from the slot,
1046
+ * except the gateway's `toolPrefix`, which this installation's write may add to a slot with `via`.
1027
1047
  */
1028
1048
  export declare const PutAgentSecretValueRequestSchema: z.ZodObject<{
1029
1049
  requestId: z.ZodOptional<z.ZodString>;
1030
1050
  value: z.ZodOptional<z.ZodString>;
1031
1051
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1052
+ toolPrefix: z.ZodOptional<z.ZodString>;
1032
1053
  }, z.core.$strict>;
1033
1054
  export type PutAgentSecretValueRequest = z.infer<typeof PutAgentSecretValueRequestSchema>;
1034
1055
  /** Whether `name` may name a secret of `type` (`PUT .../secrets/{name}`); a message when not. */
@@ -2138,6 +2159,33 @@ export declare const AgentManifestSavedBySchema: z.ZodObject<{
2138
2159
  actor: z.ZodString;
2139
2160
  }, z.core.$strict>;
2140
2161
  /** One version of an agent manifest. */
2162
+ /**
2163
+ * One problem or remark about an agent folder (track T6): an `error` keeps it from compiling.
2164
+ * `file` is the path in the folder, with the line and column when known; `pointer` the field in
2165
+ * the manifest.
2166
+ */
2167
+ export declare const AgentFolderDiagnosticSchema: z.ZodObject<{
2168
+ severity: z.ZodEnum<{
2169
+ error: "error";
2170
+ info: "info";
2171
+ note: "note";
2172
+ warning: "warning";
2173
+ }>;
2174
+ code: z.ZodString;
2175
+ message: z.ZodString;
2176
+ file: z.ZodOptional<z.ZodString>;
2177
+ line: z.ZodOptional<z.ZodNumber>;
2178
+ column: z.ZodOptional<z.ZodNumber>;
2179
+ pointer: z.ZodOptional<z.ZodString>;
2180
+ }, z.core.$strict>;
2181
+ export type AgentFolderDiagnostic = z.infer<typeof AgentFolderDiagnosticSchema>;
2182
+ /** The folder a version was compiled from (track T6): the compiler that built it, and its size. */
2183
+ export declare const AgentManifestSourceSummarySchema: z.ZodObject<{
2184
+ compiler: z.ZodString;
2185
+ files: z.ZodNumber;
2186
+ bytes: z.ZodNumber;
2187
+ }, z.core.$strict>;
2188
+ export type AgentManifestSourceSummary = z.infer<typeof AgentManifestSourceSummarySchema>;
2141
2189
  export declare const AgentManifestViewSchema: z.ZodObject<{
2142
2190
  name: z.ZodString;
2143
2191
  version: z.ZodNumber;
@@ -2243,7 +2291,53 @@ export declare const AgentManifestViewSchema: z.ZodObject<{
2243
2291
  }, z.core.$strict>;
2244
2292
  createdAt: z.ZodString;
2245
2293
  agents: z.ZodNumber;
2294
+ source: z.ZodOptional<z.ZodObject<{
2295
+ compiler: z.ZodString;
2296
+ files: z.ZodNumber;
2297
+ bytes: z.ZodNumber;
2298
+ }, z.core.$strict>>;
2246
2299
  }, z.core.$strict>;
2300
+ /** One file of an agent folder: its path, size and SHA-256 (lowercase hex). */
2301
+ export declare const AgentFolderEntrySchema: z.ZodObject<{
2302
+ path: z.ZodString;
2303
+ size: z.ZodNumber;
2304
+ sha256: z.ZodString;
2305
+ contentType: z.ZodOptional<z.ZodString>;
2306
+ mode: z.ZodOptional<z.ZodNumber>;
2307
+ }, z.core.$strict>;
2308
+ export type AgentFolderEntry = z.infer<typeof AgentFolderEntrySchema>;
2309
+ /** The media type of an agent folder sent by hash to `PUT /v1/agent-manifests/{name}`. */
2310
+ export declare const AGENT_FOLDER_MEDIA_TYPE = "application/vnd.nylorun.folder+json";
2311
+ /**
2312
+ * `PUT /v1/agent-manifests/{name}` with `Content-Type: application/vnd.nylorun.folder+json`
2313
+ * (track T6): an agent folder by hash, each file uploaded first with `PUT /v1/files/sha256:<hex>`.
2314
+ */
2315
+ export declare const PutAgentFolderRequestSchema: z.ZodObject<{
2316
+ requestId: z.ZodOptional<z.ZodString>;
2317
+ format: z.ZodLiteral<"nylorun.folder.v2">;
2318
+ entries: z.ZodArray<z.ZodObject<{
2319
+ path: z.ZodString;
2320
+ size: z.ZodNumber;
2321
+ sha256: z.ZodString;
2322
+ contentType: z.ZodOptional<z.ZodString>;
2323
+ mode: z.ZodOptional<z.ZodNumber>;
2324
+ }, z.core.$strict>>;
2325
+ }, z.core.$strict>;
2326
+ export type PutAgentFolderRequest = z.infer<typeof PutAgentFolderRequestSchema>;
2327
+ /** `GET /v1/agent-manifests/{name}/versions/{v}/source`: the folder a version was compiled from. */
2328
+ export declare const AgentManifestSourceSchema: z.ZodObject<{
2329
+ name: z.ZodString;
2330
+ version: z.ZodNumber;
2331
+ compiler: z.ZodString;
2332
+ files: z.ZodNumber;
2333
+ bytes: z.ZodNumber;
2334
+ entries: z.ZodArray<z.ZodObject<{
2335
+ path: z.ZodString;
2336
+ size: z.ZodNumber;
2337
+ sha256: z.ZodString;
2338
+ }, z.core.$strict>>;
2339
+ }, z.core.$strict>;
2340
+ export type AgentManifestSource = z.infer<typeof AgentManifestSourceSchema>;
2247
2341
  export type AgentManifestView = z.infer<typeof AgentManifestViewSchema>;
2248
2342
  /** `GET /v1/agent-manifests`: each manifest's latest version, by name. */
2249
2343
  export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
@@ -2352,6 +2446,11 @@ export declare const ListAgentManifestsResponseSchema: z.ZodObject<{
2352
2446
  }, z.core.$strict>;
2353
2447
  createdAt: z.ZodString;
2354
2448
  agents: z.ZodNumber;
2449
+ source: z.ZodOptional<z.ZodObject<{
2450
+ compiler: z.ZodString;
2451
+ files: z.ZodNumber;
2452
+ bytes: z.ZodNumber;
2453
+ }, z.core.$strict>>;
2355
2454
  }, z.core.$strict>>;
2356
2455
  }, z.core.$strict>;
2357
2456
  export type ListAgentManifestsResponse = z.infer<typeof ListAgentManifestsResponseSchema>;
@@ -2431,6 +2530,117 @@ export declare const AgentManifestPlanSchema: z.ZodObject<{
2431
2530
  nextStart: z.ZodNumber;
2432
2531
  secrets: z.ZodNumber;
2433
2532
  }, z.core.$strict>;
2533
+ manifest: z.ZodOptional<z.ZodObject<{
2534
+ manifestSchemaVersion: z.ZodLiteral<8>;
2535
+ name: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
2536
+ description: z.ZodOptional<z.ZodString>;
2537
+ metadata: z.ZodOptional<z.ZodType<JsonObject, unknown, z.core.$ZodTypeInternals<JsonObject, unknown>>>;
2538
+ harness: z.ZodUnion<readonly [z.ZodType<WorkflowHarnessSection, unknown, z.core.$ZodTypeInternals<WorkflowHarnessSection, unknown>>, z.ZodType<AgentHarnessSection, unknown, z.core.$ZodTypeInternals<AgentHarnessSection, unknown>>]>;
2539
+ runtime: z.ZodOptional<z.ZodObject<{
2540
+ kind: z.ZodEnum<{
2541
+ none: "none";
2542
+ pod: "pod";
2543
+ virtual: "virtual";
2544
+ }>;
2545
+ image: z.ZodOptional<z.ZodString>;
2546
+ resources: z.ZodOptional<z.ZodObject<{
2547
+ cpus: z.ZodOptional<z.ZodNumber>;
2548
+ memory: z.ZodOptional<z.ZodString>;
2549
+ }, z.core.$strict>>;
2550
+ storage: z.ZodOptional<z.ZodString>;
2551
+ network: z.ZodOptional<z.ZodObject<{
2552
+ allowedHosts: z.ZodOptional<z.ZodArray<z.ZodString>>;
2553
+ }, z.core.$strict>>;
2554
+ lifecycle: z.ZodOptional<z.ZodObject<{
2555
+ idle: z.ZodOptional<z.ZodString>;
2556
+ deleteAfter: z.ZodOptional<z.ZodString>;
2557
+ }, z.core.$strict>>;
2558
+ setup: z.ZodOptional<z.ZodArray<z.ZodObject<{
2559
+ command: z.ZodString;
2560
+ cwd: z.ZodOptional<z.ZodString>;
2561
+ timeout: z.ZodOptional<z.ZodString>;
2562
+ }, z.core.$strict>>>;
2563
+ files: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
2564
+ artifactId: z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
2565
+ version: z.ZodNumber;
2566
+ path: z.ZodString;
2567
+ }, z.core.$strict>, z.ZodObject<{
2568
+ path: z.ZodString;
2569
+ files: z.ZodRecord<z.ZodString, z.ZodString & z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>>;
2570
+ }, z.core.$strict>]>>>;
2571
+ limits: z.ZodOptional<z.ZodObject<{
2572
+ artifacts: z.ZodOptional<z.ZodObject<{
2573
+ fileBytes: z.ZodOptional<z.ZodNumber>;
2574
+ totalBytes: z.ZodOptional<z.ZodNumber>;
2575
+ }, z.core.$strict>>;
2576
+ skills: z.ZodOptional<z.ZodObject<{
2577
+ totalBytes: z.ZodOptional<z.ZodNumber>;
2578
+ }, z.core.$strict>>;
2579
+ disk: z.ZodOptional<z.ZodObject<{
2580
+ versionBytes: z.ZodOptional<z.ZodNumber>;
2581
+ versionEntries: z.ZodOptional<z.ZodNumber>;
2582
+ }, z.core.$strict>>;
2583
+ }, z.core.$strict>>;
2584
+ secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
2585
+ required: z.ZodOptional<z.ZodBoolean>;
2586
+ description: z.ZodOptional<z.ZodString>;
2587
+ type: z.ZodLiteral<"environment_secret">;
2588
+ allowedHosts: z.ZodArray<z.ZodString>;
2589
+ inject: z.ZodOptional<z.ZodObject<{
2590
+ header: z.ZodString;
2591
+ format: z.ZodString;
2592
+ }, z.core.$strict>>;
2593
+ }, z.core.$strict>, z.ZodObject<{
2594
+ required: z.ZodOptional<z.ZodBoolean>;
2595
+ description: z.ZodOptional<z.ZodString>;
2596
+ type: z.ZodLiteral<"environment_variable">;
2597
+ }, z.core.$strict>, z.ZodObject<{
2598
+ via: z.ZodOptional<z.ZodString>;
2599
+ identity: z.ZodOptional<z.ZodObject<{
2600
+ header: z.ZodString;
2601
+ }, z.core.$strict>>;
2602
+ required: z.ZodOptional<z.ZodBoolean>;
2603
+ description: z.ZodOptional<z.ZodString>;
2604
+ type: z.ZodLiteral<"bearer">;
2605
+ url: z.ZodString;
2606
+ }, z.core.$strict>, z.ZodObject<{
2607
+ via: z.ZodOptional<z.ZodString>;
2608
+ identity: z.ZodOptional<z.ZodObject<{
2609
+ header: z.ZodString;
2610
+ }, z.core.$strict>>;
2611
+ required: z.ZodOptional<z.ZodBoolean>;
2612
+ description: z.ZodOptional<z.ZodString>;
2613
+ type: z.ZodLiteral<"headers">;
2614
+ url: z.ZodString;
2615
+ }, z.core.$strict>], "type">>>;
2616
+ triggers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2617
+ schedule: z.ZodOptional<z.ZodString>;
2618
+ timezone: z.ZodOptional<z.ZodString>;
2619
+ at: z.ZodOptional<z.ZodISODateTime>;
2620
+ webhook: z.ZodOptional<z.ZodEnum<{
2621
+ "standard-webhooks": "standard-webhooks";
2622
+ }>>;
2623
+ session: z.ZodString;
2624
+ prompt: z.ZodString;
2625
+ }, z.core.$strict>>>;
2626
+ selfWake: z.ZodOptional<z.ZodBoolean>;
2627
+ }, z.core.$strict>>;
2628
+ }, z.core.$strict>>;
2629
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2630
+ severity: z.ZodEnum<{
2631
+ error: "error";
2632
+ info: "info";
2633
+ note: "note";
2634
+ warning: "warning";
2635
+ }>;
2636
+ code: z.ZodString;
2637
+ message: z.ZodString;
2638
+ file: z.ZodOptional<z.ZodString>;
2639
+ line: z.ZodOptional<z.ZodNumber>;
2640
+ column: z.ZodOptional<z.ZodNumber>;
2641
+ pointer: z.ZodOptional<z.ZodString>;
2642
+ }, z.core.$strict>>>;
2643
+ compiler: z.ZodOptional<z.ZodString>;
2434
2644
  }, z.core.$strict>;
2435
2645
  export type AgentManifestPlan = z.infer<typeof AgentManifestPlanSchema>;
2436
2646
  /** `PUT /v1/agent-manifests/{name}`: the version saved (or the latest, unchanged). */
@@ -2540,12 +2750,31 @@ export declare const SaveAgentManifestResponseSchema: z.ZodObject<{
2540
2750
  }, z.core.$strict>;
2541
2751
  createdAt: z.ZodString;
2542
2752
  agents: z.ZodNumber;
2753
+ source: z.ZodOptional<z.ZodObject<{
2754
+ compiler: z.ZodString;
2755
+ files: z.ZodNumber;
2756
+ bytes: z.ZodNumber;
2757
+ }, z.core.$strict>>;
2543
2758
  }, z.core.$strict>;
2544
2759
  unchanged: z.ZodBoolean;
2545
2760
  warnings: z.ZodArray<z.ZodObject<{
2546
2761
  code: z.ZodString;
2547
2762
  message: z.ZodString;
2548
2763
  }, z.core.$strict>>;
2764
+ diagnostics: z.ZodOptional<z.ZodArray<z.ZodObject<{
2765
+ severity: z.ZodEnum<{
2766
+ error: "error";
2767
+ info: "info";
2768
+ note: "note";
2769
+ warning: "warning";
2770
+ }>;
2771
+ code: z.ZodString;
2772
+ message: z.ZodString;
2773
+ file: z.ZodOptional<z.ZodString>;
2774
+ line: z.ZodOptional<z.ZodNumber>;
2775
+ column: z.ZodOptional<z.ZodNumber>;
2776
+ pointer: z.ZodOptional<z.ZodString>;
2777
+ }, z.core.$strict>>>;
2549
2778
  }, z.core.$strict>;
2550
2779
  export type SaveAgentManifestResponse = z.infer<typeof SaveAgentManifestResponseSchema>;
2551
2780
  export declare const DeleteAgentManifestResponseSchema: z.ZodObject<{
@@ -2972,11 +3201,28 @@ export declare const CUSTOM_MODEL_SETTING_DEFAULTS: Readonly<{
2972
3201
  contextWindow: 32768;
2973
3202
  maxTokens: 8192;
2974
3203
  }>;
3204
+ /**
3205
+ * Where a custom endpoint's per-call header takes its value from the call (#493): one of the
3206
+ * calling Agent's labels (`key`, such as `org`), the Agent's id, or the session's owner when it
3207
+ * is a person. A call whose source has no value sends no header.
3208
+ */
3209
+ export declare const ModelCallHeaderSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3210
+ from: z.ZodLiteral<"agent.label">;
3211
+ key: z.ZodString;
3212
+ }, z.core.$strict>, z.ZodObject<{
3213
+ from: z.ZodLiteral<"agent.id">;
3214
+ }, z.core.$strict>, z.ZodObject<{
3215
+ from: z.ZodLiteral<"session.owner">;
3216
+ }, z.core.$strict>], "from">;
3217
+ export type ModelCallHeaderSource = z.infer<typeof ModelCallHeaderSourceSchema>;
2975
3218
  /**
2976
3219
  * What the Runtime cannot learn from a custom OpenAI-compatible endpoint (Model Calls §7):
2977
3220
  * its context window and output limit (default `CUSTOM_MODEL_SETTING_DEFAULTS`), whether it
2978
3221
  * reasons, what it reads (`inputs`; default text only) and pi-ai `compat` settings
2979
- * (`thinkingFormat`, `thinkingTokenBudgetField`, `chatTemplateKwargs`, …).
3222
+ * (`thinkingFormat`, `thinkingTokenBudgetField`, `chatTemplateKwargs`, …). `headers` are sent on
3223
+ * every call and `callHeaders` resolved per call from the calling Agent, for a gateway that
3224
+ * attributes or budgets each call (#493): they are settings, never secrets, and read back as such,
3225
+ * so neither may set `authorization`.
2980
3226
  */
2981
3227
  export declare const CustomModelSettingsSchema: z.ZodObject<{
2982
3228
  contextWindow: z.ZodOptional<z.ZodNumber>;
@@ -2991,8 +3237,24 @@ export declare const CustomModelSettingsSchema: z.ZodObject<{
2991
3237
  video: "video";
2992
3238
  }>>>;
2993
3239
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3240
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3241
+ callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3242
+ from: z.ZodLiteral<"agent.label">;
3243
+ key: z.ZodString;
3244
+ }, z.core.$strict>, z.ZodObject<{
3245
+ from: z.ZodLiteral<"agent.id">;
3246
+ }, z.core.$strict>, z.ZodObject<{
3247
+ from: z.ZodLiteral<"session.owner">;
3248
+ }, z.core.$strict>], "from">>>;
2994
3249
  }, z.core.$strict>;
2995
3250
  export type CustomModelSettings = z.infer<typeof CustomModelSettingsSchema>;
3251
+ /**
3252
+ * How the Runtime authenticates to the model: a stored key, a stored OAuth grant, or (a custom
3253
+ * endpoint only) the Runtime's workload token, read from `NYLORUN_WORKLOAD_TOKEN_FILE` on every
3254
+ * call and never stored (#496).
3255
+ */
3256
+ export declare const HOST_MODEL_AUTH_TYPES: readonly ["api_key", "oauth", "workload"];
3257
+ export type HostModelAuthType = (typeof HOST_MODEL_AUTH_TYPES)[number];
2996
3258
  export declare const PutHostModelRequestSchema: z.ZodObject<{
2997
3259
  requestId: z.ZodString;
2998
3260
  idempotencyKey: z.ZodString;
@@ -3012,6 +3274,15 @@ export declare const PutHostModelRequestSchema: z.ZodObject<{
3012
3274
  video: "video";
3013
3275
  }>>>;
3014
3276
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3277
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3278
+ callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
3279
+ from: z.ZodLiteral<"agent.label">;
3280
+ key: z.ZodString;
3281
+ }, z.core.$strict>, z.ZodObject<{
3282
+ from: z.ZodLiteral<"agent.id">;
3283
+ }, z.core.$strict>, z.ZodObject<{
3284
+ from: z.ZodLiteral<"session.owner">;
3285
+ }, z.core.$strict>], "from">>>;
3015
3286
  }, z.core.$strict>>;
3016
3287
  auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
3017
3288
  type: z.ZodLiteral<"api_key">;
@@ -3022,7 +3293,9 @@ export declare const PutHostModelRequestSchema: z.ZodObject<{
3022
3293
  refresh: z.ZodString;
3023
3294
  access: z.ZodString;
3024
3295
  expires: z.ZodNumber;
3025
- }, z.core.$loose>], "type">;
3296
+ }, z.core.$loose>, z.ZodObject<{
3297
+ type: z.ZodLiteral<"workload">;
3298
+ }, z.core.$strict>], "type">;
3026
3299
  }, z.core.$strict>;
3027
3300
  export type PutHostModelRequest = z.infer<typeof PutHostModelRequestSchema>;
3028
3301
  export type HostModelView = {
@@ -3031,7 +3304,7 @@ export type HostModelView = {
3031
3304
  readonly configured: true;
3032
3305
  readonly provider: string;
3033
3306
  readonly model: string;
3034
- readonly authType: "api_key" | "oauth";
3307
+ readonly authType: HostModelAuthType;
3035
3308
  readonly baseUrl?: string;
3036
3309
  readonly settings?: CustomModelSettings;
3037
3310
  };
@@ -3044,7 +3317,7 @@ export declare const SelectHostModelRequestSchema: z.ZodObject<{
3044
3317
  }, z.core.$strict>;
3045
3318
  export type SelectHostModelRequest = z.infer<typeof SelectHostModelRequestSchema>;
3046
3319
  export type HostModelProviderInfo = z.infer<typeof HostModelProviderInfoSchema>;
3047
- export declare const ENVIRONMENT_SECRET_TYPES: readonly ["bearer", "headers", "environment_secret", "environment_variable"];
3320
+ export declare const ENVIRONMENT_SECRET_TYPES: readonly ["bearer", "headers", "workload", "environment_secret", "environment_variable"];
3048
3321
  /**
3049
3322
  * One credential of an Environment's vault, never its value: what it is bound to (the server
3050
3323
  * `url` for `bearer` and `headers`; the hosts and header for `environment_secret`).
@@ -3056,6 +3329,7 @@ export declare const AgentSecretViewSchema: z.ZodObject<{
3056
3329
  environment_secret: "environment_secret";
3057
3330
  environment_variable: "environment_variable";
3058
3331
  headers: "headers";
3332
+ workload: "workload";
3059
3333
  }>;
3060
3334
  binding: z.ZodObject<{
3061
3335
  url: z.ZodOptional<z.ZodString>;
@@ -3067,6 +3341,7 @@ export declare const AgentSecretViewSchema: z.ZodObject<{
3067
3341
  }, z.core.$strict>;
3068
3342
  headerNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
3069
3343
  via: z.ZodOptional<z.ZodString>;
3344
+ toolPrefix: z.ZodOptional<z.ZodString>;
3070
3345
  identity: z.ZodOptional<z.ZodObject<{
3071
3346
  header: z.ZodString;
3072
3347
  }, z.core.$strict>>;
@@ -3082,6 +3357,7 @@ export declare const ListAgentSecretsResponseSchema: z.ZodObject<{
3082
3357
  environment_secret: "environment_secret";
3083
3358
  environment_variable: "environment_variable";
3084
3359
  headers: "headers";
3360
+ workload: "workload";
3085
3361
  }>;
3086
3362
  binding: z.ZodObject<{
3087
3363
  url: z.ZodOptional<z.ZodString>;
@@ -3093,6 +3369,7 @@ export declare const ListAgentSecretsResponseSchema: z.ZodObject<{
3093
3369
  }, z.core.$strict>;
3094
3370
  headerNames: z.ZodOptional<z.ZodArray<z.ZodString>>;
3095
3371
  via: z.ZodOptional<z.ZodString>;
3372
+ toolPrefix: z.ZodOptional<z.ZodString>;
3096
3373
  identity: z.ZodOptional<z.ZodObject<{
3097
3374
  header: z.ZodString;
3098
3375
  }, z.core.$strict>>;
@@ -3690,6 +3967,7 @@ export declare const RejectedResponseSchema: z.ZodObject<{
3690
3967
  credential_rejected: "credential_rejected";
3691
3968
  credential_required: "credential_required";
3692
3969
  definition_files_missing: "definition_files_missing";
3970
+ folder_invalid: "folder_invalid";
3693
3971
  harness_mismatch: "harness_mismatch";
3694
3972
  host_rejected: "host_rejected";
3695
3973
  incompatible_host: "incompatible_host";
@@ -3940,6 +4218,7 @@ export declare const ToolCompletedPayloadSchema: z.ZodObject<{
3940
4218
  code: z.ZodString;
3941
4219
  message: z.ZodString;
3942
4220
  server: z.ZodOptional<z.ZodString>;
4221
+ gateway: z.ZodOptional<z.ZodString>;
3943
4222
  retryable: z.ZodOptional<z.ZodBoolean>;
3944
4223
  }, z.core.$loose>>;
3945
4224
  redacted: z.ZodOptional<z.ZodNumber>;
@@ -4182,6 +4461,7 @@ declare const TRANSCRIPT_PAYLOADS: {
4182
4461
  code: z.ZodString;
4183
4462
  message: z.ZodString;
4184
4463
  server: z.ZodOptional<z.ZodString>;
4464
+ gateway: z.ZodOptional<z.ZodString>;
4185
4465
  retryable: z.ZodOptional<z.ZodBoolean>;
4186
4466
  }, z.core.$loose>>;
4187
4467
  redacted: z.ZodOptional<z.ZodNumber>;
@@ -4899,6 +5179,7 @@ export declare const EVENT_CATALOG: {
4899
5179
  code: z.ZodString;
4900
5180
  message: z.ZodString;
4901
5181
  server: z.ZodOptional<z.ZodString>;
5182
+ gateway: z.ZodOptional<z.ZodString>;
4902
5183
  retryable: z.ZodOptional<z.ZodBoolean>;
4903
5184
  }, z.core.$loose>>;
4904
5185
  redacted: z.ZodOptional<z.ZodNumber>;
@@ -5402,6 +5683,7 @@ export declare const HostModelViewSchema: z.ZodUnion<readonly [z.ZodObject<{
5402
5683
  authType: z.ZodEnum<{
5403
5684
  api_key: "api_key";
5404
5685
  oauth: "oauth";
5686
+ workload: "workload";
5405
5687
  }>;
5406
5688
  baseUrl: z.ZodOptional<z.ZodString>;
5407
5689
  settings: z.ZodOptional<z.ZodObject<{
@@ -5417,6 +5699,15 @@ export declare const HostModelViewSchema: z.ZodUnion<readonly [z.ZodObject<{
5417
5699
  video: "video";
5418
5700
  }>>>;
5419
5701
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5702
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5703
+ callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5704
+ from: z.ZodLiteral<"agent.label">;
5705
+ key: z.ZodString;
5706
+ }, z.core.$strict>, z.ZodObject<{
5707
+ from: z.ZodLiteral<"agent.id">;
5708
+ }, z.core.$strict>, z.ZodObject<{
5709
+ from: z.ZodLiteral<"session.owner">;
5710
+ }, z.core.$strict>], "from">>>;
5420
5711
  }, z.core.$strict>>;
5421
5712
  }, z.core.$strict>]>;
5422
5713
  export declare const TenantStatusSchema: z.ZodObject<{
@@ -5443,6 +5734,7 @@ export declare const TenantStatusSchema: z.ZodObject<{
5443
5734
  authType: z.ZodEnum<{
5444
5735
  api_key: "api_key";
5445
5736
  oauth: "oauth";
5737
+ workload: "workload";
5446
5738
  }>;
5447
5739
  baseUrl: z.ZodOptional<z.ZodString>;
5448
5740
  settings: z.ZodOptional<z.ZodObject<{
@@ -5458,6 +5750,15 @@ export declare const TenantStatusSchema: z.ZodObject<{
5458
5750
  video: "video";
5459
5751
  }>>>;
5460
5752
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5753
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5754
+ callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5755
+ from: z.ZodLiteral<"agent.label">;
5756
+ key: z.ZodString;
5757
+ }, z.core.$strict>, z.ZodObject<{
5758
+ from: z.ZodLiteral<"agent.id">;
5759
+ }, z.core.$strict>, z.ZodObject<{
5760
+ from: z.ZodLiteral<"session.owner">;
5761
+ }, z.core.$strict>], "from">>>;
5461
5762
  }, z.core.$strict>>;
5462
5763
  }, z.core.$strict>]>;
5463
5764
  agents: z.ZodArray<z.ZodObject<{
@@ -5562,6 +5863,15 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
5562
5863
  video: "video";
5563
5864
  }>>>;
5564
5865
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5866
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5867
+ callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5868
+ from: z.ZodLiteral<"agent.label">;
5869
+ key: z.ZodString;
5870
+ }, z.core.$strict>, z.ZodObject<{
5871
+ from: z.ZodLiteral<"agent.id">;
5872
+ }, z.core.$strict>, z.ZodObject<{
5873
+ from: z.ZodLiteral<"session.owner">;
5874
+ }, z.core.$strict>], "from">>>;
5565
5875
  }, z.core.$strict>>;
5566
5876
  auth: z.ZodDiscriminatedUnion<[z.ZodObject<{
5567
5877
  type: z.ZodLiteral<"api_key">;
@@ -5572,7 +5882,9 @@ export declare const SeedTenantConfigRequestSchema: z.ZodObject<{
5572
5882
  refresh: z.ZodString;
5573
5883
  access: z.ZodString;
5574
5884
  expires: z.ZodNumber;
5575
- }, z.core.$loose>], "type">;
5885
+ }, z.core.$loose>, z.ZodObject<{
5886
+ type: z.ZodLiteral<"workload">;
5887
+ }, z.core.$strict>], "type">;
5576
5888
  }, z.core.$strict>>;
5577
5889
  fixtureModel: z.ZodOptional<z.ZodLiteral<true>>;
5578
5890
  }, z.core.$strict>;
@@ -6069,6 +6381,7 @@ export declare const HostModelProviderInfoSchema: z.ZodObject<{
6069
6381
  authType: z.ZodEnum<{
6070
6382
  api_key: "api_key";
6071
6383
  oauth: "oauth";
6384
+ workload: "workload";
6072
6385
  }>;
6073
6386
  baseUrl: z.ZodOptional<z.ZodString>;
6074
6387
  settings: z.ZodOptional<z.ZodObject<{
@@ -6084,6 +6397,15 @@ export declare const HostModelProviderInfoSchema: z.ZodObject<{
6084
6397
  video: "video";
6085
6398
  }>>>;
6086
6399
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6400
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6401
+ callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
6402
+ from: z.ZodLiteral<"agent.label">;
6403
+ key: z.ZodString;
6404
+ }, z.core.$strict>, z.ZodObject<{
6405
+ from: z.ZodLiteral<"agent.id">;
6406
+ }, z.core.$strict>, z.ZodObject<{
6407
+ from: z.ZodLiteral<"session.owner">;
6408
+ }, z.core.$strict>], "from">>>;
6087
6409
  }, z.core.$strict>>;
6088
6410
  inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6089
6411
  audio: "audio";
@@ -6137,6 +6459,7 @@ export declare const ListProvidersResponseSchema: z.ZodObject<{
6137
6459
  authType: z.ZodEnum<{
6138
6460
  api_key: "api_key";
6139
6461
  oauth: "oauth";
6462
+ workload: "workload";
6140
6463
  }>;
6141
6464
  baseUrl: z.ZodOptional<z.ZodString>;
6142
6465
  settings: z.ZodOptional<z.ZodObject<{
@@ -6152,6 +6475,15 @@ export declare const ListProvidersResponseSchema: z.ZodObject<{
6152
6475
  video: "video";
6153
6476
  }>>>;
6154
6477
  compat: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6478
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6479
+ callHeaders: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
6480
+ from: z.ZodLiteral<"agent.label">;
6481
+ key: z.ZodString;
6482
+ }, z.core.$strict>, z.ZodObject<{
6483
+ from: z.ZodLiteral<"agent.id">;
6484
+ }, z.core.$strict>, z.ZodObject<{
6485
+ from: z.ZodLiteral<"session.owner">;
6486
+ }, z.core.$strict>], "from">>>;
6155
6487
  }, z.core.$strict>>;
6156
6488
  inputs: z.ZodOptional<z.ZodArray<z.ZodEnum<{
6157
6489
  audio: "audio";
@@ -6499,6 +6831,7 @@ export declare const AgUiRunErrorCodeSchema: z.ZodEnum<{
6499
6831
  credential_rejected: "credential_rejected";
6500
6832
  credential_required: "credential_required";
6501
6833
  definition_files_missing: "definition_files_missing";
6834
+ folder_invalid: "folder_invalid";
6502
6835
  harness_mismatch: "harness_mismatch";
6503
6836
  host_rejected: "host_rejected";
6504
6837
  incompatible_host: "incompatible_host";