@forge/manifest 13.8.0 → 13.8.1-next.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,5 +1,11 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 13.8.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 5d8a857: Update manifest definitions
8
+
3
9
  ## 13.8.0
4
10
 
5
11
  ### Minor Changes
@@ -1017,10 +1017,31 @@
1017
1017
  "title": "cleanup",
1018
1018
  "type": "boolean"
1019
1019
  },
1020
+ "$defs": {
1021
+ "description": "Values shared by local references within this function extension. A value cannot itself be a reference.",
1022
+ "type": "object",
1023
+ "propertyNames": {
1024
+ "type": "string",
1025
+ "pattern": "^[A-Za-z0-9._-]+$"
1026
+ },
1027
+ "additionalProperties": {
1028
+ "not": {
1029
+ "type": "object",
1030
+ "required": [
1031
+ "$ref"
1032
+ ]
1033
+ }
1034
+ }
1035
+ },
1020
1036
  "outboundAuthContainerId": {
1021
- "maxLength": 1024,
1022
- "minLength": 1,
1023
- "type": "string"
1037
+ "oneOf": [
1038
+ {
1039
+ "$ref": "#/definitions/OutboundAuthContainerId"
1040
+ },
1041
+ {
1042
+ "$ref": "#/definitions/LocalRef"
1043
+ }
1044
+ ]
1024
1045
  },
1025
1046
  "functions": {
1026
1047
  "description": "A collection where the key represents the region name and the value contains the metadata of the function, including the lambda ARN and Runtime.",
@@ -1030,6 +1051,11 @@
1030
1051
  "properties": {
1031
1052
  "function": {
1032
1053
  "type": "object",
1054
+ "not": {
1055
+ "required": [
1056
+ "$ref"
1057
+ ]
1058
+ },
1033
1059
  "properties": {
1034
1060
  "name": {
1035
1061
  "type": "string"
@@ -1043,6 +1069,9 @@
1043
1069
  },
1044
1070
  {
1045
1071
  "$ref": "#/definitions/RuntimeWrapper"
1072
+ },
1073
+ {
1074
+ "$ref": "#/definitions/LocalRef"
1046
1075
  }
1047
1076
  ]
1048
1077
  }
@@ -1050,7 +1079,14 @@
1050
1079
  }
1051
1080
  },
1052
1081
  "providers": {
1053
- "$ref": "#/definitions/ExternalAuthFunctionProviders"
1082
+ "oneOf": [
1083
+ {
1084
+ "$ref": "#/definitions/ExternalAuthFunctionProviders"
1085
+ },
1086
+ {
1087
+ "$ref": "#/definitions/LocalRef"
1088
+ }
1089
+ ]
1054
1090
  },
1055
1091
  "timeoutSeconds": {
1056
1092
  "description": "The maximum amount of time the function is allowed to run, in seconds. Must be between 1 and 900.",
@@ -35416,6 +35452,11 @@
35416
35452
  },
