commandbar 1.6.9 → 1.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,12 @@
1
1
  /*******************************************************************************/
2
2
  import * as t from 'io-ts';
3
+ import { GenericBatchRequest } from './generics';
3
4
  export { CommandFromClientV } from './CommandFromClientV';
5
+ declare const HelpSyncCommandAdditionalV: t.PartialC<{
6
+ third_party_source: t.UnionC<[t.StringC, t.NullC]>;
7
+ third_party_id: t.UnionC<[t.StringC, t.NullC]>;
8
+ }>;
9
+ export declare const helpSyncDefaults: t.TypeOf<typeof HelpSyncCommandAdditionalV>;
4
10
  export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
5
11
  id: t.NumberC;
6
12
  organization: t.UnionC<[t.NumberC, t.StringC]>;
@@ -93,13 +99,6 @@ export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
93
99
  name: t.StringC;
94
100
  last_available: t.UnionC<[t.StringC, t.NullC]>;
95
101
  modified: t.StringC;
96
- detail: t.UnionC<[t.StringC, t.TypeC<{
97
- type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"reader">, t.LiteralC<"react">]>;
98
- value: t.StringC;
99
- }>, t.ArrayC<t.TypeC<{
100
- type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"reader">, t.LiteralC<"react">]>;
101
- value: t.StringC;
102
- }>>]>;
103
102
  }>]>, t.TypeC<{
104
103
  arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
105
104
  type: t.LiteralC<"context">;
@@ -263,6 +262,7 @@ export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
263
262
  confirm: t.StringC;
264
263
  shortcut: t.ArrayC<t.StringC>;
265
264
  explanation: t.StringC;
265
+ heading: t.StringC;
266
266
  is_live: t.BooleanC;
267
267
  category: t.UnionC<[t.NumberC, t.NullC]>;
268
268
  sort_key: t.UnionC<[t.NumberC, t.NullC]>;
@@ -286,6 +286,13 @@ export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
286
286
  shortcut_win: t.ArrayC<t.StringC>;
287
287
  hotkey_mac: t.StringC;
288
288
  hotkey_win: t.StringC;
289
+ detail: t.UnionC<[t.NullC, t.StringC, t.TypeC<{
290
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
291
+ value: t.StringC;
292
+ }>, t.ArrayC<t.UnionC<[t.StringC, t.TypeC<{
293
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
294
+ value: t.StringC;
295
+ }>]>>]>;
289
296
  }>]>;
290
297
  export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
291
298
  id: t.NumberC;
@@ -379,13 +386,6 @@ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
379
386
  name: t.StringC;
380
387
  last_available: t.UnionC<[t.StringC, t.NullC]>;
381
388
  modified: t.StringC;
382
- detail: t.UnionC<[t.StringC, t.TypeC<{
383
- type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"reader">, t.LiteralC<"react">]>;
384
- value: t.StringC;
385
- }>, t.ArrayC<t.TypeC<{
386
- type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"reader">, t.LiteralC<"react">]>;
387
- value: t.StringC;
388
- }>>]>;
389
389
  }>]>, t.TypeC<{
390
390
  arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
391
391
  type: t.LiteralC<"context">;
@@ -616,6 +616,7 @@ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
616
616
  confirm: t.StringC;
617
617
  shortcut: t.ArrayC<t.StringC>;
618
618
  explanation: t.StringC;
619
+ heading: t.StringC;
619
620
  is_live: t.BooleanC;
620
621
  category: t.UnionC<[t.NumberC, t.NullC]>;
621
622
  sort_key: t.UnionC<[t.NumberC, t.NullC]>;
@@ -639,6 +640,16 @@ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
639
640
  shortcut_win: t.ArrayC<t.StringC>;
640
641
  hotkey_mac: t.StringC;
641
642
  hotkey_win: t.StringC;
643
+ detail: t.UnionC<[t.NullC, t.StringC, t.TypeC<{
644
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
645
+ value: t.StringC;
646
+ }>, t.ArrayC<t.UnionC<[t.StringC, t.TypeC<{
647
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
648
+ value: t.StringC;
649
+ }>]>>]>;
650
+ }>, t.PartialC<{
651
+ third_party_source: t.UnionC<[t.StringC, t.NullC]>;
652
+ third_party_id: t.UnionC<[t.StringC, t.NullC]>;
642
653
  }>]>;
643
654
  export declare const BatchOperationV: t.UnionC<[t.TypeC<{
644
655
  op: t.LiteralC<"update">;
@@ -651,10 +662,6 @@ export declare const BatchOperationV: t.UnionC<[t.TypeC<{
651
662
  op: t.LiteralC<"delete">;
652
663
  id: t.NumberC;
653
664
  }>]>;
654
- export declare const BatchEditorCommandRequestV: t.TypeC<{
655
- batch: t.ArrayC<t.UnknownC>;
656
- note: t.StringC;
657
- }>;
658
665
  export declare const BatchEditorCommandResponseV: t.TypeC<{
659
666
  batch: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
660
667
  id: t.NumberC;
@@ -748,13 +755,6 @@ export declare const BatchEditorCommandResponseV: t.TypeC<{
748
755
  name: t.StringC;
749
756
  last_available: t.UnionC<[t.StringC, t.NullC]>;
750
757
  modified: t.StringC;
751
- detail: t.UnionC<[t.StringC, t.TypeC<{
752
- type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"reader">, t.LiteralC<"react">]>;
753
- value: t.StringC;
754
- }>, t.ArrayC<t.TypeC<{
755
- type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"reader">, t.LiteralC<"react">]>;
756
- value: t.StringC;
757
- }>>]>;
758
758
  }>]>, t.TypeC<{
759
759
  arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
760
760
  type: t.LiteralC<"context">;
@@ -985,6 +985,7 @@ export declare const BatchEditorCommandResponseV: t.TypeC<{
985
985
  confirm: t.StringC;
986
986
  shortcut: t.ArrayC<t.StringC>;
987
987
  explanation: t.StringC;
988
+ heading: t.StringC;
988
989
  is_live: t.BooleanC;
989
990
  category: t.UnionC<[t.NumberC, t.NullC]>;
990
991
  sort_key: t.UnionC<[t.NumberC, t.NullC]>;
@@ -1008,6 +1009,16 @@ export declare const BatchEditorCommandResponseV: t.TypeC<{
1008
1009
  shortcut_win: t.ArrayC<t.StringC>;
1009
1010
  hotkey_mac: t.StringC;
1010
1011
  hotkey_win: t.StringC;
1012
+ detail: t.UnionC<[t.NullC, t.StringC, t.TypeC<{
1013
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
1014
+ value: t.StringC;
1015
+ }>, t.ArrayC<t.UnionC<[t.StringC, t.TypeC<{
1016
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
1017
+ value: t.StringC;
1018
+ }>]>>]>;
1019
+ }>, t.PartialC<{
1020
+ third_party_source: t.UnionC<[t.StringC, t.NullC]>;
1021
+ third_party_id: t.UnionC<[t.StringC, t.NullC]>;
1011
1022
  }>]>>;
1012
1023
  }>;
