commandbar 1.6.7 → 1.6.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/build/commandbar-js/src/index.d.ts +10 -0
  2. package/build/commandbar-js/src/index.js +1 -0
  3. package/build/commandbar-js/src/init.d.ts +21 -0
  4. package/build/commandbar-js/src/snippet.d.ts +1 -0
  5. package/build/internal/src/client/AddContextOptions.d.ts +94 -0
  6. package/build/internal/src/client/AnalyticsEventTypes.d.ts +1 -0
  7. package/build/internal/src/client/CommandBarClientSDK.d.ts +293 -0
  8. package/build/internal/src/client/CommandBarProxySDK.d.ts +48 -0
  9. package/build/internal/src/client/CommandBarSDK.d.ts +50 -0
  10. package/build/internal/src/client/EventHandler.d.ts +89 -0
  11. package/build/internal/src/client/SDKConfig.d.ts +13 -0
  12. package/build/internal/src/client/SentryReporter.d.ts +41 -0
  13. package/build/internal/src/client/globals.d.ts +18 -0
  14. package/build/internal/src/client/proxy.d.ts +15 -0
  15. package/build/internal/src/client/symbols.d.ts +32 -0
  16. package/build/internal/src/middleware/CommandFromClientV.d.ts +220 -0
  17. package/build/internal/src/middleware/ICommandFromClientType.d.ts +3 -0
  18. package/build/internal/src/middleware/IResourceSettings.d.ts +3 -0
  19. package/build/internal/src/middleware/OrganizationV.d.ts +102 -0
  20. package/build/internal/src/middleware/ResourceSettingsV.d.ts +43 -0
  21. package/build/internal/src/middleware/command.d.ts +3608 -0
  22. package/build/internal/src/middleware/commandCategory.d.ts +87 -0
  23. package/build/internal/src/middleware/confetti.d.ts +16 -0
  24. package/build/internal/src/middleware/context.d.ts +40 -0
  25. package/build/internal/src/middleware/environment.d.ts +11 -0
  26. package/build/internal/src/middleware/generics.d.ts +32 -0
  27. package/build/internal/src/middleware/guide.d.ts +37 -0
  28. package/build/internal/src/middleware/helpers/argument.d.ts +412 -0
  29. package/build/internal/src/middleware/helpers/commandTemplate.d.ts +129 -0
  30. package/build/internal/src/middleware/helpers/endUser.d.ts +10 -0
  31. package/build/internal/src/middleware/helpers/rules.d.ts +231 -0
  32. package/build/internal/src/middleware/historyEvent.d.ts +40 -0
  33. package/build/internal/src/middleware/network.d.ts +4 -0
  34. package/build/internal/src/middleware/organization.d.ts +604 -0
  35. package/build/internal/src/middleware/placeholder.d.ts +47 -0
  36. package/build/internal/src/middleware/profile.d.ts +11 -0
  37. package/build/internal/src/middleware/releases.d.ts +261 -0
  38. package/build/internal/src/middleware/skin.d.ts +66 -0
  39. package/build/internal/src/middleware/types.d.ts +378 -0
  40. package/build/internal/src/middleware/user.d.ts +12 -0
  41. package/build/internal/src/util/Disposable.d.ts +17 -0
  42. package/build/internal/src/util/LocalStorage.d.ts +6 -0
  43. package/build/internal/src/util/Logger.d.ts +18 -0
  44. package/build/internal/src/util/dispatchCustomEvent.d.ts +2 -0
  45. package/package.json +1 -1
