Skip to content

Commit 55de876

Browse files
authored
improvement(tools): stop exporting tool types used only in their own file (#8597)
- Drop `export` from 406 tool types referenced only inside their own types.ts - Delete 27 tool types used nowhere, plus 5 private param types only they referenced - Remove the dead `DataverseResponse` re-export from microsoft_dynamics_365/index.ts - Shrink check-unused-exports baseline by 434 entries; `export const` output schemas untouched
1 parent 81a4256 commit 55de876

108 files changed

Lines changed: 406 additions & 1089 deletions

File tree

Some content is hidden

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

‎apps/sim/tools/a2a/types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { A2AAgentCardOutput, A2ATaskOutput } from '@/lib/a2a/client'
22
import type { UserFile } from '@/executor/types'
33
import type { OutputProperty, ToolResponse } from '@/tools/types'
44

5-
export interface A2ABaseParams {
5+
interface A2ABaseParams {
66
agentUrl: string
77
apiKey?: string
88
}

‎apps/sim/tools/affinity/types.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface AffinityPagination {
88
}
99

1010
/** Cursor outputs every collection tool declares alongside its rows. */
11-
export interface AffinityCollectionMeta {
11+
interface AffinityCollectionMeta {
1212
count: number
1313
nextCursor: string | null
1414
prevCursor: string | null
@@ -26,7 +26,7 @@ export interface AffinityEntityResponse<T extends Record<string, unknown>> exten
2626
}
2727

2828
/** Every tool authenticates with a workspace API key sent as a bearer token. */
29-
export interface AffinityAuthParams {
29+
interface AffinityAuthParams {
3030
apiKey: string
3131
}
3232

@@ -42,7 +42,7 @@ export interface AffinityFilterParams extends AffinityCursorParams {
4242
}
4343

4444
/** Collections that can be asked for the total size of the match. */
45-
export interface AffinityTotalCountParams {
45+
interface AffinityTotalCountParams {
4646
totalCount?: boolean
4747
}
4848

@@ -261,7 +261,7 @@ export interface AffinitySearchByKeywordParams extends AffinityAuthParams {
261261
ids?: string | number[]
262262
}
263263

264-
export interface AffinityNoteIdParams extends AffinityAuthParams {
264+
interface AffinityNoteIdParams extends AffinityAuthParams {
265265
noteId: string
266266
}
267267

‎apps/sim/tools/agentphone/types.ts‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,7 @@ export interface AgentPhoneSendMessageResult extends ToolResponse {
285285
}
286286
}
287287

288-
export type AgentPhoneReactionType =
289-
| 'love'
290-
| 'like'
291-
| 'dislike'
292-
| 'laugh'
293-
| 'emphasize'
294-
| 'question'
288+
type AgentPhoneReactionType = 'love' | 'like' | 'dislike' | 'laugh' | 'emphasize' | 'question'
295289

296290
export interface AgentPhoneReactToMessageParams {
297291
apiKey: string

‎apps/sim/tools/agiloft/types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export interface AgiloftUpdateRecordParams extends AgiloftBaseParams {
3434
}
3535

3636
/** Strategies EWDelete accepts for records that depend on the one being deleted. */
37-
export type AgiloftDeleteRule =
37+
type AgiloftDeleteRule =
3838
| 'ERROR_IF_DEPENDANTS'
3939
| 'APPLY_DELETE_WHERE_POSSIBLE'
4040
| 'DELETE_WHERE_POSSIBLE_OTHERWISE_UNLINK'

‎apps/sim/tools/ahrefs/types.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ interface AhrefsBaseParams {
44
apiKey: string
55
}
66

7-
export type AhrefsTargetMode = 'domain' | 'prefix' | 'subdomains' | 'exact'
7+
type AhrefsTargetMode = 'domain' | 'prefix' | 'subdomains' | 'exact'
88

99
/**
1010
* Historical scope for backlink-profile endpoints (no `date` param on these endpoints).
1111
* `since:YYYY-MM-DD` is also valid.
1212
*/
13-
export type AhrefsHistory = 'live' | 'all_time' | string
13+
type AhrefsHistory = 'live' | 'all_time' | string
1414

1515
export interface AhrefsDomainRatingParams extends AhrefsBaseParams {
1616
target: string
@@ -239,10 +239,10 @@ export interface AhrefsOrganicCompetitorsResponse extends ToolResponse {
239239
}
240240
}
241241

242-
export type AhrefsRankTrackerDevice = 'desktop' | 'mobile'
242+
type AhrefsRankTrackerDevice = 'desktop' | 'mobile'
243243

244244
/** Rank Tracker search volume calculation mode */
245-
export type AhrefsVolumeMode = 'monthly' | 'average'
245+
type AhrefsVolumeMode = 'monthly' | 'average'
246246

247247
export interface AhrefsRankTrackerOverviewParams extends AhrefsBaseParams {
248248
projectId: number

‎apps/sim/tools/appconfig/types.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ export interface AppConfigConnectionConfig {
66
secretAccessKey: string
77
}
88

9-
export interface AppConfigApplication {
9+
interface AppConfigApplication {
1010
id: string
1111
name: string
1212
description: string | null
1313
}
1414

15-
export interface AppConfigEnvironment {
15+
interface AppConfigEnvironment {
1616
applicationId: string
1717
id: string
1818
name: string
1919
description: string | null
2020
state: string | null
2121
}
2222

23-
export interface AppConfigConfigurationProfile {
23+
interface AppConfigConfigurationProfile {
2424
applicationId: string
2525
id: string
2626
name: string
@@ -31,7 +31,7 @@ export interface AppConfigConfigurationProfile {
3131
validatorTypes: string[]
3232
}
3333

34-
export interface AppConfigDeploymentSummary {
34+
interface AppConfigDeploymentSummary {
3535
deploymentNumber: number | null
3636
configurationName: string | null
3737
configurationVersion: string | null
@@ -46,7 +46,7 @@ export interface AppConfigDeploymentSummary {
4646
versionLabel: string | null
4747
}
4848

49-
export interface AppConfigDeploymentDetail {
49+
interface AppConfigDeploymentDetail {
5050
applicationId: string
5151
environmentId: string
5252
deploymentStrategyId: string
@@ -61,7 +61,7 @@ export interface AppConfigDeploymentDetail {
6161
completedAt: string | null
6262
}
6363

64-
export interface AppConfigDeploymentStrategy {
64+
interface AppConfigDeploymentStrategy {
6565
id: string
6666
name: string
6767
description: string | null
@@ -72,7 +72,7 @@ export interface AppConfigDeploymentStrategy {
7272
replicateTo: string | null
7373
}
7474

75-
export interface AppConfigHostedConfigurationVersionSummary {
75+
interface AppConfigHostedConfigurationVersionSummary {
7676
applicationId: string | null
7777
configurationProfileId: string | null
7878
versionNumber: number | null

‎apps/sim/tools/athena/types.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export interface AthenaBatchGetQueryExecutionParams extends AthenaConnectionConf
142142
queryExecutionIds: string
143143
}
144144

145-
export interface AthenaQueryExecutionSummary {
145+
interface AthenaQueryExecutionSummary {
146146
queryExecutionId: string
147147
query: string | null
148148
state: string | null
@@ -161,7 +161,7 @@ export interface AthenaQueryExecutionSummary {
161161
outputLocation: string | null
162162
}
163163

164-
export interface AthenaUnprocessedQueryExecutionId {
164+
interface AthenaUnprocessedQueryExecutionId {
165165
queryExecutionId: string | null
166166
errorCode: string | null
167167
errorMessage: string | null
@@ -181,7 +181,7 @@ export interface AthenaListDatabasesParams extends AthenaConnectionConfig {
181181
nextToken?: string
182182
}
183183

184-
export interface AthenaDatabase {
184+
interface AthenaDatabase {
185185
name: string
186186
description: string | null
187187
parameters: Record<string, string>
@@ -203,13 +203,13 @@ export interface AthenaListTableMetadataParams extends AthenaConnectionConfig {
203203
nextToken?: string
204204
}
205205

206-
export interface AthenaColumn {
206+
interface AthenaColumn {
207207
name: string
208208
type: string | null
209209
comment: string | null
210210
}
211211

212-
export interface AthenaTableMetadata {
212+
interface AthenaTableMetadata {
213213
name: string
214214
tableType: string | null
215215
createTime: number | null
@@ -226,7 +226,7 @@ export interface AthenaListTableMetadataResponse extends ToolResponse {
226226
}
227227
}
228228

229-
export interface AthenaNamedQuery {
229+
interface AthenaNamedQuery {
230230
namedQueryId: string
231231
name: string
232232
description: string | null
@@ -235,15 +235,15 @@ export interface AthenaNamedQuery {
235235
workGroup: string | null
236236
}
237237

238-
export interface AthenaPreparedStatement {
238+
interface AthenaPreparedStatement {
239239
statementName: string
240240
queryStatement: string
241241
workGroupName: string | null
242242
description: string | null
243243
lastModifiedTime: number | null
244244
}
245245

246-
export interface AthenaEngineVersion {
246+
interface AthenaEngineVersion {
247247
selectedEngineVersion: string | null
248248
effectiveEngineVersion: string | null
249249
}

‎apps/sim/tools/attio/types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { OutputProperty, ToolResponse } from '@/tools/types'
22

33
/** Raw Attio note tag shape (workspace-member or record variant) */
4-
export interface AttioNoteTag {
4+
interface AttioNoteTag {
55
type?: string
66
workspace_member_id?: string
77
object?: string

‎apps/sim/tools/azure_data_explorer/types.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface AzureDataExplorerBaseParams {
88
resource?: string
99
}
1010

11-
export interface AzureDataExplorerColumn {
11+
interface AzureDataExplorerColumn {
1212
name: string
1313
type: string | null
1414
dataType: string | null

‎apps/sim/tools/azure_devops/types.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ToolResponse } from '@/tools/types'
22

3-
export interface AzureDevOpsBaseParams {
3+
interface AzureDevOpsBaseParams {
44
/** Azure DevOps organization name */
55
organization: string
66
/** Azure DevOps project name */
@@ -17,7 +17,7 @@ export interface ListPipelinesParams extends AzureDevOpsBaseParams {
1717
continuationToken?: string
1818
}
1919

20-
export interface AzureDevOpsPipeline {
20+
interface AzureDevOpsPipeline {
2121
id: number
2222
name: string
2323
folder: string
@@ -42,7 +42,7 @@ export interface GetPipelineParams extends AzureDevOpsBaseParams {
4242
pipelineVersion?: number
4343
}
4444

45-
export interface AzureDevOpsPipelineConfiguration {
45+
interface AzureDevOpsPipelineConfiguration {
4646
type: string
4747
path?: string
4848
repository?: {
@@ -51,7 +51,7 @@ export interface AzureDevOpsPipelineConfiguration {
5151
}
5252
}
5353

54-
export interface AzureDevOpsPipelineDetail extends AzureDevOpsPipeline {
54+
interface AzureDevOpsPipelineDetail extends AzureDevOpsPipeline {
5555
configuration: AzureDevOpsPipelineConfiguration
5656
links: {
5757
self: string
@@ -74,7 +74,7 @@ export interface ListPipelineRunsParams extends AzureDevOpsBaseParams {
7474
pipelineId: number
7575
}
7676

77-
export interface AzureDevOpsPipelineRun {
77+
interface AzureDevOpsPipelineRun {
7878
id: number
7979
name: string
8080
state: string
@@ -102,7 +102,7 @@ export interface GetPipelineRunParams extends AzureDevOpsBaseParams {
102102
runId: number
103103
}
104104

105-
export interface AzureDevOpsPipelineRunDetail extends AzureDevOpsPipelineRun {
105+
interface AzureDevOpsPipelineRunDetail extends AzureDevOpsPipelineRun {
106106
pipeline: {
107107
id: number
108108
name: string
@@ -131,7 +131,7 @@ export interface ListBuildsParams extends AzureDevOpsBaseParams {
131131
branchName?: string
132132
}
133133

134-
export interface AzureDevOpsBuild {
134+
interface AzureDevOpsBuild {
135135
id: number
136136
buildNumber: string
137137
status: string
@@ -164,7 +164,7 @@ export interface ListBuildLogsParams extends AzureDevOpsBaseParams {
164164
buildId: number
165165
}
166166

167-
export interface AzureDevOpsBuildLog {
167+
interface AzureDevOpsBuildLog {
168168
id: number
169169
type: string
170170
url: string

0 commit comments

Comments
 (0)