@forge/manifest 6.1.0-next.1-experimental-5e2eb7f → 6.1.0

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @forge/manifest
2
2
 
3
- ## 6.1.0-next.1-experimental-5e2eb7f
3
+ ## 6.1.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -9,6 +9,13 @@
9
9
  ### Patch Changes
10
10
 
11
11
  - 756e1c4: Update manifest definitions
12
+ - ac35e84: Update manifest definitions
13
+
14
+ ## 6.1.0-next.2
15
+
16
+ ### Patch Changes
17
+
18
+ - ac35e84: Update manifest definitions
12
19
 
13
20
  ## 6.1.0-next.1
14
21
 
@@ -537,8 +537,8 @@
537
537
  "type": "array",
538
538
  "items": {
539
539
  "$schema": "http://json-schema.org/draft-07/schema#",
540
- "additionalProperties": true,
541
540
  "description": "A Forge Function definition.",
541
+ "type": "object",
542
542
  "properties": {
543
543
  "handler": {
544
544
  "description": "The method, within the index.js function, that will be called to invoke the function.",
@@ -584,6 +584,9 @@
584
584
  }
585
585
  }
586
586
  },
587
+ "providers": {
588
+ "$ref": "#/definitions/ExternalAuthFunctionProviders"
589
+ },
587
590
  "key": {
588
591
  "$ref": "#/definitions/ModuleKeySchema"
589
592
  }
@@ -592,7 +595,6 @@
592
595
  "handler",
593
596
  "key"
594
597
  ],
