@gitton-dev/types 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/gitton-plugin.d.ts +27 -0
  2. package/package.json +1 -1
@@ -108,6 +108,31 @@ export interface ExtensionPoints {
108
108
  contextMenu?: ContextMenuExtension[]
109
109
  }
110
110
 
111
+ /**
112
+ * Types of resources that can be loaded from external domains
113
+ */
114
+ export type AllowedDomainType = 'frame' | 'script' | 'style' | 'font' | 'connect'
115
+
116
+ /**
117
+ * External domain that the plugin needs access to
118
+ */
119
+ export interface AllowedDomain {
120
+ /** Domain URL (e.g., "https://unpkg.com") */
121
+ domain: string
122
+ /** Types of resources to allow from this domain */
123
+ types: AllowedDomainType[]
124
+ /** Human-readable description for settings UI */
125
+ description: string
126
+ }
127
+
128
+ /**
129
+ * Plugin security settings
130
+ */
131
+ export interface PluginSecurity {
132
+ /** External domains that this plugin needs to load resources from */
133
+ allowedDomains?: AllowedDomain[]
134
+ }
135
+
111
136
  /**
112
137
  * Plugin manifest (gitton field in package.json)
113
138
  */
@@ -132,6 +157,8 @@ export interface PluginManifest {
132
157
  extensionPoints?: ExtensionPoints
133
158
  /** JSON Schema for plugin configuration */
134
159
  configSchema?: Record<string, unknown>
160
+ /** Security settings including allowed external domains */
161
+ security?: PluginSecurity
135
162
  }
136
163
 
137
164
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitton-dev/types",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "TypeScript type definitions for Gitton plugins",
5
5
  "main": "gitton-plugin.d.ts",
6
6
  "types": "gitton-plugin.d.ts",