@forteplatforms/sdk 1.0.332 → 1.0.338

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 (40) hide show
  1. package/dist/generated/apis/ProjectsServerApi.d.ts +31 -3
  2. package/dist/generated/apis/ProjectsServerApi.js +84 -4
  3. package/dist/generated/apis/UsersServerApi.d.ts +49 -0
  4. package/dist/generated/apis/UsersServerApi.js +195 -0
  5. package/dist/generated/models/BodyRef.d.ts +44 -0
  6. package/dist/generated/models/BodyRef.js +57 -0
  7. package/dist/generated/models/ForteApiException.d.ts +11 -0
  8. package/dist/generated/models/ForteApiException.js +11 -0
  9. package/dist/generated/models/GetRequestBodyDownloadLinkResponse.d.ts +50 -0
  10. package/dist/generated/models/GetRequestBodyDownloadLinkResponse.js +61 -0
  11. package/dist/generated/models/LoginHistoryEntry.d.ts +12 -0
  12. package/dist/generated/models/LoginHistoryEntry.js +4 -0
  13. package/dist/generated/models/PaginatedResponseRequestLogObject.js +6 -5
  14. package/dist/generated/models/PaginatedResponseRequestLogSummary.d.ts +45 -0
  15. package/dist/generated/models/PaginatedResponseRequestLogSummary.js +58 -0
  16. package/dist/generated/models/ReauthenticationChallengeRequest.d.ts +49 -0
  17. package/dist/generated/models/ReauthenticationChallengeRequest.js +64 -0
  18. package/dist/generated/models/ReauthenticationChallengeResponse.d.ts +32 -0
  19. package/dist/generated/models/ReauthenticationChallengeResponse.js +49 -0
  20. package/dist/generated/models/ReauthenticationFactor.d.ts +61 -0
  21. package/dist/generated/models/ReauthenticationFactor.js +68 -0
  22. package/dist/generated/models/ReauthenticationRequest.d.ts +49 -0
  23. package/dist/generated/models/ReauthenticationRequest.js +64 -0
  24. package/dist/generated/models/ReauthenticationResponse.d.ts +32 -0
  25. package/dist/generated/models/ReauthenticationResponse.js +51 -0
  26. package/dist/generated/models/ReauthenticationStatusResponse.d.ts +39 -0
  27. package/dist/generated/models/ReauthenticationStatusResponse.js +54 -0
  28. package/dist/generated/models/RegisterUserResponse.d.ts +6 -0
  29. package/dist/generated/models/RegisterUserResponse.js +2 -0
  30. package/dist/generated/models/RequestLogObject.d.ts +13 -0
  31. package/dist/generated/models/RequestLogObject.js +5 -0
  32. package/dist/generated/models/RequestLogSummary.d.ts +63 -0
  33. package/dist/generated/models/RequestLogSummary.js +70 -0
  34. package/dist/generated/models/SessionSummary.d.ts +18 -0
  35. package/dist/generated/models/SessionSummary.js +6 -0
  36. package/dist/generated/models/UserActionLogObject.d.ts +9 -0
  37. package/dist/generated/models/UserActionLogObject.js +6 -1
  38. package/dist/generated/models/index.d.ts +10 -1
  39. package/dist/generated/models/index.js +10 -1
  40. package/package.json +1 -1
@@ -46,6 +46,7 @@ import { type CreateSubscriptionResponse } from '../models/CreateSubscriptionRes
46
46
  import { type CreateWebAppRequest } from '../models/CreateWebAppRequest';
47
47
  import { type CustomDomainResponse } from '../models/CustomDomainResponse';
48
48
  import { type GetContentDownloadLinkResponse } from '../models/GetContentDownloadLinkResponse';
49
+ import { type GetRequestBodyDownloadLinkResponse } from '../models/GetRequestBodyDownloadLinkResponse';
49
50
  import { type ImpersonationTokenResponse } from '../models/ImpersonationTokenResponse';
50
51
  import { type ListContentResponse } from '../models/ListContentResponse';
51
52
  import { type ListCustomDomainsResponse } from '../models/ListCustomDomainsResponse';
