@webitel/api-services 0.0.28 → 0.0.30

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 (172) hide show
  1. package/Readme.md +100 -6
  2. package/package.json +2 -1
  3. package/src/api/clients/caseSources/caseSources.ts +1 -1
  4. package/src/api/clients/quickReplies/quickReplies.ts +2 -0
  5. package/src/gen/_docs/html/assets/navigation.js +1 -1
  6. package/src/gen/_docs/html/assets/search.js +1 -1
  7. package/src/gen/_docs/html/index.html +1 -1
  8. package/src/gen/_docs/html/interfaces/_models_webitelCasesCaseQueryTarget.WebitelCasesCaseQueryTarget.html +10 -0
  9. package/src/gen/_docs/html/modules/_models.html +1 -1
  10. package/src/gen/_docs/html/modules/_models_webitelCasesCaseQueryTarget.html +1 -0
  11. package/src/gen/_docs/html/modules/index.html +1 -1
  12. package/src/gen/_docs/html/modules/sources_sources.zod.gen.html +6 -6
  13. package/src/gen/_docs/html/types/_models_listSourcesParams.ListSourcesParams.html +11 -7
  14. package/src/gen/_docs/html/types/_models_publishCommentParams.PublishCommentParams.html +5 -3
  15. package/src/gen/_docs/html/types/_models_searchCases2Params.SearchCases2Params.html +13 -3
  16. package/src/gen/_docs/html/types/_models_searchCasesParams.SearchCasesParams.html +13 -3
  17. package/src/gen/_docs/html/types/_models_updateComment2Params.UpdateComment2Params.html +4 -2
  18. package/src/gen/_docs/html/types/_models_updateCommentParams.UpdateCommentParams.html +4 -2
  19. package/src/gen/_docs/html/variables/case-comments_case-comments.zod.gen.publishCommentQueryParams.html +1 -1
  20. package/src/gen/_docs/html/variables/case-comments_case-comments.zod.gen.updateComment2QueryParams.html +1 -1
  21. package/src/gen/_docs/html/variables/case-comments_case-comments.zod.gen.updateCommentQueryParams.html +1 -1
  22. package/src/gen/_docs/html/variables/cases_cases.zod.gen.searchCases2QueryParams.html +1 -1
  23. package/src/gen/_docs/html/variables/cases_cases.zod.gen.searchCasesQueryParams.html +1 -1
  24. package/src/gen/_docs/html/variables/sources_sources.zod.gen.createSourceBody.html +1 -1
  25. package/src/gen/_docs/html/variables/sources_sources.zod.gen.listSourcesQueryPageDefault.html +1 -0
  26. package/src/gen/_docs/html/variables/sources_sources.zod.gen.listSourcesQueryParams.html +1 -1
  27. package/src/gen/_docs/html/variables/sources_sources.zod.gen.listSourcesQuerySizeDefault.html +1 -0
  28. package/src/gen/_docs/html/variables/sources_sources.zod.gen.listSourcesQuerySortDefault.html +1 -0
  29. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSource2Body.html +1 -1
  30. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSourceBody.html +1 -1
  31. package/src/gen/_models/index.ts +1 -0
  32. package/src/gen/_models/listSourcesParams.ts +15 -11
  33. package/src/gen/_models/publishCommentParams.ts +4 -0
  34. package/src/gen/_models/searchCases2Params.ts +21 -1
  35. package/src/gen/_models/searchCasesParams.ts +21 -1
  36. package/src/gen/_models/updateComment2Params.ts +4 -0
  37. package/src/gen/_models/updateCommentParams.ts +4 -0
  38. package/src/gen/_models/webitelCasesCaseQueryTarget.ts +20 -0
  39. package/src/gen/case-comments/case-comments.zod.gen.ts +18 -0
  40. package/src/gen/cases/cases.zod.gen.ts +36 -2
  41. package/src/gen/sources/sources.zod.gen.ts +19 -14
  42. package/types/gen/_models/agentAbsenceServiceUpdateAgentAbsenceBodyItem.d.ts +1 -1
  43. package/types/gen/_models/agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody.d.ts +2 -2
  44. package/types/gen/_models/apiAccessStoreToggleDefaultAccessBody.d.ts +1 -1
  45. package/types/gen/_models/apiCustomer.d.ts +2 -2
  46. package/types/gen/_models/apiDevice.d.ts +1 -1
  47. package/types/gen/_models/apiLDAPCatalog.d.ts +4 -4
  48. package/types/gen/_models/apiLDAPUpdateLDAPCatalogBodyCatalog.d.ts +4 -4
  49. package/types/gen/_models/apiLDAProcess.d.ts +2 -2
  50. package/types/gen/_models/apiLicenseV1.d.ts +1 -1
  51. package/types/gen/_models/apiRole.d.ts +3 -3
  52. package/types/gen/_models/apiRolesUpdateRoleBodyRole.d.ts +3 -3
  53. package/types/gen/_models/apiUser.d.ts +1 -1
  54. package/types/gen/_models/apiUsersUpdateUserBodyUser.d.ts +1 -1
  55. package/types/gen/_models/contactsUpdateContactBody.d.ts +1 -1
  56. package/types/gen/_models/engineActiveCall.d.ts +2 -2
  57. package/types/gen/_models/engineAgent.d.ts +1 -1
  58. package/types/gen/_models/engineAgentInQueueStatistics.d.ts +1 -1
  59. package/types/gen/_models/engineAggregateHistoryCallRequest.d.ts +1 -1
  60. package/types/gen/_models/engineAttempt.d.ts +1 -1
  61. package/types/gen/_models/engineAttemptHistory.d.ts +1 -1
  62. package/types/gen/_models/engineAuditFormServicePatchAuditFormBody.d.ts +1 -1
  63. package/types/gen/_models/engineAuditFormServiceUpdateAuditFormBody.d.ts +1 -1
  64. package/types/gen/_models/engineAuditRate.d.ts +2 -2
  65. package/types/gen/_models/engineCreateAuditFormRequest.d.ts +1 -1
  66. package/types/gen/_models/engineCreateCallRequest.d.ts +1 -1
  67. package/types/gen/_models/engineCreateMemberBulkItem.d.ts +1 -1
  68. package/types/gen/_models/engineCreateOutboundResourceRequest.d.ts +2 -2
  69. package/types/gen/_models/engineCreateQueueRequest.d.ts +2 -2
  70. package/types/gen/_models/engineCreateRoutingSchemaRequest.d.ts +1 -1
  71. package/types/gen/_models/engineCreateTriggerRequest.d.ts +2 -2
  72. package/types/gen/_models/engineDeleteAllMembersRequest.d.ts +1 -1
  73. package/types/gen/_models/engineHistoryCall.d.ts +6 -6
  74. package/types/gen/_models/engineListReportGeneral.d.ts +1 -1
  75. package/types/gen/_models/engineOutboundResource.d.ts +1 -1
  76. package/types/gen/_models/engineOutboundResourceServicePatchOutboundResourceBody.d.ts +1 -1
  77. package/types/gen/_models/engineOutboundResourceServiceUpdateOutboundResourceBody.d.ts +1 -1
  78. package/types/gen/_models/engineQuestion.d.ts +1 -1
  79. package/types/gen/_models/engineQueue.d.ts +2 -2
  80. package/types/gen/_models/engineQueueReportGeneral.d.ts +1 -1
  81. package/types/gen/_models/engineQueueServicePatchQueueBody.d.ts +2 -2
  82. package/types/gen/_models/engineQueueServiceUpdateQueueBody.d.ts +2 -2
  83. package/types/gen/_models/engineRoutingSchema.d.ts +2 -2
  84. package/types/gen/_models/engineRoutingSchemaServicePatchRoutingSchemaBody.d.ts +1 -1
  85. package/types/gen/_models/engineRoutingSchemaServiceUpdateRoutingSchemaBody.d.ts +1 -1
  86. package/types/gen/_models/engineTeamHook.d.ts +1 -1
  87. package/types/gen/_models/engineTeamHookServiceCreateTeamHookBody.d.ts +1 -1
  88. package/types/gen/_models/engineTeamHookServicePatchTeamHookBody.d.ts +1 -1
  89. package/types/gen/_models/engineTeamHookServiceUpdateTeamHookBody.d.ts +1 -1
  90. package/types/gen/_models/engineTrigger.d.ts +1 -1
  91. package/types/gen/_models/engineTriggerJob.d.ts +1 -1
  92. package/types/gen/_models/engineTriggerServicePatchTriggerBody.d.ts +1 -1
  93. package/types/gen/_models/engineTriggerServiceUpdateTriggerBody.d.ts +1 -1
  94. package/types/gen/_models/googleRpcStatus.d.ts +12 -0
  95. package/types/gen/_models/pauseTemplateServiceUpdatePauseTemplateBodyItem.d.ts +1 -1
  96. package/types/gen/_models/storageCreateImportTemplateRequest.d.ts +1 -1
  97. package/types/gen/_models/storageFile.d.ts +2 -2
  98. package/types/gen/_models/storageFilePolicy.d.ts +1 -1
  99. package/types/gen/_models/storageImportTemplate.d.ts +2 -2
  100. package/types/gen/_models/storageSafeUploadFileResponseMetadata.d.ts +1 -1
  101. package/types/gen/_models/storageUpdateCognitiveProfileRequest.d.ts +2 -2
  102. package/types/gen/_models/storageUpdateImportTemplateRequest.d.ts +1 -1
  103. package/types/gen/_models/storageUploadFileResponse.d.ts +1 -1
  104. package/types/gen/_models/storageUploadFileUrlResponse.d.ts +1 -1
  105. package/types/gen/_models/usersUpdateUser2Body.d.ts +1 -1
  106. package/types/gen/_models/usersUpdateUserBody.d.ts +1 -1
  107. package/types/gen/_models/usersUpdateUserUserBody.d.ts +1 -1
  108. package/types/gen/_models/webitelCasesCallEvent.d.ts +1 -1
  109. package/types/gen/_models/webitelCasesCase.d.ts +1 -1
  110. package/types/gen/_models/webitelCasesCaseQueryTarget.d.ts +19 -0
  111. package/types/gen/_models/webitelCasesChatEvent.d.ts +1 -1
  112. package/types/gen/_models/webitelCasesEmailEvent.d.ts +1 -1
  113. package/types/gen/_models/webitelCasesInputCreateService.d.ts +1 -1
  114. package/types/gen/_models/webitelCasesInputService.d.ts +1 -1
  115. package/types/gen/_models/webitelCasesInputSource.d.ts +0 -1
  116. package/types/gen/_models/webitelCasesService.d.ts +1 -1
  117. package/types/gen/_models/webitelCasesSource.d.ts +5 -6
  118. package/types/gen/_models/webitelCasesStatus.d.ts +16 -0
  119. package/types/gen/_models/webitelChatAgentChat.d.ts +1 -1
  120. package/types/gen/_models/webitelChatBroadcastMessageRequest.d.ts +1 -1
  121. package/types/gen/_models/webitelChatChatMessage.d.ts +2 -2
  122. package/types/gen/_models/webitelChatContactChat.d.ts +1 -1
  123. package/types/gen/_models/webitelChatDialog.d.ts +1 -1
  124. package/types/gen/_models/webitelChatGetContactChatHistoryResponse.d.ts +2 -2
  125. package/types/gen/_models/webitelContactsComment.d.ts +1 -1
  126. package/types/gen/_models/webitelProtoDataStruct.d.ts +1 -1
  127. package/types/gen/_models/wfmAbsence.d.ts +1 -1
  128. package/types/gen/_models/wfmAgentScheduleShift.d.ts +2 -2
  129. package/types/gen/_models/wfmAgentWorkingSchedule.d.ts +1 -1
  130. package/types/gen/_models/wfmPauseTemplate.d.ts +1 -1
  131. package/types/gen/_models/wfmSearchAgentsWorkingScheduleResponse.d.ts +1 -1
  132. package/types/gen/agent-chat-service/agent-chat-service.zod.gen.d.ts +1 -1
  133. package/types/gen/articles/articles.api.gen.d.ts +1 -1
  134. package/types/gen/call-service/call-service.zod.gen.d.ts +6 -6
  135. package/types/gen/cases-chat-catalog/cases-chat-catalog.zod.gen.d.ts +1 -1
  136. package/types/gen/catalog/catalog.zod.gen.d.ts +3 -3
  137. package/types/gen/config-service/config-service.zod.gen.d.ts +2 -2
  138. package/types/gen/contacts/contacts.zod.gen.d.ts +2 -2
  139. package/types/gen/contacts-chat-catalog/contacts-chat-catalog.zod.gen.d.ts +2 -2
  140. package/types/gen/dictionaries/dictionaries.zod.gen.d.ts +33 -33
  141. package/types/gen/extensions/extensions.zod.gen.d.ts +24 -24
  142. package/types/gen/ldap/ldap.api.gen.d.ts +1 -1
  143. package/types/gen/ldap/ldap.msw.api.gen.d.ts +1 -1
  144. package/types/gen/logger-service/logger-service.zod.gen.d.ts +5 -5
  145. package/types/gen/timeline/timeline.zod.gen.d.ts +2 -2
  146. package/types/gen/trigger-service/trigger-service.zod.gen.d.ts +15 -15
  147. package/types/gen/types/types.zod.gen.d.ts +6 -6
  148. package/types/utils/gen/index.d.ts +10 -4
  149. package/src/gen/_docs/.nojekyll +0 -1
  150. package/src/gen/_docs/html/variables/sources_sources.zod.gen.createSourceBodyDescriptionDefault.html +0 -1
  151. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSource2BodyDescriptionDefault.html +0 -1
  152. package/src/gen/_docs/html/variables/sources_sources.zod.gen.updateSourceBodyDescriptionDefault.html +0 -1
  153. package/types/defaults/index.d.ts +0 -2
  154. package/types/gen/_models/casesCaseCustom.d.ts +0 -12
  155. package/types/gen/_models/casesInputCaseCustom.d.ts +0 -12
  156. package/types/gen/_models/casesInputCreateCaseCustom.d.ts +0 -12
  157. package/types/gen/_models/configServicePatchConfigBody.d.ts +0 -15
  158. package/types/gen/_models/configServiceUpdateConfigBody.d.ts +0 -14
  159. package/types/gen/_models/groupsAddContactsToGroupParams.d.ts +0 -12
  160. package/types/gen/_models/loggerDeleteConfigBulkRequest.d.ts +0 -9
  161. package/types/gen/_models/loggerDeleteConfigLogsRequest.d.ts +0 -10
  162. package/types/gen/_models/loggerDeleteConfigLogsResponse.d.ts +0 -9
  163. package/types/gen/_models/protobufNullValue.d.ts +0 -18
  164. package/types/gen/_models/readSystemObjectsParams.d.ts +0 -9
  165. package/types/gen/_models/searchConfigObjectItem.d.ts +0 -25
  166. package/types/gen/_models/searchConfigParams.d.ts +0 -18
  167. package/types/gen/_models/searchLogByConfigIdActionItem.d.ts +0 -14
  168. package/types/gen/_models/searchLogByConfigIdParams.d.ts +0 -19
  169. package/types/gen/_models/searchLogByRecordIdActionItem.d.ts +0 -14
  170. package/types/gen/_models/searchLogByRecordIdParams.d.ts +0 -22
  171. package/types/gen/_models/searchLogByUserIdActionItem.d.ts +0 -14
  172. package/types/gen/_models/searchLogByUserIdParams.d.ts +0 -25
