npm package diff
Package: @forge/manifest
Versions: 9.1.0-next.0 - 9.1.0-next.1
File: package/out/schema/manifest.d.ts
Index: package/out/schema/manifest.d.ts
===================================================================
--- package/out/schema/manifest.d.ts
+++ package/out/schema/manifest.d.ts
@@ -148,8 +148,21 @@
/**
* The key of the function that should be invoked for this webtrigger.
*/
export type Function1 = string;
+/**
+ * Response options for the webtrigger module.
+ */
+export type Response = {
+ [k: string]: unknown;
+};
+/**
+ * The key of the service that should be invoked for this webtrigger.
+ */
+export type ExtensionKey = string;
+export type ResponseOptions = {
+ [k: string]: unknown;
+};
export type Queue = string;
export type Foo = string;
/**
* The key of the function that should be invoked for this scheduledTrigger.
@@ -971,30 +984,36 @@
}
)[]
];
webtrigger?: [
- {
- function: Function1;
- /**
- * Response options for the webtrigger module.
- */
- response?: {
- [k: string]: unknown;
- };
- key: ModuleKeySchema;
- [k: string]: unknown;
- },
- ...{
- function: Function1;
- /**
- * Response options for the webtrigger module.
- */
- response?: {
- [k: string]: unknown;
- };
- key: ModuleKeySchema;
- [k: string]: unknown;
- }[]
+ (
+ | {
+ function: Function1;
+ response?: Response;
+ key: ModuleKeySchema;
+ [k: string]: unknown;
+ }
+ | {
+ endpoint: ExtensionKey;
+ response?: ResponseOptions;
+ key: ModuleKeySchema;
+ [k: string]: unknown;
+ }
+ ),
+ ...(
+ | {
+ function: Function1;
+ response?: Response;
+ key: ModuleKeySchema;
+ [k: string]: unknown;
+ }
+ | {
+ endpoint: ExtensionKey;
+ response?: ResponseOptions;
+ key: ModuleKeySchema;
+ [k: string]: unknown;
+ }
+ )[]
];
consumer?: [
{
queue: Queue;
@@ -1123,72 +1142,52 @@
}
)[]
];
endpoint?: [
- {
- /**
- * key for the remotes definition
- */
- remote: string;
- route?: {
- /**
- * Path of the remote endpoint to invoke
- */
- path: string;
- [k: string]: unknown;
- };
- auth?: {
- appUserToken?: {
+ (
+ | {
/**
- * Enable sharing user token with the remote
+ * key for the remotes definition
*/
- enabled: boolean;
+ remote: string;
+ route?: EndpointRoute;
+ auth?: EndpointAuth;
+ key: ModuleKeySchema;
[k: string]: unknown;
- };
- appSystemToken?: {
+ }
+ | {
/**
- * Enable sharing app token with the remote
+ * key for the service definition
*/
- enabled: boolean;
+ service: string;
+ route?: EndpointRoute;
+ auth?: EndpointAuth;
+ key: ModuleKeySchema;
[k: string]: unknown;
- };
- [k: string]: unknown;
- };
- key: ModuleKeySchema;
- [k: string]: unknown;
- },
- ...{
- /**
- * key for the remotes definition
- */
- remote: string;
- route?: {
- /**
- * Path of the remote endpoint to invoke
- */
- path: string;
- [k: string]: unknown;
- };
- auth?: {
- appUserToken?: {
+ }
+ ),
+ ...(
+ | {
/**
- * Enable sharing user token with the remote
+ * key for the remotes definition
*/
- enabled: boolean;
+ remote: string;
+ route?: EndpointRoute;
+ auth?: EndpointAuth;
+ key: ModuleKeySchema;
[k: string]: unknown;
- };
- appSystemToken?: {
+ }
+ | {
/**
- * Enable sharing app token with the remote
+ * key for the service definition
*/
- enabled: boolean;
+ service: string;
+ route?: EndpointRoute;
+ auth?: EndpointAuth;
+ key: ModuleKeySchema;
[k: string]: unknown;
- };
- [k: string]: unknown;
- };
- key: ModuleKeySchema;
- [k: string]: unknown;
- }[]
+ }
+ )[]
];
remote?: [
{
regionBaseUrls?: {
@@ -12217,8 +12216,32 @@
*/
export interface Runtime1 {
memoryMB?: MemoryMB1;
}
+export interface EndpointRoute {
+ /**
+ * Path of the remote endpoint to invoke
+ */
+ path: string;
+ [k: string]: unknown;
+}
+export interface EndpointAuth {
+ appUserToken?: {
+ /**
+ * Enable sharing user token with the remote
+ */
+ enabled: boolean;
+ [k: string]: unknown;
+ };
+ appSystemToken?: {
+ /**
+ * Enable sharing app token with the remote
+ */
+ enabled: boolean;
+ [k: string]: unknown;
+ };
+ [k: string]: unknown;
+}
export interface ActionInput {
title: string;
/**
* A description of what this particular input is intended for. Example: 'ID of the Issue that will be updated as a result of this action'