@webitel/api-services 26.12.5 → 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.
- package/package.json +1 -1
- package/src/api/clients/userTokens/userTokens.ts +9 -1
- package/src/gen/_models/index.ts +3 -14
- package/src/gen/_models/listSpacesParams.ts +8 -0
- package/src/gen/_models/listSpacesState.ts +15 -0
- package/src/gen/_models/threadManagementSearchLeftParams.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1Thread.ts +8 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadChannelType.ts +4 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadQueue.ts +16 -0
- package/src/gen/_models/webitelKbArticle.ts +2 -0
- package/src/gen/_models/webitelKbInputArticle.ts +2 -0
- package/src/gen/_models/webitelKbInputSpace.ts +7 -3
- package/src/gen/_models/webitelKbSpace.ts +7 -1
- package/src/gen/_models/webitelKbSpaceState.ts +21 -0
- package/src/gen-wire/_models/index.ts +3 -14
- package/src/gen-wire/_models/listSpacesParams.ts +8 -0
- package/src/gen-wire/_models/listSpacesState.ts +15 -0
- package/src/gen-wire/_models/threadManagementSearchLeftParams.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +8 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.ts +4 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadQueue.ts +16 -0
- package/src/gen-wire/_models/webitelKbArticle.ts +2 -0
- package/src/gen-wire/_models/webitelKbInputArticle.ts +2 -0
- package/src/gen-wire/_models/webitelKbInputSpace.ts +7 -3
- package/src/gen-wire/_models/webitelKbSpace.ts +7 -1
- package/src/gen-wire/_models/webitelKbSpaceState.ts +21 -0
- package/src/gen-wire/articles/articles.zod.ts +58 -0
- package/src/gen-wire/devices/devices.ts +0 -18
- package/src/gen-wire/devices/devices.zod.ts +0 -44
- package/src/gen-wire/domains/domains.ts +0 -86
- package/src/gen-wire/domains/domains.zod.ts +0 -192
- package/src/gen-wire/email-profile-service/email-profile-service.ts +0 -13
- package/src/gen-wire/email-profile-service/email-profile-service.zod.ts +0 -11
- package/src/gen-wire/index.ts +11 -25
- package/src/gen-wire/spaces/spaces.zod.ts +123 -21
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +58 -6
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +14 -1
- package/src/validations/userToken/userToken.validations.ts +5 -1
- package/types/.tsbuildinfo +1 -1
- package/types/gen/_models/index.d.ts +3 -14
- package/types/gen/_models/listSpacesParams.d.ts +8 -0
- package/types/gen/_models/listSpacesState.d.ts +12 -0
- package/types/gen/_models/threadManagementSearchLeftParams.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +4 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadQueue.d.ts +15 -0
- package/types/gen/_models/webitelKbArticle.d.ts +2 -0
- package/types/gen/_models/webitelKbInputArticle.d.ts +2 -0
- package/types/gen/_models/webitelKbInputSpace.d.ts +7 -3
- package/types/gen/_models/webitelKbSpace.d.ts +7 -1
- package/types/gen/_models/webitelKbSpaceState.d.ts +18 -0
- package/types/gen-wire/_models/index.d.ts +3 -14
- package/types/gen-wire/_models/listSpacesParams.d.ts +8 -0
- package/types/gen-wire/_models/listSpacesState.d.ts +12 -0
- package/types/gen-wire/_models/threadManagementSearchLeftParams.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +8 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +4 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadQueue.d.ts +15 -0
- package/types/gen-wire/_models/webitelKbArticle.d.ts +2 -0
- package/types/gen-wire/_models/webitelKbInputArticle.d.ts +2 -0
- package/types/gen-wire/_models/webitelKbInputSpace.d.ts +7 -3
- package/types/gen-wire/_models/webitelKbSpace.d.ts +7 -1
- package/types/gen-wire/_models/webitelKbSpaceState.d.ts +18 -0
- package/types/gen-wire/articles/articles.zod.d.ts +13 -0
- package/types/gen-wire/devices/devices.d.ts +1 -3
- package/types/gen-wire/devices/devices.zod.d.ts +0 -32
- package/types/gen-wire/domains/domains.d.ts +1 -13
- package/types/gen-wire/domains/domains.zod.d.ts +0 -160
- package/types/gen-wire/email-profile-service/email-profile-service.d.ts +1 -3
- package/types/gen-wire/email-profile-service/email-profile-service.zod.d.ts +0 -9
- package/types/gen-wire/index.d.ts +3 -3
- package/types/gen-wire/spaces/spaces.zod.d.ts +60 -3
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +32 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +8 -0
- package/types/validations/userToken/userToken.validations.d.ts +5 -0
- package/src/gen/_models/apiCreateDomainRequest.ts +0 -13
- package/src/gen/_models/apiCreateDomainResponse.ts +0 -10
- package/src/gen/_models/apiListRegistrationsResponse.ts +0 -14
- package/src/gen/_models/apiRegistration.ts +0 -22
- package/src/gen/_models/apiSearchDomainsResponse.ts +0 -11
- package/src/gen/_models/apiUpdateDomainResponse.ts +0 -11
- package/src/gen/_models/deleteDomain2Params.ts +0 -10
- package/src/gen/_models/domainsUpdateDomainBody.ts +0 -11
- package/src/gen/_models/domainsUpdateDomainBodyBody.ts +0 -9
- package/src/gen/_models/domainsUpdateDomainBodyDomain.ts +0 -23
- package/src/gen/_models/engineTestEmailProfileResponse.ts +0 -10
- package/src/gen/_models/listRegistrationsParams.ts +0 -21
- package/src/gen/_models/readDomain2Params.ts +0 -10
- package/src/gen/_models/searchDomainsParams.ts +0 -20
- package/src/gen-wire/_models/apiCreateDomainRequest.ts +0 -13
- package/src/gen-wire/_models/apiCreateDomainResponse.ts +0 -10
- package/src/gen-wire/_models/apiListRegistrationsResponse.ts +0 -14
- package/src/gen-wire/_models/apiRegistration.ts +0 -22
- package/src/gen-wire/_models/apiSearchDomainsResponse.ts +0 -11
- package/src/gen-wire/_models/apiUpdateDomainResponse.ts +0 -11
- package/src/gen-wire/_models/deleteDomain2Params.ts +0 -10
- package/src/gen-wire/_models/domainsUpdateDomainBody.ts +0 -11
- package/src/gen-wire/_models/domainsUpdateDomainBodyBody.ts +0 -9
- package/src/gen-wire/_models/domainsUpdateDomainBodyDomain.ts +0 -23
- package/src/gen-wire/_models/engineTestEmailProfileResponse.ts +0 -10
- package/src/gen-wire/_models/listRegistrationsParams.ts +0 -21
- package/src/gen-wire/_models/readDomain2Params.ts +0 -10
- package/src/gen-wire/_models/searchDomainsParams.ts +0 -20
- package/types/gen/_models/apiCreateDomainRequest.d.ts +0 -12
- package/types/gen/_models/apiCreateDomainResponse.d.ts +0 -9
- package/types/gen/_models/apiListRegistrationsResponse.d.ts +0 -13
- package/types/gen/_models/apiRegistration.d.ts +0 -21
- package/types/gen/_models/apiSearchDomainsResponse.d.ts +0 -10
- package/types/gen/_models/apiUpdateDomainResponse.d.ts +0 -10
- package/types/gen/_models/deleteDomain2Params.d.ts +0 -9
- package/types/gen/_models/domainsUpdateDomainBody.d.ts +0 -10
- package/types/gen/_models/domainsUpdateDomainBodyBody.d.ts +0 -8
- package/types/gen/_models/domainsUpdateDomainBodyDomain.d.ts +0 -22
- package/types/gen/_models/engineTestEmailProfileResponse.d.ts +0 -9
- package/types/gen/_models/listRegistrationsParams.d.ts +0 -20
- package/types/gen/_models/readDomain2Params.d.ts +0 -9
- package/types/gen/_models/searchDomainsParams.d.ts +0 -19
- package/types/gen-wire/_models/apiCreateDomainRequest.d.ts +0 -12
- package/types/gen-wire/_models/apiCreateDomainResponse.d.ts +0 -9
- package/types/gen-wire/_models/apiListRegistrationsResponse.d.ts +0 -13
- package/types/gen-wire/_models/apiRegistration.d.ts +0 -21
- package/types/gen-wire/_models/apiSearchDomainsResponse.d.ts +0 -10
- package/types/gen-wire/_models/apiUpdateDomainResponse.d.ts +0 -10
- package/types/gen-wire/_models/deleteDomain2Params.d.ts +0 -9
- package/types/gen-wire/_models/domainsUpdateDomainBody.d.ts +0 -10
- package/types/gen-wire/_models/domainsUpdateDomainBodyBody.d.ts +0 -8
- package/types/gen-wire/_models/domainsUpdateDomainBodyDomain.d.ts +0 -22
- package/types/gen-wire/_models/engineTestEmailProfileResponse.d.ts +0 -9
- package/types/gen-wire/_models/listRegistrationsParams.d.ts +0 -20
- package/types/gen-wire/_models/readDomain2Params.d.ts +0 -9
- package/types/gen-wire/_models/searchDomainsParams.d.ts +0 -19
|
@@ -28,8 +28,6 @@ export * from './apiAccessRule';
|
|
|
28
28
|
export * from './apiAccessToken';
|
|
29
29
|
export * from './apiClaim';
|
|
30
30
|
export * from './apiCreateDeviceResponse';
|
|
31
|
-
export * from './apiCreateDomainRequest';
|
|
32
|
-
export * from './apiCreateDomainResponse';
|
|
33
31
|
export * from './apiCreateRoleRequest';
|
|
34
32
|
export * from './apiCreateRoleResponse';
|
|
35
33
|
export * from './apiCreateUserResponse';
|
|
@@ -85,7 +83,6 @@ export * from './apiLicenseUser';
|
|
|
85
83
|
export * from './apiLicenseUsersResponse';
|
|
86
84
|
export * from './apiLicenseV1';
|
|
87
85
|
export * from './apiListAccessResponseV1';
|
|
88
|
-
export * from './apiListRegistrationsResponse';
|
|
89
86
|
export * from './apiLoginResponse';
|
|
90
87
|
export * from './apiLogoutUserRequest';
|
|
91
88
|
export * from './apiLogoutUserResponse';
|
|
@@ -105,14 +102,12 @@ export * from './apiReadDeviceResponse';
|
|
|
105
102
|
export * from './apiReadDomainResponse';
|
|
106
103
|
export * from './apiReadRoleResponse';
|
|
107
104
|
export * from './apiReadUserResponse';
|
|
108
|
-
export * from './apiRegistration';
|
|
109
105
|
export * from './apiRole';
|
|
110
106
|
export * from './apiRoleId';
|
|
111
107
|
export * from './apiRoleMetadata';
|
|
112
108
|
export * from './apiRoleMetadataResponse';
|
|
113
109
|
export * from './apiSearchClassesResponse';
|
|
114
110
|
export * from './apiSearchDeviceResponse';
|
|
115
|
-
export * from './apiSearchDomainsResponse';
|
|
116
111
|
export * from './apiSearchLDAPResponse';
|
|
117
112
|
export * from './apiSearchOAuthServiceResponse';
|
|
118
113
|
export * from './apiSearchPermissionResponse';
|
|
@@ -128,7 +123,6 @@ export * from './apiUpdateAccessResponseV1';
|
|
|
128
123
|
export * from './apiUpdateClassResponse';
|
|
129
124
|
export * from './apiUpdateCustomerResponse';
|
|
130
125
|
export * from './apiUpdateDeviceResponse';
|
|
131
|
-
export * from './apiUpdateDomainResponse';
|
|
132
126
|
export * from './apiUpdatePasswordRequest';
|
|
133
127
|
export * from './apiUpdatePasswordResponse';
|
|
134
128
|
export * from './apiUpdateRoleResponse';
|
|
@@ -311,7 +305,6 @@ export * from './deleteData2Params';
|
|
|
311
305
|
export * from './deleteDataParams';
|
|
312
306
|
export * from './deleteDevice2Params';
|
|
313
307
|
export * from './deleteDeviceParams';
|
|
314
|
-
export * from './deleteDomain2Params';
|
|
315
308
|
export * from './deleteDomainParams';
|
|
316
309
|
export * from './deleteEmailParams';
|
|
317
310
|
export * from './deleteEmailsParams';
|
|
@@ -355,9 +348,6 @@ export * from './dictionariesBatchCreateDataBody';
|
|
|
355
348
|
export * from './dictionariesBatchCreateDataBodyRowsItem';
|
|
356
349
|
export * from './dictionariesImportCSVBody';
|
|
357
350
|
export * from './dictionariesImportCSVBodyFields';
|
|
358
|
-
export * from './domainsUpdateDomainBody';
|
|
359
|
-
export * from './domainsUpdateDomainBodyBody';
|
|
360
|
-
export * from './domainsUpdateDomainBodyDomain';
|
|
361
351
|
export * from './downloadCallArchive200';
|
|
362
352
|
export * from './downloadCallArchiveParams';
|
|
363
353
|
export * from './downloadCallScreenrecordingArchive200';
|
|
@@ -755,7 +745,6 @@ export * from './engineTeamTriggerServicePatchTeamTriggerBody';
|
|
|
755
745
|
export * from './engineTeamTriggerServiceRunTeamTriggerBody';
|
|
756
746
|
export * from './engineTeamTriggerServiceRunTeamTriggerBodyVariables';
|
|
757
747
|
export * from './engineTeamTriggerServiceUpdateTeamTriggerBody';
|
|
758
|
-
export * from './engineTestEmailProfileResponse';
|
|
759
748
|
export * from './engineTimezone';
|
|
760
749
|
export * from './engineTranscriptLookup';
|
|
761
750
|
export * from './engineTransferAttemptResponse';
|
|
@@ -897,7 +886,6 @@ export * from './listModelsParams';
|
|
|
897
886
|
export * from './listObjectAccessParams';
|
|
898
887
|
export * from './listPhonesParams';
|
|
899
888
|
export * from './listPrioritiesParams';
|
|
900
|
-
export * from './listRegistrationsParams';
|
|
901
889
|
export * from './listRelatedCasesParams';
|
|
902
890
|
export * from './listScreenrecordingExportsParams';
|
|
903
891
|
export * from './listServicesParams';
|
|
@@ -907,6 +895,7 @@ export * from './listSourcesParams';
|
|
|
907
895
|
export * from './listSourcesTypeItem';
|
|
908
896
|
export * from './listSpacesParams';
|
|
909
897
|
export * from './listSpacesSpacesParams';
|
|
898
|
+
export * from './listSpacesState';
|
|
910
899
|
export * from './listStatusConditionsParams';
|
|
911
900
|
export * from './listStatusesParams';
|
|
912
901
|
export * from './listTagsParams';
|
|
@@ -1006,7 +995,6 @@ export * from './readCallParams';
|
|
|
1006
995
|
export * from './readClassParams';
|
|
1007
996
|
export * from './readCommunicationTypeParams';
|
|
1008
997
|
export * from './readDeviceParams';
|
|
1009
|
-
export * from './readDomain2Params';
|
|
1010
998
|
export * from './readDomainParams';
|
|
1011
999
|
export * from './readListCommunicationParams';
|
|
1012
1000
|
export * from './readListParams';
|
|
@@ -1082,7 +1070,6 @@ export * from './searchContactsParams';
|
|
|
1082
1070
|
export * from './searchDataParams';
|
|
1083
1071
|
export * from './searchDeviceAuditParams';
|
|
1084
1072
|
export * from './searchDeviceParams';
|
|
1085
|
-
export * from './searchDomainsParams';
|
|
1086
1073
|
export * from './searchEmailProfileParams';
|
|
1087
1074
|
export * from './searchFilePoliciesParams';
|
|
1088
1075
|
export * from './searchFilesByCallChannelItem';
|
|
@@ -1754,6 +1741,7 @@ export * from './webitelImApiGatewayV1ThreadPreview';
|
|
|
1754
1741
|
export * from './webitelImApiGatewayV1ThreadPreviewServiceGivePreviewBody';
|
|
1755
1742
|
export * from './webitelImApiGatewayV1ThreadPreviewServiceRemoveFromPreviewBody';
|
|
1756
1743
|
export * from './webitelImApiGatewayV1ThreadPreviewServiceUpgradePreviewToFullMemberBody';
|
|
1744
|
+
export * from './webitelImApiGatewayV1ThreadQueue';
|
|
1757
1745
|
export * from './webitelImApiGatewayV1ThreadRole';
|
|
1758
1746
|
export * from './webitelImApiGatewayV1ThreadSettings';
|
|
1759
1747
|
export * from './webitelImApiGatewayV1ThreadTagManagementAddTagBody';
|
|
@@ -1990,6 +1978,7 @@ export * from './webitelKbSemanticSearchRequest';
|
|
|
1990
1978
|
export * from './webitelKbSemanticSearchResponse';
|
|
1991
1979
|
export * from './webitelKbSpace';
|
|
1992
1980
|
export * from './webitelKbSpaceList';
|
|
1981
|
+
export * from './webitelKbSpaceState';
|
|
1993
1982
|
export * from './webitelKbSuggestRequest';
|
|
1994
1983
|
export * from './webitelKbSuggestResponse';
|
|
1995
1984
|
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
|
export type ListSpacesParams = {
|
|
8
9
|
/**
|
|
9
10
|
* Page size.
|
|
@@ -25,4 +26,11 @@ export type ListSpacesParams = {
|
|
|
25
26
|
* Set of fields to return.
|
|
26
27
|
*/
|
|
27
28
|
fields?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Optional state filter.
|
|
31
|
+
*
|
|
32
|
+
* - SPACE_STATE_ACTIVE: Articles of the space are retrievable.
|
|
33
|
+
* - SPACE_STATE_INACTIVE: Articles are kept but excluded from search and suggestions.
|
|
34
|
+
*/
|
|
35
|
+
state?: ListSpacesState;
|
|
28
36
|
};
|
|
@@ -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
|
+
export type ListSpacesState = (typeof ListSpacesState)[keyof typeof ListSpacesState];
|
|
8
|
+
export declare const ListSpacesState: {
|
|
9
|
+
readonly SpaceStateUnspecified: "SPACE_STATE_UNSPECIFIED";
|
|
10
|
+
readonly SpaceStateActive: "SPACE_STATE_ACTIVE";
|
|
11
|
+
readonly SpaceStateInactive: "SPACE_STATE_INACTIVE";
|
|
12
|
+
};
|
|
@@ -10,6 +10,7 @@ export type ThreadManagementSearchLeftParams = {
|
|
|
10
10
|
* List of fields that should be returned in the response.
|
|
11
11
|
* If empty, a default set of fields is returned.
|
|
12
12
|
* Used for response optimization.
|
|
13
|
+
* The default set includes "channel" and "queue".
|
|
13
14
|
*/
|
|
14
15
|
fields?: string[];
|
|
15
16
|
/**
|
|
@@ -26,6 +27,7 @@ export type ThreadManagementSearchLeftParams = {
|
|
|
26
27
|
* Sorting field.
|
|
27
28
|
* Optional "+" or "-" prefix indicates ascending or descending order.
|
|
28
29
|
* Example: "-created_at", "subject"
|
|
30
|
+
* Sort-only keys: "channel_name", "queue_name" (threads without a value sort last).
|
|
29
31
|
*/
|
|
30
32
|
sort?: string;
|
|
31
33
|
/**
|
|
@@ -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
|
/**
|
|
@@ -22,6 +23,8 @@ export interface WebitelImApiGatewayV1Thread {
|
|
|
22
23
|
* Channel the external participant reaches the thread through: a provider
|
|
23
24
|
* gate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget
|
|
24
25
|
* application. Unset when it cannot be resolved (e.g. an internal thread).
|
|
26
|
+
* Search sorts by channel.name with the sort-only key "channel_name"
|
|
27
|
+
* (+channel_name / -channel_name); threads without a gate name sort last.
|
|
25
28
|
*/
|
|
26
29
|
channel?: WebitelImApiGatewayV1ThreadChannel;
|
|
27
30
|
/** Thread creation timestamp (Unix time, milliseconds). */
|
|
@@ -39,6 +42,11 @@ export interface WebitelImApiGatewayV1Thread {
|
|
|
39
42
|
lastMsg?: WebitelImApiGatewayV1HistoryMessage;
|
|
40
43
|
/** Detailed member information. */
|
|
41
44
|
members?: WebitelImApiGatewayV1ThreadMember[];
|
|
45
|
+
/**
|
|
46
|
+
* Queue through which the calling participant received the thread. Set by Search; unset when unknown.
|
|
47
|
+
* Search sorts by queue.name with the sort-only key "queue_name".
|
|
48
|
+
*/
|
|
49
|
+
queue?: WebitelImApiGatewayV1ThreadQueue;
|
|
42
50
|
/**
|
|
43
51
|
* Per-member read horizons (snapshot, matches GetUpdates model).
|
|
44
52
|
* Client derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.
|
|
@@ -16,4 +16,8 @@ export declare const WebitelImApiGatewayV1ThreadChannelType: {
|
|
|
16
16
|
readonly ThreadChannelTypePortal: "THREAD_CHANNEL_TYPE_PORTAL";
|
|
17
17
|
readonly ThreadChannelTypeWidget: "THREAD_CHANNEL_TYPE_WIDGET";
|
|
18
18
|
readonly ThreadChannelTypeCustom: "THREAD_CHANNEL_TYPE_CUSTOM";
|
|
19
|
+
readonly ThreadChannelTypeTelegramBot: "THREAD_CHANNEL_TYPE_TELEGRAM_BOT";
|
|
20
|
+
readonly ThreadChannelTypeTelegramApp: "THREAD_CHANNEL_TYPE_TELEGRAM_APP";
|
|
21
|
+
readonly ThreadChannelTypeViber: "THREAD_CHANNEL_TYPE_VIBER";
|
|
22
|
+
readonly ThreadChannelTypeInstagram: "THREAD_CHANNEL_TYPE_INSTAGRAM";
|
|
19
23
|
};
|
|
@@ -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
|
+
* ThreadQueue is a call_center queue through which an agent received a thread.
|
|
9
|
+
*/
|
|
10
|
+
export interface WebitelImApiGatewayV1ThreadQueue {
|
|
11
|
+
/** Queue id. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** Queue display name. */
|
|
14
|
+
name?: string;
|
|
15
|
+
}
|
|
@@ -25,6 +25,8 @@ export interface WebitelKbArticle {
|
|
|
25
25
|
domainId?: string;
|
|
26
26
|
/** Concurrency token encoding id and ver. */
|
|
27
27
|
etag?: string;
|
|
28
|
+
/** Whether the article is the home page of its space. */
|
|
29
|
+
home?: boolean;
|
|
28
30
|
/** Unique identifier of the article. */
|
|
29
31
|
id?: string;
|
|
30
32
|
/** Indexing state. */
|
|
@@ -15,6 +15,8 @@ export interface WebitelKbInputArticle {
|
|
|
15
15
|
tags?: string[];
|
|
16
16
|
/** Editor document; serialized server-side to markdown/plaintext/tsvector. */
|
|
17
17
|
bodyRichText?: WebitelKbInputArticleBodyRichText;
|
|
18
|
+
/** Creates the article as the home page of its space; create only. */
|
|
19
|
+
home?: boolean;
|
|
18
20
|
/** Parent article id; 0 for a top-level article. */
|
|
19
21
|
parentId?: string;
|
|
20
22
|
/** 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
|
* InputSpace carries the writable fields of a space.
|
|
9
10
|
*/
|
|
@@ -14,8 +15,6 @@ export interface WebitelKbInputSpace {
|
|
|
14
15
|
description?: string;
|
|
15
16
|
/** Active embedding model id. */
|
|
16
17
|
embeddingModelId?: string;
|
|
17
|
-
/** Article used as the space home page. */
|
|
18
|
-
homeArticleId?: string;
|
|
19
18
|
/** Space language; immutable after creation. */
|
|
20
19
|
language?: string;
|
|
21
20
|
/** Human-readable name. */
|
|
@@ -24,11 +23,16 @@ export interface WebitelKbInputSpace {
|
|
|
24
23
|
rerankEnabled?: boolean;
|
|
25
24
|
/** Reranker model id. */
|
|
26
25
|
rerankerModelId?: string;
|
|
26
|
+
/** Lifecycle state; unspecified keeps the current one, active on create. */
|
|
27
|
+
state?: WebitelKbSpaceState;
|
|
27
28
|
/**
|
|
28
29
|
* Team ids the space is bound to as default operator visibility;
|
|
29
30
|
* the set replaces the current binding, empty removes it.
|
|
30
31
|
*/
|
|
31
32
|
teamIds?: string[];
|
|
32
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Whether vector search is on; on when omitted at creation. Without a
|
|
35
|
+
* model the space is searched by text alone.
|
|
36
|
+
*/
|
|
33
37
|
vectorSearchEnabled?: boolean;
|
|
34
38
|
}
|
|
@@ -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
|
* Space is a knowledge-base space read model.
|
|
10
11
|
*/
|
|
@@ -33,6 +34,8 @@ export interface WebitelKbSpace {
|
|
|
33
34
|
rerankEnabled?: boolean;
|
|
34
35
|
/** Reranker model id (type=reranker). */
|
|
35
36
|
rerankerModelId?: string;
|
|
37
|
+
/** Lifecycle state. */
|
|
38
|
+
state?: WebitelKbSpaceState;
|
|
36
39
|
/** Target embedding model id for a pending model migration. */
|
|
37
40
|
targetEmbeddingModelId?: string;
|
|
38
41
|
/**
|
|
@@ -44,6 +47,9 @@ export interface WebitelKbSpace {
|
|
|
44
47
|
updatedAt?: string;
|
|
45
48
|
/** User who last updated the space. */
|
|
46
49
|
updatedBy?: GeneralLookup;
|
|
47
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Whether vector search is on. Without a model the space is searched by
|
|
52
|
+
* text alone.
|
|
53
|
+
*/
|
|
48
54
|
vectorSearchEnabled?: boolean;
|
|
49
55
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Space lifecycle state.
|
|
9
|
+
*
|
|
10
|
+
* - SPACE_STATE_ACTIVE: Articles of the space are retrievable.
|
|
11
|
+
* - SPACE_STATE_INACTIVE: Articles are kept but excluded from search and suggestions.
|
|
12
|
+
*/
|
|
13
|
+
export type WebitelKbSpaceState = (typeof WebitelKbSpaceState)[keyof typeof WebitelKbSpaceState];
|
|
14
|
+
export declare const WebitelKbSpaceState: {
|
|
15
|
+
readonly SpaceStateUnspecified: "SPACE_STATE_UNSPECIFIED";
|
|
16
|
+
readonly SpaceStateActive: "SPACE_STATE_ACTIVE";
|
|
17
|
+
readonly SpaceStateInactive: "SPACE_STATE_INACTIVE";
|
|
18
|
+
};
|
|
@@ -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
|
export type ListSpacesParams = {
|
|
8
9
|
/**
|
|
9
10
|
* Page size.
|
|
@@ -25,4 +26,11 @@ export type ListSpacesParams = {
|
|
|
25
26
|
* Set of fields to return.
|
|
26
27
|
*/
|
|
27
28
|
fields?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Optional state filter.
|
|
31
|
+
*
|
|
32
|
+
* - SPACE_STATE_ACTIVE: Articles of the space are retrievable.
|
|
33
|
+
* - SPACE_STATE_INACTIVE: Articles are kept but excluded from search and suggestions.
|
|
34
|
+
*/
|
|
35
|
+
state?: ListSpacesState;
|
|
28
36
|
};
|
|
@@ -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
|
+
export type ListSpacesState = (typeof ListSpacesState)[keyof typeof ListSpacesState];
|
|
8
|
+
export declare const ListSpacesState: {
|
|
9
|
+
readonly SpaceStateUnspecified: "SPACE_STATE_UNSPECIFIED";
|
|
10
|
+
readonly SpaceStateActive: "SPACE_STATE_ACTIVE";
|
|
11
|
+
readonly SpaceStateInactive: "SPACE_STATE_INACTIVE";
|
|
12
|
+
};
|
|
@@ -10,6 +10,7 @@ export type ThreadManagementSearchLeftParams = {
|
|
|
10
10
|
* List of fields that should be returned in the response.
|
|
11
11
|
* If empty, a default set of fields is returned.
|
|
12
12
|
* Used for response optimization.
|
|
13
|
+
* The default set includes "channel" and "queue".
|
|
13
14
|
*/
|
|
14
15
|
fields?: string[];
|
|
15
16
|
/**
|
|
@@ -26,6 +27,7 @@ export type ThreadManagementSearchLeftParams = {
|
|
|
26
27
|
* Sorting field.
|
|
27
28
|
* Optional "+" or "-" prefix indicates ascending or descending order.
|
|
28
29
|
* Example: "-created_at", "subject"
|
|
30
|
+
* Sort-only keys: "channel_name", "queue_name" (threads without a value sort last).
|
|
29
31
|
*/
|
|
30
32
|
sort?: string;
|
|
31
33
|
/**
|
|
@@ -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
|
/**
|
|
@@ -22,6 +23,8 @@ export interface WebitelImApiGatewayV1Thread {
|
|
|
22
23
|
* Channel the external participant reaches the thread through: a provider
|
|
23
24
|
* gate (WhatsApp, Facebook, Viber BM, custom) or a portal / widget
|
|
24
25
|
* application. Unset when it cannot be resolved (e.g. an internal thread).
|
|
26
|
+
* Search sorts by channel.name with the sort-only key "channel_name"
|
|
27
|
+
* (+channel_name / -channel_name); threads without a gate name sort last.
|
|
25
28
|
*/
|
|
26
29
|
channel?: WebitelImApiGatewayV1ThreadChannel;
|
|
27
30
|
/** Thread creation timestamp (Unix time, milliseconds). */
|
|
@@ -39,6 +42,11 @@ export interface WebitelImApiGatewayV1Thread {
|
|
|
39
42
|
last_msg?: WebitelImApiGatewayV1HistoryMessage;
|
|
40
43
|
/** Detailed member information. */
|
|
41
44
|
members?: WebitelImApiGatewayV1ThreadMember[];
|
|
45
|
+
/**
|
|
46
|
+
* Queue through which the calling participant received the thread. Set by Search; unset when unknown.
|
|
47
|
+
* Search sorts by queue.name with the sort-only key "queue_name".
|
|
48
|
+
*/
|
|
49
|
+
queue?: WebitelImApiGatewayV1ThreadQueue;
|
|
42
50
|
/**
|
|
43
51
|
* Per-member read horizons (snapshot, matches GetUpdates model).
|
|
44
52
|
* Client derives inbox/outbox watermarks: own_last_read = inbox; MIN over others = outbox.
|
|
@@ -16,4 +16,8 @@ export declare const WebitelImApiGatewayV1ThreadChannelType: {
|
|
|
16
16
|
readonly ThreadChannelTypePortal: "THREAD_CHANNEL_TYPE_PORTAL";
|
|
17
17
|
readonly ThreadChannelTypeWidget: "THREAD_CHANNEL_TYPE_WIDGET";
|
|
18
18
|
readonly ThreadChannelTypeCustom: "THREAD_CHANNEL_TYPE_CUSTOM";
|
|
19
|
+
readonly ThreadChannelTypeTelegramBot: "THREAD_CHANNEL_TYPE_TELEGRAM_BOT";
|
|
20
|
+
readonly ThreadChannelTypeTelegramApp: "THREAD_CHANNEL_TYPE_TELEGRAM_APP";
|
|
21
|
+
readonly ThreadChannelTypeViber: "THREAD_CHANNEL_TYPE_VIBER";
|
|
22
|
+
readonly ThreadChannelTypeInstagram: "THREAD_CHANNEL_TYPE_INSTAGRAM";
|
|
19
23
|
};
|
|
@@ -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
|
+
* ThreadQueue is a call_center queue through which an agent received a thread.
|
|
9
|
+
*/
|
|
10
|
+
export interface WebitelImApiGatewayV1ThreadQueue {
|
|
11
|
+
/** Queue id. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/** Queue display name. */
|
|
14
|
+
name?: string;
|
|
15
|
+
}
|
|
@@ -25,6 +25,8 @@ export interface WebitelKbArticle {
|
|
|
25
25
|
domain_id?: string;
|
|
26
26
|
/** Concurrency token encoding id and ver. */
|
|
27
27
|
etag?: string;
|
|
28
|
+
/** Whether the article is the home page of its space. */
|
|
29
|
+
home?: boolean;
|
|
28
30
|
/** Unique identifier of the article. */
|
|
29
31
|
id?: string;
|
|
30
32
|
/** Indexing state. */
|
|
@@ -15,6 +15,8 @@ export interface WebitelKbInputArticle {
|
|
|
15
15
|
tags?: string[];
|
|
16
16
|
/** Editor document; serialized server-side to markdown/plaintext/tsvector. */
|
|
17
17
|
body_rich_text?: WebitelKbInputArticleBodyRichText;
|
|
18
|
+
/** Creates the article as the home page of its space; create only. */
|
|
19
|
+
home?: boolean;
|
|
18
20
|
/** Parent article id; 0 for a top-level article. */
|
|
19
21
|
parent_id?: string;
|
|
20
22
|
/** 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
|
* InputSpace carries the writable fields of a space.
|
|
9
10
|
*/
|
|
@@ -14,8 +15,6 @@ export interface WebitelKbInputSpace {
|
|
|
14
15
|
description?: string;
|
|
15
16
|
/** Active embedding model id. */
|
|
16
17
|
embedding_model_id?: string;
|
|
17
|
-
/** Article used as the space home page. */
|
|
18
|
-
home_article_id?: string;
|
|
19
18
|
/** Space language; immutable after creation. */
|
|
20
19
|
language?: string;
|
|
21
20
|
/** Human-readable name. */
|
|
@@ -24,11 +23,16 @@ export interface WebitelKbInputSpace {
|
|
|
24
23
|
rerank_enabled?: boolean;
|
|
25
24
|
/** Reranker model id. */
|
|
26
25
|
reranker_model_id?: string;
|
|
26
|
+
/** Lifecycle state; unspecified keeps the current one, active on create. */
|
|
27
|
+
state?: WebitelKbSpaceState;
|
|
27
28
|
/**
|
|
28
29
|
* Team ids the space is bound to as default operator visibility;
|
|
29
30
|
* the set replaces the current binding, empty removes it.
|
|
30
31
|
*/
|
|
31
32
|
team_ids?: string[];
|
|
32
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Whether vector search is on; on when omitted at creation. Without a
|
|
35
|
+
* model the space is searched by text alone.
|
|
36
|
+
*/
|
|
33
37
|
vector_search_enabled?: boolean;
|
|
34
38
|
}
|
|
@@ -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
|
* Space is a knowledge-base space read model.
|
|
10
11
|
*/
|
|
@@ -33,6 +34,8 @@ export interface WebitelKbSpace {
|
|
|
33
34
|
rerank_enabled?: boolean;
|
|
34
35
|
/** Reranker model id (type=reranker). */
|
|
35
36
|
reranker_model_id?: string;
|
|
37
|
+
/** Lifecycle state. */
|
|
38
|
+
state?: WebitelKbSpaceState;
|
|
36
39
|
/** Target embedding model id for a pending model migration. */
|
|
37
40
|
target_embedding_model_id?: string;
|
|
38
41
|
/**
|
|
@@ -44,6 +47,9 @@ export interface WebitelKbSpace {
|
|
|
44
47
|
updated_at?: string;
|
|
45
48
|
/** User who last updated the space. */
|
|
46
49
|
updated_by?: GeneralLookup;
|
|
47
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Whether vector search is on. Without a model the space is searched by
|
|
52
|
+
* text alone.
|
|
53
|
+
*/
|
|
48
54
|
vector_search_enabled?: boolean;
|
|
49
55
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Space lifecycle state.
|
|
9
|
+
*
|
|
10
|
+
* - SPACE_STATE_ACTIVE: Articles of the space are retrievable.
|
|
11
|
+
* - SPACE_STATE_INACTIVE: Articles are kept but excluded from search and suggestions.
|
|
12
|
+
*/
|
|
13
|
+
export type WebitelKbSpaceState = (typeof WebitelKbSpaceState)[keyof typeof WebitelKbSpaceState];
|
|
14
|
+
export declare const WebitelKbSpaceState: {
|
|
15
|
+
readonly SpaceStateUnspecified: "SPACE_STATE_UNSPECIFIED";
|
|
16
|
+
readonly SpaceStateActive: "SPACE_STATE_ACTIVE";
|
|
17
|
+
readonly SpaceStateInactive: "SPACE_STATE_INACTIVE";
|
|
18
|
+
};
|