Skip to content

Commit a42a620

Browse files
committed
more
1 parent 2466d7e commit a42a620

File tree

10 files changed

+14
-26
lines changed

10 files changed

+14
-26
lines changed

apps/docs/content/docs/en/tools/cloudflare.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ Lists DNS records for a specific zone.
264264
|`comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
265265
|`tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
266266
|`meta` | object | Record metadata |
267-
|`auto_added` | boolean | Whether the record was auto-added by Cloudflare |
268267
|`source` | string | Source of the DNS record |
269268
|`created_on` | string | ISO 8601 timestamp when the record was created |
270269
|`modified_on` | string | ISO 8601 timestamp when the record was last modified |
@@ -309,7 +308,6 @@ Creates a new DNS record for a zone.
309308
| `comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
310309
| `tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
311310
| `meta` | object | Record metadata |
312-
|`auto_added` | boolean | Whether the record was auto-added by Cloudflare |
313311
|`source` | string | Source of the DNS record |
314312
| `created_on` | string | ISO 8601 timestamp when the record was created |
315313
| `modified_on` | string | ISO 8601 timestamp when the record was last modified |
@@ -354,7 +352,6 @@ Updates an existing DNS record for a zone.
354352
| `comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
355353
| `tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
356354
| `meta` | object | Record metadata |
357-
|`auto_added` | boolean | Whether the record was auto-added by Cloudflare |
358355
|`source` | string | Source of the DNS record |
359356
| `created_on` | string | ISO 8601 timestamp when the record was created |
360357
| `modified_on` | string | ISO 8601 timestamp when the record was last modified |

apps/sim/app/api/tools/microsoft-dataverse/upload-file/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function POST(request: NextRequest) {
8585
}
8686

8787
const baseUrl = validatedData.environmentUrl.replace(/\/$/, '')
88-
const uploadUrl = `${baseUrl}/api/data/v9.2/${validatedData.entitySetName}(${validatedData.recordId})/${validatedData.fileColumn}?x-ms-file-name=${encodeURIComponent(validatedData.fileName)}`
88+
const uploadUrl = `${baseUrl}/api/data/v9.2/${validatedData.entitySetName}(${validatedData.recordId})/${validatedData.fileColumn}`
8989

