@webitel/api-services 26.12.6 → 26.12.7

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 (128) hide show
  1. package/package.json +1 -1
  2. package/src/gen/_models/index.ts +3 -14
  3. package/src/gen/_models/listSpacesParams.ts +8 -0
  4. package/src/gen/_models/listSpacesState.ts +15 -0
  5. package/src/gen/_models/threadManagementSearchLeftParams.ts +2 -0
  6. package/src/gen/_models/webitelImApiGatewayV1Thread.ts +8 -0
  7. package/src/gen/_models/webitelImApiGatewayV1ThreadChannelType.ts +4 -0
  8. package/src/gen/_models/webitelImApiGatewayV1ThreadQueue.ts +16 -0
  9. package/src/gen/_models/webitelKbArticle.ts +2 -0
  10. package/src/gen/_models/webitelKbInputArticle.ts +2 -0
  11. package/src/gen/_models/webitelKbInputSpace.ts +7 -3
  12. package/src/gen/_models/webitelKbSpace.ts +7 -1
  13. package/src/gen/_models/webitelKbSpaceState.ts +21 -0
  14. package/src/gen-wire/_models/index.ts +3 -14
  15. package/src/gen-wire/_models/listSpacesParams.ts +8 -0
  16. package/src/gen-wire/_models/listSpacesState.ts +15 -0
  17. package/src/gen-wire/_models/threadManagementSearchLeftParams.ts +2 -0
  18. package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +8 -0
  19. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.ts +4 -0
  20. package/src/gen-wire/_models/webitelImApiGatewayV1ThreadQueue.ts +16 -0
  21. package/src/gen-wire/_models/webitelKbArticle.ts +2 -0
  22. package/src/gen-wire/_models/webitelKbInputArticle.ts +2 -0
  23. package/src/gen-wire/_models/webitelKbInputSpace.ts +7 -3
  24. package/src/gen-wire/_models/webitelKbSpace.ts +7 -1
  25. package/src/gen-wire/_models/webitelKbSpaceState.ts +21 -0
  26. package/src/gen-wire/articles/articles.zod.ts +58 -0
  27. package/src/gen-wire/devices/devices.ts +0 -18
  28. package/src/gen-wire/devices/devices.zod.ts +0 -44
  29. package/src/gen-wire/domains/domains.ts +0 -86
  30. package/src/gen-wire/domains/domains.zod.ts +0 -192
  31. package/src/gen-wire/email-profile-service/email-profile-service.ts +0 -13
  32. package/src/gen-wire/email-profile-service/email-profile-service.zod.ts +0 -11
  33. package/src/gen-wire/index.ts +11 -25
  34. package/src/gen-wire/spaces/spaces.zod.ts +123 -21
  35. package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +58 -6
  36. package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +14 -1
  37. package/types/.tsbuildinfo +1 -1
  38. package/types/gen/_models/index.d.ts +3 -14
  39. package/types/gen/_models/listSpacesParams.d.ts +8 -0
  40. package/types/gen/_models/listSpacesState.d.ts +12 -0
  41. package/types/gen/_models/threadManagementSearchLeftParams.d.ts +2 -0
  42. package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
  43. package/types/gen/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +4 -0
  44. package/types/gen/_models/webitelImApiGatewayV1ThreadQueue.d.ts +15 -0
  45. package/types/gen/_models/webitelKbArticle.d.ts +2 -0
  46. package/types/gen/_models/webitelKbInputArticle.d.ts +2 -0
  47. package/types/gen/_models/webitelKbInputSpace.d.ts +7 -3
  48. package/types/gen/_models/webitelKbSpace.d.ts +7 -1
  49. package/types/gen/_models/webitelKbSpaceState.d.ts +18 -0
  50. package/types/gen-wire/_models/index.d.ts +3 -14
  51. package/types/gen-wire/_models/listSpacesParams.d.ts +8 -0
  52. package/types/gen-wire/_models/listSpacesState.d.ts +12 -0
  53. package/types/gen-wire/_models/threadManagementSearchLeftParams.d.ts +2 -0
  54. package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
  55. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +4 -0
  56. package/types/gen-wire/_models/webitelImApiGatewayV1ThreadQueue.d.ts +15 -0
  57. package/types/gen-wire/_models/webitelKbArticle.d.ts +2 -0
  58. package/types/gen-wire/_models/webitelKbInputArticle.d.ts +2 -0
  59. package/types/gen-wire/_models/webitelKbInputSpace.d.ts +7 -3
  60. package/types/gen-wire/_models/webitelKbSpace.d.ts +7 -1
  61. package/types/gen-wire/_models/webitelKbSpaceState.d.ts +18 -0
  62. package/types/gen-wire/articles/articles.zod.d.ts +13 -0
  63. package/types/gen-wire/devices/devices.d.ts +1 -3
  64. package/types/gen-wire/devices/devices.zod.d.ts +0 -32
  65. package/types/gen-wire/domains/domains.d.ts +1 -13
  66. package/types/gen-wire/domains/domains.zod.d.ts +0 -160
  67. package/types/gen-wire/email-profile-service/email-profile-service.d.ts +1 -3
  68. package/types/gen-wire/email-profile-service/email-profile-service.zod.d.ts +0 -9
  69. package/types/gen-wire/index.d.ts +3 -3
  70. package/types/gen-wire/spaces/spaces.zod.d.ts +60 -3
  71. package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +32 -0
  72. package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +8 -0
  73. package/src/gen/_models/apiCreateDomainRequest.ts +0 -13
  74. package/src/gen/_models/apiCreateDomainResponse.ts +0 -10
  75. package/src/gen/_models/apiListRegistrationsResponse.ts +0 -14
  76. package/src/gen/_models/apiRegistration.ts +0 -22
  77. package/src/gen/_models/apiSearchDomainsResponse.ts +0 -11
  78. package/src/gen/_models/apiUpdateDomainResponse.ts +0 -11
  79. package/src/gen/_models/deleteDomain2Params.ts +0 -10
  80. package/src/gen/_models/domainsUpdateDomainBody.ts +0 -11
  81. package/src/gen/_models/domainsUpdateDomainBodyBody.ts +0 -9
  82. package/src/gen/_models/domainsUpdateDomainBodyDomain.ts +0 -23
  83. package/src/gen/_models/engineTestEmailProfileResponse.ts +0 -10
  84. package/src/gen/_models/listRegistrationsParams.ts +0 -21
  85. package/src/gen/_models/readDomain2Params.ts +0 -10
  86. package/src/gen/_models/searchDomainsParams.ts +0 -20
  87. package/src/gen-wire/_models/apiCreateDomainRequest.ts +0 -13
  88. package/src/gen-wire/_models/apiCreateDomainResponse.ts +0 -10
  89. package/src/gen-wire/_models/apiListRegistrationsResponse.ts +0 -14
  90. package/src/gen-wire/_models/apiRegistration.ts +0 -22
  91. package/src/gen-wire/_models/apiSearchDomainsResponse.ts +0 -11
  92. package/src/gen-wire/_models/apiUpdateDomainResponse.ts +0 -11
  93. package/src/gen-wire/_models/deleteDomain2Params.ts +0 -10
  94. package/src/gen-wire/_models/domainsUpdateDomainBody.ts +0 -11
  95. package/src/gen-wire/_models/domainsUpdateDomainBodyBody.ts +0 -9
  96. package/src/gen-wire/_models/domainsUpdateDomainBodyDomain.ts +0 -23
  97. package/src/gen-wire/_models/engineTestEmailProfileResponse.ts +0 -10
  98. package/src/gen-wire/_models/listRegistrationsParams.ts +0 -21
  99. package/src/gen-wire/_models/readDomain2Params.ts +0 -10
  100. package/src/gen-wire/_models/searchDomainsParams.ts +0 -20
  101. package/types/gen/_models/apiCreateDomainRequest.d.ts +0 -12
  102. package/types/gen/_models/apiCreateDomainResponse.d.ts +0 -9
  103. package/types/gen/_models/apiListRegistrationsResponse.d.ts +0 -13
  104. package/types/gen/_models/apiRegistration.d.ts +0 -21
  105. package/types/gen/_models/apiSearchDomainsResponse.d.ts +0 -10
  106. package/types/gen/_models/apiUpdateDomainResponse.d.ts +0 -10
  107. package/types/gen/_models/deleteDomain2Params.d.ts +0 -9
  108. package/types/gen/_models/domainsUpdateDomainBody.d.ts +0 -10
  109. package/types/gen/_models/domainsUpdateDomainBodyBody.d.ts +0 -8
  110. package/types/gen/_models/domainsUpdateDomainBodyDomain.d.ts +0 -22
  111. package/types/gen/_models/engineTestEmailProfileResponse.d.ts +0 -9
  112. package/types/gen/_models/listRegistrationsParams.d.ts +0 -20
  113. package/types/gen/_models/readDomain2Params.d.ts +0 -9
  114. package/types/gen/_models/searchDomainsParams.d.ts +0 -19
  115. package/types/gen-wire/_models/apiCreateDomainRequest.d.ts +0 -12
  116. package/types/gen-wire/_models/apiCreateDomainResponse.d.ts +0 -9
  117. package/types/gen-wire/_models/apiListRegistrationsResponse.d.ts +0 -13
  118. package/types/gen-wire/_models/apiRegistration.d.ts +0 -21
  119. package/types/gen-wire/_models/apiSearchDomainsResponse.d.ts +0 -10
  120. package/types/gen-wire/_models/apiUpdateDomainResponse.d.ts +0 -10
  121. package/types/gen-wire/_models/deleteDomain2Params.d.ts +0 -9
  122. package/types/gen-wire/_models/domainsUpdateDomainBody.d.ts +0 -10
  123. package/types/gen-wire/_models/domainsUpdateDomainBodyBody.d.ts +0 -8
  124. package/types/gen-wire/_models/domainsUpdateDomainBodyDomain.d.ts +0 -22
  125. package/types/gen-wire/_models/engineTestEmailProfileResponse.d.ts +0 -9
  126. package/types/gen-wire/_models/listRegistrationsParams.d.ts +0 -20
  127. package/types/gen-wire/_models/readDomain2Params.d.ts +0 -9
  128. package/types/gen-wire/_models/searchDomainsParams.d.ts +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/api-services",
3
- "version": "26.12.6",
3
+ "version": "26.12.7",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,8 +29,6 @@ export * from './apiAccessRule';
29
29
  export * from './apiAccessToken';
30
30
  export * from './apiClaim';
31
31
  export * from './apiCreateDeviceResponse';
32
- export * from './apiCreateDomainRequest';
33
- export * from './apiCreateDomainResponse';
34
32
  export * from './apiCreateRoleRequest';
35
33
  export * from './apiCreateRoleResponse';
36
34
  export * from './apiCreateUserResponse';
@@ -86,7 +84,6 @@ export * from './apiLicenseUser';
86
84
  export * from './apiLicenseUsersResponse';
87
85
  export * from './apiLicenseV1';
88
86
  export * from './apiListAccessResponseV1';
89
- export * from './apiListRegistrationsResponse';
90
87
  export * from './apiLoginResponse';
91
88
  export * from './apiLogoutUserRequest';
92
89
  export * from './apiLogoutUserResponse';
@@ -106,14 +103,12 @@ export * from './apiReadDeviceResponse';
106
103
  export * from './apiReadDomainResponse';
107
104
  export * from './apiReadRoleResponse';
108
105
  export * from './apiReadUserResponse';
109
- export * from './apiRegistration';
110
106
  export * from './apiRole';
