@forteplatforms/sdk 1.0.328 → 1.0.334

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.
Files changed (35) hide show
  1. package/dist/generated/apis/ProjectsServerApi.d.ts +3 -0
  2. package/dist/generated/apis/ProjectsServerApi.js +4 -1
  3. package/dist/generated/apis/UsersServerApi.d.ts +49 -0
  4. package/dist/generated/apis/UsersServerApi.js +195 -0
  5. package/dist/generated/models/CreateManagedDatabaseUserResponse.d.ts +6 -0
  6. package/dist/generated/models/CreateManagedDatabaseUserResponse.js +2 -0
  7. package/dist/generated/models/ForteApiException.d.ts +6 -0
  8. package/dist/generated/models/ForteApiException.js +6 -0
  9. package/dist/generated/models/ManagedDatabaseObject.d.ts +6 -0
  10. package/dist/generated/models/ManagedDatabaseObject.js +2 -0
  11. package/dist/generated/models/ManagedDatabaseUser.d.ts +6 -0
  12. package/dist/generated/models/ManagedDatabaseUser.js +2 -0
  13. package/dist/generated/models/ReauthenticationChallengeRequest.d.ts +49 -0
  14. package/dist/generated/models/ReauthenticationChallengeRequest.js +64 -0
  15. package/dist/generated/models/ReauthenticationChallengeResponse.d.ts +32 -0
  16. package/dist/generated/models/ReauthenticationChallengeResponse.js +49 -0
  17. package/dist/generated/models/ReauthenticationFactor.d.ts +61 -0
  18. package/dist/generated/models/ReauthenticationFactor.js +68 -0
  19. package/dist/generated/models/ReauthenticationRequest.d.ts +49 -0
  20. package/dist/generated/models/ReauthenticationRequest.js +64 -0
  21. package/dist/generated/models/ReauthenticationResponse.d.ts +32 -0
  22. package/dist/generated/models/ReauthenticationResponse.js +51 -0
  23. package/dist/generated/models/ReauthenticationStatusResponse.d.ts +39 -0
  24. package/dist/generated/models/ReauthenticationStatusResponse.js +54 -0
  25. package/dist/generated/models/RegisterUserResponse.d.ts +6 -0
  26. package/dist/generated/models/RegisterUserResponse.js +2 -0
  27. package/dist/generated/models/RotateManagedDatabaseUserPasswordResponse.d.ts +6 -0
  28. package/dist/generated/models/RotateManagedDatabaseUserPasswordResponse.js +2 -0
  29. package/dist/generated/models/SessionSummary.d.ts +6 -0
  30. package/dist/generated/models/SessionSummary.js +2 -0
  31. package/dist/generated/models/UserActionLogObject.d.ts +3 -0
  32. package/dist/generated/models/UserActionLogObject.js +4 -1
  33. package/dist/generated/models/index.d.ts +6 -0
  34. package/dist/generated/models/index.js +6 -0
  35. package/package.json +1 -1
@@ -2185,6 +2185,9 @@ export declare const ListUserActionLogsActionTypeType: {
2185
2185
  readonly MFA_BACKUP_CODES_GENERATED: "MFA_BACKUP_CODES_GENERATED";
2186
2186
  readonly MFA_BACKUP_CODE_USED: "MFA_BACKUP_CODE_USED";
2187
2187
  readonly MFA_ADMIN_RESET: "MFA_ADMIN_RESET";
2188
+ readonly REAUTHENTICATION_CHALLENGE_SENT: "REAUTHENTICATION_CHALLENGE_SENT";
2189
+ readonly REAUTHENTICATED: "REAUTHENTICATED";
2190
+ readonly REAUTHENTICATION_FAILED: "REAUTHENTICATION_FAILED";
2188
2191
  };
2189
2192
  export type ListUserActionLogsActionTypeType = typeof ListUserActionLogsActionTypeType[keyof typeof ListUserActionLogsActionTypeType];
2190
2193
  /**
@@ -8731,7 +8731,10 @@ exports.ListUserActionLogsActionTypeType = {
8731
8731
  MFA_CHALLENGE_FAILED: 'MFA_CHALLENGE_FAILED',
8732
8732
  MFA_BACKUP_CODES_GENERATED: 'MFA_BACKUP_CODES_GENERATED',
8733
8733
  MFA_BACKUP_CODE_USED: 'MFA_BACKUP_CODE_USED',
8734
- MFA_ADMIN_RESET: 'MFA_ADMIN_RESET'
8734
+ MFA_ADMIN_RESET: 'MFA_ADMIN_RESET',
8735
+ REAUTHENTICATION_CHALLENGE_SENT: 'REAUTHENTICATION_CHALLENGE_SENT',
8736
+ REAUTHENTICATED: 'REAUTHENTICATED',
8737
+ REAUTHENTICATION_FAILED: 'REAUTHENTICATION_FAILED'
8735
8738
  };
8736
8739
  /**
8737
8740
  * @export
@@ -48,6 +48,11 @@ import { type PaginatedResponsePaymentObject } from '../models/PaginatedResponse
48
48
  import { type PasswordLoginRequest } from '../models/PasswordLoginRequest';
49
49
  import { type PaymentMethodObject } from '../models/PaymentMethodObject';
50
50
  import { type PendingUserInviteObject } from '../models/PendingUserInviteObject';
51
+ import { type ReauthenticationChallengeRequest } from '../models/ReauthenticationChallengeRequest';
52
+ import { type ReauthenticationChallengeResponse } from '../models/ReauthenticationChallengeResponse';
53
+ import { type ReauthenticationRequest } from '../models/ReauthenticationRequest';
54
+ import { type ReauthenticationResponse } from '../models/ReauthenticationResponse';
55
+ import { type ReauthenticationStatusResponse } from '../models/ReauthenticationStatusResponse';
51
56
  import { type RegisterUserRequest } from '../models/RegisterUserRequest';
52
57
  import { type RegisterUserResponse } from '../models/RegisterUserResponse';
53
58
  import { type RenameMfaMethodRequest } from '../models/RenameMfaMethodRequest';
@@ -85,6 +90,11 @@ export interface CompletePasswordResetOperationRequest {
85
90
  projectId: string;
86
91
  completePasswordResetRequest: CompletePasswordResetRequest;
87
92
  }
93
+ export interface CompleteReauthenticationRequest {
94
+ projectId: string;
95
+ reauthenticationRequest: ReauthenticationRequest;
96
+ authorization?: string;
97
+ }
88
98
  export interface CreateContactMethodRequest {
89
99
  projectId: string;
90
100
  addContactMethodRequest: AddContactMethodRequest;
@@ -99,6 +109,11 @@ export interface CreateOtpLoginOperationRequest {
99
109
  projectId: string;
100
110
  createOtpLoginRequest: CreateOtpLoginRequest;
101
111
  }
112
+ export interface CreateReauthenticationChallengeRequest {
113
+ projectId: string;
114
+ reauthenticationChallengeRequest: ReauthenticationChallengeRequest;
115
+ authorization?: string;
116
+ }
102
117
  export interface CreateUserInviteOperationRequest {
103
118
  projectId: string;
104
119
  createUserInviteRequest: CreateUserInviteRequest;
@@ -131,6 +146,10 @@ export interface GetMySubscriptionRequest {
131
146
  subscriptionId: string;
132
147
  authorization?: string;
133
148
  }
149
+ export interface GetReauthenticationStatusRequest {
150
+ projectId: string;
151
+ authorization?: string;
152
+ }
134
153
  export interface GoogleAuthLoginCallbackRequest {
135
154
  projectId: string;
136
155
  gCsrfToken: string;
@@ -392,6 +411,16 @@ export declare class UsersServerApi extends runtime.BaseAPI {
392
411
  /**
393
412
  */
