export interface Toolkit { id: string; name: string; slug: string; description?: string; version: string; is_active: boolean; ownership_type: string; partner_app_id: string; manifest: ToolkitManifest; auto_propagate: boolean; auto_install_on_new_workspaces: boolean; created_at: string; updated_at: string; } export type ManifestOwnershipType = 'SYSTEM' | 'PARTNER' | 'PUBLIC'; export interface ToolkitManifest { name?: string; version?: string; schema_version?: string; ownership_type?: ManifestOwnershipType; license?: string; license_url?: string; toolkit_prompt?: string; usage_guidance?: string; templates?: ManifestTemplate[]; next_steps?: ManifestNextStep[]; action_buttons?: ManifestActionButton[]; shortcuts?: ManifestShortcut[]; workflows?: ManifestWorkflow[]; canvas_templates?: ManifestCanvasTemplate[]; } export interface ManifestTemplate { id?: string; spec?: ManifestTemplateSpec; next_steps?: TemplateNextStepRelation[]; } export interface ManifestTemplateSpec { $id?: string; name: string; description?: string; backing_meeting_id?: string; } export interface TemplateNextStepRelation { next_step: ManifestRef; autopilot?: boolean; default_action_button?: ManifestRef; } export interface ManifestNextStep { id?: string; spec?: ManifestNextStepSpec; action_buttons?: NextStepActionButtonRelation[]; default_action_button?: ManifestRef; } export interface ManifestNextStepSpec { $id?: string; name: string; description?: string; ai_prompt?: string; color?: string; icon_name?: string; type?: NextStepType; } export interface NextStepActionButtonRelation { action_button: ManifestRef; } export interface ManifestActionButton { id?: string; spec?: ManifestActionButtonSpec; } export interface ManifestActionButtonSpec { $id?: string; name: string; description?: string; content_format: ContentFormat; delivery_mechanism: DeliveryMechanism; icon_url?: string; webhook_url?: string; redirect_url_template?: string; email_subject_template?: string; file_format?: string; integration_id?: string; } export interface ManifestRef { $ref?: string; $id?: string; } export interface ManifestShortcut { id?: string; spec?: ManifestShortcutSpec; } export type ShortcutSurface = 'HOME' | 'MEETING_PREPARE' | 'MEETING_RUN' | 'MEETING_REVIEW' | 'CANVAS'; export interface ShortcutSurfaceInput { surface: ShortcutSurface; position?: number; } export interface ManifestShortcutSpec { $id?: string; slug?: string; name: string; description?: string; prompt: string; icon?: string; surfaces?: ShortcutSurfaceInput[]; } export interface ManifestWorkflow { id?: string; spec?: ManifestWorkflowSpec; } export interface ManifestWorkflowSpec { $id?: string; slug?: string; name: string; description?: string; spec: Record; } export interface ManifestCanvasTemplate { id?: string; spec?: ManifestCanvasTemplateSpec; } export interface ManifestCanvasTemplateSpec { $id?: string; slug?: string; name: string; description?: string; content?: Record; canvas_type?: 'MANUAL' | 'AI'; } export type ContentFormat = 'rich_text' | 'markdown' | 'plain_text' | 'html'; export type DeliveryMechanism = 'clipboard' | 'email' | 'os_email_client' | 'file_download' | 'integration' | 'webhook' | 'redirect'; export type NextStepType = 'AI' | 'STANDARD'; export interface CreateToolkitRequest { name: string; slug: string; description?: string; version: string; manifest: ToolkitManifest; dry_run?: boolean; } export interface UpdateToolkitRequest { name?: string; description?: string; is_active?: boolean; auto_propagate?: boolean; auto_install_on_new_workspaces?: boolean; version?: string; manifest?: ToolkitManifest; } export interface ToolkitListParams { limit?: number; offset?: number; } export interface ToolkitListResponse { items: Toolkit[]; total: number; limit: number; offset: number; } export type ToolkitVersionStatus = 'DRAFT' | 'PUBLISHED' | 'DEPRECATED'; export interface ToolkitVersion { id: string; toolkit_id: string; version_number: number; version_label: string; status: ToolkitVersionStatus; manifest: ToolkitManifest; changelog?: string; created_by?: string; published_at?: string; deprecated_at?: string; created_at: string; updated_at: string; } export interface CreateToolkitVersionRequest { version_label: string; manifest: ToolkitManifest; changelog?: string; dry_run?: boolean; } export interface UpdateToolkitVersionRequest { version_label?: string; manifest?: ToolkitManifest; changelog?: string; } export interface ToolkitInstallation { id: string; toolkit_id: string; workspace_id: string; installed_at: string; installed_by_user_id: string; } export interface ToolkitWithInstallation { toolkit: Toolkit; installation?: ToolkitInstallation; } export interface ToolkitWithInstallationListResponse { items: ToolkitWithInstallation[]; total: number; limit: number; offset: number; } export interface ExportEntitiesRequest { template_ids?: string[]; next_step_ids?: string[]; action_button_ids?: string[]; shortcut_ids?: string[]; workflow_ids?: string[]; canvas_template_ids?: string[]; name?: string; description?: string; } export interface ExportMetadata { name: string; slug?: string; description?: string; version?: string; license?: string; license_url?: string; } export interface ExportSummary { templates: number; next_steps: number; action_buttons: number; shortcuts: number; workflows: number; canvas_templates: number; } export interface ExportWarning { entity_type: string; entity_name: string; code: string; message: string; } export interface ExportResponse { metadata?: ExportMetadata; manifest: ToolkitManifest; summary: ExportSummary; warnings?: ExportWarning[]; } export type PropagationMode = 'none' | 'normal' | 'force'; export interface PublishToolkitVersionRequest { propagation?: PropagationMode; } export type ToolkitInstallationStatus = 'active' | 'opted_out'; export interface ToolkitInstallationItem { workspace_id: string; workspace_name: string; status: ToolkitInstallationStatus; version_label?: string; installed_at?: string; uninstalled_at?: string; } export interface ToolkitInstallationSummary { active: number; opted_out: number; never_installed: number; } export interface ToolkitInstallationListResponse { items: ToolkitInstallationItem[]; summary: ToolkitInstallationSummary; total_connected_workspaces: number; limit: number; offset: number; } export interface PartnerWorkspace { workspace_id: string; workspace_name: string; provisioned_at: string; user_count: number; } export interface PartnerWorkspaceListResponse { items: PartnerWorkspace[]; total: number; limit: number; offset: number; } export interface ManifestValidationError { path: string; code: string; message: string; } export interface ValidationResult { valid: boolean; errors?: ManifestValidationError[]; warnings?: ManifestValidationError[]; } export interface ConflictInfo { entity_type: string; entity_name: string; conflict_type: string; existing_entity_id: string; resolution: string; message: string; } export interface ManifestSummary { templates: number; next_steps: number; action_buttons: number; shortcuts: number; } export interface CreateToolkitResponse { toolkit?: Toolkit; validation?: ValidationResult; conflicts?: ConflictInfo[]; summary?: ManifestSummary; } export interface CreateToolkitVersionResponse { version?: ToolkitVersion; validation?: ValidationResult; conflicts?: ConflictInfo[]; summary?: ManifestSummary; } //# sourceMappingURL=toolkits.d.ts.map