-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.proto
159 lines (115 loc) · 3.4 KB
/
web.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
syntax = "proto3";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
option csharp_namespace = "SquaredUp.Dashboard.Schema";
package squaredup;
//-------------------------------------------------------------------------------------
//
// Web content and web API tiles
//
//-------------------------------------------------------------------------------------
// tile/web-content
message WebContentTileConfig {
WebContentTileConfig_Display display = 1;
// Generally empty (source: {})
google.protobuf.Value source = 2;
// Generally empty
google.protobuf.Value context = 3;
}
message WebContentTileConfig_Display {
int32 height = 1;
double zoom = 2;
bool border = 3;
bool scrolling = 4;
bool refresh = 5;
// URL, if specified
string src = 6;
// Literal HTML content, if specified
string content = 7;
bool link = 8;
}
//-------------------------------------------------------------------------------------
// tile/webapi-as-scalar
message WebApiAsScalarTileConfig {
WebApiAsScalarTileConfig_Context context = 1;
WebApiAsScalarTileConfig_Source source = 2;
WebApiAsScalarTileConfig_Display display = 3;
}
message WebApiAsScalarTileConfig_Context {
// Empty
}
message WebApiAsScalarTileConfig_Source {
// Typically "signing"
string _security = 1;
// GET or POST
string method = 2;
string provider = 3;
string url = 4;
// Keypath from response
string keypath = 5;
repeated WebApiAsScalarTileConfig_Source_Header headers = 6;
repeated WebApiAsScalarTileConfig_Source_Data data = 7;
}
message WebApiAsScalarTileConfig_Source_Header {
string key = 1;
string value = 2;
}
message WebApiAsScalarTileConfig_Source_Data {
string key = 1;
string value = 2;
}
message WebApiAsScalarTileConfig_Display {
double fontsize = 1;
bool coerce_object = 2;
string unit = 3;
// e.g. 'column'
string zoom = 4;
}
//-------------------------------------------------------------------------------------
// tile/webapi-as-table
message WebApiAsTableTileConfig {
WebApiAsTableTileConfig_Context context = 1;
WebApiAsTableTileConfig_Source source = 2;
WebApiAsTableTileConfig_Display display = 3;
}
message WebApiAsTableTileConfig_Context {
// Empty
}
message WebApiAsTableTileConfig_Source {
// Typically "signing"
string _security = 1;
// GET or POST
string method = 2;
string provider = 3;
string url = 4;
// Keypath from response
string keypath = 5;
repeated WebApiAsTableTileConfig_Source_Header headers = 6;
repeated WebApiAsTableTileConfig_Source_Data data = 7;
}
message WebApiAsTableTileConfig_Source_Header {
string key = 1;
string value = 2;
}
message WebApiAsTableTileConfig_Source_Data {
string key = 1;
string value = 2;
}
message WebApiAsTableTileConfig_Display {
bool show_headers = 1;
// Column template overrides
// name -> override data
map<string, WebApiAsTableTileConfig_ColumnOverride> column_overrides = 2;
// Custom columns
// internal name (e.g. custom_column) -> data key path
map<string, string> custom_columns = 3;
// List/order of each column
repeated string columns = 4;
bool autohide = 5;
string row_link = 6;
// e.g. 'column'
string zoom = 7;
}
message WebApiAsTableTileConfig_ColumnOverride {
string template = 1;
}