@truefoundry/ai-gateway-sdk 0.1.9 → 0.1.11

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.
Files changed (49) hide show
  1. package/dist/autogen/decoders.d.ts +5 -1
  2. package/dist/autogen/decoders.js +44 -0
  3. package/dist/autogen/decoders.js.map +1 -1
  4. package/dist/autogen/meta.d.ts +5 -1
  5. package/dist/autogen/meta.js +4 -0
  6. package/dist/autogen/meta.js.map +1 -1
  7. package/dist/autogen/models.d.ts +230 -48
  8. package/dist/autogen/schema.json +302 -149
  9. package/dist/globals.js +1 -0
  10. package/dist/globals.js.map +1 -1
  11. package/dist/providers/anthropic/api.d.ts +4 -0
  12. package/dist/providers/anthropic/api.js +36 -6
  13. package/dist/providers/anthropic/api.js.map +1 -1
  14. package/dist/providers/bedrock/chatComplete.js +46 -3
  15. package/dist/providers/bedrock/chatComplete.js.map +1 -1
  16. package/dist/providers/google/api.js +3 -1
  17. package/dist/providers/google/api.js.map +1 -1
  18. package/dist/providers/google/chatComplete.js +5 -1
  19. package/dist/providers/google/chatComplete.js.map +1 -1
  20. package/dist/providers/google/embed.d.ts +10 -1
  21. package/dist/providers/google/embed.js +48 -10
  22. package/dist/providers/google/embed.js.map +1 -1
  23. package/dist/providers/google/index.d.ts +0 -5
  24. package/dist/providers/google/index.js +8 -2
  25. package/dist/providers/google/index.js.map +1 -1
  26. package/dist/providers/google-vertex-ai/api.js +6 -5
  27. package/dist/providers/google-vertex-ai/api.js.map +1 -1
  28. package/dist/providers/google-vertex-ai/chatComplete.js +5 -1
  29. package/dist/providers/google-vertex-ai/chatComplete.js.map +1 -1
  30. package/dist/providers/google-vertex-ai/embed.d.ts +9 -0
  31. package/dist/providers/google-vertex-ai/embed.js +64 -14
  32. package/dist/providers/google-vertex-ai/embed.js.map +1 -1
  33. package/dist/providers/google-vertex-ai/index.js +6 -2
  34. package/dist/providers/google-vertex-ai/index.js.map +1 -1
  35. package/dist/providers/google-vertex-ai/types.d.ts +9 -2
  36. package/dist/providers/google-vertex-ai/types.js.map +1 -1
  37. package/dist/providers/openai/api.d.ts +1 -0
  38. package/dist/providers/openai/api.js +24 -5
  39. package/dist/providers/openai/api.js.map +1 -1
  40. package/dist/providers/utils/workloadIdentityFederation.d.ts +27 -0
  41. package/dist/providers/utils/workloadIdentityFederation.js +52 -0
  42. package/dist/providers/utils/workloadIdentityFederation.js.map +1 -0
  43. package/dist/services/buildExecutionReport.js +5 -1
  44. package/dist/services/buildExecutionReport.js.map +1 -1
  45. package/dist/services/createProviderRequest.js +15 -0
  46. package/dist/services/createProviderRequest.js.map +1 -1
  47. package/dist/types/contracts.d.ts +5 -2
  48. package/dist/types/embedRequestBody.d.ts +3 -0
  49. package/package.json +1 -1
@@ -496,7 +496,7 @@ export type TeamVirtualAccountDataAccessRule = DataAccessRuleBase & {
496
496
  */
497
497
  scope: 'team_virtual_account_data';
498
498
  };
499
- export type ModelParamKey = 'max_tokens' | 'max_completion_tokens' | 'temperature' | 'top_p' | 'top_k' | 'response_format' | 'json_schema' | 'reasoning_effort' | 'verbosity' | 'reasoning' | 'thinking' | 'tool_choice' | 'stream' | 'stop' | 'n' | 'seed' | 'min_tokens' | 'parallel_tool_calls';
499
+ export type ModelParamKey = 'max_tokens' | 'max_completion_tokens' | 'temperature' | 'top_p' | 'top_k' | 'response_format' | 'json_schema' | 'reasoning_effort' | 'verbosity' | 'reasoning' | 'thinking' | 'tool_choice' | 'stream' | 'stop' | 'n' | 'seed' | 'min_tokens' | 'parallel_tool_calls' | 'resolution' | 'duration' | 'generate_audio';
500
500
  export type ModelParamType = 'string' | 'boolean' | 'array-of-strings' | 'json' | 'number';
501
501
  export type MessageOption = 'system' | 'user' | 'assistant' | 'developer';
502
502
  export type EnvironmentOptimizeFor = 'COST' | 'AVAILABILITY';
@@ -710,7 +710,7 @@ export type InfraProviderAccount = AwsProviderAccount | SnowflakeProviderAccount
710
710
  * +discriminator=type
711
711
  */
712
712
  export type SlackIntegrations = SlackWebhookIntegration | SlackBotIntegration;
713
- export type Input = AccountManifest | ClusterManifest | VirtualAccountManifest | PersonalAccessTokenManifest | WorkspaceManifest | ProviderIntegrations | Service | AsyncService | Workflow | Job | SparkJob | Helm | Volume | Notebook | SparkNotebook | Codeserver | SSHServer | RStudio | ApplicationSet | Intercept | MCPServerManifest | MLRepoManifest | ModelManifest | ArtifactManifest | DataDirectoryManifest | GatewayConfig | GatewayPolicyManifest | CacheConfig | HeaderRoutingConfig | TeamManifest | EnvironmentManifest | PolicyManifest | RoleManifest | RoleBindingManifest | AlertConfig | TracingProjectManifest | TracingApplicationManifest | ProviderAccounts | ChatPromptManifest | AgentSkillManifest | AWSTerraformConfig | GCPTerraformConfig | AzureTerraformConfig | GenericTerraformConfig | CommonToolsSettings | MCPGatewaySettings | AIFeaturesSettings | SSOSettings | SecuritySettings | TracingProjectsControlPlaneStorage | FeaturesSettings | ThemeSettings | ProvisioningSettings | SupportPortalSettings | GatewayInstallationManifest | SecretGroupManifest | IdentityProviderManifest | AgentIdentityManifest | OidcClientManifest | ModelConfig | MCPUserAuthInput | MCPUserAuthInputV2 | AgentManifestV2 | AgentChannelManifest;
713
+ export type Input = AccountManifest | ClusterManifest | VirtualAccountManifest | PersonalAccessTokenManifest | WorkspaceManifest | ProviderIntegrations | Service | AsyncService | Workflow | Job | SparkJob | Helm | Volume | Notebook | SparkNotebook | Codeserver | SSHServer | RStudio | ApplicationSet | Intercept | MCPServerManifest | MLRepoManifest | ModelManifest | ArtifactManifest | DataDirectoryManifest | GatewayConfig | GatewayPolicyManifest | CacheConfig | HeaderRoutingConfig | TeamManifest | EnvironmentManifest | PolicyManifest | RoleManifest | RoleBindingManifest | AlertConfig | TracingProjectManifest | TracingApplicationManifest | ProviderAccounts | ChatPromptManifest | AgentSkillManifest | AWSTerraformConfig | GCPTerraformConfig | AzureTerraformConfig | GenericTerraformConfig | CommonToolsSettings | MCPGatewaySettings | AIFeaturesSettings | SSOSettings | SecuritySettings | TracingProjectsControlPlaneStorage | FeaturesSettings | ThemeSettings | ProvisioningSettings | SupportPortalSettings | SkillScanningSettings | GatewayInstallationManifest | SecretGroupManifest | IdentityProviderManifest | AgentIdentityManifest | OidcClientManifest | ModelConfig | MCPUserAuthInput | MCPUserAuthInputV2 | AgentManifestV2 | AgentChannelManifest;
714
714
  /**
715
715
  * +label=Sync to Secret Manager
716
716
  * +sort=6
@@ -850,6 +850,13 @@ export type MCPServerOAuth2 = MCPServerOAuth2ProviderAuth0Settings & MCPServerOA
850
850
  * +sort=300
851
851
  */
852
852
  token_url?: string;
853
+ /**
854
+ * +label=Client Registration Type
855
+ * +usage=How TrueFoundry gets its OAuth client ID. Static: the client ID you enter. DCR: registered at the registration URL. CIMD: TrueFoundry's hosted Client ID Metadata Document URL.
856
+ * +sort=350
857
+ * +uiType=RadioPills
858
+ */
859
+ client_registration_type?: 'static' | 'dcr' | 'cimd';
853
860
  /**
854
861
  * +label=Client ID
855
862
  * +usage=client ID for OAuth2 or the TrueFoundry secret FQN containing the client ID.
@@ -2109,6 +2116,7 @@ export interface AWSExistingNetwork {
2109
2116
  * +label=Private Subnet IDs
2110
2117
  * +usage=List of existing private subnet IDs. ⚠️ Important: Number of private subnets should be equal to or more than number of availability zones, and at least one subnet should be present in each AZ
2111
2118
  * +sort=32
2119
+ * +uiType=TagsInput
2112
2120
  */
2113
2121
  private_subnets_ids: string[];
2114
2122
  }
@@ -2185,6 +2193,7 @@ export interface AWSNewNetwork {
2185
2193
  * +sort=32
2186
2194
  * +usage=Public subnets are used to run Load Balancers and NAT gateways. Atleast one public subnet is required
2187
2195
  * +uiProps={"enableSetDefaultValue":true}
2196
+ * +uiType=TagsInput
2188
2197
  */
2189
2198
  public_subnets_cidrs: string[];
2190
2199
  /**
@@ -2192,6 +2201,7 @@ export interface AWSNewNetwork {
2192
2201
  * +sort=33
2193
2202
  * +usage=Private subnets are used to run EKS nodes. Number of private subnets should be more than or equal to number of availability zones
2194
2203
  * +uiProps={"enableSetDefaultValue":true}
2204
+ * +uiType=TagsInput
2195
2205
  */
2196
2206
  private_subnets_cidrs: string[];
2197
2207
  }
@@ -2385,12 +2395,14 @@ export interface ComputePlaneLoadBalancer {
2385
2395
  * +label=Domains
2386
2396
  * +usage=FQDNs which will point to the balancer.
2387
2397
  * +sort=2
2398
+ * +uiType=TagsInput
2388
2399
  */
2389
2400
  domain_names?: string[];
2390
2401
  /**
2391
2402
  * +label=Certificate ARN
2392
2403
  * +usage=ARN of the SSL certificates to use for the load balancer.
2393
2404
  * +sort=3
2405
+ * +uiType=TagsInput
2394
2406
  */
2395
2407
  certificate_arns?: string[];
2396
2408
  }
