@forteplatforms/sdk 1.0.141 → 1.0.147

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 (47) hide show
  1. package/dist/generated/apis/ProjectsServerApi.d.ts +84 -1
  2. package/dist/generated/apis/ProjectsServerApi.js +374 -0
  3. package/dist/generated/apis/UsersServerApi.d.ts +133 -1
  4. package/dist/generated/apis/UsersServerApi.js +631 -0
  5. package/dist/generated/models/CompleteOtpLoginRequest.d.ts +32 -0
  6. package/dist/generated/models/CompleteOtpLoginRequest.js +51 -0
  7. package/dist/generated/models/ContentObject.d.ts +116 -0
  8. package/dist/generated/models/ContentObject.js +99 -0
  9. package/dist/generated/models/ContentShare.d.ts +46 -0
  10. package/dist/generated/models/ContentShare.js +63 -0
  11. package/dist/generated/models/ContentShareRequestItem.d.ts +46 -0
  12. package/dist/generated/models/ContentShareRequestItem.js +63 -0
  13. package/dist/generated/models/CreateContentUploadLinkRequest.d.ts +52 -0
  14. package/dist/generated/models/CreateContentUploadLinkRequest.js +59 -0
  15. package/dist/generated/models/CreateContentUploadLinkResponse.d.ts +57 -0
  16. package/dist/generated/models/CreateContentUploadLinkResponse.js +68 -0
  17. package/dist/generated/models/CreateOtpLoginRequest.d.ts +44 -0
  18. package/dist/generated/models/CreateOtpLoginRequest.js +53 -0
  19. package/dist/generated/models/CreateOtpLoginResponse.d.ts +38 -0
  20. package/dist/generated/models/CreateOtpLoginResponse.js +55 -0
  21. package/dist/generated/models/CreateUserInviteRequest.d.ts +32 -0
  22. package/dist/generated/models/CreateUserInviteRequest.js +51 -0
  23. package/dist/generated/models/ForteApiException.d.ts +10 -0
  24. package/dist/generated/models/ForteApiException.js +11 -1
  25. package/dist/generated/models/GetContentDownloadLinkResponse.d.ts +38 -0
  26. package/dist/generated/models/GetContentDownloadLinkResponse.js +55 -0
  27. package/dist/generated/models/ListContentResponse.d.ts +39 -0
  28. package/dist/generated/models/ListContentResponse.js +54 -0
  29. package/dist/generated/models/ListUserInvitesResponse.d.ts +33 -0
  30. package/dist/generated/models/ListUserInvitesResponse.js +50 -0
  31. package/dist/generated/models/NotificationTemplatesConfig.d.ts +30 -0
  32. package/dist/generated/models/NotificationTemplatesConfig.js +10 -0
  33. package/dist/generated/models/PendingUserInviteObject.d.ts +80 -0
  34. package/dist/generated/models/PendingUserInviteObject.js +65 -0
  35. package/dist/generated/models/RequiredUploadHeaders.d.ts +38 -0
  36. package/dist/generated/models/RequiredUploadHeaders.js +55 -0
  37. package/dist/generated/models/UpdateContentSharesRequest.d.ts +33 -0
  38. package/dist/generated/models/UpdateContentSharesRequest.js +52 -0
  39. package/dist/generated/models/UpdateNotificationTemplatesRequest.d.ts +30 -0
  40. package/dist/generated/models/UpdateNotificationTemplatesRequest.js +10 -0
  41. package/dist/generated/models/UserActionLogObject.d.ts +4 -0
  42. package/dist/generated/models/UserActionLogObject.js +4 -0
  43. package/dist/generated/models/UserObject.d.ts +6 -0
  44. package/dist/generated/models/UserObject.js +2 -0
  45. package/dist/generated/models/index.d.ts +15 -0
  46. package/dist/generated/models/index.js +15 -0
  47. package/package.json +1 -1
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddContactMethodRequest, AdminOverrideContactMethodRequest, ApiKeySummary, ContactMethod, CreateForteServiceRequest, CreatePaymentPreviewRequest, CreatePaymentPreviewResponse, CreatePaymentRequest, CreatePaymentResponse, CreateProjectApiKeyRequest, CreateProjectApiKeyResponse, CreateServiceRequestProxyRequest, CreateServiceRequestProxyResponse, CreateWebAppRequest, NotificationTemplatesResponse, PaginatedResponseLogLineObject, PaginatedResponsePaymentObject, PaginatedResponseRequestLogObject, PaginatedResponseServiceBuildRequestObject, PaginatedResponseUserActionLogObject, PaginatedResponseUserObject, PaginatedResponseWebAppBuildRequestObject, PaymentTriggerConfig, ProjectObject, RequestLogObject, SendUserEmailRequest, SendUserSmsRequest, ServiceBuildRequestObject, ServiceMetricsResponse, ServiceObject, TestInvocationRequest, TestInvocationResponse, UpdateForteServiceRequest, UpdateForteServiceResponse, UpdateNotificationTemplatesRequest, UpdateProjectRequest, UpdateWebAppRequest, UpdateWebAppResponse, UpsertPaymentTriggerRequest, UserMetricsResponse, UserObject, WebAppBuildRequestObject, WebAppObject } from '../models/index';
13
+ import type { AddContactMethodRequest, AdminOverrideContactMethodRequest, ApiKeySummary, ContactMethod, ContentObject, CreateContentUploadLinkRequest, CreateContentUploadLinkResponse, CreateForteServiceRequest, CreatePaymentPreviewRequest, CreatePaymentPreviewResponse, CreatePaymentRequest, CreatePaymentResponse, CreateProjectApiKeyRequest, CreateProjectApiKeyResponse, CreateServiceRequestProxyRequest, CreateServiceRequestProxyResponse, CreateWebAppRequest, GetContentDownloadLinkResponse, ListContentResponse, NotificationTemplatesResponse, PaginatedResponseLogLineObject, PaginatedResponsePaymentObject, PaginatedResponseRequestLogObject, PaginatedResponseServiceBuildRequestObject, PaginatedResponseUserActionLogObject, PaginatedResponseUserObject, PaginatedResponseWebAppBuildRequestObject, PaymentTriggerConfig, ProjectObject, RequestLogObject, SendUserEmailRequest, SendUserSmsRequest, ServiceBuildRequestObject, ServiceMetricsResponse, ServiceObject, TestInvocationRequest, TestInvocationResponse, UpdateContentSharesRequest, UpdateForteServiceRequest, UpdateForteServiceResponse, UpdateNotificationTemplatesRequest, UpdateProjectRequest, UpdateWebAppRequest, UpdateWebAppResponse, UpsertPaymentTriggerRequest, UserMetricsResponse, UserObject, WebAppBuildRequestObject, WebAppObject } from '../models/index';
14
14
  export interface AdminAddUserContactMethodRequest {
15
15
  projectId: string;
16
16
  userId: string;
@@ -38,6 +38,11 @@ export interface AdminVerifyUserContactMethodRequest {
38
38
  contactMethodId: string;
39
39
  verificationCode: string;
40
40
  }
41
+ export interface CreateContentUploadLink1Request {
42
+ projectId: string;
43
+ userId: string;
44
+ createContentUploadLinkRequest: CreateContentUploadLinkRequest;
45
+ }
41
46
  export interface CreatePayment1Request {
42
47
  projectId: string;
43
48
  userId: string;
@@ -83,6 +88,11 @@ export interface CreateWebAppDeploymentRequest {
83
88
  webAppId: string;
84
89
  commitSha?: string;
85
90
  }
91
+ export interface DeleteContent1Request {
92
+ projectId: string;
93
+ userId: string;
94
+ contentId: string;
95
+ }
86
96
  export interface DeletePaymentTriggerRequest {
87
97
  projectId: string;
88
98
  triggerId: string;
@@ -106,6 +116,21 @@ export interface DeleteWebAppRequest {
106
116
  projectId: string;
107
117
  webAppId: string;
108
118
  }
119
+ export interface FinalizeContent1Request {
120
+ projectId: string;
121
+ userId: string;
122
+ contentId: string;
123
+ }
124
+ export interface GetContent1Request {
125
+ projectId: string;
126
+ userId: string;
127
+ contentId: string;
128
+ }
129
+ export interface GetContentDownloadLink1Request {
130
+ projectId: string;
131
+ userId: string;
132
+ contentId: string;
133
+ }
109
134
  export interface GetNotificationTemplatesRequest {
110
135
  projectId: string;
111
136
  }
@@ -152,6 +177,12 @@ export interface GetWebAppDeploymentRequest {
152
177
  webAppId: string;
153
178
  buildId: string;
154
179
  }
180
+ export interface ListContent1Request {
181
+ projectId: string;
182
+ userId: string;
183
+ page?: number;
184
+ pageSize?: number;
185
+ }
155
186
  export interface ListLogLinesRequest {
156
187
  projectId: string;
157
188
  serviceId: string;
@@ -254,6 +285,12 @@ export interface TestInvocationOperationRequest {
254
285
  serviceId: string;
255
286
  testInvocationRequest: TestInvocationRequest;
256
287
  }
288
+ export interface UpdateContentShares1Request {
289
+ projectId: string;
290
+ userId: string;
291
+ contentId: string;
292
+ updateContentSharesRequest: UpdateContentSharesRequest;
293
+ }
257
294
  export interface UpdateNotificationTemplatesOperationRequest {
258
295
  projectId: string;
259
296
  updateNotificationTemplatesRequest: UpdateNotificationTemplatesRequest;
@@ -311,6 +348,12 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
311
348
  /**
312
349
  */
313
350
  adminVerifyUserContactMethod(requestParameters: AdminVerifyUserContactMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContactMethod>;
351
+ /**
352
+ */
353
+ createContentUploadLink1Raw(requestParameters: CreateContentUploadLink1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateContentUploadLinkResponse>>;
354
+ /**
355
+ */
356
+ createContentUploadLink1(requestParameters: CreateContentUploadLink1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateContentUploadLinkResponse>;
314
357
  /**
315
358
  */
316
359
  createPayment1Raw(requestParameters: CreatePayment1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatePaymentResponse>>;
@@ -371,6 +414,12 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
371
414
  /**
372
415
  */
373
416
  createWebAppDeployment(requestParameters: CreateWebAppDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebAppBuildRequestObject>;
417
+ /**
418
+ */
419
+ deleteContent1Raw(requestParameters: DeleteContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
420
+ /**
421
+ */
422
+ deleteContent1(requestParameters: DeleteContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
374
423
  /**
375
424
  */
376
425
  deletePaymentTriggerRaw(requestParameters: DeletePaymentTriggerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
@@ -407,6 +456,24 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
407
456
  /**
408
457
  */
409
458
  deleteWebApp(requestParameters: DeleteWebAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
459
+ /**
460
+ */
461
+ finalizeContent1Raw(requestParameters: FinalizeContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContentObject>>;
462
+ /**
463
+ */
464
+ finalizeContent1(requestParameters: FinalizeContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContentObject>;
465
+ /**
466
+ */
467
+ getContent1Raw(requestParameters: GetContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContentObject>>;
468
+ /**
469
+ */
470
+ getContent1(requestParameters: GetContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContentObject>;
471
+ /**
472
+ */
473
+ getContentDownloadLink1Raw(requestParameters: GetContentDownloadLink1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetContentDownloadLinkResponse>>;
474
+ /**
475
+ */
476
+ getContentDownloadLink1(requestParameters: GetContentDownloadLink1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetContentDownloadLinkResponse>;
410
477
  /**
411
478
  */
412
479
  getNotificationTemplatesRaw(requestParameters: GetNotificationTemplatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationTemplatesResponse>>;
@@ -467,6 +534,12 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
467
534
  /**
468
535
  */
469
536
  getWebAppDeployment(requestParameters: GetWebAppDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebAppBuildRequestObject>;
537
+ /**
538
+ */
539
+ listContent1Raw(requestParameters: ListContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListContentResponse>>;
540
+ /**
541
+ */
542
+ listContent1(requestParameters: ListContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListContentResponse>;
470
543
  /**
471
544
  */
472
545
  listLogLinesRaw(requestParameters: ListLogLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseLogLineObject>>;
@@ -569,6 +642,12 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
569
642
  /**
570
643
  */
571
644
  testInvocation(requestParameters: TestInvocationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TestInvocationResponse>;
645
+ /**
646
+ */
647
+ updateContentShares1Raw(requestParameters: UpdateContentShares1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContentObject>>;
648
+ /**
649
+ */
650
+ updateContentShares1(requestParameters: UpdateContentShares1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ContentObject>;
572
651
  /**
573
652
  */
574
653
  updateNotificationTemplatesRaw(requestParameters: UpdateNotificationTemplatesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotificationTemplatesResponse>>;
@@ -636,8 +715,12 @@ export declare const ListUserActionLogsActionTypeType: {
636
715
  readonly CONTACT_METHOD_ADMIN_OVERRIDE: "CONTACT_METHOD_ADMIN_OVERRIDE";
637
716
  readonly USER_LOGIN: "USER_LOGIN";
638
717
  readonly USER_LOGOUT: "USER_LOGOUT";
718
+ readonly USER_LOGIN_OTP_SENT: "USER_LOGIN_OTP_SENT";
639
719
  readonly PAYMENT_CREATED: "PAYMENT_CREATED";
640
720
  readonly WELCOME_MESSAGE_SENT: "WELCOME_MESSAGE_SENT";
721
+ readonly USER_INVITE_CREATED: "USER_INVITE_CREATED";
722
+ readonly USER_INVITE_REVOKED: "USER_INVITE_REVOKED";
723
+ readonly USER_INVITE_ACCEPTED: "USER_INVITE_ACCEPTED";
641
724
  readonly EMAIL_SENT: "EMAIL_SENT";
642
725
  readonly SMS_SENT: "SMS_SENT";
643
726
  };
@@ -345,6 +345,59 @@ var ProjectsServerApi = /** @class */ (function (_super) {
345
345
  });
346
346
  });
347
347
  };
348
+ /**
349
+ */
350
+ ProjectsServerApi.prototype.createContentUploadLink1Raw = function (requestParameters, initOverrides) {
351
+ return __awaiter(this, void 0, void 0, function () {
352
+ var queryParameters, headerParameters, urlPath, response;
353
+ return __generator(this, function (_a) {
354
+ switch (_a.label) {
355
+ case 0:
356
+ if (requestParameters['projectId'] == null) {
357
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createContentUploadLink1().');
358
+ }
359
+ if (requestParameters['userId'] == null) {
360
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createContentUploadLink1().');
361
+ }
362
+ if (requestParameters['createContentUploadLinkRequest'] == null) {
363
+ throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling createContentUploadLink1().');
364
+ }
365
+ queryParameters = {};
366
+ headerParameters = {};
367
+ headerParameters['Content-Type'] = 'application/json';
368
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/upload-links";
369
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
370
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
371
+ return [4 /*yield*/, this.request({
372
+ path: urlPath,
373
+ method: 'POST',
374
+ headers: headerParameters,
375
+ query: queryParameters,
376
+ body: (0, index_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
377
+ }, initOverrides)];
378
+ case 1:
379
+ response = _a.sent();
380
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateContentUploadLinkResponseFromJSON)(jsonValue); })];
381
+ }
382
+ });
383
+ });
384
+ };
385
+ /**
386
+ */
387
+ ProjectsServerApi.prototype.createContentUploadLink1 = function (requestParameters, initOverrides) {
388
+ return __awaiter(this, void 0, void 0, function () {
389
+ var response;
390
+ return __generator(this, function (_a) {
391
+ switch (_a.label) {
392
+ case 0: return [4 /*yield*/, this.createContentUploadLink1Raw(requestParameters, initOverrides)];
393
+ case 1:
394
+ response = _a.sent();
395
+ return [4 /*yield*/, response.value()];
396
+ case 2: return [2 /*return*/, _a.sent()];
397
+ }
398
+ });
399
+ });
400
+ };
348
401
  /**
349
402
  */
350
403
  ProjectsServerApi.prototype.createPayment1Raw = function (requestParameters, initOverrides) {
@@ -851,6 +904,56 @@ var ProjectsServerApi = /** @class */ (function (_super) {
851
904
  });
852
905
  });
853
906
  };
907
+ /**
908
+ */
909
+ ProjectsServerApi.prototype.deleteContent1Raw = function (requestParameters, initOverrides) {
910
+ return __awaiter(this, void 0, void 0, function () {
911
+ var queryParameters, headerParameters, urlPath, response;
912
+ return __generator(this, function (_a) {
913
+ switch (_a.label) {
914
+ case 0:
915
+ if (requestParameters['projectId'] == null) {
916
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling deleteContent1().');
917
+ }
918
+ if (requestParameters['userId'] == null) {
919
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteContent1().');
920
+ }
921
+ if (requestParameters['contentId'] == null) {
922
+ throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling deleteContent1().');
923
+ }
924
+ queryParameters = {};
925
+ headerParameters = {};
926
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
927
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
928
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
929
+ urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
930
+ return [4 /*yield*/, this.request({
931
+ path: urlPath,
932
+ method: 'DELETE',
933
+ headers: headerParameters,
934
+ query: queryParameters,
935
+ }, initOverrides)];
936
+ case 1:
937
+ response = _a.sent();
938
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
939
+ }
940
+ });
941
+ });
942
+ };
943
+ /**
944
+ */
945
+ ProjectsServerApi.prototype.deleteContent1 = function (requestParameters, initOverrides) {
946
+ return __awaiter(this, void 0, void 0, function () {
947
+ return __generator(this, function (_a) {
948
+ switch (_a.label) {
949
+ case 0: return [4 /*yield*/, this.deleteContent1Raw(requestParameters, initOverrides)];
950
+ case 1:
951
+ _a.sent();
952
+ return [2 /*return*/];
953
+ }
954
+ });
955
+ });
956
+ };
854
957
  /**
855
958
  */
856
959
  ProjectsServerApi.prototype.deletePaymentTriggerRaw = function (requestParameters, initOverrides) {
@@ -1123,6 +1226,162 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1123
1226
  });
1124
1227
  });
1125
1228
  };
1229
+ /**
1230
+ */
1231
+ ProjectsServerApi.prototype.finalizeContent1Raw = function (requestParameters, initOverrides) {
1232
+ return __awaiter(this, void 0, void 0, function () {
1233
+ var queryParameters, headerParameters, urlPath, response;
1234
+ return __generator(this, function (_a) {
1235
+ switch (_a.label) {
1236
+ case 0:
1237
+ if (requestParameters['projectId'] == null) {
1238
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling finalizeContent1().');
1239
+ }
1240
+ if (requestParameters['userId'] == null) {
1241
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling finalizeContent1().');
1242
+ }
1243
+ if (requestParameters['contentId'] == null) {
1244
+ throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling finalizeContent1().');
1245
+ }
1246
+ queryParameters = {};
1247
+ headerParameters = {};
1248
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/finalize";
1249
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
1250
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
1251
+ urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
1252
+ return [4 /*yield*/, this.request({
1253
+ path: urlPath,
1254
+ method: 'POST',
1255
+ headers: headerParameters,
1256
+ query: queryParameters,
1257
+ }, initOverrides)];
1258
+ case 1:
1259
+ response = _a.sent();
1260
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContentObjectFromJSON)(jsonValue); })];
1261
+ }
1262
+ });
1263
+ });
1264
+ };
1265
+ /**
1266
+ */
1267
+ ProjectsServerApi.prototype.finalizeContent1 = function (requestParameters, initOverrides) {
1268
+ return __awaiter(this, void 0, void 0, function () {
1269
+ var response;
1270
+ return __generator(this, function (_a) {
1271
+ switch (_a.label) {
1272
+ case 0: return [4 /*yield*/, this.finalizeContent1Raw(requestParameters, initOverrides)];
1273
+ case 1:
1274
+ response = _a.sent();
1275
+ return [4 /*yield*/, response.value()];
1276
+ case 2: return [2 /*return*/, _a.sent()];
1277
+ }
1278
+ });
1279
+ });
1280
+ };
1281
+ /**
1282
+ */
1283
+ ProjectsServerApi.prototype.getContent1Raw = function (requestParameters, initOverrides) {
1284
+ return __awaiter(this, void 0, void 0, function () {
1285
+ var queryParameters, headerParameters, urlPath, response;
1286
+ return __generator(this, function (_a) {
1287
+ switch (_a.label) {
1288
+ case 0:
1289
+ if (requestParameters['projectId'] == null) {
1290
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContent1().');
1291
+ }
1292
+ if (requestParameters['userId'] == null) {
1293
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getContent1().');
1294
+ }
1295
+ if (requestParameters['contentId'] == null) {
1296
+ throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContent1().');
1297
+ }
1298
+ queryParameters = {};
1299
+ headerParameters = {};
1300
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}";
1301
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
1302
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
1303
+ urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
1304
+ return [4 /*yield*/, this.request({
1305
+ path: urlPath,
1306
+ method: 'GET',
1307
+ headers: headerParameters,
1308
+ query: queryParameters,
1309
+ }, initOverrides)];
1310
+ case 1:
1311
+ response = _a.sent();
1312
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContentObjectFromJSON)(jsonValue); })];
1313
+ }
1314
+ });
1315
+ });
1316
+ };
1317
+ /**
1318
+ */
1319
+ ProjectsServerApi.prototype.getContent1 = function (requestParameters, initOverrides) {
1320
+ return __awaiter(this, void 0, void 0, function () {
1321
+ var response;
1322
+ return __generator(this, function (_a) {
1323
+ switch (_a.label) {
1324
+ case 0: return [4 /*yield*/, this.getContent1Raw(requestParameters, initOverrides)];
1325
+ case 1:
1326
+ response = _a.sent();
1327
+ return [4 /*yield*/, response.value()];
1328
+ case 2: return [2 /*return*/, _a.sent()];
1329
+ }
1330
+ });
1331
+ });
1332
+ };
1333
+ /**
1334
+ */
1335
+ ProjectsServerApi.prototype.getContentDownloadLink1Raw = function (requestParameters, initOverrides) {
1336
+ return __awaiter(this, void 0, void 0, function () {
1337
+ var queryParameters, headerParameters, urlPath, response;
1338
+ return __generator(this, function (_a) {
1339
+ switch (_a.label) {
1340
+ case 0:
1341
+ if (requestParameters['projectId'] == null) {
1342
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getContentDownloadLink1().');
1343
+ }
1344
+ if (requestParameters['userId'] == null) {
1345
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getContentDownloadLink1().');
1346
+ }
1347
+ if (requestParameters['contentId'] == null) {
1348
+ throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling getContentDownloadLink1().');
1349
+ }
1350
+ queryParameters = {};
1351
+ headerParameters = {};
1352
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/download-link";
1353
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
1354
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
1355
+ urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
1356
+ return [4 /*yield*/, this.request({
1357
+ path: urlPath,
1358
+ method: 'GET',
1359
+ headers: headerParameters,
1360
+ query: queryParameters,
1361
+ }, initOverrides)];
1362
+ case 1:
1363
+ response = _a.sent();
1364
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.GetContentDownloadLinkResponseFromJSON)(jsonValue); })];
1365
+ }
1366
+ });
1367
+ });
1368
+ };
1369
+ /**
1370
+ */
1371
+ ProjectsServerApi.prototype.getContentDownloadLink1 = function (requestParameters, initOverrides) {
1372
+ return __awaiter(this, void 0, void 0, function () {
1373
+ var response;
1374
+ return __generator(this, function (_a) {
1375
+ switch (_a.label) {
1376
+ case 0: return [4 /*yield*/, this.getContentDownloadLink1Raw(requestParameters, initOverrides)];
1377
+ case 1:
1378
+ response = _a.sent();
1379
+ return [4 /*yield*/, response.value()];
1380
+ case 2: return [2 /*return*/, _a.sent()];
1381
+ }
1382
+ });
1383
+ });
1384
+ };
1126
1385
  /**
1127
1386
  */
1128
1387
  ProjectsServerApi.prototype.getNotificationTemplatesRaw = function (requestParameters, initOverrides) {
@@ -1621,6 +1880,60 @@ var ProjectsServerApi = /** @class */ (function (_super) {
1621
1880
  });
1622
1881
  });
1623
1882
  };
1883
+ /**
1884
+ */
1885
+ ProjectsServerApi.prototype.listContent1Raw = function (requestParameters, initOverrides) {
1886
+ return __awaiter(this, void 0, void 0, function () {
1887
+ var queryParameters, headerParameters, urlPath, response;
1888
+ return __generator(this, function (_a) {
1889
+ switch (_a.label) {
1890
+ case 0:
1891
+ if (requestParameters['projectId'] == null) {
1892
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listContent1().');
1893
+ }
1894
+ if (requestParameters['userId'] == null) {
1895
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling listContent1().');
1896
+ }
1897
+ queryParameters = {};
1898
+ if (requestParameters['page'] != null) {
1899
+ queryParameters['page'] = requestParameters['page'];
1900
+ }
1901
+ if (requestParameters['pageSize'] != null) {
1902
+ queryParameters['pageSize'] = requestParameters['pageSize'];
1903
+ }
1904
+ headerParameters = {};
1905
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/content";
1906
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
1907
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
1908
+ return [4 /*yield*/, this.request({
1909
+ path: urlPath,
1910
+ method: 'GET',
1911
+ headers: headerParameters,
1912
+ query: queryParameters,
1913
+ }, initOverrides)];
1914
+ case 1:
1915
+ response = _a.sent();
1916
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListContentResponseFromJSON)(jsonValue); })];
1917
+ }
1918
+ });
1919
+ });
1920
+ };
1921
+ /**
1922
+ */
1923
+ ProjectsServerApi.prototype.listContent1 = function (requestParameters, initOverrides) {
1924
+ return __awaiter(this, void 0, void 0, function () {
1925
+ var response;
1926
+ return __generator(this, function (_a) {
1927
+ switch (_a.label) {
1928
+ case 0: return [4 /*yield*/, this.listContent1Raw(requestParameters, initOverrides)];
1929
+ case 1:
1930
+ response = _a.sent();
1931
+ return [4 /*yield*/, response.value()];
1932
+ case 2: return [2 /*return*/, _a.sent()];
1933
+ }
1934
+ });
1935
+ });
1936
+ };
1624
1937
  /**
1625
1938
  */