394
413
  completePasswordReset(requestParameters: CompletePasswordResetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginUserResponse>;
414
+ /**
415
+ * Creates request options for completeReauthentication without sending the request
416
+ */
417
+ completeReauthenticationRequestOpts(requestParameters: CompleteReauthenticationRequest): Promise<runtime.RequestOpts>;
418
+ /**
419
+ */
420
+ completeReauthenticationRaw(requestParameters: CompleteReauthenticationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReauthenticationResponse>>;
421
+ /**
422
+ */
423
+ completeReauthentication(requestParameters: CompleteReauthenticationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReauthenticationResponse>;
395
424
  /**
396
425
  * Creates request options for createContactMethod without sending the request
397
426
  */
@@ -422,6 +451,16 @@ export declare class UsersServerApi extends runtime.BaseAPI {
422
451
  /**
423
452
  */
424
453
  createOtpLogin(requestParameters: CreateOtpLoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOtpLoginResponse>;
454
+ /**
455
+ * Creates request options for createReauthenticationChallenge without sending the request
456
+ */
457
+ createReauthenticationChallengeRequestOpts(requestParameters: CreateReauthenticationChallengeRequest): Promise<runtime.RequestOpts>;
458
+ /**
459
+ */
460
+ createReauthenticationChallengeRaw(requestParameters: CreateReauthenticationChallengeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReauthenticationChallengeResponse>>;
461
+ /**
462
+ */
463
+ createReauthenticationChallenge(requestParameters: CreateReauthenticationChallengeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReauthenticationChallengeResponse>;
425
464
  /**
426
465
  * Creates request options for createUserInvite without sending the request
427
466
  */
@@ -492,6 +531,16 @@ export declare class UsersServerApi extends runtime.BaseAPI {
492
531
  /**
493
532
  */
494
533
  getMySubscription(requestParameters: GetMySubscriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SubscriptionObject>;
534
+ /**
535
+ * Creates request options for getReauthenticationStatus without sending the request
536
+ */
537
+ getReauthenticationStatusRequestOpts(requestParameters: GetReauthenticationStatusRequest): Promise<runtime.RequestOpts>;
538
+ /**
539
+ */
540
+ getReauthenticationStatusRaw(requestParameters: GetReauthenticationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReauthenticationStatusResponse>>;
541
+ /**
542
+ */
543
+ getReauthenticationStatus(requestParameters: GetReauthenticationStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReauthenticationStatusResponse>;
495
544
  /**
496
545
  * Creates request options for googleAuthLoginCallback without sending the request
497
546
  */
@@ -104,6 +104,11 @@ var PaginatedResponsePaymentObject_1 = require("../models/PaginatedResponsePayme
104
104
  var PasswordLoginRequest_1 = require("../models/PasswordLoginRequest");
105
105
  var PaymentMethodObject_1 = require("../models/PaymentMethodObject");
106
106
  var PendingUserInviteObject_1 = require("../models/PendingUserInviteObject");
107
+ var ReauthenticationChallengeRequest_1 = require("../models/ReauthenticationChallengeRequest");
108
+ var ReauthenticationChallengeResponse_1 = require("../models/ReauthenticationChallengeResponse");
109
+ var ReauthenticationRequest_1 = require("../models/ReauthenticationRequest");
110
+ var ReauthenticationResponse_1 = require("../models/ReauthenticationResponse");
111
+ var ReauthenticationStatusResponse_1 = require("../models/ReauthenticationStatusResponse");
107
112
  var RegisterUserRequest_1 = require("../models/RegisterUserRequest");
108
113
  var RegisterUserResponse_1 = require("../models/RegisterUserResponse");
109
114
  var RenameMfaMethodRequest_1 = require("../models/RenameMfaMethodRequest");
@@ -446,6 +451,71 @@ var UsersServerApi = /** @class */ (function (_super) {
446
451
  });
447
452
  });
448
453
  };
454
+ /**
455
+ * Creates request options for completeReauthentication without sending the request
456
+ */
457
+ UsersServerApi.prototype.completeReauthenticationRequestOpts = function (requestParameters) {
458
+ return __awaiter(this, void 0, void 0, function () {
459
+ var queryParameters, headerParameters, urlPath;
460
+ return __generator(this, function (_a) {
461
+ if (requestParameters['projectId'] == null) {
462
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling completeReauthentication().');
463
+ }
464
+ if (requestParameters['reauthenticationRequest'] == null) {
465
+ throw new runtime.RequiredError('reauthenticationRequest', 'Required parameter "reauthenticationRequest" was null or undefined when calling completeReauthentication().');
466
+ }
467
+ queryParameters = {};
468
+ headerParameters = {};
469
+ headerParameters['Content-Type'] = 'application/json';
470
+ if (requestParameters['authorization'] != null) {
471
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
472
+ }
473
+ urlPath = "/api/v1/{projectId}/users/me/reauthentication";
474
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
475
+ return [2 /*return*/, {
476
+ path: urlPath,
477
+ method: 'POST',
478
+ headers: headerParameters,
479
+ query: queryParameters,
480
+ body: (0, ReauthenticationRequest_1.ReauthenticationRequestToJSON)(requestParameters['reauthenticationRequest']),
481
+ }];
482
+ });
483
+ });
484
+ };
485
+ /**
486
+ */
487
+ UsersServerApi.prototype.completeReauthenticationRaw = function (requestParameters, initOverrides) {
488
+ return __awaiter(this, void 0, void 0, function () {
489
+ var requestOptions, response;
490
+ return __generator(this, function (_a) {
491
+ switch (_a.label) {
492
+ case 0: return [4 /*yield*/, this.completeReauthenticationRequestOpts(requestParameters)];
493
+ case 1:
494
+ requestOptions = _a.sent();
495
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
496
+ case 2:
497
+ response = _a.sent();
498
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ReauthenticationResponse_1.ReauthenticationResponseFromJSON)(jsonValue); })];
499
+ }
500
+ });
501
+ });
502
+ };
503
+ /**
504
+ */
505
+ UsersServerApi.prototype.completeReauthentication = function (requestParameters, initOverrides) {
506
+ return __awaiter(this, void 0, void 0, function () {
507
+ var response;
508
+ return __generator(this, function (_a) {
509
+ switch (_a.label) {
510
+ case 0: return [4 /*yield*/, this.completeReauthenticationRaw(requestParameters, initOverrides)];
511
+ case 1:
512
+ response = _a.sent();
513
+ return [4 /*yield*/, response.value()];
514
+ case 2: return [2 /*return*/, _a.sent()];
515
+ }
516
+ });
517
+ });
518
+ };
449
519
  /**
450
520
  * Creates request options for createContactMethod without sending the request
451
521
  */
@@ -638,6 +708,71 @@ var UsersServerApi = /** @class */ (function (_super) {
638
708
  });
639
709
  });
640
710
  };
711
+ /**
712
+ * Creates request options for createReauthenticationChallenge without sending the request
713
+ */
714
+ UsersServerApi.prototype.createReauthenticationChallengeRequestOpts = function (requestParameters) {
715
+ return __awaiter(this, void 0, void 0, function () {
716
+ var queryParameters, headerParameters, urlPath;
717
+ return __generator(this, function (_a) {
718
+ if (requestParameters['projectId'] == null) {
719
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createReauthenticationChallenge().');
720
+ }
721
+ if (requestParameters['reauthenticationChallengeRequest'] == null) {
722
+ throw new runtime.RequiredError('reauthenticationChallengeRequest', 'Required parameter "reauthenticationChallengeRequest" was null or undefined when calling createReauthenticationChallenge().');
723
+ }
724
+ queryParameters = {};
725
+ headerParameters = {};
726
+ headerParameters['Content-Type'] = 'application/json';
727
+ if (requestParameters['authorization'] != null) {
728
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
729
+ }
730
+ urlPath = "/api/v1/{projectId}/users/me/reauthentication/challenge";
731
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
732
+ return [2 /*return*/, {
733
+ path: urlPath,
734
+ method: 'POST',
735
+ headers: headerParameters,
736
+ query: queryParameters,
737
+ body: (0, ReauthenticationChallengeRequest_1.ReauthenticationChallengeRequestToJSON)(requestParameters['reauthenticationChallengeRequest']),
738
+ }];
739
+ });
740
+ });
741
+ };
742
+ /**
743
+ */
744
+ UsersServerApi.prototype.createReauthenticationChallengeRaw = function (requestParameters, initOverrides) {
745
+ return __awaiter(this, void 0, void 0, function () {
746
+ var requestOptions, response;
747
+ return __generator(this, function (_a) {
748
+ switch (_a.label) {
749
+ case 0: return [4 /*yield*/, this.createReauthenticationChallengeRequestOpts(requestParameters)];
750
+ case 1:
751
+ requestOptions = _a.sent();
752
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
753
+ case 2:
754
+ response = _a.sent();
755
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ReauthenticationChallengeResponse_1.ReauthenticationChallengeResponseFromJSON)(jsonValue); })];
756
+ }
757
+ });
758
+ });
759
+ };
760
+ /**
761
+ */
762
+ UsersServerApi.prototype.createReauthenticationChallenge = function (requestParameters, initOverrides) {
763
+ return __awaiter(this, void 0, void 0, function () {
764
+ var response;
765
+ return __generator(this, function (_a) {
766
+ switch (_a.label) {
767
+ case 0: return [4 /*yield*/, this.createReauthenticationChallengeRaw(requestParameters, initOverrides)];
768
+ case 1:
769
+ response = _a.sent();
770
+ return [4 /*yield*/, response.value()];
771
+ case 2: return [2 /*return*/, _a.sent()];
772
+ }
773
+ });
774
+ });
775
+ };
641
776
  /**
642
777
  * Creates request options for createUserInvite without sending the request
643
778
  */