@@ -2642,6 +2654,7 @@ export interface Email {
2642
2654
  * +usage=List of recipients' email addresses if the notification channel is Email.
2643
2655
  * +docs=Specify the emails to send alerts to
2644
2656
  * +sort=665
2657
+ * +uiType=TagsInput
2645
2658
  */
2646
2659
  to_emails: string[];
2647
2660
  }
@@ -2680,6 +2693,7 @@ export interface SlackBot {
2680
2693
  * +usage=List of channels to send messages to.
2681
2694
  * +message=2 to 80 lower case characters long alphanumeric word, may contain - or _ in between, optional leading #
2682
2695
  * +sort=665
2696
+ * +uiType=TagsInput
2683
2697
  */
2684
2698
  channels: string[];
2685
2699
  }
@@ -4256,11 +4270,17 @@ export interface AnthropicProviderAccount {
4256
4270
  * +uiProps={"disableEdit":true}
4257
4271
  */
4258
4272
  name: string;
4259
- auth_data?: AnthropicKeyAuth;
4273
+ /**
4274
+ * +label=Auth Data
4275
+ * +sort=200
4276
+ * +usage=Authentication data for the Anthropic model account
4277
+ * +discriminator=type
4278
+ */
4279
+ auth_data?: AnthropicKeyAuth | AnthropicWifAuth;
4260
4280
  /**
4261
4281
  * +label=Base URL
4262
4282
  * +sort=550
4263
- * +usage=Optional custom base URL for the Anthropic API. Must include the version path, e.g. https://my-proxy.example.com/v1. When set, requests are sent here instead of the default https://api.anthropic.com/v1.
4283
+ * +usage=Optional custom base URL for the Anthropic API. Must include the version path, e.g. https://my-proxy.example.com/v1. When set, requests are sent here instead of the default https://api.anthropic.com/v1. With Workload Identity Federation only the official API host https://api.anthropic.com/v1 is accepted.
4264
4284
  * +message=Base URL must not be empty
4265
4285
  * +isAdvanced=true
4266
4286
  */
@@ -4290,6 +4310,52 @@ export interface AnthropicProviderAccount {
4290
4310
  */
4291
4311
  discount_percent?: number;
4292
4312
  }
4313
+ /**
4314
+ * +label=Workload Identity Federation
4315
+ * +usage=Exchange a TrueFoundry-signed token for an Anthropic access token. Stores IDs only, no secrets.
4316
+ */
4317
+ export interface AnthropicWifAuth {
4318
+ /**
4319
+ * +value=workload-identity-federation
4320
+ */
4321
+ type: 'workload-identity-federation';
4322
+ /**
4323
+ * +label=Organization ID
4324
+ * +sort=100
4325
+ * +usage=Your Anthropic organization ID (a UUID). Shown on the federation rule's Test connection tab in the Anthropic Console.
4326
+ * +message=Organization ID must be a UUID of 8-4-4-4-12 hex digits, e.g. 01234567-89ab-cdef-0123-456789abcdef
4327
+ */
4328
+ organization_id: string;
4329
+ /**
4330
+ * +label=Federation Rule ID
4331
+ * +sort=200
4332
+ * +usage=ID of the Anthropic federation rule (fdrl_...). Shown on the federation rule's Test connection tab in the Anthropic Console.
4333
+ * +message=Federation rule ID must start with fdrl_ and contain no whitespace
4334
+ */
4335
+ federation_rule_id: string;
4336
+ /**
4337
+ * +label=Service Account ID
4338
+ * +sort=300
4339
+ * +usage=ID of the Anthropic service account (svac_...). Shown on the federation rule's Test connection tab in the Anthropic Console.
4340
+ * +message=Service account ID must start with svac_ and contain no whitespace
4341
+ */
4342
+ service_account_id: string;
4343
+ /**
4344
+ * +label=Workspace ID
4345
+ * +sort=400
4346
+ * +usage=ID of the Anthropic workspace (wrkspc_...). Shown on the federation rule's Test connection tab in the Anthropic Console.
4347
+ * +message=Workspace ID must start with wrkspc_ and contain no whitespace
4348
+ */
4349
+ workspace_id: string;
4350
+ /**
4351
+ * +label=Issuer
4352
+ * +sort=500
4353
+ * +usage=Only for your own gateway: the full issuer (iss) URL the gateway signs tokens with, e.g. https://my-gateway.example.com/acme/oauth/v1. Leave empty to use the gateway's configured issuer. TrueFoundry SaaS gateways use the fixed issuer https://gateway.truefoundry.ai/<tenant>/oauth/v1 and refuse accounts that set this.
4354
+ * +message=Issuer must be an https:// URL with no whitespace, query or fragment, at most 1024 characters
4355
+ * +isAdvanced=true
4356
+ */
4357
+ issuer?: string;
4358
+ }
4293
4359
  /**
4294
4360
  * +label=Anyscale Model
4295
4361
  * +icon=anyscale
@@ -4697,6 +4763,7 @@ export interface PythonBuild {
4697
4763
  * +usage=Debian packages to install via `apt get`.
4698
4764
  * In Python/YAML E.g. ["git", "ffmpeg", "htop"]
4699
4765
  * +placeholder=Enter a debian package name E.g. ffmpeg
4766
+ * +uiType=TagsInput
4700
4767
  */
4701
4768
  apt_packages?: string[];
4702
4769
  /**
@@ -4740,6 +4807,7 @@ export interface Pip {
4740
4807
  * +usage=Define pip package requirements.
4741
4808
  * In Python/YAML E.g. ["fastapi>=0.90,<1.0", "uvicorn"]
4742
4809
  * +placeholder=Enter a pip package name E.g. fastapi>=0.90,<1.0
4810
+ * +uiType=TagsInput
4743
4811
  */
4744
4812
  pip_packages?: string[];
4745
4813
  }