@@ -15,7 +15,7 @@ export type SearchCasesParams = {
15
15
  */
16
16
  size?: number;
17
17
  /**
18
- * Query string for searching cases.
18
+ * General query string.
19
19
  */
20
20
  q?: string;
21
21
  /**
@@ -38,4 +38,24 @@ export type SearchCasesParams = {
38
38
  * Contact ID for filtering cases.
39
39
  */
40
40
  contactId?: string;
41
+ /**
42
+ * Search everywhere (no restrictions)
43
+ */
44
+ queryTargetFull?: boolean;
45
+ /**
46
+ * Search in case subject.
47
+ */
48
+ queryTargetSubject?: boolean;
49
+ /**
50
+ * Search in case name or number.
51
+ */
52
+ queryTargetName?: boolean;
53
+ /**
54
+ * Search in contact's email, phone, etc.
55
+ */
56
+ queryTargetContactInfo?: boolean;
57
+ /**
58
+ * Search in case id
59
+ */
60
+ queryTargetId?: boolean;
41
61
  };
@@ -10,4 +10,8 @@ export type UpdateComment2Params = {
10
10
  * Fields to include in the response.
11
11
  */
12
12
  fields?: string[];
13
+ /**
14
+ * Optional updating timestamp. If not set, will be set default(current) time.
15
+ */
16
+ updatedAt?: string;
13
17
  };