@@ -1071,6 +1206,66 @@ var UsersServerApi = /** @class */ (function (_super) {
1071
1206
  });
1072
1207
  });
1073
1208
  };
1209
+ /**
1210
+ * Creates request options for getReauthenticationStatus without sending the request
1211
+ */
1212
+ UsersServerApi.prototype.getReauthenticationStatusRequestOpts = function (requestParameters) {
1213
+ return __awaiter(this, void 0, void 0, function () {
1214
+ var queryParameters, headerParameters, urlPath;
1215
+ return __generator(this, function (_a) {
1216
+ if (requestParameters['projectId'] == null) {
1217
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getReauthenticationStatus().');
1218
+ }
1219
+ queryParameters = {};
1220
+ headerParameters = {};
1221
+ if (requestParameters['authorization'] != null) {
1222
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
1223
+ }
1224
+ urlPath = "/api/v1/{projectId}/users/me/reauthentication";
1225
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
1226
+ return [2 /*return*/, {
1227
+ path: urlPath,
1228
+ method: 'GET',
1229
+ headers: headerParameters,
1230
+ query: queryParameters,
1231
+ }];
1232
+ });
1233
+ });
1234
+ };
1235
+ /**
1236
+ */
1237
+ UsersServerApi.prototype.getReauthenticationStatusRaw = function (requestParameters, initOverrides) {
1238
+ return __awaiter(this, void 0, void 0, function () {
1239
+ var requestOptions, response;
1240
+ return __generator(this, function (_a) {
1241
+ switch (_a.label) {
1242
+ case 0: return [4 /*yield*/, this.getReauthenticationStatusRequestOpts(requestParameters)];
1243
+ case 1:
1244
+ requestOptions = _a.sent();
1245
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
1246
+ case 2:
1247
+ response = _a.sent();
1248
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, ReauthenticationStatusResponse_1.ReauthenticationStatusResponseFromJSON)(jsonValue); })];
1249
+ }
1250
+ });
1251
+ });
1252
+ };
1253
+ /**
1254
+ */
1255
+ UsersServerApi.prototype.getReauthenticationStatus = function (requestParameters, initOverrides) {
1256
+ return __awaiter(this, void 0, void 0, function () {
1257
+ var response;
1258
+ return __generator(this, function (_a) {
1259
+ switch (_a.label) {
1260
+ case 0: return [4 /*yield*/, this.getReauthenticationStatusRaw(requestParameters, initOverrides)];
1261
+ case 1:
1262
+ response = _a.sent();
1263
+ return [4 /*yield*/, response.value()];
1264
+ case 2: return [2 /*return*/, _a.sent()];
1265
+ }
1266
+ });
1267
+ });
1268
+ };
1074
1269
  /**
1075
1270
  * Creates request options for googleAuthLoginCallback without sending the request
1076
1271
  */