595
- "type": "object",
596
598
  "not": {
597
599
  "required": [
598
600
  "unlicensedAccess"
@@ -3022,14 +3024,6 @@
3022
3024
  {
3023
3025
  "type": "object",
3024
3026
  "properties": {
3025
- "display": {
3026
- "default": "modal",
3027
- "enum": [
3028
- "inline",
3029
- "modal"
3030
- ],
3031
- "type": "string"
3032
- },
3033
3027
  "resource": {
3034
3028
  "type": "string",
3035
3029
  "minLength": 1,
@@ -3108,6 +3102,18 @@
3108
3102
  }
3109
3103
  ]
3110
3104
  },
3105
+ "function": {
3106
+ "type": "string",
3107
+ "minLength": 1,
3108
+ "maxLength": 255,
3109
+ "pattern": "^[a-zA-Z0-9-_]+$"
3110
+ },
3111
+ "resource": {
3112
+ "type": "string",
3113
+ "minLength": 1,
3114
+ "maxLength": 23,
3115
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3116
+ },
3111
3117
  "render": {
3112
3118
  "default": "default",
3113
3119
  "enum": [
@@ -3247,14 +3253,6 @@
3247
3253
  {
3248
3254
  "type": "object",
3249
3255
  "properties": {
3250
- "display": {
3251
- "default": "modal",
3252
- "enum": [
3253
- "inline",
3254
- "modal"
3255
- ],
3256
- "type": "string"
3257
- },
3258
3256
  "resource": {
3259
3257
  "type": "string",
3260
3258
  "minLength": 1,
@@ -3333,6 +3331,18 @@
3333
3331
  }
3334
3332
  ]
3335
3333
  },
3334
+ "function": {
3335
+ "type": "string",
3336
+ "minLength": 1,
3337
+ "maxLength": 255,
3338
+ "pattern": "^[a-zA-Z0-9-_]+$"
3339
+ },
3340
+ "resource": {
3341
+ "type": "string",
3342
+ "minLength": 1,
3343
+ "maxLength": 23,
3344
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3345
+ },
3336
3346
  "render": {
3337
3347
  "default": "default",
3338
3348
  "enum": [
@@ -3448,14 +3458,6 @@
3448
3458
  {
3449
3459
  "type": "object",
3450
3460
  "properties": {
3451
- "display": {
3452
- "default": "modal",
3453
- "enum": [
3454
- "inline",
3455
- "modal"
3456
- ],
3457
- "type": "string"
3458
- },
3459
3461
  "resource": {
3460
3462
  "type": "string",
3461
3463
  "minLength": 1,
@@ -3628,6 +3630,18 @@
3628
3630
  }
3629
3631
  ]
3630
3632
  },
3633
+ "function": {
3634
+ "type": "string",
3635
+ "minLength": 1,
3636
+ "maxLength": 255,
3637
+ "pattern": "^[a-zA-Z0-9-_]+$"
3638
+ },
3639
+ "resource": {
3640
+ "type": "string",
3641
+ "minLength": 1,
3642
+ "maxLength": 23,
3643
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3644
+ },
3631
3645
  "render": {
3632
3646
  "default": "default",
3633
3647
  "enum": [
@@ -3733,14 +3747,6 @@
3733
3747
  {
3734
3748
  "type": "object",
3735
3749
  "properties": {
3736
- "display": {
3737
- "default": "modal",
3738
- "enum": [
3739
- "inline",
3740
- "modal"
3741
- ],
3742
- "type": "string"
3743
- },
3744
3750
  "resource": {
3745
3751
  "type": "string",
3746
3752
  "minLength": 1,
@@ -3913,6 +3919,18 @@
3913
3919
  }
3914
3920
  ]
3915
3921
  },
3922
+ "function": {
3923
+ "type": "string",
3924
+ "minLength": 1,
3925
+ "maxLength": 255,
3926
+ "pattern": "^[a-zA-Z0-9-_]+$"
3927
+ },
3928
+ "resource": {
3929
+ "type": "string",
3930
+ "minLength": 1,
3931
+ "maxLength": 23,
3932
+ "pattern": "^[a-zA-Z0-9_\\-]+$"
3933
+ },
3916
3934
  "render": {
3917
3935
  "default": "default",
3918
3936
  "enum": [
@@ -18087,6 +18105,49 @@
18087
18105
  "wrapper"
18088
18106
  ]
18089
18107
  },
18108
+ "ExternalAuthFunctionProvider": {
18109
+ "type": "object",
18110
+ "properties": {
18111
+ "provider": {
18112
+ "type": "string",
18113
+ "description": "A key referencing authentication provider."
18114
+ },
18115
+ "requiredScopes": {
18116
+ "type": "array",
18117
+ "items": {
18118
+ "type": "string"
18119
+ },
18120
+ "description": "An optional list of scopes the function requires."
18121
+ }
18122
+ },
18123
+ "required": [
18124
+ "provider"
18125
+ ]
18126
+ },
18127
+ "ExternalAuthFunctionProviders": {
18128
+ "type": "object",
18129
+ "description": "A list of the providers required by the function.",
18130
+ "properties": {
18131
+ "auth": {
18132
+ "type": "array",
18133
+ "description": "A list of keys or objects referencing authentication providers.",
18134
+ "items": {
18135
+ "oneOf": [
18136
+ {
18137
+ "type": "string",
18138
+ "description": "A key referencing authentication provider."
18139
+ },
18140
+ {
18141
+ "$ref": "#/definitions/ExternalAuthFunctionProvider"
18142
+ }
18143
+ ]
18144
+ }
18145
+ }
18146
+ },
18147
+ "required": [
18148
+ "auth"
18149
+ ]
18150
+ },
18090
18151
  "DisplayConditions": {
18091
18152
  "anyOf": [
18092
18153
  {
@@ -514,6 +514,7 @@ export interface Modules {
514
514
  [k: string]: unknown;
515
515
  };
516
516
  };
517
+ providers?: ExternalAuthFunctionProviders;
517
518
  key: ModuleKeySchema;
518
519
  [k: string]: unknown;
519
520
  },
@@ -534,6 +535,7 @@ export interface Modules {
534
535
  [k: string]: unknown;
535
536
  };
536
537
  };
538
+ providers?: ExternalAuthFunctionProviders;
537
539
  key: ModuleKeySchema;
538
540
  [k: string]: unknown;
539
541
  }[]
@@ -1745,7 +1747,6 @@ export interface Modules {
1745
1747
  };
1746
1748
  edit?:
1747
1749
  | {
1748
- display?: 'inline' | 'modal';
1749
1750
  resource: string;
1750
1751
  render?: 'default' | 'native';
1751
1752
  [k: string]: unknown;
@@ -1767,6 +1768,8 @@ export interface Modules {
1767
1768
  expression: string;
1768
1769
  [k: string]: unknown;
1769
1770
  };
1771
+ function?: string;
1772
+ resource?: string;
1770
1773
  render?: 'default' | 'native';
1771
1774
  parser?: {
1772
1775
  expression: string;
@@ -1806,7 +1809,6 @@ export interface Modules {
1806
1809
  };
1807
1810
  edit?:
1808
1811
  | {
1809
- display?: 'inline' | 'modal';
1810
1812
  resource: string;
1811
1813
  render?: 'default' | 'native';
1812
1814
  [k: string]: unknown;
@@ -1828,6 +1830,8 @@ export interface Modules {
1828
1830
  expression: string;
1829
1831
  [k: string]: unknown;
1830
1832
  };
1833
+ function?: string;
1834
+ resource?: string;
1831
1835
  render?: 'default' | 'native';
1832
1836
  parser?: {
1833
1837
  expression: string;
@@ -1866,7 +1870,6 @@ export interface Modules {
1866
1870
  };
1867
1871
  edit?:
1868
1872
  | {
1869
- display?: 'inline' | 'modal';
1870
1873
  resource: string;
1871
1874
  render?: 'default' | 'native';
1872
1875
  [k: string]: unknown;
@@ -1888,6 +1891,8 @@ export interface Modules {
1888
1891
  expression: string;
1889
1892
  [k: string]: unknown;
1890
1893
  };
1894
+ function?: string;
1895
+ resource?: string;
1891
1896
  render?: 'default' | 'native';
1892
1897
  parser?: {
1893
1898
  expression: string;
@@ -1927,7 +1932,6 @@ export interface Modules {
1927
1932
  };
1928
1933
  edit?:
1929
1934
  | {
1930
- display?: 'inline' | 'modal';
1931
1935
  resource: string;
1932
1936
  render?: 'default' | 'native';
1933
1937
  [k: string]: unknown;
@@ -1949,6 +1953,8 @@ export interface Modules {
1949
1953
  expression: string;
1950
1954
  [k: string]: unknown;
1951
1955
  };
1956
+ function?: string;
1957
+ resource?: string;
1952
1958
  render?: 'default' | 'native';
1953
1959
  parser?: {
1954
1960
  expression: string;
@@ -1982,7 +1988,6 @@ export interface Modules {
1982
1988
  readOnly?: boolean;
1983
1989
  edit?:
1984
1990
  | {
1985
- display?: 'inline' | 'modal';
1986
1991
  resource: string;
1987
1992
  render?: 'default' | 'native';
1988
1993
  [k: string]: unknown;
@@ -2024,6 +2029,8 @@ export interface Modules {
2024
2029
  render?: 'default' | 'native';
2025
2030
  [k: string]: unknown;
2026
2031
  };
2032
+ function?: string;
2033
+ resource?: string;
2027
2034
  render?: 'default' | 'native';
2028
2035
  parser?: {
2029
2036
  expression: string;
@@ -2056,7 +2063,6 @@ export interface Modules {
2056
2063
  readOnly?: boolean;
2057
2064
  edit?:
2058
2065
  | {
2059
- display?: 'inline' | 'modal';
2060
2066
  resource: string;
2061
2067
  render?: 'default' | 'native';
2062
2068
  [k: string]: unknown;
@@ -2098,6 +2104,8 @@ export interface Modules {
2098
2104
  render?: 'default' | 'native';
2099
2105
  [k: string]: unknown;
2100
2106
  };
2107
+ function?: string;
2108
+ resource?: string;
2101
2109
  render?: 'default' | 'native';
2102
2110
  parser?: {
2103
2111
  expression: string;
@@ -2129,7 +2137,6 @@ export interface Modules {
2129
2137
  readOnly?: boolean;
2130
2138
  edit?:
2131
2139
  | {
2132
- display?: 'inline' | 'modal';
2133
2140
  resource: string;
2134
2141
  render?: 'default' | 'native';
2135
2142
  [k: string]: unknown;
@@ -2171,6 +2178,8 @@ export interface Modules {
2171
2178
  render?: 'default' | 'native';
2172
2179
  [k: string]: unknown;
2173
2180
  };
2181
+ function?: string;
2182
+ resource?: string;
2174
2183
  render?: 'default' | 'native';
2175
2184
  parser?: {
2176
2185
  expression: string;
@@ -2203,7 +2212,6 @@ export interface Modules {
2203
2212
  readOnly?: boolean;
2204
2213
  edit?:
2205
2214
  | {
2206
- display?: 'inline' | 'modal';
2207
2215
  resource: string;
2208
2216
  render?: 'default' | 'native';
2209
2217
  [k: string]: unknown;
@@ -2245,6 +2253,8 @@ export interface Modules {
2245
2253
  render?: 'default' | 'native';
2246
2254
  [k: string]: unknown;
2247
2255
  };
2256
+ function?: string;
2257
+ resource?: string;
2248
2258
  render?: 'default' | 'native';
2249
2259
  parser?: {
2250
2260
  expression: string;
@@ -7642,6 +7652,27 @@ export interface RuntimeWrapper {
7642
7652
  };
7643
7653
  [k: string]: unknown;
7644
7654
  }
7655
+ /**
7656
+ * A list of the providers required by the function.
7657
+ */
7658
+ export interface ExternalAuthFunctionProviders {
7659
+ /**
7660
+ * A list of keys or objects referencing authentication providers.
7661
+ */
7662
+ auth: (string | ExternalAuthFunctionProvider)[];
7663
+ [k: string]: unknown;
7664
+ }
7665
+ export interface ExternalAuthFunctionProvider {
7666
+ /**
7667
+ * A key referencing authentication provider.
7668
+ */
7669
+ provider: string;
7670
+ /**
7671
+ * An optional list of scopes the function requires.
7672
+ */
7673
+ requiredScopes?: string[];
7674
+ [k: string]: unknown;
7675
+ }
7645
7676
  /**
7646
7677
  *
7647
7678
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "6.1.0-next.1-experimental-5e2eb7f",
3
+ "version": "6.1.0",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {