@closerplatform/spinner-openapi 0.11.351 → 0.12.2

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 (3) hide show
  1. package/dist/api.d.ts +499 -822
  2. package/dist/api.js +856 -1175
  3. package/package.json +1 -1
package/dist/api.js CHANGED
@@ -13,7 +13,7 @@
13
13
  * Do not edit the file manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.WidgetsFormsSubmissionsApi = exports.WidgetsFormsSubmissionsApiFactory = exports.WidgetsFormsSubmissionsApiFp = exports.WidgetsFormsSubmissionsApiFetchParamCreator = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiFetchParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiFetchParamCreator = exports.UrlTagMappingsApi = exports.UrlTagMappingsApiFactory = exports.UrlTagMappingsApiFp = exports.UrlTagMappingsApiFetchParamCreator = exports.UnreadApi = exports.UnreadApiFactory = exports.UnreadApiFp = exports.UnreadApiFetchParamCreator = exports.TopicsApi = exports.TopicsApiFactory = exports.TopicsApiFp = exports.TopicsApiFetchParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiFetchParamCreator = exports.TagMappingsApi = exports.TagMappingsApiFactory = exports.TagMappingsApiFp = exports.TagMappingsApiFetchParamCreator = exports.TagGroupsApi = exports.TagGroupsApiFactory = exports.TagGroupsApiFp = exports.TagGroupsApiFetchParamCreator = exports.StatusApi = exports.StatusApiFactory = exports.StatusApiFp = exports.StatusApiFetchParamCreator = exports.SessionApi = exports.SessionApiFactory = exports.SessionApiFp = exports.SessionApiFetchParamCreator = exports.RoomsApi = exports.RoomsApiFactory = exports.RoomsApiFp = exports.RoomsApiFetchParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiFetchParamCreator = exports.PushApi = exports.PushApiFactory = exports.PushApiFp = exports.PushApiFetchParamCreator = exports.ProfanitiesApi = exports.ProfanitiesApiFactory = exports.ProfanitiesApiFp = exports.ProfanitiesApiFetchParamCreator = exports.ProactiveMsgApi = exports.ProactiveMsgApiFactory = exports.ProactiveMsgApiFp = exports.ProactiveMsgApiFetchParamCreator = exports.OrgsApi = exports.OrgsApiFactory = exports.OrgsApiFp = exports.OrgsApiFetchParamCreator = exports.OplAddressApi = exports.OplAddressApiFactory = exports.OplAddressApiFp = exports.OplAddressApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.OIDCApi = exports.OIDCApiFactory = exports.OIDCApiFp = exports.OIDCApiFetchParamCreator = exports.NLUApi = exports.NLUApiFactory = exports.NLUApiFp = exports.NLUApiFetchParamCreator = exports.MessageWidgetsApi = exports.MessageWidgetsApiFactory = exports.MessageWidgetsApiFp = exports.MessageWidgetsApiFetchParamCreator = exports.MeetingsApi = exports.MeetingsApiFactory = exports.MeetingsApiFp = exports.MeetingsApiFetchParamCreator = exports.MeetingBotApi = exports.MeetingBotApiFactory = exports.MeetingBotApiFp = exports.MeetingBotApiFetchParamCreator = exports.InviteesApi = exports.InviteesApiFactory = exports.InviteesApiFp = exports.InviteesApiFetchParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiFetchParamCreator = exports.EventActionsApi = exports.EventActionsApiFactory = exports.EventActionsApiFp = exports.EventActionsApiFetchParamCreator = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiFetchParamCreator = exports.ConversationsApi = exports.ConversationsApiFactory = exports.ConversationsApiFp = exports.ConversationsApiFetchParamCreator = exports.CompatibilityApi = exports.CompatibilityApiFactory = exports.CompatibilityApiFp = exports.CompatibilityApiFetchParamCreator = exports.CobrowsingApi = exports.CobrowsingApiFactory = exports.CobrowsingApiFp = exports.CobrowsingApiFetchParamCreator = exports.CallsApi = exports.CallsApiFactory = exports.CallsApiFp = exports.CallsApiFetchParamCreator = exports.CalendarsApi = exports.CalendarsApiFactory = exports.CalendarsApiFp = exports.CalendarsApiFetchParamCreator = exports.BotsApi = exports.BotsApiFactory = exports.BotsApiFp = exports.BotsApiFetchParamCreator = exports.BillingsApi = exports.BillingsApiFactory = exports.BillingsApiFp = exports.BillingsApiFetchParamCreator = exports.AgentStatusesApi = exports.AgentStatusesApiFactory = exports.AgentStatusesApiFp = exports.AgentStatusesApiFetchParamCreator = exports.AgentGroupsApi = exports.AgentGroupsApiFactory = exports.AgentGroupsApiFp = exports.AgentGroupsApiFetchParamCreator = exports.WidgetButtonsInput = exports.UrlTagMappingDto = exports.UpdateTagMappingForm = exports.UpdateRoleForm = exports.UpdateEventActionConfigForm = exports.TrainingInfo = exports.TagMappingDto = exports.Role = exports.RegisterInPushService = exports.PreferencesForm = exports.PermissionForm = exports.MessageWidgetConfigContextType = exports.InboxEntry = exports.EventActionConfig = exports.CreateTagMappingForm = exports.CreateEventActionConfigForm = exports.ConversationStatus = exports.ChatEvent = exports.ChangeBotTypeForm = exports.BotInfo = exports.AppPermission = exports.AgentPresence = exports.AgentPreferences = exports.AgentCtx = exports.ActionEvent = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
16
+ exports.WidgetsFormsSubmissionsApi = exports.WidgetsFormsSubmissionsApiFactory = exports.WidgetsFormsSubmissionsApiFp = exports.WidgetsFormsSubmissionsApiFetchParamCreator = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiFetchParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiFetchParamCreator = exports.UrlTagMappingsApi = exports.UrlTagMappingsApiFactory = exports.UrlTagMappingsApiFp = exports.UrlTagMappingsApiFetchParamCreator = exports.UnreadApi = exports.UnreadApiFactory = exports.UnreadApiFp = exports.UnreadApiFetchParamCreator = exports.TopicsApi = exports.TopicsApiFactory = exports.TopicsApiFp = exports.TopicsApiFetchParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiFetchParamCreator = exports.TagMappingsApi = exports.TagMappingsApiFactory = exports.TagMappingsApiFp = exports.TagMappingsApiFetchParamCreator = exports.TagGroupsApi = exports.TagGroupsApiFactory = exports.TagGroupsApiFp = exports.TagGroupsApiFetchParamCreator = exports.StatusApi = exports.StatusApiFactory = exports.StatusApiFp = exports.StatusApiFetchParamCreator = exports.SessionApi = exports.SessionApiFactory = exports.SessionApiFp = exports.SessionApiFetchParamCreator = exports.RoomsApi = exports.RoomsApiFactory = exports.RoomsApiFp = exports.RoomsApiFetchParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiFetchParamCreator = exports.PushApi = exports.PushApiFactory = exports.PushApiFp = exports.PushApiFetchParamCreator = exports.ProfanitiesApi = exports.ProfanitiesApiFactory = exports.ProfanitiesApiFp = exports.ProfanitiesApiFetchParamCreator = exports.ProactiveMsgApi = exports.ProactiveMsgApiFactory = exports.ProactiveMsgApiFp = exports.ProactiveMsgApiFetchParamCreator = exports.OrgsApi = exports.OrgsApiFactory = exports.OrgsApiFp = exports.OrgsApiFetchParamCreator = exports.OplAddressApi = exports.OplAddressApiFactory = exports.OplAddressApiFp = exports.OplAddressApiFetchParamCreator = exports.OIDCApi = exports.OIDCApiFactory = exports.OIDCApiFp = exports.OIDCApiFetchParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiFetchParamCreator = exports.NLUApi = exports.NLUApiFactory = exports.NLUApiFp = exports.NLUApiFetchParamCreator = exports.MessageWidgetsApi = exports.MessageWidgetsApiFactory = exports.MessageWidgetsApiFp = exports.MessageWidgetsApiFetchParamCreator = exports.MeetingsApi = exports.MeetingsApiFactory = exports.MeetingsApiFp = exports.MeetingsApiFetchParamCreator = exports.InviteesApi = exports.InviteesApiFactory = exports.InviteesApiFp = exports.InviteesApiFetchParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiFetchParamCreator = exports.EventActionsApi = exports.EventActionsApiFactory = exports.EventActionsApiFp = exports.EventActionsApiFetchParamCreator = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiFetchParamCreator = exports.ConversationsApi = exports.ConversationsApiFactory = exports.ConversationsApiFp = exports.ConversationsApiFetchParamCreator = exports.CompatibilityApi = exports.CompatibilityApiFactory = exports.CompatibilityApiFp = exports.CompatibilityApiFetchParamCreator = exports.CobrowsingApi = exports.CobrowsingApiFactory = exports.CobrowsingApiFp = exports.CobrowsingApiFetchParamCreator = exports.CallsApi = exports.CallsApiFactory = exports.CallsApiFp = exports.CallsApiFetchParamCreator = exports.CalendarsApi = exports.CalendarsApiFactory = exports.CalendarsApiFp = exports.CalendarsApiFetchParamCreator = exports.BotsApi = exports.BotsApiFactory = exports.BotsApiFp = exports.BotsApiFetchParamCreator = exports.BillingsApi = exports.BillingsApiFactory = exports.BillingsApiFp = exports.BillingsApiFetchParamCreator = exports.AgentStatusesApi = exports.AgentStatusesApiFactory = exports.AgentStatusesApiFp = exports.AgentStatusesApiFetchParamCreator = exports.AgentGroupsApi = exports.AgentGroupsApiFactory = exports.AgentGroupsApiFp = exports.AgentGroupsApiFetchParamCreator = exports.WidgetButtonsInput = exports.UserRole = exports.SnoozedStatus = exports.RegisterInPushService = exports.Presence = exports.ModelTrainingStatus = exports.MessageWidgetConfigContextType = exports.MatchingStrategy = exports.InboxSorting = exports.InboxEntryType = exports.EventActionEvent = exports.ConversationStatus = exports.ChatEvent = exports.ChangeBotTypeForm = exports.BotInfo = exports.AppPresence = exports.AppPermission = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
17
17
  const url = require("url");
18
18
  const isomorphicFetch = require("isomorphic-fetch");
19
19
  const BASE_PATH = "/api".replace(/\/+$/, "");
@@ -57,71 +57,6 @@ class RequiredError extends Error {
57
57
  }
58
58
  }
59
59
  exports.RequiredError = RequiredError;
60
- /**
61
- *
62
- * @export
63
- * @enum {string}
64
- */
65
- var ActionEvent;
66
- (function (ActionEvent) {
67
- ActionEvent["ThreadOpenedOutsideWorkingHours"] = "thread_opened_outside_working_hours";
68
- ActionEvent["ClosedSolvedThreadAction"] = "closed_solved_thread_action";
69
- ActionEvent["ClosedUnsolvedThreadAction"] = "closed_unsolved_thread_action";
70
- ActionEvent["ThreadOpened"] = "thread_opened";
71
- ActionEvent["AssignedConversationAction"] = "assigned_conversation_action";
72
- ActionEvent["ThreadOpenedAgentsUnavailable"] = "thread_opened_agents_unavailable";
73
- ActionEvent["WidgetOpenedNoOpenThread"] = "widget_opened_no_open_thread";
74
- })(ActionEvent = exports.ActionEvent || (exports.ActionEvent = {}));
75
- /**
76
- * @export
77
- * @namespace AgentCtx
78
- */
79
- var AgentCtx;
80
- (function (AgentCtx) {
81
- /**
82
- * @export
83
- * @enum {string}
84
- */
85
- let RoleEnum;
86
- (function (RoleEnum) {
87
- RoleEnum["ADMIN"] = "ADMIN";
88
- RoleEnum["AGENT"] = "AGENT";
89
- })(RoleEnum = AgentCtx.RoleEnum || (AgentCtx.RoleEnum = {}));
90
- })(AgentCtx = exports.AgentCtx || (exports.AgentCtx = {}));
91
- /**
92
- * @export
93
- * @namespace AgentPreferences
94
- */
95
- var AgentPreferences;
96
- (function (AgentPreferences) {
97
- /**
98
- * @export
99
- * @enum {string}
100
- */
101
- let InboxSortingEnum;
102
- (function (InboxSortingEnum) {
103
- InboxSortingEnum["Newest"] = "newest";
104
- InboxSortingEnum["Oldest"] = "oldest";
105
- })(InboxSortingEnum = AgentPreferences.InboxSortingEnum || (AgentPreferences.InboxSortingEnum = {}));
106
- })(AgentPreferences = exports.AgentPreferences || (exports.AgentPreferences = {}));
107
- /**
108
- * @export
109
- * @namespace AgentPresence
110
- */
111
- var AgentPresence;
112
- (function (AgentPresence) {
113
- /**
114
- * @export
115
- * @enum {string}
116
- */
117
- let PresenceEnum;
118
- (function (PresenceEnum) {
119
- PresenceEnum["Available"] = "available";
120
- PresenceEnum["Away"] = "away";
121
- PresenceEnum["Unavailable"] = "unavailable";
122
- PresenceEnum["Unready"] = "unready";
123
- })(PresenceEnum = AgentPresence.PresenceEnum || (AgentPresence.PresenceEnum = {}));
124
- })(AgentPresence = exports.AgentPresence || (exports.AgentPresence = {}));
125
60
  /**
126
61
  *
127
62
  * @export
@@ -164,6 +99,18 @@ var AppPermission;
164
99
  AppPermission["MeetingsPageVisibility"] = "meetings_page_visibility";
165
100
  AppPermission["HelpPageVisibility"] = "help_page_visibility";
166
101
  })(AppPermission = exports.AppPermission || (exports.AppPermission = {}));
102
+ /**
103
+ *
104
+ * @export
105
+ * @enum {string}
106
+ */
107
+ var AppPresence;
108
+ (function (AppPresence) {
109
+ AppPresence["Available"] = "available";
110
+ AppPresence["Away"] = "away";
111
+ AppPresence["Unavailable"] = "unavailable";
112
+ AppPresence["Unready"] = "unready";
113
+ })(AppPresence = exports.AppPresence || (exports.AppPresence = {}));
167
114
  /**
168
115
  * @export
169
116
  * @namespace BotInfo
@@ -222,135 +169,71 @@ var ChatEvent;
222
169
  })(TagEnum = ChatEvent.TagEnum || (ChatEvent.TagEnum = {}));
223
170
  })(ChatEvent = exports.ChatEvent || (exports.ChatEvent = {}));
224
171
  /**
172
+ *
225
173
  * @export
226
- * @namespace ConversationStatus
174
+ * @enum {string}
227
175
  */
228
176
  var ConversationStatus;
229
177
  (function (ConversationStatus) {
230
- /**
231
- * @export
232
- * @enum {string}
233
- */
234
- let StatusEnum;
235
- (function (StatusEnum) {
236
- StatusEnum["Waiting"] = "waiting";
237
- StatusEnum["InProgress"] = "inProgress";
238
- StatusEnum["Solved"] = "solved";
239
- StatusEnum["Unsolved"] = "unsolved";
240
- })(StatusEnum = ConversationStatus.StatusEnum || (ConversationStatus.StatusEnum = {}));
178
+ ConversationStatus["Waiting"] = "waiting";
179
+ ConversationStatus["InProgress"] = "inProgress";
180
+ ConversationStatus["Solved"] = "solved";
181
+ ConversationStatus["Unsolved"] = "unsolved";
241
182
  })(ConversationStatus = exports.ConversationStatus || (exports.ConversationStatus = {}));
242
183
  /**
184
+ *
243
185
  * @export
244
- * @namespace CreateEventActionConfigForm
186
+ * @enum {string}
245
187
  */
246
- var CreateEventActionConfigForm;
247
- (function (CreateEventActionConfigForm) {
248
- /**
249
- * @export
250
- * @enum {string}
251
- */
252
- let EventEnum;
253
- (function (EventEnum) {
254
- EventEnum["ThreadOpenedOutsideWorkingHours"] = "thread_opened_outside_working_hours";
255
- EventEnum["ClosedSolvedThreadAction"] = "closed_solved_thread_action";
256
- EventEnum["ClosedUnsolvedThreadAction"] = "closed_unsolved_thread_action";
257
- EventEnum["ThreadOpened"] = "thread_opened";
258
- EventEnum["AssignedConversationAction"] = "assigned_conversation_action";
259
- EventEnum["ThreadOpenedAgentsUnavailable"] = "thread_opened_agents_unavailable";
260
- EventEnum["WidgetOpenedNoOpenThread"] = "widget_opened_no_open_thread";
261
- })(EventEnum = CreateEventActionConfigForm.EventEnum || (CreateEventActionConfigForm.EventEnum = {}));
262
- })(CreateEventActionConfigForm = exports.CreateEventActionConfigForm || (exports.CreateEventActionConfigForm = {}));
188
+ var EventActionEvent;
189
+ (function (EventActionEvent) {
190
+ EventActionEvent["ThreadOpenedOutsideWorkingHours"] = "thread_opened_outside_working_hours";
191
+ EventActionEvent["ClosedSolvedThreadAction"] = "closed_solved_thread_action";
192
+ EventActionEvent["ClosedUnsolvedThreadAction"] = "closed_unsolved_thread_action";
193
+ EventActionEvent["ThreadOpened"] = "thread_opened";
194
+ EventActionEvent["AssignedConversationAction"] = "assigned_conversation_action";
195
+ EventActionEvent["ThreadOpenedAgentsUnavailable"] = "thread_opened_agents_unavailable";
196
+ EventActionEvent["WidgetOpenedNoOpenThread"] = "widget_opened_no_open_thread";
197
+ })(EventActionEvent = exports.EventActionEvent || (exports.EventActionEvent = {}));
263
198
  /**
199
+ *
264
200
  * @export
265
- * @namespace CreateTagMappingForm
201
+ * @enum {string}
266
202
  */