@@ -60,7 +61,7 @@ import { type NotificationTemplatesResponse } from '../models/NotificationTempla
60
61
  import { type PaginatedResponseActionInvocationObject } from '../models/PaginatedResponseActionInvocationObject';
61
62
  import { type PaginatedResponseLogLineObject } from '../models/PaginatedResponseLogLineObject';
62
63
  import { type PaginatedResponsePaymentObject } from '../models/PaginatedResponsePaymentObject';
63
- import { type PaginatedResponseRequestLogObject } from '../models/PaginatedResponseRequestLogObject';
64
+ import { type PaginatedResponseRequestLogSummary } from '../models/PaginatedResponseRequestLogSummary';
64
65
  import { type PaginatedResponseServiceBuildRequestObject } from '../models/PaginatedResponseServiceBuildRequestObject';
65
66
  import { type PaginatedResponseUserActionLogObject } from '../models/PaginatedResponseUserActionLogObject';
66
67
  import { type PaginatedResponseUserObject } from '../models/PaginatedResponseUserObject';
@@ -335,6 +336,12 @@ export interface GetPaymentAnalyticsRequest {
335
336
  export interface GetProjectRequest {
336
337
  projectId: string;
337
338
  }
339
+ export interface GetRequestBodyDownloadLinkRequest {
340
+ projectId: string;
341
+ serviceId: string;
342
+ requestId: string;
343
+ part: GetRequestBodyDownloadLinkPartType;
344
+ }
338
345
  export interface GetRequestInvocationLogRequest {
339
346
  projectId: string;
340
347
  serviceId: string;
@@ -1270,6 +1277,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
1270
1277
  /**
1271
1278
  */
1272
1279
  getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectObject>;
1280
+ /**
1281
+ * Creates request options for getRequestBodyDownloadLink without sending the request
1282
+ */
1283
+ getRequestBodyDownloadLinkRequestOpts(requestParameters: GetRequestBodyDownloadLinkRequest): Promise<runtime.RequestOpts>;
1284
+ /**
1285
+ */
1286
+ getRequestBodyDownloadLinkRaw(requestParameters: GetRequestBodyDownloadLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetRequestBodyDownloadLinkResponse>>;
1287
+ /**
1288
+ */
1289
+ getRequestBodyDownloadLink(requestParameters: GetRequestBodyDownloadLinkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetRequestBodyDownloadLinkResponse>;
1273
1290
  /**
1274
1291
  * Creates request options for getRequestInvocationLog without sending the request
1275
1292
  */
@@ -1896,10 +1913,10 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
1896
1913
  searchRequestInvocationLogsRequestOpts(requestParameters: SearchRequestInvocationLogsRequest): Promise<runtime.RequestOpts>;
1897
1914
  /**
1898
1915
  */
1899
- searchRequestInvocationLogsRaw(requestParameters: SearchRequestInvocationLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseRequestLogObject>>;
1916
+ searchRequestInvocationLogsRaw(requestParameters: SearchRequestInvocationLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseRequestLogSummary>>;
1900
1917
  /**
1901
1918
  */
1902
- searchRequestInvocationLogs(requestParameters: SearchRequestInvocationLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseRequestLogObject>;
1919
+ searchRequestInvocationLogs(requestParameters: SearchRequestInvocationLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseRequestLogSummary>;
1903
1920
  /**
1904
1921
  * Creates request options for searchUsers without sending the request
1905
1922
  */
@@ -2100,6 +2117,14 @@ export declare const GetPaymentAnalyticsGranularityType: {
2100
2117
  readonly ONE_HOUR: "ONE_HOUR";
2101
2118
  };
2102
2119
  export type GetPaymentAnalyticsGranularityType = typeof GetPaymentAnalyticsGranularityType[keyof typeof GetPaymentAnalyticsGranularityType];
2120
+ /**
2121
+ * @export
2122
+ */
2123
+ export declare const GetRequestBodyDownloadLinkPartType: {
2124
+ readonly REQUEST: "REQUEST";
2125
+ readonly RESPONSE: "RESPONSE";
2126
+ };
2127
+ export type GetRequestBodyDownloadLinkPartType = typeof GetRequestBodyDownloadLinkPartType[keyof typeof GetRequestBodyDownloadLinkPartType];
2103
2128
  /**
2104
2129
  * @export
2105
2130
  */
@@ -2185,6 +2210,9 @@ export declare const ListUserActionLogsActionTypeType: {
2185
2210
  readonly MFA_BACKUP_CODES_GENERATED: "MFA_BACKUP_CODES_GENERATED";
2186
2211
  readonly MFA_BACKUP_CODE_USED: "MFA_BACKUP_CODE_USED";
2187
2212
  readonly MFA_ADMIN_RESET: "MFA_ADMIN_RESET";
2213
+ readonly REAUTHENTICATION_CHALLENGE_SENT: "REAUTHENTICATION_CHALLENGE_SENT";
2214
+ readonly REAUTHENTICATED: "REAUTHENTICATED";
2215
+ readonly REAUTHENTICATION_FAILED: "REAUTHENTICATION_FAILED";
2188
2216
  };
2189
2217
  export type ListUserActionLogsActionTypeType = typeof ListUserActionLogsActionTypeType[keyof typeof ListUserActionLogsActionTypeType];
2190
2218
  /**
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.SuggestDatabaseEnvVarsDatabaseTypeType = exports.ListUserPaymentsStateType = exports.ListUserActionLogsActionTypeType = exports.ListProjectPaymentsStateType = exports.GetUserMetricsGranularityType = exports.GetServiceMetricsGranularityType = exports.GetPaymentAnalyticsGranularityType = exports.GetPaymentAnalyticsGroupByType = exports.ProjectsServerApi = void 0;
67
+ exports.SuggestDatabaseEnvVarsDatabaseTypeType = exports.ListUserPaymentsStateType = exports.ListUserActionLogsActionTypeType = exports.ListProjectPaymentsStateType = exports.GetUserMetricsGranularityType = exports.GetServiceMetricsGranularityType = exports.GetRequestBodyDownloadLinkPartType = exports.GetPaymentAnalyticsGranularityType = exports.GetPaymentAnalyticsGroupByType = exports.ProjectsServerApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var ActionInvocationObject_1 = require("../models/ActionInvocationObject");
70
70
  var ActionObject_1 = require("../models/ActionObject");
@@ -102,6 +102,7 @@ var CreateSubscriptionResponse_1 = require("../models/CreateSubscriptionResponse
102
102
  var CreateWebAppRequest_1 = require("../models/CreateWebAppRequest");
103
103
  var CustomDomainResponse_1 = require("../models/CustomDomainResponse");
104
104
  var GetContentDownloadLinkResponse_1 = require("../models/GetContentDownloadLinkResponse");
105
+ var GetRequestBodyDownloadLinkResponse_1 = require("../models/GetRequestBodyDownloadLinkResponse");
105
106
  var ImpersonationTokenResponse_1 = require("../models/ImpersonationTokenResponse");
106
107
  var ListContentResponse_1 = require("../models/ListContentResponse");
107
108
  var ListCustomDomainsResponse_1 = require("../models/ListCustomDomainsResponse");
@@ -116,7 +117,7 @@ var NotificationTemplatesResponse_1 = require("../models/NotificationTemplatesRe
116
117
  var PaginatedResponseActionInvocationObject_1 = require("../models/PaginatedResponseActionInvocationObject");
117
118
  var PaginatedResponseLogLineObject_1 = require("../models/PaginatedResponseLogLineObject");
118
119
  var PaginatedResponsePaymentObject_1 = require("../models/PaginatedResponsePaymentObject");
119
- var PaginatedResponseRequestLogObject_1 = require("../models/PaginatedResponseRequestLogObject");
120
+ var PaginatedResponseRequestLogSummary_1 = require("../models/PaginatedResponseRequestLogSummary");
120
121
  var PaginatedResponseServiceBuildRequestObject_1 = require("../models/PaginatedResponseServiceBuildRequestObject");
121
122
  var PaginatedResponseUserActionLogObject_1 = require("../models/PaginatedResponseUserActionLogObject");
122
123
  var PaginatedResponseUserObject_1 = require("../models/PaginatedResponseUserObject");
@@ -3267,6 +3268,75 @@ var ProjectsServerApi = /** @class */ (function (_super) {
3267
3268
  });
3268
3269
  });
3269
3270
  };
3271
+ /**
3272
+ * Creates request options for getRequestBodyDownloadLink without sending the request
3273
+ */
3274
+ ProjectsServerApi.prototype.getRequestBodyDownloadLinkRequestOpts = function (requestParameters) {
3275
+ return __awaiter(this, void 0, void 0, function () {
3276
+ var queryParameters, headerParameters, urlPath;
3277
+ return __generator(this, function (_a) {
3278
+ if (requestParameters['projectId'] == null) {
3279
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getRequestBodyDownloadLink().');
3280
+ }
3281
+ if (requestParameters['serviceId'] == null) {
3282
+ throw new runtime.RequiredError('serviceId', 'Required parameter "serviceId" was null or undefined when calling getRequestBodyDownloadLink().');
3283
+ }
3284
+ if (requestParameters['requestId'] == null) {
3285
+ throw new runtime.RequiredError('requestId', 'Required parameter "requestId" was null or undefined when calling getRequestBodyDownloadLink().');
3286
+ }
3287
+ if (requestParameters['part'] == null) {
3288
+ throw new runtime.RequiredError('part', 'Required parameter "part" was null or undefined when calling getRequestBodyDownloadLink().');
3289
+ }
3290
+ queryParameters = {};
3291
+ headerParameters = {};
3292
+ urlPath = "/api/v1/projects/{projectId}/services/{serviceId}/requests/{requestId}/bodies/{part}/download-link";
3293
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
3294
+ urlPath = urlPath.replace('{serviceId}', encodeURIComponent(String(requestParameters['serviceId'])));
3295
+ urlPath = urlPath.replace('{requestId}', encodeURIComponent(String(requestParameters['requestId'])));
3296
+ urlPath = urlPath.replace('{part}', encodeURIComponent(String(requestParameters['part'])));
3297
+ return [2 /*return*/, {
3298
+ path: urlPath,
3299
+ method: 'GET',
3300
+ headers: headerParameters,
3301
+ query: queryParameters,
3302
+ }];
3303
+ });
3304
+ });
3305
+ };
3306
+ /**
3307
+ */
3308
+ ProjectsServerApi.prototype.getRequestBodyDownloadLinkRaw = function (requestParameters, initOverrides) {
3309
+ return __awaiter(this, void 0, void 0, function () {
3310
+ var requestOptions, response;
3311
+ return __generator(this, function (_a) {
3312
+ switch (_a.label) {
3313
+ case 0: return [4 /*yield*/, this.getRequestBodyDownloadLinkRequestOpts(requestParameters)];
3314
+ case 1:
3315
+ requestOptions = _a.sent();
3316
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
3317
+ case 2:
3318
+ response = _a.sent();
3319
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, GetRequestBodyDownloadLinkResponse_1.GetRequestBodyDownloadLinkResponseFromJSON)(jsonValue); })];
3320
+ }
3321
+ });
3322
+ });
3323
+ };
3324
+ /**
3325
+ */
3326
+ ProjectsServerApi.prototype.getRequestBodyDownloadLink = function (requestParameters, initOverrides) {
3327
+ return __awaiter(this, void 0, void 0, function () {
3328
+ var response;
3329
+ return __generator(this, function (_a) {
3330
+ switch (_a.label) {
3331
+ case 0: return [4 /*yield*/, this.getRequestBodyDownloadLinkRaw(requestParameters, initOverrides)];
3332
+ case 1:
3333
+ response = _a.sent();
3334
+ return [4 /*yield*/, response.value()];
3335
+ case 2: return [2 /*return*/, _a.sent()];
3336
+ }
3337
+ });
3338
+ });
3339
+ };
3270
3340
  /**
3271
3341
  * Creates request options for getRequestInvocationLog without sending the request
3272
3342
  */
@@ -7409,7 +7479,7 @@ var ProjectsServerApi = /** @class */ (function (_super) {
7409
7479
  return [4 /*yield*/, this.request(requestOptions, initOverrides)];
7410
7480
  case 2:
7411
7481
  response = _a.sent();
7412
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseRequestLogObject_1.PaginatedResponseRequestLogObjectFromJSON)(jsonValue); })];
7482
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponseRequestLogSummary_1.PaginatedResponseRequestLogSummaryFromJSON)(jsonValue); })];
7413
7483
  }