1626
1939
  ProjectsServerApi.prototype.listLogLinesRaw = function (requestParameters, initOverrides) {
@@ -2556,6 +2869,63 @@ var ProjectsServerApi = /** @class */ (function (_super) {
2556
2869
  });
2557
2870
  });
2558
2871
  };
2872
+ /**
2873
+ */
2874
+ ProjectsServerApi.prototype.updateContentShares1Raw = function (requestParameters, initOverrides) {
2875
+ return __awaiter(this, void 0, void 0, function () {
2876
+ var queryParameters, headerParameters, urlPath, response;
2877
+ return __generator(this, function (_a) {
2878
+ switch (_a.label) {
2879
+ case 0:
2880
+ if (requestParameters['projectId'] == null) {
2881
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling updateContentShares1().');
2882
+ }
2883
+ if (requestParameters['userId'] == null) {
2884
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling updateContentShares1().');
2885
+ }
2886
+ if (requestParameters['contentId'] == null) {
2887
+ throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling updateContentShares1().');
2888
+ }
2889
+ if (requestParameters['updateContentSharesRequest'] == null) {
2890
+ throw new runtime.RequiredError('updateContentSharesRequest', 'Required parameter "updateContentSharesRequest" was null or undefined when calling updateContentShares1().');
2891
+ }
2892
+ queryParameters = {};
2893
+ headerParameters = {};
2894
+ headerParameters['Content-Type'] = 'application/json';
2895
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/shares";
2896
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
2897
+ urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
2898
+ urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
2899
+ return [4 /*yield*/, this.request({
2900
+ path: urlPath,
2901
+ method: 'PUT',
2902
+ headers: headerParameters,
2903
+ query: queryParameters,
2904
+ body: (0, index_1.UpdateContentSharesRequestToJSON)(requestParameters['updateContentSharesRequest']),
2905
+ }, initOverrides)];
2906
+ case 1:
2907
+ response = _a.sent();
2908
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ContentObjectFromJSON)(jsonValue); })];
2909
+ }
2910
+ });
2911
+ });
2912
+ };
2913
+ /**
2914
+ */
2915
+ ProjectsServerApi.prototype.updateContentShares1 = function (requestParameters, initOverrides) {
2916
+ return __awaiter(this, void 0, void 0, function () {
2917
+ var response;
2918
+ return __generator(this, function (_a) {
2919
+ switch (_a.label) {
2920
+ case 0: return [4 /*yield*/, this.updateContentShares1Raw(requestParameters, initOverrides)];
2921
+ case 1:
2922
+ response = _a.sent();
2923
+ return [4 /*yield*/, response.value()];
2924
+ case 2: return [2 /*return*/, _a.sent()];
2925
+ }
2926
+ });
2927
+ });
2928
+ };
2559
2929
  /**
2560
2930
  */
2561
2931
  ProjectsServerApi.prototype.updateNotificationTemplatesRaw = function (requestParameters, initOverrides) {
@@ -2850,8 +3220,12 @@ exports.ListUserActionLogsActionTypeType = {
2850
3220
  CONTACT_METHOD_ADMIN_OVERRIDE: 'CONTACT_METHOD_ADMIN_OVERRIDE',
2851
3221
  USER_LOGIN: 'USER_LOGIN',
2852
3222
  USER_LOGOUT: 'USER_LOGOUT',
3223
+ USER_LOGIN_OTP_SENT: 'USER_LOGIN_OTP_SENT',
2853
3224
  PAYMENT_CREATED: 'PAYMENT_CREATED',
2854
3225
  WELCOME_MESSAGE_SENT: 'WELCOME_MESSAGE_SENT',
3226
+ USER_INVITE_CREATED: 'USER_INVITE_CREATED',
3227
+ USER_INVITE_REVOKED: 'USER_INVITE_REVOKED',
3228
+ USER_INVITE_ACCEPTED: 'USER_INVITE_ACCEPTED',
2855
3229
  EMAIL_SENT: 'EMAIL_SENT',
2856
3230
  SMS_SENT: 'SMS_SENT'
2857
3231
  };