@useparagon/core 1.0.9-canary.1 → 1.0.9-canary.2
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HttpMethodWithBody, HttpMethodWithoutBody } from '../steps/library/request';
|
|
1
2
|
import { Constructable } from '../types/generics';
|
|
2
3
|
import { IWorkflow } from '../workflow/workflow.interface';
|
|
3
4
|
import { ConnectPortalThemeValues } from './integration-config.interface';
|
|
@@ -6,6 +7,35 @@ export declare enum AuthenticationScheme {
|
|
|
6
7
|
OAUTH = "oauth",
|
|
7
8
|
OAUTH_CLIENT_CREDENTIAL = "oauth_client_credential"
|
|
8
9
|
}
|
|
10
|
+
export declare enum ConnectUserProfileConfigStrategy {
|
|
11
|
+
HTTP = "HTTP",
|
|
12
|
+
JWT = "JWT"
|
|
13
|
+
}
|
|
14
|
+
export type HTTPStrategyUIConfig = {
|
|
15
|
+
strategy: `${ConnectUserProfileConfigStrategy.HTTP}`;
|
|
16
|
+
url: string;
|
|
17
|
+
params: Record<string, string>;
|
|
18
|
+
headers: Record<string, string>;
|
|
19
|
+
requireSuccess: boolean;
|
|
20
|
+
} & ({
|
|
21
|
+
method: `${HttpMethodWithoutBody}`;
|
|
22
|
+
body?: never;
|
|
23
|
+
bodyType?: never;
|
|
24
|
+
} | {
|
|
25
|
+
method: `${HttpMethodWithBody}`;
|
|
26
|
+
bodyType: 'json' | 'form-data' | 'x-www-form-urlencoded';
|
|
27
|
+
body: Record<string, unknown>;
|
|
28
|
+
} | {
|
|
29
|
+
method: `${HttpMethodWithBody}`;
|
|
30
|
+
bodyType: 'xml' | 'raw';
|
|
31
|
+
body: string;
|
|
32
|
+
});
|
|
33
|
+
export type JWTStrategyUIConfig = {
|
|
34
|
+
strategy: `${ConnectUserProfileConfigStrategy.JWT}`;
|
|
35
|
+
token: string;
|
|
36
|
+
requireSuccess: boolean;
|
|
37
|
+
};
|
|
38
|
+
export type UserProfileUIConfig = HTTPStrategyUIConfig | JWTStrategyUIConfig;
|
|
9
39
|
export type ICustomIntegrationConfig = {
|
|
10
40
|
name: string;
|
|
11
41
|
active?: boolean;
|
|
@@ -16,6 +46,7 @@ export type ICustomIntegrationConfig = {
|
|
|
16
46
|
overviewText?: string;
|
|
17
47
|
apiBaseUrl: string;
|
|
18
48
|
testEndpointPath: string;
|
|
49
|
+
userProfileConfig?: UserProfileUIConfig;
|
|
19
50
|
authorization: {
|
|
20
51
|
type: 'bearer';
|
|
21
52
|
token: string;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthenticationScheme = void 0;
|
|
3
|
+
exports.ConnectUserProfileConfigStrategy = exports.AuthenticationScheme = void 0;
|
|
4
4
|
var AuthenticationScheme;
|
|
5
5
|
(function (AuthenticationScheme) {
|
|
6
6
|
AuthenticationScheme["BASIC"] = "basic";
|
|
7
7
|
AuthenticationScheme["OAUTH"] = "oauth";
|
|
8
8
|
AuthenticationScheme["OAUTH_CLIENT_CREDENTIAL"] = "oauth_client_credential";
|
|
9
9
|
})(AuthenticationScheme || (exports.AuthenticationScheme = AuthenticationScheme = {}));
|
|
10
|
+
var ConnectUserProfileConfigStrategy;
|
|
11
|
+
(function (ConnectUserProfileConfigStrategy) {
|
|
12
|
+
ConnectUserProfileConfigStrategy["HTTP"] = "HTTP";
|
|
13
|
+
ConnectUserProfileConfigStrategy["JWT"] = "JWT";
|
|
14
|
+
})(ConnectUserProfileConfigStrategy || (exports.ConnectUserProfileConfigStrategy = ConnectUserProfileConfigStrategy = {}));
|
|
10
15
|
//# sourceMappingURL=custom.integration.interface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.integration.interface.js","sourceRoot":"","sources":["../../src/integration/custom.integration.interface.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"custom.integration.interface.js","sourceRoot":"","sources":["../../src/integration/custom.integration.interface.ts"],"names":[],"mappings":";;;AAWA,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,uCAAe,CAAA;IACf,uCAAe,CAAA;IACf,2EAAmD,CAAA;AACrD,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,gCAGX;AAHD,WAAY,gCAAgC;IAC1C,iDAAa,CAAA;IACb,+CAAW,CAAA;AACb,CAAC,EAHW,gCAAgC,gDAAhC,gCAAgC,QAG3C"}
|