@webitel/api-services 0.1.41 → 0.1.42
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 +2 -2
- package/src/gen/_models/apiGeneratePasswordRequest.ts +12 -0
- package/src/gen/_models/apiGeneratePasswordRequest.zod.ts +12 -0
- package/src/gen/_models/{updateUser2BodyProfile.ts → apiGeneratePasswordResponse.ts} +3 -3
- package/src/gen/_models/{updateUser2BodyProfile.zod.ts → apiGeneratePasswordResponse.zod.ts} +3 -3
- package/src/gen/_models/{updateUserBody.ts → apiInputUser.ts} +9 -15
- package/src/gen/_models/{updateUserBody.zod.ts → apiInputUser.zod.ts} +9 -15
- package/src/gen/_models/apiInputUserBody.ts +12 -0
- package/src/gen/_models/apiInputUserBody.zod.ts +12 -0
- package/src/gen/_models/apiInputUserDevice.ts +13 -0
- package/src/gen/_models/apiInputUserDevice.zod.ts +13 -0
- package/src/gen/_models/{updateUserBodyProfile.ts → apiInputUserProfile.ts} +1 -1
- package/src/gen/_models/{updateUserBodyProfile.zod.ts → apiInputUserProfile.zod.ts} +1 -1
- package/src/gen/_models/apiUser.ts +7 -7
- package/src/gen/_models/apiUser.zod.ts +7 -7
- package/src/gen/_models/apiUserinfo.ts +1 -0
- package/src/gen/_models/apiUserinfo.zod.ts +1 -0
- package/src/gen/_models/contactsCreateContactError.ts +20 -0
- package/src/gen/_models/contactsCreateContactError.zod.ts +20 -0
- package/src/gen/_models/contactsCreateContactsBulkResponse.ts +20 -0
- package/src/gen/_models/contactsCreateContactsBulkResponse.zod.ts +20 -0
- package/src/gen/_models/createContactsParams.ts +13 -0
- package/src/gen/_models/createContactsParams.zod.ts +13 -0
- package/src/gen/_models/createUserParams.ts +31 -0
- package/src/gen/_models/createUserParams.zod.ts +31 -0
- package/src/gen/_models/engineSystemSettingName.ts +2 -0
- package/src/gen/_models/engineSystemSettingName.zod.ts +2 -0
- package/src/gen/_models/index.ts +15 -9
- package/src/gen/_models/index.zod.ts +15 -9
- package/src/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.ts +49 -0
- package/src/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.zod.ts +49 -0
- package/src/gen/_models/searchSystemSettingNameItem.ts +2 -0
- package/src/gen/_models/searchSystemSettingNameItem.zod.ts +2 -0
- package/src/gen/_models/signupParams.ts +5 -0
- package/src/gen/_models/signupParams.zod.ts +5 -0
- package/src/gen/_models/webitelCasesInputPriority.ts +5 -2
- package/src/gen/_models/webitelCasesInputPriority.zod.ts +5 -2
- package/src/gen/_models/webitelCasesPriority.ts +10 -7
- package/src/gen/_models/webitelCasesPriority.zod.ts +10 -7
- package/src/gen/_models/webitelImApiGatewayV1SendContactRequest.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendContactRequest.zod.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendDocumentRequest.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendDocumentRequest.zod.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendImageRequest.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendImageRequest.zod.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendInteractiveMessageRequest.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendInteractiveMessageRequest.zod.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendLocationRequest.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendLocationRequest.zod.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendTextRequest.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1SendTextRequest.zod.ts +2 -0
- package/src/gen/_models/webitelImProviderV1CreateGateRequest.ts +17 -0
- package/src/gen/_models/webitelImProviderV1CreateGateRequest.zod.ts +17 -0
- package/src/gen/_models/webitelImProviderV1CreateWABAGateRequest.ts +14 -0
- package/src/gen/_models/webitelImProviderV1CreateWABAGateRequest.zod.ts +14 -0
- package/src/gen/_models/webitelImProviderV1GateResponse.ts +21 -0
- package/src/gen/_models/webitelImProviderV1GateResponse.zod.ts +21 -0
- package/src/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.ts +1 -0
- package/src/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.zod.ts +1 -0
- package/src/gen/_models/webitelImProviderV1ProviderSendImageRequest.ts +1 -0
- package/src/gen/_models/webitelImProviderV1ProviderSendImageRequest.zod.ts +1 -0
- package/src/gen/_models/webitelImProviderV1ProviderSendTextRequest.ts +1 -0
- package/src/gen/_models/webitelImProviderV1ProviderSendTextRequest.zod.ts +1 -0
- package/src/gen/_models/webitelImProviderV1WhatsAppBusinessAccount.ts +16 -0
- package/src/gen/_models/webitelImProviderV1WhatsAppBusinessAccount.zod.ts +16 -0
- package/src/gen/auth/auth.msw.ts +18 -0
- package/src/gen/auth/auth.zod.ts +8 -0
- package/src/gen/cases/cases.msw.ts +1093 -1387
- package/src/gen/cases/cases.zod.ts +210 -245
- package/src/gen/catalogs/catalogs.msw.ts +836 -1088
- package/src/gen/catalogs/catalogs.zod.ts +198 -216
- package/src/gen/contacts/contacts.msw.ts +2900 -1
- package/src/gen/contacts/contacts.ts +21 -0
- package/src/gen/contacts/contacts.zod.ts +2083 -0
- package/src/gen/priorities/priorities.msw.ts +408 -534
- package/src/gen/priorities/priorities.zod.ts +108 -113
- package/src/gen/services/services.msw.ts +613 -802
- package/src/gen/services/services.zod.ts +96 -108
- package/src/gen/system-setting-service/system-setting-service.zod.ts +16 -0
- package/src/gen/users/users.msw.ts +434 -397
- package/src/gen/users/users.ts +46 -57
- package/src/gen/users/users.zod.ts +443 -459
- package/src/gen/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.ts +42 -0
- package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.msw.ts +931 -0
- package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.ts +27 -0
- package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +576 -0
- package/src/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +3 -0
- package/src/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.msw.ts +94 -19
- package/src/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.ts +6 -8
- package/src/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.zod.ts +64 -42
- package/types/gen/_models/apiGeneratePasswordRequest.d.ts +11 -0
- package/types/gen/_models/apiGeneratePasswordRequest.zod.d.ts +11 -0
- package/types/gen/_models/apiGeneratePasswordResponse.d.ts +9 -0
- package/types/gen/_models/apiGeneratePasswordResponse.zod.d.ts +9 -0
- package/types/gen/_models/{updateUserBody.d.ts → apiInputUser.d.ts} +9 -15
- package/types/gen/_models/{updateUserBody.zod.d.ts → apiInputUser.zod.d.ts} +9 -15
- package/types/gen/_models/apiInputUserBody.d.ts +11 -0
- package/types/gen/_models/apiInputUserBody.zod.d.ts +11 -0
- package/types/gen/_models/apiInputUserDevice.d.ts +12 -0
- package/types/gen/_models/apiInputUserDevice.zod.d.ts +12 -0
- package/types/gen/_models/{updateUserBodyProfile.d.ts → apiInputUserProfile.d.ts} +1 -1
- package/types/gen/_models/{updateUserBodyProfile.zod.d.ts → apiInputUserProfile.zod.d.ts} +1 -1
- package/types/gen/_models/apiUser.d.ts +7 -7
- package/types/gen/_models/apiUser.zod.d.ts +7 -7
- package/types/gen/_models/apiUserinfo.d.ts +1 -0
- package/types/gen/_models/apiUserinfo.zod.d.ts +1 -0
- package/types/gen/_models/contactsCreateContactError.d.ts +19 -0
- package/types/gen/_models/contactsCreateContactError.zod.d.ts +19 -0
- package/types/gen/_models/contactsCreateContactsBulkResponse.d.ts +19 -0
- package/types/gen/_models/contactsCreateContactsBulkResponse.zod.d.ts +19 -0
- package/types/gen/_models/createContactsParams.d.ts +12 -0
- package/types/gen/_models/createContactsParams.zod.d.ts +12 -0
- package/types/gen/_models/createUserParams.d.ts +30 -0
- package/types/gen/_models/createUserParams.zod.d.ts +30 -0
- package/types/gen/_models/engineSystemSettingName.d.ts +2 -0
- package/types/gen/_models/engineSystemSettingName.zod.d.ts +2 -0
- package/types/gen/_models/index.zod.d.ts +15 -9
- package/types/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.d.ts +48 -0
- package/types/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.zod.d.ts +48 -0
- package/types/gen/_models/searchSystemSettingNameItem.d.ts +2 -0
- package/types/gen/_models/searchSystemSettingNameItem.zod.d.ts +2 -0
- package/types/gen/_models/signupParams.d.ts +5 -0
- package/types/gen/_models/signupParams.zod.d.ts +5 -0
- package/types/gen/_models/webitelCasesInputPriority.d.ts +5 -2
- package/types/gen/_models/webitelCasesInputPriority.zod.d.ts +5 -2
- package/types/gen/_models/webitelCasesPriority.d.ts +10 -7
- package/types/gen/_models/webitelCasesPriority.zod.d.ts +10 -7
- package/types/gen/_models/webitelImApiGatewayV1SendContactRequest.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendContactRequest.zod.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendDocumentRequest.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendDocumentRequest.zod.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendImageRequest.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendImageRequest.zod.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendInteractiveMessageRequest.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendInteractiveMessageRequest.zod.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendLocationRequest.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendLocationRequest.zod.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendTextRequest.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1SendTextRequest.zod.d.ts +2 -0
- package/types/gen/_models/webitelImProviderV1CreateGateRequest.d.ts +16 -0
- package/types/gen/_models/webitelImProviderV1CreateGateRequest.zod.d.ts +16 -0
- package/types/gen/_models/webitelImProviderV1CreateWABAGateRequest.d.ts +13 -0
- package/types/gen/_models/webitelImProviderV1CreateWABAGateRequest.zod.d.ts +13 -0
- package/types/gen/_models/webitelImProviderV1GateResponse.d.ts +20 -0
- package/types/gen/_models/webitelImProviderV1GateResponse.zod.d.ts +20 -0
- package/types/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.d.ts +1 -0
- package/types/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.zod.d.ts +1 -0
- package/types/gen/_models/webitelImProviderV1ProviderSendImageRequest.d.ts +1 -0
- package/types/gen/_models/webitelImProviderV1ProviderSendImageRequest.zod.d.ts +1 -0
- package/types/gen/_models/webitelImProviderV1ProviderSendTextRequest.d.ts +1 -0
- package/types/gen/_models/webitelImProviderV1ProviderSendTextRequest.zod.d.ts +1 -0
- package/types/gen/_models/webitelImProviderV1WhatsAppBusinessAccount.d.ts +15 -0
- package/types/gen/_models/webitelImProviderV1WhatsAppBusinessAccount.zod.d.ts +15 -0
- package/types/gen/auth/auth.zod.d.ts +3 -0
- package/types/gen/cases/cases.zod.d.ts +126 -126
- package/types/gen/catalogs/catalogs.zod.d.ts +108 -108
- package/types/gen/contacts/contacts.d.ts +3 -1
- package/types/gen/contacts/contacts.msw.d.ts +3 -1
- package/types/gen/contacts/contacts.zod.d.ts +665 -0
- package/types/gen/priorities/priorities.zod.d.ts +60 -60
- package/types/gen/services/services.zod.d.ts +54 -54
- package/types/gen/system-setting-service/system-setting-service.zod.d.ts +16 -0
- package/types/gen/users/users.d.ts +8 -25
- package/types/gen/users/users.msw.d.ts +7 -5
- package/types/gen/users/users.zod.d.ts +136 -139
- package/types/gen/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.d.ts +30 -0
- package/types/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.d.ts +3 -1
- package/types/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.msw.d.ts +2 -0
- package/types/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +167 -0
- package/types/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +3 -0
- package/types/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.d.ts +3 -3
- package/types/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.msw.d.ts +3 -3
- package/types/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.zod.d.ts +40 -17
- package/src/gen/_models/apiCreateUserRequest.ts +0 -13
- package/src/gen/_models/apiCreateUserRequest.zod.ts +0 -13
- package/src/gen/_models/updateUser2Body.ts +0 -45
- package/src/gen/_models/updateUser2Body.zod.ts +0 -45
- package/src/gen/_models/updateUserUserBody.ts +0 -45
- package/src/gen/_models/updateUserUserBody.zod.ts +0 -45
- package/src/gen/_models/updateUserUserBodyProfile.ts +0 -10
- package/src/gen/_models/updateUserUserBodyProfile.zod.ts +0 -10
- package/src/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateRequest.ts +0 -17
- package/src/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateRequest.zod.ts +0 -17
- package/src/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateResponse.ts +0 -14
- package/src/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateResponse.zod.ts +0 -14
- package/types/gen/_models/apiCreateUserRequest.d.ts +0 -12
- package/types/gen/_models/apiCreateUserRequest.zod.d.ts +0 -12
- package/types/gen/_models/updateUser2Body.d.ts +0 -44
- package/types/gen/_models/updateUser2Body.zod.d.ts +0 -44
- package/types/gen/_models/updateUser2BodyProfile.d.ts +0 -9
- package/types/gen/_models/updateUser2BodyProfile.zod.d.ts +0 -9
- package/types/gen/_models/updateUserUserBody.d.ts +0 -44
- package/types/gen/_models/updateUserUserBody.zod.d.ts +0 -44
- package/types/gen/_models/updateUserUserBodyProfile.d.ts +0 -9
- package/types/gen/_models/updateUserUserBodyProfile.zod.d.ts +0 -9
- package/types/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateRequest.d.ts +0 -16
- package/types/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateRequest.zod.d.ts +0 -16
- package/types/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateResponse.d.ts +0 -13
- package/types/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateResponse.zod.d.ts +0 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/api-services",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"zod": "^4.3.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@biomejs/biome": "
|
|
46
|
+
"@biomejs/biome": "2.4.16",
|
|
47
47
|
"@tsconfig/node22": "^22.0.0",
|
|
48
48
|
"@types/node": "^22.13.10",
|
|
49
49
|
"axios": "1.13.2",
|
|
@@ -4,25 +4,23 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
+
import type { ApiInputUserProfile } from './apiInputUserProfile';
|
|
7
8
|
import type { ApiLicenseUser } from './apiLicenseUser';
|
|
8
9
|
import type { ApiObjectId } from './apiObjectId';
|
|
9
10
|
import type { ApiPermission } from './apiPermission';
|
|
10
|
-
import type { ApiUserId } from './apiUserId';
|
|
11
11
|
import type { ApiUserPresence } from './apiUserPresence';
|
|
12
|
-
import type { UpdateUserBodyProfile } from './updateUserBodyProfile';
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Input of the User profile for Create/Update operations.
|
|
15
|
+
Mirrors `User` field numbers 1:1 (wire-compatible), but excludes
|
|
16
|
+
system-managed read-only fields (id, audit metadata).
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiInputUser {
|
|
15
19
|
/** The "chat_name" field is used to store the name displayed externally on the platform.
|
|
16
20
|
For example, "chat_name" is shown when an agent connects to chats with clients. */
|
|
17
21
|
chatName?: string;
|
|
18
|
-
/** [optional] contact connected to this user */
|
|
19
22
|
contact?: ApiObjectId;
|
|
20
|
-
readonly createdAt?: string;
|
|
21
|
-
readonly createdBy?: ApiUserId;
|
|
22
|
-
readonly deletedAt?: string;
|
|
23
|
-
readonly deletedBy?: ApiUserId;
|
|
24
23
|
device?: ApiObjectId;
|
|
25
|
-
/** [editable] list of unique `regular` devices, attached to this user */
|
|
26
24
|
devices?: ApiObjectId[];
|
|
27
25
|
email?: string;
|
|
28
26
|
extension?: string;
|
|
@@ -33,13 +31,9 @@ For example, "chat_name" is shown when an agent connects to chats with clients.
|
|
|
33
31
|
name?: string;
|
|
34
32
|
password?: string;
|
|
35
33
|
permissions?: ApiPermission[];
|
|
36
|
-
/** string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]
|
|
37
|
-
string status = 8; // short display status (short description) */
|
|
38
34
|
presence?: ApiUserPresence;
|
|
39
|
-
profile?:
|
|
35
|
+
profile?: ApiInputUserProfile;
|
|
40
36
|
roles?: ApiObjectId[];
|
|
41
37
|
totpUrl?: string;
|
|
42
|
-
readonly updatedAt?: string;
|
|
43
|
-
readonly updatedBy?: ApiUserId;
|
|
44
38
|
username?: string;
|
|
45
|
-
}
|
|
39
|
+
}
|
|
@@ -4,25 +4,23 @@
|
|
|
4
4
|
* Webitel API
|
|
5
5
|
* OpenAPI spec version: 24.04.0
|
|
6
6
|
*/
|
|
7
|
+
import type { ApiInputUserProfile } from './apiInputUserProfile';
|
|
7
8
|
import type { ApiLicenseUser } from './apiLicenseUser';
|
|
8
9
|
import type { ApiObjectId } from './apiObjectId';
|
|
9
10
|
import type { ApiPermission } from './apiPermission';
|
|
10
|
-
import type { ApiUserId } from './apiUserId';
|
|
11
11
|
import type { ApiUserPresence } from './apiUserPresence';
|
|
12
|
-
import type { UpdateUserBodyProfile } from './updateUserBodyProfile';
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Input of the User profile for Create/Update operations.
|
|
15
|
+
Mirrors `User` field numbers 1:1 (wire-compatible), but excludes
|
|
16
|
+
system-managed read-only fields (id, audit metadata).
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiInputUser {
|
|
15
19
|
/** The "chat_name" field is used to store the name displayed externally on the platform.
|
|
16
20
|
For example, "chat_name" is shown when an agent connects to chats with clients. */
|
|
17
21
|
chatName?: string;
|
|
18
|
-
/** [optional] contact connected to this user */
|
|
19
22
|
contact?: ApiObjectId;
|
|
20
|
-
readonly createdAt?: string;
|
|
21
|
-
readonly createdBy?: ApiUserId;
|
|
22
|
-
readonly deletedAt?: string;
|
|
23
|
-
readonly deletedBy?: ApiUserId;
|
|
24
23
|
device?: ApiObjectId;
|
|
25
|
-
/** [editable] list of unique `regular` devices, attached to this user */
|
|
26
24
|
devices?: ApiObjectId[];
|
|
27
25
|
email?: string;
|
|
28
26
|
extension?: string;
|
|
@@ -33,13 +31,9 @@ For example, "chat_name" is shown when an agent connects to chats with clients.
|
|
|
33
31
|
name?: string;
|
|
34
32
|
password?: string;
|
|
35
33
|
permissions?: ApiPermission[];
|
|
36
|
-
/** string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]
|
|
37
|
-
string status = 8; // short display status (short description) */
|
|
38
34
|
presence?: ApiUserPresence;
|
|
39
|
-
profile?:
|
|
35
|
+
profile?: ApiInputUserProfile;
|
|
40
36
|
roles?: ApiObjectId[];
|
|
41
37
|
totpUrl?: string;
|
|
42
|
-
readonly updatedAt?: string;
|
|
43
|
-
readonly updatedBy?: ApiUserId;
|
|
44
38
|
username?: string;
|
|
45
|
-
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ApiInputUser } from './apiInputUser';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* body: modifications/changes
|
|
11
|
+
*/
|
|
12
|
+
export type ApiInputUserBody = ApiInputUser;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ApiInputUser } from './apiInputUser';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* body: modifications/changes
|
|
11
|
+
*/
|
|
12
|
+
export type ApiInputUserBody = ApiInputUser;
|
|
@@ -20,10 +20,10 @@ For example, "chat_name" is shown when an agent connects to chats with clients.
|
|
|
20
20
|
chatName?: string;
|
|
21
21
|
/** [optional] contact connected to this user */
|
|
22
22
|
contact?: ApiObjectId;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
createdAt?: string;
|
|
24
|
+
createdBy?: ApiUserId;
|
|
25
|
+
deletedAt?: string;
|
|
26
|
+
deletedBy?: ApiUserId;
|
|
27
27
|
device?: ApiObjectId;
|
|
28
28
|
/** [editable] list of unique `regular` devices, attached to this user */
|
|
29
29
|
devices?: ApiObjectId[];
|
|
@@ -32,7 +32,7 @@ For example, "chat_name" is shown when an agent connects to chats with clients.
|
|
|
32
32
|
/** When set to true, the user will be required to change their password on next login. */
|
|
33
33
|
forcePasswordChange?: boolean;
|
|
34
34
|
hotdesks?: ApiObjectId[];
|
|
35
|
-
|
|
35
|
+
id?: string;
|
|
36
36
|
license?: ApiLicenseUser[];
|
|
37
37
|
name?: string;
|
|
38
38
|
password?: string;
|
|
@@ -43,7 +43,7 @@ For example, "chat_name" is shown when an agent connects to chats with clients.
|
|
|
43
43
|
profile?: ApiUserProfile;
|
|
44
44
|
roles?: ApiObjectId[];
|
|
45
45
|
totpUrl?: string;
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
updatedAt?: string;
|
|
47
|
+
updatedBy?: ApiUserId;
|
|
48
48
|
username?: string;
|
|
49
49
|
}
|
|
@@ -20,10 +20,10 @@ For example, "chat_name" is shown when an agent connects to chats with clients.
|
|
|
20
20
|
chatName?: string;
|
|
21
21
|
/** [optional] contact connected to this user */
|
|
22
22
|
contact?: ApiObjectId;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
createdAt?: string;
|
|
24
|
+
createdBy?: ApiUserId;
|
|
25
|
+
deletedAt?: string;
|
|
26
|
+
deletedBy?: ApiUserId;
|
|
27
27
|
device?: ApiObjectId;
|
|
28
28
|
/** [editable] list of unique `regular` devices, attached to this user */
|
|
29
29
|
devices?: ApiObjectId[];
|
|
@@ -32,7 +32,7 @@ For example, "chat_name" is shown when an agent connects to chats with clients.
|
|
|
32
32
|
/** When set to true, the user will be required to change their password on next login. */
|
|
33
33
|
forcePasswordChange?: boolean;
|
|
34
34
|
hotdesks?: ApiObjectId[];
|
|
35
|
-
|
|
35
|
+
id?: string;
|
|
36
36
|
license?: ApiLicenseUser[];
|
|
37
37
|
name?: string;
|
|
38
38
|
password?: string;
|
|
@@ -43,7 +43,7 @@ For example, "chat_name" is shown when an agent connects to chats with clients.
|
|
|
43
43
|
profile?: ApiUserProfile;
|
|
44
44
|
roles?: ApiObjectId[];
|
|
45
45
|
totpUrl?: string;
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
updatedAt?: string;
|
|
47
|
+
updatedBy?: ApiUserId;
|
|
48
48
|
username?: string;
|
|
49
49
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ContactsInputContact } from './contactsInputContact';
|
|
8
|
+
import type { RpcStatus } from './rpcStatus';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Per-item failure of a bulk Contact create.
|
|
12
|
+
*/
|
|
13
|
+
export interface ContactsCreateContactError {
|
|
14
|
+
/** Standardized error (code, message, details). */
|
|
15
|
+
error?: RpcStatus;
|
|
16
|
+
/** 0-based position in CreateContactsRequest.input. */
|
|
17
|
+
index?: number;
|
|
18
|
+
/** The InputContact that failed. */
|
|
19
|
+
input?: ContactsInputContact;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ContactsInputContact } from './contactsInputContact';
|
|
8
|
+
import type { RpcStatus } from './rpcStatus';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Per-item failure of a bulk Contact create.
|
|
12
|
+
*/
|
|
13
|
+
export interface ContactsCreateContactError {
|
|
14
|
+
/** Standardized error (code, message, details). */
|
|
15
|
+
error?: RpcStatus;
|
|
16
|
+
/** 0-based position in CreateContactsRequest.input. */
|
|
17
|
+
index?: number;
|
|
18
|
+
/** The InputContact that failed. */
|
|
19
|
+
input?: ContactsInputContact;
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ContactsCreateContactError } from './contactsCreateContactError';
|
|
8
|
+
import type { WebitelContactsContact } from './webitelContactsContact';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Bulk Create result: successfully created Contacts plus per-item failures.
|
|
12
|
+
*/
|
|
13
|
+
export interface ContactsCreateContactsBulkResponse {
|
|
14
|
+
/** Successfully created Contacts. Position matches the corresponding
|
|
15
|
+
InputContact position in CreateContactsRequest.input, skipping
|
|
16
|
+
failures. */
|
|
17
|
+
data?: WebitelContactsContact[];
|
|
18
|
+
/** Per-item failures with original index and error details. */
|
|
19
|
+
failures?: ContactsCreateContactError[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
import type { ContactsCreateContactError } from './contactsCreateContactError';
|
|
8
|
+
import type { WebitelContactsContact } from './webitelContactsContact';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Bulk Create result: successfully created Contacts plus per-item failures.
|
|
12
|
+
*/
|
|
13
|
+
export interface ContactsCreateContactsBulkResponse {
|
|
14
|
+
/** Successfully created Contacts. Position matches the corresponding
|
|
15
|
+
InputContact position in CreateContactsRequest.input, skipping
|
|
16
|
+
failures. */
|
|
17
|
+
data?: WebitelContactsContact[];
|
|
18
|
+
/** Per-item failures with original index and error details. */
|
|
19
|
+
failures?: ContactsCreateContactError[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type CreateUserParams = {
|
|
9
|
+
userPassword?: string;
|
|
10
|
+
confirmPassword?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Generate credentials & assign SIP [device] for NEW [user]
|
|
13
|
+
*/
|
|
14
|
+
generateDevice?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* SIP display name
|
|
17
|
+
*/
|
|
18
|
+
deviceName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* SIP auth-id
|
|
21
|
+
*/
|
|
22
|
+
deviceAccount?: string;
|
|
23
|
+
/**
|
|
24
|
+
* SIP password
|
|
25
|
+
*/
|
|
26
|
+
devicePassword?: string;
|
|
27
|
+
/**
|
|
28
|
+
* [re]generate SIP password ?
|
|
29
|
+
*/
|
|
30
|
+
deviceGeneratePassword?: boolean;
|
|
31
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Webitel API
|
|
5
|
+
* OpenAPI spec version: 24.04.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type CreateUserParams = {
|
|
9
|
+
userPassword?: string;
|
|
10
|
+
confirmPassword?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Generate credentials & assign SIP [device] for NEW [user]
|
|
13
|
+
*/
|
|
14
|
+
generateDevice?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* SIP display name
|
|
17
|
+
*/
|
|
18
|
+
deviceName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* SIP auth-id
|
|
21
|
+
*/
|
|
22
|
+
deviceAccount?: string;
|
|
23
|
+
/**
|
|
24
|
+
* SIP password
|
|
25
|
+
*/
|
|
26
|
+
devicePassword?: string;
|
|
27
|
+
/**
|
|
28
|
+
* [re]generate SIP password ?
|
|
29
|
+
*/
|
|
30
|
+
deviceGeneratePassword?: boolean;
|
|
31
|
+
};
|
|
@@ -44,4 +44,6 @@ export const EngineSystemSettingName = {
|
|
|
44
44
|
PasswordWarningDays: 'password_warning_days',
|
|
45
45
|
DefaultPassword: 'default_password',
|
|
46
46
|
ExpandContactTabs: 'expand_contact_tabs',
|
|
47
|
+
DefaultWorkspaceTab: 'default_workspace_tab',
|
|
48
|
+
BlockAllMemberNumbersFromList: 'block_all_member_numbers_from_list',
|
|
47
49
|
} as const;
|
|
@@ -44,4 +44,6 @@ export const EngineSystemSettingName = {
|
|
|
44
44
|
PasswordWarningDays: 'password_warning_days',
|
|
45
45
|
DefaultPassword: 'default_password',
|
|
46
46
|
ExpandContactTabs: 'expand_contact_tabs',
|
|
47
|
+
DefaultWorkspaceTab: 'default_workspace_tab',
|
|
48
|
+
BlockAllMemberNumbersFromList: 'block_all_member_numbers_from_list',
|
|
47
49
|
} as const;
|
package/src/gen/_models/index.ts
CHANGED
|
@@ -34,7 +34,6 @@ export * from './apiCreateDomainRequest';
|
|
|
34
34
|
export * from './apiCreateDomainResponse';
|
|
35
35
|
export * from './apiCreateRoleRequest';
|
|
36
36
|
export * from './apiCreateRoleResponse';
|
|
37
|
-
export * from './apiCreateUserRequest';
|
|
38
37
|
export * from './apiCreateUserResponse';
|
|
39
38
|
export * from './apiCustomer';
|
|
40
39
|
export * from './apiCustomerLimit';
|
|
@@ -50,6 +49,8 @@ export * from './apiDeviceAudit';
|
|
|
50
49
|
export * from './apiDeviceAuditResponse';
|
|
51
50
|
export * from './apiDeviceId';
|
|
52
51
|
export * from './apiDeviceProvision';
|
|
52
|
+
export * from './apiGeneratePasswordRequest';
|
|
53
|
+
export * from './apiGeneratePasswordResponse';
|
|
53
54
|
export * from './apiGenerateUserTfaKeyResponse';
|
|
54
55
|
export * from './apiGetCustomerResponse';
|
|
55
56
|
export * from './apiGetPasswordSettingsResponse';
|
|
@@ -57,6 +58,10 @@ export * from './apiGetPasswordSettingsResponseSettings';
|
|
|
57
58
|
export * from './apiGetUserTfaKeyResponse';
|
|
58
59
|
export * from './apiGetUserWarningsResponse';
|
|
59
60
|
export * from './apiGrantAccessRequestV1';
|
|
61
|
+
export * from './apiInputUser';
|
|
62
|
+
export * from './apiInputUserBody';
|
|
63
|
+
export * from './apiInputUserDevice';
|
|
64
|
+
export * from './apiInputUserProfile';
|
|
60
65
|
export * from './apiLDAPCatalog';
|
|
61
66
|
export * from './apiLDAPCatalogTLSConfig';
|
|
62
67
|
export * from './apiLDAPControl';
|
|
@@ -177,6 +182,8 @@ export * from './contactsConditionList';
|
|
|
177
182
|
export * from './contactsContactGroup';
|
|
178
183
|
export * from './contactsContactGroupList';
|
|
179
184
|
export * from './contactsContactList';
|
|
185
|
+
export * from './contactsCreateContactError';
|
|
186
|
+
export * from './contactsCreateContactsBulkResponse';
|
|
180
187
|
export * from './contactsCreateDynamicGroupRequest';
|
|
181
188
|
export * from './contactsCreateGroupRequest';
|
|
182
189
|
export * from './contactsDayTimeline';
|
|
@@ -248,6 +255,7 @@ export * from './createCatalogParams';
|
|
|
248
255
|
export * from './createCloseReasonGroupParams';
|
|
249
256
|
export * from './createCloseReasonParams';
|
|
250
257
|
export * from './createContactParams';
|
|
258
|
+
export * from './createContactsParams';
|
|
251
259
|
export * from './createData200';
|
|
252
260
|
export * from './createDataBody';
|
|
253
261
|
export * from './createDataRecordBody';
|
|
@@ -263,6 +271,7 @@ export * from './createSourceParams';
|
|
|
263
271
|
export * from './createSpaceParams';
|
|
264
272
|
export * from './createStatusConditionParams';
|
|
265
273
|
export * from './createStatusParams';
|
|
274
|
+
export * from './createUserParams';
|
|
266
275
|
export * from './dataDataset';
|
|
267
276
|
export * from './dataDatasetDataItem';
|
|
268
277
|
export * from './dataField';
|
|
@@ -902,6 +911,7 @@ export * from './mergeManagersParams';
|
|
|
902
911
|
export * from './mergePhonesParams';
|
|
903
912
|
export * from './mergeTimezonesParams';
|
|
904
913
|
export * from './mergeVariablesParams';
|
|
914
|
+
export * from './messageHistorySearchLeftThreadsMessagesHistoryParams';
|
|
905
915
|
export * from './messageHistorySearchThreadMessagesHistoryParams';
|
|
906
916
|
export * from './messageReadParams';
|
|
907
917
|
export * from './oAuth2FederationDeleteOAuthServiceBody';
|
|
@@ -1295,8 +1305,6 @@ export * from './updateTimezoneBody';
|
|
|
1295
1305
|
export * from './updateTimezoneInputBody';
|
|
1296
1306
|
export * from './updateTimezoneParams';
|
|
1297
1307
|
export * from './updateTypeParams';
|
|
1298
|
-
export * from './updateUser2Body';
|
|
1299
|
-
export * from './updateUser2BodyProfile';
|
|
1300
1308
|
export * from './updateUser2Params';
|
|
1301
1309
|
export * from './updateUserAccessToken2Body';
|
|
1302
1310
|
export * from './updateUserAccessToken2BodyUser';
|
|
@@ -1306,11 +1314,7 @@ export * from './updateUserAccessTokenBodyUser';
|
|
|
1306
1314
|
export * from './updateUserAccessTokenParams';
|
|
1307
1315
|
export * from './updateUserAccessTokenUpdateBody';
|
|
1308
1316
|
export * from './updateUserAccessTokenUpdateBodyUser';
|
|
1309
|
-
export * from './updateUserBody';
|
|
1310
|
-
export * from './updateUserBodyProfile';
|
|
1311
1317
|
export * from './updateUserParams';
|
|
1312
|
-
export * from './updateUserUserBody';
|
|
1313
|
-
export * from './updateUserUserBodyProfile';
|
|
1314
1318
|
export * from './updateVariable2Body';
|
|
1315
1319
|
export * from './updateVariable2Params';
|
|
1316
1320
|
export * from './updateVariableBody';
|
|
@@ -1642,7 +1646,10 @@ export * from './webitelImApiProviderV1ProviderUpdateMetaAppResponse';
|
|
|
1642
1646
|
export * from './webitelImApiProviderV1ProviderUpdateWhatsAppGateResponse';
|
|
1643
1647
|
export * from './webitelImApiProviderV1ProviderWhatsAppGate';
|
|
1644
1648
|
export * from './webitelImApiProviderV1WhatsAppServiceUpdateWhatsAppGateBody';
|
|
1649
|
+
export * from './webitelImProviderV1CreateGateRequest';
|
|
1650
|
+
export * from './webitelImProviderV1CreateWABAGateRequest';
|
|
1645
1651
|
export * from './webitelImProviderV1FacebookServiceUpdateFacebookGateBody';
|
|
1652
|
+
export * from './webitelImProviderV1GateResponse';
|
|
1646
1653
|
export * from './webitelImProviderV1MetaAppServiceUpdateMetaAppBody';
|
|
1647
1654
|
export * from './webitelImProviderV1MetaOAuthServiceMetaOAuthCallbackBody';
|
|
1648
1655
|
export * from './webitelImProviderV1MetaOAuthServiceStartMetaOAuthBody';
|
|
@@ -1651,8 +1658,6 @@ export * from './webitelImProviderV1ProviderCreateFacebookGateRequest';
|
|
|
1651
1658
|
export * from './webitelImProviderV1ProviderCreateFacebookGateResponse';
|
|
1652
1659
|
export * from './webitelImProviderV1ProviderCreateMetaAppRequest';
|
|
1653
1660
|
export * from './webitelImProviderV1ProviderCreateMetaAppResponse';
|
|
1654
|
-
export * from './webitelImProviderV1ProviderCreateWhatsAppGateRequest';
|
|
1655
|
-
export * from './webitelImProviderV1ProviderCreateWhatsAppGateResponse';
|
|
1656
1661
|
export * from './webitelImProviderV1ProviderDeleteFacebookGateResponse';
|
|
1657
1662
|
export * from './webitelImProviderV1ProviderDeleteMetaAppResponse';
|
|
1658
1663
|
export * from './webitelImProviderV1ProviderDeleteWhatsAppGateResponse';
|
|
@@ -1678,6 +1683,7 @@ export * from './webitelImProviderV1ProviderUpdateFacebookGateResponse';
|
|
|
1678
1683
|
export * from './webitelImProviderV1ProviderUpdateMetaAppResponse';
|
|
1679
1684
|
export * from './webitelImProviderV1ProviderUpdateWhatsAppGateResponse';
|
|
1680
1685
|
export * from './webitelImProviderV1ProviderWhatsAppGate';
|
|
1686
|
+
export * from './webitelImProviderV1WhatsAppBusinessAccount';
|
|
1681
1687
|
export * from './webitelImProviderV1WhatsAppServiceUpdateWhatsAppGateBody';
|
|
1682
1688
|
export * from './webitelKnowledgebaseAttachment';
|
|
1683
1689
|
export * from './webitelKnowledgebaseLookup';
|