@webitel/api-services 26.8.83 → 26.8.85

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 (123) hide show
  1. package/package.json +1 -1
  2. package/src/api/clients/__tests__/wireParamsCoverage.spec.ts +5 -2
  3. package/src/api/clients/users/users.ts +52 -33
  4. package/src/gen/_models/apiUser.ts +2 -0
  5. package/src/gen/_models/catalogGetHistory2Params.ts +4 -0
  6. package/src/gen/_models/catalogGetHistoryParams.ts +4 -0
  7. package/src/gen/_models/engineMemberServiceTransferAttemptBody.ts +12 -0
  8. package/src/gen/_models/engineTransferAttemptResponse.ts +10 -0
  9. package/src/gen/_models/index.ts +8 -0
  10. package/src/gen/_models/listArticlesParams.ts +9 -0
  11. package/src/gen/_models/listArticlesTagMatch.ts +15 -0
  12. package/src/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.ts +11 -0
  13. package/src/gen/_models/messageHistorySearchMessagesParams.ts +11 -0
  14. package/src/gen/_models/messageHistorySearchThreadMessagesHistoryParams.ts +11 -0
  15. package/src/gen/_models/searchAllowedUploadTypesChannelItem.ts +21 -0
  16. package/src/gen/_models/searchAllowedUploadTypesParams.ts +16 -0
  17. package/src/gen/_models/storageAllowedUploadTypes.ts +25 -0
  18. package/src/gen/_models/storageCustomFileProperties.ts +1 -0
  19. package/src/gen/_models/storageGenerateFileLinkResponseMetadata.ts +4 -0
  20. package/src/gen/_models/storageListAllowedUploadTypes.ts +11 -0
  21. package/src/gen/_models/threadManagementRemoveMemberParams.ts +10 -0
  22. package/src/gen/_models/webitelImApiGatewayV1HistoryMessageCursorRequest.ts +11 -0
  23. package/src/gen-wire/_models/apiUser.ts +2 -0
  24. package/src/gen-wire/_models/catalogGetHistory2Params.ts +4 -0
  25. package/src/gen-wire/_models/catalogGetHistoryParams.ts +4 -0
  26. package/src/gen-wire/_models/engineMemberServiceTransferAttemptBody.ts +12 -0
  27. package/src/gen-wire/_models/engineTransferAttemptResponse.ts +10 -0
  28. package/src/gen-wire/_models/index.ts +8 -0
  29. package/src/gen-wire/_models/listArticlesParams.ts +9 -0
  30. package/src/gen-wire/_models/listArticlesTagMatch.ts +15 -0
  31. package/src/gen-wire/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.ts +11 -0
  32. package/src/gen-wire/_models/messageHistorySearchMessagesParams.ts +11 -0
  33. package/src/gen-wire/_models/messageHistorySearchThreadMessagesHistoryParams.ts +11 -0
  34. package/src/gen-wire/_models/searchAllowedUploadTypesChannelItem.ts +21 -0
  35. package/src/gen-wire/_models/searchAllowedUploadTypesParams.ts +16 -0
  36. package/src/gen-wire/_models/storageAllowedUploadTypes.ts +25 -0
  37. package/src/gen-wire/_models/storageCustomFileProperties.ts +1 -0
  38. package/src/gen-wire/_models/storageGenerateFileLinkResponseMetadata.ts +4 -0
  39. package/src/gen-wire/_models/storageListAllowedUploadTypes.ts +11 -0
  40. package/src/gen-wire/_models/threadManagementRemoveMemberParams.ts +10 -0
  41. package/src/gen-wire/_models/webitelImApiGatewayV1HistoryMessageCursorRequest.ts +11 -0
  42. package/src/gen-wire/articles/articles.zod.ts +11 -0
  43. package/src/gen-wire/file-policies-service/file-policies-service.ts +21 -0
  44. package/src/gen-wire/file-policies-service/file-policies-service.zod.ts +61 -0
  45. package/src/gen-wire/file-service/file-service.zod.ts +5 -0
  46. package/src/gen-wire/index.ts +5 -0
  47. package/src/gen-wire/member-service/member-service.ts +16 -0
  48. package/src/gen-wire/member-service/member-service.zod.ts +14 -0
  49. package/src/gen-wire/messages/messages.zod.ts +12 -0
  50. package/src/gen-wire/users/users.zod.ts +63 -0
  51. package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +18 -0
  52. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +9 -1
  53. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +4 -0
  54. package/src/locale/en/en.ts +9 -0
  55. package/src/locale/es/es.ts +9 -0
  56. package/src/locale/kz/kz.ts +9 -0
  57. package/src/locale/pl/pl.ts +9 -0
  58. package/src/locale/ro/ro.ts +9 -0
  59. package/src/locale/ru/ru.ts +9 -0
  60. package/src/locale/uk/uk.ts +9 -0
  61. package/src/locale/uz/uz.ts +9 -0
  62. package/src/locale/vi/vi.ts +9 -0
  63. package/types/.tsbuildinfo +1 -1
  64. package/types/gen/_models/apiUser.d.ts +2 -0
  65. package/types/gen/_models/catalogGetHistory2Params.d.ts +4 -0
  66. package/types/gen/_models/catalogGetHistoryParams.d.ts +4 -0
  67. package/types/gen/_models/engineMemberServiceTransferAttemptBody.d.ts +11 -0
  68. package/types/gen/_models/engineTransferAttemptResponse.d.ts +9 -0
  69. package/types/gen/_models/index.d.ts +8 -0
  70. package/types/gen/_models/listArticlesParams.d.ts +9 -0
  71. package/types/gen/_models/listArticlesTagMatch.d.ts +12 -0
  72. package/types/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.d.ts +11 -0
  73. package/types/gen/_models/messageHistorySearchMessagesParams.d.ts +11 -0
  74. package/types/gen/_models/messageHistorySearchThreadMessagesHistoryParams.d.ts +11 -0
  75. package/types/gen/_models/searchAllowedUploadTypesChannelItem.d.ts +18 -0
  76. package/types/gen/_models/searchAllowedUploadTypesParams.d.ts +15 -0
  77. package/types/gen/_models/storageAllowedUploadTypes.d.ts +24 -0
  78. package/types/gen/_models/storageCustomFileProperties.d.ts +1 -0
  79. package/types/gen/_models/storageGenerateFileLinkResponseMetadata.d.ts +4 -0
  80. package/types/gen/_models/storageListAllowedUploadTypes.d.ts +10 -0
  81. package/types/gen/_models/threadManagementRemoveMemberParams.d.ts +9 -0
  82. package/types/gen/_models/webitelImApiGatewayV1HistoryMessageCursorRequest.d.ts +11 -0
  83. package/types/gen-wire/_models/apiUser.d.ts +2 -0
  84. package/types/gen-wire/_models/catalogGetHistory2Params.d.ts +4 -0
  85. package/types/gen-wire/_models/catalogGetHistoryParams.d.ts +4 -0
  86. package/types/gen-wire/_models/engineMemberServiceTransferAttemptBody.d.ts +11 -0
  87. package/types/gen-wire/_models/engineTransferAttemptResponse.d.ts +9 -0
  88. package/types/gen-wire/_models/index.d.ts +8 -0
  89. package/types/gen-wire/_models/listArticlesParams.d.ts +9 -0
  90. package/types/gen-wire/_models/listArticlesTagMatch.d.ts +12 -0
  91. package/types/gen-wire/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.d.ts +11 -0
  92. package/types/gen-wire/_models/messageHistorySearchMessagesParams.d.ts +11 -0
  93. package/types/gen-wire/_models/messageHistorySearchThreadMessagesHistoryParams.d.ts +11 -0
  94. package/types/gen-wire/_models/searchAllowedUploadTypesChannelItem.d.ts +18 -0
  95. package/types/gen-wire/_models/searchAllowedUploadTypesParams.d.ts +15 -0
  96. package/types/gen-wire/_models/storageAllowedUploadTypes.d.ts +24 -0
  97. package/types/gen-wire/_models/storageCustomFileProperties.d.ts +1 -0
  98. package/types/gen-wire/_models/storageGenerateFileLinkResponseMetadata.d.ts +4 -0
  99. package/types/gen-wire/_models/storageListAllowedUploadTypes.d.ts +10 -0
  100. package/types/gen-wire/_models/threadManagementRemoveMemberParams.d.ts +9 -0
  101. package/types/gen-wire/_models/webitelImApiGatewayV1HistoryMessageCursorRequest.d.ts +11 -0
  102. package/types/gen-wire/articles/articles.zod.d.ts +6 -0
  103. package/types/gen-wire/file-policies-service/file-policies-service.d.ts +3 -1
  104. package/types/gen-wire/file-policies-service/file-policies-service.zod.d.ts +35 -0
  105. package/types/gen-wire/file-service/file-service.zod.d.ts +5 -0
  106. package/types/gen-wire/index.d.ts +3 -3
  107. package/types/gen-wire/member-service/member-service.d.ts +3 -1
  108. package/types/gen-wire/member-service/member-service.zod.d.ts +8 -0
  109. package/types/gen-wire/messages/messages.zod.d.ts +2 -0
  110. package/types/gen-wire/users/users.zod.d.ts +45 -0
  111. package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +3 -0
  112. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +2 -2
  113. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +3 -0
  114. package/types/locale/en/en.d.ts +9 -0
  115. package/types/locale/es/es.d.ts +9 -0
  116. package/types/locale/index.d.ts +81 -0
  117. package/types/locale/kz/kz.d.ts +9 -0
  118. package/types/locale/pl/pl.d.ts +9 -0
  119. package/types/locale/ro/ro.d.ts +9 -0
  120. package/types/locale/ru/ru.d.ts +9 -0
  121. package/types/locale/uk/uk.d.ts +9 -0
  122. package/types/locale/uz/uz.d.ts +9 -0
  123. package/types/locale/vi/vi.d.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/api-services",
