@forteplatforms/sdk 1.0.144 → 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.
@@ -256,12 +256,6 @@ export interface PutUserCustomAttributesRequest {
256
256
  [key: string]: string;
257
257
  };
258
258
  }
259
- export interface ReUploadContent1Request {
260
- projectId: string;
261
- userId: string;
262
- contentId: string;
263
- createContentUploadLinkRequest: CreateContentUploadLinkRequest;
264
- }
265
259
  export interface SearchLogLinesRequest {
266
260
  projectId: string;
267
261
  serviceId: string;
@@ -618,12 +612,6 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
618
612
  /**
619
613
  */
620
614
  putUserCustomAttributes(requestParameters: PutUserCustomAttributesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserObject>;
621
- /**
622
- */
623
- reUploadContent1Raw(requestParameters: ReUploadContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateContentUploadLinkResponse>>;
624
- /**
625
- */
626
- reUploadContent1(requestParameters: ReUploadContent1Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateContentUploadLinkResponse>;
627
615
  /**
628
616
  */
629
617
  searchLogLinesRaw(requestParameters: SearchLogLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseLogLineObject>>;
@@ -730,6 +718,9 @@ export declare const ListUserActionLogsActionTypeType: {
730
718
  readonly USER_LOGIN_OTP_SENT: "USER_LOGIN_OTP_SENT";
731
719
  readonly PAYMENT_CREATED: "PAYMENT_CREATED";
732
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";
733
724
  readonly EMAIL_SENT: "EMAIL_SENT";
734
725
  readonly SMS_SENT: "SMS_SENT";
735
726
  };
@@ -2581,63 +2581,6 @@ var ProjectsServerApi = /** @class */ (function (_super) {
2581
2581
  });
2582
2582
  });
2583
2583
  };
2584
- /**
2585
- */
2586
- ProjectsServerApi.prototype.reUploadContent1Raw = function (requestParameters, initOverrides) {
2587
- return __awaiter(this, void 0, void 0, function () {
2588
- var queryParameters, headerParameters, urlPath, response;
2589
- return __generator(this, function (_a) {
2590
- switch (_a.label) {
2591
- case 0:
2592
- if (requestParameters['projectId'] == null) {
2593
- throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling reUploadContent1().');
2594
- }
2595
- if (requestParameters['userId'] == null) {
2596
- throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling reUploadContent1().');
2597
- }
2598
- if (requestParameters['contentId'] == null) {
2599
- throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling reUploadContent1().');
2600
- }
2601
- if (requestParameters['createContentUploadLinkRequest'] == null) {
2602
- throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling reUploadContent1().');
2603
- }
2604
- queryParameters = {};
2605
- headerParameters = {};
2606
- headerParameters['Content-Type'] = 'application/json';
2607
- urlPath = "/api/v1/projects/{projectId}/users/{userId}/content/{contentId}/upload-links";
2608
- urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
2609
- urlPath = urlPath.replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId'])));
2610
- urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
2611
- return [4 /*yield*/, this.request({
2612
- path: urlPath,
2613
- method: 'POST',
2614
- headers: headerParameters,
2615
- query: queryParameters,
2616
- body: (0, index_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
2617
- }, initOverrides)];
2618
- case 1:
2619
- response = _a.sent();
2620
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateContentUploadLinkResponseFromJSON)(jsonValue); })];
2621
- }
2622
- });
2623
- });
2624
- };
2625
- /**
2626
- */
2627
- ProjectsServerApi.prototype.reUploadContent1 = function (requestParameters, initOverrides) {
2628
- return __awaiter(this, void 0, void 0, function () {
2629
- var response;
2630
- return __generator(this, function (_a) {
2631
- switch (_a.label) {
2632
- case 0: return [4 /*yield*/, this.reUploadContent1Raw(requestParameters, initOverrides)];
2633
- case 1:
2634
- response = _a.sent();
2635
- return [4 /*yield*/, response.value()];
2636
- case 2: return [2 /*return*/, _a.sent()];
2637
- }
2638
- });
2639
- });
2640
- };
2641
2584
  /**
2642
2585
  */