111
107
  export * from './apiRoleId';
112
108
  export * from './apiRoleMetadata';
113
109
  export * from './apiRoleMetadataResponse';
114
110
  export * from './apiSearchClassesResponse';
115
111
  export * from './apiSearchDeviceResponse';
116
- export * from './apiSearchDomainsResponse';
117
112
  export * from './apiSearchLDAPResponse';
118
113
  export * from './apiSearchOAuthServiceResponse';
119
114
  export * from './apiSearchPermissionResponse';
@@ -129,7 +124,6 @@ export * from './apiUpdateAccessResponseV1';
129
124
  export * from './apiUpdateClassResponse';
130
125
  export * from './apiUpdateCustomerResponse';
131
126
  export * from './apiUpdateDeviceResponse';
132
- export * from './apiUpdateDomainResponse';
133
127
  export * from './apiUpdatePasswordRequest';
134
128
  export * from './apiUpdatePasswordResponse';
135
129
  export * from './apiUpdateRoleResponse';
@@ -312,7 +306,6 @@ export * from './deleteData2Params';
312
306
  export * from './deleteDataParams';
313
307
  export * from './deleteDevice2Params';
314
308
  export * from './deleteDeviceParams';
315
- export * from './deleteDomain2Params';
316
309
  export * from './deleteDomainParams';
317
310
  export * from './deleteEmailParams';
318
311
  export * from './deleteEmailsParams';
@@ -356,9 +349,6 @@ export * from './dictionariesBatchCreateDataBody';
356
349
  export * from './dictionariesBatchCreateDataBodyRowsItem';
357
350
  export * from './dictionariesImportCSVBody';
358
351
  export * from './dictionariesImportCSVBodyFields';
359
- export * from './domainsUpdateDomainBody';
360
- export * from './domainsUpdateDomainBodyBody';
361
- export * from './domainsUpdateDomainBodyDomain';
362
352
  export * from './downloadCallArchive200';
363
353
  export * from './downloadCallArchiveParams';
364
354
  export * from './downloadCallScreenrecordingArchive200';
@@ -756,7 +746,6 @@ export * from './engineTeamTriggerServicePatchTeamTriggerBody';
756
746
  export * from './engineTeamTriggerServiceRunTeamTriggerBody';
757
747
  export * from './engineTeamTriggerServiceRunTeamTriggerBodyVariables';
758
748
  export * from './engineTeamTriggerServiceUpdateTeamTriggerBody';
759
- export * from './engineTestEmailProfileResponse';
760
749
  export * from './engineTimezone';
761
750
  export * from './engineTranscriptLookup';
762
751
  export * from './engineTransferAttemptResponse';
@@ -898,7 +887,6 @@ export * from './listModelsParams';
898
887
  export * from './listObjectAccessParams';
899
888
  export * from './listPhonesParams';
900
889
  export * from './listPrioritiesParams';
901
- export * from './listRegistrationsParams';
902
890
  export * from './listRelatedCasesParams';
903
891
  export * from './listScreenrecordingExportsParams';
904
892
  export * from './listServicesParams';
@@ -908,6 +896,7 @@ export * from './listSourcesParams';
908
896
  export * from './listSourcesTypeItem';
909
897
  export * from './listSpacesParams';
910
898
  export * from './listSpacesSpacesParams';
899
+ export * from './listSpacesState';
911
900
  export * from './listStatusConditionsParams';
912
901
  export * from './listStatusesParams';
913
902
  export * from './listTagsParams';
@@ -1007,7 +996,6 @@ export * from './readCallParams';
1007
996
  export * from './readClassParams';
1008
997
  export * from './readCommunicationTypeParams';
1009
998
  export * from './readDeviceParams';
1010
- export * from './readDomain2Params';
1011
999
  export * from './readDomainParams';
1012
1000
  export * from './readListCommunicationParams';
1013
1001
  export * from './readListParams';
@@ -1083,7 +1071,6 @@ export * from './searchContactsParams';
1083
1071
  export * from './searchDataParams';
1084
1072
  export * from './searchDeviceAuditParams';
1085
1073
  export * from './searchDeviceParams';
1086
- export * from './searchDomainsParams';
1087
1074
  export * from './searchEmailProfileParams';
1088
1075
  export * from './searchFilePoliciesParams';
1089
1076
  export * from './searchFilesByCallChannelItem';
@@ -1755,6 +1742,7 @@ export * from './webitelImApiGatewayV1ThreadPreview';
1755
1742
  export * from './webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody';