7414
7484
  });
7415
7485
  });
@@ -8650,6 +8720,13 @@ exports.GetPaymentAnalyticsGranularityType = {
8650
8720
  FIFTEEN_MINUTES: 'FIFTEEN_MINUTES',
8651
8721
  ONE_HOUR: 'ONE_HOUR'
8652
8722
  };
8723
+ /**
8724
+ * @export
8725
+ */
8726
+ exports.GetRequestBodyDownloadLinkPartType = {
8727
+ REQUEST: 'REQUEST',
8728
+ RESPONSE: 'RESPONSE'
8729
+ };
8653
8730
  /**
8654
8731
  * @export
8655
8732
  */
@@ -8731,7 +8808,10 @@ exports.ListUserActionLogsActionTypeType = {
8731
8808
  MFA_CHALLENGE_FAILED: 'MFA_CHALLENGE_FAILED',
8732
8809
  MFA_BACKUP_CODES_GENERATED: 'MFA_BACKUP_CODES_GENERATED',
8733
8810
  MFA_BACKUP_CODE_USED: 'MFA_BACKUP_CODE_USED',
8734
- MFA_ADMIN_RESET: 'MFA_ADMIN_RESET'
8811
+ MFA_ADMIN_RESET: 'MFA_ADMIN_RESET',
8812
+ REAUTHENTICATION_CHALLENGE_SENT: 'REAUTHENTICATION_CHALLENGE_SENT',
8813
+ REAUTHENTICATED: 'REAUTHENTICATED',
8814
+ REAUTHENTICATION_FAILED: 'REAUTHENTICATION_FAILED'
8735
8815
  };
