commandbar 1.6.3 → 1.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/build/commandbar-js/src/index.js +1 -1
  2. package/build/commandbar-js/src/init.d.ts +3 -0
  3. package/build/internal/src/client/{Reporting.d.ts → AnalyticsEventTypes.d.ts} +1 -1
  4. package/build/internal/src/client/CommandBarClientSDK.d.ts +44 -6
  5. package/build/internal/src/client/CommandBarSDK.d.ts +2 -2
  6. package/build/internal/src/client/EventHandler.d.ts +19 -1
  7. package/build/internal/src/client/SDKConfig.d.ts +5 -0
  8. package/build/internal/src/client/globals.d.ts +18 -0
  9. package/build/internal/src/middleware/CommandFromClientV.d.ts +11 -4
  10. package/build/internal/src/middleware/OrganizationV.d.ts +6 -0
  11. package/build/internal/src/middleware/ResourceSettingsV.d.ts +6 -0
  12. package/build/internal/src/middleware/command.d.ts +2852 -0
  13. package/build/internal/src/middleware/commandCategory.d.ts +87 -0
  14. package/build/internal/src/middleware/context.d.ts +40 -0
  15. package/build/internal/src/middleware/environment.d.ts +11 -0
  16. package/build/internal/src/middleware/generics.d.ts +32 -0
  17. package/build/internal/src/middleware/guide.d.ts +37 -0
  18. package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
  19. package/build/internal/src/middleware/helpers/rules.d.ts +154 -3
  20. package/build/internal/src/middleware/historyEvent.d.ts +40 -0
  21. package/build/internal/src/middleware/network.d.ts +4 -0
  22. package/build/internal/src/middleware/organization.d.ts +589 -0
  23. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  24. package/build/internal/src/middleware/profile.d.ts +11 -0
  25. package/build/internal/src/middleware/releases.d.ts +261 -0
  26. package/build/internal/src/middleware/skin.d.ts +66 -0
  27. package/build/internal/src/middleware/types.d.ts +359 -0
  28. package/build/internal/src/middleware/user.d.ts +12 -0
  29. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  30. package/build/internal/src/util/Logger.d.ts +18 -0
  31. package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
  32. package/package.json +2 -2
  33. package/src/init.ts +10 -2
  34. package/src/snippet.ts +1 -1
