Skip to content

Commit eecd34d

Browse files
committed
SDK regeneration
1 parent 559b89d commit eecd34d

File tree

52 files changed

+401
-151
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+401
-151
lines changed

reference.md

Lines changed: 2 additions & 10 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
```
@@ -8527,7 +8519,7 @@ await client.internal.workflows.executeWorkflow("applicationId");
85278519

85288520
## Internal ArtifactVersions
85298521

8530-
<details><summary><code>client.internal.artifactVersions.<a href="/src/api/resources/internal/resources/artifactVersions/client/Client.ts">list</a>({ ...params }) -> core.Page<TrueFoundry.InternalListArtifactVersionResponseDataItem></code></summary>
8522+
<details><summary><code>client.internal.artifactVersions.<a href="/src/api/resources/internal/resources/artifactVersions/client/Client.ts">list</a>({ ...params }) -> core.Page<TrueFoundry.InternalListArtifactVersionsResponseDataItem></code></summary>
85318523
<dl>
85328524
<dd>
85338525

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,13 +306,19 @@ export class AgentVersions {
306306
async (
307307
request: TrueFoundry.AgentVersionsListRequest,
308308
): Promise<core.WithRawResponse<TrueFoundry.ListAgentVersionsResponse>> => {
309-
const { agent_id: agentId, fqn, offset, limit } = request;
309+
const { fqn, agent_id: agentId, ml_repo_id: mlRepoId, name, offset, limit } = request;
310310
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
311+
if (fqn != null) {
312+
_queryParams["fqn"] = fqn;
313+
}
311314
if (agentId != null) {
312315
_queryParams["agent_id"] = agentId;
313316
}
314-
if (fqn != null) {
315-
_queryParams["fqn"] = fqn;
317+
if (mlRepoId != null) {
318+
_queryParams["ml_repo_id"] = mlRepoId;
319+
}
320+
if (name != null) {
321+
_queryParams["name"] = name;
316322
}
317323
if (offset != null) {
318324
_queryParams["offset"] = offset.toString();

src/api/resources/agentVersions/client/requests/AgentVersionsListRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
* {}
88
*/
99
export interface AgentVersionsListRequest {
10-
agent_id?: string;
1110
fqn?: string;
11+
agent_id?: string;
12+
ml_repo_id?: string;
13+
name?: string;
1214
offset?: number;
1315
limit?: number;
1416
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,11 @@ export class Agents {
210210
async (
211211
request: TrueFoundry.AgentsListRequest,
212212
): Promise<core.WithRawResponse<TrueFoundry.ListAgentsResponse>> => {
213-
const { ml_repo_id: mlRepoId, name, offset, limit } = request;
213+
const { fqn, ml_repo_id: mlRepoId, name, offset, limit } = request;
214214
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
215+
if (fqn != null) {
216+
_queryParams["fqn"] = fqn;
217+
}
215218
if (mlRepoId != null) {
216219
_queryParams["ml_repo_id"] = mlRepoId;
217220
}

src/api/resources/agents/client/requests/AgentsListRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* {}
88
*/
99
export interface AgentsListRequest {
10+
fqn?: string;
1011
ml_repo_id?: string;
1112
name?: string;
1213
offset?: number;

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

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -220,28 +220,30 @@ export class ArtifactVersions {
220220
const list = core.HttpResponsePromise.interceptFunction(
221221
async (
222222
request: TrueFoundry.ArtifactVersionsListRequest,
223-
): Promise<core.WithRawResponse<TrueFoundry.ListArtifactVersionResponse>> => {
223+
): Promise<core.WithRawResponse<TrueFoundry.ListArtifactVersionsResponse>> => {
224224
const {
225-
artifact_id: artifactId,
226225
fqn,
227-
offset,
228-
limit,
226+
artifact_id: artifactId,
227+
ml_repo_id: mlRepoId,
228+
name,
229229
run_ids: runIds,
230230
run_steps: runSteps,
231+
offset,
232+
limit,
231233
include_internal_metadata: includeInternalMetadata,
232234
} = request;
233235
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
234-
if (artifactId != null) {
235-
_queryParams["artifact_id"] = artifactId;
236-
}
237236
if (fqn != null) {
238237
_queryParams["fqn"] = fqn;
239238
}
240-
if (offset != null) {
241-
_queryParams["offset"] = offset.toString();
239+
if (artifactId != null) {
240+
_queryParams["artifact_id"] = artifactId;
242241
}
243-
if (limit != null) {
244-
_queryParams["limit"] = limit.toString();
242+
if (mlRepoId != null) {
243+
_queryParams["ml_repo_id"] = mlRepoId;
244+
}
245+
if (name != null) {
246+
_queryParams["name"] = name;
245247
}
246248
if (runIds != null) {
247249
if (Array.isArray(runIds)) {
@@ -257,6 +259,12 @@ export class ArtifactVersions {
257259
_queryParams["run_steps"] = runSteps.toString();
258260
}
259261
}
262+
if (offset != null) {
263+
_queryParams["offset"] = offset.toString();
264+
}
265+
if (limit != null) {
266+
_queryParams["limit"] = limit.toString();
267+
}
260268
if (includeInternalMetadata != null) {
261269
_queryParams["include_internal_metadata"] = includeInternalMetadata.toString();
262270
}
@@ -287,7 +295,7 @@ export class ArtifactVersions {
287295
});
288296
if (_response.ok) {
289297
return {
290-
data: _response.body as TrueFoundry.ListArtifactVersionResponse,
298+
data: _response.body as TrueFoundry.ListArtifactVersionsResponse,
291299
rawResponse: _response.rawResponse,
292300
};
293301
}
@@ -327,7 +335,7 @@ export class ArtifactVersions {
327335
);
328336
let _offset = request?.offset != null ? request?.offset : 0;
329337
const dataWithRawResponse = await list(request).withRawResponse();
330-
return new core.Pageable<TrueFoundry.ListArtifactVersionResponse, TrueFoundry.ArtifactVersion>({
338+
return new core.Pageable<TrueFoundry.ListArtifactVersionsResponse, TrueFoundry.ArtifactVersion>({
331339
response: dataWithRawResponse.data,
332340
rawResponse: dataWithRawResponse.rawResponse,
333341
hasNextPage: (response) => (response?.data ?? []).length > 0,

src/api/resources/artifactVersions/client/requests/ArtifactVersionsListRequest.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
* {}
88
*/
99
export interface ArtifactVersionsListRequest {
10-
artifact_id?: string;
1110
fqn?: string;
12-
offset?: number;
13-
limit?: number;
11+
artifact_id?: string;
12+
ml_repo_id?: string;
13+
name?: string;
1414
run_ids?: string | string[];
1515
run_steps?: number | number[];
16+
offset?: number;
17+
limit?: number;
1618
include_internal_metadata?: boolean;
1719
}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,11 @@ export class Artifacts {
212212
async (
213213
request: TrueFoundry.ArtifactsListRequest,
214214
): Promise<core.WithRawResponse<TrueFoundry.ListArtifactsResponse>> => {
215-
const { ml_repo_id: mlRepoId, name, offset, limit, run_id: runId } = request;
215+
const { fqn, ml_repo_id: mlRepoId, name, offset, limit, run_id: runId } = request;
216216
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
217+
if (fqn != null) {
218+
_queryParams["fqn"] = fqn;
219+
}
217220
if (mlRepoId != null) {
218221
_queryParams["ml_repo_id"] = mlRepoId;
219222
}

src/api/resources/artifacts/client/requests/ArtifactsListRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* {}
88
*/
99
export interface ArtifactsListRequest {
10+
fqn?: string;
1011
ml_repo_id?: string;
1112
name?: string;
1213
offset?: number;

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,11 @@ export class DataDirectories {
254254
async (
255255
request: TrueFoundry.DataDirectoriesListRequest,
256256
): Promise<core.WithRawResponse<TrueFoundry.ListDataDirectoriesResponse>> => {
257-
const { ml_repo_id: mlRepoId, name, limit, offset } = request;
257+
const { fqn, ml_repo_id: mlRepoId, name, limit, offset } = request;
258258
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
259+
if (fqn != null) {
260+
_queryParams["fqn"] = fqn;
261+
}
259262
if (mlRepoId != null) {
260263
_queryParams["ml_repo_id"] = mlRepoId;
261264
}

0 commit comments

Comments
 (0)