3
- "version": "26.8.83",
3
+ "version": "26.8.85",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -193,8 +193,10 @@ const suppliedByTest = new Set([
193
193
  /**
194
194
  * `MessagesServiceAPI.getChatHistory` merges `getDefaultGetParams()`, so it
195
195
  * sends `page` and `size` to `catalogGetHistory` — an endpoint that paginates
196
- * with `limit` and an `offset.id` cursor and declares neither. Its `search` and
197
- * `sort` are undeclared too; the endpoint takes `q`.
196
+ * with `limit` and an `offset.id` cursor and declares neither. Its `search` is
197
+ * undeclared too; the endpoint takes `q`.
198
+ * [Claude] `sort` is now declared as `string[]` while `getChatHistory` still
199
+ * sends a single string, so it is listed in `knownSortShape` below.
198
200
  *
199
201
  * Left alone rather than guessed at: swapping page/size for limit changes how
200
202
  * chat history pages, which wants someone who knows that UI. Recorded here so
@@ -206,6 +208,7 @@ const knownPaginationShape = new Set([
206
208
 
207
209
  const knownSortShape = new Set([
208
210
  'catalogGetDialogs',
211
+ 'catalogGetHistory',
209
212
  'listConditions',
210
213
  'listDynamicGroups',
211
214
  'listEmails',
@@ -109,44 +109,57 @@ const getUsersList = async (params: ApiParams) => {
109
109
  }
110
110
  };
111
111
 
112
- const getUser = async ({ itemId: id }: GetItemParams) => {
113
- const defaultObject = {
114
- roles: [],
115
- license: [],
116
- devices: [],
117
- device: {},
118
- generateDevice: false,
119
- variables: [
112
+ const userItemDefaultObject = {
113
+ roles: [],
114
+ license: [],
115
+ devices: [],
116
+ device: {},
117
+ generateDevice: false,
118
+ variables: [
119
+ {
120
+ key: '',
121
+ value: '',
122
+ },
123
+ ],
124
+ };
125
+
126
+ // [Claude] shared by get/add/update: the card shows the add/update response without re-fetching the user
127
+ const itemResponseHandler = (item: ApiParams) => {
128
+ const copy = deepCopy(item);
129
+ if (copy.license) {
130
+ copy.license.forEach((item: ApiParams) => {
131
+ item.name = item.prod;
132
+ });
133
+ }
134
+ if (copy.profile) {
135
+ copy.variables = Object.keys(copy.profile).map((key) => ({
136
+ key,
137
+ value: copy.profile[key],
138
+ }));
139
+ } else {
140
+ copy.variables = [
120
141
  {
121
142
  key: '',
122
143
  value: '',
123
144
  },
124
- ],
125
- };
145
+ ];
146
+ }
147
+ return copy;
148
+ };
126
149
 
127
- const itemResponseHandler = (item: ApiParams) => {
128
- const copy = deepCopy(item);
129
- if (copy.license) {
130
- copy.license.forEach((item: ApiParams) => {
131
- item.name = item.prod;
132
- });
133
- }
134
- if (copy.profile) {
135
- copy.variables = Object.keys(copy.profile).map((key) => ({
136
- key,
137
- value: copy.profile[key],
138
- }));
139
- } else {
140
- copy.variables = [
141
- {
142
- key: '',
143
- value: '',
144
- },
145
- ];
146
- }
147
- return copy;
148
- };
150
+ // [Claude] add/update responses echo license as `{ id }` only (see preRequestHandler) — take names from the sent item
151
+ const restoreLicenseNames =
152
+ (sentLicense: ApiParams[] = []) =>
153
+ (item: ApiParams) => ({
154
+ ...item,
155
+ license: item.license.map((license: ApiParams) => ({
156
+ ...license,
157
+ name:
158
+ license.name ?? sentLicense.find(({ id }) => id === license.id)?.name,
159
+ })),
160
+ });
149
161
 
162
+ const getUser = async ({ itemId: id }: GetItemParams) => {
150
163
  const url = `${baseUrl}/${id}`;
151
164
 
152
165
  try {
@@ -155,7 +168,7 @@ const getUser = async ({ itemId: id }: GetItemParams) => {
155
168
  snakeToCamel([
156
169
  'profile',
157
170
  ]),
158
- merge(defaultObject),
171
+ merge(userItemDefaultObject),
159
172
  itemResponseHandler,
160
173
  ]);
161
174
  } catch (err) {
@@ -215,6 +228,9 @@ const addUser = async ({ itemInstance }: AddItemParams) => {
215
228
  snakeToCamel([
216
229
  'profile',
217
230
  ]),
231
+ merge(userItemDefaultObject),
232
+ itemResponseHandler,
233
+ restoreLicenseNames(itemInstance.license),
218
234
  ]);
219
235
  } catch (err) {
220
236
  throw applyTransform(err, [
@@ -247,6 +263,9 @@ const updateUser = async ({ itemInstance, itemId: id }: UpdateItemParams) => {
247
263
  snakeToCamel([
248
264
  'profile',
249
265
  ]),
266
+ merge(userItemDefaultObject),
267
+ itemResponseHandler,
268
+ restoreLicenseNames(itemInstance.license),
250
269
  ]);
251
270
  } catch (err) {
252
271
  throw applyTransform(err, [
@@ -46,6 +46,8 @@ export interface ApiUser {
46
46
  presence?: ApiUserPresence;
47
47
  profile?: ApiUserProfile;
48
48
  roles?: ApiObjectId[];
49
+ status?: string;
50
+ team?: ApiObjectId;
49
51
  totpUrl?: string;
50
52
  updatedAt?: string;
51
53
  updatedBy?: ApiUserId;
@@ -44,4 +44,8 @@ export type CatalogGetHistory2Params = {
44
44
  * a specified set of variables.
45
45
  */
46
46
  groupStringString?: string;
47
+ /**
48
+ * Sort the result: "date" | "+date" (OLDest..to..NEWest), "-date" (default, NEWest..to..OLDest)
49
+ */
50
+ sort?: string[];
47
51
  };
@@ -49,4 +49,8 @@ export type CatalogGetHistoryParams = {
49
49
  * a specified set of variables.
50
50
  */
51
51
  groupString?: string;
52
+ /**
53
+ * Sort the result: "date" | "+date" (OLDest..to..NEWest), "-date" (default, NEWest..to..OLDest)
54
+ */
55
+ sort?: string[];
52
56
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export interface EngineMemberServiceTransferAttemptBody {
9
+ /** Exactly one of agent_id or queue_id must be set. */
10
+ agentId?: string;
11
+ queueId?: string;
12
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export interface EngineTransferAttemptResponse {
9
+ [key: string]: unknown;
10
+ }
@@ -627,6 +627,7 @@ export * from './engineMemberServicePatchMemberOneBody';
627
627
  export * from './engineMemberServicePatchMemberOneBodyVariables';
628
628
  export * from './engineMemberServiceResetMembersBody';
629
629
  export * from './engineMemberServiceResetMembersBodyVariables';
630
+ export * from './engineMemberServiceTransferAttemptBody';
630
631
  export * from './engineMemberServiceUpdateMemberBody';
631
632
  export * from './engineMemberServiceUpdateMemberBodyVariables';
632
633
  export * from './engineMovePositionRoutingOutboundCallResponse';
@@ -756,6 +757,7 @@ export * from './engineTeamTriggerServiceUpdateTeamTriggerBody';
756
757
  export * from './engineTestEmailProfileResponse';
757
758
  export * from './engineTimezone';
758
759
  export * from './engineTranscriptLookup';
760
+ export * from './engineTransferAttemptResponse';
759
761
  export * from './engineTrigger';
760
762
  export * from './engineTriggerEventType';
761
763
  export * from './engineTriggerJob';
@@ -867,6 +869,7 @@ export * from './listArticles2Params';
867
869
  export * from './listArticlesArticlesParams';
868
870
  export * from './listArticlesParams';
869
871
  export * from './listArticlesState';
872
+ export * from './listArticlesTagMatch';
870
873
  export * from './listArticlesType';
871
874
  export * from './listCallExportsParams';
872
875
  export * from './listCaseArticlesParams';
@@ -1050,6 +1053,8 @@ export * from './searchAgentStatusStatisticItemParams';
1050
1053
  export * from './searchAgentStatusStatisticParams';
1051
1054
  export * from './searchAgentTeamParams';
1052
1055
  export * from './searchAgentTriggerParams';
1056
+ export * from './searchAllowedUploadTypesChannelItem';
1057
+ export * from './searchAllowedUploadTypesParams';
1053
1058
  export * from './searchAttemptsHistoryParams';
1054
1059
  export * from './searchAttemptsParams';
1055
1060
  export * from './searchAuditFormParams';
@@ -1168,6 +1173,7 @@ export * from './shiftTemplateServiceUpdateShiftTemplateBody';
1168
1173
  export * from './shiftTemplateServiceUpdateShiftTemplateBodyItem';
1169
1174
  export * from './signupParams';
1170
1175
  export * from './spacesArticlesSearchParams';
1176
+ export * from './storageAllowedUploadTypes';
1171
1177
  export * from './storageBackendProfile';
1172
1178
  export * from './storageBackendProfileProperties';
1173
1179
  export * from './storageBackendProfileServicePatchBackendProfileBody';
@@ -1214,6 +1220,7 @@ export * from './storageImportTemplateServicePatchImportTemplateBody';
1214
1220
  export * from './storageImportTemplateServicePatchImportTemplateBodyParameters';
1215
1221
  export * from './storageImportTemplateServiceUpdateImportTemplateBody';
1216
1222
  export * from './storageImportTemplateServiceUpdateImportTemplateBodyParameters';
1223
+ export * from './storageListAllowedUploadTypes';
1217
1224
  export * from './storageListBackendProfile';
1218
1225
  export * from './storageListCognitiveProfile';
1219
1226
  export * from './storageListCognitiveProfileVoices';
@@ -1251,6 +1258,7 @@ export * from './storageUploadFileUrlResponse';
1251
1258
  export * from './storageUploadStatusCode';
1252
1259
  export * from './suggestTagsParams';
1253
1260
  export * from './threadManagementGetParams';
1261
+ export * from './threadManagementRemoveMemberParams';
1254
1262
  export * from './threadManagementSearchLeftParams';
1255
1263
  export * from './threadManagementSearchLeftTypesItem';
1256
1264
  export * from './threadManagementSearchParams';
@@ -5,6 +5,7 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  import type { ListArticlesState } from './listArticlesState';
8
+ import type { ListArticlesTagMatch } from './listArticlesTagMatch';
8
9
  import type { ListArticlesType } from './listArticlesType';
9
10
 
10
11
  export type ListArticlesParams = {
@@ -44,4 +45,12 @@ export type ListArticlesParams = {
44
45
  * Set of fields to return.
45
46
  */
46
47
  fields?: string[];
48
+ /**
49
+ * How the tag filter combines the tags.
50
+ *
51
+ * - TAG_MATCH_UNSPECIFIED: Default mode: match articles having ANY listed tag (OR).
52
+ * - TAG_MATCH_ALL: Match articles having ALL listed tags (AND).
53
+ * - TAG_MATCH_ANY: Match articles having ANY listed tag (OR).
54
+ */
55
+ tagMatch?: ListArticlesTagMatch;
47
56
  };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export type ListArticlesTagMatch =
9
+ (typeof ListArticlesTagMatch)[keyof typeof ListArticlesTagMatch];
10
+
11
+ export const ListArticlesTagMatch = {
12
+ TagMatchUnspecified: 'TAG_MATCH_UNSPECIFIED',
13
+ TagMatchAll: 'TAG_MATCH_ALL',
14
+ TagMatchAny: 'TAG_MATCH_ANY',
15
+ } as const;
@@ -42,6 +42,17 @@ export type MessageHistorySearchLeftThreadsMessagesHistoryParams = {
42
42
  * true -> fetch messages newer than the cursor (moving toward the present)
43
43
  */
44
44
  cursorBefore?: boolean;
45
+ /**
46
+ * Fetch a window centred on the cursor message in a single request,
47
+ * ignoring `before`. The window holds `size` messages, newest first:
48
+ * the cursor message with up to size - size/2 - 1 older ones, and up to
49
+ * size/2 newer ones. When one side runs short the window is not refilled
50
+ * from the other. next_cursor / prev_cursor continue the history from the
51
+ * window's oldest / newest message.
52
+ *
53
+ * Supported by SearchThreadMessagesHistory only.
54
+ */
55
+ cursorAround?: boolean;
45
56
  /**
46
57
  * Maximum number of messages to return.
47
58
  */
@@ -42,6 +42,17 @@ export type MessageHistorySearchMessagesParams = {
42
42
  * true -> fetch messages newer than the cursor (moving toward the present)
43
43
  */
44
44
  cursorBefore?: boolean;
45
+ /**
46
+ * Fetch a window centred on the cursor message in a single request,
47
+ * ignoring `before`. The window holds `size` messages, newest first:
48
+ * the cursor message with up to size - size/2 - 1 older ones, and up to
49
+ * size/2 newer ones. When one side runs short the window is not refilled
50
+ * from the other. next_cursor / prev_cursor continue the history from the
51
+ * window's oldest / newest message.
52
+ *
53
+ * Supported by SearchThreadMessagesHistory only.
54
+ */
55
+ cursorAround?: boolean;
45
56
  /**
46
57
  * Maximum number of matches to return.
47
58
  */
@@ -36,6 +36,17 @@ export type MessageHistorySearchThreadMessagesHistoryParams = {
36
36
  * true -> fetch messages newer than the cursor (moving toward the present)
37
37
  */
38
38
  cursorBefore?: boolean;
39
+ /**
40
+ * Fetch a window centred on the cursor message in a single request,
41
+ * ignoring `before`. The window holds `size` messages, newest first:
42
+ * the cursor message with up to size - size/2 - 1 older ones, and up to
43
+ * size/2 newer ones. When one side runs short the window is not refilled
44
+ * from the other. next_cursor / prev_cursor continue the history from the
45
+ * window's oldest / newest message.
46
+ *
47
+ * Supported by SearchThreadMessagesHistory only.
48
+ */
49
+ cursorAround?: boolean;
39
50
  /**
40
51
  * Maximum number of messages to return.
41
52
  */
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export type SearchAllowedUploadTypesChannelItem =
9
+ (typeof SearchAllowedUploadTypesChannelItem)[keyof typeof SearchAllowedUploadTypesChannelItem];
10
+
11
+ export const SearchAllowedUploadTypesChannelItem = {
12
+ UnknownChannel: 'UnknownChannel',
13
+ ChatChannel: 'ChatChannel',
14
+ MailChannel: 'MailChannel',
15
+ CallChannel: 'CallChannel',
16
+ LogChannel: 'LogChannel',
17
+ MediaChannel: 'MediaChannel',
18
+ KnowledgebaseChannel: 'KnowledgebaseChannel',
19
+ CasesChannel: 'CasesChannel',
20
+ ScreenRecordingChannel: 'ScreenRecordingChannel',
21
+ } as const;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { SearchAllowedUploadTypesChannelItem } from './searchAllowedUploadTypesChannelItem';
8
+
9
+ export type SearchAllowedUploadTypesParams = {
10
+ /**
11
+ * Channels to return. Empty: every channel.
12
+ *
13
+ * - ScreenRecordingChannel: ScreenshotChannel = 8; // deprecated
14
+ */
15
+ channel?: SearchAllowedUploadTypesChannelItem[];
16
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { StorageUploadFileChannel } from './storageUploadFileChannel';
8
+
9
+ export interface StorageAllowedUploadTypes {
10
+ channel?: StorageUploadFileChannel;
11
+ /**
12
+ * Glob patterns (* and ?) of the enabled policies covering the channel, as
13
+ * stored, in match order, without duplicates. Not every pattern fits an HTML
14
+ * accept attribute, and one can match every type without being * or *\/*.
15
+ */
16
+ mimeTypes?: string[];
17
+ /**
18
+ * The type check passes any MIME type on this channel: no enabled policy
19
+ * with MIME types covers it, or one of the patterns below is * or *\/*.
20
+ * Ignore mime_types when true. What follows a type match still applies: the
21
+ * size limit and, on MediaChannel, the check of the content against the
22
+ * declared type.
23
+ */
24
+ unrestricted?: boolean;
25
+ }
@@ -6,6 +6,7 @@
6
6
  */
7
7
 
8
8
  export interface StorageCustomFileProperties {
9
+ duration?: string;
9
10
  endTime?: string;
10
11
  height?: string;
11
12
  startTime?: string;
@@ -4,11 +4,15 @@
4
4
  * Webitel API
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
+ import type { StorageCustomFileProperties } from './storageCustomFileProperties';
8
+ import type { StorageThumbnail } from './storageThumbnail';
7
9
 
8
10
  export interface StorageGenerateFileLinkResponseMetadata {
9
11
  id?: string;
10
12
  mimeType?: string;
11
13
  name?: string;
14
+ properties?: StorageCustomFileProperties;
12
15
  size?: string;
16
+ thumbnail?: StorageThumbnail;
13
17
  uuid?: string;
14
18
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+ import type { StorageAllowedUploadTypes } from './storageAllowedUploadTypes';
8
+
9
+ export interface StorageListAllowedUploadTypes {
10
+ items?: StorageAllowedUploadTypes[];
11
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export type ThreadManagementRemoveMemberParams = {
9
+ reason?: string;
10
+ };
@@ -35,6 +35,17 @@
35
35
  * - The number of returned messages is controlled separately (e.g., via limit).
36
36
  */
37
37
  export interface WebitelImApiGatewayV1HistoryMessageCursorRequest {
38
+ /**
39
+ * Fetch a window centred on the cursor message in a single request,
40
+ * ignoring `before`. The window holds `size` messages, newest first:
41
+ * the cursor message with up to size - size/2 - 1 older ones, and up to
42
+ * size/2 newer ones. When one side runs short the window is not refilled
43
+ * from the other. next_cursor / prev_cursor continue the history from the
44
+ * window's oldest / newest message.
45
+ *
46
+ * Supported by SearchThreadMessagesHistory only.
47
+ */
48
+ around?: boolean;
38
49
  /**
39
50
  * Pagination direction flag.
40
51
  *
@@ -46,6 +46,8 @@ export interface ApiUser {
46
46
  presence?: ApiUserPresence;
47
47
  profile?: ApiUserProfile;
48
48
  roles?: ApiObjectId[];
49
+ status?: string;
50
+ team?: ApiObjectId;
49
51
  totp_url?: string;
50
52
  updated_at?: string;
51
53
  updated_by?: ApiUserId;
@@ -44,4 +44,8 @@ export type CatalogGetHistory2Params = {
44
44
  * a specified set of variables.
45
45
  */
46
46
  'group[string][string]'?: string;
47
+ /**
48
+ * Sort the result: "date" | "+date" (OLDest..to..NEWest), "-date" (default, NEWest..to..OLDest)
49
+ */
50
+ sort?: string[];
47
51
  };
@@ -49,4 +49,8 @@ export type CatalogGetHistoryParams = {
49
49
  * a specified set of variables.
50
50
  */
51
51
  'group[string]'?: string;
52
+ /**
53
+ * Sort the result: "date" | "+date" (OLDest..to..NEWest), "-date" (default, NEWest..to..OLDest)
54
+ */
55
+ sort?: string[];
52
56
  };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export interface EngineMemberServiceTransferAttemptBody {
9
+ /** Exactly one of agent_id or queue_id must be set. */
10
+ agent_id?: string;
11
+ queue_id?: string;
12
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export interface EngineTransferAttemptResponse {
9
+ [key: string]: unknown;
10
+ }
@@ -619,6 +619,7 @@ export * from './engineMemberServicePatchMemberOneBody';
619
619
  export * from './engineMemberServicePatchMemberOneBodyVariables';
620
620
  export * from './engineMemberServiceResetMembersBody';
621
621
  export * from './engineMemberServiceResetMembersBodyVariables';
622
+ export * from './engineMemberServiceTransferAttemptBody';
622
623
  export * from './engineMemberServiceUpdateMemberBody';
623
624
  export * from './engineMemberServiceUpdateMemberBodyVariables';
624
625
  export * from './engineMovePositionRoutingOutboundCallResponse';
@@ -748,6 +749,7 @@ export * from './engineTeamTriggerServiceUpdateTeamTriggerBody';
748
749
  export * from './engineTestEmailProfileResponse';
749
750
  export * from './engineTimezone';
750
751
  export * from './engineTranscriptLookup';
752
+ export * from './engineTransferAttemptResponse';
751
753
  export * from './engineTrigger';
752
754
  export * from './engineTriggerEventType';
753
755
  export * from './engineTriggerJob';
@@ -859,6 +861,7 @@ export * from './listArticles2Params';
859
861
  export * from './listArticlesArticlesParams';
860
862
  export * from './listArticlesParams';
861
863
  export * from './listArticlesState';
864
+ export * from './listArticlesTagMatch';
862
865
  export * from './listArticlesType';
863
866
  export * from './listCallExportsParams';
864
867
  export * from './listCaseArticlesParams';
@@ -1040,6 +1043,8 @@ export * from './searchAgentStatusStatisticItemParams';
1040
1043
  export * from './searchAgentStatusStatisticParams';
1041
1044
  export * from './searchAgentTeamParams';
1042
1045
  export * from './searchAgentTriggerParams';
1046
+ export * from './searchAllowedUploadTypesChannelItem';
1047
+ export * from './searchAllowedUploadTypesParams';
1043
1048
  export * from './searchAttemptsHistoryParams';
1044
1049
  export * from './searchAttemptsParams';
1045
1050
  export * from './searchAuditFormParams';
@@ -1156,6 +1161,7 @@ export * from './shiftTemplateServiceUpdateShiftTemplateBody';
1156
1161
  export * from './shiftTemplateServiceUpdateShiftTemplateBodyItem';
1157
1162
  export * from './signupParams';
1158
1163
  export * from './spacesArticlesSearchParams';
1164
+ export * from './storageAllowedUploadTypes';
1159
1165
  export * from './storageBackendProfile';
1160
1166
  export * from './storageBackendProfileProperties';
1161
1167
  export * from './storageBackendProfileServicePatchBackendProfileBody';
@@ -1202,6 +1208,7 @@ export * from './storageImportTemplateServicePatchImportTemplateBody';
1202
1208
  export * from './storageImportTemplateServicePatchImportTemplateBodyParameters';
1203
1209
  export * from './storageImportTemplateServiceUpdateImportTemplateBody';
1204
1210
  export * from './storageImportTemplateServiceUpdateImportTemplateBodyParameters';
1211
+ export * from './storageListAllowedUploadTypes';
1205
1212
  export * from './storageListBackendProfile';
1206
1213
  export * from './storageListCognitiveProfile';
1207
1214
  export * from './storageListCognitiveProfileVoices';
@@ -1239,6 +1246,7 @@ export * from './storageUploadFileUrlResponse';
1239
1246
  export * from './storageUploadStatusCode';
1240
1247
  export * from './suggestTagsParams';
1241
1248
  export * from './threadManagementGetParams';
1249
+ export * from './threadManagementRemoveMemberParams';
1242
1250
  export * from './threadManagementSearchLeftParams';
1243
1251
  export * from './threadManagementSearchLeftTypesItem';
1244
1252
  export * from './threadManagementSearchParams';
@@ -5,6 +5,7 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  import type { ListArticlesState } from './listArticlesState';
8
+ import type { ListArticlesTagMatch } from './listArticlesTagMatch';
8
9
  import type { ListArticlesType } from './listArticlesType';
9
10
 
10
11
  export type ListArticlesParams = {
@@ -44,4 +45,12 @@ export type ListArticlesParams = {
44
45
  * Set of fields to return.
45
46
  */
46
47
  fields?: string[];
48
+ /**
49
+ * How the tag filter combines the tags.
50
+ *
51
+ * - TAG_MATCH_UNSPECIFIED: Default mode: match articles having ANY listed tag (OR).
52
+ * - TAG_MATCH_ALL: Match articles having ALL listed tags (AND).
53
+ * - TAG_MATCH_ANY: Match articles having ANY listed tag (OR).
54
+ */
55
+ tag_match?: ListArticlesTagMatch;
47
56
  };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Generated by orval 🍺
3
+ * Do not edit manually.
4
+ * Webitel API
5
+ * OpenAPI spec version: 24.04.0
6
+ */
7
+
8
+ export type ListArticlesTagMatch =
9
+ (typeof ListArticlesTagMatch)[keyof typeof ListArticlesTagMatch];
10
+
11
+ export const ListArticlesTagMatch = {
12
+ TagMatchUnspecified: 'TAG_MATCH_UNSPECIFIED',
13
+ TagMatchAll: 'TAG_MATCH_ALL',
14
+ TagMatchAny: 'TAG_MATCH_ANY',
15
+ } as const;
@@ -42,6 +42,17 @@ export type MessageHistorySearchLeftThreadsMessagesHistoryParams = {
42
42
  * true -> fetch messages newer than the cursor (moving toward the present)
43
43
  */
44
44
  'cursor.before'?: boolean;
45
+ /**
46
+ * Fetch a window centred on the cursor message in a single request,
47
+ * ignoring `before`. The window holds `size` messages, newest first:
48
+ * the cursor message with up to size - size/2 - 1 older ones, and up to
49
+ * size/2 newer ones. When one side runs short the window is not refilled
50
+ * from the other. next_cursor / prev_cursor continue the history from the
51
+ * window's oldest / newest message.
52
+ *
53
+ * Supported by SearchThreadMessagesHistory only.
54
+ */
55
+ 'cursor.around'?: boolean;
45
56
  /**
46
57
  * Maximum number of messages to return.
47
58
  */