Files
silverbullet-icalendar/icalendar.plug.yaml
Alexandre Nicolaie 38dd97c25c Add force sync command
Add 'iCalendar: Force Sync' command to bypass cache and
immediately synchronize calendar events. Useful when you
need fresh data before the cache expires.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Alexandre Nicolaie <xunleii@users.noreply.github.com>
2025-10-18 16:15:46 +02:00

41 lines
899 B
YAML

name: icalendar
requiredPermissions:
- fetch
functions:
syncCalendars:
path: ./icalendar.ts:syncCalendars
command:
name: "iCalendar: Sync"
priority: -1
forceSync:
path: ./icalendar.ts:forceSync
command:
name: "iCalendar: Force Sync"
priority: -1
showVersion:
path: ./icalendar.ts:showVersion
command:
name: "iCalendar: Version"
priority: -2
config:
schema.config.properties.icalendar:
type: object
required:
- sources
properties:
sources:
type: array
minItems: 1
items:
type: object
required:
- url
properties:
url:
type: string
name:
type: string
cacheDuration:
type: number
description: "Interval between two calendar synchronizations (default: 21600 = 6 hours)"