mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-19 02:34:37 -05:00
more
This commit is contained in:
@@ -264,7 +264,6 @@ Lists DNS records for a specific zone.
|
||||
| ↳ `comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
|
||||
| ↳ `tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
|
||||
| ↳ `meta` | object | Record metadata |
|
||||
| ↳ `auto_added` | boolean | Whether the record was auto-added by Cloudflare |
|
||||
| ↳ `source` | string | Source of the DNS record |
|
||||
| ↳ `created_on` | string | ISO 8601 timestamp when the record was created |
|
||||
| ↳ `modified_on` | string | ISO 8601 timestamp when the record was last modified |
|
||||
@@ -309,7 +308,6 @@ Creates a new DNS record for a zone.
|
||||
| `comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
|
||||
| `tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
|
||||
| `meta` | object | Record metadata |
|
||||
| ↳ `auto_added` | boolean | Whether the record was auto-added by Cloudflare |
|
||||
| ↳ `source` | string | Source of the DNS record |
|
||||
| `created_on` | string | ISO 8601 timestamp when the record was created |
|
||||
| `modified_on` | string | ISO 8601 timestamp when the record was last modified |
|
||||
@@ -354,7 +352,6 @@ Updates an existing DNS record for a zone.
|
||||
| `comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
|
||||
| `tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
|
||||
| `meta` | object | Record metadata |
|
||||
| ↳ `auto_added` | boolean | Whether the record was auto-added by Cloudflare |
|
||||
| ↳ `source` | string | Source of the DNS record |
|
||||
| `created_on` | string | ISO 8601 timestamp when the record was created |
|
||||
| `modified_on` | string | ISO 8601 timestamp when the record was last modified |
|
||||
|
||||
@@ -85,7 +85,7 @@ export async function POST(request: NextRequest) {
|
||||
}
|
||||
|
||||
const baseUrl = validatedData.environmentUrl.replace(/\/$/, '')
|
||||
const uploadUrl = `${baseUrl}/api/data/v9.2/${validatedData.entitySetName}(${validatedData.recordId})/${validatedData.fileColumn}?x-ms-file-name=${encodeURIComponent(validatedData.fileName)}`
|
||||
const uploadUrl = `${baseUrl}/api/data/v9.2/${validatedData.entitySetName}(${validatedData.recordId})/${validatedData.fileColumn}`
|
||||
|
||||
const response = await fetch(uploadUrl, {
|
||||
method: 'PATCH',
|
||||
|
||||
@@ -1068,8 +1068,7 @@ Return ONLY the comma-separated URLs - no explanations, no extra text.`,
|
||||
},
|
||||
meta: {
|
||||
type: 'json',
|
||||
description:
|
||||
'Resource metadata (zone: cdn_only, dns_only, etc.; DNS record: auto_added, source)',
|
||||
description: 'Resource metadata (zone: cdn_only, dns_only, etc.; DNS record: source)',
|
||||
},
|
||||
vanity_name_servers: { type: 'json', description: 'Custom vanity name servers' },
|
||||
permissions: { type: 'json', description: 'User permissions for the zone' },
|
||||
|
||||
@@ -75,7 +75,7 @@ export const MicrosoftDataverseBlock: BlockConfig<DataverseResponse> = {
|
||||
},
|
||||
required: {
|
||||
field: 'operation',
|
||||
value: ['whoami', 'search'],
|
||||
value: ['whoami', 'search', 'execute_action', 'execute_function'],
|
||||
not: true,
|
||||
},
|
||||
},
|
||||
@@ -96,6 +96,7 @@ export const MicrosoftDataverseBlock: BlockConfig<DataverseResponse> = {
|
||||
'upload_file',
|
||||
'download_file',
|
||||
'execute_action',
|
||||
'execute_function',
|
||||
],
|
||||
},
|
||||
required: {
|
||||
@@ -371,7 +372,7 @@ Return ONLY the filter expression - no $filter= prefix, no explanations.`,
|
||||
title: 'Order By',
|
||||
type: 'short-input',
|
||||
placeholder: 'e.g., name asc, createdon desc',
|
||||
condition: { field: 'operation', value: 'list_records' },
|
||||
condition: { field: 'operation', value: ['list_records', 'search'] },
|
||||
mode: 'advanced',
|
||||
wandConfig: {
|
||||
enabled: true,
|
||||
@@ -452,7 +453,7 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
|
||||
type: 'short-input',
|
||||
placeholder: 'Target record GUID',
|
||||
condition: { field: 'operation', value: ['associate', 'disassociate'] },
|
||||
required: { field: 'operation', value: ['associate', 'disassociate'] },
|
||||
required: { field: 'operation', value: 'associate' },
|
||||
},
|
||||
],
|
||||
tools: {
|
||||
@@ -498,6 +499,8 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
|
||||
if (rest.functionParameters) {
|
||||
cleanParams.parameters = rest.functionParameters
|
||||
rest.functionParameters = undefined
|
||||
// Prevent stale action parameters from overwriting mapped function parameters
|
||||
rest.parameters = undefined
|
||||
}
|
||||
|
||||
Object.entries(rest).forEach(([key, value]) => {
|
||||
@@ -581,6 +584,7 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
|
||||
fetchXmlPagingCookie: { type: 'string', description: 'Paging cookie for FetchXML pagination' },
|
||||
moreRecords: { type: 'boolean', description: 'Whether more records are available (FetchXML)' },
|
||||
results: { type: 'json', description: 'Search results array' },
|
||||
facets: { type: 'json', description: 'Facet results for search (when facets requested)' },
|
||||
fileContent: { type: 'string', description: 'Base64-encoded downloaded file content' },
|
||||
fileName: { type: 'string', description: 'Downloaded file name' },
|
||||
fileSize: { type: 'number', description: 'File size in bytes' },
|
||||
|
||||
@@ -199,10 +199,6 @@ export const createDnsRecordTool: ToolConfig<
|
||||
description: 'Record metadata',
|
||||
optional: true,
|
||||
properties: {
|
||||
auto_added: {
|
||||
type: 'boolean',
|
||||
description: 'Whether the record was auto-added by Cloudflare',
|
||||
},
|
||||
source: { type: 'string', description: 'Source of the DNS record' },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -120,7 +120,7 @@ export const listDnsRecordsTool: ToolConfig<
|
||||
if (params.proxied !== undefined) url.searchParams.append('proxied', String(params.proxied))
|
||||
if (params.search) url.searchParams.append('search', params.search)
|
||||
if (params.tag) url.searchParams.append('tag', params.tag)
|
||||
if (params.tag_match) url.searchParams.append('tag-match', params.tag_match)
|
||||
if (params.tag_match) url.searchParams.append('tag_match', params.tag_match)
|
||||
if (params.commentFilter) url.searchParams.append('comment.contains', params.commentFilter)
|
||||
return url.toString()
|
||||
},
|
||||
@@ -214,10 +214,6 @@ export const listDnsRecordsTool: ToolConfig<
|
||||
description: 'Record metadata',
|
||||
optional: true,
|
||||
properties: {
|
||||
auto_added: {
|
||||
type: 'boolean',
|
||||
description: 'Whether the record was auto-added by Cloudflare',
|
||||
},
|
||||
source: { type: 'string', description: 'Source of the DNS record' },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -166,7 +166,6 @@ export interface CloudflareListDnsRecordsParams extends CloudflareBaseParams {
|
||||
}
|
||||
|
||||
export interface CloudflareDnsRecordMeta {
|
||||
auto_added: boolean
|
||||
source: string
|
||||
}
|
||||
|
||||
@@ -364,7 +363,7 @@ export interface CloudflareDnsAnalyticsParams extends CloudflareBaseParams {
|
||||
zoneId: string
|
||||
since?: string
|
||||
until?: string
|
||||
metrics?: string
|
||||
metrics: string
|
||||
dimensions?: string
|
||||
filters?: string
|
||||
sort?: string
|
||||
|
||||
@@ -205,10 +205,6 @@ export const updateDnsRecordTool: ToolConfig<
|
||||
description: 'Record metadata',
|
||||
optional: true,
|
||||
properties: {
|
||||
auto_added: {
|
||||
type: 'boolean',
|
||||
description: 'Whether the record was auto-added by Cloudflare',
|
||||
},
|
||||
source: { type: 'string', description: 'Source of the DNS record' },
|
||||
},
|
||||
},
|
||||
|
||||
@@ -117,6 +117,7 @@ export const dataverseCreateMultipleTool: ToolConfig<
|
||||
description: 'Array of GUIDs for the created records',
|
||||
items: {
|
||||
type: 'string',
|
||||
description: 'GUID of a created record',
|
||||
},
|
||||
},
|
||||
count: { type: 'number', description: 'Number of records created' },
|
||||
|
||||
@@ -97,9 +97,9 @@ export const dataverseDownloadFileTool: ToolConfig<
|
||||
|
||||
outputs: {
|
||||
fileContent: { type: 'string', description: 'Base64-encoded file content' },
|
||||
fileName: { type: 'string', description: 'Name of the downloaded file' },
|
||||
fileName: { type: 'string', description: 'Name of the downloaded file', optional: true },
|
||||
fileSize: { type: 'number', description: 'File size in bytes' },
|
||||
mimeType: { type: 'string', description: 'MIME type of the file' },
|
||||
mimeType: { type: 'string', description: 'MIME type of the file', optional: true },
|
||||
success: { type: 'boolean', description: 'Whether the file was downloaded successfully' },
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user