267
- var CreateTagMappingForm;
268
- (function (CreateTagMappingForm) {
269
- /**
270
- * @export
271
- * @enum {string}
272
- */
273
- let MatchingStrategyEnum;
274
- (function (MatchingStrategyEnum) {
275
- MatchingStrategyEnum["WholeDomain"] = "whole_domain";
276
- MatchingStrategyEnum["PathRecursively"] = "path_recursively";
277
- MatchingStrategyEnum["ExactUrl"] = "exact_url";
278
- MatchingStrategyEnum["PathArgs"] = "path_args";
279
- })(MatchingStrategyEnum = CreateTagMappingForm.MatchingStrategyEnum || (CreateTagMappingForm.MatchingStrategyEnum = {}));
280
- })(CreateTagMappingForm = exports.CreateTagMappingForm || (exports.CreateTagMappingForm = {}));
203
+ var InboxEntryType;
204
+ (function (InboxEntryType) {
205
+ InboxEntryType["MESSAGE"] = "MESSAGE";
206
+ InboxEntryType["NOTE"] = "NOTE";
207
+ InboxEntryType["FILES"] = "FILES";
208
+ InboxEntryType["MEETINGSCHEDULED"] = "MEETING_SCHEDULED";
209
+ InboxEntryType["MEETINGRESCHEDULED"] = "MEETING_RESCHEDULED";
210
+ InboxEntryType["MEETINGCANCELLED"] = "MEETING_CANCELLED";
211
+ InboxEntryType["CALLSTARTED"] = "CALL_STARTED";
212
+ InboxEntryType["CALLENDED"] = "CALL_ENDED";
213
+ InboxEntryType["FORM"] = "FORM";
214
+ })(InboxEntryType = exports.InboxEntryType || (exports.InboxEntryType = {}));
281
215
  /**
216
+ *
282
217
  * @export
283
- * @namespace EventActionConfig
218
+ * @enum {string}
284
219
  */
285
- var EventActionConfig;
286
- (function (EventActionConfig) {
287
- /**
288
- * @export
289
- * @enum {string}
290
- */
291
- let EventEnum;
292
- (function (EventEnum) {
293
- EventEnum["ThreadOpenedOutsideWorkingHours"] = "thread_opened_outside_working_hours";
294
- EventEnum["ClosedSolvedThreadAction"] = "closed_solved_thread_action";
295
- EventEnum["ClosedUnsolvedThreadAction"] = "closed_unsolved_thread_action";
296
- EventEnum["ThreadOpened"] = "thread_opened";
297
- EventEnum["AssignedConversationAction"] = "assigned_conversation_action";
298
- EventEnum["ThreadOpenedAgentsUnavailable"] = "thread_opened_agents_unavailable";
299
- EventEnum["WidgetOpenedNoOpenThread"] = "widget_opened_no_open_thread";
300
- })(EventEnum = EventActionConfig.EventEnum || (EventActionConfig.EventEnum = {}));
301
- })(EventActionConfig = exports.EventActionConfig || (exports.EventActionConfig = {}));
220
+ var InboxSorting;
221
+ (function (InboxSorting) {
222
+ InboxSorting["Newest"] = "newest";
223
+ InboxSorting["Oldest"] = "oldest";
224
+ })(InboxSorting = exports.InboxSorting || (exports.InboxSorting = {}));
302
225
  /**
226
+ *
303
227
  * @export
304
- * @namespace InboxEntry
228
+ * @enum {string}
305
229
  */
306
- var InboxEntry;
307
- (function (InboxEntry) {
308
- /**
309
- * @export
310
- * @enum {string}
311
- */
312
- let StatusEnum;
313
- (function (StatusEnum) {
314
- StatusEnum["Waiting"] = "waiting";
315
- StatusEnum["InProgress"] = "inProgress";
316
- StatusEnum["Solved"] = "solved";
317
- StatusEnum["Unsolved"] = "unsolved";
318
- })(StatusEnum = InboxEntry.StatusEnum || (InboxEntry.StatusEnum = {}));
319
- /**
320
- * @export
321
- * @enum {string}
322
- */
323
- let TypeEnum;
324
- (function (TypeEnum) {
325
- TypeEnum["MESSAGE"] = "MESSAGE";
326
- TypeEnum["NOTE"] = "NOTE";
327
- TypeEnum["FILES"] = "FILES";
328
- TypeEnum["MEETINGSCHEDULED"] = "MEETING_SCHEDULED";
329
- TypeEnum["MEETINGRESCHEDULED"] = "MEETING_RESCHEDULED";
330
- TypeEnum["MEETINGCANCELLED"] = "MEETING_CANCELLED";
331
- TypeEnum["CALLSTARTED"] = "CALL_STARTED";
332
- TypeEnum["CALLENDED"] = "CALL_ENDED";
333
- TypeEnum["FORM"] = "FORM";
334
- })(TypeEnum = InboxEntry.TypeEnum || (InboxEntry.TypeEnum = {}));
335
- /**
336
- * @export
337
- * @enum {string}
338
- */
339
- let OwnerPresenceEnum;
340
- (function (OwnerPresenceEnum) {
341
- OwnerPresenceEnum["Available"] = "available";
342
- OwnerPresenceEnum["Unavailable"] = "unavailable";
343
- })(OwnerPresenceEnum = InboxEntry.OwnerPresenceEnum || (InboxEntry.OwnerPresenceEnum = {}));
344
- /**
345
- * @export
346
- * @enum {string}
347
- */
348
- let SnoozedStatusEnum;
349
- (function (SnoozedStatusEnum) {
350
- SnoozedStatusEnum["Snoozed"] = "snoozed";
351
- SnoozedStatusEnum["Unsnoozed"] = "unsnoozed";
352
- })(SnoozedStatusEnum = InboxEntry.SnoozedStatusEnum || (InboxEntry.SnoozedStatusEnum = {}));
353
- })(InboxEntry = exports.InboxEntry || (exports.InboxEntry = {}));
230
+ var MatchingStrategy;
231
+ (function (MatchingStrategy) {
232
+ MatchingStrategy["WholeDomain"] = "whole_domain";
233
+ MatchingStrategy["PathRecursively"] = "path_recursively";
234
+ MatchingStrategy["ExactUrl"] = "exact_url";
235
+ MatchingStrategy["PathArgs"] = "path_args";
236
+ })(MatchingStrategy = exports.MatchingStrategy || (exports.MatchingStrategy = {}));
354
237
  /**
355
238
  *
356
239
  * @export
@@ -363,69 +246,26 @@ var MessageWidgetConfigContextType;
363
246
  MessageWidgetConfigContextType["OplShowAddressForm"] = "opl_show_address_form";
364
247
  })(MessageWidgetConfigContextType = exports.MessageWidgetConfigContextType || (exports.MessageWidgetConfigContextType = {}));
365
248
  /**
249
+ *
366
250
  * @export
367
- * @namespace PermissionForm
251
+ * @enum {string}
368
252
  */
369
- var PermissionForm;
370
- (function (PermissionForm) {
371
- /**
372
- * @export
373
- * @enum {string}
374
- */
375
- let PermissionsEnum;
376
- (function (PermissionsEnum) {
377
- PermissionsEnum["AdminPermission"] = "admin_permission";
378
- PermissionsEnum["DisplayClosedConversations"] = "display_closed_conversations";
379
- PermissionsEnum["DisplayWaitingConversations"] = "display_waiting_conversations";
380
- PermissionsEnum["DisplayFollowedConversations"] = "display_followed_conversations";
381
- PermissionsEnum["DisplayInProgressConversations"] = "display_in_progress_conversations";
382
- PermissionsEnum["DisplayYoursConversations"] = "display_yours_conversations";
383
- PermissionsEnum["SettingsProactiveMessages"] = "settings_proactive_messages";
384
- PermissionsEnum["SettingsTags"] = "settings_tags";
385
- PermissionsEnum["SettingsAiSuggestions"] = "settings_ai_suggestions";
386
- PermissionsEnum["SettingsWebhooks"] = "settings_webhooks";
387
- PermissionsEnum["SettingsAdvisersConfiguration"] = "settings_advisers_configuration";
388
- PermissionsEnum["SettingsAgentGroupsConfiguration"] = "settings_agent_groups_configuration";
389
- PermissionsEnum["SettingsAdvisersAssignments"] = "settings_advisers_assignments";
390
- PermissionsEnum["SettingsAdvisersAvatar"] = "settings_advisers_avatar";
391
- PermissionsEnum["SettingsActionForms"] = "settings_action_forms";
392
- PermissionsEnum["SettingsStatuses"] = "settings_statuses";
393
- PermissionsEnum["SettingsRoles"] = "settings_roles";
394
- PermissionsEnum["SettingsGeneral"] = "settings_general";
395
- PermissionsEnum["ReportsYours"] = "reports_yours";
396
- PermissionsEnum["ReportsGroups"] = "reports_groups";
397
- PermissionsEnum["ReportsOrg"] = "reports_org";
398
- PermissionsEnum["LeadDeleteProfile"] = "lead_delete_profile";
399
- PermissionsEnum["LeadUpdateProfile"] = "lead_update_profile";
400
- PermissionsEnum["UpdatePersonalData"] = "update_personal_data";
401
- PermissionsEnum["RoomAssignSelf"] = "room_assign_self";
402
- PermissionsEnum["RoomAssignAgent"] = "room_assign_agent";
403
- PermissionsEnum["RoomAssignQueue"] = "room_assign_queue";
404
- PermissionsEnum["RoomCloseNotOwn"] = "room_close_not_own";
405
- PermissionsEnum["AiIntentsClassify"] = "ai_intents_classify";
406
- PermissionsEnum["DisplayOwnTagGroupsConversations"] = "display_own_tag_groups_conversations";
407
- PermissionsEnum["SettingsPasswordChange"] = "settings_password_change";
408
- PermissionsEnum["SettingsPersonal"] = "settings_personal";
409
- PermissionsEnum["MeetingsPageVisibility"] = "meetings_page_visibility";
410
- PermissionsEnum["HelpPageVisibility"] = "help_page_visibility";
411
- })(PermissionsEnum = PermissionForm.PermissionsEnum || (PermissionForm.PermissionsEnum = {}));
412
- })(PermissionForm = exports.PermissionForm || (exports.PermissionForm = {}));
253
+ var ModelTrainingStatus;
254
+ (function (ModelTrainingStatus) {
255
+ ModelTrainingStatus["TrainingInProgress"] = "TrainingInProgress";
256
+ ModelTrainingStatus["TrainingDone"] = "TrainingDone";
257
+ ModelTrainingStatus["TrainingNeverDone"] = "TrainingNeverDone";
258
+ })(ModelTrainingStatus = exports.ModelTrainingStatus || (exports.ModelTrainingStatus = {}));
413
259
  /**
260
+ *
414
261
  * @export
415
- * @namespace PreferencesForm
262
+ * @enum {string}
416
263
  */
417
- var PreferencesForm;
418
- (function (PreferencesForm) {
419
- /**
420
- * @export
421
- * @enum {string}
422
- */
423
- let InboxSortingEnum;
424
- (function (InboxSortingEnum) {
425
- InboxSortingEnum["Newest"] = "newest";
426
- InboxSortingEnum["Oldest"] = "oldest";
427
- })(InboxSortingEnum = PreferencesForm.InboxSortingEnum || (PreferencesForm.InboxSortingEnum = {}));
428
- })(PreferencesForm = exports.PreferencesForm || (exports.PreferencesForm = {}));
264
+ var Presence;
265
+ (function (Presence) {
266
+ Presence["Available"] = "available";
267
+ Presence["Unavailable"] = "unavailable";
268
+ })(Presence = exports.Presence || (exports.Presence = {}));
429
269
  /**
430
270
  * @export
431
271
  * @namespace RegisterInPushService
@@ -443,193 +283,28 @@ var RegisterInPushService;
443
283
  })(DeviceTypeEnum = RegisterInPushService.DeviceTypeEnum || (RegisterInPushService.DeviceTypeEnum = {}));
444
284
  })(RegisterInPushService = exports.RegisterInPushService || (exports.RegisterInPushService = {}));
445
285
  /**
286
+ *
446
287
  * @export
447
- * @namespace Role
448
- */
449
- var Role;
450
- (function (Role) {
451
- /**
452
- * @export
453
- * @enum {string}
454
- */
455
- let PermissionsEnum;
456
- (function (PermissionsEnum) {
457
- PermissionsEnum["AdminPermission"] = "admin_permission";
458
- PermissionsEnum["DisplayClosedConversations"] = "display_closed_conversations";
459
- PermissionsEnum["DisplayWaitingConversations"] = "display_waiting_conversations";
460
- PermissionsEnum["DisplayFollowedConversations"] = "display_followed_conversations";
461
- PermissionsEnum["DisplayInProgressConversations"] = "display_in_progress_conversations";
462
- PermissionsEnum["DisplayYoursConversations"] = "display_yours_conversations";
463
- PermissionsEnum["SettingsProactiveMessages"] = "settings_proactive_messages";
464
- PermissionsEnum["SettingsTags"] = "settings_tags";
465
- PermissionsEnum["SettingsAiSuggestions"] = "settings_ai_suggestions";
466
- PermissionsEnum["SettingsWebhooks"] = "settings_webhooks";
467
- PermissionsEnum["SettingsAdvisersConfiguration"] = "settings_advisers_configuration";
468
- PermissionsEnum["SettingsAgentGroupsConfiguration"] = "settings_agent_groups_configuration";
469
- PermissionsEnum["SettingsAdvisersAssignments"] = "settings_advisers_assignments";
470
- PermissionsEnum["SettingsAdvisersAvatar"] = "settings_advisers_avatar";
471
- PermissionsEnum["SettingsActionForms"] = "settings_action_forms";
472
- PermissionsEnum["SettingsStatuses"] = "settings_statuses";
473
- PermissionsEnum["SettingsRoles"] = "settings_roles";
474
- PermissionsEnum["SettingsGeneral"] = "settings_general";
475
- PermissionsEnum["ReportsYours"] = "reports_yours";
476
- PermissionsEnum["ReportsGroups"] = "reports_groups";
477
- PermissionsEnum["ReportsOrg"] = "reports_org";
478
- PermissionsEnum["LeadDeleteProfile"] = "lead_delete_profile";
479
- PermissionsEnum["LeadUpdateProfile"] = "lead_update_profile";
480
- PermissionsEnum["UpdatePersonalData"] = "update_personal_data";
481
- PermissionsEnum["RoomAssignSelf"] = "room_assign_self";
482
- PermissionsEnum["RoomAssignAgent"] = "room_assign_agent";
483
- PermissionsEnum["RoomAssignQueue"] = "room_assign_queue";
484
- PermissionsEnum["RoomCloseNotOwn"] = "room_close_not_own";
485
- PermissionsEnum["AiIntentsClassify"] = "ai_intents_classify";
486
- PermissionsEnum["DisplayOwnTagGroupsConversations"] = "display_own_tag_groups_conversations";
487
- PermissionsEnum["SettingsPasswordChange"] = "settings_password_change";
488
- PermissionsEnum["SettingsPersonal"] = "settings_personal";
489
- PermissionsEnum["MeetingsPageVisibility"] = "meetings_page_visibility";
490
- PermissionsEnum["HelpPageVisibility"] = "help_page_visibility";
491
- })(PermissionsEnum = Role.PermissionsEnum || (Role.PermissionsEnum = {}));
492
- })(Role = exports.Role || (exports.Role = {}));
493
- /**
494
- * @export
495
- * @namespace TagMappingDto
496
- */
497
- var TagMappingDto;
498
- (function (TagMappingDto) {
499
- /**
500
- * @export
501
- * @enum {string}
502
- */
503
- let MatchingStrategyEnum;
504
- (function (MatchingStrategyEnum) {
505
- MatchingStrategyEnum["WholeDomain"] = "whole_domain";
506
- MatchingStrategyEnum["PathRecursively"] = "path_recursively";
507
- MatchingStrategyEnum["ExactUrl"] = "exact_url";
508
- MatchingStrategyEnum["PathArgs"] = "path_args";
509
- })(MatchingStrategyEnum = TagMappingDto.MatchingStrategyEnum || (TagMappingDto.MatchingStrategyEnum = {}));
510
- })(TagMappingDto = exports.TagMappingDto || (exports.TagMappingDto = {}));
511
- /**
512
- * @export
513
- * @namespace TrainingInfo
514
- */
515
- var TrainingInfo;
516
- (function (TrainingInfo) {
517
- /**
518
- * @export
519
- * @enum {string}
520
- */
521
- let StatusEnum;
522
- (function (StatusEnum) {
523
- StatusEnum["TrainingInProgress"] = "TrainingInProgress";
524
- StatusEnum["TrainingDone"] = "TrainingDone";
525
- StatusEnum["TrainingNeverDone"] = "TrainingNeverDone";
526
- })(StatusEnum = TrainingInfo.StatusEnum || (TrainingInfo.StatusEnum = {}));
527
- })(TrainingInfo = exports.TrainingInfo || (exports.TrainingInfo = {}));
528
- /**
529
- * @export
530
- * @namespace UpdateEventActionConfigForm
531
- */
532
- var UpdateEventActionConfigForm;
533
- (function (UpdateEventActionConfigForm) {
534
- /**
535
- * @export
536
- * @enum {string}
537
- */
538
- let EventEnum;
539
- (function (EventEnum) {
540
- EventEnum["ThreadOpenedOutsideWorkingHours"] = "thread_opened_outside_working_hours";
541
- EventEnum["ClosedSolvedThreadAction"] = "closed_solved_thread_action";
542
- EventEnum["ClosedUnsolvedThreadAction"] = "closed_unsolved_thread_action";
543
- EventEnum["ThreadOpened"] = "thread_opened";
544
- EventEnum["AssignedConversationAction"] = "assigned_conversation_action";
545
- EventEnum["ThreadOpenedAgentsUnavailable"] = "thread_opened_agents_unavailable";
546
- EventEnum["WidgetOpenedNoOpenThread"] = "widget_opened_no_open_thread";
547
- })(EventEnum = UpdateEventActionConfigForm.EventEnum || (UpdateEventActionConfigForm.EventEnum = {}));
548
- })(UpdateEventActionConfigForm = exports.UpdateEventActionConfigForm || (exports.UpdateEventActionConfigForm = {}));
549
- /**
550
- * @export
551
- * @namespace UpdateRoleForm
552
- */
553
- var UpdateRoleForm;
554
- (function (UpdateRoleForm) {
555
- /**
556
- * @export
557
- * @enum {string}
558
- */
559
- let PermissionsEnum;
560
- (function (PermissionsEnum) {
561
- PermissionsEnum["AdminPermission"] = "admin_permission";
562
- PermissionsEnum["DisplayClosedConversations"] = "display_closed_conversations";
563
- PermissionsEnum["DisplayWaitingConversations"] = "display_waiting_conversations";
564
- PermissionsEnum["DisplayFollowedConversations"] = "display_followed_conversations";
565
- PermissionsEnum["DisplayInProgressConversations"] = "display_in_progress_conversations";
566
- PermissionsEnum["DisplayYoursConversations"] = "display_yours_conversations";
567
- PermissionsEnum["SettingsProactiveMessages"] = "settings_proactive_messages";
568
- PermissionsEnum["SettingsTags"] = "settings_tags";
569
- PermissionsEnum["SettingsAiSuggestions"] = "settings_ai_suggestions";
570
- PermissionsEnum["SettingsWebhooks"] = "settings_webhooks";
571
- PermissionsEnum["SettingsAdvisersConfiguration"] = "settings_advisers_configuration";
572
- PermissionsEnum["SettingsAgentGroupsConfiguration"] = "settings_agent_groups_configuration";
573
- PermissionsEnum["SettingsAdvisersAssignments"] = "settings_advisers_assignments";
574
- PermissionsEnum["SettingsAdvisersAvatar"] = "settings_advisers_avatar";
575
- PermissionsEnum["SettingsActionForms"] = "settings_action_forms";
576
- PermissionsEnum["SettingsStatuses"] = "settings_statuses";
577
- PermissionsEnum["SettingsRoles"] = "settings_roles";
578
- PermissionsEnum["SettingsGeneral"] = "settings_general";
579
- PermissionsEnum["ReportsYours"] = "reports_yours";
580
- PermissionsEnum["ReportsGroups"] = "reports_groups";
581
- PermissionsEnum["ReportsOrg"] = "reports_org";
582
- PermissionsEnum["LeadDeleteProfile"] = "lead_delete_profile";
583
- PermissionsEnum["LeadUpdateProfile"] = "lead_update_profile";
584
- PermissionsEnum["UpdatePersonalData"] = "update_personal_data";
585
- PermissionsEnum["RoomAssignSelf"] = "room_assign_self";
586
- PermissionsEnum["RoomAssignAgent"] = "room_assign_agent";
587
- PermissionsEnum["RoomAssignQueue"] = "room_assign_queue";
588
- PermissionsEnum["RoomCloseNotOwn"] = "room_close_not_own";
589
- PermissionsEnum["AiIntentsClassify"] = "ai_intents_classify";
590
- PermissionsEnum["DisplayOwnTagGroupsConversations"] = "display_own_tag_groups_conversations";
591
- PermissionsEnum["SettingsPasswordChange"] = "settings_password_change";
592
- PermissionsEnum["SettingsPersonal"] = "settings_personal";
593
- PermissionsEnum["MeetingsPageVisibility"] = "meetings_page_visibility";
594
- PermissionsEnum["HelpPageVisibility"] = "help_page_visibility";
595
- })(PermissionsEnum = UpdateRoleForm.PermissionsEnum || (UpdateRoleForm.PermissionsEnum = {}));
596
- })(UpdateRoleForm = exports.UpdateRoleForm || (exports.UpdateRoleForm = {}));
597
- /**
598
- * @export
599
- * @namespace UpdateTagMappingForm
288
+ * @enum {string}
600
289
  */