1756
1743
  export * from './webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody';
1757
1744
  export * from './webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody';
1745
+ export * from './webitelImApiGatewayV1ThreadQueue';
1758
1746
  export * from './webitelImApiGatewayV1ThreadRole';
1759
1747
  export * from './webitelImApiGatewayV1ThreadSettings';
1760
1748
  export * from './webitelImApiGatewayV1ThreadTagManagementAddTagBody';
@@ -1991,6 +1979,7 @@ export * from './webitelKbSemanticSearchRequest';
1991
1979
  export * from './webitelKbSemanticSearchResponse';
1992
1980
  export * from './webitelKbSpace';
1993
1981
  export * from './webitelKbSpaceList';
1982
+ export * from './webitelKbSpaceState';
1994
1983
  export * from './webitelKbSuggestRequest';
1995
1984
  export * from './webitelKbSuggestResponse';
1996
1985
  export * from './webitelKbSuggestTagsResponse';
@@ -4,6 +4,7 @@
4
4
  * Webitel API
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
+ import type { ListSpacesState } from './listSpacesState';
7
8
 
8
9
  export type ListSpacesParams = {
9
10
  /**
@@ -26,4 +27,11 @@ export type ListSpacesParams = {
26
27
  * Set of fields to return.
27
28
  */
28
29
  fields?: string[];
30
+ /**
31
+ * Optional state filter.
32
+ *
33
+ * - SPACE_STATE_ACTIVE: Articles of the space are retrievable.
34
+ * - SPACE_STATE_INACTIVE: Articles are kept but excluded from search and suggestions.
35
+ */
36
+ state?: ListSpacesState;
29
37
  };
