File tree Expand file tree Collapse file tree 3 files changed +33
-45
lines changed Expand file tree Collapse file tree 3 files changed +33
-45
lines changed Original file line number Diff line number Diff line change @@ -21,24 +21,50 @@ enum ResolveError {
21
21
/**
22
22
* Intent descriptor
23
23
*/
24
- interface IntentMetadata {
24
+ interface Intent {
25
+
26
+ // The name of the intent, default naming convention is UpperCamelCase
25
27
name : string ;
26
- displayName : string ;
28
+
29
+ // An optional display name for the intent, "name" will be used if left empty
30
+ displayName ?: string ;
31
+
32
+ // A list of the contexts the intent accepts. This will typically be a set of namespaced context types, e.g. "fdc3.contact"
33
+ contexts ?: string [ ]
34
+
35
+ // Custom configuration for the intent that may be required for a particular desktop agent.
36
+ customConfig ?: object ;
27
37
}
28
38
29
39
/**
30
40
* An interface that relates an intent to apps
31
41
*/
32
42
interface AppIntent {
33
- intent : IntentMetadata ;
34
- apps : Array < AppMetadata > ;
43
+ intent : Intent ;
44
+ apps : Array < Application > ;
35
45
}
36
46
37
47
/**
38
- * App metadata is Desktop Agent specific - but should support a name property.
48
+ * App definition as provided by the application directory
39
49
*/
40
- interface AppMetadata {
50
+ interface Application {
51
+ appId : string ;
41
52
name : string ;
53
+ title ?: string ;
54
+ tooltip ?: string ;
55
+ description ?: string ;
56
+ images ?: Array < AppImage > ;
57
+ icons ?: Array < Icon > ;
58
+ intents ?: Array < Intent > ;
59
+ customConfig ?: Array < { name : string , value : string } > ;
60
+ }
61
+
62
+ interface AppImage {
63
+ url : string ;
64
+ }
65
+
66
+ interface Icon {
67
+ icon : string ;
42
68
}
43
69
44
70
/**
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Intent:
22
22
type : string
23
23
description : The contexts the intent accepts. This will
24
24
typically be a set of namespaced context types, e.g.
25
- " org.symphony .contact"
25
+ " fdc3 .contact"
26
26
customConfig :
27
27
type : object
28
28
description : Custom configuration for the intent
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments