commandbar 1.6.7 → 1.6.8

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