@forge/manifest 0.0.0-experimental-d8cea00 → 0.0.0-experimental-64caa5a

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.
@@ -1104,6 +1104,108 @@
1104
1104
  },
1105
1105
  "minItems": 1
1106
1106
  },
1107
+ "confluence:globalPage": {
1108
+ "type": "array",
1109
+ "items": {
1110
+ "oneOf": [
1111
+ {
1112
+ "type": "object",
1113
+ "additionalProperties": false,
1114
+ "properties": {
1115
+ "title": {
1116
+ "type": "string",
1117
+ "minLength": 1,
1118
+ "maxLength": 255
1119
+ },
1120
+ "icon": {
1121
+ "type": "string",
1122
+ "minLength": 1,
1123
+ "maxLength": 255
1124
+ },
1125
+ "route": {
1126
+ "type": "string",
1127
+ "minLength": 1,
1128
+ "maxLength": 255,
1129
+ "pattern": "^[a-z0-9\\-]+$"
1130
+ },
1131
+ "function": {
1132
+ "type": "string",
1133
+ "minLength": 1,
1134
+ "maxLength": 255,
1135
+ "pattern": "^[a-zA-Z0-9-_]+$"
1136
+ },
1137
+ "key": {
1138
+ "$ref": "#/definitions/ModuleKeySchema"
1139
+ }
1140
+ },
1141
+ "required": [
1142
+ "title",
1143
+ "route",
1144
+ "function",
1145
+ "key"
1146
+ ]
1147
+ },
1148
+ {
1149
+ "type": "object",
1150
+ "additionalProperties": false,
1151
+ "properties": {
1152
+ "title": {
1153
+ "type": "string",
1154
+ "minLength": 1,
1155
+ "maxLength": 255
1156
+ },
1157
+ "icon": {
1158
+ "type": "string",
1159
+ "minLength": 1,
1160
+ "maxLength": 255
1161
+ },
1162
+ "route": {
1163
+ "type": "string",
1164
+ "minLength": 1,
1165
+ "maxLength": 255,
1166
+ "pattern": "^[a-z0-9\\-]+$"
1167
+ },
1168
+ "resolver": {
1169
+ "additionalProperties": false,
1170
+ "type": "object",
1171
+ "properties": {
1172
+ "function": {
1173
+ "type": "string",
1174
+ "minLength": 1,
1175
+ "maxLength": 255,
1176
+ "pattern": "^[a-zA-Z0-9-_]+$"
1177
+ }
1178
+ },
1179
+ "required": [
1180
+ "function"
1181
+ ]
1182
+ },
1183
+ "resource": {
1184
+ "type": "string",
1185
+ "minLength": 1,
1186
+ "maxLength": 23,
1187
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
1188
+ },
1189
+ "resourceUploadId": {
1190
+ "type": "string",
1191
+ "minLength": 1,
1192
+ "maxLength": 255
1193
+ },
1194
+ "key": {
1195
+ "$ref": "#/definitions/ModuleKeySchema"
1196
+ }
1197
+ },
1198
+ "required": [
1199
+ "title",
1200
+ "route",
1201
+ "resource",
1202
+ "key"
1203
+ ]
1204
+ }
1205
+ ]
1206
+ },
1207
+ "minItems": 1
1208
+ },
1107
1209
  "jira:workflowValidator": {
1108
1210
  "type": "array",
1109
1211
  "items": {
@@ -1246,6 +1348,20 @@
1246
1348
  }
1247
1349
  ]
1248
1350
  },
1351
+ "value": {
1352
+ "type": "object",
1353
+ "properties": {
1354
+ "function": {
1355
+ "type": "string",
1356
+ "minLength": 1,
1357
+ "maxLength": 255,
1358
+ "pattern": "^[a-zA-Z0-9-_]+$"
1359
+ }
1360
+ },
1361
+ "required": [
1362
+ "function"
1363
+ ]
1364
+ },
1249
1365
  "key": {
1250
1366
  "$ref": "#/definitions/ModuleKeySchema"
1251
1367
  }
@@ -1362,6 +1478,20 @@
1362
1478
  }
1363
1479
  ]
1364
1480
  },
1481
+ "value": {
1482
+ "type": "object",
1483
+ "properties": {
1484
+ "function": {
1485
+ "type": "string",
1486
+ "minLength": 1,
1487
+ "maxLength": 255,
1488
+ "pattern": "^[a-zA-Z0-9-_]+$"
1489
+ }
1490
+ },
1491
+ "required": [
1492
+ "function"
1493
+ ]
1494
+ },
1365
1495
  "key": {
1366
1496
  "$ref": "#/definitions/ModuleKeySchema"
1367
1497
  }
@@ -1472,6 +1602,20 @@
1472
1602
  }
1473
1603
  ]
1474
1604
  },
1605
+ "value": {
1606
+ "type": "object",
1607
+ "properties": {
1608
+ "function": {
1609
+ "type": "string",
1610
+ "minLength": 1,
1611
+ "maxLength": 255,
1612
+ "pattern": "^[a-zA-Z0-9-_]+$"
1613
+ }
1614
+ },
1615
+ "required": [
1616
+ "function"
1617
+ ]
1618
+ },
1475
1619
  "icon": {
1476
1620
  "type": "string",
1477
1621
  "minLength": 1,
@@ -1639,6 +1783,20 @@
1639
1783
  }
1640
1784
  ]
1641
1785
  },