@@ -4890,6 +4958,7 @@ export interface HuggingfaceArtifactSource {
4890
4958
  /**
4891
4959
  * +label=Ignore Patterns
4892
4960
  * +usage=List of patterns to ignore while downloading the artifact
4961
+ * +uiType=TagsInput
4893
4962
  */
4894
4963
  ignore_patterns: string[];
4895
4964
  /**
@@ -5127,7 +5196,7 @@ export interface Port {
5127
5196
  * If you are running a gRPC server, select the `grpc` option.
5128
5197
  * This is only applicable if `expose=true`.
5129
5198
  */
5130
- app_protocol?: 'http' | 'grpc' | 'tcp';
5199
+ app_protocol?: 'http' | 'https' | 'grpc' | 'tcp';
5131
5200
  /**
5132
5201
  * +usage=Host e.g. ai.example.com, app.truefoundry.com
5133
5202
  * +message=Upto 253 characters, each part of host should be at most 63 characters long, can contain alphabets, digits and hypen, must begin and end with an alphanumeric characters. Parts must be separated by periods (.)
@@ -6496,7 +6565,7 @@ export interface CronSyncSchedule {
6496
6565
  * | |_______ day of month (1-31)
6497
6566
  * |_________ hour (0-23)
6498
6567
  * ```
6499
- * +message=Sync schedule must not specify a minute.
6568
+ * +message=Sync schedule must not specify a minute; hour interval cannot be 0.
6500
6569
  */
6501
6570
  expression: string;
6502
6571
  /**
@@ -7657,6 +7726,7 @@ export interface AzureExistingDNSZone {
7657
7726
  * +label=Domains
7658
7727
  * +usage=FQDNs which will point to the balancer.
7659
7728
  * +sort=3
7729
+ * +uiType=TagsInput
7660
7730
  */
7661
7731
  domain_names?: string[];
7662
7732
  }
@@ -8111,6 +8181,7 @@ export interface AzureNewDNSZone {
8111
8181
  * +label=Domains
8112
8182
  * +usage=FQDNs which will point to the balancer.
8113
8183
  * +sort=2
8184
+ * +uiType=TagsInput
8114
8185
  */
8115
8186
  domain_names?: string[];
8116
8187
  }
@@ -10865,6 +10936,7 @@ export interface ClusterManifest {
10865
10936
  * +icon=fa-globe:#68BBE3
10866
10937
  * +sort=40
10867
10938
  * +message=Domain URL should be valid domain or IP address
10939
+ * +uiType=TagsInput
10868
10940
  */
10869
10941
  base_domains?: string[];
10870
10942
  /**
@@ -10911,6 +10983,7 @@ export interface ClusterManifest {
10911
10983
  };
10912
10984
  spark_config?: SparkConfig;
10913
10985
  ingress_controller_config?: IngressControllerConfig;
10986
+ gateway_api_config?: GatewayApiConfig;
10914
10987
  /**
10915
10988
  * +label=Cluster Integration FQN
10916
10989
  * +sort=75
@@ -10996,6 +11069,27 @@ export interface IngressControllerConfig {
10996
11069
  */
10997
11070
  tls_enabled?: boolean;
10998
11071
  }
11072
+ /**
11073
+ * +label=Gateway API Config
11074
+ * +usage=Required when NETWORKING_CONTROLLER is httproute. Points HTTPRoutes at the cluster Gateway (e.g. NGINX Gateway Fabric).
11075
+ */
11076
+ export interface GatewayApiConfig {
11077
+ /**
11078
+ * +label=Gateway Name
11079
+ * +usage=Name of the Gateway resource HTTPRoutes should attach to via parentRefs.
11080
+ */
11081
+ gateway_name: string;
11082
+ /**
11083
+ * +label=Gateway Namespace
11084
+ * +usage=Namespace of the Gateway. Omit when the Gateway is in the same namespace as the HTTPRoute.
11085
+ */
11086
+ gateway_namespace?: string;
11087
+ /**
11088
+ * +label=Section Name
11089
+ * +usage=Optional Gateway listener sectionName for parentRefs.
11090
+ */
11091
+ section_name?: string;
11092
+ }
10999
11093
  /**
11000
11094
  * +label=Configured Nodepools
11001
11095
  * +usage=The nodepools that are already created in your cluster. This will be used to schedule your workloads on particular nodepools.
@@ -11537,7 +11631,7 @@ export interface DecisionClassificationStrategy {
11537
11631
  */
11538
11632
  type: 'decision-classifier';
11539
11633
  /**
11540
- * +usage=Catalog model FQN used to classify request complexity. Must be resolvable by this tenant, must be a decision model (not a virtual model), and must belong to a TypeSafe, OpenAI, OpenRouter, Perplexity, Databricks, Microsoft Foundry, or self-hosted model account.
11634
+ * +usage=Catalog model FQN used to classify request complexity. Must be resolvable by this tenant, must be a decision model (not a virtual model), and must belong to a TypeSafe, OpenAI, OpenRouter, Perplexity, Databricks, Microsoft Foundry, self-hosted model, or Google Gemini account.
11541
11635
  * +uiType=IntegrationSelect
11542
11636
  * +uiProps={"integrationType":"model", "valuePattern": "${providerAccount.name}/${manifest.name}", "filterConfig": {"model_types": ["decision"]}}
11543
11637
  * +sort=2
@@ -12562,6 +12656,7 @@ export interface TaskPythonBuild {
12562
12656
  * +usage=Define pip package requirements.
12563
12657
  * In Python/YAML E.g. ["fastapi>=0.90,<1.0", "uvicorn"]
12564
12658
  * +placeholder=Enter a pip package name E.g. fastapi>=0.90,<1.0
12659
+ * +uiType=TagsInput
12565
12660
  */