2643
2586
  ProjectsServerApi.prototype.searchLogLinesRaw = function (requestParameters, initOverrides) {
@@ -3280,6 +3223,9 @@ exports.ListUserActionLogsActionTypeType = {
3280
3223
  USER_LOGIN_OTP_SENT: 'USER_LOGIN_OTP_SENT',
3281
3224
  PAYMENT_CREATED: 'PAYMENT_CREATED',
3282
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',
3283
3229
  EMAIL_SENT: 'EMAIL_SENT',
3284
3230
  SMS_SENT: 'SMS_SENT'
3285
3231
  };
@@ -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, CompleteOtpLoginRequest, ContactMethod, ContentObject, CreateContentUploadLinkRequest, CreateContentUploadLinkResponse, CreateOtpLoginRequest, CreateOtpLoginResponse, CreatePaymentPreviewRequest, CreatePaymentPreviewResponse, CreatePaymentRequest, CreatePaymentResponse, GetContentDownloadLinkResponse, ListContentResponse, LoginUserResponse, PaginatedResponsePaymentObject, RegisterUserRequest, RegisterUserResponse, RenewSessionTokenResponse, UpdateContentSharesRequest, UserObject } from '../models/index';
13
+ import type { AddContactMethodRequest, CompleteOtpLoginRequest, ContactMethod, ContentObject, CreateContentUploadLinkRequest, CreateContentUploadLinkResponse, CreateOtpLoginRequest, CreateOtpLoginResponse, CreatePaymentPreviewRequest, CreatePaymentPreviewResponse, CreatePaymentRequest, CreatePaymentResponse, CreateUserInviteRequest, GetContentDownloadLinkResponse, ListContentResponse, ListUserInvitesResponse, LoginUserResponse, PaginatedResponsePaymentObject, PendingUserInviteObject, RegisterUserRequest, RegisterUserResponse, RenewSessionTokenResponse, UpdateContentSharesRequest, UserObject } from '../models/index';
14
14
  export interface CompleteOtpLoginOperationRequest {
15
15
  projectId: string;
16
16
  pendingLoginId: string;
@@ -36,6 +36,10 @@ export interface CreatePaymentPreviewOperationRequest {
36
36
  projectId: string;
37
37
  createPaymentPreviewRequest: CreatePaymentPreviewRequest;
38
38
  }
39
+ export interface CreateUserInviteOperationRequest {
40
+ projectId: string;
41
+ createUserInviteRequest: CreateUserInviteRequest;
42
+ }
39
43
  export interface DeleteContactMethodRequest {
40
44
  projectId: string;
41
45
  contactMethodId: string;
@@ -46,7 +50,7 @@ export interface DeleteContentRequest {
46
50
  }
47
51
  export interface FinalizeContentRequest {
48
52
  projectId: string;
49
- contentId: string;
53
+ pendingContentId: string;
50
54
  }
51
55
  export interface GetAccountRequest {
52
56
  projectId: string;
@@ -78,16 +82,14 @@ export interface ListMyPaymentsRequest {
78
82
  maxTime?: Date;
79
83
  nextToken?: string;
80
84
  }
85
+ export interface ListUserInvitesRequest {
86
+ projectId: string;
87
+ }
81
88
  export interface LogoutRequest {
82
89
  projectId: string;
83
90
  authorization?: string;
84
91
  forteUserSessionToken?: string;
85
92
  }
86
- export interface ReUploadContentRequest {
87
- projectId: string;
88
- contentId: string;
89
- createContentUploadLinkRequest: CreateContentUploadLinkRequest;
90
- }
91
93
  export interface RegisterUserOperationRequest {
92
94
  projectId: string;
93
95
  registerUserRequest: RegisterUserRequest;
@@ -106,6 +108,10 @@ export interface ResendLoginOtpRequest {
106
108
  projectId: string;
107
109
  pendingLoginId: string;
108
110
  }
111
+ export interface RevokeUserInviteRequest {
112
+ projectId: string;
113
+ inviteId: string;
114
+ }
109
115
  export interface UpdateContentSharesOperationRequest {
110
116
  projectId: string;
111
117
  contentId: string;
@@ -156,6 +162,12 @@ export declare class UsersServerApi extends runtime.BaseAPI {
156
162
  /**
157
163
  */
158
164
  createPaymentPreview(requestParameters: CreatePaymentPreviewOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatePaymentPreviewResponse>;
165
+ /**
166
+ */
167
+ createUserInviteRaw(requestParameters: CreateUserInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingUserInviteObject>>;
168
+ /**
169
+ */
170
+ createUserInvite(requestParameters: CreateUserInviteOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingUserInviteObject>;
159
171
  /**
160
172
  */
161
173
  deleteContactMethodRaw(requestParameters: DeleteContactMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
@@ -212,16 +224,16 @@ export declare class UsersServerApi extends runtime.BaseAPI {
212
224
  listMyPayments(requestParameters: ListMyPaymentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePaymentObject>;
213
225
  /**
214
226
  */
215
- logoutRaw(requestParameters: LogoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
227
+ listUserInvitesRaw(requestParameters: ListUserInvitesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListUserInvitesResponse>>;
216
228
  /**
217
229
  */
218
- logout(requestParameters: LogoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
230
+ listUserInvites(requestParameters: ListUserInvitesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListUserInvitesResponse>;
219
231
  /**
220
232
  */
221
- reUploadContentRaw(requestParameters: ReUploadContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateContentUploadLinkResponse>>;
233
+ logoutRaw(requestParameters: LogoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
222
234
  /**
223
235
  */
224
- reUploadContent(requestParameters: ReUploadContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateContentUploadLinkResponse>;
236
+ logout(requestParameters: LogoutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
225
237
  /**
226
238
  */
227
239
  registerUserRaw(requestParameters: RegisterUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RegisterUserResponse>>;
@@ -246,6 +258,12 @@ export declare class UsersServerApi extends runtime.BaseAPI {
246
258
  /**
247
259
  */
248
260
  resendLoginOtp(requestParameters: ResendLoginOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOtpLoginResponse>;
261
+ /**
262
+ */
263
+ revokeUserInviteRaw(requestParameters: RevokeUserInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
264
+ /**
265
+ */
266
+ revokeUserInvite(requestParameters: RevokeUserInviteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
249
267
  /**
250
268
  */
251
269
  updateContentSharesRaw(requestParameters: UpdateContentSharesOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ContentObject>>;
@@ -373,6 +373,55 @@ var UsersServerApi = /** @class */ (function (_super) {
373
373
  });
374
374
  });
375
375
  };
376
+ /**
377
+ */
378
+ UsersServerApi.prototype.createUserInviteRaw = function (requestParameters, initOverrides) {
379
+ return __awaiter(this, void 0, void 0, function () {
380
+ var queryParameters, headerParameters, urlPath, response;
381
+ return __generator(this, function (_a) {
382
+ switch (_a.label) {
383
+ case 0:
384
+ if (requestParameters['projectId'] == null) {
385
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling createUserInvite().');
386
+ }
387
+ if (requestParameters['createUserInviteRequest'] == null) {
388
+ throw new runtime.RequiredError('createUserInviteRequest', 'Required parameter "createUserInviteRequest" was null or undefined when calling createUserInvite().');
389
+ }
390
+ queryParameters = {};
391
+ headerParameters = {};
392
+ headerParameters['Content-Type'] = 'application/json';
393
+ urlPath = "/api/v1/{projectId}/users/me/invites";
394
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
395
+ return [4 /*yield*/, this.request({
396
+ path: urlPath,
397
+ method: 'POST',
398
+ headers: headerParameters,
399
+ query: queryParameters,
400
+ body: (0, index_1.CreateUserInviteRequestToJSON)(requestParameters['createUserInviteRequest']),
401
+ }, initOverrides)];
402
+ case 1:
403
+ response = _a.sent();
404
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PendingUserInviteObjectFromJSON)(jsonValue); })];
405
+ }
406
+ });
407
+ });
408
+ };
409
+ /**
410
+ */
411
+ UsersServerApi.prototype.createUserInvite = function (requestParameters, initOverrides) {
412
+ return __awaiter(this, void 0, void 0, function () {
413
+ var response;
414
+ return __generator(this, function (_a) {
415
+ switch (_a.label) {
416
+ case 0: return [4 /*yield*/, this.createUserInviteRaw(requestParameters, initOverrides)];
417
+ case 1:
418
+ response = _a.sent();
419
+ return [4 /*yield*/, response.value()];
420
+ case 2: return [2 /*return*/, _a.sent()];
421
+ }
422
+ });
423
+ });
424
+ };
376
425
  /**
377
426
  */
378
427
  UsersServerApi.prototype.deleteContactMethodRaw = function (requestParameters, initOverrides) {
@@ -476,14 +525,14 @@ var UsersServerApi = /** @class */ (function (_super) {
476
525
  if (requestParameters['projectId'] == null) {
477
526
  throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling finalizeContent().');
478
527
  }
479
- if (requestParameters['contentId'] == null) {
480
- throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling finalizeContent().');
528
+ if (requestParameters['pendingContentId'] == null) {
529
+ throw new runtime.RequiredError('pendingContentId', 'Required parameter "pendingContentId" was null or undefined when calling finalizeContent().');
481
530
  }
482
531
  queryParameters = {};
483
532
  headerParameters = {};
484
- urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/finalize";
533
+ urlPath = "/api/v1/{projectId}/users/me/content/{pendingContentId}";
485
534
  urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
486
- urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
535
+ urlPath = urlPath.replace("{".concat("pendingContentId", "}"), encodeURIComponent(String(requestParameters['pendingContentId'])));
487
536
  return [4 /*yield*/, this.request({
488
537
  path: urlPath,
489
538
  method: 'POST',
@@ -835,98 +884,89 @@ var UsersServerApi = /** @class */ (function (_super) {
835
884
  };
836
885
  /**
837
886
  */
838
- UsersServerApi.prototype.logoutRaw = function (requestParameters, initOverrides) {
887
+ UsersServerApi.prototype.listUserInvitesRaw = function (requestParameters, initOverrides) {
839
888
  return __awaiter(this, void 0, void 0, function () {
840
889
  var queryParameters, headerParameters, urlPath, response;
841
890
  return __generator(this, function (_a) {
842
891
  switch (_a.label) {
843
892
  case 0:
844
893
  if (requestParameters['projectId'] == null) {
845
- throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling logout().');
894
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listUserInvites().');
846
895
  }
847
896
  queryParameters = {};
848
897
  headerParameters = {};
849
- if (requestParameters['authorization'] != null) {
850
- headerParameters['Authorization'] = String(requestParameters['authorization']);
851
- }
852
- urlPath = "/api/v1/{projectId}/users/logout";
898
+ urlPath = "/api/v1/{projectId}/users/me/invites";
853
899
  urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
854
900
  return [4 /*yield*/, this.request({
855
901
  path: urlPath,
856
- method: 'POST',
902
+ method: 'GET',
857
903
  headers: headerParameters,
858
904
  query: queryParameters,
859
905
  }, initOverrides)];
860
906
  case 1:
861
907
  response = _a.sent();
862
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
908
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListUserInvitesResponseFromJSON)(jsonValue); })];
863
909
  }
864
910
  });
865
911
  });
866
912
  };
867
913
  /**
868
914
  */
869
- UsersServerApi.prototype.logout = function (requestParameters, initOverrides) {
915
+ UsersServerApi.prototype.listUserInvites = function (requestParameters, initOverrides) {
870
916
  return __awaiter(this, void 0, void 0, function () {
917
+ var response;
871
918
  return __generator(this, function (_a) {
872
919
  switch (_a.label) {
873
- case 0: return [4 /*yield*/, this.logoutRaw(requestParameters, initOverrides)];
920
+ case 0: return [4 /*yield*/, this.listUserInvitesRaw(requestParameters, initOverrides)];
874
921
  case 1:
875
- _a.sent();
876
- return [2 /*return*/];
922
+ response = _a.sent();
923
+ return [4 /*yield*/, response.value()];
924
+ case 2: return [2 /*return*/, _a.sent()];
877
925
  }
878
926
  });
879
927
  });
880
928
  };
881
929
  /**
882
930
  */
883
- UsersServerApi.prototype.reUploadContentRaw = function (requestParameters, initOverrides) {
931
+ UsersServerApi.prototype.logoutRaw = function (requestParameters, initOverrides) {
884
932
  return __awaiter(this, void 0, void 0, function () {
885
933
  var queryParameters, headerParameters, urlPath, response;
886
934
  return __generator(this, function (_a) {
887
935
  switch (_a.label) {
888
936
  case 0:
889
937
  if (requestParameters['projectId'] == null) {
890
- throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling reUploadContent().');
891
- }
892
- if (requestParameters['contentId'] == null) {
893
- throw new runtime.RequiredError('contentId', 'Required parameter "contentId" was null or undefined when calling reUploadContent().');
894
- }
895
- if (requestParameters['createContentUploadLinkRequest'] == null) {
896
- throw new runtime.RequiredError('createContentUploadLinkRequest', 'Required parameter "createContentUploadLinkRequest" was null or undefined when calling reUploadContent().');
938
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling logout().');
897
939
  }
898
940
  queryParameters = {};
899
941
  headerParameters = {};
900
- headerParameters['Content-Type'] = 'application/json';
901
- urlPath = "/api/v1/{projectId}/users/me/content/{contentId}/upload-links";
942
+ if (requestParameters['authorization'] != null) {
943
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
944
+ }
945
+ urlPath = "/api/v1/{projectId}/users/logout";
902
946
  urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
903
- urlPath = urlPath.replace("{".concat("contentId", "}"), encodeURIComponent(String(requestParameters['contentId'])));
904
947
  return [4 /*yield*/, this.request({
905
948
  path: urlPath,
906
949
  method: 'POST',
907
950
  headers: headerParameters,
908
951
  query: queryParameters,
909
- body: (0, index_1.CreateContentUploadLinkRequestToJSON)(requestParameters['createContentUploadLinkRequest']),
910
952
  }, initOverrides)];
911
953
  case 1:
912
954
  response = _a.sent();
913
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateContentUploadLinkResponseFromJSON)(jsonValue); })];
955
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
914
956
  }
915
957
  });
916
958
  });
917
959
  };
918
960
  /**
919
961
  */
920
- UsersServerApi.prototype.reUploadContent = function (requestParameters, initOverrides) {
962
+ UsersServerApi.prototype.logout = function (requestParameters, initOverrides) {
921
963
  return __awaiter(this, void 0, void 0, function () {
922
- var response;
923
964
  return __generator(this, function (_a) {
924
965
  switch (_a.label) {
925
- case 0: return [4 /*yield*/, this.reUploadContentRaw(requestParameters, initOverrides)];
966
+ case 0: return [4 /*yield*/, this.logoutRaw(requestParameters, initOverrides)];
926
967
  case 1:
927
- response = _a.sent();
928
- return [4 /*yield*/, response.value()];
929
- case 2: return [2 /*return*/, _a.sent()];
968
+ _a.sent();
969
+ return [2 /*return*/];
930
970
  }
931
971
  });
932
972
  });
@@ -1126,6 +1166,52 @@ var UsersServerApi = /** @class */ (function (_super) {
1126
1166
  });
1127
1167
  });
1128
1168
  };
1169
+ /**
1170
+ */
1171
+ UsersServerApi.prototype.revokeUserInviteRaw = function (requestParameters, initOverrides) {
1172
+ return __awaiter(this, void 0, void 0, function () {
1173
+ var queryParameters, headerParameters, urlPath, response;
1174
+ return __generator(this, function (_a) {
1175
+ switch (_a.label) {
1176
+ case 0:
1177
+ if (requestParameters['projectId'] == null) {
1178
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling revokeUserInvite().');
1179
+ }
1180
+ if (requestParameters['inviteId'] == null) {
1181
+ throw new runtime.RequiredError('inviteId', 'Required parameter "inviteId" was null or undefined when calling revokeUserInvite().');
1182
+ }
1183
+ queryParameters = {};
1184
+ headerParameters = {};
1185
+ urlPath = "/api/v1/{projectId}/users/me/invites/{inviteId}";
1186
+ urlPath = urlPath.replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters['projectId'])));
1187
+ urlPath = urlPath.replace("{".concat("inviteId", "}"), encodeURIComponent(String(requestParameters['inviteId'])));
1188
+ return [4 /*yield*/, this.request({
1189
+ path: urlPath,
1190
+ method: 'DELETE',
1191
+ headers: headerParameters,
1192
+ query: queryParameters,
1193
+ }, initOverrides)];
1194
+ case 1:
1195
+ response = _a.sent();
1196
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1197
+ }
1198
+ });
1199
+ });
1200
+ };
1201
+ /**
1202
+ */
1203
+ UsersServerApi.prototype.revokeUserInvite = function (requestParameters, initOverrides) {
1204
+ return __awaiter(this, void 0, void 0, function () {
1205
+ return __generator(this, function (_a) {
1206
+ switch (_a.label) {
1207
+ case 0: return [4 /*yield*/, this.revokeUserInviteRaw(requestParameters, initOverrides)];
1208
+ case 1:
1209
+ _a.sent();
1210
+ return [2 /*return*/];
1211
+ }
1212
+ });
1213
+ });
1214
+ };
1129
1215
  /**
1130
1216
  */
1131
1217
  UsersServerApi.prototype.updateContentSharesRaw = function (requestParameters, initOverrides) {
@@ -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 CreateUserInviteRequest
16
+ */
17
+ export interface CreateUserInviteRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateUserInviteRequest
22
+ */
23
+ email: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateUserInviteRequest interface.
27
+ */
28
+ export declare function instanceOfCreateUserInviteRequest(value: object): value is CreateUserInviteRequest;
29
+ export declare function CreateUserInviteRequestFromJSON(json: any): CreateUserInviteRequest;
30
+ export declare function CreateUserInviteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserInviteRequest;
31
+ export declare function CreateUserInviteRequestToJSON(json: any): CreateUserInviteRequest;
32
+ export declare function CreateUserInviteRequestToJSONTyped(value?: CreateUserInviteRequest | 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.instanceOfCreateUserInviteRequest = instanceOfCreateUserInviteRequest;
17
+ exports.CreateUserInviteRequestFromJSON = CreateUserInviteRequestFromJSON;
18
+ exports.CreateUserInviteRequestFromJSONTyped = CreateUserInviteRequestFromJSONTyped;
19
+ exports.CreateUserInviteRequestToJSON = CreateUserInviteRequestToJSON;
20
+ exports.CreateUserInviteRequestToJSONTyped = CreateUserInviteRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateUserInviteRequest interface.
23
+ */
24
+ function instanceOfCreateUserInviteRequest(value) {
25
+ if (!('email' in value) || value['email'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateUserInviteRequestFromJSON(json) {
30
+ return CreateUserInviteRequestFromJSONTyped(json, false);
31
+ }
32
+ function CreateUserInviteRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'email': json['email'],
38
+ };
39
+ }
40
+ function CreateUserInviteRequestToJSON(json) {
41
+ return CreateUserInviteRequestToJSONTyped(json, false);
42
+ }
43
+ function CreateUserInviteRequestToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'email': value['email'],
50
+ };
51
+ }
@@ -59,6 +59,7 @@ export declare const ForteApiExceptionErrorCodeType: {
59
59
  readonly MISMATCHED_AUTH_TOKENS: "MISMATCHED_AUTH_TOKENS";
60
60
  readonly NO_CONTACT_METHOD_PROVIDED: "NO_CONTACT_METHOD_PROVIDED";
61
61
  readonly USER_ALREADY_EXISTS: "USER_ALREADY_EXISTS";
62
+ readonly INVITE_ALREADY_EXISTS: "INVITE_ALREADY_EXISTS";
62
63
  readonly UNSUPPORTED_PHONE_NUMBER: "UNSUPPORTED_PHONE_NUMBER";
63
64
  readonly USER_SUSPENDED: "USER_SUSPENDED";
64
65
  readonly USER_NO_VERIFIED_CONTACT_METHODS: "USER_NO_VERIFIED_CONTACT_METHODS";
@@ -140,6 +141,7 @@ export declare const ForteApiExceptionErrorCodeType: {
140
141
  readonly CONTENT_SIZE_EXCEEDS_LIMIT: "CONTENT_SIZE_EXCEEDS_LIMIT";
141
142
  readonly CONTENT_SHARE_USER_NOT_IN_PROJECT: "CONTENT_SHARE_USER_NOT_IN_PROJECT";
142
143
  readonly CONTENT_NOT_SHAREABLE_WHILE_PENDING: "CONTENT_NOT_SHAREABLE_WHILE_PENDING";
144
+ readonly CONTENT_TYPE_IMMUTABLE_ON_REUPLOAD: "CONTENT_TYPE_IMMUTABLE_ON_REUPLOAD";
143
145
  };
144
146
  export type ForteApiExceptionErrorCodeType = typeof ForteApiExceptionErrorCodeType[keyof typeof ForteApiExceptionErrorCodeType];
145
147
  /**
@@ -44,6 +44,7 @@ exports.ForteApiExceptionErrorCodeType = {
44
44
  MISMATCHED_AUTH_TOKENS: 'MISMATCHED_AUTH_TOKENS',
45
45
  NO_CONTACT_METHOD_PROVIDED: 'NO_CONTACT_METHOD_PROVIDED',
46
46
  USER_ALREADY_EXISTS: 'USER_ALREADY_EXISTS',
47
+ INVITE_ALREADY_EXISTS: 'INVITE_ALREADY_EXISTS',
47
48
  UNSUPPORTED_PHONE_NUMBER: 'UNSUPPORTED_PHONE_NUMBER',
48
49
  USER_SUSPENDED: 'USER_SUSPENDED',
49
50
  USER_NO_VERIFIED_CONTACT_METHODS: 'USER_NO_VERIFIED_CONTACT_METHODS',
@@ -124,7 +125,8 @@ exports.ForteApiExceptionErrorCodeType = {
124
125
  CONTENT_CONTENT_TYPE_MISMATCH: 'CONTENT_CONTENT_TYPE_MISMATCH',
125
126
  CONTENT_SIZE_EXCEEDS_LIMIT: 'CONTENT_SIZE_EXCEEDS_LIMIT',
126
127
  CONTENT_SHARE_USER_NOT_IN_PROJECT: 'CONTENT_SHARE_USER_NOT_IN_PROJECT',
127
- CONTENT_NOT_SHAREABLE_WHILE_PENDING: 'CONTENT_NOT_SHAREABLE_WHILE_PENDING'
128
+ CONTENT_NOT_SHAREABLE_WHILE_PENDING: 'CONTENT_NOT_SHAREABLE_WHILE_PENDING',
129
+ CONTENT_TYPE_IMMUTABLE_ON_REUPLOAD: 'CONTENT_TYPE_IMMUTABLE_ON_REUPLOAD'
128
130
  };
129
131
  /**
130
132
  * Check if a given object implements the ForteApiException interface.
@@ -0,0 +1,33 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PendingUserInviteObject } from './PendingUserInviteObject';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListUserInvitesResponse
17
+ */
18
+ export interface ListUserInvitesResponse {
19
+ /**
20
+ *
21
+ * @type {Array<PendingUserInviteObject>}
22
+ * @memberof ListUserInvitesResponse
23
+ */
24
+ invites?: Array<PendingUserInviteObject>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ListUserInvitesResponse interface.
28
+ */
29
+ export declare function instanceOfListUserInvitesResponse(value: object): value is ListUserInvitesResponse;
30
+ export declare function ListUserInvitesResponseFromJSON(json: any): ListUserInvitesResponse;
31
+ export declare function ListUserInvitesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListUserInvitesResponse;
32
+ export declare function ListUserInvitesResponseToJSON(json: any): ListUserInvitesResponse;
33
+ export declare function ListUserInvitesResponseToJSONTyped(value?: ListUserInvitesResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfListUserInvitesResponse = instanceOfListUserInvitesResponse;
17
+ exports.ListUserInvitesResponseFromJSON = ListUserInvitesResponseFromJSON;
18
+ exports.ListUserInvitesResponseFromJSONTyped = ListUserInvitesResponseFromJSONTyped;
19
+ exports.ListUserInvitesResponseToJSON = ListUserInvitesResponseToJSON;
20
+ exports.ListUserInvitesResponseToJSONTyped = ListUserInvitesResponseToJSONTyped;
21
+ var PendingUserInviteObject_1 = require("./PendingUserInviteObject");
22
+ /**
23
+ * Check if a given object implements the ListUserInvitesResponse interface.
24
+ */
25
+ function instanceOfListUserInvitesResponse(value) {
26
+ return true;
27
+ }
28
+ function ListUserInvitesResponseFromJSON(json) {
29
+ return ListUserInvitesResponseFromJSONTyped(json, false);
30
+ }
31
+ function ListUserInvitesResponseFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'invites': json['invites'] == null ? undefined : (json['invites'].map(PendingUserInviteObject_1.PendingUserInviteObjectFromJSON)),
37
+ };
38
+ }
39
+ function ListUserInvitesResponseToJSON(json) {
40
+ return ListUserInvitesResponseToJSONTyped(json, false);
41
+ }
42
+ function ListUserInvitesResponseToJSONTyped(value, ignoreDiscriminator) {
43
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'invites': value['invites'] == null ? undefined : (value['invites'].map(PendingUserInviteObject_1.PendingUserInviteObjectToJSON)),
49
+ };
50
+ }
@@ -87,6 +87,18 @@ export interface NotificationTemplatesConfig {
87
87
  * @memberof NotificationTemplatesConfig
88
88
  */
89
89
  loginOtpSmsBody?: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof NotificationTemplatesConfig
94
+ */
95
+ inviteEmailSubject?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof NotificationTemplatesConfig
100
+ */
101
+ inviteEmailHtmlBody?: string;
90
102
  }
91
103
  /**
92
104
  * Check if a given object implements the NotificationTemplatesConfig interface.
@@ -44,6 +44,8 @@ function NotificationTemplatesConfigFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'loginOtpEmailSubject': json['loginOtpEmailSubject'] == null ? undefined : json['loginOtpEmailSubject'],
45
45
  'loginOtpEmailHtmlBody': json['loginOtpEmailHtmlBody'] == null ? undefined : json['loginOtpEmailHtmlBody'],
46
46
  'loginOtpSmsBody': json['loginOtpSmsBody'] == null ? undefined : json['loginOtpSmsBody'],
47
+ 'inviteEmailSubject': json['inviteEmailSubject'] == null ? undefined : json['inviteEmailSubject'],
48
+ 'inviteEmailHtmlBody': json['inviteEmailHtmlBody'] == null ? undefined : json['inviteEmailHtmlBody'],
47
49
  };
48
50
  }
49
51
  function NotificationTemplatesConfigToJSON(json) {
@@ -67,5 +69,7 @@ function NotificationTemplatesConfigToJSONTyped(value, ignoreDiscriminator) {
67
69
  'loginOtpEmailSubject': value['loginOtpEmailSubject'],
68
70
  'loginOtpEmailHtmlBody': value['loginOtpEmailHtmlBody'],
69
71
  'loginOtpSmsBody': value['loginOtpSmsBody'],
72
+ 'inviteEmailSubject': value['inviteEmailSubject'],
73
+ 'inviteEmailHtmlBody': value['inviteEmailHtmlBody'],
70
74
  };
71
75
  }
@@ -0,0 +1,80 @@
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 PendingUserInviteObject
16
+ */
17
+ export interface PendingUserInviteObject {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PendingUserInviteObject
22
+ */
23
+ inviteId?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PendingUserInviteObject
28
+ */
29
+ projectId?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PendingUserInviteObject
34
+ */
35
+ inviteeEmail?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PendingUserInviteObject
40
+ */
41
+ inviterUserId?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PendingUserInviteObject
46
+ */
47
+ inviterFullName?: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof PendingUserInviteObject
52
+ */
53
+ createdAt?: Date;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof PendingUserInviteObject
58
+ */
59
+ expiresAt?: Date;
60
+ /**
61
+ *
62
+ * @type {Date}
63
+ * @memberof PendingUserInviteObject
64
+ */
65
+ consumedAt?: Date;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof PendingUserInviteObject
70
+ */
71
+ consumedByUserId?: string;
72
+ }
73
+ /**
74
+ * Check if a given object implements the PendingUserInviteObject interface.
75
+ */
76
+ export declare function instanceOfPendingUserInviteObject(value: object): value is PendingUserInviteObject;
77
+ export declare function PendingUserInviteObjectFromJSON(json: any): PendingUserInviteObject;
78
+ export declare function PendingUserInviteObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): PendingUserInviteObject;
79
+ export declare function PendingUserInviteObjectToJSON(json: any): PendingUserInviteObject;
80
+ export declare function PendingUserInviteObjectToJSONTyped(value?: PendingUserInviteObject | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.instanceOfPendingUserInviteObject = instanceOfPendingUserInviteObject;
17
+ exports.PendingUserInviteObjectFromJSON = PendingUserInviteObjectFromJSON;
18
+ exports.PendingUserInviteObjectFromJSONTyped = PendingUserInviteObjectFromJSONTyped;
19
+ exports.PendingUserInviteObjectToJSON = PendingUserInviteObjectToJSON;
20
+ exports.PendingUserInviteObjectToJSONTyped = PendingUserInviteObjectToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PendingUserInviteObject interface.
23
+ */
24
+ function instanceOfPendingUserInviteObject(value) {
25
+ return true;
26
+ }
27
+ function PendingUserInviteObjectFromJSON(json) {
28
+ return PendingUserInviteObjectFromJSONTyped(json, false);
29
+ }
30
+ function PendingUserInviteObjectFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'inviteId': json['inviteId'] == null ? undefined : json['inviteId'],
36
+ 'projectId': json['projectId'] == null ? undefined : json['projectId'],
37
+ 'inviteeEmail': json['inviteeEmail'] == null ? undefined : json['inviteeEmail'],
38
+ 'inviterUserId': json['inviterUserId'] == null ? undefined : json['inviterUserId'],
39
+ 'inviterFullName': json['inviterFullName'] == null ? undefined : json['inviterFullName'],
40
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
41
+ 'expiresAt': json['expiresAt'] == null ? undefined : (new Date(json['expiresAt'])),
42
+ 'consumedAt': json['consumedAt'] == null ? undefined : (new Date(json['consumedAt'])),
43
+ 'consumedByUserId': json['consumedByUserId'] == null ? undefined : json['consumedByUserId'],
44
+ };
45
+ }
46
+ function PendingUserInviteObjectToJSON(json) {
47
+ return PendingUserInviteObjectToJSONTyped(json, false);
48
+ }
49
+ function PendingUserInviteObjectToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'inviteId': value['inviteId'],
56
+ 'projectId': value['projectId'],
57
+ 'inviteeEmail': value['inviteeEmail'],
58
+ 'inviterUserId': value['inviterUserId'],
59
+ 'inviterFullName': value['inviterFullName'],
60
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
61
+ 'expiresAt': value['expiresAt'] == null ? value['expiresAt'] : value['expiresAt'].toISOString(),
62
+ 'consumedAt': value['consumedAt'] == null ? value['consumedAt'] : value['consumedAt'].toISOString(),
63
+ 'consumedByUserId': value['consumedByUserId'],
64
+ };
65
+ }
@@ -87,6 +87,18 @@ export interface UpdateNotificationTemplatesRequest {
87
87
  * @memberof UpdateNotificationTemplatesRequest
88
88
  */
89
89
  loginOtpSmsBody?: string;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof UpdateNotificationTemplatesRequest
94
+ */
95
+ inviteEmailSubject?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof UpdateNotificationTemplatesRequest
100
+ */
101
+ inviteEmailHtmlBody?: string;
90
102
  }
91
103
  /**
92
104
  * Check if a given object implements the UpdateNotificationTemplatesRequest interface.
@@ -44,6 +44,8 @@ function UpdateNotificationTemplatesRequestFromJSONTyped(json, ignoreDiscriminat
44
44
  'loginOtpEmailSubject': json['loginOtpEmailSubject'] == null ? undefined : json['loginOtpEmailSubject'],
45
45
  'loginOtpEmailHtmlBody': json['loginOtpEmailHtmlBody'] == null ? undefined : json['loginOtpEmailHtmlBody'],
46
46
  'loginOtpSmsBody': json['loginOtpSmsBody'] == null ? undefined : json['loginOtpSmsBody'],
47
+ 'inviteEmailSubject': json['inviteEmailSubject'] == null ? undefined : json['inviteEmailSubject'],
48
+ 'inviteEmailHtmlBody': json['inviteEmailHtmlBody'] == null ? undefined : json['inviteEmailHtmlBody'],
47
49
  };
48
50
  }
49
51
  function UpdateNotificationTemplatesRequestToJSON(json) {
@@ -67,5 +69,7 @@ function UpdateNotificationTemplatesRequestToJSONTyped(value, ignoreDiscriminato
67
69
  'loginOtpEmailSubject': value['loginOtpEmailSubject'],
68
70
  'loginOtpEmailHtmlBody': value['loginOtpEmailHtmlBody'],
69
71
  'loginOtpSmsBody': value['loginOtpSmsBody'],
72
+ 'inviteEmailSubject': value['inviteEmailSubject'],
73
+ 'inviteEmailHtmlBody': value['inviteEmailHtmlBody'],
70
74
  };
71
75
  }
@@ -73,6 +73,9 @@ export declare const UserActionLogObjectActionTypeType: {
73
73
  readonly USER_LOGIN_OTP_SENT: "USER_LOGIN_OTP_SENT";
74
74
  readonly PAYMENT_CREATED: "PAYMENT_CREATED";
75
75
  readonly WELCOME_MESSAGE_SENT: "WELCOME_MESSAGE_SENT";
76
+ readonly USER_INVITE_CREATED: "USER_INVITE_CREATED";
77
+ readonly USER_INVITE_REVOKED: "USER_INVITE_REVOKED";
78
+ readonly USER_INVITE_ACCEPTED: "USER_INVITE_ACCEPTED";
76
79
  readonly EMAIL_SENT: "EMAIL_SENT";
77
80
  readonly SMS_SENT: "SMS_SENT";
78
81
  };
@@ -38,6 +38,9 @@ exports.UserActionLogObjectActionTypeType = {
38
38
  USER_LOGIN_OTP_SENT: 'USER_LOGIN_OTP_SENT',
39
39
  PAYMENT_CREATED: 'PAYMENT_CREATED',
40
40
  WELCOME_MESSAGE_SENT: 'WELCOME_MESSAGE_SENT',
41
+ USER_INVITE_CREATED: 'USER_INVITE_CREATED',
42
+ USER_INVITE_REVOKED: 'USER_INVITE_REVOKED',
43
+ USER_INVITE_ACCEPTED: 'USER_INVITE_ACCEPTED',
41
44
  EMAIL_SENT: 'EMAIL_SENT',
42
45
  SMS_SENT: 'SMS_SENT'
43
46
  };
@@ -84,6 +84,12 @@ export interface UserObject {
84
84
  * @memberof UserObject
85
85
  */
86
86
  welcomeMessageSent?: boolean;
87
+ /**
88
+ *
89
+ * @type {string}
90
+ * @memberof UserObject
91
+ */
92
+ invitedByUserId?: string;
87
93
  /**
88
94
  *
89
95
  * @type {string}
@@ -65,6 +65,7 @@ function UserObjectFromJSONTyped(json, ignoreDiscriminator) {
65
65
  'stripeCustomerId': json['stripeCustomerId'] == null ? undefined : json['stripeCustomerId'],
66
66
  'contactMethods': (json['contactMethods'].map(ContactMethod_1.ContactMethodFromJSON)),
67
67
  'welcomeMessageSent': json['welcomeMessageSent'] == null ? undefined : json['welcomeMessageSent'],
68
+ 'invitedByUserId': json['invitedByUserId'] == null ? undefined : json['invitedByUserId'],
68
69
  'state': json['state'],
69
70
  };
70
71
  }
@@ -88,6 +89,7 @@ function UserObjectToJSONTyped(value, ignoreDiscriminator) {
88
89
  'stripeCustomerId': value['stripeCustomerId'],
89
90
  'contactMethods': (value['contactMethods'].map(ContactMethod_1.ContactMethodToJSON)),
90
91
  'welcomeMessageSent': value['welcomeMessageSent'],
92
+ 'invitedByUserId': value['invitedByUserId'],
91
93
  'state': value['state'],
92
94
  };
93
95
  }
@@ -20,6 +20,7 @@ export * from './CreateProjectApiKeyRequest';
20
20
  export * from './CreateProjectApiKeyResponse';
21
21
  export * from './CreateServiceRequestProxyRequest';
22
22
  export * from './CreateServiceRequestProxyResponse';
23
+ export * from './CreateUserInviteRequest';
23
24
  export * from './CreateWebAppRequest';
24
25
  export * from './DockerfileDetectionOutput';
25
26
  export * from './DockerfileGenerationError';
@@ -33,6 +34,7 @@ export * from './HealthCheckDetectionResponse';
33
34
  export * from './LatencyMetrics';
34
35
  export * from './LatencyStats';
35
36
  export * from './ListContentResponse';
37
+ export * from './ListUserInvitesResponse';
36
38
  export * from './LogLineObject';
37
39
  export * from './LoginUserResponse';
38
40
  export * from './NotificationTemplatesConfig';
@@ -48,6 +50,7 @@ export * from './PaymentAddress';
48
50
  export * from './PaymentLineItem';
49
51
  export * from './PaymentObject';
50
52
  export * from './PaymentTriggerConfig';
53
+ export * from './PendingUserInviteObject';
51
54
  export * from './ProjectObject';
52
55
  export * from './RegisterUserRequest';
53
56
  export * from './RegisterUserResponse';
@@ -38,6 +38,7 @@ __exportStar(require("./CreateProjectApiKeyRequest"), exports);
38
38
  __exportStar(require("./CreateProjectApiKeyResponse"), exports);
39
39
  __exportStar(require("./CreateServiceRequestProxyRequest"), exports);
40
40
  __exportStar(require("./CreateServiceRequestProxyResponse"), exports);
41
+ __exportStar(require("./CreateUserInviteRequest"), exports);
41
42
  __exportStar(require("./CreateWebAppRequest"), exports);
42
43
  __exportStar(require("./DockerfileDetectionOutput"), exports);
43
44
  __exportStar(require("./DockerfileGenerationError"), exports);
@@ -51,6 +52,7 @@ __exportStar(require("./HealthCheckDetectionResponse"), exports);
51
52
  __exportStar(require("./LatencyMetrics"), exports);
52
53
  __exportStar(require("./LatencyStats"), exports);
53
54
  __exportStar(require("./ListContentResponse"), exports);
55
+ __exportStar(require("./ListUserInvitesResponse"), exports);
54
56
  __exportStar(require("./LogLineObject"), exports);
55
57
  __exportStar(require("./LoginUserResponse"), exports);
56
58
  __exportStar(require("./NotificationTemplatesConfig"), exports);
@@ -66,6 +68,7 @@ __exportStar(require("./PaymentAddress"), exports);
66
68
  __exportStar(require("./PaymentLineItem"), exports);
67
69
  __exportStar(require("./PaymentObject"), exports);
68
70
  __exportStar(require("./PaymentTriggerConfig"), exports);
71
+ __exportStar(require("./PendingUserInviteObject"), exports);
69
72
  __exportStar(require("./ProjectObject"), exports);
70
73
  __exportStar(require("./RegisterUserRequest"), exports);
71
74
  __exportStar(require("./RegisterUserResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.144",
3
+ "version": "1.0.147",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {