Skip to content

Commit 7fc33a0

Browse files
committed
SDK regeneration
1 parent 559b89d commit 7fc33a0

24 files changed

+241
-70
lines changed

reference.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4198,15 +4198,7 @@ Creates or updates an MLRepo entity based on the provided manifest.
41984198
```typescript
41994199
await client.mlRepos.createOrUpdate({
42004200
manifest: {
4201-
type: "ml-repo",
4202-
name: "name",
4203-
storage_integration_fqn: "storage_integration_fqn",
4204-
collaborators: [
4205-
{
4206-
subject: "subject",
4207-
role_id: "role_id",
4208-
},
4209-
],
4201+
key: "value",
42104202
},
42114203
});
42124204
```

src/api/resources/mlRepos/client/Client.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,7 @@ export class MlRepos {
4545
* @example
4646
* await client.mlRepos.createOrUpdate({
4747
* manifest: {
48-
* type: "ml-repo",
49-
* name: "name",
50-
* storage_integration_fqn: "storage_integration_fqn",
51-
* collaborators: [{
52-
* subject: "subject",
53-
* role_id: "role_id"
54-
* }]
48+
* "key": "value"
5549
* }
5650
* })
5751
*/

src/api/resources/mlRepos/client/requests/ApplyMlRepoRequest.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,15 @@
22
* This file was auto-generated by Fern from our API Definition.
33
*/
44

5-
import * as TrueFoundry from "../../../../index";
6-
75
/**
86
* @example
97
* {
108
* manifest: {
11-
* type: "ml-repo",
12-
* name: "name",
13-
* storage_integration_fqn: "storage_integration_fqn",
14-
* collaborators: [{
15-
* subject: "subject",
16-
* role_id: "role_id"
17-
* }]
9+
* "key": "value"
1810
* }
1911
* }
2012
*/
2113
export interface ApplyMlRepoRequest {
2214
/** MLRepo manifest */
23-
manifest: TrueFoundry.MlRepoManifest;
15+
manifest: Record<string, unknown>;
2416
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as TrueFoundry from "../index";
6+
7+
/**
8+
* +label=AWS Bedrock Guardrail Config
9+
* +icon=aws
10+
*/
11+
export interface AwsBedrockGuardrailConfig extends TrueFoundry.BaseGuardrailConfig {
12+
/** +value=integration/guardrail-config/aws-bedrock */
13+
type?: "integration/guardrail-config/aws-bedrock";
14+
/**
15+
* +label=AWS Account Auth Data
16+
* +usage=Authentication data for the AWS account
17+
*/
18+
auth_data?: TrueFoundry.AwsBedrockGuardrailConfigAuthData;
19+
region?: TrueFoundry.AwsRegion;
20+
/**
21+
* +label=Guardrail ID
22+
* +usage=The ID of the Guardrail to use.
23+
*/
24+
guardrail_id?: string;
25+
/**
26+
* +label=Guardrail Version
27+
* +usage=The version of the Guardrail to use.
28+
*/
29+
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;
35+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as TrueFoundry from "../index";
6+
7+
/**
8+
* +label=AWS Account Auth Data
9+
* +usage=Authentication data for the AWS account
10+
*/
11+
export type AwsBedrockGuardrailConfigAuthData = TrueFoundry.AwsAccessKeyBasedAuth | TrueFoundry.AwsAssumedRoleBasedAuth;

src/api/types/BaseGuardrailConfig.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
export interface BaseGuardrailConfig {
6+
/**
7+
* +label=Name
8+
* +sort=50
9+
* +usage=The name of the Guardrail Config.
10+
* +message=3 to 32 lower case characters long alphanumeric word, may contain - in between, cannot start with a number
11+
* +uiProps={"disableEdit":true}
12+
*/
13+
name: string;
14+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as TrueFoundry from "../index";
6+
7+
/**
8+
* +label=Custom Guardrail Config
9+
* +icon=custom
10+
*/
11+
export interface CustomGuardrailConfig extends TrueFoundry.BaseGuardrailConfig {
12+
/** +value=integration/guardrail-config/custom */
13+
type?: "integration/guardrail-config/custom";
14+
/**
15+
* +label=URL
16+
* +usage=The URL of the Guardrail to send a post request to.
17+
*/
18+
url?: string;
19+
/**
20+
* +label=Auth Data
21+
* +usage=Authentication data for the Guardrail Server.
22+
*/
23+
auth_data?: TrueFoundry.CustomGuardrailConfigAuthData;
24+
/**
25+
* +label=Headers
26+
* +usage=Headers for the Guardrail Server. Forwarded to the Guardrail Server as is. For example: `{"Authorization": "APIKey <token>"}`
27+
*/
28+
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;
34+
/**
35+
* +label=Config
36+
* +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.
37+
*/
38+
config?: Record<string, unknown>;
39+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* This file was auto-generated by Fern from our API Definition.
3+
*/
4+
5+
import * as TrueFoundry from "../index";
6+
7+
/**
8+
* +label=Auth Data
9+
* +usage=Authentication data for the Guardrail Server.
10+
*/
11+
export type CustomGuardrailConfigAuthData = TrueFoundry.CustomBasicAuth | TrueFoundry.CustomBearerAuth;

src/api/types/GuardrailConfig.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/api/types/GuardrailConfigAction.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)