601
- var UpdateTagMappingForm;
602
- (function (UpdateTagMappingForm) {
603
- /**
604
- * @export
605
- * @enum {string}
606
- */
607
- let MatchingStrategyEnum;
608
- (function (MatchingStrategyEnum) {
609
- MatchingStrategyEnum["WholeDomain"] = "whole_domain";
610
- MatchingStrategyEnum["PathRecursively"] = "path_recursively";
611
- MatchingStrategyEnum["ExactUrl"] = "exact_url";
612
- MatchingStrategyEnum["PathArgs"] = "path_args";
613
- })(MatchingStrategyEnum = UpdateTagMappingForm.MatchingStrategyEnum || (UpdateTagMappingForm.MatchingStrategyEnum = {}));
614
- })(UpdateTagMappingForm = exports.UpdateTagMappingForm || (exports.UpdateTagMappingForm = {}));
290
+ var SnoozedStatus;
291
+ (function (SnoozedStatus) {
292
+ SnoozedStatus["Snoozed"] = "snoozed";
293
+ SnoozedStatus["Unsnoozed"] = "unsnoozed";
294
+ })(SnoozedStatus = exports.SnoozedStatus || (exports.SnoozedStatus = {}));
615
295
  /**
296
+ *
616
297
  * @export
617
- * @namespace UrlTagMappingDto
298
+ * @enum {string}
618
299
  */
619
- var UrlTagMappingDto;
620
- (function (UrlTagMappingDto) {
621
- /**
622
- * @export
623
- * @enum {string}
624
- */
625
- let MatchingStrategyEnum;
626
- (function (MatchingStrategyEnum) {
627
- MatchingStrategyEnum["WholeDomain"] = "whole_domain";
628
- MatchingStrategyEnum["PathRecursively"] = "path_recursively";
629
- MatchingStrategyEnum["ExactUrl"] = "exact_url";
630
- MatchingStrategyEnum["PathArgs"] = "path_args";
631
- })(MatchingStrategyEnum = UrlTagMappingDto.MatchingStrategyEnum || (UrlTagMappingDto.MatchingStrategyEnum = {}));
632
- })(UrlTagMappingDto = exports.UrlTagMappingDto || (exports.UrlTagMappingDto = {}));
300
+ var UserRole;
301
+ (function (UserRole) {
302
+ UserRole["AGENT"] = "AGENT";
303
+ UserRole["LEKTA"] = "LEKTA";
304
+ UserRole["CUSTOMER"] = "CUSTOMER";
305
+ UserRole["ORGANIZATION"] = "ORGANIZATION";
306
+ UserRole["MASTER"] = "MASTER";
307
+ })(UserRole = exports.UserRole || (exports.UserRole = {}));
633
308
  /**
634
309
  * @export
635
310
  * @namespace WidgetButtonsInput
@@ -6199,27 +5874,26 @@ class InviteesApi extends BaseAPI {
6199
5874
  }
6200
5875
  exports.InviteesApi = InviteesApi;
6201
5876
  /**
6202
- * MeetingBotApi - fetch parameter creator
5877
+ * MeetingsApi - fetch parameter creator
6203
5878
  * @export
6204
5879
  */
6205
- exports.MeetingBotApiFetchParamCreator = function (configuration) {
5880
+ exports.MeetingsApiFetchParamCreator = function (configuration) {
6206
5881
  return {
6207
5882
  /**
6208
5883
  *
6209
- * @summary Recall meeting bot rom room
6210
- * @param {string} roomId
5884
+ * @summary Cancel a meeting
5885
+ * @param {CancelMeeting} body
6211
5886
  * @param {*} [options] Override http request option.
6212
5887
  * @throws {RequiredError}
6213
5888
  */
6214
- recallMeetingLure(roomId, options = {}) {
6215
- // verify required parameter 'roomId' is not null or undefined
6216
- if (roomId === null || roomId === undefined) {
6217
- throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling recallMeetingLure.');
5889
+ cancelMeeting(body, options = {}) {
5890
+ // verify required parameter 'body' is not null or undefined
5891
+ if (body === null || body === undefined) {
5892
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling cancelMeeting.');
6218
5893
  }
6219
- const localVarPath = `/meetings/bot/lure/{roomId}`
6220
- .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
5894
+ const localVarPath = `/meetings/cancel`;
6221
5895
  const localVarUrlObj = url.parse(localVarPath, true);
6222
- const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
5896
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
6223
5897
  const localVarHeaderParameter = {};
6224
5898
  const localVarQueryParameter = {};
6225
5899
  // authentication apiKey required
@@ -6229,10 +5903,13 @@ exports.MeetingBotApiFetchParamCreator = function (configuration) {
6229
5903
  : configuration.apiKey;
6230
5904
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
6231
5905
  }
5906
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6232
5907
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6233
5908
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6234
5909
  delete localVarUrlObj.search;
6235
5910
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
5911
+ const needsSerialization = ("CancelMeeting" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
5912
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
6236
5913
  return {
6237
5914
  url: url.format(localVarUrlObj),
6238
5915
  options: localVarRequestOptions,
@@ -6240,18 +5917,16 @@ exports.MeetingBotApiFetchParamCreator = function (configuration) {
6240
5917
  },
6241
5918
  /**
6242
5919
  *
6243
- * @summary Send meeting bot to room
6244
- * @param {string} roomId
5920
+ * @param {LureCancel} body
6245
5921
  * @param {*} [options] Override http request option.
6246
5922
  * @throws {RequiredError}
6247
5923
  */
6248
- sendMeetingLure(roomId, options = {}) {
6249
- // verify required parameter 'roomId' is not null or undefined
6250
- if (roomId === null || roomId === undefined) {
6251
- throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling sendMeetingLure.');
5924
+ customerCancel(body, options = {}) {
5925
+ // verify required parameter 'body' is not null or undefined
5926
+ if (body === null || body === undefined) {
5927
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling customerCancel.');
6252
5928
  }
6253
- const localVarPath = `/meetings/bot/lure/{roomId}`
6254
- .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
5929
+ const localVarPath = `/meetings/bot/cancel`;
6255
5930
  const localVarUrlObj = url.parse(localVarPath, true);
6256
5931
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
6257
5932
  const localVarHeaderParameter = {};
@@ -6263,239 +5938,56 @@ exports.MeetingBotApiFetchParamCreator = function (configuration) {
6263
5938
  : configuration.apiKey;
6264
5939
  localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
6265
5940
  }
5941
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6266
5942
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6267
5943
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6268
5944
  delete localVarUrlObj.search;
6269
5945
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
5946
+ const needsSerialization = ("LureCancel" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
5947
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
6270
5948
  return {
6271
5949
  url: url.format(localVarUrlObj),
6272
5950
  options: localVarRequestOptions,
6273
5951
  };
6274
5952
  },
6275
- };
6276
- };
6277
- /**
6278
- * MeetingBotApi - functional programming interface
6279
- * @export
6280
- */
6281
- exports.MeetingBotApiFp = function (configuration) {
6282
- return {
6283
- /**
6284
- *
6285
- * @summary Recall meeting bot rom room
6286
- * @param {string} roomId
6287
- * @param {*} [options] Override http request option.
6288
- * @throws {RequiredError}
6289
- */
6290
- recallMeetingLure(roomId, options) {
6291
- const localVarFetchArgs = exports.MeetingBotApiFetchParamCreator(configuration).recallMeetingLure(roomId, options);
6292
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
6293
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
6294
- if (response.status >= 200 && response.status < 300) {
6295
- return response;
6296
- }
6297
- else {
6298
- throw response;
6299
- }
6300
- });
6301
- };
6302
- },
6303
5953
  /**
6304
5954
  *
6305
- * @summary Send meeting bot to room
6306
- * @param {string} roomId
5955
+ * @param {LureSchedule} body
6307
5956
  * @param {*} [options] Override http request option.
6308
5957
  * @throws {RequiredError}
6309
5958
  */
6310
- sendMeetingLure(roomId, options) {
6311
- const localVarFetchArgs = exports.MeetingBotApiFetchParamCreator(configuration).sendMeetingLure(roomId, options);
6312
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
6313
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
6314
- if (response.status >= 200 && response.status < 300) {
6315
- return response;
6316
- }
6317
- else {
6318
- throw response;
6319
- }
6320
- });
5959
+ customerSchedule(body, options = {}) {
5960
+ // verify required parameter 'body' is not null or undefined
5961
+ if (body === null || body === undefined) {
5962
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling customerSchedule.');
5963
+ }
5964
+ const localVarPath = `/meetings/bot/schedule`;
5965
+ const localVarUrlObj = url.parse(localVarPath, true);
5966
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
5967
+ const localVarHeaderParameter = {};
5968
+ const localVarQueryParameter = {};
5969
+ // authentication apiKey required
5970
+ if (configuration && configuration.apiKey) {
5971
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
5972
+ ? configuration.apiKey("X-Api-Key")
5973
+ : configuration.apiKey;
5974
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
5975
+ }
5976
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5977
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
5978
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
5979
+ delete localVarUrlObj.search;
5980
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
5981
+ const needsSerialization = ("LureSchedule" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
5982
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
5983
+ return {
5984
+ url: url.format(localVarUrlObj),
5985
+ options: localVarRequestOptions,
6321
5986
  };
6322
5987
  },
6323
- };
6324
- };
6325
- /**
6326
- * MeetingBotApi - factory interface
6327
- * @export
6328
- */
6329
- exports.MeetingBotApiFactory = function (configuration, fetch, basePath) {
6330
- return {
6331
- /**
6332
- *
6333
- * @summary Recall meeting bot rom room
6334
- * @param {string} roomId
6335
- * @param {*} [options] Override http request option.
6336
- * @throws {RequiredError}
6337
- */
6338
- recallMeetingLure(roomId, options) {
6339
- return exports.MeetingBotApiFp(configuration).recallMeetingLure(roomId, options)(fetch, basePath);
6340
- },
6341
5988
  /**
6342
5989
  *
6343
- * @summary Send meeting bot to room
6344
- * @param {string} roomId
6345
- * @param {*} [options] Override http request option.
6346
- * @throws {RequiredError}
6347
- */
6348
- sendMeetingLure(roomId, options) {
6349
- return exports.MeetingBotApiFp(configuration).sendMeetingLure(roomId, options)(fetch, basePath);
6350
- },
6351
- };
6352
- };
6353
- /**
6354
- * MeetingBotApi - object-oriented interface
6355
- * @export
6356
- * @class MeetingBotApi
6357
- * @extends {BaseAPI}
6358
- */
6359
- class MeetingBotApi extends BaseAPI {
6360
- /**
6361
- *
6362
- * @summary Recall meeting bot rom room
6363
- * @param {string} roomId
6364
- * @param {*} [options] Override http request option.
6365
- * @throws {RequiredError}
6366
- * @memberof MeetingBotApi
6367
- */
6368
- recallMeetingLure(roomId, options) {
6369
- return exports.MeetingBotApiFp(this.configuration).recallMeetingLure(roomId, options)(this.fetch, this.basePath);
6370
- }
6371
- /**
6372
- *
6373
- * @summary Send meeting bot to room
6374
- * @param {string} roomId
6375
- * @param {*} [options] Override http request option.
6376
- * @throws {RequiredError}
6377
- * @memberof MeetingBotApi
6378
- */
6379
- sendMeetingLure(roomId, options) {
6380
- return exports.MeetingBotApiFp(this.configuration).sendMeetingLure(roomId, options)(this.fetch, this.basePath);
6381
- }
6382
- }
6383
- exports.MeetingBotApi = MeetingBotApi;
6384
- /**
6385
- * MeetingsApi - fetch parameter creator
6386
- * @export
6387
- */
6388
- exports.MeetingsApiFetchParamCreator = function (configuration) {
6389
- return {
6390
- /**
6391
- *
6392
- * @summary Cancel a meeting
6393
- * @param {CancelMeeting} body
6394
- * @param {*} [options] Override http request option.
6395
- * @throws {RequiredError}
6396
- */
6397
- cancelMeeting(body, options = {}) {
6398
- // verify required parameter 'body' is not null or undefined
6399
- if (body === null || body === undefined) {
6400
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling cancelMeeting.');
6401
- }
6402
- const localVarPath = `/meetings/cancel`;
6403
- const localVarUrlObj = url.parse(localVarPath, true);
6404
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
6405
- const localVarHeaderParameter = {};
6406
- const localVarQueryParameter = {};
6407
- // authentication apiKey required
6408
- if (configuration && configuration.apiKey) {
6409
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
6410
- ? configuration.apiKey("X-Api-Key")
6411
- : configuration.apiKey;
6412
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
6413
- }
6414
- localVarHeaderParameter['Content-Type'] = 'application/json';
6415
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6416
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6417
- delete localVarUrlObj.search;
6418
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
6419
- const needsSerialization = ("CancelMeeting" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
6420
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
6421
- return {
6422
- url: url.format(localVarUrlObj),
6423
- options: localVarRequestOptions,
6424
- };
6425
- },
6426
- /**
6427
- *
6428
- * @param {LureCancel} body
6429
- * @param {*} [options] Override http request option.
6430
- * @throws {RequiredError}
6431
- */
6432
- customerCancel(body, options = {}) {
6433
- // verify required parameter 'body' is not null or undefined
6434
- if (body === null || body === undefined) {
6435
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling customerCancel.');
6436
- }
6437
- const localVarPath = `/meetings/bot/cancel`;
6438
- const localVarUrlObj = url.parse(localVarPath, true);
6439
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
6440
- const localVarHeaderParameter = {};
6441
- const localVarQueryParameter = {};
6442
- // authentication apiKey required
6443
- if (configuration && configuration.apiKey) {
6444
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
6445
- ? configuration.apiKey("X-Api-Key")
6446
- : configuration.apiKey;
6447
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
6448
- }
6449
- localVarHeaderParameter['Content-Type'] = 'application/json';
6450
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6451
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6452
- delete localVarUrlObj.search;
6453
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
6454
- const needsSerialization = ("LureCancel" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
6455
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
6456
- return {
6457
- url: url.format(localVarUrlObj),
6458
- options: localVarRequestOptions,
6459
- };
6460
- },
6461
- /**
6462
- *
6463
- * @param {LureSchedule} body
6464
- * @param {*} [options] Override http request option.
6465
- * @throws {RequiredError}
6466
- */
6467
- customerSchedule(body, options = {}) {
6468
- // verify required parameter 'body' is not null or undefined
6469
- if (body === null || body === undefined) {
6470
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling customerSchedule.');
6471
- }
6472
- const localVarPath = `/meetings/bot/schedule`;
6473
- const localVarUrlObj = url.parse(localVarPath, true);
6474
- const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
6475
- const localVarHeaderParameter = {};
6476
- const localVarQueryParameter = {};
6477
- // authentication apiKey required
6478
- if (configuration && configuration.apiKey) {
6479
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
6480
- ? configuration.apiKey("X-Api-Key")
6481
- : configuration.apiKey;
6482
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
6483
- }
6484
- localVarHeaderParameter['Content-Type'] = 'application/json';
6485
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6486
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6487
- delete localVarUrlObj.search;
6488
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
6489
- const needsSerialization = ("LureSchedule" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
6490
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
6491
- return {
6492
- url: url.format(localVarUrlObj),
6493
- options: localVarRequestOptions,
6494
- };
6495
- },
6496
- /**
6497
- *
6498
- * @param {LureSlots} body
5990
+ * @param {LureSlots} body
6499
5991
  * @param {*} [options] Override http request option.
6500
5992
  * @throws {RequiredError}
6501
5993
  */
@@ -6654,6 +6146,40 @@ exports.MeetingsApiFetchParamCreator = function (configuration) {
6654
6146
  options: localVarRequestOptions,
6655
6147
  };
6656
6148
  },
6149
+ /**
6150
+ *
6151
+ * @summary Recall meeting bot rom room
6152
+ * @param {string} roomId
6153
+ * @param {*} [options] Override http request option.
6154
+ * @throws {RequiredError}
6155
+ */
6156
+ recallMeetingLure(roomId, options = {}) {
6157
+ // verify required parameter 'roomId' is not null or undefined
6158
+ if (roomId === null || roomId === undefined) {
6159
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling recallMeetingLure.');
6160
+ }
6161
+ const localVarPath = `/meetings/bot/lure/{roomId}`
6162
+ .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
6163
+ const localVarUrlObj = url.parse(localVarPath, true);
6164
+ const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
6165
+ const localVarHeaderParameter = {};
6166
+ const localVarQueryParameter = {};
6167
+ // authentication apiKey required
6168
+ if (configuration && configuration.apiKey) {
6169
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
6170
+ ? configuration.apiKey("X-Api-Key")
6171
+ : configuration.apiKey;
6172
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
6173
+ }
6174
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6175
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6176
+ delete localVarUrlObj.search;
6177
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
6178
+ return {
6179
+ url: url.format(localVarUrlObj),
6180
+ options: localVarRequestOptions,
6181
+ };
6182
+ },
6657
6183
  /**
6658
6184
  *
6659
6185
  * @summary Reschedule a meeting
@@ -6798,6 +6324,40 @@ exports.MeetingsApiFetchParamCreator = function (configuration) {
6798
6324
  options: localVarRequestOptions,
6799
6325
  };
6800
6326
  },
6327
+ /**
6328
+ *
6329
+ * @summary Send meeting bot to room
6330
+ * @param {string} roomId
6331
+ * @param {*} [options] Override http request option.
6332
+ * @throws {RequiredError}
6333
+ */
6334
+ sendMeetingLure(roomId, options = {}) {
6335
+ // verify required parameter 'roomId' is not null or undefined
6336
+ if (roomId === null || roomId === undefined) {
6337
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling sendMeetingLure.');
6338
+ }
6339
+ const localVarPath = `/meetings/bot/lure/{roomId}`
6340
+ .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
6341
+ const localVarUrlObj = url.parse(localVarPath, true);
6342
+ const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
6343
+ const localVarHeaderParameter = {};
6344
+ const localVarQueryParameter = {};
6345
+ // authentication apiKey required
6346
+ if (configuration && configuration.apiKey) {
6347
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
6348
+ ? configuration.apiKey("X-Api-Key")
6349
+ : configuration.apiKey;
6350
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
6351
+ }
6352
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
6353
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
6354
+ delete localVarUrlObj.search;
6355
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
6356
+ return {
6357
+ url: url.format(localVarUrlObj),
6358
+ options: localVarRequestOptions,
6359
+ };
6360
+ },
6801
6361
  };
6802
6362
  };
6803
6363
  /**
@@ -6948,6 +6508,26 @@ exports.MeetingsApiFp = function (configuration) {
6948
6508
  });
6949
6509
  };
6950
6510
  },
6511
+ /**
6512
+ *
6513
+ * @summary Recall meeting bot rom room
6514
+ * @param {string} roomId
6515
+ * @param {*} [options] Override http request option.
6516
+ * @throws {RequiredError}
6517
+ */
6518
+ recallMeetingLure(roomId, options) {
6519
+ const localVarFetchArgs = exports.MeetingsApiFetchParamCreator(configuration).recallMeetingLure(roomId, options);
6520
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
6521
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
6522
+ if (response.status >= 200 && response.status < 300) {
6523
+ return response;
6524
+ }
6525
+ else {
6526
+ throw response;
6527
+ }
6528
+ });
6529
+ };
6530
+ },
6951
6531
  /**
6952
6532
  *
6953
6533
  * @summary Reschedule a meeting
@@ -7028,6 +6608,26 @@ exports.MeetingsApiFp = function (configuration) {
7028
6608
  });
7029
6609
  };
7030
6610
  },
6611
+ /**
6612
+ *
6613
+ * @summary Send meeting bot to room
6614
+ * @param {string} roomId
6615
+ * @param {*} [options] Override http request option.
6616
+ * @throws {RequiredError}
6617
+ */
6618
+ sendMeetingLure(roomId, options) {
6619
+ const localVarFetchArgs = exports.MeetingsApiFetchParamCreator(configuration).sendMeetingLure(roomId, options);
6620
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
6621
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
6622
+ if (response.status >= 200 && response.status < 300) {
6623
+ return response;
6624
+ }
6625
+ else {
6626
+ throw response;
6627
+ }
6628
+ });
6629
+ };
6630
+ },
7031
6631
  };
7032
6632
  };