@@ -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 ListSpacesState =
9
+ (typeof ListSpacesState)[keyof typeof ListSpacesState];
10
+
11
+ export const ListSpacesState = {
12
+ SpaceStateUnspecified: 'SPACE_STATE_UNSPECIFIED',
13
+ SpaceStateActive: 'SPACE_STATE_ACTIVE',
14
+ SpaceStateInactive: 'SPACE_STATE_INACTIVE',
15
+ } as const;
@@ -11,6 +11,7 @@ export type ThreadManagementSearchLeftParams = {
11
11
  * List of fields that should be returned in the response.
12
12
  * If empty, a default set of fields is returned.
13
13
  * Used for response optimization.
14
+ * The default set includes "channel" and "queue".
14
15
  */
15
16
  fields?: string[];
16
17
  /**
@@ -27,6 +28,7 @@ export type ThreadManagementSearchLeftParams = {
27
28
  * Sorting field.
28
29
  * Optional "+" or "-" prefix indicates ascending or descending order.
29
30
  * Example: "-created_at", "subject"
31
+ * Sort-only keys: "channel_name", "queue_name" (threads without a value sort last).
30
32
  */
31
33
  sort?: string;
32
34
  /**
@@ -10,6 +10,7 @@ import type { WebitelImApiGatewayV1MemberReadState } from './webitelImApiGateway
10
10
  import type { WebitelImApiGatewayV1ThreadChannel } from './webitelImApiGatewayV1ThreadChannel';
11
11
  import type { WebitelImApiGatewayV1ThreadKind } from './webitelImApiGatewayV1ThreadKind';
12
12
  import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
13
+ import type { WebitelImApiGatewayV1ThreadQueue } from './webitelImApiGatewayV1ThreadQueue';
13
14
  import type { WebitelImApiGatewayV1ThreadSettings } from './webitelImApiGatewayV1ThreadSettings';
14
15
  import type { WebitelImApiGatewayV1ThreadVariables } from './webitelImApiGatewayV1ThreadVariables';
15
16
 
@@ -23,6 +24,8 @@ export interface WebitelImApiGatewayV1Thread {
23
24
  * Channel the external participant reaches the thread through: a provider
24
25
  * gate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget
25
26
  * application. Unset when it cannot be resolved (e.g. an internal thread).
27
+ * Search sorts by channel.name with the sort-only key "channel_name"
28
+ * (+channel_name / -channel_name); threads without a gate name sort last.
26
29
  */
27
30
  channel?: WebitelImApiGatewayV1ThreadChannel;
28
31
  /** Thread creation timestamp (Unix time, milliseconds). */
@@ -40,6 +43,11 @@ export interface WebitelImApiGatewayV1Thread {
40
43
  lastMsg?: WebitelImApiGatewayV1HistoryMessage;
41
44
  /** Detailed member information. */
42
45
  members?: WebitelImApiGatewayV1ThreadMember[];
46
+ /**
47
+ * Queue through which the calling participant received the thread. Set by Search; unset when unknown.
48
+ * Search sorts by queue.name with the sort-only key "queue_name".
49
+ */
50
+ queue?: WebitelImApiGatewayV1ThreadQueue;
43
51
  /**
44
52
  * Per-member read horizons (snapshot, matches GetUpdates model).
45
53
  * Client derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.
@@ -19,4 +19,8 @@ export const WebitelImApiGatewayV1ThreadChannelType = {
19
19
  ThreadChannelTypePortal: 'THREAD_CHANNEL_TYPE_PORTAL',
20
20
  ThreadChannelTypeWidget: 'THREAD_CHANNEL_TYPE_WIDGET',
21
21
  ThreadChannelTypeCustom: 'THREAD_CHANNEL_TYPE_CUSTOM',
22
+ ThreadChannelTypeTelegramBot: 'THREAD_CHANNEL_TYPE_TELEGRAM_BOT',
23
+ ThreadChannelTypeTelegramApp: 'THREAD_CHANNEL_TYPE_TELEGRAM_APP',
24
+ ThreadChannelTypeViber: 'THREAD_CHANNEL_TYPE_VIBER',
25
+ ThreadChannelTypeInstagram: 'THREAD_CHANNEL_TYPE_INSTAGRAM',
22
26
  } 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
+
8
+ /**
9
+ * ThreadQueue is a call_center queue through which an agent received a thread.
10
+ */
11
+ export interface WebitelImApiGatewayV1ThreadQueue {
12
+ /** Queue id. */
13
+ id?: string;
14
+ /** Queue display name. */
15
+ name?: string;
16
+ }
@@ -26,6 +26,8 @@ export interface WebitelKbArticle {
26
26
  domainId?: string;
27
27
  /** Concurrency token encoding id and ver. */
28
28
  etag?: string;
29
+ /** Whether the article is the home page of its space. */
30
+ home?: boolean;
29
31
  /** Unique identifier of the article. */
30
32
  id?: string;
31
33
  /** Indexing state. */
@@ -16,6 +16,8 @@ export interface WebitelKbInputArticle {
16
16
  tags?: string[];
17
17
  /** Editor document; serialized server-side to markdown/plaintext/tsvector. */
18
18
  bodyRichText?: WebitelKbInputArticleBodyRichText;
19
+ /** Creates the article as the home page of its space; create only. */
20
+ home?: boolean;
19
21
  /** Parent article id; 0 for a top-level article. */
20
22
  parentId?: string;
21
23
  /** Target space. */
@@ -4,6 +4,7 @@
4
4
  * Webitel API
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
+ import type { WebitelKbSpaceState } from './webitelKbSpaceState';
7
8
 
8
9
  /**
9
10
  * InputSpace carries the writable fields of a space.
@@ -15,8 +16,6 @@ export interface WebitelKbInputSpace {
15
16
  description?: string;
16
17
  /** Active embedding model id. */
17
18
  embeddingModelId?: string;
18
- /** Article used as the space home page. */
19
- homeArticleId?: string;
20
19
  /** Space language; immutable after creation. */
21
20
  language?: string;
22
21
  /** Human-readable name. */
@@ -25,11 +24,16 @@ export interface WebitelKbInputSpace {
25
24
  rerankEnabled?: boolean;
26
25
  /** Reranker model id. */
27
26
  rerankerModelId?: string;
27
+ /** Lifecycle state; unspecified keeps the current one, active on create. */
28
+ state?: WebitelKbSpaceState;
28
29
  /**
29
30
  * Team ids the space is bound to as default operator visibility;
30
31
  * the set replaces the current binding, empty removes it.
31
32
  */
32
33
  teamIds?: string[];
33
- /** Whether articles are embedded for vector search. */
34
+ /**
35
+ * Whether vector search is on; on when omitted at creation. Without a
36
+ * model the space is searched by text alone.
37
+ */
34
38
  vectorSearchEnabled?: boolean;
35
39
  }
@@ -5,6 +5,7 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  import type { GeneralLookup } from './generalLookup';
8
+ import type { WebitelKbSpaceState } from './webitelKbSpaceState';
8
9
 
9
10
  /**
10
11
  * Space is a knowledge-base space read model.
@@ -34,6 +35,8 @@ export interface WebitelKbSpace {
34
35
  rerankEnabled?: boolean;
35
36
  /** Reranker model id (type=reranker). */
36
37
  rerankerModelId?: string;
38
+ /** Lifecycle state. */
39
+ state?: WebitelKbSpaceState;
37
40
  /** Target embedding model id for a pending model migration. */
38
41
  targetEmbeddingModelId?: string;
39
42
  /**
@@ -45,6 +48,9 @@ export interface WebitelKbSpace {
45
48
  updatedAt?: string;
46
49
  /** User who last updated the space. */
47
50
  updatedBy?: GeneralLookup;
48
- /** Whether articles in this space are embedded for vector search. */
51
+ /**
52
+ * Whether vector search is on. Without a model the space is searched by
53
+ * text alone.
54
+ */
49
55
  vectorSearchEnabled?: boolean;
50
56
  }
@@ -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
+ /**
9
+ * Space lifecycle state.
10
+ *
11
+ * - SPACE_STATE_ACTIVE: Articles of the space are retrievable.
12
+ * - SPACE_STATE_INACTIVE: Articles are kept but excluded from search and suggestions.
13
+ */
14
+ export type WebitelKbSpaceState =
15
+ (typeof WebitelKbSpaceState)[keyof typeof WebitelKbSpaceState];
16
+
17
+ export const WebitelKbSpaceState = {
18
+ SpaceStateUnspecified: 'SPACE_STATE_UNSPECIFIED',
19
+ SpaceStateActive: 'SPACE_STATE_ACTIVE',
20
+ SpaceStateInactive: 'SPACE_STATE_INACTIVE',
21
+ } as const;
@@ -22,8 +22,6 @@ export * from './apiAccessRule';
22
22
  export * from './apiAccessToken';
23
23
  export * from './apiClaim';
24
24
  export * from './apiCreateDeviceResponse';
25
- export * from './apiCreateDomainRequest';
26
- export * from './apiCreateDomainResponse';
27
25
  export * from './apiCreateRoleRequest';
28
26
  export * from './apiCreateRoleResponse';
29
27
  export * from './apiCreateUserResponse';
@@ -79,7 +77,6 @@ export * from './apiLicenseUser';
79
77
  export * from './apiLicenseUsersResponse';
80
78
  export * from './apiLicenseV1';
81
79
  export * from './apiListAccessResponseV1';
82
- export * from './apiListRegistrationsResponse';
83
80
  export * from './apiLoginResponse';
84
81
  export * from './apiLogoutUserRequest';
85
82
  export * from './apiLogoutUserResponse';
@@ -99,14 +96,12 @@ export * from './apiReadDeviceResponse';
99
96
  export * from './apiReadDomainResponse';
100
97
  export * from './apiReadRoleResponse';
101
98
  export * from './apiReadUserResponse';
102
- export * from './apiRegistration';
103
99
  export * from './apiRole';
104
100
  export * from './apiRoleId';
105
101
  export * from './apiRoleMetadata';
106
102
  export * from './apiRoleMetadataResponse';
107
103
  export * from './apiSearchClassesResponse';
108
104
  export * from './apiSearchDeviceResponse';
109
- export * from './apiSearchDomainsResponse';
110
105
  export * from './apiSearchLDAPResponse';
111
106
  export * from './apiSearchOAuthServiceResponse';
112
107
  export * from './apiSearchPermissionResponse';
@@ -122,7 +117,6 @@ export * from './apiUpdateAccessResponseV1';
122
117
  export * from './apiUpdateClassResponse';
123
118
  export * from './apiUpdateCustomerResponse';
124
119
  export * from './apiUpdateDeviceResponse';
125
- export * from './apiUpdateDomainResponse';
126
120
  export * from './apiUpdatePasswordRequest';
127
121
  export * from './apiUpdatePasswordResponse';
128
122
  export * from './apiUpdateRoleResponse';
@@ -305,7 +299,6 @@ export * from './deleteData2Params';
305
299
  export * from './deleteDataParams';
306
300
  export * from './deleteDevice2Params';
307
301
  export * from './deleteDeviceParams';
308
- export * from './deleteDomain2Params';
309
302
  export * from './deleteDomainParams';
310
303
  export * from './deleteEmailParams';
311
304
  export * from './deleteEmailsParams';
@@ -348,9 +341,6 @@ export * from './dictionariesBatchCreateDataBody';
348
341
  export * from './dictionariesBatchCreateDataBodyRowsItem';
349
342
  export * from './dictionariesImportCSVBody';
350
343
  export * from './dictionariesImportCSVBodyFields';
351
- export * from './domainsUpdateDomainBody';
352
- export * from './domainsUpdateDomainBodyBody';
353
- export * from './domainsUpdateDomainBodyDomain';
354
344
  export * from './downloadCallArchive200';
355
345
  export * from './downloadCallArchiveParams';
356
346
  export * from './downloadCallScreenrecordingArchive200';
@@ -748,7 +738,6 @@ export * from './engineTeamTriggerServicePatchTeamTriggerBody';
748
738
  export * from './engineTeamTriggerServiceRunTeamTriggerBody';
749
739
  export * from './engineTeamTriggerServiceRunTeamTriggerBodyVariables';
750
740
  export * from './engineTeamTriggerServiceUpdateTeamTriggerBody';
751
- export * from './engineTestEmailProfileResponse';
752
741
  export * from './engineTimezone';
753
742
  export * from './engineTranscriptLookup';
754
743
  export * from './engineTransferAttemptResponse';
@@ -890,7 +879,6 @@ export * from './listModelsParams';
890
879
  export * from './listObjectAccessParams';
891
880
  export * from './listPhonesParams';
892
881
  export * from './listPrioritiesParams';
893
- export * from './listRegistrationsParams';
894
882
  export * from './listRelatedCasesParams';
895
883
  export * from './listScreenrecordingExportsParams';
896
884
  export * from './listServicesParams';
@@ -900,6 +888,7 @@ export * from './listSourcesParams';
900
888
  export * from './listSourcesTypeItem';
901
889
  export * from './listSpacesParams';
902
890
  export * from './listSpacesSpacesParams';
891
+ export * from './listSpacesState';
903
892
  export * from './listStatusConditionsParams';
904
893
  export * from './listStatusesParams';
905
894
  export * from './listTagsParams';
@@ -999,7 +988,6 @@ export * from './readCallParams';
999
988
  export * from './readClassParams';
1000
989
  export * from './readCommunicationTypeParams';
1001
990
  export * from './readDeviceParams';
1002
- export * from './readDomain2Params';
1003
991
  export * from './readDomainParams';
1004
992
  export * from './readListCommunicationParams';
1005
993
  export * from './readListParams';
@@ -1073,7 +1061,6 @@ export * from './searchContactsParams';
1073
1061
  export * from './searchDataParams';
1074
1062
  export * from './searchDeviceAuditParams';
1075
1063
  export * from './searchDeviceParams';
1076
- export * from './searchDomainsParams';
1077
1064
  export * from './searchEmailProfileParams';
1078
1065
  export * from './searchFilePoliciesParams';
1079
1066
  export * from './searchFilesByCallChannelItem';
@@ -1743,6 +1730,7 @@ export * from './webitelImApiGatewayV1ThreadPreview';
1743
1730
  export * from './webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody';
1744
1731
  export * from './webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody';
1745
1732
  export * from './webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody';
1733
+ export * from './webitelImApiGatewayV1ThreadQueue';
1746
1734
  export * from './webitelImApiGatewayV1ThreadRole';
1747
1735
  export * from './webitelImApiGatewayV1ThreadSettings';
1748
1736
  export * from './webitelImApiGatewayV1ThreadTagManagementAddTagBody';
@@ -1979,6 +1967,7 @@ export * from './webitelKbSemanticSearchRequest';
1979
1967
  export * from './webitelKbSemanticSearchResponse';
1980
1968
  export * from './webitelKbSpace';
1981
1969
  export * from './webitelKbSpaceList';
1970
+ export * from './webitelKbSpaceState';
1982
1971
  export * from './webitelKbSuggestRequest';
1983
1972
  export * from './webitelKbSuggestResponse';
1984
1973
  export * from './webitelKbSuggestTagsResponse';
@@ -4,6 +4,7 @@
4
4
  * Webitel API
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
+ import type { ListSpacesState } from './listSpacesState';
7
8
 
8
9
  export type ListSpacesParams = {
9
10
  /**
@@ -26,4 +27,11 @@ export type ListSpacesParams = {
26
27
  * Set of fields to return.
27
28
  */
28
29
  fields?: string[];
30
+ /**
31
+ * Optional state filter.
32
+ *
33
+ * - SPACE_STATE_ACTIVE: Articles of the space are retrievable.
34
+ * - SPACE_STATE_INACTIVE: Articles are kept but excluded from search and suggestions.
35
+ */
36
+ state?: ListSpacesState;
29
37
  };
@@ -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 ListSpacesState =
9
+ (typeof ListSpacesState)[keyof typeof ListSpacesState];
10
+
11
+ export const ListSpacesState = {
12
+ SpaceStateUnspecified: 'SPACE_STATE_UNSPECIFIED',
13
+ SpaceStateActive: 'SPACE_STATE_ACTIVE',
14
+ SpaceStateInactive: 'SPACE_STATE_INACTIVE',
15
+ } as const;
@@ -11,6 +11,7 @@ export type ThreadManagementSearchLeftParams = {
11
11
  * List of fields that should be returned in the response.
12
12
  * If empty, a default set of fields is returned.
13
13
  * Used for response optimization.
14
+ * The default set includes "channel" and "queue".
14
15
  */
15
16
  fields?: string[];
16
17
  /**
@@ -27,6 +28,7 @@ export type ThreadManagementSearchLeftParams = {
27
28
  * Sorting field.
28
29
  * Optional "+" or "-" prefix indicates ascending or descending order.
29
30
  * Example: "-created_at", "subject"
31
+ * Sort-only keys: "channel_name", "queue_name" (threads without a value sort last).
30
32
  */
31
33
  sort?: string;
32
34
  /**
@@ -10,6 +10,7 @@ import type { WebitelImApiGatewayV1MemberReadState } from './webitelImApiGateway
10
10
  import type { WebitelImApiGatewayV1ThreadChannel } from './webitelImApiGatewayV1ThreadChannel';
11
11
  import type { WebitelImApiGatewayV1ThreadKind } from './webitelImApiGatewayV1ThreadKind';
12
12
  import type { WebitelImApiGatewayV1ThreadMember } from './webitelImApiGatewayV1ThreadMember';
13
+ import type { WebitelImApiGatewayV1ThreadQueue } from './webitelImApiGatewayV1ThreadQueue';
13
14
  import type { WebitelImApiGatewayV1ThreadSettings } from './webitelImApiGatewayV1ThreadSettings';
14
15
  import type { WebitelImApiGatewayV1ThreadVariables } from './webitelImApiGatewayV1ThreadVariables';
15
16
 
@@ -23,6 +24,8 @@ export interface WebitelImApiGatewayV1Thread {
23
24
  * Channel the external participant reaches the thread through: a provider
24
25
  * gate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget
25
26
  * application. Unset when it cannot be resolved (e.g. an internal thread).
27
+ * Search sorts by channel.name with the sort-only key "channel_name"
28
+ * (+channel_name / -channel_name); threads without a gate name sort last.
26
29
  */
27
30
  channel?: WebitelImApiGatewayV1ThreadChannel;
28
31
  /** Thread creation timestamp (Unix time, milliseconds). */
@@ -40,6 +43,11 @@ export interface WebitelImApiGatewayV1Thread {
40
43
  last_msg?: WebitelImApiGatewayV1HistoryMessage;
41
44
  /** Detailed member information. */
42
45
  members?: WebitelImApiGatewayV1ThreadMember[];
46
+ /**
47
+ * Queue through which the calling participant received the thread. Set by Search; unset when unknown.
48
+ * Search sorts by queue.name with the sort-only key "queue_name".
49
+ */
50
+ queue?: WebitelImApiGatewayV1ThreadQueue;
43
51
  /**
44
52
  * Per-member read horizons (snapshot, matches GetUpdates model).
45
53
  * Client derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.
@@ -19,4 +19,8 @@ export const WebitelImApiGatewayV1ThreadChannelType = {
19
19
  ThreadChannelTypePortal: 'THREAD_CHANNEL_TYPE_PORTAL',
20
20
  ThreadChannelTypeWidget: 'THREAD_CHANNEL_TYPE_WIDGET',
21
21
  ThreadChannelTypeCustom: 'THREAD_CHANNEL_TYPE_CUSTOM',
22
+ ThreadChannelTypeTelegramBot: 'THREAD_CHANNEL_TYPE_TELEGRAM_BOT',
23
+ ThreadChannelTypeTelegramApp: 'THREAD_CHANNEL_TYPE_TELEGRAM_APP',
24
+ ThreadChannelTypeViber: 'THREAD_CHANNEL_TYPE_VIBER',
25
+ ThreadChannelTypeInstagram: 'THREAD_CHANNEL_TYPE_INSTAGRAM',
22
26
  } 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
+
8
+ /**
9
+ * ThreadQueue is a call_center queue through which an agent received a thread.
10
+ */
11
+ export interface WebitelImApiGatewayV1ThreadQueue {
12
+ /** Queue id. */
13
+ id?: string;
14
+ /** Queue display name. */
15
+ name?: string;
16
+ }
@@ -26,6 +26,8 @@ export interface WebitelKbArticle {
26
26
  domain_id?: string;
27
27
  /** Concurrency token encoding id and ver. */
28
28
  etag?: string;
29
+ /** Whether the article is the home page of its space. */
30
+ home?: boolean;
29
31
  /** Unique identifier of the article. */
30
32
  id?: string;
31
33
  /** Indexing state. */
@@ -16,6 +16,8 @@ export interface WebitelKbInputArticle {
16
16
  tags?: string[];
17
17
  /** Editor document; serialized server-side to markdown/plaintext/tsvector. */
18
18
  body_rich_text?: WebitelKbInputArticleBodyRichText;
19
+ /** Creates the article as the home page of its space; create only. */
20
+ home?: boolean;
19
21
  /** Parent article id; 0 for a top-level article. */
20
22
  parent_id?: string;
21
23
  /** Target space. */
@@ -4,6 +4,7 @@
4
4
  * Webitel API
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
+ import type { WebitelKbSpaceState } from './webitelKbSpaceState';
7
8
 
8
9
  /**
9
10
  * InputSpace carries the writable fields of a space.
@@ -15,8 +16,6 @@ export interface WebitelKbInputSpace {
15
16
  description?: string;
16
17
  /** Active embedding model id. */
17
18
  embedding_model_id?: string;
18
- /** Article used as the space home page. */
19
- home_article_id?: string;
20
19
  /** Space language; immutable after creation. */
21
20
  language?: string;
22
21
  /** Human-readable name. */
@@ -25,11 +24,16 @@ export interface WebitelKbInputSpace {
25
24
  rerank_enabled?: boolean;
26
25
  /** Reranker model id. */
27
26
  reranker_model_id?: string;
27
+ /** Lifecycle state; unspecified keeps the current one, active on create. */
28
+ state?: WebitelKbSpaceState;
28
29
  /**
29
30
  * Team ids the space is bound to as default operator visibility;
30
31
  * the set replaces the current binding, empty removes it.
31
32
  */
32
33
  team_ids?: string[];
33
- /** Whether articles are embedded for vector search. */
34
+ /**
35
+ * Whether vector search is on; on when omitted at creation. Without a
36
+ * model the space is searched by text alone.
37
+ */
34
38
  vector_search_enabled?: boolean;
35
39
  }
@@ -5,6 +5,7 @@
5
5
  * OpenAPI spec version: 24.04.0
6
6
  */
7
7
  import type { GeneralLookup } from './generalLookup';
8
+ import type { WebitelKbSpaceState } from './webitelKbSpaceState';
8
9
 
9
10
  /**
10
11
  * Space is a knowledge-base space read model.
@@ -34,6 +35,8 @@ export interface WebitelKbSpace {
34
35
  rerank_enabled?: boolean;
35
36
  /** Reranker model id (type=reranker). */
36
37
  reranker_model_id?: string;
38
+ /** Lifecycle state. */
39
+ state?: WebitelKbSpaceState;
37
40
  /** Target embedding model id for a pending model migration. */
38
41
  target_embedding_model_id?: string;
39
42
  /**
@@ -45,6 +48,9 @@ export interface WebitelKbSpace {
45
48
  updated_at?: string;
46
49
  /** User who last updated the space. */
47
50
  updated_by?: GeneralLookup;
48
- /** Whether articles in this space are embedded for vector search. */
51
+ /**
52
+ * Whether vector search is on. Without a model the space is searched by
53
+ * text alone.
54
+ */
49
55
  vector_search_enabled?: boolean;
50
56
  }
@@ -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
+ /**
9
+ * Space lifecycle state.
10
+ *
11
+ * - SPACE_STATE_ACTIVE: Articles of the space are retrievable.
12
+ * - SPACE_STATE_INACTIVE: Articles are kept but excluded from search and suggestions.
13
+ */
14
+ export type WebitelKbSpaceState =
15
+ (typeof WebitelKbSpaceState)[keyof typeof WebitelKbSpaceState];
16
+
17
+ export const WebitelKbSpaceState = {
18
+ SpaceStateUnspecified: 'SPACE_STATE_UNSPECIFIED',
19
+ SpaceStateActive: 'SPACE_STATE_ACTIVE',
20
+ SpaceStateInactive: 'SPACE_STATE_INACTIVE',
21
+ } as const;