@forteplatforms/sdk 1.0.496 → 1.0.500
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/generated/apis/ProjectsServerApi.d.ts +14 -0
- package/dist/generated/apis/ProjectsServerApi.js +59 -1
- package/dist/generated/models/CreateForteServiceRequest.d.ts +14 -7
- package/dist/generated/models/CreateForteServiceRequest.js +3 -0
- package/dist/generated/models/CreateManagedDatabaseRequest.d.ts +3 -3
- package/dist/generated/models/CreateServiceDatabaseConnectionRequest.d.ts +1 -1
- package/dist/generated/models/CreateServiceToServiceConnectionRequest.d.ts +6 -6
- package/dist/generated/models/CreateServiceToWebAppConnectionRequest.d.ts +6 -6
- package/dist/generated/models/CreateServiceUrlConnectionRequest.d.ts +6 -6
- package/dist/generated/models/CreateWebAppRequest.d.ts +10 -10
- package/dist/generated/models/ForteApiException.d.ts +2 -0
- package/dist/generated/models/ForteApiException.js +2 -0
- package/dist/generated/models/ManagedDatabaseEnvVarMappings.d.ts +8 -8
- package/dist/generated/models/UpdateServiceToServiceConnectionRequest.d.ts +5 -5
- package/dist/generated/models/UpdateServiceToWebAppConnectionRequest.d.ts +5 -5
- package/dist/generated/models/UpdateServiceUrlConnectionRequest.d.ts +5 -5
- package/dist/generated/models/UserActionLogObject.d.ts +1 -0
- package/dist/generated/models/UserActionLogObject.js +2 -1
- package/dist/generated/models/UserRiskSignals.d.ts +3 -0
- package/dist/generated/models/UserRiskSignals.js +4 -1
- package/package.json +1 -1
|
@@ -621,6 +621,9 @@ export interface ListServiceHistoryRequest {
|
|
|
621
621
|
maxTime?: Date;
|
|
622
622
|
nextToken?: string;
|
|
623
623
|
}
|
|
624
|
+
export interface ListServicesRequest {
|
|
625
|
+
projectId: string;
|
|
626
|
+
}
|
|
624
627
|
export interface ListUserActionLogsRequest {
|
|
625
628
|
projectId: string;
|
|
626
629
|
userId: string;
|
|
@@ -1968,6 +1971,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
1968
1971
|
/**
|
|
1969
1972
|
*/
|
|
1970
1973
|
listServiceHistory(requestParameters: ListServiceHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAccountActionLogObject>;
|
|
1974
|
+
/**
|
|
1975
|
+
* Creates request options for listServices without sending the request
|
|
1976
|
+
*/
|
|
1977
|
+
listServicesRequestOpts(requestParameters: ListServicesRequest): Promise<runtime.RequestOpts>;
|
|
1978
|
+
/**
|
|
1979
|
+
*/
|
|
1980
|
+
listServicesRaw(requestParameters: ListServicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ServiceObject>>>;
|
|
1981
|
+
/**
|
|
1982
|
+
*/
|
|
1983
|
+
listServices(requestParameters: ListServicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ServiceObject>>;
|
|
1971
1984
|
/**
|
|
1972
1985
|
* Creates request options for listUserActionLogs without sending the request
|
|
1973
1986
|
*/
|
|
@@ -2779,6 +2792,7 @@ export declare const ListUserActionLogsActionTypeType: {
|
|
|
2779
2792
|
readonly REAUTHENTICATED: "REAUTHENTICATED";
|
|
2780
2793
|
readonly REAUTHENTICATION_FAILED: "REAUTHENTICATION_FAILED";
|
|
2781
2794
|
readonly SUSPICIOUS_USER_ACTIVITY_DETECTED: "SUSPICIOUS_USER_ACTIVITY_DETECTED";
|
|
2795
|
+
readonly SESSION_LOCATION_RISK_DETECTED: "SESSION_LOCATION_RISK_DETECTED";
|
|
2782
2796
|
};
|
|
2783
2797
|
export type ListUserActionLogsActionTypeType = typeof ListUserActionLogsActionTypeType[keyof typeof ListUserActionLogsActionTypeType];
|
|
2784
2798
|
/**
|
|
@@ -6551,6 +6551,63 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
6551
6551
|
});
|
|
6552
6552
|
});
|
|
6553
6553
|
};
|
|
6554
|
+
/**
|
|
6555
|
+
* Creates request options for listServices without sending the request
|
|
6556
|
+
*/
|
|
6557
|
+
ProjectsServerApi.prototype.listServicesRequestOpts = function (requestParameters) {
|
|
6558
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6559
|
+
var queryParameters, headerParameters, urlPath;
|
|
6560
|
+
return __generator(this, function (_a) {
|
|
6561
|
+
if (requestParameters['projectId'] == null) {
|
|
6562
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listServices().');
|
|
6563
|
+
}
|
|
6564
|
+
queryParameters = {};
|
|
6565
|
+
headerParameters = {};
|
|
6566
|
+
urlPath = "/api/v1/projects/{projectId}/services";
|
|
6567
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
6568
|
+
return [2 /*return*/, {
|
|
6569
|
+
path: urlPath,
|
|
6570
|
+
method: 'GET',
|
|
6571
|
+
headers: headerParameters,
|
|
6572
|
+
query: queryParameters,
|
|
6573
|
+
}];
|
|
6574
|
+
});
|
|
6575
|
+
});
|
|
6576
|
+
};
|
|
6577
|
+
/**
|
|
6578
|
+
*/
|
|
6579
|
+
ProjectsServerApi.prototype.listServicesRaw = function (requestParameters, initOverrides) {
|
|
6580
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6581
|
+
var requestOptions, response;
|
|
6582
|
+
return __generator(this, function (_a) {
|
|
6583
|
+
switch (_a.label) {
|
|
6584
|
+
case 0: return [4 /*yield*/, this.listServicesRequestOpts(requestParameters)];
|
|
6585
|
+
case 1:
|
|
6586
|
+
requestOptions = _a.sent();
|
|
6587
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
6588
|
+
case 2:
|
|
6589
|
+
response = _a.sent();
|
|
6590
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(ServiceObject_1.ServiceObjectFromJSON); })];
|
|
6591
|
+
}
|
|
6592
|
+
});
|
|
6593
|
+
});
|
|
6594
|
+
};
|
|
6595
|
+
/**
|
|
6596
|
+
*/
|
|
6597
|
+
ProjectsServerApi.prototype.listServices = function (requestParameters, initOverrides) {
|
|
6598
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6599
|
+
var response;
|
|
6600
|
+
return __generator(this, function (_a) {
|
|
6601
|
+
switch (_a.label) {
|
|
6602
|
+
case 0: return [4 /*yield*/, this.listServicesRaw(requestParameters, initOverrides)];
|
|
6603
|
+
case 1:
|
|
6604
|
+
response = _a.sent();
|
|
6605
|
+
return [4 /*yield*/, response.value()];
|
|
6606
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
6607
|
+
}
|
|
6608
|
+
});
|
|
6609
|
+
});
|
|
6610
|
+
};
|
|
6554
6611
|
/**
|
|
6555
6612
|
* Creates request options for listUserActionLogs without sending the request
|
|
6556
6613
|
*/
|
|
@@ -11080,7 +11137,8 @@ exports.ListUserActionLogsActionTypeType = {
|
|
|
11080
11137
|
REAUTHENTICATION_CHALLENGE_SENT: 'REAUTHENTICATION_CHALLENGE_SENT',
|
|
11081
11138
|
REAUTHENTICATED: 'REAUTHENTICATED',
|
|
11082
11139
|
REAUTHENTICATION_FAILED: 'REAUTHENTICATION_FAILED',
|
|
11083
|
-
SUSPICIOUS_USER_ACTIVITY_DETECTED: 'SUSPICIOUS_USER_ACTIVITY_DETECTED'
|
|
11140
|
+
SUSPICIOUS_USER_ACTIVITY_DETECTED: 'SUSPICIOUS_USER_ACTIVITY_DETECTED',
|
|
11141
|
+
SESSION_LOCATION_RISK_DETECTED: 'SESSION_LOCATION_RISK_DETECTED'
|
|
11084
11142
|
};
|
|
11085
11143
|
/**
|
|
11086
11144
|
* @export
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { CreateServiceDatabaseConnectionRequest } from './CreateServiceDatabaseConnectionRequest';
|
|
13
|
+
import type { CreateServiceToServiceConnectionRequest } from './CreateServiceToServiceConnectionRequest';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -17,13 +18,13 @@ import type { CreateServiceDatabaseConnectionRequest } from './CreateServiceData
|
|
|
17
18
|
*/
|
|
18
19
|
export interface CreateForteServiceRequest {
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* GitHub repository URL; the Forte GitHub App must be installed on its owner. Required unless codeSourceType is ARTIFACT.
|
|
21
22
|
* @type {string}
|
|
22
23
|
* @memberof CreateForteServiceRequest
|
|
23
24
|
*/
|
|
24
25
|
githubRepositoryUrl?: string | null;
|
|
25
26
|
/**
|
|
26
|
-
*
|
|
27
|
+
* PUSH deploys on every push to githubBranch; RELEASE_PUBLISHED deploys on GitHub releases. Required unless codeSourceType is ARTIFACT.
|
|
27
28
|
* @type {CreateForteServiceRequestBuildTriggerType}
|
|
28
29
|
* @memberof CreateForteServiceRequest
|
|
29
30
|
*/
|
|
@@ -41,7 +42,7 @@ export interface CreateForteServiceRequest {
|
|
|
41
42
|
*/
|
|
42
43
|
artifactId?: string | null;
|
|
43
44
|
/**
|
|
44
|
-
*
|
|
45
|
+
* Branch to build; required for PUSH.
|
|
45
46
|
* @type {string}
|
|
46
47
|
* @memberof CreateForteServiceRequest
|
|
47
48
|
*/
|
|
@@ -101,7 +102,7 @@ export interface CreateForteServiceRequest {
|
|
|
101
102
|
*/
|
|
102
103
|
healthCheckPath?: string | null;
|
|
103
104
|
/**
|
|
104
|
-
*
|
|
105
|
+
* Path of the app inside a monorepo.
|
|
105
106
|
* @type {string}
|
|
106
107
|
* @memberof CreateForteServiceRequest
|
|
107
108
|
*/
|
|
@@ -113,23 +114,29 @@ export interface CreateForteServiceRequest {
|
|
|
113
114
|
*/
|
|
114
115
|
requestResponseBodyLoggingEnabled?: boolean | null;
|
|
115
116
|
/**
|
|
116
|
-
*
|
|
117
|
+
* Ant-style path patterns (e.g. /public/**) that skip Forte user auth.
|
|
117
118
|
* @type {Array<string>}
|
|
118
119
|
* @memberof CreateForteServiceRequest
|
|
119
120
|
*/
|
|
120
121
|
authPathExclusions?: Array<string> | null;
|
|
121
122
|
/**
|
|
122
|
-
*
|
|
123
|
+
* Ant-style path patterns that return 404.
|
|
123
124
|
* @type {Array<string>}
|
|
124
125
|
* @memberof CreateForteServiceRequest
|
|
125
126
|
*/
|
|
126
127
|
blockedPaths?: Array<string> | null;
|
|
127
128
|
/**
|
|
128
|
-
*
|
|
129
|
+
* Managed databases to connect from the first deployment.
|
|
129
130
|
* @type {Array<CreateServiceDatabaseConnectionRequest>}
|
|
130
131
|
* @memberof CreateForteServiceRequest
|
|
131
132
|
*/
|
|
132
133
|
databaseConnections?: Array<CreateServiceDatabaseConnectionRequest> | null;
|
|
134
|
+
/**
|
|
135
|
+
* Service URLs to set as environment variables from the first deployment. Explicit variables are never replaced.
|
|
136
|
+
* @type {Array<CreateServiceToServiceConnectionRequest>}
|
|
137
|
+
* @memberof CreateForteServiceRequest
|
|
138
|
+
*/
|
|
139
|
+
serviceUrlConnections?: Array<CreateServiceToServiceConnectionRequest> | null;
|
|
133
140
|
}
|
|
134
141
|
/**
|
|
135
142
|
* @export
|
|
@@ -20,6 +20,7 @@ exports.CreateForteServiceRequestFromJSONTyped = CreateForteServiceRequestFromJS
|
|
|
20
20
|
exports.CreateForteServiceRequestToJSON = CreateForteServiceRequestToJSON;
|
|
21
21
|
exports.CreateForteServiceRequestToJSONTyped = CreateForteServiceRequestToJSONTyped;
|
|
22
22
|
var CreateServiceDatabaseConnectionRequest_1 = require("./CreateServiceDatabaseConnectionRequest");
|
|
23
|
+
var CreateServiceToServiceConnectionRequest_1 = require("./CreateServiceToServiceConnectionRequest");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
25
26
|
*/
|
|
@@ -68,6 +69,7 @@ function CreateForteServiceRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
69
|
'authPathExclusions': json['authPathExclusions'] == null ? undefined : json['authPathExclusions'],
|
|
69
70
|
'blockedPaths': json['blockedPaths'] == null ? undefined : json['blockedPaths'],
|
|
70
71
|
'databaseConnections': json['databaseConnections'] == null ? undefined : (json['databaseConnections'].map(CreateServiceDatabaseConnectionRequest_1.CreateServiceDatabaseConnectionRequestFromJSON)),
|
|
72
|
+
'serviceUrlConnections': json['serviceUrlConnections'] == null ? undefined : (json['serviceUrlConnections'].map(CreateServiceToServiceConnectionRequest_1.CreateServiceToServiceConnectionRequestFromJSON)),
|
|
71
73
|
};
|
|
72
74
|
}
|
|
73
75
|
function CreateForteServiceRequestToJSON(json) {
|
|
@@ -97,5 +99,6 @@ function CreateForteServiceRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
|
97
99
|
'authPathExclusions': value['authPathExclusions'],
|
|
98
100
|
'blockedPaths': value['blockedPaths'],
|
|
99
101
|
'databaseConnections': value['databaseConnections'] == null ? undefined : (value['databaseConnections'].map(CreateServiceDatabaseConnectionRequest_1.CreateServiceDatabaseConnectionRequestToJSON)),
|
|
102
|
+
'serviceUrlConnections': value['serviceUrlConnections'] == null ? undefined : (value['serviceUrlConnections'].map(CreateServiceToServiceConnectionRequest_1.CreateServiceToServiceConnectionRequestToJSON)),
|
|
100
103
|
};
|
|
101
104
|
}
|
|
@@ -34,19 +34,19 @@ export interface CreateManagedDatabaseRequest {
|
|
|
34
34
|
*/
|
|
35
35
|
tier: CreateManagedDatabaseRequestTierType;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Ignored on the SHARED tier.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateManagedDatabaseRequest
|
|
40
40
|
*/
|
|
41
41
|
cpu?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Ignored on the SHARED tier.
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof CreateManagedDatabaseRequest
|
|
46
46
|
*/
|
|
47
47
|
memoryGb?: number | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Defaults to 2 GB.
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof CreateManagedDatabaseRequest
|
|
52
52
|
*/
|
|
@@ -17,7 +17,7 @@ import type { ManagedDatabaseEnvVarMappings } from './ManagedDatabaseEnvVarMappi
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateServiceDatabaseConnectionRequest {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* An ACTIVE managed database in the same project.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof CreateServiceDatabaseConnectionRequest
|
|
23
23
|
*/
|
|
@@ -16,37 +16,37 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateServiceToServiceConnectionRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The target service whose URL is set; same project.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateServiceToServiceConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
serviceId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Environment variable that receives the URL.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateServiceToServiceConnectionRequest
|
|
28
28
|
*/
|
|
29
29
|
environmentVariableName: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* FORTE_DOMAIN uses the Forte URL; CUSTOM_DOMAIN uses customDomainId.
|
|
32
32
|
* @type {CreateServiceToServiceConnectionRequestDomainTypeType}
|
|
33
33
|
* @memberof CreateServiceToServiceConnectionRequest
|
|
34
34
|
*/
|
|
35
35
|
domainType: CreateServiceToServiceConnectionRequestDomainTypeType;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* An ACTIVE custom domain of the target; required for CUSTOM_DOMAIN.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateServiceToServiceConnectionRequest
|
|
40
40
|
*/
|
|
41
41
|
customDomainId?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Appended to the URL, e.g. /api.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateServiceToServiceConnectionRequest
|
|
46
46
|
*/
|
|
47
47
|
pathSuffix?: string | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Set true to replace a plain environment variable of the same name.
|
|
50
50
|
* @type {boolean}
|
|
51
51
|
* @memberof CreateServiceToServiceConnectionRequest
|
|
52
52
|
*/
|
|
@@ -16,37 +16,37 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateServiceToWebAppConnectionRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The web app whose URL is set; same project.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateServiceToWebAppConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
webAppId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Environment variable that receives the URL.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateServiceToWebAppConnectionRequest
|
|
28
28
|
*/
|
|
29
29
|
environmentVariableName: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* FORTE_DOMAIN uses the Forte URL; CUSTOM_DOMAIN uses customDomainId.
|
|
32
32
|
* @type {CreateServiceToWebAppConnectionRequestDomainTypeType}
|
|
33
33
|
* @memberof CreateServiceToWebAppConnectionRequest
|
|
34
34
|
*/
|
|
35
35
|
domainType: CreateServiceToWebAppConnectionRequestDomainTypeType;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* An ACTIVE custom domain of the target; required for CUSTOM_DOMAIN.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateServiceToWebAppConnectionRequest
|
|
40
40
|
*/
|
|
41
41
|
customDomainId?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Appended to the URL, e.g. /api.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateServiceToWebAppConnectionRequest
|
|
46
46
|
*/
|
|
47
47
|
pathSuffix?: string | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Set true to replace a plain environment variable of the same name.
|
|
50
50
|
* @type {boolean}
|
|
51
51
|
* @memberof CreateServiceToWebAppConnectionRequest
|
|
52
52
|
*/
|
|
@@ -16,37 +16,37 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateServiceUrlConnectionRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The backend service whose URL is set; same project.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateServiceUrlConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
serviceId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Environment variable that receives the URL.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateServiceUrlConnectionRequest
|
|
28
28
|
*/
|
|
29
29
|
environmentVariableName: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* FORTE_DOMAIN uses the Forte URL; CUSTOM_DOMAIN uses customDomainId.
|
|
32
32
|
* @type {CreateServiceUrlConnectionRequestDomainTypeType}
|
|
33
33
|
* @memberof CreateServiceUrlConnectionRequest
|
|
34
34
|
*/
|
|
35
35
|
domainType: CreateServiceUrlConnectionRequestDomainTypeType;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* An ACTIVE custom domain of the target; required for CUSTOM_DOMAIN.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateServiceUrlConnectionRequest
|
|
40
40
|
*/
|
|
41
41
|
customDomainId?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Appended to the URL, e.g. /api.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateServiceUrlConnectionRequest
|
|
46
46
|
*/
|
|
47
47
|
pathSuffix?: string | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Set true to replace a plain environment variable of the same name.
|
|
50
50
|
* @type {boolean}
|
|
51
51
|
* @memberof CreateServiceUrlConnectionRequest
|
|
52
52
|
*/
|
|
@@ -23,19 +23,19 @@ export interface CreateWebAppRequest {
|
|
|
23
23
|
*/
|
|
24
24
|
webAppName: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* GitHub repository URL; the Forte GitHub App must be installed on its owner. Required unless codeSourceType is ARTIFACT.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof CreateWebAppRequest
|
|
29
29
|
*/
|
|
30
30
|
githubRepositoryUrl?: string | null;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Branch to build; required for PUSH.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CreateWebAppRequest
|
|
35
35
|
*/
|
|
36
36
|
githubBranch?: string | null;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* PUSH deploys on every push to githubBranch; RELEASE_PUBLISHED deploys on GitHub releases. Required unless codeSourceType is ARTIFACT.
|
|
39
39
|
* @type {CreateWebAppRequestBuildTriggerType}
|
|
40
40
|
* @memberof CreateWebAppRequest
|
|
41
41
|
*/
|
|
@@ -53,37 +53,37 @@ export interface CreateWebAppRequest {
|
|
|
53
53
|
*/
|
|
54
54
|
artifactId?: string | null;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Auto-detected when omitted.
|
|
57
57
|
* @type {string}
|
|
58
58
|
* @memberof CreateWebAppRequest
|
|
59
59
|
*/
|
|
60
60
|
buildCommand?: string | null;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Build output directory. Auto-detected when omitted.
|
|
63
63
|
* @type {string}
|
|
64
64
|
* @memberof CreateWebAppRequest
|
|
65
65
|
*/
|
|
66
66
|
buildPath?: string | null;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Auto-detected when omitted.
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof CreateWebAppRequest
|
|
71
71
|
*/
|
|
72
72
|
packageManager?: string | null;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Auto-detected when omitted.
|
|
75
75
|
* @type {string}
|
|
76
76
|
* @memberof CreateWebAppRequest
|
|
77
77
|
*/
|
|
78
78
|
nodeVersion?: string | null;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* Auto-detected when omitted.
|
|
81
81
|
* @type {string}
|
|
82
82
|
* @memberof CreateWebAppRequest
|
|
83
83
|
*/
|
|
84
84
|
installCommand?: string | null;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* Path of the app inside a monorepo.
|
|
87
87
|
* @type {string}
|
|
88
88
|
* @memberof CreateWebAppRequest
|
|
89
89
|
*/
|
|
@@ -105,7 +105,7 @@ export interface CreateWebAppRequest {
|
|
|
105
105
|
[key: string]: string;
|
|
106
106
|
};
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Backend service URLs to set as environment variables from the first build.
|
|
109
109
|
* @type {Array<CreateServiceUrlConnectionRequest>}
|
|
110
110
|
* @memberof CreateWebAppRequest
|
|
111
111
|
*/
|
|
@@ -147,6 +147,8 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
147
147
|
readonly VERIFICATION_CODE_EXPIRED: "VERIFICATION_CODE_EXPIRED";
|
|
148
148
|
readonly VERIFICATION_CODE_RATE_LIMITED: "VERIFICATION_CODE_RATE_LIMITED";
|
|
149
149
|
readonly USER_AUTH_RATE_LIMITED: "USER_AUTH_RATE_LIMITED";
|
|
150
|
+
readonly SIGN_IN_NETWORK_BLOCKED: "SIGN_IN_NETWORK_BLOCKED";
|
|
151
|
+
readonly PLUS_ADDRESSED_EMAIL_REGISTRATION_BLOCKED: "PLUS_ADDRESSED_EMAIL_REGISTRATION_BLOCKED";
|
|
150
152
|
readonly INVALID_SESSION_RENEWAL_DURATION: "INVALID_SESSION_RENEWAL_DURATION";
|
|
151
153
|
readonly CONTACT_METHOD_NOT_ELIGIBLE_FOR_FIXED_CODE: "CONTACT_METHOD_NOT_ELIGIBLE_FOR_FIXED_CODE";
|
|
152
154
|
readonly AMBIGUOUS_FIXED_VERIFICATION_CODE_UPDATE: "AMBIGUOUS_FIXED_VERIFICATION_CODE_UPDATE";
|
|
@@ -132,6 +132,8 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
132
132
|
VERIFICATION_CODE_EXPIRED: 'VERIFICATION_CODE_EXPIRED',
|
|
133
133
|
VERIFICATION_CODE_RATE_LIMITED: 'VERIFICATION_CODE_RATE_LIMITED',
|
|
134
134
|
USER_AUTH_RATE_LIMITED: 'USER_AUTH_RATE_LIMITED',
|
|
135
|
+
SIGN_IN_NETWORK_BLOCKED: 'SIGN_IN_NETWORK_BLOCKED',
|
|
136
|
+
PLUS_ADDRESSED_EMAIL_REGISTRATION_BLOCKED: 'PLUS_ADDRESSED_EMAIL_REGISTRATION_BLOCKED',
|
|
135
137
|
INVALID_SESSION_RENEWAL_DURATION: 'INVALID_SESSION_RENEWAL_DURATION',
|
|
136
138
|
CONTACT_METHOD_NOT_ELIGIBLE_FOR_FIXED_CODE: 'CONTACT_METHOD_NOT_ELIGIBLE_FOR_FIXED_CODE',
|
|
137
139
|
AMBIGUOUS_FIXED_VERIFICATION_CODE_UPDATE: 'AMBIGUOUS_FIXED_VERIFICATION_CODE_UPDATE',
|
|
@@ -16,49 +16,49 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface ManagedDatabaseEnvVarMappings {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Environment variable that receives the full connection string, e.g. DATABASE_URL.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof ManagedDatabaseEnvVarMappings
|
|
22
22
|
*/
|
|
23
23
|
connectionStringEnvVar?: string | null;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Environment variable that receives the host.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof ManagedDatabaseEnvVarMappings
|
|
28
28
|
*/
|
|
29
29
|
hostEnvVar?: string | null;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Environment variable that receives the port.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ManagedDatabaseEnvVarMappings
|
|
34
34
|
*/
|
|
35
35
|
portEnvVar?: string | null;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Environment variable that receives the database name.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof ManagedDatabaseEnvVarMappings
|
|
40
40
|
*/
|
|
41
41
|
databaseEnvVar?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Environment variable that receives the username.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof ManagedDatabaseEnvVarMappings
|
|
46
46
|
*/
|
|
47
47
|
usernameEnvVar?: string | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Environment variable that receives the password.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof ManagedDatabaseEnvVarMappings
|
|
52
52
|
*/
|
|
53
53
|
passwordEnvVar?: string | null;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Connection string dialect for the consuming driver. Defaults to URI; CUSTOM uses connectionStringTemplate.
|
|
56
56
|
* @type {ManagedDatabaseEnvVarMappingsConnectionStringFormatType}
|
|
57
57
|
* @memberof ManagedDatabaseEnvVarMappings
|
|
58
58
|
*/
|
|
59
59
|
connectionStringFormat?: ManagedDatabaseEnvVarMappingsConnectionStringFormatType | null;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* CUSTOM format only. Placeholders: {host} {port} {database} {username} {password} {sslmode}.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof ManagedDatabaseEnvVarMappings
|
|
64
64
|
*/
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdateServiceToServiceConnectionRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The target service whose URL is set; same project.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateServiceToServiceConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
serviceId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Environment variable that receives the URL.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateServiceToServiceConnectionRequest
|
|
28
28
|
*/
|
|
29
29
|
environmentVariableName: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* FORTE_DOMAIN uses the Forte URL; CUSTOM_DOMAIN uses customDomainId.
|
|
32
32
|
* @type {UpdateServiceToServiceConnectionRequestDomainTypeType}
|
|
33
33
|
* @memberof UpdateServiceToServiceConnectionRequest
|
|
34
34
|
*/
|
|
35
35
|
domainType: UpdateServiceToServiceConnectionRequestDomainTypeType;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* An ACTIVE custom domain of the target; required for CUSTOM_DOMAIN.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof UpdateServiceToServiceConnectionRequest
|
|
40
40
|
*/
|
|
41
41
|
customDomainId?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Appended to the URL, e.g. /api.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UpdateServiceToServiceConnectionRequest
|
|
46
46
|
*/
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdateServiceToWebAppConnectionRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The web app whose URL is set; same project.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateServiceToWebAppConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
webAppId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Environment variable that receives the URL.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateServiceToWebAppConnectionRequest
|
|
28
28
|
*/
|
|
29
29
|
environmentVariableName: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* FORTE_DOMAIN uses the Forte URL; CUSTOM_DOMAIN uses customDomainId.
|
|
32
32
|
* @type {UpdateServiceToWebAppConnectionRequestDomainTypeType}
|
|
33
33
|
* @memberof UpdateServiceToWebAppConnectionRequest
|
|
34
34
|
*/
|
|
35
35
|
domainType: UpdateServiceToWebAppConnectionRequestDomainTypeType;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* An ACTIVE custom domain of the target; required for CUSTOM_DOMAIN.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof UpdateServiceToWebAppConnectionRequest
|
|
40
40
|
*/
|
|
41
41
|
customDomainId?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Appended to the URL, e.g. /api.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UpdateServiceToWebAppConnectionRequest
|
|
46
46
|
*/
|
|
@@ -16,31 +16,31 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface UpdateServiceUrlConnectionRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* The backend service whose URL is set; same project.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateServiceUrlConnectionRequest
|
|
22
22
|
*/
|
|
23
23
|
serviceId: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Environment variable that receives the URL.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof UpdateServiceUrlConnectionRequest
|
|
28
28
|
*/
|
|
29
29
|
environmentVariableName: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* FORTE_DOMAIN uses the Forte URL; CUSTOM_DOMAIN uses customDomainId.
|
|
32
32
|
* @type {UpdateServiceUrlConnectionRequestDomainTypeType}
|
|
33
33
|
* @memberof UpdateServiceUrlConnectionRequest
|
|
34
34
|
*/
|
|
35
35
|
domainType: UpdateServiceUrlConnectionRequestDomainTypeType;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* An ACTIVE custom domain of the target; required for CUSTOM_DOMAIN.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof UpdateServiceUrlConnectionRequest
|
|
40
40
|
*/
|
|
41
41
|
customDomainId?: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Appended to the URL, e.g. /api.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof UpdateServiceUrlConnectionRequest
|
|
46
46
|
*/
|
|
@@ -138,6 +138,7 @@ export declare const UserActionLogObjectActionTypeType: {
|
|
|
138
138
|
readonly REAUTHENTICATED: "REAUTHENTICATED";
|
|
139
139
|
readonly REAUTHENTICATION_FAILED: "REAUTHENTICATION_FAILED";
|
|
140
140
|
readonly SUSPICIOUS_USER_ACTIVITY_DETECTED: "SUSPICIOUS_USER_ACTIVITY_DETECTED";
|
|
141
|
+
readonly SESSION_LOCATION_RISK_DETECTED: "SESSION_LOCATION_RISK_DETECTED";
|
|
141
142
|
};
|
|
142
143
|
export type UserActionLogObjectActionTypeType = typeof UserActionLogObjectActionTypeType[keyof typeof UserActionLogObjectActionTypeType];
|
|
143
144
|
/**
|
|
@@ -78,7 +78,8 @@ exports.UserActionLogObjectActionTypeType = {
|
|
|
78
78
|
REAUTHENTICATION_CHALLENGE_SENT: 'REAUTHENTICATION_CHALLENGE_SENT',
|
|
79
79
|
REAUTHENTICATED: 'REAUTHENTICATED',
|
|
80
80
|
REAUTHENTICATION_FAILED: 'REAUTHENTICATION_FAILED',
|
|
81
|
-
SUSPICIOUS_USER_ACTIVITY_DETECTED: 'SUSPICIOUS_USER_ACTIVITY_DETECTED'
|
|
81
|
+
SUSPICIOUS_USER_ACTIVITY_DETECTED: 'SUSPICIOUS_USER_ACTIVITY_DETECTED',
|
|
82
|
+
SESSION_LOCATION_RISK_DETECTED: 'SESSION_LOCATION_RISK_DETECTED'
|
|
82
83
|
};
|
|
83
84
|
/**
|
|
84
85
|
* Check if a given object implements the UserActionLogObject interface.
|
|
@@ -39,6 +39,9 @@ export declare const UserRiskSignalsDetectedSignalsType: {
|
|
|
39
39
|
readonly AUTOMATED_USER_AGENT: "AUTOMATED_USER_AGENT";
|
|
40
40
|
readonly DISPOSABLE_EMAIL_DOMAIN: "DISPOSABLE_EMAIL_DOMAIN";
|
|
41
41
|
readonly BREACHED_PASSWORD: "BREACHED_PASSWORD";
|
|
42
|
+
readonly SESSION_LOCATION_CHANGED: "SESSION_LOCATION_CHANGED";
|
|
43
|
+
readonly IMPOSSIBLE_TRAVEL: "IMPOSSIBLE_TRAVEL";
|
|
44
|
+
readonly CONCURRENT_SESSION_LOCATIONS: "CONCURRENT_SESSION_LOCATIONS";
|
|
42
45
|
};
|
|
43
46
|
export type UserRiskSignalsDetectedSignalsType = typeof UserRiskSignalsDetectedSignalsType[keyof typeof UserRiskSignalsDetectedSignalsType];
|
|
44
47
|
/**
|
|
@@ -29,7 +29,10 @@ exports.UserRiskSignalsDetectedSignalsType = {
|
|
|
29
29
|
NEW_COUNTRY_FOR_USER: 'NEW_COUNTRY_FOR_USER',
|
|
30
30
|
AUTOMATED_USER_AGENT: 'AUTOMATED_USER_AGENT',
|
|
31
31
|
DISPOSABLE_EMAIL_DOMAIN: 'DISPOSABLE_EMAIL_DOMAIN',
|
|
32
|
-
BREACHED_PASSWORD: 'BREACHED_PASSWORD'
|
|
32
|
+
BREACHED_PASSWORD: 'BREACHED_PASSWORD',
|
|
33
|
+
SESSION_LOCATION_CHANGED: 'SESSION_LOCATION_CHANGED',
|
|
34
|
+
IMPOSSIBLE_TRAVEL: 'IMPOSSIBLE_TRAVEL',
|
|
35
|
+
CONCURRENT_SESSION_LOCATIONS: 'CONCURRENT_SESSION_LOCATIONS'
|
|
33
36
|
};
|
|
34
37
|
/**
|
|
35
38
|
* Check if a given object implements the UserRiskSignals interface.
|