@forteplatforms/sdk 1.0.253 → 1.0.261
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 +46 -0
- package/dist/generated/apis/ProjectsServerApi.js +186 -0
- package/dist/generated/apis/UsersServerApi.d.ts +62 -0
- package/dist/generated/apis/UsersServerApi.js +251 -0
- package/dist/generated/models/ForteApiException.d.ts +1 -0
- package/dist/generated/models/ForteApiException.js +1 -0
- package/dist/generated/models/ListSessionsResponse.d.ts +33 -0
- package/dist/generated/models/ListSessionsResponse.js +52 -0
- package/dist/generated/models/LoginHistoryEntry.d.ts +38 -0
- package/dist/generated/models/LoginHistoryEntry.js +53 -0
- package/dist/generated/models/PaginatedResponseLoginHistoryEntry.d.ts +45 -0
- package/dist/generated/models/PaginatedResponseLoginHistoryEntry.js +58 -0
- package/dist/generated/models/SessionSummary.d.ts +74 -0
- package/dist/generated/models/SessionSummary.js +67 -0
- package/dist/generated/models/UserActionLogObject.d.ts +8 -0
- package/dist/generated/models/UserActionLogObject.js +4 -0
- package/dist/generated/models/UserObject.d.ts +4 -4
- package/dist/generated/models/UserObject.js +2 -2
- package/dist/generated/models/index.d.ts +4 -0
- package/dist/generated/models/index.js +4 -0
- package/package.json +1 -1
|
@@ -45,6 +45,7 @@ import { type GetContentDownloadLinkResponse } from '../models/GetContentDownloa
|
|
|
45
45
|
import { type ImpersonationTokenResponse } from '../models/ImpersonationTokenResponse';
|
|
46
46
|
import { type ListContentResponse } from '../models/ListContentResponse';
|
|
47
47
|
import { type ListCustomDomainsResponse } from '../models/ListCustomDomainsResponse';
|
|
48
|
+
import { type ListSessionsResponse } from '../models/ListSessionsResponse';
|
|
48
49
|
import { type NotificationTemplatesResponse } from '../models/NotificationTemplatesResponse';
|
|
49
50
|
import { type PaginatedResponseActionInvocationObject } from '../models/PaginatedResponseActionInvocationObject';
|
|
50
51
|
import { type PaginatedResponseLogLineObject } from '../models/PaginatedResponseLogLineObject';
|
|
@@ -429,6 +430,10 @@ export interface ListUserPaymentsRequest {
|
|
|
429
430
|
maxTime?: Date;
|
|
430
431
|
nextToken?: string;
|
|
431
432
|
}
|
|
433
|
+
export interface ListUserSessionsRequest {
|
|
434
|
+
projectId: string;
|
|
435
|
+
userId: string;
|
|
436
|
+
}
|
|
432
437
|
export interface ListUserSubscriptionsRequest {
|
|
433
438
|
projectId: string;
|
|
434
439
|
userId: string;
|
|
@@ -585,6 +590,15 @@ export interface RefundPaymentRequest {
|
|
|
585
590
|
paymentId: string;
|
|
586
591
|
keepSubscriptionActive?: boolean;
|
|
587
592
|
}
|
|
593
|
+
export interface RevokeAllUserSessionsRequest {
|
|
594
|
+
projectId: string;
|
|
595
|
+
userId: string;
|
|
596
|
+
}
|
|
597
|
+
export interface RevokeUserSessionRequest {
|
|
598
|
+
projectId: string;
|
|
599
|
+
userId: string;
|
|
600
|
+
sessionId: string;
|
|
601
|
+
}
|
|
588
602
|
export interface SearchLogLinesRequest {
|
|
589
603
|
projectId: string;
|
|
590
604
|
serviceId: string;
|
|
@@ -1345,6 +1359,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
1345
1359
|
/**
|
|
1346
1360
|
*/
|
|
1347
1361
|
listUserPayments(requestParameters: ListUserPaymentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePaymentObject>;
|
|
1362
|
+
/**
|
|
1363
|
+
* Creates request options for listUserSessions without sending the request
|
|
1364
|
+
*/
|
|
1365
|
+
listUserSessionsRequestOpts(requestParameters: ListUserSessionsRequest): Promise<runtime.RequestOpts>;
|
|
1366
|
+
/**
|
|
1367
|
+
*/
|
|
1368
|
+
listUserSessionsRaw(requestParameters: ListUserSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListSessionsResponse>>;
|
|
1369
|
+
/**
|
|
1370
|
+
*/
|
|
1371
|
+
listUserSessions(requestParameters: ListUserSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
1348
1372
|
/**
|
|
1349
1373
|
* Creates request options for listUserSubscriptions without sending the request
|
|
1350
1374
|
*/
|
|
@@ -1615,6 +1639,26 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
|
|
|
1615
1639
|
/**
|
|
1616
1640
|
*/
|
|
1617
1641
|
refundPayment(requestParameters: RefundPaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentObject>;
|
|
1642
|
+
/**
|
|
1643
|
+
* Creates request options for revokeAllUserSessions without sending the request
|
|
1644
|
+
*/
|
|
1645
|
+
revokeAllUserSessionsRequestOpts(requestParameters: RevokeAllUserSessionsRequest): Promise<runtime.RequestOpts>;
|
|
1646
|
+
/**
|
|
1647
|
+
*/
|
|
1648
|
+
revokeAllUserSessionsRaw(requestParameters: RevokeAllUserSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1649
|
+
/**
|
|
1650
|
+
*/
|
|
1651
|
+
revokeAllUserSessions(requestParameters: RevokeAllUserSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Creates request options for revokeUserSession without sending the request
|
|
1654
|
+
*/
|
|
1655
|
+
revokeUserSessionRequestOpts(requestParameters: RevokeUserSessionRequest): Promise<runtime.RequestOpts>;
|
|
1656
|
+
/**
|
|
1657
|
+
*/
|
|
1658
|
+
revokeUserSessionRaw(requestParameters: RevokeUserSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
1659
|
+
/**
|
|
1660
|
+
*/
|
|
1661
|
+
revokeUserSession(requestParameters: RevokeUserSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
1618
1662
|
/**
|
|
1619
1663
|
* Creates request options for searchLogLines without sending the request
|
|
1620
1664
|
*/
|
|
@@ -1846,6 +1890,8 @@ export declare const ListUserActionLogsActionTypeType: {
|
|
|
1846
1890
|
readonly USER_LOGIN: "USER_LOGIN";
|
|
1847
1891
|
readonly USER_LOGOUT: "USER_LOGOUT";
|
|
1848
1892
|
readonly USER_LOGIN_OTP_SENT: "USER_LOGIN_OTP_SENT";
|
|
1893
|
+
readonly SESSION_REVOKED: "SESSION_REVOKED";
|
|
1894
|
+
readonly ALL_OTHER_SESSIONS_REVOKED: "ALL_OTHER_SESSIONS_REVOKED";
|
|
1849
1895
|
readonly PAYMENT_CREATED: "PAYMENT_CREATED";
|
|
1850
1896
|
readonly PAYMENT_REFUNDED: "PAYMENT_REFUNDED";
|
|
1851
1897
|
readonly PAYMENT_METHOD_SETUP_STARTED: "PAYMENT_METHOD_SETUP_STARTED";
|
|
@@ -101,6 +101,7 @@ var GetContentDownloadLinkResponse_1 = require("../models/GetContentDownloadLink
|
|
|
101
101
|
var ImpersonationTokenResponse_1 = require("../models/ImpersonationTokenResponse");
|
|
102
102
|
var ListContentResponse_1 = require("../models/ListContentResponse");
|
|
103
103
|
var ListCustomDomainsResponse_1 = require("../models/ListCustomDomainsResponse");
|
|
104
|
+
var ListSessionsResponse_1 = require("../models/ListSessionsResponse");
|
|
104
105
|
var NotificationTemplatesResponse_1 = require("../models/NotificationTemplatesResponse");
|
|
105
106
|
var PaginatedResponseActionInvocationObject_1 = require("../models/PaginatedResponseActionInvocationObject");
|
|
106
107
|
var PaginatedResponseLogLineObject_1 = require("../models/PaginatedResponseLogLineObject");
|
|
@@ -4464,6 +4465,67 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
4464
4465
|
});
|
|
4465
4466
|
});
|
|
4466
4467
|
};
|
|
4468
|
+
/**
|
|
4469
|
+
* Creates request options for listUserSessions without sending the request
|
|
4470
|
+
*/
|
|
4471
|
+
ProjectsServerApi.prototype.listUserSessionsRequestOpts = function (requestParameters) {
|
|
4472
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4473
|
+
var queryParameters, headerParameters, urlPath;
|
|
4474
|
+
return __generator(this, function (_a) {
|
|
4475
|
+
if (requestParameters['projectId'] == null) {
|
|
4476
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUserSessions().');
|
|
4477
|
+
}
|
|
4478
|
+
if (requestParameters['userId'] == null) {
|
|
4479
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listUserSessions().');
|
|
4480
|
+
}
|
|
4481
|
+
queryParameters = {};
|
|
4482
|
+
headerParameters = {};
|
|
4483
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/sessions";
|
|
4484
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
4485
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
4486
|
+
return [2 /*return*/, {
|
|
4487
|
+
path: urlPath,
|
|
4488
|
+
method: 'GET',
|
|
4489
|
+
headers: headerParameters,
|
|
4490
|
+
query: queryParameters,
|
|
4491
|
+
}];
|
|
4492
|
+
});
|
|
4493
|
+
});
|
|
4494
|
+
};
|
|
4495
|
+
/**
|
|
4496
|
+
*/
|
|
4497
|
+
ProjectsServerApi.prototype.listUserSessionsRaw = function (requestParameters, initOverrides) {
|
|
4498
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4499
|
+
var requestOptions, response;
|
|
4500
|
+
return __generator(this, function (_a) {
|
|
4501
|
+
switch (_a.label) {
|
|
4502
|
+
case 0: return [4 /*yield*/, this.listUserSessionsRequestOpts(requestParameters)];
|
|
4503
|
+
case 1:
|
|
4504
|
+
requestOptions = _a.sent();
|
|
4505
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
4506
|
+
case 2:
|
|
4507
|
+
response = _a.sent();
|
|
4508
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListSessionsResponse_1.ListSessionsResponseFromJSON)(jsonValue); })];
|
|
4509
|
+
}
|
|
4510
|
+
});
|
|
4511
|
+
});
|
|
4512
|
+
};
|
|
4513
|
+
/**
|
|
4514
|
+
*/
|
|
4515
|
+
ProjectsServerApi.prototype.listUserSessions = function (requestParameters, initOverrides) {
|
|
4516
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4517
|
+
var response;
|
|
4518
|
+
return __generator(this, function (_a) {
|
|
4519
|
+
switch (_a.label) {
|
|
4520
|
+
case 0: return [4 /*yield*/, this.listUserSessionsRaw(requestParameters, initOverrides)];
|
|
4521
|
+
case 1:
|
|
4522
|
+
response = _a.sent();
|
|
4523
|
+
return [4 /*yield*/, response.value()];
|
|
4524
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
4525
|
+
}
|
|
4526
|
+
});
|
|
4527
|
+
});
|
|
4528
|
+
};
|
|
4467
4529
|
/**
|
|
4468
4530
|
* Creates request options for listUserSubscriptions without sending the request
|
|
4469
4531
|
*/
|
|
@@ -6278,6 +6340,128 @@ var ProjectsServerApi = /** @class */ (function (_super) {
|
|
|
6278
6340
|
});
|
|
6279
6341
|
});
|
|
6280
6342
|
};
|
|
6343
|
+
/**
|
|
6344
|
+
* Creates request options for revokeAllUserSessions without sending the request
|
|
6345
|
+
*/
|
|
6346
|
+
ProjectsServerApi.prototype.revokeAllUserSessionsRequestOpts = function (requestParameters) {
|
|
6347
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6348
|
+
var queryParameters, headerParameters, urlPath;
|
|
6349
|
+
return __generator(this, function (_a) {
|
|
6350
|
+
if (requestParameters['projectId'] == null) {
|
|
6351
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revokeAllUserSessions().');
|
|
6352
|
+
}
|
|
6353
|
+
if (requestParameters['userId'] == null) {
|
|
6354
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling revokeAllUserSessions().');
|
|
6355
|
+
}
|
|
6356
|
+
queryParameters = {};
|
|
6357
|
+
headerParameters = {};
|
|
6358
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/sessions";
|
|
6359
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
6360
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
6361
|
+
return [2 /*return*/, {
|
|
6362
|
+
path: urlPath,
|
|
6363
|
+
method: 'DELETE',
|
|
6364
|
+
headers: headerParameters,
|
|
6365
|
+
query: queryParameters,
|
|
6366
|
+
}];
|
|
6367
|
+
});
|
|
6368
|
+
});
|
|
6369
|
+
};
|
|
6370
|
+
/**
|
|
6371
|
+
*/
|
|
6372
|
+
ProjectsServerApi.prototype.revokeAllUserSessionsRaw = function (requestParameters, initOverrides) {
|
|
6373
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6374
|
+
var requestOptions, response;
|
|
6375
|
+
return __generator(this, function (_a) {
|
|
6376
|
+
switch (_a.label) {
|
|
6377
|
+
case 0: return [4 /*yield*/, this.revokeAllUserSessionsRequestOpts(requestParameters)];
|
|
6378
|
+
case 1:
|
|
6379
|
+
requestOptions = _a.sent();
|
|
6380
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
6381
|
+
case 2:
|
|
6382
|
+
response = _a.sent();
|
|
6383
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
6384
|
+
}
|
|
6385
|
+
});
|
|
6386
|
+
});
|
|
6387
|
+
};
|
|
6388
|
+
/**
|
|
6389
|
+
*/
|
|
6390
|
+
ProjectsServerApi.prototype.revokeAllUserSessions = function (requestParameters, initOverrides) {
|
|
6391
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6392
|
+
return __generator(this, function (_a) {
|
|
6393
|
+
switch (_a.label) {
|
|
6394
|
+
case 0: return [4 /*yield*/, this.revokeAllUserSessionsRaw(requestParameters, initOverrides)];
|
|
6395
|
+
case 1:
|
|
6396
|
+
_a.sent();
|
|
6397
|
+
return [2 /*return*/];
|
|
6398
|
+
}
|
|
6399
|
+
});
|
|
6400
|
+
});
|
|
6401
|
+
};
|
|
6402
|
+
/**
|
|
6403
|
+
* Creates request options for revokeUserSession without sending the request
|
|
6404
|
+
*/
|
|
6405
|
+
ProjectsServerApi.prototype.revokeUserSessionRequestOpts = function (requestParameters) {
|
|
6406
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6407
|
+
var queryParameters, headerParameters, urlPath;
|
|
6408
|
+
return __generator(this, function (_a) {
|
|
6409
|
+
if (requestParameters['projectId'] == null) {
|
|
6410
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revokeUserSession().');
|
|
6411
|
+
}
|
|
6412
|
+
if (requestParameters['userId'] == null) {
|
|
6413
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling revokeUserSession().');
|
|
6414
|
+
}
|
|
6415
|
+
if (requestParameters['sessionId'] == null) {
|
|
6416
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling revokeUserSession().');
|
|
6417
|
+
}
|
|
6418
|
+
queryParameters = {};
|
|
6419
|
+
headerParameters = {};
|
|
6420
|
+
urlPath = "/api/v1/projects/{projectId}/users/{userId}/sessions/{sessionId}";
|
|
6421
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
6422
|
+
urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
|
|
6423
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
6424
|
+
return [2 /*return*/, {
|
|
6425
|
+
path: urlPath,
|
|
6426
|
+
method: 'DELETE',
|
|
6427
|
+
headers: headerParameters,
|
|
6428
|
+
query: queryParameters,
|
|
6429
|
+
}];
|
|
6430
|
+
});
|
|
6431
|
+
});
|
|
6432
|
+
};
|
|
6433
|
+
/**
|
|
6434
|
+
*/
|
|
6435
|
+
ProjectsServerApi.prototype.revokeUserSessionRaw = function (requestParameters, initOverrides) {
|
|
6436
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6437
|
+
var requestOptions, response;
|
|
6438
|
+
return __generator(this, function (_a) {
|
|
6439
|
+
switch (_a.label) {
|
|
6440
|
+
case 0: return [4 /*yield*/, this.revokeUserSessionRequestOpts(requestParameters)];
|
|
6441
|
+
case 1:
|
|
6442
|
+
requestOptions = _a.sent();
|
|
6443
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
6444
|
+
case 2:
|
|
6445
|
+
response = _a.sent();
|
|
6446
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
6447
|
+
}
|
|
6448
|
+
});
|
|
6449
|
+
});
|
|
6450
|
+
};
|
|
6451
|
+
/**
|
|
6452
|
+
*/
|
|
6453
|
+
ProjectsServerApi.prototype.revokeUserSession = function (requestParameters, initOverrides) {
|
|
6454
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6455
|
+
return __generator(this, function (_a) {
|
|
6456
|
+
switch (_a.label) {
|
|
6457
|
+
case 0: return [4 /*yield*/, this.revokeUserSessionRaw(requestParameters, initOverrides)];
|
|
6458
|
+
case 1:
|
|
6459
|
+
_a.sent();
|
|
6460
|
+
return [2 /*return*/];
|
|
6461
|
+
}
|
|
6462
|
+
});
|
|
6463
|
+
});
|
|
6464
|
+
};
|
|
6281
6465
|
/**
|
|
6282
6466
|
* Creates request options for searchLogLines without sending the request
|
|
6283
6467
|
*/
|
|
@@ -7428,6 +7612,8 @@ exports.ListUserActionLogsActionTypeType = {
|
|
|
7428
7612
|
USER_LOGIN: 'USER_LOGIN',
|
|
7429
7613
|
USER_LOGOUT: 'USER_LOGOUT',
|
|
7430
7614
|
USER_LOGIN_OTP_SENT: 'USER_LOGIN_OTP_SENT',
|
|
7615
|
+
SESSION_REVOKED: 'SESSION_REVOKED',
|
|
7616
|
+
ALL_OTHER_SESSIONS_REVOKED: 'ALL_OTHER_SESSIONS_REVOKED',
|
|
7431
7617
|
PAYMENT_CREATED: 'PAYMENT_CREATED',
|
|
7432
7618
|
PAYMENT_REFUNDED: 'PAYMENT_REFUNDED',
|
|
7433
7619
|
PAYMENT_METHOD_SETUP_STARTED: 'PAYMENT_METHOD_SETUP_STARTED',
|
|
@@ -37,11 +37,13 @@ import { type CreateUserInviteRequest } from '../models/CreateUserInviteRequest'
|
|
|
37
37
|
import { type GetContentDownloadLinkResponse } from '../models/GetContentDownloadLinkResponse';
|
|
38
38
|
import { type ListContentResponse } from '../models/ListContentResponse';
|
|
39
39
|
import { type ListMfaMethodsResponse } from '../models/ListMfaMethodsResponse';
|
|
40
|
+
import { type ListSessionsResponse } from '../models/ListSessionsResponse';
|
|
40
41
|
import { type ListUserInvitesResponse } from '../models/ListUserInvitesResponse';
|
|
41
42
|
import { type LoginUserResponse } from '../models/LoginUserResponse';
|
|
42
43
|
import { type MfaChallengeRequest } from '../models/MfaChallengeRequest';
|
|
43
44
|
import { type MfaChallengeResponse } from '../models/MfaChallengeResponse';
|
|
44
45
|
import { type MfaVerifyRequest } from '../models/MfaVerifyRequest';
|
|
46
|
+
import { type PaginatedResponseLoginHistoryEntry } from '../models/PaginatedResponseLoginHistoryEntry';
|
|
45
47
|
import { type PaginatedResponsePaymentObject } from '../models/PaginatedResponsePaymentObject';
|
|
46
48
|
import { type PasswordLoginRequest } from '../models/PasswordLoginRequest';
|
|
47
49
|
import { type PaymentMethodObject } from '../models/PaymentMethodObject';
|
|
@@ -135,6 +137,13 @@ export interface GoogleAuthLoginCallbackRequest {
|
|
|
135
137
|
credential: string;
|
|
136
138
|
recaptchaToken?: string;
|
|
137
139
|
}
|
|
140
|
+
export interface ListLoginHistoryRequest {
|
|
141
|
+
projectId: string;
|
|
142
|
+
authorization?: string;
|
|
143
|
+
minTime?: Date;
|
|
144
|
+
maxTime?: Date;
|
|
145
|
+
nextToken?: string;
|
|
146
|
+
}
|
|
138
147
|
export interface ListMfaMethodsRequest {
|
|
139
148
|
projectId: string;
|
|
140
149
|
authorization?: string;
|
|
@@ -154,6 +163,10 @@ export interface ListMySubscriptionsRequest {
|
|
|
154
163
|
page?: number;
|
|
155
164
|
pageSize?: number;
|
|
156
165
|
}
|
|
166
|
+
export interface ListSessionsRequest {
|
|
167
|
+
projectId: string;
|
|
168
|
+
authorization?: string;
|
|
169
|
+
}
|
|
157
170
|
export interface ListUserInvitesRequest {
|
|
158
171
|
projectId: string;
|
|
159
172
|
authorization?: string;
|
|
@@ -202,6 +215,15 @@ export interface ResendLoginOtpRequest {
|
|
|
202
215
|
projectId: string;
|
|
203
216
|
pendingLoginId: string;
|
|
204
217
|
}
|
|
218
|
+
export interface RevokeOtherSessionsRequest {
|
|
219
|
+
projectId: string;
|
|
220
|
+
authorization?: string;
|
|
221
|
+
}
|
|
222
|
+
export interface RevokeSessionRequest {
|
|
223
|
+
projectId: string;
|
|
224
|
+
sessionId: string;
|
|
225
|
+
authorization?: string;
|
|
226
|
+
}
|
|
205
227
|
export interface RevokeUserInviteRequest {
|
|
206
228
|
projectId: string;
|
|
207
229
|
inviteId: string;
|
|
@@ -480,6 +502,16 @@ export declare class UsersServerApi extends runtime.BaseAPI {
|
|
|
480
502
|
/**
|
|
481
503
|
*/
|
|
482
504
|
googleAuthLoginCallback(requestParameters: GoogleAuthLoginCallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginUserResponse>;
|
|
505
|
+
/**
|
|
506
|
+
* Creates request options for listLoginHistory without sending the request
|
|
507
|
+
*/
|
|
508
|
+
listLoginHistoryRequestOpts(requestParameters: ListLoginHistoryRequest): Promise<runtime.RequestOpts>;
|
|
509
|
+
/**
|
|
510
|
+
*/
|
|
511
|
+
listLoginHistoryRaw(requestParameters: ListLoginHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseLoginHistoryEntry>>;
|
|
512
|
+
/**
|
|
513
|
+
*/
|
|
514
|
+
listLoginHistory(requestParameters: ListLoginHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseLoginHistoryEntry>;
|
|
483
515
|
/**
|
|
484
516
|
* Creates request options for listMfaMethods without sending the request
|
|
485
517
|
*/
|
|
@@ -510,6 +542,16 @@ export declare class UsersServerApi extends runtime.BaseAPI {
|
|
|
510
542
|
/**
|
|
511
543
|
*/
|
|
512
544
|
listMySubscriptions(requestParameters: ListMySubscriptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SubscriptionObject>>;
|
|
545
|
+
/**
|
|
546
|
+
* Creates request options for listSessions without sending the request
|
|
547
|
+
*/
|
|
548
|
+
listSessionsRequestOpts(requestParameters: ListSessionsRequest): Promise<runtime.RequestOpts>;
|
|
549
|
+
/**
|
|
550
|
+
*/
|
|
551
|
+
listSessionsRaw(requestParameters: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListSessionsResponse>>;
|
|
552
|
+
/**
|
|
553
|
+
*/
|
|
554
|
+
listSessions(requestParameters: ListSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
513
555
|
/**
|
|
514
556
|
* Creates request options for listUserInvites without sending the request
|
|
515
557
|
*/
|
|
@@ -610,6 +652,26 @@ export declare class UsersServerApi extends runtime.BaseAPI {
|
|
|
610
652
|
/**
|
|
611
653
|
*/
|
|
612
654
|
resendLoginOtp(requestParameters: ResendLoginOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOtpLoginResponse>;
|
|
655
|
+
/**
|
|
656
|
+
* Creates request options for revokeOtherSessions without sending the request
|
|
657
|
+
*/
|
|
658
|
+
revokeOtherSessionsRequestOpts(requestParameters: RevokeOtherSessionsRequest): Promise<runtime.RequestOpts>;
|
|
659
|
+
/**
|
|
660
|
+
*/
|
|
661
|
+
revokeOtherSessionsRaw(requestParameters: RevokeOtherSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
662
|
+
/**
|
|
663
|
+
*/
|
|
664
|
+
revokeOtherSessions(requestParameters: RevokeOtherSessionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
665
|
+
/**
|
|
666
|
+
* Creates request options for revokeSession without sending the request
|
|
667
|
+
*/
|
|
668
|
+
revokeSessionRequestOpts(requestParameters: RevokeSessionRequest): Promise<runtime.RequestOpts>;
|
|
669
|
+
/**
|
|
670
|
+
*/
|
|
671
|
+
revokeSessionRaw(requestParameters: RevokeSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
672
|
+
/**
|
|
673
|
+
*/
|
|
674
|
+
revokeSession(requestParameters: RevokeSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
613
675
|
/**
|
|
614
676
|
* Creates request options for revokeUserInvite without sending the request
|
|
615
677
|
*/
|
|
@@ -93,11 +93,13 @@ var CreateUserInviteRequest_1 = require("../models/CreateUserInviteRequest");
|
|
|
93
93
|
var GetContentDownloadLinkResponse_1 = require("../models/GetContentDownloadLinkResponse");
|
|
94
94
|
var ListContentResponse_1 = require("../models/ListContentResponse");
|
|
95
95
|
var ListMfaMethodsResponse_1 = require("../models/ListMfaMethodsResponse");
|
|
96
|
+
var ListSessionsResponse_1 = require("../models/ListSessionsResponse");
|
|
96
97
|
var ListUserInvitesResponse_1 = require("../models/ListUserInvitesResponse");
|
|
97
98
|
var LoginUserResponse_1 = require("../models/LoginUserResponse");
|
|
98
99
|
var MfaChallengeRequest_1 = require("../models/MfaChallengeRequest");
|
|
99
100
|
var MfaChallengeResponse_1 = require("../models/MfaChallengeResponse");
|
|
100
101
|
var MfaVerifyRequest_1 = require("../models/MfaVerifyRequest");
|
|
102
|
+
var PaginatedResponseLoginHistoryEntry_1 = require("../models/PaginatedResponseLoginHistoryEntry");
|
|
101
103
|
var PaginatedResponsePaymentObject_1 = require("../models/PaginatedResponsePaymentObject");
|
|
102
104
|
var PasswordLoginRequest_1 = require("../models/PasswordLoginRequest");
|
|
103
105
|
var PaymentMethodObject_1 = require("../models/PaymentMethodObject");
|
|
@@ -1153,6 +1155,75 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1153
1155
|
});
|
|
1154
1156
|
});
|
|
1155
1157
|
};
|
|
1158
|
+
/**
|
|
1159
|
+
* Creates request options for listLoginHistory without sending the request
|
|
1160
|
+
*/
|
|
1161
|
+
UsersServerApi.prototype.listLoginHistoryRequestOpts = function (requestParameters) {
|
|
1162
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1163
|
+
var queryParameters, headerParameters, urlPath;
|
|
1164
|
+
return __generator(this, function (_a) {
|
|
1165
|
+
if (requestParameters['projectId'] == null) {
|
|
1166
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listLoginHistory().');
|
|
1167
|
+
}
|
|
1168
|
+
queryParameters = {};
|
|
1169
|
+
if (requestParameters['minTime'] != null) {
|
|
1170
|
+
queryParameters['minTime'] = requestParameters['minTime'].toISOString();
|
|
1171
|
+
}
|
|
1172
|
+
if (requestParameters['maxTime'] != null) {
|
|
1173
|
+
queryParameters['maxTime'] = requestParameters['maxTime'].toISOString();
|
|
1174
|
+
}
|
|
1175
|
+
if (requestParameters['nextToken'] != null) {
|
|
1176
|
+
queryParameters['nextToken'] = requestParameters['nextToken'];
|
|
1177
|
+
}
|
|
1178
|
+
headerParameters = {};
|
|
1179
|
+
if (requestParameters['authorization'] != null) {
|
|
1180
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
1181
|
+
}
|
|
1182
|
+
urlPath = "/api/v1/{projectId}/users/me/login-history";
|
|
1183
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1184
|
+
return [2 /*return*/, {
|
|
1185
|
+
path: urlPath,
|
|
1186
|
+
method: 'GET',
|
|
1187
|
+
headers: headerParameters,
|
|
1188
|
+
query: queryParameters,
|
|
1189
|
+
}];
|
|
1190
|
+
});
|
|
1191
|
+
});
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
*/
|
|
1195
|
+
UsersServerApi.prototype.listLoginHistoryRaw = function (requestParameters, initOverrides) {
|
|
1196
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1197
|
+
var requestOptions, response;
|
|
1198
|
+
return __generator(this, function (_a) {
|
|
1199
|
+
switch (_a.label) {
|
|
1200
|
+
case 0: return [4 /*yield*/, this.listLoginHistoryRequestOpts(requestParameters)];
|
|
1201
|
+
case 1:
|
|
1202
|
+
requestOptions = _a.sent();
|
|
1203
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1204
|
+
case 2:
|
|
1205
|
+
response = _a.sent();
|
|
1206
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseLoginHistoryEntry_1.PaginatedResponseLoginHistoryEntryFromJSON)(jsonValue); })];
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
});
|
|
1210
|
+
};
|
|
1211
|
+
/**
|
|
1212
|
+
*/
|
|
1213
|
+
UsersServerApi.prototype.listLoginHistory = function (requestParameters, initOverrides) {
|
|
1214
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1215
|
+
var response;
|
|
1216
|
+
return __generator(this, function (_a) {
|
|
1217
|
+
switch (_a.label) {
|
|
1218
|
+
case 0: return [4 /*yield*/, this.listLoginHistoryRaw(requestParameters, initOverrides)];
|
|
1219
|
+
case 1:
|
|
1220
|
+
response = _a.sent();
|
|
1221
|
+
return [4 /*yield*/, response.value()];
|
|
1222
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1223
|
+
}
|
|
1224
|
+
});
|
|
1225
|
+
});
|
|
1226
|
+
};
|
|
1156
1227
|
/**
|
|
1157
1228
|
* Creates request options for listMfaMethods without sending the request
|
|
1158
1229
|
*/
|
|
@@ -1354,6 +1425,66 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1354
1425
|
});
|
|
1355
1426
|
});
|
|
1356
1427
|
};
|
|
1428
|
+
/**
|
|
1429
|
+
* Creates request options for listSessions without sending the request
|
|
1430
|
+
*/
|
|
1431
|
+
UsersServerApi.prototype.listSessionsRequestOpts = function (requestParameters) {
|
|
1432
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1433
|
+
var queryParameters, headerParameters, urlPath;
|
|
1434
|
+
return __generator(this, function (_a) {
|
|
1435
|
+
if (requestParameters['projectId'] == null) {
|
|
1436
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listSessions().');
|
|
1437
|
+
}
|
|
1438
|
+
queryParameters = {};
|
|
1439
|
+
headerParameters = {};
|
|
1440
|
+
if (requestParameters['authorization'] != null) {
|
|
1441
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
1442
|
+
}
|
|
1443
|
+
urlPath = "/api/v1/{projectId}/users/me/sessions";
|
|
1444
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
1445
|
+
return [2 /*return*/, {
|
|
1446
|
+
path: urlPath,
|
|
1447
|
+
method: 'GET',
|
|
1448
|
+
headers: headerParameters,
|
|
1449
|
+
query: queryParameters,
|
|
1450
|
+
}];
|
|
1451
|
+
});
|
|
1452
|
+
});
|
|
1453
|
+
};
|
|
1454
|
+
/**
|
|
1455
|
+
*/
|
|
1456
|
+
UsersServerApi.prototype.listSessionsRaw = function (requestParameters, initOverrides) {
|
|
1457
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1458
|
+
var requestOptions, response;
|
|
1459
|
+
return __generator(this, function (_a) {
|
|
1460
|
+
switch (_a.label) {
|
|
1461
|
+
case 0: return [4 /*yield*/, this.listSessionsRequestOpts(requestParameters)];
|
|
1462
|
+
case 1:
|
|
1463
|
+
requestOptions = _a.sent();
|
|
1464
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
1465
|
+
case 2:
|
|
1466
|
+
response = _a.sent();
|
|
1467
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ListSessionsResponse_1.ListSessionsResponseFromJSON)(jsonValue); })];
|
|
1468
|
+
}
|
|
1469
|
+
});
|
|
1470
|
+
});
|
|
1471
|
+
};
|
|
1472
|
+
/**
|
|
1473
|
+
*/
|
|
1474
|
+
UsersServerApi.prototype.listSessions = function (requestParameters, initOverrides) {
|
|
1475
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1476
|
+
var response;
|
|
1477
|
+
return __generator(this, function (_a) {
|
|
1478
|
+
switch (_a.label) {
|
|
1479
|
+
case 0: return [4 /*yield*/, this.listSessionsRaw(requestParameters, initOverrides)];
|
|
1480
|
+
case 1:
|
|
1481
|
+
response = _a.sent();
|
|
1482
|
+
return [4 /*yield*/, response.value()];
|
|
1483
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1484
|
+
}
|
|
1485
|
+
});
|
|
1486
|
+
});
|
|
1487
|
+
};
|
|
1357
1488
|
/**
|
|
1358
1489
|
* Creates request options for listUserInvites without sending the request
|
|
1359
1490
|
*/
|
|
@@ -1980,6 +2111,126 @@ var UsersServerApi = /** @class */ (function (_super) {
|
|
|
1980
2111
|
});
|
|
1981
2112
|
});
|
|
1982
2113
|
};
|
|
2114
|
+
/**
|
|
2115
|
+
* Creates request options for revokeOtherSessions without sending the request
|
|
2116
|
+
*/
|
|
2117
|
+
UsersServerApi.prototype.revokeOtherSessionsRequestOpts = function (requestParameters) {
|
|
2118
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2119
|
+
var queryParameters, headerParameters, urlPath;
|
|
2120
|
+
return __generator(this, function (_a) {
|
|
2121
|
+
if (requestParameters['projectId'] == null) {
|
|
2122
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revokeOtherSessions().');
|
|
2123
|
+
}
|
|
2124
|
+
queryParameters = {};
|
|
2125
|
+
headerParameters = {};
|
|
2126
|
+
if (requestParameters['authorization'] != null) {
|
|
2127
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
2128
|
+
}
|
|
2129
|
+
urlPath = "/api/v1/{projectId}/users/me/sessions";
|
|
2130
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2131
|
+
return [2 /*return*/, {
|
|
2132
|
+
path: urlPath,
|
|
2133
|
+
method: 'DELETE',
|
|
2134
|
+
headers: headerParameters,
|
|
2135
|
+
query: queryParameters,
|
|
2136
|
+
}];
|
|
2137
|
+
});
|
|
2138
|
+
});
|
|
2139
|
+
};
|
|
2140
|
+
/**
|
|
2141
|
+
*/
|
|
2142
|
+
UsersServerApi.prototype.revokeOtherSessionsRaw = function (requestParameters, initOverrides) {
|
|
2143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2144
|
+
var requestOptions, response;
|
|
2145
|
+
return __generator(this, function (_a) {
|
|
2146
|
+
switch (_a.label) {
|
|
2147
|
+
case 0: return [4 /*yield*/, this.revokeOtherSessionsRequestOpts(requestParameters)];
|
|
2148
|
+
case 1:
|
|
2149
|
+
requestOptions = _a.sent();
|
|
2150
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2151
|
+
case 2:
|
|
2152
|
+
response = _a.sent();
|
|
2153
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2154
|
+
}
|
|
2155
|
+
});
|
|
2156
|
+
});
|
|
2157
|
+
};
|
|
2158
|
+
/**
|
|
2159
|
+
*/
|
|
2160
|
+
UsersServerApi.prototype.revokeOtherSessions = function (requestParameters, initOverrides) {
|
|
2161
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2162
|
+
return __generator(this, function (_a) {
|
|
2163
|
+
switch (_a.label) {
|
|
2164
|
+
case 0: return [4 /*yield*/, this.revokeOtherSessionsRaw(requestParameters, initOverrides)];
|
|
2165
|
+
case 1:
|
|
2166
|
+
_a.sent();
|
|
2167
|
+
return [2 /*return*/];
|
|
2168
|
+
}
|
|
2169
|
+
});
|
|
2170
|
+
});
|
|
2171
|
+
};
|
|
2172
|
+
/**
|
|
2173
|
+
* Creates request options for revokeSession without sending the request
|
|
2174
|
+
*/
|
|
2175
|
+
UsersServerApi.prototype.revokeSessionRequestOpts = function (requestParameters) {
|
|
2176
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2177
|
+
var queryParameters, headerParameters, urlPath;
|
|
2178
|
+
return __generator(this, function (_a) {
|
|
2179
|
+
if (requestParameters['projectId'] == null) {
|
|
2180
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revokeSession().');
|
|
2181
|
+
}
|
|
2182
|
+
if (requestParameters['sessionId'] == null) {
|
|
2183
|
+
throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling revokeSession().');
|
|
2184
|
+
}
|
|
2185
|
+
queryParameters = {};
|
|
2186
|
+
headerParameters = {};
|
|
2187
|
+
if (requestParameters['authorization'] != null) {
|
|
2188
|
+
headerParameters['Authorization'] = String(requestParameters['authorization']);
|
|
2189
|
+
}
|
|
2190
|
+
urlPath = "/api/v1/{projectId}/users/me/sessions/{sessionId}";
|
|
2191
|
+
urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
|
|
2192
|
+
urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
|
|
2193
|
+
return [2 /*return*/, {
|
|
2194
|
+
path: urlPath,
|
|
2195
|
+
method: 'DELETE',
|
|
2196
|
+
headers: headerParameters,
|
|
2197
|
+
query: queryParameters,
|
|
2198
|
+
}];
|
|
2199
|
+
});
|
|
2200
|
+
});
|
|
2201
|
+
};
|
|
2202
|
+
/**
|
|
2203
|
+
*/
|
|
2204
|
+
UsersServerApi.prototype.revokeSessionRaw = function (requestParameters, initOverrides) {
|
|
2205
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2206
|
+
var requestOptions, response;
|
|
2207
|
+
return __generator(this, function (_a) {
|
|
2208
|
+
switch (_a.label) {
|
|
2209
|
+
case 0: return [4 /*yield*/, this.revokeSessionRequestOpts(requestParameters)];
|
|
2210
|
+
case 1:
|
|
2211
|
+
requestOptions = _a.sent();
|
|
2212
|
+
return [4 /*yield*/, this.request(requestOptions, initOverrides)];
|
|
2213
|
+
case 2:
|
|
2214
|
+
response = _a.sent();
|
|
2215
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2216
|
+
}
|
|
2217
|
+
});
|
|
2218
|
+
});
|
|
2219
|
+
};
|
|
2220
|
+
/**
|
|
2221
|
+
*/
|
|
2222
|
+
UsersServerApi.prototype.revokeSession = function (requestParameters, initOverrides) {
|
|
2223
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2224
|
+
return __generator(this, function (_a) {
|
|
2225
|
+
switch (_a.label) {
|
|
2226
|
+
case 0: return [4 /*yield*/, this.revokeSessionRaw(requestParameters, initOverrides)];
|
|
2227
|
+
case 1:
|
|
2228
|
+
_a.sent();
|
|
2229
|
+
return [2 /*return*/];
|
|
2230
|
+
}
|
|
2231
|
+
});
|
|
2232
|
+
});
|
|
2233
|
+
};
|
|
1983
2234
|
/**
|
|
1984
2235
|
* Creates request options for revokeUserInvite without sending the request
|
|
1985
2236
|
*/
|
|
@@ -86,6 +86,7 @@ export declare const ForteApiExceptionErrorCodeType: {
|
|
|
86
86
|
readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
|
|
87
87
|
readonly GOOGLE_OAUTH_NOT_CONFIGURED: "GOOGLE_OAUTH_NOT_CONFIGURED";
|
|
88
88
|
readonly TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: "TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED";
|
|
89
|
+
readonly TERMS_OF_SERVICE_NOT_ACCEPTED: "TERMS_OF_SERVICE_NOT_ACCEPTED";
|
|
89
90
|
readonly API_KEY_NOT_FOUND: "API_KEY_NOT_FOUND";
|
|
90
91
|
readonly CANNOT_DELETE_SYSTEM_API_KEY: "CANNOT_DELETE_SYSTEM_API_KEY";
|
|
91
92
|
readonly SUPPORT_CASE_CLOSED: "SUPPORT_CASE_CLOSED";
|
|
@@ -71,6 +71,7 @@ exports.ForteApiExceptionErrorCodeType = {
|
|
|
71
71
|
SERVICE_QUOTA_EXCEEDED: 'SERVICE_QUOTA_EXCEEDED',
|
|
72
72
|
GOOGLE_OAUTH_NOT_CONFIGURED: 'GOOGLE_OAUTH_NOT_CONFIGURED',
|
|
73
73
|
TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: 'TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED',
|
|
74
|
+
TERMS_OF_SERVICE_NOT_ACCEPTED: 'TERMS_OF_SERVICE_NOT_ACCEPTED',
|
|
74
75
|
API_KEY_NOT_FOUND: 'API_KEY_NOT_FOUND',
|
|
75
76
|
CANNOT_DELETE_SYSTEM_API_KEY: 'CANNOT_DELETE_SYSTEM_API_KEY',
|
|
76
77
|
SUPPORT_CASE_CLOSED: 'SUPPORT_CASE_CLOSED',
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SessionSummary } from './SessionSummary';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListSessionsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListSessionsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SessionSummary>}
|
|
22
|
+
* @memberof ListSessionsResponse
|
|
23
|
+
*/
|
|
24
|
+
sessions: Array<SessionSummary>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the ListSessionsResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfListSessionsResponse(value: object): value is ListSessionsResponse;
|
|
30
|
+
export declare function ListSessionsResponseFromJSON(json: any): ListSessionsResponse;
|
|
31
|
+
export declare function ListSessionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListSessionsResponse;
|
|
32
|
+
export declare function ListSessionsResponseToJSON(json: any): ListSessionsResponse;
|
|
33
|
+
export declare function ListSessionsResponseToJSONTyped(value?: ListSessionsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfListSessionsResponse = instanceOfListSessionsResponse;
|
|
17
|
+
exports.ListSessionsResponseFromJSON = ListSessionsResponseFromJSON;
|
|
18
|
+
exports.ListSessionsResponseFromJSONTyped = ListSessionsResponseFromJSONTyped;
|
|
19
|
+
exports.ListSessionsResponseToJSON = ListSessionsResponseToJSON;
|
|
20
|
+
exports.ListSessionsResponseToJSONTyped = ListSessionsResponseToJSONTyped;
|
|
21
|
+
var SessionSummary_1 = require("./SessionSummary");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the ListSessionsResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfListSessionsResponse(value) {
|
|
26
|
+
if (!('sessions' in value) || value['sessions'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function ListSessionsResponseFromJSON(json) {
|
|
31
|
+
return ListSessionsResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function ListSessionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'sessions': (json['sessions'].map(SessionSummary_1.SessionSummaryFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function ListSessionsResponseToJSON(json) {
|
|
42
|
+
return ListSessionsResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ListSessionsResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'sessions': (value['sessions'].map(SessionSummary_1.SessionSummaryToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LoginHistoryEntry
|
|
16
|
+
*/
|
|
17
|
+
export interface LoginHistoryEntry {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof LoginHistoryEntry
|
|
22
|
+
*/
|
|
23
|
+
timestamp: Date;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof LoginHistoryEntry
|
|
28
|
+
*/
|
|
29
|
+
sourceIpAddress?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the LoginHistoryEntry interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfLoginHistoryEntry(value: object): value is LoginHistoryEntry;
|
|
35
|
+
export declare function LoginHistoryEntryFromJSON(json: any): LoginHistoryEntry;
|
|
36
|
+
export declare function LoginHistoryEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginHistoryEntry;
|
|
37
|
+
export declare function LoginHistoryEntryToJSON(json: any): LoginHistoryEntry;
|
|
38
|
+
export declare function LoginHistoryEntryToJSONTyped(value?: LoginHistoryEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfLoginHistoryEntry = instanceOfLoginHistoryEntry;
|
|
17
|
+
exports.LoginHistoryEntryFromJSON = LoginHistoryEntryFromJSON;
|
|
18
|
+
exports.LoginHistoryEntryFromJSONTyped = LoginHistoryEntryFromJSONTyped;
|
|
19
|
+
exports.LoginHistoryEntryToJSON = LoginHistoryEntryToJSON;
|
|
20
|
+
exports.LoginHistoryEntryToJSONTyped = LoginHistoryEntryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the LoginHistoryEntry interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfLoginHistoryEntry(value) {
|
|
25
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function LoginHistoryEntryFromJSON(json) {
|
|
30
|
+
return LoginHistoryEntryFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function LoginHistoryEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'timestamp': (new Date(json['timestamp'])),
|
|
38
|
+
'sourceIpAddress': json['sourceIpAddress'] == null ? undefined : json['sourceIpAddress'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function LoginHistoryEntryToJSON(json) {
|
|
42
|
+
return LoginHistoryEntryToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function LoginHistoryEntryToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'timestamp': value['timestamp'].toISOString(),
|
|
51
|
+
'sourceIpAddress': value['sourceIpAddress'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { LoginHistoryEntry } from './LoginHistoryEntry';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseLoginHistoryEntry
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseLoginHistoryEntry {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<LoginHistoryEntry>}
|
|
22
|
+
* @memberof PaginatedResponseLoginHistoryEntry
|
|
23
|
+
*/
|
|
24
|
+
items: Array<LoginHistoryEntry>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof PaginatedResponseLoginHistoryEntry
|
|
29
|
+
*/
|
|
30
|
+
hasNextPage: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PaginatedResponseLoginHistoryEntry
|
|
35
|
+
*/
|
|
36
|
+
nextPageToken?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the PaginatedResponseLoginHistoryEntry interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfPaginatedResponseLoginHistoryEntry(value: object): value is PaginatedResponseLoginHistoryEntry;
|
|
42
|
+
export declare function PaginatedResponseLoginHistoryEntryFromJSON(json: any): PaginatedResponseLoginHistoryEntry;
|
|
43
|
+
export declare function PaginatedResponseLoginHistoryEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseLoginHistoryEntry;
|
|
44
|
+
export declare function PaginatedResponseLoginHistoryEntryToJSON(json: any): PaginatedResponseLoginHistoryEntry;
|
|
45
|
+
export declare function PaginatedResponseLoginHistoryEntryToJSONTyped(value?: PaginatedResponseLoginHistoryEntry | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaginatedResponseLoginHistoryEntry = instanceOfPaginatedResponseLoginHistoryEntry;
|
|
17
|
+
exports.PaginatedResponseLoginHistoryEntryFromJSON = PaginatedResponseLoginHistoryEntryFromJSON;
|
|
18
|
+
exports.PaginatedResponseLoginHistoryEntryFromJSONTyped = PaginatedResponseLoginHistoryEntryFromJSONTyped;
|
|
19
|
+
exports.PaginatedResponseLoginHistoryEntryToJSON = PaginatedResponseLoginHistoryEntryToJSON;
|
|
20
|
+
exports.PaginatedResponseLoginHistoryEntryToJSONTyped = PaginatedResponseLoginHistoryEntryToJSONTyped;
|
|
21
|
+
var LoginHistoryEntry_1 = require("./LoginHistoryEntry");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PaginatedResponseLoginHistoryEntry interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPaginatedResponseLoginHistoryEntry(value) {
|
|
26
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('hasNextPage' in value) || value['hasNextPage'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function PaginatedResponseLoginHistoryEntryFromJSON(json) {
|
|
33
|
+
return PaginatedResponseLoginHistoryEntryFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function PaginatedResponseLoginHistoryEntryFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'items': (json['items'].map(LoginHistoryEntry_1.LoginHistoryEntryFromJSON)),
|
|
41
|
+
'hasNextPage': json['hasNextPage'],
|
|
42
|
+
'nextPageToken': json['nextPageToken'] == null ? undefined : json['nextPageToken'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PaginatedResponseLoginHistoryEntryToJSON(json) {
|
|
46
|
+
return PaginatedResponseLoginHistoryEntryToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PaginatedResponseLoginHistoryEntryToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'items': (value['items'].map(LoginHistoryEntry_1.LoginHistoryEntryToJSON)),
|
|
55
|
+
'hasNextPage': value['hasNextPage'],
|
|
56
|
+
'nextPageToken': value['nextPageToken'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SessionSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface SessionSummary {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SessionSummary
|
|
22
|
+
*/
|
|
23
|
+
sessionId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof SessionSummary
|
|
28
|
+
*/
|
|
29
|
+
creationTime: Date;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Date}
|
|
33
|
+
* @memberof SessionSummary
|
|
34
|
+
*/
|
|
35
|
+
expirationTime?: Date;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof SessionSummary
|
|
40
|
+
*/
|
|
41
|
+
lastActivityAt?: Date;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SessionSummary
|
|
46
|
+
*/
|
|
47
|
+
sourceIpAddress?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SessionSummary
|
|
52
|
+
*/
|
|
53
|
+
approximateLocation?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof SessionSummary
|
|
58
|
+
*/
|
|
59
|
+
current?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {boolean}
|
|
63
|
+
* @memberof SessionSummary
|
|
64
|
+
*/
|
|
65
|
+
impersonation?: boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the SessionSummary interface.
|
|
69
|
+
*/
|
|
70
|
+
export declare function instanceOfSessionSummary(value: object): value is SessionSummary;
|
|
71
|
+
export declare function SessionSummaryFromJSON(json: any): SessionSummary;
|
|
72
|
+
export declare function SessionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SessionSummary;
|
|
73
|
+
export declare function SessionSummaryToJSON(json: any): SessionSummary;
|
|
74
|
+
export declare function SessionSummaryToJSONTyped(value?: SessionSummary | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* OpenAPI definition
|
|
6
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSessionSummary = instanceOfSessionSummary;
|
|
17
|
+
exports.SessionSummaryFromJSON = SessionSummaryFromJSON;
|
|
18
|
+
exports.SessionSummaryFromJSONTyped = SessionSummaryFromJSONTyped;
|
|
19
|
+
exports.SessionSummaryToJSON = SessionSummaryToJSON;
|
|
20
|
+
exports.SessionSummaryToJSONTyped = SessionSummaryToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SessionSummary interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSessionSummary(value) {
|
|
25
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('creationTime' in value) || value['creationTime'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function SessionSummaryFromJSON(json) {
|
|
32
|
+
return SessionSummaryFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function SessionSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'sessionId': json['sessionId'],
|
|
40
|
+
'creationTime': (new Date(json['creationTime'])),
|
|
41
|
+
'expirationTime': json['expirationTime'] == null ? undefined : (new Date(json['expirationTime'])),
|
|
42
|
+
'lastActivityAt': json['lastActivityAt'] == null ? undefined : (new Date(json['lastActivityAt'])),
|
|
43
|
+
'sourceIpAddress': json['sourceIpAddress'] == null ? undefined : json['sourceIpAddress'],
|
|
44
|
+
'approximateLocation': json['approximateLocation'] == null ? undefined : json['approximateLocation'],
|
|
45
|
+
'current': json['current'] == null ? undefined : json['current'],
|
|
46
|
+
'impersonation': json['impersonation'] == null ? undefined : json['impersonation'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function SessionSummaryToJSON(json) {
|
|
50
|
+
return SessionSummaryToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function SessionSummaryToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'sessionId': value['sessionId'],
|
|
59
|
+
'creationTime': value['creationTime'].toISOString(),
|
|
60
|
+
'expirationTime': value['expirationTime'] == null ? value['expirationTime'] : value['expirationTime'].toISOString(),
|
|
61
|
+
'lastActivityAt': value['lastActivityAt'] == null ? value['lastActivityAt'] : value['lastActivityAt'].toISOString(),
|
|
62
|
+
'sourceIpAddress': value['sourceIpAddress'],
|
|
63
|
+
'approximateLocation': value['approximateLocation'],
|
|
64
|
+
'current': value['current'],
|
|
65
|
+
'impersonation': value['impersonation'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -51,6 +51,12 @@ export interface UserActionLogObject {
|
|
|
51
51
|
* @memberof UserActionLogObject
|
|
52
52
|
*/
|
|
53
53
|
performedByAccountId?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UserActionLogObject
|
|
58
|
+
*/
|
|
59
|
+
sourceIpAddress?: string;
|
|
54
60
|
/**
|
|
55
61
|
*
|
|
56
62
|
* @type {{ [key: string]: string; }}
|
|
@@ -79,6 +85,8 @@ export declare const UserActionLogObjectActionTypeType: {
|
|
|
79
85
|
readonly USER_LOGIN: "USER_LOGIN";
|
|
80
86
|
readonly USER_LOGOUT: "USER_LOGOUT";
|
|
81
87
|
readonly USER_LOGIN_OTP_SENT: "USER_LOGIN_OTP_SENT";
|
|
88
|
+
readonly SESSION_REVOKED: "SESSION_REVOKED";
|
|
89
|
+
readonly ALL_OTHER_SESSIONS_REVOKED: "ALL_OTHER_SESSIONS_REVOKED";
|
|
82
90
|
readonly PAYMENT_CREATED: "PAYMENT_CREATED";
|
|
83
91
|
readonly PAYMENT_REFUNDED: "PAYMENT_REFUNDED";
|
|
84
92
|
readonly PAYMENT_METHOD_SETUP_STARTED: "PAYMENT_METHOD_SETUP_STARTED";
|
|
@@ -38,6 +38,8 @@ exports.UserActionLogObjectActionTypeType = {
|
|
|
38
38
|
USER_LOGIN: 'USER_LOGIN',
|
|
39
39
|
USER_LOGOUT: 'USER_LOGOUT',
|
|
40
40
|
USER_LOGIN_OTP_SENT: 'USER_LOGIN_OTP_SENT',
|
|
41
|
+
SESSION_REVOKED: 'SESSION_REVOKED',
|
|
42
|
+
ALL_OTHER_SESSIONS_REVOKED: 'ALL_OTHER_SESSIONS_REVOKED',
|
|
41
43
|
PAYMENT_CREATED: 'PAYMENT_CREATED',
|
|
42
44
|
PAYMENT_REFUNDED: 'PAYMENT_REFUNDED',
|
|
43
45
|
PAYMENT_METHOD_SETUP_STARTED: 'PAYMENT_METHOD_SETUP_STARTED',
|
|
@@ -95,6 +97,7 @@ function UserActionLogObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
95
97
|
'contactMethodId': json['contactMethodId'] == null ? undefined : json['contactMethodId'],
|
|
96
98
|
'paymentMethodId': json['paymentMethodId'] == null ? undefined : json['paymentMethodId'],
|
|
97
99
|
'performedByAccountId': json['performedByAccountId'] == null ? undefined : json['performedByAccountId'],
|
|
100
|
+
'sourceIpAddress': json['sourceIpAddress'] == null ? undefined : json['sourceIpAddress'],
|
|
98
101
|
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
99
102
|
};
|
|
100
103
|
}
|
|
@@ -113,6 +116,7 @@ function UserActionLogObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
113
116
|
'contactMethodId': value['contactMethodId'],
|
|
114
117
|
'paymentMethodId': value['paymentMethodId'],
|
|
115
118
|
'performedByAccountId': value['performedByAccountId'],
|
|
119
|
+
'sourceIpAddress': value['sourceIpAddress'],
|
|
116
120
|
'metadata': value['metadata'],
|
|
117
121
|
};
|
|
118
122
|
}
|
|
@@ -123,16 +123,16 @@ export interface UserObject {
|
|
|
123
123
|
backupCodesGeneratedAt?: Date;
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
|
-
* @type {
|
|
126
|
+
* @type {boolean}
|
|
127
127
|
* @memberof UserObject
|
|
128
128
|
*/
|
|
129
|
-
|
|
129
|
+
hasPassword?: boolean;
|
|
130
130
|
/**
|
|
131
131
|
*
|
|
132
|
-
* @type {
|
|
132
|
+
* @type {number}
|
|
133
133
|
* @memberof UserObject
|
|
134
134
|
*/
|
|
135
|
-
|
|
135
|
+
remainingBackupCodeCount?: number;
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
138
|
* @export
|
|
@@ -72,8 +72,8 @@ function UserObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
72
|
'passwordResetLastRequestedAt': json['passwordResetLastRequestedAt'] == null ? undefined : (new Date(json['passwordResetLastRequestedAt'])),
|
|
73
73
|
'mfaMethods': json['mfaMethods'] == null ? undefined : (json['mfaMethods'].map(MfaMethod_1.MfaMethodFromJSON)),
|
|
74
74
|
'backupCodesGeneratedAt': json['backupCodesGeneratedAt'] == null ? undefined : (new Date(json['backupCodesGeneratedAt'])),
|
|
75
|
-
'remainingBackupCodeCount': json['remainingBackupCodeCount'] == null ? undefined : json['remainingBackupCodeCount'],
|
|
76
75
|
'hasPassword': json['hasPassword'] == null ? undefined : json['hasPassword'],
|
|
76
|
+
'remainingBackupCodeCount': json['remainingBackupCodeCount'] == null ? undefined : json['remainingBackupCodeCount'],
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
function UserObjectToJSON(json) {
|
|
@@ -102,7 +102,7 @@ function UserObjectToJSONTyped(value, ignoreDiscriminator) {
|
|
|
102
102
|
'passwordResetLastRequestedAt': value['passwordResetLastRequestedAt'] == null ? value['passwordResetLastRequestedAt'] : value['passwordResetLastRequestedAt'].toISOString(),
|
|
103
103
|
'mfaMethods': value['mfaMethods'] == null ? undefined : (value['mfaMethods'].map(MfaMethod_1.MfaMethodToJSON)),
|
|
104
104
|
'backupCodesGeneratedAt': value['backupCodesGeneratedAt'] == null ? value['backupCodesGeneratedAt'] : value['backupCodesGeneratedAt'].toISOString(),
|
|
105
|
-
'remainingBackupCodeCount': value['remainingBackupCodeCount'],
|
|
106
105
|
'hasPassword': value['hasPassword'],
|
|
106
|
+
'remainingBackupCodeCount': value['remainingBackupCodeCount'],
|
|
107
107
|
};
|
|
108
108
|
}
|
|
@@ -67,8 +67,10 @@ export * from './LatencyStats';
|
|
|
67
67
|
export * from './ListContentResponse';
|
|
68
68
|
export * from './ListCustomDomainsResponse';
|
|
69
69
|
export * from './ListMfaMethodsResponse';
|
|
70
|
+
export * from './ListSessionsResponse';
|
|
70
71
|
export * from './ListUserInvitesResponse';
|
|
71
72
|
export * from './LogLineObject';
|
|
73
|
+
export * from './LoginHistoryEntry';
|
|
72
74
|
export * from './LoginUserResponse';
|
|
73
75
|
export * from './MfaChallengeRequest';
|
|
74
76
|
export * from './MfaChallengeResponse';
|
|
@@ -80,6 +82,7 @@ export * from './NotificationTemplatesConfig';
|
|
|
80
82
|
export * from './NotificationTemplatesResponse';
|
|
81
83
|
export * from './PaginatedResponseActionInvocationObject';
|
|
82
84
|
export * from './PaginatedResponseLogLineObject';
|
|
85
|
+
export * from './PaginatedResponseLoginHistoryEntry';
|
|
83
86
|
export * from './PaginatedResponsePaymentObject';
|
|
84
87
|
export * from './PaginatedResponseRequestLogObject';
|
|
85
88
|
export * from './PaginatedResponseServiceBuildRequestObject';
|
|
@@ -116,6 +119,7 @@ export * from './ServiceBuildRequestObject';
|
|
|
116
119
|
export * from './ServiceMetricsResponse';
|
|
117
120
|
export * from './ServiceObject';
|
|
118
121
|
export * from './ServiceRouteMetricsResponse';
|
|
122
|
+
export * from './SessionSummary';
|
|
119
123
|
export * from './SpenderAggregate';
|
|
120
124
|
export * from './StateCurrencyTotals';
|
|
121
125
|
export * from './StateHistory';
|
|
@@ -85,8 +85,10 @@ __exportStar(require("./LatencyStats"), exports);
|
|
|
85
85
|
__exportStar(require("./ListContentResponse"), exports);
|
|
86
86
|
__exportStar(require("./ListCustomDomainsResponse"), exports);
|
|
87
87
|
__exportStar(require("./ListMfaMethodsResponse"), exports);
|
|
88
|
+
__exportStar(require("./ListSessionsResponse"), exports);
|
|
88
89
|
__exportStar(require("./ListUserInvitesResponse"), exports);
|
|
89
90
|
__exportStar(require("./LogLineObject"), exports);
|
|
91
|
+
__exportStar(require("./LoginHistoryEntry"), exports);
|
|
90
92
|
__exportStar(require("./LoginUserResponse"), exports);
|
|
91
93
|
__exportStar(require("./MfaChallengeRequest"), exports);
|
|
92
94
|
__exportStar(require("./MfaChallengeResponse"), exports);
|
|
@@ -98,6 +100,7 @@ __exportStar(require("./NotificationTemplatesConfig"), exports);
|
|
|
98
100
|
__exportStar(require("./NotificationTemplatesResponse"), exports);
|
|
99
101
|
__exportStar(require("./PaginatedResponseActionInvocationObject"), exports);
|
|
100
102
|
__exportStar(require("./PaginatedResponseLogLineObject"), exports);
|
|
103
|
+
__exportStar(require("./PaginatedResponseLoginHistoryEntry"), exports);
|
|
101
104
|
__exportStar(require("./PaginatedResponsePaymentObject"), exports);
|
|
102
105
|
__exportStar(require("./PaginatedResponseRequestLogObject"), exports);
|
|
103
106
|
__exportStar(require("./PaginatedResponseServiceBuildRequestObject"), exports);
|
|
@@ -134,6 +137,7 @@ __exportStar(require("./ServiceBuildRequestObject"), exports);
|
|
|
134
137
|
__exportStar(require("./ServiceMetricsResponse"), exports);
|
|
135
138
|
__exportStar(require("./ServiceObject"), exports);
|
|
136
139
|
__exportStar(require("./ServiceRouteMetricsResponse"), exports);
|
|
140
|
+
__exportStar(require("./SessionSummary"), exports);
|
|
137
141
|
__exportStar(require("./SpenderAggregate"), exports);
|
|
138
142
|
__exportStar(require("./StateCurrencyTotals"), exports);
|
|
139
143
|
__exportStar(require("./StateHistory"), exports);
|