8736
8816
  /**
8737
8817
  * @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
  */
@@ -0,0 +1,44 @@
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 BodyRef
16
+ */
17
+ export interface BodyRef {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof BodyRef
22
+ */
23
+ fullSizeBytes: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof BodyRef
28
+ */
29
+ contentType?: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof BodyRef
34
+ */
35
+ downloadable: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the BodyRef interface.
39
+ */
40
+ export declare function instanceOfBodyRef(value: object): value is BodyRef;
41
+ export declare function BodyRefFromJSON(json: any): BodyRef;
42
+ export declare function BodyRefFromJSONTyped(json: any, ignoreDiscriminator: boolean): BodyRef;
43
+ export declare function BodyRefToJSON(json: any): BodyRef;
44
+ export declare function BodyRefToJSONTyped(value?: BodyRef | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfBodyRef = instanceOfBodyRef;
17
+ exports.BodyRefFromJSON = BodyRefFromJSON;
18
+ exports.BodyRefFromJSONTyped = BodyRefFromJSONTyped;
19
+ exports.BodyRefToJSON = BodyRefToJSON;
20
+ exports.BodyRefToJSONTyped = BodyRefToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BodyRef interface.
23
+ */
24
+ function instanceOfBodyRef(value) {
25
+ if (!('fullSizeBytes' in value) || value['fullSizeBytes'] === undefined)
26
+ return false;
27
+ if (!('downloadable' in value) || value['downloadable'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function BodyRefFromJSON(json) {
32
+ return BodyRefFromJSONTyped(json, false);
33
+ }
34
+ function BodyRefFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'fullSizeBytes': json['fullSizeBytes'],
40
+ 'contentType': json['contentType'] == null ? undefined : json['contentType'],
41
+ 'downloadable': json['downloadable'],
42
+ };
43
+ }
44
+ function BodyRefToJSON(json) {
45
+ return BodyRefToJSONTyped(json, false);
46
+ }
47
+ function BodyRefToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'fullSizeBytes': value['fullSizeBytes'],
54
+ 'contentType': value['contentType'],
55
+ 'downloadable': value['downloadable'],
56
+ };
57
+ }