@forge/manifest 0.0.0-experimental-64caa5a → 0.0.0-experimental-490cfcf

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +355 -6
  2. package/out/index.d.ts +1 -1
  3. package/out/index.d.ts.map +1 -1
  4. package/out/mapping/product-event-to-scope-mapping.json +334 -110
  5. package/out/processor/full-validation-processor.d.ts.map +1 -1
  6. package/out/processor/full-validation-processor.js +3 -0
  7. package/out/schema/basic-manifest-schema.json +32 -0
  8. package/out/schema/basic-manifest.d.ts +13 -0
  9. package/out/schema/manifest-schema.json +2345 -1035
  10. package/out/schema/manifest.d.ts +1853 -1019
  11. package/out/scopes/deprecated-shipyard-scopes.json +24 -0
  12. package/out/scopes/shipyard-scopes.json +49 -69
  13. package/out/text/errors.d.ts +6 -0
  14. package/out/text/errors.d.ts.map +1 -1
  15. package/out/text/errors.js +8 -2
  16. package/out/types/egress-types.d.ts +1 -1
  17. package/out/types/egress-types.d.ts.map +1 -1
  18. package/out/types/egress-types.js +3 -1
  19. package/out/types/module-types.d.ts +9 -0
  20. package/out/types/module-types.d.ts.map +1 -1
  21. package/out/types/module-types.js +9 -0
  22. package/out/validators/connect-authentication-validator.d.ts +7 -0
  23. package/out/validators/connect-authentication-validator.d.ts.map +1 -0
  24. package/out/validators/connect-authentication-validator.js +27 -0
  25. package/out/validators/deprecated-permissions-validator.d.ts +7 -0
  26. package/out/validators/deprecated-permissions-validator.d.ts.map +1 -0
  27. package/out/validators/deprecated-permissions-validator.js +31 -0
  28. package/out/validators/index.d.ts +1 -0
  29. package/out/validators/index.d.ts.map +1 -1
  30. package/out/validators/index.js +1 -0
  31. package/out/validators/modules-validator.d.ts.map +1 -1
  32. package/out/validators/modules-validator.js +12 -3
  33. package/out/validators/permissions-validator.d.ts +6 -0
  34. package/out/validators/permissions-validator.d.ts.map +1 -1
  35. package/out/validators/permissions-validator.js +78 -69
  36. package/out/validators/product-trigger-scopes-validator.d.ts +4 -1
  37. package/out/validators/product-trigger-scopes-validator.d.ts.map +1 -1
  38. package/out/validators/product-trigger-scopes-validator.js +23 -7
  39. package/package.json +3 -3
@@ -72,7 +72,7 @@ export type Scopes = string[];
72
72
  export type Scripts = string[];
73
73
  export type Styles = 'unsafe-inline'[];
74
74
  export type Backend = (string | Remote)[];
75
- export type Client = string[];
75
+ export type Client = (string | Remote1)[];
76
76
  export type Fonts = string[];
77
77
  export type Frames = string[];
78
78
  export type Navigation = string[];
@@ -82,6 +82,19 @@ export type Scripts1 = string[];
82
82
  export type Styles1 = string[];
83
83
  export type Resources = HostedResourcesSchema[];
84
84
  export type Remotes = RemotesSchema[];
85
+ export type BearerMethodSchema =
86
+ | ('authorization-header' | 'form-encoded' | 'uri-query')
87
+ | {
88
+ type: 'authorization-header' | 'form-encoded' | 'uri-query';
89
+ /**
90
+ * Custom authorization header prefix
91
+ */
92
+ prefix?: string;
93
+ /**
94
+ * Custom Header name or Parameter name (depending on type)
95
+ */
96
+ parameter?: string;
97
+ };
85
98
  /**
86
99
  * External authentication providers
87
100
  */
@@ -102,6 +115,15 @@ export interface App {
102
115
  runtime?: Runtime;
103
116
  licensing?: Licensing;
104
117
  connect?: Connect;
118
+ /**
119
+ * Options related to hosted storage
120
+ */
121
+ storage?: {
122
+ /**
123
+ * Labels to classify the type of data stored
124
+ */
125
+ classifications: ['ugc' | 'pii' | 'other', ...('ugc' | 'pii' | 'other')[]];
126
+ };
105
127
  }
106
128
  /**
107
129
  * Options related to the Forge Javascript runtime.
@@ -124,6 +146,10 @@ export interface Connect {
124
146
  * A key for the remote, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.
125
147
  */
126
148
  remote?: string;
149
+ /**
150
+ * The type of authentication used to communicate with tenant APIs
151
+ */
152
+ authentication?: 'jwt' | 'oauth2';
127
153
  }