@@ -0,0 +1,3608 @@
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
+ show_in_record_action_list: t.BooleanC;
92
+ show_in_default_list: t.BooleanC;
93
+ }>]>, t.IntersectionC<[t.TypeC<{
94
+ type: t.LiteralC<"set">;
95
+ value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
96
+ order_key: t.NumberC;
97
+ }>, t.PartialC<{
98
+ label: t.StringC;
99
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
100
+ selected: t.ArrayC<t.AnyC>;
101
+ input_type: t.StringC;
102
+ preselected_key: t.StringC;
103
+ label_field: t.StringC;
104
+ availability_condition: t.ArrayC<t.TypeC<{
105
+ field: t.StringC;
106
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
107
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
108
+ }>>;
109
+ loaded: t.ArrayC<t.AnyC>;
110
+ allow_create: t.BooleanC;
111
+ allow_create_label: t.StringC;
112
+ }>]>, t.IntersectionC<[t.TypeC<{
113
+ type: t.LiteralC<"provided">;
114
+ value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
115
+ order_key: t.NumberC;
116
+ }>, t.PartialC<{
117
+ label: t.StringC;
118
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
119
+ selected: t.ArrayC<t.AnyC>;
120
+ input_type: t.StringC;
121
+ preselected_key: t.StringC;
122
+ label_field: t.StringC;
123
+ availability_condition: t.ArrayC<t.TypeC<{
124
+ field: t.StringC;
125
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
126
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
127
+ }>>;
128
+ loaded: t.ArrayC<t.AnyC>;
129
+ dateTimeArgumentTypeId: t.NumberC;
130
+ allow_create: t.BooleanC;
131
+ allow_create_label: t.StringC;
132
+ }>]>, t.IntersectionC<[t.TypeC<{
133
+ type: t.LiteralC<"dependent">;
134
+ value: t.StringC;
135
+ order_key: t.NumberC;
136
+ }>, t.PartialC<{
137
+ label: t.StringC;
138
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
139
+ selected: t.ArrayC<t.AnyC>;
140
+ input_type: t.StringC;
141
+ preselected_key: t.StringC;
142
+ label_field: t.StringC;
143
+ availability_condition: t.ArrayC<t.TypeC<{
144
+ field: t.StringC;
145
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
146
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
147
+ }>>;
148
+ loaded: t.ArrayC<t.AnyC>;
149
+ allow_create: t.BooleanC;
150
+ allow_create_label: t.StringC;
151
+ }>]>, t.IntersectionC<[t.TypeC<{
152
+ type: t.LiteralC<"function">;
153
+ value: t.StringC;
154
+ order_key: t.NumberC;
155
+ }>, t.PartialC<{
156
+ label: t.StringC;
157
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
158
+ selected: t.ArrayC<t.AnyC>;
159
+ input_type: t.StringC;
160
+ preselected_key: t.StringC;
161
+ label_field: t.StringC;
162
+ availability_condition: t.ArrayC<t.TypeC<{
163
+ field: t.StringC;
164
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
165
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
166
+ }>>;
167
+ loaded: t.ArrayC<t.AnyC>;
168
+ allow_create: t.BooleanC;
169
+ allow_create_label: t.StringC;
170
+ }>]>]>>;
171
+ tags: t.ArrayC<t.StringC>;
172
+ availability_rules: t.ArrayC<t.IntersectionC<[t.TypeC<{
173
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
174
+ operator: t.KeyofC<{
175
+ includes: null;
176
+ endsWith: null;
177
+ startsWith: null;
178
+ is: null;
179
+ isTruthy: null;
180
+ isFalsy: null;
181
+ isNot: null;
182
+ isTrue: null;
183
+ isFalse: null;
184
+ doesNotInclude: null;
185
+ matchesRegex: null;
186
+ isGreaterThan: null;
187
+ isLessThan: null;
188
+ isDefined: null;
189
+ isNotDefined: null;
190
+ classnameOnPage: null;
191
+ idOnPage: null;
192
+ }>;
193
+ }>, t.PartialC<{
194
+ field: t.StringC;
195
+ value: t.StringC;
196
+ reason: t.StringC;
197
+ }>]>>;
198
+ recommend_rules: t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
199
+ type: t.LiteralC<"always">;
200
+ }>, t.PartialC<{
201
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
202
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
203
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
204
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
205
+ }>]>, t.IntersectionC<[t.TypeC<{
206
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
207
+ operator: t.KeyofC<{
208
+ includes: null;
209
+ endsWith: null;
210
+ startsWith: null;
211
+ is: null;
212
+ isTruthy: null;
213
+ isFalsy: null;
214
+ isNot: null;
215
+ isTrue: null;
216
+ isFalse: null;
217
+ doesNotInclude: null;
218
+ matchesRegex: null;
219
+ isGreaterThan: null;
220
+ isLessThan: null;
221
+ isDefined: null;
222
+ isNotDefined: null;
223
+ classnameOnPage: null;
224
+ idOnPage: null;
225
+ }>;
226
+ }>, t.PartialC<{
227
+ field: t.StringC;
228
+ value: t.StringC;
229
+ reason: t.StringC;
230
+ }>]>]>>;
231
+ confirm: t.StringC;
232
+ shortcut: t.ArrayC<t.StringC>;
233
+ explanation: t.StringC;
234
+ is_live: t.BooleanC;
235
+ category: t.UnionC<[t.NumberC, t.NullC]>;
236
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
237
+ icon: t.UnionC<[t.StringC, t.NullC]>;
238
+ celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
239
+ angle: t.NumberC;
240
+ spread: t.NumberC;
241
+ width: t.StringC;
242
+ height: t.StringC;
243
+ duration: t.NumberC;
244
+ dragFriction: t.NumberC;
245
+ stagger: t.NumberC;
246
+ startVelocity: t.NumberC;
247
+ elementCount: t.NumberC;
248
+ decay: t.NumberC;
249
+ colors: t.ArrayC<t.StringC>;
250
+ random: t.AnyC;
251
+ }>, t.NullC]>;
252
+ recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
253
+ shortcut_mac: t.ArrayC<t.StringC>;
254
+ shortcut_win: t.ArrayC<t.StringC>;
255
+ hotkey_mac: t.StringC;
256
+ hotkey_win: t.StringC;
257
+ }>]>;
258
+ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
259
+ id: t.NumberC;
260
+ organization: t.UnionC<[t.NumberC, t.StringC]>;
261
+ text: t.StringC;
262
+ template: t.UnionC<[t.IntersectionC<[t.TypeC<{
263
+ type: t.LiteralC<"admin">;
264
+ value: t.StringC;
265
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
266
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
267
+ object: t.StringC;
268
+ hoverTooltip: t.BooleanC;
269
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
270
+ }>]>]>, t.IntersectionC<[t.TypeC<{
271
+ type: t.LiteralC<"callback">;
272
+ value: t.StringC;
273
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
274
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
275
+ object: t.StringC;
276
+ hoverTooltip: t.BooleanC;
277
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
278
+ }>]>]>, t.IntersectionC<[t.TypeC<{
279
+ type: t.LiteralC<"link">;
280
+ value: t.StringC;
281
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
282
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
283
+ object: t.StringC;
284
+ hoverTooltip: t.BooleanC;
285
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
286
+ }>]>]>, t.IntersectionC<[t.TypeC<{
287
+ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
288
+ value: t.ArrayC<t.StringC>;
289
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
290
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
291
+ object: t.StringC;
292
+ hoverTooltip: t.BooleanC;
293
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
294
+ }>]>]>, t.IntersectionC<[t.TypeC<{
295
+ type: t.LiteralC<"builtin">;
296
+ value: t.StringC;
297
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
298
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
299
+ object: t.StringC;
300
+ hoverTooltip: t.BooleanC;
301
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
302
+ }>]>]>, t.IntersectionC<[t.TypeC<{
303
+ type: t.LiteralC<"webhook">;
304
+ value: t.StringC;
305
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
306
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
307
+ object: t.StringC;
308
+ hoverTooltip: t.BooleanC;
309
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
310
+ }>]>]>, t.IntersectionC<[t.TypeC<{
311
+ type: t.LiteralC<"script">;
312
+ value: t.StringC;
313
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
314
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
315
+ object: t.StringC;
316
+ hoverTooltip: t.BooleanC;
317
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
318
+ }>]>]>]>;
319
+ }>, t.PartialC<{
320
+ disabledReason: t.StringC;
321
+ source: t.StringC;
322
+ name: t.StringC;
323
+ last_available: t.UnionC<[t.StringC, t.NullC]>;
324
+ modified: t.StringC;
325
+ }>]>, t.TypeC<{
326
+ arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
327
+ type: t.LiteralC<"context">;
328
+ value: t.StringC;
329
+ order_key: t.NumberC;
330
+ }>, t.PartialC<{
331
+ label: t.StringC;
332
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
333
+ selected: t.ArrayC<t.AnyC>;
334
+ input_type: t.StringC;
335
+ preselected_key: t.StringC;
336
+ label_field: t.StringC;
337
+ availability_condition: t.ArrayC<t.TypeC<{
338
+ field: t.StringC;
339
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
340
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
341
+ }>>;
342
+ loaded: t.ArrayC<t.AnyC>;
343
+ allow_create: t.BooleanC;
344
+ allow_create_label: t.StringC;
345
+ show_in_record_action_list: t.BooleanC;
346
+ show_in_default_list: t.BooleanC;
347
+ }>]>, t.IntersectionC<[t.TypeC<{
348
+ type: t.LiteralC<"set">;
349
+ value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
350
+ order_key: t.NumberC;
351
+ }>, t.PartialC<{
352
+ label: t.StringC;
353
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
354
+ selected: t.ArrayC<t.AnyC>;
355
+ input_type: t.StringC;
356
+ preselected_key: t.StringC;
357
+ label_field: t.StringC;
358
+ availability_condition: t.ArrayC<t.TypeC<{
359
+ field: t.StringC;
360
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
361
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
362
+ }>>;
363
+ loaded: t.ArrayC<t.AnyC>;
364
+ allow_create: t.BooleanC;
365
+ allow_create_label: t.StringC;
366
+ }>]>, t.IntersectionC<[t.TypeC<{
367
+ type: t.LiteralC<"provided">;
368
+ value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
369
+ order_key: t.NumberC;
370
+ }>, t.PartialC<{
371
+ label: t.StringC;
372
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
373
+ selected: t.ArrayC<t.AnyC>;
374
+ input_type: t.StringC;
375
+ preselected_key: t.StringC;
376
+ label_field: t.StringC;
377
+ availability_condition: t.ArrayC<t.TypeC<{
378
+ field: t.StringC;
379
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
380
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
381
+ }>>;
382
+ loaded: t.ArrayC<t.AnyC>;
383
+ dateTimeArgumentTypeId: t.NumberC;
384
+ allow_create: t.BooleanC;
385
+ allow_create_label: t.StringC;
386
+ }>]>, t.IntersectionC<[t.TypeC<{
387
+ type: t.LiteralC<"dependent">;
388
+ value: t.StringC;
389
+ order_key: t.NumberC;
390
+ }>, t.PartialC<{
391
+ label: t.StringC;
392
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
393
+ selected: t.ArrayC<t.AnyC>;
394
+ input_type: t.StringC;
395
+ preselected_key: t.StringC;
396
+ label_field: t.StringC;
397
+ availability_condition: t.ArrayC<t.TypeC<{
398
+ field: t.StringC;
399
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
400
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
401
+ }>>;
402
+ loaded: t.ArrayC<t.AnyC>;
403
+ allow_create: t.BooleanC;
404
+ allow_create_label: t.StringC;
405
+ }>]>, t.IntersectionC<[t.TypeC<{
406
+ type: t.LiteralC<"function">;
407
+ value: t.StringC;
408
+ order_key: t.NumberC;
409
+ }>, t.PartialC<{
410
+ label: t.StringC;
411
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
412
+ selected: t.ArrayC<t.AnyC>;
413
+ input_type: t.StringC;
414
+ preselected_key: t.StringC;
415
+ label_field: t.StringC;
416
+ availability_condition: t.ArrayC<t.TypeC<{
417
+ field: t.StringC;
418
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
419
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
420
+ }>>;
421
+ loaded: t.ArrayC<t.AnyC>;
422
+ allow_create: t.BooleanC;
423
+ allow_create_label: t.StringC;
424
+ }>]>]>>;
425
+ tags: t.ArrayC<t.StringC>;
426
+ availability_rules: t.UnionC<[t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
427
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
428
+ operator: t.KeyofC<{
429
+ includes: null;
430
+ endsWith: null;
431
+ startsWith: null;
432
+ is: null;
433
+ isTruthy: null;
434
+ isFalsy: null;
435
+ isNot: null;
436
+ isTrue: null;
437
+ isFalse: null;
438
+ doesNotInclude: null;
439
+ matchesRegex: null;
440
+ isGreaterThan: null;
441
+ isLessThan: null;
442
+ isDefined: null;
443
+ isNotDefined: null;
444
+ classnameOnPage: null;
445
+ idOnPage: null;
446
+ }>;
447
+ }>, t.PartialC<{
448
+ field: t.StringC;
449
+ value: t.StringC;
450
+ reason: t.StringC;
451
+ }>]>, t.IntersectionC<[t.TypeC<{
452
+ type: t.LiteralC<"named_rule">;
453
+ rule_id: t.NumberC;
454
+ }>, t.PartialC<{
455
+ reason: t.StringC;
456
+ }>]>]>>, t.ArrayC<t.IntersectionC<[t.TypeC<{
457
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
458
+ operator: t.KeyofC<{
459
+ includes: null;
460
+ endsWith: null;
461
+ startsWith: null;
462
+ is: null;
463
+ isTruthy: null;
464
+ isFalsy: null;
465
+ isNot: null;
466
+ isTrue: null;
467
+ isFalse: null;
468
+ doesNotInclude: null;
469
+ matchesRegex: null;
470
+ isGreaterThan: null;
471
+ isLessThan: null;
472
+ isDefined: null;
473
+ isNotDefined: null;
474
+ classnameOnPage: null;
475
+ idOnPage: null;
476
+ }>;
477
+ }>, t.PartialC<{
478
+ field: t.StringC;
479
+ value: t.StringC;
480
+ reason: t.StringC;
481
+ }>]>>]>;
482
+ recommend_rules: t.UnionC<[t.ArrayC<t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
483
+ type: t.LiteralC<"always">;
484
+ }>, t.PartialC<{
485
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
486
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
487
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
488
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
489
+ }>]>, t.IntersectionC<[t.TypeC<{
490
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
491
+ operator: t.KeyofC<{
492
+ includes: null;
493
+ endsWith: null;
494
+ startsWith: null;
495
+ is: null;
496
+ isTruthy: null;
497
+ isFalsy: null;
498
+ isNot: null;
499
+ isTrue: null;
500
+ isFalse: null;
501
+ doesNotInclude: null;
502
+ matchesRegex: null;
503
+ isGreaterThan: null;
504
+ isLessThan: null;
505
+ isDefined: null;
506
+ isNotDefined: null;
507
+ classnameOnPage: null;
508
+ idOnPage: null;
509
+ }>;
510
+ }>, t.PartialC<{
511
+ field: t.StringC;
512
+ value: t.StringC;
513
+ reason: t.StringC;
514
+ }>]>]>, t.IntersectionC<[t.TypeC<{
515
+ type: t.LiteralC<"named_rule">;
516
+ rule_id: t.NumberC;
517
+ }>, t.PartialC<{
518
+ reason: t.StringC;
519
+ }>]>]>>, t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
520
+ type: t.LiteralC<"always">;
521
+ }>, t.PartialC<{
522
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
523
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
524
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
525
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
526
+ }>]>, t.IntersectionC<[t.TypeC<{
527
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
528
+ operator: t.KeyofC<{
529
+ includes: null;
530
+ endsWith: null;
531
+ startsWith: null;
532
+ is: null;
533
+ isTruthy: null;
534
+ isFalsy: null;
535
+ isNot: null;
536
+ isTrue: null;
537
+ isFalse: null;
538
+ doesNotInclude: null;
539
+ matchesRegex: null;
540
+ isGreaterThan: null;
541
+ isLessThan: null;
542
+ isDefined: null;
543
+ isNotDefined: null;
544
+ classnameOnPage: null;
545
+ idOnPage: null;
546
+ }>;
547
+ }>, t.PartialC<{
548
+ field: t.StringC;
549
+ value: t.StringC;
550
+ reason: t.StringC;
551
+ }>]>]>>]>;
552
+ confirm: t.StringC;
553
+ shortcut: t.ArrayC<t.StringC>;
554
+ explanation: t.StringC;
555
+ is_live: t.BooleanC;
556
+ category: t.UnionC<[t.NumberC, t.NullC]>;
557
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
558
+ icon: t.UnionC<[t.StringC, t.NullC]>;
559
+ celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
560
+ angle: t.NumberC;
561
+ spread: t.NumberC;
562
+ width: t.StringC;
563
+ height: t.StringC;
564
+ duration: t.NumberC;
565
+ dragFriction: t.NumberC;
566
+ stagger: t.NumberC;
567
+ startVelocity: t.NumberC;
568
+ elementCount: t.NumberC;
569
+ decay: t.NumberC;
570
+ colors: t.ArrayC<t.StringC>;
571
+ random: t.AnyC;
572
+ }>, t.NullC]>;
573
+ recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
574
+ shortcut_mac: t.ArrayC<t.StringC>;
575
+ shortcut_win: t.ArrayC<t.StringC>;
576
+ hotkey_mac: t.StringC;
577
+ hotkey_win: t.StringC;
578
+ }>]>;
579
+ export declare const BatchOperationV: t.UnionC<[t.TypeC<{
580
+ op: t.LiteralC<"update">;
581
+ id: t.NumberC;
582
+ data: t.UnknownC;
583
+ }>, t.TypeC<{
584
+ op: t.LiteralC<"create">;
585
+ data: t.UnknownC;
586
+ }>, t.TypeC<{
587
+ op: t.LiteralC<"delete">;
588
+ id: t.NumberC;
589
+ }>]>;
590
+ export declare const BatchEditorCommandRequestV: t.TypeC<{
591
+ batch: t.ArrayC<t.UnknownC>;
592
+ note: t.StringC;
593
+ }>;
594
+ export declare const BatchEditorCommandResponseV: t.TypeC<{
595
+ batch: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
596
+ id: t.NumberC;
597
+ organization: t.UnionC<[t.NumberC, t.StringC]>;
598
+ text: t.StringC;
599
+ template: t.UnionC<[t.IntersectionC<[t.TypeC<{
600
+ type: t.LiteralC<"admin">;
601
+ value: t.StringC;
602
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
603
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
604
+ object: t.StringC;
605
+ hoverTooltip: t.BooleanC;
606
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
607
+ }>]>]>, t.IntersectionC<[t.TypeC<{
608
+ type: t.LiteralC<"callback">;
609
+ value: t.StringC;
610
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
611
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
612
+ object: t.StringC;
613
+ hoverTooltip: t.BooleanC;
614
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
615
+ }>]>]>, t.IntersectionC<[t.TypeC<{
616
+ type: t.LiteralC<"link">;
617
+ value: t.StringC;
618
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
619
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
620
+ object: t.StringC;
621
+ hoverTooltip: t.BooleanC;
622
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
623
+ }>]>]>, t.IntersectionC<[t.TypeC<{
624
+ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
625
+ value: t.ArrayC<t.StringC>;
626
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
627
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
628
+ object: t.StringC;
629
+ hoverTooltip: t.BooleanC;
630
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
631
+ }>]>]>, t.IntersectionC<[t.TypeC<{
632
+ type: t.LiteralC<"builtin">;
633
+ value: t.StringC;
634
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
635
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
636
+ object: t.StringC;
637
+ hoverTooltip: t.BooleanC;
638
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
639
+ }>]>]>, t.IntersectionC<[t.TypeC<{
640
+ type: t.LiteralC<"webhook">;
641
+ value: t.StringC;
642
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
643
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
644
+ object: t.StringC;
645
+ hoverTooltip: t.BooleanC;
646
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
647
+ }>]>]>, t.IntersectionC<[t.TypeC<{
648
+ type: t.LiteralC<"script">;
649
+ value: t.StringC;
650
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
651
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
652
+ object: t.StringC;
653
+ hoverTooltip: t.BooleanC;
654
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
655
+ }>]>]>]>;
656
+ }>, t.PartialC<{
657
+ disabledReason: t.StringC;
658
+ source: t.StringC;
659
+ name: t.StringC;
660
+ last_available: t.UnionC<[t.StringC, t.NullC]>;
661
+ modified: t.StringC;
662
+ }>]>, t.TypeC<{
663
+ arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
664
+ type: t.LiteralC<"context">;
665
+ value: t.StringC;
666
+ order_key: t.NumberC;
667
+ }>, t.PartialC<{
668
+ label: t.StringC;
669
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
670
+ selected: t.ArrayC<t.AnyC>;
671
+ input_type: t.StringC;
672
+ preselected_key: t.StringC;
673
+ label_field: t.StringC;
674
+ availability_condition: t.ArrayC<t.TypeC<{
675
+ field: t.StringC;
676
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
677
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
678
+ }>>;
679
+ loaded: t.ArrayC<t.AnyC>;
680
+ allow_create: t.BooleanC;
681
+ allow_create_label: t.StringC;
682
+ show_in_record_action_list: t.BooleanC;
683
+ show_in_default_list: t.BooleanC;
684
+ }>]>, t.IntersectionC<[t.TypeC<{
685
+ type: t.LiteralC<"set">;
686
+ value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
687
+ order_key: t.NumberC;
688
+ }>, t.PartialC<{
689
+ label: t.StringC;
690
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
691
+ selected: t.ArrayC<t.AnyC>;
692
+ input_type: t.StringC;
693
+ preselected_key: t.StringC;
694
+ label_field: t.StringC;
695
+ availability_condition: t.ArrayC<t.TypeC<{
696
+ field: t.StringC;
697
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
698
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
699
+ }>>;
700
+ loaded: t.ArrayC<t.AnyC>;
701
+ allow_create: t.BooleanC;
702
+ allow_create_label: t.StringC;
703
+ }>]>, t.IntersectionC<[t.TypeC<{
704
+ type: t.LiteralC<"provided">;
705
+ value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
706
+ order_key: t.NumberC;
707
+ }>, t.PartialC<{
708
+ label: t.StringC;
709
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
710
+ selected: t.ArrayC<t.AnyC>;
711
+ input_type: t.StringC;
712
+ preselected_key: t.StringC;
713
+ label_field: t.StringC;
714
+ availability_condition: t.ArrayC<t.TypeC<{
715
+ field: t.StringC;
716
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
717
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
718
+ }>>;
719
+ loaded: t.ArrayC<t.AnyC>;
720
+ dateTimeArgumentTypeId: t.NumberC;
721
+ allow_create: t.BooleanC;
722
+ allow_create_label: t.StringC;
723
+ }>]>, t.IntersectionC<[t.TypeC<{
724
+ type: t.LiteralC<"dependent">;
725
+ value: t.StringC;
726
+ order_key: t.NumberC;
727
+ }>, t.PartialC<{
728
+ label: t.StringC;
729
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
730
+ selected: t.ArrayC<t.AnyC>;
731
+ input_type: t.StringC;
732
+ preselected_key: t.StringC;
733
+ label_field: t.StringC;
734
+ availability_condition: t.ArrayC<t.TypeC<{
735
+ field: t.StringC;
736
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
737
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
738
+ }>>;
739
+ loaded: t.ArrayC<t.AnyC>;
740
+ allow_create: t.BooleanC;
741
+ allow_create_label: t.StringC;
742
+ }>]>, t.IntersectionC<[t.TypeC<{
743
+ type: t.LiteralC<"function">;
744
+ value: t.StringC;
745
+ order_key: t.NumberC;
746
+ }>, t.PartialC<{
747
+ label: t.StringC;
748
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
749
+ selected: t.ArrayC<t.AnyC>;
750
+ input_type: t.StringC;
751
+ preselected_key: t.StringC;
752
+ label_field: t.StringC;
753
+ availability_condition: t.ArrayC<t.TypeC<{
754
+ field: t.StringC;
755
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
756
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
757
+ }>>;
758
+ loaded: t.ArrayC<t.AnyC>;
759
+ allow_create: t.BooleanC;
760
+ allow_create_label: t.StringC;
761
+ }>]>]>>;
762
+ tags: t.ArrayC<t.StringC>;
763
+ availability_rules: t.UnionC<[t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
764
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
765
+ operator: t.KeyofC<{
766
+ includes: null;
767
+ endsWith: null;
768
+ startsWith: null;
769
+ is: null;
770
+ isTruthy: null;
771
+ isFalsy: null;
772
+ isNot: null;
773
+ isTrue: null;
774
+ isFalse: null;
775
+ doesNotInclude: null;
776
+ matchesRegex: null;
777
+ isGreaterThan: null;
778
+ isLessThan: null;
779
+ isDefined: null;
780
+ isNotDefined: null;
781
+ classnameOnPage: null;
782
+ idOnPage: null;
783
+ }>;
784
+ }>, t.PartialC<{
785
+ field: t.StringC;
786
+ value: t.StringC;
787
+ reason: t.StringC;
788
+ }>]>, t.IntersectionC<[t.TypeC<{
789
+ type: t.LiteralC<"named_rule">;
790
+ rule_id: t.NumberC;
791
+ }>, t.PartialC<{
792
+ reason: t.StringC;
793
+ }>]>]>>, t.ArrayC<t.IntersectionC<[t.TypeC<{
794
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
795
+ operator: t.KeyofC<{
796
+ includes: null;
797
+ endsWith: null;
798
+ startsWith: null;
799
+ is: null;
800
+ isTruthy: null;
801
+ isFalsy: null;
802
+ isNot: null;
803
+ isTrue: null;
804
+ isFalse: null;
805
+ doesNotInclude: null;
806
+ matchesRegex: null;
807
+ isGreaterThan: null;
808
+ isLessThan: null;
809
+ isDefined: null;
810
+ isNotDefined: null;
811
+ classnameOnPage: null;
812
+ idOnPage: null;
813
+ }>;
814
+ }>, t.PartialC<{
815
+ field: t.StringC;
816
+ value: t.StringC;
817
+ reason: t.StringC;
818
+ }>]>>]>;
819
+ recommend_rules: t.UnionC<[t.ArrayC<t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
820
+ type: t.LiteralC<"always">;
821
+ }>, t.PartialC<{
822
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
823
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
824
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
825
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
826
+ }>]>, t.IntersectionC<[t.TypeC<{
827
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
828
+ operator: t.KeyofC<{
829
+ includes: null;
830
+ endsWith: null;
831
+ startsWith: null;
832
+ is: null;
833
+ isTruthy: null;
834
+ isFalsy: null;
835
+ isNot: null;
836
+ isTrue: null;
837
+ isFalse: null;
838
+ doesNotInclude: null;
839
+ matchesRegex: null;
840
+ isGreaterThan: null;
841
+ isLessThan: null;
842
+ isDefined: null;
843
+ isNotDefined: null;
844
+ classnameOnPage: null;
845
+ idOnPage: null;
846
+ }>;
847
+ }>, t.PartialC<{
848
+ field: t.StringC;
849
+ value: t.StringC;
850
+ reason: t.StringC;
851
+ }>]>]>, t.IntersectionC<[t.TypeC<{
852
+ type: t.LiteralC<"named_rule">;
853
+ rule_id: t.NumberC;
854
+ }>, t.PartialC<{
855
+ reason: t.StringC;
856
+ }>]>]>>, t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
857
+ type: t.LiteralC<"always">;
858
+ }>, t.PartialC<{
859
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
860
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
861
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
862
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
863
+ }>]>, t.IntersectionC<[t.TypeC<{
864
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
865
+ operator: t.KeyofC<{
866
+ includes: null;
867
+ endsWith: null;
868
+ startsWith: null;
869
+ is: null;
870
+ isTruthy: null;
871
+ isFalsy: null;
872
+ isNot: null;
873
+ isTrue: null;
874
+ isFalse: null;
875
+ doesNotInclude: null;
876
+ matchesRegex: null;
877
+ isGreaterThan: null;
878
+ isLessThan: null;
879
+ isDefined: null;
880
+ isNotDefined: null;
881
+ classnameOnPage: null;
882
+ idOnPage: null;
883
+ }>;
884
+ }>, t.PartialC<{
885
+ field: t.StringC;
886
+ value: t.StringC;
887
+ reason: t.StringC;
888
+ }>]>]>>]>;
889
+ confirm: t.StringC;
890
+ shortcut: t.ArrayC<t.StringC>;
891
+ explanation: t.StringC;
892
+ is_live: t.BooleanC;
893
+ category: t.UnionC<[t.NumberC, t.NullC]>;
894
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
895
+ icon: t.UnionC<[t.StringC, t.NullC]>;
896
+ celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
897
+ angle: t.NumberC;
898
+ spread: t.NumberC;
899
+ width: t.StringC;
900
+ height: t.StringC;
901
+ duration: t.NumberC;
902
+ dragFriction: t.NumberC;
903
+ stagger: t.NumberC;
904
+ startVelocity: t.NumberC;
905
+ elementCount: t.NumberC;
906
+ decay: t.NumberC;
907
+ colors: t.ArrayC<t.StringC>;
908
+ random: t.AnyC;
909
+ }>, t.NullC]>;
910
+ recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
911
+ shortcut_mac: t.ArrayC<t.StringC>;
912
+ shortcut_win: t.ArrayC<t.StringC>;
913
+ hotkey_mac: t.StringC;
914
+ hotkey_win: t.StringC;
915
+ }>]>>;
916
+ }>;
917
+ export declare class Command {
918
+ static create: (object: {
919
+ id: number;
920
+ organization: string | number;
921
+ text: string;
922
+ template: ({
923
+ type: "admin";
924
+ value: string;
925
+ } & {} & {
926
+ commandType?: "object" | "independent" | "help" | undefined;
927
+ object?: string | undefined;
928
+ hoverTooltip?: boolean | undefined;
929
+ operation?: "self" | "router" | "blank" | undefined;
930
+ }) | ({
931
+ type: "callback";
932
+ value: string;
933
+ } & {} & {
934
+ commandType?: "object" | "independent" | "help" | undefined;
935
+ object?: string | undefined;
936
+ hoverTooltip?: boolean | undefined;
937
+ operation?: "self" | "router" | "blank" | undefined;
938
+ }) | ({
939
+ type: "link";
940
+ value: string;
941
+ } & {} & {
942
+ commandType?: "object" | "independent" | "help" | undefined;
943
+ object?: string | undefined;
944
+ hoverTooltip?: boolean | undefined;
945
+ operation?: "self" | "router" | "blank" | undefined;
946
+ }) | ({
947
+ type: "click" | "clickBySelector" | "clickByXpath";
948
+ value: string[];
949
+ } & {} & {
950
+ commandType?: "object" | "independent" | "help" | undefined;
951
+ object?: string | undefined;
952
+ hoverTooltip?: boolean | undefined;
953
+ operation?: "self" | "router" | "blank" | undefined;
954
+ }) | ({
955
+ type: "builtin";
956
+ value: string;
957
+ } & {} & {
958
+ commandType?: "object" | "independent" | "help" | undefined;
959
+ object?: string | undefined;
960
+ hoverTooltip?: boolean | undefined;
961
+ operation?: "self" | "router" | "blank" | undefined;
962
+ }) | ({
963
+ type: "webhook";
964
+ value: string;
965
+ } & {} & {
966
+ commandType?: "object" | "independent" | "help" | undefined;
967
+ object?: string | undefined;
968
+ hoverTooltip?: boolean | undefined;
969
+ operation?: "self" | "router" | "blank" | undefined;
970
+ }) | ({
971
+ type: "script";
972
+ value: string;
973
+ } & {} & {
974
+ commandType?: "object" | "independent" | "help" | undefined;
975
+ object?: string | undefined;
976
+ hoverTooltip?: boolean | undefined;
977
+ operation?: "self" | "router" | "blank" | undefined;
978
+ });
979
+ } & {
980
+ disabledReason?: string | undefined;
981
+ source?: string | undefined;
982
+ name?: string | undefined;
983
+ last_available?: string | null | undefined;
984
+ modified?: string | undefined;
985
+ } & {
986
+ arguments: {
987
+ [x: string]: ({
988
+ type: "context";
989
+ value: string;
990
+ order_key: number;
991
+ } & {
992
+ label?: string | undefined;
993
+ chosen?: string | number | undefined;
994
+ selected?: any[] | undefined;
995
+ input_type?: string | undefined;
996
+ preselected_key?: string | undefined;
997
+ label_field?: string | undefined;
998
+ availability_condition?: {
999
+ field: string;
1000
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1001
+ value: string | undefined;
1002
+ }[] | undefined;
1003
+ loaded?: any[] | undefined;
1004
+ allow_create?: boolean | undefined;
1005
+ allow_create_label?: string | undefined;
1006
+ show_in_record_action_list?: boolean | undefined;
1007
+ show_in_default_list?: boolean | undefined;
1008
+ }) | ({
1009
+ type: "set";
1010
+ value: string[] | number[] | {
1011
+ [key: string]: unknown;
1012
+ }[];
1013
+ order_key: number;
1014
+ } & {
1015
+ label?: string | undefined;
1016
+ chosen?: string | number | undefined;
1017
+ selected?: any[] | undefined;
1018
+ input_type?: string | undefined;
1019
+ preselected_key?: string | undefined;
1020
+ label_field?: string | undefined;
1021
+ availability_condition?: {
1022
+ field: string;
1023
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1024
+ value: string | undefined;
1025
+ }[] | undefined;
1026
+ loaded?: any[] | undefined;
1027
+ allow_create?: boolean | undefined;
1028
+ allow_create_label?: string | undefined;
1029
+ }) | ({
1030
+ type: "provided";
1031
+ value: "time" | "text";
1032
+ order_key: number;
1033
+ } & {
1034
+ label?: string | undefined;
1035
+ chosen?: string | number | undefined;
1036
+ selected?: any[] | undefined;
1037
+ input_type?: string | undefined;
1038
+ preselected_key?: string | undefined;
1039
+ label_field?: string | undefined;
1040
+ availability_condition?: {
1041
+ field: string;
1042
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1043
+ value: string | undefined;
1044
+ }[] | undefined;
1045
+ loaded?: any[] | undefined;
1046
+ dateTimeArgumentTypeId?: number | undefined;
1047
+ allow_create?: boolean | undefined;
1048
+ allow_create_label?: string | undefined;
1049
+ }) | ({
1050
+ type: "dependent";
1051
+ value: string;
1052
+ order_key: number;
1053
+ } & {
1054
+ label?: string | undefined;
1055
+ chosen?: string | number | undefined;
1056
+ selected?: any[] | undefined;
1057
+ input_type?: string | undefined;
1058
+ preselected_key?: string | undefined;
1059
+ label_field?: string | undefined;
1060
+ availability_condition?: {
1061
+ field: string;
1062
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1063
+ value: string | undefined;
1064
+ }[] | undefined;
1065
+ loaded?: any[] | undefined;
1066
+ allow_create?: boolean | undefined;
1067
+ allow_create_label?: string | undefined;
1068
+ }) | ({
1069
+ type: "function";
1070
+ value: string;
1071
+ order_key: number;
1072
+ } & {
1073
+ label?: string | undefined;
1074
+ chosen?: string | number | undefined;
1075
+ selected?: any[] | undefined;
1076
+ input_type?: string | undefined;
1077
+ preselected_key?: string | undefined;
1078
+ label_field?: string | undefined;
1079
+ availability_condition?: {
1080
+ field: string;
1081
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1082
+ value: string | undefined;
1083
+ }[] | undefined;
1084
+ loaded?: any[] | undefined;
1085
+ allow_create?: boolean | undefined;
1086
+ allow_create_label?: string | undefined;
1087
+ });
1088
+ };
1089
+ tags: string[];
1090
+ availability_rules: ({
1091
+ type: "url" | "context" | "element";
1092
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1093
+ } & {
1094
+ field?: string | undefined;
1095
+ value?: string | undefined;
1096
+ reason?: string | undefined;
1097
+ })[] | (({
1098
+ type: "url" | "context" | "element";
1099
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1100
+ } & {
1101
+ field?: string | undefined;
1102
+ value?: string | undefined;
1103
+ reason?: string | undefined;
1104
+ }) | ({
1105
+ type: "named_rule";
1106
+ rule_id: number;
1107
+ } & {
1108
+ reason?: string | undefined;
1109
+ }))[];
1110
+ recommend_rules: (({
1111
+ type: "always";
1112
+ } & {
1113
+ operator?: null | undefined;
1114
+ field?: null | undefined;
1115
+ value?: null | undefined;
1116
+ reason?: null | undefined;
1117
+ }) | ({
1118
+ type: "url" | "context" | "element";
1119
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1120
+ } & {
1121
+ field?: string | undefined;
1122
+ value?: string | undefined;
1123
+ reason?: string | undefined;
1124
+ }))[] | (({
1125
+ type: "always";
1126
+ } & {
1127
+ operator?: null | undefined;
1128
+ field?: null | undefined;
1129
+ value?: null | undefined;
1130
+ reason?: null | undefined;
1131
+ }) | ({
1132
+ type: "url" | "context" | "element";
1133
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1134
+ } & {
1135
+ field?: string | undefined;
1136
+ value?: string | undefined;
1137
+ reason?: string | undefined;
1138
+ }) | ({
1139
+ type: "named_rule";
1140
+ rule_id: number;
1141
+ } & {
1142
+ reason?: string | undefined;
1143
+ }))[];
1144
+ confirm: string;
1145
+ shortcut: string[];
1146
+ explanation: string;
1147
+ is_live: boolean;
1148
+ category: number | null;
1149
+ sort_key: number | null;
1150
+ icon: string | null;
1151
+ celebrate: boolean | {
1152
+ angle?: number | undefined;
1153
+ spread?: number | undefined;
1154
+ width?: string | undefined;
1155
+ height?: string | undefined;
1156
+ duration?: number | undefined;
1157
+ dragFriction?: number | undefined;
1158
+ stagger?: number | undefined;
1159
+ startVelocity?: number | undefined;
1160
+ elementCount?: number | undefined;
1161
+ decay?: number | undefined;
1162
+ colors?: string[] | undefined;
1163
+ random?: any;
1164
+ } | null;
1165
+ recommend_sort_key: number | null;
1166
+ shortcut_mac: string[];
1167
+ shortcut_win: string[];
1168
+ hotkey_mac: string;
1169
+ hotkey_win: string;
1170
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
1171
+ id: number;
1172
+ organization: string | number;
1173
+ text: string;
1174
+ template: ({
1175
+ type: "admin";
1176
+ value: string;
1177
+ } & {} & {
1178
+ commandType?: "object" | "independent" | "help" | undefined;
1179
+ object?: string | undefined;
1180
+ hoverTooltip?: boolean | undefined;
1181
+ operation?: "self" | "router" | "blank" | undefined;
1182
+ }) | ({
1183
+ type: "callback";
1184
+ value: string;
1185
+ } & {} & {
1186
+ commandType?: "object" | "independent" | "help" | undefined;
1187
+ object?: string | undefined;
1188
+ hoverTooltip?: boolean | undefined;
1189
+ operation?: "self" | "router" | "blank" | undefined;
1190
+ }) | ({
1191
+ type: "link";
1192
+ value: string;
1193
+ } & {} & {
1194
+ commandType?: "object" | "independent" | "help" | undefined;
1195
+ object?: string | undefined;
1196
+ hoverTooltip?: boolean | undefined;
1197
+ operation?: "self" | "router" | "blank" | undefined;
1198
+ }) | ({
1199
+ type: "click" | "clickBySelector" | "clickByXpath";
1200
+ value: string[];
1201
+ } & {} & {
1202
+ commandType?: "object" | "independent" | "help" | undefined;
1203
+ object?: string | undefined;
1204
+ hoverTooltip?: boolean | undefined;
1205
+ operation?: "self" | "router" | "blank" | undefined;
1206
+ }) | ({
1207
+ type: "builtin";
1208
+ value: string;
1209
+ } & {} & {
1210
+ commandType?: "object" | "independent" | "help" | undefined;
1211
+ object?: string | undefined;
1212
+ hoverTooltip?: boolean | undefined;
1213
+ operation?: "self" | "router" | "blank" | undefined;
1214
+ }) | ({
1215
+ type: "webhook";
1216
+ value: string;
1217
+ } & {} & {
1218
+ commandType?: "object" | "independent" | "help" | undefined;
1219
+ object?: string | undefined;
1220
+ hoverTooltip?: boolean | undefined;
1221
+ operation?: "self" | "router" | "blank" | undefined;
1222
+ }) | ({
1223
+ type: "script";
1224
+ value: string;
1225
+ } & {} & {
1226
+ commandType?: "object" | "independent" | "help" | undefined;
1227
+ object?: string | undefined;
1228
+ hoverTooltip?: boolean | undefined;
1229
+ operation?: "self" | "router" | "blank" | undefined;
1230
+ });
1231
+ } & {
1232
+ disabledReason?: string | undefined;
1233
+ source?: string | undefined;
1234
+ name?: string | undefined;
1235
+ last_available?: string | null | undefined;
1236
+ modified?: string | undefined;
1237
+ } & {
1238
+ arguments: {
1239
+ [x: string]: ({
1240
+ type: "context";
1241
+ value: string;
1242
+ order_key: number;
1243
+ } & {
1244
+ label?: string | undefined;
1245
+ chosen?: string | number | undefined;
1246
+ selected?: any[] | undefined;
1247
+ input_type?: string | undefined;
1248
+ preselected_key?: string | undefined;
1249
+ label_field?: string | undefined;
1250
+ availability_condition?: {
1251
+ field: string;
1252
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1253
+ value: string | undefined;
1254
+ }[] | undefined;
1255
+ loaded?: any[] | undefined;
1256
+ allow_create?: boolean | undefined;
1257
+ allow_create_label?: string | undefined;
1258
+ show_in_record_action_list?: boolean | undefined;
1259
+ show_in_default_list?: boolean | undefined;
1260
+ }) | ({
1261
+ type: "set";
1262
+ value: string[] | number[] | {
1263
+ [key: string]: unknown;
1264
+ }[];
1265
+ order_key: number;
1266
+ } & {
1267
+ label?: string | undefined;
1268
+ chosen?: string | number | undefined;
1269
+ selected?: any[] | undefined;
1270
+ input_type?: string | undefined;
1271
+ preselected_key?: string | undefined;
1272
+ label_field?: string | undefined;
1273
+ availability_condition?: {
1274
+ field: string;
1275
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1276
+ value: string | undefined;
1277
+ }[] | undefined;
1278
+ loaded?: any[] | undefined;
1279
+ allow_create?: boolean | undefined;
1280
+ allow_create_label?: string | undefined;
1281
+ }) | ({
1282
+ type: "provided";
1283
+ value: "time" | "text";
1284
+ order_key: number;
1285
+ } & {
1286
+ label?: string | undefined;
1287
+ chosen?: string | number | undefined;
1288
+ selected?: any[] | undefined;
1289
+ input_type?: string | undefined;
1290
+ preselected_key?: string | undefined;
1291
+ label_field?: string | undefined;
1292
+ availability_condition?: {
1293
+ field: string;
1294
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1295
+ value: string | undefined;
1296
+ }[] | undefined;
1297
+ loaded?: any[] | undefined;
1298
+ dateTimeArgumentTypeId?: number | undefined;
1299
+ allow_create?: boolean | undefined;
1300
+ allow_create_label?: string | undefined;
1301
+ }) | ({
1302
+ type: "dependent";
1303
+ value: string;
1304
+ order_key: number;
1305
+ } & {
1306
+ label?: string | undefined;
1307
+ chosen?: string | number | undefined;
1308
+ selected?: any[] | undefined;
1309
+ input_type?: string | undefined;
1310
+ preselected_key?: string | undefined;
1311
+ label_field?: string | undefined;
1312
+ availability_condition?: {
1313
+ field: string;
1314
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1315
+ value: string | undefined;
1316
+ }[] | undefined;
1317
+ loaded?: any[] | undefined;
1318
+ allow_create?: boolean | undefined;
1319
+ allow_create_label?: string | undefined;
1320
+ }) | ({
1321
+ type: "function";
1322
+ value: string;
1323
+ order_key: number;
1324
+ } & {
1325
+ label?: string | undefined;
1326
+ chosen?: string | number | undefined;
1327
+ selected?: any[] | undefined;
1328
+ input_type?: string | undefined;
1329
+ preselected_key?: string | undefined;
1330
+ label_field?: string | undefined;
1331
+ availability_condition?: {
1332
+ field: string;
1333
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1334
+ value: string | undefined;
1335
+ }[] | undefined;
1336
+ loaded?: any[] | undefined;
1337
+ allow_create?: boolean | undefined;
1338
+ allow_create_label?: string | undefined;
1339
+ });
1340
+ };
1341
+ tags: string[];
1342
+ availability_rules: ({
1343
+ type: "url" | "context" | "element";
1344
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1345
+ } & {
1346
+ field?: string | undefined;
1347
+ value?: string | undefined;
1348
+ reason?: string | undefined;
1349
+ })[] | (({
1350
+ type: "url" | "context" | "element";
1351
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1352
+ } & {
1353
+ field?: string | undefined;
1354
+ value?: string | undefined;
1355
+ reason?: string | undefined;
1356
+ }) | ({
1357
+ type: "named_rule";
1358
+ rule_id: number;
1359
+ } & {
1360
+ reason?: string | undefined;
1361
+ }))[];
1362
+ recommend_rules: (({
1363
+ type: "always";
1364
+ } & {
1365
+ operator?: null | undefined;
1366
+ field?: null | undefined;
1367
+ value?: null | undefined;
1368
+ reason?: null | undefined;
1369
+ }) | ({
1370
+ type: "url" | "context" | "element";
1371
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1372
+ } & {
1373
+ field?: string | undefined;
1374
+ value?: string | undefined;
1375
+ reason?: string | undefined;
1376
+ }))[] | (({
1377
+ type: "always";
1378
+ } & {
1379
+ operator?: null | undefined;
1380
+ field?: null | undefined;
1381
+ value?: null | undefined;
1382
+ reason?: null | undefined;
1383
+ }) | ({
1384
+ type: "url" | "context" | "element";
1385
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1386
+ } & {
1387
+ field?: string | undefined;
1388
+ value?: string | undefined;
1389
+ reason?: string | undefined;
1390
+ }) | ({
1391
+ type: "named_rule";
1392
+ rule_id: number;
1393
+ } & {
1394
+ reason?: string | undefined;
1395
+ }))[];
1396
+ confirm: string;
1397
+ shortcut: string[];
1398
+ explanation: string;
1399
+ is_live: boolean;
1400
+ category: number | null;
1401
+ sort_key: number | null;
1402
+ icon: string | null;
1403
+ celebrate: boolean | {
1404
+ angle?: number | undefined;
1405
+ spread?: number | undefined;
1406
+ width?: string | undefined;
1407
+ height?: string | undefined;
1408
+ duration?: number | undefined;
1409
+ dragFriction?: number | undefined;
1410
+ stagger?: number | undefined;
1411
+ startVelocity?: number | undefined;
1412
+ elementCount?: number | undefined;
1413
+ decay?: number | undefined;
1414
+ colors?: string[] | undefined;
1415
+ random?: any;
1416
+ } | null;
1417
+ recommend_sort_key: number | null;
1418
+ shortcut_mac: string[];
1419
+ shortcut_win: string[];
1420
+ hotkey_mac: string;
1421
+ hotkey_win: string;
1422
+ }>;
1423
+ static update: (object: {
1424
+ id: number;
1425
+ organization: string | number;
1426
+ text: string;
1427
+ template: ({
1428
+ type: "admin";
1429
+ value: string;
1430
+ } & {} & {
1431
+ commandType?: "object" | "independent" | "help" | undefined;
1432
+ object?: string | undefined;
1433
+ hoverTooltip?: boolean | undefined;
1434
+ operation?: "self" | "router" | "blank" | undefined;
1435
+ }) | ({
1436
+ type: "callback";
1437
+ value: string;
1438
+ } & {} & {
1439
+ commandType?: "object" | "independent" | "help" | undefined;
1440
+ object?: string | undefined;
1441
+ hoverTooltip?: boolean | undefined;
1442
+ operation?: "self" | "router" | "blank" | undefined;
1443
+ }) | ({
1444
+ type: "link";
1445
+ value: string;
1446
+ } & {} & {
1447
+ commandType?: "object" | "independent" | "help" | undefined;
1448
+ object?: string | undefined;
1449
+ hoverTooltip?: boolean | undefined;
1450
+ operation?: "self" | "router" | "blank" | undefined;
1451
+ }) | ({
1452
+ type: "click" | "clickBySelector" | "clickByXpath";
1453
+ value: string[];
1454
+ } & {} & {
1455
+ commandType?: "object" | "independent" | "help" | undefined;
1456
+ object?: string | undefined;
1457
+ hoverTooltip?: boolean | undefined;
1458
+ operation?: "self" | "router" | "blank" | undefined;
1459
+ }) | ({
1460
+ type: "builtin";
1461
+ value: string;
1462
+ } & {} & {
1463
+ commandType?: "object" | "independent" | "help" | undefined;
1464
+ object?: string | undefined;
1465
+ hoverTooltip?: boolean | undefined;
1466
+ operation?: "self" | "router" | "blank" | undefined;
1467
+ }) | ({
1468
+ type: "webhook";
1469
+ value: string;
1470
+ } & {} & {
1471
+ commandType?: "object" | "independent" | "help" | undefined;
1472
+ object?: string | undefined;
1473
+ hoverTooltip?: boolean | undefined;
1474
+ operation?: "self" | "router" | "blank" | undefined;
1475
+ }) | ({
1476
+ type: "script";
1477
+ value: string;
1478
+ } & {} & {
1479
+ commandType?: "object" | "independent" | "help" | undefined;
1480
+ object?: string | undefined;
1481
+ hoverTooltip?: boolean | undefined;
1482
+ operation?: "self" | "router" | "blank" | undefined;
1483
+ });
1484
+ } & {
1485
+ disabledReason?: string | undefined;
1486
+ source?: string | undefined;
1487
+ name?: string | undefined;
1488
+ last_available?: string | null | undefined;
1489
+ modified?: string | undefined;
1490
+ } & {
1491
+ arguments: {
1492
+ [x: string]: ({
1493
+ type: "context";
1494
+ value: string;
1495
+ order_key: number;
1496
+ } & {
1497
+ label?: string | undefined;
1498
+ chosen?: string | number | undefined;
1499
+ selected?: any[] | undefined;
1500
+ input_type?: string | undefined;
1501
+ preselected_key?: string | undefined;
1502
+ label_field?: string | undefined;
1503
+ availability_condition?: {
1504
+ field: string;
1505
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1506
+ value: string | undefined;
1507
+ }[] | undefined;
1508
+ loaded?: any[] | undefined;
1509
+ allow_create?: boolean | undefined;
1510
+ allow_create_label?: string | undefined;
1511
+ show_in_record_action_list?: boolean | undefined;
1512
+ show_in_default_list?: boolean | undefined;
1513
+ }) | ({
1514
+ type: "set";
1515
+ value: string[] | number[] | {
1516
+ [key: string]: unknown;
1517
+ }[];
1518
+ order_key: number;
1519
+ } & {
1520
+ label?: string | undefined;
1521
+ chosen?: string | number | undefined;
1522
+ selected?: any[] | undefined;
1523
+ input_type?: string | undefined;
1524
+ preselected_key?: string | undefined;
1525
+ label_field?: string | undefined;
1526
+ availability_condition?: {
1527
+ field: string;
1528
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1529
+ value: string | undefined;
1530
+ }[] | undefined;
1531
+ loaded?: any[] | undefined;
1532
+ allow_create?: boolean | undefined;
1533
+ allow_create_label?: string | undefined;
1534
+ }) | ({
1535
+ type: "provided";
1536
+ value: "time" | "text";
1537
+ order_key: number;
1538
+ } & {
1539
+ label?: string | undefined;
1540
+ chosen?: string | number | undefined;
1541
+ selected?: any[] | undefined;
1542
+ input_type?: string | undefined;
1543
+ preselected_key?: string | undefined;
1544
+ label_field?: string | undefined;
1545
+ availability_condition?: {
1546
+ field: string;
1547
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1548
+ value: string | undefined;
1549
+ }[] | undefined;
1550
+ loaded?: any[] | undefined;
1551
+ dateTimeArgumentTypeId?: number | undefined;
1552
+ allow_create?: boolean | undefined;
1553
+ allow_create_label?: string | undefined;
1554
+ }) | ({
1555
+ type: "dependent";
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: "function";
1575
+ value: string;
1576
+ order_key: number;
1577
+ } & {
1578
+ label?: string | undefined;
1579
+ chosen?: string | number | undefined;
1580
+ selected?: any[] | undefined;
1581
+ input_type?: string | undefined;
1582
+ preselected_key?: string | undefined;
1583
+ label_field?: string | undefined;
1584
+ availability_condition?: {
1585
+ field: string;
1586
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1587
+ value: string | undefined;
1588
+ }[] | undefined;
1589
+ loaded?: any[] | undefined;
1590
+ allow_create?: boolean | undefined;
1591
+ allow_create_label?: string | undefined;
1592
+ });
1593
+ };
1594
+ tags: string[];
1595
+ availability_rules: ({
1596
+ type: "url" | "context" | "element";
1597
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1598
+ } & {
1599
+ field?: string | undefined;
1600
+ value?: string | undefined;
1601
+ reason?: string | undefined;
1602
+ })[] | (({
1603
+ type: "url" | "context" | "element";
1604
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1605
+ } & {
1606
+ field?: string | undefined;
1607
+ value?: string | undefined;
1608
+ reason?: string | undefined;
1609
+ }) | ({
1610
+ type: "named_rule";
1611
+ rule_id: number;
1612
+ } & {
1613
+ reason?: string | undefined;
1614
+ }))[];
1615
+ recommend_rules: (({
1616
+ type: "always";
1617
+ } & {
1618
+ operator?: null | undefined;
1619
+ field?: null | undefined;
1620
+ value?: null | undefined;
1621
+ reason?: null | undefined;
1622
+ }) | ({
1623
+ type: "url" | "context" | "element";
1624
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1625
+ } & {
1626
+ field?: string | undefined;
1627
+ value?: string | undefined;
1628
+ reason?: string | undefined;
1629
+ }))[] | (({
1630
+ type: "always";
1631
+ } & {
1632
+ operator?: null | undefined;
1633
+ field?: null | undefined;
1634
+ value?: null | undefined;
1635
+ reason?: null | undefined;
1636
+ }) | ({
1637
+ type: "url" | "context" | "element";
1638
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1639
+ } & {
1640
+ field?: string | undefined;
1641
+ value?: string | undefined;
1642
+ reason?: string | undefined;
1643
+ }) | ({
1644
+ type: "named_rule";
1645
+ rule_id: number;
1646
+ } & {
1647
+ reason?: string | undefined;
1648
+ }))[];
1649
+ confirm: string;
1650
+ shortcut: string[];
1651
+ explanation: string;
1652
+ is_live: boolean;
1653
+ category: number | null;
1654
+ sort_key: number | null;
1655
+ icon: string | null;
1656
+ celebrate: boolean | {
1657
+ angle?: number | undefined;
1658
+ spread?: number | undefined;
1659
+ width?: string | undefined;
1660
+ height?: string | undefined;
1661
+ duration?: number | undefined;
1662
+ dragFriction?: number | undefined;
1663
+ stagger?: number | undefined;
1664
+ startVelocity?: number | undefined;
1665
+ elementCount?: number | undefined;
1666
+ decay?: number | undefined;
1667
+ colors?: string[] | undefined;
1668
+ random?: any;
1669
+ } | null;
1670
+ recommend_sort_key: number | null;
1671
+ shortcut_mac: string[];
1672
+ shortcut_win: string[];
1673
+ hotkey_mac: string;
1674
+ hotkey_win: string;
1675
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
1676
+ id: number;
1677
+ organization: string | number;
1678
+ text: string;
1679
+ template: ({
1680
+ type: "admin";
1681
+ value: string;
1682
+ } & {} & {
1683
+ commandType?: "object" | "independent" | "help" | undefined;
1684
+ object?: string | undefined;
1685
+ hoverTooltip?: boolean | undefined;
1686
+ operation?: "self" | "router" | "blank" | undefined;
1687
+ }) | ({
1688
+ type: "callback";
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: "link";
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: "click" | "clickBySelector" | "clickByXpath";
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: "builtin";
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: "webhook";
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: "script";
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
+ } & {
1737
+ disabledReason?: string | undefined;
1738
+ source?: string | undefined;
1739
+ name?: string | undefined;
1740
+ last_available?: string | null | undefined;
1741
+ modified?: string | undefined;
1742
+ } & {
1743
+ arguments: {
1744
+ [x: string]: ({
1745
+ type: "context";
1746
+ value: string;
1747
+ order_key: number;
1748
+ } & {
1749
+ label?: string | undefined;
1750
+ chosen?: string | number | undefined;
1751
+ selected?: any[] | undefined;
1752
+ input_type?: string | undefined;
1753
+ preselected_key?: string | undefined;
1754
+ label_field?: string | undefined;
1755
+ availability_condition?: {
1756
+ field: string;
1757
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1758
+ value: string | undefined;
1759
+ }[] | undefined;
1760
+ loaded?: any[] | undefined;
1761
+ allow_create?: boolean | undefined;
1762
+ allow_create_label?: string | undefined;
1763
+ show_in_record_action_list?: boolean | undefined;
1764
+ show_in_default_list?: boolean | undefined;
1765
+ }) | ({
1766
+ type: "set";
1767
+ value: string[] | number[] | {
1768
+ [key: string]: unknown;
1769
+ }[];
1770
+ order_key: number;
1771
+ } & {
1772
+ label?: string | undefined;
1773
+ chosen?: string | number | undefined;
1774
+ selected?: any[] | undefined;
1775
+ input_type?: string | undefined;
1776
+ preselected_key?: string | undefined;
1777
+ label_field?: string | undefined;
1778
+ availability_condition?: {
1779
+ field: string;
1780
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1781
+ value: string | undefined;
1782
+ }[] | undefined;
1783
+ loaded?: any[] | undefined;
1784
+ allow_create?: boolean | undefined;
1785
+ allow_create_label?: string | undefined;
1786
+ }) | ({
1787
+ type: "provided";
1788
+ value: "time" | "text";
1789
+ order_key: number;
1790
+ } & {
1791
+ label?: string | undefined;
1792
+ chosen?: string | number | undefined;
1793
+ selected?: any[] | undefined;
1794
+ input_type?: string | undefined;
1795
+ preselected_key?: string | undefined;
1796
+ label_field?: string | undefined;
1797
+ availability_condition?: {
1798
+ field: string;
1799
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1800
+ value: string | undefined;
1801
+ }[] | undefined;
1802
+ loaded?: any[] | undefined;
1803
+ dateTimeArgumentTypeId?: number | undefined;
1804
+ allow_create?: boolean | undefined;
1805
+ allow_create_label?: string | undefined;
1806
+ }) | ({
1807
+ type: "dependent";
1808
+ value: string;
1809
+ order_key: number;
1810
+ } & {
1811
+ label?: string | undefined;
1812
+ chosen?: string | number | undefined;
1813
+ selected?: any[] | undefined;
1814
+ input_type?: string | undefined;
1815
+ preselected_key?: string | undefined;
1816
+ label_field?: string | undefined;
1817
+ availability_condition?: {
1818
+ field: string;
1819
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1820
+ value: string | undefined;
1821
+ }[] | undefined;
1822
+ loaded?: any[] | undefined;
1823
+ allow_create?: boolean | undefined;
1824
+ allow_create_label?: string | undefined;
1825
+ }) | ({
1826
+ type: "function";
1827
+ value: string;
1828
+ order_key: number;
1829
+ } & {
1830
+ label?: string | undefined;
1831
+ chosen?: string | number | undefined;
1832
+ selected?: any[] | undefined;
1833
+ input_type?: string | undefined;
1834
+ preselected_key?: string | undefined;
1835
+ label_field?: string | undefined;
1836
+ availability_condition?: {
1837
+ field: string;
1838
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
1839
+ value: string | undefined;
1840
+ }[] | undefined;
1841
+ loaded?: any[] | undefined;
1842
+ allow_create?: boolean | undefined;
1843
+ allow_create_label?: string | undefined;
1844
+ });
1845
+ };
1846
+ tags: string[];
1847
+ availability_rules: ({
1848
+ type: "url" | "context" | "element";
1849
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1850
+ } & {
1851
+ field?: string | undefined;
1852
+ value?: string | undefined;
1853
+ reason?: string | undefined;
1854
+ })[] | (({
1855
+ type: "url" | "context" | "element";
1856
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1857
+ } & {
1858
+ field?: string | undefined;
1859
+ value?: string | undefined;
1860
+ reason?: string | undefined;
1861
+ }) | ({
1862
+ type: "named_rule";
1863
+ rule_id: number;
1864
+ } & {
1865
+ reason?: string | undefined;
1866
+ }))[];
1867
+ recommend_rules: (({
1868
+ type: "always";
1869
+ } & {
1870
+ operator?: null | undefined;
1871
+ field?: null | undefined;
1872
+ value?: null | undefined;
1873
+ reason?: null | undefined;
1874
+ }) | ({
1875
+ type: "url" | "context" | "element";
1876
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1877
+ } & {
1878
+ field?: string | undefined;
1879
+ value?: string | undefined;
1880
+ reason?: string | undefined;
1881
+ }))[] | (({
1882
+ type: "always";
1883
+ } & {
1884
+ operator?: null | undefined;
1885
+ field?: null | undefined;
1886
+ value?: null | undefined;
1887
+ reason?: null | undefined;
1888
+ }) | ({
1889
+ type: "url" | "context" | "element";
1890
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
1891
+ } & {
1892
+ field?: string | undefined;
1893
+ value?: string | undefined;
1894
+ reason?: string | undefined;
1895
+ }) | ({
1896
+ type: "named_rule";
1897
+ rule_id: number;
1898
+ } & {
1899
+ reason?: string | undefined;
1900
+ }))[];
1901
+ confirm: string;
1902
+ shortcut: string[];
1903
+ explanation: string;
1904
+ is_live: boolean;
1905
+ category: number | null;
1906
+ sort_key: number | null;
1907
+ icon: string | null;
1908
+ celebrate: boolean | {
1909
+ angle?: number | undefined;
1910
+ spread?: number | undefined;
1911
+ width?: string | undefined;
1912
+ height?: string | undefined;
1913
+ duration?: number | undefined;
1914
+ dragFriction?: number | undefined;
1915
+ stagger?: number | undefined;
1916
+ startVelocity?: number | undefined;
1917
+ elementCount?: number | undefined;
1918
+ decay?: number | undefined;
1919
+ colors?: string[] | undefined;
1920
+ random?: any;
1921
+ } | null;
1922
+ recommend_sort_key: number | null;
1923
+ shortcut_mac: string[];
1924
+ shortcut_win: string[];
1925
+ hotkey_mac: string;
1926
+ hotkey_win: string;
1927
+ }>;
1928
+ static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
1929
+ static batch: (request: t.TypeOf<typeof BatchEditorCommandRequestV>) => Promise<{
1930
+ batch: ({
1931
+ id: number;
1932
+ organization: string | number;
1933
+ text: string;
1934
+ template: ({
1935
+ type: "admin";
1936
+ value: string;
1937
+ } & {} & {
1938
+ commandType?: "object" | "independent" | "help" | undefined;
1939
+ object?: string | undefined;
1940
+ hoverTooltip?: boolean | undefined;
1941
+ operation?: "self" | "router" | "blank" | undefined;
1942
+ }) | ({
1943
+ type: "callback";
1944
+ value: string;
1945
+ } & {} & {
1946
+ commandType?: "object" | "independent" | "help" | undefined;
1947
+ object?: string | undefined;
1948
+ hoverTooltip?: boolean | undefined;
1949
+ operation?: "self" | "router" | "blank" | undefined;
1950
+ }) | ({
1951
+ type: "link";
1952
+ value: string;
1953
+ } & {} & {
1954
+ commandType?: "object" | "independent" | "help" | undefined;
1955
+ object?: string | undefined;
1956
+ hoverTooltip?: boolean | undefined;
1957
+ operation?: "self" | "router" | "blank" | undefined;
1958
+ }) | ({
1959
+ type: "click" | "clickBySelector" | "clickByXpath";
1960
+ value: string[];
1961
+ } & {} & {
1962
+ commandType?: "object" | "independent" | "help" | undefined;
1963
+ object?: string | undefined;
1964
+ hoverTooltip?: boolean | undefined;
1965
+ operation?: "self" | "router" | "blank" | undefined;
1966
+ }) | ({
1967
+ type: "builtin";
1968
+ value: string;
1969
+ } & {} & {
1970
+ commandType?: "object" | "independent" | "help" | undefined;
1971
+ object?: string | undefined;
1972
+ hoverTooltip?: boolean | undefined;
1973
+ operation?: "self" | "router" | "blank" | undefined;
1974
+ }) | ({
1975
+ type: "webhook";
1976
+ value: string;
1977
+ } & {} & {
1978
+ commandType?: "object" | "independent" | "help" | undefined;
1979
+ object?: string | undefined;
1980
+ hoverTooltip?: boolean | undefined;
1981
+ operation?: "self" | "router" | "blank" | undefined;
1982
+ }) | ({
1983
+ type: "script";
1984
+ value: string;
1985
+ } & {} & {
1986
+ commandType?: "object" | "independent" | "help" | undefined;
1987
+ object?: string | undefined;
1988
+ hoverTooltip?: boolean | undefined;
1989
+ operation?: "self" | "router" | "blank" | undefined;
1990
+ });
1991
+ } & {
1992
+ disabledReason?: string | undefined;
1993
+ source?: string | undefined;
1994
+ name?: string | undefined;
1995
+ last_available?: string | null | undefined;
1996
+ modified?: string | undefined;
1997
+ } & {
1998
+ arguments: {
1999
+ [x: string]: ({
2000
+ type: "context";
2001
+ value: string;
2002
+ order_key: number;
2003
+ } & {
2004
+ label?: string | undefined;
2005
+ chosen?: string | number | undefined;
2006
+ selected?: any[] | undefined;
2007
+ input_type?: string | undefined;
2008
+ preselected_key?: string | undefined;
2009
+ label_field?: string | undefined;
2010
+ availability_condition?: {
2011
+ field: string;
2012
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2013
+ value: string | undefined;
2014
+ }[] | undefined;
2015
+ loaded?: any[] | undefined;
2016
+ allow_create?: boolean | undefined;
2017
+ allow_create_label?: string | undefined;
2018
+ show_in_record_action_list?: boolean | undefined;
2019
+ show_in_default_list?: boolean | undefined;
2020
+ }) | ({
2021
+ type: "set";
2022
+ value: string[] | number[] | {
2023
+ [key: string]: unknown;
2024
+ }[];
2025
+ order_key: number;
2026
+ } & {
2027
+ label?: string | undefined;
2028
+ chosen?: string | number | undefined;
2029
+ selected?: any[] | undefined;
2030
+ input_type?: string | undefined;
2031
+ preselected_key?: string | undefined;
2032
+ label_field?: string | undefined;
2033
+ availability_condition?: {
2034
+ field: string;
2035
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2036
+ value: string | undefined;
2037
+ }[] | undefined;
2038
+ loaded?: any[] | undefined;
2039
+ allow_create?: boolean | undefined;
2040
+ allow_create_label?: string | undefined;
2041
+ }) | ({
2042
+ type: "provided";
2043
+ value: "time" | "text";
2044
+ order_key: number;
2045
+ } & {
2046
+ label?: string | undefined;
2047
+ chosen?: string | number | undefined;
2048
+ selected?: any[] | undefined;
2049
+ input_type?: string | undefined;
2050
+ preselected_key?: string | undefined;
2051
+ label_field?: string | undefined;
2052
+ availability_condition?: {
2053
+ field: string;
2054
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2055
+ value: string | undefined;
2056
+ }[] | undefined;
2057
+ loaded?: any[] | undefined;
2058
+ dateTimeArgumentTypeId?: number | undefined;
2059
+ allow_create?: boolean | undefined;
2060
+ allow_create_label?: string | undefined;
2061
+ }) | ({
2062
+ type: "dependent";
2063
+ value: string;
2064
+ order_key: number;
2065
+ } & {
2066
+ label?: string | undefined;
2067
+ chosen?: string | number | undefined;
2068
+ selected?: any[] | undefined;
2069
+ input_type?: string | undefined;
2070
+ preselected_key?: string | undefined;
2071
+ label_field?: string | undefined;
2072
+ availability_condition?: {
2073
+ field: string;
2074
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2075
+ value: string | undefined;
2076
+ }[] | undefined;
2077
+ loaded?: any[] | undefined;
2078
+ allow_create?: boolean | undefined;
2079
+ allow_create_label?: string | undefined;
2080
+ }) | ({
2081
+ type: "function";
2082
+ value: string;
2083
+ order_key: number;
2084
+ } & {
2085
+ label?: string | undefined;
2086
+ chosen?: string | number | undefined;
2087
+ selected?: any[] | undefined;
2088
+ input_type?: string | undefined;
2089
+ preselected_key?: string | undefined;
2090
+ label_field?: string | undefined;
2091
+ availability_condition?: {
2092
+ field: string;
2093
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2094
+ value: string | undefined;
2095
+ }[] | undefined;
2096
+ loaded?: any[] | undefined;
2097
+ allow_create?: boolean | undefined;
2098
+ allow_create_label?: string | undefined;
2099
+ });
2100
+ };
2101
+ tags: string[];
2102
+ availability_rules: ({
2103
+ type: "url" | "context" | "element";
2104
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2105
+ } & {
2106
+ field?: string | undefined;
2107
+ value?: string | undefined;
2108
+ reason?: string | undefined;
2109
+ })[] | (({
2110
+ type: "url" | "context" | "element";
2111
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2112
+ } & {
2113
+ field?: string | undefined;
2114
+ value?: string | undefined;
2115
+ reason?: string | undefined;
2116
+ }) | ({
2117
+ type: "named_rule";
2118
+ rule_id: number;
2119
+ } & {
2120
+ reason?: string | undefined;
2121
+ }))[];
2122
+ recommend_rules: (({
2123
+ type: "always";
2124
+ } & {
2125
+ operator?: null | undefined;
2126
+ field?: null | undefined;
2127
+ value?: null | undefined;
2128
+ reason?: null | undefined;
2129
+ }) | ({
2130
+ type: "url" | "context" | "element";
2131
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2132
+ } & {
2133
+ field?: string | undefined;
2134
+ value?: string | undefined;
2135
+ reason?: string | undefined;
2136
+ }))[] | (({
2137
+ type: "always";
2138
+ } & {
2139
+ operator?: null | undefined;
2140
+ field?: null | undefined;
2141
+ value?: null | undefined;
2142
+ reason?: null | undefined;
2143
+ }) | ({
2144
+ type: "url" | "context" | "element";
2145
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2146
+ } & {
2147
+ field?: string | undefined;
2148
+ value?: string | undefined;
2149
+ reason?: string | undefined;
2150
+ }) | ({
2151
+ type: "named_rule";
2152
+ rule_id: number;
2153
+ } & {
2154
+ reason?: string | undefined;
2155
+ }))[];
2156
+ confirm: string;
2157
+ shortcut: string[];
2158
+ explanation: string;
2159
+ is_live: boolean;
2160
+ category: number | null;
2161
+ sort_key: number | null;
2162
+ icon: string | null;
2163
+ celebrate: boolean | {
2164
+ angle?: number | undefined;
2165
+ spread?: number | undefined;
2166
+ width?: string | undefined;
2167
+ height?: string | undefined;
2168
+ duration?: number | undefined;
2169
+ dragFriction?: number | undefined;
2170
+ stagger?: number | undefined;
2171
+ startVelocity?: number | undefined;
2172
+ elementCount?: number | undefined;
2173
+ decay?: number | undefined;
2174
+ colors?: string[] | undefined;
2175
+ random?: any;
2176
+ } | null;
2177
+ recommend_sort_key: number | null;
2178
+ shortcut_mac: string[];
2179
+ shortcut_win: string[];
2180
+ hotkey_mac: string;
2181
+ hotkey_win: string;
2182
+ })[];
2183
+ }>;
2184
+ static validateFromClient: (data: any) => Promise<{
2185
+ name: string;
2186
+ template: ({
2187
+ type: "callback";
2188
+ value: string;
2189
+ } & {} & {
2190
+ commandType?: "object" | "independent" | "help" | undefined;
2191
+ object?: string | undefined;
2192
+ hoverTooltip?: boolean | undefined;
2193
+ operation?: "self" | "router" | "blank" | undefined;
2194
+ }) | ({
2195
+ type: "link";
2196
+ value: string;
2197
+ } & {} & {
2198
+ commandType?: "object" | "independent" | "help" | undefined;
2199
+ object?: string | undefined;
2200
+ hoverTooltip?: boolean | undefined;
2201
+ operation?: "self" | "router" | "blank" | undefined;
2202
+ }) | ({
2203
+ type: "click" | "clickBySelector" | "clickByXpath";
2204
+ value: string[];
2205
+ } & {} & {
2206
+ commandType?: "object" | "independent" | "help" | undefined;
2207
+ object?: string | undefined;
2208
+ hoverTooltip?: boolean | undefined;
2209
+ operation?: "self" | "router" | "blank" | undefined;
2210
+ }) | ({
2211
+ type: "webhook";
2212
+ value: string;
2213
+ } & {} & {
2214
+ commandType?: "object" | "independent" | "help" | undefined;
2215
+ object?: string | undefined;
2216
+ hoverTooltip?: boolean | undefined;
2217
+ operation?: "self" | "router" | "blank" | undefined;
2218
+ });
2219
+ text: string;
2220
+ } & {
2221
+ shortcut_mac?: string[] | undefined;
2222
+ shortcut_win?: string[] | undefined;
2223
+ hotkey_mac?: string | undefined;
2224
+ hotkey_win?: string | undefined;
2225
+ tags?: string[] | undefined;
2226
+ explanation?: string | undefined;
2227
+ sort_key?: number | null | undefined;
2228
+ arguments?: {
2229
+ [x: string]: ({
2230
+ type: "context";
2231
+ value: string;
2232
+ order_key: number;
2233
+ } & {
2234
+ label?: string | undefined;
2235
+ chosen?: string | number | undefined;
2236
+ selected?: any[] | undefined;
2237
+ input_type?: string | undefined;
2238
+ preselected_key?: string | undefined;
2239
+ label_field?: string | undefined;
2240
+ availability_condition?: {
2241
+ field: string;
2242
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2243
+ value: string | undefined;
2244
+ }[] | undefined;
2245
+ loaded?: any[] | undefined;
2246
+ allow_create?: boolean | undefined;
2247
+ allow_create_label?: string | undefined;
2248
+ show_in_record_action_list?: boolean | undefined;
2249
+ show_in_default_list?: boolean | undefined;
2250
+ }) | ({
2251
+ type: "set";
2252
+ value: string[] | number[] | {
2253
+ [key: string]: unknown;
2254
+ }[];
2255
+ order_key: number;
2256
+ } & {
2257
+ label?: string | undefined;
2258
+ chosen?: string | number | undefined;
2259
+ selected?: any[] | undefined;
2260
+ input_type?: string | undefined;
2261
+ preselected_key?: string | undefined;
2262
+ label_field?: string | undefined;
2263
+ availability_condition?: {
2264
+ field: string;
2265
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2266
+ value: string | undefined;
2267
+ }[] | undefined;
2268
+ loaded?: any[] | undefined;
2269
+ allow_create?: boolean | undefined;
2270
+ allow_create_label?: string | undefined;
2271
+ }) | ({
2272
+ type: "provided";
2273
+ value: "time" | "text";
2274
+ order_key: number;
2275
+ } & {
2276
+ label?: string | undefined;
2277
+ chosen?: string | number | undefined;
2278
+ selected?: any[] | undefined;
2279
+ input_type?: string | undefined;
2280
+ preselected_key?: string | undefined;
2281
+ label_field?: string | undefined;
2282
+ availability_condition?: {
2283
+ field: string;
2284
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2285
+ value: string | undefined;
2286
+ }[] | undefined;
2287
+ loaded?: any[] | undefined;
2288
+ dateTimeArgumentTypeId?: number | undefined;
2289
+ allow_create?: boolean | undefined;
2290
+ allow_create_label?: string | undefined;
2291
+ }) | ({
2292
+ type: "dependent";
2293
+ value: string;
2294
+ order_key: number;
2295
+ } & {
2296
+ label?: string | undefined;
2297
+ chosen?: string | number | undefined;
2298
+ selected?: any[] | undefined;
2299
+ input_type?: string | undefined;
2300
+ preselected_key?: string | undefined;
2301
+ label_field?: string | undefined;
2302
+ availability_condition?: {
2303
+ field: string;
2304
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2305
+ value: string | undefined;
2306
+ }[] | undefined;
2307
+ loaded?: any[] | undefined;
2308
+ allow_create?: boolean | undefined;
2309
+ allow_create_label?: string | undefined;
2310
+ }) | ({
2311
+ type: "function";
2312
+ value: string;
2313
+ order_key: number;
2314
+ } & {
2315
+ label?: string | undefined;
2316
+ chosen?: string | number | undefined;
2317
+ selected?: any[] | undefined;
2318
+ input_type?: string | undefined;
2319
+ preselected_key?: string | undefined;
2320
+ label_field?: string | undefined;
2321
+ availability_condition?: {
2322
+ field: string;
2323
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2324
+ value: string | undefined;
2325
+ }[] | undefined;
2326
+ loaded?: any[] | undefined;
2327
+ allow_create?: boolean | undefined;
2328
+ allow_create_label?: string | undefined;
2329
+ });
2330
+ } | undefined;
2331
+ category?: string | number | null | undefined;
2332
+ icon?: string | null | undefined;
2333
+ celebrate?: boolean | {
2334
+ angle?: number | undefined;
2335
+ spread?: number | undefined;
2336
+ width?: string | undefined;
2337
+ height?: string | undefined;
2338
+ duration?: number | undefined;
2339
+ dragFriction?: number | undefined;
2340
+ stagger?: number | undefined;
2341
+ startVelocity?: number | undefined;
2342
+ elementCount?: number | undefined;
2343
+ decay?: number | undefined;
2344
+ colors?: string[] | undefined;
2345
+ random?: any;
2346
+ } | null | undefined;
2347
+ availability_rules?: ({
2348
+ type: "url" | "context" | "element";
2349
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2350
+ } & {
2351
+ field?: string | undefined;
2352
+ value?: string | undefined;
2353
+ reason?: string | undefined;
2354
+ })[] | undefined;
2355
+ recommend_rules?: (({
2356
+ type: "always";
2357
+ } & {
2358
+ operator?: null | undefined;
2359
+ field?: null | undefined;
2360
+ value?: null | undefined;
2361
+ reason?: null | undefined;
2362
+ }) | ({
2363
+ type: "url" | "context" | "element";
2364
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2365
+ } & {
2366
+ field?: string | undefined;
2367
+ value?: string | undefined;
2368
+ reason?: string | undefined;
2369
+ }))[] | undefined;
2370
+ }>;
2371
+ static decode: (data: any) => {
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
+ show_in_record_action_list?: boolean | undefined;
2460
+ show_in_default_list?: boolean | undefined;
2461
+ }) | ({
2462
+ type: "set";
2463
+ value: string[] | number[] | {
2464
+ [key: string]: unknown;
2465
+ }[];
2466
+ order_key: number;
2467
+ } & {
2468
+ label?: string | undefined;
2469
+ chosen?: string | number | undefined;
2470
+ selected?: any[] | undefined;
2471
+ input_type?: string | undefined;
2472
+ preselected_key?: string | undefined;
2473
+ label_field?: string | undefined;
2474
+ availability_condition?: {
2475
+ field: string;
2476
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2477
+ value: string | undefined;
2478
+ }[] | undefined;
2479
+ loaded?: any[] | undefined;
2480
+ allow_create?: boolean | undefined;
2481
+ allow_create_label?: string | undefined;
2482
+ }) | ({
2483
+ type: "provided";
2484
+ value: "time" | "text";
2485
+ order_key: number;
2486
+ } & {
2487
+ label?: string | undefined;
2488
+ chosen?: string | number | undefined;
2489
+ selected?: any[] | undefined;
2490
+ input_type?: string | undefined;
2491
+ preselected_key?: string | undefined;
2492
+ label_field?: string | undefined;
2493
+ availability_condition?: {
2494
+ field: string;
2495
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2496
+ value: string | undefined;
2497
+ }[] | undefined;
2498
+ loaded?: any[] | undefined;
2499
+ dateTimeArgumentTypeId?: number | undefined;
2500
+ allow_create?: boolean | undefined;
2501
+ allow_create_label?: string | undefined;
2502
+ }) | ({
2503
+ type: "dependent";
2504
+ value: string;
2505
+ order_key: number;
2506
+ } & {
2507
+ label?: string | undefined;
2508
+ chosen?: string | number | undefined;
2509
+ selected?: any[] | undefined;
2510
+ input_type?: string | undefined;
2511
+ preselected_key?: string | undefined;
2512
+ label_field?: string | undefined;
2513
+ availability_condition?: {
2514
+ field: string;
2515
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2516
+ value: string | undefined;
2517
+ }[] | undefined;
2518
+ loaded?: any[] | undefined;
2519
+ allow_create?: boolean | undefined;
2520
+ allow_create_label?: string | undefined;
2521
+ }) | ({
2522
+ type: "function";
2523
+ value: string;
2524
+ order_key: number;
2525
+ } & {
2526
+ label?: string | undefined;
2527
+ chosen?: string | number | undefined;
2528
+ selected?: any[] | undefined;
2529
+ input_type?: string | undefined;
2530
+ preselected_key?: string | undefined;
2531
+ label_field?: string | undefined;
2532
+ availability_condition?: {
2533
+ field: string;
2534
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2535
+ value: string | undefined;
2536
+ }[] | undefined;
2537
+ loaded?: any[] | undefined;
2538
+ allow_create?: boolean | undefined;
2539
+ allow_create_label?: string | undefined;
2540
+ });
2541
+ };
2542
+ tags: string[];
2543
+ availability_rules: ({
2544
+ type: "url" | "context" | "element";
2545
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2546
+ } & {
2547
+ field?: string | undefined;
2548
+ value?: string | undefined;
2549
+ reason?: string | undefined;
2550
+ })[];
2551
+ recommend_rules: (({
2552
+ type: "always";
2553
+ } & {
2554
+ operator?: null | undefined;
2555
+ field?: null | undefined;
2556
+ value?: null | undefined;
2557
+ reason?: null | undefined;
2558
+ }) | ({
2559
+ type: "url" | "context" | "element";
2560
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2561
+ } & {
2562
+ field?: string | undefined;
2563
+ value?: string | undefined;
2564
+ reason?: string | undefined;
2565
+ }))[];
2566
+ confirm: string;
2567
+ shortcut: string[];
2568
+ explanation: string;
2569
+ is_live: boolean;
2570
+ category: number | null;
2571
+ sort_key: number | null;
2572
+ icon: string | null;
2573
+ celebrate: boolean | {
2574
+ angle?: number | undefined;
2575
+ spread?: number | undefined;
2576
+ width?: string | undefined;
2577
+ height?: string | undefined;
2578
+ duration?: number | undefined;
2579
+ dragFriction?: number | undefined;
2580
+ stagger?: number | undefined;
2581
+ startVelocity?: number | undefined;
2582
+ elementCount?: number | undefined;
2583
+ decay?: number | undefined;
2584
+ colors?: string[] | undefined;
2585
+ random?: any;
2586
+ } | null;
2587
+ recommend_sort_key: number | null;
2588
+ shortcut_mac: string[];
2589
+ shortcut_win: string[];
2590
+ hotkey_mac: string;
2591
+ hotkey_win: string;
2592
+ };
2593
+ static createWithoutThrottle: (object: {
2594
+ id: number;
2595
+ organization: string | number;
2596
+ text: string;
2597
+ template: ({
2598
+ type: "admin";
2599
+ value: string;
2600
+ } & {} & {
2601
+ commandType?: "object" | "independent" | "help" | undefined;
2602
+ object?: string | undefined;
2603
+ hoverTooltip?: boolean | undefined;
2604
+ operation?: "self" | "router" | "blank" | undefined;
2605
+ }) | ({
2606
+ type: "callback";
2607
+ value: string;
2608
+ } & {} & {
2609
+ commandType?: "object" | "independent" | "help" | undefined;
2610
+ object?: string | undefined;
2611
+ hoverTooltip?: boolean | undefined;
2612
+ operation?: "self" | "router" | "blank" | undefined;
2613
+ }) | ({
2614
+ type: "link";
2615
+ value: string;
2616
+ } & {} & {
2617
+ commandType?: "object" | "independent" | "help" | undefined;
2618
+ object?: string | undefined;
2619
+ hoverTooltip?: boolean | undefined;
2620
+ operation?: "self" | "router" | "blank" | undefined;
2621
+ }) | ({
2622
+ type: "click" | "clickBySelector" | "clickByXpath";
2623
+ value: string[];
2624
+ } & {} & {
2625
+ commandType?: "object" | "independent" | "help" | undefined;
2626
+ object?: string | undefined;
2627
+ hoverTooltip?: boolean | undefined;
2628
+ operation?: "self" | "router" | "blank" | undefined;
2629
+ }) | ({
2630
+ type: "builtin";
2631
+ value: string;
2632
+ } & {} & {
2633
+ commandType?: "object" | "independent" | "help" | undefined;
2634
+ object?: string | undefined;
2635
+ hoverTooltip?: boolean | undefined;
2636
+ operation?: "self" | "router" | "blank" | undefined;
2637
+ }) | ({
2638
+ type: "webhook";
2639
+ value: string;
2640
+ } & {} & {
2641
+ commandType?: "object" | "independent" | "help" | undefined;
2642
+ object?: string | undefined;
2643
+ hoverTooltip?: boolean | undefined;
2644
+ operation?: "self" | "router" | "blank" | undefined;
2645
+ }) | ({
2646
+ type: "script";
2647
+ value: string;
2648
+ } & {} & {
2649
+ commandType?: "object" | "independent" | "help" | undefined;
2650
+ object?: string | undefined;
2651
+ hoverTooltip?: boolean | undefined;
2652
+ operation?: "self" | "router" | "blank" | undefined;
2653
+ });
2654
+ } & {
2655
+ disabledReason?: string | undefined;
2656
+ source?: string | undefined;
2657
+ name?: string | undefined;
2658
+ last_available?: string | null | undefined;
2659
+ modified?: string | undefined;
2660
+ } & {
2661
+ arguments: {
2662
+ [x: string]: ({
2663
+ type: "context";
2664
+ value: string;
2665
+ order_key: number;
2666
+ } & {
2667
+ label?: string | undefined;
2668
+ chosen?: string | number | undefined;
2669
+ selected?: any[] | undefined;
2670
+ input_type?: string | undefined;
2671
+ preselected_key?: string | undefined;
2672
+ label_field?: string | undefined;
2673
+ availability_condition?: {
2674
+ field: string;
2675
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2676
+ value: string | undefined;
2677
+ }[] | undefined;
2678
+ loaded?: any[] | undefined;
2679
+ allow_create?: boolean | undefined;
2680
+ allow_create_label?: string | undefined;
2681
+ show_in_record_action_list?: boolean | undefined;
2682
+ show_in_default_list?: boolean | undefined;
2683
+ }) | ({
2684
+ type: "set";
2685
+ value: string[] | number[] | {
2686
+ [key: string]: unknown;
2687
+ }[];
2688
+ order_key: number;
2689
+ } & {
2690
+ label?: string | undefined;
2691
+ chosen?: string | number | undefined;
2692
+ selected?: any[] | undefined;
2693
+ input_type?: string | undefined;
2694
+ preselected_key?: string | undefined;
2695
+ label_field?: string | undefined;
2696
+ availability_condition?: {
2697
+ field: string;
2698
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2699
+ value: string | undefined;
2700
+ }[] | undefined;
2701
+ loaded?: any[] | undefined;
2702
+ allow_create?: boolean | undefined;
2703
+ allow_create_label?: string | undefined;
2704
+ }) | ({
2705
+ type: "provided";
2706
+ value: "time" | "text";
2707
+ order_key: number;
2708
+ } & {
2709
+ label?: string | undefined;
2710
+ chosen?: string | number | undefined;
2711
+ selected?: any[] | undefined;
2712
+ input_type?: string | undefined;
2713
+ preselected_key?: string | undefined;
2714
+ label_field?: string | undefined;
2715
+ availability_condition?: {
2716
+ field: string;
2717
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2718
+ value: string | undefined;
2719
+ }[] | undefined;
2720
+ loaded?: any[] | undefined;
2721
+ dateTimeArgumentTypeId?: number | undefined;
2722
+ allow_create?: boolean | undefined;
2723
+ allow_create_label?: string | undefined;
2724
+ }) | ({
2725
+ type: "dependent";
2726
+ value: string;
2727
+ order_key: number;
2728
+ } & {
2729
+ label?: string | undefined;
2730
+ chosen?: string | number | undefined;
2731
+ selected?: any[] | undefined;
2732
+ input_type?: string | undefined;
2733
+ preselected_key?: string | undefined;
2734
+ label_field?: string | undefined;
2735
+ availability_condition?: {
2736
+ field: string;
2737
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2738
+ value: string | undefined;
2739
+ }[] | undefined;
2740
+ loaded?: any[] | undefined;
2741
+ allow_create?: boolean | undefined;
2742
+ allow_create_label?: string | undefined;
2743
+ }) | ({
2744
+ type: "function";
2745
+ value: string;
2746
+ order_key: number;
2747
+ } & {
2748
+ label?: string | undefined;
2749
+ chosen?: string | number | undefined;
2750
+ selected?: any[] | undefined;
2751
+ input_type?: string | undefined;
2752
+ preselected_key?: string | undefined;
2753
+ label_field?: string | undefined;
2754
+ availability_condition?: {
2755
+ field: string;
2756
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2757
+ value: string | undefined;
2758
+ }[] | undefined;
2759
+ loaded?: any[] | undefined;
2760
+ allow_create?: boolean | undefined;
2761
+ allow_create_label?: string | undefined;
2762
+ });
2763
+ };
2764
+ tags: string[];
2765
+ availability_rules: ({
2766
+ type: "url" | "context" | "element";
2767
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2768
+ } & {
2769
+ field?: string | undefined;
2770
+ value?: string | undefined;
2771
+ reason?: string | undefined;
2772
+ })[] | (({
2773
+ type: "url" | "context" | "element";
2774
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2775
+ } & {
2776
+ field?: string | undefined;
2777
+ value?: string | undefined;
2778
+ reason?: string | undefined;
2779
+ }) | ({
2780
+ type: "named_rule";
2781
+ rule_id: number;
2782
+ } & {
2783
+ reason?: string | undefined;
2784
+ }))[];
2785
+ recommend_rules: (({
2786
+ type: "always";
2787
+ } & {
2788
+ operator?: null | undefined;
2789
+ field?: null | undefined;
2790
+ value?: null | undefined;
2791
+ reason?: null | undefined;
2792
+ }) | ({
2793
+ type: "url" | "context" | "element";
2794
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2795
+ } & {
2796
+ field?: string | undefined;
2797
+ value?: string | undefined;
2798
+ reason?: string | undefined;
2799
+ }))[] | (({
2800
+ type: "always";
2801
+ } & {
2802
+ operator?: null | undefined;
2803
+ field?: null | undefined;
2804
+ value?: null | undefined;
2805
+ reason?: null | undefined;
2806
+ }) | ({
2807
+ type: "url" | "context" | "element";
2808
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2809
+ } & {
2810
+ field?: string | undefined;
2811
+ value?: string | undefined;
2812
+ reason?: string | undefined;
2813
+ }) | ({
2814
+ type: "named_rule";
2815
+ rule_id: number;
2816
+ } & {
2817
+ reason?: string | undefined;
2818
+ }))[];
2819
+ confirm: string;
2820
+ shortcut: string[];
2821
+ explanation: string;
2822
+ is_live: boolean;
2823
+ category: number | null;
2824
+ sort_key: number | null;
2825
+ icon: string | null;
2826
+ celebrate: boolean | {
2827
+ angle?: number | undefined;
2828
+ spread?: number | undefined;
2829
+ width?: string | undefined;
2830
+ height?: string | undefined;
2831
+ duration?: number | undefined;
2832
+ dragFriction?: number | undefined;
2833
+ stagger?: number | undefined;
2834
+ startVelocity?: number | undefined;
2835
+ elementCount?: number | undefined;
2836
+ decay?: number | undefined;
2837
+ colors?: string[] | undefined;
2838
+ random?: any;
2839
+ } | null;
2840
+ recommend_sort_key: number | null;
2841
+ shortcut_mac: string[];
2842
+ shortcut_win: string[];
2843
+ hotkey_mac: string;
2844
+ hotkey_win: string;
2845
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
2846
+ id: number;
2847
+ organization: string | number;
2848
+ text: string;
2849
+ template: ({
2850
+ type: "admin";
2851
+ value: string;
2852
+ } & {} & {
2853
+ commandType?: "object" | "independent" | "help" | undefined;
2854
+ object?: string | undefined;
2855
+ hoverTooltip?: boolean | undefined;
2856
+ operation?: "self" | "router" | "blank" | undefined;
2857
+ }) | ({
2858
+ type: "callback";
2859
+ value: string;
2860
+ } & {} & {
2861
+ commandType?: "object" | "independent" | "help" | undefined;
2862
+ object?: string | undefined;
2863
+ hoverTooltip?: boolean | undefined;
2864
+ operation?: "self" | "router" | "blank" | undefined;
2865
+ }) | ({
2866
+ type: "link";
2867
+ value: string;
2868
+ } & {} & {
2869
+ commandType?: "object" | "independent" | "help" | undefined;
2870
+ object?: string | undefined;
2871
+ hoverTooltip?: boolean | undefined;
2872
+ operation?: "self" | "router" | "blank" | undefined;
2873
+ }) | ({
2874
+ type: "click" | "clickBySelector" | "clickByXpath";
2875
+ value: string[];
2876
+ } & {} & {
2877
+ commandType?: "object" | "independent" | "help" | undefined;
2878
+ object?: string | undefined;
2879
+ hoverTooltip?: boolean | undefined;
2880
+ operation?: "self" | "router" | "blank" | undefined;
2881
+ }) | ({
2882
+ type: "builtin";
2883
+ value: string;
2884
+ } & {} & {
2885
+ commandType?: "object" | "independent" | "help" | undefined;
2886
+ object?: string | undefined;
2887
+ hoverTooltip?: boolean | undefined;
2888
+ operation?: "self" | "router" | "blank" | undefined;
2889
+ }) | ({
2890
+ type: "webhook";
2891
+ value: string;
2892
+ } & {} & {
2893
+ commandType?: "object" | "independent" | "help" | undefined;
2894
+ object?: string | undefined;
2895
+ hoverTooltip?: boolean | undefined;
2896
+ operation?: "self" | "router" | "blank" | undefined;
2897
+ }) | ({
2898
+ type: "script";
2899
+ value: string;
2900
+ } & {} & {
2901
+ commandType?: "object" | "independent" | "help" | undefined;
2902
+ object?: string | undefined;
2903
+ hoverTooltip?: boolean | undefined;
2904
+ operation?: "self" | "router" | "blank" | undefined;
2905
+ });
2906
+ } & {
2907
+ disabledReason?: string | undefined;
2908
+ source?: string | undefined;
2909
+ name?: string | undefined;
2910
+ last_available?: string | null | undefined;
2911
+ modified?: string | undefined;
2912
+ } & {
2913
+ arguments: {
2914
+ [x: string]: ({
2915
+ type: "context";
2916
+ value: string;
2917
+ order_key: number;
2918
+ } & {
2919
+ label?: string | undefined;
2920
+ chosen?: string | number | undefined;
2921
+ selected?: any[] | undefined;
2922
+ input_type?: string | undefined;
2923
+ preselected_key?: string | undefined;
2924
+ label_field?: string | undefined;
2925
+ availability_condition?: {
2926
+ field: string;
2927
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2928
+ value: string | undefined;
2929
+ }[] | undefined;
2930
+ loaded?: any[] | undefined;
2931
+ allow_create?: boolean | undefined;
2932
+ allow_create_label?: string | undefined;
2933
+ show_in_record_action_list?: boolean | undefined;
2934
+ show_in_default_list?: boolean | undefined;
2935
+ }) | ({
2936
+ type: "set";
2937
+ value: string[] | number[] | {
2938
+ [key: string]: unknown;
2939
+ }[];
2940
+ order_key: number;
2941
+ } & {
2942
+ label?: string | undefined;
2943
+ chosen?: string | number | undefined;
2944
+ selected?: any[] | undefined;
2945
+ input_type?: string | undefined;
2946
+ preselected_key?: string | undefined;
2947
+ label_field?: string | undefined;
2948
+ availability_condition?: {
2949
+ field: string;
2950
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2951
+ value: string | undefined;
2952
+ }[] | undefined;
2953
+ loaded?: any[] | undefined;
2954
+ allow_create?: boolean | undefined;
2955
+ allow_create_label?: string | undefined;
2956
+ }) | ({
2957
+ type: "provided";
2958
+ value: "time" | "text";
2959
+ order_key: number;
2960
+ } & {
2961
+ label?: string | undefined;
2962
+ chosen?: string | number | undefined;
2963
+ selected?: any[] | undefined;
2964
+ input_type?: string | undefined;
2965
+ preselected_key?: string | undefined;
2966
+ label_field?: string | undefined;
2967
+ availability_condition?: {
2968
+ field: string;
2969
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2970
+ value: string | undefined;
2971
+ }[] | undefined;
2972
+ loaded?: any[] | undefined;
2973
+ dateTimeArgumentTypeId?: number | undefined;
2974
+ allow_create?: boolean | undefined;
2975
+ allow_create_label?: string | undefined;
2976
+ }) | ({
2977
+ type: "dependent";
2978
+ value: string;
2979
+ order_key: number;
2980
+ } & {
2981
+ label?: string | undefined;
2982
+ chosen?: string | number | undefined;
2983
+ selected?: any[] | undefined;
2984
+ input_type?: string | undefined;
2985
+ preselected_key?: string | undefined;
2986
+ label_field?: string | undefined;
2987
+ availability_condition?: {
2988
+ field: string;
2989
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2990
+ value: string | undefined;
2991
+ }[] | undefined;
2992
+ loaded?: any[] | undefined;
2993
+ allow_create?: boolean | undefined;
2994
+ allow_create_label?: string | undefined;
2995
+ }) | ({
2996
+ type: "function";
2997
+ value: string;
2998
+ order_key: number;
2999
+ } & {
3000
+ label?: string | undefined;
3001
+ chosen?: string | number | undefined;
3002
+ selected?: any[] | undefined;
3003
+ input_type?: string | undefined;
3004
+ preselected_key?: string | undefined;
3005
+ label_field?: string | undefined;
3006
+ availability_condition?: {
3007
+ field: string;
3008
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3009
+ value: string | undefined;
3010
+ }[] | undefined;
3011
+ loaded?: any[] | undefined;
3012
+ allow_create?: boolean | undefined;
3013
+ allow_create_label?: string | undefined;
3014
+ });
3015
+ };
3016
+ tags: string[];
3017
+ availability_rules: ({
3018
+ type: "url" | "context" | "element";
3019
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3020
+ } & {
3021
+ field?: string | undefined;
3022
+ value?: string | undefined;
3023
+ reason?: string | undefined;
3024
+ })[] | (({
3025
+ type: "url" | "context" | "element";
3026
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3027
+ } & {
3028
+ field?: string | undefined;
3029
+ value?: string | undefined;
3030
+ reason?: string | undefined;
3031
+ }) | ({
3032
+ type: "named_rule";
3033
+ rule_id: number;
3034
+ } & {
3035
+ reason?: string | undefined;
3036
+ }))[];
3037
+ recommend_rules: (({
3038
+ type: "always";
3039
+ } & {
3040
+ operator?: null | undefined;
3041
+ field?: null | undefined;
3042
+ value?: null | undefined;
3043
+ reason?: null | undefined;
3044
+ }) | ({
3045
+ type: "url" | "context" | "element";
3046
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3047
+ } & {
3048
+ field?: string | undefined;
3049
+ value?: string | undefined;
3050
+ reason?: string | undefined;
3051
+ }))[] | (({
3052
+ type: "always";
3053
+ } & {
3054
+ operator?: null | undefined;
3055
+ field?: null | undefined;
3056
+ value?: null | undefined;
3057
+ reason?: null | undefined;
3058
+ }) | ({
3059
+ type: "url" | "context" | "element";
3060
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3061
+ } & {
3062
+ field?: string | undefined;
3063
+ value?: string | undefined;
3064
+ reason?: string | undefined;
3065
+ }) | ({
3066
+ type: "named_rule";
3067
+ rule_id: number;
3068
+ } & {
3069
+ reason?: string | undefined;
3070
+ }))[];
3071
+ confirm: string;
3072
+ shortcut: string[];
3073
+ explanation: string;
3074
+ is_live: boolean;
3075
+ category: number | null;
3076
+ sort_key: number | null;
3077
+ icon: string | null;
3078
+ celebrate: boolean | {
3079
+ angle?: number | undefined;
3080
+ spread?: number | undefined;
3081
+ width?: string | undefined;
3082
+ height?: string | undefined;
3083
+ duration?: number | undefined;
3084
+ dragFriction?: number | undefined;
3085
+ stagger?: number | undefined;
3086
+ startVelocity?: number | undefined;
3087
+ elementCount?: number | undefined;
3088
+ decay?: number | undefined;
3089
+ colors?: string[] | undefined;
3090
+ random?: any;
3091
+ } | null;
3092
+ recommend_sort_key: number | null;
3093
+ shortcut_mac: string[];
3094
+ shortcut_win: string[];
3095
+ hotkey_mac: string;
3096
+ hotkey_win: string;
3097
+ }>;
3098
+ static updateWithoutThrottle: (object: {
3099
+ id: number;
3100
+ organization: string | number;
3101
+ text: string;
3102
+ template: ({
3103
+ type: "admin";
3104
+ value: string;
3105
+ } & {} & {
3106
+ commandType?: "object" | "independent" | "help" | undefined;
3107
+ object?: string | undefined;
3108
+ hoverTooltip?: boolean | undefined;
3109
+ operation?: "self" | "router" | "blank" | undefined;
3110
+ }) | ({
3111
+ type: "callback";
3112
+ value: string;
3113
+ } & {} & {
3114
+ commandType?: "object" | "independent" | "help" | undefined;
3115
+ object?: string | undefined;
3116
+ hoverTooltip?: boolean | undefined;
3117
+ operation?: "self" | "router" | "blank" | undefined;
3118
+ }) | ({
3119
+ type: "link";
3120
+ value: string;
3121
+ } & {} & {
3122
+ commandType?: "object" | "independent" | "help" | undefined;
3123
+ object?: string | undefined;
3124
+ hoverTooltip?: boolean | undefined;
3125
+ operation?: "self" | "router" | "blank" | undefined;
3126
+ }) | ({
3127
+ type: "click" | "clickBySelector" | "clickByXpath";
3128
+ value: string[];
3129
+ } & {} & {
3130
+ commandType?: "object" | "independent" | "help" | undefined;
3131
+ object?: string | undefined;
3132
+ hoverTooltip?: boolean | undefined;
3133
+ operation?: "self" | "router" | "blank" | undefined;
3134
+ }) | ({
3135
+ type: "builtin";
3136
+ value: string;
3137
+ } & {} & {
3138
+ commandType?: "object" | "independent" | "help" | undefined;
3139
+ object?: string | undefined;
3140
+ hoverTooltip?: boolean | undefined;
3141
+ operation?: "self" | "router" | "blank" | undefined;
3142
+ }) | ({
3143
+ type: "webhook";
3144
+ value: string;
3145
+ } & {} & {
3146
+ commandType?: "object" | "independent" | "help" | undefined;
3147
+ object?: string | undefined;
3148
+ hoverTooltip?: boolean | undefined;
3149
+ operation?: "self" | "router" | "blank" | undefined;
3150
+ }) | ({
3151
+ type: "script";
3152
+ value: string;
3153
+ } & {} & {
3154
+ commandType?: "object" | "independent" | "help" | undefined;
3155
+ object?: string | undefined;
3156
+ hoverTooltip?: boolean | undefined;
3157
+ operation?: "self" | "router" | "blank" | undefined;
3158
+ });
3159
+ } & {
3160
+ disabledReason?: string | undefined;
3161
+ source?: string | undefined;
3162
+ name?: string | undefined;
3163
+ last_available?: string | null | undefined;
3164
+ modified?: string | undefined;
3165
+ } & {
3166
+ arguments: {
3167
+ [x: string]: ({
3168
+ type: "context";
3169
+ value: string;
3170
+ order_key: number;
3171
+ } & {
3172
+ label?: string | undefined;
3173
+ chosen?: string | number | undefined;
3174
+ selected?: any[] | undefined;
3175
+ input_type?: string | undefined;
3176
+ preselected_key?: string | undefined;
3177
+ label_field?: string | undefined;
3178
+ availability_condition?: {
3179
+ field: string;
3180
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3181
+ value: string | undefined;
3182
+ }[] | undefined;
3183
+ loaded?: any[] | undefined;
3184
+ allow_create?: boolean | undefined;
3185
+ allow_create_label?: string | undefined;
3186
+ show_in_record_action_list?: boolean | undefined;
3187
+ show_in_default_list?: boolean | undefined;
3188
+ }) | ({
3189
+ type: "set";
3190
+ value: string[] | number[] | {
3191
+ [key: string]: unknown;
3192
+ }[];
3193
+ order_key: number;
3194
+ } & {
3195
+ label?: string | undefined;
3196
+ chosen?: string | number | undefined;
3197
+ selected?: any[] | undefined;
3198
+ input_type?: string | undefined;
3199
+ preselected_key?: string | undefined;
3200
+ label_field?: string | undefined;
3201
+ availability_condition?: {
3202
+ field: string;
3203
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3204
+ value: string | undefined;
3205
+ }[] | undefined;
3206
+ loaded?: any[] | undefined;
3207
+ allow_create?: boolean | undefined;
3208
+ allow_create_label?: string | undefined;
3209
+ }) | ({
3210
+ type: "provided";
3211
+ value: "time" | "text";
3212
+ order_key: number;
3213
+ } & {
3214
+ label?: string | undefined;
3215
+ chosen?: string | number | undefined;
3216
+ selected?: any[] | undefined;
3217
+ input_type?: string | undefined;
3218
+ preselected_key?: string | undefined;
3219
+ label_field?: string | undefined;
3220
+ availability_condition?: {
3221
+ field: string;
3222
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3223
+ value: string | undefined;
3224
+ }[] | undefined;
3225
+ loaded?: any[] | undefined;
3226
+ dateTimeArgumentTypeId?: number | undefined;
3227
+ allow_create?: boolean | undefined;
3228
+ allow_create_label?: string | undefined;
3229
+ }) | ({
3230
+ type: "dependent";
3231
+ value: string;
3232
+ order_key: number;
3233
+ } & {
3234
+ label?: string | undefined;
3235
+ chosen?: string | number | undefined;
3236
+ selected?: any[] | undefined;
3237
+ input_type?: string | undefined;
3238
+ preselected_key?: string | undefined;
3239
+ label_field?: string | undefined;
3240
+ availability_condition?: {
3241
+ field: string;
3242
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3243
+ value: string | undefined;
3244
+ }[] | undefined;
3245
+ loaded?: any[] | undefined;
3246
+ allow_create?: boolean | undefined;
3247
+ allow_create_label?: string | undefined;
3248
+ }) | ({
3249
+ type: "function";
3250
+ value: string;
3251
+ order_key: number;
3252
+ } & {
3253
+ label?: string | undefined;
3254
+ chosen?: string | number | undefined;
3255
+ selected?: any[] | undefined;
3256
+ input_type?: string | undefined;
3257
+ preselected_key?: string | undefined;
3258
+ label_field?: string | undefined;
3259
+ availability_condition?: {
3260
+ field: string;
3261
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3262
+ value: string | undefined;
3263
+ }[] | undefined;
3264
+ loaded?: any[] | undefined;
3265
+ allow_create?: boolean | undefined;
3266
+ allow_create_label?: string | undefined;
3267
+ });
3268
+ };
3269
+ tags: string[];
3270
+ availability_rules: ({
3271
+ type: "url" | "context" | "element";
3272
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3273
+ } & {
3274
+ field?: string | undefined;
3275
+ value?: string | undefined;
3276
+ reason?: string | undefined;
3277
+ })[] | (({
3278
+ type: "url" | "context" | "element";
3279
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3280
+ } & {
3281
+ field?: string | undefined;
3282
+ value?: string | undefined;
3283
+ reason?: string | undefined;
3284
+ }) | ({
3285
+ type: "named_rule";
3286
+ rule_id: number;
3287
+ } & {
3288
+ reason?: string | undefined;
3289
+ }))[];
3290
+ recommend_rules: (({
3291
+ type: "always";
3292
+ } & {
3293
+ operator?: null | undefined;
3294
+ field?: null | undefined;
3295
+ value?: null | undefined;
3296
+ reason?: null | undefined;
3297
+ }) | ({
3298
+ type: "url" | "context" | "element";
3299
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3300
+ } & {
3301
+ field?: string | undefined;
3302
+ value?: string | undefined;
3303
+ reason?: string | undefined;
3304
+ }))[] | (({
3305
+ type: "always";
3306
+ } & {
3307
+ operator?: null | undefined;
3308
+ field?: null | undefined;
3309
+ value?: null | undefined;
3310
+ reason?: null | undefined;
3311
+ }) | ({
3312
+ type: "url" | "context" | "element";
3313
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3314
+ } & {
3315
+ field?: string | undefined;
3316
+ value?: string | undefined;
3317
+ reason?: string | undefined;
3318
+ }) | ({
3319
+ type: "named_rule";
3320
+ rule_id: number;
3321
+ } & {
3322
+ reason?: string | undefined;
3323
+ }))[];
3324
+ confirm: string;
3325
+ shortcut: string[];
3326
+ explanation: string;
3327
+ is_live: boolean;
3328
+ category: number | null;
3329
+ sort_key: number | null;
3330
+ icon: string | null;
3331
+ celebrate: boolean | {
3332
+ angle?: number | undefined;
3333
+ spread?: number | undefined;
3334
+ width?: string | undefined;
3335
+ height?: string | undefined;
3336
+ duration?: number | undefined;
3337
+ dragFriction?: number | undefined;
3338
+ stagger?: number | undefined;
3339
+ startVelocity?: number | undefined;
3340
+ elementCount?: number | undefined;
3341
+ decay?: number | undefined;
3342
+ colors?: string[] | undefined;
3343
+ random?: any;
3344
+ } | null;
3345
+ recommend_sort_key: number | null;
3346
+ shortcut_mac: string[];
3347
+ shortcut_win: string[];
3348
+ hotkey_mac: string;
3349
+ hotkey_win: string;
3350
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
3351
+ id: number;
3352
+ organization: string | number;
3353
+ text: string;
3354
+ template: ({
3355
+ type: "admin";
3356
+ value: string;
3357
+ } & {} & {
3358
+ commandType?: "object" | "independent" | "help" | undefined;
3359
+ object?: string | undefined;
3360
+ hoverTooltip?: boolean | undefined;
3361
+ operation?: "self" | "router" | "blank" | undefined;
3362
+ }) | ({
3363
+ type: "callback";
3364
+ value: string;
3365
+ } & {} & {
3366
+ commandType?: "object" | "independent" | "help" | undefined;
3367
+ object?: string | undefined;
3368
+ hoverTooltip?: boolean | undefined;
3369
+ operation?: "self" | "router" | "blank" | undefined;
3370
+ }) | ({
3371
+ type: "link";
3372
+ value: string;
3373
+ } & {} & {
3374
+ commandType?: "object" | "independent" | "help" | undefined;
3375
+ object?: string | undefined;
3376
+ hoverTooltip?: boolean | undefined;
3377
+ operation?: "self" | "router" | "blank" | undefined;
3378
+ }) | ({
3379
+ type: "click" | "clickBySelector" | "clickByXpath";
3380
+ value: string[];
3381
+ } & {} & {
3382
+ commandType?: "object" | "independent" | "help" | undefined;
3383
+ object?: string | undefined;
3384
+ hoverTooltip?: boolean | undefined;
3385
+ operation?: "self" | "router" | "blank" | undefined;
3386
+ }) | ({
3387
+ type: "builtin";
3388
+ value: string;
3389
+ } & {} & {
3390
+ commandType?: "object" | "independent" | "help" | undefined;
3391
+ object?: string | undefined;
3392
+ hoverTooltip?: boolean | undefined;
3393
+ operation?: "self" | "router" | "blank" | undefined;
3394
+ }) | ({
3395
+ type: "webhook";
3396
+ value: string;
3397
+ } & {} & {
3398
+ commandType?: "object" | "independent" | "help" | undefined;
3399
+ object?: string | undefined;
3400
+ hoverTooltip?: boolean | undefined;
3401
+ operation?: "self" | "router" | "blank" | undefined;
3402
+ }) | ({
3403
+ type: "script";
3404
+ value: string;
3405
+ } & {} & {
3406
+ commandType?: "object" | "independent" | "help" | undefined;
3407
+ object?: string | undefined;
3408
+ hoverTooltip?: boolean | undefined;
3409
+ operation?: "self" | "router" | "blank" | undefined;
3410
+ });
3411
+ } & {
3412
+ disabledReason?: string | undefined;
3413
+ source?: string | undefined;
3414
+ name?: string | undefined;
3415
+ last_available?: string | null | undefined;
3416
+ modified?: string | undefined;
3417
+ } & {
3418
+ arguments: {
3419
+ [x: string]: ({
3420
+ type: "context";
3421
+ value: string;
3422
+ order_key: number;
3423
+ } & {
3424
+ label?: string | undefined;
3425
+ chosen?: string | number | undefined;
3426
+ selected?: any[] | undefined;
3427
+ input_type?: string | undefined;
3428
+ preselected_key?: string | undefined;
3429
+ label_field?: string | undefined;
3430
+ availability_condition?: {
3431
+ field: string;
3432
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3433
+ value: string | undefined;
3434
+ }[] | undefined;
3435
+ loaded?: any[] | undefined;
3436
+ allow_create?: boolean | undefined;
3437
+ allow_create_label?: string | undefined;
3438
+ show_in_record_action_list?: boolean | undefined;
3439
+ show_in_default_list?: boolean | undefined;
3440
+ }) | ({
3441
+ type: "set";
3442
+ value: string[] | number[] | {
3443
+ [key: string]: unknown;
3444
+ }[];
3445
+ order_key: number;
3446
+ } & {
3447
+ label?: string | undefined;
3448
+ chosen?: string | number | undefined;
3449
+ selected?: any[] | undefined;
3450
+ input_type?: string | undefined;
3451
+ preselected_key?: string | undefined;
3452
+ label_field?: string | undefined;
3453
+ availability_condition?: {
3454
+ field: string;
3455
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3456
+ value: string | undefined;
3457
+ }[] | undefined;
3458
+ loaded?: any[] | undefined;
3459
+ allow_create?: boolean | undefined;
3460
+ allow_create_label?: string | undefined;
3461
+ }) | ({
3462
+ type: "provided";
3463
+ value: "time" | "text";
3464
+ order_key: number;
3465
+ } & {
3466
+ label?: string | undefined;
3467
+ chosen?: string | number | undefined;
3468
+ selected?: any[] | undefined;
3469
+ input_type?: string | undefined;
3470
+ preselected_key?: string | undefined;
3471
+ label_field?: string | undefined;
3472
+ availability_condition?: {
3473
+ field: string;
3474
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3475
+ value: string | undefined;
3476
+ }[] | undefined;
3477
+ loaded?: any[] | undefined;
3478
+ dateTimeArgumentTypeId?: number | undefined;
3479
+ allow_create?: boolean | undefined;
3480
+ allow_create_label?: string | undefined;
3481
+ }) | ({
3482
+ type: "dependent";
3483
+ value: string;
3484
+ order_key: number;
3485
+ } & {
3486
+ label?: string | undefined;
3487
+ chosen?: string | number | undefined;
3488
+ selected?: any[] | undefined;
3489
+ input_type?: string | undefined;
3490
+ preselected_key?: string | undefined;
3491
+ label_field?: string | undefined;
3492
+ availability_condition?: {
3493
+ field: string;
3494
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3495
+ value: string | undefined;
3496
+ }[] | undefined;
3497
+ loaded?: any[] | undefined;
3498
+ allow_create?: boolean | undefined;
3499
+ allow_create_label?: string | undefined;
3500
+ }) | ({
3501
+ type: "function";
3502
+ value: string;
3503
+ order_key: number;
3504
+ } & {
3505
+ label?: string | undefined;
3506
+ chosen?: string | number | undefined;
3507
+ selected?: any[] | undefined;
3508
+ input_type?: string | undefined;
3509
+ preselected_key?: string | undefined;
3510
+ label_field?: string | undefined;
3511
+ availability_condition?: {
3512
+ field: string;
3513
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
3514
+ value: string | undefined;
3515
+ }[] | undefined;
3516
+ loaded?: any[] | undefined;
3517
+ allow_create?: boolean | undefined;
3518
+ allow_create_label?: string | undefined;
3519
+ });
3520
+ };
3521
+ tags: string[];
3522
+ availability_rules: ({
3523
+ type: "url" | "context" | "element";
3524
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3525
+ } & {
3526
+ field?: string | undefined;
3527
+ value?: string | undefined;
3528
+ reason?: string | undefined;
3529
+ })[] | (({
3530
+ type: "url" | "context" | "element";
3531
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3532
+ } & {
3533
+ field?: string | undefined;
3534
+ value?: string | undefined;
3535
+ reason?: string | undefined;
3536
+ }) | ({
3537
+ type: "named_rule";
3538
+ rule_id: number;
3539
+ } & {
3540
+ reason?: string | undefined;
3541
+ }))[];
3542
+ recommend_rules: (({
3543
+ type: "always";
3544
+ } & {
3545
+ operator?: null | undefined;
3546
+ field?: null | undefined;
3547
+ value?: null | undefined;
3548
+ reason?: null | undefined;
3549
+ }) | ({
3550
+ type: "url" | "context" | "element";
3551
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3552
+ } & {
3553
+ field?: string | undefined;
3554
+ value?: string | undefined;
3555
+ reason?: string | undefined;
3556
+ }))[] | (({
3557
+ type: "always";
3558
+ } & {
3559
+ operator?: null | undefined;
3560
+ field?: null | undefined;
3561
+ value?: null | undefined;
3562
+ reason?: null | undefined;
3563
+ }) | ({
3564
+ type: "url" | "context" | "element";
3565
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
3566
+ } & {
3567
+ field?: string | undefined;
3568
+ value?: string | undefined;
3569
+ reason?: string | undefined;
3570
+ }) | ({
3571
+ type: "named_rule";
3572
+ rule_id: number;
3573
+ } & {
3574
+ reason?: string | undefined;
3575
+ }))[];
3576
+ confirm: string;
3577
+ shortcut: string[];
3578
+ explanation: string;
3579
+ is_live: boolean;
3580
+ category: number | null;
3581
+ sort_key: number | null;
3582
+ icon: string | null;
3583
+ celebrate: boolean | {
3584
+ angle?: number | undefined;
3585
+ spread?: number | undefined;
3586
+ width?: string | undefined;
3587
+ height?: string | undefined;
3588
+ duration?: number | undefined;
3589
+ dragFriction?: number | undefined;
3590
+ stagger?: number | undefined;
3591
+ startVelocity?: number | undefined;
3592
+ elementCount?: number | undefined;
3593
+ decay?: number | undefined;
3594
+ colors?: string[] | undefined;
3595
+ random?: any;
3596
+ } | null;
3597
+ recommend_sort_key: number | null;
3598
+ shortcut_mac: string[];
3599
+ shortcut_win: string[];
3600
+ hotkey_mac: string;
3601
+ hotkey_win: string;
3602
+ }>;
3603
+ static deleteWithoutThrottle: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
3604
+ static commandUID: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => string;
3605
+ static isProgrammatic: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => boolean;
3606
+ static isRecordAction: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>, recordKey?: string | undefined) => boolean;
3607
+ static showInDefaultList: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => boolean;
3608
+ }