35417
35453
  "RuntimeLayer": {
35418
35454
  "type": "object",
35455
+ "not": {
35456
+ "required": [
35457
+ "$ref"
35458
+ ]
35459
+ },
35419
35460
  "properties": {
35420
35461
  "identifier": {
35421
35462
  "type": "string"
@@ -35442,6 +35483,11 @@
35442
35483
  },
35443
35484
  "RuntimeWrapper": {
35444
35485
  "type": "object",
35486
+ "not": {
35487
+ "required": [
35488
+ "$ref"
35489
+ ]
35490
+ },
35445
35491
  "properties": {
35446
35492
  "identifier": {
35447
35493
  "type": "string"
@@ -35463,6 +35509,25 @@
35463
35509
  "wrapper"
35464
35510
  ]
35465
35511
  },
35512
+ "OutboundAuthContainerId": {
35513
+ "maxLength": 1024,
35514
+ "minLength": 1,
35515
+ "type": "string"
35516
+ },
35517
+ "LocalRef": {
35518
+ "description": "A named reference to a value in this extension's $defs.",
35519
+ "type": "object",
35520
+ "additionalProperties": false,
35521
+ "properties": {
35522
+ "$ref": {
35523
+ "type": "string",
35524
+ "pattern": "^[A-Za-z0-9._-]+$"
35525
+ }
35526
+ },
35527
+ "required": [
35528
+ "$ref"
35529
+ ]
35530
+ },
35466
35531
  "ExternalAuthFunctionProvider": {
35467
35532
  "type": "object",
35468
35533
  "additionalProperties": false,
@@ -35490,6 +35555,11 @@
35490
35555
  "ExternalAuthFunctionProviders": {
35491
35556
  "type": "object",
35492
35557
  "description": "A list of the providers required by the function.",
35558
+ "not": {
35559
+ "required": [
35560
+ "$ref"
35561
+ ]
35562
+ },
35493
35563
  "properties": {
35494
35564
  "auth": {
35495
35565
  "type": "array",
@@ -214,6 +214,7 @@ export type Handler = string;
214
214
  * Whether this function is used for GDPR cleanup (default false). If set to true, this function has a higher rate limit for ESS list queries.
215
215
  */
216
216
  export type Cleanup = boolean;
217
+ export type OutboundAuthContainerId = string;
217
218
  /**
218
219
  * The maximum amount of time the function is allowed to run, in seconds. Must be between 1 and 900.
219
220
  */
@@ -1651,7 +1652,15 @@ export interface Modules {
1651
1652
  {
1652
1653
  handler: Handler;
1653
1654
  cleanup?: Cleanup;
1654
- outboundAuthContainerId?: string;
1655
+ /**
1656
+ * Values shared by local references within this function extension. A value cannot itself be a reference.
1657
+ */
1658
+ $defs?: {
1659
+ [k: string]: {
1660
+ [k: string]: unknown;
1661
+ };
1662
+ };
1663
+ outboundAuthContainerId?: OutboundAuthContainerId | LocalRef;
1655
1664
  /**
1656
1665
  * A collection where the key represents the region name and the value contains the metadata of the function, including the lambda ARN and Runtime.
1657
1666
  */
@@ -1661,11 +1670,11 @@ export interface Modules {
1661
1670
  name?: string;
1662
1671
  [k: string]: unknown;
1663
1672
  };
1664
- runtime?: RuntimeLayer | RuntimeWrapper;
1673
+ runtime?: RuntimeLayer | RuntimeWrapper | LocalRef;
1665
1674
  [k: string]: unknown;
1666
1675
  };
1667
1676
  };
1668
- providers?: ExternalAuthFunctionProviders;
1677
+ providers?: ExternalAuthFunctionProviders | LocalRef;
1669
1678
  timeoutSeconds?: TimeoutSeconds;
1670
1679
  runtime?: Runtime1;
1671
1680
  key: ModuleKeySchema;
@@ -1673,7 +1682,15 @@ export interface Modules {
1673
1682
  ...{
1674
1683
  handler: Handler;
1675
1684
  cleanup?: Cleanup;
1676
- outboundAuthContainerId?: string;
1685
+ /**
1686
+ * Values shared by local references within this function extension. A value cannot itself be a reference.
1687
+ */
1688
+ $defs?: {
1689
+ [k: string]: {
1690
+ [k: string]: unknown;
1691
+ };
1692
+ };
1693
+ outboundAuthContainerId?: OutboundAuthContainerId | LocalRef;
1677
1694
  /**
1678
1695
  * A collection where the key represents the region name and the value contains the metadata of the function, including the lambda ARN and Runtime.
1679
1696
  */
@@ -1683,11 +1700,11 @@ export interface Modules {
1683
1700
  name?: string;
1684
1701
  [k: string]: unknown;
1685
1702
  };
1686
- runtime?: RuntimeLayer | RuntimeWrapper;
1703
+ runtime?: RuntimeLayer | RuntimeWrapper | LocalRef;
1687
1704
  [k: string]: unknown;
1688
1705
  };
1689
1706
  };
1690
- providers?: ExternalAuthFunctionProviders;
1707
+ providers?: ExternalAuthFunctionProviders | LocalRef;
1691
1708
  timeoutSeconds?: TimeoutSeconds;
1692
1709
  runtime?: Runtime1;
1693
1710
  key: ModuleKeySchema;
@@ -30220,6 +30237,12 @@ export interface Filter3 {
30220
30237
  export interface Filter4 {
30221
30238
  appIsLicensed: AppIsLicensed;
30222
30239
  }
30240
+ /**
30241
+ * A named reference to a value in this extension's $defs.
30242
+ */
30243
+ export interface LocalRef {
30244
+ $ref: string;
30245
+ }
30223
30246
  export interface RuntimeLayer {
30224
30247
  identifier: string;
30225
30248
  layer: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "13.8.0",
3
+ "version": "13.8.1-next.0",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",