@@ -28,6 +28,12 @@ export interface CreateManagedDatabaseUserResponse {
28
28
  * @memberof CreateManagedDatabaseUserResponse
29
29
  */
30
30
  password: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof CreateManagedDatabaseUserResponse
35
+ */
36
+ connectionUri?: string;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the CreateManagedDatabaseUserResponse interface.
@@ -39,6 +39,7 @@ function CreateManagedDatabaseUserResponseFromJSONTyped(json, ignoreDiscriminato
39
39
  return {
40
40
  'databaseUser': (0, ManagedDatabaseUser_1.ManagedDatabaseUserFromJSON)(json['databaseUser']),
41
41
  'password': json['password'],
42
+ 'connectionUri': json['connectionUri'] == null ? undefined : json['connectionUri'],
42
43
  };
43
44
  }
44
45
  function CreateManagedDatabaseUserResponseToJSON(json) {
@@ -52,5 +53,6 @@ function CreateManagedDatabaseUserResponseToJSONTyped(value, ignoreDiscriminator
52
53
  return {
53
54
  'databaseUser': (0, ManagedDatabaseUser_1.ManagedDatabaseUserToJSON)(value['databaseUser']),
54
55
  'password': value['password'],
56
+ 'connectionUri': value['connectionUri'],
55
57
  };
56
58
  }
@@ -262,6 +262,11 @@ export declare const ForteApiExceptionErrorCodeType: {
262
262
  readonly MFA_FIRST_FACTOR_CONTACT_REQUIRED: "MFA_FIRST_FACTOR_CONTACT_REQUIRED";
263
263
  readonly MFA_TARGET_CONTACT_INVALID: "MFA_TARGET_CONTACT_INVALID";
264
264
  readonly OTP_LOGIN_DISABLED_UNDER_MFA: "OTP_LOGIN_DISABLED_UNDER_MFA";
265
+ readonly REAUTHENTICATION_FACTOR_NOT_AVAILABLE: "REAUTHENTICATION_FACTOR_NOT_AVAILABLE";
266
+ readonly REAUTHENTICATION_INVALID_CREDENTIAL: "REAUTHENTICATION_INVALID_CREDENTIAL";
267
+ readonly REAUTHENTICATION_CODE_EXPIRED: "REAUTHENTICATION_CODE_EXPIRED";
268
+ readonly REAUTHENTICATION_NO_ACTIVE_CHALLENGE: "REAUTHENTICATION_NO_ACTIVE_CHALLENGE";
269
+ readonly REAUTHENTICATION_RATE_LIMITED: "REAUTHENTICATION_RATE_LIMITED";
265
270
  readonly CRM_COMPANY_NOT_FOUND: "CRM_COMPANY_NOT_FOUND";
266
271
  readonly CRM_SEQUENCE_NOT_FOUND: "CRM_SEQUENCE_NOT_FOUND";
267
272
  readonly CRM_SEQUENCE_MEMBER_NOT_FOUND: "CRM_SEQUENCE_MEMBER_NOT_FOUND";
@@ -270,6 +275,7 @@ export declare const ForteApiExceptionErrorCodeType: {
270
275
  readonly CRM_SEQUENCE_DUPLICATE_TOKEN_NAME: "CRM_SEQUENCE_DUPLICATE_TOKEN_NAME";
271
276
  readonly CRM_SEQUENCE_UNRESOLVED_TOKEN: "CRM_SEQUENCE_UNRESOLVED_TOKEN";
272
277
  readonly STATUS_EVENT_NOT_FOUND: "STATUS_EVENT_NOT_FOUND";
278
+ readonly STATUS_ANNOUNCEMENT_NOT_FOUND: "STATUS_ANNOUNCEMENT_NOT_FOUND";
273
279
  readonly INVALID_STATUS_EVENT_WINDOWS: "INVALID_STATUS_EVENT_WINDOWS";
274
280
  readonly INVALID_STATUS_EVENT_AVAILABILITY: "INVALID_STATUS_EVENT_AVAILABILITY";
275
281
  };
@@ -247,6 +247,11 @@ exports.ForteApiExceptionErrorCodeType = {
247
247
  MFA_FIRST_FACTOR_CONTACT_REQUIRED: 'MFA_FIRST_FACTOR_CONTACT_REQUIRED',
248
248
  MFA_TARGET_CONTACT_INVALID: 'MFA_TARGET_CONTACT_INVALID',
249
249
  OTP_LOGIN_DISABLED_UNDER_MFA: 'OTP_LOGIN_DISABLED_UNDER_MFA',
250
+ REAUTHENTICATION_FACTOR_NOT_AVAILABLE: 'REAUTHENTICATION_FACTOR_NOT_AVAILABLE',
251
+ REAUTHENTICATION_INVALID_CREDENTIAL: 'REAUTHENTICATION_INVALID_CREDENTIAL',
252
+ REAUTHENTICATION_CODE_EXPIRED: 'REAUTHENTICATION_CODE_EXPIRED',
253
+ REAUTHENTICATION_NO_ACTIVE_CHALLENGE: 'REAUTHENTICATION_NO_ACTIVE_CHALLENGE',
254
+ REAUTHENTICATION_RATE_LIMITED: 'REAUTHENTICATION_RATE_LIMITED',
250
255
  CRM_COMPANY_NOT_FOUND: 'CRM_COMPANY_NOT_FOUND',
251
256
  CRM_SEQUENCE_NOT_FOUND: 'CRM_SEQUENCE_NOT_FOUND',
252
257
  CRM_SEQUENCE_MEMBER_NOT_FOUND: 'CRM_SEQUENCE_MEMBER_NOT_FOUND',
@@ -255,6 +260,7 @@ exports.ForteApiExceptionErrorCodeType = {
255
260
  CRM_SEQUENCE_DUPLICATE_TOKEN_NAME: 'CRM_SEQUENCE_DUPLICATE_TOKEN_NAME',
256
261
  CRM_SEQUENCE_UNRESOLVED_TOKEN: 'CRM_SEQUENCE_UNRESOLVED_TOKEN',
257
262
  STATUS_EVENT_NOT_FOUND: 'STATUS_EVENT_NOT_FOUND',
263
+ STATUS_ANNOUNCEMENT_NOT_FOUND: 'STATUS_ANNOUNCEMENT_NOT_FOUND',
258
264
  INVALID_STATUS_EVENT_WINDOWS: 'INVALID_STATUS_EVENT_WINDOWS',
259
265
  INVALID_STATUS_EVENT_AVAILABILITY: 'INVALID_STATUS_EVENT_AVAILABILITY'
260
266
  };
@@ -100,6 +100,12 @@ export interface ManagedDatabaseObject {
100
100
  * @memberof ManagedDatabaseObject
101
101
  */
102
102
  databaseName?: string;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof ManagedDatabaseObject
107
+ */
108
+ sslMode?: string;
103
109
  /**
104
110
  *
105
111
  * @type {boolean}
@@ -88,6 +88,7 @@ function ManagedDatabaseObjectFromJSONTyped(json, ignoreDiscriminator) {
88
88
  'host': json['host'] == null ? undefined : json['host'],
89
89
  'port': json['port'] == null ? undefined : json['port'],
90
90
  'databaseName': json['databaseName'] == null ? undefined : json['databaseName'],
91
+ 'sslMode': json['sslMode'] == null ? undefined : json['sslMode'],
91
92
  'readOnly': json['readOnly'] == null ? undefined : json['readOnly'],
92
93
  'cleanupUnlockExpiresAt': json['cleanupUnlockExpiresAt'] == null ? undefined : (new Date(json['cleanupUnlockExpiresAt'])),
93
94
  'usageBytes': json['usageBytes'] == null ? undefined : json['usageBytes'],
@@ -118,6 +119,7 @@ function ManagedDatabaseObjectToJSONTyped(value, ignoreDiscriminator) {
118
119
  'host': value['host'],
119
120
  'port': value['port'],
120
121
  'databaseName': value['databaseName'],
122
+ 'sslMode': value['sslMode'],
121
123
  'readOnly': value['readOnly'],
122
124
  'cleanupUnlockExpiresAt': value['cleanupUnlockExpiresAt'] == null ? value['cleanupUnlockExpiresAt'] : value['cleanupUnlockExpiresAt'].toISOString(),
123
125
  'usageBytes': value['usageBytes'],
@@ -27,6 +27,12 @@ export interface ManagedDatabaseUser {
27
27
  * @memberof ManagedDatabaseUser
28
28
  */
29
29
  username: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ManagedDatabaseUser
34
+ */
35
+ roleName?: string;
30
36
  /**
31
37
  *
32
38
  * @type {Date}
@@ -40,6 +40,7 @@ function ManagedDatabaseUserFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return {
41
41
  'databaseUserId': json['databaseUserId'],
42
42
  'username': json['username'],
43
+ 'roleName': json['roleName'] == null ? undefined : json['roleName'],
43
44
  'createdTimestamp': (new Date(json['createdTimestamp'])),
44
45
  'passwordLastRotatedTimestamp': json['passwordLastRotatedTimestamp'] == null ? undefined : (new Date(json['passwordLastRotatedTimestamp'])),
45
46
  };
@@ -55,6 +56,7 @@ function ManagedDatabaseUserToJSONTyped(value, ignoreDiscriminator) {
55
56
  return {
56
57
  'databaseUserId': value['databaseUserId'],
57
58
  'username': value['username'],
59
+ 'roleName': value['roleName'],
58
60
  'createdTimestamp': value['createdTimestamp'].toISOString(),
59
61
  'passwordLastRotatedTimestamp': value['passwordLastRotatedTimestamp'] == null ? value['passwordLastRotatedTimestamp'] : value['passwordLastRotatedTimestamp'].toISOString(),
60
62
  };
@@ -0,0 +1,49 @@
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 ReauthenticationChallengeRequest
16
+ */
17
+ export interface ReauthenticationChallengeRequest {
18
+ /**
19
+ *
20
+ * @type {ReauthenticationChallengeRequestMethodType}
21
+ * @memberof ReauthenticationChallengeRequest
22
+ */
23
+ method: ReauthenticationChallengeRequestMethodType;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ReauthenticationChallengeRequest
28
+ */
29
+ targetContactMethodId?: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ReauthenticationChallengeRequestMethodType: {
35
+ readonly PASSWORD: "PASSWORD";
36
+ readonly EMAIL_OTP: "EMAIL_OTP";
37
+ readonly SMS_OTP: "SMS_OTP";
38
+ readonly TOTP: "TOTP";
39
+ readonly BACKUP_CODE: "BACKUP_CODE";
40
+ };
41
+ export type ReauthenticationChallengeRequestMethodType = typeof ReauthenticationChallengeRequestMethodType[keyof typeof ReauthenticationChallengeRequestMethodType];
42
+ /**
43
+ * Check if a given object implements the ReauthenticationChallengeRequest interface.
44
+ */
45
+ export declare function instanceOfReauthenticationChallengeRequest(value: object): value is ReauthenticationChallengeRequest;
46
+ export declare function ReauthenticationChallengeRequestFromJSON(json: any): ReauthenticationChallengeRequest;
47
+ export declare function ReauthenticationChallengeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticationChallengeRequest;
48
+ export declare function ReauthenticationChallengeRequestToJSON(json: any): ReauthenticationChallengeRequest;
49
+ export declare function ReauthenticationChallengeRequestToJSONTyped(value?: ReauthenticationChallengeRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.ReauthenticationChallengeRequestMethodType = void 0;
17
+ exports.instanceOfReauthenticationChallengeRequest = instanceOfReauthenticationChallengeRequest;
18
+ exports.ReauthenticationChallengeRequestFromJSON = ReauthenticationChallengeRequestFromJSON;
19
+ exports.ReauthenticationChallengeRequestFromJSONTyped = ReauthenticationChallengeRequestFromJSONTyped;
20
+ exports.ReauthenticationChallengeRequestToJSON = ReauthenticationChallengeRequestToJSON;
21
+ exports.ReauthenticationChallengeRequestToJSONTyped = ReauthenticationChallengeRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ReauthenticationChallengeRequestMethodType = {
26
+ PASSWORD: 'PASSWORD',
27
+ EMAIL_OTP: 'EMAIL_OTP',
28
+ SMS_OTP: 'SMS_OTP',
29
+ TOTP: 'TOTP',
30
+ BACKUP_CODE: 'BACKUP_CODE'
31
+ };
32
+ /**
33
+ * Check if a given object implements the ReauthenticationChallengeRequest interface.
34
+ */
35
+ function instanceOfReauthenticationChallengeRequest(value) {
36
+ if (!('method' in value) || value['method'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ReauthenticationChallengeRequestFromJSON(json) {
41
+ return ReauthenticationChallengeRequestFromJSONTyped(json, false);
42
+ }
43
+ function ReauthenticationChallengeRequestFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'method': json['method'],
49
+ 'targetContactMethodId': json['targetContactMethodId'] == null ? undefined : json['targetContactMethodId'],
50
+ };
51
+ }
52
+ function ReauthenticationChallengeRequestToJSON(json) {
53
+ return ReauthenticationChallengeRequestToJSONTyped(json, false);
54
+ }
55
+ function ReauthenticationChallengeRequestToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'method': value['method'],
62
+ 'targetContactMethodId': value['targetContactMethodId'],
63
+ };
64
+ }
@@ -0,0 +1,32 @@
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 ReauthenticationChallengeResponse
16
+ */
17
+ export interface ReauthenticationChallengeResponse {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof ReauthenticationChallengeResponse
22
+ */
23
+ codeExpirationTime?: Date;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ReauthenticationChallengeResponse interface.
27
+ */
28
+ export declare function instanceOfReauthenticationChallengeResponse(value: object): value is ReauthenticationChallengeResponse;
29
+ export declare function ReauthenticationChallengeResponseFromJSON(json: any): ReauthenticationChallengeResponse;
30
+ export declare function ReauthenticationChallengeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticationChallengeResponse;
31
+ export declare function ReauthenticationChallengeResponseToJSON(json: any): ReauthenticationChallengeResponse;
32
+ export declare function ReauthenticationChallengeResponseToJSONTyped(value?: ReauthenticationChallengeResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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.instanceOfReauthenticationChallengeResponse = instanceOfReauthenticationChallengeResponse;
17
+ exports.ReauthenticationChallengeResponseFromJSON = ReauthenticationChallengeResponseFromJSON;
18
+ exports.ReauthenticationChallengeResponseFromJSONTyped = ReauthenticationChallengeResponseFromJSONTyped;
19
+ exports.ReauthenticationChallengeResponseToJSON = ReauthenticationChallengeResponseToJSON;
20
+ exports.ReauthenticationChallengeResponseToJSONTyped = ReauthenticationChallengeResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ReauthenticationChallengeResponse interface.
23
+ */
24
+ function instanceOfReauthenticationChallengeResponse(value) {
25
+ return true;
26
+ }
27
+ function ReauthenticationChallengeResponseFromJSON(json) {
28
+ return ReauthenticationChallengeResponseFromJSONTyped(json, false);
29
+ }
30
+ function ReauthenticationChallengeResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'codeExpirationTime': json['codeExpirationTime'] == null ? undefined : (new Date(json['codeExpirationTime'])),
36
+ };
37
+ }
38
+ function ReauthenticationChallengeResponseToJSON(json) {
39
+ return ReauthenticationChallengeResponseToJSONTyped(json, false);
40
+ }
41
+ function ReauthenticationChallengeResponseToJSONTyped(value, ignoreDiscriminator) {
42
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'codeExpirationTime': value['codeExpirationTime'] == null ? value['codeExpirationTime'] : value['codeExpirationTime'].toISOString(),
48
+ };
49
+ }
@@ -0,0 +1,61 @@
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 ReauthenticationFactor
16
+ */
17
+ export interface ReauthenticationFactor {
18
+ /**
19
+ *
20
+ * @type {ReauthenticationFactorTypeType}
21
+ * @memberof ReauthenticationFactor
22
+ */
23
+ type: ReauthenticationFactorTypeType;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ReauthenticationFactor
28
+ */
29
+ mfaMethodId?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ReauthenticationFactor
34
+ */
35
+ contactMethodId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ReauthenticationFactor
40
+ */
41
+ maskedTarget?: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const ReauthenticationFactorTypeType: {
47
+ readonly PASSWORD: "PASSWORD";
48
+ readonly EMAIL_OTP: "EMAIL_OTP";
49
+ readonly SMS_OTP: "SMS_OTP";
50
+ readonly TOTP: "TOTP";
51
+ readonly BACKUP_CODE: "BACKUP_CODE";
52
+ };
53
+ export type ReauthenticationFactorTypeType = typeof ReauthenticationFactorTypeType[keyof typeof ReauthenticationFactorTypeType];
54
+ /**
55
+ * Check if a given object implements the ReauthenticationFactor interface.
56
+ */
57
+ export declare function instanceOfReauthenticationFactor(value: object): value is ReauthenticationFactor;
58
+ export declare function ReauthenticationFactorFromJSON(json: any): ReauthenticationFactor;
59
+ export declare function ReauthenticationFactorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticationFactor;
60
+ export declare function ReauthenticationFactorToJSON(json: any): ReauthenticationFactor;
61
+ export declare function ReauthenticationFactorToJSONTyped(value?: ReauthenticationFactor | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
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.ReauthenticationFactorTypeType = void 0;
17
+ exports.instanceOfReauthenticationFactor = instanceOfReauthenticationFactor;
18
+ exports.ReauthenticationFactorFromJSON = ReauthenticationFactorFromJSON;
19
+ exports.ReauthenticationFactorFromJSONTyped = ReauthenticationFactorFromJSONTyped;
20
+ exports.ReauthenticationFactorToJSON = ReauthenticationFactorToJSON;
21
+ exports.ReauthenticationFactorToJSONTyped = ReauthenticationFactorToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ReauthenticationFactorTypeType = {
26
+ PASSWORD: 'PASSWORD',
27
+ EMAIL_OTP: 'EMAIL_OTP',
28
+ SMS_OTP: 'SMS_OTP',
29
+ TOTP: 'TOTP',
30
+ BACKUP_CODE: 'BACKUP_CODE'
31
+ };
32
+ /**
33
+ * Check if a given object implements the ReauthenticationFactor interface.
34
+ */
35
+ function instanceOfReauthenticationFactor(value) {
36
+ if (!('type' in value) || value['type'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ReauthenticationFactorFromJSON(json) {
41
+ return ReauthenticationFactorFromJSONTyped(json, false);
42
+ }
43
+ function ReauthenticationFactorFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'type': json['type'],
49
+ 'mfaMethodId': json['mfaMethodId'] == null ? undefined : json['mfaMethodId'],
50
+ 'contactMethodId': json['contactMethodId'] == null ? undefined : json['contactMethodId'],
51
+ 'maskedTarget': json['maskedTarget'] == null ? undefined : json['maskedTarget'],
52
+ };
53
+ }
54
+ function ReauthenticationFactorToJSON(json) {
55
+ return ReauthenticationFactorToJSONTyped(json, false);
56
+ }
57
+ function ReauthenticationFactorToJSONTyped(value, ignoreDiscriminator) {
58
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'type': value['type'],
64
+ 'mfaMethodId': value['mfaMethodId'],
65
+ 'contactMethodId': value['contactMethodId'],
66
+ 'maskedTarget': value['maskedTarget'],
67
+ };
68
+ }
@@ -0,0 +1,49 @@
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 ReauthenticationRequest
16
+ */
17
+ export interface ReauthenticationRequest {
18
+ /**
19
+ *
20
+ * @type {ReauthenticationRequestMethodType}
21
+ * @memberof ReauthenticationRequest
22
+ */
23
+ method: ReauthenticationRequestMethodType;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ReauthenticationRequest
28
+ */
29
+ credential?: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const ReauthenticationRequestMethodType: {
35
+ readonly PASSWORD: "PASSWORD";
36
+ readonly EMAIL_OTP: "EMAIL_OTP";
37
+ readonly SMS_OTP: "SMS_OTP";
38
+ readonly TOTP: "TOTP";
39
+ readonly BACKUP_CODE: "BACKUP_CODE";
40
+ };
41
+ export type ReauthenticationRequestMethodType = typeof ReauthenticationRequestMethodType[keyof typeof ReauthenticationRequestMethodType];
42
+ /**
43
+ * Check if a given object implements the ReauthenticationRequest interface.
44
+ */
45
+ export declare function instanceOfReauthenticationRequest(value: object): value is ReauthenticationRequest;
46
+ export declare function ReauthenticationRequestFromJSON(json: any): ReauthenticationRequest;
47
+ export declare function ReauthenticationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticationRequest;
48
+ export declare function ReauthenticationRequestToJSON(json: any): ReauthenticationRequest;
49
+ export declare function ReauthenticationRequestToJSONTyped(value?: ReauthenticationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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.ReauthenticationRequestMethodType = void 0;
17
+ exports.instanceOfReauthenticationRequest = instanceOfReauthenticationRequest;
18
+ exports.ReauthenticationRequestFromJSON = ReauthenticationRequestFromJSON;
19
+ exports.ReauthenticationRequestFromJSONTyped = ReauthenticationRequestFromJSONTyped;
20
+ exports.ReauthenticationRequestToJSON = ReauthenticationRequestToJSON;
21
+ exports.ReauthenticationRequestToJSONTyped = ReauthenticationRequestToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ReauthenticationRequestMethodType = {
26
+ PASSWORD: 'PASSWORD',
27
+ EMAIL_OTP: 'EMAIL_OTP',
28
+ SMS_OTP: 'SMS_OTP',
29
+ TOTP: 'TOTP',
30
+ BACKUP_CODE: 'BACKUP_CODE'
31
+ };
32
+ /**
33
+ * Check if a given object implements the ReauthenticationRequest interface.
34
+ */
35
+ function instanceOfReauthenticationRequest(value) {
36
+ if (!('method' in value) || value['method'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function ReauthenticationRequestFromJSON(json) {
41
+ return ReauthenticationRequestFromJSONTyped(json, false);
42
+ }
43
+ function ReauthenticationRequestFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'method': json['method'],
49
+ 'credential': json['credential'] == null ? undefined : json['credential'],
50
+ };
51
+ }
52
+ function ReauthenticationRequestToJSON(json) {
53
+ return ReauthenticationRequestToJSONTyped(json, false);
54
+ }
55
+ function ReauthenticationRequestToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'method': value['method'],
62
+ 'credential': value['credential'],
63
+ };
64
+ }
@@ -0,0 +1,32 @@
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 ReauthenticationResponse
16
+ */
17
+ export interface ReauthenticationResponse {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof ReauthenticationResponse
22
+ */
23
+ reauthenticatedAt: Date;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ReauthenticationResponse interface.
27
+ */
28
+ export declare function instanceOfReauthenticationResponse(value: object): value is ReauthenticationResponse;
29
+ export declare function ReauthenticationResponseFromJSON(json: any): ReauthenticationResponse;
30
+ export declare function ReauthenticationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticationResponse;
31
+ export declare function ReauthenticationResponseToJSON(json: any): ReauthenticationResponse;
32
+ export declare function ReauthenticationResponseToJSONTyped(value?: ReauthenticationResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfReauthenticationResponse = instanceOfReauthenticationResponse;
17
+ exports.ReauthenticationResponseFromJSON = ReauthenticationResponseFromJSON;
18
+ exports.ReauthenticationResponseFromJSONTyped = ReauthenticationResponseFromJSONTyped;
19
+ exports.ReauthenticationResponseToJSON = ReauthenticationResponseToJSON;
20
+ exports.ReauthenticationResponseToJSONTyped = ReauthenticationResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ReauthenticationResponse interface.
23
+ */
24
+ function instanceOfReauthenticationResponse(value) {
25
+ if (!('reauthenticatedAt' in value) || value['reauthenticatedAt'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ReauthenticationResponseFromJSON(json) {
30
+ return ReauthenticationResponseFromJSONTyped(json, false);
31
+ }
32
+ function ReauthenticationResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'reauthenticatedAt': (new Date(json['reauthenticatedAt'])),
38
+ };
39
+ }
40
+ function ReauthenticationResponseToJSON(json) {
41
+ return ReauthenticationResponseToJSONTyped(json, false);
42
+ }
43
+ function ReauthenticationResponseToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'reauthenticatedAt': value['reauthenticatedAt'].toISOString(),
50
+ };
51
+ }
@@ -0,0 +1,39 @@
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 { ReauthenticationFactor } from './ReauthenticationFactor';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ReauthenticationStatusResponse
17
+ */
18
+ export interface ReauthenticationStatusResponse {
19
+ /**
20
+ *
21
+ * @type {Date}
22
+ * @memberof ReauthenticationStatusResponse
23
+ */
24
+ lastReauthenticatedAt?: Date;
25
+ /**
26
+ *
27
+ * @type {Array<ReauthenticationFactor>}
28
+ * @memberof ReauthenticationStatusResponse
29
+ */
30
+ availableFactors: Array<ReauthenticationFactor>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the ReauthenticationStatusResponse interface.
34
+ */
35
+ export declare function instanceOfReauthenticationStatusResponse(value: object): value is ReauthenticationStatusResponse;
36
+ export declare function ReauthenticationStatusResponseFromJSON(json: any): ReauthenticationStatusResponse;
37
+ export declare function ReauthenticationStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReauthenticationStatusResponse;
38
+ export declare function ReauthenticationStatusResponseToJSON(json: any): ReauthenticationStatusResponse;
39
+ export declare function ReauthenticationStatusResponseToJSONTyped(value?: ReauthenticationStatusResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfReauthenticationStatusResponse = instanceOfReauthenticationStatusResponse;
17
+ exports.ReauthenticationStatusResponseFromJSON = ReauthenticationStatusResponseFromJSON;
18
+ exports.ReauthenticationStatusResponseFromJSONTyped = ReauthenticationStatusResponseFromJSONTyped;
19
+ exports.ReauthenticationStatusResponseToJSON = ReauthenticationStatusResponseToJSON;
20
+ exports.ReauthenticationStatusResponseToJSONTyped = ReauthenticationStatusResponseToJSONTyped;
21
+ var ReauthenticationFactor_1 = require("./ReauthenticationFactor");
22
+ /**
23
+ * Check if a given object implements the ReauthenticationStatusResponse interface.
24
+ */
25
+ function instanceOfReauthenticationStatusResponse(value) {
26
+ if (!('availableFactors' in value) || value['availableFactors'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ReauthenticationStatusResponseFromJSON(json) {
31
+ return ReauthenticationStatusResponseFromJSONTyped(json, false);
32
+ }
33
+ function ReauthenticationStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'lastReauthenticatedAt': json['lastReauthenticatedAt'] == null ? undefined : (new Date(json['lastReauthenticatedAt'])),
39
+ 'availableFactors': (json['availableFactors'].map(ReauthenticationFactor_1.ReauthenticationFactorFromJSON)),
40
+ };
41
+ }
42
+ function ReauthenticationStatusResponseToJSON(json) {
43
+ return ReauthenticationStatusResponseToJSONTyped(json, false);
44
+ }
45
+ function ReauthenticationStatusResponseToJSONTyped(value, ignoreDiscriminator) {
46
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'lastReauthenticatedAt': value['lastReauthenticatedAt'] == null ? value['lastReauthenticatedAt'] : value['lastReauthenticatedAt'].toISOString(),
52
+ 'availableFactors': (value['availableFactors'].map(ReauthenticationFactor_1.ReauthenticationFactorToJSON)),
53
+ };
54
+ }
@@ -48,6 +48,12 @@ export interface RegisterUserResponse {
48
48
  * @memberof RegisterUserResponse
49
49
  */
50
50
  availableMfaMethods?: Array<MfaMethodSummary>;
51
+ /**
52
+ *
53
+ * @type {Array<MfaMethodSummary>}
54
+ * @memberof RegisterUserResponse
55
+ */
56
+ pendingContactMethods?: Array<MfaMethodSummary>;
51
57
  }
52
58
  /**
53
59
  * @export
@@ -53,6 +53,7 @@ function RegisterUserResponseFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'sessionToken': (0, RenewSessionTokenResponse_1.RenewSessionTokenResponseFromJSON)(json['sessionToken']),
54
54
  'mfaStatus': json['mfaStatus'] == null ? undefined : json['mfaStatus'],
55
55
  'availableMfaMethods': json['availableMfaMethods'] == null ? undefined : (json['availableMfaMethods'].map(MfaMethodSummary_1.MfaMethodSummaryFromJSON)),
56
+ 'pendingContactMethods': json['pendingContactMethods'] == null ? undefined : (json['pendingContactMethods'].map(MfaMethodSummary_1.MfaMethodSummaryFromJSON)),
56
57
  };
57
58
  }
58
59
  function RegisterUserResponseToJSON(json) {
@@ -69,5 +70,6 @@ function RegisterUserResponseToJSONTyped(value, ignoreDiscriminator) {
69
70
  'sessionToken': (0, RenewSessionTokenResponse_1.RenewSessionTokenResponseToJSON)(value['sessionToken']),
70
71
  'mfaStatus': value['mfaStatus'],
71
72
  'availableMfaMethods': value['availableMfaMethods'] == null ? undefined : (value['availableMfaMethods'].map(MfaMethodSummary_1.MfaMethodSummaryToJSON)),
73
+ 'pendingContactMethods': value['pendingContactMethods'] == null ? undefined : (value['pendingContactMethods'].map(MfaMethodSummary_1.MfaMethodSummaryToJSON)),
72
74
  };
73
75
  }
@@ -28,6 +28,12 @@ export interface RotateManagedDatabaseUserPasswordResponse {
28
28
  * @memberof RotateManagedDatabaseUserPasswordResponse
29
29
  */
30
30
  password: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof RotateManagedDatabaseUserPasswordResponse
35
+ */
36
+ connectionUri?: string;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the RotateManagedDatabaseUserPasswordResponse interface.
@@ -39,6 +39,7 @@ function RotateManagedDatabaseUserPasswordResponseFromJSONTyped(json, ignoreDisc
39
39
  return {
40
40
  'databaseUser': (0, ManagedDatabaseUser_1.ManagedDatabaseUserFromJSON)(json['databaseUser']),
41
41
  'password': json['password'],
42
+ 'connectionUri': json['connectionUri'] == null ? undefined : json['connectionUri'],
42
43
  };
43
44
  }
44
45
  function RotateManagedDatabaseUserPasswordResponseToJSON(json) {
@@ -52,5 +53,6 @@ function RotateManagedDatabaseUserPasswordResponseToJSONTyped(value, ignoreDiscr
52
53
  return {
53
54
  'databaseUser': (0, ManagedDatabaseUser_1.ManagedDatabaseUserToJSON)(value['databaseUser']),
54
55
  'password': value['password'],
56
+ 'connectionUri': value['connectionUri'],
55
57
  };
56
58
  }
@@ -39,6 +39,12 @@ export interface SessionSummary {
39
39
  * @memberof SessionSummary
40
40
  */
41
41
  lastActivityAt?: Date;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof SessionSummary
46
+ */
47
+ lastReauthenticatedAt?: Date;
42
48
  /**
43
49
  *
44
50
  * @type {string}
@@ -40,6 +40,7 @@ function SessionSummaryFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'creationTime': (new Date(json['creationTime'])),
41
41
  'expirationTime': json['expirationTime'] == null ? undefined : (new Date(json['expirationTime'])),
42
42
  'lastActivityAt': json['lastActivityAt'] == null ? undefined : (new Date(json['lastActivityAt'])),
43
+ 'lastReauthenticatedAt': json['lastReauthenticatedAt'] == null ? undefined : (new Date(json['lastReauthenticatedAt'])),
43
44
  'sourceIpAddress': json['sourceIpAddress'] == null ? undefined : json['sourceIpAddress'],
44
45
  'approximateLocation': json['approximateLocation'] == null ? undefined : json['approximateLocation'],
45
46
  'current': json['current'] == null ? undefined : json['current'],
@@ -59,6 +60,7 @@ function SessionSummaryToJSONTyped(value, ignoreDiscriminator) {
59
60
  'creationTime': value['creationTime'].toISOString(),
60
61
  'expirationTime': value['expirationTime'] == null ? value['expirationTime'] : value['expirationTime'].toISOString(),
61
62
  'lastActivityAt': value['lastActivityAt'] == null ? value['lastActivityAt'] : value['lastActivityAt'].toISOString(),
63
+ 'lastReauthenticatedAt': value['lastReauthenticatedAt'] == null ? value['lastReauthenticatedAt'] : value['lastReauthenticatedAt'].toISOString(),
62
64
  'sourceIpAddress': value['sourceIpAddress'],
63
65
  'approximateLocation': value['approximateLocation'],
64
66
  'current': value['current'],
@@ -119,6 +119,9 @@ export declare const UserActionLogObjectActionTypeType: {
119
119
  readonly MFA_BACKUP_CODES_GENERATED: "MFA_BACKUP_CODES_GENERATED";
120
120
  readonly MFA_BACKUP_CODE_USED: "MFA_BACKUP_CODE_USED";
121
121
  readonly MFA_ADMIN_RESET: "MFA_ADMIN_RESET";
122
+ readonly REAUTHENTICATION_CHALLENGE_SENT: "REAUTHENTICATION_CHALLENGE_SENT";
123
+ readonly REAUTHENTICATED: "REAUTHENTICATED";
124
+ readonly REAUTHENTICATION_FAILED: "REAUTHENTICATION_FAILED";
122
125
  };
123
126
  export type UserActionLogObjectActionTypeType = typeof UserActionLogObjectActionTypeType[keyof typeof UserActionLogObjectActionTypeType];
124
127
  /**
@@ -71,7 +71,10 @@ exports.UserActionLogObjectActionTypeType = {
71
71
  MFA_CHALLENGE_FAILED: 'MFA_CHALLENGE_FAILED',
72
72
  MFA_BACKUP_CODES_GENERATED: 'MFA_BACKUP_CODES_GENERATED',
73
73
  MFA_BACKUP_CODE_USED: 'MFA_BACKUP_CODE_USED',
74
- MFA_ADMIN_RESET: 'MFA_ADMIN_RESET'
74
+ MFA_ADMIN_RESET: 'MFA_ADMIN_RESET',
75
+ REAUTHENTICATION_CHALLENGE_SENT: 'REAUTHENTICATION_CHALLENGE_SENT',
76
+ REAUTHENTICATED: 'REAUTHENTICATED',
77
+ REAUTHENTICATION_FAILED: 'REAUTHENTICATION_FAILED'
75
78
  };
76
79
  /**
77
80
  * Check if a given object implements the UserActionLogObject interface.
@@ -121,6 +121,12 @@ export * from './PendingUserInviteObject';
121
121
  export * from './ProductAggregate';
122
122
  export * from './ProjectObject';
123
123
  export * from './PutSubscriptionItemsRequest';
124
+ export * from './ReauthenticationChallengeRequest';
125
+ export * from './ReauthenticationChallengeResponse';
126
+ export * from './ReauthenticationFactor';
127
+ export * from './ReauthenticationRequest';
128
+ export * from './ReauthenticationResponse';
129
+ export * from './ReauthenticationStatusResponse';
124
130
  export * from './RegisterUserRequest';
125
131
  export * from './RegisterUserResponse';
126
132
  export * from './RenameMfaMethodRequest';
@@ -139,6 +139,12 @@ __exportStar(require("./PendingUserInviteObject"), exports);
139
139
  __exportStar(require("./ProductAggregate"), exports);
140
140
  __exportStar(require("./ProjectObject"), exports);
141
141
  __exportStar(require("./PutSubscriptionItemsRequest"), exports);
142
+ __exportStar(require("./ReauthenticationChallengeRequest"), exports);
143
+ __exportStar(require("./ReauthenticationChallengeResponse"), exports);
144
+ __exportStar(require("./ReauthenticationFactor"), exports);
145
+ __exportStar(require("./ReauthenticationRequest"), exports);
146
+ __exportStar(require("./ReauthenticationResponse"), exports);
147
+ __exportStar(require("./ReauthenticationStatusResponse"), exports);
142
148
  __exportStar(require("./RegisterUserRequest"), exports);
143
149
  __exportStar(require("./RegisterUserResponse"), exports);
144
150
  __exportStar(require("./RenameMfaMethodRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.328",
3
+ "version": "1.0.334",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {