Skip to content

Commit 571ebfe

Browse files
authored
remove tools, agents and tracing projects (#13)
1 parent d289909 commit 571ebfe

File tree

2 files changed

+0
-130
lines changed

2 files changed

+0
-130
lines changed

src/CustomClient.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import {
2-
WrappedAgents,
3-
WrappedAgentVersions,
42
WrappedApplications,
53
WrappedArtifacts,
64
WrappedArtifactVersions,
@@ -10,9 +8,6 @@ import {
108
WrappedPrompts,
119
WrappedPromptVersions,
1210
WrappedSecretGroups,
13-
WrappedTools,
14-
WrappedToolVersions,
15-
WrappedTracingProjects,
1611
WrappedWorkspaces,
1712
} from "./api/resources/_WrappedClients";
1813
import { TrueFoundryClient as BaseTrueFoundryClient } from "./Client";
@@ -25,8 +20,6 @@ export interface TrueFoundryClientOptions extends Omit<BaseTrueFoundryClient.Opt
2520

2621
export class TrueFoundryClient extends BaseTrueFoundryClient {
2722
protected readonly _options: BaseTrueFoundryClient.Options;
28-
protected _agents: WrappedAgents | undefined;
29-
protected _agentVersions: WrappedAgentVersions | undefined;
3023
protected _applications: WrappedApplications | undefined;
3124
protected _artifacts: WrappedArtifacts | undefined;
3225
protected _artifactVersions: WrappedArtifactVersions | undefined;
@@ -36,9 +29,6 @@ export class TrueFoundryClient extends BaseTrueFoundryClient {
3629
protected _prompts: WrappedPrompts | undefined;
3730
protected _promptVersions: WrappedPromptVersions | undefined;
3831
protected _secretGroups: WrappedSecretGroups | undefined;
39-
protected _tools: WrappedTools | undefined;
40-
protected _toolVersions: WrappedToolVersions | undefined;
41-
protected _tracingProjects: WrappedTracingProjects | undefined;
4232
protected _workspaces: WrappedWorkspaces | undefined;
4333

4434
constructor(_options: TrueFoundryClientOptions) {
@@ -47,14 +37,6 @@ export class TrueFoundryClient extends BaseTrueFoundryClient {
4737
this._options = options;
4838
}
4939

50-
public get agents(): WrappedAgents {
51-
return (this._agents ??= new WrappedAgents(this._options));
52-
}
53-
54-
public get agentVersions(): WrappedAgentVersions {
55-
return (this._agentVersions ??= new WrappedAgentVersions(this._options));
56-
}
57-
5840
public get applications(): WrappedApplications {
5941
return (this._applications ??= new WrappedApplications(this._options));
6042
}
@@ -91,18 +73,6 @@ export class TrueFoundryClient extends BaseTrueFoundryClient {
9173
return (this._secretGroups ??= new WrappedSecretGroups(this._options));
9274
}
9375

94-
public get tools(): WrappedTools {
95-
return (this._tools ??= new WrappedTools(this._options));
96-
}
97-
98-
public get toolVersions(): WrappedToolVersions {
99-
return (this._toolVersions ??= new WrappedToolVersions(this._options));
100-
}
101-
102-
public get tracingProjects(): WrappedTracingProjects {
103-
return (this._tracingProjects ??= new WrappedTracingProjects(this._options));
104-
}
105-
10676
public get workspaces(): WrappedWorkspaces {
10777
return (this._workspaces ??= new WrappedWorkspaces(this._options));
10878
}

src/api/resources/_WrappedClients.ts

Lines changed: 0 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -36,46 +36,6 @@ async function getByFqn<T>(client: HasAsyncListMethod<T>, fqn: string, requestOp
3636
return result;
3737
}
3838

39-
export class WrappedAgents extends Agents {
40-
/**
41-
* Get agent API
42-
*
43-
* @param {string} fqn
44-
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
45-
*
46-
* @throws {@link TrueFoundry.UnprocessableEntityError}
47-
*
48-
* @example
49-
* await client.v1.agents.getByFqn("fqn")
50-
*/
51-
public async getByFqn(
52-
fqn: string,
53-
requestOptions?: Agents.RequestOptions,
54-
): Promise<TrueFoundry.GetAgentResponse> {
55-
return { data: await getByFqn(this, fqn, requestOptions) }
56-
}
57-
}
58-
59-
export class WrappedAgentVersions extends AgentVersions {
60-
/**
61-
* Get agent version API
62-
*
63-
* @param {string} fqn
64-
* @param {AgentVersions.RequestOptions} requestOptions - Request-specific configuration.
65-
*
66-
* @throws {@link TrueFoundry.UnprocessableEntityError}
67-
*
68-
* @example
69-
* await client.v1.agentVersions.getByFqn("fqn")
70-
*/
71-
public async getByFqn(
72-
fqn: string,
73-
requestOptions?: AgentVersions.RequestOptions,
74-
): Promise<TrueFoundry.GetAgentVersionResponse> {
75-
return { data: await getByFqn(this, fqn, requestOptions) }
76-
}
77-
}
78-
7939
export class WrappedApplications extends Applications {
8040
/**
8141
* Get application API
@@ -256,66 +216,6 @@ export class WrappedSecretGroups extends SecretGroups {
256216
}
257217
}
258218

259-
export class WrappedTools extends Tools {
260-
/**
261-
* Get tool API
262-
*
263-
* @param {string} fqn
264-
* @param {Tools.RequestOptions} requestOptions - Request-specific configuration.
265-
*
266-
* @throws {@link TrueFoundry.UnprocessableEntityError}
267-
*
268-
* @example
269-
* await client.v1.tools.getByFqn("fqn")
270-
*/
271-
public async getByFqn(
272-
fqn: string,
273-
requestOptions?: Tools.RequestOptions,
274-
): Promise<TrueFoundry.GetToolResponse> {
275-
return { data: await getByFqn(this, fqn, requestOptions) }
276-
}
277-
}
278-
279-
export class WrappedToolVersions extends ToolVersions {
280-
/**
281-
* Get tool version API
282-
*
283-
* @param {string} fqn
284-
* @param {ToolVersions.RequestOptions} requestOptions - Request-specific configuration.
285-
*
286-
* @throws {@link TrueFoundry.UnprocessableEntityError}
287-
*
288-
* @example
289-
* await client.v1.toolVersions.getByFqn("fqn")
290-
*/
291-
public async getByFqn(
292-
fqn: string,
293-
requestOptions?: ToolVersions.RequestOptions,
294-
): Promise<TrueFoundry.GetToolVersionResponse> {
295-
return { data: await getByFqn(this, fqn, requestOptions) }
296-
}
297-
}
298-
299-
export class WrappedTracingProjects extends TracingProjects {
300-
/**
301-
* Get tracing project API
302-
*
303-
* @param {string} fqn
304-
* @param {TracingProjects.RequestOptions} requestOptions - Request-specific configuration.
305-
*
306-
* @throws {@link TrueFoundry.UnprocessableEntityError}
307-
*
308-
* @example
309-
* await client.v1.tracingProjects.getByFqn("fqn")
310-
*/
311-
public async getByFqn(
312-
fqn: string,
313-
requestOptions?: TracingProjects.RequestOptions,
314-
): Promise<TrueFoundry.GetTracingProjectResponse> {
315-
return { data: await getByFqn(this, fqn, requestOptions) }
316-
}
317-
}
318-
319219
export class WrappedWorkspaces extends Workspaces {
320220
/**
321221
* Get workspace API

0 commit comments

Comments
 (0)