12566
12661
  pip_packages?: string[];
12567
12662
  /**
@@ -12569,6 +12664,7 @@ export interface TaskPythonBuild {
12569
12664
  * +usage=Debian packages to install via `apt get`.
12570
12665
  * In Python/YAML E.g. ["git", "ffmpeg", "htop"]
12571
12666
  * +placeholder=Enter a debian package name E.g. ffmpeg
12667
+ * +uiType=TagsInput
12572
12668
  */
12573
12669
  apt_packages?: string[];
12574
12670
  /**
@@ -13999,6 +14095,7 @@ export interface TaskPySparkBuild {
13999
14095
  * +usage=Define pip package requirements.
14000
14096
  * In Python/YAML E.g. ["fastapi>=0.90,<1.0", "uvicorn"]
14001
14097
  * +placeholder=Enter a pip package name E.g. fastapi>=0.90,<1.0
14098
+ * +uiType=TagsInput
14002
14099
  */
14003
14100
  pip_packages?: string[];
14004
14101
  /**
@@ -14006,6 +14103,7 @@ export interface TaskPySparkBuild {
14006
14103
  * +usage=Debian packages to install via `apt get`.
14007
14104
  * In Python/YAML E.g. ["git", "ffmpeg", "htop"]
14008
14105
  * +placeholder=Enter a debian package name E.g. ffmpeg
14106
+ * +uiType=TagsInput
14009
14107
  */
14010
14108
  apt_packages?: string[];
14011
14109
  }
@@ -14353,6 +14451,7 @@ export interface GCPExistingDNSZone {
14353
14451
  * +label=Domains
14354
14452
  * +usage=FQDNs which will point to the balancer.
14355
14453
  * +sort=2
14454
+ * +uiType=TagsInput
14356
14455
  */
14357
14456
  domain_names?: string[];
14358
14457
  }
@@ -14467,6 +14566,7 @@ export interface GCPNewDNSZone {
14467
14566
  * +label=Domains
14468
14567
  * +usage=FQDNs which will point to the balancer.
14469
14568
  * +sort=2
14569
+ * +uiType=TagsInput
14470
14570
  */
14471
14571
  domain_names?: string[];
14472
14572
  }
@@ -14531,6 +14631,7 @@ export interface GCPNewNetwork {
14531
14631
  service_range_name: string;
14532
14632
  /**
14533
14633
  * +label=Network Tags
14634
+ * +uiType=TagsInput
14534
14635
  */
14535
14636
  network_tags?: string[];
14536
14637
  }
