@forge/manifest 4.10.0 → 4.11.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,17 @@
1
1
  # @forge/manifest
2
2
 
3
+ ## 4.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c71f31a: Add the core:endpoint module support in the forge cli
8
+
9
+ ## 4.11.0-next.0
10
+
11
+ ### Minor Changes
12
+
13
+ - c71f31a: Add the core:endpoint module support in the forge cli
14
+
3
15
  ## 4.10.0
4
16
 
5
17
  ### Minor Changes
@@ -442,6 +442,79 @@
442
442
  },
443
443
  "minItems": 1
444
444
  },
445
+ "endpoint": {
446
+ "type": "array",
447
+ "items": {
448
+ "$schema": "http://json-schema.org/draft-07/schema#",
449
+ "additionalProperties": true,
450
+ "description": "A Forge Remote endpoint definition.",
451
+ "properties": {
452
+ "remote": {
453
+ "description": "key for the remotes definition",
454
+ "maxLength": 255,
455
+ "minLength": 1,
456
+ "pattern": "^[a-zA-Z0-9-_]+$",
457
+ "type": "string"
458
+ },
459
+ "route": {
460
+ "type": "object",
461
+ "properties": {
462
+ "path": {
463
+ "type": "string",
464
+ "description": "Path of the remote endpoint to invoke"
465
+ }
466
+ },
467
+ "required": [
468
+ "path"
469
+ ]
470
+ },
471
+ "auth": {
472
+ "type": "object",
473
+ "properties": {
474
+ "appUserToken": {
475
+ "type": "object",
476
+ "required": [
477
+ "enabled"
478
+ ],
479
+ "properties": {
480
+ "enabled": {
481
+ "type": "boolean",
482
+ "description": "Enable sharing user token with the remote"
483
+ }
484
+ }
485
+ },
486
+ "appSystemToken": {
487
+ "type": "object",
488
+ "required": [
489
+ "enabled"
490
+ ],
491
+ "properties": {
492
+ "enabled": {
493
+ "type": "boolean",
494
+ "description": "Enable sharing app token with the remote"
495
+ }
496
+ }
497
+ }
498
+ }
499
+ },
500
+ "key": {
501
+ "$ref": "#/definitions/ModuleKeySchema"
502
+ }
503
+ },
504
+ "required": [
505
+ "route",
506
+ "remote",
507
+ "key"
508
+ ],
509
+ "type": "object",
510
+ "not": {
511
+ "required": [
512
+ "unlicensedAccess"
513
+ ]
514
+ }
515
+ },
516
+ "minItems": 1
517
+ },
445
518
  "macro": {
446
519
  "type": "array",
447
520
  "items": {
@@ -435,6 +435,72 @@ export interface Modules {
435
435
  [k: string]: unknown;
436
436
  }[]
437
437
  ];
438
+ endpoint?: [
439
+ {
440
+ /**
441
+ * key for the remotes definition
442
+ */
443
+ remote: string;
444
+ route: {
445
+ /**
446
+ * Path of the remote endpoint to invoke
447
+ */
448
+ path: string;
449
+ [k: string]: unknown;
450
+ };
451
+ auth?: {
452
+ appUserToken?: {
453
+ /**
454
+ * Enable sharing user token with the remote
455
+ */
456
+ enabled: boolean;
457
+ [k: string]: unknown;
458
+ };
459
+ appSystemToken?: {
460
+ /**
461
+ * Enable sharing app token with the remote
462
+ */
463
+ enabled: boolean;
464
+ [k: string]: unknown;
465
+ };
466
+ [k: string]: unknown;
467
+ };
468
+ key: ModuleKeySchema;
469
+ [k: string]: unknown;
470
+ },
471
+ ...{
472
+ /**
473
+ * key for the remotes definition
474
+ */
475
+ remote: string;
476
+ route: {
477
+ /**
478
+ * Path of the remote endpoint to invoke
479
+ */
480
+ path: string;
481
+ [k: string]: unknown;
482
+ };
483
+ auth?: {
484
+ appUserToken?: {
485
+ /**
486
+ * Enable sharing user token with the remote
487
+ */
488
+ enabled: boolean;
489
+ [k: string]: unknown;
490
+ };
491
+ appSystemToken?: {
492
+ /**
493
+ * Enable sharing app token with the remote
494
+ */
495
+ enabled: boolean;
496
+ [k: string]: unknown;
497
+ };
498
+ [k: string]: unknown;
499
+ };
500
+ key: ModuleKeySchema;
501
+ [k: string]: unknown;
502
+ }[]
503
+ ];
438
504
  macro?: [
439
505
  (
440
506
  | {
@@ -4,6 +4,7 @@ export declare enum AllModuleTypes {
4
4
  CoreWebTrigger = "core:webtrigger",
5
5
  CoreConsumer = "core:consumer",
6
6
  CoreScheduledTrigger = "core:scheduledTrigger",
7
+ CoreEndpoint = "core:endpoint",
7
8
  XenMacro = "xen:macro",
8
9
  ConfluenceContentAction = "confluence:contentAction",
9
10
  ConfluenceContentBylineItem = "confluence:contentBylineItem",
@@ -1 +1 @@
1
- {"version":3,"file":"module-types.d.ts","sourceRoot":"","sources":["../../src/types/module-types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,YAAY,kBAAkB;IAC9B,WAAW,iBAAiB;IAC5B,cAAc,oBAAoB;IAClC,YAAY,kBAAkB;IAC9B,oBAAoB,0BAA0B;IAC9C,QAAQ,cAAc;IACtB,uBAAuB,6BAA6B;IACpD,2BAA2B,iCAAiC;IAC5D,qBAAqB,2BAA2B;IAChD,uBAAuB,6BAA6B;IACpD,wBAAwB,8BAA8B;IACtD,oBAAoB,0BAA0B;IAC9C,sBAAsB,4BAA4B;IAClD,mBAAmB,yBAAyB;IAC5C,uBAAuB,6BAA6B;IACpD,kBAAkB,wBAAwB;IAC1C,qBAAqB,2BAA2B;IAChD,qBAAqB,2BAA2B;IAChD,wBAAwB,8BAA8B;IACtD,eAAe,qBAAqB;IACpC,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,iBAAiB,uBAAuB;IACxC,mBAAmB,yBAAyB;IAC5C,eAAe,qBAAqB;IACpC,gBAAgB,sBAAsB;IACtC,cAAc,oBAAoB;IAClC,aAAa,mBAAmB;IAChC,eAAe,qBAAqB;IACpC,uBAAuB,6BAA6B;IACpD,cAAc,oBAAoB;IAClC,mBAAmB,yBAAyB;IAC5C,6BAA6B,mCAAmC;IAChE,6BAA6B,mCAAmC;IAChE,oBAAoB,0BAA0B;IAC9C,qBAAqB,2BAA2B;IAChD,eAAe,qBAAqB;IAEpC,gBAAgB,sBAAsB;IACtC,oBAAoB,0BAA0B;IAC9C,iBAAiB,uBAAuB;IACxC,eAAe,qBAAqB;IACpC,mBAAmB,yBAAyB;IAE5C,8BAA8B,oCAAoC;IAClE,w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gCAAgC;IACzD,0BAA0B,iCAAiC;IAC3D,4BAA4B,mCAAmC;IAC/D,yBAAyB,gCAAgC;IACzD,wBAAwB,+BAA+B;IACvD,kBAAkB,yBAAyB;IAC3C,gCAAgC,uCAAuC;IACvE,qCAAqC,4CAA4C;IACjF,8BAA8B,qCAAqC;IACnE,+BAA+B,sCAAsC;IACrE,sCAAsC,6CAA6C;IACnF,4BAA4B,mCAAmC;IAC/D,6BAA6B,oCAAoC;IACjE,yBAAyB,gCAAgC;IACzD,2BAA2B,kCAAkC;IAC7D,iCAAiC,wCAAwC;IACzE,sBAAsB,6BAA6B;IACnD,iCAAiC,wCAAwC;IACzE,oCAAoC,2CAA2C;IAC/E,iCAAiC,wCAAwC;IACzE,0BAA0B,iCAAiC;IAC3D,oBAAoB,2BAA2B;IAC/C,sBAAsB,6BAA6B;IACnD,mBAAmB,0BAA0B;IAC7C,0BAA0B,iCAAiC;IAC3D,8BAA8B,uBAAuB;IACrD,6BAA6B,sBAAsB;IACnD,6BAA6B,sBAAsB;IACnD,gCAAgC,yBAAyB;IACzD,wCAAwC,iCAAiC;IACzE,+BAA+B,wBAAwB;IACvD,2BAA2B,oBAAoB;CAChD;AAED,eAAO,MAAM,iBAAiB,kBAAgC,CAAC;AAE/D,eAAO,MAAM,uBAAuB,UAAwE,CAAC"}
@@ -8,6 +8,7 @@ var AllModuleTypes;
8
8
  AllModuleTypes["CoreWebTrigger"] = "core:webtrigger";
9
9
  AllModuleTypes["CoreConsumer"] = "core:consumer";
10
10
  AllModuleTypes["CoreScheduledTrigger"] = "core:scheduledTrigger";
11
+ AllModuleTypes["CoreEndpoint"] = "core:endpoint";
11
12
  AllModuleTypes["XenMacro"] = "xen:macro";
12
13
  AllModuleTypes["ConfluenceContentAction"] = "confluence:contentAction";
13
14
  AllModuleTypes["ConfluenceContentBylineItem"] = "confluence:contentBylineItem";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/manifest",
3
- "version": "4.10.0",
3
+ "version": "4.11.0",
4
4
  "description": "Definitions and validations of the Forge manifest",
5
5
  "main": "out/index.js",
6
6
  "scripts": {