Skip to content

Commit 8e0ead6

Browse files
committed
SDK regeneration
1 parent d289909 commit 8e0ead6

11 files changed

+106
-30
lines changed

src/api/types/AwsBedrockGuardrailConfig.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ import * as TrueFoundry from "../index";
1111
export interface AwsBedrockGuardrailConfig extends TrueFoundry.BaseGuardrailConfig {
1212
/** +value=integration/guardrail-config/aws-bedrock */
1313
type?: "integration/guardrail-config/aws-bedrock";
14+
/**
15+
* +label=Operation
16+
* +usage=The operation type to use for the Guardrail. Validate guardrails are used to validate requests and mutate can validate as well as mutate requests.
17+
* Validate guardrails are run in parallel while mutate guardrails are run sequentially.
18+
* +uiType=Select
19+
* +sort=50
20+
*/
21+
operation?: TrueFoundry.AwsBedrockGuardrailConfigOperation;
1422
/**
1523
* +label=AWS Account Auth Data
1624
* +usage=Authentication data for the AWS account
1725
*/
1826
auth_data?: TrueFoundry.AwsBedrockGuardrailConfigAuthData;
19-
region?: TrueFoundry.AwsRegion;
2027
/**
2128
* +label=Guardrail ID
2229
* +usage=The ID of the Guardrail to use.
@@ -27,9 +34,5 @@ export interface AwsBedrockGuardrailConfig extends TrueFoundry.BaseGuardrailConf
2734
* +usage=The version of the Guardrail to use.
2835
*/
2936
guardrail_version?: string;
30-
/**
31-
* +label=Redact PII
32-
* +usage=Whether to redact PII from the response. If this is true, your request will be transformed to redact PII from the response else a validation error will be returned.
33-
*/
34-
redact_pii?: boolean;
37+
region?: TrueFoundry.AwsRegion;
3538
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* +label=Operation
7+
* +usage=The operation type to use for the Guardrail. Validate guardrails are used to validate requests and mutate can validate as well as mutate requests.
8+
* Validate guardrails are run in parallel while mutate guardrails are run sequentially.
9+
* +uiType=Select
10+
* +sort=50
11+
*/
12+
export type AwsBedrockGuardrailConfigOperation = "validate" | "mutate";
13+
export const AwsBedrockGuardrailConfigOperation = {
14+
Validate: "validate",
15+
Mutate: "mutate",
16+
} as const;

src/api/types/CustomGuardrailConfig.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,43 @@ import * as TrueFoundry from "../index";
1111
export interface CustomGuardrailConfig extends TrueFoundry.BaseGuardrailConfig {
1212
/** +value=integration/guardrail-config/custom */
1313
type?: "integration/guardrail-config/custom";
14+
/**
15+
* +label=Operation
16+
* +usage=The operation type to use for the Guardrail. Validate guardrails are used to validate requests and mutate can validate as well as mutate requests.
17+
* Validate guardrails are run in parallel while mutate guardrails are run sequentially.
18+
* +uiType=Select
19+
* +sort=100
20+
*/
21+
operation?: TrueFoundry.CustomGuardrailConfigOperation;
22+
/**
23+
* +label=Target
24+
* +usage=Specify whether the guardrail should be applied to the request or response. Guardrails with target "Request" can be only used in input guardrails and guardrails with target "Response" can only be used in output guardrails.
25+
* +uiType=Select
26+
* +sort=200
27+
*/
28+
target?: TrueFoundry.CustomGuardrailConfigTarget;
1429
/**
1530
* +label=URL
31+
* +sort=300
1632
* +usage=The URL of the Guardrail to send a post request to.
1733
*/
1834
url?: string;
1935
/**
2036
* +label=Auth Data
37+
* +sort=450
2138
* +usage=Authentication data for the Guardrail Server.
2239
*/
2340
auth_data?: TrueFoundry.CustomGuardrailConfigAuthData;
2441
/**
2542
* +label=Headers
43+
* +sort=500
2644
* +usage=Headers for the Guardrail Server. Forwarded to the Guardrail Server as is. For example: `{"Authorization": "APIKey <token>"}`
2745
*/
2846
headers?: Record<string, string>;
29-
/**
30-
* +label=Redact PII
31-
* +usage=Whether to redact PII from the response. If this is true, your request will be transformed to redact PII from the response else a validation error will be returned.
32-
*/
33-
redact_pii?: boolean;
3447
/**
3548
* +label=Config
49+
* +sort=600
50+
* +uiType=JsonInput
3651
* +usage=The config for the Guardrail Server. This is a JSON object that will be sent as a config to Guardrail Server along with the request.
3752
*/
3853
config?: Record<string, unknown>;

src/api/types/CustomGuardrailConfigAuthData.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as TrueFoundry from "../index";
66

77
/**
88
* +label=Auth Data
9+
* +sort=450
910
* +usage=Authentication data for the Guardrail Server.
1011
*/
1112
export type CustomGuardrailConfigAuthData = TrueFoundry.CustomBasicAuth | TrueFoundry.CustomBearerAuth;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* +label=Operation
7+
* +usage=The operation type to use for the Guardrail. Validate guardrails are used to validate requests and mutate can validate as well as mutate requests.
8+
* Validate guardrails are run in parallel while mutate guardrails are run sequentially.
9+
* +uiType=Select
10+
* +sort=100
11+
*/
12+
export type CustomGuardrailConfigOperation = "validate" | "mutate";
13+
export const CustomGuardrailConfigOperation = {
14+
Validate: "validate",
15+
Mutate: "mutate",
16+
} as const;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
/**
6+
* +label=Target
7+
* +usage=Specify whether the guardrail should be applied to the request or response. Guardrails with target "Request" can be only used in input guardrails and guardrails with target "Response" can only be used in output guardrails.
8+
* +uiType=Select
9+
* +sort=200
10+
*/
11+
export type CustomGuardrailConfigTarget = "request" | "response";
12+
export const CustomGuardrailConfigTarget = {
13+
Request: "request",
14+
Response: "response",
15+
} as const;

src/api/types/DynamicVolumeConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
/**
6-
* +label=Dynamic Volume Config
6+
* +label=Create new volume
77
*/
88
export interface DynamicVolumeConfig {
99
/**

src/api/types/OpenAiModerationsGuardrailConfig.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,27 @@ export interface OpenAiModerationsGuardrailConfig extends TrueFoundry.BaseGuardr
1212
/**
1313
* +value=integration/guardrail-config/openai-moderations
1414
* +sort=50
15+
* +uiType=Hidden
1516
*/
1617
type?: "integration/guardrail-config/openai-moderations";
17-
auth_data?: TrueFoundry.OpenaiApiKeyAuth;
1818
/**
1919
* +label=Base URL
20-
* +sort=300
21-
* +usage=Optional custom base URL for OpenAI API
22-
* +message=Base URL must not be empty
20+
* +sort=100
21+
* +usage=Optional custom base URL for OpenAI API. If not provided, the default base URL will be used.
2322
*/
2423
base_url?: string;
24+
auth_data?: TrueFoundry.OpenaiApiKeyAuth;
2525
/**
2626
* +label=OpenAI Moderation Model
27-
* +sort=400
27+
* +sort=300
2828
* +usage=The model to use for the OpenAI Moderation API.
2929
*/
3030
model?: string;
3131
/**
3232
* +label=Category Thresholds
33-
* +sort=500
33+
* +sort=400
3434
* +usage=The thresholds for the OpenAI Moderation API.
35+
* +uiType=Hidden
3536
*/
3637
category_thresholds?: Record<string, TrueFoundry.OpenAiModerationsGuardrailConfigCategoryThresholdsValue>;
3738
}

src/api/types/StaticVolumeConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
/**
6-
* +label=Static Volume Config
6+
* +label=Use existing volume
77
*/
88
export interface StaticVolumeConfig {
99
/**

src/api/types/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ export * from "./AmqpInputConfig";
124124
export * from "./AmqpMetricConfig";
125125
export * from "./AmqpOutputConfig";
126126
export * from "./AwsAccessKeyAuth";
127+
export * from "./AwsBedrockGuardrailConfigOperation";
127128
export * from "./AwsBedrockGuardrailConfigAuthData";
128129
export * from "./AwsBedrockGuardrailConfig";
129130
export * from "./AwsInferentia";
@@ -229,6 +230,8 @@ export * from "./CronMetric";
229230
export * from "./CustomBasicAuth";
230231
export * from "./CustomBearerAuth";
231232
export * from "./CustomBlobStorage";
233+
export * from "./CustomGuardrailConfigOperation";
234+
export * from "./CustomGuardrailConfigTarget";
232235
export * from "./CustomGuardrailConfigAuthData";
233236
export * from "./CustomGuardrailConfig";
234237
export * from "./CustomHelmRepo";

0 commit comments

Comments
 (0)