@kwirthmagnify/kwirth-common-back 0.5.46 → 0.5.47
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/dist/IChannel.d.ts +2 -1
- package/dist/IExtension.d.ts +5 -0
- package/dist/IExtension.js +2 -0
- package/dist/IIdpConnector.d.ts +2 -1
- package/dist/IProvider.d.ts +2 -1
- package/dist/ISender.d.ts +2 -1
- package/dist/IWebhook.d.ts +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
package/dist/IChannel.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BackChannelData, IInstanceConfig, IInstanceMessage, AccessKey, EInstanceMessageAction, IBackChannelRequirements, IExtensionScope } from '@kwirthmagnify/kwirth-common';
|
|
2
2
|
import { Request, Response } from 'express';
|
|
3
|
-
|
|
3
|
+
import { IExtension } from './IExtension';
|
|
4
|
+
export interface IChannel extends IExtension {
|
|
4
5
|
readonly channelId: string;
|
|
5
6
|
readonly requirements: IBackChannelRequirements;
|
|
6
7
|
getChannelData(): BackChannelData;
|
package/dist/IIdpConnector.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TConfigFieldType, IConfigFieldDef } from '@kwirthmagnify/kwirth-common';
|
|
2
|
+
import { IExtension } from './IExtension';
|
|
2
3
|
export declare enum EIdpConnectorKind {
|
|
3
4
|
OIDC = "oidc",
|
|
4
5
|
OAUTH2 = "oauth2"
|
|
@@ -23,7 +24,7 @@ export interface IIdpCallbackContext {
|
|
|
23
24
|
redirectUri: string;
|
|
24
25
|
params?: Record<string, string>;
|
|
25
26
|
}
|
|
26
|
-
export interface IIdpConnector {
|
|
27
|
+
export interface IIdpConnector extends IExtension {
|
|
27
28
|
id: string;
|
|
28
29
|
label: string;
|
|
29
30
|
kind: EIdpConnectorKind;
|
package/dist/IProvider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KwirthData, IConfigFieldDef } from '@kwirthmagnify/kwirth-common';
|
|
2
|
+
import { IExtension } from './IExtension';
|
|
2
3
|
/**
|
|
3
4
|
* Minimal interface representing the channel side that providers interact with.
|
|
4
5
|
* Providers only need to call processProviderEvent on their subscribers.
|
|
@@ -53,7 +54,7 @@ export type IProviderFieldDef = IConfigFieldDef;
|
|
|
53
54
|
* Interface that all provider plugins must implement.
|
|
54
55
|
* Use 'any' for clusterInfo to avoid pulling in kubernetes/docker dependencies.
|
|
55
56
|
*/
|
|
56
|
-
export interface IProvider {
|
|
57
|
+
export interface IProvider extends IExtension {
|
|
57
58
|
readonly id: string;
|
|
58
59
|
readonly providesRouter: boolean;
|
|
59
60
|
readonly requiresApiKeyApi: boolean;
|
package/dist/ISender.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ISenderMessage, ISenderConfig, ISenderAccess, ISenderStoredConfig, ISenderResult, TConfigFieldType, IConfigFieldDef, IExtensionNodeMeta } from '@kwirthmagnify/kwirth-common';
|
|
2
|
+
import { IExtension } from './IExtension';
|
|
2
3
|
export { ISenderMessage, ISenderConfig, ISenderAccess, ISenderStoredConfig, ISenderResult };
|
|
3
4
|
/** @deprecated usa TConfigFieldType, comun a todas las extensiones. */
|
|
4
5
|
export type SenderFieldType = TConfigFieldType;
|
|
@@ -6,7 +7,7 @@ export type SenderFieldType = TConfigFieldType;
|
|
|
6
7
|
export type ISenderFieldDef = IConfigFieldDef;
|
|
7
8
|
/** @deprecated usa IExtensionNodeMeta, comun a todas las extensiones. */
|
|
8
9
|
export type ISenderNodeMeta = IExtensionNodeMeta;
|
|
9
|
-
export interface ISender {
|
|
10
|
+
export interface ISender extends IExtension {
|
|
10
11
|
readonly id: string;
|
|
11
12
|
readonly senderType?: 'filter' | 'output';
|
|
12
13
|
addConfig(config: ISenderConfig): void;
|
package/dist/IWebhook.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IWebhookEvent, IWebhookConfig, IWebhookAccess, IWebhookConsumer, IWebhookStoredConfig, TConfigFieldType, IConfigFieldDef, IExtensionNodeMeta } from '@kwirthmagnify/kwirth-common';
|
|
2
|
+
import { IExtension } from './IExtension';
|
|
2
3
|
export { IWebhookEvent, IWebhookConfig, IWebhookAccess, IWebhookConsumer, IWebhookStoredConfig };
|
|
3
4
|
/** @deprecated usa TConfigFieldType, comun a todas las extensiones. */
|
|
4
5
|
export type WebhookFieldType = TConfigFieldType;
|
|
@@ -6,7 +7,7 @@ export type WebhookFieldType = TConfigFieldType;
|
|
|
6
7
|
export type IWebhookFieldDef = IConfigFieldDef;
|
|
7
8
|
/** @deprecated usa IExtensionNodeMeta, comun a todas las extensiones. */
|
|
8
9
|
export type IWebhookNodeMeta = IExtensionNodeMeta;
|
|
9
|
-
export interface IWebhook {
|
|
10
|
+
export interface IWebhook extends IExtension {
|
|
10
11
|
readonly id: string;
|
|
11
12
|
verify(rawBody: Buffer, headers: Record<string, string | string[] | undefined>, config: IWebhookConfig): boolean;
|
|
12
13
|
parse(rawBody: Buffer, headers: Record<string, string | string[] | undefined>): Omit<IWebhookEvent, 'configName'> | null;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./IPluvider"), exports);
|
|
|
23
23
|
__exportStar(require("./ISender"), exports);
|
|
24
24
|
__exportStar(require("./IWebhook"), exports);
|
|
25
25
|
__exportStar(require("./IIdpConnector"), exports);
|
|
26
|
+
__exportStar(require("./IExtension"), exports);
|
|
26
27
|
__exportStar(require("./oidc"), exports);
|
|
27
28
|
__exportStar(require("./oauth2"), exports);
|
|
28
29
|
__exportStar(require("./github"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kwirthmagnify/kwirth-common-back",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.47",
|
|
4
4
|
"description": "Backend interfaces for building Kwirth provider and channel plugins",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"license": "ISC",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@kubernetes/client-node": "^1.4.0",
|
|
29
|
-
"@kwirthmagnify/kwirth-common": "^0.5.
|
|
29
|
+
"@kwirthmagnify/kwirth-common": "^0.5.52",
|
|
30
30
|
"express": "^4.18.0",
|
|
31
31
|
"jose": "^4.15.9",
|
|
32
32
|
"js-yaml": "^4.1.0",
|