@webitel/api-services 26.12.21 → 26.12.22
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/_shared/appUrls.ts +11 -0
- package/src/api/clients/chatGateways/__tests__/chatGatewayChannels.spec.ts +84 -0
- package/src/api/clients/chatGateways/__tests__/chatGateways.spec.ts +115 -0
- package/src/api/clients/chatGateways/chatGatewayChannels.ts +162 -0
- package/src/api/clients/chatGateways/chatGateways.ts +66 -25
- package/src/api/clients/chatGateways/defaults/chatGatewayProviderDefaults.ts +91 -0
- package/src/api/clients/chatGateways/defaults/defaultChatGateway.ts +3 -1
- package/src/api/clients/chatGateways/defaults/webChatGateway.ts +8 -5
- package/src/api/clients/cognitiveProfiles/cognitiveProfiles.ts +8 -32
- package/src/api/clients/cognitiveProfiles/defaults/cognitiveProfileDefaults.ts +39 -0
- package/src/api/clients/gateways/__tests__/gateways.spec.ts +138 -0
- package/src/api/clients/gateways/gateways.ts +60 -52
- package/src/api/clients/index.ts +2 -0
- package/src/enums/ChatGatewayChannelSetup/ChatGatewayChannelSetup.ts +10 -0
- package/src/enums/GatewayIpAclProtocol/GatewayIpAclProtocol.ts +8 -0
- package/src/enums/GatewayRegisterState/GatewayRegisterState.ts +17 -0
- package/src/enums/StorageType/StorageType.ts +10 -0
- package/src/enums/WebchatAlternativeChannel/WebchatAlternativeChannel.ts +15 -0
- package/src/enums/index.ts +10 -0
- package/src/locale/en/en.ts +8 -0
- package/src/locale/es/es.ts +8 -0
- package/src/locale/kz/kz.ts +8 -0
- package/src/locale/pl/pl.ts +8 -0
- package/src/locale/ro/ro.ts +8 -0
- package/src/locale/ru/ru.ts +8 -0
- package/src/locale/uk/uk.ts +8 -0
- package/src/locale/uz/uz.ts +8 -0
- package/src/locale/vi/vi.ts +8 -0
- package/src/validations/_shared/ip.validations.ts +10 -0
- package/src/validations/backendProfile/__tests__/backendProfile.validations.spec.ts +104 -0
- package/src/validations/backendProfile/backendProfile.validations.ts +79 -0
- package/src/validations/chatGateway/__tests__/chatGateway.validations.spec.ts +189 -0
- package/src/validations/chatGateway/chatGateway.validations.ts +452 -0
- package/src/validations/cognitiveProfile/__tests__/cognitiveProfile.validations.spec.ts +83 -0
- package/src/validations/cognitiveProfile/cognitiveProfile.validations.ts +74 -0
- package/src/validations/device/device.validations.ts +2 -8
- package/src/validations/gateway/__tests__/gateway.validations.spec.ts +168 -0
- package/src/validations/gateway/gateway.validations.ts +138 -0
- package/src/validations/index.ts +4 -0
- package/types/.tsbuildinfo +1 -1
- package/types/api/clients/_shared/appUrls.d.ts +11 -0
- package/types/api/clients/chatGateways/chatGatewayChannels.d.ts +62 -0
- package/types/api/clients/chatGateways/chatGateways.d.ts +4 -4
- package/types/api/clients/chatGateways/defaults/chatGatewayProviderDefaults.d.ts +21 -0
- package/types/api/clients/chatGateways/defaults/defaultChatGateway.d.ts +3 -1
- package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +5 -4
- package/types/api/clients/cognitiveProfiles/cognitiveProfiles.d.ts +1 -1
- package/types/api/clients/cognitiveProfiles/defaults/cognitiveProfileDefaults.d.ts +13 -0
- package/types/api/clients/index.d.ts +2 -0
- package/types/enums/ChatGatewayChannelSetup/ChatGatewayChannelSetup.d.ts +8 -0
- package/types/enums/GatewayIpAclProtocol/GatewayIpAclProtocol.d.ts +6 -0
- package/types/enums/GatewayRegisterState/GatewayRegisterState.d.ts +15 -0
- package/types/enums/StorageType/StorageType.d.ts +9 -0
- package/types/enums/WebchatAlternativeChannel/WebchatAlternativeChannel.d.ts +13 -0
- package/types/enums/index.d.ts +6 -1
- package/types/locale/en/en.d.ts +7 -0
- package/types/locale/es/es.d.ts +7 -0
- package/types/locale/index.d.ts +63 -0
- package/types/locale/kz/kz.d.ts +7 -0
- package/types/locale/pl/pl.d.ts +7 -0
- package/types/locale/ro/ro.d.ts +7 -0
- package/types/locale/ru/ru.d.ts +7 -0
- package/types/locale/uk/uk.d.ts +7 -0
- package/types/locale/uz/uz.d.ts +7 -0
- package/types/locale/vi/vi.d.ts +7 -0
- package/types/validations/_shared/ip.validations.d.ts +4 -0
- package/types/validations/backendProfile/backendProfile.validations.d.ts +24 -0
- package/types/validations/chatGateway/chatGateway.validations.d.ts +165 -0
- package/types/validations/cognitiveProfile/cognitiveProfile.validations.d.ts +28 -0
- package/types/validations/gateway/gateway.validations.d.ts +48 -0
- package/types/validations/index.d.ts +4 -0
- package/src/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.ts +0 -12
- package/src/api/clients/gateways/defaults/defaultGateway.ts +0 -9
- package/src/api/clients/gateways/defaults/registerGateway.ts +0 -12
- package/src/api/clients/gateways/defaults/trunkingGateway.ts +0 -16
- package/types/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.d.ts +0 -12
- package/types/api/clients/gateways/defaults/defaultGateway.d.ts +0 -8
- package/types/api/clients/gateways/defaults/registerGateway.d.ts +0 -13
- package/types/api/clients/gateways/defaults/trunkingGateway.d.ts +0 -16
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [Claude] Where the app's services live, and its access token. The app passes
|
|
3
|
+
* them: the urls and the token are its concern, not this package's. Used for
|
|
4
|
+
* `src`/`href` targets that can't send the auth header, and for services
|
|
5
|
+
* outside the api base url, like the chat service.
|
|
6
|
+
*/
|
|
7
|
+
export type AppUrls = {
|
|
8
|
+
apiUrl: string;
|
|
9
|
+
chatUrl: string;
|
|
10
|
+
accessToken: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { ChatGatewayChannelSetup } from '../../../enums';
|
|
2
|
+
import type { AppUrls } from '../_shared/appUrls';
|
|
3
|
+
export type ChatGatewayChannelParams = {
|
|
4
|
+
uri: string;
|
|
5
|
+
appUrls: Pick<AppUrls, 'chatUrl'>;
|
|
6
|
+
};
|
|
7
|
+
type SubscriptionParams = ChatGatewayChannelParams & {
|
|
8
|
+
id: string;
|
|
9
|
+
value: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type ChatGatewayAccount = {
|
|
12
|
+
name?: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
export type FacebookPage = {
|
|
16
|
+
id: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
accounts: ChatGatewayAccount[];
|
|
19
|
+
subscribedFields?: string[];
|
|
20
|
+
};
|
|
21
|
+
export type InstagramPage = {
|
|
22
|
+
id: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
accounts: ChatGatewayAccount[];
|
|
25
|
+
instagram?: {
|
|
26
|
+
username?: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type WhatsappPhoneNumber = {
|
|
30
|
+
verifiedName?: string;
|
|
31
|
+
displayPhoneNumber?: string;
|
|
32
|
+
nameStatus?: string;
|
|
33
|
+
status?: string;
|
|
34
|
+
};
|
|
35
|
+
export type WhatsappAccount = {
|
|
36
|
+
id: string;
|
|
37
|
+
phoneNumbers: WhatsappPhoneNumber[];
|
|
38
|
+
subscribedFields?: string[];
|
|
39
|
+
};
|
|
40
|
+
export type TelegramAppAuthState = {
|
|
41
|
+
authorized?: boolean;
|
|
42
|
+
account?: {
|
|
43
|
+
FirstName?: string;
|
|
44
|
+
LastName?: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const ChatGatewayChannelsAPI: {
|
|
48
|
+
getSetupUrl: (params: ChatGatewayChannelParams & {
|
|
49
|
+
setup: ChatGatewayChannelSetup;
|
|
50
|
+
}) => string;
|
|
51
|
+
getTelegramAppAuth: (params: ChatGatewayChannelParams) => Promise<TelegramAppAuthState>;
|
|
52
|
+
logoutTelegramApp: (params: ChatGatewayChannelParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
53
|
+
getFacebookPages: (params: ChatGatewayChannelParams) => Promise<FacebookPage[]>;
|
|
54
|
+
updateFacebookPageSubscription: ({ id, value, ...params }: SubscriptionParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
55
|
+
getInstagramPages: (params: ChatGatewayChannelParams) => Promise<InstagramPage[]>;
|
|
56
|
+
getWhatsappAccounts: (params: ChatGatewayChannelParams) => Promise<WhatsappAccount[]>;
|
|
57
|
+
updateWhatsappSubscription: ({ id, value, ...params }: SubscriptionParams) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
58
|
+
deleteWhatsappAccount: ({ id, ...params }: ChatGatewayChannelParams & {
|
|
59
|
+
id: string;
|
|
60
|
+
}) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
61
|
+
};
|
|
62
|
+
export {};
|
|
@@ -11,14 +11,14 @@ export declare const ChatGatewaysAPI: {
|
|
|
11
11
|
items: any;
|
|
12
12
|
next: any;
|
|
13
13
|
}>;
|
|
14
|
-
get: ({ itemId: id }: GetItemParams) => Promise<
|
|
15
|
-
add: ({ itemInstance }: AddItemParams) => Promise<
|
|
14
|
+
get: ({ itemId: id }: GetItemParams) => Promise<ApiParams>;
|
|
15
|
+
add: ({ itemInstance }: AddItemParams) => Promise<ApiParams>;
|
|
16
16
|
patch: ({ changes, id }: PatchItemParams) => Promise<any>;
|
|
17
|
-
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<
|
|
17
|
+
update: ({ itemInstance, itemId: id, }: UpdateItemParams) => Promise<ApiParams>;
|
|
18
18
|
delete: ({ id }: DeleteItemParams) => Promise<any>;
|
|
19
19
|
getLookup: (params: Parameters<typeof getChatGatewayList>[0]) => Promise<{
|
|
20
20
|
items: any;
|
|
21
21
|
next: any;
|
|
22
22
|
}>;
|
|
23
23
|
};
|
|
24
|
-
export {};
|
|
24
|
+
export { getChatGatewayDefaults } from './defaults/chatGatewayProviderDefaults';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const VIBER_BTN_BACK_COLOR = "#1d2733";
|
|
2
|
+
export declare const VIBER_BTN_FONT_COLOR = "#ffffff";
|
|
3
|
+
/**
|
|
4
|
+
* [Claude] The field set a chat gateway of `provider` is created with.
|
|
5
|
+
* An unknown provider gets the provider-agnostic base.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getChatGatewayDefaults: (provider?: string) => {
|
|
8
|
+
name: string;
|
|
9
|
+
uri: string;
|
|
10
|
+
flow: undefined;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
provider: string;
|
|
13
|
+
metadata: {};
|
|
14
|
+
updates: {
|
|
15
|
+
title: string;
|
|
16
|
+
close: string;
|
|
17
|
+
join: string;
|
|
18
|
+
left: string;
|
|
19
|
+
filePolicyFail: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
export declare const defaultChatGateway: () => {
|
|
6
6
|
name: string;
|
|
7
7
|
uri: string;
|
|
8
|
-
|
|
8
|
+
/** [Claude] undefined, not {}: regle gives an empty object no field status, so its required error would not show */
|
|
9
|
+
flow: undefined;
|
|
9
10
|
enabled: boolean;
|
|
10
11
|
provider: string;
|
|
11
12
|
metadata: {};
|
|
@@ -14,5 +15,6 @@ export declare const defaultChatGateway: () => {
|
|
|
14
15
|
close: string;
|
|
15
16
|
join: string;
|
|
16
17
|
left: string;
|
|
18
|
+
filePolicyFail: string;
|
|
17
19
|
};
|
|
18
20
|
};
|
|
@@ -36,8 +36,8 @@ export declare const webChatGateway: (_btnCodeDirty?: boolean) => {
|
|
|
36
36
|
appointment: {
|
|
37
37
|
enabled: boolean;
|
|
38
38
|
url: string;
|
|
39
|
-
queue:
|
|
40
|
-
communicationType:
|
|
39
|
+
queue: undefined;
|
|
40
|
+
communicationType: undefined;
|
|
41
41
|
duration: string;
|
|
42
42
|
days: number;
|
|
43
43
|
availableAgents: number;
|
|
@@ -50,7 +50,7 @@ export declare const webChatGateway: (_btnCodeDirty?: boolean) => {
|
|
|
50
50
|
call: {
|
|
51
51
|
enabled: boolean;
|
|
52
52
|
url: string;
|
|
53
|
-
flow:
|
|
53
|
+
flow: undefined;
|
|
54
54
|
id: string;
|
|
55
55
|
};
|
|
56
56
|
alternativeChannels: Record<string, {
|
|
@@ -60,12 +60,13 @@ export declare const webChatGateway: (_btnCodeDirty?: boolean) => {
|
|
|
60
60
|
};
|
|
61
61
|
name: string;
|
|
62
62
|
uri: string;
|
|
63
|
-
flow:
|
|
63
|
+
flow: undefined;
|
|
64
64
|
enabled: boolean;
|
|
65
65
|
updates: {
|
|
66
66
|
title: string;
|
|
67
67
|
close: string;
|
|
68
68
|
join: string;
|
|
69
69
|
left: string;
|
|
70
|
+
filePolicyFail: string;
|
|
70
71
|
};
|
|
71
72
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StorageProviderType } from '@webitel/api-services/gen/models';
|
|
2
|
+
/** [Claude] a new cognitive profile of the provider chosen in the create popup */
|
|
3
|
+
export declare const getCognitiveProfileDefaults: (provider?: StorageProviderType) => {
|
|
4
|
+
name: string;
|
|
5
|
+
default: boolean;
|
|
6
|
+
enabled: boolean;
|
|
7
|
+
provider: StorageProviderType | undefined;
|
|
8
|
+
service: "TTS";
|
|
9
|
+
description: string;
|
|
10
|
+
properties: {
|
|
11
|
+
[x: string]: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './_shared/appUrls';
|
|
1
2
|
export * from './_shared/generatePermissionsApi';
|
|
2
3
|
export * from './activeCalls/activeCalls';
|
|
3
4
|
export * from './agentCalls/agentCalls';
|
|
@@ -32,6 +33,7 @@ export * from './cases/cases';
|
|
|
32
33
|
export * from './catalog/catalog';
|
|
33
34
|
export * from './changelogs/changelogs';
|
|
34
35
|
export * from './chatDialogs/chatDialogs';
|
|
36
|
+
export * from './chatGateways/chatGatewayChannels';
|
|
35
37
|
export * from './chatGateways/chatGateways';
|
|
36
38
|
export * from './chatMessagesHistory/chatMessagesHistory';
|
|
37
39
|
export * from './chatplans/chatplans';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** [Claude] the chat service page where a channel is set up, opened in a popup */
|
|
2
|
+
export declare const ChatGatewayChannelSetup: {
|
|
3
|
+
readonly Facebook: "pages=setup";
|
|
4
|
+
readonly Instagram: "instagram=setup";
|
|
5
|
+
readonly Whatsapp: "whatsapp=setup";
|
|
6
|
+
readonly TelegramApp: "auth";
|
|
7
|
+
};
|
|
8
|
+
export type ChatGatewayChannelSetup = (typeof ChatGatewayChannelSetup)[keyof typeof ChatGatewayChannelSetup];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** [Claude] gateway `rState`: FreeSWITCH sofia registration states, in their numeric order */
|
|
2
|
+
export declare const GatewayRegisterState: {
|
|
3
|
+
readonly Unregistered: 0;
|
|
4
|
+
readonly Trying: 1;
|
|
5
|
+
readonly Register: 2;
|
|
6
|
+
readonly Registered: 3;
|
|
7
|
+
readonly Unregister: 4;
|
|
8
|
+
readonly Failed: 5;
|
|
9
|
+
readonly FailWait: 6;
|
|
10
|
+
readonly Expired: 7;
|
|
11
|
+
readonly NoReg: 8;
|
|
12
|
+
readonly Down: 9;
|
|
13
|
+
readonly Timeout: 10;
|
|
14
|
+
};
|
|
15
|
+
export type GatewayRegisterState = (typeof GatewayRegisterState)[keyof typeof GatewayRegisterState];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** [Claude] the `type` of a file storage backend ("storage" in the admin ui) */
|
|
2
|
+
export declare const StorageType: {
|
|
3
|
+
readonly Local: "local";
|
|
4
|
+
readonly S3: "s3";
|
|
5
|
+
readonly Backblaze: "backblaze";
|
|
6
|
+
readonly Dropbox: "dropbox";
|
|
7
|
+
readonly Drive: "drive";
|
|
8
|
+
};
|
|
9
|
+
export type StorageType = (typeof StorageType)[keyof typeof StorageType];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Difference between MessangerType enum and WebchatAlternativeChannel:
|
|
3
|
+
* MessangerType - backend fields naming, provider
|
|
4
|
+
* WebchatAlternativeChannel - front-end only "simple" channel naming
|
|
5
|
+
*/
|
|
6
|
+
export declare const WebchatAlternativeChannel: {
|
|
7
|
+
readonly Viber: "viber";
|
|
8
|
+
readonly Whatsapp: "whatsapp";
|
|
9
|
+
readonly Telegram: "telegram";
|
|
10
|
+
readonly Messenger: "messenger";
|
|
11
|
+
readonly Email: "email";
|
|
12
|
+
};
|
|
13
|
+
export type WebchatAlternativeChannel = (typeof WebchatAlternativeChannel)[keyof typeof WebchatAlternativeChannel];
|
package/types/enums/index.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ import { AgentStatus } from './AgentStatus/AgentStatus';
|
|
|
2
2
|
import { CallReportingStatus } from './CallReportingStatus/CallReportingStatus';
|
|
3
3
|
import { ChannelState } from './ChannelState/ChannelState';
|
|
4
4
|
import { ChannelType } from './ChannelType/ChannelType';
|
|
5
|
+
import { ChatGatewayChannelSetup } from './ChatGatewayChannelSetup/ChatGatewayChannelSetup';
|
|
5
6
|
import { ChatGatewayProvider } from './ChatGatewayProvider/ChatGatewayPrivider';
|
|
6
7
|
import { FormatDateMode } from './FormatDateMode/FormatDateMode';
|
|
8
|
+
import { GatewayIpAclProtocol } from './GatewayIpAclProtocol/GatewayIpAclProtocol';
|
|
9
|
+
import { GatewayRegisterState } from './GatewayRegisterState/GatewayRegisterState';
|
|
7
10
|
import { MemberStopCause } from './MemberStopCause/MemberStopCause';
|
|
8
11
|
import { QueuePeriod } from './QueuePeriod/QueuePeriod';
|
|
9
12
|
import { QueueStrategy, QueueStrategyList } from './QueueStrategy/QueueStrategy';
|
|
@@ -11,6 +14,7 @@ import { QueueType, QueueTypeName } from './QueueType/QueueType';
|
|
|
11
14
|
import { RelativeDatetimeValue } from './RelativeDatetimeValue/RelativeDatetimeValue';
|
|
12
15
|
import { ResourceCidType } from './ResourceCidType/ResourceCidType';
|
|
13
16
|
import { ResourceIgnoreEarlyMedia } from './ResourceIgnoreEarlyMedia/ResourceIgnoreEarlyMedia';
|
|
17
|
+
import { StorageType } from './StorageType/StorageType';
|
|
14
18
|
import { TimeBaseScore } from './TimeBaseScore/TimeBaseScore';
|
|
15
19
|
import { TtsGoogleVoiceList } from './TtsGoogleVoice/TtsGoogleVoice';
|
|
16
20
|
import { TtsMicrosoftVoice } from './TtsMicrosoftVoice/TtsMicrosoftVoice';
|
|
@@ -18,5 +22,6 @@ import { TtsTextType } from './TtsTextType/TtsTextType';
|
|
|
18
22
|
import { TypesResourceStrategy } from './TypesResourceStrategy/TypesResourceStrategy';
|
|
19
23
|
import { UrlProtocol } from './UrlProtocol/UrlProtocol';
|
|
20
24
|
import { UserPresenceStatus } from './UserPresenceStatus/UserPresenceStatus';
|
|
25
|
+
import { WebchatAlternativeChannel } from './WebchatAlternativeChannel/WebchatAlternativeChannel';
|
|
21
26
|
export type { TtsGoogleVoice } from './TtsGoogleVoice/TtsGoogleVoice';
|
|
22
|
-
export { AgentStatus, CallReportingStatus, ChannelState, ChannelType, ChatGatewayProvider, FormatDateMode, MemberStopCause, QueuePeriod, QueueStrategy, QueueStrategyList, QueueType, QueueTypeName, RelativeDatetimeValue, ResourceCidType, ResourceIgnoreEarlyMedia, TimeBaseScore, TtsGoogleVoiceList, TtsMicrosoftVoice, TtsTextType, TypesResourceStrategy, UrlProtocol, UserPresenceStatus, };
|
|
27
|
+
export { AgentStatus, CallReportingStatus, ChannelState, ChannelType, ChatGatewayChannelSetup, ChatGatewayProvider, FormatDateMode, GatewayIpAclProtocol, GatewayRegisterState, MemberStopCause, QueuePeriod, QueueStrategy, QueueStrategyList, QueueType, QueueTypeName, RelativeDatetimeValue, ResourceCidType, ResourceIgnoreEarlyMedia, StorageType, TimeBaseScore, TtsGoogleVoiceList, TtsMicrosoftVoice, TtsTextType, TypesResourceStrategy, UrlProtocol, UserPresenceStatus, WebchatAlternativeChannel, };
|
package/types/locale/en/en.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
package/types/locale/es/es.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
package/types/locale/index.d.ts
CHANGED
|
@@ -10,6 +10,13 @@ import vi from './vi/vi';
|
|
|
10
10
|
export declare const messages: {
|
|
11
11
|
en: {
|
|
12
12
|
backendErrors: {
|
|
13
|
+
sip: {
|
|
14
|
+
gateway: {
|
|
15
|
+
password: {
|
|
16
|
+
invalid: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
};
|
|
13
20
|
ccOutboundResource: {
|
|
14
21
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
15
22
|
};
|
|
@@ -74,6 +81,13 @@ export declare const messages: {
|
|
|
74
81
|
};
|
|
75
82
|
uk: {
|
|
76
83
|
backendErrors: {
|
|
84
|
+
sip: {
|
|
85
|
+
gateway: {
|
|
86
|
+
password: {
|
|
87
|
+
invalid: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
77
91
|
ccOutboundResource: {
|
|
78
92
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
79
93
|
};
|
|
@@ -138,6 +152,13 @@ export declare const messages: {
|
|
|
138
152
|
};
|
|
139
153
|
ru: {
|
|
140
154
|
backendErrors: {
|
|
155
|
+
sip: {
|
|
156
|
+
gateway: {
|
|
157
|
+
password: {
|
|
158
|
+
invalid: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
141
162
|
ccOutboundResource: {
|
|
142
163
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
143
164
|
};
|
|
@@ -202,6 +223,13 @@ export declare const messages: {
|
|
|
202
223
|
};
|
|
203
224
|
es: {
|
|
204
225
|
backendErrors: {
|
|
226
|
+
sip: {
|
|
227
|
+
gateway: {
|
|
228
|
+
password: {
|
|
229
|
+
invalid: string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
};
|
|
205
233
|
ccOutboundResource: {
|
|
206
234
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
207
235
|
};
|
|
@@ -266,6 +294,13 @@ export declare const messages: {
|
|
|
266
294
|
};
|
|
267
295
|
pl: {
|
|
268
296
|
backendErrors: {
|
|
297
|
+
sip: {
|
|
298
|
+
gateway: {
|
|
299
|
+
password: {
|
|
300
|
+
invalid: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
269
304
|
ccOutboundResource: {
|
|
270
305
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
271
306
|
};
|
|
@@ -330,6 +365,13 @@ export declare const messages: {
|
|
|
330
365
|
};
|
|
331
366
|
ro: {
|
|
332
367
|
backendErrors: {
|
|
368
|
+
sip: {
|
|
369
|
+
gateway: {
|
|
370
|
+
password: {
|
|
371
|
+
invalid: string;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
};
|
|
333
375
|
ccOutboundResource: {
|
|
334
376
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
335
377
|
};
|
|
@@ -394,6 +436,13 @@ export declare const messages: {
|
|
|
394
436
|
};
|
|
395
437
|
kz: {
|
|
396
438
|
backendErrors: {
|
|
439
|
+
sip: {
|
|
440
|
+
gateway: {
|
|
441
|
+
password: {
|
|
442
|
+
invalid: string;
|
|
443
|
+
};
|
|
444
|
+
};
|
|
445
|
+
};
|
|
397
446
|
ccOutboundResource: {
|
|
398
447
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
399
448
|
};
|
|
@@ -458,6 +507,13 @@ export declare const messages: {
|
|
|
458
507
|
};
|
|
459
508
|
uz: {
|
|
460
509
|
backendErrors: {
|
|
510
|
+
sip: {
|
|
511
|
+
gateway: {
|
|
512
|
+
password: {
|
|
513
|
+
invalid: string;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
461
517
|
ccOutboundResource: {
|
|
462
518
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
463
519
|
};
|
|
@@ -522,6 +578,13 @@ export declare const messages: {
|
|
|
522
578
|
};
|
|
523
579
|
vi: {
|
|
524
580
|
backendErrors: {
|
|
581
|
+
sip: {
|
|
582
|
+
gateway: {
|
|
583
|
+
password: {
|
|
584
|
+
invalid: string;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
};
|
|
525
588
|
ccOutboundResource: {
|
|
526
589
|
validatePhoneNumber: ({ linked }: import("vue-i18n").MessageContext) => string;
|
|
527
590
|
};
|
package/types/locale/kz/kz.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
package/types/locale/pl/pl.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
package/types/locale/ro/ro.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
package/types/locale/ru/ru.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
package/types/locale/uk/uk.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
package/types/locale/uz/uz.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
package/types/locale/vi/vi.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { MessageContext } from 'vue-i18n';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
backendErrors: {
|
|
4
|
+
sip: {
|
|
5
|
+
gateway: {
|
|
6
|
+
password: {
|
|
7
|
+
invalid: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
ccOutboundResource: {
|
|
5
12
|
validatePhoneNumber: ({ linked }: MessageContext) => string;
|
|
6
13
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** [Claude] IPv4 without anchors, so it can be embedded into bigger patterns (e.g. a SIP host) */
|
|
2
|
+
export declare const ipv4Pattern = "(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])";
|
|
3
|
+
/** [Claude] format rule only: an empty value passes; loopback and 0.0.0.0 are rejected */
|
|
4
|
+
export declare const isIp: (value?: string) => boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* [Claude] Storage (backend profile) card schema.
|
|
4
|
+
*
|
|
5
|
+
* Access key is required only when creating (`id` absent): an empty key on
|
|
6
|
+
* update means "keep the current one".
|
|
7
|
+
*/
|
|
8
|
+
export declare const backendProfileSchema: z.ZodObject<{
|
|
9
|
+
createdAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
10
|
+
createdBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
11
|
+
dataCount?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
12
|
+
dataSize?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
13
|
+
description?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
14
|
+
disabled?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
15
|
+
expireDays?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
16
|
+
id?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
17
|
+
maxSize?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
18
|
+
name?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
19
|
+
priority?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
20
|
+
properties?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
21
|
+
type?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
22
|
+
updatedAt?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
23
|
+
updatedBy?: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> | undefined;
|
|
24
|
+
}, z.core.$loose>;
|