9090
const response = await fetch(uploadUrl, {
9191
method: 'PATCH',

apps/sim/blocks/blocks/cloudflare.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,7 @@ Return ONLY the comma-separated URLs - no explanations, no extra text.`,
10681068
},
10691069
meta: {
10701070
type: 'json',
1071-
description:
1072-
'Resource metadata (zone: cdn_only, dns_only, etc.; DNS record: auto_added, source)',
1071+
description: 'Resource metadata (zone: cdn_only, dns_only, etc.; DNS record: source)',
10731072
},
10741073
vanity_name_servers: { type: 'json', description: 'Custom vanity name servers' },
10751074
permissions: { type: 'json', description: 'User permissions for the zone' },

apps/sim/blocks/blocks/microsoft_dataverse.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const MicrosoftDataverseBlock: BlockConfig<DataverseResponse> = {
7575
},
7676
required: {
7777
field: 'operation',
78-
value: ['whoami', 'search'],
78+
value: ['whoami', 'search', 'execute_action', 'execute_function'],
7979
not: true,
8080
},
8181
},
@@ -96,6 +96,7 @@ export const MicrosoftDataverseBlock: BlockConfig<DataverseResponse> = {
9696
'upload_file',
9797
'download_file',
9898
'execute_action',
99+
'execute_function',
99100
],
100101
},
101102
required: {
@@ -371,7 +372,7 @@ Return ONLY the filter expression - no $filter= prefix, no explanations.`,
371372
title: 'Order By',
372373
type: 'short-input',
373374
placeholder: 'e.g., name asc, createdon desc',
374-
condition: { field: 'operation', value: 'list_records' },
375+
condition: { field: 'operation', value: ['list_records', 'search'] },
375376
mode: 'advanced',
376377
wandConfig: {
377378
enabled: true,
@@ -452,7 +453,7 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
452453
type: 'short-input',
453454
placeholder: 'Target record GUID',
454455
condition: { field: 'operation', value: ['associate', 'disassociate'] },
455-
required: { field: 'operation', value: ['associate', 'disassociate'] },
456+
required: { field: 'operation', value: 'associate' },
456457
},
457458
],
458459
tools: {
@@ -498,6 +499,8 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
498499
if (rest.functionParameters) {
499500
cleanParams.parameters = rest.functionParameters
500501
rest.functionParameters = undefined
502+
// Prevent stale action parameters from overwriting mapped function parameters
503+
rest.parameters = undefined
501504
}
502505

503506
Object.entries(rest).forEach(([key, value]) => {
@@ -581,6 +584,7 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
581584
fetchXmlPagingCookie: { type: 'string', description: 'Paging cookie for FetchXML pagination' },
582585
moreRecords: { type: 'boolean', description: 'Whether more records are available (FetchXML)' },
583586
results: { type: 'json', description: 'Search results array' },
587+
facets: { type: 'json', description: 'Facet results for search (when facets requested)' },
584588
fileContent: { type: 'string', description: 'Base64-encoded downloaded file content' },
585589
fileName: { type: 'string', description: 'Downloaded file name' },
586590
fileSize: { type: 'number', description: 'File size in bytes' },

apps/sim/tools/cloudflare/create_dns_record.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,6 @@ export const createDnsRecordTool: ToolConfig<
199199
description: 'Record metadata',
200200
optional: true,
201201
properties: {
202-
auto_added: {
203-
type: 'boolean',
204-
description: 'Whether the record was auto-added by Cloudflare',
205-
},
206202
source: { type: 'string', description: 'Source of the DNS record' },
207203
},
208204
},

apps/sim/tools/cloudflare/list_dns_records.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export const listDnsRecordsTool: ToolConfig<
120120
if (params.proxied !== undefined) url.searchParams.append('proxied', String(params.proxied))
121121
if (params.search) url.searchParams.append('search', params.search)
122122
if (params.tag) url.searchParams.append('tag', params.tag)
123-
if (params.tag_match) url.searchParams.append('tag-match', params.tag_match)
123+
if (params.tag_match) url.searchParams.append('tag_match', params.tag_match)
124124
if (params.commentFilter) url.searchParams.append('comment.contains', params.commentFilter)
125125
return url.toString()
126126
},
@@ -214,10 +214,6 @@ export const listDnsRecordsTool: ToolConfig<
214214
description: 'Record metadata',
215215
optional: true,
216216
properties: {
217-
auto_added: {
218-
type: 'boolean',
219-
description: 'Whether the record was auto-added by Cloudflare',
220-
},
221217
source: { type: 'string', description: 'Source of the DNS record' },
222218
},
223219
},

apps/sim/tools/cloudflare/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ export interface CloudflareListDnsRecordsParams extends CloudflareBaseParams {
166166
}
167167

168168
export interface CloudflareDnsRecordMeta {
169-
auto_added: boolean
170169
source: string
171170
}
172171

@@ -364,7 +363,7 @@ export interface CloudflareDnsAnalyticsParams extends CloudflareBaseParams {
364363
zoneId: string
365364
since?: string
366365
until?: string
367-
metrics?: string
366+
metrics: string
368367
dimensions?: string
369368
filters?: string
370369
sort?: string

apps/sim/tools/cloudflare/update_dns_record.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ export const updateDnsRecordTool: ToolConfig<
205205
description: 'Record metadata',
206206
optional: true,
207207
properties: {
208-
auto_added: {
209-
type: 'boolean',
210-
description: 'Whether the record was auto-added by Cloudflare',
211-
},
212208
source: { type: 'string', description: 'Source of the DNS record' },
213209
},
214210
},

apps/sim/tools/microsoft_dataverse/create_multiple.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export const dataverseCreateMultipleTool: ToolConfig<
117117
description: 'Array of GUIDs for the created records',
118118
items: {
119119
type: 'string',
120+
description: 'GUID of a created record',
120121
},
121122
},
122123
count: { type: 'number', description: 'Number of records created' },

apps/sim/tools/microsoft_dataverse/download_file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ export const dataverseDownloadFileTool: ToolConfig<
9797

9898
outputs: {
9999
fileContent: { type: 'string', description: 'Base64-encoded file content' },
100-
fileName: { type: 'string', description: 'Name of the downloaded file' },
100+
fileName: { type: 'string', description: 'Name of the downloaded file', optional: true },
101101
fileSize: { type: 'number', description: 'File size in bytes' },
102-
mimeType: { type: 'string', description: 'MIME type of the file' },
102+
mimeType: { type: 'string', description: 'MIME type of the file', optional: true },
103103
success: { type: 'boolean', description: 'Whether the file was downloaded successfully' },
104104
},
105105
}

0 commit comments

Comments
 (0)