@@ -0,0 +1,2852 @@
1
+ /*******************************************************************************/
2
+ import * as t from 'io-ts';
3
+ export { CommandFromClientV } from './CommandFromClientV';
4
+ export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5
+ id: t.NumberC;
6
+ organization: t.UnionC<[t.NumberC, t.StringC]>;
7
+ text: t.StringC;
8
+ template: t.UnionC<[t.IntersectionC<[t.TypeC<{
9
+ type: t.LiteralC<"admin">;
10
+ value: t.StringC;
11
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
12
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
13
+ object: t.StringC;
14
+ hoverTooltip: t.BooleanC;
15
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
16
+ }>]>]>, t.IntersectionC<[t.TypeC<{
17
+ type: t.LiteralC<"callback">;
18
+ value: t.StringC;
19
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
20
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
21
+ object: t.StringC;
22
+ hoverTooltip: t.BooleanC;
23
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
24
+ }>]>]>, t.IntersectionC<[t.TypeC<{
25
+ type: t.LiteralC<"link">;
26
+ value: t.StringC;
27
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
28
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
29
+ object: t.StringC;
30
+ hoverTooltip: t.BooleanC;
31
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
32
+ }>]>]>, t.IntersectionC<[t.TypeC<{
33
+ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
34
+ value: t.ArrayC<t.StringC>;
35
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
36
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
37
+ object: t.StringC;
38
+ hoverTooltip: t.BooleanC;
39
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
40
+ }>]>]>, t.IntersectionC<[t.TypeC<{
41
+ type: t.LiteralC<"builtin">;
42
+ value: t.StringC;
43
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
44
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
45
+ object: t.StringC;
46
+ hoverTooltip: t.BooleanC;
47
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
48
+ }>]>]>, t.IntersectionC<[t.TypeC<{
49
+ type: t.LiteralC<"webhook">;
50
+ value: t.StringC;
51
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
52
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
53
+ object: t.StringC;
54
+ hoverTooltip: t.BooleanC;
55
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
56
+ }>]>]>, t.IntersectionC<[t.TypeC<{
57
+ type: t.LiteralC<"script">;
58
+ value: t.StringC;
59
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
60
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
61
+ object: t.StringC;
62
+ hoverTooltip: t.BooleanC;
63
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
64
+ }>]>]>]>;
65
+ }>, t.PartialC<{
66
+ disabledReason: t.StringC;
67
+ source: t.StringC;
68
+ name: t.StringC;
69
+ last_available: t.UnionC<[t.StringC, t.NullC]>;
70
+ modified: t.StringC;
71
+ }>]>, t.TypeC<{
72
+ arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
73
+ type: t.LiteralC<"context">;
74
+ value: t.StringC;
75
+ order_key: t.NumberC;
76
+ }>, t.PartialC<{
77
+ label: t.StringC;
78
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
79
+ selected: t.ArrayC<t.AnyC>;
80
+ input_type: t.StringC;
81
+ preselected_key: t.StringC;
82
+ label_field: t.StringC;
83
+ availability_condition: t.ArrayC<t.TypeC<{
84
+ field: t.StringC;
85
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
86
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
87
+ }>>;
88
+ loaded: t.ArrayC<t.AnyC>;
89
+ allow_create: t.BooleanC;
90
+ allow_create_label: t.StringC;
91
+ }>]>, t.IntersectionC<[t.TypeC<{
92
+ type: t.LiteralC<"set">;
93
+ value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
94
+ order_key: t.NumberC;
95
+ }>, t.PartialC<{
96
+ label: t.StringC;
97
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
98
+ selected: t.ArrayC<t.AnyC>;
99
+ input_type: t.StringC;
100
+ preselected_key: t.StringC;
101
+ label_field: t.StringC;
102
+ availability_condition: t.ArrayC<t.TypeC<{
103
+ field: t.StringC;
104
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
105
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
106
+ }>>;
107
+ loaded: t.ArrayC<t.AnyC>;
108
+ allow_create: t.BooleanC;
109
+ allow_create_label: t.StringC;
110
+ }>]>, t.IntersectionC<[t.TypeC<{
111
+ type: t.LiteralC<"provided">;
112
+ value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
113
+ order_key: t.NumberC;
114
+ }>, t.PartialC<{
115
+ label: t.StringC;
116
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
117
+ selected: t.ArrayC<t.AnyC>;
118
+ input_type: t.StringC;
119
+ preselected_key: t.StringC;
120
+ label_field: t.StringC;
121
+ availability_condition: t.ArrayC<t.TypeC<{
122
+ field: t.StringC;
123
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
124
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
125
+ }>>;
126
+ loaded: t.ArrayC<t.AnyC>;
127
+ dateTimeArgumentTypeId: t.NumberC;
128
+ allow_create: t.BooleanC;
129
+ allow_create_label: t.StringC;
130
+ }>]>, t.IntersectionC<[t.TypeC<{
131
+ type: t.LiteralC<"dependent">;
132
+ value: t.StringC;
133
+ order_key: t.NumberC;
134
+ }>, t.PartialC<{
135
+ label: t.StringC;
136
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
137
+ selected: t.ArrayC<t.AnyC>;
138
+ input_type: t.StringC;
139
+ preselected_key: t.StringC;
140
+ label_field: t.StringC;
141
+ availability_condition: t.ArrayC<t.TypeC<{
142
+ field: t.StringC;
143
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
144
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
145
+ }>>;
146
+ loaded: t.ArrayC<t.AnyC>;
147
+ allow_create: t.BooleanC;
148
+ allow_create_label: t.StringC;
149
+ }>]>, t.IntersectionC<[t.TypeC<{
150
+ type: t.LiteralC<"function">;
151
+ value: t.StringC;
152
+ order_key: t.NumberC;
153
+ }>, t.PartialC<{
154
+ label: t.StringC;
155
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
156
+ selected: t.ArrayC<t.AnyC>;
157
+ input_type: t.StringC;
158
+ preselected_key: t.StringC;
159
+ label_field: t.StringC;
160
+ availability_condition: t.ArrayC<t.TypeC<{
161
+ field: t.StringC;
162
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
163
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
164
+ }>>;
165
+ loaded: t.ArrayC<t.AnyC>;
166
+ allow_create: t.BooleanC;
167
+ allow_create_label: t.StringC;
168
+ }>]>]>>;
169
+ tags: t.ArrayC<t.StringC>;
170
+ availability_rules: t.ArrayC<t.IntersectionC<[t.TypeC<{
171
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
172
+ operator: t.KeyofC<{
173
+ includes: null;
174
+ endsWith: null;
175
+ startsWith: null;
176
+ is: null;
177
+ isTruthy: null;
178
+ isFalsy: null;
179
+ isNot: null;
180
+ isTrue: null;
181
+ isFalse: null;
182
+ doesNotInclude: null;
183
+ matchesRegex: null;
184
+ isGreaterThan: null;
185
+ isLessThan: null;
186
+ isDefined: null;
187
+ isNotDefined: null;
188
+ classnameOnPage: null;
189
+ idOnPage: null;
190
+ }>;
191
+ }>, t.PartialC<{
192
+ field: t.StringC;
193
+ value: t.StringC;
194
+ reason: t.StringC;
195
+ }>]>>;
196
+ recommend_rules: t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
197
+ type: t.LiteralC<"always">;
198
+ }>, t.PartialC<{
199
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
200
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
201
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
202
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
203
+ }>]>, t.IntersectionC<[t.TypeC<{
204
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
205
+ operator: t.KeyofC<{
206
+ includes: null;
207
+ endsWith: null;
208
+ startsWith: null;
209
+ is: null;
210
+ isTruthy: null;
211
+ isFalsy: null;
212
+ isNot: null;
213
+ isTrue: null;
214
+ isFalse: null;
215
+ doesNotInclude: null;
216
+ matchesRegex: null;
217
+ isGreaterThan: null;
218
+ isLessThan: null;
219
+ isDefined: null;
220
+ isNotDefined: null;
221
+ classnameOnPage: null;
222
+ idOnPage: null;
223
+ }>;
224
+ }>, t.PartialC<{
225
+ field: t.StringC;
226
+ value: t.StringC;
227
+ reason: t.StringC;
228
+ }>]>]>>;
229
+ confirm: t.StringC;
230
+ shortcut: t.ArrayC<t.StringC>;
231
+ explanation: t.StringC;
232
+ is_live: t.BooleanC;
233
+ category: t.UnionC<[t.NumberC, t.NullC]>;
234
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
235
+ icon: t.UnionC<[t.StringC, t.NullC]>;
236
+ celebrate: t.UnionC<[t.RecordC<t.StringC, t.AnyC>, t.NullC]>;
237
+ recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
238
+ shortcut_mac: t.ArrayC<t.StringC>;
239
+ shortcut_win: t.ArrayC<t.StringC>;
240
+ hotkey_mac: t.StringC;
241
+ hotkey_win: t.StringC;
242
+ }>]>;
243
+ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
244
+ id: t.NumberC;
245
+ organization: t.UnionC<[t.NumberC, t.StringC]>;
246
+ text: t.StringC;
247
+ template: t.UnionC<[t.IntersectionC<[t.TypeC<{
248
+ type: t.LiteralC<"admin">;
249
+ value: t.StringC;
250
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
251
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
252
+ object: t.StringC;
253
+ hoverTooltip: t.BooleanC;
254
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
255
+ }>]>]>, t.IntersectionC<[t.TypeC<{
256
+ type: t.LiteralC<"callback">;
257
+ value: t.StringC;
258
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
259
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
260
+ object: t.StringC;
261
+ hoverTooltip: t.BooleanC;
262
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
263
+ }>]>]>, t.IntersectionC<[t.TypeC<{
264
+ type: t.LiteralC<"link">;
265
+ value: t.StringC;
266
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
267
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
268
+ object: t.StringC;
269
+ hoverTooltip: t.BooleanC;
270
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
271
+ }>]>]>, t.IntersectionC<[t.TypeC<{
272
+ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
273
+ value: t.ArrayC<t.StringC>;
274
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
275
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
276
+ object: t.StringC;
277
+ hoverTooltip: t.BooleanC;
278
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
279
+ }>]>]>, t.IntersectionC<[t.TypeC<{
280
+ type: t.LiteralC<"builtin">;
281
+ value: t.StringC;
282
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
283
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
284
+ object: t.StringC;
285
+ hoverTooltip: t.BooleanC;
286
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
287
+ }>]>]>, t.IntersectionC<[t.TypeC<{
288
+ type: t.LiteralC<"webhook">;
289
+ value: t.StringC;
290
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
291
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
292
+ object: t.StringC;
293
+ hoverTooltip: t.BooleanC;
294
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
295
+ }>]>]>, t.IntersectionC<[t.TypeC<{
296
+ type: t.LiteralC<"script">;
297
+ value: t.StringC;
298
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
299
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
300
+ object: t.StringC;
301
+ hoverTooltip: t.BooleanC;
302
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
303
+ }>]>]>]>;
304
+ }>, t.PartialC<{
305
+ disabledReason: t.StringC;
306
+ source: t.StringC;
307
+ name: t.StringC;
308
+ last_available: t.UnionC<[t.StringC, t.NullC]>;
309
+ modified: t.StringC;
310
+ }>]>, t.TypeC<{
311
+ arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
312
+ type: t.LiteralC<"context">;
313
+ value: t.StringC;
314
+ order_key: t.NumberC;
315
+ }>, t.PartialC<{
316
+ label: t.StringC;
317
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
318
+ selected: t.ArrayC<t.AnyC>;
319
+ input_type: t.StringC;
320
+ preselected_key: t.StringC;
321
+ label_field: t.StringC;
322
+ availability_condition: t.ArrayC<t.TypeC<{
323
+ field: t.StringC;
324
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
325
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
326
+ }>>;
327
+ loaded: t.ArrayC<t.AnyC>;
328
+ allow_create: t.BooleanC;
329
+ allow_create_label: t.StringC;
330
+ }>]>, t.IntersectionC<[t.TypeC<{
331
+ type: t.LiteralC<"set">;
332
+ value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
333
+ order_key: t.NumberC;
334
+ }>, t.PartialC<{
335
+ label: t.StringC;
336
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
337
+ selected: t.ArrayC<t.AnyC>;
338
+ input_type: t.StringC;
339
+ preselected_key: t.StringC;
340
+ label_field: t.StringC;
341
+ availability_condition: t.ArrayC<t.TypeC<{
342
+ field: t.StringC;
343
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
344
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
345
+ }>>;
346
+ loaded: t.ArrayC<t.AnyC>;
347
+ allow_create: t.BooleanC;
348
+ allow_create_label: t.StringC;
349
+ }>]>, t.IntersectionC<[t.TypeC<{
350
+ type: t.LiteralC<"provided">;
351
+ value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
352
+ order_key: t.NumberC;
353
+ }>, t.PartialC<{
354
+ label: t.StringC;
355
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
356
+ selected: t.ArrayC<t.AnyC>;
357
+ input_type: t.StringC;
358
+ preselected_key: t.StringC;
359
+ label_field: t.StringC;
360
+ availability_condition: t.ArrayC<t.TypeC<{
361
+ field: t.StringC;
362
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
363
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
364
+ }>>;
365
+ loaded: t.ArrayC<t.AnyC>;
366
+ dateTimeArgumentTypeId: t.NumberC;
367
+ allow_create: t.BooleanC;
368
+ allow_create_label: t.StringC;
369
+ }>]>, t.IntersectionC<[t.TypeC<{
370
+ type: t.LiteralC<"dependent">;
371
+ value: t.StringC;
372
+ order_key: t.NumberC;
373
+ }>, t.PartialC<{
374
+ label: t.StringC;
375
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
376
+ selected: t.ArrayC<t.AnyC>;
377
+ input_type: t.StringC;
378
+ preselected_key: t.StringC;
379
+ label_field: t.StringC;
380
+ availability_condition: t.ArrayC<t.TypeC<{
381
+ field: t.StringC;
382
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
383
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
384
+ }>>;
385
+ loaded: t.ArrayC<t.AnyC>;
386
+ allow_create: t.BooleanC;
387
+ allow_create_label: t.StringC;
388
+ }>]>, t.IntersectionC<[t.TypeC<{
389
+ type: t.LiteralC<"function">;
390
+ value: t.StringC;
391
+ order_key: t.NumberC;
392
+ }>, t.PartialC<{
393
+ label: t.StringC;
394
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
395
+ selected: t.ArrayC<t.AnyC>;
396
+ input_type: t.StringC;
397
+ preselected_key: t.StringC;
398
+ label_field: t.StringC;
399
+ availability_condition: t.ArrayC<t.TypeC<{
400
+ field: t.StringC;
401
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
402
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
403
+ }>>;
404
+ loaded: t.ArrayC<t.AnyC>;
405
+ allow_create: t.BooleanC;
406
+ allow_create_label: t.StringC;
407
+ }>]>]>>;
408
+ tags: t.ArrayC<t.StringC>;
409
+ availability_rules: t.UnionC<[t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
410
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
411
+ operator: t.KeyofC<{
412
+ includes: null;
413
+ endsWith: null;
414
+ startsWith: null;
415
+ is: null;
416
+ isTruthy: null;
417
+ isFalsy: null;
418
+ isNot: null;
419
+ isTrue: null;
420
+ isFalse: null;
421
+ doesNotInclude: null;
422
+ matchesRegex: null;
423
+ isGreaterThan: null;
424
+ isLessThan: null;
425
+ isDefined: null;
426
+ isNotDefined: null;
427
+ classnameOnPage: null;
428
+ idOnPage: null;
429
+ }>;
430
+ }>, t.PartialC<{
431
+ field: t.StringC;
432
+ value: t.StringC;
433
+ reason: t.StringC;
434
+ }>]>, t.IntersectionC<[t.TypeC<{
435
+ type: t.LiteralC<"named_rule">;
436
+ rule_id: t.NumberC;
437
+ }>, t.PartialC<{
438
+ reason: t.StringC;
439
+ }>]>]>>, t.ArrayC<t.IntersectionC<[t.TypeC<{
440
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
441
+ operator: t.KeyofC<{
442
+ includes: null;
443
+ endsWith: null;
444
+ startsWith: null;
445
+ is: null;
446
+ isTruthy: null;
447
+ isFalsy: null;
448
+ isNot: null;
449
+ isTrue: null;
450
+ isFalse: null;
451
+ doesNotInclude: null;
452
+ matchesRegex: null;
453
+ isGreaterThan: null;
454
+ isLessThan: null;
455
+ isDefined: null;
456
+ isNotDefined: null;
457
+ classnameOnPage: null;
458
+ idOnPage: null;
459
+ }>;
460
+ }>, t.PartialC<{
461
+ field: t.StringC;
462
+ value: t.StringC;
463
+ reason: t.StringC;
464
+ }>]>>]>;
465
+ recommend_rules: t.UnionC<[t.ArrayC<t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
466
+ type: t.LiteralC<"always">;
467
+ }>, t.PartialC<{
468
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
469
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
470
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
471
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
472
+ }>]>, t.IntersectionC<[t.TypeC<{
473
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
474
+ operator: t.KeyofC<{
475
+ includes: null;
476
+ endsWith: null;
477
+ startsWith: null;
478
+ is: null;
479
+ isTruthy: null;
480
+ isFalsy: null;
481
+ isNot: null;
482
+ isTrue: null;
483
+ isFalse: null;
484
+ doesNotInclude: null;
485
+ matchesRegex: null;
486
+ isGreaterThan: null;
487
+ isLessThan: null;
488
+ isDefined: null;
489
+ isNotDefined: null;
490
+ classnameOnPage: null;
491
+ idOnPage: null;
492
+ }>;
493
+ }>, t.PartialC<{
494
+ field: t.StringC;
495
+ value: t.StringC;
496
+ reason: t.StringC;
497
+ }>]>]>, t.IntersectionC<[t.TypeC<{
498
+ type: t.LiteralC<"named_rule">;
499
+ rule_id: t.NumberC;
500
+ }>, t.PartialC<{
501
+ reason: t.StringC;
502
+ }>]>]>>, t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
503
+ type: t.LiteralC<"always">;
504
+ }>, t.PartialC<{
505
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
506
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
507
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
508
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
509
+ }>]>, t.IntersectionC<[t.TypeC<{
510
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
511
+ operator: t.KeyofC<{
512
+ includes: null;
513
+ endsWith: null;
514
+ startsWith: null;
515
+ is: null;
516
+ isTruthy: null;
517
+ isFalsy: null;
518
+ isNot: null;
519
+ isTrue: null;
520
+ isFalse: null;
521
+ doesNotInclude: null;
522
+ matchesRegex: null;
523
+ isGreaterThan: null;
524
+ isLessThan: null;
525
+ isDefined: null;
526
+ isNotDefined: null;
527
+ classnameOnPage: null;
528
+ idOnPage: null;
529
+ }>;
530
+ }>, t.PartialC<{
531
+ field: t.StringC;
532
+ value: t.StringC;
533
+ reason: t.StringC;
534
+ }>]>]>>]>;
535
+ confirm: t.StringC;
536
+ shortcut: t.ArrayC<t.StringC>;
537
+ explanation: t.StringC;
538
+ is_live: t.BooleanC;
539
+ category: t.UnionC<[t.NumberC, t.NullC]>;
540
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
541
+ icon: t.UnionC<[t.StringC, t.NullC]>;
542
+ celebrate: t.UnionC<[t.RecordC<t.StringC, t.AnyC>, t.NullC]>;
543
+ recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
544
+ shortcut_mac: t.ArrayC<t.StringC>;
545
+ shortcut_win: t.ArrayC<t.StringC>;
546
+ hotkey_mac: t.StringC;
547
+ hotkey_win: t.StringC;
548
+ }>]>;
549
+ export declare class Command {
550
+ static create: (object: {
551
+ id: number;
552
+ organization: string | number;
553
+ text: string;
554
+ template: ({
555
+ type: "admin";
556
+ value: string;
557
+ } & {} & {
558
+ commandType?: "object" | "independent" | "help" | undefined;
559
+ object?: string | undefined;
560
+ hoverTooltip?: boolean | undefined;
561
+ operation?: "self" | "router" | "blank" | undefined;
562
+ }) | ({
563
+ type: "callback";
564
+ value: string;
565
+ } & {} & {
566
+ commandType?: "object" | "independent" | "help" | undefined;
567
+ object?: string | undefined;
568
+ hoverTooltip?: boolean | undefined;
569
+ operation?: "self" | "router" | "blank" | undefined;
570
+ }) | ({
571
+ type: "link";
572
+ value: string;
573
+ } & {} & {
574
+ commandType?: "object" | "independent" | "help" | undefined;
575
+ object?: string | undefined;
576
+ hoverTooltip?: boolean | undefined;
577
+ operation?: "self" | "router" | "blank" | undefined;
578
+ }) | ({
579
+ type: "click" | "clickBySelector" | "clickByXpath";
580
+ value: string[];
581
+ } & {} & {
582
+ commandType?: "object" | "independent" | "help" | undefined;
583
+ object?: string | undefined;
584
+ hoverTooltip?: boolean | undefined;
585
+ operation?: "self" | "router" | "blank" | undefined;
586
+ }) | ({
587
+ type: "builtin";
588
+ value: string;
589
+ } & {} & {
590
+ commandType?: "object" | "independent" | "help" | undefined;
591
+ object?: string | undefined;
592
+ hoverTooltip?: boolean | undefined;
593
+ operation?: "self" | "router" | "blank" | undefined;
594
+ }) | ({
595
+ type: "webhook";
596
+ value: string;
597
+ } & {} & {
598
+ commandType?: "object" | "independent" | "help" | undefined;
599
+ object?: string | undefined;
600
+ hoverTooltip?: boolean | undefined;
601
+ operation?: "self" | "router" | "blank" | undefined;
602
+ }) | ({
603
+ type: "script";
604
+ value: string;
605
+ } & {} & {
606
+ commandType?: "object" | "independent" | "help" | undefined;
607
+ object?: string | undefined;
608
+ hoverTooltip?: boolean | undefined;
609
+ operation?: "self" | "router" | "blank" | undefined;
610
+ });
611
+ } & {
612
+ disabledReason?: string | undefined;
613
+ source?: string | undefined;
614
+ name?: string | undefined;
615
+ last_available?: string | null | undefined;
616
+ modified?: string | undefined;
617
+ } & {
618
+ arguments: {
619
+ [x: string]: ({
620
+ type: "context";
621
+ value: string;
622
+ order_key: number;
623
+ } & {
624
+ label?: string | undefined;
625
+ chosen?: string | number | undefined;
626
+ selected?: any[] | undefined;
627
+ input_type?: string | undefined;
628
+ preselected_key?: string | undefined;
629
+ label_field?: string | undefined;
630
+ availability_condition?: {
631
+ field: string;
632
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
633
+ value: string | undefined;
634
+ }[] | undefined;
635
+ loaded?: any[] | undefined;
636
+ allow_create?: boolean | undefined;
637
+ allow_create_label?: string | undefined;
638
+ }) | ({
639
+ type: "set";
640
+ value: string[] | number[] | {
641
+ [key: string]: unknown;
642
+ }[];
643
+ order_key: number;
644
+ } & {
645
+ label?: string | undefined;
646
+ chosen?: string | number | undefined;
647
+ selected?: any[] | undefined;
648
+ input_type?: string | undefined;
649
+ preselected_key?: string | undefined;
650
+ label_field?: string | undefined;
651
+ availability_condition?: {
652
+ field: string;
653
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
654
+ value: string | undefined;
655
+ }[] | undefined;
656
+ loaded?: any[] | undefined;
657
+ allow_create?: boolean | undefined;
658
+ allow_create_label?: string | undefined;
659
+ }) | ({
660
+ type: "provided";
661
+ value: "time" | "text";
662
+ order_key: number;
663
+ } & {
664
+ label?: string | undefined;
665
+ chosen?: string | number | undefined;
666
+ selected?: any[] | undefined;
667
+ input_type?: string | undefined;
668
+ preselected_key?: string | undefined;
669
+ label_field?: string | undefined;
670
+ availability_condition?: {
671
+ field: string;
672
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
673
+ value: string | undefined;
674
+ }[] | undefined;
675
+ loaded?: any[] | undefined;
676
+ dateTimeArgumentTypeId?: number | undefined;
677
+ allow_create?: boolean | undefined;
678
+ allow_create_label?: string | undefined;
679
+ }) | ({
680
+ type: "dependent";
681
+ value: string;
682
+ order_key: number;
683
+ } & {
684
+ label?: string | undefined;
685
+ chosen?: string | number | undefined;
686
+ selected?: any[] | undefined;
687
+ input_type?: string | undefined;
688
+ preselected_key?: string | undefined;
689
+ label_field?: string | undefined;
690
+ availability_condition?: {
691
+ field: string;
692
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
693
+ value: string | undefined;
694
+ }[] | undefined;
695
+ loaded?: any[] | undefined;
696
+ allow_create?: boolean | undefined;
697
+ allow_create_label?: string | undefined;
698
+ }) | ({
699
+ type: "function";
700
+ value: string;
701
+ order_key: number;
702
+ } & {
703
+ label?: string | undefined;
704
+ chosen?: string | number | undefined;
705
+ selected?: any[] | undefined;
706
+ input_type?: string | undefined;
707
+ preselected_key?: string | undefined;
708
+ label_field?: string | undefined;
709
+ availability_condition?: {
710
+ field: string;
711
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
712
+ value: string | undefined;
713
+ }[] | undefined;
714
+ loaded?: any[] | undefined;
715
+ allow_create?: boolean | undefined;
716
+ allow_create_label?: string | undefined;
717
+ });
718
+ };
719
+ tags: string[];
720
+ availability_rules: ({
721
+ type: "url" | "context" | "element";
722
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
723
+ } & {
724
+ field?: string | undefined;
725
+ value?: string | undefined;
726
+ reason?: string | undefined;
727
+ })[] | (({
728
+ type: "url" | "context" | "element";
729
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
730
+ } & {
731
+ field?: string | undefined;
732
+ value?: string | undefined;
733
+ reason?: string | undefined;
734
+ }) | ({
735
+ type: "named_rule";
736
+ rule_id: number;
737
+ } & {
738
+ reason?: string | undefined;
739
+ }))[];
740
+ recommend_rules: (({
741
+ type: "always";
742
+ } & {
743
+ operator?: null | undefined;
744
+ field?: null | undefined;
745
+ value?: null | undefined;
746
+ reason?: null | undefined;
747
+ }) | ({
748
+ type: "url" | "context" | "element";
749
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
750
+ } & {
751
+ field?: string | undefined;
752
+ value?: string | undefined;
753
+ reason?: string | undefined;
754
+ }))[] | (({
755
+ type: "always";
756
+ } & {
757
+ operator?: null | undefined;
758
+ field?: null | undefined;
759
+ value?: null | undefined;
760
+ reason?: null | undefined;
761
+ }) | ({
762
+ type: "url" | "context" | "element";
763
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
764
+ } & {
765
+ field?: string | undefined;
766
+ value?: string | undefined;
767
+ reason?: string | undefined;
768
+ }) | ({
769
+ type: "named_rule";
770
+ rule_id: number;
771
+ } & {
772
+ reason?: string | undefined;
773
+ }))[];
774
+ confirm: string;
775
+ shortcut: string[];
776
+ explanation: string;
777
+ is_live: boolean;
778
+ category: number | null;
779
+ sort_key: number | null;
780
+ icon: string | null;
781
+ celebrate: {
782
+ [x: string]: any;
783
+ } | null;
784
+ recommend_sort_key: number | null;
785
+ shortcut_mac: string[];
786
+ shortcut_win: string[];
787
+ hotkey_mac: string;
788
+ hotkey_win: string;
789
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
790
+ id: number;
791
+ organization: string | number;
792
+ text: string;
793
+ template: ({
794
+ type: "admin";
795
+ value: string;
796
+ } & {} & {
797
+ commandType?: "object" | "independent" | "help" | undefined;
798
+ object?: string | undefined;
799
+ hoverTooltip?: boolean | undefined;
800
+ operation?: "self" | "router" | "blank" | undefined;
801
+ }) | ({
802
+ type: "callback";
803
+ value: string;
804
+ } & {} & {
805
+ commandType?: "object" | "independent" | "help" | undefined;
806
+ object?: string | undefined;
807
+ hoverTooltip?: boolean | undefined;
808
+ operation?: "self" | "router" | "blank" | undefined;
809
+ }) | ({
810
+ type: "link";
811
+ value: string;
812
+ } & {} & {
813
+ commandType?: "object" | "independent" | "help" | undefined;
814
+ object?: string | undefined;
815
+ hoverTooltip?: boolean | undefined;
816
+ operation?: "self" | "router" | "blank" | undefined;
817
+ }) | ({
818
+ type: "click" | "clickBySelector" | "clickByXpath";
819
+ value: string[];
820
+ } & {} & {
821
+ commandType?: "object" | "independent" | "help" | undefined;
822
+ object?: string | undefined;
823
+ hoverTooltip?: boolean | undefined;
824
+ operation?: "self" | "router" | "blank" | undefined;
825
+ }) | ({
826
+ type: "builtin";
827
+ value: string;
828
+ } & {} & {
829
+ commandType?: "object" | "independent" | "help" | undefined;
830
+ object?: string | undefined;
831
+ hoverTooltip?: boolean | undefined;
832
+ operation?: "self" | "router" | "blank" | undefined;
833
+ }) | ({
834
+ type: "webhook";
835
+ value: string;
836
+ } & {} & {
837
+ commandType?: "object" | "independent" | "help" | undefined;
838
+ object?: string | undefined;
839
+ hoverTooltip?: boolean | undefined;
840
+ operation?: "self" | "router" | "blank" | undefined;
841
+ }) | ({
842
+ type: "script";
843
+ value: string;
844
+ } & {} & {
845
+ commandType?: "object" | "independent" | "help" | undefined;
846
+ object?: string | undefined;
847
+ hoverTooltip?: boolean | undefined;
848
+ operation?: "self" | "router" | "blank" | undefined;
849
+ });
850
+ } & {
851
+ disabledReason?: string | undefined;
852
+ source?: string | undefined;
853
+ name?: string | undefined;
854
+ last_available?: string | null | undefined;
855
+ modified?: string | undefined;
856
+ } & {
857
+ arguments: {
858
+ [x: string]: ({
859
+ type: "context";
860
+ value: string;
861
+ order_key: number;
862
+ } & {
863
+ label?: string | undefined;
864
+ chosen?: string | number | undefined;
865
+ selected?: any[] | undefined;
866
+ input_type?: string | undefined;
867
+ preselected_key?: string | undefined;
868
+ label_field?: string | undefined;
869
+ availability_condition?: {
870
+ field: string;
871
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
872
+ value: string | undefined;
873
+ }[] | undefined;
874
+ loaded?: any[] | undefined;
875
+ allow_create?: boolean | undefined;
876
+ allow_create_label?: string | undefined;
877
+ }) | ({
878
+ type: "set";
879
+ value: string[] | number[] | {
880
+ [key: string]: unknown;
881
+ }[];
882
+ order_key: number;
883
+ } & {
884
+ label?: string | undefined;
885
+ chosen?: string | number | undefined;
886
+ selected?: any[] | undefined;
887
+ input_type?: string | undefined;
888
+ preselected_key?: string | undefined;
889
+ label_field?: string | undefined;
890
+ availability_condition?: {
891
+ field: string;
892
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
893
+ value: string | undefined;
894
+ }[] | undefined;
895
+ loaded?: any[] | undefined;
896
+ allow_create?: boolean | undefined;
897
+ allow_create_label?: string | undefined;
898
+ }) | ({
899
+ type: "provided";
900
+ value: "time" | "text";
901
+ order_key: number;
902
+ } & {
903
+ label?: string | undefined;
904
+ chosen?: string | number | undefined;
905
+ selected?: any[] | undefined;
906
+ input_type?: string | undefined;
907
+ preselected_key?: string | undefined;
908
+ label_field?: string | undefined;
909
+ availability_condition?: {
910
+ field: string;
911
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
912
+ value: string | undefined;
913
+ }[] | undefined;
914
+ loaded?: any[] | undefined;
915
+ dateTimeArgumentTypeId?: number | undefined;
916
+ allow_create?: boolean | undefined;
917
+ allow_create_label?: string | undefined;
918
+ }) | ({
919
+ type: "dependent";
920
+ value: string;
921
+ order_key: number;
922
+ } & {
923
+ label?: string | undefined;
924
+ chosen?: string | number | undefined;
925
+ selected?: any[] | undefined;
926
+ input_type?: string | undefined;
927
+ preselected_key?: string | undefined;
928
+ label_field?: string | undefined;
929
+ availability_condition?: {
930
+ field: string;
931
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
932
+ value: string | undefined;
933
+ }[] | undefined;
934
+ loaded?: any[] | undefined;
935
+ allow_create?: boolean | undefined;
936
+ allow_create_label?: string | undefined;
937
+ }) | ({
938
+ type: "function";
939
+ value: string;
940
+ order_key: number;
941
+ } & {
942
+ label?: string | undefined;
943
+ chosen?: string | number | undefined;
944
+ selected?: any[] | undefined;
945
+ input_type?: string | undefined;
946
+ preselected_key?: string | undefined;
947
+ label_field?: string | undefined;
948
+ availability_condition?: {
949
+ field: string;
950
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
951
+ value: string | undefined;
952
+ }[] | undefined;
953
+ loaded?: any[] | undefined;
954
+ allow_create?: boolean | undefined;
955
+ allow_create_label?: string | undefined;
956
+ });
957
+ };
958
+ tags: string[];
959
+ availability_rules: ({
960
+ type: "url" | "context" | "element";
961
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
962
+ } & {
963
+ field?: string | undefined;
964
+ value?: string | undefined;
965
+ reason?: string | undefined;
966
+ })[] | (({
967
+ type: "url" | "context" | "element";
968
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
969
+ } & {
970
+ field?: string | undefined;
971
+ value?: string | undefined;
972
+ reason?: string | undefined;
973
+ }) | ({
974
+ type: "named_rule";
975
+ rule_id: number;
976
+ } & {
977
+ reason?: string | undefined;
978
+ }))[];
979
+ recommend_rules: (({
980
+ type: "always";
981
+ } & {
982
+ operator?: null | undefined;
983
+ field?: null | undefined;
984
+ value?: null | undefined;
985
+ reason?: null | undefined;
986
+ }) | ({
987
+ type: "url" | "context" | "element";
988
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
989
+ } & {
990
+ field?: string | undefined;
991
+ value?: string | undefined;
992
+ reason?: string | undefined;
993
+ }))[] | (({
994
+ type: "always";
995
+ } & {
996
+ operator?: null | undefined;
997
+ field?: null | undefined;
998
+ value?: null | undefined;
999
+ reason?: null | undefined;
1000
+ }) | ({
1001
+ type: "url" | "context" | "element";
1002
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1003
+ } & {
1004
+ field?: string | undefined;
1005
+ value?: string | undefined;
1006
+ reason?: string | undefined;
1007
+ }) | ({
1008
+ type: "named_rule";
1009
+ rule_id: number;
1010
+ } & {
1011
+ reason?: string | undefined;
1012
+ }))[];
1013
+ confirm: string;
1014
+ shortcut: string[];
1015
+ explanation: string;
1016
+ is_live: boolean;
1017
+ category: number | null;
1018
+ sort_key: number | null;
1019
+ icon: string | null;
1020
+ celebrate: {
1021
+ [x: string]: any;
1022
+ } | null;
1023
+ recommend_sort_key: number | null;
1024
+ shortcut_mac: string[];
1025
+ shortcut_win: string[];
1026
+ hotkey_mac: string;
1027
+ hotkey_win: string;
1028
+ }>;
1029
+ static update: (object: {
1030
+ id: number;
1031
+ organization: string | number;
1032
+ text: string;
1033
+ template: ({
1034
+ type: "admin";
1035
+ value: string;
1036
+ } & {} & {
1037
+ commandType?: "object" | "independent" | "help" | undefined;
1038
+ object?: string | undefined;
1039
+ hoverTooltip?: boolean | undefined;
1040
+ operation?: "self" | "router" | "blank" | undefined;
1041
+ }) | ({
1042
+ type: "callback";
1043
+ value: string;
1044
+ } & {} & {
1045
+ commandType?: "object" | "independent" | "help" | undefined;
1046
+ object?: string | undefined;
1047
+ hoverTooltip?: boolean | undefined;
1048
+ operation?: "self" | "router" | "blank" | undefined;
1049
+ }) | ({
1050
+ type: "link";
1051
+ value: string;
1052
+ } & {} & {
1053
+ commandType?: "object" | "independent" | "help" | undefined;
1054
+ object?: string | undefined;
1055
+ hoverTooltip?: boolean | undefined;
1056
+ operation?: "self" | "router" | "blank" | undefined;
1057
+ }) | ({
1058
+ type: "click" | "clickBySelector" | "clickByXpath";
1059
+ value: string[];
1060
+ } & {} & {
1061
+ commandType?: "object" | "independent" | "help" | undefined;
1062
+ object?: string | undefined;
1063
+ hoverTooltip?: boolean | undefined;
1064
+ operation?: "self" | "router" | "blank" | undefined;
1065
+ }) | ({
1066
+ type: "builtin";
1067
+ value: string;
1068
+ } & {} & {
1069
+ commandType?: "object" | "independent" | "help" | undefined;
1070
+ object?: string | undefined;
1071
+ hoverTooltip?: boolean | undefined;
1072
+ operation?: "self" | "router" | "blank" | undefined;
1073
+ }) | ({
1074
+ type: "webhook";
1075
+ value: string;
1076
+ } & {} & {
1077
+ commandType?: "object" | "independent" | "help" | undefined;
1078
+ object?: string | undefined;
1079
+ hoverTooltip?: boolean | undefined;
1080
+ operation?: "self" | "router" | "blank" | undefined;
1081
+ }) | ({
1082
+ type: "script";
1083
+ value: string;
1084
+ } & {} & {
1085
+ commandType?: "object" | "independent" | "help" | undefined;
1086
+ object?: string | undefined;
1087
+ hoverTooltip?: boolean | undefined;
1088
+ operation?: "self" | "router" | "blank" | undefined;
1089
+ });
1090
+ } & {
1091
+ disabledReason?: string | undefined;
1092
+ source?: string | undefined;
1093
+ name?: string | undefined;
1094
+ last_available?: string | null | undefined;
1095
+ modified?: string | undefined;
1096
+ } & {
1097
+ arguments: {
1098
+ [x: string]: ({
1099
+ type: "context";
1100
+ value: string;
1101
+ order_key: number;
1102
+ } & {
1103
+ label?: string | undefined;
1104
+ chosen?: string | number | undefined;
1105
+ selected?: any[] | undefined;
1106
+ input_type?: string | undefined;
1107
+ preselected_key?: string | undefined;
1108
+ label_field?: string | undefined;
1109
+ availability_condition?: {
1110
+ field: string;
1111
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1112
+ value: string | undefined;
1113
+ }[] | undefined;
1114
+ loaded?: any[] | undefined;
1115
+ allow_create?: boolean | undefined;
1116
+ allow_create_label?: string | undefined;
1117
+ }) | ({
1118
+ type: "set";
1119
+ value: string[] | number[] | {
1120
+ [key: string]: unknown;
1121
+ }[];
1122
+ order_key: number;
1123
+ } & {
1124
+ label?: string | undefined;
1125
+ chosen?: string | number | undefined;
1126
+ selected?: any[] | undefined;
1127
+ input_type?: string | undefined;
1128
+ preselected_key?: string | undefined;
1129
+ label_field?: string | undefined;
1130
+ availability_condition?: {
1131
+ field: string;
1132
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1133
+ value: string | undefined;
1134
+ }[] | undefined;
1135
+ loaded?: any[] | undefined;
1136
+ allow_create?: boolean | undefined;
1137
+ allow_create_label?: string | undefined;
1138
+ }) | ({
1139
+ type: "provided";
1140
+ value: "time" | "text";
1141
+ order_key: number;
1142
+ } & {
1143
+ label?: string | undefined;
1144
+ chosen?: string | number | undefined;
1145
+ selected?: any[] | undefined;
1146
+ input_type?: string | undefined;
1147
+ preselected_key?: string | undefined;
1148
+ label_field?: string | undefined;
1149
+ availability_condition?: {
1150
+ field: string;
1151
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1152
+ value: string | undefined;
1153
+ }[] | undefined;
1154
+ loaded?: any[] | undefined;
1155
+ dateTimeArgumentTypeId?: number | undefined;
1156
+ allow_create?: boolean | undefined;
1157
+ allow_create_label?: string | undefined;
1158
+ }) | ({
1159
+ type: "dependent";
1160
+ value: string;
1161
+ order_key: number;
1162
+ } & {
1163
+ label?: string | undefined;
1164
+ chosen?: string | number | undefined;
1165
+ selected?: any[] | undefined;
1166
+ input_type?: string | undefined;
1167
+ preselected_key?: string | undefined;
1168
+ label_field?: string | undefined;
1169
+ availability_condition?: {
1170
+ field: string;
1171
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1172
+ value: string | undefined;
1173
+ }[] | undefined;
1174
+ loaded?: any[] | undefined;
1175
+ allow_create?: boolean | undefined;
1176
+ allow_create_label?: string | undefined;
1177
+ }) | ({
1178
+ type: "function";
1179
+ value: string;
1180
+ order_key: number;
1181
+ } & {
1182
+ label?: string | undefined;
1183
+ chosen?: string | number | undefined;
1184
+ selected?: any[] | undefined;
1185
+ input_type?: string | undefined;
1186
+ preselected_key?: string | undefined;
1187
+ label_field?: string | undefined;
1188
+ availability_condition?: {
1189
+ field: string;
1190
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1191
+ value: string | undefined;
1192
+ }[] | undefined;
1193
+ loaded?: any[] | undefined;
1194
+ allow_create?: boolean | undefined;
1195
+ allow_create_label?: string | undefined;
1196
+ });
1197
+ };
1198
+ tags: string[];
1199
+ availability_rules: ({
1200
+ type: "url" | "context" | "element";
1201
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1202
+ } & {
1203
+ field?: string | undefined;
1204
+ value?: string | undefined;
1205
+ reason?: string | undefined;
1206
+ })[] | (({
1207
+ type: "url" | "context" | "element";
1208
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1209
+ } & {
1210
+ field?: string | undefined;
1211
+ value?: string | undefined;
1212
+ reason?: string | undefined;
1213
+ }) | ({
1214
+ type: "named_rule";
1215
+ rule_id: number;
1216
+ } & {
1217
+ reason?: string | undefined;
1218
+ }))[];
1219
+ recommend_rules: (({
1220
+ type: "always";
1221
+ } & {
1222
+ operator?: null | undefined;
1223
+ field?: null | undefined;
1224
+ value?: null | undefined;
1225
+ reason?: null | undefined;
1226
+ }) | ({
1227
+ type: "url" | "context" | "element";
1228
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1229
+ } & {
1230
+ field?: string | undefined;
1231
+ value?: string | undefined;
1232
+ reason?: string | undefined;
1233
+ }))[] | (({
1234
+ type: "always";
1235
+ } & {
1236
+ operator?: null | undefined;
1237
+ field?: null | undefined;
1238
+ value?: null | undefined;
1239
+ reason?: null | undefined;
1240
+ }) | ({
1241
+ type: "url" | "context" | "element";
1242
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1243
+ } & {
1244
+ field?: string | undefined;
1245
+ value?: string | undefined;
1246
+ reason?: string | undefined;
1247
+ }) | ({
1248
+ type: "named_rule";
1249
+ rule_id: number;
1250
+ } & {
1251
+ reason?: string | undefined;
1252
+ }))[];
1253
+ confirm: string;
1254
+ shortcut: string[];
1255
+ explanation: string;
1256
+ is_live: boolean;
1257
+ category: number | null;
1258
+ sort_key: number | null;
1259
+ icon: string | null;
1260
+ celebrate: {
1261
+ [x: string]: any;
1262
+ } | null;
1263
+ recommend_sort_key: number | null;
1264
+ shortcut_mac: string[];
1265
+ shortcut_win: string[];
1266
+ hotkey_mac: string;
1267
+ hotkey_win: string;
1268
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
1269
+ id: number;
1270
+ organization: string | number;
1271
+ text: string;
1272
+ template: ({
1273
+ type: "admin";
1274
+ value: string;
1275
+ } & {} & {
1276
+ commandType?: "object" | "independent" | "help" | undefined;
1277
+ object?: string | undefined;
1278
+ hoverTooltip?: boolean | undefined;
1279
+ operation?: "self" | "router" | "blank" | undefined;
1280
+ }) | ({
1281
+ type: "callback";
1282
+ value: string;
1283
+ } & {} & {
1284
+ commandType?: "object" | "independent" | "help" | undefined;
1285
+ object?: string | undefined;
1286
+ hoverTooltip?: boolean | undefined;
1287
+ operation?: "self" | "router" | "blank" | undefined;
1288
+ }) | ({
1289
+ type: "link";
1290
+ value: string;
1291
+ } & {} & {
1292
+ commandType?: "object" | "independent" | "help" | undefined;
1293
+ object?: string | undefined;
1294
+ hoverTooltip?: boolean | undefined;
1295
+ operation?: "self" | "router" | "blank" | undefined;
1296
+ }) | ({
1297
+ type: "click" | "clickBySelector" | "clickByXpath";
1298
+ value: string[];
1299
+ } & {} & {
1300
+ commandType?: "object" | "independent" | "help" | undefined;
1301
+ object?: string | undefined;
1302
+ hoverTooltip?: boolean | undefined;
1303
+ operation?: "self" | "router" | "blank" | undefined;
1304
+ }) | ({
1305
+ type: "builtin";
1306
+ value: string;
1307
+ } & {} & {
1308
+ commandType?: "object" | "independent" | "help" | undefined;
1309
+ object?: string | undefined;
1310
+ hoverTooltip?: boolean | undefined;
1311
+ operation?: "self" | "router" | "blank" | undefined;
1312
+ }) | ({
1313
+ type: "webhook";
1314
+ value: string;
1315
+ } & {} & {
1316
+ commandType?: "object" | "independent" | "help" | undefined;
1317
+ object?: string | undefined;
1318
+ hoverTooltip?: boolean | undefined;
1319
+ operation?: "self" | "router" | "blank" | undefined;
1320
+ }) | ({
1321
+ type: "script";
1322
+ value: string;
1323
+ } & {} & {
1324
+ commandType?: "object" | "independent" | "help" | undefined;
1325
+ object?: string | undefined;
1326
+ hoverTooltip?: boolean | undefined;
1327
+ operation?: "self" | "router" | "blank" | undefined;
1328
+ });
1329
+ } & {
1330
+ disabledReason?: string | undefined;
1331
+ source?: string | undefined;
1332
+ name?: string | undefined;
1333
+ last_available?: string | null | undefined;
1334
+ modified?: string | undefined;
1335
+ } & {
1336
+ arguments: {
1337
+ [x: string]: ({
1338
+ type: "context";
1339
+ value: string;
1340
+ order_key: number;
1341
+ } & {
1342
+ label?: string | undefined;
1343
+ chosen?: string | number | undefined;
1344
+ selected?: any[] | undefined;
1345
+ input_type?: string | undefined;
1346
+ preselected_key?: string | undefined;
1347
+ label_field?: string | undefined;
1348
+ availability_condition?: {
1349
+ field: string;
1350
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1351
+ value: string | undefined;
1352
+ }[] | undefined;
1353
+ loaded?: any[] | undefined;
1354
+ allow_create?: boolean | undefined;
1355
+ allow_create_label?: string | undefined;
1356
+ }) | ({
1357
+ type: "set";
1358
+ value: string[] | number[] | {
1359
+ [key: string]: unknown;
1360
+ }[];
1361
+ order_key: number;
1362
+ } & {
1363
+ label?: string | undefined;
1364
+ chosen?: string | number | undefined;
1365
+ selected?: any[] | undefined;
1366
+ input_type?: string | undefined;
1367
+ preselected_key?: string | undefined;
1368
+ label_field?: string | undefined;
1369
+ availability_condition?: {
1370
+ field: string;
1371
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1372
+ value: string | undefined;
1373
+ }[] | undefined;
1374
+ loaded?: any[] | undefined;
1375
+ allow_create?: boolean | undefined;
1376
+ allow_create_label?: string | undefined;
1377
+ }) | ({
1378
+ type: "provided";
1379
+ value: "time" | "text";
1380
+ order_key: number;
1381
+ } & {
1382
+ label?: string | undefined;
1383
+ chosen?: string | number | undefined;
1384
+ selected?: any[] | undefined;
1385
+ input_type?: string | undefined;
1386
+ preselected_key?: string | undefined;
1387
+ label_field?: string | undefined;
1388
+ availability_condition?: {
1389
+ field: string;
1390
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1391
+ value: string | undefined;
1392
+ }[] | undefined;
1393
+ loaded?: any[] | undefined;
1394
+ dateTimeArgumentTypeId?: number | undefined;
1395
+ allow_create?: boolean | undefined;
1396
+ allow_create_label?: string | undefined;
1397
+ }) | ({
1398
+ type: "dependent";
1399
+ value: string;
1400
+ order_key: number;
1401
+ } & {
1402
+ label?: string | undefined;
1403
+ chosen?: string | number | undefined;
1404
+ selected?: any[] | undefined;
1405
+ input_type?: string | undefined;
1406
+ preselected_key?: string | undefined;
1407
+ label_field?: string | undefined;
1408
+ availability_condition?: {
1409
+ field: string;
1410
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1411
+ value: string | undefined;
1412
+ }[] | undefined;
1413
+ loaded?: any[] | undefined;
1414
+ allow_create?: boolean | undefined;
1415
+ allow_create_label?: string | undefined;
1416
+ }) | ({
1417
+ type: "function";
1418
+ value: string;
1419
+ order_key: number;
1420
+ } & {
1421
+ label?: string | undefined;
1422
+ chosen?: string | number | undefined;
1423
+ selected?: any[] | undefined;
1424
+ input_type?: string | undefined;
1425
+ preselected_key?: string | undefined;
1426
+ label_field?: string | undefined;
1427
+ availability_condition?: {
1428
+ field: string;
1429
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1430
+ value: string | undefined;
1431
+ }[] | undefined;
1432
+ loaded?: any[] | undefined;
1433
+ allow_create?: boolean | undefined;
1434
+ allow_create_label?: string | undefined;
1435
+ });
1436
+ };
1437
+ tags: string[];
1438
+ availability_rules: ({
1439
+ type: "url" | "context" | "element";
1440
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1441
+ } & {
1442
+ field?: string | undefined;
1443
+ value?: string | undefined;
1444
+ reason?: string | undefined;
1445
+ })[] | (({
1446
+ type: "url" | "context" | "element";
1447
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1448
+ } & {
1449
+ field?: string | undefined;
1450
+ value?: string | undefined;
1451
+ reason?: string | undefined;
1452
+ }) | ({
1453
+ type: "named_rule";
1454
+ rule_id: number;
1455
+ } & {
1456
+ reason?: string | undefined;
1457
+ }))[];
1458
+ recommend_rules: (({
1459
+ type: "always";
1460
+ } & {
1461
+ operator?: null | undefined;
1462
+ field?: null | undefined;
1463
+ value?: null | undefined;
1464
+ reason?: null | undefined;
1465
+ }) | ({
1466
+ type: "url" | "context" | "element";
1467
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1468
+ } & {
1469
+ field?: string | undefined;
1470
+ value?: string | undefined;
1471
+ reason?: string | undefined;
1472
+ }))[] | (({
1473
+ type: "always";
1474
+ } & {
1475
+ operator?: null | undefined;
1476
+ field?: null | undefined;
1477
+ value?: null | undefined;
1478
+ reason?: null | undefined;
1479
+ }) | ({
1480
+ type: "url" | "context" | "element";
1481
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1482
+ } & {
1483
+ field?: string | undefined;
1484
+ value?: string | undefined;
1485
+ reason?: string | undefined;
1486
+ }) | ({
1487
+ type: "named_rule";
1488
+ rule_id: number;
1489
+ } & {
1490
+ reason?: string | undefined;
1491
+ }))[];
1492
+ confirm: string;
1493
+ shortcut: string[];
1494
+ explanation: string;
1495
+ is_live: boolean;
1496
+ category: number | null;
1497
+ sort_key: number | null;
1498
+ icon: string | null;
1499
+ celebrate: {
1500
+ [x: string]: any;
1501
+ } | null;
1502
+ recommend_sort_key: number | null;
1503
+ shortcut_mac: string[];
1504
+ shortcut_win: string[];
1505
+ hotkey_mac: string;
1506
+ hotkey_win: string;
1507
+ }>;
1508
+ static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
1509
+ static validateFromClient: (data: any) => Promise<{
1510
+ name: string;
1511
+ template: ({
1512
+ type: "callback";
1513
+ value: string;
1514
+ } & {} & {
1515
+ commandType?: "object" | "independent" | "help" | undefined;
1516
+ object?: string | undefined;
1517
+ hoverTooltip?: boolean | undefined;
1518
+ operation?: "self" | "router" | "blank" | undefined;
1519
+ }) | ({
1520
+ type: "link";
1521
+ value: string;
1522
+ } & {} & {
1523
+ commandType?: "object" | "independent" | "help" | undefined;
1524
+ object?: string | undefined;
1525
+ hoverTooltip?: boolean | undefined;
1526
+ operation?: "self" | "router" | "blank" | undefined;
1527
+ }) | ({
1528
+ type: "click" | "clickBySelector" | "clickByXpath";
1529
+ value: string[];
1530
+ } & {} & {
1531
+ commandType?: "object" | "independent" | "help" | undefined;
1532
+ object?: string | undefined;
1533
+ hoverTooltip?: boolean | undefined;
1534
+ operation?: "self" | "router" | "blank" | undefined;
1535
+ }) | ({
1536
+ type: "webhook";
1537
+ value: string;
1538
+ } & {} & {
1539
+ commandType?: "object" | "independent" | "help" | undefined;
1540
+ object?: string | undefined;
1541
+ hoverTooltip?: boolean | undefined;
1542
+ operation?: "self" | "router" | "blank" | undefined;
1543
+ });
1544
+ text: string;
1545
+ } & {
1546
+ shortcut_mac?: string[] | undefined;
1547
+ shortcut_win?: string[] | undefined;
1548
+ hotkey_mac?: string | undefined;
1549
+ hotkey_win?: string | undefined;
1550
+ tags?: string[] | undefined;
1551
+ explanation?: string | undefined;
1552
+ sort_key?: number | null | undefined;
1553
+ arguments?: {
1554
+ [x: string]: ({
1555
+ type: "context";
1556
+ value: string;
1557
+ order_key: number;
1558
+ } & {
1559
+ label?: string | undefined;
1560
+ chosen?: string | number | undefined;
1561
+ selected?: any[] | undefined;
1562
+ input_type?: string | undefined;
1563
+ preselected_key?: string | undefined;
1564
+ label_field?: string | undefined;
1565
+ availability_condition?: {
1566
+ field: string;
1567
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1568
+ value: string | undefined;
1569
+ }[] | undefined;
1570
+ loaded?: any[] | undefined;
1571
+ allow_create?: boolean | undefined;
1572
+ allow_create_label?: string | undefined;
1573
+ }) | ({
1574
+ type: "set";
1575
+ value: string[] | number[] | {
1576
+ [key: string]: unknown;
1577
+ }[];
1578
+ order_key: number;
1579
+ } & {
1580
+ label?: string | undefined;
1581
+ chosen?: string | number | undefined;
1582
+ selected?: any[] | undefined;
1583
+ input_type?: string | undefined;
1584
+ preselected_key?: string | undefined;
1585
+ label_field?: string | undefined;
1586
+ availability_condition?: {
1587
+ field: string;
1588
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1589
+ value: string | undefined;
1590
+ }[] | undefined;
1591
+ loaded?: any[] | undefined;
1592
+ allow_create?: boolean | undefined;
1593
+ allow_create_label?: string | undefined;
1594
+ }) | ({
1595
+ type: "provided";
1596
+ value: "time" | "text";
1597
+ order_key: number;
1598
+ } & {
1599
+ label?: string | undefined;
1600
+ chosen?: string | number | undefined;
1601
+ selected?: any[] | undefined;
1602
+ input_type?: string | undefined;
1603
+ preselected_key?: string | undefined;
1604
+ label_field?: string | undefined;
1605
+ availability_condition?: {
1606
+ field: string;
1607
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1608
+ value: string | undefined;
1609
+ }[] | undefined;
1610
+ loaded?: any[] | undefined;
1611
+ dateTimeArgumentTypeId?: number | undefined;
1612
+ allow_create?: boolean | undefined;
1613
+ allow_create_label?: string | undefined;
1614
+ }) | ({
1615
+ type: "dependent";
1616
+ value: string;
1617
+ order_key: number;
1618
+ } & {
1619
+ label?: string | undefined;
1620
+ chosen?: string | number | undefined;
1621
+ selected?: any[] | undefined;
1622
+ input_type?: string | undefined;
1623
+ preselected_key?: string | undefined;
1624
+ label_field?: string | undefined;
1625
+ availability_condition?: {
1626
+ field: string;
1627
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1628
+ value: string | undefined;
1629
+ }[] | undefined;
1630
+ loaded?: any[] | undefined;
1631
+ allow_create?: boolean | undefined;
1632
+ allow_create_label?: string | undefined;
1633
+ }) | ({
1634
+ type: "function";
1635
+ value: string;
1636
+ order_key: number;
1637
+ } & {
1638
+ label?: string | undefined;
1639
+ chosen?: string | number | undefined;
1640
+ selected?: any[] | undefined;
1641
+ input_type?: string | undefined;
1642
+ preselected_key?: string | undefined;
1643
+ label_field?: string | undefined;
1644
+ availability_condition?: {
1645
+ field: string;
1646
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1647
+ value: string | undefined;
1648
+ }[] | undefined;
1649
+ loaded?: any[] | undefined;
1650
+ allow_create?: boolean | undefined;
1651
+ allow_create_label?: string | undefined;
1652
+ });
1653
+ } | undefined;
1654
+ category?: string | number | null | undefined;
1655
+ icon?: string | null | undefined;
1656
+ celebrate?: {
1657
+ [x: string]: any;
1658
+ } | null | undefined;
1659
+ availability_rules?: ({
1660
+ type: "url" | "context" | "element";
1661
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1662
+ } & {
1663
+ field?: string | undefined;
1664
+ value?: string | undefined;
1665
+ reason?: string | undefined;
1666
+ })[] | undefined;
1667
+ recommend_rules?: (({
1668
+ type: "always";
1669
+ } & {
1670
+ operator?: null | undefined;
1671
+ field?: null | undefined;
1672
+ value?: null | undefined;
1673
+ reason?: null | undefined;
1674
+ }) | ({
1675
+ type: "url" | "context" | "element";
1676
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1677
+ } & {
1678
+ field?: string | undefined;
1679
+ value?: string | undefined;
1680
+ reason?: string | undefined;
1681
+ }))[] | undefined;
1682
+ }>;
1683
+ static decode: (data: any) => {
1684
+ id: number;
1685
+ organization: string | number;
1686
+ text: string;
1687
+ template: ({
1688
+ type: "admin";
1689
+ value: string;
1690
+ } & {} & {
1691
+ commandType?: "object" | "independent" | "help" | undefined;
1692
+ object?: string | undefined;
1693
+ hoverTooltip?: boolean | undefined;
1694
+ operation?: "self" | "router" | "blank" | undefined;
1695
+ }) | ({
1696
+ type: "callback";
1697
+ value: string;
1698
+ } & {} & {
1699
+ commandType?: "object" | "independent" | "help" | undefined;
1700
+ object?: string | undefined;
1701
+ hoverTooltip?: boolean | undefined;
1702
+ operation?: "self" | "router" | "blank" | undefined;
1703
+ }) | ({
1704
+ type: "link";
1705
+ value: string;
1706
+ } & {} & {
1707
+ commandType?: "object" | "independent" | "help" | undefined;
1708
+ object?: string | undefined;
1709
+ hoverTooltip?: boolean | undefined;
1710
+ operation?: "self" | "router" | "blank" | undefined;
1711
+ }) | ({
1712
+ type: "click" | "clickBySelector" | "clickByXpath";
1713
+ value: string[];
1714
+ } & {} & {
1715
+ commandType?: "object" | "independent" | "help" | undefined;
1716
+ object?: string | undefined;
1717
+ hoverTooltip?: boolean | undefined;
1718
+ operation?: "self" | "router" | "blank" | undefined;
1719
+ }) | ({
1720
+ type: "builtin";
1721
+ value: string;
1722
+ } & {} & {
1723
+ commandType?: "object" | "independent" | "help" | undefined;
1724
+ object?: string | undefined;
1725
+ hoverTooltip?: boolean | undefined;
1726
+ operation?: "self" | "router" | "blank" | undefined;
1727
+ }) | ({
1728
+ type: "webhook";
1729
+ value: string;
1730
+ } & {} & {
1731
+ commandType?: "object" | "independent" | "help" | undefined;
1732
+ object?: string | undefined;
1733
+ hoverTooltip?: boolean | undefined;
1734
+ operation?: "self" | "router" | "blank" | undefined;
1735
+ }) | ({
1736
+ type: "script";
1737
+ value: string;
1738
+ } & {} & {
1739
+ commandType?: "object" | "independent" | "help" | undefined;
1740
+ object?: string | undefined;
1741
+ hoverTooltip?: boolean | undefined;
1742
+ operation?: "self" | "router" | "blank" | undefined;
1743
+ });
1744
+ } & {
1745
+ disabledReason?: string | undefined;
1746
+ source?: string | undefined;
1747
+ name?: string | undefined;
1748
+ last_available?: string | null | undefined;
1749
+ modified?: string | undefined;
1750
+ } & {
1751
+ arguments: {
1752
+ [x: string]: ({
1753
+ type: "context";
1754
+ value: string;
1755
+ order_key: number;
1756
+ } & {
1757
+ label?: string | undefined;
1758
+ chosen?: string | number | undefined;
1759
+ selected?: any[] | undefined;
1760
+ input_type?: string | undefined;
1761
+ preselected_key?: string | undefined;
1762
+ label_field?: string | undefined;
1763
+ availability_condition?: {
1764
+ field: string;
1765
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1766
+ value: string | undefined;
1767
+ }[] | undefined;
1768
+ loaded?: any[] | undefined;
1769
+ allow_create?: boolean | undefined;
1770
+ allow_create_label?: string | undefined;
1771
+ }) | ({
1772
+ type: "set";
1773
+ value: string[] | number[] | {
1774
+ [key: string]: unknown;
1775
+ }[];
1776
+ order_key: number;
1777
+ } & {
1778
+ label?: string | undefined;
1779
+ chosen?: string | number | undefined;
1780
+ selected?: any[] | undefined;
1781
+ input_type?: string | undefined;
1782
+ preselected_key?: string | undefined;
1783
+ label_field?: string | undefined;
1784
+ availability_condition?: {
1785
+ field: string;
1786
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1787
+ value: string | undefined;
1788
+ }[] | undefined;
1789
+ loaded?: any[] | undefined;
1790
+ allow_create?: boolean | undefined;
1791
+ allow_create_label?: string | undefined;
1792
+ }) | ({
1793
+ type: "provided";
1794
+ value: "time" | "text";
1795
+ order_key: number;
1796
+ } & {
1797
+ label?: string | undefined;
1798
+ chosen?: string | number | undefined;
1799
+ selected?: any[] | undefined;
1800
+ input_type?: string | undefined;
1801
+ preselected_key?: string | undefined;
1802
+ label_field?: string | undefined;
1803
+ availability_condition?: {
1804
+ field: string;
1805
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1806
+ value: string | undefined;
1807
+ }[] | undefined;
1808
+ loaded?: any[] | undefined;
1809
+ dateTimeArgumentTypeId?: number | undefined;
1810
+ allow_create?: boolean | undefined;
1811
+ allow_create_label?: string | undefined;
1812
+ }) | ({
1813
+ type: "dependent";
1814
+ value: string;
1815
+ order_key: number;
1816
+ } & {
1817
+ label?: string | undefined;
1818
+ chosen?: string | number | undefined;
1819
+ selected?: any[] | undefined;
1820
+ input_type?: string | undefined;
1821
+ preselected_key?: string | undefined;
1822
+ label_field?: string | undefined;
1823
+ availability_condition?: {
1824
+ field: string;
1825
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1826
+ value: string | undefined;
1827
+ }[] | undefined;
1828
+ loaded?: any[] | undefined;
1829
+ allow_create?: boolean | undefined;
1830
+ allow_create_label?: string | undefined;
1831
+ }) | ({
1832
+ type: "function";
1833
+ value: string;
1834
+ order_key: number;
1835
+ } & {
1836
+ label?: string | undefined;
1837
+ chosen?: string | number | undefined;
1838
+ selected?: any[] | undefined;
1839
+ input_type?: string | undefined;
1840
+ preselected_key?: string | undefined;
1841
+ label_field?: string | undefined;
1842
+ availability_condition?: {
1843
+ field: string;
1844
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1845
+ value: string | undefined;
1846
+ }[] | undefined;
1847
+ loaded?: any[] | undefined;
1848
+ allow_create?: boolean | undefined;
1849
+ allow_create_label?: string | undefined;
1850
+ });
1851
+ };
1852
+ tags: string[];
1853
+ availability_rules: ({
1854
+ type: "url" | "context" | "element";
1855
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1856
+ } & {
1857
+ field?: string | undefined;
1858
+ value?: string | undefined;
1859
+ reason?: string | undefined;
1860
+ })[];
1861
+ recommend_rules: (({
1862
+ type: "always";
1863
+ } & {
1864
+ operator?: null | undefined;
1865
+ field?: null | undefined;
1866
+ value?: null | undefined;
1867
+ reason?: null | undefined;
1868
+ }) | ({
1869
+ type: "url" | "context" | "element";
1870
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1871
+ } & {
1872
+ field?: string | undefined;
1873
+ value?: string | undefined;
1874
+ reason?: string | undefined;
1875
+ }))[];
1876
+ confirm: string;
1877
+ shortcut: string[];
1878
+ explanation: string;
1879
+ is_live: boolean;
1880
+ category: number | null;
1881
+ sort_key: number | null;
1882
+ icon: string | null;
1883
+ celebrate: {
1884
+ [x: string]: any;
1885
+ } | null;
1886
+ recommend_sort_key: number | null;
1887
+ shortcut_mac: string[];
1888
+ shortcut_win: string[];
1889
+ hotkey_mac: string;
1890
+ hotkey_win: string;
1891
+ };
1892
+ static createWithoutThrottle: (object: {
1893
+ id: number;
1894
+ organization: string | number;
1895
+ text: string;
1896
+ template: ({
1897
+ type: "admin";
1898
+ value: string;
1899
+ } & {} & {
1900
+ commandType?: "object" | "independent" | "help" | undefined;
1901
+ object?: string | undefined;
1902
+ hoverTooltip?: boolean | undefined;
1903
+ operation?: "self" | "router" | "blank" | undefined;
1904
+ }) | ({
1905
+ type: "callback";
1906
+ value: string;
1907
+ } & {} & {
1908
+ commandType?: "object" | "independent" | "help" | undefined;
1909
+ object?: string | undefined;
1910
+ hoverTooltip?: boolean | undefined;
1911
+ operation?: "self" | "router" | "blank" | undefined;
1912
+ }) | ({
1913
+ type: "link";
1914
+ value: string;
1915
+ } & {} & {
1916
+ commandType?: "object" | "independent" | "help" | undefined;
1917
+ object?: string | undefined;
1918
+ hoverTooltip?: boolean | undefined;
1919
+ operation?: "self" | "router" | "blank" | undefined;
1920
+ }) | ({
1921
+ type: "click" | "clickBySelector" | "clickByXpath";
1922
+ value: string[];
1923
+ } & {} & {
1924
+ commandType?: "object" | "independent" | "help" | undefined;
1925
+ object?: string | undefined;
1926
+ hoverTooltip?: boolean | undefined;
1927
+ operation?: "self" | "router" | "blank" | undefined;
1928
+ }) | ({
1929
+ type: "builtin";
1930
+ value: string;
1931
+ } & {} & {
1932
+ commandType?: "object" | "independent" | "help" | undefined;
1933
+ object?: string | undefined;
1934
+ hoverTooltip?: boolean | undefined;
1935
+ operation?: "self" | "router" | "blank" | undefined;
1936
+ }) | ({
1937
+ type: "webhook";
1938
+ value: string;
1939
+ } & {} & {
1940
+ commandType?: "object" | "independent" | "help" | undefined;
1941
+ object?: string | undefined;
1942
+ hoverTooltip?: boolean | undefined;
1943
+ operation?: "self" | "router" | "blank" | undefined;
1944
+ }) | ({
1945
+ type: "script";
1946
+ value: string;
1947
+ } & {} & {
1948
+ commandType?: "object" | "independent" | "help" | undefined;
1949
+ object?: string | undefined;
1950
+ hoverTooltip?: boolean | undefined;
1951
+ operation?: "self" | "router" | "blank" | undefined;
1952
+ });
1953
+ } & {
1954
+ disabledReason?: string | undefined;
1955
+ source?: string | undefined;
1956
+ name?: string | undefined;
1957
+ last_available?: string | null | undefined;
1958
+ modified?: string | undefined;
1959
+ } & {
1960
+ arguments: {
1961
+ [x: string]: ({
1962
+ type: "context";
1963
+ value: string;
1964
+ order_key: number;
1965
+ } & {
1966
+ label?: string | undefined;
1967
+ chosen?: string | number | undefined;
1968
+ selected?: any[] | undefined;
1969
+ input_type?: string | undefined;
1970
+ preselected_key?: string | undefined;
1971
+ label_field?: string | undefined;
1972
+ availability_condition?: {
1973
+ field: string;
1974
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1975
+ value: string | undefined;
1976
+ }[] | undefined;
1977
+ loaded?: any[] | undefined;
1978
+ allow_create?: boolean | undefined;
1979
+ allow_create_label?: string | undefined;
1980
+ }) | ({
1981
+ type: "set";
1982
+ value: string[] | number[] | {
1983
+ [key: string]: unknown;
1984
+ }[];
1985
+ order_key: number;
1986
+ } & {
1987
+ label?: string | undefined;
1988
+ chosen?: string | number | undefined;
1989
+ selected?: any[] | undefined;
1990
+ input_type?: string | undefined;
1991
+ preselected_key?: string | undefined;
1992
+ label_field?: string | undefined;
1993
+ availability_condition?: {
1994
+ field: string;
1995
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1996
+ value: string | undefined;
1997
+ }[] | undefined;
1998
+ loaded?: any[] | undefined;
1999
+ allow_create?: boolean | undefined;
2000
+ allow_create_label?: string | undefined;
2001
+ }) | ({
2002
+ type: "provided";
2003
+ value: "time" | "text";
2004
+ order_key: number;
2005
+ } & {
2006
+ label?: string | undefined;
2007
+ chosen?: string | number | undefined;
2008
+ selected?: any[] | undefined;
2009
+ input_type?: string | undefined;
2010
+ preselected_key?: string | undefined;
2011
+ label_field?: string | undefined;
2012
+ availability_condition?: {
2013
+ field: string;
2014
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2015
+ value: string | undefined;
2016
+ }[] | undefined;
2017
+ loaded?: any[] | undefined;
2018
+ dateTimeArgumentTypeId?: number | undefined;
2019
+ allow_create?: boolean | undefined;
2020
+ allow_create_label?: string | undefined;
2021
+ }) | ({
2022
+ type: "dependent";
2023
+ value: string;
2024
+ order_key: number;
2025
+ } & {
2026
+ label?: string | undefined;
2027
+ chosen?: string | number | undefined;
2028
+ selected?: any[] | undefined;
2029
+ input_type?: string | undefined;
2030
+ preselected_key?: string | undefined;
2031
+ label_field?: string | undefined;
2032
+ availability_condition?: {
2033
+ field: string;
2034
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2035
+ value: string | undefined;
2036
+ }[] | undefined;
2037
+ loaded?: any[] | undefined;
2038
+ allow_create?: boolean | undefined;
2039
+ allow_create_label?: string | undefined;
2040
+ }) | ({
2041
+ type: "function";
2042
+ value: string;
2043
+ order_key: number;
2044
+ } & {
2045
+ label?: string | undefined;
2046
+ chosen?: string | number | undefined;
2047
+ selected?: any[] | undefined;
2048
+ input_type?: string | undefined;
2049
+ preselected_key?: string | undefined;
2050
+ label_field?: string | undefined;
2051
+ availability_condition?: {
2052
+ field: string;
2053
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2054
+ value: string | undefined;
2055
+ }[] | undefined;
2056
+ loaded?: any[] | undefined;
2057
+ allow_create?: boolean | undefined;
2058
+ allow_create_label?: string | undefined;
2059
+ });
2060
+ };
2061
+ tags: string[];
2062
+ availability_rules: ({
2063
+ type: "url" | "context" | "element";
2064
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2065
+ } & {
2066
+ field?: string | undefined;
2067
+ value?: string | undefined;
2068
+ reason?: string | undefined;
2069
+ })[] | (({
2070
+ type: "url" | "context" | "element";
2071
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2072
+ } & {
2073
+ field?: string | undefined;
2074
+ value?: string | undefined;
2075
+ reason?: string | undefined;
2076
+ }) | ({
2077
+ type: "named_rule";
2078
+ rule_id: number;
2079
+ } & {
2080
+ reason?: string | undefined;
2081
+ }))[];
2082
+ recommend_rules: (({
2083
+ type: "always";
2084
+ } & {
2085
+ operator?: null | undefined;
2086
+ field?: null | undefined;
2087
+ value?: null | undefined;
2088
+ reason?: null | undefined;
2089
+ }) | ({
2090
+ type: "url" | "context" | "element";
2091
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2092
+ } & {
2093
+ field?: string | undefined;
2094
+ value?: string | undefined;
2095
+ reason?: string | undefined;
2096
+ }))[] | (({
2097
+ type: "always";
2098
+ } & {
2099
+ operator?: null | undefined;
2100
+ field?: null | undefined;
2101
+ value?: null | undefined;
2102
+ reason?: null | undefined;
2103
+ }) | ({
2104
+ type: "url" | "context" | "element";
2105
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2106
+ } & {
2107
+ field?: string | undefined;
2108
+ value?: string | undefined;
2109
+ reason?: string | undefined;
2110
+ }) | ({
2111
+ type: "named_rule";
2112
+ rule_id: number;
2113
+ } & {
2114
+ reason?: string | undefined;
2115
+ }))[];
2116
+ confirm: string;
2117
+ shortcut: string[];
2118
+ explanation: string;
2119
+ is_live: boolean;
2120
+ category: number | null;
2121
+ sort_key: number | null;
2122
+ icon: string | null;
2123
+ celebrate: {
2124
+ [x: string]: any;
2125
+ } | null;
2126
+ recommend_sort_key: number | null;
2127
+ shortcut_mac: string[];
2128
+ shortcut_win: string[];
2129
+ hotkey_mac: string;
2130
+ hotkey_win: string;
2131
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
2132
+ id: number;
2133
+ organization: string | number;
2134
+ text: string;
2135
+ template: ({
2136
+ type: "admin";
2137
+ value: string;
2138
+ } & {} & {
2139
+ commandType?: "object" | "independent" | "help" | undefined;
2140
+ object?: string | undefined;
2141
+ hoverTooltip?: boolean | undefined;
2142
+ operation?: "self" | "router" | "blank" | undefined;
2143
+ }) | ({
2144
+ type: "callback";
2145
+ value: string;
2146
+ } & {} & {
2147
+ commandType?: "object" | "independent" | "help" | undefined;
2148
+ object?: string | undefined;
2149
+ hoverTooltip?: boolean | undefined;
2150
+ operation?: "self" | "router" | "blank" | undefined;
2151
+ }) | ({
2152
+ type: "link";
2153
+ value: string;
2154
+ } & {} & {
2155
+ commandType?: "object" | "independent" | "help" | undefined;
2156
+ object?: string | undefined;
2157
+ hoverTooltip?: boolean | undefined;
2158
+ operation?: "self" | "router" | "blank" | undefined;
2159
+ }) | ({
2160
+ type: "click" | "clickBySelector" | "clickByXpath";
2161
+ value: string[];
2162
+ } & {} & {
2163
+ commandType?: "object" | "independent" | "help" | undefined;
2164
+ object?: string | undefined;
2165
+ hoverTooltip?: boolean | undefined;
2166
+ operation?: "self" | "router" | "blank" | undefined;
2167
+ }) | ({
2168
+ type: "builtin";
2169
+ value: string;
2170
+ } & {} & {
2171
+ commandType?: "object" | "independent" | "help" | undefined;
2172
+ object?: string | undefined;
2173
+ hoverTooltip?: boolean | undefined;
2174
+ operation?: "self" | "router" | "blank" | undefined;
2175
+ }) | ({
2176
+ type: "webhook";
2177
+ value: string;
2178
+ } & {} & {
2179
+ commandType?: "object" | "independent" | "help" | undefined;
2180
+ object?: string | undefined;
2181
+ hoverTooltip?: boolean | undefined;
2182
+ operation?: "self" | "router" | "blank" | undefined;
2183
+ }) | ({
2184
+ type: "script";
2185
+ value: string;
2186
+ } & {} & {
2187
+ commandType?: "object" | "independent" | "help" | undefined;
2188
+ object?: string | undefined;
2189
+ hoverTooltip?: boolean | undefined;
2190
+ operation?: "self" | "router" | "blank" | undefined;
2191
+ });
2192
+ } & {
2193
+ disabledReason?: string | undefined;
2194
+ source?: string | undefined;
2195
+ name?: string | undefined;
2196
+ last_available?: string | null | undefined;
2197
+ modified?: string | undefined;
2198
+ } & {
2199
+ arguments: {
2200
+ [x: string]: ({
2201
+ type: "context";
2202
+ value: string;
2203
+ order_key: number;
2204
+ } & {
2205
+ label?: string | undefined;
2206
+ chosen?: string | number | undefined;
2207
+ selected?: any[] | undefined;
2208
+ input_type?: string | undefined;
2209
+ preselected_key?: string | undefined;
2210
+ label_field?: string | undefined;
2211
+ availability_condition?: {
2212
+ field: string;
2213
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2214
+ value: string | undefined;
2215
+ }[] | undefined;
2216
+ loaded?: any[] | undefined;
2217
+ allow_create?: boolean | undefined;
2218
+ allow_create_label?: string | undefined;
2219
+ }) | ({
2220
+ type: "set";
2221
+ value: string[] | number[] | {
2222
+ [key: string]: unknown;
2223
+ }[];
2224
+ order_key: number;
2225
+ } & {
2226
+ label?: string | undefined;
2227
+ chosen?: string | number | undefined;
2228
+ selected?: any[] | undefined;
2229
+ input_type?: string | undefined;
2230
+ preselected_key?: string | undefined;
2231
+ label_field?: string | undefined;
2232
+ availability_condition?: {
2233
+ field: string;
2234
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2235
+ value: string | undefined;
2236
+ }[] | undefined;
2237
+ loaded?: any[] | undefined;
2238
+ allow_create?: boolean | undefined;
2239
+ allow_create_label?: string | undefined;
2240
+ }) | ({
2241
+ type: "provided";
2242
+ value: "time" | "text";
2243
+ order_key: number;
2244
+ } & {
2245
+ label?: string | undefined;
2246
+ chosen?: string | number | undefined;
2247
+ selected?: any[] | undefined;
2248
+ input_type?: string | undefined;
2249
+ preselected_key?: string | undefined;
2250
+ label_field?: string | undefined;
2251
+ availability_condition?: {
2252
+ field: string;
2253
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2254
+ value: string | undefined;
2255
+ }[] | undefined;
2256
+ loaded?: any[] | undefined;
2257
+ dateTimeArgumentTypeId?: number | undefined;
2258
+ allow_create?: boolean | undefined;
2259
+ allow_create_label?: string | undefined;
2260
+ }) | ({
2261
+ type: "dependent";
2262
+ value: string;
2263
+ order_key: number;
2264
+ } & {
2265
+ label?: string | undefined;
2266
+ chosen?: string | number | undefined;
2267
+ selected?: any[] | undefined;
2268
+ input_type?: string | undefined;
2269
+ preselected_key?: string | undefined;
2270
+ label_field?: string | undefined;
2271
+ availability_condition?: {
2272
+ field: string;
2273
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2274
+ value: string | undefined;
2275
+ }[] | undefined;
2276
+ loaded?: any[] | undefined;
2277
+ allow_create?: boolean | undefined;
2278
+ allow_create_label?: string | undefined;
2279
+ }) | ({
2280
+ type: "function";
2281
+ value: string;
2282
+ order_key: number;
2283
+ } & {
2284
+ label?: string | undefined;
2285
+ chosen?: string | number | undefined;
2286
+ selected?: any[] | undefined;
2287
+ input_type?: string | undefined;
2288
+ preselected_key?: string | undefined;
2289
+ label_field?: string | undefined;
2290
+ availability_condition?: {
2291
+ field: string;
2292
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2293
+ value: string | undefined;
2294
+ }[] | undefined;
2295
+ loaded?: any[] | undefined;
2296
+ allow_create?: boolean | undefined;
2297
+ allow_create_label?: string | undefined;
2298
+ });
2299
+ };
2300
+ tags: string[];
2301
+ availability_rules: ({
2302
+ type: "url" | "context" | "element";
2303
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2304
+ } & {
2305
+ field?: string | undefined;
2306
+ value?: string | undefined;
2307
+ reason?: string | undefined;
2308
+ })[] | (({
2309
+ type: "url" | "context" | "element";
2310
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2311
+ } & {
2312
+ field?: string | undefined;
2313
+ value?: string | undefined;
2314
+ reason?: string | undefined;
2315
+ }) | ({
2316
+ type: "named_rule";
2317
+ rule_id: number;
2318
+ } & {
2319
+ reason?: string | undefined;
2320
+ }))[];
2321
+ recommend_rules: (({
2322
+ type: "always";
2323
+ } & {
2324
+ operator?: null | undefined;
2325
+ field?: null | undefined;
2326
+ value?: null | undefined;
2327
+ reason?: null | undefined;
2328
+ }) | ({
2329
+ type: "url" | "context" | "element";
2330
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2331
+ } & {
2332
+ field?: string | undefined;
2333
+ value?: string | undefined;
2334
+ reason?: string | undefined;
2335
+ }))[] | (({
2336
+ type: "always";
2337
+ } & {
2338
+ operator?: null | undefined;
2339
+ field?: null | undefined;
2340
+ value?: null | undefined;
2341
+ reason?: null | undefined;
2342
+ }) | ({
2343
+ type: "url" | "context" | "element";
2344
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2345
+ } & {
2346
+ field?: string | undefined;
2347
+ value?: string | undefined;
2348
+ reason?: string | undefined;
2349
+ }) | ({
2350
+ type: "named_rule";
2351
+ rule_id: number;
2352
+ } & {
2353
+ reason?: string | undefined;
2354
+ }))[];
2355
+ confirm: string;
2356
+ shortcut: string[];
2357
+ explanation: string;
2358
+ is_live: boolean;
2359
+ category: number | null;
2360
+ sort_key: number | null;
2361
+ icon: string | null;
2362
+ celebrate: {
2363
+ [x: string]: any;
2364
+ } | null;
2365
+ recommend_sort_key: number | null;
2366
+ shortcut_mac: string[];
2367
+ shortcut_win: string[];
2368
+ hotkey_mac: string;
2369
+ hotkey_win: string;
2370
+ }>;
2371
+ static updateWithoutThrottle: (object: {
2372
+ id: number;
2373
+ organization: string | number;
2374
+ text: string;
2375
+ template: ({
2376
+ type: "admin";
2377
+ value: string;
2378
+ } & {} & {
2379
+ commandType?: "object" | "independent" | "help" | undefined;
2380
+ object?: string | undefined;
2381
+ hoverTooltip?: boolean | undefined;
2382
+ operation?: "self" | "router" | "blank" | undefined;
2383
+ }) | ({
2384
+ type: "callback";
2385
+ value: string;
2386
+ } & {} & {
2387
+ commandType?: "object" | "independent" | "help" | undefined;
2388
+ object?: string | undefined;
2389
+ hoverTooltip?: boolean | undefined;
2390
+ operation?: "self" | "router" | "blank" | undefined;
2391
+ }) | ({
2392
+ type: "link";
2393
+ value: string;
2394
+ } & {} & {
2395
+ commandType?: "object" | "independent" | "help" | undefined;
2396
+ object?: string | undefined;
2397
+ hoverTooltip?: boolean | undefined;
2398
+ operation?: "self" | "router" | "blank" | undefined;
2399
+ }) | ({
2400
+ type: "click" | "clickBySelector" | "clickByXpath";
2401
+ value: string[];
2402
+ } & {} & {
2403
+ commandType?: "object" | "independent" | "help" | undefined;
2404
+ object?: string | undefined;
2405
+ hoverTooltip?: boolean | undefined;
2406
+ operation?: "self" | "router" | "blank" | undefined;
2407
+ }) | ({
2408
+ type: "builtin";
2409
+ value: string;
2410
+ } & {} & {
2411
+ commandType?: "object" | "independent" | "help" | undefined;
2412
+ object?: string | undefined;
2413
+ hoverTooltip?: boolean | undefined;
2414
+ operation?: "self" | "router" | "blank" | undefined;
2415
+ }) | ({
2416
+ type: "webhook";
2417
+ value: string;
2418
+ } & {} & {
2419
+ commandType?: "object" | "independent" | "help" | undefined;
2420
+ object?: string | undefined;
2421
+ hoverTooltip?: boolean | undefined;
2422
+ operation?: "self" | "router" | "blank" | undefined;
2423
+ }) | ({
2424
+ type: "script";
2425
+ value: string;
2426
+ } & {} & {
2427
+ commandType?: "object" | "independent" | "help" | undefined;
2428
+ object?: string | undefined;
2429
+ hoverTooltip?: boolean | undefined;
2430
+ operation?: "self" | "router" | "blank" | undefined;
2431
+ });
2432
+ } & {
2433
+ disabledReason?: string | undefined;
2434
+ source?: string | undefined;
2435
+ name?: string | undefined;
2436
+ last_available?: string | null | undefined;
2437
+ modified?: string | undefined;
2438
+ } & {
2439
+ arguments: {
2440
+ [x: string]: ({
2441
+ type: "context";
2442
+ value: string;
2443
+ order_key: number;
2444
+ } & {
2445
+ label?: string | undefined;
2446
+ chosen?: string | number | undefined;
2447
+ selected?: any[] | undefined;
2448
+ input_type?: string | undefined;
2449
+ preselected_key?: string | undefined;
2450
+ label_field?: string | undefined;
2451
+ availability_condition?: {
2452
+ field: string;
2453
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2454
+ value: string | undefined;
2455
+ }[] | undefined;
2456
+ loaded?: any[] | undefined;
2457
+ allow_create?: boolean | undefined;
2458
+ allow_create_label?: string | undefined;
2459
+ }) | ({
2460
+ type: "set";
2461
+ value: string[] | number[] | {
2462
+ [key: string]: unknown;
2463
+ }[];
2464
+ order_key: number;
2465
+ } & {
2466
+ label?: string | undefined;
2467
+ chosen?: string | number | undefined;
2468
+ selected?: any[] | undefined;
2469
+ input_type?: string | undefined;
2470
+ preselected_key?: string | undefined;
2471
+ label_field?: string | undefined;
2472
+ availability_condition?: {
2473
+ field: string;
2474
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2475
+ value: string | undefined;
2476
+ }[] | undefined;
2477
+ loaded?: any[] | undefined;
2478
+ allow_create?: boolean | undefined;
2479
+ allow_create_label?: string | undefined;
2480
+ }) | ({
2481
+ type: "provided";
2482
+ value: "time" | "text";
2483
+ order_key: number;
2484
+ } & {
2485
+ label?: string | undefined;
2486
+ chosen?: string | number | undefined;
2487
+ selected?: any[] | undefined;
2488
+ input_type?: string | undefined;
2489
+ preselected_key?: string | undefined;
2490
+ label_field?: string | undefined;
2491
+ availability_condition?: {
2492
+ field: string;
2493
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2494
+ value: string | undefined;
2495
+ }[] | undefined;
2496
+ loaded?: any[] | undefined;
2497
+ dateTimeArgumentTypeId?: number | undefined;
2498
+ allow_create?: boolean | undefined;
2499
+ allow_create_label?: string | undefined;
2500
+ }) | ({
2501
+ type: "dependent";
2502
+ value: string;
2503
+ order_key: number;
2504
+ } & {
2505
+ label?: string | undefined;
2506
+ chosen?: string | number | undefined;
2507
+ selected?: any[] | undefined;
2508
+ input_type?: string | undefined;
2509
+ preselected_key?: string | undefined;
2510
+ label_field?: string | undefined;
2511
+ availability_condition?: {
2512
+ field: string;
2513
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2514
+ value: string | undefined;
2515
+ }[] | undefined;
2516
+ loaded?: any[] | undefined;
2517
+ allow_create?: boolean | undefined;
2518
+ allow_create_label?: string | undefined;
2519
+ }) | ({
2520
+ type: "function";
2521
+ value: string;
2522
+ order_key: number;
2523
+ } & {
2524
+ label?: string | undefined;
2525
+ chosen?: string | number | undefined;
2526
+ selected?: any[] | undefined;
2527
+ input_type?: string | undefined;
2528
+ preselected_key?: string | undefined;
2529
+ label_field?: string | undefined;
2530
+ availability_condition?: {
2531
+ field: string;
2532
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2533
+ value: string | undefined;
2534
+ }[] | undefined;
2535
+ loaded?: any[] | undefined;
2536
+ allow_create?: boolean | undefined;
2537
+ allow_create_label?: string | undefined;
2538
+ });
2539
+ };
2540
+ tags: string[];
2541
+ availability_rules: ({
2542
+ type: "url" | "context" | "element";
2543
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2544
+ } & {
2545
+ field?: string | undefined;
2546
+ value?: string | undefined;
2547
+ reason?: string | undefined;
2548
+ })[] | (({
2549
+ type: "url" | "context" | "element";
2550
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2551
+ } & {
2552
+ field?: string | undefined;
2553
+ value?: string | undefined;
2554
+ reason?: string | undefined;
2555
+ }) | ({
2556
+ type: "named_rule";
2557
+ rule_id: number;
2558
+ } & {
2559
+ reason?: string | undefined;
2560
+ }))[];
2561
+ recommend_rules: (({
2562
+ type: "always";
2563
+ } & {
2564
+ operator?: null | undefined;
2565
+ field?: null | undefined;
2566
+ value?: null | undefined;
2567
+ reason?: null | undefined;
2568
+ }) | ({
2569
+ type: "url" | "context" | "element";
2570
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2571
+ } & {
2572
+ field?: string | undefined;
2573
+ value?: string | undefined;
2574
+ reason?: string | undefined;
2575
+ }))[] | (({
2576
+ type: "always";
2577
+ } & {
2578
+ operator?: null | undefined;
2579
+ field?: null | undefined;
2580
+ value?: null | undefined;
2581
+ reason?: null | undefined;
2582
+ }) | ({
2583
+ type: "url" | "context" | "element";
2584
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2585
+ } & {
2586
+ field?: string | undefined;
2587
+ value?: string | undefined;
2588
+ reason?: string | undefined;
2589
+ }) | ({
2590
+ type: "named_rule";
2591
+ rule_id: number;
2592
+ } & {
2593
+ reason?: string | undefined;
2594
+ }))[];
2595
+ confirm: string;
2596
+ shortcut: string[];
2597
+ explanation: string;
2598
+ is_live: boolean;
2599
+ category: number | null;
2600
+ sort_key: number | null;
2601
+ icon: string | null;
2602
+ celebrate: {
2603
+ [x: string]: any;
2604
+ } | null;
2605
+ recommend_sort_key: number | null;
2606
+ shortcut_mac: string[];
2607
+ shortcut_win: string[];
2608
+ hotkey_mac: string;
2609
+ hotkey_win: string;
2610
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
2611
+ id: number;
2612
+ organization: string | number;
2613
+ text: string;
2614
+ template: ({
2615
+ type: "admin";
2616
+ value: string;
2617
+ } & {} & {
2618
+ commandType?: "object" | "independent" | "help" | undefined;
2619
+ object?: string | undefined;
2620
+ hoverTooltip?: boolean | undefined;
2621
+ operation?: "self" | "router" | "blank" | undefined;
2622
+ }) | ({
2623
+ type: "callback";
2624
+ value: string;
2625
+ } & {} & {
2626
+ commandType?: "object" | "independent" | "help" | undefined;
2627
+ object?: string | undefined;
2628
+ hoverTooltip?: boolean | undefined;
2629
+ operation?: "self" | "router" | "blank" | undefined;
2630
+ }) | ({
2631
+ type: "link";
2632
+ value: string;
2633
+ } & {} & {
2634
+ commandType?: "object" | "independent" | "help" | undefined;
2635
+ object?: string | undefined;
2636
+ hoverTooltip?: boolean | undefined;
2637
+ operation?: "self" | "router" | "blank" | undefined;
2638
+ }) | ({
2639
+ type: "click" | "clickBySelector" | "clickByXpath";
2640
+ value: string[];
2641
+ } & {} & {
2642
+ commandType?: "object" | "independent" | "help" | undefined;
2643
+ object?: string | undefined;
2644
+ hoverTooltip?: boolean | undefined;
2645
+ operation?: "self" | "router" | "blank" | undefined;
2646
+ }) | ({
2647
+ type: "builtin";
2648
+ value: string;
2649
+ } & {} & {
2650
+ commandType?: "object" | "independent" | "help" | undefined;
2651
+ object?: string | undefined;
2652
+ hoverTooltip?: boolean | undefined;
2653
+ operation?: "self" | "router" | "blank" | undefined;
2654
+ }) | ({
2655
+ type: "webhook";
2656
+ value: string;
2657
+ } & {} & {
2658
+ commandType?: "object" | "independent" | "help" | undefined;
2659
+ object?: string | undefined;
2660
+ hoverTooltip?: boolean | undefined;
2661
+ operation?: "self" | "router" | "blank" | undefined;
2662
+ }) | ({
2663
+ type: "script";
2664
+ value: string;
2665
+ } & {} & {
2666
+ commandType?: "object" | "independent" | "help" | undefined;
2667
+ object?: string | undefined;
2668
+ hoverTooltip?: boolean | undefined;
2669
+ operation?: "self" | "router" | "blank" | undefined;
2670
+ });
2671
+ } & {
2672
+ disabledReason?: string | undefined;
2673
+ source?: string | undefined;
2674
+ name?: string | undefined;
2675
+ last_available?: string | null | undefined;
2676
+ modified?: string | undefined;
2677
+ } & {
2678
+ arguments: {
2679
+ [x: string]: ({
2680
+ type: "context";
2681
+ value: string;
2682
+ order_key: number;
2683
+ } & {
2684
+ label?: string | undefined;
2685
+ chosen?: string | number | undefined;
2686
+ selected?: any[] | undefined;
2687
+ input_type?: string | undefined;
2688
+ preselected_key?: string | undefined;
2689
+ label_field?: string | undefined;
2690
+ availability_condition?: {
2691
+ field: string;
2692
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2693
+ value: string | undefined;
2694
+ }[] | undefined;
2695
+ loaded?: any[] | undefined;
2696
+ allow_create?: boolean | undefined;
2697
+ allow_create_label?: string | undefined;
2698
+ }) | ({
2699
+ type: "set";
2700
+ value: string[] | number[] | {
2701
+ [key: string]: unknown;
2702
+ }[];
2703
+ order_key: number;
2704
+ } & {
2705
+ label?: string | undefined;
2706
+ chosen?: string | number | undefined;
2707
+ selected?: any[] | undefined;
2708
+ input_type?: string | undefined;
2709
+ preselected_key?: string | undefined;
2710
+ label_field?: string | undefined;
2711
+ availability_condition?: {
2712
+ field: string;
2713
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2714
+ value: string | undefined;
2715
+ }[] | undefined;
2716
+ loaded?: any[] | undefined;
2717
+ allow_create?: boolean | undefined;
2718
+ allow_create_label?: string | undefined;
2719
+ }) | ({
2720
+ type: "provided";
2721
+ value: "time" | "text";
2722
+ order_key: number;
2723
+ } & {
2724
+ label?: string | undefined;
2725
+ chosen?: string | number | undefined;
2726
+ selected?: any[] | undefined;
2727
+ input_type?: string | undefined;
2728
+ preselected_key?: string | undefined;
2729
+ label_field?: string | undefined;
2730
+ availability_condition?: {
2731
+ field: string;
2732
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2733
+ value: string | undefined;
2734
+ }[] | undefined;
2735
+ loaded?: any[] | undefined;
2736
+ dateTimeArgumentTypeId?: number | undefined;
2737
+ allow_create?: boolean | undefined;
2738
+ allow_create_label?: string | undefined;
2739
+ }) | ({
2740
+ type: "dependent";
2741
+ value: string;
2742
+ order_key: number;
2743
+ } & {
2744
+ label?: string | undefined;
2745
+ chosen?: string | number | undefined;
2746
+ selected?: any[] | undefined;
2747
+ input_type?: string | undefined;
2748
+ preselected_key?: string | undefined;
2749
+ label_field?: string | undefined;
2750
+ availability_condition?: {
2751
+ field: string;
2752
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2753
+ value: string | undefined;
2754
+ }[] | undefined;
2755
+ loaded?: any[] | undefined;
2756
+ allow_create?: boolean | undefined;
2757
+ allow_create_label?: string | undefined;
2758
+ }) | ({
2759
+ type: "function";
2760
+ value: string;
2761
+ order_key: number;
2762
+ } & {
2763
+ label?: string | undefined;
2764
+ chosen?: string | number | undefined;
2765
+ selected?: any[] | undefined;
2766
+ input_type?: string | undefined;
2767
+ preselected_key?: string | undefined;
2768
+ label_field?: string | undefined;
2769
+ availability_condition?: {
2770
+ field: string;
2771
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2772
+ value: string | undefined;
2773
+ }[] | undefined;
2774
+ loaded?: any[] | undefined;
2775
+ allow_create?: boolean | undefined;
2776
+ allow_create_label?: string | undefined;
2777
+ });
2778
+ };
2779
+ tags: string[];
2780
+ availability_rules: ({
2781
+ type: "url" | "context" | "element";
2782
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2783
+ } & {
2784
+ field?: string | undefined;
2785
+ value?: string | undefined;
2786
+ reason?: string | undefined;
2787
+ })[] | (({
2788
+ type: "url" | "context" | "element";
2789
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2790
+ } & {
2791
+ field?: string | undefined;
2792
+ value?: string | undefined;
2793
+ reason?: string | undefined;
2794
+ }) | ({
2795
+ type: "named_rule";
2796
+ rule_id: number;
2797
+ } & {
2798
+ reason?: string | undefined;
2799
+ }))[];
2800
+ recommend_rules: (({
2801
+ type: "always";
2802
+ } & {
2803
+ operator?: null | undefined;
2804
+ field?: null | undefined;
2805
+ value?: null | undefined;
2806
+ reason?: null | undefined;
2807
+ }) | ({
2808
+ type: "url" | "context" | "element";
2809
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2810
+ } & {
2811
+ field?: string | undefined;
2812
+ value?: string | undefined;
2813
+ reason?: string | undefined;
2814
+ }))[] | (({
2815
+ type: "always";
2816
+ } & {
2817
+ operator?: null | undefined;
2818
+ field?: null | undefined;
2819
+ value?: null | undefined;
2820
+ reason?: null | undefined;
2821
+ }) | ({
2822
+ type: "url" | "context" | "element";
2823
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2824
+ } & {
2825
+ field?: string | undefined;
2826
+ value?: string | undefined;
2827
+ reason?: string | undefined;
2828
+ }) | ({
2829
+ type: "named_rule";
2830
+ rule_id: number;
2831
+ } & {
2832
+ reason?: string | undefined;
2833
+ }))[];
2834
+ confirm: string;
2835
+ shortcut: string[];
2836
+ explanation: string;
2837
+ is_live: boolean;
2838
+ category: number | null;
2839
+ sort_key: number | null;
2840
+ icon: string | null;
2841
+ celebrate: {
2842
+ [x: string]: any;
2843
+ } | null;
2844
+ recommend_sort_key: number | null;
2845
+ shortcut_mac: string[];
2846
+ shortcut_win: string[];
2847
+ hotkey_mac: string;
2848
+ hotkey_win: string;
2849
+ }>;
2850
+ static deleteWithoutThrottle: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
2851
+ static commandUID: (cmd: t.TypeOf<typeof CommandV>) => string;
2852
+ }