1786
+ "value": {
1787
+ "type": "object",
1788
+ "properties": {
1789
+ "function": {
1790
+ "type": "string",
1791
+ "minLength": 1,
1792
+ "maxLength": 255,
1793
+ "pattern": "^[a-zA-Z0-9-_]+$"
1794
+ }
1795
+ },
1796
+ "required": [
1797
+ "function"
1798
+ ]
1799
+ },
1642
1800
  "icon": {
1643
1801
  "type": "string",
1644
1802
  "minLength": 1,
@@ -1815,31 +1973,45 @@
1815
1973
  {
1816
1974
  "type": "object",
1817
1975
  "properties": {
1818
- "title": {
1976
+ "function": {
1819
1977
  "type": "string",
1820
1978
  "minLength": 1,
1821
- "maxLength": 255
1979
+ "maxLength": 255,
1980
+ "pattern": "^[a-zA-Z0-9-_]+$"
1981
+ },
1982
+ "title": {
1983
+ "minLength": 1,
1984
+ "maxLength": 255,
1985
+ "type": "string"
1822
1986
  },
1823
1987
  "label": {
1824
- "type": "string",
1825
1988
  "minLength": 1,
1826
- "maxLength": 255
1989
+ "maxLength": 255,
1990
+ "type": "string"
1827
1991
  },
1828
1992
  "status": {
1829
1993
  "type": "object",
1830
1994
  "properties": {
1995
+ "type": {
1996
+ "enum": [
1997
+ "badge",
1998
+ "icon",
1999
+ "lozenge"
2000
+ ],
2001
+ "type": "string"
2002
+ },
1831
2003
  "value": {
1832
2004
  "type": "object",
1833
2005
  "properties": {
1834
2006
  "label": {
1835
- "type": "string",
1836
2007
  "minLength": 1,
1837
- "maxLength": 255
2008
+ "maxLength": 255,
2009
+ "type": "string"
2010
+ },
2011
+ "url": {
2012
+ "type": "string"
1838
2013
  },
1839
2014
  "type": {
1840
- "type": "string",
1841
- "minLength": 1,
1842
- "maxLength": 255,
1843
2015
  "enum": [
1844
2016
  "default",
1845
2017
  "inprogress",
@@ -1847,73 +2019,93 @@
1847
2019
  "new",
1848
2020
  "removed",
1849
2021
  "success"
1850
- ]
2022
+ ],
2023
+ "type": "string"
1851
2024
  }
1852
2025
  },
1853
2026
  "required": [
1854
2027
  "label"
1855
2028
  ]
1856
- },
1857
- "type": {
1858
- "type": "string",
1859
- "minLength": 1,
1860
- "maxLength": 255,
1861
- "enum": [
1862
- "badge",
1863
- "lozenge"
1864
- ]
1865
2029
  }
1866
2030
  },
1867
2031
  "required": [
1868
- "value",
1869
- "type"
2032
+ "type",
2033
+ "value"
1870
2034
  ]
1871
2035
  },
1872
- "function": {
2036
+ "icon": {
1873
2037
  "type": "string",
1874
2038
  "minLength": 1,
1875
- "maxLength": 255,
1876
- "pattern": "^[a-zA-Z0-9-_]+$"
2039
+ "maxLength": 255
1877
2040
  },
1878
2041
  "key": {
1879
2042
  "$ref": "#/definitions/ModuleKeySchema"
1880
2043
  }
1881
2044
  },
1882
2045
  "required": [
1883
- "title",
1884
- "label",
1885
2046
  "function",
2047
+ "label",
2048
+ "title",
1886
2049
  "key"
1887
2050
  ]
1888
2051
  },
1889
2052
  {
1890
2053
  "type": "object",
1891
2054
  "properties": {
1892
- "title": {
2055
+ "resource": {
1893
2056
  "type": "string",
1894
2057
  "minLength": 1,
1895
- "maxLength": 255
2058
+ "maxLength": 23,
2059
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
2060
+ },
2061
+ "resolver": {
2062
+ "additionalProperties": false,
2063
+ "type": "object",
2064
+ "properties": {
2065
+ "function": {
2066
+ "type": "string",
2067
+ "minLength": 1,
2068
+ "maxLength": 255,
2069
+ "pattern": "^[a-zA-Z0-9-_]+$"
2070
+ }
2071
+ },
2072
+ "required": [
2073
+ "function"
2074
+ ]
2075
+ },
2076
+ "title": {
2077
+ "minLength": 1,
2078
+ "maxLength": 255,
2079
+ "type": "string"
1896
2080
  },
1897
2081
  "label": {
1898
- "type": "string",
1899
2082
  "minLength": 1,
1900
- "maxLength": 255
2083
+ "maxLength": 255,
2084
+ "type": "string"
1901
2085
  },
1902
2086
  "status": {
1903
2087
  "type": "object",
1904
2088
  "properties": {
2089
+ "type": {
2090
+ "enum": [
2091
+ "badge",
2092
+ "icon",
2093
+ "lozenge"
2094
+ ],
2095
+ "type": "string"
2096
+ },
1905
2097
  "value": {
1906
2098
  "type": "object",
1907
2099
  "properties": {
1908
2100
  "label": {
1909
- "type": "string",
1910
2101
  "minLength": 1,
1911
- "maxLength": 255
2102
+ "maxLength": 255,
2103
+ "type": "string"
2104
+ },
2105
+ "url": {
2106
+ "type": "string"
1912
2107
  },
1913
2108
  "type": {
1914
- "type": "string",
1915
- "minLength": 1,
1916
- "maxLength": 255,
1917
2109
  "enum": [
1918
2110
  "default",
1919
2111
  "inprogress",
@@ -1921,50 +2113,21 @@
1921
2113
  "new",
1922
2114
  "removed",
1923
2115
  "success"
1924
- ]
2116
+ ],
2117
+ "type": "string"
1925
2118
  }
1926
2119
  },
1927
2120
  "required": [
1928
2121
  "label"
1929
2122
  ]
1930
- },
1931
- "type": {
1932
- "type": "string",
1933
- "minLength": 1,
1934
- "maxLength": 255,
1935
- "enum": [
1936
- "badge",
1937
- "lozenge"
1938
- ]
1939
- }
1940
- },
1941
- "required": [
1942
- "value",
1943
- "type"
1944
- ]
1945
- },
1946
- "resolver": {
1947
- "additionalProperties": false,
1948
- "type": "object",
1949
- "properties": {
1950
- "function": {
1951
- "type": "string",
1952
- "minLength": 1,
1953
- "maxLength": 255,
1954
- "pattern": "^[a-zA-Z0-9-_]+$"
1955
2123
  }
1956
2124
  },
1957
2125
  "required": [
1958
- "function"
2126
+ "type",
2127
+ "value"
1959
2128
  ]
1960
2129
  },
1961
- "resource": {
1962
- "type": "string",
1963
- "minLength": 1,
1964
- "maxLength": 23,
1965
- "pattern": "^[a-zA-Z0-9_\\-]+$"
1966
- },
1967
- "resourceUploadId": {
2130
+ "icon": {
1968
2131
  "type": "string",
1969
2132
  "minLength": 1,
1970
2133
  "maxLength": 255
@@ -1974,9 +2137,9 @@
1974
2137
  }
1975
2138
  },
1976
2139
  "required": [
1977
- "title",
1978
2140
  "label",
1979
2141
  "resource",
2142
+ "title",
1980
2143
  "key"
1981
2144
  ]
1982
2145
  }
@@ -2286,12 +2449,13 @@
2286
2449
  "oneOf": [
2287
2450
  {
2288
2451
  "type": "object",
2289
- "required": [
2290
- "title",
2291
- "function",
2292
- "key"
2293
- ],
2294
2452
  "properties": {
2453
+ "function": {
2454
+ "type": "string",
2455
+ "minLength": 1,
2456
+ "maxLength": 255,
2457
+ "pattern": "^[a-zA-Z0-9-_]+$"
2458
+ },
2295
2459
  "title": {
2296
2460
  "type": "string",
2297
2461
  "minLength": 1,
@@ -2303,52 +2467,36 @@
2303
2467
  "maxLength": 255
2304
2468
  },
2305
2469
  "layout": {
2306
- "type": "string",
2307
- "minLength": 1,
2308
- "maxLength": 255,
2309
2470
  "enum": [
2310
- "native",
2311
- "basic"
2312
- ]
2313
- },
2314
- "function": {
2315
- "type": "string",
2316
- "minLength": 1,
2317
- "maxLength": 255,
2318
- "pattern": "^[a-zA-Z0-9-_]+$"
2471
+ "basic",
2472
+ "native"
2473
+ ],
2474
+ "type": "string"
2319
2475
  },
2320
2476
  "key": {
2321
2477
  "$ref": "#/definitions/ModuleKeySchema"
2322
2478
  }
2323
- }
2324
- },
2325
- {
2326
- "type": "object",
2479
+ },
2327
2480
  "required": [
2481
+ "function",
2328
2482
  "title",
2329
- "resource",
2330
2483
  "key"
2331
- ],
2484
+ ]
2485
+ },
2486
+ {
2487
+ "type": "object",
2332
2488
  "properties": {
2333
- "title": {
2489
+ "resource": {
2334
2490
  "type": "string",
2335
2491
  "minLength": 1,
2336
- "maxLength": 255
2492
+ "maxLength": 23,
2493
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
2337
2494
  },
2338
- "icon": {
2495
+ "resourceUploadId": {
2339
2496
  "type": "string",
2340
2497
  "minLength": 1,
2341
2498
  "maxLength": 255
2342
2499
  },
2343
- "layout": {
2344
- "type": "string",
2345
- "minLength": 1,
2346
- "maxLength": 255,
2347
- "enum": [
2348
- "native",
2349
- "basic"
2350
- ]
2351
- },
2352
2500
  "resolver": {
2353
2501
  "additionalProperties": false,
2354
2502
  "type": "object",
@@ -2364,94 +2512,173 @@
2364
2512
  "function"
2365
2513
  ]
2366
2514
  },
2367
- "resource": {
2515
+ "title": {
2368
2516
  "type": "string",
2369
2517
  "minLength": 1,
2370
- "maxLength": 23,
2371
- "pattern": "^[a-zA-Z0-9_\\-]+$"
2518
+ "maxLength": 255
2372
2519
  },
2373
- "resourceUploadId": {
2520
+ "icon": {
2374
2521
  "type": "string",
2375
2522
  "minLength": 1,
2376
2523
  "maxLength": 255
2377
2524
  },
2525
+ "layout": {
2526
+ "enum": [
2527
+ "basic",
2528
+ "native"
2529
+ ],
2530
+ "type": "string"
2531
+ },
2378
2532
  "key": {
2379
2533
  "$ref": "#/definitions/ModuleKeySchema"
2380
2534
  }
2381
- }
2382
- }
2383
- ]
2384
- },
2385
- "minItems": 1
2386
- },
2387
- "jira:projectPage": {
2388
- "type": "array",
2389
- "items": {
2390
- "oneOf": [
2391
- {
2392
- "type": "object",
2535
+ },
2393
2536
  "required": [
2537
+ "resource",
2394
2538
  "title",
2395
- "function",
2396
2539
  "key"
2397
- ],
2540
+ ]
2541
+ },
2542
+ {
2543
+ "type": "object",
2398
2544
  "properties": {
2399
- "title": {
2545
+ "pages": {
2546
+ "type": "array",
2547
+ "items": {
2548
+ "type": "object",
2549
+ "properties": {
2550
+ "title": {
2551
+ "type": "string",
2552
+ "minLength": 1,
2553
+ "maxLength": 255
2554
+ },
2555
+ "route": {
2556
+ "minLength": 1,
2557
+ "maxLength": 255,
2558
+ "type": "string"
2559
+ },
2560
+ "icon": {
2561
+ "type": "string",
2562
+ "minLength": 1,
2563
+ "maxLength": 255
2564
+ }
2565
+ },
2566
+ "required": [
2567
+ "route",
2568
+ "title"
2569
+ ]
2570
+ }
2571
+ },
2572
+ "resource": {
2400
2573
  "type": "string",
2401
2574
  "minLength": 1,
2402
- "maxLength": 255
2575
+ "maxLength": 23,
2576
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
2403
2577
  },
2404
- "icon": {
2578
+ "resourceUploadId": {
2405
2579
  "type": "string",
2406
2580
  "minLength": 1,
2407
2581
  "maxLength": 255
2408
2582
  },
2409
- "layout": {
2583
+ "resolver": {
2584
+ "additionalProperties": false,
2585
+ "type": "object",
2586
+ "properties": {
2587
+ "function": {
2588
+ "type": "string",
2589
+ "minLength": 1,
2590
+ "maxLength": 255,
2591
+ "pattern": "^[a-zA-Z0-9-_]+$"
2592
+ }
2593
+ },
2594
+ "required": [
2595
+ "function"
2596
+ ]
2597
+ },
2598
+ "title": {
2410
2599
  "type": "string",
2411
2600
  "minLength": 1,
2412
- "maxLength": 255,
2413
- "enum": [
2414
- "native",
2415
- "basic"
2416
- ]
2601
+ "maxLength": 255
2417
2602
  },
2418
- "function": {
2603
+ "icon": {
2419
2604
  "type": "string",
2420
2605
  "minLength": 1,
2421
- "maxLength": 255,
2422
- "pattern": "^[a-zA-Z0-9-_]+$"
2606
+ "maxLength": 255
2607
+ },
2608
+ "layout": {
2609
+ "enum": [
2610
+ "basic",
2611
+ "native"
2612
+ ],
2613
+ "type": "string"
2423
2614
  },
2424
2615
  "key": {
2425
2616
  "$ref": "#/definitions/ModuleKeySchema"
2426
2617
  }
2427
- }
2428
- },
2429
- {
2430
- "type": "object",
2618
+ },
2431
2619
  "required": [
2432
- "title",
2620
+ "pages",
2433
2621
  "resource",
2622
+ "title",
2434
2623
  "key"
2435
- ],
2624
+ ]
2625
+ },
2626
+ {
2627
+ "type": "object",
2436
2628
  "properties": {
2437
- "title": {
2438
- "type": "string",
2439
- "minLength": 1,
2440
- "maxLength": 255
2629
+ "sections": {
2630
+ "type": "array",
2631
+ "items": {
2632
+ "type": "object",
2633
+ "properties": {
2634
+ "header": {
2635
+ "minLength": 1,
2636
+ "maxLength": 255,
2637
+ "type": "string"
2638
+ },
2639
+ "pages": {
2640
+ "type": "array",
2641
+ "items": {
2642
+ "type": "object",
2643
+ "properties": {
2644
+ "title": {
2645
+ "type": "string",
2646
+ "minLength": 1,
2647
+ "maxLength": 255
2648
+ },
2649
+ "route": {
2650
+ "minLength": 1,
2651
+ "maxLength": 255,
2652
+ "type": "string"
2653
+ },
2654
+ "icon": {
2655
+ "type": "string",
2656
+ "minLength": 1,
2657
+ "maxLength": 255
2658
+ }
2659
+ },
2660
+ "required": [
2661
+ "route",
2662
+ "title"
2663
+ ]
2664
+ }
2665
+ }
2666
+ },
2667
+ "required": [
2668
+ "pages"
2669
+ ]
2670
+ }
2441
2671
  },
2442
- "icon": {
2672
+ "resource": {
2443
2673
  "type": "string",
2444
2674
  "minLength": 1,
2445
- "maxLength": 255
2675
+ "maxLength": 23,
2676
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
2446
2677
  },
2447
- "layout": {
2678
+ "resourceUploadId": {
2448
2679
  "type": "string",
2449
2680
  "minLength": 1,
2450
- "maxLength": 255,
2451
- "enum": [
2452
- "native",
2453
- "basic"
2454
- ]
2681
+ "maxLength": 255
2455
2682
  },
2456
2683
  "resolver": {
2457
2684
  "additionalProperties": false,
@@ -2468,38 +2695,51 @@
2468
2695
  "function"
2469
2696
  ]
2470
2697
  },
2471
- "resource": {
2698
+ "title": {
2472
2699
  "type": "string",
2473
2700
  "minLength": 1,
2474
- "maxLength": 23,
2475
- "pattern": "^[a-zA-Z0-9_\\-]+$"
2701
+ "maxLength": 255
2476
2702
  },
2477
- "resourceUploadId": {
2703
+ "icon": {
2478
2704
  "type": "string",
2479
2705
  "minLength": 1,
2480
2706
  "maxLength": 255
2481
2707
  },
2708
+ "layout": {
2709
+ "enum": [
2710
+ "basic",
2711
+ "native"
2712
+ ],
2713
+ "type": "string"
2714
+ },
2482
2715
  "key": {
2483
2716
  "$ref": "#/definitions/ModuleKeySchema"
2484
2717
  }
2485
- }
2718
+ },
2719
+ "required": [
2720
+ "resource",
2721
+ "sections",
2722
+ "title",
2723
+ "key"
2724
+ ]
2486
2725
  }
2487
2726
  ]
2488
2727
  },
2489
2728
  "minItems": 1
2490
2729
  },
2491
- "compass:adminPage": {
2730
+ "jira:projectPage": {
2492
2731
  "type": "array",
2493
2732
  "items": {
2494
2733
  "oneOf": [
2495
2734
  {
2496
2735
  "type": "object",
2497
- "required": [
2498
- "title",
2499
- "function",
2500
- "key"
2501
- ],
2502
2736
  "properties": {
2737
+ "function": {
2738
+ "type": "string",
2739
+ "minLength": 1,
2740
+ "maxLength": 255,
2741
+ "pattern": "^[a-zA-Z0-9-_]+$"
2742
+ },
2503
2743
  "title": {
2504
2744
  "type": "string",
2505
2745
  "minLength": 1,
@@ -2510,17 +2750,868 @@
2510
2750
  "minLength": 1,
2511
2751
  "maxLength": 255
2512
2752
  },
2513
- "function": {
2514
- "type": "string",
2515
- "minLength": 1,
2516
- "maxLength": 255,
2517
- "pattern": "^[a-zA-Z0-9-_]+$"
2753
+ "layout": {
2754
+ "enum": [
2755
+ "basic",
2756
+ "native"
2757
+ ],
2758
+ "type": "string"
2518
2759
  },
2519
2760
  "key": {
2520
2761
  "$ref": "#/definitions/ModuleKeySchema"
2521
2762
  }
2522
- }
2523
- },
2763
+ },
2764
+ "required": [
2765
+ "function",
2766
+ "title",
2767
+ "key"
2768
+ ]
2769
+ },
2770
+ {
2771
+ "type": "object",
2772
+ "properties": {
2773
+ "resource": {
2774
+ "type": "string",
2775
+ "minLength": 1,
2776
+ "maxLength": 23,
2777
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
2778
+ },
2779
+ "resourceUploadId": {
2780
+ "type": "string",
2781
+ "minLength": 1,
2782
+ "maxLength": 255
2783
+ },
2784
+ "resolver": {
2785
+ "additionalProperties": false,
2786
+ "type": "object",
2787
+ "properties": {
2788
+ "function": {
2789
+ "type": "string",
2790
+ "minLength": 1,
2791
+ "maxLength": 255,
2792
+ "pattern": "^[a-zA-Z0-9-_]+$"
2793
+ }
2794
+ },
2795
+ "required": [
2796
+ "function"
2797
+ ]
2798
+ },
2799
+ "title": {
2800
+ "type": "string",
2801
+ "minLength": 1,
2802
+ "maxLength": 255
2803
+ },
2804
+ "icon": {
2805
+ "type": "string",
2806
+ "minLength": 1,
2807
+ "maxLength": 255
2808
+ },
2809
+ "layout": {
2810
+ "enum": [
2811
+ "basic",
2812
+ "native"
2813
+ ],
2814
+ "type": "string"
2815
+ },
2816
+ "key": {
2817
+ "$ref": "#/definitions/ModuleKeySchema"
2818
+ }
2819
+ },
2820
+ "required": [
2821
+ "resource",
2822
+ "title",
2823
+ "key"
2824
+ ]
2825
+ },
2826
+ {
2827
+ "type": "object",
2828
+ "properties": {
2829
+ "pages": {
2830
+ "type": "array",
2831
+ "items": {
2832
+ "type": "object",
2833
+ "properties": {
2834
+ "title": {
2835
+ "type": "string",
2836
+ "minLength": 1,
2837
+ "maxLength": 255
2838
+ },
2839
+ "route": {
2840
+ "minLength": 1,
2841
+ "maxLength": 255,
2842
+ "type": "string"
2843
+ },
2844
+ "icon": {
2845
+ "type": "string",
2846
+ "minLength": 1,
2847
+ "maxLength": 255
2848
+ }
2849
+ },
2850
+ "required": [
2851
+ "route",
2852
+ "title"
2853
+ ]
2854
+ }
2855
+ },
2856
+ "resource": {
2857
+ "type": "string",
2858
+ "minLength": 1,
2859
+ "maxLength": 23,
2860
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
2861
+ },
2862
+ "resourceUploadId": {
2863
+ "type": "string",
2864
+ "minLength": 1,
2865
+ "maxLength": 255
2866
+ },
2867
+ "resolver": {
2868
+ "additionalProperties": false,
2869
+ "type": "object",
2870
+ "properties": {
2871
+ "function": {
2872
+ "type": "string",
2873
+ "minLength": 1,
2874
+ "maxLength": 255,
2875
+ "pattern": "^[a-zA-Z0-9-_]+$"
2876
+ }
2877
+ },
2878
+ "required": [
2879
+ "function"
2880
+ ]
2881
+ },
2882
+ "title": {
2883
+ "type": "string",
2884
+ "minLength": 1,
2885
+ "maxLength": 255
2886
+ },
2887
+ "icon": {
2888
+ "type": "string",
2889
+ "minLength": 1,
2890
+ "maxLength": 255
2891
+ },
2892
+ "layout": {
2893
+ "enum": [
2894
+ "basic",
2895
+ "native"
2896
+ ],
2897
+ "type": "string"
2898
+ },
2899
+ "key": {
2900
+ "$ref": "#/definitions/ModuleKeySchema"
2901
+ }
2902
+ },
2903
+ "required": [
2904
+ "pages",
2905
+ "resource",
2906
+ "title",
2907
+ "key"
2908
+ ]
2909
+ },
2910
+ {
2911
+ "type": "object",
2912
+ "properties": {
2913
+ "sections": {
2914
+ "type": "array",
2915
+ "items": {
2916
+ "type": "object",
2917
+ "properties": {
2918
+ "header": {
2919
+ "minLength": 1,
2920
+ "maxLength": 255,
2921
+ "type": "string"
2922
+ },
2923
+ "pages": {
2924
+ "type": "array",
2925
+ "items": {
2926
+ "type": "object",
2927
+ "properties": {
2928
+ "title": {
2929
+ "type": "string",
2930
+ "minLength": 1,
2931
+ "maxLength": 255
2932
+ },
2933
+ "route": {
2934
+ "minLength": 1,
2935
+ "maxLength": 255,
2936
+ "type": "string"
2937
+ },
2938
+ "icon": {
2939
+ "type": "string",
2940
+ "minLength": 1,
2941
+ "maxLength": 255
2942
+ }
2943
+ },
2944
+ "required": [
2945
+ "route",
2946
+ "title"
2947
+ ]
2948
+ }
2949
+ }
2950
+ },
2951
+ "required": [
2952
+ "pages"
2953
+ ]
2954
+ }
2955
+ },
2956
+ "resource": {
2957
+ "type": "string",
2958
+ "minLength": 1,
2959
+ "maxLength": 23,
2960
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
2961
+ },
2962
+ "resourceUploadId": {
2963
+ "type": "string",
2964
+ "minLength": 1,
2965
+ "maxLength": 255
2966
+ },
2967
+ "resolver": {
2968
+ "additionalProperties": false,
2969
+ "type": "object",
2970
+ "properties": {
2971
+ "function": {
2972
+ "type": "string",
2973
+ "minLength": 1,
2974
+ "maxLength": 255,
2975
+ "pattern": "^[a-zA-Z0-9-_]+$"
2976
+ }
2977
+ },
2978
+ "required": [
2979
+ "function"
2980
+ ]
2981
+ },
2982
+ "title": {
2983
+ "type": "string",
2984
+ "minLength": 1,
2985
+ "maxLength": 255
2986
+ },
2987
+ "icon": {
2988
+ "type": "string",
2989
+ "minLength": 1,
2990
+ "maxLength": 255
2991
+ },
2992
+ "layout": {
2993
+ "enum": [
2994
+ "basic",
2995
+ "native"
2996
+ ],
2997
+ "type": "string"
2998
+ },
2999
+ "key": {
3000
+ "$ref": "#/definitions/ModuleKeySchema"
3001
+ }
3002
+ },
3003
+ "required": [
3004
+ "resource",
3005
+ "sections",
3006
+ "title",
3007
+ "key"
3008
+ ]
3009
+ }
3010
+ ]
3011
+ },
3012
+ "minItems": 1
3013
+ },
3014
+ "jira:globalPage": {
3015
+ "type": "array",
3016
+ "items": {
3017
+ "oneOf": [
3018
+ {
3019
+ "type": "object",
3020
+ "properties": {
3021
+ "function": {
3022
+ "type": "string",
3023
+ "minLength": 1,
3024
+ "maxLength": 255,
3025
+ "pattern": "^[a-zA-Z0-9-_]+$"
3026
+ },
3027
+ "title": {
3028
+ "type": "string",
3029
+ "minLength": 1,
3030
+ "maxLength": 255
3031
+ },
3032
+ "icon": {
3033
+ "type": "string",
3034
+ "minLength": 1,
3035
+ "maxLength": 255
3036
+ },
3037
+ "layout": {
3038
+ "enum": [
3039
+ "basic",
3040
+ "native"
3041
+ ],
3042
+ "type": "string"
3043
+ },
3044
+ "key": {
3045
+ "$ref": "#/definitions/ModuleKeySchema"
3046
+ }
3047
+ },
3048
+ "required": [
3049
+ "function",
3050
+ "title",
3051
+ "key"
3052
+ ]
3053
+ },
3054
+ {
3055
+ "type": "object",
3056
+ "properties": {
3057
+ "resource": {
3058
+ "type": "string",
3059
+ "minLength": 1,
3060
+ "maxLength": 23,
3061
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3062
+ },
3063
+ "resourceUploadId": {
3064
+ "type": "string",
3065
+ "minLength": 1,
3066
+ "maxLength": 255
3067
+ },
3068
+ "resolver": {
3069
+ "additionalProperties": false,
3070
+ "type": "object",
3071
+ "properties": {
3072
+ "function": {
3073
+ "type": "string",
3074
+ "minLength": 1,
3075
+ "maxLength": 255,
3076
+ "pattern": "^[a-zA-Z0-9-_]+$"
3077
+ }
3078
+ },
3079
+ "required": [
3080
+ "function"
3081
+ ]
3082
+ },
3083
+ "title": {
3084
+ "type": "string",
3085
+ "minLength": 1,
3086
+ "maxLength": 255
3087
+ },
3088
+ "icon": {
3089
+ "type": "string",
3090
+ "minLength": 1,
3091
+ "maxLength": 255
3092
+ },
3093
+ "layout": {
3094
+ "enum": [
3095
+ "basic",
3096
+ "native"
3097
+ ],
3098
+ "type": "string"
3099
+ },
3100
+ "key": {
3101
+ "$ref": "#/definitions/ModuleKeySchema"
3102
+ }
3103
+ },
3104
+ "required": [
3105
+ "resource",
3106
+ "title",
3107
+ "key"
3108
+ ]
3109
+ },
3110
+ {
3111
+ "type": "object",
3112
+ "properties": {
3113
+ "pages": {
3114
+ "type": "array",
3115
+ "items": {
3116
+ "type": "object",
3117
+ "properties": {
3118
+ "title": {
3119
+ "type": "string",
3120
+ "minLength": 1,
3121
+ "maxLength": 255
3122
+ },
3123
+ "route": {
3124
+ "minLength": 1,
3125
+ "maxLength": 255,
3126
+ "type": "string"
3127
+ },
3128
+ "icon": {
3129
+ "type": "string",
3130
+ "minLength": 1,
3131
+ "maxLength": 255
3132
+ }
3133
+ },
3134
+ "required": [
3135
+ "route",
3136
+ "title"
3137
+ ]
3138
+ }
3139
+ },
3140
+ "resource": {
3141
+ "type": "string",
3142
+ "minLength": 1,
3143
+ "maxLength": 23,
3144
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3145
+ },
3146
+ "resourceUploadId": {
3147
+ "type": "string",
3148
+ "minLength": 1,
3149
+ "maxLength": 255
3150
+ },
3151
+ "resolver": {
3152
+ "additionalProperties": false,
3153
+ "type": "object",
3154
+ "properties": {
3155
+ "function": {
3156
+ "type": "string",
3157
+ "minLength": 1,
3158
+ "maxLength": 255,
3159
+ "pattern": "^[a-zA-Z0-9-_]+$"
3160
+ }
3161
+ },
3162
+ "required": [
3163
+ "function"
3164
+ ]
3165
+ },
3166
+ "title": {
3167
+ "type": "string",
3168
+ "minLength": 1,
3169
+ "maxLength": 255
3170
+ },
3171
+ "icon": {
3172
+ "type": "string",
3173
+ "minLength": 1,
3174
+ "maxLength": 255
3175
+ },
3176
+ "layout": {
3177
+ "enum": [
3178
+ "basic",
3179
+ "native"
3180
+ ],
3181
+ "type": "string"
3182
+ },
3183
+ "key": {
3184
+ "$ref": "#/definitions/ModuleKeySchema"
3185
+ }
3186
+ },
3187
+ "required": [
3188
+ "pages",
3189
+ "resource",
3190
+ "title",
3191
+ "key"
3192
+ ]
3193
+ },
3194
+ {
3195
+ "type": "object",
3196
+ "properties": {
3197
+ "sections": {
3198
+ "type": "array",
3199
+ "items": {
3200
+ "type": "object",
3201
+ "properties": {
3202
+ "header": {
3203
+ "minLength": 1,
3204
+ "maxLength": 255,
3205
+ "type": "string"
3206
+ },
3207
+ "pages": {
3208
+ "type": "array",
3209
+ "items": {
3210
+ "type": "object",
3211
+ "properties": {
3212
+ "title": {
3213
+ "type": "string",
3214
+ "minLength": 1,
3215
+ "maxLength": 255
3216
+ },
3217
+ "route": {
3218
+ "minLength": 1,
3219
+ "maxLength": 255,
3220
+ "type": "string"
3221
+ },
3222
+ "icon": {
3223
+ "type": "string",
3224
+ "minLength": 1,
3225
+ "maxLength": 255
3226
+ }
3227
+ },
3228
+ "required": [
3229
+ "route",
3230
+ "title"
3231
+ ]
3232
+ }
3233
+ }
3234
+ },
3235
+ "required": [
3236
+ "pages"
3237
+ ]
3238
+ }
3239
+ },
3240
+ "resource": {
3241
+ "type": "string",
3242
+ "minLength": 1,
3243
+ "maxLength": 23,
3244
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3245
+ },
3246
+ "resourceUploadId": {
3247
+ "type": "string",
3248
+ "minLength": 1,
3249
+ "maxLength": 255
3250
+ },
3251
+ "resolver": {
3252
+ "additionalProperties": false,
3253
+ "type": "object",
3254
+ "properties": {
3255
+ "function": {
3256
+ "type": "string",
3257
+ "minLength": 1,
3258
+ "maxLength": 255,
3259
+ "pattern": "^[a-zA-Z0-9-_]+$"
3260
+ }
3261
+ },
3262
+ "required": [
3263
+ "function"
3264
+ ]
3265
+ },
3266
+ "title": {
3267
+ "type": "string",
3268
+ "minLength": 1,
3269
+ "maxLength": 255
3270
+ },
3271
+ "icon": {
3272
+ "type": "string",
3273
+ "minLength": 1,
3274
+ "maxLength": 255
3275
+ },
3276
+ "layout": {
3277
+ "enum": [
3278
+ "basic",
3279
+ "native"
3280
+ ],
3281
+ "type": "string"
3282
+ },
3283
+ "key": {
3284
+ "$ref": "#/definitions/ModuleKeySchema"
3285
+ }
3286
+ },
3287
+ "required": [
3288
+ "resource",
3289
+ "sections",
3290
+ "title",
3291
+ "key"
3292
+ ]
3293
+ }
3294
+ ]
3295
+ },
3296
+ "minItems": 1
3297
+ },
3298
+ "jira:projectSettingsPage": {
3299
+ "type": "array",
3300
+ "items": {
3301
+ "oneOf": [
3302
+ {
3303
+ "type": "object",
3304
+ "properties": {
3305
+ "function": {
3306
+ "type": "string",
3307
+ "minLength": 1,
3308
+ "maxLength": 255,
3309
+ "pattern": "^[a-zA-Z0-9-_]+$"
3310
+ },
3311
+ "title": {
3312
+ "type": "string",
3313
+ "minLength": 1,
3314
+ "maxLength": 255
3315
+ },
3316
+ "icon": {
3317
+ "type": "string",
3318
+ "minLength": 1,
3319
+ "maxLength": 255
3320
+ },
3321
+ "layout": {
3322
+ "enum": [
3323
+ "basic",
3324
+ "native"
3325
+ ],
3326
+ "type": "string"
3327
+ },
3328
+ "key": {
3329
+ "$ref": "#/definitions/ModuleKeySchema"
3330
+ }
3331
+ },
3332
+ "required": [
3333
+ "function",
3334
+ "title",
3335
+ "key"
3336
+ ]
3337
+ },
3338
+ {
3339
+ "type": "object",
3340
+ "properties": {
3341
+ "resource": {
3342
+ "type": "string",
3343
+ "minLength": 1,
3344
+ "maxLength": 23,
3345
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3346
+ },
3347
+ "resourceUploadId": {
3348
+ "type": "string",
3349
+ "minLength": 1,
3350
+ "maxLength": 255
3351
+ },
3352
+ "resolver": {
3353
+ "additionalProperties": false,
3354
+ "type": "object",
3355
+ "properties": {
3356
+ "function": {
3357
+ "type": "string",
3358
+ "minLength": 1,
3359
+ "maxLength": 255,
3360
+ "pattern": "^[a-zA-Z0-9-_]+$"
3361
+ }
3362
+ },
3363
+ "required": [
3364
+ "function"
3365
+ ]
3366
+ },
3367
+ "title": {
3368
+ "type": "string",
3369
+ "minLength": 1,
3370
+ "maxLength": 255
3371
+ },
3372
+ "icon": {
3373
+ "type": "string",
3374
+ "minLength": 1,
3375
+ "maxLength": 255
3376
+ },
3377
+ "layout": {
3378
+ "enum": [
3379
+ "basic",
3380
+ "native"
3381
+ ],
3382
+ "type": "string"
3383
+ },
3384
+ "key": {
3385
+ "$ref": "#/definitions/ModuleKeySchema"
3386
+ }
3387
+ },
3388
+ "required": [
3389
+ "resource",
3390
+ "title",
3391
+ "key"
3392
+ ]
3393
+ },
3394
+ {
3395
+ "type": "object",
3396
+ "properties": {
3397
+ "pages": {
3398
+ "type": "array",
3399
+ "items": {
3400
+ "type": "object",
3401
+ "properties": {
3402
+ "title": {
3403
+ "type": "string",
3404
+ "minLength": 1,
3405
+ "maxLength": 255
3406
+ },
3407
+ "route": {
3408
+ "minLength": 1,
3409
+ "maxLength": 255,
3410
+ "type": "string"
3411
+ },
3412
+ "icon": {
3413
+ "type": "string",
3414
+ "minLength": 1,
3415
+ "maxLength": 255
3416
+ }
3417
+ },
3418
+ "required": [
3419
+ "route",
3420
+ "title"
3421
+ ]
3422
+ }
3423
+ },
3424
+ "resource": {
3425
+ "type": "string",
3426
+ "minLength": 1,
3427
+ "maxLength": 23,
3428
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3429
+ },
3430
+ "resourceUploadId": {
3431
+ "type": "string",
3432
+ "minLength": 1,
3433
+ "maxLength": 255
3434
+ },
3435
+ "resolver": {
3436
+ "additionalProperties": false,
3437
+ "type": "object",
3438
+ "properties": {
3439
+ "function": {
3440
+ "type": "string",
3441
+ "minLength": 1,
3442
+ "maxLength": 255,
3443
+ "pattern": "^[a-zA-Z0-9-_]+$"
3444
+ }
3445
+ },
3446
+ "required": [
3447
+ "function"
3448
+ ]
3449
+ },
3450
+ "title": {
3451
+ "type": "string",
3452
+ "minLength": 1,
3453
+ "maxLength": 255
3454
+ },
3455
+ "icon": {
3456
+ "type": "string",
3457
+ "minLength": 1,
3458
+ "maxLength": 255
3459
+ },
3460
+ "layout": {
3461
+ "enum": [
3462
+ "basic",
3463
+ "native"
3464
+ ],
3465
+ "type": "string"
3466
+ },
3467
+ "key": {
3468
+ "$ref": "#/definitions/ModuleKeySchema"
3469
+ }
3470
+ },
3471
+ "required": [
3472
+ "pages",
3473
+ "resource",
3474
+ "title",
3475
+ "key"
3476
+ ]
3477
+ },
3478
+ {
3479
+ "type": "object",
3480
+ "properties": {
3481
+ "sections": {
3482
+ "type": "array",
3483
+ "items": {
3484
+ "type": "object",
3485
+ "properties": {
3486
+ "header": {
3487
+ "minLength": 1,
3488
+ "maxLength": 255,
3489
+ "type": "string"
3490
+ },
3491
+ "pages": {
3492
+ "type": "array",
3493
+ "items": {
3494
+ "type": "object",
3495
+ "properties": {
3496
+ "title": {
3497
+ "type": "string",
3498
+ "minLength": 1,
3499
+ "maxLength": 255
3500
+ },
3501
+ "route": {
3502
+ "minLength": 1,
3503
+ "maxLength": 255,
3504
+ "type": "string"
3505
+ },
3506
+ "icon": {
3507
+ "type": "string",
3508
+ "minLength": 1,
3509
+ "maxLength": 255
3510
+ }
3511
+ },
3512
+ "required": [
3513
+ "route",
3514
+ "title"
3515
+ ]
3516
+ }
3517
+ }
3518
+ },
3519
+ "required": [
3520
+ "pages"
3521
+ ]
3522
+ }
3523
+ },
3524
+ "resource": {
3525
+ "type": "string",
3526
+ "minLength": 1,
3527
+ "maxLength": 23,
3528
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3529
+ },
3530
+ "resourceUploadId": {
3531
+ "type": "string",
3532
+ "minLength": 1,
3533
+ "maxLength": 255
3534
+ },
3535
+ "resolver": {
3536
+ "additionalProperties": false,
3537
+ "type": "object",
3538
+ "properties": {
3539
+ "function": {
3540
+ "type": "string",
3541
+ "minLength": 1,
3542
+ "maxLength": 255,
3543
+ "pattern": "^[a-zA-Z0-9-_]+$"
3544
+ }
3545
+ },
3546
+ "required": [
3547
+ "function"
3548
+ ]
3549
+ },
3550
+ "title": {
3551
+ "type": "string",
3552
+ "minLength": 1,
3553
+ "maxLength": 255
3554
+ },
3555
+ "icon": {
3556
+ "type": "string",
3557
+ "minLength": 1,
3558
+ "maxLength": 255
3559
+ },
3560
+ "layout": {
3561
+ "enum": [
3562
+ "basic",
3563
+ "native"
3564
+ ],
3565
+ "type": "string"
3566
+ },
3567
+ "key": {
3568
+ "$ref": "#/definitions/ModuleKeySchema"
3569
+ }
3570
+ },
3571
+ "required": [
3572
+ "resource",
3573
+ "sections",
3574
+ "title",
3575
+ "key"
3576
+ ]
3577
+ }
3578
+ ]
3579
+ },
3580
+ "minItems": 1
3581
+ },
3582
+ "compass:adminPage": {
3583
+ "type": "array",
3584
+ "items": {
3585
+ "oneOf": [
3586
+ {
3587
+ "type": "object",
3588
+ "required": [
3589
+ "title",
3590
+ "function",
3591
+ "key"
3592
+ ],
3593
+ "properties": {
3594
+ "title": {
3595
+ "type": "string",
3596
+ "minLength": 1,
3597
+ "maxLength": 255
3598
+ },
3599
+ "icon": {
3600
+ "type": "string",
3601
+ "minLength": 1,
3602
+ "maxLength": 255
3603
+ },
3604
+ "function": {
3605
+ "type": "string",
3606
+ "minLength": 1,
3607
+ "maxLength": 255,
3608
+ "pattern": "^[a-zA-Z0-9-_]+$"
3609
+ },
3610
+ "key": {
3611
+ "$ref": "#/definitions/ModuleKeySchema"
3612
+ }
3613
+ }
3614
+ },
2524
3615
  {
2525
3616
  "type": "object",
2526
3617
  "required": [
@@ -2666,6 +3757,92 @@
2666
3757
  },
2667
3758
  "minItems": 1
2668
3759
  },
3760
+ "compass:globalPage": {
3761
+ "type": "array",
3762
+ "items": {
3763
+ "oneOf": [
3764
+ {
3765
+ "type": "object",
3766
+ "required": [
3767
+ "title",
3768
+ "function",
3769
+ "key"
3770
+ ],
3771
+ "properties": {
3772
+ "title": {
3773
+ "type": "string",
3774
+ "minLength": 1,
3775
+ "maxLength": 255
3776
+ },
3777
+ "icon": {
3778
+ "type": "string",
3779
+ "minLength": 1,
3780
+ "maxLength": 255
3781
+ },
3782
+ "function": {
3783
+ "type": "string",
3784
+ "minLength": 1,
3785
+ "maxLength": 255,
3786
+ "pattern": "^[a-zA-Z0-9-_]+$"
3787
+ },
3788
+ "key": {
3789
+ "$ref": "#/definitions/ModuleKeySchema"
3790
+ }
3791
+ }
3792
+ },
3793
+ {
3794
+ "type": "object",
3795
+ "required": [
3796
+ "title",
3797
+ "resource",
3798
+ "key"
3799
+ ],
3800
+ "properties": {
3801
+ "title": {
3802
+ "type": "string",
3803
+ "minLength": 1,
3804
+ "maxLength": 255
3805
+ },
3806
+ "icon": {
3807
+ "type": "string",
3808
+ "minLength": 1,
3809
+ "maxLength": 255
3810
+ },
3811
+ "resolver": {
3812
+ "additionalProperties": false,
3813
+ "type": "object",
3814
+ "properties": {
3815
+ "function": {
3816
+ "type": "string",
3817
+ "minLength": 1,
3818
+ "maxLength": 255,
3819
+ "pattern": "^[a-zA-Z0-9-_]+$"
3820
+ }
3821
+ },
3822
+ "required": [
3823
+ "function"
3824
+ ]
3825
+ },
3826
+ "resource": {
3827
+ "type": "string",
3828
+ "minLength": 1,
3829
+ "maxLength": 23,
3830
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3831
+ },
3832
+ "resourceUploadId": {
3833
+ "type": "string",
3834
+ "minLength": 1,
3835
+ "maxLength": 255
3836
+ },
3837
+ "key": {
3838
+ "$ref": "#/definitions/ModuleKeySchema"
3839
+ }
3840
+ }
3841
+ }
3842
+ ]
3843
+ },
3844
+ "minItems": 1
3845
+ },
2669
3846
  "connect-jira:keyboardShortcuts": {
2670
3847
  "type": "array",
2671
3848
  "items": {
@@ -2759,10 +3936,10 @@
2759
3936
  "type": "object",
2760
3937
  "anyOf": [
2761
3938
  {
2762
- "$ref": "#/definitions/singleCondition"
3939
+ "$ref": "#/definitions/compositeCondition"
2763
3940
  },
2764
3941
  {
2765
- "$ref": "#/definitions/compositeCondition"
3942
+ "$ref": "#/definitions/singleCondition"
2766
3943
  }
2767
3944
  ]
2768
3945
  },
@@ -3183,6 +4360,22 @@
3183
4360
  "title": "Dialog Options",
3184
4361
  "description": "\n\nOptions for a modal dialog <a href=\"../web-item-target/\">web item target</a> or <a href=\"../dialog/\">common module</a>.\n\n <p>\n These options are a subset of those available via the <a href=\"../../jsapi/dialog/\">JavaScript API</a>.\n </p>\n\n <h2>Web Item Example</h2>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialog\",\n \"options\": {\n \"height\": \"100px\",\n \"width\": \"200px\"\n }\n }\n }\n\n\n\n\n <h2>Dialog Example</h2>\n\n\n\n\n\n {\n \"modules\": {\n \"dialogs\": [\n {\n \"url\": \"/my-dialog-content\",\n \"options\": {\n \"size\": \"fullscreen\",\n \"header\": {\n \"value\": \"Example Dialog\"\n }\n },\n \"key\": \"dialog-module-key\"\n }\n ]\n }\n }\n\n\n"
3185
4362
  },
4363
+ {
4364
+ "properties": {
4365
+ "key": {
4366
+ "maxLength": 100,
4367
+ "type": "string",
4368
+ "fieldDescription": "\n\n<p>The key of a <a href=\"../dialog/\">Dialog</a> module declared in this Connect add-on.</p>\n\n <p>\n The dialog module will include the <a href=\"../dialog-options/\">Dialog Options</a>\n that would otherwise need to be specified directly in this options object.\n </p>\n\n"
4369
+ }
4370
+ },
4371
+ "required": [
4372
+ "key"
4373
+ ],
4374
+ "shortClassName": "dialogModuleOptions",
4375
+ "type": "object",
4376
+ "title": "Dialog Module Options",
4377
+ "description": "\n\nOptions for a web-item targeting a common <a href=\"../dialog/\">dialog module</a>.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialogmodule\",\n \"options\": {\n \"key\": \"dialog-module-key\"\n }\n }\n }\n\n\n"
4378
+ },
3186
4379
  {
3187
4380
  "properties": {
3188
4381
  "offsetX": {
@@ -3229,22 +4422,6 @@
3229
4422
  "type": "object",
3230
4423
  "title": "Inline Dialog Options",
3231
4424
  "description": "\n\nOptions for an inline dialog target\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"inlinedialog\",\n \"options\": {\n \"onHover\": true,\n \"offsetX\": \"30px\",\n \"offsetY\": \"20px\"\n }\n }\n }\n\n\n"
3232
- },
3233
- {
3234
- "properties": {
3235
- "key": {
3236
- "maxLength": 100,
3237
- "type": "string",
3238
- "fieldDescription": "\n\n<p>The key of a <a href=\"../dialog/\">Dialog</a> module declared in this Connect add-on.</p>\n\n <p>\n The dialog module will include the <a href=\"../dialog-options/\">Dialog Options</a>\n that would otherwise need to be specified directly in this options object.\n </p>\n\n"
3239
- }
3240
- },
3241
- "required": [
3242
- "key"
3243
- ],
3244
- "shortClassName": "dialogModuleOptions",
3245
- "type": "object",
3246
- "title": "Dialog Module Options",
3247
- "description": "\n\nOptions for a web-item targeting a common <a href=\"../dialog/\">dialog module</a>.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialogmodule\",\n \"options\": {\n \"key\": \"dialog-module-key\"\n }\n }\n }\n\n\n"
3248
4425
  }
3249
4426
  ]
3250
4427
  },
@@ -3301,6 +4478,33 @@
3301
4478
  "items": {
3302
4479
  "type": "object",
3303
4480
  "anyOf": [
4481
+ {
4482
+ "properties": {
4483
+ "condition": {
4484
+ "maxLength": 100,
4485
+ "type": "string",
4486
+ "fieldDescription": "\n\nA string indicating the name of the condition\n\n"
4487
+ },
4488
+ "invert": {
4489
+ "type": "boolean",
4490
+ "fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
4491
+ "defaultValue": "false"
4492
+ },
4493
+ "params": {
4494
+ "additionalProperties": true,
4495
+ "type": "object",
4496
+ "fieldTitle": "Object",
4497
+ "fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
4498
+ }
4499
+ },
4500
+ "required": [
4501
+ "condition"
4502
+ ],
4503
+ "shortClassName": "singleConditionBean",
4504
+ "type": "object",
4505
+ "title": "Single Condition",
4506
+ "description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
4507
+ },
3304
4508
  {
3305
4509
  "properties": {
3306
4510
  "conditions": {
@@ -3308,10 +4512,10 @@
3308
4512
  "type": "object",
3309
4513
  "anyOf": [
3310
4514
  {
3311
- "$ref": "#"
4515
+ "$ref": "#/definitions/singleCondition"
3312
4516
  },
3313
4517
  {
3314
- "$ref": "#/definitions/singleCondition"
4518
+ "$ref": "#"
3315
4519
  }
3316
4520
  ]
3317
4521
  },
@@ -3333,33 +4537,6 @@
3333
4537
  "type": "object",
3334
4538
  "title": "Composite Condition",
3335
4539
  "description": "\n\nComposite Conditions are composed of a collection of [Single Condition](../single-condition/) / Composite Conditions\n and a type attribute.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"conditions\": [\n {\n \"or\": [\n {\n \"condition\": \"can_attach_file_to_issue\",\n \"invert\": false\n },\n {\n \"condition\": \"is_issue_assigned_to_current_user\",\n \"invert\": false\n }\n ]\n },\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n ]\n }\n\n\n"
3336
- },
3337
- {
3338
- "properties": {
3339
- "condition": {
3340
- "maxLength": 100,
3341
- "type": "string",
3342
- "fieldDescription": "\n\nA string indicating the name of the condition\n\n"
3343
- },
3344
- "invert": {
3345
- "type": "boolean",
3346
- "fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
3347
- "defaultValue": "false"
3348
- },
3349
- "params": {
3350
- "additionalProperties": true,
3351
- "type": "object",
3352
- "fieldTitle": "Object",
3353
- "fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
3354
- }
3355
- },
3356
- "required": [
3357
- "condition"
3358
- ],
3359
- "shortClassName": "singleConditionBean",
3360
- "type": "object",
3361
- "title": "Single Condition",
3362
- "description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
3363
4540
  }
3364
4541
  ]
3365
4542
  },
@@ -3413,10 +4590,10 @@
3413
4590
  "type": "object",
3414
4591
  "anyOf": [
3415
4592
  {
3416
- "$ref": "#/definitions/singleCondition"
4593
+ "$ref": "#/definitions/compositeCondition"
3417
4594
  },
3418
4595
  {
3419
- "$ref": "#/definitions/compositeCondition"
4596
+ "$ref": "#/definitions/singleCondition"
3420
4597
  }
3421
4598
  ]
3422
4599
  },
@@ -3777,10 +4954,10 @@
3777
4954
  "type": "object",
3778
4955
  "anyOf": [
3779
4956
  {
3780
- "$ref": "#/definitions/singleCondition"
4957
+ "$ref": "#/definitions/compositeCondition"
3781
4958
  },
3782
4959
  {
3783
- "$ref": "#/definitions/compositeCondition"
4960
+ "$ref": "#/definitions/singleCondition"
3784
4961
  }
3785
4962
  ]
3786
4963
  },
@@ -3823,10 +5000,10 @@
3823
5000
  "type": "object",
3824
5001
  "anyOf": [
3825
5002
  {
3826
- "$ref": "#/definitions/singleCondition"
5003
+ "$ref": "#/definitions/compositeCondition"
3827
5004
  },
3828
5005
  {
3829
- "$ref": "#/definitions/compositeCondition"
5006
+ "$ref": "#/definitions/singleCondition"
3830
5007
  }
3831
5008
  ]
3832
5009
  },
@@ -4062,10 +5239,10 @@
4062
5239
  "type": "object",
4063
5240
  "anyOf": [
4064
5241
  {
4065
- "$ref": "#/definitions/compositeCondition"
5242
+ "$ref": "#/definitions/singleCondition"
4066
5243
  },
4067
5244
  {
4068
- "$ref": "#/definitions/singleCondition"
5245
+ "$ref": "#/definitions/compositeCondition"
4069
5246
  }
4070
5247
  ]
4071
5248
  },
@@ -4103,10 +5280,10 @@
4103
5280
  "type": "object",
4104
5281
  "anyOf": [
4105
5282
  {
4106
- "$ref": "#/definitions/singleCondition"
5283
+ "$ref": "#/definitions/compositeCondition"
4107
5284
  },
4108
5285
  {
4109
- "$ref": "#/definitions/compositeCondition"
5286
+ "$ref": "#/definitions/singleCondition"
4110
5287
  }
4111
5288
  ]
4112
5289
  },
@@ -4762,10 +5939,10 @@
4762
5939
  "type": "object",
4763
5940
  "anyOf": [
4764
5941
  {
4765
- "$ref": "#/definitions/compositeCondition"
5942
+ "$ref": "#/definitions/singleCondition"
4766
5943
  },
4767
5944
  {
4768
- "$ref": "#/definitions/singleCondition"
5945
+ "$ref": "#/definitions/compositeCondition"
4769
5946
  }
4770
5947
  ]
4771
5948
  },
@@ -4803,7 +5980,7 @@
4803
5980
  },
4804
5981
  "expression": {
4805
5982
  "type": "string",
4806
- "fieldDescription": "\n\nThe [Jira expression](https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-expression-eval-post)\n used to evaluate the validator. Must return a boolean value.\n <p>\n This expression can be overridden using the configuration page.\n If you return configuration with property \"expression\", then that expression will be used\n to evaluate the validator instead of the expression defined here. For example:\n\n <pre><code>AP.require([\"jira\"], function(jira) {\n jira.WorkflowConfiguration.onSave(function() {\n var config = {\n \"expression\": \"dynamically built expression\"\n };\n return JSON.stringify(config);\n });\n});</code></pre>\n\n"
5983
+ "fieldDescription": "\n\nThe [Jira expression](https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-api-3-expression-eval-post)\n used to evaluate the validator. Must return a boolean or string value.\n <p>\n This expression can be overridden using the configuration page.\n If you return configuration with property \"expression\", then that expression will be used\n to evaluate the validator instead of the expression defined here. For example:\n\n <pre><code>AP.require([\"jira\"], function(jira) {\n jira.WorkflowConfiguration.onSave(function() {\n var config = {\n \"expression\": \"dynamically built expression\"\n };\n return JSON.stringify(config);\n });\n});</code></pre>\n\n"
4807
5984
  },
4808
5985
  "edit": {
4809
5986
  "$ref": "#/definitions/url",
@@ -4821,14 +5998,29 @@
4821
5998
  },
4822
5999
  "errorMessage": {
4823
6000
  "type": "object",
4824
- "fieldDescription": "\n\nThe error message that will be shown if the validator rejects the transition.\n <p>\n This can be either a static [i18n property](../i18n-property/), or an object containing the \"expression\" property,\n with a Jira expression that returns the error message dynamically, based on the current transition or configuration.\n\n",
6001
+ "fieldDescription": "\n\nThe error message that will be shown if the validator rejects the transition by returning <code>false</code>.\n <p>\n This can be either a static [i18n property](../i18n-property/), or an object containing the \"expression\" property,\n with a Jira expression that returns the error message dynamically, based on the current transition or configuration.\n\n",
4825
6002
  "anyOf": [
6003
+ {
6004
+ "properties": {
6005
+ "expression": {
6006
+ "type": "string",
6007
+ "fieldDescription": "\n\nThe Jira expression that will return an error message if the validator rejects a transition.\n\n"
6008
+ }
6009
+ },
6010
+ "required": [
6011
+ "expression"
6012
+ ],
6013
+ "shortClassName": "validatorJiraExpressionErrorMessage",
6014
+ "type": "object",
6015
+ "title": "Jira Expression Error Message",
6016
+ "description": "\n\nA Jira expression that will be evaluated if the workflow validator fails.\n The string returned by the Jira expression will be displayed as the error message for the failed transition.\n\n"
6017
+ },
4826
6018
  {
4827
6019
  "properties": {
4828
6020
  "value": {
4829
6021
  "maxLength": 1500,
4830
6022
  "type": "string",
4831
- "fieldDescription": "\n\nThe human-readable default value. This will be used if no translation exists.\n\n"
6023
+ "fieldDescription": "\n\nThe human-readable default value. This will be used if no translation exists.\n Only the following HTML tags are supported: `b`, `i`, `strong`, `em`, and `code`.\n\n"
4832
6024
  },
4833
6025
  "i18n": {
4834
6026
  "maxLength": 300,
@@ -4843,21 +6035,6 @@
4843
6035
  "type": "object",
4844
6036
  "title": "i18n Property",
4845
6037
  "description": "\n\nRepresents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key\n and value in multiple places if you like, but identical keys must have identical values.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"value\": \"My text\"\n }\n\n\n"
4846
- },
4847
- {
4848
- "properties": {
4849
- "expression": {
4850
- "type": "string",
4851
- "fieldDescription": "\n\nThe Jira expression that will return an error message if the validator rejects a transition.\n\n"
4852
- }
4853
- },
4854
- "required": [
4855
- "expression"
4856
- ],
4857
- "shortClassName": "validatorJiraExpressionErrorMessage",
4858
- "type": "object",
4859
- "title": "Jira Expression Error Message",
4860
- "description": "\n\nA Jira expression that will be evaluated if the workflow validator fails.\n The string returned by the Jira expression will be displayed as the error message for the failed transition.\n\n"
4861
6038
  }
4862
6039
  ]
4863
6040
  },
@@ -4967,6 +6144,10 @@
4967
6144
  "type": "string",
4968
6145
  "fieldDescription": "\n\nFires when an add on has been successfully disabled. This is an asynchronous notification event.\n\n"
4969
6146
  },
6147
+ "dare-migration": {
6148
+ "type": "string",
6149
+ "fieldDescription": "\n\nUsed DaRe app migration service to trigger migrations events\n\n"
6150
+ },
4970
6151
  "uninstalled": {
4971
6152
  "format": "uri",
4972
6153
  "type": "string",
@@ -5328,10 +6509,10 @@
5328
6509
  "type": "object",
5329
6510
  "anyOf": [
5330
6511
  {
5331
- "$ref": "#/definitions/singleCondition"
6512
+ "$ref": "#/definitions/compositeCondition"
5332
6513
  },
5333
6514
  {
5334
- "$ref": "#/definitions/compositeCondition"
6515
+ "$ref": "#/definitions/singleCondition"
5335
6516
  }
5336
6517
  ]
5337
6518
  },
@@ -5461,48 +6642,50 @@
5461
6642
  "anyOf": [
5462
6643
  {
5463
6644
  "properties": {
5464
- "size": {
5465
- "enum": [
5466
- "small",
5467
- "SMALL",
5468
- "medium",
5469
- "MEDIUM",
5470
- "large",
5471
- "LARGE",
5472
- "x-large",
5473
- "X-LARGE",
5474
- "fullscreen",
5475
- "FULLSCREEN",
5476
- "maximum",
5477
- "MAXIMUM"
5478
- ],
6645
+ "offsetX": {
6646
+ "maxLength": 10,
5479
6647
  "type": "string",
5480
- "fieldDescription": "\n\nSets the size of the dialog.\n\n <p>\n This option is used instead of the 'height' and 'width' options.\n </p>\n\n"
6648
+ "fieldDescription": "\n\nSets an offset distance of the inline-dialog from the trigger element along the x-axis in pixels\n\n"
5481
6649
  },
5482
- "chrome": {
5483
- "type": "boolean",
5484
- "fieldDescription": "\n\nWhether the dialog should contain the AUI header and buttons.\n\n",
5485
- "defaultValue": "true"
6650
+ "offsetY": {
6651
+ "maxLength": 10,
6652
+ "type": "string",
6653
+ "fieldDescription": "\n\nSets an offset distance of the inline-dialog from the trigger element along the y-axis in pixels\n\n"
5486
6654
  },
5487
6655
  "width": {
5488
6656
  "maxLength": 10,
5489
6657
  "type": "string",
5490
6658
  "fieldDescription": "\n\nSets how wide the dialog is in pixels.\n\n"
5491
6659
  },
5492
- "header": {
5493
- "$ref": "#/definitions/i18nProperty",
5494
- "fieldDescription": "\n\nThe header text for the dialog, if chrome is enabled.\n\n"
6660
+ "onTop": {
6661
+ "type": "boolean",
6662
+ "fieldDescription": "\n\nDetermines if the dialog should be shown above the trigger or not. If this option is true but there is insufficient room above the trigger the inline-dialog will be flipped to display below it\n\n"
5495
6663
  },
5496
- "height": {
5497
- "maxLength": 10,
5498
- "type": "string",
5499
- "fieldDescription": "\n\nSets how high the dialog is in pixels\n\n"
6664
+ "showDelay": {
6665
+ "type": "integer",
6666
+ "fieldDescription": "\n\nDetermines how long in milliseconds after a show trigger is fired (such as a trigger click) until the dialog is shown\n\n"
6667
+ },
6668
+ "closeOthers": {
6669
+ "type": "boolean",
6670
+ "fieldDescription": "\n\nDetermines if all other dialogs on the screen are closed when this one is opened\n\n"
6671
+ },
6672
+ "persistent": {
6673
+ "type": "boolean",
6674
+ "fieldDescription": "\n\nThis option, ignores the 'closeOthers' option\n\n"
6675
+ },
6676
+ "onHover": {
6677
+ "type": "boolean",
6678
+ "fieldDescription": "\n\nDetermines whether the inline-Dialog will show on a mouseOver or mouseClick of the trigger\n\n"
6679
+ },
6680
+ "isRelativeToMouse": {
6681
+ "type": "boolean",
6682
+ "fieldDescription": "\n\nDetermines if the dialog should be shown relative to where the mouse is at the time of the event trigger (normally a click) if set to false the dialog will show aligned to the left of the trigger with the arrow showing at the center\n\n"
5500
6683
  }
5501
6684
  },
5502
- "shortClassName": "dialogOptions",
6685
+ "shortClassName": "inlineDialogOptions",
5503
6686
  "type": "object",
5504
- "title": "Dialog Options",
5505
- "description": "\n\nOptions for a modal dialog <a href=\"../web-item-target/\">web item target</a> or <a href=\"../dialog/\">common module</a>.\n\n <p>\n These options are a subset of those available via the <a href=\"../../jsapi/dialog/\">JavaScript API</a>.\n </p>\n\n <h2>Web Item Example</h2>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialog\",\n \"options\": {\n \"height\": \"100px\",\n \"width\": \"200px\"\n }\n }\n }\n\n\n\n\n <h2>Dialog Example</h2>\n\n\n\n\n\n {\n \"modules\": {\n \"dialogs\": [\n {\n \"url\": \"/my-dialog-content\",\n \"options\": {\n \"size\": \"fullscreen\",\n \"header\": {\n \"value\": \"Example Dialog\"\n }\n },\n \"key\": \"dialog-module-key\"\n }\n ]\n }\n }\n\n\n"
6687
+ "title": "Inline Dialog Options",
6688
+ "description": "\n\nOptions for an inline dialog target\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"inlinedialog\",\n \"options\": {\n \"onHover\": true,\n \"offsetX\": \"30px\",\n \"offsetY\": \"20px\"\n }\n }\n }\n\n\n"
5506
6689
  },
5507
6690
  {
5508
6691
  "properties": {
@@ -5522,50 +6705,48 @@
5522
6705
  },
5523
6706
  {
5524
6707
  "properties": {
5525
- "offsetX": {
5526
- "maxLength": 10,
5527
- "type": "string",
5528
- "fieldDescription": "\n\nSets an offset distance of the inline-dialog from the trigger element along the x-axis in pixels\n\n"
5529
- },
5530
- "offsetY": {
5531
- "maxLength": 10,
5532
- "type": "string",
5533
- "fieldDescription": "\n\nSets an offset distance of the inline-dialog from the trigger element along the y-axis in pixels\n\n"
5534
- },
5535
- "width": {
5536
- "maxLength": 10,
6708
+ "size": {
6709
+ "enum": [
6710
+ "small",
6711
+ "SMALL",
6712
+ "medium",
6713
+ "MEDIUM",
6714
+ "large",
6715
+ "LARGE",
6716
+ "x-large",
6717
+ "X-LARGE",
6718
+ "fullscreen",
6719
+ "FULLSCREEN",
6720
+ "maximum",
6721
+ "MAXIMUM"
6722
+ ],
5537
6723
  "type": "string",
5538
- "fieldDescription": "\n\nSets how wide the dialog is in pixels.\n\n"
5539
- },
5540
- "onTop": {
5541
- "type": "boolean",
5542
- "fieldDescription": "\n\nDetermines if the dialog should be shown above the trigger or not. If this option is true but there is insufficient room above the trigger the inline-dialog will be flipped to display below it\n\n"
5543
- },
5544
- "showDelay": {
5545
- "type": "integer",
5546
- "fieldDescription": "\n\nDetermines how long in milliseconds after a show trigger is fired (such as a trigger click) until the dialog is shown\n\n"
6724
+ "fieldDescription": "\n\nSets the size of the dialog.\n\n <p>\n This option is used instead of the 'height' and 'width' options.\n </p>\n\n"
5547
6725
  },
5548
- "closeOthers": {
6726
+ "chrome": {
5549
6727
  "type": "boolean",
5550
- "fieldDescription": "\n\nDetermines if all other dialogs on the screen are closed when this one is opened\n\n"
6728
+ "fieldDescription": "\n\nWhether the dialog should contain the AUI header and buttons.\n\n",
6729
+ "defaultValue": "true"
5551
6730
  },
5552
- "persistent": {
5553
- "type": "boolean",
5554
- "fieldDescription": "\n\nThis option, ignores the 'closeOthers' option\n\n"
6731
+ "width": {
6732
+ "maxLength": 10,
6733
+ "type": "string",
6734
+ "fieldDescription": "\n\nSets how wide the dialog is in pixels.\n\n"
5555
6735
  },
5556
- "onHover": {
5557
- "type": "boolean",
5558
- "fieldDescription": "\n\nDetermines whether the inline-Dialog will show on a mouseOver or mouseClick of the trigger\n\n"
6736
+ "header": {
6737
+ "$ref": "#/definitions/i18nProperty",
6738
+ "fieldDescription": "\n\nThe header text for the dialog, if chrome is enabled.\n\n"
5559
6739
  },
5560
- "isRelativeToMouse": {
5561
- "type": "boolean",
5562
- "fieldDescription": "\n\nDetermines if the dialog should be shown relative to where the mouse is at the time of the event trigger (normally a click) if set to false the dialog will show aligned to the left of the trigger with the arrow showing at the center\n\n"
6740
+ "height": {
6741
+ "maxLength": 10,
6742
+ "type": "string",
6743
+ "fieldDescription": "\n\nSets how high the dialog is in pixels\n\n"
5563
6744
  }
5564
6745
  },
5565
- "shortClassName": "inlineDialogOptions",
6746
+ "shortClassName": "dialogOptions",
5566
6747
  "type": "object",
5567
- "title": "Inline Dialog Options",
5568
- "description": "\n\nOptions for an inline dialog target\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"inlinedialog\",\n \"options\": {\n \"onHover\": true,\n \"offsetX\": \"30px\",\n \"offsetY\": \"20px\"\n }\n }\n }\n\n\n"
6748
+ "title": "Dialog Options",
6749
+ "description": "\n\nOptions for a modal dialog <a href=\"../web-item-target/\">web item target</a> or <a href=\"../dialog/\">common module</a>.\n\n <p>\n These options are a subset of those available via the <a href=\"../../jsapi/dialog/\">JavaScript API</a>.\n </p>\n\n <h2>Web Item Example</h2>\n\n\n\n\n\n {\n \"target\": {\n \"type\": \"dialog\",\n \"options\": {\n \"height\": \"100px\",\n \"width\": \"200px\"\n }\n }\n }\n\n\n\n\n <h2>Dialog Example</h2>\n\n\n\n\n\n {\n \"modules\": {\n \"dialogs\": [\n {\n \"url\": \"/my-dialog-content\",\n \"options\": {\n \"size\": \"fullscreen\",\n \"header\": {\n \"value\": \"Example Dialog\"\n }\n },\n \"key\": \"dialog-module-key\"\n }\n ]\n }\n }\n\n\n"
5569
6750
  }
5570
6751
  ]
5571
6752
  },
@@ -5622,6 +6803,33 @@
5622
6803
  "items": {
5623
6804
  "type": "object",
5624
6805
  "anyOf": [
6806
+ {
6807
+ "properties": {
6808
+ "condition": {
6809
+ "maxLength": 100,
6810
+ "type": "string",
6811
+ "fieldDescription": "\n\nA string indicating the name of the condition\n\n"
6812
+ },
6813
+ "invert": {
6814
+ "type": "boolean",
6815
+ "fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
6816
+ "defaultValue": "false"
6817
+ },
6818
+ "params": {
6819
+ "additionalProperties": true,
6820
+ "type": "object",
6821
+ "fieldTitle": "Object",
6822
+ "fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
6823
+ }
6824
+ },
6825
+ "required": [
6826
+ "condition"
6827
+ ],
6828
+ "shortClassName": "singleConditionBean",
6829
+ "type": "object",
6830
+ "title": "Single Condition",
6831
+ "description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
6832
+ },
5625
6833
  {
5626
6834
  "properties": {
5627
6835
  "conditions": {
@@ -5654,33 +6862,6 @@
5654
6862
  "type": "object",
5655
6863
  "title": "Composite Condition",
5656
6864
  "description": "\n\nComposite Conditions are composed of a collection of [Single Condition](../single-condition/) / Composite Conditions\n and a type attribute.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"conditions\": [\n {\n \"or\": [\n {\n \"condition\": \"can_attach_file_to_issue\",\n \"invert\": false\n },\n {\n \"condition\": \"is_issue_assigned_to_current_user\",\n \"invert\": false\n }\n ]\n },\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n ]\n }\n\n\n"
5657
- },
5658
- {
5659
- "properties": {
5660
- "condition": {
5661
- "maxLength": 100,
5662
- "type": "string",
5663
- "fieldDescription": "\n\nA string indicating the name of the condition\n\n"
5664
- },
5665
- "invert": {
5666
- "type": "boolean",
5667
- "fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
5668
- "defaultValue": "false"
5669
- },
5670
- "params": {
5671
- "additionalProperties": true,
5672
- "type": "object",
5673
- "fieldTitle": "Object",
5674
- "fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
5675
- }
5676
- },
5677
- "required": [
5678
- "condition"
5679
- ],
5680
- "shortClassName": "singleConditionBean",
5681
- "type": "object",
5682
- "title": "Single Condition",
5683
- "description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
5684
6865
  }
5685
6866
  ]
5686
6867
  },
@@ -5885,33 +7066,6 @@
5885
7066
  "items": {
5886
7067
  "type": "object",
5887
7068
  "anyOf": [
5888
- {
5889
- "properties": {
5890
- "condition": {
5891
- "maxLength": 100,
5892
- "type": "string",
5893
- "fieldDescription": "\n\nA string indicating the name of the condition\n\n"
5894
- },
5895
- "invert": {
5896
- "type": "boolean",
5897
- "fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
5898
- "defaultValue": "false"
5899
- },
5900
- "params": {
5901
- "additionalProperties": true,
5902
- "type": "object",
5903
- "fieldTitle": "Object",
5904
- "fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
5905
- }
5906
- },
5907
- "required": [
5908
- "condition"
5909
- ],
5910
- "shortClassName": "singleConditionBean",
5911
- "type": "object",
5912
- "title": "Single Condition",
5913
- "description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
5914
- },
5915
7069
  {
5916
7070
  "properties": {
5917
7071
  "conditions": {
@@ -5944,6 +7098,33 @@
5944
7098
  "type": "object",
5945
7099
  "title": "Composite Condition",
5946
7100
  "description": "\n\nComposite Conditions are composed of a collection of [Single Condition](../single-condition/) / Composite Conditions\n and a type attribute.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"conditions\": [\n {\n \"or\": [\n {\n \"condition\": \"can_attach_file_to_issue\",\n \"invert\": false\n },\n {\n \"condition\": \"is_issue_assigned_to_current_user\",\n \"invert\": false\n }\n ]\n },\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n ]\n }\n\n\n"
7101
+ },
7102
+ {
7103
+ "properties": {
7104
+ "condition": {
7105
+ "maxLength": 100,
7106
+ "type": "string",
7107
+ "fieldDescription": "\n\nA string indicating the name of the condition\n\n"
7108
+ },
7109
+ "invert": {
7110
+ "type": "boolean",
7111
+ "fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
7112
+ "defaultValue": "false"
7113
+ },
7114
+ "params": {
7115
+ "additionalProperties": true,
7116
+ "type": "object",
7117
+ "fieldTitle": "Object",
7118
+ "fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
7119
+ }
7120
+ },
7121
+ "required": [
7122
+ "condition"
7123
+ ],
7124
+ "shortClassName": "singleConditionBean",
7125
+ "type": "object",
7126
+ "title": "Single Condition",
7127
+ "description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
5947
7128
  }
5948
7129
  ]
5949
7130
  },
@@ -6305,38 +7486,6 @@
6305
7486
  "title": "ControlGroup",
6306
7487
  "description": "\n\nDefines a ControlGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"group\",\n \"controls\": [\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n },\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-control-1\"\n }\n ]\n }\n ]\n\n\n"
6307
7488
  },
6308
- {
6309
- "properties": {
6310
- "label": {
6311
- "$ref": "#/definitions/i18nProperty",
6312
- "fieldDescription": "\n\nText which will appear inside the button\n\n"
6313
- },
6314
- "type": {
6315
- "enum": [
6316
- "button",
6317
- "BUTTON"
6318
- ],
6319
- "type": "string",
6320
- "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
6321
- },
6322
- "key": {
6323
- "pattern": "^[a-zA-Z0-9-]+$",
6324
- "maxLength": 100,
6325
- "type": "string",
6326
- "fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
6327
- }
6328
- },
6329
- "required": [
6330
- "label",
6331
- "type",
6332
- "key"
6333
- ],
6334
- "additionalProperties": true,
6335
- "shortClassName": "buttonControlBean",
6336
- "type": "object",
6337
- "title": "ButtonControl",
6338
- "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
6339
- },
6340
7489
  {
6341
7490
  "properties": {
6342
7491
  "controls": {
@@ -6405,6 +7554,38 @@
6405
7554
  "type": "object",
6406
7555
  "title": "ToggleGroup",
6407
7556
  "description": "\n\nDefines a ToggleGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"togglegroup\",\n \"macroParameter\": \"toggleGroupMacroParameter\",\n \"controls\": [\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n },\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 1\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-toggle-button-1\"\n }\n ]\n }\n ]\n\n\n"
7557
+ },
7558
+ {
7559
+ "properties": {
7560
+ "label": {
7561
+ "$ref": "#/definitions/i18nProperty",
7562
+ "fieldDescription": "\n\nText which will appear inside the button\n\n"
7563
+ },
7564
+ "type": {
7565
+ "enum": [
7566
+ "button",
7567
+ "BUTTON"
7568
+ ],
7569
+ "type": "string",
7570
+ "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
7571
+ },
7572
+ "key": {
7573
+ "pattern": "^[a-zA-Z0-9-]+$",
7574
+ "maxLength": 100,
7575
+ "type": "string",
7576
+ "fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
7577
+ }
7578
+ },
7579
+ "required": [
7580
+ "label",
7581
+ "type",
7582
+ "key"
7583
+ ],
7584
+ "additionalProperties": true,
7585
+ "shortClassName": "buttonControlBean",
7586
+ "type": "object",
7587
+ "title": "ButtonControl",
7588
+ "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
6408
7589
  }
6409
7590
  ]
6410
7591
  },
@@ -6673,64 +7854,32 @@
6673
7854
  "$ref": "#/definitions/icon",
6674
7855
  "fieldDescription": "\n\nA link to the icon resource (80x80 pixels) that will be shown in the macro selection dialog.\n The URL can be absolute or relative to the add-on base URL.\n\n"
6675
7856
  },
6676
- "description": {
6677
- "$ref": "#/definitions/i18nProperty",
6678
- "fieldDescription": "\n\nA description of the macro's functionality.\n\n"
6679
- },
6680
- "outputType": {
6681
- "enum": [
6682
- "block",
6683
- "BLOCK",
6684
- "inline",
6685
- "INLINE"
6686
- ],
6687
- "type": "string",
6688
- "fieldDescription": "\n\nHow this macro should be placed along side other page content.\n\n",
6689
- "defaultValue": "block"
6690
- },
6691
- "url": {
6692
- "format": "uri",
6693
- "type": "string",
6694
- "fieldDescription": "\n\nThe link to the add-on resource that provides the macro content.\n This URL has to be relative to the add-on base URL.\n\n Additional context parameters can be passed as variables in the URL:\n <pre><code>\n {\n \"url\": \"/macro-renderer?body={macro.body}&amp;space_id={space.id}&amp;page_id={page.id}\"\n }\n </code></pre>\n\n Since macro bodies can be of arbitrary size and may contain sensitive data, care must be taken\n as to how its passed to your connect add-on. You have three options to gain access to the body:\n\n - If you can predict the size of your body and it is consistently less than 128 characters, you\n can include it in the GET request using the `{macro.body}` parameter.\n - If you know your macro contains a body that will often exceed the 128 character threshold\n (or is known to contain sensitive data), then you can include the `{macro.id}` parameter and\n use the Confluence REST api to call back to collect the body.\n - If you want, you can include, `{macro.body}`, `{macro.id}`, and `{macro.truncated}`. This way\n your plugin can call back to confluence only if `{macro.truncated}` is '`true`'. This will allow\n you to skip the callback if it's not needed. This would be useful for macros that don't\n contain sensitive data of an unpredictable size.\n\n\n__Note:__ If you include the `{macro.body}` in your URL you are potentially leaking sensitive data\n to any intermediate host on the internet. This may result in the body being cached or indexed\n by a third party. If you are concerned about the security of your macro, you should always use\n the `{macro.id}` and use the Confluence REST API to collect the body.\n\n Here's an example:\n\n Declare the variables that are later required to fetch the macro content in the URL:\n <pre><code>\n {\n \"url\": \"/render-macro?pageId={page.id}&amp;pageVersion={page.version}&amp;macroId={macro.id}\"\n }\n </code></pre>\n\n Then use the Confluence REST API to collect the body, for example directly from the iframe:\n <pre><code>\n AP.require(\"request\", function(request) {\n var pageId = getUrlParameter(\"pageId\");\n var pageVersion = getUrlParameter(\"pageVersion\");\n var macroId = getUrlParameter(\"macroId\");\n request({\n url: \"/rest/api/content/\" + pageId +\n \"/history/\" + pageVersion +\n \"/macro/id/\" + macroId,\n success: function(response) {\n var macro = JSON.parse(response);\n process(macro.body);\n }\n });\n });\n </code></pre>\n\n __Preview Mode:__ If you use the `{macro.id}` in your URL, the REST api will not return the macro body during\n a preview request, because the page has not been saved yet. You can use the `{output.type}` parameter to detect\n whether the macro is rendered in preview mode and adapt the response accordingly.\n\n __Note:__ `macro.body` will not be truncated when `renderingMethod` field was set to `POST` in static content macro.\n Refer to the [`Static Content Macros`](../static-content-macro/) for information on\n how to set this field.\n\n Currently supported variables for macros are:\n\n - `macro.hash`: The hash of the macro body (deprecated, use the macro.id)\n - `macro.id`: The id of the macro\n - `macro.body`: The macro body, truncated to 128 characters\n - `macro.truncated`: True if the macro body was truncated, false of not\n - `page.id`: The page ID, e.g. `1376295`\n - `page.title`: The page title, e.g. `My Page`\n - `page.type`: The page type, e.g. `page`\n - `page.version`: The page version, e.g. `6`\n - `space.id`: The space ID, e.g. `65537`\n - `space.key`: The space key, e.g. `AC`\n - `user.id`: The user ID, e.g. `admin` (deprecated in GDPR mode)\n - `user.key`: The user key, e.g. `ff80808143087d180143087d3a910004` (deprecated in GDPR mode)\n - `output.type`: The output type, e.g. `display` or `preview`\n\nContext parameters for macros are also required in the URL. Please see the\n [Macro Input Parameter](../macro-input-parameter/) documentation for details.\n\n"
6695
- },
6696
- "propertyPanel": {
6697
- "properties": {
6698
- "controls": {
6699
- "items": {
6700
- "type": "object",
6701
- "anyOf": [
6702
- {
6703
- "properties": {
6704
- "label": {
6705
- "$ref": "#/definitions/i18nProperty",
6706
- "fieldDescription": "\n\nText which will appear inside the button\n\n"
6707
- },
6708
- "type": {
6709
- "enum": [
6710
- "button",
6711
- "BUTTON"
6712
- ],
6713
- "type": "string",
6714
- "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
6715
- },
6716
- "key": {
6717
- "pattern": "^[a-zA-Z0-9-]+$",
6718
- "maxLength": 100,
6719
- "type": "string",
6720
- "fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
6721
- }
6722
- },
6723
- "required": [
6724
- "label",
6725
- "type",
6726
- "key"
6727
- ],
6728
- "additionalProperties": true,
6729
- "shortClassName": "buttonControlBean",
6730
- "type": "object",
6731
- "title": "ButtonControl",
6732
- "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
6733
- },
7857
+ "description": {
7858
+ "$ref": "#/definitions/i18nProperty",
7859
+ "fieldDescription": "\n\nA description of the macro's functionality.\n\n"
7860
+ },
7861
+ "outputType": {
7862
+ "enum": [
7863
+ "block",
7864
+ "BLOCK",
7865
+ "inline",
7866
+ "INLINE"
7867
+ ],
7868
+ "type": "string",
7869
+ "fieldDescription": "\n\nHow this macro should be placed along side other page content.\n\n",
7870
+ "defaultValue": "block"
7871
+ },
7872
+ "url": {
7873
+ "format": "uri",
7874
+ "type": "string",
7875
+ "fieldDescription": "\n\nThe link to the add-on resource that provides the macro content.\n This URL has to be relative to the add-on base URL.\n\n Additional context parameters can be passed as variables in the URL:\n <pre><code>\n {\n \"url\": \"/macro-renderer?body={macro.body}&amp;space_id={space.id}&amp;page_id={page.id}\"\n }\n </code></pre>\n\n Since macro bodies can be of arbitrary size and may contain sensitive data, care must be taken\n as to how its passed to your connect add-on. You have three options to gain access to the body:\n\n - If you can predict the size of your body and it is consistently less than 128 characters, you\n can include it in the GET request using the `{macro.body}` parameter.\n - If you know your macro contains a body that will often exceed the 128 character threshold\n (or is known to contain sensitive data), then you can include the `{macro.id}` parameter and\n use the Confluence REST api to call back to collect the body.\n - If you want, you can include, `{macro.body}`, `{macro.id}`, and `{macro.truncated}`. This way\n your plugin can call back to confluence only if `{macro.truncated}` is '`true`'. This will allow\n you to skip the callback if it's not needed. This would be useful for macros that don't\n contain sensitive data of an unpredictable size.\n\n\n__Note:__ If you include the `{macro.body}` in your URL you are potentially leaking sensitive data\n to any intermediate host on the internet. This may result in the body being cached or indexed\n by a third party. If you are concerned about the security of your macro, you should always use\n the `{macro.id}` and use the Confluence REST API to collect the body.\n\n Here's an example:\n\n Declare the variables that are later required to fetch the macro content in the URL:\n <pre><code>\n {\n \"url\": \"/render-macro?pageId={page.id}&amp;pageVersion={page.version}&amp;macroId={macro.id}\"\n }\n </code></pre>\n\n Then use the Confluence REST API to collect the body, for example directly from the iframe:\n <pre><code>\n AP.require(\"request\", function(request) {\n var pageId = getUrlParameter(\"pageId\");\n var pageVersion = getUrlParameter(\"pageVersion\");\n var macroId = getUrlParameter(\"macroId\");\n request({\n url: \"/rest/api/content/\" + pageId +\n \"/history/\" + pageVersion +\n \"/macro/id/\" + macroId,\n success: function(response) {\n var macro = JSON.parse(response);\n process(macro.body);\n }\n });\n });\n </code></pre>\n\n __Preview Mode:__ If you use the `{macro.id}` in your URL, the REST api will not return the macro body during\n a preview request, because the page has not been saved yet. You can use the `{output.type}` parameter to detect\n whether the macro is rendered in preview mode and adapt the response accordingly.\n\n __Note:__ `macro.body` will not be truncated when `renderingMethod` field was set to `POST` in static content macro.\n Refer to the [`Static Content Macros`](../static-content-macro/) for information on\n how to set this field.\n\n Currently supported variables for macros are:\n\n - `macro.hash`: The hash of the macro body (deprecated, use the macro.id)\n - `macro.id`: The id of the macro\n - `macro.body`: The macro body, truncated to 128 characters\n - `macro.truncated`: True if the macro body was truncated, false of not\n - `page.id`: The page ID, e.g. `1376295`\n - `page.title`: The page title, e.g. `My Page`\n - `page.type`: The page type, e.g. `page`\n - `page.version`: The page version, e.g. `6`\n - `space.id`: The space ID, e.g. `65537`\n - `space.key`: The space key, e.g. `AC`\n - `user.id`: The user ID, e.g. `admin` (deprecated in GDPR mode)\n - `user.key`: The user key, e.g. `ff80808143087d180143087d3a910004` (deprecated in GDPR mode)\n - `output.type`: The output type, e.g. `display` or `preview`\n\nContext parameters for macros are also required in the URL. Please see the\n [Macro Input Parameter](../macro-input-parameter/) documentation for details.\n\n"
7876
+ },
7877
+ "propertyPanel": {
7878
+ "properties": {
7879
+ "controls": {
7880
+ "items": {
7881
+ "type": "object",
7882
+ "anyOf": [
6734
7883
  {
6735
7884
  "properties": {
6736
7885
  "controls": {
@@ -6800,38 +7949,6 @@
6800
7949
  "title": "ToggleGroup",
6801
7950
  "description": "\n\nDefines a ToggleGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"togglegroup\",\n \"macroParameter\": \"toggleGroupMacroParameter\",\n \"controls\": [\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 0\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-toggle-button-0\"\n },\n {\n \"type\": \"togglebutton\",\n \"macroParameterValue\": \"macroParameterValue 1\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-toggle-button-1\"\n }\n ]\n }\n ]\n\n\n"
6802
7951
  },
6803
- {
6804
- "properties": {
6805
- "macroParameter": {
6806
- "maxLength": 100,
6807
- "type": "string",
6808
- "fieldDescription": "\n\nThe Macro Parameter identifier used to store the text\n\n"
6809
- },
6810
- "type": {
6811
- "enum": [
6812
- "text",
6813
- "TEXT"
6814
- ],
6815
- "type": "string",
6816
- "fieldDescription": "\n\nThe type field must be set to 'text'\n\n"
6817
- },
6818
- "key": {
6819
- "pattern": "^[a-zA-Z0-9-]+$",
6820
- "maxLength": 100,
6821
- "type": "string",
6822
- "fieldDescription": "\n\nA key to identify this module.\n\n This key must be unique relative to the add on, with the exception of Confluence macros: Their keys need to be\n globally unique.\n\n Keys must only contain alphanumeric characters and dashes.\n\n The key is used to generate the url to your add-on's module. The url is generated as a combination of your add-on\n key and module key. For example, an add-on which looks like:\n\n {\n \"key\": \"my-addon\",\n \"modules\": {\n \"configurePage\": {\n \"key\": \"configure-me\",\n }\n }\n }\n\n Will have a configuration page module with a URL of `/plugins/servlet/ac/my-addon/configure-me`.\n\n"
6823
- }
6824
- },
6825
- "required": [
6826
- "macroParameter",
6827
- "type",
6828
- "key"
6829
- ],
6830
- "shortClassName": "textControlBean",
6831
- "type": "object",
6832
- "title": "TextControl",
6833
- "description": "\n\nDefines a text field which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
6834
- },
6835
7952
  {
6836
7953
  "properties": {
6837
7954
  "controls": {
@@ -6887,6 +8004,70 @@
6887
8004
  "type": "object",
6888
8005
  "title": "ControlGroup",
6889
8006
  "description": "\n\nDefines a ControlGroup which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n [\n {\n \"type\": \"group\",\n \"controls\": [\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n },\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 1\"\n },\n \"key\": \"my-custom-control-1\"\n }\n ]\n }\n ]\n\n\n"
8007
+ },
8008
+ {
8009
+ "properties": {
8010
+ "macroParameter": {
8011
+ "maxLength": 100,
8012
+ "type": "string",
8013
+ "fieldDescription": "\n\nThe Macro Parameter identifier used to store the text\n\n"
8014
+ },
8015
+ "type": {
8016
+ "enum": [
8017
+ "text",
8018
+ "TEXT"
8019
+ ],
8020
+ "type": "string",
8021
+ "fieldDescription": "\n\nThe type field must be set to 'text'\n\n"
8022
+ },
8023
+ "key": {
8024
+ "pattern": "^[a-zA-Z0-9-]+$",
8025
+ "maxLength": 100,
8026
+ "type": "string",
8027
+ "fieldDescription": "\n\nA key to identify this module.\n\n This key must be unique relative to the add on, with the exception of Confluence macros: Their keys need to be\n globally unique.\n\n Keys must only contain alphanumeric characters and dashes.\n\n The key is used to generate the url to your add-on's module. The url is generated as a combination of your add-on\n key and module key. For example, an add-on which looks like:\n\n {\n \"key\": \"my-addon\",\n \"modules\": {\n \"configurePage\": {\n \"key\": \"configure-me\",\n }\n }\n }\n\n Will have a configuration page module with a URL of `/plugins/servlet/ac/my-addon/configure-me`.\n\n"
8028
+ }
8029
+ },
8030
+ "required": [
8031
+ "macroParameter",
8032
+ "type",
8033
+ "key"
8034
+ ],
8035
+ "shortClassName": "textControlBean",
8036
+ "type": "object",
8037
+ "title": "TextControl",
8038
+ "description": "\n\nDefines a text field which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
8039
+ },
8040
+ {
8041
+ "properties": {
8042
+ "label": {
8043
+ "$ref": "#/definitions/i18nProperty",
8044
+ "fieldDescription": "\n\nText which will appear inside the button\n\n"
8045
+ },
8046
+ "type": {
8047
+ "enum": [
8048
+ "button",
8049
+ "BUTTON"
8050
+ ],
8051
+ "type": "string",
8052
+ "fieldDescription": "\n\nThe type field must be set to 'button'\n\n"
8053
+ },
8054
+ "key": {
8055
+ "pattern": "^[a-zA-Z0-9-]+$",
8056
+ "maxLength": 100,
8057
+ "type": "string",
8058
+ "fieldDescription": "\n\nA key to identify the control. Keys must only contain alphanumeric characters and dashes, and must be unique\n\n"
8059
+ }
8060
+ },
8061
+ "required": [
8062
+ "label",
8063
+ "type",
8064
+ "key"
8065
+ ],
8066
+ "additionalProperties": true,
8067
+ "shortClassName": "buttonControlBean",
8068
+ "type": "object",
8069
+ "title": "ButtonControl",
8070
+ "description": "\n\nDefines a button which may appear in control extension points such as the property panel\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"type\": \"button\",\n \"label\": {\n \"value\": \"My Custom Control 0\"\n },\n \"key\": \"my-custom-control-0\"\n }\n\n\n"
6890
8071
  }
6891
8072
  ]
6892
8073
  },
@@ -7342,6 +8523,10 @@
7342
8523
  "type": "string",
7343
8524
  "fieldDescription": "\n\nFires when an add on has been successfully disabled. This is an asynchronous notification event.\n\n"
7344
8525
  },
8526
+ "dare-migration": {
8527
+ "type": "string",
8528
+ "fieldDescription": "\n\nUsed DaRe app migration service to trigger migrations events\n\n"
8529
+ },
7345
8530
  "uninstalled": {
7346
8531
  "format": "uri",
7347
8532
  "type": "string",
@@ -7598,13 +8783,13 @@
7598
8783
  "description": "External authentication providers",
7599
8784
  "items": {
7600
8785
  "oneOf": [
7601
- {
7602
- "$ref": "#/definitions/AuthProviderPredefined",
7603
- "title": "AuthProviderPredefined"
7604
- },
7605
8786
  {
7606
8787
  "$ref": "#/definitions/AuthProviderCustom",
7607
8788
  "title": "AuthProviderCustom"
8789
+ },
8790
+ {
8791
+ "$ref": "#/definitions/AuthProviderPredefined",
8792
+ "title": "AuthProviderPredefined"
7608
8793
  }
7609
8794
  ]
7610
8795
  }
@@ -7678,11 +8863,42 @@
7678
8863
  ]
7679
8864
  },
7680
8865
  "bearerMethod": {
7681
- "type": "string",
7682
- "enum": [
7683
- "authorization-header",
7684
- "form-encoded",
7685
- "uri-query"
8866
+ "oneOf": [
8867
+ {
8868
+ "type": "string",
8869
+ "enum": [
8870
+ "authorization-header",
8871
+ "form-encoded",
8872
+ "uri-query"
8873
+ ]
8874
+ },
8875
+ {
8876
+ "type": "object",
8877
+ "additionalProperties": false,
8878
+ "required": [
8879
+ "type"
8880
+ ],
8881
+ "properties": {
8882
+ "type": {
8883
+ "type": "string",
8884
+ "enum": [
8885
+ "authorization-header",
8886
+ "form-encoded",
8887
+ "uri-query"
8888
+ ]
8889
+ },
8890
+ "prefix": {
8891
+ "type": "string",
8892
+ "description": "Custom authorization header prefix",
8893
+ "maxLength": 1000
8894
+ },
8895
+ "parameter": {
8896
+ "type": "string",
8897
+ "description": "Custom Header name or Parameter name (depending on type)",
8898
+ "maxlength": 1000
8899
+ }
8900
+ }
8901
+ }
7686
8902
  ]
7687
8903
  },
7688
8904
  "clientId": {
@@ -7713,10 +8929,10 @@
7713
8929
  "additionalProperties": false,
7714
8930
  "properties": {
7715
8931
  "authorization": {
7716
- "$ref": "#/definitions/ActionDefinition"
8932
+ "$ref": "#/definitions/AuthorizeActionDefinition"
7717
8933
  },
7718
8934
  "exchange": {
7719
- "$ref": "#/definitions/ActionDefinition"
8935
+ "$ref": "#/definitions/ExchangeActionDefinition"
7720
8936
  },
7721
8937
  "revokeToken": {
7722
8938
  "$ref": "#/definitions/ActionDefinition"
@@ -7791,6 +9007,74 @@
7791
9007
  }
7792
9008
  }
7793
9009
  },
9010
+ "AuthorizeActionDefinition": {
9011
+ "type": "object",
9012
+ "required": [
9013
+ "remote",
9014
+ "path"
9015
+ ],
9016
+ "additionalProperties": false,
9017
+ "properties": {
9018
+ "remote": {
9019
+ "$ref": "#/definitions/ModuleKeySchema"
9020
+ },
9021
+ "path": {
9022
+ "type": "string",
9023
+ "maxLength": 1000
9024
+ },
9025
+ "queryParameters": {
9026
+ "type": "object",
9027
+ "description": "Additional GET parameters sent to the API",
9028
+ "additionalProperties": false,
9029
+ "patternProperties": {
9030
+ "^[a-zA-Z0-9_-]+$": {
9031
+ "type": "string"
9032
+ }
9033
+ }
9034
+ }
9035
+ }
9036
+ },
9037
+ "ExchangeActionDefinition": {
9038
+ "type": "object",
9039
+ "required": [
9040
+ "remote",
9041
+ "path"
9042
+ ],
9043
+ "additionalProperties": false,
9044
+ "properties": {
9045
+ "remote": {
9046
+ "$ref": "#/definitions/ModuleKeySchema"
9047
+ },
9048
+ "path": {
9049
+ "type": "string",
9050
+ "maxLength": 1000
9051
+ },
9052
+ "resolvers": {
9053
+ "type": "object",
9054
+ "additionalProperties": false,
9055
+ "properties": {
9056
+ "accessToken": {
9057
+ "type": "string",
9058
+ "description": "Path to the 'access token' parameter within the JSON response from the auhuorization API (full stop separated for nested parameters)",
9059
+ "default": "access_token",
9060
+ "maxLength": 1000
9061
+ },
9062
+ "accessTokenExpires": {
9063
+ "type": "string",
9064
+ "description": "Path to the 'access token expires' parameter within the JSON response from the auhuorization API (full stop separated for nested parameters)",
9065
+ "default": "expires_in",
9066
+ "maxLength": 1000
9067
+ },
9068
+ "refreshToken": {
9069
+ "type": "string",
9070
+ "description": "Path to the 'refresh token' parameter within the JSON response from the auhuorization API (full stop separated for nested parameters)",
9071
+ "default": "refresh_token",
9072
+ "maxlength": 1000
9073
+ }
9074
+ }
9075
+ }
9076
+ }
9077
+ },
7794
9078
  "ActionDefinition": {
7795
9079
  "type": "object",
7796
9080
  "required": [
@@ -8341,7 +9625,7 @@
8341
9625
  "value": {
8342
9626
  "maxLength": 1500,
8343
9627
  "type": "string",
8344
- "fieldDescription": "\n\nThe human-readable default value. This will be used if no translation exists.\n\n"
9628
+ "fieldDescription": "\n\nThe human-readable default value. This will be used if no translation exists.\n Only the following HTML tags are supported: `b`, `i`, `strong`, `em`, and `code`.\n\n"
8345
9629
  },
8346
9630
  "i18n": {
8347
9631
  "maxLength": 300,
@@ -8381,33 +9665,6 @@
8381
9665
  "title": "Icon",
8382
9666
  "description": "\n\nDefines an icon to display.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"icon\": {\n \"width\": 16,\n \"height\": 16,\n \"url\": \"/my-icon.png\"\n }\n }\n\n\n"
8383
9667
  },
8384
- "singleCondition": {
8385
- "properties": {
8386
- "condition": {
8387
- "maxLength": 100,
8388
- "type": "string",
8389
- "fieldDescription": "\n\nA string indicating the name of the condition\n\n"
8390
- },
8391
- "invert": {
8392
- "type": "boolean",
8393
- "fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
8394
- "defaultValue": "false"
8395
- },
8396
- "params": {
8397
- "additionalProperties": true,
8398
- "type": "object",
8399
- "fieldTitle": "Object",
8400
- "fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
8401
- }
8402
- },
8403
- "required": [
8404
- "condition"
8405
- ],
8406
- "shortClassName": "singleConditionBean",
8407
- "type": "object",
8408
- "title": "Single Condition",
8409
- "description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
8410
- },
8411
9668
  "compositeCondition": {
8412
9669
  "properties": {
8413
9670
  "conditions": {
@@ -8441,6 +9698,33 @@
8441
9698
  "title": "Composite Condition",
8442
9699
  "description": "\n\nComposite Conditions are composed of a collection of [Single Condition](../single-condition/) / Composite Conditions\n and a type attribute.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"conditions\": [\n {\n \"or\": [\n {\n \"condition\": \"can_attach_file_to_issue\",\n \"invert\": false\n },\n {\n \"condition\": \"is_issue_assigned_to_current_user\",\n \"invert\": false\n }\n ]\n },\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n ]\n }\n\n\n"
8443
9700
  },
9701
+ "singleCondition": {
9702
+ "properties": {
9703
+ "condition": {
9704
+ "maxLength": 100,
9705
+ "type": "string",
9706
+ "fieldDescription": "\n\nA string indicating the name of the condition\n\n"
9707
+ },
9708
+ "invert": {
9709
+ "type": "boolean",
9710
+ "fieldDescription": "\n\nA flag indicating whether to invert the boolean result of the condition.\n\n",
9711
+ "defaultValue": "false"
9712
+ },
9713
+ "params": {
9714
+ "additionalProperties": true,
9715
+ "type": "object",
9716
+ "fieldTitle": "Object",
9717
+ "fieldDescription": "\n\nThis object represents a map of key/value pairs, where each property name and value corresponds to the parameter name and value respectively.\n\n <p><b>Example</b></p>\n\n\n\n\n\n {\n \"params\": {\n \"someOtherProperty\": \"someValue\",\n \"myCustomProperty\": \"myValue\"\n }\n }\n\n\n"
9718
+ }
9719
+ },
9720
+ "required": [
9721
+ "condition"
9722
+ ],
9723
+ "shortClassName": "singleConditionBean",
9724
+ "type": "object",
9725
+ "title": "Single Condition",
9726
+ "description": "\n\nSingle Conditions are either provided by the host application. See the complete documentation of\n [Conditions](../../conditions/) for more information.\n\n To invert a condition, add the attribute ``invert=\"true\"`` to the condition element.\n This is useful where you want to show the section if a certain condition is not satisfied.\n\n <h3>Example</h3>\n\n\n\n\n\n {\n \"condition\": \"user_is_logged_in\",\n \"invert\": false\n }\n\n\n"
9727
+ },
8444
9728
  "webPanelLayout": {
8445
9729
  "properties": {
8446
9730
  "width": {