7033
6633
  /**
@@ -7110,13 +6710,23 @@ exports.MeetingsApiFactory = function (configuration, fetch, basePath) {
7110
6710
  },
7111
6711
  /**
7112
6712
  *
7113
- * @summary Reschedule a meeting
7114
- * @param {RescheduleMeeting} body
6713
+ * @summary Recall meeting bot rom room
6714
+ * @param {string} roomId
7115
6715
  * @param {*} [options] Override http request option.
7116
6716
  * @throws {RequiredError}
7117
6717
  */
7118
- rescheduleMeeting(body, options) {
7119
- return exports.MeetingsApiFp(configuration).rescheduleMeeting(body, options)(fetch, basePath);
6718
+ recallMeetingLure(roomId, options) {
6719
+ return exports.MeetingsApiFp(configuration).recallMeetingLure(roomId, options)(fetch, basePath);
6720
+ },
6721
+ /**
6722
+ *
6723
+ * @summary Reschedule a meeting
6724
+ * @param {RescheduleMeeting} body
6725
+ * @param {*} [options] Override http request option.
6726
+ * @throws {RequiredError}
6727
+ */
6728
+ rescheduleMeeting(body, options) {
6729
+ return exports.MeetingsApiFp(configuration).rescheduleMeeting(body, options)(fetch, basePath);
7120
6730
  },
7121
6731
  /**
7122
6732
  *
@@ -7148,6 +6758,16 @@ exports.MeetingsApiFactory = function (configuration, fetch, basePath) {
7148
6758
  scheduleMeetingExternal(body, options) {
7149
6759
  return exports.MeetingsApiFp(configuration).scheduleMeetingExternal(body, options)(fetch, basePath);
7150
6760
  },
6761
+ /**
6762
+ *
6763
+ * @summary Send meeting bot to room
6764
+ * @param {string} roomId
6765
+ * @param {*} [options] Override http request option.
6766
+ * @throws {RequiredError}
6767
+ */
6768
+ sendMeetingLure(roomId, options) {
6769
+ return exports.MeetingsApiFp(configuration).sendMeetingLure(roomId, options)(fetch, basePath);
6770
+ },
7151
6771
  };
7152
6772
  };
7153
6773
  /**
@@ -7236,6 +6856,17 @@ class MeetingsApi extends BaseAPI {
7236
6856
  getRoomMeetings(roomId, options) {
7237
6857
  return exports.MeetingsApiFp(this.configuration).getRoomMeetings(roomId, options)(this.fetch, this.basePath);
7238
6858
  }
6859
+ /**
6860
+ *
6861
+ * @summary Recall meeting bot rom room
6862
+ * @param {string} roomId
6863
+ * @param {*} [options] Override http request option.
6864
+ * @throws {RequiredError}
6865
+ * @memberof MeetingsApi
6866
+ */
6867
+ recallMeetingLure(roomId, options) {
6868
+ return exports.MeetingsApiFp(this.configuration).recallMeetingLure(roomId, options)(this.fetch, this.basePath);
6869
+ }
7239
6870
  /**
7240
6871
  *
7241
6872
  * @summary Reschedule a meeting
@@ -7280,6 +6911,17 @@ class MeetingsApi extends BaseAPI {
7280
6911
  scheduleMeetingExternal(body, options) {
7281
6912
  return exports.MeetingsApiFp(this.configuration).scheduleMeetingExternal(body, options)(this.fetch, this.basePath);
7282
6913
  }
6914
+ /**
6915
+ *
6916
+ * @summary Send meeting bot to room
6917
+ * @param {string} roomId
6918
+ * @param {*} [options] Override http request option.
6919
+ * @throws {RequiredError}
6920
+ * @memberof MeetingsApi
6921
+ */
6922
+ sendMeetingLure(roomId, options) {
6923
+ return exports.MeetingsApiFp(this.configuration).sendMeetingLure(roomId, options)(this.fetch, this.basePath);
6924
+ }
7283
6925
  }
7284
6926
  exports.MeetingsApi = MeetingsApi;
7285
6927
  /**
@@ -7434,12 +7076,16 @@ exports.MessageWidgetsApiFetchParamCreator = function (configuration) {
7434
7076
  /**
7435
7077
  *
7436
7078
  * @summary update message widget config by widget id
7079
+ * @param {MessageWidgetForm} body
7437
7080
  * @param {string} value
7438
- * @param {MessageWidgetForm} [body]
7439
7081
  * @param {*} [options] Override http request option.
7440
7082
  * @throws {RequiredError}
7441
7083
  */
