@forge/manifest 9.5.0-next.4 → 9.5.0-next.6
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 +13 -0
- package/out/schema/basic-manifest-schema.json +0 -7
- package/out/schema/basic-manifest.d.ts +1 -6
- package/out/schema/manifest-schema.json +60 -7
- package/out/schema/manifest.d.ts +39 -6
- package/out/types/module-types.d.ts +1 -0
- package/out/types/module-types.d.ts.map +1 -1
- package/out/types/module-types.js +1 -0
- package/out/validators/snapshot-validator.d.ts.map +1 -1
- package/out/validators/snapshot-validator.js +0 -12
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @forge/manifest
|
|
2
2
|
|
|
3
|
+
## 9.5.0-next.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a7bd152: Adding support for new module type core:apiroute
|
|
8
|
+
- 8a548ce: Update manifest definitions
|
|
9
|
+
|
|
10
|
+
## 9.5.0-next.5
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 9f050ff: Removed support for Sandbox Runtime and Sanpshots
|
|
15
|
+
|
|
3
16
|
## 9.5.0-next.4
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
|
@@ -20,18 +20,11 @@
|
|
|
20
20
|
"additionalProperties": false,
|
|
21
21
|
"description": "Options related to the Forge Javascript runtime.",
|
|
22
22
|
"properties": {
|
|
23
|
-
"snapshots": {
|
|
24
|
-
"default": true,
|
|
25
|
-
"description": "Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the \"sandbox\" runtime.",
|
|
26
|
-
"title": "snapshots",
|
|
27
|
-
"type": "boolean"
|
|
28
|
-
},
|
|
29
23
|
"name": {
|
|
30
24
|
"description": "Name of the runtime to use for app execution.",
|
|
31
25
|
"title": "name",
|
|
32
26
|
"type": "string",
|
|
33
27
|
"enum": [
|
|
34
|
-
"sandbox",
|
|
35
28
|
"nodejs18.x",
|
|
36
29
|
"nodejs20.x",
|
|
37
30
|
"nodejs22.x"
|
|
@@ -13,14 +13,10 @@ export type Description = string;
|
|
|
13
13
|
* A unique Atlassian Resource Identifier (ari) assigned to your app.
|
|
14
14
|
*/
|
|
15
15
|
export type Id = string;
|
|
16
|
-
/**
|
|
17
|
-
* Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the "sandbox" runtime.
|
|
18
|
-
*/
|
|
19
|
-
export type Snapshots = boolean;
|
|
20
16
|
/**
|
|
21
17
|
* Name of the runtime to use for app execution.
|
|
22
18
|
*/
|
|
23
|
-
export type Name = '
|
|
19
|
+
export type Name = 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x';
|
|
24
20
|
/**
|
|
25
21
|
* Lambda architecture, its value can be either 'x86_64' or 'arm64'. Default value is 'x86_64'.
|
|
26
22
|
*/
|
|
@@ -217,7 +213,6 @@ export interface App {
|
|
|
217
213
|
* Options related to the Forge Javascript runtime.
|
|
218
214
|
*/
|
|
219
215
|
export interface Runtime {
|
|
220
|
-
snapshots?: Snapshots;
|
|
221
216
|
name: Name;
|
|
222
217
|
architecture?: Architecture;
|
|
223
218
|
memoryMB?: MemoryMB;
|
|
@@ -20,18 +20,11 @@
|
|
|
20
20
|
"additionalProperties": false,
|
|
21
21
|
"description": "Options related to the Forge Javascript runtime.",
|
|
22
22
|
"properties": {
|
|
23
|
-
"snapshots": {
|
|
24
|
-
"default": true,
|
|
25
|
-
"description": "Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the \"sandbox\" runtime.",
|
|
26
|
-
"title": "snapshots",
|
|
27
|
-
"type": "boolean"
|
|
28
|
-
},
|
|
29
23
|
"name": {
|
|
30
24
|
"description": "Name of the runtime to use for app execution.",
|
|
31
25
|
"title": "name",
|
|
32
26
|
"type": "string",
|
|
33
27
|
"enum": [
|
|
34
|
-
"sandbox",
|
|
35
28
|
"nodejs18.x",
|
|
36
29
|
"nodejs20.x",
|
|
37
30
|
"nodejs22.x"
|
|
@@ -634,6 +627,66 @@
|
|
|
634
627
|
},
|
|
635
628
|
"minItems": 1
|
|
636
629
|
},
|
|
630
|
+
"apiRoute": {
|
|
631
|
+
"type": "array",
|
|
632
|
+
"items": {
|
|
633
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
634
|
+
"type": "object",
|
|
635
|
+
"additionalProperties": false,
|
|
636
|
+
"properties": {
|
|
637
|
+
"path": {
|
|
638
|
+
"type": "string",
|
|
639
|
+
"description": "The URL path for the API endpoint",
|
|
640
|
+
"pattern": "^/[a-zA-Z0-9]+(/[a-zA-Z0-9]+|/\\*)*$",
|
|
641
|
+
"minLength": 1,
|
|
642
|
+
"maxLength": 255
|
|
643
|
+
},
|
|
644
|
+
"operation": {
|
|
645
|
+
"type": "string",
|
|
646
|
+
"description": "HTTP method for the API endpoint",
|
|
647
|
+
"enum": [
|
|
648
|
+
"GET",
|
|
649
|
+
"POST",
|
|
650
|
+
"PUT",
|
|
651
|
+
"DELETE",
|
|
652
|
+
"PATCH"
|
|
653
|
+
]
|
|
654
|
+
},
|
|
655
|
+
"function": {
|
|
656
|
+
"$ref": "#/definitions/ExtensionKey",
|
|
657
|
+
"description": "The key of the function that should be invoked for this API route",
|
|
658
|
+
"title": "function",
|
|
659
|
+
"type": "string"
|
|
660
|
+
},
|
|
661
|
+
"accept": {
|
|
662
|
+
"type": "array",
|
|
663
|
+
"description": "List of accepted content types for the API route",
|
|
664
|
+
"items": {
|
|
665
|
+
"type": "string",
|
|
666
|
+
"enum": [
|
|
667
|
+
"application/json"
|
|
668
|
+
]
|
|
669
|
+
},
|
|
670
|
+
"minItems": 1
|
|
671
|
+
},
|
|
672
|
+
"key": {
|
|
673
|
+
"$ref": "#/definitions/ModuleKeySchema"
|
|
674
|
+
}
|
|
675
|
+
},
|
|
676
|
+
"required": [
|
|
677
|
+
"path",
|
|
678
|
+
"operation",
|
|
679
|
+
"function",
|
|
680
|
+
"key"
|
|
681
|
+
],
|
|
682
|
+
"not": {
|
|
683
|
+
"required": [
|
|
684
|
+
"unlicensedAccess"
|
|
685
|
+
]
|
|
686
|
+
}
|
|
687
|
+
},
|
|
688
|
+
"minItems": 1
|
|
689
|
+
},
|
|
637
690
|
"consumer": {
|
|
638
691
|
"type": "array",
|
|
639
692
|
"items": {
|
package/out/schema/manifest.d.ts
CHANGED
|
@@ -13,14 +13,10 @@ export type Description = string;
|
|
|
13
13
|
* A unique Atlassian Resource Identifier (ari) assigned to your app.
|
|
14
14
|
*/
|
|
15
15
|
export type Id = string;
|
|
16
|
-
/**
|
|
17
|
-
* Whether a snapshot of the app is taken at deployment time. Default value of true. This option only takes effect with the "sandbox" runtime.
|
|
18
|
-
*/
|
|
19
|
-
export type Snapshots = boolean;
|
|
20
16
|
/**
|
|
21
17
|
* Name of the runtime to use for app execution.
|
|
22
18
|
*/
|
|
23
|
-
export type Name = '
|
|
19
|
+
export type Name = 'nodejs18.x' | 'nodejs20.x' | 'nodejs22.x';
|
|
24
20
|
/**
|
|
25
21
|
* Lambda architecture, its value can be either 'x86_64' or 'arm64'. Default value is 'x86_64'.
|
|
26
22
|
*/
|
|
@@ -162,6 +158,10 @@ export type ExtensionKey = string;
|
|
|
162
158
|
export type ResponseOptions = {
|
|
163
159
|
[k: string]: unknown;
|
|
164
160
|
};
|
|
161
|
+
/**
|
|
162
|
+
* The key of the function that should be invoked for this API route
|
|
163
|
+
*/
|
|
164
|
+
export type Function2 = string;
|
|
165
165
|
/**
|
|
166
166
|
* The name of the queue that this consumer listens to.
|
|
167
167
|
*/
|
|
@@ -918,7 +918,6 @@ export interface App {
|
|
|
918
918
|
* Options related to the Forge Javascript runtime.
|
|
919
919
|
*/
|
|
920
920
|
export interface Runtime {
|
|
921
|
-
snapshots?: Snapshots;
|
|
922
921
|
name: Name;
|
|
923
922
|
architecture?: Architecture;
|
|
924
923
|
memoryMB?: MemoryMB;
|
|
@@ -1048,6 +1047,40 @@ export interface Modules {
|
|
|
1048
1047
|
}
|
|
1049
1048
|
)[]
|
|
1050
1049
|
];
|
|
1050
|
+
apiRoute?: [
|
|
1051
|
+
{
|
|
1052
|
+
/**
|
|
1053
|
+
* The URL path for the API endpoint
|
|
1054
|
+
*/
|
|
1055
|
+
path: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* HTTP method for the API endpoint
|
|
1058
|
+
*/
|
|
1059
|
+
operation: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
1060
|
+
function: Function2;
|
|
1061
|
+
/**
|
|
1062
|
+
* List of accepted content types for the API route
|
|
1063
|
+
*/
|
|
1064
|
+
accept?: ['application/json', ...'application/json'[]];
|
|
1065
|
+
key: ModuleKeySchema;
|
|
1066
|
+
},
|
|
1067
|
+
...{
|
|
1068
|
+
/**
|
|
1069
|
+
* The URL path for the API endpoint
|
|
1070
|
+
*/
|
|
1071
|
+
path: string;
|
|
1072
|
+
/**
|
|
1073
|
+
* HTTP method for the API endpoint
|
|
1074
|
+
*/
|
|
1075
|
+
operation: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
|
|
1076
|
+
function: Function2;
|
|
1077
|
+
/**
|
|
1078
|
+
* List of accepted content types for the API route
|
|
1079
|
+
*/
|
|
1080
|
+
accept?: ['application/json', ...'application/json'[]];
|
|
1081
|
+
key: ModuleKeySchema;
|
|
1082
|
+
}[]
|
|
1083
|
+
];
|
|
1051
1084
|
consumer?: [
|
|
1052
1085
|
(
|
|
1053
1086
|
| {
|
|
@@ -2,6 +2,7 @@ export declare enum AllModuleTypes {
|
|
|
2
2
|
CoreFunction = "core:function",
|
|
3
3
|
CoreTrigger = "core:trigger",
|
|
4
4
|
CoreWebTrigger = "core:webtrigger",
|
|
5
|
+
CoreAPIRoute = "core:apiRoute",
|
|
5
6
|
CoreEvent = "core:event",
|
|
6
7
|
CoreConsumer = "core:consumer",
|
|
7
8
|
CoreScheduledTrigger = "core:scheduledTrigger",
|
|
@@ -1 +1 @@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ypes["CoreFunction"] = "core:function";
|
|
7
7
|
AllModuleTypes["CoreTrigger"] = "core:trigger";
|
|
8
8
|
AllModuleTypes["CoreWebTrigger"] = "core:webtrigger";
|
|
9
|
+
AllModuleTypes["CoreAPIRoute"] = "core:apiRoute";
|
|
9
10
|
AllModuleTypes["CoreEvent"] = "core:event";
|
|
10
11
|
AllModuleTypes["CoreConsumer"] = "core:consumer";
|
|
11
12
|
AllModuleTypes["CoreScheduledTrigger"] = "core:scheduledTrigger";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot-validator.d.ts","sourceRoot":"","sources":["../../src/validators/snapshot-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"snapshot-validator.d.ts","sourceRoot":"","sources":["../../src/validators/snapshot-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAmB,MAAM,UAAU,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBAAa,iBACX,YAAW,kBAAkB,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,EAAE,cAAc,CAAC;IAEnF,QAAQ,CACZ,QAAQ,EAAE,cAAc,CAAC,cAAc,CAAC,GAAG,SAAS,GACnD,OAAO,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC;CAkBrD"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SnapshotValidator = void 0;
|
|
4
|
-
const text_1 = require("../text");
|
|
5
|
-
const handleRedundantSnapshot = () => {
|
|
6
|
-
return {
|
|
7
|
-
message: text_1.errors.app.snapshotEnabledOnNewRuntime(),
|
|
8
|
-
reference: text_1.References.SnapshotIgnored,
|
|
9
|
-
level: 'warning'
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
4
|
class SnapshotValidator {
|
|
13
5
|
async validate(manifest) {
|
|
14
6
|
if (!manifest?.typedContent) {
|
|
@@ -18,10 +10,6 @@ class SnapshotValidator {
|
|
|
18
10
|
};
|
|
19
11
|
}
|
|
20
12
|
const validationErrors = [];
|
|
21
|
-
if (manifest.typedContent.app.runtime?.snapshots === true &&
|
|
22
|
-
(manifest.typedContent.app.runtime?.name ?? 'sandbox') !== 'sandbox') {
|
|
23
|
-
validationErrors.push(handleRedundantSnapshot());
|
|
24
|
-
}
|
|
25
13
|
const warningLevel = validationErrors.filter((e) => e.level === 'warning');
|
|
26
14
|
return {
|
|
27
15
|
success: validationErrors.length === warningLevel.length,
|