@@ -10,4 +10,8 @@ export type UpdateCommentParams = {
10
10
  * Fields to include in the response.
11
11
  */
12
12
  fields?: string[];
13
+ /**
14
+ * Optional updating timestamp. If not set, will be set default(current) time.
15
+ */
16
+ updatedAt?: string;
13
17
  };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Generated by orval v7.10.0 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ /**
9
+ * Define which fields are enabled for query matching.
10
+ */
11
+ export interface WebitelCasesCaseQueryTarget {
12
+ /** Search in contact's email, phone, etc. */
13
+ contactInfo?: boolean;
14
+ full?: boolean;
15
+ id?: boolean;
16
+ /** Search in case name or number. */
17
+ name?: boolean;
18
+ /** Search in case subject. */
19
+ subject?: boolean;
20
+ }
@@ -158,6 +158,12 @@ export const updateComment2QueryParams = zod.object({
158
158
  .array(zod.string())
159
159
  .optional()
160
160
  .describe('Fields to include in the response.'),
161
+ updatedAt: zod
162
+ .string()
163
+ .optional()
164
+ .describe(
165
+ 'Optional updating timestamp. If not set, will be set default(current) time.',
166
+ ),
161
167
  });
162
168
 
163
169
  export const updateComment2Body = zod.object({
@@ -238,6 +244,12 @@ export const updateCommentQueryParams = zod.object({
238
244
  .array(zod.string())
239
245
  .optional()
240
246
  .describe('Fields to include in the response.'),
247
+ updatedAt: zod
248
+ .string()
249
+ .optional()
250
+ .describe(
251
+ 'Optional updating timestamp. If not set, will be set default(current) time.',
252
+ ),
241
253
  });
242
254
 
243
255
  export const updateCommentBody = zod.object({
@@ -422,6 +434,12 @@ export const publishCommentQueryParams = zod.object({
422
434
  .array(zod.string())
423
435
  .optional()
424
436
  .describe('Result fields to include in the response.'),
437
+ createdAt: zod
438
+ .string()
439
+ .optional()
440
+ .describe(
441
+ 'Optional creation timestamp. If not set, will be set default(current) time.',
442
+ ),
425
443
  });
426
444
 
427
445
  export const publishCommentBody = zod
@@ -12,7 +12,7 @@ import { z as zod } from 'zod/v4';
12
12
  export const searchCasesQueryParams = zod.object({
13
13
  page: zod.number().optional().describe('Page number for pagination.'),
14
14
  size: zod.number().optional().describe('Number of results per page.'),
15
- q: zod.string().optional().describe('Query string for searching cases.'),
15
+ q: zod.string().optional().describe('General query string.'),
16
16
  ids: zod
17
17
  .array(zod.string())
18
18
  .optional()
@@ -30,6 +30,23 @@ export const searchCasesQueryParams = zod.object({
30
30
  .string()
31
31
  .optional()
32
32
  .describe('Contact ID for filtering cases.'),
33
+ queryTargetFull: zod
34
+ .boolean()
35
+ .optional()
36
+ .describe('Search everywhere (no restrictions)'),
37
+ queryTargetSubject: zod
38
+ .boolean()
39
+ .optional()
40
+ .describe('Search in case subject.'),
41
+ queryTargetName: zod
42
+ .boolean()
43
+ .optional()
44
+ .describe('Search in case name or number.'),
45
+ queryTargetContactInfo: zod
46
+ .boolean()
47
+ .optional()
48
+ .describe("Search in contact's email, phone, etc."),
49
+ queryTargetId: zod.boolean().optional().describe('Search in case id'),
33
50
  });
34
51
 
35
52
  export const searchCasesResponseItemsItemRelatedDataItemRelationTypeDefault =
@@ -3288,7 +3305,7 @@ export const searchCases2Params = zod.object({
3288
3305
  export const searchCases2QueryParams = zod.object({
3289
3306
  page: zod.number().optional().describe('Page number for pagination.'),
3290
3307
  size: zod.number().optional().describe('Number of results per page.'),
3291
- q: zod.string().optional().describe('Query string for searching cases.'),
3308
+ q: zod.string().optional().describe('General query string.'),
3292
3309
  ids: zod
3293
3310
  .array(zod.string())
3294
3311
  .optional()
@@ -3302,6 +3319,23 @@ export const searchCases2QueryParams = zod.object({
3302
3319
  .array(zod.string())
3303
3320
  .optional()
3304
3321
  .describe('Key-value pairs for additional filtering.'),
3322
+ queryTargetFull: zod
3323
+ .boolean()
3324
+ .optional()
3325
+ .describe('Search everywhere (no restrictions)'),
3326
+ queryTargetSubject: zod
3327
+ .boolean()
3328
+ .optional()
3329
+ .describe('Search in case subject.'),
3330
+ queryTargetName: zod
3331
+ .boolean()
3332
+ .optional()
3333
+ .describe('Search in case name or number.'),
3334
+ queryTargetContactInfo: zod
3335
+ .boolean()
3336
+ .optional()
3337
+ .describe("Search in contact's email, phone, etc."),
3338
+ queryTargetId: zod.boolean().optional().describe('Search in case id'),
3305
3339
  });
3306
3340
 
3307
3341
  export const searchCases2ResponseItemsItemRelatedDataItemRelationTypeDefault =
@@ -9,29 +9,37 @@ import { z as zod } from 'zod/v4';
9
9
  /**
10
10
  * @summary Retrieve a list of sources or search sources
11
11
  */
12
+ export const listSourcesQueryPageDefault = '1';
13
+ export const listSourcesQuerySizeDefault = '20';
14
+ export const listSourcesQuerySortDefault = 'name:desc';
15
+
12
16
  export const listSourcesQueryParams = zod.object({
13
17
  page: zod
14
18
  .number()
15
- .optional()
16
- .describe('Page number of result dataset records. offset = (page*size)'),
19
+ .default(listSourcesQueryPageDefault)
20
+ .describe(
21
+ 'Page number of result dataset records. offset = (page * size)\nDefault: 0',
22
+ ),
17
23
  size: zod
18
24
  .number()
19
- .optional()
20
- .describe('Size count of records on result page. limit = (size++)'),
25
+ .default(listSourcesQuerySizeDefault)
26
+ .describe(
27
+ 'Size count of records on result page. limit = (size++)\nDefault: 25',
28
+ ),
21
29
  fields: zod
22
30
  .array(zod.string())
23
31
  .optional()
24
- .describe('Fields to be retrieved as a result.'),
32
+ .describe('Fields to be retrieved as a result.\nDefault: [] (all fields)'),
25
33
  sort: zod
26
34
  .string()
27
- .optional()
28
- .describe('Sort the result according to fields.'),
35
+ .default(listSourcesQuerySortDefault)
36
+ .describe('Sort the result according to fields.\nDefault: \"id:desc\"'),
29
37
  id: zod.array(zod.string()).optional().describe('Filter by unique IDs.'),
30
38
  q: zod
31
39
  .string()
32
40
  .optional()
33
41
  .describe(
34
- 'Search query string for filtering by name. Supports:\n- Wildcards (*) for substring matching\n- Placeholder (?) for single character substitution\n- Exact match for full names',
42
+ 'Search query string for filtering by name. Supports:\n- Wildcards (*)\n- Placeholder (?)\n- Exact match',
35
43
  ),
36
44
  type: zod
37
45
  .array(
@@ -137,7 +145,6 @@ export const createSourceQueryParams = zod.object({
137
145
  });
138
146
 
139
147
  export const createSourceBodyDefault = { name: 'Default Source', type: 'CALL' };
140
- export const createSourceBodyDescriptionDefault = 'No description provided';
141
148
  export const createSourceBodyDescriptionMax = 500;
142
149
  export const createSourceBodyNameDefault = 'New Source';
143
150
  export const createSourceBodyNameMin = 2;
@@ -150,7 +157,7 @@ export const createSourceBody = zod
150
157
  description: zod
151
158
  .string()
152
159
  .max(createSourceBodyDescriptionMax)
153
- .default(createSourceBodyDescriptionDefault)
160
+ .optional()
154
161
  .describe('A short description of the source'),
155
162
  name: zod
156
163
  .string()
@@ -369,7 +376,6 @@ export const updateSource2BodyDefault = {
369
376
  name: 'Default Source',
370
377
  type: 'CALL',
371
378
  };
372
- export const updateSource2BodyDescriptionDefault = 'No description provided';
373
379
  export const updateSource2BodyDescriptionMax = 500;
374
380
  export const updateSource2BodyNameDefault = 'New Source';
375
381
  export const updateSource2BodyNameMin = 2;
@@ -382,7 +388,7 @@ export const updateSource2Body = zod
382
388
  description: zod
383
389
  .string()
384
390
  .max(updateSource2BodyDescriptionMax)
385
- .default(updateSource2BodyDescriptionDefault)
391
+ .optional()
386
392
  .describe('A short description of the source'),
387
393
  name: zod
388
394
  .string()
@@ -468,7 +474,6 @@ export const updateSourceQueryParams = zod.object({
468
474
  });
469
475
 
470
476
  export const updateSourceBodyDefault = { name: 'Default Source', type: 'CALL' };
471
- export const updateSourceBodyDescriptionDefault = 'No description provided';
472
477
  export const updateSourceBodyDescriptionMax = 500;
473
478
  export const updateSourceBodyNameDefault = 'New Source';
474
479
  export const updateSourceBodyNameMin = 2;
@@ -481,7 +486,7 @@ export const updateSourceBody = zod
481
486
  description: zod
482
487
  .string()
483
488
  .max(updateSourceBodyDescriptionMax)
484
- .default(updateSourceBodyDescriptionDefault)
489
+ .optional()
485
490
  .describe('A short description of the source'),
486
491
  name: zod
487
492
  .string()
@@ -1,10 +1,10 @@
1
- import type { WfmAbsenceType } from './wfmAbsenceType';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { WfmAbsenceType } from './wfmAbsenceType';
8
8
  import type { WfmLookupEntity } from './wfmLookupEntity';
9
9
  export type AgentAbsenceServiceUpdateAgentAbsenceBodyItem = {
10
10
  absentAt?: string;
@@ -1,11 +1,11 @@
1
- import type { AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems } from './agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems';
2
- import type { WfmFilterBetween } from './wfmFilterBetween';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems } from './agentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBodyItems';
8
+ import type { WfmFilterBetween } from './wfmFilterBetween';
9
9
  import type { WfmLookupEntity } from './wfmLookupEntity';
10
10
  export type AgentWorkingScheduleServiceCreateAgentsWorkingScheduleShiftsBody = {
11
11
  agents?: WfmLookupEntity[];
@@ -1,10 +1,10 @@
1
- import type { ApiAccessStoreToggleDefaultAccessBodyObject } from './apiAccessStoreToggleDefaultAccessBodyObject';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiAccessStoreToggleDefaultAccessBodyObject } from './apiAccessStoreToggleDefaultAccessBodyObject';
8
8
  import type { ApiGrantAccessRequestV1 } from './apiGrantAccessRequestV1';
9
9
  export interface ApiAccessStoreToggleDefaultAccessBody {
10
10
  /** list of changes ...
@@ -1,11 +1,11 @@
1
- import type { ApiCustomerLimit } from './apiCustomerLimit';
2
- import type { ApiLicenseV1 } from './apiLicenseV1';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { ApiCustomerLimit } from './apiCustomerLimit';
8
+ import type { ApiLicenseV1 } from './apiLicenseV1';
9
9
  import type { ApiObjectId } from './apiObjectId';
10
10
  import type { ApiVerification } from './apiVerification';
11
11
  export interface ApiCustomer {
@@ -1,10 +1,10 @@
1
- import type { ApiDeviceProvision } from './apiDeviceProvision';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiDeviceProvision } from './apiDeviceProvision';
8
8
  import type { ApiUserId } from './apiUserId';
9
9
  export interface ApiDevice {
10
10
  /** username */
@@ -1,13 +1,13 @@
1
- import type { ApiLDAPCatalogTLSConfig } from './apiLDAPCatalogTLSConfig';
2
- import type { ApiLDAPTemplate } from './apiLDAPTemplate';
3
- import type { ApiLDAProcess } from './apiLDAProcess';
4
- import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
5
1
  /**
6
2
  * Generated by orval v7.10.0 🍺
7
3
  * Do not edit manually.
8
4
  * Webitel API
9
5
  * OpenAPI spec version: 24.04.0
10
6
  */
7
+ import type { ApiLDAPCatalogTLSConfig } from './apiLDAPCatalogTLSConfig';
8
+ import type { ApiLDAProcess } from './apiLDAProcess';
9
+ import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
10
+ import type { ApiLDAPTemplate } from './apiLDAPTemplate';
11
11
  import type { ApiUserId } from './apiUserId';
12
12
  export interface ApiLDAPCatalog {
13
13
  baseDn?: string;
@@ -1,13 +1,13 @@
1
- import type { ApiLDAPCatalogTLSConfig } from './apiLDAPCatalogTLSConfig';
2
- import type { ApiLDAPTemplate } from './apiLDAPTemplate';
3
- import type { ApiLDAProcess } from './apiLDAProcess';
4
- import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
5
1
  /**
6
2
  * Generated by orval v7.10.0 🍺
7
3
  * Do not edit manually.
8
4
  * Webitel API
9
5
  * OpenAPI spec version: 24.04.0
10
6
  */
7
+ import type { ApiLDAPCatalogTLSConfig } from './apiLDAPCatalogTLSConfig';
8
+ import type { ApiLDAProcess } from './apiLDAProcess';
9
+ import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
10
+ import type { ApiLDAPTemplate } from './apiLDAPTemplate';
11
11
  import type { ApiUserId } from './apiUserId';
12
12
  /**
13
13
  * LDAP Catalog changes.
@@ -1,11 +1,11 @@
1
- import type { ApiLDAPObjentry } from './apiLDAPObjentry';
2
- import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { ApiLDAPObjentry } from './apiLDAPObjentry';
8
+ import type { ApiLDAProcessOptions } from './apiLDAProcessOptions';
9
9
  import type { ApiRoleId } from './apiRoleId';
10
10
  export interface ApiLDAProcess {
11
11
  /** Optional. If not <zero> indicates that this process is completed. */
@@ -1,10 +1,10 @@
1
- import type { ApiLicenseUser } from './apiLicenseUser';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiLicenseUser } from './apiLicenseUser';
8
8
  import type { ApiVerification } from './apiVerification';
9
9
  export interface ApiLicenseV1 {
10
10
  competitive?: boolean;
@@ -1,12 +1,12 @@
1
- import type { ApiObjectId } from './apiObjectId';
2
- import type { ApiPermission } from './apiPermission';
3
- import type { ApiRoleMetadata } from './apiRoleMetadata';
4
1
  /**
5
2
  * Generated by orval v7.10.0 🍺
6
3
  * Do not edit manually.
7
4
  * Webitel API
8
5
  * OpenAPI spec version: 24.04.0
9
6
  */
7
+ import type { ApiObjectId } from './apiObjectId';
8
+ import type { ApiPermission } from './apiPermission';
9
+ import type { ApiRoleMetadata } from './apiRoleMetadata';
10
10
  import type { ApiUserId } from './apiUserId';
11
11
  export interface ApiRole {
12
12
  createdAt?: string;
@@ -1,12 +1,12 @@
1
- import type { ApiObjectId } from './apiObjectId';
2
- import type { ApiPermission } from './apiPermission';
3
- import type { ApiRolesUpdateRoleBodyRoleMetadata } from './apiRolesUpdateRoleBodyRoleMetadata';
4
1
  /**
5
2
  * Generated by orval v7.10.0 🍺
6
3
  * Do not edit manually.
7
4
  * Webitel API
8
5
  * OpenAPI spec version: 24.04.0
9
6
  */
7
+ import type { ApiObjectId } from './apiObjectId';
8
+ import type { ApiPermission } from './apiPermission';
9
+ import type { ApiRolesUpdateRoleBodyRoleMetadata } from './apiRolesUpdateRoleBodyRoleMetadata';
10
10
  import type { ApiUserId } from './apiUserId';
11
11
  export type ApiRolesUpdateRoleBodyRole = {
12
12
  createdAt?: string;
@@ -1,10 +1,10 @@
1
- import type { ApiLicenseUser } from './apiLicenseUser';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiLicenseUser } from './apiLicenseUser';
8
8
  import type { ApiObjectId } from './apiObjectId';
9
9
  import type { ApiPermission } from './apiPermission';
10
10
  import type { ApiUserId } from './apiUserId';
@@ -1,10 +1,10 @@
1
- import type { ApiLicenseUser } from './apiLicenseUser';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ApiLicenseUser } from './apiLicenseUser';
8
8
  import type { ApiObjectId } from './apiObjectId';
9
9
  import type { ApiPermission } from './apiPermission';
10
10
  import type { ApiUserId } from './apiUserId';
@@ -1,10 +1,10 @@
1
- import type { ContactsUpdateContactBodyCustom } from './contactsUpdateContactBodyCustom';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { ContactsUpdateContactBodyCustom } from './contactsUpdateContactBodyCustom';
8
8
  import type { WebitelContactsInputComment } from './webitelContactsInputComment';
9
9
  import type { WebitelContactsInputContactGroup } from './webitelContactsInputContactGroup';
10
10
  import type { WebitelContactsInputEmailAddress } from './webitelContactsInputEmailAddress';
@@ -1,11 +1,11 @@
1
- import type { EngineActiveCallVariables } from './engineActiveCallVariables';
2
- import type { EngineEndpoint } from './engineEndpoint';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { EngineActiveCallVariables } from './engineActiveCallVariables';
8
+ import type { EngineEndpoint } from './engineEndpoint';
9
9
  import type { EngineLookup } from './engineLookup';
10
10
  export interface EngineActiveCall {
11
11
  agent?: EngineLookup;
@@ -1,10 +1,10 @@
1
- import type { EngineAgentChannel } from './engineAgentChannel';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAgentChannel } from './engineAgentChannel';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  export interface EngineAgent {
10
10
  allowChannels?: string[];
@@ -1,10 +1,10 @@
1
- import type { EngineAgentInQueueStatisticsAgentInQueueStatisticsItem } from './engineAgentInQueueStatisticsAgentInQueueStatisticsItem';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAgentInQueueStatisticsAgentInQueueStatisticsItem } from './engineAgentInQueueStatisticsAgentInQueueStatisticsItem';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  export interface EngineAgentInQueueStatistics {
10
10
  queue?: EngineLookup;
@@ -1,10 +1,10 @@
1
- import type { EngineAggregateHistoryCallRequestVariables } from './engineAggregateHistoryCallRequestVariables';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAggregateHistoryCallRequestVariables } from './engineAggregateHistoryCallRequestVariables';
8
8
  import type { EngineAggregateRequest } from './engineAggregateRequest';
9
9
  import type { EngineFilterBetween } from './engineFilterBetween';
10
10
  export interface EngineAggregateHistoryCallRequest {
@@ -1,10 +1,10 @@
1
- import type { EngineAttemptVariables } from './engineAttemptVariables';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAttemptVariables } from './engineAttemptVariables';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  import type { EngineMemberCommunication } from './engineMemberCommunication';
10
10
  export interface EngineAttempt {
@@ -1,10 +1,10 @@
1
- import type { EngineAttemptHistoryVariables } from './engineAttemptHistoryVariables';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineAttemptHistoryVariables } from './engineAttemptHistoryVariables';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  import type { EngineMemberCommunication } from './engineMemberCommunication';
10
10
  export interface EngineAttemptHistory {
@@ -1,10 +1,10 @@
1
- import type { EngineLookup } from './engineLookup';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineLookup } from './engineLookup';
8
8
  import type { EngineQuestion } from './engineQuestion';
9
9
  export interface EngineAuditFormServicePatchAuditFormBody {
10
10
  description?: string;
@@ -1,10 +1,10 @@
1
- import type { EngineLookup } from './engineLookup';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineLookup } from './engineLookup';
8
8
  import type { EngineQuestion } from './engineQuestion';
9
9
  export interface EngineAuditFormServiceUpdateAuditFormBody {
10
10
  description?: string;
@@ -1,11 +1,11 @@
1
- import type { EngineLookup } from './engineLookup';
2
- import type { EngineQuestion } from './engineQuestion';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { EngineLookup } from './engineLookup';
8
+ import type { EngineQuestion } from './engineQuestion';
9
9
  import type { EngineQuestionAnswer } from './engineQuestionAnswer';
10
10
  export interface EngineAuditRate {
11
11
  answers?: EngineQuestionAnswer[];
@@ -1,10 +1,10 @@
1
- import type { EngineLookup } from './engineLookup';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineLookup } from './engineLookup';
8
8
  import type { EngineQuestion } from './engineQuestion';
9
9
  export interface EngineCreateAuditFormRequest {
10
10
  description?: string;
@@ -1,10 +1,10 @@
1
- import type { EngineCreateCallRequestCallSettings } from './engineCreateCallRequestCallSettings';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineCreateCallRequestCallSettings } from './engineCreateCallRequestCallSettings';
8
8
  import type { EngineCreateCallRequestEndpointRequest } from './engineCreateCallRequestEndpointRequest';
9
9
  export interface EngineCreateCallRequest {
10
10
  destination?: string;
@@ -1,10 +1,10 @@
1
- import type { EngineCreateMemberBulkItemVariables } from './engineCreateMemberBulkItemVariables';
2
1
  /**
3
2
  * Generated by orval v7.10.0 🍺
4
3
  * Do not edit manually.
5
4
  * Webitel API
6
5
  * OpenAPI spec version: 24.04.0
7
6
  */
7
+ import type { EngineCreateMemberBulkItemVariables } from './engineCreateMemberBulkItemVariables';
8
8
  import type { EngineLookup } from './engineLookup';
9
9
  import type { EngineMemberCommunicationCreateRequest } from './engineMemberCommunicationCreateRequest';
10
10
  export interface EngineCreateMemberBulkItem {
@@ -1,11 +1,11 @@
1
- import type { EngineCreateOutboundResourceRequestVariables } from './engineCreateOutboundResourceRequestVariables';
2
- import type { EngineLookup } from './engineLookup';
3
1
  /**
4
2
  * Generated by orval v7.10.0 🍺
5
3
  * Do not edit manually.
6
4
  * Webitel API
7
5
  * OpenAPI spec version: 24.04.0
8
6
  */
7
+ import type { EngineCreateOutboundResourceRequestVariables } from './engineCreateOutboundResourceRequestVariables';
8
+ import type { EngineLookup } from './engineLookup';
9
9
  import type { EngineOutboundResourceParameters } from './engineOutboundResourceParameters';
10
10
  export interface EngineCreateOutboundResourceRequest {
11
11
  parameters?: EngineOutboundResourceParameters;