128
154
  export interface ConnectModules {
129
155
  lifecycle?: [
@@ -298,6 +324,9 @@ export interface Modules {
298
324
  | {
299
325
  title: string;
300
326
  function: string;
327
+ displayConditions?: {
328
+ [k: string]: unknown;
329
+ };
301
330
  key: ModuleKeySchema;
302
331
  [k: string]: unknown;
303
332
  }
@@ -309,6 +338,9 @@ export interface Modules {
309
338
  resource: string;
310
339
  resourceUploadId?: string;
311
340
  viewportSize?: 'small' | 'medium' | 'large';
341
+ displayConditions?: {
342
+ [k: string]: unknown;
343
+ };
312
344
  key: ModuleKeySchema;
313
345
  [k: string]: unknown;
314
346
  }
@@ -317,6 +349,9 @@ export interface Modules {
317
349
  | {
318
350
  title: string;
319
351
  function: string;
352
+ displayConditions?: {
353
+ [k: string]: unknown;
354
+ };
320
355
  key: ModuleKeySchema;
321
356
  [k: string]: unknown;
322
357
  }
@@ -328,6 +363,9 @@ export interface Modules {
328
363
  resource: string;
329
364
  resourceUploadId?: string;
330
365
  viewportSize?: 'small' | 'medium' | 'large';
366
+ displayConditions?: {
367
+ [k: string]: unknown;
368
+ };
331
369
  key: ModuleKeySchema;
332
370
  [k: string]: unknown;
333
371
  }
@@ -338,6 +376,9 @@ export interface Modules {
338
376
  | {
339
377
  title: string;
340
378
  function: string;
379
+ displayConditions?: {
380
+ [k: string]: unknown;
381
+ };
341
382
  key: ModuleKeySchema;
342
383
  [k: string]: unknown;
343
384
  }
@@ -349,6 +390,9 @@ export interface Modules {
349
390
  resource: string;
350
391
  resourceUploadId?: string;
351
392
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
393
+ displayConditions?: {
394
+ [k: string]: unknown;
395
+ };
352
396
  key: ModuleKeySchema;
353
397
  [k: string]: unknown;
354
398
  }
@@ -357,6 +401,9 @@ export interface Modules {
357
401
  | {
358
402
  title: string;
359
403
  function: string;
404
+ displayConditions?: {
405
+ [k: string]: unknown;
406
+ };
360
407
  key: ModuleKeySchema;
361
408
  [k: string]: unknown;
362
409
  }
@@ -368,6 +415,9 @@ export interface Modules {
368
415
  resource: string;
369
416
  resourceUploadId?: string;
370
417
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
418
+ displayConditions?: {
419
+ [k: string]: unknown;
420
+ };
371
421
  key: ModuleKeySchema;
372
422
  [k: string]: unknown;
373
423
  }
@@ -450,6 +500,9 @@ export interface Modules {
450
500
  | {
451
501
  title: string;
452
502
  function: string;
503
+ displayConditions?: {
504
+ [k: string]: unknown;
505
+ };
453
506
  key: ModuleKeySchema;
454
507
  [k: string]: unknown;
455
508
  }
@@ -461,6 +514,9 @@ export interface Modules {
461
514
  resource: string;
462
515
  resourceUploadId?: string;
463
516
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
517
+ displayConditions?: {
518
+ [k: string]: unknown;
519
+ };
464
520
  key: ModuleKeySchema;
465
521
  [k: string]: unknown;
466
522
  }
@@ -469,6 +525,9 @@ export interface Modules {
469
525
  | {
470
526
  title: string;
471
527
  function: string;
528
+ displayConditions?: {
529
+ [k: string]: unknown;
530
+ };
472
531
  key: ModuleKeySchema;
473
532
  [k: string]: unknown;
474
533
  }
@@ -480,6 +539,9 @@ export interface Modules {
480
539
  resource: string;
481
540
  resourceUploadId?: string;
482
541
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
542
+ displayConditions?: {
543
+ [k: string]: unknown;
544
+ };
483
545
  key: ModuleKeySchema;
484
546
  [k: string]: unknown;
485
547
  }
@@ -492,6 +554,9 @@ export interface Modules {
492
554
  icon?: string;
493
555
  route: string;
494
556
  function: string;
557
+ displayConditions?: {
558
+ [k: string]: unknown;
559
+ };
495
560
  key: ModuleKeySchema;
496
561
  [k: string]: unknown;
497
562
  }
@@ -504,6 +569,9 @@ export interface Modules {
504
569
  };
505
570
  resource: string;
506
571
  resourceUploadId?: string;
572
+ displayConditions?: {
573
+ [k: string]: unknown;
574
+ };
507
575
  key: ModuleKeySchema;
508
576
  [k: string]: unknown;
509
577
  }
@@ -514,6 +582,9 @@ export interface Modules {
514
582
  icon?: string;
515
583
  route: string;
516
584
  function: string;
585
+ displayConditions?: {
586
+ [k: string]: unknown;
587
+ };
517
588
  key: ModuleKeySchema;
518
589
  [k: string]: unknown;
519
590
  }
@@ -526,6 +597,9 @@ export interface Modules {
526
597
  };
527
598
  resource: string;
528
599
  resourceUploadId?: string;
600
+ displayConditions?: {
601
+ [k: string]: unknown;
602
+ };
529
603
  key: ModuleKeySchema;
530
604
  [k: string]: unknown;
531
605
  }
@@ -536,6 +610,9 @@ export interface Modules {
536
610
  | {
537
611
  title: string;
538
612
  function: string;
613
+ displayConditions?: {
614
+ [k: string]: unknown;
615
+ };
539
616
  key: ModuleKeySchema;
540
617
  [k: string]: unknown;
541
618
  }
@@ -546,6 +623,9 @@ export interface Modules {
546
623
  };
547
624
  resource: string;
548
625
  resourceUploadId?: string;
626
+ displayConditions?: {
627
+ [k: string]: unknown;
628
+ };
549
629
  key: ModuleKeySchema;
550
630
  [k: string]: unknown;
551
631
  }
@@ -554,6 +634,9 @@ export interface Modules {
554
634
  | {
555
635
  title: string;
556
636
  function: string;
637
+ displayConditions?: {
638
+ [k: string]: unknown;
639
+ };
557
640
  key: ModuleKeySchema;
558
641
  [k: string]: unknown;
559
642
  }
@@ -564,6 +647,9 @@ export interface Modules {
564
647
  };
565
648
  resource: string;
566
649
  resourceUploadId?: string;
650
+ displayConditions?: {
651
+ [k: string]: unknown;
652
+ };
567
653
  key: ModuleKeySchema;
568
654
  [k: string]: unknown;
569
655
  }
@@ -574,6 +660,9 @@ export interface Modules {
574
660
  | {
575
661
  title: string;
576
662
  function: string;
663
+ displayConditions?: {
664
+ [k: string]: unknown;
665
+ };
577
666
  key: ModuleKeySchema;
578
667
  [k: string]: unknown;
579
668
  }
@@ -584,6 +673,9 @@ export interface Modules {
584
673
  };
585
674
  resource: string;
586
675
  resourceUploadId?: string;
676
+ displayConditions?: {
677
+ [k: string]: unknown;
678
+ };
587
679
  key: ModuleKeySchema;
588
680
  [k: string]: unknown;
589
681
  }
@@ -592,6 +684,9 @@ export interface Modules {
592
684
  | {
593
685
  title: string;
594
686
  function: string;
687
+ displayConditions?: {
688
+ [k: string]: unknown;
689
+ };
595
690
  key: ModuleKeySchema;
596
691
  [k: string]: unknown;
597
692
  }
@@ -602,6 +697,9 @@ export interface Modules {
602
697
  };
603
698
  resource: string;
604
699
  resourceUploadId?: string;
700
+ displayConditions?: {
701
+ [k: string]: unknown;
702
+ };
605
703
  key: ModuleKeySchema;
606
704
  [k: string]: unknown;
607
705
  }
@@ -614,6 +712,9 @@ export interface Modules {
614
712
  icon?: string;
615
713
  route: string;
616
714
  function: string;
715
+ displayConditions?: {
716
+ [k: string]: unknown;
717
+ };
617
718
  key: ModuleKeySchema;
618
719
  }
619
720
  | {
@@ -625,6 +726,9 @@ export interface Modules {
625
726
  };
626
727
  resource: string;
627
728
  resourceUploadId?: string;
729
+ displayConditions?: {
730
+ [k: string]: unknown;
731
+ };
628
732
  key: ModuleKeySchema;
629
733
  }
630
734
  ),
@@ -634,6 +738,9 @@ export interface Modules {
634
738
  icon?: string;
635
739
  route: string;
636
740
  function: string;
741
+ displayConditions?: {
742
+ [k: string]: unknown;
743
+ };
637
744
  key: ModuleKeySchema;
638
745
  }
639
746
  | {
@@ -645,6 +752,9 @@ export interface Modules {
645
752
  };
646
753
  resource: string;
647
754
  resourceUploadId?: string;
755
+ displayConditions?: {
756
+ [k: string]: unknown;
757
+ };
648
758
  key: ModuleKeySchema;
649
759
  }
650
760
  )[]
@@ -654,6 +764,20 @@ export interface Modules {
654
764
  name: string;
655
765
  description: string;
656
766
  function?: string;
767
+ expression?: string;
768
+ errorMessage?: string;
769
+ view?: {
770
+ resource: string;
771
+ [k: string]: unknown;
772
+ };
773
+ edit?: {
774
+ resource: string;
775
+ [k: string]: unknown;
776
+ };
777
+ create?: {
778
+ resource: string;
779
+ [k: string]: unknown;
780
+ };
657
781
  key: ModuleKeySchema;
658
782
  [k: string]: unknown;
659
783
  },
@@ -661,6 +785,20 @@ export interface Modules {
661
785
  name: string;
662
786
  description: string;
663
787
  function?: string;
788
+ expression?: string;
789
+ errorMessage?: string;
790
+ view?: {
791
+ resource: string;
792
+ [k: string]: unknown;
793
+ };
794
+ edit?: {
795
+ resource: string;
796
+ [k: string]: unknown;
797
+ };
798
+ create?: {
799
+ resource: string;
800
+ [k: string]: unknown;
801
+ };
664
802
  key: ModuleKeySchema;
665
803
  [k: string]: unknown;
666
804
  }[]
@@ -698,77 +836,16 @@ export interface Modules {
698
836
  function: string;
699
837
  [k: string]: unknown;
700
838
  };
701
- key: ModuleKeySchema;
702
- [k: string]: unknown;
703
- }
704
- | {
705
- formatter: {
706
- expression: string;
707
- [k: string]: unknown;
708
- };
709
- schema?: {
710
- [k: string]: unknown;
711
- };
712
- name: string;
713
- description: string;
714
- type: 'object';
715
- collection?: 'list' | 'none';
716
- validation?: {
717
- expression: string;
718
- errorMessage?: string;
719
- [k: string]: unknown;
720
- };
721
- readOnly?: boolean;
722
- resolver?: {
723
- function: string;
724
- };
725
- edit?:
839
+ searchSuggestions?:
726
840
  | {
727
841
  function: string;
728
842
  [k: string]: unknown;
729
843
  }
730
844
  | {
731
- resource: string;
845
+ expression: string;
732
846
  [k: string]: unknown;
733
847
  };
734
- value?: {
735
- function: string;
736
- [k: string]: unknown;
737
- };
738
- key: ModuleKeySchema;
739
- [k: string]: unknown;
740
- }
741
- ),
742
- ...(
743
- | {
744
- formatter?: {
745
- expression: string;
746
- [k: string]: unknown;
747
- };
748
- name: string;
749
- description: string;
750
- type: 'datetime' | 'group' | 'number' | 'string' | 'user';
751
- collection?: 'list' | 'none';
752
- validation?: {
753
- expression: string;
754
- errorMessage?: string;
755
- [k: string]: unknown;
756
- };
757
- readOnly?: boolean;
758
- resolver?: {
759
- function: string;
760
- };
761
- edit?:
762
- | {
763
- function: string;
764
- [k: string]: unknown;
765
- }
766
- | {
767
- resource: string;
768
- [k: string]: unknown;
769
- };
770
- value?: {
771
- function: string;
848
+ displayConditions?: {
772
849
  [k: string]: unknown;
773
850
  };
774
851
  key: ModuleKeySchema;
@@ -808,105 +885,18 @@ export interface Modules {
808
885
  function: string;
809
886
  [k: string]: unknown;
810
887
  };
811
- key: ModuleKeySchema;
812
- [k: string]: unknown;
813
- }
814
- )[]
815
- ];
816
- 'jira:customFieldType'?: [
817
- (
818
- | {
819
- formatter?: {
820
- expression: string;
821
- [k: string]: unknown;
822
- };
823
- name: string;
824
- description: string;
825
- type: 'datetime' | 'group' | 'number' | 'string' | 'user';
826
- collection?: 'list' | 'none';
827
- validation?: {
828
- expression: string;
829
- errorMessage?: string;
830
- [k: string]: unknown;
831
- };
832
- readOnly?: boolean;
833
- edit?:
834
- | {
835
- function: string;
836
- [k: string]: unknown;
837
- }
838
- | {
839
- resource: string;
840
- [k: string]: unknown;
841
- };
842
- value?: {
843
- function: string;
844
- [k: string]: unknown;
845
- };
846
- icon?: string;
847
- resolver?: {
848
- function: string;
849
- };
850
- contextConfig?:
851
- | {
852
- function: string;
853
- layout?: 'basic' | 'native';
854
- [k: string]: unknown;
855
- }
856
- | {
857
- resource: string;
858
- layout?: 'basic' | 'native';
859
- [k: string]: unknown;
860
- };
861
- key: ModuleKeySchema;
862
- [k: string]: unknown;
863
- }
864
- | {
865
- formatter: {
866
- expression: string;
867
- [k: string]: unknown;
868
- };
869
- schema?: {
870
- [k: string]: unknown;
871
- };
872
- name: string;
873
- description: string;
874
- type: 'object';
875
- collection?: 'list' | 'none';
876
- validation?: {
877
- expression: string;
878
- errorMessage?: string;
879
- [k: string]: unknown;
880
- };
881
- readOnly?: boolean;
882
- edit?:
888
+ searchSuggestions?:
883
889
  | {
884
890
  function: string;
885
891
  [k: string]: unknown;
886
892
  }
887
893
  | {
888
- resource: string;
894
+ expression: string;
889
895
  [k: string]: unknown;
890
896
  };
891
- value?: {
892
- function: string;
897
+ displayConditions?: {
893
898
  [k: string]: unknown;
894
899
  };
895
- icon?: string;
896
- resolver?: {
897
- function: string;
898
- };
899
- contextConfig?:
900
- | {
901
- function: string;
902
- layout?: 'basic' | 'native';
903
- [k: string]: unknown;
904
- }
905
- | {
906
- resource: string;
907
- layout?: 'basic' | 'native';
908
- [k: string]: unknown;
909
- };
910
900
  key: ModuleKeySchema;
911
901
  [k: string]: unknown;
912
902
  }
@@ -927,6 +917,9 @@ export interface Modules {
927
917
  [k: string]: unknown;
928
918
  };
929
919
  readOnly?: boolean;
920
+ resolver?: {
921
+ function: string;
922
+ };
930
923
  edit?:
931
924
  | {
932
925
  function: string;
@@ -940,21 +933,250 @@ export interface Modules {
940
933
  function: string;
941
934
  [k: string]: unknown;
942
935
  };
943
- icon?: string;
944
- resolver?: {
945
- function: string;
946
- };
947
- contextConfig?:
936
+ searchSuggestions?:
948
937
  | {
949
938
  function: string;
950
- layout?: 'basic' | 'native';
951
939
  [k: string]: unknown;
952
940
  }
953
941
  | {
954
- resource: string;
955
- layout?: 'basic' | 'native';
942
+ expression: string;
956
943
  [k: string]: unknown;
957
944
  };
945
+ displayConditions?: {
946
+ [k: string]: unknown;
947
+ };
948
+ key: ModuleKeySchema;
949
+ [k: string]: unknown;
950
+ }
951
+ | {
952
+ formatter: {
953
+ expression: string;
954
+ [k: string]: unknown;
955
+ };
956
+ schema?: {
957
+ [k: string]: unknown;
958
+ };
959
+ name: string;
960
+ description: string;
961
+ type: 'object';
962
+ collection?: 'list' | 'none';
963
+ validation?: {
964
+ expression: string;
965
+ errorMessage?: string;
966
+ [k: string]: unknown;
967
+ };
968
+ readOnly?: boolean;
969
+ resolver?: {
970
+ function: string;
971
+ };
972
+ edit?:
973
+ | {
974
+ function: string;
975
+ [k: string]: unknown;
976
+ }
977
+ | {
978
+ resource: string;
979
+ [k: string]: unknown;
980
+ };
981
+ value?: {
982
+ function: string;
983
+ [k: string]: unknown;
984
+ };
985
+ searchSuggestions?:
986
+ | {
987
+ function: string;
988
+ [k: string]: unknown;
989
+ }
990
+ | {
991
+ expression: string;
992
+ [k: string]: unknown;
993
+ };
994
+ displayConditions?: {
995
+ [k: string]: unknown;
996
+ };
997
+ key: ModuleKeySchema;
998
+ [k: string]: unknown;
999
+ }
1000
+ )[]
1001
+ ];
1002
+ 'jira:customFieldType'?: [
1003
+ (
1004
+ | {
1005
+ formatter?: {
1006
+ expression: string;
1007
+ [k: string]: unknown;
1008
+ };
1009
+ name: string;
1010
+ description: string;
1011
+ type: 'datetime' | 'group' | 'number' | 'string' | 'user';
1012
+ collection?: 'list' | 'none';
1013
+ validation?: {
1014
+ expression: string;
1015
+ errorMessage?: string;
1016
+ [k: string]: unknown;
1017
+ };
1018
+ readOnly?: boolean;
1019
+ edit?:
1020
+ | {
1021
+ function: string;
1022
+ [k: string]: unknown;
1023
+ }
1024
+ | {
1025
+ resource: string;
1026
+ [k: string]: unknown;
1027
+ };
1028
+ value?: {
1029
+ function: string;
1030
+ [k: string]: unknown;
1031
+ };
1032
+ searchSuggestions?:
1033
+ | {
1034
+ function: string;
1035
+ [k: string]: unknown;
1036
+ }
1037
+ | {
1038
+ expression: string;
1039
+ [k: string]: unknown;
1040
+ };
1041
+ icon?: string;
1042
+ resolver?: {
1043
+ function: string;
1044
+ };
1045
+ contextConfig?:
1046
+ | {
1047
+ function: string;
1048
+ layout?: 'basic' | 'native';
1049
+ [k: string]: unknown;
1050
+ }
1051
+ | {
1052
+ resource: string;
1053
+ layout?: 'basic' | 'native';
1054
+ [k: string]: unknown;
1055
+ };
1056
+ displayConditions?: {
1057
+ [k: string]: unknown;
1058
+ };
1059
+ key: ModuleKeySchema;
1060
+ [k: string]: unknown;
1061
+ }
1062
+ | {
1063
+ formatter: {
1064
+ expression: string;
1065
+ [k: string]: unknown;
1066
+ };
1067
+ schema?: {
1068
+ [k: string]: unknown;
1069
+ };
1070
+ name: string;
1071
+ description: string;
1072
+ type: 'object';
1073
+ collection?: 'list' | 'none';
1074
+ validation?: {
1075
+ expression: string;
1076
+ errorMessage?: string;
1077
+ [k: string]: unknown;
1078
+ };
1079
+ readOnly?: boolean;
1080
+ edit?:
1081
+ | {
1082
+ function: string;
1083
+ [k: string]: unknown;
1084
+ }
1085
+ | {
1086
+ resource: string;
1087
+ [k: string]: unknown;
1088
+ };
1089
+ value?: {
1090
+ function: string;
1091
+ [k: string]: unknown;
1092
+ };
1093
+ searchSuggestions?:
1094
+ | {
1095
+ function: string;
1096
+ [k: string]: unknown;
1097
+ }
1098
+ | {
1099
+ expression: string;
1100
+ [k: string]: unknown;
1101
+ };
1102
+ icon?: string;
1103
+ resolver?: {
1104
+ function: string;
1105
+ };
1106
+ contextConfig?:
1107
+ | {
1108
+ function: string;
1109
+ layout?: 'basic' | 'native';
1110
+ [k: string]: unknown;
1111
+ }
1112
+ | {
1113
+ resource: string;
1114
+ layout?: 'basic' | 'native';
1115
+ [k: string]: unknown;
1116
+ };
1117
+ displayConditions?: {
1118
+ [k: string]: unknown;
1119
+ };
1120
+ key: ModuleKeySchema;
1121
+ [k: string]: unknown;
1122
+ }
1123
+ ),
1124
+ ...(
1125
+ | {
1126
+ formatter?: {
1127
+ expression: string;
1128
+ [k: string]: unknown;
1129
+ };
1130
+ name: string;
1131
+ description: string;
1132
+ type: 'datetime' | 'group' | 'number' | 'string' | 'user';
1133
+ collection?: 'list' | 'none';
1134
+ validation?: {
1135
+ expression: string;
1136
+ errorMessage?: string;
1137
+ [k: string]: unknown;
1138
+ };
1139
+ readOnly?: boolean;
1140
+ edit?:
1141
+ | {
1142
+ function: string;
1143
+ [k: string]: unknown;
1144
+ }
1145
+ | {
1146
+ resource: string;
1147
+ [k: string]: unknown;
1148
+ };
1149
+ value?: {
1150
+ function: string;
1151
+ [k: string]: unknown;
1152
+ };
1153
+ searchSuggestions?:
1154
+ | {
1155
+ function: string;
1156
+ [k: string]: unknown;
1157
+ }
1158
+ | {
1159
+ expression: string;
1160
+ [k: string]: unknown;
1161
+ };
1162
+ icon?: string;
1163
+ resolver?: {
1164
+ function: string;
1165
+ };
1166
+ contextConfig?:
1167
+ | {
1168
+ function: string;
1169
+ layout?: 'basic' | 'native';
1170
+ [k: string]: unknown;
1171
+ }
1172
+ | {
1173
+ resource: string;
1174
+ layout?: 'basic' | 'native';
1175
+ [k: string]: unknown;
1176
+ };
1177
+ displayConditions?: {
1178
+ [k: string]: unknown;
1179
+ };
958
1180
  key: ModuleKeySchema;
959
1181
  [k: string]: unknown;
960
1182
  }
@@ -989,6 +1211,15 @@ export interface Modules {
989
1211
  function: string;
990
1212
  [k: string]: unknown;
991
1213
  };
1214
+ searchSuggestions?:
1215
+ | {
1216
+ function: string;
1217
+ [k: string]: unknown;
1218
+ }
1219
+ | {
1220
+ expression: string;
1221
+ [k: string]: unknown;
1222
+ };
992
1223
  icon?: string;
993
1224
  resolver?: {
994
1225
  function: string;
@@ -1004,6 +1235,9 @@ export interface Modules {
1004
1235
  layout?: 'basic' | 'native';
1005
1236
  [k: string]: unknown;
1006
1237
  };
1238
+ displayConditions?: {
1239
+ [k: string]: unknown;
1240
+ };
1007
1241
  key: ModuleKeySchema;
1008
1242
  [k: string]: unknown;
1009
1243
  }
@@ -1014,6 +1248,9 @@ export interface Modules {
1014
1248
  | {
1015
1249
  title: string;
1016
1250
  function: string;
1251
+ displayConditions?: {
1252
+ [k: string]: unknown;
1253
+ };
1017
1254
  key: ModuleKeySchema;
1018
1255
  [k: string]: unknown;
1019
1256
  }
@@ -1025,6 +1262,9 @@ export interface Modules {
1025
1262
  resource: string;
1026
1263
  resourceUploadId?: string;
1027
1264
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
1265
+ displayConditions?: {
1266
+ [k: string]: unknown;
1267
+ };
1028
1268
  key: ModuleKeySchema;
1029
1269
  [k: string]: unknown;
1030
1270
  }
@@ -1033,6 +1273,9 @@ export interface Modules {
1033
1273
  | {
1034
1274
  title: string;
1035
1275
  function: string;
1276
+ displayConditions?: {
1277
+ [k: string]: unknown;
1278
+ };
1036
1279
  key: ModuleKeySchema;
1037
1280
  [k: string]: unknown;
1038
1281
  }
@@ -1044,6 +1287,9 @@ export interface Modules {
1044
1287
  resource: string;
1045
1288
  resourceUploadId?: string;
1046
1289
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
1290
+ displayConditions?: {
1291
+ [k: string]: unknown;
1292
+ };
1047
1293
  key: ModuleKeySchema;
1048
1294
  [k: string]: unknown;
1049
1295
  }
@@ -1066,6 +1312,9 @@ export interface Modules {
1066
1312
  [k: string]: unknown;
1067
1313
  };
1068
1314
  icon?: string;
1315
+ displayConditions?: {
1316
+ [k: string]: unknown;
1317
+ };
1069
1318
  key: ModuleKeySchema;
1070
1319
  [k: string]: unknown;
1071
1320
  }
@@ -1087,6 +1336,9 @@ export interface Modules {
1087
1336
  [k: string]: unknown;
1088
1337
  };
1089
1338
  icon?: string;
1339
+ displayConditions?: {
1340
+ [k: string]: unknown;
1341
+ };
1090
1342
  key: ModuleKeySchema;
1091
1343
  [k: string]: unknown;
1092
1344
  }
@@ -1107,6 +1359,9 @@ export interface Modules {
1107
1359
  [k: string]: unknown;
1108
1360
  };
1109
1361
  icon?: string;
1362
+ displayConditions?: {
1363
+ [k: string]: unknown;
1364
+ };
1110
1365
  key: ModuleKeySchema;
1111
1366
  [k: string]: unknown;
1112
1367
  }
@@ -1128,6 +1383,9 @@ export interface Modules {
1128
1383
  [k: string]: unknown;
1129
1384
  };
1130
1385
  icon?: string;
1386
+ displayConditions?: {
1387
+ [k: string]: unknown;
1388
+ };
1131
1389
  key: ModuleKeySchema;
1132
1390
  [k: string]: unknown;
1133
1391
  }
@@ -1144,6 +1402,9 @@ export interface Modules {
1144
1402
  [k: string]: unknown;
1145
1403
  };
1146
1404
  function: string;
1405
+ displayConditions?: {
1406
+ [k: string]: unknown;
1407
+ };
1147
1408
  key: ModuleKeySchema;
1148
1409
  [k: string]: unknown;
1149
1410
  }
@@ -1161,6 +1422,9 @@ export interface Modules {
1161
1422
  resource: string;
1162
1423
  resourceUploadId?: string;
1163
1424
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
1425
+ displayConditions?: {
1426
+ [k: string]: unknown;
1427
+ };
1164
1428
  key: ModuleKeySchema;
1165
1429
  [k: string]: unknown;
1166
1430
  }
@@ -1175,6 +1439,9 @@ export interface Modules {
1175
1439
  [k: string]: unknown;
1176
1440
  };
1177
1441
  function: string;
1442
+ displayConditions?: {
1443
+ [k: string]: unknown;
1444
+ };
1178
1445
  key: ModuleKeySchema;
1179
1446
  [k: string]: unknown;
1180
1447
  }
@@ -1192,6 +1459,9 @@ export interface Modules {
1192
1459
  resource: string;
1193
1460
  resourceUploadId?: string;
1194
1461
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
1462
+ displayConditions?: {
1463
+ [k: string]: unknown;
1464
+ };
1195
1465
  key: ModuleKeySchema;
1196
1466
  [k: string]: unknown;
1197
1467
  }
@@ -1202,6 +1472,9 @@ export interface Modules {
1202
1472
  | {
1203
1473
  title: string;
1204
1474
  function: string;
1475
+ displayConditions?: {
1476
+ [k: string]: unknown;
1477
+ };
1205
1478
  key: ModuleKeySchema;
1206
1479
  [k: string]: unknown;
1207
1480
  }
@@ -1213,6 +1486,9 @@ export interface Modules {
1213
1486
  resource: string;
1214
1487
  resourceUploadId?: string;
1215
1488
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
1489
+ displayConditions?: {
1490
+ [k: string]: unknown;
1491
+ };
1216
1492
  key: ModuleKeySchema;
1217
1493
  [k: string]: unknown;
1218
1494
  }
@@ -1221,6 +1497,9 @@ export interface Modules {
1221
1497
  | {
1222
1498
  title: string;
1223
1499
  function: string;
1500
+ displayConditions?: {
1501
+ [k: string]: unknown;
1502
+ };
1224
1503
  key: ModuleKeySchema;
1225
1504
  [k: string]: unknown;
1226
1505
  }
@@ -1232,91 +1511,126 @@ export interface Modules {
1232
1511
  resource: string;
1233
1512
  resourceUploadId?: string;
1234
1513
  viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
1514
+ displayConditions?: {
1515
+ [k: string]: unknown;
1516
+ };
1235
1517
  key: ModuleKeySchema;
1236
1518
  [k: string]: unknown;
1237
1519
  }
1238
1520
  )[]
1239
1521
  ];
1240
1522
  'jira:dashboardGadget'?: [
1241
- {
1242
- title:
1243
- | {
1244
- text: string;
1245
- href?: string;
1246
- [k: string]: unknown;
1247
- }
1248
- | string;
1249
- description: string;
1250
- thumbnail: string;
1251
- function: string;
1252
- edit?: {
1253
- function: string;
1254
- [k: string]: unknown;
1255
- };
1256
- key: ModuleKeySchema;
1257
- [k: string]: unknown;
1258
- },
1259
- ...{
1260
- title:
1261
- | {
1262
- text: string;
1263
- href?: string;
1264
- [k: string]: unknown;
1265
- }
1266
- | string;
1267
- description: string;
1268
- thumbnail: string;
1269
- function: string;
1270
- edit?: {
1271
- function: string;
1272
- [k: string]: unknown;
1273
- };
1274
- key: ModuleKeySchema;
1275
- [k: string]: unknown;
1276
- }[]
1277
- ];
1278
- 'jira:adminPage'?: [
1279
1523
  (
1280
1524
  | {
1525
+ title:
1526
+ | {
1527
+ text: string;
1528
+ href?: string;
1529
+ [k: string]: unknown;
1530
+ }
1531
+ | string;
1532
+ description: string;
1533
+ thumbnail: string;
1281
1534
  function: string;
1282
- title: string;
1283
- icon?: string;
1284
- layout?: 'basic' | 'native';
1535
+ edit?: {
1536
+ function: string;
1537
+ [k: string]: unknown;
1538
+ };
1539
+ displayConditions?: {
1540
+ [k: string]: unknown;
1541
+ };
1285
1542
  key: ModuleKeySchema;
1286
1543
  [k: string]: unknown;
1287
1544
  }
1288
1545
  | {
1289
1546
  resource: string;
1290
- resourceUploadId?: string;
1291
1547
  resolver?: {
1292
1548
  function: string;
1293
1549
  };
1294
- title: string;
1295
- icon?: string;
1296
- layout?: 'basic' | 'native';
1550
+ title:
1551
+ | {
1552
+ text: string;
1553
+ href?: string;
1554
+ [k: string]: unknown;
1555
+ }
1556
+ | string;
1557
+ description: string;
1558
+ thumbnail: string;
1559
+ function?: string;
1560
+ edit?: {
1561
+ resource: string;
1562
+ [k: string]: unknown;
1563
+ };
1564
+ displayConditions?: {
1565
+ [k: string]: unknown;
1566
+ };
1297
1567
  key: ModuleKeySchema;
1298
1568
  [k: string]: unknown;
1299
1569
  }
1570
+ ),
1571
+ ...(
1300
1572
  | {
1301
- pages: {
1302
- title: string;
1303
- route: string;
1304
- icon?: string;
1573
+ title:
1574
+ | {
1575
+ text: string;
1576
+ href?: string;
1577
+ [k: string]: unknown;
1578
+ }
1579
+ | string;
1580
+ description: string;
1581
+ thumbnail: string;
1582
+ function: string;
1583
+ edit?: {
1584
+ function: string;
1305
1585
  [k: string]: unknown;
1306
- }[];
1586
+ };
1587
+ displayConditions?: {
1588
+ [k: string]: unknown;
1589
+ };
1590
+ key: ModuleKeySchema;
1591
+ [k: string]: unknown;
1592
+ }
1593
+ | {
1307
1594
  resource: string;
1308
- resourceUploadId?: string;
1309
1595
  resolver?: {
1310
1596
  function: string;
1311
1597
  };
1312
- title: string;
1313
- icon?: string;
1314
- layout?: 'basic' | 'native';
1598
+ title:
1599
+ | {
1600
+ text: string;
1601
+ href?: string;
1602
+ [k: string]: unknown;
1603
+ }
1604
+ | string;
1605
+ description: string;
1606
+ thumbnail: string;
1607
+ function?: string;
1608
+ edit?: {
1609
+ resource: string;
1610
+ [k: string]: unknown;
1611
+ };
1612
+ displayConditions?: {
1613
+ [k: string]: unknown;
1614
+ };
1315
1615
  key: ModuleKeySchema;
1316
1616
  [k: string]: unknown;
1317
1617
  }
1618
+ )[]
1619
+ ];
1620
+ 'jira:adminPage'?: [
1621
+ (
1318
1622
  | {
1319
- sections: {
1623
+ function: string;
1624
+ title: string;
1625
+ icon?: string;
1626
+ layout?: 'basic' | 'native';
1627
+ pages?: {
1628
+ title: string;
1629
+ route: string;
1630
+ icon?: string;
1631
+ [k: string]: unknown;
1632
+ }[];
1633
+ sections?: {
1320
1634
  header?: string;
1321
1635
  pages: {
1322
1636
  title: string;
@@ -1326,6 +1640,13 @@ export interface Modules {
1326
1640
  }[];
1327
1641
  [k: string]: unknown;
1328
1642
  }[];
1643
+ displayConditions?: {
1644
+ [k: string]: unknown;
1645
+ };
1646
+ key: ModuleKeySchema;
1647
+ [k: string]: unknown;
1648
+ }
1649
+ | {
1329
1650
  resource: string;
1330
1651
  resourceUploadId?: string;
1331
1652
  resolver?: {
@@ -1334,6 +1655,25 @@ export interface Modules {
1334
1655
  title: string;
1335
1656
  icon?: string;
1336
1657
  layout?: 'basic' | 'native';
1658
+ pages?: {
1659
+ title: string;
1660
+ route: string;
1661
+ icon?: string;
1662
+ [k: string]: unknown;
1663
+ }[];
1664
+ sections?: {
1665
+ header?: string;
1666
+ pages: {
1667
+ title: string;
1668
+ route: string;
1669
+ icon?: string;
1670
+ [k: string]: unknown;
1671
+ }[];
1672
+ [k: string]: unknown;
1673
+ }[];
1674
+ displayConditions?: {
1675
+ [k: string]: unknown;
1676
+ };
1337
1677
  key: ModuleKeySchema;
1338
1678
  [k: string]: unknown;
1339
1679
  }
@@ -1344,6 +1684,25 @@ export interface Modules {
1344
1684
  title: string;
1345
1685
  icon?: string;
1346
1686
  layout?: 'basic' | 'native';
1687
+ pages?: {
1688
+ title: string;
1689
+ route: string;
1690
+ icon?: string;
1691
+ [k: string]: unknown;
1692
+ }[];
1693
+ sections?: {
1694
+ header?: string;
1695
+ pages: {
1696
+ title: string;
1697
+ route: string;
1698
+ icon?: string;
1699
+ [k: string]: unknown;
1700
+ }[];
1701
+ [k: string]: unknown;
1702
+ }[];
1703
+ displayConditions?: {
1704
+ [k: string]: unknown;
1705
+ };
1347
1706
  key: ModuleKeySchema;
1348
1707
  [k: string]: unknown;
1349
1708
  }
@@ -1356,29 +1715,13 @@ export interface Modules {
1356
1715
  title: string;
1357
1716
  icon?: string;
1358
1717
  layout?: 'basic' | 'native';
1359
- key: ModuleKeySchema;
1360
- [k: string]: unknown;
1361
- }
1362
- | {
1363
- pages: {
1718
+ pages?: {
1364
1719
  title: string;
1365
1720
  route: string;
1366
1721
  icon?: string;
1367
1722
  [k: string]: unknown;
1368
1723
  }[];
1369
- resource: string;
1370
- resourceUploadId?: string;
1371
- resolver?: {
1372
- function: string;
1373
- };
1374
- title: string;
1375
- icon?: string;
1376
- layout?: 'basic' | 'native';
1377
- key: ModuleKeySchema;
1378
- [k: string]: unknown;
1379
- }
1380
- | {
1381
- sections: {
1724
+ sections?: {
1382
1725
  header?: string;
1383
1726
  pages: {
1384
1727
  title: string;
@@ -1388,14 +1731,9 @@ export interface Modules {
1388
1731
  }[];
1389
1732
  [k: string]: unknown;
1390
1733
  }[];
1391
- resource: string;
1392
- resourceUploadId?: string;
1393
- resolver?: {
1394
- function: string;
1734
+ displayConditions?: {
1735
+ [k: string]: unknown;
1395
1736
  };
1396
- title: string;
1397
- icon?: string;
1398
- layout?: 'basic' | 'native';
1399
1737
  key: ModuleKeySchema;
1400
1738
  [k: string]: unknown;
1401
1739
  }
@@ -1408,6 +1746,25 @@ export interface Modules {
1408
1746
  title: string;
1409
1747
  icon?: string;
1410
1748
  layout?: 'basic' | 'native';
1749
+ pages?: {
1750
+ title: string;
1751
+ route: string;
1752
+ icon?: string;
1753
+ [k: string]: unknown;
1754
+ }[];
1755
+ sections?: {
1756
+ header?: string;
1757
+ pages: {
1758
+ title: string;
1759
+ route: string;
1760
+ icon?: string;
1761
+ [k: string]: unknown;
1762
+ }[];
1763
+ [k: string]: unknown;
1764
+ }[];
1765
+ displayConditions?: {
1766
+ [k: string]: unknown;
1767
+ };
1411
1768
  key: ModuleKeySchema;
1412
1769
  [k: string]: unknown;
1413
1770
  }
@@ -1420,29 +1777,13 @@ export interface Modules {
1420
1777
  title: string;
1421
1778
  icon?: string;
1422
1779
  layout?: 'basic' | 'native';
1423
- key: ModuleKeySchema;
1424
- [k: string]: unknown;
1425
- }
1426
- | {
1427
- pages: {
1780
+ pages?: {
1428
1781
  title: string;
1429
1782
  route: string;
1430
1783
  icon?: string;
1431
1784
  [k: string]: unknown;
1432
1785
  }[];
1433
- resource: string;
1434
- resourceUploadId?: string;
1435
- resolver?: {
1436
- function: string;
1437
- };
1438
- title: string;
1439
- icon?: string;
1440
- layout?: 'basic' | 'native';
1441
- key: ModuleKeySchema;
1442
- [k: string]: unknown;
1443
- }
1444
- | {
1445
- sections: {
1786
+ sections?: {
1446
1787
  header?: string;
1447
1788
  pages: {
1448
1789
  title: string;
@@ -1452,14 +1793,9 @@ export interface Modules {
1452
1793
  }[];
1453
1794
  [k: string]: unknown;
1454
1795
  }[];
1455
- resource: string;
1456
- resourceUploadId?: string;
1457
- resolver?: {
1458
- function: string;
1796
+ displayConditions?: {
1797
+ [k: string]: unknown;
1459
1798
  };
1460
- title: string;
1461
- icon?: string;
1462
- layout?: 'basic' | 'native';
1463
1799
  key: ModuleKeySchema;
1464
1800
  [k: string]: unknown;
1465
1801
  }
@@ -1470,6 +1806,25 @@ export interface Modules {
1470
1806
  title: string;
1471
1807
  icon?: string;
1472
1808
  layout?: 'basic' | 'native';
1809
+ pages?: {
1810
+ title: string;
1811
+ route: string;
1812
+ icon?: string;
1813
+ [k: string]: unknown;
1814
+ }[];
1815
+ sections?: {
1816
+ header?: string;
1817
+ pages: {
1818
+ title: string;
1819
+ route: string;
1820
+ icon?: string;
1821
+ [k: string]: unknown;
1822
+ }[];
1823
+ [k: string]: unknown;
1824
+ }[];
1825
+ displayConditions?: {
1826
+ [k: string]: unknown;
1827
+ };
1473
1828
  key: ModuleKeySchema;
1474
1829
  [k: string]: unknown;
1475
1830
  }
@@ -1482,29 +1837,13 @@ export interface Modules {
1482
1837
  title: string;
1483
1838
  icon?: string;
1484
1839
  layout?: 'basic' | 'native';
1485
- key: ModuleKeySchema;
1486
- [k: string]: unknown;
1487
- }
1488
- | {
1489
- pages: {
1840
+ pages?: {
1490
1841
  title: string;
1491
1842
  route: string;
1492
1843
  icon?: string;
1493
1844
  [k: string]: unknown;
1494
1845
  }[];
1495
- resource: string;
1496
- resourceUploadId?: string;
1497
- resolver?: {
1498
- function: string;
1499
- };
1500
- title: string;
1501
- icon?: string;
1502
- layout?: 'basic' | 'native';
1503
- key: ModuleKeySchema;
1504
- [k: string]: unknown;
1505
- }
1506
- | {
1507
- sections: {
1846
+ sections?: {
1508
1847
  header?: string;
1509
1848
  pages: {
1510
1849
  title: string;
@@ -1514,14 +1853,9 @@ export interface Modules {
1514
1853
  }[];
1515
1854
  [k: string]: unknown;
1516
1855
  }[];
1517
- resource: string;
1518
- resourceUploadId?: string;
1519
- resolver?: {
1520
- function: string;
1856
+ displayConditions?: {
1857
+ [k: string]: unknown;
1521
1858
  };
1522
- title: string;
1523
- icon?: string;
1524
- layout?: 'basic' | 'native';
1525
1859
  key: ModuleKeySchema;
1526
1860
  [k: string]: unknown;
1527
1861
  }
@@ -1534,6 +1868,25 @@ export interface Modules {
1534
1868
  title: string;
1535
1869
  icon?: string;
1536
1870
  layout?: 'basic' | 'native';
1871
+ pages?: {
1872
+ title: string;
1873
+ route: string;
1874
+ icon?: string;
1875
+ [k: string]: unknown;
1876
+ }[];
1877
+ sections?: {
1878
+ header?: string;
1879
+ pages: {
1880
+ title: string;
1881
+ route: string;
1882
+ icon?: string;
1883
+ [k: string]: unknown;
1884
+ }[];
1885
+ [k: string]: unknown;
1886
+ }[];
1887
+ displayConditions?: {
1888
+ [k: string]: unknown;
1889
+ };
1537
1890
  key: ModuleKeySchema;
1538
1891
  [k: string]: unknown;
1539
1892
  }
@@ -1546,29 +1899,13 @@ export interface Modules {
1546
1899
  title: string;
1547
1900
  icon?: string;
1548
1901
  layout?: 'basic' | 'native';
1549
- key: ModuleKeySchema;
1550
- [k: string]: unknown;
1551
- }
1552
- | {
1553
- pages: {
1902
+ pages?: {
1554
1903
  title: string;
1555
1904
  route: string;
1556
1905
  icon?: string;
1557
1906
  [k: string]: unknown;
1558
1907
  }[];
1559
- resource: string;
1560
- resourceUploadId?: string;
1561
- resolver?: {
1562
- function: string;
1563
- };
1564
- title: string;
1565
- icon?: string;
1566
- layout?: 'basic' | 'native';
1567
- key: ModuleKeySchema;
1568
- [k: string]: unknown;
1569
- }
1570
- | {
1571
- sections: {
1908
+ sections?: {
1572
1909
  header?: string;
1573
1910
  pages: {
1574
1911
  title: string;
@@ -1578,14 +1915,9 @@ export interface Modules {
1578
1915
  }[];
1579
1916
  [k: string]: unknown;
1580
1917
  }[];
1581
- resource: string;
1582
- resourceUploadId?: string;
1583
- resolver?: {
1584
- function: string;
1918
+ displayConditions?: {
1919
+ [k: string]: unknown;
1585
1920
  };
1586
- title: string;
1587
- icon?: string;
1588
- layout?: 'basic' | 'native';
1589
1921
  key: ModuleKeySchema;
1590
1922
  [k: string]: unknown;
1591
1923
  }
@@ -1596,6 +1928,25 @@ export interface Modules {
1596
1928
  title: string;
1597
1929
  icon?: string;
1598
1930
  layout?: 'basic' | 'native';
1931
+ pages?: {
1932
+ title: string;
1933
+ route: string;
1934
+ icon?: string;
1935
+ [k: string]: unknown;
1936
+ }[];
1937
+ sections?: {
1938
+ header?: string;
1939
+ pages: {
1940
+ title: string;
1941
+ route: string;
1942
+ icon?: string;
1943
+ [k: string]: unknown;
1944
+ }[];
1945
+ [k: string]: unknown;
1946
+ }[];
1947
+ displayConditions?: {
1948
+ [k: string]: unknown;
1949
+ };
1599
1950
  key: ModuleKeySchema;
1600
1951
  [k: string]: unknown;
1601
1952
  }
@@ -1608,29 +1959,13 @@ export interface Modules {
1608
1959
  title: string;
1609
1960
  icon?: string;
1610
1961
  layout?: 'basic' | 'native';
1611
- key: ModuleKeySchema;
1612
- [k: string]: unknown;
1613
- }
1614
- | {
1615
- pages: {
1962
+ pages?: {
1616
1963
  title: string;
1617
1964
  route: string;
1618
1965
  icon?: string;
1619
1966
  [k: string]: unknown;
1620
1967
  }[];
1621
- resource: string;
1622
- resourceUploadId?: string;
1623
- resolver?: {
1624
- function: string;
1625
- };
1626
- title: string;
1627
- icon?: string;
1628
- layout?: 'basic' | 'native';
1629
- key: ModuleKeySchema;
1630
- [k: string]: unknown;
1631
- }
1632
- | {
1633
- sections: {
1968
+ sections?: {
1634
1969
  header?: string;
1635
1970
  pages: {
1636
1971
  title: string;
@@ -1640,14 +1975,9 @@ export interface Modules {
1640
1975
  }[];
1641
1976
  [k: string]: unknown;
1642
1977
  }[];
1643
- resource: string;
1644
- resourceUploadId?: string;
1645
- resolver?: {
1646
- function: string;
1978
+ displayConditions?: {
1979
+ [k: string]: unknown;
1647
1980
  };
1648
- title: string;
1649
- icon?: string;
1650
- layout?: 'basic' | 'native';
1651
1981
  key: ModuleKeySchema;
1652
1982
  [k: string]: unknown;
1653
1983
  }
@@ -1660,6 +1990,25 @@ export interface Modules {
1660
1990
  title: string;
1661
1991
  icon?: string;
1662
1992
  layout?: 'basic' | 'native';
1993
+ pages?: {
1994
+ title: string;
1995
+ route: string;
1996
+ icon?: string;
1997
+ [k: string]: unknown;
1998
+ }[];
1999
+ sections?: {
2000
+ header?: string;
2001
+ pages: {
2002
+ title: string;
2003
+ route: string;
2004
+ icon?: string;
2005
+ [k: string]: unknown;
2006
+ }[];
2007
+ [k: string]: unknown;
2008
+ }[];
2009
+ displayConditions?: {
2010
+ [k: string]: unknown;
2011
+ };
1663
2012
  key: ModuleKeySchema;
1664
2013
  [k: string]: unknown;
1665
2014
  }
@@ -1672,29 +2021,13 @@ export interface Modules {
1672
2021
  title: string;
1673
2022
  icon?: string;
1674
2023
  layout?: 'basic' | 'native';
1675
- key: ModuleKeySchema;
1676
- [k: string]: unknown;
1677
- }
1678
- | {
1679
- pages: {
2024
+ pages?: {
1680
2025
  title: string;
1681
2026
  route: string;
1682
2027
  icon?: string;
1683
2028
  [k: string]: unknown;
1684
2029
  }[];
1685
- resource: string;
1686
- resourceUploadId?: string;
1687
- resolver?: {
1688
- function: string;
1689
- };
1690
- title: string;
1691
- icon?: string;
1692
- layout?: 'basic' | 'native';
1693
- key: ModuleKeySchema;
1694
- [k: string]: unknown;
1695
- }
1696
- | {
1697
- sections: {
2030
+ sections?: {
1698
2031
  header?: string;
1699
2032
  pages: {
1700
2033
  title: string;
@@ -1704,14 +2037,9 @@ export interface Modules {
1704
2037
  }[];
1705
2038
  [k: string]: unknown;
1706
2039
  }[];
1707
- resource: string;
1708
- resourceUploadId?: string;
1709
- resolver?: {
1710
- function: string;
2040
+ displayConditions?: {
2041
+ [k: string]: unknown;
1711
2042
  };
1712
- title: string;
1713
- icon?: string;
1714
- layout?: 'basic' | 'native';
1715
2043
  key: ModuleKeySchema;
1716
2044
  [k: string]: unknown;
1717
2045
  }
@@ -1722,6 +2050,25 @@ export interface Modules {
1722
2050
  title: string;
1723
2051
  icon?: string;
1724
2052
  layout?: 'basic' | 'native';
2053
+ pages?: {
2054
+ title: string;
2055
+ route: string;
2056
+ icon?: string;
2057
+ [k: string]: unknown;
2058
+ }[];
2059
+ sections?: {
2060
+ header?: string;
2061
+ pages: {
2062
+ title: string;
2063
+ route: string;
2064
+ icon?: string;
2065
+ [k: string]: unknown;
2066
+ }[];
2067
+ [k: string]: unknown;
2068
+ }[];
2069
+ displayConditions?: {
2070
+ [k: string]: unknown;
2071
+ };
1725
2072
  key: ModuleKeySchema;
1726
2073
  [k: string]: unknown;
1727
2074
  }
@@ -1734,29 +2081,13 @@ export interface Modules {
1734
2081
  title: string;
1735
2082
  icon?: string;
1736
2083
  layout?: 'basic' | 'native';
1737
- key: ModuleKeySchema;
1738
- [k: string]: unknown;
1739
- }
1740
- | {
1741
- pages: {
2084
+ pages?: {
1742
2085
  title: string;
1743
2086
  route: string;
1744
2087
  icon?: string;
1745
2088
  [k: string]: unknown;
1746
2089
  }[];
1747
- resource: string;
1748
- resourceUploadId?: string;
1749
- resolver?: {
1750
- function: string;
1751
- };
1752
- title: string;
1753
- icon?: string;
1754
- layout?: 'basic' | 'native';
1755
- key: ModuleKeySchema;
1756
- [k: string]: unknown;
1757
- }
1758
- | {
1759
- sections: {
2090
+ sections?: {
1760
2091
  header?: string;
1761
2092
  pages: {
1762
2093
  title: string;
@@ -1766,14 +2097,9 @@ export interface Modules {
1766
2097
  }[];
1767
2098
  [k: string]: unknown;
1768
2099
  }[];
1769
- resource: string;
1770
- resourceUploadId?: string;
1771
- resolver?: {
1772
- function: string;
2100
+ displayConditions?: {
2101
+ [k: string]: unknown;
1773
2102
  };
1774
- title: string;
1775
- icon?: string;
1776
- layout?: 'basic' | 'native';
1777
2103
  key: ModuleKeySchema;
1778
2104
  [k: string]: unknown;
1779
2105
  }
@@ -1795,7 +2121,6 @@ export interface Modules {
1795
2121
  function: string;
1796
2122
  };
1797
2123
  resource: string;
1798
- resourceUploadId?: string;
1799
2124
  key: ModuleKeySchema;
1800
2125
  [k: string]: unknown;
1801
2126
  }
@@ -1815,7 +2140,6 @@ export interface Modules {
1815
2140
  function: string;
1816
2141
  };
1817
2142
  resource: string;
1818
- resourceUploadId?: string;
1819
2143
  key: ModuleKeySchema;
1820
2144
  [k: string]: unknown;
1821
2145
  }
@@ -1839,7 +2163,6 @@ export interface Modules {
1839
2163
  };
1840
2164
  displayConditions?: DisplayConditions;
1841
2165
  resource: string;
1842
- resourceUploadId?: string;
1843
2166
  key: ModuleKeySchema;
1844
2167
  [k: string]: unknown;
1845
2168
  }
@@ -1861,7 +2184,6 @@ export interface Modules {
1861
2184
  };
1862
2185
  displayConditions?: DisplayConditions;
1863
2186
  resource: string;
1864
- resourceUploadId?: string;
1865
2187
  key: ModuleKeySchema;
1866
2188
  [k: string]: unknown;
1867
2189
  }
@@ -1883,6 +2205,503 @@ export interface Modules {
1883
2205
  function: string;
1884
2206
  };
1885
2207
  resource: string;
2208
+ key: ModuleKeySchema;
2209
+ [k: string]: unknown;
2210
+ }
2211
+ ),
2212
+ ...(
2213
+ | {
2214
+ title: string;
2215
+ icon?: string;
2216
+ function: string;
2217
+ key: ModuleKeySchema;
2218
+ [k: string]: unknown;
2219
+ }
2220
+ | {
2221
+ title: string;
2222
+ icon?: string;
2223
+ resolver?: {
2224
+ function: string;
2225
+ };
2226
+ resource: string;
2227
+ key: ModuleKeySchema;
2228
+ [k: string]: unknown;
2229
+ }
2230
+ )[]
2231
+ ];
2232
+ 'compass:teamPage'?: [
2233
+ (
2234
+ | {
2235
+ title: string;
2236
+ icon?: string;
2237
+ function: string;
2238
+ key: ModuleKeySchema;
2239
+ [k: string]: unknown;
2240
+ }
2241
+ | {
2242
+ title: string;
2243
+ icon?: string;
2244
+ resolver?: {
2245
+ function: string;
2246
+ };
2247
+ resource: string;
2248
+ key: ModuleKeySchema;
2249
+ [k: string]: unknown;
2250
+ }
2251
+ ),
2252
+ ...(
2253
+ | {
2254
+ title: string;
2255
+ icon?: string;
2256
+ function: string;
2257
+ key: ModuleKeySchema;
2258
+ [k: string]: unknown;
2259
+ }
2260
+ | {
2261
+ title: string;
2262
+ icon?: string;
2263
+ resolver?: {
2264
+ function: string;
2265
+ };
2266
+ resource: string;
2267
+ key: ModuleKeySchema;
2268
+ [k: string]: unknown;
2269
+ }
2270
+ )[]
2271
+ ];
2272
+ 'jiraServiceManagement:queuePage'?: [
2273
+ (
2274
+ | {
2275
+ title: string;
2276
+ icon?: string;
2277
+ layout?: 'native' | 'basic';
2278
+ function: string;
2279
+ key: ModuleKeySchema;
2280
+ [k: string]: unknown;
2281
+ }
2282
+ | {
2283
+ title: string;
2284
+ icon?: string;
2285
+ layout?: 'native' | 'basic';
2286
+ resolver?: {
2287
+ function: string;
2288
+ };
2289
+ resource: string;
2290
+ resourceUploadId?: string;
2291
+ key: ModuleKeySchema;
2292
+ [k: string]: unknown;
2293
+ }
2294
+ ),
2295
+ ...(
2296
+ | {
2297
+ title: string;
2298
+ icon?: string;
2299
+ layout?: 'native' | 'basic';
2300
+ function: string;
2301
+ key: ModuleKeySchema;
2302
+ [k: string]: unknown;
2303
+ }
2304
+ | {
2305
+ title: string;
2306
+ icon?: string;
2307
+ layout?: 'native' | 'basic';
2308
+ resolver?: {
2309
+ function: string;
2310
+ };
2311
+ resource: string;
2312
+ resourceUploadId?: string;
2313
+ key: ModuleKeySchema;
2314
+ [k: string]: unknown;
2315
+ }
2316
+ )[]
2317
+ ];
2318
+ 'jiraServiceManagement:portalRequestDetail'?: [
2319
+ (
2320
+ | {
2321
+ title: string;
2322
+ icon?: string;
2323
+ layout?: 'native' | 'basic';
2324
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
2325
+ function: string;
2326
+ key: ModuleKeySchema;
2327
+ [k: string]: unknown;
2328
+ }
2329
+ | {
2330
+ title: string;
2331
+ icon?: string;
2332
+ layout?: 'native' | 'basic';
2333
+ resolver?: {
2334
+ function: string;
2335
+ };
2336
+ resource: string;
2337
+ resourceUploadId?: string;
2338
+ key: ModuleKeySchema;
2339
+ [k: string]: unknown;
2340
+ }
2341
+ ),
2342
+ ...(
2343
+ | {
2344
+ title: string;
2345
+ icon?: string;
2346
+ layout?: 'native' | 'basic';
2347
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
2348
+ function: string;
2349
+ key: ModuleKeySchema;
2350
+ [k: string]: unknown;
2351
+ }
2352
+ | {
2353
+ title: string;
2354
+ icon?: string;
2355
+ layout?: 'native' | 'basic';
2356
+ resolver?: {
2357
+ function: string;
2358
+ };
2359
+ resource: string;
2360
+ resourceUploadId?: string;
2361
+ key: ModuleKeySchema;
2362
+ [k: string]: unknown;
2363
+ }
2364
+ )[]
2365
+ ];
2366
+ 'jiraServiceManagement:portalRequestDetailPanel'?: [
2367
+ (
2368
+ | {
2369
+ title: string;
2370
+ icon?: string;
2371
+ layout?: 'native' | 'basic';
2372
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
2373
+ function: string;
2374
+ key: ModuleKeySchema;
2375
+ [k: string]: unknown;
2376
+ }
2377
+ | {
2378
+ title: string;
2379
+ icon?: string;
2380
+ layout?: 'native' | 'basic';
2381
+ resolver?: {
2382
+ function: string;
2383
+ };
2384
+ resource: string;
2385
+ resourceUploadId?: string;
2386
+ key: ModuleKeySchema;
2387
+ [k: string]: unknown;
2388
+ }
2389
+ ),
2390
+ ...(
2391
+ | {
2392
+ title: string;
2393
+ icon?: string;
2394
+ layout?: 'native' | 'basic';
2395
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
2396
+ function: string;
2397
+ key: ModuleKeySchema;
2398
+ [k: string]: unknown;
2399
+ }
2400
+ | {
2401
+ title: string;
2402
+ icon?: string;
2403
+ layout?: 'native' | 'basic';
2404
+ resolver?: {
2405
+ function: string;
2406
+ };
2407
+ resource: string;
2408
+ resourceUploadId?: string;
2409
+ key: ModuleKeySchema;
2410
+ [k: string]: unknown;
2411
+ }
2412
+ )[]
2413
+ ];
2414
+ 'jiraServiceManagement:organizationPanel'?: [
2415
+ (
2416
+ | {
2417
+ title: string;
2418
+ icon?: string;
2419
+ layout?: 'native' | 'basic';
2420
+ function: string;
2421
+ key: ModuleKeySchema;
2422
+ [k: string]: unknown;
2423
+ }
2424
+ | {
2425
+ title: string;
2426
+ icon?: string;
2427
+ layout?: 'native' | 'basic';
2428
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
2429
+ resolver?: {
2430
+ function: string;
2431
+ };
2432
+ resource: string;
2433
+ resourceUploadId?: string;
2434
+ key: ModuleKeySchema;
2435
+ [k: string]: unknown;
2436
+ }
2437
+ ),
2438
+ ...(
2439
+ | {
2440
+ title: string;
2441
+ icon?: string;
2442
+ layout?: 'native' | 'basic';
2443
+ function: string;
2444
+ key: ModuleKeySchema;
2445
+ [k: string]: unknown;
2446
+ }
2447
+ | {
2448
+ title: string;
2449
+ icon?: string;
2450
+ layout?: 'native' | 'basic';
2451
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
2452
+ resolver?: {
2453
+ function: string;
2454
+ };
2455
+ resource: string;
2456
+ resourceUploadId?: string;
2457
+ key: ModuleKeySchema;
2458
+ [k: string]: unknown;
2459
+ }
2460
+ )[]
2461
+ ];
2462
+ 'jiraServiceManagement:portalFooter'?: [
2463
+ (
2464
+ | {
2465
+ layout?: 'native' | 'basic';
2466
+ pages?: (
2467
+ | 'help_center'
2468
+ | 'portal'
2469
+ | 'create_request'
2470
+ | 'view_request'
2471
+ | 'my_requests'
2472
+ | 'approvals'
2473
+ | 'profile'
2474
+ )[];
2475
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2476
+ function: string;
2477
+ key: ModuleKeySchema;
2478
+ [k: string]: unknown;
2479
+ }
2480
+ | {
2481
+ pages?: (
2482
+ | 'help_center'
2483
+ | 'portal'
2484
+ | 'create_request'
2485
+ | 'view_request'
2486
+ | 'my_requests'
2487
+ | 'approvals'
2488
+ | 'profile'
2489
+ )[];
2490
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2491
+ resolver?: {
2492
+ function: string;
2493
+ };
2494
+ resource: string;
2495
+ resourceUploadId?: string;
2496
+ key: ModuleKeySchema;
2497
+ [k: string]: unknown;
2498
+ }
2499
+ ),
2500
+ ...(
2501
+ | {
2502
+ layout?: 'native' | 'basic';
2503
+ pages?: (
2504
+ | 'help_center'
2505
+ | 'portal'
2506
+ | 'create_request'
2507
+ | 'view_request'
2508
+ | 'my_requests'
2509
+ | 'approvals'
2510
+ | 'profile'
2511
+ )[];
2512
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2513
+ function: string;
2514
+ key: ModuleKeySchema;
2515
+ [k: string]: unknown;
2516
+ }
2517
+ | {
2518
+ pages?: (
2519
+ | 'help_center'
2520
+ | 'portal'
2521
+ | 'create_request'
2522
+ | 'view_request'
2523
+ | 'my_requests'
2524
+ | 'approvals'
2525
+ | 'profile'
2526
+ )[];
2527
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2528
+ resolver?: {
2529
+ function: string;
2530
+ };
2531
+ resource: string;
2532
+ resourceUploadId?: string;
2533
+ key: ModuleKeySchema;
2534
+ [k: string]: unknown;
2535
+ }
2536
+ )[]
2537
+ ];
2538
+ 'jiraServiceManagement:portalHeader'?: [
2539
+ (
2540
+ | {
2541
+ pages?: (
2542
+ | 'help_center'
2543
+ | 'portal'
2544
+ | 'create_request'
2545
+ | 'view_request'
2546
+ | 'my_requests'
2547
+ | 'approvals'
2548
+ | 'profile'
2549
+ )[];
2550
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2551
+ function: string;
2552
+ key: ModuleKeySchema;
2553
+ [k: string]: unknown;
2554
+ }
2555
+ | {
2556
+ pages?: (
2557
+ | 'help_center'
2558
+ | 'portal'
2559
+ | 'create_request'
2560
+ | 'view_request'
2561
+ | 'my_requests'
2562
+ | 'approvals'
2563
+ | 'profile'
2564
+ )[];
2565
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2566
+ resolver?: {
2567
+ function: string;
2568
+ };
2569
+ resource: string;
2570
+ resourceUploadId?: string;
2571
+ key: ModuleKeySchema;
2572
+ [k: string]: unknown;
2573
+ }
2574
+ ),
2575
+ ...(
2576
+ | {
2577
+ pages?: (
2578
+ | 'help_center'
2579
+ | 'portal'
2580
+ | 'create_request'
2581
+ | 'view_request'
2582
+ | 'my_requests'
2583
+ | 'approvals'
2584
+ | 'profile'
2585
+ )[];
2586
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2587
+ function: string;
2588
+ key: ModuleKeySchema;
2589
+ [k: string]: unknown;
2590
+ }
2591
+ | {
2592
+ pages?: (
2593
+ | 'help_center'
2594
+ | 'portal'
2595
+ | 'create_request'
2596
+ | 'view_request'
2597
+ | 'my_requests'
2598
+ | 'approvals'
2599
+ | 'profile'
2600
+ )[];
2601
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2602
+ resolver?: {
2603
+ function: string;
2604
+ };
2605
+ resource: string;
2606
+ resourceUploadId?: string;
2607
+ key: ModuleKeySchema;
2608
+ [k: string]: unknown;
2609
+ }
2610
+ )[]
2611
+ ];
2612
+ 'jiraServiceManagement:portalSubheader'?: [
2613
+ (
2614
+ | {
2615
+ pages?: (
2616
+ | 'help_center'
2617
+ | 'portal'
2618
+ | 'create_request'
2619
+ | 'view_request'
2620
+ | 'my_requests'
2621
+ | 'approvals'
2622
+ | 'profile'
2623
+ )[];
2624
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2625
+ function: string;
2626
+ key: ModuleKeySchema;
2627
+ [k: string]: unknown;
2628
+ }
2629
+ | {
2630
+ pages?: (
2631
+ | 'help_center'
2632
+ | 'portal'
2633
+ | 'create_request'
2634
+ | 'view_request'
2635
+ | 'my_requests'
2636
+ | 'approvals'
2637
+ | 'profile'
2638
+ )[];
2639
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2640
+ resolver?: {
2641
+ function: string;
2642
+ };
2643
+ resource: string;
2644
+ resourceUploadId?: string;
2645
+ key: ModuleKeySchema;
2646
+ [k: string]: unknown;
2647
+ }
2648
+ ),
2649
+ ...(
2650
+ | {
2651
+ pages?: (
2652
+ | 'help_center'
2653
+ | 'portal'
2654
+ | 'create_request'
2655
+ | 'view_request'
2656
+ | 'my_requests'
2657
+ | 'approvals'
2658
+ | 'profile'
2659
+ )[];
2660
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2661
+ function: string;
2662
+ key: ModuleKeySchema;
2663
+ [k: string]: unknown;
2664
+ }
2665
+ | {
2666
+ pages?: (
2667
+ | 'help_center'
2668
+ | 'portal'
2669
+ | 'create_request'
2670
+ | 'view_request'
2671
+ | 'my_requests'
2672
+ | 'approvals'
2673
+ | 'profile'
2674
+ )[];
2675
+ viewportSize?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
2676
+ resolver?: {
2677
+ function: string;
2678
+ };
2679
+ resource: string;
2680
+ resourceUploadId?: string;
2681
+ key: ModuleKeySchema;
2682
+ [k: string]: unknown;
2683
+ }
2684
+ )[]
2685
+ ];
2686
+ 'jiraServiceManagement:portalProfilePanel'?: [
2687
+ (
2688
+ | {
2689
+ title: string;
2690
+ icon?: string;
2691
+ layout?: 'native' | 'basic';
2692
+ function: string;
2693
+ key: ModuleKeySchema;
2694
+ [k: string]: unknown;
2695
+ }
2696
+ | {
2697
+ title: string;
2698
+ icon?: string;
2699
+ layout?: 'native' | 'basic';
2700
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
2701
+ resolver?: {
2702
+ function: string;
2703
+ };
2704
+ resource: string;
1886
2705
  resourceUploadId?: string;
1887
2706
  key: ModuleKeySchema;
1888
2707
  [k: string]: unknown;
@@ -1892,6 +2711,7 @@ export interface Modules {
1892
2711
  | {
1893
2712
  title: string;
1894
2713
  icon?: string;
2714
+ layout?: 'native' | 'basic';
1895
2715
  function: string;
1896
2716
  key: ModuleKeySchema;
1897
2717
  [k: string]: unknown;
@@ -1899,6 +2719,8 @@ export interface Modules {
1899
2719
  | {
1900
2720
  title: string;
1901
2721
  icon?: string;
2722
+ layout?: 'native' | 'basic';
2723
+ viewportSize?: 'small' | 'medium' | 'large' | 'xlarge';
1902
2724
  resolver?: {
1903
2725
  function: string;
1904
2726
  };
@@ -1984,7 +2806,7 @@ export interface Modules {
1984
2806
  location?: string;
1985
2807
  cacheable?: boolean;
1986
2808
  supportsNative?: boolean;
1987
- conditions?: (CompositeCondition | SingleCondition)[];
2809
+ conditions?: (SingleCondition | CompositeCondition)[];
1988
2810
  params?: {
1989
2811
  [k: string]: unknown;
1990
2812
  };
@@ -2000,7 +2822,7 @@ export interface Modules {
2000
2822
  location?: string;
2001
2823
  cacheable?: boolean;
2002
2824
  supportsNative?: boolean;
2003
- conditions?: (CompositeCondition | SingleCondition)[];
2825
+ conditions?: (SingleCondition | CompositeCondition)[];
2004
2826
  params?: {
2005
2827
  [k: string]: unknown;
2006
2828
  };
@@ -2014,7 +2836,7 @@ export interface Modules {
2014
2836
  filter?: string;
2015
2837
  excludeBody?: boolean;
2016
2838
  event?: string;
2017
- conditions?: (SingleCondition | CompositeCondition)[];
2839
+ conditions?: (CompositeCondition | SingleCondition)[];
2018
2840
  propertyKeys?: string[];
2019
2841
  url?: string;
2020
2842
  key: ModuleKeySchema;
@@ -2024,7 +2846,7 @@ export interface Modules {
2024
2846
  filter?: string;
2025
2847
  excludeBody?: boolean;
2026
2848
  event?: string;
2027
- conditions?: (SingleCondition | CompositeCondition)[];
2849
+ conditions?: (CompositeCondition | SingleCondition)[];
2028
2850
  propertyKeys?: string[];
2029
2851
  url?: string;
2030
2852
  key: ModuleKeySchema;
@@ -2132,7 +2954,7 @@ export interface Modules {
2132
2954
  name?: I18NProperty10;
2133
2955
  location?: string;
2134
2956
  cacheable?: boolean;
2135
- conditions?: (SingleCondition1 | CompositeCondition1)[];
2957
+ conditions?: (CompositeCondition1 | SingleCondition1)[];
2136
2958
  key: ModuleKeySchema;
2137
2959
  [k: string]: unknown;
2138
2960
  },
@@ -2150,7 +2972,7 @@ export interface Modules {
2150
2972
  name?: I18NProperty10;
2151
2973
  location?: string;
2152
2974
  cacheable?: boolean;
2153
- conditions?: (SingleCondition1 | CompositeCondition1)[];
2975
+ conditions?: (CompositeCondition1 | SingleCondition1)[];
2154
2976
  key: ModuleKeySchema;
2155
2977
  [k: string]: unknown;
2156
2978
  }[]
@@ -2258,7 +3080,7 @@ export interface Modules {
2258
3080
  | 'TIME_TRACKING'
2259
3081
  | 'other'
2260
3082
  | 'OTHER';
2261
- conditions?: (SingleCondition | CompositeCondition)[];
3083
+ conditions?: (CompositeCondition | SingleCondition)[];
2262
3084
  key: ModuleKeySchema;
2263
3085
  [k: string]: unknown;
2264
3086
  },
@@ -2280,7 +3102,7 @@ export interface Modules {
2280
3102
  | 'TIME_TRACKING'
2281
3103
  | 'other'
2282
3104
  | 'OTHER';
2283
- conditions?: (SingleCondition | CompositeCondition)[];
3105
+ conditions?: (CompositeCondition | SingleCondition)[];
2284
3106
  key: ModuleKeySchema;
2285
3107
  [k: string]: unknown;
2286
3108
  }[]
@@ -2388,7 +3210,7 @@ export interface Modules {
2388
3210
  name?: I18NProperty20;
2389
3211
  weight?: number;
2390
3212
  iconUrl?: string;
2391
- conditions?: (CompositeCondition | SingleCondition)[];
3213
+ conditions?: (SingleCondition | CompositeCondition)[];
2392
3214
  url?: string;
2393
3215
  key: ModuleKeySchema;
2394
3216
  [k: string]: unknown;
@@ -2397,7 +3219,7 @@ export interface Modules {
2397
3219
  name?: I18NProperty20;
2398
3220
  weight?: number;
2399
3221
  iconUrl?: string;
2400
- conditions?: (CompositeCondition | SingleCondition)[];
3222
+ conditions?: (SingleCondition | CompositeCondition)[];
2401
3223
  url?: string;
2402
3224
  key: ModuleKeySchema;
2403
3225
  [k: string]: unknown;
@@ -2408,7 +3230,7 @@ export interface Modules {
2408
3230
  name?: I18NProperty21;
2409
3231
  weight?: number;
2410
3232
  description?: I18NProperty22;
2411
- conditions?: (CompositeCondition | SingleCondition)[];
3233
+ conditions?: (SingleCondition | CompositeCondition)[];
2412
3234
  params?: {
2413
3235
  [k: string]: unknown;
2414
3236
  };
@@ -2420,7 +3242,7 @@ export interface Modules {
2420
3242
  name?: I18NProperty21;
2421
3243
  weight?: number;
2422
3244
  description?: I18NProperty22;
2423
- conditions?: (CompositeCondition | SingleCondition)[];
3245
+ conditions?: (SingleCondition | CompositeCondition)[];
2424
3246
  params?: {
2425
3247
  [k: string]: unknown;
2426
3248
  };
@@ -2433,7 +3255,7 @@ export interface Modules {
2433
3255
  {
2434
3256
  name?: I18NProperty23;
2435
3257
  description?: I18NProperty24;
2436
- conditions?: (SingleCondition | CompositeCondition)[];
3258
+ conditions?: (CompositeCondition | SingleCondition)[];
2437
3259
  url?: string;
2438
3260
  configurable?: boolean;
2439
3261
  thumbnailUrl?: string;
@@ -2443,7 +3265,7 @@ export interface Modules {
2443
3265
  ...{
2444
3266
  name?: I18NProperty23;
2445
3267
  description?: I18NProperty24;
2446
- conditions?: (SingleCondition | CompositeCondition)[];
3268
+ conditions?: (CompositeCondition | SingleCondition)[];
2447
3269
  url?: string;
2448
3270
  configurable?: boolean;
2449
3271
  thumbnailUrl?: string;
@@ -2502,7 +3324,7 @@ export interface Modules {
2502
3324
  name?: I18NProperty30;
2503
3325
  conditions?: (SingleCondition | CompositeCondition)[];
2504
3326
  target?: IssuePageTargetWebPanel;
2505
- contentPresentConditions?: (CompositeCondition | SingleCondition)[];
3327
+ contentPresentConditions?: (SingleCondition | CompositeCondition)[];
2506
3328
  jiraNativeAppsEnabled?: boolean;
2507
3329
  key: ModuleKeySchema;
2508
3330
  [k: string]: unknown;
@@ -2513,7 +3335,7 @@ export interface Modules {
2513
3335
  name?: I18NProperty30;
2514
3336
  conditions?: (SingleCondition | CompositeCondition)[];
2515
3337
  target?: IssuePageTargetWebPanel;
2516
- contentPresentConditions?: (CompositeCondition | SingleCondition)[];
3338
+ contentPresentConditions?: (SingleCondition | CompositeCondition)[];
2517
3339
  jiraNativeAppsEnabled?: boolean;
2518
3340
  key: ModuleKeySchema;
2519
3341
  [k: string]: unknown;
@@ -2545,7 +3367,7 @@ export interface Modules {
2545
3367
  {
2546
3368
  name?: I18NProperty33;
2547
3369
  weight?: number;
2548
- conditions?: (SingleCondition2 | CompositeCondition2)[];
3370
+ conditions?: (CompositeCondition2 | SingleCondition2)[];
2549
3371
  params?: {
2550
3372
  [k: string]: unknown;
2551
3373
  };
@@ -2556,7 +3378,7 @@ export interface Modules {
2556
3378
  ...{
2557
3379
  name?: I18NProperty33;
2558
3380
  weight?: number;
2559
- conditions?: (SingleCondition2 | CompositeCondition2)[];
3381
+ conditions?: (CompositeCondition2 | SingleCondition2)[];
2560
3382
  params?: {
2561
3383
  [k: string]: unknown;
2562
3384
  };
@@ -2637,7 +3459,7 @@ export interface Modules {
2637
3459
  {
2638
3460
  name?: I18NProperty38;
2639
3461
  weight?: number;
2640
- conditions?: (SingleCondition3 | CompositeCondition4)[];
3462
+ conditions?: (CompositeCondition4 | SingleCondition3)[];
2641
3463
  params?: {
2642
3464
  [k: string]: unknown;
2643
3465
  };
@@ -2648,7 +3470,7 @@ export interface Modules {
2648
3470
  ...{
2649
3471
  name?: I18NProperty38;
2650
3472
  weight?: number;
2651
- conditions?: (SingleCondition3 | CompositeCondition4)[];
3473
+ conditions?: (CompositeCondition4 | SingleCondition3)[];
2652
3474
  params?: {
2653
3475
  [k: string]: unknown;
2654
3476
  };
@@ -2742,7 +3564,7 @@ export interface Modules {
2742
3564
  name?: I18NProperty44;
2743
3565
  weight?: number;
2744
3566
  location?: string;
2745
- conditions?: (SingleCondition | CompositeCondition)[];
3567
+ conditions?: (CompositeCondition | SingleCondition)[];
2746
3568
  params?: {
2747
3569
  [k: string]: unknown;
2748
3570
  };
@@ -2754,7 +3576,7 @@ export interface Modules {
2754
3576
  name?: I18NProperty44;
2755
3577
  weight?: number;
2756
3578
  location?: string;
2757
- conditions?: (SingleCondition | CompositeCondition)[];
3579
+ conditions?: (CompositeCondition | SingleCondition)[];
2758
3580
  params?: {
2759
3581
  [k: string]: unknown;
2760
3582
  };
@@ -2942,7 +3764,7 @@ export interface Modules {
2942
3764
  filter?: string;
2943
3765
  excludeBody?: boolean;
2944
3766
  event?: string;
2945
- conditions?: (CompositeCondition | SingleCondition)[];
3767
+ conditions?: (SingleCondition | CompositeCondition)[];
2946
3768
  propertyKeys?: string[];
2947
3769
  url?: string;
2948
3770
  key: ModuleKeySchema;
@@ -2952,7 +3774,7 @@ export interface Modules {
2952
3774
  filter?: string;
2953
3775
  excludeBody?: boolean;
2954
3776
  event?: string;
2955
- conditions?: (CompositeCondition | SingleCondition)[];
3777
+ conditions?: (SingleCondition | CompositeCondition)[];
2956
3778
  propertyKeys?: string[];
2957
3779
  url?: string;
2958
3780
  key: ModuleKeySchema;
@@ -2966,7 +3788,7 @@ export interface Modules {
2966
3788
  weight?: number;
2967
3789
  cacheable?: boolean;
2968
3790
  location?: string;
2969
- conditions?: (SingleCondition | CompositeCondition)[];
3791
+ conditions?: (CompositeCondition | SingleCondition)[];
2970
3792
  params?: {
2971
3793
  [k: string]: unknown;
2972
3794
  };
@@ -2980,7 +3802,7 @@ export interface Modules {
2980
3802
  weight?: number;
2981
3803
  cacheable?: boolean;
2982
3804
  location?: string;
2983
- conditions?: (SingleCondition | CompositeCondition)[];
3805
+ conditions?: (CompositeCondition | SingleCondition)[];
2984
3806
  params?: {
2985
3807
  [k: string]: unknown;
2986
3808
  };
@@ -2995,7 +3817,7 @@ export interface Modules {
2995
3817
  name?: I18NProperty55;
2996
3818
  weight?: number;
2997
3819
  location?: string;
2998
- conditions?: (CompositeCondition | SingleCondition)[];
3820
+ conditions?: (SingleCondition | CompositeCondition)[];
2999
3821
  params?: {
3000
3822
  [k: string]: unknown;
3001
3823
  };
@@ -3007,7 +3829,7 @@ export interface Modules {
3007
3829
  name?: I18NProperty55;
3008
3830
  weight?: number;
3009
3831
  location?: string;
3010
- conditions?: (CompositeCondition | SingleCondition)[];
3832
+ conditions?: (SingleCondition | CompositeCondition)[];
3011
3833
  params?: {
3012
3834
  [k: string]: unknown;
3013
3835
  };
@@ -3022,7 +3844,7 @@ export interface Modules {
3022
3844
  weight?: number;
3023
3845
  cacheable?: boolean;
3024
3846
  location?: string;
3025
- conditions?: (SingleCondition | CompositeCondition)[];
3847
+ conditions?: (CompositeCondition | SingleCondition)[];
3026
3848
  params?: {
3027
3849
  [k: string]: unknown;
3028
3850
  };
@@ -3036,7 +3858,7 @@ export interface Modules {
3036
3858
  weight?: number;
3037
3859
  cacheable?: boolean;
3038
3860
  location?: string;
3039
- conditions?: (SingleCondition | CompositeCondition)[];
3861
+ conditions?: (CompositeCondition | SingleCondition)[];
3040
3862
  params?: {
3041
3863
  [k: string]: unknown;
3042
3864
  };
@@ -3060,7 +3882,7 @@ export interface Modules {
3060
3882
  name?: I18NProperty59;
3061
3883
  location?: string;
3062
3884
  cacheable?: boolean;
3063
- conditions?: (SingleCondition4 | CompositeCondition6)[];
3885
+ conditions?: (CompositeCondition6 | SingleCondition4)[];
3064
3886
  key: ModuleKeySchema;
3065
3887
  [k: string]: unknown;
3066
3888
  },
@@ -3078,7 +3900,7 @@ export interface Modules {
3078
3900
  name?: I18NProperty59;
3079
3901
  location?: string;
3080
3902
  cacheable?: boolean;
3081
- conditions?: (SingleCondition4 | CompositeCondition6)[];
3903
+ conditions?: (CompositeCondition6 | SingleCondition4)[];
3082
3904
  key: ModuleKeySchema;
3083
3905
  [k: string]: unknown;
3084
3906
  }[]
@@ -3156,7 +3978,7 @@ export interface Modules {
3156
3978
  name?: I18NProperty63;
3157
3979
  weight?: number;
3158
3980
  location?: string;
3159
- conditions?: (CompositeCondition7 | SingleCondition5)[];
3981
+ conditions?: (SingleCondition5 | CompositeCondition7)[];
3160
3982
  params?: {
3161
3983
  [k: string]: unknown;
3162
3984
  };
@@ -3168,7 +3990,7 @@ export interface Modules {
3168
3990
  name?: I18NProperty63;
3169
3991
  weight?: number;
3170
3992
  location?: string;
3171
- conditions?: (CompositeCondition7 | SingleCondition5)[];
3993
+ conditions?: (SingleCondition5 | CompositeCondition7)[];
3172
3994
  params?: {
3173
3995
  [k: string]: unknown;
3174
3996
  };
@@ -3364,7 +4186,7 @@ export interface Modules {
3364
4186
  icon?: Icon18;
3365
4187
  name?: I18NProperty91;
3366
4188
  cacheable?: boolean;
3367
- conditions?: (CompositeCondition | SingleCondition)[];
4189
+ conditions?: (SingleCondition | CompositeCondition)[];
3368
4190
  params?: {
3369
4191
  [k: string]: unknown;
3370
4192
  };
@@ -3380,7 +4202,7 @@ export interface Modules {
3380
4202
  icon?: Icon18;
3381
4203
  name?: I18NProperty91;
3382
4204
  cacheable?: boolean;
3383
- conditions?: (CompositeCondition | SingleCondition)[];
4205
+ conditions?: (SingleCondition | CompositeCondition)[];
3384
4206
  params?: {
3385
4207
  [k: string]: unknown;
3386
4208
  };
@@ -3977,10 +4799,47 @@ export interface Icon3 {
3977
4799
  *
3978
4800
  */
3979
4801
  export interface WebItemTarget {
3980
- options?: DialogOptions | DialogModuleOptions | InlineDialogOptions;
4802
+ options?: InlineDialogOptions | DialogOptions | DialogModuleOptions;
3981
4803
  type?: 'page' | 'PAGE' | 'dialog' | 'DIALOG' | 'inlinedialog' | 'INLINEDIALOG' | 'dialogmodule' | 'DIALOGMODULE';
3982
4804
  [k: string]: unknown;
3983
4805
  }
4806
+ /**
4807
+ *
4808
+ *
4809
+ * Options for an inline dialog target
4810
+ *
4811
+ * <h3>Example</h3>
4812
+ *
4813
+ *
4814
+ *
4815
+ *
4816
+ *
4817
+ * {
4818
+ * "target": {
4819
+ * "type": "inlinedialog",
4820
+ * "options": {
4821
+ * "onHover": true,
4822
+ * "offsetX": "30px",
4823
+ * "offsetY": "20px"
4824
+ * }
4825
+ * }
4826
+ * }
4827
+ *
4828
+ *
4829
+ *
4830
+ */
4831
+ export interface InlineDialogOptions {
4832
+ offsetX?: string;
4833
+ offsetY?: string;
4834
+ width?: string;
4835
+ onTop?: boolean;
4836
+ showDelay?: number;
4837
+ closeOthers?: boolean;
4838
+ persistent?: boolean;
4839
+ onHover?: boolean;
4840
+ isRelativeToMouse?: boolean;
4841
+ [k: string]: unknown;
4842
+ }
3984
4843
  /**
3985
4844
  *
3986
4845
  *
@@ -4109,7 +4968,8 @@ export interface DialogModuleOptions {
4109
4968
  /**
4110
4969
  *
4111
4970
  *
4112
- * Options for an inline dialog target
4971
+ * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
4972
+ * and value in multiple places if you like, but identical keys must have identical values.
4113
4973
  *
4114
4974
  * <h3>Example</h3>
4115
4975
  *
@@ -4118,36 +4978,22 @@ export interface DialogModuleOptions {
4118
4978
  *
4119
4979
  *
4120
4980
  * {
4121
- * "target": {
4122
- * "type": "inlinedialog",
4123
- * "options": {
4124
- * "onHover": true,
4125
- * "offsetX": "30px",
4126
- * "offsetY": "20px"
4127
- * }
4128
- * }
4981
+ * "value": "My text"
4129
4982
  * }
4130
4983
  *
4131
4984
  *
4132
4985
  *
4133
4986
  */
4134
- export interface InlineDialogOptions {
4135
- offsetX?: string;
4136
- offsetY?: string;
4137
- width?: string;
4138
- onTop?: boolean;
4139
- showDelay?: number;
4140
- closeOthers?: boolean;
4141
- persistent?: boolean;
4142
- onHover?: boolean;
4143
- isRelativeToMouse?: boolean;
4987
+ export interface I18NProperty10 {
4988
+ value: string;
4989
+ i18n?: string;
4144
4990
  [k: string]: unknown;
4145
4991
  }
4146
4992
  /**
4147
4993
  *
4148
4994
  *
4149
- * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
4150
- * and value in multiple places if you like, but identical keys must have identical values.
4995
+ * Composite Conditions are composed of a collection of [Single Condition](../single-condition/) / Composite Conditions
4996
+ * and a type attribute.
4151
4997
  *
4152
4998
  * <h3>Example</h3>
4153
4999
  *
@@ -4156,15 +5002,32 @@ export interface InlineDialogOptions {
4156
5002
  *
4157
5003
  *
4158
5004
  * {
4159
- * "value": "My text"
5005
+ * "conditions": [
5006
+ * {
5007
+ * "or": [
5008
+ * {
5009
+ * "condition": "can_attach_file_to_issue",
5010
+ * "invert": false
5011
+ * },
5012
+ * {
5013
+ * "condition": "is_issue_assigned_to_current_user",
5014
+ * "invert": false
5015
+ * }
5016
+ * ]
5017
+ * },
5018
+ * {
5019
+ * "condition": "user_is_logged_in",
5020
+ * "invert": false
5021
+ * }
5022
+ * ]
4160
5023
  * }
4161
5024
  *
4162
5025
  *
4163
5026
  *
4164
5027
  */
4165
- export interface I18NProperty10 {
4166
- value: string;
4167
- i18n?: string;
5028
+ export interface CompositeCondition1 {
5029
+ conditions?: (SingleCondition | ManifestSchema)[];
5030
+ type?: 'and' | 'AND' | 'or' | 'OR';
4168
5031
  [k: string]: unknown;
4169
5032
  }
4170
5033
  /**
@@ -4198,47 +5061,6 @@ export interface SingleCondition1 {
4198
5061
  };
4199
5062
  [k: string]: unknown;
4200
5063
  }
4201
- /**
4202
- *
4203
- *
4204
- * Composite Conditions are composed of a collection of [Single Condition](../single-condition/) / Composite Conditions
4205
- * and a type attribute.
4206
- *
4207
- * <h3>Example</h3>
4208
- *
4209
- *
4210
- *
4211
- *
4212
- *
4213
- * {
4214
- * "conditions": [
4215
- * {
4216
- * "or": [
4217
- * {
4218
- * "condition": "can_attach_file_to_issue",
4219
- * "invert": false
4220
- * },
4221
- * {
4222
- * "condition": "is_issue_assigned_to_current_user",
4223
- * "invert": false
4224
- * }
4225
- * ]
4226
- * },
4227
- * {
4228
- * "condition": "user_is_logged_in",
4229
- * "invert": false
4230
- * }
4231
- * ]
4232
- * }
4233
- *
4234
- *
4235
- *
4236
- */
4237
- export interface CompositeCondition1 {
4238
- conditions?: (SingleCondition | ManifestSchema)[];
4239
- type?: 'and' | 'AND' | 'or' | 'OR';
4240
- [k: string]: unknown;
4241
- }
4242
5064
  /**
4243
5065
  *
4244
5066
  *
@@ -5141,37 +5963,6 @@ export interface I18NProperty33 {
5141
5963
  i18n?: string;
5142
5964
  [k: string]: unknown;
5143
5965
  }
5144
- /**
5145
- *
5146
- *
5147
- * Single Conditions are either provided by the host application. See the complete documentation of
5148
- * [Conditions](../../conditions/) for more information.
5149
- *
5150
- * To invert a condition, add the attribute ``invert="true"`` to the condition element.
5151
- * This is useful where you want to show the section if a certain condition is not satisfied.
5152
- *
5153
- * <h3>Example</h3>
5154
- *
5155
- *
5156
- *
5157
- *
5158
- *
5159
- * {
5160
- * "condition": "user_is_logged_in",
5161
- * "invert": false
5162
- * }
5163
- *
5164
- *
5165
- *
5166
- */
5167
- export interface SingleCondition2 {
5168
- condition: string;
5169
- invert?: boolean;
5170
- params?: {
5171
- [k: string]: unknown;
5172
- };
5173
- [k: string]: unknown;
5174
- }
5175
5966
  /**
5176
5967
  *
5177
5968
  *
@@ -5250,10 +6041,41 @@ export interface CompositeCondition2 {
5250
6041
  *
5251
6042
  */
5252
6043
  export interface CompositeCondition3 {
5253
- conditions?: (SingleCondition | ManifestSchema)[];
6044
+ conditions?: (ManifestSchema | SingleCondition)[];
5254
6045
  type?: 'and' | 'AND' | 'or' | 'OR';
5255
6046
  [k: string]: unknown;
5256
6047
  }
6048
+ /**
6049
+ *
6050
+ *
6051
+ * Single Conditions are either provided by the host application. See the complete documentation of
6052
+ * [Conditions](../../conditions/) for more information.
6053
+ *
6054
+ * To invert a condition, add the attribute ``invert="true"`` to the condition element.
6055
+ * This is useful where you want to show the section if a certain condition is not satisfied.
6056
+ *
6057
+ * <h3>Example</h3>
6058
+ *
6059
+ *
6060
+ *
6061
+ *
6062
+ *
6063
+ * {
6064
+ * "condition": "user_is_logged_in",
6065
+ * "invert": false
6066
+ * }
6067
+ *
6068
+ *
6069
+ *
6070
+ */
6071
+ export interface SingleCondition2 {
6072
+ condition: string;
6073
+ invert?: boolean;
6074
+ params?: {
6075
+ [k: string]: unknown;
6076
+ };
6077
+ [k: string]: unknown;
6078
+ }
5257
6079
  /**
5258
6080
  *
5259
6081
  *
@@ -5446,37 +6268,6 @@ export interface I18NProperty38 {
5446
6268
  i18n?: string;
5447
6269
  [k: string]: unknown;
5448
6270
  }
5449
- /**
5450
- *
5451
- *
5452
- * Single Conditions are either provided by the host application. See the complete documentation of
5453
- * [Conditions](../../conditions/) for more information.
5454
- *
5455
- * To invert a condition, add the attribute ``invert="true"`` to the condition element.
5456
- * This is useful where you want to show the section if a certain condition is not satisfied.
5457
- *
5458
- * <h3>Example</h3>
5459
- *
5460
- *
5461
- *
5462
- *
5463
- *
5464
- * {
5465
- * "condition": "user_is_logged_in",
5466
- * "invert": false
5467
- * }
5468
- *
5469
- *
5470
- *
5471
- */
5472
- export interface SingleCondition3 {
5473
- condition: string;
5474
- invert?: boolean;
5475
- params?: {
5476
- [k: string]: unknown;
5477
- };
5478
- [k: string]: unknown;
5479
- }
5480
6271
  /**
5481
6272
  *
5482
6273
  *
@@ -5555,10 +6346,41 @@ export interface CompositeCondition4 {
5555
6346
  *
5556
6347
  */
5557
6348
  export interface CompositeCondition5 {
5558
- conditions?: (SingleCondition | ManifestSchema)[];
6349
+ conditions?: (ManifestSchema | SingleCondition)[];
5559
6350
  type?: 'and' | 'AND' | 'or' | 'OR';
5560
6351
  [k: string]: unknown;
5561
6352
  }
6353
+ /**
6354
+ *
6355
+ *
6356
+ * Single Conditions are either provided by the host application. See the complete documentation of
6357
+ * [Conditions](../../conditions/) for more information.
6358
+ *
6359
+ * To invert a condition, add the attribute ``invert="true"`` to the condition element.
6360
+ * This is useful where you want to show the section if a certain condition is not satisfied.
6361
+ *
6362
+ * <h3>Example</h3>
6363
+ *
6364
+ *
6365
+ *
6366
+ *
6367
+ *
6368
+ * {
6369
+ * "condition": "user_is_logged_in",
6370
+ * "invert": false
6371
+ * }
6372
+ *
6373
+ *
6374
+ *
6375
+ */
6376
+ export interface SingleCondition3 {
6377
+ condition: string;
6378
+ invert?: boolean;
6379
+ params?: {
6380
+ [k: string]: unknown;
6381
+ };
6382
+ [k: string]: unknown;
6383
+ }
5562
6384
  /**
5563
6385
  *
5564
6386
  *
@@ -6307,74 +7129,10 @@ export interface Icon10 {
6307
7129
  *
6308
7130
  */
6309
7131
  export interface WebItemTarget1 {
6310
- options?: InlineDialogOptions1 | DialogModuleOptions1 | DialogOptions2;
7132
+ options?: DialogOptions2 | InlineDialogOptions1 | DialogModuleOptions1;
6311
7133
  type?: 'page' | 'PAGE' | 'dialog' | 'DIALOG' | 'inlinedialog' | 'INLINEDIALOG' | 'dialogmodule' | 'DIALOGMODULE';
6312
7134
  [k: string]: unknown;
6313
7135
  }
6314
- /**
6315
- *
6316
- *
6317
- * Options for an inline dialog target
6318
- *
6319
- * <h3>Example</h3>
6320
- *
6321
- *
6322
- *
6323
- *
6324
- *
6325
- * {
6326
- * "target": {
6327
- * "type": "inlinedialog",
6328
- * "options": {
6329
- * "onHover": true,
6330
- * "offsetX": "30px",
6331
- * "offsetY": "20px"
6332
- * }
6333
- * }
6334
- * }
6335
- *
6336
- *
6337
- *
6338
- */
6339
- export interface InlineDialogOptions1 {
6340
- offsetX?: string;
6341
- offsetY?: string;
6342
- width?: string;
6343
- onTop?: boolean;
6344
- showDelay?: number;
6345
- closeOthers?: boolean;
6346
- persistent?: boolean;
6347
- onHover?: boolean;
6348
- isRelativeToMouse?: boolean;
6349
- [k: string]: unknown;
6350
- }
6351
- /**
6352
- *
6353
- *
6354
- * Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
6355
- *
6356
- * <h3>Example</h3>
6357
- *
6358
- *
6359
- *
6360
- *
6361
- *
6362
- * {
6363
- * "target": {
6364
- * "type": "dialogmodule",
6365
- * "options": {
6366
- * "key": "dialog-module-key"
6367
- * }
6368
- * }
6369
- * }
6370
- *
6371
- *
6372
- *
6373
- */
6374
- export interface DialogModuleOptions1 {
6375
- key: string;
6376
- [k: string]: unknown;
6377
- }
6378
7136
  /**
6379
7137
  *
6380
7138
  *
@@ -6468,31 +7226,7 @@ export interface DialogOptions2 {
6468
7226
  *
6469
7227
  *
6470
7228
  */
6471
- export interface I18NProperty58 {
6472
- value: string;
6473
- i18n?: string;
6474
- [k: string]: unknown;
6475
- }
6476
- /**
6477
- *
6478
- *
6479
- * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
6480
- * and value in multiple places if you like, but identical keys must have identical values.
6481
- *
6482
- * <h3>Example</h3>
6483
- *
6484
- *
6485
- *
6486
- *
6487
- *
6488
- * {
6489
- * "value": "My text"
6490
- * }
6491
- *
6492
- *
6493
- *
6494
- */
6495
- export interface I18NProperty59 {
7229
+ export interface I18NProperty58 {
6496
7230
  value: string;
6497
7231
  i18n?: string;
6498
7232
  [k: string]: unknown;
@@ -6500,11 +7234,44 @@ export interface I18NProperty59 {
6500
7234
  /**
6501
7235
  *
6502
7236
  *
6503
- * Single Conditions are either provided by the host application. See the complete documentation of
6504
- * [Conditions](../../conditions/) for more information.
7237
+ * Options for an inline dialog target
6505
7238
  *
6506
- * To invert a condition, add the attribute ``invert="true"`` to the condition element.
6507
- * This is useful where you want to show the section if a certain condition is not satisfied.
7239
+ * <h3>Example</h3>
7240
+ *
7241
+ *
7242
+ *
7243
+ *
7244
+ *
7245
+ * {
7246
+ * "target": {
7247
+ * "type": "inlinedialog",
7248
+ * "options": {
7249
+ * "onHover": true,
7250
+ * "offsetX": "30px",
7251
+ * "offsetY": "20px"
7252
+ * }
7253
+ * }
7254
+ * }
7255
+ *
7256
+ *
7257
+ *
7258
+ */
7259
+ export interface InlineDialogOptions1 {
7260
+ offsetX?: string;
7261
+ offsetY?: string;
7262
+ width?: string;
7263
+ onTop?: boolean;
7264
+ showDelay?: number;
7265
+ closeOthers?: boolean;
7266
+ persistent?: boolean;
7267
+ onHover?: boolean;
7268
+ isRelativeToMouse?: boolean;
7269
+ [k: string]: unknown;
7270
+ }
7271
+ /**
7272
+ *
7273
+ *
7274
+ * Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
6508
7275
  *
6509
7276
  * <h3>Example</h3>
6510
7277
  *
@@ -6513,19 +7280,43 @@ export interface I18NProperty59 {
6513
7280
  *
6514
7281
  *
6515
7282
  * {
6516
- * "condition": "user_is_logged_in",
6517
- * "invert": false
7283
+ * "target": {
7284
+ * "type": "dialogmodule",
7285
+ * "options": {
7286
+ * "key": "dialog-module-key"
7287
+ * }
7288
+ * }
6518
7289
  * }
6519
7290
  *
6520
7291
  *
6521
7292
  *
6522
7293
  */
6523
- export interface SingleCondition4 {
6524
- condition: string;
6525
- invert?: boolean;
6526
- params?: {
6527
- [k: string]: unknown;
6528
- };
7294
+ export interface DialogModuleOptions1 {
7295
+ key: string;
7296
+ [k: string]: unknown;
7297
+ }
7298
+ /**
7299
+ *
7300
+ *
7301
+ * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
7302
+ * and value in multiple places if you like, but identical keys must have identical values.
7303
+ *
7304
+ * <h3>Example</h3>
7305
+ *
7306
+ *
7307
+ *
7308
+ *
7309
+ *
7310
+ * {
7311
+ * "value": "My text"
7312
+ * }
7313
+ *
7314
+ *
7315
+ *
7316
+ */
7317
+ export interface I18NProperty59 {
7318
+ value: string;
7319
+ i18n?: string;
6529
7320
  [k: string]: unknown;
6530
7321
  }
6531
7322
  /**
@@ -6565,10 +7356,41 @@ export interface SingleCondition4 {
6565
7356
  *
6566
7357
  */
6567
7358
  export interface CompositeCondition6 {
6568
- conditions?: (SingleCondition | ManifestSchema)[];
7359
+ conditions?: (ManifestSchema | SingleCondition)[];
6569
7360
  type?: 'and' | 'AND' | 'or' | 'OR';
6570
7361
  [k: string]: unknown;
6571
7362
  }
7363
+ /**
7364
+ *
7365
+ *
7366
+ * Single Conditions are either provided by the host application. See the complete documentation of
7367
+ * [Conditions](../../conditions/) for more information.
7368
+ *
7369
+ * To invert a condition, add the attribute ``invert="true"`` to the condition element.
7370
+ * This is useful where you want to show the section if a certain condition is not satisfied.
7371
+ *
7372
+ * <h3>Example</h3>
7373
+ *
7374
+ *
7375
+ *
7376
+ *
7377
+ *
7378
+ * {
7379
+ * "condition": "user_is_logged_in",
7380
+ * "invert": false
7381
+ * }
7382
+ *
7383
+ *
7384
+ *
7385
+ */
7386
+ export interface SingleCondition4 {
7387
+ condition: string;
7388
+ invert?: boolean;
7389
+ params?: {
7390
+ [k: string]: unknown;
7391
+ };
7392
+ [k: string]: unknown;
7393
+ }
6572
7394
  /**
6573
7395
  *
6574
7396
  *
@@ -6923,6 +7745,37 @@ export interface I18NProperty63 {
6923
7745
  i18n?: string;
6924
7746
  [k: string]: unknown;
6925
7747
  }
7748
+ /**
7749
+ *
7750
+ *
7751
+ * Single Conditions are either provided by the host application. See the complete documentation of
7752
+ * [Conditions](../../conditions/) for more information.
7753
+ *
7754
+ * To invert a condition, add the attribute ``invert="true"`` to the condition element.
7755
+ * This is useful where you want to show the section if a certain condition is not satisfied.
7756
+ *
7757
+ * <h3>Example</h3>
7758
+ *
7759
+ *
7760
+ *
7761
+ *
7762
+ *
7763
+ * {
7764
+ * "condition": "user_is_logged_in",
7765
+ * "invert": false
7766
+ * }
7767
+ *
7768
+ *
7769
+ *
7770
+ */
7771
+ export interface SingleCondition5 {
7772
+ condition: string;
7773
+ invert?: boolean;
7774
+ params?: {
7775
+ [k: string]: unknown;
7776
+ };
7777
+ [k: string]: unknown;
7778
+ }
6926
7779
  /**
6927
7780
  *
6928
7781
  *
@@ -6964,37 +7817,6 @@ export interface CompositeCondition7 {
6964
7817
  type?: 'and' | 'AND' | 'or' | 'OR';
6965
7818
  [k: string]: unknown;
6966
7819
  }
6967
- /**
6968
- *
6969
- *
6970
- * Single Conditions are either provided by the host application. See the complete documentation of
6971
- * [Conditions](../../conditions/) for more information.
6972
- *
6973
- * To invert a condition, add the attribute ``invert="true"`` to the condition element.
6974
- * This is useful where you want to show the section if a certain condition is not satisfied.
6975
- *
6976
- * <h3>Example</h3>
6977
- *
6978
- *
6979
- *
6980
- *
6981
- *
6982
- * {
6983
- * "condition": "user_is_logged_in",
6984
- * "invert": false
6985
- * }
6986
- *
6987
- *
6988
- *
6989
- */
6990
- export interface SingleCondition5 {
6991
- condition: string;
6992
- invert?: boolean;
6993
- params?: {
6994
- [k: string]: unknown;
6995
- };
6996
- [k: string]: unknown;
6997
- }
6998
7820
  /**
6999
7821
  *
7000
7822
  *
@@ -8414,7 +9236,7 @@ export interface I18NProperty74 {
8414
9236
  *
8415
9237
  */
8416
9238
  export interface MacroPropertyPanel {
8417
- controls?: (TextControl | ControlGroup | ToggleGroup | ButtonControl1)[];
9239
+ controls?: (ToggleGroup | ControlGroup | TextControl | ButtonControl1)[];
8418
9240
  cacheable?: boolean;
8419
9241
  url: string;
8420
9242
  [k: string]: unknown;
@@ -8422,7 +9244,52 @@ export interface MacroPropertyPanel {
8422
9244
  /**
8423
9245
  *
8424
9246
  *
8425
- * Defines a text field which may appear in control extension points such as the property panel
9247
+ * Defines a ToggleGroup which may appear in control extension points such as the property panel
9248
+ *
9249
+ * <p><b>Example</b></p>
9250
+ *
9251
+ *
9252
+ *
9253
+ *
9254
+ *
9255
+ * [
9256
+ * {
9257
+ * "type": "togglegroup",
9258
+ * "macroParameter": "toggleGroupMacroParameter",
9259
+ * "controls": [
9260
+ * {
9261
+ * "type": "togglebutton",
9262
+ * "macroParameterValue": "macroParameterValue 0",
9263
+ * "label": {
9264
+ * "value": "My Custom Control 0"
9265
+ * },
9266
+ * "key": "my-custom-toggle-button-0"
9267
+ * },
9268
+ * {
9269
+ * "type": "togglebutton",
9270
+ * "macroParameterValue": "macroParameterValue 1",
9271
+ * "label": {
9272
+ * "value": "My Custom Control 1"
9273
+ * },
9274
+ * "key": "my-custom-toggle-button-1"
9275
+ * }
9276
+ * ]
9277
+ * }
9278
+ * ]
9279
+ *
9280
+ *
9281
+ *
9282
+ */
9283
+ export interface ToggleGroup {
9284
+ controls: ToggleButtonControl[];
9285
+ macroParameter: string;
9286
+ type: 'togglegroup' | 'TOGGLEGROUP';
9287
+ [k: string]: unknown;
9288
+ }
9289
+ /**
9290
+ *
9291
+ *
9292
+ * Defines a toggle button which appears inside a ToggleGroup
8426
9293
  *
8427
9294
  * <p><b>Example</b></p>
8428
9295
  *
@@ -8431,22 +9298,48 @@ export interface MacroPropertyPanel {
8431
9298
  *
8432
9299
  *
8433
9300
  * {
8434
- * "type": "button",
9301
+ * "type": "togglebutton",
9302
+ * "macroParameterValue": "macroParameterValue 0",
8435
9303
  * "label": {
8436
9304
  * "value": "My Custom Control 0"
8437
9305
  * },
8438
- * "key": "my-custom-control-0"
9306
+ * "key": "my-custom-toggle-button-0"
8439
9307
  * }
8440
9308
  *
8441
9309
  *
8442
9310
  *
8443
9311
  */
8444
- export interface TextControl {
8445
- macroParameter: string;
8446
- type: 'text' | 'TEXT';
9312
+ export interface ToggleButtonControl {
9313
+ macroParameterValue: string;
9314
+ label: I18NProperty75;
9315
+ type: 'togglebutton' | 'TOGGLEBUTTON';
8447
9316
  key: string;
8448
9317
  [k: string]: unknown;
8449
9318
  }
9319
+ /**
9320
+ *
9321
+ *
9322
+ * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
9323
+ * and value in multiple places if you like, but identical keys must have identical values.
9324
+ *
9325
+ * <h3>Example</h3>
9326
+ *
9327
+ *
9328
+ *
9329
+ *
9330
+ *
9331
+ * {
9332
+ * "value": "My text"
9333
+ * }
9334
+ *
9335
+ *
9336
+ *
9337
+ */
9338
+ export interface I18NProperty75 {
9339
+ value: string;
9340
+ i18n?: string;
9341
+ [k: string]: unknown;
9342
+ }
8450
9343
  /**
8451
9344
  *
8452
9345
  *
@@ -8511,7 +9404,7 @@ export interface ControlGroup {
8511
9404
  *
8512
9405
  */
8513
9406
  export interface ButtonControl {
8514
- label: I18NProperty75;
9407
+ label: I18NProperty76;
8515
9408
  type: 'button' | 'BUTTON';
8516
9409
  key: string;
8517
9410
  [k: string]: unknown;
@@ -8535,7 +9428,7 @@ export interface ButtonControl {
8535
9428
  *
8536
9429
  *
8537
9430
  */
8538
- export interface I18NProperty75 {
9431
+ export interface I18NProperty76 {
8539
9432
  value: string;
8540
9433
  i18n?: string;
8541
9434
  [k: string]: unknown;
@@ -8543,52 +9436,7 @@ export interface I18NProperty75 {
8543
9436
  /**
8544
9437
  *
8545
9438
  *
8546
- * Defines a ToggleGroup which may appear in control extension points such as the property panel
8547
- *
8548
- * <p><b>Example</b></p>
8549
- *
8550
- *
8551
- *
8552
- *
8553
- *
8554
- * [
8555
- * {
8556
- * "type": "togglegroup",
8557
- * "macroParameter": "toggleGroupMacroParameter",
8558
- * "controls": [
8559
- * {
8560
- * "type": "togglebutton",
8561
- * "macroParameterValue": "macroParameterValue 0",
8562
- * "label": {
8563
- * "value": "My Custom Control 0"
8564
- * },
8565
- * "key": "my-custom-toggle-button-0"
8566
- * },
8567
- * {
8568
- * "type": "togglebutton",
8569
- * "macroParameterValue": "macroParameterValue 1",
8570
- * "label": {
8571
- * "value": "My Custom Control 1"
8572
- * },
8573
- * "key": "my-custom-toggle-button-1"
8574
- * }
8575
- * ]
8576
- * }
8577
- * ]
8578
- *
8579
- *
8580
- *
8581
- */
8582
- export interface ToggleGroup {
8583
- controls: ToggleButtonControl[];
8584
- macroParameter: string;
8585
- type: 'togglegroup' | 'TOGGLEGROUP';
8586
- [k: string]: unknown;
8587
- }
8588
- /**
8589
- *
8590
- *
8591
- * Defines a toggle button which appears inside a ToggleGroup
9439
+ * Defines a text field which may appear in control extension points such as the property panel
8592
9440
  *
8593
9441
  * <p><b>Example</b></p>
8594
9442
  *
@@ -8597,48 +9445,22 @@ export interface ToggleGroup {
8597
9445
  *
8598
9446
  *
8599
9447
  * {
8600
- * "type": "togglebutton",
8601
- * "macroParameterValue": "macroParameterValue 0",
9448
+ * "type": "button",
8602
9449
  * "label": {
8603
9450
  * "value": "My Custom Control 0"
8604
9451
  * },
8605
- * "key": "my-custom-toggle-button-0"
9452
+ * "key": "my-custom-control-0"
8606
9453
  * }
8607
9454
  *
8608
9455
  *
8609
9456
  *
8610
9457
  */
8611
- export interface ToggleButtonControl {
8612
- macroParameterValue: string;
8613
- label: I18NProperty76;
8614
- type: 'togglebutton' | 'TOGGLEBUTTON';
9458
+ export interface TextControl {
9459
+ macroParameter: string;
9460
+ type: 'text' | 'TEXT';
8615
9461
  key: string;
8616
9462
  [k: string]: unknown;
8617
9463
  }
8618
- /**
8619
- *
8620
- *
8621
- * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
8622
- * and value in multiple places if you like, but identical keys must have identical values.
8623
- *
8624
- * <h3>Example</h3>
8625
- *
8626
- *
8627
- *
8628
- *
8629
- *
8630
- * {
8631
- * "value": "My text"
8632
- * }
8633
- *
8634
- *
8635
- *
8636
- */
8637
- export interface I18NProperty76 {
8638
- value: string;
8639
- i18n?: string;
8640
- [k: string]: unknown;
8641
- }
8642
9464
  /**
8643
9465
  *
8644
9466
  *
@@ -29613,57 +30435,202 @@ export interface Icon17 {
29613
30435
  *
29614
30436
  *
29615
30437
  */
29616
- export interface I18NProperty83 {
30438
+ export interface I18NProperty83 {
30439
+ value: string;
30440
+ i18n?: string;
30441
+ [k: string]: unknown;
30442
+ }
30443
+ /**
30444
+ *
30445
+ *
30446
+ * Defining a Macro Property panel allows you to add a hidden iframe to your macro's
30447
+ * property panel. The iframe is loaded as soon as the property panel is opened.
30448
+ *
30449
+ * In order to persist custom data using your property panel, use the Javascript
30450
+ * <a href="../../jsapi/confluence/">Confluence API</a>.
30451
+ * For example:
30452
+ *
30453
+ * AP.require(["confluence"], function (confluence) {
30454
+ * var macroParams = {
30455
+ * myParameter: value
30456
+ * };
30457
+ * confluence.saveMacro(macroParams);
30458
+ * });
30459
+ *
30460
+ * In order to retrieve the custom data again when the property panel is opened, use `confluence.getMacroData` (see
30461
+ * <a href="../../jsapi/confluence/">Confluence API</a>):
30462
+ *
30463
+ * AP.require("confluence", function (confluence) {
30464
+ * var macroData = confluence.getMacroData(function(macroParams) {
30465
+ * doSomethingWith(macroParams.myParameter);
30466
+ * });
30467
+ * });
30468
+ *
30469
+ * Dialogs may also be created. Use `dialog.create` (see
30470
+ * <a href="../../jsapi/dialog/">Dialog API</a>):
30471
+ *
30472
+ * AP.require('dialog', function(dialog) {
30473
+ * dialog.create({
30474
+ * key: 'my-module-key',
30475
+ * width: '500px',
30476
+ * height: '200px',
30477
+ * chrome: true
30478
+ * }).on("close", callbackFunc);
30479
+ * });
30480
+ *
30481
+ *
30482
+ */
30483
+ export interface MacroPropertyPanel1 {
30484
+ controls?: (ButtonControl2 | ControlGroup1 | ToggleGroup1 | TextControl1)[];
30485
+ cacheable?: boolean;
30486
+ url: string;
30487
+ [k: string]: unknown;
30488
+ }
30489
+ /**
30490
+ *
30491
+ *
30492
+ * Defines a button which may appear in control extension points such as the property panel
30493
+ *
30494
+ * <p><b>Example</b></p>
30495
+ *
30496
+ *
30497
+ *
30498
+ *
30499
+ *
30500
+ * {
30501
+ * "type": "button",
30502
+ * "label": {
30503
+ * "value": "My Custom Control 0"
30504
+ * },
30505
+ * "key": "my-custom-control-0"
30506
+ * }
30507
+ *
30508
+ *
30509
+ *
30510
+ */
30511
+ export interface ButtonControl2 {
30512
+ label: I18NProperty84;
30513
+ type: 'button' | 'BUTTON';
30514
+ key: string;
30515
+ [k: string]: unknown;
30516
+ }
30517
+ /**
30518
+ *
30519
+ *
30520
+ * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
30521
+ * and value in multiple places if you like, but identical keys must have identical values.
30522
+ *
30523
+ * <h3>Example</h3>
30524
+ *
30525
+ *
30526
+ *
30527
+ *
30528
+ *
30529
+ * {
30530
+ * "value": "My text"
30531
+ * }
30532
+ *
30533
+ *
30534
+ *
30535
+ */
30536
+ export interface I18NProperty84 {
30537
+ value: string;
30538
+ i18n?: string;
30539
+ [k: string]: unknown;
30540
+ }
30541
+ /**
30542
+ *
30543
+ *
30544
+ * Defines a ControlGroup which may appear in control extension points such as the property panel
30545
+ *
30546
+ * <p><b>Example</b></p>
30547
+ *
30548
+ *
30549
+ *
30550
+ *
30551
+ *
30552
+ * [
30553
+ * {
30554
+ * "type": "group",
30555
+ * "controls": [
30556
+ * {
30557
+ * "type": "button",
30558
+ * "label": {
30559
+ * "value": "My Custom Control 0"
30560
+ * },
30561
+ * "key": "my-custom-control-0"
30562
+ * },
30563
+ * {
30564
+ * "type": "button",
30565
+ * "label": {
30566
+ * "value": "My Custom Control 1"
30567
+ * },
30568
+ * "key": "my-custom-control-1"
30569
+ * }
30570
+ * ]
30571
+ * }
30572
+ * ]
30573
+ *
30574
+ *
30575
+ *
30576
+ */
30577
+ export interface ControlGroup1 {
30578
+ controls: ButtonControl3[];
30579
+ type: 'group' | 'GROUP';
30580
+ [k: string]: unknown;
30581
+ }
30582
+ /**
30583
+ *
30584
+ *
30585
+ * Defines a button which may appear in control extension points such as the property panel
30586
+ *
30587
+ * <p><b>Example</b></p>
30588
+ *
30589
+ *
30590
+ *
30591
+ *
30592
+ *
30593
+ * {
30594
+ * "type": "button",
30595
+ * "label": {
30596
+ * "value": "My Custom Control 0"
30597
+ * },
30598
+ * "key": "my-custom-control-0"
30599
+ * }
30600
+ *
30601
+ *
30602
+ *
30603
+ */
30604
+ export interface ButtonControl3 {
30605
+ label: I18NProperty85;
30606
+ type: 'button' | 'BUTTON';
30607
+ key: string;
30608
+ [k: string]: unknown;
30609
+ }
30610
+ /**
30611
+ *
30612
+ *
30613
+ * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
30614
+ * and value in multiple places if you like, but identical keys must have identical values.
30615
+ *
30616
+ * <h3>Example</h3>
30617
+ *
30618
+ *
30619
+ *
30620
+ *
30621
+ *
30622
+ * {
30623
+ * "value": "My text"
30624
+ * }
30625
+ *
30626
+ *
30627
+ *
30628
+ */
30629
+ export interface I18NProperty85 {
29617
30630
  value: string;
29618
30631
  i18n?: string;
29619
30632
  [k: string]: unknown;
29620
30633
  }
29621
- /**
29622
- *
29623
- *
29624
- * Defining a Macro Property panel allows you to add a hidden iframe to your macro's
29625
- * property panel. The iframe is loaded as soon as the property panel is opened.
29626
- *
29627
- * In order to persist custom data using your property panel, use the Javascript
29628
- * <a href="../../jsapi/confluence/">Confluence API</a>.
29629
- * For example:
29630
- *
29631
- * AP.require(["confluence"], function (confluence) {
29632
- * var macroParams = {
29633
- * myParameter: value
29634
- * };
29635
- * confluence.saveMacro(macroParams);
29636
- * });
29637
- *
29638
- * In order to retrieve the custom data again when the property panel is opened, use `confluence.getMacroData` (see
29639
- * <a href="../../jsapi/confluence/">Confluence API</a>):
29640
- *
29641
- * AP.require("confluence", function (confluence) {
29642
- * var macroData = confluence.getMacroData(function(macroParams) {
29643
- * doSomethingWith(macroParams.myParameter);
29644
- * });
29645
- * });
29646
- *
29647
- * Dialogs may also be created. Use `dialog.create` (see
29648
- * <a href="../../jsapi/dialog/">Dialog API</a>):
29649
- *
29650
- * AP.require('dialog', function(dialog) {
29651
- * dialog.create({
29652
- * key: 'my-module-key',
29653
- * width: '500px',
29654
- * height: '200px',
29655
- * chrome: true
29656
- * }).on("close", callbackFunc);
29657
- * });
29658
- *
29659
- *
29660
- */
29661
- export interface MacroPropertyPanel1 {
29662
- controls?: (ToggleGroup1 | ControlGroup1 | TextControl1 | ButtonControl3)[];
29663
- cacheable?: boolean;
29664
- url: string;
29665
- [k: string]: unknown;
29666
- }
29667
30634
  /**
29668
30635
  *
29669
30636
  *
@@ -29734,7 +30701,7 @@ export interface ToggleGroup1 {
29734
30701
  */
29735
30702
  export interface ToggleButtonControl1 {
29736
30703
  macroParameterValue: string;
29737
- label: I18NProperty84;
30704
+ label: I18NProperty86;
29738
30705
  type: 'togglebutton' | 'TOGGLEBUTTON';
29739
30706
  key: string;
29740
30707
  [k: string]: unknown;
@@ -29758,100 +30725,7 @@ export interface ToggleButtonControl1 {
29758
30725
  *
29759
30726
  *
29760
30727
  */
29761
- export interface I18NProperty84 {
29762
- value: string;
29763
- i18n?: string;
29764
- [k: string]: unknown;
29765
- }
29766
- /**
29767
- *
29768
- *
29769
- * Defines a ControlGroup which may appear in control extension points such as the property panel
29770
- *
29771
- * <p><b>Example</b></p>
29772
- *
29773
- *
29774
- *
29775
- *
29776
- *
29777
- * [
29778
- * {
29779
- * "type": "group",
29780
- * "controls": [
29781
- * {
29782
- * "type": "button",
29783
- * "label": {
29784
- * "value": "My Custom Control 0"
29785
- * },
29786
- * "key": "my-custom-control-0"
29787
- * },
29788
- * {
29789
- * "type": "button",
29790
- * "label": {
29791
- * "value": "My Custom Control 1"
29792
- * },
29793
- * "key": "my-custom-control-1"
29794
- * }
29795
- * ]
29796
- * }
29797
- * ]
29798
- *
29799
- *
29800
- *
29801
- */
29802
- export interface ControlGroup1 {
29803
- controls: ButtonControl2[];
29804
- type: 'group' | 'GROUP';
29805
- [k: string]: unknown;
29806
- }
29807
- /**
29808
- *
29809
- *
29810
- * Defines a button which may appear in control extension points such as the property panel
29811
- *
29812
- * <p><b>Example</b></p>
29813
- *
29814
- *
29815
- *
29816
- *
29817
- *
29818
- * {
29819
- * "type": "button",
29820
- * "label": {
29821
- * "value": "My Custom Control 0"
29822
- * },
29823
- * "key": "my-custom-control-0"
29824
- * }
29825
- *
29826
- *
29827
- *
29828
- */
29829
- export interface ButtonControl2 {
29830
- label: I18NProperty85;
29831
- type: 'button' | 'BUTTON';
29832
- key: string;
29833
- [k: string]: unknown;
29834
- }
29835
- /**
29836
- *
29837
- *
29838
- * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
29839
- * and value in multiple places if you like, but identical keys must have identical values.
29840
- *
29841
- * <h3>Example</h3>
29842
- *
29843
- *
29844
- *
29845
- *
29846
- *
29847
- * {
29848
- * "value": "My text"
29849
- * }
29850
- *
29851
- *
29852
- *
29853
- */
29854
- export interface I18NProperty85 {
30728
+ export interface I18NProperty86 {
29855
30729
  value: string;
29856
30730
  i18n?: string;
29857
30731
  [k: string]: unknown;
@@ -29884,58 +30758,6 @@ export interface TextControl1 {
29884
30758
  key: string;
29885
30759
  [k: string]: unknown;
29886
30760
  }
29887
- /**
29888
- *
29889
- *
29890
- * Defines a button which may appear in control extension points such as the property panel
29891
- *
29892
- * <p><b>Example</b></p>
29893
- *
29894
- *
29895
- *
29896
- *
29897
- *
29898
- * {
29899
- * "type": "button",
29900
- * "label": {
29901
- * "value": "My Custom Control 0"
29902
- * },
29903
- * "key": "my-custom-control-0"
29904
- * }
29905
- *
29906
- *
29907
- *
29908
- */
29909
- export interface ButtonControl3 {
29910
- label: I18NProperty86;
29911
- type: 'button' | 'BUTTON';
29912
- key: string;
29913
- [k: string]: unknown;
29914
- }
29915
- /**
29916
- *
29917
- *
29918
- * Represents a string that can be resolved via a localization properties file. You can use the same `i18n Property` key
29919
- * and value in multiple places if you like, but identical keys must have identical values.
29920
- *
29921
- * <h3>Example</h3>
29922
- *
29923
- *
29924
- *
29925
- *
29926
- *
29927
- * {
29928
- * "value": "My text"
29929
- * }
29930
- *
29931
- *
29932
- *
29933
- */
29934
- export interface I18NProperty86 {
29935
- value: string;
29936
- i18n?: string;
29937
- [k: string]: unknown;
29938
- }
29939
30761
  /**
29940
30762
  *
29941
30763
  *
@@ -50785,7 +51607,7 @@ export interface I18NProperty91 {
50785
51607
  *
50786
51608
  */
50787
51609
  export interface WebItemTarget2 {
50788
- options?: InlineDialogOptions2 | DialogModuleOptions2 | DialogOptions4;
51610
+ options?: InlineDialogOptions2 | DialogOptions4 | DialogModuleOptions2;
50789
51611
  type?: 'page' | 'PAGE' | 'dialog' | 'DIALOG' | 'inlinedialog' | 'INLINEDIALOG' | 'dialogmodule' | 'DIALOGMODULE';
50790
51612
  [k: string]: unknown;
50791
51613
  }
@@ -50826,33 +51648,6 @@ export interface InlineDialogOptions2 {
50826
51648
  isRelativeToMouse?: boolean;
50827
51649
  [k: string]: unknown;
50828
51650
  }
50829
- /**
50830
- *
50831
- *
50832
- * Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
50833
- *
50834
- * <h3>Example</h3>
50835
- *
50836
- *
50837
- *
50838
- *
50839
- *
50840
- * {
50841
- * "target": {
50842
- * "type": "dialogmodule",
50843
- * "options": {
50844
- * "key": "dialog-module-key"
50845
- * }
50846
- * }
50847
- * }
50848
- *
50849
- *
50850
- *
50851
- */
50852
- export interface DialogModuleOptions2 {
50853
- key: string;
50854
- [k: string]: unknown;
50855
- }
50856
51651
  /**
50857
51652
  *
50858
51653
  *
@@ -50951,6 +51746,33 @@ export interface I18NProperty92 {
50951
51746
  i18n?: string;
50952
51747
  [k: string]: unknown;
50953
51748
  }
51749
+ /**
51750
+ *
51751
+ *
51752
+ * Options for a web-item targeting a common <a href="../dialog/">dialog module</a>.
51753
+ *
51754
+ * <h3>Example</h3>
51755
+ *
51756
+ *
51757
+ *
51758
+ *
51759
+ *
51760
+ * {
51761
+ * "target": {
51762
+ * "type": "dialogmodule",
51763
+ * "options": {
51764
+ * "key": "dialog-module-key"
51765
+ * }
51766
+ * }
51767
+ * }
51768
+ *
51769
+ *
51770
+ *
51771
+ */
51772
+ export interface DialogModuleOptions2 {
51773
+ key: string;
51774
+ [k: string]: unknown;
51775
+ }
50954
51776
  /**
50955
51777
  *
50956
51778
  *
@@ -51737,6 +52559,12 @@ export interface Fetch {
51737
52559
  export interface Remote {
51738
52560
  remote: string;
51739
52561
  }
52562
+ /**
52563
+ * References a Remote
52564
+ */
52565
+ export interface Remote1 {
52566
+ remote: string;
52567
+ }
51740
52568
  export interface HostedResourcesSchema {
51741
52569
  /**
51742
52570
  * A key for the resource, which other modules can refer to. Must be unique within the manifest and have a maximum of 23 characters.
@@ -51753,6 +52581,19 @@ export interface RemotesSchema {
51753
52581
  */
51754
52582
  key: string;
51755
52583
  baseUrl: string;
52584
+ /**
52585
+ * The type of operations done in the remote
52586
+ */
52587
+ operations?: ['storage' | 'other', ...('storage' | 'other')[]];
52588
+ /**
52589
+ * Options related to remote storage
52590
+ */
52591
+ storage?: {
52592
+ /**
52593
+ * Labels to classify the type of data stored
52594
+ */
52595
+ classifications: ['ugc' | 'pii' | 'other', ...('ugc' | 'pii' | 'other')[]];
52596
+ };
51756
52597
  }
51757
52598
  export interface Providers {
51758
52599
  auth: Auth;
@@ -51764,19 +52605,7 @@ export interface AuthProviderCustom {
51764
52605
  */
51765
52606
  name: string;
51766
52607
  type: 'oauth2';
51767
- bearerMethod?:
51768
- | ('authorization-header' | 'form-encoded' | 'uri-query')
51769
- | {
51770
- type: 'authorization-header' | 'form-encoded' | 'uri-query';
51771
- /**
51772
- * Custom authorization header prefix
51773
- */
51774
- prefix?: string;
51775
- /**
51776
- * Custom Header name or Parameter name (depending on type)
51777
- */
51778
- parameter?: string;
51779
- };
52608
+ bearerMethod: BearerMethodSchema;
51780
52609
  clientId: string;
51781
52610
  scopes?: string[];
51782
52611
  remotes?: ModuleKeySchema[];
@@ -51859,7 +52688,12 @@ export interface AuthProviderPredefined {
51859
52688
  * Name shown to end users
51860
52689
  */
51861
52690
  name: string;
52691
+ /**
52692
+ * Pre-defined integration name
52693
+ */
51862
52694
  integration: 'adobe' | 'azuredevops' | 'dropbox' | 'google' | 'miro';
52695
+ bearerMethod: BearerMethodSchema;
51863
52696
  clientId: string;
51864
52697
  scopes?: string[];
52698
+ remotes: ModuleKeySchema[];
51865
52699
  }