@forteplatforms/sdk 1.0.253 → 1.0.262

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.
@@ -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
  */
@@ -45,6 +45,8 @@ export declare const ForteApiExceptionErrorCodeType: {
45
45
  readonly CSRF_TOKEN_MISMATCH: "CSRF_TOKEN_MISMATCH";
46
46
  readonly RECAPTCHA_VALIDATION_FAILED: "RECAPTCHA_VALIDATION_FAILED";
47
47
  readonly SERVICE_NAME_TAKEN_IN_PROJECT: "SERVICE_NAME_TAKEN_IN_PROJECT";
48
+ readonly SERVICE_PAUSED: "SERVICE_PAUSED";
49
+ readonly SERVICE_NOT_PAUSED: "SERVICE_NOT_PAUSED";
48
50
  readonly WEB_APP_NAME_TAKEN_IN_PROJECT: "WEB_APP_NAME_TAKEN_IN_PROJECT";
49
51
  readonly WEB_APP_QUOTA_EXCEEDED: "WEB_APP_QUOTA_EXCEEDED";
50
52
  readonly WEB_APP_NOT_FOUND: "WEB_APP_NOT_FOUND";
@@ -86,6 +88,7 @@ export declare const ForteApiExceptionErrorCodeType: {
86
88
  readonly SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED";
87
89
  readonly GOOGLE_OAUTH_NOT_CONFIGURED: "GOOGLE_OAUTH_NOT_CONFIGURED";
88
90
  readonly TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: "TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED";
91
+ readonly TERMS_OF_SERVICE_NOT_ACCEPTED: "TERMS_OF_SERVICE_NOT_ACCEPTED";
89
92
  readonly API_KEY_NOT_FOUND: "API_KEY_NOT_FOUND";
90
93
  readonly CANNOT_DELETE_SYSTEM_API_KEY: "CANNOT_DELETE_SYSTEM_API_KEY";
91
94
  readonly SUPPORT_CASE_CLOSED: "SUPPORT_CASE_CLOSED";
@@ -30,6 +30,8 @@ exports.ForteApiExceptionErrorCodeType = {
30
30
  CSRF_TOKEN_MISMATCH: 'CSRF_TOKEN_MISMATCH',
31
31
  RECAPTCHA_VALIDATION_FAILED: 'RECAPTCHA_VALIDATION_FAILED',
32
32
  SERVICE_NAME_TAKEN_IN_PROJECT: 'SERVICE_NAME_TAKEN_IN_PROJECT',
33
+ SERVICE_PAUSED: 'SERVICE_PAUSED',
34
+ SERVICE_NOT_PAUSED: 'SERVICE_NOT_PAUSED',
33
35
  WEB_APP_NAME_TAKEN_IN_PROJECT: 'WEB_APP_NAME_TAKEN_IN_PROJECT',
34
36
  WEB_APP_QUOTA_EXCEEDED: 'WEB_APP_QUOTA_EXCEEDED',
35
37
  WEB_APP_NOT_FOUND: 'WEB_APP_NOT_FOUND',
@@ -71,6 +73,7 @@ exports.ForteApiExceptionErrorCodeType = {
71
73
  SERVICE_QUOTA_EXCEEDED: 'SERVICE_QUOTA_EXCEEDED',
72
74
  GOOGLE_OAUTH_NOT_CONFIGURED: 'GOOGLE_OAUTH_NOT_CONFIGURED',
73
75
  TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED: 'TERMS_OF_SERVICE_CANNOT_BE_UNACCEPTED',
76
+ TERMS_OF_SERVICE_NOT_ACCEPTED: 'TERMS_OF_SERVICE_NOT_ACCEPTED',
74
77
  API_KEY_NOT_FOUND: 'API_KEY_NOT_FOUND',
75
78
  CANNOT_DELETE_SYSTEM_API_KEY: 'CANNOT_DELETE_SYSTEM_API_KEY',
76
79
  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
+ }
@@ -37,6 +37,12 @@ export interface ServiceObject {
37
37
  * @memberof ServiceObject
38
38
  */
39
39
  publicDnsEndpoint?: string;
40
+ /**
41
+ *
42
+ * @type {Date}
43
+ * @memberof ServiceObject
44
+ */
45
+ pausedAt?: Date;
40
46
  /**
41
47
  *
42
48
  * @type {boolean}
@@ -57,6 +57,7 @@ function ServiceObjectFromJSONTyped(json, ignoreDiscriminator) {
57
57
  'serviceId': json['serviceId'] == null ? undefined : json['serviceId'],
58
58
  'serviceName': json['serviceName'],
59
59
  'publicDnsEndpoint': json['publicDnsEndpoint'] == null ? undefined : json['publicDnsEndpoint'],
60
+ 'pausedAt': json['pausedAt'] == null ? undefined : (new Date(json['pausedAt'])),
60
61
  'requestResponseBodyLoggingEnabled': json['requestResponseBodyLoggingEnabled'] == null ? undefined : json['requestResponseBodyLoggingEnabled'],
61
62
  'dockerfilePath': json['dockerfilePath'] == null ? undefined : json['dockerfilePath'],
62
63
  'healthCheckConfiguration': json['healthCheckConfiguration'] == null ? undefined : (0, HealthCheckDetectionOutput_1.HealthCheckDetectionOutputFromJSON)(json['healthCheckConfiguration']),
@@ -90,6 +91,7 @@ function ServiceObjectToJSONTyped(value, ignoreDiscriminator) {
90
91
  'serviceId': value['serviceId'],
91
92
  'serviceName': value['serviceName'],
92
93
  'publicDnsEndpoint': value['publicDnsEndpoint'],
94
+ 'pausedAt': value['pausedAt'] == null ? value['pausedAt'] : value['pausedAt'].toISOString(),
93
95
  'requestResponseBodyLoggingEnabled': value['requestResponseBodyLoggingEnabled'],
94
96
  'dockerfilePath': value['dockerfilePath'],
95
97
  'healthCheckConfiguration': (0, HealthCheckDetectionOutput_1.HealthCheckDetectionOutputToJSON)(value['healthCheckConfiguration']),