1013
1024
  export declare class Command {
@@ -1040,7 +1051,7 @@ export declare class Command {
1040
1051
  hoverTooltip?: boolean | undefined;
1041
1052
  operation?: "self" | "router" | "blank" | undefined;
1042
1053
  }) | ({
1043
- type: "click" | "clickBySelector" | "clickByXpath";
1054
+ type: "click" | "clickByXpath" | "clickBySelector";
1044
1055
  value: string[];
1045
1056
  } & {} & {
1046
1057
  commandType?: "object" | "independent" | "help" | undefined;
@@ -1107,13 +1118,6 @@ export declare class Command {
1107
1118
  name?: string | undefined;
1108
1119
  last_available?: string | null | undefined;
1109
1120
  modified?: string | undefined;
1110
- detail?: string | {
1111
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
1112
- value: string;
1113
- } | {
1114
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
1115
- value: string;
1116
- }[] | undefined;
1117
1121
  } & {
1118
1122
  arguments: {
1119
1123
  [x: string]: ({
@@ -1276,6 +1280,7 @@ export declare class Command {
1276
1280
  confirm: string;
1277
1281
  shortcut: string[];
1278
1282
  explanation: string;
1283
+ heading: string;
1279
1284
  is_live: boolean;
1280
1285
  category: number | null;
1281
1286
  sort_key: number | null;
@@ -1299,6 +1304,16 @@ export declare class Command {
1299
1304
  shortcut_win: string[];
1300
1305
  hotkey_mac: string;
1301
1306
  hotkey_win: string;
1307
+ detail: string | {
1308
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
1309
+ value: string;
1310
+ } | (string | {
1311
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
1312
+ value: string;
1313
+ })[] | null;
1314
+ } & {
1315
+ third_party_source?: string | null | undefined;
1316
+ third_party_id?: string | null | undefined;
1302
1317
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
1303
1318
  id: number;
1304
1319
  organization: string | number;
@@ -1328,7 +1343,7 @@ export declare class Command {
1328
1343
  hoverTooltip?: boolean | undefined;
1329
1344
  operation?: "self" | "router" | "blank" | undefined;
1330
1345
  }) | ({
1331
- type: "click" | "clickBySelector" | "clickByXpath";
1346
+ type: "click" | "clickByXpath" | "clickBySelector";
1332
1347
  value: string[];
1333
1348
  } & {} & {
1334
1349
  commandType?: "object" | "independent" | "help" | undefined;
@@ -1395,13 +1410,6 @@ export declare class Command {
1395
1410
  name?: string | undefined;
1396
1411
  last_available?: string | null | undefined;
1397
1412
  modified?: string | undefined;
1398
- detail?: string | {
1399
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
1400
- value: string;
1401
- } | {
1402
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
1403
- value: string;
1404
- }[] | undefined;
1405
1413
  } & {
1406
1414
  arguments: {
1407
1415
  [x: string]: ({
@@ -1564,6 +1572,7 @@ export declare class Command {
1564
1572
  confirm: string;
1565
1573
  shortcut: string[];
1566
1574
  explanation: string;
1575
+ heading: string;
1567
1576
  is_live: boolean;
1568
1577
  category: number | null;
1569
1578
  sort_key: number | null;
@@ -1587,6 +1596,16 @@ export declare class Command {
1587
1596
  shortcut_win: string[];
1588
1597
  hotkey_mac: string;
1589
1598
  hotkey_win: string;
1599
+ detail: string | {
1600
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
1601
+ value: string;
1602
+ } | (string | {
1603
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
1604
+ value: string;
1605
+ })[] | null;
1606
+ } & {
1607
+ third_party_source?: string | null | undefined;
1608
+ third_party_id?: string | null | undefined;
1590
1609
  }>;
1591
1610
  static update: (object: {
1592
1611
  id: number;
@@ -1617,7 +1636,7 @@ export declare class Command {
1617
1636
  hoverTooltip?: boolean | undefined;
1618
1637
  operation?: "self" | "router" | "blank" | undefined;
1619
1638
  }) | ({
1620
- type: "click" | "clickBySelector" | "clickByXpath";
1639
+ type: "click" | "clickByXpath" | "clickBySelector";
1621
1640
  value: string[];
1622
1641
  } & {} & {
1623
1642
  commandType?: "object" | "independent" | "help" | undefined;
@@ -1684,13 +1703,6 @@ export declare class Command {
1684
1703
  name?: string | undefined;
1685
1704
  last_available?: string | null | undefined;
1686
1705
  modified?: string | undefined;
1687
- detail?: string | {
1688
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
1689
- value: string;
1690
- } | {
1691
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
1692
- value: string;
1693
- }[] | undefined;
1694
1706
  } & {
1695
1707
  arguments: {
1696
1708
  [x: string]: ({
@@ -1853,6 +1865,7 @@ export declare class Command {
1853
1865
  confirm: string;
1854
1866
  shortcut: string[];
1855
1867
  explanation: string;
1868
+ heading: string;
1856
1869
  is_live: boolean;
1857
1870
  category: number | null;
1858
1871
  sort_key: number | null;
@@ -1876,6 +1889,16 @@ export declare class Command {
1876
1889
  shortcut_win: string[];
1877
1890
  hotkey_mac: string;
1878
1891
  hotkey_win: string;
1892
+ detail: string | {
1893
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
1894
+ value: string;
1895
+ } | (string | {
1896
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
1897
+ value: string;
1898
+ })[] | null;
1899
+ } & {
1900
+ third_party_source?: string | null | undefined;
1901
+ third_party_id?: string | null | undefined;
1879
1902
  }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
1880
1903
  id: number;
1881
1904
  organization: string | number;
@@ -1905,7 +1928,7 @@ export declare class Command {
1905
1928
  hoverTooltip?: boolean | undefined;
1906
1929
  operation?: "self" | "router" | "blank" | undefined;
1907
1930
  }) | ({
1908
- type: "click" | "clickBySelector" | "clickByXpath";
1931
+ type: "click" | "clickByXpath" | "clickBySelector";
1909
1932
  value: string[];
1910
1933
  } & {} & {
1911
1934
  commandType?: "object" | "independent" | "help" | undefined;
@@ -1972,13 +1995,6 @@ export declare class Command {
1972
1995
  name?: string | undefined;
1973
1996
  last_available?: string | null | undefined;
1974
1997
  modified?: string | undefined;
1975
- detail?: string | {
1976
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
1977
- value: string;
1978
- } | {
1979
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
1980
- value: string;
1981
- }[] | undefined;
1982
1998
  } & {
1983
1999
  arguments: {
1984
2000
  [x: string]: ({
@@ -2141,6 +2157,7 @@ export declare class Command {
2141
2157
  confirm: string;
2142
2158
  shortcut: string[];
2143
2159
  explanation: string;
2160
+ heading: string;
2144
2161
  is_live: boolean;
2145
2162
  category: number | null;
2146
2163
  sort_key: number | null;
@@ -2164,9 +2181,19 @@ export declare class Command {
2164
2181
  shortcut_win: string[];
2165
2182
  hotkey_mac: string;
2166
2183
  hotkey_win: string;
2184
+ detail: string | {
2185
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
2186
+ value: string;
2187
+ } | (string | {
2188
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
2189
+ value: string;
2190
+ })[] | null;
2191
+ } & {
2192
+ third_party_source?: string | null | undefined;
2193
+ third_party_id?: string | null | undefined;
2167
2194
  }>;
2168
2195
  static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
2169
- static batch: (request: t.TypeOf<typeof BatchEditorCommandRequestV>) => Promise<{
2196
+ static batch: (request: t.TypeOf<typeof GenericBatchRequest>) => Promise<{
2170
2197
  batch: ({
2171
2198
  id: number;
2172
2199
  organization: string | number;
@@ -2196,7 +2223,7 @@ export declare class Command {
2196
2223
  hoverTooltip?: boolean | undefined;
2197
2224
  operation?: "self" | "router" | "blank" | undefined;
2198
2225
  }) | ({
2199
- type: "click" | "clickBySelector" | "clickByXpath";
2226
+ type: "click" | "clickByXpath" | "clickBySelector";
2200
2227
  value: string[];
2201
2228
  } & {} & {
2202
2229
  commandType?: "object" | "independent" | "help" | undefined;
@@ -2263,13 +2290,6 @@ export declare class Command {
2263
2290
  name?: string | undefined;
2264
2291
  last_available?: string | null | undefined;
2265
2292
  modified?: string | undefined;
2266
- detail?: string | {
2267
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
2268
- value: string;
2269
- } | {
2270
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
2271
- value: string;
2272
- }[] | undefined;
2273
2293
  } & {
2274
2294
  arguments: {
2275
2295
  [x: string]: ({
@@ -2432,6 +2452,7 @@ export declare class Command {
2432
2452
  confirm: string;
2433
2453
  shortcut: string[];
2434
2454
  explanation: string;
2455
+ heading: string;
2435
2456
  is_live: boolean;
2436
2457
  category: number | null;
2437
2458
  sort_key: number | null;
@@ -2455,6 +2476,16 @@ export declare class Command {
2455
2476
  shortcut_win: string[];
2456
2477
  hotkey_mac: string;
2457
2478
  hotkey_win: string;
2479
+ detail: string | {
2480
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
2481
+ value: string;
2482
+ } | (string | {
2483
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
2484
+ value: string;
2485
+ })[] | null;
2486
+ } & {
2487
+ third_party_source?: string | null | undefined;
2488
+ third_party_id?: string | null | undefined;
2458
2489
  })[];
2459
2490
  }>;
2460
2491
  static validateFromClient: (data: any) => Promise<{
@@ -2476,7 +2507,7 @@ export declare class Command {
2476
2507
  hoverTooltip?: boolean | undefined;
2477
2508
  operation?: "self" | "router" | "blank" | undefined;
2478
2509
  }) | ({
2479
- type: "click" | "clickBySelector" | "clickByXpath";
2510
+ type: "click" | "clickByXpath" | "clickBySelector";
2480
2511
  value: string[];
2481
2512
  } & {} & {
2482
2513
  commandType?: "object" | "independent" | "help" | undefined;
@@ -2529,6 +2560,7 @@ export declare class Command {
2529
2560
  hotkey_win?: string | undefined;
2530
2561
  tags?: string[] | undefined;
2531
2562
  explanation?: string | undefined;
2563
+ heading?: string | undefined;
2532
2564
  sort_key?: number | null | undefined;
2533
2565
  arguments?: {
2534
2566
  [x: string]: ({
@@ -2673,10 +2705,10 @@ export declare class Command {
2673
2705
  reason?: string | undefined;
2674
2706
  }))[] | undefined;
2675
2707
  detail?: string | {
2676
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
2708
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
2677
2709
  value: string;
2678
2710
  } | {
2679
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
2711
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
2680
2712
  value: string;
2681
2713
  }[] | undefined;
2682
2714
  }>;
@@ -2709,7 +2741,7 @@ export declare class Command {
2709
2741
  hoverTooltip?: boolean | undefined;
2710
2742
  operation?: "self" | "router" | "blank" | undefined;
2711
2743
  }) | ({
2712
- type: "click" | "clickBySelector" | "clickByXpath";
2744
+ type: "click" | "clickByXpath" | "clickBySelector";
2713
2745
  value: string[];
2714
2746
  } & {} & {
2715
2747
  commandType?: "object" | "independent" | "help" | undefined;
@@ -2776,13 +2808,6 @@ export declare class Command {
2776
2808
  name?: string | undefined;
2777
2809
  last_available?: string | null | undefined;
2778
2810
  modified?: string | undefined;
2779
- detail?: string | {
2780
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
2781
- value: string;
2782
- } | {
2783
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
2784
- value: string;
2785
- }[] | undefined;
2786
2811
  } & {
2787
2812
  arguments: {
2788
2813
  [x: string]: ({
@@ -2914,6 +2939,7 @@ export declare class Command {
2914
2939
  confirm: string;
2915
2940
  shortcut: string[];
2916
2941
  explanation: string;
2942
+ heading: string;
2917
2943
  is_live: boolean;
2918
2944
  category: number | null;
2919
2945
  sort_key: number | null;
@@ -2937,8 +2963,15 @@ export declare class Command {
2937
2963
  shortcut_win: string[];
2938
2964
  hotkey_mac: string;
2939
2965
  hotkey_win: string;
2966
+ detail: string | {
2967
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
2968
+ value: string;
2969
+ } | (string | {
2970
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
2971
+ value: string;
2972
+ })[] | null;
2940
2973
  };
2941
- static createWithoutThrottle: (object: {
2974
+ static decodeEditorCommand: (data: any) => {
2942
2975
  id: number;
2943
2976
  organization: string | number;
2944
2977
  text: string;
@@ -2967,7 +3000,7 @@ export declare class Command {
2967
3000
  hoverTooltip?: boolean | undefined;
2968
3001
  operation?: "self" | "router" | "blank" | undefined;
2969
3002
  }) | ({
2970
- type: "click" | "clickBySelector" | "clickByXpath";
3003
+ type: "click" | "clickByXpath" | "clickBySelector";
2971
3004
  value: string[];
2972
3005
  } & {} & {
2973
3006
  commandType?: "object" | "independent" | "help" | undefined;
@@ -3034,13 +3067,6 @@ export declare class Command {
3034
3067
  name?: string | undefined;
3035
3068
  last_available?: string | null | undefined;
3036
3069
  modified?: string | undefined;
3037
- detail?: string | {
3038
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
3039
- value: string;
3040
- } | {
3041
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
3042
- value: string;
3043
- }[] | undefined;
3044
3070
  } & {
3045
3071
  arguments: {
3046
3072
  [x: string]: ({
@@ -3203,6 +3229,7 @@ export declare class Command {
3203
3229
  confirm: string;
3204
3230
  shortcut: string[];
3205
3231
  explanation: string;
3232
+ heading: string;
3206
3233
  is_live: boolean;
3207
3234
  category: number | null;
3208
3235
  sort_key: number | null;
@@ -3226,7 +3253,18 @@ export declare class Command {
3226
3253
  shortcut_win: string[];
3227
3254
  hotkey_mac: string;
3228
3255
  hotkey_win: string;
3229
- }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
3256
+ detail: string | {
3257
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
3258
+ value: string;
3259
+ } | (string | {
3260
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
3261
+ value: string;
3262
+ })[] | null;
3263
+ } & {
3264
+ third_party_source?: string | null | undefined;
3265
+ third_party_id?: string | null | undefined;
3266
+ };
3267
+ static createWithoutThrottle: (object: {
3230
3268
  id: number;
3231
3269
  organization: string | number;
3232
3270
  text: string;
@@ -3255,7 +3293,7 @@ export declare class Command {
3255
3293
  hoverTooltip?: boolean | undefined;
3256
3294
  operation?: "self" | "router" | "blank" | undefined;
3257
3295
  }) | ({
3258
- type: "click" | "clickBySelector" | "clickByXpath";
3296
+ type: "click" | "clickByXpath" | "clickBySelector";
3259
3297
  value: string[];
3260
3298
  } & {} & {
3261
3299
  commandType?: "object" | "independent" | "help" | undefined;
@@ -3322,13 +3360,6 @@ export declare class Command {
3322
3360
  name?: string | undefined;
3323
3361
  last_available?: string | null | undefined;
3324
3362
  modified?: string | undefined;
3325
- detail?: string | {
3326
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
3327
- value: string;
3328
- } | {
3329
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
3330
- value: string;
3331
- }[] | undefined;
3332
3363
  } & {
3333
3364
  arguments: {
3334
3365
  [x: string]: ({
@@ -3491,6 +3522,7 @@ export declare class Command {
3491
3522
  confirm: string;
3492
3523
  shortcut: string[];
3493
3524
  explanation: string;
3525
+ heading: string;
3494
3526
  is_live: boolean;
3495
3527
  category: number | null;
3496
3528
  sort_key: number | null;
@@ -3514,8 +3546,17 @@ export declare class Command {
3514
3546
  shortcut_win: string[];
3515
3547
  hotkey_mac: string;
3516
3548
  hotkey_win: string;
3517
- }>;
3518
- static updateWithoutThrottle: (object: {
3549
+ detail: string | {
3550
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
3551
+ value: string;
3552
+ } | (string | {
3553
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
3554
+ value: string;
3555
+ })[] | null;
3556
+ } & {
3557
+ third_party_source?: string | null | undefined;
3558
+ third_party_id?: string | null | undefined;
3559
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
3519
3560
  id: number;
3520
3561
  organization: string | number;
3521
3562
  text: string;
@@ -3544,7 +3585,7 @@ export declare class Command {
3544
3585
  hoverTooltip?: boolean | undefined;
3545
3586
  operation?: "self" | "router" | "blank" | undefined;
3546
3587
  }) | ({
3547
- type: "click" | "clickBySelector" | "clickByXpath";
3588
+ type: "click" | "clickByXpath" | "clickBySelector";
3548
3589
  value: string[];
3549
3590
  } & {} & {
3550
3591
  commandType?: "object" | "independent" | "help" | undefined;
@@ -3611,13 +3652,6 @@ export declare class Command {
3611
3652
  name?: string | undefined;
3612
3653
  last_available?: string | null | undefined;
3613
3654
  modified?: string | undefined;
3614
- detail?: string | {
3615
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
3616
- value: string;
3617
- } | {
3618
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
3619
- value: string;
3620
- }[] | undefined;
3621
3655
  } & {
3622
3656
  arguments: {
3623
3657
  [x: string]: ({
@@ -3780,6 +3814,7 @@ export declare class Command {
3780
3814
  confirm: string;
3781
3815
  shortcut: string[];
3782
3816
  explanation: string;
3817
+ heading: string;
3783
3818
  is_live: boolean;
3784
3819
  category: number | null;
3785
3820
  sort_key: number | null;
@@ -3803,7 +3838,18 @@ export declare class Command {
3803
3838
  shortcut_win: string[];
3804
3839
  hotkey_mac: string;
3805
3840
  hotkey_win: string;
3806
- }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
3841
+ detail: string | {
3842
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
3843
+ value: string;
3844
+ } | (string | {
3845
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
3846
+ value: string;
3847
+ })[] | null;
3848
+ } & {
3849
+ third_party_source?: string | null | undefined;
3850
+ third_party_id?: string | null | undefined;
3851
+ }>;
3852
+ static updateWithoutThrottle: (object: {
3807
3853
  id: number;
3808
3854
  organization: string | number;
3809
3855
  text: string;
@@ -3832,7 +3878,7 @@ export declare class Command {
3832
3878
  hoverTooltip?: boolean | undefined;
3833
3879
  operation?: "self" | "router" | "blank" | undefined;
3834
3880
  }) | ({
3835
- type: "click" | "clickBySelector" | "clickByXpath";
3881
+ type: "click" | "clickByXpath" | "clickBySelector";
3836
3882
  value: string[];
3837
3883
  } & {} & {
3838
3884
  commandType?: "object" | "independent" | "help" | undefined;
@@ -3899,13 +3945,6 @@ export declare class Command {
3899
3945
  name?: string | undefined;
3900
3946
  last_available?: string | null | undefined;
3901
3947
  modified?: string | undefined;
3902
- detail?: string | {
3903
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
3904
- value: string;
3905
- } | {
3906
- type: "html" | "plaintext" | "markdown" | "reader" | "react";
3907
- value: string;
3908
- }[] | undefined;
3909
3948
  } & {
3910
3949
  arguments: {
3911
3950
  [x: string]: ({
@@ -4068,6 +4107,7 @@ export declare class Command {
4068
4107
  confirm: string;
4069
4108
  shortcut: string[];
4070
4109
  explanation: string;
4110
+ heading: string;
4071
4111
  is_live: boolean;
4072
4112
  category: number | null;
4073
4113
  sort_key: number | null;
@@ -4091,10 +4131,1389 @@ export declare class Command {
4091
4131
  shortcut_win: string[];
4092
4132
  hotkey_mac: string;
4093
4133
  hotkey_win: string;
4094
- }>;
4095
- static deleteWithoutThrottle: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
4096
- static commandUID: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => string;
4097
- static isProgrammatic: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => boolean;
4098
- static isRecordAction: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>, recordKey?: string | undefined) => boolean;
4099
- static showInDefaultList: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => boolean;
4134
+ detail: string | {
4135
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
4136
+ value: string;
4137
+ } | (string | {
4138
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
4139
+ value: string;
4140
+ })[] | null;
4141
+ } & {
4142
+ third_party_source?: string | null | undefined;
4143
+ third_party_id?: string | null | undefined;
4144
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
4145
+ id: number;
4146
+ organization: string | number;
4147
+ text: string;
4148
+ template: ({
4149
+ type: "admin";
4150
+ value: string;
4151
+ } & {} & {
4152
+ commandType?: "object" | "independent" | "help" | undefined;
4153
+ object?: string | undefined;
4154
+ hoverTooltip?: boolean | undefined;
4155
+ operation?: "self" | "router" | "blank" | undefined;
4156
+ }) | ({
4157
+ type: "callback";
4158
+ value: string;
4159
+ } & {} & {
4160
+ commandType?: "object" | "independent" | "help" | undefined;
4161
+ object?: string | undefined;
4162
+ hoverTooltip?: boolean | undefined;
4163
+ operation?: "self" | "router" | "blank" | undefined;
4164
+ }) | ({
4165
+ type: "link";
4166
+ value: string;
4167
+ } & {} & {
4168
+ commandType?: "object" | "independent" | "help" | undefined;
4169
+ object?: string | undefined;
4170
+ hoverTooltip?: boolean | undefined;
4171
+ operation?: "self" | "router" | "blank" | undefined;
4172
+ }) | ({
4173
+ type: "click" | "clickByXpath" | "clickBySelector";
4174
+ value: string[];
4175
+ } & {} & {
4176
+ commandType?: "object" | "independent" | "help" | undefined;
4177
+ object?: string | undefined;
4178
+ hoverTooltip?: boolean | undefined;
4179
+ operation?: "self" | "router" | "blank" | undefined;
4180
+ }) | ({
4181
+ type: "builtin";
4182
+ value: string;
4183
+ } & {} & {
4184
+ commandType?: "object" | "independent" | "help" | undefined;
4185
+ object?: string | undefined;
4186
+ hoverTooltip?: boolean | undefined;
4187
+ operation?: "self" | "router" | "blank" | undefined;
4188
+ }) | ({
4189
+ type: "webhook";
4190
+ value: string;
4191
+ } & {} & {
4192
+ commandType?: "object" | "independent" | "help" | undefined;
4193
+ object?: string | undefined;
4194
+ hoverTooltip?: boolean | undefined;
4195
+ operation?: "self" | "router" | "blank" | undefined;
4196
+ }) | ({
4197
+ type: "script";
4198
+ value: string;
4199
+ } & {} & {
4200
+ commandType?: "object" | "independent" | "help" | undefined;
4201
+ object?: string | undefined;
4202
+ hoverTooltip?: boolean | undefined;
4203
+ operation?: "self" | "router" | "blank" | undefined;
4204
+ }) | ({
4205
+ type: "request";
4206
+ value: {
4207
+ method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
4208
+ url: string;
4209
+ } & {
4210
+ headers?: {
4211
+ [key: string]: unknown;
4212
+ } | undefined;
4213
+ body?: {
4214
+ [key: string]: unknown;
4215
+ } | undefined;
4216
+ onSend?: string | undefined;
4217
+ onSuccess?: string | undefined;
4218
+ onError?: string | undefined;
4219
+ };
4220
+ } & {} & {
4221
+ commandType?: "object" | "independent" | "help" | undefined;
4222
+ object?: string | undefined;
4223
+ hoverTooltip?: boolean | undefined;
4224
+ operation?: "self" | "router" | "blank" | undefined;
4225
+ }) | ({
4226
+ type: "appcues";
4227
+ value: string;
4228
+ } & {} & {
4229
+ commandType?: "object" | "independent" | "help" | undefined;
4230
+ object?: string | undefined;
4231
+ hoverTooltip?: boolean | undefined;
4232
+ operation?: "self" | "router" | "blank" | undefined;
4233
+ });
4234
+ } & {
4235
+ disabledReason?: string | undefined;
4236
+ source?: string | undefined;
4237
+ name?: string | undefined;
4238
+ last_available?: string | null | undefined;
4239
+ modified?: string | undefined;
4240
+ } & {
4241
+ arguments: {
4242
+ [x: string]: ({
4243
+ type: "context";
4244
+ value: string;
4245
+ order_key: number;
4246
+ } & {
4247
+ label?: string | undefined;
4248
+ chosen?: string | number | undefined;
4249
+ selected?: any[] | undefined;
4250
+ input_type?: string | undefined;
4251
+ preselected_key?: string | undefined;
4252
+ label_field?: string | undefined;
4253
+ availability_condition?: {
4254
+ field: string;
4255
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4256
+ value: string | undefined;
4257
+ }[] | undefined;
4258
+ loaded?: any[] | undefined;
4259
+ allow_create?: boolean | undefined;
4260
+ allow_create_label?: string | undefined;
4261
+ show_in_record_action_list?: boolean | undefined;
4262
+ show_in_default_list?: boolean | undefined;
4263
+ }) | ({
4264
+ type: "set";
4265
+ value: string[] | number[] | {
4266
+ [key: string]: unknown;
4267
+ }[];
4268
+ order_key: number;
4269
+ } & {
4270
+ label?: string | undefined;
4271
+ chosen?: string | number | undefined;
4272
+ selected?: any[] | undefined;
4273
+ input_type?: string | undefined;
4274
+ preselected_key?: string | undefined;
4275
+ label_field?: string | undefined;
4276
+ availability_condition?: {
4277
+ field: string;
4278
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4279
+ value: string | undefined;
4280
+ }[] | undefined;
4281
+ loaded?: any[] | undefined;
4282
+ allow_create?: boolean | undefined;
4283
+ allow_create_label?: string | undefined;
4284
+ }) | ({
4285
+ type: "provided";
4286
+ value: "time" | "text";
4287
+ order_key: number;
4288
+ } & {
4289
+ label?: string | undefined;
4290
+ chosen?: string | number | undefined;
4291
+ selected?: any[] | undefined;
4292
+ input_type?: string | undefined;
4293
+ preselected_key?: string | undefined;
4294
+ label_field?: string | undefined;
4295
+ availability_condition?: {
4296
+ field: string;
4297
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4298
+ value: string | undefined;
4299
+ }[] | undefined;
4300
+ loaded?: any[] | undefined;
4301
+ dateTimeArgumentTypeId?: number | undefined;
4302
+ allow_create?: boolean | undefined;
4303
+ allow_create_label?: string | undefined;
4304
+ }) | ({
4305
+ type: "dependent";
4306
+ value: string;
4307
+ order_key: number;
4308
+ } & {
4309
+ label?: string | undefined;
4310
+ chosen?: string | number | undefined;
4311
+ selected?: any[] | undefined;
4312
+ input_type?: string | undefined;
4313
+ preselected_key?: string | undefined;
4314
+ label_field?: string | undefined;
4315
+ availability_condition?: {
4316
+ field: string;
4317
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4318
+ value: string | undefined;
4319
+ }[] | undefined;
4320
+ loaded?: any[] | undefined;
4321
+ allow_create?: boolean | undefined;
4322
+ allow_create_label?: string | undefined;
4323
+ }) | ({
4324
+ type: "function";
4325
+ value: string;
4326
+ order_key: number;
4327
+ } & {
4328
+ label?: string | undefined;
4329
+ chosen?: string | number | undefined;
4330
+ selected?: any[] | undefined;
4331
+ input_type?: string | undefined;
4332
+ preselected_key?: string | undefined;
4333
+ label_field?: string | undefined;
4334
+ availability_condition?: {
4335
+ field: string;
4336
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4337
+ value: string | undefined;
4338
+ }[] | undefined;
4339
+ loaded?: any[] | undefined;
4340
+ allow_create?: boolean | undefined;
4341
+ allow_create_label?: string | undefined;
4342
+ });
4343
+ };
4344
+ tags: string[];
4345
+ availability_rules: ({
4346
+ type: "url" | "context" | "element";
4347
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
4348
+ } & {
4349
+ field?: string | undefined;
4350
+ value?: string | undefined;
4351
+ reason?: string | undefined;
4352
+ })[] | (({
4353
+ type: "url" | "context" | "element";
4354
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
4355
+ } & {
4356
+ field?: string | undefined;
4357
+ value?: string | undefined;
4358
+ reason?: string | undefined;
4359
+ }) | ({
4360
+ type: "named_rule";
4361
+ rule_id: number;
4362
+ } & {
4363
+ reason?: string | undefined;
4364
+ }))[];
4365
+ recommend_rules: (({
4366
+ type: "always";
4367
+ } & {
4368
+ operator?: null | undefined;
4369
+ field?: null | undefined;
4370
+ value?: null | undefined;
4371
+ reason?: null | undefined;
4372
+ }) | ({
4373
+ type: "url" | "context" | "element";
4374
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
4375
+ } & {
4376
+ field?: string | undefined;
4377
+ value?: string | undefined;
4378
+ reason?: string | undefined;
4379
+ }))[] | (({
4380
+ type: "always";
4381
+ } & {
4382
+ operator?: null | undefined;
4383
+ field?: null | undefined;
4384
+ value?: null | undefined;
4385
+ reason?: null | undefined;
4386
+ }) | ({
4387
+ type: "url" | "context" | "element";
4388
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
4389
+ } & {
4390
+ field?: string | undefined;
4391
+ value?: string | undefined;
4392
+ reason?: string | undefined;
4393
+ }) | ({
4394
+ type: "named_rule";
4395
+ rule_id: number;
4396
+ } & {
4397
+ reason?: string | undefined;
4398
+ }))[];
4399
+ confirm: string;
4400
+ shortcut: string[];
4401
+ explanation: string;
4402
+ heading: string;
4403
+ is_live: boolean;
4404
+ category: number | null;
4405
+ sort_key: number | null;
4406
+ icon: string | null;
4407
+ celebrate: boolean | {
4408
+ angle?: number | undefined;
4409
+ spread?: number | undefined;
4410
+ width?: string | undefined;
4411
+ height?: string | undefined;
4412
+ duration?: number | undefined;
4413
+ dragFriction?: number | undefined;
4414
+ stagger?: number | undefined;
4415
+ startVelocity?: number | undefined;
4416
+ elementCount?: number | undefined;
4417
+ decay?: number | undefined;
4418
+ colors?: string[] | undefined;
4419
+ random?: any;
4420
+ } | null;
4421
+ recommend_sort_key: number | null;
4422
+ shortcut_mac: string[];
4423
+ shortcut_win: string[];
4424
+ hotkey_mac: string;
4425
+ hotkey_win: string;
4426
+ detail: string | {
4427
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
4428
+ value: string;
4429
+ } | (string | {
4430
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
4431
+ value: string;
4432
+ })[] | null;
4433
+ } & {
4434
+ third_party_source?: string | null | undefined;
4435
+ third_party_id?: string | null | undefined;
4436
+ }>;
4437
+ static deleteWithoutThrottle: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
4438
+ static commandUID: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => string;
4439
+ static isProgrammatic: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => boolean;
4440
+ static isRecordAction: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>, recordKey?: string | undefined) => boolean;
4441
+ static showInDefaultList: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => boolean;
4442
+ }
4443
+ export declare const HelpSyncCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
4444
+ id: t.NumberC;
4445
+ organization: t.UnionC<[t.NumberC, t.StringC]>;
4446
+ text: t.StringC;
4447
+ template: t.UnionC<[t.IntersectionC<[t.TypeC<{
4448
+ type: t.LiteralC<"admin">;
4449
+ value: t.StringC;
4450
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4451
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4452
+ object: t.StringC;
4453
+ hoverTooltip: t.BooleanC;
4454
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4455
+ }>]>]>, t.IntersectionC<[t.TypeC<{
4456
+ type: t.LiteralC<"callback">;
4457
+ value: t.StringC;
4458
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4459
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4460
+ object: t.StringC;
4461
+ hoverTooltip: t.BooleanC;
4462
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4463
+ }>]>]>, t.IntersectionC<[t.TypeC<{
4464
+ type: t.LiteralC<"link">;
4465
+ value: t.StringC;
4466
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4467
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4468
+ object: t.StringC;
4469
+ hoverTooltip: t.BooleanC;
4470
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4471
+ }>]>]>, t.IntersectionC<[t.TypeC<{
4472
+ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
4473
+ value: t.ArrayC<t.StringC>;
4474
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4475
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4476
+ object: t.StringC;
4477
+ hoverTooltip: t.BooleanC;
4478
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4479
+ }>]>]>, t.IntersectionC<[t.TypeC<{
4480
+ type: t.LiteralC<"builtin">;
4481
+ value: t.StringC;
4482
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4483
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4484
+ object: t.StringC;
4485
+ hoverTooltip: t.BooleanC;
4486
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4487
+ }>]>]>, t.IntersectionC<[t.TypeC<{
4488
+ type: t.LiteralC<"webhook">;
4489
+ value: t.StringC;
4490
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4491
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4492
+ object: t.StringC;
4493
+ hoverTooltip: t.BooleanC;
4494
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4495
+ }>]>]>, t.IntersectionC<[t.TypeC<{
4496
+ type: t.LiteralC<"script">;
4497
+ value: t.StringC;
4498
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4499
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4500
+ object: t.StringC;
4501
+ hoverTooltip: t.BooleanC;
4502
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4503
+ }>]>]>, t.IntersectionC<[t.TypeC<{
4504
+ type: t.LiteralC<"request">;
4505
+ value: t.IntersectionC<[t.TypeC<{
4506
+ method: t.UnionC<[t.LiteralC<"get">, t.LiteralC<"delete">, t.LiteralC<"head">, t.LiteralC<"options">, t.LiteralC<"post">, t.LiteralC<"put">, t.LiteralC<"patch">]>;
4507
+ url: t.StringC;
4508
+ }>, t.PartialC<{
4509
+ headers: t.UnknownRecordC;
4510
+ body: t.UnknownRecordC;
4511
+ onSend: t.StringC;
4512
+ onSuccess: t.StringC;
4513
+ onError: t.StringC;
4514
+ }>]>;
4515
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4516
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4517
+ object: t.StringC;
4518
+ hoverTooltip: t.BooleanC;
4519
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4520
+ }>]>]>, t.IntersectionC<[t.TypeC<{
4521
+ type: t.LiteralC<"appcues">;
4522
+ value: t.StringC;
4523
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
4524
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
4525
+ object: t.StringC;
4526
+ hoverTooltip: t.BooleanC;
4527
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
4528
+ }>]>]>]>;
4529
+ }>, t.PartialC<{
4530
+ disabledReason: t.StringC;
4531
+ source: t.StringC;
4532
+ name: t.StringC;
4533
+ last_available: t.UnionC<[t.StringC, t.NullC]>;
4534
+ modified: t.StringC;
4535
+ }>]>, t.TypeC<{
4536
+ arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
4537
+ type: t.LiteralC<"context">;
4538
+ value: t.StringC;
4539
+ order_key: t.NumberC;
4540
+ }>, t.PartialC<{
4541
+ label: t.StringC;
4542
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
4543
+ selected: t.ArrayC<t.AnyC>;
4544
+ input_type: t.StringC;
4545
+ preselected_key: t.StringC;
4546
+ label_field: t.StringC;
4547
+ availability_condition: t.ArrayC<t.TypeC<{
4548
+ field: t.StringC;
4549
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
4550
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
4551
+ }>>;
4552
+ loaded: t.ArrayC<t.AnyC>;
4553
+ allow_create: t.BooleanC;
4554
+ allow_create_label: t.StringC;
4555
+ show_in_record_action_list: t.BooleanC;
4556
+ show_in_default_list: t.BooleanC;
4557
+ }>]>, t.IntersectionC<[t.TypeC<{
4558
+ type: t.LiteralC<"set">;
4559
+ value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
4560
+ order_key: t.NumberC;
4561
+ }>, t.PartialC<{
4562
+ label: t.StringC;
4563
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
4564
+ selected: t.ArrayC<t.AnyC>;
4565
+ input_type: t.StringC;
4566
+ preselected_key: t.StringC;
4567
+ label_field: t.StringC;
4568
+ availability_condition: t.ArrayC<t.TypeC<{
4569
+ field: t.StringC;
4570
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
4571
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
4572
+ }>>;
4573
+ loaded: t.ArrayC<t.AnyC>;
4574
+ allow_create: t.BooleanC;
4575
+ allow_create_label: t.StringC;
4576
+ }>]>, t.IntersectionC<[t.TypeC<{
4577
+ type: t.LiteralC<"provided">;
4578
+ value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
4579
+ order_key: t.NumberC;
4580
+ }>, t.PartialC<{
4581
+ label: t.StringC;
4582
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
4583
+ selected: t.ArrayC<t.AnyC>;
4584
+ input_type: t.StringC;
4585
+ preselected_key: t.StringC;
4586
+ label_field: t.StringC;
4587
+ availability_condition: t.ArrayC<t.TypeC<{
4588
+ field: t.StringC;
4589
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
4590
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
4591
+ }>>;
4592
+ loaded: t.ArrayC<t.AnyC>;
4593
+ dateTimeArgumentTypeId: t.NumberC;
4594
+ allow_create: t.BooleanC;
4595
+ allow_create_label: t.StringC;
4596
+ }>]>, t.IntersectionC<[t.TypeC<{
4597
+ type: t.LiteralC<"dependent">;
4598
+ value: t.StringC;
4599
+ order_key: t.NumberC;
4600
+ }>, t.PartialC<{
4601
+ label: t.StringC;
4602
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
4603
+ selected: t.ArrayC<t.AnyC>;
4604
+ input_type: t.StringC;
4605
+ preselected_key: t.StringC;
4606
+ label_field: t.StringC;
4607
+ availability_condition: t.ArrayC<t.TypeC<{
4608
+ field: t.StringC;
4609
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
4610
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
4611
+ }>>;
4612
+ loaded: t.ArrayC<t.AnyC>;
4613
+ allow_create: t.BooleanC;
4614
+ allow_create_label: t.StringC;
4615
+ }>]>, t.IntersectionC<[t.TypeC<{
4616
+ type: t.LiteralC<"function">;
4617
+ value: t.StringC;
4618
+ order_key: t.NumberC;
4619
+ }>, t.PartialC<{
4620
+ label: t.StringC;
4621
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
4622
+ selected: t.ArrayC<t.AnyC>;
4623
+ input_type: t.StringC;
4624
+ preselected_key: t.StringC;
4625
+ label_field: t.StringC;
4626
+ availability_condition: t.ArrayC<t.TypeC<{
4627
+ field: t.StringC;
4628
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
4629
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
4630
+ }>>;
4631
+ loaded: t.ArrayC<t.AnyC>;
4632
+ allow_create: t.BooleanC;
4633
+ allow_create_label: t.StringC;
4634
+ }>]>]>>;
4635
+ tags: t.ArrayC<t.StringC>;
4636
+ availability_rules: t.ArrayC<t.IntersectionC<[t.TypeC<{
4637
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
4638
+ operator: t.KeyofC<{
4639
+ includes: null;
4640
+ endsWith: null;
4641
+ startsWith: null;
4642
+ is: null;
4643
+ isTruthy: null;
4644
+ isFalsy: null;
4645
+ isNot: null;
4646
+ isTrue: null;
4647
+ isFalse: null;
4648
+ doesNotInclude: null;
4649
+ matchesRegex: null;
4650
+ isGreaterThan: null;
4651
+ isLessThan: null;
4652
+ isDefined: null;
4653
+ isNotDefined: null;
4654
+ classnameOnPage: null;
4655
+ idOnPage: null;
4656
+ }>;
4657
+ }>, t.PartialC<{
4658
+ field: t.StringC;
4659
+ value: t.StringC;
4660
+ reason: t.StringC;
4661
+ }>]>>;
4662
+ recommend_rules: t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
4663
+ type: t.LiteralC<"always">;
4664
+ }>, t.PartialC<{
4665
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
4666
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
4667
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
4668
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
4669
+ }>]>, t.IntersectionC<[t.TypeC<{
4670
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
4671
+ operator: t.KeyofC<{
4672
+ includes: null;
4673
+ endsWith: null;
4674
+ startsWith: null;
4675
+ is: null;
4676
+ isTruthy: null;
4677
+ isFalsy: null;
4678
+ isNot: null;
4679
+ isTrue: null;
4680
+ isFalse: null;
4681
+ doesNotInclude: null;
4682
+ matchesRegex: null;
4683
+ isGreaterThan: null;
4684
+ isLessThan: null;
4685
+ isDefined: null;
4686
+ isNotDefined: null;
4687
+ classnameOnPage: null;
4688
+ idOnPage: null;
4689
+ }>;
4690
+ }>, t.PartialC<{
4691
+ field: t.StringC;
4692
+ value: t.StringC;
4693
+ reason: t.StringC;
4694
+ }>]>]>>;
4695
+ confirm: t.StringC;
4696
+ shortcut: t.ArrayC<t.StringC>;
4697
+ explanation: t.StringC;
4698
+ heading: t.StringC;
4699
+ is_live: t.BooleanC;
4700
+ category: t.UnionC<[t.NumberC, t.NullC]>;
4701
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
4702
+ icon: t.UnionC<[t.StringC, t.NullC]>;
4703
+ celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
4704
+ angle: t.NumberC;
4705
+ spread: t.NumberC;
4706
+ width: t.StringC;
4707
+ height: t.StringC;
4708
+ duration: t.NumberC;
4709
+ dragFriction: t.NumberC;
4710
+ stagger: t.NumberC;
4711
+ startVelocity: t.NumberC;
4712
+ elementCount: t.NumberC;
4713
+ decay: t.NumberC;
4714
+ colors: t.ArrayC<t.StringC>;
4715
+ random: t.AnyC;
4716
+ }>, t.NullC]>;
4717
+ recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
4718
+ shortcut_mac: t.ArrayC<t.StringC>;
4719
+ shortcut_win: t.ArrayC<t.StringC>;
4720
+ hotkey_mac: t.StringC;
4721
+ hotkey_win: t.StringC;
4722
+ detail: t.UnionC<[t.NullC, t.StringC, t.TypeC<{
4723
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
4724
+ value: t.StringC;
4725
+ }>, t.ArrayC<t.UnionC<[t.StringC, t.TypeC<{
4726
+ type: t.UnionC<[t.LiteralC<"plaintext">, t.LiteralC<"markdown">, t.LiteralC<"html">, t.LiteralC<"react">, t.LiteralC<"video">, t.NullC]>;
4727
+ value: t.StringC;
4728
+ }>]>>]>;
4729
+ }>, t.PartialC<{
4730
+ third_party_source: t.UnionC<[t.StringC, t.NullC]>;
4731
+ third_party_id: t.UnionC<[t.StringC, t.NullC]>;
4732
+ }>]>;
4733
+ export declare class HelpSyncCommand {
4734
+ static listHelpCenter: (onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<({
4735
+ id: number;
4736
+ organization: string | number;
4737
+ text: string;
4738
+ template: ({
4739
+ type: "admin";
4740
+ value: string;
4741
+ } & {} & {
4742
+ commandType?: "object" | "independent" | "help" | undefined;
4743
+ object?: string | undefined;
4744
+ hoverTooltip?: boolean | undefined;
4745
+ operation?: "self" | "router" | "blank" | undefined;
4746
+ }) | ({
4747
+ type: "callback";
4748
+ value: string;
4749
+ } & {} & {
4750
+ commandType?: "object" | "independent" | "help" | undefined;
4751
+ object?: string | undefined;
4752
+ hoverTooltip?: boolean | undefined;
4753
+ operation?: "self" | "router" | "blank" | undefined;
4754
+ }) | ({
4755
+ type: "link";
4756
+ value: string;
4757
+ } & {} & {
4758
+ commandType?: "object" | "independent" | "help" | undefined;
4759
+ object?: string | undefined;
4760
+ hoverTooltip?: boolean | undefined;
4761
+ operation?: "self" | "router" | "blank" | undefined;
4762
+ }) | ({
4763
+ type: "click" | "clickByXpath" | "clickBySelector";
4764
+ value: string[];
4765
+ } & {} & {
4766
+ commandType?: "object" | "independent" | "help" | undefined;
4767
+ object?: string | undefined;
4768
+ hoverTooltip?: boolean | undefined;
4769
+ operation?: "self" | "router" | "blank" | undefined;
4770
+ }) | ({
4771
+ type: "builtin";
4772
+ value: string;
4773
+ } & {} & {
4774
+ commandType?: "object" | "independent" | "help" | undefined;
4775
+ object?: string | undefined;
4776
+ hoverTooltip?: boolean | undefined;
4777
+ operation?: "self" | "router" | "blank" | undefined;
4778
+ }) | ({
4779
+ type: "webhook";
4780
+ value: string;
4781
+ } & {} & {
4782
+ commandType?: "object" | "independent" | "help" | undefined;
4783
+ object?: string | undefined;
4784
+ hoverTooltip?: boolean | undefined;
4785
+ operation?: "self" | "router" | "blank" | undefined;
4786
+ }) | ({
4787
+ type: "script";
4788
+ value: string;
4789
+ } & {} & {
4790
+ commandType?: "object" | "independent" | "help" | undefined;
4791
+ object?: string | undefined;
4792
+ hoverTooltip?: boolean | undefined;
4793
+ operation?: "self" | "router" | "blank" | undefined;
4794
+ }) | ({
4795
+ type: "request";
4796
+ value: {
4797
+ method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
4798
+ url: string;
4799
+ } & {
4800
+ headers?: {
4801
+ [key: string]: unknown;
4802
+ } | undefined;
4803
+ body?: {
4804
+ [key: string]: unknown;
4805
+ } | undefined;
4806
+ onSend?: string | undefined;
4807
+ onSuccess?: string | undefined;
4808
+ onError?: string | undefined;
4809
+ };
4810
+ } & {} & {
4811
+ commandType?: "object" | "independent" | "help" | undefined;
4812
+ object?: string | undefined;
4813
+ hoverTooltip?: boolean | undefined;
4814
+ operation?: "self" | "router" | "blank" | undefined;
4815
+ }) | ({
4816
+ type: "appcues";
4817
+ value: string;
4818
+ } & {} & {
4819
+ commandType?: "object" | "independent" | "help" | undefined;
4820
+ object?: string | undefined;
4821
+ hoverTooltip?: boolean | undefined;
4822
+ operation?: "self" | "router" | "blank" | undefined;
4823
+ });
4824
+ } & {
4825
+ disabledReason?: string | undefined;
4826
+ source?: string | undefined;
4827
+ name?: string | undefined;
4828
+ last_available?: string | null | undefined;
4829
+ modified?: string | undefined;
4830
+ } & {
4831
+ arguments: {
4832
+ [x: string]: ({
4833
+ type: "context";
4834
+ value: string;
4835
+ order_key: number;
4836
+ } & {
4837
+ label?: string | undefined;
4838
+ chosen?: string | number | undefined;
4839
+ selected?: any[] | undefined;
4840
+ input_type?: string | undefined;
4841
+ preselected_key?: string | undefined;
4842
+ label_field?: string | undefined;
4843
+ availability_condition?: {
4844
+ field: string;
4845
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4846
+ value: string | undefined;
4847
+ }[] | undefined;
4848
+ loaded?: any[] | undefined;
4849
+ allow_create?: boolean | undefined;
4850
+ allow_create_label?: string | undefined;
4851
+ show_in_record_action_list?: boolean | undefined;
4852
+ show_in_default_list?: boolean | undefined;
4853
+ }) | ({
4854
+ type: "set";
4855
+ value: string[] | number[] | {
4856
+ [key: string]: unknown;
4857
+ }[];
4858
+ order_key: number;
4859
+ } & {
4860
+ label?: string | undefined;
4861
+ chosen?: string | number | undefined;
4862
+ selected?: any[] | undefined;
4863
+ input_type?: string | undefined;
4864
+ preselected_key?: string | undefined;
4865
+ label_field?: string | undefined;
4866
+ availability_condition?: {
4867
+ field: string;
4868
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4869
+ value: string | undefined;
4870
+ }[] | undefined;
4871
+ loaded?: any[] | undefined;
4872
+ allow_create?: boolean | undefined;
4873
+ allow_create_label?: string | undefined;
4874
+ }) | ({
4875
+ type: "provided";
4876
+ value: "time" | "text";
4877
+ order_key: number;
4878
+ } & {
4879
+ label?: string | undefined;
4880
+ chosen?: string | number | undefined;
4881
+ selected?: any[] | undefined;
4882
+ input_type?: string | undefined;
4883
+ preselected_key?: string | undefined;
4884
+ label_field?: string | undefined;
4885
+ availability_condition?: {
4886
+ field: string;
4887
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4888
+ value: string | undefined;
4889
+ }[] | undefined;
4890
+ loaded?: any[] | undefined;
4891
+ dateTimeArgumentTypeId?: number | undefined;
4892
+ allow_create?: boolean | undefined;
4893
+ allow_create_label?: string | undefined;
4894
+ }) | ({
4895
+ type: "dependent";
4896
+ value: string;
4897
+ order_key: number;
4898
+ } & {
4899
+ label?: string | undefined;
4900
+ chosen?: string | number | undefined;
4901
+ selected?: any[] | undefined;
4902
+ input_type?: string | undefined;
4903
+ preselected_key?: string | undefined;
4904
+ label_field?: string | undefined;
4905
+ availability_condition?: {
4906
+ field: string;
4907
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4908
+ value: string | undefined;
4909
+ }[] | undefined;
4910
+ loaded?: any[] | undefined;
4911
+ allow_create?: boolean | undefined;
4912
+ allow_create_label?: string | undefined;
4913
+ }) | ({
4914
+ type: "function";
4915
+ value: string;
4916
+ order_key: number;
4917
+ } & {
4918
+ label?: string | undefined;
4919
+ chosen?: string | number | undefined;
4920
+ selected?: any[] | undefined;
4921
+ input_type?: string | undefined;
4922
+ preselected_key?: string | undefined;
4923
+ label_field?: string | undefined;
4924
+ availability_condition?: {
4925
+ field: string;
4926
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
4927
+ value: string | undefined;
4928
+ }[] | undefined;
4929
+ loaded?: any[] | undefined;
4930
+ allow_create?: boolean | undefined;
4931
+ allow_create_label?: string | undefined;
4932
+ });
4933
+ };
4934
+ tags: string[];
4935
+ availability_rules: ({
4936
+ type: "url" | "context" | "element";
4937
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
4938
+ } & {
4939
+ field?: string | undefined;
4940
+ value?: string | undefined;
4941
+ reason?: string | undefined;
4942
+ })[];
4943
+ recommend_rules: (({
4944
+ type: "always";
4945
+ } & {
4946
+ operator?: null | undefined;
4947
+ field?: null | undefined;
4948
+ value?: null | undefined;
4949
+ reason?: null | undefined;
4950
+ }) | ({
4951
+ type: "url" | "context" | "element";
4952
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
4953
+ } & {
4954
+ field?: string | undefined;
4955
+ value?: string | undefined;
4956
+ reason?: string | undefined;
4957
+ }))[];
4958
+ confirm: string;
4959
+ shortcut: string[];
4960
+ explanation: string;
4961
+ heading: string;
4962
+ is_live: boolean;
4963
+ category: number | null;
4964
+ sort_key: number | null;
4965
+ icon: string | null;
4966
+ celebrate: boolean | {
4967
+ angle?: number | undefined;
4968
+ spread?: number | undefined;
4969
+ width?: string | undefined;
4970
+ height?: string | undefined;
4971
+ duration?: number | undefined;
4972
+ dragFriction?: number | undefined;
4973
+ stagger?: number | undefined;
4974
+ startVelocity?: number | undefined;
4975
+ elementCount?: number | undefined;
4976
+ decay?: number | undefined;
4977
+ colors?: string[] | undefined;
4978
+ random?: any;
4979
+ } | null;
4980
+ recommend_sort_key: number | null;
4981
+ shortcut_mac: string[];
4982
+ shortcut_win: string[];
4983
+ hotkey_mac: string;
4984
+ hotkey_win: string;
4985
+ detail: string | {
4986
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
4987
+ value: string;
4988
+ } | (string | {
4989
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
4990
+ value: string;
4991
+ })[] | null;
4992
+ } & {
4993
+ third_party_source?: string | null | undefined;
4994
+ third_party_id?: string | null | undefined;
4995
+ })[]>;
4996
+ static updateWithoutThrottle: (object: {
4997
+ id: number;
4998
+ organization: string | number;
4999
+ text: string;
5000
+ template: ({
5001
+ type: "admin";
5002
+ value: string;
5003
+ } & {} & {
5004
+ commandType?: "object" | "independent" | "help" | undefined;
5005
+ object?: string | undefined;
5006
+ hoverTooltip?: boolean | undefined;
5007
+ operation?: "self" | "router" | "blank" | undefined;
5008
+ }) | ({
5009
+ type: "callback";
5010
+ value: string;
5011
+ } & {} & {
5012
+ commandType?: "object" | "independent" | "help" | undefined;
5013
+ object?: string | undefined;
5014
+ hoverTooltip?: boolean | undefined;
5015
+ operation?: "self" | "router" | "blank" | undefined;
5016
+ }) | ({
5017
+ type: "link";
5018
+ value: string;
5019
+ } & {} & {
5020
+ commandType?: "object" | "independent" | "help" | undefined;
5021
+ object?: string | undefined;
5022
+ hoverTooltip?: boolean | undefined;
5023
+ operation?: "self" | "router" | "blank" | undefined;
5024
+ }) | ({
5025
+ type: "click" | "clickByXpath" | "clickBySelector";
5026
+ value: string[];
5027
+ } & {} & {
5028
+ commandType?: "object" | "independent" | "help" | undefined;
5029
+ object?: string | undefined;
5030
+ hoverTooltip?: boolean | undefined;
5031
+ operation?: "self" | "router" | "blank" | undefined;
5032
+ }) | ({
5033
+ type: "builtin";
5034
+ value: string;
5035
+ } & {} & {
5036
+ commandType?: "object" | "independent" | "help" | undefined;
5037
+ object?: string | undefined;
5038
+ hoverTooltip?: boolean | undefined;
5039
+ operation?: "self" | "router" | "blank" | undefined;
5040
+ }) | ({
5041
+ type: "webhook";
5042
+ value: string;
5043
+ } & {} & {
5044
+ commandType?: "object" | "independent" | "help" | undefined;
5045
+ object?: string | undefined;
5046
+ hoverTooltip?: boolean | undefined;
5047
+ operation?: "self" | "router" | "blank" | undefined;
5048
+ }) | ({
5049
+ type: "script";
5050
+ value: string;
5051
+ } & {} & {
5052
+ commandType?: "object" | "independent" | "help" | undefined;
5053
+ object?: string | undefined;
5054
+ hoverTooltip?: boolean | undefined;
5055
+ operation?: "self" | "router" | "blank" | undefined;
5056
+ }) | ({
5057
+ type: "request";
5058
+ value: {
5059
+ method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
5060
+ url: string;
5061
+ } & {
5062
+ headers?: {
5063
+ [key: string]: unknown;
5064
+ } | undefined;
5065
+ body?: {
5066
+ [key: string]: unknown;
5067
+ } | undefined;
5068
+ onSend?: string | undefined;
5069
+ onSuccess?: string | undefined;
5070
+ onError?: string | undefined;
5071
+ };
5072
+ } & {} & {
5073
+ commandType?: "object" | "independent" | "help" | undefined;
5074
+ object?: string | undefined;
5075
+ hoverTooltip?: boolean | undefined;
5076
+ operation?: "self" | "router" | "blank" | undefined;
5077
+ }) | ({
5078
+ type: "appcues";
5079
+ value: string;
5080
+ } & {} & {
5081
+ commandType?: "object" | "independent" | "help" | undefined;
5082
+ object?: string | undefined;
5083
+ hoverTooltip?: boolean | undefined;
5084
+ operation?: "self" | "router" | "blank" | undefined;
5085
+ });
5086
+ } & {
5087
+ disabledReason?: string | undefined;
5088
+ source?: string | undefined;
5089
+ name?: string | undefined;
5090
+ last_available?: string | null | undefined;
5091
+ modified?: string | undefined;
5092
+ } & {
5093
+ arguments: {
5094
+ [x: string]: ({
5095
+ type: "context";
5096
+ value: string;
5097
+ order_key: number;
5098
+ } & {
5099
+ label?: string | undefined;
5100
+ chosen?: string | number | undefined;
5101
+ selected?: any[] | undefined;
5102
+ input_type?: string | undefined;
5103
+ preselected_key?: string | undefined;
5104
+ label_field?: string | undefined;
5105
+ availability_condition?: {
5106
+ field: string;
5107
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5108
+ value: string | undefined;
5109
+ }[] | undefined;
5110
+ loaded?: any[] | undefined;
5111
+ allow_create?: boolean | undefined;
5112
+ allow_create_label?: string | undefined;
5113
+ show_in_record_action_list?: boolean | undefined;
5114
+ show_in_default_list?: boolean | undefined;
5115
+ }) | ({
5116
+ type: "set";
5117
+ value: string[] | number[] | {
5118
+ [key: string]: unknown;
5119
+ }[];
5120
+ order_key: number;
5121
+ } & {
5122
+ label?: string | undefined;
5123
+ chosen?: string | number | undefined;
5124
+ selected?: any[] | undefined;
5125
+ input_type?: string | undefined;
5126
+ preselected_key?: string | undefined;
5127
+ label_field?: string | undefined;
5128
+ availability_condition?: {
5129
+ field: string;
5130
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5131
+ value: string | undefined;
5132
+ }[] | undefined;
5133
+ loaded?: any[] | undefined;
5134
+ allow_create?: boolean | undefined;
5135
+ allow_create_label?: string | undefined;
5136
+ }) | ({
5137
+ type: "provided";
5138
+ value: "time" | "text";
5139
+ order_key: number;
5140
+ } & {
5141
+ label?: string | undefined;
5142
+ chosen?: string | number | undefined;
5143
+ selected?: any[] | undefined;
5144
+ input_type?: string | undefined;
5145
+ preselected_key?: string | undefined;
5146
+ label_field?: string | undefined;
5147
+ availability_condition?: {
5148
+ field: string;
5149
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5150
+ value: string | undefined;
5151
+ }[] | undefined;
5152
+ loaded?: any[] | undefined;
5153
+ dateTimeArgumentTypeId?: number | undefined;
5154
+ allow_create?: boolean | undefined;
5155
+ allow_create_label?: string | undefined;
5156
+ }) | ({
5157
+ type: "dependent";
5158
+ value: string;
5159
+ order_key: number;
5160
+ } & {
5161
+ label?: string | undefined;
5162
+ chosen?: string | number | undefined;
5163
+ selected?: any[] | undefined;
5164
+ input_type?: string | undefined;
5165
+ preselected_key?: string | undefined;
5166
+ label_field?: string | undefined;
5167
+ availability_condition?: {
5168
+ field: string;
5169
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5170
+ value: string | undefined;
5171
+ }[] | undefined;
5172
+ loaded?: any[] | undefined;
5173
+ allow_create?: boolean | undefined;
5174
+ allow_create_label?: string | undefined;
5175
+ }) | ({
5176
+ type: "function";
5177
+ value: string;
5178
+ order_key: number;
5179
+ } & {
5180
+ label?: string | undefined;
5181
+ chosen?: string | number | undefined;
5182
+ selected?: any[] | undefined;
5183
+ input_type?: string | undefined;
5184
+ preselected_key?: string | undefined;
5185
+ label_field?: string | undefined;
5186
+ availability_condition?: {
5187
+ field: string;
5188
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5189
+ value: string | undefined;
5190
+ }[] | undefined;
5191
+ loaded?: any[] | undefined;
5192
+ allow_create?: boolean | undefined;
5193
+ allow_create_label?: string | undefined;
5194
+ });
5195
+ };
5196
+ tags: string[];
5197
+ availability_rules: ({
5198
+ type: "url" | "context" | "element";
5199
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
5200
+ } & {
5201
+ field?: string | undefined;
5202
+ value?: string | undefined;
5203
+ reason?: string | undefined;
5204
+ })[];
5205
+ recommend_rules: (({
5206
+ type: "always";
5207
+ } & {
5208
+ operator?: null | undefined;
5209
+ field?: null | undefined;
5210
+ value?: null | undefined;
5211
+ reason?: null | undefined;
5212
+ }) | ({
5213
+ type: "url" | "context" | "element";
5214
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
5215
+ } & {
5216
+ field?: string | undefined;
5217
+ value?: string | undefined;
5218
+ reason?: string | undefined;
5219
+ }))[];
5220
+ confirm: string;
5221
+ shortcut: string[];
5222
+ explanation: string;
5223
+ heading: string;
5224
+ is_live: boolean;
5225
+ category: number | null;
5226
+ sort_key: number | null;
5227
+ icon: string | null;
5228
+ celebrate: boolean | {
5229
+ angle?: number | undefined;
5230
+ spread?: number | undefined;
5231
+ width?: string | undefined;
5232
+ height?: string | undefined;
5233
+ duration?: number | undefined;
5234
+ dragFriction?: number | undefined;
5235
+ stagger?: number | undefined;
5236
+ startVelocity?: number | undefined;
5237
+ elementCount?: number | undefined;
5238
+ decay?: number | undefined;
5239
+ colors?: string[] | undefined;
5240
+ random?: any;
5241
+ } | null;
5242
+ recommend_sort_key: number | null;
5243
+ shortcut_mac: string[];
5244
+ shortcut_win: string[];
5245
+ hotkey_mac: string;
5246
+ hotkey_win: string;
5247
+ detail: string | {
5248
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
5249
+ value: string;
5250
+ } | (string | {
5251
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
5252
+ value: string;
5253
+ })[] | null;
5254
+ } & {
5255
+ third_party_source?: string | null | undefined;
5256
+ third_party_id?: string | null | undefined;
5257
+ }, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<{
5258
+ id: number;
5259
+ organization: string | number;
5260
+ text: string;
5261
+ template: ({
5262
+ type: "admin";
5263
+ value: string;
5264
+ } & {} & {
5265
+ commandType?: "object" | "independent" | "help" | undefined;
5266
+ object?: string | undefined;
5267
+ hoverTooltip?: boolean | undefined;
5268
+ operation?: "self" | "router" | "blank" | undefined;
5269
+ }) | ({
5270
+ type: "callback";
5271
+ value: string;
5272
+ } & {} & {
5273
+ commandType?: "object" | "independent" | "help" | undefined;
5274
+ object?: string | undefined;
5275
+ hoverTooltip?: boolean | undefined;
5276
+ operation?: "self" | "router" | "blank" | undefined;
5277
+ }) | ({
5278
+ type: "link";
5279
+ value: string;
5280
+ } & {} & {
5281
+ commandType?: "object" | "independent" | "help" | undefined;
5282
+ object?: string | undefined;
5283
+ hoverTooltip?: boolean | undefined;
5284
+ operation?: "self" | "router" | "blank" | undefined;
5285
+ }) | ({
5286
+ type: "click" | "clickByXpath" | "clickBySelector";
5287
+ value: string[];
5288
+ } & {} & {
5289
+ commandType?: "object" | "independent" | "help" | undefined;
5290
+ object?: string | undefined;
5291
+ hoverTooltip?: boolean | undefined;
5292
+ operation?: "self" | "router" | "blank" | undefined;
5293
+ }) | ({
5294
+ type: "builtin";
5295
+ value: string;
5296
+ } & {} & {
5297
+ commandType?: "object" | "independent" | "help" | undefined;
5298
+ object?: string | undefined;
5299
+ hoverTooltip?: boolean | undefined;
5300
+ operation?: "self" | "router" | "blank" | undefined;
5301
+ }) | ({
5302
+ type: "webhook";
5303
+ value: string;
5304
+ } & {} & {
5305
+ commandType?: "object" | "independent" | "help" | undefined;
5306
+ object?: string | undefined;
5307
+ hoverTooltip?: boolean | undefined;
5308
+ operation?: "self" | "router" | "blank" | undefined;
5309
+ }) | ({
5310
+ type: "script";
5311
+ value: string;
5312
+ } & {} & {
5313
+ commandType?: "object" | "independent" | "help" | undefined;
5314
+ object?: string | undefined;
5315
+ hoverTooltip?: boolean | undefined;
5316
+ operation?: "self" | "router" | "blank" | undefined;
5317
+ }) | ({
5318
+ type: "request";
5319
+ value: {
5320
+ method: "head" | "options" | "get" | "delete" | "post" | "put" | "patch";
5321
+ url: string;
5322
+ } & {
5323
+ headers?: {
5324
+ [key: string]: unknown;
5325
+ } | undefined;
5326
+ body?: {
5327
+ [key: string]: unknown;
5328
+ } | undefined;
5329
+ onSend?: string | undefined;
5330
+ onSuccess?: string | undefined;
5331
+ onError?: string | undefined;
5332
+ };
5333
+ } & {} & {
5334
+ commandType?: "object" | "independent" | "help" | undefined;
5335
+ object?: string | undefined;
5336
+ hoverTooltip?: boolean | undefined;
5337
+ operation?: "self" | "router" | "blank" | undefined;
5338
+ }) | ({
5339
+ type: "appcues";
5340
+ value: string;
5341
+ } & {} & {
5342
+ commandType?: "object" | "independent" | "help" | undefined;
5343
+ object?: string | undefined;
5344
+ hoverTooltip?: boolean | undefined;
5345
+ operation?: "self" | "router" | "blank" | undefined;
5346
+ });
5347
+ } & {
5348
+ disabledReason?: string | undefined;
5349
+ source?: string | undefined;
5350
+ name?: string | undefined;
5351
+ last_available?: string | null | undefined;
5352
+ modified?: string | undefined;
5353
+ } & {
5354
+ arguments: {
5355
+ [x: string]: ({
5356
+ type: "context";
5357
+ value: string;
5358
+ order_key: number;
5359
+ } & {
5360
+ label?: string | undefined;
5361
+ chosen?: string | number | undefined;
5362
+ selected?: any[] | undefined;
5363
+ input_type?: string | undefined;
5364
+ preselected_key?: string | undefined;
5365
+ label_field?: string | undefined;
5366
+ availability_condition?: {
5367
+ field: string;
5368
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5369
+ value: string | undefined;
5370
+ }[] | undefined;
5371
+ loaded?: any[] | undefined;
5372
+ allow_create?: boolean | undefined;
5373
+ allow_create_label?: string | undefined;
5374
+ show_in_record_action_list?: boolean | undefined;
5375
+ show_in_default_list?: boolean | undefined;
5376
+ }) | ({
5377
+ type: "set";
5378
+ value: string[] | number[] | {
5379
+ [key: string]: unknown;
5380
+ }[];
5381
+ order_key: number;
5382
+ } & {
5383
+ label?: string | undefined;
5384
+ chosen?: string | number | undefined;
5385
+ selected?: any[] | undefined;
5386
+ input_type?: string | undefined;
5387
+ preselected_key?: string | undefined;
5388
+ label_field?: string | undefined;
5389
+ availability_condition?: {
5390
+ field: string;
5391
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5392
+ value: string | undefined;
5393
+ }[] | undefined;
5394
+ loaded?: any[] | undefined;
5395
+ allow_create?: boolean | undefined;
5396
+ allow_create_label?: string | undefined;
5397
+ }) | ({
5398
+ type: "provided";
5399
+ value: "time" | "text";
5400
+ order_key: number;
5401
+ } & {
5402
+ label?: string | undefined;
5403
+ chosen?: string | number | undefined;
5404
+ selected?: any[] | undefined;
5405
+ input_type?: string | undefined;
5406
+ preselected_key?: string | undefined;
5407
+ label_field?: string | undefined;
5408
+ availability_condition?: {
5409
+ field: string;
5410
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5411
+ value: string | undefined;
5412
+ }[] | undefined;
5413
+ loaded?: any[] | undefined;
5414
+ dateTimeArgumentTypeId?: number | undefined;
5415
+ allow_create?: boolean | undefined;
5416
+ allow_create_label?: string | undefined;
5417
+ }) | ({
5418
+ type: "dependent";
5419
+ value: string;
5420
+ order_key: number;
5421
+ } & {
5422
+ label?: string | undefined;
5423
+ chosen?: string | number | undefined;
5424
+ selected?: any[] | undefined;
5425
+ input_type?: string | undefined;
5426
+ preselected_key?: string | undefined;
5427
+ label_field?: string | undefined;
5428
+ availability_condition?: {
5429
+ field: string;
5430
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5431
+ value: string | undefined;
5432
+ }[] | undefined;
5433
+ loaded?: any[] | undefined;
5434
+ allow_create?: boolean | undefined;
5435
+ allow_create_label?: string | undefined;
5436
+ }) | ({
5437
+ type: "function";
5438
+ value: string;
5439
+ order_key: number;
5440
+ } & {
5441
+ label?: string | undefined;
5442
+ chosen?: string | number | undefined;
5443
+ selected?: any[] | undefined;
5444
+ input_type?: string | undefined;
5445
+ preselected_key?: string | undefined;
5446
+ label_field?: string | undefined;
5447
+ availability_condition?: {
5448
+ field: string;
5449
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
5450
+ value: string | undefined;
5451
+ }[] | undefined;
5452
+ loaded?: any[] | undefined;
5453
+ allow_create?: boolean | undefined;
5454
+ allow_create_label?: string | undefined;
5455
+ });
5456
+ };
5457
+ tags: string[];
5458
+ availability_rules: ({
5459
+ type: "url" | "context" | "element";
5460
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
5461
+ } & {
5462
+ field?: string | undefined;
5463
+ value?: string | undefined;
5464
+ reason?: string | undefined;
5465
+ })[];
5466
+ recommend_rules: (({
5467
+ type: "always";
5468
+ } & {
5469
+ operator?: null | undefined;
5470
+ field?: null | undefined;
5471
+ value?: null | undefined;
5472
+ reason?: null | undefined;
5473
+ }) | ({
5474
+ type: "url" | "context" | "element";
5475
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
5476
+ } & {
5477
+ field?: string | undefined;
5478
+ value?: string | undefined;
5479
+ reason?: string | undefined;
5480
+ }))[];
5481
+ confirm: string;
5482
+ shortcut: string[];
5483
+ explanation: string;
5484
+ heading: string;
5485
+ is_live: boolean;
5486
+ category: number | null;
5487
+ sort_key: number | null;
5488
+ icon: string | null;
5489
+ celebrate: boolean | {
5490
+ angle?: number | undefined;
5491
+ spread?: number | undefined;
5492
+ width?: string | undefined;
5493
+ height?: string | undefined;
5494
+ duration?: number | undefined;
5495
+ dragFriction?: number | undefined;
5496
+ stagger?: number | undefined;
5497
+ startVelocity?: number | undefined;
5498
+ elementCount?: number | undefined;
5499
+ decay?: number | undefined;
5500
+ colors?: string[] | undefined;
5501
+ random?: any;
5502
+ } | null;
5503
+ recommend_sort_key: number | null;
5504
+ shortcut_mac: string[];
5505
+ shortcut_win: string[];
5506
+ hotkey_mac: string;
5507
+ hotkey_win: string;
5508
+ detail: string | {
5509
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
5510
+ value: string;
5511
+ } | (string | {
5512
+ type: "html" | "video" | "plaintext" | "markdown" | "react" | null;
5513
+ value: string;
5514
+ })[] | null;
5515
+ } & {
5516
+ third_party_source?: string | null | undefined;
5517
+ third_party_id?: string | null | undefined;
5518
+ }>;
4100
5519
  }