commandbar 1.6.4 → 1.6.5-alpha.1
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.
- package/build/commandbar-js/src/index.js +1 -1
- package/build/commandbar-js/src/init.d.ts +2 -0
- package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -1
- package/build/internal/src/client/CommandBarClientSDK.d.ts +40 -3
- package/build/internal/src/client/CommandBarSDK.d.ts +1 -1
- package/build/internal/src/client/EventHandler.d.ts +19 -1
- package/build/internal/src/client/SDKConfig.d.ts +4 -0
- package/build/internal/src/client/globals.d.ts +18 -0
- package/build/internal/src/middleware/CommandFromClientV.d.ts +11 -4
- package/build/internal/src/middleware/command.d.ts +2852 -0
- package/build/internal/src/middleware/commandCategory.d.ts +87 -0
- package/build/internal/src/middleware/context.d.ts +40 -0
- package/build/internal/src/middleware/environment.d.ts +11 -0
- package/build/internal/src/middleware/generics.d.ts +32 -0
- package/build/internal/src/middleware/guide.d.ts +37 -0
- package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
- package/build/internal/src/middleware/helpers/rules.d.ts +154 -3
- package/build/internal/src/middleware/historyEvent.d.ts +40 -0
- package/build/internal/src/middleware/network.d.ts +4 -0
- package/build/internal/src/middleware/organization.d.ts +589 -0
- package/build/internal/src/middleware/placeholder.d.ts +47 -0
- package/build/internal/src/middleware/profile.d.ts +11 -0
- package/build/internal/src/middleware/releases.d.ts +261 -0
- package/build/internal/src/middleware/skin.d.ts +66 -0
- package/build/internal/src/middleware/types.d.ts +359 -0
- package/build/internal/src/middleware/user.d.ts +12 -0
- package/build/internal/src/util/LocalStorage.d.ts +6 -0
- package/build/internal/src/util/Logger.d.ts +18 -0
- package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
- package/package.json +2 -2
- package/src/init.ts +8 -1
- package/src/snippet.ts +1 -1
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
export { ResourceSettingsV, ResourceSettingsByContextKeyV } from './ResourceSettingsV';
|
|
3
|
+
export { OrganizationV } from './OrganizationV';
|
|
4
|
+
export declare const OrganizationStatusV: t.TypeC<{
|
|
5
|
+
id: t.UnionC<[t.NumberC, t.StringC]>;
|
|
6
|
+
uuid: t.StringC;
|
|
7
|
+
errors_72h: t.NumberC;
|
|
8
|
+
suggestions_72h: t.NumberC;
|
|
9
|
+
executions_total: t.NumberC;
|
|
10
|
+
users_total: t.NumberC;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const KeyEventV: t.UnionC<[t.LiteralC<"Client-Error">, t.LiteralC<"Command execution">, t.LiteralC<"Command suggestion">, t.LiteralC<"Abandoned search">, t.LiteralC<"Search miss">]>;
|
|
13
|
+
export declare const InternalSettingsV: t.TypeC<{
|
|
14
|
+
id: t.StringC;
|
|
15
|
+
integrations: t.RecordC<t.StringC, t.RecordC<t.StringC, t.StringC>>;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const OrganizationSettingsV: t.TypeC<{
|
|
18
|
+
analytics: t.TypeC<{
|
|
19
|
+
execution_limit: t.NumberC;
|
|
20
|
+
deadend_limit: t.NumberC;
|
|
21
|
+
}>;
|
|
22
|
+
analytics_control: t.TypeC<{
|
|
23
|
+
silent_enabled: t.BooleanC;
|
|
24
|
+
allow_event_handlers: t.BooleanC;
|
|
25
|
+
}>;
|
|
26
|
+
skins: t.TypeC<{
|
|
27
|
+
limit: t.NumberC;
|
|
28
|
+
field_set: t.UnionC<[t.LiteralC<"pro">, t.LiteralC<"basic">]>;
|
|
29
|
+
}>;
|
|
30
|
+
deployment: t.TypeC<{
|
|
31
|
+
show_countdown_banner: t.BooleanC;
|
|
32
|
+
}>;
|
|
33
|
+
view: t.TypeC<{
|
|
34
|
+
in_bar_feedback: t.BooleanC;
|
|
35
|
+
}>;
|
|
36
|
+
end_user_limit: t.NumberC;
|
|
37
|
+
user_seat_limit: t.NumberC;
|
|
38
|
+
releases: t.TypeC<{
|
|
39
|
+
available: t.BooleanC;
|
|
40
|
+
environments: t.ArrayC<t.StringC>;
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
export declare class Organization {
|
|
44
|
+
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
|
45
|
+
onSuccess?: (() => void) | undefined;
|
|
46
|
+
onError?: ((err: string) => void) | undefined;
|
|
47
|
+
} | undefined) => Promise<{
|
|
48
|
+
id: string | number;
|
|
49
|
+
name: string;
|
|
50
|
+
created: string;
|
|
51
|
+
} & {} & {
|
|
52
|
+
launcher_type: "alternate" | "none" | "prompt" | "minimal";
|
|
53
|
+
launcher_position: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
|
|
54
|
+
show_launcher_recommendations: boolean;
|
|
55
|
+
recommendations_type: "None" | "Custom" | "Algorithm";
|
|
56
|
+
launcher_offset_x: number;
|
|
57
|
+
launcher_offset_y: number;
|
|
58
|
+
theme: object;
|
|
59
|
+
icon: string;
|
|
60
|
+
icon_suggest: string;
|
|
61
|
+
icon_tutorial: string;
|
|
62
|
+
icon_go_forward: string;
|
|
63
|
+
resource_options: {
|
|
64
|
+
[x: string]: {
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
search?: boolean | undefined;
|
|
67
|
+
label_field?: string | undefined;
|
|
68
|
+
useCategory?: boolean | undefined;
|
|
69
|
+
search_fields?: string[] | undefined;
|
|
70
|
+
auto_execute?: boolean | undefined;
|
|
71
|
+
unfurl?: boolean | undefined;
|
|
72
|
+
description_field?: string | undefined;
|
|
73
|
+
icon?: string | undefined;
|
|
74
|
+
sort_key?: number | undefined;
|
|
75
|
+
max_options_count?: number | null | undefined;
|
|
76
|
+
sortFunction?: any;
|
|
77
|
+
default_command_id?: number | undefined;
|
|
78
|
+
showResources?: boolean | undefined;
|
|
79
|
+
show_with_no_results?: boolean | undefined;
|
|
80
|
+
search_tab_enabled?: boolean | undefined;
|
|
81
|
+
search_tab_name?: string | null | undefined;
|
|
82
|
+
search_tab_instruction?: string | null | undefined;
|
|
83
|
+
setting_pin_to_bottom?: boolean | undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
should_show_onboarding: boolean;
|
|
87
|
+
last_snippet_request: string | null;
|
|
88
|
+
last_snippet_request_in_production: string | null;
|
|
89
|
+
branding: string;
|
|
90
|
+
custom_call_to_action: string;
|
|
91
|
+
search_fuzzy_threshold: number | null;
|
|
92
|
+
show_skin_editor: boolean;
|
|
93
|
+
allow_event_handlers: boolean;
|
|
94
|
+
in_bar_feedback: boolean;
|
|
95
|
+
summon_hotkey_override: string | null;
|
|
96
|
+
end_user_hotkeys: boolean;
|
|
97
|
+
releases_available: boolean;
|
|
98
|
+
releases_enabled: boolean;
|
|
99
|
+
}>;
|
|
100
|
+
static update: (object: {
|
|
101
|
+
id: string | number;
|
|
102
|
+
name: string;
|
|
103
|
+
created: string;
|
|
104
|
+
} & {} & {
|
|
105
|
+
launcher_type: "alternate" | "none" | "prompt" | "minimal";
|
|
106
|
+
launcher_position: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
|
|
107
|
+
show_launcher_recommendations: boolean;
|
|
108
|
+
recommendations_type: "None" | "Custom" | "Algorithm";
|
|
109
|
+
launcher_offset_x: number;
|
|
110
|
+
launcher_offset_y: number;
|
|
111
|
+
theme: object;
|
|
112
|
+
icon: string;
|
|
113
|
+
icon_suggest: string;
|
|
114
|
+
icon_tutorial: string;
|
|
115
|
+
icon_go_forward: string;
|
|
116
|
+
resource_options: {
|
|
117
|
+
[x: string]: {
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
search?: boolean | undefined;
|
|
120
|
+
label_field?: string | undefined;
|
|
121
|
+
useCategory?: boolean | undefined;
|
|
122
|
+
search_fields?: string[] | undefined;
|
|
123
|
+
auto_execute?: boolean | undefined;
|
|
124
|
+
unfurl?: boolean | undefined;
|
|
125
|
+
description_field?: string | undefined;
|
|
126
|
+
icon?: string | undefined;
|
|
127
|
+
sort_key?: number | undefined;
|
|
128
|
+
max_options_count?: number | null | undefined;
|
|
129
|
+
sortFunction?: any;
|
|
130
|
+
default_command_id?: number | undefined;
|
|
131
|
+
showResources?: boolean | undefined;
|
|
132
|
+
show_with_no_results?: boolean | undefined;
|
|
133
|
+
search_tab_enabled?: boolean | undefined;
|
|
134
|
+
search_tab_name?: string | null | undefined;
|
|
135
|
+
search_tab_instruction?: string | null | undefined;
|
|
136
|
+
setting_pin_to_bottom?: boolean | undefined;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
should_show_onboarding: boolean;
|
|
140
|
+
last_snippet_request: string | null;
|
|
141
|
+
last_snippet_request_in_production: string | null;
|
|
142
|
+
branding: string;
|
|
143
|
+
custom_call_to_action: string;
|
|
144
|
+
search_fuzzy_threshold: number | null;
|
|
145
|
+
show_skin_editor: boolean;
|
|
146
|
+
allow_event_handlers: boolean;
|
|
147
|
+
in_bar_feedback: boolean;
|
|
148
|
+
summon_hotkey_override: string | null;
|
|
149
|
+
end_user_hotkeys: boolean;
|
|
150
|
+
releases_available: boolean;
|
|
151
|
+
releases_enabled: boolean;
|
|
152
|
+
}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
153
|
+
id: string | number;
|
|
154
|
+
name: string;
|
|
155
|
+
created: string;
|
|
156
|
+
} & {} & {
|
|
157
|
+
launcher_type: "alternate" | "none" | "prompt" | "minimal";
|
|
158
|
+
launcher_position: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
|
|
159
|
+
show_launcher_recommendations: boolean;
|
|
160
|
+
recommendations_type: "None" | "Custom" | "Algorithm";
|
|
161
|
+
launcher_offset_x: number;
|
|
162
|
+
launcher_offset_y: number;
|
|
163
|
+
theme: object;
|
|
164
|
+
icon: string;
|
|
165
|
+
icon_suggest: string;
|
|
166
|
+
icon_tutorial: string;
|
|
167
|
+
icon_go_forward: string;
|
|
168
|
+
resource_options: {
|
|
169
|
+
[x: string]: {
|
|
170
|
+
name?: string | undefined;
|
|
171
|
+
search?: boolean | undefined;
|
|
172
|
+
label_field?: string | undefined;
|
|
173
|
+
useCategory?: boolean | undefined;
|
|
174
|
+
search_fields?: string[] | undefined;
|
|
175
|
+
auto_execute?: boolean | undefined;
|
|
176
|
+
unfurl?: boolean | undefined;
|
|
177
|
+
description_field?: string | undefined;
|
|
178
|
+
icon?: string | undefined;
|
|
179
|
+
sort_key?: number | undefined;
|
|
180
|
+
max_options_count?: number | null | undefined;
|
|
181
|
+
sortFunction?: any;
|
|
182
|
+
default_command_id?: number | undefined;
|
|
183
|
+
showResources?: boolean | undefined;
|
|
184
|
+
show_with_no_results?: boolean | undefined;
|
|
185
|
+
search_tab_enabled?: boolean | undefined;
|
|
186
|
+
search_tab_name?: string | null | undefined;
|
|
187
|
+
search_tab_instruction?: string | null | undefined;
|
|
188
|
+
setting_pin_to_bottom?: boolean | undefined;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
should_show_onboarding: boolean;
|
|
192
|
+
last_snippet_request: string | null;
|
|
193
|
+
last_snippet_request_in_production: string | null;
|
|
194
|
+
branding: string;
|
|
195
|
+
custom_call_to_action: string;
|
|
196
|
+
search_fuzzy_threshold: number | null;
|
|
197
|
+
show_skin_editor: boolean;
|
|
198
|
+
allow_event_handlers: boolean;
|
|
199
|
+
in_bar_feedback: boolean;
|
|
200
|
+
summon_hotkey_override: string | null;
|
|
201
|
+
end_user_hotkeys: boolean;
|
|
202
|
+
releases_available: boolean;
|
|
203
|
+
releases_enabled: boolean;
|
|
204
|
+
}>;
|
|
205
|
+
static listCommands: (orgUID: string) => Promise<({
|
|
206
|
+
id: number;
|
|
207
|
+
organization: string | number;
|
|
208
|
+
text: string;
|
|
209
|
+
template: ({
|
|
210
|
+
type: "admin";
|
|
211
|
+
value: string;
|
|
212
|
+
} & {} & {
|
|
213
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
|
214
|
+
object?: string | undefined;
|
|
215
|
+
hoverTooltip?: boolean | undefined;
|
|
216
|
+
operation?: "self" | "router" | "blank" | undefined;
|
|
217
|
+
}) | ({
|
|
218
|
+
type: "callback";
|
|
219
|
+
value: string;
|
|
220
|
+
} & {} & {
|
|
221
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
|
222
|
+
object?: string | undefined;
|
|
223
|
+
hoverTooltip?: boolean | undefined;
|
|
224
|
+
operation?: "self" | "router" | "blank" | undefined;
|
|
225
|
+
}) | ({
|
|
226
|
+
type: "link";
|
|
227
|
+
value: string;
|
|
228
|
+
} & {} & {
|
|
229
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
|
230
|
+
object?: string | undefined;
|
|
231
|
+
hoverTooltip?: boolean | undefined;
|
|
232
|
+
operation?: "self" | "router" | "blank" | undefined;
|
|
233
|
+
}) | ({
|
|
234
|
+
type: "click" | "clickBySelector" | "clickByXpath";
|
|
235
|
+
value: string[];
|
|
236
|
+
} & {} & {
|
|
237
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
|
238
|
+
object?: string | undefined;
|
|
239
|
+
hoverTooltip?: boolean | undefined;
|
|
240
|
+
operation?: "self" | "router" | "blank" | undefined;
|
|
241
|
+
}) | ({
|
|
242
|
+
type: "builtin";
|
|
243
|
+
value: string;
|
|
244
|
+
} & {} & {
|
|
245
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
|
246
|
+
object?: string | undefined;
|
|
247
|
+
hoverTooltip?: boolean | undefined;
|
|
248
|
+
operation?: "self" | "router" | "blank" | undefined;
|
|
249
|
+
}) | ({
|
|
250
|
+
type: "webhook";
|
|
251
|
+
value: string;
|
|
252
|
+
} & {} & {
|
|
253
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
|
254
|
+
object?: string | undefined;
|
|
255
|
+
hoverTooltip?: boolean | undefined;
|
|
256
|
+
operation?: "self" | "router" | "blank" | undefined;
|
|
257
|
+
}) | ({
|
|
258
|
+
type: "script";
|
|
259
|
+
value: string;
|
|
260
|
+
} & {} & {
|
|
261
|
+
commandType?: "object" | "independent" | "help" | undefined;
|
|
262
|
+
object?: string | undefined;
|
|
263
|
+
hoverTooltip?: boolean | undefined;
|
|
264
|
+
operation?: "self" | "router" | "blank" | undefined;
|
|
265
|
+
});
|
|
266
|
+
} & {
|
|
267
|
+
disabledReason?: string | undefined;
|
|
268
|
+
source?: string | undefined;
|
|
269
|
+
name?: string | undefined;
|
|
270
|
+
last_available?: string | null | undefined;
|
|
271
|
+
modified?: string | undefined;
|
|
272
|
+
} & {
|
|
273
|
+
arguments: {
|
|
274
|
+
[x: string]: ({
|
|
275
|
+
type: "context";
|
|
276
|
+
value: string;
|
|
277
|
+
order_key: number;
|
|
278
|
+
} & {
|
|
279
|
+
label?: string | undefined;
|
|
280
|
+
chosen?: string | number | undefined;
|
|
281
|
+
selected?: any[] | undefined;
|
|
282
|
+
input_type?: string | undefined;
|
|
283
|
+
preselected_key?: string | undefined;
|
|
284
|
+
label_field?: string | undefined;
|
|
285
|
+
availability_condition?: {
|
|
286
|
+
field: string;
|
|
287
|
+
operator: "==" | "!=" | "isTruthy" | "isFalsy";
|
|
288
|
+
value: string | undefined;
|
|
289
|
+
}[] | undefined;
|
|
290
|
+
loaded?: any[] | undefined;
|
|
291
|
+
allow_create?: boolean | undefined;
|
|
292
|
+
allow_create_label?: string | undefined;
|
|
293
|
+
}) | ({
|
|
294
|
+
type: "set";
|
|
295
|
+
value: string[] | number[] | {
|
|
296
|
+
[key: string]: unknown;
|
|
297
|
+
}[];
|
|
298
|
+
order_key: number;
|
|
299
|
+
} & {
|
|
300
|
+
label?: string | undefined;
|
|
301
|
+
chosen?: string | number | undefined;
|
|
302
|
+
selected?: any[] | undefined;
|
|
303
|
+
input_type?: string | undefined;
|
|
304
|
+
preselected_key?: string | undefined;
|
|
305
|
+
label_field?: string | undefined;
|
|
306
|
+
availability_condition?: {
|
|
307
|
+
field: string;
|
|
308
|
+
operator: "==" | "!=" | "isTruthy" | "isFalsy";
|
|
309
|
+
value: string | undefined;
|
|
310
|
+
}[] | undefined;
|
|
311
|
+
loaded?: any[] | undefined;
|
|
312
|
+
allow_create?: boolean | undefined;
|
|
313
|
+
allow_create_label?: string | undefined;
|
|
314
|
+
}) | ({
|
|
315
|
+
type: "provided";
|
|
316
|
+
value: "time" | "text";
|
|
317
|
+
order_key: number;
|
|
318
|
+
} & {
|
|
319
|
+
label?: string | undefined;
|
|
320
|
+
chosen?: string | number | undefined;
|
|
321
|
+
selected?: any[] | undefined;
|
|
322
|
+
input_type?: string | undefined;
|
|
323
|
+
preselected_key?: string | undefined;
|
|
324
|
+
label_field?: string | undefined;
|
|
325
|
+
availability_condition?: {
|
|
326
|
+
field: string;
|
|
327
|
+
operator: "==" | "!=" | "isTruthy" | "isFalsy";
|
|
328
|
+
value: string | undefined;
|
|
329
|
+
}[] | undefined;
|
|
330
|
+
loaded?: any[] | undefined;
|
|
331
|
+
dateTimeArgumentTypeId?: number | undefined;
|
|
332
|
+
allow_create?: boolean | undefined;
|
|
333
|
+
allow_create_label?: string | undefined;
|
|
334
|
+
}) | ({
|
|
335
|
+
type: "dependent";
|
|
336
|
+
value: string;
|
|
337
|
+
order_key: number;
|
|
338
|
+
} & {
|
|
339
|
+
label?: string | undefined;
|
|
340
|
+
chosen?: string | number | undefined;
|
|
341
|
+
selected?: any[] | undefined;
|
|
342
|
+
input_type?: string | undefined;
|
|
343
|
+
preselected_key?: string | undefined;
|
|
344
|
+
label_field?: string | undefined;
|
|
345
|
+
availability_condition?: {
|
|
346
|
+
field: string;
|
|
347
|
+
operator: "==" | "!=" | "isTruthy" | "isFalsy";
|
|
348
|
+
value: string | undefined;
|
|
349
|
+
}[] | undefined;
|
|
350
|
+
loaded?: any[] | undefined;
|
|
351
|
+
allow_create?: boolean | undefined;
|
|
352
|
+
allow_create_label?: string | undefined;
|
|
353
|
+
}) | ({
|
|
354
|
+
type: "function";
|
|
355
|
+
value: string;
|
|
356
|
+
order_key: number;
|
|
357
|
+
} & {
|
|
358
|
+
label?: string | undefined;
|
|
359
|
+
chosen?: string | number | undefined;
|
|
360
|
+
selected?: any[] | undefined;
|
|
361
|
+
input_type?: string | undefined;
|
|
362
|
+
preselected_key?: string | undefined;
|
|
363
|
+
label_field?: string | undefined;
|
|
364
|
+
availability_condition?: {
|
|
365
|
+
field: string;
|
|
366
|
+
operator: "==" | "!=" | "isTruthy" | "isFalsy";
|
|
367
|
+
value: string | undefined;
|
|
368
|
+
}[] | undefined;
|
|
369
|
+
loaded?: any[] | undefined;
|
|
370
|
+
allow_create?: boolean | undefined;
|
|
371
|
+
allow_create_label?: string | undefined;
|
|
372
|
+
});
|
|
373
|
+
};
|
|
374
|
+
tags: string[];
|
|
375
|
+
availability_rules: ({
|
|
376
|
+
type: "url" | "context" | "element";
|
|
377
|
+
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
|
|
378
|
+
} & {
|
|
379
|
+
field?: string | undefined;
|
|
380
|
+
value?: string | undefined;
|
|
381
|
+
reason?: string | undefined;
|
|
382
|
+
})[];
|
|
383
|
+
recommend_rules: (({
|
|
384
|
+
type: "always";
|
|
385
|
+
} & {
|
|
386
|
+
operator?: null | undefined;
|
|
387
|
+
field?: null | undefined;
|
|
388
|
+
value?: null | undefined;
|
|
389
|
+
reason?: null | undefined;
|
|
390
|
+
}) | ({
|
|
391
|
+
type: "url" | "context" | "element";
|
|
392
|
+
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
|
|
393
|
+
} & {
|
|
394
|
+
field?: string | undefined;
|
|
395
|
+
value?: string | undefined;
|
|
396
|
+
reason?: string | undefined;
|
|
397
|
+
}))[];
|
|
398
|
+
confirm: string;
|
|
399
|
+
shortcut: string[];
|
|
400
|
+
explanation: string;
|
|
401
|
+
is_live: boolean;
|
|
402
|
+
category: number | null;
|
|
403
|
+
sort_key: number | null;
|
|
404
|
+
icon: string | null;
|
|
405
|
+
celebrate: {
|
|
406
|
+
[x: string]: any;
|
|
407
|
+
} | null;
|
|
408
|
+
recommend_sort_key: number | null;
|
|
409
|
+
shortcut_mac: string[];
|
|
410
|
+
shortcut_win: string[];
|
|
411
|
+
hotkey_mac: string;
|
|
412
|
+
hotkey_win: string;
|
|
413
|
+
})[]>;
|
|
414
|
+
static listCommandCategories: (orgUID: string) => Promise<({
|
|
415
|
+
id: number;
|
|
416
|
+
organization: string | number;
|
|
417
|
+
name: string;
|
|
418
|
+
} & {} & {
|
|
419
|
+
sort_key: number | null;
|
|
420
|
+
icon: string | null;
|
|
421
|
+
setting_hide_before_search: boolean;
|
|
422
|
+
setting_max_options_count: number | null;
|
|
423
|
+
setting_pin_to_bottom: boolean;
|
|
424
|
+
search_tab_enabled: boolean;
|
|
425
|
+
search_tab_name: string;
|
|
426
|
+
search_tab_instruction: string;
|
|
427
|
+
})[]>;
|
|
428
|
+
static listGuides: (orgUID: string) => Promise<({
|
|
429
|
+
id: number;
|
|
430
|
+
organization: string;
|
|
431
|
+
event: string;
|
|
432
|
+
nudge: string;
|
|
433
|
+
guidance: string;
|
|
434
|
+
} & {})[]>;
|
|
435
|
+
static listContexts: (orgUID: string) => Promise<({
|
|
436
|
+
id: number;
|
|
437
|
+
name: string;
|
|
438
|
+
organization: string;
|
|
439
|
+
value: {
|
|
440
|
+
[x: string]: any;
|
|
441
|
+
};
|
|
442
|
+
} & {})[]>;
|
|
443
|
+
static listPlaceholders: (orgUID: string) => Promise<({
|
|
444
|
+
id: number;
|
|
445
|
+
organization: string;
|
|
446
|
+
slug: string;
|
|
447
|
+
text: string;
|
|
448
|
+
} & {})[]>;
|
|
449
|
+
static listRules: (orgUID: string) => Promise<{
|
|
450
|
+
id: number;
|
|
451
|
+
name: string;
|
|
452
|
+
conditions: ({
|
|
453
|
+
type: "url" | "context" | "element";
|
|
454
|
+
operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
|
|
455
|
+
} & {
|
|
456
|
+
field?: string | undefined;
|
|
457
|
+
value?: string | undefined;
|
|
458
|
+
reason?: string | undefined;
|
|
459
|
+
})[];
|
|
460
|
+
}[]>;
|
|
461
|
+
static userHasAccess: (uuid: string, user: string) => Promise<{
|
|
462
|
+
username: string;
|
|
463
|
+
slug: string;
|
|
464
|
+
organization: string;
|
|
465
|
+
has_access: boolean;
|
|
466
|
+
has_opened: boolean;
|
|
467
|
+
hotkeys_debug: boolean;
|
|
468
|
+
hmac: string | undefined;
|
|
469
|
+
}>;
|
|
470
|
+
static readHealth: (arg0: string, urlArgs?: {
|
|
471
|
+
[arg: string]: string;
|
|
472
|
+
} | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
473
|
+
id: string | number;
|
|
474
|
+
uuid: string;
|
|
475
|
+
errors_72h: number;
|
|
476
|
+
suggestions_72h: number;
|
|
477
|
+
executions_total: number;
|
|
478
|
+
users_total: number;
|
|
479
|
+
}>;
|
|
480
|
+
static readInternal: (arg0: string, urlArgs?: {
|
|
481
|
+
[arg: string]: string;
|
|
482
|
+
} | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
483
|
+
id: string;
|
|
484
|
+
integrations: {
|
|
485
|
+
[x: string]: {
|
|
486
|
+
[x: string]: string;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
}>;
|
|
490
|
+
static updateInternal: (object: {
|
|
491
|
+
id: string;
|
|
492
|
+
integrations: {
|
|
493
|
+
[x: string]: {
|
|
494
|
+
[x: string]: string;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
497
|
+
}, urlArgs?: {
|
|
498
|
+
[arg: string]: string;
|
|
499
|
+
} | undefined, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
500
|
+
id: string;
|
|
501
|
+
integrations: {
|
|
502
|
+
[x: string]: {
|
|
503
|
+
[x: string]: string;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
}>;
|
|
507
|
+
static readSettings: (params?: Record<string, string> | undefined, callbacks?: {
|
|
508
|
+
onSuccess?: (() => void) | undefined;
|
|
509
|
+
onError?: ((err: string) => void) | undefined;
|
|
510
|
+
} | undefined) => Promise<{
|
|
511
|
+
analytics: {
|
|
512
|
+
execution_limit: number;
|
|
513
|
+
deadend_limit: number;
|
|
514
|
+
};
|
|
515
|
+
analytics_control: {
|
|
516
|
+
silent_enabled: boolean;
|
|
517
|
+
allow_event_handlers: boolean;
|
|
518
|
+
};
|
|
519
|
+
skins: {
|
|
520
|
+
limit: number;
|
|
521
|
+
field_set: "basic" | "pro";
|
|
522
|
+
};
|
|
523
|
+
deployment: {
|
|
524
|
+
show_countdown_banner: boolean;
|
|
525
|
+
};
|
|
526
|
+
view: {
|
|
527
|
+
in_bar_feedback: boolean;
|
|
528
|
+
};
|
|
529
|
+
end_user_limit: number;
|
|
530
|
+
user_seat_limit: number;
|
|
531
|
+
releases: {
|
|
532
|
+
available: boolean;
|
|
533
|
+
environments: string[];
|
|
534
|
+
};
|
|
535
|
+
}>;
|
|
536
|
+
static decode: (data: any) => {
|
|
537
|
+
id: string | number;
|
|
538
|
+
name: string;
|
|
539
|
+
created: string;
|
|
540
|
+
} & {} & {
|
|
541
|
+
launcher_type: "alternate" | "none" | "prompt" | "minimal";
|
|
542
|
+
launcher_position: "topRight" | "topLeft" | "bottomRight" | "bottomLeft";
|
|
543
|
+
show_launcher_recommendations: boolean;
|
|
544
|
+
recommendations_type: "None" | "Custom" | "Algorithm";
|
|
545
|
+
launcher_offset_x: number;
|
|
546
|
+
launcher_offset_y: number;
|
|
547
|
+
theme: object;
|
|
548
|
+
icon: string;
|
|
549
|
+
icon_suggest: string;
|
|
550
|
+
icon_tutorial: string;
|
|
551
|
+
icon_go_forward: string;
|
|
552
|
+
resource_options: {
|
|
553
|
+
[x: string]: {
|
|
554
|
+
name?: string | undefined;
|
|
555
|
+
search?: boolean | undefined;
|
|
556
|
+
label_field?: string | undefined;
|
|
557
|
+
useCategory?: boolean | undefined;
|
|
558
|
+
search_fields?: string[] | undefined;
|
|
559
|
+
auto_execute?: boolean | undefined;
|
|
560
|
+
unfurl?: boolean | undefined;
|
|
561
|
+
description_field?: string | undefined;
|
|
562
|
+
icon?: string | undefined;
|
|
563
|
+
sort_key?: number | undefined;
|
|
564
|
+
max_options_count?: number | null | undefined;
|
|
565
|
+
sortFunction?: any;
|
|
566
|
+
default_command_id?: number | undefined;
|
|
567
|
+
showResources?: boolean | undefined;
|
|
568
|
+
show_with_no_results?: boolean | undefined;
|
|
569
|
+
search_tab_enabled?: boolean | undefined;
|
|
570
|
+
search_tab_name?: string | null | undefined;
|
|
571
|
+
search_tab_instruction?: string | null | undefined;
|
|
572
|
+
setting_pin_to_bottom?: boolean | undefined;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
should_show_onboarding: boolean;
|
|
576
|
+
last_snippet_request: string | null;
|
|
577
|
+
last_snippet_request_in_production: string | null;
|
|
578
|
+
branding: string;
|
|
579
|
+
custom_call_to_action: string;
|
|
580
|
+
search_fuzzy_threshold: number | null;
|
|
581
|
+
show_skin_editor: boolean;
|
|
582
|
+
allow_event_handlers: boolean;
|
|
583
|
+
in_bar_feedback: boolean;
|
|
584
|
+
summon_hotkey_override: string | null;
|
|
585
|
+
end_user_hotkeys: boolean;
|
|
586
|
+
releases_available: boolean;
|
|
587
|
+
releases_enabled: boolean;
|
|
588
|
+
};
|
|
589
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
export declare const PlaceholderV: t.IntersectionC<[t.TypeC<{
|
|
3
|
+
id: t.NumberC;
|
|
4
|
+
organization: t.StringC;
|
|
5
|
+
slug: t.StringC;
|
|
6
|
+
text: t.StringC;
|
|
7
|
+
}>, t.PartialC<{}>]>;
|
|
8
|
+
export declare class Placeholder {
|
|
9
|
+
static create: (object: {
|
|
10
|
+
id: number;
|
|
11
|
+
organization: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
text: string;
|
|
14
|
+
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
15
|
+
id: number;
|
|
16
|
+
organization: string;
|
|
17
|
+
slug: string;
|
|
18
|
+
text: string;
|
|
19
|
+
} & {}>;
|
|
20
|
+
static update: (object: {
|
|
21
|
+
id: number;
|
|
22
|
+
organization: string;
|
|
23
|
+
slug: string;
|
|
24
|
+
text: string;
|
|
25
|
+
} & {}, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
26
|
+
id: number;
|
|
27
|
+
organization: string;
|
|
28
|
+
slug: string;
|
|
29
|
+
text: string;
|
|
30
|
+
} & {}>;
|
|
31
|
+
static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
|
|
32
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
|
|
33
|
+
id: number;
|
|
34
|
+
organization: string;
|
|
35
|
+
slug: string;
|
|
36
|
+
text: string;
|
|
37
|
+
} & {})[]>;
|
|
38
|
+
static read: (arg0: string, params?: Record<string, string> | undefined, callbacks?: {
|
|
39
|
+
onSuccess?: (() => void) | undefined;
|
|
40
|
+
onError?: ((err: string) => void) | undefined;
|
|
41
|
+
} | undefined) => Promise<{
|
|
42
|
+
id: number;
|
|
43
|
+
organization: string;
|
|
44
|
+
slug: string;
|
|
45
|
+
text: string;
|
|
46
|
+
} & {}>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as t from 'io-ts';
|
|
2
|
+
export declare const ProfileV: t.TypeC<{
|
|
3
|
+
user: t.StringC;
|
|
4
|
+
organization: t.StringC;
|
|
5
|
+
}>;
|
|
6
|
+
export declare class Profile {
|
|
7
|
+
static list: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
|
|
8
|
+
user: string;
|
|
9
|
+
organization: string;
|
|
10
|
+
}[]>;
|
|
11
|
+
}
|