mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 09:11:13 -05:00
Approve tool use
Approve tool use based on context.
This commit is contained in:
@@ -151,6 +151,63 @@ export type Database = {
|
||||
}
|
||||
Relationships: []
|
||||
}
|
||||
approval_transaction_metrics: {
|
||||
Row: {
|
||||
created_at: string | null
|
||||
duration_ms: number | null
|
||||
error_message: string | null
|
||||
id: string
|
||||
items_count: number
|
||||
moderator_id: string
|
||||
request_id: string | null
|
||||
rollback_triggered: boolean | null
|
||||
submission_id: string
|
||||
submitter_id: string
|
||||
success: boolean
|
||||
}
|
||||
Insert: {
|
||||
created_at?: string | null
|
||||
duration_ms?: number | null
|
||||
error_message?: string | null
|
||||
id?: string
|
||||
items_count: number
|
||||
moderator_id: string
|
||||
request_id?: string | null
|
||||
rollback_triggered?: boolean | null
|
||||
submission_id: string
|
||||
submitter_id: string
|
||||
success: boolean
|
||||
}
|
||||
Update: {
|
||||
created_at?: string | null
|
||||
duration_ms?: number | null
|
||||
error_message?: string | null
|
||||
id?: string
|
||||
items_count?: number
|
||||
moderator_id?: string
|
||||
request_id?: string | null
|
||||
rollback_triggered?: boolean | null
|
||||
submission_id?: string
|
||||
submitter_id?: string
|
||||
success?: boolean
|
||||
}
|
||||
Relationships: [
|
||||
{
|
||||
foreignKeyName: "approval_transaction_metrics_submission_id_fkey"
|
||||
columns: ["submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "content_submissions"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
{
|
||||
foreignKeyName: "approval_transaction_metrics_submission_id_fkey"
|
||||
columns: ["submission_id"]
|
||||
isOneToOne: false
|
||||
referencedRelation: "moderation_queue_with_entities"
|
||||
referencedColumns: ["id"]
|
||||
},
|
||||
]
|
||||
}
|
||||
blog_posts: {
|
||||
Row: {
|
||||
author_id: string
|
||||
@@ -5960,6 +6017,10 @@ export type Database = {
|
||||
oldest_deleted_date: string
|
||||
}[]
|
||||
}
|
||||
create_entity_from_submission: {
|
||||
Args: { p_created_by: string; p_data: Json; p_entity_type: string }
|
||||
Returns: string
|
||||
}
|
||||
create_submission_with_items:
|
||||
| {
|
||||
Args: {
|
||||
@@ -5980,6 +6041,14 @@ export type Database = {
|
||||
}
|
||||
Returns: string
|
||||
}
|
||||
delete_entity_from_submission: {
|
||||
Args: {
|
||||
p_deleted_by: string
|
||||
p_entity_id: string
|
||||
p_entity_type: string
|
||||
}
|
||||
Returns: undefined
|
||||
}
|
||||
detect_orphaned_images: { Args: never; Returns: number }
|
||||
detect_orphaned_images_with_logging: { Args: never; Returns: undefined }
|
||||
extend_submission_lock: {
|
||||
@@ -6172,6 +6241,16 @@ export type Database = {
|
||||
}
|
||||
migrate_ride_technical_data: { Args: never; Returns: undefined }
|
||||
migrate_user_list_items: { Args: never; Returns: undefined }
|
||||
process_approval_transaction: {
|
||||
Args: {
|
||||
p_item_ids: string[]
|
||||
p_moderator_id: string
|
||||
p_request_id?: string
|
||||
p_submission_id: string
|
||||
p_submitter_id: string
|
||||
}
|
||||
Returns: Json
|
||||
}
|
||||
release_expired_locks: { Args: never; Returns: number }
|
||||
release_submission_lock: {
|
||||
Args: { moderator_id: string; submission_id: string }
|
||||
@@ -6216,6 +6295,15 @@ export type Database = {
|
||||
Args: { target_company_id: string }
|
||||
Returns: undefined
|
||||
}
|
||||
update_entity_from_submission: {
|
||||
Args: {
|
||||
p_data: Json
|
||||
p_entity_id: string
|
||||
p_entity_type: string
|
||||
p_updated_by: string
|
||||
}
|
||||
Returns: string
|
||||
}
|
||||
update_entity_view_counts: { Args: never; Returns: undefined }
|
||||
update_park_ratings: {
|
||||
Args: { target_park_id: string }
|
||||
|
||||
Reference in New Issue
Block a user