@@ -15458,7 +15559,7 @@ export interface UserBudgetConfig {
15458
15559
  type: 'user-budget-config';
15459
15560
  owned_by?: BudgetV2UserOwner;
15460
15561
  /**
15461
- * +usage=Unique name for this budget
15562
+ * +usage=Unique name for this budget. Clients may send a short slug on create; the server stamps `{ownerSlug}/{short}` (owner may be an email). Both forms are accepted.
15462
15563
  * +label=Name
15463
15564
  * +sort=3
15464
15565
  */
@@ -18665,7 +18766,7 @@ export interface JWTBasedValidationConfig {
18665
18766
  jwks_uri: string;
18666
18767
  /**
18667
18768
  * +label=Token Lifetime (seconds)
18668
- * +usage=Lifetime of tokens TrueFoundry issues after exchanging a token from this provider.
18769
+ * +usage=Lifetime of tokens TrueFoundry issues after exchanging a token from this provider. Recommended default is 3600 (1 hour).
18669
18770
  * +sort=3000
18670
18771
  * +message=Must be between 60 and 3600 seconds.
18671
18772
  * +uiProps={"descriptionInline":true}
@@ -18696,6 +18797,7 @@ export interface JWTBasedValidationConfig {
18696
18797
  * +usage=OAuth scopes sent on authorize. An empty list sends no scope parameter. Microsoft Entra also needs the API scope of the app. Connect may apply defaults when scopes are omitted.
18697
18798
  * +sort=4300
18698
18799
  * +placeholder=e.g. openid profile email
18800
+ * +uiType=TagsInput
18699
18801
  */
18700
18802
  scopes?: string[];
18701
18803
  /**
@@ -18825,6 +18927,7 @@ export interface OktaCrossAppAccessSettings {
18825
18927
  * +usage=Scopes requested when obtaining the ID-JAG token.
18826
18928
  * +sort=3500
18827
18929
  * +uiProps={"descriptionInline":true}
18930
+ * +uiType=TagsInput
18828
18931
  */
18829
18932
  scopes?: string[];
18830
18933
  /**
@@ -19670,6 +19773,7 @@ export interface TfySecretsConfig {
19670
19773
  * +usage=Name of the secret group to store the virtual account token in
19671
19774
  * +message=Enter a name with 5 to 50 characters. It can include letters, numbers, and hyphens. Must not start with a digit. Hyphens can only be in between and not at the start or end. Must not have consecutive hyphens.
19672
19775
  * +sort=1
19776
+ * +uiType=Select
19673
19777
  */
19674
19778
  secret_group: string;
19675
19779
  /**
@@ -20647,6 +20751,9 @@ export interface Workflow {
20647
20751
  flyte_entities?: (FlyteTask | FlyteWorkflow | FlyteLaunchPlan)[];
20648
20752
  /**
20649
20753
  * +label=Alerts
20754
+ * +usage=Configure alerts to be sent when the workflow completes or fails
20755
+ * +icon=fa-bell
20756
+ * +isAdvanced=true
20650
20757
  */
20651
20758
  alerts?: WorkflowAlert[];
20652
20759
  }
@@ -20658,13 +20765,13 @@ export interface WorkflowAlert {
20658
20765
  notification_target?: NotificationTargetForAlertRule;
20659
20766
  /**
20660
20767
  * +label=On Completion
20661
- * +usage=Send an alert when the job completes
20768
+ * +usage=Send an alert when the workflow completes successfully
20662
20769
  * +sort=680
20663
20770
  */
20664
20771
  on_completion?: boolean;
20665
20772
  /**
20666
20773
  * +label=On Failure
20667
- * +usage=Send an alert when the job fails
20774
+ * +usage=Send an alert when the workflow fails, is aborted, or times out
20668
20775
  * +sort=690
20669
20776
  */
20670
20777
  on_failure?: boolean;
@@ -21523,23 +21630,11 @@ export interface McpServerSource {
21523
21630
  enabled_tools?: string[];
21524
21631
  /**
21525
21632
  * +label=Tool Slug
21526
- * +usage=Optional suffix used in virtual MCP tool names for this source. When unset, the gateway keeps the auto-generated suffix.
21633
+ * +usage=Suffix appended to this server's tool names. Defaults to an auto-generated suffix.
21634
+ * +message=1 to 16 lower case alphanumeric characters, may contain - in between
21635
+ * +sort=400
21527
21636
  */
21528
21637
  tool_slug?: string;
21529
- auth_data?: MCPServerHeaderOverrideAuth;
21530
- }
21531
- /**
21532
- * +label=Override authentication header
21533
- * +usage=Override authentication for this source server
21534
- */
21535
- export interface MCPServerHeaderOverrideAuth {
21536
- /**
21537
- * +value=header
21538
- */
21539
- type: 'header';
21540
- headers: {
21541
- [k: string]: string;
21542
- };
21543
21638
  }
21544
21639
  /**
21545
21640
  * +label=OpenAPI MCP Server
@@ -22180,6 +22275,7 @@ export interface ModelVersionEnvironment {
22180
22275
  /**
22181
22276
  * +label=PIP Packages
22182
22277
  * +usage=pip dependencies needed for running the model
22278
+ * +uiType=TagsInput
22183
22279
  */
22184
22280
  pip_packages?: string[];
22185
22281
  }
@@ -22351,18 +22447,21 @@ export interface PolicyFilters {
22351
22447
  * +label=Clusters
22352
22448
  * +usage=Cluster names where Policy applies
22353
22449
  * +message=3 to 32 lower case characters long alphanumeric word, may contain - in between, cannot start with a number
22450
+ * +uiType=TagsInput
22354
22451
  */
22355
22452
  cluster_names?: string[];
22356
22453
  /**
22357
22454
  * +label=Workspaces
22358
22455
  * +usage=Workspace names where Policy applies
22359
22456
  * +message=3 to 32 lower case characters long alphanumeric word, may contain - in between, cannot start with a number
22457
+ * +uiType=TagsInput
22360
22458
  */
22361
22459
  workspace_names?: string[];
22362
22460
  /**
22363
22461
  * +label=Environments
22364
22462
  * +usage=Environment names where Policy applies
22365
22463
  * +message=3 to 32 lower case characters long alphanumeric word, may contain - in between, cannot start with a number
22464
+ * +uiType=TagsInput
22366
22465
  */
22367
22466
  env_names?: string[];
22368
22467
  }
@@ -23026,11 +23125,17 @@ export interface OpenaiProviderAccount {
23026
23125
  * +uiProps={"disableEdit":true}
23027
23126
  */
23028
23127
  name: string;
23029
- auth_data?: OpenaiApiKeyAuth;
23128
+ /**
23129
+ * +label=Authentication Data
23130
+ * +sort=200
23131
+ * +usage=OpenAI authentication credentials
23132
+ * +discriminator=type
23133
+ */
23134
+ auth_data?: OpenaiApiKeyAuth | OpenaiWifAuth;
23030
23135
  /**
23031
23136
  * +label=Base URL
23032
23137
  * +sort=300
23033
- * +usage=Optional custom base URL for OpenAI API
23138
+ * +usage=Optional custom base URL for OpenAI API. With Workload Identity Federation only the official API host is accepted: https://api.openai.com/v1, or a regional endpoint such as https://eu.api.openai.com/v1.
23034
23139
  * +message=Base URL must not be empty
23035
23140
  */
23036
23141
  base_url?: string;
@@ -23059,6 +23164,46 @@ export interface OpenaiProviderAccount {
23059
23164
  */
23060
23165
  discount_percent?: number;
23061
23166
  }
23167
+ /**
23168
+ * +label=Workload Identity Federation
23169
+ * +icon=openai
23170
+ */
23171
+ export interface OpenaiWifAuth {
23172
+ /**
23173
+ * +value=workload-identity-federation
23174
+ */
23175
+ type: 'workload-identity-federation';
23176
+ /**
23177
+ * +label=Identity Provider ID
23178
+ * +sort=100
23179
+ * +usage=ID of the identity provider registered in your OpenAI organization (idp_...).
23180
+ * +message=Identity provider ID must start with idp_ and contain no whitespace
23181
+ */
23182
+ identity_provider_id: string;
23183
+ /**
23184
+ * +label=Service Account ID
23185
+ * +sort=200
23186
+ * +usage=Service account ID from the identity provider's mapping in OpenAI (svc_acct_... or user-...).
23187
+ * +message=Service account ID must not be empty
23188
+ */
23189
+ service_account_id: string;
23190
+ /**
23191
+ * +label=Audience
23192
+ * +sort=300
23193
+ * +usage=Must equal the Audience configured on your OpenAI workload identity provider. Defaults to https://api.openai.com/v1.
23194
+ * +message=Audience must not be empty or contain whitespace, and must be at most 1024 characters
23195
+ * +isAdvanced=true
23196
+ */
23197
+ audience?: string;
23198
+ /**
23199
+ * +label=Issuer
23200
+ * +sort=400
23201
+ * +usage=Only for your own gateway: the full issuer (iss) URL the gateway signs tokens with, e.g. https://my-gateway.example.com/acme/oauth/v1. Leave empty to use the gateway's configured issuer. TrueFoundry SaaS gateways use the fixed issuer https://gateway.truefoundry.ai/<tenant>/oauth/v1 and refuse accounts that set this.
23202
+ * +message=Issuer must be an https:// URL with no whitespace, query or fragment, at most 1024 characters
23203
+ * +isAdvanced=true
23204
+ */
23205
+ issuer?: string;
23206
+ }
23062
23207
  /**
23063
23208
  * +label=Self Hosted
23064
23209
  * +icon=puzzle-piece
@@ -24004,6 +24149,13 @@ export interface SSOSettings {
24004
24149
  * +uiType=Select
24005
24150
  */
24006
24151
  provider: 'custom' | 'google' | 'azure-ad' | 'auth0' | 'keycloak' | 'jumpcloud' | 'onelogin' | 'microsoft-ad-fs' | 'pingone' | 'rippling' | 'okta';
24152
+ /**
24153
+ * +label=Enable Cross App Access
24154
+ * +usage=Allow TrueFoundry OIDC to accept Okta Cross App Access ID-JAG token exchanges for platform access.
24155
+ * +sort=150
24156
+ * +uiType=Switch
24157
+ */
24158
+ enable_cross_app_access?: boolean;
24007
24159
  /**
24008
24160
  * +label=Authentication Configuration
24009
24161
  * +usage=Authentication configuration for the SSO provider, You can refer to the [docs](https://docs.truefoundry.com/docs/sso#integrate-sso-with-truefoundry) for more details.
@@ -24158,10 +24310,11 @@ export interface SecuritySettings {
24158
24310
  */
24159
24311
  enabled: boolean;
24160
24312
  /**
24161
- * +label=Maximum Expiry Time for Personal Access Token (PAT) in days
24162
- * +usage=Personal Access Tokens cannot be created with an expiry longer than this. Maximum allowed is 7000 days.
24313
+ * +label=Maximum Expiry Time for Personal Access Token (PAT)
24314
+ * +usage=Personal Access Tokens cannot be created with an expiry longer than this. Maximum allowed is 168000 hours (7000 days).
24163
24315
  * +sort=2
24164
- * +message=Maximum expiry time must be between 1 and 7000 days
24316
+ * +message=Maximum expiry time must be between 1 and 168000 hours
24317
+ * +uiType=Duration
24165
24318
  */
24166
24319
  max_pat_expiry_minutes: number;
24167
24320
  /**
@@ -24199,6 +24352,7 @@ export interface SecuritySettings {
24199
24352
  * +usage=Email addresses to receive security-related notifications.
24200
24353
  * +sort=7
24201
24354
  * +message=Must be a valid email address
24355
+ * +uiType=TagsInput
24202
24356
  */
24203
24357
  to_emails?: string[];
24204
24358
  access_restrictions?: SecurityAccessRestrictions;
@@ -24213,7 +24367,7 @@ export interface SecurityAccessRestrictions {
24213
24367
  * +usage=Limits TrueFoundry UI logins to the listed IPs/CIDRs. Does not restrict API or AI Gateway access.
24214
24368
  * Note: Include the IP address you are currently accessing from. If it is missing from the allowlist, you will not be able to save these settings.
24215
24369
  * +sort=1
24216
- * +uiType=Strings
24370
+ * +uiType=TagsInput
24217
24371
  * +placeholder=e.g. 203.0.113.10 or 192.168.1.0/24
24218
24372
  * +message=Each value must be a valid IPv4 or IPv6 address or CIDR range
24219
24373
  */
@@ -24347,6 +24501,37 @@ export interface SupportPortalSettings {
24347
24501
  */
24348
24502
  users?: string[];
24349
24503
  }
24504
+ /**
24505
+ * Describes how agent skills are scanned for security issues
24506
+ * +label=Skill Scanning Settings
24507
+ */
24508
+ export interface SkillScanningSettings {
24509
+ /**
24510
+ * +value=settings/skill-scanning
24511
+ */
24512
+ type: 'settings/skill-scanning';
24513
+ /**
24514
+ * +label=Enable Skill Scanning
24515
+ * +usage=Scan every new skill version for security issues.
24516
+ * +uiType=Switch
24517
+ * +uiProps={"descriptionInline":true}
24518
+ * +sort=1
24519
+ */
24520
+ enabled: boolean;
24521
+ /**
24522
+ * +label=Auto Review
24523
+ * +usage=When enabled, a passing skill is certified and a failing skill is rejected. When disabled, every scanned skill is marked for review.
24524
+ * +sort=2
24525
+ */
24526
+ auto_review?: {
24527
+ /**
24528
+ * +label=Failure Severity
24529
+ * +usage=A scan fails when its highest finding is at or above this severity.
24530
+ * +sort=1
24531
+ */
24532
+ severity: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
24533
+ };
24534
+ }
24350
24535
  export interface SecretGroupManifest {
24351
24536
  /**
24352
24537
  * +value=secret-group
@@ -24401,7 +24586,7 @@ export interface OidcClientManifest {
24401
24586
  * +sort=300
24402
24587
  * +uiType=Select
24403
24588
  */
24404
- client_type: 'confidential' | 'public';
24589
+ client_type: 'public' | 'confidential';
24405
24590
  /**
24406
24591
  * +label=Redirect URIs
24407
24592
  * +usage=Absolute URIs the authorization code may be returned to. No fragments.
@@ -24414,6 +24599,7 @@ export interface OidcClientManifest {
24414
24599
  * +usage=Scopes this client may request
24415
24600
  * +sort=500
24416
24601
  * +minItems=1
24602
+ * +uiType=TagsInput
24417
24603
  */
24418
24604
  allowed_scopes: string[];
24419
24605
  /**
@@ -24421,6 +24607,7 @@ export interface OidcClientManifest {
24421
24607
  * +usage=OAuth2 grants this client may use at the token endpoint
24422
24608
  * +sort=600
24423
24609
  * +minItems=1
24610
+ * +uiType=TagsInput
24424
24611
  */
24425
24612
  allowed_grant_types: ('authorization_code' | 'refresh_token' | 'client_credentials')[];
24426
24613
  /**
@@ -24429,7 +24616,7 @@ export interface OidcClientManifest {
24429
24616
  * +sort=700
24430
24617
  * +uiType=Select
24431
24618
  */
24432
- token_endpoint_auth_method: 'client_secret_basic' | 'client_secret_post' | 'none';
24619
+ token_endpoint_auth_method: 'none' | 'client_secret_basic' | 'client_secret_post';
24433
24620
  /**
24434
24621
  * +label=PKCE
24435
24622
  * +usage=required is the OAuth 2.1 default and is enforced for public clients
@@ -24844,35 +25031,30 @@ export interface OutboundAuthConnectionHeaderAuth {
24844
25031
  type: 'header';
24845
25032
  /**
24846
25033
  * +label=API Key Configuration
24847
- * +usage=One shared header value for every subject this connection applies to.
24848
- * +uiType=Hidden
25034
+ * +usage=Level at which this authentication will be applied. Values: global (default), per_user
25035
+ * +uiType=RadioPills
24849
25036
  * +sort=200
24850
25037
  */
24851
- auth_level: 'global';
25038
+ auth_level: 'global' | 'per_user';
24852
25039
  /**
24853
- * +usage=Map each header name to its shared value.
24854
- * +uiProps={"keyPlaceholder": "Authorization", "valuePlaceholder": "Enter Value", "addEmptyFieldOnCreate": true, "allowSecrets": true}
25040
+ * +usage=Map each header name to its value. For shared, enter the actual value. For individual, use a placeholder that will be filled in by each user (e.g. Bearer {{API_KEY}}).
25041
+ * +uiProps={"keyPlaceholder": "Authorization", "valuePlaceholder": "Bearer {{TOKEN}}", "addEmptyFieldOnCreate": true, "allowSecrets": true}
24855
25042
  */
24856
25043
  headers: {
24857
25044
  [k: string]: string;
24858
25045
  };
24859
25046
  }
24860
25047
  /**
24861
- * +label=In/Not-In Filter
25048
+ * +label=In Filter
24862
25049
  */
24863
25050
  export interface OutboundAuthConnectionInNotInFilter {
24864
25051
  /**
24865
25052
  * +usage=Match when the value is present in this list
24866
25053
  * +label=In
24867
25054
  * +sort=1
25055
+ * +uiType=TagsInput
24868
25056
  */
24869
25057
  in?: string[];
24870
- /**
24871
- * +usage=Match when the value is NOT present in this list
24872
- * +label=Not In
24873
- * +sort=2
24874
- */
24875
- not_in?: string[];
24876
25058
  }
24877
25059
  export interface OutboundAuthConnectionManifest {
24878
25060
  /**
@@ -24897,7 +25079,7 @@ export interface OutboundAuthConnectionManifest {
24897
25079
  /**
24898
25080
  * +sort=5
24899
25081
  */
24900
- auth_data: OutboundAuthConnectionHeaderAuth | MCPServerOAuth2;
25082
+ auth_data: OutboundAuthConnectionHeaderAuth | MCPServerOAuth2 | MCPServerPassthrough | MCPServerAwsSigV4Auth;
24901
25083
  }
24902
25084
  export interface OutboundAuthConnectionResource {
24903
25085
  type: 'mcp-server';
@@ -24907,7 +25089,7 @@ export interface OutboundAuthConnectionWhen {
24907
25089
  subjects: OutboundAuthConnectionSubjects;
24908
25090
  }
24909
25091
  /**
24910
- * A connection is either IN or NOT IN across all buckets. `*` in an `in` list means every subject of that type.
25092
+ * `*` in an `in` list means every subject of that type.
24911
25093
  */
24912
25094
  export interface OutboundAuthConnectionSubjects {
24913
25095
  users?: OutboundAuthConnectionInNotInFilter;