7442
- updateMessageWidgetConfig(value, body, options = {}) {
7084
+ updateMessageWidgetConfig(body, value, options = {}) {
7085
+ // verify required parameter 'body' is not null or undefined
7086
+ if (body === null || body === undefined) {
7087
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateMessageWidgetConfig.');
7088
+ }
7443
7089
  // verify required parameter 'value' is not null or undefined
7444
7090
  if (value === null || value === undefined) {
7445
7091
  throw new RequiredError('value', 'Required parameter value was null or undefined when calling updateMessageWidgetConfig.');
@@ -7562,13 +7208,13 @@ exports.MessageWidgetsApiFp = function (configuration) {
7562
7208
  /**
7563
7209
  *
7564
7210
  * @summary update message widget config by widget id
7211
+ * @param {MessageWidgetForm} body
7565
7212
  * @param {string} value
7566
- * @param {MessageWidgetForm} [body]
7567
7213
  * @param {*} [options] Override http request option.
7568
7214
  * @throws {RequiredError}
7569
7215
  */
7570
- updateMessageWidgetConfig(value, body, options) {
7571
- const localVarFetchArgs = exports.MessageWidgetsApiFetchParamCreator(configuration).updateMessageWidgetConfig(value, body, options);
7216
+ updateMessageWidgetConfig(body, value, options) {
7217
+ const localVarFetchArgs = exports.MessageWidgetsApiFetchParamCreator(configuration).updateMessageWidgetConfig(body, value, options);
7572
7218
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
7573
7219
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
7574
7220
  if (response.status >= 200 && response.status < 300) {
@@ -7633,13 +7279,13 @@ exports.MessageWidgetsApiFactory = function (configuration, fetch, basePath) {
7633
7279
  /**
7634
7280
  *
7635
7281
  * @summary update message widget config by widget id
7282
+ * @param {MessageWidgetForm} body
7636
7283
  * @param {string} value
7637
- * @param {MessageWidgetForm} [body]
7638
7284
  * @param {*} [options] Override http request option.
7639
7285
  * @throws {RequiredError}
7640
7286
  */
7641
- updateMessageWidgetConfig(value, body, options) {
7642
- return exports.MessageWidgetsApiFp(configuration).updateMessageWidgetConfig(value, body, options)(fetch, basePath);
7287
+ updateMessageWidgetConfig(body, value, options) {
7288
+ return exports.MessageWidgetsApiFp(configuration).updateMessageWidgetConfig(body, value, options)(fetch, basePath);
7643
7289
  },
7644
7290
  };
7645
7291
  };
@@ -7699,14 +7345,14 @@ class MessageWidgetsApi extends BaseAPI {
7699
7345
  /**
7700
7346
  *
7701
7347
  * @summary update message widget config by widget id
7348
+ * @param {MessageWidgetForm} body
7702
7349
  * @param {string} value
7703
- * @param {MessageWidgetForm} [body]
7704
7350
  * @param {*} [options] Override http request option.
7705
7351
  * @throws {RequiredError}
7706
7352
  * @memberof MessageWidgetsApi
7707
7353
  */
7708
- updateMessageWidgetConfig(value, body, options) {
7709
- return exports.MessageWidgetsApiFp(this.configuration).updateMessageWidgetConfig(value, body, options)(this.fetch, this.basePath);
7354
+ updateMessageWidgetConfig(body, value, options) {
7355
+ return exports.MessageWidgetsApiFp(this.configuration).updateMessageWidgetConfig(body, value, options)(this.fetch, this.basePath);
7710
7356
  }
7711
7357
  }
7712
7358
  exports.MessageWidgetsApi = MessageWidgetsApi;
@@ -8783,34 +8429,41 @@ class NLUApi extends BaseAPI {
8783
8429
  }
8784
8430
  exports.NLUApi = NLUApi;
8785
8431
  /**
8786
- * OIDCApi - fetch parameter creator
8432
+ * OAuthApi - fetch parameter creator
8787
8433
  * @export
8788
8434
  */
8789
- exports.OIDCApiFetchParamCreator = function (configuration) {
8435
+ exports.OAuthApiFetchParamCreator = function (configuration) {
8790
8436
  return {
8791
8437
  /**
8792
8438
  *
8793
- * @summary authorize with code
8794
- * @param {CodeAuthorizationForm} body
8439
+ * @summary Create oauth config
8440
+ * @param {OauthConfigCreateForm} body
8795
8441
  * @param {*} [options] Override http request option.
8796
8442
  * @throws {RequiredError}
8797
8443
  */
8798
- authorizeOpenIdConnect(body, options = {}) {
8444
+ createOAuthConfig(body, options = {}) {
8799
8445
  // verify required parameter 'body' is not null or undefined
8800
8446
  if (body === null || body === undefined) {
8801
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling authorizeOpenIdConnect.');
8447
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createOAuthConfig.');
8802
8448
  }
8803
- const localVarPath = `/oidc/code-authorization`;
8449
+ const localVarPath = `/oauth-config`;
8804
8450
  const localVarUrlObj = url.parse(localVarPath, true);
8805
8451
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
8806
8452
  const localVarHeaderParameter = {};
8807
8453
  const localVarQueryParameter = {};
8454
+ // authentication apiKey required
8455
+ if (configuration && configuration.apiKey) {
8456
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
8457
+ ? configuration.apiKey("X-Api-Key")
8458
+ : configuration.apiKey;
8459
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
8460
+ }
8808
8461
  localVarHeaderParameter['Content-Type'] = 'application/json';
8809
8462
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
8810
8463
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
8811
8464
  delete localVarUrlObj.search;
8812
8465
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
8813
- const needsSerialization = ("CodeAuthorizationForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
8466
+ const needsSerialization = ("OauthConfigCreateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
8814
8467
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
8815
8468
  return {
8816
8469
  url: url.format(localVarUrlObj),
@@ -8819,16 +8472,51 @@ exports.OIDCApiFetchParamCreator = function (configuration) {
8819
8472
  },
8820
8473
  /**
8821
8474
  *
8822
- * @summary get nonce
8475
+ * @summary Delete oauth config
8823
8476
  * @param {*} [options] Override http request option.
8824
8477
  * @throws {RequiredError}
8825
8478
  */
8826
- getNonce(options = {}) {
8827
- const localVarPath = `/oidc/nonce`;
8479
+ deleteOAuthConfig(options = {}) {
8480
+ const localVarPath = `/oauth-config`;
8481
+ const localVarUrlObj = url.parse(localVarPath, true);
8482
+ const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
8483
+ const localVarHeaderParameter = {};
8484
+ const localVarQueryParameter = {};
8485
+ // authentication apiKey required
8486
+ if (configuration && configuration.apiKey) {
8487
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
8488
+ ? configuration.apiKey("X-Api-Key")
8489
+ : configuration.apiKey;
8490
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
8491
+ }
8492
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
8493
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
8494
+ delete localVarUrlObj.search;
8495
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
8496
+ return {
8497
+ url: url.format(localVarUrlObj),
8498
+ options: localVarRequestOptions,
8499
+ };
8500
+ },
8501
+ /**
8502
+ *
8503
+ * @summary Get oauth config
8504
+ * @param {*} [options] Override http request option.
8505
+ * @throws {RequiredError}
8506
+ */
8507
+ getOAuthConfig(options = {}) {
8508
+ const localVarPath = `/oauth-config`;
8828
8509
  const localVarUrlObj = url.parse(localVarPath, true);
8829
8510
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
8830
8511
  const localVarHeaderParameter = {};
8831
8512
  const localVarQueryParameter = {};
8513
+ // authentication apiKey required
8514
+ if (configuration && configuration.apiKey) {
8515
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
8516
+ ? configuration.apiKey("X-Api-Key")
8517
+ : configuration.apiKey;
8518
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
8519
+ }
8832
8520
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
8833
8521
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
8834
8522
  delete localVarUrlObj.search;
@@ -8840,28 +8528,35 @@ exports.OIDCApiFetchParamCreator = function (configuration) {
8840
8528
  },
8841
8529
  /**
8842
8530
  *
8843
- * @summary unauthorized endpoint for org's oidc configuration
8844
- * @param {string} orgId orgId
8531
+ * @summary Patch oauth config
8532
+ * @param {OauthConfigPatchForm} body
8845
8533
  * @param {*} [options] Override http request option.
8846
8534
  * @throws {RequiredError}
8847
8535
  */
8848
- getOpenIDConnectConfigUnauthorized(orgId, options = {}) {
8849
- // verify required parameter 'orgId' is not null or undefined
8850
- if (orgId === null || orgId === undefined) {
8851
- throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling getOpenIDConnectConfigUnauthorized.');
8536
+ patchOAuthConfig(body, options = {}) {
8537
+ // verify required parameter 'body' is not null or undefined
8538
+ if (body === null || body === undefined) {
8539
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchOAuthConfig.');
8852
8540
  }
8853
- const localVarPath = `/oidc-configs`;
8541
+ const localVarPath = `/oauth-config`;
8854
8542
  const localVarUrlObj = url.parse(localVarPath, true);
8855
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
8543
+ const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
8856
8544
  const localVarHeaderParameter = {};
8857
8545
  const localVarQueryParameter = {};
8858
- if (orgId !== undefined) {
8859
- localVarQueryParameter['orgId'] = orgId;
8546
+ // authentication apiKey required
8547
+ if (configuration && configuration.apiKey) {
8548
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
8549
+ ? configuration.apiKey("X-Api-Key")
8550
+ : configuration.apiKey;
8551
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
8860
8552
  }
8553
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8861
8554
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
8862
8555
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
8863
8556
  delete localVarUrlObj.search;
8864
8557
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
8558
+ const needsSerialization = ("OauthConfigPatchForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
8559
+ localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
8865
8560
  return {
8866
8561
  url: url.format(localVarUrlObj),
8867
8562
  options: localVarRequestOptions,
@@ -8870,24 +8565,24 @@ exports.OIDCApiFetchParamCreator = function (configuration) {
8870
8565
  };
8871
8566
  };
8872
8567
  /**
8873
- * OIDCApi - functional programming interface
8568
+ * OAuthApi - functional programming interface
8874
8569
  * @export
8875
8570
  */
8876
- exports.OIDCApiFp = function (configuration) {
8571
+ exports.OAuthApiFp = function (configuration) {
8877
8572
  return {
8878
8573
  /**
8879
8574
  *
8880
- * @summary authorize with code
8881
- * @param {CodeAuthorizationForm} body
8575
+ * @summary Create oauth config
8576
+ * @param {OauthConfigCreateForm} body
8882
8577
  * @param {*} [options] Override http request option.
8883
8578
  * @throws {RequiredError}
8884
8579
  */
8885
- authorizeOpenIdConnect(body, options) {
8886
- const localVarFetchArgs = exports.OIDCApiFetchParamCreator(configuration).authorizeOpenIdConnect(body, options);
8580
+ createOAuthConfig(body, options) {
8581
+ const localVarFetchArgs = exports.OAuthApiFetchParamCreator(configuration).createOAuthConfig(body, options);
8887
8582
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
8888
8583
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
8889
8584
  if (response.status >= 200 && response.status < 300) {
8890
- return response.json();
8585
+ return response;
8891
8586
  }
8892
8587
  else {
8893
8588
  throw response;
@@ -8897,16 +8592,16 @@ exports.OIDCApiFp = function (configuration) {
8897
8592
  },
8898
8593
  /**
8899
8594
  *
8900
- * @summary get nonce
8595
+ * @summary Delete oauth config
8901
8596
  * @param {*} [options] Override http request option.
8902
8597
  * @throws {RequiredError}
8903
8598
  */
8904
- getNonce(options) {
8905
- const localVarFetchArgs = exports.OIDCApiFetchParamCreator(configuration).getNonce(options);
8599
+ deleteOAuthConfig(options) {
8600
+ const localVarFetchArgs = exports.OAuthApiFetchParamCreator(configuration).deleteOAuthConfig(options);
8906
8601
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
8907
8602
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
8908
8603
  if (response.status >= 200 && response.status < 300) {
8909
- return response.json();
8604
+ return response;
8910
8605
  }
8911
8606
  else {
8912
8607
  throw response;
@@ -8916,13 +8611,12 @@ exports.OIDCApiFp = function (configuration) {
8916
8611
  },
8917
8612
  /**
8918
8613
  *
8919
- * @summary unauthorized endpoint for org's oidc configuration
8920
- * @param {string} orgId orgId
8614
+ * @summary Get oauth config
8921
8615
  * @param {*} [options] Override http request option.
8922
8616
  * @throws {RequiredError}
8923
8617
  */
8924
- getOpenIDConnectConfigUnauthorized(orgId, options) {
8925
- const localVarFetchArgs = exports.OIDCApiFetchParamCreator(configuration).getOpenIDConnectConfigUnauthorized(orgId, options);
8618
+ getOAuthConfig(options) {
8619
+ const localVarFetchArgs = exports.OAuthApiFetchParamCreator(configuration).getOAuthConfig(options);
8926
8620
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
8927
8621
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
8928
8622
  if (response.status >= 200 && response.status < 300) {
@@ -8934,122 +8628,154 @@ exports.OIDCApiFp = function (configuration) {
8934
8628
  });
8935
8629
  };
8936
8630
  },
8631
+ /**
8632
+ *
8633
+ * @summary Patch oauth config
8634
+ * @param {OauthConfigPatchForm} body
8635
+ * @param {*} [options] Override http request option.
8636
+ * @throws {RequiredError}
8637
+ */
8638
+ patchOAuthConfig(body, options) {
8639
+ const localVarFetchArgs = exports.OAuthApiFetchParamCreator(configuration).patchOAuthConfig(body, options);
8640
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
8641
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
8642
+ if (response.status >= 200 && response.status < 300) {
8643
+ return response;
8644
+ }
8645
+ else {
8646
+ throw response;
8647
+ }
8648
+ });
8649
+ };
8650
+ },
8937
8651
  };
8938
8652
  };
8939
8653
  /**
8940
- * OIDCApi - factory interface
8654
+ * OAuthApi - factory interface
8941
8655
  * @export
8942
8656
  */
8943
- exports.OIDCApiFactory = function (configuration, fetch, basePath) {
8657
+ exports.OAuthApiFactory = function (configuration, fetch, basePath) {
8944
8658
  return {
8945
8659
  /**
8946
8660
  *
8947
- * @summary authorize with code
8948
- * @param {CodeAuthorizationForm} body
8661
+ * @summary Create oauth config
8662
+ * @param {OauthConfigCreateForm} body
8949
8663
  * @param {*} [options] Override http request option.
8950
8664
  * @throws {RequiredError}
8951
8665
  */
8952
- authorizeOpenIdConnect(body, options) {
8953
- return exports.OIDCApiFp(configuration).authorizeOpenIdConnect(body, options)(fetch, basePath);
8666
+ createOAuthConfig(body, options) {
8667
+ return exports.OAuthApiFp(configuration).createOAuthConfig(body, options)(fetch, basePath);
8954
8668
  },
8955
8669
  /**
8956
8670
  *
8957
- * @summary get nonce
8671
+ * @summary Delete oauth config
8958
8672
  * @param {*} [options] Override http request option.
8959
8673
  * @throws {RequiredError}
8960
8674
  */
8961
- getNonce(options) {
8962
- return exports.OIDCApiFp(configuration).getNonce(options)(fetch, basePath);
8675
+ deleteOAuthConfig(options) {
8676
+ return exports.OAuthApiFp(configuration).deleteOAuthConfig(options)(fetch, basePath);
8963
8677
  },
8964
8678
  /**
8965
8679
  *
8966
- * @summary unauthorized endpoint for org's oidc configuration
8967
- * @param {string} orgId orgId
8680
+ * @summary Get oauth config
8968
8681
  * @param {*} [options] Override http request option.
8969
8682
  * @throws {RequiredError}
8970
8683
  */
8971
- getOpenIDConnectConfigUnauthorized(orgId, options) {
8972
- return exports.OIDCApiFp(configuration).getOpenIDConnectConfigUnauthorized(orgId, options)(fetch, basePath);
8684
+ getOAuthConfig(options) {
8685
+ return exports.OAuthApiFp(configuration).getOAuthConfig(options)(fetch, basePath);
8686
+ },
8687
+ /**
8688
+ *
8689
+ * @summary Patch oauth config
8690
+ * @param {OauthConfigPatchForm} body
8691
+ * @param {*} [options] Override http request option.
8692
+ * @throws {RequiredError}
8693
+ */
8694
+ patchOAuthConfig(body, options) {
8695
+ return exports.OAuthApiFp(configuration).patchOAuthConfig(body, options)(fetch, basePath);
8973
8696
  },
8974
8697
  };
8975
8698
  };
8976
8699
  /**
8977
- * OIDCApi - object-oriented interface
8700
+ * OAuthApi - object-oriented interface
8978
8701
  * @export
8979
- * @class OIDCApi
8702
+ * @class OAuthApi
8980
8703
  * @extends {BaseAPI}
8981
8704
  */
8982
- class OIDCApi extends BaseAPI {
8705
+ class OAuthApi extends BaseAPI {
8983
8706
  /**
8984
8707
  *
8985
- * @summary authorize with code
8986
- * @param {CodeAuthorizationForm} body
8708
+ * @summary Create oauth config
8709
+ * @param {OauthConfigCreateForm} body
8987
8710
  * @param {*} [options] Override http request option.
8988
8711
  * @throws {RequiredError}
8989
- * @memberof OIDCApi
8712
+ * @memberof OAuthApi
8990
8713
  */
8991
- authorizeOpenIdConnect(body, options) {
8992
- return exports.OIDCApiFp(this.configuration).authorizeOpenIdConnect(body, options)(this.fetch, this.basePath);
8714
+ createOAuthConfig(body, options) {
8715
+ return exports.OAuthApiFp(this.configuration).createOAuthConfig(body, options)(this.fetch, this.basePath);
8993
8716
  }
8994
8717
  /**
8995
8718
  *
8996
- * @summary get nonce
8719
+ * @summary Delete oauth config
8997
8720
  * @param {*} [options] Override http request option.
8998
8721
  * @throws {RequiredError}
8999
- * @memberof OIDCApi
8722
+ * @memberof OAuthApi
9000
8723
  */
9001
- getNonce(options) {
9002
- return exports.OIDCApiFp(this.configuration).getNonce(options)(this.fetch, this.basePath);
8724
+ deleteOAuthConfig(options) {
8725
+ return exports.OAuthApiFp(this.configuration).deleteOAuthConfig(options)(this.fetch, this.basePath);
9003
8726
  }
9004
8727
  /**
9005
8728
  *
9006
- * @summary unauthorized endpoint for org's oidc configuration
9007
- * @param {string} orgId orgId
8729
+ * @summary Get oauth config
9008
8730
  * @param {*} [options] Override http request option.
9009
8731
  * @throws {RequiredError}
9010
- * @memberof OIDCApi
8732
+ * @memberof OAuthApi
9011
8733
  */
9012
- getOpenIDConnectConfigUnauthorized(orgId, options) {
9013
- return exports.OIDCApiFp(this.configuration).getOpenIDConnectConfigUnauthorized(orgId, options)(this.fetch, this.basePath);
8734
+ getOAuthConfig(options) {
8735
+ return exports.OAuthApiFp(this.configuration).getOAuthConfig(options)(this.fetch, this.basePath);
8736
+ }
8737
+ /**
8738
+ *
8739
+ * @summary Patch oauth config
8740
+ * @param {OauthConfigPatchForm} body
8741
+ * @param {*} [options] Override http request option.
8742
+ * @throws {RequiredError}
8743
+ * @memberof OAuthApi
8744
+ */
8745
+ patchOAuthConfig(body, options) {
8746
+ return exports.OAuthApiFp(this.configuration).patchOAuthConfig(body, options)(this.fetch, this.basePath);
9014
8747
  }
9015
8748
  }
9016
- exports.OIDCApi = OIDCApi;
8749
+ exports.OAuthApi = OAuthApi;
9017
8750
  /**
9018
- * OauthApi - fetch parameter creator
8751
+ * OIDCApi - fetch parameter creator
9019
8752
  * @export
9020
8753
  */
9021
- exports.OauthApiFetchParamCreator = function (configuration) {
8754
+ exports.OIDCApiFetchParamCreator = function (configuration) {
9022
8755
  return {
9023
8756
  /**
9024
8757
  *
9025
- * @summary Create oauth config
9026
- * @param {OauthConfigCreateForm} body
8758
+ * @summary authorize with code
8759
+ * @param {CodeAuthorizationForm} body
9027
8760
  * @param {*} [options] Override http request option.
9028
8761
  * @throws {RequiredError}
9029
8762
  */
9030
- createOAuthConfig(body, options = {}) {
8763
+ authorizeOpenIdConnect(body, options = {}) {
9031
8764
  // verify required parameter 'body' is not null or undefined
9032
8765
  if (body === null || body === undefined) {
9033
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling createOAuthConfig.');
8766
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling authorizeOpenIdConnect.');
9034
8767
  }
9035
- const localVarPath = `/oauth-config`;
8768
+ const localVarPath = `/oidc/code-authorization`;
9036
8769
  const localVarUrlObj = url.parse(localVarPath, true);
9037
8770
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
9038
8771
  const localVarHeaderParameter = {};
9039
8772
  const localVarQueryParameter = {};
9040
- // authentication apiKey required
9041
- if (configuration && configuration.apiKey) {
9042
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9043
- ? configuration.apiKey("X-Api-Key")
9044
- : configuration.apiKey;
9045
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9046
- }
9047
8773
  localVarHeaderParameter['Content-Type'] = 'application/json';
9048
8774
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9049
8775
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9050
8776
  delete localVarUrlObj.search;
9051
8777
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9052
- const needsSerialization = ("OauthConfigCreateForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
8778
+ const needsSerialization = ("CodeAuthorizationForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
9053
8779
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
9054
8780
  return {
9055
8781
  url: url.format(localVarUrlObj),
@@ -9058,51 +8784,16 @@ exports.OauthApiFetchParamCreator = function (configuration) {
9058
8784
  },
9059
8785
  /**
9060
8786
  *
9061
- * @summary Delete oauth config
9062
- * @param {*} [options] Override http request option.
9063
- * @throws {RequiredError}
9064
- */
9065
- deleteOAuthConfig(options = {}) {
9066
- const localVarPath = `/oauth-config`;
9067
- const localVarUrlObj = url.parse(localVarPath, true);
9068
- const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
9069
- const localVarHeaderParameter = {};
9070
- const localVarQueryParameter = {};
9071
- // authentication apiKey required
9072
- if (configuration && configuration.apiKey) {
9073
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9074
- ? configuration.apiKey("X-Api-Key")
9075
- : configuration.apiKey;
9076
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9077
- }
9078
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9079
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9080
- delete localVarUrlObj.search;
9081
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9082
- return {
9083
- url: url.format(localVarUrlObj),
9084
- options: localVarRequestOptions,
9085
- };
9086
- },
9087
- /**
9088
- *
9089
- * @summary Get oauth config
8787
+ * @summary get nonce
9090
8788
  * @param {*} [options] Override http request option.
9091
8789
  * @throws {RequiredError}
9092
8790
  */
9093
- getOAuthConfig(options = {}) {
9094
- const localVarPath = `/oauth-config`;
8791
+ getNonce(options = {}) {
8792
+ const localVarPath = `/oidc/nonce`;
9095
8793
  const localVarUrlObj = url.parse(localVarPath, true);
9096
8794
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
9097
8795
  const localVarHeaderParameter = {};
9098
8796
  const localVarQueryParameter = {};
9099
- // authentication apiKey required
9100
- if (configuration && configuration.apiKey) {
9101
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9102
- ? configuration.apiKey("X-Api-Key")
9103
- : configuration.apiKey;
9104
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
9105
- }
9106
8797
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9107
8798
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9108
8799
  delete localVarUrlObj.search;
@@ -9114,35 +8805,28 @@ exports.OauthApiFetchParamCreator = function (configuration) {
9114
8805
  },
9115
8806
  /**
9116
8807
  *
9117
- * @summary Patch oauth config
9118
- * @param {OauthConfigPatchForm} body
8808
+ * @summary unauthorized endpoint for org's oidc configuration
8809
+ * @param {string} orgId orgId
9119
8810
  * @param {*} [options] Override http request option.
9120
8811
  * @throws {RequiredError}
9121
8812
  */
9122
- patchOAuthConfig(body, options = {}) {
9123
- // verify required parameter 'body' is not null or undefined
9124
- if (body === null || body === undefined) {
9125
- throw new RequiredError('body', 'Required parameter body was null or undefined when calling patchOAuthConfig.');
8813
+ getOpenIDConnectConfigUnauthorized(orgId, options = {}) {
8814
+ // verify required parameter 'orgId' is not null or undefined
8815
+ if (orgId === null || orgId === undefined) {
8816
+ throw new RequiredError('orgId', 'Required parameter orgId was null or undefined when calling getOpenIDConnectConfigUnauthorized.');
9126
8817
  }
9127
- const localVarPath = `/oauth-config`;
8818
+ const localVarPath = `/oidc-configs`;
9128
8819
  const localVarUrlObj = url.parse(localVarPath, true);
9129
- const localVarRequestOptions = Object.assign({ method: 'PATCH' }, options);
8820
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
9130
8821
  const localVarHeaderParameter = {};
9131
8822
  const localVarQueryParameter = {};
9132
- // authentication apiKey required
9133
- if (configuration && configuration.apiKey) {
9134
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
9135
- ? configuration.apiKey("X-Api-Key")
9136
- : configuration.apiKey;
9137
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
8823
+ if (orgId !== undefined) {
8824
+ localVarQueryParameter['orgId'] = orgId;
9138
8825
  }
9139
- localVarHeaderParameter['Content-Type'] = 'application/json';
9140
8826
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
9141
8827
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
9142
8828
  delete localVarUrlObj.search;
9143
8829
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
9144
- const needsSerialization = ("OauthConfigPatchForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
9145
- localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
9146
8830
  return {
9147
8831
  url: url.format(localVarUrlObj),
9148
8832
  options: localVarRequestOptions,
@@ -9151,43 +8835,24 @@ exports.OauthApiFetchParamCreator = function (configuration) {
9151
8835
  };
9152
8836
  };
9153
8837
  /**
9154
- * OauthApi - functional programming interface
8838
+ * OIDCApi - functional programming interface
9155
8839
  * @export
9156
8840
  */
9157
- exports.OauthApiFp = function (configuration) {
8841
+ exports.OIDCApiFp = function (configuration) {
9158
8842
  return {
9159
8843
  /**
9160
8844
  *
9161
- * @summary Create oauth config
9162
- * @param {OauthConfigCreateForm} body
9163
- * @param {*} [options] Override http request option.
9164
- * @throws {RequiredError}
9165
- */
9166
- createOAuthConfig(body, options) {
9167
- const localVarFetchArgs = exports.OauthApiFetchParamCreator(configuration).createOAuthConfig(body, options);
9168
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
9169
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
9170
- if (response.status >= 200 && response.status < 300) {
9171
- return response;
9172
- }
9173
- else {
9174
- throw response;
9175
- }
9176
- });
9177
- };
9178
- },
9179
- /**
9180
- *
9181
- * @summary Delete oauth config
8845
+ * @summary authorize with code
8846
+ * @param {CodeAuthorizationForm} body
9182
8847
  * @param {*} [options] Override http request option.
9183
8848
  * @throws {RequiredError}
9184
8849
  */
9185
- deleteOAuthConfig(options) {
9186
- const localVarFetchArgs = exports.OauthApiFetchParamCreator(configuration).deleteOAuthConfig(options);
8850
+ authorizeOpenIdConnect(body, options) {
8851
+ const localVarFetchArgs = exports.OIDCApiFetchParamCreator(configuration).authorizeOpenIdConnect(body, options);
9187
8852
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
9188
8853
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
9189
8854
  if (response.status >= 200 && response.status < 300) {
9190
- return response;
8855
+ return response.json();
9191
8856
  }
9192
8857
  else {
9193
8858
  throw response;
@@ -9197,12 +8862,12 @@ exports.OauthApiFp = function (configuration) {
9197
8862
  },
9198
8863
  /**
9199
8864
  *
9200
- * @summary Get oauth config
8865
+ * @summary get nonce
9201
8866
  * @param {*} [options] Override http request option.
9202
8867
  * @throws {RequiredError}
9203
8868
  */
9204
- getOAuthConfig(options) {
9205
- const localVarFetchArgs = exports.OauthApiFetchParamCreator(configuration).getOAuthConfig(options);
8869
+ getNonce(options) {
8870
+ const localVarFetchArgs = exports.OIDCApiFetchParamCreator(configuration).getNonce(options);
9206
8871
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
9207
8872
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
9208
8873
  if (response.status >= 200 && response.status < 300) {
@@ -9216,17 +8881,17 @@ exports.OauthApiFp = function (configuration) {
9216
8881
  },
9217
8882
  /**
9218
8883
  *
9219
- * @summary Patch oauth config
9220
- * @param {OauthConfigPatchForm} body
8884
+ * @summary unauthorized endpoint for org's oidc configuration
8885
+ * @param {string} orgId orgId
9221
8886
  * @param {*} [options] Override http request option.
9222
8887
  * @throws {RequiredError}
9223
8888
  */
9224
- patchOAuthConfig(body, options) {
9225
- const localVarFetchArgs = exports.OauthApiFetchParamCreator(configuration).patchOAuthConfig(body, options);
8889
+ getOpenIDConnectConfigUnauthorized(orgId, options) {
8890
+ const localVarFetchArgs = exports.OIDCApiFetchParamCreator(configuration).getOpenIDConnectConfigUnauthorized(orgId, options);
9226
8891
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
9227
8892
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
9228
8893
  if (response.status >= 200 && response.status < 300) {
9229
- return response;
8894
+ return response.json();
9230
8895
  }
9231
8896
  else {
9232
8897
  throw response;
@@ -9237,102 +8902,83 @@ exports.OauthApiFp = function (configuration) {
9237
8902
  };
9238
8903
  };
9239
8904
  /**
9240
- * OauthApi - factory interface
8905
+ * OIDCApi - factory interface
9241
8906
  * @export
9242
8907
  */
9243
- exports.OauthApiFactory = function (configuration, fetch, basePath) {
8908
+ exports.OIDCApiFactory = function (configuration, fetch, basePath) {
9244
8909
  return {
9245
8910
  /**
9246
8911
  *
9247
- * @summary Create oauth config
9248
- * @param {OauthConfigCreateForm} body
9249
- * @param {*} [options] Override http request option.
9250
- * @throws {RequiredError}
9251
- */
9252
- createOAuthConfig(body, options) {
9253
- return exports.OauthApiFp(configuration).createOAuthConfig(body, options)(fetch, basePath);
9254
- },
9255
- /**
9256
- *
9257
- * @summary Delete oauth config
8912
+ * @summary authorize with code
8913
+ * @param {CodeAuthorizationForm} body
9258
8914
  * @param {*} [options] Override http request option.
9259
8915
  * @throws {RequiredError}
9260
8916
  */
9261
- deleteOAuthConfig(options) {
9262
- return exports.OauthApiFp(configuration).deleteOAuthConfig(options)(fetch, basePath);
8917
+ authorizeOpenIdConnect(body, options) {
8918
+ return exports.OIDCApiFp(configuration).authorizeOpenIdConnect(body, options)(fetch, basePath);
9263
8919
  },
9264
8920
  /**
9265
8921
  *
9266
- * @summary Get oauth config
8922
+ * @summary get nonce
9267
8923
  * @param {*} [options] Override http request option.
9268
8924
  * @throws {RequiredError}
9269
8925
  */
9270
- getOAuthConfig(options) {
9271
- return exports.OauthApiFp(configuration).getOAuthConfig(options)(fetch, basePath);
8926
+ getNonce(options) {
8927
+ return exports.OIDCApiFp(configuration).getNonce(options)(fetch, basePath);
9272
8928
  },
9273
8929
  /**
9274
8930
  *
9275
- * @summary Patch oauth config
9276
- * @param {OauthConfigPatchForm} body
8931
+ * @summary unauthorized endpoint for org's oidc configuration
8932
+ * @param {string} orgId orgId
9277
8933
  * @param {*} [options] Override http request option.
9278
8934
  * @throws {RequiredError}
9279
8935
  */
9280
- patchOAuthConfig(body, options) {
9281
- return exports.OauthApiFp(configuration).patchOAuthConfig(body, options)(fetch, basePath);
8936
+ getOpenIDConnectConfigUnauthorized(orgId, options) {
8937
+ return exports.OIDCApiFp(configuration).getOpenIDConnectConfigUnauthorized(orgId, options)(fetch, basePath);
9282
8938
  },
9283
8939
  };
9284
8940
  };
9285
8941
  /**
9286
- * OauthApi - object-oriented interface
8942
+ * OIDCApi - object-oriented interface
9287
8943
  * @export
9288
- * @class OauthApi
8944
+ * @class OIDCApi
9289
8945
  * @extends {BaseAPI}
9290
8946
  */
9291
- class OauthApi extends BaseAPI {
9292
- /**
9293
- *
9294
- * @summary Create oauth config
9295
- * @param {OauthConfigCreateForm} body
9296
- * @param {*} [options] Override http request option.
9297
- * @throws {RequiredError}
9298
- * @memberof OauthApi
9299
- */
9300
- createOAuthConfig(body, options) {
9301
- return exports.OauthApiFp(this.configuration).createOAuthConfig(body, options)(this.fetch, this.basePath);
9302
- }
8947
+ class OIDCApi extends BaseAPI {
9303
8948
  /**
9304
8949
  *
9305
- * @summary Delete oauth config
8950
+ * @summary authorize with code
8951
+ * @param {CodeAuthorizationForm} body
9306
8952
  * @param {*} [options] Override http request option.
9307
8953
  * @throws {RequiredError}
9308
- * @memberof OauthApi
8954
+ * @memberof OIDCApi
9309
8955
  */
9310
- deleteOAuthConfig(options) {
9311
- return exports.OauthApiFp(this.configuration).deleteOAuthConfig(options)(this.fetch, this.basePath);
8956
+ authorizeOpenIdConnect(body, options) {
8957
+ return exports.OIDCApiFp(this.configuration).authorizeOpenIdConnect(body, options)(this.fetch, this.basePath);
9312
8958
  }
9313
8959
  /**
9314
8960
  *
9315
- * @summary Get oauth config
8961
+ * @summary get nonce
9316
8962
  * @param {*} [options] Override http request option.
9317
8963
  * @throws {RequiredError}
9318
- * @memberof OauthApi
8964
+ * @memberof OIDCApi
9319
8965
  */
9320
- getOAuthConfig(options) {
9321
- return exports.OauthApiFp(this.configuration).getOAuthConfig(options)(this.fetch, this.basePath);
8966
+ getNonce(options) {
8967
+ return exports.OIDCApiFp(this.configuration).getNonce(options)(this.fetch, this.basePath);
9322
8968
  }
9323
8969
  /**
9324
8970
  *
9325
- * @summary Patch oauth config
9326
- * @param {OauthConfigPatchForm} body
8971
+ * @summary unauthorized endpoint for org's oidc configuration
8972
+ * @param {string} orgId orgId
9327
8973
  * @param {*} [options] Override http request option.
9328
8974
  * @throws {RequiredError}
9329
- * @memberof OauthApi
8975
+ * @memberof OIDCApi
9330
8976
  */
9331
- patchOAuthConfig(body, options) {
9332
- return exports.OauthApiFp(this.configuration).patchOAuthConfig(body, options)(this.fetch, this.basePath);
8977
+ getOpenIDConnectConfigUnauthorized(orgId, options) {
8978
+ return exports.OIDCApiFp(this.configuration).getOpenIDConnectConfigUnauthorized(orgId, options)(this.fetch, this.basePath);
9333
8979
  }
9334
8980
  }
9335
- exports.OauthApi = OauthApi;
8981
+ exports.OIDCApi = OIDCApi;
9336
8982
  /**
9337
8983
  * OplAddressApi - fetch parameter creator
9338
8984
  * @export
@@ -12521,12 +12167,16 @@ exports.RolesApiFetchParamCreator = function (configuration) {
12521
12167
  /**
12522
12168
  *
12523
12169
  * @summary add permissions to role
12170
+ * @param {PermissionForm} body
12524
12171
  * @param {string} roleId
12525
- * @param {PermissionForm} [body]
12526
12172
  * @param {*} [options] Override http request option.
12527
12173
  * @throws {RequiredError}
12528
12174
  */
12529
- addPermissionsToRole(roleId, body, options = {}) {
12175
+ addPermissionsToRole(body, roleId, options = {}) {
12176
+ // verify required parameter 'body' is not null or undefined
12177
+ if (body === null || body === undefined) {
12178
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling addPermissionsToRole.');
12179
+ }
12530
12180
  // verify required parameter 'roleId' is not null or undefined
12531
12181
  if (roleId === null || roleId === undefined) {
12532
12182
  throw new RequiredError('roleId', 'Required parameter roleId was null or undefined when calling addPermissionsToRole.');
@@ -12559,11 +12209,15 @@ exports.RolesApiFetchParamCreator = function (configuration) {
12559
12209
  /**
12560
12210
  *
12561
12211
  * @summary create role
12562
- * @param {CreateRoleForm} [body]
12212
+ * @param {CreateRoleForm} body
12563
12213
  * @param {*} [options] Override http request option.
12564
12214
  * @throws {RequiredError}
12565
12215
  */
12566
12216
  createRole(body, options = {}) {
12217
+ // verify required parameter 'body' is not null or undefined
12218
+ if (body === null || body === undefined) {
12219
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createRole.');
12220
+ }
12567
12221
  const localVarPath = `/roles`;
12568
12222
  const localVarUrlObj = url.parse(localVarPath, true);
12569
12223
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
@@ -12591,12 +12245,16 @@ exports.RolesApiFetchParamCreator = function (configuration) {
12591
12245
  /**
12592
12246
  *
12593
12247
  * @summary delete permissions from role
12248
+ * @param {PermissionForm} body
12594
12249
  * @param {string} roleId
12595
- * @param {PermissionForm} [body]
12596
12250
  * @param {*} [options] Override http request option.
12597
12251
  * @throws {RequiredError}
12598
12252
  */
12599
- deletePermissionsFromRole(roleId, body, options = {}) {
12253
+ deletePermissionsFromRole(body, roleId, options = {}) {
12254
+ // verify required parameter 'body' is not null or undefined
12255
+ if (body === null || body === undefined) {
12256
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling deletePermissionsFromRole.');
12257
+ }
12600
12258
  // verify required parameter 'roleId' is not null or undefined
12601
12259
  if (roleId === null || roleId === undefined) {
12602
12260
  throw new RequiredError('roleId', 'Required parameter roleId was null or undefined when calling deletePermissionsFromRole.');
@@ -12725,12 +12383,16 @@ exports.RolesApiFetchParamCreator = function (configuration) {
12725
12383
  /**
12726
12384
  *
12727
12385
  * @summary update role
12386
+ * @param {UpdateRoleForm} body
12728
12387
  * @param {string} roleId
12729
- * @param {UpdateRoleForm} [body]
12730
12388
  * @param {*} [options] Override http request option.
12731
12389
  * @throws {RequiredError}
12732
12390
  */
12733
- updateRole(roleId, body, options = {}) {
12391
+ updateRole(body, roleId, options = {}) {
12392
+ // verify required parameter 'body' is not null or undefined
12393
+ if (body === null || body === undefined) {
12394
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling updateRole.');
12395
+ }
12734
12396
  // verify required parameter 'roleId' is not null or undefined
12735
12397
  if (roleId === null || roleId === undefined) {
12736
12398
  throw new RequiredError('roleId', 'Required parameter roleId was null or undefined when calling updateRole.');
@@ -12771,13 +12433,13 @@ exports.RolesApiFp = function (configuration) {
12771
12433
  /**
12772
12434
  *
12773
12435
  * @summary add permissions to role
12436
+ * @param {PermissionForm} body
12774
12437
  * @param {string} roleId
12775
- * @param {PermissionForm} [body]
12776
12438
  * @param {*} [options] Override http request option.
12777
12439
  * @throws {RequiredError}
12778
12440
  */
12779
- addPermissionsToRole(roleId, body, options) {
12780
- const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).addPermissionsToRole(roleId, body, options);
12441
+ addPermissionsToRole(body, roleId, options) {
12442
+ const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).addPermissionsToRole(body, roleId, options);
12781
12443
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12782
12444
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12783
12445
  if (response.status >= 200 && response.status < 300) {
@@ -12792,7 +12454,7 @@ exports.RolesApiFp = function (configuration) {
12792
12454
  /**
12793
12455
  *
12794
12456
  * @summary create role
12795
- * @param {CreateRoleForm} [body]
12457
+ * @param {CreateRoleForm} body
12796
12458
  * @param {*} [options] Override http request option.
12797
12459
  * @throws {RequiredError}
12798
12460
  */
@@ -12812,13 +12474,13 @@ exports.RolesApiFp = function (configuration) {
12812
12474
  /**
12813
12475
  *
12814
12476
  * @summary delete permissions from role
12477
+ * @param {PermissionForm} body
12815
12478
  * @param {string} roleId
12816
- * @param {PermissionForm} [body]
12817
12479
  * @param {*} [options] Override http request option.
12818
12480
  * @throws {RequiredError}
12819
12481
  */
12820
- deletePermissionsFromRole(roleId, body, options) {
12821
- const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).deletePermissionsFromRole(roleId, body, options);
12482
+ deletePermissionsFromRole(body, roleId, options) {
12483
+ const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).deletePermissionsFromRole(body, roleId, options);
12822
12484
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12823
12485
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12824
12486
  if (response.status >= 200 && response.status < 300) {
@@ -12892,13 +12554,13 @@ exports.RolesApiFp = function (configuration) {
12892
12554
  /**
12893
12555
  *
12894
12556
  * @summary update role
12557
+ * @param {UpdateRoleForm} body
12895
12558
  * @param {string} roleId
12896
- * @param {UpdateRoleForm} [body]
12897
12559
  * @param {*} [options] Override http request option.
12898
12560
  * @throws {RequiredError}
12899
12561
  */
12900
- updateRole(roleId, body, options) {
12901
- const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).updateRole(roleId, body, options);
12562
+ updateRole(body, roleId, options) {
12563
+ const localVarFetchArgs = exports.RolesApiFetchParamCreator(configuration).updateRole(body, roleId, options);
12902
12564
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
12903
12565
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
12904
12566
  if (response.status >= 200 && response.status < 300) {
@@ -12921,18 +12583,18 @@ exports.RolesApiFactory = function (configuration, fetch, basePath) {
12921
12583
  /**
12922
12584
  *
12923
12585
  * @summary add permissions to role
12586
+ * @param {PermissionForm} body
12924
12587
  * @param {string} roleId
12925
- * @param {PermissionForm} [body]
12926
12588
  * @param {*} [options] Override http request option.
12927
12589
  * @throws {RequiredError}
12928
12590
  */
12929
- addPermissionsToRole(roleId, body, options) {
12930
- return exports.RolesApiFp(configuration).addPermissionsToRole(roleId, body, options)(fetch, basePath);
12591
+ addPermissionsToRole(body, roleId, options) {
12592
+ return exports.RolesApiFp(configuration).addPermissionsToRole(body, roleId, options)(fetch, basePath);
12931
12593
  },
12932
12594
  /**
12933
12595
  *
12934
12596
  * @summary create role
12935
- * @param {CreateRoleForm} [body]
12597
+ * @param {CreateRoleForm} body
12936
12598
  * @param {*} [options] Override http request option.
12937
12599
  * @throws {RequiredError}
12938
12600
  */
@@ -12942,13 +12604,13 @@ exports.RolesApiFactory = function (configuration, fetch, basePath) {
12942
12604
  /**
12943
12605
  *
12944
12606
  * @summary delete permissions from role
12607
+ * @param {PermissionForm} body
12945
12608
  * @param {string} roleId
12946
- * @param {PermissionForm} [body]
12947
12609
  * @param {*} [options] Override http request option.
12948
12610
  * @throws {RequiredError}
12949
12611
  */
12950
- deletePermissionsFromRole(roleId, body, options) {
12951
- return exports.RolesApiFp(configuration).deletePermissionsFromRole(roleId, body, options)(fetch, basePath);
12612
+ deletePermissionsFromRole(body, roleId, options) {
12613
+ return exports.RolesApiFp(configuration).deletePermissionsFromRole(body, roleId, options)(fetch, basePath);
12952
12614
  },
12953
12615
  /**
12954
12616
  *
@@ -12982,13 +12644,13 @@ exports.RolesApiFactory = function (configuration, fetch, basePath) {
12982
12644
  /**
12983
12645
  *
12984
12646
  * @summary update role
12647
+ * @param {UpdateRoleForm} body
12985
12648
  * @param {string} roleId
12986
- * @param {UpdateRoleForm} [body]
12987
12649
  * @param {*} [options] Override http request option.
12988
12650
  * @throws {RequiredError}
12989
12651
  */
12990
- updateRole(roleId, body, options) {
12991
- return exports.RolesApiFp(configuration).updateRole(roleId, body, options)(fetch, basePath);
12652
+ updateRole(body, roleId, options) {
12653
+ return exports.RolesApiFp(configuration).updateRole(body, roleId, options)(fetch, basePath);
12992
12654
  },
12993
12655
  };
12994
12656
  };
@@ -13002,19 +12664,19 @@ class RolesApi extends BaseAPI {
13002
12664
  /**
13003
12665
  *
13004
12666
  * @summary add permissions to role
12667
+ * @param {PermissionForm} body
13005
12668
  * @param {string} roleId
13006
- * @param {PermissionForm} [body]
13007
12669
  * @param {*} [options] Override http request option.
13008
12670
  * @throws {RequiredError}
13009
12671
  * @memberof RolesApi
13010
12672
  */
13011
- addPermissionsToRole(roleId, body, options) {
13012
- return exports.RolesApiFp(this.configuration).addPermissionsToRole(roleId, body, options)(this.fetch, this.basePath);
12673
+ addPermissionsToRole(body, roleId, options) {
12674
+ return exports.RolesApiFp(this.configuration).addPermissionsToRole(body, roleId, options)(this.fetch, this.basePath);
13013
12675
  }
13014
12676
  /**
13015
12677
  *
13016
12678
  * @summary create role
13017
- * @param {CreateRoleForm} [body]
12679
+ * @param {CreateRoleForm} body
13018
12680
  * @param {*} [options] Override http request option.
13019
12681
  * @throws {RequiredError}
13020
12682
  * @memberof RolesApi
@@ -13025,14 +12687,14 @@ class RolesApi extends BaseAPI {
13025
12687
  /**
13026
12688
  *
13027
12689
  * @summary delete permissions from role
12690
+ * @param {PermissionForm} body
13028
12691
  * @param {string} roleId
13029
- * @param {PermissionForm} [body]
13030
12692
  * @param {*} [options] Override http request option.
13031
12693
  * @throws {RequiredError}
13032
12694
  * @memberof RolesApi
13033
12695
  */
13034
- deletePermissionsFromRole(roleId, body, options) {
13035
- return exports.RolesApiFp(this.configuration).deletePermissionsFromRole(roleId, body, options)(this.fetch, this.basePath);
12696
+ deletePermissionsFromRole(body, roleId, options) {
12697
+ return exports.RolesApiFp(this.configuration).deletePermissionsFromRole(body, roleId, options)(this.fetch, this.basePath);
13036
12698
  }
13037
12699
  /**
13038
12700
  *
@@ -13069,14 +12731,14 @@ class RolesApi extends BaseAPI {
13069
12731
  /**
13070
12732
  *
13071
12733
  * @summary update role
12734
+ * @param {UpdateRoleForm} body
13072
12735
  * @param {string} roleId
13073
- * @param {UpdateRoleForm} [body]
13074
12736
  * @param {*} [options] Override http request option.
13075
12737
  * @throws {RequiredError}
13076
12738
  * @memberof RolesApi
13077
12739
  */
13078
- updateRole(roleId, body, options) {
13079
- return exports.RolesApiFp(this.configuration).updateRole(roleId, body, options)(this.fetch, this.basePath);
12740
+ updateRole(body, roleId, options) {
12741
+ return exports.RolesApiFp(this.configuration).updateRole(body, roleId, options)(this.fetch, this.basePath);
13080
12742
  }
13081
12743
  }
13082
12744
  exports.RolesApi = RolesApi;
@@ -13340,6 +13002,42 @@ exports.RoomsApiFetchParamCreator = function (configuration) {
13340
13002
  options: localVarRequestOptions,
13341
13003
  };
13342
13004
  },
13005
+ /**
13006
+ *
13007
+ * @summary Search for a room by lead query.
13008
+ * @param {string} query
13009
+ * @param {*} [options] Override http request option.
13010
+ * @throws {RequiredError}
13011
+ */
13012
+ getInboxEntriesByQuery(query, options = {}) {
13013
+ // verify required parameter 'query' is not null or undefined
13014
+ if (query === null || query === undefined) {
13015
+ throw new RequiredError('query', 'Required parameter query was null or undefined when calling getInboxEntriesByQuery.');
13016
+ }
13017
+ const localVarPath = `/rooms/search`;
13018
+ const localVarUrlObj = url.parse(localVarPath, true);
13019
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
13020
+ const localVarHeaderParameter = {};
13021
+ const localVarQueryParameter = {};
13022
+ // authentication apiKey required
13023
+ if (configuration && configuration.apiKey) {
13024
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
13025
+ ? configuration.apiKey("X-Api-Key")
13026
+ : configuration.apiKey;
13027
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
13028
+ }
13029
+ if (query !== undefined) {
13030
+ localVarQueryParameter['query'] = query;
13031
+ }
13032
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
13033
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
13034
+ delete localVarUrlObj.search;
13035
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
13036
+ return {
13037
+ url: url.format(localVarUrlObj),
13038
+ options: localVarRequestOptions,
13039
+ };
13040
+ },
13343
13041
  /**
13344
13042
  *
13345
13043
  * @summary Get ids of agents not following the room
@@ -13419,7 +13117,7 @@ exports.RoomsApiFetchParamCreator = function (configuration) {
13419
13117
  /**
13420
13118
  *
13421
13119
  * @summary Set conversation status
13422
- * @param {ConversationStatus} body
13120
+ * @param {ConversationStatusForm} body
13423
13121
  * @param {string} roomId The ID of the room of the conversation.
13424
13122
  * @param {*} [options] Override http request option.
13425
13123
  * @throws {RequiredError}
@@ -13451,7 +13149,7 @@ exports.RoomsApiFetchParamCreator = function (configuration) {
13451
13149
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
13452
13150
  delete localVarUrlObj.search;
13453
13151
  localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
13454
- const needsSerialization = ("ConversationStatus" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
13152
+ const needsSerialization = ("ConversationStatusForm" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
13455
13153
  localVarRequestOptions.body = needsSerialization ? JSON.stringify(body || {}) : (body || "");
13456
13154
  return {
13457
13155
  url: url.format(localVarUrlObj),
@@ -13710,6 +13408,26 @@ exports.RoomsApiFp = function (configuration) {
13710
13408
  });
13711
13409
  };
13712
13410
  },
13411
+ /**
13412
+ *
13413
+ * @summary Search for a room by lead query.
13414
+ * @param {string} query
13415
+ * @param {*} [options] Override http request option.
13416
+ * @throws {RequiredError}
13417
+ */
13418
+ getInboxEntriesByQuery(query, options) {
13419
+ const localVarFetchArgs = exports.RoomsApiFetchParamCreator(configuration).getInboxEntriesByQuery(query, options);
13420
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
13421
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
13422
+ if (response.status >= 200 && response.status < 300) {
13423
+ return response.json();
13424
+ }
13425
+ else {
13426
+ throw response;
13427
+ }
13428
+ });
13429
+ };
13430
+ },
13713
13431
  /**
13714
13432
  *
13715
13433
  * @summary Get ids of agents not following the room
@@ -13754,7 +13472,7 @@ exports.RoomsApiFp = function (configuration) {
13754
13472
  /**
13755
13473
  *
13756
13474
  * @summary Set conversation status
13757
- * @param {ConversationStatus} body
13475
+ * @param {ConversationStatusForm} body
13758
13476
  * @param {string} roomId The ID of the room of the conversation.
13759
13477
  * @param {*} [options] Override http request option.
13760
13478
  * @throws {RequiredError}
@@ -13912,6 +13630,16 @@ exports.RoomsApiFactory = function (configuration, fetch, basePath) {
13912
13630
  getHistory(roomId, options) {
13913
13631
  return exports.RoomsApiFp(configuration).getHistory(roomId, options)(fetch, basePath);
13914
13632
  },
13633
+ /**
13634
+ *
13635
+ * @summary Search for a room by lead query.
13636
+ * @param {string} query
13637
+ * @param {*} [options] Override http request option.
13638
+ * @throws {RequiredError}
13639
+ */
13640
+ getInboxEntriesByQuery(query, options) {
13641
+ return exports.RoomsApiFp(configuration).getInboxEntriesByQuery(query, options)(fetch, basePath);
13642
+ },
13915
13643
  /**
13916
13644
  *
13917
13645
  * @summary Get ids of agents not following the room
@@ -13936,7 +13664,7 @@ exports.RoomsApiFactory = function (configuration, fetch, basePath) {
13936
13664
  /**
13937
13665
  *
13938
13666
  * @summary Set conversation status
13939
- * @param {ConversationStatus} body
13667
+ * @param {ConversationStatusForm} body
13940
13668
  * @param {string} roomId The ID of the room of the conversation.
13941
13669
  * @param {*} [options] Override http request option.
13942
13670
  * @throws {RequiredError}
@@ -14062,6 +13790,17 @@ class RoomsApi extends BaseAPI {
14062
13790
  getHistory(roomId, options) {
14063
13791
  return exports.RoomsApiFp(this.configuration).getHistory(roomId, options)(this.fetch, this.basePath);
14064
13792
  }
13793
+ /**
13794
+ *
13795
+ * @summary Search for a room by lead query.
13796
+ * @param {string} query
13797
+ * @param {*} [options] Override http request option.
13798
+ * @throws {RequiredError}
13799
+ * @memberof RoomsApi
13800
+ */
13801
+ getInboxEntriesByQuery(query, options) {
13802
+ return exports.RoomsApiFp(this.configuration).getInboxEntriesByQuery(query, options)(this.fetch, this.basePath);
13803
+ }
14065
13804
  /**
14066
13805
  *
14067
13806
  * @summary Get ids of agents not following the room
@@ -14088,7 +13827,7 @@ class RoomsApi extends BaseAPI {
14088
13827
  /**
14089
13828
  *
14090
13829
  * @summary Set conversation status
14091
- * @param {ConversationStatus} body
13830
+ * @param {ConversationStatusForm} body
14092
13831
  * @param {string} roomId The ID of the room of the conversation.
14093
13832
  * @param {*} [options] Override http request option.
14094
13833
  * @throws {RequiredError}
@@ -14208,6 +13947,13 @@ exports.SessionApiFetchParamCreator = function (configuration) {
14208
13947
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
14209
13948
  const localVarHeaderParameter = {};
14210
13949
  const localVarQueryParameter = {};
13950
+ // authentication cookieAuth required
13951
+ if (configuration && configuration.apiKey) {
13952
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
13953
+ ? configuration.apiKey("ratel-spinner")
13954
+ : configuration.apiKey;
13955
+ localVarQueryParameter["ratel-spinner"] = localVarApiKeyValue;
13956
+ }
14211
13957
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
14212
13958
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
14213
13959
  delete localVarUrlObj.search;
@@ -14220,11 +13966,15 @@ exports.SessionApiFetchParamCreator = function (configuration) {
14220
13966
  /**
14221
13967
  *
14222
13968
  * @summary Login user. Create session.
14223
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
13969
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14224
13970
  * @param {*} [options] Override http request option.
14225
13971
  * @throws {RequiredError}
14226
13972
  */
14227
13973
  login(body, options = {}) {
13974
+ // verify required parameter 'body' is not null or undefined
13975
+ if (body === null || body === undefined) {
13976
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling login.');
13977
+ }
14228
13978
  const localVarPath = `/session`;
14229
13979
  const localVarUrlObj = url.parse(localVarPath, true);
14230
13980
  const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
@@ -14391,7 +14141,7 @@ exports.SessionApiFp = function (configuration) {
14391
14141
  /**
14392
14142
  *
14393
14143
  * @summary Login user. Create session.
14394
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14144
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14395
14145
  * @param {*} [options] Override http request option.
14396
14146
  * @throws {RequiredError}
14397
14147
  */
@@ -14507,7 +14257,7 @@ exports.SessionApiFactory = function (configuration, fetch, basePath) {
14507
14257
  /**
14508
14258
  *
14509
14259
  * @summary Login user. Create session.
14510
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14260
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14511
14261
  * @param {*} [options] Override http request option.
14512
14262
  * @throws {RequiredError}
14513
14263
  */
@@ -14587,7 +14337,7 @@ class SessionApi extends BaseAPI {
14587
14337
  /**
14588
14338
  *
14589
14339
  * @summary Login user. Create session.
14590
- * @param {LoginCredentialsOrTokenForm} [body] Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14340
+ * @param {LoginCredentialsOrTokenForm} body Valid parameters are either token or credentials (email and password). Unless provided in mentioned form, Bad Request will be returned
14591
14341
  * @param {*} [options] Override http request option.
14592
14342
  * @throws {RequiredError}
14593
14343
  * @memberof SessionApi
@@ -14831,6 +14581,34 @@ exports.TagGroupsApiFetchParamCreator = function (configuration) {
14831
14581
  options: localVarRequestOptions,
14832
14582
  };
14833
14583
  },
14584
+ /**
14585
+ *
14586
+ * @summary endpoint to retrieve tag groups
14587
+ * @param {*} [options] Override http request option.
14588
+ * @throws {RequiredError}
14589
+ */
14590
+ getTagGroups(options = {}) {
14591
+ const localVarPath = `/tag-groups`;
14592
+ const localVarUrlObj = url.parse(localVarPath, true);
14593
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
14594
+ const localVarHeaderParameter = {};
14595
+ const localVarQueryParameter = {};
14596
+ // authentication apiKey required
14597
+ if (configuration && configuration.apiKey) {
14598
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
14599
+ ? configuration.apiKey("X-Api-Key")
14600
+ : configuration.apiKey;
14601
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
14602
+ }
14603
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
14604
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
14605
+ delete localVarUrlObj.search;
14606
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
14607
+ return {
14608
+ url: url.format(localVarUrlObj),
14609
+ options: localVarRequestOptions,
14610
+ };
14611
+ },
14834
14612
  /**
14835
14613
  *
14836
14614
  * @summary endpoint to update tag group
@@ -14977,6 +14755,25 @@ exports.TagGroupsApiFp = function (configuration) {
14977
14755
  });
14978
14756
  };
14979
14757
  },
14758
+ /**
14759
+ *
14760
+ * @summary endpoint to retrieve tag groups
14761
+ * @param {*} [options] Override http request option.
14762
+ * @throws {RequiredError}
14763
+ */
14764
+ getTagGroups(options) {
14765
+ const localVarFetchArgs = exports.TagGroupsApiFetchParamCreator(configuration).getTagGroups(options);
14766
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
14767
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
14768
+ if (response.status >= 200 && response.status < 300) {
14769
+ return response.json();
14770
+ }
14771
+ else {
14772
+ throw response;
14773
+ }
14774
+ });
14775
+ };
14776
+ },
14980
14777
  /**
14981
14778
  *
14982
14779
  * @summary endpoint to update tag group
@@ -15056,6 +14853,15 @@ exports.TagGroupsApiFactory = function (configuration, fetch, basePath) {
15056
14853
  getTagGroup(id, options) {
15057
14854
  return exports.TagGroupsApiFp(configuration).getTagGroup(id, options)(fetch, basePath);
15058
14855
  },
14856
+ /**
14857
+ *
14858
+ * @summary endpoint to retrieve tag groups
14859
+ * @param {*} [options] Override http request option.
14860
+ * @throws {RequiredError}
14861
+ */
14862
+ getTagGroups(options) {
14863
+ return exports.TagGroupsApiFp(configuration).getTagGroups(options)(fetch, basePath);
14864
+ },
15059
14865
  /**
15060
14866
  *
15061
14867
  * @summary endpoint to update tag group
@@ -15119,6 +14925,16 @@ class TagGroupsApi extends BaseAPI {
15119
14925
  getTagGroup(id, options) {
15120
14926
  return exports.TagGroupsApiFp(this.configuration).getTagGroup(id, options)(this.fetch, this.basePath);
15121
14927
  }
14928
+ /**
14929
+ *
14930
+ * @summary endpoint to retrieve tag groups
14931
+ * @param {*} [options] Override http request option.
14932
+ * @throws {RequiredError}
14933
+ * @memberof TagGroupsApi
14934
+ */
14935
+ getTagGroups(options) {
14936
+ return exports.TagGroupsApiFp(this.configuration).getTagGroups(options)(this.fetch, this.basePath);
14937
+ }
15122
14938
  /**
15123
14939
  *
15124
14940
  * @summary endpoint to update tag group
@@ -15188,20 +15004,48 @@ exports.TagMappingsApiFetchParamCreator = function (configuration) {
15188
15004
  },
15189
15005
  /**
15190
15006
  *
15191
- * @summary authorized endpoint to delete tag mapping
15192
- * @param {string} id primary key of record which should be deleted
15007
+ * @summary authorized endpoint to delete tag mapping
15008
+ * @param {string} id primary key of record which should be deleted
15009
+ * @param {*} [options] Override http request option.
15010
+ * @throws {RequiredError}
15011
+ */
15012
+ deleteTagMapping(id, options = {}) {
15013
+ // verify required parameter 'id' is not null or undefined
15014
+ if (id === null || id === undefined) {
15015
+ throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteTagMapping.');
15016
+ }
15017
+ const localVarPath = `/tag-mappings/{id}`
15018
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15019
+ const localVarUrlObj = url.parse(localVarPath, true);
15020
+ const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
15021
+ const localVarHeaderParameter = {};
15022
+ const localVarQueryParameter = {};
15023
+ // authentication apiKey required
15024
+ if (configuration && configuration.apiKey) {
15025
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
15026
+ ? configuration.apiKey("X-Api-Key")
15027
+ : configuration.apiKey;
15028
+ localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
15029
+ }
15030
+ localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
15031
+ // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
15032
+ delete localVarUrlObj.search;
15033
+ localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
15034
+ return {
15035
+ url: url.format(localVarUrlObj),
15036
+ options: localVarRequestOptions,
15037
+ };
15038
+ },
15039
+ /**
15040
+ *
15041
+ * @summary secured endpoint to retrieve data about url-tag mappings
15193
15042
  * @param {*} [options] Override http request option.
15194
15043
  * @throws {RequiredError}
15195
15044
  */
15196
- deleteTagMapping(id, options = {}) {
15197
- // verify required parameter 'id' is not null or undefined
15198
- if (id === null || id === undefined) {
15199
- throw new RequiredError('id', 'Required parameter id was null or undefined when calling deleteTagMapping.');
15200
- }
15201
- const localVarPath = `/tag-mappings/{id}`
15202
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15045
+ getTagMappings(options = {}) {
15046
+ const localVarPath = `/tag-mappings`;
15203
15047
  const localVarUrlObj = url.parse(localVarPath, true);
15204
- const localVarRequestOptions = Object.assign({ method: 'DELETE' }, options);
15048
+ const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
15205
15049
  const localVarHeaderParameter = {};
15206
15050
  const localVarQueryParameter = {};
15207
15051
  // authentication apiKey required
@@ -15310,6 +15154,25 @@ exports.TagMappingsApiFp = function (configuration) {
15310
15154
  });
15311
15155
  };
15312
15156
  },
15157
+ /**
15158
+ *
15159
+ * @summary secured endpoint to retrieve data about url-tag mappings
15160
+ * @param {*} [options] Override http request option.
15161
+ * @throws {RequiredError}
15162
+ */
15163
+ getTagMappings(options) {
15164
+ const localVarFetchArgs = exports.TagMappingsApiFetchParamCreator(configuration).getTagMappings(options);
15165
+ return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
15166
+ return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
15167
+ if (response.status >= 200 && response.status < 300) {
15168
+ return response.json();
15169
+ }
15170
+ else {
15171
+ throw response;
15172
+ }
15173
+ });
15174
+ };
15175
+ },
15313
15176
  /**
15314
15177
  *
15315
15178
  * @summary authorized endpoint to update tag mapping
@@ -15359,6 +15222,15 @@ exports.TagMappingsApiFactory = function (configuration, fetch, basePath) {
15359
15222
  deleteTagMapping(id, options) {
15360
15223
  return exports.TagMappingsApiFp(configuration).deleteTagMapping(id, options)(fetch, basePath);
15361
15224
  },
15225
+ /**
15226
+ *
15227
+ * @summary secured endpoint to retrieve data about url-tag mappings
15228
+ * @param {*} [options] Override http request option.
15229
+ * @throws {RequiredError}
15230
+ */
15231
+ getTagMappings(options) {
15232
+ return exports.TagMappingsApiFp(configuration).getTagMappings(options)(fetch, basePath);
15233
+ },
15362
15234
  /**
15363
15235
  *
15364
15236
  * @summary authorized endpoint to update tag mapping
@@ -15401,6 +15273,16 @@ class TagMappingsApi extends BaseAPI {
15401
15273
  deleteTagMapping(id, options) {
15402
15274
  return exports.TagMappingsApiFp(this.configuration).deleteTagMapping(id, options)(this.fetch, this.basePath);
15403
15275
  }
15276
+ /**
15277
+ *
15278
+ * @summary secured endpoint to retrieve data about url-tag mappings
15279
+ * @param {*} [options] Override http request option.
15280
+ * @throws {RequiredError}
15281
+ * @memberof TagMappingsApi
15282
+ */
15283
+ getTagMappings(options) {
15284
+ return exports.TagMappingsApiFp(this.configuration).getTagMappings(options)(this.fetch, this.basePath);
15285
+ }
15404
15286
  /**
15405
15287
  *
15406
15288
  * @summary authorized endpoint to update tag mapping
@@ -15491,62 +15373,6 @@ exports.TagsApiFetchParamCreator = function (configuration) {
15491
15373
  options: localVarRequestOptions,
15492
15374
  };
15493
15375
  },
15494
- /**
15495
- *
15496
- * @summary endpoint to retrieve tag groups
15497
- * @param {*} [options] Override http request option.
15498
- * @throws {RequiredError}
15499
- */
15500
- getTagGroups(options = {}) {
15501
- const localVarPath = `/tag-groups`;
15502
- const localVarUrlObj = url.parse(localVarPath, true);
15503
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
15504
- const localVarHeaderParameter = {};
15505
- const localVarQueryParameter = {};
15506
- // authentication apiKey required
15507
- if (configuration && configuration.apiKey) {
15508
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
15509
- ? configuration.apiKey("X-Api-Key")
15510
- : configuration.apiKey;
15511
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
15512
- }
15513
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
15514
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
15515
- delete localVarUrlObj.search;
15516
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
15517
- return {
15518
- url: url.format(localVarUrlObj),
15519
- options: localVarRequestOptions,
15520
- };
15521
- },
15522
- /**
15523
- *
15524
- * @summary secured endpoint to retrieve data about url-tag mappings
15525
- * @param {*} [options] Override http request option.
15526
- * @throws {RequiredError}
15527
- */
15528
- getTagMappings(options = {}) {
15529
- const localVarPath = `/tag-mappings`;
15530
- const localVarUrlObj = url.parse(localVarPath, true);
15531
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
15532
- const localVarHeaderParameter = {};
15533
- const localVarQueryParameter = {};
15534
- // authentication apiKey required
15535
- if (configuration && configuration.apiKey) {
15536
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
15537
- ? configuration.apiKey("X-Api-Key")
15538
- : configuration.apiKey;
15539
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
15540
- }
15541
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
15542
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
15543
- delete localVarUrlObj.search;
15544
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
15545
- return {
15546
- url: url.format(localVarUrlObj),
15547
- options: localVarRequestOptions,
15548
- };
15549
- },
15550
15376
  /**
15551
15377
  *
15552
15378
  * @summary secured endpoint to retrieve tags
@@ -15665,44 +15491,6 @@ exports.TagsApiFp = function (configuration) {
15665
15491
  });
15666
15492
  };
15667
15493
  },
15668
- /**
15669
- *
15670
- * @summary endpoint to retrieve tag groups
15671
- * @param {*} [options] Override http request option.
15672
- * @throws {RequiredError}
15673
- */
15674
- getTagGroups(options) {
15675
- const localVarFetchArgs = exports.TagsApiFetchParamCreator(configuration).getTagGroups(options);
15676
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
15677
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
15678
- if (response.status >= 200 && response.status < 300) {
15679
- return response.json();
15680
- }
15681
- else {
15682
- throw response;
15683
- }
15684
- });
15685
- };
15686
- },
15687
- /**
15688
- *
15689
- * @summary secured endpoint to retrieve data about url-tag mappings
15690
- * @param {*} [options] Override http request option.
15691
- * @throws {RequiredError}
15692
- */
15693
- getTagMappings(options) {
15694
- const localVarFetchArgs = exports.TagsApiFetchParamCreator(configuration).getTagMappings(options);
15695
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
15696
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
15697
- if (response.status >= 200 && response.status < 300) {
15698
- return response.json();
15699
- }
15700
- else {
15701
- throw response;
15702
- }
15703
- });
15704
- };
15705
- },
15706
15494
  /**
15707
15495
  *
15708
15496
  * @summary secured endpoint to retrieve tags
@@ -15771,24 +15559,6 @@ exports.TagsApiFactory = function (configuration, fetch, basePath) {
15771
15559
  deleteTag(id, options) {
15772
15560
  return exports.TagsApiFp(configuration).deleteTag(id, options)(fetch, basePath);
15773
15561
  },
15774
- /**
15775
- *
15776
- * @summary endpoint to retrieve tag groups
15777
- * @param {*} [options] Override http request option.
15778
- * @throws {RequiredError}
15779
- */
15780
- getTagGroups(options) {
15781
- return exports.TagsApiFp(configuration).getTagGroups(options)(fetch, basePath);
15782
- },
15783
- /**
15784
- *
15785
- * @summary secured endpoint to retrieve data about url-tag mappings
15786
- * @param {*} [options] Override http request option.
15787
- * @throws {RequiredError}
15788
- */
15789
- getTagMappings(options) {
15790
- return exports.TagsApiFp(configuration).getTagMappings(options)(fetch, basePath);
15791
- },
15792
15562
  /**
15793
15563
  *
15794
15564
  * @summary secured endpoint to retrieve tags
@@ -15840,26 +15610,6 @@ class TagsApi extends BaseAPI {
15840
15610
  deleteTag(id, options) {
15841
15611
  return exports.TagsApiFp(this.configuration).deleteTag(id, options)(this.fetch, this.basePath);
15842
15612
  }
15843
- /**
15844
- *
15845
- * @summary endpoint to retrieve tag groups
15846
- * @param {*} [options] Override http request option.
15847
- * @throws {RequiredError}
15848
- * @memberof TagsApi
15849
- */
15850
- getTagGroups(options) {
15851
- return exports.TagsApiFp(this.configuration).getTagGroups(options)(this.fetch, this.basePath);
15852
- }
15853
- /**
15854
- *
15855
- * @summary secured endpoint to retrieve data about url-tag mappings
15856
- * @param {*} [options] Override http request option.
15857
- * @throws {RequiredError}
15858
- * @memberof TagsApi
15859
- */
15860
- getTagMappings(options) {
15861
- return exports.TagsApiFp(this.configuration).getTagMappings(options)(this.fetch, this.basePath);
15862
- }
15863
15613
  /**
15864
15614
  *
15865
15615
  * @summary secured endpoint to retrieve tags
@@ -17102,42 +16852,6 @@ exports.UsersApiFetchParamCreator = function (configuration) {
17102
16852
  options: localVarRequestOptions,
17103
16853
  };
17104
16854
  },
17105
- /**
17106
- *
17107
- * @summary Search for a room by lead query.
17108
- * @param {string} query
17109
- * @param {*} [options] Override http request option.
17110
- * @throws {RequiredError}
17111
- */
17112
- getInboxEntriesByQuery(query, options = {}) {
17113
- // verify required parameter 'query' is not null or undefined
17114
- if (query === null || query === undefined) {
17115
- throw new RequiredError('query', 'Required parameter query was null or undefined when calling getInboxEntriesByQuery.');
17116
- }
17117
- const localVarPath = `/rooms/search`;
17118
- const localVarUrlObj = url.parse(localVarPath, true);
17119
- const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
17120
- const localVarHeaderParameter = {};
17121
- const localVarQueryParameter = {};
17122
- // authentication apiKey required
17123
- if (configuration && configuration.apiKey) {
17124
- const localVarApiKeyValue = typeof configuration.apiKey === 'function'
17125
- ? configuration.apiKey("X-Api-Key")
17126
- : configuration.apiKey;
17127
- localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
17128
- }
17129
- if (query !== undefined) {
17130
- localVarQueryParameter['query'] = query;
17131
- }
17132
- localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
17133
- // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
17134
- delete localVarUrlObj.search;
17135
- localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
17136
- return {
17137
- url: url.format(localVarUrlObj),
17138
- options: localVarRequestOptions,
17139
- };
17140
- },
17141
16855
  /**
17142
16856
  *
17143
16857
  * @summary Get limited adviser profile.
@@ -18709,26 +18423,6 @@ exports.UsersApiFp = function (configuration) {
18709
18423
  });
18710
18424
  };
18711
18425
  },
18712
- /**
18713
- *
18714
- * @summary Search for a room by lead query.
18715
- * @param {string} query
18716
- * @param {*} [options] Override http request option.
18717
- * @throws {RequiredError}
18718
- */
18719
- getInboxEntriesByQuery(query, options) {
18720
- const localVarFetchArgs = exports.UsersApiFetchParamCreator(configuration).getInboxEntriesByQuery(query, options);
18721
- return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
18722
- return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
18723
- if (response.status >= 200 && response.status < 300) {
18724
- return response.json();
18725
- }
18726
- else {
18727
- throw response;
18728
- }
18729
- });
18730
- };
18731
- },
18732
18426
  /**
18733
18427
  *
18734
18428
  * @summary Get limited adviser profile.
@@ -19573,16 +19267,6 @@ exports.UsersApiFactory = function (configuration, fetch, basePath) {
19573
19267
  getGuestProfileByApiKey(orgId, options) {
19574
19268
  return exports.UsersApiFp(configuration).getGuestProfileByApiKey(orgId, options)(fetch, basePath);
19575
19269
  },
19576
- /**
19577
- *
19578
- * @summary Search for a room by lead query.
19579
- * @param {string} query
19580
- * @param {*} [options] Override http request option.
19581
- * @throws {RequiredError}
19582
- */
19583
- getInboxEntriesByQuery(query, options) {
19584
- return exports.UsersApiFp(configuration).getInboxEntriesByQuery(query, options)(fetch, basePath);
19585
- },
19586
19270
  /**
19587
19271
  *
19588
19272
  * @summary Get limited adviser profile.
@@ -20139,17 +19823,6 @@ class UsersApi extends BaseAPI {
20139
19823
  getGuestProfileByApiKey(orgId, options) {
20140
19824
  return exports.UsersApiFp(this.configuration).getGuestProfileByApiKey(orgId, options)(this.fetch, this.basePath);
20141
19825
  }
20142
- /**
20143
- *
20144
- * @summary Search for a room by lead query.
20145
- * @param {string} query
20146
- * @param {*} [options] Override http request option.
20147
- * @throws {RequiredError}
20148
- * @memberof UsersApi
20149
- */
20150
- getInboxEntriesByQuery(query, options) {
20151
- return exports.UsersApiFp(this.configuration).getInboxEntriesByQuery(query, options)(this.fetch, this.basePath);
20152
- }
20153
19826
  /**
20154
19827
  *
20155
19828
  * @summary Get limited adviser profile.
@@ -20689,12 +20362,16 @@ exports.WidgetsFormsSubmissionsApiFetchParamCreator = function (configuration) {
20689
20362
  /**
20690
20363
  *
20691
20364
  * @summary create form for room
20365
+ * @param {AddWidgetForm} body
20692
20366
  * @param {string} id
20693
- * @param {AddWidgetForm} [body]
20694
20367
  * @param {*} [options] Override http request option.
20695
20368
  * @throws {RequiredError}
20696
20369
  */
20697
- createWidgetFormForRoomId(id, body, options = {}) {
20370
+ createWidgetFormForRoomId(body, id, options = {}) {
20371
+ // verify required parameter 'body' is not null or undefined
20372
+ if (body === null || body === undefined) {
20373
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling createWidgetFormForRoomId.');
20374
+ }
20698
20375
  // verify required parameter 'id' is not null or undefined
20699
20376
  if (id === null || id === undefined) {
20700
20377
  throw new RequiredError('id', 'Required parameter id was null or undefined when calling createWidgetFormForRoomId.');
@@ -20761,12 +20438,16 @@ exports.WidgetsFormsSubmissionsApiFetchParamCreator = function (configuration) {
20761
20438
  /**
20762
20439
  *
20763
20440
  * @summary submit form
20441
+ * @param {SubmitWidgetForm} body
20764
20442
  * @param {string} formId
20765
- * @param {SubmitWidgetForm} [body]
20766
20443
  * @param {*} [options] Override http request option.
20767
20444
  * @throws {RequiredError}
20768
20445
  */
20769
- submitWidgetForm(formId, body, options = {}) {
20446
+ submitWidgetForm(body, formId, options = {}) {
20447
+ // verify required parameter 'body' is not null or undefined
20448
+ if (body === null || body === undefined) {
20449
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling submitWidgetForm.');
20450
+ }
20770
20451
  // verify required parameter 'formId' is not null or undefined
20771
20452
  if (formId === null || formId === undefined) {
20772
20453
  throw new RequiredError('formId', 'Required parameter formId was null or undefined when calling submitWidgetForm.');
@@ -20807,13 +20488,13 @@ exports.WidgetsFormsSubmissionsApiFp = function (configuration) {
20807
20488
  /**
20808
20489
  *
20809
20490
  * @summary create form for room
20491
+ * @param {AddWidgetForm} body
20810
20492
  * @param {string} id
20811
- * @param {AddWidgetForm} [body]
20812
20493
  * @param {*} [options] Override http request option.
20813
20494
  * @throws {RequiredError}
20814
20495
  */
20815
- createWidgetFormForRoomId(id, body, options) {
20816
- const localVarFetchArgs = exports.WidgetsFormsSubmissionsApiFetchParamCreator(configuration).createWidgetFormForRoomId(id, body, options);
20496
+ createWidgetFormForRoomId(body, id, options) {
20497
+ const localVarFetchArgs = exports.WidgetsFormsSubmissionsApiFetchParamCreator(configuration).createWidgetFormForRoomId(body, id, options);
20817
20498
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
20818
20499
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
20819
20500
  if (response.status >= 200 && response.status < 300) {
@@ -20848,13 +20529,13 @@ exports.WidgetsFormsSubmissionsApiFp = function (configuration) {
20848
20529
  /**
20849
20530
  *
20850
20531
  * @summary submit form
20532
+ * @param {SubmitWidgetForm} body
20851
20533
  * @param {string} formId
20852
- * @param {SubmitWidgetForm} [body]
20853
20534
  * @param {*} [options] Override http request option.
20854
20535
  * @throws {RequiredError}
20855
20536
  */
20856
- submitWidgetForm(formId, body, options) {
20857
- const localVarFetchArgs = exports.WidgetsFormsSubmissionsApiFetchParamCreator(configuration).submitWidgetForm(formId, body, options);
20537
+ submitWidgetForm(body, formId, options) {
20538
+ const localVarFetchArgs = exports.WidgetsFormsSubmissionsApiFetchParamCreator(configuration).submitWidgetForm(body, formId, options);
20858
20539
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
20859
20540
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
20860
20541
  if (response.status >= 200 && response.status < 300) {
@@ -20877,13 +20558,13 @@ exports.WidgetsFormsSubmissionsApiFactory = function (configuration, fetch, base
20877
20558
  /**
20878
20559
  *
20879
20560
  * @summary create form for room
20561
+ * @param {AddWidgetForm} body
20880
20562
  * @param {string} id
20881
- * @param {AddWidgetForm} [body]
20882
20563
  * @param {*} [options] Override http request option.
20883
20564
  * @throws {RequiredError}
20884
20565
  */
20885
- createWidgetFormForRoomId(id, body, options) {
20886
- return exports.WidgetsFormsSubmissionsApiFp(configuration).createWidgetFormForRoomId(id, body, options)(fetch, basePath);
20566
+ createWidgetFormForRoomId(body, id, options) {
20567
+ return exports.WidgetsFormsSubmissionsApiFp(configuration).createWidgetFormForRoomId(body, id, options)(fetch, basePath);
20887
20568
  },
20888
20569
  /**
20889
20570
  *
@@ -20898,13 +20579,13 @@ exports.WidgetsFormsSubmissionsApiFactory = function (configuration, fetch, base
20898
20579
  /**
20899
20580
  *
20900
20581
  * @summary submit form
20582
+ * @param {SubmitWidgetForm} body
20901
20583
  * @param {string} formId
20902
- * @param {SubmitWidgetForm} [body]
20903
20584
  * @param {*} [options] Override http request option.
20904
20585
  * @throws {RequiredError}
20905
20586
  */
20906
- submitWidgetForm(formId, body, options) {
20907
- return exports.WidgetsFormsSubmissionsApiFp(configuration).submitWidgetForm(formId, body, options)(fetch, basePath);
20587
+ submitWidgetForm(body, formId, options) {
20588
+ return exports.WidgetsFormsSubmissionsApiFp(configuration).submitWidgetForm(body, formId, options)(fetch, basePath);
20908
20589
  },
20909
20590
  };
20910
20591
  };
@@ -20918,14 +20599,14 @@ class WidgetsFormsSubmissionsApi extends BaseAPI {
20918
20599
  /**
20919
20600
  *
20920
20601
  * @summary create form for room
20602
+ * @param {AddWidgetForm} body
20921
20603
  * @param {string} id
20922
- * @param {AddWidgetForm} [body]
20923
20604
  * @param {*} [options] Override http request option.
20924
20605
  * @throws {RequiredError}
20925
20606
  * @memberof WidgetsFormsSubmissionsApi
20926
20607
  */
20927
- createWidgetFormForRoomId(id, body, options) {
20928
- return exports.WidgetsFormsSubmissionsApiFp(this.configuration).createWidgetFormForRoomId(id, body, options)(this.fetch, this.basePath);
20608
+ createWidgetFormForRoomId(body, id, options) {
20609
+ return exports.WidgetsFormsSubmissionsApiFp(this.configuration).createWidgetFormForRoomId(body, id, options)(this.fetch, this.basePath);
20929
20610
  }
20930
20611
  /**
20931
20612
  *
@@ -20941,14 +20622,14 @@ class WidgetsFormsSubmissionsApi extends BaseAPI {
20941
20622
  /**
20942
20623
  *
20943
20624
  * @summary submit form
20625
+ * @param {SubmitWidgetForm} body
20944
20626
  * @param {string} formId
20945
- * @param {SubmitWidgetForm} [body]
20946
20627
  * @param {*} [options] Override http request option.
20947
20628
  * @throws {RequiredError}
20948
20629
  * @memberof WidgetsFormsSubmissionsApi
20949
20630
  */
20950
- submitWidgetForm(formId, body, options) {
20951
- return exports.WidgetsFormsSubmissionsApiFp(this.configuration).submitWidgetForm(formId, body, options)(this.fetch, this.basePath);
20631
+ submitWidgetForm(body, formId, options) {
20632
+ return exports.WidgetsFormsSubmissionsApiFp(this.configuration).submitWidgetForm(body, formId, options)(this.fetch, this.basePath);
20952
20633
  }
20953
20634
  }
20954
20635
  exports.WidgetsFormsSubmissionsApi = WidgetsFormsSubmissionsApi;