Skip to content

Commit 3aa7dbf

Browse files
committed
fix(copilot): sync table view sort item schema
1 parent c59ebc2 commit 3aa7dbf

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

‎apps/sim/lib/copilot/generated/tool-catalog-v1.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5831,6 +5831,14 @@ export const TableViews: ToolCatalogEntry = {
58315831
type: ['array', 'null'],
58325832
description:
58335833
'Saved ordered sort spec, e.g. [{"field":"due","direction":"asc"}], column NAMES. On update_view, omit to keep the existing sort, pass null to clear it, or pass a sort spec to replace it. On create_view, omit or pass null for default ordering.',
5834+
items: {
5835+
type: 'object',
5836+
properties: {
5837+
direction: { type: 'string', enum: ['asc', 'desc'] },
5838+
field: { type: 'string' },
5839+
},
5840+
required: ['field', 'direction'],
5841+
},
58345842
},
58355843
tableId: { type: 'string', description: 'Table ID (required for every operation)' },
58365844
viewId: {

‎apps/sim/lib/copilot/generated/tool-schemas-v1.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5754,6 +5754,19 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
57545754
type: ['array', 'null'],
57555755
description:
57565756
'Saved ordered sort spec, e.g. [{"field":"due","direction":"asc"}], column NAMES. On update_view, omit to keep the existing sort, pass null to clear it, or pass a sort spec to replace it. On create_view, omit or pass null for default ordering.',
5757+
items: {
5758+
type: 'object',
5759+
properties: {
5760+
direction: {
5761+
type: 'string',
5762+
enum: ['asc', 'desc'],
5763+
},
5764+
field: {
5765+
type: 'string',
5766+
},
5767+
},
5768+
required: ['field', 'direction'],
5769+
},
57575770
},
57585771
tableId: {
57595772
type: 'string',

0 commit comments

Comments
 (0)